jodit-pro 4.13.44 → 4.13.45
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.
- package/es2015/jodit.css +2 -2
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +8 -8
- package/es2015/jodit.js +19 -32
- package/es2015/jodit.min.js +4 -4
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.css +1 -1
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +11 -1
- package/es2015/plugins/google-maps/google-maps.js +90 -16
- package/es2015/plugins/google-maps/google-maps.min.css +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +6 -6
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +13 -13
- package/es2018/jodit.min.js +4 -4
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.css +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +5 -5
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +1 -1
- package/es2018/plugins/templates/templates.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +2 -2
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +16 -16
- package/es2021/jodit.js +19 -32
- package/es2021/jodit.min.js +4 -4
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +11 -1
- package/es2021/plugins/google-maps/google-maps.js +89 -15
- package/es2021/plugins/google-maps/google-maps.min.css +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +6 -6
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +2 -2
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +8 -8
- package/es2021.en/jodit.js +19 -32
- package/es2021.en/jodit.min.js +4 -4
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +11 -1
- package/es2021.en/plugins/google-maps/google-maps.js +89 -15
- package/es2021.en/plugins/google-maps/google-maps.min.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +6 -6
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +3 -3
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +46 -32
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.css +1 -1
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +11 -1
- package/es5/plugins/google-maps/google-maps.js +101 -16
- package/es5/plugins/google-maps/google-maps.min.css +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +2 -2
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/plugins/google-maps/config.js +1 -1
- package/esm/plugins/google-maps/google-maps.js +1 -1
- package/esm/plugins/google-maps/helpers/helpers.d.ts +8 -0
- package/esm/plugins/google-maps/helpers/helpers.js +1 -1
- package/esm/plugins/google-maps/ui/map/map.d.ts +6 -0
- package/esm/plugins/google-maps/ui/map/map.js +2 -2
- package/esm/plugins/google-maps/ui/map/modules/drawing-controller.js +1 -1
- package/package.json +1 -1
- package/types/plugins/google-maps/helpers/helpers.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/map.d.ts +6 -0
|
@@ -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.13.
|
|
4
|
+
* Version: v4.13.45
|
|
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(t,i){t.exports=function(t){var i=[];return i.toString=function(){return this.map(function(i){var o=function(t,i){var o=t[1]||"",n=t[3];if(!n)return o;if(i&&"function"==typeof btoa){var r="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */";return[o].concat(n.sources.map(function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"})).concat([r]).join(`
|
|
15
15
|
`)}return[o].join(`
|
|
16
16
|
`)}(i,t);return i[2]?"@media "+i[2]+"{"+o+"}":o}).join("")},i.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;r<this.length;r++){var s=this[r][0];"number"==typeof s&&(n[s]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&n[a[0]]||(o&&!a[2]?a[2]=o:o&&(a[2]="("+a[2]+") and ("+o+")"),i.push(a))}},i}}],i={};function o(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=i,o.d=function(t,i,n){o.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:n})},o.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,i){if(1&i&&(t=o(t)),8&i||4&i&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var r in t)o.d(n,r,(function(i){return t[i]}).bind(null,r));return n},o.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(i,"a",i),i},o.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},o.p="",o(o.s=1)}()},6441:function(t,i,o){"use strict";o.d(i,{Config:function(){return s}});var n=o(82758);let r={};class s{static get defaultOptions(){return s.__defaultOptions||(s.__defaultOptions=new s),s.__defaultOptions}constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=n.globalDocument,this.ownerWindow=n.globalWindow,this.shadowRoot=null,this.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=n.INSERT_AS_HTML,this.enter=n.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:n.PARAGRAPH,this.defaultMode=n.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},`
|
|
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,r)}}r=s.prototype,s.prototype.controls={}},26992:function(t,i,o){"use strict";o.d(i,{Async:function(){return m}});var n=o(82758),r=o(91898),s=o(12045),a=o(23282),l=o(84767),c=o(72430),d=o(14773),u=o(70799),h=o(86068),p=o(38837),f=o(93661);class m{delay(t){return this.promise(i=>this.setTimeout(i,t))}setTimeout(t,i,...o){if(this.isDestructed)return 0;let n={};(0,h.isVoid)(i)&&(i=0),(0,l.isNumber)(i)||(i=(n=i).timeout||0),n.label&&this.clearLabel(n.label);let s=(0,r.setTimeout)(t,i,...o),a=n.label||s;return this.timers.set(a,s),this.__callbacks.set(a,t),s}updateTimeout(t,i){if((0,p.assert)(t&&this.timers.has(t),"Label does not exist"),!t||!this.timers.has(t))return null;let o=this.__callbacks.get(t);return(0,p.assert)((0,a.isFunction)(o),"Callback is not a function"),this.setTimeout(o,{label:t,timeout:i})}clearLabel(t){t&&this.timers.has(t)&&((0,r.clearTimeout)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,u.isString)(t))return this.clearLabel(t);(0,r.clearTimeout)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,i,o=!1){let n=0,l=!1,u=[],h=(...i)=>{if(!l){n=0;let o=t(...i);if(l=!0,u.length){let t=()=>{u.forEach(t=>t()),u.length=0};(0,d.isPromise)(o)?o.finally(t):t()}}},p=(...s)=>{l=!1,i?(!n&&o&&h(...s),(0,r.clearTimeout)(n),n=this.setTimeout(()=>h(...s),(0,a.isFunction)(i)?i():i),this.timers.set(t,n)):h(...s)};return(0,c.isPlainObject)(i)&&i.promisify?(...t)=>{let i=this.promise(t=>{u.push(t)}).catch(t=>{if((0,s.isAbortError)(t))return null;throw t});return p(...t),i}:p}microDebounce(t,i=!1){let o,n=!1,r=!0;return(...s)=>{if(o=s,n){r=!0;return}r=!0,i&&(r=!1,t(...o)),n=!0,this.__queueMicrotaskNative(()=>{n=!1,!this.isDestructed&&r&&t(...o)})}}throttle(t,i,o=!1){let n=null,r,s,l;return(...o)=>{(r=!0,l=o,i)?n||(s=()=>{r?(t(...l),r=!1,n=this.setTimeout(s,(0,a.isFunction)(i)?i():i),this.timers.set(s,n)):n=null})():t(...l)}}promise(t){let i=()=>{},o=new Promise((o,n)=>{i=()=>n((0,f.abort)("Abort async")),this.promisesRejections.add(i),t(o,n)});return!o.finally&&"u">typeof process&&!n.IS_ES_NEXT&&(o.finally=t=>(o.then(t).catch(t),o)),o.finally(()=>{this.promisesRejections.delete(i)}).catch(()=>null),o.rejectCallback=i,o}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise(i=>{t.then(t=>(i("fulfilled"),t),t=>{throw i("rejected"),t}),this.setTimeout(()=>{i("pending")},100)});let i={};return Promise.race([t,i]).then(t=>t===i?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(t,i={timeout:100}){let o=this.__requestIdleCallbackNative(t,i);return this.__requestsIdle.add(o),o}requestIdlePromise(t){return this.promise(i=>{let o=this.requestIdleCallback(()=>i(o),t)})}schedulerPostTask(t,i={delay:0,priority:"user-visible"}){let o=new AbortController;if(i.signal&&i.signal.addEventListener("abort",()=>o.abort()),this.__controllers.add(o),void 0!==globalThis.scheduler){let n=globalThis.scheduler.postTask(t,{...i,signal:o.signal});return n.finally(()=>{this.__controllers.delete(o)}).catch(()=>null),n}return this.promise((n,r)=>{let s=this.setTimeout(()=>{try{n(t())}catch(t){r(t)}this.__controllers.delete(o)},i.delay||1);o.signal.addEventListener("abort",()=>{this.clearTimeout(s),this.__controllers.delete(o),r((0,f.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(t){return this.__requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){let i=requestAnimationFrame(t);return this.__requestsRaf.add(i),i}cancelAnimationFrame(t){this.__requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.__requestsIdle.forEach(t=>this.cancelIdleCallback(t)),this.__requestsRaf.forEach(t=>this.cancelAnimationFrame(t)),this.__controllers.forEach(t=>t.abort()),this.timers.forEach(t=>(0,r.clearTimeout)(this.timers.get(t))),this.timers.clear(),this.promisesRejections.forEach(t=>t()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var t,i,o,n,r;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(t=null==queueMicrotask?void 0:queueMicrotask.bind(window))?t: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!=(o=null==(i=window.requestIdleCallback)?void 0:i.bind(window))?o:(t,i)=>{var o;let n=Date.now();return this.setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-n))})},null!=(o=null==i?void 0:i.timeout)?o:1)},this.__cancelIdleCallbackNative=null!=(r=null==(n=window.cancelIdleCallback)?void 0:n.bind(window))?r:t=>{this.clearTimeout(t)},this.isDestructed=!1}}},8884:function(t,i,o){"use strict";o.d(i,{Async:function(){return n.Async}});var n=o(26992)},4012:function(t,i,o){"use strict";o.d(i,{Component:function(){return c}});var n=o(8884),r=o(78213),s=o(580),a=o(21537);let l=new Map;class c{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(t,i,o){let n=[this.componentName];return t&&n.push("__"+(t=t.replace(/[^a-z0-9-]/gi,"-"))),i&&(n.push("_",i),n.push("_",(0,a.isVoid)(o)?"true":o.toString())),n.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,i){return(0,a.get)(t,i||this)}get isReady(){return this.componentStatus===r.STATUSES.ready}get isDestructed(){return this.componentStatus===r.STATUSES.destructed}get isInDestruct(){return r.STATUSES.beforeDestruct===this.componentStatus||r.STATUSES.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(r.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(r.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),l.get(this)&&l.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,i){if(t===this.__componentStatus)return;i===this&&(this.__componentStatus=t);let o=Object.getPrototypeOf(this);o&&(0,a.isFunction)(o.setStatusComponent)&&o.setStatusComponent(t,i);let n=l.get(this),r=null==n?void 0:n[t];r&&r.length&&r.forEach(t=>t(i))}hookStatus(t,i){let o=l.get(this);o||(o={},l.set(this,o)),o[t]||(o[t]=[]),o[t].push(i)}static isInstanceOf(t,i){return t instanceof i}constructor(){this.async=new n.Async,this.ownerWindow=window,this.__componentStatus=r.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,s.uniqueUid)()}}c.STATUSES=r.STATUSES},91907:function(t,i,o){"use strict";o.d(i,{Component:function(){return n.Component},STATUSES:function(){return r.STATUSES},ViewComponent:function(){return s.ViewComponent}});var n=o(4012),r=o(78213),s=o(80480)},78213:function(t,i,o){"use strict";o.d(i,{STATUSES:function(){return n}});let n={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},80480:function(t,i,o){"use strict";o.d(i,{ViewComponent:function(){return r}});var n=o(4012);class r extends n.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...i){return this.j.i18n(t,...i)}setParentView(t){return this.jodit=t,t.ow&&(this.ownerWindow=t.ow),t.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(t){super(),this.setParentView(t)}}},82758:function(t,i,o){"use strict";o.r(i),o.d(i,{ACCURACY:function(){return W},APP_VERSION:function(){return n},BASE_PATH:function(){return ef},BASE_PATH_IS_MIN:function(){return em},BR:function(){return G},CLIPBOARD_ID:function(){return ev},COMMAND_KEYS:function(){return $},EMULATE_DBLCLICK_TIMEOUT:function(){return eo},ES:function(){return r},FAT_MODE:function(){return d},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return j},INSERT_AS_HTML:function(){return en},INSERT_AS_TEXT:function(){return es},INSERT_CLEAR_HTML:function(){return er},INSERT_ONLY_TEXT:function(){return ea},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return g},INVISIBLE_SPACE_REG_EXP_END:function(){return b},INVISIBLE_SPACE_REG_EXP_START:function(){return y},IS_BLOCK:function(){return x},IS_ES_MODERN:function(){return s},IS_ES_NEXT:function(){return a},IS_IE:function(){return Z},IS_INLINE:function(){return I},IS_MAC:function(){return ec},IS_PROD:function(){return l},IS_TEST:function(){return c},KEY_ALIASES:function(){return ed},KEY_ALT:function(){return z},KEY_BACKSPACE:function(){return D},KEY_DELETE:function(){return U},KEY_DOWN:function(){return F},KEY_ENTER:function(){return M},KEY_ESC:function(){return R},KEY_F3:function(){return q},KEY_LEFT:function(){return B},KEY_META:function(){return P},KEY_RIGHT:function(){return O},KEY_SPACE:function(){return H},KEY_TAB:function(){return L},KEY_UP:function(){return N},LIST_TAGS:function(){return E},MARKER_CLASS:function(){return ei},MODE_SOURCE:function(){return J},MODE_SPLIT:function(){return X},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return m},NEARBY:function(){return V},NO_EMPTY_TAGS:function(){return A},PARAGRAPH:function(){return K},PASSIVE_EVENTS:function(){return ew},SAFE_COUNT_CHANGE_CALL:function(){return el},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return ey},SPACE_REG_EXP:function(){return w},SPACE_REG_EXP_END:function(){return C},SPACE_REG_EXP_START:function(){return _},TEMP_ATTR:function(){return eg},TEXT_HTML:function(){return ee},TEXT_PLAIN:function(){return Q},TEXT_RTF:function(){return et},TOKENS:function(){return p},globalDocument:function(){return S},globalWindow:function(){return k},lang:function(){return eb}});let n="4.13.44",r="es2021",s=!0,a=!0,l=!0,c=!1,d=!0,u="https://xdsoft.net/jodit/pro/",h=()=>c=!0,p={},f="\uFEFF",m=" ",g=()=>/[\uFEFF]/g,b=()=>/[\uFEFF]+$/g,y=()=>/^[\uFEFF]+/g,w=()=>/[\s\n\t\r\uFEFF\u200b]+/g,_=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,C=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,k="u">typeof window?window:void 0,S="u">typeof document?document:void 0,x=/^(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,I=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,E=new Set(["ul","ol"]),T=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],j=new Set([...T,"br","hr"]),A=new Set(T),P="Meta",D="Backspace",L="Tab",M="Enter",R="Escape",z="Alt",B="ArrowLeft",N="ArrowUp",O="ArrowRight",F="ArrowDown",H="Space",U="Delete",q="F3",V=5,W=10,$=[P,D,U,N,F,O,B,M,R,q,L],G="br",K="p",Y=1,J=2,X=3,Z="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),Q=Z?"text":"text/plain",ee=Z?"html":"text/html",et=Z?"rtf":"text/rtf",ei="jodit-selection_marker",eo=300,en="insert_as_html",er="insert_clear_html",es="insert_as_text",ea="insert_only_text",el=10,ec=void 0!==k&&/Mac|iPod|iPhone|iPad/.test(k.navigator.platform),ed={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ec?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},eu=t=>{let i=t.split("/");return/\.js/.test(i[i.length-1])?{basePath:i.slice(0,i.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:eh,isMin:ep}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=S.currentScript;if(t)return eu(t.src);let i=S.querySelectorAll("script[src]");return i&&i.length?eu(i[i.length-1].src):eu(k.location.href)})(),ef=eh,em=ep,eg="data-jodit-temp",eb={},ev="clipboard",ey="source-consumer",ew=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},20218:function(t,i,o){"use strict";o.d(i,{Create:function(){return l}});var n=o(82758),r=o(2748),s=o(21537),a=o(38837);class l{get doc(){return(0,s.isFunction)(this.document)?this.document():this.document}element(t,i,o){let n=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(n),i&&((0,s.isPlainObject)(i)?(0,s.attr)(n,i):o=i),o&&(0,s.asArray)(o).forEach(t=>n.appendChild((0,s.isString)(t)?this.fromHTML(t):t)),n}div(t,i,o){let n=this.element("div",i,o);return t&&(n.className=t),n}sandbox(){var t;let i=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(i);let o=null==(t=i.contentWindow)?void 0:t.document;if((0,a.assert)(o,"iframe.contentWindow.document"),!o)throw Error("Iframe error");return o.open(),o.write("<!DOCTYPE html><html><head></head><body></body></html>"),o.close(),[o.body,i]}span(t,i,o){let n=this.element("span",i,o);return t&&(n.className=t),n}a(t,i,o){let n=this.element("a",i,o);return t&&(n.className=t),n}text(t){return this.doc.createTextNode(t)}fake(){return this.text(n.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,i){let o=this.div();o.innerHTML=t.toString();let n=o.firstChild===o.lastChild&&o.firstChild?o.firstChild:o;if(r.Dom.safeRemove(n),i){let t=(0,s.refs)(n);Object.keys(i).forEach(o=>{let n=t[o];n&&!1===i[o]&&r.Dom.hide(n)})}return n}applyCreateAttributes(t){if(this.createAttributes){let i=this.createAttributes;if(i&&i[t.tagName.toLowerCase()]){let o=i[t.tagName.toLowerCase()];(0,s.isFunction)(o)?o(t):(0,s.isPlainObject)(o)&&(0,s.attr)(t,o)}}}constructor(t,i){this.document=t,this.createAttributes=i}}},12060:function(t,i,o){"use strict";o.d(i,{Create:function(){return n.Create}});var n=o(20218)},45219:function(t,i,o){"use strict";o.d(i,{autobind:function(){return r}});var n=o(23282);function r(t,i,o){if(!(0,n.isFunction)(o.value))throw TypeError(`@autobind can only be applied to methods, but "${i}" is not a function`);let r=o.value;return{configurable:!0,get(){let t=r.bind(this);return Object.defineProperty(this,i,{value:t,configurable:!0,writable:!0}),t}}}},33433:function(t,i,o){"use strict";o.d(i,{cache:function(){return c},cacheHTML:function(){return d},cached:function(){return l}});var n=o(78213),r=o(2748),s=o(27613),a=o(82760);function l(t,i){let o=Object.getOwnPropertyDescriptor(t,i);return!o||(0,s.isFunction)(o.get)?null:o.value}function c(t,i,o){let n=o.get;if(!n)throw(0,a.error)("Getter property descriptor expected");o.get=function(){let t=n.call(this);return t&&!0===t.noCache||Object.defineProperty(this,i,{configurable:o.configurable,enumerable:o.enumerable,writable:!1,value:t}),t}}function d(t,i,o){let l=o.value;if(!(0,s.isFunction)(l))throw(0,a.error)("Handler must be a Function");let c=!0,d=new WeakMap;o.value=function(...t){var i;if(c&&d.has(this.constructor))return null==(i=d.get(this.constructor))?void 0:i.cloneNode(!0);let o=l.apply(this,t);return c&&r.Dom.isElement(o)&&d.set(this.constructor,o),c?o.cloneNode(!0):o},t.hookStatus(n.STATUSES.ready,t=>{c=!!((0,s.isViewObject)(t)?t:t.jodit).options.cache})}},87325:function(t,i,o){"use strict";o.d(i,{component:function(){return a},getComponentClass:function(){return l}});var n=o(82758),r=o(80568);let s=new Map;function a(t){class i extends t{constructor(...t){super(...t),this.constructor===i&&(this instanceof i||Object.setPrototypeOf(this,i.prototype),this.setStatus("ready"))}}let o=(0,r.getClassName)(t.prototype);if(s.has(o)&&!n.IS_PROD)throw Error(`Component with name "${o}" is already registered`);return s.set(o,i),i}function l(t){return s.get(t)}},81577:function(t,i,o){"use strict";o.d(i,{debounce:function(){return l},throttle:function(){return c}});var n=o(91907),r=o(27613),s=o(38837),a=o(89890);function l(t,i=!1,o="debounce"){return(l,c)=>{let d=l[c];if(!(0,r.isFunction)(d))throw(0,a.error)("Handler must be a Function");return l.hookStatus(n.STATUSES.ready,n=>{let{async:a}=n;(0,s.assert)(null!=a,`Component ${n.componentName||n.constructor.name} should have "async:IAsync" field`);let l=(0,r.isFunction)(t)?t(n):t,d=(0,r.isNumber)(l)||(0,r.isPlainObject)(l)?l:n.defaultTimeout;Object.defineProperty(n,c,{configurable:!0,value:a[o](n[c].bind(n),d,i)})}),{configurable:!0,get(){return d.bind(this)}}}}function c(t,i=!1){return l(t,i,"throttle")}},55153:function(t,i,o){"use strict";o.d(i,{derive:function(){return r}});var n=o(23282);function r(...t){return i=>{let o=i.prototype;for(let i=0;i<t.length;i++){let r=t[i],s=Object.getOwnPropertyNames(r.prototype);for(let t=0;t<s.length;t++){let i=s[t],a=Object.getOwnPropertyDescriptor(r.prototype,i);null!=a&&(0,n.isFunction)(a.value)&&!(0,n.isFunction)(o[i])&&Object.defineProperty(o,i,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return a.value.call(this,...t)}})}}}}},97357:function(t,i,o){"use strict";o.d(i,{hook:function(){return s}});var n=o(23282),r=o(89890);function s(t){return(i,o)=>{if(!(0,n.isFunction)(i[o]))throw(0,r.error)("Handler must be a Function");i.hookStatus(t,t=>{t[o].call(t)})}}},78927:function(t,i,o){"use strict";o.d(i,{idle:function(){return a}});var n=o(91907),r=o(23282),s=o(89890);function a(){return(t,i)=>{if(!(0,r.isFunction)(t[i]))throw(0,s.error)("Handler must be a Function");t.hookStatus(n.STATUSES.ready,t=>{let{async:o}=t,n=t[i];t[i]=(...i)=>o.requestIdleCallback(n.bind(t,...i))})}}},65478:function(t,i,o){"use strict";o.r(i),o.d(i,{autobind:function(){return n.autobind},cache:function(){return r.cache},cacheHTML:function(){return r.cacheHTML},cached:function(){return r.cached},component:function(){return s.component},debounce:function(){return a.debounce},derive:function(){return l.derive},getComponentClass:function(){return s.getComponentClass},hook:function(){return c.hook},idle:function(){return d.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return a.throttle},wait:function(){return p.wait},watch:function(){return f.watch}});var n=o(45219),r=o(33433),s=o(87325),a=o(81577),l=o(55153),c=o(97357),d=o(78927),u=o(31589),h=o(53213),p=o(13525),f=o(37133)},31589:function(t,i,o){"use strict";o.d(i,{nonenumerable:function(){return n}});let n=(t,i)=>{!1!==(Object.getOwnPropertyDescriptor(t,i)||{}).enumerable&&Object.defineProperty(t,i,{enumerable:!1,set(t){Object.defineProperty(this,i,{enumerable:!1,writable:!0,value:t})}})}},53213:function(t,i,o){"use strict";o.d(i,{persistent:function(){return s}});var n=o(78213),r=o(39955);function s(t,i){t.hookStatus(n.STATUSES.ready,t=>{let o=(0,r.isViewObject)(t)?t:t.jodit,n=`${o.options.namespace}${t.componentName}_prop_${i}`,s=t[i];Object.defineProperty(t,i,{get(){var t;return null!=(t=o.storage.get(n))?t:s},set(t){o.storage.set(n,t)}})})}},13525:function(t,i,o){"use strict";o.d(i,{wait:function(){return a}});var n=o(78213),r=o(23282),s=o(89890);function a(t){return(i,o)=>{let a=i[o];if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");i.hookStatus(n.STATUSES.ready,i=>{let{async:n}=i,r=i[o],s=0;Object.defineProperty(i,o,{configurable:!0,value:function o(...a){n.clearTimeout(s),t(i)?r.apply(i,a):s=n.setTimeout(()=>o(...a),10)}})})}}},37133:function(t,i,o){"use strict";o.d(i,{watch:function(){return h}});var n=o(78213),r=o(73026),s=o(46559),a=o(23282),l=o(72430),c=o(39955),d=o(89890),u=o(37790);function h(t,i){return(o,h)=>{var p;if(!(0,a.isFunction)(o[h]))throw(0,d.error)("Handler must be a Function");let f=null==(p=null==i?void 0:i.immediately)||p,m=null==i?void 0:i.context,g=i=>{let n=(0,c.isViewObject)(i)?i:i.jodit,d=(t,...o)=>{if(!i.isInDestruct)return i[h](t,...o)};f||(d=i.async.microDebounce(d,!0)),(0,s.splitArray)(t).forEach(t=>{if(/:/.test(t)){let[o,r]=t.split(":"),s=m;o.length&&(s=i.get(o)),(0,a.isFunction)(s)&&(s=s(i)),n.events.on(s||i,r,d),s||n.events.on(r,d),i.hookStatus("beforeDestruct",()=>{n.events.off(s||i,r,d).off(r,d)});return}let s=t.split("."),[c]=s,h=s.slice(1),p=i[c];(0,l.isPlainObject)(p)&&(0,r.observable)(p).on("change."+h.join("."),d);let f=(0,u.getPropertyDescriptor)(o,c);Object.defineProperty(i,c,{configurable:!0,set(t){let o=p;o!==t&&(p=t,f&&f.set&&f.set.call(i,t),(0,l.isPlainObject)(p)&&(p=(0,r.observable)(p)).on("change."+h.join("."),d),d(c,o,p))},get:()=>f&&f.get?f.get.call(i):p})})};(0,a.isFunction)(o.hookStatus)?o.hookStatus(n.STATUSES.ready,g):g(o)}}},2748:function(t,i,o){"use strict";o.d(i,{Dom:function(){return _}});var n=o(82758),r=o(4510),s=o(68345),a=o(23282),l=o(58487),c=o(42320),d=o(70799),u=o(86068),h=o(49055),p=o(38837),f=o(29960),m=o(41180),g=o(86583),b=o(89890),y=o(37790);let w=RegExp(`<([a-z]+)[^>]+${n.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class _{static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapNextInline(t,i,o){let n,r=t;o.s.save();let s=!1;do s=!1,(n=r.nextSibling)&&!_.isBlock(n)&&!_.isTag(n,"br")&&(s=!0,r=n);while(s)return _.__wrapElements(i,o,t,r)}static __wrapElements(t,i,o,n){let r=(0,d.isString)(t)?i.createInside.element(t):t;o.parentNode&&o.parentNode.insertBefore(r,o);let s=o;for(;s&&(s=o.nextSibling,r.appendChild(o),o!==n&&s);)o=s;return i.s.restore(),r}static wrapInline(t,i,o){let n,r=t,s=t;o.s.save();let a=!1;do a=!1,(n=r.previousSibling)&&!_.isBlock(n)&&(a=!0,r=n);while(a)do a=!1,(n=s.nextSibling)&&!_.isBlock(n)&&(a=!0,s=n);while(a)return _.__wrapElements(i,o,r,s)}static wrap(t,i,o){let n=(0,d.isString)(i)?o.element(i):i;if(_.isNode(t)){if(!t.parentNode)throw(0,b.error)("Element should be in DOM");t.parentNode.insertBefore(n,t),n.appendChild(t)}else{let i=t.extractContents();t.insertNode(n),n.appendChild(i)}return n}static unwrap(t){let i=t.parentNode;if(i){for(;t.firstChild;)i.insertBefore(t.firstChild,t);_.safeRemove(t)}}static between(t,i,o){let n=t;for(;n&&n!==i&&!(t!==n&&o(n));){let t=n.firstChild||n.nextSibling;if(!t){for(;n&&!n.nextSibling;)if((n=n.parentNode)===i)return;t=null==n?void 0:n.nextSibling}n=t}}static replace(t,i,o,n=!1,s=!1){let a;if((0,l.isHTML)(i)&&((0,p.assert)(o,"Need create instance for new tag"),i=o.fromHTML(i)),(0,d.isString)(i)?((0,p.assert)(o,"Need create instance for new tag"),a=o.element(i)):a=i,!s)for(;t.firstChild;)a.appendChild(t.firstChild);return n&&_.isElement(t)&&_.isElement(a)&&(0,r.toArray)(t.attributes).forEach(t=>{a.setAttribute(t.name,t.value)}),t.parentNode&&t.parentNode.replaceChild(a,t),a}static isEmptyTextNode(t){return _.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return _.each(t,t=>_.isEmptyTextNode(t))}static isContentEditable(t,i){return _.isNode(t)&&!_.closest(t,t=>_.isElement(t)&&"false"===t.getAttribute("contenteditable"),i)}static isEmpty(t,i=n.NO_EMPTY_TAGS){let o;if(!t)return!0;o=(0,a.isFunction)(i)?i:t=>i.has(t.nodeName.toLowerCase());let r=t=>null==t.nodeValue||0===(0,h.trim)(t.nodeValue).length;return _.isText(t)?r(t):!(_.isElement(t)&&o(t))&&_.each(t,t=>{if(_.isText(t)&&!r(t)||_.isElement(t)&&o(t))return!1})}static isNode(t){return!!(t&&(0,d.isString)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,a.isFunction)(t.appendChild))}static isCell(t){return _.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return _.isTag(t,n.LIST_TAGS)}static isLeaf(t){return _.isTag(t,"li")}static isImage(t){return _.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,u.isVoid)(t)&&"object"==typeof t&&_.isNode(t)&&n.IS_BLOCK.test(t.nodeName)}static isText(t){return!!(t&&t.nodeType===Node.TEXT_NODE)}static isComment(t){return!!(t&&t.nodeType===Node.COMMENT_NODE)}static isElement(t){return!!_.isNode(t)&&t.nodeType===Node.ELEMENT_NODE}static isFragment(t){return!!_.isNode(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(t){var i;if(!_.isNode(t))return!1;let o=null==(i=t.ownerDocument)?void 0:i.defaultView;return t instanceof(o?o.HTMLElement:HTMLElement)}static isInlineBlock(t){return _.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf((0,m.css)(t,"display").toString())}static canSplitBlock(t){return!(0,u.isVoid)(t)&&_.isHTMLElement(t)&&_.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static first(t,i){let o=null==t?void 0:t.firstChild;if(!o)return null;do{if(i(o))return o;let n=o.firstChild;if(n||(n=o.nextSibling),!n&&o.parentNode!==t){do o=o.parentNode;while(o&&!(null==o?void 0:o.nextSibling)&&o.parentNode!==t)n=null==o?void 0:o.nextSibling}o=n}while(o)return null}static last(t,i){let o=null==t?void 0:t.lastChild;if(!o)return null;do{if(i(o))return o;let n=o.lastChild;if(n||(n=o.previousSibling),!n&&o.parentNode!==t){do o=o.parentNode;while(o&&!(null==o?void 0:o.previousSibling)&&o.parentNode!==t)n=null==o?void 0:o.previousSibling}o=n}while(o)return null}static prev(t,i,o,n=!0){return _.find(t,i,o,!1,n)}static next(t,i,o,n=!0){return _.find(t,i,o,!0,n)}static prevWithClass(t,i){return _.prev(t,t=>_.isElement(t)&&t.classList.contains(i),t.parentNode)}static nextWithClass(t,i){return _.next(t,t=>_.isElement(t)&&t.classList.contains(i),t.parentNode)}static find(t,i,o,n=!0,r=!0){let s=this.nextGen(t,o,n,r),a=s.next();for(;!a.done;){if(i(a.value))return a.value;a=s.next()}return null}static*nextGen(t,i,o=!0,n=!0){let r=[],s=t;do{let i=o?s.nextSibling:s.previousSibling;for(;i;)r.push(i),i=o?i.nextSibling:i.previousSibling;r.reverse(),yield*this.runInStack(t,r,o,n),s=s.parentNode}while(s&&s!==i)return null}static each(t,i,o=!0){let n=this.eachGen(t,o),r=n.next();for(;!r.done;){if(!1===i(r.value))return!1;r=n.next()}return!0}static eachGen(t,i=!0){return this.runInStack(t,[t],i)}static*runInStack(t,i,o,n=!0){for(;i.length;){let r=i.pop();if(n){let t=o?r.lastChild:r.firstChild;for(;t;)i.push(t),t=o?t.previousSibling:t.nextSibling}t!==r&&(yield r)}}static findWithCurrent(t,i,o,n="nextSibling",r="firstChild"){let s=t;do{if(i(s))return s||null;if(r&&s&&s[r]){let t=_.findWithCurrent(s[r],i,s,n,r);if(t)return t}for(;s&&!s[n]&&s!==o;)s=s.parentNode;s&&s[n]&&s!==o&&(s=s[n])}while(s&&s!==o)return null}static findSibling(t,i=!0,o=t=>!_.isEmptyTextNode(t)){let n=_.sibling(t,i);for(;n&&!o(n);)n=_.sibling(n,i);return n&&o(n)?n:null}static findNotEmptySibling(t,i){return _.findSibling(t,i,t=>{var i;return!_.isEmptyTextNode(t)&&!!(!_.isText(t)||(null==(i=t.nodeValue)?void 0:i.length)&&(0,h.trim)(t.nodeValue))})}static findNotEmptyNeighbor(t,i,o){return(0,y.call)(i?_.prev:_.next,t,t=>!!(t&&(!(_.isText(t)||_.isComment(t))||(0,h.trim)((null==t?void 0:t.nodeValue)||"").length)),o)}static sibling(t,i){return i?t.previousSibling:t.nextSibling}static up(t,i,o,n=!1){let r=t;if(!r)return null;do{if(i(r))return r;if(r===o||!r.parentNode)break;r=r.parentNode}while(r&&r!==o)return r===o&&n&&i(r)?r:null}static closest(t,i,o){let n,r=t=>t.toLowerCase();if((0,a.isFunction)(i))n=i;else if((0,s.isArray)(i)||(0,c.isSet)(i)){let t=(0,c.isSet)(i)?i:new Set(i.map(r));n=i=>!!(i&&t.has(r(i.nodeName)))}else n=t=>!!(t&&r(i)===r(t.nodeName));return _.up(t,n,o)}static furthest(t,i,o){let n=null,r=null==t?void 0:t.parentElement;for(;r&&r!==o;)i(r)&&(n=r),r=null==r?void 0:r.parentElement;return n}static appendChildFirst(t,i){let o=t.firstChild;o?o!==i&&t.insertBefore(i,o):t.appendChild(i)}static after(t,i){let{parentNode:o}=t;o&&(o.lastChild===t?o.appendChild(i):o.insertBefore(i,t.nextSibling))}static before(t,i){let{parentNode:o}=t;o&&o.insertBefore(i,t)}static prepend(t,i){t.insertBefore(i,t.firstChild)}static append(t,i){(0,s.isArray)(i)?i.forEach(i=>{this.append(t,i)}):t.appendChild(i)}static moveContent(t,i,o=!1,s=()=>!0){let a=(t.ownerDocument||n.globalDocument).createDocumentFragment();(0,r.toArray)(t.childNodes).filter(t=>!!s(t)||(_.safeRemove(t),!1)).forEach(t=>{a.appendChild(t)}),o&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a)}static isOrContains(t,i,o=!1){return t===i?!o:!!(i&&t&&this.up(i,i=>i===t,t,!0))}static safeRemove(...t){t.forEach(t=>_.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t))}static safeInsertNode(t,i){t.collapsed||t.deleteContents();let o=_.isFragment(i)?i.lastChild:i;t.startContainer===t.endContainer&&t.collapsed&&_.isTag(t.startContainer,n.INSEPARABLE_TAGS)?_.after(t.startContainer,i):(t.insertNode(i),o&&t.setStartBefore(o)),t.collapse(!0),[i.nextSibling,i.previousSibling].forEach(t=>_.isText(t)&&!t.nodeValue&&_.safeRemove(t))}static hide(t){t&&((0,g.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;let i=(0,g.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=i||"")}static isTag(t,i){if(Array.isArray(i))throw TypeError("Dom.isTag does not support array");if(!this.isElement(t))return!1;let o=t.tagName.toLowerCase();return i instanceof Set?i.has(o)||i.has(t.tagName.toUpperCase()):o===i||t.tagName.toUpperCase()===i}static markTemporary(t,i){return i&&(0,f.attr)(t,i),(0,f.attr)(t,n.TEMP_ATTR,!0),t}static isTemporary(t){return!!_.isElement(t)&&(_.isMarker(t)||"true"===(0,f.attr)(t,n.TEMP_ATTR))}static isMarker(t){return _.isNode(t)&&_.isTag(t,"span")&&t.hasAttribute("data-"+n.MARKER_CLASS)}static replaceTemporaryFromString(t){return t.replace(w,"$2")}static temporaryList(t){return(0,r.toArray)(t.querySelectorAll(`[${n.TEMP_ATTR}]`))}constructor(){throw Error("Dom is static module")}}},22732:function(t,i,o){"use strict";o.d(i,{Dom:function(){return n.Dom},LazyWalker:function(){return r.LazyWalker}});var n=o(2748),r=o(70071)},70071:function(t,i,o){"use strict";o.d(i,{LazyWalker:function(){return a}});var n=o(45219),r=o(2748),s=o(72757);class a extends s.Eventify{setWork(t){return this.isWorked?this.break():this.stop(),this.workNodes=r.Dom.eachGen(t,!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(t){this.isWorked&&(this.stop(),this.emit("break",t))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){var t;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(t=this.__schedulerController)||t.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){var t;if(this.workNodes){this.isWorked=!0;let i=0,o=null!=(t=this.options.timeoutChunkSize)?t:50;for(;!this.isFinished&&i<o;){let t=this.workNodes.next();if(i+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(t){var i;return!!t&&(void 0===this.options.whatToShow||t.nodeType===this.options.whatToShow)&&null!=(i=this.emit("visit",t))&&i}constructor(t,i={}){super(),this.async=t,this.options=i,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.__schedulerController=null}}!function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);s>3&&a&&Object.defineProperty(i,o,a)}([n.autobind],a.prototype,"__workPerform",null)},98220:function(t,i,o){"use strict";o.d(i,{EventEmitter:function(){return u}});var n=o(82758),r=o(46559),s=o(68345),a=o(23282),l=o(70799),c=o(89890),d=o(15738);class u{mute(t){return this.__mutedEvents.add(null!=t?t:"*"),this}isMuted(t){return!!(t&&this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(null!=t?t:"*"),this}__eachEvent(t,i){(0,r.splitArray)(t).map(t=>t.trim()).forEach(t=>{let o=t.split("."),n=o[1]||d.defaultNameSpace;i.call(this,o[0],n)})}__getStore(t){if(!t)throw(0,c.error)("Need subject");if(void 0===t[this.__key]){let i=new d.EventHandlersStore;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:i})}return t[this.__key]}__removeStoreFromSubject(t){void 0!==t[this.__key]&&delete t[this.__key]}__triggerNativeEvent(t,i){let o=this.__doc.createEvent("HTMLEvents");(0,l.isString)(i)?o.initEvent(i,!0,!0):(o.initEvent(i.type,i.bubbles,i.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(t=>{Object.defineProperty(o,t,{value:i[t],enumerable:!0})}),Object.defineProperty(o,"originalEvent",{value:i,enumerable:!0})),t.dispatchEvent(o)}get current(){return this.currents[this.currents.length-1]}on(t,i,o,r){let d,u,p,f;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(d=this,u=t,p=i,f=o):(d=t,u=i,p=o,f=r),!((0,l.isString)(u)||(0,l.isStringArray)(u))||0===u.length)throw(0,c.error)("Need events names");if(!(0,a.isFunction)(p))throw(0,c.error)("Need event handler");if((0,s.isArray)(d))return d.forEach(t=>{this.on(t,u,p,f)}),this;let m=d,g=this.__getStore(m),b=this,y=function(t,...i){if(!b.isMuted(t))return p&&p.call(this,...i)};return h(m)&&(y=function(t){if(!b.isMuted(t.type)&&(b.__prepareEvent(t),p&&!1===p.call(this,t)))return t.preventDefault(),t.stopImmediatePropagation(),!1}),this.__eachEvent(u,(t,i)=>{var o,r;if(0===t.length)throw(0,c.error)("Need event name");if(!1===g.indexOf(t,i,p)){let s={event:t,originalCallback:p,syntheticCallback:y};if(g.set(t,i,s,null==f?void 0:f.top),h(m)){let i=n.PASSIVE_EVENTS.has(t)?{passive:!0,capture:null!=(o=null==f?void 0:f.capture)&&o}:null!=(r=null==f?void 0:f.capture)&&r;y.options=i,m.addEventListener(t,y,i),this.__memoryDOMSubjectToHandler(m,y)}}}),this}__memoryDOMSubjectToHandler(t,i){let o=this.__domEventsMap.get(t)||new Set;o.add(i),this.__domEventsMap.set(t,o)}__unmemoryDOMSubjectToHandler(t,i){let o=this.__domEventsMap,n=o.get(t)||new Set;n.delete(i),n.size?o.set(t,n):o.delete(t)}one(t,i,o,n){let r,s,a,c;(0,l.isString)(t)||(0,l.isStringArray)(t)?(r=this,s=t,a=i,c=o):(r=t,s=i,a=o,c=n);let d=(...t)=>(this.off(r,s,d),a(...t));return this.on(r,s,d,c),this}off(t,i,o){let n,r,c;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(n=this,r=t,c=i):(n=t,r=i,c=o),(0,s.isArray)(n))return n.forEach(t=>{this.off(t,r,c)}),this;let u=n,p=this.__getStore(u);if(!((0,l.isString)(r)||(0,l.isStringArray)(r))||0===r.length)return p.namespaces().forEach(t=>{this.off(u,"."+t)}),this.__removeStoreFromSubject(u),this;let f=t=>{var i;h(u)&&(u.removeEventListener(t.event,t.syntheticCallback,null!=(i=t.syntheticCallback.options)&&i),this.__unmemoryDOMSubjectToHandler(u,t.syntheticCallback))},m=(t,i)=>{if(""===t)return void p.events(i).forEach(t=>{""!==t&&m(t,i)});let o=p.get(t,i);if(o&&o.length)if((0,a.isFunction)(c)){let n=p.indexOf(t,i,c);!1!==n&&(f(o[n]),o.splice(n,1),o.length||p.clearEvents(i,t))}else o.forEach(f),o.length=0,p.clearEvents(i,t)};return this.__eachEvent(r,(t,i)=>{i===d.defaultNameSpace?p.namespaces().forEach(i=>{m(t,i)}):m(t,i)}),p.isEmpty()&&this.__removeStoreFromSubject(u),this}stopPropagation(t,i){let o=(0,l.isString)(t)?this:t,n=(0,l.isString)(t)?t:i;if("string"!=typeof n)throw(0,c.error)("Need event names");let r=this.__getStore(o);this.__eachEvent(n,(t,i)=>{let n=r.get(t,i);n&&this.__stopped.push(n),i===d.defaultNameSpace&&r.namespaces(!0).forEach(i=>this.stopPropagation(o,t+"."+i))})}__removeStop(t){if(t){let i=this.__stopped.indexOf(t);-1!==i&&this.__stopped.splice(0,i+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,i,...o){let n,r,s=(0,l.isString)(t)?this:t,a=(0,l.isString)(t)?t:i,u=(0,l.isString)(t)?[i,...o]:o;if(!h(s)&&!(0,l.isString)(a))throw(0,c.error)("Need events names");let p=this.__getStore(s);return!(0,l.isString)(a)&&h(s)?this.__triggerNativeEvent(s,i):this.__eachEvent(a,(t,i)=>{if(h(s))this.__triggerNativeEvent(s,t);else{let o=p.get(t,i);if(o)try{[...o].every(i=>!this.__isStopped(o)&&(this.currents.push(t),r=i.syntheticCallback.call(s,t,...u),this.currents.pop(),void 0!==r&&(n=r),!0))}finally{this.__removeStop(o)}i!==d.defaultNameSpace||h(s)||p.namespaces().filter(t=>t!==i).forEach(i=>{let o=this.fire.apply(this,[s,t+"."+i,...u]);void 0!==o&&(n=o)})}}),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((t,i)=>{this.off(i)}),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(t){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=n.globalDocument,this.__prepareEvent=t=>{!t.cancelBubble&&(t.composed&&(0,a.isFunction)(t.composedPath)&&t.composedPath()[0]&&Object.defineProperty(t,"target",{value:t.composedPath()[0],configurable:!0,enumerable:!0}),t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(i=>{Object.defineProperty(t,i,{value:t.changedTouches[0][i],configurable:!0,enumerable:!0})}),t.originalEvent||(t.originalEvent=t),"paste"===t.type&&void 0===t.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(t,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,t&&(this.__doc=t),this.__key+=new Date().getTime()}}function h(t){return t&&(0,a.isFunction)(t.addEventListener)}},72757:function(t,i,o){"use strict";o.d(i,{Eventify:function(){return n}});class n{on(t,i){var o;return this.__map.has(t)||this.__map.set(t,new Set),null==(o=this.__map.get(t))||o.add(i),this}off(t,i){var o;return this.__map.has(t)&&(null==(o=this.__map.get(t))||o.delete(i)),this}destruct(){this.__map.clear()}emit(t,...i){var o;let n;return this.__map.has(t)&&(null==(o=this.__map.get(t))||o.forEach(t=>{n=t(...i)})),n}constructor(){this.__map=new Map}}},57012:function(t,i,o){"use strict";o.d(i,{eventEmitter:function(){return n}});let n=new(o(98220)).EventEmitter},3827:function(t,i,o){"use strict";o.d(i,{EventEmitter:function(){return n.EventEmitter},EventHandlersStore:function(){return a.EventHandlersStore},Eventify:function(){return r.Eventify},defaultNameSpace:function(){return a.defaultNameSpace},observable:function(){return s.observable}});var n=o(98220),r=o(72757),s=o(73026),a=o(15738)},73026:function(t,i,o){"use strict";o.d(i,{observable:function(){return d}});var n=o(68345),r=o(59292),s=o(72430),a=o(37790);let l=Symbol("observable-object");function c(t){return void 0!==t[l]}function d(t){if(c(t))return t;let i={},o={},d=(i,r)=>((0,n.isArray)(i)?i.map(t=>d(t,r)):(o[i]||(o[i]=[]),o[i].push(r)),t),u=(r,...s)=>{if((0,n.isArray)(r))return void r.map(t=>u(t,...s));try{!i[r]&&o[r]&&(i[r]=!0,o[r].forEach(i=>i.call(t,...s)))}finally{i[r]=!1}},h=(i,o=[])=>{let n={};c(i)||(Object.defineProperty(i,l,{enumerable:!1,value:!0}),Object.keys(i).forEach(l=>{let c=o.concat(l).filter(t=>t.length);n[l]=i[l];let d=(0,a.getPropertyDescriptor)(i,l);Object.defineProperty(i,l,{set(i){let o=n[l];if(!(0,r.isFastEqual)(n[l],i)){u(["beforeChange","beforeChange."+c.join(".")],l,i),(0,s.isPlainObject)(i)&&h(i,c),d&&d.set?d.set.call(t,i):n[l]=i;let r=[];u(["change",...c.reduce((t,i)=>(r.push(i),t.push("change."+r.join(".")),t),[])],c.join("."),o,(null==i?void 0:i.valueOf)?i.valueOf():i)}},get:()=>d&&d.get?d.get.call(t):n[l],enumerable:!0,configurable:!0}),(0,s.isPlainObject)(n[l])&&h(n[l],c)}),Object.defineProperty(t,"on",{value:d}))};return h(t),t}},15738:function(t,i,o){"use strict";o.d(i,{EventHandlersStore:function(){return a},defaultNameSpace:function(){return s}});var n=o(4510),r=o(38837);let s="JoditEventDefaultNamespace";class a{get(t,i){if(this.__store.has(i)){let o=this.__store.get(i);return(0,r.assert)(o,"-"),o[t]}}indexOf(t,i,o){let n=this.get(t,i);if(n){for(let t=0;t<n.length;t+=1)if(n[t].originalCallback===o)return t}return!1}namespaces(t=!1){let i=(0,n.toArray)(this.__store.keys());return t?i.filter(t=>t!==s):i}events(t){let i=this.__store.get(t);return i?Object.keys(i):[]}set(t,i,o,n=!1){let r=this.__store.get(i);r||(r={},this.__store.set(i,r)),void 0===r[t]&&(r[t]=[]),n?r[t].unshift(o):r[t].push(o)}clear(){this.__store.clear()}clearEvents(t,i){let o=this.__store.get(t);o&&o[i]&&(delete o[i],Object.keys(o).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}},580:function(t,i,o){"use strict";o.d(i,{eventEmitter:function(){return x},extendLang:function(){return _},getContainer:function(){return k},getPopupViewRoot:function(){return S},instances:function(){return f},modules:function(){return w},pluginSystem:function(){return y},uniqueUid:function(){return b}});var n=o(19306),r=o(70799),s=o(39955),a=o(12475),l=o(41180),c=o(80568),d=o(41876),u=o(57012),h=o(82758),p=o(22732);let f={},m=1,g=new Set;function b(){function t(){return Math.round(m+=10*(Math.random()+1)).toString(16)}let i=t();for(;g.has(i);)i=t();return g.add(i),i}let y=new d.PluginSystem({getContainer:k}),w={},_=t=>{Object.keys(t).forEach(i=>{h.lang[i]?Object.assign(h.lang[i],t[i]):h.lang[i]=t[i]})},C=new WeakMap;function k(t,i,o="div",l=!1){let d=(0,r.isString)(i)?i:i?(0,c.getClassName)(i.prototype):"jodit-utils",u=C.get(t)||{},h=d+o,f=(0,s.isViewObject)(t)?t:t.j,m=null;if(!u[h]){let i=f.c;if(m=S(f.o,f.container,t.od.body),l&&(0,n.isJoditObject)(t)&&t.od!==t.ed){i=t.createInside;let r="style"===o?t.ed.head:t.ed.body;m=(0,n.isJoditObject)(t)&&t.o.shadowRoot?t.o.shadowRoot:r}let r=i.element(o,{className:`jodit jodit-${(0,a.kebabCase)(d)}-container jodit-box`});f.o.nonce&&("style"===o||"script"===o)&&r.setAttribute("nonce",f.o.nonce),r.classList.add("jodit_theme_"+(f.o.theme||"default")),m.appendChild(r),u[h]=r,t.hookStatus("beforeDestruct",()=>{f.events.off(r),p.Dom.safeRemove(r),delete u[h],Object.keys(u).length&&C.delete(t)}),C.set(t,u),f.events.fire("getContainer",r)}return u[h].classList.remove("jodit_theme_default","jodit_theme_dark"),u[h].classList.add("jodit_theme_"+(f.o.theme||"default")),u[h]}function S(t,i,o){var n,r,s;return null!=(s=null!=(r=null!=(n=t.popupRoot)?n:t.shadowRoot)?r:p.Dom.closest(i,t=>p.Dom.isHTMLElement(t)&&(p.Dom.isTag(t,"dialog")||["fixed","absolute"].includes((0,l.css)(t,"position"))),o))?s:o}let x=u.eventEmitter},29999:function(t,i,o){"use strict";o.d(i,{asArray:function(){return r}});var n=o(68345);let r=t=>(0,n.isArray)(t)?t:[t]},76855:function(t,i,o){"use strict";o.d(i,{asArray:function(){return n.asArray},splitArray:function(){return r.splitArray},toArray:function(){return s.toArray}});var n=o(29999),r=o(46559),s=o(4510)},46559:function(t,i,o){"use strict";function n(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}o.d(i,{splitArray:function(){return n}})},4510:function(t,i,o){"use strict";o.d(i,{toArray:function(){return s}});var n=o(70722),r=o(58844);let s=function(...t){var i;return((0,n.isNativeFunction)(Array.from)?Array.from:null!=(i=(0,r.reset)("Array.from"))?i:Array.from).apply(Array,t)}},91898:function(t,i,o){"use strict";o.d(i,{clearTimeout:function(){return n.clearTimeout},setTimeout:function(){return n.setTimeout}});var n=o(13252)},13252:function(t,i,o){"use strict";o.d(i,{clearTimeout:function(){return s},setTimeout:function(){return r}});var n=o(82758);function r(t,i,...o){return i?n.globalWindow.setTimeout(t,i,...o):(t.call(null,...o),0)}function s(t){n.globalWindow.clearTimeout(t)}},54765:function(t,i,o){"use strict";o.d(i,{hasBrowserColorPicker:function(){return r}});var n=o(82758);function r(){let t=!0;try{let i=n.globalDocument.createElement("input");i.type="color",i.value="!",t="color"===i.type&&"!"!==i.value}catch(i){t=!1}return t}},27613:function(t,i,o){"use strict";o.d(i,{hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return h.hasContainer},isAbortError:function(){return r.isAbortError},isArray:function(){return s.isArray},isBoolean:function(){return a.isBoolean},isDestructable:function(){return h.isDestructable},isEqual:function(){return l.isEqual},isFastEqual:function(){return l.isFastEqual},isFunction:function(){return c.isFunction},isHTML:function(){return d.isHTML},isHtmlFromWord:function(){return u.isHtmlFromWord},isInitable:function(){return h.isInitable},isInt:function(){return p.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return m.isLicense},isMarker:function(){return g.isMarker},isNativeFunction:function(){return b.isNativeFunction},isNumber:function(){return y.isNumber},isNumeric:function(){return w.isNumeric},isPlainObject:function(){return _.isPlainObject},isPromise:function(){return C.isPromise},isSet:function(){return k.isSet},isString:function(){return S.isString},isStringArray:function(){return S.isStringArray},isURL:function(){return x.isURL},isValidName:function(){return I.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return T.isVoid},isWindow:function(){return j.isWindow}});var n=o(54765),r=o(12045),s=o(68345),a=o(87612),l=o(59292),c=o(23282),d=o(58487),u=o(29673),h=o(60132),p=o(72913),f=o(19306),m=o(45603),g=o(78116),b=o(70722),y=o(84767),w=o(29807),_=o(72430),C=o(14773),k=o(42320),S=o(70799),x=o(26049),I=o(37508),E=o(39955),T=o(86068),j=o(52742)},12045:function(t,i,o){"use strict";function n(t){return!!t&&t instanceof DOMException&&"AbortError"===t.name}o.d(i,{isAbortError:function(){return n}})},68345:function(t,i,o){"use strict";function n(t){return Array.isArray(t)}o.d(i,{isArray:function(){return n}})},87612:function(t,i,o){"use strict";function n(t){return"boolean"==typeof t}o.d(i,{isBoolean:function(){return n}})},59292:function(t,i,o){"use strict";o.d(i,{isEqual:function(){return r},isFastEqual:function(){return s}});var n=o(67462);function r(t,i){return t===i||(0,n.stringify)(t)===(0,n.stringify)(i)}function s(t,i){return t===i}},23282:function(t,i,o){"use strict";function n(t){return"function"==typeof t}o.d(i,{isFunction:function(){return n}})},29673:function(t,i,o){"use strict";function n(t){return -1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i)||-1!==t.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i)||-1!==t.search(/urn:schemas-microsoft-com:office:(word|excel)/)||-1!==t.search(/<\w[^>]*\sclass=("|')?Mso/)||-1!==t.search(/style='[^']*mso-/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}o.d(i,{isHtmlFromWord:function(){return n}})},58487:function(t,i,o){"use strict";o.d(i,{isHTML:function(){return r}});var n=o(70799);let r=t=>(0,n.isString)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},60132:function(t,i,o){"use strict";o.d(i,{hasContainer:function(){return c},isDestructable:function(){return l},isInitable:function(){return a}});var n=o(2748),r=o(23282),s=o(86068);function a(t){return!(0,s.isVoid)(t)&&(0,r.isFunction)(t.init)}function l(t){return!(0,s.isVoid)(t)&&(0,r.isFunction)(t.destruct)}function c(t){return!(0,s.isVoid)(t)&&n.Dom.isElement(t.container)}},72913:function(t,i,o){"use strict";o.d(i,{isInt:function(){return s}});var n=o(29807),r=o(70799);function s(t){return(0,r.isString)(t)&&(0,n.isNumeric)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},19306:function(t,i,o){"use strict";o.d(i,{isJoditObject:function(){return r}});var n=o(23282);function r(t){return!!(t&&t instanceof Object&&(0,n.isFunction)(t.constructor)&&("u">typeof Jodit&&t instanceof Jodit||t.isJodit))}},45603:function(t,i,o){"use strict";o.d(i,{isLicense:function(){return r}});var n=o(70799);let r=t=>(0,n.isString)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},78116:function(t,i,o){"use strict";o.d(i,{isMarker:function(){return r}});var n=o(2748);function r(t){return n.Dom.isMarker(t)}},70722:function(t,i,o){"use strict";function n(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===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(t+""))}o.d(i,{isNativeFunction:function(){return n}})},84767:function(t,i,o){"use strict";function n(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}o.d(i,{isNumber:function(){return n}})},29807:function(t,i,o){"use strict";o.d(i,{isNumeric:function(){return r}});var n=o(70799);function r(t){if((0,n.isString)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},72430:function(t,i,o){"use strict";o.d(i,{isPlainObject:function(){return r}});var n=o(52742);function r(t){return!(!t||"object"!=typeof t||t.nodeType||(0,n.isWindow)(t))&&!(t.constructor&&!({}).hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},14773:function(t,i,o){"use strict";function n(t){return t&&"function"==typeof t.then}o.d(i,{isPromise:function(){return n}})},42320:function(t,i,o){"use strict";o.d(i,{isSet:function(){return r}});var n=o(23282);function r(t){return!!t&&(0,n.isFunction)(t.has)&&(0,n.isFunction)(t.add)&&(0,n.isFunction)(t.delete)}},70799:function(t,i,o){"use strict";o.d(i,{isString:function(){return r},isStringArray:function(){return s}});var n=o(68345);function r(t){return"string"==typeof t}function s(t){return(0,n.isArray)(t)&&r(t[0])}},26049:function(t,i,o){"use strict";o.d(i,{isURL:function(){return r}});var n=o(82758);function r(t){if(t.includes(" "))return!1;if("u">typeof URL)try{let i=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(i.protocol)}catch(t){return!1}let i=n.globalDocument.createElement("a");return i.href=t,!!i.hostname}},37508:function(t,i,o){"use strict";function n(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(t)&&t.trim().length>0}o.d(i,{isValidName:function(){return n}})},39955:function(t,i,o){"use strict";o.d(i,{isViewObject:function(){return r}});var n=o(23282);function r(t){return!!(t&&t instanceof Object&&(0,n.isFunction)(t.constructor)&&t.isView)}},86068:function(t,i,o){"use strict";function n(t){return null==t}o.d(i,{isVoid:function(){return n}})},52742:function(t,i,o){"use strict";function n(t){return null!=t&&t===t.window}o.d(i,{isWindow:function(){return n}})},35278:function(t,i,o){"use strict";o.d(i,{colorToHex:function(){return n}});let n=t=>{if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;let i=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(t);if(!i)return"#000000";let o=parseInt(i[2],10),n=parseInt(i[3],10),r=(parseInt(i[4],10)|n<<8|o<<16).toString(16).toUpperCase();for(;r.length<6;)r="0"+r;return i[1]+"#"+r}},58149:function(t,i,o){"use strict";o.d(i,{colorToHex:function(){return n.colorToHex}});var n=o(35278)},32574:function(t,i,o){"use strict";o.d(i,{applyStyles:function(){return c}});var n=o(82758),r=o(2748),s=o(49055),a=o(76078);function l(t){return t.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(t,i,o)=>{switch(o.toLowerCase()){case"pt":return(1.328*parseFloat(i)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(i)).toFixed(0)+"px"}return t})}function c(t){let i=/<html(?:\s[^>]*)?>/i.exec(t);if(!i)return t;let o=(t=t.substring(i.index)).toLowerCase().lastIndexOf("</html>");-1!==o&&(t=t.substring(0,o+7));let c=n.globalDocument.createElement("iframe");c.style.display="none",n.globalDocument.body.appendChild(c);let d="";try{let i=c.contentDocument||(c.contentWindow?c.contentWindow.document:null);if(i){i.open(),i.write(t),i.close(),r.Dom.each(i.body,t=>{r.Dom.isElement(t)&&/mso-list:\s*ignore/i.test(t.getAttribute("style")||"")&&r.Dom.safeRemove(t)});try{for(let t=0;t<i.styleSheets.length;t+=1){let o=i.styleSheets[t].cssRules;for(let t=0;t<o.length;t+=1)""!==o[t].selectorText&&(0,a.$$)(o[t].selectorText,i.body).forEach(i=>{i.style.cssText=l(o[t].style.cssText+";"+i.style.cssText)})}}catch(t){if(!n.IS_PROD)throw t}r.Dom.each(i.body,t=>{if(r.Dom.isElement(t)){let i=t.getAttribute("style");i&&(t.style.cssText=l(i)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}}),d=i.firstChild?(0,s.trim)(i.body.innerHTML):""}}catch(t){}finally{r.Dom.safeRemove(c)}return d&&(t=d),(0,s.trim)(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(t,i,o){"use strict";o.d(i,{cleanFromWord:function(){return l}});var n=o(82758),r=o(2748),s=o(4510),a=o(49055);function l(t){-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let i="";try{let o=n.globalDocument.createElement("div");o.innerHTML=t;let a=[];o.firstChild&&r.Dom.each(o,t=>{if(t)switch(t.nodeType){case Node.ELEMENT_NODE:switch(t.nodeName){case"STYLE":case"LINK":case"META":a.push(t);break;case"W:SDT":case"W:SDTPR":case"FONT":r.Dom.unwrap(t);break;default:if(/mso-list:\s*ignore/i.test(t.getAttribute("style")||"")){a.push(t);break}(0,s.toArray)(t.attributes).forEach(i=>{-1===["src","href","rel","content"].indexOf(i.name.toLowerCase())&&t.removeAttribute(i.name)})}break;case Node.TEXT_NODE:break;default:a.push(t)}}),r.Dom.safeRemove.apply(null,a),i=o.innerHTML}catch(t){}return i&&(t=i),(t=t.split(/(\n)/).filter(a.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,r)}}r=s.prototype,s.prototype.controls={}},26992:function(t,i,o){"use strict";o.d(i,{Async:function(){return m}});var n=o(82758),r=o(91898),s=o(12045),a=o(23282),l=o(84767),c=o(72430),d=o(14773),u=o(70799),h=o(86068),p=o(38837),f=o(93661);class m{delay(t){return this.promise(i=>this.setTimeout(i,t))}setTimeout(t,i,...o){if(this.isDestructed)return 0;let n={};(0,h.isVoid)(i)&&(i=0),(0,l.isNumber)(i)||(i=(n=i).timeout||0),n.label&&this.clearLabel(n.label);let s=(0,r.setTimeout)(t,i,...o),a=n.label||s;return this.timers.set(a,s),this.__callbacks.set(a,t),s}updateTimeout(t,i){if((0,p.assert)(t&&this.timers.has(t),"Label does not exist"),!t||!this.timers.has(t))return null;let o=this.__callbacks.get(t);return(0,p.assert)((0,a.isFunction)(o),"Callback is not a function"),this.setTimeout(o,{label:t,timeout:i})}clearLabel(t){t&&this.timers.has(t)&&((0,r.clearTimeout)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,u.isString)(t))return this.clearLabel(t);(0,r.clearTimeout)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,i,o=!1){let n=0,l=!1,u=[],h=(...i)=>{if(!l){n=0;let o=t(...i);if(l=!0,u.length){let t=()=>{u.forEach(t=>t()),u.length=0};(0,d.isPromise)(o)?o.finally(t):t()}}},p=(...s)=>{l=!1,i?(!n&&o&&h(...s),(0,r.clearTimeout)(n),n=this.setTimeout(()=>h(...s),(0,a.isFunction)(i)?i():i),this.timers.set(t,n)):h(...s)};return(0,c.isPlainObject)(i)&&i.promisify?(...t)=>{let i=this.promise(t=>{u.push(t)}).catch(t=>{if((0,s.isAbortError)(t))return null;throw t});return p(...t),i}:p}microDebounce(t,i=!1){let o,n=!1,r=!0;return(...s)=>{if(o=s,n){r=!0;return}r=!0,i&&(r=!1,t(...o)),n=!0,this.__queueMicrotaskNative(()=>{n=!1,!this.isDestructed&&r&&t(...o)})}}throttle(t,i,o=!1){let n=null,r,s,l;return(...o)=>{(r=!0,l=o,i)?n||(s=()=>{r?(t(...l),r=!1,n=this.setTimeout(s,(0,a.isFunction)(i)?i():i),this.timers.set(s,n)):n=null})():t(...l)}}promise(t){let i=()=>{},o=new Promise((o,n)=>{i=()=>n((0,f.abort)("Abort async")),this.promisesRejections.add(i),t(o,n)});return!o.finally&&"u">typeof process&&!n.IS_ES_NEXT&&(o.finally=t=>(o.then(t).catch(t),o)),o.finally(()=>{this.promisesRejections.delete(i)}).catch(()=>null),o.rejectCallback=i,o}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise(i=>{t.then(t=>(i("fulfilled"),t),t=>{throw i("rejected"),t}),this.setTimeout(()=>{i("pending")},100)});let i={};return Promise.race([t,i]).then(t=>t===i?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(t,i={timeout:100}){let o=this.__requestIdleCallbackNative(t,i);return this.__requestsIdle.add(o),o}requestIdlePromise(t){return this.promise(i=>{let o=this.requestIdleCallback(()=>i(o),t)})}schedulerPostTask(t,i={delay:0,priority:"user-visible"}){let o=new AbortController;if(i.signal&&i.signal.addEventListener("abort",()=>o.abort()),this.__controllers.add(o),void 0!==globalThis.scheduler){let n=globalThis.scheduler.postTask(t,{...i,signal:o.signal});return n.finally(()=>{this.__controllers.delete(o)}).catch(()=>null),n}return this.promise((n,r)=>{let s=this.setTimeout(()=>{try{n(t())}catch(t){r(t)}this.__controllers.delete(o)},i.delay||1);o.signal.addEventListener("abort",()=>{this.clearTimeout(s),this.__controllers.delete(o),r((0,f.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(t){return this.__requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){let i=requestAnimationFrame(t);return this.__requestsRaf.add(i),i}cancelAnimationFrame(t){this.__requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.__requestsIdle.forEach(t=>this.cancelIdleCallback(t)),this.__requestsRaf.forEach(t=>this.cancelAnimationFrame(t)),this.__controllers.forEach(t=>t.abort()),this.timers.forEach(t=>(0,r.clearTimeout)(this.timers.get(t))),this.timers.clear(),this.promisesRejections.forEach(t=>t()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var t,i,o,n,r;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(t=null==queueMicrotask?void 0:queueMicrotask.bind(window))?t: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!=(o=null==(i=window.requestIdleCallback)?void 0:i.bind(window))?o:(t,i)=>{var o;let n=Date.now();return this.setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-n))})},null!=(o=null==i?void 0:i.timeout)?o:1)},this.__cancelIdleCallbackNative=null!=(r=null==(n=window.cancelIdleCallback)?void 0:n.bind(window))?r:t=>{this.clearTimeout(t)},this.isDestructed=!1}}},8884:function(t,i,o){"use strict";o.d(i,{Async:function(){return n.Async}});var n=o(26992)},4012:function(t,i,o){"use strict";o.d(i,{Component:function(){return c}});var n=o(8884),r=o(78213),s=o(580),a=o(21537);let l=new Map;class c{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(t,i,o){let n=[this.componentName];return t&&n.push("__"+(t=t.replace(/[^a-z0-9-]/gi,"-"))),i&&(n.push("_",i),n.push("_",(0,a.isVoid)(o)?"true":o.toString())),n.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,i){return(0,a.get)(t,i||this)}get isReady(){return this.componentStatus===r.STATUSES.ready}get isDestructed(){return this.componentStatus===r.STATUSES.destructed}get isInDestruct(){return r.STATUSES.beforeDestruct===this.componentStatus||r.STATUSES.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(r.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(r.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),l.get(this)&&l.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,i){if(t===this.__componentStatus)return;i===this&&(this.__componentStatus=t);let o=Object.getPrototypeOf(this);o&&(0,a.isFunction)(o.setStatusComponent)&&o.setStatusComponent(t,i);let n=l.get(this),r=null==n?void 0:n[t];r&&r.length&&r.forEach(t=>t(i))}hookStatus(t,i){let o=l.get(this);o||(o={},l.set(this,o)),o[t]||(o[t]=[]),o[t].push(i)}static isInstanceOf(t,i){return t instanceof i}constructor(){this.async=new n.Async,this.ownerWindow=window,this.__componentStatus=r.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,s.uniqueUid)()}}c.STATUSES=r.STATUSES},91907:function(t,i,o){"use strict";o.d(i,{Component:function(){return n.Component},STATUSES:function(){return r.STATUSES},ViewComponent:function(){return s.ViewComponent}});var n=o(4012),r=o(78213),s=o(80480)},78213:function(t,i,o){"use strict";o.d(i,{STATUSES:function(){return n}});let n={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},80480:function(t,i,o){"use strict";o.d(i,{ViewComponent:function(){return r}});var n=o(4012);class r extends n.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...i){return this.j.i18n(t,...i)}setParentView(t){return this.jodit=t,t.ow&&(this.ownerWindow=t.ow),t.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(t){super(),this.setParentView(t)}}},82758:function(t,i,o){"use strict";o.r(i),o.d(i,{ACCURACY:function(){return W},APP_VERSION:function(){return n},BASE_PATH:function(){return ef},BASE_PATH_IS_MIN:function(){return em},BR:function(){return G},CLIPBOARD_ID:function(){return ev},COMMAND_KEYS:function(){return $},EMULATE_DBLCLICK_TIMEOUT:function(){return eo},ES:function(){return r},FAT_MODE:function(){return d},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return j},INSERT_AS_HTML:function(){return en},INSERT_AS_TEXT:function(){return es},INSERT_CLEAR_HTML:function(){return er},INSERT_ONLY_TEXT:function(){return ea},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return g},INVISIBLE_SPACE_REG_EXP_END:function(){return b},INVISIBLE_SPACE_REG_EXP_START:function(){return y},IS_BLOCK:function(){return x},IS_ES_MODERN:function(){return s},IS_ES_NEXT:function(){return a},IS_IE:function(){return Z},IS_INLINE:function(){return I},IS_MAC:function(){return ec},IS_PROD:function(){return l},IS_TEST:function(){return c},KEY_ALIASES:function(){return ed},KEY_ALT:function(){return z},KEY_BACKSPACE:function(){return D},KEY_DELETE:function(){return U},KEY_DOWN:function(){return F},KEY_ENTER:function(){return M},KEY_ESC:function(){return R},KEY_F3:function(){return q},KEY_LEFT:function(){return B},KEY_META:function(){return P},KEY_RIGHT:function(){return O},KEY_SPACE:function(){return H},KEY_TAB:function(){return L},KEY_UP:function(){return N},LIST_TAGS:function(){return E},MARKER_CLASS:function(){return ei},MODE_SOURCE:function(){return J},MODE_SPLIT:function(){return X},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return m},NEARBY:function(){return V},NO_EMPTY_TAGS:function(){return A},PARAGRAPH:function(){return K},PASSIVE_EVENTS:function(){return ew},SAFE_COUNT_CHANGE_CALL:function(){return el},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return ey},SPACE_REG_EXP:function(){return w},SPACE_REG_EXP_END:function(){return C},SPACE_REG_EXP_START:function(){return _},TEMP_ATTR:function(){return eg},TEXT_HTML:function(){return ee},TEXT_PLAIN:function(){return Q},TEXT_RTF:function(){return et},TOKENS:function(){return p},globalDocument:function(){return S},globalWindow:function(){return k},lang:function(){return eb}});let n="4.13.45",r="es2021",s=!0,a=!0,l=!0,c=!1,d=!0,u="https://xdsoft.net/jodit/pro/",h=()=>c=!0,p={},f="\uFEFF",m=" ",g=()=>/[\uFEFF]/g,b=()=>/[\uFEFF]+$/g,y=()=>/^[\uFEFF]+/g,w=()=>/[\s\n\t\r\uFEFF\u200b]+/g,_=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,C=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,k="u">typeof window?window:void 0,S="u">typeof document?document:void 0,x=/^(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,I=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,E=new Set(["ul","ol"]),T=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],j=new Set([...T,"br","hr"]),A=new Set(T),P="Meta",D="Backspace",L="Tab",M="Enter",R="Escape",z="Alt",B="ArrowLeft",N="ArrowUp",O="ArrowRight",F="ArrowDown",H="Space",U="Delete",q="F3",V=5,W=10,$=[P,D,U,N,F,O,B,M,R,q,L],G="br",K="p",Y=1,J=2,X=3,Z="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),Q=Z?"text":"text/plain",ee=Z?"html":"text/html",et=Z?"rtf":"text/rtf",ei="jodit-selection_marker",eo=300,en="insert_as_html",er="insert_clear_html",es="insert_as_text",ea="insert_only_text",el=10,ec=void 0!==k&&/Mac|iPod|iPhone|iPad/.test(k.navigator.platform),ed={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ec?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},eu=t=>{let i=t.split("/");return/\.js/.test(i[i.length-1])?{basePath:i.slice(0,i.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:eh,isMin:ep}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=S.currentScript;if(t)return eu(t.src);let i=S.querySelectorAll("script[src]");return i&&i.length?eu(i[i.length-1].src):eu(k.location.href)})(),ef=eh,em=ep,eg="data-jodit-temp",eb={},ev="clipboard",ey="source-consumer",ew=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},20218:function(t,i,o){"use strict";o.d(i,{Create:function(){return l}});var n=o(82758),r=o(2748),s=o(21537),a=o(38837);class l{get doc(){return(0,s.isFunction)(this.document)?this.document():this.document}element(t,i,o){let n=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(n),i&&((0,s.isPlainObject)(i)?(0,s.attr)(n,i):o=i),o&&(0,s.asArray)(o).forEach(t=>n.appendChild((0,s.isString)(t)?this.fromHTML(t):t)),n}div(t,i,o){let n=this.element("div",i,o);return t&&(n.className=t),n}sandbox(){var t;let i=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(i);let o=null==(t=i.contentWindow)?void 0:t.document;if((0,a.assert)(o,"iframe.contentWindow.document"),!o)throw Error("Iframe error");return o.open(),o.write("<!DOCTYPE html><html><head></head><body></body></html>"),o.close(),[o.body,i]}span(t,i,o){let n=this.element("span",i,o);return t&&(n.className=t),n}a(t,i,o){let n=this.element("a",i,o);return t&&(n.className=t),n}text(t){return this.doc.createTextNode(t)}fake(){return this.text(n.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,i){let o=this.div();o.innerHTML=t.toString();let n=o.firstChild===o.lastChild&&o.firstChild?o.firstChild:o;if(r.Dom.safeRemove(n),i){let t=(0,s.refs)(n);Object.keys(i).forEach(o=>{let n=t[o];n&&!1===i[o]&&r.Dom.hide(n)})}return n}applyCreateAttributes(t){if(this.createAttributes){let i=this.createAttributes;if(i&&i[t.tagName.toLowerCase()]){let o=i[t.tagName.toLowerCase()];(0,s.isFunction)(o)?o(t):(0,s.isPlainObject)(o)&&(0,s.attr)(t,o)}}}constructor(t,i){this.document=t,this.createAttributes=i}}},12060:function(t,i,o){"use strict";o.d(i,{Create:function(){return n.Create}});var n=o(20218)},45219:function(t,i,o){"use strict";o.d(i,{autobind:function(){return r}});var n=o(23282);function r(t,i,o){if(!(0,n.isFunction)(o.value))throw TypeError(`@autobind can only be applied to methods, but "${i}" is not a function`);let r=o.value;return{configurable:!0,get(){let t=r.bind(this);return Object.defineProperty(this,i,{value:t,configurable:!0,writable:!0}),t}}}},33433:function(t,i,o){"use strict";o.d(i,{cache:function(){return c},cacheHTML:function(){return d},cached:function(){return l}});var n=o(78213),r=o(2748),s=o(27613),a=o(82760);function l(t,i){let o=Object.getOwnPropertyDescriptor(t,i);return!o||(0,s.isFunction)(o.get)?null:o.value}function c(t,i,o){let n=o.get;if(!n)throw(0,a.error)("Getter property descriptor expected");o.get=function(){let t=n.call(this);return t&&!0===t.noCache||Object.defineProperty(this,i,{configurable:o.configurable,enumerable:o.enumerable,writable:!1,value:t}),t}}function d(t,i,o){let l=o.value;if(!(0,s.isFunction)(l))throw(0,a.error)("Handler must be a Function");let c=!0,d=new WeakMap;o.value=function(...t){var i;if(c&&d.has(this.constructor))return null==(i=d.get(this.constructor))?void 0:i.cloneNode(!0);let o=l.apply(this,t);return c&&r.Dom.isElement(o)&&d.set(this.constructor,o),c?o.cloneNode(!0):o},t.hookStatus(n.STATUSES.ready,t=>{c=!!((0,s.isViewObject)(t)?t:t.jodit).options.cache})}},87325:function(t,i,o){"use strict";o.d(i,{component:function(){return a},getComponentClass:function(){return l}});var n=o(82758),r=o(80568);let s=new Map;function a(t){class i extends t{constructor(...t){super(...t),this.constructor===i&&(this instanceof i||Object.setPrototypeOf(this,i.prototype),this.setStatus("ready"))}}let o=(0,r.getClassName)(t.prototype);if(s.has(o)&&!n.IS_PROD)throw Error(`Component with name "${o}" is already registered`);return s.set(o,i),i}function l(t){return s.get(t)}},81577:function(t,i,o){"use strict";o.d(i,{debounce:function(){return l},throttle:function(){return c}});var n=o(91907),r=o(27613),s=o(38837),a=o(89890);function l(t,i=!1,o="debounce"){return(l,c)=>{let d=l[c];if(!(0,r.isFunction)(d))throw(0,a.error)("Handler must be a Function");return l.hookStatus(n.STATUSES.ready,n=>{let{async:a}=n;(0,s.assert)(null!=a,`Component ${n.componentName||n.constructor.name} should have "async:IAsync" field`);let l=(0,r.isFunction)(t)?t(n):t,d=(0,r.isNumber)(l)||(0,r.isPlainObject)(l)?l:n.defaultTimeout;Object.defineProperty(n,c,{configurable:!0,value:a[o](n[c].bind(n),d,i)})}),{configurable:!0,get(){return d.bind(this)}}}}function c(t,i=!1){return l(t,i,"throttle")}},55153:function(t,i,o){"use strict";o.d(i,{derive:function(){return r}});var n=o(23282);function r(...t){return i=>{let o=i.prototype;for(let i=0;i<t.length;i++){let r=t[i],s=Object.getOwnPropertyNames(r.prototype);for(let t=0;t<s.length;t++){let i=s[t],a=Object.getOwnPropertyDescriptor(r.prototype,i);null!=a&&(0,n.isFunction)(a.value)&&!(0,n.isFunction)(o[i])&&Object.defineProperty(o,i,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return a.value.call(this,...t)}})}}}}},97357:function(t,i,o){"use strict";o.d(i,{hook:function(){return s}});var n=o(23282),r=o(89890);function s(t){return(i,o)=>{if(!(0,n.isFunction)(i[o]))throw(0,r.error)("Handler must be a Function");i.hookStatus(t,t=>{t[o].call(t)})}}},78927:function(t,i,o){"use strict";o.d(i,{idle:function(){return a}});var n=o(91907),r=o(23282),s=o(89890);function a(){return(t,i)=>{if(!(0,r.isFunction)(t[i]))throw(0,s.error)("Handler must be a Function");t.hookStatus(n.STATUSES.ready,t=>{let{async:o}=t,n=t[i];t[i]=(...i)=>o.requestIdleCallback(n.bind(t,...i))})}}},65478:function(t,i,o){"use strict";o.r(i),o.d(i,{autobind:function(){return n.autobind},cache:function(){return r.cache},cacheHTML:function(){return r.cacheHTML},cached:function(){return r.cached},component:function(){return s.component},debounce:function(){return a.debounce},derive:function(){return l.derive},getComponentClass:function(){return s.getComponentClass},hook:function(){return c.hook},idle:function(){return d.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return a.throttle},wait:function(){return p.wait},watch:function(){return f.watch}});var n=o(45219),r=o(33433),s=o(87325),a=o(81577),l=o(55153),c=o(97357),d=o(78927),u=o(31589),h=o(53213),p=o(13525),f=o(37133)},31589:function(t,i,o){"use strict";o.d(i,{nonenumerable:function(){return n}});let n=(t,i)=>{!1!==(Object.getOwnPropertyDescriptor(t,i)||{}).enumerable&&Object.defineProperty(t,i,{enumerable:!1,set(t){Object.defineProperty(this,i,{enumerable:!1,writable:!0,value:t})}})}},53213:function(t,i,o){"use strict";o.d(i,{persistent:function(){return s}});var n=o(78213),r=o(39955);function s(t,i){t.hookStatus(n.STATUSES.ready,t=>{let o=(0,r.isViewObject)(t)?t:t.jodit,n=`${o.options.namespace}${t.componentName}_prop_${i}`,s=t[i];Object.defineProperty(t,i,{get(){var t;return null!=(t=o.storage.get(n))?t:s},set(t){o.storage.set(n,t)}})})}},13525:function(t,i,o){"use strict";o.d(i,{wait:function(){return a}});var n=o(78213),r=o(23282),s=o(89890);function a(t){return(i,o)=>{let a=i[o];if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");i.hookStatus(n.STATUSES.ready,i=>{let{async:n}=i,r=i[o],s=0;Object.defineProperty(i,o,{configurable:!0,value:function o(...a){n.clearTimeout(s),t(i)?r.apply(i,a):s=n.setTimeout(()=>o(...a),10)}})})}}},37133:function(t,i,o){"use strict";o.d(i,{watch:function(){return h}});var n=o(78213),r=o(73026),s=o(46559),a=o(23282),l=o(72430),c=o(39955),d=o(89890),u=o(37790);function h(t,i){return(o,h)=>{var p;if(!(0,a.isFunction)(o[h]))throw(0,d.error)("Handler must be a Function");let f=null==(p=null==i?void 0:i.immediately)||p,m=null==i?void 0:i.context,g=i=>{let n=(0,c.isViewObject)(i)?i:i.jodit,d=(t,...o)=>{if(!i.isInDestruct)return i[h](t,...o)};f||(d=i.async.microDebounce(d,!0)),(0,s.splitArray)(t).forEach(t=>{if(/:/.test(t)){let[o,r]=t.split(":"),s=m;o.length&&(s=i.get(o)),(0,a.isFunction)(s)&&(s=s(i)),n.events.on(s||i,r,d),s||n.events.on(r,d),i.hookStatus("beforeDestruct",()=>{n.events.off(s||i,r,d).off(r,d)});return}let s=t.split("."),[c]=s,h=s.slice(1),p=i[c];(0,l.isPlainObject)(p)&&(0,r.observable)(p).on("change."+h.join("."),d);let f=(0,u.getPropertyDescriptor)(o,c);Object.defineProperty(i,c,{configurable:!0,set(t){let o=p;o!==t&&(p=t,f&&f.set&&f.set.call(i,t),(0,l.isPlainObject)(p)&&(p=(0,r.observable)(p)).on("change."+h.join("."),d),d(c,o,p))},get:()=>f&&f.get?f.get.call(i):p})})};(0,a.isFunction)(o.hookStatus)?o.hookStatus(n.STATUSES.ready,g):g(o)}}},2748:function(t,i,o){"use strict";o.d(i,{Dom:function(){return _}});var n=o(82758),r=o(4510),s=o(68345),a=o(23282),l=o(58487),c=o(42320),d=o(70799),u=o(86068),h=o(49055),p=o(38837),f=o(29960),m=o(41180),g=o(86583),b=o(89890),y=o(37790);let w=RegExp(`<([a-z]+)[^>]+${n.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class _{static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapNextInline(t,i,o){let n,r=t;o.s.save();let s=!1;do s=!1,(n=r.nextSibling)&&!_.isBlock(n)&&!_.isTag(n,"br")&&(s=!0,r=n);while(s)return _.__wrapElements(i,o,t,r)}static __wrapElements(t,i,o,n){let r=(0,d.isString)(t)?i.createInside.element(t):t;o.parentNode&&o.parentNode.insertBefore(r,o);let s=o;for(;s&&(s=o.nextSibling,r.appendChild(o),o!==n&&s);)o=s;return i.s.restore(),r}static wrapInline(t,i,o){let n,r=t,s=t;o.s.save();let a=!1;do a=!1,(n=r.previousSibling)&&!_.isBlock(n)&&(a=!0,r=n);while(a)do a=!1,(n=s.nextSibling)&&!_.isBlock(n)&&(a=!0,s=n);while(a)return _.__wrapElements(i,o,r,s)}static wrap(t,i,o){let n=(0,d.isString)(i)?o.element(i):i;if(_.isNode(t)){if(!t.parentNode)throw(0,b.error)("Element should be in DOM");t.parentNode.insertBefore(n,t),n.appendChild(t)}else{let i=t.extractContents();t.insertNode(n),n.appendChild(i)}return n}static unwrap(t){let i=t.parentNode;if(i){for(;t.firstChild;)i.insertBefore(t.firstChild,t);_.safeRemove(t)}}static between(t,i,o){let n=t;for(;n&&n!==i&&!(t!==n&&o(n));){let t=n.firstChild||n.nextSibling;if(!t){for(;n&&!n.nextSibling;)if((n=n.parentNode)===i)return;t=null==n?void 0:n.nextSibling}n=t}}static replace(t,i,o,n=!1,s=!1){let a;if((0,l.isHTML)(i)&&((0,p.assert)(o,"Need create instance for new tag"),i=o.fromHTML(i)),(0,d.isString)(i)?((0,p.assert)(o,"Need create instance for new tag"),a=o.element(i)):a=i,!s)for(;t.firstChild;)a.appendChild(t.firstChild);return n&&_.isElement(t)&&_.isElement(a)&&(0,r.toArray)(t.attributes).forEach(t=>{a.setAttribute(t.name,t.value)}),t.parentNode&&t.parentNode.replaceChild(a,t),a}static isEmptyTextNode(t){return _.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return _.each(t,t=>_.isEmptyTextNode(t))}static isContentEditable(t,i){return _.isNode(t)&&!_.closest(t,t=>_.isElement(t)&&"false"===t.getAttribute("contenteditable"),i)}static isEmpty(t,i=n.NO_EMPTY_TAGS){let o;if(!t)return!0;o=(0,a.isFunction)(i)?i:t=>i.has(t.nodeName.toLowerCase());let r=t=>null==t.nodeValue||0===(0,h.trim)(t.nodeValue).length;return _.isText(t)?r(t):!(_.isElement(t)&&o(t))&&_.each(t,t=>{if(_.isText(t)&&!r(t)||_.isElement(t)&&o(t))return!1})}static isNode(t){return!!(t&&(0,d.isString)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,a.isFunction)(t.appendChild))}static isCell(t){return _.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return _.isTag(t,n.LIST_TAGS)}static isLeaf(t){return _.isTag(t,"li")}static isImage(t){return _.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,u.isVoid)(t)&&"object"==typeof t&&_.isNode(t)&&n.IS_BLOCK.test(t.nodeName)}static isText(t){return!!(t&&t.nodeType===Node.TEXT_NODE)}static isComment(t){return!!(t&&t.nodeType===Node.COMMENT_NODE)}static isElement(t){return!!_.isNode(t)&&t.nodeType===Node.ELEMENT_NODE}static isFragment(t){return!!_.isNode(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(t){var i;if(!_.isNode(t))return!1;let o=null==(i=t.ownerDocument)?void 0:i.defaultView;return t instanceof(o?o.HTMLElement:HTMLElement)}static isInlineBlock(t){return _.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf((0,m.css)(t,"display").toString())}static canSplitBlock(t){return!(0,u.isVoid)(t)&&_.isHTMLElement(t)&&_.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static first(t,i){let o=null==t?void 0:t.firstChild;if(!o)return null;do{if(i(o))return o;let n=o.firstChild;if(n||(n=o.nextSibling),!n&&o.parentNode!==t){do o=o.parentNode;while(o&&!(null==o?void 0:o.nextSibling)&&o.parentNode!==t)n=null==o?void 0:o.nextSibling}o=n}while(o)return null}static last(t,i){let o=null==t?void 0:t.lastChild;if(!o)return null;do{if(i(o))return o;let n=o.lastChild;if(n||(n=o.previousSibling),!n&&o.parentNode!==t){do o=o.parentNode;while(o&&!(null==o?void 0:o.previousSibling)&&o.parentNode!==t)n=null==o?void 0:o.previousSibling}o=n}while(o)return null}static prev(t,i,o,n=!0){return _.find(t,i,o,!1,n)}static next(t,i,o,n=!0){return _.find(t,i,o,!0,n)}static prevWithClass(t,i){return _.prev(t,t=>_.isElement(t)&&t.classList.contains(i),t.parentNode)}static nextWithClass(t,i){return _.next(t,t=>_.isElement(t)&&t.classList.contains(i),t.parentNode)}static find(t,i,o,n=!0,r=!0){let s=this.nextGen(t,o,n,r),a=s.next();for(;!a.done;){if(i(a.value))return a.value;a=s.next()}return null}static*nextGen(t,i,o=!0,n=!0){let r=[],s=t;do{let i=o?s.nextSibling:s.previousSibling;for(;i;)r.push(i),i=o?i.nextSibling:i.previousSibling;r.reverse(),yield*this.runInStack(t,r,o,n),s=s.parentNode}while(s&&s!==i)return null}static each(t,i,o=!0){let n=this.eachGen(t,o),r=n.next();for(;!r.done;){if(!1===i(r.value))return!1;r=n.next()}return!0}static eachGen(t,i=!0){return this.runInStack(t,[t],i)}static*runInStack(t,i,o,n=!0){for(;i.length;){let r=i.pop();if(n){let t=o?r.lastChild:r.firstChild;for(;t;)i.push(t),t=o?t.previousSibling:t.nextSibling}t!==r&&(yield r)}}static findWithCurrent(t,i,o,n="nextSibling",r="firstChild"){let s=t;do{if(i(s))return s||null;if(r&&s&&s[r]){let t=_.findWithCurrent(s[r],i,s,n,r);if(t)return t}for(;s&&!s[n]&&s!==o;)s=s.parentNode;s&&s[n]&&s!==o&&(s=s[n])}while(s&&s!==o)return null}static findSibling(t,i=!0,o=t=>!_.isEmptyTextNode(t)){let n=_.sibling(t,i);for(;n&&!o(n);)n=_.sibling(n,i);return n&&o(n)?n:null}static findNotEmptySibling(t,i){return _.findSibling(t,i,t=>{var i;return!_.isEmptyTextNode(t)&&!!(!_.isText(t)||(null==(i=t.nodeValue)?void 0:i.length)&&(0,h.trim)(t.nodeValue))})}static findNotEmptyNeighbor(t,i,o){return(0,y.call)(i?_.prev:_.next,t,t=>!!(t&&(!(_.isText(t)||_.isComment(t))||(0,h.trim)((null==t?void 0:t.nodeValue)||"").length)),o)}static sibling(t,i){return i?t.previousSibling:t.nextSibling}static up(t,i,o,n=!1){let r=t;if(!r)return null;do{if(i(r))return r;if(r===o||!r.parentNode)break;r=r.parentNode}while(r&&r!==o)return r===o&&n&&i(r)?r:null}static closest(t,i,o){let n,r=t=>t.toLowerCase();if((0,a.isFunction)(i))n=i;else if((0,s.isArray)(i)||(0,c.isSet)(i)){let t=(0,c.isSet)(i)?i:new Set(i.map(r));n=i=>!!(i&&t.has(r(i.nodeName)))}else n=t=>!!(t&&r(i)===r(t.nodeName));return _.up(t,n,o)}static furthest(t,i,o){let n=null,r=null==t?void 0:t.parentElement;for(;r&&r!==o;)i(r)&&(n=r),r=null==r?void 0:r.parentElement;return n}static appendChildFirst(t,i){let o=t.firstChild;o?o!==i&&t.insertBefore(i,o):t.appendChild(i)}static after(t,i){let{parentNode:o}=t;o&&(o.lastChild===t?o.appendChild(i):o.insertBefore(i,t.nextSibling))}static before(t,i){let{parentNode:o}=t;o&&o.insertBefore(i,t)}static prepend(t,i){t.insertBefore(i,t.firstChild)}static append(t,i){(0,s.isArray)(i)?i.forEach(i=>{this.append(t,i)}):t.appendChild(i)}static moveContent(t,i,o=!1,s=()=>!0){let a=(t.ownerDocument||n.globalDocument).createDocumentFragment();(0,r.toArray)(t.childNodes).filter(t=>!!s(t)||(_.safeRemove(t),!1)).forEach(t=>{a.appendChild(t)}),o&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a)}static isOrContains(t,i,o=!1){return t===i?!o:!!(i&&t&&this.up(i,i=>i===t,t,!0))}static safeRemove(...t){t.forEach(t=>_.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t))}static safeInsertNode(t,i){t.collapsed||t.deleteContents();let o=_.isFragment(i)?i.lastChild:i;t.startContainer===t.endContainer&&t.collapsed&&_.isTag(t.startContainer,n.INSEPARABLE_TAGS)?_.after(t.startContainer,i):(t.insertNode(i),o&&t.setStartBefore(o)),t.collapse(!0),[i.nextSibling,i.previousSibling].forEach(t=>_.isText(t)&&!t.nodeValue&&_.safeRemove(t))}static hide(t){t&&((0,g.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;let i=(0,g.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=i||"")}static isTag(t,i){if(Array.isArray(i))throw TypeError("Dom.isTag does not support array");if(!this.isElement(t))return!1;let o=t.tagName.toLowerCase();return i instanceof Set?i.has(o)||i.has(t.tagName.toUpperCase()):o===i||t.tagName.toUpperCase()===i}static markTemporary(t,i){return i&&(0,f.attr)(t,i),(0,f.attr)(t,n.TEMP_ATTR,!0),t}static isTemporary(t){return!!_.isElement(t)&&(_.isMarker(t)||"true"===(0,f.attr)(t,n.TEMP_ATTR))}static isMarker(t){return _.isNode(t)&&_.isTag(t,"span")&&t.hasAttribute("data-"+n.MARKER_CLASS)}static replaceTemporaryFromString(t){return t.replace(w,"$2")}static temporaryList(t){return(0,r.toArray)(t.querySelectorAll(`[${n.TEMP_ATTR}]`))}constructor(){throw Error("Dom is static module")}}},22732:function(t,i,o){"use strict";o.d(i,{Dom:function(){return n.Dom},LazyWalker:function(){return r.LazyWalker}});var n=o(2748),r=o(70071)},70071:function(t,i,o){"use strict";o.d(i,{LazyWalker:function(){return a}});var n=o(45219),r=o(2748),s=o(72757);class a extends s.Eventify{setWork(t){return this.isWorked?this.break():this.stop(),this.workNodes=r.Dom.eachGen(t,!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(t){this.isWorked&&(this.stop(),this.emit("break",t))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){var t;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(t=this.__schedulerController)||t.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){var t;if(this.workNodes){this.isWorked=!0;let i=0,o=null!=(t=this.options.timeoutChunkSize)?t:50;for(;!this.isFinished&&i<o;){let t=this.workNodes.next();if(i+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(t){var i;return!!t&&(void 0===this.options.whatToShow||t.nodeType===this.options.whatToShow)&&null!=(i=this.emit("visit",t))&&i}constructor(t,i={}){super(),this.async=t,this.options=i,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.__schedulerController=null}}!function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);s>3&&a&&Object.defineProperty(i,o,a)}([n.autobind],a.prototype,"__workPerform",null)},98220:function(t,i,o){"use strict";o.d(i,{EventEmitter:function(){return u}});var n=o(82758),r=o(46559),s=o(68345),a=o(23282),l=o(70799),c=o(89890),d=o(15738);class u{mute(t){return this.__mutedEvents.add(null!=t?t:"*"),this}isMuted(t){return!!(t&&this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(null!=t?t:"*"),this}__eachEvent(t,i){(0,r.splitArray)(t).map(t=>t.trim()).forEach(t=>{let o=t.split("."),n=o[1]||d.defaultNameSpace;i.call(this,o[0],n)})}__getStore(t){if(!t)throw(0,c.error)("Need subject");if(void 0===t[this.__key]){let i=new d.EventHandlersStore;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:i})}return t[this.__key]}__removeStoreFromSubject(t){void 0!==t[this.__key]&&delete t[this.__key]}__triggerNativeEvent(t,i){let o=this.__doc.createEvent("HTMLEvents");(0,l.isString)(i)?o.initEvent(i,!0,!0):(o.initEvent(i.type,i.bubbles,i.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(t=>{Object.defineProperty(o,t,{value:i[t],enumerable:!0})}),Object.defineProperty(o,"originalEvent",{value:i,enumerable:!0})),t.dispatchEvent(o)}get current(){return this.currents[this.currents.length-1]}on(t,i,o,r){let d,u,p,f;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(d=this,u=t,p=i,f=o):(d=t,u=i,p=o,f=r),!((0,l.isString)(u)||(0,l.isStringArray)(u))||0===u.length)throw(0,c.error)("Need events names");if(!(0,a.isFunction)(p))throw(0,c.error)("Need event handler");if((0,s.isArray)(d))return d.forEach(t=>{this.on(t,u,p,f)}),this;let m=d,g=this.__getStore(m),b=this,y=function(t,...i){if(!b.isMuted(t))return p&&p.call(this,...i)};return h(m)&&(y=function(t){if(!b.isMuted(t.type)&&(b.__prepareEvent(t),p&&!1===p.call(this,t)))return t.preventDefault(),t.stopImmediatePropagation(),!1}),this.__eachEvent(u,(t,i)=>{var o,r;if(0===t.length)throw(0,c.error)("Need event name");if(!1===g.indexOf(t,i,p)){let s={event:t,originalCallback:p,syntheticCallback:y};if(g.set(t,i,s,null==f?void 0:f.top),h(m)){let i=n.PASSIVE_EVENTS.has(t)?{passive:!0,capture:null!=(o=null==f?void 0:f.capture)&&o}:null!=(r=null==f?void 0:f.capture)&&r;y.options=i,m.addEventListener(t,y,i),this.__memoryDOMSubjectToHandler(m,y)}}}),this}__memoryDOMSubjectToHandler(t,i){let o=this.__domEventsMap.get(t)||new Set;o.add(i),this.__domEventsMap.set(t,o)}__unmemoryDOMSubjectToHandler(t,i){let o=this.__domEventsMap,n=o.get(t)||new Set;n.delete(i),n.size?o.set(t,n):o.delete(t)}one(t,i,o,n){let r,s,a,c;(0,l.isString)(t)||(0,l.isStringArray)(t)?(r=this,s=t,a=i,c=o):(r=t,s=i,a=o,c=n);let d=(...t)=>(this.off(r,s,d),a(...t));return this.on(r,s,d,c),this}off(t,i,o){let n,r,c;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(n=this,r=t,c=i):(n=t,r=i,c=o),(0,s.isArray)(n))return n.forEach(t=>{this.off(t,r,c)}),this;let u=n,p=this.__getStore(u);if(!((0,l.isString)(r)||(0,l.isStringArray)(r))||0===r.length)return p.namespaces().forEach(t=>{this.off(u,"."+t)}),this.__removeStoreFromSubject(u),this;let f=t=>{var i;h(u)&&(u.removeEventListener(t.event,t.syntheticCallback,null!=(i=t.syntheticCallback.options)&&i),this.__unmemoryDOMSubjectToHandler(u,t.syntheticCallback))},m=(t,i)=>{if(""===t)return void p.events(i).forEach(t=>{""!==t&&m(t,i)});let o=p.get(t,i);if(o&&o.length)if((0,a.isFunction)(c)){let n=p.indexOf(t,i,c);!1!==n&&(f(o[n]),o.splice(n,1),o.length||p.clearEvents(i,t))}else o.forEach(f),o.length=0,p.clearEvents(i,t)};return this.__eachEvent(r,(t,i)=>{i===d.defaultNameSpace?p.namespaces().forEach(i=>{m(t,i)}):m(t,i)}),p.isEmpty()&&this.__removeStoreFromSubject(u),this}stopPropagation(t,i){let o=(0,l.isString)(t)?this:t,n=(0,l.isString)(t)?t:i;if("string"!=typeof n)throw(0,c.error)("Need event names");let r=this.__getStore(o);this.__eachEvent(n,(t,i)=>{let n=r.get(t,i);n&&this.__stopped.push(n),i===d.defaultNameSpace&&r.namespaces(!0).forEach(i=>this.stopPropagation(o,t+"."+i))})}__removeStop(t){if(t){let i=this.__stopped.indexOf(t);-1!==i&&this.__stopped.splice(0,i+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,i,...o){let n,r,s=(0,l.isString)(t)?this:t,a=(0,l.isString)(t)?t:i,u=(0,l.isString)(t)?[i,...o]:o;if(!h(s)&&!(0,l.isString)(a))throw(0,c.error)("Need events names");let p=this.__getStore(s);return!(0,l.isString)(a)&&h(s)?this.__triggerNativeEvent(s,i):this.__eachEvent(a,(t,i)=>{if(h(s))this.__triggerNativeEvent(s,t);else{let o=p.get(t,i);if(o)try{[...o].every(i=>!this.__isStopped(o)&&(this.currents.push(t),r=i.syntheticCallback.call(s,t,...u),this.currents.pop(),void 0!==r&&(n=r),!0))}finally{this.__removeStop(o)}i!==d.defaultNameSpace||h(s)||p.namespaces().filter(t=>t!==i).forEach(i=>{let o=this.fire.apply(this,[s,t+"."+i,...u]);void 0!==o&&(n=o)})}}),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((t,i)=>{this.off(i)}),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(t){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=n.globalDocument,this.__prepareEvent=t=>{!t.cancelBubble&&(t.composed&&(0,a.isFunction)(t.composedPath)&&t.composedPath()[0]&&Object.defineProperty(t,"target",{value:t.composedPath()[0],configurable:!0,enumerable:!0}),t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(i=>{Object.defineProperty(t,i,{value:t.changedTouches[0][i],configurable:!0,enumerable:!0})}),t.originalEvent||(t.originalEvent=t),"paste"===t.type&&void 0===t.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(t,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,t&&(this.__doc=t),this.__key+=new Date().getTime()}}function h(t){return t&&(0,a.isFunction)(t.addEventListener)}},72757:function(t,i,o){"use strict";o.d(i,{Eventify:function(){return n}});class n{on(t,i){var o;return this.__map.has(t)||this.__map.set(t,new Set),null==(o=this.__map.get(t))||o.add(i),this}off(t,i){var o;return this.__map.has(t)&&(null==(o=this.__map.get(t))||o.delete(i)),this}destruct(){this.__map.clear()}emit(t,...i){var o;let n;return this.__map.has(t)&&(null==(o=this.__map.get(t))||o.forEach(t=>{n=t(...i)})),n}constructor(){this.__map=new Map}}},57012:function(t,i,o){"use strict";o.d(i,{eventEmitter:function(){return n}});let n=new(o(98220)).EventEmitter},3827:function(t,i,o){"use strict";o.d(i,{EventEmitter:function(){return n.EventEmitter},EventHandlersStore:function(){return a.EventHandlersStore},Eventify:function(){return r.Eventify},defaultNameSpace:function(){return a.defaultNameSpace},observable:function(){return s.observable}});var n=o(98220),r=o(72757),s=o(73026),a=o(15738)},73026:function(t,i,o){"use strict";o.d(i,{observable:function(){return d}});var n=o(68345),r=o(59292),s=o(72430),a=o(37790);let l=Symbol("observable-object");function c(t){return void 0!==t[l]}function d(t){if(c(t))return t;let i={},o={},d=(i,r)=>((0,n.isArray)(i)?i.map(t=>d(t,r)):(o[i]||(o[i]=[]),o[i].push(r)),t),u=(r,...s)=>{if((0,n.isArray)(r))return void r.map(t=>u(t,...s));try{!i[r]&&o[r]&&(i[r]=!0,o[r].forEach(i=>i.call(t,...s)))}finally{i[r]=!1}},h=(i,o=[])=>{let n={};c(i)||(Object.defineProperty(i,l,{enumerable:!1,value:!0}),Object.keys(i).forEach(l=>{let c=o.concat(l).filter(t=>t.length);n[l]=i[l];let d=(0,a.getPropertyDescriptor)(i,l);Object.defineProperty(i,l,{set(i){let o=n[l];if(!(0,r.isFastEqual)(n[l],i)){u(["beforeChange","beforeChange."+c.join(".")],l,i),(0,s.isPlainObject)(i)&&h(i,c),d&&d.set?d.set.call(t,i):n[l]=i;let r=[];u(["change",...c.reduce((t,i)=>(r.push(i),t.push("change."+r.join(".")),t),[])],c.join("."),o,(null==i?void 0:i.valueOf)?i.valueOf():i)}},get:()=>d&&d.get?d.get.call(t):n[l],enumerable:!0,configurable:!0}),(0,s.isPlainObject)(n[l])&&h(n[l],c)}),Object.defineProperty(t,"on",{value:d}))};return h(t),t}},15738:function(t,i,o){"use strict";o.d(i,{EventHandlersStore:function(){return a},defaultNameSpace:function(){return s}});var n=o(4510),r=o(38837);let s="JoditEventDefaultNamespace";class a{get(t,i){if(this.__store.has(i)){let o=this.__store.get(i);return(0,r.assert)(o,"-"),o[t]}}indexOf(t,i,o){let n=this.get(t,i);if(n){for(let t=0;t<n.length;t+=1)if(n[t].originalCallback===o)return t}return!1}namespaces(t=!1){let i=(0,n.toArray)(this.__store.keys());return t?i.filter(t=>t!==s):i}events(t){let i=this.__store.get(t);return i?Object.keys(i):[]}set(t,i,o,n=!1){let r=this.__store.get(i);r||(r={},this.__store.set(i,r)),void 0===r[t]&&(r[t]=[]),n?r[t].unshift(o):r[t].push(o)}clear(){this.__store.clear()}clearEvents(t,i){let o=this.__store.get(t);o&&o[i]&&(delete o[i],Object.keys(o).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}},580:function(t,i,o){"use strict";o.d(i,{eventEmitter:function(){return x},extendLang:function(){return _},getContainer:function(){return k},getPopupViewRoot:function(){return S},instances:function(){return f},modules:function(){return w},pluginSystem:function(){return y},uniqueUid:function(){return b}});var n=o(19306),r=o(70799),s=o(39955),a=o(12475),l=o(41180),c=o(80568),d=o(41876),u=o(57012),h=o(82758),p=o(22732);let f={},m=1,g=new Set;function b(){function t(){return Math.round(m+=10*(Math.random()+1)).toString(16)}let i=t();for(;g.has(i);)i=t();return g.add(i),i}let y=new d.PluginSystem({getContainer:k}),w={},_=t=>{Object.keys(t).forEach(i=>{h.lang[i]?Object.assign(h.lang[i],t[i]):h.lang[i]=t[i]})},C=new WeakMap;function k(t,i,o="div",l=!1){let d=(0,r.isString)(i)?i:i?(0,c.getClassName)(i.prototype):"jodit-utils",u=C.get(t)||{},h=d+o,f=(0,s.isViewObject)(t)?t:t.j,m=null;if(!u[h]){let i=f.c;if(m=S(f.o,f.container,t.od.body),l&&(0,n.isJoditObject)(t)&&t.od!==t.ed){i=t.createInside;let r="style"===o?t.ed.head:t.ed.body;m=(0,n.isJoditObject)(t)&&t.o.shadowRoot?t.o.shadowRoot:r}let r=i.element(o,{className:`jodit jodit-${(0,a.kebabCase)(d)}-container jodit-box`});f.o.nonce&&("style"===o||"script"===o)&&r.setAttribute("nonce",f.o.nonce),r.classList.add("jodit_theme_"+(f.o.theme||"default")),m.appendChild(r),u[h]=r,t.hookStatus("beforeDestruct",()=>{f.events.off(r),p.Dom.safeRemove(r),delete u[h],Object.keys(u).length&&C.delete(t)}),C.set(t,u),f.events.fire("getContainer",r)}return u[h].classList.remove("jodit_theme_default","jodit_theme_dark"),u[h].classList.add("jodit_theme_"+(f.o.theme||"default")),u[h]}function S(t,i,o){var n,r,s;return null!=(s=null!=(r=null!=(n=t.popupRoot)?n:t.shadowRoot)?r:p.Dom.closest(i,t=>p.Dom.isHTMLElement(t)&&(p.Dom.isTag(t,"dialog")||["fixed","absolute"].includes((0,l.css)(t,"position"))),o))?s:o}let x=u.eventEmitter},29999:function(t,i,o){"use strict";o.d(i,{asArray:function(){return r}});var n=o(68345);let r=t=>(0,n.isArray)(t)?t:[t]},76855:function(t,i,o){"use strict";o.d(i,{asArray:function(){return n.asArray},splitArray:function(){return r.splitArray},toArray:function(){return s.toArray}});var n=o(29999),r=o(46559),s=o(4510)},46559:function(t,i,o){"use strict";function n(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}o.d(i,{splitArray:function(){return n}})},4510:function(t,i,o){"use strict";o.d(i,{toArray:function(){return s}});var n=o(70722),r=o(58844);let s=function(...t){var i;return((0,n.isNativeFunction)(Array.from)?Array.from:null!=(i=(0,r.reset)("Array.from"))?i:Array.from).apply(Array,t)}},91898:function(t,i,o){"use strict";o.d(i,{clearTimeout:function(){return n.clearTimeout},setTimeout:function(){return n.setTimeout}});var n=o(13252)},13252:function(t,i,o){"use strict";o.d(i,{clearTimeout:function(){return s},setTimeout:function(){return r}});var n=o(82758);function r(t,i,...o){return i?n.globalWindow.setTimeout(t,i,...o):(t.call(null,...o),0)}function s(t){n.globalWindow.clearTimeout(t)}},54765:function(t,i,o){"use strict";o.d(i,{hasBrowserColorPicker:function(){return r}});var n=o(82758);function r(){let t=!0;try{let i=n.globalDocument.createElement("input");i.type="color",i.value="!",t="color"===i.type&&"!"!==i.value}catch(i){t=!1}return t}},27613:function(t,i,o){"use strict";o.d(i,{hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return h.hasContainer},isAbortError:function(){return r.isAbortError},isArray:function(){return s.isArray},isBoolean:function(){return a.isBoolean},isDestructable:function(){return h.isDestructable},isEqual:function(){return l.isEqual},isFastEqual:function(){return l.isFastEqual},isFunction:function(){return c.isFunction},isHTML:function(){return d.isHTML},isHtmlFromWord:function(){return u.isHtmlFromWord},isInitable:function(){return h.isInitable},isInt:function(){return p.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return m.isLicense},isMarker:function(){return g.isMarker},isNativeFunction:function(){return b.isNativeFunction},isNumber:function(){return y.isNumber},isNumeric:function(){return w.isNumeric},isPlainObject:function(){return _.isPlainObject},isPromise:function(){return C.isPromise},isSet:function(){return k.isSet},isString:function(){return S.isString},isStringArray:function(){return S.isStringArray},isURL:function(){return x.isURL},isValidName:function(){return I.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return T.isVoid},isWindow:function(){return j.isWindow}});var n=o(54765),r=o(12045),s=o(68345),a=o(87612),l=o(59292),c=o(23282),d=o(58487),u=o(29673),h=o(60132),p=o(72913),f=o(19306),m=o(45603),g=o(78116),b=o(70722),y=o(84767),w=o(29807),_=o(72430),C=o(14773),k=o(42320),S=o(70799),x=o(26049),I=o(37508),E=o(39955),T=o(86068),j=o(52742)},12045:function(t,i,o){"use strict";function n(t){return!!t&&t instanceof DOMException&&"AbortError"===t.name}o.d(i,{isAbortError:function(){return n}})},68345:function(t,i,o){"use strict";function n(t){return Array.isArray(t)}o.d(i,{isArray:function(){return n}})},87612:function(t,i,o){"use strict";function n(t){return"boolean"==typeof t}o.d(i,{isBoolean:function(){return n}})},59292:function(t,i,o){"use strict";o.d(i,{isEqual:function(){return r},isFastEqual:function(){return s}});var n=o(67462);function r(t,i){return t===i||(0,n.stringify)(t)===(0,n.stringify)(i)}function s(t,i){return t===i}},23282:function(t,i,o){"use strict";function n(t){return"function"==typeof t}o.d(i,{isFunction:function(){return n}})},29673:function(t,i,o){"use strict";function n(t){return -1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i)||-1!==t.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i)||-1!==t.search(/urn:schemas-microsoft-com:office:(word|excel)/)||-1!==t.search(/<\w[^>]*\sclass=("|')?Mso/)||-1!==t.search(/style='[^']*mso-/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}o.d(i,{isHtmlFromWord:function(){return n}})},58487:function(t,i,o){"use strict";o.d(i,{isHTML:function(){return r}});var n=o(70799);let r=t=>(0,n.isString)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},60132:function(t,i,o){"use strict";o.d(i,{hasContainer:function(){return c},isDestructable:function(){return l},isInitable:function(){return a}});var n=o(2748),r=o(23282),s=o(86068);function a(t){return!(0,s.isVoid)(t)&&(0,r.isFunction)(t.init)}function l(t){return!(0,s.isVoid)(t)&&(0,r.isFunction)(t.destruct)}function c(t){return!(0,s.isVoid)(t)&&n.Dom.isElement(t.container)}},72913:function(t,i,o){"use strict";o.d(i,{isInt:function(){return s}});var n=o(29807),r=o(70799);function s(t){return(0,r.isString)(t)&&(0,n.isNumeric)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},19306:function(t,i,o){"use strict";o.d(i,{isJoditObject:function(){return r}});var n=o(23282);function r(t){return!!(t&&t instanceof Object&&(0,n.isFunction)(t.constructor)&&("u">typeof Jodit&&t instanceof Jodit||t.isJodit))}},45603:function(t,i,o){"use strict";o.d(i,{isLicense:function(){return r}});var n=o(70799);let r=t=>(0,n.isString)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},78116:function(t,i,o){"use strict";o.d(i,{isMarker:function(){return r}});var n=o(2748);function r(t){return n.Dom.isMarker(t)}},70722:function(t,i,o){"use strict";function n(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===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(t+""))}o.d(i,{isNativeFunction:function(){return n}})},84767:function(t,i,o){"use strict";function n(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}o.d(i,{isNumber:function(){return n}})},29807:function(t,i,o){"use strict";o.d(i,{isNumeric:function(){return r}});var n=o(70799);function r(t){if((0,n.isString)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},72430:function(t,i,o){"use strict";o.d(i,{isPlainObject:function(){return r}});var n=o(52742);function r(t){return!(!t||"object"!=typeof t||t.nodeType||(0,n.isWindow)(t))&&!(t.constructor&&!({}).hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},14773:function(t,i,o){"use strict";function n(t){return t&&"function"==typeof t.then}o.d(i,{isPromise:function(){return n}})},42320:function(t,i,o){"use strict";o.d(i,{isSet:function(){return r}});var n=o(23282);function r(t){return!!t&&(0,n.isFunction)(t.has)&&(0,n.isFunction)(t.add)&&(0,n.isFunction)(t.delete)}},70799:function(t,i,o){"use strict";o.d(i,{isString:function(){return r},isStringArray:function(){return s}});var n=o(68345);function r(t){return"string"==typeof t}function s(t){return(0,n.isArray)(t)&&r(t[0])}},26049:function(t,i,o){"use strict";o.d(i,{isURL:function(){return r}});var n=o(82758);function r(t){if(t.includes(" "))return!1;if("u">typeof URL)try{let i=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(i.protocol)}catch(t){return!1}let i=n.globalDocument.createElement("a");return i.href=t,!!i.hostname}},37508:function(t,i,o){"use strict";function n(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(t)&&t.trim().length>0}o.d(i,{isValidName:function(){return n}})},39955:function(t,i,o){"use strict";o.d(i,{isViewObject:function(){return r}});var n=o(23282);function r(t){return!!(t&&t instanceof Object&&(0,n.isFunction)(t.constructor)&&t.isView)}},86068:function(t,i,o){"use strict";function n(t){return null==t}o.d(i,{isVoid:function(){return n}})},52742:function(t,i,o){"use strict";function n(t){return null!=t&&t===t.window}o.d(i,{isWindow:function(){return n}})},35278:function(t,i,o){"use strict";o.d(i,{colorToHex:function(){return n}});let n=t=>{if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;let i=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(t);if(!i)return"#000000";let o=parseInt(i[2],10),n=parseInt(i[3],10),r=(parseInt(i[4],10)|n<<8|o<<16).toString(16).toUpperCase();for(;r.length<6;)r="0"+r;return i[1]+"#"+r}},58149:function(t,i,o){"use strict";o.d(i,{colorToHex:function(){return n.colorToHex}});var n=o(35278)},32574:function(t,i,o){"use strict";o.d(i,{applyStyles:function(){return c}});var n=o(82758),r=o(2748),s=o(49055),a=o(76078);function l(t){return t.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(t,i,o)=>{switch(o.toLowerCase()){case"pt":return(1.328*parseFloat(i)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(i)).toFixed(0)+"px"}return t})}function c(t){let i=/<html(?:\s[^>]*)?>/i.exec(t);if(!i)return t;let o=(t=t.substring(i.index)).toLowerCase().lastIndexOf("</html>");-1!==o&&(t=t.substring(0,o+7));let c=n.globalDocument.createElement("iframe");c.style.display="none",n.globalDocument.body.appendChild(c);let d="";try{let i=c.contentDocument||(c.contentWindow?c.contentWindow.document:null);if(i){i.open(),i.write(t),i.close(),r.Dom.each(i.body,t=>{r.Dom.isElement(t)&&/mso-list:\s*ignore/i.test(t.getAttribute("style")||"")&&r.Dom.safeRemove(t)});try{for(let t=0;t<i.styleSheets.length;t+=1){let o=i.styleSheets[t].cssRules;for(let t=0;t<o.length;t+=1)""!==o[t].selectorText&&(0,a.$$)(o[t].selectorText,i.body).forEach(i=>{i.style.cssText=l(o[t].style.cssText+";"+i.style.cssText)})}}catch(t){if(!n.IS_PROD)throw t}r.Dom.each(i.body,t=>{if(r.Dom.isElement(t)){let i=t.getAttribute("style");i&&(t.style.cssText=l(i)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}}),d=i.firstChild?(0,s.trim)(i.body.innerHTML):""}}catch(t){}finally{r.Dom.safeRemove(c)}return d&&(t=d),(0,s.trim)(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(t,i,o){"use strict";o.d(i,{cleanFromWord:function(){return l}});var n=o(82758),r=o(2748),s=o(4510),a=o(49055);function l(t){-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let i="";try{let o=n.globalDocument.createElement("div");o.innerHTML=t;let a=[];o.firstChild&&r.Dom.each(o,t=>{if(t)switch(t.nodeType){case Node.ELEMENT_NODE:switch(t.nodeName){case"STYLE":case"LINK":case"META":a.push(t);break;case"W:SDT":case"W:SDTPR":case"FONT":r.Dom.unwrap(t);break;default:if(/mso-list:\s*ignore/i.test(t.getAttribute("style")||"")){a.push(t);break}(0,s.toArray)(t.attributes).forEach(i=>{-1===["src","href","rel","content"].indexOf(i.name.toLowerCase())&&t.removeAttribute(i.name)})}break;case Node.TEXT_NODE:break;default:a.push(t)}}),r.Dom.safeRemove.apply(null,a),i=o.innerHTML}catch(t){}return i&&(t=i),(t=t.split(/(\n)/).filter(a.trim).join(`
|
|
18
18
|
`)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53326:function(t,i,o){"use strict";o.d(i,{htmlspecialchars:function(){return r}});var n=o(82758);function r(t){let i=n.globalDocument.createElement("div");return i.textContent=t,i.innerHTML}},75275:function(t,i,o){"use strict";o.d(i,{applyStyles:function(){return n.applyStyles},cleanFromWord:function(){return r.cleanFromWord},htmlspecialchars:function(){return s.htmlspecialchars},nl2br:function(){return a.nl2br},safeHTML:function(){return l.safeHTML},sanitizeHTMLElement:function(){return l.sanitizeHTMLElement},stripTags:function(){return c.stripTags}});var n=o(32574),r=o(53212),s=o(53326),a=o(45971),l=o(86518),c=o(91003)},45971:function(t,i,o){"use strict";function n(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}o.d(i,{nl2br:function(){return n}})},86518:function(t,i,o){"use strict";o.d(i,{safeHTML:function(){return a},sanitizeHTMLElement:function(){return u}});var n=o(2748),r=o(43555);let s=new Set(["foreignobject","annotation-xml","desc","title"]);function a(t,i){var o;if(!n.Dom.isElement(t)&&!n.Dom.isFragment(t))return;let a=t.querySelectorAll("math *, svg *");for(let i=0;i<a.length;i++)t.contains(a[i])&&function(t){if("http://www.w3.org/1999/xhtml"!==t.namespaceURI||null==t.closest("math,svg"))return!1;for(let i=t.parentElement;i;i=i.parentElement){let t=i.nodeName.toLowerCase();if("math"===t||"svg"===t)break;if(s.has(t))return!1}return!0}(a[i])&&n.Dom.safeRemove(a[i]);let l=null!=(o=i.removeEventAttributes)?o:i.removeOnError,c=t=>{if(n.Dom.isElement(t)&&(l&&function(t){if(!n.Dom.isElement(t))return;let i=[];for(let o=0;o<t.attributes.length;o++)t.attributes[o].name.toLowerCase().startsWith("on")&&i.push(t.attributes[o].name);for(let o of i)t.removeAttribute(o)}(t),u(t,i),i.safeLinksTarget&&"A"===t.nodeName&&"_blank"===t.getAttribute("target"))){let i=(t.getAttribute("rel")||"").split(/\s+/).filter(Boolean);i.includes("noopener")||i.push("noopener"),i.includes("noreferrer")||i.push("noreferrer"),(0,r.attr)(t,"rel",i.join(" "))}};c(t),n.Dom.each(t,c)}let l=["src","data","action","formaction","poster","background","xlink:href"],c=new Set(["iframe","frame","object","embed"]);function d(t,i){let o=t.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(o)||/^data:(?:text\/html|application\/xhtml)/.test(o))||/^data:image\/svg/.test(o)&&c.has(i)}function u(t,{safeJavaScriptLink:i,removeOnError:o}={safeJavaScriptLink:!0,removeOnError:!0}){if(!n.Dom.isElement(t))return!1;let s=!1;o&&t.hasAttribute("onerror")&&((0,r.attr)(t,"onerror",null),s=!0);let a=t.nodeName.toLowerCase(),c=t.getAttribute("href");if(i&&c&&d(c,a)){let i="u">typeof location?location.protocol:"http:";(0,r.attr)(t,"href",i+"//"+c),s=!0}if(i)for(let i of(t.hasAttribute("srcdoc")&&((0,r.attr)(t,"srcdoc",null),s=!0),l)){let o=t.getAttribute(i);o&&d(o,a)&&((0,r.attr)(t,i,null),s=!0)}return s}},91003:function(t,i,o){"use strict";o.d(i,{stripTags:function(){return function t(i,o=document,u=null,h=!1){let p=o.createElement("div");return(0,r.isString)(i)?p.innerHTML=i:p.appendChild(i),(0,a.$$)("*",p).forEach(i=>{let r=i.parentNode;if(!r)return;if(u&&n.Dom.isTag(i,u)){let r=i.nodeName.toLowerCase(),s=n.Dom.isTag(i,d)?`%%%jodit-single-${r}%%%`:`%%%jodit-${r}%%%${t(i.innerHTML,o,u,h)}%%%/jodit-${r}%%%`;n.Dom.before(i,o.createTextNode(s)),n.Dom.safeRemove(i);return}if(n.Dom.isTag(i,c))return void n.Dom.safeRemove(i);if(!n.Dom.isTag(i,l))return;let s=i.nextSibling;!(n.Dom.isText(s)&&/^\s/.test(s.nodeValue||""))&&s&&r.insertBefore(o.createTextNode(h?"%%%jodit-single-br%%%":" "),s)}),(0,s.trim)(p.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(t,i,o,n)=>`<${i?"/":""}${n}>`)}}});var n=o(2748),r=o(70799),s=o(49055),a=o(43555);let l=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),c=new Set(["script","style"]),d=new Set(["br","hr","input"])},21537:function(t,i,o){"use strict";o.r(i),o.d(i,{$$:function(){return h.$$},CamelCaseToKebabCase:function(){return u.CamelCaseToKebabCase},ConfigDeepFlatten:function(){return h.ConfigDeepFlatten},ConfigFlatten:function(){return h.ConfigFlatten},ConfigMerge:function(){return h.ConfigMerge},ConfigProto:function(){return h.ConfigProto},ConnectionError:function(){return h.ConnectionError},LimitedStack:function(){return h.LimitedStack},NUMBER_FIELDS_REG:function(){return c.NUMBER_FIELDS_REG},OptionsError:function(){return h.OptionsError},UNSAFE_PROTO_KEYS:function(){return h.UNSAFE_PROTO_KEYS},abort:function(){return h.abort},alignElement:function(){return h.alignElement},alreadyLoadedList:function(){return h.alreadyLoadedList},appendScriptAsync:function(){return h.appendScriptAsync},appendStyleAsync:function(){return h.appendStyleAsync},applyStyles:function(){return l.applyStyles},asArray:function(){return n.asArray},assert:function(){return h.assert},attr:function(){return h.attr},browser:function(){return h.browser},buildQuery:function(){return h.buildQuery},call:function(){return h.call},callPromise:function(){return h.callPromise},callThis:function(){return h.callThis},camelCase:function(){return u.camelCase},cleanFromWord:function(){return l.cleanFromWord},clearAlign:function(){return h.clearAlign},clearCenterAlign:function(){return h.clearCenterAlign},clearTimeout:function(){return r.clearTimeout},cns:function(){return h.cns},colorToHex:function(){return a.colorToHex},completeUrl:function(){return h.completeUrl},connection:function(){return h.connection},convertMediaUrlToVideoEmbed:function(){return h.convertMediaUrlToVideoEmbed},css:function(){return h.css},cssPath:function(){return h.cssPath},ctrlKey:function(){return h.ctrlKey},dataBind:function(){return h.dataBind},defaultLanguage:function(){return h.defaultLanguage},error:function(){return h.error},fastClone:function(){return h.fastClone},fuzzySearchIndex:function(){return u.fuzzySearchIndex},get:function(){return h.get},getClassName:function(){return h.getClassName},getContentWidth:function(){return d.getContentWidth},getDataTransfer:function(){return h.getDataTransfer},getFixedPositionOffset:function(){return d.getFixedPositionOffset},getPropertyDescriptor:function(){return h.getPropertyDescriptor},getScrollParent:function(){return d.getScrollParent},getXPathByElement:function(){return h.getXPathByElement},hAlignElement:function(){return h.hAlignElement},hasBrowserColorPicker:function(){return s.hasBrowserColorPicker},hasContainer:function(){return s.hasContainer},htmlspecialchars:function(){return l.htmlspecialchars},humanSizeToBytes:function(){return h.humanSizeToBytes},i18n:function(){return u.i18n},inView:function(){return h.inView},innerWidth:function(){return d.innerWidth},isAbortError:function(){return s.isAbortError},isArray:function(){return s.isArray},isAtom:function(){return h.isAtom},isBoolean:function(){return s.isBoolean},isDestructable:function(){return s.isDestructable},isEqual:function(){return s.isEqual},isFastEqual:function(){return s.isFastEqual},isFunction:function(){return s.isFunction},isHTML:function(){return s.isHTML},isHtmlFromWord:function(){return s.isHtmlFromWord},isInitable:function(){return s.isInitable},isInt:function(){return s.isInt},isJoditObject:function(){return s.isJoditObject},isLicense:function(){return s.isLicense},isMarker:function(){return s.isMarker},isNativeFunction:function(){return s.isNativeFunction},isNumber:function(){return s.isNumber},isNumeric:function(){return s.isNumeric},isPlainObject:function(){return s.isPlainObject},isPromise:function(){return s.isPromise},isSet:function(){return s.isSet},isString:function(){return s.isString},isStringArray:function(){return s.isStringArray},isURL:function(){return s.isURL},isUnsafeProtoKey:function(){return h.isUnsafeProtoKey},isValidName:function(){return s.isValidName},isViewObject:function(){return s.isViewObject},isVoid:function(){return s.isVoid},isWindow:function(){return s.isWindow},kebabCase:function(){return u.kebabCase},keepNames:function(){return h.keepNames},keys:function(){return h.keys},loadImage:function(){return h.loadImage},loadNext:function(){return h.loadNext},loadNextStyle:function(){return h.loadNextStyle},markAsAtomic:function(){return h.markAsAtomic},markDeprecated:function(){return h.markDeprecated},markOwner:function(){return h.markOwner},memorizeExec:function(){return h.memorizeExec},nl2br:function(){return l.nl2br},normalizeColor:function(){return c.normalizeColor},normalizeCssNumericValue:function(){return c.normalizeCssNumericValue},normalizeCssValue:function(){return c.normalizeCssValue},normalizeKeyAliases:function(){return c.normalizeKeyAliases},normalizeLicense:function(){return c.normalizeLicense},normalizePath:function(){return c.normalizePath},normalizeRelativePath:function(){return c.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return c.normalizeUrl},offset:function(){return d.offset},options:function(){return h.options},parseQuery:function(){return h.parseQuery},position:function(){return d.position},previewBox:function(){return h.previewBox},refs:function(){return h.refs},reset:function(){return h.reset},resolveElement:function(){return h.resolveElement},safeHTML:function(){return l.safeHTML},sanitizeHTMLElement:function(){return l.sanitizeHTMLElement},scrollIntoViewIfNeeded:function(){return h.scrollIntoViewIfNeeded},set:function(){return h.set},setTimeout:function(){return r.setTimeout},size:function(){return d.size},splitArray:function(){return n.splitArray},sprintf:function(){return u.sprintf},stringify:function(){return u.stringify},stripTags:function(){return l.stripTags},toArray:function(){return n.toArray},trim:function(){return u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},ucfirst:function(){return u.ucfirst}});var n=o(76855),r=o(91898),s=o(27613),a=o(58149),l=o(75275),c=o(71521),d=o(56175),u=o(59007),h=o(43555)},71521:function(t,i,o){"use strict";o.d(i,{NUMBER_FIELDS_REG:function(){return r.NUMBER_FIELDS_REG},normalizeColor:function(){return n.normalizeColor},normalizeCssNumericValue:function(){return r.normalizeCssNumericValue},normalizeCssValue:function(){return r.normalizeCssValue},normalizeKeyAliases:function(){return s.normalizeKeyAliases},normalizeLicense:function(){return a.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return c.normalizeRelativePath},normalizeSize:function(){return d.normalizeSize},normalizeUrl:function(){return u.normalizeUrl}});var n=o(21224),r=o(3760),s=o(49033),a=o(12972),l=o(9992),c=o(70091),d=o(46334),u=o(37406)},21224:function(t,i,o){"use strict";o.d(i,{normalizeColor:function(){return s}});var n=o(35278),r=o(49055);let s=t=>{let i=["#"],o=(0,n.colorToHex)(t);if(!o)return!1;if(3===(o=(o=(0,r.trim)(o.toUpperCase())).substring(1)).length){for(let t=0;t<3;t+=1)i.push(o[t]),i.push(o[t]);return i.join("")}return o.length>6&&(o=o.slice(0,6)),"#"+o}},3760:function(t,i,o){"use strict";o.d(i,{NUMBER_FIELDS_REG:function(){return l},normalizeCssNumericValue:function(){return c},normalizeCssValue:function(){return d}});var n=o(29807),r=o(86068),s=o(35278),a=o(12475);let l=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function c(t,i){return!(0,r.isVoid)(i)&&l.test(t)&&(0,n.isNumeric)(i.toString())?parseInt(i.toString(),10)+"px":i}function d(t,i){if("font-weight"===(0,a.kebabCase)(t)){switch(i.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,n.isNumeric)(i)?Number(i):i}return/color/i.test(t)&&/^rgb/i.test(i.toString())&&(0,s.colorToHex)(i.toString())||i}},49033:function(t,i,o){"use strict";o.d(i,{normalizeKeyAliases:function(){return s}});var n=o(82758),r=o(49055);function s(t){let i={},o={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return t.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(t=>(0,r.trim)(t.toLowerCase())).map(t=>n.KEY_ALIASES[t]||t).sort((t,i)=>o[t]&&!o[i]?-1:!o[t]&&o[i]?1:o[t]&&o[i]?o[t]-o[i]:t>i?1:-1).filter(t=>!i[t]&&""!==t&&(i[t]=!0)).join("+")}},12972:function(t,i,o){"use strict";o.d(i,{normalizeLicense:function(){return n}});let n=(t,i=8)=>{let o=[];for(;t.length;)o.push(t.substr(0,i)),t=t.substr(i);return o[1]=o[1].replace(/./g,"*"),o[2]=o[2].replace(/./g,"*"),o.join("-")}},9992:function(t,i,o){"use strict";o.d(i,{normalizePath:function(){return r}});var n=o(49055);let r=(...t)=>t.filter(t=>(0,n.trim)(t).length).map((i,o)=>(i=i.replace(/([^:])[\\/]+/g,"$1/"),o&&(i=i.replace(/^\//,"")),o!==t.length-1&&(i=i.replace(/\/$/,"")),i)).join("/")},70091:function(t,i,o){"use strict";o.d(i,{normalizeRelativePath:function(){return n}});let n=t=>t.split("/").reduce((t,i)=>{switch(i){case"":case".":break;case"..":t.pop();break;default:t.push(i)}return t},[]).join("/")+(t.endsWith("/")?"/":"")},46334:function(t,i,o){"use strict";o.d(i,{normalizeSize:function(){return n}});let n=(t,i)=>/^[0-9]+$/.test(t.toString())?t+i:t.toString()},37406:function(t,i,o){"use strict";o.d(i,{normalizeUrl:function(){return n}});let n=(...t)=>t.filter(t=>t.length).map(t=>t.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},44506:function(t,i,o){"use strict";o.d(i,{getContentWidth:function(){return n}});let n=(t,i)=>{let o=i.getComputedStyle(t);return t.offsetWidth-parseInt(o.getPropertyValue("padding-left")||"0",10)-parseInt(o.getPropertyValue("padding-right")||"0",10)}},35224:function(t,i,o){"use strict";function n(t){var i,o;let n=null==(i=t.ownerDocument)?void 0:i.defaultView,r=t.parentElement;for(;n&&r;){if(""!==(o=n.getComputedStyle(r)).transform&&"none"!==o.transform||""!==o.perspective&&"none"!==o.perspective||""!==o.filter&&"none"!==o.filter||"transform"===o.willChange||"perspective"===o.willChange||"filter"===o.willChange||"paint"===o.contain||"layout"===o.contain||"strict"===o.contain||"content"===o.contain){let t=r.getBoundingClientRect();return{x:t.left,y:t.top}}r=r.parentElement}return{x:0,y:0}}o.d(i,{getFixedPositionOffset:function(){return n}})},16442:function(t,i,o){"use strict";o.d(i,{getScrollParent:function(){return function t(i){if(!i)return null;let o=r.Dom.isHTMLElement(i),a=o&&(0,s.css)(i,"overflowY");return o&&"visible"!==a&&"hidden"!==a&&i.scrollHeight>=i.clientHeight?i:t(i.parentNode)||n.globalDocument.scrollingElement||n.globalDocument.body}}});var n=o(82758),r=o(2748),s=o(43555)},56175:function(t,i,o){"use strict";o.d(i,{getContentWidth:function(){return n.getContentWidth},getFixedPositionOffset:function(){return r.getFixedPositionOffset},getScrollParent:function(){return s.getScrollParent},innerWidth:function(){return a.innerWidth},offset:function(){return c.offset},position:function(){return d.position},size:function(){return l.size}});var n=o(44506),r=o(35224),s=o(16442),a=o(81630),l=o(21496),c=o(81284),d=o(5700)},81630:function(t,i,o){"use strict";o.d(i,{innerWidth:function(){return n}});let n=(t,i)=>{let o=i.getComputedStyle(t);return t.clientWidth-(parseFloat(o.paddingLeft||"0")+parseFloat(o.paddingRight||"0"))}},21496:function(t,i,o){"use strict";o.d(i,{size:function(){return r}});var n=o(27613);function r(t){return(0,n.isString)(t)||(0,n.isArray)(t)?t.length:(0,n.isPlainObject)(t)?Object.keys(t).length:0}},81284:function(t,i,o){"use strict";o.d(i,{offset:function(){return n}});let n=(t,i,o,r=!1)=>{let s,a,l;try{s=t.getBoundingClientRect()}catch(t){s={top:0,bottom:0,left:0,right:0,width:0,height:0}}let c=o.body,d=o.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},u=o.defaultView||o.parentWindow,h=u.pageYOffset||d.scrollTop||c.scrollTop,p=u.pageXOffset||d.scrollLeft||c.scrollLeft,f=d.clientTop||c.clientTop||0,m=d.clientLeft||c.clientLeft||0,g=i.iframe;if(!r&&i&&i.options&&i.o.iframe&&g){let{top:t,left:o}=n(g,i,i.od,!0);a=s.top+t,l=s.left+o}else a=s.top+h-f,l=s.left+p-m;return{top:Math.round(a),left:Math.round(l),width:s.width,height:s.height}}},5700:function(t,i,o){"use strict";o.d(i,{position:function(){return function t(i,o,r=!1){var s,a;let l=i.getBoundingClientRect(),c=l.left,d=l.top;if((0,n.isJoditObject)(o)&&o.iframe&&o.ed.body.contains(i)&&!r){let{left:i,top:n}=t(o.iframe,o,!0);c+=i,d+=n}return{left:Math.round(c),top:Math.round(d),width:Math.round(null!=(s=i.offsetWidth)?s:l.width),height:Math.round(null!=(a=i.offsetHeight)?a:l.height)}}}});var n=o(19306)},87058:function(t,i,o){"use strict";o.d(i,{camelCase:function(){return n}});let n=t=>t.replace(/([-_])(.)/g,(t,i,o)=>o.toUpperCase())},67477:function(t,i,o){"use strict";o.d(i,{fuzzySearchIndex:function(){return r}});var n=o(82758);function r(t,i,o=0,s=1){let a=0,l=0,c=-1,d=0,u=0;for(l=o;a<t.length&&l<i.length;)t[a].toLowerCase()===i[l].toLowerCase()?(a++,d++,u=0,-1===c&&(c=l)):a>0&&(u>=s&&i[l]!==n.INVISIBLE_SPACE?(a=0,c=-1,d=0,u=0,l--):(u++,d++)),l++;return a===t.length?[c,d]:[-1,0]}},56967:function(t,i,o){"use strict";o.d(i,{i18n:function(){return d},sprintf:function(){return c}});var n=o(82758),r=o(70799),s=o(36409),a=o(43555),l=o(6441);let c=(t,i)=>{if(!i||!i.length)return t;let o=/%([sd])/g,n=o.exec(t),r=t,s=0;for(;n&&void 0!==i[s];)r=r.replace(n[0],i[s].toString()),s+=1,n=o.exec(t);return r};function d(t,i,o){if(!(0,r.isString)(t))throw(0,a.error)("i18n: Need string in first argument");if(!t.length)return t;let d=!!(null==o?void 0:o.debugLanguage),u={},h=t=>i&&i.length?c(t,i):t,p=(0,a.defaultLanguage)(l.Config.defaultOptions.language,l.Config.defaultOptions.language),f=(0,a.defaultLanguage)(null==o?void 0:o.language,p),m=i=>{if(!i)return;if((0,r.isString)(i[t]))return h(i[t]);let o=t.toLowerCase();if((0,r.isString)(i[o]))return h(i[o]);let n=(0,s.ucfirst)(t);if((0,r.isString)(i[n]))return h(i[n])};void 0!==n.lang[f]?u=n.lang[f]:d||(u=void 0!==n.lang[p]?n.lang[p]:n.lang.en);let g=null==o?void 0:o.i18n;if(g&&g[f]){let t=m(g[f]);if(t)return t}return m(u)||(!d&&n.lang.en&&(0,r.isString)(n.lang.en[t])&&n.lang.en[t]?h(n.lang.en[t]):d?"{"+t+"}":(n.IS_PROD,h(t)))}},59007:function(t,i,o){"use strict";o.d(i,{CamelCaseToKebabCase:function(){return a.CamelCaseToKebabCase},camelCase:function(){return n.camelCase},fuzzySearchIndex:function(){return r.fuzzySearchIndex},i18n:function(){return s.i18n},kebabCase:function(){return a.kebabCase},sprintf:function(){return s.sprintf},stringify:function(){return l.stringify},trim:function(){return c.trim},trimChars:function(){return c.trimChars},trimInv:function(){return c.trimInv},ucfirst:function(){return d.ucfirst}});var n=o(87058),r=o(67477),s=o(56967),a=o(12475),l=o(67462),c=o(49055),d=o(36409)},12475:function(t,i,o){"use strict";o.d(i,{CamelCaseToKebabCase:function(){return r},kebabCase:function(){return n}});let n=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),r=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},67462:function(t,i,o){"use strict";function n(t,i={}){if("object"!=typeof t)return t+"";let o=new Set(i.excludeKeys),r=new WeakMap;return JSON.stringify(t,(t,i)=>{if(!o.has(t)){if("object"==typeof i&&null!=i){if(r.get(i))return"[refObject]";r.set(i,!0)}return i}},i.prettify)}o.d(i,{stringify:function(){return n}})},49055:function(t,i,o){"use strict";o.d(i,{trim:function(){return r},trimChars:function(){return s},trimInv:function(){return a}});var n=o(82758);function r(t){return t.replace((0,n.SPACE_REG_EXP_END)(),"").replace((0,n.SPACE_REG_EXP_START)(),"")}function s(t,i){return t.replace(RegExp(`[${i}]+$`),"").replace(RegExp(`^[${i}]+`),"")}function a(t){return t.replace((0,n.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,n.INVISIBLE_SPACE_REG_EXP_START)(),"")}},36409:function(t,i,o){"use strict";function n(t){return t.length?t[0].toUpperCase()+t.substring(1):""}o.d(i,{ucfirst:function(){return n}})},25726:function(t,i,o){"use strict";o.d(i,{alignElement:function(){return l},clearAlign:function(){return a},hAlignElement:function(){return s}});var n=o(22732),r=o(41180);function s(t,i){i&&"normal"!==i?"center"!==i?((0,r.css)(t,"float",i),(0,r.clearCenterAlign)(t)):(0,r.css)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.css)(t,"float")&&-1!==["right","left"].indexOf((0,r.css)(t,"float").toString().toLowerCase())&&(0,r.css)(t,"float",""),(0,r.clearCenterAlign)(t))}function a(t){n.Dom.each(t,t=>{n.Dom.isHTMLElement(t)&&t.style.textAlign&&(t.style.textAlign="",t.style.cssText.trim().length||t.removeAttribute("style"))})}function l(t,i){if(n.Dom.isNode(i)&&n.Dom.isElement(i))switch(a(i),t.toLowerCase()){case"justifyfull":i.style.textAlign="justify";break;case"justifyright":i.style.textAlign="right";break;case"justifyleft":i.style.textAlign="left";break;case"justifycenter":i.style.textAlign="center"}}},63799:function(t,i,o){"use strict";o.d(i,{alreadyLoadedList:function(){return s},appendScriptAsync:function(){return l},appendStyleAsync:function(){return c},loadNext:function(){return function t(i,o,r=0){return(0,n.isString)(o[r])?l(i,o[r]).then(()=>t(i,o,r+1)):Promise.resolve()}},loadNextStyle:function(){return function t(i,o,r=0){return(0,n.isString)(o[r])?c(i,o[r]).then(()=>t(i,o,r+1)):Promise.resolve()}}});var n=o(70799),r=o(66292);let s=new Map,a=t=>(i,o)=>{if(s.has(o))return s.get(o);let n=t(i,o);return s.set(o,n),n},l=a((t,i)=>t.async.promise((o,n)=>{if(t.isInDestruct)return n();let s=t.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,r.completeUrl)(i)});t.o.nonce&&s.setAttribute("nonce",t.o.nonce),t.e.one(s,"error",n).one(s,"load",o),t.od.body.appendChild(s)})),c=a((t,i)=>t.async.promise((o,n)=>{if(t.isInDestruct)return n();let s=t.c.element("link");s.rel="stylesheet",s.media="all",s.crossOrigin="anonymous",t.o.nonce&&s.setAttribute("nonce",t.o.nonce),t.isInDestruct||t.e.on(s,"load",()=>o(s)).on(s,"error",n),s.href=(0,r.completeUrl)(i),t.o.shadowRoot?t.o.shadowRoot.appendChild(s):t.od.body.appendChild(s)}))},38837:function(t,i,o){"use strict";o.d(i,{assert:function(){return r}});class n extends Error{constructor(t){super(t),this.name="AssertionError"}}function r(t,i){if(!t)throw new n("Assertion failed: "+i)}},29960:function(t,i,o){"use strict";o.d(i,{attr:function(){return function t(i,o,c){if(!i||!(0,n.isFunction)(i.getAttribute))return null;if(!(0,s.isString)(o))return Object.keys(o).forEach(n=>{let s=o[n];(0,r.isPlainObject)(s)&&"style"===n?(0,l.css)(i,s):("className"===n&&(n="class"),t(i,n,s))}),null;let d=(0,a.CamelCaseToKebabCase)(o);if(/^-/.test(d)){let o=t(i,"data"+d);if(o)return o;d=d.substr(1)}if(void 0!==c)if(null==c)i.hasAttribute(d)&&i.removeAttribute(d);else{let t=c.toString();return"IMG"===i.nodeName&&("width"===d||"height"===d)&&(t=t.replace("px","")),i.setAttribute(d,t),t}return i.getAttribute(d)}}});var n=o(23282),r=o(72430),s=o(70799),a=o(12475),l=o(41180)},97639:function(t,i,o){"use strict";o.d(i,{browser:function(){return n}});let n=t=>{let i=navigator.userAgent.toLowerCase(),o=/(firefox)[\s/]([\w.]+)/.exec(i)||/(chrome)[\s/]([\w.]+)/.exec(i)||/(webkit)[\s/]([\w.]+)/.exec(i)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(i)||/(msie)[\s]([\w.]+)/.exec(i)||/(trident)\/([\w.]+)/.exec(i)||0>i.indexOf("compatible")||[];return"version"===t?o[2]:"webkit"===t?"chrome"===o[1]||"webkit"===o[1]:"ff"===t?"firefox"===o[1]:"msie"===t?"trident"===o[1]||"msie"===o[1]:o[1]===t}},44710:function(t,i,o){"use strict";o.d(i,{buildQuery:function(){return r}});var n=o(72430);let r=(t,i)=>{let o=[],s=encodeURIComponent;for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let l=i?i+"["+a+"]":a,c=t[a];o.push((0,n.isPlainObject)(c)?r(c,l):s(l)+"="+s(c))}return o.join("&")}},66292:function(t,i,o){"use strict";o.d(i,{completeUrl:function(){return r}});var n=o(82758);let r=t=>("file:"===n.globalWindow.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},68934:function(t,i,o){"use strict";o.d(i,{ConfigDeepFlatten:function(){return function t(i){return(0,u.keys)(i,!1).reduce((o,n)=>(o[n]=(0,r.isPlainObject)(i[n])?t(i[n]):i[n],o),{})}},ConfigFlatten:function(){return h},ConfigMerge:function(){return function t(i,o){Object.keys(o).forEach(n=>{if((0,d.isUnsafeProtoKey)(n))return;let s=o[n],a=i[n];(0,r.isPlainObject)(s)&&(0,r.isPlainObject)(a)&&!(0,c.isAtom)(s)?t(a,s):i[n]=s})}},ConfigProto:function(){return function t(i,o,u=0){if(Object.getPrototypeOf(i)!==Object.prototype)return i;let h=l.Config.defaultOptions;if((0,s.isString)(i.preset)){if(void 0!==h.presets[i.preset]){let t=h.presets[i.preset];Object.keys(t).forEach(o=>{(0,a.isVoid)(i[o])&&(i[o]=t[o])})}delete i.preset}let p={};return Object.keys(i).forEach(s=>{if((0,d.isUnsafeProtoKey)(s))return;let a=i[s],l=o?o[s]:null;if((0,r.isPlainObject)(a)&&(0,r.isPlainObject)(l)&&!(0,c.isAtom)(a)){p[s]=t(a,l,u+1);return}if(0!==u&&(0,n.isArray)(a)&&!(0,c.isAtom)(a)&&(0,n.isArray)(l)){p[s]=[...a,...l.slice(a.length)];return}p[s]=a}),Object.setPrototypeOf(p,o),p}}});var n=o(68345),r=o(72430),s=o(70799),a=o(86068),l=o(6441),c=o(97735),d=o(69175),u=o(37790);function h(t){return(0,u.keys)(t,!1).reduce((i,o)=>(i[o]=t[o],i),{})}},55877:function(t,i,o){"use strict";o.d(i,{convertMediaUrlToVideoEmbed:function(){return a}});var n=o(82758),r=o(26049),s=o(82501);let a=(t,{width:i=400,height:o=345}={})=>{if(!(0,r.isURL)(t))return t;let a=n.globalDocument.createElement("a");a.href=t,i||(i=400),o||(o=345);let l=a.protocol||"";switch(a.hostname){case"www.vimeo.com":case"vimeo.com":{let n=a.pathname.split("/").filter(Boolean),r=n.findIndex(t=>/^\d+$/.test(t));if(-1===r)return t;let s=n[r],c=n[r+1];return c&&0===r&&(s+="/"+c),'<iframe width="'+i+'" height="'+o+'" src="'+l+"//player.vimeo.com/video/"+s+'" 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 n=(a.search?(0,s.parseQuery)(a.search):{}).v||a.pathname.substring(1);return(n=n.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+i+'" height="'+o+'" src="'+l+"//www.youtube.com/embed/"+n+'" frameborder="0" allowfullscreen></iframe>':t}}return t}},41180:function(t,i,o){"use strict";o.d(i,{clearCenterAlign:function(){return d},css:function(){return c}});var n=o(87612),r=o(72430),s=o(3760),a=o(87058),l=o(12475);function c(t,i,o,d=!1){if((0,n.isBoolean)(o)&&(d=o,o=void 0),(0,r.isPlainObject)(i)||void 0!==o){let n=(t,i,o)=>{void 0!==(o=(0,s.normalizeCssNumericValue)(i,o))&&(null==o||c(t,i,!0)!==(0,s.normalizeCssValue)(i,o))&&(t.style[i]=o)};if((0,r.isPlainObject)(i)){let o=Object.keys(i);for(let r=0;r<o.length;r+=1)n(t,(0,a.camelCase)(o[r]),i[o[r]])}else n(t,(0,a.camelCase)(i),o);return""}let u=(0,l.kebabCase)(i),h=t.ownerDocument||document,p=!!h&&(h.defaultView||h.parentWindow),f=t.style[i],m="";return void 0!==f&&""!==f?m=f:p&&!d&&(m=p.getComputedStyle(t).getPropertyValue(u)),s.NUMBER_FIELDS_REG.test(i)&&/^[-+]?[0-9.]+px$/.test(m.toString())&&(m=parseInt(m.toString(),10)),(0,s.normalizeCssValue)(i,m)}let d=t=>{"block"===c(t,"display")&&c(t,"display","");let{style:i}=t;"auto"===i.marginLeft&&"auto"===i.marginRight&&(i.marginLeft="",i.marginRight="")}},15456:function(t,i,o){"use strict";o.d(i,{ctrlKey:function(){return n}});let n=t=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(t.metaKey&&!t.altKey)return!0}else if(t.ctrlKey&&!t.altKey)return!0;return!1}},86583:function(t,i,o){"use strict";o.d(i,{dataBind:function(){return s}});var n=o(39955);let r=new WeakMap,s=(t,i,o)=>{let s=r.get(t);if(!s){s={},r.set(t,s);let i=null;(0,n.isViewObject)(t.j)&&(i=t.j.e),(0,n.isViewObject)(t)&&(i=t.e),i&&i.on("beforeDestruct",()=>{r.delete(t)})}return void 0===o?s[i]:(s[i]=o,o)}},96325:function(t,i,o){"use strict";o.d(i,{defaultLanguage:function(){return s}});var n=o(82758),r=o(70799);let s=(t,i="en")=>"auto"!==t&&(0,r.isString)(t)?t:n.globalDocument.documentElement&&n.globalDocument.documentElement.lang?n.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):i},82760:function(t,i,o){"use strict";o.d(i,{connection:function(){return s},error:function(){return r},options:function(){return a}});var n=o(32880);function r(t){return TypeError(t)}function s(t){return new n.ConnectionError(t)}function a(t){return new n.OptionsError(t)}},93661:function(t,i,o){"use strict";function n(t="Aborted"){return new DOMException(t,"AbortError")}o.d(i,{abort:function(){return n}})},86397:function(t,i,o){"use strict";o.d(i,{ConnectionError:function(){return n}});class n extends Error{constructor(t){super(t),Object.setPrototypeOf(this,n.prototype)}}},32880:function(t,i,o){"use strict";o.d(i,{ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return s.OptionsError},abort:function(){return n.abort}});var n=o(93661),r=o(86397),s=o(57865)},57865:function(t,i,o){"use strict";o.d(i,{OptionsError:function(){return n}});class n extends TypeError{constructor(t){super(t),Object.setPrototypeOf(this,n.prototype)}}},89890:function(t,i,o){"use strict";o.d(i,{ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return r.abort},connection:function(){return n.connection},error:function(){return n.error},options:function(){return n.options}});var n=o(82760),r=o(32880)},97735:function(t,i,o){"use strict";o.d(i,{fastClone:function(){return a},isAtom:function(){return r},markAsAtomic:function(){return s}});var n=o(67462);function r(t){return t&&t.isAtom}function s(t){return Object.defineProperty(t,"isAtom",{enumerable:!1,value:!0,configurable:!1}),t}function a(t){return JSON.parse((0,n.stringify)(t))}},80568:function(t,i,o){"use strict";o.d(i,{getClassName:function(){return s},keepNames:function(){return r}});var n=o(23282);let r=new Map,s=t=>{var i;if((0,n.isFunction)(t.className))return t.className();let o=(null==(i=t.constructor)?void 0:i.originalConstructor)||t.constructor;if(r.has(o))return r.get(o);if(o.name)return o.name;let s=new RegExp(/^\s*function\s*(\S*)\s*\(/),a=o.toString().match(s);return a?a[1]:""}},94643:function(t,i,o){"use strict";o.d(i,{get:function(){return s}});var n=o(70799),r=o(86068);function s(t,i){if(!(0,n.isString)(t)||!t.length)return null;let o=t.split("."),s=i;try{for(let t of o){if((0,r.isVoid)(s[t]))return null;s=s[t]}}catch(t){return null}return(0,r.isVoid)(s)?null:s}},38420:function(t,i,o){"use strict";o.d(i,{humanSizeToBytes:function(){return n}});let n=t=>{if(/^[0-9.]+$/.test(t.toString()))return parseFloat(t);let i=t.substr(-2,2).toUpperCase(),o=["KB","MB","GB","TB"],n=parseFloat(t.substr(0,t.length-2));return -1!==o.indexOf(i)?n*Math.pow(1024,o.indexOf(i)+1):parseInt(t,10)}},43555:function(t,i,o){"use strict";o.d(i,{$$:function(){return j.$$},ConfigDeepFlatten:function(){return u.ConfigDeepFlatten},ConfigFlatten:function(){return u.ConfigFlatten},ConfigMerge:function(){return u.ConfigMerge},ConfigProto:function(){return u.ConfigProto},ConnectionError:function(){return b.ConnectionError},LimitedStack:function(){return P.LimitedStack},OptionsError:function(){return b.OptionsError},UNSAFE_PROTO_KEYS:function(){return k.UNSAFE_PROTO_KEYS},abort:function(){return b.abort},alignElement:function(){return n.alignElement},alreadyLoadedList:function(){return r.alreadyLoadedList},appendScriptAsync:function(){return r.appendScriptAsync},appendStyleAsync:function(){return r.appendStyleAsync},assert:function(){return s.assert},attr:function(){return a.attr},browser:function(){return l.browser},buildQuery:function(){return c.buildQuery},call:function(){return D.call},callPromise:function(){return D.callPromise},callThis:function(){return D.callThis},clearAlign:function(){return n.clearAlign},clearCenterAlign:function(){return p.clearCenterAlign},cns:function(){return S.cns},completeUrl:function(){return d.completeUrl},connection:function(){return b.connection},convertMediaUrlToVideoEmbed:function(){return h.convertMediaUrlToVideoEmbed},css:function(){return p.css},cssPath:function(){return j.cssPath},ctrlKey:function(){return f.ctrlKey},dataBind:function(){return m.dataBind},defaultLanguage:function(){return g.defaultLanguage},error:function(){return b.error},fastClone:function(){return y.fastClone},get:function(){return w.get},getClassName:function(){return _.getClassName},getDataTransfer:function(){return D.getDataTransfer},getPropertyDescriptor:function(){return D.getPropertyDescriptor},getXPathByElement:function(){return j.getXPathByElement},hAlignElement:function(){return n.hAlignElement},humanSizeToBytes:function(){return C.humanSizeToBytes},inView:function(){return T.inView},isAtom:function(){return y.isAtom},isUnsafeProtoKey:function(){return k.isUnsafeProtoKey},keepNames:function(){return _.keepNames},keys:function(){return D.keys},loadImage:function(){return D.loadImage},loadNext:function(){return r.loadNext},loadNextStyle:function(){return r.loadNextStyle},markAsAtomic:function(){return y.markAsAtomic},markDeprecated:function(){return S.markDeprecated},markOwner:function(){return D.markOwner},memorizeExec:function(){return D.memorizeExec},options:function(){return b.options},parseQuery:function(){return x.parseQuery},previewBox:function(){return I.previewBox},refs:function(){return j.refs},reset:function(){return E.reset},resolveElement:function(){return j.resolveElement},scrollIntoViewIfNeeded:function(){return T.scrollIntoViewIfNeeded},set:function(){return A.set}});var n=o(25726),r=o(63799),s=o(38837),a=o(29960),l=o(97639),c=o(44710),d=o(66292),u=o(68934),h=o(55877),p=o(41180),f=o(15456),m=o(86583),g=o(96325),b=o(89890),y=o(97735),w=o(94643),_=o(80568),C=o(38420),k=o(69175),S=o(95942),x=o(82501),I=o(11628),E=o(58844),T=o(26395),j=o(76078),A=o(3703),P=o(50535),D=o(37790)},69175:function(t,i,o){"use strict";o.d(i,{UNSAFE_PROTO_KEYS:function(){return n},isUnsafeProtoKey:function(){return r}});let n=["__proto__","constructor","prototype"];function r(t){return -1!==n.indexOf(t)}},95942:function(t,i,o){"use strict";o.d(i,{cns:function(){return n},markDeprecated:function(){return r}});let n=console;function r(t,i=[""],o=null){return(...r)=>(n.warn(`Method "${i[0]}" deprecated.`+(i[1]?` Use "${i[1]}" instead`:"")),t.call(o,...r))}},82501:function(t,i,o){"use strict";o.d(i,{parseQuery:function(){return n}});let n=t=>{let i={},o=t.substring(1).split("&");for(let t=0;t<o.length;t+=1){let n=o[t].split("=");i[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")}return i}},11628:function(t,i,o){"use strict";o.d(i,{previewBox:function(){return c}});var n=o(2748),r=o(70799),s=o(29960),a=o(41180),l=o(76078);function c(t,i,o="px",d=null){let u=[],h=function(t,i){let o=[];try{(0,l.$$)("img",t.editor).forEach(r=>{let a=[(0,s.attr)(r,"width"),(0,s.attr)(r,"height"),r.src];(0,s.attr)(r,{width:r.offsetWidth+i,height:r.offsetHeight+i});let l=t.createInside.a();t.ed.body.appendChild(l),l.href=r.src,r.src=l.href,n.Dom.safeRemove(l),o.push(()=>{var t;r.src=null!=(t=a[2])?t:"",(0,s.attr)(r,{width:a[0]||null,height:a[1]||null})})})}catch(t){throw o.forEach(t=>t()),o.length=0,t}return o}(t,o);try{let l=t.e.fire("beforePreviewBox",i,o);if(null!=l)return l;let c=t.c.div("jodit__preview-box jodit-context");d&&d.appendChild(c),(0,a.css)(c,{position:"relative",padding:16});let h=t.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${t.i18n("Empty")}</div>`;if(t.iframe){let i=t.create.element("iframe");(0,a.css)(i,{minWidth:800,minHeight:600,border:0}),c.appendChild(i);let o=i.contentWindow;if(o&&(t.e.fire("generateDocumentStructure.iframe",o.document,t),c=o.document.body,"function"==typeof ResizeObserver)){let n=!1,r=o.document.body,s=new ResizeObserver(t.async.debounce(()=>{s.unobserve(r),i.style.height=`${r.offsetHeight+20}px`,t.async.requestAnimationFrame(()=>{n||s.observe(r)})},100)),a=()=>{n=!0,s.unobserve(r),s.disconnect(),t.e.off("beforeDestruct",a)};u.push(a),t.e.on("beforeDestruct",a)}}else(0,a.css)(c,{minWidth:1024,minHeight:600,border:0});let p=(i,o)=>{let a=(0,r.isString)(o)?t.c.div():o;(0,r.isString)(o)&&(a.innerHTML=o);for(let t=0;t<a.childNodes.length;t+=1){let o=a.childNodes[t];if(n.Dom.isElement(o)){let t=i.ownerDocument.createElement(o.nodeName);for(let i=0;i<o.attributes.length;i+=1)(0,s.attr)(t,o.attributes[i].nodeName,o.attributes[i].nodeValue);0===o.childNodes.length||n.Dom.isTag(o,"table")?"SCRIPT"===o.nodeName?o.textContent&&(t.textContent=o.textContent):o.innerHTML&&(t.innerHTML=o.innerHTML):p(t,o);try{i.appendChild(t)}catch(t){}}else try{i.appendChild(o.cloneNode(!0))}catch(t){}}};return p(c,h),t.e.fire("afterPreviewBox",c),[c,()=>{u.forEach(t=>t())}]}finally{h.forEach(t=>t())}}},58844:function(t,i,o){"use strict";o.d(i,{reset:function(){return l}});var n=o(82758),r=o(23282),s=o(94643);let a={};function l(t){var i,o;if(!(t in a)){let o=n.globalDocument.createElement("iframe");try{if(o.src="about:blank",n.globalDocument.body.appendChild(o),!o.contentWindow)return null;let i=(0,s.get)(t,o.contentWindow),l=(0,s.get)(t.split(".").slice(0,-1).join("."),o.contentWindow);(0,r.isFunction)(i)&&(a[t]=i.bind(l))}catch(t){if(!n.IS_PROD)throw t}finally{null==(i=o.parentNode)||i.removeChild(o)}}return null!=(o=a[t])?o:null}},26395:function(t,i,o){"use strict";o.d(i,{inView:function(){return r},scrollIntoViewIfNeeded:function(){return s}});var n=o(2748);function r(t,i,o){let n=t.getBoundingClientRect(),r=t,s=n.top,a=n.height;for(;r&&r!==i&&r.parentNode;)if(s+a>(n=(r=r.parentNode).getBoundingClientRect()).bottom+1&&s>n.top||s+a<=n.top)return!1;return(s+a<=(o.documentElement&&o.documentElement.clientHeight||0)+1||s<=0)&&s+a>=0}function s(t,i,o){if(n.Dom.isHTMLElement(t)&&!r(t,i,o)){if(i.clientHeight!==i.scrollHeight){let o=t.offsetTop+t.offsetHeight-i.clientHeight;i.scrollTop=i.scrollTop<o?o:t.offsetTop}r(t,i,o)||t.scrollIntoView({block:"nearest"})}}},76078:function(t,i,o){"use strict";o.d(i,{$$:function(){return h},cssPath:function(){return m},getXPathByElement:function(){return p},refs:function(){return f},resolveElement:function(){return g}});var n=o(82758),r=o(2748),s=o(4510),a=o(70799),l=o(87058),c=o(29960),d=o(89890);let u=1;function h(t,i){let o;if(!n.IS_ES_NEXT&&/:scope/.test(t)&&n.IS_IE&&!(i&&i.nodeType===Node.DOCUMENT_NODE)){let n=i.id,r=n||"_selector_id_"+(Math.random()+"").slice(2)+ ++u;t=t.replace(/:scope/g,"#"+r),n||i.setAttribute("id",r),o=i.parentNode.querySelectorAll(t),n||i.removeAttribute("id")}else o=i.querySelectorAll(t);return[].slice.call(o)}let p=(t,i)=>{if(!t||t.nodeType!==Node.ELEMENT_NODE||!t.parentNode||i===t)return"";if(t.id)return"//*[@id='"+t.id+"']";let o=[].filter.call(t.parentNode.childNodes,i=>i.nodeName===t.nodeName);return p(t.parentNode,i)+"/"+t.nodeName.toLowerCase()+(o.length>1?"["+((0,s.toArray)(o).indexOf(t)+1)+"]":"")},f=t=>("container"in t&&(t=t.container),h("[ref],[data-ref]",t).reduce((t,i)=>{let o=(0,c.attr)(i,"-ref");return o&&(0,a.isString)(o)&&(t[(0,l.camelCase)(o)]=i,t[o]=i),t},{})),m=t=>{if(!r.Dom.isElement(t))return null;let i=[],o=t;for(;o&&o.nodeType===Node.ELEMENT_NODE;){let t=o.nodeName.toLowerCase();if(o.id){t+="#"+o.id,i.unshift(t);break}{let i=o,n=1;do(i=i.previousElementSibling)&&i.nodeName.toLowerCase()===t&&n++;while(i)t+=":nth-of-type("+n+")"}i.unshift(t),o=o.parentNode}return i.join(" > ")};function g(t,i){let o=t;if((0,a.isString)(t))try{o=i.querySelector(t)}catch(i){throw(0,d.error)('String "'+t+'" should be valid HTML selector')}if(!o||"object"!=typeof o||!r.Dom.isElement(o)||!o.cloneNode)throw(0,d.error)('Element "'+t+'" should be string or HTMLElement instance');return o}},3703:function(t,i,o){"use strict";o.d(i,{set:function(){return c}});var n=o(68345),r=o(29807),s=o(72430),a=o(70799),l=o(69175);function c(t,i,o){if(!(0,a.isString)(t)||!t.length)return;let c=t.split(".");if(c.some(l.isUnsafeProtoKey))return;let d=o,u=c[0];for(let t=0;t<c.length-1;t+=1)u=c[t],(0,n.isArray)(d[u])||(0,s.isPlainObject)(d[u])||(d[u]=(0,r.isNumeric)(c[t+1])?[]:{}),d=d[u];d&&(d[c[c.length-1]]=i)}},50535:function(t,i,o){"use strict";o.d(i,{LimitedStack:function(){return n}});class n{push(t){return this.stack.push(t),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(t){return this.stack.find(t)}constructor(t){this.limit=t,this.stack=[]}}},37790:function(t,i,o){"use strict";o.d(i,{call:function(){return l},callPromise:function(){return u},callThis:function(){return c},getDataTransfer:function(){return m},getPropertyDescriptor:function(){return g},keys:function(){return p},loadImage:function(){return h},markOwner:function(){return d},memorizeExec:function(){return f}});var n=o(14773),r=o(86068),s=o(29960),a=o(86583);function l(t,...i){return t(...i)}function c(t,i,...o){return t.apply(i,o)}function d(t,i){(0,s.attr)(i,"data-editor_id",t.id),i.component||Object.defineProperty(i,"jodit",{value:t})}function u(t,i){return(0,n.isPromise)(t)?t.then(t=>t,()=>null).finally(i):null==i?void 0:i()}let h=(t,i)=>i.async.promise((o,n)=>{let r=new Image,s=()=>{i.e.off(r),null==n||n()},a=()=>{i.e.off(r),o(r)};i.e.one(r,"load",a).one(r,"error",s).one(r,"abort",s),r.src=t,r.complete&&a()}),p=(t,i=!0)=>{if(i)return Object.keys(t);let o=[];for(let i in t)o.push(i);return o},f=(t,i,{control:o},n)=>{var s;let l="button"+o.command,c=null!=(s=o.args&&o.args[0])?s:(0,a.dataBind)(t,l);if((0,r.isVoid)(c))return!1;(0,a.dataBind)(t,l,c),n&&(c=n(c)),t.execCommand(o.command,!1,null!=c?c:void 0)},m=t=>{if(t.clipboardData)return t.clipboardData;try{return t.dataTransfer||new DataTransfer}catch(t){return null}};function g(t,i){let o;do o=Object.getOwnPropertyDescriptor(t,i),t=Object.getPrototypeOf(t);while(!o&&t)return o}},31359:function(t,i,o){"use strict";o.d(i,{init:function(){return a}});var n=o(82758),r=o(60132),s=o(14041);function a(t,i,o,a,l,c,d){if((0,r.isInitable)(a))try{a.init(t)}catch(t){if(!n.IS_PROD)throw t}l.set(i,a),c.delete(i),a.hasStyle&&(0,s.loadStyle)(t,i).catch(t=>{n.IS_PROD}),a.styles&&(d(t,i,"style").innerHTML=a.styles)}},14041:function(t,i,o){"use strict";o.d(i,{loadExtras:function(){return u},loadStyle:function(){return c}});var n=o(82758),r=o(12475),s=o(63799),a=o(89672);let l=new Set;async function c(t,i){let o=d(t,i,!1);if(!l.has(o))return l.add(o),(0,s.appendStyleAsync)(t,o)}function d(t,i,o){i=(0,r.kebabCase)(i);let n=t.minified?".min":"";return t.basePath+"plugins/"+i+"/"+i+n+"."+(o?"js":"css")}function u(t,i,o,r){try{let n=o.filter(i=>!t.has((0,a.normalizeName)(i.name)));n.length&&n.map(t=>{let o=t.url||d(i,t.name,!0);return(0,s.appendScriptAsync)(i,o).then(r).catch(()=>null)})}catch(t){if(!n.IS_PROD)throw t}}},48591:function(t,i,o){"use strict";o.d(i,{makeInstance:function(){return s}});var n=o(82758),r=o(23282);function s(t,i){try{try{return(0,r.isFunction)(i)?new i(t):i}catch(o){if((0,r.isFunction)(i)&&!i.prototype)return i(t)}}catch(t){if(!n.IS_PROD)throw t}return null}},89672:function(t,i,o){"use strict";o.d(i,{normalizeName:function(){return r}});var n=o(12475);function r(t){return(0,n.kebabCase)(t).toLowerCase()}},50911:function(t,i,o){"use strict";o.d(i,{Plugin:function(){return n.Plugin}});var n=o(20356);o(41876)},41876:function(t,i,o){"use strict";o.d(i,{PluginSystem:function(){return f}});var n=o(82758),r=o(57012),s=o(46559),a=o(68345),l=o(60132),c=o(70799),d=o(31359),u=o(14041),h=o(48591),p=o(89672);class f{get size(){return this.__items.size}add(t,i){this.__items.set((0,p.normalizeName)(t),i),r.eventEmitter.fire(`plugin:${t}:ready`)}get(t){return this.__items.get((0,p.normalizeName)(t))}remove(t){this.__items.delete((0,p.normalizeName)(t))}__getFullPluginsList(t){let i=[];return this.__items.forEach((o,n)=>{(!t||t.has(n))&&i.push([n,o])}),i}__init(t){let{extraList:i,disableList:o,filter:r}={extraList:t.o.extraPlugins.map(t=>(0,c.isString)(t)?{name:t}:t),disableList:new Set((0,s.splitArray)(t.o.disablePlugins).map(p.normalizeName)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null},f=new Map,m={},g=new Set;t.__plugins=m;let b=()=>{if(t.isInDestruct)return;let i=!1;this.__getFullPluginsList(r).forEach(([n,r])=>{if(o.has(n)||f.has(n))return;let s=null==r?void 0:r.requires;if(s&&(0,a.isArray)(s)&&s.length){if(s.some(t=>o.has(t)))return;if(!s.every(t=>f.has(t)))return void g.add(n)}i=!0;let l=(0,h.makeInstance)(t,r);if(!l){f.set(n,null),g.delete(n);return}(0,d.init)(t,n,r,l,f,g,this.opts.getContainer),m[n]=l}),i&&(t.e.fire("updatePlugins"),b())};i&&i.length&&(0,u.loadExtras)(this.__items,t,i,b),b(),t.e.on("beforeDestruct",()=>{Object.keys(m).forEach(i=>{let o=m[i];(0,l.isDestructable)(o)&&o.destruct(t),delete m[i]}),delete t.__plugins}),n.IS_PROD||g.size}wait(t){return new Promise(i=>{if(this.get(t))return i();let o=()=>{i(),r.eventEmitter.off(`plugin:${t}:ready`,o)};r.eventEmitter.on(`plugin:${t}:ready`,o)})}constructor(t){this.opts=t,this.__items=new Map}}},20356:function(t,i,o){"use strict";o.d(i,{Plugin:function(){return l}});var n=o(91907),r=o(65478),s=o(19306),a=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};class l extends n.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:t,buttons:i}=this;i&&(0,s.isJoditObject)(t)&&i.forEach(i=>{t.registerButton(i)})}__afterInit(){this.__inited=!0,this.setStatus(n.STATUSES.ready),this.afterInit(this.jodit)}init(t){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){var t;if(this.isInDestruct)return;let{j:i}=this;if(i.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(n.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,s.isJoditObject)(i)&&(null==(t=this.buttons)||t.forEach(t=>{null==i||i.unregisterButton(t)})),this.beforeDestruct(this.j),super.destruct()}constructor(t){super(t),this.buttons=[],this.hasStyle=!1,this.__inited=!1,t.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}l.requires=[],a([r.autobind],l.prototype,"__afterPluginSystemInit",null),a([r.autobind],l.prototype,"__afterInit",null),a([r.autobind],l.prototype,"__beforeDestruct",null)},54079:function(t,i,o){"use strict";o.d(i,{Ajax:function(){return u}});var n=o(8884),r=o(82758),s=o(45219),a=o(21537),l=o(89890),c=o(6441);o(57459);var d=o(98582);class u{className(){return"Ajax"}__buildParams(t,i){return(0,a.isPlainObject)(t)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(t):(0,a.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,t,i):(0,a.isString)(t)||t instanceof r.globalWindow.FormData||"object"==typeof t&&null!=t&&(0,a.isFunction)(t.append)?t:(0,a.buildQuery)(t)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(t){}return this}send(){this.__activated=!0;let{xhr:t,o:i}=this,o=this.prepareRequest();return this.__async.promise(async(n,r)=>{var s;let c=()=>{this.__isFulfilled=!0,r(l.connection("Connection error"))},u=()=>{this.__isFulfilled=!0,n(new d.Response(o,t.status,t.statusText,!t.responseType?t.responseText:t.response))};t.onload=u,t.onabort=()=>{this.__isFulfilled=!0,r(l.abort("Abort connection"))},t.onerror=c,t.ontimeout=c,i.responseType&&(t.responseType=i.responseType),t.onprogress=t=>{var i,o;let n=0;t.lengthComputable&&(n=t.loaded/t.total*100),null==(o=(i=this.options).onProgress)||o.call(i,n)},t.onreadystatechange=()=>{var o,n;null==(n=(o=this.options).onProgress)||n.call(o,10),t.readyState===XMLHttpRequest.DONE&&(i.successStatuses.includes(t.status)?u():t.statusText&&(this.__isFulfilled=!0,r(l.connection(t.statusText))))},t.withCredentials=null!=(s=i.withCredentials)&&s;let{url:h,data:p,method:f}=o;t.open(f,h,!0),i.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",i.contentType);let{headers:m}=i;(0,a.isFunction)(m)&&(m=await m.call(this)),m&&t.setRequestHeader&&Object.keys(m).forEach(i=>{t.setRequestHeader(i,m[i])}),this.__async.setTimeout(()=>{t.send(p?this.__buildParams(p):void 0)},0)})}async *stream(){var t;this.__activated=!0;let{xhr:i,o}=this,n=this.prepareRequest(),r=0,s="",c=[],d=null,u=!1,h=null,p=()=>{if(d){let t=d;d=null,t()}},f=t=>{var o;let n=i.responseText;s+=n.substring(r),r=n.length;let a=s.split(`
|
|
19
19
|
|
|
20
20
|
`);for(let i of(s=t?"":null!=(o=a.pop())?o:"",a)){let t=i.trim();if(!t)continue;let o=[];for(let i of t.split(`
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
</div>`:""}
|
|
121
121
|
</div>
|
|
122
122
|
</div>
|
|
123
|
-
</form>`)}},41409:function(t,i,o){"use strict";o.r(i),o.d(i,{Ajax:function(){return f.Ajax},Alert:function(){return a.Alert},Async:function(){return c.Async},AsyncStorage:function(){return P.AsyncStorage},Button:function(){return m.Button},CommitStyle:function(){return A.CommitStyle},Component:function(){return n.Component},Confirm:function(){return a.Confirm},ContextMenu:function(){return s.ContextMenu},Create:function(){return d.Create},Dialog:function(){return a.Dialog},Dom:function(){return u.Dom},EventEmitter:function(){return h.EventEmitter},EventHandlersStore:function(){return h.EventHandlersStore},Eventify:function(){return h.Eventify},FileBrowser:function(){return l.FileBrowser},Helpers:function(){return r},History:function(){return y.History},Icon:function(){return m.Icon},ImageEditor:function(){return _.ImageEditor},IndexedDBProvider:function(){return P.IndexedDBProvider},LazyWalker:function(){return u.LazyWalker},LocalStorageProvider:function(){return P.LocalStorageProvider},MemoryStorageProvider:function(){return P.MemoryStorageProvider},Plugin:function(){return p.Plugin},PluginSystem:function(){return j.PluginSystem},Popup:function(){return m.Popup},ProgressBar:function(){return m.ProgressBar},Prompt:function(){return a.Prompt},Response:function(){return f.Response},STATUSES:function(){return n.STATUSES},Selection:function(){return A.Selection},Snapshot:function(){return w.Snapshot},StatusBar:function(){return k.StatusBar},Storage:function(){return P.Storage},StorageKey:function(){return P.StorageKey},Table:function(){return S.Table},ToolbarButton:function(){return x.ToolbarButton},ToolbarCollection:function(){return I.ToolbarCollection},ToolbarContent:function(){return x.ToolbarContent},ToolbarEditorCollection:function(){return E.ToolbarEditorCollection},ToolbarSelect:function(){return x.ToolbarSelect},UIBlock:function(){return m.UIBlock},UIButton:function(){return m.UIButton},UIButtonGroup:function(){return m.UIButtonGroup},UIButtonState:function(){return m.UIButtonState},UICheckbox:function(){return m.UICheckbox},UIElement:function(){return m.UIElement},UIFileInput:function(){return m.UIFileInput},UIForm:function(){return m.UIForm},UIGroup:function(){return m.UIGroup},UIInput:function(){return m.UIInput},UIList:function(){return m.UIList},UIMessages:function(){return C.UIMessages},UISelect:function(){return m.UISelect},UISeparator:function(){return m.UISeparator},UISpacer:function(){return m.UISpacer},UITextArea:function(){return m.UITextArea},UITooltip:function(){return m.UITooltip},Uploader:function(){return T.Uploader},View:function(){return g.View},ViewComponent:function(){return n.ViewComponent},ViewWithToolbar:function(){return b.ViewWithToolbar},canUseIndexedDB:function(){return P.canUseIndexedDB},canUsePersistentStorage:function(){return P.canUsePersistentStorage},clearUseIndexedDBCache:function(){return P.clearUseIndexedDBCache},defaultNameSpace:function(){return h.defaultNameSpace},observable:function(){return h.observable}});var n=o(91907),r=o(21537),s=o(80870),a=o(638),l=o(78513),c=o(8884),d=o(12060),u=o(22732),h=o(3827),p=o(50911),f=o(41601),m=o(67510),g=o(35608),b=o(84075),y=o(78818),w=o(52604),_=o(50050),C=o(1808),k=o(23512),S=o(76014),x=o(36646),I=o(11676),E=o(37426),T=o(57380),j=o(41876),A=o(59242),P=o(12081)},68389:function(t,i,o){"use strict";o.d(i,{UIMessage:function(){return s}});var n=o(87325),r=o(67510);let s=class t extends r.UIElement{className(){return"UIMessage"}constructor(t,i){super(t),this.setMod("active",!0),this.setMod("variant",i.variant),this.container.textContent=i.text}};s=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a}([n.component],s)},1808:function(t,i,o){"use strict";o.d(i,{UIMessages:function(){return l}});var n=o(87325),r=o(41180),s=o(62405),a=o(68389);let l=class t extends s.UIGroup{className(){return"UIMessages"}info(t,i){this.__message(t,"info",i)}success(t,i){this.__message(t,"success",i)}error(t,i){this.__message(t,"error",i)}message(t,i,o){this.__message(t,i,o)}__message(t,i="info",o){let n=t+":"+i;if(this.__messages.has(n))return void this.async.updateTimeout(n,o||this.options.defaultTimeout);if(!this.__box)throw Error("Container is not defined: "+n);this.__box.appendChild(this.container);let r=new a.UIMessage(this.j,{text:t,variant:i});this.append(r),this.__calcOffsets(),this.__messages.add(n);let s=this.__getRemoveCallback(r,n);this.j.e.on(r.container,"pointerdown",s),this.async.setTimeout(s,{label:n,timeout:o||this.options.defaultTimeout})}__getRemoveCallback(t,i){let o=n=>{n&&n.preventDefault(),t.isInDestruct||(this.async.clearTimeout(i),this.j.e.off(t.container,"pointerdown",o),this.__messages.delete(i),t.setMod("active",!1),this.async.setTimeout(()=>{this.remove(t),t.destruct(),this.__calcOffsets()},300))};return o}__calcOffsets(){let t=5;this.elements.forEach(i=>{(0,r.css)(i.container,"bottom",t+"px"),t+=i.container.offsetHeight+this.options.defaultOffset})}constructor(t,i,o={defaultTimeout:3e3,defaultOffset:5}){super(t),this.__box=i,this.options=o,this.__messages=new Set}};l=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a}([n.component],l)},23512:function(t,i,o){"use strict";o.d(i,{StatusBar:function(){return c}});var n=o(91907),r=o(65478),s=o(2748),a=o(14316),l=o(34176);let c=class t extends n.ViewComponent{className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}getHeight(){var t,i;return null!=(i=null==(t=this.container)?void 0:t.offsetHeight)?i:0}findEmpty(t=!1){let i=this.getElms(t?"item-right":"item");for(let t=0;t<i.length;t+=1)if(!i[t].innerHTML.trim().length)return i[t]}append(t,i=!1){var o;let n=this.findEmpty(i)||this.j.c.div(this.getFullElName("item"));i&&n.classList.add(this.getFullElName("item-right")),n.appendChild(t),null==(o=this.container)||o.appendChild(n),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}destruct(){this.isInDestruct||(this.setStatus(n.STATUSES.beforeDestruct),s.Dom.safeRemove(this.container),super.destruct())}constructor(t,i){super(t),this.target=i,this.mods={},this.container=t.c.div("jodit-status-bar"),i.appendChild(this.container),this.hide()}};c=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a}([r.component,(0,r.derive)(l.Mods,a.Elms)],c)},76014:function(t,i,o){"use strict";o.d(i,{Table:function(){return u}});var n=o(91907),r=o(82758),s=o(65478),a=o(22732),l=o(580),c=o(21537);let d=new WeakMap;class u extends n.ViewComponent{className(){return"Table"}__recalculateStyles(){let t=(0,l.getContainer)(this.j,u,"style",!0),i=[];this.selected.forEach(t=>{let o=(0,c.cssPath)(t);o&&i.push(o)}),t.innerHTML=i.length?i.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(t){this.selected.add(t),this.__recalculateStyles();let i=a.Dom.closest(t,"table",this.j.editor);if(i){let o=u.__selectedByTable.get(i)||new Set;o.add(t),u.__selectedByTable.set(i,o)}}removeSelection(t){this.selected.delete(t),this.__recalculateStyles();let i=a.Dom.closest(t,"table",this.j.editor);if(i){let o=u.__selectedByTable.get(i);o&&(o.delete(t),o.size||u.__selectedByTable.delete(i))}}getAllSelectedCells(){return(0,c.toArray)(this.selected)}static __getSelectedCellsByTable(t){let i=u.__selectedByTable.get(t);return i?(0,c.toArray)(i):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(t){return t.rows.length}getRowsCount(t){return u.__getRowsCount(t)}static __getColumnsCount(t){return u.__formalMatrix(t).reduce((t,i)=>Math.max(t,i.length),0)}getColumnsCount(t){return u.__getColumnsCount(t)}static __formalMatrix(t,i){let o=[[]],n=(0,c.toArray)(t.rows),r=(t,n)=>{void 0===o[n]&&(o[n]=[]);let r=t.colSpan,s=t.rowSpan,a,l,c=0;for(;o[n][c];)c+=1;for(l=0;s>l;l+=1)for(a=0;a<r;a+=1){if(void 0===o[n+l]&&(o[n+l]=[]),i&&!1===i(t,n+l,c+a,r,s))return!1;o[n+l][c+a]=t}};for(let t=0;t<n.length;t+=1){let i=(0,c.toArray)(n[t].cells);for(let n=0;n<i.length;n+=1)if(!1===r(i[n],t))return o}return o}formalMatrix(t,i){return u.__formalMatrix(t,i)}static __formalCoordinate(t,i,o=!1){let n=0,r=0,s=1,a=1;return u.__formalMatrix(t,(t,l,c,d,u)=>{if(i===t)return n=l,r=c,s=d||1,a=u||1,o&&(r+=(d||1)-1,n+=(u||1)-1),!1}),[n,r,s,a]}formalCoordinate(t,i,o=!1){return u.__formalCoordinate(t,i,o)}static __appendRow(t,i,o,n){var r;let s;if(i)s=i.cloneNode(!0),(0,c.$$)("td,th",i).forEach(t=>{let i=(0,c.attr)(t,"rowspan");if(i&&parseInt(i,10)>1){let o=parseInt(i,10)-1;(0,c.attr)(t,"rowspan",o>1?o:null)}}),(0,c.$$)("td,th",s).forEach(t=>{t.innerHTML=""});else{let i=u.__getColumnsCount(t);s=n.element("tr");for(let t=0;t<i;t+=1)s.appendChild(n.element("td"))}o&&i&&i.nextSibling?i.parentNode&&i.parentNode.insertBefore(s,i.nextSibling):!o&&i?i.parentNode&&i.parentNode.insertBefore(s,i):((null==(r=t.getElementsByTagName("tbody"))?void 0:r[0])||t).appendChild(s)}appendRow(t,i,o){return u.__appendRow(t,i,o,this.j.createInside)}static __removeRow(t,i){let o,n=u.__formalMatrix(t),r=t.rows[i];n[i].forEach((s,l)=>{if(o=!1,i-1>=0&&n[i-1][l]===s)o=!0;else if(n[i+1]&&n[i+1][l]===s){if(s.parentNode===r&&s.parentNode.nextSibling){o=!0;let r=l+1;for(;n[i+1][r]===s;)r+=1;let c=a.Dom.next(s.parentNode,t=>a.Dom.isTag(t,"tr"),t);if(c){let t=null;for(let o=r;o<n[i+1].length;o+=1){let r=n[i+1][o];if(r&&r.parentNode===c){t=r;break}}t?c.insertBefore(s,t):c.appendChild(s)}}}else a.Dom.safeRemove(s);if(o&&(s.parentNode===r||s!==n[i][l-1])){let t=s.rowSpan;(0,c.attr)(s,"rowspan",t-1>1?t-1:null)}}),a.Dom.safeRemove(r)}removeRow(t,i){return u.__removeRow(t,i)}appendColumn(t,i,o=!0){let n=u.__formalMatrix(t);if(!o&&a.Dom.isCell(i.previousElementSibling))return this.appendColumn(t,i.previousElementSibling,!0);let[,r]=u.__formalCoordinate(t,i,o),s=o?r+1:r;for(let t=0;t<n.length;){let i=n[t];if(i[r]!==i[s]||r===s){let t=this.j.createInside.element("td");o?a.Dom.after(i[r],t):a.Dom.before(i[r],t),i[r].rowSpan>1&&(t.rowSpan=i[r].rowSpan)}else i[r].colSpan+=1;t+=i[r].rowSpan||1}}static __removeColumn(t,i){let o,n=u.__formalMatrix(t);n.forEach((t,r)=>{let s=t[i];if(o=!1,i-1>=0&&n[r][i-1]===s||i+1<t.length&&n[r][i+1]===s?o=!0:a.Dom.safeRemove(s),o&&(r-1<0||s!==n[r-1][i])){let t=s.colSpan;(0,c.attr)(s,"colspan",t-1>1?(t-1).toString():null)}})}removeColumn(t,i){return u.__removeColumn(t,i)}static __getSelectedBound(t,i){let o,n,r,s=[[1/0,1/0],[0,0]],a=u.__formalMatrix(t);for(o=0;o<a.length;o+=1)for(n=0;a[o]&&n<a[o].length;n+=1)i.includes(a[o][n])&&(s[0][0]=Math.min(o,s[0][0]),s[0][1]=Math.min(n,s[0][1]),s[1][0]=Math.max(o,s[1][0]),s[1][1]=Math.max(n,s[1][1]));for(o=s[0][0];o<=s[1][0];o+=1)for(r=1,n=s[0][1];n<=s[1][1];n+=1){for(;a[o]&&a[o][n-r]&&a[o][n]===a[o][n-r];)s[0][1]=Math.min(n-r,s[0][1]),s[1][1]=Math.max(n-r,s[1][1]),r+=1;for(r=1;a[o]&&a[o][n+r]&&a[o][n]===a[o][n+r];)s[0][1]=Math.min(n+r,s[0][1]),s[1][1]=Math.max(n+r,s[1][1]),r+=1;for(r=1;a[o-r]&&a[o][n]===a[o-r][n];)s[0][0]=Math.min(o-r,s[0][0]),s[1][0]=Math.max(o-r,s[1][0]),r+=1;for(r=1;a[o+r]&&a[o][n]===a[o+r][n];)s[0][0]=Math.min(o+r,s[0][0]),s[1][0]=Math.max(o+r,s[1][0]),r+=1}return s}getSelectedBound(t,i){return u.__getSelectedBound(t,i)}static __normalizeTable(t){let i=[],o=u.__formalMatrix(t);u.__removeExtraColspans(o,i),u.__removeExtraRowspans(o,i);for(let t=0;t<o.length;t+=1)for(let i=0;i<o[t].length;i+=1)void 0!==o[t][i]&&(o[t][i].hasAttribute("rowspan")&&1===o[t][i].rowSpan&&(0,c.attr)(o[t][i],"rowspan",null),o[t][i].hasAttribute("colspan")&&1===o[t][i].colSpan&&(0,c.attr)(o[t][i],"colspan",null),o[t][i].hasAttribute("class")&&!(0,c.attr)(o[t][i],"class")&&(0,c.attr)(o[t][i],"class",null));u.__unmark(i)}static __removeExtraColspans(t,i){for(let o=0;o<t[0].length;o+=1){let n=1e6,r=!1;for(let i=0;i<t.length;i+=1)if(void 0!==t[i][o]){if(t[i][o].colSpan<2){r=!0;break}n=Math.min(n,t[i][o].colSpan)}if(!r)for(let r=0;r<t.length;r+=1)void 0!==t[r][o]&&u.__mark(t[r][o],"colspan",t[r][o].colSpan-n+1,i)}}static __removeExtraRowspans(t,i){let o=0,n=0;for(o=0;o<t.length;o+=1){let r=1e6,s=!1;for(n=0;n<t[o].length;n+=1)if(void 0!==t[o][n]){if(t[o][n].rowSpan<2){s=!0;break}r=Math.min(r,t[o][n].rowSpan)}if(!s)for(n=0;n<t[o].length;n+=1)void 0!==t[o][n]&&u.__mark(t[o][n],"rowspan",t[o][n].rowSpan-r+1,i)}}normalizeTable(t){return u.__normalizeTable(t)}static __mergeSelected(t,i){let o=[],n=u.__getSelectedBound(t,u.__getSelectedCellsByTable(t)),s=0,l=null,d=0,p=0,f=0,m=new Set,g=[];n&&(n[0][0]-n[1][0]||n[0][1]-n[1][1])&&(u.__formalMatrix(t,(t,r,a,b,y)=>{r>=n[0][0]&&r<=n[1][0]&&a>=n[0][1]&&a<=n[1][1]&&(m.has(t)||(m.add(t),r===n[0][0]&&t.style.width&&(s+=t.offsetWidth),""!==(0,c.trim)(t.innerHTML.replace(/<br(\/)?>/g,""))&&o.push(t.innerHTML),b>1&&(p+=b-1),y>1&&(f+=y-1),l?(u.__mark(t,"remove",1,g),h(i).removeSelection(t)):(l=t,d=a)))}),p=n[1][1]-n[0][1]+1,f=n[1][0]-n[0][0]+1,l&&(p>1&&u.__mark(l,"colspan",p,g),f>1&&u.__mark(l,"rowspan",f,g),s&&(u.__mark(l,"width",(s/t.offsetWidth*100).toFixed(r.ACCURACY)+"%",g),d&&u.__setColumnWidthByDelta(t,d,0,!0,g)),l.innerHTML=o.join("<br/>"),h(i).addSelection(l),m.delete(l),u.__unmark(g),u.__normalizeTable(t),(0,c.toArray)(t.rows).forEach(t=>{t.cells.length||a.Dom.safeRemove(t)})))}mergeSelected(t){return u.__mergeSelected(t,this.j)}static __splitHorizontal(t,i){let o,n,r,s,l,c=[];u.__getSelectedCellsByTable(t).forEach(d=>{(n=i.createInside.element("td")).appendChild(i.createInside.element("br")),r=i.createInside.element("tr"),o=u.__formalCoordinate(t,d),d.rowSpan<2?(u.__formalMatrix(t,(t,i,n)=>{o[0]===i&&o[1]!==n&&t!==d&&u.__mark(t,"rowspan",t.rowSpan+1,c)}),a.Dom.after(a.Dom.closest(d,"tr",t),r),r.appendChild(n)):(u.__mark(d,"rowspan",d.rowSpan-1,c),u.__formalMatrix(t,(i,n,r)=>{n>o[0]&&n<o[0]+d.rowSpan&&o[1]>r&&i.parentNode.rowIndex===n&&(l=i),o[0]<n&&i===d&&(s=t.rows[n])}),l?a.Dom.after(l,n):s.insertBefore(n,s.firstChild)),d.colSpan>1&&u.__mark(n,"colspan",d.colSpan,c),u.__unmark(c),h(i).removeSelection(d)}),this.__normalizeTable(t)}splitHorizontal(t){return u.__splitHorizontal(t,this.j)}static __splitVertical(t,i){let o,n,s,l=[];u.__getSelectedCellsByTable(t).forEach(c=>{o=u.__formalCoordinate(t,c),c.colSpan<2?u.__formalMatrix(t,(t,i,n)=>{o[1]===n&&o[0]!==i&&t!==c&&u.__mark(t,"colspan",t.colSpan+1,l)}):u.__mark(c,"colspan",c.colSpan-1,l),(n=i.createInside.element("td")).appendChild(i.createInside.element("br")),c.rowSpan>1&&u.__mark(n,"rowspan",c.rowSpan,l);let d=c.offsetWidth;a.Dom.after(c,n),s=d/t.offsetWidth/2,u.__mark(c,"width",(100*s).toFixed(r.ACCURACY)+"%",l),u.__mark(n,"width",(100*s).toFixed(r.ACCURACY)+"%",l),u.__unmark(l),h(i).removeSelection(c)}),u.__normalizeTable(t)}splitVertical(t){return u.__splitVertical(t,this.j)}static __setColumnWidthByDelta(t,i,o,n,s){let a=u.__formalMatrix(t),l=0;for(let n=0;n<a.length;n+=1){let c=a[n][i];if(c.colSpan>1&&a.length>1)continue;let d=(c.offsetWidth+o)/t.offsetWidth*100;u.__mark(c,"width",d.toFixed(r.ACCURACY)+"%",s),l=n;break}for(let t=l+1;t<a.length;t+=1){let o=a[t][i];u.__mark(o,"width",null,s)}n||u.__unmark(s)}setColumnWidthByDelta(t,i,o,n,r){return u.__setColumnWidthByDelta(t,i,o,n,r)}static __mark(t,i,o,n){var r;n.push(t);let s=null!=(r=d.get(t))?r:{};s[i]=void 0===o?1:o,d.set(t,s)}static __unmark(t){t.forEach(t=>{let i=d.get(t);i&&(Object.keys(i).forEach(o=>{let n=i[o];switch(o){case"remove":a.Dom.safeRemove(t);break;case"rowspan":(0,c.attr)(t,"rowspan",(0,c.isNumber)(n)&&n>1?n:null);break;case"colspan":(0,c.attr)(t,"colspan",(0,c.isNumber)(n)&&n>1?n:null);break;case"width":null==n?(t.style.removeProperty("width"),(0,c.attr)(t,"style")||(0,c.attr)(t,"style",null)):t.style.width=n.toString()}delete i[o]}),d.delete(t))})}constructor(){super(...arguments),this.selected=new Set}}u.__selectedByTable=new WeakMap,function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);s>3&&a&&Object.defineProperty(i,o,a)}([(0,s.debounce)()],u.prototype,"__recalculateStyles",null);let h=t=>t.getInstance("Table",t.o)},78644:function(t,i,o){"use strict";o.d(i,{ToolbarButton:function(){return T}});var n=o(78213),r=o(82758),s=o(45219),a=o(33433),l=o(87325),c=o(37133),d=o(2748),u=o(68345),h=o(23282),p=o(19306),f=o(72430),m=o(70799),g=o(56175),b=o(87058),y=o(38837),w=o(29960),_=o(37790),C=o(62843),k=o(72157),S=o(12153),x=o(56917),I=o(21491),E=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};let T=class t extends C.UIButton{className(){return"ToolbarButton"}getRole(){return"listitem"}updateAriaLabel(){if(super.updateAriaLabel(),this.trigger){let t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,w.attr)(this.trigger,"aria-label",t)}}get toolbar(){let t=(0,l.getComponentClass)("ToolbarCollection");return this.closest(t)}update(){var t,i;let{control:o,state:n}=this,r=this.toolbar;if(!r)return;let s=null==(t=o.value)?void 0:t.call(o,r.jodit,this);void 0!==s&&(n.value=s),n.disabled=this.__calculateDisabledStatus(r),n.activated=this.__calculateActivatedStatus(r),null==(i=o.update)||i.call(o,r.jodit,this)}__calculateActivatedStatus(t){var i,o;return(!(0,p.isJoditObject)(this.j)||!!this.j.editorIsActive)&&(null!=(o=(i=this.control).isActive)&&!!o.call(i,this.j,this)||!!(t&&t.shouldBeActive(this)))}__calculateDisabledStatus(t){var i,o;return!!(this.j.o.disabled||this.j.o.readonly&&(!this.j.o.activeButtonsInReadOnly||!this.j.o.activeButtonsInReadOnly.includes(this.control.name))||(null==(o=(i=this.control).isDisabled)?void 0:o.call(i,this.j,this)))||!!(t&&t.shouldBeDisabled(this))}onChangeActivated(){(0,w.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,h.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,w.attr)(this.button,"tabindex",this.state.tabIndex),(0,w.attr)(this.trigger,"tabindex",this.state.tabIndex)}createContainer(){let t=this.componentName,i=this.j.c.span(t),o=super.createContainer();o.classList.remove(t),o.classList.add(t+"__button"),Object.defineProperty(o,"component",{value:this,configurable:!0}),i.appendChild(o);let n=this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${t}__trigger">${S.Icon.get("chevron")}</span>`);return o.appendChild(n),i}focus(){var t;null==(t=this.container.querySelector("button"))||t.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):d.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let t=this.state.disabled?"disabled":null;(0,w.attr)(this.trigger,"disabled",t),(0,w.attr)(this.button,"disabled",t),(0,w.attr)(this.container,"disabled",t)}__initFromControl(){let{control:t,state:i}=this;this.updateSize(),i.name=t.name,this.__initIconFromControl(),t.tooltip&&(i.tooltip=(0,h.isFunction)(t.tooltip)?t.tooltip(this.j,t,this):t.tooltip),i.hasTrigger=!!(t.list||t.popup&&t.exec)}__initIconFromControl(){var t;let{control:i,state:o}=this,{textIcons:n}=this.j.o;if(!0===n||(0,h.isFunction)(n)&&n(i.name)||i.template){o.icon=(0,C.UIButtonState)().icon,o.text=i.text||i.name;return}if(!(0,m.isString)(i.icon)&&null!=i.icon){o.icon={name:i.icon.name||i.name,iconURL:i.icon.iconURL||"",fill:i.icon.fill||"",scale:i.icon.scale};return}if(i.iconURL)o.icon.iconURL=i.iconURL;else{let n=i.icon||i.name;o.icon.name=S.Icon.exists(n)||(null==(t=this.j.o.extraIcons)?void 0:t[n])?n:""}i.iconURL||o.icon.name||(o.text=i.text||i.name)}onTriggerClick(t){var i,o,n;if(this.openedPopup)return void this.__closePopup();let{control:r}=this;if((0,w.attr)(this.trigger,"aria-expanded",!0),t.buffer={actionTrigger:this},r.list)return this.__openControlList(r);if((0,h.isFunction)(r.popup)){let t=this.openPopup();t.parentElement=this;try{if(!1!==this.j.e.fire((0,b.camelCase)(`before-${r.name}-open-popup`),this.target,r,t)){let s=null!=(n=null!=(o=null==(i=this.toolbar)?void 0:i.getTarget(this))?o:this.target)?n:null,a=r.popup(this.j,s,this.__closePopup,this);a?t.setContent((0,m.isString)(a)?this.j.c.fromHTML(a):a).open(()=>(0,g.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(t){throw this.__closePopup(),t}this.j.e.fire((0,b.camelCase)(`after-${r.name}-open-popup`),t.container)}}onTriggerKeyDown(t){!this.state.disabled&&[r.KEY_ENTER,r.KEY_SPACE," "].includes(t.key)&&(t.preventDefault(),this.trigger.click())}__openControlList(t){var i;let o=null!=(i=this.jodit.options.controls)?i:{},n=t=>(0,k.findControlType)(t,o),r=t.list,s=this.openPopup(),a=(0,I.makeCollection)(this.j);s.parentElement=this,a.parentElement=s,a.mode="vertical";let l=(i,o)=>{let r;if((0,m.isString)(o)&&n(o))return{name:o.toString(),...n(o)};if((0,m.isString)(i)&&n(i))return{name:i.toString(),...n(i),..."object"==typeof o?o:{}};r=i,(0,f.isPlainObject)(r)&&"title"in r&&"value"in r&&(o=i.value,i=i.title);let{childTemplate:s}=t,a={name:i.toString(),template:s&&((t,i,o)=>s(t,i,o,this)),exec:t.childExec?(i,o,n)=>{var r;return null==(r=t.childExec)?void 0:r.call(t,i,o,{...n,parentControl:t})}:t.exec,data:t.data,command:t.command,isActive:t.isChildActive,value:t.value,isDisabled:t.isChildDisabled,mode:t.mode,args:[...t.args?t.args:[],i,o]};return(0,m.isString)(o)&&(a.text=o),a};a.build((0,u.isArray)(r)?r.map(l):(0,_.keys)(r,!1).map(t=>l(t,r[t])),this.target),s.setContent(a).open(()=>(0,g.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(t){this.openedPopup&&(t&&d.Dom.isNode(t.target)&&(d.Dom.isOrContains(this.container,t.target)||this.openedPopup.isOwnClick(t))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new x.Popup(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}__closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null,this.trigger&&(0,w.attr)(this.trigger,"aria-expanded",!1))}onClick(t){var i,o,n,r,s,a,l;let{control:c}=this;if((0,h.isFunction)(c.exec)){let d=null!=(n=null!=(o=null==(i=this.toolbar)?void 0:i.getTarget(this))?o:this.target)?n:null,u=c.exec(this.j,d,{control:c,originalEvent:t,button:this});if(!1!==u&&!0!==u&&(null==(s=null==(r=this.j)?void 0:r.e)||s.fire("synchro"),this.parentElement&&this.parentElement.update(),null==(l=null==(a=this.j)?void 0:a.e)||l.fire("closeAllPopups afterExec")),!1!==u)return}return c.list?this.__openControlList(c):(0,h.isFunction)(c.popup)?this.onTriggerClick(t):void((c.command||c.name)&&((0,_.call)((0,p.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),c.command||c.name,!1,c.args&&c.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}constructor(t,i,o=null){super(t),this.control=i,this.target=o,this.state={...(0,C.UIButtonState)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;const r=this.getElm("button");(0,y.assert)(r,"Element button should exists"),this.button=r,Object.defineProperty(r,"component",{value:this,configurable:!0});const s=this.getElm("trigger");(0,y.assert)(s,"Element trigger should exists"),this.trigger=s,s.remove(),t.e.on([this.button,this.trigger],"mousedown",t=>t.preventDefault()),this.onAction(this.onClick),this.hookStatus(n.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),i.mods&&Object.keys(i.mods).forEach(t=>{i.mods&&this.setMod(t,i.mods[t])})}};E([a.cacheHTML],T.prototype,"createContainer",null),E([(0,c.watch)("state.hasTrigger",{immediately:!1})],T.prototype,"onChangeHasTrigger",null),E([(0,c.watch)("trigger:click")],T.prototype,"onTriggerClick",null),E([(0,c.watch)("trigger:keydown")],T.prototype,"onTriggerKeyDown",null),E([s.autobind],T.prototype,"onOutsideClick",null),E([s.autobind],T.prototype,"__closePopup",null),T=E([l.component],T)},80319:function(t,i,o){"use strict";o.d(i,{ToolbarContent:function(){return l}});var n=o(65478),r=o(22732),s=o(21537),a=o(62843);let l=class t extends a.UIButton{className(){return"ToolbarContent"}update(){var t,i,o;let{control:n}=this,a=n.getContent(this.j,this);((0,s.isString)(a)||a.parentNode!==this.container)&&(r.Dom.detach(this.container),this.container.appendChild((0,s.isString)(a)?this.j.create.fromHTML(a):a)),this.state.disabled=!!(null==(t=n.isDisabled)?void 0:t.call(n,this.j,this)),this.state.activated=!!(null==(i=n.isActive)?void 0:i.call(n,this.j,this)),null==(o=n.update)||o.call(n,this.j,this),this.onChangeDisabled(),this.onChangeActivated(),super.update()}onChangeDisabled(){super.onChangeDisabled(),this.container.querySelectorAll("input,button,select,textarea").forEach(t=>(0,s.attr)(t,"disabled",this.state.disabled||null))}createContainer(){return this.j.c.span(this.componentName)}constructor(t,i,o=null){super(t),this.control=i,this.target=o,this.container.classList.add(`${this.componentName}_${this.clearName(i.name)}`),(0,s.attr)(this.container,"role","content")}};l=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a}([n.component],l)},36646:function(t,i,o){"use strict";o.d(i,{ToolbarButton:function(){return n.ToolbarButton},ToolbarContent:function(){return r.ToolbarContent},ToolbarSelect:function(){return s.ToolbarSelect}});var n=o(78644),r=o(80319),s=o(83111)},83111:function(t,i,o){"use strict";o.d(i,{ToolbarSelect:function(){return l}});var n=o(65478),r=o(72430),s=o(70799),a=o(78644);let l=class t extends a.ToolbarButton{className(){return"ToolbarSelect"}update(){var t,i,o;super.update(),this.state.icon.name="";let{list:n,data:a}=this.control;if(n){let l=this.state.value||(a&&(0,s.isString)(a.currentValue)?a.currentValue:void 0);l||(l=Object.keys(n)[0]);let c=((0,r.isPlainObject)(n)&&n[l.toString()]||l).toString();this.state.text=null!=(o=null==(i=(t=this.control).textTemplate)?void 0:i.call(t,this.jodit,c))?o:c}}};l=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a}([n.component],l)},11676:function(t,i,o){"use strict";o.d(i,{ToolbarCollection:function(){return p}});var n=o(65478),r=o(45219),s=o(87325),a=o(97357),l=o(37133),c=o(82760),d=o(24536),u=o(21491),h=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};let p=class t extends d.UIList{className(){return"ToolbarCollection"}getRole(){return"toolbar"}get firstButton(){let[t]=this.buttons;return t||null}makeButton(t,i=null){return(0,u.makeButton)(this.j,t,i)}makeSelect(t,i=null){return(0,u.makeSelect)(this.j,t,i)}shouldBeActive(t){}shouldBeDisabled(t){}getTarget(t){return t.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(t){this.container.style.direction=t,this.container.setAttribute("dir",t)}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(t){throw(0,c.error)("The method is not implemented for this class.")}build(t,i=null){let o=this.j.e.fire("beforeToolbarBuild",t);return o&&(t=o),super.build(t,i),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}constructor(t){super(t),this.__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur"}};h([(0,l.watch)(":afterInit"),r.autobind],p.prototype,"__immediateUpdate",null),h([(0,n.debounce)(t=>t.j.defaultTimeout,!0)],p.prototype,"update",null),h([(0,a.hook)("ready")],p.prototype,"__initEvents",null),p=h([s.component],p)},37426:function(t,i,o){"use strict";o.d(i,{ToolbarEditorCollection:function(){return c}});var n=o(82758),r=o(65478),s=o(22732),a=o(21537),l=o(11676);let c=class t extends l.ToolbarCollection{className(){return"ToolbarEditorCollection"}shouldBeDisabled(t){let i=super.shouldBeDisabled(t);if(void 0!==i)return i;let o=void 0===t.control.mode?n.MODE_WYSIWYG:t.control.mode;return o!==n.MODE_SPLIT&&o!==this.j.getRealMode()}shouldBeActive(t){let i,o=super.shouldBeActive(t);if(void 0!==o)return o;let n=this.j.selection?this.j.s.current():null;if(!n)return!1;if(t.control.tags){let o=t.control.tags;if(i=n,s.Dom.up(i,t=>{if(t&&-1!==o.indexOf(t.nodeName.toLowerCase()))return!0},this.j.editor))return!0}if(t.control.css){let o=t.control.css;if(i=n,s.Dom.up(i,t=>{if(t&&!s.Dom.isText(t)&&!s.Dom.isComment(t))return this.checkActiveStatus(o,t)},this.j.editor))return!0}return!1}getTarget(t){return t.target||this.j.s.current()||null}prependInvisibleInput(t){let i=this.j.create.element("input",{name:"jodit-toolbar-focus-helper_"+this.j.id,tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});s.Dom.appendChildFirst(t,i)}showInline(t){this.jodit.e.fire("showInlineToolbar",t)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}constructor(t){super(t),this.checkActiveStatus=(t,i)=>{let o=0,n=0;return Object.keys(t).forEach(r=>{let s=t[r];(0,a.isFunction)(s)?s(this.j,(0,a.css)(i,r).toString())&&(o+=1):-1!==s.indexOf((0,a.css)(i,r).toString())&&(o+=1),n+=1}),n===o},this.prependInvisibleInput(this.container)}};c=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a}([r.component],c)},21491:function(t,i,o){"use strict";o.d(i,{makeButton:function(){return l},makeCollection:function(){return a},makeSelect:function(){return c}});var n=o(87325),r=o(23282),s=o(19306);function a(t,i){let o=(0,n.getComponentClass)("ToolbarCollection"),r=(0,n.getComponentClass)("ToolbarEditorCollection"),a=(0,s.isJoditObject)(t)?new r(t):new o(t);return t.o.textIcons&&a.container.classList.add("jodit_text_icons"),i&&(a.parentElement=i),t.o.toolbarButtonSize&&(a.buttonSize=t.o.toolbarButtonSize),a}function l(t,i,o=null){if((0,r.isFunction)(i.getContent))return new((0,n.getComponentClass)("ToolbarContent"))(t,i,o);let s=new((0,n.getComponentClass)("ToolbarButton"))(t,i,o);return s.state.tabIndex=t.o.allowTabNavigation?0:-1,s}function c(t,i,o=null){return new((0,n.getComponentClass)("ToolbarSelect"))(t,i,o)}},80536:function(t,i,o){"use strict";var n=o(68345),r=o(19306),s=o(6441);s.Config.prototype.enableDragAndDropFileToEditor=!0,s.Config.prototype.uploader={url:"",insertImageAsBase64URI:!1,showTabInFileSelector:!0,imagesExtensions:["jpg","jpeg","png","gif","webp","bmp","svg","tiff","avif"],headers:null,data:null,filesVariableName:t=>`files[${t}]`,withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData:t=>t,isSuccess:t=>t.success,getMessage:t=>void 0!==t.data.messages&&(0,n.isArray)(t.data.messages)?t.data.messages.join(" "):"",processFileName:(t,i,o)=>[t,i,o],process:t=>t.data,error(t){this.j.message.error(t.message,4e3)},getDisplayName:(t,i)=>t+i,defaultHandlerSuccess(t){let i=this.j||this;(0,r.isJoditObject)(i)&&t.files&&t.files.length&&t.files.forEach((o,n)=>{let[r,s]=t.isImages&&t.isImages[n]?["img","src"]:["a","href"],a=i.createInside.element(r);a.setAttribute(s,t.baseurl+o),"a"===r&&(a.textContent=i.o.uploader.getDisplayName.call(this,t.baseurl,o)),"img"===r?i.s.insertImage(a,null,i.o.imageDefaultWidth):i.s.insertNode(a)})},defaultHandlerError(t){this.j.message.error(t.message)},contentType(t){return(void 0===this.ow.FormData||"string"==typeof t)&&"application/x-www-form-urlencoded; charset=UTF-8"}}},83987:function(t,i,o){"use strict";o.d(i,{buildData:function(){return r}});var n=o(21537);function r(t,i){if((0,n.isFunction)(t.o.buildData))return t.o.buildData.call(t,i);let o=t.ow.FormData;if(void 0!==o){if(i instanceof o||(0,n.isString)(i))return i;let t=new o;return Object.keys(i).forEach(o=>{t.append(o,i[o])}),t}return i}},74569:function(t,i,o){"use strict";function n(t){let i=atob(t.split(",")[1]),o=t.split(",")[0].split(":")[1].split(";")[0],n=new Uint8Array(new ArrayBuffer(i.length));for(let t=0;t<i.length;t+=1)n[t]=i.charCodeAt(t);return new Blob([n.buffer],{type:o})}o.d(i,{dataURItoBlob:function(){return n}})},94122:function(t,i,o){"use strict";o.d(i,{ajaxInstances:function(){return r.ajaxInstances},hasFiles:function(){return a},hasItems:function(){return l},processOldBrowserDrag:function(){return n.processOldBrowserDrag},send:function(){return r.send},sendFiles:function(){return s.sendFiles}}),o(83987);var n=o(50373),r=o(71686),s=o(80020);function a(t){return!!(t&&t.files&&t.files.length>0)}function l(t){return!!(t&&t.items&&t.items.length>0)}},50373:function(t,i,o){"use strict";o.d(i,{processOldBrowserDrag:function(){return d}});var n=o(82758),r=o(22732),s=o(580),a=o(21537),l=o(74569),c=o(80020);function d(t,i,o,d,u){if(i&&(!i.types.length||i.types[0]!==n.TEXT_PLAIN)){let i=t.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});(0,s.getContainer)(t.j,t.constructor).appendChild(i);let n=(0,a.isJoditObject)(t.j)?t.j.s.save():null;i.focus(),t.j.async.setTimeout(()=>{let s=i.firstChild;if(r.Dom.safeRemove(i),s&&s.hasAttribute("src")){let i=(0,a.attr)(s,"src")||"";n&&(0,a.isJoditObject)(t.j)&&t.j.s.restore(),(0,c.sendFiles)(t,[(0,l.dataURItoBlob)(i)],o,d).finally(u)}},t.j.defaultTimeout)}}},80020:function(t,i,o){"use strict";o.d(i,{sendFiles:function(){return s}});var n=o(21537),r=o(71686);function s(t,i,o,s,a){if(!i)return Promise.reject((0,n.error)("Need files"));let{o:l}=t,c=(0,n.toArray)(i);if(!c.length)return Promise.reject((0,n.error)("Need files"));if((0,n.isFunction)(l.beforeUpload)&&!1===l.beforeUpload.call(t,c)){let i=(0,n.error)("Upload canceled");return(s||l.defaultHandlerError).call(t,i),Promise.reject(i)}let d=[];if(l.insertImageAsBase64URI&&function(t,i,o,r,s,a){let l,c,d=[];for(c=0;c<t.length;c+=1)if((l=t[c])&&l.type){let u=l.type.match(/\/([a-z0-9]+)/i),h=u[1]?u[1].toLowerCase():"";if(!i.includes(h))continue;let p=new FileReader,f=r.j.async.promise((t,i)=>{p.onerror=i,p.onloadend=()=>{let i={baseurl:"",files:[p.result],isImages:[!0]};((0,n.isFunction)(s)?s:a).call(r,i),t(i)},p.readAsDataURL(l)});d.push(f),o.push(f),t[c]=null}d.length&&Promise.all(d).then(()=>{r.j.events&&r.j.e.fire("filesWereUploaded")}).catch(()=>{})}(c,l.imagesExtensions,d,t,o,l.defaultHandlerSuccess),(c=c.filter(t=>t)).length){let i,u=new FormData;u.append(l.pathVariableName,t.path),u.append("source",t.source);for(let o=0;o<c.length;o+=1)if(i=c[o]){let n=/\.\w+$/.test(i.name),r=i.type.match(/\/([a-z0-9]+)/i),s=r&&r[1]?r[1].toLowerCase():"",a=c[o].name||Math.random().toString().replace(".","");if(!n&&s){let t=s;["jpeg","jpg"].includes(t)&&(t="jpeg|jpg"),RegExp(".("+t+")$","i").test(a)||(a+="."+s)}let[d,h,p]=l.processFileName.call(t,l.filesVariableName(o),c[o],a);u.append(d,h,p)}a&&a(u),l.data&&(0,n.isPlainObject)(l.data)&&Object.keys(l.data).forEach(t=>{u.append(t,l.data[t])}),l.prepareData.call(t,u),d.push((0,r.send)(t,u).then(i=>(l.isSuccess.call(t,i)?((0,n.isFunction)(o)?o:l.defaultHandlerSuccess).call(t,l.process.call(t,i)):((0,n.isFunction)(s)?s:l.defaultHandlerError).call(t,(0,n.error)(l.getMessage.call(t,i))),i)).then(()=>{t.j.events&&t.j.e.fire("filesWereUploaded")}))}return Promise.all(d)}},71686:function(t,i,o){"use strict";o.d(i,{ajaxInstances:function(){return a},send:function(){return l}});var n=o(21537),r=o(41601),s=o(83987);let a=new WeakMap;function l(t,i){let o=(0,s.buildData)(t,i),l=i=>{t.j.progressbar.show().progress(i),i>=100&&t.j.progressbar.hide()},c=(i,o)=>{let s=new r.Ajax({xhr(){let i=new XMLHttpRequest;return void 0!==t.j.ow.FormData&&i.upload?(o(10),i.upload.addEventListener("progress",t=>{if(t.lengthComputable){let i=t.loaded/t.total;o(i*=100)}},!1)):o(100),i},method:t.o.method||"POST",data:i,url:(0,n.isFunction)(t.o.url)?t.o.url(i):t.o.url,headers:t.o.headers,queryBuild:t.o.queryBuild,contentType:t.o.contentType.call(t,i),withCredentials:t.o.withCredentials||!1}),l=a.get(t);return l||(l=new Set,a.set(t,l)),l.add(s),t.j.e.one("beforeDestruct",s.destruct),s.send().then(t=>t.json()).catch(t=>({success:!1,data:{messages:[t]}})).finally(()=>{s.destruct(),null==l||l.delete(s)})};return((0,n.isFunction)(t.o.customUploadFunction)&&(c=t.o.customUploadFunction),(0,n.isPromise)(o))?o.then(t=>c(t,l)).catch(i=>{t.o.error.call(t,i)}):c(o,l)}},57380:function(t,i,o){"use strict";o.d(i,{Uploader:function(){return c}});var n=o(91907),r=o(82758),s=o(21537),a=o(6441),l=o(94122);o(80536);class c extends n.ViewComponent{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(t){return this.path=t,this}setSource(t){return this.source=t,this}bind(t,i,o){let n=()=>{t.classList.remove("jodit_drag_hover")},s=this,a=t=>{let a,c,d,u=t.clipboardData,h=t=>{c&&(t.append("extension",d),t.append("mimetype",c.type))};if(!r.IS_IE&&(0,l.hasFiles)(u))return(0,l.sendFiles)(s,u.files,i,o).finally(n),!1;if(r.IS_IE&&!r.IS_ES_NEXT)return(0,l.processOldBrowserDrag)(s,u,i,o,n);if((0,l.hasItems)(u)){let{items:r}=u;for(a=0;a<r.length;a+=1)if("file"===r[a].kind&&"image/png"===r[a].type){if(c=r[a].getAsFile()){let t=c.type.match(/\/([a-z0-9]+)/i);d=t[1]?t[1].toLowerCase():"",(0,l.sendFiles)(s,[c],i,o,h).finally(n)}t.preventDefault();break}}};s.j&&s.j.editor!==t?s.j.e.on(t,"paste",a):s.j.e.on("beforePaste",a),this.attachEvents(t,i,o,n)}attachEvents(t,i,o,n){let r=this;r.j.e.on(t,"dragend dragover dragenter dragleave drop",t=>{t.preventDefault()}).on(t,"dragover",i=>{((0,l.hasFiles)(i.dataTransfer)||(0,l.hasItems)(i.dataTransfer))&&(t.classList.add("jodit_drag_hover"),i.preventDefault())}).on(t,"dragend dragleave",i=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(i.dataTransfer)&&i.preventDefault()}).on(t,"drop",s=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(s.dataTransfer)&&(s.preventDefault(),s.stopImmediatePropagation(),(0,l.sendFiles)(r,s.dataTransfer.files,i,o).finally(n))});let s=t.querySelector("input[type=file]");s&&r.j.e.on(s,"change",()=>{(0,l.sendFiles)(r,s.files,i,o).then(()=>{s.value="",/safari/i.test(navigator.userAgent)||(s.type="",s.type="file")}).finally(n)})}uploadRemoteImage(t,i,o){let n=this,{o:r}=n,a=(0,s.isFunction)(o)?o:r.defaultHandlerError;(0,l.send)(n,{action:"fileUploadRemote",url:t}).then(t=>{r.isSuccess.call(n,t)?((0,s.isFunction)(i)?i:r.defaultHandlerSuccess).call(n,r.process.call(n,t)):a.call(n,(0,s.error)(r.getMessage.call(n,t)))}).catch(t=>a.call(n,t))}upload(t){return this.async.promise((i,o)=>{(0,l.sendFiles)(this,t,i,o)})}destruct(){this.setStatus(n.STATUSES.beforeDestruct);let t=l.ajaxInstances.get(this);t&&(t.forEach(t=>{try{t.destruct()}catch(t){}}),t.clear()),super.destruct()}constructor(t,i){super(t),this.path="",this.source="default",this.options=(0,s.ConfigProto)(i||{},(0,s.ConfigProto)(a.Config.defaultOptions.uploader,(0,s.isJoditObject)(t)?t.o.uploader:{}))}}},22859:function(t,i,o){"use strict";o.d(i,{ColorPickerWidget:function(){return l}});var n=o(22732),r=o(21537),s=o(67510),a=o(37068);s.Icon.set("palette",a.default);let l=(t,i,o)=>{let a="jodit-color-picker",l=(0,r.normalizeColor)(o),c=t.c.div(a),d=t.o.textIcons?`<span>${t.i18n("palette")}</span>`:s.Icon.get("palette"),u=t=>{let i=[];return(0,r.isPlainObject)(t)?Object.keys(t).forEach(o=>{i.push(`<div class="${a}__group ${a}__group-${o}">`),i.push(u(t[o])),i.push("</div>")}):(0,r.isArray)(t)&&t.forEach(t=>{i.push(`<span class='${a}__color-item ${l===t?a+"__color-item_active_true":""}' title="${t}" style="background-color:${t}" data-color="${t}"></span>`)}),i.join("")};c.appendChild(t.c.fromHTML(`<div class="${a}__groups">${u(t.o.colors)}</div>`)),c.appendChild(t.c.fromHTML(`<div data-ref="extra" class="${a}__extra"></div>`));let{extra:h}=(0,r.refs)(c);h.appendChild(t.c.fromHTML(`<div class="${a}__hex"><input data-ref="hexInput" type="text" spellcheck="false" aria-label="HEX" placeholder="#FF0000" value="${l||""}"/></div>`));let{hexInput:p}=(0,r.refs)(c),f=()=>{let t=p.value.trim(),o=/^#?[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(t),n=/^rgba?\([\d\s.,%]+\)$/i.test(t);if(!o&&!n)return;let s=(0,r.normalizeColor)(o&&!t.startsWith("#")?"#"+t:t);s&&(0,r.isFunction)(i)&&i(s)};return t.e.on(p,"keydown",t=>{t.stopPropagation(),"Enter"===t.key&&(t.preventDefault(),f())}).on(p,"change",t=>{t.stopPropagation(),f()}),t.o.showBrowserColorPicker&&(0,r.hasBrowserColorPicker)()&&(h.appendChild(t.c.fromHTML(`<div class="${a}__native">${d}<input type="color" value="#ffffff"/></div>`)),t.e.on(c,"change",t=>{t.stopPropagation();let o=t.target;if(!o||!o.tagName||!n.Dom.isTag(o,"input")||"color"!==o.type)return;let s=o.value||"";(0,r.isFunction)(i)&&i(s),t.preventDefault()})),t.e.on(c,"mousedown touchend",o=>{if(n.Dom.isTag(o.target,"input"))return void o.stopPropagation();o.stopPropagation(),o.preventDefault();let s=o.target;if((!s||!s.tagName||n.Dom.isTag(s,"svg")||n.Dom.isTag(s,"path"))&&s.parentNode&&(s=n.Dom.closest(s.parentNode,"span",t.editor)),!n.Dom.isTag(s,"span")||!s.classList.contains(a+"__color-item"))return;let l=(0,r.attr)(s,"-color")||"";i&&(0,r.isFunction)(i)&&i(l)}),t.e.fire("afterGenerateColorPicker",c,h,i,l),c}},37068:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg> '},34793:function(t,i,o){"use strict";o.d(i,{FileSelectorWidget:function(){return l}});var n=o(2748),r=o(21537),s=o(67510),a=o(38927);let l=(t,i,o,l,d=!0)=>{let u,h=[],p=t.o.uploader;if(i.upload&&!1!==p.showTabInFileSelector&&(p.url||p.insertImageAsBase64URI||p.customUploadFunction)){let o=t.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${t.i18n(d?"Drop image":"Drop file")}</strong><span><br>${t.i18n("or click")}</span><input type="file" accept="${d?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);t.uploader.bind(o,o=>{let n=(0,r.isFunction)(i.upload)?i.upload:p.defaultHandlerSuccess;(0,r.isFunction)(n)&&n.call(t,o),t.e.fire("closeAllPopups")},i=>{t.message.error(i.message),t.e.fire("closeAllPopups")}),h.push({icon:"upload",name:"Upload",content:o})}if(i.filebrowser&&(t.o.filebrowser.ajax.url||t.o.filebrowser.items.url)&&h.push({icon:"folder",name:"Browse",content(){l&&l(),i.filebrowser&&t.filebrowser.open(i.filebrowser,d)}}),i.url){let a=new s.UIButton(t,{type:"submit",variant:"primary",text:"Insert"}),l=new s.UIForm(t,[new s.UIInput(t,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new s.UIInput(t,{name:"text",label:"Alternative text"}),new s.UIBlock(t,[a])]);u=null,o&&!n.Dom.isText(o)&&!n.Dom.isComment(o)&&(n.Dom.isTag(o,"img")||(0,r.$$)("img",o).length)&&(u="IMG"===o.tagName?o:(0,r.$$)("img",o)[0],c(l.container,"input[name=url]",(0,r.attr)(u,"src")),c(l.container,"input[name=text]",(0,r.attr)(u,"alt")),a.state.text="Update"),o&&n.Dom.isTag(o,"a")&&(c(l.container,"input[name=url]",(0,r.attr)(o,"href")),c(l.container,"input[name=text]",(0,r.attr)(o,"title")),a.state.text="Update"),l.onSubmit(o=>{(0,r.isFunction)(i.url)&&i.url.call(t,o.url,o.text)}),h.push({icon:"link",name:"URL",content:l.container})}let f=(0,a.TabsWidget)(t,h);return f.classList.add("jodit-file-selector"),f};function c(t,i,o){let n=t.querySelector(i);return n?(o&&(n.value=o),n.value):""}},92762:function(t,i,o){"use strict";o.d(i,{ColorPickerWidget:function(){return n.ColorPickerWidget},FileSelectorWidget:function(){return r.FileSelectorWidget},TabsWidget:function(){return s.TabsWidget}});var n=o(22859),r=o(34793),s=o(38927)},38927:function(t,i,o){"use strict";o.d(i,{TabsWidget:function(){return c}});var n=o(91907),r=o(2748),s=o(23282),a=o(29960),l=o(67510);let c=(t,i,o)=>{let c=t.c.div("jodit-tabs"),d=t.c.div("jodit-tabs__wrapper"),u=t.c.div("jodit-tabs__buttons");(0,a.attr)(u,{role:"tablist","aria-orientation":"horizontal"});let h={},p=[],f="";c.appendChild(u),c.appendChild(d);let m=t=>{h[t]&&(p.forEach(t=>{t.state.activated=!1}),Object.values(h).forEach(({tab:t})=>t.classList.remove("jodit-tab_active")),h[t].button.state.activated=!0,h[t].tab.classList.add("jodit-tab_active"))};if(i.forEach(({icon:c,name:g,content:b})=>{let y=t.c.div("jodit-tab");(0,a.attr)(y,{role:"tabpanel"});let w=(0,l.Button)(t,c||g,g);w.state.role="tab",t.e.on(w.container,"pointerdown",t=>t.preventDefault()),f||(f=g),u.appendChild(w.container),p.push(w),w.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+i.length),(0,s.isFunction)(b)?y.classList.add("jodit-tab_empty"):y.appendChild(n.Component.isInstanceOf(b,l.UIElement)?b.container:b),d.appendChild(y),w.onAction(()=>(m(g),(0,s.isFunction)(b)&&!r.Dom.isElement(b)&&b.call(t),o&&(o.activeTab=g),!1)),h[g]={button:w,tab:y}}),m(o&&o.activeTab&&h[o.activeTab]?o.activeTab:f),o){let t=o.activeTab;Object.defineProperty(o,"activeTab",{configurable:!0,enumerable:!1,get:()=>t,set(i){t=i,m(i)}})}return c}},73391:function(t,i,o){"use strict";var n=o(82758),r=o(580),s=o(21537),a=o(12153),l=o(6441),c=o(49399);l.Config.prototype.controls.about={exec(t){let i=t.dlg({closeOnClickOverlay:!0}),o=t.i18n.bind(t);i.setMod("theme",t.o.theme).setHeader(o("About Jodit")).setContent(`<div class="jodit-about">
|
|
123
|
+
</form>`)}},41409:function(t,i,o){"use strict";o.r(i),o.d(i,{Ajax:function(){return f.Ajax},Alert:function(){return a.Alert},Async:function(){return c.Async},AsyncStorage:function(){return P.AsyncStorage},Button:function(){return m.Button},CommitStyle:function(){return A.CommitStyle},Component:function(){return n.Component},Confirm:function(){return a.Confirm},ContextMenu:function(){return s.ContextMenu},Create:function(){return d.Create},Dialog:function(){return a.Dialog},Dom:function(){return u.Dom},EventEmitter:function(){return h.EventEmitter},EventHandlersStore:function(){return h.EventHandlersStore},Eventify:function(){return h.Eventify},FileBrowser:function(){return l.FileBrowser},Helpers:function(){return r},History:function(){return y.History},Icon:function(){return m.Icon},ImageEditor:function(){return _.ImageEditor},IndexedDBProvider:function(){return P.IndexedDBProvider},LazyWalker:function(){return u.LazyWalker},LocalStorageProvider:function(){return P.LocalStorageProvider},MemoryStorageProvider:function(){return P.MemoryStorageProvider},Plugin:function(){return p.Plugin},PluginSystem:function(){return j.PluginSystem},Popup:function(){return m.Popup},ProgressBar:function(){return m.ProgressBar},Prompt:function(){return a.Prompt},Response:function(){return f.Response},STATUSES:function(){return n.STATUSES},Selection:function(){return A.Selection},Snapshot:function(){return w.Snapshot},StatusBar:function(){return k.StatusBar},Storage:function(){return P.Storage},StorageKey:function(){return P.StorageKey},Table:function(){return S.Table},ToolbarButton:function(){return x.ToolbarButton},ToolbarCollection:function(){return I.ToolbarCollection},ToolbarContent:function(){return x.ToolbarContent},ToolbarEditorCollection:function(){return E.ToolbarEditorCollection},ToolbarSelect:function(){return x.ToolbarSelect},UIBlock:function(){return m.UIBlock},UIButton:function(){return m.UIButton},UIButtonGroup:function(){return m.UIButtonGroup},UIButtonState:function(){return m.UIButtonState},UICheckbox:function(){return m.UICheckbox},UIElement:function(){return m.UIElement},UIFileInput:function(){return m.UIFileInput},UIForm:function(){return m.UIForm},UIGroup:function(){return m.UIGroup},UIInput:function(){return m.UIInput},UIList:function(){return m.UIList},UIMessages:function(){return C.UIMessages},UISelect:function(){return m.UISelect},UISeparator:function(){return m.UISeparator},UISpacer:function(){return m.UISpacer},UITextArea:function(){return m.UITextArea},UITooltip:function(){return m.UITooltip},Uploader:function(){return T.Uploader},View:function(){return g.View},ViewComponent:function(){return n.ViewComponent},ViewWithToolbar:function(){return b.ViewWithToolbar},canUseIndexedDB:function(){return P.canUseIndexedDB},canUsePersistentStorage:function(){return P.canUsePersistentStorage},clearUseIndexedDBCache:function(){return P.clearUseIndexedDBCache},defaultNameSpace:function(){return h.defaultNameSpace},observable:function(){return h.observable}});var n=o(91907),r=o(21537),s=o(80870),a=o(638),l=o(78513),c=o(8884),d=o(12060),u=o(22732),h=o(3827),p=o(50911),f=o(41601),m=o(67510),g=o(35608),b=o(84075),y=o(78818),w=o(52604),_=o(50050),C=o(1808),k=o(23512),S=o(76014),x=o(36646),I=o(11676),E=o(37426),T=o(57380),j=o(41876),A=o(59242),P=o(12081)},68389:function(t,i,o){"use strict";o.d(i,{UIMessage:function(){return s}});var n=o(87325),r=o(67510);let s=class t extends r.UIElement{className(){return"UIMessage"}constructor(t,i){super(t),this.setMod("active",!0),this.setMod("variant",i.variant),this.container.textContent=i.text}};s=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a}([n.component],s)},1808:function(t,i,o){"use strict";o.d(i,{UIMessages:function(){return l}});var n=o(87325),r=o(41180),s=o(62405),a=o(68389);let l=class t extends s.UIGroup{className(){return"UIMessages"}info(t,i){this.__message(t,"info",i)}success(t,i){this.__message(t,"success",i)}error(t,i){this.__message(t,"error",i)}message(t,i,o){this.__message(t,i,o)}__message(t,i="info",o){let n=t+":"+i;if(this.__messages.has(n))return void this.async.updateTimeout(n,o||this.options.defaultTimeout);if(!this.__box)throw Error("Container is not defined: "+n);this.__box.appendChild(this.container);let r=new a.UIMessage(this.j,{text:t,variant:i});this.append(r),this.__calcOffsets(),this.__messages.add(n);let s=this.__getRemoveCallback(r,n);this.j.e.on(r.container,"pointerdown",s),this.async.setTimeout(s,{label:n,timeout:o||this.options.defaultTimeout})}__getRemoveCallback(t,i){let o=n=>{n&&n.preventDefault(),t.isInDestruct||(this.async.clearTimeout(i),this.j.e.off(t.container,"pointerdown",o),this.__messages.delete(i),t.setMod("active",!1),this.async.setTimeout(()=>{this.remove(t),t.destruct(),this.__calcOffsets()},300))};return o}__calcOffsets(){let t=5;this.elements.forEach(i=>{(0,r.css)(i.container,"bottom",t+"px"),t+=i.container.offsetHeight+this.options.defaultOffset})}constructor(t,i,o={defaultTimeout:3e3,defaultOffset:5}){super(t),this.__box=i,this.options=o,this.__messages=new Set}};l=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a}([n.component],l)},23512:function(t,i,o){"use strict";o.d(i,{StatusBar:function(){return c}});var n=o(91907),r=o(65478),s=o(2748),a=o(14316),l=o(34176);let c=class t extends n.ViewComponent{className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}getHeight(){var t,i;return null!=(i=null==(t=this.container)?void 0:t.offsetHeight)?i:0}findEmpty(t=!1){let i=this.getElms(t?"item-right":"item");for(let t=0;t<i.length;t+=1)if(!i[t].innerHTML.trim().length)return i[t]}append(t,i=!1){var o;let n=this.findEmpty(i)||this.j.c.div(this.getFullElName("item"));i&&n.classList.add(this.getFullElName("item-right")),n.appendChild(t),null==(o=this.container)||o.appendChild(n),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}destruct(){this.isInDestruct||(this.setStatus(n.STATUSES.beforeDestruct),s.Dom.safeRemove(this.container),super.destruct())}constructor(t,i){super(t),this.target=i,this.mods={},this.container=t.c.div("jodit-status-bar"),i.appendChild(this.container),this.hide()}};c=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a}([r.component,(0,r.derive)(l.Mods,a.Elms)],c)},76014:function(t,i,o){"use strict";o.d(i,{Table:function(){return u}});var n=o(91907),r=o(82758),s=o(65478),a=o(22732),l=o(580),c=o(21537);let d=new WeakMap;class u extends n.ViewComponent{className(){return"Table"}__recalculateStyles(){let t=(0,l.getContainer)(this.j,u,"style",!0),i=[];this.selected.forEach(t=>{let o=(0,c.cssPath)(t);o&&i.push(o)}),t.innerHTML=i.length?i.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(t){this.selected.add(t),this.__recalculateStyles();let i=a.Dom.closest(t,"table",this.j.editor);if(i){let o=u.__selectedByTable.get(i)||new Set;o.add(t),u.__selectedByTable.set(i,o)}}removeSelection(t){this.selected.delete(t),this.__recalculateStyles();let i=a.Dom.closest(t,"table",this.j.editor);if(i){let o=u.__selectedByTable.get(i);o&&(o.delete(t),o.size||u.__selectedByTable.delete(i))}}getAllSelectedCells(){return(0,c.toArray)(this.selected)}static __getSelectedCellsByTable(t){let i=u.__selectedByTable.get(t);return i?(0,c.toArray)(i):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(t){return t.rows.length}getRowsCount(t){return u.__getRowsCount(t)}static __getColumnsCount(t){return u.__formalMatrix(t).reduce((t,i)=>Math.max(t,i.length),0)}getColumnsCount(t){return u.__getColumnsCount(t)}static __formalMatrix(t,i){let o=[[]],n=(0,c.toArray)(t.rows),r=(t,n)=>{void 0===o[n]&&(o[n]=[]);let r=t.colSpan,s=t.rowSpan,a,l,c=0;for(;o[n][c];)c+=1;for(l=0;s>l;l+=1)for(a=0;a<r;a+=1){if(void 0===o[n+l]&&(o[n+l]=[]),i&&!1===i(t,n+l,c+a,r,s))return!1;o[n+l][c+a]=t}};for(let t=0;t<n.length;t+=1){let i=(0,c.toArray)(n[t].cells);for(let n=0;n<i.length;n+=1)if(!1===r(i[n],t))return o}return o}formalMatrix(t,i){return u.__formalMatrix(t,i)}static __formalCoordinate(t,i,o=!1){let n=0,r=0,s=1,a=1;return u.__formalMatrix(t,(t,l,c,d,u)=>{if(i===t)return n=l,r=c,s=d||1,a=u||1,o&&(r+=(d||1)-1,n+=(u||1)-1),!1}),[n,r,s,a]}formalCoordinate(t,i,o=!1){return u.__formalCoordinate(t,i,o)}static __appendRow(t,i,o,n){var r;let s;if(i)s=i.cloneNode(!0),(0,c.$$)("td,th",i).forEach(t=>{let i=(0,c.attr)(t,"rowspan");if(i&&parseInt(i,10)>1){let o=parseInt(i,10)-1;(0,c.attr)(t,"rowspan",o>1?o:null)}}),(0,c.$$)("td,th",s).forEach(t=>{t.innerHTML=""});else{let i=u.__getColumnsCount(t);s=n.element("tr");for(let t=0;t<i;t+=1)s.appendChild(n.element("td"))}o&&i&&i.nextSibling?i.parentNode&&i.parentNode.insertBefore(s,i.nextSibling):!o&&i?i.parentNode&&i.parentNode.insertBefore(s,i):((null==(r=t.getElementsByTagName("tbody"))?void 0:r[0])||t).appendChild(s)}appendRow(t,i,o){return u.__appendRow(t,i,o,this.j.createInside)}static __removeRow(t,i){let o,n=u.__formalMatrix(t),r=t.rows[i];n[i].forEach((s,l)=>{if(o=!1,i-1>=0&&n[i-1][l]===s)o=!0;else if(n[i+1]&&n[i+1][l]===s){if(s.parentNode===r&&s.parentNode.nextSibling){o=!0;let r=l+1;for(;n[i+1][r]===s;)r+=1;let c=a.Dom.next(s.parentNode,t=>a.Dom.isTag(t,"tr"),t);if(c){let t=null;for(let o=r;o<n[i+1].length;o+=1){let r=n[i+1][o];if(r&&r.parentNode===c){t=r;break}}t?c.insertBefore(s,t):c.appendChild(s)}}}else a.Dom.safeRemove(s);if(o&&(s.parentNode===r||s!==n[i][l-1])){let t=s.rowSpan;(0,c.attr)(s,"rowspan",t-1>1?t-1:null)}}),a.Dom.safeRemove(r)}removeRow(t,i){return u.__removeRow(t,i)}appendColumn(t,i,o=!0){let n=u.__formalMatrix(t);if(!o&&a.Dom.isCell(i.previousElementSibling))return this.appendColumn(t,i.previousElementSibling,!0);let[,r]=u.__formalCoordinate(t,i,o),s=o?r+1:r;for(let t=0;t<n.length;){let i=n[t];if(i[r]!==i[s]||r===s){let t=this.j.createInside.element("td");o?a.Dom.after(i[r],t):a.Dom.before(i[r],t),i[r].rowSpan>1&&(t.rowSpan=i[r].rowSpan)}else i[r].colSpan+=1;t+=i[r].rowSpan||1}}static __removeColumn(t,i){let o,n=u.__formalMatrix(t);n.forEach((t,r)=>{let s=t[i];if(o=!1,i-1>=0&&n[r][i-1]===s||i+1<t.length&&n[r][i+1]===s?o=!0:a.Dom.safeRemove(s),o&&(r-1<0||s!==n[r-1][i])){let t=s.colSpan;(0,c.attr)(s,"colspan",t-1>1?(t-1).toString():null)}})}removeColumn(t,i){return u.__removeColumn(t,i)}static __getSelectedBound(t,i){let o,n,r,s=[[1/0,1/0],[0,0]],a=u.__formalMatrix(t);for(o=0;o<a.length;o+=1)for(n=0;a[o]&&n<a[o].length;n+=1)i.includes(a[o][n])&&(s[0][0]=Math.min(o,s[0][0]),s[0][1]=Math.min(n,s[0][1]),s[1][0]=Math.max(o,s[1][0]),s[1][1]=Math.max(n,s[1][1]));for(o=s[0][0];o<=s[1][0];o+=1)for(r=1,n=s[0][1];n<=s[1][1];n+=1){for(;a[o]&&a[o][n-r]&&a[o][n]===a[o][n-r];)s[0][1]=Math.min(n-r,s[0][1]),s[1][1]=Math.max(n-r,s[1][1]),r+=1;for(r=1;a[o]&&a[o][n+r]&&a[o][n]===a[o][n+r];)s[0][1]=Math.min(n+r,s[0][1]),s[1][1]=Math.max(n+r,s[1][1]),r+=1;for(r=1;a[o-r]&&a[o][n]===a[o-r][n];)s[0][0]=Math.min(o-r,s[0][0]),s[1][0]=Math.max(o-r,s[1][0]),r+=1;for(r=1;a[o+r]&&a[o][n]===a[o+r][n];)s[0][0]=Math.min(o+r,s[0][0]),s[1][0]=Math.max(o+r,s[1][0]),r+=1}return s}getSelectedBound(t,i){return u.__getSelectedBound(t,i)}static __normalizeTable(t){let i=[],o=u.__formalMatrix(t);u.__removeExtraColspans(o,i),u.__removeExtraRowspans(o,i);for(let t=0;t<o.length;t+=1)for(let i=0;i<o[t].length;i+=1)void 0!==o[t][i]&&(o[t][i].hasAttribute("rowspan")&&1===o[t][i].rowSpan&&(0,c.attr)(o[t][i],"rowspan",null),o[t][i].hasAttribute("colspan")&&1===o[t][i].colSpan&&(0,c.attr)(o[t][i],"colspan",null),o[t][i].hasAttribute("class")&&!(0,c.attr)(o[t][i],"class")&&(0,c.attr)(o[t][i],"class",null));u.__unmark(i)}static __removeExtraColspans(t,i){for(let o=0;o<t[0].length;o+=1){let n=1e6,r=!1;for(let i=0;i<t.length;i+=1)if(void 0!==t[i][o]){if(t[i][o].colSpan<2){r=!0;break}n=Math.min(n,t[i][o].colSpan)}if(!r)for(let r=0;r<t.length;r+=1)void 0!==t[r][o]&&u.__mark(t[r][o],"colspan",t[r][o].colSpan-n+1,i)}}static __removeExtraRowspans(t,i){let o=0,n=0;for(o=0;o<t.length;o+=1){let r=1e6,s=!1;for(n=0;n<t[o].length;n+=1)if(void 0!==t[o][n]){if(t[o][n].rowSpan<2){s=!0;break}r=Math.min(r,t[o][n].rowSpan)}if(!s)for(n=0;n<t[o].length;n+=1)void 0!==t[o][n]&&u.__mark(t[o][n],"rowspan",t[o][n].rowSpan-r+1,i)}}normalizeTable(t){return u.__normalizeTable(t)}static __mergeSelected(t,i){let o=[],n=u.__getSelectedBound(t,u.__getSelectedCellsByTable(t)),s=0,l=null,d=0,p=0,f=0,m=new Set,g=[];n&&(n[0][0]-n[1][0]||n[0][1]-n[1][1])&&(u.__formalMatrix(t,(t,r,a,b,y)=>{r>=n[0][0]&&r<=n[1][0]&&a>=n[0][1]&&a<=n[1][1]&&(m.has(t)||(m.add(t),r===n[0][0]&&t.style.width&&(s+=t.offsetWidth),""!==(0,c.trim)(t.innerHTML.replace(/<br(\/)?>/g,""))&&o.push(t.innerHTML),b>1&&(p+=b-1),y>1&&(f+=y-1),l?(u.__mark(t,"remove",1,g),h(i).removeSelection(t)):(l=t,d=a)))}),p=n[1][1]-n[0][1]+1,f=n[1][0]-n[0][0]+1,l&&(p>1&&u.__mark(l,"colspan",p,g),f>1&&u.__mark(l,"rowspan",f,g),s&&(u.__mark(l,"width",(s/t.offsetWidth*100).toFixed(r.ACCURACY)+"%",g),d&&u.__setColumnWidthByDelta(t,d,0,!0,g)),l.innerHTML=o.join("<br/>"),h(i).addSelection(l),m.delete(l),u.__unmark(g),u.__normalizeTable(t),(0,c.toArray)(t.rows).forEach(t=>{t.cells.length||a.Dom.safeRemove(t)})))}mergeSelected(t){return u.__mergeSelected(t,this.j)}static __splitHorizontal(t,i){let o,n,r,s,l,c=[];u.__getSelectedCellsByTable(t).forEach(d=>{(n=i.createInside.element("td")).appendChild(i.createInside.element("br")),r=i.createInside.element("tr"),o=u.__formalCoordinate(t,d),d.rowSpan<2?(u.__formalMatrix(t,(t,i,n)=>{o[0]===i&&o[1]!==n&&t!==d&&u.__mark(t,"rowspan",t.rowSpan+1,c)}),a.Dom.after(a.Dom.closest(d,"tr",t),r),r.appendChild(n)):(u.__mark(d,"rowspan",d.rowSpan-1,c),u.__formalMatrix(t,(i,n,r)=>{n>o[0]&&n<o[0]+d.rowSpan&&o[1]>r&&i.parentNode.rowIndex===n&&(l=i),o[0]<n&&i===d&&(s=t.rows[n])}),l?a.Dom.after(l,n):s.insertBefore(n,s.firstChild)),d.colSpan>1&&u.__mark(n,"colspan",d.colSpan,c),u.__unmark(c),h(i).removeSelection(d)}),this.__normalizeTable(t)}splitHorizontal(t){return u.__splitHorizontal(t,this.j)}static __splitVertical(t,i){let o,n,s,l=[];u.__getSelectedCellsByTable(t).forEach(c=>{o=u.__formalCoordinate(t,c),c.colSpan<2?u.__formalMatrix(t,(t,i,n)=>{o[1]===n&&o[0]!==i&&t!==c&&u.__mark(t,"colspan",t.colSpan+1,l)}):u.__mark(c,"colspan",c.colSpan-1,l),(n=i.createInside.element("td")).appendChild(i.createInside.element("br")),c.rowSpan>1&&u.__mark(n,"rowspan",c.rowSpan,l);let d=c.offsetWidth;a.Dom.after(c,n),s=d/t.offsetWidth/2,u.__mark(c,"width",(100*s).toFixed(r.ACCURACY)+"%",l),u.__mark(n,"width",(100*s).toFixed(r.ACCURACY)+"%",l),u.__unmark(l),h(i).removeSelection(c)}),u.__normalizeTable(t)}splitVertical(t){return u.__splitVertical(t,this.j)}static __setColumnWidthByDelta(t,i,o,n,s){let a=u.__formalMatrix(t),l=0;for(let n=0;n<a.length;n+=1){let c=a[n][i];if(c.colSpan>1&&a.length>1)continue;let d=(c.offsetWidth+o)/t.offsetWidth*100;u.__mark(c,"width",d.toFixed(r.ACCURACY)+"%",s),l=n;break}for(let t=l+1;t<a.length;t+=1){let o=a[t][i];u.__mark(o,"width",null,s)}n||u.__unmark(s)}setColumnWidthByDelta(t,i,o,n,r){return u.__setColumnWidthByDelta(t,i,o,n,r)}static __mark(t,i,o,n){var r;n.push(t);let s=null!=(r=d.get(t))?r:{};s[i]=void 0===o?1:o,d.set(t,s)}static __unmark(t){t.forEach(t=>{let i=d.get(t);i&&(Object.keys(i).forEach(o=>{let n=i[o];switch(o){case"remove":a.Dom.safeRemove(t);break;case"rowspan":(0,c.attr)(t,"rowspan",(0,c.isNumber)(n)&&n>1?n:null);break;case"colspan":(0,c.attr)(t,"colspan",(0,c.isNumber)(n)&&n>1?n:null);break;case"width":null==n?(t.style.removeProperty("width"),(0,c.attr)(t,"style")||(0,c.attr)(t,"style",null)):t.style.width=n.toString()}delete i[o]}),d.delete(t))})}constructor(){super(...arguments),this.selected=new Set}}u.__selectedByTable=new WeakMap,function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);s>3&&a&&Object.defineProperty(i,o,a)}([(0,s.debounce)()],u.prototype,"__recalculateStyles",null);let h=t=>t.getInstance("Table",t.o)},78644:function(t,i,o){"use strict";o.d(i,{ToolbarButton:function(){return T}});var n=o(78213),r=o(82758),s=o(45219),a=o(33433),l=o(87325),c=o(37133),d=o(2748),u=o(68345),h=o(23282),p=o(19306),f=o(72430),m=o(70799),g=o(56175),b=o(87058),y=o(38837),w=o(29960),_=o(37790),C=o(62843),k=o(72157),S=o(12153),x=o(56917),I=o(21491),E=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};let T=class t extends C.UIButton{className(){return"ToolbarButton"}getRole(){return"listitem"}updateAriaLabel(){if(super.updateAriaLabel(),this.trigger){let t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,w.attr)(this.trigger,"aria-label",t)}}get toolbar(){let t=(0,l.getComponentClass)("ToolbarCollection");return this.closest(t)}update(){var t,i;let{control:o,state:n}=this,r=this.toolbar;if(!r)return;let s=null==(t=o.value)?void 0:t.call(o,r.jodit,this);void 0!==s&&(n.value=s),n.disabled=this.__calculateDisabledStatus(r),n.activated=this.__calculateActivatedStatus(r),null==(i=o.update)||i.call(o,r.jodit,this)}__calculateActivatedStatus(t){var i,o;return(!(0,p.isJoditObject)(this.j)||!!this.j.editorIsActive)&&(null!=(o=(i=this.control).isActive)&&!!o.call(i,this.j,this)||!!(t&&t.shouldBeActive(this)))}__calculateDisabledStatus(t){var i,o;return!!(this.j.o.disabled||this.j.o.readonly&&(!this.j.o.activeButtonsInReadOnly||!this.j.o.activeButtonsInReadOnly.includes(this.control.name))||(null==(o=(i=this.control).isDisabled)?void 0:o.call(i,this.j,this)))||!!(t&&t.shouldBeDisabled(this))}onChangeActivated(){(0,w.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,h.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,w.attr)(this.button,"tabindex",this.state.tabIndex),(0,w.attr)(this.trigger,"tabindex",this.state.tabIndex)}createContainer(){let t=this.componentName,i=this.j.c.span(t),o=super.createContainer();o.classList.remove(t),o.classList.add(t+"__button"),Object.defineProperty(o,"component",{value:this,configurable:!0}),i.appendChild(o);let n=this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${t}__trigger">${S.Icon.get("chevron")}</span>`);return o.appendChild(n),i}focus(){var t;null==(t=this.container.querySelector("button"))||t.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):d.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let t=this.state.disabled?"disabled":null;(0,w.attr)(this.trigger,"disabled",t),(0,w.attr)(this.button,"disabled",t),(0,w.attr)(this.container,"disabled",t)}__initFromControl(){let{control:t,state:i}=this;this.updateSize(),i.name=t.name,this.__initIconFromControl(),t.tooltip&&(i.tooltip=(0,h.isFunction)(t.tooltip)?t.tooltip(this.j,t,this):t.tooltip),i.hasTrigger=!!(t.list||t.popup&&t.exec)}__initIconFromControl(){var t;let{control:i,state:o}=this,{textIcons:n}=this.j.o;if(!0===n||(0,h.isFunction)(n)&&n(i.name)||i.template){o.icon=(0,C.UIButtonState)().icon,o.text=i.text||i.name;return}if(!(0,m.isString)(i.icon)&&null!=i.icon){o.icon={name:i.icon.name||i.name,iconURL:i.icon.iconURL||"",fill:i.icon.fill||"",scale:i.icon.scale};return}if(i.iconURL)o.icon.iconURL=i.iconURL;else{let n=i.icon||i.name;o.icon.name=S.Icon.exists(n)||(null==(t=this.j.o.extraIcons)?void 0:t[n])?n:""}i.iconURL||o.icon.name||(o.text=i.text||i.name)}onTriggerClick(t){var i,o,n;if(this.openedPopup)return void this.__closePopup();let{control:r}=this;if((0,w.attr)(this.trigger,"aria-expanded",!0),t.buffer={actionTrigger:this},r.list)return this.__openControlList(r);if((0,h.isFunction)(r.popup)){let t=this.openPopup();t.parentElement=this;try{if(!1!==this.j.e.fire((0,b.camelCase)(`before-${r.name}-open-popup`),this.target,r,t)){let s=null!=(n=null!=(o=null==(i=this.toolbar)?void 0:i.getTarget(this))?o:this.target)?n:null,a=r.popup(this.j,s,this.__closePopup,this);a?t.setContent((0,m.isString)(a)?this.j.c.fromHTML(a):a).open(()=>(0,g.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(t){throw this.__closePopup(),t}this.j.e.fire((0,b.camelCase)(`after-${r.name}-open-popup`),t.container)}}onTriggerKeyDown(t){!this.state.disabled&&[r.KEY_ENTER,r.KEY_SPACE," "].includes(t.key)&&(t.preventDefault(),this.trigger.click())}__openControlList(t){var i;let o=null!=(i=this.jodit.options.controls)?i:{},n=t=>(0,k.findControlType)(t,o),r=t.list,s=this.openPopup(),a=(0,I.makeCollection)(this.j);s.parentElement=this,a.parentElement=s,a.mode="vertical";let l=(i,o)=>{let r;if((0,m.isString)(o)&&n(o))return{name:o.toString(),...n(o)};if((0,m.isString)(i)&&n(i))return{name:i.toString(),...n(i),..."object"==typeof o?o:{}};r=i,(0,f.isPlainObject)(r)&&"title"in r&&"value"in r&&(o=i.value,i=i.title);let{childTemplate:s}=t,a={name:i.toString(),template:s&&((t,i,o)=>s(t,i,o,this)),exec:t.childExec?(i,o,n)=>{var r;return null==(r=t.childExec)?void 0:r.call(t,i,o,{...n,parentControl:t})}:t.exec,data:t.data,command:t.command,isActive:t.isChildActive,value:t.value,isDisabled:t.isChildDisabled,mode:t.mode,args:[...t.args?t.args:[],i,o]};return(0,m.isString)(o)&&(a.text=o),a};a.build((0,u.isArray)(r)?r.map(l):(0,_.keys)(r,!1).map(t=>l(t,r[t])),this.target),s.setContent(a).open(()=>(0,g.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(t){this.openedPopup&&(t&&d.Dom.isNode(t.target)&&(d.Dom.isOrContains(this.container,t.target)||this.openedPopup.isOwnClick(t))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new x.Popup(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}__closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null,this.trigger&&(0,w.attr)(this.trigger,"aria-expanded",!1))}onClick(t){var i,o,n,r,s,a,l;let{control:c}=this;if((0,h.isFunction)(c.exec)){let d=null!=(n=null!=(o=null==(i=this.toolbar)?void 0:i.getTarget(this))?o:this.target)?n:null,u=c.exec(this.j,d,{control:c,originalEvent:t,button:this});if(!1!==u&&!0!==u&&(null==(s=null==(r=this.j)?void 0:r.e)||s.fire("synchro"),this.parentElement&&this.parentElement.update(),null==(l=null==(a=this.j)?void 0:a.e)||l.fire("closeAllPopups afterExec")),!1!==u)return}return c.list?this.__openControlList(c):(0,h.isFunction)(c.popup)?this.onTriggerClick(t):void((c.command||c.name)&&((0,_.call)((0,p.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),c.command||c.name,!1,c.args&&c.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}constructor(t,i,o=null){super(t),this.control=i,this.target=o,this.state={...(0,C.UIButtonState)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;const r=this.getElm("button");(0,y.assert)(r,"Element button should exists"),this.button=r,Object.defineProperty(r,"component",{value:this,configurable:!0});const s=this.getElm("trigger");(0,y.assert)(s,"Element trigger should exists"),this.trigger=s,s.remove(),t.e.on([this.button,this.trigger],"mousedown",t=>t.preventDefault()),this.onAction(this.onClick),this.hookStatus(n.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),i.mods&&Object.keys(i.mods).forEach(t=>{i.mods&&this.setMod(t,i.mods[t])})}};E([a.cacheHTML],T.prototype,"createContainer",null),E([(0,c.watch)("state.hasTrigger",{immediately:!1})],T.prototype,"onChangeHasTrigger",null),E([(0,c.watch)("trigger:click")],T.prototype,"onTriggerClick",null),E([(0,c.watch)("trigger:keydown")],T.prototype,"onTriggerKeyDown",null),E([s.autobind],T.prototype,"onOutsideClick",null),E([s.autobind],T.prototype,"__closePopup",null),T=E([l.component],T)},80319:function(t,i,o){"use strict";o.d(i,{ToolbarContent:function(){return l}});var n=o(65478),r=o(22732),s=o(21537),a=o(62843);let l=class t extends a.UIButton{className(){return"ToolbarContent"}update(){var t,i,o;let{control:n}=this,a=n.getContent(this.j,this);((0,s.isString)(a)||a.parentNode!==this.container)&&(r.Dom.detach(this.container),this.container.appendChild((0,s.isString)(a)?this.j.create.fromHTML(a):a)),this.state.disabled=!!(null==(t=n.isDisabled)?void 0:t.call(n,this.j,this)),this.state.activated=!!(null==(i=n.isActive)?void 0:i.call(n,this.j,this)),null==(o=n.update)||o.call(n,this.j,this),this.onChangeDisabled(),this.onChangeActivated(),super.update()}onChangeDisabled(){super.onChangeDisabled(),this.container.querySelectorAll("input,button,select,textarea").forEach(t=>(0,s.attr)(t,"disabled",this.state.disabled||null))}createContainer(){return this.j.c.span(this.componentName)}constructor(t,i,o=null){super(t),this.control=i,this.target=o,this.container.classList.add(`${this.componentName}_${this.clearName(i.name)}`),(0,s.attr)(this.container,"role","content")}};l=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a}([n.component],l)},36646:function(t,i,o){"use strict";o.d(i,{ToolbarButton:function(){return n.ToolbarButton},ToolbarContent:function(){return r.ToolbarContent},ToolbarSelect:function(){return s.ToolbarSelect}});var n=o(78644),r=o(80319),s=o(83111)},83111:function(t,i,o){"use strict";o.d(i,{ToolbarSelect:function(){return l}});var n=o(65478),r=o(72430),s=o(70799),a=o(78644);let l=class t extends a.ToolbarButton{className(){return"ToolbarSelect"}update(){var t,i,o;super.update(),this.state.icon.name="";let{list:n,data:a}=this.control;if(n){let l=this.state.value||(a&&(0,s.isString)(a.currentValue)?a.currentValue:void 0);l||(l=Object.keys(n)[0]);let c=((0,r.isPlainObject)(n)&&n[l.toString()]||l).toString();this.state.text=null!=(o=null==(i=(t=this.control).textTemplate)?void 0:i.call(t,this.jodit,c))?o:c}}};l=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a}([n.component],l)},11676:function(t,i,o){"use strict";o.d(i,{ToolbarCollection:function(){return p}});var n=o(65478),r=o(45219),s=o(87325),a=o(97357),l=o(37133),c=o(82760),d=o(24536),u=o(21491),h=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};let p=class t extends d.UIList{className(){return"ToolbarCollection"}getRole(){return"toolbar"}get firstButton(){let[t]=this.buttons;return t||null}makeButton(t,i=null){return(0,u.makeButton)(this.j,t,i)}makeSelect(t,i=null){return(0,u.makeSelect)(this.j,t,i)}shouldBeActive(t){}shouldBeDisabled(t){}getTarget(t){return t.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(t){this.container.style.direction=t,this.container.setAttribute("dir",t)}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(t){throw(0,c.error)("The method is not implemented for this class.")}build(t,i=null){let o=this.j.e.fire("beforeToolbarBuild",t);return o&&(t=o),super.build(t,i),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}constructor(t){super(t),this.__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur"}};h([(0,l.watch)(":afterInit"),r.autobind],p.prototype,"__immediateUpdate",null),h([(0,n.debounce)(t=>t.j.defaultTimeout,!0)],p.prototype,"update",null),h([(0,a.hook)("ready")],p.prototype,"__initEvents",null),p=h([s.component],p)},37426:function(t,i,o){"use strict";o.d(i,{ToolbarEditorCollection:function(){return c}});var n=o(82758),r=o(65478),s=o(22732),a=o(21537),l=o(11676);let c=class t extends l.ToolbarCollection{className(){return"ToolbarEditorCollection"}shouldBeDisabled(t){let i=super.shouldBeDisabled(t);if(void 0!==i)return i;let o=void 0===t.control.mode?n.MODE_WYSIWYG:t.control.mode;return o!==n.MODE_SPLIT&&o!==this.j.getRealMode()}shouldBeActive(t){let i,o=super.shouldBeActive(t);if(void 0!==o)return o;let n=this.j.selection?this.j.s.current():null;if(!n)return!1;if(t.control.tags){let o=t.control.tags;if(i=n,s.Dom.up(i,t=>{if(t&&-1!==o.indexOf(t.nodeName.toLowerCase()))return!0},this.j.editor))return!0}if(t.control.css){let o=t.control.css;if(i=n,s.Dom.up(i,t=>{if(t&&!s.Dom.isText(t)&&!s.Dom.isComment(t))return this.checkActiveStatus(o,t)},this.j.editor))return!0}return!1}getTarget(t){return t.target||this.j.s.current()||null}prependInvisibleInput(t){let i=this.j.create.element("input",{name:"jodit-toolbar-focus-helper_"+this.j.id,tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});s.Dom.appendChildFirst(t,i)}showInline(t){this.jodit.e.fire("showInlineToolbar",t)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}constructor(t){super(t),this.checkActiveStatus=(t,i)=>{let o=0,n=0;return Object.keys(t).forEach(r=>{let s=t[r];(0,a.isFunction)(s)?s(this.j,(0,a.css)(i,r).toString())&&(o+=1):-1!==s.indexOf((0,a.css)(i,r).toString())&&(o+=1),n+=1}),n===o},this.prependInvisibleInput(this.container)}};c=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a}([r.component],c)},21491:function(t,i,o){"use strict";o.d(i,{makeButton:function(){return l},makeCollection:function(){return a},makeSelect:function(){return c}});var n=o(87325),r=o(23282),s=o(19306);function a(t,i){let o=(0,n.getComponentClass)("ToolbarCollection"),r=(0,n.getComponentClass)("ToolbarEditorCollection"),a=(0,s.isJoditObject)(t)?new r(t):new o(t);return t.o.textIcons&&a.container.classList.add("jodit_text_icons"),i&&(a.parentElement=i),t.o.toolbarButtonSize&&(a.buttonSize=t.o.toolbarButtonSize),a}function l(t,i,o=null){if((0,r.isFunction)(i.getContent))return new((0,n.getComponentClass)("ToolbarContent"))(t,i,o);let s=new((0,n.getComponentClass)("ToolbarButton"))(t,i,o);return s.state.tabIndex=t.o.allowTabNavigation?0:-1,s}function c(t,i,o=null){return new((0,n.getComponentClass)("ToolbarSelect"))(t,i,o)}},80536:function(t,i,o){"use strict";var n=o(68345),r=o(19306),s=o(6441);s.Config.prototype.enableDragAndDropFileToEditor=!0,s.Config.prototype.uploader={url:"",insertImageAsBase64URI:!1,showTabInFileSelector:!0,imagesExtensions:["jpg","jpeg","png","gif","webp","bmp","svg","tiff","avif"],headers:null,data:null,filesVariableName:t=>`files[${t}]`,withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData:t=>t,isSuccess:t=>t.success,getMessage:t=>void 0!==t.data.messages&&(0,n.isArray)(t.data.messages)?t.data.messages.join(" "):"",processFileName:(t,i,o)=>[t,i,o],process:t=>t.data,error(t){this.j.message.error(t.message,4e3)},getDisplayName:(t,i)=>t+i,defaultHandlerSuccess(t){let i=this.j||this;(0,r.isJoditObject)(i)&&t.files&&t.files.length&&t.files.forEach((o,n)=>{let[r,s]=t.isImages&&t.isImages[n]?["img","src"]:["a","href"],a=i.createInside.element(r);a.setAttribute(s,t.baseurl+o),"a"===r&&(a.textContent=i.o.uploader.getDisplayName.call(this,t.baseurl,o)),"img"===r?i.s.insertImage(a,null,i.o.imageDefaultWidth):i.s.insertNode(a)})},defaultHandlerError(t){this.j.message.error(t.message)},contentType(t){return(void 0===this.ow.FormData||"string"==typeof t)&&"application/x-www-form-urlencoded; charset=UTF-8"}}},83987:function(t,i,o){"use strict";o.d(i,{buildData:function(){return r}});var n=o(21537);function r(t,i){if((0,n.isFunction)(t.o.buildData))return t.o.buildData.call(t,i);let o=t.ow.FormData;if(void 0!==o){if(i instanceof o||(0,n.isString)(i))return i;let t=new o;return Object.keys(i).forEach(o=>{t.append(o,i[o])}),t}return i}},74569:function(t,i,o){"use strict";function n(t){var i,o;let[n,...r]=t.split(","),s=r.join(","),a=null!=(o=null==(i=n.split(":")[1])?void 0:i.split(";")[0])?o:"",l=/;base64/i.test(n)?atob(s):decodeURIComponent(s),c=new Uint8Array(new ArrayBuffer(l.length));for(let t=0;t<l.length;t+=1)c[t]=l.charCodeAt(t);return new Blob([c.buffer],{type:a})}o.d(i,{dataURItoBlob:function(){return n}})},94122:function(t,i,o){"use strict";o.d(i,{ajaxInstances:function(){return r.ajaxInstances},hasFiles:function(){return a},hasItems:function(){return l},processOldBrowserDrag:function(){return n.processOldBrowserDrag},send:function(){return r.send},sendFiles:function(){return s.sendFiles}}),o(83987);var n=o(50373),r=o(71686),s=o(80020);function a(t){return!!(t&&t.files&&t.files.length>0)}function l(t){return!!(t&&t.items&&t.items.length>0)}},50373:function(t,i,o){"use strict";o.d(i,{processOldBrowserDrag:function(){return d}});var n=o(82758),r=o(22732),s=o(580),a=o(21537),l=o(74569),c=o(80020);function d(t,i,o,d,u){if(i&&(!i.types.length||i.types[0]!==n.TEXT_PLAIN)){let i=t.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});(0,s.getContainer)(t.j,t.constructor).appendChild(i);let n=(0,a.isJoditObject)(t.j)?t.j.s.save():null;i.focus(),t.j.async.setTimeout(()=>{let s=i.firstChild;if(r.Dom.safeRemove(i),s&&s.hasAttribute("src")){let i=(0,a.attr)(s,"src")||"";n&&(0,a.isJoditObject)(t.j)&&t.j.s.restore(),(0,c.sendFiles)(t,[(0,l.dataURItoBlob)(i)],o,d).finally(u)}},t.j.defaultTimeout)}}},80020:function(t,i,o){"use strict";o.d(i,{sendFiles:function(){return s}});var n=o(21537),r=o(71686);function s(t,i,o,s,a){if(!i)return Promise.reject((0,n.error)("Need files"));let{o:l}=t,c=(0,n.toArray)(i);if(!c.length)return Promise.reject((0,n.error)("Need files"));if((0,n.isFunction)(l.beforeUpload)&&!1===l.beforeUpload.call(t,c)){let i=(0,n.error)("Upload canceled");return(s||l.defaultHandlerError).call(t,i),Promise.reject(i)}let d=[];if(l.insertImageAsBase64URI&&function(t,i,o,r,s,a){let l,c,d=[];for(c=0;c<t.length;c+=1)if((l=t[c])&&l.type){let u=l.type.match(/\/([a-z0-9]+)/i),h=u[1]?u[1].toLowerCase():"";if(!i.includes(h))continue;let p=new FileReader,f=r.j.async.promise((t,i)=>{p.onerror=i,p.onloadend=()=>{let i={baseurl:"",files:[p.result],isImages:[!0]};((0,n.isFunction)(s)?s:a).call(r,i),t(i)},p.readAsDataURL(l)});d.push(f),o.push(f),t[c]=null}d.length&&Promise.all(d).then(()=>{r.j.events&&r.j.e.fire("filesWereUploaded")}).catch(()=>{})}(c,l.imagesExtensions,d,t,o,l.defaultHandlerSuccess),(c=c.filter(t=>t)).length){let i,u=new FormData;u.append(l.pathVariableName,t.path),u.append("source",t.source);for(let o=0;o<c.length;o+=1)if(i=c[o]){let n=/\.\w+$/.test(i.name),r=i.type.match(/\/([a-z0-9]+)/i),s=r&&r[1]?r[1].toLowerCase():"",a=c[o].name||Math.random().toString().replace(".","");if(!n&&s){let t=s;["jpeg","jpg"].includes(t)&&(t="jpeg|jpg"),RegExp(".("+t+")$","i").test(a)||(a+="."+s)}let[d,h,p]=l.processFileName.call(t,l.filesVariableName(o),c[o],a);u.append(d,h,p)}a&&a(u),l.data&&(0,n.isPlainObject)(l.data)&&Object.keys(l.data).forEach(t=>{u.append(t,l.data[t])}),l.prepareData.call(t,u),d.push((0,r.send)(t,u).then(i=>(l.isSuccess.call(t,i)?((0,n.isFunction)(o)?o:l.defaultHandlerSuccess).call(t,l.process.call(t,i)):((0,n.isFunction)(s)?s:l.defaultHandlerError).call(t,(0,n.error)(l.getMessage.call(t,i))),i)).then(()=>{t.j.events&&t.j.e.fire("filesWereUploaded")}))}return Promise.all(d)}},71686:function(t,i,o){"use strict";o.d(i,{ajaxInstances:function(){return a},send:function(){return l}});var n=o(21537),r=o(41601),s=o(83987);let a=new WeakMap;function l(t,i){let o=(0,s.buildData)(t,i),l=i=>{t.j.progressbar.show().progress(i),i>=100&&t.j.progressbar.hide()},c=(i,o)=>{let s=new r.Ajax({xhr(){let i=new XMLHttpRequest;return void 0!==t.j.ow.FormData&&i.upload?(o(10),i.upload.addEventListener("progress",t=>{if(t.lengthComputable){let i=t.loaded/t.total;o(i*=100)}},!1)):o(100),i},method:t.o.method||"POST",data:i,url:(0,n.isFunction)(t.o.url)?t.o.url(i):t.o.url,headers:t.o.headers,queryBuild:t.o.queryBuild,contentType:t.o.contentType.call(t,i),withCredentials:t.o.withCredentials||!1}),l=a.get(t);return l||(l=new Set,a.set(t,l)),l.add(s),t.j.e.one("beforeDestruct",s.destruct),s.send().then(t=>t.json()).catch(t=>({success:!1,data:{messages:[t]}})).finally(()=>{s.destruct(),null==l||l.delete(s)})};return((0,n.isFunction)(t.o.customUploadFunction)&&(c=t.o.customUploadFunction),(0,n.isPromise)(o))?o.then(t=>c(t,l)).catch(i=>{t.o.error.call(t,i)}):c(o,l)}},57380:function(t,i,o){"use strict";o.d(i,{Uploader:function(){return c}});var n=o(91907),r=o(82758),s=o(21537),a=o(6441),l=o(94122);o(80536);class c extends n.ViewComponent{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(t){return this.path=t,this}setSource(t){return this.source=t,this}bind(t,i,o){let n=()=>{t.classList.remove("jodit_drag_hover")},s=this,a=t=>{let a,c,d,u=t.clipboardData,h=t=>{c&&(t.append("extension",d),t.append("mimetype",c.type))};if(!r.IS_IE&&(0,l.hasFiles)(u))return(0,l.sendFiles)(s,u.files,i,o).finally(n),!1;if(r.IS_IE&&!r.IS_ES_NEXT)return(0,l.processOldBrowserDrag)(s,u,i,o,n);if((0,l.hasItems)(u)){let{items:r}=u;for(a=0;a<r.length;a+=1)if("file"===r[a].kind&&"image/png"===r[a].type){if(c=r[a].getAsFile()){let t=c.type.match(/\/([a-z0-9]+)/i);d=t[1]?t[1].toLowerCase():"",(0,l.sendFiles)(s,[c],i,o,h).finally(n)}t.preventDefault();break}}};s.j&&s.j.editor!==t?s.j.e.on(t,"paste",a):s.j.e.on("beforePaste",a),this.attachEvents(t,i,o,n)}attachEvents(t,i,o,n){let r=this;r.j.e.on(t,"dragend dragover dragenter dragleave drop",t=>{t.preventDefault()}).on(t,"dragover",i=>{((0,l.hasFiles)(i.dataTransfer)||(0,l.hasItems)(i.dataTransfer))&&(t.classList.add("jodit_drag_hover"),i.preventDefault())}).on(t,"dragend dragleave",i=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(i.dataTransfer)&&i.preventDefault()}).on(t,"drop",s=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(s.dataTransfer)&&(s.preventDefault(),s.stopImmediatePropagation(),(0,l.sendFiles)(r,s.dataTransfer.files,i,o).finally(n))});let s=t.querySelector("input[type=file]");s&&r.j.e.on(s,"change",()=>{(0,l.sendFiles)(r,s.files,i,o).then(()=>{s.value="",/safari/i.test(navigator.userAgent)||(s.type="",s.type="file")}).finally(n)})}uploadRemoteImage(t,i,o){let n=this,{o:r}=n,a=(0,s.isFunction)(o)?o:r.defaultHandlerError;(0,l.send)(n,{action:"fileUploadRemote",url:t}).then(t=>{r.isSuccess.call(n,t)?((0,s.isFunction)(i)?i:r.defaultHandlerSuccess).call(n,r.process.call(n,t)):a.call(n,(0,s.error)(r.getMessage.call(n,t)))}).catch(t=>a.call(n,t))}upload(t){return this.async.promise((i,o)=>{(0,l.sendFiles)(this,t,i,o)})}destruct(){this.setStatus(n.STATUSES.beforeDestruct);let t=l.ajaxInstances.get(this);t&&(t.forEach(t=>{try{t.destruct()}catch(t){}}),t.clear()),super.destruct()}constructor(t,i){super(t),this.path="",this.source="default",this.options=(0,s.ConfigProto)(i||{},(0,s.ConfigProto)(a.Config.defaultOptions.uploader,(0,s.isJoditObject)(t)?t.o.uploader:{}))}}},22859:function(t,i,o){"use strict";o.d(i,{ColorPickerWidget:function(){return l}});var n=o(22732),r=o(21537),s=o(67510),a=o(37068);s.Icon.set("palette",a.default);let l=(t,i,o)=>{let a="jodit-color-picker",l=(0,r.normalizeColor)(o),c=t.c.div(a),d=t.o.textIcons?`<span>${t.i18n("palette")}</span>`:s.Icon.get("palette"),u=t=>{let i=[];return(0,r.isPlainObject)(t)?Object.keys(t).forEach(o=>{i.push(`<div class="${a}__group ${a}__group-${o}">`),i.push(u(t[o])),i.push("</div>")}):(0,r.isArray)(t)&&t.forEach(t=>{i.push(`<span class='${a}__color-item ${l===t?a+"__color-item_active_true":""}' title="${t}" style="background-color:${t}" data-color="${t}"></span>`)}),i.join("")};c.appendChild(t.c.fromHTML(`<div class="${a}__groups">${u(t.o.colors)}</div>`)),c.appendChild(t.c.fromHTML(`<div data-ref="extra" class="${a}__extra"></div>`));let{extra:h}=(0,r.refs)(c);h.appendChild(t.c.fromHTML(`<div class="${a}__hex"><input data-ref="hexInput" type="text" spellcheck="false" aria-label="HEX" placeholder="#FF0000" value="${l||""}"/></div>`));let{hexInput:p}=(0,r.refs)(c),f=()=>{let t=p.value.trim(),o=/^#?[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(t),n=/^rgba?\([\d\s.,%]+\)$/i.test(t);if(!o&&!n)return;let s=(0,r.normalizeColor)(o&&!t.startsWith("#")?"#"+t:t);s&&(0,r.isFunction)(i)&&i(s)};return t.e.on(p,"keydown",t=>{t.stopPropagation(),"Enter"===t.key&&(t.preventDefault(),f())}).on(p,"change",t=>{t.stopPropagation(),f()}),t.o.showBrowserColorPicker&&(0,r.hasBrowserColorPicker)()&&(h.appendChild(t.c.fromHTML(`<div class="${a}__native">${d}<input type="color" value="#ffffff"/></div>`)),t.e.on(c,"change",t=>{t.stopPropagation();let o=t.target;if(!o||!o.tagName||!n.Dom.isTag(o,"input")||"color"!==o.type)return;let s=o.value||"";(0,r.isFunction)(i)&&i(s),t.preventDefault()})),t.e.on(c,"mousedown touchend",o=>{if(n.Dom.isTag(o.target,"input"))return void o.stopPropagation();o.stopPropagation(),o.preventDefault();let s=o.target;if((!s||!s.tagName||n.Dom.isTag(s,"svg")||n.Dom.isTag(s,"path"))&&s.parentNode&&(s=n.Dom.closest(s.parentNode,"span",t.editor)),!n.Dom.isTag(s,"span")||!s.classList.contains(a+"__color-item"))return;let l=(0,r.attr)(s,"-color")||"";i&&(0,r.isFunction)(i)&&i(l)}),t.e.fire("afterGenerateColorPicker",c,h,i,l),c}},37068:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg> '},34793:function(t,i,o){"use strict";o.d(i,{FileSelectorWidget:function(){return l}});var n=o(2748),r=o(21537),s=o(67510),a=o(38927);let l=(t,i,o,l,d=!0)=>{let u,h=[],p=t.o.uploader;if(i.upload&&!1!==p.showTabInFileSelector&&(p.url||p.insertImageAsBase64URI||p.customUploadFunction)){let o=t.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${t.i18n(d?"Drop image":"Drop file")}</strong><span><br>${t.i18n("or click")}</span><input type="file" accept="${d?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);t.uploader.bind(o,o=>{let n=(0,r.isFunction)(i.upload)?i.upload:p.defaultHandlerSuccess;(0,r.isFunction)(n)&&n.call(t,o),t.e.fire("closeAllPopups")},i=>{t.message.error(i.message),t.e.fire("closeAllPopups")}),h.push({icon:"upload",name:"Upload",content:o})}if(i.filebrowser&&(t.o.filebrowser.ajax.url||t.o.filebrowser.items.url)&&h.push({icon:"folder",name:"Browse",content(){l&&l(),i.filebrowser&&t.filebrowser.open(i.filebrowser,d)}}),i.url){let a=new s.UIButton(t,{type:"submit",variant:"primary",text:"Insert"}),l=new s.UIForm(t,[new s.UIInput(t,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new s.UIInput(t,{name:"text",label:"Alternative text"}),new s.UIBlock(t,[a])]);u=null,o&&!n.Dom.isText(o)&&!n.Dom.isComment(o)&&(n.Dom.isTag(o,"img")||(0,r.$$)("img",o).length)&&(u="IMG"===o.tagName?o:(0,r.$$)("img",o)[0],c(l.container,"input[name=url]",(0,r.attr)(u,"src")),c(l.container,"input[name=text]",(0,r.attr)(u,"alt")),a.state.text="Update"),o&&n.Dom.isTag(o,"a")&&(c(l.container,"input[name=url]",(0,r.attr)(o,"href")),c(l.container,"input[name=text]",(0,r.attr)(o,"title")),a.state.text="Update"),l.onSubmit(o=>{(0,r.isFunction)(i.url)&&i.url.call(t,o.url,o.text)}),h.push({icon:"link",name:"URL",content:l.container})}let f=(0,a.TabsWidget)(t,h);return f.classList.add("jodit-file-selector"),f};function c(t,i,o){let n=t.querySelector(i);return n?(o&&(n.value=o),n.value):""}},92762:function(t,i,o){"use strict";o.d(i,{ColorPickerWidget:function(){return n.ColorPickerWidget},FileSelectorWidget:function(){return r.FileSelectorWidget},TabsWidget:function(){return s.TabsWidget}});var n=o(22859),r=o(34793),s=o(38927)},38927:function(t,i,o){"use strict";o.d(i,{TabsWidget:function(){return c}});var n=o(91907),r=o(2748),s=o(23282),a=o(29960),l=o(67510);let c=(t,i,o)=>{let c=t.c.div("jodit-tabs"),d=t.c.div("jodit-tabs__wrapper"),u=t.c.div("jodit-tabs__buttons");(0,a.attr)(u,{role:"tablist","aria-orientation":"horizontal"});let h={},p=[],f="";c.appendChild(u),c.appendChild(d);let m=t=>{h[t]&&(p.forEach(t=>{t.state.activated=!1}),Object.values(h).forEach(({tab:t})=>t.classList.remove("jodit-tab_active")),h[t].button.state.activated=!0,h[t].tab.classList.add("jodit-tab_active"))};if(i.forEach(({icon:c,name:g,content:b})=>{let y=t.c.div("jodit-tab");(0,a.attr)(y,{role:"tabpanel"});let w=(0,l.Button)(t,c||g,g);w.state.role="tab",t.e.on(w.container,"pointerdown",t=>t.preventDefault()),f||(f=g),u.appendChild(w.container),p.push(w),w.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+i.length),(0,s.isFunction)(b)?y.classList.add("jodit-tab_empty"):y.appendChild(n.Component.isInstanceOf(b,l.UIElement)?b.container:b),d.appendChild(y),w.onAction(()=>(m(g),(0,s.isFunction)(b)&&!r.Dom.isElement(b)&&b.call(t),o&&(o.activeTab=g),!1)),h[g]={button:w,tab:y}}),m(o&&o.activeTab&&h[o.activeTab]?o.activeTab:f),o){let t=o.activeTab;Object.defineProperty(o,"activeTab",{configurable:!0,enumerable:!1,get:()=>t,set(i){t=i,m(i)}})}return c}},73391:function(t,i,o){"use strict";var n=o(82758),r=o(580),s=o(21537),a=o(12153),l=o(6441),c=o(49399);l.Config.prototype.controls.about={exec(t){let i=t.dlg({closeOnClickOverlay:!0}),o=t.i18n.bind(t);i.setMod("theme",t.o.theme).setHeader(o("About Jodit")).setContent(`<div class="jodit-about">
|
|
124
124
|
<div>${o("Jodit Editor")} v.${t.getVersion()}</div>
|
|
125
125
|
<div>${o("License: %s",!(0,s.isLicense)(t.o.license)?t.o.license||"MIT":(0,s.normalizeLicense)(t.o.license))}</div>
|
|
126
126
|
<div>
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
<div class="&__spinner"></div>
|
|
141
141
|
</div>
|
|
142
142
|
</div>
|
|
143
|
-
</div>`}setPrompt(t){if(t){let{jodit:i}=this,o=i.o.aiAssistant[t],{aiCommonPrefixPrompt:n,aiCommonSuffixPrompt:r}=i.o.aiAssistant;this.promptInput.value=[n,(0,a.isString)(o)?o:"",r].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(t){this.setMod("loading",!1),s.Dom.detach(this.__results),this.__aiResult=t,this.__results.appendChild(this.jodit.c.fromHTML(t)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(t){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=t,s.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let i=this.getFullElName("","hide","true");this.__results.classList.add(i),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(t){this.__submitButton.state.disabled=t,this.__tryAgainButton.state.disabled=t}__toggleInsertButton(t){this.__insertButton.state.disabled=t,this.__insertAfterButton.state.disabled=t}constructor(t,{onInsert:i,onInsertAfter:o}){super(t),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,l.Button)(t,"","Insert","primary").onAction(()=>i(this.__aiResult)),this.__insertAfterButton=(0,l.Button)(t,"","Insert After","initial").onAction(()=>o(this.__aiResult));const n=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,l.Button)(t,"ai-assistant","").onAction(n),this.__tryAgainButton=(0,l.Button)(t,"update","","initial").onAction(n),this.promptInput=new l.UITextArea(t,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});const r=new l.UIBlock(t,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new l.UIForm(t,[new l.UIBlock(t,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(i=>{this.__error.textContent="",this.setMod("loading",!0),t.e.fire("invokeAiAssistant",i.prompt);let o=this.getFullElName("","hide","true");this.__results.classList.remove(o),this.__buttons.classList.remove(o),s.Dom.detach(this.__results),this.__results.appendChild(this.__spinner),this.__insertButton.focus()}),this.__buttons.appendChild(r.container),this.__body.appendChild(this.__formAiAssistant.container),this.onChangePromptValue()}};d([(0,r.watch)(":ai-assistant-response")],u.prototype,"onAiAssistentResponse",null),d([(0,r.watch)(":ai-assistant-error")],u.prototype,"onAiAssistentError",null),d([(0,r.watch)("promptInput:change")],u.prototype,"onChangePromptValue",null),u=d([n.component],u)},25187:function(t,i,o){"use strict";o(73391),o(12391),o(93183),o(66707),o(41107),o(71255),o(82439),o(61323),o(93079),o(19063),o(19271),o(1255),o(575),o(11317),o(36243),o(23399),o(96111),o(2169),o(42263),o(16233),o(77469),o(23531),o(80763),o(3215),o(70045),o(93401),o(76295),o(59483),o(91071),o(61019),o(65517),o(20071),o(32309),o(64837),o(79799),o(31571),o(85407),o(59451),o(18363),o(8355),o(58519),o(6687),o(56113),o(9159),o(12019),o(36125),o(9881),o(28545),o(45927),o(52951),o(43809),o(7309),o(68687),o(59495),o(39627),o(767),o(43003),o(72439),o(26551),o(72253),o(65735),o(83671),o(3115)},93183:function(t,i,o){"use strict";var n=o(82758),r=o(22732),s=o(580),a=o(23282),l=o(50911),c=o(45124);o(32496);var d=o(11338),u=o(14630);class h extends l.Plugin{afterInit(t){t.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:t.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:t.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:t.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:t.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:t.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:t.o.delete.hotkeys.backspaceSentence})}beforeDestruct(t){t.e.off("afterCommand.delete")}onDelete(t,i="char"){let o=this.j,s=o.selection;if(s.isFocused()||s.focus(),(0,d.checkNotCollapsed)(o))return o.e.fire("backSpaceAfterDelete",t),!1;let l=s.range,h=o.createInside.text(n.INVISIBLE_SPACE);try{if(r.Dom.safeInsertNode(l,h),!r.Dom.isOrContains(o.editor,h))return;if(o.e.fire("backSpaceBeforeCases",t,h))return!1;(0,c.moveNodeInsideStart)(o,h,t);let s=o.o.delete.disableCases;if(u.casesMap.some(([r,l])=>{if(!(s&&s.has(r))&&(0,a.isFunction)(l)&&l(o,h,t,i))return n.IS_PROD,!0}))return!1}catch(t){throw n.IS_PROD,t}finally{o.e.fire("backSpaceAfterDelete",t,h),this.safeRemoveEmptyNode(h)}return!1}safeRemoveEmptyNode(t){var i,o;let{range:n}=this.j.s;n.startContainer===t&&(t.previousSibling?r.Dom.isText(t.previousSibling)?n.setStart(t.previousSibling,null!=(o=null==(i=t.previousSibling.nodeValue)?void 0:i.length)?o:0):n.setStartAfter(t.previousSibling):t.nextSibling&&(r.Dom.isText(t.nextSibling)?n.setStart(t.nextSibling,0):n.setStartBefore(t.nextSibling)),n.collapse(!0),this.j.s.selectRange(n)),r.Dom.safeRemove(t)}}h.requires=["hotkeys"],s.pluginSystem.add("backspace",h)},62845:function(t,i,o){"use strict";o.d(i,{checkJoinNeighbors:function(){return a}});var n=o(82758),r=o(2748),s=o(63785);function a(t,i,o){let s=i,a=s;for(;s&&!r.Dom.findNotEmptySibling(s,o)&&s.parentElement!==t.editor;)a=s=s.parentElement;if(r.Dom.isElement(a)&&r.Dom.isContentEditable(a,t.editor)){var c,d;let s,u,h,p=r.Dom.findNotEmptySibling(a,o);if(r.Dom.isTag(p,"br"))return r.Dom.safeRemove(p),t.s.setCursorBefore(i),!0;if(p&&(c=a,d=p,s=r.Dom.isTag(d,n.LIST_TAGS),u=r.Dom.isTag(c,n.LIST_TAGS),h=(t,i)=>i?t.firstElementChild:t.lastElementChild,(u?(d=t.createInside.element(t.o.enterBlock),r.Dom.before(c,d),l(t,h(c,o),d,o)):!!d&&!!s&&!u&&l(t,c,h(d,!o),o))||l(t,a,function(t,i){if(!r.Dom.isTag(t,"table"))return t;let o=t.querySelectorAll("td,th");return o.length?o[i?o.length-1:0]:null}(p,o),o)))return t.s.setCursorBefore(i),!0}return!1}function l(t,i,o,n){if(i&&r.Dom.isElement(o)){r.Dom.moveContent(i,o,!n,(0,s.getMoveFilter)(t));let a=i;for(;a&&a!==t.editor&&r.Dom.isEmpty(a);){let t=a.parentElement;r.Dom.safeRemove(a),a=t}return!0}return!1}},91748:function(t,i,o){"use strict";o.d(i,{checkJoinTwoLists:function(){return a}});var n=o(2748),r=o(37790),s=o(63785);function a(t,i,o){let a=n.Dom.findSibling(i,o),l=n.Dom.findSibling(i,!o);if(!n.Dom.closest(i,n.Dom.isElement,t.editor)&&n.Dom.isList(a)&&n.Dom.isList(l)&&n.Dom.isTag(a.lastElementChild,"li")&&n.Dom.isTag(l.firstElementChild,"li")){let{setCursorBefore:c,setCursorAfter:d}=t.s,u=a.lastElementChild,h=l.firstElementChild;return(0,r.call)(o?n.Dom.prepend:n.Dom.append,h,i),n.Dom.moveContent(l,a,!o,(0,s.getMoveFilter)(t)),n.Dom.safeRemove(l),(0,r.call)(o?n.Dom.append:n.Dom.prepend,u,i),(0,r.call)(o?c:d,i),!0}return!1}},11338:function(t,i,o){"use strict";function n(t){return!t.s.isCollapsed()&&(t.execCommand("Delete"),!0)}o.d(i,{checkNotCollapsed:function(){return n}})},73792:function(t,i,o){"use strict";o.d(i,{checkRemoveChar:function(){return function t(i,o,a,c){var d,u,h,p;let f,m=a?-1:1,g=r.Dom.sibling(o,!a),b=r.Dom.sibling(o,a),y=null,w=!1;for(b||(b=l(o,a,i.editor));b&&(r.Dom.isText(b)||r.Dom.isInlineBlock(b));){for(;r.Dom.isInlineBlock(b);)b=a?null==b?void 0:b.lastChild:null==b?void 0:b.firstChild;if(!b)break;if((null==(d=b.nodeValue)?void 0:d.length)&&(f=function(t,i,o,a){let l=(0,s.toArray)(t.nodeValue),c=l.length,d=i?c-1:0;if(l[d]===n.INVISIBLE_SPACE)for(;l[d]===n.INVISIBLE_SPACE;)d+=o;let u=l[d];if(l[d+o]===n.INVISIBLE_SPACE){for(d+=o;l[d]===n.INVISIBLE_SPACE;)d+=o;d+=i?1:-1}return l=i&&d<0?[]:l.slice(i?0:d+1,i?d:c),function(t,i,o){var a;if(!t||!r.Dom.isText(t)||(!i?/ $/:/^ /).test(null!=(a=t.nodeValue)?a:"")||!(0,s.trimInv)(t.nodeValue||"").length)for(let t=i?o.length-1:0;i?t>=0:t<o.length;t+=i?-1:1)if(" "===o[t])o[t]=n.NBSP_SPACE;else break}(a,i,l),t.nodeValue=l.join(""),u}(b,a,m,g),!b.nodeValue.length&&r.Dom.isInlineBlock(b.parentNode)&&(b.nodeValue=n.INVISIBLE_SPACE)),(null==(u=b.nodeValue)?void 0:u.length)||(y=b),!(0,s.isVoid)(f)&&f!==n.INVISIBLE_SPACE){h=b,p=f,(0,s.call)(a?r.Dom.after:r.Dom.before,h,o),("sentence"===c||"word"===c&&" "!==p&&p!==n.NBSP_SPACE)&&t(i,o,a,c),w=!0;break}let _=l(b,a,i.editor);y&&(r.Dom.safeRemove(y),y=null),b=_}return y&&(r.Dom.safeRemove(y),y=null),w&&(function(t){let i=t.parentElement;for(;i&&r.Dom.isInlineBlock(i)&&r.Dom.isTag(i,"a");){let o=i.parentElement;r.Dom.isEmpty(i)&&(r.Dom.after(i,t),r.Dom.safeRemove(i)),i=o}}(o),o.parentElement!==i.editor&&r.Dom.isBlock(o.parentElement)&&r.Dom.each(o.parentElement,r.Dom.isEmptyTextNode)&&r.Dom.after(o,i.createInside.element("br")),i.s.setCursorBefore(o),r.Dom.isTag(o.previousSibling,"br")&&!r.Dom.findNotEmptySibling(o,!1)&&r.Dom.after(o,i.createInside.element("br"))),w}}});var n=o(82758),r=o(22732),s=o(21537),a=o(63785);function l(t,i,o){let n=r.Dom.sibling(t,i);return!n&&t.parentNode&&t.parentNode!==o&&(n=(0,a.findMostNestedNeighbor)(t,!i,o,!0))&&r.Dom.closest(t,"li",o)!==r.Dom.closest(n,"li",o)?null:n}},87536:function(t,i,o){"use strict";o.d(i,{checkRemoveContentNotEditable:function(){return a}});var n=o(22732),r=o(21537),s=o(45124);function a(t,i,o){let a=n.Dom.findSibling(i,o);return!a&&i.parentElement&&i.parentElement!==t.editor&&(a=n.Dom.findSibling(i.parentElement,o)),!(!n.Dom.isElement(a)||n.Dom.isContentEditable(a,t.editor))&&((0,r.call)(o?n.Dom.before:n.Dom.after,a,i),n.Dom.safeRemove(a),(0,s.moveNodeInsideStart)(t,i,o),(0,r.call)(o?t.s.setCursorBefore:t.s.setCursorAfter,i),!0)}},12474:function(t,i,o){"use strict";o.d(i,{checkRemoveEmptyNeighbor:function(){return r}});var n=o(2748);function r(t,i,o){let r=n.Dom.closest(i,n.Dom.isElement,t.editor);if(!r)return!1;let s=n.Dom.findNotEmptySibling(r,o);return!!(s&&n.Dom.isEmpty(s))&&(n.Dom.safeRemove(s),t.s.setCursorBefore(i),!0)}},58940:function(t,i,o){"use strict";o.d(i,{checkRemoveEmptyParent:function(){return a}});var n=o(82758),r=o(22732),s=o(91748);function a(t,i,o){let a=!1,{setCursorBefore:l,setCursorIn:c}=t.s,d=r.Dom.closest(i,r.Dom.isElement,t.editor);if(!d||!r.Dom.isEmpty(d))return!1;let u=r.Dom.findNotEmptyNeighbor(i,o,t.editor);do if(d&&r.Dom.isEmpty(d)&&!r.Dom.isCell(d)){r.Dom.after(d,i);let o=r.Dom.closest(d,t=>r.Dom.isElement(t)&&t!==d,t.editor);r.Dom.safeRemove(d),a=!0,d=o}else break;while(d)return!!(a&&(0,s.checkJoinTwoLists)(t,i,o))||(!u||r.Dom.isText(u)||r.Dom.isTag(u,n.INSEPARABLE_TAGS)?l(i):c(u,!o),a)}},56825:function(t,i,o){"use strict";o.d(i,{checkRemoveUnbreakableElement:function(){return a}});var n=o(82758),r=o(2748),s=o(58940);function a(t,i,o){let a=r.Dom.findSibling(i,o);return!!(r.Dom.isElement(a)&&(r.Dom.isTag(a,n.INSEPARABLE_TAGS)||r.Dom.isEmpty(a)))&&(r.Dom.safeRemove(a),r.Dom.isTag(a,"br")&&!r.Dom.findNotEmptySibling(i,!1)&&r.Dom.after(i,t.createInside.element("br")),t.s.setCursorBefore(i),r.Dom.isTag(a,"br")&&(0,s.checkRemoveEmptyParent)(t,i,o),!0)}},90240:function(t,i,o){"use strict";o.d(i,{checkTableCell:function(){return r}});var n=o(2748);function r(t,i){let o=i.parentElement;return!!n.Dom.isCell(o)}},68034:function(t,i,o){"use strict";o.d(i,{checkUnwrapFirstListItem:function(){return s}});var n=o(2748),r=o(43555);function s(t,i,o){var s;let a=n.Dom.closest(i,n.Dom.isElement,t.editor),{s:l}=t;if(n.Dom.isLeaf(a)&&(null==(s=null==a?void 0:a.parentElement)?void 0:s[o?"firstElementChild":"lastElementChild"])===a&&l.cursorInTheEdge(o,a)){let s=a.parentElement,c=t.createInside.element(t.o.enterBlock);return(0,r.call)(o?n.Dom.before:n.Dom.after,s,c),n.Dom.moveContent(a,c),n.Dom.safeRemove(a),n.Dom.isEmpty(s)&&n.Dom.safeRemove(s),(0,r.call)(o?l.setCursorBefore:l.setCursorAfter,i),!0}return!1}},14630:function(t,i,o){"use strict";o.d(i,{casesMap:function(){return p}});var n=o(62845),r=o(91748),s=o(73792),a=o(87536),l=o(12474),c=o(58940),d=o(56825),u=o(90240),h=o(68034);let p=[["remove-unbreakable",d.checkRemoveUnbreakableElement],["remove-not-editable",a.checkRemoveContentNotEditable],["remove-char",s.checkRemoveChar],["table-cell",u.checkTableCell],["remove-empty-parent",c.checkRemoveEmptyParent],["remove-empty-neighbor",l.checkRemoveEmptyNeighbor],["join-two-lists",r.checkJoinTwoLists],["join-neighbors",n.checkJoinNeighbors],["unwrap-first-list-item",h.checkUnwrapFirstListItem]];p.map(([,t])=>t)},32496:function(t,i,o){"use strict";o(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(t,i,o){"use strict";o.d(i,{findMostNestedNeighbor:function(){return r},getMoveFilter:function(){return s}});var n=o(22732);function r(t,i,o,s=!1){let a=t=>i?t.firstChild:t.lastChild,l=n.Dom.findNotEmptyNeighbor(t,!i,o);if(s&&n.Dom.isElement(l)&&!n.Dom.isInlineBlock(l))return null;if(l)do{if(!a(l))return l;l=a(l)}while(l)return null}function s(t){return i=>!0!==t.e.fire("backSpaceIsMovedIgnore",i)}},41107:function(t,i,o){"use strict";var n=o(580),r=o(21537),s=o(12153),a=o(6441);o(73674);var l=o(820),c=o(53651),d=o(16020),u=o(89758),h=o(98527),p=o(51855);n.pluginSystem.add("bold",function(t){let i=i=>{let o,n=a.Config.defaultOptions.controls[i],s={...n.css};return Object.keys(s).forEach(t=>{o||(o={}),o[t]=(0,r.isArray)(s[t])?s[t][0]:s[t]}),t.s.commitStyle({element:n.tags?n.tags[0]:void 0}),t.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(i=>{t.registerButton({name:i,group:"font-style"})}),["superscript","subscript"].forEach(i=>{t.registerButton({name:i,group:"script"})}),t.registerCommand("bold",{exec:i,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:i,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:i,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:i}).registerCommand("subscript",{exec:i}).registerCommand("superscript",{exec:i})}),s.Icon.set("bold",l.default).set("italic",c.default).set("strikethrough",d.default).set("subscript",u.default).set("superscript",h.default).set("underline",p.default)},73674:function(t,i,o){"use strict";var n=o(6441);n.Config.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},n.Config.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},n.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},n.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},n.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},n.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},820:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg> '},53651:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg> '},16020:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg> '},89758:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg> '},98527:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg> '},51855:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg> '},71255:function(t,i,o){"use strict";var n=o(2748),r=o(580),s=o(37790),a=o(50911),l=o(12153),c=o(6441),d=o(31151);c.Config.prototype.controls.classSpan={command:"applyClassName",exec:s.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(t,i){let o=t.s.current();if(o){let r=n.Dom.closest(o,n.Dom.isElement,t.editor)||t.editor;return!!(i.control.args&&r.classList.contains(i.control.args[0].toString()))}return!1},isActive(t,i){let o=t.s.current();if(o){let r=n.Dom.closest(o,n.Dom.isElement,t.editor)||t.editor,s=!1;return i.control.list&&Object.keys(i.control.list).forEach(t=>{r.classList.contains(t)&&(s=!0)}),!!(r&&r!==t.editor&&void 0!==i.control.list&&s)}return!1},childTemplate:(t,i,o)=>`<span class="${i}">${t.i18n(o)}</span>`,tooltip:"Insert className"};class u extends a.Plugin{afterInit(t){t.registerCommand("applyClassName",(i,o,n)=>(t.s.commitStyle({attributes:{class:n}}),!1))}beforeDestruct(){}constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}}r.pluginSystem.add("classSpan",u),l.Icon.set("class-span",d.default)},31151:function(t,i){"use strict";i.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg> '},82439:function(t,i,o){"use strict";var n=o(65478),r=o(2748),s=o(70071),a=o(580),l=o(86518),c=o(20356);o(46776);var d=o(59498),u=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};class h extends c.Plugin{afterInit(t){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;let t=this.j;this.walker.setWork(t.editor),this.currentSelectionNode=t.s.current()}startWalker(){let{jodit:t}=this,i=(0,d.getHash)(this.j.o.cleanHTML.allowTags),o=(0,d.getHash)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",n=>(0,d.visitNodeWalker)(t,n,i,o,this.currentSelectionNode)).on("end",t=>{this.j.e.fire(t?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(t){if("removeformat"===t.toLowerCase())return this.j.s.isCollapsed()?(0,d.removeFormatForCollapsedSelection)(this.j):(0,d.removeFormatForSelection)(this.j),!1}onBeforeSetNativeEditorValue(t){let[i,o]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.od.implementation.createHTMLDocument("").body];return i.innerHTML=t.value,this.j.e.fire("safeHTML",i),t.value=i.innerHTML,(0,l.safeHTML)(i,{safeJavaScriptLink:!0,removeOnError:!0}),r.Dom.safeRemove(o),!1}onAfterGetValueFromEditor(t){this.j.o.cleanHTML.collapseEmptyValueToEmptyString&&/^<([a-z][a-z0-9]*)\b[^>]*>(?:<br\/?>)?<\/\1>$/i.test(t.value.trim())&&(t.value="")}onSafeHTML(t){let i=this.j.o.cleanHTML.sanitizer;i&&(t.innerHTML=i(t.innerHTML)),(0,l.safeHTML)(t,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new s.LazyWalker(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}}u([(0,n.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],h.prototype,"onChangeCleanHTML",null),u([(0,n.hook)("ready")],h.prototype,"startWalker",null),u([(0,n.watch)(":beforeCommand")],h.prototype,"beforeCommand",null),u([(0,n.watch)(":beforeSetNativeEditorValue")],h.prototype,"onBeforeSetNativeEditorValue",null),u([(0,n.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),u([(0,n.watch)(":safeHTML")],h.prototype,"onSafeHTML",null),a.pluginSystem.add("cleanHtml",h)},46776:function(t,i,o){"use strict";var n=o(12153),r=o(6441),s=o(44330);r.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},r.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},n.Icon.set("eraser",s.default)},44330:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg> '},83447:function(t,i,o){"use strict";o.d(i,{getHash:function(){return s}});var n=o(70799),r=o(49055);function s(t){let i=/([^[]*)\[([^\]]+)]/,o=/[\s]*,[\s]*/,s=/^(.*)[\s]*=[\s]*(.*)$/,a={};return(0,n.isString)(t)?(t.split(o).map(t=>{t=(0,r.trim)(t);let n=i.exec(t),l={};if(n){let t=n[2].split(o);n[1]&&(t.forEach(t=>{t=(0,r.trim)(t);let i=s.exec(t);i?l[i[1]]=i[2]:l[t]=!0}),a[n[1].toUpperCase()]=l)}else a[t.toUpperCase()]=!0}),a):!!t&&(Object.keys(t).forEach(i=>{a[i.toUpperCase()]=t[i]}),a)}},59498:function(t,i,o){"use strict";o.d(i,{getHash:function(){return n.getHash},removeFormatForCollapsedSelection:function(){return r.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return s.removeFormatForSelection},visitNodeWalker:function(){return a.visitNodeWalker}});var n=o(83447),r=o(84272),s=o(42312),a=o(39516)},15908:function(t,i,o){"use strict";o.d(i,{isAllowedMediaEmbed:function(){return s}});let n=/^(https?:)?\/\/(www\.|m\.|music\.)?youtube(-nocookie)?\.com\/embed\//i,r=/^(https?:)?\/\/player\.vimeo\.com\/video\//i;function s(t){return n.test(t)||r.test(t)}},84272:function(t,i,o){"use strict";o.d(i,{isInlineBlock:function(){return a},removeFormatForCollapsedSelection:function(){return s}});var n=o(82758),r=o(2748);function s(t,i){let{s:o}=t,n=i;if(!n){n=t.createInside.fake();let{range:i}=o;r.Dom.safeInsertNode(i,n),i.collapse()}let s=r.Dom.furthest(n,a,t.editor);if(s)if(o.cursorOnTheLeft(s))r.Dom.before(s,n);else if(o.cursorOnTheRight(s))r.Dom.after(s,n);else{let t=o.splitSelection(s);t&&r.Dom.after(t,n)}i||(o.setCursorBefore(n),r.Dom.safeRemove(n))}function a(t){return r.Dom.isInlineBlock(t)&&!r.Dom.isTag(t,n.INSEPARABLE_TAGS)}},42312:function(t,i,o){"use strict";o.d(i,{removeFormatForSelection:function(){return a}});var n=o(2748),r=o(43555),s=o(84272);function a(t){let{s:i,editor:o,createInside:a}=t,{range:l}=i,c=l.cloneRange(),d=l.cloneRange(),u=a.fake(),h=a.fake();c.collapse(!0),d.collapse(!1),n.Dom.safeInsertNode(c,u),n.Dom.safeInsertNode(d,h),l.setStartBefore(u),l.collapse(!0),i.selectRange(l),(0,s.removeFormatForCollapsedSelection)(t,u),l.setEndAfter(h),l.collapse(!1),i.selectRange(l),(0,s.removeFormatForCollapsedSelection)(t,h);let p=[];n.Dom.between(u,h,t=>{(0,s.isInlineBlock)(t)&&!n.Dom.isTag(t,"a")&&p.push(t),n.Dom.isElement(t)&&(0,r.attr)(t,"style")&&(0,r.attr)(t,"style",null)}),p.forEach(t=>n.Dom.unwrap(t));let f=(t,i)=>{if(!n.Dom.findNotEmptySibling(t,i)){let n=t.parentNode;if(n&&n!==o&&(0,r.attr)(n,"style"))return(0,r.attr)(n,"style",null),f(n,i),!0}};f(u,!0)&&f(h,!1),l.setStartAfter(u),l.setEndBefore(h),i.selectRange(l),n.Dom.safeRemove(u),n.Dom.safeRemove(h)}},82558:function(t,i,o){"use strict";o.d(i,{allowAttributes:function(){return r}});var n=o(2748);function r(t,i,o,r){let s=r&&n.Dom.isElement(i)&&r[i.nodeName];if(r&&n.Dom.isElement(i)&&!0!==s){if(!s)return o;let t=i.attributes;if(t&&t.length){let n=[];for(let i=0;i<t.length;i+=1){let o=s[t[i].name];o&&(!0===o||o===t[i].value)||n.push(t[i].name)}n.length&&(o=!0),n.forEach(t=>{i.removeAttribute(t)})}}return o}},1962:function(t,i,o){"use strict";o.d(i,{convertUnsafeEmbeds:function(){return s}});var n=o(2748),r=o(29960);function s(t,i,o){let s=t.o.cleanHTML.convertUnsafeEmbeds;if(!s||!n.Dom.isElement(i))return o;let a=i.nodeName.toLowerCase();if(!s.includes(a))return o;let l=(0,r.attr)(i,"data")||(0,r.attr)(i,"src")||(0,r.attr)(i,"movie")||"";if(!l)return n.Dom.safeRemove(i),!0;let c=t.createInside.element("iframe");return(0,r.attr)(c,{src:l,sandbox:"",frameborder:"0",width:(0,r.attr)(i,"width"),height:(0,r.attr)(i,"height")}),n.Dom.replace(i,c,void 0,!1,!0),!0}},39433:function(t,i,o){"use strict";o.d(i,{fillEmptyParagraph:function(){return a}});var n=o(82758),r=o(2748);let s=new Set(["table","tbody","thead","tfoot","tr"]);function a(t,i,o){if(t.o.cleanHTML.fillEmptyParagraph&&r.Dom.isBlock(i)&&r.Dom.isEmpty(i,n.INSEPARABLE_TAGS)&&!r.Dom.isTag(i,s)){let o=t.createInside.element("br");return i.appendChild(o),!0}return o}},45235:function(t,i,o){"use strict";o.r(i),o.d(i,{allowAttributes:function(){return n.allowAttributes},convertUnsafeEmbeds:function(){return r.convertUnsafeEmbeds},fillEmptyParagraph:function(){return s.fillEmptyParagraph},removeEmptyTextNode:function(){return a.removeEmptyTextNode},removeInvTextNodes:function(){return l.removeInvTextNodes},replaceOldTags:function(){return c.replaceOldTags},safeLinksTarget:function(){return d.safeLinksTarget},sandboxIframesInContent:function(){return u.sandboxIframesInContent},sanitizeAttributes:function(){return h.sanitizeAttributes},sanitizeStyles:function(){return p.sanitizeStyles},tryRemoveNode:function(){return f.tryRemoveNode}});var n=o(82558),r=o(1962),s=o(39433),a=o(53392),l=o(25813),c=o(80973),d=o(95614),u=o(85978),h=o(384),p=o(15583),f=o(28800)},53392:function(t,i,o){"use strict";o.d(i,{removeEmptyTextNode:function(){return r}});var n=o(2748);function r(t,i,o,r,s,a){return n.Dom.isText(i)&&!i.nodeValue?(i===a&&t.s.isCollapsed()&&t.s.setCursorAfter(i),n.Dom.safeRemove(i),!0):o}},25813:function(t,i,o){"use strict";o.d(i,{removeInvTextNodes:function(){return s}});var n=o(82758),r=o(2748);function s(t,i,o,s,a,l){if(l===i||!r.Dom.isText(i)||null==i.nodeValue||!(0,n.INVISIBLE_SPACE_REG_EXP)().test(i.nodeValue))return o;let c=r.Dom.furthest(l,r.Dom.isBlock,t.editor);return!c||r.Dom.isOrContains(c,i)?o:(i.nodeValue=i.nodeValue.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),""),i===l&&t.s.isCollapsed()&&t.s.setCursorAfter(i),i.nodeValue||r.Dom.safeRemove(i),!0)}},80973:function(t,i,o){"use strict";o.d(i,{replaceOldTags:function(){return r}});var n=o(2748);function r(t,i,o){let r=function(t,i,o){if(!o||!n.Dom.isHTMLElement(i))return i;let r=o[i.nodeName.toLowerCase()]||o[i.nodeName];return r?n.Dom.replace(i,r,t.createInside,!0,!1):i}(t,i,t.o.cleanHTML.replaceOldTags);return i!==r?(i=r,!0):o}},95614:function(t,i,o){"use strict";o.d(i,{safeLinksTarget:function(){return s}});var n=o(2748),r=o(29960);function s(t,i,o){if(!t.o.cleanHTML.safeLinksTarget||!n.Dom.isElement(i)||"A"!==i.nodeName||"_blank"!==(0,r.attr)(i,"target"))return o;let s=((0,r.attr)(i,"rel")||"").split(/\s+/).filter(Boolean),a=!1;return(s.includes("noopener")||(s.push("noopener"),a=!0),s.includes("noreferrer")||(s.push("noreferrer"),a=!0),a)?((0,r.attr)(i,"rel",s.join(" ")),!0):o}},85978:function(t,i,o){"use strict";o.d(i,{sandboxIframesInContent:function(){return a}});var n=o(2748),r=o(29960),s=o(15908);function a(t,i,o){return t.o.cleanHTML.sandboxIframesInContent&&n.Dom.isElement(i)&&"IFRAME"===i.nodeName?(0,s.isAllowedMediaEmbed)((0,r.attr)(i,"src")||"")||i.hasAttribute("sandbox")?o:((0,r.attr)(i,"sandbox",""),!0):o}},384:function(t,i,o){"use strict";o.d(i,{sanitizeAttributes:function(){return s}});var n=o(2748),r=o(21537);function s(t,i,o){if(!n.Dom.isElement(i))return o;let s=t.options.cleanHTML;return!!(0,r.sanitizeHTMLElement)(i,{safeJavaScriptLink:s.safeJavaScriptLink,removeOnError:s.removeOnError,removeEventAttributes:s.removeEventAttributes,safeLinksTarget:s.safeLinksTarget})||o}},15583:function(t,i,o){"use strict";o.d(i,{sanitizeStyles:function(){return s}});var n=o(2748),r=o(29960);function s(t,i,o){let s=t.o.cleanHTML.allowedStyles;if(!s||!n.Dom.isElement(i))return o;let a=(0,r.attr)(i,"style");if(!a)return o;let l=function(t,i){let o=i[t],n=i["*"];if(!o&&!n)return null;let r=new Set;if(n)for(let t of n)r.add(t.toLowerCase());if(o)for(let t of o)r.add(t.toLowerCase());return r}(i.nodeName.toLowerCase(),s);if(!l)return o;let c=a.split(";").map(t=>t.trim()).filter(t=>{if(!t)return!1;let i=t.indexOf(":");if(-1===i)return!1;let o=t.substring(0,i).trim().toLowerCase();return l.has(o)}).join("; ").replace(/;\s*$/,"");return c!==a?((0,r.attr)(i,"style",c||null),!0):o}},28800:function(t,i,o){"use strict";o.d(i,{tryRemoveNode:function(){return c}});var n=o(82758),r=o(2748),s=o(49055),a=o(29960),l=o(15908);function c(t,i,o,c,d,u){return!function(t,i,o,c,d){if(!r.Dom.isText(i)){let t=i.nodeName.toUpperCase();if(c&&!c[t])return!0;let o="IFRAME"===t&&(0,l.isAllowedMediaEmbed)((0,a.attr)(i,"src")||"");if(!c&&d&&d[t]&&!o)return!0}if(!t.o.cleanHTML.removeEmptyElements)return!1;let u=t.s.isCollapsed()?t.s.range.startContainer:null;return r.Dom.isElement(i)&&null!=i.nodeName.match(n.IS_INLINE)&&!r.Dom.isTemporary(i)&&0===(0,s.trimInv)(i.innerHTML).length&&(null==o||!r.Dom.isOrContains(i,o))&&(null==u||!r.Dom.isOrContains(i,u))}(t,i,u,c,d)?o:(r.Dom.safeRemove(i),!0)}},39516:function(t,i,o){"use strict";o.d(i,{visitNodeWalker:function(){return a}});var n=o(82758),r=o(45235);let s=Object.keys(r);function a(t,i,o,a,l){let c=!1,d=t.o.cleanHTML.disableCleanFilter;for(let u of s)if(!(d&&d.has(u))&&(c=(0,r[u])(t,i,c,o,a,l),n.IS_PROD,!i.isConnected))return!0;return c}},61323:function(t,i,o){"use strict";var n=o(82758),r=o(33433),s=o(2748),a=o(580),l=o(21537);o(79419);class c{init(t){var i;null==(i=this.buttons)||i.forEach(i=>t.registerButton(i)),t.e.off(`copy.${n.CLIPBOARD_ID} cut.${n.CLIPBOARD_ID}`).on(`copy.${n.CLIPBOARD_ID} cut.${n.CLIPBOARD_ID}`,i=>{var o;let r=function(t,i){if(!i||t.s.isCollapsed())return i;let o=t.s.range.commonAncestorContainer;s.Dom.isElement(o)||(o=o.parentElement);let n=i;for(;o&&o!==t.editor&&s.Dom.isElement(o)&&!s.Dom.isBlock(o);){let t=o.cloneNode(!1);t.innerHTML=n,n=t.outerHTML,o=o.parentElement}return n}(t,t.s.html),a=(0,l.getDataTransfer)(i)||(0,l.getDataTransfer)(t.ew)||(0,l.getDataTransfer)(i.originalEvent);a&&(a.setData(n.TEXT_PLAIN,(0,l.stripTags)(r)),a.setData(n.TEXT_HTML,r)),t.buffer.set(n.CLIPBOARD_ID,r),t.e.fire("pasteStack",{html:r,action:t.o.defaultActionOnPaste||n.INSERT_AS_HTML}),"cut"===i.type&&(t.s.remove(),t.s.focus()),i.preventDefault(),null==(o=null==t?void 0:t.events)||o.fire("afterCopy",r)})}destruct(t){var i,o;null==(i=(0,r.cached)(t,"buffer"))||i.set(n.CLIPBOARD_ID,""),null==(o=null==t?void 0:t.events)||o.off("."+n.CLIPBOARD_ID)}constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}}a.pluginSystem.add("clipboard",c)},79419:function(t,i,o){"use strict";var n=o(12153),r=o(6441),s=o(94775),a=o(23140),l=o(92699),c=o(10052);r.Config.prototype.controls.cut={command:"cut",isDisabled:t=>t.s.isCollapsed(),tooltip:"Cut selection"},r.Config.prototype.controls.copy={command:"copy",isDisabled:t=>t.s.isCollapsed(),tooltip:"Copy selection"},r.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},n.Icon.set("copy",s.default).set("cut",a.default).set("paste",l.default).set("select-all",c.default)},94775:function(t,i){"use strict";i.default='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg> '},23140:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg> '},92699:function(t,i){"use strict";i.default='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg> '},10052:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg> '},46104:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg> '},93079:function(t,i,o){"use strict";var n=o(580),r=o(21537);o(21988),n.pluginSystem.add("color",function(t){t.registerButton({name:"brush",group:"color"});let i=(i,o,n)=>{var s;let a=(0,r.normalizeColor)(n)||"",l="background"===i?{backgroundColor:a}:{color:a},c=t.getInstance("Table",t.o).getAllSelectedCells();return c.length&&t.s.isCollapsed()?(c.forEach(i=>{t.s.select(i,!0),t.s.commitStyle({attributes:{style:l}})}),null==(s=t.s.sel)||s.removeAllRanges()):t.s.commitStyle({attributes:{style:l}}),t.synchronizeValues(),!1};t.registerCommand("forecolor",i).registerCommand("background",i)})},21988:function(t,i,o){"use strict";var n=o(2748),r=o(21537),s=o(12153),a=o(6441),l=o(92762),c=o(46104);s.Icon.set("brush",c.default),a.Config.prototype.controls.brushCell={isVisible:t=>!t.o.disablePlugins.includes("color"),icon:"brush",popup(t,i,o){if(!(0,r.isJoditObject)(t))return;let n=t.getInstance("Table",t.o).getAllSelectedCells();if(!n.length)return!1;let s=i=>(0,l.ColorPickerWidget)(t,s=>{n.forEach(t=>{(0,r.css)(t,i,s)}),t.lock(),t.synchronizeValues(),o(),t.unlock()},(0,r.css)(n[0],i));return(0,l.TabsWidget)(t,[{name:"Background",content:s("background-color")},{name:"Text",content:s("color")},{name:"Border",content:s("border-color")}])},tooltip:"Background"},a.Config.prototype.controls.brush={isVisible:t=>!t.o.disablePlugins.includes("color"),update(t,i){let o=(0,r.dataBind)(i,"color"),s=(o,n)=>!!n&&n!==(0,r.css)(t.editor,o).toString()&&(i.state.icon.fill=n,!0);if(o){let t=(0,r.dataBind)(i,"color");s("color"===t?t:"background-color",o);return}let a=t.s.current();if(a&&!i.state.disabled){let i=n.Dom.closest(a,n.Dom.isElement,t.editor)||t.editor,o=s("color",(0,r.css)(i,"color").toString()),l=s("background-color",(0,r.css)(i,"background-color").toString());if(o||l)return}i.state.icon.fill="",i.state.activated=!1},popup(t,i,o,s){let a="",c="",d=[],u=null;return i&&i!==t.editor&&n.Dom.isNode(i)&&(n.Dom.isElement(i)&&t.s.isCollapsed()&&!n.Dom.isTag(i,new Set(["br","hr"]))&&(u=i),n.Dom.up(i,t=>{if(n.Dom.isHTMLElement(t)){let i=(0,r.css)(t,"color",!0),o=(0,r.css)(t,"background-color",!0);if(i)return a=i.toString(),!0;if(o)return c=o.toString(),!0}},t.editor)),d=[{name:"Background",content:(0,l.ColorPickerWidget)(t,i=>{u?u.style.backgroundColor=i:t.execCommand("background",!1,i),(0,r.dataBind)(s,"color",i),(0,r.dataBind)(s,"color-mode","background"),o()},c)},{name:"Text",content:(0,l.ColorPickerWidget)(t,i=>{u?u.style.color=i:t.execCommand("forecolor",!1,i),(0,r.dataBind)(s,"color",i),(0,r.dataBind)(s,"color-mode","color"),o()},a)}],"background"!==t.o.colorPickerDefaultTab&&(d=d.reverse()),(0,l.TabsWidget)(t,d,u)},exec(t,i,{button:o}){let s=(0,r.dataBind)(o,"color-mode"),a=(0,r.dataBind)(o,"color");if(!s)return!1;if(i&&i!==t.editor&&n.Dom.isNode(i)&&n.Dom.isElement(i))switch(s){case"color":i.style.color=a;break;case"background":i.style.backgroundColor=a}else t.execCommand("background"===s?s:"forecolor",!1,a)},tooltip:"Fill color or set the text color"}},19063:function(t,i,o){"use strict";var n=o(2748),r=o(580),s=o(41180),a=o(12153),l=o(6441),c=o(57487),d=o(23914);let u="copy-format",h=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],p=(t,i,o,n)=>{let r=(0,s.css)(o,i);return r===n[i]&&(r=o.parentNode&&o!==t.editor&&o.parentNode!==t.editor?p(t,i,o.parentNode,n):void 0),r};l.Config.prototype.controls.copyformat={exec(t,i,{button:o}){if(i){if(t.buffer.exists(u))t.buffer.delete(u),t.e.off(t.editor,"mouseup."+u);else{let o,r={},a=n.Dom.up(i,t=>t&&!n.Dom.isText(t),t.editor)||t.editor,l=t.createInside.span();t.editor.appendChild(l),h.forEach(t=>{r[t]=(0,s.css)(l,t)}),l!==t.editor&&n.Dom.safeRemove(l);let c=(o={},a&&h.forEach(i=>{o[i]=p(t,i,a,r),i.match(/border(Style|Color)/)&&!o.borderWidth&&(o[i]=void 0)}),o);t.e.on(t.editor,"mouseup."+u,()=>{t.buffer.delete(u);let i=t.s.current();i&&(n.Dom.isTag(i,"img")?(0,s.css)(i,c):t.s.commitStyle({attributes:{style:c}})),t.e.off(t.editor,"mouseup."+u)}),t.buffer.set(u,!0)}o.update()}},isActive:t=>t.buffer.exists(u),tooltip:"Paint format"},r.pluginSystem.add("copyformat",function(t){t.registerButton({name:"copyformat",group:"clipboard"}),(0,r.extendLang)(d)}),a.Icon.set("copyformat",c.default)},57487:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg> '},23914:function(t,i,o){"use strict";o.r(i),o.d(i,{ar:function(){return r.a},cs_cz:function(){return r.a},de:function(){return r.a},es:function(){return r.a},fa:function(){return r.a},fi:function(){return r.a},fr:function(){return r.a},he:function(){return r.a},hu:function(){return r.a},id:function(){return r.a},it:function(){return r.a},ja:function(){return r.a},ko:function(){return r.a},mn:function(){return r.a},nl:function(){return r.a},pl:function(){return r.a},pt_br:function(){return r.a},ru:function(){return r.a},tr:function(){return r.a},zh_cn:function(){return r.a},zh_tw:function(){return r.a}});var n=o(41324),r=o.n(n)},66707:function(t,i,o){"use strict";var n=o(22732),r=o(580),s=o(21537),a=o(49055),l=o(50911);class c extends l.Plugin{afterInit(t){t.e.on("afterCommand.delete",t=>{"delete"===t&&this.__afterDeleteCommand()}),t.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(t){t.e.off("afterCommand.delete")}__afterDeleteCommand(){let t=this.j,i=t.s.current();if(i&&n.Dom.isTag(i.firstChild,"br")&&t.s.removeNode(i.firstChild),!(0,a.trim)(t.editor.textContent||"")&&!t.editor.querySelector("img,table,jodit,iframe,hr")&&(!i||!n.Dom.closest(i,"table",t.editor))){t.editor.innerHTML="";let i=t.s.setCursorIn(t.editor);t.s.removeNode(i)}}__onDeleteCommand(){let{jodit:t}=this;if(t.s.isCollapsed())return;t.s.expandSelection();let i=t.s.range;i.deleteContents();let o=t.createInside.fake();i.insertNode(o);let r=n.Dom.findSibling(o,!0),s=n.Dom.findSibling(o,!1);return this.__moveContentInLeftSibling(o,r,s),i.setStartBefore(o),i.collapse(!0),this.__moveCursorInEditableSibling(t,r,o,i),this.__addBrInEmptyBlock(o,s,i),n.Dom.safeRemove(o),t.s.selectRange(i),!1}__moveContentInLeftSibling(t,i,o){i=this.__defineRightLeftBox(i),!n.Dom.isList(o)&&!n.Dom.isTag(o,"table")&&n.Dom.isBlock(o)&&n.Dom.isBlock(i)&&(n.Dom.append(i,t),n.Dom.moveContent(o,i),n.Dom.safeRemove(o)),n.Dom.isList(o)&&n.Dom.isLeaf(o.firstElementChild)&&n.Dom.isEmpty(o.firstElementChild)&&n.Dom.safeRemove(o.firstElementChild)}__defineRightLeftBox(t){if(!n.Dom.isList(t))return t;let i=t.lastElementChild;return n.Dom.isLeaf(i)||(i=this.j.createInside.element("li"),n.Dom.append(t,i)),i}__addBrInEmptyBlock(t,i,o){let r=this.j;if(t.isConnected&&n.Dom.isBlock(t.parentNode)&&!t.nextSibling&&!t.previousSibling){let i=r.createInside.element("br");n.Dom.after(t,i),o.setStartBefore(i),o.collapse(!0)}if(n.Dom.isTag(i,"table")){let t=(0,s.$$)("td,th",i).shift();n.Dom.isCell(t)&&n.Dom.isEmpty(t)&&n.Dom.append(t,r.createInside.element("br"))}}__moveCursorInEditableSibling(t,i,o,r){var s;if(!i||!n.Dom.isText(i)){let i=null!=(s=n.Dom.closest(o,n.Dom.isBlock,t.editor))?s:t.editor,a=n.Dom.prev(o,n.Dom.isText,i);a&&(r.setStartAfter(a),r.collapse(!0),n.Dom.safeRemove(o))}}}c.requires=["backspace"],r.pluginSystem.add("deleteCommand",c)},44586:function(t,i,o){"use strict";o(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},1255:function(t,i,o){"use strict";var n,r,s=o(65478),a=o(22732),l=o(580),c=o(21537),d=o(50911);o(44586);var u=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};(n=r||(r={}))[n.IDLE=0]="IDLE",n[n.WAIT_DRAGGING=1]="WAIT_DRAGGING",n[n.DRAGGING=2]="DRAGGING";class h extends d.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,c.splitArray)(this.j.o.draggableTags).filter(Boolean).map(t=>t.toLowerCase()):[],this.j.e.on("startDragElement",this.onStartDragElement),this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onStartDragElement(t,i){this.isInDestruct||this.state>r.IDLE||!t||this.startDragging(t,i)}onDragStart(t){if("dragstart"===t.type&&this.draggable)return!1;if(this.state>r.IDLE)return;let i=t.target;if(!this.dragList.length||!i)return;let o=t=>!!(t&&this.dragList.includes(t.nodeName.toLowerCase())),n=a.Dom.furthest(i,o,this.j.editor)||(o(i)?i:null);n&&(a.Dom.isTag(n.parentElement,"a")&&n.parentElement.firstChild===n&&n.parentElement.lastChild===n&&(n=n.parentElement),this.startDragging(n,t))}startDragging(t,i){this.startX=i.clientX,this.startY=i.clientY,this.isCopyMode=(0,c.ctrlKey)(i),this.draggable=t.cloneNode(!0),(0,c.dataBind)(this.draggable,"target",t),this.state=r.WAIT_DRAGGING,this.addDragListeners()}onDrag(t){var i,o;if(!this.draggable||this.state===r.IDLE)return;let n=t.clientX,s=t.clientY;if(!(this.state===r.WAIT_DRAGGING&&Math.sqrt(Math.pow(n-this.startX,2)+Math.pow(s-this.startY,2))<this.diffStep)){if(this.state===r.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=r.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){let n=(0,c.dataBind)(this.draggable,"target");(0,c.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:t.clientX,top:t.clientY,width:null!=(i=null==n?void 0:n.offsetWidth)?i:100,height:null!=(o=null==n?void 0:n.offsetHeight)?o:100}),(0,l.getContainer)(this.j,h).appendChild(this.draggable)}(0,c.css)(this.draggable,{left:t.clientX,top:t.clientY}),this.j.s.insertCursorAtPoint(t.clientX,t.clientY)}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=r.IDLE,this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<r.DRAGGING)return void this.onDragEnd();let t=(0,c.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(t=t.cloneNode(!0));let{parentElement:i}=t;this.j.s.insertNode(t,!0,!1),[t.previousSibling,t.nextSibling].forEach(t=>{a.Dom.isEmptyTextNode(t)&&a.Dom.safeRemove(t)}),i&&a.Dom.isEmpty(i)&&!a.Dom.isCell(i)&&a.Dom.safeRemove(i),a.Dom.isTag(t,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",t),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=r.IDLE}}u([s.autobind],h.prototype,"onStartDragElement",null),u([s.autobind],h.prototype,"onDragStart",null),u([(0,s.throttle)(t=>t.defaultTimeout/10)],h.prototype,"onDrag",null),u([s.autobind],h.prototype,"onDragEnd",null),u([s.autobind],h.prototype,"onDrop",null),l.pluginSystem.add("dragAndDropElement",h)},19271:function(t,i,o){"use strict";var n=o(82758),r=o(65478),s=o(2748),a=o(580),l=o(21537),c=o(50911),d=o(8172),u=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};class h extends c.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(t){var i;let o=t.target;if(this.onDragEnd(),this.isFragmentFromEditor=s.Dom.isOrContains(this.j.editor,o,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,l.ctrlKey)(t),this.isFragmentFromEditor){let t=this.j.s.sel,i=t&&t.rangeCount?t.getRangeAt(0):null;i&&(this.bufferRange=i.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=t.clientX,this.startDragPoint.y=t.clientY,i=o,s.Dom.isElement(i)&&i.classList.contains(d.FileBrowserFiles.prototype.getFullElName("item"))&&(o=o.querySelector("img")),s.Dom.isTag(o,"img")&&(this.draggable=o.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",o)),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(t){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),t.preventDefault(),t.stopPropagation())}onDragEnd(){this.draggable&&(s.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(t){if(!t.dataTransfer||!t.dataTransfer.files||!t.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",t),t.preventDefault(),t.stopPropagation(),!1;let i=this.j.s.sel,o=this.bufferRange||(i&&i.rangeCount?i.getRangeAt(0):null),n=this.__getWorkFragment(o,t);i&&i.removeAllRanges(),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),n&&this.__insertFragment.call(this,n,o),t.preventDefault(),t.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(t,i){let o=null;if(!this.draggable&&t)o=this.isCopyMode?t.cloneContents():t.extractContents();else if(this.draggable)if(this.isCopyMode){let[t,i]="1"===(0,l.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];o=this.j.createInside.element(t),(0,l.attr)(o,i,(0,l.attr)(this.draggable,"data-src")||(0,l.attr)(this.draggable,"src")||""),"a"===t&&(o.textContent=(0,l.attr)(o,i)||"")}else o=(0,l.dataBind)(this.draggable,"target");else this.getText(i)&&(o=this.j.createInside.fromHTML(this.getText(i)));return o}__insertFragment(t,i){this.j.s.insertNode(t,!1,!1),i&&t.firstChild&&t.lastChild&&(i.setStartBefore(t.firstChild),i.setEndAfter(t.lastChild),this.j.s.selectRange(i),this.j.e.fire("synchro")),s.Dom.isTag(t,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",t)}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=t=>{let i=(0,l.getDataTransfer)(t);return i?i.getData(n.TEXT_HTML)||i.getData(n.TEXT_PLAIN):null}}}u([r.autobind],h.prototype,"onDragStart",null),u([(0,r.throttle)(t=>t.defaultTimeout/10)],h.prototype,"onDrag",null),u([r.autobind],h.prototype,"onDragEnd",null),u([r.autobind],h.prototype,"onDrop",null),a.pluginSystem.add("dragAndDrop",h)},46124:function(t,i,o){"use strict";o.r(i),o.d(i,{removeExtraBr:function(){return n.removeExtraBr}});var n=o(94870)},94870:function(t,i,o){"use strict";o.d(i,{removeExtraBr:function(){return s}});var n=o(2748);let r=new Set(["table","pre","blockquote","code"]);function s(t,i){if(!t.o.dtd.removeExtraBr||n.Dom.isTag(i,"br"))return;let o=n.Dom.furthest(i,n.Dom.isBlock,t.editor);if(o&&!n.Dom.isTag(o,r)){let o=n.Dom.isTag(i,"br")?i:n.Dom.findNotEmptySibling(i,!1);if(!n.Dom.isTag(o,"br")||n.Dom.findNotEmptySibling(o,!1))return;t.s.setCursorBefore(o),n.Dom.safeRemove(o)}}},78720:function(t,i,o){"use strict";o.d(i,{checkBlockNesting:function(){return r}});var n=o(2748);function r(t,i){var o,r;if(n.Dom.isFragment(i)&&(i=i.firstChild),t.o.dtd.checkBlockNesting&&n.Dom.isBlock(i)){let i=null,s=null!=(r=null==(o=t.s.current())?void 0:o.parentElement)?r:null;for(;s&&s!==t.editor;){if(n.Dom.isBlock(s)){if(t.o.dtd.blockLimits[s.nodeName.toLowerCase()])break;i=s}s=s.parentElement}i&&(t.s.setCursorAfter(i),n.Dom.isEmpty(i)&&n.Dom.safeRemove(i))}}},43267:function(t,i,o){"use strict";o.r(i),o.d(i,{checkBlockNesting:function(){return n.checkBlockNesting}});var n=o(78720)},9045:function(t,i,o){"use strict";o(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(t,i,o){"use strict";var n=o(37133),r=o(580),s=o(50911);o(9045);var a=o(46124),l=o(43267),c=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};class d extends s.Plugin{afterInit(t){}beforeDestruct(t){}__onBeforeInsertNode(t){Object.keys(l).forEach(i=>{l[i](this.j,t)})}__onAfterInsertNode(t){Object.keys(a).forEach(i=>{a[i](this.j,t)})}}c([(0,n.watch)(":beforeInsertNode")],d.prototype,"__onBeforeInsertNode",null),c([(0,n.watch)(":afterInsertNode")],d.prototype,"__onAfterInsertNode",null),r.pluginSystem.add("dtd",d)},575:function(t,i,o){"use strict";var n=o(82758),r=o(65478),s=o(2748),a=o(580),l=o(87612),c=o(20356),d=o(35399);class u extends c.Plugin{afterInit(t){let i=t.o.enter.toLowerCase(),o=i===n.BR.toLowerCase();t.o.enterBlock||(t.o.enterBlock=o?n.PARAGRAPH:i),t.registerCommand("enter",(t,i,o={})=>this.onEnter(o))}onEnterKeyDown(t){if(t.key===n.KEY_ENTER){let i=this.j,o=i.e.fire("beforeEnter",t);return void 0!==o?o:(i.history.snapshot.transaction(()=>{i.s.isCollapsed()||i.execCommand("Delete"),i.s.focus(),this.onEnter(t),i.e.fire("afterEnter",t)}),i.synchronizeValues(),!1)}}onEnter(t){let{jodit:i}=this,o=i.createInside.fake();try{s.Dom.safeInsertNode(i.s.range,o),(0,d.moveCursorOutFromSpecialTags)(i,o,["a"]);let n=(0,d.getBlockWrapper)(o,i),r=s.Dom.isLeaf(n);if((!r||(null==t?void 0:t.shiftKey))&&(0,d.checkBR)(o,i,null==t?void 0:t.shiftKey))return!1;if(n||(0,d.hasPreviousBlock)(o,i)||(n=(0,d.wrapText)(o,i)),!n)return(0,d.insertParagraph)(o,i,r?"li":i.o.enter),!1;if(!(0,d.checkUnsplittableBox)(o,i,n))return!1;if(r&&this.__isEmptyListLeaf(n))return(0,d.processEmptyLILeaf)(o,i,n),!1;(0,d.splitFragment)(o,i,n)}finally{o.isConnected&&i.s.setCursorBefore(o),s.Dom.safeRemove(o)}}__isEmptyListLeaf(t){let i=this.j.e.fire("enterIsEmptyListLeaf",t);return(0,l.isBoolean)(i)?i:s.Dom.isEmpty(t)}beforeDestruct(t){t.e.off("keydown.enter")}}!function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);s>3&&a&&Object.defineProperty(i,o,a)}([(0,r.watch)(":keydown.enter")],u.prototype,"onEnterKeyDown",null),a.pluginSystem.add("enter",u)},41872:function(t,i,o){"use strict";o.d(i,{checkBR:function(){return a}});var n=o(82758),r=o(2748),s=o(26395);function a(t,i,o){let a=!!r.Dom.closest(t,["pre","blockquote"],i.editor),c=!a&&r.Dom.closest(t,["td","th"],i.editor);if(i.o.enter.toLowerCase()===n.BR.toLowerCase()||c||o&&!a||!o&&a){var d;let o;if(a&&(o=l(l(d=t)))&&(r.Dom.safeRemove(l(d)),r.Dom.safeRemove(o),1))return!1;let n=i.createInside.element("br");if(r.Dom.before(t,n),!r.Dom.findNotEmptySibling(n,!1)){let i=n.cloneNode();r.Dom.after(n,i),r.Dom.before(i,t)}return(0,s.scrollIntoViewIfNeeded)(n,i.editor,i.ed),!0}return!1}function l(t){if(!t)return!1;let i=r.Dom.findSibling(t,!0);return!!i&&!!r.Dom.isTag(i,"br")&&i}},61991:function(t,i,o){"use strict";o.d(i,{checkUnsplittableBox:function(){return r}});var n=o(2748);function r(t,i,o){return!!n.Dom.canSplitBlock(o)||(n.Dom.before(t,i.createInside.element("br")),!1)}},54041:function(t,i,o){"use strict";o.d(i,{getBlockWrapper:function(){return function t(i,o,s=n.IS_BLOCK){let a=i,l=o.editor;do{if(!a||a===l)break;if(s.test(a.nodeName)){if(r.Dom.isLeaf(a))return a;return t(a.parentNode,o,/^li$/i)||a}a=a.parentNode}while(a&&a!==l)return null}}});var n=o(82758),r=o(2748)},19057:function(t,i,o){"use strict";o.d(i,{hasPreviousBlock:function(){return r}});var n=o(2748);function r(t,i){return!!n.Dom.prev(t,t=>n.Dom.isBlock(t)||n.Dom.isImage(t),i.editor)}},35399:function(t,i,o){"use strict";o.d(i,{checkBR:function(){return n.checkBR},checkUnsplittableBox:function(){return r.checkUnsplittableBox},getBlockWrapper:function(){return s.getBlockWrapper},hasPreviousBlock:function(){return a.hasPreviousBlock},insertParagraph:function(){return l.insertParagraph},moveCursorOutFromSpecialTags:function(){return c.moveCursorOutFromSpecialTags},processEmptyLILeaf:function(){return d.processEmptyLILeaf},splitFragment:function(){return u.splitFragment},wrapText:function(){return h.wrapText}});var n=o(41872),r=o(61991),s=o(54041),a=o(19057),l=o(44245),c=o(91388),d=o(65181),u=o(54600),h=o(5287)},44245:function(t,i,o){"use strict";o.d(i,{insertParagraph:function(){return a}});var n=o(2748),r=o(29960),s=o(26395);function a(t,i,o,a){let l="br"===o.toLowerCase(),{createInside:c}=i,d=c.element(o),u=c.element("br");return l||d.appendChild(u),a&&a.cssText&&(0,r.attr)(d,"style",a.cssText),n.Dom.after(t,d),n.Dom.before(l?d:u,t),(0,s.scrollIntoViewIfNeeded)(d,i.editor,i.ed),d}},91388:function(t,i,o){"use strict";o.d(i,{moveCursorOutFromSpecialTags:function(){return r}});var n=o(2748);function r(t,i,o){let{s:r}=t,s=n.Dom.closest(i,o,t.editor);s&&(r.cursorOnTheRight(s,i)?n.Dom.after(s,i):r.cursorOnTheLeft(s,i)&&n.Dom.before(s,i))}},65181:function(t,i,o){"use strict";o.d(i,{processEmptyLILeaf:function(){return a}});var n=o(2748),r=o(76078),s=o(44245);function a(t,i,o){let a=n.Dom.closest(o,["ol","ul"],i.editor);if(!a)return;let l=a.parentElement,c=n.Dom.isLeaf(l),d=c?l:a,u=i.s.createRange();u.setStartAfter(o),u.setEndAfter(a);let h=u.extractContents();n.Dom.after(d,t),n.Dom.safeRemove(o),(0,r.$$)("li",a).length||n.Dom.safeRemove(a);let p=(0,s.insertParagraph)(t,i,c?"li":i.o.enter);h.querySelector("li")&&(c?p.appendChild(h):n.Dom.after(p,h))}},54600:function(t,i,o){"use strict";o.d(i,{splitFragment:function(){return a}});var n=o(2748),r=o(26395),s=o(44245);function a(t,i,o){let a=i.s,{enter:l}=i.o,c=l.toLowerCase(),d=n.Dom.isLeaf(o),u=o.tagName.toLowerCase()===c||d,h=a.cursorOnTheRight(o,t),p=a.cursorOnTheLeft(o,t);if(!u&&(h||p)){h?n.Dom.after(o,t):n.Dom.before(o,t),(0,s.insertParagraph)(t,i,c),p&&!h&&n.Dom.prepend(o,t);return}let{scrollTop:f}=i.editor;a.splitSelection(o,t),i.editor.scrollTop!==f&&(i.editor.scrollTop=f),(0,r.scrollIntoViewIfNeeded)(o,i.editor,i.ed)}},5287:function(t,i,o){"use strict";o.d(i,{wrapText:function(){return r}});var n=o(2748);function r(t,i){let o=t;n.Dom.up(o,t=>{t&&t.hasChildNodes()&&t!==i.editor&&(o=t)},i.editor);let r=n.Dom.wrapInline(o,i.o.enter,i);if(n.Dom.isEmpty(r)){let o=i.createInside.element("br");r.appendChild(o),n.Dom.before(o,t)}return r}},11317:function(t,i,o){"use strict";var n=o(2748),r=o(580),s=o(29960),a=o(6441),l=o(92762);a.Config.prototype.controls.file={popup(t,i,o){let r=(i,o="")=>{t.s.insertNode(t.createInside.fromHTML(`<a href="${i}" title="${o}">${o||i}</a>`))},a=null;return i&&(n.Dom.isTag(i,"a")||n.Dom.closest(i,"a",t.editor))&&(a=n.Dom.isTag(i,"a")?i:n.Dom.closest(i,"a",t.editor)),(0,l.FileSelectorWidget)(t,{filebrowser(t){t.files&&t.files.forEach(i=>r(t.baseurl+i)),o()},upload:!0,url(t,i){a?((0,s.attr)(a,"href",t),(0,s.attr)(a,"title",i)):r(t,i),o()}},a,o,!1)},tags:["a"],tooltip:"Insert file"},r.pluginSystem.add("file",function(t){t.registerButton({name:"file",group:"media"})})},36243:function(t,i,o){"use strict";var n=o(22732),r=o(580),s=o(6441);s.Config.prototype.autofocus=!1,s.Config.prototype.cursorAfterAutofocus="end",s.Config.prototype.saveSelectionOnBlur=!0,r.pluginSystem.add("focus",function(t){t.o.saveSelectionOnBlur&&t.e.on("blur",()=>{t.isEditorMode()&&t.s.save(!0)}).on("focus",()=>{t.isEditorMode()&&t.s.restore()});let i=()=>{t.s.focus();let i=null;switch(t.o.cursorAfterAutofocus){case"start":i=n.Dom.first(t.editor,t=>n.Dom.isText(t));break;case"end":i=n.Dom.last(t.editor,t=>n.Dom.isText(t))}i&&t.s.setCursorIn(i,"start"===t.o.cursorAfterAutofocus)};t.e.on("afterInit",()=>{t.o.autofocus&&(t.defaultTimeout?t.async.setTimeout(i,300):i())}),t.e.on("afterInit afterAddPlace",()=>{t.e.off(t.editor,"mousedown.autofocus").on(t.editor,"mousedown.autofocus",i=>{t.isEditorMode()&&i.target&&n.Dom.isBlock(i.target)&&!i.target.childNodes.length&&(t.editor===i.target?t.s.focus():t.s.setCursorIn(i.target))})})})},28252:function(t,i,o){"use strict";var n=o(22732),r=o(49055),s=o(41180),a=o(12153),l=o(6441),c=o(4104),d=o(83709);l.Config.prototype.defaultFontSizePoints="px",a.Icon.set("font",c.default).set("fontsize",d.default),l.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalize:t=>t.toString().replace(/(px|pt)$/i,"")},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(t,i)=>i+t.o.defaultFontSizePoints,childTemplate:(t,i,o)=>`${o}${t.o.defaultFontSizePoints}`,tooltip:"Font size",value(t,i){var o;let r=t.s.current();if(!r)return;let a=n.Dom.closest(r,n.Dom.isElement,t.editor);if(!a)return;let l=(null==(o=i.control.data)?void 0:o.cssRule)||"font-size",c=(0,s.css)(a,l);if("font-size"===l){let i=parseFloat(c.toString());return"pt"===t.o.defaultFontSizePoints?Math.round(.75*i).toString():Math.round(i).toString()}return c.toString()},isChildActive(t,i){var o,n;let r=i.state.value,s=null!=(n=null==(o=i.control.data)?void 0:o.normalize)?n:t=>t;return!!(r&&i.control.args&&s(i.control.args[0].toString())===s(r.toString()))},isActive(t,i){var o,n;let r=i.state.value;if(!r)return!1;let s=null!=(n=null==(o=i.control.data)?void 0:o.normalize)?n:t=>t,a=i.control.data.cacheListSet;return a||(a=new Set(Object.keys(i.control.list).map(s)),i.control.data.cacheListSet=a),a.has(s(r.toString()))}},l.Config.prototype.controls.font={...l.Config.prototype.controls.fontsize,command:"fontname",textTemplate(t,i){let[o]=i.split(",");return(0,r.trimChars)(o,"\"'")},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(t,i,o){let n=!1;try{n=-1===i.indexOf("dings")&&document.fonts.check("16px "+i,o)}catch(t){}return`<span data-style="${i}" style="${n?`font-family: ${i}!important;`:""}">${o}</span>`},data:{cssRule:"font-family",normalize:t=>t.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},value(t){let i=t.s.current();if(!i)return;let o=n.Dom.closest(i,n.Dom.isElement,t.editor);if(!o)return;let r=(0,s.css)(o,"font-family").toString();return r===(0,s.css)(t.editor,"font-family").toString()?"":r},tooltip:"Font family"}},23399:function(t,i,o){"use strict";var n=o(580),r=o(21537);o(28252),n.pluginSystem.add("font",function(t){t.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});let i=(i,o,n)=>{switch(i){case"fontsize":t.s.commitStyle({attributes:{style:{fontSize:(0,r.normalizeSize)(n,t.o.defaultFontSizePoints)}}});break;case"fontname":t.s.commitStyle({attributes:{style:{fontFamily:n}}})}return t.synchronizeValues(),!1};t.registerCommand("fontsize",i).registerCommand("fontname",i)})},4104:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg> '},83709:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg> '},24630:function(t,i,o){"use strict";var n=o(2748),r=o(72430),s=o(12153),a=o(6441),l=o(89816);s.Icon.set("paragraph",l.default),a.Config.prototype.controls.paragraph={command:"formatBlock",value(t,i){var o,r;let s=i.control,a=t.s.current(),l=n.Dom.closest(a,n.Dom.isBlock,t.editor);return null!=(o=null==l?void 0:l.nodeName.toLowerCase())?o:null==(r=s.data)?void 0:r.currentValue},update(t,i){let o=i.control;if(!t.s.current())return!1;let n=i.state.value,s=o.list;return(0,r.isPlainObject)(s)&&s[n.toString()]&&t.o.textIcons&&(i.state.text=s[n.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(t,i){var o,n;return i.state.value===(null==(n=null==(o=i.control)?void 0:o.args)?void 0:n[0])},isActive:(t,i)=>i.state.value!==t.o.enter&&(0,r.isPlainObject)(i.control.list)&&!!i.control.list[i.state.value],childTemplate:(t,i,o)=>`<${i} style="margin:0;padding:0"><span>${t.i18n(o)}</span></${i}>`,tooltip:"Insert format block"}},96111:function(t,i,o){"use strict";var n=o(580);o(24630),n.pluginSystem.add("formatBlock",function(t){t.registerButton({name:"paragraph",group:"font"}),t.registerCommand("formatblock",(i,o,n)=>(t.s.commitStyle({element:n}),t.synchronizeValues(),!1))})},89816:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg> '},99823:function(t,i,o){"use strict";var n=o(82758),r=o(12153),s=o(6441),a=o(6950),l=o(28911);s.Config.prototype.fullsize=!1,s.Config.prototype.globalFullSize=!0,r.Icon.set("fullsize",a.default).set("shrink",l.default),s.Config.prototype.controls.fullsize={exec(t){t.toggleFullSize()},update(t,i){let o=t.isFullSize?"shrink":"fullsize";i.state.activated=t.isFullSize,t.o.textIcons?i.state.text=o:i.state.icon.name=o},tooltip:"Open in fullsize",mode:n.MODE_SOURCE+n.MODE_WYSIWYG}},2169:function(t,i,o){"use strict";var n=o(580),r=o(19306),s=o(41180);o(99823);let a=new Set;n.pluginSystem.add("fullsize",function(t){t.registerButton({name:"fullsize"});let i=!1,o=0,n=0,l=0,c=0,d=!1,u=()=>{let{container:r,events:a}=t;a&&(i?(d||(o=(0,s.css)(r,"height",!0),n=(0,s.css)(r,"width",!0),d=!0),(0,s.css)(r,{height:t.ow.innerHeight,width:t.ow.innerWidth})):d&&((0,s.css)(r,{height:o||"auto",width:n||"auto"}),d=!1))},h=o=>{var n;let{container:d,events:h}=t;if(d){if(void 0===o&&(o=!d.classList.contains("jodit_fullsize")),t.setMod("fullsize",o),t.o.fullsize=o,i=o,d.classList.toggle("jodit_fullsize",o),t.toolbar&&((0,r.isJoditObject)(t)&&(null==(n=t.toolbarContainer)||n.appendChild(t.toolbar.container)),(0,s.css)(t.toolbar.container,"width","auto")),o?a.add(d):a.delete(d),t.o.globalFullSize&&(1===a.size&&o||0===a.size&&!o)){o&&(l=t.ow.scrollX,c=t.ow.scrollY);let i=d.parentNode;for(;i&&i.nodeType!==Node.DOCUMENT_NODE&&i.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)i.classList.toggle("jodit_fullsize-box_true",o),i=i.parentNode;u(),o||t.ow.scrollTo(l,c)}h.fire("afterResize")}};t.o.globalFullSize&&t.e.on(t.ow,"resize",u),t.e.on("afterInit afterOpen",()=>{var i;t.toggleFullSize(null==(i=null==t?void 0:t.options)?void 0:i.fullsize)}).on("toggleFullSize",h).on("beforeDestruct",()=>{i&&h(!1)}).on("beforeDestruct",()=>{t.events&&t.e.off(t.ow,"resize",u)})})},6950:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg> '},28911:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg> '},78524:function(t,i,o){"use strict";o(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(t,i,o){"use strict";var n=o(82758),r=o(580),s=o(21537),a=o(50911);o(78524);class l extends a.Plugin{afterInit(t){(0,s.keys)(t.o.commandToHotkeys,!1).forEach(i=>{let o=t.o.commandToHotkeys[i];o&&((0,s.isArray)(o)||(0,s.isString)(o))&&t.registerHotkeyToCommand(o,i)});let i=!1;t.e.off(".hotkeys").on([t.ow,t.ew],"keydown.hotkeys",t=>{if(t.key===n.KEY_ESC)return this.j.e.fire("escape",t)}).on("keydown.hotkeys",o=>{let n=this.onKeyPress(o),r={shouldStop:!0};if(!1===this.j.e.fire(n+".hotkey",o.type,r))if(r.shouldStop)return i=!0,t.e.stopPropagation("keydown"),!1;else o.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(i)return i=!1,t.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(t){t.events&&t.e.off(".hotkeys")}constructor(){super(...arguments),this.onKeyPress=t=>{let i=this.specialKeys[t.which],o=(t.key||String.fromCharCode(t.which)).toLowerCase(),n=[i||o];return["alt","ctrl","shift","meta"].forEach(o=>{t[o+"Key"]&&i!==o&&n.push(o)}),(0,s.normalizeKeyAliases)(n.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:"'"}}}r.pluginSystem.add("hotkeys",l)},16233:function(t,i,o){"use strict";var n=o(22732),r=o(580),s=o(12153),a=o(6441),l=o(72337);s.Icon.set("hr",l.default),a.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},r.pluginSystem.add("hr",function(t){t.registerButton({name:"hr",group:"insert"}),t.registerCommand("insertHorizontalRule",()=>{let i=t.createInside.element("hr");t.s.insertNode(i,!1,!1);let o=n.Dom.closest(i.parentElement,n.Dom.isBlock,t.editor);o&&n.Dom.isEmpty(o)&&o!==t.editor&&(n.Dom.after(o,i),n.Dom.safeRemove(o));let r=n.Dom.next(i,n.Dom.isBlock,t.editor,!1);return r||(r=t.createInside.element(t.o.enter),n.Dom.after(i,r)),t.s.setCursorIn(r),!1})})},72337:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg> '},50963:function(t,i,o){"use strict";var n=o(6441);n.Config.prototype.iframeBaseUrl="",n.Config.prototype.iframeTitle="Jodit Editor",n.Config.prototype.iframeDoctype="<!DOCTYPE html>",n.Config.prototype.iframeDefaultSrc="about:blank",n.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}',n.Config.prototype.iframeCSSLinks=[],n.Config.prototype.iframeSandbox=null},77469:function(t,i,o){"use strict";var n=o(82758),r=o(580),s=o(21537);o(50963),r.pluginSystem.add("iframe",function(t){let i=t.options;t.e.on("afterSetMode",()=>{t.isEditorMode()&&t.s.focus()}).on("generateDocumentStructure.iframe",(t,o)=>{let n=t||o.iframe.contentWindow.document;if(n.open(),n.write(i.iframeDoctype+`<html dir="${i.direction}" class="jodit" lang="${(0,s.defaultLanguage)(i.language)}">`+"<head>"+`<title>${i.iframeTitle}</title>`+(i.iframeBaseUrl?`<base href="${i.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),n.close(),i.iframeCSSLinks&&i.iframeCSSLinks.forEach(t=>{let i=n.createElement("link");(0,s.attr)(i,"rel","stylesheet"),(0,s.attr)(i,"href",t),n.head&&n.head.appendChild(i)}),i.iframeStyle){let t=n.createElement("style");t.innerHTML=i.iframeStyle,n.head&&n.head.appendChild(t)}}).on("createEditor",()=>{if(!i.iframe)return;let o=t.c.element("iframe");o.style.display="block",o.src="about:blank",o.className="jodit-wysiwyg_iframe",(0,s.attr)(o,{allowtransparency:"true",tabindex:i.tabIndex.toString(),frameborder:"0"}),null!=i.iframeSandbox&&(0,s.attr)(o,"sandbox",i.iframeSandbox),t.workplace.appendChild(o),t.iframe=o;let r=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,s.callPromise)(r,()=>{if(!t.iframe)return!1;let o=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;let r=i.editHTMLDocumentMode,a=()=>{(0,s.attr)(o.body,"contenteditable",t.getMode()!==n.MODE_SOURCE&&!t.getReadOnly()||null)},l=t=>{let i=/<body.*<\/body>/im,o="{%%BODY%%}",n=i.exec(t);return n&&(t=t.replace(i,o).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/<span([^&]*?)>(.*?)<\/span>/gim,"").replace(o,n[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")),t};if(r){let i=t.element.tagName;if("TEXTAREA"!==i&&"INPUT"!==i)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");t.e.on("beforeGetNativeEditorValue",()=>l(t.o.iframeDoctype+o.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:i})=>!t.isLocked&&(/<(html|body)/i.test(i)?l(o.documentElement.outerHTML)!==l(i)&&(o.open(),o.write(t.o.iframeDoctype+l(i)),o.close(),t.editor=o.body,t.e.fire("safeHTML",t.editor),a(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):o.body.innerHTML=i,!0),{top:!0})}if(t.editor=o.body,t.e.on("afterSetMode afterInit afterAddPlace",a),"auto"===i.height){o.documentElement&&(o.documentElement.style.overflowY="hidden");let n=t.async.throttle((...o)=>{t.async.requestAnimationFrame(()=>{if(t.editor&&t.iframe&&"auto"===i.height){let i=t.ew.getComputedStyle(t.editor),o=parseInt(i.marginTop||"0",10)+parseInt(i.marginBottom||"0",10);(0,s.css)(t.iframe,"height",t.editor.offsetHeight+o)}})},t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",n).on([t.iframe,t.ew,o.documentElement],"load",n).on(o,"readystatechange DOMContentLoaded",n),"function"==typeof ResizeObserver){let i=new ResizeObserver(n);i.observe(o.body),t.e.on("beforeDestruct",()=>{i.disconnect()})}}return o.documentElement&&t.e.on(o.documentElement,"mousedown touchend",()=>{t.s.isFocused()||(t.s.focus(),t.editor===o.body&&t.s.setCursorIn(o.body))}).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",i=>{var o;null==(o=t.events)||o.fire(t.ow,i)}),!1})})})},85745:function(t,i,o){"use strict";o(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},80763:function(t,i,o){"use strict";var n=o(82758),r=o(65478),s=o(580),a=o(21537),l=o(50911);o(85745);var c=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};let d="__jodit_imageprocessor_binded",u=d+"blob-id";class h extends l.Plugin{afterInit(t){}beforeDestruct(t){let i=(0,r.cached)(t,"buffer"),o=null==i?void 0:i.get(u);if(i&&o){for(let t of Object.keys(o))URL.revokeObjectURL(t);i.delete(u)}}onAfterGetValueFromEditor(t,i){if(i!==n.SOURCE_CONSUMER)return this.onBeforeSetElementValue(t)}onBeforeSetElementValue(t){let{jodit:i}=this;if(!i.o.imageProcessor.replaceDataURIToBlobIdInView)return;let o=i.buffer.get(u);if(o)for(let i of Object.keys(o))for(;t.value.includes(i);)t.value=t.value.replace(i,o[i])}async afterChange(t){let{jodit:i}=this;i.editor&&(0,a.$$)("img",i.editor).forEach(t=>{(0,a.dataBind)(t,d)||((0,a.dataBind)(t,d,!0),t.complete||i.e.on(t,"load",function o(){var n;i.isInDestruct||null==(n=i.e)||n.fire("resize"),i.e.off(t,"load",o)}),t.src&&/^data:/.test(t.src)&&function(t,i){if(!t.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let o=i.src,n=function(t){let i=atob(t.split(",")[1]),o=t.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(i.length),r=new Uint8Array(n);for(let t=0;t<i.length;t++)r[t]=i.charCodeAt(t);return new Blob([n],{type:o})}(o);i.src=URL.createObjectURL(n),t.e.fire("internalUpdate");let{buffer:r}=t,s=r.get(u)||{};s[i.src]=o,t.buffer.set(u,s)}(i,t),i.e.on(t,"mousedown touchstart",()=>{i.s.select(t)}))})}}c([(0,r.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),c([(0,r.watch)(":beforeSetElementValue")],h.prototype,"onBeforeSetElementValue",null),c([(0,r.watch)([":change",":afterInit",":changePlace"]),(0,r.debounce)()],h.prototype,"afterChange",null),s.pluginSystem.add("imageProcessor",h)},97536:function(t,i,o){"use strict";o(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(t,i,o){"use strict";var n=o(65478),r=o(2748),s=o(580),a=o(21537),l=o(20356),c=o(62843);o(97536);var d=o(59436),u=o(53636),h=o(10263),p=o(94575),f=o(34755),m=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};class g extends l.Plugin{get form(){return new d.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,u.openImageEditorDialog)(this.j,this.state),openImagePopup:t=>(0,h.openImagePopup)(this.j,this.dialog,this.state,t)})}get dialog(){let{j:t}=this,i=t.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),o=this.__buttons;return o.check.onAction(()=>{(0,f.applyValuesToImage)(t,this.state,this.state.sourceImage),t.synchronizeValues(),i.close()}),o.remove.onAction(()=>{t.s.removeNode(this.state.sourceImage),i.close()}),o.cancel.onAction(()=>{i.close()}),i.setHeader(t.i18n("Image properties")),i.setContent(this.form),i.setFooter([[o.cancel,o.remove],o.check]),t.e.on(i,"afterClose",()=>{this.state.image.parentNode&&t.o.image.selectImageAfterClose&&t.s.select(this.state.sourceImage)}),i.setSize(t.o.image.dialogWidth),(0,a.markOwner)(t,i.container),i}get __buttons(){let{j:t}=this;return{check:(0,c.Button)(t,"ok","Apply","primary"),remove:(0,c.Button)(t,"bin","Delete"),cancel:(0,c.Button)(t,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((t,i)=>(0,p.readValuesFromImage)(this.j,this.state).then(t,i)).catch(t=>{(0,a.isAbortError)(t)||this.dialog.message.error(t.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(t=>t.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(t=>t.state.disabled=!1)}afterInit(t){let i=this;t.e.on("afterConstructor changePlace",()=>{t.e.off(t.editor,".imageproperties").on(t.editor,"dblclick.imageproperties",o=>{let n=o.target;if(r.Dom.isTag(n,"img"))if(t.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",n))return;i.state.sourceImage=n,i.state.image=n.cloneNode(!0),t.o.readonly||(o.stopImmediatePropagation(),o.preventDefault(),i.open())}else o.stopImmediatePropagation(),t.s.select(n)})}).on("openImageProperties.imageproperties",t=>{i.state.sourceImage=t,this.state.image=t.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:t,values:i}=this.state;if(t.src)try{this.__lock();try{await t.decode()}catch(t){}if(this.state.sizeIsLocked&&(0,a.isNumeric)(i.imageWidth)){let t=parseFloat(i.imageWidth.toString());i.imageHeight=Math.round(t/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",t)}catch(t){this.j.alert(t.message)}finally{this.__unlock()}}beforeDestruct(t){var i,o,r;Object.values(null!=(i=(0,n.cached)(this,"__buttons"))?i:{}).forEach(t=>t.destruct()),null==(o=(0,n.cached)(this,"dialog"))||o.destruct(),null==(r=(0,n.cached)(this,"form"))||r.destruct(),t.e.off(t.editor,".imageproperties").off(".imageproperties")}constructor(){super(...arguments),this.state={image:new Image,sourceImage:new Image,get ratio(){const{naturalWidth:t,naturalHeight:i}=this.image;return t/i||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"}}}m([n.cache],g.prototype,"form",null),m([n.cache],g.prototype,"dialog",null),m([n.cache],g.prototype,"__buttons",null),m([(0,n.watch)("state.image")],g.prototype,"onStateValuesImageSrcChange",null),s.pluginSystem.add("imageProperties",g)},51642:function(t,i,o){"use strict";o.d(i,{readAlign:function(){return r}});var n=o(41180);function r(t,i){t.style.cssFloat&&-1!==["left","right"].indexOf(t.style.cssFloat.toLowerCase())?i.align=(0,n.css)(t,"float"):"block"===(0,n.css)(t,"display")&&"auto"===t.style.marginLeft&&"auto"===t.style.marginRight?i.align="center":i.align=""}},94575:function(t,i,o){"use strict";o.d(i,{readValuesFromImage:function(){return c}});var n=o(29960),r=o(51642),s=o(75595),a=o(47749),l=o(32566);async function c(t,i){let{sourceImage:o,values:c}=i;return(0,r.readAlign)(o,c),c.borderRadius=parseInt(o.style.borderRadius||"0",10)||0,c.id=(0,n.attr)(o,"id")||"",c.imageTitle=(0,n.attr)(o,"title")||"",c.imageAlt=(0,n.attr)(o,"alt")||"",c.style=(0,n.attr)(o,"style")||"",c.classes=((0,n.attr)(o,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,a.readMargins)(o,c,i),(0,s.readLink)(i,t,c),c.imageSrc=(0,n.attr)(o,"src")||"",(0,l.readSizes)(o,c,i)}},75595:function(t,i,o){"use strict";o.d(i,{readLink:function(){return s}});var n=o(2748),r=o(29960);function s(t,i,o){let s=n.Dom.closest(t.sourceImage,"a",i.editor);s?(o.imageLink=(0,r.attr)(s,"href")||"",o.imageLinkOpenInNewTab="_blank"===(0,r.attr)(s,"target")):(o.imageLink="",o.imageLinkOpenInNewTab=!1)}},47749:function(t,i,o){"use strict";o.d(i,{readMargins:function(){return r}});var n=o(12475);function r(t,i,o){let r=!0,s=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(o=>{let a=t.style.getPropertyValue((0,n.kebabCase)(o));if(!a){s=!0,i[o]=0;return}/^[0-9]+(px)?$/.test(a)&&(a=parseInt(a,10)),i[o]=a,(s&&i[o]||r&&"marginTop"!==o&&i[o]!==i.marginTop)&&(r=!1)}),o.marginIsLocked=r}},32566:function(t,i,o){"use strict";o.d(i,{readSizes:function(){return l}});var n=o(29807),r=o(29960),s=o(41180),a=o(14415);async function l(t,i,o){try{await t.decode()}catch(t){}let l=(0,s.css)(t,"width",!0)||(0,r.attr)(t,"width")||!1,c=(0,s.css)(t,"height",!0)||(0,r.attr)(t,"height")||!1;i.imageWidth=!1!==l?(0,a.normalSizeFromString)(l):t.offsetWidth||t.naturalWidth,(0,n.isNumeric)(i.imageWidth)?i.imageHeight=!1!==c?(0,a.normalSizeFromString)(c):t.offsetHeight||t.naturalHeight:i.imageHeight=c||"";let{imageWidth:d,imageHeight:u}=i,h=parseFloat(d.toString());if(!(0,n.isNumeric)(d)||!(0,n.isNumeric)(u)){o.sizeIsLocked=!1;return}if(!1===c){i.imageHeight=Math.round(h/o.ratio),o.sizeIsLocked=!0;return}o.sizeIsLocked=1>Math.abs(h-parseFloat(u.toString())*o.ratio)}},59436:function(t,i,o){"use strict";o.d(i,{UIImagePropertiesForm:function(){return p}});var n=o(65478),r=o(87325),s=o(21537),a=o(62405),l=o(12153),c=o(92762),d=o(35105),u=o(29827),h=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};let p=class t extends a.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(t){let i=super.getElm(t);if(i)return i;for(let i of this.elements){let o=i.getElm(t);if(o)return o}return null}render(){return`<form>
|
|
143
|
+
</div>`}setPrompt(t){if(t){let{jodit:i}=this,o=i.o.aiAssistant[t],{aiCommonPrefixPrompt:n,aiCommonSuffixPrompt:r}=i.o.aiAssistant;this.promptInput.value=[n,(0,a.isString)(o)?o:"",r].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(t){this.setMod("loading",!1),s.Dom.detach(this.__results),this.__aiResult=t,this.__results.appendChild(this.jodit.c.fromHTML(t)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(t){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=t,s.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let i=this.getFullElName("","hide","true");this.__results.classList.add(i),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(t){this.__submitButton.state.disabled=t,this.__tryAgainButton.state.disabled=t}__toggleInsertButton(t){this.__insertButton.state.disabled=t,this.__insertAfterButton.state.disabled=t}constructor(t,{onInsert:i,onInsertAfter:o}){super(t),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,l.Button)(t,"","Insert","primary").onAction(()=>i(this.__aiResult)),this.__insertAfterButton=(0,l.Button)(t,"","Insert After","initial").onAction(()=>o(this.__aiResult));const n=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,l.Button)(t,"ai-assistant","").onAction(n),this.__tryAgainButton=(0,l.Button)(t,"update","","initial").onAction(n),this.promptInput=new l.UITextArea(t,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});const r=new l.UIBlock(t,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new l.UIForm(t,[new l.UIBlock(t,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(i=>{this.__error.textContent="",this.setMod("loading",!0),t.e.fire("invokeAiAssistant",i.prompt);let o=this.getFullElName("","hide","true");this.__results.classList.remove(o),this.__buttons.classList.remove(o),s.Dom.detach(this.__results),this.__results.appendChild(this.__spinner),this.__insertButton.focus()}),this.__buttons.appendChild(r.container),this.__body.appendChild(this.__formAiAssistant.container),this.onChangePromptValue()}};d([(0,r.watch)(":ai-assistant-response")],u.prototype,"onAiAssistentResponse",null),d([(0,r.watch)(":ai-assistant-error")],u.prototype,"onAiAssistentError",null),d([(0,r.watch)("promptInput:change")],u.prototype,"onChangePromptValue",null),u=d([n.component],u)},25187:function(t,i,o){"use strict";o(73391),o(12391),o(93183),o(66707),o(41107),o(71255),o(82439),o(61323),o(93079),o(19063),o(19271),o(1255),o(575),o(11317),o(36243),o(23399),o(96111),o(2169),o(42263),o(16233),o(77469),o(23531),o(80763),o(3215),o(70045),o(93401),o(76295),o(59483),o(91071),o(61019),o(65517),o(20071),o(32309),o(64837),o(79799),o(31571),o(85407),o(59451),o(18363),o(8355),o(58519),o(6687),o(56113),o(9159),o(12019),o(36125),o(9881),o(28545),o(45927),o(52951),o(43809),o(7309),o(68687),o(59495),o(39627),o(767),o(43003),o(72439),o(26551),o(72253),o(65735),o(83671),o(3115)},93183:function(t,i,o){"use strict";var n=o(82758),r=o(22732),s=o(580),a=o(23282),l=o(50911),c=o(45124);o(32496);var d=o(11338),u=o(14630);class h extends l.Plugin{afterInit(t){t.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:t.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:t.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:t.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:t.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:t.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:t.o.delete.hotkeys.backspaceSentence})}beforeDestruct(t){t.e.off("afterCommand.delete")}onDelete(t,i="char"){let o=this.j,s=o.selection;if(s.isFocused()||s.focus(),(0,d.checkNotCollapsed)(o))return o.e.fire("backSpaceAfterDelete",t),!1;let l=s.range,h=o.createInside.text(n.INVISIBLE_SPACE);try{if(r.Dom.safeInsertNode(l,h),!r.Dom.isOrContains(o.editor,h))return;if(o.e.fire("backSpaceBeforeCases",t,h))return!1;(0,c.moveNodeInsideStart)(o,h,t);let s=o.o.delete.disableCases;if(u.casesMap.some(([r,l])=>{if(!(s&&s.has(r))&&(0,a.isFunction)(l)&&l(o,h,t,i))return n.IS_PROD,!0}))return!1}catch(t){throw n.IS_PROD,t}finally{o.e.fire("backSpaceAfterDelete",t,h),this.safeRemoveEmptyNode(h)}return!1}safeRemoveEmptyNode(t){var i,o;let{range:n}=this.j.s;n.startContainer===t&&(t.previousSibling?r.Dom.isText(t.previousSibling)?n.setStart(t.previousSibling,null!=(o=null==(i=t.previousSibling.nodeValue)?void 0:i.length)?o:0):n.setStartAfter(t.previousSibling):t.nextSibling&&(r.Dom.isText(t.nextSibling)?n.setStart(t.nextSibling,0):n.setStartBefore(t.nextSibling)),n.collapse(!0),this.j.s.selectRange(n)),r.Dom.safeRemove(t)}}h.requires=["hotkeys"],s.pluginSystem.add("backspace",h)},62845:function(t,i,o){"use strict";o.d(i,{checkJoinNeighbors:function(){return a}});var n=o(82758),r=o(2748),s=o(63785);function a(t,i,o){let s=i,a=s;for(;s&&!r.Dom.findNotEmptySibling(s,o)&&s.parentElement!==t.editor;)a=s=s.parentElement;if(r.Dom.isElement(a)&&r.Dom.isContentEditable(a,t.editor)){var c,d;let s,u,h,p=r.Dom.findNotEmptySibling(a,o);if(r.Dom.isTag(p,"br"))return r.Dom.safeRemove(p),t.s.setCursorBefore(i),!0;if(p&&(c=a,d=p,s=r.Dom.isTag(d,n.LIST_TAGS),u=r.Dom.isTag(c,n.LIST_TAGS),h=(t,i)=>i?t.firstElementChild:t.lastElementChild,(u?(d=t.createInside.element(t.o.enterBlock),r.Dom.before(c,d),l(t,h(c,o),d,o)):!!d&&!!s&&!u&&l(t,c,h(d,!o),o))||l(t,a,function(t,i){if(!r.Dom.isTag(t,"table"))return t;let o=t.querySelectorAll("td,th");return o.length?o[i?o.length-1:0]:null}(p,o),o)))return t.s.setCursorBefore(i),!0}return!1}function l(t,i,o,n){if(i&&r.Dom.isElement(o)){r.Dom.moveContent(i,o,!n,(0,s.getMoveFilter)(t));let a=i;for(;a&&a!==t.editor&&r.Dom.isEmpty(a);){let t=a.parentElement;r.Dom.safeRemove(a),a=t}return!0}return!1}},91748:function(t,i,o){"use strict";o.d(i,{checkJoinTwoLists:function(){return a}});var n=o(2748),r=o(37790),s=o(63785);function a(t,i,o){let a=n.Dom.findSibling(i,o),l=n.Dom.findSibling(i,!o);if(!n.Dom.closest(i,n.Dom.isElement,t.editor)&&n.Dom.isList(a)&&n.Dom.isList(l)&&n.Dom.isTag(a.lastElementChild,"li")&&n.Dom.isTag(l.firstElementChild,"li")){let{setCursorBefore:c,setCursorAfter:d}=t.s,u=a.lastElementChild,h=l.firstElementChild;return(0,r.call)(o?n.Dom.prepend:n.Dom.append,h,i),n.Dom.moveContent(l,a,!o,(0,s.getMoveFilter)(t)),n.Dom.safeRemove(l),(0,r.call)(o?n.Dom.append:n.Dom.prepend,u,i),(0,r.call)(o?c:d,i),!0}return!1}},11338:function(t,i,o){"use strict";function n(t){return!t.s.isCollapsed()&&(t.execCommand("Delete"),!0)}o.d(i,{checkNotCollapsed:function(){return n}})},73792:function(t,i,o){"use strict";o.d(i,{checkRemoveChar:function(){return function t(i,o,a,c){var d,u,h,p;let f,m=a?-1:1,g=r.Dom.sibling(o,!a),b=r.Dom.sibling(o,a),y=null,w=!1;for(b||(b=l(o,a,i.editor));b&&(r.Dom.isText(b)||r.Dom.isInlineBlock(b));){for(;r.Dom.isInlineBlock(b);)b=a?null==b?void 0:b.lastChild:null==b?void 0:b.firstChild;if(!b)break;if((null==(d=b.nodeValue)?void 0:d.length)&&(f=function(t,i,o,a){let l=(0,s.toArray)(t.nodeValue),c=l.length,d=i?c-1:0;if(l[d]===n.INVISIBLE_SPACE)for(;l[d]===n.INVISIBLE_SPACE;)d+=o;let u=l[d];if(l[d+o]===n.INVISIBLE_SPACE){for(d+=o;l[d]===n.INVISIBLE_SPACE;)d+=o;d+=i?1:-1}return l=i&&d<0?[]:l.slice(i?0:d+1,i?d:c),function(t,i,o){var a;if(!t||!r.Dom.isText(t)||(!i?/ $/:/^ /).test(null!=(a=t.nodeValue)?a:"")||!(0,s.trimInv)(t.nodeValue||"").length)for(let t=i?o.length-1:0;i?t>=0:t<o.length;t+=i?-1:1)if(" "===o[t])o[t]=n.NBSP_SPACE;else break}(a,i,l),t.nodeValue=l.join(""),u}(b,a,m,g),!b.nodeValue.length&&r.Dom.isInlineBlock(b.parentNode)&&(b.nodeValue=n.INVISIBLE_SPACE)),(null==(u=b.nodeValue)?void 0:u.length)||(y=b),!(0,s.isVoid)(f)&&f!==n.INVISIBLE_SPACE){h=b,p=f,(0,s.call)(a?r.Dom.after:r.Dom.before,h,o),("sentence"===c||"word"===c&&" "!==p&&p!==n.NBSP_SPACE)&&t(i,o,a,c),w=!0;break}let _=l(b,a,i.editor);y&&(r.Dom.safeRemove(y),y=null),b=_}return y&&(r.Dom.safeRemove(y),y=null),w&&(function(t){let i=t.parentElement;for(;i&&r.Dom.isInlineBlock(i)&&r.Dom.isTag(i,"a");){let o=i.parentElement;r.Dom.isEmpty(i)&&(r.Dom.after(i,t),r.Dom.safeRemove(i)),i=o}}(o),o.parentElement!==i.editor&&r.Dom.isBlock(o.parentElement)&&r.Dom.each(o.parentElement,r.Dom.isEmptyTextNode)&&r.Dom.after(o,i.createInside.element("br")),i.s.setCursorBefore(o),r.Dom.isTag(o.previousSibling,"br")&&!r.Dom.findNotEmptySibling(o,!1)&&r.Dom.after(o,i.createInside.element("br"))),w}}});var n=o(82758),r=o(22732),s=o(21537),a=o(63785);function l(t,i,o){let n=r.Dom.sibling(t,i);return!n&&t.parentNode&&t.parentNode!==o&&(n=(0,a.findMostNestedNeighbor)(t,!i,o,!0))&&r.Dom.closest(t,"li",o)!==r.Dom.closest(n,"li",o)?null:n}},87536:function(t,i,o){"use strict";o.d(i,{checkRemoveContentNotEditable:function(){return a}});var n=o(22732),r=o(21537),s=o(45124);function a(t,i,o){let a=n.Dom.findSibling(i,o);return!a&&i.parentElement&&i.parentElement!==t.editor&&(a=n.Dom.findSibling(i.parentElement,o)),!(!n.Dom.isElement(a)||n.Dom.isContentEditable(a,t.editor))&&((0,r.call)(o?n.Dom.before:n.Dom.after,a,i),n.Dom.safeRemove(a),(0,s.moveNodeInsideStart)(t,i,o),(0,r.call)(o?t.s.setCursorBefore:t.s.setCursorAfter,i),!0)}},12474:function(t,i,o){"use strict";o.d(i,{checkRemoveEmptyNeighbor:function(){return r}});var n=o(2748);function r(t,i,o){let r=n.Dom.closest(i,n.Dom.isElement,t.editor);if(!r)return!1;let s=n.Dom.findNotEmptySibling(r,o);return!!(s&&n.Dom.isEmpty(s))&&(n.Dom.safeRemove(s),t.s.setCursorBefore(i),!0)}},58940:function(t,i,o){"use strict";o.d(i,{checkRemoveEmptyParent:function(){return a}});var n=o(82758),r=o(22732),s=o(91748);function a(t,i,o){let a=!1,{setCursorBefore:l,setCursorIn:c}=t.s,d=r.Dom.closest(i,r.Dom.isElement,t.editor);if(!d||!r.Dom.isEmpty(d))return!1;let u=r.Dom.findNotEmptyNeighbor(i,o,t.editor);do if(d&&r.Dom.isEmpty(d)&&!r.Dom.isCell(d)){r.Dom.after(d,i);let o=r.Dom.closest(d,t=>r.Dom.isElement(t)&&t!==d,t.editor);r.Dom.safeRemove(d),a=!0,d=o}else break;while(d)return!!(a&&(0,s.checkJoinTwoLists)(t,i,o))||(!u||r.Dom.isText(u)||r.Dom.isTag(u,n.INSEPARABLE_TAGS)?l(i):c(u,!o),a)}},56825:function(t,i,o){"use strict";o.d(i,{checkRemoveUnbreakableElement:function(){return a}});var n=o(82758),r=o(2748),s=o(58940);function a(t,i,o){let a=r.Dom.findSibling(i,o);return!!(r.Dom.isElement(a)&&(r.Dom.isTag(a,n.INSEPARABLE_TAGS)||r.Dom.isEmpty(a)))&&(r.Dom.safeRemove(a),r.Dom.isTag(a,"br")&&!r.Dom.findNotEmptySibling(i,!1)&&r.Dom.after(i,t.createInside.element("br")),t.s.setCursorBefore(i),r.Dom.isTag(a,"br")&&(0,s.checkRemoveEmptyParent)(t,i,o),!0)}},90240:function(t,i,o){"use strict";o.d(i,{checkTableCell:function(){return r}});var n=o(2748);function r(t,i){let o=i.parentElement;return!!n.Dom.isCell(o)}},68034:function(t,i,o){"use strict";o.d(i,{checkUnwrapFirstListItem:function(){return s}});var n=o(2748),r=o(43555);function s(t,i,o){var s;let a=n.Dom.closest(i,n.Dom.isElement,t.editor),{s:l}=t;if(n.Dom.isLeaf(a)&&(null==(s=null==a?void 0:a.parentElement)?void 0:s[o?"firstElementChild":"lastElementChild"])===a&&l.cursorInTheEdge(o,a)){let s=a.parentElement,c=t.createInside.element(t.o.enterBlock);return(0,r.call)(o?n.Dom.before:n.Dom.after,s,c),n.Dom.moveContent(a,c),n.Dom.safeRemove(a),n.Dom.isEmpty(s)&&n.Dom.safeRemove(s),(0,r.call)(o?l.setCursorBefore:l.setCursorAfter,i),!0}return!1}},14630:function(t,i,o){"use strict";o.d(i,{casesMap:function(){return p}});var n=o(62845),r=o(91748),s=o(73792),a=o(87536),l=o(12474),c=o(58940),d=o(56825),u=o(90240),h=o(68034);let p=[["remove-unbreakable",d.checkRemoveUnbreakableElement],["remove-not-editable",a.checkRemoveContentNotEditable],["remove-char",s.checkRemoveChar],["table-cell",u.checkTableCell],["remove-empty-parent",c.checkRemoveEmptyParent],["remove-empty-neighbor",l.checkRemoveEmptyNeighbor],["join-two-lists",r.checkJoinTwoLists],["join-neighbors",n.checkJoinNeighbors],["unwrap-first-list-item",h.checkUnwrapFirstListItem]];p.map(([,t])=>t)},32496:function(t,i,o){"use strict";o(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(t,i,o){"use strict";o.d(i,{findMostNestedNeighbor:function(){return r},getMoveFilter:function(){return s}});var n=o(22732);function r(t,i,o,s=!1){let a=t=>i?t.firstChild:t.lastChild,l=n.Dom.findNotEmptyNeighbor(t,!i,o);if(s&&n.Dom.isElement(l)&&!n.Dom.isInlineBlock(l))return null;if(l)do{if(!a(l))return l;l=a(l)}while(l)return null}function s(t){return i=>!0!==t.e.fire("backSpaceIsMovedIgnore",i)}},41107:function(t,i,o){"use strict";var n=o(580),r=o(21537),s=o(12153),a=o(6441);o(73674);var l=o(820),c=o(53651),d=o(16020),u=o(89758),h=o(98527),p=o(51855);n.pluginSystem.add("bold",function(t){let i=i=>{let o,n=a.Config.defaultOptions.controls[i],s={...n.css};return Object.keys(s).forEach(t=>{o||(o={}),o[t]=(0,r.isArray)(s[t])?s[t][0]:s[t]}),t.s.commitStyle({element:n.tags?n.tags[0]:void 0}),t.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(i=>{t.registerButton({name:i,group:"font-style"})}),["superscript","subscript"].forEach(i=>{t.registerButton({name:i,group:"script"})}),t.registerCommand("bold",{exec:i,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:i,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:i,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:i}).registerCommand("subscript",{exec:i}).registerCommand("superscript",{exec:i})}),s.Icon.set("bold",l.default).set("italic",c.default).set("strikethrough",d.default).set("subscript",u.default).set("superscript",h.default).set("underline",p.default)},73674:function(t,i,o){"use strict";var n=o(6441);n.Config.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},n.Config.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},n.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},n.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},n.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},n.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},820:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg> '},53651:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg> '},16020:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg> '},89758:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg> '},98527:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg> '},51855:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg> '},71255:function(t,i,o){"use strict";var n=o(2748),r=o(580),s=o(37790),a=o(50911),l=o(12153),c=o(6441),d=o(31151);c.Config.prototype.controls.classSpan={command:"applyClassName",exec:s.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(t,i){let o=t.s.current();if(o){let r=n.Dom.closest(o,n.Dom.isElement,t.editor)||t.editor;return!!(i.control.args&&r.classList.contains(i.control.args[0].toString()))}return!1},isActive(t,i){let o=t.s.current();if(o){let r=n.Dom.closest(o,n.Dom.isElement,t.editor)||t.editor,s=!1;return i.control.list&&Object.keys(i.control.list).forEach(t=>{r.classList.contains(t)&&(s=!0)}),!!(r&&r!==t.editor&&void 0!==i.control.list&&s)}return!1},childTemplate:(t,i,o)=>`<span class="${i}">${t.i18n(o)}</span>`,tooltip:"Insert className"};class u extends a.Plugin{afterInit(t){t.registerCommand("applyClassName",(i,o,n)=>(t.s.commitStyle({attributes:{class:n}}),!1))}beforeDestruct(){}constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}}r.pluginSystem.add("classSpan",u),l.Icon.set("class-span",d.default)},31151:function(t,i){"use strict";i.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg> '},82439:function(t,i,o){"use strict";var n=o(65478),r=o(2748),s=o(70071),a=o(580),l=o(86518),c=o(20356);o(46776);var d=o(59498),u=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};class h extends c.Plugin{afterInit(t){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;let t=this.j;this.walker.setWork(t.editor),this.currentSelectionNode=t.s.current()}startWalker(){let{jodit:t}=this,i=(0,d.getHash)(this.j.o.cleanHTML.allowTags),o=(0,d.getHash)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",n=>(0,d.visitNodeWalker)(t,n,i,o,this.currentSelectionNode)).on("end",t=>{this.j.e.fire(t?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(t){if("removeformat"===t.toLowerCase())return this.j.s.isCollapsed()?(0,d.removeFormatForCollapsedSelection)(this.j):(0,d.removeFormatForSelection)(this.j),!1}onBeforeSetNativeEditorValue(t){let[i,o]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.od.implementation.createHTMLDocument("").body];return i.innerHTML=t.value,this.j.e.fire("safeHTML",i),t.value=i.innerHTML,(0,l.safeHTML)(i,{safeJavaScriptLink:!0,removeOnError:!0}),r.Dom.safeRemove(o),!1}onAfterGetValueFromEditor(t){this.j.o.cleanHTML.collapseEmptyValueToEmptyString&&/^<([a-z][a-z0-9]*)\b[^>]*>(?:<br\/?>)?<\/\1>$/i.test(t.value.trim())&&(t.value="")}onSafeHTML(t){let i=this.j.o.cleanHTML.sanitizer;i&&(t.innerHTML=i(t.innerHTML)),(0,l.safeHTML)(t,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new s.LazyWalker(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}}u([(0,n.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],h.prototype,"onChangeCleanHTML",null),u([(0,n.hook)("ready")],h.prototype,"startWalker",null),u([(0,n.watch)(":beforeCommand")],h.prototype,"beforeCommand",null),u([(0,n.watch)(":beforeSetNativeEditorValue")],h.prototype,"onBeforeSetNativeEditorValue",null),u([(0,n.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),u([(0,n.watch)(":safeHTML")],h.prototype,"onSafeHTML",null),a.pluginSystem.add("cleanHtml",h)},46776:function(t,i,o){"use strict";var n=o(12153),r=o(6441),s=o(44330);r.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},r.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},n.Icon.set("eraser",s.default)},44330:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg> '},83447:function(t,i,o){"use strict";o.d(i,{getHash:function(){return s}});var n=o(70799),r=o(49055);function s(t){let i=/([^[]*)\[([^\]]+)]/,o=/[\s]*,[\s]*/,s=/^(.*)[\s]*=[\s]*(.*)$/,a={};return(0,n.isString)(t)?(t.split(o).map(t=>{t=(0,r.trim)(t);let n=i.exec(t),l={};if(n){let t=n[2].split(o);n[1]&&(t.forEach(t=>{t=(0,r.trim)(t);let i=s.exec(t);i?l[i[1]]=i[2]:l[t]=!0}),a[n[1].toUpperCase()]=l)}else a[t.toUpperCase()]=!0}),a):!!t&&(Object.keys(t).forEach(i=>{a[i.toUpperCase()]=t[i]}),a)}},59498:function(t,i,o){"use strict";o.d(i,{getHash:function(){return n.getHash},removeFormatForCollapsedSelection:function(){return r.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return s.removeFormatForSelection},visitNodeWalker:function(){return a.visitNodeWalker}});var n=o(83447),r=o(84272),s=o(42312),a=o(39516)},15908:function(t,i,o){"use strict";o.d(i,{isAllowedMediaEmbed:function(){return s}});let n=/^(https?:)?\/\/(www\.|m\.|music\.)?youtube(-nocookie)?\.com\/embed\//i,r=/^(https?:)?\/\/player\.vimeo\.com\/video\//i;function s(t){return n.test(t)||r.test(t)}},84272:function(t,i,o){"use strict";o.d(i,{isInlineBlock:function(){return a},removeFormatForCollapsedSelection:function(){return s}});var n=o(82758),r=o(2748);function s(t,i){let{s:o}=t,n=i;if(!n){n=t.createInside.fake();let{range:i}=o;r.Dom.safeInsertNode(i,n),i.collapse()}let s=r.Dom.furthest(n,a,t.editor);if(s)if(o.cursorOnTheLeft(s))r.Dom.before(s,n);else if(o.cursorOnTheRight(s))r.Dom.after(s,n);else{let t=o.splitSelection(s);t&&r.Dom.after(t,n)}i||(o.setCursorBefore(n),r.Dom.safeRemove(n))}function a(t){return r.Dom.isInlineBlock(t)&&!r.Dom.isTag(t,n.INSEPARABLE_TAGS)}},42312:function(t,i,o){"use strict";o.d(i,{removeFormatForSelection:function(){return a}});var n=o(2748),r=o(43555),s=o(84272);function a(t){let{s:i,editor:o,createInside:a}=t,{range:l}=i,c=l.cloneRange(),d=l.cloneRange(),u=a.fake(),h=a.fake();c.collapse(!0),d.collapse(!1),n.Dom.safeInsertNode(c,u),n.Dom.safeInsertNode(d,h),l.setStartBefore(u),l.collapse(!0),i.selectRange(l),(0,s.removeFormatForCollapsedSelection)(t,u),l.setEndAfter(h),l.collapse(!1),i.selectRange(l),(0,s.removeFormatForCollapsedSelection)(t,h);let p=[];n.Dom.between(u,h,t=>{(0,s.isInlineBlock)(t)&&!n.Dom.isTag(t,"a")&&p.push(t),n.Dom.isElement(t)&&(0,r.attr)(t,"style")&&(0,r.attr)(t,"style",null)}),p.forEach(t=>n.Dom.unwrap(t));let f=(t,i)=>{if(!n.Dom.findNotEmptySibling(t,i)){let n=t.parentNode;if(n&&n!==o&&(0,r.attr)(n,"style"))return(0,r.attr)(n,"style",null),f(n,i),!0}};f(u,!0)&&f(h,!1),l.setStartAfter(u),l.setEndBefore(h),i.selectRange(l),n.Dom.safeRemove(u),n.Dom.safeRemove(h)}},82558:function(t,i,o){"use strict";o.d(i,{allowAttributes:function(){return r}});var n=o(2748);function r(t,i,o,r){let s=r&&n.Dom.isElement(i)&&r[i.nodeName];if(r&&n.Dom.isElement(i)&&!0!==s){if(!s)return o;let t=i.attributes;if(t&&t.length){let n=[];for(let i=0;i<t.length;i+=1){let o=s[t[i].name];o&&(!0===o||o===t[i].value)||n.push(t[i].name)}n.length&&(o=!0),n.forEach(t=>{i.removeAttribute(t)})}}return o}},1962:function(t,i,o){"use strict";o.d(i,{convertUnsafeEmbeds:function(){return s}});var n=o(2748),r=o(29960);function s(t,i,o){let s=t.o.cleanHTML.convertUnsafeEmbeds;if(!s||!n.Dom.isElement(i))return o;let a=i.nodeName.toLowerCase();if(!s.includes(a))return o;let l=(0,r.attr)(i,"data")||(0,r.attr)(i,"src")||(0,r.attr)(i,"movie")||"";if(!l)return n.Dom.safeRemove(i),!0;let c=t.createInside.element("iframe");return(0,r.attr)(c,{src:l,sandbox:"",frameborder:"0",width:(0,r.attr)(i,"width"),height:(0,r.attr)(i,"height")}),n.Dom.replace(i,c,void 0,!1,!0),!0}},39433:function(t,i,o){"use strict";o.d(i,{fillEmptyParagraph:function(){return a}});var n=o(82758),r=o(2748);let s=new Set(["table","tbody","thead","tfoot","tr"]);function a(t,i,o){if(t.o.cleanHTML.fillEmptyParagraph&&r.Dom.isBlock(i)&&r.Dom.isEmpty(i,n.INSEPARABLE_TAGS)&&!r.Dom.isTag(i,s)){let o=t.createInside.element("br");return i.appendChild(o),!0}return o}},45235:function(t,i,o){"use strict";o.r(i),o.d(i,{allowAttributes:function(){return n.allowAttributes},convertUnsafeEmbeds:function(){return r.convertUnsafeEmbeds},fillEmptyParagraph:function(){return s.fillEmptyParagraph},removeEmptyTextNode:function(){return a.removeEmptyTextNode},removeInvTextNodes:function(){return l.removeInvTextNodes},replaceOldTags:function(){return c.replaceOldTags},safeLinksTarget:function(){return d.safeLinksTarget},sandboxIframesInContent:function(){return u.sandboxIframesInContent},sanitizeAttributes:function(){return h.sanitizeAttributes},sanitizeStyles:function(){return p.sanitizeStyles},tryRemoveNode:function(){return f.tryRemoveNode}});var n=o(82558),r=o(1962),s=o(39433),a=o(53392),l=o(25813),c=o(80973),d=o(95614),u=o(85978),h=o(384),p=o(15583),f=o(28800)},53392:function(t,i,o){"use strict";o.d(i,{removeEmptyTextNode:function(){return r}});var n=o(2748);function r(t,i,o,r,s,a){return n.Dom.isText(i)&&!i.nodeValue?(i===a&&t.s.isCollapsed()&&t.s.setCursorAfter(i),n.Dom.safeRemove(i),!0):o}},25813:function(t,i,o){"use strict";o.d(i,{removeInvTextNodes:function(){return s}});var n=o(82758),r=o(2748);function s(t,i,o,s,a,l){if(l===i||!r.Dom.isText(i)||null==i.nodeValue||!(0,n.INVISIBLE_SPACE_REG_EXP)().test(i.nodeValue))return o;let c=r.Dom.furthest(l,r.Dom.isBlock,t.editor);return!c||r.Dom.isOrContains(c,i)?o:(i.nodeValue=i.nodeValue.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),""),i===l&&t.s.isCollapsed()&&t.s.setCursorAfter(i),i.nodeValue||r.Dom.safeRemove(i),!0)}},80973:function(t,i,o){"use strict";o.d(i,{replaceOldTags:function(){return r}});var n=o(2748);function r(t,i,o){let r=function(t,i,o){if(!o||!n.Dom.isHTMLElement(i))return i;let r=o[i.nodeName.toLowerCase()]||o[i.nodeName];return r?n.Dom.replace(i,r,t.createInside,!0,!1):i}(t,i,t.o.cleanHTML.replaceOldTags);return i!==r?(i=r,!0):o}},95614:function(t,i,o){"use strict";o.d(i,{safeLinksTarget:function(){return s}});var n=o(2748),r=o(29960);function s(t,i,o){if(!t.o.cleanHTML.safeLinksTarget||!n.Dom.isElement(i)||"A"!==i.nodeName||"_blank"!==(0,r.attr)(i,"target"))return o;let s=((0,r.attr)(i,"rel")||"").split(/\s+/).filter(Boolean),a=!1;return(s.includes("noopener")||(s.push("noopener"),a=!0),s.includes("noreferrer")||(s.push("noreferrer"),a=!0),a)?((0,r.attr)(i,"rel",s.join(" ")),!0):o}},85978:function(t,i,o){"use strict";o.d(i,{sandboxIframesInContent:function(){return a}});var n=o(2748),r=o(29960),s=o(15908);function a(t,i,o){return t.o.cleanHTML.sandboxIframesInContent&&n.Dom.isElement(i)&&"IFRAME"===i.nodeName?(0,s.isAllowedMediaEmbed)((0,r.attr)(i,"src")||"")||i.hasAttribute("sandbox")?o:((0,r.attr)(i,"sandbox",""),!0):o}},384:function(t,i,o){"use strict";o.d(i,{sanitizeAttributes:function(){return s}});var n=o(2748),r=o(21537);function s(t,i,o){if(!n.Dom.isElement(i))return o;let s=t.options.cleanHTML;return!!(0,r.sanitizeHTMLElement)(i,{safeJavaScriptLink:s.safeJavaScriptLink,removeOnError:s.removeOnError,removeEventAttributes:s.removeEventAttributes,safeLinksTarget:s.safeLinksTarget})||o}},15583:function(t,i,o){"use strict";o.d(i,{sanitizeStyles:function(){return s}});var n=o(2748),r=o(29960);function s(t,i,o){let s=t.o.cleanHTML.allowedStyles;if(!s||!n.Dom.isElement(i))return o;let a=(0,r.attr)(i,"style");if(!a)return o;let l=function(t,i){let o=i[t],n=i["*"];if(!o&&!n)return null;let r=new Set;if(n)for(let t of n)r.add(t.toLowerCase());if(o)for(let t of o)r.add(t.toLowerCase());return r}(i.nodeName.toLowerCase(),s);if(!l)return o;let c=a.split(";").map(t=>t.trim()).filter(t=>{if(!t)return!1;let i=t.indexOf(":");if(-1===i)return!1;let o=t.substring(0,i).trim().toLowerCase();return l.has(o)}).join("; ").replace(/;\s*$/,"");return c!==a?((0,r.attr)(i,"style",c||null),!0):o}},28800:function(t,i,o){"use strict";o.d(i,{tryRemoveNode:function(){return c}});var n=o(82758),r=o(2748),s=o(49055),a=o(29960),l=o(15908);function c(t,i,o,c,d,u){return!function(t,i,o,c,d){if(!r.Dom.isText(i)){let t=i.nodeName.toUpperCase();if(c&&!c[t])return!0;let o="IFRAME"===t&&(0,l.isAllowedMediaEmbed)((0,a.attr)(i,"src")||"");if(!c&&d&&d[t]&&!o)return!0}if(!t.o.cleanHTML.removeEmptyElements)return!1;let u=t.s.isCollapsed()?t.s.range.startContainer:null;return r.Dom.isElement(i)&&null!=i.nodeName.match(n.IS_INLINE)&&!r.Dom.isTemporary(i)&&0===(0,s.trimInv)(i.innerHTML).length&&(null==o||!r.Dom.isOrContains(i,o))&&(null==u||!r.Dom.isOrContains(i,u))}(t,i,u,c,d)?o:(r.Dom.safeRemove(i),!0)}},39516:function(t,i,o){"use strict";o.d(i,{visitNodeWalker:function(){return a}});var n=o(82758),r=o(45235);let s=Object.keys(r);function a(t,i,o,a,l){let c=!1,d=t.o.cleanHTML.disableCleanFilter;for(let u of s)if(!(d&&d.has(u))&&(c=(0,r[u])(t,i,c,o,a,l),n.IS_PROD,!i.isConnected))return!0;return c}},61323:function(t,i,o){"use strict";var n=o(82758),r=o(33433),s=o(2748),a=o(580),l=o(21537);o(79419);class c{init(t){var i;null==(i=this.buttons)||i.forEach(i=>t.registerButton(i)),t.e.off(`copy.${n.CLIPBOARD_ID} cut.${n.CLIPBOARD_ID}`).on(`copy.${n.CLIPBOARD_ID} cut.${n.CLIPBOARD_ID}`,i=>{var o;let r=function(t,i){if(!i||t.s.isCollapsed())return i;let o=t.s.range.commonAncestorContainer;s.Dom.isElement(o)||(o=o.parentElement);let n=i;for(;o&&o!==t.editor&&s.Dom.isElement(o)&&!s.Dom.isBlock(o);){let t=o.cloneNode(!1);t.innerHTML=n,n=t.outerHTML,o=o.parentElement}return n}(t,t.s.html),a=(0,l.getDataTransfer)(i)||(0,l.getDataTransfer)(t.ew)||(0,l.getDataTransfer)(i.originalEvent);a&&(a.setData(n.TEXT_PLAIN,(0,l.stripTags)(r)),a.setData(n.TEXT_HTML,r)),t.buffer.set(n.CLIPBOARD_ID,r),t.e.fire("pasteStack",{html:r,action:t.o.defaultActionOnPaste||n.INSERT_AS_HTML}),"cut"===i.type&&(t.s.remove(),t.s.focus()),i.preventDefault(),null==(o=null==t?void 0:t.events)||o.fire("afterCopy",r)})}destruct(t){var i,o;null==(i=(0,r.cached)(t,"buffer"))||i.set(n.CLIPBOARD_ID,""),null==(o=null==t?void 0:t.events)||o.off("."+n.CLIPBOARD_ID)}constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}}a.pluginSystem.add("clipboard",c)},79419:function(t,i,o){"use strict";var n=o(12153),r=o(6441),s=o(94775),a=o(23140),l=o(92699),c=o(10052);r.Config.prototype.controls.cut={command:"cut",isDisabled:t=>t.s.isCollapsed(),tooltip:"Cut selection"},r.Config.prototype.controls.copy={command:"copy",isDisabled:t=>t.s.isCollapsed(),tooltip:"Copy selection"},r.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},n.Icon.set("copy",s.default).set("cut",a.default).set("paste",l.default).set("select-all",c.default)},94775:function(t,i){"use strict";i.default='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg> '},23140:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg> '},92699:function(t,i){"use strict";i.default='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg> '},10052:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg> '},46104:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg> '},93079:function(t,i,o){"use strict";var n=o(580),r=o(21537);o(21988),n.pluginSystem.add("color",function(t){t.registerButton({name:"brush",group:"color"});let i=(i,o,n)=>{var s;let a=(0,r.normalizeColor)(n)||"",l="background"===i?{backgroundColor:a}:{color:a},c=t.getInstance("Table",t.o).getAllSelectedCells();return c.length&&t.s.isCollapsed()?(c.forEach(i=>{t.s.select(i,!0),t.s.commitStyle({attributes:{style:l}})}),null==(s=t.s.sel)||s.removeAllRanges()):t.s.commitStyle({attributes:{style:l}}),t.synchronizeValues(),!1};t.registerCommand("forecolor",i).registerCommand("background",i)})},21988:function(t,i,o){"use strict";var n=o(2748),r=o(21537),s=o(12153),a=o(6441),l=o(92762),c=o(46104);s.Icon.set("brush",c.default),a.Config.prototype.controls.brushCell={isVisible:t=>!t.o.disablePlugins.includes("color"),icon:"brush",popup(t,i,o){if(!(0,r.isJoditObject)(t))return;let n=t.getInstance("Table",t.o).getAllSelectedCells();if(!n.length)return!1;let s=i=>(0,l.ColorPickerWidget)(t,s=>{n.forEach(t=>{(0,r.css)(t,i,s)}),t.lock(),t.synchronizeValues(),o(),t.unlock()},(0,r.css)(n[0],i));return(0,l.TabsWidget)(t,[{name:"Background",content:s("background-color")},{name:"Text",content:s("color")},{name:"Border",content:s("border-color")}])},tooltip:"Background"},a.Config.prototype.controls.brush={isVisible:t=>!t.o.disablePlugins.includes("color"),update(t,i){let o=(0,r.dataBind)(i,"color"),s=(o,n)=>!!n&&n!==(0,r.css)(t.editor,o).toString()&&(i.state.icon.fill=n,!0);if(o){let t=(0,r.dataBind)(i,"color");s("color"===t?t:"background-color",o);return}let a=t.s.current();if(a&&!i.state.disabled){let i=n.Dom.closest(a,n.Dom.isElement,t.editor)||t.editor,o=s("color",(0,r.css)(i,"color").toString()),l=s("background-color",(0,r.css)(i,"background-color").toString());if(o||l)return}i.state.icon.fill="",i.state.activated=!1},popup(t,i,o,s){let a="",c="",d=[],u=null;return i&&i!==t.editor&&n.Dom.isNode(i)&&(n.Dom.isElement(i)&&t.s.isCollapsed()&&!n.Dom.isTag(i,new Set(["br","hr"]))&&(u=i),n.Dom.up(i,t=>{if(n.Dom.isHTMLElement(t)){let i=(0,r.css)(t,"color",!0),o=(0,r.css)(t,"background-color",!0);if(i)return a=i.toString(),!0;if(o)return c=o.toString(),!0}},t.editor)),d=[{name:"Background",content:(0,l.ColorPickerWidget)(t,i=>{u?u.style.backgroundColor=i:t.execCommand("background",!1,i),(0,r.dataBind)(s,"color",i),(0,r.dataBind)(s,"color-mode","background"),o()},c)},{name:"Text",content:(0,l.ColorPickerWidget)(t,i=>{u?u.style.color=i:t.execCommand("forecolor",!1,i),(0,r.dataBind)(s,"color",i),(0,r.dataBind)(s,"color-mode","color"),o()},a)}],"background"!==t.o.colorPickerDefaultTab&&(d=d.reverse()),(0,l.TabsWidget)(t,d,u)},exec(t,i,{button:o}){let s=(0,r.dataBind)(o,"color-mode"),a=(0,r.dataBind)(o,"color");if(!s)return!1;if(i&&i!==t.editor&&n.Dom.isNode(i)&&n.Dom.isElement(i))switch(s){case"color":i.style.color=a;break;case"background":i.style.backgroundColor=a}else t.execCommand("background"===s?s:"forecolor",!1,a)},tooltip:"Fill color or set the text color"}},19063:function(t,i,o){"use strict";var n=o(2748),r=o(580),s=o(41180),a=o(12153),l=o(6441),c=o(57487),d=o(23914);let u="copy-format",h=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],p=(t,i,o,n)=>{let r=(0,s.css)(o,i);return r===n[i]&&(r=o.parentNode&&o!==t.editor&&o.parentNode!==t.editor?p(t,i,o.parentNode,n):void 0),r};l.Config.prototype.controls.copyformat={exec(t,i,{button:o}){if(i){if(t.buffer.exists(u))t.buffer.delete(u),t.e.off(t.editor,"mouseup."+u);else{let o,r={},a=n.Dom.up(i,t=>t&&!n.Dom.isText(t),t.editor)||t.editor,l=t.createInside.span();t.editor.appendChild(l),h.forEach(t=>{r[t]=(0,s.css)(l,t)}),l!==t.editor&&n.Dom.safeRemove(l);let c=(o={},a&&h.forEach(i=>{o[i]=p(t,i,a,r),i.match(/border(Style|Color)/)&&!o.borderWidth&&(o[i]=void 0)}),o);t.e.on(t.editor,"mouseup."+u,()=>{t.buffer.delete(u);let i=t.s.current();i&&(n.Dom.isTag(i,"img")?(0,s.css)(i,c):t.s.commitStyle({attributes:{style:c}})),t.e.off(t.editor,"mouseup."+u)}),t.buffer.set(u,!0)}o.update()}},isActive:t=>t.buffer.exists(u),tooltip:"Paint format"},r.pluginSystem.add("copyformat",function(t){t.registerButton({name:"copyformat",group:"clipboard"}),(0,r.extendLang)(d)}),a.Icon.set("copyformat",c.default)},57487:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg> '},23914:function(t,i,o){"use strict";o.r(i),o.d(i,{ar:function(){return r.a},cs_cz:function(){return r.a},de:function(){return r.a},es:function(){return r.a},fa:function(){return r.a},fi:function(){return r.a},fr:function(){return r.a},he:function(){return r.a},hu:function(){return r.a},id:function(){return r.a},it:function(){return r.a},ja:function(){return r.a},ko:function(){return r.a},mn:function(){return r.a},nl:function(){return r.a},pl:function(){return r.a},pt_br:function(){return r.a},ru:function(){return r.a},tr:function(){return r.a},zh_cn:function(){return r.a},zh_tw:function(){return r.a}});var n=o(41324),r=o.n(n)},66707:function(t,i,o){"use strict";var n=o(22732),r=o(580),s=o(21537),a=o(49055),l=o(50911);class c extends l.Plugin{afterInit(t){t.e.on("afterCommand.delete",t=>{"delete"===t&&this.__afterDeleteCommand()}),t.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(t){t.e.off("afterCommand.delete")}__afterDeleteCommand(){let t=this.j,i=t.s.current();if(i&&n.Dom.isTag(i.firstChild,"br")&&t.s.removeNode(i.firstChild),!(0,a.trim)(t.editor.textContent||"")&&!t.editor.querySelector("img,table,jodit,iframe,hr")&&(!i||!n.Dom.closest(i,"table",t.editor))){t.editor.innerHTML="";let i=t.s.setCursorIn(t.editor);t.s.removeNode(i)}}__onDeleteCommand(){let{jodit:t}=this;if(t.s.isCollapsed())return;t.s.expandSelection();let i=t.s.range;i.deleteContents();let o=t.createInside.fake();i.insertNode(o);let r=n.Dom.findSibling(o,!0),s=n.Dom.findSibling(o,!1);return this.__moveContentInLeftSibling(o,r,s),i.setStartBefore(o),i.collapse(!0),this.__moveCursorInEditableSibling(t,r,o,i),this.__addBrInEmptyBlock(o,s,i),n.Dom.safeRemove(o),t.s.selectRange(i),!1}__moveContentInLeftSibling(t,i,o){i=this.__defineRightLeftBox(i),!n.Dom.isList(o)&&!n.Dom.isTag(o,"table")&&n.Dom.isBlock(o)&&n.Dom.isBlock(i)&&(n.Dom.append(i,t),n.Dom.moveContent(o,i),n.Dom.safeRemove(o)),n.Dom.isList(o)&&n.Dom.isLeaf(o.firstElementChild)&&n.Dom.isEmpty(o.firstElementChild)&&n.Dom.safeRemove(o.firstElementChild)}__defineRightLeftBox(t){if(!n.Dom.isList(t))return t;let i=t.lastElementChild;return n.Dom.isLeaf(i)||(i=this.j.createInside.element("li"),n.Dom.append(t,i)),i}__addBrInEmptyBlock(t,i,o){let r=this.j;if(t.isConnected&&n.Dom.isBlock(t.parentNode)&&!t.nextSibling&&!t.previousSibling){let i=r.createInside.element("br");n.Dom.after(t,i),o.setStartBefore(i),o.collapse(!0)}if(n.Dom.isTag(i,"table")){let t=(0,s.$$)("td,th",i).shift();n.Dom.isCell(t)&&n.Dom.isEmpty(t)&&n.Dom.append(t,r.createInside.element("br"))}}__moveCursorInEditableSibling(t,i,o,r){var s;if(!i||!n.Dom.isText(i)){let i=null!=(s=n.Dom.closest(o,n.Dom.isBlock,t.editor))?s:t.editor,a=n.Dom.prev(o,n.Dom.isText,i);a&&(r.setStartAfter(a),r.collapse(!0),n.Dom.safeRemove(o))}}}c.requires=["backspace"],r.pluginSystem.add("deleteCommand",c)},44586:function(t,i,o){"use strict";o(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},1255:function(t,i,o){"use strict";var n,r,s=o(65478),a=o(22732),l=o(580),c=o(21537),d=o(50911);o(44586);var u=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};(n=r||(r={}))[n.IDLE=0]="IDLE",n[n.WAIT_DRAGGING=1]="WAIT_DRAGGING",n[n.DRAGGING=2]="DRAGGING";class h extends d.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,c.splitArray)(this.j.o.draggableTags).filter(Boolean).map(t=>t.toLowerCase()):[],this.j.e.on("startDragElement",this.onStartDragElement),this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onStartDragElement(t,i){this.isInDestruct||this.state>r.IDLE||!t||this.startDragging(t,i)}onDragStart(t){if("dragstart"===t.type&&this.draggable)return!1;if(this.state>r.IDLE)return;let i=t.target;if(!this.dragList.length||!i)return;let o=t=>!!(t&&this.dragList.includes(t.nodeName.toLowerCase())),n=a.Dom.furthest(i,o,this.j.editor)||(o(i)?i:null);n&&(a.Dom.isTag(n.parentElement,"a")&&n.parentElement.firstChild===n&&n.parentElement.lastChild===n&&(n=n.parentElement),this.startDragging(n,t))}startDragging(t,i){this.startX=i.clientX,this.startY=i.clientY,this.isCopyMode=(0,c.ctrlKey)(i),this.draggable=t.cloneNode(!0),(0,c.dataBind)(this.draggable,"target",t),this.state=r.WAIT_DRAGGING,this.addDragListeners()}onDrag(t){var i,o;if(!this.draggable||this.state===r.IDLE)return;let n=t.clientX,s=t.clientY;if(!(this.state===r.WAIT_DRAGGING&&Math.sqrt(Math.pow(n-this.startX,2)+Math.pow(s-this.startY,2))<this.diffStep)){if(this.state===r.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=r.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){let n=(0,c.dataBind)(this.draggable,"target");(0,c.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:t.clientX,top:t.clientY,width:null!=(i=null==n?void 0:n.offsetWidth)?i:100,height:null!=(o=null==n?void 0:n.offsetHeight)?o:100}),(0,l.getContainer)(this.j,h).appendChild(this.draggable)}(0,c.css)(this.draggable,{left:t.clientX,top:t.clientY}),this.j.s.insertCursorAtPoint(t.clientX,t.clientY)}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=r.IDLE,this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<r.DRAGGING)return void this.onDragEnd();let t=(0,c.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(t=t.cloneNode(!0));let{parentElement:i}=t;this.j.s.insertNode(t,!0,!1),[t.previousSibling,t.nextSibling].forEach(t=>{a.Dom.isEmptyTextNode(t)&&a.Dom.safeRemove(t)}),i&&a.Dom.isEmpty(i)&&!a.Dom.isCell(i)&&a.Dom.safeRemove(i),a.Dom.isTag(t,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",t),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=r.IDLE}}u([s.autobind],h.prototype,"onStartDragElement",null),u([s.autobind],h.prototype,"onDragStart",null),u([(0,s.throttle)(t=>t.defaultTimeout/10)],h.prototype,"onDrag",null),u([s.autobind],h.prototype,"onDragEnd",null),u([s.autobind],h.prototype,"onDrop",null),l.pluginSystem.add("dragAndDropElement",h)},19271:function(t,i,o){"use strict";var n=o(82758),r=o(65478),s=o(2748),a=o(580),l=o(21537),c=o(50911),d=o(8172),u=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};class h extends c.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(t){var i;let o=t.target;if(this.onDragEnd(),this.isFragmentFromEditor=s.Dom.isOrContains(this.j.editor,o,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,l.ctrlKey)(t),this.isFragmentFromEditor){let t=this.j.s.sel,i=t&&t.rangeCount?t.getRangeAt(0):null;i&&(this.bufferRange=i.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=t.clientX,this.startDragPoint.y=t.clientY,i=o,s.Dom.isElement(i)&&i.classList.contains(d.FileBrowserFiles.prototype.getFullElName("item"))&&(o=o.querySelector("img")),s.Dom.isTag(o,"img")&&(this.draggable=o.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",o)),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(t){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),t.preventDefault(),t.stopPropagation())}onDragEnd(){this.draggable&&(s.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(t){if(!t.dataTransfer||!t.dataTransfer.files||!t.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",t),t.preventDefault(),t.stopPropagation(),!1;let i=this.j.s.sel,o=this.bufferRange||(i&&i.rangeCount?i.getRangeAt(0):null),n=this.__getWorkFragment(o,t);i&&i.removeAllRanges(),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),n&&this.__insertFragment.call(this,n,o),t.preventDefault(),t.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(t,i){let o=null;if(!this.draggable&&t)o=this.isCopyMode?t.cloneContents():t.extractContents();else if(this.draggable)if(this.isCopyMode){let[t,i]="1"===(0,l.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];o=this.j.createInside.element(t),(0,l.attr)(o,i,(0,l.attr)(this.draggable,"data-src")||(0,l.attr)(this.draggable,"src")||""),"a"===t&&(o.textContent=(0,l.attr)(o,i)||"")}else o=(0,l.dataBind)(this.draggable,"target");else this.getText(i)&&(o=this.j.createInside.fromHTML(this.getText(i)));return o}__insertFragment(t,i){this.j.s.insertNode(t,!1,!1),i&&t.firstChild&&t.lastChild&&(i.setStartBefore(t.firstChild),i.setEndAfter(t.lastChild),this.j.s.selectRange(i),this.j.e.fire("synchro")),s.Dom.isTag(t,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",t)}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=t=>{let i=(0,l.getDataTransfer)(t);return i?i.getData(n.TEXT_HTML)||i.getData(n.TEXT_PLAIN):null}}}u([r.autobind],h.prototype,"onDragStart",null),u([(0,r.throttle)(t=>t.defaultTimeout/10)],h.prototype,"onDrag",null),u([r.autobind],h.prototype,"onDragEnd",null),u([r.autobind],h.prototype,"onDrop",null),a.pluginSystem.add("dragAndDrop",h)},46124:function(t,i,o){"use strict";o.r(i),o.d(i,{removeExtraBr:function(){return n.removeExtraBr}});var n=o(94870)},94870:function(t,i,o){"use strict";o.d(i,{removeExtraBr:function(){return s}});var n=o(2748);let r=new Set(["table","pre","blockquote","code"]);function s(t,i){if(!t.o.dtd.removeExtraBr||n.Dom.isTag(i,"br"))return;let o=n.Dom.furthest(i,n.Dom.isBlock,t.editor);if(o&&!n.Dom.isTag(o,r)){let o=n.Dom.isTag(i,"br")?i:n.Dom.findNotEmptySibling(i,!1);if(!n.Dom.isTag(o,"br")||n.Dom.findNotEmptySibling(o,!1))return;t.s.setCursorBefore(o),n.Dom.safeRemove(o)}}},78720:function(t,i,o){"use strict";o.d(i,{checkBlockNesting:function(){return r}});var n=o(2748);function r(t,i){var o,r;if(n.Dom.isFragment(i)&&(i=i.firstChild),t.o.dtd.checkBlockNesting&&n.Dom.isBlock(i)){let i=null,s=null!=(r=null==(o=t.s.current())?void 0:o.parentElement)?r:null;for(;s&&s!==t.editor;){if(n.Dom.isBlock(s)){if(t.o.dtd.blockLimits[s.nodeName.toLowerCase()])break;i=s}s=s.parentElement}i&&(t.s.setCursorAfter(i),n.Dom.isEmpty(i)&&n.Dom.safeRemove(i))}}},43267:function(t,i,o){"use strict";o.r(i),o.d(i,{checkBlockNesting:function(){return n.checkBlockNesting}});var n=o(78720)},9045:function(t,i,o){"use strict";o(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(t,i,o){"use strict";var n=o(37133),r=o(580),s=o(50911);o(9045);var a=o(46124),l=o(43267),c=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};class d extends s.Plugin{afterInit(t){}beforeDestruct(t){}__onBeforeInsertNode(t){Object.keys(l).forEach(i=>{l[i](this.j,t)})}__onAfterInsertNode(t){Object.keys(a).forEach(i=>{a[i](this.j,t)})}}c([(0,n.watch)(":beforeInsertNode")],d.prototype,"__onBeforeInsertNode",null),c([(0,n.watch)(":afterInsertNode")],d.prototype,"__onAfterInsertNode",null),r.pluginSystem.add("dtd",d)},575:function(t,i,o){"use strict";var n=o(82758),r=o(65478),s=o(2748),a=o(580),l=o(87612),c=o(20356),d=o(35399);class u extends c.Plugin{afterInit(t){let i=t.o.enter.toLowerCase(),o=i===n.BR.toLowerCase();t.o.enterBlock||(t.o.enterBlock=o?n.PARAGRAPH:i),t.registerCommand("enter",(t,i,o={})=>this.onEnter(o))}onEnterKeyDown(t){if(t.key===n.KEY_ENTER){let i=this.j,o=i.e.fire("beforeEnter",t);return void 0!==o?o:(i.history.snapshot.transaction(()=>{i.s.isCollapsed()||i.execCommand("Delete"),i.s.focus(),this.onEnter(t),i.e.fire("afterEnter",t)}),i.synchronizeValues(),!1)}}onEnter(t){let{jodit:i}=this,o=i.createInside.fake();try{s.Dom.safeInsertNode(i.s.range,o),(0,d.moveCursorOutFromSpecialTags)(i,o,["a"]);let n=(0,d.getBlockWrapper)(o,i),r=s.Dom.isLeaf(n);if((!r||(null==t?void 0:t.shiftKey))&&(0,d.checkBR)(o,i,null==t?void 0:t.shiftKey))return!1;if(n||(0,d.hasPreviousBlock)(o,i)||(n=(0,d.wrapText)(o,i)),!n)return(0,d.insertParagraph)(o,i,r?"li":i.o.enter),!1;if(!(0,d.checkUnsplittableBox)(o,i,n))return!1;if(r&&this.__isEmptyListLeaf(n))return(0,d.processEmptyLILeaf)(o,i,n),!1;(0,d.splitFragment)(o,i,n)}finally{o.isConnected&&i.s.setCursorBefore(o),s.Dom.safeRemove(o)}}__isEmptyListLeaf(t){let i=this.j.e.fire("enterIsEmptyListLeaf",t);return(0,l.isBoolean)(i)?i:s.Dom.isEmpty(t)}beforeDestruct(t){t.e.off("keydown.enter")}}!function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);s>3&&a&&Object.defineProperty(i,o,a)}([(0,r.watch)(":keydown.enter")],u.prototype,"onEnterKeyDown",null),a.pluginSystem.add("enter",u)},41872:function(t,i,o){"use strict";o.d(i,{checkBR:function(){return a}});var n=o(82758),r=o(2748),s=o(26395);function a(t,i,o){let a=!!r.Dom.closest(t,["pre","blockquote"],i.editor),c=!a&&r.Dom.closest(t,["td","th"],i.editor);if(i.o.enter.toLowerCase()===n.BR.toLowerCase()||c||o&&!a||!o&&a){var d;let o;if(a&&(o=l(l(d=t)))&&(r.Dom.safeRemove(l(d)),r.Dom.safeRemove(o),1))return!1;let n=i.createInside.element("br");if(r.Dom.before(t,n),!r.Dom.findNotEmptySibling(n,!1)){let i=n.cloneNode();r.Dom.after(n,i),r.Dom.before(i,t)}return(0,s.scrollIntoViewIfNeeded)(n,i.editor,i.ed),!0}return!1}function l(t){if(!t)return!1;let i=r.Dom.findSibling(t,!0);return!!i&&!!r.Dom.isTag(i,"br")&&i}},61991:function(t,i,o){"use strict";o.d(i,{checkUnsplittableBox:function(){return r}});var n=o(2748);function r(t,i,o){return!!n.Dom.canSplitBlock(o)||(n.Dom.before(t,i.createInside.element("br")),!1)}},54041:function(t,i,o){"use strict";o.d(i,{getBlockWrapper:function(){return function t(i,o,s=n.IS_BLOCK){let a=i,l=o.editor;do{if(!a||a===l)break;if(s.test(a.nodeName)){if(r.Dom.isLeaf(a))return a;return t(a.parentNode,o,/^li$/i)||a}a=a.parentNode}while(a&&a!==l)return null}}});var n=o(82758),r=o(2748)},19057:function(t,i,o){"use strict";o.d(i,{hasPreviousBlock:function(){return r}});var n=o(2748);function r(t,i){return!!n.Dom.prev(t,t=>n.Dom.isBlock(t)||n.Dom.isImage(t),i.editor)}},35399:function(t,i,o){"use strict";o.d(i,{checkBR:function(){return n.checkBR},checkUnsplittableBox:function(){return r.checkUnsplittableBox},getBlockWrapper:function(){return s.getBlockWrapper},hasPreviousBlock:function(){return a.hasPreviousBlock},insertParagraph:function(){return l.insertParagraph},moveCursorOutFromSpecialTags:function(){return c.moveCursorOutFromSpecialTags},processEmptyLILeaf:function(){return d.processEmptyLILeaf},splitFragment:function(){return u.splitFragment},wrapText:function(){return h.wrapText}});var n=o(41872),r=o(61991),s=o(54041),a=o(19057),l=o(44245),c=o(91388),d=o(65181),u=o(54600),h=o(5287)},44245:function(t,i,o){"use strict";o.d(i,{insertParagraph:function(){return a}});var n=o(2748),r=o(29960),s=o(26395);function a(t,i,o,a){let l="br"===o.toLowerCase(),{createInside:c}=i,d=c.element(o),u=c.element("br");return l||d.appendChild(u),a&&a.cssText&&(0,r.attr)(d,"style",a.cssText),n.Dom.after(t,d),n.Dom.before(l?d:u,t),(0,s.scrollIntoViewIfNeeded)(d,i.editor,i.ed),d}},91388:function(t,i,o){"use strict";o.d(i,{moveCursorOutFromSpecialTags:function(){return r}});var n=o(2748);function r(t,i,o){let{s:r}=t,s=n.Dom.closest(i,o,t.editor);s&&(r.cursorOnTheRight(s,i)?n.Dom.after(s,i):r.cursorOnTheLeft(s,i)&&n.Dom.before(s,i))}},65181:function(t,i,o){"use strict";o.d(i,{processEmptyLILeaf:function(){return a}});var n=o(2748),r=o(76078),s=o(44245);function a(t,i,o){let a=n.Dom.closest(o,["ol","ul"],i.editor);if(!a)return;let l=a.parentElement,c=n.Dom.isLeaf(l),d=c?l:a,u=i.s.createRange();u.setStartAfter(o),u.setEndAfter(a);let h=u.extractContents();n.Dom.after(d,t),n.Dom.safeRemove(o),(0,r.$$)("li",a).length||n.Dom.safeRemove(a);let p=(0,s.insertParagraph)(t,i,c?"li":i.o.enter);h.querySelector("li")&&(c?p.appendChild(h):n.Dom.after(p,h))}},54600:function(t,i,o){"use strict";o.d(i,{splitFragment:function(){return a}});var n=o(2748),r=o(26395),s=o(44245);function a(t,i,o){let a=i.s,{enter:l}=i.o,c=l.toLowerCase(),d=n.Dom.isLeaf(o),u=o.tagName.toLowerCase()===c||d,h=a.cursorOnTheRight(o,t),p=a.cursorOnTheLeft(o,t);if(!u&&(h||p)){h?n.Dom.after(o,t):n.Dom.before(o,t),(0,s.insertParagraph)(t,i,c),p&&!h&&n.Dom.prepend(o,t);return}let{scrollTop:f}=i.editor;a.splitSelection(o,t),i.editor.scrollTop!==f&&(i.editor.scrollTop=f),(0,r.scrollIntoViewIfNeeded)(o,i.editor,i.ed)}},5287:function(t,i,o){"use strict";o.d(i,{wrapText:function(){return r}});var n=o(2748);function r(t,i){let o=t;n.Dom.up(o,t=>{t&&t.hasChildNodes()&&t!==i.editor&&(o=t)},i.editor);let r=n.Dom.wrapInline(o,i.o.enter,i);if(n.Dom.isEmpty(r)){let o=i.createInside.element("br");r.appendChild(o),n.Dom.before(o,t)}return r}},11317:function(t,i,o){"use strict";var n=o(2748),r=o(580),s=o(29960),a=o(6441),l=o(92762);a.Config.prototype.controls.file={popup(t,i,o){let r=(i,o="")=>{t.s.insertNode(t.createInside.fromHTML(`<a href="${i}" title="${o}">${o||i}</a>`))},a=null;return i&&(n.Dom.isTag(i,"a")||n.Dom.closest(i,"a",t.editor))&&(a=n.Dom.isTag(i,"a")?i:n.Dom.closest(i,"a",t.editor)),(0,l.FileSelectorWidget)(t,{filebrowser(t){t.files&&t.files.forEach(i=>r(t.baseurl+i)),o()},upload:!0,url(t,i){a?((0,s.attr)(a,"href",t),(0,s.attr)(a,"title",i)):r(t,i),o()}},a,o,!1)},tags:["a"],tooltip:"Insert file"},r.pluginSystem.add("file",function(t){t.registerButton({name:"file",group:"media"})})},36243:function(t,i,o){"use strict";var n=o(22732),r=o(580),s=o(6441);s.Config.prototype.autofocus=!1,s.Config.prototype.cursorAfterAutofocus="end",s.Config.prototype.saveSelectionOnBlur=!0,r.pluginSystem.add("focus",function(t){t.o.saveSelectionOnBlur&&t.e.on("blur",()=>{t.isEditorMode()&&t.s.save(!0)}).on("focus",()=>{t.isEditorMode()&&t.s.restore()});let i=()=>{t.s.focus();let i=null;switch(t.o.cursorAfterAutofocus){case"start":i=n.Dom.first(t.editor,t=>n.Dom.isText(t));break;case"end":i=n.Dom.last(t.editor,t=>n.Dom.isText(t))}i&&t.s.setCursorIn(i,"start"===t.o.cursorAfterAutofocus)};t.e.on("afterInit",()=>{t.o.autofocus&&(t.defaultTimeout?t.async.setTimeout(i,300):i())}),t.e.on("afterInit afterAddPlace",()=>{t.e.off(t.editor,"mousedown.autofocus").on(t.editor,"mousedown.autofocus",i=>{t.isEditorMode()&&i.target&&n.Dom.isBlock(i.target)&&!i.target.childNodes.length&&(t.editor===i.target?t.s.focus():t.s.setCursorIn(i.target))})})})},28252:function(t,i,o){"use strict";var n=o(22732),r=o(49055),s=o(41180),a=o(12153),l=o(6441),c=o(4104),d=o(83709);l.Config.prototype.defaultFontSizePoints="px",a.Icon.set("font",c.default).set("fontsize",d.default),l.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalize:t=>t.toString().replace(/(px|pt)$/i,"")},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(t,i)=>i+t.o.defaultFontSizePoints,childTemplate:(t,i,o)=>`${o}${t.o.defaultFontSizePoints}`,tooltip:"Font size",value(t,i){var o;let r=t.s.current();if(!r)return;let a=n.Dom.closest(r,n.Dom.isElement,t.editor);if(!a)return;let l=(null==(o=i.control.data)?void 0:o.cssRule)||"font-size",c=(0,s.css)(a,l);if("font-size"===l){let i=parseFloat(c.toString());return"pt"===t.o.defaultFontSizePoints?Math.round(.75*i).toString():Math.round(i).toString()}return c.toString()},isChildActive(t,i){var o,n;let r=i.state.value,s=null!=(n=null==(o=i.control.data)?void 0:o.normalize)?n:t=>t;return!!(r&&i.control.args&&s(i.control.args[0].toString())===s(r.toString()))},isActive(t,i){var o,n;let r=i.state.value;if(!r)return!1;let s=null!=(n=null==(o=i.control.data)?void 0:o.normalize)?n:t=>t,a=i.control.data.cacheListSet;return a||(a=new Set(Object.keys(i.control.list).map(s)),i.control.data.cacheListSet=a),a.has(s(r.toString()))}},l.Config.prototype.controls.font={...l.Config.prototype.controls.fontsize,command:"fontname",textTemplate(t,i){let[o]=i.split(",");return(0,r.trimChars)(o,"\"'")},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(t,i,o){let n=!1;try{n=-1===i.indexOf("dings")&&document.fonts.check("16px "+i,o)}catch(t){}return`<span data-style="${i}" style="${n?`font-family: ${i}!important;`:""}">${o}</span>`},data:{cssRule:"font-family",normalize:t=>t.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},value(t){let i=t.s.current();if(!i)return;let o=n.Dom.closest(i,n.Dom.isElement,t.editor);if(!o)return;let r=(0,s.css)(o,"font-family").toString();return r===(0,s.css)(t.editor,"font-family").toString()?"":r},tooltip:"Font family"}},23399:function(t,i,o){"use strict";var n=o(580),r=o(21537);o(28252),n.pluginSystem.add("font",function(t){t.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});let i=(i,o,n)=>{switch(i){case"fontsize":t.s.commitStyle({attributes:{style:{fontSize:(0,r.normalizeSize)(n,t.o.defaultFontSizePoints)}}});break;case"fontname":t.s.commitStyle({attributes:{style:{fontFamily:n}}})}return t.synchronizeValues(),!1};t.registerCommand("fontsize",i).registerCommand("fontname",i)})},4104:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg> '},83709:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg> '},24630:function(t,i,o){"use strict";var n=o(2748),r=o(72430),s=o(12153),a=o(6441),l=o(89816);s.Icon.set("paragraph",l.default),a.Config.prototype.controls.paragraph={command:"formatBlock",value(t,i){var o,r;let s=i.control,a=t.s.current(),l=n.Dom.closest(a,n.Dom.isBlock,t.editor);return null!=(o=null==l?void 0:l.nodeName.toLowerCase())?o:null==(r=s.data)?void 0:r.currentValue},update(t,i){let o=i.control;if(!t.s.current())return!1;let n=i.state.value,s=o.list;return(0,r.isPlainObject)(s)&&s[n.toString()]&&t.o.textIcons&&(i.state.text=s[n.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(t,i){var o,n;return i.state.value===(null==(n=null==(o=i.control)?void 0:o.args)?void 0:n[0])},isActive:(t,i)=>i.state.value!==t.o.enter&&(0,r.isPlainObject)(i.control.list)&&!!i.control.list[i.state.value],childTemplate:(t,i,o)=>`<${i} style="margin:0;padding:0"><span>${t.i18n(o)}</span></${i}>`,tooltip:"Insert format block"}},96111:function(t,i,o){"use strict";var n=o(580);o(24630),n.pluginSystem.add("formatBlock",function(t){t.registerButton({name:"paragraph",group:"font"}),t.registerCommand("formatblock",(i,o,n)=>(t.s.commitStyle({element:n}),t.synchronizeValues(),!1))})},89816:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg> '},99823:function(t,i,o){"use strict";var n=o(82758),r=o(12153),s=o(6441),a=o(6950),l=o(28911);s.Config.prototype.fullsize=!1,s.Config.prototype.globalFullSize=!0,r.Icon.set("fullsize",a.default).set("shrink",l.default),s.Config.prototype.controls.fullsize={exec(t){t.toggleFullSize()},update(t,i){let o=t.isFullSize?"shrink":"fullsize";i.state.activated=t.isFullSize,t.o.textIcons?i.state.text=o:i.state.icon.name=o},tooltip:"Open in fullsize",mode:n.MODE_SOURCE+n.MODE_WYSIWYG}},2169:function(t,i,o){"use strict";var n=o(580),r=o(19306),s=o(41180);o(99823);let a=new Set;n.pluginSystem.add("fullsize",function(t){t.registerButton({name:"fullsize"});let i=!1,o=0,n=0,l=0,c=0,d=!1,u=()=>{let{container:r,events:a}=t;a&&(i?(d||(o=(0,s.css)(r,"height",!0),n=(0,s.css)(r,"width",!0),d=!0),(0,s.css)(r,{height:t.ow.innerHeight,width:t.ow.innerWidth})):d&&((0,s.css)(r,{height:o||"auto",width:n||"auto"}),d=!1))},h=o=>{var n;let{container:d,events:h}=t;if(d){if(void 0===o&&(o=!d.classList.contains("jodit_fullsize")),t.setMod("fullsize",o),t.o.fullsize=o,i=o,d.classList.toggle("jodit_fullsize",o),t.toolbar&&((0,r.isJoditObject)(t)&&(null==(n=t.toolbarContainer)||n.appendChild(t.toolbar.container)),(0,s.css)(t.toolbar.container,"width","auto")),o?a.add(d):a.delete(d),t.o.globalFullSize&&(1===a.size&&o||0===a.size&&!o)){o&&(l=t.ow.scrollX,c=t.ow.scrollY);let i=d.parentNode;for(;i&&i.nodeType!==Node.DOCUMENT_NODE&&i.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)i.classList.toggle("jodit_fullsize-box_true",o),i=i.parentNode;u(),o||t.ow.scrollTo(l,c)}h.fire("afterResize")}};t.o.globalFullSize&&t.e.on(t.ow,"resize",u),t.e.on("afterInit afterOpen",()=>{var i;t.toggleFullSize(null==(i=null==t?void 0:t.options)?void 0:i.fullsize)}).on("toggleFullSize",h).on("beforeDestruct",()=>{i&&h(!1)}).on("beforeDestruct",()=>{t.events&&t.e.off(t.ow,"resize",u)})})},6950:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg> '},28911:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg> '},78524:function(t,i,o){"use strict";o(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(t,i,o){"use strict";var n=o(82758),r=o(580),s=o(21537),a=o(50911);o(78524);class l extends a.Plugin{afterInit(t){(0,s.keys)(t.o.commandToHotkeys,!1).forEach(i=>{let o=t.o.commandToHotkeys[i];o&&((0,s.isArray)(o)||(0,s.isString)(o))&&t.registerHotkeyToCommand(o,i)});let i=!1;t.e.off(".hotkeys").on([t.ow,t.ew],"keydown.hotkeys",t=>{if(t.key===n.KEY_ESC)return this.j.e.fire("escape",t)}).on("keydown.hotkeys",o=>{let n=this.onKeyPress(o),r={shouldStop:!0};if(!1===this.j.e.fire(n+".hotkey",o.type,r))if(r.shouldStop)return i=!0,t.e.stopPropagation("keydown"),!1;else o.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(i)return i=!1,t.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(t){t.events&&t.e.off(".hotkeys")}constructor(){super(...arguments),this.onKeyPress=t=>{let i=this.specialKeys[t.which],o=(t.key||String.fromCharCode(t.which)).toLowerCase(),n=[i||o];return["alt","ctrl","shift","meta"].forEach(o=>{t[o+"Key"]&&i!==o&&n.push(o)}),(0,s.normalizeKeyAliases)(n.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:"'"}}}r.pluginSystem.add("hotkeys",l)},16233:function(t,i,o){"use strict";var n=o(22732),r=o(580),s=o(12153),a=o(6441),l=o(72337);s.Icon.set("hr",l.default),a.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},r.pluginSystem.add("hr",function(t){t.registerButton({name:"hr",group:"insert"}),t.registerCommand("insertHorizontalRule",()=>{let i=t.createInside.element("hr");t.s.insertNode(i,!1,!1);let o=n.Dom.closest(i.parentElement,n.Dom.isBlock,t.editor);o&&n.Dom.isEmpty(o)&&o!==t.editor&&(n.Dom.after(o,i),n.Dom.safeRemove(o));let r=n.Dom.next(i,n.Dom.isBlock,t.editor,!1);return r||(r=t.createInside.element(t.o.enter),n.Dom.after(i,r)),t.s.setCursorIn(r),!1})})},72337:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg> '},50963:function(t,i,o){"use strict";var n=o(6441);n.Config.prototype.iframeBaseUrl="",n.Config.prototype.iframeTitle="Jodit Editor",n.Config.prototype.iframeDoctype="<!DOCTYPE html>",n.Config.prototype.iframeDefaultSrc="about:blank",n.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}',n.Config.prototype.iframeCSSLinks=[],n.Config.prototype.iframeSandbox=null},77469:function(t,i,o){"use strict";var n=o(82758),r=o(580),s=o(21537);o(50963),r.pluginSystem.add("iframe",function(t){let i=t.options;t.e.on("afterSetMode",()=>{t.isEditorMode()&&t.s.focus()}).on("generateDocumentStructure.iframe",(t,o)=>{let n=t||o.iframe.contentWindow.document;if(n.open(),n.write(i.iframeDoctype+`<html dir="${i.direction}" class="jodit" lang="${(0,s.defaultLanguage)(i.language)}">`+"<head>"+`<title>${i.iframeTitle}</title>`+(i.iframeBaseUrl?`<base href="${i.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),n.close(),i.iframeCSSLinks&&i.iframeCSSLinks.forEach(t=>{let i=n.createElement("link");(0,s.attr)(i,"rel","stylesheet"),(0,s.attr)(i,"href",t),n.head&&n.head.appendChild(i)}),i.iframeStyle){let t=n.createElement("style");t.innerHTML=i.iframeStyle,n.head&&n.head.appendChild(t)}}).on("createEditor",()=>{if(!i.iframe)return;let o=t.c.element("iframe");o.style.display="block",o.src="about:blank",o.className="jodit-wysiwyg_iframe",(0,s.attr)(o,{allowtransparency:"true",tabindex:i.tabIndex.toString(),frameborder:"0"}),null!=i.iframeSandbox&&(0,s.attr)(o,"sandbox",i.iframeSandbox),t.workplace.appendChild(o),t.iframe=o;let r=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,s.callPromise)(r,()=>{if(!t.iframe)return!1;let o=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;let r=i.editHTMLDocumentMode,a=()=>{(0,s.attr)(o.body,"contenteditable",t.getMode()!==n.MODE_SOURCE&&!t.getReadOnly()||null)},l=t=>{let i=/<body.*<\/body>/im,o="{%%BODY%%}",n=i.exec(t);return n&&(t=t.replace(i,o).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/<span([^&]*?)>(.*?)<\/span>/gim,"").replace(o,n[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")),t};if(r){let i=t.element.tagName;if("TEXTAREA"!==i&&"INPUT"!==i)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");t.e.on("beforeGetNativeEditorValue",()=>l(t.o.iframeDoctype+o.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:i})=>!t.isLocked&&(/<(html|body)/i.test(i)?l(o.documentElement.outerHTML)!==l(i)&&(o.open(),o.write(t.o.iframeDoctype+l(i)),o.close(),t.editor=o.body,t.e.fire("safeHTML",t.editor),a(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):o.body.innerHTML=i,!0),{top:!0})}if(t.editor=o.body,t.e.on("afterSetMode afterInit afterAddPlace",a),"auto"===i.height){o.documentElement&&(o.documentElement.style.overflowY="hidden");let n=t.async.throttle((...o)=>{t.async.requestAnimationFrame(()=>{if(t.editor&&t.iframe&&"auto"===i.height){let i=t.ew.getComputedStyle(t.editor),o=parseInt(i.marginTop||"0",10)+parseInt(i.marginBottom||"0",10);(0,s.css)(t.iframe,"height",t.editor.offsetHeight+o)}})},t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",n).on([t.iframe,t.ew,o.documentElement],"load",n).on(o,"readystatechange DOMContentLoaded",n),"function"==typeof ResizeObserver){let i=new ResizeObserver(n);i.observe(o.body),t.e.on("beforeDestruct",()=>{i.disconnect()})}}return o.documentElement&&t.e.on(o.documentElement,"mousedown touchend",()=>{t.s.isFocused()||(t.s.focus(),t.editor===o.body&&t.s.setCursorIn(o.body))}).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",i=>{var o;null==(o=t.events)||o.fire(t.ow,i)}),!1})})})},85745:function(t,i,o){"use strict";o(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},80763:function(t,i,o){"use strict";var n=o(82758),r=o(65478),s=o(580),a=o(21537),l=o(50911),c=o(74569);o(85745);var d=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};let u="__jodit_imageprocessor_binded",h=u+"blob-id";class p extends l.Plugin{afterInit(t){}beforeDestruct(t){let i=(0,r.cached)(t,"buffer"),o=null==i?void 0:i.get(h);if(i&&o){for(let t of Object.keys(o))URL.revokeObjectURL(t);i.delete(h)}}onAfterGetValueFromEditor(t,i){if(i!==n.SOURCE_CONSUMER)return this.onBeforeSetElementValue(t)}onBeforeSetElementValue(t){let{jodit:i}=this;if(!i.o.imageProcessor.replaceDataURIToBlobIdInView)return;let o=i.buffer.get(h);if(o)for(let i of Object.keys(o))for(;t.value.includes(i);)t.value=t.value.replace(i,o[i])}async afterChange(t){let{jodit:i}=this;i.editor&&(0,a.$$)("img",i.editor).forEach(t=>{(0,a.dataBind)(t,u)||((0,a.dataBind)(t,u,!0),t.complete||i.e.on(t,"load",function o(){var n;i.isInDestruct||null==(n=i.e)||n.fire("resize"),i.e.off(t,"load",o)}),t.src&&/^data:/.test(t.src)&&function(t,i){let o;if(!t.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let n=i.src;try{o=(0,c.dataURItoBlob)(n)}catch(t){return}i.src=URL.createObjectURL(o),t.e.fire("internalUpdate");let{buffer:r}=t,s=r.get(h)||{};s[i.src]=n,t.buffer.set(h,s)}(i,t),i.e.on(t,"mousedown touchstart",()=>{i.s.select(t)}))})}}d([(0,r.watch)(":afterGetValueFromEditor")],p.prototype,"onAfterGetValueFromEditor",null),d([(0,r.watch)(":beforeSetElementValue")],p.prototype,"onBeforeSetElementValue",null),d([(0,r.watch)([":change",":afterInit",":changePlace"]),(0,r.debounce)()],p.prototype,"afterChange",null),s.pluginSystem.add("imageProcessor",p)},97536:function(t,i,o){"use strict";o(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(t,i,o){"use strict";var n=o(65478),r=o(2748),s=o(580),a=o(21537),l=o(20356),c=o(62843);o(97536);var d=o(59436),u=o(53636),h=o(10263),p=o(94575),f=o(34755),m=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};class g extends l.Plugin{get form(){return new d.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,u.openImageEditorDialog)(this.j,this.state),openImagePopup:t=>(0,h.openImagePopup)(this.j,this.dialog,this.state,t)})}get dialog(){let{j:t}=this,i=t.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),o=this.__buttons;return o.check.onAction(()=>{(0,f.applyValuesToImage)(t,this.state,this.state.sourceImage),t.synchronizeValues(),i.close()}),o.remove.onAction(()=>{t.s.removeNode(this.state.sourceImage),i.close()}),o.cancel.onAction(()=>{i.close()}),i.setHeader(t.i18n("Image properties")),i.setContent(this.form),i.setFooter([[o.cancel,o.remove],o.check]),t.e.on(i,"afterClose",()=>{this.state.image.parentNode&&t.o.image.selectImageAfterClose&&t.s.select(this.state.sourceImage)}),i.setSize(t.o.image.dialogWidth),(0,a.markOwner)(t,i.container),i}get __buttons(){let{j:t}=this;return{check:(0,c.Button)(t,"ok","Apply","primary"),remove:(0,c.Button)(t,"bin","Delete"),cancel:(0,c.Button)(t,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((t,i)=>(0,p.readValuesFromImage)(this.j,this.state).then(t,i)).catch(t=>{(0,a.isAbortError)(t)||this.dialog.message.error(t.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(t=>t.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(t=>t.state.disabled=!1)}afterInit(t){let i=this;t.e.on("afterConstructor changePlace",()=>{t.e.off(t.editor,".imageproperties").on(t.editor,"dblclick.imageproperties",o=>{let n=o.target;if(r.Dom.isTag(n,"img"))if(t.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",n))return;i.state.sourceImage=n,i.state.image=n.cloneNode(!0),t.o.readonly||(o.stopImmediatePropagation(),o.preventDefault(),i.open())}else o.stopImmediatePropagation(),t.s.select(n)})}).on("openImageProperties.imageproperties",t=>{i.state.sourceImage=t,this.state.image=t.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:t,values:i}=this.state;if(t.src)try{this.__lock();try{await t.decode()}catch(t){}if(this.state.sizeIsLocked&&(0,a.isNumeric)(i.imageWidth)){let t=parseFloat(i.imageWidth.toString());i.imageHeight=Math.round(t/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",t)}catch(t){this.j.alert(t.message)}finally{this.__unlock()}}beforeDestruct(t){var i,o,r;Object.values(null!=(i=(0,n.cached)(this,"__buttons"))?i:{}).forEach(t=>t.destruct()),null==(o=(0,n.cached)(this,"dialog"))||o.destruct(),null==(r=(0,n.cached)(this,"form"))||r.destruct(),t.e.off(t.editor,".imageproperties").off(".imageproperties")}constructor(){super(...arguments),this.state={image:new Image,sourceImage:new Image,get ratio(){const{naturalWidth:t,naturalHeight:i}=this.image;return t/i||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"}}}m([n.cache],g.prototype,"form",null),m([n.cache],g.prototype,"dialog",null),m([n.cache],g.prototype,"__buttons",null),m([(0,n.watch)("state.image")],g.prototype,"onStateValuesImageSrcChange",null),s.pluginSystem.add("imageProperties",g)},51642:function(t,i,o){"use strict";o.d(i,{readAlign:function(){return r}});var n=o(41180);function r(t,i){t.style.cssFloat&&-1!==["left","right"].indexOf(t.style.cssFloat.toLowerCase())?i.align=(0,n.css)(t,"float"):"block"===(0,n.css)(t,"display")&&"auto"===t.style.marginLeft&&"auto"===t.style.marginRight?i.align="center":i.align=""}},94575:function(t,i,o){"use strict";o.d(i,{readValuesFromImage:function(){return c}});var n=o(29960),r=o(51642),s=o(75595),a=o(47749),l=o(32566);async function c(t,i){let{sourceImage:o,values:c}=i;return(0,r.readAlign)(o,c),c.borderRadius=parseInt(o.style.borderRadius||"0",10)||0,c.id=(0,n.attr)(o,"id")||"",c.imageTitle=(0,n.attr)(o,"title")||"",c.imageAlt=(0,n.attr)(o,"alt")||"",c.style=(0,n.attr)(o,"style")||"",c.classes=((0,n.attr)(o,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,a.readMargins)(o,c,i),(0,s.readLink)(i,t,c),c.imageSrc=(0,n.attr)(o,"src")||"",(0,l.readSizes)(o,c,i)}},75595:function(t,i,o){"use strict";o.d(i,{readLink:function(){return s}});var n=o(2748),r=o(29960);function s(t,i,o){let s=n.Dom.closest(t.sourceImage,"a",i.editor);s?(o.imageLink=(0,r.attr)(s,"href")||"",o.imageLinkOpenInNewTab="_blank"===(0,r.attr)(s,"target")):(o.imageLink="",o.imageLinkOpenInNewTab=!1)}},47749:function(t,i,o){"use strict";o.d(i,{readMargins:function(){return r}});var n=o(12475);function r(t,i,o){let r=!0,s=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(o=>{let a=t.style.getPropertyValue((0,n.kebabCase)(o));if(!a){s=!0,i[o]=0;return}/^[0-9]+(px)?$/.test(a)&&(a=parseInt(a,10)),i[o]=a,(s&&i[o]||r&&"marginTop"!==o&&i[o]!==i.marginTop)&&(r=!1)}),o.marginIsLocked=r}},32566:function(t,i,o){"use strict";o.d(i,{readSizes:function(){return l}});var n=o(29807),r=o(29960),s=o(41180),a=o(14415);async function l(t,i,o){try{await t.decode()}catch(t){}let l=(0,s.css)(t,"width",!0)||(0,r.attr)(t,"width")||!1,c=(0,s.css)(t,"height",!0)||(0,r.attr)(t,"height")||!1;i.imageWidth=!1!==l?(0,a.normalSizeFromString)(l):t.offsetWidth||t.naturalWidth,(0,n.isNumeric)(i.imageWidth)?i.imageHeight=!1!==c?(0,a.normalSizeFromString)(c):t.offsetHeight||t.naturalHeight:i.imageHeight=c||"";let{imageWidth:d,imageHeight:u}=i,h=parseFloat(d.toString());if(!(0,n.isNumeric)(d)||!(0,n.isNumeric)(u)){o.sizeIsLocked=!1;return}if(!1===c){i.imageHeight=Math.round(h/o.ratio),o.sizeIsLocked=!0;return}o.sizeIsLocked=1>Math.abs(h-parseFloat(u.toString())*o.ratio)}},59436:function(t,i,o){"use strict";o.d(i,{UIImagePropertiesForm:function(){return p}});var n=o(65478),r=o(87325),s=o(21537),a=o(62405),l=o(12153),c=o(92762),d=o(35105),u=o(29827),h=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};let p=class t extends a.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(t){let i=super.getElm(t);if(i)return i;for(let i of this.elements){let o=i.getElm(t);if(o)return o}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">
|
|
@@ -469,7 +469,7 @@ ${s}`.trim();o?await this.__executeQuickCommandSilent(c,s):await this.__executeQ
|
|
|
469
469
|
<div class="&__empty-message">~There are no files~</div>
|
|
470
470
|
<div class='&__loader'></div>
|
|
471
471
|
<div class='&__drag-area'>~Drop image~</div>
|
|
472
|
-
</div>`}reconcile(t){let i=this.elements.findIndex((i,o)=>!t[o]||i.item.uniqueHashKey!==d.FileBrowserItem.create(t[o]).uniqueHashKey);if(i>-1){for(let t=i;t<this.elements.length;t+=1)this.elements[t].destruct();this.elements.length=i}return i}afterSetMod(t,i){super.afterSetMod(t,i),"loading"===t&&(i?this.buildSkeletons():this.clearSkeletons())}buildSkeletons(t=24){if(!this.skeletons.length)for(let i=0;i<t;i+=1){let t=this.j.create.fromHTML('<div class="jodit-ui-browser-item jodit-ui-browser-item_skeleton_true"><div class="jodit-ui-browser-item__image"></div><div class="jodit-ui-browser-item__info"></div></div>');["view","size"].forEach(i=>{let o=this.mods[i];o&&t.classList.add(`jodit-ui-browser-item_${i}_${o}`)}),this.container.appendChild(t),this.skeletons.push(t)}}clearSkeletons(){this.skeletons.forEach(t=>t.remove()),this.skeletons.length=0}build(t){let i=this.reconcile(t);t.slice(i>-1?i:this.elements.length).forEach(t=>{let i=new u.UIBrowserItem(this.jodit,t);Object.keys(this.mods).forEach(t=>{i.setMod(t,this.mods[t])}),this.append(i)}),this.setMod("empty",!this.elements.length)}onScrollLoadChunk(){!this.stateManager.isFavoriteItems&&this.container.scrollHeight-(this.container.scrollTop+this.container.offsetHeight)<this.j.o.pixelOffsetLoadNewChunk&&this.j.loadingManager.loadItemsChunk()}onAreaContextMenu(t){let{target:i}=t;if(!(a.Dom.isNode(i)&&this.elements.some(t=>t.container.contains(i))))return this.j.e.fire("contextmenuArea.filebrowser",t),!1}onDragOver(t){t.preventDefault(),this.setMod("dragover",!0)}onDragLeave(t){t.preventDefault(),this.setMod("dragover",!1)}addItemsSelector(){h.UISelectItems.install(this)}static intersectRect(t,i){return!(i.left>t.left+t.width||i.left+i.width<t.left||i.top>t.top+t.height||i.top+i.height<t.top)}onSelectItems(t){let i=[];this.elements.forEach(o=>{let n=(0,l.position)(o.container);p.intersectRect(n,t)&&i.push(o.item)}),this.stateManager.state.activeElements=i}constructor(t,i){super(t),(0,n._)(this,"stateManager",void 0),(0,n._)(this,"syncMod",void 0),(0,n._)(this,"skeletons",void 0),this.stateManager=i,this.syncMod=!0,this.skeletons=[],this.addItemsSelector()}}(0,r.__decorate)([(0,s.watch)(":afterResize"),(0,s.watch)(":resize"),(0,s.watch)("container:scroll"),(0,s.throttle)()],p.prototype,"onScrollLoadChunk",null),(0,r.__decorate)([(0,s.watch)("container:contextmenu")],p.prototype,"onAreaContextMenu",null),(0,r.__decorate)([(0,s.watch)("container:dragover")],p.prototype,"onDragOver",null),(0,r.__decorate)([(0,s.watch)(["container:dragleave","container:drop"])],p.prototype,"onDragLeave",null),p=(0,r.__decorate)([s.component],p)},99413:function(t,i,o){"use strict";var n=o(81122),r=o.n(n),s=o(49377),a=o.n(s),l=o(46425),c=o.n(l),d=o(86820),u=o.n(d),h=o(36576),p=o.n(h),f=o(27622),m=o.n(f),g=o(89687),b=o.n(g);o(12153).Icon.set("map",c()).set("edit-hand",a()).set("edit-polygon",p()).set("edit-marker",u()).set("edit-text",b()).set("edit-polyline",m()).set("edit-circle",r())},55029:function(t,i,o){"use strict";var n=o(17298),r=o(6441);r.Config.prototype.googleMaps={saveStateInStorage:!0,useStaticImage:!1,apiUrl:"https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places&language=${j.o.language}&callback=JoditGoogleReadyHandler",API_KEY:"AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY",dialog:{size:[700,700]},inlineEditorOptions:{buttons:["bold","italic","link","brush","fontsize","image"]},map:{type:"roadmap",layer:"default",center:"auto",defaultCenter:[-34.397,150.644],defaultZoom:10,zoom:10,size:[500,400],defaultStates:{polyline:{strokeColor:"#5ba4f3",strokeWeight:3},polygon:{strokeColor:"#417706",fillColor:"#5b9302",strokeWeight:1,fillOpacity:.5},marker:{},text:{},circle:{strokeColor:"#da767c",fillColor:"#f34ca8",strokeWeight:1,fillOpacity:.5}}}},r.Config.prototype.controls.googleMaps={tooltip:"Google Maps",icon:"map",command:n.COMMAND_OPEN_DIALOG};let s=t=>({icon:"edit-"+t,isActive:i=>i.buffer.get("createMode.gm")===t,exec(i){i.e.fire("changeCreateMode.gm",t)}});r.Config.prototype.controls.gm={hand:s("hand"),marker:s("marker"),polyline:s("polyline"),polygon:s("polygon"),circle:s("circle"),text:s("text")}},482:function(t,i,o){"use strict";var n=o(82749),r=o(31635);o(55029),o(99413);var s=o(17298),a=o(61818),l=o(67912),c=o(92931),d=o(65805),u=o(4774),h=o(82758),p=o(65478),f=o(21537),m=o(50911),g=o(62843),b=o(78584),y=o(92762),w=o(2692);window.JoditGoogleReadyHandler=l.GoogleReadyHandler;class _ extends m.Plugin{className(){return"google-maps"}afterInit(t){t.registerCommand(s.COMMAND_OPEN_DIALOG,()=>{this.openMapEditor(null,{})})}beforeDestruct(t){}onOpenOnDblClick(t){if(t.dataset.googleMaps){let i;try{i=JSON.parse(this.j.ow.atob(t.dataset.googleMaps))}catch{}return this.openMapEditor(t,i),!1}}async openMapEditor(t,i){let o=this.j,n=this.getDialog(),r=this.j.o.googleMaps.saveStateInStorage?n.storage.get(s.STORAGE_KEY):void 0,{apiUrl:a}=this.jodit.o.googleMaps;(0,l.isApiAvailable)()||(0,f.appendScriptAsync)(this.jodit,a.replace(/\${([^}]+)}/g,(t,i)=>this.get(i)??""));let p={type:this.j.o.googleMaps.map.type,layer:this.j.o.googleMaps.map.layer,size:this.j.o.googleMaps.map.size,...r,...i},m=new u.UIMap(n,p,this.j.options);m.container.classList.add(n.getFullElName("map"));let b=new d.UIComboBox(o,{icon:"search",placeholder:"Search",clearButton:!0}).setMod("in-header",!0);b.container.classList.add(n.getFullElName("search")),this.j.async.promise(t=>{if((0,l.isApiAvailable)())return void t(0);let i=()=>{(0,l.isApiAvailable)()?t(0):this.j.async.setTimeout(i,100)};i(),(0,l.googleReady)(t)}).then(()=>{m.setStatus("ready"),b.setStatus("ready")}),this.j.e.on(b,"select",(t,i)=>{i?m.map.fitBounds(i):t&&(m.state.center=[t.lat(),t.lng()])}),r||("auto"===this.j.o.googleMaps.map.center?navigator.geolocation.getCurrentPosition(t=>{m.state.center=[t.coords.latitude,t.coords.longitude]},()=>{m.state.center=this.j.o.googleMaps.map.defaultCenter}):m.state.center=this.j.o.googleMaps.map.center),n.setSize(...o.o.googleMaps.dialog.size).setHeader([b," ",(0,g.Button)(o,"eye").onAction(()=>{let t=this.jodit.createInside.element("img");t.src=(0,c.staticUrl)(m),t.dataset.googleMaps=btoa(m.json());let i={value:t.outerHTML};this.onAfterGetValueFromEditor(i),o.execCommand("preview",null,i.value)})]).setContent((0,y.TabsWidget)(o,[{name:"Map",icon:"map",content:m},{name:"Settings",content:new u.UIMapsPropsForm(o,m.state)},{name:"Controls",icon:"menu",content:new u.UIMapsControlsForm(o,m.state)}])).setFooter([(0,g.Button)(o,"cancel","Cancel","default").onAction(()=>n.close()),(0,g.Button)(o,"ok",t?"Save":"Insert","primary").onAction(()=>{m.destruct(),b.destruct(),n.e.off("beforeClose",w),n.close(),this.insertMap(t,m)})]).open();let w=()=>{if(m.state.elements.length&&JSON.stringify(m.state.elements)!==JSON.stringify(p.elements)&&!h.IS_TEST&&!confirm(this.i18n("Are you sure?")))return!1;m.destruct(),b.destruct(),n.e.off("beforeClose",w)};n.e.on("beforeClose",w)}getDialog(){if(!this.dialog){let t=new b.Dialog({language:this.j.o.language});t.container.classList.add(this.getFullElName("")),this.dialog=t}return this.dialog}insertMap(t,i){let o=t??this.jodit.createInside.element("img");o.src=(0,c.staticUrl)(i),o.dataset.googleMaps=btoa(i.json()),t||this.jodit.s.insertImage(o)}onBeforeSetNativeEditorValue(t){t.value=t.value.replace(/<script[^>]+jodit-google-maps-init[^>]+>.*?<\/script>/gs,"")}onAfterGetValueFromEditor(t,i){this.j.o.googleMaps.useStaticImage||i===h.SOURCE_CONSUMER||(t.value=t.value.replace(/(<img[^>]+)(["']?)data-google-maps\2\s*=(["'])([^"']+)\3([^>]*>)/gs,(t,i,o,n,r,s)=>{let l={};try{l=JSON.parse(this.j.ow.atob(r))}catch{}return`${i} id="${l.uid}" ${o}data-google-maps${o}=${n}${r}${n}${s}${(0,a.generateJSScript)(this.j,l)}`}))}constructor(...t){super(...t),(0,n._)(this,"buttons",[{group:"media",name:"googleMaps"}]),(0,n._)(this,"dialog",null)}}(0,n._)(_,"requires",["license","color-picker"]),(0,r.__decorate)([(0,p.watch)("?:openOnDblClick")],_.prototype,"onOpenOnDblClick",null),(0,r.__decorate)([(0,p.watch)(":beforeSetNativeEditorValue")],_.prototype,"onBeforeSetNativeEditorValue",null),(0,r.__decorate)([(0,p.watch)(":afterGetValueFromEditor")],_.prototype,"onAfterGetValueFromEditor",null),w.JoditPro.plugins.add("google-maps",_)},17298:function(t,i,o){"use strict";o.d(i,{COMMAND_OPEN_DIALOG:function(){return r},STORAGE_KEY:function(){return n}});let n="googleMapsState",r="googleMapsDialog"},61818:function(t,i,o){"use strict";o.d(i,{generateJSScript:function(){return r}});var n=o(36409);function r(t,i){return`<script class="jodit-google-maps-init" type="text/javascript">
|
|
472
|
+
</div>`}reconcile(t){let i=this.elements.findIndex((i,o)=>!t[o]||i.item.uniqueHashKey!==d.FileBrowserItem.create(t[o]).uniqueHashKey);if(i>-1){for(let t=i;t<this.elements.length;t+=1)this.elements[t].destruct();this.elements.length=i}return i}afterSetMod(t,i){super.afterSetMod(t,i),"loading"===t&&(i?this.buildSkeletons():this.clearSkeletons())}buildSkeletons(t=24){if(!this.skeletons.length)for(let i=0;i<t;i+=1){let t=this.j.create.fromHTML('<div class="jodit-ui-browser-item jodit-ui-browser-item_skeleton_true"><div class="jodit-ui-browser-item__image"></div><div class="jodit-ui-browser-item__info"></div></div>');["view","size"].forEach(i=>{let o=this.mods[i];o&&t.classList.add(`jodit-ui-browser-item_${i}_${o}`)}),this.container.appendChild(t),this.skeletons.push(t)}}clearSkeletons(){this.skeletons.forEach(t=>t.remove()),this.skeletons.length=0}build(t){let i=this.reconcile(t);t.slice(i>-1?i:this.elements.length).forEach(t=>{let i=new u.UIBrowserItem(this.jodit,t);Object.keys(this.mods).forEach(t=>{i.setMod(t,this.mods[t])}),this.append(i)}),this.setMod("empty",!this.elements.length)}onScrollLoadChunk(){!this.stateManager.isFavoriteItems&&this.container.scrollHeight-(this.container.scrollTop+this.container.offsetHeight)<this.j.o.pixelOffsetLoadNewChunk&&this.j.loadingManager.loadItemsChunk()}onAreaContextMenu(t){let{target:i}=t;if(!(a.Dom.isNode(i)&&this.elements.some(t=>t.container.contains(i))))return this.j.e.fire("contextmenuArea.filebrowser",t),!1}onDragOver(t){t.preventDefault(),this.setMod("dragover",!0)}onDragLeave(t){t.preventDefault(),this.setMod("dragover",!1)}addItemsSelector(){h.UISelectItems.install(this)}static intersectRect(t,i){return!(i.left>t.left+t.width||i.left+i.width<t.left||i.top>t.top+t.height||i.top+i.height<t.top)}onSelectItems(t){let i=[];this.elements.forEach(o=>{let n=(0,l.position)(o.container);p.intersectRect(n,t)&&i.push(o.item)}),this.stateManager.state.activeElements=i}constructor(t,i){super(t),(0,n._)(this,"stateManager",void 0),(0,n._)(this,"syncMod",void 0),(0,n._)(this,"skeletons",void 0),this.stateManager=i,this.syncMod=!0,this.skeletons=[],this.addItemsSelector()}}(0,r.__decorate)([(0,s.watch)(":afterResize"),(0,s.watch)(":resize"),(0,s.watch)("container:scroll"),(0,s.throttle)()],p.prototype,"onScrollLoadChunk",null),(0,r.__decorate)([(0,s.watch)("container:contextmenu")],p.prototype,"onAreaContextMenu",null),(0,r.__decorate)([(0,s.watch)("container:dragover")],p.prototype,"onDragOver",null),(0,r.__decorate)([(0,s.watch)(["container:dragleave","container:drop"])],p.prototype,"onDragLeave",null),p=(0,r.__decorate)([s.component],p)},99413:function(t,i,o){"use strict";var n=o(81122),r=o.n(n),s=o(49377),a=o.n(s),l=o(46425),c=o.n(l),d=o(86820),u=o.n(d),h=o(36576),p=o.n(h),f=o(27622),m=o.n(f),g=o(89687),b=o.n(g);o(12153).Icon.set("map",c()).set("edit-hand",a()).set("edit-polygon",p()).set("edit-marker",u()).set("edit-text",b()).set("edit-polyline",m()).set("edit-circle",r())},55029:function(t,i,o){"use strict";var n=o(17298),r=o(6441);r.Config.prototype.googleMaps={saveStateInStorage:!0,useStaticImage:!1,apiUrl:"https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places&language=${j.o.language}&callback=JoditGoogleReadyHandler",API_KEY:"AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY",dialog:{size:[700,700]},inlineEditorOptions:{buttons:["bold","italic","link","brush","fontsize","image"]},map:{type:"roadmap",layer:"default",center:"auto",defaultCenter:[-34.397,150.644],defaultZoom:10,zoom:10,size:[500,400],defaultStates:{polyline:{strokeColor:"#5ba4f3",strokeWeight:3},polygon:{strokeColor:"#417706",fillColor:"#5b9302",strokeWeight:1,fillOpacity:.5},marker:{},text:{},circle:{strokeColor:"#da767c",fillColor:"#f34ca8",strokeWeight:1,fillOpacity:.5}}}},r.Config.prototype.controls.googleMaps={tooltip:"Google Maps",icon:"map",command:n.COMMAND_OPEN_DIALOG};let s=t=>({icon:"edit-"+t,isActive:i=>i.buffer.get("createMode.gm")===t,isDisabled:i=>"hand"!==t&&!!i.buffer.get("failed.gm"),exec(i){i.e.fire("changeCreateMode.gm",t)}});r.Config.prototype.controls.gm={hand:s("hand"),marker:s("marker"),polyline:s("polyline"),polygon:s("polygon"),circle:s("circle"),text:s("text")}},482:function(t,i,o){"use strict";var n=o(82749),r=o(31635);o(55029),o(99413);var s=o(17298),a=o(61818),l=o(67912),c=o(92931),d=o(65805),u=o(4774),h=o(82758),p=o(65478),f=o(21537),m=o(50911),g=o(62843),b=o(78584),y=o(92762),w=o(2692);window.JoditGoogleReadyHandler=l.GoogleReadyHandler,window.gm_authFailure=l.GoogleAuthFailureHandler;class _ extends m.Plugin{className(){return"google-maps"}afterInit(t){t.registerCommand(s.COMMAND_OPEN_DIALOG,()=>{this.openMapEditor(null,{})})}beforeDestruct(t){}onOpenOnDblClick(t){if(t.dataset.googleMaps){let i;try{i=JSON.parse(this.j.ow.atob(t.dataset.googleMaps))}catch{}return this.openMapEditor(t,i),!1}}async openMapEditor(t,i){let o=this.j,n=this.getDialog(),r=this.j.o.googleMaps.saveStateInStorage?n.storage.get(s.STORAGE_KEY):void 0,{apiUrl:a}=this.jodit.o.googleMaps;(0,l.isApiAvailable)()||(0,f.appendScriptAsync)(this.jodit,a.replace(/\${([^}]+)}/g,(t,i)=>this.get(i)??""));let p={type:this.j.o.googleMaps.map.type,layer:this.j.o.googleMaps.map.layer,size:this.j.o.googleMaps.map.size,...r,...i},m=new u.UIMap(n,p,this.j.options);m.container.classList.add(n.getFullElName("map"));let b=new d.UIComboBox(o,{icon:"search",placeholder:"Search",clearButton:!0}).setMod("in-header",!0);b.container.classList.add(n.getFullElName("search")),this.j.async.promise(t=>{if((0,l.isApiAvailable)())return void t(0);let i=()=>{(0,l.isApiAvailable)()?t(0):this.j.async.setTimeout(i,100)};i(),(0,l.googleReady)(t)}).then(()=>{m.setStatus("ready"),b.setStatus("ready")}),this.j.e.on(b,"select",(t,i)=>{i?m.map.fitBounds(i):t&&(m.state.center=[t.lat(),t.lng()])}),r||("auto"===this.j.o.googleMaps.map.center?navigator.geolocation.getCurrentPosition(t=>{m.state.center=[t.coords.latitude,t.coords.longitude]},()=>{m.state.center=this.j.o.googleMaps.map.defaultCenter}):m.state.center=this.j.o.googleMaps.map.center),n.setSize(...o.o.googleMaps.dialog.size).setHeader([b," ",(0,g.Button)(o,"eye").onAction(()=>{let t=this.jodit.createInside.element("img");t.src=(0,c.staticUrl)(m),t.dataset.googleMaps=btoa(m.json());let i={value:t.outerHTML};this.onAfterGetValueFromEditor(i),o.execCommand("preview",null,i.value)})]).setContent((0,y.TabsWidget)(o,[{name:"Map",icon:"map",content:m},{name:"Settings",content:new u.UIMapsPropsForm(o,m.state)},{name:"Controls",icon:"menu",content:new u.UIMapsControlsForm(o,m.state)}])).setFooter([(0,g.Button)(o,"cancel","Cancel","default").onAction(()=>n.close()),(0,g.Button)(o,"ok",t?"Save":"Insert","primary").onAction(()=>{m.destruct(),b.destruct(),n.e.off("beforeClose",w),n.close(),this.insertMap(t,m)})]).open();let w=()=>{if(m.state.elements.length&&JSON.stringify(m.state.elements)!==JSON.stringify(p.elements)&&!h.IS_TEST&&!confirm(this.i18n("Are you sure?")))return!1;m.destruct(),b.destruct(),n.e.off("beforeClose",w)};n.e.on("beforeClose",w)}getDialog(){if(!this.dialog){let t=new b.Dialog({language:this.j.o.language});t.container.classList.add(this.getFullElName("")),this.dialog=t}return this.dialog}insertMap(t,i){let o=t??this.jodit.createInside.element("img");o.src=(0,c.staticUrl)(i),o.dataset.googleMaps=btoa(i.json()),t||this.jodit.s.insertImage(o)}onBeforeSetNativeEditorValue(t){t.value=t.value.replace(/<script[^>]+jodit-google-maps-init[^>]+>.*?<\/script>/gs,"")}onAfterGetValueFromEditor(t,i){this.j.o.googleMaps.useStaticImage||i===h.SOURCE_CONSUMER||(t.value=t.value.replace(/(<img[^>]+)(["']?)data-google-maps\2\s*=(["'])([^"']+)\3([^>]*>)/gs,(t,i,o,n,r,s)=>{let l={};try{l=JSON.parse(this.j.ow.atob(r))}catch{}return`${i} id="${l.uid}" ${o}data-google-maps${o}=${n}${r}${n}${s}${(0,a.generateJSScript)(this.j,l)}`}))}constructor(...t){super(...t),(0,n._)(this,"buttons",[{group:"media",name:"googleMaps"}]),(0,n._)(this,"dialog",null)}}(0,n._)(_,"requires",["license","color-picker"]),(0,r.__decorate)([(0,p.watch)("?:openOnDblClick")],_.prototype,"onOpenOnDblClick",null),(0,r.__decorate)([(0,p.watch)(":beforeSetNativeEditorValue")],_.prototype,"onBeforeSetNativeEditorValue",null),(0,r.__decorate)([(0,p.watch)(":afterGetValueFromEditor")],_.prototype,"onAfterGetValueFromEditor",null),w.JoditPro.plugins.add("google-maps",_)},17298:function(t,i,o){"use strict";o.d(i,{COMMAND_OPEN_DIALOG:function(){return r},STORAGE_KEY:function(){return n}});let n="googleMapsState",r="googleMapsDialog"},61818:function(t,i,o){"use strict";o.d(i,{generateJSScript:function(){return r}});var n=o(36409);function r(t,i){return`<script class="jodit-google-maps-init" type="text/javascript">
|
|
473
473
|
var imgMap = document.getElementById('${i.uid}'),
|
|
474
474
|
box = document.createElement('div'),
|
|
475
475
|
mapBox = document.createElement('div'),
|
|
@@ -590,15 +590,15 @@ ${s}`.trim();o?await this.__executeQuickCommandSilent(c,s):await this.__executeQ
|
|
|
590
590
|
scr.src = 'https://maps.googleapis.com/maps/api/js?key=${t.o.googleMaps.API_KEY}&language=${t.o.language}&callback=CreateGMap${i.uid}';
|
|
591
591
|
document.appendChild(scr);
|
|
592
592
|
}
|
|
593
|
-
/*]]>*/</script>`.replace(/[\n\t]+/g,"")}},60811:function(t,i,o){"use strict";o.d(i,{generateStaticElements:function(){return s}});var n=o(67912),r=o(91003);function s(t){return t.state.elements.map(t=>{switch(t.type){case"polygon":return`&path=fillcolor:${(0,n.specialColor)(t.fillColor??"#fff")}%7Cweight:${t.strokeWeight??1}%7Ccolor:${(0,n.specialColor)(t.strokeColor??"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath((0,n.arrayToPath)(t.coordinates))}`;case"polyline":return`&path=weight:${t.strokeWeight??1}%7Ccolor:${(0,n.specialColor)(t.strokeColor??"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath((0,n.arrayToPath)(t.coordinates))}`;case"marker":return`&markers=color:blue%7Clabel:${encodeURIComponent((0,r.stripTags)(t.text??"").charAt(0).toUpperCase())}%7C${t.coordinates}`}return""}).join("")}},67912:function(t,i,o){"use strict";o.d(i,{GoogleReadyHandler:function(){return a},arrayToPath:function(){return function t(i,o=!1){let n=[];if(Array.isArray(i))if(!(Array.isArray(i[0])||Array.isArray(i[1])))return o?{lat:i[0],lng:i[1]}:new google.maps.LatLng(i[0],i[1]);else i.forEach(i=>{n.push(t(i,o))});return n}},googleReady:function(){return s},isApiAvailable:function(){return
|
|
593
|
+
/*]]>*/</script>`.replace(/[\n\t]+/g,"")}},60811:function(t,i,o){"use strict";o.d(i,{generateStaticElements:function(){return s}});var n=o(67912),r=o(91003);function s(t){return t.state.elements.map(t=>{switch(t.type){case"polygon":return`&path=fillcolor:${(0,n.specialColor)(t.fillColor??"#fff")}%7Cweight:${t.strokeWeight??1}%7Ccolor:${(0,n.specialColor)(t.strokeColor??"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath((0,n.arrayToPath)(t.coordinates))}`;case"polyline":return`&path=weight:${t.strokeWeight??1}%7Ccolor:${(0,n.specialColor)(t.strokeColor??"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath((0,n.arrayToPath)(t.coordinates))}`;case"marker":return`&markers=color:blue%7Clabel:${encodeURIComponent((0,r.stripTags)(t.text??"").charAt(0).toUpperCase())}%7C${t.coordinates}`}return""}).join("")}},67912:function(t,i,o){"use strict";o.d(i,{GoogleAuthFailureHandler:function(){return d},GoogleReadyHandler:function(){return a},arrayToPath:function(){return function t(i,o=!1){let n=[];if(Array.isArray(i))if(!(Array.isArray(i[0])||Array.isArray(i[1])))return o?{lat:i[0],lng:i[1]}:new google.maps.LatLng(i[0],i[1]);else i.forEach(i=>{n.push(t(i,o))});return n}},googleAuthFailure:function(){return u},googleReady:function(){return s},isApiAvailable:function(){return m},isApiFailed:function(){return h},pathToArray:function(){return p},specialColor:function(){return f}});let n=!1,r=[];function s(t){n?t():r.push(t)}function a(){n=!0,r&&r.forEach(t=>t())}let l=!1,c=[];function d(){l=!0,c.forEach(t=>t())}function u(t){l?t():c.push(t)}function h(){return l}function p(t){return t.getArray().map(t=>[t.lat(),t.lng()])}function f(t){return t.toUpperCase().replace("#","0x").padEnd(10,"F")}function m(){return"u">typeof google&&void 0!==google.maps&&void 0!==google.maps.Map}},92931:function(t,i,o){"use strict";o.d(i,{staticUrl:function(){return r}});var n=o(60811);function r(t){let{state:i}=t;return"https://maps.googleapis.com/maps/api/staticmap?center="+i.center.join(",")+"&zoom="+i.zoom+"&size="+i.size.join("x")+"&maptype="+i.type+"&key="+t.options.googleMaps.API_KEY+(0,n.generateStaticElements)(t)}},65805:function(t,i,o){"use strict";o.d(i,{UIComboBox:function(){return a}});var n=o(31635),r=o(65478),s=o(67510);class a extends s.UIInput{className(){return"UIComboBox"}onReady(){let t=new google.maps.places.Autocomplete(this.nativeInput,{fields:["address_components","geometry","name"],types:["geocode"]});t.addListener("place_changed",()=>{let i=t.getPlace();this.j.e.fire(this,"select",i.geometry?.location,i.geometry?.viewport)})}async onInput(){}}(0,n.__decorate)([(0,r.hook)("ready")],a.prototype,"onReady",null),(0,n.__decorate)([(0,r.watch)("nativeInput:input"),(0,r.debounce)()],a.prototype,"onInput",null)},14002:function(t,i,o){"use strict";o.d(i,{UIBaseEditor:function(){return s}});var n=o(82749),r=o(67510);class s extends r.UIGroup{className(){return"UIBaseEditor"}render(){return`<div>
|
|
594
594
|
<div class='&__header'></div>
|
|
595
595
|
<div class='&__form'></div>
|
|
596
596
|
<div class='&__buttons'></div>
|
|
597
|
-
</div>`}onReady(){let t=(0,r.Button)(this.j,"bin").onAction(()=>this.j.e.fire(this,"bin"));this.append(t,"buttons")}constructor(t,i,o){super(t),(0,n._)(this,"state",void 0),(0,n._)(this,"options",void 0),this.state=i,this.options=o}}},90835:function(t,i,o){"use strict";o.d(i,{UIMarkerEditor:function(){return n.UIMarkerEditor},UIPolygonEditor:function(){return r.UIPolygonEditor},UIPolylineEditor:function(){return s.UIPolylineEditor}});var n=o(42370),r=o(11696),s=o(69398)},42370:function(t,i,o){"use strict";o.d(i,{UIMarkerEditor:function(){return l}});var n=o(31635),r=o(65478),s=o(14002),a=o(11093);class l extends s.UIBaseEditor{className(){return"UIMarkerEditor"}onReady(){super.onReady();let t=new a.UIWysiwyg(this.j,this.options.googleMaps.inlineEditorOptions,this.state.text??"",t=>this.j.e.fire(this,"change","text",t));this.append(t,"form")}}(0,n.__decorate)([(0,r.hook)("ready")],l.prototype,"onReady",null),l=(0,n.__decorate)([r.component],l)},11696:function(t,i,o){"use strict";o.d(i,{UIPolygonEditor:function(){return c}});var n=o(31635),r=o(65478),s=o(62357),a=o(45128),l=o(69398);class c extends l.UIPolylineEditor{className(){return"UIPolygonEditor"}onReady(){this.append([new a.ColorInput(this.j,{label:"Fill color",value:this.state.fillColor??"#000",onChange:t=>this.j.e.fire(this,"change","fillColor",t)}).setMod("trigger",!1),new s.UIRange(this.j,{label:"Opacity",min:0,max:1,value:this.state.fillOpacity??1,onChange:t=>{this.j.e.fire(this,"change","fillOpacity",parseFloat(t)||0)}}).setMod("log",!1)],"form")}}(0,n.__decorate)([(0,r.hook)("ready")],c.prototype,"onReady",null),c=(0,n.__decorate)([r.component],c)},69398:function(t,i,o){"use strict";o.d(i,{UIPolylineEditor:function(){return c}});var n=o(31635),r=o(65478),s=o(80256),a=o(45128),l=o(14002);class c extends l.UIBaseEditor{className(){return"UIPolylineEditor"}onReady(){super.onReady(),this.append([new s.UIInput(this.j,{label:"Stroke weight",value:this.state.strokeWeight??1,type:"number",onChange:t=>this.j.e.fire(this,"change","strokeWeight",t)}),new a.ColorInput(this.j,{label:"Stroke color",value:this.state.strokeColor??"#000",onChange:t=>this.j.e.fire(this,"change","strokeColor",t)}).setMod("trigger",!1)],"form")}}(0,n.__decorate)([(0,r.hook)("ready")],c.prototype,"onReady",null),c=(0,n.__decorate)([r.component],c)},4774:function(t,i,o){"use strict";o.d(i,{UIMap:function(){return n.UIMap},UIMapsControlsForm:function(){return r.UIMapsControlsForm},UIMapsPropsForm:function(){return s.UIMapsPropsForm}}),o(90835);var n=o(4169),r=o(8073),s=o(83039);o(11093)},4169:function(t,i,o){"use strict";o.d(i,{UIMap:function(){return
|
|
597
|
+
</div>`}onReady(){let t=(0,r.Button)(this.j,"bin").onAction(()=>this.j.e.fire(this,"bin"));this.append(t,"buttons")}constructor(t,i,o){super(t),(0,n._)(this,"state",void 0),(0,n._)(this,"options",void 0),this.state=i,this.options=o}}},90835:function(t,i,o){"use strict";o.d(i,{UIMarkerEditor:function(){return n.UIMarkerEditor},UIPolygonEditor:function(){return r.UIPolygonEditor},UIPolylineEditor:function(){return s.UIPolylineEditor}});var n=o(42370),r=o(11696),s=o(69398)},42370:function(t,i,o){"use strict";o.d(i,{UIMarkerEditor:function(){return l}});var n=o(31635),r=o(65478),s=o(14002),a=o(11093);class l extends s.UIBaseEditor{className(){return"UIMarkerEditor"}onReady(){super.onReady();let t=new a.UIWysiwyg(this.j,this.options.googleMaps.inlineEditorOptions,this.state.text??"",t=>this.j.e.fire(this,"change","text",t));this.append(t,"form")}}(0,n.__decorate)([(0,r.hook)("ready")],l.prototype,"onReady",null),l=(0,n.__decorate)([r.component],l)},11696:function(t,i,o){"use strict";o.d(i,{UIPolygonEditor:function(){return c}});var n=o(31635),r=o(65478),s=o(62357),a=o(45128),l=o(69398);class c extends l.UIPolylineEditor{className(){return"UIPolygonEditor"}onReady(){this.append([new a.ColorInput(this.j,{label:"Fill color",value:this.state.fillColor??"#000",onChange:t=>this.j.e.fire(this,"change","fillColor",t)}).setMod("trigger",!1),new s.UIRange(this.j,{label:"Opacity",min:0,max:1,value:this.state.fillOpacity??1,onChange:t=>{this.j.e.fire(this,"change","fillOpacity",parseFloat(t)||0)}}).setMod("log",!1)],"form")}}(0,n.__decorate)([(0,r.hook)("ready")],c.prototype,"onReady",null),c=(0,n.__decorate)([r.component],c)},69398:function(t,i,o){"use strict";o.d(i,{UIPolylineEditor:function(){return c}});var n=o(31635),r=o(65478),s=o(80256),a=o(45128),l=o(14002);class c extends l.UIBaseEditor{className(){return"UIPolylineEditor"}onReady(){super.onReady(),this.append([new s.UIInput(this.j,{label:"Stroke weight",value:this.state.strokeWeight??1,type:"number",onChange:t=>this.j.e.fire(this,"change","strokeWeight",t)}),new a.ColorInput(this.j,{label:"Stroke color",value:this.state.strokeColor??"#000",onChange:t=>this.j.e.fire(this,"change","strokeColor",t)}).setMod("trigger",!1)],"form")}}(0,n.__decorate)([(0,r.hook)("ready")],c.prototype,"onReady",null),c=(0,n.__decorate)([r.component],c)},4774:function(t,i,o){"use strict";o.d(i,{UIMap:function(){return n.UIMap},UIMapsControlsForm:function(){return r.UIMapsControlsForm},UIMapsPropsForm:function(){return s.UIMapsPropsForm}}),o(90835);var n=o(4169),r=o(8073),s=o(83039);o(11093)},4169:function(t,i,o){"use strict";o.d(i,{UIMap:function(){return _}});var n=o(82749),r=o(31635);o(55029);var s=o(22125),a=o(76864),l=o(1475),c=o(81577),d=o(97357),u=o(13525),h=o(37133),p=o(580),f=o(38837),m=o(41180),g=o(67510),b=o(11676),y=o(17298),w=o(67912);class _ extends g.UIGroup{className(){return"UIMap"}json(){return JSON.stringify({...this.state,mode:"hand"})}async onReady(){await this.apiLoaded;let t=this.getElm("map-root");if((0,f.assert)(null!=t,"map-root element does not exists"),(0,w.isApiFailed)())return void this.markAsFailed();try{this.map=new google.maps.Map(t,{center:{lat:this.state.center[0],lng:this.state.center[1]},zoom:this.state.zoom,mapTypeId:this.state.type})}catch(t){this.markAsFailed();return}this.map.addListener("zoom_changed",()=>{this.state.zoom=this.map.getZoom()??10}),this.map.addListener("center_changed",()=>{this.state.center=[this.map?.getCenter()?.lat()??55,this.map?.getCenter()?.lng()??34]}),this.map.addListener("maptypeid_changed",()=>{let t=this.map.getMapTypeId();t&&(this.state.type=t)}),(0,w.googleAuthFailure)(()=>{this.isInDestruct||this.markAsFailed()}),this.initDrawingController(),this.onChangeElementsList(),this.onChangeSize(),this.onChangeControls(),this.onChangeLayer(),this.onChangeMapType(),this.onChangeMode(),this.mapInitialized=!0,this.j.async.requestIdleCallback(()=>{this.j.e.fire(this,"GoogleMapsIsReady")})}markAsFailed(){this.failed=!0,this.state.mode="hand",this.j.buffer.set("failed.gm",!0);let t=this.getElm("map-root");t&&!t.firstChild&&t.appendChild(this.j.c.div(this.getFullElName("error"),this.j.i18n("Google Maps could not be loaded. Check the API key and the list of allowed HTTP referrers."))),this.toolbar.update(),this.j.e.fire(this,"GoogleMapsIsFailed")}initDrawingController(){this.drawing=new a.DrawingController(this.map,this.options.googleMaps.map.defaultStates,t=>{s.addNewInState.call(this,t),t.setMap(null)})}changeCreateMode(t){this.failed||(this.state.mode=this.state.mode===t?"hand":t)}onChangeMode(){this.j.buffer.set("createMode.gm",this.state.mode),this.drawing?.setMode(this.state.mode),this.j.e.fire("updateToolbar")}onChangeElementsList(){let{state:{elements:t},mapElements:i}=this;t.length<i.length&&i.slice(t.length).forEach(t=>{t.gme.setMap(null)}),i.length=t.length,t.forEach((t,i)=>l.initOrUpdateElementFromState.call(this,t,i))}onChangeCenter(){let t=this.map.getCenter();(t?.lat()!==this.state.center[0]||t?.lng()!==this.state.center[1])&&this.map.setCenter({lat:this.state.center[0],lng:this.state.center[1]})}onChangeZoom(){this.map?.setZoom(this.state.zoom)}onChangeControls(){let t;for(t in this.state.controls)this.map?.set(t,this.state.controls[t])}onChangeBound(){this.options.googleMaps.saveStateInStorage&&this.j.storage.set(y.STORAGE_KEY,{center:this.state.center,size:this.state.size,zoom:this.state.zoom,type:this.state.type,layer:this.state.layer,controls:this.state.controls})}onChangeSize(){let t=this.getElm("map-size");(0,f.assert)(null!=t,"map-size element does not exists"),(0,m.css)(t,{width:this.state.size[0],height:this.state.size[1]})}onChangeMapType(){this.map.setMapTypeId(this.state.type)}onChangeLayer(){switch(this.layers.forEach(t=>t.setMap(null)),this.layers.length=0,this.state.layer){case"traffic":this.layers.push(new google.maps.TrafficLayer);break;case"transit":this.layers.push(new google.maps.TransitLayer);break;case"bicycling":this.layers.push(new google.maps.BicyclingLayer)}this.layers.forEach(t=>t.setMap(this.map))}destruct(){try{this.drawing?.destruct()}catch{}return this.drawing=void 0,this.j.buffer.set("failed.gm",!1),super.destruct()}render(){return`<div>
|
|
598
598
|
<div class='&__map-root'></div>
|
|
599
599
|
<div class='&__map-size'></div>
|
|
600
600
|
<div class='&__map-palette'></div>
|
|
601
|
-
</div>`}appendChildToContainer(){}constructor(t,i,o){super(t),(0,n._)(this,"options",void 0),(0,n._)(this,"drawing",void 0),(0,n._)(this,"toolbar",void 0),(0,n._)(this,"state",void 0),(0,n._)(this,"mapElements",void 0),(0,n._)(this,"apiLoaded",void 0),(0,n._)(this,"mapInitialized",void 0),(0,n._)(this,"map",void 0),(0,n._)(this,"layers",void 0),this.options=o,this.toolbar=new b.ToolbarCollection(this.jodit),this.state={uid:"jd"+(0,p.uniqueUid)()+new Date().toString().replace(/[^0-9]/g,""),layer:this.options.googleMaps.map.layer,center:this.options.googleMaps.map.defaultCenter,zoom:this.options.googleMaps.map.defaultZoom,size:this.options.googleMaps.map.size,type:this.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},this.mapElements=[],this.apiLoaded=null,this.mapInitialized=!1,this.layers=[],Object.assign(this.state,i),this.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]);const r=this.getElm("map-palette");(0,f.assert)(null!=r,"palette element does not exists"),r.appendChild(this.toolbar.container)}}(0,r.__decorate)([(0,d.hook)("ready")],w.prototype,"onReady",null),(0,r.__decorate)([(0,h.watch)("?:changeCreateMode.gm")],w.prototype,"changeCreateMode",null),(0,r.__decorate)([(0,h.watch)("state.mode")],w.prototype,"onChangeMode",null),(0,r.__decorate)([(0,h.watch)("state.elements")],w.prototype,"onChangeElementsList",null),(0,r.__decorate)([(0,h.watch)("state.center"),(0,u.wait)(t=>t.mapInitialized),(0,c.debounce)()],w.prototype,"onChangeCenter",null),(0,r.__decorate)([(0,h.watch)("state.zoom"),(0,c.debounce)()],w.prototype,"onChangeZoom",null),(0,r.__decorate)([(0,h.watch)("state.controls")],w.prototype,"onChangeControls",null),(0,r.__decorate)([(0,h.watch)(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),(0,u.wait)(t=>t.mapInitialized),(0,c.debounce)()],w.prototype,"onChangeBound",null),(0,r.__decorate)([(0,h.watch)("state.size"),(0,c.debounce)()],w.prototype,"onChangeSize",null),(0,r.__decorate)([(0,h.watch)("state.type")],w.prototype,"onChangeMapType",null),(0,r.__decorate)([(0,h.watch)("state.layer")],w.prototype,"onChangeLayer",null)},22125:function(t,i,o){"use strict";o.d(i,{addNewInState:function(){return r}});var n=o(67912);function r(t){switch(this.state.mode){case"polyline":case"polygon":{let{mode:i}=this.state;this.state.elements=[...this.state.elements,{type:i,coordinates:(0,n.pathToArray)(t.getPath()),...this.options.googleMaps.map.defaultStates[i]}];break}case"circle":this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[t.getCenter()?.lat()??0,t.getCenter()?.lng()??0],radius:t.getRadius(),...this.options.googleMaps.map.defaultStates.circle}];break;case"marker":this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[t.getPosition()?.lat()??0,t.getPosition()?.lng()??0],...this.options.googleMaps.map.defaultStates.marker}]}}},76864:function(t,i,o){"use strict";o.d(i,{DrawingController:function(){return s}});var n=o(82749);let r=["marker","polyline","polygon","circle"];class s{setMode(t){let i=r.includes(t)?t:null;i!==this.mode&&(this.cancel(),this.unbind(),this.mode=i,i?(this.bind(),this.map.setOptions({draggableCursor:"crosshair",disableDoubleClickZoom:!0})):this.map.setOptions({draggableCursor:null,disableDoubleClickZoom:!1}))}destruct(){this.cancel(),this.unbind(),this.mode=null}bind(){this.listeners=[this.map.addListener("click",t=>this.onClick(t)),this.map.addListener("mousemove",t=>this.onMove(t)),this.map.addListener("dblclick",()=>this.onDblClick())]}unbind(){this.listeners.forEach(t=>t.remove()),this.listeners=[]}onClick(t){let i=t.latLng;if(i)switch(this.mode){case"marker":this.onComplete(new google.maps.Marker({position:i}));break;case"circle":this.previewCircle?this.finishCircle():this.previewCircle=new google.maps.Circle({...this.defaultStates.circle,center:i,radius:0,clickable:!1,map:this.map});break;case"polyline":case"polygon":this.vertices.push(i),this.updatePolyPreview(i)}}onMove(t){let i=t.latLng;if(i){if(this.previewCircle){let t=this.previewCircle.getCenter();t&&this.previewCircle.setRadius(google.maps.geometry.spherical.computeDistanceBetween(t,i));return}this.vertices.length&&this.updatePolyPreview(i)}}onDblClick(){if("polyline"!==this.mode&&"polygon"!==this.mode)return;let t=this.vertices.filter((t,i,o)=>0===i||!t.equals(o[i-1])),i="polygon"===this.mode?3:2;if(t.length>=i&&this.preview){let i=this.preview;i.setPath(t),this.onComplete(i)}this.cancel()}finishCircle(){let t=this.previewCircle;t&&(this.previewCircle=null,this.onComplete(t),t.setMap(null))}updatePolyPreview(t){let i=[...this.vertices,t];if(!this.preview){let t={...this.defaultStates["polygon"===this.mode?"polygon":"polyline"],clickable:!1,map:this.map};this.preview="polygon"===this.mode?new google.maps.Polygon(t):new google.maps.Polyline(t)}this.preview.setPath(i)}cancel(){this.preview?.setMap(null),this.preview=null,this.previewCircle?.setMap(null),this.previewCircle=null,this.vertices=[]}constructor(t,i,o){(0,n._)(this,"map",void 0),(0,n._)(this,"defaultStates",void 0),(0,n._)(this,"onComplete",void 0),(0,n._)(this,"mode",void 0),(0,n._)(this,"listeners",void 0),(0,n._)(this,"preview",void 0),(0,n._)(this,"previewCircle",void 0),(0,n._)(this,"vertices",void 0),this.map=t,this.defaultStates=i,this.onComplete=o,this.mode=null,this.listeners=[],this.preview=null,this.previewCircle=null,this.vertices=[]}}},1475:function(t,i,o){"use strict";o.d(i,{initOrUpdateElementFromState:function(){return d}});var n=o(53454),r=o(11079),s=o(72690),a=o(580),l=o(12153),c=o(67912);function d(t,i){let o,d=this.mapElements[i];if(d){if(d.state.type===t.type)return s.updateStateAndGme.call(this,t,i);d.gme.setMap(null)}switch(t.type){case"text":o=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,title:t.text,map:this.map});break;case"marker":o=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,label:t.showCaption?t.title:"",title:t.title,icon:t.icon?l.Icon.get(t.icon):void 0,map:this.map});break;case"polyline":case"polygon":{let i=(0,c.arrayToPath)(t.coordinates);o=new google.maps["polygon"===t.type?"Polygon":"Polyline"]({path:i,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:"polygon"===t.type?t.fillOpacity:1})}break;case"circle":o=new google.maps.Circle({center:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),radius:t.radius,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:t.fillOpacity??1})}let u={type:t.type,uid:(0,a.uniqueUid)(),state:t,gme:o};"dragend radius_changed center_changed".split(" ").forEach(t=>o.addListener(t,()=>n.onChangeGeometries.call(this,u,i))),("polygon"===u.type||"polyline"===u.type)&&"insert_at set_at remove_at".split(" ").forEach(t=>u.gme.getPath().addListener(t,()=>n.onChangeGeometries.call(this,u,i))),o.addListener("click",()=>r.openPropsDialog.call(this,u,i)),this.mapElements[i]=u}},53454:function(t,i,o){"use strict";o.d(i,{onChangeGeometries:function(){return s}});var n=o(72690),r=o(67912);function s(t,i){switch(t.type){case"polyline":case"polygon":{let o=(0,r.pathToArray)(t.gme.getPath()),s={...t.state,coordinates:o};n.updateStateAndGme.call(this,s,i,!0);break}case"marker":{let o=t.gme.getPosition(),r={...t.state,coordinates:[o?.lat()??0,o?.lng()??0]};n.updateStateAndGme.call(this,r,i,!0);break}case"circle":{let o=t.gme.getCenter(),r={...t.state,radius:t.gme.getRadius(),coordinates:[o?.lat()??0,o?.lng()??0]};n.updateStateAndGme.call(this,r,i,!0)}}}},11079:function(t,i,o){"use strict";o.d(i,{openPropsDialog:function(){return l}});var n=o(47660),r=o(72690),s=o(90835);function a(){let t=new google.maps.InfoWindow({content:"<div>test</div>"});return t.addListener("domready",()=>{this.setMod("info-opened",!0)}),t.addListener("closeclick",()=>{this.setMod("info-opened",!1)}),t}function l(t,i){let o;switch(this.state.mode="hand",t.type){case"polyline":o=new s.UIPolylineEditor(this.jodit,t.state,this.options);break;case"marker":o=new s.UIMarkerEditor(this.jodit,t.state,this.options);break;case"circle":case"polygon":o=new s.UIPolygonEditor(this.jodit,t.state,this.options)}if(!o)return;this.append(o),this.j.e.on(o,"bin",()=>{n.removeElement.call(this,t)}).on(o,"change",(o,n)=>{r.updateStateAndGme.call(this,{...t.state,[o]:n},i)});let l=a.call(this);if("polygon"===t.type||"polyline"===t.type){let i=t.gme.getPath().getAt(0);l.setPosition(i)}"circle"===t.type&&l.setPosition(t.gme.getCenter()),l.setContent(o.container),l.open(this.map,t.gme),l.addListener("closeclick",()=>{o&&(this.remove(o),o.destruct())})}},47660:function(t,i,o){"use strict";function n(t){let i=this.mapElements.indexOf(t);-1!==i&&(this.mapElements[i].gme.setMap(null),this.mapElements.splice(i,1),this.state.elements.splice(i,1),this.state.elements=[...this.state.elements])}o.d(i,{removeElement:function(){return n}})},72690:function(t,i,o){"use strict";o.d(i,{updateStateAndGme:function(){return r}});var n=o(67912);function r(t,i,o=!1){let s=this.mapElements[i];if(s.state===t||s.state.type!==t.type)return;let a=s.state;if(!o){let i;for(i in t){let o=t[i],r=a[i];if(null!=o&&(null==r||o.toString()!==r.toString()))switch(i){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(s.type){case"polyline":case"circle":case"polygon":s.gme.setOptions({[i]:o})}break;case"coordinates":switch(s.type){case"polygon":case"polyline":s.gme.setPath((0,n.arrayToPath)(o))}}}}s.state=t,this.state.elements[i]=t}},8073:function(t,i,o){"use strict";o.d(i,{UIMapsControlsForm:function(){return l}});var n=o(82749),r=o(31635),s=o(87325),a=o(67510);class l extends a.UIForm{className(){return"UIMapsControlsForm"}onChangeSize(t,i){this.state.controls={...this.state.controls,[t]:"true"===i}}constructor(t,i){super(t),(0,n._)(this,"state",void 0),this.state=i;const o={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},r=Object.keys(o);this.append(r.map(i=>new a.UICheckbox(t,{label:o[i],name:i,checked:this.state.controls[i],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,i)})))}}l=(0,r.__decorate)([s.component],l)},83039:function(t,i,o){"use strict";o.d(i,{UIMapsPropsForm:function(){return c}});var n=o(82749),r=o(31635),s=o(65478),a=o(76078),l=o(67510);class c extends l.UIForm{className(){return"UIMapsPropsForm"}onChangeSize(){let{width:t,height:i}=(0,a.refs)(this.container);this.state.size=[parseInt(t?.value,10)||0,parseInt(i?.value,10)||0]}onExternalChangeSize(){let{width:t,height:i}=(0,a.refs)(this.container),[o,n]=this.state.size;o.toString()!==t.value&&(t.value=o.toString()),n.toString()!==i.value&&(i.value=n.toString())}onChangeCenter(){let{lat:t,lng:i}=(0,a.refs)(this.container);this.state.center=[parseFloat(t?.value)||0,parseFloat(i?.value)||0]}onExternalChangeCenter(){let{lat:t,lng:i}=(0,a.refs)(this.container),[o,n]=this.state.center;o.toString()!==t.value&&(t.value=o.toString()),n.toString()!==i.value&&(i.value=n.toString())}onExternalChangeType(){let{mapType:t}=(0,a.refs)(this.container);this.state.type!==t.value&&(t.value=this.state.type)}onExternalChangeLayer(){let{layer:t}=(0,a.refs)(this.container);this.state.layer!==t.value&&(t.value=this.state.layer)}constructor(t,i){super(t),(0,n._)(this,"state",void 0),this.state=i;const[o,r]=i.size,[s,a]=i.center;this.append([new l.UIInput(t,{label:"Width",name:"width",value:o,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Height",name:"height",value:r,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Latitude",name:"lat",value:s,onChange:this.onChangeCenter}),new l.UIInput(t,{label:"Longitude",name:"lng",value:a,onChange:this.onChangeCenter}),new l.UISelect(t,{label:"Map type",value:i.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange(t){i.type=t}}),new l.UISelect(t,{label:"Layer",value:i.layer??"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange(t){i.layer=t}})])}}(0,r.__decorate)([s.autobind],c.prototype,"onChangeSize",null),(0,r.__decorate)([(0,s.watch)("state.size")],c.prototype,"onExternalChangeSize",null),(0,r.__decorate)([s.autobind],c.prototype,"onChangeCenter",null),(0,r.__decorate)([(0,s.watch)(["state.center"])],c.prototype,"onExternalChangeCenter",null),(0,r.__decorate)([(0,s.watch)(["state.type"])],c.prototype,"onExternalChangeType",null),(0,r.__decorate)([(0,s.watch)(["state.layer"])],c.prototype,"onExternalChangeLayer",null),c=(0,r.__decorate)([s.component],c)},11093:function(t,i,o){"use strict";o.d(i,{UIWysiwyg:function(){return c}});var n=o(31635),r=o(87325),s=o(38837),a=o(48538),l=o(2692);class c extends a.UIElement{className(){return"UIWysiwyg"}render(){return`<div>
|
|
601
|
+
</div>`}appendChildToContainer(){}constructor(t,i,o){super(t),(0,n._)(this,"options",void 0),(0,n._)(this,"drawing",void 0),(0,n._)(this,"toolbar",void 0),(0,n._)(this,"state",void 0),(0,n._)(this,"mapElements",void 0),(0,n._)(this,"apiLoaded",void 0),(0,n._)(this,"mapInitialized",void 0),(0,n._)(this,"failed",void 0),(0,n._)(this,"map",void 0),(0,n._)(this,"layers",void 0),this.options=o,this.toolbar=new b.ToolbarCollection(this.jodit),this.state={uid:"jd"+(0,p.uniqueUid)()+new Date().toString().replace(/[^0-9]/g,""),layer:this.options.googleMaps.map.layer,center:this.options.googleMaps.map.defaultCenter,zoom:this.options.googleMaps.map.defaultZoom,size:this.options.googleMaps.map.size,type:this.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},this.mapElements=[],this.apiLoaded=null,this.mapInitialized=!1,this.failed=!1,this.layers=[],Object.assign(this.state,i),this.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]);const r=this.getElm("map-palette");(0,f.assert)(null!=r,"palette element does not exists"),r.appendChild(this.toolbar.container)}}(0,r.__decorate)([(0,d.hook)("ready")],_.prototype,"onReady",null),(0,r.__decorate)([(0,h.watch)("?:changeCreateMode.gm")],_.prototype,"changeCreateMode",null),(0,r.__decorate)([(0,h.watch)("state.mode")],_.prototype,"onChangeMode",null),(0,r.__decorate)([(0,h.watch)("state.elements")],_.prototype,"onChangeElementsList",null),(0,r.__decorate)([(0,h.watch)("state.center"),(0,u.wait)(t=>t.mapInitialized),(0,c.debounce)()],_.prototype,"onChangeCenter",null),(0,r.__decorate)([(0,h.watch)("state.zoom"),(0,c.debounce)()],_.prototype,"onChangeZoom",null),(0,r.__decorate)([(0,h.watch)("state.controls")],_.prototype,"onChangeControls",null),(0,r.__decorate)([(0,h.watch)(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),(0,u.wait)(t=>t.mapInitialized),(0,c.debounce)()],_.prototype,"onChangeBound",null),(0,r.__decorate)([(0,h.watch)("state.size"),(0,c.debounce)()],_.prototype,"onChangeSize",null),(0,r.__decorate)([(0,h.watch)("state.type")],_.prototype,"onChangeMapType",null),(0,r.__decorate)([(0,h.watch)("state.layer")],_.prototype,"onChangeLayer",null)},22125:function(t,i,o){"use strict";o.d(i,{addNewInState:function(){return r}});var n=o(67912);function r(t){switch(this.state.mode){case"polyline":case"polygon":{let{mode:i}=this.state;this.state.elements=[...this.state.elements,{type:i,coordinates:(0,n.pathToArray)(t.getPath()),...this.options.googleMaps.map.defaultStates[i]}];break}case"circle":this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[t.getCenter()?.lat()??0,t.getCenter()?.lng()??0],radius:t.getRadius(),...this.options.googleMaps.map.defaultStates.circle}];break;case"marker":this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[t.getPosition()?.lat()??0,t.getPosition()?.lng()??0],...this.options.googleMaps.map.defaultStates.marker}]}}},76864:function(t,i,o){"use strict";o.d(i,{DrawingController:function(){return s}});var n=o(82749);let r=["marker","polyline","polygon","circle"];class s{setMode(t){let i=r.includes(t)?t:null;i!==this.mode&&(this.cancel(),this.unbind(),this.mode=i,i?(this.bind(),this.map.setOptions({draggableCursor:"crosshair",disableDoubleClickZoom:!0})):this.map.setOptions({draggableCursor:null,disableDoubleClickZoom:!1}))}destruct(){this.cancel(),this.unbind(),this.mode=null}bind(){this.listeners=[this.map.addListener("click",t=>this.onClick(t)),this.map.addListener("mousemove",t=>this.onMove(t)),this.map.addListener("dblclick",()=>this.onDblClick())].filter(Boolean)}unbind(){this.listeners.forEach(t=>t?.remove()),this.listeners=[]}onClick(t){let i=t.latLng;if(i)switch(this.mode){case"marker":this.onComplete(new google.maps.Marker({position:i}));break;case"circle":this.previewCircle?this.finishCircle():this.previewCircle=new google.maps.Circle({...this.defaultStates.circle,center:i,radius:0,clickable:!1,map:this.map});break;case"polyline":case"polygon":this.vertices.push(i),this.updatePolyPreview(i)}}onMove(t){let i=t.latLng;if(i){if(this.previewCircle){let t=this.previewCircle.getCenter();t&&this.previewCircle.setRadius(google.maps.geometry.spherical.computeDistanceBetween(t,i));return}this.vertices.length&&this.updatePolyPreview(i)}}onDblClick(){if("polyline"!==this.mode&&"polygon"!==this.mode)return;let t=this.vertices.filter((t,i,o)=>0===i||!t.equals(o[i-1])),i="polygon"===this.mode?3:2;if(t.length>=i&&this.preview){let i=this.preview;i.setPath(t),this.onComplete(i)}this.cancel()}finishCircle(){let t=this.previewCircle;t&&(this.previewCircle=null,this.onComplete(t),t.setMap(null))}updatePolyPreview(t){let i=[...this.vertices,t];if(!this.preview){let t={...this.defaultStates["polygon"===this.mode?"polygon":"polyline"],clickable:!1,map:this.map};this.preview="polygon"===this.mode?new google.maps.Polygon(t):new google.maps.Polyline(t)}this.preview.setPath(i)}cancel(){this.preview?.setMap(null),this.preview=null,this.previewCircle?.setMap(null),this.previewCircle=null,this.vertices=[]}constructor(t,i,o){(0,n._)(this,"map",void 0),(0,n._)(this,"defaultStates",void 0),(0,n._)(this,"onComplete",void 0),(0,n._)(this,"mode",void 0),(0,n._)(this,"listeners",void 0),(0,n._)(this,"preview",void 0),(0,n._)(this,"previewCircle",void 0),(0,n._)(this,"vertices",void 0),this.map=t,this.defaultStates=i,this.onComplete=o,this.mode=null,this.listeners=[],this.preview=null,this.previewCircle=null,this.vertices=[]}}},1475:function(t,i,o){"use strict";o.d(i,{initOrUpdateElementFromState:function(){return d}});var n=o(53454),r=o(11079),s=o(72690),a=o(580),l=o(12153),c=o(67912);function d(t,i){let o,d=this.mapElements[i];if(d){if(d.state.type===t.type)return s.updateStateAndGme.call(this,t,i);d.gme.setMap(null)}switch(t.type){case"text":o=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,title:t.text,map:this.map});break;case"marker":o=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,label:t.showCaption?t.title:"",title:t.title,icon:t.icon?l.Icon.get(t.icon):void 0,map:this.map});break;case"polyline":case"polygon":{let i=(0,c.arrayToPath)(t.coordinates);o=new google.maps["polygon"===t.type?"Polygon":"Polyline"]({path:i,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:"polygon"===t.type?t.fillOpacity:1})}break;case"circle":o=new google.maps.Circle({center:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),radius:t.radius,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:t.fillOpacity??1})}let u={type:t.type,uid:(0,a.uniqueUid)(),state:t,gme:o};"dragend radius_changed center_changed".split(" ").forEach(t=>o.addListener(t,()=>n.onChangeGeometries.call(this,u,i))),("polygon"===u.type||"polyline"===u.type)&&"insert_at set_at remove_at".split(" ").forEach(t=>u.gme.getPath().addListener(t,()=>n.onChangeGeometries.call(this,u,i))),o.addListener("click",()=>r.openPropsDialog.call(this,u,i)),this.mapElements[i]=u}},53454:function(t,i,o){"use strict";o.d(i,{onChangeGeometries:function(){return s}});var n=o(72690),r=o(67912);function s(t,i){switch(t.type){case"polyline":case"polygon":{let o=(0,r.pathToArray)(t.gme.getPath()),s={...t.state,coordinates:o};n.updateStateAndGme.call(this,s,i,!0);break}case"marker":{let o=t.gme.getPosition(),r={...t.state,coordinates:[o?.lat()??0,o?.lng()??0]};n.updateStateAndGme.call(this,r,i,!0);break}case"circle":{let o=t.gme.getCenter(),r={...t.state,radius:t.gme.getRadius(),coordinates:[o?.lat()??0,o?.lng()??0]};n.updateStateAndGme.call(this,r,i,!0)}}}},11079:function(t,i,o){"use strict";o.d(i,{openPropsDialog:function(){return l}});var n=o(47660),r=o(72690),s=o(90835);function a(){let t=new google.maps.InfoWindow({content:"<div>test</div>"});return t.addListener("domready",()=>{this.setMod("info-opened",!0)}),t.addListener("closeclick",()=>{this.setMod("info-opened",!1)}),t}function l(t,i){let o;switch(this.state.mode="hand",t.type){case"polyline":o=new s.UIPolylineEditor(this.jodit,t.state,this.options);break;case"marker":o=new s.UIMarkerEditor(this.jodit,t.state,this.options);break;case"circle":case"polygon":o=new s.UIPolygonEditor(this.jodit,t.state,this.options)}if(!o)return;this.append(o),this.j.e.on(o,"bin",()=>{n.removeElement.call(this,t)}).on(o,"change",(o,n)=>{r.updateStateAndGme.call(this,{...t.state,[o]:n},i)});let l=a.call(this);if("polygon"===t.type||"polyline"===t.type){let i=t.gme.getPath().getAt(0);l.setPosition(i)}"circle"===t.type&&l.setPosition(t.gme.getCenter()),l.setContent(o.container),l.open(this.map,t.gme),l.addListener("closeclick",()=>{o&&(this.remove(o),o.destruct())})}},47660:function(t,i,o){"use strict";function n(t){let i=this.mapElements.indexOf(t);-1!==i&&(this.mapElements[i].gme.setMap(null),this.mapElements.splice(i,1),this.state.elements.splice(i,1),this.state.elements=[...this.state.elements])}o.d(i,{removeElement:function(){return n}})},72690:function(t,i,o){"use strict";o.d(i,{updateStateAndGme:function(){return r}});var n=o(67912);function r(t,i,o=!1){let s=this.mapElements[i];if(s.state===t||s.state.type!==t.type)return;let a=s.state;if(!o){let i;for(i in t){let o=t[i],r=a[i];if(null!=o&&(null==r||o.toString()!==r.toString()))switch(i){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(s.type){case"polyline":case"circle":case"polygon":s.gme.setOptions({[i]:o})}break;case"coordinates":switch(s.type){case"polygon":case"polyline":s.gme.setPath((0,n.arrayToPath)(o))}}}}s.state=t,this.state.elements[i]=t}},8073:function(t,i,o){"use strict";o.d(i,{UIMapsControlsForm:function(){return l}});var n=o(82749),r=o(31635),s=o(87325),a=o(67510);class l extends a.UIForm{className(){return"UIMapsControlsForm"}onChangeSize(t,i){this.state.controls={...this.state.controls,[t]:"true"===i}}constructor(t,i){super(t),(0,n._)(this,"state",void 0),this.state=i;const o={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},r=Object.keys(o);this.append(r.map(i=>new a.UICheckbox(t,{label:o[i],name:i,checked:this.state.controls[i],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,i)})))}}l=(0,r.__decorate)([s.component],l)},83039:function(t,i,o){"use strict";o.d(i,{UIMapsPropsForm:function(){return c}});var n=o(82749),r=o(31635),s=o(65478),a=o(76078),l=o(67510);class c extends l.UIForm{className(){return"UIMapsPropsForm"}onChangeSize(){let{width:t,height:i}=(0,a.refs)(this.container);this.state.size=[parseInt(t?.value,10)||0,parseInt(i?.value,10)||0]}onExternalChangeSize(){let{width:t,height:i}=(0,a.refs)(this.container),[o,n]=this.state.size;o.toString()!==t.value&&(t.value=o.toString()),n.toString()!==i.value&&(i.value=n.toString())}onChangeCenter(){let{lat:t,lng:i}=(0,a.refs)(this.container);this.state.center=[parseFloat(t?.value)||0,parseFloat(i?.value)||0]}onExternalChangeCenter(){let{lat:t,lng:i}=(0,a.refs)(this.container),[o,n]=this.state.center;o.toString()!==t.value&&(t.value=o.toString()),n.toString()!==i.value&&(i.value=n.toString())}onExternalChangeType(){let{mapType:t}=(0,a.refs)(this.container);this.state.type!==t.value&&(t.value=this.state.type)}onExternalChangeLayer(){let{layer:t}=(0,a.refs)(this.container);this.state.layer!==t.value&&(t.value=this.state.layer)}constructor(t,i){super(t),(0,n._)(this,"state",void 0),this.state=i;const[o,r]=i.size,[s,a]=i.center;this.append([new l.UIInput(t,{label:"Width",name:"width",value:o,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Height",name:"height",value:r,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Latitude",name:"lat",value:s,onChange:this.onChangeCenter}),new l.UIInput(t,{label:"Longitude",name:"lng",value:a,onChange:this.onChangeCenter}),new l.UISelect(t,{label:"Map type",value:i.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange(t){i.type=t}}),new l.UISelect(t,{label:"Layer",value:i.layer??"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange(t){i.layer=t}})])}}(0,r.__decorate)([s.autobind],c.prototype,"onChangeSize",null),(0,r.__decorate)([(0,s.watch)("state.size")],c.prototype,"onExternalChangeSize",null),(0,r.__decorate)([s.autobind],c.prototype,"onChangeCenter",null),(0,r.__decorate)([(0,s.watch)(["state.center"])],c.prototype,"onExternalChangeCenter",null),(0,r.__decorate)([(0,s.watch)(["state.type"])],c.prototype,"onExternalChangeType",null),(0,r.__decorate)([(0,s.watch)(["state.layer"])],c.prototype,"onExternalChangeLayer",null),c=(0,r.__decorate)([s.component],c)},11093:function(t,i,o){"use strict";o.d(i,{UIWysiwyg:function(){return c}});var n=o(31635),r=o(87325),s=o(38837),a=o(48538),l=o(2692);class c extends a.UIElement{className(){return"UIWysiwyg"}render(){return`<div>
|
|
602
602
|
<div class='&__label'>~Info~</div>
|
|
603
603
|
<div class='&__editor'></div>
|
|
604
604
|
</div>`}constructor(t,i,o,n){super(t);const r=this.getElm("editor");(0,s.assert)(null!=r,"editor element does not exist");const a=l.JoditPro.make(r,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:t.o.language,direction:t.o.direction,theme:t.o.theme,statusbar:!1,...i});a.value=o,a.e.on("change",()=>n(a.value))}}c=(0,n.__decorate)([r.component],c)},40650:function(t,i,o){"use strict";var n=o(82749),r=o(25088),s=o.n(r),a=o(6441),l=o(21537),c=o(50911),d=o(59451),u=o(2692);a.Config.prototype.controls.google={tooltip:"Google search",icon:s(),isDisabled:t=>(0,d.isEditorEmpty)(t.editor),command:"startSearch"};class h extends c.Plugin{afterInit(t){t.registerCommand("startSearch",{exec(){let i,{s:o}=t;if(i=o.isCollapsed()?o.current()?.parentElement?.innerText:o.sel?.toString()){let t="https://www.google.com/search?q="+encodeURIComponent((0,l.trim)(i));window.open(t,"_blank")}}})}beforeDestruct(t){}constructor(...t){super(...t),(0,n._)(this,"buttons",[{name:"google",group:"search"}])}}(0,n._)(h,"requires",["license"]),u.JoditPro.plugins.add("google-search",h)},36347:function(t,i,o){"use strict";o(6441).Config.prototype.highlightSignature={processDelay:0,processInChunkCount:300,schema:{},excludeTags:["pre"]}},46958:function(t,i,o){"use strict";var n=o(82749),r=o(31635);o(36347);var s=o(65478),a=o(2748),l=o(29960),c=o(20356),d=o(2692);class u extends c.Plugin{afterInit(t){Object.keys(t.o.highlightSignature.schema).length&&(t.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",u.removeUtilWrappers),this.walkNodes())}beforeDestruct(t){t.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",u.removeUtilWrappers)}walkNodes(){if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();let{j:t}=this,i=t.ed.createNodeIterator(t.editor,NodeFilter.SHOW_TEXT);this.abortController?.abort(),this.workLoop(i)}runWorker(t){let i;this.j.e.mute();let o=0,{processInChunkCount:n}=this.j.o.highlightSignature;try{do{if(o+=1,!(i=t.nextNode())||this.checkNormalizing(i))return;this.checkReplaceSchemas(i)}while(i&&n>o)}finally{this.j.e.unmute()}this.workLoop(t)}workLoop(t){this.abortController=new AbortController,this.j.async.schedulerPostTask(()=>this.runWorker(t),{delay:this.j.o.highlightSignature.processDelay}).catch(()=>null)}checkNormalizing(t){return!!a.Dom.isText(t.nextSibling)&&(this.j.editor.normalize(),this.walkNodes(),!0)}checkReplaceSchemas(t){if(u.hasUtilWrapper(t))return;let i=t.nodeValue;if(null==i)return;let{j:o}=this,n=o.o.highlightSignature;for(let o in n.schema){let r=RegExp(o);if(r.test(i)){let s=i.match(r);if(!s||void 0===s.index)continue;let l=n.schema[o](this.j,s);if(l){a.Dom.markTemporary(l,{dataHighlightSchema:o}),this.replaceMatchedTextToElm(t,i,s,l);return}}}}replaceMatchedTextToElm(t,i,o,n){let{j:r}=this,{range:s}=r.s,l=s.startContainer===t,c=s.startOffset,d=o.index??0;t.nodeValue=i.substring(0,d);let u=i.substring(d+o[0].length);if(u.length){let i=r.createInside.text(u);a.Dom.after(t,i)}n.innerText=o[0],a.Dom.after(t,n),l&&this.restoreCursorPosition(c,t,n.firstChild,n.nextSibling)}static hasUtilWrapper(t){return a.Dom.isTemporary(t.parentElement)}static removeUtilWrappers(t){t.value=a.Dom.replaceTemporaryFromString(t.value)}restoreCursorPosition(t,...i){for(let o of i)if(o&&o.nodeValue){let i=o.nodeValue;if(i.length>=t){let i=this.j.s.createRange();i.setStart(o,t),this.j.s.selectRange(i,!1);break}t-=i.length}}checkUtilsBoxToSchema(){a.Dom.temporaryList(this.j.editor).forEach(t=>{let i=(0,l.attr)(t,"dataHighlightSchema");if(!i)return;let o=RegExp(i),n=t.innerText??"";(!o.test(n)||n.replace(o,"").length)&&(this.j.s.save(),a.Dom.unwrap(t),this.j.s.restore())})}constructor(...t){super(...t),(0,n._)(this,"abortController",null)}}(0,n._)(u,"requires",["license"]),(0,r.__decorate)([(0,s.debounce)()],u.prototype,"walkNodes",null),(0,r.__decorate)([s.autobind],u.prototype,"runWorker",null),d.JoditPro.plugins.add("highlight-signature",u)},88092:function(t,i,o){"use strict";var n=o(67008),r=o.n(n),s=o(6441),a=o(2748),l=o(68345);s.Config.prototype.controls.iframeEditor={icon:r(),tooltip:"Iframe Editor",exec(t,i){a.Dom.isTag(i,"jodit")&&a.Dom.isTag(i.firstElementChild,"iframe")&&(i=i.firstElementChild),t.e.fire("toggleIframeEditor",a.Dom.isTag(i,"iframe")?i:null)}},(0,l.isArray)(s.Config.prototype.popup.iframe)&&s.Config.prototype.popup.iframe.push("iframeEditor")},1050:function(t,i,o){"use strict";var n=o(82749),r=o(31635);o(88092);var s=o(29744),a=o(65478),l=o(22732),c=o(21537),d=o(50911),u=o(62843),h=o(41409),p=o(2692);class f extends d.Plugin{afterInit(t){t.e.on("toggleIframeEditor",this.toggleEditor)}toggleEditor(t){this.__dialog||(this.__dialog=new h.Dialog({language:this.j.o.language,theme:this.j.o.theme}),this.__dialog.setHeader("Iframe Properties").setSize(470,400)),t&&!l.Dom.isTag(t,"iframe")&&(t=void 0);let i=new s.UIIframeEditor(this.__dialog,{src:t?.src??"",name:t?.name??"",title:t?.title??"",frameBorder:t?.frameBorder==="1"||t?.frameBorder==="yes",width:t?.offsetWidth??700,height:t?.offsetHeight??400});this.__dialog.setContent(i);let o=this.__dialog;o.isOpened?o.close():(o.setFooter([(0,u.Button)(o,"cancel","Cancel","default").onAction(()=>o.close()),(0,u.Button)(o,"ok",t?"Update":"Insert","primary").onAction(()=>{if(!i.srcField.value){i.srcField.validate(),i.srcField.focus();return}t||(t=this.j.createInside.element("iframe"),this.j.s.insertNode(t,!0,!1)),t.className=i.state.className||"",(0,c.attr)(t,{src:i.state.src,title:i.state.title,name:i.state.name,frameborder:i.state.frameBorder?"1":"0",width:i.state.width,height:i.state.height}),l.Dom.isTag(t.parentElement,"jodit")&&(0,c.css)(t.parentElement,{width:i.state.width,height:i.state.height}),this.jodit.e.fire("synchro"),o.close()})]).open(),this.jodit.async.requestIdleCallback(()=>{i.srcField.focus()}))}onDblClick(t){l.Dom.isTag(t.target,"iframe")&&this.toggleEditor(t.target)}beforeDestruct(t){this.__dialog?.destruct()}constructor(...t){super(...t),(0,n._)(this,"buttons",[{group:"form",name:"iframeEditor"}]),(0,n._)(this,"__dialog",void 0)}}(0,n._)(f,"requires",["license","color-picker"]),(0,r.__decorate)([a.autobind],f.prototype,"toggleEditor",null),(0,r.__decorate)([(0,a.watch)(":dblclick")],f.prototype,"onDblClick",null),p.JoditPro.plugins.add("iframe-editor",f)},29744:function(t,i,o){"use strict";o.d(i,{UIIframeEditor:function(){return l}});var n=o(82749),r=o(31635),s=o(87325),a=o(67510);class l extends a.UIGroup{className(){return"UIIframeEditor"}constructor(t,i){super(t),(0,n._)(this,"state",{src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""}),(0,n._)(this,"srcField",void 0),Object.assign(this.state,i),this.srcField=new a.UIInput(t,{label:"URL",type:"url",required:!0,value:this.state.src,onChange:t=>{this.state.src=t}}),this.append([this.srcField,new a.UIBlock(t,[new a.UIInput(t,{label:"Width",type:"number",value:this.state.width,onChange:t=>{this.state.width=parseInt(t,10)||0}}),new a.UIInput(t,{label:"Height",type:"number",value:this.state.height,onChange:t=>{this.state.height=parseInt(t,10)||0}})],{className:this.getFullElName("block"),align:"center"}),new a.UIBlock(t,[new a.UICheckbox(t,{label:"Show frame border",checked:!!i.frameBorder,onChange:t=>{this.state.frameBorder="true"===t}})]),new a.UIInput(t,{label:"Name",value:this.state.name,type:"text",onChange:t=>{this.state.name=t}}),new a.UIInput(t,{label:"Title",value:this.state.title,type:"text",onChange:t=>{this.state.title=t}})])}}l=(0,r.__decorate)([s.component],l)},76542:function(t,i,o){"use strict";o.d(i,{ProImageEditor:function(){return d}});var n=o(82749),r=o(85013),s=o(6441),a=o(91907),l=o(10830),c=o(78584);class d extends a.ViewComponent{className(){return"ImageEditorPro"}async open(t,i){let o=this.j,n=s.Config.defaultOptions.imageEditorPro,a=o.c.div("jodit-image-editor-pro");a.style.width="100%",a.style.height="100%";let l=new c.Dialog({language:o.o.language});l.setSize(n.dialog.width,n.dialog.height),l.setContent(a),l.open();let d=null,u=null,h=()=>{u?.(),u=null,d?.destroy(),d=null,l.close()};l.e.on("beforeClose",()=>{u?.(),u=null,d?.destroy(),d=null}),d=new r.ImageEditor({container:a,state:{showToolbar:!1,status:"loading"},onSave:o=>{this.persist(d,t,void 0,o,i,h)},onSaveAs:o=>{this.saveAs(d,t,o,i,h)}}),u=this.mountToolbar(l,d);try{let i=await this.loadImage(t);await d.fromBlob(i),o.e.fire("afterImageEditor")}catch(t){d?.update({status:"error",error:t instanceof Error?t.message:t+""}),this.error(t)}}mountToolbar(t,i){let o=this.j,n=(0,l.Button)(o,{icon:{name:"save"},text:o.i18n("Save")},"primary"),s=(0,l.Button)(o,{icon:{name:"save"},name:"save-as",text:o.i18n("Save as")}),a=o.c.span("jodit-image-editor-pro__size"),c=(0,l.Button)(o,r.ICONS.minus),d=o.c.span("jodit-image-editor-pro__zoom"),u=(0,l.Button)(o,r.ICONS.plus),h=(0,l.Button)(o,"update",o.i18n("Reset")),p=(0,l.Button)(o,"undo",o.i18n("Undo")),f=(0,l.Button)(o,"redo",o.i18n("Redo"));c.setState({tooltip:"Zoom out"}),u.setState({tooltip:"Zoom in"});let m=null;n.onAction(()=>{m=n,i.save()}),s.onAction(()=>{m=s,i.saveAs()}),c.onAction(()=>i.update({zoom:i.state.zoom/1.2})),u.onAction(()=>i.update({zoom:1.2*i.state.zoom})),h.onAction(()=>i.reset()),p.onAction(()=>i.update({history:{step:-1}})),f.onAction(()=>i.update({history:{step:1}}));let g=(...t)=>{let i=o.c.div("jodit-image-editor-pro__group");return i.style.display="flex",i.style.alignItems="center",i.style.gap="4px",t.forEach(t=>i.appendChild(t)),i},b=o.c.div("jodit-image-editor-pro__toolbar");b.style.display="flex",b.style.alignItems="center",b.style.gap="12px",b.style.width="100%",a.style.opacity="0.75",d.style.minWidth="3.5em",d.style.textAlign="center",b.appendChild(g(n.container,s.container)),b.appendChild(g(a,c.container,d,u.container));let y=g(h.container,p.container,f.container);y.style.marginLeft="auto",b.appendChild(y),t.setHeader(b);let w="jodit-image-editor-pro__button_busy",_=t=>{let i=r.selectors.selectOutputSize(t),o="exporting"===t.status,l=o||"loading"===t.status,c=t.busyVisible,u=o&&(c??!0);o||(m=null),n.setState({disabled:!t.source||l}),s.setState({disabled:!t.source||l}),n.container.classList.toggle(w,u&&m!==s),s.container.classList.toggle(w,u&&m===s),h.setState({disabled:!r.selectors.selectIsDirty(t)}),p.setState({disabled:!r.selectors.selectCanUndo(t)}),f.setState({disabled:!r.selectors.selectCanRedo(t)}),a.textContent=i?`${i.width} \xd7 ${i.height}`:"";let g=r.selectors.selectViewportFit(t),b=g?Math.round(100*g.scale):Math.round(100*t.zoom);d.textContent=`${b}%`};_(i.state);let C=i.store.subscribe(_);return()=>{C(),[n,s,c,u,h,p,f].forEach(t=>t.destruct())}}saveAs(t,i,o,n,r){this.j.prompt("Enter new name","Save in new file",s=>{let a=(s||"").trim();if(!a)return this.j.alert("The name should not be empty"),!1;this.persist(t,i,a,o,n,r)})}async persist(t,i,o,n,r,s){t?.update({status:"exporting"});try{let t=await this.blobSize(n),a={action:this.coreSupportsSaved()?"saved":"resize",box:t};void 0!==o?this.j.e.fire("afterImageEditorSave",a,o):this.j.e.fire("afterImageEditorSave",a);let l=await this.uploadEdited(i,n,o),c=()=>{s(),this.j.e.fire("update.filebrowser")};r(o,this.coreSupportsSaved()?{action:"saved",box:t,newPath:l||void 0}:{action:"resize",box:t},c,t=>{s(),this.error(t)})}catch(t){s(),this.error(t)}}async uploadEdited(t,i,o){let{source:n,path:r,name:s}=await this.j.dataProvider.getPathByUrl(t),a=this.connectorUrl();if(!a)throw Error("No connector configured for imageSave");let l=(o||s||"image.png")+"",c=new FormData;c.append("action","imageSave"),c.append("source",(n??"")+""),c.append("path",(r??"")+""),c.append("name",l),c.append("files[0]",i,l);let d=a.includes("?")?"&":"?",u=await fetch(`${a}${d}action=imageSave`,{method:"POST",body:c,credentials:"include"}),h=await u.json();if(!h.success)throw Error(h.message||"Failed to save the edited image");return h.data?.newPath??""}coreSupportsSaved(){let[t=0,i=0,o=0]=(this.j.getVersion?this.j.getVersion():"").split(".").map(t=>parseInt(t,10)||0);return t>4||4===t&&(i>12||12===i&&o>=34)}connectorUrl(){let t=this.j.o.ajax?.url,i=this.j.o.uploader?.url;return"string"==typeof t&&t?t:"string"==typeof i&&i?i:""}async loadImage(t){let i=this.connectorUrl();if(i)try{return await this.loadViaConnector(i,t)}catch{}let o=t.includes("?")?"&":"?",n=await fetch(`${t}${o}_tst=${Date.now()}`,{credentials:"include"});if(!n.ok)throw Error(`Failed to load image (${n.status})`);return n.blob()}async loadViaConnector(t,i){let{source:o,path:n,name:r}=await this.j.dataProvider.getPathByUrl(i),s=new FormData;s.append("action","imageLoad"),s.append("source",(o??"")+""),s.append("path",(n??"")+""),s.append("name",(r??"")+"");let a=t.includes("?")?"&":"?",l=await fetch(`${t}${a}action=imageLoad`,{method:"POST",body:s,credentials:"include"}),c=await l.json();if(!c.success||!c.data?.content)throw Error(c.message||"Failed to load the image");return(await fetch(c.data.content)).blob()}async blobSize(t){let i=await createImageBitmap(t),o={w:i.width,h:i.height};return i.close(),o}error(t){this.j.e.fire("errorMessage",t.message)}constructor(...t){super(...t),(0,n._)(this,"isProImageEditor",!0)}}},45719:function(t,i,o){"use strict";o(6441).Config.prototype.imageEditorPro={dialog:{width:"90%",height:"90%"}}},98270:function(t,i,o){"use strict";var n=o(82749);o(45719);var r=o(76542),s=o(50911),a=o(2692);class l extends s.Plugin{afterInit(t){let i=r.ProImageEditor,o=a.JoditPro.modules;o.ImageEditorCore||o.ImageEditor===i||(o.ImageEditorCore=o.ImageEditor),o.ImageEditor=i}beforeDestruct(t){}}(0,n._)(l,"requires",["license"]),a.JoditPro.plugins.add("imageEditorPro",l)},12373:function(t,i,o){"use strict";o(25187),o(58858),o(21246),o(49934),o(3115),o(41810),o(61328),o(45632),o(8390),o(29528),o(85174),o(90882),o(97068),o(482),o(40650),o(46958),o(98270),o(1050),o(95618),o(74398),o(79850),o(41406),o(47682),o(75554),o(61886),o(19374),o(73098),o(13152)},41113:function(t,i,o){"use strict";var n=o(63643),r=o.n(n),s=o(6441);s.Config.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Español",keys:[["º ` ~","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","¡ = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","ç Ç \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ñ Ñ ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","ü Ü [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ö Ö ;","ä Ä ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ ±","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"Türkçe",keys:[['" é` ~',"1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","ı I","o O","p P","ğ Ğ","ü Ü",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ş Ş","i̇ İ","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","ö Ö <","ç Ç >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","ק e E","ר r R","א t T","ט y Y","ו u U","ן i I","ם o O","פ p P","[ {","] }","\\ |"],["Caps","ש a A","ד s S","ג d D","כ f F","ע g G","י h H","ח j J","ל k K","ך l L","ף ; :","' \"","Enter"],["Shift","ז z Z","ס x X","ב c C","ה v V","נ b B","מ n N","צ m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},s.Config.prototype.controls.keyboard={tooltip:"Keyboard",icon:r(),isActive:t=>!!t.e.fire("isKeyboardOpened"),command:"toggleKeyboard"},s.Config.prototype.controls.extraKeyboardButtons={}},95618:function(t,i,o){"use strict";var n=o(82749),r=o(31635);o(41113);var s=o(25241),a=o(6441),l=o(65478),c=o(27613),d=o(50911),u=o(67510),h=o(41409),p=o(2692);class f extends d.Plugin{afterInit(t){t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",()=>this.__keyboard?.isOpened)}insertChar(t,i,o){this.j.s.insertNode(this.j.createInside.text(o))}toggleKeyboard(){if(!this.__keyboard){this.__keyboard=new h.Dialog({toolbarButtonSize:"tiny"});let t=new s.UIKeyboard(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(t);let{showLayoutSwitcher:i,layoutSwitchList:o,layoutList:n}=this.j.o.keyboard;if(i){let i=new u.UISelect(this.__keyboard,{value:t.state.currentLayout,options:o.map(t=>({text:n[t]?.title??t,value:t})),onChange(i){t.state.currentLayout=i}});i.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(i)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}beforeDestruct(t){this.__keyboard?.destruct()}constructor(t){super(t),(0,n._)(this,"hasStyle",!p.JoditPro.fatMode),(0,n._)(this,"buttons",[{group:"insert",name:"keyboard"}]),(0,n._)(this,"__keyboard",void 0);const{extraKeyButtons:i,extraKeyGroup:o}=t.o.keyboard;i.length&&i.forEach((i,n)=>{let r=(0,c.isString)(i)?i:i.key,s=(0,c.isString)(i)||!i.hotkeys?["ctrl+"+(n+1)]:i.hotkeys;t.registerButton({name:"extraKeyboardButtons."+r,group:o});let{extraKeyboardButtons:l}=a.Config.defaultOptions.controls;l[r]={name:r,tooltip:r,args:[r],hotkeys:s,command:"insertChar"}})}}(0,n._)(f,"requires",["license"]),(0,r.__decorate)([l.autobind],f.prototype,"insertChar",null),(0,r.__decorate)([l.autobind],f.prototype,"toggleKeyboard",null),p.JoditPro.plugins.add("keyboard",f)},25241:function(t,i,o){"use strict";o.d(i,{UIKeyboard:function(){return _}});var n=o(82749),r=o(31635),s=o(82758),a=o(65478),l=o(43555),c=o(67510),d=o(27926),u=o.n(d),h=o(10690),p=o.n(h),f=o(91997),m=o.n(f),g=o(11699),b=o.n(g),y=o(98126),w=o.n(y);class _ extends c.UIElement{className(){return"UIKeyboard"}render(){let{layout:t,keySize:i}=this.j.options.keyboard,o=t.length;return`<div>${(()=>{let n=[];for(let r=0;o>r;r+=1){let o=[];for(let n=0;n<t[r].length;n+=1)o.push(`<div style="width:${i*t[r][n]}px;height:${i}px;" class="&__key"></div>`);n.push(`<div class='&__row'>${o.join(`
|