jodit-pro 4.15.2 → 4.15.4

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 (325) hide show
  1. package/es2015/jodit.css +2 -2
  2. package/es2015/jodit.fat.min.css +1 -1
  3. package/es2015/jodit.fat.min.js +13 -13
  4. package/es2015/jodit.js +11 -7
  5. package/es2015/jodit.min.css +1 -1
  6. package/es2015/jodit.min.js +4 -4
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  8. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  9. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  10. package/es2015/plugins/autocomplete/autocomplete.css +1 -1
  11. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  12. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  13. package/es2015/plugins/backup/backup.css +1 -1
  14. package/es2015/plugins/backup/backup.js +1 -1
  15. package/es2015/plugins/backup/backup.min.js +1 -1
  16. package/es2015/plugins/button-generator/button-generator.css +1 -1
  17. package/es2015/plugins/button-generator/button-generator.js +1 -1
  18. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  19. package/es2015/plugins/change-case/change-case.js +1 -1
  20. package/es2015/plugins/change-case/change-case.min.js +1 -1
  21. package/es2015/plugins/color-picker/color-picker.css +1 -1
  22. package/es2015/plugins/color-picker/color-picker.js +1 -1
  23. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  24. package/es2015/plugins/emoji/emoji.css +1 -1
  25. package/es2015/plugins/emoji/emoji.js +1 -1
  26. package/es2015/plugins/emoji/emoji.min.js +1 -1
  27. package/es2015/plugins/export-docs/export-docs.js +1 -1
  28. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  29. package/es2015/plugins/finder/finder.css +1 -1
  30. package/es2015/plugins/finder/finder.js +1 -1
  31. package/es2015/plugins/finder/finder.min.js +1 -1
  32. package/es2015/plugins/google-maps/google-maps.css +1 -1
  33. package/es2015/plugins/google-maps/google-maps.js +1 -1
  34. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  35. package/es2015/plugins/google-search/google-search.js +1 -1
  36. package/es2015/plugins/google-search/google-search.min.js +1 -1
  37. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  38. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  39. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  40. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  41. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  42. package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
  43. package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
  44. package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  45. package/es2015/plugins/keyboard/keyboard.css +1 -1
  46. package/es2015/plugins/keyboard/keyboard.js +1 -1
  47. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  48. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  49. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  50. package/es2015/plugins/page-break/page-break.js +1 -1
  51. package/es2015/plugins/page-break/page-break.min.js +1 -1
  52. package/es2015/plugins/paste-code/paste-code.css +1 -1
  53. package/es2015/plugins/paste-code/paste-code.js +1 -1
  54. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  55. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  56. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  57. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  58. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  59. package/es2015/plugins/style/style.css +1 -1
  60. package/es2015/plugins/style/style.js +1 -1
  61. package/es2015/plugins/style/style.min.js +1 -1
  62. package/es2015/plugins/templates/templates.css +1 -1
  63. package/es2015/plugins/templates/templates.js +1 -1
  64. package/es2015/plugins/templates/templates.min.js +1 -1
  65. package/es2015/plugins/todo-list/todo-list.css +1 -1
  66. package/es2015/plugins/todo-list/todo-list.js +1 -1
  67. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  68. package/es2015/plugins/translate/translate.css +1 -1
  69. package/es2015/plugins/translate/translate.js +1 -1
  70. package/es2015/plugins/translate/translate.min.js +1 -1
  71. package/es2015/plugins/tune-block/tune-block.css +1 -1
  72. package/es2015/plugins/tune-block/tune-block.js +1 -1
  73. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  74. package/es2018/jodit.fat.min.css +1 -1
  75. package/es2018/jodit.fat.min.js +4 -4
  76. package/es2018/jodit.min.css +1 -1
  77. package/es2018/jodit.min.js +4 -4
  78. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  79. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  80. package/es2018/plugins/backup/backup.min.js +1 -1
  81. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  82. package/es2018/plugins/change-case/change-case.min.js +1 -1
  83. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  84. package/es2018/plugins/emoji/emoji.min.js +1 -1
  85. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  86. package/es2018/plugins/finder/finder.min.js +1 -1
  87. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  88. package/es2018/plugins/google-search/google-search.min.js +1 -1
  89. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  90. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  91. package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  92. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  93. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  94. package/es2018/plugins/page-break/page-break.min.js +1 -1
  95. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  96. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  97. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  98. package/es2018/plugins/style/style.min.js +1 -1
  99. package/es2018/plugins/templates/templates.min.js +1 -1
  100. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  101. package/es2018/plugins/translate/translate.min.js +1 -1
  102. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  103. package/es2021/jodit.css +2 -2
  104. package/es2021/jodit.fat.min.css +1 -1
  105. package/es2021/jodit.fat.min.js +4 -4
  106. package/es2021/jodit.js +11 -7
  107. package/es2021/jodit.min.css +1 -1
  108. package/es2021/jodit.min.js +4 -4
  109. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  110. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  111. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  112. package/es2021/plugins/autocomplete/autocomplete.css +1 -1
  113. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  114. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  115. package/es2021/plugins/backup/backup.css +1 -1
  116. package/es2021/plugins/backup/backup.js +1 -1
  117. package/es2021/plugins/backup/backup.min.js +1 -1
  118. package/es2021/plugins/button-generator/button-generator.css +1 -1
  119. package/es2021/plugins/button-generator/button-generator.js +1 -1
  120. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  121. package/es2021/plugins/change-case/change-case.js +1 -1
  122. package/es2021/plugins/change-case/change-case.min.js +1 -1
  123. package/es2021/plugins/color-picker/color-picker.css +1 -1
  124. package/es2021/plugins/color-picker/color-picker.js +1 -1
  125. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  126. package/es2021/plugins/emoji/emoji.css +1 -1
  127. package/es2021/plugins/emoji/emoji.js +1 -1
  128. package/es2021/plugins/emoji/emoji.min.js +1 -1
  129. package/es2021/plugins/export-docs/export-docs.js +1 -1
  130. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  131. package/es2021/plugins/finder/finder.css +1 -1
  132. package/es2021/plugins/finder/finder.js +1 -1
  133. package/es2021/plugins/finder/finder.min.js +1 -1
  134. package/es2021/plugins/google-maps/google-maps.css +1 -1
  135. package/es2021/plugins/google-maps/google-maps.js +1 -1
  136. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  137. package/es2021/plugins/google-search/google-search.js +1 -1
  138. package/es2021/plugins/google-search/google-search.min.js +1 -1
  139. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  140. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  141. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  142. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  143. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  144. package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
  145. package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
  146. package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  147. package/es2021/plugins/keyboard/keyboard.css +1 -1
  148. package/es2021/plugins/keyboard/keyboard.js +1 -1
  149. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  150. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  151. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  152. package/es2021/plugins/page-break/page-break.js +1 -1
  153. package/es2021/plugins/page-break/page-break.min.js +1 -1
  154. package/es2021/plugins/paste-code/paste-code.css +1 -1
  155. package/es2021/plugins/paste-code/paste-code.js +1 -1
  156. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  157. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  158. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  159. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  160. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  161. package/es2021/plugins/style/style.css +1 -1
  162. package/es2021/plugins/style/style.js +1 -1
  163. package/es2021/plugins/style/style.min.js +1 -1
  164. package/es2021/plugins/templates/templates.css +1 -1
  165. package/es2021/plugins/templates/templates.js +1 -1
  166. package/es2021/plugins/templates/templates.min.js +1 -1
  167. package/es2021/plugins/todo-list/todo-list.css +1 -1
  168. package/es2021/plugins/todo-list/todo-list.js +1 -1
  169. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  170. package/es2021/plugins/translate/translate.css +1 -1
  171. package/es2021/plugins/translate/translate.js +1 -1
  172. package/es2021/plugins/translate/translate.min.js +1 -1
  173. package/es2021/plugins/tune-block/tune-block.css +1 -1
  174. package/es2021/plugins/tune-block/tune-block.js +1 -1
  175. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  176. package/es2021.en/jodit.css +2 -2
  177. package/es2021.en/jodit.fat.min.css +1 -1
  178. package/es2021.en/jodit.fat.min.js +4 -4
  179. package/es2021.en/jodit.js +11 -7
  180. package/es2021.en/jodit.min.css +1 -1
  181. package/es2021.en/jodit.min.js +4 -4
  182. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  183. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  184. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  185. package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
  186. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  187. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  188. package/es2021.en/plugins/backup/backup.css +1 -1
  189. package/es2021.en/plugins/backup/backup.js +1 -1
  190. package/es2021.en/plugins/backup/backup.min.js +1 -1
  191. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  192. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  193. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  194. package/es2021.en/plugins/change-case/change-case.js +1 -1
  195. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  196. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  197. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  198. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  199. package/es2021.en/plugins/emoji/emoji.css +1 -1
  200. package/es2021.en/plugins/emoji/emoji.js +1 -1
  201. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  202. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  203. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  204. package/es2021.en/plugins/finder/finder.css +1 -1
  205. package/es2021.en/plugins/finder/finder.js +1 -1
  206. package/es2021.en/plugins/finder/finder.min.js +1 -1
  207. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  208. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  209. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  210. package/es2021.en/plugins/google-search/google-search.js +1 -1
  211. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  212. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  213. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  214. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  215. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  216. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  217. package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
  218. package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
  219. package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  220. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  221. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  222. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  223. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  224. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  225. package/es2021.en/plugins/page-break/page-break.js +1 -1
  226. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  227. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  228. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  229. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  230. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  231. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  232. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  233. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  234. package/es2021.en/plugins/style/style.css +1 -1
  235. package/es2021.en/plugins/style/style.js +1 -1
  236. package/es2021.en/plugins/style/style.min.js +1 -1
  237. package/es2021.en/plugins/templates/templates.css +1 -1
  238. package/es2021.en/plugins/templates/templates.js +1 -1
  239. package/es2021.en/plugins/templates/templates.min.js +1 -1
  240. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  241. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  242. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  243. package/es2021.en/plugins/translate/translate.css +1 -1
  244. package/es2021.en/plugins/translate/translate.js +1 -1
  245. package/es2021.en/plugins/translate/translate.min.js +1 -1
  246. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  247. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  248. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  249. package/es5/jodit.css +3 -3
  250. package/es5/jodit.fat.min.css +1 -1
  251. package/es5/jodit.fat.min.js +2 -2
  252. package/es5/jodit.js +11 -7
  253. package/es5/jodit.min.css +3 -3
  254. package/es5/jodit.min.js +2 -2
  255. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  256. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  257. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  258. package/es5/plugins/autocomplete/autocomplete.css +1 -1
  259. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  260. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  261. package/es5/plugins/backup/backup.css +1 -1
  262. package/es5/plugins/backup/backup.js +1 -1
  263. package/es5/plugins/backup/backup.min.js +1 -1
  264. package/es5/plugins/button-generator/button-generator.css +1 -1
  265. package/es5/plugins/button-generator/button-generator.js +1 -1
  266. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  267. package/es5/plugins/change-case/change-case.js +1 -1
  268. package/es5/plugins/change-case/change-case.min.js +1 -1
  269. package/es5/plugins/color-picker/color-picker.css +1 -1
  270. package/es5/plugins/color-picker/color-picker.js +1 -1
  271. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  272. package/es5/plugins/emoji/emoji.css +1 -1
  273. package/es5/plugins/emoji/emoji.js +1 -1
  274. package/es5/plugins/emoji/emoji.min.js +1 -1
  275. package/es5/plugins/export-docs/export-docs.js +1 -1
  276. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  277. package/es5/plugins/finder/finder.css +1 -1
  278. package/es5/plugins/finder/finder.js +1 -1
  279. package/es5/plugins/finder/finder.min.js +1 -1
  280. package/es5/plugins/google-maps/google-maps.css +1 -1
  281. package/es5/plugins/google-maps/google-maps.js +1 -1
  282. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  283. package/es5/plugins/google-search/google-search.js +1 -1
  284. package/es5/plugins/google-search/google-search.min.js +1 -1
  285. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  286. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  287. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  288. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  289. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  290. package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
  291. package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
  292. package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  293. package/es5/plugins/keyboard/keyboard.css +1 -1
  294. package/es5/plugins/keyboard/keyboard.js +1 -1
  295. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  296. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  297. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  298. package/es5/plugins/page-break/page-break.js +1 -1
  299. package/es5/plugins/page-break/page-break.min.js +1 -1
  300. package/es5/plugins/paste-code/paste-code.css +1 -1
  301. package/es5/plugins/paste-code/paste-code.js +1 -1
  302. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  303. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  304. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  305. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  306. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  307. package/es5/plugins/style/style.css +1 -1
  308. package/es5/plugins/style/style.js +1 -1
  309. package/es5/plugins/style/style.min.js +1 -1
  310. package/es5/plugins/templates/templates.css +1 -1
  311. package/es5/plugins/templates/templates.js +1 -1
  312. package/es5/plugins/templates/templates.min.js +1 -1
  313. package/es5/plugins/todo-list/todo-list.css +1 -1
  314. package/es5/plugins/todo-list/todo-list.js +1 -1
  315. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  316. package/es5/plugins/translate/translate.css +1 -1
  317. package/es5/plugins/translate/translate.js +1 -1
  318. package/es5/plugins/translate/translate.min.js +1 -1
  319. package/es5/plugins/tune-block/tune-block.css +1 -1
  320. package/es5/plugins/tune-block/tune-block.js +1 -1
  321. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  322. package/es5/polyfills.fat.min.js +1 -1
  323. package/es5/polyfills.js +1 -1
  324. package/es5/polyfills.min.js +1 -1
  325. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.15.2
4
+ * Version: v4.15.4
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -14,7 +14,7 @@
14
14
  */.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}`,""])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var i=function(e,t){var i=e[1]||"",o=e[3];if(!o)return i;if(t&&"function"==typeof btoa){var n="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */";return[i].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([n]).join(`
15
15
  `)}return[i].join(`
16
16
  `)}(t,e);return t[2]?"@media "+t[2]+"{"+i+"}":i}).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},n=0;n<this.length;n++){var r=this[n][0];"number"==typeof r&&(o[r]=!0)}for(n=0;n<e.length;n++){var s=e[n];"number"==typeof s[0]&&o[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),t.push(s))}},t}}],t={};function i(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=e,i.c=t,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},i.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(o,n,(function(t){return e[t]}).bind(null,n));return o},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=1)}()},6441:function(e,t,i){"use strict";i.d(t,{Config:function(){return r}});var o=i(82758);let n={};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=o.globalDocument,this.ownerWindow=o.globalWindow,this.shadowRoot=null,this.nonce="",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.asyncStorage={},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=o.INSERT_AS_HTML,this.enter=o.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:o.PARAGRAPH,this.defaultMode=o.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:[]},`
17
- `,{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,n)}}n=r.prototype,r.prototype.controls={}},26992:function(e,t,i){"use strict";i.d(t,{Async:function(){return f}});var o=i(82758),n=i(91898),r=i(12045),s=i(23282),a=i(84767),l=i(72430),c=i(14773),d=i(70799),u=i(86068),h=i(38837),p=i(93661);class f{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let o={};(0,u.isVoid)(t)&&(t=0),(0,a.isNumber)(t)||(t=(o=t).timeout||0),o.label&&this.clearLabel(o.label);let r=(0,n.setTimeout)(e,t,...i),s=o.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,n.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,d.isString)(e))return this.clearLabel(e);(0,n.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let o=0,a=!1,d=[],u=(...t)=>{if(!a){o=0;let i=e(...t);if(a=!0,d.length){let e=()=>{d.forEach(e=>e()),d.length=0};(0,c.isPromise)(i)?i.finally(e):e()}}},h=(...r)=>{a=!1,t?(!o&&i&&u(...r),(0,n.clearTimeout)(o),o=this.setTimeout(()=>u(...r),(0,s.isFunction)(t)?t():t),this.timers.set(e,o)):u(...r)};return(0,l.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{d.push(e)}).catch(e=>{if((0,r.isAbortError)(e))return null;throw e});return h(...e),t}:h}microDebounce(e,t=!1){let i,o=!1,n=!0;return(...r)=>{if(i=r,o){n=!0;return}n=!0,t&&(n=!1,e(...i)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&n&&e(...i)})}}throttle(e,t,i=!1){let o=null,n,r,a;return(...i)=>{(n=!0,a=i,t)?o||(r=()=>{n?(e(...a),n=!1,o=this.setTimeout(r,(0,s.isFunction)(t)?t():t),this.timers.set(r,o)):o=null})():e(...a)}}promise(e){let t=()=>{},i=new Promise((i,o)=>{t=()=>o((0,p.abort)("Abort async")),this.promisesRejections.add(t),e(i,o)});return!i.finally&&"u">typeof process&&!o.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 o=globalThis.scheduler.postTask(e,{...t,signal:i.signal});return o.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),o}return this.promise((o,n)=>{let r=this.setTimeout(()=>{try{o(e())}catch(e){n(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(i),n((0,p.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,n.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,o,n;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 o=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},null!=(i=null==t?void 0:t.timeout)?i:1)},this.__cancelIdleCallbackNative=null!=(n=null==(o=window.cancelIdleCallback)?void 0:o.bind(window))?n:e=>{this.clearTimeout(e)},this.isDestructed=!1}}},8884:function(e,t,i){"use strict";i.d(t,{Async:function(){return o.Async}});var o=i(26992)},4012:function(e,t,i){"use strict";i.d(t,{Component:function(){return l}});var o=i(8884),n=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 o=[this.componentName];return e&&o.push("__"+(e=e.replace(/[^a-z0-9-]/gi,"-"))),t&&(o.push("_",t),o.push("_",(0,s.isVoid)(i)?"true":i.toString())),o.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===n.STATUSES.ready}get isDestructed(){return this.componentStatus===n.STATUSES.destructed}get isInDestruct(){return n.STATUSES.beforeDestruct===this.componentStatus||n.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(n.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(n.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 o=a.get(this),n=null==o?void 0:o[e];n&&n.length&&n.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 o.Async,this.ownerWindow=window,this.__componentStatus=n.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,r.uniqueUid)()}}l.STATUSES=n.STATUSES},91907:function(e,t,i){"use strict";i.d(t,{Component:function(){return o.Component},STATUSES:function(){return n.STATUSES},ViewComponent:function(){return r.ViewComponent}});var o=i(4012),n=i(78213),r=i(80480)},78213:function(e,t,i){"use strict";i.d(t,["STATUSES",0,{beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}])},80480:function(e,t,i){"use strict";i.d(t,{ViewComponent:function(){return n}});var o=i(4012);class n extends o.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.ow&&(this.ownerWindow=e.ow),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){"use strict";i.r(t),i.d(t,{IS_TEST:function(){return o}});let o=!1,n="u">typeof window?window:void 0,r="u">typeof document?document:void 0,s=new Set(["ul","ol"]),a=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],l=new Set([...a,"br","hr"]),c=new Set(a),d="Meta",u="Backspace",h="Enter",p="Escape",f="ArrowLeft",m="ArrowUp",g="ArrowRight",b="ArrowDown",v="Delete",y=[d,u,v,m,b,g,f,h,p,"F3","Tab"],w="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),_=void 0!==n&&/Mac|iPod|iPhone|iPad/.test(n.navigator.platform),k=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:C,isMin:S}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=r.currentScript;if(e)return k(e.src);let t=r.querySelectorAll("script[src]");return t&&t.length?k(t[t.length-1].src):k(n.location.href)})(),x=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);i.d(t,["ACCURACY",0,10,"APP_VERSION",0,"4.15.2","BASE_PATH",0,C,"BASE_PATH_IS_MIN",0,S,"BR",0,"br","CLIPBOARD_ID",0,"clipboard","COMMAND_KEYS",0,y,"EMULATE_DBLCLICK_TIMEOUT",0,300,"ES",0,"es2021","FAT_MODE",0,!0,"HOMEPAGE",0,"https://xdsoft.net/jodit/pro/","INSEPARABLE_TAGS",0,l,"INSERT_AS_HTML",0,"insert_as_html","INSERT_AS_TEXT",0,"insert_as_text","INSERT_CLEAR_HTML",0,"insert_clear_html","INSERT_ONLY_TEXT",0,"insert_only_text","INVISIBLE_SPACE",0,"\uFEFF","INVISIBLE_SPACE_REG_EXP",0,()=>/[\uFEFF]/g,"INVISIBLE_SPACE_REG_EXP_END",0,()=>/[\uFEFF]+$/g,"INVISIBLE_SPACE_REG_EXP_START",0,()=>/^[\uFEFF]+/g,"IS_BLOCK",0,/^(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,"IS_ES_MODERN",0,!0,"IS_ES_NEXT",0,!0,"IS_IE",0,w,"IS_INLINE",0,/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,"IS_MAC",0,_,"IS_PROD",0,!0,"KEY_ALIASES",0,{add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:_?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},"KEY_ALT",0,"Alt","KEY_BACKSPACE",0,u,"KEY_DELETE",0,v,"KEY_DOWN",0,b,"KEY_ENTER",0,h,"KEY_ESC",0,p,"KEY_F3",0,"F3","KEY_LEFT",0,f,"KEY_META",0,d,"KEY_RIGHT",0,g,"KEY_SPACE",0,"Space","KEY_TAB",0,"Tab","KEY_UP",0,m,"LIST_TAGS",0,s,"MARKER_CLASS",0,"jodit-selection_marker","MODE_SOURCE",0,2,"MODE_SPLIT",0,3,"MODE_WYSIWYG",0,1,"NBSP_SPACE",0," ","NEARBY",0,5,"NO_EMPTY_TAGS",0,c,"PARAGRAPH",0,"p","PASSIVE_EVENTS",0,x,"SAFE_COUNT_CHANGE_CALL",0,10,"SET_TEST",0,()=>o=!0,"SOURCE_CONSUMER",0,"source-consumer","SPACE_REG_EXP",0,()=>/[\s\n\t\r\uFEFF\u200b]+/g,"SPACE_REG_EXP_END",0,()=>/[\s\n\t\r\uFEFF\u200b]+$/g,"SPACE_REG_EXP_START",0,()=>/^[\s\n\t\r\uFEFF\u200b]+/g,"TEMP_ATTR",0,"data-jodit-temp","TEXT_HTML",0,w?"html":"text/html","TEXT_PLAIN",0,w?"text":"text/plain","TEXT_RTF",0,w?"rtf":"text/rtf","TOKENS",0,{},"globalDocument",0,r,"globalWindow",0,n,"lang",0,{}])},20218:function(e,t,i){"use strict";i.d(t,{Create:function(){return a}});var o=i(82758),n=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 o=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(o),t&&((0,r.isPlainObject)(t)?(0,r.attr)(o,t):i=t),i&&(0,r.asArray)(i).forEach(e=>n.Dom.append(o,(0,r.isString)(e)?this.fromHTML(e):e)),o}div(e,t,i){let o=this.element("div",t,i);return e&&(o.className=e),o}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});n.Dom.append(this.doc.body,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 o=this.element("span",t,i);return e&&(o.className=e),o}a(e,t,i){let o=this.element("a",t,i);return e&&(o.className=e),o}text(e){return this.doc.createTextNode(e)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let i=this.div();i.innerHTML=e.toString();let o=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(n.Dom.safeRemove(o),t){let e=(0,r.refs)(o);Object.keys(t).forEach(i=>{let o=e[i];o&&!1===t[i]&&n.Dom.hide(o)})}return o}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){"use strict";i.d(t,{Create:function(){return o.Create}});var o=i(20218)},45219:function(e,t,i){"use strict";i.d(t,{autobind:function(){return n}});var o=i(23282);function n(e,t,i){if(!(0,o.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let n=i.value;return{configurable:!0,get(){let e=n.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},33433:function(e,t,i){"use strict";i.d(t,{cache:function(){return l},cacheHTML:function(){return c},cached:function(){return a}});var o=i(78213),n=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 o=i.get;if(!o)throw(0,s.error)("Getter property descriptor expected");i.get=function(){let e=o.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;let i,o=null!=(i=this.od)?i:document,r=c.get(o);if(l&&(null==r?void 0:r.has(this.constructor)))return null==(t=r.get(this.constructor))?void 0:t.cloneNode(!0);let s=a.apply(this,e);return l&&n.Dom.isElement(s)&&(r?r.set(this.constructor,s):c.set(o,new WeakMap([[this.constructor,s]]))),l?s.cloneNode(!0):s},e.hookStatus(o.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},87325:function(e,t,i){"use strict";i.d(t,{component:function(){return s},getComponentClass:function(){return a}});var o=i(82758),n=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,n.getClassName)(e.prototype);if(r.has(i)&&!o.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){"use strict";i.d(t,{debounce:function(){return a},throttle:function(){return l}});var o=i(91907),n=i(27613),r=i(38837),s=i(89890);function a(e,t=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,n.isFunction)(c))throw(0,s.error)("Handler must be a Function");return a.hookStatus(o.STATUSES.ready,o=>{let{async:s}=o;(0,r.assert)(null!=s,`Component ${o.componentName||o.constructor.name} should have "async:IAsync" field`);let a=(0,n.isFunction)(e)?e(o):e,c=(0,n.isNumber)(a)||(0,n.isPlainObject)(a)?a:o.defaultTimeout;Object.defineProperty(o,l,{configurable:!0,value:s[i](o[l].bind(o),c,t)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},55153:function(e,t,i){"use strict";i.d(t,{derive:function(){return n}});var o=i(23282);function n(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let n=e[t],r=Object.getOwnPropertyNames(n.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(n.prototype,t);null!=s&&(0,o.isFunction)(s.value)&&!(0,o.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){"use strict";i.d(t,{hook:function(){return r}});var o=i(23282),n=i(89890);function r(e){return(t,i)=>{if(!(0,o.isFunction)(t[i]))throw(0,n.error)("Handler must be a Function");t.hookStatus(e,e=>{e[i].call(e)})}}},78927:function(e,t,i){"use strict";i.d(t,{idle:function(){return s}});var o=i(91907),n=i(23282),r=i(89890);function s(){return(e,t)=>{if(!(0,n.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(o.STATUSES.ready,e=>{let{async:i}=e,o=e[t];e[t]=(...t)=>i.requestIdleCallback(o.bind(e,...t))})}}},65478:function(e,t,i){"use strict";i.r(t),i.d(t,{autobind:function(){return o.autobind},cache:function(){return n.cache},cacheHTML:function(){return n.cacheHTML},cached:function(){return n.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 d.nonenumerable},persistent:function(){return u.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return p.watch}});var o=i(45219),n=i(33433),r=i(87325),s=i(81577),a=i(55153),l=i(97357),c=i(78927),d=i(31589),u=i(53213),h=i(13525),p=i(37133)},31589:function(e,t,i){"use strict";i.d(t,["nonenumerable",0,(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){"use strict";i.d(t,{persistent:function(){return r}});var o=i(78213),n=i(39955);function r(e,t){e.hookStatus(o.STATUSES.ready,e=>{let i=(0,n.isViewObject)(e)?e:e.jodit,o=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=i.storage.get(o))?e:r},set(e){i.storage.set(o,e)}})})}},13525:function(e,t,i){"use strict";i.d(t,{wait:function(){return s}});var o=i(78213),n=i(23282),r=i(89890);function s(e){return(t,i)=>{let s=t[i];if(!(0,n.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(o.STATUSES.ready,t=>{let{async:o}=t,n=t[i],r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...s){o.clearTimeout(r),e(t)?n.apply(t,s):r=o.setTimeout(()=>i(...s),10)}})})}}},37133:function(e,t,i){"use strict";i.d(t,{watch:function(){return u}});var o=i(78213),n=i(73026),r=i(46559),s=i(23282),a=i(72430),l=i(39955),c=i(89890),d=i(37790);function u(e,t){return(i,u)=>{var h;if(!(0,s.isFunction)(i[u]))throw(0,c.error)("Handler must be a Function");let p=null==(h=null==t?void 0:t.immediately)||h,f=null==t?void 0:t.context,m=t=>{let o=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...i)=>{if(!t.isInDestruct)return t[u](e,...i)};p||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,n]=e.split(":"),r=f;i.length&&(r=t.get(i)),(0,s.isFunction)(r)&&(r=r(t)),o.events.on(r||t,n,c),r||o.events.on(n,c),t.hookStatus("beforeDestruct",()=>{o.events.off(r||t,n,c).off(n,c)});return}let r=e.split("."),[l]=r,u=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,n.observable)(h).on("change."+u.join("."),c);let p=(0,d.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=h;i!==e&&(h=e,p&&p.set&&p.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,n.observable)(h)).on("change."+u.join("."),c),c(l,i,h))},get:()=>p&&p.get?p.get.call(t):h})})};(0,s.isFunction)(i.hookStatus)?i.hookStatus(o.STATUSES.ready,m):m(i)}}},2748:function(e,t,i){"use strict";i.d(t,{Dom:function(){return y}});var o=i(82758),n=i(4510),r=i(68345),s=i(23282),a=i(58487),l=i(42320),c=i(70799),d=i(86068),u=i(49055),h=i(38837),p=i(29960),f=i(41180),m=i(86583),g=i(89890),b=i(37790);let v=RegExp(`<([a-z]+)[^>]+${o.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class y{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let o,n,r=e;i.s.save();do n=!1,(o=r.nextSibling)&&!y.isBlock(o)&&!y.isTag(o,"br")&&(n=!0,r=o);while(n)return y.__wrapElements(t,i,e,r)}static __wrapElements(e,t,i,o){let n=(0,c.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(n,i);let r=i;for(;r&&(r=i.nextSibling,n.appendChild(i),i!==o&&r);)i=r;return t.s.restore(),n}static wrapInline(e,t,i){let o,n,r=e,s=e;i.s.save();do n=!1,(o=r.previousSibling)&&!y.isBlock(o)&&(n=!0,r=o);while(n)do n=!1,(o=s.nextSibling)&&!y.isBlock(o)&&(n=!0,s=o);while(n)return y.__wrapElements(t,i,r,s)}static wrap(e,t,i){let o=(0,c.isString)(t)?i.element(t):t;if(y.isNode(e)){if(!e.parentNode)throw(0,g.error)("Element should be in DOM");e.parentNode.insertBefore(o,e),o.appendChild(e)}else{let t=e.extractContents();e.insertNode(o),o.appendChild(t)}return o}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);y.safeRemove(e)}}static between(e,t,i){let o=e;for(;o&&o!==t&&!(e!==o&&i(o));){let e=o.firstChild||o.nextSibling;if(!e){for(;o&&!o.nextSibling;)if((o=o.parentNode)===t)return;e=null==o?void 0:o.nextSibling}o=e}}static replace(e,t,i,o=!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 o&&y.isElement(e)&&y.isElement(s)&&(0,n.toArray)(e.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(s,e),s}static isEmptyTextNode(e){return y.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return y.each(e,e=>y.isEmptyTextNode(e))}static isContentEditable(e,t){return y.isNode(e)&&!y.closest(e,e=>y.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=o.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let n=e=>null==e.nodeValue||0===(0,u.trim)(e.nodeValue).length;return y.isText(e)?n(e):!(y.isElement(e)&&i(e))&&y.each(e,e=>{if(y.isText(e)&&!n(e)||y.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 y.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return y.isTag(e,o.LIST_TAGS)}static isLeaf(e){return y.isTag(e,"li")}static isImage(e){return y.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,d.isVoid)(e)&&"object"==typeof e&&y.isNode(e)&&o.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){return!!y.isNode(e)&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){return!!y.isNode(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(e){var t;if(!y.isNode(e))return!1;let i=null==(t=e.ownerDocument)?void 0:t.defaultView;return e instanceof(i?i.HTMLElement:HTMLElement)}static isInlineBlock(e){return y.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,f.css)(e,"display").toString())}static canSplitBlock(e){return!(0,d.isVoid)(e)&&y.isHTMLElement(e)&&y.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static first(e,t){return y.__deepMost(e,t,!1)}static last(e,t){return y.__deepMost(e,t,!0)}static __deepMost(e,t,i){let o=i?"lastChild":"firstChild",n=i?"previousSibling":"nextSibling",r=null==e?void 0:e[o];if(!r)return null;do{if(t(r))return r;let i=r[o]||r[n];if(!i&&r.parentNode!==e){do r=r.parentNode;while(r&&!r[n]&&r.parentNode!==e)i=null==r?void 0:r[n]}r=i}while(r)return null}static prev(e,t,i,o=!0){return y.find(e,t,i,!1,o)}static next(e,t,i,o=!0){return y.find(e,t,i,!0,o)}static prevWithClass(e,t){return y.__siblingWithClass(e,t,!0)}static nextWithClass(e,t){return y.__siblingWithClass(e,t,!1)}static __siblingWithClass(e,t,i){let o=e=>y.isElement(e)&&e.classList.contains(t),n=e.parentNode;return i?y.prev(e,o,n):y.next(e,o,n)}static find(e,t,i,o=!0,n=!0){let r=this.nextGen(e,i,o,n),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,i=!0,o=!0){let n=[],r=e;do{let t=i?r.nextSibling:r.previousSibling;for(;t;)n.push(t),t=i?t.nextSibling:t.previousSibling;n.reverse(),yield*this.runInStack(e,n,i,o),r=r.parentNode}while(r&&r!==t)return null}static each(e,t,i=!0){let o=this.eachGen(e,i),n=o.next();for(;!n.done;){if(!1===t(n.value))return!1;n=o.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,o=!0){for(;t.length;){let n=t.pop();if(o){let e=i?n.lastChild:n.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==n&&(yield n)}}static findWithCurrent(e,t,i,o="nextSibling",n="firstChild"){let r=e;do{if(t(r))return r||null;if(n&&r&&r[n]){let e=y.findWithCurrent(r[n],t,r,o,n);if(e)return e}for(;r&&!r[o]&&r!==i;)r=r.parentNode;r&&r[o]&&r!==i&&(r=r[o])}while(r&&r!==i)return null}static findSibling(e,t=!0,i=e=>!y.isEmptyTextNode(e)){let o=y.sibling(e,t);for(;o&&!i(o);)o=y.sibling(o,t);return o&&i(o)?o:null}static findNotEmptySibling(e,t){return y.findSibling(e,t,e=>{var t;return!y.isEmptyTextNode(e)&&!!(!y.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,u.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,i){return(0,b.call)(t?y.prev:y.next,e,e=>!!(e&&(!(y.isText(e)||y.isComment(e))||(0,u.trim)((null==e?void 0:e.nodeValue)||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,o=!1){let n=e;if(!n)return null;do{if(t(n))return n;if(n===i||!n.parentNode)break;n=n.parentNode}while(n&&n!==i)return n===i&&o&&t(n)?n:null}static closest(e,t,i){let o,n=e=>e.toLowerCase();if((0,s.isFunction)(t))o=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(n));o=t=>!!(t&&e.has(n(t.nodeName)))}else o=e=>!!(e&&n(t)===n(e.nodeName));return y.up(e,o,i)}static furthest(e,t,i){let o=null,n=null==e?void 0:e.parentElement;for(;n&&n!==i;)t(n)&&(o=n),n=null==n?void 0:n.parentElement;return o}static appendChildFirst(e,t){e.firstChild!==t&&y.prepend(e,t)}static after(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e.nextSibling)}static before(e,t){var i;null==(i=e.parentNode)||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||o.globalDocument).createDocumentFragment();(0,n.toArray)(e.childNodes).filter(e=>!!r(e)||(y.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),t.insertBefore(s,i?t.firstChild:null)}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=>y.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=y.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&y.isTag(e.startContainer,o.INSEPARABLE_TAGS)?y.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>y.isText(e)&&!e.nodeValue&&y.safeRemove(e))}static hide(e){e&&((0,m.dataBind)(e,"__old_display",e.style.getPropertyValue("display")),e.style.setProperty("display","none"))}static show(e){if(!e)return;let t=(0,m.dataBind)(e,"__old_display");"none"===e.style.getPropertyValue("display")&&e.style.setProperty("display",t||null)}static isTag(e,t){if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");if(!this.isElement(e))return!1;let i=e.tagName.toLowerCase();return t instanceof Set?t.has(i)||t.has(e.tagName.toUpperCase()):i===t||e.tagName.toUpperCase()===t}static markTemporary(e,t){return t&&(0,p.attr)(e,t),(0,p.attr)(e,o.TEMP_ATTR,!0),e}static isTemporary(e){return!!y.isElement(e)&&(y.isMarker(e)||"true"===(0,p.attr)(e,o.TEMP_ATTR))}static isMarker(e){return y.isNode(e)&&y.isTag(e,"span")&&e.hasAttribute("data-"+o.MARKER_CLASS)}static replaceTemporaryFromString(e){return e.replace(v,"$2")}static temporaryList(e){let t=[];return y.each(e,e=>{y.isHTMLElement(e)&&e.hasAttribute(o.TEMP_ATTR)&&t.push(e)}),t}constructor(){throw Error("Dom is static module")}}},22732:function(e,t,i){"use strict";i.d(t,{Dom:function(){return o.Dom},LazyWalker:function(){return n.LazyWalker}});var o=i(2748),n=i(70071)},70071:function(e,t,i){"use strict";i.d(t,{LazyWalker:function(){return s}});var o=i(45219),n=i(2748),r=i(72757);class s extends r.Eventify{setWork(e){return this.isWorked?this.break():this.stop(),this.workNodes=n.Dom.eachGen(e,!this.options.reverse),this.isFinished=!1,this.hadAffect=!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(){var e;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(e=this.__schedulerController)||e.abort(),this.__schedulerController=null}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.__schedulerController=null}}!function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([o.autobind],s.prototype,"__workPerform",null)},98220:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return d}});var o=i(82758),n=i(46559),r=i(68345),s=i(23282),a=i(70799),l=i(89890),c=i(15738);class d{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,n.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),o=i[1]||c.defaultNameSpace;t.call(this,i[0],o)})}__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]&&delete e[this.__key]}__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,n){let c,d,h,p;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(c=this,d=e,h=t,p=i):(c=e,d=t,h=i,p=n),!((0,a.isString)(d)||(0,a.isStringArray)(d))||0===d.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,d,h,p)}),this;let f=c,m=this.__getStore(f),g=this,b=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return u(f)&&(b=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),h&&!1===h.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(d,(e,t)=>{var i,n;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:b};if(m.set(e,t,r,null==p?void 0:p.top),u(f)){let t=o.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(i=null==p?void 0:p.capture)&&i}:null!=(n=null==p?void 0:p.capture)&&n;b.options=t,f.addEventListener(e,b,t),this.__memoryDOMSubjectToHandler(f,b)}}}),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,o=i.get(e)||new Set;o.delete(t),o.size?i.set(e,o):i.delete(e)}one(e,t,i,o){let n,r,s,l;(0,a.isString)(e)||(0,a.isStringArray)(e)?(n=this,r=e,s=t,l=i):(n=e,r=t,s=i,l=o);let c=(...e)=>(this.off(n,r,c),s(...e));return this.on(n,r,c,l),this}off(e,t,i){let o,n,l;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(o=this,n=e,l=t):(o=e,n=t,l=i),(0,r.isArray)(o))return o.forEach(e=>{this.off(e,n,l)}),this;let d=o,h=this.__getStore(d);if(!((0,a.isString)(n)||(0,a.isStringArray)(n))||0===n.length)return h.namespaces().forEach(e=>{this.off(d,"."+e)}),this.__removeStoreFromSubject(d),this;let p=e=>{var t;u(d)&&(d.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(d,e.syntheticCallback))},f=(e,t)=>{if(""===e)return void h.events(t).forEach(e=>{""!==e&&f(e,t)});let i=h.get(e,t);if(i&&i.length)if((0,s.isFunction)(l)){let o=h.indexOf(e,t,l);!1!==o&&(p(i[o]),i.splice(o,1),i.length||h.clearEvents(t,e))}else i.forEach(p),i.length=0,h.clearEvents(t,e)};return this.__eachEvent(n,(e,t)=>{t===c.defaultNameSpace?h.namespaces().forEach(t=>{f(e,t)}):f(e,t)}),h.isEmpty()&&this.__removeStoreFromSubject(d),this}stopPropagation(e,t){let i=(0,a.isString)(e)?this:e,o=(0,a.isString)(e)?e:t;if("string"!=typeof o)throw(0,l.error)("Need event names");let n=this.__getStore(i);this.__eachEvent(o,(e,t)=>{let o=n.get(e,t);o&&this.__stopped.push(o),t===c.defaultNameSpace&&n.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 o,n,r=(0,a.isString)(e)?this:e,s=(0,a.isString)(e)?e:t,d=(0,a.isString)(e)?[t,...i]:i;if(!u(r)&&!(0,a.isString)(s))throw(0,l.error)("Need events names");let h=this.__getStore(r);return!(0,a.isString)(s)&&u(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(u(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),n=t.syntheticCallback.call(r,e,...d),this.currents.pop(),void 0!==n&&(o=n),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||u(r)||h.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...d]);void 0!==i&&(o=i)})}}),o}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=o.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 u(e){return e&&(0,s.isFunction)(e.addEventListener)}},72757:function(e,t,i){"use strict";i.d(t,{Eventify:function(){return o}});class o{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 o;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.forEach(e=>{o=e(...t)})),o}constructor(){this.__map=new Map}}},57012:function(e,t,i){"use strict";let o=new(i(98220)).EventEmitter;i.d(t,["eventEmitter",0,o])},3827:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return o.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return n.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var o=i(98220),n=i(72757),r=i(73026),s=i(15738)},73026:function(e,t,i){"use strict";i.d(t,{observable:function(){return c}});var o=i(68345),n=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,n)=>((0,o.isArray)(t)?t.map(e=>c(e,n)):(i[t]||(i[t]=[]),i[t].push(n)),e),d=(n,...r)=>{if((0,o.isArray)(n))return void n.map(e=>d(e,...r));try{!t[n]&&i[n]&&(t[n]=!0,i[n].forEach(t=>t.call(e,...r)))}finally{t[n]=!1}},u=(t,i=[])=>{let o={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);o[a]=t[a];let c=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set(t){let i=o[a];if(!(0,n.isFastEqual)(o[a],t)){d(["beforeChange","beforeChange."+l.join(".")],a,t),(0,r.isPlainObject)(t)&&u(t,l),c&&c.set?c.set.call(e,t):o[a]=t;let n=[];d(["change",...l.reduce((e,t)=>(n.push(t),e.push("change."+n.join(".")),e),[])],l.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):o[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(o[a])&&u(o[a],l)}),Object.defineProperty(e,"on",{value:c}))};return u(e),e}},15738:function(e,t,i){"use strict";i.d(t,{EventHandlersStore:function(){return s}});var o=i(4510),n=i(38837);let r="JoditEventDefaultNamespace";class s{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,n.assert)(i,"-"),i[e]}}indexOf(e,t,i){let o=this.get(e,t);if(o){for(let e=0;e<o.length;e+=1)if(o[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,o.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,o=!1){let n=this.__store.get(t);n||(n={},this.__store.set(t,n)),void 0===n[e]&&(n[e]=[]),o?n[e].unshift(i):n[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}}i.d(t,["defaultNameSpace",0,r])},580:function(e,t,i){"use strict";i.d(t,{getContainer:function(){return y},getPopupViewRoot:function(){return w},uniqueUid:function(){return g}});var o=i(19306),n=i(70799),r=i(39955),s=i(12475),a=i(29960),l=i(41180),c=i(80568),d=i(41876),u=i(57012),h=i(82758),p=i(22732);let f=1,m=new Set;function g(){function e(){return Math.round(f+=10*(Math.random()+1)).toString(16)}let t=e();for(;m.has(t);)t=e();return m.add(t),t}let b=new d.PluginSystem({getContainer:y}),v=new WeakMap;function y(e,t,i="div",l=!1){let d,u=(0,n.isString)(t)?t:t?(0,c.getClassName)(t.prototype):"jodit-utils",h=v.get(e)||{},f=u+i,m=(0,r.isViewObject)(e)?e:e.j;if(!h[f]){let t=m.c;if(d=w(m.o,m.container,e.od.body),l&&(0,o.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let n="style"===i?e.ed.head:e.ed.body;d=(0,o.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:n}let n=t.element(i,{className:`jodit jodit-${(0,s.kebabCase)(u)}-container jodit-box`});m.o.nonce&&("style"===i||"script"===i)&&(0,a.attr)(n,"nonce",m.o.nonce),n.classList.add("jodit_theme_"+(m.o.theme||"default")),p.Dom.append(d,n),h[f]=n,e.hookStatus("beforeDestruct",()=>{m.events.off(n),p.Dom.safeRemove(n),delete h[f],Object.keys(h).length&&v.delete(e)}),v.set(e,h),m.events.fire("getContainer",n)}return h[f].classList.remove("jodit_theme_default","jodit_theme_dark"),h[f].classList.add("jodit_theme_"+(m.o.theme||"default")),h[f]}function w(e,t,i){var o,n,r;return null!=(r=null!=(n=null!=(o=e.popupRoot)?o:e.shadowRoot)?n:p.Dom.closest(t,e=>p.Dom.isHTMLElement(e)&&(p.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,l.css)(e,"position"))),i))?r:i}let _=u.eventEmitter;i.d(t,["eventEmitter",0,_,"extendLang",0,e=>{Object.keys(e).forEach(t=>{h.lang[t]?Object.assign(h.lang[t],e[t]):h.lang[t]=e[t]})},"instances",0,{},"modules",0,{},"pluginSystem",0,b])},29999:function(e,t,i){"use strict";var o=i(68345);i.d(t,["asArray",0,e=>(0,o.isArray)(e)?e:[e]])},76855:function(e,t,i){"use strict";i.d(t,{asArray:function(){return o.asArray},splitArray:function(){return n.splitArray},toArray:function(){return r.toArray}});var o=i(29999),n=i(46559),r=i(4510)},46559:function(e,t,i){"use strict";function o(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}i.d(t,{splitArray:function(){return o}})},4510:function(e,t,i){"use strict";var o=i(70722),n=i(58844);i.d(t,["toArray",0,function(...e){var t;return((0,o.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,n.reset)("Array.from"))?t:Array.from).apply(Array,e)}])},91898:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return o.clearTimeout},setTimeout:function(){return o.setTimeout}});var o=i(13252)},13252:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return r},setTimeout:function(){return n}});var o=i(82758);function n(e,t,...i){return t?o.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function r(e){o.globalWindow.clearTimeout(e)}},54765:function(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:function(){return n}});var o=i(82758);function n(){let e;try{let t=o.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){"use strict";i.d(t,{hasBrowserColorPicker:function(){return o.hasBrowserColorPicker},hasContainer:function(){return u.hasContainer},isAbortError:function(){return n.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return u.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return c.isHTML},isHtmlFromWord:function(){return d.isHtmlFromWord},isInitable:function(){return u.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return p.isJoditObject},isLicense:function(){return f.isLicense},isMarker:function(){return m.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return b.isNumber},isNumeric:function(){return v.isNumeric},isPlainObject:function(){return y.isPlainObject},isPromise:function(){return w.isPromise},isSet:function(){return _.isSet},isString:function(){return k.isString},isStringArray:function(){return k.isStringArray},isURL:function(){return C.isURL},isValidName:function(){return S.isValidName},isViewObject:function(){return x.isViewObject},isVoid:function(){return I.isVoid},isWindow:function(){return E.isWindow}});var o=i(54765),n=i(12045),r=i(68345),s=i(87612),a=i(59292),l=i(23282),c=i(58487),d=i(29673),u=i(60132),h=i(72913),p=i(19306),f=i(45603),m=i(78116),g=i(70722),b=i(84767),v=i(29807),y=i(72430),w=i(14773),_=i(42320),k=i(70799),C=i(26049),S=i(37508),x=i(39955),I=i(86068),E=i(52742)},12045:function(e,t,i){"use strict";function o(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}i.d(t,{isAbortError:function(){return o}})},68345:function(e,t,i){"use strict";function o(e){return Array.isArray(e)}i.d(t,{isArray:function(){return o}})},87612:function(e,t,i){"use strict";function o(e){return"boolean"==typeof e}i.d(t,{isBoolean:function(){return o}})},59292:function(e,t,i){"use strict";i.d(t,{isEqual:function(){return n},isFastEqual:function(){return r}});var o=i(67462);function n(e,t){return e===t||(0,o.stringify)(e)===(0,o.stringify)(t)}function r(e,t){return e===t}},23282:function(e,t,i){"use strict";function o(e){return"function"==typeof e}i.d(t,{isFunction:function(){return o}})},29673:function(e,t,i){"use strict";function o(e){return -1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i)||-1!==e.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i)||-1!==e.search(/urn:schemas-microsoft-com:office:(word|excel)/)||-1!==e.search(/<\w[^>]*\sclass=("|')?Mso/)||-1!==e.search(/style='[^']*mso-/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}i.d(t,{isHtmlFromWord:function(){return o}})},58487:function(e,t,i){"use strict";var o=i(70799);i.d(t,["isHTML",0,e=>(0,o.isString)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))])},60132:function(e,t,i){"use strict";i.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var o=i(2748),n=i(23282),r=i(86068);function s(e){return!(0,r.isVoid)(e)&&(0,n.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,n.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&o.Dom.isElement(e.container)}},72913:function(e,t,i){"use strict";i.d(t,{isInt:function(){return r}});var o=i(29807),n=i(70799);function r(e){return(0,n.isString)(e)&&(0,o.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},19306:function(e,t,i){"use strict";i.d(t,{isJoditObject:function(){return n}});var o=i(23282);function n(e){return!!(e&&e instanceof Object&&(0,o.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},45603:function(e,t,i){"use strict";var o=i(70799);i.d(t,["isLicense",0,e=>(0,o.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){"use strict";i.d(t,{isMarker:function(){return n}});var o=i(2748);function n(e){return o.Dom.isMarker(e)}},70722:function(e,t,i){"use strict";function o(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+""))}i.d(t,{isNativeFunction:function(){return o}})},84767:function(e,t,i){"use strict";function o(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}i.d(t,{isNumber:function(){return o}})},29807:function(e,t,i){"use strict";i.d(t,{isNumeric:function(){return n}});var o=i(70799);function n(e){if((0,o.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){"use strict";i.d(t,{isPlainObject:function(){return n}});var o=i(52742);function n(e){return!(!e||"object"!=typeof e||e.nodeType||(0,o.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},14773:function(e,t,i){"use strict";function o(e){return e&&"function"==typeof e.then}i.d(t,{isPromise:function(){return o}})},42320:function(e,t,i){"use strict";i.d(t,{isSet:function(){return n}});var o=i(23282);function n(e){return!!e&&(0,o.isFunction)(e.has)&&(0,o.isFunction)(e.add)&&(0,o.isFunction)(e.delete)}},70799:function(e,t,i){"use strict";i.d(t,{isString:function(){return n},isStringArray:function(){return r}});var o=i(68345);function n(e){return"string"==typeof e}function r(e){return(0,o.isArray)(e)&&n(e[0])}},26049:function(e,t,i){"use strict";i.d(t,{isURL:function(){return n}});var o=i(82758);function n(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=o.globalDocument.createElement("a");return t.href=e,!!t.hostname}},37508:function(e,t,i){"use strict";function o(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}i.d(t,{isValidName:function(){return o}})},39955:function(e,t,i){"use strict";i.d(t,{isViewObject:function(){return n}});var o=i(23282);function n(e){return!!(e&&e instanceof Object&&(0,o.isFunction)(e.constructor)&&e.isView)}},86068:function(e,t,i){"use strict";function o(e){return null==e}i.d(t,{isVoid:function(){return o}})},52742:function(e,t,i){"use strict";function o(e){return null!=e&&e===e.window}i.d(t,{isWindow:function(){return o}})},35278:function(e,t,i){"use strict";i.d(t,["colorToHex",0,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),o=parseInt(t[3],10),n=(parseInt(t[4],10)|o<<8|i<<16).toString(16).toUpperCase();for(;n.length<6;)n="0"+n;return t[1]+"#"+n}])},32574:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return d}});var o=i(82758),n=i(2748),r=i(49055),s=i(29960),a=i(41180),l=i(76078);function c(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 d(e){let t=/<html(?:\s[^>]*)?>/i.exec(e);if(!t)return e;let i=(e=e.substring(t.index)).toLowerCase().lastIndexOf("</html>");-1!==i&&(e=e.substring(0,i+7));let d=o.globalDocument.createElement("iframe");(0,a.css)(d,"display","none"),n.Dom.append(o.globalDocument.body,d);let u="";try{let t=d.contentDocument||(d.contentWindow?d.contentWindow.document:null);if(t){t.open(),t.write(e),t.close(),n.Dom.each(t.body,e=>{n.Dom.isElement(e)&&/mso-list:\s*ignore/i.test((0,s.attr)(e,"style")||"")&&n.Dom.safeRemove(e)});try{for(let e=0;e<t.styleSheets.length;e+=1){let i=t.styleSheets[e].cssRules;for(let e=0;e<i.length;e+=1)""!==i[e].selectorText&&(0,l.$$)(i[e].selectorText,t.body).forEach(t=>{t.style.cssText=c(i[e].style.cssText+";"+t.style.cssText)})}}catch(e){if(!o.IS_PROD)throw e}n.Dom.each(t.body,e=>{if(n.Dom.isElement(e)){let t=(0,s.attr)(e,"style");t&&(e.style.cssText=c(t)),(0,s.attr)(e,"style")||(0,s.attr)(e,"style",null)}}),u=t.firstChild?(0,r.trim)(t.body.innerHTML):""}}catch(e){}finally{n.Dom.safeRemove(d)}return u&&(e=u),(0,r.trim)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(e,t,i){"use strict";i.d(t,{cleanFromWord:function(){return l}});var o=i(82758),n=i(2748),r=i(4510),s=i(49055),a=i(29960);function l(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=o.globalDocument.createElement("div");i.innerHTML=e;let s=[];i.firstChild&&n.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":n.Dom.unwrap(e);break;default:if(/mso-list:\s*ignore/i.test((0,a.attr)(e,"style")||"")){s.push(e);break}(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&(0,a.attrRaw)(e,t.name,null)})}break;case Node.TEXT_NODE:break;default:s.push(e)}}),n.Dom.safeRemove.apply(null,s),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(s.trim).join(`
17
+ `,{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,n)}}n=r.prototype,r.prototype.controls={}},26992:function(e,t,i){"use strict";i.d(t,{Async:function(){return f}});var o=i(82758),n=i(91898),r=i(12045),s=i(23282),a=i(84767),l=i(72430),c=i(14773),d=i(70799),u=i(86068),h=i(38837),p=i(93661);class f{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let o={};(0,u.isVoid)(t)&&(t=0),(0,a.isNumber)(t)||(t=(o=t).timeout||0),o.label&&this.clearLabel(o.label);let r=(0,n.setTimeout)(e,t,...i),s=o.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,n.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,d.isString)(e))return this.clearLabel(e);(0,n.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let o=0,a=!1,d=[],u=(...t)=>{if(!a){o=0;let i=e(...t);if(a=!0,d.length){let e=()=>{d.forEach(e=>e()),d.length=0};(0,c.isPromise)(i)?i.finally(e):e()}}},h=(...r)=>{a=!1,t?(!o&&i&&u(...r),(0,n.clearTimeout)(o),o=this.setTimeout(()=>u(...r),(0,s.isFunction)(t)?t():t),this.timers.set(e,o)):u(...r)};return(0,l.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{d.push(e)}).catch(e=>{if((0,r.isAbortError)(e))return null;throw e});return h(...e),t}:h}microDebounce(e,t=!1){let i,o=!1,n=!0;return(...r)=>{if(i=r,o){n=!0;return}n=!0,t&&(n=!1,e(...i)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&n&&e(...i)})}}throttle(e,t,i=!1){let o=null,n,r,a;return(...i)=>{(n=!0,a=i,t)?o||(r=()=>{n?(e(...a),n=!1,o=this.setTimeout(r,(0,s.isFunction)(t)?t():t),this.timers.set(r,o)):o=null})():e(...a)}}promise(e){let t=()=>{},i=new Promise((i,o)=>{t=()=>o((0,p.abort)("Abort async")),this.promisesRejections.add(t),e(i,o)});return!i.finally&&"u">typeof process&&!o.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 o=globalThis.scheduler.postTask(e,{...t,signal:i.signal});return o.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),o}return this.promise((o,n)=>{let r=this.setTimeout(()=>{try{o(e())}catch(e){n(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(i),n((0,p.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,n.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,o,n;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 o=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},null!=(i=null==t?void 0:t.timeout)?i:1)},this.__cancelIdleCallbackNative=null!=(n=null==(o=window.cancelIdleCallback)?void 0:o.bind(window))?n:e=>{this.clearTimeout(e)},this.isDestructed=!1}}},8884:function(e,t,i){"use strict";i.d(t,{Async:function(){return o.Async}});var o=i(26992)},4012:function(e,t,i){"use strict";i.d(t,{Component:function(){return l}});var o=i(8884),n=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 o=[this.componentName];return e&&o.push("__"+(e=e.replace(/[^a-z0-9-]/gi,"-"))),t&&(o.push("_",t),o.push("_",(0,s.isVoid)(i)?"true":i.toString())),o.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===n.STATUSES.ready}get isDestructed(){return this.componentStatus===n.STATUSES.destructed}get isInDestruct(){return n.STATUSES.beforeDestruct===this.componentStatus||n.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(n.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(n.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 o=a.get(this),n=null==o?void 0:o[e];n&&n.length&&n.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 o.Async,this.ownerWindow=window,this.__componentStatus=n.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,r.uniqueUid)()}}l.STATUSES=n.STATUSES},91907:function(e,t,i){"use strict";i.d(t,{Component:function(){return o.Component},STATUSES:function(){return n.STATUSES},ViewComponent:function(){return r.ViewComponent}});var o=i(4012),n=i(78213),r=i(80480)},78213:function(e,t,i){"use strict";i.d(t,["STATUSES",0,{beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}])},80480:function(e,t,i){"use strict";i.d(t,{ViewComponent:function(){return n}});var o=i(4012);class n extends o.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.ow&&(this.ownerWindow=e.ow),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){"use strict";i.r(t),i.d(t,{IS_TEST:function(){return o}});let o=!1,n="u">typeof window?window:void 0,r="u">typeof document?document:void 0,s=new Set(["ul","ol"]),a=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],l=new Set([...a,"br","hr"]),c=new Set(a),d="Meta",u="Backspace",h="Enter",p="Escape",f="ArrowLeft",m="ArrowUp",g="ArrowRight",b="ArrowDown",v="Delete",y=[d,u,v,m,b,g,f,h,p,"F3","Tab"],w="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),_=void 0!==n&&/Mac|iPod|iPhone|iPad/.test(n.navigator.platform),k=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:C,isMin:S}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=r.currentScript;if(e)return k(e.src);let t=r.querySelectorAll("script[src]");return t&&t.length?k(t[t.length-1].src):k(n.location.href)})(),x=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);i.d(t,["ACCURACY",0,10,"APP_VERSION",0,"4.15.4","BASE_PATH",0,C,"BASE_PATH_IS_MIN",0,S,"BR",0,"br","CLIPBOARD_ID",0,"clipboard","COMMAND_KEYS",0,y,"EMULATE_DBLCLICK_TIMEOUT",0,300,"ES",0,"es2021","FAT_MODE",0,!0,"HOMEPAGE",0,"https://xdsoft.net/jodit/pro/","INSEPARABLE_TAGS",0,l,"INSERT_AS_HTML",0,"insert_as_html","INSERT_AS_TEXT",0,"insert_as_text","INSERT_CLEAR_HTML",0,"insert_clear_html","INSERT_ONLY_TEXT",0,"insert_only_text","INVISIBLE_SPACE",0,"\uFEFF","INVISIBLE_SPACE_REG_EXP",0,()=>/[\uFEFF]/g,"INVISIBLE_SPACE_REG_EXP_END",0,()=>/[\uFEFF]+$/g,"INVISIBLE_SPACE_REG_EXP_START",0,()=>/^[\uFEFF]+/g,"IS_BLOCK",0,/^(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,"IS_ES_MODERN",0,!0,"IS_ES_NEXT",0,!0,"IS_IE",0,w,"IS_INLINE",0,/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,"IS_MAC",0,_,"IS_PROD",0,!0,"KEY_ALIASES",0,{add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:_?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},"KEY_ALT",0,"Alt","KEY_BACKSPACE",0,u,"KEY_DELETE",0,v,"KEY_DOWN",0,b,"KEY_ENTER",0,h,"KEY_ESC",0,p,"KEY_F3",0,"F3","KEY_LEFT",0,f,"KEY_META",0,d,"KEY_RIGHT",0,g,"KEY_SPACE",0,"Space","KEY_TAB",0,"Tab","KEY_UP",0,m,"LIST_TAGS",0,s,"MARKER_CLASS",0,"jodit-selection_marker","MODE_SOURCE",0,2,"MODE_SPLIT",0,3,"MODE_WYSIWYG",0,1,"NBSP_SPACE",0," ","NEARBY",0,5,"NO_EMPTY_TAGS",0,c,"PARAGRAPH",0,"p","PASSIVE_EVENTS",0,x,"SAFE_COUNT_CHANGE_CALL",0,10,"SET_TEST",0,()=>o=!0,"SOURCE_CONSUMER",0,"source-consumer","SPACE_REG_EXP",0,()=>/[\s\n\t\r\uFEFF\u200b]+/g,"SPACE_REG_EXP_END",0,()=>/[\s\n\t\r\uFEFF\u200b]+$/g,"SPACE_REG_EXP_START",0,()=>/^[\s\n\t\r\uFEFF\u200b]+/g,"TEMP_ATTR",0,"data-jodit-temp","TEXT_HTML",0,w?"html":"text/html","TEXT_PLAIN",0,w?"text":"text/plain","TEXT_RTF",0,w?"rtf":"text/rtf","TOKENS",0,{},"globalDocument",0,r,"globalWindow",0,n,"lang",0,{}])},20218:function(e,t,i){"use strict";i.d(t,{Create:function(){return a}});var o=i(82758),n=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 o=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(o),t&&((0,r.isPlainObject)(t)?(0,r.attr)(o,t):i=t),i&&(0,r.asArray)(i).forEach(e=>n.Dom.append(o,(0,r.isString)(e)?this.fromHTML(e):e)),o}div(e,t,i){let o=this.element("div",t,i);return e&&(o.className=e),o}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});n.Dom.append(this.doc.body,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 o=this.element("span",t,i);return e&&(o.className=e),o}a(e,t,i){let o=this.element("a",t,i);return e&&(o.className=e),o}text(e){return this.doc.createTextNode(e)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let i=this.div();i.innerHTML=e.toString();let o=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(n.Dom.safeRemove(o),t){let e=(0,r.refs)(o);Object.keys(t).forEach(i=>{let o=e[i];o&&!1===t[i]&&n.Dom.hide(o)})}return o}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){"use strict";i.d(t,{Create:function(){return o.Create}});var o=i(20218)},45219:function(e,t,i){"use strict";i.d(t,{autobind:function(){return n}});var o=i(23282);function n(e,t,i){if(!(0,o.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let n=i.value;return{configurable:!0,get(){let e=n.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},33433:function(e,t,i){"use strict";i.d(t,{cache:function(){return l},cacheHTML:function(){return c},cached:function(){return a}});var o=i(78213),n=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 o=i.get;if(!o)throw(0,s.error)("Getter property descriptor expected");i.get=function(){let e=o.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;let i,o=null!=(i=this.od)?i:document,r=c.get(o);if(l&&(null==r?void 0:r.has(this.constructor)))return null==(t=r.get(this.constructor))?void 0:t.cloneNode(!0);let s=a.apply(this,e);return l&&n.Dom.isElement(s)&&(r?r.set(this.constructor,s):c.set(o,new WeakMap([[this.constructor,s]]))),l?s.cloneNode(!0):s},e.hookStatus(o.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},87325:function(e,t,i){"use strict";i.d(t,{component:function(){return s},getComponentClass:function(){return a}});var o=i(82758),n=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,n.getClassName)(e.prototype);if(r.has(i)&&!o.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){"use strict";i.d(t,{debounce:function(){return a},throttle:function(){return l}});var o=i(91907),n=i(27613),r=i(38837),s=i(89890);function a(e,t=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,n.isFunction)(c))throw(0,s.error)("Handler must be a Function");return a.hookStatus(o.STATUSES.ready,o=>{let{async:s}=o;(0,r.assert)(null!=s,`Component ${o.componentName||o.constructor.name} should have "async:IAsync" field`);let a=(0,n.isFunction)(e)?e(o):e,c=(0,n.isNumber)(a)||(0,n.isPlainObject)(a)?a:o.defaultTimeout;Object.defineProperty(o,l,{configurable:!0,value:s[i](o[l].bind(o),c,t)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},55153:function(e,t,i){"use strict";i.d(t,{derive:function(){return n}});var o=i(23282);function n(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let n=e[t],r=Object.getOwnPropertyNames(n.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(n.prototype,t);null!=s&&(0,o.isFunction)(s.value)&&!(0,o.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){"use strict";i.d(t,{hook:function(){return r}});var o=i(23282),n=i(89890);function r(e){return(t,i)=>{if(!(0,o.isFunction)(t[i]))throw(0,n.error)("Handler must be a Function");t.hookStatus(e,e=>{e[i].call(e)})}}},78927:function(e,t,i){"use strict";i.d(t,{idle:function(){return s}});var o=i(91907),n=i(23282),r=i(89890);function s(){return(e,t)=>{if(!(0,n.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(o.STATUSES.ready,e=>{let{async:i}=e,o=e[t];e[t]=(...t)=>i.requestIdleCallback(o.bind(e,...t))})}}},65478:function(e,t,i){"use strict";i.r(t),i.d(t,{autobind:function(){return o.autobind},cache:function(){return n.cache},cacheHTML:function(){return n.cacheHTML},cached:function(){return n.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 d.nonenumerable},persistent:function(){return u.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return p.watch}});var o=i(45219),n=i(33433),r=i(87325),s=i(81577),a=i(55153),l=i(97357),c=i(78927),d=i(31589),u=i(53213),h=i(13525),p=i(37133)},31589:function(e,t,i){"use strict";i.d(t,["nonenumerable",0,(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){"use strict";i.d(t,{persistent:function(){return r}});var o=i(78213),n=i(39955);function r(e,t){e.hookStatus(o.STATUSES.ready,e=>{let i=(0,n.isViewObject)(e)?e:e.jodit,o=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=i.storage.get(o))?e:r},set(e){i.storage.set(o,e)}})})}},13525:function(e,t,i){"use strict";i.d(t,{wait:function(){return s}});var o=i(78213),n=i(23282),r=i(89890);function s(e){return(t,i)=>{let s=t[i];if(!(0,n.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(o.STATUSES.ready,t=>{let{async:o}=t,n=t[i],r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...s){o.clearTimeout(r),e(t)?n.apply(t,s):r=o.setTimeout(()=>i(...s),10)}})})}}},37133:function(e,t,i){"use strict";i.d(t,{watch:function(){return u}});var o=i(78213),n=i(73026),r=i(46559),s=i(23282),a=i(72430),l=i(39955),c=i(89890),d=i(37790);function u(e,t){return(i,u)=>{var h;if(!(0,s.isFunction)(i[u]))throw(0,c.error)("Handler must be a Function");let p=null==(h=null==t?void 0:t.immediately)||h,f=null==t?void 0:t.context,m=t=>{let o=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...i)=>{if(!t.isInDestruct)return t[u](e,...i)};p||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,n]=e.split(":"),r=f;i.length&&(r=t.get(i)),(0,s.isFunction)(r)&&(r=r(t)),o.events.on(r||t,n,c),r||o.events.on(n,c),t.hookStatus("beforeDestruct",()=>{o.events.off(r||t,n,c).off(n,c)});return}let r=e.split("."),[l]=r,u=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,n.observable)(h).on("change."+u.join("."),c);let p=(0,d.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=h;i!==e&&(h=e,p&&p.set&&p.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,n.observable)(h)).on("change."+u.join("."),c),c(l,i,h))},get:()=>p&&p.get?p.get.call(t):h})})};(0,s.isFunction)(i.hookStatus)?i.hookStatus(o.STATUSES.ready,m):m(i)}}},2748:function(e,t,i){"use strict";i.d(t,{Dom:function(){return y}});var o=i(82758),n=i(4510),r=i(68345),s=i(23282),a=i(58487),l=i(42320),c=i(70799),d=i(86068),u=i(49055),h=i(38837),p=i(29960),f=i(41180),m=i(86583),g=i(89890),b=i(37790);let v=RegExp(`<([a-z]+)[^>]+${o.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class y{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let o,n,r=e;i.s.save();do n=!1,(o=r.nextSibling)&&!y.isBlock(o)&&!y.isTag(o,"br")&&(n=!0,r=o);while(n)return y.__wrapElements(t,i,e,r)}static __wrapElements(e,t,i,o){let n=(0,c.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(n,i);let r=i;for(;r&&(r=i.nextSibling,n.appendChild(i),i!==o&&r);)i=r;return t.s.restore(),n}static wrapInline(e,t,i){let o,n,r=e,s=e;i.s.save();do n=!1,(o=r.previousSibling)&&!y.isBlock(o)&&(n=!0,r=o);while(n)do n=!1,(o=s.nextSibling)&&!y.isBlock(o)&&(n=!0,s=o);while(n)return y.__wrapElements(t,i,r,s)}static wrap(e,t,i){let o=(0,c.isString)(t)?i.element(t):t;if(y.isNode(e)){if(!e.parentNode)throw(0,g.error)("Element should be in DOM");e.parentNode.insertBefore(o,e),o.appendChild(e)}else{let t=e.extractContents();e.insertNode(o),o.appendChild(t)}return o}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);y.safeRemove(e)}}static between(e,t,i){let o=e;for(;o&&o!==t&&!(e!==o&&i(o));){let e=o.firstChild||o.nextSibling;if(!e){for(;o&&!o.nextSibling;)if((o=o.parentNode)===t)return;e=null==o?void 0:o.nextSibling}o=e}}static replace(e,t,i,o=!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 o&&y.isElement(e)&&y.isElement(s)&&(0,n.toArray)(e.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(s,e),s}static isEmptyTextNode(e){return y.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return y.each(e,e=>y.isEmptyTextNode(e))}static isContentEditable(e,t){return y.isNode(e)&&!y.closest(e,e=>y.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=o.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let n=e=>null==e.nodeValue||0===(0,u.trim)(e.nodeValue).length;return y.isText(e)?n(e):!(y.isElement(e)&&i(e))&&y.each(e,e=>{if(y.isText(e)&&!n(e)||y.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 y.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return y.isTag(e,o.LIST_TAGS)}static isLeaf(e){return y.isTag(e,"li")}static isImage(e){return y.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,d.isVoid)(e)&&"object"==typeof e&&y.isNode(e)&&o.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){return!!y.isNode(e)&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){return!!y.isNode(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(e){var t;if(!y.isNode(e))return!1;let i=null==(t=e.ownerDocument)?void 0:t.defaultView;return e instanceof(i?i.HTMLElement:HTMLElement)}static isInlineBlock(e){return y.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,f.css)(e,"display").toString())}static canSplitBlock(e){return!(0,d.isVoid)(e)&&y.isHTMLElement(e)&&y.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static first(e,t){return y.__deepMost(e,t,!1)}static last(e,t){return y.__deepMost(e,t,!0)}static __deepMost(e,t,i){let o=i?"lastChild":"firstChild",n=i?"previousSibling":"nextSibling",r=null==e?void 0:e[o];if(!r)return null;do{if(t(r))return r;let i=r[o]||r[n];if(!i&&r.parentNode!==e){do r=r.parentNode;while(r&&!r[n]&&r.parentNode!==e)i=null==r?void 0:r[n]}r=i}while(r)return null}static prev(e,t,i,o=!0){return y.find(e,t,i,!1,o)}static next(e,t,i,o=!0){return y.find(e,t,i,!0,o)}static prevWithClass(e,t){return y.__siblingWithClass(e,t,!0)}static nextWithClass(e,t){return y.__siblingWithClass(e,t,!1)}static __siblingWithClass(e,t,i){let o=e=>y.isElement(e)&&e.classList.contains(t),n=e.parentNode;return i?y.prev(e,o,n):y.next(e,o,n)}static find(e,t,i,o=!0,n=!0){let r=this.nextGen(e,i,o,n),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,i=!0,o=!0){let n=[],r=e;do{let t=i?r.nextSibling:r.previousSibling;for(;t;)n.push(t),t=i?t.nextSibling:t.previousSibling;n.reverse(),yield*this.runInStack(e,n,i,o),r=r.parentNode}while(r&&r!==t)return null}static each(e,t,i=!0){let o=this.eachGen(e,i),n=o.next();for(;!n.done;){if(!1===t(n.value))return!1;n=o.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,o=!0){for(;t.length;){let n=t.pop();if(o){let e=i?n.lastChild:n.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==n&&(yield n)}}static findWithCurrent(e,t,i,o="nextSibling",n="firstChild"){let r=e;do{if(t(r))return r||null;if(n&&r&&r[n]){let e=y.findWithCurrent(r[n],t,r,o,n);if(e)return e}for(;r&&!r[o]&&r!==i;)r=r.parentNode;r&&r[o]&&r!==i&&(r=r[o])}while(r&&r!==i)return null}static findSibling(e,t=!0,i=e=>!y.isEmptyTextNode(e)){let o=y.sibling(e,t);for(;o&&!i(o);)o=y.sibling(o,t);return o&&i(o)?o:null}static findNotEmptySibling(e,t){return y.findSibling(e,t,e=>{var t;return!y.isEmptyTextNode(e)&&!!(!y.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,u.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,i){return(0,b.call)(t?y.prev:y.next,e,e=>!!(e&&(!(y.isText(e)||y.isComment(e))||(0,u.trim)((null==e?void 0:e.nodeValue)||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,o=!1){let n=e;if(!n)return null;do{if(t(n))return n;if(n===i||!n.parentNode)break;n=n.parentNode}while(n&&n!==i)return n===i&&o&&t(n)?n:null}static closest(e,t,i){let o,n=e=>e.toLowerCase();if((0,s.isFunction)(t))o=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(n));o=t=>!!(t&&e.has(n(t.nodeName)))}else o=e=>!!(e&&n(t)===n(e.nodeName));return y.up(e,o,i)}static furthest(e,t,i){let o=null,n=null==e?void 0:e.parentElement;for(;n&&n!==i;)t(n)&&(o=n),n=null==n?void 0:n.parentElement;return o}static appendChildFirst(e,t){e.firstChild!==t&&y.prepend(e,t)}static after(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e.nextSibling)}static before(e,t){var i;null==(i=e.parentNode)||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||o.globalDocument).createDocumentFragment();(0,n.toArray)(e.childNodes).filter(e=>!!r(e)||(y.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),t.insertBefore(s,i?t.firstChild:null)}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=>y.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=y.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&y.isTag(e.startContainer,o.INSEPARABLE_TAGS)?y.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>y.isText(e)&&!e.nodeValue&&y.safeRemove(e))}static hide(e){e&&((0,m.dataBind)(e,"__old_display",e.style.getPropertyValue("display")),e.style.setProperty("display","none"))}static show(e){if(!e)return;let t=(0,m.dataBind)(e,"__old_display");"none"===e.style.getPropertyValue("display")&&e.style.setProperty("display",t||null)}static isTag(e,t){if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");if(!this.isElement(e))return!1;let i=e.tagName.toLowerCase();return t instanceof Set?t.has(i)||t.has(e.tagName.toUpperCase()):i===t||e.tagName.toUpperCase()===t}static markTemporary(e,t){return t&&(0,p.attr)(e,t),(0,p.attr)(e,o.TEMP_ATTR,!0),e}static isTemporary(e){return!!y.isElement(e)&&(y.isMarker(e)||"true"===(0,p.attr)(e,o.TEMP_ATTR))}static isMarker(e){return y.isNode(e)&&y.isTag(e,"span")&&e.hasAttribute("data-"+o.MARKER_CLASS)}static replaceTemporaryFromString(e){return e.replace(v,"$2")}static temporaryList(e){let t=[];return y.each(e,e=>{y.isHTMLElement(e)&&e.hasAttribute(o.TEMP_ATTR)&&t.push(e)}),t}constructor(){throw Error("Dom is static module")}}},22732:function(e,t,i){"use strict";i.d(t,{Dom:function(){return o.Dom},LazyWalker:function(){return n.LazyWalker}});var o=i(2748),n=i(70071)},70071:function(e,t,i){"use strict";i.d(t,{LazyWalker:function(){return s}});var o=i(45219),n=i(2748),r=i(72757);class s extends r.Eventify{setWork(e){return this.isWorked?this.break():this.stop(),this.workNodes=n.Dom.eachGen(e,!this.options.reverse),this.isFinished=!1,this.hadAffect=!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(){var e;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(e=this.__schedulerController)||e.abort(),this.__schedulerController=null}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.__schedulerController=null}}!function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([o.autobind],s.prototype,"__workPerform",null)},98220:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return d}});var o=i(82758),n=i(46559),r=i(68345),s=i(23282),a=i(70799),l=i(89890),c=i(15738);class d{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,n.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),o=i[1]||c.defaultNameSpace;t.call(this,i[0],o)})}__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]&&delete e[this.__key]}__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,n){let c,d,h,p;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(c=this,d=e,h=t,p=i):(c=e,d=t,h=i,p=n),!((0,a.isString)(d)||(0,a.isStringArray)(d))||0===d.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,d,h,p)}),this;let f=c,m=this.__getStore(f),g=this,b=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return u(f)&&(b=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),h&&!1===h.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(d,(e,t)=>{var i,n;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:b};if(m.set(e,t,r,null==p?void 0:p.top),u(f)){let t=o.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(i=null==p?void 0:p.capture)&&i}:null!=(n=null==p?void 0:p.capture)&&n;b.options=t,f.addEventListener(e,b,t),this.__memoryDOMSubjectToHandler(f,b)}}}),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,o=i.get(e)||new Set;o.delete(t),o.size?i.set(e,o):i.delete(e)}one(e,t,i,o){let n,r,s,l;(0,a.isString)(e)||(0,a.isStringArray)(e)?(n=this,r=e,s=t,l=i):(n=e,r=t,s=i,l=o);let c=(...e)=>(this.off(n,r,c),s(...e));return this.on(n,r,c,l),this}off(e,t,i){let o,n,l;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(o=this,n=e,l=t):(o=e,n=t,l=i),(0,r.isArray)(o))return o.forEach(e=>{this.off(e,n,l)}),this;let d=o,h=this.__getStore(d);if(!((0,a.isString)(n)||(0,a.isStringArray)(n))||0===n.length)return h.namespaces().forEach(e=>{this.off(d,"."+e)}),this.__removeStoreFromSubject(d),this;let p=e=>{var t;u(d)&&(d.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(d,e.syntheticCallback))},f=(e,t)=>{if(""===e)return void h.events(t).forEach(e=>{""!==e&&f(e,t)});let i=h.get(e,t);if(i&&i.length)if((0,s.isFunction)(l)){let o=h.indexOf(e,t,l);!1!==o&&(p(i[o]),i.splice(o,1),i.length||h.clearEvents(t,e))}else i.forEach(p),i.length=0,h.clearEvents(t,e)};return this.__eachEvent(n,(e,t)=>{t===c.defaultNameSpace?h.namespaces().forEach(t=>{f(e,t)}):f(e,t)}),h.isEmpty()&&this.__removeStoreFromSubject(d),this}stopPropagation(e,t){let i=(0,a.isString)(e)?this:e,o=(0,a.isString)(e)?e:t;if("string"!=typeof o)throw(0,l.error)("Need event names");let n=this.__getStore(i);this.__eachEvent(o,(e,t)=>{let o=n.get(e,t);o&&this.__stopped.push(o),t===c.defaultNameSpace&&n.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 o,n,r=(0,a.isString)(e)?this:e,s=(0,a.isString)(e)?e:t,d=(0,a.isString)(e)?[t,...i]:i;if(!u(r)&&!(0,a.isString)(s))throw(0,l.error)("Need events names");let h=this.__getStore(r);return!(0,a.isString)(s)&&u(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(u(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),n=t.syntheticCallback.call(r,e,...d),this.currents.pop(),void 0!==n&&(o=n),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||u(r)||h.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...d]);void 0!==i&&(o=i)})}}),o}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=o.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 u(e){return e&&(0,s.isFunction)(e.addEventListener)}},72757:function(e,t,i){"use strict";i.d(t,{Eventify:function(){return o}});class o{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 o;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.forEach(e=>{o=e(...t)})),o}constructor(){this.__map=new Map}}},57012:function(e,t,i){"use strict";let o=new(i(98220)).EventEmitter;i.d(t,["eventEmitter",0,o])},3827:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return o.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return n.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var o=i(98220),n=i(72757),r=i(73026),s=i(15738)},73026:function(e,t,i){"use strict";i.d(t,{observable:function(){return c}});var o=i(68345),n=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,n)=>((0,o.isArray)(t)?t.map(e=>c(e,n)):(i[t]||(i[t]=[]),i[t].push(n)),e),d=(n,...r)=>{if((0,o.isArray)(n))return void n.map(e=>d(e,...r));try{!t[n]&&i[n]&&(t[n]=!0,i[n].forEach(t=>t.call(e,...r)))}finally{t[n]=!1}},u=(t,i=[])=>{let o={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);o[a]=t[a];let c=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set(t){let i=o[a];if(!(0,n.isFastEqual)(o[a],t)){d(["beforeChange","beforeChange."+l.join(".")],a,t),(0,r.isPlainObject)(t)&&u(t,l),c&&c.set?c.set.call(e,t):o[a]=t;let n=[];d(["change",...l.reduce((e,t)=>(n.push(t),e.push("change."+n.join(".")),e),[])],l.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):o[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(o[a])&&u(o[a],l)}),Object.defineProperty(e,"on",{value:c}))};return u(e),e}},15738:function(e,t,i){"use strict";i.d(t,{EventHandlersStore:function(){return s}});var o=i(4510),n=i(38837);let r="JoditEventDefaultNamespace";class s{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,n.assert)(i,"-"),i[e]}}indexOf(e,t,i){let o=this.get(e,t);if(o){for(let e=0;e<o.length;e+=1)if(o[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,o.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,o=!1){let n=this.__store.get(t);n||(n={},this.__store.set(t,n)),void 0===n[e]&&(n[e]=[]),o?n[e].unshift(i):n[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}}i.d(t,["defaultNameSpace",0,r])},580:function(e,t,i){"use strict";i.d(t,{getContainer:function(){return y},getPopupViewRoot:function(){return w},uniqueUid:function(){return g}});var o=i(19306),n=i(70799),r=i(39955),s=i(12475),a=i(29960),l=i(41180),c=i(80568),d=i(41876),u=i(57012),h=i(82758),p=i(22732);let f=1,m=new Set;function g(){function e(){return Math.round(f+=10*(Math.random()+1)).toString(16)}let t=e();for(;m.has(t);)t=e();return m.add(t),t}let b=new d.PluginSystem({getContainer:y}),v=new WeakMap;function y(e,t,i="div",l=!1){let d,u=(0,n.isString)(t)?t:t?(0,c.getClassName)(t.prototype):"jodit-utils",h=v.get(e)||{},f=u+i,m=(0,r.isViewObject)(e)?e:e.j;if(!h[f]){let t=m.c;if(d=w(m.o,m.container,e.od.body),l&&(0,o.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let n="style"===i?e.ed.head:e.ed.body;d=(0,o.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:n}let n=t.element(i,{className:`jodit jodit-${(0,s.kebabCase)(u)}-container jodit-box`});m.o.nonce&&("style"===i||"script"===i)&&(0,a.attr)(n,"nonce",m.o.nonce),n.classList.add("jodit_theme_"+(m.o.theme||"default")),p.Dom.append(d,n),h[f]=n,e.hookStatus("beforeDestruct",()=>{m.events.off(n),p.Dom.safeRemove(n),delete h[f],Object.keys(h).length&&v.delete(e)}),v.set(e,h),m.events.fire("getContainer",n)}return h[f].classList.remove("jodit_theme_default","jodit_theme_dark"),h[f].classList.add("jodit_theme_"+(m.o.theme||"default")),h[f]}function w(e,t,i){var o,n,r;return null!=(r=null!=(n=null!=(o=e.popupRoot)?o:e.shadowRoot)?n:p.Dom.closest(t,e=>p.Dom.isHTMLElement(e)&&(p.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,l.css)(e,"position"))),i))?r:i}let _=u.eventEmitter;i.d(t,["eventEmitter",0,_,"extendLang",0,e=>{Object.keys(e).forEach(t=>{h.lang[t]?Object.assign(h.lang[t],e[t]):h.lang[t]=e[t]})},"instances",0,{},"modules",0,{},"pluginSystem",0,b])},29999:function(e,t,i){"use strict";var o=i(68345);i.d(t,["asArray",0,e=>(0,o.isArray)(e)?e:[e]])},76855:function(e,t,i){"use strict";i.d(t,{asArray:function(){return o.asArray},splitArray:function(){return n.splitArray},toArray:function(){return r.toArray}});var o=i(29999),n=i(46559),r=i(4510)},46559:function(e,t,i){"use strict";function o(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}i.d(t,{splitArray:function(){return o}})},4510:function(e,t,i){"use strict";var o=i(70722),n=i(58844);i.d(t,["toArray",0,function(...e){var t;return((0,o.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,n.reset)("Array.from"))?t:Array.from).apply(Array,e)}])},91898:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return o.clearTimeout},setTimeout:function(){return o.setTimeout}});var o=i(13252)},13252:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return r},setTimeout:function(){return n}});var o=i(82758);function n(e,t,...i){return t?o.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function r(e){o.globalWindow.clearTimeout(e)}},54765:function(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:function(){return n}});var o=i(82758);function n(){let e;try{let t=o.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){"use strict";i.d(t,{hasBrowserColorPicker:function(){return o.hasBrowserColorPicker},hasContainer:function(){return u.hasContainer},isAbortError:function(){return n.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return u.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return c.isHTML},isHtmlFromWord:function(){return d.isHtmlFromWord},isInitable:function(){return u.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return p.isJoditObject},isLicense:function(){return f.isLicense},isMarker:function(){return m.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return b.isNumber},isNumeric:function(){return v.isNumeric},isPlainObject:function(){return y.isPlainObject},isPromise:function(){return w.isPromise},isSet:function(){return _.isSet},isString:function(){return k.isString},isStringArray:function(){return k.isStringArray},isURL:function(){return C.isURL},isValidName:function(){return S.isValidName},isViewObject:function(){return x.isViewObject},isVoid:function(){return I.isVoid},isWindow:function(){return E.isWindow}});var o=i(54765),n=i(12045),r=i(68345),s=i(87612),a=i(59292),l=i(23282),c=i(58487),d=i(29673),u=i(60132),h=i(72913),p=i(19306),f=i(45603),m=i(78116),g=i(70722),b=i(84767),v=i(29807),y=i(72430),w=i(14773),_=i(42320),k=i(70799),C=i(26049),S=i(37508),x=i(39955),I=i(86068),E=i(52742)},12045:function(e,t,i){"use strict";function o(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}i.d(t,{isAbortError:function(){return o}})},68345:function(e,t,i){"use strict";function o(e){return Array.isArray(e)}i.d(t,{isArray:function(){return o}})},87612:function(e,t,i){"use strict";function o(e){return"boolean"==typeof e}i.d(t,{isBoolean:function(){return o}})},59292:function(e,t,i){"use strict";i.d(t,{isEqual:function(){return n},isFastEqual:function(){return r}});var o=i(67462);function n(e,t){return e===t||(0,o.stringify)(e)===(0,o.stringify)(t)}function r(e,t){return e===t}},23282:function(e,t,i){"use strict";function o(e){return"function"==typeof e}i.d(t,{isFunction:function(){return o}})},29673:function(e,t,i){"use strict";function o(e){return -1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i)||-1!==e.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i)||-1!==e.search(/urn:schemas-microsoft-com:office:(word|excel)/)||-1!==e.search(/<\w[^>]*\sclass=("|')?Mso/)||-1!==e.search(/style='[^']*mso-/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}i.d(t,{isHtmlFromWord:function(){return o}})},58487:function(e,t,i){"use strict";var o=i(70799);i.d(t,["isHTML",0,e=>(0,o.isString)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))])},60132:function(e,t,i){"use strict";i.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var o=i(2748),n=i(23282),r=i(86068);function s(e){return!(0,r.isVoid)(e)&&(0,n.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,n.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&o.Dom.isElement(e.container)}},72913:function(e,t,i){"use strict";i.d(t,{isInt:function(){return r}});var o=i(29807),n=i(70799);function r(e){return(0,n.isString)(e)&&(0,o.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},19306:function(e,t,i){"use strict";i.d(t,{isJoditObject:function(){return n}});var o=i(23282);function n(e){return!!(e&&e instanceof Object&&(0,o.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},45603:function(e,t,i){"use strict";var o=i(70799);i.d(t,["isLicense",0,e=>(0,o.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){"use strict";i.d(t,{isMarker:function(){return n}});var o=i(2748);function n(e){return o.Dom.isMarker(e)}},70722:function(e,t,i){"use strict";function o(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+""))}i.d(t,{isNativeFunction:function(){return o}})},84767:function(e,t,i){"use strict";function o(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}i.d(t,{isNumber:function(){return o}})},29807:function(e,t,i){"use strict";i.d(t,{isNumeric:function(){return n}});var o=i(70799);function n(e){if((0,o.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){"use strict";i.d(t,{isPlainObject:function(){return n}});var o=i(52742);function n(e){return!(!e||"object"!=typeof e||e.nodeType||(0,o.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},14773:function(e,t,i){"use strict";function o(e){return e&&"function"==typeof e.then}i.d(t,{isPromise:function(){return o}})},42320:function(e,t,i){"use strict";i.d(t,{isSet:function(){return n}});var o=i(23282);function n(e){return!!e&&(0,o.isFunction)(e.has)&&(0,o.isFunction)(e.add)&&(0,o.isFunction)(e.delete)}},70799:function(e,t,i){"use strict";i.d(t,{isString:function(){return n},isStringArray:function(){return r}});var o=i(68345);function n(e){return"string"==typeof e}function r(e){return(0,o.isArray)(e)&&n(e[0])}},26049:function(e,t,i){"use strict";i.d(t,{isURL:function(){return n}});var o=i(82758);function n(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=o.globalDocument.createElement("a");return t.href=e,!!t.hostname}},37508:function(e,t,i){"use strict";function o(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}i.d(t,{isValidName:function(){return o}})},39955:function(e,t,i){"use strict";i.d(t,{isViewObject:function(){return n}});var o=i(23282);function n(e){return!!(e&&e instanceof Object&&(0,o.isFunction)(e.constructor)&&e.isView)}},86068:function(e,t,i){"use strict";function o(e){return null==e}i.d(t,{isVoid:function(){return o}})},52742:function(e,t,i){"use strict";function o(e){return null!=e&&e===e.window}i.d(t,{isWindow:function(){return o}})},35278:function(e,t,i){"use strict";i.d(t,["colorToHex",0,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),o=parseInt(t[3],10),n=(parseInt(t[4],10)|o<<8|i<<16).toString(16).toUpperCase();for(;n.length<6;)n="0"+n;return t[1]+"#"+n}])},32574:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return d}});var o=i(82758),n=i(2748),r=i(49055),s=i(29960),a=i(41180),l=i(76078);function c(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 d(e){let t=/<html(?:\s[^>]*)?>/i.exec(e);if(!t)return e;let i=(e=e.substring(t.index)).toLowerCase().lastIndexOf("</html>");-1!==i&&(e=e.substring(0,i+7));let d=o.globalDocument.createElement("iframe");(0,a.css)(d,"display","none"),n.Dom.append(o.globalDocument.body,d);let u="";try{let t=d.contentDocument||(d.contentWindow?d.contentWindow.document:null);if(t){t.open(),t.write(e),t.close(),n.Dom.each(t.body,e=>{n.Dom.isElement(e)&&/mso-list:\s*ignore/i.test((0,s.attr)(e,"style")||"")&&n.Dom.safeRemove(e)});try{for(let e=0;e<t.styleSheets.length;e+=1){let i=t.styleSheets[e].cssRules;for(let e=0;e<i.length;e+=1)""!==i[e].selectorText&&(0,l.$$)(i[e].selectorText,t.body).forEach(t=>{t.style.cssText=c(i[e].style.cssText+";"+t.style.cssText)})}}catch(e){if(!o.IS_PROD)throw e}n.Dom.each(t.body,e=>{if(n.Dom.isElement(e)){let t=(0,s.attr)(e,"style");t&&(e.style.cssText=c(t)),(0,s.attr)(e,"style")||(0,s.attr)(e,"style",null)}}),u=t.firstChild?(0,r.trim)(t.body.innerHTML):""}}catch(e){}finally{n.Dom.safeRemove(d)}return u&&(e=u),(0,r.trim)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(e,t,i){"use strict";i.d(t,{cleanFromWord:function(){return l}});var o=i(82758),n=i(2748),r=i(4510),s=i(49055),a=i(29960);function l(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=o.globalDocument.createElement("div");i.innerHTML=e;let s=[];i.firstChild&&n.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":n.Dom.unwrap(e);break;default:if(/mso-list:\s*ignore/i.test((0,a.attr)(e,"style")||"")){s.push(e);break}(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&(0,a.attrRaw)(e,t.name,null)})}break;case Node.TEXT_NODE:break;default:s.push(e)}}),n.Dom.safeRemove.apply(null,s),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(s.trim).join(`
18
18
  `)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53326:function(e,t,i){"use strict";i.d(t,{htmlspecialchars:function(){return n}});var o=i(82758);function n(e){let t=o.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},75275:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return n.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 o=i(32574),n=i(53212),r=i(53326),s=i(45971),a=i(86518),l=i(91003)},45971:function(e,t,i){"use strict";function o(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}i.d(t,{nl2br:function(){return o}})},86518:function(e,t,i){"use strict";i.d(t,{safeHTML:function(){return l},sanitizeHTMLElement:function(){return h}});var o=i(2748),n=i(43555),r=i(29960);let s=new Set(["foreignobject","annotation-xml","desc","title"]),a=e=>!!(e&&/^(math|svg)$/i.test(e.nodeName));function l(e,t){var i;if(!o.Dom.isElement(e)&&!o.Dom.isFragment(e))return;let l=[];for(let t of(o.Dom.each(e,e=>{o.Dom.isElement(e)&&o.Dom.up(e.parentNode,a)&&l.push(e)}),l))o.Dom.isOrContains(e,t)&&function(e){if("http://www.w3.org/1999/xhtml"!==e.namespaceURI||null==o.Dom.up(e,a))return!1;for(let t=e.parentElement;t;t=t.parentElement){let e=t.nodeName.toLowerCase();if("math"===e||"svg"===e)break;if(s.has(e))return!1}return!0}(t)&&o.Dom.safeRemove(t);let c=null!=(i=t.removeEventAttributes)?i:t.removeOnError,d=e=>{if(o.Dom.isElement(e)&&(c&&function(e){if(!o.Dom.isElement(e))return;let t=[];for(let i=0;i<e.attributes.length;i++)e.attributes[i].name.toLowerCase().startsWith("on")&&t.push(e.attributes[i].name);for(let i of t)(0,r.attrRaw)(e,i,null)}(e),h(e,t),t.safeLinksTarget&&"A"===e.nodeName&&"_blank"===(0,n.attr)(e,"target"))){let t=((0,n.attr)(e,"rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,n.attr)(e,"rel",t.join(" "))}};d(e),o.Dom.each(e,d)}let c=["src","data","action","formaction","poster","background","xlink:href"],d=new Set(["iframe","frame","object","embed"]);function u(e,t){let i=e.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(i)||/^data:(?:text\/html|application\/xhtml)/.test(i))||/^data:image\/svg/.test(i)&&d.has(t)}function h(e,{safeJavaScriptLink:t,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!o.Dom.isElement(e))return!1;let s=!1;i&&e.hasAttribute("onerror")&&((0,n.attr)(e,"onerror",null),s=!0);let a=e.nodeName.toLowerCase(),l=(0,n.attr)(e,"href");if(t&&l&&u(l,a)){let t="u">typeof location?location.protocol:"http:";(0,n.attr)(e,"href",t+"//"+l),s=!0}if(t)for(let t of(e.hasAttribute("srcdoc")&&((0,n.attr)(e,"srcdoc",null),s=!0),c)){let i=(0,r.attrRaw)(e,t);i&&u(i,a)&&((0,n.attr)(e,t,null),s=!0)}return s}},91003:function(e,t,i){"use strict";i.d(t,{stripTags:function(){return function e(t,i=document,c=null,d=!1){let u=i.createElement("div");(0,n.isString)(t)?u.innerHTML=t:o.Dom.append(u,t);let h=[];return o.Dom.each(u,e=>{o.Dom.isElement(e)&&h.push(e)}),h.forEach(t=>{if(!t.parentNode)return;if(c&&o.Dom.isTag(t,c)){let n=t.nodeName.toLowerCase(),r=o.Dom.isTag(t,l)?`%%%jodit-single-${n}%%%`:`%%%jodit-${n}%%%${e(t.innerHTML,i,c,d)}%%%/jodit-${n}%%%`;o.Dom.before(t,i.createTextNode(r)),o.Dom.safeRemove(t);return}if(o.Dom.isTag(t,a))return void o.Dom.safeRemove(t);if(!o.Dom.isTag(t,s))return;let n=t.nextSibling;!(o.Dom.isText(n)&&/^\s/.test(n.nodeValue||""))&&n&&o.Dom.before(n,i.createTextNode(d?"%%%jodit-single-br%%%":" "))}),(0,r.trim)(u.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,i,o)=>`<${t?"/":""}${o}>`)}}});var o=i(2748),n=i(70799),r=i(49055);let s=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),a=new Set(["script","style"]),l=new Set(["br","hr","input"])},21537:function(e,t,i){"use strict";i.r(t),i.d(t,{$$:function(){return u.$$},CamelCaseToKebabCase:function(){return d.CamelCaseToKebabCase},ConfigDeepFlatten:function(){return u.ConfigDeepFlatten},ConfigFlatten:function(){return u.ConfigFlatten},ConfigMerge:function(){return u.ConfigMerge},ConfigProto:function(){return u.ConfigProto},ConnectionError:function(){return u.ConnectionError},LimitedStack:function(){return u.LimitedStack},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},OptionsError:function(){return u.OptionsError},UNSAFE_PROTO_KEYS:function(){return u.UNSAFE_PROTO_KEYS},abort:function(){return u.abort},alignElement:function(){return u.alignElement},alreadyLoadedList:function(){return u.alreadyLoadedList},appendScriptAsync:function(){return u.appendScriptAsync},appendStyleAsync:function(){return u.appendStyleAsync},applyStyles:function(){return a.applyStyles},asArray:function(){return o.asArray},assert:function(){return u.assert},attr:function(){return u.attr},attrRaw:function(){return u.attrRaw},browser:function(){return u.browser},buildQuery:function(){return u.buildQuery},call:function(){return u.call},callPromise:function(){return u.callPromise},callThis:function(){return u.callThis},camelCase:function(){return d.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearAlign:function(){return u.clearAlign},clearCenterAlign:function(){return u.clearCenterAlign},clearTimeout:function(){return n.clearTimeout},cns:function(){return u.cns},colorToHex:function(){return s.colorToHex},completeUrl:function(){return u.completeUrl},connection:function(){return u.connection},convertMediaUrlToVideoEmbed:function(){return u.convertMediaUrlToVideoEmbed},css:function(){return u.css},cssInline:function(){return u.cssInline},cssPath:function(){return u.cssPath},ctrlKey:function(){return u.ctrlKey},dataBind:function(){return u.dataBind},defaultLanguage:function(){return u.defaultLanguage},error:function(){return u.error},fastClone:function(){return u.fastClone},fuzzySearchIndex:function(){return d.fuzzySearchIndex},get:function(){return u.get},getClassName:function(){return u.getClassName},getContentWidth:function(){return c.getContentWidth},getDataTransfer:function(){return u.getDataTransfer},getFixedPositionOffset:function(){return c.getFixedPositionOffset},getPropertyDescriptor:function(){return u.getPropertyDescriptor},getScrollParent:function(){return c.getScrollParent},getXPathByElement:function(){return u.getXPathByElement},hAlignElement:function(){return u.hAlignElement},hasBrowserColorPicker:function(){return r.hasBrowserColorPicker},hasContainer:function(){return r.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},humanSizeToBytes:function(){return u.humanSizeToBytes},i18n:function(){return d.i18n},inView:function(){return u.inView},innerWidth:function(){return c.innerWidth},isAbortError:function(){return r.isAbortError},isArray:function(){return r.isArray},isAtom:function(){return u.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},isUnsafeProtoKey:function(){return u.isUnsafeProtoKey},isValidName:function(){return r.isValidName},isViewObject:function(){return r.isViewObject},isVoid:function(){return r.isVoid},isWindow:function(){return r.isWindow},kebabCase:function(){return d.kebabCase},keepNames:function(){return u.keepNames},keys:function(){return u.keys},loadImage:function(){return u.loadImage},loadNext:function(){return u.loadNext},loadNextStyle:function(){return u.loadNextStyle},markAsAtomic:function(){return u.markAsAtomic},markDeprecated:function(){return u.markDeprecated},markOwner:function(){return u.markOwner},memorizeExec:function(){return u.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 u.options},parseQuery:function(){return u.parseQuery},position:function(){return c.position},previewBox:function(){return u.previewBox},refs:function(){return u.refs},reset:function(){return u.reset},resolveElement:function(){return u.resolveElement},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},scrollIntoViewIfNeeded:function(){return u.scrollIntoViewIfNeeded},set:function(){return u.set},setTimeout:function(){return n.setTimeout},size:function(){return c.size},splitArray:function(){return o.splitArray},sprintf:function(){return d.sprintf},stringify:function(){return d.stringify},stripTags:function(){return a.stripTags},toArray:function(){return o.toArray},trim:function(){return d.trim},trimChars:function(){return d.trimChars},trimInv:function(){return d.trimInv},ucfirst:function(){return d.ucfirst}});var o=i(76855),n=i(91898),r=i(27613),s=i(35278),a=i(75275),l=i(71521),c=i(56175),d=i(59007),u=i(43555)},71521:function(e,t,i){"use strict";i.d(t,{NUMBER_FIELDS_REG:function(){return n.NUMBER_FIELDS_REG},normalizeColor:function(){return o.normalizeColor},normalizeCssNumericValue:function(){return n.normalizeCssNumericValue},normalizeCssValue:function(){return n.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 d.normalizeUrl}});var o=i(21224),n=i(3760),r=i(49033),s=i(12972),a=i(9992),l=i(70091),c=i(46334),d=i(37406)},21224:function(e,t,i){"use strict";var o=i(35278),n=i(49055);i.d(t,["normalizeColor",0,e=>{let t=["#"],i=(0,o.colorToHex)(e);if(!i)return!1;if(3===(i=(i=(0,n.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){"use strict";i.d(t,{normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return c}});var o=i(29807),n=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,n.isVoid)(t)&&a.test(e)&&(0,o.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,o.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}i.d(t,["NUMBER_FIELDS_REG",0,a])},49033:function(e,t,i){"use strict";i.d(t,{normalizeKeyAliases:function(){return r}});var o=i(82758),n=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,n.trim)(e.toLowerCase())).map(e=>o.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){"use strict";i.d(t,["normalizeLicense",0,(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){"use strict";var o=i(49055);i.d(t,["normalizePath",0,(...e)=>e.filter(e=>(0,o.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){"use strict";i.d(t,["normalizeRelativePath",0,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){"use strict";i.d(t,["normalizeSize",0,(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()])},37406:function(e,t,i){"use strict";i.d(t,["normalizeUrl",0,(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")])},44506:function(e,t,i){"use strict";i.d(t,["getContentWidth",0,(e,t)=>{let i=t.getComputedStyle(e);return e.offsetWidth-parseInt(i.getPropertyValue("padding-left")||"0",10)-parseInt(i.getPropertyValue("padding-right")||"0",10)}])},35224:function(e,t,i){"use strict";function o(e){var t,i;let o=null==(t=e.ownerDocument)?void 0:t.defaultView,n=e.parentElement;for(;o&&n;){if(""!==(i=o.getComputedStyle(n)).transform&&"none"!==i.transform||""!==i.perspective&&"none"!==i.perspective||""!==i.filter&&"none"!==i.filter||"transform"===i.willChange||"perspective"===i.willChange||"filter"===i.willChange||"paint"===i.contain||"layout"===i.contain||"strict"===i.contain||"content"===i.contain){let e=n.getBoundingClientRect();return{x:e.left,y:e.top}}n=n.parentElement}return{x:0,y:0}}i.d(t,{getFixedPositionOffset:function(){return o}})},16442:function(e,t,i){"use strict";i.d(t,{getScrollParent:function(){return function e(t){if(!t)return null;let i=n.Dom.isHTMLElement(t),s=i&&(0,r.css)(t,"overflowY");return i&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||o.globalDocument.scrollingElement||o.globalDocument.body}}});var o=i(82758),n=i(2748),r=i(43555)},56175:function(e,t,i){"use strict";i.d(t,{getContentWidth:function(){return o.getContentWidth},getFixedPositionOffset:function(){return n.getFixedPositionOffset},getScrollParent:function(){return r.getScrollParent},innerWidth:function(){return s.innerWidth},offset:function(){return l.offset},position:function(){return c.position},size:function(){return a.size}});var o=i(44506),n=i(35224),r=i(16442),s=i(81630),a=i(21496),l=i(81284),c=i(5700)},81630:function(e,t,i){"use strict";i.d(t,["innerWidth",0,(e,t)=>{let i=t.getComputedStyle(e);return e.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}])},21496:function(e,t,i){"use strict";i.d(t,{size:function(){return n}});var o=i(27613);function n(e){return(0,o.isString)(e)||(0,o.isArray)(e)?e.length:(0,o.isPlainObject)(e)?Object.keys(e).length:0}},81284:function(e,t,i){"use strict";let o=(e,t,i,n=!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},d=i.defaultView||i.parentWindow,u=d.pageYOffset||c.scrollTop||l.scrollTop,h=d.pageXOffset||c.scrollLeft||l.scrollLeft,p=c.clientTop||l.clientTop||0,f=c.clientLeft||l.clientLeft||0,m=t.iframe;if(!n&&t&&t.options&&t.o.iframe&&m){let{top:e,left:i}=o(m,t,t.od,!0);s=r.top+e,a=r.left+i}else s=r.top+u-p,a=r.left+h-f;return{top:Math.round(s),left:Math.round(a),width:r.width,height:r.height}};i.d(t,["offset",0,o])},5700:function(e,t,i){"use strict";i.d(t,{position:function(){return function e(t,i,n=!1){var r,s;let a=t.getBoundingClientRect(),l=a.left,c=a.top;if((0,o.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(t)&&!n){let{left:t,top:o}=e(i.iframe,i,!0);l+=t,c+=o}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 o=i(19306)},87058:function(e,t,i){"use strict";i.d(t,["camelCase",0,e=>e.replace(/([-_])(.)/g,(e,t,i)=>i.toUpperCase())])},67477:function(e,t,i){"use strict";i.d(t,{fuzzySearchIndex:function(){return n}});var o=i(82758);function n(e,t,i=0,r=1){let s=0,a,l=-1,c=0,d=0;for(a=i;s<e.length&&a<t.length;)e[s].toLowerCase()===t[a].toLowerCase()?(s++,c++,d=0,-1===l&&(l=a)):s>0&&(d>=r&&t[a]!==o.INVISIBLE_SPACE?(s=0,l=-1,c=0,d=0,a--):(d++,c++)),a++;return s===e.length?[l,c]:[-1,0]}},56967:function(e,t,i){"use strict";i.d(t,{i18n:function(){return c}});var o=i(82758),n=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,o=i.exec(e),n=e,r=0;for(;o&&void 0!==t[r];)n=n.replace(o[0],t[r].toString()),r+=1,o=i.exec(e);return n};function c(e,t,i){if(!(0,n.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),d={},u=e=>t&&t.length?l(e,t):e,h=(0,s.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),p=(0,s.defaultLanguage)(null==i?void 0:i.language,h),f=t=>{if(!t)return;if((0,n.isString)(t[e]))return u(t[e]);let i=e.toLowerCase();if((0,n.isString)(t[i]))return u(t[i]);let o=(0,r.ucfirst)(e);if((0,n.isString)(t[o]))return u(t[o])};void 0!==o.lang[p]?d=o.lang[p]:c||(d=void 0!==o.lang[h]?o.lang[h]:o.lang.en);let m=null==i?void 0:i.i18n;if(m&&m[p]){let e=f(m[p]);if(e)return e}return f(d)||(!c&&o.lang.en&&(0,n.isString)(o.lang.en[e])&&o.lang.en[e]?u(o.lang.en[e]):c?"{"+e+"}":(o.IS_PROD,u(e)))}i.d(t,["sprintf",0,l])},59007:function(e,t,i){"use strict";i.d(t,{CamelCaseToKebabCase:function(){return s.CamelCaseToKebabCase},camelCase:function(){return o.camelCase},fuzzySearchIndex:function(){return n.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 o=i(87058),n=i(67477),r=i(56967),s=i(12475),a=i(67462),l=i(49055),c=i(36409)},12475:function(e,t,i){"use strict";i.d(t,["CamelCaseToKebabCase",0,e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),"kebabCase",0,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()])},67462:function(e,t,i){"use strict";function o(e,t={}){if("object"!=typeof e)return e+"";let i=new Set(t.excludeKeys),n=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!i.has(e)){if("object"==typeof t&&null!=t){if(n.get(t))return"[refObject]";n.set(t,!0)}return t}},t.prettify)}i.d(t,{stringify:function(){return o}})},49055:function(e,t,i){"use strict";i.d(t,{trim:function(){return n},trimChars:function(){return r},trimInv:function(){return s}});var o=i(82758);function n(e){return e.replace((0,o.SPACE_REG_EXP_END)(),"").replace((0,o.SPACE_REG_EXP_START)(),"")}function r(e,t){return e.replace(RegExp(`[${t}]+$`),"").replace(RegExp(`^[${t}]+`),"")}function s(e){return e.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,o.INVISIBLE_SPACE_REG_EXP_START)(),"")}},36409:function(e,t,i){"use strict";function o(e){return e.length?e[0].toUpperCase()+e.substring(1):""}i.d(t,{ucfirst:function(){return o}})},25726:function(e,t,i){"use strict";i.d(t,{alignElement:function(){return c},clearAlign:function(){return a},hAlignElement:function(){return s}});var o=i(22732),n=i(29960),r=i(41180);function s(e,t){t&&"normal"!==t?"center"!==t?((0,r.css)(e,"float",t),(0,r.clearCenterAlign)(e)):(0,r.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.css)(e,"float")&&-1!==["right","left"].indexOf((0,r.css)(e,"float").toString().toLowerCase())&&(0,r.css)(e,"float",""),(0,r.clearCenterAlign)(e))}function a(e){o.Dom.each(e,e=>{o.Dom.isHTMLElement(e)&&(0,r.cssInline)(e,"textAlign")&&((0,r.css)(e,"textAlign",""),((0,n.attr)(e,"style")||"").trim().length||(0,n.attr)(e,"style",null))})}let l=new Map([["justifyfull","justify"],["justifyright","right"],["justifyleft","left"],["justifycenter","center"]]);function c(e,t){if(o.Dom.isNode(t)&&o.Dom.isElement(t)){a(t);let i=l.get(e.toLowerCase());i&&(0,r.css)(t,"textAlign",i)}}},63799:function(e,t,i){"use strict";i.d(t,{loadNext:function(){return function e(t,i,o=0){return(0,n.isString)(i[o])?c(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])?d(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}}});var o=i(2748),n=i(70799),r=i(29960),s=i(66292);let a=new Map,l=e=>(t,i)=>{if(a.has(i))return a.get(i);let o=e(t,i);return a.set(i,o),o},c=l((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let a=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,s.completeUrl)(t)});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.e.one(a,"error",n).one(a,"load",i),o.Dom.append(e.od.body,a)})),d=l((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let a=e.c.element("link",{rel:"stylesheet",media:"all",crossorigin:"anonymous"});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.isInDestruct||e.e.on(a,"load",()=>i(a)).on(a,"error",n),(0,r.attr)(a,"href",(0,s.completeUrl)(t)),e.o.shadowRoot?o.Dom.append(e.o.shadowRoot,a):o.Dom.append(e.od.body,a)}));i.d(t,["alreadyLoadedList",0,a,"appendScriptAsync",0,c,"appendStyleAsync",0,d])},38837:function(e,t,i){"use strict";i.d(t,{assert:function(){return n}});class o extends Error{constructor(e){super(e),this.name="AssertionError"}}function n(e,t){if(!e)throw new o("Assertion failed: "+t)}},29960:function(e,t,i){"use strict";i.d(t,{attr:function(){return function e(t,i,l){if(!t||!(0,o.isFunction)(t.getAttribute))return null;if(!(0,r.isString)(i))return Object.keys(i).forEach(o=>{let r=i[o];(0,n.isPlainObject)(r)&&"style"===o?(0,a.css)(t,r):("className"===o&&(o="class"),e(t,o,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)}},attrRaw:function(){return l}});var o=i(23282),n=i(72430),r=i(70799),s=i(12475),a=i(41180);function l(e,t,i){if(void 0===i)return e.getAttribute(t);if(null==i){e.hasAttribute(t)&&e.removeAttribute(t);return}e.setAttribute(t,i)}},97639:function(e,t,i){"use strict";i.d(t,["browser",0,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){"use strict";var o=i(72430);let n=(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,o.isPlainObject)(l)?n(l,a):r(a)+"="+r(l))}return i.join("&")};i.d(t,["buildQuery",0,n])},66292:function(e,t,i){"use strict";var o=i(82758);i.d(t,["completeUrl",0,e=>("file:"===o.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)])},68934:function(e,t,i){"use strict";i.d(t,{ConfigDeepFlatten:function(){return function e(t){return(0,d.keys)(t,!1).reduce((i,o)=>(i[o]=(0,n.isPlainObject)(t[o])?e(t[o]):t[o],i),{})}},ConfigFlatten:function(){return u},ConfigMerge:function(){return function e(t,i){Object.keys(i).forEach(o=>{if((0,c.isUnsafeProtoKey)(o))return;let r=i[o],s=t[o];(0,n.isPlainObject)(r)&&(0,n.isPlainObject)(s)&&!(0,l.isAtom)(r)?e(s,r):t[o]=r})}},ConfigProto:function(){return function e(t,i,d=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 h={};return Object.keys(t).forEach(r=>{if((0,c.isUnsafeProtoKey)(r))return;let s=t[r],a=i?i[r]:null;if((0,n.isPlainObject)(s)&&(0,n.isPlainObject)(a)&&!(0,l.isAtom)(s)){h[r]=e(s,a,d+1);return}if(0!==d&&(0,o.isArray)(s)&&!(0,l.isAtom)(s)&&(0,o.isArray)(a)){h[r]=[...s,...a.slice(s.length)];return}h[r]=s}),Object.setPrototypeOf(h,i),h}}});var o=i(68345),n=i(72430),r=i(70799),s=i(86068),a=i(6441),l=i(97735),c=i(69175),d=i(37790);function u(e){return(0,d.keys)(e,!1).reduce((t,i)=>(t[i]=e[i],t),{})}},55877:function(e,t,i){"use strict";var o=i(82758),n=i(26049),r=i(82501);i.d(t,["convertMediaUrlToVideoEmbed",0,(e,{width:t=400,height:i=345}={})=>{if(!(0,n.isURL)(e))return e;let s=o.globalDocument.createElement("a");s.href=e,t||(t=400),i||(i=345);let a=s.protocol||"";switch(s.hostname){case"www.vimeo.com":case"vimeo.com":{let o=s.pathname.split("/").filter(Boolean),n=o.findIndex(e=>/^\d+$/.test(e));if(-1===n)return e;let r=o[n],l=o[n+1];return l&&0===n&&(r+="/"+l),'<iframe width="'+t+'" height="'+i+'" src="'+a+"//player.vimeo.com/video/"+r+'" frameborder="0" allowfullscreen></iframe>'}case"youtube.com":case"www.youtube.com":case"m.youtube.com":case"music.youtube.com":case"youtu.be":case"www.youtu.be":{let o=(s.search?(0,r.parseQuery)(s.search):{}).v||s.pathname.substring(1);return(o=o.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+t+'" height="'+i+'" src="'+a+"//www.youtube.com/embed/"+o+'" frameborder="0" allowfullscreen></iframe>':e}}return e}])},41180:function(e,t,i){"use strict";i.d(t,{css:function(){return l},cssInline:function(){return c}});var o=i(87612),n=i(72430),r=i(3760),s=i(87058),a=i(12475);function l(e,t,i,c=!1){if((0,o.isBoolean)(i)&&(c=i,i=void 0),(0,n.isPlainObject)(t)||void 0!==i){let o=(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,n.isPlainObject)(t)){let i=Object.keys(t);for(let n=0;n<i.length;n+=1)o(e,(0,s.camelCase)(i[n]),t[i[n]])}else o(e,(0,s.camelCase)(t),i);return""}let d=(0,a.kebabCase)(t),u=e.ownerDocument||document,h=!!u&&(u.defaultView||u.parentWindow),p=e.style[t],f="";return void 0!==p&&""!==p?f=p:h&&!c&&(f=h.getComputedStyle(e).getPropertyValue(d)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(f.toString())&&(f=parseInt(f.toString(),10)),(0,r.normalizeCssValue)(t,f)}function c(e,t){return e.style.getPropertyValue((0,a.kebabCase)(t))}i.d(t,["clearCenterAlign",0,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){"use strict";i.d(t,["ctrlKey",0,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){"use strict";var o=i(39955);let n=new WeakMap;i.d(t,["dataBind",0,(e,t,i)=>{let r=n.get(e);if(!r){r={},n.set(e,r);let t=null;(0,o.isViewObject)(e.j)&&(t=e.j.e),(0,o.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{n.delete(e)})}return void 0===i?r[t]:(r[t]=i,i)}])},96325:function(e,t,i){"use strict";var o=i(82758),n=i(70799);i.d(t,["defaultLanguage",0,(e,t="en")=>"auto"!==e&&(0,n.isString)(e)?e:o.globalDocument.documentElement&&o.globalDocument.documentElement.lang?o.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):t])},82760:function(e,t,i){"use strict";i.d(t,{connection:function(){return r},error:function(){return n},options:function(){return s}});var o=i(32880);function n(e){return TypeError(e)}function r(e){return new o.ConnectionError(e)}function s(e){return new o.OptionsError(e)}},93661:function(e,t,i){"use strict";function o(e="Aborted"){return new DOMException(e,"AbortError")}i.d(t,{abort:function(){return o}})},86397:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return o}});class o extends Error{constructor(e){super(e),Object.setPrototypeOf(this,o.prototype)}}},32880:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return n.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return o.abort}});var o=i(93661),n=i(86397),r=i(57865)},57865:function(e,t,i){"use strict";i.d(t,{OptionsError:function(){return o}});class o extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,o.prototype)}}},89890:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return n.ConnectionError},OptionsError:function(){return n.OptionsError},abort:function(){return n.abort},connection:function(){return o.connection},error:function(){return o.error},options:function(){return o.options}});var o=i(82760),n=i(32880)},97735:function(e,t,i){"use strict";i.d(t,{fastClone:function(){return s},isAtom:function(){return n},markAsAtomic:function(){return r}});var o=i(67462);function n(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,o.stringify)(e))}},80568:function(e,t,i){"use strict";var o=i(23282);let n=new Map;i.d(t,["getClassName",0,e=>{var t;if((0,o.isFunction)(e.className))return e.className();let i=(null==(t=e.constructor)?void 0:t.originalConstructor)||e.constructor;if(n.has(i))return n.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]:""},"keepNames",0,n])},94643:function(e,t,i){"use strict";i.d(t,{get:function(){return r}});var o=i(70799),n=i(86068);function r(e,t){if(!(0,o.isString)(e)||!e.length)return null;let i=e.split("."),r=t;try{for(let e of i){if((0,n.isVoid)(r[e]))return null;r=r[e]}}catch(e){return null}return(0,n.isVoid)(r)?null:r}},38420:function(e,t,i){"use strict";i.d(t,["humanSizeToBytes",0,e=>{if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);let t=e.substr(-2,2).toUpperCase(),i=["KB","MB","GB","TB"],o=parseFloat(e.substr(0,e.length-2));return -1!==i.indexOf(t)?o*Math.pow(1024,i.indexOf(t)+1):parseInt(e,10)}])},43555:function(e,t,i){"use strict";i.d(t,{$$:function(){return E.$$},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigMerge:function(){return d.ConfigMerge},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return g.ConnectionError},LimitedStack:function(){return j.LimitedStack},OptionsError:function(){return g.OptionsError},UNSAFE_PROTO_KEYS:function(){return _.UNSAFE_PROTO_KEYS},abort:function(){return g.abort},alignElement:function(){return o.alignElement},alreadyLoadedList:function(){return n.alreadyLoadedList},appendScriptAsync:function(){return n.appendScriptAsync},appendStyleAsync:function(){return n.appendStyleAsync},assert:function(){return r.assert},attr:function(){return s.attr},attrRaw:function(){return s.attrRaw},browser:function(){return a.browser},buildQuery:function(){return l.buildQuery},call:function(){return D.call},callPromise:function(){return D.callPromise},callThis:function(){return D.callThis},clearAlign:function(){return o.clearAlign},clearCenterAlign:function(){return h.clearCenterAlign},cns:function(){return k.cns},completeUrl:function(){return c.completeUrl},connection:function(){return g.connection},convertMediaUrlToVideoEmbed:function(){return u.convertMediaUrlToVideoEmbed},css:function(){return h.css},cssInline:function(){return h.cssInline},cssPath:function(){return E.cssPath},ctrlKey:function(){return p.ctrlKey},dataBind:function(){return f.dataBind},defaultLanguage:function(){return m.defaultLanguage},error:function(){return g.error},fastClone:function(){return b.fastClone},get:function(){return v.get},getClassName:function(){return y.getClassName},getDataTransfer:function(){return D.getDataTransfer},getPropertyDescriptor:function(){return D.getPropertyDescriptor},getXPathByElement:function(){return E.getXPathByElement},hAlignElement:function(){return o.hAlignElement},humanSizeToBytes:function(){return w.humanSizeToBytes},inView:function(){return I.inView},isAtom:function(){return b.isAtom},isUnsafeProtoKey:function(){return _.isUnsafeProtoKey},keepNames:function(){return y.keepNames},keys:function(){return D.keys},loadImage:function(){return D.loadImage},loadNext:function(){return n.loadNext},loadNextStyle:function(){return n.loadNextStyle},markAsAtomic:function(){return b.markAsAtomic},markDeprecated:function(){return k.markDeprecated},markOwner:function(){return D.markOwner},memorizeExec:function(){return D.memorizeExec},options:function(){return g.options},parseQuery:function(){return C.parseQuery},previewBox:function(){return S.previewBox},refs:function(){return E.refs},reset:function(){return x.reset},resolveElement:function(){return E.resolveElement},scrollIntoViewIfNeeded:function(){return I.scrollIntoViewIfNeeded},set:function(){return T.set}});var o=i(25726),n=i(63799),r=i(38837),s=i(29960),a=i(97639),l=i(44710),c=i(66292),d=i(68934),u=i(55877),h=i(41180),p=i(15456),f=i(86583),m=i(96325),g=i(89890),b=i(97735),v=i(94643),y=i(80568),w=i(38420),_=i(69175),k=i(95942),C=i(82501),S=i(11628),x=i(58844),I=i(26395),E=i(76078),T=i(3703),j=i(50535),D=i(37790)},69175:function(e,t,i){"use strict";i.d(t,{isUnsafeProtoKey:function(){return n}});let o=["__proto__","constructor","prototype"];function n(e){return -1!==o.indexOf(e)}i.d(t,["UNSAFE_PROTO_KEYS",0,o])},95942:function(e,t,i){"use strict";i.d(t,{markDeprecated:function(){return n}});let o=console;function n(e,t=[""],i=null){return(...n)=>(o.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...n))}i.d(t,["cns",0,o])},82501:function(e,t,i){"use strict";i.d(t,["parseQuery",0,e=>{let t={},i=e.substring(1).split("&");for(let e=0;e<i.length;e+=1){let o=i[e].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return t}])},11628:function(e,t,i){"use strict";i.d(t,{previewBox:function(){return a}});var o=i(2748),n=i(70799),r=i(29960),s=i(41180);function a(e,t,i="px",l=null){let c=[],d=function(e,t){let i=[],n=[];o.Dom.each(e.editor,e=>{o.Dom.isTag(e,"img")&&n.push(e)});try{n.forEach(n=>{let s=[(0,r.attr)(n,"width"),(0,r.attr)(n,"height"),(0,r.attr)(n,"src")];(0,r.attr)(n,{width:n.offsetWidth+t,height:n.offsetHeight+t});let a=e.createInside.a();o.Dom.append(e.ed.body,a),(0,r.attr)(a,"href",(0,r.attr)(n,"src")||""),(0,r.attr)(n,"src",a.href),o.Dom.safeRemove(a),i.push(()=>{(0,r.attr)(n,{src:s[2],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 d=e.c.div("jodit__preview-box jodit-context");l&&o.Dom.append(l,d),(0,s.css)(d,{position:"relative",padding:16});let u=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}),o.Dom.append(d,t);let i=t.contentWindow;if(i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),d=i.document.body,"function"==typeof ResizeObserver)){let o=!1,n=i.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(n),(0,s.css)(t,"height",n.offsetHeight+20),e.async.requestAnimationFrame(()=>{o||r.observe(n)})},100)),a=()=>{o=!0,r.unobserve(n),r.disconnect(),e.e.off("beforeDestruct",a)};c.push(a),e.e.on("beforeDestruct",a)}}else(0,s.css)(d,{minWidth:1024,minHeight:600,border:0});let h=(t,i)=>{let s=(0,n.isString)(i)?e.c.div():i;(0,n.isString)(i)&&(s.innerHTML=i);for(let e=0;e<s.childNodes.length;e+=1){let i=s.childNodes[e];if(o.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].name,i.attributes[t].value);0===i.childNodes.length||o.Dom.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(e.textContent=i.textContent):i.innerHTML&&(e.innerHTML=i.innerHTML):h(e,i);try{o.Dom.append(t,e)}catch(e){}}else try{o.Dom.append(t,i.cloneNode(!0))}catch(e){}}};return h(d,u),e.e.fire("afterPreviewBox",d),[d,()=>{c.forEach(e=>e())}]}finally{d.forEach(e=>e())}}},58844:function(e,t,i){"use strict";i.d(t,{reset:function(){return a}});var o=i(82758),n=i(23282),r=i(94643);let s={};function a(e){var t,i;if(!(e in s)){let i=o.globalDocument.createElement("iframe");try{if(i.src="about:blank",o.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,n.isFunction)(t)&&(s[e]=t.bind(a))}catch(e){if(!o.IS_PROD)throw e}finally{null==(t=i.parentNode)||t.removeChild(i)}}return null!=(i=s[e])?i:null}},26395:function(e,t,i){"use strict";i.d(t,{inView:function(){return n},scrollIntoViewIfNeeded:function(){return r}});var o=i(2748);function n(e,t,i){let o=e.getBoundingClientRect(),n=e,r=o.top,s=o.height;for(;n&&n!==t&&n.parentNode;)if(r+s>(o=(n=n.parentNode).getBoundingClientRect()).bottom+1&&r>o.top||r+s<=o.top)return!1;return(r+s<=(i.documentElement&&i.documentElement.clientHeight||0)+1||r<=0)&&r+s>=0}function r(e,t,i){if(o.Dom.isHTMLElement(e)&&!n(e,t,i)){if(t.clientHeight!==t.scrollHeight){let i=e.offsetTop+e.offsetHeight-t.clientHeight;t.scrollTop=t.scrollTop<i?i:e.offsetTop}n(e,t,i)||e.scrollIntoView({block:"nearest"})}}},76078:function(e,t,i){"use strict";i.d(t,{$$:function(){return u},resolveElement:function(){return p}});var o=i(82758),n=i(2748),r=i(4510),s=i(70799),a=i(87058),l=i(29960),c=i(89890);let d=1;function u(e,t){let i;if(!o.IS_ES_NEXT&&/:scope/.test(e)&&o.IS_IE&&!(t&&t.nodeType===Node.DOCUMENT_NODE)){let o=t.id,n=o||"_selector_id_"+(Math.random()+"").slice(2)+ ++d;e=e.replace(/:scope/g,"#"+n),o||t.setAttribute("id",n),i=t.parentNode.querySelectorAll(e),o||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)+"]":"")};function p(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||!n.Dom.isElement(i)||!i.cloneNode)throw(0,c.error)('Element "'+e+'" should be string or HTMLElement instance');return i}i.d(t,["cssPath",0,e=>{if(!n.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,o=1;do(t=t.previousElementSibling)&&t.nodeName.toLowerCase()===e&&o++;while(t)e+=":nth-of-type("+o+")"}t.unshift(e),i=i.parentNode}return t.join(" > ")},"getXPathByElement",0,h,"refs",0,e=>{"container"in e&&(e=e.container);let t={};return n.Dom.each(e,e=>{if(n.Dom.isElement(e)&&(e.hasAttribute("ref")||e.hasAttribute("data-ref"))){let i=(0,l.attr)(e,"-ref");i&&(0,s.isString)(i)&&(t[(0,a.camelCase)(i)]=e,t[i]=e)}}),t}])},3703:function(e,t,i){"use strict";i.d(t,{set:function(){return l}});var o=i(68345),n=i(29807),r=i(72430),s=i(70799),a=i(69175);function l(e,t,i){if(!(0,s.isString)(e)||!e.length)return;let l=e.split(".");if(l.some(a.isUnsafeProtoKey))return;let c=i;for(let e=0;e<l.length-1;e+=1){let t=l[e];(0,o.isArray)(c[t])||(0,r.isPlainObject)(c[t])||(c[t]=(0,n.isNumeric)(l[e+1])?[]:{}),c=c[t]}c&&(c[l[l.length-1]]=t)}},50535:function(e,t,i){"use strict";i.d(t,{LimitedStack:function(){return o}});class o{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){"use strict";i.d(t,{call:function(){return a},callPromise:function(){return d},callThis:function(){return l},getPropertyDescriptor:function(){return u},markOwner:function(){return c}});var o=i(14773),n=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 d(e,t){return(0,o.isPromise)(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}function u(e,t){let i;do i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!i&&e)return i}i.d(t,["getDataTransfer",0,e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}},"keys",0,(e,t=!0)=>{if(t)return Object.keys(e);let i=[];for(let t in e)i.push(t);return i},"loadImage",0,(e,t)=>t.async.promise((i,o)=>{let n=new Image,r=()=>{t.e.off(n),null==o||o()},s=()=>{t.e.off(n),i(n)};t.e.one(n,"load",s).one(n,"error",r).one(n,"abort",r),n.src=e,n.complete&&s()}),"memorizeExec",0,(e,t,{control:i},o)=>{var r;let a="button"+i.command,l=null!=(r=i.args&&i.args[0])?r:(0,s.dataBind)(e,a);if((0,n.isVoid)(l))return!1;(0,s.dataBind)(e,a,l),o&&(l=o(l)),e.execCommand(i.command,!1,null!=l?l:void 0)}])},31359:function(e,t,i){"use strict";i.d(t,{init:function(){return s}});var o=i(82758),n=i(60132),r=i(14041);function s(e,t,i,s,a,l,c){if((0,n.isInitable)(s))try{s.init(e)}catch(e){if(!o.IS_PROD)throw e}a.set(t,s),l.delete(t),s.hasStyle&&(0,r.loadStyle)(e,t).catch(e=>{o.IS_PROD}),s.styles&&(c(e,t,"style").innerHTML=s.styles)}},14041:function(e,t,i){"use strict";i.d(t,{loadExtras:function(){return d},loadStyle:function(){return l}});var o=i(82758),n=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,n.kebabCase)(t);let o=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+o+"."+(i?"js":"css")}function d(e,t,i,n){try{let o=i.filter(t=>!e.has((0,s.normalizeName)(t.name)));o.length&&o.map(e=>{let i=e.url||c(t,e.name,!0);return(0,r.appendScriptAsync)(t,i).then(n).catch(()=>null)})}catch(e){if(!o.IS_PROD)throw e}}},48591:function(e,t,i){"use strict";i.d(t,{makeInstance:function(){return r}});var o=i(82758),n=i(23282);function r(e,t){try{try{return(0,n.isFunction)(t)?new t(e):t}catch(i){if((0,n.isFunction)(t)&&!t.prototype)return t(e)}}catch(e){if(!o.IS_PROD)throw e}return null}},89672:function(e,t,i){"use strict";i.d(t,{normalizeName:function(){return n}});var o=i(12475);function n(e){return(0,o.kebabCase)(e).toLowerCase()}},50911:function(e,t,i){"use strict";i.d(t,{Plugin:function(){return o.Plugin}});var o=i(20356);i(41876)},41876:function(e,t,i){"use strict";i.d(t,{PluginSystem:function(){return p}});var o=i(82758),n=i(57012),r=i(46559),s=i(68345),a=i(60132),l=i(70799),c=i(31359),d=i(14041),u=i(48591),h=i(89672);class p{get size(){return this.__items.size}add(e,t){this.__items.set((0,h.normalizeName)(e),t),n.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,o)=>{(!e||e.has(o))&&t.push([o,i])}),t}__init(e){let{extraList:t,disableList:i,filter:n}={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},p=new Map,f={},m=new Set;e.__plugins=f;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(n).forEach(([o,n])=>{if(i.has(o)||p.has(o))return;let r=null==n?void 0:n.requires;if(r&&(0,s.isArray)(r)&&r.length){if(r.some(e=>i.has(e)))return;if(!r.every(e=>p.has(e)))return void m.add(o)}t=!0;let a=(0,u.makeInstance)(e,n);if(!a){p.set(o,null),m.delete(o);return}(0,c.init)(e,o,n,a,p,m,this.opts.getContainer),f[o]=a}),t&&(e.e.fire("updatePlugins"),g())};t&&t.length&&(0,d.loadExtras)(this.__items,e,t,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(f).forEach(t=>{let i=f[t];(0,a.isDestructable)(i)&&i.destruct(e),delete f[t]}),delete e.__plugins}),o.IS_PROD||m.size}wait(e){return new Promise(t=>{if(this.get(e))return t();let i=()=>{t(),n.eventEmitter.off(`plugin:${e}:ready`,i)};n.eventEmitter.on(`plugin:${e}:ready`,i)})}constructor(e){this.opts=e,this.__items=new Map}}},20356:function(e,t,i){"use strict";i.d(t,{Plugin:function(){return a}});var o=i(91907),n=i(65478),r=i(19306),s=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class a extends o.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(o.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(o.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([n.autobind],a.prototype,"__afterPluginSystemInit",null),s([n.autobind],a.prototype,"__afterInit",null),s([n.autobind],a.prototype,"__beforeDestruct",null)},54079:function(e,t,i){"use strict";i.d(t,{Ajax:function(){return d}});var o=i(8884),n=i(82758),r=i(45219),s=i(21537),a=i(89890),l=i(6441);i(57459);var c=i(98582);class d{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 n.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(o,n)=>{var r;let l=()=>{this.__isFulfilled=!0,n(a.connection("Connection error"))},d=()=>{this.__isFulfilled=!0,o(new c.Response(i,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=d,e.onabort=()=>{this.__isFulfilled=!0,n(a.abort("Abort connection"))},e.onerror=l,e.ontimeout=l,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,i;let o=0;e.lengthComputable&&(o=e.loaded/e.total*100),null==(i=(t=this.options).onProgress)||i.call(t,o)},e.onreadystatechange=()=>{var i,o;null==(o=(i=this.options).onProgress)||o.call(i,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?d():e.statusText&&(this.__isFulfilled=!0,n(a.connection(e.statusText))))},e.withCredentials=null!=(r=t.withCredentials)&&r;let{url:u,data:h,method:p}=i;e.open(p,u,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:f}=t;(0,s.isFunction)(f)&&(f=await f.call(this)),f&&e.setRequestHeader&&Object.keys(f).forEach(t=>{e.setRequestHeader(t,f[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,o=this.prepareRequest(),n=0,r="",l=[],c=null,d=!1,u=null,h=()=>{if(c){let e=c;c=null,e()}},p=e=>{var i;let o=t.responseText;r+=o.substring(n),n=o.length;let s=r.split(`
19
19
 
20
20
  `);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(`
@@ -61,7 +61,7 @@
61
61
  loading="lazy"
62
62
  />
63
63
  ${r||s||a?c:""}
64
- </a>`},ajax:{...a.Config.prototype.defaultAjaxOptions,url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData:e=>e,process:e=>e},create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},a.Config.prototype.controls.filebrowser={upload:{icon:"plus",tooltip:"Upload file",isInput:!0,isDisabled:e=>!e.dataProvider.canI("FileUpload"),getContent(e,t){let i=new s.UIFileInput(e,{tooltip:t.control.tooltip,onlyImages:e.state.onlyImages});return e.e.fire("bindUploader.filebrowser",i.container),i.container}},remove:{icon:"bin",tooltip:"Remove file",isDisabled:e=>!e.state.activeElements.length||!e.dataProvider.canI("FileRemove"),exec(e){e.e.fire("fileRemove.filebrowser")}},update:{tooltip:"Update file list",exec(e){e.e.fire("update.filebrowser")}},select:{tooltip:"Select file",icon:"check",isDisabled:e=>!e.state.activeElements.length,exec(e){e.e.fire("select.filebrowser")}},edit:{tooltip:"Edit image",icon:"pencil",isDisabled(e){let t=e.state.activeElements;return 1!==t.length||!t[0].isImage||!(e.dataProvider.canI("ImageCrop")||e.dataProvider.canI("ImageResize"))},exec(e){e.e.fire("edit.filebrowser")}},tiles:{tooltip:"Tiles view",icon:"th",isActive:e=>"tiles"===e.state.view,exec(e){e.e.fire("view.filebrowser","tiles")}},list:{tooltip:"List view",icon:"th-list",isActive:e=>"list"===e.state.view,exec(e){e.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent(e,t){let i=o.Dom.first(t.container,e=>o.Dom.isHTMLElement(e)&&e.classList.contains("jodit-input"));if(i)return i;let n=e.c.element("input",{class:"jodit-input",placeholder:e.i18n("Filter")});return n.value=e.state.filterWord,e.e.on(n,"keydown mousedown",e.async.debounce(()=>{e.e.fire("filter.filebrowser",n.value)},e.defaultTimeout)),n}},sort:{isInput:!0,getContent(e){let t=e.c.fromHTML(`<select class="jodit-input jodit-select"><option value="changed-asc">${e.i18n("Sort by changed")} (⬆)</option><option value="changed-desc">${e.i18n("Sort by changed")} (⬇)</option><option value="name-asc">${e.i18n("Sort by name")} (⬆)</option><option value="name-desc">${e.i18n("Sort by name")} (⬇)</option><option value="size-asc">${e.i18n("Sort by size")} (⬆)</option><option value="size-desc">${e.i18n("Sort by size")} (⬇)</option></select>`);return t.value=e.state.sortBy,e.e.on("sort.filebrowser",e=>{t.value!==e&&(t.value=e)}).on(t,"change",()=>{e.e.fire("sort.filebrowser",t.value)}),t}}}},11787:function(e,t,i){"use strict";i.d(t,{default:function(){return f}});var o=i(82758),n=i(45219),r=i(23282),s=i(70091),a=i(68934),l=i(89890),c=i(3703),d=i(54079),u=i(159),h=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let p=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);class f{get o(){return this.options}get(e){let t=this.__ajaxInstances;if(t.has(e)){let i=t.get(e);null==i||i.abort(),t.delete(e)}let i=(0,a.ConfigProto)(void 0!==this.options[e]?this.options[e]:{},(0,a.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));i.prepareData&&(i.data=i.prepareData.call(this,i.data));let o=new d.Ajax(i);t.set(e,o);let n=o.send();return n.finally(()=>{o.destruct(),t.delete(e),this.progressHandler(100)}).catch(()=>null),n.then(e=>e.json()).then(e=>{if(e&&!this.isSuccess(e))throw Error(this.getMessage(e));return e})}onProgress(e){this.progressHandler=e}async permissions(e,t){return this.o.permissions&&(this.o.permissions.data.path=e,this.o.permissions.data.source=t,this.o.permissions.url)?this.get("permissions").then(e=>{if(this.parent.isInDestruct)throw(0,l.abort)();let t=this.o.permissions.process;if(t||(t=this.o.ajax.process),t){let i=t.call(self,e);i.data.permissions&&(this.parent.events.fire(this,"changePermissions",this.__currentPermissions,i.data.permissions),this.__currentPermissions=i.data.permissions)}return this.__currentPermissions}):null}canI(e){let t="allow"+e;if(!o.IS_PROD&&!p.has(t))throw(0,l.error)("Wrong action "+e);let i=this.o.permissionsPresets[t];return void 0!==i?i:null==this.__currentPermissions||void 0===this.__currentPermissions[t]||this.__currentPermissions[t]}__items(e,t,i,o){let n=this.options;return n.items?(n.items.data.path=e,n.items.data.source=t,n.items.data.mods=i,this.get("items").then(e=>{let t=this.o.items.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),o(e)})):Promise.reject(Error("Set Items api options"))}items(e,t,i={}){return this.__items(e,t,i,e=>this.__generateItemsList(e.data.sources,i))}itemsEx(e,t,i={}){return this.__items(e,t,i,e=>({items:this.__generateItemsList(e.data.sources,i),loadedTotal:e.data.sources.reduce((e,t)=>e+t.files.length,0)}))}__generateItemsList(e,t={}){let i=[],o=e=>{var i;return!(null==(i=t.filterWord)?void 0:i.length)||void 0===this.o.filter||this.o.filter(e,t.filterWord)};return e.forEach(e=>{if(e.files&&e.files.length){let{sort:n}=this.o;(0,r.isFunction)(n)&&t.sortBy&&e.files.sort((e,i)=>n(e,i,t.sortBy)),e.files.forEach(n=>{o(n)&&("folder"===n.type||!t.onlyImages||void 0===n.isImage||n.isImage)&&i.push(u.FileBrowserItem.create({...n,sourceName:e.name,source:e}))})}}),i}async tree(e,t){return(e=(0,s.normalizeRelativePath)(e),this.o.folder)?(await this.permissions(e,t),this.o.folder.data.path=e,this.o.folder.data.source=t,this.get("folder").then(e=>{let t=this.o.folder.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),e.data.sources})):Promise.reject(Error("Set Folder Api options"))}getPathByUrl(e){return(0,c.set)("options.getLocalFileByUrl.data.url",e,this),this.get("getLocalFileByUrl").then(e=>{if(this.isSuccess(e))return e.data;throw(0,l.error)(this.getMessage(e))})}createFolder(e,t,i){let{create:o}=this.o;if(!o)throw(0,l.error)("Set Create api options");return o.data.source=i,o.data.path=t,o.data.name=e,this.get("create").then(e=>{if(this.isSuccess(e))return!0;throw(0,l.error)(this.getMessage(e))})}move(e,t,i,o){let n=o?"fileMove":"folderMove",r=this.options[n];if(!r)throw(0,l.error)("Set Move api options");return r.data.from=e,r.data.path=t,r.data.source=i,this.get(n).then(e=>{if(this.isSuccess(e))return!0;throw(0,l.error)(this.getMessage(e))})}__remove(e,t,i,o){let n=this.o[e];if(!n)throw(0,l.error)(`Set "${e}" api options`);return n.data.path=t,n.data.name=i,n.data.source=o,this.get(e).then(e=>(n.process&&(e=n.process.call(this,e)),this.getMessage(e)))}fileRemove(e,t,i){return this.__remove("fileRemove",e,t,i)}folderRemove(e,t,i){return this.__remove("folderRemove",e,t,i)}__rename(e,t,i,o,n){let r=this.o[e];if(!r)throw(0,l.error)(`Set "${e}" api options`);return r.data.path=t,r.data.name=i,r.data.newname=o,r.data.source=n,this.get(e).then(e=>(r.process&&(e=r.process.call(self,e)),this.getMessage(e)))}folderRename(e,t,i,o){return this.__rename("folderRename",e,t,i,o)}fileRename(e,t,i,o){return this.__rename("fileRename",e,t,i,o)}__changeImage(e,t,i,o,n,r){this.o[e]||(this.o[e]={data:{}});let s=this.o[e];return void 0===s.data&&(s.data={action:e}),s.data.newname=n||o,r&&(s.data.box=r),s.data.path=t,s.data.name=o,s.data.source=i,this.get(e).then(e=>e.data.newPath||!0)}crop(e,t,i,o,n){return this.__changeImage("crop",e,t,i,o,n)}resize(e,t,i,o,n){return this.__changeImage("resize",e,t,i,o,n)}getMessage(e){return this.options.getMessage(e)}isSuccess(e){return this.options.isSuccess(e)}destruct(){this.__ajaxInstances.forEach(e=>e.destruct()),this.__ajaxInstances.clear()}constructor(e,t){this.parent=e,this.options=t,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=e=>{}}}h([n.autobind],f.prototype,"onProgress",null),h([n.autobind],f.prototype,"permissions",null),h([n.autobind],f.prototype,"canI",null),h([n.autobind],f.prototype,"items",null),h([n.autobind],f.prototype,"itemsEx",null),h([n.autobind],f.prototype,"tree",null),h([n.autobind],f.prototype,"getPathByUrl",null),h([n.autobind],f.prototype,"createFolder",null),h([n.autobind],f.prototype,"move",null),h([n.autobind],f.prototype,"fileRemove",null),h([n.autobind],f.prototype,"folderRemove",null),h([n.autobind],f.prototype,"folderRename",null),h([n.autobind],f.prototype,"fileRename",null),h([n.autobind],f.prototype,"crop",null),h([n.autobind],f.prototype,"resize",null),h([n.autobind],f.prototype,"getMessage",null),h([n.autobind],f.prototype,"isSuccess",null),h([n.autobind],f.prototype,"destruct",null),i.d(t,["DEFAULT_SOURCE_NAME",0,"default"])},63399:function(e,t,i){"use strict";i.d(t,{makeContextMenu:function(){return s},makeDataProvider:function(){return r}});var o=i(80870),n=i(11787);function r(e,t){return new n.default(e,t)}function s(e){return new o.ContextMenu(e)}},44450:function(e,t,i){"use strict";function o(e,t,i){return e.dataProvider.fileRemove(e.state.currentPath,t,i).then(i=>{e.status(i||e.i18n('File "%s" was deleted',t),!0)}).catch(e.status)}i.d(t,{deleteFile:function(){return o}})},30465:function(e,t,i){"use strict";function o(e){return e.files.setMod("active",!0),e.files.setMod("loading",!0),e.dataProvider.items(e.state.currentPath,e.state.currentSource,{sortBy:e.state.sortBy,onlyImages:e.state.onlyImages,filterWord:e.state.filterWord}).then(t=>{t&&(e.state.elements=t,e.state.activeElements=[])}).catch(e.status).finally(()=>e.files.setMod("loading",!1))}i.d(t,{loadItems:function(){return o}})},20201:function(e,t,i){"use strict";i.d(t,{loadTree:function(){return r}});var o=i(22732),n=i(30465);async function r(e){e.tree.setMod("active",!0),o.Dom.detach(e.tree.container);let t=(0,n.loadItems)(e);return e.o.showFoldersPanel?(e.tree.setMod("loading",!0),Promise.all([e.dataProvider.tree(e.state.currentPath,e.state.currentSource).then(t=>{e.state.sources=t}).catch(e.status).finally(()=>e.tree.setMod("loading",!1)),t])):(e.tree.setMod("active",!1),t)}},75330:function(e,t,i){"use strict";i.d(t,{FileBrowser:function(){return S}});var o=i(91907),n=i(82758),r=i(65478),s=i(37133),a=i(2748),l=i(3827),c=i(21537),d=i(41180),u=i(12081),h=i(70231),p=i(84075),f=i(6441);i(61251);var m=i(30465),g=i(20201),b=i(73948),v=i(33281),y=i(94538),w=i(11787),_=i(63399),k=i(8172),C=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let S=class e extends p.ViewWithToolbar{className(){return"FileBrowser"}get dataProvider(){return(0,_.makeDataProvider)(this,this.options)}onSelect(e){return()=>{if(this.state.activeElements.length){let t=[],i=[];this.state.activeElements.forEach(e=>{let o=e.fileURL;o&&(t.push(o),i.push(e.isImage||!1))}),this.close(),(0,c.isFunction)(e)&&e({baseurl:"",files:t,isImages:i}),this.close()}return!1}}get _dialog(){var e;let t=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:null!=(e=this.o.headerButtons)?e:["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach(e=>t.events.on(t,e,()=>this.e.fire(e))),t.setSize(this.o.width,this.o.height),t}get storage(){return u.Storage.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==(0,d.cssInline)(this.browser,"display")}status(e,t){!e||(0,c.isAbortError)(e)||((0,c.isString)(e)||(e=e.message),(0,c.isString)(e)&&(0,c.trim)(e).length&&this.message.message(e,t?"success":"error",this.o.howLongShowMsg))}open(e=this.o.defaultCallback,t=!1){return this.state.onlyImages=t,this.async.promise((t,i)=>{var o;if(!this.o.items||!this.o.items.url)throw(0,c.error)("Need set options.filebrowser.ajax.url");let r=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(e)).on(this.files.container,"touchstart",()=>{let t=new Date().getTime();t-r<n.EMULATE_DBLCLICK_TIMEOUT&&this.onSelect(e)(),r=t}).off("select.filebrowser").on("select.filebrowser",this.onSelect(e));let s=this.c.div();null==(o=this.toolbar)||o.appendTo(s),this.__updateToolbarButtons(),this._dialog.open(this.browser,s),this.e.fire("sort.filebrowser",this.state.sortBy),(0,g.loadTree)(this).then(t,i).finally(()=>{var e;this.isInDestruct||null==(e=this===null||void 0===this?void 0:this.e)||e.fire("fileBrowserReady.filebrowser")})}).catch(e=>{if(!(0,c.isAbortError)(e)&&!n.IS_PROD)throw e})}__getButtons(){var e;return(null!=(e=this.o.buttons)?e:[]).filter(e=>{if(!(0,c.isString)(e))return!0;switch(e){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0})}initUploader(e){var t;let i=this,o=null==(t=null==e?void 0:e.options)?void 0:t.uploader,n=(0,c.ConfigProto)(o||{},f.Config.defaultOptions.uploader),r=()=>(0,m.loadItems)(this);i.uploader=i.getInstance("Uploader",n),i.uploader.setPath(i.state.currentPath).setSource(i.state.currentSource).bind(i.browser,r,i.errorHandler),this.state.on(["change.currentPath","change.currentSource"],()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)}),i.e.on("bindUploader.filebrowser",e=>{i.uploader.bind(e,r,i.errorHandler)})}destruct(){var e;!this.isInDestruct&&(null==(e=(0,r.cached)(this,"_dialog"))||e.destruct(),super.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}__updateToolbarButtons(){var e;let t=this.__getButtons();!function(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}(this.__prevButtons,t)&&(this.__prevButtons=t,null==(e=this.toolbar)||e.build(t))}constructor(e){super(e),this.browser=this.c.div(this.componentName),this.status_line=this.c.div(this.getFullElName("status")),this.tree=new k.FileBrowserTree(this),this.files=new k.FileBrowserFiles(this),this.state=(0,l.observable)({currentPath:"",currentSource:w.DEFAULT_SOURCE_NAME,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=e=>{(0,c.isAbortError)(e)||(e instanceof Error?this.status(this.i18n(e.message)):this.status(this.dataProvider.getMessage(e)))},this.close=()=>{this._dialog.close()},this.__prevButtons=[],this.attachEvents(e),this.options=(0,c.ConfigProto)(e||{},f.Config.defaultOptions.filebrowser),this.browser.component=this,this.container=this.browser,this.o.showFoldersPanel&&a.Dom.append(this.browser,this.tree.container),a.Dom.append(this.browser,this.files.container),a.Dom.append(this.browser,this.status_line),v.selfListeners.call(this),b.nativeListeners.call(this),y.stateListeners.call(this),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(e=>{null!=this.options[e]&&(this.options[e]=(0,c.ConfigProto)(this.options[e],this.o.ajax))});let{storeView:t,storeSortBy:i,storeLastOpenedFolder:n}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},r=t&&this.storage.get("view");r&&null==this.o.view?this.state.view="list"===r?"list":"tiles":this.state.view="list"===this.o.view?"list":"tiles",this.files.setMod("view",this.state.view);let s=i&&this.storage.get("sortBy");if(s){let e=s.split("-");this.state.sortBy=["changed","name","size"].includes(e[0])?s:"changed-desc"}else this.state.sortBy=this.o.sortBy||"changed-desc";if(n){let e=this.storage.get("currentPath"),t=this.storage.get("currentSource");this.state.currentPath=null!=e?e:"",this.state.currentSource=null!=t?t:""}this.initUploader(this),this.setStatus(o.STATUSES.ready)}};C([r.cache],S.prototype,"dataProvider",null),C([r.cache],S.prototype,"_dialog",null),C([r.cache],S.prototype,"storage",null),C([r.autobind],S.prototype,"status",null),C([r.autobind],S.prototype,"open",null),C([(0,s.watch)("dataProvider:changePermissions")],S.prototype,"__updateToolbarButtons",null),S=C([(0,r.derive)(h.Dlgs)],S)},78513:function(e,t,i){"use strict";i.d(t,{FileBrowser:function(){return o.FileBrowser}});var o=i(75330)},73948:function(e,t,i){"use strict";i.d(t,{nativeListeners:function(){return c}});var o=i(29960),n=i(15456),r=i(41457),s=i(32118),a=i(21735),l=i(20201);function c(){let e=!1,t=(0,s.elementsMap)(this),i=this;i.e.on(i.tree.container,"dragstart",t=>{let o=(0,a.getItem)(t.target,i.container);o&&i.o.moveFolder&&(e=o)}).on(i.tree.container,"drop",t=>{if((i.o.moveFile||i.o.moveFolder)&&e){let n=(0,o.attr)(e,"-path")||"";if(!i.o.moveFolder&&e.classList.contains(this.tree.getFullElName("item"))||e.classList.contains(this.files.getFullElName("item"))&&(n+=(0,o.attr)(e,"-name"),!i.o.moveFile))return!1;let r=(0,a.getItem)(t.target,i.container);r&&(i.dataProvider.move(n,(0,o.attr)(r,"-path")||"",(0,o.attr)(r,"-source")||"",e.classList.contains(this.files.getFullElName("item"))).then(()=>(0,l.loadTree)(this)).catch(i.status),e=!1)}}).on(i.files.container,"contextmenu",(0,r.default)(i)).on(i.files.container,"click",e=>{(0,n.ctrlKey)(e)||(this.state.activeElements=[])}).on(i.files.container,"click",e=>{let o=(0,a.getItem)(e.target,i.container);if(!o)return;let r=(0,a.elementToItem)(o,t);if(r)return(0,n.ctrlKey)(e)?i.state.activeElements=[...i.state.activeElements,r]:i.state.activeElements=[r],e.stopPropagation(),!1}).on(i.files.container,"dragstart",t=>{if(i.o.moveFile){let o=(0,a.getItem)(t.target,i.container);o&&(e=o)}}).on(i.container,"drop",e=>e.preventDefault())}},33281:function(e,t,i){"use strict";i.d(t,{selfListeners:function(){return d}});var o=i(21537),n=i(27613),r=i(11787),s=i(44450),a=i(30465),l=i(20201),c=i(50050);function d(){let e=this.state,t=this.dataProvider,i=this;i.e.on("view.filebrowser",t=>{t!==e.view&&(e.view=t)}).on("sort.filebrowser",t=>{t!==e.sortBy&&(e.sortBy=t,(0,a.loadItems)(i))}).on("filter.filebrowser",t=>{t!==e.filterWord&&(e.filterWord=t,(0,a.loadItems)(i))}).on("openFolder.filebrowser",e=>{let t;t=".."===e.name?e.path.split("/").filter(e=>e.length).slice(0,-1).join("/"):(0,o.normalizePath)(e.path,e.name),i.state.currentPath=t,i.state.currentSource="."===e.name?r.DEFAULT_SOURCE_NAME:e.source}).on("removeFolder.filebrowser",e=>{i.confirm("Are you sure?","Delete",o=>{o&&t.folderRemove(e.path,e.name,e.source).then(e=>(i.status(e,!0),(0,l.loadTree)(i))).catch(i.status)})}).on("renameFolder.filebrowser",e=>{i.prompt("Enter new name","Rename",o=>{if(!(0,n.isValidName)(o))return i.status(i.i18n("Enter new name")),!1;t.folderRename(e.path,e.name,o,e.source).then(e=>(i.state.activeElements=[],i.status(e,!0),(0,l.loadTree)(i))).catch(i.status)},"type name",e.name)}).on("addFolder.filebrowser",e=>{i.prompt("Enter Directory name","Create directory",o=>{t.createFolder(o,e.path,e.source).then(()=>(0,l.loadTree)(i)).catch(i.status)},"type dir name")}).on("fileRemove.filebrowser",()=>{i.state.activeElements.length&&i.confirm("Are you sure?","",e=>{if(e){let e=[];i.state.activeElements.forEach(t=>{e.push((0,s.deleteFile)(i,t.file||t.name||"",t.sourceName))}),i.state.activeElements=[],Promise.all(e).then(()=>(0,l.loadTree)(i).catch(i.status),i.status)}})}).on("edit.filebrowser",()=>{if(1===i.state.activeElements.length){let[e]=this.state.activeElements;c.openImageEditor.call(i,e.fileURL,e.file||"",e.path,e.sourceName)}}).on("fileRename.filebrowser",(e,o,r)=>{1===i.state.activeElements.length&&i.prompt("Enter new name","Rename",s=>{if(!(0,n.isValidName)(s))return i.status(i.i18n("Enter new name")),!1;t.fileRename(o,e,s,r).then(e=>{i.state.activeElements=[],i.status(e,!0),(0,a.loadItems)(i)}).catch(i.status)},"type name",e)}).on("update.filebrowser",()=>{(0,l.loadTree)(this).then(this.status,this.status)})}},94538:function(e,t,i){"use strict";i.d(t,{stateListeners:function(){return l}});var o=i(22732),n=i(71521),r=i(10830),s=i(32118),a=i(20201);function l(){let e=(0,s.elementsMap)(this),{state:t,files:i,create:l,options:c}=this,d=t=>{let i=t.uniqueHashKey;if(e[i])return e[i].elm;let o=l.fromHTML(c.getThumbTemplate.call(this,t,t.source,t.sourceName.toString()));return o.dataset.key=i,e[i]={item:t,elm:o},e[i].elm};t.on(["change.currentPath","change.currentSource"],this.async.debounce(()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeLastOpenedFolder&&this.storage.set("currentPath",this.state.currentPath).set("currentSource",this.state.currentSource),(0,a.loadTree)(this).catch(this.status)},this.defaultTimeout)).on("beforeChange.activeElements",()=>{t.activeElements.forEach(t=>{let{elm:o}=e[t.uniqueHashKey];o&&o.classList.remove(i.getFullElName("item","active",!0))})}).on("change.activeElements",()=>{this.e.fire("changeSelection"),t.activeElements.forEach(t=>{let{elm:o}=e[t.uniqueHashKey];o&&o.classList.add(i.getFullElName("item","active",!0))})}).on("change.view",()=>{i.setMod("view",t.view),this.o.saveStateInStorage&&this.o.saveStateInStorage.storeView&&this.storage.set("view",t.view)}).on("change.sortBy",()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeSortBy&&this.storage.set("sortBy",t.sortBy)}).on("change.elements",this.async.debounce(()=>{o.Dom.detach(i.container),t.elements.length?t.elements.forEach(e=>{o.Dom.append(this.files.container,d(e))}):o.Dom.append(i.container,l.div(this.componentName+"_no-files_true",this.i18n("There are no files")))},this.defaultTimeout)).on("change.sources",this.async.debounce(()=>{o.Dom.detach(this.tree.container),t.sources.forEach(e=>{let t=e.name;if(t&&"default"!==t&&o.Dom.append(this.tree.container,l.div(this.tree.getFullElName("source-title"),t)),e.folders.forEach(i=>{let s=l.a(this.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":(0,n.normalizePath)(e.path,i+"/"),"data-name":i,"data-source":t,"data-source-path":e.path},l.span(this.tree.getFullElName("item-title"),i)),a=o=>r=>{this.e.fire(`${o}.filebrowser`,{name:i,path:(0,n.normalizePath)(e.path+"/"),source:t}),r.stopPropagation(),r.preventDefault()};if(this.e.on(s,"click",a("openFolder")),o.Dom.append(this.tree.container,s),".."!==i&&"."!==i){if(c.renameFolder&&this.dataProvider.canI("FolderRename")){let e=(0,r.Button)(this,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});e.onAction(a("renameFolder")),o.Dom.append(s,e.container)}if(c.deleteFolder&&this.dataProvider.canI("FolderRemove")){let e=(0,r.Button)(this,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});e.onAction(a("removeFolder")),o.Dom.append(s,e.container)}}}),c.createNewFolder&&this.dataProvider.canI("FolderCreate")){let i=(0,r.Button)(this,"plus","Add folder","secondary");i.onAction(()=>{this.e.fire("addFolder",{path:(0,n.normalizePath)(e.path+"/"),source:t})}),this.tree.append(i)}})},this.defaultTimeout))}},97379:function(e,t,i){"use strict";i.d(t,{FileBrowserFiles:function(){return n}});var o=i(67510);class n extends o.UIGroup{className(){return"FileBrowserFiles"}}},8172:function(e,t,i){"use strict";i.d(t,{FileBrowserFiles:function(){return o.FileBrowserFiles},FileBrowserTree:function(){return n.FileBrowserTree}});var o=i(97379),n=i(8193)},8193:function(e,t,i){"use strict";i.d(t,{FileBrowserTree:function(){return n}});var o=i(67510);class n extends o.UIGroup{className(){return"FileBrowserTree"}}},92643:function(e,t,i){"use strict";i.d(t,{Command:function(){return o}});class o{undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}constructor(e,t,i,o){this.oldValue=e,this.newValue=t,this.history=i,this.tick=o}}},78818:function(e,t,i){"use strict";i.d(t,{History:function(){return c}});var o=i(80480),n=i(81577),r=i(6441),s=i(92643),a=i(52604),l=i(57034);r.Config.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};class c extends o.ViewComponent{className(){return"History"}redo(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.__stack.canRedo()}undo(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.__stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}get length(){return this.__stack.length}get startValue(){return this.__startValue}set startValue(e){this.__startValue=e}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(e=!1){let t=this.snapshot.make();if(!a.Snapshot.equal(t,this.startValue)){let i=new s.Command(this.startValue,t,this,this.updateTick);if(e){let e=this.__stack.current();e&&this.updateTick===e.tick&&this.__stack.replace(i)}else this.__stack.push(i);this.startValue=t,this.fireChangeStack()}}fireChangeStack(){var e;this.j&&!this.j.isInDestruct&&(null==(e=this.j.events)||e.fire("changeStack"))}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}constructor(e,t=new l.Stack(e.o.history.maxHistoryLength),i=new a.Snapshot(e)){super(e),this.updateTick=0,this.__stack=t,this.snapshot=i,e.o.history.enable&&e.e.on("afterAddPlace.history",()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),e.events.on("internalChange internalUpdate",()=>{this.startValue=this.snapshot.make()}).on(e.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map(e=>e+".history").join(" "),()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())}).on(this,"change.history",this.onChange))})}}!function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,n.debounce)()],c.prototype,"onChange",null)},52604:function(e,t,i){"use strict";i.d(t,{Snapshot:function(){return s}});var o=i(91907),n=i(82758),r=i(2748);class s extends o.ViewComponent{className(){return"Snapshot"}static equal(e,t){return e.html===t.html&&JSON.stringify(e.range)===JSON.stringify(t.range)&&JSON.stringify(e.ranges)===JSON.stringify(t.ranges)&&!!e.backward==!!t.backward}static countNodesBeforeInParent(e){if(!e.parentNode)return 0;let t=e.parentNode.childNodes,i=0,o=null;for(let n=0;n<t.length;n+=1){if(!o||this.isIgnoredNode(t[n])||r.Dom.isText(o)&&r.Dom.isText(t[n])||(i+=1),t[n]===e)return i;o=t[n]}return 0}static strokeOffset(e,t){for(;r.Dom.isText(e);)e=e.previousSibling,r.Dom.isText(e)&&e.nodeValue&&(t+=e.nodeValue.length);return t}calcHierarchyLadder(e){let t=[];if(!e||!e.parentNode||!r.Dom.isOrContains(this.j.editor,e))return[];for(;e&&e!==this.j.editor;)e&&!s.isIgnoredNode(e)&&t.push(s.countNodesBeforeInParent(e)),e=e.parentNode;return t.reverse()}getElementByLadder(e){let t=this.j.editor,i;for(i=0;t&&i<e.length;i+=1)t=t.childNodes[e[i]];return t}get isBlocked(){return this.__isBlocked}__block(e){this.__isBlocked=e}transaction(e){this.__block(!0),this.__levelOfTransaction+=1;try{e()}catch(e){if(!n.IS_PROD)throw e}finally{this.__levelOfTransaction-=1,0===this.__levelOfTransaction&&this.__block(!1)}}make(){let e={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};e.html=this.__getCleanedEditorValue(this.j.editor);let t=this.j.s.sel;if(t&&t.rangeCount){let i=[];for(let e=0;e<t.rangeCount;e+=1){let o=t.getRangeAt(e),n=this.calcHierarchyLadder(o.startContainer),r=this.calcHierarchyLadder(o.endContainer),a=s.strokeOffset(o.startContainer,o.startOffset),l=s.strokeOffset(o.endContainer,o.endOffset);n.length||o.startContainer===this.j.editor||(a=0),r.length||o.endContainer===this.j.editor||(l=0),i.push({startContainer:n,startOffset:a,endContainer:r,endOffset:l})}e.range=i[0],i.length>1?e.ranges=i:t.isCollapsed||t.anchorNode!==t.getRangeAt(0).endContainer||t.anchorOffset!==t.getRangeAt(0).endOffset||(e.backward=!0)}return e}restore(e){this.transaction(()=>{let t=this.storeScrollState();this.__getCleanedEditorValue(this.j.editor)!==e.html&&(this.j.value=e.html),this.restoreOnlySelection(e),this.restoreScrollState(t)})}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(e){let{j:t}=this,{ow:i}=t;i.scrollTo(i.scrollX,e[0]),t.editor.scrollTop=e[1]}restoreOnlySelection(e){var t;try{if(e.range){let i=(null!=(t=e.ranges)?t:[e.range]).map(e=>{let t=this.j.ed.createRange();return t.setStart(this.getElementByLadder(e.startContainer),e.startOffset),t.setEnd(this.getElementByLadder(e.endContainer),e.endOffset),t});this.j.s.selectRange(i[0]);let o=this.j.s.sel;if(i.slice(1).forEach(e=>null==o?void 0:o.addRange(e)),e.backward&&1===i.length){let e=i[0];null==o||o.setBaseAndExtent(e.endContainer,e.endOffset,e.startContainer,e.startOffset)}}}catch(e){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild),n.IS_PROD}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(e){return r.Dom.isText(e)&&!e.nodeValue||r.Dom.isTemporary(e)}__getCleanedEditorValue(e){let t=e.cloneNode(!0);return r.Dom.temporaryList(t).forEach(r.Dom.unwrap),t.innerHTML}constructor(){super(...arguments),this.__isBlocked=!1,this.__levelOfTransaction=0}}},57034:function(e,t,i){"use strict";i.d(t,{Stack:function(){return o}});class o{get length(){return this.commands.length}clearRedo(){this.commands.length=this.stackPosition+1}clear(){this.commands.length=0,this.stackPosition=-1}push(e){this.clearRedo(),this.commands.push(e),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}replace(e){this.commands[this.stackPosition]=e}current(){return this.commands[this.stackPosition]}undo(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}redo(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}canUndo(){return this.stackPosition>=0}canRedo(){return this.stackPosition<this.commands.length-1}constructor(e){this.size=e,this.commands=[],this.stackPosition=-1}}},62489:function(e,t,i){"use strict";var o=i(12153),n=i(6441),r=i(49922),s=i(72144);n.Config.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},o.Icon.set("crop",r.default).set("resize",s.default)},49922:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M7 2v15h15M2 7h15v15"/> </g> </svg> '},72144:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="3" y="3" width="18" height="18" rx="2"/><path d="M8 16 16 8m-6 0h6v6"/> </g> </svg> '},50050:function(e,t,i){"use strict";i.d(t,{ImageEditor:function(){return k},openImageEditor:function(){return C}});var o,n=i(91907),r=i(65478),s=i(22732),a=i(49055),l=i(29960),c=i(41180),d=i(76078),u=i(37790),h=i(62843),p=i(6441);i(62489);var f=i(22461),m=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let g="jodit-image-editor",b=e=>t=>t.classList.contains(e);function v(e,t){return s.Dom.first(e,e=>s.Dom.isHTMLElement(e)&&t(e))}function y(e,t){let i=[];return s.Dom.each(e,e=>{s.Dom.isHTMLElement(e)&&t(e)&&i.push(e)}),i}let w="resize",_="crop",k=o=class e extends n.ViewComponent{className(){return"ImageEditor"}get o(){return this.options}hide(){this._dialog.close()}open(e,t){return this.j.async.promise(i=>{let o=new Date().getTime();this.image=this.j.c.element("img");let n=e=>s.Dom.isTag(e,"img")||b("jodit-icon_loader")(e);y(this.resize_box,n).forEach(s.Dom.safeRemove),y(this.crop_box,n).forEach(s.Dom.safeRemove),(0,c.css)(this.cropHandler,"background","transparent"),this.onSave=t,s.Dom.append(this.resize_box,this.j.c.element("i",{class:"jodit-icon_loader"})),s.Dom.append(this.crop_box,this.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(e)?e+="&_tst="+o:e+="?_tst="+o,(0,l.attr)(this.image,"src",e),this._dialog.open();let{widthInput:r,heightInput:a}=(0,d.refs)(this.editor),u=()=>{this.isDestructed||(this.image.removeEventListener("load",u),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,r.value=this.naturalWidth.toString(),a.value=this.naturalHeight.toString(),this.ratio=this.naturalWidth/this.naturalHeight,s.Dom.append(this.resize_box,this.image),this.cropImage=this.image.cloneNode(!0),s.Dom.append(this.crop_box,this.cropImage),s.Dom.safeRemove.apply(null,y(this.editor,b("jodit-icon_loader"))),this.activeTab===_&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),i(this._dialog))};this.image.addEventListener("load",u),this.image.complete&&u()})}onTitleModeClick(e){let t=this,i=e.target,o=null==i?void 0:i.parentElement;if(!o)return;y(t.editor,e=>b(`${g}__slider`)(e)||b(`${g}__area`)(e)).forEach(e=>e.classList.remove(`${g}_active`)),o.classList.add(`${g}_active`),this.activeTab=(0,l.attr)(o,"-area")||w;let n=v(t.editor,e=>b(`${g}__area`)(e)&&b(`${g}__area_`+t.activeTab)(e));n&&n.classList.add(`${g}_active`),t.activeTab===_&&t.showCrop()}onChangeSizeInput(e){let t,i=e.target,{widthInput:o,heightInput:n}=(0,d.refs)(this.editor),r="widthInput"===(0,l.attr)(i,"data-ref"),s=parseInt(i.value,10),a=r?this.o.min_width:this.o.min_height,u=r?this.o.min_height:this.o.min_width;s>a&&((0,c.css)(this.image,r?"width":"height",s),this.resizeUseRatio&&(t=r?Math.round(s/this.ratio):Math.round(s*this.ratio))>u&&((0,c.css)(this.image,r?"height":"width",t),r?n.value=t.toString():o.value=t.toString())),this.j.e.fire(this.resizeHandler,"updatesize")}onResizeHandleMouseDown(e){this.target=e.target,e.preventDefault(),e.stopImmediatePropagation(),this.clicked=!0,this.start_x=e.clientX,this.start_y=e.clientY,this.activeTab===_?(this.top_x=(0,c.css)(this.cropHandler,"left"),this.top_y=(0,c.css)(this.cropHandler,"top"),this.width=this.cropHandler.offsetWidth,this.height=this.cropHandler.offsetHeight):(this.width=this.image.offsetWidth,this.height=this.image.offsetHeight),this.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(e){this.clicked&&(this.clicked=!1,e.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(e){if(!this.clicked)return;let{widthInput:t,heightInput:i}=(0,d.refs)(this.editor);this.diff_x=e.clientX-this.start_x,this.diff_y=e.clientY-this.start_y,this.activeTab===w&&this.resizeUseRatio||this.activeTab===_&&this.cropUseRatio?this.diff_x?(this.new_w=this.width+this.diff_x,this.new_h=Math.round(this.new_w/this.ratio)):(this.new_h=this.height+this.diff_y,this.new_w=Math.round(this.new_h*this.ratio)):(this.new_w=this.width+this.diff_x,this.new_h=this.height+this.diff_y),this.activeTab===w?(this.new_w>this.o.resizeMinWidth&&((0,c.css)(this.image,"width",this.new_w+"px"),t.value=this.new_w.toString()),this.new_h>this.o.resizeMinHeight&&((0,c.css)(this.image,"height",this.new_h+"px"),i.value=this.new_h.toString()),this.j.e.fire(this.resizeHandler,"updatesize")):(this.target!==this.cropHandler?(this.top_x+this.new_w>this.cropImage.offsetWidth&&(this.new_w=this.cropImage.offsetWidth-this.top_x),this.top_y+this.new_h>this.cropImage.offsetHeight&&(this.new_h=this.cropImage.offsetHeight-this.top_y),(0,c.css)(this.cropHandler,{width:this.new_w,height:this.new_h})):(this.top_x+this.diff_x+this.cropHandler.offsetWidth>this.cropImage.offsetWidth&&(this.diff_x=this.cropImage.offsetWidth-this.top_x-this.cropHandler.offsetWidth),(0,c.css)(this.cropHandler,"left",this.top_x+this.diff_x),this.top_y+this.diff_y+this.cropHandler.offsetHeight>this.cropImage.offsetHeight&&(this.diff_y=this.cropImage.offsetHeight-this.top_y-this.cropHandler.offsetHeight),(0,c.css)(this.cropHandler,"top",this.top_y+this.diff_y)),this.j.e.fire(this.cropHandler,"updatesize"))}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),s.Dom.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,"."+g).off("."+g),super.destruct())}constructor(e){super(e),this.resizeUseRatio=!0,this.cropUseRatio=!0,this.clicked=!1,this.start_x=0,this.start_y=0,this.top_x=0,this.top_y=0,this.width=0,this.height=0,this.activeTab=w,this.naturalWidth=0,this.naturalHeight=0,this.ratio=0,this.new_h=0,this.new_w=0,this.diff_x=0,this.diff_y=0,this.cropBox={x:0,y:0,w:0,h:0},this.resizeBox={w:0,h:0},this.calcCropBox=()=>{let e,t,i=this.crop_box.parentNode,o=.8*i.offsetWidth,n=.8*i.offsetHeight,{naturalWidth:r,naturalHeight:s}=this;o>r&&n>s?(e=r,t=s):this.ratio>o/n?(e=o,t=o/r*s):(e=n/s*r,t=n),(0,c.css)(this.crop_box,{width:e,height:t})},this.showCrop=()=>{if(!this.cropImage)return;this.calcCropBox();let e=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=o.calcValueByPercent(e,this.o.cropDefaultWidth);let t=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.cropUseRatio?this.new_h=this.new_w/this.ratio:this.new_h=o.calcValueByPercent(t,this.o.cropDefaultHeight),(0,c.css)(this.cropHandler,{backgroundImage:"url("+(0,l.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:e/2-this.new_w/2,top:t/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")},this.updateCropBox=()=>{if(!this.cropImage)return;let e=this.cropImage.offsetWidth/this.naturalWidth,t=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,c.css)(this.cropHandler,"left")/e,this.cropBox.y=(0,c.css)(this.cropHandler,"top")/t,this.cropBox.w=this.cropHandler.offsetWidth/e,this.cropBox.h=this.cropHandler.offsetHeight/t,this.sizes.textContent=this.cropBox.w.toFixed(0)+"x"+this.cropBox.h.toFixed(0)},this.updateResizeBox=()=>{this.resizeBox.w=this.image.offsetWidth||this.naturalWidth,this.resizeBox.h=this.image.offsetHeight||this.naturalHeight},this.setHandlers=()=>{let e=this,{widthInput:t,heightInput:i}=(0,d.refs)(this.editor);e.j.e.on([v(e.editor,b("jodit_bottomright")),e.cropHandler],"mousedown."+g,this.onResizeHandleMouseDown).on(this.j.ow,"resize."+g,()=>{this.j.e.fire(e.resizeHandler,"updatesize"),e.showCrop(),this.j.e.fire(e.cropHandler,"updatesize")}),e.j.e.on(y(this.editor,b(`${g}__slider-title`)),"click",this.onTitleModeClick).on([t,i],"input",this.onChangeSizeInput);let{keepAspectRatioResize:o,keepAspectRatioCrop:n}=(0,d.refs)(this.editor);o&&o.addEventListener("change",()=>{this.resizeUseRatio=o.checked}),n&&n.addEventListener("change",()=>{this.cropUseRatio=n.checked}),e.j.e.on(e.resizeHandler,"updatesize",()=>{(0,c.css)(e.resizeHandler,{top:0,left:0,width:e.image.offsetWidth||e.naturalWidth,height:e.image.offsetHeight||e.naturalHeight}),this.updateResizeBox()}).on(e.cropHandler,"updatesize",()=>{if(!e.cropImage)return;let t=(0,c.css)(e.cropHandler,"left"),i=(0,c.css)(e.cropHandler,"top"),o=e.cropHandler.offsetWidth,n=e.cropHandler.offsetHeight;t<0&&(t=0),i<0&&(i=0),t+o>e.cropImage.offsetWidth&&(o=e.cropImage.offsetWidth-t,e.cropUseRatio&&(n=o/e.ratio)),i+n>e.cropImage.offsetHeight&&(n=e.cropImage.offsetHeight-i,e.cropUseRatio&&(o=n*e.ratio)),(0,c.css)(e.cropHandler,{width:o,height:n,left:t,top:i,backgroundPosition:-t-1+"px "+(-i-1)+"px",backgroundSize:e.cropImage.offsetWidth+"px "+e.cropImage.offsetHeight+"px"}),e.updateCropBox()}),Object.values(e.buttons).forEach(o=>{o.onAction(()=>{let n={action:e.activeTab,box:e.activeTab===w?e.resizeBox:e.cropBox};switch(o){case e.buttons.saveas:e.j.prompt("Enter new name","Save in new file",t=>{if(!(0,a.trim)(t))return e.j.alert("The name should not be empty"),!1;e.j.e.fire("afterImageEditorSave",n,t),e.onSave(t,n,e.hide,t=>{e.j.alert(t.message)})});break;case e.buttons.save:e.j.e.fire("afterImageEditorSave",n),e.onSave(void 0,n,e.hide,t=>{e.j.alert(t.message)});break;case e.buttons.reset:e.activeTab===w?((0,c.css)(e.image,{width:null,height:null}),t.value=e.naturalWidth.toString(),i.value=e.naturalHeight.toString(),e.j.e.fire(e.resizeHandler,"updatesize")):e.showCrop()}})})},this.options=e&&e.o&&e.o.imageeditor?e.o.imageeditor:p.Config.defaultOptions.imageeditor;let t=this.options;this.resizeUseRatio=t.resizeUseRatio,this.cropUseRatio=t.cropUseRatio,this.buttons={reset:(0,h.Button)(this.j,"update","Reset"),save:(0,h.Button)(this.j,"save","Save"),saveas:(0,h.Button)(this.j,{icon:{name:"save"},name:"save-as",text:"Save as ..."})},this.activeTab=t.resize?w:_,this.editor=(0,f.form)(this.j,this.options);let{resizeBox:i,cropBox:n}=(0,d.refs)(this.editor);this.resize_box=i,this.crop_box=n,this.sizes=v(this.editor,e=>b(`${g}__sizes`)(e)&&!!s.Dom.closest(e,e=>s.Dom.isHTMLElement(e)&&b(`${g}__area_crop`)(e),this.editor)),this.resizeHandler=v(this.editor,b(`${g}__resizer`)),this.cropHandler=v(this.editor,b(`${g}__croper`)),this._dialog=this.j.dlg({buttons:["fullsize","dialog.close"]}),this._dialog.setContent(this.editor),this._dialog.setSize(this.o.width,this.o.height),this._dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}};function C(e,t,i,o,n,r){return this.getInstance("ImageEditor",this.o).open(e,(e,s,a,l)=>{if("saved"===s.action){a(),n&&n(s.newPath);return}(0,u.call)("resize"===s.action?this.dataProvider.resize:this.dataProvider.crop,i,o,t,e,s.box).then(e=>{e&&(a(),n&&n("string"==typeof e?e:void 0))}).catch(e=>{l(e),r&&r(e)})})}k.calcValueByPercent=(e,t)=>{let i,o=t.toString(),n=parseFloat(e.toString());return(i=/^[-+]?[0-9]+(px)?$/.exec(o))?parseInt(o,10):(i=/^([-+]?[0-9.]+)%$/.exec(o))?Math.round(n*(parseFloat(i[1])/100)):n||0},m([r.autobind],k.prototype,"hide",null),m([r.autobind],k.prototype,"open",null),m([r.autobind],k.prototype,"onTitleModeClick",null),m([(0,r.debounce)(),r.autobind],k.prototype,"onChangeSizeInput",null),m([r.autobind],k.prototype,"onResizeHandleMouseDown",null),m([r.autobind],k.prototype,"onGlobalMouseUp",null),m([(0,r.throttle)(10)],k.prototype,"onGlobalMouseMove",null),k=o=m([r.component],k)},22461:function(e,t,i){"use strict";var o=i(67510);let n="jodit-image-editor",r=o.Icon.get.bind(o.Icon),s=(e,t="jodti-image-editor_active")=>e?t:"";i.d(t,["form",0,(e,t)=>{let i=e.i18n.bind(e),o=(e,t,o=!0)=>`<div class="jodit-form__group">
64
+ </a>`},ajax:{...a.Config.prototype.defaultAjaxOptions,url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData:e=>e,process:e=>e},create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},a.Config.prototype.controls.filebrowser={upload:{icon:"plus",tooltip:"Upload file",isInput:!0,isDisabled:e=>!e.dataProvider.canI("FileUpload"),getContent(e,t){let i=new s.UIFileInput(e,{tooltip:t.control.tooltip,onlyImages:e.state.onlyImages});return e.e.fire("bindUploader.filebrowser",i.container),i.container}},remove:{icon:"bin",tooltip:"Remove file",isDisabled:e=>!e.state.activeElements.length||!e.dataProvider.canI("FileRemove"),exec(e){e.e.fire("fileRemove.filebrowser")}},update:{tooltip:"Update file list",exec(e){e.e.fire("update.filebrowser")}},select:{tooltip:"Select file",icon:"check",isDisabled:e=>!e.state.activeElements.length,exec(e){e.e.fire("select.filebrowser")}},edit:{tooltip:"Edit image",icon:"pencil",isDisabled(e){let t=e.state.activeElements;return 1!==t.length||!t[0].isImage||!(e.dataProvider.canI("ImageCrop")||e.dataProvider.canI("ImageResize"))},exec(e){e.e.fire("edit.filebrowser")}},tiles:{tooltip:"Tiles view",icon:"th",isActive:e=>"tiles"===e.state.view,exec(e){e.e.fire("view.filebrowser","tiles")}},list:{tooltip:"List view",icon:"th-list",isActive:e=>"list"===e.state.view,exec(e){e.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent(e,t){let i=o.Dom.first(t.container,e=>o.Dom.isHTMLElement(e)&&e.classList.contains("jodit-input"));if(i)return i;let n=e.c.element("input",{class:"jodit-input",placeholder:e.i18n("Filter")});return n.value=e.state.filterWord,e.e.on(n,"keydown mousedown",e.async.debounce(()=>{e.e.fire("filter.filebrowser",n.value)},e.defaultTimeout)),n}},sort:{isInput:!0,getContent(e){let t=e.c.fromHTML(`<select class="jodit-input jodit-select"><option value="changed-asc">${e.i18n("Sort by changed")} (↑)</option><option value="changed-desc">${e.i18n("Sort by changed")} (↓)</option><option value="name-asc">${e.i18n("Sort by name")} (↑)</option><option value="name-desc">${e.i18n("Sort by name")} (↓)</option><option value="size-asc">${e.i18n("Sort by size")} (↑)</option><option value="size-desc">${e.i18n("Sort by size")} (↓)</option></select>`);return t.value=e.state.sortBy,e.e.on("sort.filebrowser",e=>{t.value!==e&&(t.value=e)}).on(t,"change",()=>{e.e.fire("sort.filebrowser",t.value)}),t}}}},11787:function(e,t,i){"use strict";i.d(t,{default:function(){return f}});var o=i(82758),n=i(45219),r=i(23282),s=i(70091),a=i(68934),l=i(89890),c=i(3703),d=i(54079),u=i(159),h=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let p=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);class f{get o(){return this.options}get(e){let t=this.__ajaxInstances;if(t.has(e)){let i=t.get(e);null==i||i.abort(),t.delete(e)}let i=(0,a.ConfigProto)(void 0!==this.options[e]?this.options[e]:{},(0,a.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));i.prepareData&&(i.data=i.prepareData.call(this,i.data));let o=new d.Ajax(i);t.set(e,o);let n=o.send();return n.finally(()=>{o.destruct(),t.delete(e),this.progressHandler(100)}).catch(()=>null),n.then(e=>e.json()).then(e=>{if(e&&!this.isSuccess(e))throw Error(this.getMessage(e));return e})}onProgress(e){this.progressHandler=e}async permissions(e,t){return this.o.permissions&&(this.o.permissions.data.path=e,this.o.permissions.data.source=t,this.o.permissions.url)?this.get("permissions").then(e=>{if(this.parent.isInDestruct)throw(0,l.abort)();let t=this.o.permissions.process;if(t||(t=this.o.ajax.process),t){let i=t.call(self,e);i.data.permissions&&(this.parent.events.fire(this,"changePermissions",this.__currentPermissions,i.data.permissions),this.__currentPermissions=i.data.permissions)}return this.__currentPermissions}):null}canI(e){let t="allow"+e;if(!o.IS_PROD&&!p.has(t))throw(0,l.error)("Wrong action "+e);let i=this.o.permissionsPresets[t];return void 0!==i?i:null==this.__currentPermissions||void 0===this.__currentPermissions[t]||this.__currentPermissions[t]}__items(e,t,i,o){let n=this.options;return n.items?(n.items.data.path=e,n.items.data.source=t,n.items.data.mods=i,this.get("items").then(e=>{let t=this.o.items.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),o(e)})):Promise.reject(Error("Set Items api options"))}items(e,t,i={}){return this.__items(e,t,i,e=>this.__generateItemsList(e.data.sources,i))}itemsEx(e,t,i={}){return this.__items(e,t,i,e=>({items:this.__generateItemsList(e.data.sources,i),loadedTotal:e.data.sources.reduce((e,t)=>e+t.files.length,0)}))}__generateItemsList(e,t={}){let i=[],o=e=>{var i;return!(null==(i=t.filterWord)?void 0:i.length)||void 0===this.o.filter||this.o.filter(e,t.filterWord)};return e.forEach(e=>{if(e.files&&e.files.length){let{sort:n}=this.o;(0,r.isFunction)(n)&&t.sortBy&&e.files.sort((e,i)=>n(e,i,t.sortBy)),e.files.forEach(n=>{o(n)&&("folder"===n.type||!t.onlyImages||void 0===n.isImage||n.isImage)&&i.push(u.FileBrowserItem.create({...n,sourceName:e.name,source:e}))})}}),i}async tree(e,t){return(e=(0,s.normalizeRelativePath)(e),this.o.folder)?(await this.permissions(e,t),this.o.folder.data.path=e,this.o.folder.data.source=t,this.get("folder").then(e=>{let t=this.o.folder.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),e.data.sources})):Promise.reject(Error("Set Folder Api options"))}getPathByUrl(e){return(0,c.set)("options.getLocalFileByUrl.data.url",e,this),this.get("getLocalFileByUrl").then(e=>{if(this.isSuccess(e))return e.data;throw(0,l.error)(this.getMessage(e))})}createFolder(e,t,i){let{create:o}=this.o;if(!o)throw(0,l.error)("Set Create api options");return o.data.source=i,o.data.path=t,o.data.name=e,this.get("create").then(e=>{if(this.isSuccess(e))return!0;throw(0,l.error)(this.getMessage(e))})}move(e,t,i,o){let n=o?"fileMove":"folderMove",r=this.options[n];if(!r)throw(0,l.error)("Set Move api options");return r.data.from=e,r.data.path=t,r.data.source=i,this.get(n).then(e=>{if(this.isSuccess(e))return!0;throw(0,l.error)(this.getMessage(e))})}__remove(e,t,i,o){let n=this.o[e];if(!n)throw(0,l.error)(`Set "${e}" api options`);return n.data.path=t,n.data.name=i,n.data.source=o,this.get(e).then(e=>(n.process&&(e=n.process.call(this,e)),this.getMessage(e)))}fileRemove(e,t,i){return this.__remove("fileRemove",e,t,i)}folderRemove(e,t,i){return this.__remove("folderRemove",e,t,i)}__rename(e,t,i,o,n){let r=this.o[e];if(!r)throw(0,l.error)(`Set "${e}" api options`);return r.data.path=t,r.data.name=i,r.data.newname=o,r.data.source=n,this.get(e).then(e=>(r.process&&(e=r.process.call(self,e)),this.getMessage(e)))}folderRename(e,t,i,o){return this.__rename("folderRename",e,t,i,o)}fileRename(e,t,i,o){return this.__rename("fileRename",e,t,i,o)}__changeImage(e,t,i,o,n,r){this.o[e]||(this.o[e]={data:{}});let s=this.o[e];return void 0===s.data&&(s.data={action:e}),s.data.newname=n||o,r&&(s.data.box=r),s.data.path=t,s.data.name=o,s.data.source=i,this.get(e).then(e=>e.data.newPath||!0)}crop(e,t,i,o,n){return this.__changeImage("crop",e,t,i,o,n)}resize(e,t,i,o,n){return this.__changeImage("resize",e,t,i,o,n)}getMessage(e){return this.options.getMessage(e)}isSuccess(e){return this.options.isSuccess(e)}destruct(){this.__ajaxInstances.forEach(e=>e.destruct()),this.__ajaxInstances.clear()}constructor(e,t){this.parent=e,this.options=t,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=e=>{}}}h([n.autobind],f.prototype,"onProgress",null),h([n.autobind],f.prototype,"permissions",null),h([n.autobind],f.prototype,"canI",null),h([n.autobind],f.prototype,"items",null),h([n.autobind],f.prototype,"itemsEx",null),h([n.autobind],f.prototype,"tree",null),h([n.autobind],f.prototype,"getPathByUrl",null),h([n.autobind],f.prototype,"createFolder",null),h([n.autobind],f.prototype,"move",null),h([n.autobind],f.prototype,"fileRemove",null),h([n.autobind],f.prototype,"folderRemove",null),h([n.autobind],f.prototype,"folderRename",null),h([n.autobind],f.prototype,"fileRename",null),h([n.autobind],f.prototype,"crop",null),h([n.autobind],f.prototype,"resize",null),h([n.autobind],f.prototype,"getMessage",null),h([n.autobind],f.prototype,"isSuccess",null),h([n.autobind],f.prototype,"destruct",null),i.d(t,["DEFAULT_SOURCE_NAME",0,"default"])},63399:function(e,t,i){"use strict";i.d(t,{makeContextMenu:function(){return s},makeDataProvider:function(){return r}});var o=i(80870),n=i(11787);function r(e,t){return new n.default(e,t)}function s(e){return new o.ContextMenu(e)}},44450:function(e,t,i){"use strict";function o(e,t,i){return e.dataProvider.fileRemove(e.state.currentPath,t,i).then(i=>{e.status(i||e.i18n('File "%s" was deleted',t),!0)}).catch(e.status)}i.d(t,{deleteFile:function(){return o}})},30465:function(e,t,i){"use strict";function o(e){return e.files.setMod("active",!0),e.files.setMod("loading",!0),e.dataProvider.items(e.state.currentPath,e.state.currentSource,{sortBy:e.state.sortBy,onlyImages:e.state.onlyImages,filterWord:e.state.filterWord}).then(t=>{t&&(e.state.elements=t,e.state.activeElements=[])}).catch(e.status).finally(()=>e.files.setMod("loading",!1))}i.d(t,{loadItems:function(){return o}})},20201:function(e,t,i){"use strict";i.d(t,{loadTree:function(){return r}});var o=i(22732),n=i(30465);async function r(e){e.tree.setMod("active",!0),o.Dom.detach(e.tree.container);let t=(0,n.loadItems)(e);return e.o.showFoldersPanel?(e.tree.setMod("loading",!0),Promise.all([e.dataProvider.tree(e.state.currentPath,e.state.currentSource).then(t=>{e.state.sources=t}).catch(e.status).finally(()=>e.tree.setMod("loading",!1)),t])):(e.tree.setMod("active",!1),t)}},75330:function(e,t,i){"use strict";i.d(t,{FileBrowser:function(){return S}});var o=i(91907),n=i(82758),r=i(65478),s=i(37133),a=i(2748),l=i(3827),c=i(21537),d=i(41180),u=i(12081),h=i(70231),p=i(84075),f=i(6441);i(61251);var m=i(30465),g=i(20201),b=i(73948),v=i(33281),y=i(94538),w=i(11787),_=i(63399),k=i(8172),C=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let S=class e extends p.ViewWithToolbar{className(){return"FileBrowser"}get dataProvider(){return(0,_.makeDataProvider)(this,this.options)}onSelect(e){return()=>{if(this.state.activeElements.length){let t=[],i=[];this.state.activeElements.forEach(e=>{let o=e.fileURL;o&&(t.push(o),i.push(e.isImage||!1))}),this.close(),(0,c.isFunction)(e)&&e({baseurl:"",files:t,isImages:i}),this.close()}return!1}}get _dialog(){var e;let t=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:null!=(e=this.o.headerButtons)?e:["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach(e=>t.events.on(t,e,()=>this.e.fire(e))),t.setSize(this.o.width,this.o.height),t}get storage(){return u.Storage.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==(0,d.cssInline)(this.browser,"display")}status(e,t){!e||(0,c.isAbortError)(e)||((0,c.isString)(e)||(e=e.message),(0,c.isString)(e)&&(0,c.trim)(e).length&&this.message.message(e,t?"success":"error",this.o.howLongShowMsg))}open(e=this.o.defaultCallback,t=!1){return this.state.onlyImages=t,this.async.promise((t,i)=>{var o;if(!this.o.items||!this.o.items.url)throw(0,c.error)("Need set options.filebrowser.ajax.url");let r=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(e)).on(this.files.container,"touchstart",()=>{let t=new Date().getTime();t-r<n.EMULATE_DBLCLICK_TIMEOUT&&this.onSelect(e)(),r=t}).off("select.filebrowser").on("select.filebrowser",this.onSelect(e));let s=this.c.div();null==(o=this.toolbar)||o.appendTo(s),this.__updateToolbarButtons(),this._dialog.open(this.browser,s),this.e.fire("sort.filebrowser",this.state.sortBy),(0,g.loadTree)(this).then(t,i).finally(()=>{var e;this.isInDestruct||null==(e=this===null||void 0===this?void 0:this.e)||e.fire("fileBrowserReady.filebrowser")})}).catch(e=>{if(!(0,c.isAbortError)(e)&&!n.IS_PROD)throw e})}__getButtons(){var e;return(null!=(e=this.o.buttons)?e:[]).filter(e=>{if(!(0,c.isString)(e))return!0;switch(e){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0})}initUploader(e){var t;let i=this,o=null==(t=null==e?void 0:e.options)?void 0:t.uploader,n=(0,c.ConfigProto)(o||{},f.Config.defaultOptions.uploader),r=()=>(0,m.loadItems)(this);i.uploader=i.getInstance("Uploader",n),i.uploader.setPath(i.state.currentPath).setSource(i.state.currentSource).bind(i.browser,r,i.errorHandler),this.state.on(["change.currentPath","change.currentSource"],()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)}),i.e.on("bindUploader.filebrowser",e=>{i.uploader.bind(e,r,i.errorHandler)})}destruct(){var e;!this.isInDestruct&&(null==(e=(0,r.cached)(this,"_dialog"))||e.destruct(),super.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}__updateToolbarButtons(){var e;let t=this.__getButtons();!function(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}(this.__prevButtons,t)&&(this.__prevButtons=t,null==(e=this.toolbar)||e.build(t))}constructor(e){super(e),this.browser=this.c.div(this.componentName),this.status_line=this.c.div(this.getFullElName("status")),this.tree=new k.FileBrowserTree(this),this.files=new k.FileBrowserFiles(this),this.state=(0,l.observable)({currentPath:"",currentSource:w.DEFAULT_SOURCE_NAME,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=e=>{(0,c.isAbortError)(e)||(e instanceof Error?this.status(this.i18n(e.message)):this.status(this.dataProvider.getMessage(e)))},this.close=()=>{this._dialog.close()},this.__prevButtons=[],this.attachEvents(e),this.options=(0,c.ConfigProto)(e||{},f.Config.defaultOptions.filebrowser),this.browser.component=this,this.container=this.browser,this.o.showFoldersPanel&&a.Dom.append(this.browser,this.tree.container),a.Dom.append(this.browser,this.files.container),a.Dom.append(this.browser,this.status_line),v.selfListeners.call(this),b.nativeListeners.call(this),y.stateListeners.call(this),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(e=>{null!=this.options[e]&&(this.options[e]=(0,c.ConfigProto)(this.options[e],this.o.ajax))});let{storeView:t,storeSortBy:i,storeLastOpenedFolder:n}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},r=t&&this.storage.get("view");r&&null==this.o.view?this.state.view="list"===r?"list":"tiles":this.state.view="list"===this.o.view?"list":"tiles",this.files.setMod("view",this.state.view);let s=i&&this.storage.get("sortBy");if(s){let e=s.split("-");this.state.sortBy=["changed","name","size"].includes(e[0])?s:"changed-desc"}else this.state.sortBy=this.o.sortBy||"changed-desc";if(n){let e=this.storage.get("currentPath"),t=this.storage.get("currentSource");this.state.currentPath=null!=e?e:"",this.state.currentSource=null!=t?t:""}this.initUploader(this),this.setStatus(o.STATUSES.ready)}};C([r.cache],S.prototype,"dataProvider",null),C([r.cache],S.prototype,"_dialog",null),C([r.cache],S.prototype,"storage",null),C([r.autobind],S.prototype,"status",null),C([r.autobind],S.prototype,"open",null),C([(0,s.watch)("dataProvider:changePermissions")],S.prototype,"__updateToolbarButtons",null),S=C([(0,r.derive)(h.Dlgs)],S)},78513:function(e,t,i){"use strict";i.d(t,{FileBrowser:function(){return o.FileBrowser}});var o=i(75330)},73948:function(e,t,i){"use strict";i.d(t,{nativeListeners:function(){return c}});var o=i(29960),n=i(15456),r=i(41457),s=i(32118),a=i(21735),l=i(20201);function c(){let e=!1,t=(0,s.elementsMap)(this),i=this;i.e.on(i.tree.container,"dragstart",t=>{let o=(0,a.getItem)(t.target,i.container);o&&i.o.moveFolder&&(e=o)}).on(i.tree.container,"drop",t=>{if((i.o.moveFile||i.o.moveFolder)&&e){let n=(0,o.attr)(e,"-path")||"";if(!i.o.moveFolder&&e.classList.contains(this.tree.getFullElName("item"))||e.classList.contains(this.files.getFullElName("item"))&&(n+=(0,o.attr)(e,"-name"),!i.o.moveFile))return!1;let r=(0,a.getItem)(t.target,i.container);r&&(i.dataProvider.move(n,(0,o.attr)(r,"-path")||"",(0,o.attr)(r,"-source")||"",e.classList.contains(this.files.getFullElName("item"))).then(()=>(0,l.loadTree)(this)).catch(i.status),e=!1)}}).on(i.files.container,"contextmenu",(0,r.default)(i)).on(i.files.container,"click",e=>{(0,n.ctrlKey)(e)||(this.state.activeElements=[])}).on(i.files.container,"click",e=>{let o=(0,a.getItem)(e.target,i.container);if(!o)return;let r=(0,a.elementToItem)(o,t);if(r)return(0,n.ctrlKey)(e)?i.state.activeElements=[...i.state.activeElements,r]:i.state.activeElements=[r],e.stopPropagation(),!1}).on(i.files.container,"dragstart",t=>{if(i.o.moveFile){let o=(0,a.getItem)(t.target,i.container);o&&(e=o)}}).on(i.container,"drop",e=>e.preventDefault())}},33281:function(e,t,i){"use strict";i.d(t,{selfListeners:function(){return d}});var o=i(21537),n=i(27613),r=i(11787),s=i(44450),a=i(30465),l=i(20201),c=i(50050);function d(){let e=this.state,t=this.dataProvider,i=this;i.e.on("view.filebrowser",t=>{t!==e.view&&(e.view=t)}).on("sort.filebrowser",t=>{t!==e.sortBy&&(e.sortBy=t,(0,a.loadItems)(i))}).on("filter.filebrowser",t=>{t!==e.filterWord&&(e.filterWord=t,(0,a.loadItems)(i))}).on("openFolder.filebrowser",e=>{let t;t=".."===e.name?e.path.split("/").filter(e=>e.length).slice(0,-1).join("/"):(0,o.normalizePath)(e.path,e.name),i.state.currentPath=t,i.state.currentSource="."===e.name?r.DEFAULT_SOURCE_NAME:e.source}).on("removeFolder.filebrowser",e=>{i.confirm("Are you sure?","Delete",o=>{o&&t.folderRemove(e.path,e.name,e.source).then(e=>(i.status(e,!0),(0,l.loadTree)(i))).catch(i.status)})}).on("renameFolder.filebrowser",e=>{i.prompt("Enter new name","Rename",o=>{if(!(0,n.isValidName)(o))return i.status(i.i18n("Enter new name")),!1;t.folderRename(e.path,e.name,o,e.source).then(e=>(i.state.activeElements=[],i.status(e,!0),(0,l.loadTree)(i))).catch(i.status)},"type name",e.name)}).on("addFolder.filebrowser",e=>{i.prompt("Enter Directory name","Create directory",o=>{t.createFolder(o,e.path,e.source).then(()=>(0,l.loadTree)(i)).catch(i.status)},"type dir name")}).on("fileRemove.filebrowser",()=>{i.state.activeElements.length&&i.confirm("Are you sure?","",e=>{if(e){let e=[];i.state.activeElements.forEach(t=>{e.push((0,s.deleteFile)(i,t.file||t.name||"",t.sourceName))}),i.state.activeElements=[],Promise.all(e).then(()=>(0,l.loadTree)(i).catch(i.status),i.status)}})}).on("edit.filebrowser",()=>{if(1===i.state.activeElements.length){let[e]=this.state.activeElements;c.openImageEditor.call(i,e.fileURL,e.file||"",e.path,e.sourceName)}}).on("fileRename.filebrowser",(e,o,r)=>{1===i.state.activeElements.length&&i.prompt("Enter new name","Rename",s=>{if(!(0,n.isValidName)(s))return i.status(i.i18n("Enter new name")),!1;t.fileRename(o,e,s,r).then(e=>{i.state.activeElements=[],i.status(e,!0),(0,a.loadItems)(i)}).catch(i.status)},"type name",e)}).on("update.filebrowser",()=>{(0,l.loadTree)(this).then(this.status,this.status)})}},94538:function(e,t,i){"use strict";i.d(t,{stateListeners:function(){return l}});var o=i(22732),n=i(71521),r=i(10830),s=i(32118),a=i(20201);function l(){let e=(0,s.elementsMap)(this),{state:t,files:i,create:l,options:c}=this,d=t=>{let i=t.uniqueHashKey;if(e[i])return e[i].elm;let o=l.fromHTML(c.getThumbTemplate.call(this,t,t.source,t.sourceName.toString()));return o.dataset.key=i,e[i]={item:t,elm:o},e[i].elm};t.on(["change.currentPath","change.currentSource"],this.async.debounce(()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeLastOpenedFolder&&this.storage.set("currentPath",this.state.currentPath).set("currentSource",this.state.currentSource),(0,a.loadTree)(this).catch(this.status)},this.defaultTimeout)).on("beforeChange.activeElements",()=>{t.activeElements.forEach(t=>{let{elm:o}=e[t.uniqueHashKey];o&&o.classList.remove(i.getFullElName("item","active",!0))})}).on("change.activeElements",()=>{this.e.fire("changeSelection"),t.activeElements.forEach(t=>{let{elm:o}=e[t.uniqueHashKey];o&&o.classList.add(i.getFullElName("item","active",!0))})}).on("change.view",()=>{i.setMod("view",t.view),this.o.saveStateInStorage&&this.o.saveStateInStorage.storeView&&this.storage.set("view",t.view)}).on("change.sortBy",()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeSortBy&&this.storage.set("sortBy",t.sortBy)}).on("change.elements",this.async.debounce(()=>{o.Dom.detach(i.container),t.elements.length?t.elements.forEach(e=>{o.Dom.append(this.files.container,d(e))}):o.Dom.append(i.container,l.div(this.componentName+"_no-files_true",this.i18n("There are no files")))},this.defaultTimeout)).on("change.sources",this.async.debounce(()=>{o.Dom.detach(this.tree.container),t.sources.forEach(e=>{let t=e.name;if(t&&"default"!==t&&o.Dom.append(this.tree.container,l.div(this.tree.getFullElName("source-title"),t)),e.folders.forEach(i=>{let s=l.a(this.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":(0,n.normalizePath)(e.path,i+"/"),"data-name":i,"data-source":t,"data-source-path":e.path},l.span(this.tree.getFullElName("item-title"),i)),a=o=>r=>{this.e.fire(`${o}.filebrowser`,{name:i,path:(0,n.normalizePath)(e.path+"/"),source:t}),r.stopPropagation(),r.preventDefault()};if(this.e.on(s,"click",a("openFolder")),o.Dom.append(this.tree.container,s),".."!==i&&"."!==i){if(c.renameFolder&&this.dataProvider.canI("FolderRename")){let e=(0,r.Button)(this,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});e.onAction(a("renameFolder")),o.Dom.append(s,e.container)}if(c.deleteFolder&&this.dataProvider.canI("FolderRemove")){let e=(0,r.Button)(this,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});e.onAction(a("removeFolder")),o.Dom.append(s,e.container)}}}),c.createNewFolder&&this.dataProvider.canI("FolderCreate")){let i=(0,r.Button)(this,"plus","Add folder","secondary");i.onAction(()=>{this.e.fire("addFolder",{path:(0,n.normalizePath)(e.path+"/"),source:t})}),this.tree.append(i)}})},this.defaultTimeout))}},97379:function(e,t,i){"use strict";i.d(t,{FileBrowserFiles:function(){return n}});var o=i(67510);class n extends o.UIGroup{className(){return"FileBrowserFiles"}}},8172:function(e,t,i){"use strict";i.d(t,{FileBrowserFiles:function(){return o.FileBrowserFiles},FileBrowserTree:function(){return n.FileBrowserTree}});var o=i(97379),n=i(8193)},8193:function(e,t,i){"use strict";i.d(t,{FileBrowserTree:function(){return n}});var o=i(67510);class n extends o.UIGroup{className(){return"FileBrowserTree"}}},92643:function(e,t,i){"use strict";i.d(t,{Command:function(){return o}});class o{undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}constructor(e,t,i,o){this.oldValue=e,this.newValue=t,this.history=i,this.tick=o}}},78818:function(e,t,i){"use strict";i.d(t,{History:function(){return c}});var o=i(80480),n=i(81577),r=i(6441),s=i(92643),a=i(52604),l=i(57034);r.Config.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};class c extends o.ViewComponent{className(){return"History"}redo(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.__stack.canRedo()}undo(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.__stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}get length(){return this.__stack.length}get startValue(){return this.__startValue}set startValue(e){this.__startValue=e}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(e=!1){let t=this.snapshot.make();if(!a.Snapshot.equal(t,this.startValue)){let i=new s.Command(this.startValue,t,this,this.updateTick);if(e){let e=this.__stack.current();e&&this.updateTick===e.tick&&this.__stack.replace(i)}else this.__stack.push(i);this.startValue=t,this.fireChangeStack()}}fireChangeStack(){var e;this.j&&!this.j.isInDestruct&&(null==(e=this.j.events)||e.fire("changeStack"))}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}constructor(e,t=new l.Stack(e.o.history.maxHistoryLength),i=new a.Snapshot(e)){super(e),this.updateTick=0,this.__stack=t,this.snapshot=i,e.o.history.enable&&e.e.on("afterAddPlace.history",()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),e.events.on("internalChange internalUpdate",()=>{this.startValue=this.snapshot.make()}).on(e.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map(e=>e+".history").join(" "),()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())}).on(this,"change.history",this.onChange))})}}!function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,n.debounce)()],c.prototype,"onChange",null)},52604:function(e,t,i){"use strict";i.d(t,{Snapshot:function(){return s}});var o=i(91907),n=i(82758),r=i(2748);class s extends o.ViewComponent{className(){return"Snapshot"}static equal(e,t){return e.html===t.html&&JSON.stringify(e.range)===JSON.stringify(t.range)&&JSON.stringify(e.ranges)===JSON.stringify(t.ranges)&&!!e.backward==!!t.backward}static countNodesBeforeInParent(e){if(!e.parentNode)return 0;let t=e.parentNode.childNodes,i=0,o=null;for(let n=0;n<t.length;n+=1){if(!o||this.isIgnoredNode(t[n])||r.Dom.isText(o)&&r.Dom.isText(t[n])||(i+=1),t[n]===e)return i;o=t[n]}return 0}static strokeOffset(e,t){for(;r.Dom.isText(e);)e=e.previousSibling,r.Dom.isText(e)&&e.nodeValue&&(t+=e.nodeValue.length);return t}calcHierarchyLadder(e){let t=[];if(!e||!e.parentNode||!r.Dom.isOrContains(this.j.editor,e))return[];for(;e&&e!==this.j.editor;)e&&!s.isIgnoredNode(e)&&t.push(s.countNodesBeforeInParent(e)),e=e.parentNode;return t.reverse()}getElementByLadder(e){let t=this.j.editor,i;for(i=0;t&&i<e.length;i+=1)t=t.childNodes[e[i]];return t}get isBlocked(){return this.__isBlocked}__block(e){this.__isBlocked=e}transaction(e){this.__block(!0),this.__levelOfTransaction+=1;try{e()}catch(e){if(!n.IS_PROD)throw e}finally{this.__levelOfTransaction-=1,0===this.__levelOfTransaction&&this.__block(!1)}}make(){let e={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};e.html=this.__getCleanedEditorValue(this.j.editor);let t=this.j.s.sel;if(t&&t.rangeCount){let i=[];for(let e=0;e<t.rangeCount;e+=1){let o=t.getRangeAt(e),n=this.calcHierarchyLadder(o.startContainer),r=this.calcHierarchyLadder(o.endContainer),a=s.strokeOffset(o.startContainer,o.startOffset),l=s.strokeOffset(o.endContainer,o.endOffset);n.length||o.startContainer===this.j.editor||(a=0),r.length||o.endContainer===this.j.editor||(l=0),i.push({startContainer:n,startOffset:a,endContainer:r,endOffset:l})}e.range=i[0],i.length>1?e.ranges=i:t.isCollapsed||t.anchorNode!==t.getRangeAt(0).endContainer||t.anchorOffset!==t.getRangeAt(0).endOffset||(e.backward=!0)}return e}restore(e){this.transaction(()=>{let t=this.storeScrollState();this.__getCleanedEditorValue(this.j.editor)!==e.html&&(this.j.value=e.html),this.restoreOnlySelection(e),this.restoreScrollState(t)})}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(e){let{j:t}=this,{ow:i}=t;i.scrollTo(i.scrollX,e[0]),t.editor.scrollTop=e[1]}restoreOnlySelection(e){var t;try{if(e.range){let i=(null!=(t=e.ranges)?t:[e.range]).map(e=>{let t=this.j.ed.createRange();return t.setStart(this.getElementByLadder(e.startContainer),e.startOffset),t.setEnd(this.getElementByLadder(e.endContainer),e.endOffset),t});this.j.s.selectRange(i[0]);let o=this.j.s.sel;if(i.slice(1).forEach(e=>null==o?void 0:o.addRange(e)),e.backward&&1===i.length){let e=i[0];null==o||o.setBaseAndExtent(e.endContainer,e.endOffset,e.startContainer,e.startOffset)}}}catch(e){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild),n.IS_PROD}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(e){return r.Dom.isText(e)&&!e.nodeValue||r.Dom.isTemporary(e)}__getCleanedEditorValue(e){let t=e.cloneNode(!0);return r.Dom.temporaryList(t).forEach(r.Dom.unwrap),t.innerHTML}constructor(){super(...arguments),this.__isBlocked=!1,this.__levelOfTransaction=0}}},57034:function(e,t,i){"use strict";i.d(t,{Stack:function(){return o}});class o{get length(){return this.commands.length}clearRedo(){this.commands.length=this.stackPosition+1}clear(){this.commands.length=0,this.stackPosition=-1}push(e){this.clearRedo(),this.commands.push(e),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}replace(e){this.commands[this.stackPosition]=e}current(){return this.commands[this.stackPosition]}undo(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}redo(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}canUndo(){return this.stackPosition>=0}canRedo(){return this.stackPosition<this.commands.length-1}constructor(e){this.size=e,this.commands=[],this.stackPosition=-1}}},62489:function(e,t,i){"use strict";var o=i(12153),n=i(6441),r=i(49922),s=i(72144);n.Config.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},o.Icon.set("crop",r.default).set("resize",s.default)},49922:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M7 2v15h15M2 7h15v15"/> </g> </svg> '},72144:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="3" y="3" width="18" height="18" rx="2"/><path d="M8 16 16 8m-6 0h6v6"/> </g> </svg> '},50050:function(e,t,i){"use strict";i.d(t,{ImageEditor:function(){return k},openImageEditor:function(){return C}});var o,n=i(91907),r=i(65478),s=i(22732),a=i(49055),l=i(29960),c=i(41180),d=i(76078),u=i(37790),h=i(62843),p=i(6441);i(62489);var f=i(22461),m=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let g="jodit-image-editor",b=e=>t=>t.classList.contains(e);function v(e,t){return s.Dom.first(e,e=>s.Dom.isHTMLElement(e)&&t(e))}function y(e,t){let i=[];return s.Dom.each(e,e=>{s.Dom.isHTMLElement(e)&&t(e)&&i.push(e)}),i}let w="resize",_="crop",k=o=class e extends n.ViewComponent{className(){return"ImageEditor"}get o(){return this.options}hide(){this._dialog.close()}open(e,t){return this.j.async.promise(i=>{let o=new Date().getTime();this.image=this.j.c.element("img");let n=e=>s.Dom.isTag(e,"img")||b("jodit-icon_loader")(e);y(this.resize_box,n).forEach(s.Dom.safeRemove),y(this.crop_box,n).forEach(s.Dom.safeRemove),(0,c.css)(this.cropHandler,"background","transparent"),this.onSave=t,s.Dom.append(this.resize_box,this.j.c.element("i",{class:"jodit-icon_loader"})),s.Dom.append(this.crop_box,this.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(e)?e+="&_tst="+o:e+="?_tst="+o,(0,l.attr)(this.image,"src",e),this._dialog.open();let{widthInput:r,heightInput:a}=(0,d.refs)(this.editor),u=()=>{this.isDestructed||(this.image.removeEventListener("load",u),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,r.value=this.naturalWidth.toString(),a.value=this.naturalHeight.toString(),this.ratio=this.naturalWidth/this.naturalHeight,s.Dom.append(this.resize_box,this.image),this.cropImage=this.image.cloneNode(!0),s.Dom.append(this.crop_box,this.cropImage),s.Dom.safeRemove.apply(null,y(this.editor,b("jodit-icon_loader"))),this.activeTab===_&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),i(this._dialog))};this.image.addEventListener("load",u),this.image.complete&&u()})}onTitleModeClick(e){let t=this,i=e.target,o=null==i?void 0:i.parentElement;if(!o)return;y(t.editor,e=>b(`${g}__slider`)(e)||b(`${g}__area`)(e)).forEach(e=>e.classList.remove(`${g}_active`)),o.classList.add(`${g}_active`),this.activeTab=(0,l.attr)(o,"-area")||w;let n=v(t.editor,e=>b(`${g}__area`)(e)&&b(`${g}__area_`+t.activeTab)(e));n&&n.classList.add(`${g}_active`),t.activeTab===_&&t.showCrop()}onChangeSizeInput(e){let t,i=e.target,{widthInput:o,heightInput:n}=(0,d.refs)(this.editor),r="widthInput"===(0,l.attr)(i,"data-ref"),s=parseInt(i.value,10),a=r?this.o.min_width:this.o.min_height,u=r?this.o.min_height:this.o.min_width;s>a&&((0,c.css)(this.image,r?"width":"height",s),this.resizeUseRatio&&(t=r?Math.round(s/this.ratio):Math.round(s*this.ratio))>u&&((0,c.css)(this.image,r?"height":"width",t),r?n.value=t.toString():o.value=t.toString())),this.j.e.fire(this.resizeHandler,"updatesize")}onResizeHandleMouseDown(e){this.target=e.target,e.preventDefault(),e.stopImmediatePropagation(),this.clicked=!0,this.start_x=e.clientX,this.start_y=e.clientY,this.activeTab===_?(this.top_x=(0,c.css)(this.cropHandler,"left"),this.top_y=(0,c.css)(this.cropHandler,"top"),this.width=this.cropHandler.offsetWidth,this.height=this.cropHandler.offsetHeight):(this.width=this.image.offsetWidth,this.height=this.image.offsetHeight),this.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(e){this.clicked&&(this.clicked=!1,e.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(e){if(!this.clicked)return;let{widthInput:t,heightInput:i}=(0,d.refs)(this.editor);this.diff_x=e.clientX-this.start_x,this.diff_y=e.clientY-this.start_y,this.activeTab===w&&this.resizeUseRatio||this.activeTab===_&&this.cropUseRatio?this.diff_x?(this.new_w=this.width+this.diff_x,this.new_h=Math.round(this.new_w/this.ratio)):(this.new_h=this.height+this.diff_y,this.new_w=Math.round(this.new_h*this.ratio)):(this.new_w=this.width+this.diff_x,this.new_h=this.height+this.diff_y),this.activeTab===w?(this.new_w>this.o.resizeMinWidth&&((0,c.css)(this.image,"width",this.new_w+"px"),t.value=this.new_w.toString()),this.new_h>this.o.resizeMinHeight&&((0,c.css)(this.image,"height",this.new_h+"px"),i.value=this.new_h.toString()),this.j.e.fire(this.resizeHandler,"updatesize")):(this.target!==this.cropHandler?(this.top_x+this.new_w>this.cropImage.offsetWidth&&(this.new_w=this.cropImage.offsetWidth-this.top_x),this.top_y+this.new_h>this.cropImage.offsetHeight&&(this.new_h=this.cropImage.offsetHeight-this.top_y),(0,c.css)(this.cropHandler,{width:this.new_w,height:this.new_h})):(this.top_x+this.diff_x+this.cropHandler.offsetWidth>this.cropImage.offsetWidth&&(this.diff_x=this.cropImage.offsetWidth-this.top_x-this.cropHandler.offsetWidth),(0,c.css)(this.cropHandler,"left",this.top_x+this.diff_x),this.top_y+this.diff_y+this.cropHandler.offsetHeight>this.cropImage.offsetHeight&&(this.diff_y=this.cropImage.offsetHeight-this.top_y-this.cropHandler.offsetHeight),(0,c.css)(this.cropHandler,"top",this.top_y+this.diff_y)),this.j.e.fire(this.cropHandler,"updatesize"))}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),s.Dom.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,"."+g).off("."+g),super.destruct())}constructor(e){super(e),this.resizeUseRatio=!0,this.cropUseRatio=!0,this.clicked=!1,this.start_x=0,this.start_y=0,this.top_x=0,this.top_y=0,this.width=0,this.height=0,this.activeTab=w,this.naturalWidth=0,this.naturalHeight=0,this.ratio=0,this.new_h=0,this.new_w=0,this.diff_x=0,this.diff_y=0,this.cropBox={x:0,y:0,w:0,h:0},this.resizeBox={w:0,h:0},this.calcCropBox=()=>{let e,t,i=this.crop_box.parentNode,o=.8*i.offsetWidth,n=.8*i.offsetHeight,{naturalWidth:r,naturalHeight:s}=this;o>r&&n>s?(e=r,t=s):this.ratio>o/n?(e=o,t=o/r*s):(e=n/s*r,t=n),(0,c.css)(this.crop_box,{width:e,height:t})},this.showCrop=()=>{if(!this.cropImage)return;this.calcCropBox();let e=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=o.calcValueByPercent(e,this.o.cropDefaultWidth);let t=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.cropUseRatio?this.new_h=this.new_w/this.ratio:this.new_h=o.calcValueByPercent(t,this.o.cropDefaultHeight),(0,c.css)(this.cropHandler,{backgroundImage:"url("+(0,l.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:e/2-this.new_w/2,top:t/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")},this.updateCropBox=()=>{if(!this.cropImage)return;let e=this.cropImage.offsetWidth/this.naturalWidth,t=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,c.css)(this.cropHandler,"left")/e,this.cropBox.y=(0,c.css)(this.cropHandler,"top")/t,this.cropBox.w=this.cropHandler.offsetWidth/e,this.cropBox.h=this.cropHandler.offsetHeight/t,this.sizes.textContent=this.cropBox.w.toFixed(0)+"x"+this.cropBox.h.toFixed(0)},this.updateResizeBox=()=>{this.resizeBox.w=this.image.offsetWidth||this.naturalWidth,this.resizeBox.h=this.image.offsetHeight||this.naturalHeight},this.setHandlers=()=>{let e=this,{widthInput:t,heightInput:i}=(0,d.refs)(this.editor);e.j.e.on([v(e.editor,b("jodit_bottomright")),e.cropHandler],"mousedown."+g,this.onResizeHandleMouseDown).on(this.j.ow,"resize."+g,()=>{this.j.e.fire(e.resizeHandler,"updatesize"),e.showCrop(),this.j.e.fire(e.cropHandler,"updatesize")}),e.j.e.on(y(this.editor,b(`${g}__slider-title`)),"click",this.onTitleModeClick).on([t,i],"input",this.onChangeSizeInput);let{keepAspectRatioResize:o,keepAspectRatioCrop:n}=(0,d.refs)(this.editor);o&&o.addEventListener("change",()=>{this.resizeUseRatio=o.checked}),n&&n.addEventListener("change",()=>{this.cropUseRatio=n.checked}),e.j.e.on(e.resizeHandler,"updatesize",()=>{(0,c.css)(e.resizeHandler,{top:0,left:0,width:e.image.offsetWidth||e.naturalWidth,height:e.image.offsetHeight||e.naturalHeight}),this.updateResizeBox()}).on(e.cropHandler,"updatesize",()=>{if(!e.cropImage)return;let t=(0,c.css)(e.cropHandler,"left"),i=(0,c.css)(e.cropHandler,"top"),o=e.cropHandler.offsetWidth,n=e.cropHandler.offsetHeight;t<0&&(t=0),i<0&&(i=0),t+o>e.cropImage.offsetWidth&&(o=e.cropImage.offsetWidth-t,e.cropUseRatio&&(n=o/e.ratio)),i+n>e.cropImage.offsetHeight&&(n=e.cropImage.offsetHeight-i,e.cropUseRatio&&(o=n*e.ratio)),(0,c.css)(e.cropHandler,{width:o,height:n,left:t,top:i,backgroundPosition:-t-1+"px "+(-i-1)+"px",backgroundSize:e.cropImage.offsetWidth+"px "+e.cropImage.offsetHeight+"px"}),e.updateCropBox()}),Object.values(e.buttons).forEach(o=>{o.onAction(()=>{let n={action:e.activeTab,box:e.activeTab===w?e.resizeBox:e.cropBox};switch(o){case e.buttons.saveas:e.j.prompt("Enter new name","Save in new file",t=>{if(!(0,a.trim)(t))return e.j.alert("The name should not be empty"),!1;e.j.e.fire("afterImageEditorSave",n,t),e.onSave(t,n,e.hide,t=>{e.j.alert(t.message)})});break;case e.buttons.save:e.j.e.fire("afterImageEditorSave",n),e.onSave(void 0,n,e.hide,t=>{e.j.alert(t.message)});break;case e.buttons.reset:e.activeTab===w?((0,c.css)(e.image,{width:null,height:null}),t.value=e.naturalWidth.toString(),i.value=e.naturalHeight.toString(),e.j.e.fire(e.resizeHandler,"updatesize")):e.showCrop()}})})},this.options=e&&e.o&&e.o.imageeditor?e.o.imageeditor:p.Config.defaultOptions.imageeditor;let t=this.options;this.resizeUseRatio=t.resizeUseRatio,this.cropUseRatio=t.cropUseRatio,this.buttons={reset:(0,h.Button)(this.j,"update","Reset"),save:(0,h.Button)(this.j,"save","Save"),saveas:(0,h.Button)(this.j,{icon:{name:"save"},name:"save-as",text:"Save as ..."})},this.activeTab=t.resize?w:_,this.editor=(0,f.form)(this.j,this.options);let{resizeBox:i,cropBox:n}=(0,d.refs)(this.editor);this.resize_box=i,this.crop_box=n,this.sizes=v(this.editor,e=>b(`${g}__sizes`)(e)&&!!s.Dom.closest(e,e=>s.Dom.isHTMLElement(e)&&b(`${g}__area_crop`)(e),this.editor)),this.resizeHandler=v(this.editor,b(`${g}__resizer`)),this.cropHandler=v(this.editor,b(`${g}__croper`)),this._dialog=this.j.dlg({buttons:["fullsize","dialog.close"]}),this._dialog.setContent(this.editor),this._dialog.setSize(this.o.width,this.o.height),this._dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}};function C(e,t,i,o,n,r){return this.getInstance("ImageEditor",this.o).open(e,(e,s,a,l)=>{if("saved"===s.action){a(),n&&n(s.newPath);return}(0,u.call)("resize"===s.action?this.dataProvider.resize:this.dataProvider.crop,i,o,t,e,s.box).then(e=>{e&&(a(),n&&n("string"==typeof e?e:void 0))}).catch(e=>{l(e),r&&r(e)})})}k.calcValueByPercent=(e,t)=>{let i,o=t.toString(),n=parseFloat(e.toString());return(i=/^[-+]?[0-9]+(px)?$/.exec(o))?parseInt(o,10):(i=/^([-+]?[0-9.]+)%$/.exec(o))?Math.round(n*(parseFloat(i[1])/100)):n||0},m([r.autobind],k.prototype,"hide",null),m([r.autobind],k.prototype,"open",null),m([r.autobind],k.prototype,"onTitleModeClick",null),m([(0,r.debounce)(),r.autobind],k.prototype,"onChangeSizeInput",null),m([r.autobind],k.prototype,"onResizeHandleMouseDown",null),m([r.autobind],k.prototype,"onGlobalMouseUp",null),m([(0,r.throttle)(10)],k.prototype,"onGlobalMouseMove",null),k=o=m([r.component],k)},22461:function(e,t,i){"use strict";var o=i(67510);let n="jodit-image-editor",r=o.Icon.get.bind(o.Icon),s=(e,t="jodti-image-editor_active")=>e?t:"";i.d(t,["form",0,(e,t)=>{let i=e.i18n.bind(e),o=(e,t,o=!0)=>`<div class="jodit-form__group">
65
65
  <label class="jodit-switcher-wrapper">
66
66
  <span class='jodit-switcher'>
67
67
  <input ${s(o,"checked")} data-ref="${t}" type="checkbox"/>
@@ -140,7 +140,7 @@
140
140
  <div class="&__spinner"></div>
141
141
  </div>
142
142
  </div>
143
- </div>`}setPrompt(e){if(e){let{jodit:t}=this,i=t.o.aiAssistant[e],{aiCommonPrefixPrompt:o,aiCommonSuffixPrompt:n}=t.o.aiAssistant;this.promptInput.value=[o,(0,s.isString)(i)?i:"",n].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(e){this.setMod("loading",!1),r.Dom.detach(this.__results),this.__aiResult=e,r.Dom.append(this.__results,this.jodit.c.fromHTML(e)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(e){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=e,r.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let t=this.getFullElName("","hide","true");this.__results.classList.add(t),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(e){this.__submitButton.state.disabled=e,this.__tryAgainButton.state.disabled=e}__toggleInsertButton(e){this.__insertButton.state.disabled=e,this.__insertAfterButton.state.disabled=e}constructor(e,{onInsert:t,onInsertAfter:i}){super(e),this.__aiResult="",this.__error=this.getElm("error"),this.__body=this.getElm("body"),this.__buttons=this.getElm("buttons"),this.__results=this.getElm("results"),this.__spinner=this.getElm("spinner"),this.__insertButton=(0,a.Button)(e,"","Insert","primary").onAction(()=>t(this.__aiResult)),this.__insertAfterButton=(0,a.Button)(e,"","Insert After","initial").onAction(()=>i(this.__aiResult));let o=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,a.Button)(e,"ai-assistant","").onAction(o),this.__tryAgainButton=(0,a.Button)(e,"update","","initial").onAction(o),this.promptInput=new a.UITextArea(e,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});let n=new a.UIBlock(e,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new a.UIForm(e,[new a.UIBlock(e,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(t=>{this.__error.textContent="",this.setMod("loading",!0),e.e.fire("invokeAiAssistant",t.prompt);let i=this.getFullElName("","hide","true");this.__results.classList.remove(i),this.__buttons.classList.remove(i),r.Dom.detach(this.__results),r.Dom.append(this.__results,this.__spinner),this.__insertButton.focus()}),r.Dom.append(this.__buttons,n.container),r.Dom.append(this.__body,this.__formAiAssistant.container),this.onChangePromptValue()}};c([(0,n.watch)(":ai-assistant-response")],d.prototype,"onAiAssistentResponse",null),c([(0,n.watch)(":ai-assistant-error")],d.prototype,"onAiAssistentError",null),c([(0,n.watch)("promptInput:change")],d.prototype,"onChangePromptValue",null),d=c([o.component],d)},25187:function(e,t,i){"use strict";i(73391),i(12391),i(93183),i(66707),i(41107),i(71255),i(82439),i(61323),i(93079),i(19063),i(19271),i(1255),i(575),i(11317),i(36243),i(23399),i(96111),i(2169),i(42263),i(16233),i(77469),i(23531),i(80763),i(3215),i(70045),i(93401),i(76295),i(59483),i(91071),i(61019),i(65517),i(20071),i(32309),i(64837),i(79799),i(31571),i(85407),i(59451),i(18363),i(8355),i(58519),i(6687),i(56113),i(9159),i(12019),i(36125),i(9881),i(28545),i(45927),i(52951),i(43809),i(7309),i(68687),i(59495),i(39627),i(767),i(43003),i(72439),i(26551),i(72253),i(65735),i(83671),i(3115)},93183:function(e,t,i){"use strict";var o=i(82758),n=i(22732),r=i(580),s=i(23282),a=i(50911),l=i(45124);i(32496);var c=i(11338),d=i(14630);class u extends a.Plugin{afterInit(e){e.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:e.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:e.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:e.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:e.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:e.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:e.o.delete.hotkeys.backspaceSentence})}beforeDestruct(e){e.e.off("afterCommand.delete")}onDelete(e,t="char"){let i=this.j,r=i.selection;if(r.isFocused()||r.focus(),(0,c.checkNotCollapsed)(i))return i.e.fire("backSpaceAfterDelete",e),!1;let a=r.range,u=i.createInside.text(o.INVISIBLE_SPACE);try{if(n.Dom.safeInsertNode(a,u),!n.Dom.isOrContains(i.editor,u))return;if(i.e.fire("backSpaceBeforeCases",e,u))return!1;(0,l.moveNodeInsideStart)(i,u,e);let r=i.o.delete.disableCases;if(d.casesMap.some(([n,a])=>{if(!(r&&r.has(n))&&(0,s.isFunction)(a)&&a(i,u,e,t))return o.IS_PROD,!0}))return!1}catch(e){throw o.IS_PROD,e}finally{i.e.fire("backSpaceAfterDelete",e,u),this.safeRemoveEmptyNode(u)}return!1}safeRemoveEmptyNode(e){var t,i;let{range:o}=this.j.s;o.startContainer===e&&(e.previousSibling?n.Dom.isText(e.previousSibling)?o.setStart(e.previousSibling,null!=(i=null==(t=e.previousSibling.nodeValue)?void 0:t.length)?i:0):o.setStartAfter(e.previousSibling):e.nextSibling&&(n.Dom.isText(e.nextSibling)?o.setStart(e.nextSibling,0):o.setStartBefore(e.nextSibling)),o.collapse(!0),this.j.s.selectRange(o)),n.Dom.safeRemove(e)}}u.requires=["hotkeys"],r.pluginSystem.add("backspace",u)},62845:function(e,t,i){"use strict";i.d(t,{checkJoinNeighbors:function(){return s}});var o=i(82758),n=i(2748),r=i(63785);function s(e,t,i){let r=t,s=r;for(;r&&!n.Dom.findNotEmptySibling(r,i)&&r.parentElement!==e.editor;)s=r=r.parentElement;if(n.Dom.isElement(s)&&n.Dom.isContentEditable(s,e.editor)){var l,c;let r,d,u,h=n.Dom.findNotEmptySibling(s,i);if(n.Dom.isTag(h,"br"))return n.Dom.safeRemove(h),e.s.setCursorBefore(t),!0;if(h&&(l=s,c=h,r=n.Dom.isTag(c,o.LIST_TAGS),d=n.Dom.isTag(l,o.LIST_TAGS),u=(e,t)=>t?e.firstElementChild:e.lastElementChild,(d?(c=e.createInside.element(e.o.enterBlock),n.Dom.before(l,c),a(e,u(l,i),c,i)):!!c&&!!r&&!d&&a(e,l,u(c,!i),i))||a(e,s,function(e,t){if(!n.Dom.isTag(e,"table"))return e;let i=[];return n.Dom.each(e,e=>{n.Dom.isCell(e)&&i.push(e)}),i.length?i[t?i.length-1:0]:null}(h,i),i)))return e.s.setCursorBefore(t),!0}return!1}function a(e,t,i,o){if(t&&n.Dom.isElement(i)){n.Dom.moveContent(t,i,!o,(0,r.getMoveFilter)(e));let s=t;for(;s&&s!==e.editor&&n.Dom.isEmpty(s);){let e=s.parentElement;n.Dom.safeRemove(s),s=e}return!0}return!1}},91748:function(e,t,i){"use strict";i.d(t,{checkJoinTwoLists:function(){return s}});var o=i(2748),n=i(37790),r=i(63785);function s(e,t,i){let s=o.Dom.findSibling(t,i),a=o.Dom.findSibling(t,!i);if(!o.Dom.closest(t,o.Dom.isElement,e.editor)&&o.Dom.isList(s)&&o.Dom.isList(a)&&o.Dom.isTag(s.lastElementChild,"li")&&o.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:c}=e.s,d=s.lastElementChild,u=a.firstElementChild;return(0,n.call)(i?o.Dom.prepend:o.Dom.append,u,t),o.Dom.moveContent(a,s,!i,(0,r.getMoveFilter)(e)),o.Dom.safeRemove(a),(0,n.call)(i?o.Dom.append:o.Dom.prepend,d,t),(0,n.call)(i?l:c,t),!0}return!1}},11338:function(e,t,i){"use strict";function o(e){return!e.s.isCollapsed()&&(e.execCommand("Delete"),!0)}i.d(t,{checkNotCollapsed:function(){return o}})},73792:function(e,t,i){"use strict";i.d(t,{checkRemoveChar:function(){return function e(t,i,s,l){var c,d,u,h;let p,f=s?-1:1,m=n.Dom.sibling(i,!s),g=n.Dom.sibling(i,s),b=null,v=!1;for(g||(g=a(i,s,t.editor));g&&(n.Dom.isText(g)||n.Dom.isInlineBlock(g));){for(;n.Dom.isInlineBlock(g);)g=s?null==g?void 0:g.lastChild:null==g?void 0:g.firstChild;if(!g)break;if((null==(c=g.nodeValue)?void 0:c.length)&&(p=function(e,t,i,s){let a=(0,r.toArray)(e.nodeValue),l=a.length,c=t?l-1:0;if(a[c]===o.INVISIBLE_SPACE)for(;a[c]===o.INVISIBLE_SPACE;)c+=i;let d=a[c];if(a[c+i]===o.INVISIBLE_SPACE){for(c+=i;a[c]===o.INVISIBLE_SPACE;)c+=i;c+=t?1:-1}return a=t&&c<0?[]:a.slice(t?0:c+1,t?c:l),function(e,t,i){var s;if(!e||!n.Dom.isText(e)||(!t?/ $/:/^ /).test(null!=(s=e.nodeValue)?s:"")||!(0,r.trimInv)(e.nodeValue||"").length)for(let e=t?i.length-1:0;t?e>=0:e<i.length;e+=t?-1:1)if(" "===i[e])i[e]=o.NBSP_SPACE;else break}(s,t,a),e.nodeValue=a.join(""),d}(g,s,f,m),!g.nodeValue.length&&n.Dom.isInlineBlock(g.parentNode)&&(g.nodeValue=o.INVISIBLE_SPACE)),(null==(d=g.nodeValue)?void 0:d.length)||(b=g),!(0,r.isVoid)(p)&&p!==o.INVISIBLE_SPACE){u=g,h=p,(0,r.call)(s?n.Dom.after:n.Dom.before,u,i),("sentence"===l||"word"===l&&" "!==h&&h!==o.NBSP_SPACE)&&e(t,i,s,l),v=!0;break}let y=a(g,s,t.editor);b&&(n.Dom.safeRemove(b),b=null),g=y}return b&&n.Dom.safeRemove(b),v&&(function(e){let t=e.parentElement;for(;t&&n.Dom.isInlineBlock(t)&&n.Dom.isTag(t,"a");){let i=t.parentElement;n.Dom.isEmpty(t)&&(n.Dom.after(t,e),n.Dom.safeRemove(t)),t=i}}(i),i.parentElement!==t.editor&&n.Dom.isBlock(i.parentElement)&&n.Dom.each(i.parentElement,n.Dom.isEmptyTextNode)&&n.Dom.after(i,t.createInside.element("br")),t.s.setCursorBefore(i),n.Dom.isTag(i.previousSibling,"br")&&!n.Dom.findNotEmptySibling(i,!1)&&n.Dom.after(i,t.createInside.element("br"))),v}}});var o=i(82758),n=i(22732),r=i(21537),s=i(63785);function a(e,t,i){let o=n.Dom.sibling(e,t);return!o&&e.parentNode&&e.parentNode!==i&&(o=(0,s.findMostNestedNeighbor)(e,!t,i,!0))&&n.Dom.closest(e,"li",i)!==n.Dom.closest(o,"li",i)?null:o}},87536:function(e,t,i){"use strict";i.d(t,{checkRemoveContentNotEditable:function(){return s}});var o=i(22732),n=i(21537),r=i(45124);function s(e,t,i){let s=o.Dom.findSibling(t,i);return!s&&t.parentElement&&t.parentElement!==e.editor&&(s=o.Dom.findSibling(t.parentElement,i)),!(!o.Dom.isElement(s)||o.Dom.isContentEditable(s,e.editor))&&((0,n.call)(i?o.Dom.before:o.Dom.after,s,t),o.Dom.safeRemove(s),(0,r.moveNodeInsideStart)(e,t,i),(0,n.call)(i?e.s.setCursorBefore:e.s.setCursorAfter,t),!0)}},12474:function(e,t,i){"use strict";i.d(t,{checkRemoveEmptyNeighbor:function(){return n}});var o=i(2748);function n(e,t,i){let n=o.Dom.closest(t,o.Dom.isElement,e.editor);if(!n)return!1;let r=o.Dom.findNotEmptySibling(n,i);return!!(r&&o.Dom.isEmpty(r))&&(o.Dom.safeRemove(r),e.s.setCursorBefore(t),!0)}},58940:function(e,t,i){"use strict";i.d(t,{checkRemoveEmptyParent:function(){return s}});var o=i(82758),n=i(22732),r=i(91748);function s(e,t,i){let s=!1,{setCursorBefore:a,setCursorIn:l}=e.s,c=n.Dom.closest(t,n.Dom.isElement,e.editor);if(!c||!n.Dom.isEmpty(c))return!1;let d=n.Dom.findNotEmptyNeighbor(t,i,e.editor);do if(c&&n.Dom.isEmpty(c)&&!n.Dom.isCell(c)){n.Dom.after(c,t);let i=n.Dom.closest(c,e=>n.Dom.isElement(e)&&e!==c,e.editor);n.Dom.safeRemove(c),s=!0,c=i}else break;while(c)return!!(s&&(0,r.checkJoinTwoLists)(e,t,i))||(!d||n.Dom.isText(d)||n.Dom.isTag(d,o.INSEPARABLE_TAGS)?a(t):l(d,!i),s)}},56825:function(e,t,i){"use strict";i.d(t,{checkRemoveUnbreakableElement:function(){return s}});var o=i(82758),n=i(2748),r=i(58940);function s(e,t,i){let s=n.Dom.findSibling(t,i);return!!(n.Dom.isElement(s)&&(n.Dom.isTag(s,o.INSEPARABLE_TAGS)||n.Dom.isEmpty(s)))&&(n.Dom.safeRemove(s),n.Dom.isTag(s,"br")&&!n.Dom.findNotEmptySibling(t,!1)&&n.Dom.after(t,e.createInside.element("br")),e.s.setCursorBefore(t),n.Dom.isTag(s,"br")&&(0,r.checkRemoveEmptyParent)(e,t,i),!0)}},90240:function(e,t,i){"use strict";i.d(t,{checkTableCell:function(){return n}});var o=i(2748);function n(e,t){let i=t.parentElement;return!!o.Dom.isCell(i)}},68034:function(e,t,i){"use strict";i.d(t,{checkUnwrapFirstListItem:function(){return r}});var o=i(2748),n=i(43555);function r(e,t,i){var r;let s=o.Dom.closest(t,o.Dom.isElement,e.editor),{s:a}=e;if(o.Dom.isLeaf(s)&&(null==(r=null==s?void 0:s.parentElement)?void 0:r[i?"firstElementChild":"lastElementChild"])===s&&a.cursorInTheEdge(i,s)){let r=s.parentElement,l=e.createInside.element(e.o.enterBlock);return(0,n.call)(i?o.Dom.before:o.Dom.after,r,l),o.Dom.moveContent(s,l),o.Dom.safeRemove(s),o.Dom.isEmpty(r)&&o.Dom.safeRemove(r),(0,n.call)(i?a.setCursorBefore:a.setCursorAfter,t),!0}return!1}},14630:function(e,t,i){"use strict";var o=i(62845),n=i(91748),r=i(73792),s=i(87536),a=i(12474),l=i(58940),c=i(56825),d=i(90240),u=i(68034);let h=[["remove-unbreakable",c.checkRemoveUnbreakableElement],["remove-not-editable",s.checkRemoveContentNotEditable],["remove-char",r.checkRemoveChar],["table-cell",d.checkTableCell],["remove-empty-parent",l.checkRemoveEmptyParent],["remove-empty-neighbor",a.checkRemoveEmptyNeighbor],["join-two-lists",n.checkJoinTwoLists],["join-neighbors",o.checkJoinNeighbors],["unwrap-first-list-item",u.checkUnwrapFirstListItem]];h.map(([,e])=>e),i.d(t,["casesMap",0,h])},32496:function(e,t,i){"use strict";i(6441).Config.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},63785:function(e,t,i){"use strict";i.d(t,{findMostNestedNeighbor:function(){return n},getMoveFilter:function(){return r}});var o=i(22732);function n(e,t,i,r=!1){let s=e=>t?e.firstChild:e.lastChild,a=o.Dom.findNotEmptyNeighbor(e,!t,i);if(r&&o.Dom.isElement(a)&&!o.Dom.isInlineBlock(a))return null;if(a)do{if(!s(a))return a;a=s(a)}while(a)return null}function r(e){return t=>!0!==e.e.fire("backSpaceIsMovedIgnore",t)}},41107:function(e,t,i){"use strict";var o=i(580),n=i(21537),r=i(12153),s=i(6441);i(73674);var a=i(820),l=i(53651),c=i(16020),d=i(89758),u=i(98527),h=i(51855);o.pluginSystem.add("bold",function(e){let t=t=>{let i,o=s.Config.defaultOptions.controls[t],r={...o.css};return Object.keys(r).forEach(e=>{i||(i={}),i[e]=(0,n.isArray)(r[e])?r[e][0]:r[e]}),e.s.commitStyle({element:o.tags?o.tags[0]:void 0}),e.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(t=>{e.registerButton({name:t,group:"font-style"})}),["superscript","subscript"].forEach(t=>{e.registerButton({name:t,group:"script"})}),e.registerCommand("bold",{exec:t,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:t,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:t,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:t}).registerCommand("subscript",{exec:t}).registerCommand("superscript",{exec:t})}),r.Icon.set("bold",a.default).set("italic",l.default).set("strikethrough",c.default).set("subscript",d.default).set("superscript",u.default).set("underline",h.default)},73674:function(e,t,i){"use strict";var o=i(6441);o.Config.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},o.Config.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},o.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},o.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},o.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},o.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},820:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.75" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M6 4h7a4 4 0 0 1 0 8H6V4Zm0 8h8a4 4 0 0 1 0 8H6v-8Z"/> </g> </svg> '},53651:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M10 4h9M5 20h9M15 4 9 20"/> </g> </svg> '},16020:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M17 6c-1-1.5-2.5-2-5-2-3 0-5 1.5-5 4 0 1.8 1.5 3 5 4s5 2.2 5 4c0 2.5-2 4-5 4-2.5 0-4-.5-5-2M3 12h18"/> </g> </svg> '},89758:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 4 9 12M12 4 3 16M16 16a2 2 0 0 1 4 0c0 1.5-4 3-4 5h4"/> </g> </svg> '},98527:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 8 9 12M12 8 3 20M16 4a2 2 0 0 1 4 0c0 1.5-4 3-4 5h4"/> </g> </svg> '},51855:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M6 3v8a6 6 0 0 0 12 0V3M4 21h16"/> </g> </svg> '},71255:function(e,t,i){"use strict";var o=i(2748),n=i(580),r=i(37790),s=i(50911),a=i(12153),l=i(6441),c=i(31151);l.Config.prototype.controls.classSpan={command:"applyClassName",exec:r.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(e,t){let i=e.s.current();if(i){let n=o.Dom.closest(i,o.Dom.isElement,e.editor)||e.editor;return!!(t.control.args&&n.classList.contains(t.control.args[0].toString()))}return!1},isActive(e,t){let i=e.s.current();if(i){let n=o.Dom.closest(i,o.Dom.isElement,e.editor)||e.editor,r=!1;return t.control.list&&Object.keys(t.control.list).forEach(e=>{n.classList.contains(e)&&(r=!0)}),!!(n&&n!==e.editor&&void 0!==t.control.list&&r)}return!1},childTemplate:(e,t,i)=>`<span class="${t}">${e.i18n(i)}</span>`,tooltip:"Insert className"};class d extends s.Plugin{afterInit(e){e.registerCommand("applyClassName",(t,i,o)=>(e.s.commitStyle({attributes:{class:o}}),!1))}beforeDestruct(){}constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}}n.pluginSystem.add("classSpan",d),a.Icon.set("class-span",c.default)},31151:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M8 4H5v16h3m8-16h3v16h-3M9 15l3-7 3 7m-5-2h4"/> </g> </svg> '},82439:function(e,t,i){"use strict";var o=i(65478),n=i(2748),r=i(70071),s=i(580),a=i(86518),l=i(20356);i(46776);var c=i(59498),d=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class u extends l.Plugin{afterInit(e){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;let e=this.j;this.walker.setWork(e.editor),this.currentSelectionNode=e.s.current()}startWalker(){let{jodit:e}=this,t=(0,c.getHash)(this.j.o.cleanHTML.allowTags),i=(0,c.getHash)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",o=>(0,c.visitNodeWalker)(e,o,t,i,this.currentSelectionNode)).on("end",e=>{this.j.e.fire(e?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(e){if("removeformat"===e.toLowerCase())return this.j.s.isCollapsed()?(0,c.removeFormatForCollapsedSelection)(this.j):(0,c.removeFormatForSelection)(this.j),!1}onBeforeSetNativeEditorValue(e){let[t,i]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.od.implementation.createHTMLDocument("").body];return t.innerHTML=e.value,this.j.e.fire("safeHTML",t),e.value=t.innerHTML,(0,a.safeHTML)(t,{safeJavaScriptLink:!0,removeOnError:!0}),n.Dom.safeRemove(i),!1}onAfterGetValueFromEditor(e){this.j.o.cleanHTML.collapseEmptyValueToEmptyString&&/^<([a-z][a-z0-9]*)\b[^>]*>(?:<br\/?>)?<\/\1>$/i.test(e.value.trim())&&(e.value="")}onSafeHTML(e){let t=this.j.o.cleanHTML.sanitizer;t&&(e.innerHTML=t(e.innerHTML)),(0,a.safeHTML)(e,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new r.LazyWalker(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}}d([(0,o.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],u.prototype,"onChangeCleanHTML",null),d([(0,o.hook)("ready")],u.prototype,"startWalker",null),d([(0,o.watch)(":beforeCommand")],u.prototype,"beforeCommand",null),d([(0,o.watch)(":beforeSetNativeEditorValue")],u.prototype,"onBeforeSetNativeEditorValue",null),d([(0,o.watch)(":afterGetValueFromEditor")],u.prototype,"onAfterGetValueFromEditor",null),d([(0,o.watch)(":safeHTML")],u.prototype,"onSafeHTML",null),s.pluginSystem.add("cleanHtml",u)},46776:function(e,t,i){"use strict";var o=i(12153),n=i(6441),r=i(44330);n.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,collapseEmptyValueToEmptyString:!1,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script,iframe,object,embed",useIframeSandbox:!1,removeOnError:!0,removeEventAttributes:!0,safeJavaScriptLink:!0,safeLinksTarget:!0,allowedStyles:!1,sanitizer:!1,sandboxIframesInContent:!0,convertUnsafeEmbeds:["object","embed"],disableCleanFilter:null},n.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},o.Icon.set("eraser",r.default)},44330:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m4 12 10-9 7 7-10 10H7l-4-4a3 3 0 0 1 1-4Zm3-3 8 7m-4 4h10"/> </g> </svg> '},83447:function(e,t,i){"use strict";i.d(t,{getHash:function(){return r}});var o=i(70799),n=i(49055);function r(e){let t=/([^[]*)\[([^\]]+)]/,i=/[\s]*,[\s]*/,r=/^(.*)[\s]*=[\s]*(.*)$/,s={};return(0,o.isString)(e)?(e.split(i).map(e=>{e=(0,n.trim)(e);let o=t.exec(e),a={};if(o){let e=o[2].split(i);o[1]&&(e.forEach(e=>{e=(0,n.trim)(e);let t=r.exec(e);t?a[t[1]]=t[2]:a[e]=!0}),s[o[1].toUpperCase()]=a)}else s[e.toUpperCase()]=!0}),s):!!e&&(Object.keys(e).forEach(t=>{s[t.toUpperCase()]=e[t]}),s)}},59498:function(e,t,i){"use strict";i.d(t,{getHash:function(){return o.getHash},removeFormatForCollapsedSelection:function(){return n.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return r.removeFormatForSelection},visitNodeWalker:function(){return s.visitNodeWalker}});var o=i(83447),n=i(84272),r=i(42312),s=i(39516)},15908:function(e,t,i){"use strict";i.d(t,{isAllowedMediaEmbed:function(){return r}});let o=/^(https?:)?\/\/(www\.|m\.|music\.)?youtube(-nocookie)?\.com\/embed\//i,n=/^(https?:)?\/\/player\.vimeo\.com\/video\//i;function r(e){return o.test(e)||n.test(e)}},84272:function(e,t,i){"use strict";i.d(t,{isInlineBlock:function(){return s},removeFormatForCollapsedSelection:function(){return r}});var o=i(82758),n=i(2748);function r(e,t){let{s:i}=e,o=t;if(!o){o=e.createInside.fake();let{range:t}=i;n.Dom.safeInsertNode(t,o),t.collapse()}let r=n.Dom.furthest(o,s,e.editor);if(r)if(i.cursorOnTheLeft(r))n.Dom.before(r,o);else if(i.cursorOnTheRight(r))n.Dom.after(r,o);else{let e=i.splitSelection(r);e&&n.Dom.after(e,o)}t||(i.setCursorBefore(o),n.Dom.safeRemove(o))}function s(e){return n.Dom.isInlineBlock(e)&&!n.Dom.isTag(e,o.INSEPARABLE_TAGS)}},42312:function(e,t,i){"use strict";i.d(t,{removeFormatForSelection:function(){return s}});var o=i(2748),n=i(43555),r=i(84272);function s(e){let{s:t,editor:i,createInside:s}=e,{range:a}=t,l=a.cloneRange(),c=a.cloneRange(),d=s.fake(),u=s.fake();l.collapse(!0),c.collapse(!1),o.Dom.safeInsertNode(l,d),o.Dom.safeInsertNode(c,u),a.setStartBefore(d),a.collapse(!0),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,d),a.setEndAfter(u),a.collapse(!1),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,u);let h=[];o.Dom.between(d,u,e=>{(0,r.isInlineBlock)(e)&&!o.Dom.isTag(e,"a")&&h.push(e),o.Dom.isElement(e)&&(0,n.attr)(e,"style")&&(0,n.attr)(e,"style",null)}),h.forEach(e=>o.Dom.unwrap(e));let p=(e,t)=>{if(!o.Dom.findNotEmptySibling(e,t)){let o=e.parentNode;if(o&&o!==i&&(0,n.attr)(o,"style"))return(0,n.attr)(o,"style",null),p(o,t),!0}};p(d,!0)&&p(u,!1),a.setStartAfter(d),a.setEndBefore(u),t.selectRange(a),o.Dom.safeRemove(d),o.Dom.safeRemove(u)}},82558:function(e,t,i){"use strict";i.d(t,{allowAttributes:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i,r){let s=r&&o.Dom.isElement(t)&&r[t.nodeName];if(r&&o.Dom.isElement(t)&&!0!==s){if(!s)return i;let e=t.attributes;if(e&&e.length){let o=[];for(let t=0;t<e.length;t+=1){let i=s[e[t].name];i&&(!0===i||i===e[t].value)||o.push(e[t].name)}o.length&&(i=!0),o.forEach(e=>{(0,n.attrRaw)(t,e,null)})}}return i}},1962:function(e,t,i){"use strict";i.d(t,{convertUnsafeEmbeds:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i){let r=e.o.cleanHTML.convertUnsafeEmbeds;if(!r||!o.Dom.isElement(t))return i;let s=t.nodeName.toLowerCase();if(!r.includes(s))return i;let a=(0,n.attr)(t,"data")||(0,n.attr)(t,"src")||(0,n.attr)(t,"movie")||"";if(!a)return o.Dom.safeRemove(t),!0;let l=e.createInside.element("iframe");return(0,n.attr)(l,{src:a,sandbox:"",frameborder:"0",width:(0,n.attr)(t,"width"),height:(0,n.attr)(t,"height")}),o.Dom.replace(t,l,void 0,!1,!0),!0}},39433:function(e,t,i){"use strict";i.d(t,{fillEmptyParagraph:function(){return s}});var o=i(82758),n=i(2748);let r=new Set(["table","tbody","thead","tfoot","tr"]);function s(e,t,i){if(e.o.cleanHTML.fillEmptyParagraph&&n.Dom.isBlock(t)&&n.Dom.isEmpty(t,o.INSEPARABLE_TAGS)&&!n.Dom.isTag(t,r)){let i=e.createInside.element("br");return n.Dom.append(t,i),!0}return i}},45235:function(e,t,i){"use strict";i.r(t),i.d(t,{allowAttributes:function(){return o.allowAttributes},convertUnsafeEmbeds:function(){return n.convertUnsafeEmbeds},fillEmptyParagraph:function(){return r.fillEmptyParagraph},removeEmptyTextNode:function(){return s.removeEmptyTextNode},removeInvTextNodes:function(){return a.removeInvTextNodes},replaceOldTags:function(){return l.replaceOldTags},safeLinksTarget:function(){return c.safeLinksTarget},sandboxIframesInContent:function(){return d.sandboxIframesInContent},sanitizeAttributes:function(){return u.sanitizeAttributes},sanitizeStyles:function(){return h.sanitizeStyles},tryRemoveNode:function(){return p.tryRemoveNode}});var o=i(82558),n=i(1962),r=i(39433),s=i(53392),a=i(25813),l=i(80973),c=i(95614),d=i(85978),u=i(384),h=i(15583),p=i(28800)},53392:function(e,t,i){"use strict";i.d(t,{removeEmptyTextNode:function(){return n}});var o=i(2748);function n(e,t,i,n,r,s){return o.Dom.isText(t)&&!t.nodeValue?(t===s&&e.s.isFocused()&&e.s.isCollapsed()&&e.s.setCursorAfter(t),o.Dom.safeRemove(t),!0):i}},25813:function(e,t,i){"use strict";i.d(t,{removeInvTextNodes:function(){return r}});var o=i(82758),n=i(2748);function r(e,t,i,r,s,a){if(a===t||!n.Dom.isText(t)||null==t.nodeValue||!(0,o.INVISIBLE_SPACE_REG_EXP)().test(t.nodeValue))return i;let l=n.Dom.furthest(a,n.Dom.isBlock,e.editor);return!l||n.Dom.isOrContains(l,t)?i:(t.nodeValue=t.nodeValue.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),""),t===a&&e.s.isFocused()&&e.s.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||n.Dom.safeRemove(t),!0)}},80973:function(e,t,i){"use strict";i.d(t,{replaceOldTags:function(){return n}});var o=i(2748);function n(e,t,i){let n=function(e,t,i){if(!i||!o.Dom.isHTMLElement(t))return t;let n=i[t.nodeName.toLowerCase()]||i[t.nodeName];return n?o.Dom.replace(t,n,e.createInside,!0,!1):t}(e,t,e.o.cleanHTML.replaceOldTags);return t!==n||i}},95614:function(e,t,i){"use strict";i.d(t,{safeLinksTarget:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i){if(!e.o.cleanHTML.safeLinksTarget||!o.Dom.isElement(t)||"A"!==t.nodeName||"_blank"!==(0,n.attr)(t,"target"))return i;let r=((0,n.attr)(t,"rel")||"").split(/\s+/).filter(Boolean),s=!1;return(r.includes("noopener")||(r.push("noopener"),s=!0),r.includes("noreferrer")||(r.push("noreferrer"),s=!0),s)?((0,n.attr)(t,"rel",r.join(" ")),!0):i}},85978:function(e,t,i){"use strict";i.d(t,{sandboxIframesInContent:function(){return s}});var o=i(2748),n=i(29960),r=i(15908);function s(e,t,i){return e.o.cleanHTML.sandboxIframesInContent&&o.Dom.isElement(t)&&"IFRAME"===t.nodeName?(0,r.isAllowedMediaEmbed)((0,n.attr)(t,"src")||"")||t.hasAttribute("sandbox")?i:((0,n.attr)(t,"sandbox",""),!0):i}},384:function(e,t,i){"use strict";i.d(t,{sanitizeAttributes:function(){return r}});var o=i(2748),n=i(21537);function r(e,t,i){if(!o.Dom.isElement(t))return i;let r=e.options.cleanHTML;return!!(0,n.sanitizeHTMLElement)(t,{safeJavaScriptLink:r.safeJavaScriptLink,removeOnError:r.removeOnError,removeEventAttributes:r.removeEventAttributes,safeLinksTarget:r.safeLinksTarget})||i}},15583:function(e,t,i){"use strict";i.d(t,{sanitizeStyles:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i){let r=e.o.cleanHTML.allowedStyles;if(!r||!o.Dom.isElement(t))return i;let s=(0,n.attr)(t,"style");if(!s)return i;let a=function(e,t){let i=t[e],o=t["*"];if(!i&&!o)return null;let n=new Set;if(o)for(let e of o)n.add(e.toLowerCase());if(i)for(let e of i)n.add(e.toLowerCase());return n}(t.nodeName.toLowerCase(),r);if(!a)return i;let l=s.split(";").map(e=>e.trim()).filter(e=>{if(!e)return!1;let t=e.indexOf(":");if(-1===t)return!1;let i=e.substring(0,t).trim().toLowerCase();return a.has(i)}).join("; ").replace(/;\s*$/,"");return l!==s?((0,n.attr)(t,"style",l||null),!0):i}},28800:function(e,t,i){"use strict";i.d(t,{tryRemoveNode:function(){return l}});var o=i(82758),n=i(2748),r=i(49055),s=i(29960),a=i(15908);function l(e,t,i,l,c,d){return!function(e,t,i,l,c){if(!n.Dom.isText(t)){let e=t.nodeName.toUpperCase();if(l&&!l[e])return!0;let i="IFRAME"===e&&(0,a.isAllowedMediaEmbed)((0,s.attr)(t,"src")||"");if(!l&&c&&c[e]&&!i)return!0}if(!e.o.cleanHTML.removeEmptyElements)return!1;let d=e.s.isCollapsed()?e.s.range.startContainer:null;return n.Dom.isElement(t)&&null!=t.nodeName.match(o.IS_INLINE)&&!n.Dom.isTemporary(t)&&0===(0,r.trimInv)(t.innerHTML).length&&(null==i||!n.Dom.isOrContains(t,i))&&(null==d||!n.Dom.isOrContains(t,d))}(e,t,d,l,c)?i:(n.Dom.safeRemove(t),!0)}},39516:function(e,t,i){"use strict";i.d(t,{visitNodeWalker:function(){return s}});var o=i(82758),n=i(45235);let r=Object.keys(n);function s(e,t,i,s,a){let l=!1,c=e.o.cleanHTML.disableCleanFilter;for(let d of r)if(!(c&&c.has(d))&&(l=(0,n[d])(e,t,l,i,s,a),o.IS_PROD,!t.isConnected))return!0;return l}},61323:function(e,t,i){"use strict";var o=i(82758),n=i(33433),r=i(2748),s=i(580),a=i(21537);i(79419);class l{init(e){var t;null==(t=this.buttons)||t.forEach(t=>e.registerButton(t)),e.e.off(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`).on(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`,t=>{var i;let n=function(e,t){if(!t||e.s.isCollapsed())return t;let i=e.s.range.commonAncestorContainer;r.Dom.isElement(i)||(i=i.parentElement);let o=t;for(;i&&i!==e.editor&&r.Dom.isElement(i)&&!r.Dom.isBlock(i);){let e=i.cloneNode(!1);e.innerHTML=o,o=e.outerHTML,i=i.parentElement}return o}(e,e.s.html),s=(0,a.getDataTransfer)(t)||(0,a.getDataTransfer)(e.ew)||(0,a.getDataTransfer)(t.originalEvent);s&&(s.setData(o.TEXT_PLAIN,(0,a.stripTags)(n)),s.setData(o.TEXT_HTML,n)),e.buffer.set(o.CLIPBOARD_ID,n),e.e.fire("pasteStack",{html:n,action:e.o.defaultActionOnPaste||o.INSERT_AS_HTML}),"cut"===t.type&&(e.s.remove(),e.s.focus()),t.preventDefault(),null==(i=null==e?void 0:e.events)||i.fire("afterCopy",n)})}destruct(e){var t,i;null==(t=(0,n.cached)(e,"buffer"))||t.set(o.CLIPBOARD_ID,""),null==(i=null==e?void 0:e.events)||i.off("."+o.CLIPBOARD_ID)}constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}}s.pluginSystem.add("clipboard",l)},79419:function(e,t,i){"use strict";var o=i(12153),n=i(6441),r=i(94775),s=i(23140),a=i(92699),l=i(10052);n.Config.prototype.controls.cut={command:"cut",isDisabled:e=>e.s.isCollapsed(),tooltip:"Cut selection"},n.Config.prototype.controls.copy={command:"copy",isDisabled:e=>e.s.isCollapsed(),tooltip:"Copy selection"},n.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},o.Icon.set("copy",r.default).set("cut",s.default).set("paste",a.default).set("select-all",l.default)},94775:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="8" y="8" width="13" height="13" rx="2"/><path d="M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3"/> </g> </svg> '},23140:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <circle cx="6" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="m8.2 8.2 12.3 12.3M8.2 15.8 20.5 3.5"/> </g> </svg> '},92699:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="4" y="5" width="16" height="16" rx="2"/><rect x="9" y="3" width="6" height="4" rx="1"/> </g> </svg> '},10052:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 6V3h3m4 0h4m4 0h3v3m0 4v4m0 4v3h-3m-4 0h-4m-4 0H3v-3m0-4v-4"/><rect x="7" y="7" width="10" height="10" rx="1"/> </g> </svg> '},46104:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M12 3c-2 3.2-5.5 7-5.5 10a5.5 5.5 0 0 0 11 0c0-3-3.5-6.8-5.5-10Z"/> </g> <rect x="5" y="21" width="14" height="2" rx="1" fill="inherit" stroke="none"/> </svg> '},93079:function(e,t,i){"use strict";var o=i(580),n=i(21537);i(21988),o.pluginSystem.add("color",function(e){e.registerButton({name:"brush",group:"color"});let t=(t,i,o)=>{var r;let s=(0,n.normalizeColor)(o)||"",a="background"===t?{backgroundColor:s}:{color:s},l=e.getInstance("Table",e.o).getAllSelectedCells();return l.length&&e.s.isCollapsed()?(l.forEach(t=>{e.s.select(t,!0),e.s.commitStyle({attributes:{style:a}})}),null==(r=e.s.sel)||r.removeAllRanges()):e.s.commitStyle({attributes:{style:a}}),e.synchronizeValues(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)})},21988:function(e,t,i){"use strict";var o=i(2748),n=i(21537),r=i(12153),s=i(6441),a=i(92762),l=i(46104);r.Icon.set("brush",l.default),s.Config.prototype.controls.brushCell={isVisible:e=>!e.o.disablePlugins.includes("color"),icon:"brush",popup(e,t,i){if(!(0,n.isJoditObject)(e))return;let o=e.getInstance("Table",e.o).getAllSelectedCells();if(!o.length)return!1;let r=t=>(0,a.ColorPickerWidget)(e,r=>{o.forEach(e=>{(0,n.css)(e,t,r)}),e.lock(),e.synchronizeValues(),i(),e.unlock()},(0,n.css)(o[0],t));return(0,a.TabsWidget)(e,[{name:"Background",content:r("background-color")},{name:"Text",content:r("color")},{name:"Border",content:r("border-color")}])},tooltip:"Background"},s.Config.prototype.controls.brush={isVisible:e=>!e.o.disablePlugins.includes("color"),update(e,t){let i=(0,n.dataBind)(t,"color"),r=(i,o)=>!!o&&o!==(0,n.css)(e.editor,i).toString()&&(t.state.icon.fill=o,!0);if(i){let e=(0,n.dataBind)(t,"color");r("color"===e?e:"background-color",i);return}let s=e.s.current();if(s&&!t.state.disabled){let t=o.Dom.closest(s,o.Dom.isElement,e.editor)||e.editor,i=r("color",(0,n.css)(t,"color").toString()),a=r("background-color",(0,n.css)(t,"background-color").toString());if(i||a)return}t.state.icon.fill="",t.state.activated=!1},popup(e,t,i,r){let s="",l="",c,d=null;return t&&t!==e.editor&&o.Dom.isNode(t)&&(o.Dom.isElement(t)&&e.s.isCollapsed()&&!o.Dom.isTag(t,new Set(["br","hr"]))&&(d=t),o.Dom.up(t,e=>{if(o.Dom.isHTMLElement(e)){let t=(0,n.css)(e,"color",!0),i=(0,n.css)(e,"background-color",!0);if(t)return s=t.toString(),!0;if(i)return l=i.toString(),!0}},e.editor)),c=[{name:"Background",content:(0,a.ColorPickerWidget)(e,t=>{d?(0,n.css)(d,"backgroundColor",t):e.execCommand("background",!1,t),(0,n.dataBind)(r,"color",t),(0,n.dataBind)(r,"color-mode","background"),i()},l)},{name:"Text",content:(0,a.ColorPickerWidget)(e,t=>{d?(0,n.css)(d,"color",t):e.execCommand("forecolor",!1,t),(0,n.dataBind)(r,"color",t),(0,n.dataBind)(r,"color-mode","color"),i()},s)}],"background"!==e.o.colorPickerDefaultTab&&(c=c.reverse()),(0,a.TabsWidget)(e,c,d)},exec(e,t,{button:i}){let r=(0,n.dataBind)(i,"color-mode"),s=(0,n.dataBind)(i,"color");if(!r)return!1;if(t&&t!==e.editor&&o.Dom.isNode(t)&&o.Dom.isElement(t))switch(r){case"color":(0,n.css)(t,"color",s);break;case"background":(0,n.css)(t,"backgroundColor",s)}else e.execCommand("background"===r?r:"forecolor",!1,s)},tooltip:"Fill color or set the text color"}},19063:function(e,t,i){"use strict";var o=i(2748),n=i(580),r=i(41180),s=i(12153),a=i(6441),l=i(57487),c=i(23914);let d="copy-format",u=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],h=(e,t,i,o)=>{let n=(0,r.css)(i,t);return n===o[t]&&(n=i.parentNode&&i!==e.editor&&i.parentNode!==e.editor?h(e,t,i.parentNode,o):void 0),n};a.Config.prototype.controls.copyformat={exec(e,t,{button:i}){if(t){if(e.buffer.exists(d))e.buffer.delete(d),e.e.off(e.editor,"mouseup."+d);else{let i,n={},s=o.Dom.up(t,e=>e&&!o.Dom.isText(e),e.editor)||e.editor,a=e.createInside.span();o.Dom.append(e.editor,a),u.forEach(e=>{n[e]=(0,r.css)(a,e)}),a!==e.editor&&o.Dom.safeRemove(a);let l=(i={},s&&u.forEach(t=>{i[t]=h(e,t,s,n),t.match(/border(Style|Color)/)&&!i.borderWidth&&(i[t]=void 0)}),i);e.e.on(e.editor,"mouseup."+d,()=>{e.buffer.delete(d);let t=e.s.current();t&&(o.Dom.isTag(t,"img")?(0,r.css)(t,l):e.s.commitStyle({attributes:{style:l}})),e.e.off(e.editor,"mouseup."+d)}),e.buffer.set(d,!0)}i.update()}},isActive:e=>e.buffer.exists(d),tooltip:"Paint format"},n.pluginSystem.add("copyformat",function(e){e.registerButton({name:"copyformat",group:"clipboard"}),(0,n.extendLang)(c)}),s.Icon.set("copyformat",l.default)},57487:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="3" y="3" width="14" height="6" rx="1"/><path d="M17 6h4v7H11v3"/><rect x="9" y="16" width="4" height="6" rx="1"/> </g> </svg> '},63819:function(e){"use strict";e.exports={"copy-format":"نسخ التنسيق"}},72392:function(e){"use strict";e.exports={"copy-format":"Kopírovat formát"}},74551:function(e){"use strict";e.exports={"copy-format":"Format kopierenт"}},2536:function(e){"use strict";e.exports={"copy-format":"Copiar formato"}},52285:function(e){"use strict";e.exports={"copy-format":"کپی کردن قالب"}},12117:function(e){"use strict";e.exports={"copy-format":"Kopioi muotoilu"}},35140:function(e){"use strict";e.exports={"copy-format":"Format de copie"}},28435:function(e){"use strict";e.exports={"copy-format":"העתק עיצוב"}},98019:function(e){"use strict";e.exports={"copy-format":"Formátum másolás"}},96457:function(e){"use strict";e.exports={"copy-format":"salin format"}},23914:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return o},cs_cz:function(){return n},de:function(){return r},es:function(){return s},fa:function(){return a},fi:function(){return l},fr:function(){return c},he:function(){return d},hu:function(){return u},id:function(){return h},it:function(){return p},ja:function(){return f},ko:function(){return m},mn:function(){return g},nl:function(){return b},pl:function(){return v},pt_br:function(){return y},ru:function(){return w},tr:function(){return _},zh_cn:function(){return k},zh_tw:function(){return C}});var o=i(63819),n=i(72392),r=i(74551),s=i(2536),a=i(52285),l=i(12117),c=i(35140),d=i(28435),u=i(98019),h=i(96457),p=i(33561),f=i(96545),m=i(52230),g=i(33307),b=i(71042),v=i(32172),y=i(39179),w=i(60629),_=i(68278),k=i(1172),C=i(4164)},33561:function(e){"use strict";e.exports={"copy-format":"Copia il formato"}},96545:function(e){"use strict";e.exports={"copy-format":"copyformat"}},52230:function(e){"use strict";e.exports={"copy-format":"복사 형식"}},33307:function(e){"use strict";e.exports={"copy-format":"Формат хуулах"}},71042:function(e){"use strict";e.exports={"copy-format":"opmaak kopiëren"}},32172:function(e){"use strict";e.exports={"copy-format":"format kopii"}},39179:function(e){"use strict";e.exports={"copy-format":"Copiar formato"}},60629:function(e){"use strict";e.exports={"copy-format":"Копировать формат"}},68278:function(e){"use strict";e.exports={"copy-format":"Kopyalama Biçimi"}},1172:function(e){"use strict";e.exports={"copy-format":"复制格式"}},4164:function(e){"use strict";e.exports={"copy-format":"複製格式"}},66707:function(e,t,i){"use strict";var o=i(22732),n=i(580),r=i(21537),s=i(49055),a=i(50911);let l=new Set(["img","table","jodit","iframe","hr"]);class c extends a.Plugin{afterInit(e){e.e.on("afterCommand.delete",e=>{"delete"===e&&this.__afterDeleteCommand()}),e.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(e){e.e.off("afterCommand.delete")}__afterDeleteCommand(){let e=this.j,t=e.s.current();if(t&&o.Dom.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!(0,s.trim)(e.editor.textContent||"")&&!o.Dom.first(e.editor,e=>o.Dom.isTag(e,l))&&(!t||!o.Dom.closest(t,"table",e.editor))){o.Dom.detach(e.editor);let t=e.s.setCursorIn(e.editor);e.s.removeNode(t)}}__onDeleteCommand(){let{jodit:e}=this;if(e.s.isCollapsed())return;e.s.expandSelection();let t=e.s.range;t.deleteContents();let i=e.createInside.fake();t.insertNode(i);let n=o.Dom.findSibling(i,!0),r=o.Dom.findSibling(i,!1);return this.__moveContentInLeftSibling(i,n,r),t.setStartBefore(i),t.collapse(!0),this.__moveCursorInEditableSibling(e,n,i,t),this.__addBrInEmptyBlock(i,r,t),o.Dom.safeRemove(i),e.s.selectRange(t),!1}__moveContentInLeftSibling(e,t,i){t=this.__defineRightLeftBox(t),!o.Dom.isList(i)&&!o.Dom.isTag(i,"table")&&o.Dom.isBlock(i)&&o.Dom.isBlock(t)&&(o.Dom.append(t,e),o.Dom.moveContent(i,t),o.Dom.safeRemove(i)),o.Dom.isList(i)&&o.Dom.isLeaf(i.firstElementChild)&&o.Dom.isEmpty(i.firstElementChild)&&o.Dom.safeRemove(i.firstElementChild)}__defineRightLeftBox(e){if(!o.Dom.isList(e))return e;let t=e.lastElementChild;return o.Dom.isLeaf(t)||(t=this.j.createInside.element("li"),o.Dom.append(e,t)),t}__addBrInEmptyBlock(e,t,i){let n=this.j;if(e.isConnected&&o.Dom.isBlock(e.parentNode)&&!e.nextSibling&&!e.previousSibling){let t=n.createInside.element("br");o.Dom.after(e,t),i.setStartBefore(t),i.collapse(!0)}if(o.Dom.isTag(t,"table")){let e=(0,r.$$)("td,th",t).shift();o.Dom.isCell(e)&&o.Dom.isEmpty(e)&&o.Dom.append(e,n.createInside.element("br"))}}__moveCursorInEditableSibling(e,t,i,n){var r;if(!t||!o.Dom.isText(t)){let t=null!=(r=o.Dom.closest(i,o.Dom.isBlock,e.editor))?r:e.editor,s=o.Dom.prev(i,o.Dom.isText,t);s&&(n.setStartAfter(s),n.collapse(!0),o.Dom.safeRemove(i))}}}c.requires=["backspace"],n.pluginSystem.add("deleteCommand",c)},44586:function(e,t,i){"use strict";i(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},1255:function(e,t,i){"use strict";var o,n,r=i(65478),s=i(22732),a=i(580),l=i(21537),c=i(50911);i(44586);var d=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};(o=n||(n={}))[o.IDLE=0]="IDLE",o[o.WAIT_DRAGGING=1]="WAIT_DRAGGING",o[o.DRAGGING=2]="DRAGGING";class u extends c.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,l.splitArray)(this.j.o.draggableTags).filter(Boolean).map(e=>e.toLowerCase()):[],this.j.e.on("startDragElement",this.onStartDragElement),this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onStartDragElement(e,t){this.isInDestruct||this.state>n.IDLE||!e||this.startDragging(e,t)}onDragStart(e){if("dragstart"===e.type&&this.draggable)return!1;if(this.state>n.IDLE)return;let t=e.target;if(!this.dragList.length||!t)return;let i=e=>!!(e&&this.dragList.includes(e.nodeName.toLowerCase())),o=s.Dom.furthest(t,i,this.j.editor)||(i(t)?t:null);o&&(s.Dom.isTag(o.parentElement,"a")&&o.parentElement.firstChild===o&&o.parentElement.lastChild===o&&(o=o.parentElement),this.startDragging(o,e))}startDragging(e,t){this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=(0,l.ctrlKey)(t),this.draggable=e.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",e),this.state=n.WAIT_DRAGGING,this.addDragListeners()}onDrag(e){var t,i;if(!this.draggable||this.state===n.IDLE)return;let o=e.clientX,r=e.clientY;if(!(this.state===n.WAIT_DRAGGING&&Math.sqrt(Math.pow(o-this.startX,2)+Math.pow(r-this.startY,2))<this.diffStep)){if(this.state===n.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=n.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){let o=(0,l.dataBind)(this.draggable,"target");(0,l.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:e.clientX,top:e.clientY,width:null!=(t=null==o?void 0:o.offsetWidth)?t:100,height:null!=(i=null==o?void 0:o.offsetHeight)?i:100}),s.Dom.append((0,a.getContainer)(this.j,u),this.draggable)}(0,l.css)(this.draggable,{left:e.clientX,top:e.clientY}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=n.IDLE,this.draggable&&(s.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<n.DRAGGING)return void this.onDragEnd();let e=(0,l.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));let{parentElement:t}=e;this.j.s.insertNode(e,!0,!1),[e.previousSibling,e.nextSibling].forEach(e=>{s.Dom.isEmptyTextNode(e)&&s.Dom.safeRemove(e)}),t&&s.Dom.isEmpty(t)&&!s.Dom.isCell(t)&&s.Dom.safeRemove(t),s.Dom.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart).off("startDragElement",this.onStartDragElement),this.removeDragListeners()}constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=n.IDLE}}d([r.autobind],u.prototype,"onStartDragElement",null),d([r.autobind],u.prototype,"onDragStart",null),d([(0,r.throttle)(e=>e.defaultTimeout/10)],u.prototype,"onDrag",null),d([r.autobind],u.prototype,"onDragEnd",null),d([r.autobind],u.prototype,"onDrop",null),a.pluginSystem.add("dragAndDropElement",u)},19271:function(e,t,i){"use strict";var o=i(82758),n=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(8172),d=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class u extends l.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(e){var t;let i=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=r.Dom.isOrContains(this.j.editor,i,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,a.ctrlKey)(e),this.isFragmentFromEditor){let e=this.j.s.sel,t=e&&e.rangeCount?e.getRangeAt(0):null;t&&(this.bufferRange=t.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,t=i,r.Dom.isElement(t)&&t.classList.contains(c.FileBrowserFiles.prototype.getFullElName("item"))&&(i=r.Dom.first(i,e=>r.Dom.isTag(e,"img"))),r.Dom.isTag(i,"img")&&(this.draggable=i.cloneNode(!0),(0,a.dataBind)(this.draggable,"target",i)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())}onDragEnd(){this.draggable&&(r.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;let t=this.j.s.sel,i=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null),o=this.__getWorkFragment(i,e);t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),o&&this.__insertFragment.call(this,o,i),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(e,t){let i=null;if(!this.draggable&&e)i=this.isCopyMode?e.cloneContents():e.extractContents();else if(this.draggable)if(this.isCopyMode){let[e,t]="1"===(0,a.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];i=this.j.createInside.element(e),(0,a.attr)(i,t,(0,a.attr)(this.draggable,"data-src")||(0,a.attr)(this.draggable,"src")||""),"a"===e&&(i.textContent=(0,a.attr)(i,t)||"")}else i=(0,a.dataBind)(this.draggable,"target");else this.getText(t)&&(i=this.j.createInside.fromHTML(this.getText(t)));return i}__insertFragment(e,t){this.j.s.insertNode(e,!1,!1),t&&e.firstChild&&e.lastChild&&(t.setStartBefore(e.firstChild),t.setEndAfter(e.lastChild),this.j.s.selectRange(t),this.j.e.fire("synchro")),r.Dom.isTag(e,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",e)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=e=>{let t=(0,a.getDataTransfer)(e);return t?t.getData(o.TEXT_HTML)||t.getData(o.TEXT_PLAIN):null}}}d([n.autobind],u.prototype,"onDragStart",null),d([(0,n.throttle)(e=>e.defaultTimeout/10)],u.prototype,"onDrag",null),d([n.autobind],u.prototype,"onDragEnd",null),d([n.autobind],u.prototype,"onDrop",null),s.pluginSystem.add("dragAndDrop",u)},46124:function(e,t,i){"use strict";i.r(t),i.d(t,{removeExtraBr:function(){return o.removeExtraBr}});var o=i(94870)},94870:function(e,t,i){"use strict";i.d(t,{removeExtraBr:function(){return r}});var o=i(2748);let n=new Set(["table","pre","blockquote","code"]);function r(e,t){if(!e.o.dtd.removeExtraBr||o.Dom.isTag(t,"br"))return;let i=o.Dom.furthest(t,o.Dom.isBlock,e.editor);if(i&&!o.Dom.isTag(i,n)){let i=o.Dom.isTag(t,"br")?t:o.Dom.findNotEmptySibling(t,!1);if(!o.Dom.isTag(i,"br")||o.Dom.findNotEmptySibling(i,!1))return;e.s.setCursorBefore(i),o.Dom.safeRemove(i)}}},78720:function(e,t,i){"use strict";i.d(t,{checkBlockNesting:function(){return n}});var o=i(2748);function n(e,t){var i,n;if(o.Dom.isFragment(t)&&(t=t.firstChild),e.o.dtd.checkBlockNesting&&o.Dom.isBlock(t)){let t=null,r=null!=(n=null==(i=e.s.current())?void 0:i.parentElement)?n:null;for(;r&&r!==e.editor;){if(o.Dom.isBlock(r)){if(e.o.dtd.blockLimits[r.nodeName.toLowerCase()])break;t=r}r=r.parentElement}t&&(e.s.setCursorAfter(t),o.Dom.isEmpty(t)&&o.Dom.safeRemove(t))}}},43267:function(e,t,i){"use strict";i.r(t),i.d(t,{checkBlockNesting:function(){return o.checkBlockNesting}});var o=i(78720)},9045:function(e,t,i){"use strict";i(6441).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},65735:function(e,t,i){"use strict";var o=i(37133),n=i(580),r=i(50911);i(9045);var s=i(46124),a=i(43267),l=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends r.Plugin{afterInit(e){}beforeDestruct(e){}__onBeforeInsertNode(e){Object.keys(a).forEach(t=>{a[t](this.j,e)})}__onAfterInsertNode(e){Object.keys(s).forEach(t=>{s[t](this.j,e)})}}l([(0,o.watch)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),l([(0,o.watch)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),n.pluginSystem.add("dtd",c)},575:function(e,t,i){"use strict";var o=i(82758),n=i(65478),r=i(2748),s=i(580),a=i(87612),l=i(20356),c=i(35399);class d extends l.Plugin{afterInit(e){let t=e.o.enter.toLowerCase(),i=t===o.BR.toLowerCase();e.o.enterBlock||(e.o.enterBlock=i?o.PARAGRAPH:t),e.registerCommand("enter",(e,t,i={})=>this.onEnter(i))}onEnterKeyDown(e){if(e.key===o.KEY_ENTER){let t=this.j,i=t.e.fire("beforeEnter",e);return void 0!==i?i:(t.history.snapshot.transaction(()=>{t.s.isCollapsed()||t.execCommand("Delete"),t.s.focus(),this.onEnter(e),t.e.fire("afterEnter",e)}),t.synchronizeValues(),!1)}}onEnter(e){let{jodit:t}=this,i=t.createInside.fake();try{r.Dom.safeInsertNode(t.s.range,i),(0,c.moveCursorOutFromSpecialTags)(t,i,["a"]);let o=(0,c.getBlockWrapper)(i,t),n=r.Dom.isLeaf(o);if((!n||(null==e?void 0:e.shiftKey))&&(0,c.checkBR)(i,t,null==e?void 0:e.shiftKey))return!1;if(o||(0,c.hasPreviousBlock)(i,t)||(o=(0,c.wrapText)(i,t)),!o)return(0,c.insertParagraph)(i,t,n?"li":t.o.enter),!1;if(!(0,c.checkUnsplittableBox)(i,t,o))return!1;if(n&&this.__isEmptyListLeaf(o))return(0,c.processEmptyLILeaf)(i,t,o),!1;(0,c.splitFragment)(i,t,o)}finally{i.isConnected&&t.s.setCursorBefore(i),r.Dom.safeRemove(i)}}__isEmptyListLeaf(e){let t=this.j.e.fire("enterIsEmptyListLeaf",e);return(0,a.isBoolean)(t)?t:r.Dom.isEmpty(e)}beforeDestruct(e){e.e.off("keydown.enter")}}!function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,n.watch)(":keydown.enter")],d.prototype,"onEnterKeyDown",null),s.pluginSystem.add("enter",d)},41872:function(e,t,i){"use strict";i.d(t,{checkBR:function(){return s}});var o=i(82758),n=i(2748),r=i(26395);function s(e,t,i){let s=!!n.Dom.closest(e,["pre","blockquote"],t.editor),l=!s&&n.Dom.closest(e,["td","th"],t.editor);if(t.o.enter.toLowerCase()===o.BR.toLowerCase()||l||i&&!s||!i&&s){var c;let i;if(s&&(i=a(a(c=e)))&&(n.Dom.safeRemove(a(c)),n.Dom.safeRemove(i),1))return!1;let o=t.createInside.element("br");if(n.Dom.before(e,o),!n.Dom.findNotEmptySibling(o,!1)){let t=o.cloneNode();n.Dom.after(o,t),n.Dom.before(t,e)}return(0,r.scrollIntoViewIfNeeded)(o,t.editor,t.ed),!0}return!1}function a(e){if(!e)return!1;let t=n.Dom.findSibling(e,!0);return!!t&&!!n.Dom.isTag(t,"br")&&t}},61991:function(e,t,i){"use strict";i.d(t,{checkUnsplittableBox:function(){return n}});var o=i(2748);function n(e,t,i){return!!o.Dom.canSplitBlock(i)||(o.Dom.before(e,t.createInside.element("br")),!1)}},54041:function(e,t,i){"use strict";i.d(t,{getBlockWrapper:function(){return function e(t,i,r=o.IS_BLOCK){let s=t,a=i.editor;do{if(!s||s===a)break;if(r.test(s.nodeName)){if(n.Dom.isLeaf(s))return s;return e(s.parentNode,i,/^li$/i)||s}s=s.parentNode}while(s&&s!==a)return null}}});var o=i(82758),n=i(2748)},19057:function(e,t,i){"use strict";i.d(t,{hasPreviousBlock:function(){return n}});var o=i(2748);function n(e,t){return!!o.Dom.prev(e,e=>o.Dom.isBlock(e)||o.Dom.isImage(e),t.editor)}},35399:function(e,t,i){"use strict";i.d(t,{checkBR:function(){return o.checkBR},checkUnsplittableBox:function(){return n.checkUnsplittableBox},getBlockWrapper:function(){return r.getBlockWrapper},hasPreviousBlock:function(){return s.hasPreviousBlock},insertParagraph:function(){return a.insertParagraph},moveCursorOutFromSpecialTags:function(){return l.moveCursorOutFromSpecialTags},processEmptyLILeaf:function(){return c.processEmptyLILeaf},splitFragment:function(){return d.splitFragment},wrapText:function(){return u.wrapText}});var o=i(41872),n=i(61991),r=i(54041),s=i(19057),a=i(44245),l=i(91388),c=i(65181),d=i(54600),u=i(5287)},44245:function(e,t,i){"use strict";i.d(t,{insertParagraph:function(){return s}});var o=i(2748),n=i(29960),r=i(26395);function s(e,t,i,s){let a="br"===i.toLowerCase(),{createInside:l}=t,c=l.element(i),d=l.element("br");return a||o.Dom.append(c,d),s&&s.cssText&&(0,n.attr)(c,"style",s.cssText),o.Dom.after(e,c),o.Dom.before(a?c:d,e),(0,r.scrollIntoViewIfNeeded)(c,t.editor,t.ed),c}},91388:function(e,t,i){"use strict";i.d(t,{moveCursorOutFromSpecialTags:function(){return n}});var o=i(2748);function n(e,t,i){let{s:n}=e,r=o.Dom.closest(t,i,e.editor);r&&(n.cursorOnTheRight(r,t)?o.Dom.after(r,t):n.cursorOnTheLeft(r,t)&&o.Dom.before(r,t))}},65181:function(e,t,i){"use strict";i.d(t,{processEmptyLILeaf:function(){return s}});var o=i(2748),n=i(76078),r=i(44245);function s(e,t,i){let s=o.Dom.closest(i,["ol","ul"],t.editor);if(!s)return;let a=s.parentElement,l=o.Dom.isLeaf(a),c=l?a:s,d=t.s.createRange();d.setStartAfter(i),d.setEndAfter(s);let u=d.extractContents();o.Dom.after(c,e),o.Dom.safeRemove(i),(0,n.$$)("li",s).length||o.Dom.safeRemove(s);let h=(0,r.insertParagraph)(e,t,l?"li":t.o.enter);o.Dom.first(u,e=>o.Dom.isTag(e,"li"))&&(l?o.Dom.append(h,u):o.Dom.after(h,u))}},54600:function(e,t,i){"use strict";i.d(t,{splitFragment:function(){return s}});var o=i(2748),n=i(26395),r=i(44245);function s(e,t,i){let s=t.s,{enter:a}=t.o,l=a.toLowerCase(),c=o.Dom.isLeaf(i),d=i.tagName.toLowerCase()===l||c,u=s.cursorOnTheRight(i,e),h=s.cursorOnTheLeft(i,e);if(!d&&(u||h)){u?o.Dom.after(i,e):o.Dom.before(i,e),(0,r.insertParagraph)(e,t,l),h&&!u&&o.Dom.prepend(i,e);return}let{scrollTop:p}=t.editor;s.splitSelection(i,e),t.editor.scrollTop!==p&&(t.editor.scrollTop=p),(0,n.scrollIntoViewIfNeeded)(i,t.editor,t.ed)}},5287:function(e,t,i){"use strict";i.d(t,{wrapText:function(){return n}});var o=i(2748);function n(e,t){let i=e;o.Dom.up(i,e=>{e&&e.hasChildNodes()&&e!==t.editor&&(i=e)},t.editor);let n=o.Dom.wrapInline(i,t.o.enter,t);if(o.Dom.isEmpty(n)){let i=t.createInside.element("br");o.Dom.append(n,i),o.Dom.before(i,e)}return n}},11317:function(e,t,i){"use strict";var o=i(2748),n=i(580),r=i(29960),s=i(6441),a=i(92762);s.Config.prototype.controls.file={popup(e,t,i){let n=(t,i="")=>{e.s.insertNode(e.createInside.fromHTML(`<a href="${t}" title="${i}">${i||t}</a>`))},s=null;return t&&(o.Dom.isTag(t,"a")||o.Dom.closest(t,"a",e.editor))&&(s=o.Dom.isTag(t,"a")?t:o.Dom.closest(t,"a",e.editor)),(0,a.FileSelectorWidget)(e,{filebrowser(e){e.files&&e.files.forEach(t=>n(e.baseurl+t)),i()},upload:!0,url(e,t){s?((0,r.attr)(s,"href",e),(0,r.attr)(s,"title",t)):n(e,t),i()}},s,i,!1)},tags:["a"],tooltip:"Insert file"},n.pluginSystem.add("file",function(e){e.registerButton({name:"file",group:"media"})})},36243:function(e,t,i){"use strict";var o=i(22732),n=i(580),r=i(6441);r.Config.prototype.autofocus=!1,r.Config.prototype.cursorAfterAutofocus="end",r.Config.prototype.saveSelectionOnBlur=!0,n.pluginSystem.add("focus",function(e){e.o.saveSelectionOnBlur&&e.e.on("blur",()=>{e.isEditorMode()&&e.s.save(!0)}).on("focus",()=>{e.isEditorMode()&&e.s.restore()});let t=()=>{e.s.focus();let t=null;switch(e.o.cursorAfterAutofocus){case"start":t=o.Dom.first(e.editor,e=>o.Dom.isText(e));break;case"end":t=o.Dom.last(e.editor,e=>o.Dom.isText(e))}t&&e.s.setCursorIn(t,"start"===e.o.cursorAfterAutofocus)};e.e.on("afterInit",()=>{e.o.autofocus&&(e.defaultTimeout?e.async.setTimeout(t,300):t())}),e.e.on("afterInit afterAddPlace",()=>{e.e.off(e.editor,"mousedown.autofocus").on(e.editor,"mousedown.autofocus",t=>{e.isEditorMode()&&t.target&&o.Dom.isBlock(t.target)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))})})})},28252:function(e,t,i){"use strict";var o=i(22732),n=i(49055),r=i(41180),s=i(12153),a=i(6441),l=i(4104),c=i(83709);a.Config.prototype.defaultFontSizePoints="px",s.Icon.set("font",l.default).set("fontsize",c.default),a.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalize:e=>e.toString().replace(/(px|pt)$/i,"")},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(e,t)=>t+e.o.defaultFontSizePoints,childTemplate:(e,t,i)=>`${i}${e.o.defaultFontSizePoints}`,tooltip:"Font size",value(e,t){var i;let n=e.s.current();if(!n)return;let s=o.Dom.closest(n,o.Dom.isElement,e.editor);if(!s)return;let a=(null==(i=t.control.data)?void 0:i.cssRule)||"font-size",l=(0,r.css)(s,a);if("font-size"===a){let t=parseFloat(l.toString());return"pt"===e.o.defaultFontSizePoints?Math.round(.75*t).toString():Math.round(t).toString()}return l.toString()},isChildActive(e,t){var i,o;let n=t.state.value,r=null!=(o=null==(i=t.control.data)?void 0:i.normalize)?o:e=>e;return!!(n&&t.control.args&&r(t.control.args[0].toString())===r(n.toString()))},isActive(e,t){var i,o;let n=t.state.value;if(!n)return!1;let r=null!=(o=null==(i=t.control.data)?void 0:i.normalize)?o:e=>e,s=t.control.data.cacheListSet;return s||(s=new Set(Object.keys(t.control.list).map(r)),t.control.data.cacheListSet=s),s.has(r(n.toString()))}},a.Config.prototype.controls.font={...a.Config.prototype.controls.fontsize,command:"fontname",textTemplate(e,t){let[i]=t.split(",");return(0,n.trimChars)(i,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate(e,t,i){let o=!1;try{o=-1===t.indexOf("dings")&&document.fonts.check("16px "+t,i)}catch(e){}return`<span data-style="${t}" style="${o?`font-family: ${t}!important;`:""}">${i}</span>`},data:{cssRule:"font-family",normalize:e=>e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},value(e){let t=e.s.current();if(!t)return;let i=o.Dom.closest(t,o.Dom.isElement,e.editor);if(!i)return;let n=(0,r.css)(i,"font-family").toString();return n===(0,r.css)(e.editor,"font-family").toString()?"":n},tooltip:"Font family"}},23399:function(e,t,i){"use strict";var o=i(580),n=i(21537);i(28252),o.pluginSystem.add("font",function(e){e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});let t=(t,i,o)=>{switch(t){case"fontsize":e.s.commitStyle({attributes:{style:{fontSize:(0,n.normalizeSize)(o,e.o.defaultFontSizePoints)}}});break;case"fontname":e.s.commitStyle({attributes:{style:{fontFamily:o}}})}return e.synchronizeValues(),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)})},4104:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m5 17 7-14 7 14M8 12h8M3 21h18"/> </g> </svg> '},83709:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M2 5h9M6.5 5v15M4 20h5M19 4v16m-3-13 3-3 3 3m-6 10 3 3 3-3"/> </g> </svg> '},24630:function(e,t,i){"use strict";var o=i(2748),n=i(72430),r=i(12153),s=i(6441),a=i(89816);r.Icon.set("paragraph",a.default),s.Config.prototype.controls.paragraph={command:"formatBlock",value(e,t){var i,n;let r=t.control,s=e.s.current(),a=o.Dom.closest(s,o.Dom.isBlock,e.editor);return null!=(i=null==a?void 0:a.nodeName.toLowerCase())?i:null==(n=r.data)?void 0:n.currentValue},update(e,t){let i=t.control;if(!e.s.current())return!1;let o=t.state.value,r=i.list;return(0,n.isPlainObject)(r)&&r[o.toString()]&&e.o.textIcons&&(t.state.text=r[o.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive(e,t){var i,o;return t.state.value===(null==(o=null==(i=t.control)?void 0:i.args)?void 0:o[0])},isActive:(e,t)=>t.state.value!==e.o.enter&&(0,n.isPlainObject)(t.control.list)&&!!t.control.list[t.state.value],childTemplate:(e,t,i)=>`<${t} style="margin:0;padding:0"><span>${e.i18n(i)}</span></${t}>`,tooltip:"Insert format block"}},96111:function(e,t,i){"use strict";var o=i(580);i(24630),o.pluginSystem.add("formatBlock",function(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",(t,i,o)=>(e.s.commitStyle({element:o}),e.synchronizeValues(),!1))})},89816:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M20 4H9a5 5 0 0 0 0 10h3M12 4v17M18 4v17"/> </g> </svg> '},99823:function(e,t,i){"use strict";var o=i(82758),n=i(12153),r=i(6441),s=i(6950),a=i(28911);r.Config.prototype.fullsize=!1,r.Config.prototype.globalFullSize=!0,n.Icon.set("fullsize",s.default).set("shrink",a.default),r.Config.prototype.controls.fullsize={exec(e){e.toggleFullSize()},update(e,t){let i=e.isFullSize?"shrink":"fullsize";t.state.activated=e.isFullSize,e.o.textIcons?t.state.text=i:t.state.icon.name=i},tooltip:"Open in fullsize",mode:o.MODE_SOURCE+o.MODE_WYSIWYG}},2169:function(e,t,i){"use strict";var o=i(2748),n=i(580),r=i(19306),s=i(41180);i(99823);let a=new Set;n.pluginSystem.add("fullsize",function(e){e.registerButton({name:"fullsize"});let t=!1,i=0,n=0,l=0,c=0,d=!1,u=()=>{let{container:o,events:r}=e;r&&(t?(d||(i=(0,s.css)(o,"height",!0),n=(0,s.css)(o,"width",!0),d=!0),(0,s.css)(o,{height:e.ow.innerHeight,width:e.ow.innerWidth})):d&&((0,s.css)(o,{height:i||"auto",width:n||"auto"}),d=!1))},h=i=>{let{container:n,events:d}=e;if(n){if(void 0===i&&(i=!n.classList.contains("jodit_fullsize")),e.setMod("fullsize",i),e.o.fullsize=i,t=i,n.classList.toggle("jodit_fullsize",i),e.toolbar&&((0,r.isJoditObject)(e)&&e.toolbarContainer&&o.Dom.append(e.toolbarContainer,e.toolbar.container),(0,s.css)(e.toolbar.container,"width","auto")),i?a.add(n):a.delete(n),e.o.globalFullSize&&(1===a.size&&i||0===a.size&&!i)){i&&(l=e.ow.scrollX,c=e.ow.scrollY);let t=n.parentNode;for(;t&&t.nodeType!==Node.DOCUMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t.classList.toggle("jodit_fullsize-box_true",i),t=t.parentNode;u(),i||e.ow.scrollTo(l,c)}d.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",u),e.e.on("afterInit afterOpen",()=>{var t;e.toggleFullSize(null==(t=null==e?void 0:e.options)?void 0:t.fullsize)}).on("toggleFullSize",h).on("beforeDestruct",()=>{t&&h(!1)}).on("beforeDestruct",()=>{e.events&&e.e.off(e.ow,"resize",u)})})},6950:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M8 3H3v5m13-5h5v5M3 16v5h5m13-5v5h-5"/> </g> </svg> '},28911:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 8h5V3M8 8 3 3m13 0v5h5m-5 0 5-5M3 16h5v5m0-5-5 5m13 0v-5h5m-5 0 5 5"/> </g> </svg> '},78524:function(e,t,i){"use strict";i(6441).Config.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8","cmd+shift+8"],selectall:["ctrl+a","cmd+a"]}},42263:function(e,t,i){"use strict";var o=i(82758),n=i(580),r=i(21537),s=i(50911);i(78524);class a extends s.Plugin{afterInit(e){(0,r.keys)(e.o.commandToHotkeys,!1).forEach(t=>{let i=e.o.commandToHotkeys[t];i&&((0,r.isArray)(i)||(0,r.isString)(i))&&e.registerHotkeyToCommand(i,t)});let t=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",e=>{if(e.key===o.KEY_ESC)return this.j.e.fire("escape",e)}).on("keydown.hotkeys",i=>{let o=this.onKeyPress(i),n={shouldStop:!0};if(!1===this.j.e.fire(o+".hotkey",i.type,n))if(n.shouldStop)return t=!0,e.e.stopPropagation("keydown"),!1;else i.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(t)return t=!1,e.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(e){e.events&&e.e.off(".hotkeys")}constructor(){super(...arguments),this.onKeyPress=e=>{let t=this.specialKeys[e.which],i=(e.key||String.fromCharCode(e.which)).toLowerCase(),o=[t||i];return["alt","ctrl","shift","meta"].forEach(i=>{e[i+"Key"]&&t!==i&&o.push(i)}),(0,r.normalizeKeyAliases)(o.join("+"))},this.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}}}n.pluginSystem.add("hotkeys",a)},16233:function(e,t,i){"use strict";var o=i(22732),n=i(580),r=i(12153),s=i(6441),a=i(72337);r.Icon.set("hr",a.default),s.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},n.pluginSystem.add("hr",function(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",()=>{let t=e.createInside.element("hr");e.s.insertNode(t,!1,!1);let i=o.Dom.closest(t.parentElement,o.Dom.isBlock,e.editor);i&&o.Dom.isEmpty(i)&&i!==e.editor&&(o.Dom.after(i,t),o.Dom.safeRemove(i));let n=o.Dom.next(t,o.Dom.isBlock,e.editor,!1);return n||(n=e.createInside.element(e.o.enter),o.Dom.after(t,n)),e.s.setCursorIn(n),!1})})},72337:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M4 12h16"/> </g> </svg> '},50963:function(e,t,i){"use strict";var o=i(6441);o.Config.prototype.iframeBaseUrl="",o.Config.prototype.iframeTitle="Jodit Editor",o.Config.prototype.iframeDoctype="<!DOCTYPE html>",o.Config.prototype.iframeDefaultSrc="about:blank",o.Config.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',o.Config.prototype.iframeCSSLinks=[],o.Config.prototype.iframeSandbox=null},77469:function(e,t,i){"use strict";var o=i(82758),n=i(2748),r=i(580),s=i(21537);i(50963),r.pluginSystem.add("iframe",function(e){let t=e.options;e.e.on("afterSetMode",()=>{e.isEditorMode()&&e.s.focus()}).on("generateDocumentStructure.iframe",(e,i)=>{let o=e||i.iframe.contentWindow.document;if(o.open(),o.write(t.iframeDoctype+`<html dir="${t.direction}" class="jodit" lang="${(0,s.defaultLanguage)(t.language)}">`+"<head>"+`<title>${t.iframeTitle}</title>`+(t.iframeBaseUrl?`<base href="${t.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),o.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach(e=>{let t=o.createElement("link");(0,s.attr)(t,"rel","stylesheet"),(0,s.attr)(t,"href",e),o.head&&n.Dom.append(o.head,t)}),t.iframeStyle){let e=o.createElement("style");e.innerHTML=t.iframeStyle,o.head&&n.Dom.append(o.head,e)}}).on("createEditor",()=>{if(!t.iframe)return;let i=e.c.element("iframe");(0,s.css)(i,"display","block"),i.src="about:blank",i.className="jodit-wysiwyg_iframe",(0,s.attr)(i,{allowtransparency:"true",tabindex:t.tabIndex.toString(),frameborder:"0"}),null!=t.iframeSandbox&&(0,s.attr)(i,"sandbox",t.iframeSandbox),n.Dom.append(e.workplace,i),e.iframe=i;let r=e.e.fire("generateDocumentStructure.iframe",null,e);return(0,s.callPromise)(r,()=>{if(!e.iframe)return!1;let i=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;let n=t.editHTMLDocumentMode,r=()=>{(0,s.attr)(i.body,"contenteditable",e.getMode()!==o.MODE_SOURCE&&!e.getReadOnly()||null)},a=e=>{let t=/<body.*<\/body>/im,i="{%%BODY%%}",o=t.exec(e);return o&&(e=e.replace(t,i).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(i,o[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),e};if(n){let t=e.element.tagName;if("TEXTAREA"!==t&&"INPUT"!==t)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",()=>a(e.o.iframeDoctype+i.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:t})=>{if(e.isLocked)return!1;if(/<(html|body)/i.test(t)){if(a(i.documentElement.outerHTML)!==a(t)){var o;let n;o=a(t),n=new DOMParser().parseFromString(o,"text/html"),e.e.fire("safeHTML",n.documentElement),i.replaceChild(i.adoptNode(n.documentElement),i.documentElement),e.editor=i.body,r(),e.e.fire("prepareWYSIWYGEditor"),e.e.stopPropagation("beforeSetNativeEditorValue")}return!0}return!1},{top:!0})}if(e.editor=i.body,e.e.on("afterSetMode afterInit afterAddPlace",r),"auto"===t.height){i.documentElement&&(0,s.css)(i.documentElement,"overflowY","hidden");let o=e.async.throttle((...i)=>{e.async.requestAnimationFrame(()=>{if(e.editor&&e.iframe&&"auto"===t.height){let t=e.ew.getComputedStyle(e.editor),i=parseInt(t.marginTop||"0",10)+parseInt(t.marginBottom||"0",10);(0,s.css)(e.iframe,"height",e.editor.offsetHeight+i)}})},e.defaultTimeout/2);if(e.e.on("change afterInit afterSetMode resize",o).on([e.iframe,e.ew,i.documentElement],"load",o).on(i,"readystatechange DOMContentLoaded",o),"function"==typeof ResizeObserver){let t=new ResizeObserver(o);t.observe(i.body),e.e.on("beforeDestruct",()=>{t.disconnect()})}}return i.documentElement&&e.e.on(i.documentElement,"mousedown touchend",()=>{e.s.isFocused()||(e.s.focus(),e.editor===i.body&&e.s.setCursorIn(i.body))}).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",t=>{var i;null==(i=e.events)||i.fire(e.ow,t)}),!1})})})},85745:function(e,t,i){"use strict";i(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},80763:function(e,t,i){"use strict";var o=i(82758),n=i(65478),r=i(580),s=i(21537),a=i(50911),l=i(74569);i(85745);var c=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let d="__jodit_imageprocessor_binded",u=d+"blob-id";class h extends a.Plugin{afterInit(e){}beforeDestruct(e){let t=(0,n.cached)(e,"buffer"),i=null==t?void 0:t.get(u);if(t&&i){for(let e of Object.keys(i))URL.revokeObjectURL(e);t.delete(u)}}onAfterGetValueFromEditor(e,t){if(t!==o.SOURCE_CONSUMER)return this.onBeforeSetElementValue(e)}onBeforeSetElementValue(e){let{jodit:t}=this;if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;let i=t.buffer.get(u);if(i)for(let t of Object.keys(i))for(;e.value.includes(t);)e.value=e.value.replace(t,i[t])}async afterChange(e){let{jodit:t}=this;t.editor&&(0,s.$$)("img",t.editor).forEach(e=>{(0,s.dataBind)(e,d)||((0,s.dataBind)(e,d,!0),e.complete||t.e.on(e,"load",function i(){var o;t.isInDestruct||null==(o=t.e)||o.fire("resize"),t.e.off(e,"load",i)}),e.src&&/^data:/.test(e.src)&&function(e,t){let i;if(!e.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let o=t.src;try{i=(0,l.dataURItoBlob)(o)}catch(e){return}t.src=URL.createObjectURL(i),e.e.fire("internalUpdate");let{buffer:n}=e,r=n.get(u)||{};r[t.src]=o,e.buffer.set(u,r)}(t,e),t.e.on(e,"mousedown touchstart",()=>{t.s.select(e)}))})}}c([(0,n.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),c([(0,n.watch)(":beforeSetElementValue")],h.prototype,"onBeforeSetElementValue",null),c([(0,n.watch)([":change",":afterInit",":changePlace"]),(0,n.debounce)()],h.prototype,"afterChange",null),r.pluginSystem.add("imageProcessor",h)},97536:function(e,t,i){"use strict";i(6441).Config.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0}},3215:function(e,t,i){"use strict";var o=i(65478),n=i(2748),r=i(580),s=i(21537),a=i(20356),l=i(62843);i(97536);var c=i(59436),d=i(53636),u=i(10263),h=i(94575),p=i(34755),f=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class m extends a.Plugin{get form(){return new c.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,d.openImageEditorDialog)(this.j,this.state),openImagePopup:e=>(0,u.openImagePopup)(this.j,this.dialog,this.state,e)})}get dialog(){let{j:e}=this,t=e.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,p.applyValuesToImage)(e,this.state,this.state.sourceImage),e.synchronizeValues(),t.close()}),i.remove.onAction(()=>{e.s.removeNode(this.state.sourceImage),t.close()}),i.cancel.onAction(()=>{t.close()}),t.setHeader(e.i18n("Image properties")),t.setContent(this.form),t.setFooter([[i.cancel,i.remove],i.check]),e.e.on(t,"afterClose",()=>{this.state.image.parentNode&&e.o.image.selectImageAfterClose&&e.s.select(this.state.sourceImage)}),t.setSize(e.o.image.dialogWidth),(0,s.markOwner)(e,t.container),t}get __buttons(){let{j:e}=this;return{check:(0,l.Button)(e,"ok","Apply","primary"),remove:(0,l.Button)(e,"bin","Delete"),cancel:(0,l.Button)(e,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((e,t)=>(0,h.readValuesFromImage)(this.j,this.state).then(e,t)).catch(e=>{(0,s.isAbortError)(e)||this.dialog.message.error(e.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(e=>e.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(e=>e.state.disabled=!1)}afterInit(e){let t=this;e.e.on("afterConstructor changePlace",()=>{e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",i=>{let o=i.target;if(n.Dom.isTag(o,"img"))if(e.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",o))return;t.state.sourceImage=o,t.state.image=o.cloneNode(!0),e.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),t.open())}else i.stopImmediatePropagation(),e.s.select(o)})}).on("openImageProperties.imageproperties",e=>{t.state.sourceImage=e,this.state.image=e.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:e,values:t}=this.state;if(e.src)try{this.__lock();try{await e.decode()}catch(e){}if(this.state.sizeIsLocked&&(0,s.isNumeric)(t.imageWidth)){let e=parseFloat(t.imageWidth.toString());t.imageHeight=Math.round(e/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",e)}catch(e){this.j.alert(e.message)}finally{this.__unlock()}}beforeDestruct(e){var t,i,n;Object.values(null!=(t=(0,o.cached)(this,"__buttons"))?t:{}).forEach(e=>e.destruct()),null==(i=(0,o.cached)(this,"dialog"))||i.destruct(),null==(n=(0,o.cached)(this,"form"))||n.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}constructor(){super(...arguments),this.state={image:new Image,sourceImage:new Image,get ratio(){let{naturalWidth:e,naturalHeight:t}=this.image;return e/t||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}},this.activeTabState={activeTab:"Image"}}}f([o.cache],m.prototype,"form",null),f([o.cache],m.prototype,"dialog",null),f([o.cache],m.prototype,"__buttons",null),f([(0,o.watch)("state.image")],m.prototype,"onStateValuesImageSrcChange",null),r.pluginSystem.add("imageProperties",m)},51642:function(e,t,i){"use strict";i.d(t,{readAlign:function(){return n}});var o=i(41180);function n(e,t){(0,o.cssInline)(e,"float")&&-1!==["left","right"].indexOf((0,o.cssInline)(e,"float").toLowerCase())?t.align=(0,o.css)(e,"float"):"block"===(0,o.css)(e,"display")&&"auto"===(0,o.cssInline)(e,"margin-left")&&"auto"===(0,o.cssInline)(e,"margin-right")?t.align="center":t.align=""}},94575:function(e,t,i){"use strict";i.d(t,{readValuesFromImage:function(){return c}});var o=i(29960),n=i(41180),r=i(51642),s=i(75595),a=i(47749),l=i(32566);async function c(e,t){let{sourceImage:i,values:c}=t;return(0,r.readAlign)(i,c),c.borderRadius=parseInt((0,n.cssInline)(i,"border-radius")||"0",10)||0,c.id=(0,o.attr)(i,"id")||"",c.imageTitle=(0,o.attr)(i,"title")||"",c.imageAlt=(0,o.attr)(i,"alt")||"",c.style=(0,o.attr)(i,"style")||"",c.classes=((0,o.attr)(i,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,a.readMargins)(i,c,t),(0,s.readLink)(t,e,c),c.imageSrc=(0,o.attr)(i,"src")||"",(0,l.readSizes)(i,c,t)}},75595:function(e,t,i){"use strict";i.d(t,{readLink:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i){let r=o.Dom.closest(e.sourceImage,"a",t.editor);r?(i.imageLink=(0,n.attr)(r,"href")||"",i.imageLinkOpenInNewTab="_blank"===(0,n.attr)(r,"target")):(i.imageLink="",i.imageLinkOpenInNewTab=!1)}},47749:function(e,t,i){"use strict";i.d(t,{readMargins:function(){return n}});var o=i(12475);function n(e,t,i){let n=!0,r=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(i=>{let s=e.style.getPropertyValue((0,o.kebabCase)(i));if(!s){r=!0,t[i]=0;return}/^[0-9]+(px)?$/.test(s)&&(s=parseInt(s,10)),t[i]=s,(r&&t[i]||n&&"marginTop"!==i&&t[i]!==t.marginTop)&&(n=!1)}),i.marginIsLocked=n}},32566:function(e,t,i){"use strict";i.d(t,{readSizes:function(){return a}});var o=i(29807),n=i(29960),r=i(41180),s=i(14415);async function a(e,t,i){try{await e.decode()}catch(e){}let a=(0,r.css)(e,"width",!0)||(0,n.attr)(e,"width")||!1,l=(0,r.css)(e,"height",!0)||(0,n.attr)(e,"height")||!1;t.imageWidth=!1!==a?(0,s.normalSizeFromString)(a):e.offsetWidth||e.naturalWidth,(0,o.isNumeric)(t.imageWidth)?t.imageHeight=!1!==l?(0,s.normalSizeFromString)(l):e.offsetHeight||e.naturalHeight:t.imageHeight=l||"";let{imageWidth:c,imageHeight:d}=t,u=parseFloat(c.toString());if(!(0,o.isNumeric)(c)||!(0,o.isNumeric)(d)){i.sizeIsLocked=!1;return}if(!1===l){t.imageHeight=Math.round(u/i.ratio),i.sizeIsLocked=!0;return}i.sizeIsLocked=1>Math.abs(u-parseFloat(d.toString())*i.ratio)}},59436:function(e,t,i){"use strict";i.d(t,{UIImagePropertiesForm:function(){return p}});var o=i(65478),n=i(87325),r=i(2748),s=i(21537),a=i(62405),l=i(12153),c=i(92762),d=i(35105),u=i(29827),h=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let p=class e extends a.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(e){let t=super.getElm(e);if(t)return t;for(let t of this.elements){let i=t.getElm(e);if(i)return i}return null}render(){return`<form>
143
+ </div>`}setPrompt(e){if(e){let{jodit:t}=this,i=t.o.aiAssistant[e],{aiCommonPrefixPrompt:o,aiCommonSuffixPrompt:n}=t.o.aiAssistant;this.promptInput.value=[o,(0,s.isString)(i)?i:"",n].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(e){this.setMod("loading",!1),r.Dom.detach(this.__results),this.__aiResult=e,r.Dom.append(this.__results,this.jodit.c.fromHTML(e)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(e){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=e,r.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let t=this.getFullElName("","hide","true");this.__results.classList.add(t),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(e){this.__submitButton.state.disabled=e,this.__tryAgainButton.state.disabled=e}__toggleInsertButton(e){this.__insertButton.state.disabled=e,this.__insertAfterButton.state.disabled=e}constructor(e,{onInsert:t,onInsertAfter:i}){super(e),this.__aiResult="",this.__error=this.getElm("error"),this.__body=this.getElm("body"),this.__buttons=this.getElm("buttons"),this.__results=this.getElm("results"),this.__spinner=this.getElm("spinner"),this.__insertButton=(0,a.Button)(e,"","Insert","primary").onAction(()=>t(this.__aiResult)),this.__insertAfterButton=(0,a.Button)(e,"","Insert After","initial").onAction(()=>i(this.__aiResult));let o=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,a.Button)(e,"ai-assistant","").onAction(o),this.__tryAgainButton=(0,a.Button)(e,"update","","initial").onAction(o),this.promptInput=new a.UITextArea(e,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});let n=new a.UIBlock(e,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new a.UIForm(e,[new a.UIBlock(e,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(t=>{this.__error.textContent="",this.setMod("loading",!0),e.e.fire("invokeAiAssistant",t.prompt);let i=this.getFullElName("","hide","true");this.__results.classList.remove(i),this.__buttons.classList.remove(i),r.Dom.detach(this.__results),r.Dom.append(this.__results,this.__spinner),this.__insertButton.focus()}),r.Dom.append(this.__buttons,n.container),r.Dom.append(this.__body,this.__formAiAssistant.container),this.onChangePromptValue()}};c([(0,n.watch)(":ai-assistant-response")],d.prototype,"onAiAssistentResponse",null),c([(0,n.watch)(":ai-assistant-error")],d.prototype,"onAiAssistentError",null),c([(0,n.watch)("promptInput:change")],d.prototype,"onChangePromptValue",null),d=c([o.component],d)},25187:function(e,t,i){"use strict";i(73391),i(12391),i(93183),i(66707),i(41107),i(71255),i(82439),i(61323),i(93079),i(19063),i(19271),i(1255),i(575),i(11317),i(36243),i(23399),i(96111),i(2169),i(42263),i(16233),i(77469),i(23531),i(80763),i(3215),i(70045),i(93401),i(76295),i(59483),i(91071),i(61019),i(65517),i(20071),i(32309),i(64837),i(79799),i(31571),i(85407),i(59451),i(18363),i(8355),i(58519),i(6687),i(56113),i(9159),i(12019),i(36125),i(9881),i(28545),i(45927),i(52951),i(43809),i(7309),i(68687),i(59495),i(39627),i(767),i(43003),i(72439),i(26551),i(72253),i(65735),i(83671),i(3115)},93183:function(e,t,i){"use strict";var o=i(82758),n=i(22732),r=i(580),s=i(23282),a=i(50911),l=i(45124);i(32496);var c=i(11338),d=i(14630);class u extends a.Plugin{afterInit(e){e.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:e.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:e.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:e.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:e.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:e.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:e.o.delete.hotkeys.backspaceSentence})}beforeDestruct(e){e.e.off("afterCommand.delete")}onDelete(e,t="char"){let i=this.j,r=i.selection;if(r.isFocused()||r.focus(),(0,c.checkNotCollapsed)(i))return i.e.fire("backSpaceAfterDelete",e),!1;let a=r.range,u=i.createInside.text(o.INVISIBLE_SPACE);try{if(n.Dom.safeInsertNode(a,u),!n.Dom.isOrContains(i.editor,u))return;if(i.e.fire("backSpaceBeforeCases",e,u))return!1;(0,l.moveNodeInsideStart)(i,u,e);let r=i.o.delete.disableCases;if(d.casesMap.some(([n,a])=>{if(!(r&&r.has(n))&&(0,s.isFunction)(a)&&a(i,u,e,t))return o.IS_PROD,!0}))return!1}catch(e){throw o.IS_PROD,e}finally{i.e.fire("backSpaceAfterDelete",e,u),this.safeRemoveEmptyNode(u)}return!1}safeRemoveEmptyNode(e){var t,i;let{range:o}=this.j.s;o.startContainer===e&&(e.previousSibling?n.Dom.isText(e.previousSibling)?o.setStart(e.previousSibling,null!=(i=null==(t=e.previousSibling.nodeValue)?void 0:t.length)?i:0):o.setStartAfter(e.previousSibling):e.nextSibling&&(n.Dom.isText(e.nextSibling)?o.setStart(e.nextSibling,0):o.setStartBefore(e.nextSibling)),o.collapse(!0),this.j.s.selectRange(o)),n.Dom.safeRemove(e)}}u.requires=["hotkeys"],r.pluginSystem.add("backspace",u)},62845:function(e,t,i){"use strict";i.d(t,{checkJoinNeighbors:function(){return s}});var o=i(82758),n=i(2748),r=i(63785);function s(e,t,i){let r=t,s=r;for(;r&&!n.Dom.findNotEmptySibling(r,i)&&r.parentElement!==e.editor;)s=r=r.parentElement;if(n.Dom.isElement(s)&&n.Dom.isContentEditable(s,e.editor)){var l,c;let r,d,u,h=n.Dom.findNotEmptySibling(s,i);if(n.Dom.isTag(h,"br"))return n.Dom.safeRemove(h),e.s.setCursorBefore(t),!0;if(h&&(l=s,c=h,r=n.Dom.isTag(c,o.LIST_TAGS),d=n.Dom.isTag(l,o.LIST_TAGS),u=(e,t)=>t?e.firstElementChild:e.lastElementChild,(d?(c=e.createInside.element(e.o.enterBlock),n.Dom.before(l,c),a(e,u(l,i),c,i)):!!c&&!!r&&!d&&a(e,l,u(c,!i),i))||a(e,s,function(e,t){if(!n.Dom.isTag(e,"table"))return e;let i=[];return n.Dom.each(e,e=>{n.Dom.isCell(e)&&i.push(e)}),i.length?i[t?i.length-1:0]:null}(h,i),i)))return e.s.setCursorBefore(t),!0}return!1}function a(e,t,i,o){if(t&&n.Dom.isElement(i)){n.Dom.moveContent(t,i,!o,(0,r.getMoveFilter)(e));let s=t;for(;s&&s!==e.editor&&n.Dom.isEmpty(s);){let e=s.parentElement;n.Dom.safeRemove(s),s=e}return!0}return!1}},91748:function(e,t,i){"use strict";i.d(t,{checkJoinTwoLists:function(){return s}});var o=i(2748),n=i(37790),r=i(63785);function s(e,t,i){let s=o.Dom.findSibling(t,i),a=o.Dom.findSibling(t,!i);if(!o.Dom.closest(t,o.Dom.isElement,e.editor)&&o.Dom.isList(s)&&o.Dom.isList(a)&&o.Dom.isTag(s.lastElementChild,"li")&&o.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:c}=e.s,d=s.lastElementChild,u=a.firstElementChild;return(0,n.call)(i?o.Dom.prepend:o.Dom.append,u,t),o.Dom.moveContent(a,s,!i,(0,r.getMoveFilter)(e)),o.Dom.safeRemove(a),(0,n.call)(i?o.Dom.append:o.Dom.prepend,d,t),(0,n.call)(i?l:c,t),!0}return!1}},11338:function(e,t,i){"use strict";function o(e){return!e.s.isCollapsed()&&(e.execCommand("Delete"),!0)}i.d(t,{checkNotCollapsed:function(){return o}})},73792:function(e,t,i){"use strict";i.d(t,{checkRemoveChar:function(){return function e(t,i,s,l){var c,d,u,h;let p,f=s?-1:1,m=n.Dom.sibling(i,!s),g=n.Dom.sibling(i,s),b=null,v=!1;for(g||(g=a(i,s,t.editor));g&&(n.Dom.isText(g)||n.Dom.isInlineBlock(g));){for(;n.Dom.isInlineBlock(g);)g=s?null==g?void 0:g.lastChild:null==g?void 0:g.firstChild;if(!g)break;if((null==(c=g.nodeValue)?void 0:c.length)&&(p=function(e,t,i,s){let a=(0,r.toArray)(e.nodeValue),l=a.length,c=t?l-1:0;if(a[c]===o.INVISIBLE_SPACE)for(;a[c]===o.INVISIBLE_SPACE;)c+=i;let d=a[c];if(a[c+i]===o.INVISIBLE_SPACE){for(c+=i;a[c]===o.INVISIBLE_SPACE;)c+=i;c+=t?1:-1}return a=t&&c<0?[]:a.slice(t?0:c+1,t?c:l),function(e,t,i){var s;if(!e||!n.Dom.isText(e)||(!t?/ $/:/^ /).test(null!=(s=e.nodeValue)?s:"")||!(0,r.trimInv)(e.nodeValue||"").length)for(let e=t?i.length-1:0;t?e>=0:e<i.length;e+=t?-1:1)if(" "===i[e])i[e]=o.NBSP_SPACE;else break}(s,t,a),e.nodeValue=a.join(""),d}(g,s,f,m),!g.nodeValue.length&&n.Dom.isInlineBlock(g.parentNode)&&(g.nodeValue=o.INVISIBLE_SPACE)),(null==(d=g.nodeValue)?void 0:d.length)||(b=g),!(0,r.isVoid)(p)&&p!==o.INVISIBLE_SPACE){u=g,h=p,(0,r.call)(s?n.Dom.after:n.Dom.before,u,i),("sentence"===l||"word"===l&&" "!==h&&h!==o.NBSP_SPACE)&&e(t,i,s,l),v=!0;break}let y=a(g,s,t.editor);b&&(n.Dom.safeRemove(b),b=null),g=y}return b&&n.Dom.safeRemove(b),v&&(function(e){let t=e.parentElement;for(;t&&n.Dom.isInlineBlock(t)&&n.Dom.isTag(t,"a");){let i=t.parentElement;n.Dom.isEmpty(t)&&(n.Dom.after(t,e),n.Dom.safeRemove(t)),t=i}}(i),i.parentElement!==t.editor&&n.Dom.isBlock(i.parentElement)&&n.Dom.each(i.parentElement,n.Dom.isEmptyTextNode)&&n.Dom.after(i,t.createInside.element("br")),t.s.setCursorBefore(i),n.Dom.isTag(i.previousSibling,"br")&&!n.Dom.findNotEmptySibling(i,!1)&&n.Dom.after(i,t.createInside.element("br"))),v}}});var o=i(82758),n=i(22732),r=i(21537),s=i(63785);function a(e,t,i){let o=n.Dom.sibling(e,t);return!o&&e.parentNode&&e.parentNode!==i&&(o=(0,s.findMostNestedNeighbor)(e,!t,i,!0))&&n.Dom.closest(e,"li",i)!==n.Dom.closest(o,"li",i)?null:o}},87536:function(e,t,i){"use strict";i.d(t,{checkRemoveContentNotEditable:function(){return s}});var o=i(22732),n=i(21537),r=i(45124);function s(e,t,i){let s=o.Dom.findSibling(t,i);return!s&&t.parentElement&&t.parentElement!==e.editor&&(s=o.Dom.findSibling(t.parentElement,i)),!(!o.Dom.isElement(s)||o.Dom.isContentEditable(s,e.editor))&&((0,n.call)(i?o.Dom.before:o.Dom.after,s,t),o.Dom.safeRemove(s),(0,r.moveNodeInsideStart)(e,t,i),(0,n.call)(i?e.s.setCursorBefore:e.s.setCursorAfter,t),!0)}},12474:function(e,t,i){"use strict";i.d(t,{checkRemoveEmptyNeighbor:function(){return n}});var o=i(2748);function n(e,t,i){let n=o.Dom.closest(t,o.Dom.isElement,e.editor);if(!n)return!1;let r=o.Dom.findNotEmptySibling(n,i);return!!(r&&o.Dom.isEmpty(r))&&(o.Dom.safeRemove(r),e.s.setCursorBefore(t),!0)}},58940:function(e,t,i){"use strict";i.d(t,{checkRemoveEmptyParent:function(){return s}});var o=i(82758),n=i(22732),r=i(91748);function s(e,t,i){let s=!1,{setCursorBefore:a,setCursorIn:l}=e.s,c=n.Dom.closest(t,n.Dom.isElement,e.editor);if(!c||!n.Dom.isEmpty(c))return!1;let d=n.Dom.findNotEmptyNeighbor(t,i,e.editor);do if(c&&n.Dom.isEmpty(c)&&!n.Dom.isCell(c)){n.Dom.after(c,t);let i=n.Dom.closest(c,e=>n.Dom.isElement(e)&&e!==c,e.editor);n.Dom.safeRemove(c),s=!0,c=i}else break;while(c)return!!(s&&(0,r.checkJoinTwoLists)(e,t,i))||(!d||n.Dom.isText(d)||n.Dom.isTag(d,o.INSEPARABLE_TAGS)?a(t):l(d,!i),s)}},56825:function(e,t,i){"use strict";i.d(t,{checkRemoveUnbreakableElement:function(){return s}});var o=i(82758),n=i(2748),r=i(58940);function s(e,t,i){let s=n.Dom.findSibling(t,i);return!!(n.Dom.isElement(s)&&(n.Dom.isTag(s,o.INSEPARABLE_TAGS)||n.Dom.isEmpty(s)))&&(n.Dom.safeRemove(s),n.Dom.isTag(s,"br")&&!n.Dom.findNotEmptySibling(t,!1)&&n.Dom.after(t,e.createInside.element("br")),e.s.setCursorBefore(t),n.Dom.isTag(s,"br")&&(0,r.checkRemoveEmptyParent)(e,t,i),!0)}},90240:function(e,t,i){"use strict";i.d(t,{checkTableCell:function(){return n}});var o=i(2748);function n(e,t){let i=t.parentElement;return!!o.Dom.isCell(i)}},68034:function(e,t,i){"use strict";i.d(t,{checkUnwrapFirstListItem:function(){return r}});var o=i(2748),n=i(43555);function r(e,t,i){var r;let s=o.Dom.closest(t,o.Dom.isElement,e.editor),{s:a}=e;if(o.Dom.isLeaf(s)&&(null==(r=null==s?void 0:s.parentElement)?void 0:r[i?"firstElementChild":"lastElementChild"])===s&&a.cursorInTheEdge(i,s)){let r=s.parentElement,l=e.createInside.element(e.o.enterBlock);return(0,n.call)(i?o.Dom.before:o.Dom.after,r,l),o.Dom.moveContent(s,l),o.Dom.safeRemove(s),o.Dom.isEmpty(r)&&o.Dom.safeRemove(r),(0,n.call)(i?a.setCursorBefore:a.setCursorAfter,t),!0}return!1}},14630:function(e,t,i){"use strict";var o=i(62845),n=i(91748),r=i(73792),s=i(87536),a=i(12474),l=i(58940),c=i(56825),d=i(90240),u=i(68034);let h=[["remove-unbreakable",c.checkRemoveUnbreakableElement],["remove-not-editable",s.checkRemoveContentNotEditable],["remove-char",r.checkRemoveChar],["table-cell",d.checkTableCell],["remove-empty-parent",l.checkRemoveEmptyParent],["remove-empty-neighbor",a.checkRemoveEmptyNeighbor],["join-two-lists",n.checkJoinTwoLists],["join-neighbors",o.checkJoinNeighbors],["unwrap-first-list-item",u.checkUnwrapFirstListItem]];h.map(([,e])=>e),i.d(t,["casesMap",0,h])},32496:function(e,t,i){"use strict";i(6441).Config.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},63785:function(e,t,i){"use strict";i.d(t,{findMostNestedNeighbor:function(){return n},getMoveFilter:function(){return r}});var o=i(22732);function n(e,t,i,r=!1){let s=e=>t?e.firstChild:e.lastChild,a=o.Dom.findNotEmptyNeighbor(e,!t,i);if(r&&o.Dom.isElement(a)&&!o.Dom.isInlineBlock(a))return null;if(a)do{if(!s(a))return a;a=s(a)}while(a)return null}function r(e){return t=>!0!==e.e.fire("backSpaceIsMovedIgnore",t)}},41107:function(e,t,i){"use strict";var o=i(580),n=i(21537),r=i(12153),s=i(6441);i(73674);var a=i(820),l=i(53651),c=i(16020),d=i(89758),u=i(98527),h=i(51855);o.pluginSystem.add("bold",function(e){let t=t=>{let i,o=s.Config.defaultOptions.controls[t],r={...o.css};return Object.keys(r).forEach(e=>{i||(i={}),i[e]=(0,n.isArray)(r[e])?r[e][0]:r[e]}),e.s.commitStyle({element:o.tags?o.tags[0]:void 0}),e.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(t=>{e.registerButton({name:t,group:"font-style"})}),["superscript","subscript"].forEach(t=>{e.registerButton({name:t,group:"script"})}),e.registerCommand("bold",{exec:t,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:t,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:t,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:t}).registerCommand("subscript",{exec:t}).registerCommand("superscript",{exec:t})}),r.Icon.set("bold",a.default).set("italic",l.default).set("strikethrough",c.default).set("subscript",d.default).set("superscript",u.default).set("underline",h.default)},73674:function(e,t,i){"use strict";var o=i(6441);o.Config.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},o.Config.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},o.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},o.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},o.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},o.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},820:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.75" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M6 4h7a4 4 0 0 1 0 8H6V4Zm0 8h8a4 4 0 0 1 0 8H6v-8Z"/> </g> </svg> '},53651:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M10 4h9M5 20h9M15 4 9 20"/> </g> </svg> '},16020:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M17 6c-1-1.5-2.5-2-5-2-3 0-5 1.5-5 4 0 1.8 1.5 3 5 4s5 2.2 5 4c0 2.5-2 4-5 4-2.5 0-4-.5-5-2M3 12h18"/> </g> </svg> '},89758:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 4 9 12M12 4 3 16M16 16a2 2 0 0 1 4 0c0 1.5-4 3-4 5h4"/> </g> </svg> '},98527:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 8 9 12M12 8 3 20M16 4a2 2 0 0 1 4 0c0 1.5-4 3-4 5h4"/> </g> </svg> '},51855:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M6 3v8a6 6 0 0 0 12 0V3M4 21h16"/> </g> </svg> '},71255:function(e,t,i){"use strict";var o=i(2748),n=i(580),r=i(37790),s=i(50911),a=i(12153),l=i(6441),c=i(31151);l.Config.prototype.controls.classSpan={command:"applyClassName",exec:r.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(e,t){let i=e.s.current();if(i){let n=o.Dom.closest(i,o.Dom.isElement,e.editor)||e.editor;return!!(t.control.args&&n.classList.contains(t.control.args[0].toString()))}return!1},isActive(e,t){let i=e.s.current();if(i){let n=o.Dom.closest(i,o.Dom.isElement,e.editor)||e.editor,r=!1;return t.control.list&&Object.keys(t.control.list).forEach(e=>{n.classList.contains(e)&&(r=!0)}),!!(n&&n!==e.editor&&void 0!==t.control.list&&r)}return!1},childTemplate:(e,t,i)=>`<span class="${t}">${e.i18n(i)}</span>`,tooltip:"Insert className"};class d extends s.Plugin{afterInit(e){e.registerCommand("applyClassName",(t,i,o)=>(e.s.commitStyle({attributes:{class:o}}),!1))}beforeDestruct(){}constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}}n.pluginSystem.add("classSpan",d),a.Icon.set("class-span",c.default)},31151:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M8 4H5v16h3m8-16h3v16h-3M9 15l3-7 3 7m-5-2h4"/> </g> </svg> '},82439:function(e,t,i){"use strict";var o=i(65478),n=i(2748),r=i(70071),s=i(580),a=i(86518),l=i(20356);i(46776);var c=i(59498),d=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class u extends l.Plugin{afterInit(e){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;let e=this.j;this.walker.setWork(e.editor),this.currentSelectionNode=e.s.current()}startWalker(){let{jodit:e}=this,t=(0,c.getHash)(this.j.o.cleanHTML.allowTags),i=(0,c.getHash)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",o=>(0,c.visitNodeWalker)(e,o,t,i,this.currentSelectionNode)).on("end",e=>{this.j.e.fire(e?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(e){if("removeformat"===e.toLowerCase())return this.j.s.isCollapsed()?(0,c.removeFormatForCollapsedSelection)(this.j):(0,c.removeFormatForSelection)(this.j),!1}onBeforeSetNativeEditorValue(e){let[t,i]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.od.implementation.createHTMLDocument("").body];return t.innerHTML=e.value,this.j.e.fire("safeHTML",t),e.value=t.innerHTML,(0,a.safeHTML)(t,{safeJavaScriptLink:!0,removeOnError:!0}),n.Dom.safeRemove(i),!1}onAfterGetValueFromEditor(e){this.j.o.cleanHTML.collapseEmptyValueToEmptyString&&/^<([a-z][a-z0-9]*)\b[^>]*>(?:<br\/?>)?<\/\1>$/i.test(e.value.trim())&&(e.value="")}onSafeHTML(e){let t=this.j.o.cleanHTML.sanitizer;t&&(e.innerHTML=t(e.innerHTML)),(0,a.safeHTML)(e,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new r.LazyWalker(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}}d([(0,o.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],u.prototype,"onChangeCleanHTML",null),d([(0,o.hook)("ready")],u.prototype,"startWalker",null),d([(0,o.watch)(":beforeCommand")],u.prototype,"beforeCommand",null),d([(0,o.watch)(":beforeSetNativeEditorValue")],u.prototype,"onBeforeSetNativeEditorValue",null),d([(0,o.watch)(":afterGetValueFromEditor")],u.prototype,"onAfterGetValueFromEditor",null),d([(0,o.watch)(":safeHTML")],u.prototype,"onSafeHTML",null),s.pluginSystem.add("cleanHtml",u)},46776:function(e,t,i){"use strict";var o=i(12153),n=i(6441),r=i(44330);n.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,collapseEmptyValueToEmptyString:!1,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script,iframe,object,embed",useIframeSandbox:!1,removeOnError:!0,removeEventAttributes:!0,safeJavaScriptLink:!0,safeLinksTarget:!0,allowedStyles:!1,sanitizer:!1,sandboxIframesInContent:!0,convertUnsafeEmbeds:["object","embed"],disableCleanFilter:null},n.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},o.Icon.set("eraser",r.default)},44330:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m4 12 10-9 7 7-10 10H7l-4-4a3 3 0 0 1 1-4Zm3-3 8 7m-4 4h10"/> </g> </svg> '},83447:function(e,t,i){"use strict";i.d(t,{getHash:function(){return r}});var o=i(70799),n=i(49055);function r(e){let t=/([^[]*)\[([^\]]+)]/,i=/[\s]*,[\s]*/,r=/^(.*)[\s]*=[\s]*(.*)$/,s={};return(0,o.isString)(e)?(e.split(i).map(e=>{e=(0,n.trim)(e);let o=t.exec(e),a={};if(o){let e=o[2].split(i);o[1]&&(e.forEach(e=>{e=(0,n.trim)(e);let t=r.exec(e);t?a[t[1]]=t[2]:a[e]=!0}),s[o[1].toUpperCase()]=a)}else s[e.toUpperCase()]=!0}),s):!!e&&(Object.keys(e).forEach(t=>{s[t.toUpperCase()]=e[t]}),s)}},59498:function(e,t,i){"use strict";i.d(t,{getHash:function(){return o.getHash},removeFormatForCollapsedSelection:function(){return n.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return r.removeFormatForSelection},visitNodeWalker:function(){return s.visitNodeWalker}});var o=i(83447),n=i(84272),r=i(42312),s=i(39516)},15908:function(e,t,i){"use strict";i.d(t,{isAllowedMediaEmbed:function(){return r}});let o=/^(https?:)?\/\/(www\.|m\.|music\.)?youtube(-nocookie)?\.com\/embed\//i,n=/^(https?:)?\/\/player\.vimeo\.com\/video\//i;function r(e){return o.test(e)||n.test(e)}},84272:function(e,t,i){"use strict";i.d(t,{isInlineBlock:function(){return s},removeFormatForCollapsedSelection:function(){return r}});var o=i(82758),n=i(2748);function r(e,t){let{s:i}=e,o=t;if(!o){o=e.createInside.fake();let{range:t}=i;n.Dom.safeInsertNode(t,o),t.collapse()}let r=n.Dom.furthest(o,s,e.editor);if(r)if(i.cursorOnTheLeft(r))n.Dom.before(r,o);else if(i.cursorOnTheRight(r))n.Dom.after(r,o);else{let e=i.splitSelection(r);e&&n.Dom.after(e,o)}t||(i.setCursorBefore(o),n.Dom.safeRemove(o))}function s(e){return n.Dom.isInlineBlock(e)&&!n.Dom.isTag(e,o.INSEPARABLE_TAGS)}},42312:function(e,t,i){"use strict";i.d(t,{removeFormatForSelection:function(){return s}});var o=i(2748),n=i(43555),r=i(84272);function s(e){let{s:t,editor:i,createInside:s}=e,{range:a}=t,l=a.cloneRange(),c=a.cloneRange(),d=s.fake(),u=s.fake();l.collapse(!0),c.collapse(!1),o.Dom.safeInsertNode(l,d),o.Dom.safeInsertNode(c,u),a.setStartBefore(d),a.collapse(!0),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,d),a.setEndAfter(u),a.collapse(!1),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,u);let h=[];o.Dom.between(d,u,e=>{(0,r.isInlineBlock)(e)&&!o.Dom.isTag(e,"a")&&h.push(e),o.Dom.isElement(e)&&(0,n.attr)(e,"style")&&(0,n.attr)(e,"style",null)}),h.forEach(e=>o.Dom.unwrap(e));let p=(e,t)=>{if(!o.Dom.findNotEmptySibling(e,t)){let o=e.parentNode;if(o&&o!==i&&(0,n.attr)(o,"style"))return(0,n.attr)(o,"style",null),p(o,t),!0}};p(d,!0)&&p(u,!1),a.setStartAfter(d),a.setEndBefore(u),t.selectRange(a),o.Dom.safeRemove(d),o.Dom.safeRemove(u)}},82558:function(e,t,i){"use strict";i.d(t,{allowAttributes:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i,r){let s=r&&o.Dom.isElement(t)&&r[t.nodeName];if(r&&o.Dom.isElement(t)&&!0!==s){if(!s)return i;let e=t.attributes;if(e&&e.length){let o=[];for(let t=0;t<e.length;t+=1){let i=s[e[t].name];i&&(!0===i||i===e[t].value)||o.push(e[t].name)}o.length&&(i=!0),o.forEach(e=>{(0,n.attrRaw)(t,e,null)})}}return i}},1962:function(e,t,i){"use strict";i.d(t,{convertUnsafeEmbeds:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i){let r=e.o.cleanHTML.convertUnsafeEmbeds;if(!r||!o.Dom.isElement(t))return i;let s=t.nodeName.toLowerCase();if(!r.includes(s))return i;let a=(0,n.attr)(t,"data")||(0,n.attr)(t,"src")||(0,n.attr)(t,"movie")||"";if(!a)return o.Dom.safeRemove(t),!0;let l=e.createInside.element("iframe");return(0,n.attr)(l,{src:a,sandbox:"",frameborder:"0",width:(0,n.attr)(t,"width"),height:(0,n.attr)(t,"height")}),o.Dom.replace(t,l,void 0,!1,!0),!0}},39433:function(e,t,i){"use strict";i.d(t,{fillEmptyParagraph:function(){return s}});var o=i(82758),n=i(2748);let r=new Set(["table","tbody","thead","tfoot","tr"]);function s(e,t,i){if(e.o.cleanHTML.fillEmptyParagraph&&n.Dom.isBlock(t)&&n.Dom.isEmpty(t,o.INSEPARABLE_TAGS)&&!n.Dom.isTag(t,r)){let i=e.createInside.element("br");return n.Dom.append(t,i),!0}return i}},45235:function(e,t,i){"use strict";i.r(t),i.d(t,{allowAttributes:function(){return o.allowAttributes},convertUnsafeEmbeds:function(){return n.convertUnsafeEmbeds},fillEmptyParagraph:function(){return r.fillEmptyParagraph},removeEmptyTextNode:function(){return s.removeEmptyTextNode},removeInvTextNodes:function(){return a.removeInvTextNodes},replaceOldTags:function(){return l.replaceOldTags},safeLinksTarget:function(){return c.safeLinksTarget},sandboxIframesInContent:function(){return d.sandboxIframesInContent},sanitizeAttributes:function(){return u.sanitizeAttributes},sanitizeStyles:function(){return h.sanitizeStyles},tryRemoveNode:function(){return p.tryRemoveNode}});var o=i(82558),n=i(1962),r=i(39433),s=i(53392),a=i(25813),l=i(80973),c=i(95614),d=i(85978),u=i(384),h=i(15583),p=i(28800)},53392:function(e,t,i){"use strict";i.d(t,{removeEmptyTextNode:function(){return n}});var o=i(2748);function n(e,t,i,n,r,s){return o.Dom.isText(t)&&!t.nodeValue?(t===s&&e.s.isFocused()&&e.s.isCollapsed()&&e.s.setCursorAfter(t),o.Dom.safeRemove(t),!0):i}},25813:function(e,t,i){"use strict";i.d(t,{removeInvTextNodes:function(){return r}});var o=i(82758),n=i(2748);function r(e,t,i,r,s,a){if(a===t||!n.Dom.isText(t)||null==t.nodeValue||!(0,o.INVISIBLE_SPACE_REG_EXP)().test(t.nodeValue))return i;let l=n.Dom.furthest(a,n.Dom.isBlock,e.editor);return!l||n.Dom.isOrContains(l,t)?i:(t.nodeValue=t.nodeValue.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),""),t===a&&e.s.isFocused()&&e.s.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||n.Dom.safeRemove(t),!0)}},80973:function(e,t,i){"use strict";i.d(t,{replaceOldTags:function(){return n}});var o=i(2748);function n(e,t,i){let n=function(e,t,i){if(!i||!o.Dom.isHTMLElement(t))return t;let n=i[t.nodeName.toLowerCase()]||i[t.nodeName];return n?o.Dom.replace(t,n,e.createInside,!0,!1):t}(e,t,e.o.cleanHTML.replaceOldTags);return t!==n||i}},95614:function(e,t,i){"use strict";i.d(t,{safeLinksTarget:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i){if(!e.o.cleanHTML.safeLinksTarget||!o.Dom.isElement(t)||"A"!==t.nodeName||"_blank"!==(0,n.attr)(t,"target"))return i;let r=((0,n.attr)(t,"rel")||"").split(/\s+/).filter(Boolean),s=!1;return(r.includes("noopener")||(r.push("noopener"),s=!0),r.includes("noreferrer")||(r.push("noreferrer"),s=!0),s)?((0,n.attr)(t,"rel",r.join(" ")),!0):i}},85978:function(e,t,i){"use strict";i.d(t,{sandboxIframesInContent:function(){return s}});var o=i(2748),n=i(29960),r=i(15908);function s(e,t,i){return e.o.cleanHTML.sandboxIframesInContent&&o.Dom.isElement(t)&&"IFRAME"===t.nodeName?(0,r.isAllowedMediaEmbed)((0,n.attr)(t,"src")||"")||t.hasAttribute("sandbox")?i:((0,n.attr)(t,"sandbox",""),!0):i}},384:function(e,t,i){"use strict";i.d(t,{sanitizeAttributes:function(){return r}});var o=i(2748),n=i(21537);function r(e,t,i){if(!o.Dom.isElement(t))return i;let r=e.options.cleanHTML;return!!(0,n.sanitizeHTMLElement)(t,{safeJavaScriptLink:r.safeJavaScriptLink,removeOnError:r.removeOnError,removeEventAttributes:r.removeEventAttributes,safeLinksTarget:r.safeLinksTarget})||i}},15583:function(e,t,i){"use strict";i.d(t,{sanitizeStyles:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i){let r=e.o.cleanHTML.allowedStyles;if(!r||!o.Dom.isElement(t))return i;let s=(0,n.attr)(t,"style");if(!s)return i;let a=function(e,t){let i=t[e],o=t["*"];if(!i&&!o)return null;let n=new Set;if(o)for(let e of o)n.add(e.toLowerCase());if(i)for(let e of i)n.add(e.toLowerCase());return n}(t.nodeName.toLowerCase(),r);if(!a)return i;let l=s.split(";").map(e=>e.trim()).filter(e=>{if(!e)return!1;let t=e.indexOf(":");if(-1===t)return!1;let i=e.substring(0,t).trim().toLowerCase();return a.has(i)}).join("; ").replace(/;\s*$/,"");return l!==s?((0,n.attr)(t,"style",l||null),!0):i}},28800:function(e,t,i){"use strict";i.d(t,{tryRemoveNode:function(){return l}});var o=i(82758),n=i(2748),r=i(49055),s=i(29960),a=i(15908);function l(e,t,i,l,c,d){return!function(e,t,i,l,c){if(!n.Dom.isText(t)){let e=t.nodeName.toUpperCase();if(l&&!l[e])return!0;let i="IFRAME"===e&&(0,a.isAllowedMediaEmbed)((0,s.attr)(t,"src")||"");if(!l&&c&&c[e]&&!i)return!0}if(!e.o.cleanHTML.removeEmptyElements)return!1;let d=e.s.isCollapsed()?e.s.range.startContainer:null;return n.Dom.isElement(t)&&null!=t.nodeName.match(o.IS_INLINE)&&!n.Dom.isTemporary(t)&&0===(0,r.trimInv)(t.innerHTML).length&&(null==i||!n.Dom.isOrContains(t,i))&&(null==d||!n.Dom.isOrContains(t,d))}(e,t,d,l,c)?i:(n.Dom.safeRemove(t),!0)}},39516:function(e,t,i){"use strict";i.d(t,{visitNodeWalker:function(){return s}});var o=i(82758),n=i(45235);let r=Object.keys(n);function s(e,t,i,s,a){let l=!1,c=e.o.cleanHTML.disableCleanFilter;for(let d of r)if(!(c&&c.has(d))&&(l=(0,n[d])(e,t,l,i,s,a),o.IS_PROD,!t.isConnected))return!0;return l}},61323:function(e,t,i){"use strict";var o=i(82758),n=i(33433),r=i(2748),s=i(580),a=i(21537);i(79419);class l{init(e){var t;null==(t=this.buttons)||t.forEach(t=>e.registerButton(t)),e.e.off(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`).on(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`,t=>{var i;let n=function(e,t){if(!t||e.s.isCollapsed())return t;let i=e.s.range.commonAncestorContainer;r.Dom.isElement(i)||(i=i.parentElement);let o=t;for(;i&&i!==e.editor&&r.Dom.isElement(i)&&!r.Dom.isBlock(i);){let e=i.cloneNode(!1);e.innerHTML=o,o=e.outerHTML,i=i.parentElement}return o}(e,e.s.html),s=(0,a.getDataTransfer)(t)||(0,a.getDataTransfer)(e.ew)||(0,a.getDataTransfer)(t.originalEvent);s&&(s.setData(o.TEXT_PLAIN,(0,a.stripTags)(n)),s.setData(o.TEXT_HTML,n)),e.buffer.set(o.CLIPBOARD_ID,n),e.e.fire("pasteStack",{html:n,action:e.o.defaultActionOnPaste||o.INSERT_AS_HTML}),"cut"===t.type&&(e.s.remove(),e.s.focus()),t.preventDefault(),null==(i=null==e?void 0:e.events)||i.fire("afterCopy",n)})}destruct(e){var t,i;null==(t=(0,n.cached)(e,"buffer"))||t.set(o.CLIPBOARD_ID,""),null==(i=null==e?void 0:e.events)||i.off("."+o.CLIPBOARD_ID)}constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}}s.pluginSystem.add("clipboard",l)},79419:function(e,t,i){"use strict";var o=i(12153),n=i(6441),r=i(94775),s=i(23140),a=i(92699),l=i(10052);n.Config.prototype.controls.cut={command:"cut",isDisabled:e=>e.s.isCollapsed(),tooltip:"Cut selection"},n.Config.prototype.controls.copy={command:"copy",isDisabled:e=>e.s.isCollapsed(),tooltip:"Copy selection"},n.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},o.Icon.set("copy",r.default).set("cut",s.default).set("paste",a.default).set("select-all",l.default)},94775:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="8" y="8" width="13" height="13" rx="2"/><path d="M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3"/> </g> </svg> '},23140:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <circle cx="6" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="m8.2 8.2 12.3 12.3M8.2 15.8 20.5 3.5"/> </g> </svg> '},92699:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="4" y="5" width="16" height="16" rx="2"/><rect x="9" y="3" width="6" height="4" rx="1"/> </g> </svg> '},10052:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 6V3h3m4 0h4m4 0h3v3m0 4v4m0 4v3h-3m-4 0h-4m-4 0H3v-3m0-4v-4"/><rect x="7" y="7" width="10" height="10" rx="1"/> </g> </svg> '},46104:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M12 3c-2 3.2-5.5 7-5.5 10a5.5 5.5 0 0 0 11 0c0-3-3.5-6.8-5.5-10Z"/> </g> <rect x="5" y="21" width="14" height="2" rx="1" fill="inherit" stroke="none"/> </svg> '},93079:function(e,t,i){"use strict";var o=i(580),n=i(21537);i(21988),o.pluginSystem.add("color",function(e){e.registerButton({name:"brush",group:"color"});let t=(t,i,o)=>{var r;let s=(0,n.normalizeColor)(o)||"",a="background"===t?{backgroundColor:s}:{color:s},l=e.getInstance("Table",e.o).getAllSelectedCells();return l.length&&e.s.isCollapsed()?(l.forEach(t=>{e.s.select(t,!0),e.s.commitStyle({attributes:{style:a}})}),null==(r=e.s.sel)||r.removeAllRanges()):e.s.commitStyle({attributes:{style:a}}),e.synchronizeValues(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)})},21988:function(e,t,i){"use strict";var o=i(2748),n=i(21537),r=i(12153),s=i(6441),a=i(92762),l=i(46104);r.Icon.set("brush",l.default),s.Config.prototype.controls.brushCell={isVisible:e=>!e.o.disablePlugins.includes("color"),icon:"brush",popup(e,t,i){if(!(0,n.isJoditObject)(e))return;let o=e.getInstance("Table",e.o).getAllSelectedCells();if(!o.length)return!1;let r=t=>(0,a.ColorPickerWidget)(e,r=>{o.forEach(e=>{(0,n.css)(e,t,r)}),e.lock(),e.synchronizeValues(),i(),e.unlock()},(0,n.css)(o[0],t));return(0,a.TabsWidget)(e,[{name:"Background",content:r("background-color")},{name:"Text",content:r("color")},{name:"Border",content:r("border-color")}])},tooltip:"Background"},s.Config.prototype.controls.brush={isVisible:e=>!e.o.disablePlugins.includes("color"),update(e,t){let i=(0,n.dataBind)(t,"color"),r=(i,o)=>!!o&&o!==(0,n.css)(e.editor,i).toString()&&(t.state.icon.fill=o,!0);if(i){let e=(0,n.dataBind)(t,"color");r("color"===e?e:"background-color",i);return}let s=e.s.current();if(s&&!t.state.disabled){let t=o.Dom.closest(s,o.Dom.isElement,e.editor)||e.editor,i=r("color",(0,n.css)(t,"color").toString()),a=r("background-color",(0,n.css)(t,"background-color").toString());if(i||a)return}t.state.icon.fill="",t.state.activated=!1},popup(e,t,i,r){let s="",l="",c,d=null;return t&&t!==e.editor&&o.Dom.isNode(t)&&(o.Dom.isElement(t)&&e.s.isCollapsed()&&!o.Dom.isTag(t,new Set(["br","hr"]))&&(d=t),o.Dom.up(t,e=>{if(o.Dom.isHTMLElement(e)){let t=(0,n.css)(e,"color",!0),i=(0,n.css)(e,"background-color",!0);if(t)return s=t.toString(),!0;if(i)return l=i.toString(),!0}},e.editor)),c=[{name:"Background",content:(0,a.ColorPickerWidget)(e,t=>{d?(0,n.css)(d,"backgroundColor",t):e.execCommand("background",!1,t),(0,n.dataBind)(r,"color",t),(0,n.dataBind)(r,"color-mode","background"),i()},l)},{name:"Text",content:(0,a.ColorPickerWidget)(e,t=>{d?(0,n.css)(d,"color",t):e.execCommand("forecolor",!1,t),(0,n.dataBind)(r,"color",t),(0,n.dataBind)(r,"color-mode","color"),i()},s)}],"background"!==e.o.colorPickerDefaultTab&&(c=c.reverse()),(0,a.TabsWidget)(e,c,d)},exec(e,t,{button:i}){let r=(0,n.dataBind)(i,"color-mode"),s=(0,n.dataBind)(i,"color");if(!r)return!1;if(t&&t!==e.editor&&o.Dom.isNode(t)&&o.Dom.isElement(t))switch(r){case"color":(0,n.css)(t,"color",s);break;case"background":(0,n.css)(t,"backgroundColor",s)}else e.execCommand("background"===r?r:"forecolor",!1,s)},tooltip:"Fill color or set the text color"}},19063:function(e,t,i){"use strict";var o=i(2748),n=i(580),r=i(41180),s=i(12153),a=i(6441),l=i(57487),c=i(23914);let d="copy-format",u=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],h=(e,t,i,o)=>{let n=(0,r.css)(i,t);return n===o[t]&&(n=i.parentNode&&i!==e.editor&&i.parentNode!==e.editor?h(e,t,i.parentNode,o):void 0),n};a.Config.prototype.controls.copyformat={exec(e,t,{button:i}){if(t){if(e.buffer.exists(d))e.buffer.delete(d),e.e.off(e.editor,"mouseup."+d);else{let i,n={},s=o.Dom.up(t,e=>e&&!o.Dom.isText(e),e.editor)||e.editor,a=e.createInside.span();o.Dom.append(e.editor,a),u.forEach(e=>{n[e]=(0,r.css)(a,e)}),a!==e.editor&&o.Dom.safeRemove(a);let l=(i={},s&&u.forEach(t=>{i[t]=h(e,t,s,n),t.match(/border(Style|Color)/)&&!i.borderWidth&&(i[t]=void 0)}),i);e.e.on(e.editor,"mouseup."+d,()=>{e.buffer.delete(d);let t=e.s.current();t&&(o.Dom.isTag(t,"img")?(0,r.css)(t,l):e.s.commitStyle({attributes:{style:l}})),e.e.off(e.editor,"mouseup."+d)}),e.buffer.set(d,!0)}i.update()}},isActive:e=>e.buffer.exists(d),tooltip:"Paint format"},n.pluginSystem.add("copyformat",function(e){e.registerButton({name:"copyformat",group:"clipboard"}),(0,n.extendLang)(c)}),s.Icon.set("copyformat",l.default)},57487:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="3" y="3" width="14" height="6" rx="1"/><path d="M17 6h4v7H11v3"/><rect x="9" y="16" width="4" height="6" rx="1"/> </g> </svg> '},63819:function(e){"use strict";e.exports={"copy-format":"نسخ التنسيق"}},72392:function(e){"use strict";e.exports={"copy-format":"Kopírovat formát"}},74551:function(e){"use strict";e.exports={"copy-format":"Format kopierenт"}},2536:function(e){"use strict";e.exports={"copy-format":"Copiar formato"}},52285:function(e){"use strict";e.exports={"copy-format":"کپی کردن قالب"}},12117:function(e){"use strict";e.exports={"copy-format":"Kopioi muotoilu"}},35140:function(e){"use strict";e.exports={"copy-format":"Format de copie"}},28435:function(e){"use strict";e.exports={"copy-format":"העתק עיצוב"}},98019:function(e){"use strict";e.exports={"copy-format":"Formátum másolás"}},96457:function(e){"use strict";e.exports={"copy-format":"salin format"}},23914:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return o},cs_cz:function(){return n},de:function(){return r},es:function(){return s},fa:function(){return a},fi:function(){return l},fr:function(){return c},he:function(){return d},hu:function(){return u},id:function(){return h},it:function(){return p},ja:function(){return f},ko:function(){return m},mn:function(){return g},nl:function(){return b},pl:function(){return v},pt_br:function(){return y},ru:function(){return w},tr:function(){return _},zh_cn:function(){return k},zh_tw:function(){return C}});var o=i(63819),n=i(72392),r=i(74551),s=i(2536),a=i(52285),l=i(12117),c=i(35140),d=i(28435),u=i(98019),h=i(96457),p=i(33561),f=i(96545),m=i(52230),g=i(33307),b=i(71042),v=i(32172),y=i(39179),w=i(60629),_=i(68278),k=i(1172),C=i(4164)},33561:function(e){"use strict";e.exports={"copy-format":"Copia il formato"}},96545:function(e){"use strict";e.exports={"copy-format":"copyformat"}},52230:function(e){"use strict";e.exports={"copy-format":"복사 형식"}},33307:function(e){"use strict";e.exports={"copy-format":"Формат хуулах"}},71042:function(e){"use strict";e.exports={"copy-format":"opmaak kopiëren"}},32172:function(e){"use strict";e.exports={"copy-format":"format kopii"}},39179:function(e){"use strict";e.exports={"copy-format":"Copiar formato"}},60629:function(e){"use strict";e.exports={"copy-format":"Копировать формат"}},68278:function(e){"use strict";e.exports={"copy-format":"Kopyalama Biçimi"}},1172:function(e){"use strict";e.exports={"copy-format":"复制格式"}},4164:function(e){"use strict";e.exports={"copy-format":"複製格式"}},66707:function(e,t,i){"use strict";var o=i(22732),n=i(580),r=i(21537),s=i(49055),a=i(50911);let l=new Set(["img","table","jodit","iframe","hr"]);class c extends a.Plugin{afterInit(e){e.e.on("afterCommand.delete",e=>{"delete"===e&&this.__afterDeleteCommand()}),e.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(e){e.e.off("afterCommand.delete")}__afterDeleteCommand(){let e=this.j,t=e.s.current();if(t&&o.Dom.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!(0,s.trim)(e.editor.textContent||"")&&!o.Dom.first(e.editor,e=>o.Dom.isTag(e,l))&&(!t||!o.Dom.closest(t,"table",e.editor))){o.Dom.detach(e.editor);let t=e.s.setCursorIn(e.editor);e.s.removeNode(t)}}__onDeleteCommand(){let{jodit:e}=this;if(e.s.isCollapsed())return;e.s.expandSelection();let t=e.s.range;t.deleteContents();let i=e.createInside.fake();t.insertNode(i);let n=o.Dom.findSibling(i,!0),r=o.Dom.findSibling(i,!1);return this.__moveContentInLeftSibling(i,n,r),t.setStartBefore(i),t.collapse(!0),this.__moveCursorInEditableSibling(e,n,i,t),this.__addBrInEmptyBlock(i,r,t),o.Dom.safeRemove(i),e.s.selectRange(t),!1}__moveContentInLeftSibling(e,t,i){t=this.__defineRightLeftBox(t),!o.Dom.isList(i)&&!o.Dom.isTag(i,"table")&&o.Dom.isBlock(i)&&o.Dom.isBlock(t)&&(o.Dom.append(t,e),o.Dom.moveContent(i,t),o.Dom.safeRemove(i)),o.Dom.isList(i)&&o.Dom.isLeaf(i.firstElementChild)&&o.Dom.isEmpty(i.firstElementChild)&&o.Dom.safeRemove(i.firstElementChild)}__defineRightLeftBox(e){if(!o.Dom.isList(e))return e;let t=e.lastElementChild;return o.Dom.isLeaf(t)||(t=this.j.createInside.element("li"),o.Dom.append(e,t)),t}__addBrInEmptyBlock(e,t,i){let n=this.j;if(e.isConnected&&o.Dom.isBlock(e.parentNode)&&!e.nextSibling&&!e.previousSibling){let t=n.createInside.element("br");o.Dom.after(e,t),i.setStartBefore(t),i.collapse(!0)}if(o.Dom.isTag(t,"table")){let e=(0,r.$$)("td,th",t).shift();o.Dom.isCell(e)&&o.Dom.isEmpty(e)&&o.Dom.append(e,n.createInside.element("br"))}}__moveCursorInEditableSibling(e,t,i,n){var r;if(!t||!o.Dom.isText(t)){let t=null!=(r=o.Dom.closest(i,o.Dom.isBlock,e.editor))?r:e.editor,s=o.Dom.prev(i,o.Dom.isText,t);s&&(n.setStartAfter(s),n.collapse(!0),o.Dom.safeRemove(i))}}}c.requires=["backspace"],n.pluginSystem.add("deleteCommand",c)},44586:function(e,t,i){"use strict";i(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},1255:function(e,t,i){"use strict";var o,n,r=i(65478),s=i(22732),a=i(580),l=i(21537),c=i(50911);i(44586);var d=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};(o=n||(n={}))[o.IDLE=0]="IDLE",o[o.WAIT_DRAGGING=1]="WAIT_DRAGGING",o[o.DRAGGING=2]="DRAGGING";class u extends c.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,l.splitArray)(this.j.o.draggableTags).filter(Boolean).map(e=>e.toLowerCase()):[],this.j.e.on("startDragElement",this.onStartDragElement),this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onStartDragElement(e,t){this.isInDestruct||this.state>n.IDLE||!e||this.startDragging(e,t)}onDragStart(e){if("dragstart"===e.type&&this.draggable)return!1;if(this.state>n.IDLE)return;let t=e.target;if(!this.dragList.length||!t)return;let i=e=>!!(e&&this.dragList.includes(e.nodeName.toLowerCase())),o=s.Dom.furthest(t,i,this.j.editor)||(i(t)?t:null);o&&(s.Dom.isTag(o.parentElement,"a")&&o.parentElement.firstChild===o&&o.parentElement.lastChild===o&&(o=o.parentElement),this.startDragging(o,e))}startDragging(e,t){this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=(0,l.ctrlKey)(t),this.draggable=e.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",e),this.state=n.WAIT_DRAGGING,this.addDragListeners()}onDrag(e){var t,i;if(!this.draggable||this.state===n.IDLE)return;let o=e.clientX,r=e.clientY;if(!(this.state===n.WAIT_DRAGGING&&Math.sqrt(Math.pow(o-this.startX,2)+Math.pow(r-this.startY,2))<this.diffStep)){if(this.state===n.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=n.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){let o=(0,l.dataBind)(this.draggable,"target");(0,l.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:e.clientX,top:e.clientY,width:null!=(t=null==o?void 0:o.offsetWidth)?t:100,height:null!=(i=null==o?void 0:o.offsetHeight)?i:100}),s.Dom.append((0,a.getContainer)(this.j,u),this.draggable)}(0,l.css)(this.draggable,{left:e.clientX,top:e.clientY}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=n.IDLE,this.draggable&&(s.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<n.DRAGGING)return void this.onDragEnd();let e=(0,l.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));let{parentElement:t}=e;this.j.s.insertNode(e,!0,!1),[e.previousSibling,e.nextSibling].forEach(e=>{s.Dom.isEmptyTextNode(e)&&s.Dom.safeRemove(e)}),t&&s.Dom.isEmpty(t)&&!s.Dom.isCell(t)&&s.Dom.safeRemove(t),s.Dom.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart).off("startDragElement",this.onStartDragElement),this.removeDragListeners()}constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=n.IDLE}}d([r.autobind],u.prototype,"onStartDragElement",null),d([r.autobind],u.prototype,"onDragStart",null),d([(0,r.throttle)(e=>e.defaultTimeout/10)],u.prototype,"onDrag",null),d([r.autobind],u.prototype,"onDragEnd",null),d([r.autobind],u.prototype,"onDrop",null),a.pluginSystem.add("dragAndDropElement",u)},19271:function(e,t,i){"use strict";var o=i(82758),n=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(8172),d=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class u extends l.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(e){var t;let i=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=r.Dom.isOrContains(this.j.editor,i,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,a.ctrlKey)(e),this.isFragmentFromEditor){let e=this.j.s.sel,t=e&&e.rangeCount?e.getRangeAt(0):null;t&&(this.bufferRange=t.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,t=i,r.Dom.isElement(t)&&t.classList.contains(c.FileBrowserFiles.prototype.getFullElName("item"))&&(i=r.Dom.first(i,e=>r.Dom.isTag(e,"img"))),r.Dom.isTag(i,"img")&&(this.draggable=i.cloneNode(!0),(0,a.dataBind)(this.draggable,"target",i)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())}onDragEnd(){this.draggable&&(r.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;let t=this.j.s.sel,i=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null),o=this.__getWorkFragment(i,e);t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),o&&this.__insertFragment.call(this,o,i),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(e,t){let i=null;if(!this.draggable&&e)i=this.isCopyMode?e.cloneContents():e.extractContents();else if(this.draggable)if(this.isCopyMode){let[e,t]="1"===(0,a.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];i=this.j.createInside.element(e),(0,a.attr)(i,t,(0,a.attr)(this.draggable,"data-src")||(0,a.attr)(this.draggable,"src")||""),"a"===e&&(i.textContent=(0,a.attr)(i,t)||"")}else i=(0,a.dataBind)(this.draggable,"target");else this.getText(t)&&(i=this.j.createInside.fromHTML(this.getText(t)));return i}__insertFragment(e,t){this.j.s.insertNode(e,!1,!1),t&&e.firstChild&&e.lastChild&&(t.setStartBefore(e.firstChild),t.setEndAfter(e.lastChild),this.j.s.selectRange(t),this.j.e.fire("synchro")),r.Dom.isTag(e,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",e)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=e=>{let t=(0,a.getDataTransfer)(e);return t?t.getData(o.TEXT_HTML)||t.getData(o.TEXT_PLAIN):null}}}d([n.autobind],u.prototype,"onDragStart",null),d([(0,n.throttle)(e=>e.defaultTimeout/10)],u.prototype,"onDrag",null),d([n.autobind],u.prototype,"onDragEnd",null),d([n.autobind],u.prototype,"onDrop",null),s.pluginSystem.add("dragAndDrop",u)},46124:function(e,t,i){"use strict";i.r(t),i.d(t,{removeExtraBr:function(){return o.removeExtraBr}});var o=i(94870)},94870:function(e,t,i){"use strict";i.d(t,{removeExtraBr:function(){return r}});var o=i(2748);let n=new Set(["table","pre","blockquote","code"]);function r(e,t){if(!e.o.dtd.removeExtraBr||o.Dom.isTag(t,"br"))return;let i=o.Dom.furthest(t,o.Dom.isBlock,e.editor);if(i&&!o.Dom.isTag(i,n)){let i=o.Dom.isTag(t,"br")?t:o.Dom.findNotEmptySibling(t,!1);if(!o.Dom.isTag(i,"br")||o.Dom.findNotEmptySibling(i,!1))return;e.s.setCursorBefore(i),o.Dom.safeRemove(i)}}},78720:function(e,t,i){"use strict";i.d(t,{checkBlockNesting:function(){return n}});var o=i(2748);function n(e,t){var i,n;if(o.Dom.isFragment(t)&&(t=t.firstChild),e.o.dtd.checkBlockNesting&&o.Dom.isBlock(t)){let t=null,r=null!=(n=null==(i=e.s.current())?void 0:i.parentElement)?n:null;for(;r&&r!==e.editor;){if(o.Dom.isBlock(r)){if(e.o.dtd.blockLimits[r.nodeName.toLowerCase()])break;t=r}r=r.parentElement}t&&(e.s.setCursorAfter(t),o.Dom.isEmpty(t)&&o.Dom.safeRemove(t))}}},43267:function(e,t,i){"use strict";i.r(t),i.d(t,{checkBlockNesting:function(){return o.checkBlockNesting}});var o=i(78720)},9045:function(e,t,i){"use strict";i(6441).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},65735:function(e,t,i){"use strict";var o=i(37133),n=i(580),r=i(50911);i(9045);var s=i(46124),a=i(43267),l=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends r.Plugin{afterInit(e){}beforeDestruct(e){}__onBeforeInsertNode(e){Object.keys(a).forEach(t=>{a[t](this.j,e)})}__onAfterInsertNode(e){Object.keys(s).forEach(t=>{s[t](this.j,e)})}}l([(0,o.watch)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),l([(0,o.watch)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),n.pluginSystem.add("dtd",c)},575:function(e,t,i){"use strict";var o=i(82758),n=i(65478),r=i(2748),s=i(580),a=i(87612),l=i(20356),c=i(35399);class d extends l.Plugin{afterInit(e){let t=e.o.enter.toLowerCase(),i=t===o.BR.toLowerCase();e.o.enterBlock||(e.o.enterBlock=i?o.PARAGRAPH:t),e.registerCommand("enter",(e,t,i={})=>this.onEnter(i))}onEnterKeyDown(e){if(e.key===o.KEY_ENTER){let t=this.j,i=t.e.fire("beforeEnter",e);return void 0!==i?i:(t.history.snapshot.transaction(()=>{t.s.isCollapsed()||t.execCommand("Delete"),t.s.focus(),this.onEnter(e),t.e.fire("afterEnter",e)}),t.synchronizeValues(),!1)}}onEnter(e){let{jodit:t}=this,i=t.createInside.fake();try{r.Dom.safeInsertNode(t.s.range,i),(0,c.moveCursorOutFromSpecialTags)(t,i,["a"]);let o=(0,c.getBlockWrapper)(i,t),n=r.Dom.isLeaf(o);if((!n||(null==e?void 0:e.shiftKey))&&(0,c.checkBR)(i,t,null==e?void 0:e.shiftKey,o))return!1;if(o||(0,c.hasPreviousBlock)(i,t)||(o=(0,c.wrapText)(i,t)),!o)return(0,c.insertParagraph)(i,t,n?"li":t.o.enter),!1;if(!(0,c.checkUnsplittableBox)(i,t,o))return!1;if(n&&this.__isEmptyListLeaf(o))return(0,c.processEmptyLILeaf)(i,t,o),!1;(0,c.splitFragment)(i,t,o)}finally{i.isConnected&&t.s.setCursorBefore(i),r.Dom.safeRemove(i)}}__isEmptyListLeaf(e){let t=this.j.e.fire("enterIsEmptyListLeaf",e);return(0,a.isBoolean)(t)?t:r.Dom.isEmpty(e)}beforeDestruct(e){e.e.off("keydown.enter")}}!function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,n.watch)(":keydown.enter")],d.prototype,"onEnterKeyDown",null),s.pluginSystem.add("enter",d)},41872:function(e,t,i){"use strict";i.d(t,{checkBR:function(){return s}});var o=i(82758),n=i(2748),r=i(26395);function s(e,t,i,s){let l=!!n.Dom.closest(e,["pre","blockquote"],t.editor),c=!l&&(s?n.Dom.isCell(s):!!n.Dom.closest(e,["td","th"],t.editor));if(t.o.enter.toLowerCase()===o.BR.toLowerCase()||c||i&&!l||!i&&l){var d;let i;if(l&&(i=a(a(d=e)))&&(n.Dom.safeRemove(a(d)),n.Dom.safeRemove(i),1))return!1;let o=t.createInside.element("br");if(n.Dom.before(e,o),!n.Dom.findNotEmptySibling(o,!1)){let t=o.cloneNode();n.Dom.after(o,t),n.Dom.before(t,e)}return(0,r.scrollIntoViewIfNeeded)(o,t.editor,t.ed),!0}return!1}function a(e){if(!e)return!1;let t=n.Dom.findSibling(e,!0);return!!t&&!!n.Dom.isTag(t,"br")&&t}},61991:function(e,t,i){"use strict";i.d(t,{checkUnsplittableBox:function(){return n}});var o=i(2748);function n(e,t,i){return!!o.Dom.canSplitBlock(i)||(o.Dom.before(e,t.createInside.element("br")),!1)}},54041:function(e,t,i){"use strict";i.d(t,{getBlockWrapper:function(){return function e(t,i,r=o.IS_BLOCK){let s=t,a=i.editor;do{if(!s||s===a)break;if(r.test(s.nodeName)){if(n.Dom.isLeaf(s))return s;return e(s.parentNode,i,/^li$/i)||s}s=s.parentNode}while(s&&s!==a)return null}}});var o=i(82758),n=i(2748)},19057:function(e,t,i){"use strict";i.d(t,{hasPreviousBlock:function(){return n}});var o=i(2748);function n(e,t){return!!o.Dom.prev(e,e=>o.Dom.isBlock(e)||o.Dom.isImage(e),t.editor)}},35399:function(e,t,i){"use strict";i.d(t,{checkBR:function(){return o.checkBR},checkUnsplittableBox:function(){return n.checkUnsplittableBox},getBlockWrapper:function(){return r.getBlockWrapper},hasPreviousBlock:function(){return s.hasPreviousBlock},insertParagraph:function(){return a.insertParagraph},moveCursorOutFromSpecialTags:function(){return l.moveCursorOutFromSpecialTags},processEmptyLILeaf:function(){return c.processEmptyLILeaf},splitFragment:function(){return d.splitFragment},wrapText:function(){return u.wrapText}});var o=i(41872),n=i(61991),r=i(54041),s=i(19057),a=i(44245),l=i(91388),c=i(65181),d=i(54600),u=i(5287)},44245:function(e,t,i){"use strict";i.d(t,{insertParagraph:function(){return s}});var o=i(2748),n=i(29960),r=i(26395);function s(e,t,i,s){let a="br"===i.toLowerCase(),{createInside:l}=t,c=l.element(i),d=l.element("br");return a||o.Dom.append(c,d),s&&s.cssText&&(0,n.attr)(c,"style",s.cssText),o.Dom.after(e,c),o.Dom.before(a?c:d,e),(0,r.scrollIntoViewIfNeeded)(c,t.editor,t.ed),c}},91388:function(e,t,i){"use strict";i.d(t,{moveCursorOutFromSpecialTags:function(){return n}});var o=i(2748);function n(e,t,i){let{s:n}=e,r=o.Dom.closest(t,i,e.editor);r&&(n.cursorOnTheRight(r,t)?o.Dom.after(r,t):n.cursorOnTheLeft(r,t)&&o.Dom.before(r,t))}},65181:function(e,t,i){"use strict";i.d(t,{processEmptyLILeaf:function(){return s}});var o=i(2748),n=i(76078),r=i(44245);function s(e,t,i){let s=o.Dom.closest(i,["ol","ul"],t.editor);if(!s)return;let a=s.parentElement,l=o.Dom.isLeaf(a),c=l?a:s,d=t.s.createRange();d.setStartAfter(i),d.setEndAfter(s);let u=d.extractContents();o.Dom.after(c,e),o.Dom.safeRemove(i),(0,n.$$)("li",s).length||o.Dom.safeRemove(s);let h=(0,r.insertParagraph)(e,t,l?"li":t.o.enter);o.Dom.first(u,e=>o.Dom.isTag(e,"li"))&&(l?o.Dom.append(h,u):o.Dom.after(h,u))}},54600:function(e,t,i){"use strict";i.d(t,{splitFragment:function(){return s}});var o=i(2748),n=i(26395),r=i(44245);function s(e,t,i){let s=t.s,{enter:a}=t.o,l=a.toLowerCase(),c=o.Dom.isLeaf(i),d=i.tagName.toLowerCase()===l||c,u=s.cursorOnTheRight(i,e),h=s.cursorOnTheLeft(i,e);if(!d&&(u||h)){u?o.Dom.after(i,e):o.Dom.before(i,e),(0,r.insertParagraph)(e,t,l),h&&!u&&o.Dom.prepend(i,e);return}let{scrollTop:p}=t.editor;s.splitSelection(i,e),t.editor.scrollTop!==p&&(t.editor.scrollTop=p),(0,n.scrollIntoViewIfNeeded)(i,t.editor,t.ed)}},5287:function(e,t,i){"use strict";i.d(t,{wrapText:function(){return n}});var o=i(2748);function n(e,t){let i=e;o.Dom.up(i,e=>{e&&e.hasChildNodes()&&e!==t.editor&&(i=e)},t.editor);let n=o.Dom.wrapInline(i,t.o.enter,t);if(o.Dom.isEmpty(n)){let i=t.createInside.element("br");o.Dom.append(n,i),o.Dom.before(i,e)}return n}},11317:function(e,t,i){"use strict";var o=i(2748),n=i(580),r=i(29960),s=i(6441),a=i(92762);s.Config.prototype.controls.file={popup(e,t,i){let n=(t,i="")=>{e.s.insertNode(e.createInside.fromHTML(`<a href="${t}" title="${i}">${i||t}</a>`))},s=null;return t&&(o.Dom.isTag(t,"a")||o.Dom.closest(t,"a",e.editor))&&(s=o.Dom.isTag(t,"a")?t:o.Dom.closest(t,"a",e.editor)),(0,a.FileSelectorWidget)(e,{filebrowser(e){e.files&&e.files.forEach(t=>n(e.baseurl+t)),i()},upload:!0,url(e,t){s?((0,r.attr)(s,"href",e),(0,r.attr)(s,"title",t)):n(e,t),i()}},s,i,!1)},tags:["a"],tooltip:"Insert file"},n.pluginSystem.add("file",function(e){e.registerButton({name:"file",group:"media"})})},36243:function(e,t,i){"use strict";var o=i(22732),n=i(580),r=i(6441);r.Config.prototype.autofocus=!1,r.Config.prototype.cursorAfterAutofocus="end",r.Config.prototype.saveSelectionOnBlur=!0,n.pluginSystem.add("focus",function(e){e.o.saveSelectionOnBlur&&e.e.on("blur",()=>{e.isEditorMode()&&e.s.save(!0)}).on("focus",()=>{e.isEditorMode()&&e.s.restore()});let t=()=>{e.s.focus();let t=null;switch(e.o.cursorAfterAutofocus){case"start":t=o.Dom.first(e.editor,e=>o.Dom.isText(e));break;case"end":t=o.Dom.last(e.editor,e=>o.Dom.isText(e))}t&&e.s.setCursorIn(t,"start"===e.o.cursorAfterAutofocus)};e.e.on("afterInit",()=>{e.o.autofocus&&(e.defaultTimeout?e.async.setTimeout(t,300):t())}),e.e.on("afterInit afterAddPlace",()=>{e.e.off(e.editor,"mousedown.autofocus").on(e.editor,"mousedown.autofocus",t=>{e.isEditorMode()&&t.target&&o.Dom.isBlock(t.target)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))})})})},28252:function(e,t,i){"use strict";var o=i(22732),n=i(49055),r=i(41180),s=i(12153),a=i(6441),l=i(4104),c=i(83709);a.Config.prototype.defaultFontSizePoints="px",s.Icon.set("font",l.default).set("fontsize",c.default),a.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalize:e=>e.toString().replace(/(px|pt)$/i,"")},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(e,t)=>t+e.o.defaultFontSizePoints,childTemplate:(e,t,i)=>`${i}${e.o.defaultFontSizePoints}`,tooltip:"Font size",value(e,t){var i;let n=e.s.current();if(!n)return;let s=o.Dom.closest(n,o.Dom.isElement,e.editor);if(!s)return;let a=(null==(i=t.control.data)?void 0:i.cssRule)||"font-size",l=(0,r.css)(s,a);if("font-size"===a){let t=parseFloat(l.toString());return"pt"===e.o.defaultFontSizePoints?Math.round(.75*t).toString():Math.round(t).toString()}return l.toString()},isChildActive(e,t){var i,o;let n=t.state.value,r=null!=(o=null==(i=t.control.data)?void 0:i.normalize)?o:e=>e;return!!(n&&t.control.args&&r(t.control.args[0].toString())===r(n.toString()))},isActive(e,t){var i,o;let n=t.state.value;if(!n)return!1;let r=null!=(o=null==(i=t.control.data)?void 0:i.normalize)?o:e=>e,s=t.control.data.cacheListSet;return s||(s=new Set(Object.keys(t.control.list).map(r)),t.control.data.cacheListSet=s),s.has(r(n.toString()))}},a.Config.prototype.controls.font={...a.Config.prototype.controls.fontsize,command:"fontname",textTemplate(e,t){let[i]=t.split(",");return(0,n.trimChars)(i,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate(e,t,i){let o=!1;try{o=-1===t.indexOf("dings")&&document.fonts.check("16px "+t,i)}catch(e){}return`<span data-style="${t}" style="${o?`font-family: ${t}!important;`:""}">${i}</span>`},data:{cssRule:"font-family",normalize:e=>e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},value(e){let t=e.s.current();if(!t)return;let i=o.Dom.closest(t,o.Dom.isElement,e.editor);if(!i)return;let n=(0,r.css)(i,"font-family").toString();return n===(0,r.css)(e.editor,"font-family").toString()?"":n},tooltip:"Font family"}},23399:function(e,t,i){"use strict";var o=i(580),n=i(21537);i(28252),o.pluginSystem.add("font",function(e){e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});let t=(t,i,o)=>{switch(t){case"fontsize":e.s.commitStyle({attributes:{style:{fontSize:(0,n.normalizeSize)(o,e.o.defaultFontSizePoints)}}});break;case"fontname":e.s.commitStyle({attributes:{style:{fontFamily:o}}})}return e.synchronizeValues(),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)})},4104:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m5 17 7-14 7 14M8 12h8M3 21h18"/> </g> </svg> '},83709:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M2 5h9M6.5 5v15M4 20h5M19 4v16m-3-13 3-3 3 3m-6 10 3 3 3-3"/> </g> </svg> '},24630:function(e,t,i){"use strict";var o=i(2748),n=i(72430),r=i(12153),s=i(6441),a=i(89816);r.Icon.set("paragraph",a.default),s.Config.prototype.controls.paragraph={command:"formatBlock",value(e,t){var i,n;let r=t.control,s=e.s.current(),a=o.Dom.closest(s,o.Dom.isBlock,e.editor);return null!=(i=null==a?void 0:a.nodeName.toLowerCase())?i:null==(n=r.data)?void 0:n.currentValue},update(e,t){let i=t.control;if(!e.s.current())return!1;let o=t.state.value,r=i.list;return(0,n.isPlainObject)(r)&&r[o.toString()]&&e.o.textIcons&&(t.state.text=r[o.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive(e,t){var i,o;return t.state.value===(null==(o=null==(i=t.control)?void 0:i.args)?void 0:o[0])},isActive:(e,t)=>t.state.value!==e.o.enter&&(0,n.isPlainObject)(t.control.list)&&!!t.control.list[t.state.value],childTemplate:(e,t,i)=>`<${t} style="margin:0;padding:0"><span>${e.i18n(i)}</span></${t}>`,tooltip:"Insert format block"}},96111:function(e,t,i){"use strict";var o=i(580);i(24630),o.pluginSystem.add("formatBlock",function(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",(t,i,o)=>(e.s.commitStyle({element:o}),e.synchronizeValues(),!1))})},89816:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M20 4H9a5 5 0 0 0 0 10h3M12 4v17M18 4v17"/> </g> </svg> '},99823:function(e,t,i){"use strict";var o=i(82758),n=i(12153),r=i(6441),s=i(6950),a=i(28911);r.Config.prototype.fullsize=!1,r.Config.prototype.globalFullSize=!0,n.Icon.set("fullsize",s.default).set("shrink",a.default),r.Config.prototype.controls.fullsize={exec(e){e.toggleFullSize()},update(e,t){let i=e.isFullSize?"shrink":"fullsize";t.state.activated=e.isFullSize,e.o.textIcons?t.state.text=i:t.state.icon.name=i},tooltip:"Open in fullsize",mode:o.MODE_SOURCE+o.MODE_WYSIWYG}},2169:function(e,t,i){"use strict";var o=i(2748),n=i(580),r=i(19306),s=i(41180);i(99823);let a=new Set;n.pluginSystem.add("fullsize",function(e){e.registerButton({name:"fullsize"});let t=!1,i=0,n=0,l=0,c=0,d=!1,u=()=>{let{container:o,events:r}=e;r&&(t?(d||(i=(0,s.css)(o,"height",!0),n=(0,s.css)(o,"width",!0),d=!0),(0,s.css)(o,{height:e.ow.innerHeight,width:e.ow.innerWidth})):d&&((0,s.css)(o,{height:i||"auto",width:n||"auto"}),d=!1))},h=i=>{let{container:n,events:d}=e;if(n){if(void 0===i&&(i=!n.classList.contains("jodit_fullsize")),e.setMod("fullsize",i),e.o.fullsize=i,t=i,n.classList.toggle("jodit_fullsize",i),e.toolbar&&((0,r.isJoditObject)(e)&&e.toolbarContainer&&o.Dom.append(e.toolbarContainer,e.toolbar.container),(0,s.css)(e.toolbar.container,"width","auto")),i?a.add(n):a.delete(n),e.o.globalFullSize&&(1===a.size&&i||0===a.size&&!i)){i&&(l=e.ow.scrollX,c=e.ow.scrollY);let t=n.parentNode;for(;t&&t.nodeType!==Node.DOCUMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t.classList.toggle("jodit_fullsize-box_true",i),t=t.parentNode;u(),i||e.ow.scrollTo(l,c)}d.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",u),e.e.on("afterInit afterOpen",()=>{var t;e.toggleFullSize(null==(t=null==e?void 0:e.options)?void 0:t.fullsize)}).on("toggleFullSize",h).on("beforeDestruct",()=>{t&&h(!1)}).on("beforeDestruct",()=>{e.events&&e.e.off(e.ow,"resize",u)})})},6950:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M8 3H3v5m13-5h5v5M3 16v5h5m13-5v5h-5"/> </g> </svg> '},28911:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 8h5V3M8 8 3 3m13 0v5h5m-5 0 5-5M3 16h5v5m0-5-5 5m13 0v-5h5m-5 0 5 5"/> </g> </svg> '},78524:function(e,t,i){"use strict";i(6441).Config.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8","cmd+shift+8"],selectall:["ctrl+a","cmd+a"]}},42263:function(e,t,i){"use strict";var o=i(82758),n=i(580),r=i(21537),s=i(50911);i(78524);class a extends s.Plugin{afterInit(e){(0,r.keys)(e.o.commandToHotkeys,!1).forEach(t=>{let i=e.o.commandToHotkeys[t];i&&((0,r.isArray)(i)||(0,r.isString)(i))&&e.registerHotkeyToCommand(i,t)});let t=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",e=>{if(e.key===o.KEY_ESC)return this.j.e.fire("escape",e)}).on("keydown.hotkeys",i=>{let o=this.onKeyPress(i),n={shouldStop:!0};if(!1===this.j.e.fire(o+".hotkey",i.type,n))if(n.shouldStop)return t=!0,e.e.stopPropagation("keydown"),!1;else i.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(t)return t=!1,e.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(e){e.events&&e.e.off(".hotkeys")}constructor(){super(...arguments),this.onKeyPress=e=>{let t=this.specialKeys[e.which],i=(e.key||String.fromCharCode(e.which)).toLowerCase(),o=[t||i];return["alt","ctrl","shift","meta"].forEach(i=>{e[i+"Key"]&&t!==i&&o.push(i)}),(0,r.normalizeKeyAliases)(o.join("+"))},this.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}}}n.pluginSystem.add("hotkeys",a)},16233:function(e,t,i){"use strict";var o=i(22732),n=i(580),r=i(12153),s=i(6441),a=i(72337);r.Icon.set("hr",a.default),s.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},n.pluginSystem.add("hr",function(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",()=>{let t=e.createInside.element("hr");e.s.insertNode(t,!1,!1);let i=o.Dom.closest(t.parentElement,o.Dom.isBlock,e.editor);i&&o.Dom.isEmpty(i)&&i!==e.editor&&(o.Dom.after(i,t),o.Dom.safeRemove(i));let n=o.Dom.next(t,o.Dom.isBlock,e.editor,!1);return n||(n=e.createInside.element(e.o.enter),o.Dom.after(t,n)),e.s.setCursorIn(n),!1})})},72337:function(e,t){"use strict";t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M4 12h16"/> </g> </svg> '},50963:function(e,t,i){"use strict";var o=i(6441);o.Config.prototype.iframeBaseUrl="",o.Config.prototype.iframeTitle="Jodit Editor",o.Config.prototype.iframeDoctype="<!DOCTYPE html>",o.Config.prototype.iframeDefaultSrc="about:blank",o.Config.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',o.Config.prototype.iframeCSSLinks=[],o.Config.prototype.iframeSandbox=null},77469:function(e,t,i){"use strict";var o=i(82758),n=i(2748),r=i(580),s=i(21537);i(50963),r.pluginSystem.add("iframe",function(e){let t=e.options;e.e.on("afterSetMode",()=>{e.isEditorMode()&&e.s.focus()}).on("generateDocumentStructure.iframe",(e,i)=>{let o=e||i.iframe.contentWindow.document;if(o.open(),o.write(t.iframeDoctype+`<html dir="${t.direction}" class="jodit" lang="${(0,s.defaultLanguage)(t.language)}">`+"<head>"+`<title>${t.iframeTitle}</title>`+(t.iframeBaseUrl?`<base href="${t.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),o.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach(e=>{let t=o.createElement("link");(0,s.attr)(t,"rel","stylesheet"),(0,s.attr)(t,"href",e),o.head&&n.Dom.append(o.head,t)}),t.iframeStyle){let e=o.createElement("style");e.innerHTML=t.iframeStyle,o.head&&n.Dom.append(o.head,e)}}).on("createEditor",()=>{if(!t.iframe)return;let i=e.c.element("iframe");(0,s.css)(i,"display","block"),i.src="about:blank",i.className="jodit-wysiwyg_iframe",(0,s.attr)(i,{allowtransparency:"true",tabindex:t.tabIndex.toString(),frameborder:"0"}),null!=t.iframeSandbox&&(0,s.attr)(i,"sandbox",t.iframeSandbox),n.Dom.append(e.workplace,i),e.iframe=i;let r=e.e.fire("generateDocumentStructure.iframe",null,e);return(0,s.callPromise)(r,()=>{if(!e.iframe)return!1;let i=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;let n=t.editHTMLDocumentMode,r=()=>{(0,s.attr)(i.body,"contenteditable",e.getMode()!==o.MODE_SOURCE&&!e.getReadOnly()||null)},a=e=>{let t=/<body.*<\/body>/im,i="{%%BODY%%}",o=t.exec(e);return o&&(e=e.replace(t,i).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(i,o[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),e};if(n){let t=e.element.tagName;if("TEXTAREA"!==t&&"INPUT"!==t)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",()=>a(e.o.iframeDoctype+i.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:t})=>{if(e.isLocked)return!1;if(/<(html|body)/i.test(t)){if(a(i.documentElement.outerHTML)!==a(t)){var o;let n;o=a(t),n=new DOMParser().parseFromString(o,"text/html"),e.e.fire("safeHTML",n.documentElement),i.replaceChild(i.adoptNode(n.documentElement),i.documentElement),e.editor=i.body,r(),e.e.fire("prepareWYSIWYGEditor"),e.e.stopPropagation("beforeSetNativeEditorValue")}return!0}return!1},{top:!0})}if(e.editor=i.body,e.e.on("afterSetMode afterInit afterAddPlace",r),"auto"===t.height){i.documentElement&&(0,s.css)(i.documentElement,"overflowY","hidden");let o=e.async.throttle((...i)=>{e.async.requestAnimationFrame(()=>{if(e.editor&&e.iframe&&"auto"===t.height){let t=e.ew.getComputedStyle(e.editor),i=parseInt(t.marginTop||"0",10)+parseInt(t.marginBottom||"0",10);(0,s.css)(e.iframe,"height",e.editor.offsetHeight+i)}})},e.defaultTimeout/2);if(e.e.on("change afterInit afterSetMode resize",o).on([e.iframe,e.ew,i.documentElement],"load",o).on(i,"readystatechange DOMContentLoaded",o),"function"==typeof ResizeObserver){let t=new ResizeObserver(o);t.observe(i.body),e.e.on("beforeDestruct",()=>{t.disconnect()})}}return i.documentElement&&e.e.on(i.documentElement,"mousedown touchend",()=>{e.s.isFocused()||(e.s.focus(),e.editor===i.body&&e.s.setCursorIn(i.body))}).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",t=>{var i;null==(i=e.events)||i.fire(e.ow,t)}),!1})})})},85745:function(e,t,i){"use strict";i(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},80763:function(e,t,i){"use strict";var o=i(82758),n=i(65478),r=i(580),s=i(21537),a=i(50911),l=i(74569);i(85745);var c=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let d="__jodit_imageprocessor_binded",u=d+"blob-id";class h extends a.Plugin{afterInit(e){}beforeDestruct(e){let t=(0,n.cached)(e,"buffer"),i=null==t?void 0:t.get(u);if(t&&i){for(let e of Object.keys(i))URL.revokeObjectURL(e);t.delete(u)}}onAfterGetValueFromEditor(e,t){if(t!==o.SOURCE_CONSUMER)return this.onBeforeSetElementValue(e)}onBeforeSetElementValue(e){let{jodit:t}=this;if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;let i=t.buffer.get(u);if(i)for(let t of Object.keys(i))for(;e.value.includes(t);)e.value=e.value.replace(t,i[t])}async afterChange(e){let{jodit:t}=this;t.editor&&(0,s.$$)("img",t.editor).forEach(e=>{(0,s.dataBind)(e,d)||((0,s.dataBind)(e,d,!0),e.complete||t.e.on(e,"load",function i(){var o;t.isInDestruct||null==(o=t.e)||o.fire("resize"),t.e.off(e,"load",i)}),e.src&&/^data:/.test(e.src)&&function(e,t){let i;if(!e.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let o=t.src;try{i=(0,l.dataURItoBlob)(o)}catch(e){return}t.src=URL.createObjectURL(i),e.e.fire("internalUpdate");let{buffer:n}=e,r=n.get(u)||{};r[t.src]=o,e.buffer.set(u,r)}(t,e),t.e.on(e,"mousedown touchstart",()=>{t.s.select(e)}))})}}c([(0,n.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),c([(0,n.watch)(":beforeSetElementValue")],h.prototype,"onBeforeSetElementValue",null),c([(0,n.watch)([":change",":afterInit",":changePlace"]),(0,n.debounce)()],h.prototype,"afterChange",null),r.pluginSystem.add("imageProcessor",h)},97536:function(e,t,i){"use strict";i(6441).Config.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0}},3215:function(e,t,i){"use strict";var o=i(65478),n=i(2748),r=i(580),s=i(21537),a=i(20356),l=i(62843);i(97536);var c=i(59436),d=i(53636),u=i(10263),h=i(94575),p=i(34755),f=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class m extends a.Plugin{get form(){return new c.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,d.openImageEditorDialog)(this.j,this.state),openImagePopup:e=>(0,u.openImagePopup)(this.j,this.dialog,this.state,e)})}get dialog(){let{j:e}=this,t=e.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,p.applyValuesToImage)(e,this.state,this.state.sourceImage),e.synchronizeValues(),t.close()}),i.remove.onAction(()=>{e.s.removeNode(this.state.sourceImage),t.close()}),i.cancel.onAction(()=>{t.close()}),t.setHeader(e.i18n("Image properties")),t.setContent(this.form),t.setFooter([[i.cancel,i.remove],i.check]),e.e.on(t,"afterClose",()=>{this.state.image.parentNode&&e.o.image.selectImageAfterClose&&e.s.select(this.state.sourceImage)}),t.setSize(e.o.image.dialogWidth),(0,s.markOwner)(e,t.container),t}get __buttons(){let{j:e}=this;return{check:(0,l.Button)(e,"ok","Apply","primary"),remove:(0,l.Button)(e,"bin","Delete"),cancel:(0,l.Button)(e,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((e,t)=>(0,h.readValuesFromImage)(this.j,this.state).then(e,t)).catch(e=>{(0,s.isAbortError)(e)||this.dialog.message.error(e.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(e=>e.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(e=>e.state.disabled=!1)}afterInit(e){let t=this;e.e.on("afterConstructor changePlace",()=>{e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",i=>{let o=i.target;if(n.Dom.isTag(o,"img"))if(e.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",o))return;t.state.sourceImage=o,t.state.image=o.cloneNode(!0),e.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),t.open())}else i.stopImmediatePropagation(),e.s.select(o)})}).on("openImageProperties.imageproperties",e=>{t.state.sourceImage=e,this.state.image=e.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:e,values:t}=this.state;if(e.src)try{this.__lock();try{await e.decode()}catch(e){}if(this.state.sizeIsLocked&&(0,s.isNumeric)(t.imageWidth)){let e=parseFloat(t.imageWidth.toString());t.imageHeight=Math.round(e/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",e)}catch(e){this.j.alert(e.message)}finally{this.__unlock()}}beforeDestruct(e){var t,i,n;Object.values(null!=(t=(0,o.cached)(this,"__buttons"))?t:{}).forEach(e=>e.destruct()),null==(i=(0,o.cached)(this,"dialog"))||i.destruct(),null==(n=(0,o.cached)(this,"form"))||n.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}constructor(){super(...arguments),this.state={image:new Image,sourceImage:new Image,get ratio(){let{naturalWidth:e,naturalHeight:t}=this.image;return e/t||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}},this.activeTabState={activeTab:"Image"}}}f([o.cache],m.prototype,"form",null),f([o.cache],m.prototype,"dialog",null),f([o.cache],m.prototype,"__buttons",null),f([(0,o.watch)("state.image")],m.prototype,"onStateValuesImageSrcChange",null),r.pluginSystem.add("imageProperties",m)},51642:function(e,t,i){"use strict";i.d(t,{readAlign:function(){return n}});var o=i(41180);function n(e,t){(0,o.cssInline)(e,"float")&&-1!==["left","right"].indexOf((0,o.cssInline)(e,"float").toLowerCase())?t.align=(0,o.css)(e,"float"):"block"===(0,o.css)(e,"display")&&"auto"===(0,o.cssInline)(e,"margin-left")&&"auto"===(0,o.cssInline)(e,"margin-right")?t.align="center":t.align=""}},94575:function(e,t,i){"use strict";i.d(t,{readValuesFromImage:function(){return c}});var o=i(29960),n=i(41180),r=i(51642),s=i(75595),a=i(47749),l=i(32566);async function c(e,t){let{sourceImage:i,values:c}=t;return(0,r.readAlign)(i,c),c.borderRadius=parseInt((0,n.cssInline)(i,"border-radius")||"0",10)||0,c.id=(0,o.attr)(i,"id")||"",c.imageTitle=(0,o.attr)(i,"title")||"",c.imageAlt=(0,o.attr)(i,"alt")||"",c.style=(0,o.attr)(i,"style")||"",c.classes=((0,o.attr)(i,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,a.readMargins)(i,c,t),(0,s.readLink)(t,e,c),c.imageSrc=(0,o.attr)(i,"src")||"",(0,l.readSizes)(i,c,t)}},75595:function(e,t,i){"use strict";i.d(t,{readLink:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i){let r=o.Dom.closest(e.sourceImage,"a",t.editor);r?(i.imageLink=(0,n.attr)(r,"href")||"",i.imageLinkOpenInNewTab="_blank"===(0,n.attr)(r,"target")):(i.imageLink="",i.imageLinkOpenInNewTab=!1)}},47749:function(e,t,i){"use strict";i.d(t,{readMargins:function(){return n}});var o=i(12475);function n(e,t,i){let n=!0,r=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(i=>{let s=e.style.getPropertyValue((0,o.kebabCase)(i));if(!s){r=!0,t[i]=0;return}/^[0-9]+(px)?$/.test(s)&&(s=parseInt(s,10)),t[i]=s,(r&&t[i]||n&&"marginTop"!==i&&t[i]!==t.marginTop)&&(n=!1)}),i.marginIsLocked=n}},32566:function(e,t,i){"use strict";i.d(t,{readSizes:function(){return a}});var o=i(29807),n=i(29960),r=i(41180),s=i(14415);async function a(e,t,i){try{await e.decode()}catch(e){}let a=(0,r.css)(e,"width",!0)||(0,n.attr)(e,"width")||!1,l=(0,r.css)(e,"height",!0)||(0,n.attr)(e,"height")||!1;t.imageWidth=!1!==a?(0,s.normalSizeFromString)(a):e.offsetWidth||e.naturalWidth,(0,o.isNumeric)(t.imageWidth)?t.imageHeight=!1!==l?(0,s.normalSizeFromString)(l):e.offsetHeight||e.naturalHeight:t.imageHeight=l||"";let{imageWidth:c,imageHeight:d}=t,u=parseFloat(c.toString());if(!(0,o.isNumeric)(c)||!(0,o.isNumeric)(d)){i.sizeIsLocked=!1;return}if(!1===l){t.imageHeight=Math.round(u/i.ratio),i.sizeIsLocked=!0;return}i.sizeIsLocked=1>Math.abs(u-parseFloat(d.toString())*i.ratio)}},59436:function(e,t,i){"use strict";i.d(t,{UIImagePropertiesForm:function(){return p}});var o=i(65478),n=i(87325),r=i(2748),s=i(21537),a=i(62405),l=i(12153),c=i(92762),d=i(35105),u=i(29827),h=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let p=class e extends a.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(e){let t=super.getElm(e);if(t)return t;for(let t of this.elements){let i=t.getElm(e);if(i)return i}return null}render(){return`<form>
144
144
  <div class="jodit-grid jodit-grid_xs-column">
145
145
  <div class="jodit_col-lg-2-5 jodit_col-xs-5-5">
146
146
  <div class="&__view-box">