jodit-pro 4.12.1 → 4.12.3

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 (300) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.js +3 -3
  3. package/es2015/jodit.js +3 -2
  4. package/es2015/jodit.min.js +3 -3
  5. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  6. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  8. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  9. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  10. package/es2015/plugins/backup/backup.css +1 -1
  11. package/es2015/plugins/backup/backup.js +1 -1
  12. package/es2015/plugins/backup/backup.min.js +1 -1
  13. package/es2015/plugins/button-generator/button-generator.css +1 -1
  14. package/es2015/plugins/button-generator/button-generator.js +1 -1
  15. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  16. package/es2015/plugins/change-case/change-case.js +1 -1
  17. package/es2015/plugins/change-case/change-case.min.js +1 -1
  18. package/es2015/plugins/color-picker/color-picker.css +1 -1
  19. package/es2015/plugins/color-picker/color-picker.js +1 -1
  20. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  21. package/es2015/plugins/emoji/emoji.css +1 -1
  22. package/es2015/plugins/emoji/emoji.js +1 -1
  23. package/es2015/plugins/emoji/emoji.min.js +1 -1
  24. package/es2015/plugins/export-docs/export-docs.js +1 -1
  25. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  26. package/es2015/plugins/finder/finder.css +1 -1
  27. package/es2015/plugins/finder/finder.js +1 -1
  28. package/es2015/plugins/finder/finder.min.js +1 -1
  29. package/es2015/plugins/google-maps/google-maps.css +1 -1
  30. package/es2015/plugins/google-maps/google-maps.js +1 -1
  31. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  32. package/es2015/plugins/google-search/google-search.js +1 -1
  33. package/es2015/plugins/google-search/google-search.min.js +1 -1
  34. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  35. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  36. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  37. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  38. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  39. package/es2015/plugins/keyboard/keyboard.css +1 -1
  40. package/es2015/plugins/keyboard/keyboard.js +1 -1
  41. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  42. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  43. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  44. package/es2015/plugins/page-break/page-break.js +1 -1
  45. package/es2015/plugins/page-break/page-break.min.js +1 -1
  46. package/es2015/plugins/paste-code/paste-code.css +1 -1
  47. package/es2015/plugins/paste-code/paste-code.js +1 -1
  48. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  49. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  50. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  51. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  52. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  53. package/es2015/plugins/style/style.css +1 -1
  54. package/es2015/plugins/style/style.js +1 -1
  55. package/es2015/plugins/style/style.min.js +1 -1
  56. package/es2015/plugins/templates/templates.css +1 -1
  57. package/es2015/plugins/templates/templates.js +1 -1
  58. package/es2015/plugins/templates/templates.min.js +1 -1
  59. package/es2015/plugins/todo-list/todo-list.css +1 -1
  60. package/es2015/plugins/todo-list/todo-list.js +1 -1
  61. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  62. package/es2015/plugins/translate/translate.css +1 -1
  63. package/es2015/plugins/translate/translate.js +1 -1
  64. package/es2015/plugins/translate/translate.min.js +1 -1
  65. package/es2015/plugins/tune-block/tune-block.css +1 -1
  66. package/es2015/plugins/tune-block/tune-block.js +1 -1
  67. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  68. package/es2018/jodit.fat.min.js +3 -3
  69. package/es2018/jodit.min.js +3 -3
  70. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  71. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  72. package/es2018/plugins/backup/backup.min.js +1 -1
  73. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  74. package/es2018/plugins/change-case/change-case.min.js +1 -1
  75. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  76. package/es2018/plugins/emoji/emoji.min.js +1 -1
  77. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  78. package/es2018/plugins/finder/finder.min.js +1 -1
  79. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  80. package/es2018/plugins/google-search/google-search.min.js +1 -1
  81. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  82. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  83. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  84. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  85. package/es2018/plugins/page-break/page-break.min.js +1 -1
  86. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  87. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  88. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  89. package/es2018/plugins/style/style.min.js +1 -1
  90. package/es2018/plugins/templates/templates.min.js +1 -1
  91. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  92. package/es2018/plugins/translate/translate.min.js +1 -1
  93. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  94. package/es2021/jodit.css +1 -1
  95. package/es2021/jodit.fat.min.js +3 -3
  96. package/es2021/jodit.js +3 -2
  97. package/es2021/jodit.min.js +3 -3
  98. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  99. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  100. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  101. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  102. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  103. package/es2021/plugins/backup/backup.css +1 -1
  104. package/es2021/plugins/backup/backup.js +1 -1
  105. package/es2021/plugins/backup/backup.min.js +1 -1
  106. package/es2021/plugins/button-generator/button-generator.css +1 -1
  107. package/es2021/plugins/button-generator/button-generator.js +1 -1
  108. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  109. package/es2021/plugins/change-case/change-case.js +1 -1
  110. package/es2021/plugins/change-case/change-case.min.js +1 -1
  111. package/es2021/plugins/color-picker/color-picker.css +1 -1
  112. package/es2021/plugins/color-picker/color-picker.js +1 -1
  113. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  114. package/es2021/plugins/emoji/emoji.css +1 -1
  115. package/es2021/plugins/emoji/emoji.js +1 -1
  116. package/es2021/plugins/emoji/emoji.min.js +1 -1
  117. package/es2021/plugins/export-docs/export-docs.js +1 -1
  118. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  119. package/es2021/plugins/finder/finder.css +1 -1
  120. package/es2021/plugins/finder/finder.js +1 -1
  121. package/es2021/plugins/finder/finder.min.js +1 -1
  122. package/es2021/plugins/google-maps/google-maps.css +1 -1
  123. package/es2021/plugins/google-maps/google-maps.js +1 -1
  124. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  125. package/es2021/plugins/google-search/google-search.js +1 -1
  126. package/es2021/plugins/google-search/google-search.min.js +1 -1
  127. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  128. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  129. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  130. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  131. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  132. package/es2021/plugins/keyboard/keyboard.css +1 -1
  133. package/es2021/plugins/keyboard/keyboard.js +1 -1
  134. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  135. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  136. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  137. package/es2021/plugins/page-break/page-break.js +1 -1
  138. package/es2021/plugins/page-break/page-break.min.js +1 -1
  139. package/es2021/plugins/paste-code/paste-code.css +1 -1
  140. package/es2021/plugins/paste-code/paste-code.js +1 -1
  141. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  142. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  143. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  144. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  145. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  146. package/es2021/plugins/style/style.css +1 -1
  147. package/es2021/plugins/style/style.js +1 -1
  148. package/es2021/plugins/style/style.min.js +1 -1
  149. package/es2021/plugins/templates/templates.css +1 -1
  150. package/es2021/plugins/templates/templates.js +1 -1
  151. package/es2021/plugins/templates/templates.min.js +1 -1
  152. package/es2021/plugins/todo-list/todo-list.css +1 -1
  153. package/es2021/plugins/todo-list/todo-list.js +1 -1
  154. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  155. package/es2021/plugins/translate/translate.css +1 -1
  156. package/es2021/plugins/translate/translate.js +1 -1
  157. package/es2021/plugins/translate/translate.min.js +1 -1
  158. package/es2021/plugins/tune-block/tune-block.css +1 -1
  159. package/es2021/plugins/tune-block/tune-block.js +1 -1
  160. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  161. package/es2021.en/jodit.css +1 -1
  162. package/es2021.en/jodit.fat.min.js +3 -3
  163. package/es2021.en/jodit.js +3 -2
  164. package/es2021.en/jodit.min.js +3 -3
  165. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  166. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  167. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  168. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  169. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  170. package/es2021.en/plugins/backup/backup.css +1 -1
  171. package/es2021.en/plugins/backup/backup.js +1 -1
  172. package/es2021.en/plugins/backup/backup.min.js +1 -1
  173. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  174. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  175. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  176. package/es2021.en/plugins/change-case/change-case.js +1 -1
  177. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  178. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  179. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  180. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  181. package/es2021.en/plugins/emoji/emoji.css +1 -1
  182. package/es2021.en/plugins/emoji/emoji.js +1 -1
  183. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  184. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  185. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  186. package/es2021.en/plugins/finder/finder.css +1 -1
  187. package/es2021.en/plugins/finder/finder.js +1 -1
  188. package/es2021.en/plugins/finder/finder.min.js +1 -1
  189. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  190. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  191. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  192. package/es2021.en/plugins/google-search/google-search.js +1 -1
  193. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  194. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  195. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  196. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  197. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  198. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  199. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  200. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  201. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  202. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  203. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  204. package/es2021.en/plugins/page-break/page-break.js +1 -1
  205. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  206. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  207. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  208. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  209. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  210. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  211. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  212. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  213. package/es2021.en/plugins/style/style.css +1 -1
  214. package/es2021.en/plugins/style/style.js +1 -1
  215. package/es2021.en/plugins/style/style.min.js +1 -1
  216. package/es2021.en/plugins/templates/templates.css +1 -1
  217. package/es2021.en/plugins/templates/templates.js +1 -1
  218. package/es2021.en/plugins/templates/templates.min.js +1 -1
  219. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  220. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  221. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  222. package/es2021.en/plugins/translate/translate.css +1 -1
  223. package/es2021.en/plugins/translate/translate.js +1 -1
  224. package/es2021.en/plugins/translate/translate.min.js +1 -1
  225. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  226. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  227. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  228. package/es5/jodit.css +2 -2
  229. package/es5/jodit.fat.min.js +2 -2
  230. package/es5/jodit.js +3 -2
  231. package/es5/jodit.min.css +2 -2
  232. package/es5/jodit.min.js +2 -2
  233. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  234. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  235. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  236. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  237. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  238. package/es5/plugins/backup/backup.css +1 -1
  239. package/es5/plugins/backup/backup.js +1 -1
  240. package/es5/plugins/backup/backup.min.js +1 -1
  241. package/es5/plugins/button-generator/button-generator.css +1 -1
  242. package/es5/plugins/button-generator/button-generator.js +1 -1
  243. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  244. package/es5/plugins/change-case/change-case.js +1 -1
  245. package/es5/plugins/change-case/change-case.min.js +1 -1
  246. package/es5/plugins/color-picker/color-picker.css +1 -1
  247. package/es5/plugins/color-picker/color-picker.js +1 -1
  248. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  249. package/es5/plugins/emoji/emoji.css +1 -1
  250. package/es5/plugins/emoji/emoji.js +1 -1
  251. package/es5/plugins/emoji/emoji.min.js +1 -1
  252. package/es5/plugins/export-docs/export-docs.js +1 -1
  253. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  254. package/es5/plugins/finder/finder.css +1 -1
  255. package/es5/plugins/finder/finder.js +1 -1
  256. package/es5/plugins/finder/finder.min.js +1 -1
  257. package/es5/plugins/google-maps/google-maps.css +1 -1
  258. package/es5/plugins/google-maps/google-maps.js +1 -1
  259. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  260. package/es5/plugins/google-search/google-search.js +1 -1
  261. package/es5/plugins/google-search/google-search.min.js +1 -1
  262. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  263. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  264. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  265. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  266. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  267. package/es5/plugins/keyboard/keyboard.css +1 -1
  268. package/es5/plugins/keyboard/keyboard.js +1 -1
  269. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  270. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  271. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  272. package/es5/plugins/page-break/page-break.js +1 -1
  273. package/es5/plugins/page-break/page-break.min.js +1 -1
  274. package/es5/plugins/paste-code/paste-code.css +1 -1
  275. package/es5/plugins/paste-code/paste-code.js +1 -1
  276. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  277. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  278. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  279. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  280. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  281. package/es5/plugins/style/style.css +1 -1
  282. package/es5/plugins/style/style.js +1 -1
  283. package/es5/plugins/style/style.min.js +1 -1
  284. package/es5/plugins/templates/templates.css +1 -1
  285. package/es5/plugins/templates/templates.js +1 -1
  286. package/es5/plugins/templates/templates.min.js +1 -1
  287. package/es5/plugins/todo-list/todo-list.css +1 -1
  288. package/es5/plugins/todo-list/todo-list.js +1 -1
  289. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  290. package/es5/plugins/translate/translate.css +1 -1
  291. package/es5/plugins/translate/translate.js +1 -1
  292. package/es5/plugins/translate/translate.min.js +1 -1
  293. package/es5/plugins/tune-block/tune-block.css +1 -1
  294. package/es5/plugins/tune-block/tune-block.js +1 -1
  295. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  296. package/es5/polyfills.fat.min.js +1 -1
  297. package/es5/polyfills.js +1 -1
  298. package/es5/polyfills.min.js +1 -1
  299. package/esm/plugins/license/helpers/helpers.js +1 -1
  300. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.12.1
4
+ * Version: v4.12.3
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
8
  !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(self,function(){return function(){"use strict";var e,t,i,n,o={6441:function(e,t,i){i.d(t,{Config:function(){return r}});var n=i(82758);let o={};class r{static get defaultOptions(){return r.__defaultOptions||(r.__defaultOptions=new r),r.__defaultOptions}constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=n.globalDocument,this.ownerWindow=n.globalWindow,this.shadowRoot=null,this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=n.INSERT_AS_HTML,this.enter=n.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:n.PARAGRAPH,this.defaultMode=n.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},`
9
- `,{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0,Object.assign(this,o)}}o=r.prototype,r.prototype.controls={}},26992:function(e,t,i){i.d(t,{Async:function(){return p}});var n=i(82758),o=i(91898),r=i(12045),s=i(23282),a=i(84767),l=i(72430),c=i(14773),u=i(70799),d=i(86068),h=i(38837),f=i(93661);class p{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let n={};(0,d.isVoid)(t)&&(t=0),(0,a.isNumber)(t)||(t=(n=t).timeout||0),n.label&&this.clearLabel(n.label);let r=(0,o.setTimeout)(e,t,...i),s=n.label||r;return this.timers.set(s,r),this.__callbacks.set(s,e),r}updateTimeout(e,t){if((0,h.assert)(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;let i=this.__callbacks.get(e);return(0,h.assert)((0,s.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,o.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,u.isString)(e))return this.clearLabel(e);(0,o.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let n=0,a=!1,u=[],d=(...t)=>{if(!a){n=0;let i=e(...t);if(a=!0,u.length){let e=()=>{u.forEach(e=>e()),u.length=0};(0,c.isPromise)(i)?i.finally(e):e()}}},h=(...r)=>{a=!1,t?(!n&&i&&d(...r),(0,o.clearTimeout)(n),n=this.setTimeout(()=>d(...r),(0,s.isFunction)(t)?t():t),this.timers.set(e,n)):d(...r)};return(0,l.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{u.push(e)}).catch(e=>{if((0,r.isAbortError)(e))return null;throw e});return h(...e),t}:h}microDebounce(e,t=!1){let i,n=!1,o=!0;return(...r)=>{if(i=r,n){o=!0;return}o=!0,t&&(o=!1,e(...i)),n=!0,this.__queueMicrotaskNative(()=>{n=!1,!this.isDestructed&&o&&e(...i)})}}throttle(e,t,i=!1){let n=null,o,r,a;return(...i)=>{(o=!0,a=i,t)?n||(r=()=>{o?(e(...a),o=!1,n=this.setTimeout(r,(0,s.isFunction)(t)?t():t),this.timers.set(r,n)):n=null})():e(...a)}}promise(e){let t=()=>{},i=new Promise((i,n)=>{t=()=>n((0,f.abort)("Abort async")),this.promisesRejections.add(t),e(i,n)});return!i.finally&&"u">typeof process&&!n.IS_ES_NEXT&&(i.finally=e=>(i.then(e).catch(e),i)),i.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),i.rejectCallback=t,i}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise(t=>{e.then(e=>(t("fulfilled"),e),e=>{throw t("rejected"),e}),this.setTimeout(()=>{t("pending")},100)});let t={};return Promise.race([e,t]).then(e=>e===t?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(e,t={timeout:100}){let i=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(i),i}requestIdlePromise(e){return this.promise(t=>{let i=this.requestIdleCallback(()=>t(i),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){let i=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>i.abort()),this.__controllers.add(i),void 0!==globalThis.scheduler){let n=globalThis.scheduler.postTask(e,{...t,signal:i.signal});return n.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),n}return this.promise((n,o)=>{let r=this.setTimeout(()=>{try{n(e())}catch(e){o(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(i),o((0,f.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}requestAnimationFrame(e){let t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}cancelAnimationFrame(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.__requestsIdle.forEach(e=>this.cancelIdleCallback(e)),this.__requestsRaf.forEach(e=>this.cancelAnimationFrame(e)),this.__controllers.forEach(e=>e.abort()),this.timers.forEach(e=>(0,o.clearTimeout)(this.timers.get(e))),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var e,t,i,n,o;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(e=null==queueMicrotask?void 0:queueMicrotask.bind(window))?e:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=null!=(i=null==(t=window.requestIdleCallback)?void 0:t.bind(window))?i:(e,t)=>{var i;let n=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-n))})},null!=(i=null==t?void 0:t.timeout)?i:1)},this.__cancelIdleCallbackNative=null!=(o=null==(n=window.cancelIdleCallback)?void 0:n.bind(window))?o:e=>{this.clearTimeout(e)},this.isDestructed=!1}}},8884:function(e,t,i){i.d(t,{Async:function(){return n.Async}});var n=i(26992)},4012:function(e,t,i){i.d(t,{Component:function(){return l}});var n=i(8884),o=i(78213),r=i(580),s=i(21537);let a=new Map;class l{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,s.kebabCase)(((0,s.isFunction)(this.className)?this.className():"")||(0,s.getClassName)(this))),this.__componentName}getFullElName(e,t,i){let n=[this.componentName];return e&&n.push("__"+(e=e.replace(/[^a-z0-9-]/gi,"-"))),t&&(n.push("_",t),n.push("_",(0,s.isVoid)(i)?"true":i.toString())),n.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,s.get)(e,t||this)}get isReady(){return this.componentStatus===o.STATUSES.ready}get isDestructed(){return this.componentStatus===o.STATUSES.destructed}get isInDestruct(){return o.STATUSES.beforeDestruct===this.componentStatus||o.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(o.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(o.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),a.get(this)&&a.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(e){this.setStatus(e)}setStatus(e){return this.setStatusComponent(e,this)}setStatusComponent(e,t){if(e===this.__componentStatus)return;t===this&&(this.__componentStatus=e);let i=Object.getPrototypeOf(this);i&&(0,s.isFunction)(i.setStatusComponent)&&i.setStatusComponent(e,t);let n=a.get(this),o=null==n?void 0:n[e];o&&o.length&&o.forEach(e=>e(t))}hookStatus(e,t){let i=a.get(this);i||(i={},a.set(this,i)),i[e]||(i[e]=[]),i[e].push(t)}static isInstanceOf(e,t){return e instanceof t}constructor(){this.async=new n.Async,this.ownerWindow=window,this.__componentStatus=o.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,r.uniqueUid)()}}l.STATUSES=o.STATUSES},91907:function(e,t,i){i.d(t,{Component:function(){return n.Component},STATUSES:function(){return o.STATUSES},ViewComponent:function(){return r.ViewComponent}});var n=i(4012),o=i(78213),r=i(80480)},78213:function(e,t,i){i.d(t,{STATUSES:function(){return n}});let n={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},80480:function(e,t,i){i.d(t,{ViewComponent:function(){return o}});var n=i(4012);class o extends n.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(e){super(),this.setParentView(e)}}},82758:function(e,t,i){i.r(t),i.d(t,{ACCURACY:function(){return U},APP_VERSION:function(){return n},BASE_PATH:function(){return eh},BASE_PATH_IS_MIN:function(){return ef},BR:function(){return W},CLIPBOARD_ID:function(){return eg},COMMAND_KEYS:function(){return V},EMULATE_DBLCLICK_TIMEOUT:function(){return et},ES:function(){return o},FAT_MODE:function(){return c},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return T},INSERT_AS_HTML:function(){return ei},INSERT_AS_TEXT:function(){return eo},INSERT_CLEAR_HTML:function(){return en},INSERT_ONLY_TEXT:function(){return er},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return m},INVISIBLE_SPACE_REG_EXP_END:function(){return g},INVISIBLE_SPACE_REG_EXP_START:function(){return v},IS_BLOCK:function(){return C},IS_ES_MODERN:function(){return r},IS_ES_NEXT:function(){return s},IS_IE:function(){return J},IS_INLINE:function(){return k},IS_MAC:function(){return ea},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return el},KEY_ALT:function(){return P},KEY_BACKSPACE:function(){return j},KEY_DELETE:function(){return F},KEY_DOWN:function(){return O},KEY_ENTER:function(){return x},KEY_ESC:function(){return z},KEY_F3:function(){return H},KEY_LEFT:function(){return R},KEY_META:function(){return A},KEY_RIGHT:function(){return N},KEY_SPACE:function(){return B},KEY_TAB:function(){return L},KEY_UP:function(){return M},LIST_TAGS:function(){return I},MARKER_CLASS:function(){return ee},MODE_SOURCE:function(){return $},MODE_SPLIT:function(){return G},MODE_WYSIWYG:function(){return K},NBSP_SPACE:function(){return p},NEARBY:function(){return q},NO_EMPTY_TAGS:function(){return D},PARAGRAPH:function(){return Y},PASSIVE_EVENTS:function(){return eb},SAFE_COUNT_CHANGE_CALL:function(){return es},SET_TEST:function(){return d},SOURCE_CONSUMER:function(){return ev},SPACE_REG_EXP:function(){return b},SPACE_REG_EXP_END:function(){return S},SPACE_REG_EXP_START:function(){return y},TEMP_ATTR:function(){return ep},TEXT_HTML:function(){return Z},TEXT_PLAIN:function(){return X},TEXT_RTF:function(){return Q},TOKENS:function(){return h},globalDocument:function(){return _},globalWindow:function(){return w},lang:function(){return em}});let n="4.12.1",o="es2021",r=!0,s=!0,a=!0,l=!1,c=!1,u="https://xdsoft.net/jodit/pro/",d=()=>l=!0,h={},f="\uFEFF",p=" ",m=()=>/[\uFEFF]/g,g=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,b=()=>/[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,S=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,w="u">typeof window?window:void 0,_="u">typeof document?document:void 0,C=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,k=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,I=new Set(["ul","ol"]),E=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],T=new Set([...E,"br","hr"]),D=new Set(E),A="Meta",j="Backspace",L="Tab",x="Enter",z="Escape",P="Alt",R="ArrowLeft",M="ArrowUp",N="ArrowRight",O="ArrowDown",B="Space",F="Delete",H="F3",q=5,U=10,V=[A,j,F,M,O,N,R,x,z,H,L],W="br",Y="p",K=1,$=2,G=3,J="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),X=J?"text":"text/plain",Z=J?"html":"text/html",Q=J?"rtf":"text/rtf",ee="jodit-selection_marker",et=300,ei="insert_as_html",en="insert_clear_html",eo="insert_as_text",er="insert_only_text",es=10,ea=void 0!==w&&/Mac|iPod|iPhone|iPad/.test(w.navigator.platform),el={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ea?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},ec=e=>{let t=e.split("/");return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:!0}:{basePath:e,isMin:!0}},{basePath:eu,isMin:ed}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=_.currentScript;if(e)return ec(e.src);let t=_.querySelectorAll("script[src]");return t&&t.length?ec(t[t.length-1].src):ec(w.location.href)})(),eh=eu,ef=ed,ep="data-jodit-temp",em={},eg="clipboard",ev="source-consumer",eb=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},20218:function(e,t,i){i.d(t,{Create:function(){return a}});var n=i(82758),o=i(2748),r=i(21537),s=i(38837);class a{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}element(e,t,i){let n=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(n),t&&((0,r.isPlainObject)(t)?(0,r.attr)(n,t):i=t),i&&(0,r.asArray)(i).forEach(e=>n.appendChild((0,r.isString)(e)?this.fromHTML(e):e)),n}div(e,t,i){let n=this.element("div",t,i);return e&&(n.className=e),n}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(t);let i=null==(e=t.contentWindow)?void 0:e.document;if((0,s.assert)(i,"iframe.contentWindow.document"),!i)throw Error("Iframe error");return i.open(),i.write("<!DOCTYPE html><html><head></head><body></body></html>"),i.close(),[i.body,t]}span(e,t,i){let n=this.element("span",t,i);return e&&(n.className=e),n}a(e,t,i){let n=this.element("a",t,i);return e&&(n.className=e),n}text(e){return this.doc.createTextNode(e)}fake(){return this.text(n.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let i=this.div();i.innerHTML=e.toString();let n=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(o.Dom.safeRemove(n),t){let e=(0,r.refs)(n);Object.keys(t).forEach(i=>{let n=e[i];n&&!1===t[i]&&o.Dom.hide(n)})}return n}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let i=t[e.tagName.toLowerCase()];(0,r.isFunction)(i)?i(e):(0,r.isPlainObject)(i)&&(0,r.attr)(e,i)}}}constructor(e,t){this.document=e,this.createAttributes=t}}},12060:function(e,t,i){i.d(t,{Create:function(){return n.Create}});var n=i(20218)},45219:function(e,t,i){i.d(t,{autobind:function(){return o}});var n=i(23282);function o(e,t,i){if(!(0,n.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let o=i.value;return{configurable:!0,get(){let e=o.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},33433:function(e,t,i){i.d(t,{cache:function(){return l},cacheHTML:function(){return c},cached:function(){return a}});var n=i(78213),o=i(2748),r=i(27613),s=i(82760);function a(e,t){let i=Object.getOwnPropertyDescriptor(e,t);return!i||(0,r.isFunction)(i.get)?null:i.value}function l(e,t,i){let n=i.get;if(!n)throw(0,s.error)("Getter property descriptor expected");i.get=function(){let e=n.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}function c(e,t,i){let a=i.value;if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");let l=!0,c=new WeakMap;i.value=function(...e){var t;if(l&&c.has(this.constructor))return null==(t=c.get(this.constructor))?void 0:t.cloneNode(!0);let i=a.apply(this,e);return l&&o.Dom.isElement(i)&&c.set(this.constructor,i),l?i.cloneNode(!0):i},e.hookStatus(n.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},87325:function(e,t,i){i.d(t,{component:function(){return s},getComponentClass:function(){return a}});var n=i(82758),o=i(80568);let r=new Map;function s(e){class t extends e{constructor(...e){super(...e),this.constructor===t&&(this instanceof t||Object.setPrototypeOf(this,t.prototype),this.setStatus("ready"))}}let i=(0,o.getClassName)(e.prototype);if(r.has(i)&&!n.IS_PROD)throw Error(`Component with name "${i}" is already registered`);return r.set(i,t),t}function a(e){return r.get(e)}},81577:function(e,t,i){i.d(t,{debounce:function(){return a},throttle:function(){return l}});var n=i(91907),o=i(27613),r=i(38837),s=i(89890);function a(e,t=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,o.isFunction)(c))throw(0,s.error)("Handler must be a Function");return a.hookStatus(n.STATUSES.ready,n=>{let{async:s}=n;(0,r.assert)(null!=s,`Component ${n.componentName||n.constructor.name} should have "async:IAsync" field`);let a=(0,o.isFunction)(e)?e(n):e,c=(0,o.isNumber)(a)||(0,o.isPlainObject)(a)?a:n.defaultTimeout;Object.defineProperty(n,l,{configurable:!0,value:s[i](n[l].bind(n),c,t)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},55153:function(e,t,i){i.d(t,{derive:function(){return o}});var n=i(23282);function o(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let o=e[t],r=Object.getOwnPropertyNames(o.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(o.prototype,t);null!=s&&(0,n.isFunction)(s.value)&&!(0,n.isFunction)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return s.value.call(this,...e)}})}}}}},97357:function(e,t,i){i.d(t,{hook:function(){return r}});var n=i(23282),o=i(89890);function r(e){return(t,i)=>{if(!(0,n.isFunction)(t[i]))throw(0,o.error)("Handler must be a Function");t.hookStatus(e,e=>{e[i].call(e)})}}},78927:function(e,t,i){i.d(t,{idle:function(){return s}});var n=i(91907),o=i(23282),r=i(89890);function s(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(n.STATUSES.ready,e=>{let{async:i}=e,n=e[t];e[t]=(...t)=>i.requestIdleCallback(n.bind(e,...t))})}}},65478:function(e,t,i){i.r(t),i.d(t,{autobind:function(){return n.autobind},cache:function(){return o.cache},cacheHTML:function(){return o.cacheHTML},cached:function(){return o.cached},component:function(){return r.component},debounce:function(){return s.debounce},derive:function(){return a.derive},getComponentClass:function(){return r.getComponentClass},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return d.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return f.watch}});var n=i(45219),o=i(33433),r=i(87325),s=i(81577),a=i(55153),l=i(97357),c=i(78927),u=i(31589),d=i(53213),h=i(13525),f=i(37133)},31589:function(e,t,i){i.d(t,{nonenumerable:function(){return n}});let n=(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})}},53213:function(e,t,i){i.d(t,{persistent:function(){return r}});var n=i(78213),o=i(39955);function r(e,t){e.hookStatus(n.STATUSES.ready,e=>{let i=(0,o.isViewObject)(e)?e:e.jodit,n=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=i.storage.get(n))?e:r},set(e){i.storage.set(n,e)}})})}},13525:function(e,t,i){i.d(t,{wait:function(){return s}});var n=i(78213),o=i(23282),r=i(89890);function s(e){return(t,i)=>{let s=t[i];if(!(0,o.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(n.STATUSES.ready,t=>{let{async:n}=t,o=t[i],r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...s){n.clearTimeout(r),e(t)?o.apply(t,s):r=n.setTimeout(()=>i(...s),10)}})})}}},37133:function(e,t,i){i.d(t,{watch:function(){return d}});var n=i(78213),o=i(73026),r=i(46559),s=i(23282),a=i(72430),l=i(39955),c=i(89890),u=i(37790);function d(e,t){return(i,d)=>{var h;if(!(0,s.isFunction)(i[d]))throw(0,c.error)("Handler must be a Function");let f=null==(h=null==t?void 0:t.immediately)||h,p=null==t?void 0:t.context,m=t=>{let n=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...i)=>{if(!t.isInDestruct)return t[d](e,...i)};f||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,o]=e.split(":"),r=p;i.length&&(r=t.get(i)),(0,s.isFunction)(r)&&(r=r(t)),n.events.on(r||t,o,c),r||n.events.on(o,c),t.hookStatus("beforeDestruct",()=>{n.events.off(r||t,o,c).off(o,c)});return}let r=e.split("."),[l]=r,d=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,o.observable)(h).on("change."+d.join("."),c);let f=(0,u.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=h;i!==e&&(h=e,f&&f.set&&f.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,o.observable)(h)).on("change."+d.join("."),c),c(l,i,h))},get:()=>f&&f.get?f.get.call(t):h})})};(0,s.isFunction)(i.hookStatus)?i.hookStatus(n.STATUSES.ready,m):m(i)}}},2748:function(e,t,i){i.d(t,{Dom:function(){return b}});var n=i(82758),o=i(4510),r=i(68345),s=i(23282),a=i(58487),l=i(42320),c=i(70799),u=i(86068),d=i(49055),h=i(38837),f=i(29960),p=i(41180),m=i(86583),g=i(89890),v=i(37790);class b{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let n,o=e;i.s.save();let r=!1;do r=!1,(n=o.nextSibling)&&!b.isBlock(n)&&!b.isTag(n,"br")&&(r=!0,o=n);while(r)return b.__wrapElements(t,i,e,o)}static __wrapElements(e,t,i,n){let o=(0,c.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(o,i);let r=i;for(;r&&(r=i.nextSibling,o.appendChild(i),i!==n&&r);)i=r;return t.s.restore(),o}static wrapInline(e,t,i){let n,o=e,r=e;i.s.save();let s=!1;do s=!1,(n=o.previousSibling)&&!b.isBlock(n)&&(s=!0,o=n);while(s)do s=!1,(n=r.nextSibling)&&!b.isBlock(n)&&(s=!0,r=n);while(s)return b.__wrapElements(t,i,o,r)}static wrap(e,t,i){let n=(0,c.isString)(t)?i.element(t):t;if(b.isNode(e)){if(!e.parentNode)throw(0,g.error)("Element should be in DOM");e.parentNode.insertBefore(n,e),n.appendChild(e)}else{let t=e.extractContents();e.insertNode(n),n.appendChild(t)}return n}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);b.safeRemove(e)}}static between(e,t,i){let n=e;for(;n&&n!==t&&!(e!==n&&i(n));){let e=n.firstChild||n.nextSibling;if(!e){for(;n&&!n.nextSibling;)n=n.parentNode;e=null==n?void 0:n.nextSibling}n=e}}static replace(e,t,i,n=!1,r=!1){let s;if((0,a.isHTML)(t)&&((0,h.assert)(i,"Need create instance for new tag"),t=i.fromHTML(t)),(0,c.isString)(t)?((0,h.assert)(i,"Need create instance for new tag"),s=i.element(t)):s=t,!r)for(;e.firstChild;)s.appendChild(e.firstChild);return n&&b.isElement(e)&&b.isElement(s)&&(0,o.toArray)(e.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(s,e),s}static isEmptyTextNode(e){return b.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return b.each(e,e=>b.isEmptyTextNode(e))}static isContentEditable(e,t){return b.isNode(e)&&!b.closest(e,e=>b.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=n.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let o=e=>null==e.nodeValue||0===(0,d.trim)(e.nodeValue).length;return b.isText(e)?o(e):!(b.isElement(e)&&i(e))&&b.each(e,e=>{if(b.isText(e)&&!o(e)||b.isElement(e)&&i(e))return!1})}static isNode(e){return!!(e&&(0,c.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,s.isFunction)(e.appendChild))}static isCell(e){return b.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return b.isTag(e,n.LIST_TAGS)}static isLeaf(e){return b.isTag(e,"li")}static isImage(e){return b.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,u.isVoid)(e)&&"object"==typeof e&&b.isNode(e)&&n.IS_BLOCK.test(e.nodeName)}static isText(e){return!!(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return!!(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){var t;return!!b.isNode(e)&&!!((null==(t=e.ownerDocument)?void 0:t.defaultView)&&e.nodeType===Node.ELEMENT_NODE)}static isFragment(e){var t;return!!b.isNode(e)&&!!((null==(t=e.ownerDocument)?void 0:t.defaultView)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(e){var t;if(!b.isNode(e))return!1;let i=null==(t=e.ownerDocument)?void 0:t.defaultView;return!!(i&&e instanceof i.HTMLElement)}static isInlineBlock(e){return b.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,p.css)(e,"display").toString())}static canSplitBlock(e){return!(0,u.isVoid)(e)&&b.isHTMLElement(e)&&b.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static first(e,t){let i=null==e?void 0:e.firstChild;if(!i)return null;do{if(t(i))return i;let n=i.firstChild;if(n||(n=i.nextSibling),!n&&i.parentNode!==e){do i=i.parentNode;while(i&&!(null==i?void 0:i.nextSibling)&&i.parentNode!==e)n=null==i?void 0:i.nextSibling}i=n}while(i)return null}static last(e,t){let i=null==e?void 0:e.lastChild;if(!i)return null;do{if(t(i))return i;let n=i.lastChild;if(n||(n=i.previousSibling),!n&&i.parentNode!==e){do i=i.parentNode;while(i&&!(null==i?void 0:i.previousSibling)&&i.parentNode!==e)n=null==i?void 0:i.previousSibling}i=n}while(i)return null}static prev(e,t,i,n=!0){return b.find(e,t,i,!1,n)}static next(e,t,i,n=!0){return b.find(e,t,i,!0,n)}static prevWithClass(e,t){return b.prev(e,e=>b.isElement(e)&&e.classList.contains(t),e.parentNode)}static nextWithClass(e,t){return b.next(e,e=>b.isElement(e)&&e.classList.contains(t),e.parentNode)}static find(e,t,i,n=!0,o=!0){let r=this.nextGen(e,i,n,o),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,i=!0,n=!0){let o=[],r=e;do{let t=i?r.nextSibling:r.previousSibling;for(;t;)o.unshift(t),t=i?t.nextSibling:t.previousSibling;yield*this.runInStack(e,o,i,n),r=r.parentNode}while(r&&r!==t)return null}static each(e,t,i=!0){let n=this.eachGen(e,i),o=n.next();for(;!o.done;){if(!1===t(o.value))return!1;o=n.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,n=!0){for(;t.length;){let o=t.pop();if(n){let e=i?o.lastChild:o.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==o&&(yield o)}}static findWithCurrent(e,t,i,n="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){let e=b.findWithCurrent(r[o],t,r,n,o);if(e)return e}for(;r&&!r[n]&&r!==i;)r=r.parentNode;r&&r[n]&&r!==i&&(r=r[n])}while(r&&r!==i)return null}static findSibling(e,t=!0,i=e=>!b.isEmptyTextNode(e)){let n=b.sibling(e,t);for(;n&&!i(n);)n=b.sibling(n,t);return n&&i(n)?n:null}static findNotEmptySibling(e,t){return b.findSibling(e,t,e=>{var t;return!b.isEmptyTextNode(e)&&!!(!b.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,d.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,i){return(0,v.call)(t?b.prev:b.next,e,e=>!!(e&&(!(b.isText(e)||b.isComment(e))||(0,d.trim)((null==e?void 0:e.nodeValue)||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,n=!1){let o=e;if(!o)return null;do{if(t(o))return o;if(o===i||!o.parentNode)break;o=o.parentNode}while(o&&o!==i)return o===i&&n&&t(o)?o:null}static closest(e,t,i){let n,o=e=>e.toLowerCase();if((0,s.isFunction)(t))n=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(o));n=t=>!!(t&&e.has(o(t.nodeName)))}else n=e=>!!(e&&o(t)===o(e.nodeName));return b.up(e,n,i)}static furthest(e,t,i){let n=null,o=null==e?void 0:e.parentElement;for(;o&&o!==i;)t(o)&&(n=o),o=null==o?void 0:o.parentElement;return n}static appendChildFirst(e,t){let i=e.firstChild;i?i!==t&&e.insertBefore(t,i):e.appendChild(t)}static after(e,t){let{parentNode:i}=e;i&&(i.lastChild===e?i.appendChild(t):i.insertBefore(t,e.nextSibling))}static before(e,t){let{parentNode:i}=e;i&&i.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,r.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,i=!1,r=()=>!0){let s=(e.ownerDocument||n.globalDocument).createDocumentFragment();(0,o.toArray)(e.childNodes).filter(e=>!!r(e)||(b.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),i&&t.firstChild?t.insertBefore(s,t.firstChild):t.appendChild(s)}static isOrContains(e,t,i=!1){return e===t?!i:!!(t&&e&&this.up(t,t=>t===e,e,!0))}static safeRemove(...e){e.forEach(e=>b.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=b.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&b.isTag(e.startContainer,n.INSEPARABLE_TAGS)?b.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>b.isText(e)&&!e.nodeValue&&b.safeRemove(e))}static hide(e){e&&((0,m.dataBind)(e,"__old_display",e.style.display),e.style.display="none")}static show(e){if(!e)return;let t=(0,m.dataBind)(e,"__old_display");"none"===e.style.display&&(e.style.display=t||"")}static isTag(e,t){if(!this.isElement(e))return!1;let i=e.tagName.toLowerCase(),n=e.tagName.toUpperCase();if(t instanceof Set)return t.has(i)||t.has(n);if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");return i===t||n===t}static markTemporary(e,t){return t&&(0,f.attr)(e,t),(0,f.attr)(e,n.TEMP_ATTR,!0),e}static isTemporary(e){return!!b.isElement(e)&&(b.isMarker(e)||"true"===(0,f.attr)(e,n.TEMP_ATTR))}static isMarker(e){return b.isNode(e)&&b.isTag(e,"span")&&e.hasAttribute("data-"+n.MARKER_CLASS)}static replaceTemporaryFromString(e){return e.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(e){return(0,o.toArray)(e.querySelectorAll(`[${n.TEMP_ATTR}]`))}constructor(){throw Error("Dom is static module")}}},22732:function(e,t,i){i.d(t,{Dom:function(){return n.Dom},LazyWalker:function(){return o.LazyWalker}});var n=i(2748),o=i(70071)},70071:function(e,t,i){i.d(t,{LazyWalker:function(){return s}});var n=i(45219),o=i(2748),r=i(72757);class s extends r.Eventify{setWork(e){return this.isWorked&&this.break(),this.workNodes=o.Dom.eachGen(e,!this.options.reverse),this.isFinished=!1,this._requestStarting(),this}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(()=>null)}break(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){super.destruct(),this.stop()}__workPerform(){var e;if(this.workNodes){this.isWorked=!0;let t=0,i=null!=(e=this.options.timeoutChunkSize)?e:50;for(;!this.isFinished&&t<=i;){let e=this.workNodes.next();if(t+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(e){var t;return!!e&&(void 0===this.options.whatToShow||e.nodeType===this.options.whatToShow)&&null!=(t=this.emit("visit",e))&&t}constructor(e,t={}){super(),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0,this.__schedulerController=null}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],s.prototype,"__workPerform",null)},98220:function(e,t,i){i.d(t,{EventEmitter:function(){return u}});var n=i(82758),o=i(46559),r=i(68345),s=i(23282),a=i(70799),l=i(89890),c=i(15738);class u{mute(e){return this.__mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}__eachEvent(e,t){(0,o.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),n=i[1]||c.defaultNameSpace;t.call(this,i[0],n)})}__getStore(e){if(!e)throw(0,l.error)("Need subject");if(void 0===e[this.__key]){let t=new c.EventHandlersStore;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}__removeStoreFromSubject(e){void 0!==e[this.__key]&&Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(e,t){let i=this.__doc.createEvent("HTMLEvents");(0,a.isString)(t)?i.initEvent(t,!0,!0):(i.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(i,e,{value:t[e],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(e,t,i,o){let c,u,h,f;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(c=this,u=e,h=t,f=i):(c=e,u=t,h=i,f=o),!((0,a.isString)(u)||(0,a.isStringArray)(u))||0===u.length)throw(0,l.error)("Need events names");if(!(0,s.isFunction)(h))throw(0,l.error)("Need event handler");if((0,r.isArray)(c))return c.forEach(e=>{this.on(e,u,h,f)}),this;let p=c,m=this.__getStore(p),g=this,v=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return d(p)&&(v=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),h&&!1===h.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(u,(e,t)=>{var i,o;if(0===e.length)throw(0,l.error)("Need event name");if(!1===m.indexOf(e,t,h)){let r={event:e,originalCallback:h,syntheticCallback:v};if(m.set(e,t,r,null==f?void 0:f.top),d(p)){let t=n.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(i=null==f?void 0:f.capture)&&i}:null!=(o=null==f?void 0:f.capture)&&o;v.options=t,p.addEventListener(e,v,t),this.__memoryDOMSubjectToHandler(p,v)}}}),this}__memoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap.get(e)||new Set;i.add(t),this.__domEventsMap.set(e,i)}__unmemoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap,n=i.get(e)||new Set;n.delete(t),n.size?i.set(e,n):i.delete(e)}one(e,t,i,n){let o,r,s,l;(0,a.isString)(e)||(0,a.isStringArray)(e)?(o=this,r=e,s=t,l=i):(o=e,r=t,s=i,l=n);let c=(...e)=>(this.off(o,r,c),s(...e));return this.on(o,r,c,l),this}off(e,t,i){let n,o,l;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(n=this,o=e,l=t):(n=e,o=t,l=i),(0,r.isArray)(n))return n.forEach(e=>{this.off(e,o,l)}),this;let u=n,h=this.__getStore(u);if(!((0,a.isString)(o)||(0,a.isStringArray)(o))||0===o.length)return h.namespaces().forEach(e=>{this.off(u,"."+e)}),this.__removeStoreFromSubject(u),this;let f=e=>{var t;d(u)&&(u.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(u,e.syntheticCallback))},p=(e,t)=>{if(""===e)return void h.events(t).forEach(e=>{""!==e&&p(e,t)});let i=h.get(e,t);if(i&&i.length)if((0,s.isFunction)(l)){let n=h.indexOf(e,t,l);!1!==n&&(f(i[n]),i.splice(n,1),i.length||h.clearEvents(t,e))}else i.forEach(f),i.length=0,h.clearEvents(t,e)};return this.__eachEvent(o,(e,t)=>{t===c.defaultNameSpace?h.namespaces().forEach(t=>{p(e,t)}):p(e,t)}),h.isEmpty()&&this.__removeStoreFromSubject(u),this}stopPropagation(e,t){let i=(0,a.isString)(e)?this:e,n=(0,a.isString)(e)?e:t;if("string"!=typeof n)throw(0,l.error)("Need event names");let o=this.__getStore(i);this.__eachEvent(n,(e,t)=>{let n=o.get(e,t);n&&this.__stopped.push(n),t===c.defaultNameSpace&&o.namespaces(!0).forEach(t=>this.stopPropagation(i,e+"."+t))})}__removeStop(e){if(e){let t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}__isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...i){let n,o,r=(0,a.isString)(e)?this:e,s=(0,a.isString)(e)?e:t,u=(0,a.isString)(e)?[t,...i]:i;if(!d(r)&&!(0,a.isString)(s))throw(0,l.error)("Need events names");let h=this.__getStore(r);return!(0,a.isString)(s)&&d(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(d(r))this.__triggerNativeEvent(r,e);else{let i=h.get(e,t);if(i)try{[...i].every(t=>!this.__isStopped(i)&&(this.currents.push(e),o=t.syntheticCallback.call(r,e,...u),this.currents.pop(),void 0!==o&&(n=o),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||d(r)||h.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...u]);void 0!==i&&(n=i)})}}),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((e,t)=>{this.off(t)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(e){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=n.globalDocument,this.__prepareEvent=e=>{!e.cancelBubble&&(e.composed&&(0,s.isFunction)(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,e&&(this.__doc=e),this.__key+=new Date().getTime()}}function d(e){return e&&(0,s.isFunction)(e.addEventListener)}},72757:function(e,t,i){i.d(t,{Eventify:function(){return n}});class n{on(e,t){var i;return this.__map.has(e)||this.__map.set(e,new Set),null==(i=this.__map.get(e))||i.add(t),this}off(e,t){var i;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.delete(t)),this}destruct(){this.__map.clear()}emit(e,...t){var i;let n;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.forEach(e=>{n=e(...t)})),n}constructor(){this.__map=new Map}}},57012:function(e,t,i){i.d(t,{eventEmitter:function(){return n}});let n=new(i(98220)).EventEmitter},3827:function(e,t,i){i.d(t,{EventEmitter:function(){return n.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return o.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var n=i(98220),o=i(72757),r=i(73026),s=i(15738)},73026:function(e,t,i){i.d(t,{observable:function(){return c}});var n=i(68345),o=i(59292),r=i(72430),s=i(37790);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;let t={},i={},c=(t,o)=>((0,n.isArray)(t)?t.map(e=>c(e,o)):(i[t]||(i[t]=[]),i[t].push(o)),e),u=(o,...r)=>{if((0,n.isArray)(o))return void o.map(e=>u(e,...r));try{!t[o]&&i[o]&&(t[o]=!0,i[o].forEach(t=>t.call(e,...r)))}finally{t[o]=!1}},d=(t,i=[])=>{let n={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);n[a]=t[a];let c=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set(t){let i=n[a];if(!(0,o.isFastEqual)(n[a],t)){u(["beforeChange","beforeChange."+l.join(".")],a,t),(0,r.isPlainObject)(t)&&d(t,l),c&&c.set?c.set.call(e,t):n[a]=t;let o=[];u(["change",...l.reduce((e,t)=>(o.push(t),e.push("change."+o.join(".")),e),[])],l.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):n[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(n[a])&&d(n[a],l)}),Object.defineProperty(e,"on",{value:c}))};return d(e),e}},15738:function(e,t,i){i.d(t,{EventHandlersStore:function(){return s},defaultNameSpace:function(){return r}});var n=i(4510),o=i(38837);let r="JoditEventDefaultNamespace";class s{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,o.assert)(i,"-"),i[e]}}indexOf(e,t,i){let n=this.get(e,t);if(n){for(let e=0;e<n.length;e+=1)if(n[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,n.toArray)(this.__store.keys());return e?t.filter(e=>e!==r):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,n=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),n?o[e].unshift(i):o[e].push(i)}clear(){this.__store.clear()}clearEvents(e,t){let i=this.__store.get(e);i&&i[t]&&(delete i[t],Object.keys(i).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}},580:function(e,t,i){i.d(t,{eventEmitter:function(){return C},extendLang:function(){return y},getContainer:function(){return w},getPopupViewRoot:function(){return _},instances:function(){return f},modules:function(){return b},pluginSystem:function(){return v},uniqueUid:function(){return g}});var n=i(19306),o=i(70799),r=i(39955),s=i(12475),a=i(41180),l=i(80568),c=i(41876),u=i(57012),d=i(82758),h=i(22732);let f={},p=1,m=new Set;function g(){function e(){return Math.round(p+=10*(Math.random()+1)).toString(16)}let t=e();for(;m.has(t);)t=e();return m.add(t),t}let v=new c.PluginSystem({getContainer:w}),b={},y=e=>{Object.keys(e).forEach(t=>{d.lang[t]?Object.assign(d.lang[t],e[t]):d.lang[t]=e[t]})},S=new WeakMap;function w(e,t,i="div",a=!1){let c=(0,o.isString)(t)?t:t?(0,l.getClassName)(t.prototype):"jodit-utils",u=S.get(e)||{},d=c+i,f=(0,r.isViewObject)(e)?e:e.j,p=null;if(!u[d]){let t=f.c;if(p=_(f.o,f.container,e.od.body),a&&(0,n.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let o="style"===i?e.ed.head:e.ed.body;p=(0,n.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}let o=t.element(i,{className:`jodit jodit-${(0,s.kebabCase)(c)}-container jodit-box`});o.classList.add("jodit_theme_"+(f.o.theme||"default")),p.appendChild(o),u[d]=o,e.hookStatus("beforeDestruct",()=>{f.events.off(o),h.Dom.safeRemove(o),delete u[d],Object.keys(u).length&&S.delete(e)}),S.set(e,u),f.events.fire("getContainer",o)}return u[d].classList.remove("jodit_theme_default","jodit_theme_dark"),u[d].classList.add("jodit_theme_"+(f.o.theme||"default")),u[d]}function _(e,t,i){var n,o,r;return null!=(r=null!=(o=null!=(n=e.popupRoot)?n:e.shadowRoot)?o:h.Dom.closest(t,e=>h.Dom.isHTMLElement(e)&&(h.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,a.css)(e,"position"))),i))?r:i}let C=u.eventEmitter},29999:function(e,t,i){i.d(t,{asArray:function(){return o}});var n=i(68345);let o=e=>(0,n.isArray)(e)?e:[e]},76855:function(e,t,i){i.d(t,{asArray:function(){return n.asArray},splitArray:function(){return o.splitArray},toArray:function(){return r.toArray}});var n=i(29999),o=i(46559),r=i(4510)},46559:function(e,t,i){i.d(t,{splitArray:function(){return n}});function n(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}},4510:function(e,t,i){i.d(t,{toArray:function(){return r}});var n=i(70722),o=i(58844);let r=function(...e){var t;return((0,n.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,o.reset)("Array.from"))?t:Array.from).apply(Array,e)}},91898:function(e,t,i){i.d(t,{clearTimeout:function(){return n.clearTimeout},setTimeout:function(){return n.setTimeout}});var n=i(13252)},13252:function(e,t,i){i.d(t,{clearTimeout:function(){return r},setTimeout:function(){return o}});var n=i(82758);function o(e,t,...i){return t?n.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function r(e){n.globalWindow.clearTimeout(e)}},54765:function(e,t,i){i.d(t,{hasBrowserColorPicker:function(){return o}});var n=i(82758);function o(){let e=!0;try{let t=n.globalDocument.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}},27613:function(e,t,i){i.d(t,{hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return d.hasContainer},isAbortError:function(){return o.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return d.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return c.isHTML},isHtmlFromWord:function(){return u.isHtmlFromWord},isInitable:function(){return d.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return p.isLicense},isMarker:function(){return m.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return v.isNumber},isNumeric:function(){return b.isNumeric},isPlainObject:function(){return y.isPlainObject},isPromise:function(){return S.isPromise},isSet:function(){return w.isSet},isString:function(){return _.isString},isStringArray:function(){return _.isStringArray},isURL:function(){return C.isURL},isValidName:function(){return k.isValidName},isViewObject:function(){return I.isViewObject},isVoid:function(){return E.isVoid},isWindow:function(){return T.isWindow}});var n=i(54765),o=i(12045),r=i(68345),s=i(87612),a=i(59292),l=i(23282),c=i(58487),u=i(29673),d=i(60132),h=i(72913),f=i(19306),p=i(45603),m=i(78116),g=i(70722),v=i(84767),b=i(29807),y=i(72430),S=i(14773),w=i(42320),_=i(70799),C=i(26049),k=i(37508),I=i(39955),E=i(86068),T=i(52742)},12045:function(e,t,i){i.d(t,{isAbortError:function(){return n}});function n(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}},68345:function(e,t,i){i.d(t,{isArray:function(){return n}});function n(e){return Array.isArray(e)}},87612:function(e,t,i){i.d(t,{isBoolean:function(){return n}});function n(e){return"boolean"==typeof e}},59292:function(e,t,i){i.d(t,{isEqual:function(){return o},isFastEqual:function(){return r}});var n=i(67462);function o(e,t){return e===t||(0,n.stringify)(e)===(0,n.stringify)(t)}function r(e,t){return e===t}},23282:function(e,t,i){i.d(t,{isFunction:function(){return n}});function n(e){return"function"==typeof e}},29673:function(e,t,i){i.d(t,{isHtmlFromWord:function(){return n}});function n(e){return -1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}},58487:function(e,t,i){i.d(t,{isHTML:function(){return o}});var n=i(70799);let o=e=>(0,n.isString)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))},60132:function(e,t,i){i.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var n=i(2748),o=i(23282),r=i(86068);function s(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&n.Dom.isElement(e.container)}},72913:function(e,t,i){i.d(t,{isInt:function(){return r}});var n=i(29807),o=i(70799);function r(e){return(0,o.isString)(e)&&(0,n.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},19306:function(e,t,i){i.d(t,{isJoditObject:function(){return o}});var n=i(23282);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},45603:function(e,t,i){i.d(t,{isLicense:function(){return o}});var n=i(70799);let o=e=>(0,n.isString)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)},78116:function(e,t,i){i.d(t,{isMarker:function(){return o}});var n=i(2748);function o(e){return n.Dom.isMarker(e)}},70722:function(e,t,i){i.d(t,{isNativeFunction:function(){return n}});function n(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(e+""))}},84767:function(e,t,i){i.d(t,{isNumber:function(){return n}});function n(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},29807:function(e,t,i){i.d(t,{isNumeric:function(){return o}});var n=i(70799);function o(e){if((0,n.isString)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},72430:function(e,t,i){i.d(t,{isPlainObject:function(){return o}});var n=i(52742);function o(e){return!(!e||"object"!=typeof e||e.nodeType||(0,n.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},14773:function(e,t,i){i.d(t,{isPromise:function(){return n}});function n(e){return e&&"function"==typeof e.then}},42320:function(e,t,i){i.d(t,{isSet:function(){return o}});var n=i(23282);function o(e){return!!e&&(0,n.isFunction)(e.has)&&(0,n.isFunction)(e.add)&&(0,n.isFunction)(e.delete)}},70799:function(e,t,i){i.d(t,{isString:function(){return o},isStringArray:function(){return r}});var n=i(68345);function o(e){return"string"==typeof e}function r(e){return(0,n.isArray)(e)&&o(e[0])}},26049:function(e,t,i){i.d(t,{isURL:function(){return o}});var n=i(82758);function o(e){if(e.includes(" "))return!1;if("u">typeof URL)try{let t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}let t=n.globalDocument.createElement("a");return t.href=e,!!t.hostname}},37508:function(e,t,i){i.d(t,{isValidName:function(){return n}});function n(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}},39955:function(e,t,i){i.d(t,{isViewObject:function(){return o}});var n=i(23282);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&e.isView)}},86068:function(e,t,i){i.d(t,{isVoid:function(){return n}});function n(e){return null==e}},52742:function(e,t,i){i.d(t,{isWindow:function(){return n}});function n(e){return null!=e&&e===e.window}},35278:function(e,t,i){i.d(t,{colorToHex:function(){return n}});let n=e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;let t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";let i=parseInt(t[2],10),n=parseInt(t[3],10),o=(parseInt(t[4],10)|n<<8|i<<16).toString(16).toUpperCase();for(;o.length<6;)o="0"+o;return t[1]+"#"+o}},58149:function(e,t,i){i.d(t,{colorToHex:function(){return n.colorToHex}});var n=i(35278)},32574:function(e,t,i){i.d(t,{applyStyles:function(){return l}});var n=i(82758),o=i(2748),r=i(49055),s=i(76078);function a(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(e,t,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function l(e){if(-1===e.indexOf("<html "))return e;e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7);let t=n.globalDocument.createElement("iframe");t.style.display="none",n.globalDocument.body.appendChild(t);let i="";try{let l=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(l){l.open(),l.write(e),l.close();try{for(let e=0;e<l.styleSheets.length;e+=1){let t=l.styleSheets[e].cssRules;for(let e=0;e<t.length;e+=1)""!==t[e].selectorText&&(0,s.$$)(t[e].selectorText,l.body).forEach(i=>{i.style.cssText=a(t[e].style.cssText+";"+i.style.cssText)})}}catch(e){if(!n.IS_PROD)throw e}o.Dom.each(l.body,e=>{if(o.Dom.isElement(e)){let t=e.getAttribute("style");t&&(e.style.cssText=a(t)),e.hasAttribute("style")&&!e.getAttribute("style")&&e.removeAttribute("style")}}),i=l.firstChild?(0,r.trim)(l.body.innerHTML):""}}catch(e){}finally{o.Dom.safeRemove(t)}return i&&(e=i),(0,r.trim)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(e,t,i){i.d(t,{cleanFromWord:function(){return a}});var n=i(82758),o=i(2748),r=i(4510),s=i(49055);function a(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{let i=n.globalDocument.createElement("div");i.innerHTML=e;let s=[];i.firstChild&&o.Dom.each(i,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":s.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":o.Dom.unwrap(e);break;default:(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&e.removeAttribute(t.name)})}break;case Node.TEXT_NODE:break;default:s.push(e)}}),o.Dom.safeRemove.apply(null,s),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(s.trim).join(`
9
+ `,{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0,Object.assign(this,o)}}o=r.prototype,r.prototype.controls={}},26992:function(e,t,i){i.d(t,{Async:function(){return p}});var n=i(82758),o=i(91898),r=i(12045),s=i(23282),a=i(84767),l=i(72430),c=i(14773),u=i(70799),d=i(86068),h=i(38837),f=i(93661);class p{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let n={};(0,d.isVoid)(t)&&(t=0),(0,a.isNumber)(t)||(t=(n=t).timeout||0),n.label&&this.clearLabel(n.label);let r=(0,o.setTimeout)(e,t,...i),s=n.label||r;return this.timers.set(s,r),this.__callbacks.set(s,e),r}updateTimeout(e,t){if((0,h.assert)(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;let i=this.__callbacks.get(e);return(0,h.assert)((0,s.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,o.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,u.isString)(e))return this.clearLabel(e);(0,o.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let n=0,a=!1,u=[],d=(...t)=>{if(!a){n=0;let i=e(...t);if(a=!0,u.length){let e=()=>{u.forEach(e=>e()),u.length=0};(0,c.isPromise)(i)?i.finally(e):e()}}},h=(...r)=>{a=!1,t?(!n&&i&&d(...r),(0,o.clearTimeout)(n),n=this.setTimeout(()=>d(...r),(0,s.isFunction)(t)?t():t),this.timers.set(e,n)):d(...r)};return(0,l.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{u.push(e)}).catch(e=>{if((0,r.isAbortError)(e))return null;throw e});return h(...e),t}:h}microDebounce(e,t=!1){let i,n=!1,o=!0;return(...r)=>{if(i=r,n){o=!0;return}o=!0,t&&(o=!1,e(...i)),n=!0,this.__queueMicrotaskNative(()=>{n=!1,!this.isDestructed&&o&&e(...i)})}}throttle(e,t,i=!1){let n=null,o,r,a;return(...i)=>{(o=!0,a=i,t)?n||(r=()=>{o?(e(...a),o=!1,n=this.setTimeout(r,(0,s.isFunction)(t)?t():t),this.timers.set(r,n)):n=null})():e(...a)}}promise(e){let t=()=>{},i=new Promise((i,n)=>{t=()=>n((0,f.abort)("Abort async")),this.promisesRejections.add(t),e(i,n)});return!i.finally&&"u">typeof process&&!n.IS_ES_NEXT&&(i.finally=e=>(i.then(e).catch(e),i)),i.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),i.rejectCallback=t,i}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise(t=>{e.then(e=>(t("fulfilled"),e),e=>{throw t("rejected"),e}),this.setTimeout(()=>{t("pending")},100)});let t={};return Promise.race([e,t]).then(e=>e===t?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(e,t={timeout:100}){let i=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(i),i}requestIdlePromise(e){return this.promise(t=>{let i=this.requestIdleCallback(()=>t(i),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){let i=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>i.abort()),this.__controllers.add(i),void 0!==globalThis.scheduler){let n=globalThis.scheduler.postTask(e,{...t,signal:i.signal});return n.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),n}return this.promise((n,o)=>{let r=this.setTimeout(()=>{try{n(e())}catch(e){o(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(i),o((0,f.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}requestAnimationFrame(e){let t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}cancelAnimationFrame(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.__requestsIdle.forEach(e=>this.cancelIdleCallback(e)),this.__requestsRaf.forEach(e=>this.cancelAnimationFrame(e)),this.__controllers.forEach(e=>e.abort()),this.timers.forEach(e=>(0,o.clearTimeout)(this.timers.get(e))),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var e,t,i,n,o;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(e=null==queueMicrotask?void 0:queueMicrotask.bind(window))?e:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=null!=(i=null==(t=window.requestIdleCallback)?void 0:t.bind(window))?i:(e,t)=>{var i;let n=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-n))})},null!=(i=null==t?void 0:t.timeout)?i:1)},this.__cancelIdleCallbackNative=null!=(o=null==(n=window.cancelIdleCallback)?void 0:n.bind(window))?o:e=>{this.clearTimeout(e)},this.isDestructed=!1}}},8884:function(e,t,i){i.d(t,{Async:function(){return n.Async}});var n=i(26992)},4012:function(e,t,i){i.d(t,{Component:function(){return l}});var n=i(8884),o=i(78213),r=i(580),s=i(21537);let a=new Map;class l{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,s.kebabCase)(((0,s.isFunction)(this.className)?this.className():"")||(0,s.getClassName)(this))),this.__componentName}getFullElName(e,t,i){let n=[this.componentName];return e&&n.push("__"+(e=e.replace(/[^a-z0-9-]/gi,"-"))),t&&(n.push("_",t),n.push("_",(0,s.isVoid)(i)?"true":i.toString())),n.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,s.get)(e,t||this)}get isReady(){return this.componentStatus===o.STATUSES.ready}get isDestructed(){return this.componentStatus===o.STATUSES.destructed}get isInDestruct(){return o.STATUSES.beforeDestruct===this.componentStatus||o.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(o.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(o.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),a.get(this)&&a.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(e){this.setStatus(e)}setStatus(e){return this.setStatusComponent(e,this)}setStatusComponent(e,t){if(e===this.__componentStatus)return;t===this&&(this.__componentStatus=e);let i=Object.getPrototypeOf(this);i&&(0,s.isFunction)(i.setStatusComponent)&&i.setStatusComponent(e,t);let n=a.get(this),o=null==n?void 0:n[e];o&&o.length&&o.forEach(e=>e(t))}hookStatus(e,t){let i=a.get(this);i||(i={},a.set(this,i)),i[e]||(i[e]=[]),i[e].push(t)}static isInstanceOf(e,t){return e instanceof t}constructor(){this.async=new n.Async,this.ownerWindow=window,this.__componentStatus=o.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,r.uniqueUid)()}}l.STATUSES=o.STATUSES},91907:function(e,t,i){i.d(t,{Component:function(){return n.Component},STATUSES:function(){return o.STATUSES},ViewComponent:function(){return r.ViewComponent}});var n=i(4012),o=i(78213),r=i(80480)},78213:function(e,t,i){i.d(t,{STATUSES:function(){return n}});let n={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},80480:function(e,t,i){i.d(t,{ViewComponent:function(){return o}});var n=i(4012);class o extends n.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(e){super(),this.setParentView(e)}}},82758:function(e,t,i){i.r(t),i.d(t,{ACCURACY:function(){return U},APP_VERSION:function(){return n},BASE_PATH:function(){return eh},BASE_PATH_IS_MIN:function(){return ef},BR:function(){return W},CLIPBOARD_ID:function(){return eg},COMMAND_KEYS:function(){return V},EMULATE_DBLCLICK_TIMEOUT:function(){return et},ES:function(){return o},FAT_MODE:function(){return c},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return T},INSERT_AS_HTML:function(){return ei},INSERT_AS_TEXT:function(){return eo},INSERT_CLEAR_HTML:function(){return en},INSERT_ONLY_TEXT:function(){return er},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return m},INVISIBLE_SPACE_REG_EXP_END:function(){return g},INVISIBLE_SPACE_REG_EXP_START:function(){return v},IS_BLOCK:function(){return C},IS_ES_MODERN:function(){return r},IS_ES_NEXT:function(){return s},IS_IE:function(){return J},IS_INLINE:function(){return k},IS_MAC:function(){return ea},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return el},KEY_ALT:function(){return P},KEY_BACKSPACE:function(){return j},KEY_DELETE:function(){return F},KEY_DOWN:function(){return O},KEY_ENTER:function(){return x},KEY_ESC:function(){return z},KEY_F3:function(){return H},KEY_LEFT:function(){return R},KEY_META:function(){return A},KEY_RIGHT:function(){return N},KEY_SPACE:function(){return B},KEY_TAB:function(){return L},KEY_UP:function(){return M},LIST_TAGS:function(){return I},MARKER_CLASS:function(){return ee},MODE_SOURCE:function(){return $},MODE_SPLIT:function(){return G},MODE_WYSIWYG:function(){return K},NBSP_SPACE:function(){return p},NEARBY:function(){return q},NO_EMPTY_TAGS:function(){return D},PARAGRAPH:function(){return Y},PASSIVE_EVENTS:function(){return eb},SAFE_COUNT_CHANGE_CALL:function(){return es},SET_TEST:function(){return d},SOURCE_CONSUMER:function(){return ev},SPACE_REG_EXP:function(){return b},SPACE_REG_EXP_END:function(){return S},SPACE_REG_EXP_START:function(){return y},TEMP_ATTR:function(){return ep},TEXT_HTML:function(){return Z},TEXT_PLAIN:function(){return X},TEXT_RTF:function(){return Q},TOKENS:function(){return h},globalDocument:function(){return _},globalWindow:function(){return w},lang:function(){return em}});let n="4.12.3",o="es2021",r=!0,s=!0,a=!0,l=!1,c=!1,u="https://xdsoft.net/jodit/pro/",d=()=>l=!0,h={},f="\uFEFF",p=" ",m=()=>/[\uFEFF]/g,g=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,b=()=>/[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,S=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,w="u">typeof window?window:void 0,_="u">typeof document?document:void 0,C=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,k=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,I=new Set(["ul","ol"]),E=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],T=new Set([...E,"br","hr"]),D=new Set(E),A="Meta",j="Backspace",L="Tab",x="Enter",z="Escape",P="Alt",R="ArrowLeft",M="ArrowUp",N="ArrowRight",O="ArrowDown",B="Space",F="Delete",H="F3",q=5,U=10,V=[A,j,F,M,O,N,R,x,z,H,L],W="br",Y="p",K=1,$=2,G=3,J="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),X=J?"text":"text/plain",Z=J?"html":"text/html",Q=J?"rtf":"text/rtf",ee="jodit-selection_marker",et=300,ei="insert_as_html",en="insert_clear_html",eo="insert_as_text",er="insert_only_text",es=10,ea=void 0!==w&&/Mac|iPod|iPhone|iPad/.test(w.navigator.platform),el={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ea?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},ec=e=>{let t=e.split("/");return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:!0}:{basePath:e,isMin:!0}},{basePath:eu,isMin:ed}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=_.currentScript;if(e)return ec(e.src);let t=_.querySelectorAll("script[src]");return t&&t.length?ec(t[t.length-1].src):ec(w.location.href)})(),eh=eu,ef=ed,ep="data-jodit-temp",em={},eg="clipboard",ev="source-consumer",eb=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},20218:function(e,t,i){i.d(t,{Create:function(){return a}});var n=i(82758),o=i(2748),r=i(21537),s=i(38837);class a{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}element(e,t,i){let n=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(n),t&&((0,r.isPlainObject)(t)?(0,r.attr)(n,t):i=t),i&&(0,r.asArray)(i).forEach(e=>n.appendChild((0,r.isString)(e)?this.fromHTML(e):e)),n}div(e,t,i){let n=this.element("div",t,i);return e&&(n.className=e),n}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(t);let i=null==(e=t.contentWindow)?void 0:e.document;if((0,s.assert)(i,"iframe.contentWindow.document"),!i)throw Error("Iframe error");return i.open(),i.write("<!DOCTYPE html><html><head></head><body></body></html>"),i.close(),[i.body,t]}span(e,t,i){let n=this.element("span",t,i);return e&&(n.className=e),n}a(e,t,i){let n=this.element("a",t,i);return e&&(n.className=e),n}text(e){return this.doc.createTextNode(e)}fake(){return this.text(n.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let i=this.div();i.innerHTML=e.toString();let n=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(o.Dom.safeRemove(n),t){let e=(0,r.refs)(n);Object.keys(t).forEach(i=>{let n=e[i];n&&!1===t[i]&&o.Dom.hide(n)})}return n}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let i=t[e.tagName.toLowerCase()];(0,r.isFunction)(i)?i(e):(0,r.isPlainObject)(i)&&(0,r.attr)(e,i)}}}constructor(e,t){this.document=e,this.createAttributes=t}}},12060:function(e,t,i){i.d(t,{Create:function(){return n.Create}});var n=i(20218)},45219:function(e,t,i){i.d(t,{autobind:function(){return o}});var n=i(23282);function o(e,t,i){if(!(0,n.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let o=i.value;return{configurable:!0,get(){let e=o.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},33433:function(e,t,i){i.d(t,{cache:function(){return l},cacheHTML:function(){return c},cached:function(){return a}});var n=i(78213),o=i(2748),r=i(27613),s=i(82760);function a(e,t){let i=Object.getOwnPropertyDescriptor(e,t);return!i||(0,r.isFunction)(i.get)?null:i.value}function l(e,t,i){let n=i.get;if(!n)throw(0,s.error)("Getter property descriptor expected");i.get=function(){let e=n.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}function c(e,t,i){let a=i.value;if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");let l=!0,c=new WeakMap;i.value=function(...e){var t;if(l&&c.has(this.constructor))return null==(t=c.get(this.constructor))?void 0:t.cloneNode(!0);let i=a.apply(this,e);return l&&o.Dom.isElement(i)&&c.set(this.constructor,i),l?i.cloneNode(!0):i},e.hookStatus(n.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},87325:function(e,t,i){i.d(t,{component:function(){return s},getComponentClass:function(){return a}});var n=i(82758),o=i(80568);let r=new Map;function s(e){class t extends e{constructor(...e){super(...e),this.constructor===t&&(this instanceof t||Object.setPrototypeOf(this,t.prototype),this.setStatus("ready"))}}let i=(0,o.getClassName)(e.prototype);if(r.has(i)&&!n.IS_PROD)throw Error(`Component with name "${i}" is already registered`);return r.set(i,t),t}function a(e){return r.get(e)}},81577:function(e,t,i){i.d(t,{debounce:function(){return a},throttle:function(){return l}});var n=i(91907),o=i(27613),r=i(38837),s=i(89890);function a(e,t=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,o.isFunction)(c))throw(0,s.error)("Handler must be a Function");return a.hookStatus(n.STATUSES.ready,n=>{let{async:s}=n;(0,r.assert)(null!=s,`Component ${n.componentName||n.constructor.name} should have "async:IAsync" field`);let a=(0,o.isFunction)(e)?e(n):e,c=(0,o.isNumber)(a)||(0,o.isPlainObject)(a)?a:n.defaultTimeout;Object.defineProperty(n,l,{configurable:!0,value:s[i](n[l].bind(n),c,t)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},55153:function(e,t,i){i.d(t,{derive:function(){return o}});var n=i(23282);function o(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let o=e[t],r=Object.getOwnPropertyNames(o.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(o.prototype,t);null!=s&&(0,n.isFunction)(s.value)&&!(0,n.isFunction)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return s.value.call(this,...e)}})}}}}},97357:function(e,t,i){i.d(t,{hook:function(){return r}});var n=i(23282),o=i(89890);function r(e){return(t,i)=>{if(!(0,n.isFunction)(t[i]))throw(0,o.error)("Handler must be a Function");t.hookStatus(e,e=>{e[i].call(e)})}}},78927:function(e,t,i){i.d(t,{idle:function(){return s}});var n=i(91907),o=i(23282),r=i(89890);function s(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(n.STATUSES.ready,e=>{let{async:i}=e,n=e[t];e[t]=(...t)=>i.requestIdleCallback(n.bind(e,...t))})}}},65478:function(e,t,i){i.r(t),i.d(t,{autobind:function(){return n.autobind},cache:function(){return o.cache},cacheHTML:function(){return o.cacheHTML},cached:function(){return o.cached},component:function(){return r.component},debounce:function(){return s.debounce},derive:function(){return a.derive},getComponentClass:function(){return r.getComponentClass},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return d.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return f.watch}});var n=i(45219),o=i(33433),r=i(87325),s=i(81577),a=i(55153),l=i(97357),c=i(78927),u=i(31589),d=i(53213),h=i(13525),f=i(37133)},31589:function(e,t,i){i.d(t,{nonenumerable:function(){return n}});let n=(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})}},53213:function(e,t,i){i.d(t,{persistent:function(){return r}});var n=i(78213),o=i(39955);function r(e,t){e.hookStatus(n.STATUSES.ready,e=>{let i=(0,o.isViewObject)(e)?e:e.jodit,n=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=i.storage.get(n))?e:r},set(e){i.storage.set(n,e)}})})}},13525:function(e,t,i){i.d(t,{wait:function(){return s}});var n=i(78213),o=i(23282),r=i(89890);function s(e){return(t,i)=>{let s=t[i];if(!(0,o.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(n.STATUSES.ready,t=>{let{async:n}=t,o=t[i],r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...s){n.clearTimeout(r),e(t)?o.apply(t,s):r=n.setTimeout(()=>i(...s),10)}})})}}},37133:function(e,t,i){i.d(t,{watch:function(){return d}});var n=i(78213),o=i(73026),r=i(46559),s=i(23282),a=i(72430),l=i(39955),c=i(89890),u=i(37790);function d(e,t){return(i,d)=>{var h;if(!(0,s.isFunction)(i[d]))throw(0,c.error)("Handler must be a Function");let f=null==(h=null==t?void 0:t.immediately)||h,p=null==t?void 0:t.context,m=t=>{let n=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...i)=>{if(!t.isInDestruct)return t[d](e,...i)};f||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,o]=e.split(":"),r=p;i.length&&(r=t.get(i)),(0,s.isFunction)(r)&&(r=r(t)),n.events.on(r||t,o,c),r||n.events.on(o,c),t.hookStatus("beforeDestruct",()=>{n.events.off(r||t,o,c).off(o,c)});return}let r=e.split("."),[l]=r,d=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,o.observable)(h).on("change."+d.join("."),c);let f=(0,u.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=h;i!==e&&(h=e,f&&f.set&&f.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,o.observable)(h)).on("change."+d.join("."),c),c(l,i,h))},get:()=>f&&f.get?f.get.call(t):h})})};(0,s.isFunction)(i.hookStatus)?i.hookStatus(n.STATUSES.ready,m):m(i)}}},2748:function(e,t,i){i.d(t,{Dom:function(){return b}});var n=i(82758),o=i(4510),r=i(68345),s=i(23282),a=i(58487),l=i(42320),c=i(70799),u=i(86068),d=i(49055),h=i(38837),f=i(29960),p=i(41180),m=i(86583),g=i(89890),v=i(37790);class b{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let n,o=e;i.s.save();let r=!1;do r=!1,(n=o.nextSibling)&&!b.isBlock(n)&&!b.isTag(n,"br")&&(r=!0,o=n);while(r)return b.__wrapElements(t,i,e,o)}static __wrapElements(e,t,i,n){let o=(0,c.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(o,i);let r=i;for(;r&&(r=i.nextSibling,o.appendChild(i),i!==n&&r);)i=r;return t.s.restore(),o}static wrapInline(e,t,i){let n,o=e,r=e;i.s.save();let s=!1;do s=!1,(n=o.previousSibling)&&!b.isBlock(n)&&(s=!0,o=n);while(s)do s=!1,(n=r.nextSibling)&&!b.isBlock(n)&&(s=!0,r=n);while(s)return b.__wrapElements(t,i,o,r)}static wrap(e,t,i){let n=(0,c.isString)(t)?i.element(t):t;if(b.isNode(e)){if(!e.parentNode)throw(0,g.error)("Element should be in DOM");e.parentNode.insertBefore(n,e),n.appendChild(e)}else{let t=e.extractContents();e.insertNode(n),n.appendChild(t)}return n}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);b.safeRemove(e)}}static between(e,t,i){let n=e;for(;n&&n!==t&&!(e!==n&&i(n));){let e=n.firstChild||n.nextSibling;if(!e){for(;n&&!n.nextSibling;)n=n.parentNode;e=null==n?void 0:n.nextSibling}n=e}}static replace(e,t,i,n=!1,r=!1){let s;if((0,a.isHTML)(t)&&((0,h.assert)(i,"Need create instance for new tag"),t=i.fromHTML(t)),(0,c.isString)(t)?((0,h.assert)(i,"Need create instance for new tag"),s=i.element(t)):s=t,!r)for(;e.firstChild;)s.appendChild(e.firstChild);return n&&b.isElement(e)&&b.isElement(s)&&(0,o.toArray)(e.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(s,e),s}static isEmptyTextNode(e){return b.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return b.each(e,e=>b.isEmptyTextNode(e))}static isContentEditable(e,t){return b.isNode(e)&&!b.closest(e,e=>b.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=n.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let o=e=>null==e.nodeValue||0===(0,d.trim)(e.nodeValue).length;return b.isText(e)?o(e):!(b.isElement(e)&&i(e))&&b.each(e,e=>{if(b.isText(e)&&!o(e)||b.isElement(e)&&i(e))return!1})}static isNode(e){return!!(e&&(0,c.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,s.isFunction)(e.appendChild))}static isCell(e){return b.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return b.isTag(e,n.LIST_TAGS)}static isLeaf(e){return b.isTag(e,"li")}static isImage(e){return b.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,u.isVoid)(e)&&"object"==typeof e&&b.isNode(e)&&n.IS_BLOCK.test(e.nodeName)}static isText(e){return!!(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return!!(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){var t;return!!b.isNode(e)&&!!((null==(t=e.ownerDocument)?void 0:t.defaultView)&&e.nodeType===Node.ELEMENT_NODE)}static isFragment(e){var t;return!!b.isNode(e)&&!!((null==(t=e.ownerDocument)?void 0:t.defaultView)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(e){var t;if(!b.isNode(e))return!1;let i=null==(t=e.ownerDocument)?void 0:t.defaultView;return!!(i&&e instanceof i.HTMLElement)}static isInlineBlock(e){return b.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,p.css)(e,"display").toString())}static canSplitBlock(e){return!(0,u.isVoid)(e)&&b.isHTMLElement(e)&&b.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static first(e,t){let i=null==e?void 0:e.firstChild;if(!i)return null;do{if(t(i))return i;let n=i.firstChild;if(n||(n=i.nextSibling),!n&&i.parentNode!==e){do i=i.parentNode;while(i&&!(null==i?void 0:i.nextSibling)&&i.parentNode!==e)n=null==i?void 0:i.nextSibling}i=n}while(i)return null}static last(e,t){let i=null==e?void 0:e.lastChild;if(!i)return null;do{if(t(i))return i;let n=i.lastChild;if(n||(n=i.previousSibling),!n&&i.parentNode!==e){do i=i.parentNode;while(i&&!(null==i?void 0:i.previousSibling)&&i.parentNode!==e)n=null==i?void 0:i.previousSibling}i=n}while(i)return null}static prev(e,t,i,n=!0){return b.find(e,t,i,!1,n)}static next(e,t,i,n=!0){return b.find(e,t,i,!0,n)}static prevWithClass(e,t){return b.prev(e,e=>b.isElement(e)&&e.classList.contains(t),e.parentNode)}static nextWithClass(e,t){return b.next(e,e=>b.isElement(e)&&e.classList.contains(t),e.parentNode)}static find(e,t,i,n=!0,o=!0){let r=this.nextGen(e,i,n,o),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,i=!0,n=!0){let o=[],r=e;do{let t=i?r.nextSibling:r.previousSibling;for(;t;)o.unshift(t),t=i?t.nextSibling:t.previousSibling;yield*this.runInStack(e,o,i,n),r=r.parentNode}while(r&&r!==t)return null}static each(e,t,i=!0){let n=this.eachGen(e,i),o=n.next();for(;!o.done;){if(!1===t(o.value))return!1;o=n.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,n=!0){for(;t.length;){let o=t.pop();if(n){let e=i?o.lastChild:o.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==o&&(yield o)}}static findWithCurrent(e,t,i,n="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){let e=b.findWithCurrent(r[o],t,r,n,o);if(e)return e}for(;r&&!r[n]&&r!==i;)r=r.parentNode;r&&r[n]&&r!==i&&(r=r[n])}while(r&&r!==i)return null}static findSibling(e,t=!0,i=e=>!b.isEmptyTextNode(e)){let n=b.sibling(e,t);for(;n&&!i(n);)n=b.sibling(n,t);return n&&i(n)?n:null}static findNotEmptySibling(e,t){return b.findSibling(e,t,e=>{var t;return!b.isEmptyTextNode(e)&&!!(!b.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,d.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,i){return(0,v.call)(t?b.prev:b.next,e,e=>!!(e&&(!(b.isText(e)||b.isComment(e))||(0,d.trim)((null==e?void 0:e.nodeValue)||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,n=!1){let o=e;if(!o)return null;do{if(t(o))return o;if(o===i||!o.parentNode)break;o=o.parentNode}while(o&&o!==i)return o===i&&n&&t(o)?o:null}static closest(e,t,i){let n,o=e=>e.toLowerCase();if((0,s.isFunction)(t))n=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(o));n=t=>!!(t&&e.has(o(t.nodeName)))}else n=e=>!!(e&&o(t)===o(e.nodeName));return b.up(e,n,i)}static furthest(e,t,i){let n=null,o=null==e?void 0:e.parentElement;for(;o&&o!==i;)t(o)&&(n=o),o=null==o?void 0:o.parentElement;return n}static appendChildFirst(e,t){let i=e.firstChild;i?i!==t&&e.insertBefore(t,i):e.appendChild(t)}static after(e,t){let{parentNode:i}=e;i&&(i.lastChild===e?i.appendChild(t):i.insertBefore(t,e.nextSibling))}static before(e,t){let{parentNode:i}=e;i&&i.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,r.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,i=!1,r=()=>!0){let s=(e.ownerDocument||n.globalDocument).createDocumentFragment();(0,o.toArray)(e.childNodes).filter(e=>!!r(e)||(b.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),i&&t.firstChild?t.insertBefore(s,t.firstChild):t.appendChild(s)}static isOrContains(e,t,i=!1){return e===t?!i:!!(t&&e&&this.up(t,t=>t===e,e,!0))}static safeRemove(...e){e.forEach(e=>b.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=b.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&b.isTag(e.startContainer,n.INSEPARABLE_TAGS)?b.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>b.isText(e)&&!e.nodeValue&&b.safeRemove(e))}static hide(e){e&&((0,m.dataBind)(e,"__old_display",e.style.display),e.style.display="none")}static show(e){if(!e)return;let t=(0,m.dataBind)(e,"__old_display");"none"===e.style.display&&(e.style.display=t||"")}static isTag(e,t){if(!this.isElement(e))return!1;let i=e.tagName.toLowerCase(),n=e.tagName.toUpperCase();if(t instanceof Set)return t.has(i)||t.has(n);if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");return i===t||n===t}static markTemporary(e,t){return t&&(0,f.attr)(e,t),(0,f.attr)(e,n.TEMP_ATTR,!0),e}static isTemporary(e){return!!b.isElement(e)&&(b.isMarker(e)||"true"===(0,f.attr)(e,n.TEMP_ATTR))}static isMarker(e){return b.isNode(e)&&b.isTag(e,"span")&&e.hasAttribute("data-"+n.MARKER_CLASS)}static replaceTemporaryFromString(e){return e.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(e){return(0,o.toArray)(e.querySelectorAll(`[${n.TEMP_ATTR}]`))}constructor(){throw Error("Dom is static module")}}},22732:function(e,t,i){i.d(t,{Dom:function(){return n.Dom},LazyWalker:function(){return o.LazyWalker}});var n=i(2748),o=i(70071)},70071:function(e,t,i){i.d(t,{LazyWalker:function(){return s}});var n=i(45219),o=i(2748),r=i(72757);class s extends r.Eventify{setWork(e){return this.isWorked&&this.break(),this.workNodes=o.Dom.eachGen(e,!this.options.reverse),this.isFinished=!1,this._requestStarting(),this}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(()=>null)}break(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){super.destruct(),this.stop()}__workPerform(){var e;if(this.workNodes){this.isWorked=!0;let t=0,i=null!=(e=this.options.timeoutChunkSize)?e:50;for(;!this.isFinished&&t<=i;){let e=this.workNodes.next();if(t+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(e){var t;return!!e&&(void 0===this.options.whatToShow||e.nodeType===this.options.whatToShow)&&null!=(t=this.emit("visit",e))&&t}constructor(e,t={}){super(),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0,this.__schedulerController=null}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],s.prototype,"__workPerform",null)},98220:function(e,t,i){i.d(t,{EventEmitter:function(){return u}});var n=i(82758),o=i(46559),r=i(68345),s=i(23282),a=i(70799),l=i(89890),c=i(15738);class u{mute(e){return this.__mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}__eachEvent(e,t){(0,o.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),n=i[1]||c.defaultNameSpace;t.call(this,i[0],n)})}__getStore(e){if(!e)throw(0,l.error)("Need subject");if(void 0===e[this.__key]){let t=new c.EventHandlersStore;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}__removeStoreFromSubject(e){void 0!==e[this.__key]&&Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(e,t){let i=this.__doc.createEvent("HTMLEvents");(0,a.isString)(t)?i.initEvent(t,!0,!0):(i.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(i,e,{value:t[e],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(e,t,i,o){let c,u,h,f;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(c=this,u=e,h=t,f=i):(c=e,u=t,h=i,f=o),!((0,a.isString)(u)||(0,a.isStringArray)(u))||0===u.length)throw(0,l.error)("Need events names");if(!(0,s.isFunction)(h))throw(0,l.error)("Need event handler");if((0,r.isArray)(c))return c.forEach(e=>{this.on(e,u,h,f)}),this;let p=c,m=this.__getStore(p),g=this,v=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return d(p)&&(v=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),h&&!1===h.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(u,(e,t)=>{var i,o;if(0===e.length)throw(0,l.error)("Need event name");if(!1===m.indexOf(e,t,h)){let r={event:e,originalCallback:h,syntheticCallback:v};if(m.set(e,t,r,null==f?void 0:f.top),d(p)){let t=n.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(i=null==f?void 0:f.capture)&&i}:null!=(o=null==f?void 0:f.capture)&&o;v.options=t,p.addEventListener(e,v,t),this.__memoryDOMSubjectToHandler(p,v)}}}),this}__memoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap.get(e)||new Set;i.add(t),this.__domEventsMap.set(e,i)}__unmemoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap,n=i.get(e)||new Set;n.delete(t),n.size?i.set(e,n):i.delete(e)}one(e,t,i,n){let o,r,s,l;(0,a.isString)(e)||(0,a.isStringArray)(e)?(o=this,r=e,s=t,l=i):(o=e,r=t,s=i,l=n);let c=(...e)=>(this.off(o,r,c),s(...e));return this.on(o,r,c,l),this}off(e,t,i){let n,o,l;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(n=this,o=e,l=t):(n=e,o=t,l=i),(0,r.isArray)(n))return n.forEach(e=>{this.off(e,o,l)}),this;let u=n,h=this.__getStore(u);if(!((0,a.isString)(o)||(0,a.isStringArray)(o))||0===o.length)return h.namespaces().forEach(e=>{this.off(u,"."+e)}),this.__removeStoreFromSubject(u),this;let f=e=>{var t;d(u)&&(u.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(u,e.syntheticCallback))},p=(e,t)=>{if(""===e)return void h.events(t).forEach(e=>{""!==e&&p(e,t)});let i=h.get(e,t);if(i&&i.length)if((0,s.isFunction)(l)){let n=h.indexOf(e,t,l);!1!==n&&(f(i[n]),i.splice(n,1),i.length||h.clearEvents(t,e))}else i.forEach(f),i.length=0,h.clearEvents(t,e)};return this.__eachEvent(o,(e,t)=>{t===c.defaultNameSpace?h.namespaces().forEach(t=>{p(e,t)}):p(e,t)}),h.isEmpty()&&this.__removeStoreFromSubject(u),this}stopPropagation(e,t){let i=(0,a.isString)(e)?this:e,n=(0,a.isString)(e)?e:t;if("string"!=typeof n)throw(0,l.error)("Need event names");let o=this.__getStore(i);this.__eachEvent(n,(e,t)=>{let n=o.get(e,t);n&&this.__stopped.push(n),t===c.defaultNameSpace&&o.namespaces(!0).forEach(t=>this.stopPropagation(i,e+"."+t))})}__removeStop(e){if(e){let t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}__isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...i){let n,o,r=(0,a.isString)(e)?this:e,s=(0,a.isString)(e)?e:t,u=(0,a.isString)(e)?[t,...i]:i;if(!d(r)&&!(0,a.isString)(s))throw(0,l.error)("Need events names");let h=this.__getStore(r);return!(0,a.isString)(s)&&d(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(d(r))this.__triggerNativeEvent(r,e);else{let i=h.get(e,t);if(i)try{[...i].every(t=>!this.__isStopped(i)&&(this.currents.push(e),o=t.syntheticCallback.call(r,e,...u),this.currents.pop(),void 0!==o&&(n=o),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||d(r)||h.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...u]);void 0!==i&&(n=i)})}}),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((e,t)=>{this.off(t)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(e){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=n.globalDocument,this.__prepareEvent=e=>{!e.cancelBubble&&(e.composed&&(0,s.isFunction)(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,e&&(this.__doc=e),this.__key+=new Date().getTime()}}function d(e){return e&&(0,s.isFunction)(e.addEventListener)}},72757:function(e,t,i){i.d(t,{Eventify:function(){return n}});class n{on(e,t){var i;return this.__map.has(e)||this.__map.set(e,new Set),null==(i=this.__map.get(e))||i.add(t),this}off(e,t){var i;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.delete(t)),this}destruct(){this.__map.clear()}emit(e,...t){var i;let n;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.forEach(e=>{n=e(...t)})),n}constructor(){this.__map=new Map}}},57012:function(e,t,i){i.d(t,{eventEmitter:function(){return n}});let n=new(i(98220)).EventEmitter},3827:function(e,t,i){i.d(t,{EventEmitter:function(){return n.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return o.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var n=i(98220),o=i(72757),r=i(73026),s=i(15738)},73026:function(e,t,i){i.d(t,{observable:function(){return c}});var n=i(68345),o=i(59292),r=i(72430),s=i(37790);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;let t={},i={},c=(t,o)=>((0,n.isArray)(t)?t.map(e=>c(e,o)):(i[t]||(i[t]=[]),i[t].push(o)),e),u=(o,...r)=>{if((0,n.isArray)(o))return void o.map(e=>u(e,...r));try{!t[o]&&i[o]&&(t[o]=!0,i[o].forEach(t=>t.call(e,...r)))}finally{t[o]=!1}},d=(t,i=[])=>{let n={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);n[a]=t[a];let c=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set(t){let i=n[a];if(!(0,o.isFastEqual)(n[a],t)){u(["beforeChange","beforeChange."+l.join(".")],a,t),(0,r.isPlainObject)(t)&&d(t,l),c&&c.set?c.set.call(e,t):n[a]=t;let o=[];u(["change",...l.reduce((e,t)=>(o.push(t),e.push("change."+o.join(".")),e),[])],l.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):n[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(n[a])&&d(n[a],l)}),Object.defineProperty(e,"on",{value:c}))};return d(e),e}},15738:function(e,t,i){i.d(t,{EventHandlersStore:function(){return s},defaultNameSpace:function(){return r}});var n=i(4510),o=i(38837);let r="JoditEventDefaultNamespace";class s{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,o.assert)(i,"-"),i[e]}}indexOf(e,t,i){let n=this.get(e,t);if(n){for(let e=0;e<n.length;e+=1)if(n[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,n.toArray)(this.__store.keys());return e?t.filter(e=>e!==r):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,n=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),n?o[e].unshift(i):o[e].push(i)}clear(){this.__store.clear()}clearEvents(e,t){let i=this.__store.get(e);i&&i[t]&&(delete i[t],Object.keys(i).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}},580:function(e,t,i){i.d(t,{eventEmitter:function(){return C},extendLang:function(){return y},getContainer:function(){return w},getPopupViewRoot:function(){return _},instances:function(){return f},modules:function(){return b},pluginSystem:function(){return v},uniqueUid:function(){return g}});var n=i(19306),o=i(70799),r=i(39955),s=i(12475),a=i(41180),l=i(80568),c=i(41876),u=i(57012),d=i(82758),h=i(22732);let f={},p=1,m=new Set;function g(){function e(){return Math.round(p+=10*(Math.random()+1)).toString(16)}let t=e();for(;m.has(t);)t=e();return m.add(t),t}let v=new c.PluginSystem({getContainer:w}),b={},y=e=>{Object.keys(e).forEach(t=>{d.lang[t]?Object.assign(d.lang[t],e[t]):d.lang[t]=e[t]})},S=new WeakMap;function w(e,t,i="div",a=!1){let c=(0,o.isString)(t)?t:t?(0,l.getClassName)(t.prototype):"jodit-utils",u=S.get(e)||{},d=c+i,f=(0,r.isViewObject)(e)?e:e.j,p=null;if(!u[d]){let t=f.c;if(p=_(f.o,f.container,e.od.body),a&&(0,n.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let o="style"===i?e.ed.head:e.ed.body;p=(0,n.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}let o=t.element(i,{className:`jodit jodit-${(0,s.kebabCase)(c)}-container jodit-box`});o.classList.add("jodit_theme_"+(f.o.theme||"default")),p.appendChild(o),u[d]=o,e.hookStatus("beforeDestruct",()=>{f.events.off(o),h.Dom.safeRemove(o),delete u[d],Object.keys(u).length&&S.delete(e)}),S.set(e,u),f.events.fire("getContainer",o)}return u[d].classList.remove("jodit_theme_default","jodit_theme_dark"),u[d].classList.add("jodit_theme_"+(f.o.theme||"default")),u[d]}function _(e,t,i){var n,o,r;return null!=(r=null!=(o=null!=(n=e.popupRoot)?n:e.shadowRoot)?o:h.Dom.closest(t,e=>h.Dom.isHTMLElement(e)&&(h.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,a.css)(e,"position"))),i))?r:i}let C=u.eventEmitter},29999:function(e,t,i){i.d(t,{asArray:function(){return o}});var n=i(68345);let o=e=>(0,n.isArray)(e)?e:[e]},76855:function(e,t,i){i.d(t,{asArray:function(){return n.asArray},splitArray:function(){return o.splitArray},toArray:function(){return r.toArray}});var n=i(29999),o=i(46559),r=i(4510)},46559:function(e,t,i){i.d(t,{splitArray:function(){return n}});function n(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}},4510:function(e,t,i){i.d(t,{toArray:function(){return r}});var n=i(70722),o=i(58844);let r=function(...e){var t;return((0,n.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,o.reset)("Array.from"))?t:Array.from).apply(Array,e)}},91898:function(e,t,i){i.d(t,{clearTimeout:function(){return n.clearTimeout},setTimeout:function(){return n.setTimeout}});var n=i(13252)},13252:function(e,t,i){i.d(t,{clearTimeout:function(){return r},setTimeout:function(){return o}});var n=i(82758);function o(e,t,...i){return t?n.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function r(e){n.globalWindow.clearTimeout(e)}},54765:function(e,t,i){i.d(t,{hasBrowserColorPicker:function(){return o}});var n=i(82758);function o(){let e=!0;try{let t=n.globalDocument.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}},27613:function(e,t,i){i.d(t,{hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return d.hasContainer},isAbortError:function(){return o.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return d.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return c.isHTML},isHtmlFromWord:function(){return u.isHtmlFromWord},isInitable:function(){return d.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return p.isLicense},isMarker:function(){return m.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return v.isNumber},isNumeric:function(){return b.isNumeric},isPlainObject:function(){return y.isPlainObject},isPromise:function(){return S.isPromise},isSet:function(){return w.isSet},isString:function(){return _.isString},isStringArray:function(){return _.isStringArray},isURL:function(){return C.isURL},isValidName:function(){return k.isValidName},isViewObject:function(){return I.isViewObject},isVoid:function(){return E.isVoid},isWindow:function(){return T.isWindow}});var n=i(54765),o=i(12045),r=i(68345),s=i(87612),a=i(59292),l=i(23282),c=i(58487),u=i(29673),d=i(60132),h=i(72913),f=i(19306),p=i(45603),m=i(78116),g=i(70722),v=i(84767),b=i(29807),y=i(72430),S=i(14773),w=i(42320),_=i(70799),C=i(26049),k=i(37508),I=i(39955),E=i(86068),T=i(52742)},12045:function(e,t,i){i.d(t,{isAbortError:function(){return n}});function n(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}},68345:function(e,t,i){i.d(t,{isArray:function(){return n}});function n(e){return Array.isArray(e)}},87612:function(e,t,i){i.d(t,{isBoolean:function(){return n}});function n(e){return"boolean"==typeof e}},59292:function(e,t,i){i.d(t,{isEqual:function(){return o},isFastEqual:function(){return r}});var n=i(67462);function o(e,t){return e===t||(0,n.stringify)(e)===(0,n.stringify)(t)}function r(e,t){return e===t}},23282:function(e,t,i){i.d(t,{isFunction:function(){return n}});function n(e){return"function"==typeof e}},29673:function(e,t,i){i.d(t,{isHtmlFromWord:function(){return n}});function n(e){return -1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}},58487:function(e,t,i){i.d(t,{isHTML:function(){return o}});var n=i(70799);let o=e=>(0,n.isString)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))},60132:function(e,t,i){i.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var n=i(2748),o=i(23282),r=i(86068);function s(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&n.Dom.isElement(e.container)}},72913:function(e,t,i){i.d(t,{isInt:function(){return r}});var n=i(29807),o=i(70799);function r(e){return(0,o.isString)(e)&&(0,n.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},19306:function(e,t,i){i.d(t,{isJoditObject:function(){return o}});var n=i(23282);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},45603:function(e,t,i){i.d(t,{isLicense:function(){return o}});var n=i(70799);let o=e=>(0,n.isString)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)},78116:function(e,t,i){i.d(t,{isMarker:function(){return o}});var n=i(2748);function o(e){return n.Dom.isMarker(e)}},70722:function(e,t,i){i.d(t,{isNativeFunction:function(){return n}});function n(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(e+""))}},84767:function(e,t,i){i.d(t,{isNumber:function(){return n}});function n(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},29807:function(e,t,i){i.d(t,{isNumeric:function(){return o}});var n=i(70799);function o(e){if((0,n.isString)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},72430:function(e,t,i){i.d(t,{isPlainObject:function(){return o}});var n=i(52742);function o(e){return!(!e||"object"!=typeof e||e.nodeType||(0,n.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},14773:function(e,t,i){i.d(t,{isPromise:function(){return n}});function n(e){return e&&"function"==typeof e.then}},42320:function(e,t,i){i.d(t,{isSet:function(){return o}});var n=i(23282);function o(e){return!!e&&(0,n.isFunction)(e.has)&&(0,n.isFunction)(e.add)&&(0,n.isFunction)(e.delete)}},70799:function(e,t,i){i.d(t,{isString:function(){return o},isStringArray:function(){return r}});var n=i(68345);function o(e){return"string"==typeof e}function r(e){return(0,n.isArray)(e)&&o(e[0])}},26049:function(e,t,i){i.d(t,{isURL:function(){return o}});var n=i(82758);function o(e){if(e.includes(" "))return!1;if("u">typeof URL)try{let t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}let t=n.globalDocument.createElement("a");return t.href=e,!!t.hostname}},37508:function(e,t,i){i.d(t,{isValidName:function(){return n}});function n(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}},39955:function(e,t,i){i.d(t,{isViewObject:function(){return o}});var n=i(23282);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&e.isView)}},86068:function(e,t,i){i.d(t,{isVoid:function(){return n}});function n(e){return null==e}},52742:function(e,t,i){i.d(t,{isWindow:function(){return n}});function n(e){return null!=e&&e===e.window}},35278:function(e,t,i){i.d(t,{colorToHex:function(){return n}});let n=e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;let t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";let i=parseInt(t[2],10),n=parseInt(t[3],10),o=(parseInt(t[4],10)|n<<8|i<<16).toString(16).toUpperCase();for(;o.length<6;)o="0"+o;return t[1]+"#"+o}},58149:function(e,t,i){i.d(t,{colorToHex:function(){return n.colorToHex}});var n=i(35278)},32574:function(e,t,i){i.d(t,{applyStyles:function(){return l}});var n=i(82758),o=i(2748),r=i(49055),s=i(76078);function a(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(e,t,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function l(e){if(-1===e.indexOf("<html "))return e;e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7);let t=n.globalDocument.createElement("iframe");t.style.display="none",n.globalDocument.body.appendChild(t);let i="";try{let l=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(l){l.open(),l.write(e),l.close();try{for(let e=0;e<l.styleSheets.length;e+=1){let t=l.styleSheets[e].cssRules;for(let e=0;e<t.length;e+=1)""!==t[e].selectorText&&(0,s.$$)(t[e].selectorText,l.body).forEach(i=>{i.style.cssText=a(t[e].style.cssText+";"+i.style.cssText)})}}catch(e){if(!n.IS_PROD)throw e}o.Dom.each(l.body,e=>{if(o.Dom.isElement(e)){let t=e.getAttribute("style");t&&(e.style.cssText=a(t)),e.hasAttribute("style")&&!e.getAttribute("style")&&e.removeAttribute("style")}}),i=l.firstChild?(0,r.trim)(l.body.innerHTML):""}}catch(e){}finally{o.Dom.safeRemove(t)}return i&&(e=i),(0,r.trim)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(e,t,i){i.d(t,{cleanFromWord:function(){return a}});var n=i(82758),o=i(2748),r=i(4510),s=i(49055);function a(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{let i=n.globalDocument.createElement("div");i.innerHTML=e;let s=[];i.firstChild&&o.Dom.each(i,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":s.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":o.Dom.unwrap(e);break;default:(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&e.removeAttribute(t.name)})}break;case Node.TEXT_NODE:break;default:s.push(e)}}),o.Dom.safeRemove.apply(null,s),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(s.trim).join(`
10
10
  `)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53326:function(e,t,i){i.d(t,{htmlspecialchars:function(){return o}});var n=i(82758);function o(e){let t=n.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},75275:function(e,t,i){i.d(t,{applyStyles:function(){return n.applyStyles},cleanFromWord:function(){return o.cleanFromWord},htmlspecialchars:function(){return r.htmlspecialchars},nl2br:function(){return s.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var n=i(32574),o=i(53212),r=i(53326),s=i(45971),a=i(86518),l=i(91003)},45971:function(e,t,i){i.d(t,{nl2br:function(){return n}});function n(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}},86518:function(e,t,i){i.d(t,{safeHTML:function(){return r},sanitizeHTMLElement:function(){return a}});var n=i(2748),o=i(43555);function r(e,t){var i;(n.Dom.isElement(e)||n.Dom.isFragment(e))&&((null!=(i=t.removeEventAttributes)?i:t.removeOnError)?(s(e),(0,o.$$)("*",e).forEach(e=>s(e))):t.removeOnError&&(a(e,t),(0,o.$$)("[onerror]",e).forEach(e=>a(e,t))),t.safeJavaScriptLink&&(a(e,t),(0,o.$$)('a[href^="javascript"]',e).forEach(e=>a(e,t))),t.safeLinksTarget&&(0,o.$$)('a[target="_blank"]',e).forEach(e=>{let t=(e.getAttribute("rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,o.attr)(e,"rel",t.join(" "))}))}function s(e){if(!n.Dom.isElement(e))return!1;let t=!1,i=[];for(let t=0;t<e.attributes.length;t++)e.attributes[t].name.toLowerCase().startsWith("on")&&i.push(e.attributes[t].name);for(let n of i)e.removeAttribute(n),t=!0;return t}function a(e,{safeJavaScriptLink:t,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!n.Dom.isElement(e))return!1;let r=!1;i&&e.hasAttribute("onerror")&&((0,o.attr)(e,"onerror",null),r=!0);let s=e.getAttribute("href");return t&&s&&0===s.trim().indexOf("javascript")&&((0,o.attr)(e,"href",location.protocol+"//"+s),r=!0),r}},91003:function(e,t,i){i.d(t,{stripTags:function(){return function e(t,i=document,u=null){let d=i.createElement("div");return(0,o.isString)(t)?d.innerHTML=t:d.appendChild(t),(0,s.$$)("*",d).forEach(t=>{let o=t.parentNode;if(!o)return;if(u&&n.Dom.isTag(t,u)){let o=t.nodeName.toLowerCase(),r=n.Dom.isTag(t,c)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${e(t.innerHTML,i,u)}%%%/jodit-${o}%%%`;n.Dom.before(t,i.createTextNode(r)),n.Dom.safeRemove(t);return}if(n.Dom.isTag(t,l))return void n.Dom.safeRemove(t);if(!n.Dom.isTag(t,a))return;let r=t.nextSibling;!(n.Dom.isText(r)&&/^\s/.test(r.nodeValue||""))&&r&&o.insertBefore(i.createTextNode(" "),r)}),(0,r.trim)(d.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,i,n)=>`<${t?"/":""}${n}>`)}}});var n=i(2748),o=i(70799),r=i(49055),s=i(43555);let a=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),l=new Set(["script","style"]),c=new Set(["br","hr","input"])},21537:function(e,t,i){i.r(t),i.d(t,{$$:function(){return d.$$},CamelCaseToKebabCase:function(){return u.CamelCaseToKebabCase},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigMerge:function(){return d.ConfigMerge},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return d.ConnectionError},LimitedStack:function(){return d.LimitedStack},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},OptionsError:function(){return d.OptionsError},abort:function(){return d.abort},alignElement:function(){return d.alignElement},alreadyLoadedList:function(){return d.alreadyLoadedList},appendScriptAsync:function(){return d.appendScriptAsync},appendStyleAsync:function(){return d.appendStyleAsync},applyStyles:function(){return a.applyStyles},asArray:function(){return n.asArray},assert:function(){return d.assert},attr:function(){return d.attr},browser:function(){return d.browser},buildQuery:function(){return d.buildQuery},call:function(){return d.call},callPromise:function(){return d.callPromise},callThis:function(){return d.callThis},camelCase:function(){return u.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearAlign:function(){return d.clearAlign},clearCenterAlign:function(){return d.clearCenterAlign},clearTimeout:function(){return o.clearTimeout},cns:function(){return d.cns},colorToHex:function(){return s.colorToHex},completeUrl:function(){return d.completeUrl},connection:function(){return d.connection},convertMediaUrlToVideoEmbed:function(){return d.convertMediaUrlToVideoEmbed},css:function(){return d.css},cssPath:function(){return d.cssPath},ctrlKey:function(){return d.ctrlKey},dataBind:function(){return d.dataBind},defaultLanguage:function(){return d.defaultLanguage},error:function(){return d.error},fastClone:function(){return d.fastClone},fuzzySearchIndex:function(){return u.fuzzySearchIndex},get:function(){return d.get},getClassName:function(){return d.getClassName},getContentWidth:function(){return c.getContentWidth},getDataTransfer:function(){return d.getDataTransfer},getPropertyDescriptor:function(){return d.getPropertyDescriptor},getScrollParent:function(){return c.getScrollParent},getXPathByElement:function(){return d.getXPathByElement},hAlignElement:function(){return d.hAlignElement},hasBrowserColorPicker:function(){return r.hasBrowserColorPicker},hasContainer:function(){return r.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},humanSizeToBytes:function(){return d.humanSizeToBytes},i18n:function(){return u.i18n},inView:function(){return d.inView},innerWidth:function(){return c.innerWidth},isAbortError:function(){return r.isAbortError},isArray:function(){return r.isArray},isAtom:function(){return d.isAtom},isBoolean:function(){return r.isBoolean},isDestructable:function(){return r.isDestructable},isEqual:function(){return r.isEqual},isFastEqual:function(){return r.isFastEqual},isFunction:function(){return r.isFunction},isHTML:function(){return r.isHTML},isHtmlFromWord:function(){return r.isHtmlFromWord},isInitable:function(){return r.isInitable},isInt:function(){return r.isInt},isJoditObject:function(){return r.isJoditObject},isLicense:function(){return r.isLicense},isMarker:function(){return r.isMarker},isNativeFunction:function(){return r.isNativeFunction},isNumber:function(){return r.isNumber},isNumeric:function(){return r.isNumeric},isPlainObject:function(){return r.isPlainObject},isPromise:function(){return r.isPromise},isSet:function(){return r.isSet},isString:function(){return r.isString},isStringArray:function(){return r.isStringArray},isURL:function(){return r.isURL},isValidName:function(){return r.isValidName},isViewObject:function(){return r.isViewObject},isVoid:function(){return r.isVoid},isWindow:function(){return r.isWindow},kebabCase:function(){return u.kebabCase},keepNames:function(){return d.keepNames},keys:function(){return d.keys},loadImage:function(){return d.loadImage},loadNext:function(){return d.loadNext},loadNextStyle:function(){return d.loadNextStyle},markAsAtomic:function(){return d.markAsAtomic},markDeprecated:function(){return d.markDeprecated},markOwner:function(){return d.markOwner},memorizeExec:function(){return d.memorizeExec},nl2br:function(){return a.nl2br},normalizeColor:function(){return l.normalizeColor},normalizeCssNumericValue:function(){return l.normalizeCssNumericValue},normalizeCssValue:function(){return l.normalizeCssValue},normalizeKeyAliases:function(){return l.normalizeKeyAliases},normalizeLicense:function(){return l.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return l.normalizeSize},normalizeUrl:function(){return l.normalizeUrl},offset:function(){return c.offset},options:function(){return d.options},parseQuery:function(){return d.parseQuery},position:function(){return c.position},previewBox:function(){return d.previewBox},refs:function(){return d.refs},reset:function(){return d.reset},resolveElement:function(){return d.resolveElement},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},scrollIntoViewIfNeeded:function(){return d.scrollIntoViewIfNeeded},set:function(){return d.set},setTimeout:function(){return o.setTimeout},size:function(){return c.size},splitArray:function(){return n.splitArray},sprintf:function(){return u.sprintf},stringify:function(){return u.stringify},stripTags:function(){return a.stripTags},toArray:function(){return n.toArray},trim:function(){return u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},ucfirst:function(){return u.ucfirst}});var n=i(76855),o=i(91898),r=i(27613),s=i(58149),a=i(75275),l=i(71521),c=i(56175),u=i(59007),d=i(43555)},71521:function(e,t,i){i.d(t,{NUMBER_FIELDS_REG:function(){return o.NUMBER_FIELDS_REG},normalizeColor:function(){return n.normalizeColor},normalizeCssNumericValue:function(){return o.normalizeCssNumericValue},normalizeCssValue:function(){return o.normalizeCssValue},normalizeKeyAliases:function(){return r.normalizeKeyAliases},normalizeLicense:function(){return s.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return u.normalizeUrl}});var n=i(21224),o=i(3760),r=i(49033),s=i(12972),a=i(9992),l=i(70091),c=i(46334),u=i(37406)},21224:function(e,t,i){i.d(t,{normalizeColor:function(){return r}});var n=i(35278),o=i(49055);let r=e=>{let t=["#"],i=(0,n.colorToHex)(e);if(!i)return!1;if(3===(i=(i=(0,o.trim)(i.toUpperCase())).substring(1)).length){for(let e=0;e<3;e+=1)t.push(i[e]),t.push(i[e]);return t.join("")}return i.length>6&&(i=i.slice(0,6)),"#"+i}},3760:function(e,t,i){i.d(t,{NUMBER_FIELDS_REG:function(){return a},normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return c}});var n=i(29807),o=i(86068),r=i(35278),s=i(12475);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(e,t){return!(0,o.isVoid)(t)&&a.test(e)&&(0,n.isNumeric)(t.toString())?parseInt(t.toString(),10)+"px":t}function c(e,t){if("font-weight"===(0,s.kebabCase)(e)){switch(t.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,n.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}},49033:function(e,t,i){i.d(t,{normalizeKeyAliases:function(){return r}});var n=i(82758),o=i(49055);function r(e){let t={},i={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(e=>(0,o.trim)(e.toLowerCase())).map(e=>n.KEY_ALIASES[e]||e).sort((e,t)=>i[e]&&!i[t]?-1:!i[e]&&i[t]?1:i[e]&&i[t]?i[e]-i[t]:e>t?1:-1).filter(e=>!t[e]&&""!==e&&(t[e]=!0)).join("+")}},12972:function(e,t,i){i.d(t,{normalizeLicense:function(){return n}});let n=(e,t=8)=>{let i=[];for(;e.length;)i.push(e.substr(0,t)),e=e.substr(t);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")}},9992:function(e,t,i){i.d(t,{normalizePath:function(){return o}});var n=i(49055);let o=(...e)=>e.filter(e=>(0,n.trim)(e).length).map((t,i)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),i&&(t=t.replace(/^\//,"")),i!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/")},70091:function(e,t,i){i.d(t,{normalizeRelativePath:function(){return n}});let n=e=>e.split("/").reduce((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e},[]).join("/")+(e.endsWith("/")?"/":"")},46334:function(e,t,i){i.d(t,{normalizeSize:function(){return n}});let n=(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()},37406:function(e,t,i){i.d(t,{normalizeUrl:function(){return n}});let n=(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},44506:function(e,t,i){i.d(t,{getContentWidth:function(){return n}});let n=(e,t)=>{let i=t.getComputedStyle(e);return e.offsetWidth-parseInt(i.getPropertyValue("padding-left")||"0",10)-parseInt(i.getPropertyValue("padding-right")||"0",10)}},16442:function(e,t,i){i.d(t,{getScrollParent:function(){return function e(t){if(!t)return null;let i=o.Dom.isHTMLElement(t),s=i&&(0,r.css)(t,"overflowY");return i&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||n.globalDocument.scrollingElement||n.globalDocument.body}}});var n=i(82758),o=i(2748),r=i(43555)},56175:function(e,t,i){i.d(t,{getContentWidth:function(){return n.getContentWidth},getScrollParent:function(){return o.getScrollParent},innerWidth:function(){return r.innerWidth},offset:function(){return a.offset},position:function(){return l.position},size:function(){return s.size}});var n=i(44506),o=i(16442),r=i(81630),s=i(21496),a=i(81284),l=i(5700)},81630:function(e,t,i){i.d(t,{innerWidth:function(){return n}});let n=(e,t)=>{let i=t.getComputedStyle(e);return e.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}},21496:function(e,t,i){i.d(t,{size:function(){return o}});var n=i(27613);function o(e){return(0,n.isString)(e)||(0,n.isArray)(e)?e.length:(0,n.isPlainObject)(e)?Object.keys(e).length:0}},81284:function(e,t,i){i.d(t,{offset:function(){return n}});let n=(e,t,i,o=!1)=>{let r,s,a;try{r=e.getBoundingClientRect()}catch(e){r={top:0,bottom:0,left:0,right:0,width:0,height:0}}let l=i.body,c=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},u=i.defaultView||i.parentWindow,d=u.pageYOffset||c.scrollTop||l.scrollTop,h=u.pageXOffset||c.scrollLeft||l.scrollLeft,f=c.clientTop||l.clientTop||0,p=c.clientLeft||l.clientLeft||0,m=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&m){let{top:e,left:i}=n(m,t,t.od,!0);s=r.top+e,a=r.left+i}else s=r.top+d-f,a=r.left+h-p;return{top:Math.round(s),left:Math.round(a),width:r.width,height:r.height}}},5700:function(e,t,i){i.d(t,{position:function(){return function e(t,i,o=!1){var r,s;let a=t.getBoundingClientRect(),l=a.left,c=a.top;if((0,n.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(t)&&!o){let{left:t,top:n}=e(i.iframe,i,!0);l+=t,c+=n}return{left:Math.round(l),top:Math.round(c),width:Math.round(null!=(r=t.offsetWidth)?r:a.width),height:Math.round(null!=(s=t.offsetHeight)?s:a.height)}}}});var n=i(19306)},87058:function(e,t,i){i.d(t,{camelCase:function(){return n}});let n=e=>e.replace(/([-_])(.)/g,(e,t,i)=>i.toUpperCase())},67477:function(e,t,i){i.d(t,{fuzzySearchIndex:function(){return o}});var n=i(82758);function o(e,t,i=0,r=1){let s=0,a=0,l=-1,c=0,u=0;for(a=i;s<e.length&&a<t.length;)e[s].toLowerCase()===t[a].toLowerCase()?(s++,c++,u=0,-1===l&&(l=a)):s>0&&(u>=r&&t[a]!==n.INVISIBLE_SPACE?(s=0,l=-1,c=0,u=0,a--):(u++,c++)),a++;return s===e.length?[l,c]:[-1,0]}},56967:function(e,t,i){i.d(t,{i18n:function(){return c},sprintf:function(){return l}});var n=i(82758),o=i(70799),r=i(36409),s=i(43555),a=i(6441);let l=(e,t)=>{if(!t||!t.length)return e;let i=/%([sd])/g,n=i.exec(e),o=e,r=0;for(;n&&void 0!==t[r];)o=o.replace(n[0],t[r].toString()),r+=1,n=i.exec(e);return o};function c(e,t,i){if(!(0,o.isString)(e))throw(0,s.error)("i18n: Need string in first argument");if(!e.length)return e;let c=!!(null==i?void 0:i.debugLanguage),u={},d=e=>t&&t.length?l(e,t):e,h=(0,s.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),f=(0,s.defaultLanguage)(null==i?void 0:i.language,h),p=t=>{if(!t)return;if((0,o.isString)(t[e]))return d(t[e]);let i=e.toLowerCase();if((0,o.isString)(t[i]))return d(t[i]);let n=(0,r.ucfirst)(e);if((0,o.isString)(t[n]))return d(t[n])};void 0!==n.lang[f]?u=n.lang[f]:c||(u=void 0!==n.lang[h]?n.lang[h]:n.lang.en);let m=null==i?void 0:i.i18n;if(m&&m[f]){let e=p(m[f]);if(e)return e}return p(u)||(!c&&n.lang.en&&(0,o.isString)(n.lang.en[e])&&n.lang.en[e]?d(n.lang.en[e]):c?"{"+e+"}":(n.IS_PROD,d(e)))}},59007:function(e,t,i){i.d(t,{CamelCaseToKebabCase:function(){return s.CamelCaseToKebabCase},camelCase:function(){return n.camelCase},fuzzySearchIndex:function(){return o.fuzzySearchIndex},i18n:function(){return r.i18n},kebabCase:function(){return s.kebabCase},sprintf:function(){return r.sprintf},stringify:function(){return a.stringify},trim:function(){return l.trim},trimChars:function(){return l.trimChars},trimInv:function(){return l.trimInv},ucfirst:function(){return c.ucfirst}});var n=i(87058),o=i(67477),r=i(56967),s=i(12475),a=i(67462),l=i(49055),c=i(36409)},12475:function(e,t,i){i.d(t,{CamelCaseToKebabCase:function(){return o},kebabCase:function(){return n}});let n=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),o=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},67462:function(e,t,i){i.d(t,{stringify:function(){return n}});function n(e,t={}){if("object"!=typeof e)return e+"";let i=new Set(t.excludeKeys),o=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!i.has(e)){if("object"==typeof t&&null!=t){if(o.get(t))return"[refObject]";o.set(t,!0)}return t}},t.prettify)}},49055:function(e,t,i){i.d(t,{trim:function(){return o},trimChars:function(){return r},trimInv:function(){return s}});var n=i(82758);function o(e){return e.replace((0,n.SPACE_REG_EXP_END)(),"").replace((0,n.SPACE_REG_EXP_START)(),"")}function r(e,t){return e.replace(RegExp(`[${t}]+$`),"").replace(RegExp(`^[${t}]+`),"")}function s(e){return e.replace((0,n.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,n.INVISIBLE_SPACE_REG_EXP_START)(),"")}},36409:function(e,t,i){i.d(t,{ucfirst:function(){return n}});function n(e){return e.length?e[0].toUpperCase()+e.substring(1):""}},25726:function(e,t,i){i.d(t,{alignElement:function(){return a},clearAlign:function(){return s},hAlignElement:function(){return r}});var n=i(22732),o=i(41180);function r(e,t){t&&"normal"!==t?"center"!==t?((0,o.css)(e,"float",t),(0,o.clearCenterAlign)(e)):(0,o.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,o.css)(e,"float")&&-1!==["right","left"].indexOf((0,o.css)(e,"float").toString().toLowerCase())&&(0,o.css)(e,"float",""),(0,o.clearCenterAlign)(e))}function s(e){n.Dom.each(e,e=>{n.Dom.isHTMLElement(e)&&e.style.textAlign&&(e.style.textAlign="",e.style.cssText.trim().length||e.removeAttribute("style"))})}function a(e,t){if(n.Dom.isNode(t)&&n.Dom.isElement(t))switch(s(t),e.toLowerCase()){case"justifyfull":t.style.textAlign="justify";break;case"justifyright":t.style.textAlign="right";break;case"justifyleft":t.style.textAlign="left";break;case"justifycenter":t.style.textAlign="center"}}},63799:function(e,t,i){i.d(t,{alreadyLoadedList:function(){return r},appendScriptAsync:function(){return a},appendStyleAsync:function(){return l},loadNext:function(){return function e(t,i,o=0){return(0,n.isString)(i[o])?a(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,i,o=0){return(0,n.isString)(i[o])?l(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}}});var n=i(70799),o=i(66292);let r=new Map,s=e=>(t,i)=>{if(r.has(i))return r.get(i);let n=e(t,i);return r.set(i,n),n},a=s((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let r=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,o.completeUrl)(t)});e.e.one(r,"error",n).one(r,"load",i),e.od.body.appendChild(r)})),l=s((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let r=e.c.element("link");r.rel="stylesheet",r.media="all",r.crossOrigin="anonymous",e.isInDestruct||e.e.on(r,"load",()=>i(r)).on(r,"error",n),r.href=(0,o.completeUrl)(t),e.o.shadowRoot?e.o.shadowRoot.appendChild(r):e.od.body.appendChild(r)}))},38837:function(e,t,i){i.d(t,{assert:function(){return o}});class n extends Error{constructor(e){super(e),this.name="AssertionError"}}function o(e,t){if(!e)throw new n("Assertion failed: "+t)}},29960:function(e,t,i){i.d(t,{attr:function(){return function e(t,i,l){if(!t||!(0,n.isFunction)(t.getAttribute))return null;if(!(0,r.isString)(i))return Object.keys(i).forEach(n=>{let r=i[n];(0,o.isPlainObject)(r)&&"style"===n?(0,a.css)(t,r):("className"===n&&(n="class"),e(t,n,r))}),null;let c=(0,s.CamelCaseToKebabCase)(i);if(/^-/.test(c)){let i=e(t,"data"+c);if(i)return i;c=c.substr(1)}if(void 0!==l)if(null==l)t.hasAttribute(c)&&t.removeAttribute(c);else{let e=l.toString();return"IMG"===t.nodeName&&("width"===c||"height"===c)&&(e=e.replace("px","")),t.setAttribute(c,e),e}return t.getAttribute(c)}}});var n=i(23282),o=i(72430),r=i(70799),s=i(12475),a=i(41180)},97639:function(e,t,i){i.d(t,{browser:function(){return n}});let n=e=>{let t=navigator.userAgent.toLowerCase(),i=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||0>t.indexOf("compatible")||[];return"version"===e?i[2]:"webkit"===e?"chrome"===i[1]||"webkit"===i[1]:"ff"===e?"firefox"===i[1]:"msie"===e?"trident"===i[1]||"msie"===i[1]:i[1]===e}},44710:function(e,t,i){i.d(t,{buildQuery:function(){return o}});var n=i(72430);let o=(e,t)=>{let i=[],r=encodeURIComponent;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)){let a=t?t+"["+s+"]":s,l=e[s];i.push((0,n.isPlainObject)(l)?o(l,a):r(a)+"="+r(l))}return i.join("&")}},66292:function(e,t,i){i.d(t,{completeUrl:function(){return o}});var n=i(82758);let o=e=>("file:"===n.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)},68934:function(e,t,i){i.d(t,{ConfigDeepFlatten:function(){return function e(t){return(0,c.keys)(t,!1).reduce((i,n)=>(i[n]=(0,o.isPlainObject)(t[n])?e(t[n]):t[n],i),{})}},ConfigFlatten:function(){return u},ConfigMerge:function(){return function e(t,i){Object.keys(i).forEach(n=>{let r=i[n],s=t[n];(0,o.isPlainObject)(r)&&(0,o.isPlainObject)(s)&&!(0,l.isAtom)(r)?e(s,r):t[n]=r})}},ConfigProto:function(){return function e(t,i,c=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let u=a.Config.defaultOptions;if((0,r.isString)(t.preset)){if(void 0!==u.presets[t.preset]){let e=u.presets[t.preset];Object.keys(e).forEach(i=>{(0,s.isVoid)(t[i])&&(t[i]=e[i])})}delete t.preset}let d={};return Object.keys(t).forEach(r=>{let s=t[r],a=i?i[r]:null;if((0,o.isPlainObject)(s)&&(0,o.isPlainObject)(a)&&!(0,l.isAtom)(s)){d[r]=e(s,a,c+1);return}if(0!==c&&(0,n.isArray)(s)&&!(0,l.isAtom)(s)&&(0,n.isArray)(a)){d[r]=[...s,...a.slice(s.length)];return}d[r]=s}),Object.setPrototypeOf(d,i),d}}});var n=i(68345),o=i(72430),r=i(70799),s=i(86068),a=i(6441),l=i(97735),c=i(37790);function u(e){return(0,c.keys)(e,!1).reduce((t,i)=>(t[i]=e[i],t),{})}},55877:function(e,t,i){i.d(t,{convertMediaUrlToVideoEmbed:function(){return s}});var n=i(82758),o=i(26049),r=i(82501);let s=(e,{width:t=400,height:i=345}={})=>{if(!(0,o.isURL)(e))return e;let s=n.globalDocument.createElement("a"),a=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;s.href=e,t||(t=400),i||(i=345);let l=s.protocol||"";switch(s.hostname){case"www.vimeo.com":case"vimeo.com":return a.test(e)?e.replace(a,'<iframe width="'+t+'" height="'+i+'" src="'+l+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):e;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{let n=s.search?(0,r.parseQuery)(s.search):{v:s.pathname.substring(1)};return/^embed\/.*/.test(n.v)&&(n.v=n.v.substring(6)),n.v?'<iframe width="'+t+'" height="'+i+'" src="'+l+"//www.youtube.com/embed/"+n.v+'" frameborder="0" allowfullscreen></iframe>':e}}return e}},41180:function(e,t,i){i.d(t,{clearCenterAlign:function(){return c},css:function(){return l}});var n=i(87612),o=i(72430),r=i(3760),s=i(87058),a=i(12475);function l(e,t,i,c=!1){if((0,n.isBoolean)(i)&&(c=i,i=void 0),(0,o.isPlainObject)(t)||void 0!==i){let n=(e,t,i)=>{void 0!==(i=(0,r.normalizeCssNumericValue)(t,i))&&(null==i||l(e,t,!0)!==(0,r.normalizeCssValue)(t,i))&&(e.style[t]=i)};if((0,o.isPlainObject)(t)){let i=Object.keys(t);for(let o=0;o<i.length;o+=1)n(e,(0,s.camelCase)(i[o]),t[i[o]])}else n(e,(0,s.camelCase)(t),i);return""}let u=(0,a.kebabCase)(t),d=e.ownerDocument||document,h=!!d&&(d.defaultView||d.parentWindow),f=e.style[t],p="";return void 0!==f&&""!==f?p=f:h&&!c&&(p=h.getComputedStyle(e).getPropertyValue(u)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(p.toString())&&(p=parseInt(p.toString(),10)),(0,r.normalizeCssValue)(t,p)}let c=e=>{"block"===l(e,"display")&&l(e,"display","");let{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}},15456:function(e,t,i){i.d(t,{ctrlKey:function(){return n}});let n=e=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}},86583:function(e,t,i){i.d(t,{dataBind:function(){return r}});var n=i(39955);let o=new WeakMap,r=(e,t,i)=>{let r=o.get(e);if(!r){r={},o.set(e,r);let t=null;(0,n.isViewObject)(e.j)&&(t=e.j.e),(0,n.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{o.delete(e)})}return void 0===i?r[t]:(r[t]=i,i)}},96325:function(e,t,i){i.d(t,{defaultLanguage:function(){return r}});var n=i(82758),o=i(70799);let r=(e,t="en")=>"auto"!==e&&(0,o.isString)(e)?e:n.globalDocument.documentElement&&n.globalDocument.documentElement.lang?n.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):t},82760:function(e,t,i){i.d(t,{connection:function(){return r},error:function(){return o},options:function(){return s}});var n=i(32880);function o(e){return TypeError(e)}function r(e){return new n.ConnectionError(e)}function s(e){return new n.OptionsError(e)}},93661:function(e,t,i){i.d(t,{abort:function(){return n}});function n(e="Aborted"){return new DOMException(e,"AbortError")}},86397:function(e,t,i){i.d(t,{ConnectionError:function(){return n}});class n extends Error{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}},32880:function(e,t,i){i.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return n.abort}});var n=i(93661),o=i(86397),r=i(57865)},57865:function(e,t,i){i.d(t,{OptionsError:function(){return n}});class n extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}},89890:function(e,t,i){i.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return o.OptionsError},abort:function(){return o.abort},connection:function(){return n.connection},error:function(){return n.error},options:function(){return n.options}});var n=i(82760),o=i(32880)},97735:function(e,t,i){i.d(t,{fastClone:function(){return s},isAtom:function(){return o},markAsAtomic:function(){return r}});var n=i(67462);function o(e){return e&&e.isAtom}function r(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function s(e){return JSON.parse((0,n.stringify)(e))}},80568:function(e,t,i){i.d(t,{getClassName:function(){return r},keepNames:function(){return o}});var n=i(23282);let o=new Map,r=e=>{var t;if((0,n.isFunction)(e.className))return e.className();let i=(null==(t=e.constructor)?void 0:t.originalConstructor)||e.constructor;if(o.has(i))return o.get(i);if(i.name)return i.name;let r=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=i.toString().match(r);return s?s[1]:""}},94643:function(e,t,i){i.d(t,{get:function(){return r}});var n=i(70799),o=i(86068);function r(e,t){if(!(0,n.isString)(e)||!e.length)return null;let i=e.split("."),r=t;try{for(let e of i){if((0,o.isVoid)(r[e]))return null;r=r[e]}}catch(e){return null}return(0,o.isVoid)(r)?null:r}},38420:function(e,t,i){i.d(t,{humanSizeToBytes:function(){return n}});let n=e=>{if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);let t=e.substr(-2,2).toUpperCase(),i=["KB","MB","GB","TB"],n=parseFloat(e.substr(0,e.length-2));return -1!==i.indexOf(t)?n*Math.pow(1024,i.indexOf(t)+1):parseInt(e,10)}},43555:function(e,t,i){i.d(t,{$$:function(){return E.$$},ConfigDeepFlatten:function(){return u.ConfigDeepFlatten},ConfigFlatten:function(){return u.ConfigFlatten},ConfigMerge:function(){return u.ConfigMerge},ConfigProto:function(){return u.ConfigProto},ConnectionError:function(){return g.ConnectionError},LimitedStack:function(){return D.LimitedStack},OptionsError:function(){return g.OptionsError},abort:function(){return g.abort},alignElement:function(){return n.alignElement},alreadyLoadedList:function(){return o.alreadyLoadedList},appendScriptAsync:function(){return o.appendScriptAsync},appendStyleAsync:function(){return o.appendStyleAsync},assert:function(){return r.assert},attr:function(){return s.attr},browser:function(){return a.browser},buildQuery:function(){return l.buildQuery},call:function(){return A.call},callPromise:function(){return A.callPromise},callThis:function(){return A.callThis},clearAlign:function(){return n.clearAlign},clearCenterAlign:function(){return h.clearCenterAlign},cns:function(){return w.cns},completeUrl:function(){return c.completeUrl},connection:function(){return g.connection},convertMediaUrlToVideoEmbed:function(){return d.convertMediaUrlToVideoEmbed},css:function(){return h.css},cssPath:function(){return E.cssPath},ctrlKey:function(){return f.ctrlKey},dataBind:function(){return p.dataBind},defaultLanguage:function(){return m.defaultLanguage},error:function(){return g.error},fastClone:function(){return v.fastClone},get:function(){return b.get},getClassName:function(){return y.getClassName},getDataTransfer:function(){return A.getDataTransfer},getPropertyDescriptor:function(){return A.getPropertyDescriptor},getXPathByElement:function(){return E.getXPathByElement},hAlignElement:function(){return n.hAlignElement},humanSizeToBytes:function(){return S.humanSizeToBytes},inView:function(){return I.inView},isAtom:function(){return v.isAtom},keepNames:function(){return y.keepNames},keys:function(){return A.keys},loadImage:function(){return A.loadImage},loadNext:function(){return o.loadNext},loadNextStyle:function(){return o.loadNextStyle},markAsAtomic:function(){return v.markAsAtomic},markDeprecated:function(){return w.markDeprecated},markOwner:function(){return A.markOwner},memorizeExec:function(){return A.memorizeExec},options:function(){return g.options},parseQuery:function(){return _.parseQuery},previewBox:function(){return C.previewBox},refs:function(){return E.refs},reset:function(){return k.reset},resolveElement:function(){return E.resolveElement},scrollIntoViewIfNeeded:function(){return I.scrollIntoViewIfNeeded},set:function(){return T.set}});var n=i(25726),o=i(63799),r=i(38837),s=i(29960),a=i(97639),l=i(44710),c=i(66292),u=i(68934),d=i(55877),h=i(41180),f=i(15456),p=i(86583),m=i(96325),g=i(89890),v=i(97735),b=i(94643),y=i(80568),S=i(38420),w=i(95942),_=i(82501),C=i(11628),k=i(58844),I=i(26395),E=i(76078),T=i(3703),D=i(50535),A=i(37790)},95942:function(e,t,i){i.d(t,{cns:function(){return n},markDeprecated:function(){return o}});let n=console;function o(e,t=[""],i=null){return(...o)=>(n.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...o))}},82501:function(e,t,i){i.d(t,{parseQuery:function(){return n}});let n=e=>{let t={},i=e.substring(1).split("&");for(let e=0;e<i.length;e+=1){let n=i[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")}return t}},11628:function(e,t,i){i.d(t,{previewBox:function(){return l}});var n=i(2748),o=i(70799),r=i(29960),s=i(41180),a=i(76078);function l(e,t,i="px",c=null){let u=[],d=function(e,t){let i=[];try{(0,a.$$)("img",e.editor).forEach(o=>{let s=[(0,r.attr)(o,"width"),(0,r.attr)(o,"height"),o.src];(0,r.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});let a=e.createInside.a();e.ed.body.appendChild(a),a.href=o.src,o.src=a.href,n.Dom.safeRemove(a),i.push(()=>{var e;o.src=null!=(e=s[2])?e:"",(0,r.attr)(o,{width:s[0]||null,height:s[1]||null})})})}catch(e){throw i.forEach(e=>e()),i.length=0,e}return i}(e,i);try{let a=e.e.fire("beforePreviewBox",t,i);if(null!=a)return a;let l=e.c.div("jodit__preview-box jodit-context");c&&c.appendChild(l),(0,s.css)(l,{position:"relative",padding:16});let d=e.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${e.i18n("Empty")}</div>`;if(e.iframe){let t=e.create.element("iframe");(0,s.css)(t,{minWidth:800,minHeight:600,border:0}),l.appendChild(t);let i=t.contentWindow;if(i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),l=i.document.body,"function"==typeof ResizeObserver)){let n=!1,o=i.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(o),t.style.height=`${o.offsetHeight+20}px`,e.async.requestAnimationFrame(()=>{n||r.observe(o)})},100)),s=()=>{n=!0,r.unobserve(o),r.disconnect(),e.e.off("beforeDestruct",s)};u.push(s),e.e.on("beforeDestruct",s)}}else(0,s.css)(l,{minWidth:1024,minHeight:600,border:0});let h=(t,i)=>{let s=(0,o.isString)(i)?e.c.div():i;(0,o.isString)(i)&&(s.innerHTML=i);for(let e=0;e<s.childNodes.length;e+=1){let i=s.childNodes[e];if(n.Dom.isElement(i)){let e=t.ownerDocument.createElement(i.nodeName);for(let t=0;t<i.attributes.length;t+=1)(0,r.attr)(e,i.attributes[t].nodeName,i.attributes[t].nodeValue);0===i.childNodes.length||n.Dom.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(e.textContent=i.textContent):i.innerHTML&&(e.innerHTML=i.innerHTML):h(e,i);try{t.appendChild(e)}catch(e){}}else try{t.appendChild(i.cloneNode(!0))}catch(e){}}};return h(l,d),e.e.fire("afterPreviewBox",l),[l,()=>{u.forEach(e=>e())}]}finally{d.forEach(e=>e())}}},58844:function(e,t,i){i.d(t,{reset:function(){return a}});var n=i(82758),o=i(23282),r=i(94643);let s={};function a(e){var t,i;if(!(e in s)){let i=n.globalDocument.createElement("iframe");try{if(i.src="about:blank",n.globalDocument.body.appendChild(i),!i.contentWindow)return null;let t=(0,r.get)(e,i.contentWindow),a=(0,r.get)(e.split(".").slice(0,-1).join("."),i.contentWindow);(0,o.isFunction)(t)&&(s[e]=t.bind(a))}catch(e){if(!n.IS_PROD)throw e}finally{null==(t=i.parentNode)||t.removeChild(i)}}return null!=(i=s[e])?i:null}},26395:function(e,t,i){i.d(t,{inView:function(){return o},scrollIntoViewIfNeeded:function(){return r}});var n=i(2748);function o(e,t,i){let n=e.getBoundingClientRect(),o=e,r=n.top,s=n.height;for(;o&&o!==t&&o.parentNode;)if(!(r<=(n=(o=o.parentNode).getBoundingClientRect()).bottom)||r+s<=n.top)return!1;return r<=(i.documentElement&&i.documentElement.clientHeight||0)}function r(e,t,i){n.Dom.isHTMLElement(e)&&!o(e,t,i)&&(t.clientHeight!==t.scrollHeight&&(t.scrollTop=e.offsetTop),o(e,t,i)||e.scrollIntoView())}},76078:function(e,t,i){i.d(t,{$$:function(){return d},cssPath:function(){return p},getXPathByElement:function(){return h},refs:function(){return f},resolveElement:function(){return m}});var n=i(82758),o=i(2748),r=i(4510),s=i(70799),a=i(87058),l=i(29960),c=i(89890);let u=1;function d(e,t){let i;if(!n.IS_ES_NEXT&&/:scope/.test(e)&&n.IS_IE&&!(t&&t.nodeType===Node.DOCUMENT_NODE)){let n=t.id,o=n||"_selector_id_"+(Math.random()+"").slice(2)+ ++u;e=e.replace(/:scope/g,"#"+o),n||t.setAttribute("id",o),i=t.parentNode.querySelectorAll(e),n||t.removeAttribute("id")}else i=t.querySelectorAll(e);return[].slice.call(i)}let h=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE||!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";let i=[].filter.call(e.parentNode.childNodes,t=>t.nodeName===e.nodeName);return h(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(i.length>1?"["+((0,r.toArray)(i).indexOf(e)+1)+"]":"")},f=e=>("container"in e&&(e=e.container),d("[ref],[data-ref]",e).reduce((e,t)=>{let i=(0,l.attr)(t,"-ref");return i&&(0,s.isString)(i)&&(e[(0,a.camelCase)(i)]=t,e[i]=t),e},{})),p=e=>{if(!o.Dom.isElement(e))return null;let t=[],i=e;for(;i&&i.nodeType===Node.ELEMENT_NODE;){let e=i.nodeName.toLowerCase();if(i.id){e+="#"+i.id,t.unshift(e);break}{let t=i,n=1;do(t=t.previousElementSibling)&&t.nodeName.toLowerCase()===e&&n++;while(t)e+=":nth-of-type("+n+")"}t.unshift(e),i=i.parentNode}return t.join(" > ")};function m(e,t){let i=e;if((0,s.isString)(e))try{i=t.querySelector(e)}catch(t){throw(0,c.error)('String "'+e+'" should be valid HTML selector')}if(!i||"object"!=typeof i||!o.Dom.isElement(i)||!i.cloneNode)throw(0,c.error)('Element "'+e+'" should be string or HTMLElement instance');return i}},3703:function(e,t,i){i.d(t,{set:function(){return a}});var n=i(68345),o=i(29807),r=i(72430),s=i(70799);function a(e,t,i){if(!(0,s.isString)(e)||!e.length)return;let a=e.split("."),l=i,c=a[0];for(let e=0;e<a.length-1;e+=1)c=a[e],(0,n.isArray)(l[c])||(0,r.isPlainObject)(l[c])||(l[c]=(0,o.isNumeric)(a[e+1])?[]:{}),l=l[c];l&&(l[a[a.length-1]]=t)}},50535:function(e,t,i){i.d(t,{LimitedStack:function(){return n}});class n{push(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(e){return this.stack.find(e)}constructor(e){this.limit=e,this.stack=[]}}},37790:function(e,t,i){i.d(t,{call:function(){return a},callPromise:function(){return u},callThis:function(){return l},getDataTransfer:function(){return p},getPropertyDescriptor:function(){return m},keys:function(){return h},loadImage:function(){return d},markOwner:function(){return c},memorizeExec:function(){return f}});var n=i(14773),o=i(86068),r=i(29960),s=i(86583);function a(e,...t){return e(...t)}function l(e,t,...i){return e.apply(t,i)}function c(e,t){(0,r.attr)(t,"data-editor_id",e.id),t.component||Object.defineProperty(t,"jodit",{value:e})}function u(e,t){return(0,n.isPromise)(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}let d=(e,t)=>t.async.promise((i,n)=>{let o=new Image,r=()=>{t.e.off(o),null==n||n()},s=()=>{t.e.off(o),i(o)};t.e.one(o,"load",s).one(o,"error",r).one(o,"abort",r),o.src=e,o.complete&&s()}),h=(e,t=!0)=>{if(t)return Object.keys(e);let i=[];for(let t in e)i.push(t);return i},f=(e,t,{control:i},n)=>{var r;let a="button"+i.command,l=null!=(r=i.args&&i.args[0])?r:(0,s.dataBind)(e,a);if((0,o.isVoid)(l))return!1;(0,s.dataBind)(e,a,l),n&&(l=n(l)),e.execCommand(i.command,!1,null!=l?l:void 0)},p=e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}};function m(e,t){let i;do i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!i&&e)return i}},31359:function(e,t,i){i.d(t,{init:function(){return s}});var n=i(82758),o=i(60132),r=i(14041);function s(e,t,i,s,a,l,c){if((0,o.isInitable)(s))try{s.init(e)}catch(e){if(!n.IS_PROD)throw e}a.set(t,s),l.delete(t),s.hasStyle&&(0,r.loadStyle)(e,t).catch(e=>{n.IS_PROD}),s.styles&&(c(e,t,"style").innerHTML=s.styles)}},14041:function(e,t,i){i.d(t,{loadExtras:function(){return u},loadStyle:function(){return l}});var n=i(82758),o=i(12475),r=i(63799),s=i(89672);let a=new Set;async function l(e,t){let i=c(e,t,!1);if(!a.has(i))return a.add(i),(0,r.appendStyleAsync)(e,i)}function c(e,t,i){t=(0,o.kebabCase)(t);let n=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+n+"."+(i?"js":"css")}function u(e,t,i,o){try{let n=i.filter(t=>!e.has((0,s.normalizeName)(t.name)));n.length&&n.map(e=>{let i=e.url||c(t,e.name,!0);return(0,r.appendScriptAsync)(t,i).then(o).catch(()=>null)})}catch(e){if(!n.IS_PROD)throw e}}},48591:function(e,t,i){i.d(t,{makeInstance:function(){return r}});var n=i(82758),o=i(23282);function r(e,t){try{try{return(0,o.isFunction)(t)?new t(e):t}catch(i){if((0,o.isFunction)(t)&&!t.prototype)return t(e)}}catch(e){if(!n.IS_PROD)throw e}return null}},89672:function(e,t,i){i.d(t,{normalizeName:function(){return o}});var n=i(12475);function o(e){return(0,n.kebabCase)(e).toLowerCase()}},50911:function(e,t,i){i.d(t,{Plugin:function(){return n.Plugin}});var n=i(20356);i(41876)},41876:function(e,t,i){i.d(t,{PluginSystem:function(){return f}});var n=i(82758),o=i(57012),r=i(46559),s=i(68345),a=i(60132),l=i(70799),c=i(31359),u=i(14041),d=i(48591),h=i(89672);class f{get size(){return this.__items.size}add(e,t){this.__items.set((0,h.normalizeName)(e),t),o.eventEmitter.fire(`plugin:${e}:ready`)}get(e){return this.__items.get((0,h.normalizeName)(e))}remove(e){this.__items.delete((0,h.normalizeName)(e))}__getFullPluginsList(e){let t=[];return this.__items.forEach((i,n)=>{(!e||e.has(n))&&t.push([n,i])}),t}__init(e){let{extraList:t,disableList:i,filter:o}={extraList:e.o.extraPlugins.map(e=>(0,l.isString)(e)?{name:e}:e),disableList:new Set((0,r.splitArray)(e.o.disablePlugins).map(h.normalizeName)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null},f=new Map,p={},m=new Set;e.__plugins=p;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(o).forEach(([n,o])=>{if(i.has(n)||f.has(n))return;let r=null==o?void 0:o.requires;if(r&&(0,s.isArray)(r)&&r.length){if(r.some(e=>i.has(e)))return;if(!r.every(e=>f.has(e)))return void m.add(n)}t=!0;let a=(0,d.makeInstance)(e,o);if(!a){f.set(n,null),m.delete(n);return}(0,c.init)(e,n,o,a,f,m,this.opts.getContainer),p[n]=a}),t&&(e.e.fire("updatePlugins"),g())};t&&t.length&&(0,u.loadExtras)(this.__items,e,t,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(p).forEach(t=>{let i=p[t];(0,a.isDestructable)(i)&&i.destruct(e),delete p[t]}),delete e.__plugins}),n.IS_PROD||m.size}wait(e){return new Promise(t=>{if(this.get(e))return t();let i=()=>{t(),o.eventEmitter.off(`plugin:${e}:ready`,i)};o.eventEmitter.on(`plugin:${e}:ready`,i)})}constructor(e){this.opts=e,this.__items=new Map}}},20356:function(e,t,i){i.d(t,{Plugin:function(){return a}});var n=i(91907),o=i(65478),r=i(19306),s=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class a extends n.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:e,buttons:t}=this;t&&(0,r.isJoditObject)(e)&&t.forEach(t=>{e.registerButton(t)})}__afterInit(){this.__inited=!0,this.setStatus(n.STATUSES.ready),this.afterInit(this.jodit)}init(e){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){var e;if(this.isInDestruct)return;let{j:t}=this;if(t.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(n.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,r.isJoditObject)(t)&&(null==(e=this.buttons)||e.forEach(e=>{null==t||t.unregisterButton(e)})),this.beforeDestruct(this.j),super.destruct()}constructor(e){super(e),this.buttons=[],this.hasStyle=!1,this.__inited=!1,e.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}a.requires=[],s([o.autobind],a.prototype,"__afterPluginSystemInit",null),s([o.autobind],a.prototype,"__afterInit",null),s([o.autobind],a.prototype,"__beforeDestruct",null)},54079:function(e,t,i){i.d(t,{Ajax:function(){return u}});var n=i(8884),o=i(82758),r=i(45219),s=i(21537),a=i(89890),l=i(6441);i(57459);var c=i(98582);class u{className(){return"Ajax"}__buildParams(e,t){return(0,s.isPlainObject)(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):(0,s.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):(0,s.isString)(e)||e instanceof o.globalWindow.FormData||"object"==typeof e&&null!=e&&(0,s.isFunction)(e.append)?e:(0,s.buildQuery)(e)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(e){}return this}send(){this.__activated=!0;let{xhr:e,o:t}=this,i=this.prepareRequest();return this.__async.promise(async(n,o)=>{var r;let l=()=>{this.__isFulfilled=!0,o(a.connection("Connection error"))},u=()=>{this.__isFulfilled=!0,n(new c.Response(i,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=u,e.onabort=()=>{this.__isFulfilled=!0,o(a.abort("Abort connection"))},e.onerror=l,e.ontimeout=l,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,i;let n=0;e.lengthComputable&&(n=e.loaded/e.total*100),null==(i=(t=this.options).onProgress)||i.call(t,n)},e.onreadystatechange=()=>{var i,n;null==(n=(i=this.options).onProgress)||n.call(i,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?u():e.statusText&&(this.__isFulfilled=!0,o(a.connection(e.statusText))))},e.withCredentials=null!=(r=t.withCredentials)&&r;let{url:d,data:h,method:f}=i;e.open(f,d,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:p}=t;(0,s.isFunction)(p)&&(p=await p.call(this)),p&&e.setRequestHeader&&Object.keys(p).forEach(t=>{e.setRequestHeader(t,p[t])}),this.__async.setTimeout(()=>{e.send(h?this.__buildParams(h):void 0)},0)})}async *stream(){var e;this.__activated=!0;let{xhr:t,o:i}=this,n=this.prepareRequest(),o=0,r="",l=[],c=null,u=!1,d=null,h=()=>{if(c){let e=c;c=null,e()}},f=e=>{var i;let n=t.responseText;r+=n.substring(o),o=n.length;let s=r.split(`
11
11
 
12
12
  `);for(let t of(r=e?"":null!=(i=s.pop())?i:"",s)){let e=t.trim();if(!e)continue;let i=[];for(let t of e.split(`
@@ -269,4 +269,4 @@
269
269
  >${e.o.specialCharacters[t]}</a>`);a.push(r),o.appendChild(r),i.appendChild(o)}r.appendChild(i)}let l=this;return e.e.on(a,"focus",function(){i.innerHTML=this.innerHTML}).on(a,"mousedown",function(t){o.Dom.isTag(this,"a")&&(e.s.focus(),e.s.insertHTML(this.innerHTML),(null==t?void 0:t.shiftKey)||e.e.fire(this,"close_dialog"),t&&t.preventDefault(),t&&t.stopImmediatePropagation())}).on(a,"mouseenter",function(){o.Dom.isTag(this,"a")&&this.focus()}).on(a,"keydown",t=>{let i=t.target;if(o.Dom.isTag(i,"a")){let o,r=parseInt((0,s.attr)(i,"-index")||"0",10),c=parseInt((0,s.attr)(i,"data-index-j")||"0",10);switch(t.key){case n.KEY_UP:case n.KEY_DOWN:void 0===a[o=t.key===n.KEY_UP?r-l.__countInRow:r+l.__countInRow]&&(o=t.key===n.KEY_UP?Math.floor(a.length/l.__countInRow)*l.__countInRow+c:c)>a.length-1&&(o-=l.__countInRow),a[o]&&a[o].focus();break;case n.KEY_RIGHT:case n.KEY_LEFT:void 0===a[o=t.key===n.KEY_LEFT?r-1:r+1]&&(o=t.key===n.KEY_LEFT?a.length-1:0),a[o]&&a[o].focus();break;case n.KEY_ENTER:e.e.fire(i,"mousedown"),t.stopImmediatePropagation(),t.preventDefault()}}}),t})}beforeDestruct(e){e.e.off("generateSpecialCharactersTable.symbols")}constructor(e){super(e),this.buttons=[{name:"symbols",group:"insert"}],this.__countInRow=17,(0,r.extendLang)(l)}}r.pluginSystem.add("symbols",c)},5119:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg> '},47686:function(e,t,i){i.d(t,{onTabInsideLi:function(){return n.onTabInsideLi}});var n=i(26658)},26658:function(e,t,i){i.d(t,{onTabInsideLi:function(){return r}});var n=i(2748),o=i(38837);function r(e,t=!1){let i,s,a,l;if(!e.o.tab.tabInsideLiInsertNewList)return!1;let[c,u]=(i=e.createInside.fake(),s=e.createInside.fake(),(a=e.s.range.cloneRange()).collapse(!0),a.insertNode(i),(l=e.s.range.cloneRange()).collapse(!1),l.insertNode(s),[i,s]);try{let i,r,s,a,l,u=!!(i=n.Dom.closest(c,"li",e.editor))&&(!!t||!!n.Dom.isLeaf(i.previousElementSibling))&&(!t||!!n.Dom.closest(i,"li",e.editor))&&i;if(!u||!(r=n.Dom.closest(c,"li",e.editor))||r!==u&&!u.contains(r))return!1;let d=n.Dom.closest(u,["ol","ul"],e.editor);if(!d||t&&!n.Dom.closest(d,"li",e.editor))return!1;return t?function(e,t,i){let r=n.Dom.closest(t,"li",e.editor);(0,o.assert)(r,"tab parent li is null");let s=Array.from(t.children).filter(e=>n.Dom.isLeaf(e));n.Dom.after(r,i);let a=s.indexOf(i);if((0===a||1===s.length)&&n.Dom.safeRemove(t),a!==s.length-1){let e=t.cloneNode();n.Dom.append(i,e);for(let t=a+1;t<s.length;t+=1)n.Dom.append(e,s[t])}}(e,d,u):(s=u.previousElementSibling,(0,o.assert)(s,"tab previousElementSibling is null"),a=s.lastElementChild,(l=n.Dom.isTag(a,d.tagName)?a:e.createInside.element(d.tagName,Array.from(d.attributes).reduce((e,t)=>(e[t.name]=t.value,e),{}))).appendChild(u),a!==l&&s.appendChild(l)),!0}finally{let t=e.s.createRange();t.setStartAfter(c),t.setEndBefore(u),e.s.selectRange(t),n.Dom.safeRemove(c),n.Dom.safeRemove(u)}}},66288:function(e,t,i){i(6441).Config.prototype.tab={tabInsideLiInsertNewList:!0}},767:function(e,t,i){var n=i(82758),o=i(65478),r=i(580),s=i(50911);i(66288);var a=i(47686),l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends s.Plugin{afterInit(e){}__onTab(e){if(e.key===n.KEY_TAB&&this.__onShift(e.shiftKey))return!1}__onCommand(e){if(("indent"===e||"outdent"===e)&&this.__onShift("outdent"===e))return!1}__onShift(e){let t=(0,a.onTabInsideLi)(this.j,e);return t&&this.j.e.fire("afterTab",e),t}beforeDestruct(e){}}l([(0,o.watch)(":keydown.tab")],c.prototype,"__onTab",null),l([(0,o.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),r.pluginSystem.add("tab",c)},72439:function(e,t,i){var n=i(82758),o=i(2748),r=i(580),s=i(21537),a=i(76014);let l=new Set([n.KEY_TAB,n.KEY_LEFT,n.KEY_RIGHT,n.KEY_UP,n.KEY_DOWN]);r.pluginSystem.add("tableKeyboardNavigation",function(e){e.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",t=>{let{key:i}=t,r=function(e,t){if(!l.has(t))return;let i=e.s.current();if(!i)return;let r=o.Dom.up(i,o.Dom.isCell,e.editor);if(!r)return;let{range:a}=e.s;if(t!==n.KEY_TAB&&i!==r){let e=t===n.KEY_RIGHT||t===n.KEY_DOWN,l=(0,s.call)(e?o.Dom.next:o.Dom.prev,i,e=>t===n.KEY_UP||t===n.KEY_DOWN?o.Dom.isTag(e,"br"):!!e,r);if(!e&&(l||t!==n.KEY_UP&&o.Dom.isText(i)&&0!==a.startOffset)||e&&(l||t!==n.KEY_DOWN&&o.Dom.isText(i)&&i.nodeValue&&a.startOffset!==i.nodeValue.length))return}return r}(e,i);if(!r)return;let c=e.getInstance(a.Table,e.o),u=o.Dom.closest(r,"table",e.editor),d=null,h=i===n.KEY_LEFT||t.shiftKey,f=()=>(0,s.call)(h?o.Dom.prev:o.Dom.next,r,o.Dom.isCell,u);switch(i){case n.KEY_TAB:case n.KEY_LEFT:(d=f())||(c.appendRow(u,!!h&&u.querySelector("tr"),!h),d=f());break;case n.KEY_UP:case n.KEY_DOWN:{let e=c.formalMatrix(u),[t,o]=c.formalCoordinate(u,r);i===n.KEY_UP?void 0!==e[t-1]&&(d=e[t-1][o]):void 0!==e[t+1]&&(d=e[t+1][o])}}if(d){if(e.e.fire("hidePopup hideResizer"),d.firstChild)i===n.KEY_TAB?e.s.select(d,!0):e.s.setCursorIn(d,i===n.KEY_RIGHT||i===n.KEY_DOWN);else{let t=e.createInside.element("br");d.appendChild(t),e.s.setCursorBefore(t)}return e.synchronizeValues(),!1}})})},40329:function(e,t,i){var n=i(22732),o=i(21537),r=i(43555),s=i(12153),a=i(6441),l=i(6091);a.Config.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},s.Icon.set("table",l.default),a.Config.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup(e,t,i,s){e.editor.normalize();let a=e.history.snapshot.make(),l=s.control,c=l.data&&l.data.rows?l.data.rows:10,u=l.data&&l.data.cols?l.data.cols:10,d=e.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+(()=>{if(!e.o.table.useExtraClassesOptions)return"";let t=[];if(l.data){let e=l.data.classList;Object.keys(e).forEach(i=>{t.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${i}" type="checkbox"/>${e[i]}</label>`)})}return t.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> &times; <span>1</span></label></form>'),h=d.querySelectorAll("span")[0],f=d.querySelectorAll("span")[1],p=d.querySelector(".jodit-form__container"),m=d.querySelector(".jodit-form__options"),g=[],v=c*u;for(let t=0;t<v;t+=1)g[t]||g.push(e.c.element("span",{dataIndex:t}));if(e.e.on(p,"mousemove",(e,t)=>{let i=e.target;if(!n.Dom.isTag(i,"span"))return;let o=void 0===t||isNaN(t)?parseInt((0,r.attr)(i,"-index")||"0",10):t||0,s=Math.ceil((o+1)/u),a=o%u+1;for(let e=0;e<g.length;e+=1)a>=e%u+1&&s>=Math.ceil((e+1)/u)?g[e].className="jodit_hovered":g[e].className="";f.textContent=a.toString(),h.textContent=s.toString()}).on(p,"touchstart mousedown",t=>{let s=t.target;if(t.preventDefault(),t.stopImmediatePropagation(),!n.Dom.isTag(s,"span"))return;let l=parseInt((0,r.attr)(s,"-index")||"0",10),c=Math.ceil((l+1)/u),d=l%u+1,h=e.createInside,f=h.element("tbody"),p=h.element("table");p.appendChild(f);let g=null,v,b;for(let e=1;c>=e;e+=1){v=h.element("tr");for(let e=1;e<=d;e+=1)b=h.element("td"),g||(g=b),(0,o.css)(b,"width",(100/d).toFixed(4)+"%"),b.appendChild(h.element("br")),v.appendChild(h.text(`
270
270
  `)),v.appendChild(h.text(" ")),v.appendChild(b);f.appendChild(h.text(`
271
271
  `)),f.appendChild(v)}(0,o.$$)("input[type=checkbox]:checked",m).forEach(e=>{e.value.split(/[\s]+/).forEach(e=>{p.classList.add(e)})}),e.s.restore(),e.s.removeMarkers(),e.editor.normalize(),e.history.snapshot.restore(a);let y=n.Dom.furthest(e.s.current(),n.Dom.isBlock,e.editor);if(y&&n.Dom.isEmpty(y))n.Dom.replace(y,p,void 0,!1,!0);else if(y){let t=h.text(`
272
- `);if(e.o.table.splitBlockOnInsertTable){let i=e.s.range;i.collapse(!1),i.insertNode(t),i.collapse(!1),e.s.selectRange(i);let o=e.s.splitSelection(y,t);o?n.Dom.after(o,p):n.Dom.after(y,p)}else n.Dom.after(y,t),n.Dom.after(t,p)}else e.s.insertNode(p,!1);g&&(e.s.setCursorIn(g),(0,o.scrollIntoViewIfNeeded)(g,e.editor,e.ed)),i()}),s&&s.parentElement){for(let t=0;t<c;t+=1){let i=e.c.div();for(let e=0;e<u;e+=1)i.appendChild(g[t*u+e]);p.appendChild(i)}g[0]&&(g[0].className="hovered")}return d},tooltip:"Insert table"}},43003:function(e,t,i){var n=i(580);i(40329),n.pluginSystem.add("table",function(e){e.registerButton({name:"table",group:"insert"})})},6091:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg> '},14984:function(e,t,i){var n=i(21537),o=i(62843),r=i(2525),s=i(12153),a=i(6441),l=i(92762),c=i(37775);a.Config.prototype.video={parseUrlToVideoEmbed:n.convertMediaUrlToVideoEmbed,defaultWidth:400,defaultHeight:345},s.Icon.set("video",c.default),a.Config.prototype.controls.video={popup(e,t,i){let s=new r.UIForm(e,[new r.UIBlock(e,[new r.UIInput(e,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new r.UIBlock(e,[(0,o.Button)(e,"","Insert","primary").onAction(()=>s.submit())])]),a=new r.UIForm(e,[new r.UIBlock(e,[new r.UITextArea(e,{name:"code",required:!0,label:"Embed code"})]),new r.UIBlock(e,[(0,o.Button)(e,"","Insert","primary").onAction(()=>a.submit())])]),c=[],u=t=>{e.s.restore(),e.s.insertHTML(t),i()};return e.s.save(),c.push({icon:"link",name:"Link",content:s.container},{icon:"source",name:"Code",content:a.container}),s.onSubmit(t=>{var i,o,r,s;u((0,n.call)(null!=(o=null==(i=e.o.video)?void 0:i.parseUrlToVideoEmbed)?o:n.convertMediaUrlToVideoEmbed,t.url,{width:null==(r=e.o.video)?void 0:r.defaultWidth,height:null==(s=e.o.video)?void 0:s.defaultHeight}))}),a.onSubmit(e=>{u(e.code)}),(0,l.TabsWidget)(e,c)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},26551:function(e,t,i){var n=i(580);i(14984),n.pluginSystem.add("video",function(e){e.registerButton({name:"video",group:"media"})})},37775:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg> '},96967:function(e,t,i){i(6441).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},72253:function(e,t,i){var n=i(65478),o=i(22732),r=i(580),s=i(70799),a=i(50911);i(96967);var l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends a.Plugin{afterInit(e){"br"!==e.o.enter.toLowerCase()&&e.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}beforeDestruct(e){e.e.off(".wtn")}postProcessSetEditorValue(){let{jodit:e}=this;if(!e.isEditorMode())return;let t=e.editor.firstChild,i=!1;for(;t;){if(t=function(e,t){let i=e,n=e;do if(o.Dom.isElement(n)&&o.Dom.isLeaf(n)&&!o.Dom.isList(n.parentElement)){let e=o.Dom.findNotEmptySibling(n,!1);o.Dom.isTag(i,"ul")?i.appendChild(n):i=o.Dom.wrap(n,"ul",t.createInside),n=e}else break;while(n)return i}(t,e),this.isSuitableStart(t)){i||e.s.save(),i=!0;let n=e.createInside.element(e.o.enter);for(o.Dom.before(t,n);t&&this.isSuitable(t);){let e=t.nextSibling;n.appendChild(t),t=e}n.normalize(),t=n}t=t&&t.nextSibling}i&&(e.s.restore(),"afterInit"===e.e.current&&e.e.fire("internalChange"))}preprocessInput(){let{jodit:e}=this,t="afterInit"===e.e.current;if(!e.isEditorMode()||e.editor.firstChild||!e.o.wrapNodes.emptyBlockAfterInit&&t)return;let i=e.createInside.element(e.o.enter),n=e.createInside.element("br");o.Dom.append(i,n),o.Dom.append(e.editor,i),(e.s.isFocused()||"backSpaceAfterDelete"===e.e.current)&&e.s.setCursorBefore(n),e.e.fire("internalChange")}constructor(){super(...arguments),this.isSuitableStart=e=>{var t;return o.Dom.isText(e)&&(0,s.isString)(e.nodeValue)&&(/[^\s]/.test(e.nodeValue)||(null==(t=e.parentNode)?void 0:t.firstChild)===e&&this.isSuitable(e.nextSibling))||this.isNotWrapped(e)&&!o.Dom.isTemporary(e)},this.isSuitable=e=>o.Dom.isText(e)||this.isNotWrapped(e),this.isNotWrapped=e=>o.Dom.isElement(e)&&!(o.Dom.isBlock(e)||o.Dom.isTag(e,this.j.o.wrapNodes.exclude))}}l([n.autobind],c.prototype,"postProcessSetEditorValue",null),l([n.autobind],c.prototype,"preprocessInput",null),r.pluginSystem.add("wrapNodes",c)},86012:function(e,t,i){i(6441).Config.prototype.showXPathInStatusbar=!0},83671:function(e,t,i){var n=i(82758),o=i(22732),r=i(580),s=i(49055),a=i(29960),l=i(76078),c=i(50911),u=i(80870),d=i(21491);i(86012);class h extends c.Plugin{afterInit(){if(this.j.o.showXPathInStatusbar){this.container=this.j.c.div("jodit-xpath"),(0,a.attr)(this.container,"role","list");let e=()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===n.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=n.INVISIBLE_SPACE),this.appendSelectAll()))};this.j.e.off(".xpath").on("pointerup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",e),e(),this.calcPath()}}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),o.Dom.safeRemove(this.container),delete this.menu,delete this.container}constructor(){super(...arguments),this.onContext=(e,t)=>(this.menu||(this.menu=new u.ContextMenu(this.j)),this.menu.show(t.clientX,t.clientY,[{icon:"bin",title:e===this.j.editor?"Clear":"Remove",exec:()=>{e!==this.j.editor?o.Dom.safeRemove(e):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(e)}}]),!1),this.onSelectPath=(e,t)=>{this.j.s.focus();let i=(0,a.attr)(t.target,"-path")||"/";if("/"===i)return this.j.execCommand("selectall"),!1;try{let e=this.j.ed.evaluate(i,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(e)return this.j.s.select(e),!1}catch(e){}return this.j.s.select(e),!1},this.tpl=(e,t,i,n)=>{let o=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${t}" title="${n}" tabindex="-1"'>${(0,s.trim)(i)}</a></span>`),r=o.firstChild;return this.j.e.on(r,"click",this.onSelectPath.bind(this,e)).on(r,"contextmenu",this.onContext.bind(this,e)),o},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=(0,d.makeButton)(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)},this.calcPathImd=()=>{if(this.isDestructed)return;let e=this.j.s.current();if(this.container&&(this.container.innerHTML=n.INVISIBLE_SPACE),e){let t,i,n;o.Dom.up(e,e=>{e&&this.j.editor!==e&&!o.Dom.isText(e)&&!o.Dom.isComment(e)&&(t=e.nodeName.toLowerCase(),i=(0,l.getXPathByElement)(e,this.j.editor).replace(/^\//,""),n=this.tpl(e,i,t,this.j.i18n("Select %s",t)),this.container&&this.container.insertBefore(n,this.container.firstChild))},this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout,!0)}}r.pluginSystem.add("xpath",h)},78173:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> '},16260:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> '},37663:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> '},51036:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> '},31554:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg> '},18309:function(e,t){t.default='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg> '},99762:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg> '},7903:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg> '},58032:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg> '},52507:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg> '},43478:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg> '},60097:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg> '},49155:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg> '},17555:function(e,t,i){i.r(t),i.d(t,{angle_down:function(){return n.default},angle_left:function(){return o.default},angle_right:function(){return r.default},angle_up:function(){return s.default},bin:function(){return a.default},cancel:function(){return l.default},center:function(){return c.default},check:function(){return u.default},chevron:function(){return d.default},dots:function(){return h.default},eye:function(){return f.default},file:function(){return p.default},folder:function(){return m.default},info_circle:function(){return g.default},left:function(){return v.default},lock:function(){return b.default},ok:function(){return y.default},pencil:function(){return S.default},plus:function(){return w.default},resize_handler:function(){return _.default},right:function(){return C.default},save:function(){return k.default},settings:function(){return I.default},unlock:function(){return E.default},update:function(){return T.default},upload:function(){return D.default},valign:function(){return A.default}});var n=i(78173),o=i(16260),r=i(37663),s=i(51036),a=i(31554),l=i(18309),c=i(99762),u=i(7903),d=i(58032),h=i(52507),f=i(43478),p=i(60097),m=i(49155),g=i(17176),v=i(57882),b=i(58908),y=i(24829),S=i(4038),w=i(45575),_=i(84858),C=i(445),k=i(36886),I=i(10766),E=i(33651),T=i(20362),D=i(12202),A=i(80152)},17176:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg> '},57882:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> '},58908:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg> '},24829:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg> '},4038:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg> '},45575:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg> '},84858:function(e,t){t.default='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg> '},445:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> '},36886:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg> '},10766:function(e,t){t.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg> '},33651:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg> '},20362:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg> '},12202:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg> '},80152:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg> '},31356:function(e,t,i){i.d(t,{ListReconciler:function(){return n}});class n{static reconcile(e,t,i){let{getId:n,isEqual:o=(e,t)=>n(e)===n(t),preserveOrder:r=!0}=i,s=new Map,a=new Map;e.forEach((e,t)=>{let i=n(e);s.set(i,e),a.set(i,t)});let l=new Map,c=new Map;t.forEach((e,t)=>{let i=n(e);l.set(i,e),c.set(i,t)});let u=[],d=[],h=[],f=[];return t.forEach((e,t)=>{let i=n(e),l=s.get(i);l?!o(l,e)||r&&a.get(i)!==t?d.push({oldItem:l,newItem:e,index:r?t:a.get(i)}):f.push(l):u.push(e)}),e.forEach(e=>{let t=n(e);l.has(t)||h.push(e)}),{toCreate:u,toUpdate:d,toRemove:h,unchanged:f}}static applyResult(e,t,i={}){t.toRemove.forEach(t=>{let n=e.indexOf(t);-1!==n&&(i.onRemove?.(t,n),e.splice(n,1))}),t.toUpdate.forEach(({oldItem:t,newItem:n,index:o})=>{let r=e.indexOf(t);-1!==r&&(i.onUpdate?.(t,n,o),e[r]=n)}),t.toCreate.forEach(t=>{i.onCreate?.(t,e.length),e.push(t)})}}},2692:function(e,t,i){i.d(t,{JoditPro:function(){return a}});var n=i(82758),o=i(63799),r=i(41180),s=i(86019);class a extends s.Jodit{static make(e,t){return new this(e,t)}beforeInitHook(){if(n.IS_PROD&&!n.IS_TEST&&this.o.loadExternalConfig)return(0,o.appendScriptAsync)(this,this.basePath+"config.js")}afterInitHook(){(async()=>{if(await this.e.fire("checkReserve",location.host)!=="normal"){if(this.isInDestruct)return;let e=this.c.div("",'Trial version. Buy <a href="https://xdsoft.net/jodit/pro/">Jodit Pro</a>');n.IS_TEST||n.IS_PROD,(0,r.css)(e,{position:"absolute",color:"red",right:10,bottom:10}),this.addDisclaimer(e)}})().catch(()=>null),super.afterInitHook()}getVersion(){return"PRO "+n.APP_VERSION}}},44864:function(e,t,i){i.r(t),i.d(t,{autocomplete:function(){return p}});var n=i(82749),o=i(31635);i(53586);var r=i(83725),s=i(64199),a=i(82758),l=i(65478),c=i(2748),u=i(21537),d=i(50911),h=i(56917),f=i(2692);class p extends d.Plugin{get list(){let e=new r.Autocomplete(this.jodit);return e.setDisplayMode(this.jodit.o.autocomplete.displayMode),e}get popup(){let e=new h.Popup(this.jodit);return e.setMod("padding",!1),e.setContent(this.list.container),"inline"===this.jodit.o.autocomplete.displayMode&&e.setMod("autocomplete-inline",!0),this.jodit.e.on(e,"beforeClose",()=>{this.list.currentSelection=0}),e}afterInit(e){e.e.on("select.autocomplete",t=>{let i=t.value;(0,u.isFunction)(t.insertValueRenderer)&&(i=t.insertValueRenderer(t)),c.Dom.isNode(i)||(i=e.createInside.fromHTML(i)),(0,s.replaceTextLeftOfCursorAfterSpace)(e.s.range,i),this.j.s.setCursorAfter(i),this.j.synchronizeValues(),this.popup.close()}).on("keydown.autocomplete",this.onKeyDown).on("keydown.autocomplete",this.onKeyControlDown,{top:!0}).on("beforeEnter.autocomplete",this.onEnter,{top:!0}).on("autocomplete.autocomplete",this.onAutoComplete).on("registerAutocompleteSource.autocomplete",this.registerAutocompleteSource).on("unregisterAutocompleteSource.autocomplete",this.unregisterAutocompleteSource)}registerAutocompleteSource(e){this.sources.push(e)}unregisterAutocompleteSource(e){let t=this.sources.indexOf(e);-1!==t&&this.sources.splice(t,1)}static isControlKey(e){return e===a.KEY_DOWN||e===a.KEY_UP||e===a.KEY_ENTER||e===a.KEY_TAB}async onKeyDown(e){if(e.key===a.KEY_ESC){this.popup.isOpened&&this.popup.close();return}let{s:t}=this.j;if(p.isControlKey(e.key)||!t.isInsideArea||!t.isCollapsed)return;let i=this.j.s.sel?.rangeCount?this.j.s.sel?.getRangeAt(0):null,n=i&&(0,s.getTextLeftOfCursor)(i).split(" ").pop();if(n&&(0,u.trim)(n).length){let e=await this.onAutoComplete(n);if(e.length)return this.openPopup(e)}this.popup.isOpened&&this.popup.close()}onKeyControlDown(e){if(this.popup.isOpened&&p.isControlKey(e.key)){switch(e.key){case a.KEY_DOWN:this.list.selectNext();break;case a.KEY_UP:this.list.selectPrevious();break;case a.KEY_TAB:this.list.select()}return this.j.e.stopPropagation(e.type),!1}}onEnter(){if(this.popup.isOpened)return this.list.select(),!1}async onAutoComplete(e){let t=[];return await Promise.all(this.sources.concat(this.j.o.autocomplete.sources).map(async i=>{t.push(...await this.resolveFeed(e,i))})),t}async resolveFeed(e,t,i){let n;if((0,u.isPromise)(t)&&(t=await t),(0,u.isFunction)(t))n=await t(e);else if((0,u.isArray)(t)){let i=t,{isMatchedQuery:o}=this.j.o.autocomplete;n=i.filter(t=>(0,u.isString)(t)?o(e,t):o(e,t.value)).map(e=>(0,u.isString)(e)?{title:e,value:e}:e)}else n=await this.resolveFeed(e,t.feed,t);if(this.j.isDestructed)return[];if(n&&(0,u.isArray)(n)){let{itemRenderer:e,insertValueRenderer:t,maxItems:o}=this.j.o.autocomplete;return(n=n.map(n=>({itemRenderer:i?.itemRenderer??e,insertValueRenderer:i?.insertValueRenderer??t,...n}))).slice(0,o)}return[]}openPopup(e){this.list.build(e),this.popup.open(()=>{let{j:e}=this,t=e.s.range.getBoundingClientRect(),i={left:t.left,top:t.top,height:t.height,width:t.width};if(e.o.iframe&&e.iframe){let t=(0,u.position)(e.iframe,e);i.top+=t.top,i.left+=t.left}return i})}beforeDestruct(e){e.e.off(this.list).off(this.popup).off("keydown.autocomplete",this.onKeyDown).off("autocomplete.autocomplete",this.onAutoComplete).off(".autocomplete"),this.list.destruct(),this.popup.destruct()}constructor(...e){super(...e),(0,n._)(this,"hasStyle",!f.JoditPro.fatMode),(0,n._)(this,"sources",[])}}(0,n._)(p,"requires",["enter","license"]),(0,o.__decorate)([l.cache],p.prototype,"list",null),(0,o.__decorate)([l.cache],p.prototype,"popup",null),(0,o.__decorate)([l.autobind],p.prototype,"registerAutocompleteSource",null),(0,o.__decorate)([l.autobind],p.prototype,"unregisterAutocompleteSource",null),(0,o.__decorate)([(0,l.debounce)()],p.prototype,"onKeyDown",null),(0,o.__decorate)([l.autobind],p.prototype,"onKeyControlDown",null),(0,o.__decorate)([l.autobind],p.prototype,"onEnter",null),(0,o.__decorate)([l.autobind],p.prototype,"onAutoComplete",null),(0,o.__decorate)([l.autobind],p.prototype,"resolveFeed",null),f.JoditPro.plugins.add("autocomplete",p)},53586:function(e,t,i){i(6441).Config.prototype.autocomplete={displayMode:"list",sources:[],maxItems:50,isMatchedQuery:(e,t)=>0===t.toLowerCase().indexOf(e.toLowerCase()),itemRenderer:e=>e.title??e.value,insertValueRenderer:e=>e.value+"&nbsp;"}},64199:function(e,t,i){i.d(t,{getTextLeftOfCursor:function(){return o},replaceTextLeftOfCursorAfterSpace:function(){return r}});var n=i(2748);function o(e){let{startContainer:t,startOffset:i}=e;if(n.Dom.isText(t))return t.nodeValue?.substr(0,i)??"";let o=t.childNodes[i];if(!o)return"";if(n.Dom.isText(o))return o.nodeValue??"";let r=n.Dom.findNotEmptyNeighbor(o,!0,t);return n.Dom.isText(r)?o.nodeValue??"":""}function r(e,t){let{startContainer:i,startOffset:o}=e;if(!n.Dom.isText(i)&&(i=i.childNodes[o-1],n.Dom.isText(i)&&(o=i.nodeValue?.length??0)),n.Dom.isText(i)){let n=i.nodeValue??"",r=n.substring(0,o),s=n.substring(o),a=r.split(" ");a[a.length-1]="";let l=a.join(" ");i.nodeValue=l+s,e.setStart(i,l.length),e.insertNode(t);return}}},83725:function(e,t,i){i.d(t,{Autocomplete:function(){return c}});var n=i(82749),o=i(31635),r=i(31356),s=i(35934),a=i(65478),l=i(62405);class c extends l.UIGroup{className(){return"Autocomplete"}setDisplayMode(e){this.displayMode=e,this.setMod("displayMode",e)}onChangeSelection(){this.elements.forEach(e=>{e.setMod("active",!1),e.showShortcut(!1)});let e=this.elements[this.currentSelection];e&&(e.setMod("active",!0),"inline"===this.displayMode&&e.showShortcut(!0),e.container.scrollIntoView(!1))}build(e){let t=this.elements[this.currentSelection]?.item.value,i=e=>e.value,n=r.ListReconciler.reconcile(this.__previousList,e,{getId:i}),o=new Set;n.toRemove.forEach(e=>{let t=i(e);if(o.has(t))return;o.add(t);let n=this.itemsMap.get(t);n&&(-1!==this.elements.indexOf(n)&&(this.remove(n),n.destruct()),this.itemsMap.delete(e.value))}),n.toCreate.forEach(t=>{let n=i(t);if(o.has(n))return;o.add(n);let r=new s.AutocompleteItem(this.jodit,t,t=>{this.currentSelection=e.findIndex(e=>i(e)===t),this.select()});this.itemsMap.set(n,r);let a=e.indexOf(t);this.append(r,a)}),n.toUpdate.forEach(({newItem:e,index:t})=>{let n=i(e);if(o.has(n))return;o.add(n);let r=this.itemsMap.get(n);r&&(r.item=e,this.elements.indexOf(r)!==t&&t<this.elements.length&&(this.remove(r),this.append(r,t)))});let a=this.currentSelection;this.currentSelection=Math.max(0,e.findIndex(e=>i(e)===t)),a===this.currentSelection&&this.onChangeSelection(),this.__previousList=[...e]}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}select(){this.j.e.fire("select.autocomplete",this.elements[this.currentSelection].item)}constructor(...e){super(...e),(0,n._)(this,"elements",[]),(0,n._)(this,"currentSelection",-1),(0,n._)(this,"displayMode","list"),(0,n._)(this,"__previousList",[]),(0,n._)(this,"itemsMap",new Map)}}(0,o.__decorate)([(0,a.watch)("currentSelection")],c.prototype,"onChangeSelection",null),c=(0,o.__decorate)([a.component],c)},35934:function(e,t,i){i.d(t,{AutocompleteItem:function(){return l}});var n=i(82749),o=i(31635),r=i(65478),s=i(27613),a=i(48538);class l extends a.UIElement{className(){return"AutocompleteItem"}showShortcut(e){if(e&&!this.shortcutElm){let e=this.j.c.element("span");e.className="jodit-autocomplete-item__shortcut",e.innerText="tab",this.container.appendChild(e),this.shortcutElm=e}else!e&&this.shortcutElm&&(this.shortcutElm.remove(),this.shortcutElm=null)}onClickPrevent(e){e.preventDefault(),e.stopPropagation()}onClickHandler(){this.onClick(this.value)}constructor(e,t,i){super(e),(0,n._)(this,"item",void 0),(0,n._)(this,"onClick",void 0),(0,n._)(this,"value",void 0),(0,n._)(this,"shortcutElm",void 0),this.item=t,this.onClick=i,this.value="",this.shortcutElm=null;const{container:o}=this;if(this.value=t.value,(0,s.isFunction)(t.itemRenderer)){const e=t.itemRenderer(t);(0,s.isString)(e)?o.innerHTML=e:o.appendChild(e)}else o.innerText=t.title??t.value}}(0,o.__decorate)([(0,r.watch)("container:mousedown container:touchstart")],l.prototype,"onClickPrevent",null),(0,o.__decorate)([(0,r.watch)("container:click")],l.prototype,"onClickHandler",null),l=(0,o.__decorate)([r.component],l)},12373:function(e,t,i){i(25187),i(58858),i(21246),i(44864),i(3115)},38882:function(e,t,i){i.d(t,{isAllowedSubdomain:function(){return o},validateLicense:function(){return function e(t,i){var n;let r;if(n=t=t.replace(/[^A-Z0-9-]/g,"R"),/[A-Z0-9][013456][A-P0-9]{2}[ABC]-([0-3])[ELPDF][E-L4-8]{2}\1-[A-D][R0][J-P5-6]{3}-[DPGHYE][GFPOD]{3}[A-SX-Z]/.test(n)||o(i))return!0;let s=(r=i.split(".")).map(e=>{let t=e[0];return"string"==typeof t&&t.charCodeAt(0)?String.fromCharCode(t.charCodeAt(0)+1):t}).concat(r.map(e=>{let t=e[e.length-1];return"string"==typeof t&&t.charCodeAt(0)?String.fromCharCode(t.charCodeAt(0)-1):t})).map(e=>null!=e&&/\w/.test(e)?e:"r"),a=["[A-F013456][A-F0-9]{3}{part}","([0-3]){part}[E-L4-8]{2}\\1","[A-D]{part}[J-P5-6]{3}","{part}[A-R0-9]{3}[X-Z]"].map((e,t)=>e.replace("{part}",s[t]||"[R-T]")),l=RegExp(`^${a.join("-")}$`,"i"),c=t.substring(12,13),u=l.test(t);if(!u&&c===(typeof!i).toUpperCase()[5]){let n=i.split(".");return n.shift(),!!n.length&&e(t,n.join("."))}return u}}});let n=["*127.0.0.*","*localhost*","staging.","*.dev.","*.test.","*.stg.","stg.*","test.*","beta.*","*demo.*","*test.*","acceptatie.*"];function o(e){return n.some(t=>new RegExp(t.replace(/\*/g,"%ANY%").replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&").replace(/%ANY%/g,".*")).test(e))}},21246:function(e,t,i){i.d(t,{license:function(){return u}});var n=i(38882),o=i(82758),r=i(2748),s=i(87612),a=i(70799),l=i(20356),c=i(2692);class u extends l.Plugin{static make(e){return new u(e)}afterInit(e){this.j.e.on("checkReserve",async e=>{let t=this.j.o.license;if((0,n.isAllowedSubdomain)(e))return"normal";if(!t||!(0,a.isString)(t))return"";let i=(0,n.validateLicense)(t,e);return i||!(t[12]>"A")||o.IS_TEST||(i=await this.validateLicenseRemote(t,e)),i?"normal":""})}beforeDestruct(e){}async validateLicenseRemote(e,t){let i="validateJoditLicenseRemote",o=this.j.storage.get(i);if(o&&(0,n.validateLicense)(o,t))return!0;let a=document.createElement("script");return a.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(e)}&host=${encodeURIComponent(t)}`,document.body.appendChild(a),this.j.async.promise(e=>{window.onJoditResolveKeyCode=o=>{try{if((0,s.isBoolean)(o))return e(o);(0,n.validateLicense)(o,t)?(this.j.storage.set(i,o),e(!0)):e(!1)}finally{r.Dom.safeRemove(a)}},this.j.async.setTimeout(()=>{e(!1),r.Dom.safeRemove(a)},3e3)})}}c.JoditPro.plugins.add("license",u)},20823:function(e,t,i){i.d(t,{cleanStyles:function(){return o}});let n={"text-justify":["inter-ideograph"]};function o(e){return e.isElement&&e.attributes.style&&Object.keys(n).forEach(t=>{let i=n[t];e.style.has(t)&&i.includes(e.style.get(t)?.toString())&&e.style.set(t,null)}),e}},47064:function(e,t,i){i.d(t,{clearAttributes:function(){return o}});let n=["cellspacing","cellpadding","border","v:shapes","o:spid"];function o(e){if(/^OLE_LINK\d+$/.test(e.attributes.name)&&(e.attributes.name=null,0===e.length))return e.remove(),null;for(let t of("_GoBack"===e.attributes.name&&(e.attributes.name=null),n))e.attributes[t]&&(e.attributes[t]=null);return e}},41157:function(e,t,i){i.d(t,{clearClassName:function(){return o}});var n=i(49055);let o=e=>(e.attributes.class&&(e.attributes.class=e.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi,""),(0,n.trim)(e.attributes.class)||(e.attributes.class=null)),e)},53585:function(e,t,i){i.d(t,{convertStyleUnitToPixels:function(){return o}});var n=i(43712);let o=(e,{jodit:t})=>{if(!t.o.pasteFromWord.convertUnitsToPixel)return e;let{style:i}=e;return i.forEach(e=>{let t=i.get(e);t&&i.set(e,t.toString().replace(/\d+(\.\d+)?(pt|cm)/g,e=>(0,n.convertUnitToPx)(e)+"px"))}),e}},80591:function(e,t,i){i.d(t,{convertToList:function(){return l}});var n=i(82758),o=i(10058),r=i(97420),s=i(31269),a=i(43712);function l(e){if((0,r.isPseudoLeaf)(e)){e.name="li",e.style.set("text-indent",null);let u=c(e),d=/[\da-np-zA-NP-Z].?/.test(u)?"ol":"ul",h=function(e,t){for(let t in o.listStyleMap)if(RegExp(t).test(e))return o.listStyleMap[t];return"ol"===t?"decimal":"disc"}(u,d);e.attributes[o.TYPE_KEY]=d,e.attributes[o.STYLE_KEY]=h,(0,s.calcListLevels)(e),function(e){for(;e;){let t=e.previousElement;if(!((0,r.isLeaf)(t)||(0,r.isList)(t)))break;if((0,r.isLeaf)(t)){if(e.attributes[o.LEVEL_KEY]<t.attributes[o.LEVEL_KEY]||e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]&&e.parent&&(0,r.isSameType)(e,e.parent))break;t.append(e);continue}if(e.attributes[o.LEVEL_KEY]<t.attributes[o.LEVEL_KEY]||e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]&&!(0,r.isSameType)(e,t))break;t.append(e)}}(e);let{parent:f}=e;if(!(0,r.isList)(f)||!(0,r.isSameType)(e,f)){var t,i,n,l;let s,c=(t=e,i=d,n=u,l=h,(s=t.wrap(i)).attributes.start=(0,a.calcStartBySymbol)(n),s.attributes[o.LEVEL_KEY]=t.attributes[o.LEVEL_KEY],s.attributes[o.STYLE_KEY]=t.attributes[o.STYLE_KEY],s.attributes[o.STYLE_VALID_KEY]=t.attributes[o.STYLE_KEY],s.style.set(o.STYLE_CSS_KEY,l),(0,r.isList)(s)&&s.parent?.name!=="li"&&("disc"===s.style.get(o.STYLE_CSS_KEY)||"decimal"===s.style.get(o.STYLE_CSS_KEY))&&s.style.set(o.STYLE_CSS_KEY,null),s);(0,r.isList)(f)&&(c.remove(),f.lastElement?.append(c))}}return e}let c=e=>e.textBetween(e=>e.isComment&&/\[if.*supportLists.*]/.test((0,r.html)(e)),e=>e.isComment&&/\[endif]/.test((0,r.html)(e))).replace(/&nbsp;/g,"").replace((0,n.SPACE_REG_EXP)(),"")},64693:function(e,t,i){i.d(t,{cases:function(){return g}});var n=i(20823),o=i(47064),r=i(41157),s=i(53585),a=i(80591),l=i(98940),c=i(72621),u=i(1580),d=i(18616),h=i(84021),f=i(69994),p=i(76059),m=i(21357);let g=[u.processImage,l.markPageBreakElements,h.removeExtraTags,p.replaceOldTags,o.clearAttributes,a.convertToList,d.processLinks,f.removeInsideComment,s.convertStyleUnitToPixels,r.clearClassName,c.normalizeImageProps,m.removeWidthFromTableCell,n.cleanStyles]},98940:function(e,t,i){i.d(t,{markPageBreakElements:function(){return n}});let n=e=>((e.isElement&&"always"===e.style.get("page-break-before")||"page"===e.style.get("break-before"))&&(e.attributes["jd-safe"]=!0,e.style.add("page-break-before","always"),e.isSingle&&(e.name="div")),e)},72621:function(e,t,i){i.d(t,{normalizeImageProps:function(){return n}});let n=e=>(e.isElement&&"img"===e.name&&(e.attributes.align&&(e.style.add("float",e.attributes.align),e.attributes.align=null),e.attributes.hspace&&(e.style.add("marginLeft",e.attributes.hspace+"px"),e.style.add("marginRight",e.attributes.hspace+"px"),e.attributes.hspace=null)),e)},1580:function(e,t,i){i.d(t,{processImage:function(){return o}});var n=i(21537);let o=(e,t)=>{if(t.rtf&&"#comment"===e.name&&e.attributes.nodeValue&&-1!==e.attributes.nodeValue.indexOf("<v:shape")){t.shapes||(t.shapes={});let i=t.jodit.create.fromHTML(e.attributes.nodeValue);return(0,n.toArray)(i.getElementsByTagName("v:shape")).forEach(e=>{t.shapes[e.id]=e.getAttribute("o:spid")}),e}if("img"!==e.name)return e;if(t.rtf&&e.attributes["v:shapes"]){let i=t.shapes?.[e.attributes["v:shapes"]];if(i){let n=t.imageMap??{};t.imageMap||(t.imageMap=n,r(t.rtf,"i","\\shppict",t.imageMap),r(t.rtf,"s","\\shp{",t.imageMap));let o=n[i.substring(7)];if(o){let t=[],i=o.hex.match(/[0-9a-f]{2}/gi);if(i){for(let e=0;e<i.length;e++){let n=parseInt(i[e],16);t.push(String.fromCharCode(n))}e.attributes.src="data:"+o.type+";base64,"+btoa(t.join(""))}}}}return e};function r(e,t,i,n){for(let o of e.split(i)){let e=o.split("shplid");if(1<e.length){let i,o=e[1],r="";for(let e=0;e<o.length&&!/[{ \r\n\\]/.test(o[e]);e++)r+=o[e];let s=o.split("bliptag");if(s&&s.length<2)continue;let a=null;if(s[0].indexOf("pngblip")?a="image/png":-1!==s[0].indexOf("jpegblip")&&(a="image/jpeg"),!a)continue;let l=s[1].split("}");if(l&&l.length<2)continue;if(2<l.length&&l[0].includes("blipuid"))i=l[1].split(" ");else{if((i=l[0].split(" "))&&i.length<2)continue;i.shift()}n[t+r]={hex:i.join(""),type:a}}}}},18616:function(e,t,i){i.d(t,{processLinks:function(){return n}});let n=(e,t)=>{let i=t.links??{};if(e.attributes.href&&e.attributes.href.match(/#.+$/)&&(i[e.attributes.href.match(/#(.+)$/)[1]]=e),e.attributes.name&&i[e.attributes.name]){let t=i[e.attributes.name];t.attributes.href=t.attributes.href.replace(/.*#(.*)$/,"#$1")}return t.links=i,e}},84021:function(e,t,i){i.d(t,{removeExtraTags:function(){return o}});let n=new Set(["o:p","xml","script","meta","link","v:imagedata","style"]);function o(e){return"none"===e.style.get("display")||0===e.length&&"span"===e.name||n.has(e.name)?(e.remove(),null):e}},69994:function(e,t,i){i.d(t,{removeInsideComment:function(){return r}});var n=i(99658);let o=0;function r(e){return(e.isComment&&/\[if.*(supportLists|gte vml).*]/.test((0,n.html)(e))&&(o++,e.remove()),e.isComment&&o>0&&(0,n.html)(e).includes("[endif]")&&(o=o>0?o-1:0,e.remove()),o&&(e.isText||"img"===e.name&&(!e.attributes.src||/^file:/.test(e.attributes.src))))?(e.remove(),null):e}},76059:function(e,t,i){i.d(t,{replaceOldTags:function(){return o}});let n={i:"em",b:"strong"};function o(e){let{name:t}=e;return t in n&&(e.name=n[t]),e}},21357:function(e,t,i){i.d(t,{removeWidthFromTableCell:function(){return n}});let n=e=>(e.attributes.width&&("th"===e.name||"td"===e.name)&&(e.attributes.width=null),e)},13085:function(e,t,i){i(6441).Config.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1,allowedStyleProps:["background","background-color","border","border-.*","color","float","font-family","font-size","font-style","font-weight","height","line-height","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","padding","text-align","text-justify","text-decoration","text-indent","vertical-align","width"]}},10058:function(e,t,i){i.d(t,{LEVEL_KEY:function(){return n},STYLE_CSS_KEY:function(){return a},STYLE_KEY:function(){return r},STYLE_VALID_KEY:function(){return s},TYPE_KEY:function(){return o},listStyleMap:function(){return l}});let n="jd-list-level",o="jd-list-type",r="jd-list-style-type",s="data-list-style-type",a="list-style-type",l={"·":"disc",o:"circle","§":"square","[ivx]":"lower-roman","[IVX]":"upper-roman","[a-z]":"lower-alpha","[A-Z]":"upper-alpha","\\d":"decimal"}},18594:function(e,t,i){i.d(t,{isLeaf:function(){return s},isList:function(){return r},isPseudoLeaf:function(){return a},isSameType:function(){return l}});var n=i(99658),o=i(10058);function r(e){return!!(e&&("ol"===e.name||"ul"===e.name))}function s(e){return!!(e&&"li"===e.name)}function a(e){return"li"!==e.name&&/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(e.attributes.style)||/msolistparagraph/i.test(e.attributes.class)&&!!e.find(e=>e.isComment&&(0,n.html)(e).includes("supportLists")).length}function l(e,t){let i=e.attributes[o.TYPE_KEY],n=e.attributes[o.STYLE_KEY];return t.name===i&&t.attributes[o.STYLE_KEY]===n&&e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]}},42968:function(e,t,i){i.d(t,{JElement:function(){return u}});var n=i(82749),o=i(99658),r=i(40273),s=i(82758),a=i(2748),l=i(38837);let c=new Set(s.INSEPARABLE_TAGS);class u{get isText(){return this.type===Node.TEXT_NODE}get isElement(){return this.type===Node.ELEMENT_NODE}get isComment(){return this.type===Node.COMMENT_NODE}get isSingle(){return c.has(this.name)}get length(){return this.children.length}static make(e,t=null){return new u(e,t)}wrap(e){(0,l.assert)(null!=this.parent,"You can't wrap the root element");let t=u.make(document.createElement(e),this.parent),i=this.parent.children.indexOf(this)??-1;return -1===i?this.parent.append(t):this.parent.children[i]=t,t.append(this),t}append(e){return(0,l.assert)(e!==this,"Forbidden to add to yourself"),e.remove(),this.children.push(e),e.parent=this,this}get previousElement(){if(!this.parent)return null;let{children:e}=this.parent,t=e.indexOf(this);if(-1!==t){for(let i=t-1;i>=0;i-=1)if(e[i].isElement)return e[i]}return null}get lastElement(){let{children:e}=this;for(let t=e.length-1;t>=0;t-=1)if(e[t].isElement)return e[t];return null}get previous(){return this.sibling(!1)??this.parent?.previous??null}get next(){return this.sibling(!0)??this.parent?.next??null}sibling(e){if(!this.parent)return null;let{children:t}=this.parent,i=t.indexOf(this);return -1!==i&&t[i+(e?1:-1)]?t[i+(e?1:-1)]:null}forEach(e,t=!1){for(let i of[...this.children])if(!1===e(i)||t&&!1===i.forEach(e,!0))return!1}find(e,t=!0){let i=[];return this.forEach(t=>{e(t)&&i.push(t)},t),i}map(e){return this.children.map(e)}remove(){let e=this.parent?.children.indexOf(this);return null!=e&&-1!==e&&this.parent?.children.splice(e,1),this}textBetween(e,t){let i=!1,n=[];return this.forEach(r=>{if(!i&&e(r)&&(i=!0),i&&r.isText&&n.push((0,o.html)(r)),i&&t(r))return!1},!0),n.join("")}constructor(e,t){(0,n._)(this,"parent",void 0),(0,n._)(this,"name",void 0),(0,n._)(this,"type",void 0),(0,n._)(this,"attributes",void 0),(0,n._)(this,"style",void 0),(0,n._)(this,"children",void 0),this.parent=t,this.name=e.nodeName.toLowerCase(),this.type=e.nodeType,this.attributes=function(e){let t={};if(a.Dom.isElement(e))for(let i=0,n=e.attributes;i<n.length;i+=1)t[n[i].name]=n[i].value;else t.nodeValue=e.nodeValue;return t}(e),this.style=new r.Style(this.attributes.style),this.children=[],e.childNodes.forEach(e=>this.children.push(u.make(e,this)))}}},97420:function(e,t,i){i.d(t,{JElement:function(){return o.JElement},html:function(){return r.html},innerHTML:function(){return r.innerHTML},isLeaf:function(){return n.isLeaf},isList:function(){return n.isList},isPseudoLeaf:function(){return n.isPseudoLeaf},isSameType:function(){return n.isSameType}});var n=i(18594),o=i(42968),r=i(99658)},99658:function(e,t,i){i.d(t,{html:function(){return s},innerHTML:function(){return l}});var n=i(82758),o=i(87612),r=i(49055);function s(e,t=()=>!0,i=!0,o){switch(!0){case e.isComment:case e.isText:{if(!t(e))return"";let{nodeValue:i}=e.attributes;return e.isComment?`<!--${i}-->`:i}case e.isElement:{let{attributes:n}=e,r=l(e,t,i,o);if(!e.attributes["jd-safe"]&&i&&0===r.replace(/[\n\t]/g,"").length&&!e.isSingle)return"";let s=Object.keys(n).map(e=>"style"===e||null==n[e]||/^jd-/.test(e)?"":`${e}="${c(n[e])}"`).filter(Boolean),{str:u}=e.style,d=c(u(e=>a(e,o)));if(d&&s.push(`style="${d}"`),i&&0===s.length&&["span","a"].includes(e.name))return r;let h=s.length?" "+s.join(" "):"";if(!t(e))return r;return e.isSingle?`<${e.name}${h}/>`:`<${e.name}${h}>${r}</${e.name}>`}default:if(!n.IS_PROD)throw Error("Need implementation for this type")}return""}function a(e,t){if(!t)return!0;if(a.cache.has(t)){let i=a.cache.get(t)?.get(e);if((0,o.isBoolean)(i))return i}let i=t.some(t=>new RegExp(t).test(e)),n=a.cache.get(t)||new Map;return n.set(e,i),a.cache.set(t,n),i}function l(e,t=()=>!0,i=!0,n){let o=e.map(e=>s(e,t,i,n)).join("");return"p"===e.name&&0===(0,r.trim)(o).length&&(o="&nbsp;"),o}function c(e){return e.toString().replace(/"/g,"&quot;")}a.cache=new WeakMap},40273:function(e,t,i){i.d(t,{Style:function(){return u}});var n=i(82749),o=i(31635),r=i(45219),s=i(70799),a=i(12475),l=i(49055),c=i(43712);class u{get keys(){return Object.keys(this._data)}forEach(e){this.keys.forEach(t=>e(t))}clear(){this._data={}}set(e,t){this._data[e]=t}get(e){return this._data[e]??null}has(e){return void 0!==this._data[e]}add(e,t){return this._data=d(this.str()+";"+`${e}:${t}`),this}str(e=e=>!0){let t=Object.keys(this._data).filter(t=>t&&!/^mso-/.test(t)&&e(t)&&null!=this.get(t)),i=e=>(0,s.isString)(e)?/^0[a-z]+$/i.test(e)?"0":e:e.toString();return(["padding","margin"].forEach(e=>{if(this._data[e]){let n=t.indexOf(e),o=(0,c.calcMarginParts)(this._data[e]);["top","right","bottom","left"].forEach((r,s)=>{let a=`${e}-${r}`,l=this._data[a];null!=l&&(t.indexOf(a)<n||i(o[s])===i(l))&&-1!==t.indexOf(a)&&t.splice(t.indexOf(a),1)})}}),t.length)?t.map(e=>`${(0,a.kebabCase)(e)}:${this.get(e)}`).join(";"):""}constructor(e){(0,n._)(this,"_data",void 0),this._data=d(e)}}function d(e){return(function(e){let t={},i=[];for(let n=e.length-1;n>=0;n-=1){let o=e[n][0];t[o]||(t[o]=!0,i.unshift(e[n]))}return i})((e??"").replace(/&quot;/g,'"').split(";").filter(Boolean).map(e=>(0,l.trim)(e).split(":").map(l.trim))).reduce((e,[t,i])=>(t&&i&&(e[t]=i),e),{})}(0,o.__decorate)([r.autobind],u.prototype,"forEach",null),(0,o.__decorate)([r.autobind],u.prototype,"clear",null),(0,o.__decorate)([r.autobind],u.prototype,"set",null),(0,o.__decorate)([r.autobind],u.prototype,"get",null),(0,o.__decorate)([r.autobind],u.prototype,"has",null),(0,o.__decorate)([r.autobind],u.prototype,"add",null),(0,o.__decorate)([r.autobind],u.prototype,"str",null)},51586:function(e,t,i){i.d(t,{applyStylesPro:function(){return l}});var n=i(19606),o=i(2748),r=i(29960),s=i(76078),a=i(97420);function l(e,t,i,c=""){let u=document.createElement("iframe");u.style.display="none",document.body.appendChild(u);try{let o=u.contentDocument??u.contentWindow?.document;if(!o)return t;o.open(),o.write(t),o.close();let l="jd-style";for(let e=0;e<o.styleSheets.length;e+=1)try{let t=o.styleSheets[e].cssRules;for(let e=0;e<t.length;e+=1)t[e].selectorText&&(0,s.$$)(t[e].selectorText,o.body).forEach(i=>{(0,r.attr)(i,l)||((0,r.attr)(i,l,(0,r.attr)(i,"style")||""),(0,r.attr)(i,"style","")),(0,r.attr)(i,"style",`${(0,r.attr)(i,"style")};${t[e].style.cssText}`)})}catch(e){}return(0,s.$$)(`[${l}]`,o.body).forEach(e=>{(0,r.attr)(e,"style",`${(0,r.attr)(e,"style")};${(0,r.attr)(e,l)}`)}),(0,n.transformWordToHtml)(e,a.JElement.make(o.body),i,c)}finally{o.Dom.safeRemove(u)}}},31269:function(e,t,i){i.d(t,{calcListLevels:function(){return s}});var n=i(43712),o=i(10058),r=i(97420);function s(e){if(void 0!==e.attributes[o.LEVEL_KEY])return;let t=[(0,n.realPixelIndent)(e)],i=[e],s=e.next;for(;s;){if(s.isElement&&!s.attributes[o.LEVEL_KEY]&&(0,r.isPseudoLeaf)(s)){let e=(0,n.realPixelIndent)(s);e&&(t.push(e),i.push(s))}s=s.next}let a=Math.min(...t.filter(e=>e>0)),l=t.map(e=>Math.ceil(e/10));-1!==l.indexOf(0)&&(l=l.map(e=>e+1)),i.forEach((e,t)=>{e.attributes[o.LEVEL_KEY]=l[t],e.style.add("margin-left",`${Math.max((0,n.realPixelIndent)(e)-10*l[t]/a*40,0)}px`)})}},43712:function(e,t,i){let n;function o(e){if(!e)return[0,0,0,0];let t=e.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g)||["0px"];switch(t.length){case 2:return[0,1,0,1].map(e=>t[e]);case 3:return[0,1,2,1].map(e=>t[e]);case 4:return[0,1,2,3].map(e=>t[e]);default:return[0,0,0,0].map(e=>t[e])}}function r(e){if("number"==typeof e)return e;if(/%$/.test(e))return 0;n||(Object.assign((n=document.createElement("div")).style,{position:"absolute",left:"-9999px",top:"-9999px",margin:"0",padding:"0",border:"0"}),document.body.append(n),setTimeout(()=>{n?.remove(),n=null}));let t=0>parseFloat(e);t&&(e=e.replace("-","")),n.style.width=e;let i=n.clientWidth;return t?-i:i}function s(e){let{style:t}=e,i=t.keys.filter(e=>/margin/.test(e)),n=Math.max(i.indexOf("margin-left"),i.indexOf("margin")),s=n>0?i[n]:"margin-left";return r("margin"===s?o(t.get("margin"))[3]||0:t.get(s)||0)}function a(e){return/\d.\d/.test(e)?e.split(".").pop()||null:/^\d/.test(e)?(parseInt(e,10)||1).toString():null}i.d(t,{calcMarginParts:function(){return o},calcStartBySymbol:function(){return a},convertUnitToPx:function(){return r},realPixelIndent:function(){return s}})},30717:function(e,t,i){i.d(t,{applyStylesPro:function(){return n.applyStylesPro}});var n=i(51586);i(31269),i(19606)},19606:function(e,t,i){i.d(t,{transformWordToHtml:function(){return s}});var n=i(49055),o=i(64693),r=i(97420);function s(e,t,i,s){let a={jodit:e,rtf:s};return t.forEach(function e(t){if(t){for(let e of o.cases)if(null==(t=e(t,a)))break;t?.forEach(e)}}),i&&t.forEach(e=>{e.style.clear()},!0),(0,n.trim)((0,r.innerHTML)(t,e=>!e.isComment,!0,e.o.pasteFromWord.allowedStyleProps))}},58858:function(e,t,i){i.r(t),i.d(t,{PasteFromWordPro:function(){return u}});var n=i(82749);i(13085);var o=i(30717),r=i(82758),s=i(70799),a=i(117),l=i(31571),c=i(2692);class u extends l.pasteFromWord{insertFromWordByType(e,t,i,n){if(this.j.o.pasteFromWord.enable&&(i===r.INSERT_AS_HTML||i===r.INSERT_AS_TEXT)){if(t=(0,o.applyStylesPro)(this.j,t,i===r.INSERT_AS_TEXT,n.rtf),this.j.o.beautifyHTML){let e=this.j.events?.fire("beautifyHTML",t);(0,s.isString)(e)&&(t=e)}(0,a.pasteInsertHtml)(e,this.j,t);return}return super.insertFromWordByType(e,t,i,n)}}(0,n._)(u,"requires",["license"]),c.JoditPro.plugins.remove("pasteFromWord"),c.JoditPro.plugins.add("pasteFromWordPro",u)},82749:function(e,t,i){i.d(t,{_:function(){return n}});function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},31635:function(e,t,i){function n(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}i.d(t,{__decorate:function(){return n}}),"function"==typeof SuppressedError&&SuppressedError}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e].call(i.exports,i,i.exports,s),i.exports}s.m=o,e=[],s.O=function(t,i,n,o){if(i){o=o||0;for(var r=e.length;r>0&&e[r-1][2]>o;r--)e[r]=e[r-1];e[r]=[i,n,o];return}for(var a=1/0,r=0;r<e.length;r++){for(var i=e[r][0],n=e[r][1],o=e[r][2],l=!0,c=0;c<i.length;c++)(!1&o||a>=o)&&Object.keys(s.O).every(function(e){return s.O[e](i[c])})?i.splice(c--,1):(l=!1,o<a&&(a=o));if(l){e.splice(r--,1);var u=n();void 0!==u&&(t=u)}}return t},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t={521:0},s.O.j=function(e){return 0===t[e]},i=function(e,i){var n,o,r=i[0],a=i[1],l=i[2],c=0;if(r.some(function(e){return 0!==t[e]})){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);if(l)var u=l(s)}for(e&&e(i);c<r.length;c++)o=r[c],s.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return s.O(u)},(n=self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).forEach(i.bind(null,0)),n.push=i.bind(null,n.push.bind(n));var a={};s.r(a),s.d(a,{Jodit:function(){return c.JoditPro}}),s(12373);var l=s(31356),c=s(2692);return c.JoditPro.plugins.add("poweredByJodit",function(){}),c.JoditPro.modules.ListReconciler=l.ListReconciler,a=s.O(a)}()});
272
+ `);if(e.o.table.splitBlockOnInsertTable){let i=e.s.range;i.collapse(!1),i.insertNode(t),i.collapse(!1),e.s.selectRange(i);let o=e.s.splitSelection(y,t);o?n.Dom.after(o,p):n.Dom.after(y,p)}else n.Dom.after(y,t),n.Dom.after(t,p)}else e.s.insertNode(p,!1);g&&(e.s.setCursorIn(g),(0,o.scrollIntoViewIfNeeded)(g,e.editor,e.ed)),i()}),s&&s.parentElement){for(let t=0;t<c;t+=1){let i=e.c.div();for(let e=0;e<u;e+=1)i.appendChild(g[t*u+e]);p.appendChild(i)}g[0]&&(g[0].className="hovered")}return d},tooltip:"Insert table"}},43003:function(e,t,i){var n=i(580);i(40329),n.pluginSystem.add("table",function(e){e.registerButton({name:"table",group:"insert"})})},6091:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg> '},14984:function(e,t,i){var n=i(21537),o=i(62843),r=i(2525),s=i(12153),a=i(6441),l=i(92762),c=i(37775);a.Config.prototype.video={parseUrlToVideoEmbed:n.convertMediaUrlToVideoEmbed,defaultWidth:400,defaultHeight:345},s.Icon.set("video",c.default),a.Config.prototype.controls.video={popup(e,t,i){let s=new r.UIForm(e,[new r.UIBlock(e,[new r.UIInput(e,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new r.UIBlock(e,[(0,o.Button)(e,"","Insert","primary").onAction(()=>s.submit())])]),a=new r.UIForm(e,[new r.UIBlock(e,[new r.UITextArea(e,{name:"code",required:!0,label:"Embed code"})]),new r.UIBlock(e,[(0,o.Button)(e,"","Insert","primary").onAction(()=>a.submit())])]),c=[],u=t=>{e.s.restore(),e.s.insertHTML(t),i()};return e.s.save(),c.push({icon:"link",name:"Link",content:s.container},{icon:"source",name:"Code",content:a.container}),s.onSubmit(t=>{var i,o,r,s;u((0,n.call)(null!=(o=null==(i=e.o.video)?void 0:i.parseUrlToVideoEmbed)?o:n.convertMediaUrlToVideoEmbed,t.url,{width:null==(r=e.o.video)?void 0:r.defaultWidth,height:null==(s=e.o.video)?void 0:s.defaultHeight}))}),a.onSubmit(e=>{u(e.code)}),(0,l.TabsWidget)(e,c)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},26551:function(e,t,i){var n=i(580);i(14984),n.pluginSystem.add("video",function(e){e.registerButton({name:"video",group:"media"})})},37775:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg> '},96967:function(e,t,i){i(6441).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},72253:function(e,t,i){var n=i(65478),o=i(22732),r=i(580),s=i(70799),a=i(50911);i(96967);var l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends a.Plugin{afterInit(e){"br"!==e.o.enter.toLowerCase()&&e.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}beforeDestruct(e){e.e.off(".wtn")}postProcessSetEditorValue(){let{jodit:e}=this;if(!e.isEditorMode())return;let t=e.editor.firstChild,i=!1;for(;t;){if(t=function(e,t){let i=e,n=e;do if(o.Dom.isElement(n)&&o.Dom.isLeaf(n)&&!o.Dom.isList(n.parentElement)){let e=o.Dom.findNotEmptySibling(n,!1);o.Dom.isTag(i,"ul")?i.appendChild(n):i=o.Dom.wrap(n,"ul",t.createInside),n=e}else break;while(n)return i}(t,e),this.isSuitableStart(t)){i||e.s.save(),i=!0;let n=e.createInside.element(e.o.enter);for(o.Dom.before(t,n);t&&this.isSuitable(t);){let e=t.nextSibling;n.appendChild(t),t=e}n.normalize(),t=n}t=t&&t.nextSibling}i&&(e.s.restore(),"afterInit"===e.e.current&&e.e.fire("internalChange"))}preprocessInput(){let{jodit:e}=this,t="afterInit"===e.e.current;if(!e.isEditorMode()||e.editor.firstChild||!e.o.wrapNodes.emptyBlockAfterInit&&t)return;let i=e.createInside.element(e.o.enter),n=e.createInside.element("br");o.Dom.append(i,n),o.Dom.append(e.editor,i),(e.s.isFocused()||"backSpaceAfterDelete"===e.e.current)&&e.s.setCursorBefore(n),e.e.fire("internalChange")}constructor(){super(...arguments),this.isSuitableStart=e=>{var t;return o.Dom.isText(e)&&(0,s.isString)(e.nodeValue)&&(/[^\s]/.test(e.nodeValue)||(null==(t=e.parentNode)?void 0:t.firstChild)===e&&this.isSuitable(e.nextSibling))||this.isNotWrapped(e)&&!o.Dom.isTemporary(e)},this.isSuitable=e=>o.Dom.isText(e)||this.isNotWrapped(e),this.isNotWrapped=e=>o.Dom.isElement(e)&&!(o.Dom.isBlock(e)||o.Dom.isTag(e,this.j.o.wrapNodes.exclude))}}l([n.autobind],c.prototype,"postProcessSetEditorValue",null),l([n.autobind],c.prototype,"preprocessInput",null),r.pluginSystem.add("wrapNodes",c)},86012:function(e,t,i){i(6441).Config.prototype.showXPathInStatusbar=!0},83671:function(e,t,i){var n=i(82758),o=i(22732),r=i(580),s=i(49055),a=i(29960),l=i(76078),c=i(50911),u=i(80870),d=i(21491);i(86012);class h extends c.Plugin{afterInit(){if(this.j.o.showXPathInStatusbar){this.container=this.j.c.div("jodit-xpath"),(0,a.attr)(this.container,"role","list");let e=()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===n.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=n.INVISIBLE_SPACE),this.appendSelectAll()))};this.j.e.off(".xpath").on("pointerup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",e),e(),this.calcPath()}}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),o.Dom.safeRemove(this.container),delete this.menu,delete this.container}constructor(){super(...arguments),this.onContext=(e,t)=>(this.menu||(this.menu=new u.ContextMenu(this.j)),this.menu.show(t.clientX,t.clientY,[{icon:"bin",title:e===this.j.editor?"Clear":"Remove",exec:()=>{e!==this.j.editor?o.Dom.safeRemove(e):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(e)}}]),!1),this.onSelectPath=(e,t)=>{this.j.s.focus();let i=(0,a.attr)(t.target,"-path")||"/";if("/"===i)return this.j.execCommand("selectall"),!1;try{let e=this.j.ed.evaluate(i,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(e)return this.j.s.select(e),!1}catch(e){}return this.j.s.select(e),!1},this.tpl=(e,t,i,n)=>{let o=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${t}" title="${n}" tabindex="-1"'>${(0,s.trim)(i)}</a></span>`),r=o.firstChild;return this.j.e.on(r,"click",this.onSelectPath.bind(this,e)).on(r,"contextmenu",this.onContext.bind(this,e)),o},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=(0,d.makeButton)(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)},this.calcPathImd=()=>{if(this.isDestructed)return;let e=this.j.s.current();if(this.container&&(this.container.innerHTML=n.INVISIBLE_SPACE),e){let t,i,n;o.Dom.up(e,e=>{e&&this.j.editor!==e&&!o.Dom.isText(e)&&!o.Dom.isComment(e)&&(t=e.nodeName.toLowerCase(),i=(0,l.getXPathByElement)(e,this.j.editor).replace(/^\//,""),n=this.tpl(e,i,t,this.j.i18n("Select %s",t)),this.container&&this.container.insertBefore(n,this.container.firstChild))},this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout,!0)}}r.pluginSystem.add("xpath",h)},78173:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> '},16260:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> '},37663:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> '},51036:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> '},31554:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg> '},18309:function(e,t){t.default='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg> '},99762:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg> '},7903:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg> '},58032:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg> '},52507:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg> '},43478:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg> '},60097:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg> '},49155:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg> '},17555:function(e,t,i){i.r(t),i.d(t,{angle_down:function(){return n.default},angle_left:function(){return o.default},angle_right:function(){return r.default},angle_up:function(){return s.default},bin:function(){return a.default},cancel:function(){return l.default},center:function(){return c.default},check:function(){return u.default},chevron:function(){return d.default},dots:function(){return h.default},eye:function(){return f.default},file:function(){return p.default},folder:function(){return m.default},info_circle:function(){return g.default},left:function(){return v.default},lock:function(){return b.default},ok:function(){return y.default},pencil:function(){return S.default},plus:function(){return w.default},resize_handler:function(){return _.default},right:function(){return C.default},save:function(){return k.default},settings:function(){return I.default},unlock:function(){return E.default},update:function(){return T.default},upload:function(){return D.default},valign:function(){return A.default}});var n=i(78173),o=i(16260),r=i(37663),s=i(51036),a=i(31554),l=i(18309),c=i(99762),u=i(7903),d=i(58032),h=i(52507),f=i(43478),p=i(60097),m=i(49155),g=i(17176),v=i(57882),b=i(58908),y=i(24829),S=i(4038),w=i(45575),_=i(84858),C=i(445),k=i(36886),I=i(10766),E=i(33651),T=i(20362),D=i(12202),A=i(80152)},17176:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg> '},57882:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> '},58908:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg> '},24829:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg> '},4038:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg> '},45575:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg> '},84858:function(e,t){t.default='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg> '},445:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> '},36886:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg> '},10766:function(e,t){t.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg> '},33651:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg> '},20362:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg> '},12202:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg> '},80152:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg> '},31356:function(e,t,i){i.d(t,{ListReconciler:function(){return n}});class n{static reconcile(e,t,i){let{getId:n,isEqual:o=(e,t)=>n(e)===n(t),preserveOrder:r=!0}=i,s=new Map,a=new Map;e.forEach((e,t)=>{let i=n(e);s.set(i,e),a.set(i,t)});let l=new Map,c=new Map;t.forEach((e,t)=>{let i=n(e);l.set(i,e),c.set(i,t)});let u=[],d=[],h=[],f=[];return t.forEach((e,t)=>{let i=n(e),l=s.get(i);l?!o(l,e)||r&&a.get(i)!==t?d.push({oldItem:l,newItem:e,index:r?t:a.get(i)}):f.push(l):u.push(e)}),e.forEach(e=>{let t=n(e);l.has(t)||h.push(e)}),{toCreate:u,toUpdate:d,toRemove:h,unchanged:f}}static applyResult(e,t,i={}){t.toRemove.forEach(t=>{let n=e.indexOf(t);-1!==n&&(i.onRemove?.(t,n),e.splice(n,1))}),t.toUpdate.forEach(({oldItem:t,newItem:n,index:o})=>{let r=e.indexOf(t);-1!==r&&(i.onUpdate?.(t,n,o),e[r]=n)}),t.toCreate.forEach(t=>{i.onCreate?.(t,e.length),e.push(t)})}}},2692:function(e,t,i){i.d(t,{JoditPro:function(){return a}});var n=i(82758),o=i(63799),r=i(41180),s=i(86019);class a extends s.Jodit{static make(e,t){return new this(e,t)}beforeInitHook(){if(n.IS_PROD&&!n.IS_TEST&&this.o.loadExternalConfig)return(0,o.appendScriptAsync)(this,this.basePath+"config.js")}afterInitHook(){(async()=>{if(await this.e.fire("checkReserve",location.host)!=="normal"){if(this.isInDestruct)return;let e=this.c.div("",'Trial version. Buy <a href="https://xdsoft.net/jodit/pro/">Jodit Pro</a>');n.IS_TEST||n.IS_PROD,(0,r.css)(e,{position:"absolute",color:"red",right:10,bottom:10}),this.addDisclaimer(e)}})().catch(()=>null),super.afterInitHook()}getVersion(){return"PRO "+n.APP_VERSION}}},44864:function(e,t,i){i.r(t),i.d(t,{autocomplete:function(){return p}});var n=i(82749),o=i(31635);i(53586);var r=i(83725),s=i(64199),a=i(82758),l=i(65478),c=i(2748),u=i(21537),d=i(50911),h=i(56917),f=i(2692);class p extends d.Plugin{get list(){let e=new r.Autocomplete(this.jodit);return e.setDisplayMode(this.jodit.o.autocomplete.displayMode),e}get popup(){let e=new h.Popup(this.jodit);return e.setMod("padding",!1),e.setContent(this.list.container),"inline"===this.jodit.o.autocomplete.displayMode&&e.setMod("autocomplete-inline",!0),this.jodit.e.on(e,"beforeClose",()=>{this.list.currentSelection=0}),e}afterInit(e){e.e.on("select.autocomplete",t=>{let i=t.value;(0,u.isFunction)(t.insertValueRenderer)&&(i=t.insertValueRenderer(t)),c.Dom.isNode(i)||(i=e.createInside.fromHTML(i)),(0,s.replaceTextLeftOfCursorAfterSpace)(e.s.range,i),this.j.s.setCursorAfter(i),this.j.synchronizeValues(),this.popup.close()}).on("keydown.autocomplete",this.onKeyDown).on("keydown.autocomplete",this.onKeyControlDown,{top:!0}).on("beforeEnter.autocomplete",this.onEnter,{top:!0}).on("autocomplete.autocomplete",this.onAutoComplete).on("registerAutocompleteSource.autocomplete",this.registerAutocompleteSource).on("unregisterAutocompleteSource.autocomplete",this.unregisterAutocompleteSource)}registerAutocompleteSource(e){this.sources.push(e)}unregisterAutocompleteSource(e){let t=this.sources.indexOf(e);-1!==t&&this.sources.splice(t,1)}static isControlKey(e){return e===a.KEY_DOWN||e===a.KEY_UP||e===a.KEY_ENTER||e===a.KEY_TAB}async onKeyDown(e){if(e.key===a.KEY_ESC){this.popup.isOpened&&this.popup.close();return}let{s:t}=this.j;if(p.isControlKey(e.key)||!t.isInsideArea||!t.isCollapsed)return;let i=this.j.s.sel?.rangeCount?this.j.s.sel?.getRangeAt(0):null,n=i&&(0,s.getTextLeftOfCursor)(i).split(" ").pop();if(n&&(0,u.trim)(n).length){let e=await this.onAutoComplete(n);if(e.length)return this.openPopup(e)}this.popup.isOpened&&this.popup.close()}onKeyControlDown(e){if(this.popup.isOpened&&p.isControlKey(e.key)){switch(e.key){case a.KEY_DOWN:this.list.selectNext();break;case a.KEY_UP:this.list.selectPrevious();break;case a.KEY_TAB:this.list.select()}return this.j.e.stopPropagation(e.type),!1}}onEnter(){if(this.popup.isOpened)return this.list.select(),!1}async onAutoComplete(e){let t=[];return await Promise.all(this.sources.concat(this.j.o.autocomplete.sources).map(async i=>{t.push(...await this.resolveFeed(e,i))})),t}async resolveFeed(e,t,i){let n;if((0,u.isPromise)(t)&&(t=await t),(0,u.isFunction)(t))n=await t(e);else if((0,u.isArray)(t)){let i=t,{isMatchedQuery:o}=this.j.o.autocomplete;n=i.filter(t=>(0,u.isString)(t)?o(e,t):o(e,t.value)).map(e=>(0,u.isString)(e)?{title:e,value:e}:e)}else n=await this.resolveFeed(e,t.feed,t);if(this.j.isDestructed)return[];if(n&&(0,u.isArray)(n)){let{itemRenderer:e,insertValueRenderer:t,maxItems:o}=this.j.o.autocomplete;return(n=n.map(n=>({itemRenderer:i?.itemRenderer??e,insertValueRenderer:i?.insertValueRenderer??t,...n}))).slice(0,o)}return[]}openPopup(e){this.list.build(e),this.popup.open(()=>{let{j:e}=this,t=e.s.range.getBoundingClientRect(),i={left:t.left,top:t.top,height:t.height,width:t.width};if(e.o.iframe&&e.iframe){let t=(0,u.position)(e.iframe,e);i.top+=t.top,i.left+=t.left}return i})}beforeDestruct(e){e.e.off(this.list).off(this.popup).off("keydown.autocomplete",this.onKeyDown).off("autocomplete.autocomplete",this.onAutoComplete).off(".autocomplete"),this.list.destruct(),this.popup.destruct()}constructor(...e){super(...e),(0,n._)(this,"hasStyle",!f.JoditPro.fatMode),(0,n._)(this,"sources",[])}}(0,n._)(p,"requires",["enter","license"]),(0,o.__decorate)([l.cache],p.prototype,"list",null),(0,o.__decorate)([l.cache],p.prototype,"popup",null),(0,o.__decorate)([l.autobind],p.prototype,"registerAutocompleteSource",null),(0,o.__decorate)([l.autobind],p.prototype,"unregisterAutocompleteSource",null),(0,o.__decorate)([(0,l.debounce)()],p.prototype,"onKeyDown",null),(0,o.__decorate)([l.autobind],p.prototype,"onKeyControlDown",null),(0,o.__decorate)([l.autobind],p.prototype,"onEnter",null),(0,o.__decorate)([l.autobind],p.prototype,"onAutoComplete",null),(0,o.__decorate)([l.autobind],p.prototype,"resolveFeed",null),f.JoditPro.plugins.add("autocomplete",p)},53586:function(e,t,i){i(6441).Config.prototype.autocomplete={displayMode:"list",sources:[],maxItems:50,isMatchedQuery:(e,t)=>0===t.toLowerCase().indexOf(e.toLowerCase()),itemRenderer:e=>e.title??e.value,insertValueRenderer:e=>e.value+"&nbsp;"}},64199:function(e,t,i){i.d(t,{getTextLeftOfCursor:function(){return o},replaceTextLeftOfCursorAfterSpace:function(){return r}});var n=i(2748);function o(e){let{startContainer:t,startOffset:i}=e;if(n.Dom.isText(t))return t.nodeValue?.substr(0,i)??"";let o=t.childNodes[i];if(!o)return"";if(n.Dom.isText(o))return o.nodeValue??"";let r=n.Dom.findNotEmptyNeighbor(o,!0,t);return n.Dom.isText(r)?o.nodeValue??"":""}function r(e,t){let{startContainer:i,startOffset:o}=e;if(!n.Dom.isText(i)&&(i=i.childNodes[o-1],n.Dom.isText(i)&&(o=i.nodeValue?.length??0)),n.Dom.isText(i)){let n=i.nodeValue??"",r=n.substring(0,o),s=n.substring(o),a=r.split(" ");a[a.length-1]="";let l=a.join(" ");i.nodeValue=l+s,e.setStart(i,l.length),e.insertNode(t);return}}},83725:function(e,t,i){i.d(t,{Autocomplete:function(){return c}});var n=i(82749),o=i(31635),r=i(31356),s=i(35934),a=i(65478),l=i(62405);class c extends l.UIGroup{className(){return"Autocomplete"}setDisplayMode(e){this.displayMode=e,this.setMod("displayMode",e)}onChangeSelection(){this.elements.forEach(e=>{e.setMod("active",!1),e.showShortcut(!1)});let e=this.elements[this.currentSelection];e&&(e.setMod("active",!0),"inline"===this.displayMode&&e.showShortcut(!0),e.container.scrollIntoView(!1))}build(e){let t=this.elements[this.currentSelection]?.item.value,i=e=>e.value,n=r.ListReconciler.reconcile(this.__previousList,e,{getId:i}),o=new Set;n.toRemove.forEach(e=>{let t=i(e);if(o.has(t))return;o.add(t);let n=this.itemsMap.get(t);n&&(-1!==this.elements.indexOf(n)&&(this.remove(n),n.destruct()),this.itemsMap.delete(e.value))}),n.toCreate.forEach(t=>{let n=i(t);if(o.has(n))return;o.add(n);let r=new s.AutocompleteItem(this.jodit,t,t=>{this.currentSelection=e.findIndex(e=>i(e)===t),this.select()});this.itemsMap.set(n,r);let a=e.indexOf(t);this.append(r,a)}),n.toUpdate.forEach(({newItem:e,index:t})=>{let n=i(e);if(o.has(n))return;o.add(n);let r=this.itemsMap.get(n);r&&(r.item=e,this.elements.indexOf(r)!==t&&t<this.elements.length&&(this.remove(r),this.append(r,t)))});let a=this.currentSelection;this.currentSelection=Math.max(0,e.findIndex(e=>i(e)===t)),a===this.currentSelection&&this.onChangeSelection(),this.__previousList=[...e]}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}select(){this.j.e.fire("select.autocomplete",this.elements[this.currentSelection].item)}constructor(...e){super(...e),(0,n._)(this,"elements",[]),(0,n._)(this,"currentSelection",-1),(0,n._)(this,"displayMode","list"),(0,n._)(this,"__previousList",[]),(0,n._)(this,"itemsMap",new Map)}}(0,o.__decorate)([(0,a.watch)("currentSelection")],c.prototype,"onChangeSelection",null),c=(0,o.__decorate)([a.component],c)},35934:function(e,t,i){i.d(t,{AutocompleteItem:function(){return l}});var n=i(82749),o=i(31635),r=i(65478),s=i(27613),a=i(48538);class l extends a.UIElement{className(){return"AutocompleteItem"}showShortcut(e){if(e&&!this.shortcutElm){let e=this.j.c.element("span");e.className="jodit-autocomplete-item__shortcut",e.innerText="tab",this.container.appendChild(e),this.shortcutElm=e}else!e&&this.shortcutElm&&(this.shortcutElm.remove(),this.shortcutElm=null)}onClickPrevent(e){e.preventDefault(),e.stopPropagation()}onClickHandler(){this.onClick(this.value)}constructor(e,t,i){super(e),(0,n._)(this,"item",void 0),(0,n._)(this,"onClick",void 0),(0,n._)(this,"value",void 0),(0,n._)(this,"shortcutElm",void 0),this.item=t,this.onClick=i,this.value="",this.shortcutElm=null;const{container:o}=this;if(this.value=t.value,(0,s.isFunction)(t.itemRenderer)){const e=t.itemRenderer(t);(0,s.isString)(e)?o.innerHTML=e:o.appendChild(e)}else o.innerText=t.title??t.value}}(0,o.__decorate)([(0,r.watch)("container:mousedown container:touchstart")],l.prototype,"onClickPrevent",null),(0,o.__decorate)([(0,r.watch)("container:click")],l.prototype,"onClickHandler",null),l=(0,o.__decorate)([r.component],l)},12373:function(e,t,i){i(25187),i(58858),i(21246),i(44864),i(3115)},38882:function(e,t,i){i.d(t,{isAllowedSubdomain:function(){return o},validateLicense:function(){return function e(t,i){var n;let r;if(n=t=t.replace(/[^A-Z0-9-]/g,"R"),/[A-Z0-9][013456][A-P0-9]{2}[ABC]-([0-3])[ELPDF][E-L4-8]{2}\1-[A-D][R0][J-P5-6]{3}-[DPGHYE][GFPOD]{3}[A-SX-Z]/.test(n)||o(i))return!0;let s=(r=i.split(".")).map(e=>{let t=e[0];return"string"==typeof t&&t.charCodeAt(0)?String.fromCharCode(t.charCodeAt(0)+1):t}).concat(r.map(e=>{let t=e[e.length-1];return"string"==typeof t&&t.charCodeAt(0)?String.fromCharCode(t.charCodeAt(0)-1):t})).map(e=>null!=e&&/\w/.test(e)?e:"r"),a=["[A-F013456][A-F0-9]{3}{part}","([0-3]){part}[E-L4-8]{2}\\1","[A-D]{part}[J-P5-6]{3}","{part}[A-R0-9]{3}[X-Z]"].map((e,t)=>e.replace("{part}",s[t]||"[R-T]")),l=RegExp(`^${a.join("-")}$`,"i"),c=t.substring(12,13),u=l.test(t);if(!u&&c===(typeof!i).toUpperCase()[5]){let n=i.split(".");return n.shift(),!!n.length&&e(t,n.join("."))}return u}}});let n=["*127.0.0.*","*localhost*","*simple*","staging.","*.dev.","*.test.","*.stg.","stg.*","test.*","beta.*","*demo.*","*test.*","acceptatie.*"];function o(e){return n.some(t=>new RegExp(t.replace(/\*/g,"%ANY%").replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&").replace(/%ANY%/g,".*")).test(e))}},21246:function(e,t,i){i.d(t,{license:function(){return u}});var n=i(38882),o=i(82758),r=i(2748),s=i(87612),a=i(70799),l=i(20356),c=i(2692);class u extends l.Plugin{static make(e){return new u(e)}afterInit(e){this.j.e.on("checkReserve",async e=>{let t=this.j.o.license;if((0,n.isAllowedSubdomain)(e))return"normal";if(!t||!(0,a.isString)(t))return"";let i=(0,n.validateLicense)(t,e);return i||!(t[12]>"A")||o.IS_TEST||(i=await this.validateLicenseRemote(t,e)),i?"normal":""})}beforeDestruct(e){}async validateLicenseRemote(e,t){let i="validateJoditLicenseRemote",o=this.j.storage.get(i);if(o&&(0,n.validateLicense)(o,t))return!0;let a=document.createElement("script");return a.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(e)}&host=${encodeURIComponent(t)}`,document.body.appendChild(a),this.j.async.promise(e=>{window.onJoditResolveKeyCode=o=>{try{if((0,s.isBoolean)(o))return e(o);(0,n.validateLicense)(o,t)?(this.j.storage.set(i,o),e(!0)):e(!1)}finally{r.Dom.safeRemove(a)}},this.j.async.setTimeout(()=>{e(!1),r.Dom.safeRemove(a)},3e3)})}}c.JoditPro.plugins.add("license",u)},20823:function(e,t,i){i.d(t,{cleanStyles:function(){return o}});let n={"text-justify":["inter-ideograph"]};function o(e){return e.isElement&&e.attributes.style&&Object.keys(n).forEach(t=>{let i=n[t];e.style.has(t)&&i.includes(e.style.get(t)?.toString())&&e.style.set(t,null)}),e}},47064:function(e,t,i){i.d(t,{clearAttributes:function(){return o}});let n=["cellspacing","cellpadding","border","v:shapes","o:spid"];function o(e){if(/^OLE_LINK\d+$/.test(e.attributes.name)&&(e.attributes.name=null,0===e.length))return e.remove(),null;for(let t of("_GoBack"===e.attributes.name&&(e.attributes.name=null),n))e.attributes[t]&&(e.attributes[t]=null);return e}},41157:function(e,t,i){i.d(t,{clearClassName:function(){return o}});var n=i(49055);let o=e=>(e.attributes.class&&(e.attributes.class=e.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi,""),(0,n.trim)(e.attributes.class)||(e.attributes.class=null)),e)},53585:function(e,t,i){i.d(t,{convertStyleUnitToPixels:function(){return o}});var n=i(43712);let o=(e,{jodit:t})=>{if(!t.o.pasteFromWord.convertUnitsToPixel)return e;let{style:i}=e;return i.forEach(e=>{let t=i.get(e);t&&i.set(e,t.toString().replace(/\d+(\.\d+)?(pt|cm)/g,e=>(0,n.convertUnitToPx)(e)+"px"))}),e}},80591:function(e,t,i){i.d(t,{convertToList:function(){return l}});var n=i(82758),o=i(10058),r=i(97420),s=i(31269),a=i(43712);function l(e){if((0,r.isPseudoLeaf)(e)){e.name="li",e.style.set("text-indent",null);let u=c(e),d=/[\da-np-zA-NP-Z].?/.test(u)?"ol":"ul",h=function(e,t){for(let t in o.listStyleMap)if(RegExp(t).test(e))return o.listStyleMap[t];return"ol"===t?"decimal":"disc"}(u,d);e.attributes[o.TYPE_KEY]=d,e.attributes[o.STYLE_KEY]=h,(0,s.calcListLevels)(e),function(e){for(;e;){let t=e.previousElement;if(!((0,r.isLeaf)(t)||(0,r.isList)(t)))break;if((0,r.isLeaf)(t)){if(e.attributes[o.LEVEL_KEY]<t.attributes[o.LEVEL_KEY]||e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]&&e.parent&&(0,r.isSameType)(e,e.parent))break;t.append(e);continue}if(e.attributes[o.LEVEL_KEY]<t.attributes[o.LEVEL_KEY]||e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]&&!(0,r.isSameType)(e,t))break;t.append(e)}}(e);let{parent:f}=e;if(!(0,r.isList)(f)||!(0,r.isSameType)(e,f)){var t,i,n,l;let s,c=(t=e,i=d,n=u,l=h,(s=t.wrap(i)).attributes.start=(0,a.calcStartBySymbol)(n),s.attributes[o.LEVEL_KEY]=t.attributes[o.LEVEL_KEY],s.attributes[o.STYLE_KEY]=t.attributes[o.STYLE_KEY],s.attributes[o.STYLE_VALID_KEY]=t.attributes[o.STYLE_KEY],s.style.set(o.STYLE_CSS_KEY,l),(0,r.isList)(s)&&s.parent?.name!=="li"&&("disc"===s.style.get(o.STYLE_CSS_KEY)||"decimal"===s.style.get(o.STYLE_CSS_KEY))&&s.style.set(o.STYLE_CSS_KEY,null),s);(0,r.isList)(f)&&(c.remove(),f.lastElement?.append(c))}}return e}let c=e=>e.textBetween(e=>e.isComment&&/\[if.*supportLists.*]/.test((0,r.html)(e)),e=>e.isComment&&/\[endif]/.test((0,r.html)(e))).replace(/&nbsp;/g,"").replace((0,n.SPACE_REG_EXP)(),"")},64693:function(e,t,i){i.d(t,{cases:function(){return g}});var n=i(20823),o=i(47064),r=i(41157),s=i(53585),a=i(80591),l=i(98940),c=i(72621),u=i(1580),d=i(18616),h=i(84021),f=i(69994),p=i(76059),m=i(21357);let g=[u.processImage,l.markPageBreakElements,h.removeExtraTags,p.replaceOldTags,o.clearAttributes,a.convertToList,d.processLinks,f.removeInsideComment,s.convertStyleUnitToPixels,r.clearClassName,c.normalizeImageProps,m.removeWidthFromTableCell,n.cleanStyles]},98940:function(e,t,i){i.d(t,{markPageBreakElements:function(){return n}});let n=e=>((e.isElement&&"always"===e.style.get("page-break-before")||"page"===e.style.get("break-before"))&&(e.attributes["jd-safe"]=!0,e.style.add("page-break-before","always"),e.isSingle&&(e.name="div")),e)},72621:function(e,t,i){i.d(t,{normalizeImageProps:function(){return n}});let n=e=>(e.isElement&&"img"===e.name&&(e.attributes.align&&(e.style.add("float",e.attributes.align),e.attributes.align=null),e.attributes.hspace&&(e.style.add("marginLeft",e.attributes.hspace+"px"),e.style.add("marginRight",e.attributes.hspace+"px"),e.attributes.hspace=null)),e)},1580:function(e,t,i){i.d(t,{processImage:function(){return o}});var n=i(21537);let o=(e,t)=>{if(t.rtf&&"#comment"===e.name&&e.attributes.nodeValue&&-1!==e.attributes.nodeValue.indexOf("<v:shape")){t.shapes||(t.shapes={});let i=t.jodit.create.fromHTML(e.attributes.nodeValue);return(0,n.toArray)(i.getElementsByTagName("v:shape")).forEach(e=>{t.shapes[e.id]=e.getAttribute("o:spid")}),e}if("img"!==e.name)return e;if(t.rtf&&e.attributes["v:shapes"]){let i=t.shapes?.[e.attributes["v:shapes"]];if(i){let n=t.imageMap??{};t.imageMap||(t.imageMap=n,r(t.rtf,"i","\\shppict",t.imageMap),r(t.rtf,"s","\\shp{",t.imageMap));let o=n[i.substring(7)];if(o){let t=[],i=o.hex.match(/[0-9a-f]{2}/gi);if(i){for(let e=0;e<i.length;e++){let n=parseInt(i[e],16);t.push(String.fromCharCode(n))}e.attributes.src="data:"+o.type+";base64,"+btoa(t.join(""))}}}}return e};function r(e,t,i,n){for(let o of e.split(i)){let e=o.split("shplid");if(1<e.length){let i,o=e[1],r="";for(let e=0;e<o.length&&!/[{ \r\n\\]/.test(o[e]);e++)r+=o[e];let s=o.split("bliptag");if(s&&s.length<2)continue;let a=null;if(s[0].indexOf("pngblip")?a="image/png":-1!==s[0].indexOf("jpegblip")&&(a="image/jpeg"),!a)continue;let l=s[1].split("}");if(l&&l.length<2)continue;if(2<l.length&&l[0].includes("blipuid"))i=l[1].split(" ");else{if((i=l[0].split(" "))&&i.length<2)continue;i.shift()}n[t+r]={hex:i.join(""),type:a}}}}},18616:function(e,t,i){i.d(t,{processLinks:function(){return n}});let n=(e,t)=>{let i=t.links??{};if(e.attributes.href&&e.attributes.href.match(/#.+$/)&&(i[e.attributes.href.match(/#(.+)$/)[1]]=e),e.attributes.name&&i[e.attributes.name]){let t=i[e.attributes.name];t.attributes.href=t.attributes.href.replace(/.*#(.*)$/,"#$1")}return t.links=i,e}},84021:function(e,t,i){i.d(t,{removeExtraTags:function(){return o}});let n=new Set(["o:p","xml","script","meta","link","v:imagedata","style"]);function o(e){return"none"===e.style.get("display")||0===e.length&&"span"===e.name||n.has(e.name)?(e.remove(),null):e}},69994:function(e,t,i){i.d(t,{removeInsideComment:function(){return r}});var n=i(99658);let o=0;function r(e){return(e.isComment&&/\[if.*(supportLists|gte vml).*]/.test((0,n.html)(e))&&(o++,e.remove()),e.isComment&&o>0&&(0,n.html)(e).includes("[endif]")&&(o=o>0?o-1:0,e.remove()),o&&(e.isText||"img"===e.name&&(!e.attributes.src||/^file:/.test(e.attributes.src))))?(e.remove(),null):e}},76059:function(e,t,i){i.d(t,{replaceOldTags:function(){return o}});let n={i:"em",b:"strong"};function o(e){let{name:t}=e;return t in n&&(e.name=n[t]),e}},21357:function(e,t,i){i.d(t,{removeWidthFromTableCell:function(){return n}});let n=e=>(e.attributes.width&&("th"===e.name||"td"===e.name)&&(e.attributes.width=null),e)},13085:function(e,t,i){i(6441).Config.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1,allowedStyleProps:["background","background-color","border","border-.*","color","float","font-family","font-size","font-style","font-weight","height","line-height","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","padding","text-align","text-justify","text-decoration","text-indent","vertical-align","width"]}},10058:function(e,t,i){i.d(t,{LEVEL_KEY:function(){return n},STYLE_CSS_KEY:function(){return a},STYLE_KEY:function(){return r},STYLE_VALID_KEY:function(){return s},TYPE_KEY:function(){return o},listStyleMap:function(){return l}});let n="jd-list-level",o="jd-list-type",r="jd-list-style-type",s="data-list-style-type",a="list-style-type",l={"·":"disc",o:"circle","§":"square","[ivx]":"lower-roman","[IVX]":"upper-roman","[a-z]":"lower-alpha","[A-Z]":"upper-alpha","\\d":"decimal"}},18594:function(e,t,i){i.d(t,{isLeaf:function(){return s},isList:function(){return r},isPseudoLeaf:function(){return a},isSameType:function(){return l}});var n=i(99658),o=i(10058);function r(e){return!!(e&&("ol"===e.name||"ul"===e.name))}function s(e){return!!(e&&"li"===e.name)}function a(e){return"li"!==e.name&&/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(e.attributes.style)||/msolistparagraph/i.test(e.attributes.class)&&!!e.find(e=>e.isComment&&(0,n.html)(e).includes("supportLists")).length}function l(e,t){let i=e.attributes[o.TYPE_KEY],n=e.attributes[o.STYLE_KEY];return t.name===i&&t.attributes[o.STYLE_KEY]===n&&e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]}},42968:function(e,t,i){i.d(t,{JElement:function(){return u}});var n=i(82749),o=i(99658),r=i(40273),s=i(82758),a=i(2748),l=i(38837);let c=new Set(s.INSEPARABLE_TAGS);class u{get isText(){return this.type===Node.TEXT_NODE}get isElement(){return this.type===Node.ELEMENT_NODE}get isComment(){return this.type===Node.COMMENT_NODE}get isSingle(){return c.has(this.name)}get length(){return this.children.length}static make(e,t=null){return new u(e,t)}wrap(e){(0,l.assert)(null!=this.parent,"You can't wrap the root element");let t=u.make(document.createElement(e),this.parent),i=this.parent.children.indexOf(this)??-1;return -1===i?this.parent.append(t):this.parent.children[i]=t,t.append(this),t}append(e){return(0,l.assert)(e!==this,"Forbidden to add to yourself"),e.remove(),this.children.push(e),e.parent=this,this}get previousElement(){if(!this.parent)return null;let{children:e}=this.parent,t=e.indexOf(this);if(-1!==t){for(let i=t-1;i>=0;i-=1)if(e[i].isElement)return e[i]}return null}get lastElement(){let{children:e}=this;for(let t=e.length-1;t>=0;t-=1)if(e[t].isElement)return e[t];return null}get previous(){return this.sibling(!1)??this.parent?.previous??null}get next(){return this.sibling(!0)??this.parent?.next??null}sibling(e){if(!this.parent)return null;let{children:t}=this.parent,i=t.indexOf(this);return -1!==i&&t[i+(e?1:-1)]?t[i+(e?1:-1)]:null}forEach(e,t=!1){for(let i of[...this.children])if(!1===e(i)||t&&!1===i.forEach(e,!0))return!1}find(e,t=!0){let i=[];return this.forEach(t=>{e(t)&&i.push(t)},t),i}map(e){return this.children.map(e)}remove(){let e=this.parent?.children.indexOf(this);return null!=e&&-1!==e&&this.parent?.children.splice(e,1),this}textBetween(e,t){let i=!1,n=[];return this.forEach(r=>{if(!i&&e(r)&&(i=!0),i&&r.isText&&n.push((0,o.html)(r)),i&&t(r))return!1},!0),n.join("")}constructor(e,t){(0,n._)(this,"parent",void 0),(0,n._)(this,"name",void 0),(0,n._)(this,"type",void 0),(0,n._)(this,"attributes",void 0),(0,n._)(this,"style",void 0),(0,n._)(this,"children",void 0),this.parent=t,this.name=e.nodeName.toLowerCase(),this.type=e.nodeType,this.attributes=function(e){let t={};if(a.Dom.isElement(e))for(let i=0,n=e.attributes;i<n.length;i+=1)t[n[i].name]=n[i].value;else t.nodeValue=e.nodeValue;return t}(e),this.style=new r.Style(this.attributes.style),this.children=[],e.childNodes.forEach(e=>this.children.push(u.make(e,this)))}}},97420:function(e,t,i){i.d(t,{JElement:function(){return o.JElement},html:function(){return r.html},innerHTML:function(){return r.innerHTML},isLeaf:function(){return n.isLeaf},isList:function(){return n.isList},isPseudoLeaf:function(){return n.isPseudoLeaf},isSameType:function(){return n.isSameType}});var n=i(18594),o=i(42968),r=i(99658)},99658:function(e,t,i){i.d(t,{html:function(){return s},innerHTML:function(){return l}});var n=i(82758),o=i(87612),r=i(49055);function s(e,t=()=>!0,i=!0,o){switch(!0){case e.isComment:case e.isText:{if(!t(e))return"";let{nodeValue:i}=e.attributes;return e.isComment?`<!--${i}-->`:i}case e.isElement:{let{attributes:n}=e,r=l(e,t,i,o);if(!e.attributes["jd-safe"]&&i&&0===r.replace(/[\n\t]/g,"").length&&!e.isSingle)return"";let s=Object.keys(n).map(e=>"style"===e||null==n[e]||/^jd-/.test(e)?"":`${e}="${c(n[e])}"`).filter(Boolean),{str:u}=e.style,d=c(u(e=>a(e,o)));if(d&&s.push(`style="${d}"`),i&&0===s.length&&["span","a"].includes(e.name))return r;let h=s.length?" "+s.join(" "):"";if(!t(e))return r;return e.isSingle?`<${e.name}${h}/>`:`<${e.name}${h}>${r}</${e.name}>`}default:if(!n.IS_PROD)throw Error("Need implementation for this type")}return""}function a(e,t){if(!t)return!0;if(a.cache.has(t)){let i=a.cache.get(t)?.get(e);if((0,o.isBoolean)(i))return i}let i=t.some(t=>new RegExp(t).test(e)),n=a.cache.get(t)||new Map;return n.set(e,i),a.cache.set(t,n),i}function l(e,t=()=>!0,i=!0,n){let o=e.map(e=>s(e,t,i,n)).join("");return"p"===e.name&&0===(0,r.trim)(o).length&&(o="&nbsp;"),o}function c(e){return e.toString().replace(/"/g,"&quot;")}a.cache=new WeakMap},40273:function(e,t,i){i.d(t,{Style:function(){return u}});var n=i(82749),o=i(31635),r=i(45219),s=i(70799),a=i(12475),l=i(49055),c=i(43712);class u{get keys(){return Object.keys(this._data)}forEach(e){this.keys.forEach(t=>e(t))}clear(){this._data={}}set(e,t){this._data[e]=t}get(e){return this._data[e]??null}has(e){return void 0!==this._data[e]}add(e,t){return this._data=d(this.str()+";"+`${e}:${t}`),this}str(e=e=>!0){let t=Object.keys(this._data).filter(t=>t&&!/^mso-/.test(t)&&e(t)&&null!=this.get(t)),i=e=>(0,s.isString)(e)?/^0[a-z]+$/i.test(e)?"0":e:e.toString();return(["padding","margin"].forEach(e=>{if(this._data[e]){let n=t.indexOf(e),o=(0,c.calcMarginParts)(this._data[e]);["top","right","bottom","left"].forEach((r,s)=>{let a=`${e}-${r}`,l=this._data[a];null!=l&&(t.indexOf(a)<n||i(o[s])===i(l))&&-1!==t.indexOf(a)&&t.splice(t.indexOf(a),1)})}}),t.length)?t.map(e=>`${(0,a.kebabCase)(e)}:${this.get(e)}`).join(";"):""}constructor(e){(0,n._)(this,"_data",void 0),this._data=d(e)}}function d(e){return(function(e){let t={},i=[];for(let n=e.length-1;n>=0;n-=1){let o=e[n][0];t[o]||(t[o]=!0,i.unshift(e[n]))}return i})((e??"").replace(/&quot;/g,'"').split(";").filter(Boolean).map(e=>(0,l.trim)(e).split(":").map(l.trim))).reduce((e,[t,i])=>(t&&i&&(e[t]=i),e),{})}(0,o.__decorate)([r.autobind],u.prototype,"forEach",null),(0,o.__decorate)([r.autobind],u.prototype,"clear",null),(0,o.__decorate)([r.autobind],u.prototype,"set",null),(0,o.__decorate)([r.autobind],u.prototype,"get",null),(0,o.__decorate)([r.autobind],u.prototype,"has",null),(0,o.__decorate)([r.autobind],u.prototype,"add",null),(0,o.__decorate)([r.autobind],u.prototype,"str",null)},51586:function(e,t,i){i.d(t,{applyStylesPro:function(){return l}});var n=i(19606),o=i(2748),r=i(29960),s=i(76078),a=i(97420);function l(e,t,i,c=""){let u=document.createElement("iframe");u.style.display="none",document.body.appendChild(u);try{let o=u.contentDocument??u.contentWindow?.document;if(!o)return t;o.open(),o.write(t),o.close();let l="jd-style";for(let e=0;e<o.styleSheets.length;e+=1)try{let t=o.styleSheets[e].cssRules;for(let e=0;e<t.length;e+=1)t[e].selectorText&&(0,s.$$)(t[e].selectorText,o.body).forEach(i=>{(0,r.attr)(i,l)||((0,r.attr)(i,l,(0,r.attr)(i,"style")||""),(0,r.attr)(i,"style","")),(0,r.attr)(i,"style",`${(0,r.attr)(i,"style")};${t[e].style.cssText}`)})}catch(e){}return(0,s.$$)(`[${l}]`,o.body).forEach(e=>{(0,r.attr)(e,"style",`${(0,r.attr)(e,"style")};${(0,r.attr)(e,l)}`)}),(0,n.transformWordToHtml)(e,a.JElement.make(o.body),i,c)}finally{o.Dom.safeRemove(u)}}},31269:function(e,t,i){i.d(t,{calcListLevels:function(){return s}});var n=i(43712),o=i(10058),r=i(97420);function s(e){if(void 0!==e.attributes[o.LEVEL_KEY])return;let t=[(0,n.realPixelIndent)(e)],i=[e],s=e.next;for(;s;){if(s.isElement&&!s.attributes[o.LEVEL_KEY]&&(0,r.isPseudoLeaf)(s)){let e=(0,n.realPixelIndent)(s);e&&(t.push(e),i.push(s))}s=s.next}let a=Math.min(...t.filter(e=>e>0)),l=t.map(e=>Math.ceil(e/10));-1!==l.indexOf(0)&&(l=l.map(e=>e+1)),i.forEach((e,t)=>{e.attributes[o.LEVEL_KEY]=l[t],e.style.add("margin-left",`${Math.max((0,n.realPixelIndent)(e)-10*l[t]/a*40,0)}px`)})}},43712:function(e,t,i){let n;function o(e){if(!e)return[0,0,0,0];let t=e.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g)||["0px"];switch(t.length){case 2:return[0,1,0,1].map(e=>t[e]);case 3:return[0,1,2,1].map(e=>t[e]);case 4:return[0,1,2,3].map(e=>t[e]);default:return[0,0,0,0].map(e=>t[e])}}function r(e){if("number"==typeof e)return e;if(/%$/.test(e))return 0;n||(Object.assign((n=document.createElement("div")).style,{position:"absolute",left:"-9999px",top:"-9999px",margin:"0",padding:"0",border:"0"}),document.body.append(n),setTimeout(()=>{n?.remove(),n=null}));let t=0>parseFloat(e);t&&(e=e.replace("-","")),n.style.width=e;let i=n.clientWidth;return t?-i:i}function s(e){let{style:t}=e,i=t.keys.filter(e=>/margin/.test(e)),n=Math.max(i.indexOf("margin-left"),i.indexOf("margin")),s=n>0?i[n]:"margin-left";return r("margin"===s?o(t.get("margin"))[3]||0:t.get(s)||0)}function a(e){return/\d.\d/.test(e)?e.split(".").pop()||null:/^\d/.test(e)?(parseInt(e,10)||1).toString():null}i.d(t,{calcMarginParts:function(){return o},calcStartBySymbol:function(){return a},convertUnitToPx:function(){return r},realPixelIndent:function(){return s}})},30717:function(e,t,i){i.d(t,{applyStylesPro:function(){return n.applyStylesPro}});var n=i(51586);i(31269),i(19606)},19606:function(e,t,i){i.d(t,{transformWordToHtml:function(){return s}});var n=i(49055),o=i(64693),r=i(97420);function s(e,t,i,s){let a={jodit:e,rtf:s};return t.forEach(function e(t){if(t){for(let e of o.cases)if(null==(t=e(t,a)))break;t?.forEach(e)}}),i&&t.forEach(e=>{e.style.clear()},!0),(0,n.trim)((0,r.innerHTML)(t,e=>!e.isComment,!0,e.o.pasteFromWord.allowedStyleProps))}},58858:function(e,t,i){i.r(t),i.d(t,{PasteFromWordPro:function(){return u}});var n=i(82749);i(13085);var o=i(30717),r=i(82758),s=i(70799),a=i(117),l=i(31571),c=i(2692);class u extends l.pasteFromWord{insertFromWordByType(e,t,i,n){if(this.j.o.pasteFromWord.enable&&(i===r.INSERT_AS_HTML||i===r.INSERT_AS_TEXT)){if(t=(0,o.applyStylesPro)(this.j,t,i===r.INSERT_AS_TEXT,n.rtf),this.j.o.beautifyHTML){let e=this.j.events?.fire("beautifyHTML",t);(0,s.isString)(e)&&(t=e)}(0,a.pasteInsertHtml)(e,this.j,t);return}return super.insertFromWordByType(e,t,i,n)}}(0,n._)(u,"requires",["license"]),c.JoditPro.plugins.remove("pasteFromWord"),c.JoditPro.plugins.add("pasteFromWordPro",u)},82749:function(e,t,i){i.d(t,{_:function(){return n}});function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},31635:function(e,t,i){function n(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}i.d(t,{__decorate:function(){return n}}),"function"==typeof SuppressedError&&SuppressedError}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e].call(i.exports,i,i.exports,s),i.exports}s.m=o,e=[],s.O=function(t,i,n,o){if(i){o=o||0;for(var r=e.length;r>0&&e[r-1][2]>o;r--)e[r]=e[r-1];e[r]=[i,n,o];return}for(var a=1/0,r=0;r<e.length;r++){for(var i=e[r][0],n=e[r][1],o=e[r][2],l=!0,c=0;c<i.length;c++)(!1&o||a>=o)&&Object.keys(s.O).every(function(e){return s.O[e](i[c])})?i.splice(c--,1):(l=!1,o<a&&(a=o));if(l){e.splice(r--,1);var u=n();void 0!==u&&(t=u)}}return t},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t={521:0},s.O.j=function(e){return 0===t[e]},i=function(e,i){var n,o,r=i[0],a=i[1],l=i[2],c=0;if(r.some(function(e){return 0!==t[e]})){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);if(l)var u=l(s)}for(e&&e(i);c<r.length;c++)o=r[c],s.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return s.O(u)},(n=self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).forEach(i.bind(null,0)),n.push=i.bind(null,n.push.bind(n));var a={};s.r(a),s.d(a,{Jodit:function(){return c.JoditPro}}),s(12373);var l=s(31356),c=s(2692);return c.JoditPro.plugins.add("poweredByJodit",function(){}),c.JoditPro.modules.ListReconciler=l.ListReconciler,a=s.O(a)}()});