jodit 4.10.3 → 4.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +15 -15
  4. package/es2015/jodit.js +359 -62
  5. package/es2015/jodit.min.js +7 -7
  6. package/es2015/plugins/debug/debug.css +1 -1
  7. package/es2015/plugins/debug/debug.js +1 -1
  8. package/es2015/plugins/debug/debug.min.js +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  12. package/es2018/jodit.fat.min.js +6 -6
  13. package/es2018/jodit.min.js +15 -15
  14. package/es2018/plugins/debug/debug.min.js +1 -1
  15. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  16. package/es2021/jodit.css +1 -1
  17. package/es2021/jodit.fat.min.js +8 -8
  18. package/es2021/jodit.js +358 -62
  19. package/es2021/jodit.min.js +9 -9
  20. package/es2021/plugins/debug/debug.css +1 -1
  21. package/es2021/plugins/debug/debug.js +1 -1
  22. package/es2021/plugins/debug/debug.min.js +1 -1
  23. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  24. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  25. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  26. package/es2021.en/jodit.css +1 -1
  27. package/es2021.en/jodit.fat.min.js +50 -50
  28. package/es2021.en/jodit.js +358 -62
  29. package/es2021.en/jodit.min.js +25 -25
  30. package/es2021.en/plugins/debug/debug.css +1 -1
  31. package/es2021.en/plugins/debug/debug.js +1 -1
  32. package/es2021.en/plugins/debug/debug.min.js +1 -1
  33. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  34. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  35. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  36. package/es5/jodit.css +2 -2
  37. package/es5/jodit.fat.min.js +2 -2
  38. package/es5/jodit.js +416 -62
  39. package/es5/jodit.min.css +2 -2
  40. package/es5/jodit.min.js +2 -2
  41. package/es5/plugins/debug/debug.css +1 -1
  42. package/es5/plugins/debug/debug.js +1 -1
  43. package/es5/plugins/debug/debug.min.js +1 -1
  44. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  45. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  46. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  47. package/es5/polyfills.fat.min.js +1 -1
  48. package/es5/polyfills.js +1 -1
  49. package/es5/polyfills.min.js +1 -1
  50. package/esm/config.d.ts +85 -0
  51. package/esm/core/constants.js +1 -1
  52. package/esm/core/dom/dom.d.ts +1 -0
  53. package/esm/core/helpers/html/safe-html.d.ts +3 -2
  54. package/esm/core/helpers/html/safe-html.js +42 -3
  55. package/esm/plugins/clean-html/clean-html.js +4 -0
  56. package/esm/plugins/clean-html/config.d.ts +85 -0
  57. package/esm/plugins/clean-html/config.js +7 -1
  58. package/esm/plugins/clean-html/helpers/visitor/filters/convert-unsafe-embeds.d.ts +14 -0
  59. package/esm/plugins/clean-html/helpers/visitor/filters/convert-unsafe-embeds.js +37 -0
  60. package/esm/plugins/clean-html/helpers/visitor/filters/index.d.ts +4 -0
  61. package/esm/plugins/clean-html/helpers/visitor/filters/index.js +4 -0
  62. package/esm/plugins/clean-html/helpers/visitor/filters/safe-links-target.d.ts +14 -0
  63. package/esm/plugins/clean-html/helpers/visitor/filters/safe-links-target.js +38 -0
  64. package/esm/plugins/clean-html/helpers/visitor/filters/sandbox-iframes-in-content.d.ts +14 -0
  65. package/esm/plugins/clean-html/helpers/visitor/filters/sandbox-iframes-in-content.js +24 -0
  66. package/esm/plugins/clean-html/helpers/visitor/filters/sanitize-attributes.js +10 -5
  67. package/esm/plugins/clean-html/helpers/visitor/filters/sanitize-styles.d.ts +14 -0
  68. package/esm/plugins/clean-html/helpers/visitor/filters/sanitize-styles.js +70 -0
  69. package/esm/plugins/drag-and-drop/drag-and-drop.js +1 -1
  70. package/esm/plugins/enter/helpers/insert-paragraph.js +2 -1
  71. package/esm/plugins/file/file.js +3 -2
  72. package/esm/plugins/iframe/iframe.js +8 -6
  73. package/esm/plugins/image/image.js +3 -2
  74. package/esm/plugins/image-properties/writers/link.js +6 -0
  75. package/esm/plugins/link/link.js +15 -3
  76. package/esm/plugins/resizer/resizer.js +2 -2
  77. package/esm/plugins/source/editor/engines/area.js +3 -7
  78. package/package.json +1 -1
  79. package/types/config.d.ts +85 -0
  80. package/types/core/dom/dom.d.ts +1 -0
  81. package/types/core/helpers/html/safe-html.d.ts +3 -2
  82. package/types/plugins/clean-html/config.d.ts +85 -0
  83. package/types/plugins/clean-html/helpers/visitor/filters/convert-unsafe-embeds.d.ts +14 -0
  84. package/types/plugins/clean-html/helpers/visitor/filters/index.d.ts +4 -0
  85. package/types/plugins/clean-html/helpers/visitor/filters/safe-links-target.d.ts +14 -0
  86. package/types/plugins/clean-html/helpers/visitor/filters/sandbox-iframes-in-content.d.ts +14 -0
  87. package/types/plugins/clean-html/helpers/visitor/filters/sanitize-styles.d.ts +14 -0
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.10.3
4
+ * Version: v4.11.2
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
8
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(self,function(){var e={5266:function(e,t,i){"use strict";i.d(t,{Config:function(){return s}});var n=i(25045),o=i(81937);let r={};class s{static get defaultOptions(){return s.__defaultOptions||(s.__defaultOptions=new s),s.__defaultOptions}constructor(){(0,n._)(this,"cache",!0),(0,n._)(this,"defaultTimeout",100),(0,n._)(this,"namespace",""),(0,n._)(this,"safeMode",!1),(0,n._)(this,"width","auto"),(0,n._)(this,"height","auto"),(0,n._)(this,"safePluginsList",["about","enter","backspace","size","bold","hotkeys"]),(0,n._)(this,"commandToHotkeys",void 0),(0,n._)(this,"license",""),(0,n._)(this,"preset","custom"),(0,n._)(this,"presets",{inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}}),(0,n._)(this,"ownerDocument",o.globalDocument),(0,n._)(this,"ownerWindow",o.globalWindow),(0,n._)(this,"shadowRoot",null),(0,n._)(this,"zIndex",0),(0,n._)(this,"readonly",!1),(0,n._)(this,"disabled",!1),(0,n._)(this,"activeButtonsInReadOnly",["source","fullsize","print","about","dots","selectall"]),(0,n._)(this,"allowCommandsInReadOnly",["selectall","preview","print"]),(0,n._)(this,"toolbarButtonSize","middle"),(0,n._)(this,"allowTabNavigation",!1),(0,n._)(this,"inline",!1),(0,n._)(this,"theme","default"),(0,n._)(this,"saveModeInStorage",!1),(0,n._)(this,"editorClassName",!1),(0,n._)(this,"className",!1),(0,n._)(this,"style",!1),(0,n._)(this,"containerStyle",!1),(0,n._)(this,"styleValues",{}),(0,n._)(this,"triggerChangeEvent",!0),(0,n._)(this,"direction",""),(0,n._)(this,"language","auto"),(0,n._)(this,"debugLanguage",!1),(0,n._)(this,"i18n",!1),(0,n._)(this,"tabIndex",-1),(0,n._)(this,"toolbar",!0),(0,n._)(this,"statusbar",!0),(0,n._)(this,"showTooltip",!0),(0,n._)(this,"showTooltipDelay",200),(0,n._)(this,"useNativeTooltip",!1),(0,n._)(this,"defaultActionOnPaste",o.INSERT_AS_HTML),(0,n._)(this,"enter",o.PARAGRAPH),(0,n._)(this,"iframe",!1),(0,n._)(this,"editHTMLDocumentMode",!1),(0,n._)(this,"enterBlock","br"!==this.enter?this.enter:o.PARAGRAPH),(0,n._)(this,"defaultMode",o.MODE_WYSIWYG),(0,n._)(this,"useSplitMode",!1),(0,n._)(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"]}),(0,n._)(this,"colorPickerDefaultTab","background"),(0,n._)(this,"imageDefaultWidth",300),(0,n._)(this,"removeButtons",[]),(0,n._)(this,"disablePlugins",[]),(0,n._)(this,"extraPlugins",[]),(0,n._)(this,"basePath",void 0),(0,n._)(this,"extraButtons",[]),(0,n._)(this,"extraIcons",{}),(0,n._)(this,"createAttributes",{table:{style:"border-collapse:collapse;width: 100%;"}}),(0,n._)(this,"sizeLG",900),(0,n._)(this,"sizeMD",700),(0,n._)(this,"sizeSM",400),(0,n._)(this,"buttons",[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{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:[]}]),(0,n._)(this,"controls",void 0),(0,n._)(this,"events",{}),(0,n._)(this,"textIcons",!1),(0,n._)(this,"popupRoot",null),(0,n._)(this,"showBrowserColorPicker",!0),Object.assign(this,r)}}(0,n._)(s,"__defaultOptions",void 0),r=s.prototype,s.prototype.controls={}},24735:function(e,t,i){"use strict";i.d(t,{Async:function(){return f}});var n=i(25045),o=i(81937),r=i(61077),s=i(72068),a=i(91565),l=i(72412),u=i(62101),c=i(52100),d=i(85932),h=i(18303),p=i(28712),m=i(14228);class f{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let n={};(0,h.isVoid)(t)&&(t=0),(0,l.isNumber)(t)||(t=(n=t).timeout||0),n.label&&this.clearLabel(n.label);let o=(0,r.setTimeout)(e,t,...i),s=n.label||o;return this.timers.set(s,o),this.__callbacks.set(s,e),o}updateTimeout(e,t){if((0,p.assert)(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;let i=this.__callbacks.get(e);return(0,p.assert)((0,a.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,r.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,d.isString)(e))return this.clearLabel(e);(0,r.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let n=0,o=!1,l=[],d=(...t)=>{if(!o){n=0;let i=e(...t);if(o=!0,l.length){let e=()=>{l.forEach(e=>e()),l.length=0};(0,c.isPromise)(i)?i.finally(e):e()}}},h=(...s)=>{o=!1,t?(!n&&i&&d(...s),(0,r.clearTimeout)(n),n=this.setTimeout(()=>d(...s),(0,a.isFunction)(t)?t():t),this.timers.set(e,n)):d(...s)};return(0,u.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{l.push(e)}).catch(e=>{if((0,s.isAbortError)(e))return null;throw e});return h(...e),t}:h}microDebounce(e,t=!1){let i,n=!1,o=!0;return(...r)=>{if(i=r,n){o=!0;return}o=!0,t&&(o=!1,e(...i)),n=!0,this.__queueMicrotaskNative(()=>{n=!1,!this.isDestructed&&o&&e(...i)})}}throttle(e,t,i=!1){let n=null,o,r,s;return(...i)=>{(o=!0,s=i,t)?n||(r=()=>{o?(e(...s),o=!1,n=this.setTimeout(r,(0,a.isFunction)(t)?t():t),this.timers.set(r,n)):n=null})():e(...s)}}promise(e){let t=()=>{},i=new Promise((i,n)=>{t=()=>n((0,m.abort)("Abort async")),this.promisesRejections.add(t),e(i,n)});return!i.finally&&"u">typeof process&&!o.IS_ES_NEXT&&(i.finally=e=>(i.then(e).catch(e),i)),i.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),i.rejectCallback=t,i}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise(t=>{e.then(e=>(t("fulfilled"),e),e=>{throw t("rejected"),e}),this.setTimeout(()=>{t("pending")},100)});let t={};return Promise.race([e,t]).then(e=>e===t?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(e,t={timeout:100}){let i=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(i),i}requestIdlePromise(e){return this.promise(t=>{let i=this.requestIdleCallback(()=>t(i),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){let i=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>i.abort()),this.__controllers.add(i),void 0!==globalThis.scheduler){let n=globalThis.scheduler.postTask(e,{...t,signal:i.signal});return n.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),n}return this.promise((n,o)=>{let r=this.setTimeout(()=>{try{n(e())}catch(e){o(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(i),o((0,m.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}requestAnimationFrame(e){let t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}cancelAnimationFrame(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.__requestsIdle.forEach(e=>this.cancelIdleCallback(e)),this.__requestsRaf.forEach(e=>this.cancelAnimationFrame(e)),this.__controllers.forEach(e=>e.abort()),this.timers.forEach(e=>(0,r.clearTimeout)(this.timers.get(e))),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var e,t,i,o,r,s;(0,n._)(this,"timers",new Map),(0,n._)(this,"__callbacks",new Map),(0,n._)(this,"__queueMicrotaskNative",null!=(e=null==(o=queueMicrotask)?void 0:o.bind(window))?e:Promise.resolve().then.bind(Promise.resolve())),(0,n._)(this,"promisesRejections",new Set),(0,n._)(this,"__requestsIdle",new Set),(0,n._)(this,"__controllers",new Set),(0,n._)(this,"__requestsRaf",new Set),(0,n._)(this,"__requestIdleCallbackNative",null!=(t=null==(r=window.requestIdleCallback)?void 0:r.bind(window))?t:(e,t)=>{var i;let n=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-n))})},null!=(i=null==t?void 0:t.timeout)?i:1)}),(0,n._)(this,"__cancelIdleCallbackNative",null!=(i=null==(s=window.cancelIdleCallback)?void 0:s.bind(window))?i:e=>{this.clearTimeout(e)}),(0,n._)(this,"isDestructed",!1)}}},91231:function(e,t,i){"use strict";i.d(t,{Async:function(){return n.Async}});var n=i(24735)},80251:function(e,t,i){"use strict";i.d(t,{Component:function(){return u}});var n=i(25045),o=i(91231),r=i(69364),s=i(28077),a=i(65946);let l=new Map;class u{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(e,t,i){let n=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),n.push(`__${e}`)),t&&(n.push("_",t),n.push("_",(0,a.isVoid)(i)?"true":i.toString())),n.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,a.get)(e,t||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(e){return e.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(e){this.setStatus(e)}setStatus(e){return this.setStatusComponent(e,this)}setStatusComponent(e,t){if(e===this.__componentStatus)return;t===this&&(this.__componentStatus=e);let i=Object.getPrototypeOf(this);i&&(0,a.isFunction)(i.setStatusComponent)&&i.setStatusComponent(e,t);let n=l.get(this),o=null==n?void 0:n[e];o&&o.length&&o.forEach(e=>e(t))}hookStatus(e,t){let i=l.get(this);i||(i={},l.set(this,i)),i[e]||(i[e]=[]),i[e].push(t)}static isInstanceOf(e,t){return e instanceof t}constructor(){(0,n._)(this,"__componentName",void 0),(0,n._)(this,"async",new o.Async),(0,n._)(this,"uid",void 0),(0,n._)(this,"ownerWindow",window),(0,n._)(this,"__componentStatus",r.STATUSES.beforeInit),this.uid="jodit-uid-"+(0,s.uniqueUid)()}}(0,n._)(u,"STATUSES",r.STATUSES)},16964:function(e,t,i){"use strict";i.d(t,{Component:function(){return n.Component},STATUSES:function(){return o.STATUSES},ViewComponent:function(){return r.ViewComponent}});var n=i(80251),o=i(69364),r=i(59609)},69364:function(e,t,i){"use strict";i.d(t,{STATUSES:function(){return n}});let n={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},59609:function(e,t,i){"use strict";i.d(t,{ViewComponent:function(){return r}});var n=i(25045),o=i(80251);class r extends o.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(e){super(),(0,n._)(this,"jodit",void 0),this.setParentView(e)}}},81937:function(e,t,i){"use strict";i.r(t),i.d(t,{ACCURACY:function(){return V},APP_VERSION:function(){return n},BASE_PATH:function(){return eh},BASE_PATH_IS_MIN:function(){return ep},BR:function(){return W},CLIPBOARD_ID:function(){return eg},COMMAND_KEYS:function(){return U},EMULATE_DBLCLICK_TIMEOUT:function(){return et},ES:function(){return o},FAT_MODE:function(){return u},HOMEPAGE:function(){return c},INSEPARABLE_TAGS:function(){return T},INSERT_AS_HTML:function(){return ei},INSERT_AS_TEXT:function(){return eo},INSERT_CLEAR_HTML:function(){return en},INSERT_ONLY_TEXT:function(){return er},INVISIBLE_SPACE:function(){return p},INVISIBLE_SPACE_REG_EXP:function(){return f},INVISIBLE_SPACE_REG_EXP_END:function(){return g},INVISIBLE_SPACE_REG_EXP_START:function(){return v},IS_BLOCK:function(){return C},IS_ES_MODERN:function(){return r},IS_ES_NEXT:function(){return s},IS_IE:function(){return X},IS_INLINE:function(){return k},IS_MAC:function(){return ea},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return el},KEY_ALT:function(){return P},KEY_BACKSPACE:function(){return z},KEY_DELETE:function(){return q},KEY_DOWN:function(){return B},KEY_ENTER:function(){return L},KEY_ESC:function(){return A},KEY_F3:function(){return F},KEY_LEFT:function(){return M},KEY_META:function(){return D},KEY_RIGHT:function(){return N},KEY_SPACE:function(){return O},KEY_TAB:function(){return j},KEY_UP:function(){return R},LIST_TAGS:function(){return E},MARKER_CLASS:function(){return ee},MODE_SOURCE:function(){return K},MODE_SPLIT:function(){return G},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return m},NEARBY:function(){return H},NO_EMPTY_TAGS:function(){return x},PARAGRAPH:function(){return $},PASSIVE_EVENTS:function(){return e_},SAFE_COUNT_CHANGE_CALL:function(){return es},SET_TEST:function(){return d},SOURCE_CONSUMER:function(){return ev},SPACE_REG_EXP:function(){return _},SPACE_REG_EXP_END:function(){return y},SPACE_REG_EXP_START:function(){return b},TEMP_ATTR:function(){return em},TEXT_HTML:function(){return Z},TEXT_PLAIN:function(){return J},TEXT_RTF:function(){return Q},TOKENS:function(){return h},globalDocument:function(){return w},globalWindow:function(){return S},lang:function(){return ef}});let n="4.10.3",o="es2018",r=!0,s=!1,a=!0,l=!1,u=!0,c="https://xdsoft.net/jodit/",d=()=>l=!0,h={},p="\uFEFF",m="\xa0",f=()=>/[\uFEFF]/g,g=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,_=()=>/[\s\n\t\r\uFEFF\u200b]+/g,b=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,S="u">typeof window?window:void 0,w="u">typeof document?document:void 0,C=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,k=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,E=new Set(["ul","ol"]),I=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],T=new Set([...I,"br","hr"]),x=new Set(I),D="Meta",z="Backspace",j="Tab",L="Enter",A="Escape",P="Alt",M="ArrowLeft",R="ArrowUp",N="ArrowRight",B="ArrowDown",O="Space",q="Delete",F="F3",H=5,V=10,U=[D,z,q,R,B,N,M,L,A,F,j],W="br",$="p",Y=1,K=2,G=3,X="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),J=X?"text":"text/plain",Z=X?"html":"text/html",Q=X?"rtf":"text/rtf",ee="jodit-selection_marker",et=300,ei="insert_as_html",en="insert_clear_html",eo="insert_as_text",er="insert_only_text",es=10,ea=void 0!==S&&/Mac|iPod|iPhone|iPad/.test(S.navigator.platform),el={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ea?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},eu=e=>{let t=e.split("/");return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:!0}:{basePath:e,isMin:!0}},{basePath:ec,isMin:ed}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=w.currentScript;if(e)return eu(e.src);let t=w.querySelectorAll("script[src]");return t&&t.length?eu(t[t.length-1].src):eu(S.location.href)})(),eh=ec,ep=ed,em="data-jodit-temp",ef={},eg="clipboard",ev="source-consumer",e_=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},76517:function(e,t,i){"use strict";i.d(t,{Create:function(){return l}});var n=i(25045),o=i(81937),r=i(23211),s=i(65946),a=i(28712);class l{get doc(){return(0,s.isFunction)(this.document)?this.document():this.document}element(e,t,i){let n=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(n),t&&((0,s.isPlainObject)(t)?(0,s.attr)(n,t):i=t),i&&(0,s.asArray)(i).forEach(e=>n.appendChild((0,s.isString)(e)?this.fromHTML(e):e)),n}div(e,t,i){let n=this.element("div",t,i);return e&&(n.className=e),n}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(t);let i=null==(e=t.contentWindow)?void 0:e.document;if((0,a.assert)(i,"iframe.contentWindow.document"),!i)throw Error("Iframe error");return i.open(),i.write("<!DOCTYPE html><html><head></head><body></body></html>"),i.close(),[i.body,t]}span(e,t,i){let n=this.element("span",t,i);return e&&(n.className=e),n}a(e,t,i){let n=this.element("a",t,i);return e&&(n.className=e),n}text(e){return this.doc.createTextNode(e)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let i=this.div();i.innerHTML=e.toString();let n=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(r.Dom.safeRemove(n),t){let e=(0,s.refs)(n);Object.keys(t).forEach(i=>{let n=e[i];n&&!1===t[i]&&r.Dom.hide(n)})}return n}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let i=t[e.tagName.toLowerCase()];(0,s.isFunction)(i)?i(e):(0,s.isPlainObject)(i)&&(0,s.attr)(e,i)}}}constructor(e,t){(0,n._)(this,"document",void 0),(0,n._)(this,"createAttributes",void 0),this.document=e,this.createAttributes=t}}},79821:function(e,t,i){"use strict";i.d(t,{Create:function(){return n.Create}});var n=i(76517)},49574:function(e,t,i){"use strict";i.d(t,{autobind:function(){return o}});var n=i(91565);function o(e,t,i){if(!(0,n.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let o=i.value;return{configurable:!0,get(){let e=o.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},51676:function(e,t,i){"use strict";i.d(t,{cache:function(){return l},cacheHTML:function(){return u},cached:function(){return a}});var n=i(69364),o=i(23211),r=i(28686),s=i(38027);function a(e,t){let i=Object.getOwnPropertyDescriptor(e,t);return!i||(0,r.isFunction)(i.get)?null:i.value}function l(e,t,i){let n=i.get;if(!n)throw(0,s.error)("Getter property descriptor expected");i.get=function(){let e=n.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}function u(e,t,i){let a=i.value;if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");let l=!0,u=new WeakMap;i.value=function(...e){if(l&&u.has(this.constructor)){var t;return null==(t=u.get(this.constructor))?void 0:t.cloneNode(!0)}let i=a.apply(this,e);return l&&o.Dom.isElement(i)&&u.set(this.constructor,i),l?i.cloneNode(!0):i},e.hookStatus(n.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},91672:function(e,t,i){"use strict";i.d(t,{component:function(){return s},getComponentClass:function(){return a}});var n=i(81937),o=i(421);let r=new Map;function s(e){class t extends e{constructor(...e){super(...e),this.constructor===t&&(this instanceof t||Object.setPrototypeOf(this,t.prototype),this.setStatus("ready"))}}let i=(0,o.getClassName)(e.prototype);if(r.has(i)&&!n.IS_PROD)throw Error(`Component with name "${i}" is already registered`);return r.set(i,t),t}function a(e){return r.get(e)}},55184:function(e,t,i){"use strict";i.d(t,{debounce:function(){return a},throttle:function(){return l}});var n=i(16964),o=i(28686),r=i(28712),s=i(33201);function a(e,t=!1,i="debounce"){return(a,l)=>{let u=a[l];if(!(0,o.isFunction)(u))throw(0,s.error)("Handler must be a Function");return a.hookStatus(n.STATUSES.ready,n=>{let{async:s}=n;(0,r.assert)(null!=s,`Component ${n.componentName||n.constructor.name} should have "async:IAsync" field`);let a=(0,o.isFunction)(e)?e(n):e,u=(0,o.isNumber)(a)||(0,o.isPlainObject)(a)?a:n.defaultTimeout;Object.defineProperty(n,l,{configurable:!0,value:s[i](n[l].bind(n),u,t)})}),{configurable:!0,get(){return u.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},24968:function(e,t,i){"use strict";i.d(t,{derive:function(){return o}});var n=i(91565);function o(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let o=e[t],r=Object.getOwnPropertyNames(o.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(o.prototype,t);null!=s&&(0,n.isFunction)(s.value)&&!(0,n.isFunction)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return s.value.call(this,...e)}})}}}}},29200:function(e,t,i){"use strict";i.d(t,{hook:function(){return r}});var n=i(91565),o=i(33201);function r(e){return(t,i)=>{if(!(0,n.isFunction)(t[i]))throw(0,o.error)("Handler must be a Function");t.hookStatus(e,e=>{e[i].call(e)})}}},35718:function(e,t,i){"use strict";i.d(t,{idle:function(){return s}});var n=i(16964),o=i(91565),r=i(33201);function s(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(n.STATUSES.ready,e=>{let{async:i}=e,n=e[t];e[t]=(...t)=>i.requestIdleCallback(n.bind(e,...t))})}}},84839:function(e,t,i){"use strict";i.r(t),i.d(t,{autobind:function(){return n.autobind},cache:function(){return o.cache},cacheHTML:function(){return o.cacheHTML},cached:function(){return o.cached},component:function(){return r.component},debounce:function(){return s.debounce},derive:function(){return a.derive},getComponentClass:function(){return r.getComponentClass},hook:function(){return l.hook},idle:function(){return u.idle},nonenumerable:function(){return c.nonenumerable},persistent:function(){return d.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return p.watch}});var n=i(49574),o=i(51676),r=i(91672),s=i(55184),a=i(24968),l=i(29200),u=i(35718),c=i(41360),d=i(77036),h=i(80840),p=i(68616)},41360:function(e,t,i){"use strict";i.d(t,{nonenumerable:function(){return n}});let n=(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})}},77036:function(e,t,i){"use strict";i.d(t,{persistent:function(){return r}});var n=i(69364),o=i(31534);function r(e,t){e.hookStatus(n.STATUSES.ready,e=>{let i=(0,o.isViewObject)(e)?e:e.jodit,n=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=i.storage.get(n))?e:r},set(e){i.storage.set(n,e)}})})}},80840:function(e,t,i){"use strict";i.d(t,{wait:function(){return s}});var n=i(69364),o=i(91565),r=i(33201);function s(e){return(t,i)=>{let s=t[i];if(!(0,o.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(n.STATUSES.ready,t=>{let{async:n}=t,o=t[i],r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...s){n.clearTimeout(r),e(t)?o.apply(t,s):r=n.setTimeout(()=>i(...s),10)}})})}}},68616:function(e,t,i){"use strict";i.d(t,{watch:function(){return d}});var n=i(69364),o=i(70535),r=i(32328),s=i(91565),a=i(62101),l=i(31534),u=i(33201),c=i(71125);function d(e,t){return(i,d)=>{var h;if(!(0,s.isFunction)(i[d]))throw(0,u.error)("Handler must be a Function");let p=null==(h=null==t?void 0:t.immediately)||h,m=null==t?void 0:t.context,f=t=>{let n=(0,l.isViewObject)(t)?t:t.jodit,u=(e,...i)=>{if(!t.isInDestruct)return t[d](e,...i)};p||(u=t.async.microDebounce(u,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,o]=e.split(":"),r=m;i.length&&(r=t.get(i)),(0,s.isFunction)(r)&&(r=r(t)),n.events.on(r||t,o,u),r||n.events.on(o,u),t.hookStatus("beforeDestruct",()=>{n.events.off(r||t,o,u).off(o,u)});return}let r=e.split("."),[l]=r,d=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,o.observable)(h).on(`change.${d.join(".")}`,u);let p=(0,c.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=h;i!==e&&(h=e,p&&p.set&&p.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,o.observable)(h)).on(`change.${d.join(".")}`,u),u(l,i,h))},get(){return p&&p.get?p.get.call(t):h}})})};(0,s.isFunction)(i.hookStatus)?i.hookStatus(n.STATUSES.ready,f):f(i)}}},23211:function(e,t,i){"use strict";i.d(t,{Dom:function(){return _}});var n=i(81937),o=i(88475),r=i(17312),s=i(91565),a=i(46248),l=i(3213),u=i(85932),c=i(18303),d=i(4040),h=i(28712),p=i(7909),m=i(80991),f=i(36400),g=i(33201),v=i(71125);class _{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let n,o=e;i.s.save();let r=!1;do r=!1,(n=o.nextSibling)&&!_.isBlock(n)&&!_.isTag(n,"br")&&(r=!0,o=n);while(r);return _.__wrapElements(t,i,e,o)}static __wrapElements(e,t,i,n){let o=(0,u.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(o,i);let r=i;for(;r&&(r=i.nextSibling,o.appendChild(i),i!==n&&r);)i=r;return t.s.restore(),o}static wrapInline(e,t,i){let n,o=e,r=e;i.s.save();let s=!1;do s=!1,(n=o.previousSibling)&&!_.isBlock(n)&&(s=!0,o=n);while(s);do s=!1,(n=r.nextSibling)&&!_.isBlock(n)&&(s=!0,r=n);while(s);return _.__wrapElements(t,i,o,r)}static wrap(e,t,i){let n=(0,u.isString)(t)?i.element(t):t;if(_.isNode(e)){if(!e.parentNode)throw(0,g.error)("Element should be in DOM");e.parentNode.insertBefore(n,e),n.appendChild(e)}else{let t=e.extractContents();e.insertNode(n),n.appendChild(t)}return n}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);_.safeRemove(e)}}static between(e,t,i){let n=e;for(;n&&n!==t&&!(e!==n&&i(n));){let e=n.firstChild||n.nextSibling;if(!e){for(;n&&!n.nextSibling;)n=n.parentNode;e=null==n?void 0:n.nextSibling}n=e}}static replace(e,t,i,n=!1,r=!1){let s;if((0,a.isHTML)(t)&&((0,h.assert)(i,"Need create instance for new tag"),t=i.fromHTML(t)),(0,u.isString)(t)?((0,h.assert)(i,"Need create instance for new tag"),s=i.element(t)):s=t,!r)for(;e.firstChild;)s.appendChild(e.firstChild);return n&&_.isElement(e)&&_.isElement(s)&&(0,o.toArray)(e.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(s,e),s}static isEmptyTextNode(e){return _.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return _.each(e,e=>_.isEmptyTextNode(e))}static isContentEditable(e,t){return _.isNode(e)&&!_.closest(e,e=>_.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=n.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let o=e=>null==e.nodeValue||0===(0,d.trim)(e.nodeValue).length;return _.isText(e)?o(e):!(_.isElement(e)&&i(e))&&_.each(e,e=>{if(_.isText(e)&&!o(e)||_.isElement(e)&&i(e))return!1})}static isNode(e){return!!(e&&(0,u.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,s.isFunction)(e.appendChild))}static isCell(e){return _.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return _.isTag(e,n.LIST_TAGS)}static isLeaf(e){return _.isTag(e,"li")}static isImage(e){return _.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,c.isVoid)(e)&&"object"==typeof e&&_.isNode(e)&&n.IS_BLOCK.test(e.nodeName)}static isText(e){return!!(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return!!(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){var t;return!!_.isNode(e)&&!!((null==(t=e.ownerDocument)?void 0:t.defaultView)&&e.nodeType===Node.ELEMENT_NODE)}static isFragment(e){var t;return!!_.isNode(e)&&!!((null==(t=e.ownerDocument)?void 0:t.defaultView)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(e){var t;if(!_.isNode(e))return!1;let i=null==(t=e.ownerDocument)?void 0:t.defaultView;return!!(i&&e instanceof i.HTMLElement)}static isInlineBlock(e){return _.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,m.css)(e,"display").toString())}static canSplitBlock(e){return!(0,c.isVoid)(e)&&_.isHTMLElement(e)&&_.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static last(e,t){let i=null==e?void 0:e.lastChild;if(!i)return null;do{if(t(i))return i;let n=i.lastChild;if(n||(n=i.previousSibling),!n&&i.parentNode!==e){do i=i.parentNode;while(i&&!(null==i?void 0:i.previousSibling)&&i.parentNode!==e);n=null==i?void 0:i.previousSibling}i=n}while(i);return null}static prev(e,t,i,n=!0){return _.find(e,t,i,!1,n)}static next(e,t,i,n=!0){return _.find(e,t,i,!0,n)}static prevWithClass(e,t){return _.prev(e,e=>_.isElement(e)&&e.classList.contains(t),e.parentNode)}static nextWithClass(e,t){return _.next(e,e=>_.isElement(e)&&e.classList.contains(t),e.parentNode)}static find(e,t,i,n=!0,o=!0){let r=this.nextGen(e,i,n,o),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,i=!0,n=!0){let o=[],r=e;do{let t=i?r.nextSibling:r.previousSibling;for(;t;)o.unshift(t),t=i?t.nextSibling:t.previousSibling;yield*this.runInStack(e,o,i,n),r=r.parentNode}while(r&&r!==t);return null}static each(e,t,i=!0){let n=this.eachGen(e,i),o=n.next();for(;!o.done;){if(!1===t(o.value))return!1;o=n.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,n=!0){for(;t.length;){let o=t.pop();if(n){let e=i?o.lastChild:o.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==o&&(yield o)}}static findWithCurrent(e,t,i,n="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){let e=_.findWithCurrent(r[o],t,r,n,o);if(e)return e}for(;r&&!r[n]&&r!==i;)r=r.parentNode;r&&r[n]&&r!==i&&(r=r[n])}while(r&&r!==i);return null}static findSibling(e,t=!0,i=e=>!_.isEmptyTextNode(e)){let n=_.sibling(e,t);for(;n&&!i(n);)n=_.sibling(n,t);return n&&i(n)?n:null}static findNotEmptySibling(e,t){return _.findSibling(e,t,e=>{var t;return!_.isEmptyTextNode(e)&&!!(!_.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,d.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,i){return(0,v.call)(t?_.prev:_.next,e,e=>!!(e&&(!(_.isText(e)||_.isComment(e))||(0,d.trim)((null==e?void 0:e.nodeValue)||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,n=!1){let o=e;if(!o)return null;do{if(t(o))return o;if(o===i||!o.parentNode)break;o=o.parentNode}while(o&&o!==i);return o===i&&n&&t(o)?o:null}static closest(e,t,i){let n,o=e=>e.toLowerCase();if((0,s.isFunction)(t))n=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(o));n=t=>!!(t&&e.has(o(t.nodeName)))}else n=e=>!!(e&&o(t)===o(e.nodeName));return _.up(e,n,i)}static furthest(e,t,i){let n=null,o=null==e?void 0:e.parentElement;for(;o&&o!==i;)t(o)&&(n=o),o=null==o?void 0:o.parentElement;return n}static appendChildFirst(e,t){let i=e.firstChild;i?i!==t&&e.insertBefore(t,i):e.appendChild(t)}static after(e,t){let{parentNode:i}=e;i&&(i.lastChild===e?i.appendChild(t):i.insertBefore(t,e.nextSibling))}static before(e,t){let{parentNode:i}=e;i&&i.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,r.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,i=!1,r=()=>!0){let s=(e.ownerDocument||n.globalDocument).createDocumentFragment();(0,o.toArray)(e.childNodes).filter(e=>!!r(e)||(_.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),i&&t.firstChild?t.insertBefore(s,t.firstChild):t.appendChild(s)}static isOrContains(e,t,i=!1){return e===t?!i:!!(t&&e&&this.up(t,t=>t===e,e,!0))}static safeRemove(...e){e.forEach(e=>_.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=_.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&_.isTag(e.startContainer,n.INSEPARABLE_TAGS)?_.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>_.isText(e)&&!e.nodeValue&&_.safeRemove(e))}static hide(e){e&&((0,f.dataBind)(e,"__old_display",e.style.display),e.style.display="none")}static show(e){if(!e)return;let t=(0,f.dataBind)(e,"__old_display");"none"===e.style.display&&(e.style.display=t||"")}static isTag(e,t){if(!this.isElement(e))return!1;let i=e.tagName.toLowerCase(),n=e.tagName.toUpperCase();if(t instanceof Set)return t.has(i)||t.has(n);if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");return i===t||n===t}static markTemporary(e,t){return t&&(0,p.attr)(e,t),(0,p.attr)(e,n.TEMP_ATTR,!0),e}static isTemporary(e){return!!_.isElement(e)&&(_.isMarker(e)||"true"===(0,p.attr)(e,n.TEMP_ATTR))}static isMarker(e){return _.isNode(e)&&_.isTag(e,"span")&&e.hasAttribute("data-"+n.MARKER_CLASS)}static replaceTemporaryFromString(e){return e.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(e){return(0,o.toArray)(e.querySelectorAll(`[${n.TEMP_ATTR}]`))}constructor(){throw Error("Dom is static module")}}},27795:function(e,t,i){"use strict";i.d(t,{Dom:function(){return n.Dom},LazyWalker:function(){return o.LazyWalker}});var n=i(23211),o=i(1080)},1080:function(e,t,i){"use strict";i.d(t,{LazyWalker:function(){return l}});var n=i(25045),o=i(31635),r=i(49574),s=i(23211),a=i(60216);class l extends a.Eventify{setWork(e){return this.isWorked&&this.break(),this.workNodes=s.Dom.eachGen(e,!this.options.reverse),this.isFinished=!1,this._requestStarting(),this}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(()=>null)}break(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){super.destruct(),this.stop()}__workPerform(){if(this.workNodes){var e;this.isWorked=!0;let t=0,i=null!=(e=this.options.timeoutChunkSize)?e:50;for(;!this.isFinished&&t<=i;){let e=this.workNodes.next();if(t+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(e){var t;return!!e&&(void 0===this.options.whatToShow||e.nodeType===this.options.whatToShow)&&null!=(t=this.emit("visit",e))&&t}constructor(e,t={}){super(),(0,n._)(this,"async",void 0),(0,n._)(this,"options",void 0),(0,n._)(this,"workNodes",void 0),(0,n._)(this,"hadAffect",void 0),(0,n._)(this,"isWorked",void 0),(0,n._)(this,"isFinished",void 0),(0,n._)(this,"idleId",void 0),(0,n._)(this,"__schedulerController",void 0),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0,this.__schedulerController=null}}(0,o.__decorate)([r.autobind],l.prototype,"__workPerform",null)},93747:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return d}});var n=i(25045),o=i(81937),r=i(32328),s=i(17312),a=i(91565),l=i(85932),u=i(33201),c=i(18869);class d{mute(e){return this.__mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}__eachEvent(e,t){(0,r.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),n=i[1]||c.defaultNameSpace;t.call(this,i[0],n)})}__getStore(e){if(!e)throw(0,u.error)("Need subject");if(void 0===e[this.__key]){let t=new c.EventHandlersStore;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}__removeStoreFromSubject(e){void 0!==e[this.__key]&&Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(e,t){let i=this.__doc.createEvent("HTMLEvents");(0,l.isString)(t)?i.initEvent(t,!0,!0):(i.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(i,e,{value:t[e],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(e,t,i,n){let r,c,d,p;if((0,l.isString)(e)||(0,l.isStringArray)(e)?(r=this,c=e,d=t,p=i):(r=e,c=t,d=i,p=n),!((0,l.isString)(c)||(0,l.isStringArray)(c))||0===c.length)throw(0,u.error)("Need events names");if(!(0,a.isFunction)(d))throw(0,u.error)("Need event handler");if((0,s.isArray)(r))return r.forEach(e=>{this.on(e,c,d,p)}),this;let m=r,f=this.__getStore(m),g=this,v=function(e,...t){if(!g.isMuted(e))return d&&d.call(this,...t)};return h(m)&&(v=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),d&&!1===d.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(c,(e,t)=>{if(0===e.length)throw(0,u.error)("Need event name");if(!1===f.indexOf(e,t,d)){let r={event:e,originalCallback:d,syntheticCallback:v};if(f.set(e,t,r,null==p?void 0:p.top),h(m)){var i,n;let t=o.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(i=null==p?void 0:p.capture)&&i}:null!=(n=null==p?void 0:p.capture)&&n;v.options=t,m.addEventListener(e,v,t),this.__memoryDOMSubjectToHandler(m,v)}}}),this}__memoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap.get(e)||new Set;i.add(t),this.__domEventsMap.set(e,i)}__unmemoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap,n=i.get(e)||new Set;n.delete(t),n.size?i.set(e,n):i.delete(e)}one(e,t,i,n){let o,r,s,a;(0,l.isString)(e)||(0,l.isStringArray)(e)?(o=this,r=e,s=t,a=i):(o=e,r=t,s=i,a=n);let u=(...e)=>(this.off(o,r,u),s(...e));return this.on(o,r,u,a),this}off(e,t,i){let n,o,r;if((0,l.isString)(e)||(0,l.isStringArray)(e)?(n=this,o=e,r=t):(n=e,o=t,r=i),(0,s.isArray)(n))return n.forEach(e=>{this.off(e,o,r)}),this;let u=n,d=this.__getStore(u);if(!((0,l.isString)(o)||(0,l.isStringArray)(o))||0===o.length)return d.namespaces().forEach(e=>{this.off(u,"."+e)}),this.__removeStoreFromSubject(u),this;let p=e=>{if(h(u)){var t;u.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(u,e.syntheticCallback)}},m=(e,t)=>{if(""===e)return void d.events(t).forEach(e=>{""!==e&&m(e,t)});let i=d.get(e,t);if(i&&i.length)if((0,a.isFunction)(r)){let n=d.indexOf(e,t,r);!1!==n&&(p(i[n]),i.splice(n,1),i.length||d.clearEvents(t,e))}else i.forEach(p),i.length=0,d.clearEvents(t,e)};return this.__eachEvent(o,(e,t)=>{t===c.defaultNameSpace?d.namespaces().forEach(t=>{m(e,t)}):m(e,t)}),d.isEmpty()&&this.__removeStoreFromSubject(u),this}stopPropagation(e,t){let i=(0,l.isString)(e)?this:e,n=(0,l.isString)(e)?e:t;if("string"!=typeof n)throw(0,u.error)("Need event names");let o=this.__getStore(i);this.__eachEvent(n,(e,t)=>{let n=o.get(e,t);n&&this.__stopped.push(n),t===c.defaultNameSpace&&o.namespaces(!0).forEach(t=>this.stopPropagation(i,e+"."+t))})}__removeStop(e){if(e){let t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}__isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...i){let n,o,r=(0,l.isString)(e)?this:e,s=(0,l.isString)(e)?e:t,a=(0,l.isString)(e)?[t,...i]:i;if(!h(r)&&!(0,l.isString)(s))throw(0,u.error)("Need events names");let d=this.__getStore(r);return!(0,l.isString)(s)&&h(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(h(r))this.__triggerNativeEvent(r,e);else{let i=d.get(e,t);if(i)try{[...i].every(t=>!this.__isStopped(i)&&(this.currents.push(e),o=t.syntheticCallback.call(r,e,...a),this.currents.pop(),void 0!==o&&(n=o),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||h(r)||d.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...a]);void 0!==i&&(n=i)})}}),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((e,t)=>{this.off(t)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(e){(0,n._)(this,"__domEventsMap",new Map),(0,n._)(this,"__mutedEvents",new Set),(0,n._)(this,"__key","__JoditEventEmitterNamespaces"),(0,n._)(this,"__doc",o.globalDocument),(0,n._)(this,"__prepareEvent",e=>{!e.cancelBubble&&(e.composed&&(0,a.isFunction)(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))}),(0,n._)(this,"currents",[]),(0,n._)(this,"__stopped",[]),(0,n._)(this,"__isDestructed",!1),e&&(this.__doc=e),this.__key+=new Date().getTime()}}function h(e){return(0,a.isFunction)(e.addEventListener)}},60216:function(e,t,i){"use strict";i.d(t,{Eventify:function(){return o}});var n=i(25045);class o{on(e,t){var i;return this.__map.has(e)||this.__map.set(e,new Set),null==(i=this.__map.get(e))||i.add(t),this}off(e,t){if(this.__map.has(e)){var i;null==(i=this.__map.get(e))||i.delete(t)}return this}destruct(){this.__map.clear()}emit(e,...t){let i;if(this.__map.has(e)){var n;null==(n=this.__map.get(e))||n.forEach(e=>{i=e(...t)})}return i}constructor(){(0,n._)(this,"__map",new Map)}}},42689:function(e,t,i){"use strict";i.d(t,{eventEmitter:function(){return n}});let n=new(i(93747)).EventEmitter},1496:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return n.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return o.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var n=i(93747),o=i(60216),r=i(70535),s=i(18869)},70535:function(e,t,i){"use strict";i.d(t,{observable:function(){return u}});var n=i(17312),o=i(94013),r=i(62101),s=i(71125);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function u(e){if(l(e))return e;let t={},i={},u=(t,o)=>((0,n.isArray)(t)?t.map(e=>u(e,o)):(i[t]||(i[t]=[]),i[t].push(o)),e),c=(o,...r)=>{if((0,n.isArray)(o))return void o.map(e=>c(e,...r));try{!t[o]&&i[o]&&(t[o]=!0,i[o].forEach(t=>t.call(e,...r)))}finally{t[o]=!1}},d=(t,i=[])=>{let n={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);n[a]=t[a];let u=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set:t=>{let i=n[a];if(!(0,o.isFastEqual)(n[a],t)){c(["beforeChange",`beforeChange.${l.join(".")}`],a,t),(0,r.isPlainObject)(t)&&d(t,l),u&&u.set?u.set.call(e,t):n[a]=t;let o=[];c(["change",...l.reduce((e,t)=>(o.push(t),e.push(`change.${o.join(".")}`),e),[])],l.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>u&&u.get?u.get.call(e):n[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(n[a])&&d(n[a],l)}),Object.defineProperty(e,"on",{value:u}))};return d(e),e}},18869:function(e,t,i){"use strict";i.d(t,{EventHandlersStore:function(){return a},defaultNameSpace:function(){return s}});var n=i(25045),o=i(88475),r=i(28712);let s="JoditEventDefaultNamespace";class a{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,r.assert)(i,"-"),i[e]}}indexOf(e,t,i){let n=this.get(e,t);if(n){for(let e=0;e<n.length;e+=1)if(n[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,o.toArray)(this.__store.keys());return e?t.filter(e=>e!==s):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,n=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),n?o[e].unshift(i):o[e].push(i)}clear(){this.__store.clear()}clearEvents(e,t){let i=this.__store.get(e);i&&i[t]&&(delete i[t],Object.keys(i).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}constructor(){(0,n._)(this,"__store",new Map)}}},28077:function(e,t,i){"use strict";i.d(t,{eventEmitter:function(){return C},extendLang:function(){return b},getContainer:function(){return S},getPopupViewRoot:function(){return w},instances:function(){return p},modules:function(){return _},pluginSystem:function(){return v},uniqueUid:function(){return g}});var n=i(24497),o=i(85932),r=i(31534),s=i(74264),a=i(80991),l=i(421),u=i(85305),c=i(42689),d=i(81937),h=i(27795);let p={},m=1,f=new Set;function g(){function e(){return Math.round(m+=10*(Math.random()+1)).toString(16)}let t=e();for(;f.has(t);)t=e();return f.add(t),t}let v=new u.PluginSystem({getContainer:S}),_={},b=e=>{Object.keys(e).forEach(t=>{d.lang[t]?Object.assign(d.lang[t],e[t]):d.lang[t]=e[t]})},y=new WeakMap;function S(e,t,i="div",a=!1){let u=(0,o.isString)(t)?t:t?(0,l.getClassName)(t.prototype):"jodit-utils",c=y.get(e)||{},d=u+i,p=(0,r.isViewObject)(e)?e:e.j,m=null;if(!c[d]){let t=p.c;if(m=w(p.o,p.container,e.od.body),a&&(0,n.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let o="style"===i?e.ed.head:e.ed.body;m=(0,n.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}let o=t.element(i,{className:`jodit jodit-${(0,s.kebabCase)(u)}-container jodit-box`});o.classList.add(`jodit_theme_${p.o.theme||"default"}`),m.appendChild(o),c[d]=o,e.hookStatus("beforeDestruct",()=>{p.events.off(o),h.Dom.safeRemove(o),delete c[d],Object.keys(c).length&&y.delete(e)}),y.set(e,c),p.events.fire("getContainer",o)}return c[d].classList.remove("jodit_theme_default","jodit_theme_dark"),c[d].classList.add(`jodit_theme_${p.o.theme||"default"}`),c[d]}function w(e,t,i){var n,o,r;return null!=(n=null!=(o=null!=(r=e.popupRoot)?r:e.shadowRoot)?o:h.Dom.closest(t,e=>h.Dom.isHTMLElement(e)&&(h.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,a.css)(e,"position"))),i))?n:i}let C=c.eventEmitter},78982:function(e,t,i){"use strict";i.d(t,{asArray:function(){return o}});var n=i(17312);let o=e=>(0,n.isArray)(e)?e:[e]},45664:function(e,t,i){"use strict";i.d(t,{asArray:function(){return n.asArray},splitArray:function(){return o.splitArray},toArray:function(){return r.toArray}});var n=i(78982),o=i(32328),r=i(88475)},32328:function(e,t,i){"use strict";function n(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}i.d(t,{splitArray:function(){return n}})},88475:function(e,t,i){"use strict";i.d(t,{toArray:function(){return r}});var n=i(23283),o=i(43379);let r=function(...e){var t;return((0,n.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,o.reset)("Array.from"))?t:Array.from).apply(Array,e)}},61077:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return n.clearTimeout},setTimeout:function(){return n.setTimeout}});var n=i(79947)},79947:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return r},setTimeout:function(){return o}});var n=i(81937);function o(e,t,...i){return t?n.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function r(e){n.globalWindow.clearTimeout(e)}},98740:function(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:function(){return o}});var n=i(81937);function o(){let e=!0;try{let t=n.globalDocument.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}},28686:function(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return d.hasContainer},isAbortError:function(){return o.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return d.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return u.isHTML},isHtmlFromWord:function(){return c.isHtmlFromWord},isInitable:function(){return d.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return p.isJoditObject},isLicense:function(){return m.isLicense},isMarker:function(){return f.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return v.isNumber},isNumeric:function(){return _.isNumeric},isPlainObject:function(){return b.isPlainObject},isPromise:function(){return y.isPromise},isSet:function(){return S.isSet},isString:function(){return w.isString},isStringArray:function(){return w.isStringArray},isURL:function(){return C.isURL},isValidName:function(){return k.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return I.isVoid},isWindow:function(){return T.isWindow}});var n=i(98740),o=i(72068),r=i(17312),s=i(22289),a=i(94013),l=i(91565),u=i(46248),c=i(82166),d=i(52433),h=i(99732),p=i(24497),m=i(44998),f=i(23175),g=i(23283),v=i(72412),_=i(70222),b=i(62101),y=i(52100),S=i(3213),w=i(85932),C=i(91764),k=i(50083),E=i(31534),I=i(18303),T=i(3513)},72068:function(e,t,i){"use strict";function n(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}i.d(t,{isAbortError:function(){return n}})},17312:function(e,t,i){"use strict";function n(e){return Array.isArray(e)}i.d(t,{isArray:function(){return n}})},22289:function(e,t,i){"use strict";function n(e){return"boolean"==typeof e}i.d(t,{isBoolean:function(){return n}})},94013:function(e,t,i){"use strict";i.d(t,{isEqual:function(){return o},isFastEqual:function(){return r}});var n=i(3347);function o(e,t){return e===t||(0,n.stringify)(e)===(0,n.stringify)(t)}function r(e,t){return e===t}},91565:function(e,t,i){"use strict";function n(e){return"function"==typeof e}i.d(t,{isFunction:function(){return n}})},82166:function(e,t,i){"use strict";function n(e){return -1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}i.d(t,{isHtmlFromWord:function(){return n}})},46248:function(e,t,i){"use strict";i.d(t,{isHTML:function(){return o}});var n=i(85932);let o=e=>(0,n.isString)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))},52433:function(e,t,i){"use strict";i.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var n=i(23211),o=i(91565),r=i(18303);function s(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&n.Dom.isElement(e.container)}},99732:function(e,t,i){"use strict";i.d(t,{isInt:function(){return r}});var n=i(70222),o=i(85932);function r(e){return(0,o.isString)(e)&&(0,n.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},24497:function(e,t,i){"use strict";i.d(t,{isJoditObject:function(){return o}});var n=i(91565);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},44998:function(e,t,i){"use strict";i.d(t,{isLicense:function(){return o}});var n=i(85932);let o=e=>(0,n.isString)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)},23175:function(e,t,i){"use strict";i.d(t,{isMarker:function(){return o}});var n=i(23211);function o(e){return n.Dom.isMarker(e)}},23283:function(e,t,i){"use strict";function n(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(e)))}i.d(t,{isNativeFunction:function(){return n}})},72412:function(e,t,i){"use strict";function n(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}i.d(t,{isNumber:function(){return n}})},70222:function(e,t,i){"use strict";i.d(t,{isNumeric:function(){return o}});var n=i(85932);function o(e){if((0,n.isString)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},62101:function(e,t,i){"use strict";i.d(t,{isPlainObject:function(){return o}});var n=i(3513);function o(e){return!(!e||"object"!=typeof e||e.nodeType||(0,n.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},52100:function(e,t,i){"use strict";function n(e){return e&&"function"==typeof e.then}i.d(t,{isPromise:function(){return n}})},3213:function(e,t,i){"use strict";i.d(t,{isSet:function(){return o}});var n=i(91565);function o(e){return!!e&&(0,n.isFunction)(e.has)&&(0,n.isFunction)(e.add)&&(0,n.isFunction)(e.delete)}},85932:function(e,t,i){"use strict";i.d(t,{isString:function(){return o},isStringArray:function(){return r}});var n=i(17312);function o(e){return"string"==typeof e}function r(e){return(0,n.isArray)(e)&&o(e[0])}},91764:function(e,t,i){"use strict";i.d(t,{isURL:function(){return o}});var n=i(81937);function o(e){if(e.includes(" "))return!1;if("u">typeof URL)try{let t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}let t=n.globalDocument.createElement("a");return t.href=e,!!t.hostname}},50083:function(e,t,i){"use strict";function n(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}i.d(t,{isValidName:function(){return n}})},31534:function(e,t,i){"use strict";i.d(t,{isViewObject:function(){return o}});var n=i(91565);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&e.isView)}},18303:function(e,t,i){"use strict";function n(e){return null==e}i.d(t,{isVoid:function(){return n}})},3513:function(e,t,i){"use strict";function n(e){return null!=e&&e===e.window}i.d(t,{isWindow:function(){return n}})},93387:function(e,t,i){"use strict";i.d(t,{colorToHex:function(){return n}});let n=e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;let t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";let i=parseInt(t[2],10),n=parseInt(t[3],10),o=(parseInt(t[4],10)|n<<8|i<<16).toString(16).toUpperCase();for(;o.length<6;)o="0"+o;return t[1]+"#"+o}},7018:function(e,t,i){"use strict";i.d(t,{colorToHex:function(){return n.colorToHex}});var n=i(93387)},30893:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return l}});var n=i(81937),o=i(23211),r=i(4040),s=i(28723);function a(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(e,t,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function l(e){if(-1===e.indexOf("<html "))return e;e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7);let t=n.globalDocument.createElement("iframe");t.style.display="none",n.globalDocument.body.appendChild(t);let i="";try{let l=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(l){l.open(),l.write(e),l.close();try{for(let e=0;e<l.styleSheets.length;e+=1){let t=l.styleSheets[e].cssRules;for(let e=0;e<t.length;e+=1)""!==t[e].selectorText&&(0,s.$$)(t[e].selectorText,l.body).forEach(i=>{i.style.cssText=a(t[e].style.cssText+";"+i.style.cssText)})}}catch(e){if(!n.IS_PROD)throw e}o.Dom.each(l.body,e=>{if(o.Dom.isElement(e)){let t=e.getAttribute("style");t&&(e.style.cssText=a(t)),e.hasAttribute("style")&&!e.getAttribute("style")&&e.removeAttribute("style")}}),i=l.firstChild?(0,r.trim)(l.body.innerHTML):""}}catch(e){}finally{o.Dom.safeRemove(t)}return i&&(e=i),(0,r.trim)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},1277:function(e,t,i){"use strict";i.d(t,{cleanFromWord:function(){return a}});var n=i(81937),o=i(23211),r=i(88475),s=i(4040);function a(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{let i=n.globalDocument.createElement("div");i.innerHTML=e;let s=[];i.firstChild&&o.Dom.each(i,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":s.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":o.Dom.unwrap(e);break;default:(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&e.removeAttribute(t.name)})}break;case Node.TEXT_NODE:break;default:s.push(e)}}),o.Dom.safeRemove.apply(null,s),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(s.trim).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},6609:function(e,t,i){"use strict";i.d(t,{htmlspecialchars:function(){return o}});var n=i(81937);function o(e){let t=n.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},82658:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return n.applyStyles},cleanFromWord:function(){return o.cleanFromWord},htmlspecialchars:function(){return r.htmlspecialchars},nl2br:function(){return s.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var n=i(30893),o=i(1277),r=i(6609),s=i(48838),a=i(48155),l=i(22852)},48838:function(e,t,i){"use strict";function n(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}i.d(t,{nl2br:function(){return n}})},48155:function(e,t,i){"use strict";i.d(t,{safeHTML:function(){return r},sanitizeHTMLElement:function(){return s}});var n=i(23211),o=i(93640);function r(e,t){(n.Dom.isElement(e)||n.Dom.isFragment(e))&&(t.removeOnError&&(s(e),(0,o.$$)("[onerror]",e).forEach(e=>s(e,t))),t.safeJavaScriptLink&&(s(e),(0,o.$$)('a[href^="javascript"]',e).forEach(e=>s(e,t))))}function s(e,{safeJavaScriptLink:t,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!n.Dom.isElement(e))return!1;let r=!1;i&&e.hasAttribute("onerror")&&((0,o.attr)(e,"onerror",null),r=!0);let a=e.getAttribute("href");return t&&a&&0===a.trim().indexOf("javascript")&&((0,o.attr)(e,"href",location.protocol+"//"+a),r=!0),r}},22852:function(e,t,i){"use strict";i.d(t,{stripTags:function(){return function e(t,i=document,c=null){let d=i.createElement("div");return(0,o.isString)(t)?d.innerHTML=t:d.appendChild(t),(0,s.$$)("*",d).forEach(t=>{let o=t.parentNode;if(!o)return;if(c&&n.Dom.isTag(t,c)){let o=t.nodeName.toLowerCase(),r=n.Dom.isTag(t,u)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${e(t.innerHTML,i,c)}%%%/jodit-${o}%%%`;n.Dom.before(t,i.createTextNode(r)),n.Dom.safeRemove(t);return}if(n.Dom.isTag(t,l))return void n.Dom.safeRemove(t);if(!n.Dom.isTag(t,a))return;let r=t.nextSibling;!(n.Dom.isText(r)&&/^\s/.test(r.nodeValue||""))&&r&&o.insertBefore(i.createTextNode(" "),r)}),(0,r.trim)(d.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,i,n)=>`<${t?"/":""}${n}>`)}}});var n=i(23211),o=i(85932),r=i(4040),s=i(93640);let a=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),l=new Set(["script","style"]),u=new Set(["br","hr","input"])},65946:function(e,t,i){"use strict";i.r(t),i.d(t,{CamelCaseToKebabCase:function(){return c.CamelCaseToKebabCase},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},applyStyles:function(){return a.applyStyles},asArray:function(){return n.asArray},camelCase:function(){return c.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearTimeout:function(){return o.clearTimeout},colorToHex:function(){return s.colorToHex},fuzzySearchIndex:function(){return c.fuzzySearchIndex},getContentWidth:function(){return u.getContentWidth},getScrollParent:function(){return u.getScrollParent},hasBrowserColorPicker:function(){return r.hasBrowserColorPicker},hasContainer:function(){return r.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},i18n:function(){return c.i18n},innerWidth:function(){return u.innerWidth},isAbortError:function(){return r.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return r.isBoolean},isDestructable:function(){return r.isDestructable},isEqual:function(){return r.isEqual},isFastEqual:function(){return r.isFastEqual},isFunction:function(){return r.isFunction},isHTML:function(){return r.isHTML},isHtmlFromWord:function(){return r.isHtmlFromWord},isInitable:function(){return r.isInitable},isInt:function(){return r.isInt},isJoditObject:function(){return r.isJoditObject},isLicense:function(){return r.isLicense},isMarker:function(){return r.isMarker},isNativeFunction:function(){return r.isNativeFunction},isNumber:function(){return r.isNumber},isNumeric:function(){return r.isNumeric},isPlainObject:function(){return r.isPlainObject},isPromise:function(){return r.isPromise},isSet:function(){return r.isSet},isString:function(){return r.isString},isStringArray:function(){return r.isStringArray},isURL:function(){return r.isURL},isValidName:function(){return r.isValidName},isViewObject:function(){return r.isViewObject},isVoid:function(){return r.isVoid},isWindow:function(){return r.isWindow},kebabCase:function(){return c.kebabCase},nl2br:function(){return a.nl2br},normalizeColor:function(){return l.normalizeColor},normalizeCssNumericValue:function(){return l.normalizeCssNumericValue},normalizeCssValue:function(){return l.normalizeCssValue},normalizeKeyAliases:function(){return l.normalizeKeyAliases},normalizeLicense:function(){return l.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return l.normalizeSize},normalizeUrl:function(){return l.normalizeUrl},offset:function(){return u.offset},position:function(){return u.position},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},setTimeout:function(){return o.setTimeout},size:function(){return u.size},splitArray:function(){return n.splitArray},sprintf:function(){return c.sprintf},stringify:function(){return c.stringify},stripTags:function(){return a.stripTags},toArray:function(){return n.toArray},trim:function(){return c.trim},trimChars:function(){return c.trimChars},trimInv:function(){return c.trimInv},ucfirst:function(){return c.ucfirst}});var n=i(45664),o=i(61077),r=i(28686),s=i(7018),a=i(82658),l=i(97022),u=i(86878),c=i(97642),d=i(93640),h={};for(var p in d)0>["default","asArray","splitArray","toArray","clearTimeout","setTimeout","hasBrowserColorPicker","hasContainer","isAbortError","isArray","isBoolean","isDestructable","isEqual","isFastEqual","isFunction","isHTML","isHtmlFromWord","isInitable","isInt","isJoditObject","isLicense","isMarker","isNativeFunction","isNumber","isNumeric","isPlainObject","isPromise","isSet","isString","isStringArray","isURL","isValidName","isViewObject","isVoid","isWindow","colorToHex","applyStyles","cleanFromWord","htmlspecialchars","nl2br","safeHTML","sanitizeHTMLElement","stripTags","NUMBER_FIELDS_REG","normalizeColor","normalizeCssNumericValue","normalizeCssValue","normalizeKeyAliases","normalizeLicense","normalizePath","normalizeRelativePath","normalizeSize","normalizeUrl","getContentWidth","getScrollParent","innerWidth","offset","position","size","CamelCaseToKebabCase","camelCase","fuzzySearchIndex","i18n","kebabCase","sprintf","stringify","trim","trimChars","trimInv","ucfirst"].indexOf(p)&&(h[p]=(function(e){return d[e]}).bind(0,p));i.d(t,h)},97022:function(e,t,i){"use strict";i.d(t,{NUMBER_FIELDS_REG:function(){return o.NUMBER_FIELDS_REG},normalizeColor:function(){return n.normalizeColor},normalizeCssNumericValue:function(){return o.normalizeCssNumericValue},normalizeCssValue:function(){return o.normalizeCssValue},normalizeKeyAliases:function(){return r.normalizeKeyAliases},normalizeLicense:function(){return s.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return u.normalizeSize},normalizeUrl:function(){return c.normalizeUrl}});var n=i(77367),o=i(19147),r=i(27978),s=i(49663),a=i(18377),l=i(96340),u=i(98831),c=i(48009)},77367:function(e,t,i){"use strict";i.d(t,{normalizeColor:function(){return r}});var n=i(93387),o=i(4040);let r=e=>{let t=["#"],i=(0,n.colorToHex)(e);if(!i)return!1;if(3===(i=(i=(0,o.trim)(i.toUpperCase())).substring(1)).length){for(let e=0;e<3;e+=1)t.push(i[e]),t.push(i[e]);return t.join("")}return i.length>6&&(i=i.slice(0,6)),"#"+i}},19147:function(e,t,i){"use strict";i.d(t,{NUMBER_FIELDS_REG:function(){return a},normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return u}});var n=i(70222),o=i(18303),r=i(93387),s=i(74264);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(e,t){return!(0,o.isVoid)(t)&&a.test(e)&&(0,n.isNumeric)(t.toString())?parseInt(t.toString(),10)+"px":t}function u(e,t){if("font-weight"===(0,s.kebabCase)(e)){switch(t.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,n.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}},27978:function(e,t,i){"use strict";i.d(t,{normalizeKeyAliases:function(){return r}});var n=i(81937),o=i(4040);function r(e){let t={},i={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(e=>(0,o.trim)(e.toLowerCase())).map(e=>n.KEY_ALIASES[e]||e).sort((e,t)=>i[e]&&!i[t]?-1:!i[e]&&i[t]?1:i[e]&&i[t]?i[e]-i[t]:e>t?1:-1).filter(e=>!t[e]&&""!==e&&(t[e]=!0)).join("+")}},49663:function(e,t,i){"use strict";i.d(t,{normalizeLicense:function(){return n}});let n=(e,t=8)=>{let i=[];for(;e.length;)i.push(e.substr(0,t)),e=e.substr(t);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")}},18377:function(e,t,i){"use strict";i.d(t,{normalizePath:function(){return o}});var n=i(4040);let o=(...e)=>e.filter(e=>(0,n.trim)(e).length).map((t,i)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),i&&(t=t.replace(/^\//,"")),i!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/")},96340:function(e,t,i){"use strict";i.d(t,{normalizeRelativePath:function(){return n}});let n=e=>e.split("/").reduce((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e},[]).join("/")+(e.endsWith("/")?"/":"")},98831:function(e,t,i){"use strict";i.d(t,{normalizeSize:function(){return n}});let n=(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()},48009:function(e,t,i){"use strict";i.d(t,{normalizeUrl:function(){return n}});let n=(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},54447:function(e,t,i){"use strict";i.d(t,{getContentWidth:function(){return n}});let n=(e,t)=>{let i=t.getComputedStyle(e);return e.offsetWidth-parseInt(i.getPropertyValue("padding-left")||"0",10)-parseInt(i.getPropertyValue("padding-right")||"0",10)}},34027:function(e,t,i){"use strict";i.d(t,{getScrollParent:function(){return function e(t){if(!t)return null;let i=o.Dom.isHTMLElement(t),s=i&&(0,r.css)(t,"overflowY");return i&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||n.globalDocument.scrollingElement||n.globalDocument.body}}});var n=i(81937),o=i(23211),r=i(93640)},86878:function(e,t,i){"use strict";i.d(t,{getContentWidth:function(){return n.getContentWidth},getScrollParent:function(){return o.getScrollParent},innerWidth:function(){return r.innerWidth},offset:function(){return a.offset},position:function(){return l.position},size:function(){return s.size}});var n=i(54447),o=i(34027),r=i(83215),s=i(18073),a=i(69143),l=i(23599)},83215:function(e,t,i){"use strict";i.d(t,{innerWidth:function(){return n}});let n=(e,t)=>{let i=t.getComputedStyle(e);return e.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}},18073:function(e,t,i){"use strict";i.d(t,{size:function(){return o}});var n=i(28686);function o(e){return(0,n.isString)(e)||(0,n.isArray)(e)?e.length:(0,n.isPlainObject)(e)?Object.keys(e).length:0}},69143:function(e,t,i){"use strict";i.d(t,{offset:function(){return n}});let n=(e,t,i,o=!1)=>{let r,s,a;try{r=e.getBoundingClientRect()}catch(e){r={top:0,bottom:0,left:0,right:0,width:0,height:0}}let l=i.body,u=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},c=i.defaultView||i.parentWindow,d=c.pageYOffset||u.scrollTop||l.scrollTop,h=c.pageXOffset||u.scrollLeft||l.scrollLeft,p=u.clientTop||l.clientTop||0,m=u.clientLeft||l.clientLeft||0,f=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&f){let{top:e,left:i}=n(f,t,t.od,!0);s=r.top+e,a=r.left+i}else s=r.top+d-p,a=r.left+h-m;return{top:Math.round(s),left:Math.round(a),width:r.width,height:r.height}}},23599:function(e,t,i){"use strict";i.d(t,{position:function(){return function e(t,i,o=!1){var r,s;let a=t.getBoundingClientRect(),l=a.left,u=a.top;if((0,n.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(t)&&!o){let{left:t,top:n}=e(i.iframe,i,!0);l+=t,u+=n}return{left:Math.round(l),top:Math.round(u),width:Math.round(null!=(r=t.offsetWidth)?r:a.width),height:Math.round(null!=(s=t.offsetHeight)?s:a.height)}}}});var n=i(24497)},57821:function(e,t,i){"use strict";i.d(t,{camelCase:function(){return n}});let n=e=>e.replace(/([-_])(.)/g,(e,t,i)=>i.toUpperCase())},57626:function(e,t,i){"use strict";i.d(t,{fuzzySearchIndex:function(){return o}});var n=i(81937);function o(e,t,i=0,r=1){let s=0,a=0,l=-1,u=0,c=0;for(a=i;s<e.length&&a<t.length;)e[s].toLowerCase()===t[a].toLowerCase()?(s++,u++,c=0,-1===l&&(l=a)):s>0&&(c>=r&&t[a]!==n.INVISIBLE_SPACE?(s=0,l=-1,u=0,c=0,a--):(c++,u++)),a++;return s===e.length?[l,u]:[-1,0]}},18080:function(e,t,i){"use strict";i.d(t,{i18n:function(){return u},sprintf:function(){return l}});var n=i(81937),o=i(85932),r=i(99436),s=i(93640),a=i(5266);let l=(e,t)=>{if(!t||!t.length)return e;let i=/%([sd])/g,n=i.exec(e),o=e,r=0;for(;n&&void 0!==t[r];)o=o.replace(n[0],t[r].toString()),r+=1,n=i.exec(e);return o};function u(e,t,i){if(!(0,o.isString)(e))throw(0,s.error)("i18n: Need string in first argument");if(!e.length)return e;let u=!!(null==i?void 0:i.debugLanguage),c={},d=e=>t&&t.length?l(e,t):e,h=(0,s.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),p=(0,s.defaultLanguage)(null==i?void 0:i.language,h),m=t=>{if(!t)return;if((0,o.isString)(t[e]))return d(t[e]);let i=e.toLowerCase();if((0,o.isString)(t[i]))return d(t[i]);let n=(0,r.ucfirst)(e);if((0,o.isString)(t[n]))return d(t[n])};void 0!==n.lang[p]?c=n.lang[p]:u||(c=void 0!==n.lang[h]?n.lang[h]:n.lang.en);let f=null==i?void 0:i.i18n;if(f&&f[p]){let e=m(f[p]);if(e)return e}return m(c)||(!u&&n.lang.en&&(0,o.isString)(n.lang.en[e])&&n.lang.en[e]?d(n.lang.en[e]):u?"{"+e+"}":(n.IS_PROD,d(e)))}},97642:function(e,t,i){"use strict";i.d(t,{CamelCaseToKebabCase:function(){return s.CamelCaseToKebabCase},camelCase:function(){return n.camelCase},fuzzySearchIndex:function(){return o.fuzzySearchIndex},i18n:function(){return r.i18n},kebabCase:function(){return s.kebabCase},sprintf:function(){return r.sprintf},stringify:function(){return a.stringify},trim:function(){return l.trim},trimChars:function(){return l.trimChars},trimInv:function(){return l.trimInv},ucfirst:function(){return u.ucfirst}});var n=i(57821),o=i(57626),r=i(18080),s=i(74264),a=i(3347),l=i(4040),u=i(99436)},74264:function(e,t,i){"use strict";i.d(t,{CamelCaseToKebabCase:function(){return o},kebabCase:function(){return n}});let n=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),o=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},3347:function(e,t,i){"use strict";function n(e,t={}){if("object"!=typeof e)return String(e);let i=new Set(t.excludeKeys),o=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!i.has(e)){if("object"==typeof t&&null!=t){if(o.get(t))return"[refObject]";o.set(t,!0)}return t}},t.prettify)}i.d(t,{stringify:function(){return n}})},4040:function(e,t,i){"use strict";i.d(t,{trim:function(){return o},trimChars:function(){return r},trimInv:function(){return s}});var n=i(81937);function o(e){return e.replace((0,n.SPACE_REG_EXP_END)(),"").replace((0,n.SPACE_REG_EXP_START)(),"")}function r(e,t){return e.replace(RegExp(`[${t}]+$`),"").replace(RegExp(`^[${t}]+`),"")}function s(e){return e.replace((0,n.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,n.INVISIBLE_SPACE_REG_EXP_START)(),"")}},99436:function(e,t,i){"use strict";function n(e){return e.length?e[0].toUpperCase()+e.substring(1):""}i.d(t,{ucfirst:function(){return n}})},16849:function(e,t,i){"use strict";i.d(t,{alignElement:function(){return a},clearAlign:function(){return s},hAlignElement:function(){return r}});var n=i(27795),o=i(80991);function r(e,t){t&&"normal"!==t?"center"!==t?((0,o.css)(e,"float",t),(0,o.clearCenterAlign)(e)):(0,o.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,o.css)(e,"float")&&-1!==["right","left"].indexOf((0,o.css)(e,"float").toString().toLowerCase())&&(0,o.css)(e,"float",""),(0,o.clearCenterAlign)(e))}function s(e){n.Dom.each(e,e=>{n.Dom.isHTMLElement(e)&&e.style.textAlign&&(e.style.textAlign="",e.style.cssText.trim().length||e.removeAttribute("style"))})}function a(e,t){if(n.Dom.isNode(t)&&n.Dom.isElement(t))switch(s(t),e.toLowerCase()){case"justifyfull":t.style.textAlign="justify";break;case"justifyright":t.style.textAlign="right";break;case"justifyleft":t.style.textAlign="left";break;case"justifycenter":t.style.textAlign="center"}}},47760:function(e,t,i){"use strict";i.d(t,{alreadyLoadedList:function(){return r},appendScriptAsync:function(){return a},appendStyleAsync:function(){return l},loadNext:function(){return function e(t,i,o=0){return(0,n.isString)(i[o])?a(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,i,o=0){return(0,n.isString)(i[o])?l(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}}});var n=i(85932),o=i(91321);let r=new Map,s=e=>(t,i)=>{if(r.has(i))return r.get(i);let n=e(t,i);return r.set(i,n),n},a=s((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let r=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,o.completeUrl)(t)});e.e.one(r,"error",n).one(r,"load",i),e.od.body.appendChild(r)})),l=s((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let r=e.c.element("link");r.rel="stylesheet",r.media="all",r.crossOrigin="anonymous",e.isInDestruct||e.e.on(r,"load",()=>i(r)).on(r,"error",n),r.href=(0,o.completeUrl)(t),e.o.shadowRoot?e.o.shadowRoot.appendChild(r):e.od.body.appendChild(r)}))},7909:function(e,t,i){"use strict";i.d(t,{attr:function(){return function e(t,i,l){if(!t||!(0,n.isFunction)(t.getAttribute))return null;if(!(0,r.isString)(i))return Object.keys(i).forEach(n=>{let r=i[n];(0,o.isPlainObject)(r)&&"style"===n?(0,a.css)(t,r):("className"===n&&(n="class"),e(t,n,r))}),null;let u=(0,s.CamelCaseToKebabCase)(i);if(/^-/.test(u)){let i=e(t,`data${u}`);if(i)return i;u=u.substr(1)}if(void 0!==l)if(null==l)t.hasAttribute(u)&&t.removeAttribute(u);else{let e=l.toString();return"IMG"===t.nodeName&&("width"===u||"height"===u)&&(e=e.replace("px","")),t.setAttribute(u,e),e}return t.getAttribute(u)}}});var n=i(91565),o=i(62101),r=i(85932),s=i(74264),a=i(80991)},26136:function(e,t,i){"use strict";i.d(t,{browser:function(){return n}});let n=e=>{let t=navigator.userAgent.toLowerCase(),i=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||0>t.indexOf("compatible")||[];return"version"===e?i[2]:"webkit"===e?"chrome"===i[1]||"webkit"===i[1]:"ff"===e?"firefox"===i[1]:"msie"===e?"trident"===i[1]||"msie"===i[1]:i[1]===e}},36833:function(e,t,i){"use strict";i.d(t,{buildQuery:function(){return o}});var n=i(62101);let o=(e,t)=>{let i=[],r=encodeURIComponent;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)){let a=t?t+"["+s+"]":s,l=e[s];i.push((0,n.isPlainObject)(l)?o(l,a):r(a)+"="+r(l))}return i.join("&")}},91321:function(e,t,i){"use strict";i.d(t,{completeUrl:function(){return o}});var n=i(81937);let o=e=>("file:"===n.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)},77483:function(e,t,i){"use strict";i.d(t,{ConfigDeepFlatten:function(){return function e(t){return(0,u.keys)(t,!1).reduce((i,n)=>(i[n]=(0,o.isPlainObject)(t[n])?e(t[n]):t[n],i),{})}},ConfigFlatten:function(){return c},ConfigProto:function(){return function e(t,i,u=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let c=a.Config.defaultOptions;if((0,r.isString)(t.preset)){if(void 0!==c.presets[t.preset]){let e=c.presets[t.preset];Object.keys(e).forEach(i=>{(0,s.isVoid)(t[i])&&(t[i]=e[i])})}delete t.preset}let d={};return Object.keys(t).forEach(r=>{let s=t[r],a=i?i[r]:null;if((0,o.isPlainObject)(s)&&(0,o.isPlainObject)(a)&&!(0,l.isAtom)(s)){d[r]=e(s,a,u+1);return}if(0!==u&&(0,n.isArray)(s)&&!(0,l.isAtom)(s)&&(0,n.isArray)(a)){d[r]=[...s,...a.slice(s.length)];return}d[r]=s}),Object.setPrototypeOf(d,i),d}}});var n=i(17312),o=i(62101),r=i(85932),s=i(18303),a=i(5266),l=i(54794),u=i(71125);function c(e){return(0,u.keys)(e,!1).reduce((t,i)=>(t[i]=e[i],t),{})}},3856:function(e,t,i){"use strict";i.d(t,{convertMediaUrlToVideoEmbed:function(){return s}});var n=i(81937),o=i(91764),r=i(36310);let s=(e,{width:t=400,height:i=345}={})=>{if(!(0,o.isURL)(e))return e;let s=n.globalDocument.createElement("a"),a=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;s.href=e,t||(t=400),i||(i=345);let l=s.protocol||"";switch(s.hostname){case"www.vimeo.com":case"vimeo.com":return a.test(e)?e.replace(a,'<iframe width="'+t+'" height="'+i+'" src="'+l+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):e;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{let n=s.search?(0,r.parseQuery)(s.search):{v:s.pathname.substring(1)};return/^embed\/.*/.test(n.v)&&(n.v=n.v.substring(6)),n.v?'<iframe width="'+t+'" height="'+i+'" src="'+l+"//www.youtube.com/embed/"+n.v+'" frameborder="0" allowfullscreen></iframe>':e}}return e}},80991:function(e,t,i){"use strict";i.d(t,{clearCenterAlign:function(){return u},css:function(){return l}});var n=i(22289),o=i(62101),r=i(19147),s=i(57821),a=i(74264);function l(e,t,i,u=!1){if((0,n.isBoolean)(i)&&(u=i,i=void 0),(0,o.isPlainObject)(t)||void 0!==i){let n=(e,t,i)=>{void 0!==(i=(0,r.normalizeCssNumericValue)(t,i))&&(null==i||l(e,t,!0)!==(0,r.normalizeCssValue)(t,i))&&(e.style[t]=i)};if((0,o.isPlainObject)(t)){let i=Object.keys(t);for(let o=0;o<i.length;o+=1)n(e,(0,s.camelCase)(i[o]),t[i[o]])}else n(e,(0,s.camelCase)(t),i);return""}let c=(0,a.kebabCase)(t),d=e.ownerDocument||document,h=!!d&&(d.defaultView||d.parentWindow),p=e.style[t],m="";return void 0!==p&&""!==p?m=p:h&&!u&&(m=h.getComputedStyle(e).getPropertyValue(c)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(m.toString())&&(m=parseInt(m.toString(),10)),(0,r.normalizeCssValue)(t,m)}let u=e=>{"block"===l(e,"display")&&l(e,"display","");let{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}},77213:function(e,t,i){"use strict";i.d(t,{ctrlKey:function(){return n}});let n=e=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}},36400:function(e,t,i){"use strict";i.d(t,{dataBind:function(){return r}});var n=i(31534);let o=new WeakMap,r=(e,t,i)=>{let r=o.get(e);if(!r){r={},o.set(e,r);let t=null;(0,n.isViewObject)(e.j)&&(t=e.j.e),(0,n.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{o.delete(e)})}return void 0===i?r[t]:(r[t]=i,i)}},97228:function(e,t,i){"use strict";i.d(t,{defaultLanguage:function(){return r}});var n=i(81937),o=i(85932);let r=(e,t="en")=>"auto"!==e&&(0,o.isString)(e)?e:n.globalDocument.documentElement&&n.globalDocument.documentElement.lang?n.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):t},38027:function(e,t,i){"use strict";i.d(t,{connection:function(){return r},error:function(){return o},options:function(){return s}});var n=i(29953);function o(e){return TypeError(e)}function r(e){return new n.ConnectionError(e)}function s(e){return new n.OptionsError(e)}},14228:function(e,t,i){"use strict";function n(e="Aborted"){return new DOMException(e,"AbortError")}i.d(t,{abort:function(){return n}})},58250:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return n}});class n extends Error{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}},29953:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return n.abort}});var n=i(14228),o=i(58250),r=i(11080)},11080:function(e,t,i){"use strict";i.d(t,{OptionsError:function(){return n}});class n extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}},33201:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return o.OptionsError},abort:function(){return o.abort},connection:function(){return n.connection},error:function(){return n.error},options:function(){return n.options}});var n=i(38027),o=i(29953)},54794:function(e,t,i){"use strict";i.d(t,{fastClone:function(){return s},isAtom:function(){return o},markAsAtomic:function(){return r}});var n=i(3347);function o(e){return e&&e.isAtom}function r(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function s(e){return JSON.parse((0,n.stringify)(e))}},421:function(e,t,i){"use strict";i.d(t,{getClassName:function(){return r},keepNames:function(){return o}});var n=i(91565);let o=new Map,r=e=>{var t;if((0,n.isFunction)(e.className))return e.className();let i=(null==(t=e.constructor)?void 0:t.originalConstructor)||e.constructor;if(o.has(i))return o.get(i);if(i.name)return i.name;let r=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=i.toString().match(r);return s?s[1]:""}},89308:function(e,t,i){"use strict";i.d(t,{get:function(){return r}});var n=i(85932),o=i(18303);function r(e,t){if(!(0,n.isString)(e)||!e.length)return null;let i=e.split("."),r=t;try{for(let e of i){if((0,o.isVoid)(r[e]))return null;r=r[e]}}catch(e){return null}return(0,o.isVoid)(r)?null:r}},37427:function(e,t,i){"use strict";i.d(t,{humanSizeToBytes:function(){return n}});let n=e=>{if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);let t=e.substr(-2,2).toUpperCase(),i=["KB","MB","GB","TB"],n=parseFloat(e.substr(0,e.length-2));return -1!==i.indexOf(t)?n*Math.pow(1024,i.indexOf(t)+1):parseInt(e,10)}},93640:function(e,t,i){"use strict";i.r(t),i.d(t,{$$:function(){return x.$$},ConfigDeepFlatten:function(){return h.ConfigDeepFlatten},ConfigFlatten:function(){return h.ConfigFlatten},ConfigProto:function(){return h.ConfigProto},ConnectionError:function(){return _.ConnectionError},LimitedStack:function(){return z.LimitedStack},OptionsError:function(){return _.OptionsError},abort:function(){return _.abort},alignElement:function(){return n.alignElement},alreadyLoadedList:function(){return o.alreadyLoadedList},appendScriptAsync:function(){return o.appendScriptAsync},appendStyleAsync:function(){return o.appendStyleAsync},attr:function(){return l.attr},browser:function(){return u.browser},buildQuery:function(){return c.buildQuery},call:function(){return j.call},callPromise:function(){return j.callPromise},callThis:function(){return j.callThis},clearAlign:function(){return n.clearAlign},clearCenterAlign:function(){return m.clearCenterAlign},cns:function(){return C.cns},completeUrl:function(){return d.completeUrl},connection:function(){return _.connection},convertMediaUrlToVideoEmbed:function(){return p.convertMediaUrlToVideoEmbed},css:function(){return m.css},cssPath:function(){return x.cssPath},ctrlKey:function(){return f.ctrlKey},dataBind:function(){return g.dataBind},defaultLanguage:function(){return v.defaultLanguage},error:function(){return _.error},fastClone:function(){return b.fastClone},get:function(){return y.get},getClassName:function(){return S.getClassName},getDataTransfer:function(){return j.getDataTransfer},getPropertyDescriptor:function(){return j.getPropertyDescriptor},getXPathByElement:function(){return x.getXPathByElement},hAlignElement:function(){return n.hAlignElement},humanSizeToBytes:function(){return w.humanSizeToBytes},inView:function(){return T.inView},isAtom:function(){return b.isAtom},keepNames:function(){return S.keepNames},keys:function(){return j.keys},loadImage:function(){return j.loadImage},loadNext:function(){return o.loadNext},loadNextStyle:function(){return o.loadNextStyle},markAsAtomic:function(){return b.markAsAtomic},markDeprecated:function(){return C.markDeprecated},markOwner:function(){return j.markOwner},memorizeExec:function(){return j.memorizeExec},options:function(){return _.options},parseQuery:function(){return k.parseQuery},previewBox:function(){return E.previewBox},refs:function(){return x.refs},reset:function(){return I.reset},resolveElement:function(){return x.resolveElement},scrollIntoViewIfNeeded:function(){return T.scrollIntoViewIfNeeded},set:function(){return D.set}});var n=i(16849),o=i(47760),r=i(28712),s={};for(var a in r)0>["default","alignElement","clearAlign","hAlignElement","alreadyLoadedList","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(a)&&(s[a]=(function(e){return r[e]}).bind(0,a));i.d(t,s);var l=i(7909),u=i(26136),c=i(36833),d=i(91321),h=i(77483),p=i(3856),m=i(80991),f=i(77213),g=i(36400),v=i(97228),_=i(33201),b=i(54794),y=i(89308),S=i(421),w=i(37427),C=i(49385),k=i(36310),E=i(57075),I=i(43379),T=i(60898),x=i(28723),D=i(52144),z=i(42820),j=i(71125)},49385:function(e,t,i){"use strict";i.d(t,{cns:function(){return n},markDeprecated:function(){return o}});let n=console;function o(e,t=[""],i=null){return(...o)=>(n.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...o))}},36310:function(e,t,i){"use strict";i.d(t,{parseQuery:function(){return n}});let n=e=>{let t={},i=e.substring(1).split("&");for(let e=0;e<i.length;e+=1){let n=i[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")}return t}},57075:function(e,t,i){"use strict";i.d(t,{previewBox:function(){return l}});var n=i(23211),o=i(85932),r=i(7909),s=i(80991),a=i(28723);function l(e,t,i="px",u=null){let c=[],d=function(e,t){let i=[];try{(0,a.$$)("img",e.editor).forEach(o=>{let s=[(0,r.attr)(o,"width"),(0,r.attr)(o,"height"),o.src];(0,r.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});let a=e.createInside.a();e.ed.body.appendChild(a),a.href=o.src,o.src=a.href,n.Dom.safeRemove(a),i.push(()=>{var e;o.src=null!=(e=s[2])?e:"",(0,r.attr)(o,{width:s[0]||null,height:s[1]||null})})})}catch(e){throw i.forEach(e=>e()),i.length=0,e}return i}(e,i);try{let a=e.e.fire("beforePreviewBox",t,i);if(null!=a)return a;let l=e.c.div("jodit__preview-box jodit-context");u&&u.appendChild(l),(0,s.css)(l,{position:"relative",padding:16});let d=e.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${e.i18n("Empty")}</div>`;if(e.iframe){let t=e.create.element("iframe");(0,s.css)(t,{minWidth:800,minHeight:600,border:0}),l.appendChild(t);let i=t.contentWindow;if(i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),l=i.document.body,"function"==typeof ResizeObserver)){let n=!1,o=i.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(o),t.style.height=`${o.offsetHeight+20}px`,e.async.requestAnimationFrame(()=>{n||r.observe(o)})},100)),s=()=>{n=!0,r.unobserve(o),r.disconnect(),e.e.off("beforeDestruct",s)};c.push(s),e.e.on("beforeDestruct",s)}}else(0,s.css)(l,{minWidth:1024,minHeight:600,border:0});let h=(t,i)=>{let s=(0,o.isString)(i)?e.c.div():i;(0,o.isString)(i)&&(s.innerHTML=i);for(let e=0;e<s.childNodes.length;e+=1){let i=s.childNodes[e];if(n.Dom.isElement(i)){let e=t.ownerDocument.createElement(i.nodeName);for(let t=0;t<i.attributes.length;t+=1)(0,r.attr)(e,i.attributes[t].nodeName,i.attributes[t].nodeValue);0===i.childNodes.length||n.Dom.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(e.textContent=i.textContent):i.innerHTML&&(e.innerHTML=i.innerHTML):h(e,i);try{t.appendChild(e)}catch(e){}}else try{t.appendChild(i.cloneNode(!0))}catch(e){}}};return h(l,d),e.e.fire("afterPreviewBox",l),[l,()=>{c.forEach(e=>e())}]}finally{d.forEach(e=>e())}}},43379:function(e,t,i){"use strict";i.d(t,{reset:function(){return a}});var n=i(81937),o=i(91565),r=i(89308);let s={};function a(e){var t,i;if(!(e in s)){let t=n.globalDocument.createElement("iframe");try{if(t.src="about:blank",n.globalDocument.body.appendChild(t),!t.contentWindow)return null;let i=(0,r.get)(e,t.contentWindow),a=(0,r.get)(e.split(".").slice(0,-1).join("."),t.contentWindow);(0,o.isFunction)(i)&&(s[e]=i.bind(a))}catch(e){if(!n.IS_PROD)throw e}finally{null==(i=t.parentNode)||i.removeChild(t)}}return null!=(t=s[e])?t:null}},60898:function(e,t,i){"use strict";i.d(t,{inView:function(){return o},scrollIntoViewIfNeeded:function(){return r}});var n=i(23211);function o(e,t,i){let n=e.getBoundingClientRect(),o=e,r=n.top,s=n.height;for(;o&&o!==t&&o.parentNode;)if(!(r<=(n=(o=o.parentNode).getBoundingClientRect()).bottom)||r+s<=n.top)return!1;return r<=(i.documentElement&&i.documentElement.clientHeight||0)}function r(e,t,i){n.Dom.isHTMLElement(e)&&!o(e,t,i)&&(t.clientHeight!==t.scrollHeight&&(t.scrollTop=e.offsetTop),o(e,t,i)||e.scrollIntoView())}},28723:function(e,t,i){"use strict";i.d(t,{$$:function(){return d},cssPath:function(){return m},getXPathByElement:function(){return h},refs:function(){return p},resolveElement:function(){return f}});var n=i(81937),o=i(23211),r=i(88475),s=i(85932),a=i(57821),l=i(7909),u=i(33201);let c=1;function d(e,t){let i;if(!n.IS_ES_NEXT&&/:scope/.test(e)&&n.IS_IE&&!(t&&t.nodeType===Node.DOCUMENT_NODE)){let n=t.id,o=n||"_selector_id_"+String(Math.random()).slice(2)+ ++c;e=e.replace(/:scope/g,"#"+o),n||t.setAttribute("id",o),i=t.parentNode.querySelectorAll(e),n||t.removeAttribute("id")}else i=t.querySelectorAll(e);return[].slice.call(i)}let h=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE||!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";let i=[].filter.call(e.parentNode.childNodes,t=>t.nodeName===e.nodeName);return h(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(i.length>1?"["+((0,r.toArray)(i).indexOf(e)+1)+"]":"")},p=e=>("container"in e&&(e=e.container),d("[ref],[data-ref]",e).reduce((e,t)=>{let i=(0,l.attr)(t,"-ref");return i&&(0,s.isString)(i)&&(e[(0,a.camelCase)(i)]=t,e[i]=t),e},{})),m=e=>{if(!o.Dom.isElement(e))return null;let t=[],i=e;for(;i&&i.nodeType===Node.ELEMENT_NODE;){let e=i.nodeName.toLowerCase();if(i.id){e+="#"+i.id,t.unshift(e);break}{let t=i,n=1;do(t=t.previousElementSibling)&&t.nodeName.toLowerCase()===e&&n++;while(t);e+=":nth-of-type("+n+")"}t.unshift(e),i=i.parentNode}return t.join(" > ")};function f(e,t){let i=e;if((0,s.isString)(e))try{i=t.querySelector(e)}catch(t){throw(0,u.error)('String "'+e+'" should be valid HTML selector')}if(!i||"object"!=typeof i||!o.Dom.isElement(i)||!i.cloneNode)throw(0,u.error)('Element "'+e+'" should be string or HTMLElement instance');return i}},52144:function(e,t,i){"use strict";i.d(t,{set:function(){return a}});var n=i(17312),o=i(70222),r=i(62101),s=i(85932);function a(e,t,i){if(!(0,s.isString)(e)||!e.length)return;let a=e.split("."),l=i,u=a[0];for(let e=0;e<a.length-1;e+=1)u=a[e],(0,n.isArray)(l[u])||(0,r.isPlainObject)(l[u])||(l[u]=(0,o.isNumeric)(a[e+1])?[]:{}),l=l[u];l&&(l[a[a.length-1]]=t)}},42820:function(e,t,i){"use strict";i.d(t,{LimitedStack:function(){return o}});var n=i(25045);class o{push(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(e){return this.stack.find(e)}constructor(e){(0,n._)(this,"limit",void 0),(0,n._)(this,"stack",void 0),this.limit=e,this.stack=[]}}},71125:function(e,t,i){"use strict";i.d(t,{call:function(){return a},callPromise:function(){return c},callThis:function(){return l},getDataTransfer:function(){return m},getPropertyDescriptor:function(){return f},keys:function(){return h},loadImage:function(){return d},markOwner:function(){return u},memorizeExec:function(){return p}});var n=i(52100),o=i(18303),r=i(7909),s=i(36400);function a(e,...t){return e(...t)}function l(e,t,...i){return e.apply(t,i)}function u(e,t){(0,r.attr)(t,"data-editor_id",e.id),t.component||Object.defineProperty(t,"jodit",{value:e})}function c(e,t){return(0,n.isPromise)(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}let d=(e,t)=>t.async.promise((i,n)=>{let o=new Image,r=()=>{t.e.off(o),null==n||n()},s=()=>{t.e.off(o),i(o)};t.e.one(o,"load",s).one(o,"error",r).one(o,"abort",r),o.src=e,o.complete&&s()}),h=(e,t=!0)=>{if(t)return Object.keys(e);let i=[];for(let t in e)i.push(t);return i},p=(e,t,{control:i},n)=>{var r;let a=`button${i.command}`,l=null!=(r=i.args&&i.args[0])?r:(0,s.dataBind)(e,a);if((0,o.isVoid)(l))return!1;(0,s.dataBind)(e,a,l),n&&(l=n(l)),e.execCommand(i.command,!1,null!=l?l:void 0)},m=e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}};function f(e,t){let i;do i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!i&&e);return i}},55810:function(e,t,i){"use strict";i.d(t,{init:function(){return s}});var n=i(81937),o=i(52433),r=i(3050);function s(e,t,i,s,a,l,u){if((0,o.isInitable)(s))try{s.init(e)}catch(e){if(!n.IS_PROD)throw e}a.set(t,s),l.delete(t),s.hasStyle&&(0,r.loadStyle)(e,t).catch(e=>{n.IS_PROD}),s.styles&&(u(e,t,"style").innerHTML=s.styles)}},3050:function(e,t,i){"use strict";i.d(t,{loadExtras:function(){return c},loadStyle:function(){return l}});var n=i(81937),o=i(74264),r=i(47760),s=i(86189);let a=new Set;async function l(e,t){let i=u(e,t,!1);if(!a.has(i))return a.add(i),(0,r.appendStyleAsync)(e,i)}function u(e,t,i){t=(0,o.kebabCase)(t);let n=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+n+"."+(i?"js":"css")}function c(e,t,i,o){try{let n=i.filter(t=>!e.has((0,s.normalizeName)(t.name)));n.length&&n.map(e=>{let i=e.url||u(t,e.name,!0);return(0,r.appendScriptAsync)(t,i).then(o).catch(()=>null)})}catch(e){if(!n.IS_PROD)throw e}}},25974:function(e,t,i){"use strict";i.d(t,{makeInstance:function(){return r}});var n=i(81937),o=i(91565);function r(e,t){try{try{return(0,o.isFunction)(t)?new t(e):t}catch(i){if((0,o.isFunction)(t)&&!t.prototype)return t(e)}}catch(e){if(!n.IS_PROD)throw e}return null}},86189:function(e,t,i){"use strict";i.d(t,{normalizeName:function(){return o}});var n=i(74264);function o(e){return(0,n.kebabCase)(e).toLowerCase()}},91206:function(e,t,i){"use strict";i.d(t,{Plugin:function(){return n.Plugin}});var n=i(18855);i(85305)},85305:function(e,t,i){"use strict";i.d(t,{PluginSystem:function(){return m}});var n=i(25045),o=i(81937),r=i(42689),s=i(32328),a=i(17312),l=i(52433),u=i(85932),c=i(55810),d=i(3050),h=i(25974),p=i(86189);class m{get size(){return this.__items.size}add(e,t){this.__items.set((0,p.normalizeName)(e),t),r.eventEmitter.fire(`plugin:${e}:ready`)}get(e){return this.__items.get((0,p.normalizeName)(e))}remove(e){this.__items.delete((0,p.normalizeName)(e))}__getFullPluginsList(e){let t=[];return this.__items.forEach((i,n)=>{(!e||e.has(n))&&t.push([n,i])}),t}__init(e){let{extraList:t,disableList:i,filter:n}={extraList:e.o.extraPlugins.map(e=>(0,u.isString)(e)?{name:e}:e),disableList:new Set((0,s.splitArray)(e.o.disablePlugins).map(p.normalizeName)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null},r=new Map,m={},f=new Set;e.__plugins=m;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(n).forEach(([n,o])=>{if(i.has(n)||r.has(n))return;let s=null==o?void 0:o.requires;if(s&&(0,a.isArray)(s)&&s.length){if(s.some(e=>i.has(e)))return;if(!s.every(e=>r.has(e)))return void f.add(n)}t=!0;let l=(0,h.makeInstance)(e,o);if(!l){r.set(n,null),f.delete(n);return}(0,c.init)(e,n,o,l,r,f,this.opts.getContainer),m[n]=l}),t&&(e.e.fire("updatePlugins"),g())};t&&t.length&&(0,d.loadExtras)(this.__items,e,t,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(m).forEach(t=>{let i=m[t];(0,l.isDestructable)(i)&&i.destruct(e),delete m[t]}),delete e.__plugins}),o.IS_PROD||f.size}wait(e){return new Promise(t=>{if(this.get(e))return t();let i=()=>{t(),r.eventEmitter.off(`plugin:${e}:ready`,i)};r.eventEmitter.on(`plugin:${e}:ready`,i)})}constructor(e){(0,n._)(this,"opts",void 0),(0,n._)(this,"__items",void 0),this.opts=e,this.__items=new Map}}},18855:function(e,t,i){"use strict";i.d(t,{Plugin:function(){return l}});var n=i(25045),o=i(31635),r=i(16964),s=i(84839),a=i(24497);class l extends r.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:e,buttons:t}=this;t&&(0,a.isJoditObject)(e)&&t.forEach(t=>{e.registerButton(t)})}__afterInit(){this.__inited=!0,this.setStatus(r.STATUSES.ready),this.afterInit(this.jodit)}init(e){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){if(this.isInDestruct)return;let{j:e}=this;if(e.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(r.STATUSES.beforeDestruct),!this.__inited)return super.destruct();if((0,a.isJoditObject)(e)){var t;null==(t=this.buttons)||t.forEach(t=>{null==e||e.unregisterButton(t)})}this.beforeDestruct(this.j),super.destruct()}constructor(e){super(e),(0,n._)(this,"buttons",[]),(0,n._)(this,"hasStyle",!1),(0,n._)(this,"styles",void 0),(0,n._)(this,"__inited",!1),e.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}(0,n._)(l,"requires",[]),(0,o.__decorate)([s.autobind],l.prototype,"__afterPluginSystemInit",null),(0,o.__decorate)([s.autobind],l.prototype,"__afterInit",null),(0,o.__decorate)([s.autobind],l.prototype,"__beforeDestruct",null)},17338:function(e,t,i){"use strict";i.d(t,{Ajax:function(){return h}});var n=i(25045),o=i(31635),r=i(91231),s=i(81937),a=i(49574),l=i(65946),u=i(33201),c=i(5266);i(37102);var d=i(32855);class h{className(){return"Ajax"}__buildParams(e,t){return(0,l.isPlainObject)(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):(0,l.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):(0,l.isString)(e)||e instanceof s.globalWindow.FormData||"object"==typeof e&&null!=e&&(0,l.isFunction)(e.append)?e:(0,l.buildQuery)(e)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(e){}return this}send(){this.__activated=!0;let{xhr:e,o:t}=this,i=this.prepareRequest();return this.__async.promise(async(n,o)=>{var r;let s=()=>{this.__isFulfilled=!0,o(u.connection("Connection error"))},a=()=>{this.__isFulfilled=!0,n(new d.Response(i,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=a,e.onabort=()=>{this.__isFulfilled=!0,o(u.abort("Abort connection"))},e.onerror=s,e.ontimeout=s,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,i;let n=0;e.lengthComputable&&(n=e.loaded/e.total*100),null==(t=(i=this.options).onProgress)||t.call(i,n)},e.onreadystatechange=()=>{var i,n;null==(i=(n=this.options).onProgress)||i.call(n,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?a():e.statusText&&(this.__isFulfilled=!0,o(u.connection(e.statusText))))},e.withCredentials=null!=(r=t.withCredentials)&&r;let{url:c,data:h,method:p}=i;e.open(p,c,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:m}=t;(0,l.isFunction)(m)&&(m=await m.call(this)),m&&e.setRequestHeader&&Object.keys(m).forEach(t=>{e.setRequestHeader(t,m[t])}),this.__async.setTimeout(()=>{e.send(h?this.__buildParams(h):void 0)},0)})}prepareRequest(){if(!this.o.url)throw u.error("Need URL for AJAX request");let e=this.o.url,t=this.o.data,i=(this.o.method||"get").toLowerCase();if("get"===i&&t&&(0,l.isPlainObject)(t)){let i=e.indexOf("?");if(-1!==i){let n=(0,l.parseQuery)(e);e=e.substring(0,i)+"?"+(0,l.buildQuery)({...n,...t})}else e+="?"+(0,l.buildQuery)(this.o.data)}let n={url:e,method:i,data:t};return h.log.splice(100),h.log.push(n),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(e,t=c.Config.prototype.defaultAjaxOptions){(0,n._)(this,"__async",new r.Async),(0,n._)(this,"xhr",void 0),(0,n._)(this,"options",void 0),(0,n._)(this,"__isFulfilled",!1),(0,n._)(this,"__activated",!1),(0,n._)(this,"__isDestructed",!1),this.options=(0,l.ConfigProto)(e||{},t),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}(0,n._)(h,"log",[]),(0,o.__decorate)([a.autobind],h.prototype,"destruct",null)},37102:function(e,t,i){"use strict";i(5266).Config.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr(){return new XMLHttpRequest}}},73714:function(e,t,i){"use strict";i.d(t,{Ajax:function(){return n.Ajax},Response:function(){return o.Response}});var n=i(17338),o=i(32855)},32855:function(e,t,i){"use strict";i.d(t,{Response:function(){return o}});var n=i(25045);class o{get url(){return this.request.url}async json(){return JSON.parse(this.body)}text(){return Promise.resolve(this.body)}async blob(){return this.body}constructor(e,t,i,o){(0,n._)(this,"status",void 0),(0,n._)(this,"statusText",void 0),(0,n._)(this,"request",void 0),(0,n._)(this,"body",void 0),this.request=e,this.status=t,this.statusText=i,this.body=o}}},42259:function(e,t,i){"use strict";i.d(t,{cursorInTheEdgeOfString:function(){return s},findCorrectCurrentNode:function(){return a},moveNodeInsideStart:function(){return r.moveNodeInsideStart}});var n=i(81937),o=i(23211),r=i(89817);function s(e,t,i,o){var r;let s=(null==(r=e.nodeValue)?void 0:r.length)?e.nodeValue:"";if(o&&s.replace((0,n.INVISIBLE_SPACE_REG_EXP_END)(),"").length>t)return!0;let a=(0,n.INVISIBLE_SPACE_REG_EXP_START)().exec(s);return i&&(a&&a[0].length<t||!a&&t>0)}function a(e,t,i,n,r,s){if((e=t.startContainer.childNodes[t.startOffset])||(e=t.startContainer.childNodes[t.startOffset-1],i=!0),e&&n&&!o.Dom.isText(e)){if(!i&&o.Dom.isText(e.previousSibling))e=e.previousSibling;else if(r){let t=s(e);for(;t;){if(t&&o.Dom.isText(t)){e=t;break}t=s(t)}}}if(e&&!n&&!o.Dom.isText(e)){let t=e,i=e;do t=t.firstChild,i=i.lastChild;while(t&&i&&!o.Dom.isText(t));t===i&&t&&o.Dom.isText(t)&&(e=t)}return{node:e,rightMode:i}}i(7470)},89817:function(e,t,i){"use strict";i.d(t,{moveNodeInsideStart:function(){return r}});var n=i(81937),o=i(23211);function r(e,t,i){let r=o.Dom.findSibling(t,i),s=o.Dom.findSibling(t,!i);for(;o.Dom.isElement(r)&&!o.Dom.isTag(r,n.INSEPARABLE_TAGS)&&o.Dom.isContentEditable(r,e.editor)&&(!s||!o.Dom.closest(t,o.Dom.isElement,e.editor));)i||!r.firstChild?r.appendChild(t):o.Dom.before(r.firstChild,t),r=o.Dom.sibling(t,i),s=o.Dom.sibling(t,!i)}},7470:function(e,t,i){"use strict";i.d(t,{moveTheNodeAlongTheEdgeOutward:function(){return o}});var n=i(23211);function o(e,t,i){let o=e;for(;o&&o!==i&&!(n.Dom.findSibling(o,t)||n.Dom.isBlock(o.parentElement));)(o=o.parentElement)&&o!==i&&(t?n.Dom.before(o,e):n.Dom.after(o,e))}},59841:function(e,t,i){"use strict";i.d(t,{CommitStyle:function(){return o.CommitStyle},Selection:function(){return n.Selection}});var n=i(98595),o=i(84578)},98595:function(e,t,i){"use strict";i.d(t,{Selection:function(){return m}});var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(65946),u=i(28686),c=i(28712),d=i(7470),h=i(84578),p=i(42259);class m{get j(){return this.jodit}errorNode(e){if(!a.Dom.isNode(e))throw(0,l.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,u.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:e}=this,t=(null==e?void 0:e.rangeCount)?e.getRangeAt(0):null;return!(!t||!a.Dom.isOrContains(this.area,t.startContainer))}createRange(e=!1){let t=this.doc.createRange();return e&&this.selectRange(t),t}remove(){let e=this.sel,t=this.current();if(e&&t)for(let t=0;t<e.rangeCount;t+=1)e.getRangeAt(t).deleteContents(),e.getRangeAt(t).collapse(!0)}clear(){var e,t;(null==(e=this.sel)?void 0:e.rangeCount)&&(null==(t=this.sel)||t.removeAllRanges())}removeNode(e){if(!a.Dom.isOrContains(this.j.editor,e,!0))throw(0,l.error)("Selection.removeNode can remove only editor's children");a.Dom.safeRemove(e),this.j.e.fire("afterRemoveNode",e)}insertCursorAtPoint(e,t){this.removeMarkers();try{let i=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){let n=this.doc.caretPositionFromPoint(e,t);if(n)return i.setStart(n.offsetNode,n.offset)}if(this.doc.caretRangeFromPoint){let n=this.doc.caretRangeFromPoint(e,t);(0,c.assert)(n,"Incorrect caretRangeFromPoint behaviour"),i.setStart(n.startContainer,n.startOffset)}})(),i.collapse(!0),this.selectRange(i),!0}catch(e){}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,l.$$)("span[data-"+r.MARKER_CLASS+"]",this.area)}removeMarkers(){a.Dom.safeRemove.apply(null,this.markers)}marker(e=!1,t){let i=null;t&&(i=t.cloneRange()).collapse(e);let n=this.j.createInside.span();return n.id=r.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),n.style.lineHeight="0",n.style.display="none",a.Dom.markTemporary(n),(0,l.attr)(n,"data-"+r.MARKER_CLASS,e?"start":"end"),n.appendChild(this.j.createInside.text(r.INVISIBLE_SPACE)),i&&a.Dom.isOrContains(this.area,e?i.startContainer:i.endContainer)&&i.insertNode(n),n}restore(){let e=!1,t=e=>`span[data-${r.MARKER_CLASS}=${e?"start":"end"}]`,i=this.area.querySelector(t(!0)),n=this.area.querySelector(t(!1));if(i){if(e=this.createRange(),n)e.setStartAfter(i),a.Dom.safeRemove(i),e.setEndBefore(n),a.Dom.safeRemove(n);else{let t=i.previousSibling;a.Dom.isText(t)?e.setStart(t,t.nodeValue?t.nodeValue.length:0):e.setStartBefore(i),a.Dom.safeRemove(i),e.collapse(!0)}e&&this.selectRange(e)}}fakes(){let e=this.sel;if(!e||!e.rangeCount)return[];let t=e.getRangeAt(0);(0,c.assert)(t,"Range is null");let i=t.cloneRange();i.collapse(!0);let n=this.j.createInside.fake();a.Dom.safeInsertNode(i,n),t.setStartBefore(n);let o=[n];if(!t.collapsed){let e=t.cloneRange();e.collapse(!1);let i=this.j.createInside.fake();a.Dom.safeInsertNode(e,i),t.setEndAfter(i),o.push(i)}return this.selectRange(t),o}restoreFakes(e){var t,i,n,o;let r=e.filter(e=>e.isConnected);if(!r.length)return;let[s,l]=r,u=this.createRange();u.setStartAfter(s),l&&u.setEndBefore(l),this.selectRange(u),(null==(t=s.parentNode)?void 0:t.firstChild)!==(null==(i=s.parentNode)?void 0:i.lastChild)&&a.Dom.safeRemove(s),(null==l||null==(n=l.parentNode)?void 0:n.firstChild)!==(null==l||null==(o=l.parentNode)?void 0:o.lastChild)&&a.Dom.safeRemove(l)}save(e=!1){if(this.hasMarkers)return[];let t=this.sel;if(!t||!t.rangeCount)return[];let i=[],n=t.rangeCount,o=[];for(let e=0;n>e;e+=1)if(o[e]=t.getRangeAt(e),o[e].collapsed){let t=this.marker(!0,o[e]);i[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{let t=this.marker(!0,o[e]),n=this.marker(!1,o[e]);i[e]={startId:t.id,endId:n.id,collapsed:!1,startMarker:t.outerHTML,endMarker:n.outerHTML}}if(!e){t.removeAllRanges();for(let e=n-1;e>=0;--e){let n=this.doc.getElementById(i[e].startId);if(n){if(i[e].collapsed)o[e].setStartAfter(n),o[e].collapse(!0);else if(o[e].setStartBefore(n),i[e].endId){let t=this.doc.getElementById(i[e].endId);t&&o[e].setEndAfter(t)}try{t.addRange(o[e].cloneRange())}catch(e){}}}}return i}focus(e={preventScroll:!0}){if(!this.isFocused()){let n=(0,l.getScrollParent)(this.j.container),o=null==n?void 0:n.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(e),this.win.focus(),this.area.focus(e),o&&(null==n?void 0:n.scrollTo)&&n.scrollTo(0,o);let r=this.sel,s=(null==r?void 0:r.rangeCount)?null==r?void 0:r.getRangeAt(0):null;if(!s||!a.Dom.isOrContains(this.area,s.startContainer)){let e=this.createRange();e.setStart(this.area,0),e.collapse(!0),this.selectRange(e,!1)}if(!this.j.editorIsActive){var t,i;null==(i=this.j)||null==(t=i.events)||t.fire("focus")}return!0}return!1}isCollapsed(){let e=this.sel;for(let t=0;e&&t<e.rangeCount;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(e=!0){if(this.j.getRealMode()!==r.MODE_WYSIWYG)return null;let t=this.sel;if(!t||0===t.rangeCount)return null;let i=t.getRangeAt(0),n=i.startContainer,o=!1;if(a.Dom.isTag(n,"br")&&t.isCollapsed)return n;if(!a.Dom.isText(n)){let r=(0,p.findCorrectCurrentNode)(n,i,o,t.isCollapsed,e,e=>o?e.lastChild:e.firstChild);n=r.node,o=r.rightMode}return n&&a.Dom.isOrContains(this.area,n)?n:null}insertNode(e,t=!0,i=!0){this.errorNode(e);let n=a.Dom.isFragment(e)?e.lastChild:e;this.j.e.fire("safeHTML",e),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let o=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",e),o&&o.rangeCount){let t=o.getRangeAt(0),{firstChild:i}=e;a.Dom.isOrContains(this.area,t.commonAncestorContainer)?a.Dom.safeInsertNode(t,e):this.area.appendChild(e),[()=>null==i?void 0:i.previousSibling,()=>null==i?void 0:i.previousSibling,()=>{var e;return null==i||null==(e=i.previousSibling)?void 0:e.lastChild}].forEach(e=>{let t=e();t&&a.Dom.isEmptyTextNode(t)&&a.Dom.safeRemove(t)})}else this.area.appendChild(e);let i=e=>{if(a.Dom.isBlock(e)){let t=e.lastChild;if(t)return i(t)}this.setCursorAfter(e)};t&&(a.Dom.isFragment(e)?n&&i(n):i(e)),this.j.o.scrollToPastedContent&&(0,l.scrollIntoViewIfNeeded)(null!=n?n:e,this.j.editor,this.doc)}),i&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",a.Dom.isFragment(e)?n:e)}insertHTML(e,t=!0){if(""===e)return;let i=this.j.createInside.div(),n=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),a.Dom.isNode(e)?i.appendChild(e):i.innerHTML=e.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",i.innerHTML))&&i.lastChild){for(;i.firstChild;)i.firstChild,n.appendChild(i.firstChild);this.insertNode(n,t,!1),this.j.__imdSynchronizeValues()}}insertImage(e,t=null,i=null){let n=(0,u.isString)(e)?this.j.createInside.element("img"):e;if((0,u.isString)(e)&&n.setAttribute("src",e),null!=i){let e=i.toString();e&&"auto"!==e&&0>String(e).indexOf("px")&&0>String(e).indexOf("%")&&(e+="px"),(0,l.attr)(n,"width",e)}t&&"object"==typeof t&&(0,l.css)(n,t);let o=()=>{(n.naturalHeight<n.offsetHeight||n.naturalWidth<n.offsetWidth)&&(n.style.width="",n.style.height=""),n.removeEventListener("load",o)};this.j.e.on(n,"load",o),n.complete&&o(),this.insertNode(n),this.j.e.fire("afterInsertImage",n)}eachSelection(e){var t;let i=this.sel;if(!i||!i.rangeCount)return;let n=i.getRangeAt(0),o=n.commonAncestorContainer;a.Dom.isHTMLElement(o)||(o=o.parentElement);let s=[],c=n.startOffset,d=o.childNodes.length,h=n.startContainer===this.area?o.childNodes[c<d?c:d-1]:n.startContainer,p=n.endContainer===this.area?o.childNodes[n.endOffset-1]:n.endContainer;a.Dom.isText(h)&&h===n.startContainer&&n.startOffset===(null==(t=h.nodeValue)?void 0:t.length)&&h.nextSibling&&(h=h.nextSibling),a.Dom.isText(p)&&p===n.endContainer&&0===n.endOffset&&p.previousSibling&&(p=p.previousSibling);let m=e=>{!e||e===o||a.Dom.isEmptyTextNode(e)||(0,u.isMarker)(e)||s.push(e)};m(h),h!==p&&a.Dom.isOrContains(o,h,!0)&&a.Dom.find(h,e=>(m(e),e===p||e&&e.contains&&e.contains(p)),o,!0,!1);let f=t=>{if(a.Dom.isOrContains(this.j.editor,t,!0)){if(t.nodeName.match(/^(UL|OL)$/))return(0,l.toArray)(t.childNodes).forEach(f);if(a.Dom.isTag(t,"li"))if(t.firstChild)t=t.firstChild;else{let e=this.j.createInside.text(r.INVISIBLE_SPACE);t.appendChild(e),t=e}e(t)}};0===s.length&&(a.Dom.isEmptyTextNode(h)&&s.push(h),h.firstChild&&s.push(h.firstChild)),s.forEach(f)}cursorInTheEdge(e,t,i=null){var n;let o=!e,r=null==(n=this.sel)?void 0:n.getRangeAt(0);if(null!=i||(i=this.current(!1)),!r||!i||!a.Dom.isOrContains(t,i,!0))return null;let s=e?r.startContainer:r.endContainer,u=e?r.startOffset:r.endOffset,c=e=>!!(e&&!a.Dom.isTag(e,"br")&&!a.Dom.isEmptyTextNode(e)&&!a.Dom.isTemporary(e)&&!(a.Dom.isElement(e)&&!0===this.j.e.fire("isInvisibleForCursor",e)));if(a.Dom.isText(s)){if((0,p.cursorInTheEdgeOfString)(s,u,e,o))return!1}else{let e=(0,l.toArray)(s.childNodes);if(o){if(e.slice(u).some(c))return!1}else if(e.slice(0,u).some(c))return!1}let d=i;for(;d&&d!==t;){let t=a.Dom.sibling(d,e);if(!t){d=d.parentNode;continue}if((d=t)&&c(d))return!1}return!0}cursorOnTheLeft(e,t){return this.cursorInTheEdge(!0,e,t)}cursorOnTheRight(e,t){return this.cursorInTheEdge(!1,e,t)}setCursorAfter(e){return this.setCursorNearWith(e,!1)}setCursorBefore(e){return this.setCursorNearWith(e,!0)}setCursorNearWith(e,t){if(this.errorNode(e),!a.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),n=null;if(a.Dom.isText(e))if(t)i.setStart(e,0);else{var o,r;i.setEnd(e,null!=(o=null==(r=e.nodeValue)?void 0:r.length)?o:0)}else n=this.j.createInside.fake(),t?i.setStartBefore(e):i.setEndAfter(e),i.collapse(t),a.Dom.safeInsertNode(i,n),i.selectNode(n);return i.collapse(t),this.selectRange(i),n}setCursorIn(e,t=!1){if(this.errorNode(e),!a.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),n=e,o=e;do{if(a.Dom.isText(n)||a.Dom.isTag(n,r.INSEPARABLE_TAGS))break;o=n,n=t?n.firstChild:n.lastChild}while(n);if(!n){let e=this.j.createInside.text(r.INVISIBLE_SPACE);a.Dom.isTag(o,r.INSEPARABLE_TAGS)?n=o:(o.appendChild(e),o=e)}let s=n||o;return a.Dom.isTag(s,r.INSEPARABLE_TAGS)?t||a.Dom.isTag(s,"br")?i.setStartBefore(s):i.setEndAfter(s):i.selectNodeContents(s),i.collapse(t),this.selectRange(i),o}selectRange(e,t=!0){let i=this.sel;return t&&!this.isFocused()&&this.focus(),i&&(i.removeAllRanges(),i.addRange(e)),this.j.e.fire("changeSelection"),this}select(e,t=!1){if(this.errorNode(e),!a.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange();return i[t?"selectNodeContents":"selectNode"](e),this.selectRange(i)}get html(){let e=this.sel;if(e&&e.rangeCount>0){let t=e.getRangeAt(0).cloneContents(),i=this.j.createInside.div();return i.appendChild(t),i.innerHTML}return""}*wrapInTagGen(e){if(this.isCollapsed()){let t=this.jodit.createInside.element("font",r.INVISIBLE_SPACE);this.insertNode(t,!1,!1),e&&e[0]&&t.appendChild(e[0]),yield t,a.Dom.unwrap(t);return}for(let e of((0,l.$$)("*[style*=font-size]",this.area).forEach(e=>{(0,l.attr)(e,"data-font-size",e.style.fontSize.toString()),e.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),(0,l.$$)("*[data-font-size]",this.area).forEach(e=>{let t=(0,l.attr)(e,"data-font-size");t&&(e.style.fontSize=t,(0,l.attr)(e,"data-font-size",null))}),(0,l.$$)('font[size="7"]',this.area))){let{firstChild:t,lastChild:i}=e;if(t&&t===i&&(0,u.isMarker)(t)){a.Dom.unwrap(e);continue}t&&(0,u.isMarker)(t)&&a.Dom.before(e,t),i&&(0,u.isMarker)(i)&&a.Dom.after(e,i),yield e,a.Dom.unwrap(e)}}wrapInTag(e){let t=[];for(let i of this.wrapInTagGen())try{if(i.firstChild&&i.firstChild===i.lastChild&&(0,u.isMarker)(i.firstChild))continue;(0,u.isFunction)(e)?e(i):t.push(a.Dom.replace(i,e,this.j.createInside))}finally{let e=i.parentNode;e&&(a.Dom.unwrap(i),a.Dom.isEmpty(e)&&a.Dom.unwrap(e))}return t}commitStyle(e){(0,c.assert)((0,l.size)(e)>0,"Need to pass at least one option"),new h.CommitStyle(e).apply(this.j)}splitSelection(e,t){if(!this.isCollapsed())return null;let i=this.createRange(),n=this.range;i.setStartBefore(e);let o=this.cursorOnTheRight(e,t),s=this.cursorOnTheLeft(e,t),l=this.j.createInside.element("br"),u=this.j.createInside.fake(),d=u.cloneNode();try{if(o||s){t?a.Dom.before(t,l):a.Dom.safeInsertNode(n,l);let e=(e,t)=>{let i=t(e);for(;i;){let e=t(i);if(i&&(a.Dom.isTag(i,"br")||a.Dom.isEmptyTextNode(i)))a.Dom.safeRemove(i);else break;i=e}};e(l,e=>e.nextSibling),e(l,e=>e.previousSibling),a.Dom.after(l,d),a.Dom.before(l,u),o?(i.setEndBefore(l),n.setEndBefore(l)):(i.setEndAfter(l),n.setEndAfter(l))}else i.setEnd(n.startContainer,n.startOffset);let h=i.extractContents(),p=e=>a.Dom.each(e,e=>a.Dom.isEmptyTextNode(e)&&a.Dom.safeRemove(e));(0,c.assert)(e.parentNode,"Splitting fails");try{if(p(h),p(e),e.parentNode.insertBefore(h,e),!t&&o&&(null==l?void 0:l.parentNode)){let e=this.createRange();e.setStartBefore(l),this.selectRange(e)}}catch(e){if(!r.IS_PROD)throw e}let m=e=>{var t,i,n;(null==e||null==(t=e.parentNode)?void 0:t.firstChild)===(null==e||null==(i=e.parentNode)?void 0:i.lastChild)&&(null==e||null==(n=e.parentNode)||n.appendChild(l.cloneNode()))};m(u),m(d)}finally{a.Dom.safeRemove(u),a.Dom.safeRemove(d)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:e}=this,t=e.cloneRange();if(!a.Dom.isOrContains(this.j.editor,e.commonAncestorContainer,!0))return this;let i=t=>{let i=this.j.createInside.fake(),n=e.cloneRange();return n.collapse(t),a.Dom.safeInsertNode(n,i),(0,d.moveTheNodeAlongTheEdgeOutward)(i,t,this.j.editor),i},n=i(!0),o=i(!1);t.setStartAfter(n),t.setEndBefore(o);let r=a.Dom.findSibling(n,!1),s=a.Dom.findSibling(o,!0);if(r!==s){let e=a.Dom.isElement(r)&&a.Dom.isOrContains(r,o),i=!e&&a.Dom.isElement(s)&&a.Dom.isOrContains(s,n);if(e||i){let i=e?r:s,l=i;for(;a.Dom.isElement(i);)(i=e?i.firstElementChild:i.lastElementChild)&&(e?a.Dom.isOrContains(i,o):a.Dom.isOrContains(i,n))&&(l=i);e?t.setStart(l,0):t.setEnd(l,l.childNodes.length)}}if(this.selectRange(t),a.Dom.safeRemove(n,o),this.isCollapsed())throw(0,l.error)("Selection is collapsed");return this}constructor(e){(0,n._)(this,"jodit",void 0),this.jodit=e,e.e.on("removeMarkers",()=>{this.removeMarkers()})}}(0,o.__decorate)([s.autobind],m.prototype,"createRange",null),(0,o.__decorate)([s.autobind],m.prototype,"focus",null),(0,o.__decorate)([s.autobind],m.prototype,"setCursorAfter",null),(0,o.__decorate)([s.autobind],m.prototype,"setCursorBefore",null),(0,o.__decorate)([s.autobind],m.prototype,"setCursorIn",null)},17481:function(e,t,i){"use strict";i.d(t,{extractSelectedPart:function(){return a}});var n=i(23211),o=i(23175),r=i(4040),s=i(71125);function a(e,t,i){let n=i.s.createRange(),r=(0,o.isMarker)(t.previousSibling)?t.previousSibling:t;n.setStartBefore(e),n.setEndBefore(r),l(e,n,!0);let s=(0,o.isMarker)(t.nextSibling)?t.nextSibling:t;n.setStartAfter(s),n.setEndAfter(e),l(e,n,!1)}function l(e,t,i){let o=t.extractContents();o.textContent&&(0,r.trim)(o.textContent).length||!o.firstChild||n.Dom.unwrap(o.firstChild),e.parentNode&&(0,s.call)(i?n.Dom.before:n.Dom.after,e,o)}},48729:function(e,t,i){"use strict";i.d(t,{FiniteStateMachine:function(){return a}});var n=i(25045),o=i(81937),r=i(85932),s=i(28712);class a{setState(e){(0,s.assert)(!this.__previewsStates.has(e),"Circled states"),this.__previewsStates.add(e),this.__state=e}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(e,t){let i=this.transitions[this.getState()][e];if(i){let e=i.call(this,t);return(0,s.assert)(e&&e!==t,"Action should return new value"),(0,s.assert)((0,r.isString)(e.next),"Value should contain the next state"),(0,s.assert)(e.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(e.next),o.IS_PROD||this.silent,e}throw Error(`invalid action: ${this.getState()}.${e.toString()}`)}constructor(e,t){(0,n._)(this,"transitions",void 0),(0,n._)(this,"__state",void 0),(0,n._)(this,"silent",void 0),(0,n._)(this,"__previewsStates",void 0),this.transitions=t,this.silent=!0,this.__previewsStates=new Set,this.setState(e)}}},10171:function(e,t,i){"use strict";i.d(t,{getSuitChild:function(){return s}});var n=i(23211),o=i(83653),r=i(73019);function s(e,t){let{firstChild:i}=t;for(;i&&!(0,o.isNormalNode)(i);)if(!(i=i.nextSibling))return null;return i&&!n.Dom.next(i,o.isNormalNode,t)&&(0,r.isSuitElement)(e,i,!1)?i:null}},19549:function(e,t,i){"use strict";i.d(t,{getSuitParent:function(){return function e(t,i,s){let{parentNode:a}=i;return a===s||!n.Dom.isHTMLElement(a)||n.Dom.next(i,o.isNormalNode,a)||n.Dom.prev(i,o.isNormalNode,a)?null:t.isElementCommit&&t.elementIsBlock&&!n.Dom.isBlock(a)?e(t,a,s):(0,r.isSuitElement)(t,a,!1)&&(!n.Dom.isBlock(a)||t.elementIsBlock)?a:t.isElementCommit&&!n.Dom.isBlock(a)?e(t,a,s):null}}});var n=i(23211),o=i(83653),r=i(73019)},9703:function(e,t,i){"use strict";i.d(t,{hasSameStyle:function(){return u},hasSameStyleKeys:function(){return c}});var n=i(81937),o=i(23211),r=i(18303),s=i(19147),a=i(28712),l=i(80991);function u(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(i=>{let n=(0,l.css)(e,i,!0);return""===n&&(""===t[i]||null==t[i])||!(0,r.isVoid)(n)&&""!==n&&!(0,r.isVoid)(t[i])&&(0,s.normalizeCssValue)(i,t[i]).toString().toLowerCase()===n.toString().toLowerCase()}))}if(n.globalDocument){let e=n.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(u(e,{color:"red"}),"Style test"),(0,a.assert)(u(e,{fontSize:null}),"Style test"),(0,a.assert)(u(e,{fontSize:""}),"Style test")}function c(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(t=>""!==(0,l.css)(e,t,!0)))}if(n.globalDocument){let e=n.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(c(e,{color:"red"}),"Style test"),(0,a.assert)(!c(e,{font:"Arial",color:"red"}),"Style test"),(0,a.assert)(!c(e,{border:"1px solid #ccc"}),"Style test")}},51640:function(e,t,i){"use strict";i.d(t,{FiniteStateMachine:function(){return o.FiniteStateMachine},extractSelectedPart:function(){return n.extractSelectedPart},getSuitChild:function(){return r.getSuitChild},getSuitParent:function(){return s.getSuitParent},isInsideInvisibleElement:function(){return a.isInsideInvisibleElement},suitableClosest:function(){return l.suitableClosest},toggleAttributes:function(){return c.toggleAttributes},toggleOrderedList:function(){return u.toggleOrderedList},unwrapChildren:function(){return d.unwrapChildren},wrap:function(){return h.wrap}});var n=i(17481),o=i(48729),r=i(10171),s=i(19549);i(9703);var a=i(39608);i(83653),i(95971);var l=i(73019),u=i(34582);i(97110);var c=i(82794),d=i(89081),h=i(73154);i(83335)},39608:function(e,t,i){"use strict";i.d(t,{isInsideInvisibleElement:function(){return o}});var n=i(23211);function o(e,t){return!!n.Dom.closest(e,["style","script"],t)}},83653:function(e,t,i){"use strict";i.d(t,{isNormalNode:function(){return r}});var n=i(23211),o=i(23175);function r(e){return!!(e&&!n.Dom.isEmptyTextNode(e)&&!n.Dom.isTemporary(e)&&!(0,o.isMarker)(e))}},95971:function(e,t,i){"use strict";i.d(t,{elementsEqualAttributes:function(){return l},isSameAttributes:function(){return a}});var n=i(18073),o=i(93640),r=i(28712),s=i(9703);function a(e,t){return!((e.attributes.length||(0,n.size)(t))&&(0,n.size)(t))||((0,r.assert)(t,"Attrs must be a non-empty object"),Object.keys(t).every(i=>"class"===i||"className"===i?e.classList.contains(t[i]):"style"===i?(0,s.hasSameStyle)(e,t[i]):(0,o.attr)(e,i)===t[i]))}function l(e,t){return e.attributes.length===t.attributes.length&&Array.from(e.attributes).every(e=>t.hasAttribute(e.name)&&t.getAttribute(e.name)===e.value)}},73019:function(e,t,i){"use strict";i.d(t,{isSameStyleChild:function(){return l},isSuitElement:function(){return s},suitableClosest:function(){return a}});var n=i(23211),o=i(9703),r=i(83653);function s(e,t,i,a=!0){var l;if(!t||!(0,r.isNormalNode)(t))return!1;let{element:u,elementIsDefault:c,options:d}=e;if(n.Dom.isList(t)&&e.elementIsList)return!0;let h=n.Dom.isTag(t,u);return!!(h&&!(c&&i)||(null==(l=d.attributes)?void 0:l.style)&&(a?(0,o.hasSameStyle)(t,d.attributes.style):(0,o.hasSameStyleKeys)(t,d.attributes.style))&&!e.elementIsList)||!h&&!i&&c&&n.Dom.isInlineBlock(t)}function a(e,t,i){return n.Dom.closest(t,t=>s(e,t,!0,!1),i)}function l(e,t){var i,n;let{element:s,options:a}=e;if(!t||!(0,r.isNormalNode)(t))return!1;let l=t.nodeName.toLowerCase()===s,u=!!((null==(i=a.attributes)?void 0:i.style)&&(0,o.hasSameStyleKeys)(t,null==(n=a.attributes)?void 0:n.style));return l&&u}},34582:function(e,t,i){"use strict";i.d(t,{toggleOrderedList:function(){return u}});var n=i(23211),o=i(28712),r=i(17481),s=i(82794),a=i(98394),l=i(97110);function u(e,t,i,n){if(!t)return n;let o=t.parentElement;if(!o)return n;let r=i.e.fire(`${a._PREFIX}BeforeToggleList`,n,e,o);if(void 0!==r)return r;let u=i.e.fire.bind(i.e,`${a._PREFIX}AfterToggleList`);if(n!==a.UNWRAP){let r=(0,s.toggleAttributes)(e,t.parentElement,i,a.INITIAL,!0)===a.CHANGE;if(n===a.REPLACE||r||o.tagName.toLowerCase()!==e.element){let n=c(a.REPLACE,o,t,i,e),r=(0,l.wrapList)(e,n,i);return u(a.REPLACE,r,e),a.REPLACE}}let d=c(a.UNWRAP,o,t,i,e);return u(a.UNWRAP,d,e),a.UNWRAP}function c(e,t,i,s,l){let u=s.e.fire(`${a._PREFIX}BeforeUnwrapList`,e,t,l);return u?((0,o.assert)(n.Dom.isHTMLElement(u),`${a._PREFIX}BeforeUnwrapList hook must return HTMLElement`),u):((0,r.extractSelectedPart)(t,i,s),(0,o.assert)(n.Dom.isHTMLElement(i.parentElement),"Element should be inside the list"),n.Dom.unwrap(i.parentElement),n.Dom.replace(i,"br"!==s.o.enter.toLowerCase()?s.o.enter:s.createInside.fragment(),s.createInside))}},97110:function(e,t,i){"use strict";i.d(t,{wrapList:function(){return a}});var n=i(23211),o=i(95971),r=i(82794),s=i(98394);function a(e,t,i){let a=i.e.fire(`${s._PREFIX}BeforeWrapList`,s.REPLACE,t,e),l=null!=a?a:n.Dom.replace(t,"li",i.createInside),u=l.previousElementSibling,c=l.nextElementSibling,d=n.Dom.isTag(u,e.element)?u:null;return null!=d||(d=n.Dom.isTag(c,e.element)?c:null),n.Dom.isList(d)&&(0,o.isSameAttributes)(d,e.options.attributes)||(d=i.createInside.element(e.element),(0,r.toggleAttributes)(e,d,i,s.INITIAL),n.Dom.before(l,d)),u===d?n.Dom.append(d,l):n.Dom.prepend(d,l),n.Dom.isTag(d.nextElementSibling,e.element)&&(0,o.elementsEqualAttributes)(d,d.nextElementSibling)&&(n.Dom.append(d,Array.from(d.nextElementSibling.childNodes)),n.Dom.safeRemove(d.nextElementSibling)),i.e.fire(`${s._PREFIX}AfterWrapList`,s.WRAP,d,e),d}},82794:function(e,t,i){"use strict";i.d(t,{toggleAttributes:function(){return f}});var n=i(81937),o=i(23211),r=i(28077),s=i(28686),a=i(19147),l=i(18073),u=i(74264),c=i(93640),d=i(80991),h=i(36400),p=i(98394);let m="toggleAttributes";function f(e,t,i,v,_=!1){if(!_&&e.isApplied(t,m))return v;_||e.setApplied(t,m);let{attributes:b}=e.options;return b&&(0,l.size)(b)>0&&Object.keys(b).forEach(m=>{var f,y,S;let w=b[m];switch(m){case"style":f=v,(0,c.assert)((0,s.isPlainObject)(w)&&(0,l.size)(w),"Style must be an object"),Object.keys(w).forEach(s=>{let l=t.style.getPropertyValue((0,u.kebabCase)(s)),c=w[s];if(""!==l||null!=c){let u,m;if((u=i.create.element(t.tagName.toLowerCase())).style.cssText=t.style.cssText,(function(e){var t;if(void 0!==(0,h.dataBind)(e,"shadowRoot"))return(0,h.dataBind)(e,"shadowRoot");let i=(0,r.getContainer)(e),o=n.globalDocument.createElement("iframe");(0,d.css)(o,{width:0,height:0,position:"absolute",border:0}),o.src="about:blank",i.appendChild(o);let s=null==(t=o.contentWindow)?void 0:t.document,a=s?s.body:e.od.body;return(0,h.dataBind)(e,"shadowRoot",a),a})(i).appendChild(u),m=(0,d.css)(u,s),o.Dom.safeRemove(u),m===(0,a.normalizeCssValue)(s,c)){if(!l)return;_||(0,d.css)(t,s,null),f=g(e,t,f=p.UNSET);return}f=p.CHANGE,_||((0,d.css)(t,s,c),f=g(e,t,f))}}),v=f;break;case"className":case"class":let C;y=v,(0,c.assert)((0,s.isString)(w),"Class name must be a string"),C=i.e.fire.bind(i.e,`${p._PREFIX}AfterToggleAttribute`),t.classList.contains(w.toString())?(y=p.UNSET,_||(t.classList.remove(w),0===t.classList.length&&((0,c.attr)(t,"class",null),C(y,t,"class",null)))):(y=p.CHANGE,_||(t.classList.add(w),C(y,t,"class",w))),v=y;break;default:let k;S=v,(0,c.assert)((0,s.isString)(w)||(0,s.isNumber)(w)||(0,s.isBoolean)(w)||null==w,"Attribute value must be a string or number or boolean or null"),k=i.e.fire.bind(i.e,`${p._PREFIX}AfterToggleAttribute`),(0,c.attr)(t,m)===w?(_||(0,c.attr)(t,m,null),S=p.UNSET,_||k(S,t,m,w)):(S=p.CHANGE,_||((0,c.attr)(t,m,w),k(S,t,m,w))),v=S}}),v}function g(e,t,i){return(0,c.attr)(t,"style")||((0,c.attr)(t,"style",null),t.tagName.toLowerCase()===e.defaultTag&&(o.Dom.unwrap(t),i=p.UNWRAP)),i}},89081:function(e,t,i){"use strict";i.d(t,{unwrapChildren:function(){return a}});var n=i(23211),o=i(93640),r=i(9703),s=i(73019);function a(e,t){var i;let a,l=[],u=[],c=null==(i=e.options.attributes)?void 0:i.style;if(t.firstChild){let i=n.Dom.eachGen(t),d=i.next();for(;!d.done;){let t=d.value;(0,s.isSuitElement)(e,t,!0)&&(!c||(0,r.hasSameStyleKeys)(t,c))?(void 0===a&&(a=!0),l.push(t)):c&&(0,s.isSameStyleChild)(e,t)?(void 0===a&&(a=!1),u.push(()=>{(0,o.css)(t,Object.keys(c).reduce((e,t)=>(e[t]=null,e),{})),(0,o.attr)(t,"style")||(0,o.attr)(t,"style",null),(0,o.attr)(t,"style")||t.nodeName.toLowerCase()!==e.element||l.push(t)})):n.Dom.isEmptyTextNode(t)||void 0!==a||(a=!1),d=i.next()}}return u.forEach(e=>e()),l.forEach(n.Dom.unwrap),!!a}},83335:function(e,t,i){"use strict";i.d(t,{wrapUnwrappedText:function(){return r}});var n=i(23211),o=i(23175);function r(e,t,i){let r=i.editor,s=i.createInside,a=(e,t="previousSibling")=>{let s=e,a=e;for(;a&&!(0,o.isMarker)(a)&&!n.Dom.isTag(a,i.o.enter)&&(s=a,a=a[t]?a[t]:a.parentNode&&!n.Dom.isBlock(a.parentNode)&&a.parentNode!==r?a.parentNode:null,!n.Dom.isBlock(a)););return s},l=a(t),u=a(t,"nextSibling"),c=i.s.createRange();c.setStartBefore(l),c.setEndAfter(u);let d=c.extractContents(),h=s.element(e.element);return h.appendChild(d),n.Dom.safeInsertNode(c,h),e.elementIsBlock&&n.Dom.isEmpty(h)&&!n.Dom.isTag(h.firstElementChild,"br")&&h.appendChild(s.element("br")),h}},73154:function(e,t,i){"use strict";i.d(t,{wrap:function(){return a}});var n=i(27795),o=i(7909),r=i(97110),s=i(83335);function a(e,t,i){var a,u,c;let d=(a=e,u=t,c=i,a.elementIsBlock?n.Dom.up(u,e=>n.Dom.isBlock(e)&&!n.Dom.isTag(e,l),c.editor)||(0,s.wrapUnwrappedText)(a,u,c):((0,o.attr)(u,"size",null),u));return e.elementIsList?(0,r.wrapList)(e,d,i):n.Dom.replace(d,e.element,i.createInside,!0)}let l=new Set(["td","th","tr","tbody","table","li","ul","ol"])},96127:function(e,t,i){"use strict";i.d(t,{ApplyStyle:function(){return s}});var n=i(51640),o=i(98394),r=i(78462);function s(e,t){var i;let{s:s,editor:a}=e;null==(i=a.firstChild)||i.normalize();let l=s.fakes(),u=e.s.wrapInTagGen(l),c=u.next();if(c.done)return;let d={collapsed:s.isCollapsed(),mode:o.INITIAL,element:c.value,next:r.states.START,jodit:e,style:t};for(;c&&!c.done;){let e=new n.FiniteStateMachine(r.states.START,r.transactions);for(d.element=c.value;e.getState()!==r.states.END;)d=e.dispatch("exec",d);c=u.next()}s.restoreFakes(l)}},84578:function(e,t,i){"use strict";i.d(t,{CommitStyle:function(){return l}});var n=i(25045),o=i(81937),r=i(57821),s=i(98394),a=i(96127);class l{isApplied(e,t){let i=this.__applyMap.get(e);return!!i&&i[t]}setApplied(e,t){var i;let n=null!=(i=this.__applyMap.get(e))?i:{};n[t]=!0,this.__applyMap.set(e,n)}get elementIsList(){return!!(this.options.element&&o.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&o.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(e){let{hooks:t}=this.options,i=t?Object.keys(t):[];try{i.forEach(i=>{e.e.on((0,r.camelCase)(s._PREFIX+"_"+i),t[i])}),(0,a.ApplyStyle)(e,this)}finally{i.forEach(i=>{e.e.off((0,r.camelCase)(s._PREFIX+"_"+i),t[i])}),this.__applyMap=new WeakMap}e.synchronizeValues(),e.e.fire("afterCommitStyle",this)}constructor(e){(0,n._)(this,"options",void 0),(0,n._)(this,"__applyMap",void 0),this.options=e,this.__applyMap=new WeakMap}}},98394:function(e,t,i){"use strict";i.d(t,{CHANGE:function(){return r},INITIAL:function(){return a},REPLACE:function(){return l},UNSET:function(){return s},UNWRAP:function(){return o},WRAP:function(){return n},_PREFIX:function(){return u}});let n="wrap",o="unwrap",r="change",s="unset",a="initial",l="replace",u="commitStyle"},78462:function(e,t,i){"use strict";i.d(t,{states:function(){return l},transactions:function(){return u}});var n=i(81937),o=i(23211),r=i(28712),s=i(51640),a=i(98394);let l={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},u={[l.START]:{exec(e){let{element:t,jodit:i,style:n,mode:r,collapsed:u}=e;if((0,s.isInsideInvisibleElement)(t,i.editor)||!u&&o.Dom.isEmptyContent(t))return{...e,next:l.END};let c=(0,s.getSuitParent)(n,t,i.editor)||(0,s.getSuitChild)(n,t);if(c)return{...e,next:l.ELEMENT,element:c};let d=(0,s.suitableClosest)(n,t,i.editor);return n.elementIsList&&o.Dom.isList(d)?{...e,next:l.LIST}:d?{...e,next:l.EXTRACT}:{...e,next:r!==a.UNWRAP?l.UNWRAP_CHILDREN:l.END}}},[l.LIST]:{exec(e){let{element:t,jodit:i,mode:r}=e;if(r!==a.INITIAL&&r!==a.UNWRAP&&r!==a.REPLACE)return{...e,next:l.END};let s=o.Dom.closest(t,"li",i.editor);return s&&o.Dom.closest(t,n.LIST_TAGS,i.editor)?{...e,element:s,next:l.TOGGLE_LIST}:{...e,next:l.END}}},[l.TOGGLE_LIST]:{exec(e){return{...e,mode:(0,s.toggleOrderedList)(e.style,e.element,e.jodit,e.mode),next:l.END}}},[l.EXTRACT]:{exec(e){var t;let{element:i,jodit:n,style:a}=e,u=(0,s.suitableClosest)(a,i,n.editor);return((0,r.assert)(u,"This place should have an element"),!a.elementIsBlock&&(null==(t=a.options.attributes)?void 0:t.style)&&o.Dom.isBlock(u))?{...e,next:l.WRAP}:(a.elementIsBlock||(0,s.extractSelectedPart)(u,i,n),{...e,element:u,next:l.ELEMENT})}},[l.UNWRAP_CHILDREN]:{exec(e){let{element:t,style:i}=e;return(0,s.unwrapChildren)(i,t)?{...e,mode:a.UNWRAP,next:l.END}:{...e,next:l.WRAP}}},[l.WRAP]:{exec(e){let{element:t,jodit:i,style:n}=e,o=(0,s.wrap)(n,t,i);return{...e,next:n.elementIsList?l.END:l.CHANGE,mode:a.WRAP,element:o}}},[l.ELEMENT]:{exec(e){let{style:t,element:i,jodit:n}=e;return(0,s.toggleAttributes)(t,i,n,a.INITIAL,!0)!==a.INITIAL?{...e,next:l.CHANGE}:o.Dom.isTag(i,t.element)?{...e,next:l.UNWRAP}:{...e,next:l.END}}},[l.CHANGE]:{exec(e){let{style:t,element:i,jodit:n,mode:r}=e,u=(0,s.toggleAttributes)(t,i,n,e.mode);return r!==a.WRAP&&u===a.UNSET&&!i.attributes.length&&o.Dom.isTag(i,t.element)?{...e,next:l.UNWRAP}:{...e,mode:u,next:l.END}}},[l.UNWRAP]:{exec(e){return e.element.attributes.length&&o.Dom.isTag(e.element,e.style.element)?{...e,next:l.REPLACE_DEFAULT}:(o.Dom.unwrap(e.element),{...e,mode:a.UNWRAP,next:l.END})}},[l.REPLACE_DEFAULT]:{exec(e){return o.Dom.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),{...e,mode:a.REPLACE,next:l.END}}},[l.END]:{exec(e){return e}}}},8006:function(e,t,i){"use strict";i.d(t,{AsyncStorage:function(){return u}});var n=i(25045),o=i(57821),r=i(91162),s=i(59807),a=i(9505),l=i(24475);class u{async set(e,t){let i=await this.provider;return await i.set((0,o.camelCase)(this.prefix+e),t),this}async delete(e){let t=await this.provider;return await t.delete((0,o.camelCase)(this.prefix+e)),this}async get(e){return(await this.provider).get((0,o.camelCase)(this.prefix+e))}async exists(e){return(await this.provider).exists((0,o.camelCase)(this.prefix+e))}async clear(){let e=await this.provider;return await e.clear(),this}async close(){let e=await this.provider;"close"in e&&"function"==typeof e.close&&await e.close()}static makeStorage(e=!1,t){let i;return"localStorage"===e||"sessionStorage"===e?(0,s.canUsePersistentStorage)(e)&&(i=new s.LocalStorageProvider(l.StorageKey+(t||""),e)):("indexedDB"===e||!0===e)&&(i=(0,r.canUseIndexedDB)().then(e=>e?new r.IndexedDBProvider(l.StorageKey+(t||""),"keyValueStore"):new a.MemoryStorageProvider)),i||(i=new a.MemoryStorageProvider),new u(Promise.resolve(i),t)}constructor(e,t){(0,n._)(this,"provider",void 0),(0,n._)(this,"prefix",void 0),this.provider=e,this.prefix=l.StorageKey,t&&(this.prefix+=t)}}},91162:function(e,t,i){"use strict";i.d(t,{IndexedDBProvider:function(){return r},canUseIndexedDB:function(){return l},clearUseIndexedDBCache:function(){return a}});var n=i(25045),o=i(81937);class r{getDB(){return this.dbPromise||(this.dbPromise=new Promise((e,t)=>{let i=indexedDB.open(this.dbName,this.DB_VERSION);i.onerror=()=>{t(i.error)},i.onsuccess=()=>{e(i.result)},i.onupgradeneeded=e=>{let t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName)}})),this.dbPromise}async performTransaction(e,t){try{let i=(await this.getDB()).transaction([this.storeName],e).objectStore(this.storeName),n=t(i);return new Promise((e,t)=>{n.onsuccess=()=>{e(n.result)},n.onerror=()=>{t(n.error)}})}catch(e){return Promise.reject(e)}}async set(e,t){try{await this.performTransaction("readwrite",i=>i.put(t,e))}catch(e){o.IS_PROD}return this}async delete(e){try{await this.performTransaction("readwrite",t=>t.delete(e))}catch(e){}return this}async get(e){try{return await this.performTransaction("readonly",t=>t.get(e))}catch(e){return}}async exists(e){try{let t=await this.performTransaction("readonly",t=>t.get(e));return void 0!==t}catch(e){return!1}}async clear(){try{await this.performTransaction("readwrite",e=>e.clear())}catch(e){}return this}async close(){if(this.dbPromise){try{(await this.dbPromise).close()}catch(e){}this.dbPromise=null}}async keys(){try{let e=await this.performTransaction("readonly",e=>e.getAllKeys());return e&&"object"==typeof e&&"then"in e&&(e=await e),e.map(e=>String(e))}catch(e){return[]}}async values(){try{let e=await this.performTransaction("readonly",e=>e.getAll());return e&&"object"==typeof e&&"then"in e&&(e=await e),e}catch(e){return[]}}async entries(){try{let[e,t]=await Promise.all([this.keys(),this.values()]);return e.map((e,i)=>[e,t[i]])}catch(e){return[]}}constructor(e="JoditDB",t="keyValueStore"){(0,n._)(this,"dbName",void 0),(0,n._)(this,"dbPromise",void 0),(0,n._)(this,"DB_VERSION",void 0),(0,n._)(this,"storeName",void 0),this.dbName=e,this.dbPromise=null,this.DB_VERSION=1,this.storeName=t}}let s=null;function a(){s=null}async function l(){if(null!=s)return s;try{if("u"<typeof indexedDB)return s=!1,!1;let e="___Jodit___"+Math.random().toString(),t=indexedDB.open(e);return s=await new Promise(i=>{t.onerror=()=>{i(!1)},t.onsuccess=()=>{indexedDB.deleteDatabase(e),i(!0)}})}catch(e){return s=!1,!1}}},59807:function(e,t,i){"use strict";i.d(t,{LocalStorageProvider:function(){return r},canUsePersistentStorage:function(){return o}});var n=i(25045);let o=(e="localStorage")=>{let t=new Map;if(t.has(e))return t.get(e);let i="___Jodit___"+Math.random().toString(),n="sessionStorage"===e?sessionStorage:localStorage;try{n.setItem(i,"1");let o="1"===n.getItem(i);return n.removeItem(i),t.set(e,o),o}catch(e){}return t.set(e,!1),!1};class r{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(e,t){try{let i=this.storage.getItem(this.rootKey),n=i?JSON.parse(i):{};n[e]=t,this.storage.setItem(this.rootKey,JSON.stringify(n))}catch(e){}return this}delete(e){try{this.storage.removeItem(this.rootKey)}catch(e){}return this}get(e){try{let t=this.storage.getItem(this.rootKey),i=t?JSON.parse(t):{};return void 0!==i[e]?i[e]:void 0}catch(e){}}exists(e){return null!=this.get(e)}clear(){try{this.storage.removeItem(this.rootKey)}catch(e){}return this}constructor(e,t="localStorage"){(0,n._)(this,"rootKey",void 0),(0,n._)(this,"strategy",void 0),this.rootKey=e,this.strategy=t}}},9505:function(e,t,i){"use strict";i.d(t,{MemoryStorageProvider:function(){return o}});var n=i(25045);class o{set(e,t){return this.data.set(e,t),this}delete(e){return this.data.delete(e),this}get(e){return this.data.get(e)}exists(e){return this.data.has(e)}clear(){return this.data.clear(),this}constructor(){(0,n._)(this,"data",new Map)}}},25222:function(e,t,i){"use strict";i.d(t,{AsyncStorage:function(){return n.AsyncStorage},IndexedDBProvider:function(){return o.IndexedDBProvider},LocalStorageProvider:function(){return r.LocalStorageProvider},MemoryStorageProvider:function(){return s.MemoryStorageProvider},Storage:function(){return a.Storage},StorageKey:function(){return a.StorageKey},canUseIndexedDB:function(){return o.canUseIndexedDB},canUsePersistentStorage:function(){return r.canUsePersistentStorage},clearUseIndexedDBCache:function(){return o.clearUseIndexedDBCache}});var n=i(8006),o=i(91162),r=i(59807),s=i(9505),a=i(24475)},24475:function(e,t,i){"use strict";i.d(t,{Storage:function(){return l},StorageKey:function(){return a}});var n=i(25045),o=i(57821),r=i(59807),s=i(9505);let a="Jodit_";class l{set(e,t){return this.provider.set((0,o.camelCase)(this.prefix+e),t),this}delete(e){return this.provider.delete((0,o.camelCase)(this.prefix+e)),this}get(e){return this.provider.get((0,o.camelCase)(this.prefix+e))}exists(e){return this.provider.exists((0,o.camelCase)(this.prefix+e))}clear(){return this.provider.clear(),this}static makeStorage(e=!1,t){let i;return"localStorage"===e||"sessionStorage"===e?(0,r.canUsePersistentStorage)(e)&&(i=new r.LocalStorageProvider(a+(t||""),e)):!0===e&&(0,r.canUsePersistentStorage)("localStorage")&&(i=new r.LocalStorageProvider(a+(t||""))),i||(i=new s.MemoryStorageProvider),new l(i,t)}constructor(e,t){(0,n._)(this,"provider",void 0),(0,n._)(this,"prefix",void 0),this.provider=e,this.prefix=a,t&&(this.prefix+=t)}}},80512:function(e,t,i){"use strict";i.d(t,{Dlgs:function(){return a}});var n=i(28077),o=i(28686),r=i(71125),s=i(37333);class a{dlg(e){let t=(0,n.getPopupViewRoot)(this.o,this.container,this.od.body),i=new s.Dialog({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:t,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...e});return(0,r.markOwner)(this,i.container),i.parent=this,i.bindDestruct(this)}confirm(e,t,i){return e=l(e,this),t=l(t,this),s.Confirm.call(this.dlg({closeOnClickOverlay:!0}),e,t,i)}prompt(e,t,i,n,o){return e=l(e,this),t=l(t,this),n=l(n,this),s.Prompt.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,n,o)}alert(e,t,i,n){return e=l(e,this),t=l(t,this),s.Alert.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,n)}}function l(e,t){return(0,o.isString)(e)&&!(0,o.isHTML)(e)&&(e=t.i18n(e)),e}},23183:function(e,t,i){"use strict";i.d(t,{Elms:function(){return o}});var n=i(88475);class o{getElm(e){return this.container.querySelector(`.${this.getFullElName(e)}`)}getElms(e){return(0,n.toArray)(this.container.querySelectorAll(`.${this.getFullElName(e)}`))}}},81987:function(e,t,i){"use strict";i.d(t,{Mods:function(){return o}});var n=i(18303);class o{afterSetMod(e,t){}setMod(e,t,i){e=e.toLowerCase();let o=this.mods[e];if(o===t)return this;let r=`${this.componentName}_${e}_`,s=(i||this.container).classList;return null!=o&&s.remove(`${r}${o.toString().toLowerCase()}`),(0,n.isVoid)(t)||""===t||s.add(`${r}${t.toString().toLowerCase()}`),this.mods[e]=t,this.afterSetMod(e,t),this}getMod(e){var t;return null!=(t=this.mods[e])?t:null}}},53681:function(e,t,i){"use strict";i.d(t,{Button:function(){return _},UIButton:function(){return v},UIButtonState:function(){return g}});var n=i(25045),o=i(31635),r=i(69364),s=i(51676),a=i(91672),l=i(68616),u=i(23211),c=i(91565),d=i(85932),h=i(28712),p=i(7909),m=i(96007),f=i(29434);let g=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0});class v extends m.UIElement{className(){return"UIButton"}setState(e){return Object.assign(this.state,e),this}get text(){let e=this.getElm("text");return(0,h.assert)(e,"Text element not found"),e}get icon(){let e=this.getElm("icon");return(0,h.assert)(e,"Icon element not found"),e}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,p.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,p.attr)(this.container,"role",this.state.role)}updateSize(){let e=(0,a.getComponentClass)("UIList"),t=this.closest(e);if(t){this.state.size=t.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text),this.updateAriaLabel()}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,p.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,p.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,p.attr)(this.container,"data-ref",this.state.name),(0,p.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){let e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,p.attr)(this.container,"title",e),(0,p.attr)(this.container,"aria-label",e),this.updateAriaLabel()}updateAriaLabel(){let e=this.state.text.trim().length>0,t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,p.attr)(this.container,"aria-label",t),(0,p.attr)(this.button,"aria-label",e?null:t)}onChangeTabIndex(){(0,p.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let e=this.get("j.o.textIcons");if(!0===e||(0,c.isFunction)(e)&&e(this.state.name))return;u.Dom.detach(this.icon);let t=f.Icon.makeIcon(this.j,this.state.icon);t&&this.icon.appendChild(t)}focus(){this.container.focus()}isFocused(){let{activeElement:e}=this.od;return!!(e&&u.Dom.isOrContains(this.container,e))}createContainer(){let e=this.componentName,t=this.j.c.element("button",{class:e,type:"button",role:"button",ariaPressed:!1}),i=this.j.c.span(e+"__icon"),n=this.j.c.span(e+"__text");return t.appendChild(i),t.appendChild(n),t}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(e){return this.actionHandlers.push(e),this}__onActionFire(e){e.buffer={actionTrigger:this},this.actionHandlers.forEach(t=>t.call(this,e)),this.j.e.fire(this,"click",e)}constructor(e,t){super(e),(0,n._)(this,"isButton",!0),(0,n._)(this,"state",g()),(0,n._)(this,"button",void 0),(0,n._)(this,"actionHandlers",[]),this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),t&&this.hookStatus(r.STATUSES.ready,()=>{this.setState(t)})}}function _(e,t,i,n){let o=new v(e);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,(0,d.isString)(t)?(o.state.icon.name=t,o.state.name=t,n&&(o.state.variant=n),i&&(o.state.text=i)):o.setState(t),o}(0,o.__decorate)([s.cache],v.prototype,"text",null),(0,o.__decorate)([s.cache],v.prototype,"icon",null),(0,o.__decorate)([(0,l.watch)("state.size",{immediately:!1})],v.prototype,"onChangeSize",null),(0,o.__decorate)([(0,l.watch)("state.type",{immediately:!1})],v.prototype,"onChangeType",null),(0,o.__decorate)([(0,l.watch)("state.role",{immediately:!1})],v.prototype,"onChangeRole",null),(0,o.__decorate)([(0,l.watch)("parentElement")],v.prototype,"updateSize",null),(0,o.__decorate)([(0,l.watch)("state.variant",{immediately:!1})],v.prototype,"onChangeStatus",null),(0,o.__decorate)([(0,l.watch)("state.text",{immediately:!1})],v.prototype,"onChangeText",null),(0,o.__decorate)([(0,l.watch)("state.text",{immediately:!1})],v.prototype,"onChangeTextSetMode",null),(0,o.__decorate)([(0,l.watch)("state.disabled")],v.prototype,"onChangeDisabled",null),(0,o.__decorate)([(0,l.watch)("state.activated")],v.prototype,"onChangeActivated",null),(0,o.__decorate)([(0,l.watch)("state.name",{immediately:!1})],v.prototype,"onChangeName",null),(0,o.__decorate)([(0,l.watch)("state.tooltip",{immediately:!1})],v.prototype,"onChangeTooltip",null),(0,o.__decorate)([(0,l.watch)("state.tabIndex",{immediately:!1})],v.prototype,"onChangeTabIndex",null),(0,o.__decorate)([(0,l.watch)("state.icon",{immediately:!1})],v.prototype,"onChangeIcon",null),(0,o.__decorate)([s.cacheHTML],v.prototype,"createContainer",null),(0,o.__decorate)([(0,l.watch)("button:click")],v.prototype,"__onActionFire",null),v=(0,o.__decorate)([a.component],v)},15367:function(e,t,i){"use strict";i.d(t,{UIButtonGroup:function(){return u}});var n=i(25045),o=i(31635),r=i(91672),s=i(28712),a=i(53681),l=i(63468);class u extends l.UIGroup{className(){return"UIButtonGroup"}render(e){return`<div>
8
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(self,function(){var e={5266:function(e,t,i){"use strict";i.d(t,{Config:function(){return s}});var n=i(25045),o=i(81937);let r={};class s{static get defaultOptions(){return s.__defaultOptions||(s.__defaultOptions=new s),s.__defaultOptions}constructor(){(0,n._)(this,"cache",!0),(0,n._)(this,"defaultTimeout",100),(0,n._)(this,"namespace",""),(0,n._)(this,"safeMode",!1),(0,n._)(this,"width","auto"),(0,n._)(this,"height","auto"),(0,n._)(this,"safePluginsList",["about","enter","backspace","size","bold","hotkeys"]),(0,n._)(this,"commandToHotkeys",void 0),(0,n._)(this,"license",""),(0,n._)(this,"preset","custom"),(0,n._)(this,"presets",{inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}}),(0,n._)(this,"ownerDocument",o.globalDocument),(0,n._)(this,"ownerWindow",o.globalWindow),(0,n._)(this,"shadowRoot",null),(0,n._)(this,"zIndex",0),(0,n._)(this,"readonly",!1),(0,n._)(this,"disabled",!1),(0,n._)(this,"activeButtonsInReadOnly",["source","fullsize","print","about","dots","selectall"]),(0,n._)(this,"allowCommandsInReadOnly",["selectall","preview","print"]),(0,n._)(this,"toolbarButtonSize","middle"),(0,n._)(this,"allowTabNavigation",!1),(0,n._)(this,"inline",!1),(0,n._)(this,"theme","default"),(0,n._)(this,"saveModeInStorage",!1),(0,n._)(this,"editorClassName",!1),(0,n._)(this,"className",!1),(0,n._)(this,"style",!1),(0,n._)(this,"containerStyle",!1),(0,n._)(this,"styleValues",{}),(0,n._)(this,"triggerChangeEvent",!0),(0,n._)(this,"direction",""),(0,n._)(this,"language","auto"),(0,n._)(this,"debugLanguage",!1),(0,n._)(this,"i18n",!1),(0,n._)(this,"tabIndex",-1),(0,n._)(this,"toolbar",!0),(0,n._)(this,"statusbar",!0),(0,n._)(this,"showTooltip",!0),(0,n._)(this,"showTooltipDelay",200),(0,n._)(this,"useNativeTooltip",!1),(0,n._)(this,"defaultActionOnPaste",o.INSERT_AS_HTML),(0,n._)(this,"enter",o.PARAGRAPH),(0,n._)(this,"iframe",!1),(0,n._)(this,"editHTMLDocumentMode",!1),(0,n._)(this,"enterBlock","br"!==this.enter?this.enter:o.PARAGRAPH),(0,n._)(this,"defaultMode",o.MODE_WYSIWYG),(0,n._)(this,"useSplitMode",!1),(0,n._)(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"]}),(0,n._)(this,"colorPickerDefaultTab","background"),(0,n._)(this,"imageDefaultWidth",300),(0,n._)(this,"removeButtons",[]),(0,n._)(this,"disablePlugins",[]),(0,n._)(this,"extraPlugins",[]),(0,n._)(this,"basePath",void 0),(0,n._)(this,"extraButtons",[]),(0,n._)(this,"extraIcons",{}),(0,n._)(this,"createAttributes",{table:{style:"border-collapse:collapse;width: 100%;"}}),(0,n._)(this,"sizeLG",900),(0,n._)(this,"sizeMD",700),(0,n._)(this,"sizeSM",400),(0,n._)(this,"buttons",[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{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:[]}]),(0,n._)(this,"controls",void 0),(0,n._)(this,"events",{}),(0,n._)(this,"textIcons",!1),(0,n._)(this,"popupRoot",null),(0,n._)(this,"showBrowserColorPicker",!0),Object.assign(this,r)}}(0,n._)(s,"__defaultOptions",void 0),r=s.prototype,s.prototype.controls={}},24735:function(e,t,i){"use strict";i.d(t,{Async:function(){return f}});var n=i(25045),o=i(81937),r=i(61077),s=i(72068),a=i(91565),l=i(72412),u=i(62101),c=i(52100),d=i(85932),h=i(18303),p=i(28712),m=i(14228);class f{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let n={};(0,h.isVoid)(t)&&(t=0),(0,l.isNumber)(t)||(t=(n=t).timeout||0),n.label&&this.clearLabel(n.label);let o=(0,r.setTimeout)(e,t,...i),s=n.label||o;return this.timers.set(s,o),this.__callbacks.set(s,e),o}updateTimeout(e,t){if((0,p.assert)(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;let i=this.__callbacks.get(e);return(0,p.assert)((0,a.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,r.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,d.isString)(e))return this.clearLabel(e);(0,r.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let n=0,o=!1,l=[],d=(...t)=>{if(!o){n=0;let i=e(...t);if(o=!0,l.length){let e=()=>{l.forEach(e=>e()),l.length=0};(0,c.isPromise)(i)?i.finally(e):e()}}},h=(...s)=>{o=!1,t?(!n&&i&&d(...s),(0,r.clearTimeout)(n),n=this.setTimeout(()=>d(...s),(0,a.isFunction)(t)?t():t),this.timers.set(e,n)):d(...s)};return(0,u.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{l.push(e)}).catch(e=>{if((0,s.isAbortError)(e))return null;throw e});return h(...e),t}:h}microDebounce(e,t=!1){let i,n=!1,o=!0;return(...r)=>{if(i=r,n){o=!0;return}o=!0,t&&(o=!1,e(...i)),n=!0,this.__queueMicrotaskNative(()=>{n=!1,!this.isDestructed&&o&&e(...i)})}}throttle(e,t,i=!1){let n=null,o,r,s;return(...i)=>{(o=!0,s=i,t)?n||(r=()=>{o?(e(...s),o=!1,n=this.setTimeout(r,(0,a.isFunction)(t)?t():t),this.timers.set(r,n)):n=null})():e(...s)}}promise(e){let t=()=>{},i=new Promise((i,n)=>{t=()=>n((0,m.abort)("Abort async")),this.promisesRejections.add(t),e(i,n)});return!i.finally&&"u">typeof process&&!o.IS_ES_NEXT&&(i.finally=e=>(i.then(e).catch(e),i)),i.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),i.rejectCallback=t,i}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise(t=>{e.then(e=>(t("fulfilled"),e),e=>{throw t("rejected"),e}),this.setTimeout(()=>{t("pending")},100)});let t={};return Promise.race([e,t]).then(e=>e===t?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(e,t={timeout:100}){let i=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(i),i}requestIdlePromise(e){return this.promise(t=>{let i=this.requestIdleCallback(()=>t(i),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){let i=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>i.abort()),this.__controllers.add(i),void 0!==globalThis.scheduler){let n=globalThis.scheduler.postTask(e,{...t,signal:i.signal});return n.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),n}return this.promise((n,o)=>{let r=this.setTimeout(()=>{try{n(e())}catch(e){o(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(i),o((0,m.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}requestAnimationFrame(e){let t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}cancelAnimationFrame(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.__requestsIdle.forEach(e=>this.cancelIdleCallback(e)),this.__requestsRaf.forEach(e=>this.cancelAnimationFrame(e)),this.__controllers.forEach(e=>e.abort()),this.timers.forEach(e=>(0,r.clearTimeout)(this.timers.get(e))),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var e,t,i,o,r,s;(0,n._)(this,"timers",new Map),(0,n._)(this,"__callbacks",new Map),(0,n._)(this,"__queueMicrotaskNative",null!=(e=null==(o=queueMicrotask)?void 0:o.bind(window))?e:Promise.resolve().then.bind(Promise.resolve())),(0,n._)(this,"promisesRejections",new Set),(0,n._)(this,"__requestsIdle",new Set),(0,n._)(this,"__controllers",new Set),(0,n._)(this,"__requestsRaf",new Set),(0,n._)(this,"__requestIdleCallbackNative",null!=(t=null==(r=window.requestIdleCallback)?void 0:r.bind(window))?t:(e,t)=>{var i;let n=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-n))})},null!=(i=null==t?void 0:t.timeout)?i:1)}),(0,n._)(this,"__cancelIdleCallbackNative",null!=(i=null==(s=window.cancelIdleCallback)?void 0:s.bind(window))?i:e=>{this.clearTimeout(e)}),(0,n._)(this,"isDestructed",!1)}}},91231:function(e,t,i){"use strict";i.d(t,{Async:function(){return n.Async}});var n=i(24735)},80251:function(e,t,i){"use strict";i.d(t,{Component:function(){return u}});var n=i(25045),o=i(91231),r=i(69364),s=i(28077),a=i(65946);let l=new Map;class u{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(e,t,i){let n=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),n.push(`__${e}`)),t&&(n.push("_",t),n.push("_",(0,a.isVoid)(i)?"true":i.toString())),n.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,a.get)(e,t||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(e){return e.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(e){this.setStatus(e)}setStatus(e){return this.setStatusComponent(e,this)}setStatusComponent(e,t){if(e===this.__componentStatus)return;t===this&&(this.__componentStatus=e);let i=Object.getPrototypeOf(this);i&&(0,a.isFunction)(i.setStatusComponent)&&i.setStatusComponent(e,t);let n=l.get(this),o=null==n?void 0:n[e];o&&o.length&&o.forEach(e=>e(t))}hookStatus(e,t){let i=l.get(this);i||(i={},l.set(this,i)),i[e]||(i[e]=[]),i[e].push(t)}static isInstanceOf(e,t){return e instanceof t}constructor(){(0,n._)(this,"__componentName",void 0),(0,n._)(this,"async",new o.Async),(0,n._)(this,"uid",void 0),(0,n._)(this,"ownerWindow",window),(0,n._)(this,"__componentStatus",r.STATUSES.beforeInit),this.uid="jodit-uid-"+(0,s.uniqueUid)()}}(0,n._)(u,"STATUSES",r.STATUSES)},16964:function(e,t,i){"use strict";i.d(t,{Component:function(){return n.Component},STATUSES:function(){return o.STATUSES},ViewComponent:function(){return r.ViewComponent}});var n=i(80251),o=i(69364),r=i(59609)},69364:function(e,t,i){"use strict";i.d(t,{STATUSES:function(){return n}});let n={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},59609:function(e,t,i){"use strict";i.d(t,{ViewComponent:function(){return r}});var n=i(25045),o=i(80251);class r extends o.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(e){super(),(0,n._)(this,"jodit",void 0),this.setParentView(e)}}},81937:function(e,t,i){"use strict";i.r(t),i.d(t,{ACCURACY:function(){return V},APP_VERSION:function(){return n},BASE_PATH:function(){return eh},BASE_PATH_IS_MIN:function(){return ep},BR:function(){return W},CLIPBOARD_ID:function(){return eg},COMMAND_KEYS:function(){return U},EMULATE_DBLCLICK_TIMEOUT:function(){return et},ES:function(){return o},FAT_MODE:function(){return u},HOMEPAGE:function(){return c},INSEPARABLE_TAGS:function(){return T},INSERT_AS_HTML:function(){return ei},INSERT_AS_TEXT:function(){return eo},INSERT_CLEAR_HTML:function(){return en},INSERT_ONLY_TEXT:function(){return er},INVISIBLE_SPACE:function(){return p},INVISIBLE_SPACE_REG_EXP:function(){return f},INVISIBLE_SPACE_REG_EXP_END:function(){return g},INVISIBLE_SPACE_REG_EXP_START:function(){return v},IS_BLOCK:function(){return C},IS_ES_MODERN:function(){return r},IS_ES_NEXT:function(){return s},IS_IE:function(){return X},IS_INLINE:function(){return k},IS_MAC:function(){return ea},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return el},KEY_ALT:function(){return P},KEY_BACKSPACE:function(){return z},KEY_DELETE:function(){return q},KEY_DOWN:function(){return B},KEY_ENTER:function(){return L},KEY_ESC:function(){return A},KEY_F3:function(){return F},KEY_LEFT:function(){return M},KEY_META:function(){return D},KEY_RIGHT:function(){return N},KEY_SPACE:function(){return O},KEY_TAB:function(){return j},KEY_UP:function(){return R},LIST_TAGS:function(){return E},MARKER_CLASS:function(){return ee},MODE_SOURCE:function(){return K},MODE_SPLIT:function(){return G},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return m},NEARBY:function(){return H},NO_EMPTY_TAGS:function(){return x},PARAGRAPH:function(){return $},PASSIVE_EVENTS:function(){return e_},SAFE_COUNT_CHANGE_CALL:function(){return es},SET_TEST:function(){return d},SOURCE_CONSUMER:function(){return ev},SPACE_REG_EXP:function(){return _},SPACE_REG_EXP_END:function(){return y},SPACE_REG_EXP_START:function(){return b},TEMP_ATTR:function(){return em},TEXT_HTML:function(){return Z},TEXT_PLAIN:function(){return J},TEXT_RTF:function(){return Q},TOKENS:function(){return h},globalDocument:function(){return w},globalWindow:function(){return S},lang:function(){return ef}});let n="4.11.2",o="es2018",r=!0,s=!1,a=!0,l=!1,u=!0,c="https://xdsoft.net/jodit/",d=()=>l=!0,h={},p="\uFEFF",m="\xa0",f=()=>/[\uFEFF]/g,g=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,_=()=>/[\s\n\t\r\uFEFF\u200b]+/g,b=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,S="u">typeof window?window:void 0,w="u">typeof document?document:void 0,C=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,k=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,E=new Set(["ul","ol"]),I=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],T=new Set([...I,"br","hr"]),x=new Set(I),D="Meta",z="Backspace",j="Tab",L="Enter",A="Escape",P="Alt",M="ArrowLeft",R="ArrowUp",N="ArrowRight",B="ArrowDown",O="Space",q="Delete",F="F3",H=5,V=10,U=[D,z,q,R,B,N,M,L,A,F,j],W="br",$="p",Y=1,K=2,G=3,X="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),J=X?"text":"text/plain",Z=X?"html":"text/html",Q=X?"rtf":"text/rtf",ee="jodit-selection_marker",et=300,ei="insert_as_html",en="insert_clear_html",eo="insert_as_text",er="insert_only_text",es=10,ea=void 0!==S&&/Mac|iPod|iPhone|iPad/.test(S.navigator.platform),el={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ea?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},eu=e=>{let t=e.split("/");return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:!0}:{basePath:e,isMin:!0}},{basePath:ec,isMin:ed}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=w.currentScript;if(e)return eu(e.src);let t=w.querySelectorAll("script[src]");return t&&t.length?eu(t[t.length-1].src):eu(S.location.href)})(),eh=ec,ep=ed,em="data-jodit-temp",ef={},eg="clipboard",ev="source-consumer",e_=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},76517:function(e,t,i){"use strict";i.d(t,{Create:function(){return l}});var n=i(25045),o=i(81937),r=i(23211),s=i(65946),a=i(28712);class l{get doc(){return(0,s.isFunction)(this.document)?this.document():this.document}element(e,t,i){let n=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(n),t&&((0,s.isPlainObject)(t)?(0,s.attr)(n,t):i=t),i&&(0,s.asArray)(i).forEach(e=>n.appendChild((0,s.isString)(e)?this.fromHTML(e):e)),n}div(e,t,i){let n=this.element("div",t,i);return e&&(n.className=e),n}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(t);let i=null==(e=t.contentWindow)?void 0:e.document;if((0,a.assert)(i,"iframe.contentWindow.document"),!i)throw Error("Iframe error");return i.open(),i.write("<!DOCTYPE html><html><head></head><body></body></html>"),i.close(),[i.body,t]}span(e,t,i){let n=this.element("span",t,i);return e&&(n.className=e),n}a(e,t,i){let n=this.element("a",t,i);return e&&(n.className=e),n}text(e){return this.doc.createTextNode(e)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let i=this.div();i.innerHTML=e.toString();let n=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(r.Dom.safeRemove(n),t){let e=(0,s.refs)(n);Object.keys(t).forEach(i=>{let n=e[i];n&&!1===t[i]&&r.Dom.hide(n)})}return n}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let i=t[e.tagName.toLowerCase()];(0,s.isFunction)(i)?i(e):(0,s.isPlainObject)(i)&&(0,s.attr)(e,i)}}}constructor(e,t){(0,n._)(this,"document",void 0),(0,n._)(this,"createAttributes",void 0),this.document=e,this.createAttributes=t}}},79821:function(e,t,i){"use strict";i.d(t,{Create:function(){return n.Create}});var n=i(76517)},49574:function(e,t,i){"use strict";i.d(t,{autobind:function(){return o}});var n=i(91565);function o(e,t,i){if(!(0,n.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let o=i.value;return{configurable:!0,get(){let e=o.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},51676:function(e,t,i){"use strict";i.d(t,{cache:function(){return l},cacheHTML:function(){return u},cached:function(){return a}});var n=i(69364),o=i(23211),r=i(28686),s=i(38027);function a(e,t){let i=Object.getOwnPropertyDescriptor(e,t);return!i||(0,r.isFunction)(i.get)?null:i.value}function l(e,t,i){let n=i.get;if(!n)throw(0,s.error)("Getter property descriptor expected");i.get=function(){let e=n.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}function u(e,t,i){let a=i.value;if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");let l=!0,u=new WeakMap;i.value=function(...e){if(l&&u.has(this.constructor)){var t;return null==(t=u.get(this.constructor))?void 0:t.cloneNode(!0)}let i=a.apply(this,e);return l&&o.Dom.isElement(i)&&u.set(this.constructor,i),l?i.cloneNode(!0):i},e.hookStatus(n.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},91672:function(e,t,i){"use strict";i.d(t,{component:function(){return s},getComponentClass:function(){return a}});var n=i(81937),o=i(421);let r=new Map;function s(e){class t extends e{constructor(...e){super(...e),this.constructor===t&&(this instanceof t||Object.setPrototypeOf(this,t.prototype),this.setStatus("ready"))}}let i=(0,o.getClassName)(e.prototype);if(r.has(i)&&!n.IS_PROD)throw Error(`Component with name "${i}" is already registered`);return r.set(i,t),t}function a(e){return r.get(e)}},55184:function(e,t,i){"use strict";i.d(t,{debounce:function(){return a},throttle:function(){return l}});var n=i(16964),o=i(28686),r=i(28712),s=i(33201);function a(e,t=!1,i="debounce"){return(a,l)=>{let u=a[l];if(!(0,o.isFunction)(u))throw(0,s.error)("Handler must be a Function");return a.hookStatus(n.STATUSES.ready,n=>{let{async:s}=n;(0,r.assert)(null!=s,`Component ${n.componentName||n.constructor.name} should have "async:IAsync" field`);let a=(0,o.isFunction)(e)?e(n):e,u=(0,o.isNumber)(a)||(0,o.isPlainObject)(a)?a:n.defaultTimeout;Object.defineProperty(n,l,{configurable:!0,value:s[i](n[l].bind(n),u,t)})}),{configurable:!0,get(){return u.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},24968:function(e,t,i){"use strict";i.d(t,{derive:function(){return o}});var n=i(91565);function o(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let o=e[t],r=Object.getOwnPropertyNames(o.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(o.prototype,t);null!=s&&(0,n.isFunction)(s.value)&&!(0,n.isFunction)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return s.value.call(this,...e)}})}}}}},29200:function(e,t,i){"use strict";i.d(t,{hook:function(){return r}});var n=i(91565),o=i(33201);function r(e){return(t,i)=>{if(!(0,n.isFunction)(t[i]))throw(0,o.error)("Handler must be a Function");t.hookStatus(e,e=>{e[i].call(e)})}}},35718:function(e,t,i){"use strict";i.d(t,{idle:function(){return s}});var n=i(16964),o=i(91565),r=i(33201);function s(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(n.STATUSES.ready,e=>{let{async:i}=e,n=e[t];e[t]=(...t)=>i.requestIdleCallback(n.bind(e,...t))})}}},84839:function(e,t,i){"use strict";i.r(t),i.d(t,{autobind:function(){return n.autobind},cache:function(){return o.cache},cacheHTML:function(){return o.cacheHTML},cached:function(){return o.cached},component:function(){return r.component},debounce:function(){return s.debounce},derive:function(){return a.derive},getComponentClass:function(){return r.getComponentClass},hook:function(){return l.hook},idle:function(){return u.idle},nonenumerable:function(){return c.nonenumerable},persistent:function(){return d.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return p.watch}});var n=i(49574),o=i(51676),r=i(91672),s=i(55184),a=i(24968),l=i(29200),u=i(35718),c=i(41360),d=i(77036),h=i(80840),p=i(68616)},41360:function(e,t,i){"use strict";i.d(t,{nonenumerable:function(){return n}});let n=(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})}},77036:function(e,t,i){"use strict";i.d(t,{persistent:function(){return r}});var n=i(69364),o=i(31534);function r(e,t){e.hookStatus(n.STATUSES.ready,e=>{let i=(0,o.isViewObject)(e)?e:e.jodit,n=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=i.storage.get(n))?e:r},set(e){i.storage.set(n,e)}})})}},80840:function(e,t,i){"use strict";i.d(t,{wait:function(){return s}});var n=i(69364),o=i(91565),r=i(33201);function s(e){return(t,i)=>{let s=t[i];if(!(0,o.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(n.STATUSES.ready,t=>{let{async:n}=t,o=t[i],r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...s){n.clearTimeout(r),e(t)?o.apply(t,s):r=n.setTimeout(()=>i(...s),10)}})})}}},68616:function(e,t,i){"use strict";i.d(t,{watch:function(){return d}});var n=i(69364),o=i(70535),r=i(32328),s=i(91565),a=i(62101),l=i(31534),u=i(33201),c=i(71125);function d(e,t){return(i,d)=>{var h;if(!(0,s.isFunction)(i[d]))throw(0,u.error)("Handler must be a Function");let p=null==(h=null==t?void 0:t.immediately)||h,m=null==t?void 0:t.context,f=t=>{let n=(0,l.isViewObject)(t)?t:t.jodit,u=(e,...i)=>{if(!t.isInDestruct)return t[d](e,...i)};p||(u=t.async.microDebounce(u,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,o]=e.split(":"),r=m;i.length&&(r=t.get(i)),(0,s.isFunction)(r)&&(r=r(t)),n.events.on(r||t,o,u),r||n.events.on(o,u),t.hookStatus("beforeDestruct",()=>{n.events.off(r||t,o,u).off(o,u)});return}let r=e.split("."),[l]=r,d=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,o.observable)(h).on(`change.${d.join(".")}`,u);let p=(0,c.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=h;i!==e&&(h=e,p&&p.set&&p.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,o.observable)(h)).on(`change.${d.join(".")}`,u),u(l,i,h))},get(){return p&&p.get?p.get.call(t):h}})})};(0,s.isFunction)(i.hookStatus)?i.hookStatus(n.STATUSES.ready,f):f(i)}}},23211:function(e,t,i){"use strict";i.d(t,{Dom:function(){return _}});var n=i(81937),o=i(88475),r=i(17312),s=i(91565),a=i(46248),l=i(3213),u=i(85932),c=i(18303),d=i(4040),h=i(28712),p=i(7909),m=i(80991),f=i(36400),g=i(33201),v=i(71125);class _{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let n,o=e;i.s.save();let r=!1;do r=!1,(n=o.nextSibling)&&!_.isBlock(n)&&!_.isTag(n,"br")&&(r=!0,o=n);while(r);return _.__wrapElements(t,i,e,o)}static __wrapElements(e,t,i,n){let o=(0,u.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(o,i);let r=i;for(;r&&(r=i.nextSibling,o.appendChild(i),i!==n&&r);)i=r;return t.s.restore(),o}static wrapInline(e,t,i){let n,o=e,r=e;i.s.save();let s=!1;do s=!1,(n=o.previousSibling)&&!_.isBlock(n)&&(s=!0,o=n);while(s);do s=!1,(n=r.nextSibling)&&!_.isBlock(n)&&(s=!0,r=n);while(s);return _.__wrapElements(t,i,o,r)}static wrap(e,t,i){let n=(0,u.isString)(t)?i.element(t):t;if(_.isNode(e)){if(!e.parentNode)throw(0,g.error)("Element should be in DOM");e.parentNode.insertBefore(n,e),n.appendChild(e)}else{let t=e.extractContents();e.insertNode(n),n.appendChild(t)}return n}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);_.safeRemove(e)}}static between(e,t,i){let n=e;for(;n&&n!==t&&!(e!==n&&i(n));){let e=n.firstChild||n.nextSibling;if(!e){for(;n&&!n.nextSibling;)n=n.parentNode;e=null==n?void 0:n.nextSibling}n=e}}static replace(e,t,i,n=!1,r=!1){let s;if((0,a.isHTML)(t)&&((0,h.assert)(i,"Need create instance for new tag"),t=i.fromHTML(t)),(0,u.isString)(t)?((0,h.assert)(i,"Need create instance for new tag"),s=i.element(t)):s=t,!r)for(;e.firstChild;)s.appendChild(e.firstChild);return n&&_.isElement(e)&&_.isElement(s)&&(0,o.toArray)(e.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(s,e),s}static isEmptyTextNode(e){return _.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return _.each(e,e=>_.isEmptyTextNode(e))}static isContentEditable(e,t){return _.isNode(e)&&!_.closest(e,e=>_.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=n.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let o=e=>null==e.nodeValue||0===(0,d.trim)(e.nodeValue).length;return _.isText(e)?o(e):!(_.isElement(e)&&i(e))&&_.each(e,e=>{if(_.isText(e)&&!o(e)||_.isElement(e)&&i(e))return!1})}static isNode(e){return!!(e&&(0,u.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,s.isFunction)(e.appendChild))}static isCell(e){return _.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return _.isTag(e,n.LIST_TAGS)}static isLeaf(e){return _.isTag(e,"li")}static isImage(e){return _.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,c.isVoid)(e)&&"object"==typeof e&&_.isNode(e)&&n.IS_BLOCK.test(e.nodeName)}static isText(e){return!!(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return!!(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){var t;return!!_.isNode(e)&&!!((null==(t=e.ownerDocument)?void 0:t.defaultView)&&e.nodeType===Node.ELEMENT_NODE)}static isFragment(e){var t;return!!_.isNode(e)&&!!((null==(t=e.ownerDocument)?void 0:t.defaultView)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(e){var t;if(!_.isNode(e))return!1;let i=null==(t=e.ownerDocument)?void 0:t.defaultView;return!!(i&&e instanceof i.HTMLElement)}static isInlineBlock(e){return _.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,m.css)(e,"display").toString())}static canSplitBlock(e){return!(0,c.isVoid)(e)&&_.isHTMLElement(e)&&_.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static last(e,t){let i=null==e?void 0:e.lastChild;if(!i)return null;do{if(t(i))return i;let n=i.lastChild;if(n||(n=i.previousSibling),!n&&i.parentNode!==e){do i=i.parentNode;while(i&&!(null==i?void 0:i.previousSibling)&&i.parentNode!==e);n=null==i?void 0:i.previousSibling}i=n}while(i);return null}static prev(e,t,i,n=!0){return _.find(e,t,i,!1,n)}static next(e,t,i,n=!0){return _.find(e,t,i,!0,n)}static prevWithClass(e,t){return _.prev(e,e=>_.isElement(e)&&e.classList.contains(t),e.parentNode)}static nextWithClass(e,t){return _.next(e,e=>_.isElement(e)&&e.classList.contains(t),e.parentNode)}static find(e,t,i,n=!0,o=!0){let r=this.nextGen(e,i,n,o),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,i=!0,n=!0){let o=[],r=e;do{let t=i?r.nextSibling:r.previousSibling;for(;t;)o.unshift(t),t=i?t.nextSibling:t.previousSibling;yield*this.runInStack(e,o,i,n),r=r.parentNode}while(r&&r!==t);return null}static each(e,t,i=!0){let n=this.eachGen(e,i),o=n.next();for(;!o.done;){if(!1===t(o.value))return!1;o=n.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,n=!0){for(;t.length;){let o=t.pop();if(n){let e=i?o.lastChild:o.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==o&&(yield o)}}static findWithCurrent(e,t,i,n="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){let e=_.findWithCurrent(r[o],t,r,n,o);if(e)return e}for(;r&&!r[n]&&r!==i;)r=r.parentNode;r&&r[n]&&r!==i&&(r=r[n])}while(r&&r!==i);return null}static findSibling(e,t=!0,i=e=>!_.isEmptyTextNode(e)){let n=_.sibling(e,t);for(;n&&!i(n);)n=_.sibling(n,t);return n&&i(n)?n:null}static findNotEmptySibling(e,t){return _.findSibling(e,t,e=>{var t;return!_.isEmptyTextNode(e)&&!!(!_.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,d.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,i){return(0,v.call)(t?_.prev:_.next,e,e=>!!(e&&(!(_.isText(e)||_.isComment(e))||(0,d.trim)((null==e?void 0:e.nodeValue)||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,n=!1){let o=e;if(!o)return null;do{if(t(o))return o;if(o===i||!o.parentNode)break;o=o.parentNode}while(o&&o!==i);return o===i&&n&&t(o)?o:null}static closest(e,t,i){let n,o=e=>e.toLowerCase();if((0,s.isFunction)(t))n=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(o));n=t=>!!(t&&e.has(o(t.nodeName)))}else n=e=>!!(e&&o(t)===o(e.nodeName));return _.up(e,n,i)}static furthest(e,t,i){let n=null,o=null==e?void 0:e.parentElement;for(;o&&o!==i;)t(o)&&(n=o),o=null==o?void 0:o.parentElement;return n}static appendChildFirst(e,t){let i=e.firstChild;i?i!==t&&e.insertBefore(t,i):e.appendChild(t)}static after(e,t){let{parentNode:i}=e;i&&(i.lastChild===e?i.appendChild(t):i.insertBefore(t,e.nextSibling))}static before(e,t){let{parentNode:i}=e;i&&i.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,r.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,i=!1,r=()=>!0){let s=(e.ownerDocument||n.globalDocument).createDocumentFragment();(0,o.toArray)(e.childNodes).filter(e=>!!r(e)||(_.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),i&&t.firstChild?t.insertBefore(s,t.firstChild):t.appendChild(s)}static isOrContains(e,t,i=!1){return e===t?!i:!!(t&&e&&this.up(t,t=>t===e,e,!0))}static safeRemove(...e){e.forEach(e=>_.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=_.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&_.isTag(e.startContainer,n.INSEPARABLE_TAGS)?_.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>_.isText(e)&&!e.nodeValue&&_.safeRemove(e))}static hide(e){e&&((0,f.dataBind)(e,"__old_display",e.style.display),e.style.display="none")}static show(e){if(!e)return;let t=(0,f.dataBind)(e,"__old_display");"none"===e.style.display&&(e.style.display=t||"")}static isTag(e,t){if(!this.isElement(e))return!1;let i=e.tagName.toLowerCase(),n=e.tagName.toUpperCase();if(t instanceof Set)return t.has(i)||t.has(n);if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");return i===t||n===t}static markTemporary(e,t){return t&&(0,p.attr)(e,t),(0,p.attr)(e,n.TEMP_ATTR,!0),e}static isTemporary(e){return!!_.isElement(e)&&(_.isMarker(e)||"true"===(0,p.attr)(e,n.TEMP_ATTR))}static isMarker(e){return _.isNode(e)&&_.isTag(e,"span")&&e.hasAttribute("data-"+n.MARKER_CLASS)}static replaceTemporaryFromString(e){return e.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(e){return(0,o.toArray)(e.querySelectorAll(`[${n.TEMP_ATTR}]`))}constructor(){throw Error("Dom is static module")}}},27795:function(e,t,i){"use strict";i.d(t,{Dom:function(){return n.Dom},LazyWalker:function(){return o.LazyWalker}});var n=i(23211),o=i(1080)},1080:function(e,t,i){"use strict";i.d(t,{LazyWalker:function(){return l}});var n=i(25045),o=i(31635),r=i(49574),s=i(23211),a=i(60216);class l extends a.Eventify{setWork(e){return this.isWorked&&this.break(),this.workNodes=s.Dom.eachGen(e,!this.options.reverse),this.isFinished=!1,this._requestStarting(),this}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(()=>null)}break(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){super.destruct(),this.stop()}__workPerform(){if(this.workNodes){var e;this.isWorked=!0;let t=0,i=null!=(e=this.options.timeoutChunkSize)?e:50;for(;!this.isFinished&&t<=i;){let e=this.workNodes.next();if(t+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(e){var t;return!!e&&(void 0===this.options.whatToShow||e.nodeType===this.options.whatToShow)&&null!=(t=this.emit("visit",e))&&t}constructor(e,t={}){super(),(0,n._)(this,"async",void 0),(0,n._)(this,"options",void 0),(0,n._)(this,"workNodes",void 0),(0,n._)(this,"hadAffect",void 0),(0,n._)(this,"isWorked",void 0),(0,n._)(this,"isFinished",void 0),(0,n._)(this,"idleId",void 0),(0,n._)(this,"__schedulerController",void 0),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0,this.__schedulerController=null}}(0,o.__decorate)([r.autobind],l.prototype,"__workPerform",null)},93747:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return d}});var n=i(25045),o=i(81937),r=i(32328),s=i(17312),a=i(91565),l=i(85932),u=i(33201),c=i(18869);class d{mute(e){return this.__mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}__eachEvent(e,t){(0,r.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),n=i[1]||c.defaultNameSpace;t.call(this,i[0],n)})}__getStore(e){if(!e)throw(0,u.error)("Need subject");if(void 0===e[this.__key]){let t=new c.EventHandlersStore;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}__removeStoreFromSubject(e){void 0!==e[this.__key]&&Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(e,t){let i=this.__doc.createEvent("HTMLEvents");(0,l.isString)(t)?i.initEvent(t,!0,!0):(i.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(i,e,{value:t[e],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(e,t,i,n){let r,c,d,p;if((0,l.isString)(e)||(0,l.isStringArray)(e)?(r=this,c=e,d=t,p=i):(r=e,c=t,d=i,p=n),!((0,l.isString)(c)||(0,l.isStringArray)(c))||0===c.length)throw(0,u.error)("Need events names");if(!(0,a.isFunction)(d))throw(0,u.error)("Need event handler");if((0,s.isArray)(r))return r.forEach(e=>{this.on(e,c,d,p)}),this;let m=r,f=this.__getStore(m),g=this,v=function(e,...t){if(!g.isMuted(e))return d&&d.call(this,...t)};return h(m)&&(v=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),d&&!1===d.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(c,(e,t)=>{if(0===e.length)throw(0,u.error)("Need event name");if(!1===f.indexOf(e,t,d)){let r={event:e,originalCallback:d,syntheticCallback:v};if(f.set(e,t,r,null==p?void 0:p.top),h(m)){var i,n;let t=o.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(i=null==p?void 0:p.capture)&&i}:null!=(n=null==p?void 0:p.capture)&&n;v.options=t,m.addEventListener(e,v,t),this.__memoryDOMSubjectToHandler(m,v)}}}),this}__memoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap.get(e)||new Set;i.add(t),this.__domEventsMap.set(e,i)}__unmemoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap,n=i.get(e)||new Set;n.delete(t),n.size?i.set(e,n):i.delete(e)}one(e,t,i,n){let o,r,s,a;(0,l.isString)(e)||(0,l.isStringArray)(e)?(o=this,r=e,s=t,a=i):(o=e,r=t,s=i,a=n);let u=(...e)=>(this.off(o,r,u),s(...e));return this.on(o,r,u,a),this}off(e,t,i){let n,o,r;if((0,l.isString)(e)||(0,l.isStringArray)(e)?(n=this,o=e,r=t):(n=e,o=t,r=i),(0,s.isArray)(n))return n.forEach(e=>{this.off(e,o,r)}),this;let u=n,d=this.__getStore(u);if(!((0,l.isString)(o)||(0,l.isStringArray)(o))||0===o.length)return d.namespaces().forEach(e=>{this.off(u,"."+e)}),this.__removeStoreFromSubject(u),this;let p=e=>{if(h(u)){var t;u.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(u,e.syntheticCallback)}},m=(e,t)=>{if(""===e)return void d.events(t).forEach(e=>{""!==e&&m(e,t)});let i=d.get(e,t);if(i&&i.length)if((0,a.isFunction)(r)){let n=d.indexOf(e,t,r);!1!==n&&(p(i[n]),i.splice(n,1),i.length||d.clearEvents(t,e))}else i.forEach(p),i.length=0,d.clearEvents(t,e)};return this.__eachEvent(o,(e,t)=>{t===c.defaultNameSpace?d.namespaces().forEach(t=>{m(e,t)}):m(e,t)}),d.isEmpty()&&this.__removeStoreFromSubject(u),this}stopPropagation(e,t){let i=(0,l.isString)(e)?this:e,n=(0,l.isString)(e)?e:t;if("string"!=typeof n)throw(0,u.error)("Need event names");let o=this.__getStore(i);this.__eachEvent(n,(e,t)=>{let n=o.get(e,t);n&&this.__stopped.push(n),t===c.defaultNameSpace&&o.namespaces(!0).forEach(t=>this.stopPropagation(i,e+"."+t))})}__removeStop(e){if(e){let t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}__isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...i){let n,o,r=(0,l.isString)(e)?this:e,s=(0,l.isString)(e)?e:t,a=(0,l.isString)(e)?[t,...i]:i;if(!h(r)&&!(0,l.isString)(s))throw(0,u.error)("Need events names");let d=this.__getStore(r);return!(0,l.isString)(s)&&h(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(h(r))this.__triggerNativeEvent(r,e);else{let i=d.get(e,t);if(i)try{[...i].every(t=>!this.__isStopped(i)&&(this.currents.push(e),o=t.syntheticCallback.call(r,e,...a),this.currents.pop(),void 0!==o&&(n=o),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||h(r)||d.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...a]);void 0!==i&&(n=i)})}}),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((e,t)=>{this.off(t)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(e){(0,n._)(this,"__domEventsMap",new Map),(0,n._)(this,"__mutedEvents",new Set),(0,n._)(this,"__key","__JoditEventEmitterNamespaces"),(0,n._)(this,"__doc",o.globalDocument),(0,n._)(this,"__prepareEvent",e=>{!e.cancelBubble&&(e.composed&&(0,a.isFunction)(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))}),(0,n._)(this,"currents",[]),(0,n._)(this,"__stopped",[]),(0,n._)(this,"__isDestructed",!1),e&&(this.__doc=e),this.__key+=new Date().getTime()}}function h(e){return(0,a.isFunction)(e.addEventListener)}},60216:function(e,t,i){"use strict";i.d(t,{Eventify:function(){return o}});var n=i(25045);class o{on(e,t){var i;return this.__map.has(e)||this.__map.set(e,new Set),null==(i=this.__map.get(e))||i.add(t),this}off(e,t){if(this.__map.has(e)){var i;null==(i=this.__map.get(e))||i.delete(t)}return this}destruct(){this.__map.clear()}emit(e,...t){let i;if(this.__map.has(e)){var n;null==(n=this.__map.get(e))||n.forEach(e=>{i=e(...t)})}return i}constructor(){(0,n._)(this,"__map",new Map)}}},42689:function(e,t,i){"use strict";i.d(t,{eventEmitter:function(){return n}});let n=new(i(93747)).EventEmitter},1496:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return n.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return o.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var n=i(93747),o=i(60216),r=i(70535),s=i(18869)},70535:function(e,t,i){"use strict";i.d(t,{observable:function(){return u}});var n=i(17312),o=i(94013),r=i(62101),s=i(71125);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function u(e){if(l(e))return e;let t={},i={},u=(t,o)=>((0,n.isArray)(t)?t.map(e=>u(e,o)):(i[t]||(i[t]=[]),i[t].push(o)),e),c=(o,...r)=>{if((0,n.isArray)(o))return void o.map(e=>c(e,...r));try{!t[o]&&i[o]&&(t[o]=!0,i[o].forEach(t=>t.call(e,...r)))}finally{t[o]=!1}},d=(t,i=[])=>{let n={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);n[a]=t[a];let u=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set:t=>{let i=n[a];if(!(0,o.isFastEqual)(n[a],t)){c(["beforeChange",`beforeChange.${l.join(".")}`],a,t),(0,r.isPlainObject)(t)&&d(t,l),u&&u.set?u.set.call(e,t):n[a]=t;let o=[];c(["change",...l.reduce((e,t)=>(o.push(t),e.push(`change.${o.join(".")}`),e),[])],l.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>u&&u.get?u.get.call(e):n[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(n[a])&&d(n[a],l)}),Object.defineProperty(e,"on",{value:u}))};return d(e),e}},18869:function(e,t,i){"use strict";i.d(t,{EventHandlersStore:function(){return a},defaultNameSpace:function(){return s}});var n=i(25045),o=i(88475),r=i(28712);let s="JoditEventDefaultNamespace";class a{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,r.assert)(i,"-"),i[e]}}indexOf(e,t,i){let n=this.get(e,t);if(n){for(let e=0;e<n.length;e+=1)if(n[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,o.toArray)(this.__store.keys());return e?t.filter(e=>e!==s):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,n=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),n?o[e].unshift(i):o[e].push(i)}clear(){this.__store.clear()}clearEvents(e,t){let i=this.__store.get(e);i&&i[t]&&(delete i[t],Object.keys(i).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}constructor(){(0,n._)(this,"__store",new Map)}}},28077:function(e,t,i){"use strict";i.d(t,{eventEmitter:function(){return C},extendLang:function(){return b},getContainer:function(){return S},getPopupViewRoot:function(){return w},instances:function(){return p},modules:function(){return _},pluginSystem:function(){return v},uniqueUid:function(){return g}});var n=i(24497),o=i(85932),r=i(31534),s=i(74264),a=i(80991),l=i(421),u=i(85305),c=i(42689),d=i(81937),h=i(27795);let p={},m=1,f=new Set;function g(){function e(){return Math.round(m+=10*(Math.random()+1)).toString(16)}let t=e();for(;f.has(t);)t=e();return f.add(t),t}let v=new u.PluginSystem({getContainer:S}),_={},b=e=>{Object.keys(e).forEach(t=>{d.lang[t]?Object.assign(d.lang[t],e[t]):d.lang[t]=e[t]})},y=new WeakMap;function S(e,t,i="div",a=!1){let u=(0,o.isString)(t)?t:t?(0,l.getClassName)(t.prototype):"jodit-utils",c=y.get(e)||{},d=u+i,p=(0,r.isViewObject)(e)?e:e.j,m=null;if(!c[d]){let t=p.c;if(m=w(p.o,p.container,e.od.body),a&&(0,n.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let o="style"===i?e.ed.head:e.ed.body;m=(0,n.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}let o=t.element(i,{className:`jodit jodit-${(0,s.kebabCase)(u)}-container jodit-box`});o.classList.add(`jodit_theme_${p.o.theme||"default"}`),m.appendChild(o),c[d]=o,e.hookStatus("beforeDestruct",()=>{p.events.off(o),h.Dom.safeRemove(o),delete c[d],Object.keys(c).length&&y.delete(e)}),y.set(e,c),p.events.fire("getContainer",o)}return c[d].classList.remove("jodit_theme_default","jodit_theme_dark"),c[d].classList.add(`jodit_theme_${p.o.theme||"default"}`),c[d]}function w(e,t,i){var n,o,r;return null!=(n=null!=(o=null!=(r=e.popupRoot)?r:e.shadowRoot)?o:h.Dom.closest(t,e=>h.Dom.isHTMLElement(e)&&(h.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,a.css)(e,"position"))),i))?n:i}let C=c.eventEmitter},78982:function(e,t,i){"use strict";i.d(t,{asArray:function(){return o}});var n=i(17312);let o=e=>(0,n.isArray)(e)?e:[e]},45664:function(e,t,i){"use strict";i.d(t,{asArray:function(){return n.asArray},splitArray:function(){return o.splitArray},toArray:function(){return r.toArray}});var n=i(78982),o=i(32328),r=i(88475)},32328:function(e,t,i){"use strict";function n(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}i.d(t,{splitArray:function(){return n}})},88475:function(e,t,i){"use strict";i.d(t,{toArray:function(){return r}});var n=i(23283),o=i(43379);let r=function(...e){var t;return((0,n.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,o.reset)("Array.from"))?t:Array.from).apply(Array,e)}},61077:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return n.clearTimeout},setTimeout:function(){return n.setTimeout}});var n=i(79947)},79947:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return r},setTimeout:function(){return o}});var n=i(81937);function o(e,t,...i){return t?n.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function r(e){n.globalWindow.clearTimeout(e)}},98740:function(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:function(){return o}});var n=i(81937);function o(){let e=!0;try{let t=n.globalDocument.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}},28686:function(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return d.hasContainer},isAbortError:function(){return o.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return d.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return u.isHTML},isHtmlFromWord:function(){return c.isHtmlFromWord},isInitable:function(){return d.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return p.isJoditObject},isLicense:function(){return m.isLicense},isMarker:function(){return f.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return v.isNumber},isNumeric:function(){return _.isNumeric},isPlainObject:function(){return b.isPlainObject},isPromise:function(){return y.isPromise},isSet:function(){return S.isSet},isString:function(){return w.isString},isStringArray:function(){return w.isStringArray},isURL:function(){return C.isURL},isValidName:function(){return k.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return I.isVoid},isWindow:function(){return T.isWindow}});var n=i(98740),o=i(72068),r=i(17312),s=i(22289),a=i(94013),l=i(91565),u=i(46248),c=i(82166),d=i(52433),h=i(99732),p=i(24497),m=i(44998),f=i(23175),g=i(23283),v=i(72412),_=i(70222),b=i(62101),y=i(52100),S=i(3213),w=i(85932),C=i(91764),k=i(50083),E=i(31534),I=i(18303),T=i(3513)},72068:function(e,t,i){"use strict";function n(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}i.d(t,{isAbortError:function(){return n}})},17312:function(e,t,i){"use strict";function n(e){return Array.isArray(e)}i.d(t,{isArray:function(){return n}})},22289:function(e,t,i){"use strict";function n(e){return"boolean"==typeof e}i.d(t,{isBoolean:function(){return n}})},94013:function(e,t,i){"use strict";i.d(t,{isEqual:function(){return o},isFastEqual:function(){return r}});var n=i(3347);function o(e,t){return e===t||(0,n.stringify)(e)===(0,n.stringify)(t)}function r(e,t){return e===t}},91565:function(e,t,i){"use strict";function n(e){return"function"==typeof e}i.d(t,{isFunction:function(){return n}})},82166:function(e,t,i){"use strict";function n(e){return -1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}i.d(t,{isHtmlFromWord:function(){return n}})},46248:function(e,t,i){"use strict";i.d(t,{isHTML:function(){return o}});var n=i(85932);let o=e=>(0,n.isString)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))},52433:function(e,t,i){"use strict";i.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var n=i(23211),o=i(91565),r=i(18303);function s(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&n.Dom.isElement(e.container)}},99732:function(e,t,i){"use strict";i.d(t,{isInt:function(){return r}});var n=i(70222),o=i(85932);function r(e){return(0,o.isString)(e)&&(0,n.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},24497:function(e,t,i){"use strict";i.d(t,{isJoditObject:function(){return o}});var n=i(91565);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},44998:function(e,t,i){"use strict";i.d(t,{isLicense:function(){return o}});var n=i(85932);let o=e=>(0,n.isString)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)},23175:function(e,t,i){"use strict";i.d(t,{isMarker:function(){return o}});var n=i(23211);function o(e){return n.Dom.isMarker(e)}},23283:function(e,t,i){"use strict";function n(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(e)))}i.d(t,{isNativeFunction:function(){return n}})},72412:function(e,t,i){"use strict";function n(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}i.d(t,{isNumber:function(){return n}})},70222:function(e,t,i){"use strict";i.d(t,{isNumeric:function(){return o}});var n=i(85932);function o(e){if((0,n.isString)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},62101:function(e,t,i){"use strict";i.d(t,{isPlainObject:function(){return o}});var n=i(3513);function o(e){return!(!e||"object"!=typeof e||e.nodeType||(0,n.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},52100:function(e,t,i){"use strict";function n(e){return e&&"function"==typeof e.then}i.d(t,{isPromise:function(){return n}})},3213:function(e,t,i){"use strict";i.d(t,{isSet:function(){return o}});var n=i(91565);function o(e){return!!e&&(0,n.isFunction)(e.has)&&(0,n.isFunction)(e.add)&&(0,n.isFunction)(e.delete)}},85932:function(e,t,i){"use strict";i.d(t,{isString:function(){return o},isStringArray:function(){return r}});var n=i(17312);function o(e){return"string"==typeof e}function r(e){return(0,n.isArray)(e)&&o(e[0])}},91764:function(e,t,i){"use strict";i.d(t,{isURL:function(){return o}});var n=i(81937);function o(e){if(e.includes(" "))return!1;if("u">typeof URL)try{let t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}let t=n.globalDocument.createElement("a");return t.href=e,!!t.hostname}},50083:function(e,t,i){"use strict";function n(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}i.d(t,{isValidName:function(){return n}})},31534:function(e,t,i){"use strict";i.d(t,{isViewObject:function(){return o}});var n=i(91565);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&e.isView)}},18303:function(e,t,i){"use strict";function n(e){return null==e}i.d(t,{isVoid:function(){return n}})},3513:function(e,t,i){"use strict";function n(e){return null!=e&&e===e.window}i.d(t,{isWindow:function(){return n}})},93387:function(e,t,i){"use strict";i.d(t,{colorToHex:function(){return n}});let n=e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;let t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";let i=parseInt(t[2],10),n=parseInt(t[3],10),o=(parseInt(t[4],10)|n<<8|i<<16).toString(16).toUpperCase();for(;o.length<6;)o="0"+o;return t[1]+"#"+o}},7018:function(e,t,i){"use strict";i.d(t,{colorToHex:function(){return n.colorToHex}});var n=i(93387)},30893:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return l}});var n=i(81937),o=i(23211),r=i(4040),s=i(28723);function a(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(e,t,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function l(e){if(-1===e.indexOf("<html "))return e;e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7);let t=n.globalDocument.createElement("iframe");t.style.display="none",n.globalDocument.body.appendChild(t);let i="";try{let l=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(l){l.open(),l.write(e),l.close();try{for(let e=0;e<l.styleSheets.length;e+=1){let t=l.styleSheets[e].cssRules;for(let e=0;e<t.length;e+=1)""!==t[e].selectorText&&(0,s.$$)(t[e].selectorText,l.body).forEach(i=>{i.style.cssText=a(t[e].style.cssText+";"+i.style.cssText)})}}catch(e){if(!n.IS_PROD)throw e}o.Dom.each(l.body,e=>{if(o.Dom.isElement(e)){let t=e.getAttribute("style");t&&(e.style.cssText=a(t)),e.hasAttribute("style")&&!e.getAttribute("style")&&e.removeAttribute("style")}}),i=l.firstChild?(0,r.trim)(l.body.innerHTML):""}}catch(e){}finally{o.Dom.safeRemove(t)}return i&&(e=i),(0,r.trim)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},1277:function(e,t,i){"use strict";i.d(t,{cleanFromWord:function(){return a}});var n=i(81937),o=i(23211),r=i(88475),s=i(4040);function a(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{let i=n.globalDocument.createElement("div");i.innerHTML=e;let s=[];i.firstChild&&o.Dom.each(i,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":s.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":o.Dom.unwrap(e);break;default:(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&e.removeAttribute(t.name)})}break;case Node.TEXT_NODE:break;default:s.push(e)}}),o.Dom.safeRemove.apply(null,s),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(s.trim).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},6609:function(e,t,i){"use strict";i.d(t,{htmlspecialchars:function(){return o}});var n=i(81937);function o(e){let t=n.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},82658:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return n.applyStyles},cleanFromWord:function(){return o.cleanFromWord},htmlspecialchars:function(){return r.htmlspecialchars},nl2br:function(){return s.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var n=i(30893),o=i(1277),r=i(6609),s=i(48838),a=i(48155),l=i(22852)},48838:function(e,t,i){"use strict";function n(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}i.d(t,{nl2br:function(){return n}})},48155:function(e,t,i){"use strict";i.d(t,{safeHTML:function(){return r},sanitizeHTMLElement:function(){return a}});var n=i(23211),o=i(93640);function r(e,t){var i;(n.Dom.isElement(e)||n.Dom.isFragment(e))&&((null!=(i=t.removeEventAttributes)?i:t.removeOnError)?(s(e),(0,o.$$)("*",e).forEach(e=>s(e))):t.removeOnError&&(a(e,t),(0,o.$$)("[onerror]",e).forEach(e=>a(e,t))),t.safeJavaScriptLink&&(a(e,t),(0,o.$$)('a[href^="javascript"]',e).forEach(e=>a(e,t))),t.safeLinksTarget&&(0,o.$$)('a[target="_blank"]',e).forEach(e=>{let t=(e.getAttribute("rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,o.attr)(e,"rel",t.join(" "))}))}function s(e){if(!n.Dom.isElement(e))return!1;let t=!1,i=[];for(let t=0;t<e.attributes.length;t++)e.attributes[t].name.toLowerCase().startsWith("on")&&i.push(e.attributes[t].name);for(let n of i)e.removeAttribute(n),t=!0;return t}function a(e,{safeJavaScriptLink:t,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!n.Dom.isElement(e))return!1;let r=!1;i&&e.hasAttribute("onerror")&&((0,o.attr)(e,"onerror",null),r=!0);let s=e.getAttribute("href");return t&&s&&0===s.trim().indexOf("javascript")&&((0,o.attr)(e,"href",location.protocol+"//"+s),r=!0),r}},22852:function(e,t,i){"use strict";i.d(t,{stripTags:function(){return function e(t,i=document,c=null){let d=i.createElement("div");return(0,o.isString)(t)?d.innerHTML=t:d.appendChild(t),(0,s.$$)("*",d).forEach(t=>{let o=t.parentNode;if(!o)return;if(c&&n.Dom.isTag(t,c)){let o=t.nodeName.toLowerCase(),r=n.Dom.isTag(t,u)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${e(t.innerHTML,i,c)}%%%/jodit-${o}%%%`;n.Dom.before(t,i.createTextNode(r)),n.Dom.safeRemove(t);return}if(n.Dom.isTag(t,l))return void n.Dom.safeRemove(t);if(!n.Dom.isTag(t,a))return;let r=t.nextSibling;!(n.Dom.isText(r)&&/^\s/.test(r.nodeValue||""))&&r&&o.insertBefore(i.createTextNode(" "),r)}),(0,r.trim)(d.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,i,n)=>`<${t?"/":""}${n}>`)}}});var n=i(23211),o=i(85932),r=i(4040),s=i(93640);let a=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),l=new Set(["script","style"]),u=new Set(["br","hr","input"])},65946:function(e,t,i){"use strict";i.r(t),i.d(t,{CamelCaseToKebabCase:function(){return c.CamelCaseToKebabCase},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},applyStyles:function(){return a.applyStyles},asArray:function(){return n.asArray},camelCase:function(){return c.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearTimeout:function(){return o.clearTimeout},colorToHex:function(){return s.colorToHex},fuzzySearchIndex:function(){return c.fuzzySearchIndex},getContentWidth:function(){return u.getContentWidth},getScrollParent:function(){return u.getScrollParent},hasBrowserColorPicker:function(){return r.hasBrowserColorPicker},hasContainer:function(){return r.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},i18n:function(){return c.i18n},innerWidth:function(){return u.innerWidth},isAbortError:function(){return r.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return r.isBoolean},isDestructable:function(){return r.isDestructable},isEqual:function(){return r.isEqual},isFastEqual:function(){return r.isFastEqual},isFunction:function(){return r.isFunction},isHTML:function(){return r.isHTML},isHtmlFromWord:function(){return r.isHtmlFromWord},isInitable:function(){return r.isInitable},isInt:function(){return r.isInt},isJoditObject:function(){return r.isJoditObject},isLicense:function(){return r.isLicense},isMarker:function(){return r.isMarker},isNativeFunction:function(){return r.isNativeFunction},isNumber:function(){return r.isNumber},isNumeric:function(){return r.isNumeric},isPlainObject:function(){return r.isPlainObject},isPromise:function(){return r.isPromise},isSet:function(){return r.isSet},isString:function(){return r.isString},isStringArray:function(){return r.isStringArray},isURL:function(){return r.isURL},isValidName:function(){return r.isValidName},isViewObject:function(){return r.isViewObject},isVoid:function(){return r.isVoid},isWindow:function(){return r.isWindow},kebabCase:function(){return c.kebabCase},nl2br:function(){return a.nl2br},normalizeColor:function(){return l.normalizeColor},normalizeCssNumericValue:function(){return l.normalizeCssNumericValue},normalizeCssValue:function(){return l.normalizeCssValue},normalizeKeyAliases:function(){return l.normalizeKeyAliases},normalizeLicense:function(){return l.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return l.normalizeSize},normalizeUrl:function(){return l.normalizeUrl},offset:function(){return u.offset},position:function(){return u.position},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},setTimeout:function(){return o.setTimeout},size:function(){return u.size},splitArray:function(){return n.splitArray},sprintf:function(){return c.sprintf},stringify:function(){return c.stringify},stripTags:function(){return a.stripTags},toArray:function(){return n.toArray},trim:function(){return c.trim},trimChars:function(){return c.trimChars},trimInv:function(){return c.trimInv},ucfirst:function(){return c.ucfirst}});var n=i(45664),o=i(61077),r=i(28686),s=i(7018),a=i(82658),l=i(97022),u=i(86878),c=i(97642),d=i(93640),h={};for(var p in d)0>["default","asArray","splitArray","toArray","clearTimeout","setTimeout","hasBrowserColorPicker","hasContainer","isAbortError","isArray","isBoolean","isDestructable","isEqual","isFastEqual","isFunction","isHTML","isHtmlFromWord","isInitable","isInt","isJoditObject","isLicense","isMarker","isNativeFunction","isNumber","isNumeric","isPlainObject","isPromise","isSet","isString","isStringArray","isURL","isValidName","isViewObject","isVoid","isWindow","colorToHex","applyStyles","cleanFromWord","htmlspecialchars","nl2br","safeHTML","sanitizeHTMLElement","stripTags","NUMBER_FIELDS_REG","normalizeColor","normalizeCssNumericValue","normalizeCssValue","normalizeKeyAliases","normalizeLicense","normalizePath","normalizeRelativePath","normalizeSize","normalizeUrl","getContentWidth","getScrollParent","innerWidth","offset","position","size","CamelCaseToKebabCase","camelCase","fuzzySearchIndex","i18n","kebabCase","sprintf","stringify","trim","trimChars","trimInv","ucfirst"].indexOf(p)&&(h[p]=(function(e){return d[e]}).bind(0,p));i.d(t,h)},97022:function(e,t,i){"use strict";i.d(t,{NUMBER_FIELDS_REG:function(){return o.NUMBER_FIELDS_REG},normalizeColor:function(){return n.normalizeColor},normalizeCssNumericValue:function(){return o.normalizeCssNumericValue},normalizeCssValue:function(){return o.normalizeCssValue},normalizeKeyAliases:function(){return r.normalizeKeyAliases},normalizeLicense:function(){return s.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return u.normalizeSize},normalizeUrl:function(){return c.normalizeUrl}});var n=i(77367),o=i(19147),r=i(27978),s=i(49663),a=i(18377),l=i(96340),u=i(98831),c=i(48009)},77367:function(e,t,i){"use strict";i.d(t,{normalizeColor:function(){return r}});var n=i(93387),o=i(4040);let r=e=>{let t=["#"],i=(0,n.colorToHex)(e);if(!i)return!1;if(3===(i=(i=(0,o.trim)(i.toUpperCase())).substring(1)).length){for(let e=0;e<3;e+=1)t.push(i[e]),t.push(i[e]);return t.join("")}return i.length>6&&(i=i.slice(0,6)),"#"+i}},19147:function(e,t,i){"use strict";i.d(t,{NUMBER_FIELDS_REG:function(){return a},normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return u}});var n=i(70222),o=i(18303),r=i(93387),s=i(74264);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(e,t){return!(0,o.isVoid)(t)&&a.test(e)&&(0,n.isNumeric)(t.toString())?parseInt(t.toString(),10)+"px":t}function u(e,t){if("font-weight"===(0,s.kebabCase)(e)){switch(t.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,n.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}},27978:function(e,t,i){"use strict";i.d(t,{normalizeKeyAliases:function(){return r}});var n=i(81937),o=i(4040);function r(e){let t={},i={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(e=>(0,o.trim)(e.toLowerCase())).map(e=>n.KEY_ALIASES[e]||e).sort((e,t)=>i[e]&&!i[t]?-1:!i[e]&&i[t]?1:i[e]&&i[t]?i[e]-i[t]:e>t?1:-1).filter(e=>!t[e]&&""!==e&&(t[e]=!0)).join("+")}},49663:function(e,t,i){"use strict";i.d(t,{normalizeLicense:function(){return n}});let n=(e,t=8)=>{let i=[];for(;e.length;)i.push(e.substr(0,t)),e=e.substr(t);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")}},18377:function(e,t,i){"use strict";i.d(t,{normalizePath:function(){return o}});var n=i(4040);let o=(...e)=>e.filter(e=>(0,n.trim)(e).length).map((t,i)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),i&&(t=t.replace(/^\//,"")),i!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/")},96340:function(e,t,i){"use strict";i.d(t,{normalizeRelativePath:function(){return n}});let n=e=>e.split("/").reduce((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e},[]).join("/")+(e.endsWith("/")?"/":"")},98831:function(e,t,i){"use strict";i.d(t,{normalizeSize:function(){return n}});let n=(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()},48009:function(e,t,i){"use strict";i.d(t,{normalizeUrl:function(){return n}});let n=(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},54447:function(e,t,i){"use strict";i.d(t,{getContentWidth:function(){return n}});let n=(e,t)=>{let i=t.getComputedStyle(e);return e.offsetWidth-parseInt(i.getPropertyValue("padding-left")||"0",10)-parseInt(i.getPropertyValue("padding-right")||"0",10)}},34027:function(e,t,i){"use strict";i.d(t,{getScrollParent:function(){return function e(t){if(!t)return null;let i=o.Dom.isHTMLElement(t),s=i&&(0,r.css)(t,"overflowY");return i&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||n.globalDocument.scrollingElement||n.globalDocument.body}}});var n=i(81937),o=i(23211),r=i(93640)},86878:function(e,t,i){"use strict";i.d(t,{getContentWidth:function(){return n.getContentWidth},getScrollParent:function(){return o.getScrollParent},innerWidth:function(){return r.innerWidth},offset:function(){return a.offset},position:function(){return l.position},size:function(){return s.size}});var n=i(54447),o=i(34027),r=i(83215),s=i(18073),a=i(69143),l=i(23599)},83215:function(e,t,i){"use strict";i.d(t,{innerWidth:function(){return n}});let n=(e,t)=>{let i=t.getComputedStyle(e);return e.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}},18073:function(e,t,i){"use strict";i.d(t,{size:function(){return o}});var n=i(28686);function o(e){return(0,n.isString)(e)||(0,n.isArray)(e)?e.length:(0,n.isPlainObject)(e)?Object.keys(e).length:0}},69143:function(e,t,i){"use strict";i.d(t,{offset:function(){return n}});let n=(e,t,i,o=!1)=>{let r,s,a;try{r=e.getBoundingClientRect()}catch(e){r={top:0,bottom:0,left:0,right:0,width:0,height:0}}let l=i.body,u=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},c=i.defaultView||i.parentWindow,d=c.pageYOffset||u.scrollTop||l.scrollTop,h=c.pageXOffset||u.scrollLeft||l.scrollLeft,p=u.clientTop||l.clientTop||0,m=u.clientLeft||l.clientLeft||0,f=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&f){let{top:e,left:i}=n(f,t,t.od,!0);s=r.top+e,a=r.left+i}else s=r.top+d-p,a=r.left+h-m;return{top:Math.round(s),left:Math.round(a),width:r.width,height:r.height}}},23599:function(e,t,i){"use strict";i.d(t,{position:function(){return function e(t,i,o=!1){var r,s;let a=t.getBoundingClientRect(),l=a.left,u=a.top;if((0,n.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(t)&&!o){let{left:t,top:n}=e(i.iframe,i,!0);l+=t,u+=n}return{left:Math.round(l),top:Math.round(u),width:Math.round(null!=(r=t.offsetWidth)?r:a.width),height:Math.round(null!=(s=t.offsetHeight)?s:a.height)}}}});var n=i(24497)},57821:function(e,t,i){"use strict";i.d(t,{camelCase:function(){return n}});let n=e=>e.replace(/([-_])(.)/g,(e,t,i)=>i.toUpperCase())},57626:function(e,t,i){"use strict";i.d(t,{fuzzySearchIndex:function(){return o}});var n=i(81937);function o(e,t,i=0,r=1){let s=0,a=0,l=-1,u=0,c=0;for(a=i;s<e.length&&a<t.length;)e[s].toLowerCase()===t[a].toLowerCase()?(s++,u++,c=0,-1===l&&(l=a)):s>0&&(c>=r&&t[a]!==n.INVISIBLE_SPACE?(s=0,l=-1,u=0,c=0,a--):(c++,u++)),a++;return s===e.length?[l,u]:[-1,0]}},18080:function(e,t,i){"use strict";i.d(t,{i18n:function(){return u},sprintf:function(){return l}});var n=i(81937),o=i(85932),r=i(99436),s=i(93640),a=i(5266);let l=(e,t)=>{if(!t||!t.length)return e;let i=/%([sd])/g,n=i.exec(e),o=e,r=0;for(;n&&void 0!==t[r];)o=o.replace(n[0],t[r].toString()),r+=1,n=i.exec(e);return o};function u(e,t,i){if(!(0,o.isString)(e))throw(0,s.error)("i18n: Need string in first argument");if(!e.length)return e;let u=!!(null==i?void 0:i.debugLanguage),c={},d=e=>t&&t.length?l(e,t):e,h=(0,s.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),p=(0,s.defaultLanguage)(null==i?void 0:i.language,h),m=t=>{if(!t)return;if((0,o.isString)(t[e]))return d(t[e]);let i=e.toLowerCase();if((0,o.isString)(t[i]))return d(t[i]);let n=(0,r.ucfirst)(e);if((0,o.isString)(t[n]))return d(t[n])};void 0!==n.lang[p]?c=n.lang[p]:u||(c=void 0!==n.lang[h]?n.lang[h]:n.lang.en);let f=null==i?void 0:i.i18n;if(f&&f[p]){let e=m(f[p]);if(e)return e}return m(c)||(!u&&n.lang.en&&(0,o.isString)(n.lang.en[e])&&n.lang.en[e]?d(n.lang.en[e]):u?"{"+e+"}":(n.IS_PROD,d(e)))}},97642:function(e,t,i){"use strict";i.d(t,{CamelCaseToKebabCase:function(){return s.CamelCaseToKebabCase},camelCase:function(){return n.camelCase},fuzzySearchIndex:function(){return o.fuzzySearchIndex},i18n:function(){return r.i18n},kebabCase:function(){return s.kebabCase},sprintf:function(){return r.sprintf},stringify:function(){return a.stringify},trim:function(){return l.trim},trimChars:function(){return l.trimChars},trimInv:function(){return l.trimInv},ucfirst:function(){return u.ucfirst}});var n=i(57821),o=i(57626),r=i(18080),s=i(74264),a=i(3347),l=i(4040),u=i(99436)},74264:function(e,t,i){"use strict";i.d(t,{CamelCaseToKebabCase:function(){return o},kebabCase:function(){return n}});let n=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),o=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},3347:function(e,t,i){"use strict";function n(e,t={}){if("object"!=typeof e)return String(e);let i=new Set(t.excludeKeys),o=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!i.has(e)){if("object"==typeof t&&null!=t){if(o.get(t))return"[refObject]";o.set(t,!0)}return t}},t.prettify)}i.d(t,{stringify:function(){return n}})},4040:function(e,t,i){"use strict";i.d(t,{trim:function(){return o},trimChars:function(){return r},trimInv:function(){return s}});var n=i(81937);function o(e){return e.replace((0,n.SPACE_REG_EXP_END)(),"").replace((0,n.SPACE_REG_EXP_START)(),"")}function r(e,t){return e.replace(RegExp(`[${t}]+$`),"").replace(RegExp(`^[${t}]+`),"")}function s(e){return e.replace((0,n.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,n.INVISIBLE_SPACE_REG_EXP_START)(),"")}},99436:function(e,t,i){"use strict";function n(e){return e.length?e[0].toUpperCase()+e.substring(1):""}i.d(t,{ucfirst:function(){return n}})},16849:function(e,t,i){"use strict";i.d(t,{alignElement:function(){return a},clearAlign:function(){return s},hAlignElement:function(){return r}});var n=i(27795),o=i(80991);function r(e,t){t&&"normal"!==t?"center"!==t?((0,o.css)(e,"float",t),(0,o.clearCenterAlign)(e)):(0,o.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,o.css)(e,"float")&&-1!==["right","left"].indexOf((0,o.css)(e,"float").toString().toLowerCase())&&(0,o.css)(e,"float",""),(0,o.clearCenterAlign)(e))}function s(e){n.Dom.each(e,e=>{n.Dom.isHTMLElement(e)&&e.style.textAlign&&(e.style.textAlign="",e.style.cssText.trim().length||e.removeAttribute("style"))})}function a(e,t){if(n.Dom.isNode(t)&&n.Dom.isElement(t))switch(s(t),e.toLowerCase()){case"justifyfull":t.style.textAlign="justify";break;case"justifyright":t.style.textAlign="right";break;case"justifyleft":t.style.textAlign="left";break;case"justifycenter":t.style.textAlign="center"}}},47760:function(e,t,i){"use strict";i.d(t,{alreadyLoadedList:function(){return r},appendScriptAsync:function(){return a},appendStyleAsync:function(){return l},loadNext:function(){return function e(t,i,o=0){return(0,n.isString)(i[o])?a(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,i,o=0){return(0,n.isString)(i[o])?l(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}}});var n=i(85932),o=i(91321);let r=new Map,s=e=>(t,i)=>{if(r.has(i))return r.get(i);let n=e(t,i);return r.set(i,n),n},a=s((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let r=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,o.completeUrl)(t)});e.e.one(r,"error",n).one(r,"load",i),e.od.body.appendChild(r)})),l=s((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let r=e.c.element("link");r.rel="stylesheet",r.media="all",r.crossOrigin="anonymous",e.isInDestruct||e.e.on(r,"load",()=>i(r)).on(r,"error",n),r.href=(0,o.completeUrl)(t),e.o.shadowRoot?e.o.shadowRoot.appendChild(r):e.od.body.appendChild(r)}))},7909:function(e,t,i){"use strict";i.d(t,{attr:function(){return function e(t,i,l){if(!t||!(0,n.isFunction)(t.getAttribute))return null;if(!(0,r.isString)(i))return Object.keys(i).forEach(n=>{let r=i[n];(0,o.isPlainObject)(r)&&"style"===n?(0,a.css)(t,r):("className"===n&&(n="class"),e(t,n,r))}),null;let u=(0,s.CamelCaseToKebabCase)(i);if(/^-/.test(u)){let i=e(t,`data${u}`);if(i)return i;u=u.substr(1)}if(void 0!==l)if(null==l)t.hasAttribute(u)&&t.removeAttribute(u);else{let e=l.toString();return"IMG"===t.nodeName&&("width"===u||"height"===u)&&(e=e.replace("px","")),t.setAttribute(u,e),e}return t.getAttribute(u)}}});var n=i(91565),o=i(62101),r=i(85932),s=i(74264),a=i(80991)},26136:function(e,t,i){"use strict";i.d(t,{browser:function(){return n}});let n=e=>{let t=navigator.userAgent.toLowerCase(),i=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||0>t.indexOf("compatible")||[];return"version"===e?i[2]:"webkit"===e?"chrome"===i[1]||"webkit"===i[1]:"ff"===e?"firefox"===i[1]:"msie"===e?"trident"===i[1]||"msie"===i[1]:i[1]===e}},36833:function(e,t,i){"use strict";i.d(t,{buildQuery:function(){return o}});var n=i(62101);let o=(e,t)=>{let i=[],r=encodeURIComponent;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)){let a=t?t+"["+s+"]":s,l=e[s];i.push((0,n.isPlainObject)(l)?o(l,a):r(a)+"="+r(l))}return i.join("&")}},91321:function(e,t,i){"use strict";i.d(t,{completeUrl:function(){return o}});var n=i(81937);let o=e=>("file:"===n.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)},77483:function(e,t,i){"use strict";i.d(t,{ConfigDeepFlatten:function(){return function e(t){return(0,u.keys)(t,!1).reduce((i,n)=>(i[n]=(0,o.isPlainObject)(t[n])?e(t[n]):t[n],i),{})}},ConfigFlatten:function(){return c},ConfigProto:function(){return function e(t,i,u=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let c=a.Config.defaultOptions;if((0,r.isString)(t.preset)){if(void 0!==c.presets[t.preset]){let e=c.presets[t.preset];Object.keys(e).forEach(i=>{(0,s.isVoid)(t[i])&&(t[i]=e[i])})}delete t.preset}let d={};return Object.keys(t).forEach(r=>{let s=t[r],a=i?i[r]:null;if((0,o.isPlainObject)(s)&&(0,o.isPlainObject)(a)&&!(0,l.isAtom)(s)){d[r]=e(s,a,u+1);return}if(0!==u&&(0,n.isArray)(s)&&!(0,l.isAtom)(s)&&(0,n.isArray)(a)){d[r]=[...s,...a.slice(s.length)];return}d[r]=s}),Object.setPrototypeOf(d,i),d}}});var n=i(17312),o=i(62101),r=i(85932),s=i(18303),a=i(5266),l=i(54794),u=i(71125);function c(e){return(0,u.keys)(e,!1).reduce((t,i)=>(t[i]=e[i],t),{})}},3856:function(e,t,i){"use strict";i.d(t,{convertMediaUrlToVideoEmbed:function(){return s}});var n=i(81937),o=i(91764),r=i(36310);let s=(e,{width:t=400,height:i=345}={})=>{if(!(0,o.isURL)(e))return e;let s=n.globalDocument.createElement("a"),a=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;s.href=e,t||(t=400),i||(i=345);let l=s.protocol||"";switch(s.hostname){case"www.vimeo.com":case"vimeo.com":return a.test(e)?e.replace(a,'<iframe width="'+t+'" height="'+i+'" src="'+l+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):e;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{let n=s.search?(0,r.parseQuery)(s.search):{v:s.pathname.substring(1)};return/^embed\/.*/.test(n.v)&&(n.v=n.v.substring(6)),n.v?'<iframe width="'+t+'" height="'+i+'" src="'+l+"//www.youtube.com/embed/"+n.v+'" frameborder="0" allowfullscreen></iframe>':e}}return e}},80991:function(e,t,i){"use strict";i.d(t,{clearCenterAlign:function(){return u},css:function(){return l}});var n=i(22289),o=i(62101),r=i(19147),s=i(57821),a=i(74264);function l(e,t,i,u=!1){if((0,n.isBoolean)(i)&&(u=i,i=void 0),(0,o.isPlainObject)(t)||void 0!==i){let n=(e,t,i)=>{void 0!==(i=(0,r.normalizeCssNumericValue)(t,i))&&(null==i||l(e,t,!0)!==(0,r.normalizeCssValue)(t,i))&&(e.style[t]=i)};if((0,o.isPlainObject)(t)){let i=Object.keys(t);for(let o=0;o<i.length;o+=1)n(e,(0,s.camelCase)(i[o]),t[i[o]])}else n(e,(0,s.camelCase)(t),i);return""}let c=(0,a.kebabCase)(t),d=e.ownerDocument||document,h=!!d&&(d.defaultView||d.parentWindow),p=e.style[t],m="";return void 0!==p&&""!==p?m=p:h&&!u&&(m=h.getComputedStyle(e).getPropertyValue(c)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(m.toString())&&(m=parseInt(m.toString(),10)),(0,r.normalizeCssValue)(t,m)}let u=e=>{"block"===l(e,"display")&&l(e,"display","");let{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}},77213:function(e,t,i){"use strict";i.d(t,{ctrlKey:function(){return n}});let n=e=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}},36400:function(e,t,i){"use strict";i.d(t,{dataBind:function(){return r}});var n=i(31534);let o=new WeakMap,r=(e,t,i)=>{let r=o.get(e);if(!r){r={},o.set(e,r);let t=null;(0,n.isViewObject)(e.j)&&(t=e.j.e),(0,n.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{o.delete(e)})}return void 0===i?r[t]:(r[t]=i,i)}},97228:function(e,t,i){"use strict";i.d(t,{defaultLanguage:function(){return r}});var n=i(81937),o=i(85932);let r=(e,t="en")=>"auto"!==e&&(0,o.isString)(e)?e:n.globalDocument.documentElement&&n.globalDocument.documentElement.lang?n.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):t},38027:function(e,t,i){"use strict";i.d(t,{connection:function(){return r},error:function(){return o},options:function(){return s}});var n=i(29953);function o(e){return TypeError(e)}function r(e){return new n.ConnectionError(e)}function s(e){return new n.OptionsError(e)}},14228:function(e,t,i){"use strict";function n(e="Aborted"){return new DOMException(e,"AbortError")}i.d(t,{abort:function(){return n}})},58250:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return n}});class n extends Error{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}},29953:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return n.abort}});var n=i(14228),o=i(58250),r=i(11080)},11080:function(e,t,i){"use strict";i.d(t,{OptionsError:function(){return n}});class n extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}},33201:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return o.OptionsError},abort:function(){return o.abort},connection:function(){return n.connection},error:function(){return n.error},options:function(){return n.options}});var n=i(38027),o=i(29953)},54794:function(e,t,i){"use strict";i.d(t,{fastClone:function(){return s},isAtom:function(){return o},markAsAtomic:function(){return r}});var n=i(3347);function o(e){return e&&e.isAtom}function r(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function s(e){return JSON.parse((0,n.stringify)(e))}},421:function(e,t,i){"use strict";i.d(t,{getClassName:function(){return r},keepNames:function(){return o}});var n=i(91565);let o=new Map,r=e=>{var t;if((0,n.isFunction)(e.className))return e.className();let i=(null==(t=e.constructor)?void 0:t.originalConstructor)||e.constructor;if(o.has(i))return o.get(i);if(i.name)return i.name;let r=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=i.toString().match(r);return s?s[1]:""}},89308:function(e,t,i){"use strict";i.d(t,{get:function(){return r}});var n=i(85932),o=i(18303);function r(e,t){if(!(0,n.isString)(e)||!e.length)return null;let i=e.split("."),r=t;try{for(let e of i){if((0,o.isVoid)(r[e]))return null;r=r[e]}}catch(e){return null}return(0,o.isVoid)(r)?null:r}},37427:function(e,t,i){"use strict";i.d(t,{humanSizeToBytes:function(){return n}});let n=e=>{if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);let t=e.substr(-2,2).toUpperCase(),i=["KB","MB","GB","TB"],n=parseFloat(e.substr(0,e.length-2));return -1!==i.indexOf(t)?n*Math.pow(1024,i.indexOf(t)+1):parseInt(e,10)}},93640:function(e,t,i){"use strict";i.r(t),i.d(t,{$$:function(){return x.$$},ConfigDeepFlatten:function(){return h.ConfigDeepFlatten},ConfigFlatten:function(){return h.ConfigFlatten},ConfigProto:function(){return h.ConfigProto},ConnectionError:function(){return _.ConnectionError},LimitedStack:function(){return z.LimitedStack},OptionsError:function(){return _.OptionsError},abort:function(){return _.abort},alignElement:function(){return n.alignElement},alreadyLoadedList:function(){return o.alreadyLoadedList},appendScriptAsync:function(){return o.appendScriptAsync},appendStyleAsync:function(){return o.appendStyleAsync},attr:function(){return l.attr},browser:function(){return u.browser},buildQuery:function(){return c.buildQuery},call:function(){return j.call},callPromise:function(){return j.callPromise},callThis:function(){return j.callThis},clearAlign:function(){return n.clearAlign},clearCenterAlign:function(){return m.clearCenterAlign},cns:function(){return C.cns},completeUrl:function(){return d.completeUrl},connection:function(){return _.connection},convertMediaUrlToVideoEmbed:function(){return p.convertMediaUrlToVideoEmbed},css:function(){return m.css},cssPath:function(){return x.cssPath},ctrlKey:function(){return f.ctrlKey},dataBind:function(){return g.dataBind},defaultLanguage:function(){return v.defaultLanguage},error:function(){return _.error},fastClone:function(){return b.fastClone},get:function(){return y.get},getClassName:function(){return S.getClassName},getDataTransfer:function(){return j.getDataTransfer},getPropertyDescriptor:function(){return j.getPropertyDescriptor},getXPathByElement:function(){return x.getXPathByElement},hAlignElement:function(){return n.hAlignElement},humanSizeToBytes:function(){return w.humanSizeToBytes},inView:function(){return T.inView},isAtom:function(){return b.isAtom},keepNames:function(){return S.keepNames},keys:function(){return j.keys},loadImage:function(){return j.loadImage},loadNext:function(){return o.loadNext},loadNextStyle:function(){return o.loadNextStyle},markAsAtomic:function(){return b.markAsAtomic},markDeprecated:function(){return C.markDeprecated},markOwner:function(){return j.markOwner},memorizeExec:function(){return j.memorizeExec},options:function(){return _.options},parseQuery:function(){return k.parseQuery},previewBox:function(){return E.previewBox},refs:function(){return x.refs},reset:function(){return I.reset},resolveElement:function(){return x.resolveElement},scrollIntoViewIfNeeded:function(){return T.scrollIntoViewIfNeeded},set:function(){return D.set}});var n=i(16849),o=i(47760),r=i(28712),s={};for(var a in r)0>["default","alignElement","clearAlign","hAlignElement","alreadyLoadedList","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(a)&&(s[a]=(function(e){return r[e]}).bind(0,a));i.d(t,s);var l=i(7909),u=i(26136),c=i(36833),d=i(91321),h=i(77483),p=i(3856),m=i(80991),f=i(77213),g=i(36400),v=i(97228),_=i(33201),b=i(54794),y=i(89308),S=i(421),w=i(37427),C=i(49385),k=i(36310),E=i(57075),I=i(43379),T=i(60898),x=i(28723),D=i(52144),z=i(42820),j=i(71125)},49385:function(e,t,i){"use strict";i.d(t,{cns:function(){return n},markDeprecated:function(){return o}});let n=console;function o(e,t=[""],i=null){return(...o)=>(n.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...o))}},36310:function(e,t,i){"use strict";i.d(t,{parseQuery:function(){return n}});let n=e=>{let t={},i=e.substring(1).split("&");for(let e=0;e<i.length;e+=1){let n=i[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")}return t}},57075:function(e,t,i){"use strict";i.d(t,{previewBox:function(){return l}});var n=i(23211),o=i(85932),r=i(7909),s=i(80991),a=i(28723);function l(e,t,i="px",u=null){let c=[],d=function(e,t){let i=[];try{(0,a.$$)("img",e.editor).forEach(o=>{let s=[(0,r.attr)(o,"width"),(0,r.attr)(o,"height"),o.src];(0,r.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});let a=e.createInside.a();e.ed.body.appendChild(a),a.href=o.src,o.src=a.href,n.Dom.safeRemove(a),i.push(()=>{var e;o.src=null!=(e=s[2])?e:"",(0,r.attr)(o,{width:s[0]||null,height:s[1]||null})})})}catch(e){throw i.forEach(e=>e()),i.length=0,e}return i}(e,i);try{let a=e.e.fire("beforePreviewBox",t,i);if(null!=a)return a;let l=e.c.div("jodit__preview-box jodit-context");u&&u.appendChild(l),(0,s.css)(l,{position:"relative",padding:16});let d=e.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${e.i18n("Empty")}</div>`;if(e.iframe){let t=e.create.element("iframe");(0,s.css)(t,{minWidth:800,minHeight:600,border:0}),l.appendChild(t);let i=t.contentWindow;if(i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),l=i.document.body,"function"==typeof ResizeObserver)){let n=!1,o=i.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(o),t.style.height=`${o.offsetHeight+20}px`,e.async.requestAnimationFrame(()=>{n||r.observe(o)})},100)),s=()=>{n=!0,r.unobserve(o),r.disconnect(),e.e.off("beforeDestruct",s)};c.push(s),e.e.on("beforeDestruct",s)}}else(0,s.css)(l,{minWidth:1024,minHeight:600,border:0});let h=(t,i)=>{let s=(0,o.isString)(i)?e.c.div():i;(0,o.isString)(i)&&(s.innerHTML=i);for(let e=0;e<s.childNodes.length;e+=1){let i=s.childNodes[e];if(n.Dom.isElement(i)){let e=t.ownerDocument.createElement(i.nodeName);for(let t=0;t<i.attributes.length;t+=1)(0,r.attr)(e,i.attributes[t].nodeName,i.attributes[t].nodeValue);0===i.childNodes.length||n.Dom.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(e.textContent=i.textContent):i.innerHTML&&(e.innerHTML=i.innerHTML):h(e,i);try{t.appendChild(e)}catch(e){}}else try{t.appendChild(i.cloneNode(!0))}catch(e){}}};return h(l,d),e.e.fire("afterPreviewBox",l),[l,()=>{c.forEach(e=>e())}]}finally{d.forEach(e=>e())}}},43379:function(e,t,i){"use strict";i.d(t,{reset:function(){return a}});var n=i(81937),o=i(91565),r=i(89308);let s={};function a(e){var t,i;if(!(e in s)){let t=n.globalDocument.createElement("iframe");try{if(t.src="about:blank",n.globalDocument.body.appendChild(t),!t.contentWindow)return null;let i=(0,r.get)(e,t.contentWindow),a=(0,r.get)(e.split(".").slice(0,-1).join("."),t.contentWindow);(0,o.isFunction)(i)&&(s[e]=i.bind(a))}catch(e){if(!n.IS_PROD)throw e}finally{null==(i=t.parentNode)||i.removeChild(t)}}return null!=(t=s[e])?t:null}},60898:function(e,t,i){"use strict";i.d(t,{inView:function(){return o},scrollIntoViewIfNeeded:function(){return r}});var n=i(23211);function o(e,t,i){let n=e.getBoundingClientRect(),o=e,r=n.top,s=n.height;for(;o&&o!==t&&o.parentNode;)if(!(r<=(n=(o=o.parentNode).getBoundingClientRect()).bottom)||r+s<=n.top)return!1;return r<=(i.documentElement&&i.documentElement.clientHeight||0)}function r(e,t,i){n.Dom.isHTMLElement(e)&&!o(e,t,i)&&(t.clientHeight!==t.scrollHeight&&(t.scrollTop=e.offsetTop),o(e,t,i)||e.scrollIntoView())}},28723:function(e,t,i){"use strict";i.d(t,{$$:function(){return d},cssPath:function(){return m},getXPathByElement:function(){return h},refs:function(){return p},resolveElement:function(){return f}});var n=i(81937),o=i(23211),r=i(88475),s=i(85932),a=i(57821),l=i(7909),u=i(33201);let c=1;function d(e,t){let i;if(!n.IS_ES_NEXT&&/:scope/.test(e)&&n.IS_IE&&!(t&&t.nodeType===Node.DOCUMENT_NODE)){let n=t.id,o=n||"_selector_id_"+String(Math.random()).slice(2)+ ++c;e=e.replace(/:scope/g,"#"+o),n||t.setAttribute("id",o),i=t.parentNode.querySelectorAll(e),n||t.removeAttribute("id")}else i=t.querySelectorAll(e);return[].slice.call(i)}let h=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE||!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";let i=[].filter.call(e.parentNode.childNodes,t=>t.nodeName===e.nodeName);return h(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(i.length>1?"["+((0,r.toArray)(i).indexOf(e)+1)+"]":"")},p=e=>("container"in e&&(e=e.container),d("[ref],[data-ref]",e).reduce((e,t)=>{let i=(0,l.attr)(t,"-ref");return i&&(0,s.isString)(i)&&(e[(0,a.camelCase)(i)]=t,e[i]=t),e},{})),m=e=>{if(!o.Dom.isElement(e))return null;let t=[],i=e;for(;i&&i.nodeType===Node.ELEMENT_NODE;){let e=i.nodeName.toLowerCase();if(i.id){e+="#"+i.id,t.unshift(e);break}{let t=i,n=1;do(t=t.previousElementSibling)&&t.nodeName.toLowerCase()===e&&n++;while(t);e+=":nth-of-type("+n+")"}t.unshift(e),i=i.parentNode}return t.join(" > ")};function f(e,t){let i=e;if((0,s.isString)(e))try{i=t.querySelector(e)}catch(t){throw(0,u.error)('String "'+e+'" should be valid HTML selector')}if(!i||"object"!=typeof i||!o.Dom.isElement(i)||!i.cloneNode)throw(0,u.error)('Element "'+e+'" should be string or HTMLElement instance');return i}},52144:function(e,t,i){"use strict";i.d(t,{set:function(){return a}});var n=i(17312),o=i(70222),r=i(62101),s=i(85932);function a(e,t,i){if(!(0,s.isString)(e)||!e.length)return;let a=e.split("."),l=i,u=a[0];for(let e=0;e<a.length-1;e+=1)u=a[e],(0,n.isArray)(l[u])||(0,r.isPlainObject)(l[u])||(l[u]=(0,o.isNumeric)(a[e+1])?[]:{}),l=l[u];l&&(l[a[a.length-1]]=t)}},42820:function(e,t,i){"use strict";i.d(t,{LimitedStack:function(){return o}});var n=i(25045);class o{push(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(e){return this.stack.find(e)}constructor(e){(0,n._)(this,"limit",void 0),(0,n._)(this,"stack",void 0),this.limit=e,this.stack=[]}}},71125:function(e,t,i){"use strict";i.d(t,{call:function(){return a},callPromise:function(){return c},callThis:function(){return l},getDataTransfer:function(){return m},getPropertyDescriptor:function(){return f},keys:function(){return h},loadImage:function(){return d},markOwner:function(){return u},memorizeExec:function(){return p}});var n=i(52100),o=i(18303),r=i(7909),s=i(36400);function a(e,...t){return e(...t)}function l(e,t,...i){return e.apply(t,i)}function u(e,t){(0,r.attr)(t,"data-editor_id",e.id),t.component||Object.defineProperty(t,"jodit",{value:e})}function c(e,t){return(0,n.isPromise)(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}let d=(e,t)=>t.async.promise((i,n)=>{let o=new Image,r=()=>{t.e.off(o),null==n||n()},s=()=>{t.e.off(o),i(o)};t.e.one(o,"load",s).one(o,"error",r).one(o,"abort",r),o.src=e,o.complete&&s()}),h=(e,t=!0)=>{if(t)return Object.keys(e);let i=[];for(let t in e)i.push(t);return i},p=(e,t,{control:i},n)=>{var r;let a=`button${i.command}`,l=null!=(r=i.args&&i.args[0])?r:(0,s.dataBind)(e,a);if((0,o.isVoid)(l))return!1;(0,s.dataBind)(e,a,l),n&&(l=n(l)),e.execCommand(i.command,!1,null!=l?l:void 0)},m=e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}};function f(e,t){let i;do i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!i&&e);return i}},55810:function(e,t,i){"use strict";i.d(t,{init:function(){return s}});var n=i(81937),o=i(52433),r=i(3050);function s(e,t,i,s,a,l,u){if((0,o.isInitable)(s))try{s.init(e)}catch(e){if(!n.IS_PROD)throw e}a.set(t,s),l.delete(t),s.hasStyle&&(0,r.loadStyle)(e,t).catch(e=>{n.IS_PROD}),s.styles&&(u(e,t,"style").innerHTML=s.styles)}},3050:function(e,t,i){"use strict";i.d(t,{loadExtras:function(){return c},loadStyle:function(){return l}});var n=i(81937),o=i(74264),r=i(47760),s=i(86189);let a=new Set;async function l(e,t){let i=u(e,t,!1);if(!a.has(i))return a.add(i),(0,r.appendStyleAsync)(e,i)}function u(e,t,i){t=(0,o.kebabCase)(t);let n=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+n+"."+(i?"js":"css")}function c(e,t,i,o){try{let n=i.filter(t=>!e.has((0,s.normalizeName)(t.name)));n.length&&n.map(e=>{let i=e.url||u(t,e.name,!0);return(0,r.appendScriptAsync)(t,i).then(o).catch(()=>null)})}catch(e){if(!n.IS_PROD)throw e}}},25974:function(e,t,i){"use strict";i.d(t,{makeInstance:function(){return r}});var n=i(81937),o=i(91565);function r(e,t){try{try{return(0,o.isFunction)(t)?new t(e):t}catch(i){if((0,o.isFunction)(t)&&!t.prototype)return t(e)}}catch(e){if(!n.IS_PROD)throw e}return null}},86189:function(e,t,i){"use strict";i.d(t,{normalizeName:function(){return o}});var n=i(74264);function o(e){return(0,n.kebabCase)(e).toLowerCase()}},91206:function(e,t,i){"use strict";i.d(t,{Plugin:function(){return n.Plugin}});var n=i(18855);i(85305)},85305:function(e,t,i){"use strict";i.d(t,{PluginSystem:function(){return m}});var n=i(25045),o=i(81937),r=i(42689),s=i(32328),a=i(17312),l=i(52433),u=i(85932),c=i(55810),d=i(3050),h=i(25974),p=i(86189);class m{get size(){return this.__items.size}add(e,t){this.__items.set((0,p.normalizeName)(e),t),r.eventEmitter.fire(`plugin:${e}:ready`)}get(e){return this.__items.get((0,p.normalizeName)(e))}remove(e){this.__items.delete((0,p.normalizeName)(e))}__getFullPluginsList(e){let t=[];return this.__items.forEach((i,n)=>{(!e||e.has(n))&&t.push([n,i])}),t}__init(e){let{extraList:t,disableList:i,filter:n}={extraList:e.o.extraPlugins.map(e=>(0,u.isString)(e)?{name:e}:e),disableList:new Set((0,s.splitArray)(e.o.disablePlugins).map(p.normalizeName)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null},r=new Map,m={},f=new Set;e.__plugins=m;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(n).forEach(([n,o])=>{if(i.has(n)||r.has(n))return;let s=null==o?void 0:o.requires;if(s&&(0,a.isArray)(s)&&s.length){if(s.some(e=>i.has(e)))return;if(!s.every(e=>r.has(e)))return void f.add(n)}t=!0;let l=(0,h.makeInstance)(e,o);if(!l){r.set(n,null),f.delete(n);return}(0,c.init)(e,n,o,l,r,f,this.opts.getContainer),m[n]=l}),t&&(e.e.fire("updatePlugins"),g())};t&&t.length&&(0,d.loadExtras)(this.__items,e,t,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(m).forEach(t=>{let i=m[t];(0,l.isDestructable)(i)&&i.destruct(e),delete m[t]}),delete e.__plugins}),o.IS_PROD||f.size}wait(e){return new Promise(t=>{if(this.get(e))return t();let i=()=>{t(),r.eventEmitter.off(`plugin:${e}:ready`,i)};r.eventEmitter.on(`plugin:${e}:ready`,i)})}constructor(e){(0,n._)(this,"opts",void 0),(0,n._)(this,"__items",void 0),this.opts=e,this.__items=new Map}}},18855:function(e,t,i){"use strict";i.d(t,{Plugin:function(){return l}});var n=i(25045),o=i(31635),r=i(16964),s=i(84839),a=i(24497);class l extends r.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:e,buttons:t}=this;t&&(0,a.isJoditObject)(e)&&t.forEach(t=>{e.registerButton(t)})}__afterInit(){this.__inited=!0,this.setStatus(r.STATUSES.ready),this.afterInit(this.jodit)}init(e){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){if(this.isInDestruct)return;let{j:e}=this;if(e.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(r.STATUSES.beforeDestruct),!this.__inited)return super.destruct();if((0,a.isJoditObject)(e)){var t;null==(t=this.buttons)||t.forEach(t=>{null==e||e.unregisterButton(t)})}this.beforeDestruct(this.j),super.destruct()}constructor(e){super(e),(0,n._)(this,"buttons",[]),(0,n._)(this,"hasStyle",!1),(0,n._)(this,"styles",void 0),(0,n._)(this,"__inited",!1),e.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}(0,n._)(l,"requires",[]),(0,o.__decorate)([s.autobind],l.prototype,"__afterPluginSystemInit",null),(0,o.__decorate)([s.autobind],l.prototype,"__afterInit",null),(0,o.__decorate)([s.autobind],l.prototype,"__beforeDestruct",null)},17338:function(e,t,i){"use strict";i.d(t,{Ajax:function(){return h}});var n=i(25045),o=i(31635),r=i(91231),s=i(81937),a=i(49574),l=i(65946),u=i(33201),c=i(5266);i(37102);var d=i(32855);class h{className(){return"Ajax"}__buildParams(e,t){return(0,l.isPlainObject)(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):(0,l.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):(0,l.isString)(e)||e instanceof s.globalWindow.FormData||"object"==typeof e&&null!=e&&(0,l.isFunction)(e.append)?e:(0,l.buildQuery)(e)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(e){}return this}send(){this.__activated=!0;let{xhr:e,o:t}=this,i=this.prepareRequest();return this.__async.promise(async(n,o)=>{var r;let s=()=>{this.__isFulfilled=!0,o(u.connection("Connection error"))},a=()=>{this.__isFulfilled=!0,n(new d.Response(i,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=a,e.onabort=()=>{this.__isFulfilled=!0,o(u.abort("Abort connection"))},e.onerror=s,e.ontimeout=s,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,i;let n=0;e.lengthComputable&&(n=e.loaded/e.total*100),null==(t=(i=this.options).onProgress)||t.call(i,n)},e.onreadystatechange=()=>{var i,n;null==(i=(n=this.options).onProgress)||i.call(n,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?a():e.statusText&&(this.__isFulfilled=!0,o(u.connection(e.statusText))))},e.withCredentials=null!=(r=t.withCredentials)&&r;let{url:c,data:h,method:p}=i;e.open(p,c,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:m}=t;(0,l.isFunction)(m)&&(m=await m.call(this)),m&&e.setRequestHeader&&Object.keys(m).forEach(t=>{e.setRequestHeader(t,m[t])}),this.__async.setTimeout(()=>{e.send(h?this.__buildParams(h):void 0)},0)})}prepareRequest(){if(!this.o.url)throw u.error("Need URL for AJAX request");let e=this.o.url,t=this.o.data,i=(this.o.method||"get").toLowerCase();if("get"===i&&t&&(0,l.isPlainObject)(t)){let i=e.indexOf("?");if(-1!==i){let n=(0,l.parseQuery)(e);e=e.substring(0,i)+"?"+(0,l.buildQuery)({...n,...t})}else e+="?"+(0,l.buildQuery)(this.o.data)}let n={url:e,method:i,data:t};return h.log.splice(100),h.log.push(n),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(e,t=c.Config.prototype.defaultAjaxOptions){(0,n._)(this,"__async",new r.Async),(0,n._)(this,"xhr",void 0),(0,n._)(this,"options",void 0),(0,n._)(this,"__isFulfilled",!1),(0,n._)(this,"__activated",!1),(0,n._)(this,"__isDestructed",!1),this.options=(0,l.ConfigProto)(e||{},t),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}(0,n._)(h,"log",[]),(0,o.__decorate)([a.autobind],h.prototype,"destruct",null)},37102:function(e,t,i){"use strict";i(5266).Config.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr(){return new XMLHttpRequest}}},73714:function(e,t,i){"use strict";i.d(t,{Ajax:function(){return n.Ajax},Response:function(){return o.Response}});var n=i(17338),o=i(32855)},32855:function(e,t,i){"use strict";i.d(t,{Response:function(){return o}});var n=i(25045);class o{get url(){return this.request.url}async json(){return JSON.parse(this.body)}text(){return Promise.resolve(this.body)}async blob(){return this.body}constructor(e,t,i,o){(0,n._)(this,"status",void 0),(0,n._)(this,"statusText",void 0),(0,n._)(this,"request",void 0),(0,n._)(this,"body",void 0),this.request=e,this.status=t,this.statusText=i,this.body=o}}},42259:function(e,t,i){"use strict";i.d(t,{cursorInTheEdgeOfString:function(){return s},findCorrectCurrentNode:function(){return a},moveNodeInsideStart:function(){return r.moveNodeInsideStart}});var n=i(81937),o=i(23211),r=i(89817);function s(e,t,i,o){var r;let s=(null==(r=e.nodeValue)?void 0:r.length)?e.nodeValue:"";if(o&&s.replace((0,n.INVISIBLE_SPACE_REG_EXP_END)(),"").length>t)return!0;let a=(0,n.INVISIBLE_SPACE_REG_EXP_START)().exec(s);return i&&(a&&a[0].length<t||!a&&t>0)}function a(e,t,i,n,r,s){if((e=t.startContainer.childNodes[t.startOffset])||(e=t.startContainer.childNodes[t.startOffset-1],i=!0),e&&n&&!o.Dom.isText(e)){if(!i&&o.Dom.isText(e.previousSibling))e=e.previousSibling;else if(r){let t=s(e);for(;t;){if(t&&o.Dom.isText(t)){e=t;break}t=s(t)}}}if(e&&!n&&!o.Dom.isText(e)){let t=e,i=e;do t=t.firstChild,i=i.lastChild;while(t&&i&&!o.Dom.isText(t));t===i&&t&&o.Dom.isText(t)&&(e=t)}return{node:e,rightMode:i}}i(7470)},89817:function(e,t,i){"use strict";i.d(t,{moveNodeInsideStart:function(){return r}});var n=i(81937),o=i(23211);function r(e,t,i){let r=o.Dom.findSibling(t,i),s=o.Dom.findSibling(t,!i);for(;o.Dom.isElement(r)&&!o.Dom.isTag(r,n.INSEPARABLE_TAGS)&&o.Dom.isContentEditable(r,e.editor)&&(!s||!o.Dom.closest(t,o.Dom.isElement,e.editor));)i||!r.firstChild?r.appendChild(t):o.Dom.before(r.firstChild,t),r=o.Dom.sibling(t,i),s=o.Dom.sibling(t,!i)}},7470:function(e,t,i){"use strict";i.d(t,{moveTheNodeAlongTheEdgeOutward:function(){return o}});var n=i(23211);function o(e,t,i){let o=e;for(;o&&o!==i&&!(n.Dom.findSibling(o,t)||n.Dom.isBlock(o.parentElement));)(o=o.parentElement)&&o!==i&&(t?n.Dom.before(o,e):n.Dom.after(o,e))}},59841:function(e,t,i){"use strict";i.d(t,{CommitStyle:function(){return o.CommitStyle},Selection:function(){return n.Selection}});var n=i(98595),o=i(84578)},98595:function(e,t,i){"use strict";i.d(t,{Selection:function(){return m}});var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(65946),u=i(28686),c=i(28712),d=i(7470),h=i(84578),p=i(42259);class m{get j(){return this.jodit}errorNode(e){if(!a.Dom.isNode(e))throw(0,l.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,u.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:e}=this,t=(null==e?void 0:e.rangeCount)?e.getRangeAt(0):null;return!(!t||!a.Dom.isOrContains(this.area,t.startContainer))}createRange(e=!1){let t=this.doc.createRange();return e&&this.selectRange(t),t}remove(){let e=this.sel,t=this.current();if(e&&t)for(let t=0;t<e.rangeCount;t+=1)e.getRangeAt(t).deleteContents(),e.getRangeAt(t).collapse(!0)}clear(){var e,t;(null==(e=this.sel)?void 0:e.rangeCount)&&(null==(t=this.sel)||t.removeAllRanges())}removeNode(e){if(!a.Dom.isOrContains(this.j.editor,e,!0))throw(0,l.error)("Selection.removeNode can remove only editor's children");a.Dom.safeRemove(e),this.j.e.fire("afterRemoveNode",e)}insertCursorAtPoint(e,t){this.removeMarkers();try{let i=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){let n=this.doc.caretPositionFromPoint(e,t);if(n)return i.setStart(n.offsetNode,n.offset)}if(this.doc.caretRangeFromPoint){let n=this.doc.caretRangeFromPoint(e,t);(0,c.assert)(n,"Incorrect caretRangeFromPoint behaviour"),i.setStart(n.startContainer,n.startOffset)}})(),i.collapse(!0),this.selectRange(i),!0}catch(e){}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,l.$$)("span[data-"+r.MARKER_CLASS+"]",this.area)}removeMarkers(){a.Dom.safeRemove.apply(null,this.markers)}marker(e=!1,t){let i=null;t&&(i=t.cloneRange()).collapse(e);let n=this.j.createInside.span();return n.id=r.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),n.style.lineHeight="0",n.style.display="none",a.Dom.markTemporary(n),(0,l.attr)(n,"data-"+r.MARKER_CLASS,e?"start":"end"),n.appendChild(this.j.createInside.text(r.INVISIBLE_SPACE)),i&&a.Dom.isOrContains(this.area,e?i.startContainer:i.endContainer)&&i.insertNode(n),n}restore(){let e=!1,t=e=>`span[data-${r.MARKER_CLASS}=${e?"start":"end"}]`,i=this.area.querySelector(t(!0)),n=this.area.querySelector(t(!1));if(i){if(e=this.createRange(),n)e.setStartAfter(i),a.Dom.safeRemove(i),e.setEndBefore(n),a.Dom.safeRemove(n);else{let t=i.previousSibling;a.Dom.isText(t)?e.setStart(t,t.nodeValue?t.nodeValue.length:0):e.setStartBefore(i),a.Dom.safeRemove(i),e.collapse(!0)}e&&this.selectRange(e)}}fakes(){let e=this.sel;if(!e||!e.rangeCount)return[];let t=e.getRangeAt(0);(0,c.assert)(t,"Range is null");let i=t.cloneRange();i.collapse(!0);let n=this.j.createInside.fake();a.Dom.safeInsertNode(i,n),t.setStartBefore(n);let o=[n];if(!t.collapsed){let e=t.cloneRange();e.collapse(!1);let i=this.j.createInside.fake();a.Dom.safeInsertNode(e,i),t.setEndAfter(i),o.push(i)}return this.selectRange(t),o}restoreFakes(e){var t,i,n,o;let r=e.filter(e=>e.isConnected);if(!r.length)return;let[s,l]=r,u=this.createRange();u.setStartAfter(s),l&&u.setEndBefore(l),this.selectRange(u),(null==(t=s.parentNode)?void 0:t.firstChild)!==(null==(i=s.parentNode)?void 0:i.lastChild)&&a.Dom.safeRemove(s),(null==l||null==(n=l.parentNode)?void 0:n.firstChild)!==(null==l||null==(o=l.parentNode)?void 0:o.lastChild)&&a.Dom.safeRemove(l)}save(e=!1){if(this.hasMarkers)return[];let t=this.sel;if(!t||!t.rangeCount)return[];let i=[],n=t.rangeCount,o=[];for(let e=0;n>e;e+=1)if(o[e]=t.getRangeAt(e),o[e].collapsed){let t=this.marker(!0,o[e]);i[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{let t=this.marker(!0,o[e]),n=this.marker(!1,o[e]);i[e]={startId:t.id,endId:n.id,collapsed:!1,startMarker:t.outerHTML,endMarker:n.outerHTML}}if(!e){t.removeAllRanges();for(let e=n-1;e>=0;--e){let n=this.doc.getElementById(i[e].startId);if(n){if(i[e].collapsed)o[e].setStartAfter(n),o[e].collapse(!0);else if(o[e].setStartBefore(n),i[e].endId){let t=this.doc.getElementById(i[e].endId);t&&o[e].setEndAfter(t)}try{t.addRange(o[e].cloneRange())}catch(e){}}}}return i}focus(e={preventScroll:!0}){if(!this.isFocused()){let n=(0,l.getScrollParent)(this.j.container),o=null==n?void 0:n.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(e),this.win.focus(),this.area.focus(e),o&&(null==n?void 0:n.scrollTo)&&n.scrollTo(0,o);let r=this.sel,s=(null==r?void 0:r.rangeCount)?null==r?void 0:r.getRangeAt(0):null;if(!s||!a.Dom.isOrContains(this.area,s.startContainer)){let e=this.createRange();e.setStart(this.area,0),e.collapse(!0),this.selectRange(e,!1)}if(!this.j.editorIsActive){var t,i;null==(i=this.j)||null==(t=i.events)||t.fire("focus")}return!0}return!1}isCollapsed(){let e=this.sel;for(let t=0;e&&t<e.rangeCount;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(e=!0){if(this.j.getRealMode()!==r.MODE_WYSIWYG)return null;let t=this.sel;if(!t||0===t.rangeCount)return null;let i=t.getRangeAt(0),n=i.startContainer,o=!1;if(a.Dom.isTag(n,"br")&&t.isCollapsed)return n;if(!a.Dom.isText(n)){let r=(0,p.findCorrectCurrentNode)(n,i,o,t.isCollapsed,e,e=>o?e.lastChild:e.firstChild);n=r.node,o=r.rightMode}return n&&a.Dom.isOrContains(this.area,n)?n:null}insertNode(e,t=!0,i=!0){this.errorNode(e);let n=a.Dom.isFragment(e)?e.lastChild:e;this.j.e.fire("safeHTML",e),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let o=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",e),o&&o.rangeCount){let t=o.getRangeAt(0),{firstChild:i}=e;a.Dom.isOrContains(this.area,t.commonAncestorContainer)?a.Dom.safeInsertNode(t,e):this.area.appendChild(e),[()=>null==i?void 0:i.previousSibling,()=>null==i?void 0:i.previousSibling,()=>{var e;return null==i||null==(e=i.previousSibling)?void 0:e.lastChild}].forEach(e=>{let t=e();t&&a.Dom.isEmptyTextNode(t)&&a.Dom.safeRemove(t)})}else this.area.appendChild(e);let i=e=>{if(a.Dom.isBlock(e)){let t=e.lastChild;if(t)return i(t)}this.setCursorAfter(e)};t&&(a.Dom.isFragment(e)?n&&i(n):i(e)),this.j.o.scrollToPastedContent&&(0,l.scrollIntoViewIfNeeded)(null!=n?n:e,this.j.editor,this.doc)}),i&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",a.Dom.isFragment(e)?n:e)}insertHTML(e,t=!0){if(""===e)return;let i=this.j.createInside.div(),n=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),a.Dom.isNode(e)?i.appendChild(e):i.innerHTML=e.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",i.innerHTML))&&i.lastChild){for(;i.firstChild;)i.firstChild,n.appendChild(i.firstChild);this.insertNode(n,t,!1),this.j.__imdSynchronizeValues()}}insertImage(e,t=null,i=null){let n=(0,u.isString)(e)?this.j.createInside.element("img"):e;if((0,u.isString)(e)&&n.setAttribute("src",e),null!=i){let e=i.toString();e&&"auto"!==e&&0>String(e).indexOf("px")&&0>String(e).indexOf("%")&&(e+="px"),(0,l.attr)(n,"width",e)}t&&"object"==typeof t&&(0,l.css)(n,t);let o=()=>{(n.naturalHeight<n.offsetHeight||n.naturalWidth<n.offsetWidth)&&(n.style.width="",n.style.height=""),n.removeEventListener("load",o)};this.j.e.on(n,"load",o),n.complete&&o(),this.insertNode(n),this.j.e.fire("afterInsertImage",n)}eachSelection(e){var t;let i=this.sel;if(!i||!i.rangeCount)return;let n=i.getRangeAt(0),o=n.commonAncestorContainer;a.Dom.isHTMLElement(o)||(o=o.parentElement);let s=[],c=n.startOffset,d=o.childNodes.length,h=n.startContainer===this.area?o.childNodes[c<d?c:d-1]:n.startContainer,p=n.endContainer===this.area?o.childNodes[n.endOffset-1]:n.endContainer;a.Dom.isText(h)&&h===n.startContainer&&n.startOffset===(null==(t=h.nodeValue)?void 0:t.length)&&h.nextSibling&&(h=h.nextSibling),a.Dom.isText(p)&&p===n.endContainer&&0===n.endOffset&&p.previousSibling&&(p=p.previousSibling);let m=e=>{!e||e===o||a.Dom.isEmptyTextNode(e)||(0,u.isMarker)(e)||s.push(e)};m(h),h!==p&&a.Dom.isOrContains(o,h,!0)&&a.Dom.find(h,e=>(m(e),e===p||e&&e.contains&&e.contains(p)),o,!0,!1);let f=t=>{if(a.Dom.isOrContains(this.j.editor,t,!0)){if(t.nodeName.match(/^(UL|OL)$/))return(0,l.toArray)(t.childNodes).forEach(f);if(a.Dom.isTag(t,"li"))if(t.firstChild)t=t.firstChild;else{let e=this.j.createInside.text(r.INVISIBLE_SPACE);t.appendChild(e),t=e}e(t)}};0===s.length&&(a.Dom.isEmptyTextNode(h)&&s.push(h),h.firstChild&&s.push(h.firstChild)),s.forEach(f)}cursorInTheEdge(e,t,i=null){var n;let o=!e,r=null==(n=this.sel)?void 0:n.getRangeAt(0);if(null!=i||(i=this.current(!1)),!r||!i||!a.Dom.isOrContains(t,i,!0))return null;let s=e?r.startContainer:r.endContainer,u=e?r.startOffset:r.endOffset,c=e=>!!(e&&!a.Dom.isTag(e,"br")&&!a.Dom.isEmptyTextNode(e)&&!a.Dom.isTemporary(e)&&!(a.Dom.isElement(e)&&!0===this.j.e.fire("isInvisibleForCursor",e)));if(a.Dom.isText(s)){if((0,p.cursorInTheEdgeOfString)(s,u,e,o))return!1}else{let e=(0,l.toArray)(s.childNodes);if(o){if(e.slice(u).some(c))return!1}else if(e.slice(0,u).some(c))return!1}let d=i;for(;d&&d!==t;){let t=a.Dom.sibling(d,e);if(!t){d=d.parentNode;continue}if((d=t)&&c(d))return!1}return!0}cursorOnTheLeft(e,t){return this.cursorInTheEdge(!0,e,t)}cursorOnTheRight(e,t){return this.cursorInTheEdge(!1,e,t)}setCursorAfter(e){return this.setCursorNearWith(e,!1)}setCursorBefore(e){return this.setCursorNearWith(e,!0)}setCursorNearWith(e,t){if(this.errorNode(e),!a.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),n=null;if(a.Dom.isText(e))if(t)i.setStart(e,0);else{var o,r;i.setEnd(e,null!=(o=null==(r=e.nodeValue)?void 0:r.length)?o:0)}else n=this.j.createInside.fake(),t?i.setStartBefore(e):i.setEndAfter(e),i.collapse(t),a.Dom.safeInsertNode(i,n),i.selectNode(n);return i.collapse(t),this.selectRange(i),n}setCursorIn(e,t=!1){if(this.errorNode(e),!a.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),n=e,o=e;do{if(a.Dom.isText(n)||a.Dom.isTag(n,r.INSEPARABLE_TAGS))break;o=n,n=t?n.firstChild:n.lastChild}while(n);if(!n){let e=this.j.createInside.text(r.INVISIBLE_SPACE);a.Dom.isTag(o,r.INSEPARABLE_TAGS)?n=o:(o.appendChild(e),o=e)}let s=n||o;return a.Dom.isTag(s,r.INSEPARABLE_TAGS)?t||a.Dom.isTag(s,"br")?i.setStartBefore(s):i.setEndAfter(s):i.selectNodeContents(s),i.collapse(t),this.selectRange(i),o}selectRange(e,t=!0){let i=this.sel;return t&&!this.isFocused()&&this.focus(),i&&(i.removeAllRanges(),i.addRange(e)),this.j.e.fire("changeSelection"),this}select(e,t=!1){if(this.errorNode(e),!a.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange();return i[t?"selectNodeContents":"selectNode"](e),this.selectRange(i)}get html(){let e=this.sel;if(e&&e.rangeCount>0){let t=e.getRangeAt(0).cloneContents(),i=this.j.createInside.div();return i.appendChild(t),i.innerHTML}return""}*wrapInTagGen(e){if(this.isCollapsed()){let t=this.jodit.createInside.element("font",r.INVISIBLE_SPACE);this.insertNode(t,!1,!1),e&&e[0]&&t.appendChild(e[0]),yield t,a.Dom.unwrap(t);return}for(let e of((0,l.$$)("*[style*=font-size]",this.area).forEach(e=>{(0,l.attr)(e,"data-font-size",e.style.fontSize.toString()),e.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),(0,l.$$)("*[data-font-size]",this.area).forEach(e=>{let t=(0,l.attr)(e,"data-font-size");t&&(e.style.fontSize=t,(0,l.attr)(e,"data-font-size",null))}),(0,l.$$)('font[size="7"]',this.area))){let{firstChild:t,lastChild:i}=e;if(t&&t===i&&(0,u.isMarker)(t)){a.Dom.unwrap(e);continue}t&&(0,u.isMarker)(t)&&a.Dom.before(e,t),i&&(0,u.isMarker)(i)&&a.Dom.after(e,i),yield e,a.Dom.unwrap(e)}}wrapInTag(e){let t=[];for(let i of this.wrapInTagGen())try{if(i.firstChild&&i.firstChild===i.lastChild&&(0,u.isMarker)(i.firstChild))continue;(0,u.isFunction)(e)?e(i):t.push(a.Dom.replace(i,e,this.j.createInside))}finally{let e=i.parentNode;e&&(a.Dom.unwrap(i),a.Dom.isEmpty(e)&&a.Dom.unwrap(e))}return t}commitStyle(e){(0,c.assert)((0,l.size)(e)>0,"Need to pass at least one option"),new h.CommitStyle(e).apply(this.j)}splitSelection(e,t){if(!this.isCollapsed())return null;let i=this.createRange(),n=this.range;i.setStartBefore(e);let o=this.cursorOnTheRight(e,t),s=this.cursorOnTheLeft(e,t),l=this.j.createInside.element("br"),u=this.j.createInside.fake(),d=u.cloneNode();try{if(o||s){t?a.Dom.before(t,l):a.Dom.safeInsertNode(n,l);let e=(e,t)=>{let i=t(e);for(;i;){let e=t(i);if(i&&(a.Dom.isTag(i,"br")||a.Dom.isEmptyTextNode(i)))a.Dom.safeRemove(i);else break;i=e}};e(l,e=>e.nextSibling),e(l,e=>e.previousSibling),a.Dom.after(l,d),a.Dom.before(l,u),o?(i.setEndBefore(l),n.setEndBefore(l)):(i.setEndAfter(l),n.setEndAfter(l))}else i.setEnd(n.startContainer,n.startOffset);let h=i.extractContents(),p=e=>a.Dom.each(e,e=>a.Dom.isEmptyTextNode(e)&&a.Dom.safeRemove(e));(0,c.assert)(e.parentNode,"Splitting fails");try{if(p(h),p(e),e.parentNode.insertBefore(h,e),!t&&o&&(null==l?void 0:l.parentNode)){let e=this.createRange();e.setStartBefore(l),this.selectRange(e)}}catch(e){if(!r.IS_PROD)throw e}let m=e=>{var t,i,n;(null==e||null==(t=e.parentNode)?void 0:t.firstChild)===(null==e||null==(i=e.parentNode)?void 0:i.lastChild)&&(null==e||null==(n=e.parentNode)||n.appendChild(l.cloneNode()))};m(u),m(d)}finally{a.Dom.safeRemove(u),a.Dom.safeRemove(d)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:e}=this,t=e.cloneRange();if(!a.Dom.isOrContains(this.j.editor,e.commonAncestorContainer,!0))return this;let i=t=>{let i=this.j.createInside.fake(),n=e.cloneRange();return n.collapse(t),a.Dom.safeInsertNode(n,i),(0,d.moveTheNodeAlongTheEdgeOutward)(i,t,this.j.editor),i},n=i(!0),o=i(!1);t.setStartAfter(n),t.setEndBefore(o);let r=a.Dom.findSibling(n,!1),s=a.Dom.findSibling(o,!0);if(r!==s){let e=a.Dom.isElement(r)&&a.Dom.isOrContains(r,o),i=!e&&a.Dom.isElement(s)&&a.Dom.isOrContains(s,n);if(e||i){let i=e?r:s,l=i;for(;a.Dom.isElement(i);)(i=e?i.firstElementChild:i.lastElementChild)&&(e?a.Dom.isOrContains(i,o):a.Dom.isOrContains(i,n))&&(l=i);e?t.setStart(l,0):t.setEnd(l,l.childNodes.length)}}if(this.selectRange(t),a.Dom.safeRemove(n,o),this.isCollapsed())throw(0,l.error)("Selection is collapsed");return this}constructor(e){(0,n._)(this,"jodit",void 0),this.jodit=e,e.e.on("removeMarkers",()=>{this.removeMarkers()})}}(0,o.__decorate)([s.autobind],m.prototype,"createRange",null),(0,o.__decorate)([s.autobind],m.prototype,"focus",null),(0,o.__decorate)([s.autobind],m.prototype,"setCursorAfter",null),(0,o.__decorate)([s.autobind],m.prototype,"setCursorBefore",null),(0,o.__decorate)([s.autobind],m.prototype,"setCursorIn",null)},17481:function(e,t,i){"use strict";i.d(t,{extractSelectedPart:function(){return a}});var n=i(23211),o=i(23175),r=i(4040),s=i(71125);function a(e,t,i){let n=i.s.createRange(),r=(0,o.isMarker)(t.previousSibling)?t.previousSibling:t;n.setStartBefore(e),n.setEndBefore(r),l(e,n,!0);let s=(0,o.isMarker)(t.nextSibling)?t.nextSibling:t;n.setStartAfter(s),n.setEndAfter(e),l(e,n,!1)}function l(e,t,i){let o=t.extractContents();o.textContent&&(0,r.trim)(o.textContent).length||!o.firstChild||n.Dom.unwrap(o.firstChild),e.parentNode&&(0,s.call)(i?n.Dom.before:n.Dom.after,e,o)}},48729:function(e,t,i){"use strict";i.d(t,{FiniteStateMachine:function(){return a}});var n=i(25045),o=i(81937),r=i(85932),s=i(28712);class a{setState(e){(0,s.assert)(!this.__previewsStates.has(e),"Circled states"),this.__previewsStates.add(e),this.__state=e}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(e,t){let i=this.transitions[this.getState()][e];if(i){let e=i.call(this,t);return(0,s.assert)(e&&e!==t,"Action should return new value"),(0,s.assert)((0,r.isString)(e.next),"Value should contain the next state"),(0,s.assert)(e.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(e.next),o.IS_PROD||this.silent,e}throw Error(`invalid action: ${this.getState()}.${e.toString()}`)}constructor(e,t){(0,n._)(this,"transitions",void 0),(0,n._)(this,"__state",void 0),(0,n._)(this,"silent",void 0),(0,n._)(this,"__previewsStates",void 0),this.transitions=t,this.silent=!0,this.__previewsStates=new Set,this.setState(e)}}},10171:function(e,t,i){"use strict";i.d(t,{getSuitChild:function(){return s}});var n=i(23211),o=i(83653),r=i(73019);function s(e,t){let{firstChild:i}=t;for(;i&&!(0,o.isNormalNode)(i);)if(!(i=i.nextSibling))return null;return i&&!n.Dom.next(i,o.isNormalNode,t)&&(0,r.isSuitElement)(e,i,!1)?i:null}},19549:function(e,t,i){"use strict";i.d(t,{getSuitParent:function(){return function e(t,i,s){let{parentNode:a}=i;return a===s||!n.Dom.isHTMLElement(a)||n.Dom.next(i,o.isNormalNode,a)||n.Dom.prev(i,o.isNormalNode,a)?null:t.isElementCommit&&t.elementIsBlock&&!n.Dom.isBlock(a)?e(t,a,s):(0,r.isSuitElement)(t,a,!1)&&(!n.Dom.isBlock(a)||t.elementIsBlock)?a:t.isElementCommit&&!n.Dom.isBlock(a)?e(t,a,s):null}}});var n=i(23211),o=i(83653),r=i(73019)},9703:function(e,t,i){"use strict";i.d(t,{hasSameStyle:function(){return u},hasSameStyleKeys:function(){return c}});var n=i(81937),o=i(23211),r=i(18303),s=i(19147),a=i(28712),l=i(80991);function u(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(i=>{let n=(0,l.css)(e,i,!0);return""===n&&(""===t[i]||null==t[i])||!(0,r.isVoid)(n)&&""!==n&&!(0,r.isVoid)(t[i])&&(0,s.normalizeCssValue)(i,t[i]).toString().toLowerCase()===n.toString().toLowerCase()}))}if(n.globalDocument){let e=n.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(u(e,{color:"red"}),"Style test"),(0,a.assert)(u(e,{fontSize:null}),"Style test"),(0,a.assert)(u(e,{fontSize:""}),"Style test")}function c(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(t=>""!==(0,l.css)(e,t,!0)))}if(n.globalDocument){let e=n.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(c(e,{color:"red"}),"Style test"),(0,a.assert)(!c(e,{font:"Arial",color:"red"}),"Style test"),(0,a.assert)(!c(e,{border:"1px solid #ccc"}),"Style test")}},51640:function(e,t,i){"use strict";i.d(t,{FiniteStateMachine:function(){return o.FiniteStateMachine},extractSelectedPart:function(){return n.extractSelectedPart},getSuitChild:function(){return r.getSuitChild},getSuitParent:function(){return s.getSuitParent},isInsideInvisibleElement:function(){return a.isInsideInvisibleElement},suitableClosest:function(){return l.suitableClosest},toggleAttributes:function(){return c.toggleAttributes},toggleOrderedList:function(){return u.toggleOrderedList},unwrapChildren:function(){return d.unwrapChildren},wrap:function(){return h.wrap}});var n=i(17481),o=i(48729),r=i(10171),s=i(19549);i(9703);var a=i(39608);i(83653),i(95971);var l=i(73019),u=i(34582);i(97110);var c=i(82794),d=i(89081),h=i(73154);i(83335)},39608:function(e,t,i){"use strict";i.d(t,{isInsideInvisibleElement:function(){return o}});var n=i(23211);function o(e,t){return!!n.Dom.closest(e,["style","script"],t)}},83653:function(e,t,i){"use strict";i.d(t,{isNormalNode:function(){return r}});var n=i(23211),o=i(23175);function r(e){return!!(e&&!n.Dom.isEmptyTextNode(e)&&!n.Dom.isTemporary(e)&&!(0,o.isMarker)(e))}},95971:function(e,t,i){"use strict";i.d(t,{elementsEqualAttributes:function(){return l},isSameAttributes:function(){return a}});var n=i(18073),o=i(93640),r=i(28712),s=i(9703);function a(e,t){return!((e.attributes.length||(0,n.size)(t))&&(0,n.size)(t))||((0,r.assert)(t,"Attrs must be a non-empty object"),Object.keys(t).every(i=>"class"===i||"className"===i?e.classList.contains(t[i]):"style"===i?(0,s.hasSameStyle)(e,t[i]):(0,o.attr)(e,i)===t[i]))}function l(e,t){return e.attributes.length===t.attributes.length&&Array.from(e.attributes).every(e=>t.hasAttribute(e.name)&&t.getAttribute(e.name)===e.value)}},73019:function(e,t,i){"use strict";i.d(t,{isSameStyleChild:function(){return l},isSuitElement:function(){return s},suitableClosest:function(){return a}});var n=i(23211),o=i(9703),r=i(83653);function s(e,t,i,a=!0){var l;if(!t||!(0,r.isNormalNode)(t))return!1;let{element:u,elementIsDefault:c,options:d}=e;if(n.Dom.isList(t)&&e.elementIsList)return!0;let h=n.Dom.isTag(t,u);return!!(h&&!(c&&i)||(null==(l=d.attributes)?void 0:l.style)&&(a?(0,o.hasSameStyle)(t,d.attributes.style):(0,o.hasSameStyleKeys)(t,d.attributes.style))&&!e.elementIsList)||!h&&!i&&c&&n.Dom.isInlineBlock(t)}function a(e,t,i){return n.Dom.closest(t,t=>s(e,t,!0,!1),i)}function l(e,t){var i,n;let{element:s,options:a}=e;if(!t||!(0,r.isNormalNode)(t))return!1;let l=t.nodeName.toLowerCase()===s,u=!!((null==(i=a.attributes)?void 0:i.style)&&(0,o.hasSameStyleKeys)(t,null==(n=a.attributes)?void 0:n.style));return l&&u}},34582:function(e,t,i){"use strict";i.d(t,{toggleOrderedList:function(){return u}});var n=i(23211),o=i(28712),r=i(17481),s=i(82794),a=i(98394),l=i(97110);function u(e,t,i,n){if(!t)return n;let o=t.parentElement;if(!o)return n;let r=i.e.fire(`${a._PREFIX}BeforeToggleList`,n,e,o);if(void 0!==r)return r;let u=i.e.fire.bind(i.e,`${a._PREFIX}AfterToggleList`);if(n!==a.UNWRAP){let r=(0,s.toggleAttributes)(e,t.parentElement,i,a.INITIAL,!0)===a.CHANGE;if(n===a.REPLACE||r||o.tagName.toLowerCase()!==e.element){let n=c(a.REPLACE,o,t,i,e),r=(0,l.wrapList)(e,n,i);return u(a.REPLACE,r,e),a.REPLACE}}let d=c(a.UNWRAP,o,t,i,e);return u(a.UNWRAP,d,e),a.UNWRAP}function c(e,t,i,s,l){let u=s.e.fire(`${a._PREFIX}BeforeUnwrapList`,e,t,l);return u?((0,o.assert)(n.Dom.isHTMLElement(u),`${a._PREFIX}BeforeUnwrapList hook must return HTMLElement`),u):((0,r.extractSelectedPart)(t,i,s),(0,o.assert)(n.Dom.isHTMLElement(i.parentElement),"Element should be inside the list"),n.Dom.unwrap(i.parentElement),n.Dom.replace(i,"br"!==s.o.enter.toLowerCase()?s.o.enter:s.createInside.fragment(),s.createInside))}},97110:function(e,t,i){"use strict";i.d(t,{wrapList:function(){return a}});var n=i(23211),o=i(95971),r=i(82794),s=i(98394);function a(e,t,i){let a=i.e.fire(`${s._PREFIX}BeforeWrapList`,s.REPLACE,t,e),l=null!=a?a:n.Dom.replace(t,"li",i.createInside),u=l.previousElementSibling,c=l.nextElementSibling,d=n.Dom.isTag(u,e.element)?u:null;return null!=d||(d=n.Dom.isTag(c,e.element)?c:null),n.Dom.isList(d)&&(0,o.isSameAttributes)(d,e.options.attributes)||(d=i.createInside.element(e.element),(0,r.toggleAttributes)(e,d,i,s.INITIAL),n.Dom.before(l,d)),u===d?n.Dom.append(d,l):n.Dom.prepend(d,l),n.Dom.isTag(d.nextElementSibling,e.element)&&(0,o.elementsEqualAttributes)(d,d.nextElementSibling)&&(n.Dom.append(d,Array.from(d.nextElementSibling.childNodes)),n.Dom.safeRemove(d.nextElementSibling)),i.e.fire(`${s._PREFIX}AfterWrapList`,s.WRAP,d,e),d}},82794:function(e,t,i){"use strict";i.d(t,{toggleAttributes:function(){return f}});var n=i(81937),o=i(23211),r=i(28077),s=i(28686),a=i(19147),l=i(18073),u=i(74264),c=i(93640),d=i(80991),h=i(36400),p=i(98394);let m="toggleAttributes";function f(e,t,i,v,_=!1){if(!_&&e.isApplied(t,m))return v;_||e.setApplied(t,m);let{attributes:b}=e.options;return b&&(0,l.size)(b)>0&&Object.keys(b).forEach(m=>{var f,y,S;let w=b[m];switch(m){case"style":f=v,(0,c.assert)((0,s.isPlainObject)(w)&&(0,l.size)(w),"Style must be an object"),Object.keys(w).forEach(s=>{let l=t.style.getPropertyValue((0,u.kebabCase)(s)),c=w[s];if(""!==l||null!=c){let u,m;if((u=i.create.element(t.tagName.toLowerCase())).style.cssText=t.style.cssText,(function(e){var t;if(void 0!==(0,h.dataBind)(e,"shadowRoot"))return(0,h.dataBind)(e,"shadowRoot");let i=(0,r.getContainer)(e),o=n.globalDocument.createElement("iframe");(0,d.css)(o,{width:0,height:0,position:"absolute",border:0}),o.src="about:blank",i.appendChild(o);let s=null==(t=o.contentWindow)?void 0:t.document,a=s?s.body:e.od.body;return(0,h.dataBind)(e,"shadowRoot",a),a})(i).appendChild(u),m=(0,d.css)(u,s),o.Dom.safeRemove(u),m===(0,a.normalizeCssValue)(s,c)){if(!l)return;_||(0,d.css)(t,s,null),f=g(e,t,f=p.UNSET);return}f=p.CHANGE,_||((0,d.css)(t,s,c),f=g(e,t,f))}}),v=f;break;case"className":case"class":let C;y=v,(0,c.assert)((0,s.isString)(w),"Class name must be a string"),C=i.e.fire.bind(i.e,`${p._PREFIX}AfterToggleAttribute`),t.classList.contains(w.toString())?(y=p.UNSET,_||(t.classList.remove(w),0===t.classList.length&&((0,c.attr)(t,"class",null),C(y,t,"class",null)))):(y=p.CHANGE,_||(t.classList.add(w),C(y,t,"class",w))),v=y;break;default:let k;S=v,(0,c.assert)((0,s.isString)(w)||(0,s.isNumber)(w)||(0,s.isBoolean)(w)||null==w,"Attribute value must be a string or number or boolean or null"),k=i.e.fire.bind(i.e,`${p._PREFIX}AfterToggleAttribute`),(0,c.attr)(t,m)===w?(_||(0,c.attr)(t,m,null),S=p.UNSET,_||k(S,t,m,w)):(S=p.CHANGE,_||((0,c.attr)(t,m,w),k(S,t,m,w))),v=S}}),v}function g(e,t,i){return(0,c.attr)(t,"style")||((0,c.attr)(t,"style",null),t.tagName.toLowerCase()===e.defaultTag&&(o.Dom.unwrap(t),i=p.UNWRAP)),i}},89081:function(e,t,i){"use strict";i.d(t,{unwrapChildren:function(){return a}});var n=i(23211),o=i(93640),r=i(9703),s=i(73019);function a(e,t){var i;let a,l=[],u=[],c=null==(i=e.options.attributes)?void 0:i.style;if(t.firstChild){let i=n.Dom.eachGen(t),d=i.next();for(;!d.done;){let t=d.value;(0,s.isSuitElement)(e,t,!0)&&(!c||(0,r.hasSameStyleKeys)(t,c))?(void 0===a&&(a=!0),l.push(t)):c&&(0,s.isSameStyleChild)(e,t)?(void 0===a&&(a=!1),u.push(()=>{(0,o.css)(t,Object.keys(c).reduce((e,t)=>(e[t]=null,e),{})),(0,o.attr)(t,"style")||(0,o.attr)(t,"style",null),(0,o.attr)(t,"style")||t.nodeName.toLowerCase()!==e.element||l.push(t)})):n.Dom.isEmptyTextNode(t)||void 0!==a||(a=!1),d=i.next()}}return u.forEach(e=>e()),l.forEach(n.Dom.unwrap),!!a}},83335:function(e,t,i){"use strict";i.d(t,{wrapUnwrappedText:function(){return r}});var n=i(23211),o=i(23175);function r(e,t,i){let r=i.editor,s=i.createInside,a=(e,t="previousSibling")=>{let s=e,a=e;for(;a&&!(0,o.isMarker)(a)&&!n.Dom.isTag(a,i.o.enter)&&(s=a,a=a[t]?a[t]:a.parentNode&&!n.Dom.isBlock(a.parentNode)&&a.parentNode!==r?a.parentNode:null,!n.Dom.isBlock(a)););return s},l=a(t),u=a(t,"nextSibling"),c=i.s.createRange();c.setStartBefore(l),c.setEndAfter(u);let d=c.extractContents(),h=s.element(e.element);return h.appendChild(d),n.Dom.safeInsertNode(c,h),e.elementIsBlock&&n.Dom.isEmpty(h)&&!n.Dom.isTag(h.firstElementChild,"br")&&h.appendChild(s.element("br")),h}},73154:function(e,t,i){"use strict";i.d(t,{wrap:function(){return a}});var n=i(27795),o=i(7909),r=i(97110),s=i(83335);function a(e,t,i){var a,u,c;let d=(a=e,u=t,c=i,a.elementIsBlock?n.Dom.up(u,e=>n.Dom.isBlock(e)&&!n.Dom.isTag(e,l),c.editor)||(0,s.wrapUnwrappedText)(a,u,c):((0,o.attr)(u,"size",null),u));return e.elementIsList?(0,r.wrapList)(e,d,i):n.Dom.replace(d,e.element,i.createInside,!0)}let l=new Set(["td","th","tr","tbody","table","li","ul","ol"])},96127:function(e,t,i){"use strict";i.d(t,{ApplyStyle:function(){return s}});var n=i(51640),o=i(98394),r=i(78462);function s(e,t){var i;let{s:s,editor:a}=e;null==(i=a.firstChild)||i.normalize();let l=s.fakes(),u=e.s.wrapInTagGen(l),c=u.next();if(c.done)return;let d={collapsed:s.isCollapsed(),mode:o.INITIAL,element:c.value,next:r.states.START,jodit:e,style:t};for(;c&&!c.done;){let e=new n.FiniteStateMachine(r.states.START,r.transactions);for(d.element=c.value;e.getState()!==r.states.END;)d=e.dispatch("exec",d);c=u.next()}s.restoreFakes(l)}},84578:function(e,t,i){"use strict";i.d(t,{CommitStyle:function(){return l}});var n=i(25045),o=i(81937),r=i(57821),s=i(98394),a=i(96127);class l{isApplied(e,t){let i=this.__applyMap.get(e);return!!i&&i[t]}setApplied(e,t){var i;let n=null!=(i=this.__applyMap.get(e))?i:{};n[t]=!0,this.__applyMap.set(e,n)}get elementIsList(){return!!(this.options.element&&o.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&o.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(e){let{hooks:t}=this.options,i=t?Object.keys(t):[];try{i.forEach(i=>{e.e.on((0,r.camelCase)(s._PREFIX+"_"+i),t[i])}),(0,a.ApplyStyle)(e,this)}finally{i.forEach(i=>{e.e.off((0,r.camelCase)(s._PREFIX+"_"+i),t[i])}),this.__applyMap=new WeakMap}e.synchronizeValues(),e.e.fire("afterCommitStyle",this)}constructor(e){(0,n._)(this,"options",void 0),(0,n._)(this,"__applyMap",void 0),this.options=e,this.__applyMap=new WeakMap}}},98394:function(e,t,i){"use strict";i.d(t,{CHANGE:function(){return r},INITIAL:function(){return a},REPLACE:function(){return l},UNSET:function(){return s},UNWRAP:function(){return o},WRAP:function(){return n},_PREFIX:function(){return u}});let n="wrap",o="unwrap",r="change",s="unset",a="initial",l="replace",u="commitStyle"},78462:function(e,t,i){"use strict";i.d(t,{states:function(){return l},transactions:function(){return u}});var n=i(81937),o=i(23211),r=i(28712),s=i(51640),a=i(98394);let l={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},u={[l.START]:{exec(e){let{element:t,jodit:i,style:n,mode:r,collapsed:u}=e;if((0,s.isInsideInvisibleElement)(t,i.editor)||!u&&o.Dom.isEmptyContent(t))return{...e,next:l.END};let c=(0,s.getSuitParent)(n,t,i.editor)||(0,s.getSuitChild)(n,t);if(c)return{...e,next:l.ELEMENT,element:c};let d=(0,s.suitableClosest)(n,t,i.editor);return n.elementIsList&&o.Dom.isList(d)?{...e,next:l.LIST}:d?{...e,next:l.EXTRACT}:{...e,next:r!==a.UNWRAP?l.UNWRAP_CHILDREN:l.END}}},[l.LIST]:{exec(e){let{element:t,jodit:i,mode:r}=e;if(r!==a.INITIAL&&r!==a.UNWRAP&&r!==a.REPLACE)return{...e,next:l.END};let s=o.Dom.closest(t,"li",i.editor);return s&&o.Dom.closest(t,n.LIST_TAGS,i.editor)?{...e,element:s,next:l.TOGGLE_LIST}:{...e,next:l.END}}},[l.TOGGLE_LIST]:{exec(e){return{...e,mode:(0,s.toggleOrderedList)(e.style,e.element,e.jodit,e.mode),next:l.END}}},[l.EXTRACT]:{exec(e){var t;let{element:i,jodit:n,style:a}=e,u=(0,s.suitableClosest)(a,i,n.editor);return((0,r.assert)(u,"This place should have an element"),!a.elementIsBlock&&(null==(t=a.options.attributes)?void 0:t.style)&&o.Dom.isBlock(u))?{...e,next:l.WRAP}:(a.elementIsBlock||(0,s.extractSelectedPart)(u,i,n),{...e,element:u,next:l.ELEMENT})}},[l.UNWRAP_CHILDREN]:{exec(e){let{element:t,style:i}=e;return(0,s.unwrapChildren)(i,t)?{...e,mode:a.UNWRAP,next:l.END}:{...e,next:l.WRAP}}},[l.WRAP]:{exec(e){let{element:t,jodit:i,style:n}=e,o=(0,s.wrap)(n,t,i);return{...e,next:n.elementIsList?l.END:l.CHANGE,mode:a.WRAP,element:o}}},[l.ELEMENT]:{exec(e){let{style:t,element:i,jodit:n}=e;return(0,s.toggleAttributes)(t,i,n,a.INITIAL,!0)!==a.INITIAL?{...e,next:l.CHANGE}:o.Dom.isTag(i,t.element)?{...e,next:l.UNWRAP}:{...e,next:l.END}}},[l.CHANGE]:{exec(e){let{style:t,element:i,jodit:n,mode:r}=e,u=(0,s.toggleAttributes)(t,i,n,e.mode);return r!==a.WRAP&&u===a.UNSET&&!i.attributes.length&&o.Dom.isTag(i,t.element)?{...e,next:l.UNWRAP}:{...e,mode:u,next:l.END}}},[l.UNWRAP]:{exec(e){return e.element.attributes.length&&o.Dom.isTag(e.element,e.style.element)?{...e,next:l.REPLACE_DEFAULT}:(o.Dom.unwrap(e.element),{...e,mode:a.UNWRAP,next:l.END})}},[l.REPLACE_DEFAULT]:{exec(e){return o.Dom.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),{...e,mode:a.REPLACE,next:l.END}}},[l.END]:{exec(e){return e}}}},8006:function(e,t,i){"use strict";i.d(t,{AsyncStorage:function(){return u}});var n=i(25045),o=i(57821),r=i(91162),s=i(59807),a=i(9505),l=i(24475);class u{async set(e,t){let i=await this.provider;return await i.set((0,o.camelCase)(this.prefix+e),t),this}async delete(e){let t=await this.provider;return await t.delete((0,o.camelCase)(this.prefix+e)),this}async get(e){return(await this.provider).get((0,o.camelCase)(this.prefix+e))}async exists(e){return(await this.provider).exists((0,o.camelCase)(this.prefix+e))}async clear(){let e=await this.provider;return await e.clear(),this}async close(){let e=await this.provider;"close"in e&&"function"==typeof e.close&&await e.close()}static makeStorage(e=!1,t){let i;return"localStorage"===e||"sessionStorage"===e?(0,s.canUsePersistentStorage)(e)&&(i=new s.LocalStorageProvider(l.StorageKey+(t||""),e)):("indexedDB"===e||!0===e)&&(i=(0,r.canUseIndexedDB)().then(e=>e?new r.IndexedDBProvider(l.StorageKey+(t||""),"keyValueStore"):new a.MemoryStorageProvider)),i||(i=new a.MemoryStorageProvider),new u(Promise.resolve(i),t)}constructor(e,t){(0,n._)(this,"provider",void 0),(0,n._)(this,"prefix",void 0),this.provider=e,this.prefix=l.StorageKey,t&&(this.prefix+=t)}}},91162:function(e,t,i){"use strict";i.d(t,{IndexedDBProvider:function(){return r},canUseIndexedDB:function(){return l},clearUseIndexedDBCache:function(){return a}});var n=i(25045),o=i(81937);class r{getDB(){return this.dbPromise||(this.dbPromise=new Promise((e,t)=>{let i=indexedDB.open(this.dbName,this.DB_VERSION);i.onerror=()=>{t(i.error)},i.onsuccess=()=>{e(i.result)},i.onupgradeneeded=e=>{let t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName)}})),this.dbPromise}async performTransaction(e,t){try{let i=(await this.getDB()).transaction([this.storeName],e).objectStore(this.storeName),n=t(i);return new Promise((e,t)=>{n.onsuccess=()=>{e(n.result)},n.onerror=()=>{t(n.error)}})}catch(e){return Promise.reject(e)}}async set(e,t){try{await this.performTransaction("readwrite",i=>i.put(t,e))}catch(e){o.IS_PROD}return this}async delete(e){try{await this.performTransaction("readwrite",t=>t.delete(e))}catch(e){}return this}async get(e){try{return await this.performTransaction("readonly",t=>t.get(e))}catch(e){return}}async exists(e){try{let t=await this.performTransaction("readonly",t=>t.get(e));return void 0!==t}catch(e){return!1}}async clear(){try{await this.performTransaction("readwrite",e=>e.clear())}catch(e){}return this}async close(){if(this.dbPromise){try{(await this.dbPromise).close()}catch(e){}this.dbPromise=null}}async keys(){try{let e=await this.performTransaction("readonly",e=>e.getAllKeys());return e&&"object"==typeof e&&"then"in e&&(e=await e),e.map(e=>String(e))}catch(e){return[]}}async values(){try{let e=await this.performTransaction("readonly",e=>e.getAll());return e&&"object"==typeof e&&"then"in e&&(e=await e),e}catch(e){return[]}}async entries(){try{let[e,t]=await Promise.all([this.keys(),this.values()]);return e.map((e,i)=>[e,t[i]])}catch(e){return[]}}constructor(e="JoditDB",t="keyValueStore"){(0,n._)(this,"dbName",void 0),(0,n._)(this,"dbPromise",void 0),(0,n._)(this,"DB_VERSION",void 0),(0,n._)(this,"storeName",void 0),this.dbName=e,this.dbPromise=null,this.DB_VERSION=1,this.storeName=t}}let s=null;function a(){s=null}async function l(){if(null!=s)return s;try{if("u"<typeof indexedDB)return s=!1,!1;let e="___Jodit___"+Math.random().toString(),t=indexedDB.open(e);return s=await new Promise(i=>{t.onerror=()=>{i(!1)},t.onsuccess=()=>{indexedDB.deleteDatabase(e),i(!0)}})}catch(e){return s=!1,!1}}},59807:function(e,t,i){"use strict";i.d(t,{LocalStorageProvider:function(){return r},canUsePersistentStorage:function(){return o}});var n=i(25045);let o=(e="localStorage")=>{let t=new Map;if(t.has(e))return t.get(e);let i="___Jodit___"+Math.random().toString(),n="sessionStorage"===e?sessionStorage:localStorage;try{n.setItem(i,"1");let o="1"===n.getItem(i);return n.removeItem(i),t.set(e,o),o}catch(e){}return t.set(e,!1),!1};class r{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(e,t){try{let i=this.storage.getItem(this.rootKey),n=i?JSON.parse(i):{};n[e]=t,this.storage.setItem(this.rootKey,JSON.stringify(n))}catch(e){}return this}delete(e){try{this.storage.removeItem(this.rootKey)}catch(e){}return this}get(e){try{let t=this.storage.getItem(this.rootKey),i=t?JSON.parse(t):{};return void 0!==i[e]?i[e]:void 0}catch(e){}}exists(e){return null!=this.get(e)}clear(){try{this.storage.removeItem(this.rootKey)}catch(e){}return this}constructor(e,t="localStorage"){(0,n._)(this,"rootKey",void 0),(0,n._)(this,"strategy",void 0),this.rootKey=e,this.strategy=t}}},9505:function(e,t,i){"use strict";i.d(t,{MemoryStorageProvider:function(){return o}});var n=i(25045);class o{set(e,t){return this.data.set(e,t),this}delete(e){return this.data.delete(e),this}get(e){return this.data.get(e)}exists(e){return this.data.has(e)}clear(){return this.data.clear(),this}constructor(){(0,n._)(this,"data",new Map)}}},25222:function(e,t,i){"use strict";i.d(t,{AsyncStorage:function(){return n.AsyncStorage},IndexedDBProvider:function(){return o.IndexedDBProvider},LocalStorageProvider:function(){return r.LocalStorageProvider},MemoryStorageProvider:function(){return s.MemoryStorageProvider},Storage:function(){return a.Storage},StorageKey:function(){return a.StorageKey},canUseIndexedDB:function(){return o.canUseIndexedDB},canUsePersistentStorage:function(){return r.canUsePersistentStorage},clearUseIndexedDBCache:function(){return o.clearUseIndexedDBCache}});var n=i(8006),o=i(91162),r=i(59807),s=i(9505),a=i(24475)},24475:function(e,t,i){"use strict";i.d(t,{Storage:function(){return l},StorageKey:function(){return a}});var n=i(25045),o=i(57821),r=i(59807),s=i(9505);let a="Jodit_";class l{set(e,t){return this.provider.set((0,o.camelCase)(this.prefix+e),t),this}delete(e){return this.provider.delete((0,o.camelCase)(this.prefix+e)),this}get(e){return this.provider.get((0,o.camelCase)(this.prefix+e))}exists(e){return this.provider.exists((0,o.camelCase)(this.prefix+e))}clear(){return this.provider.clear(),this}static makeStorage(e=!1,t){let i;return"localStorage"===e||"sessionStorage"===e?(0,r.canUsePersistentStorage)(e)&&(i=new r.LocalStorageProvider(a+(t||""),e)):!0===e&&(0,r.canUsePersistentStorage)("localStorage")&&(i=new r.LocalStorageProvider(a+(t||""))),i||(i=new s.MemoryStorageProvider),new l(i,t)}constructor(e,t){(0,n._)(this,"provider",void 0),(0,n._)(this,"prefix",void 0),this.provider=e,this.prefix=a,t&&(this.prefix+=t)}}},80512:function(e,t,i){"use strict";i.d(t,{Dlgs:function(){return a}});var n=i(28077),o=i(28686),r=i(71125),s=i(37333);class a{dlg(e){let t=(0,n.getPopupViewRoot)(this.o,this.container,this.od.body),i=new s.Dialog({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:t,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...e});return(0,r.markOwner)(this,i.container),i.parent=this,i.bindDestruct(this)}confirm(e,t,i){return e=l(e,this),t=l(t,this),s.Confirm.call(this.dlg({closeOnClickOverlay:!0}),e,t,i)}prompt(e,t,i,n,o){return e=l(e,this),t=l(t,this),n=l(n,this),s.Prompt.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,n,o)}alert(e,t,i,n){return e=l(e,this),t=l(t,this),s.Alert.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,n)}}function l(e,t){return(0,o.isString)(e)&&!(0,o.isHTML)(e)&&(e=t.i18n(e)),e}},23183:function(e,t,i){"use strict";i.d(t,{Elms:function(){return o}});var n=i(88475);class o{getElm(e){return this.container.querySelector(`.${this.getFullElName(e)}`)}getElms(e){return(0,n.toArray)(this.container.querySelectorAll(`.${this.getFullElName(e)}`))}}},81987:function(e,t,i){"use strict";i.d(t,{Mods:function(){return o}});var n=i(18303);class o{afterSetMod(e,t){}setMod(e,t,i){e=e.toLowerCase();let o=this.mods[e];if(o===t)return this;let r=`${this.componentName}_${e}_`,s=(i||this.container).classList;return null!=o&&s.remove(`${r}${o.toString().toLowerCase()}`),(0,n.isVoid)(t)||""===t||s.add(`${r}${t.toString().toLowerCase()}`),this.mods[e]=t,this.afterSetMod(e,t),this}getMod(e){var t;return null!=(t=this.mods[e])?t:null}}},53681:function(e,t,i){"use strict";i.d(t,{Button:function(){return _},UIButton:function(){return v},UIButtonState:function(){return g}});var n=i(25045),o=i(31635),r=i(69364),s=i(51676),a=i(91672),l=i(68616),u=i(23211),c=i(91565),d=i(85932),h=i(28712),p=i(7909),m=i(96007),f=i(29434);let g=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0});class v extends m.UIElement{className(){return"UIButton"}setState(e){return Object.assign(this.state,e),this}get text(){let e=this.getElm("text");return(0,h.assert)(e,"Text element not found"),e}get icon(){let e=this.getElm("icon");return(0,h.assert)(e,"Icon element not found"),e}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,p.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,p.attr)(this.container,"role",this.state.role)}updateSize(){let e=(0,a.getComponentClass)("UIList"),t=this.closest(e);if(t){this.state.size=t.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text),this.updateAriaLabel()}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,p.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,p.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,p.attr)(this.container,"data-ref",this.state.name),(0,p.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){let e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,p.attr)(this.container,"title",e),(0,p.attr)(this.container,"aria-label",e),this.updateAriaLabel()}updateAriaLabel(){let e=this.state.text.trim().length>0,t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,p.attr)(this.container,"aria-label",t),(0,p.attr)(this.button,"aria-label",e?null:t)}onChangeTabIndex(){(0,p.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let e=this.get("j.o.textIcons");if(!0===e||(0,c.isFunction)(e)&&e(this.state.name))return;u.Dom.detach(this.icon);let t=f.Icon.makeIcon(this.j,this.state.icon);t&&this.icon.appendChild(t)}focus(){this.container.focus()}isFocused(){let{activeElement:e}=this.od;return!!(e&&u.Dom.isOrContains(this.container,e))}createContainer(){let e=this.componentName,t=this.j.c.element("button",{class:e,type:"button",role:"button",ariaPressed:!1}),i=this.j.c.span(e+"__icon"),n=this.j.c.span(e+"__text");return t.appendChild(i),t.appendChild(n),t}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(e){return this.actionHandlers.push(e),this}__onActionFire(e){e.buffer={actionTrigger:this},this.actionHandlers.forEach(t=>t.call(this,e)),this.j.e.fire(this,"click",e)}constructor(e,t){super(e),(0,n._)(this,"isButton",!0),(0,n._)(this,"state",g()),(0,n._)(this,"button",void 0),(0,n._)(this,"actionHandlers",[]),this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),t&&this.hookStatus(r.STATUSES.ready,()=>{this.setState(t)})}}function _(e,t,i,n){let o=new v(e);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,(0,d.isString)(t)?(o.state.icon.name=t,o.state.name=t,n&&(o.state.variant=n),i&&(o.state.text=i)):o.setState(t),o}(0,o.__decorate)([s.cache],v.prototype,"text",null),(0,o.__decorate)([s.cache],v.prototype,"icon",null),(0,o.__decorate)([(0,l.watch)("state.size",{immediately:!1})],v.prototype,"onChangeSize",null),(0,o.__decorate)([(0,l.watch)("state.type",{immediately:!1})],v.prototype,"onChangeType",null),(0,o.__decorate)([(0,l.watch)("state.role",{immediately:!1})],v.prototype,"onChangeRole",null),(0,o.__decorate)([(0,l.watch)("parentElement")],v.prototype,"updateSize",null),(0,o.__decorate)([(0,l.watch)("state.variant",{immediately:!1})],v.prototype,"onChangeStatus",null),(0,o.__decorate)([(0,l.watch)("state.text",{immediately:!1})],v.prototype,"onChangeText",null),(0,o.__decorate)([(0,l.watch)("state.text",{immediately:!1})],v.prototype,"onChangeTextSetMode",null),(0,o.__decorate)([(0,l.watch)("state.disabled")],v.prototype,"onChangeDisabled",null),(0,o.__decorate)([(0,l.watch)("state.activated")],v.prototype,"onChangeActivated",null),(0,o.__decorate)([(0,l.watch)("state.name",{immediately:!1})],v.prototype,"onChangeName",null),(0,o.__decorate)([(0,l.watch)("state.tooltip",{immediately:!1})],v.prototype,"onChangeTooltip",null),(0,o.__decorate)([(0,l.watch)("state.tabIndex",{immediately:!1})],v.prototype,"onChangeTabIndex",null),(0,o.__decorate)([(0,l.watch)("state.icon",{immediately:!1})],v.prototype,"onChangeIcon",null),(0,o.__decorate)([s.cacheHTML],v.prototype,"createContainer",null),(0,o.__decorate)([(0,l.watch)("button:click")],v.prototype,"__onActionFire",null),v=(0,o.__decorate)([a.component],v)},15367:function(e,t,i){"use strict";i.d(t,{UIButtonGroup:function(){return u}});var n=i(25045),o=i(31635),r=i(91672),s=i(28712),a=i(53681),l=i(63468);class u extends l.UIGroup{className(){return"UIButtonGroup"}render(e){return`<div>
9
9
  <div class="&__label">~${e.label}~</div>
10
10
  <div class="&__options"></div>
11
11
  </div>`}appendChildToContainer(e){let t=this.getElm("options");(0,s.assert)(null!=t,"Options does not exist"),t.appendChild(e)}select(e){var t,i;this.elements.forEach((t,i)=>{i===e||t.state.value===e?t.state.activated=!0:this.options.radio&&(t.state.activated=!1)});let n=this.elements.filter(e=>e.state.activated).map(e=>({text:e.state.text,value:e.state.value}));this.jodit.e.fire(this,"select",n),null==(t=(i=this.options).onChange)||t.call(i,n)}constructor(e,t={radio:!0}){var i,o;super(e,null==(o=t.options)?void 0:o.map(t=>{let i=new a.UIButton(e,{text:t.text,value:t.value,variant:"primary"});return i.onAction(()=>{this.select(t.value)}),i}),t),(0,n._)(this,"options",void 0),this.options=t,this.select(null!=(i=t.value)?i:0)}}u=(0,o.__decorate)([r.component],u)},59400:function(e,t,i){"use strict";i.d(t,{Button:function(){return n.Button},UIButton:function(){return n.UIButton},UIButtonGroup:function(){return o.UIButtonGroup},UIButtonState:function(){return n.UIButtonState},UITooltip:function(){return r.UITooltip}});var n=i(53681),o=i(15367),r=i(95399)},95399:function(e,t,i){"use strict";i.d(t,{UITooltip:function(){return m}});var n=i(25045),o=i(31635),r=i(16964),s=i(84839),a=i(27795),l=i(28077),u=i(23599),c=i(93640),d=i(96007);let h=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],p=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"];class m extends d.UIElement{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}__onAttach(e){(0,l.getContainer)(this.j,m).appendChild(this.container),this.__attachedContainers.add(e),this.__attachedContainers.add(this.j.container),this.j.e.on(e,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(e,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}__addListenersOnEnter(){if(this.__listenClose)return;this.__listenClose=!0;let e=this.j;e.e.on(e.ow,h,this.__hide).on(p,this.__hide)}__removeListenersOnLeave(){if(!this.__listenClose)return;this.__listenClose=!1;let e=this.j;e.e.off(e.ow,h,this.__hide).off(p,this.__hide)}__onMouseLeave(e){this.__currentTarget===e.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(e){if(!a.Dom.isHTMLElement(e.target))return;let t=(0,c.attr)(e.target,"aria-label");if(!t||(0,c.attr)(e.target,"disabled")||!e.target.className.includes("jodit"))return;this.__currentTarget=e.target;let i=e.target;this.__open(()=>{let e=(0,u.position)(i);return{x:e.left+e.width/2,y:e.top+e.height}},t)}__open(e,t){this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);let i=this.j.o.showTooltipDelay||this.j.defaultTimeout;i?this.__delayShowTimeout=this.j.async.setTimeout(()=>this.__show(e,t),i):this.__show(e,t)}__show(e,t){this.setMod("visible",!0),this.getElm("content").innerHTML=t;let i=e();(0,c.css)(this.container,{left:i.x,top:i.y})}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),this.getElm("content").innerHTML="",(0,c.css)(this.container,{left:-5e3}))}__hideDelay(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.__attachedContainers.forEach(e=>{this.j.e.off(e,"mouseenter.tooltip",this.__onMouseEnter).off(e,"mouseleave.tooltip",this.__onMouseLeave)}),this.__hide(),super.destruct()}constructor(e){super(e),(0,n._)(this,"__isOpened",!1),(0,n._)(this,"__attachedContainers",new Set),(0,n._)(this,"__listenClose",!1),(0,n._)(this,"__currentTarget",null),(0,n._)(this,"__delayShowTimeout",0),(0,n._)(this,"__hideTimeout",0),e.o.textIcons||!e.o.showTooltip||e.o.useNativeTooltip||(this.j.e.on("getContainer",e=>{this.__onAttach(e)}),e.hookStatus(r.STATUSES.ready,()=>{this.__onAttach(this.j.container)}))}}(0,o.__decorate)([s.autobind],m.prototype,"__onMouseLeave",null),(0,o.__decorate)([s.autobind],m.prototype,"__onMouseEnter",null),(0,o.__decorate)([s.autobind],m.prototype,"__hide",null),(0,o.__decorate)([s.autobind],m.prototype,"__hideDelay",null),m=(0,o.__decorate)([s.component],m)},96007:function(e,t,i){"use strict";i.d(t,{UIElement:function(){return p}});var n=i(25045),o=i(31635),r=i(16964),s=i(24968),a=i(23211),l=i(85932),u=i(7909),c=i(23183),d=i(81987),h=i(29434);class p extends r.ViewComponent{getRole(){var e;return(null==(e=this.options)?void 0:e.role)||""}get parentElement(){return this.__parentElement}set parentElement(e){this.__parentElement=e,e&&e.hookStatus("beforeDestruct",()=>this.destruct()),this.updateParentElement(this)}bubble(e){let t=this.parentElement;for(;t;)e(t),t=t.parentElement;return this}updateParentElement(e){var t;return null==(t=this.__parentElement)||t.updateParentElement(e),this}get(e,t){return super.get(e,t)||this.getElm(e)}closest(e){let t="object"==typeof e?t=>t===e:t=>r.Component.isInstanceOf(t,e),i=this.__parentElement;for(;i;){if(t(i))return i;i=!i.parentElement&&i.container.parentElement?p.closestElement(i.container.parentElement,p):i.parentElement}return null}static closestElement(e,t){let i=a.Dom.up(e,e=>{if(e){let{component:i}=e;return i&&r.Component.isInstanceOf(i,t)}return!1});return i?null==i?void 0:i.component:null}update(){}appendTo(e){return e.appendChild(this.container),this}clearName(e){return e.replace(/[^a-zA-Z0-9]/g,"_")}render(e){return this.j.c.div(this.componentName)}createContainer(e){let t=this.render(e);if((0,l.isString)(t)){let e=this.parseTemplate(t);return e.classList.add(this.componentName),e}return t}parseTemplate(e){return this.j.c.fromHTML(e.replace(/\*([^*]+?)\*/g,(e,t)=>h.Icon.get(t)||"").replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(e,t)=>this.i18n(t)))}destruct(){return a.Dom.safeRemove(this.container),this.parentElement=null,super.destruct()}constructor(e,t){super(e),(0,n._)(this,"container",void 0),(0,n._)(this,"name",""),(0,n._)(this,"options",void 0),(0,n._)(this,"__parentElement",null),(0,n._)(this,"mods",{}),this.options=t,this.container=this.createContainer(t);const i=this.getRole();i&&(0,u.attr)(this.container,"role",i),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}}p=(0,o.__decorate)([(0,s.derive)(d.Mods,c.Elms)],p)},4561:function(e,t,i){"use strict";i.d(t,{UIBlock:function(){return l}});var n=i(25045),o=i(31635),r=i(91672),s=i(93640),a=i(63468);class l extends a.UIGroup{className(){return"UIBlock"}constructor(e,t,i={align:"left"}){super(e,t),(0,n._)(this,"options",void 0),this.options=i,this.setMod("align",this.options.align||"left"),this.setMod("width",this.options.width||""),this.options.mod&&this.setMod(this.options.mod,!0),this.options.className&&this.container.classList.add(this.options.className),(0,s.attr)(this.container,"data-ref",i.ref),(0,s.attr)(this.container,"ref",i.ref)}}l=(0,o.__decorate)([r.component],l)},98838:function(e,t,i){"use strict";i.d(t,{UIForm:function(){return c}});var n=i(31635),o=i(80251),r=i(91672),s=i(93640),a=i(65273),l=i(49999),u=i(63468);class c extends u.UIGroup{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){for(let e of this.allChildren.filter(e=>o.Component.isInstanceOf(e,a.UIInput)))if(!e.validate())return!1;for(let e of this.allChildren.filter(e=>o.Component.isInstanceOf(e,l.UISelect)))if(!e.validate())return!1;return!0}onSubmit(e){return this.j.e.on(this.container,"submit",()=>{let t=this.allChildren.filter(e=>o.Component.isInstanceOf(e,a.UIInput));return!!this.validate()&&(e(t.reduce((e,t)=>(e[t.state.name]=t.value,e),{})),!1)}),this}createContainer(){let e=this.j.c.element("form");return e.classList.add(this.componentName),(0,s.attr)(e,"dir",this.j.o.direction||"auto"),(0,s.attr)(e,"novalidate",""),e}constructor(...e){var t,i;super(...e),(null==(t=this.options)?void 0:t.className)&&this.container.classList.add(null==(i=this.options)?void 0:i.className)}}c=(0,n.__decorate)([r.component],c)},5658:function(e,t,i){"use strict";i.d(t,{UIBlock:function(){return n.UIBlock},UICheckbox:function(){return r.UICheckbox},UIFileInput:function(){return r.UIFileInput},UIForm:function(){return o.UIForm},UIInput:function(){return r.UIInput},UISelect:function(){return r.UISelect},UITextArea:function(){return r.UITextArea}});var n=i(4561),o=i(98838),r=i(2602)},87329:function(e,t,i){"use strict";i.d(t,{UITextArea:function(){return l}});var n=i(25045),o=i(31635),r=i(84839),s=i(91672),a=i(65273);class l extends a.UIInput{className(){return"UITextArea"}createNativeInput(e){return this.j.create.element("textarea")}onChangeStateSize(){let{size:e,resizable:t}=this.state;this.nativeInput.style.resize=t?"auto":"none",this.nativeInput.rows=null!=e?e:5}constructor(e,t){super(e,t),(0,n._)(this,"state",{...l.defaultState}),Object.assign(this.state,t),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}}(0,n._)(l,"defaultState",{...a.UIInput.defaultState,size:5,resizable:!0}),(0,o.__decorate)([(0,r.watch)(["state.size","state.resizable"])],l.prototype,"onChangeStateSize",null),l=(0,o.__decorate)([s.component],l)},24641:function(e,t,i){"use strict";i.d(t,{UICheckbox:function(){return l}});var n=i(25045),o=i(31635),r=i(84839),s=i(23211),a=i(65273);class l extends a.UIInput{className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}onChangeChecked(){this.value=this.state.checked.toString(),this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}onChangeNativeCheckBox(){this.state.checked=this.nativeInput.checked}onChangeSwitch(){this.setMod("switch",this.state.switch);let e=this.getElm("switch-slider");this.state.switch?(e||(e=this.j.c.div(this.getFullElName("switch-slider"))),s.Dom.after(this.nativeInput,e)):s.Dom.safeRemove(e)}constructor(e,t){super(e,{...t,type:"checkbox"}),(0,n._)(this,"state",{...l.defaultState}),Object.assign(this.state,t)}}(0,n._)(l,"defaultState",{...a.UIInput.defaultState,checked:!1,switch:!1}),(0,o.__decorate)([(0,r.watch)("state.checked"),(0,r.hook)("ready")],l.prototype,"onChangeChecked",null),(0,o.__decorate)([(0,r.watch)("nativeInput:change")],l.prototype,"onChangeNativeCheckBox",null),(0,o.__decorate)([(0,r.watch)("state.switch"),(0,r.hook)("ready")],l.prototype,"onChangeSwitch",null),l=(0,o.__decorate)([r.component],l)},75587:function(e,t,i){"use strict";i.d(t,{UIFileInput:function(){return l}});var n=i(25045),o=i(31635),r=i(91672),s=i(53681),a=i(65273);class l extends a.UIInput{className(){return"UIFileInput"}createContainer(e){this.button=new s.UIButton(this.j,{tooltip:e.tooltip,icon:{name:"plus"}});let{container:t}=this.button;this.nativeInput||(this.nativeInput=this.createNativeInput(e));let{nativeInput:i}=this;return i.classList.add(this.getFullElName("input")),t.classList.add(this.componentName),t.appendChild(i),t}createNativeInput(e){return this.j.create.fromHTML(`<input
@@ -125,7 +125,7 @@
125
125
  <div class="&__spinner"></div>
126
126
  </div>
127
127
  </div>
128
- </div>`}setPrompt(e){if(e){let{jodit:t}=this,i=t.o.aiAssistant[e],{aiCommonPrefixPrompt:n,aiCommonSuffixPrompt:o}=t.o.aiAssistant;this.promptInput.value=[n,(0,l.isString)(i)?i:"",o].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(e){this.setMod("loading",!1),a.Dom.detach(this.__results),this.__aiResult=e,this.__results.appendChild(this.jodit.c.fromHTML(e)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(e){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=e,a.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let t=this.getFullElName("","hide","true");this.__results.classList.add(t),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(e){this.__submitButton.state.disabled=e,this.__tryAgainButton.state.disabled=e}__toggleInsertButton(e){this.__insertButton.state.disabled=e,this.__insertAfterButton.state.disabled=e}constructor(e,{onInsert:t,onInsertAfter:i}){super(e),(0,n._)(this,"__body",void 0),(0,n._)(this,"__buttons",void 0),(0,n._)(this,"__results",void 0),(0,n._)(this,"__spinner",void 0),(0,n._)(this,"__error",void 0),(0,n._)(this,"promptInput",void 0),(0,n._)(this,"__insertAfterButton",void 0),(0,n._)(this,"__submitButton",void 0),(0,n._)(this,"__tryAgainButton",void 0),(0,n._)(this,"__insertButton",void 0),(0,n._)(this,"__formAiAssistant",void 0),(0,n._)(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,u.Button)(e,"","Insert","primary").onAction(()=>t(this.__aiResult)),this.__insertAfterButton=(0,u.Button)(e,"","Insert After","initial").onAction(()=>i(this.__aiResult));const o=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,u.Button)(e,"ai-assistant","").onAction(o),this.__tryAgainButton=(0,u.Button)(e,"update","","initial").onAction(o),this.promptInput=new u.UITextArea(e,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});const r=new u.UIBlock(e,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new u.UIForm(e,[new u.UIBlock(e,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(t=>{this.__error.textContent="",this.setMod("loading",!0),e.e.fire("invokeAiAssistant",t.prompt);let i=this.getFullElName("","hide","true");this.__results.classList.remove(i),this.__buttons.classList.remove(i),a.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()}}(0,o.__decorate)([(0,s.watch)(":ai-assistant-response")],d.prototype,"onAiAssistentResponse",null),(0,o.__decorate)([(0,s.watch)(":ai-assistant-error")],d.prototype,"onAiAssistentError",null),(0,o.__decorate)([(0,s.watch)("promptInput:change")],d.prototype,"onChangePromptValue",null),d=(0,o.__decorate)([r.component],d)},28286:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(27795),s=i(28077),a=i(91565),l=i(91206),u=i(42259);i(33831);var c=i(89827),d=i(17523);class h extends l.Plugin{afterInit(e){e.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:e.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:e.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:e.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:e.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:e.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:e.o.delete.hotkeys.backspaceSentence})}beforeDestruct(e){e.e.off("afterCommand.delete")}onDelete(e,t="char"){let i=this.j,n=i.selection;if(n.isFocused()||n.focus(),(0,c.checkNotCollapsed)(i))return!1;let s=n.range,l=i.createInside.text(o.INVISIBLE_SPACE);try{if(r.Dom.safeInsertNode(s,l),!r.Dom.isOrContains(i.editor,l))return;if(i.e.fire("backSpaceBeforeCases",e,l)||((0,u.moveNodeInsideStart)(i,l,e),d.cases.some(n=>{if((0,a.isFunction)(n)&&n(i,l,e,t))return o.IS_PROD,!0})))return!1}catch(e){throw o.IS_PROD,e}finally{i.e.fire("backSpaceAfterDelete",e,l),this.safeRemoveEmptyNode(l)}return!1}safeRemoveEmptyNode(e){let{range:t}=this.j.s;if(t.startContainer===e){if(e.previousSibling)if(r.Dom.isText(e.previousSibling)){var i,n;t.setStart(e.previousSibling,null!=(i=null==(n=e.previousSibling.nodeValue)?void 0:n.length)?i:0)}else t.setStartAfter(e.previousSibling);else e.nextSibling&&(r.Dom.isText(e.nextSibling)?t.setStart(e.nextSibling,0):t.setStartBefore(e.nextSibling));t.collapse(!0),this.j.s.selectRange(t)}r.Dom.safeRemove(e)}}(0,n._)(h,"requires",["hotkeys"]),s.pluginSystem.add("backspace",h)},26106:function(e,t,i){"use strict";i.d(t,{checkJoinNeighbors:function(){return s}});var n=i(81937),o=i(23211),r=i(15200);function s(e,t,i){let r=t,s=r;for(;r&&!o.Dom.findNotEmptySibling(r,i)&&r.parentElement!==e.editor;)s=r=r.parentElement;if(o.Dom.isElement(s)&&o.Dom.isContentEditable(s,e.editor)){var l,u;let r,c,d,h=o.Dom.findNotEmptySibling(s,i);if(h&&(l=s,u=h,r=o.Dom.isTag(u,n.LIST_TAGS),c=o.Dom.isTag(l,n.LIST_TAGS),d=(e,t)=>t?e.firstElementChild:e.lastElementChild,(c?(u=e.createInside.element(e.o.enterBlock),o.Dom.before(l,u),a(e,d(l,i),u,i)):!!u&&!!r&&!c&&a(e,l,d(u,!i),i))||a(e,s,h,i)))return e.s.setCursorBefore(t),!0}return!1}function a(e,t,i,n){if(t&&o.Dom.isElement(i)){o.Dom.moveContent(t,i,!n,(0,r.getMoveFilter)(e));let s=t;for(;s&&s!==e.editor&&o.Dom.isEmpty(s);){let e=s.parentElement;o.Dom.safeRemove(s),s=e}return!0}return!1}},80951:function(e,t,i){"use strict";i.d(t,{checkJoinTwoLists:function(){return s}});var n=i(23211),o=i(71125),r=i(15200);function s(e,t,i){let s=n.Dom.findSibling(t,i),a=n.Dom.findSibling(t,!i);if(!n.Dom.closest(t,n.Dom.isElement,e.editor)&&n.Dom.isList(s)&&n.Dom.isList(a)&&n.Dom.isTag(s.lastElementChild,"li")&&n.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:u}=e.s,c=s.lastElementChild,d=a.firstElementChild;return(0,o.call)(i?n.Dom.prepend:n.Dom.append,d,t),n.Dom.moveContent(a,s,!i,(0,r.getMoveFilter)(e)),n.Dom.safeRemove(a),(0,o.call)(i?n.Dom.append:n.Dom.prepend,c,t),(0,o.call)(i?l:u,t),!0}return!1}},89827:function(e,t,i){"use strict";function n(e){return!e.s.isCollapsed()&&(e.execCommand("Delete"),!0)}i.d(t,{checkNotCollapsed:function(){return n}})},58881:function(e,t,i){"use strict";i.d(t,{checkRemoveChar:function(){return function e(t,i,s,l){var u,c,d,h;let p,m=s?-1:1,f=o.Dom.sibling(i,!s),g=o.Dom.sibling(i,s),v=null,_=!1;for(g||(g=a(i,s,t.editor));g&&(o.Dom.isText(g)||o.Dom.isInlineBlock(g));){for(;o.Dom.isInlineBlock(g);)g=s?null==g?void 0:g.lastChild:null==g?void 0:g.firstChild;if(!g)break;if((null==(u=g.nodeValue)?void 0:u.length)&&(p=function(e,t,i,s){let a=(0,r.toArray)(e.nodeValue),l=a.length,u=t?l-1:0;if(a[u]===n.INVISIBLE_SPACE)for(;a[u]===n.INVISIBLE_SPACE;)u+=i;let c=a[u];if(a[u+i]===n.INVISIBLE_SPACE){for(u+=i;a[u]===n.INVISIBLE_SPACE;)u+=i;u+=t?1:-1}return a=t&&u<0?[]:a.slice(t?0:u+1,t?u:l),function(e,t,i){var s;if(!e||!o.Dom.isText(e)||(!t?/ $/:/^ /).test(null!=(s=e.nodeValue)?s:"")||!(0,r.trimInv)(e.nodeValue||"").length)for(let e=t?i.length-1:0;t?e>=0:e<i.length;e+=t?-1:1)if(" "===i[e])i[e]=n.NBSP_SPACE;else break}(s,t,a),e.nodeValue=a.join(""),c}(g,s,m,f),!g.nodeValue.length&&o.Dom.isInlineBlock(g.parentNode)&&(g.nodeValue=n.INVISIBLE_SPACE)),(null==(c=g.nodeValue)?void 0:c.length)||(v=g),!(0,r.isVoid)(p)&&p!==n.INVISIBLE_SPACE){d=g,h=p,(0,r.call)(s?o.Dom.after:o.Dom.before,d,i),("sentence"===l||"word"===l&&" "!==h&&h!==n.NBSP_SPACE)&&e(t,i,s,l),_=!0;break}let b=a(g,s,t.editor);v&&(o.Dom.safeRemove(v),v=null),g=b}return v&&(o.Dom.safeRemove(v),v=null),_&&(function(e){let t=e.parentElement;for(;t&&o.Dom.isInlineBlock(t)&&o.Dom.isTag(t,"a");){let i=t.parentElement;o.Dom.isEmpty(t)&&(o.Dom.after(t,e),o.Dom.safeRemove(t)),t=i}}(i),i.parentElement!==t.editor&&o.Dom.isBlock(i.parentElement)&&o.Dom.each(i.parentElement,o.Dom.isEmptyTextNode)&&o.Dom.after(i,t.createInside.element("br")),t.s.setCursorBefore(i),o.Dom.isTag(i.previousSibling,"br")&&!o.Dom.findNotEmptySibling(i,!1)&&o.Dom.after(i,t.createInside.element("br"))),_}}});var n=i(81937),o=i(27795),r=i(65946),s=i(15200);function a(e,t,i){let n=o.Dom.sibling(e,t);return!n&&e.parentNode&&e.parentNode!==i&&(n=(0,s.findMostNestedNeighbor)(e,!t,i,!0)),n}},68709:function(e,t,i){"use strict";i.d(t,{checkRemoveContentNotEditable:function(){return s}});var n=i(27795),o=i(65946),r=i(42259);function s(e,t,i){let s=n.Dom.findSibling(t,i);return!s&&t.parentElement&&t.parentElement!==e.editor&&(s=n.Dom.findSibling(t.parentElement,i)),!(!n.Dom.isElement(s)||n.Dom.isContentEditable(s,e.editor))&&((0,o.call)(i?n.Dom.before:n.Dom.after,s,t),n.Dom.safeRemove(s),(0,r.moveNodeInsideStart)(e,t,i),(0,o.call)(i?e.s.setCursorBefore:e.s.setCursorAfter,t),!0)}},5771:function(e,t,i){"use strict";i.d(t,{checkRemoveEmptyNeighbor:function(){return o}});var n=i(23211);function o(e,t,i){let o=n.Dom.closest(t,n.Dom.isElement,e.editor);if(!o)return!1;let r=n.Dom.findNotEmptySibling(o,i);return!!(r&&n.Dom.isEmpty(r))&&(n.Dom.safeRemove(r),e.s.setCursorBefore(t),!0)}},2409:function(e,t,i){"use strict";i.d(t,{checkRemoveEmptyParent:function(){return s}});var n=i(81937),o=i(27795),r=i(80951);function s(e,t,i){let s=!1,{setCursorBefore:a,setCursorIn:l}=e.s,u=o.Dom.closest(t,o.Dom.isElement,e.editor);if(!u||!o.Dom.isEmpty(u))return!1;let c=o.Dom.findNotEmptyNeighbor(t,i,e.editor);do if(u&&o.Dom.isEmpty(u)&&!o.Dom.isCell(u)){o.Dom.after(u,t);let i=o.Dom.closest(u,e=>o.Dom.isElement(e)&&e!==u,e.editor);o.Dom.safeRemove(u),s=!0,u=i}else break;while(u);return!!(s&&(0,r.checkJoinTwoLists)(e,t,i))||(!c||o.Dom.isText(c)||o.Dom.isTag(c,n.INSEPARABLE_TAGS)?a(t):l(c,!i),s)}},93890:function(e,t,i){"use strict";i.d(t,{checkRemoveUnbreakableElement:function(){return s}});var n=i(81937),o=i(23211),r=i(2409);function s(e,t,i){let s=o.Dom.findSibling(t,i);return!!(o.Dom.isElement(s)&&(o.Dom.isTag(s,n.INSEPARABLE_TAGS)||o.Dom.isEmpty(s)))&&(o.Dom.safeRemove(s),o.Dom.isTag(s,"br")&&!o.Dom.findNotEmptySibling(t,!1)&&o.Dom.after(t,e.createInside.element("br")),e.s.setCursorBefore(t),o.Dom.isTag(s,"br")&&(0,r.checkRemoveEmptyParent)(e,t,i),!0)}},12443:function(e,t,i){"use strict";i.d(t,{checkTableCell:function(){return o}});var n=i(23211);function o(e,t){let i=t.parentElement;return!!n.Dom.isCell(i)}},10157:function(e,t,i){"use strict";i.d(t,{checkUnwrapFirstListItem:function(){return r}});var n=i(23211),o=i(93640);function r(e,t,i){var r;let s=n.Dom.closest(t,n.Dom.isElement,e.editor),{s:a}=e;if(n.Dom.isLeaf(s)&&(null==s||null==(r=s.parentElement)?void 0:r[i?"firstElementChild":"lastElementChild"])===s&&a.cursorInTheEdge(i,s)){let r=s.parentElement,l=e.createInside.element(e.o.enterBlock);return(0,o.call)(i?n.Dom.before:n.Dom.after,r,l),n.Dom.moveContent(s,l),n.Dom.safeRemove(s),n.Dom.isEmpty(r)&&n.Dom.safeRemove(r),(0,o.call)(i?a.setCursorBefore:a.setCursorAfter,t),!0}return!1}},17523:function(e,t,i){"use strict";i.d(t,{cases:function(){return h}});var n=i(26106),o=i(80951),r=i(58881),s=i(68709),a=i(5771),l=i(2409),u=i(93890),c=i(12443),d=i(10157);let h=[u.checkRemoveUnbreakableElement,s.checkRemoveContentNotEditable,r.checkRemoveChar,c.checkTableCell,l.checkRemoveEmptyParent,a.checkRemoveEmptyNeighbor,o.checkJoinTwoLists,n.checkJoinNeighbors,d.checkUnwrapFirstListItem]},33831:function(e,t,i){"use strict";i(5266).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"]}}},15200:function(e,t,i){"use strict";i.d(t,{findMostNestedNeighbor:function(){return o},getMoveFilter:function(){return r}});var n=i(27795);function o(e,t,i,r=!1){let s=e=>t?e.firstChild:e.lastChild,a=n.Dom.findNotEmptyNeighbor(e,!t,i);if(r&&n.Dom.isElement(a)&&!n.Dom.isInlineBlock(a))return null;if(a)do{if(!s(a))return a;a=s(a)}while(a);return null}function r(e){return t=>!0!==e.e.fire("backSpaceIsMovedIgnore",t)}},91678:function(e,t,i){"use strict";var n=i(28077),o=i(65946),r=i(29434),s=i(5266);i(40291);var a=i(52450),l=i.n(a),u=i(41111),c=i.n(u),d=i(49972),h=i.n(d),p=i(45062),m=i.n(p),f=i(18605),g=i.n(f),v=i(83389),_=i.n(v);n.pluginSystem.add("bold",function(e){let t=t=>{let i,n=s.Config.defaultOptions.controls[t],r={...n.css};return Object.keys(r).forEach(e=>{i||(i={}),i[e]=(0,o.isArray)(r[e])?r[e][0]:r[e]}),e.s.commitStyle({element:n.tags?n.tags[0]:void 0}),e.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(t=>{e.registerButton({name:t,group:"font-style"})}),["superscript","subscript"].forEach(t=>{e.registerButton({name:t,group:"script"})}),e.registerCommand("bold",{exec:t,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:t,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:t,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:t}).registerCommand("subscript",{exec:t}).registerCommand("superscript",{exec:t})}),r.Icon.set("bold",l()).set("italic",c()).set("strikethrough",h()).set("subscript",m()).set("superscript",g()).set("underline",_())},40291:function(e,t,i){"use strict";var n=i(5266);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"}},58910:function(e,t,i){"use strict";var n=i(25045),o=i(23211),r=i(28077),s=i(71125),a=i(91206),l=i(29434),u=i(5266),c=i(93267),d=i.n(c);u.Config.prototype.controls.classSpan={command:"applyClassName",exec:s.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive:(e,t)=>{let i=e.s.current();if(i){let n=o.Dom.closest(i,o.Dom.isElement,e.editor)||e.editor;return!!(t.control.args&&n.classList.contains(t.control.args[0].toString()))}return!1},isActive:(e,t)=>{let i=e.s.current();if(i){let n=o.Dom.closest(i,o.Dom.isElement,e.editor)||e.editor,r=!1;return t.control.list&&Object.keys(t.control.list).forEach(e=>{n.classList.contains(e)&&(r=!0)}),!!(n&&n!==e.editor&&void 0!==t.control.list&&r)}return!1},childTemplate:(e,t,i)=>`<span class="${t}">${e.i18n(i)}</span>`,tooltip:"Insert className"};class h extends a.Plugin{afterInit(e){e.registerCommand("applyClassName",(t,i,n)=>(e.s.commitStyle({attributes:{class:n}}),!1))}beforeDestruct(){}constructor(...e){super(...e),(0,n._)(this,"buttons",[{name:"classSpan",group:"script"}])}}r.pluginSystem.add("classSpan",h),l.Icon.set("class-span",d())},11018:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(23211),a=i(1080),l=i(28077),u=i(48155),c=i(18855);i(11173);var d=i(54053);class h extends c.Plugin{afterInit(e){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;let e=this.j;this.walker.setWork(e.editor),this.currentSelectionNode=e.s.current()}startWalker(){let{jodit:e}=this,t=(0,d.getHash)(this.j.o.cleanHTML.allowTags),i=(0,d.getHash)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",n=>(0,d.visitNodeWalker)(e,n,t,i,this.currentSelectionNode)).on("end",e=>{this.j.e.fire(e?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(e){if("removeformat"===e.toLowerCase())return this.j.s.isCollapsed()?(0,d.removeFormatForCollapsedSelection)(this.j):(0,d.removeFormatForSelection)(this.j),!1}onBeforeSetNativeEditorValue(e){let[t,i]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.createInside.div()];return t.innerHTML=e.value,this.onSafeHTML(t),e.value=t.innerHTML,(0,u.safeHTML)(t,{safeJavaScriptLink:!0,removeOnError:!0}),s.Dom.safeRemove(i),!1}onSafeHTML(e){(0,u.safeHTML)(e,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}constructor(...e){super(...e),(0,n._)(this,"buttons",[{name:"eraser",group:"font-style"}]),(0,n._)(this,"currentSelectionNode",null),(0,n._)(this,"walker",new a.LazyWalker(this.j.async,{timeout:this.j.o.cleanHTML.timeout}))}}(0,o.__decorate)([(0,r.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],h.prototype,"onChangeCleanHTML",null),(0,o.__decorate)([(0,r.hook)("ready")],h.prototype,"startWalker",null),(0,o.__decorate)([(0,r.watch)(":beforeCommand")],h.prototype,"beforeCommand",null),(0,o.__decorate)([(0,r.watch)(":beforeSetNativeEditorValue")],h.prototype,"onBeforeSetNativeEditorValue",null),(0,o.__decorate)([(0,r.watch)(":safeHTML")],h.prototype,"onSafeHTML",null),l.pluginSystem.add("cleanHtml",h)},11173:function(e,t,i){"use strict";var n=i(29434),o=i(5266),r=i(71948),s=i.n(r);o.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script",useIframeSandbox:!1,removeOnError:!0,safeJavaScriptLink:!0,disableCleanFilter:null},o.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},n.Icon.set("eraser",s())},5650:function(e,t,i){"use strict";i.d(t,{getHash:function(){return r}});var n=i(85932),o=i(4040);function r(e){let t=/([^[]*)\[([^\]]+)]/,i=/[\s]*,[\s]*/,r=/^(.*)[\s]*=[\s]*(.*)$/,s={};return(0,n.isString)(e)?(e.split(i).map(e=>{e=(0,o.trim)(e);let n=t.exec(e),a={};if(n){let e=n[2].split(i);n[1]&&(e.forEach(e=>{e=(0,o.trim)(e);let t=r.exec(e);t?a[t[1]]=t[2]:a[e]=!0}),s[n[1].toUpperCase()]=a)}else s[e.toUpperCase()]=!0}),s):!!e&&(Object.keys(e).forEach(t=>{s[t.toUpperCase()]=e[t]}),s)}},54053:function(e,t,i){"use strict";i.d(t,{getHash:function(){return n.getHash},removeFormatForCollapsedSelection:function(){return o.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return r.removeFormatForSelection},visitNodeWalker:function(){return s.visitNodeWalker}});var n=i(5650),o=i(37431),r=i(70195),s=i(45219)},37431:function(e,t,i){"use strict";i.d(t,{isInlineBlock:function(){return s},removeFormatForCollapsedSelection:function(){return r}});var n=i(81937),o=i(23211);function r(e,t){let{s:i}=e,n=t;if(!n){n=e.createInside.fake();let{range:t}=i;o.Dom.safeInsertNode(t,n),t.collapse()}let r=o.Dom.furthest(n,s,e.editor);if(r)if(i.cursorOnTheLeft(r))o.Dom.before(r,n);else if(i.cursorOnTheRight(r))o.Dom.after(r,n);else{let e=i.splitSelection(r);e&&o.Dom.after(e,n)}t||(i.setCursorBefore(n),o.Dom.safeRemove(n))}function s(e){return o.Dom.isInlineBlock(e)&&!o.Dom.isTag(e,n.INSEPARABLE_TAGS)}},70195:function(e,t,i){"use strict";i.d(t,{removeFormatForSelection:function(){return s}});var n=i(23211),o=i(93640),r=i(37431);function s(e){let{s:t,editor:i,createInside:s}=e,{range:a}=t,l=a.cloneRange(),u=a.cloneRange(),c=s.fake(),d=s.fake();l.collapse(!0),u.collapse(!1),n.Dom.safeInsertNode(l,c),n.Dom.safeInsertNode(u,d),a.setStartBefore(c),a.collapse(!0),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,c),a.setEndAfter(d),a.collapse(!1),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,d);let h=[];n.Dom.between(c,d,e=>{(0,r.isInlineBlock)(e)&&!n.Dom.isTag(e,"a")&&h.push(e),n.Dom.isElement(e)&&(0,o.attr)(e,"style")&&(0,o.attr)(e,"style",null)}),h.forEach(e=>n.Dom.unwrap(e));let p=(e,t)=>{if(!n.Dom.findNotEmptySibling(e,t)){let n=e.parentNode;if(n&&n!==i&&(0,o.attr)(n,"style"))return(0,o.attr)(n,"style",null),p(n,t),!0}};p(c,!0)&&p(d,!1),a.setStartAfter(c),a.setEndBefore(d),t.selectRange(a),n.Dom.safeRemove(c),n.Dom.safeRemove(d)}},95559:function(e,t,i){"use strict";i.d(t,{allowAttributes:function(){return o}});var n=i(23211);function o(e,t,i,o){if(o&&n.Dom.isElement(t)&&!0!==o[t.nodeName]){let e=t.attributes;if(e&&e.length){let n=[];for(let i=0;i<e.length;i+=1){let r=o[t.nodeName][e[i].name];r&&(!0===r||r===e[i].value)||n.push(e[i].name)}n.length&&(i=!0),n.forEach(e=>{t.removeAttribute(e)})}}return i}},39188:function(e,t,i){"use strict";i.d(t,{fillEmptyParagraph:function(){return s}});var n=i(81937),o=i(23211);let r=new Set(["table","tbody","thead","tfoot","tr"]);function s(e,t,i){if(e.o.cleanHTML.fillEmptyParagraph&&o.Dom.isBlock(t)&&o.Dom.isEmpty(t,n.INSEPARABLE_TAGS)&&!o.Dom.isTag(t,r)){let i=e.createInside.element("br");return t.appendChild(i),!0}return i}},91560:function(e,t,i){"use strict";i.r(t),i.d(t,{allowAttributes:function(){return n.allowAttributes},fillEmptyParagraph:function(){return o.fillEmptyParagraph},removeEmptyTextNode:function(){return r.removeEmptyTextNode},removeInvTextNodes:function(){return s.removeInvTextNodes},replaceOldTags:function(){return a.replaceOldTags},sanitizeAttributes:function(){return l.sanitizeAttributes},tryRemoveNode:function(){return u.tryRemoveNode}});var n=i(95559),o=i(39188),r=i(94561),s=i(53514),a=i(35104),l=i(65015),u=i(27611)},94561:function(e,t,i){"use strict";i.d(t,{removeEmptyTextNode:function(){return o}});var n=i(23211);function o(e,t,i,o,r,s){return n.Dom.isText(t)&&!t.nodeValue?(t===s&&e.s.isCollapsed()&&e.s.setCursorAfter(t),n.Dom.safeRemove(t),!0):i}},53514:function(e,t,i){"use strict";i.d(t,{removeInvTextNodes:function(){return r}});var n=i(81937),o=i(23211);function r(e,t,i,r,s,a){if(a===t||!o.Dom.isText(t)||null==t.nodeValue||!(0,n.INVISIBLE_SPACE_REG_EXP)().test(t.nodeValue))return i;let l=o.Dom.furthest(a,o.Dom.isBlock,e.editor);return!l||o.Dom.isOrContains(l,t)?i:(t.nodeValue=t.nodeValue.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),""),t===a&&e.s.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||o.Dom.safeRemove(t),!0)}},35104:function(e,t,i){"use strict";i.d(t,{replaceOldTags:function(){return o}});var n=i(23211);function o(e,t,i){let o=function(e,t,i){if(!i||!n.Dom.isHTMLElement(t))return t;let o=i[t.nodeName.toLowerCase()]||i[t.nodeName];return o?n.Dom.replace(t,o,e.createInside,!0,!1):t}(e,t,e.o.cleanHTML.replaceOldTags);return t!==o?(t=o,!0):i}},65015:function(e,t,i){"use strict";i.d(t,{sanitizeAttributes:function(){return r}});var n=i(23211),o=i(65946);function r(e,t,i){return!!(n.Dom.isElement(t)&&(0,o.sanitizeHTMLElement)(t,{safeJavaScriptLink:e.options.cleanHTML.safeJavaScriptLink,removeOnError:e.options.cleanHTML.removeOnError}))||i}},27611:function(e,t,i){"use strict";i.d(t,{tryRemoveNode:function(){return s}});var n=i(81937),o=i(23211),r=i(4040);function s(e,t,i,s,a,l){return!o.Dom.isText(t)&&(s&&!s[t.nodeName]||!s&&a&&a[t.nodeName])||e.o.cleanHTML.removeEmptyElements&&o.Dom.isElement(t)&&null!=t.nodeName.match(n.IS_INLINE)&&!o.Dom.isTemporary(t)&&0===(0,r.trimInv)(t.innerHTML).length&&(null==l||!o.Dom.isOrContains(t,l))?(o.Dom.safeRemove(t),!0):i}},45219:function(e,t,i){"use strict";i.d(t,{visitNodeWalker:function(){return s}});var n=i(81937),o=i(91560);let r=Object.keys(o);function s(e,t,i,s,a){let l=!1,u=e.o.cleanHTML.disableCleanFilter;for(let c of r)if(!(u&&u.has(c))&&(l=(0,o[c])(e,t,l,i,s,a),n.IS_PROD,!t.isConnected))return!0;return l}},43354:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(51676),s=i(28077),a=i(65946);i(81008);class l{init(e){var t;null==(t=this.buttons)||t.forEach(t=>e.registerButton(t)),e.e.off(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`).on(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`,t=>{var i;let n=e.s.html,r=(0,a.getDataTransfer)(t)||(0,a.getDataTransfer)(e.ew)||(0,a.getDataTransfer)(t.originalEvent);r&&(r.setData(o.TEXT_PLAIN,(0,a.stripTags)(n)),r.setData(o.TEXT_HTML,n)),e.buffer.set(o.CLIPBOARD_ID,n),e.e.fire("pasteStack",{html:n,action:e.o.defaultActionOnPaste||o.INSERT_AS_HTML}),"cut"===t.type&&(e.s.remove(),e.s.focus()),t.preventDefault(),null==e||null==(i=e.events)||i.fire("afterCopy",n)})}destruct(e){var t,i;null==(t=(0,r.cached)(e,"buffer"))||t.set(o.CLIPBOARD_ID,""),null==e||null==(i=e.events)||i.off("."+o.CLIPBOARD_ID)}constructor(){(0,n._)(this,"jodit",void 0),(0,n._)(this,"buttons",[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}])}}s.pluginSystem.add("clipboard",l)},81008:function(e,t,i){"use strict";var n=i(29434),o=i(5266),r=i(51457),s=i.n(r),a=i(23602),l=i.n(a),u=i(86899),c=i.n(u),d=i(95320),h=i.n(d);o.Config.prototype.controls.cut={command:"cut",isDisabled:e=>e.s.isCollapsed(),tooltip:"Cut selection"},o.Config.prototype.controls.copy={command:"copy",isDisabled:e=>e.s.isCollapsed(),tooltip:"Copy selection"},o.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},n.Icon.set("copy",s()).set("cut",l()).set("paste",c()).set("select-all",h())},42462:function(e,t,i){"use strict";var n=i(28077),o=i(65946);i(8071),n.pluginSystem.add("color",function(e){e.registerButton({name:"brush",group:"color"});let t=(t,i,n)=>{let r=(0,o.normalizeColor)(n);switch(t){case"background":e.s.commitStyle({attributes:{style:{backgroundColor:r||""}}});break;case"forecolor":e.s.commitStyle({attributes:{style:{color:r||""}}})}return e.synchronizeValues(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)})},8071:function(e,t,i){"use strict";var n=i(23211),o=i(65946),r=i(29434),s=i(5266),a=i(15753),l=i(45674),u=i.n(l);r.Icon.set("brush",u()),s.Config.prototype.controls.brushCell={isVisible:e=>!e.o.disablePlugins.includes("color"),icon:"brush",popup:(e,t,i)=>{if(!(0,o.isJoditObject)(e))return;let n=e.getInstance("Table",e.o).getAllSelectedCells();if(!n.length)return!1;let r=t=>(0,a.ColorPickerWidget)(e,r=>{n.forEach(e=>{(0,o.css)(e,t,r)}),e.lock(),e.synchronizeValues(),i(),e.unlock()},(0,o.css)(n[0],t));return(0,a.TabsWidget)(e,[{name:"Background",content:r("background-color")},{name:"Text",content:r("color")},{name:"Border",content:r("border-color")}])},tooltip:"Background"},s.Config.prototype.controls.brush={isVisible:e=>!e.o.disablePlugins.includes("color"),update(e,t){let i=(0,o.dataBind)(t,"color"),r=(i,n)=>{if(n&&n!==(0,o.css)(e.editor,i).toString()){t.state.icon.fill=n;return}};if(i){let e=(0,o.dataBind)(t,"color");r("color"===e?e:"background-color",i);return}let s=e.s.current();if(s&&!t.state.disabled){let t=n.Dom.closest(s,n.Dom.isElement,e.editor)||e.editor;r("color",(0,o.css)(t,"color").toString()),r("background-color",(0,o.css)(t,"background-color").toString())}t.state.icon.fill="",t.state.activated=!1},popup:(e,t,i,r)=>{let s="",l="",u=[],c=null;return t&&t!==e.editor&&n.Dom.isNode(t)&&(n.Dom.isElement(t)&&e.s.isCollapsed()&&!n.Dom.isTag(t,new Set(["br","hr"]))&&(c=t),n.Dom.up(t,e=>{if(n.Dom.isHTMLElement(e)){let t=(0,o.css)(e,"color",!0),i=(0,o.css)(e,"background-color",!0);if(t)return s=t.toString(),!0;if(i)return l=i.toString(),!0}},e.editor)),u=[{name:"Background",content:(0,a.ColorPickerWidget)(e,t=>{c?c.style.backgroundColor=t:e.execCommand("background",!1,t),(0,o.dataBind)(r,"color",t),(0,o.dataBind)(r,"color-mode","background"),i()},l)},{name:"Text",content:(0,a.ColorPickerWidget)(e,t=>{c?c.style.color=t:e.execCommand("forecolor",!1,t),(0,o.dataBind)(r,"color",t),(0,o.dataBind)(r,"color-mode","color"),i()},s)}],"background"!==e.o.colorPickerDefaultTab&&(u=u.reverse()),(0,a.TabsWidget)(e,u,c)},exec(e,t,{button:i}){let r=(0,o.dataBind)(i,"color-mode"),s=(0,o.dataBind)(i,"color");if(!r)return!1;if(t&&t!==e.editor&&n.Dom.isNode(t)&&n.Dom.isElement(t))switch(r){case"color":t.style.color=s;break;case"background":t.style.backgroundColor=s}else e.execCommand("background"===r?r:"forecolor",!1,s)},tooltip:"Fill color or set the text color"}},30062:function(e,t,i){"use strict";var n=i(23211),o=i(28077),r=i(80991),s=i(29434),a=i(5266),l=i(3843),u=i.n(l),c=i(38639);let d="copy-format",h=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],p=(e,t,i,n)=>{let o=(0,r.css)(i,t);return o===n[t]&&(o=i.parentNode&&i!==e.editor&&i.parentNode!==e.editor?p(e,t,i.parentNode,n):void 0),o};a.Config.prototype.controls.copyformat={exec:(e,t,{button:i})=>{if(t){if(e.buffer.exists(d))e.buffer.delete(d),e.e.off(e.editor,"mouseup."+d);else{let i,o={},s=n.Dom.up(t,e=>e&&!n.Dom.isText(e),e.editor)||e.editor,a=e.createInside.span();e.editor.appendChild(a),h.forEach(e=>{o[e]=(0,r.css)(a,e)}),a!==e.editor&&n.Dom.safeRemove(a);let l=(i={},s&&h.forEach(t=>{i[t]=p(e,t,s,o),t.match(/border(Style|Color)/)&&!i.borderWidth&&(i[t]=void 0)}),i);e.e.on(e.editor,"mouseup."+d,()=>{e.buffer.delete(d);let t=e.s.current();t&&(n.Dom.isTag(t,"img")?(0,r.css)(t,l):e.s.commitStyle({attributes:{style:l}})),e.e.off(e.editor,"mouseup."+d)}),e.buffer.set(d,!0)}i.update()}},isActive:e=>e.buffer.exists(d),tooltip:"Paint format"},o.pluginSystem.add("copyformat",function(e){e.registerButton({name:"copyformat",group:"clipboard"}),(0,o.extendLang)(c)}),s.Icon.set("copyformat",u())},35830:function(e){e.exports={"copy-format":"نسخ التنسيق"}},3787:function(e){e.exports={"copy-format":"Kop\xedrovat form\xe1t"}},83778:function(e){e.exports={"copy-format":"Format kopierenт"}},70577:function(e){e.exports={"copy-format":"Copiar formato"}},15552:function(e){e.exports={"copy-format":"کپی کردن قالب"}},79400:function(e){e.exports={"copy-format":"Kopioi muotoilu"}},21513:function(e){e.exports={"copy-format":"Format de copie"}},40998:function(e){e.exports={"copy-format":"העתק עיצוב"}},22998:function(e){e.exports={"copy-format":"Form\xe1tum m\xe1sol\xe1s"}},52504:function(e){e.exports={"copy-format":"salin format"}},38639:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return o.a},cs_cz:function(){return s.a},de:function(){return l.a},es:function(){return c.a},fa:function(){return h.a},fi:function(){return m.a},fr:function(){return g.a},he:function(){return _.a},hu:function(){return y.a},id:function(){return w.a},it:function(){return k.a},ja:function(){return I.a},ko:function(){return x.a},mn:function(){return z.a},nl:function(){return L.a},pl:function(){return P.a},pt_br:function(){return R.a},ru:function(){return B.a},tr:function(){return q.a},zh_cn:function(){return H.a},zh_tw:function(){return U.a}});var n=i(35830),o=i.n(n),r=i(3787),s=i.n(r),a=i(83778),l=i.n(a),u=i(70577),c=i.n(u),d=i(15552),h=i.n(d),p=i(79400),m=i.n(p),f=i(21513),g=i.n(f),v=i(40998),_=i.n(v),b=i(22998),y=i.n(b),S=i(52504),w=i.n(S),C=i(66568),k=i.n(C),E=i(83708),I=i.n(E),T=i(37023),x=i.n(T),D=i(1678),z=i.n(D),j=i(58067),L=i.n(j),A=i(35109),P=i.n(A),M=i(22380),R=i.n(M),N=i(12872),B=i.n(N),O=i(31371),q=i.n(O),F=i(41599),H=i.n(F),V=i(15223),U=i.n(V)},66568:function(e){e.exports={"copy-format":"Copia il formato"}},83708:function(e){e.exports={"copy-format":"copyformat"}},37023:function(e){e.exports={"copy-format":"복사 형식"}},1678:function(e){e.exports={"copy-format":"Формат хуулах"}},58067:function(e){e.exports={"copy-format":"opmaak kopi\xebren"}},35109:function(e){e.exports={"copy-format":"format kopii"}},22380:function(e){e.exports={"copy-format":"Copiar formato"}},12872:function(e){e.exports={"copy-format":"Копировать формат"}},31371:function(e){e.exports={"copy-format":"Kopyalama Bi\xe7imi"}},41599:function(e){e.exports={"copy-format":"复制格式"}},15223:function(e){e.exports={"copy-format":"複製格式"}},63974:function(e,t,i){"use strict";var n=i(25045),o=i(27795),r=i(28077),s=i(65946),a=i(4040),l=i(91206);class u extends l.Plugin{afterInit(e){e.e.on("afterCommand.delete",e=>{"delete"===e&&this.__afterDeleteCommand()}),e.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(e){e.e.off("afterCommand.delete")}__afterDeleteCommand(){let e=this.j,t=e.s.current();if(t&&o.Dom.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!(0,a.trim)(e.editor.textContent||"")&&!e.editor.querySelector("img,table,jodit,iframe,hr")&&(!t||!o.Dom.closest(t,"table",e.editor))){e.editor.innerHTML="";let t=e.s.setCursorIn(e.editor);e.s.removeNode(t)}}__onDeleteCommand(){let{jodit:e}=this;if(e.s.isCollapsed())return;e.s.expandSelection();let t=e.s.range;t.deleteContents();let i=e.createInside.fake();t.insertNode(i);let n=o.Dom.findSibling(i,!0),r=o.Dom.findSibling(i,!1);return this.__moveContentInLeftSibling(i,n,r),t.setStartBefore(i),t.collapse(!0),this.__moveCursorInEditableSibling(e,n,i,t),this.__addBrInEmptyBlock(i,r,t),o.Dom.safeRemove(i),e.s.selectRange(t),!1}__moveContentInLeftSibling(e,t,i){t=this.__defineRightLeftBox(t),!o.Dom.isList(i)&&!o.Dom.isTag(i,"table")&&o.Dom.isBlock(i)&&o.Dom.isBlock(t)&&(o.Dom.append(t,e),o.Dom.moveContent(i,t),o.Dom.safeRemove(i)),o.Dom.isList(i)&&o.Dom.isLeaf(i.firstElementChild)&&o.Dom.isEmpty(i.firstElementChild)&&o.Dom.safeRemove(i.firstElementChild)}__defineRightLeftBox(e){if(!o.Dom.isList(e))return e;let t=e.lastElementChild;return o.Dom.isLeaf(t)||(t=this.j.createInside.element("li"),o.Dom.append(e,t)),t}__addBrInEmptyBlock(e,t,i){let n=this.j;if(e.isConnected&&o.Dom.isBlock(e.parentNode)&&!e.nextSibling&&!e.previousSibling){let t=n.createInside.element("br");o.Dom.after(e,t),i.setStartBefore(t),i.collapse(!0)}if(o.Dom.isTag(t,"table")){let e=(0,s.$$)("td,th",t).shift();o.Dom.isCell(e)&&o.Dom.isEmpty(e)&&o.Dom.append(e,n.createInside.element("br"))}}__moveCursorInEditableSibling(e,t,i,n){if(!t||!o.Dom.isText(t)){var r;let t=null!=(r=o.Dom.closest(i,o.Dom.isBlock,e.editor))?r:e.editor,s=o.Dom.prev(i,o.Dom.isText,t);s&&(n.setStartAfter(s),n.collapse(!0),o.Dom.safeRemove(i))}}}(0,n._)(u,"requires",["backspace"]),r.pluginSystem.add("deleteCommand",u)},65701:function(e,t,i){"use strict";i(5266).Config.prototype.draggableTags=["img","jodit-media","jodit"]},43102:function(e,t,i){"use strict";var n,o=i(25045),r=i(31635),s=i(84839),a=i(27795),l=i(28077),u=i(65946),c=i(91206);i(65701);var d=((n=d||{})[n.IDLE=0]="IDLE",n[n.WAIT_DRAGGING=1]="WAIT_DRAGGING",n[n.DRAGGING=2]="DRAGGING",n);class h extends c.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,u.splitArray)(this.j.o.draggableTags).filter(Boolean).map(e=>e.toLowerCase()):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onDragStart(e){if("dragstart"===e.type&&this.draggable)return!1;if(this.state>0)return;let t=e.target;if(!this.dragList.length||!t)return;let i=e=>!!(e&&this.dragList.includes(e.nodeName.toLowerCase())),n=a.Dom.furthest(t,i,this.j.editor)||(i(t)?t:null);n&&(a.Dom.isTag(n.parentElement,"a")&&n.parentElement.firstChild===n&&n.parentElement.lastChild===n&&(n=n.parentElement),this.startX=e.clientX,this.startY=e.clientY,this.isCopyMode=(0,u.ctrlKey)(e),this.draggable=n.cloneNode(!0),(0,u.dataBind)(this.draggable,"target",n),this.state=1,this.addDragListeners())}onDrag(e){if(!this.draggable||0===this.state)return;let t=e.clientX,i=e.clientY;if(!(1===this.state&&Math.sqrt(Math.pow(t-this.startX,2)+Math.pow(i-this.startY,2))<this.diffStep)){if(1===this.state&&(this.j.lock("drag-and-drop-element"),this.state=2),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){var n,o;let t=(0,u.dataBind)(this.draggable,"target");(0,u.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:e.clientX,top:e.clientY,width:null!=(n=null==t?void 0:t.offsetWidth)?n:100,height:null!=(o=null==t?void 0:t.offsetHeight)?o:100}),(0,l.getContainer)(this.j,h).appendChild(this.draggable)}(0,u.css)(this.draggable,{left:e.clientX,top:e.clientY}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=0,this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<2)return void this.onDragEnd();let e=(0,u.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));let{parentElement:t}=e;this.j.s.insertNode(e,!0,!1),t&&a.Dom.isEmpty(t)&&!a.Dom.isCell(t)&&a.Dom.safeRemove(t),a.Dom.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart),this.removeDragListeners()}constructor(...e){super(...e),(0,o._)(this,"dragList",[]),(0,o._)(this,"draggable",null),(0,o._)(this,"isCopyMode",!1),(0,o._)(this,"diffStep",10),(0,o._)(this,"startX",0),(0,o._)(this,"startY",0),(0,o._)(this,"state",0)}}(0,r.__decorate)([s.autobind],h.prototype,"onDragStart",null),(0,r.__decorate)([(0,s.throttle)(e=>e.defaultTimeout/10)],h.prototype,"onDrag",null),(0,r.__decorate)([s.autobind],h.prototype,"onDragEnd",null),(0,r.__decorate)([s.autobind],h.prototype,"onDrop",null),l.pluginSystem.add("dragAndDropElement",h)},64222:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(91206),d=i(63425);class h extends c.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(e){var t;let i=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=a.Dom.isOrContains(this.j.editor,i,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,u.ctrlKey)(e),this.isFragmentFromEditor){let e=this.j.s.sel,t=e&&e.rangeCount?e.getRangeAt(0):null;t&&(this.bufferRange=t.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,t=i,a.Dom.isElement(t)&&t.classList.contains(d.FileBrowserFiles.prototype.getFullElName("item"))&&(i=i.querySelector("img")),a.Dom.isTag(i,"img")&&(this.draggable=i.cloneNode(!0),(0,u.dataBind)(this.draggable,"target",i)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())}onDragEnd(){this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;let t=this.j.s.sel,i=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null),n=this.__getWorkFragment(i,e);t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),n&&this.__insertFragment.call(this,n,i),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(e,t){let i=null;if(!this.draggable&&e)i=this.isCopyMode?e.cloneContents():e.extractContents();else if(this.draggable)if(this.isCopyMode){let[e,t]="1"===(0,u.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];(i=this.j.createInside.element(e)).setAttribute(t,(0,u.attr)(this.draggable,"data-src")||(0,u.attr)(this.draggable,"src")||""),"a"===e&&(i.textContent=(0,u.attr)(i,t)||"")}else i=(0,u.dataBind)(this.draggable,"target");else this.getText(t)&&(i=this.j.createInside.fromHTML(this.getText(t)));return i}__insertFragment(e,t){this.j.s.insertNode(e,!1,!1),t&&e.firstChild&&e.lastChild&&(t.setStartBefore(e.firstChild),t.setEndAfter(e.lastChild),this.j.s.selectRange(t),this.j.e.fire("synchro")),a.Dom.isTag(e,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",e)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(...e){super(...e),(0,n._)(this,"isFragmentFromEditor",!1),(0,n._)(this,"isCopyMode",!1),(0,n._)(this,"startDragPoint",{x:0,y:0}),(0,n._)(this,"draggable",null),(0,n._)(this,"bufferRange",null),(0,n._)(this,"getText",e=>{let t=(0,u.getDataTransfer)(e);return t?t.getData(r.TEXT_HTML)||t.getData(r.TEXT_PLAIN):null})}}(0,o.__decorate)([s.autobind],h.prototype,"onDragStart",null),(0,o.__decorate)([(0,s.throttle)(e=>e.defaultTimeout/10)],h.prototype,"onDrag",null),(0,o.__decorate)([s.autobind],h.prototype,"onDragEnd",null),(0,o.__decorate)([s.autobind],h.prototype,"onDrop",null),l.pluginSystem.add("dragAndDrop",h)},33915:function(e,t,i){"use strict";i.r(t),i.d(t,{removeExtraBr:function(){return n.removeExtraBr}});var n=i(14841)},14841:function(e,t,i){"use strict";i.d(t,{removeExtraBr:function(){return r}});var n=i(23211);let o=new Set(["table","pre","blockquote","code"]);function r(e,t){if(!e.o.dtd.removeExtraBr||n.Dom.isTag(t,"br"))return;let i=n.Dom.furthest(t,n.Dom.isBlock,e.editor);if(i&&!n.Dom.isTag(i,o)){let i=n.Dom.isTag(t,"br")?t:n.Dom.findNotEmptySibling(t,!1);if(!n.Dom.isTag(i,"br"))return;e.s.setCursorBefore(i),n.Dom.safeRemove(i)}}},34693:function(e,t,i){"use strict";i.d(t,{checkBlockNesting:function(){return o}});var n=i(23211);function o(e,t){if(n.Dom.isFragment(t)&&(t=t.firstChild),e.o.dtd.checkBlockNesting&&n.Dom.isBlock(t)){let t=n.Dom.furthest(e.s.current(),n.Dom.isBlock,e.editor);t&&!e.o.dtd.blockLimits[t.tagName.toLowerCase()]&&(e.s.setCursorAfter(t),n.Dom.isEmpty(t)&&n.Dom.safeRemove(t))}}},14282:function(e,t,i){"use strict";i.r(t),i.d(t,{checkBlockNesting:function(){return n.checkBlockNesting}});var n=i(34693)},96722:function(e,t,i){"use strict";i(5266).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}}},56894:function(e,t,i){"use strict";var n=i(31635),o=i(68616),r=i(28077),s=i(91206);i(96722);var a=i(33915),l=i(14282);class u extends s.Plugin{afterInit(e){}beforeDestruct(e){}__onBeforeInsertNode(e){Object.keys(l).forEach(t=>{l[t](this.j,e)})}__onAfterInsertNode(e){Object.keys(a).forEach(t=>{a[t](this.j,e)})}}(0,n.__decorate)([(0,o.watch)(":beforeInsertNode")],u.prototype,"__onBeforeInsertNode",null),(0,n.__decorate)([(0,o.watch)(":afterInsertNode")],u.prototype,"__onAfterInsertNode",null),r.pluginSystem.add("dtd",u)},3678:function(e,t,i){"use strict";var n=i(31635),o=i(81937),r=i(84839),s=i(23211),a=i(28077),l=i(22289),u=i(18855),c=i(10918);class d extends u.Plugin{afterInit(e){let t=e.o.enter.toLowerCase(),i=t===o.BR.toLowerCase();e.o.enterBlock||(e.o.enterBlock=i?o.PARAGRAPH:t),e.registerCommand("enter",(e,t,i={})=>this.onEnter(i))}onEnterKeyDown(e){if(e.key===o.KEY_ENTER){let t=this.j,i=t.e.fire("beforeEnter",e);return void 0!==i?i:(t.s.isCollapsed()||t.execCommand("Delete"),t.s.focus(),this.onEnter(e),t.e.fire("afterEnter",e),t.synchronizeValues(),!1)}}onEnter(e){let{jodit:t}=this,i=t.createInside.fake();try{s.Dom.safeInsertNode(t.s.range,i),(0,c.moveCursorOutFromSpecialTags)(t,i,["a"]);let n=(0,c.getBlockWrapper)(i,t),o=s.Dom.isLeaf(n);if((!o||(null==e?void 0:e.shiftKey))&&(0,c.checkBR)(i,t,null==e?void 0:e.shiftKey))return!1;if(n||(0,c.hasPreviousBlock)(i,t)||(n=(0,c.wrapText)(i,t)),!n)return(0,c.insertParagraph)(i,t,o?"li":t.o.enter),!1;if(!(0,c.checkUnsplittableBox)(i,t,n))return!1;if(o&&this.__isEmptyListLeaf(n))return(0,c.processEmptyLILeaf)(i,t,n),!1;(0,c.splitFragment)(i,t,n)}finally{i.isConnected&&t.s.setCursorBefore(i),s.Dom.safeRemove(i)}}__isEmptyListLeaf(e){let t=this.j.e.fire("enterIsEmptyListLeaf",e);return(0,l.isBoolean)(t)?t:s.Dom.isEmpty(e)}beforeDestruct(e){e.e.off("keydown.enter")}}(0,n.__decorate)([(0,r.watch)(":keydown.enter")],d.prototype,"onEnterKeyDown",null),a.pluginSystem.add("enter",d)},34287:function(e,t,i){"use strict";i.d(t,{checkBR:function(){return s}});var n=i(81937),o=i(23211),r=i(60898);function s(e,t,i){let s=!!o.Dom.closest(e,["pre","blockquote"],t.editor),l=!s&&o.Dom.closest(e,["td","th"],t.editor);if(t.o.enter.toLowerCase()===n.BR.toLowerCase()||l||i&&!s||!i&&s){var u;let i;if(s&&(i=a(a(u=e)))&&(o.Dom.safeRemove(a(u)),o.Dom.safeRemove(i),1))return!1;let n=t.createInside.element("br");if(o.Dom.before(e,n),!o.Dom.findNotEmptySibling(n,!1)){let t=n.cloneNode();o.Dom.after(n,t),o.Dom.before(t,e)}return(0,r.scrollIntoViewIfNeeded)(n,t.editor,t.ed),!0}return!1}function a(e){if(!e)return!1;let t=o.Dom.findSibling(e,!0);return!!t&&!!o.Dom.isTag(t,"br")&&t}},8524:function(e,t,i){"use strict";i.d(t,{checkUnsplittableBox:function(){return o}});var n=i(23211);function o(e,t,i){return!!n.Dom.canSplitBlock(i)||(n.Dom.before(e,t.createInside.element("br")),!1)}},83376:function(e,t,i){"use strict";i.d(t,{getBlockWrapper:function(){return function e(t,i,r=n.IS_BLOCK){let s=t,a=i.editor;do{if(!s||s===a)break;if(r.test(s.nodeName)){if(o.Dom.isLeaf(s))return s;return e(s.parentNode,i,/^li$/i)||s}s=s.parentNode}while(s&&s!==a);return null}}});var n=i(81937),o=i(23211)},66862:function(e,t,i){"use strict";i.d(t,{hasPreviousBlock:function(){return o}});var n=i(23211);function o(e,t){return!!n.Dom.prev(e,e=>n.Dom.isBlock(e)||n.Dom.isImage(e),t.editor)}},10918:function(e,t,i){"use strict";i.d(t,{checkBR:function(){return n.checkBR},checkUnsplittableBox:function(){return o.checkUnsplittableBox},getBlockWrapper:function(){return r.getBlockWrapper},hasPreviousBlock:function(){return s.hasPreviousBlock},insertParagraph:function(){return a.insertParagraph},moveCursorOutFromSpecialTags:function(){return l.moveCursorOutFromSpecialTags},processEmptyLILeaf:function(){return u.processEmptyLILeaf},splitFragment:function(){return c.splitFragment},wrapText:function(){return d.wrapText}});var n=i(34287),o=i(8524),r=i(83376),s=i(66862),a=i(65710),l=i(47919),u=i(34672),c=i(46303),d=i(52938)},65710:function(e,t,i){"use strict";i.d(t,{insertParagraph:function(){return r}});var n=i(23211),o=i(60898);function r(e,t,i,r){let s="br"===i.toLowerCase(),{createInside:a}=t,l=a.element(i),u=a.element("br");return s||l.appendChild(u),r&&r.cssText&&l.setAttribute("style",r.cssText),n.Dom.after(e,l),n.Dom.before(s?l:u,e),(0,o.scrollIntoViewIfNeeded)(l,t.editor,t.ed),l}},47919:function(e,t,i){"use strict";i.d(t,{moveCursorOutFromSpecialTags:function(){return o}});var n=i(23211);function o(e,t,i){let{s:o}=e,r=n.Dom.closest(t,i,e.editor);r&&(o.cursorOnTheRight(r,t)?n.Dom.after(r,t):o.cursorOnTheLeft(r,t)&&n.Dom.before(r,t))}},34672:function(e,t,i){"use strict";i.d(t,{processEmptyLILeaf:function(){return s}});var n=i(23211),o=i(28723),r=i(65710);function s(e,t,i){let s=n.Dom.closest(i,["ol","ul"],t.editor);if(!s)return;let a=s.parentElement,l=n.Dom.isLeaf(a),u=l?a:s,c=t.s.createRange();c.setStartAfter(i),c.setEndAfter(s);let d=c.extractContents();n.Dom.after(u,e),n.Dom.safeRemove(i),(0,o.$$)("li",s).length||n.Dom.safeRemove(s);let h=(0,r.insertParagraph)(e,t,l?"li":t.o.enter);d.querySelector("li")&&(l?h.appendChild(d):n.Dom.after(h,d))}},46303:function(e,t,i){"use strict";i.d(t,{splitFragment:function(){return s}});var n=i(23211),o=i(60898),r=i(65710);function s(e,t,i){let s=t.s,{enter:a}=t.o,l=a.toLowerCase(),u=n.Dom.isLeaf(i),c=i.tagName.toLowerCase()===l||u,d=s.cursorOnTheRight(i,e),h=s.cursorOnTheLeft(i,e);if(!c&&(d||h)){d?n.Dom.after(i,e):n.Dom.before(i,e),(0,r.insertParagraph)(e,t,l),h&&!d&&n.Dom.prepend(i,e);return}let p=s.splitSelection(i,e);(0,o.scrollIntoViewIfNeeded)(p,t.editor,t.ed)}},52938:function(e,t,i){"use strict";i.d(t,{wrapText:function(){return o}});var n=i(23211);function o(e,t){let i=e;n.Dom.up(i,e=>{e&&e.hasChildNodes()&&e!==t.editor&&(i=e)},t.editor);let o=n.Dom.wrapInline(i,t.o.enter,t);if(n.Dom.isEmpty(o)){let i=t.createInside.element("br");o.appendChild(i),n.Dom.before(i,e)}return o}},49764:function(e,t,i){"use strict";var n=i(23211),o=i(28077),r=i(5266),s=i(15753);r.Config.prototype.controls.file={popup:(e,t,i)=>{let o=(t,i="")=>{e.s.insertNode(e.createInside.fromHTML(`<a href="${t}" title="${i}">${i||t}</a>`))},r=null;return t&&(n.Dom.isTag(t,"a")||n.Dom.closest(t,"a",e.editor))&&(r=n.Dom.isTag(t,"a")?t:n.Dom.closest(t,"a",e.editor)),(0,s.FileSelectorWidget)(e,{filebrowser:e=>{e.files&&e.files.forEach(t=>o(e.baseurl+t)),i()},upload:!0,url:(e,t)=>{r?(r.setAttribute("href",e),r.setAttribute("title",t)):o(e,t),i()}},r,i,!1)},tags:["a"],tooltip:"Insert file"},o.pluginSystem.add("file",function(e){e.registerButton({name:"file",group:"media"})})},78690:function(e,t,i){"use strict";var n=i(27795),o=i(28077),r=i(5266);r.Config.prototype.autofocus=!1,r.Config.prototype.cursorAfterAutofocus="end",r.Config.prototype.saveSelectionOnBlur=!0,o.pluginSystem.add("focus",function(e){e.o.saveSelectionOnBlur&&e.e.on("blur",()=>{e.isEditorMode()&&e.s.save(!0)}).on("focus",()=>{e.s.restore()});let t=()=>{if(e.s.focus(),"end"===e.o.cursorAfterAutofocus){let t=n.Dom.last(e.editor,e=>n.Dom.isText(e));t&&e.s.setCursorIn(t,!1)}};e.e.on("afterInit",()=>{e.o.autofocus&&(e.defaultTimeout?e.async.setTimeout(t,300):t())}),e.e.on("afterInit afterAddPlace",()=>{e.e.off(e.editor,"mousedown.autofocus").on(e.editor,"mousedown.autofocus",t=>{e.isEditorMode()&&t.target&&n.Dom.isBlock(t.target)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))})})})},7433:function(e,t,i){"use strict";var n=i(27795),o=i(4040),r=i(80991),s=i(29434),a=i(5266),l=i(48842),u=i.n(l),c=i(25501),d=i.n(c);a.Config.prototype.defaultFontSizePoints="px",s.Icon.set("font",u()).set("fontsize",d()),a.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalise:(e,t)=>/pt$/i.test(e)&&"pt"===t.o.defaultFontSizePoints?e.replace(/pt$/i,""):e},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(e,t)=>t+e.o.defaultFontSizePoints,childTemplate:(e,t,i)=>`${i}${e.o.defaultFontSizePoints}`,tooltip:"Font size",value:(e,t)=>{var i;let o=e.s.current();if(!o)return;let s=n.Dom.closest(o,n.Dom.isElement,e.editor);if(!s)return;let a=(null==(i=t.control.data)?void 0:i.cssRule)||"font-size";return(0,r.css)(s,a).toString()},isChildActive:(e,t)=>{var i,n;let o=t.state.value,r=null!=(i=null==(n=t.control.data)?void 0:n.normalize)?i:e=>e;return!!(o&&t.control.args&&r(t.control.args[0].toString())===r(o.toString()))},isActive:(e,t)=>{var i,n;let o=t.state.value;if(!o)return!1;let r=null!=(i=null==(n=t.control.data)?void 0:n.normalize)?i:e=>e,s=t.control.data.cacheListSet;return s||(s=new Set(Object.keys(t.control.list).map(r)),t.control.data.cacheListSet=s),s.has(r(o.toString()))}},a.Config.prototype.controls.font={...a.Config.prototype.controls.fontsize,command:"fontname",textTemplate:(e,t)=>{let[i]=t.split(",");return(0,o.trimChars)(i,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate:(e,t,i)=>{let n=!1;try{n=-1===t.indexOf("dings")&&document.fonts.check(`16px ${t}`,i)}catch(e){}return`<span data-style="${t}" style="${n?`font-family: ${t}!important;`:""}">${i}</span>`},data:{cssRule:"font-family",normalize:e=>e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},tooltip:"Font family"}},50294:function(e,t,i){"use strict";var n=i(28077),o=i(65946);i(7433),n.pluginSystem.add("font",function(e){e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});let t=(t,i,n)=>{switch(t){case"fontsize":e.s.commitStyle({attributes:{style:{fontSize:(0,o.normalizeSize)(n,e.o.defaultFontSizePoints)}}});break;case"fontname":e.s.commitStyle({attributes:{style:{fontFamily:n}}})}return e.synchronizeValues(),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)})},96863:function(e,t,i){"use strict";var n=i(23211),o=i(62101),r=i(29434),s=i(5266),a=i(29348),l=i.n(a);r.Icon.set("paragraph",l()),s.Config.prototype.controls.paragraph={command:"formatBlock",value(e,t){var i,o;let r=t.control,s=e.s.current(),a=n.Dom.closest(s,n.Dom.isBlock,e.editor);return null!=(i=null==a?void 0:a.nodeName.toLowerCase())?i:null==(o=r.data)?void 0:o.currentValue},update(e,t){let i=t.control;if(!e.s.current())return!1;let n=t.state.value,r=i.list;return(0,o.isPlainObject)(r)&&r[n.toString()]&&e.o.textIcons&&(t.state.text=r[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:(e,t)=>{var i,n;return t.state.value===(null==(n=t.control)||null==(i=n.args)?void 0:i[0])},isActive:(e,t)=>t.state.value!==e.o.enter&&(0,o.isPlainObject)(t.control.list)&&!!t.control.list[t.state.value],childTemplate:(e,t,i)=>`<${t} style="margin:0;padding:0"><span>${e.i18n(i)}</span></${t}>`,tooltip:"Insert format block"}},53390:function(e,t,i){"use strict";var n=i(28077);i(96863),n.pluginSystem.add("formatBlock",function(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",(t,i,n)=>(e.s.commitStyle({element:n}),e.synchronizeValues(),!1))})},80538:function(e,t,i){"use strict";var n=i(81937),o=i(29434),r=i(5266),s=i(24772),a=i.n(s),l=i(66547),u=i.n(l);r.Config.prototype.fullsize=!1,r.Config.prototype.globalFullSize=!0,o.Icon.set("fullsize",a()).set("shrink",u()),r.Config.prototype.controls.fullsize={exec:e=>{e.toggleFullSize()},update(e,t){let i=e.isFullSize?"shrink":"fullsize";t.state.activated=e.isFullSize,e.o.textIcons?t.state.text=i:t.state.icon.name=i},tooltip:"Open in fullsize",mode:n.MODE_SOURCE+n.MODE_WYSIWYG}},69696:function(e,t,i){"use strict";var n=i(28077),o=i(24497),r=i(80991);i(80538);let s=new Set;n.pluginSystem.add("fullsize",function(e){e.registerButton({name:"fullsize"});let t=!1,i=0,n=0,a=!1,l=()=>{let{container:o,events:s}=e;s&&(t?(i=(0,r.css)(o,"height",!0),n=(0,r.css)(o,"width",!0),(0,r.css)(o,{height:e.ow.innerHeight,width:e.ow.innerWidth}),a=!0):a&&(0,r.css)(o,{height:i||"auto",width:n||"auto"}))},u=i=>{let{container:n,events:a}=e;if(n){if(void 0===i&&(i=!n.classList.contains("jodit_fullsize")),e.setMod("fullsize",i),e.o.fullsize=i,t=i,n.classList.toggle("jodit_fullsize",i),e.toolbar){var u;(0,o.isJoditObject)(e)&&(null==(u=e.toolbarContainer)||u.appendChild(e.toolbar.container)),(0,r.css)(e.toolbar.container,"width","auto")}if(i?s.add(n):s.delete(n),e.o.globalFullSize&&(1===s.size&&i||0===s.size&&!i)){let e=n.parentNode;for(;e&&e.nodeType!==Node.DOCUMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)e.classList.toggle("jodit_fullsize-box_true",i),e=e.parentNode;l()}a.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",l),e.e.on("afterInit afterOpen",()=>{var t;e.toggleFullSize(null==e||null==(t=e.options)?void 0:t.fullsize)}).on("toggleFullSize",u).on("beforeDestruct",()=>{t&&u(!1)}).on("beforeDestruct",()=>{e.events&&e.e.off(e.ow,"resize",l)})})},14907:function(e,t,i){"use strict";i(5266).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"]}},50982:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(28077),s=i(65946),a=i(91206);i(14907);class l extends a.Plugin{afterInit(e){(0,s.keys)(e.o.commandToHotkeys,!1).forEach(t=>{let i=e.o.commandToHotkeys[t];i&&((0,s.isArray)(i)||(0,s.isString)(i))&&e.registerHotkeyToCommand(i,t)});let t=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",e=>{if(e.key===o.KEY_ESC)return this.j.e.fire("escape",e)}).on("keydown.hotkeys",i=>{let n=this.onKeyPress(i),o={shouldStop:!0};if(!1===this.j.e.fire(n+".hotkey",i.type,o))if(o.shouldStop)return t=!0,e.e.stopPropagation("keydown"),!1;else i.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(t)return t=!1,e.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(e){e.events&&e.e.off(".hotkeys")}constructor(...e){super(...e),(0,n._)(this,"onKeyPress",e=>{let t=this.specialKeys[e.which],i=(e.key||String.fromCharCode(e.which)).toLowerCase(),n=[t||i];return["alt","ctrl","shift","meta"].forEach(i=>{e[i+"Key"]&&t!==i&&n.push(i)}),(0,s.normalizeKeyAliases)(n.join("+"))}),(0,n._)(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)},2952:function(e,t,i){"use strict";var n=i(27795),o=i(28077),r=i(29434),s=i(5266),a=i(89097),l=i.n(a);r.Icon.set("hr",l()),s.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},o.pluginSystem.add("hr",function(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",()=>{let t=e.createInside.element("hr");e.s.insertNode(t,!1,!1);let i=n.Dom.closest(t.parentElement,n.Dom.isBlock,e.editor);i&&n.Dom.isEmpty(i)&&i!==e.editor&&(n.Dom.after(i,t),n.Dom.safeRemove(i));let o=n.Dom.next(t,n.Dom.isBlock,e.editor,!1);return o||(o=e.createInside.element(e.o.enter),n.Dom.after(t,o)),e.s.setCursorIn(o),!1})})},17326:function(e,t,i){"use strict";var n=i(5266);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},81144:function(e,t,i){"use strict";var n=i(81937),o=i(28077),r=i(65946);i(17326),o.pluginSystem.add("iframe",function(e){let t=e.options;e.e.on("afterSetMode",()=>{e.isEditorMode()&&e.s.focus()}).on("generateDocumentStructure.iframe",(e,i)=>{let n=e||i.iframe.contentWindow.document;if(n.open(),n.write(t.iframeDoctype+`<html dir="${t.direction}" class="jodit" lang="${(0,r.defaultLanguage)(t.language)}">`+"<head>"+`<title>${t.iframeTitle}</title>`+(t.iframeBaseUrl?`<base href="${t.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),n.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach(e=>{let t=n.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),n.head&&n.head.appendChild(t)}),t.iframeStyle){let e=n.createElement("style");e.innerHTML=t.iframeStyle,n.head&&n.head.appendChild(e)}}).on("createEditor",()=>{if(!t.iframe)return;let i=e.c.element("iframe");i.style.display="block",i.src="about:blank",i.className="jodit-wysiwyg_iframe",i.setAttribute("allowtransparency","true"),i.setAttribute("tabindex",t.tabIndex.toString()),i.setAttribute("frameborder","0"),null!=t.iframeSandbox&&i.setAttribute("sandbox",t.iframeSandbox),e.workplace.appendChild(i),e.iframe=i;let o=e.e.fire("generateDocumentStructure.iframe",null,e);return(0,r.callPromise)(o,()=>{if(!e.iframe)return!1;let i=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;let o=t.editHTMLDocumentMode,s=()=>{(0,r.attr)(i.body,"contenteditable",e.getMode()!==n.MODE_SOURCE&&!e.getReadOnly()||null)},a=e=>{let t=/<body.*<\/body>/im,i="{%%BODY%%}",n=t.exec(e);return n&&(e=e.replace(t,i).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(i,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")),e};if(o){let t=e.element.tagName;if("TEXTAREA"!==t&&"INPUT"!==t)throw(0,r.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",()=>a(e.o.iframeDoctype+i.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:t})=>!e.isLocked&&(/<(html|body)/i.test(t)?a(i.documentElement.outerHTML)!==a(t)&&(i.open(),i.write(e.o.iframeDoctype+a(t)),i.close(),e.editor=i.body,e.e.fire("safeHTML",e.editor),s(),e.e.fire("prepareWYSIWYGEditor"),e.e.stopPropagation("beforeSetNativeEditorValue")):i.body.innerHTML=t,!0),{top:!0})}if(e.editor=i.body,e.e.on("afterSetMode afterInit afterAddPlace",s),"auto"===t.height){i.documentElement&&(i.documentElement.style.overflowY="hidden");let n=e.async.throttle((...i)=>{e.async.requestAnimationFrame(()=>{if(e.editor&&e.iframe&&"auto"===t.height){let t=e.ew.getComputedStyle(e.editor),i=parseInt(t.marginTop||"0",10)+parseInt(t.marginBottom||"0",10);(0,r.css)(e.iframe,"height",e.editor.offsetHeight+i)}})},e.defaultTimeout/2);if(e.e.on("change afterInit afterSetMode resize",n).on([e.iframe,e.ew,i.documentElement],"load",n).on(i,"readystatechange DOMContentLoaded",n),"function"==typeof ResizeObserver){let t=new ResizeObserver(n);t.observe(i.body),e.e.on("beforeDestruct",()=>{t.disconnect()})}}return i.documentElement&&e.e.on(i.documentElement,"mousedown touchend",()=>{e.s.isFocused()||(e.s.focus(),e.editor===i.body&&e.s.setCursorIn(i.body))}).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",t=>{var i;null==(i=e.events)||i.fire(e.ow,t)}),!1})})})},51034:function(e,t,i){"use strict";i(5266).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},39978:function(e,t,i){"use strict";var n=i(31635),o=i(81937),r=i(84839),s=i(28077),a=i(65946),l=i(91206);i(51034);let u="__jodit_imageprocessor_binded",c=u+"blob-id";class d extends l.Plugin{afterInit(e){}beforeDestruct(e){let t=(0,r.cached)(e,"buffer"),i=null==t?void 0:t.get(c);if(t&&i){for(let e of Object.keys(i))URL.revokeObjectURL(e);t.delete(c)}}onAfterGetValueFromEditor(e,t){if(t!==o.SOURCE_CONSUMER)return this.onBeforeSetElementValue(e)}onBeforeSetElementValue(e){let{jodit:t}=this;if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;let i=t.buffer.get(c);if(i)for(let t of Object.keys(i))for(;e.value.includes(t);)e.value=e.value.replace(t,i[t])}async afterChange(e){let{jodit:t}=this;t.editor&&(0,a.$$)("img",t.editor).forEach(e=>{(0,a.dataBind)(e,u)||((0,a.dataBind)(e,u,!0),e.complete||t.e.on(e,"load",function i(){var n;t.isInDestruct||null==(n=t.e)||n.fire("resize"),t.e.off(e,"load",i)}),e.src&&/^data:/.test(e.src)&&function(e,t){if(!e.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let i=t.src,n=function(e){let t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(t.length),o=new Uint8Array(n);for(let e=0;e<t.length;e++)o[e]=t.charCodeAt(e);return new Blob([n],{type:i})}(i);t.src=URL.createObjectURL(n),e.e.fire("internalUpdate");let{buffer:o}=e,r=o.get(c)||{};r[t.src]=i,e.buffer.set(c,r)}(t,e),t.e.on(e,"mousedown touchstart",()=>{t.s.select(e)}))})}}(0,n.__decorate)([(0,r.watch)(":afterGetValueFromEditor")],d.prototype,"onAfterGetValueFromEditor",null),(0,n.__decorate)([(0,r.watch)(":beforeSetElementValue")],d.prototype,"onBeforeSetElementValue",null),(0,n.__decorate)([(0,r.watch)([":change",":afterInit",":changePlace"]),(0,r.debounce)()],d.prototype,"afterChange",null),s.pluginSystem.add("imageProcessor",d)},34689:function(e,t,i){"use strict";i(5266).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}},90886:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(23211),a=i(28077),l=i(65946),u=i(18855),c=i(59400);i(34689);var d=i(27137),h=i(28771),p=i(670),m=i(47744),f=i(71552);class g extends u.Plugin{get form(){return new d.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,h.openImageEditorDialog)(this.j,this.state),openImagePopup:e=>(0,p.openImagePopup)(this.j,this.dialog,this.state,e)})}get dialog(){let{j:e}=this,t=e.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,f.applyValuesToImage)(e,this.state,this.state.sourceImage),e.synchronizeValues(),t.close()}),i.remove.onAction(()=>{e.s.removeNode(this.state.sourceImage),t.close()}),i.cancel.onAction(()=>{t.close()}),t.setHeader(e.i18n("Image properties")),t.setContent(this.form),t.setFooter([[i.cancel,i.remove],i.check]),e.e.on(t,"afterClose",()=>{this.state.image.parentNode&&e.o.image.selectImageAfterClose&&e.s.select(this.state.sourceImage)}),t.setSize(e.o.image.dialogWidth),(0,l.markOwner)(e,t.container),t}get __buttons(){let{j:e}=this;return{check:(0,c.Button)(e,"ok","Apply","primary"),remove:(0,c.Button)(e,"bin","Delete"),cancel:(0,c.Button)(e,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((e,t)=>(0,m.readValuesFromImage)(this.j,this.state).then(e,t)).catch(e=>{(0,l.isAbortError)(e)||this.dialog.message.error(e.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(e=>e.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(e=>e.state.disabled=!1)}afterInit(e){let t=this;e.e.on("afterConstructor changePlace",()=>{e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",i=>{let n=i.target;if(s.Dom.isTag(n,"img"))if(e.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",n))return;t.state.sourceImage=n,t.state.image=n.cloneNode(!0),e.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),t.open())}else i.stopImmediatePropagation(),e.s.select(n)})}).on("openImageProperties.imageproperties",e=>{t.state.sourceImage=e,this.state.image=e.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:e,values:t}=this.state;if(e.src)try{this.__lock();try{await e.decode()}catch(e){}if(this.state.sizeIsLocked&&(0,l.isNumeric)(t.imageWidth)){let e=parseFloat(t.imageWidth.toString());t.imageHeight=Math.round(e/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",e)}catch(e){this.j.alert(e.message)}finally{this.__unlock()}}beforeDestruct(e){var t,i,n;Object.values(null!=(t=(0,r.cached)(this,"__buttons"))?t:{}).forEach(e=>e.destruct()),null==(i=(0,r.cached)(this,"dialog"))||i.destruct(),null==(n=(0,r.cached)(this,"form"))||n.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}constructor(...e){super(...e),(0,n._)(this,"state",{image:new Image,sourceImage:new Image,get ratio(){const{naturalWidth:e,naturalHeight:t}=this.image;return e/t||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}}),(0,n._)(this,"activeTabState",{activeTab:"Image"})}}(0,o.__decorate)([r.cache],g.prototype,"form",null),(0,o.__decorate)([r.cache],g.prototype,"dialog",null),(0,o.__decorate)([r.cache],g.prototype,"__buttons",null),(0,o.__decorate)([(0,r.watch)("state.image")],g.prototype,"onStateValuesImageSrcChange",null),a.pluginSystem.add("imageProperties",g)},26633:function(e,t,i){"use strict";i.d(t,{readAlign:function(){return o}});var n=i(80991);function o(e,t){e.style.cssFloat&&-1!==["left","right"].indexOf(e.style.cssFloat.toLowerCase())?t.align=(0,n.css)(e,"float"):"block"===(0,n.css)(e,"display")&&"auto"===e.style.marginLeft&&"auto"===e.style.marginRight?t.align="center":t.align=""}},47744:function(e,t,i){"use strict";i.d(t,{readValuesFromImage:function(){return l}});var n=i(7909),o=i(26633),r=i(79310),s=i(18380),a=i(57339);async function l(e,t){let{sourceImage:i,values:l}=t;return(0,o.readAlign)(i,l),l.borderRadius=parseInt(i.style.borderRadius||"0",10)||0,l.id=(0,n.attr)(i,"id")||"",l.imageTitle=(0,n.attr)(i,"title")||"",l.imageAlt=(0,n.attr)(i,"alt")||"",l.style=(0,n.attr)(i,"style")||"",l.classes=((0,n.attr)(i,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,s.readMargins)(i,l,t),(0,r.readLink)(t,e,l),l.imageSrc=(0,n.attr)(i,"src")||"",(0,a.readSizes)(i,l,t)}},79310:function(e,t,i){"use strict";i.d(t,{readLink:function(){return r}});var n=i(23211),o=i(7909);function r(e,t,i){let r=n.Dom.closest(e.sourceImage,"a",t.editor);r?(i.imageLink=(0,o.attr)(r,"href")||"",i.imageLinkOpenInNewTab="_blank"===(0,o.attr)(r,"target")):(i.imageLink="",i.imageLinkOpenInNewTab=!1)}},18380:function(e,t,i){"use strict";i.d(t,{readMargins:function(){return o}});var n=i(74264);function o(e,t,i){let o=!0,r=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(i=>{let s=e.style.getPropertyValue((0,n.kebabCase)(i));if(!s){r=!0,t[i]=0;return}/^[0-9]+(px)?$/.test(s)&&(s=parseInt(s,10)),t[i]=s,(r&&t[i]||o&&"marginTop"!==i&&t[i]!==t.marginTop)&&(o=!1)}),i.marginIsLocked=o}},57339:function(e,t,i){"use strict";i.d(t,{readSizes:function(){return a}});var n=i(70222),o=i(7909),r=i(80991),s=i(10808);async function a(e,t,i){try{await e.decode()}catch(e){}let a=(0,r.css)(e,"width",!0)||(0,o.attr)(e,"width")||!1,l=(0,r.css)(e,"height",!0)||(0,o.attr)(e,"height")||!1;t.imageWidth=!1!==a?(0,s.normalSizeFromString)(a):e.offsetWidth||e.naturalWidth,(0,n.isNumeric)(t.imageWidth)?t.imageHeight=!1!==l?(0,s.normalSizeFromString)(l):e.offsetHeight||e.naturalHeight:t.imageHeight=l||"";let{imageWidth:u,imageHeight:c}=t,d=parseFloat(u.toString());if(!(0,n.isNumeric)(u)||!(0,n.isNumeric)(c)){i.sizeIsLocked=!1;return}if(!1===l){t.imageHeight=Math.round(d/i.ratio),i.sizeIsLocked=!0;return}i.sizeIsLocked=1>Math.abs(d-parseFloat(c.toString())*i.ratio)}},27137:function(e,t,i){"use strict";i.d(t,{UIImagePropertiesForm:function(){return p}});var n=i(25045),o=i(31635),r=i(84839),s=i(91672),a=i(65946),l=i(63468),u=i(29434),c=i(15753),d=i(29596),h=i(17306);class p extends l.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(e){let t=super.getElm(e);if(t)return t;for(let t of this.elements){let i=t.getElm(e);if(i)return i}return null}render(){return`<form>
128
+ </div>`}setPrompt(e){if(e){let{jodit:t}=this,i=t.o.aiAssistant[e],{aiCommonPrefixPrompt:n,aiCommonSuffixPrompt:o}=t.o.aiAssistant;this.promptInput.value=[n,(0,l.isString)(i)?i:"",o].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(e){this.setMod("loading",!1),a.Dom.detach(this.__results),this.__aiResult=e,this.__results.appendChild(this.jodit.c.fromHTML(e)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(e){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=e,a.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let t=this.getFullElName("","hide","true");this.__results.classList.add(t),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(e){this.__submitButton.state.disabled=e,this.__tryAgainButton.state.disabled=e}__toggleInsertButton(e){this.__insertButton.state.disabled=e,this.__insertAfterButton.state.disabled=e}constructor(e,{onInsert:t,onInsertAfter:i}){super(e),(0,n._)(this,"__body",void 0),(0,n._)(this,"__buttons",void 0),(0,n._)(this,"__results",void 0),(0,n._)(this,"__spinner",void 0),(0,n._)(this,"__error",void 0),(0,n._)(this,"promptInput",void 0),(0,n._)(this,"__insertAfterButton",void 0),(0,n._)(this,"__submitButton",void 0),(0,n._)(this,"__tryAgainButton",void 0),(0,n._)(this,"__insertButton",void 0),(0,n._)(this,"__formAiAssistant",void 0),(0,n._)(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,u.Button)(e,"","Insert","primary").onAction(()=>t(this.__aiResult)),this.__insertAfterButton=(0,u.Button)(e,"","Insert After","initial").onAction(()=>i(this.__aiResult));const o=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,u.Button)(e,"ai-assistant","").onAction(o),this.__tryAgainButton=(0,u.Button)(e,"update","","initial").onAction(o),this.promptInput=new u.UITextArea(e,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});const r=new u.UIBlock(e,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new u.UIForm(e,[new u.UIBlock(e,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(t=>{this.__error.textContent="",this.setMod("loading",!0),e.e.fire("invokeAiAssistant",t.prompt);let i=this.getFullElName("","hide","true");this.__results.classList.remove(i),this.__buttons.classList.remove(i),a.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()}}(0,o.__decorate)([(0,s.watch)(":ai-assistant-response")],d.prototype,"onAiAssistentResponse",null),(0,o.__decorate)([(0,s.watch)(":ai-assistant-error")],d.prototype,"onAiAssistentError",null),(0,o.__decorate)([(0,s.watch)("promptInput:change")],d.prototype,"onChangePromptValue",null),d=(0,o.__decorate)([r.component],d)},28286:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(27795),s=i(28077),a=i(91565),l=i(91206),u=i(42259);i(33831);var c=i(89827),d=i(17523);class h extends l.Plugin{afterInit(e){e.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:e.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:e.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:e.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:e.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:e.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:e.o.delete.hotkeys.backspaceSentence})}beforeDestruct(e){e.e.off("afterCommand.delete")}onDelete(e,t="char"){let i=this.j,n=i.selection;if(n.isFocused()||n.focus(),(0,c.checkNotCollapsed)(i))return!1;let s=n.range,l=i.createInside.text(o.INVISIBLE_SPACE);try{if(r.Dom.safeInsertNode(s,l),!r.Dom.isOrContains(i.editor,l))return;if(i.e.fire("backSpaceBeforeCases",e,l)||((0,u.moveNodeInsideStart)(i,l,e),d.cases.some(n=>{if((0,a.isFunction)(n)&&n(i,l,e,t))return o.IS_PROD,!0})))return!1}catch(e){throw o.IS_PROD,e}finally{i.e.fire("backSpaceAfterDelete",e,l),this.safeRemoveEmptyNode(l)}return!1}safeRemoveEmptyNode(e){let{range:t}=this.j.s;if(t.startContainer===e){if(e.previousSibling)if(r.Dom.isText(e.previousSibling)){var i,n;t.setStart(e.previousSibling,null!=(i=null==(n=e.previousSibling.nodeValue)?void 0:n.length)?i:0)}else t.setStartAfter(e.previousSibling);else e.nextSibling&&(r.Dom.isText(e.nextSibling)?t.setStart(e.nextSibling,0):t.setStartBefore(e.nextSibling));t.collapse(!0),this.j.s.selectRange(t)}r.Dom.safeRemove(e)}}(0,n._)(h,"requires",["hotkeys"]),s.pluginSystem.add("backspace",h)},26106:function(e,t,i){"use strict";i.d(t,{checkJoinNeighbors:function(){return s}});var n=i(81937),o=i(23211),r=i(15200);function s(e,t,i){let r=t,s=r;for(;r&&!o.Dom.findNotEmptySibling(r,i)&&r.parentElement!==e.editor;)s=r=r.parentElement;if(o.Dom.isElement(s)&&o.Dom.isContentEditable(s,e.editor)){var l,u;let r,c,d,h=o.Dom.findNotEmptySibling(s,i);if(h&&(l=s,u=h,r=o.Dom.isTag(u,n.LIST_TAGS),c=o.Dom.isTag(l,n.LIST_TAGS),d=(e,t)=>t?e.firstElementChild:e.lastElementChild,(c?(u=e.createInside.element(e.o.enterBlock),o.Dom.before(l,u),a(e,d(l,i),u,i)):!!u&&!!r&&!c&&a(e,l,d(u,!i),i))||a(e,s,h,i)))return e.s.setCursorBefore(t),!0}return!1}function a(e,t,i,n){if(t&&o.Dom.isElement(i)){o.Dom.moveContent(t,i,!n,(0,r.getMoveFilter)(e));let s=t;for(;s&&s!==e.editor&&o.Dom.isEmpty(s);){let e=s.parentElement;o.Dom.safeRemove(s),s=e}return!0}return!1}},80951:function(e,t,i){"use strict";i.d(t,{checkJoinTwoLists:function(){return s}});var n=i(23211),o=i(71125),r=i(15200);function s(e,t,i){let s=n.Dom.findSibling(t,i),a=n.Dom.findSibling(t,!i);if(!n.Dom.closest(t,n.Dom.isElement,e.editor)&&n.Dom.isList(s)&&n.Dom.isList(a)&&n.Dom.isTag(s.lastElementChild,"li")&&n.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:u}=e.s,c=s.lastElementChild,d=a.firstElementChild;return(0,o.call)(i?n.Dom.prepend:n.Dom.append,d,t),n.Dom.moveContent(a,s,!i,(0,r.getMoveFilter)(e)),n.Dom.safeRemove(a),(0,o.call)(i?n.Dom.append:n.Dom.prepend,c,t),(0,o.call)(i?l:u,t),!0}return!1}},89827:function(e,t,i){"use strict";function n(e){return!e.s.isCollapsed()&&(e.execCommand("Delete"),!0)}i.d(t,{checkNotCollapsed:function(){return n}})},58881:function(e,t,i){"use strict";i.d(t,{checkRemoveChar:function(){return function e(t,i,s,l){var u,c,d,h;let p,m=s?-1:1,f=o.Dom.sibling(i,!s),g=o.Dom.sibling(i,s),v=null,_=!1;for(g||(g=a(i,s,t.editor));g&&(o.Dom.isText(g)||o.Dom.isInlineBlock(g));){for(;o.Dom.isInlineBlock(g);)g=s?null==g?void 0:g.lastChild:null==g?void 0:g.firstChild;if(!g)break;if((null==(u=g.nodeValue)?void 0:u.length)&&(p=function(e,t,i,s){let a=(0,r.toArray)(e.nodeValue),l=a.length,u=t?l-1:0;if(a[u]===n.INVISIBLE_SPACE)for(;a[u]===n.INVISIBLE_SPACE;)u+=i;let c=a[u];if(a[u+i]===n.INVISIBLE_SPACE){for(u+=i;a[u]===n.INVISIBLE_SPACE;)u+=i;u+=t?1:-1}return a=t&&u<0?[]:a.slice(t?0:u+1,t?u:l),function(e,t,i){var s;if(!e||!o.Dom.isText(e)||(!t?/ $/:/^ /).test(null!=(s=e.nodeValue)?s:"")||!(0,r.trimInv)(e.nodeValue||"").length)for(let e=t?i.length-1:0;t?e>=0:e<i.length;e+=t?-1:1)if(" "===i[e])i[e]=n.NBSP_SPACE;else break}(s,t,a),e.nodeValue=a.join(""),c}(g,s,m,f),!g.nodeValue.length&&o.Dom.isInlineBlock(g.parentNode)&&(g.nodeValue=n.INVISIBLE_SPACE)),(null==(c=g.nodeValue)?void 0:c.length)||(v=g),!(0,r.isVoid)(p)&&p!==n.INVISIBLE_SPACE){d=g,h=p,(0,r.call)(s?o.Dom.after:o.Dom.before,d,i),("sentence"===l||"word"===l&&" "!==h&&h!==n.NBSP_SPACE)&&e(t,i,s,l),_=!0;break}let b=a(g,s,t.editor);v&&(o.Dom.safeRemove(v),v=null),g=b}return v&&(o.Dom.safeRemove(v),v=null),_&&(function(e){let t=e.parentElement;for(;t&&o.Dom.isInlineBlock(t)&&o.Dom.isTag(t,"a");){let i=t.parentElement;o.Dom.isEmpty(t)&&(o.Dom.after(t,e),o.Dom.safeRemove(t)),t=i}}(i),i.parentElement!==t.editor&&o.Dom.isBlock(i.parentElement)&&o.Dom.each(i.parentElement,o.Dom.isEmptyTextNode)&&o.Dom.after(i,t.createInside.element("br")),t.s.setCursorBefore(i),o.Dom.isTag(i.previousSibling,"br")&&!o.Dom.findNotEmptySibling(i,!1)&&o.Dom.after(i,t.createInside.element("br"))),_}}});var n=i(81937),o=i(27795),r=i(65946),s=i(15200);function a(e,t,i){let n=o.Dom.sibling(e,t);return!n&&e.parentNode&&e.parentNode!==i&&(n=(0,s.findMostNestedNeighbor)(e,!t,i,!0)),n}},68709:function(e,t,i){"use strict";i.d(t,{checkRemoveContentNotEditable:function(){return s}});var n=i(27795),o=i(65946),r=i(42259);function s(e,t,i){let s=n.Dom.findSibling(t,i);return!s&&t.parentElement&&t.parentElement!==e.editor&&(s=n.Dom.findSibling(t.parentElement,i)),!(!n.Dom.isElement(s)||n.Dom.isContentEditable(s,e.editor))&&((0,o.call)(i?n.Dom.before:n.Dom.after,s,t),n.Dom.safeRemove(s),(0,r.moveNodeInsideStart)(e,t,i),(0,o.call)(i?e.s.setCursorBefore:e.s.setCursorAfter,t),!0)}},5771:function(e,t,i){"use strict";i.d(t,{checkRemoveEmptyNeighbor:function(){return o}});var n=i(23211);function o(e,t,i){let o=n.Dom.closest(t,n.Dom.isElement,e.editor);if(!o)return!1;let r=n.Dom.findNotEmptySibling(o,i);return!!(r&&n.Dom.isEmpty(r))&&(n.Dom.safeRemove(r),e.s.setCursorBefore(t),!0)}},2409:function(e,t,i){"use strict";i.d(t,{checkRemoveEmptyParent:function(){return s}});var n=i(81937),o=i(27795),r=i(80951);function s(e,t,i){let s=!1,{setCursorBefore:a,setCursorIn:l}=e.s,u=o.Dom.closest(t,o.Dom.isElement,e.editor);if(!u||!o.Dom.isEmpty(u))return!1;let c=o.Dom.findNotEmptyNeighbor(t,i,e.editor);do if(u&&o.Dom.isEmpty(u)&&!o.Dom.isCell(u)){o.Dom.after(u,t);let i=o.Dom.closest(u,e=>o.Dom.isElement(e)&&e!==u,e.editor);o.Dom.safeRemove(u),s=!0,u=i}else break;while(u);return!!(s&&(0,r.checkJoinTwoLists)(e,t,i))||(!c||o.Dom.isText(c)||o.Dom.isTag(c,n.INSEPARABLE_TAGS)?a(t):l(c,!i),s)}},93890:function(e,t,i){"use strict";i.d(t,{checkRemoveUnbreakableElement:function(){return s}});var n=i(81937),o=i(23211),r=i(2409);function s(e,t,i){let s=o.Dom.findSibling(t,i);return!!(o.Dom.isElement(s)&&(o.Dom.isTag(s,n.INSEPARABLE_TAGS)||o.Dom.isEmpty(s)))&&(o.Dom.safeRemove(s),o.Dom.isTag(s,"br")&&!o.Dom.findNotEmptySibling(t,!1)&&o.Dom.after(t,e.createInside.element("br")),e.s.setCursorBefore(t),o.Dom.isTag(s,"br")&&(0,r.checkRemoveEmptyParent)(e,t,i),!0)}},12443:function(e,t,i){"use strict";i.d(t,{checkTableCell:function(){return o}});var n=i(23211);function o(e,t){let i=t.parentElement;return!!n.Dom.isCell(i)}},10157:function(e,t,i){"use strict";i.d(t,{checkUnwrapFirstListItem:function(){return r}});var n=i(23211),o=i(93640);function r(e,t,i){var r;let s=n.Dom.closest(t,n.Dom.isElement,e.editor),{s:a}=e;if(n.Dom.isLeaf(s)&&(null==s||null==(r=s.parentElement)?void 0:r[i?"firstElementChild":"lastElementChild"])===s&&a.cursorInTheEdge(i,s)){let r=s.parentElement,l=e.createInside.element(e.o.enterBlock);return(0,o.call)(i?n.Dom.before:n.Dom.after,r,l),n.Dom.moveContent(s,l),n.Dom.safeRemove(s),n.Dom.isEmpty(r)&&n.Dom.safeRemove(r),(0,o.call)(i?a.setCursorBefore:a.setCursorAfter,t),!0}return!1}},17523:function(e,t,i){"use strict";i.d(t,{cases:function(){return h}});var n=i(26106),o=i(80951),r=i(58881),s=i(68709),a=i(5771),l=i(2409),u=i(93890),c=i(12443),d=i(10157);let h=[u.checkRemoveUnbreakableElement,s.checkRemoveContentNotEditable,r.checkRemoveChar,c.checkTableCell,l.checkRemoveEmptyParent,a.checkRemoveEmptyNeighbor,o.checkJoinTwoLists,n.checkJoinNeighbors,d.checkUnwrapFirstListItem]},33831:function(e,t,i){"use strict";i(5266).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"]}}},15200:function(e,t,i){"use strict";i.d(t,{findMostNestedNeighbor:function(){return o},getMoveFilter:function(){return r}});var n=i(27795);function o(e,t,i,r=!1){let s=e=>t?e.firstChild:e.lastChild,a=n.Dom.findNotEmptyNeighbor(e,!t,i);if(r&&n.Dom.isElement(a)&&!n.Dom.isInlineBlock(a))return null;if(a)do{if(!s(a))return a;a=s(a)}while(a);return null}function r(e){return t=>!0!==e.e.fire("backSpaceIsMovedIgnore",t)}},91678:function(e,t,i){"use strict";var n=i(28077),o=i(65946),r=i(29434),s=i(5266);i(40291);var a=i(52450),l=i.n(a),u=i(41111),c=i.n(u),d=i(49972),h=i.n(d),p=i(45062),m=i.n(p),f=i(18605),g=i.n(f),v=i(83389),_=i.n(v);n.pluginSystem.add("bold",function(e){let t=t=>{let i,n=s.Config.defaultOptions.controls[t],r={...n.css};return Object.keys(r).forEach(e=>{i||(i={}),i[e]=(0,o.isArray)(r[e])?r[e][0]:r[e]}),e.s.commitStyle({element:n.tags?n.tags[0]:void 0}),e.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(t=>{e.registerButton({name:t,group:"font-style"})}),["superscript","subscript"].forEach(t=>{e.registerButton({name:t,group:"script"})}),e.registerCommand("bold",{exec:t,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:t,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:t,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:t}).registerCommand("subscript",{exec:t}).registerCommand("superscript",{exec:t})}),r.Icon.set("bold",l()).set("italic",c()).set("strikethrough",h()).set("subscript",m()).set("superscript",g()).set("underline",_())},40291:function(e,t,i){"use strict";var n=i(5266);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"}},58910:function(e,t,i){"use strict";var n=i(25045),o=i(23211),r=i(28077),s=i(71125),a=i(91206),l=i(29434),u=i(5266),c=i(93267),d=i.n(c);u.Config.prototype.controls.classSpan={command:"applyClassName",exec:s.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive:(e,t)=>{let i=e.s.current();if(i){let n=o.Dom.closest(i,o.Dom.isElement,e.editor)||e.editor;return!!(t.control.args&&n.classList.contains(t.control.args[0].toString()))}return!1},isActive:(e,t)=>{let i=e.s.current();if(i){let n=o.Dom.closest(i,o.Dom.isElement,e.editor)||e.editor,r=!1;return t.control.list&&Object.keys(t.control.list).forEach(e=>{n.classList.contains(e)&&(r=!0)}),!!(n&&n!==e.editor&&void 0!==t.control.list&&r)}return!1},childTemplate:(e,t,i)=>`<span class="${t}">${e.i18n(i)}</span>`,tooltip:"Insert className"};class h extends a.Plugin{afterInit(e){e.registerCommand("applyClassName",(t,i,n)=>(e.s.commitStyle({attributes:{class:n}}),!1))}beforeDestruct(){}constructor(...e){super(...e),(0,n._)(this,"buttons",[{name:"classSpan",group:"script"}])}}r.pluginSystem.add("classSpan",h),l.Icon.set("class-span",d())},11018:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(23211),a=i(1080),l=i(28077),u=i(48155),c=i(18855);i(11173);var d=i(54053);class h extends c.Plugin{afterInit(e){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;let e=this.j;this.walker.setWork(e.editor),this.currentSelectionNode=e.s.current()}startWalker(){let{jodit:e}=this,t=(0,d.getHash)(this.j.o.cleanHTML.allowTags),i=(0,d.getHash)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",n=>(0,d.visitNodeWalker)(e,n,t,i,this.currentSelectionNode)).on("end",e=>{this.j.e.fire(e?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(e){if("removeformat"===e.toLowerCase())return this.j.s.isCollapsed()?(0,d.removeFormatForCollapsedSelection)(this.j):(0,d.removeFormatForSelection)(this.j),!1}onBeforeSetNativeEditorValue(e){let[t,i]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.createInside.div()];return t.innerHTML=e.value,this.onSafeHTML(t),e.value=t.innerHTML,(0,u.safeHTML)(t,{safeJavaScriptLink:!0,removeOnError:!0}),s.Dom.safeRemove(i),!1}onSafeHTML(e){let t=this.j.o.cleanHTML.sanitizer;t&&(e.innerHTML=t(e.innerHTML)),(0,u.safeHTML)(e,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}constructor(...e){super(...e),(0,n._)(this,"buttons",[{name:"eraser",group:"font-style"}]),(0,n._)(this,"currentSelectionNode",null),(0,n._)(this,"walker",new a.LazyWalker(this.j.async,{timeout:this.j.o.cleanHTML.timeout}))}}(0,o.__decorate)([(0,r.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],h.prototype,"onChangeCleanHTML",null),(0,o.__decorate)([(0,r.hook)("ready")],h.prototype,"startWalker",null),(0,o.__decorate)([(0,r.watch)(":beforeCommand")],h.prototype,"beforeCommand",null),(0,o.__decorate)([(0,r.watch)(":beforeSetNativeEditorValue")],h.prototype,"onBeforeSetNativeEditorValue",null),(0,o.__decorate)([(0,r.watch)(":safeHTML")],h.prototype,"onSafeHTML",null),l.pluginSystem.add("cleanHtml",h)},11173:function(e,t,i){"use strict";var n=i(29434),o=i(5266),r=i(71948),s=i.n(r);o.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,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},o.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},n.Icon.set("eraser",s())},5650:function(e,t,i){"use strict";i.d(t,{getHash:function(){return r}});var n=i(85932),o=i(4040);function r(e){let t=/([^[]*)\[([^\]]+)]/,i=/[\s]*,[\s]*/,r=/^(.*)[\s]*=[\s]*(.*)$/,s={};return(0,n.isString)(e)?(e.split(i).map(e=>{e=(0,o.trim)(e);let n=t.exec(e),a={};if(n){let e=n[2].split(i);n[1]&&(e.forEach(e=>{e=(0,o.trim)(e);let t=r.exec(e);t?a[t[1]]=t[2]:a[e]=!0}),s[n[1].toUpperCase()]=a)}else s[e.toUpperCase()]=!0}),s):!!e&&(Object.keys(e).forEach(t=>{s[t.toUpperCase()]=e[t]}),s)}},54053:function(e,t,i){"use strict";i.d(t,{getHash:function(){return n.getHash},removeFormatForCollapsedSelection:function(){return o.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return r.removeFormatForSelection},visitNodeWalker:function(){return s.visitNodeWalker}});var n=i(5650),o=i(37431),r=i(70195),s=i(45219)},37431:function(e,t,i){"use strict";i.d(t,{isInlineBlock:function(){return s},removeFormatForCollapsedSelection:function(){return r}});var n=i(81937),o=i(23211);function r(e,t){let{s:i}=e,n=t;if(!n){n=e.createInside.fake();let{range:t}=i;o.Dom.safeInsertNode(t,n),t.collapse()}let r=o.Dom.furthest(n,s,e.editor);if(r)if(i.cursorOnTheLeft(r))o.Dom.before(r,n);else if(i.cursorOnTheRight(r))o.Dom.after(r,n);else{let e=i.splitSelection(r);e&&o.Dom.after(e,n)}t||(i.setCursorBefore(n),o.Dom.safeRemove(n))}function s(e){return o.Dom.isInlineBlock(e)&&!o.Dom.isTag(e,n.INSEPARABLE_TAGS)}},70195:function(e,t,i){"use strict";i.d(t,{removeFormatForSelection:function(){return s}});var n=i(23211),o=i(93640),r=i(37431);function s(e){let{s:t,editor:i,createInside:s}=e,{range:a}=t,l=a.cloneRange(),u=a.cloneRange(),c=s.fake(),d=s.fake();l.collapse(!0),u.collapse(!1),n.Dom.safeInsertNode(l,c),n.Dom.safeInsertNode(u,d),a.setStartBefore(c),a.collapse(!0),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,c),a.setEndAfter(d),a.collapse(!1),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,d);let h=[];n.Dom.between(c,d,e=>{(0,r.isInlineBlock)(e)&&!n.Dom.isTag(e,"a")&&h.push(e),n.Dom.isElement(e)&&(0,o.attr)(e,"style")&&(0,o.attr)(e,"style",null)}),h.forEach(e=>n.Dom.unwrap(e));let p=(e,t)=>{if(!n.Dom.findNotEmptySibling(e,t)){let n=e.parentNode;if(n&&n!==i&&(0,o.attr)(n,"style"))return(0,o.attr)(n,"style",null),p(n,t),!0}};p(c,!0)&&p(d,!1),a.setStartAfter(c),a.setEndBefore(d),t.selectRange(a),n.Dom.safeRemove(c),n.Dom.safeRemove(d)}},95559:function(e,t,i){"use strict";i.d(t,{allowAttributes:function(){return o}});var n=i(23211);function o(e,t,i,o){if(o&&n.Dom.isElement(t)&&!0!==o[t.nodeName]){let e=t.attributes;if(e&&e.length){let n=[];for(let i=0;i<e.length;i+=1){let r=o[t.nodeName][e[i].name];r&&(!0===r||r===e[i].value)||n.push(e[i].name)}n.length&&(i=!0),n.forEach(e=>{t.removeAttribute(e)})}}return i}},85085:function(e,t,i){"use strict";i.d(t,{convertUnsafeEmbeds:function(){return r}});var n=i(23211),o=i(7909);function r(e,t,i){let r=e.o.cleanHTML.convertUnsafeEmbeds;if(!r||!n.Dom.isElement(t))return i;let s=t.nodeName.toLowerCase();if(!r.includes(s))return i;let a=(0,o.attr)(t,"data")||(0,o.attr)(t,"src")||(0,o.attr)(t,"movie")||"";if(!a)return n.Dom.safeRemove(t),!0;let l=e.createInside.element("iframe");return(0,o.attr)(l,{src:a,sandbox:"",frameborder:"0",width:(0,o.attr)(t,"width"),height:(0,o.attr)(t,"height")}),n.Dom.replace(t,l,void 0,!1,!0),!0}},39188:function(e,t,i){"use strict";i.d(t,{fillEmptyParagraph:function(){return s}});var n=i(81937),o=i(23211);let r=new Set(["table","tbody","thead","tfoot","tr"]);function s(e,t,i){if(e.o.cleanHTML.fillEmptyParagraph&&o.Dom.isBlock(t)&&o.Dom.isEmpty(t,n.INSEPARABLE_TAGS)&&!o.Dom.isTag(t,r)){let i=e.createInside.element("br");return t.appendChild(i),!0}return i}},91560:function(e,t,i){"use strict";i.r(t),i.d(t,{allowAttributes:function(){return n.allowAttributes},convertUnsafeEmbeds:function(){return o.convertUnsafeEmbeds},fillEmptyParagraph:function(){return r.fillEmptyParagraph},removeEmptyTextNode:function(){return s.removeEmptyTextNode},removeInvTextNodes:function(){return a.removeInvTextNodes},replaceOldTags:function(){return l.replaceOldTags},safeLinksTarget:function(){return u.safeLinksTarget},sandboxIframesInContent:function(){return c.sandboxIframesInContent},sanitizeAttributes:function(){return d.sanitizeAttributes},sanitizeStyles:function(){return h.sanitizeStyles},tryRemoveNode:function(){return p.tryRemoveNode}});var n=i(95559),o=i(85085),r=i(39188),s=i(94561),a=i(53514),l=i(35104),u=i(77041),c=i(66647),d=i(65015),h=i(60220),p=i(27611)},94561:function(e,t,i){"use strict";i.d(t,{removeEmptyTextNode:function(){return o}});var n=i(23211);function o(e,t,i,o,r,s){return n.Dom.isText(t)&&!t.nodeValue?(t===s&&e.s.isCollapsed()&&e.s.setCursorAfter(t),n.Dom.safeRemove(t),!0):i}},53514:function(e,t,i){"use strict";i.d(t,{removeInvTextNodes:function(){return r}});var n=i(81937),o=i(23211);function r(e,t,i,r,s,a){if(a===t||!o.Dom.isText(t)||null==t.nodeValue||!(0,n.INVISIBLE_SPACE_REG_EXP)().test(t.nodeValue))return i;let l=o.Dom.furthest(a,o.Dom.isBlock,e.editor);return!l||o.Dom.isOrContains(l,t)?i:(t.nodeValue=t.nodeValue.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),""),t===a&&e.s.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||o.Dom.safeRemove(t),!0)}},35104:function(e,t,i){"use strict";i.d(t,{replaceOldTags:function(){return o}});var n=i(23211);function o(e,t,i){let o=function(e,t,i){if(!i||!n.Dom.isHTMLElement(t))return t;let o=i[t.nodeName.toLowerCase()]||i[t.nodeName];return o?n.Dom.replace(t,o,e.createInside,!0,!1):t}(e,t,e.o.cleanHTML.replaceOldTags);return t!==o?(t=o,!0):i}},77041:function(e,t,i){"use strict";i.d(t,{safeLinksTarget:function(){return r}});var n=i(23211),o=i(7909);function r(e,t,i){if(!e.o.cleanHTML.safeLinksTarget||!n.Dom.isElement(t)||"A"!==t.nodeName||"_blank"!==(0,o.attr)(t,"target"))return i;let r=((0,o.attr)(t,"rel")||"").split(/\s+/).filter(Boolean),s=!1;return(r.includes("noopener")||(r.push("noopener"),s=!0),r.includes("noreferrer")||(r.push("noreferrer"),s=!0),s)?((0,o.attr)(t,"rel",r.join(" ")),!0):i}},66647:function(e,t,i){"use strict";i.d(t,{sandboxIframesInContent:function(){return r}});var n=i(23211),o=i(7909);function r(e,t,i){return e.o.cleanHTML.sandboxIframesInContent&&n.Dom.isElement(t)&&"IFRAME"===t.nodeName?t.hasAttribute("sandbox")?i:((0,o.attr)(t,"sandbox",""),!0):i}},65015:function(e,t,i){"use strict";i.d(t,{sanitizeAttributes:function(){return r}});var n=i(23211),o=i(65946);function r(e,t,i){if(!n.Dom.isElement(t))return i;let r=e.options.cleanHTML;return!!(0,o.sanitizeHTMLElement)(t,{safeJavaScriptLink:r.safeJavaScriptLink,removeOnError:r.removeOnError,removeEventAttributes:r.removeEventAttributes,safeLinksTarget:r.safeLinksTarget})||i}},60220:function(e,t,i){"use strict";i.d(t,{sanitizeStyles:function(){return r}});var n=i(23211),o=i(7909);function r(e,t,i){let r=e.o.cleanHTML.allowedStyles;if(!r||!n.Dom.isElement(t))return i;let s=(0,o.attr)(t,"style");if(!s)return i;let a=function(e,t){let i=t[e],n=t["*"];if(!i&&!n)return null;let o=new Set;if(n)for(let e of n)o.add(e.toLowerCase());if(i)for(let e of i)o.add(e.toLowerCase());return o}(t.nodeName.toLowerCase(),r);if(!a)return i;let l=s.split(";").map(e=>e.trim()).filter(e=>{if(!e)return!1;let t=e.indexOf(":");if(-1===t)return!1;let i=e.substring(0,t).trim().toLowerCase();return a.has(i)}).join("; ").replace(/;\s*$/,"");return l!==s?((0,o.attr)(t,"style",l||null),!0):i}},27611:function(e,t,i){"use strict";i.d(t,{tryRemoveNode:function(){return s}});var n=i(81937),o=i(23211),r=i(4040);function s(e,t,i,s,a,l){return!o.Dom.isText(t)&&(s&&!s[t.nodeName]||!s&&a&&a[t.nodeName])||e.o.cleanHTML.removeEmptyElements&&o.Dom.isElement(t)&&null!=t.nodeName.match(n.IS_INLINE)&&!o.Dom.isTemporary(t)&&0===(0,r.trimInv)(t.innerHTML).length&&(null==l||!o.Dom.isOrContains(t,l))?(o.Dom.safeRemove(t),!0):i}},45219:function(e,t,i){"use strict";i.d(t,{visitNodeWalker:function(){return s}});var n=i(81937),o=i(91560);let r=Object.keys(o);function s(e,t,i,s,a){let l=!1,u=e.o.cleanHTML.disableCleanFilter;for(let c of r)if(!(u&&u.has(c))&&(l=(0,o[c])(e,t,l,i,s,a),n.IS_PROD,!t.isConnected))return!0;return l}},43354:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(51676),s=i(28077),a=i(65946);i(81008);class l{init(e){var t;null==(t=this.buttons)||t.forEach(t=>e.registerButton(t)),e.e.off(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`).on(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`,t=>{var i;let n=e.s.html,r=(0,a.getDataTransfer)(t)||(0,a.getDataTransfer)(e.ew)||(0,a.getDataTransfer)(t.originalEvent);r&&(r.setData(o.TEXT_PLAIN,(0,a.stripTags)(n)),r.setData(o.TEXT_HTML,n)),e.buffer.set(o.CLIPBOARD_ID,n),e.e.fire("pasteStack",{html:n,action:e.o.defaultActionOnPaste||o.INSERT_AS_HTML}),"cut"===t.type&&(e.s.remove(),e.s.focus()),t.preventDefault(),null==e||null==(i=e.events)||i.fire("afterCopy",n)})}destruct(e){var t,i;null==(t=(0,r.cached)(e,"buffer"))||t.set(o.CLIPBOARD_ID,""),null==e||null==(i=e.events)||i.off("."+o.CLIPBOARD_ID)}constructor(){(0,n._)(this,"jodit",void 0),(0,n._)(this,"buttons",[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}])}}s.pluginSystem.add("clipboard",l)},81008:function(e,t,i){"use strict";var n=i(29434),o=i(5266),r=i(51457),s=i.n(r),a=i(23602),l=i.n(a),u=i(86899),c=i.n(u),d=i(95320),h=i.n(d);o.Config.prototype.controls.cut={command:"cut",isDisabled:e=>e.s.isCollapsed(),tooltip:"Cut selection"},o.Config.prototype.controls.copy={command:"copy",isDisabled:e=>e.s.isCollapsed(),tooltip:"Copy selection"},o.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},n.Icon.set("copy",s()).set("cut",l()).set("paste",c()).set("select-all",h())},42462:function(e,t,i){"use strict";var n=i(28077),o=i(65946);i(8071),n.pluginSystem.add("color",function(e){e.registerButton({name:"brush",group:"color"});let t=(t,i,n)=>{let r=(0,o.normalizeColor)(n);switch(t){case"background":e.s.commitStyle({attributes:{style:{backgroundColor:r||""}}});break;case"forecolor":e.s.commitStyle({attributes:{style:{color:r||""}}})}return e.synchronizeValues(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)})},8071:function(e,t,i){"use strict";var n=i(23211),o=i(65946),r=i(29434),s=i(5266),a=i(15753),l=i(45674),u=i.n(l);r.Icon.set("brush",u()),s.Config.prototype.controls.brushCell={isVisible:e=>!e.o.disablePlugins.includes("color"),icon:"brush",popup:(e,t,i)=>{if(!(0,o.isJoditObject)(e))return;let n=e.getInstance("Table",e.o).getAllSelectedCells();if(!n.length)return!1;let r=t=>(0,a.ColorPickerWidget)(e,r=>{n.forEach(e=>{(0,o.css)(e,t,r)}),e.lock(),e.synchronizeValues(),i(),e.unlock()},(0,o.css)(n[0],t));return(0,a.TabsWidget)(e,[{name:"Background",content:r("background-color")},{name:"Text",content:r("color")},{name:"Border",content:r("border-color")}])},tooltip:"Background"},s.Config.prototype.controls.brush={isVisible:e=>!e.o.disablePlugins.includes("color"),update(e,t){let i=(0,o.dataBind)(t,"color"),r=(i,n)=>{if(n&&n!==(0,o.css)(e.editor,i).toString()){t.state.icon.fill=n;return}};if(i){let e=(0,o.dataBind)(t,"color");r("color"===e?e:"background-color",i);return}let s=e.s.current();if(s&&!t.state.disabled){let t=n.Dom.closest(s,n.Dom.isElement,e.editor)||e.editor;r("color",(0,o.css)(t,"color").toString()),r("background-color",(0,o.css)(t,"background-color").toString())}t.state.icon.fill="",t.state.activated=!1},popup:(e,t,i,r)=>{let s="",l="",u=[],c=null;return t&&t!==e.editor&&n.Dom.isNode(t)&&(n.Dom.isElement(t)&&e.s.isCollapsed()&&!n.Dom.isTag(t,new Set(["br","hr"]))&&(c=t),n.Dom.up(t,e=>{if(n.Dom.isHTMLElement(e)){let t=(0,o.css)(e,"color",!0),i=(0,o.css)(e,"background-color",!0);if(t)return s=t.toString(),!0;if(i)return l=i.toString(),!0}},e.editor)),u=[{name:"Background",content:(0,a.ColorPickerWidget)(e,t=>{c?c.style.backgroundColor=t:e.execCommand("background",!1,t),(0,o.dataBind)(r,"color",t),(0,o.dataBind)(r,"color-mode","background"),i()},l)},{name:"Text",content:(0,a.ColorPickerWidget)(e,t=>{c?c.style.color=t:e.execCommand("forecolor",!1,t),(0,o.dataBind)(r,"color",t),(0,o.dataBind)(r,"color-mode","color"),i()},s)}],"background"!==e.o.colorPickerDefaultTab&&(u=u.reverse()),(0,a.TabsWidget)(e,u,c)},exec(e,t,{button:i}){let r=(0,o.dataBind)(i,"color-mode"),s=(0,o.dataBind)(i,"color");if(!r)return!1;if(t&&t!==e.editor&&n.Dom.isNode(t)&&n.Dom.isElement(t))switch(r){case"color":t.style.color=s;break;case"background":t.style.backgroundColor=s}else e.execCommand("background"===r?r:"forecolor",!1,s)},tooltip:"Fill color or set the text color"}},30062:function(e,t,i){"use strict";var n=i(23211),o=i(28077),r=i(80991),s=i(29434),a=i(5266),l=i(3843),u=i.n(l),c=i(38639);let d="copy-format",h=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],p=(e,t,i,n)=>{let o=(0,r.css)(i,t);return o===n[t]&&(o=i.parentNode&&i!==e.editor&&i.parentNode!==e.editor?p(e,t,i.parentNode,n):void 0),o};a.Config.prototype.controls.copyformat={exec:(e,t,{button:i})=>{if(t){if(e.buffer.exists(d))e.buffer.delete(d),e.e.off(e.editor,"mouseup."+d);else{let i,o={},s=n.Dom.up(t,e=>e&&!n.Dom.isText(e),e.editor)||e.editor,a=e.createInside.span();e.editor.appendChild(a),h.forEach(e=>{o[e]=(0,r.css)(a,e)}),a!==e.editor&&n.Dom.safeRemove(a);let l=(i={},s&&h.forEach(t=>{i[t]=p(e,t,s,o),t.match(/border(Style|Color)/)&&!i.borderWidth&&(i[t]=void 0)}),i);e.e.on(e.editor,"mouseup."+d,()=>{e.buffer.delete(d);let t=e.s.current();t&&(n.Dom.isTag(t,"img")?(0,r.css)(t,l):e.s.commitStyle({attributes:{style:l}})),e.e.off(e.editor,"mouseup."+d)}),e.buffer.set(d,!0)}i.update()}},isActive:e=>e.buffer.exists(d),tooltip:"Paint format"},o.pluginSystem.add("copyformat",function(e){e.registerButton({name:"copyformat",group:"clipboard"}),(0,o.extendLang)(c)}),s.Icon.set("copyformat",u())},35830:function(e){e.exports={"copy-format":"نسخ التنسيق"}},3787:function(e){e.exports={"copy-format":"Kop\xedrovat form\xe1t"}},83778:function(e){e.exports={"copy-format":"Format kopierenт"}},70577:function(e){e.exports={"copy-format":"Copiar formato"}},15552:function(e){e.exports={"copy-format":"کپی کردن قالب"}},79400:function(e){e.exports={"copy-format":"Kopioi muotoilu"}},21513:function(e){e.exports={"copy-format":"Format de copie"}},40998:function(e){e.exports={"copy-format":"העתק עיצוב"}},22998:function(e){e.exports={"copy-format":"Form\xe1tum m\xe1sol\xe1s"}},52504:function(e){e.exports={"copy-format":"salin format"}},38639:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return o.a},cs_cz:function(){return s.a},de:function(){return l.a},es:function(){return c.a},fa:function(){return h.a},fi:function(){return m.a},fr:function(){return g.a},he:function(){return _.a},hu:function(){return y.a},id:function(){return w.a},it:function(){return k.a},ja:function(){return I.a},ko:function(){return x.a},mn:function(){return z.a},nl:function(){return L.a},pl:function(){return P.a},pt_br:function(){return R.a},ru:function(){return B.a},tr:function(){return q.a},zh_cn:function(){return H.a},zh_tw:function(){return U.a}});var n=i(35830),o=i.n(n),r=i(3787),s=i.n(r),a=i(83778),l=i.n(a),u=i(70577),c=i.n(u),d=i(15552),h=i.n(d),p=i(79400),m=i.n(p),f=i(21513),g=i.n(f),v=i(40998),_=i.n(v),b=i(22998),y=i.n(b),S=i(52504),w=i.n(S),C=i(66568),k=i.n(C),E=i(83708),I=i.n(E),T=i(37023),x=i.n(T),D=i(1678),z=i.n(D),j=i(58067),L=i.n(j),A=i(35109),P=i.n(A),M=i(22380),R=i.n(M),N=i(12872),B=i.n(N),O=i(31371),q=i.n(O),F=i(41599),H=i.n(F),V=i(15223),U=i.n(V)},66568:function(e){e.exports={"copy-format":"Copia il formato"}},83708:function(e){e.exports={"copy-format":"copyformat"}},37023:function(e){e.exports={"copy-format":"복사 형식"}},1678:function(e){e.exports={"copy-format":"Формат хуулах"}},58067:function(e){e.exports={"copy-format":"opmaak kopi\xebren"}},35109:function(e){e.exports={"copy-format":"format kopii"}},22380:function(e){e.exports={"copy-format":"Copiar formato"}},12872:function(e){e.exports={"copy-format":"Копировать формат"}},31371:function(e){e.exports={"copy-format":"Kopyalama Bi\xe7imi"}},41599:function(e){e.exports={"copy-format":"复制格式"}},15223:function(e){e.exports={"copy-format":"複製格式"}},63974:function(e,t,i){"use strict";var n=i(25045),o=i(27795),r=i(28077),s=i(65946),a=i(4040),l=i(91206);class u extends l.Plugin{afterInit(e){e.e.on("afterCommand.delete",e=>{"delete"===e&&this.__afterDeleteCommand()}),e.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(e){e.e.off("afterCommand.delete")}__afterDeleteCommand(){let e=this.j,t=e.s.current();if(t&&o.Dom.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!(0,a.trim)(e.editor.textContent||"")&&!e.editor.querySelector("img,table,jodit,iframe,hr")&&(!t||!o.Dom.closest(t,"table",e.editor))){e.editor.innerHTML="";let t=e.s.setCursorIn(e.editor);e.s.removeNode(t)}}__onDeleteCommand(){let{jodit:e}=this;if(e.s.isCollapsed())return;e.s.expandSelection();let t=e.s.range;t.deleteContents();let i=e.createInside.fake();t.insertNode(i);let n=o.Dom.findSibling(i,!0),r=o.Dom.findSibling(i,!1);return this.__moveContentInLeftSibling(i,n,r),t.setStartBefore(i),t.collapse(!0),this.__moveCursorInEditableSibling(e,n,i,t),this.__addBrInEmptyBlock(i,r,t),o.Dom.safeRemove(i),e.s.selectRange(t),!1}__moveContentInLeftSibling(e,t,i){t=this.__defineRightLeftBox(t),!o.Dom.isList(i)&&!o.Dom.isTag(i,"table")&&o.Dom.isBlock(i)&&o.Dom.isBlock(t)&&(o.Dom.append(t,e),o.Dom.moveContent(i,t),o.Dom.safeRemove(i)),o.Dom.isList(i)&&o.Dom.isLeaf(i.firstElementChild)&&o.Dom.isEmpty(i.firstElementChild)&&o.Dom.safeRemove(i.firstElementChild)}__defineRightLeftBox(e){if(!o.Dom.isList(e))return e;let t=e.lastElementChild;return o.Dom.isLeaf(t)||(t=this.j.createInside.element("li"),o.Dom.append(e,t)),t}__addBrInEmptyBlock(e,t,i){let n=this.j;if(e.isConnected&&o.Dom.isBlock(e.parentNode)&&!e.nextSibling&&!e.previousSibling){let t=n.createInside.element("br");o.Dom.after(e,t),i.setStartBefore(t),i.collapse(!0)}if(o.Dom.isTag(t,"table")){let e=(0,s.$$)("td,th",t).shift();o.Dom.isCell(e)&&o.Dom.isEmpty(e)&&o.Dom.append(e,n.createInside.element("br"))}}__moveCursorInEditableSibling(e,t,i,n){if(!t||!o.Dom.isText(t)){var r;let t=null!=(r=o.Dom.closest(i,o.Dom.isBlock,e.editor))?r:e.editor,s=o.Dom.prev(i,o.Dom.isText,t);s&&(n.setStartAfter(s),n.collapse(!0),o.Dom.safeRemove(i))}}}(0,n._)(u,"requires",["backspace"]),r.pluginSystem.add("deleteCommand",u)},65701:function(e,t,i){"use strict";i(5266).Config.prototype.draggableTags=["img","jodit-media","jodit"]},43102:function(e,t,i){"use strict";var n,o=i(25045),r=i(31635),s=i(84839),a=i(27795),l=i(28077),u=i(65946),c=i(91206);i(65701);var d=((n=d||{})[n.IDLE=0]="IDLE",n[n.WAIT_DRAGGING=1]="WAIT_DRAGGING",n[n.DRAGGING=2]="DRAGGING",n);class h extends c.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,u.splitArray)(this.j.o.draggableTags).filter(Boolean).map(e=>e.toLowerCase()):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onDragStart(e){if("dragstart"===e.type&&this.draggable)return!1;if(this.state>0)return;let t=e.target;if(!this.dragList.length||!t)return;let i=e=>!!(e&&this.dragList.includes(e.nodeName.toLowerCase())),n=a.Dom.furthest(t,i,this.j.editor)||(i(t)?t:null);n&&(a.Dom.isTag(n.parentElement,"a")&&n.parentElement.firstChild===n&&n.parentElement.lastChild===n&&(n=n.parentElement),this.startX=e.clientX,this.startY=e.clientY,this.isCopyMode=(0,u.ctrlKey)(e),this.draggable=n.cloneNode(!0),(0,u.dataBind)(this.draggable,"target",n),this.state=1,this.addDragListeners())}onDrag(e){if(!this.draggable||0===this.state)return;let t=e.clientX,i=e.clientY;if(!(1===this.state&&Math.sqrt(Math.pow(t-this.startX,2)+Math.pow(i-this.startY,2))<this.diffStep)){if(1===this.state&&(this.j.lock("drag-and-drop-element"),this.state=2),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){var n,o;let t=(0,u.dataBind)(this.draggable,"target");(0,u.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:e.clientX,top:e.clientY,width:null!=(n=null==t?void 0:t.offsetWidth)?n:100,height:null!=(o=null==t?void 0:t.offsetHeight)?o:100}),(0,l.getContainer)(this.j,h).appendChild(this.draggable)}(0,u.css)(this.draggable,{left:e.clientX,top:e.clientY}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=0,this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<2)return void this.onDragEnd();let e=(0,u.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));let{parentElement:t}=e;this.j.s.insertNode(e,!0,!1),t&&a.Dom.isEmpty(t)&&!a.Dom.isCell(t)&&a.Dom.safeRemove(t),a.Dom.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart),this.removeDragListeners()}constructor(...e){super(...e),(0,o._)(this,"dragList",[]),(0,o._)(this,"draggable",null),(0,o._)(this,"isCopyMode",!1),(0,o._)(this,"diffStep",10),(0,o._)(this,"startX",0),(0,o._)(this,"startY",0),(0,o._)(this,"state",0)}}(0,r.__decorate)([s.autobind],h.prototype,"onDragStart",null),(0,r.__decorate)([(0,s.throttle)(e=>e.defaultTimeout/10)],h.prototype,"onDrag",null),(0,r.__decorate)([s.autobind],h.prototype,"onDragEnd",null),(0,r.__decorate)([s.autobind],h.prototype,"onDrop",null),l.pluginSystem.add("dragAndDropElement",h)},64222:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(91206),d=i(63425);class h extends c.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(e){var t;let i=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=a.Dom.isOrContains(this.j.editor,i,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,u.ctrlKey)(e),this.isFragmentFromEditor){let e=this.j.s.sel,t=e&&e.rangeCount?e.getRangeAt(0):null;t&&(this.bufferRange=t.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,t=i,a.Dom.isElement(t)&&t.classList.contains(d.FileBrowserFiles.prototype.getFullElName("item"))&&(i=i.querySelector("img")),a.Dom.isTag(i,"img")&&(this.draggable=i.cloneNode(!0),(0,u.dataBind)(this.draggable,"target",i)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())}onDragEnd(){this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;let t=this.j.s.sel,i=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null),n=this.__getWorkFragment(i,e);t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),n&&this.__insertFragment.call(this,n,i),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(e,t){let i=null;if(!this.draggable&&e)i=this.isCopyMode?e.cloneContents():e.extractContents();else if(this.draggable)if(this.isCopyMode){let[e,t]="1"===(0,u.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];i=this.j.createInside.element(e),(0,u.attr)(i,t,(0,u.attr)(this.draggable,"data-src")||(0,u.attr)(this.draggable,"src")||""),"a"===e&&(i.textContent=(0,u.attr)(i,t)||"")}else i=(0,u.dataBind)(this.draggable,"target");else this.getText(t)&&(i=this.j.createInside.fromHTML(this.getText(t)));return i}__insertFragment(e,t){this.j.s.insertNode(e,!1,!1),t&&e.firstChild&&e.lastChild&&(t.setStartBefore(e.firstChild),t.setEndAfter(e.lastChild),this.j.s.selectRange(t),this.j.e.fire("synchro")),a.Dom.isTag(e,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",e)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(...e){super(...e),(0,n._)(this,"isFragmentFromEditor",!1),(0,n._)(this,"isCopyMode",!1),(0,n._)(this,"startDragPoint",{x:0,y:0}),(0,n._)(this,"draggable",null),(0,n._)(this,"bufferRange",null),(0,n._)(this,"getText",e=>{let t=(0,u.getDataTransfer)(e);return t?t.getData(r.TEXT_HTML)||t.getData(r.TEXT_PLAIN):null})}}(0,o.__decorate)([s.autobind],h.prototype,"onDragStart",null),(0,o.__decorate)([(0,s.throttle)(e=>e.defaultTimeout/10)],h.prototype,"onDrag",null),(0,o.__decorate)([s.autobind],h.prototype,"onDragEnd",null),(0,o.__decorate)([s.autobind],h.prototype,"onDrop",null),l.pluginSystem.add("dragAndDrop",h)},33915:function(e,t,i){"use strict";i.r(t),i.d(t,{removeExtraBr:function(){return n.removeExtraBr}});var n=i(14841)},14841:function(e,t,i){"use strict";i.d(t,{removeExtraBr:function(){return r}});var n=i(23211);let o=new Set(["table","pre","blockquote","code"]);function r(e,t){if(!e.o.dtd.removeExtraBr||n.Dom.isTag(t,"br"))return;let i=n.Dom.furthest(t,n.Dom.isBlock,e.editor);if(i&&!n.Dom.isTag(i,o)){let i=n.Dom.isTag(t,"br")?t:n.Dom.findNotEmptySibling(t,!1);if(!n.Dom.isTag(i,"br"))return;e.s.setCursorBefore(i),n.Dom.safeRemove(i)}}},34693:function(e,t,i){"use strict";i.d(t,{checkBlockNesting:function(){return o}});var n=i(23211);function o(e,t){if(n.Dom.isFragment(t)&&(t=t.firstChild),e.o.dtd.checkBlockNesting&&n.Dom.isBlock(t)){let t=n.Dom.furthest(e.s.current(),n.Dom.isBlock,e.editor);t&&!e.o.dtd.blockLimits[t.tagName.toLowerCase()]&&(e.s.setCursorAfter(t),n.Dom.isEmpty(t)&&n.Dom.safeRemove(t))}}},14282:function(e,t,i){"use strict";i.r(t),i.d(t,{checkBlockNesting:function(){return n.checkBlockNesting}});var n=i(34693)},96722:function(e,t,i){"use strict";i(5266).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}}},56894:function(e,t,i){"use strict";var n=i(31635),o=i(68616),r=i(28077),s=i(91206);i(96722);var a=i(33915),l=i(14282);class u extends s.Plugin{afterInit(e){}beforeDestruct(e){}__onBeforeInsertNode(e){Object.keys(l).forEach(t=>{l[t](this.j,e)})}__onAfterInsertNode(e){Object.keys(a).forEach(t=>{a[t](this.j,e)})}}(0,n.__decorate)([(0,o.watch)(":beforeInsertNode")],u.prototype,"__onBeforeInsertNode",null),(0,n.__decorate)([(0,o.watch)(":afterInsertNode")],u.prototype,"__onAfterInsertNode",null),r.pluginSystem.add("dtd",u)},3678:function(e,t,i){"use strict";var n=i(31635),o=i(81937),r=i(84839),s=i(23211),a=i(28077),l=i(22289),u=i(18855),c=i(10918);class d extends u.Plugin{afterInit(e){let t=e.o.enter.toLowerCase(),i=t===o.BR.toLowerCase();e.o.enterBlock||(e.o.enterBlock=i?o.PARAGRAPH:t),e.registerCommand("enter",(e,t,i={})=>this.onEnter(i))}onEnterKeyDown(e){if(e.key===o.KEY_ENTER){let t=this.j,i=t.e.fire("beforeEnter",e);return void 0!==i?i:(t.s.isCollapsed()||t.execCommand("Delete"),t.s.focus(),this.onEnter(e),t.e.fire("afterEnter",e),t.synchronizeValues(),!1)}}onEnter(e){let{jodit:t}=this,i=t.createInside.fake();try{s.Dom.safeInsertNode(t.s.range,i),(0,c.moveCursorOutFromSpecialTags)(t,i,["a"]);let n=(0,c.getBlockWrapper)(i,t),o=s.Dom.isLeaf(n);if((!o||(null==e?void 0:e.shiftKey))&&(0,c.checkBR)(i,t,null==e?void 0:e.shiftKey))return!1;if(n||(0,c.hasPreviousBlock)(i,t)||(n=(0,c.wrapText)(i,t)),!n)return(0,c.insertParagraph)(i,t,o?"li":t.o.enter),!1;if(!(0,c.checkUnsplittableBox)(i,t,n))return!1;if(o&&this.__isEmptyListLeaf(n))return(0,c.processEmptyLILeaf)(i,t,n),!1;(0,c.splitFragment)(i,t,n)}finally{i.isConnected&&t.s.setCursorBefore(i),s.Dom.safeRemove(i)}}__isEmptyListLeaf(e){let t=this.j.e.fire("enterIsEmptyListLeaf",e);return(0,l.isBoolean)(t)?t:s.Dom.isEmpty(e)}beforeDestruct(e){e.e.off("keydown.enter")}}(0,n.__decorate)([(0,r.watch)(":keydown.enter")],d.prototype,"onEnterKeyDown",null),a.pluginSystem.add("enter",d)},34287:function(e,t,i){"use strict";i.d(t,{checkBR:function(){return s}});var n=i(81937),o=i(23211),r=i(60898);function s(e,t,i){let s=!!o.Dom.closest(e,["pre","blockquote"],t.editor),l=!s&&o.Dom.closest(e,["td","th"],t.editor);if(t.o.enter.toLowerCase()===n.BR.toLowerCase()||l||i&&!s||!i&&s){var u;let i;if(s&&(i=a(a(u=e)))&&(o.Dom.safeRemove(a(u)),o.Dom.safeRemove(i),1))return!1;let n=t.createInside.element("br");if(o.Dom.before(e,n),!o.Dom.findNotEmptySibling(n,!1)){let t=n.cloneNode();o.Dom.after(n,t),o.Dom.before(t,e)}return(0,r.scrollIntoViewIfNeeded)(n,t.editor,t.ed),!0}return!1}function a(e){if(!e)return!1;let t=o.Dom.findSibling(e,!0);return!!t&&!!o.Dom.isTag(t,"br")&&t}},8524:function(e,t,i){"use strict";i.d(t,{checkUnsplittableBox:function(){return o}});var n=i(23211);function o(e,t,i){return!!n.Dom.canSplitBlock(i)||(n.Dom.before(e,t.createInside.element("br")),!1)}},83376:function(e,t,i){"use strict";i.d(t,{getBlockWrapper:function(){return function e(t,i,r=n.IS_BLOCK){let s=t,a=i.editor;do{if(!s||s===a)break;if(r.test(s.nodeName)){if(o.Dom.isLeaf(s))return s;return e(s.parentNode,i,/^li$/i)||s}s=s.parentNode}while(s&&s!==a);return null}}});var n=i(81937),o=i(23211)},66862:function(e,t,i){"use strict";i.d(t,{hasPreviousBlock:function(){return o}});var n=i(23211);function o(e,t){return!!n.Dom.prev(e,e=>n.Dom.isBlock(e)||n.Dom.isImage(e),t.editor)}},10918:function(e,t,i){"use strict";i.d(t,{checkBR:function(){return n.checkBR},checkUnsplittableBox:function(){return o.checkUnsplittableBox},getBlockWrapper:function(){return r.getBlockWrapper},hasPreviousBlock:function(){return s.hasPreviousBlock},insertParagraph:function(){return a.insertParagraph},moveCursorOutFromSpecialTags:function(){return l.moveCursorOutFromSpecialTags},processEmptyLILeaf:function(){return u.processEmptyLILeaf},splitFragment:function(){return c.splitFragment},wrapText:function(){return d.wrapText}});var n=i(34287),o=i(8524),r=i(83376),s=i(66862),a=i(65710),l=i(47919),u=i(34672),c=i(46303),d=i(52938)},65710:function(e,t,i){"use strict";i.d(t,{insertParagraph:function(){return s}});var n=i(23211),o=i(7909),r=i(60898);function s(e,t,i,s){let a="br"===i.toLowerCase(),{createInside:l}=t,u=l.element(i),c=l.element("br");return a||u.appendChild(c),s&&s.cssText&&(0,o.attr)(u,"style",s.cssText),n.Dom.after(e,u),n.Dom.before(a?u:c,e),(0,r.scrollIntoViewIfNeeded)(u,t.editor,t.ed),u}},47919:function(e,t,i){"use strict";i.d(t,{moveCursorOutFromSpecialTags:function(){return o}});var n=i(23211);function o(e,t,i){let{s:o}=e,r=n.Dom.closest(t,i,e.editor);r&&(o.cursorOnTheRight(r,t)?n.Dom.after(r,t):o.cursorOnTheLeft(r,t)&&n.Dom.before(r,t))}},34672:function(e,t,i){"use strict";i.d(t,{processEmptyLILeaf:function(){return s}});var n=i(23211),o=i(28723),r=i(65710);function s(e,t,i){let s=n.Dom.closest(i,["ol","ul"],t.editor);if(!s)return;let a=s.parentElement,l=n.Dom.isLeaf(a),u=l?a:s,c=t.s.createRange();c.setStartAfter(i),c.setEndAfter(s);let d=c.extractContents();n.Dom.after(u,e),n.Dom.safeRemove(i),(0,o.$$)("li",s).length||n.Dom.safeRemove(s);let h=(0,r.insertParagraph)(e,t,l?"li":t.o.enter);d.querySelector("li")&&(l?h.appendChild(d):n.Dom.after(h,d))}},46303:function(e,t,i){"use strict";i.d(t,{splitFragment:function(){return s}});var n=i(23211),o=i(60898),r=i(65710);function s(e,t,i){let s=t.s,{enter:a}=t.o,l=a.toLowerCase(),u=n.Dom.isLeaf(i),c=i.tagName.toLowerCase()===l||u,d=s.cursorOnTheRight(i,e),h=s.cursorOnTheLeft(i,e);if(!c&&(d||h)){d?n.Dom.after(i,e):n.Dom.before(i,e),(0,r.insertParagraph)(e,t,l),h&&!d&&n.Dom.prepend(i,e);return}let p=s.splitSelection(i,e);(0,o.scrollIntoViewIfNeeded)(p,t.editor,t.ed)}},52938:function(e,t,i){"use strict";i.d(t,{wrapText:function(){return o}});var n=i(23211);function o(e,t){let i=e;n.Dom.up(i,e=>{e&&e.hasChildNodes()&&e!==t.editor&&(i=e)},t.editor);let o=n.Dom.wrapInline(i,t.o.enter,t);if(n.Dom.isEmpty(o)){let i=t.createInside.element("br");o.appendChild(i),n.Dom.before(i,e)}return o}},49764:function(e,t,i){"use strict";var n=i(23211),o=i(28077),r=i(7909),s=i(5266),a=i(15753);s.Config.prototype.controls.file={popup:(e,t,i)=>{let o=(t,i="")=>{e.s.insertNode(e.createInside.fromHTML(`<a href="${t}" title="${i}">${i||t}</a>`))},s=null;return t&&(n.Dom.isTag(t,"a")||n.Dom.closest(t,"a",e.editor))&&(s=n.Dom.isTag(t,"a")?t:n.Dom.closest(t,"a",e.editor)),(0,a.FileSelectorWidget)(e,{filebrowser:e=>{e.files&&e.files.forEach(t=>o(e.baseurl+t)),i()},upload:!0,url:(e,t)=>{s?((0,r.attr)(s,"href",e),(0,r.attr)(s,"title",t)):o(e,t),i()}},s,i,!1)},tags:["a"],tooltip:"Insert file"},o.pluginSystem.add("file",function(e){e.registerButton({name:"file",group:"media"})})},78690:function(e,t,i){"use strict";var n=i(27795),o=i(28077),r=i(5266);r.Config.prototype.autofocus=!1,r.Config.prototype.cursorAfterAutofocus="end",r.Config.prototype.saveSelectionOnBlur=!0,o.pluginSystem.add("focus",function(e){e.o.saveSelectionOnBlur&&e.e.on("blur",()=>{e.isEditorMode()&&e.s.save(!0)}).on("focus",()=>{e.s.restore()});let t=()=>{if(e.s.focus(),"end"===e.o.cursorAfterAutofocus){let t=n.Dom.last(e.editor,e=>n.Dom.isText(e));t&&e.s.setCursorIn(t,!1)}};e.e.on("afterInit",()=>{e.o.autofocus&&(e.defaultTimeout?e.async.setTimeout(t,300):t())}),e.e.on("afterInit afterAddPlace",()=>{e.e.off(e.editor,"mousedown.autofocus").on(e.editor,"mousedown.autofocus",t=>{e.isEditorMode()&&t.target&&n.Dom.isBlock(t.target)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))})})})},7433:function(e,t,i){"use strict";var n=i(27795),o=i(4040),r=i(80991),s=i(29434),a=i(5266),l=i(48842),u=i.n(l),c=i(25501),d=i.n(c);a.Config.prototype.defaultFontSizePoints="px",s.Icon.set("font",u()).set("fontsize",d()),a.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalise:(e,t)=>/pt$/i.test(e)&&"pt"===t.o.defaultFontSizePoints?e.replace(/pt$/i,""):e},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(e,t)=>t+e.o.defaultFontSizePoints,childTemplate:(e,t,i)=>`${i}${e.o.defaultFontSizePoints}`,tooltip:"Font size",value:(e,t)=>{var i;let o=e.s.current();if(!o)return;let s=n.Dom.closest(o,n.Dom.isElement,e.editor);if(!s)return;let a=(null==(i=t.control.data)?void 0:i.cssRule)||"font-size";return(0,r.css)(s,a).toString()},isChildActive:(e,t)=>{var i,n;let o=t.state.value,r=null!=(i=null==(n=t.control.data)?void 0:n.normalize)?i:e=>e;return!!(o&&t.control.args&&r(t.control.args[0].toString())===r(o.toString()))},isActive:(e,t)=>{var i,n;let o=t.state.value;if(!o)return!1;let r=null!=(i=null==(n=t.control.data)?void 0:n.normalize)?i:e=>e,s=t.control.data.cacheListSet;return s||(s=new Set(Object.keys(t.control.list).map(r)),t.control.data.cacheListSet=s),s.has(r(o.toString()))}},a.Config.prototype.controls.font={...a.Config.prototype.controls.fontsize,command:"fontname",textTemplate:(e,t)=>{let[i]=t.split(",");return(0,o.trimChars)(i,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate:(e,t,i)=>{let n=!1;try{n=-1===t.indexOf("dings")&&document.fonts.check(`16px ${t}`,i)}catch(e){}return`<span data-style="${t}" style="${n?`font-family: ${t}!important;`:""}">${i}</span>`},data:{cssRule:"font-family",normalize:e=>e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},tooltip:"Font family"}},50294:function(e,t,i){"use strict";var n=i(28077),o=i(65946);i(7433),n.pluginSystem.add("font",function(e){e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});let t=(t,i,n)=>{switch(t){case"fontsize":e.s.commitStyle({attributes:{style:{fontSize:(0,o.normalizeSize)(n,e.o.defaultFontSizePoints)}}});break;case"fontname":e.s.commitStyle({attributes:{style:{fontFamily:n}}})}return e.synchronizeValues(),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)})},96863:function(e,t,i){"use strict";var n=i(23211),o=i(62101),r=i(29434),s=i(5266),a=i(29348),l=i.n(a);r.Icon.set("paragraph",l()),s.Config.prototype.controls.paragraph={command:"formatBlock",value(e,t){var i,o;let r=t.control,s=e.s.current(),a=n.Dom.closest(s,n.Dom.isBlock,e.editor);return null!=(i=null==a?void 0:a.nodeName.toLowerCase())?i:null==(o=r.data)?void 0:o.currentValue},update(e,t){let i=t.control;if(!e.s.current())return!1;let n=t.state.value,r=i.list;return(0,o.isPlainObject)(r)&&r[n.toString()]&&e.o.textIcons&&(t.state.text=r[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:(e,t)=>{var i,n;return t.state.value===(null==(n=t.control)||null==(i=n.args)?void 0:i[0])},isActive:(e,t)=>t.state.value!==e.o.enter&&(0,o.isPlainObject)(t.control.list)&&!!t.control.list[t.state.value],childTemplate:(e,t,i)=>`<${t} style="margin:0;padding:0"><span>${e.i18n(i)}</span></${t}>`,tooltip:"Insert format block"}},53390:function(e,t,i){"use strict";var n=i(28077);i(96863),n.pluginSystem.add("formatBlock",function(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",(t,i,n)=>(e.s.commitStyle({element:n}),e.synchronizeValues(),!1))})},80538:function(e,t,i){"use strict";var n=i(81937),o=i(29434),r=i(5266),s=i(24772),a=i.n(s),l=i(66547),u=i.n(l);r.Config.prototype.fullsize=!1,r.Config.prototype.globalFullSize=!0,o.Icon.set("fullsize",a()).set("shrink",u()),r.Config.prototype.controls.fullsize={exec:e=>{e.toggleFullSize()},update(e,t){let i=e.isFullSize?"shrink":"fullsize";t.state.activated=e.isFullSize,e.o.textIcons?t.state.text=i:t.state.icon.name=i},tooltip:"Open in fullsize",mode:n.MODE_SOURCE+n.MODE_WYSIWYG}},69696:function(e,t,i){"use strict";var n=i(28077),o=i(24497),r=i(80991);i(80538);let s=new Set;n.pluginSystem.add("fullsize",function(e){e.registerButton({name:"fullsize"});let t=!1,i=0,n=0,a=!1,l=()=>{let{container:o,events:s}=e;s&&(t?(i=(0,r.css)(o,"height",!0),n=(0,r.css)(o,"width",!0),(0,r.css)(o,{height:e.ow.innerHeight,width:e.ow.innerWidth}),a=!0):a&&(0,r.css)(o,{height:i||"auto",width:n||"auto"}))},u=i=>{let{container:n,events:a}=e;if(n){if(void 0===i&&(i=!n.classList.contains("jodit_fullsize")),e.setMod("fullsize",i),e.o.fullsize=i,t=i,n.classList.toggle("jodit_fullsize",i),e.toolbar){var u;(0,o.isJoditObject)(e)&&(null==(u=e.toolbarContainer)||u.appendChild(e.toolbar.container)),(0,r.css)(e.toolbar.container,"width","auto")}if(i?s.add(n):s.delete(n),e.o.globalFullSize&&(1===s.size&&i||0===s.size&&!i)){let e=n.parentNode;for(;e&&e.nodeType!==Node.DOCUMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)e.classList.toggle("jodit_fullsize-box_true",i),e=e.parentNode;l()}a.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",l),e.e.on("afterInit afterOpen",()=>{var t;e.toggleFullSize(null==e||null==(t=e.options)?void 0:t.fullsize)}).on("toggleFullSize",u).on("beforeDestruct",()=>{t&&u(!1)}).on("beforeDestruct",()=>{e.events&&e.e.off(e.ow,"resize",l)})})},14907:function(e,t,i){"use strict";i(5266).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"]}},50982:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(28077),s=i(65946),a=i(91206);i(14907);class l extends a.Plugin{afterInit(e){(0,s.keys)(e.o.commandToHotkeys,!1).forEach(t=>{let i=e.o.commandToHotkeys[t];i&&((0,s.isArray)(i)||(0,s.isString)(i))&&e.registerHotkeyToCommand(i,t)});let t=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",e=>{if(e.key===o.KEY_ESC)return this.j.e.fire("escape",e)}).on("keydown.hotkeys",i=>{let n=this.onKeyPress(i),o={shouldStop:!0};if(!1===this.j.e.fire(n+".hotkey",i.type,o))if(o.shouldStop)return t=!0,e.e.stopPropagation("keydown"),!1;else i.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(t)return t=!1,e.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(e){e.events&&e.e.off(".hotkeys")}constructor(...e){super(...e),(0,n._)(this,"onKeyPress",e=>{let t=this.specialKeys[e.which],i=(e.key||String.fromCharCode(e.which)).toLowerCase(),n=[t||i];return["alt","ctrl","shift","meta"].forEach(i=>{e[i+"Key"]&&t!==i&&n.push(i)}),(0,s.normalizeKeyAliases)(n.join("+"))}),(0,n._)(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)},2952:function(e,t,i){"use strict";var n=i(27795),o=i(28077),r=i(29434),s=i(5266),a=i(89097),l=i.n(a);r.Icon.set("hr",l()),s.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},o.pluginSystem.add("hr",function(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",()=>{let t=e.createInside.element("hr");e.s.insertNode(t,!1,!1);let i=n.Dom.closest(t.parentElement,n.Dom.isBlock,e.editor);i&&n.Dom.isEmpty(i)&&i!==e.editor&&(n.Dom.after(i,t),n.Dom.safeRemove(i));let o=n.Dom.next(t,n.Dom.isBlock,e.editor,!1);return o||(o=e.createInside.element(e.o.enter),n.Dom.after(t,o)),e.s.setCursorIn(o),!1})})},17326:function(e,t,i){"use strict";var n=i(5266);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},81144:function(e,t,i){"use strict";var n=i(81937),o=i(28077),r=i(65946);i(17326),o.pluginSystem.add("iframe",function(e){let t=e.options;e.e.on("afterSetMode",()=>{e.isEditorMode()&&e.s.focus()}).on("generateDocumentStructure.iframe",(e,i)=>{let n=e||i.iframe.contentWindow.document;if(n.open(),n.write(t.iframeDoctype+`<html dir="${t.direction}" class="jodit" lang="${(0,r.defaultLanguage)(t.language)}">`+"<head>"+`<title>${t.iframeTitle}</title>`+(t.iframeBaseUrl?`<base href="${t.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),n.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach(e=>{let t=n.createElement("link");(0,r.attr)(t,"rel","stylesheet"),(0,r.attr)(t,"href",e),n.head&&n.head.appendChild(t)}),t.iframeStyle){let e=n.createElement("style");e.innerHTML=t.iframeStyle,n.head&&n.head.appendChild(e)}}).on("createEditor",()=>{if(!t.iframe)return;let i=e.c.element("iframe");i.style.display="block",i.src="about:blank",i.className="jodit-wysiwyg_iframe",(0,r.attr)(i,{allowtransparency:"true",tabindex:t.tabIndex.toString(),frameborder:"0"}),null!=t.iframeSandbox&&(0,r.attr)(i,"sandbox",t.iframeSandbox),e.workplace.appendChild(i),e.iframe=i;let o=e.e.fire("generateDocumentStructure.iframe",null,e);return(0,r.callPromise)(o,()=>{if(!e.iframe)return!1;let i=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;let o=t.editHTMLDocumentMode,s=()=>{(0,r.attr)(i.body,"contenteditable",e.getMode()!==n.MODE_SOURCE&&!e.getReadOnly()||null)},a=e=>{let t=/<body.*<\/body>/im,i="{%%BODY%%}",n=t.exec(e);return n&&(e=e.replace(t,i).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(i,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")),e};if(o){let t=e.element.tagName;if("TEXTAREA"!==t&&"INPUT"!==t)throw(0,r.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",()=>a(e.o.iframeDoctype+i.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:t})=>!e.isLocked&&(/<(html|body)/i.test(t)?a(i.documentElement.outerHTML)!==a(t)&&(i.open(),i.write(e.o.iframeDoctype+a(t)),i.close(),e.editor=i.body,e.e.fire("safeHTML",e.editor),s(),e.e.fire("prepareWYSIWYGEditor"),e.e.stopPropagation("beforeSetNativeEditorValue")):i.body.innerHTML=t,!0),{top:!0})}if(e.editor=i.body,e.e.on("afterSetMode afterInit afterAddPlace",s),"auto"===t.height){i.documentElement&&(i.documentElement.style.overflowY="hidden");let n=e.async.throttle((...i)=>{e.async.requestAnimationFrame(()=>{if(e.editor&&e.iframe&&"auto"===t.height){let t=e.ew.getComputedStyle(e.editor),i=parseInt(t.marginTop||"0",10)+parseInt(t.marginBottom||"0",10);(0,r.css)(e.iframe,"height",e.editor.offsetHeight+i)}})},e.defaultTimeout/2);if(e.e.on("change afterInit afterSetMode resize",n).on([e.iframe,e.ew,i.documentElement],"load",n).on(i,"readystatechange DOMContentLoaded",n),"function"==typeof ResizeObserver){let t=new ResizeObserver(n);t.observe(i.body),e.e.on("beforeDestruct",()=>{t.disconnect()})}}return i.documentElement&&e.e.on(i.documentElement,"mousedown touchend",()=>{e.s.isFocused()||(e.s.focus(),e.editor===i.body&&e.s.setCursorIn(i.body))}).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",t=>{var i;null==(i=e.events)||i.fire(e.ow,t)}),!1})})})},51034:function(e,t,i){"use strict";i(5266).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},39978:function(e,t,i){"use strict";var n=i(31635),o=i(81937),r=i(84839),s=i(28077),a=i(65946),l=i(91206);i(51034);let u="__jodit_imageprocessor_binded",c=u+"blob-id";class d extends l.Plugin{afterInit(e){}beforeDestruct(e){let t=(0,r.cached)(e,"buffer"),i=null==t?void 0:t.get(c);if(t&&i){for(let e of Object.keys(i))URL.revokeObjectURL(e);t.delete(c)}}onAfterGetValueFromEditor(e,t){if(t!==o.SOURCE_CONSUMER)return this.onBeforeSetElementValue(e)}onBeforeSetElementValue(e){let{jodit:t}=this;if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;let i=t.buffer.get(c);if(i)for(let t of Object.keys(i))for(;e.value.includes(t);)e.value=e.value.replace(t,i[t])}async afterChange(e){let{jodit:t}=this;t.editor&&(0,a.$$)("img",t.editor).forEach(e=>{(0,a.dataBind)(e,u)||((0,a.dataBind)(e,u,!0),e.complete||t.e.on(e,"load",function i(){var n;t.isInDestruct||null==(n=t.e)||n.fire("resize"),t.e.off(e,"load",i)}),e.src&&/^data:/.test(e.src)&&function(e,t){if(!e.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let i=t.src,n=function(e){let t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(t.length),o=new Uint8Array(n);for(let e=0;e<t.length;e++)o[e]=t.charCodeAt(e);return new Blob([n],{type:i})}(i);t.src=URL.createObjectURL(n),e.e.fire("internalUpdate");let{buffer:o}=e,r=o.get(c)||{};r[t.src]=i,e.buffer.set(c,r)}(t,e),t.e.on(e,"mousedown touchstart",()=>{t.s.select(e)}))})}}(0,n.__decorate)([(0,r.watch)(":afterGetValueFromEditor")],d.prototype,"onAfterGetValueFromEditor",null),(0,n.__decorate)([(0,r.watch)(":beforeSetElementValue")],d.prototype,"onBeforeSetElementValue",null),(0,n.__decorate)([(0,r.watch)([":change",":afterInit",":changePlace"]),(0,r.debounce)()],d.prototype,"afterChange",null),s.pluginSystem.add("imageProcessor",d)},34689:function(e,t,i){"use strict";i(5266).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}},90886:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(23211),a=i(28077),l=i(65946),u=i(18855),c=i(59400);i(34689);var d=i(27137),h=i(28771),p=i(670),m=i(47744),f=i(71552);class g extends u.Plugin{get form(){return new d.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,h.openImageEditorDialog)(this.j,this.state),openImagePopup:e=>(0,p.openImagePopup)(this.j,this.dialog,this.state,e)})}get dialog(){let{j:e}=this,t=e.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,f.applyValuesToImage)(e,this.state,this.state.sourceImage),e.synchronizeValues(),t.close()}),i.remove.onAction(()=>{e.s.removeNode(this.state.sourceImage),t.close()}),i.cancel.onAction(()=>{t.close()}),t.setHeader(e.i18n("Image properties")),t.setContent(this.form),t.setFooter([[i.cancel,i.remove],i.check]),e.e.on(t,"afterClose",()=>{this.state.image.parentNode&&e.o.image.selectImageAfterClose&&e.s.select(this.state.sourceImage)}),t.setSize(e.o.image.dialogWidth),(0,l.markOwner)(e,t.container),t}get __buttons(){let{j:e}=this;return{check:(0,c.Button)(e,"ok","Apply","primary"),remove:(0,c.Button)(e,"bin","Delete"),cancel:(0,c.Button)(e,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((e,t)=>(0,m.readValuesFromImage)(this.j,this.state).then(e,t)).catch(e=>{(0,l.isAbortError)(e)||this.dialog.message.error(e.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(e=>e.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(e=>e.state.disabled=!1)}afterInit(e){let t=this;e.e.on("afterConstructor changePlace",()=>{e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",i=>{let n=i.target;if(s.Dom.isTag(n,"img"))if(e.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",n))return;t.state.sourceImage=n,t.state.image=n.cloneNode(!0),e.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),t.open())}else i.stopImmediatePropagation(),e.s.select(n)})}).on("openImageProperties.imageproperties",e=>{t.state.sourceImage=e,this.state.image=e.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:e,values:t}=this.state;if(e.src)try{this.__lock();try{await e.decode()}catch(e){}if(this.state.sizeIsLocked&&(0,l.isNumeric)(t.imageWidth)){let e=parseFloat(t.imageWidth.toString());t.imageHeight=Math.round(e/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",e)}catch(e){this.j.alert(e.message)}finally{this.__unlock()}}beforeDestruct(e){var t,i,n;Object.values(null!=(t=(0,r.cached)(this,"__buttons"))?t:{}).forEach(e=>e.destruct()),null==(i=(0,r.cached)(this,"dialog"))||i.destruct(),null==(n=(0,r.cached)(this,"form"))||n.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}constructor(...e){super(...e),(0,n._)(this,"state",{image:new Image,sourceImage:new Image,get ratio(){const{naturalWidth:e,naturalHeight:t}=this.image;return e/t||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}}),(0,n._)(this,"activeTabState",{activeTab:"Image"})}}(0,o.__decorate)([r.cache],g.prototype,"form",null),(0,o.__decorate)([r.cache],g.prototype,"dialog",null),(0,o.__decorate)([r.cache],g.prototype,"__buttons",null),(0,o.__decorate)([(0,r.watch)("state.image")],g.prototype,"onStateValuesImageSrcChange",null),a.pluginSystem.add("imageProperties",g)},26633:function(e,t,i){"use strict";i.d(t,{readAlign:function(){return o}});var n=i(80991);function o(e,t){e.style.cssFloat&&-1!==["left","right"].indexOf(e.style.cssFloat.toLowerCase())?t.align=(0,n.css)(e,"float"):"block"===(0,n.css)(e,"display")&&"auto"===e.style.marginLeft&&"auto"===e.style.marginRight?t.align="center":t.align=""}},47744:function(e,t,i){"use strict";i.d(t,{readValuesFromImage:function(){return l}});var n=i(7909),o=i(26633),r=i(79310),s=i(18380),a=i(57339);async function l(e,t){let{sourceImage:i,values:l}=t;return(0,o.readAlign)(i,l),l.borderRadius=parseInt(i.style.borderRadius||"0",10)||0,l.id=(0,n.attr)(i,"id")||"",l.imageTitle=(0,n.attr)(i,"title")||"",l.imageAlt=(0,n.attr)(i,"alt")||"",l.style=(0,n.attr)(i,"style")||"",l.classes=((0,n.attr)(i,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,s.readMargins)(i,l,t),(0,r.readLink)(t,e,l),l.imageSrc=(0,n.attr)(i,"src")||"",(0,a.readSizes)(i,l,t)}},79310:function(e,t,i){"use strict";i.d(t,{readLink:function(){return r}});var n=i(23211),o=i(7909);function r(e,t,i){let r=n.Dom.closest(e.sourceImage,"a",t.editor);r?(i.imageLink=(0,o.attr)(r,"href")||"",i.imageLinkOpenInNewTab="_blank"===(0,o.attr)(r,"target")):(i.imageLink="",i.imageLinkOpenInNewTab=!1)}},18380:function(e,t,i){"use strict";i.d(t,{readMargins:function(){return o}});var n=i(74264);function o(e,t,i){let o=!0,r=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(i=>{let s=e.style.getPropertyValue((0,n.kebabCase)(i));if(!s){r=!0,t[i]=0;return}/^[0-9]+(px)?$/.test(s)&&(s=parseInt(s,10)),t[i]=s,(r&&t[i]||o&&"marginTop"!==i&&t[i]!==t.marginTop)&&(o=!1)}),i.marginIsLocked=o}},57339:function(e,t,i){"use strict";i.d(t,{readSizes:function(){return a}});var n=i(70222),o=i(7909),r=i(80991),s=i(10808);async function a(e,t,i){try{await e.decode()}catch(e){}let a=(0,r.css)(e,"width",!0)||(0,o.attr)(e,"width")||!1,l=(0,r.css)(e,"height",!0)||(0,o.attr)(e,"height")||!1;t.imageWidth=!1!==a?(0,s.normalSizeFromString)(a):e.offsetWidth||e.naturalWidth,(0,n.isNumeric)(t.imageWidth)?t.imageHeight=!1!==l?(0,s.normalSizeFromString)(l):e.offsetHeight||e.naturalHeight:t.imageHeight=l||"";let{imageWidth:u,imageHeight:c}=t,d=parseFloat(u.toString());if(!(0,n.isNumeric)(u)||!(0,n.isNumeric)(c)){i.sizeIsLocked=!1;return}if(!1===l){t.imageHeight=Math.round(d/i.ratio),i.sizeIsLocked=!0;return}i.sizeIsLocked=1>Math.abs(d-parseFloat(c.toString())*i.ratio)}},27137:function(e,t,i){"use strict";i.d(t,{UIImagePropertiesForm:function(){return p}});var n=i(25045),o=i(31635),r=i(84839),s=i(91672),a=i(65946),l=i(63468),u=i(29434),c=i(15753),d=i(29596),h=i(17306);class p extends l.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(e){let t=super.getElm(e);if(t)return t;for(let t of this.elements){let i=t.getElm(e);if(i)return i}return null}render(){return`<form>
129
129
  <div class="jodit-grid jodit-grid_xs-column">
130
130
  <div class="jodit_col-lg-2-5 jodit_col-xs-5-5">
131
131
  <div class="&__view-box">
@@ -204,7 +204,7 @@
204
204
  >
205
205
  <label>~Border radius~</label>
206
206
  <input type="number" class="jodit-input &__borderRadius"/>
207
- </div>`}onStateAlignChange(){this.getElm("align").value=this.state.values.align}onChangeAlign(){let e=this.getElm("align");this.state.values.align=e.value}onStateValuesBorderRadiusChange(){this.getElm("borderRadius").value=this.state.values.borderRadius.toString()}onChangeBorderRadius(){let e=this.getElm("borderRadius");this.state.values.borderRadius=parseFloat(e.value)}onStateValuesIdChange(){this.getElm("id").value=this.state.values.id}onChangeId(){let e=this.getElm("id");this.state.values.id=e.value}onStateValuesStyleChange(){this.getElm("style").value=this.state.values.style}onChangeStyle(){let e=this.getElm("style");this.state.values.style=e.value}onStateValuesClassesChange(){this.getElm("classes").value=this.state.values.classes}onChangClasses(){let e=this.getElm("classes");this.state.values.classes=e.value}onLockMarginClick(e){this.state.marginIsLocked=!this.state.marginIsLocked,e.preventDefault()}onChangeMarginIsLocked(){let e=this.getElm("marginBottom"),t=this.getElm("marginRight"),i=this.getElm("marginLeft"),n=this.getElm("lockMargin");if([t,e,i].forEach(e=>{(0,c.attr)(e,"disabled",this.state.marginIsLocked||null)}),n.innerHTML=h.Icon.get(this.state.marginIsLocked?"lock":"unlock"),this.state.marginIsLocked){let e=this.state.values.marginTop;this.state.values.marginRight=e,this.state.values.marginBottom=e,this.state.values.marginLeft=e}}onStateValuesMarginChange(){let e=this.getElm("marginTop"),t=this.getElm("marginRight"),i=this.getElm("marginBottom"),n=this.getElm("marginLeft");e.value=this.state.values.marginTop.toString(),t.value=this.state.values.marginRight.toString(),i.value=this.state.values.marginBottom.toString(),n.value=this.state.values.marginLeft.toString()}onChangeMargin(){let e=this.getElm("marginTop"),t=this.getElm("marginRight"),i=this.getElm("marginBottom"),n=this.getElm("marginLeft");this.state.values.marginTop=(0,p.normalSizeFromString)(e.value),this.state.marginIsLocked?(this.state.values.marginRight=this.state.values.marginTop,this.state.values.marginBottom=this.state.values.marginTop,this.state.values.marginLeft=this.state.values.marginTop):(this.state.values.marginRight=(0,p.normalSizeFromString)(t.value),this.state.values.marginBottom=(0,p.normalSizeFromString)(i.value),this.state.values.marginLeft=(0,p.normalSizeFromString)(n.value))}hideFieldByOptions(){let e=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach(([t,i])=>{let n=this.getElm(i);(0,l.css)(n,"display",e[t]?null:"none")})}constructor(e,t,i){super(e,{availableClasses:e.o.image.availableClasses}),(0,n._)(this,"state",void 0),(0,n._)(this,"handlers",void 0),this.state=t,this.handlers=i}}(0,o.__decorate)([(0,s.hook)("ready"),(0,a.watch)("state.values.align")],m.prototype,"onStateAlignChange",null),(0,o.__decorate)([(0,a.watch)("align:change")],m.prototype,"onChangeAlign",null),(0,o.__decorate)([(0,s.hook)("ready"),(0,a.watch)("state.values.borderRadius")],m.prototype,"onStateValuesBorderRadiusChange",null),(0,o.__decorate)([(0,a.watch)("borderRadius:change")],m.prototype,"onChangeBorderRadius",null),(0,o.__decorate)([(0,s.hook)("ready"),(0,a.watch)("state.values.id")],m.prototype,"onStateValuesIdChange",null),(0,o.__decorate)([(0,a.watch)("id:change")],m.prototype,"onChangeId",null),(0,o.__decorate)([(0,s.hook)("ready"),(0,a.watch)("state.values.style")],m.prototype,"onStateValuesStyleChange",null),(0,o.__decorate)([(0,a.watch)("style:change")],m.prototype,"onChangeStyle",null),(0,o.__decorate)([(0,s.hook)("ready"),(0,a.watch)("state.values.classes")],m.prototype,"onStateValuesClassesChange",null),(0,o.__decorate)([(0,a.watch)("classes:change")],m.prototype,"onChangClasses",null),(0,o.__decorate)([(0,a.watch)("lockMargin:click")],m.prototype,"onLockMarginClick",null),(0,o.__decorate)([(0,s.hook)("ready"),(0,a.watch)("state.marginIsLocked")],m.prototype,"onChangeMarginIsLocked",null),(0,o.__decorate)([(0,s.hook)("ready"),(0,a.watch)(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],m.prototype,"onStateValuesMarginChange",null),(0,o.__decorate)([(0,a.watch)(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],m.prototype,"onChangeMargin",null),(0,o.__decorate)([(0,s.hook)("ready")],m.prototype,"hideFieldByOptions",null),m=(0,o.__decorate)([r.component],m)},28771:function(e,t,i){"use strict";i.d(t,{openImageEditorDialog:function(){return s}});var n=i(85932),o=i(7909),r=i(43271);function s(e,t){let i=(0,o.attr)(t.image,"src")||"",s=e.c.element("a"),a=()=>{if(s.host!==location.host)return void e.confirm("You can only edit your own images. Download this image on the host?",i=>{i&&e.uploader&&e.uploader.uploadRemoteImage(s.href.toString(),i=>{e.alert("The image has been successfully uploaded to the host!",()=>{(0,n.isString)(i.newfilename)&&(t.values.imageSrc=i.baseurl+i.newfilename)})},t=>{e.alert("There was an error loading %s",t.message)})})};s.href=i,e.filebrowser.dataProvider.getPathByUrl(s.href.toString()).then(n=>{r.openImageEditor.call(e.filebrowser,s.href,n.name,n.path,n.source,e=>{let n=new Date().getTime(),o=e||i;t.values.imageSrc=o+(-1!==o.indexOf("?")?"":"?")+"&_tmp="+n.toString()},t=>{e.alert(t.message)})}).catch(t=>{e.alert(t.message,a)})}},670:function(e,t,i){"use strict";i.d(t,{openImagePopup:function(){return a}});var n=i(17312),o=i(23599),r=i(51116),s=i(18762);function a(e,t,i,a){let l=new r.Popup(t),u=()=>{l.close(),l.destruct()};l.setContent((0,s.FileSelectorWidget)(e,{upload:e=>{e.files&&e.files.length&&(i.values.imageSrc=e.baseurl+e.files[0]),u()},filebrowser:async e=>{e&&(0,n.isArray)(e.files)&&e.files.length&&(i.values.imageSrc=e.files[0],u())}},i.image,u)).open(()=>(0,o.position)(a))}},10808:function(e,t,i){"use strict";i.d(t,{normalSizeFromString:function(){return r},normalSizeToString:function(){return s}});var n=i(72412),o=i(4040);let r=e=>/^[-+]?[0-9.]+(px)?$/.test(e.toString())?parseFloat(e.toString()):e,s=e=>(0,n.isNumber)(e)?e?e+"px":e.toString():(e=(0,o.trim)(e),/^[0-9]+$/.test(e)?e+"px":e)},71552:function(e,t,i){"use strict";i.d(t,{applyValuesToImage:function(){return l}});var n=i(23211),o=i(93640),r=i(49422),s=i(21132),a=i(49147);function l(e,t,i){let{style:l,imageSrc:u,borderRadius:c,imageTitle:d,imageAlt:h,imageLink:p,imageWidth:m,imageHeight:f,marginTop:g,marginRight:v,marginBottom:_,marginLeft:b,imageLinkOpenInNewTab:y,align:S,classes:w,id:C}=t.values,k=e.o;(k.image.editStyle&&(0,o.attr)(i,"style",l||null),u)?((0,o.attr)(i,"src",u),i.style.borderRadius=c?c+"px":"",(0,o.attr)(i,"title",d||null),(0,o.attr)(i,"alt",h||null),(0,r.applyLink)(e,i,p,y),(0,a.applySize)(i,m,f,t.sizeIsLocked),e.o.image.editMargins&&(0,s.applyMargin)(e,g,v,_,b,i,t.marginIsLocked),k.image.editClass&&(0,o.attr)(i,"class",w||null),k.image.editId&&(0,o.attr)(i,"id",C||null),k.image.editAlign&&(0,o.hAlignElement)(i,S)):n.Dom.safeRemove(i)}},49422:function(e,t,i){"use strict";i.d(t,{applyLink:function(){return r}});var n=i(23211),o=i(7909);function r(e,t,i,r){let s=n.Dom.closest(t,"a",e.editor);i?(s||(s=n.Dom.wrap(t,"a",e.createInside)),(0,o.attr)(s,"href",i),(0,o.attr)(s,"target",r?"_blank":null)):s&&s.parentNode&&s.parentNode.replaceChild(t,s)}},21132:function(e,t,i){"use strict";i.d(t,{applyMargin:function(){return r}});var n=i(80991),o=i(10808);function r(e,t,i,r,s,a,l){let u=[t,i,r,s],c=(e,t)=>{let i=(0,n.css)(a,e),r=(0,o.normalSizeToString)(t);i.toString()!==r.toString()&&(0,n.css)(a,e,r)};if(l)c("margin",t);else{let e=["margin-top","margin-right","margin-bottom","margin-left"];u.forEach((t,i)=>{c(e[i],t)})}}},49147:function(e,t,i){"use strict";i.d(t,{applySize:function(){return a}});var n=i(70222),o=i(7909),r=i(80991),s=i(10808);function a(e,t,i,a){if(t!==e.offsetWidth||i!==e.offsetHeight){let l=t?(0,s.normalSizeToString)(t):null,u=i?(0,s.normalSizeToString)(i):null;(0,r.css)(e,{width:l,height:l&&a?null:u}),(0,o.attr)(e,"width",l&&(0,n.isNumeric)(t)&&(0,o.attr)(e,"width")?l:null),(!(0,o.attr)(e,"width")||a)&&(u=null),(0,o.attr)(e,"height",u)}}},90826:function(e,t,i){"use strict";var n=i(27795),o=i(28077),r=i(65946),s=i(29434),a=i(5266),l=i(15753),u=i(64831),c=i.n(u);s.Icon.set("image",c()),a.Config.prototype.controls.image={popup:(e,t,i)=>{let o=null;return t&&!n.Dom.isText(t)&&n.Dom.isHTMLElement(t)&&(n.Dom.isTag(t,"img")||(0,r.$$)("img",t).length)&&(o=n.Dom.isTag(t,"img")?t:(0,r.$$)("img",t)[0]),e.s.save(),(0,l.FileSelectorWidget)(e,{filebrowser:t=>{e.s.restore(),t.files&&t.files.forEach(i=>e.s.insertImage(t.baseurl+i,null,e.o.imageDefaultWidth)),i()},upload:!0,url:async(t,n)=>{e.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(t)&&(t="//"+t);let r=o||e.createInside.element("img");r.setAttribute("src",t),r.setAttribute("alt",n),o||await e.s.insertImage(r,null,e.o.imageDefaultWidth),i()}},o,i)},tags:["img"],tooltip:"Insert Image"},o.pluginSystem.add("image",function(e){e.registerButton({name:"image",group:"media"})})},42360:function(e,t,i){"use strict";var n=i(27795),o=i(29434),r=i(5266),s=i(67176),a=i.n(s),l=i(14017),u=i.n(l),c=i(11917);o.Icon.set("indent",a()).set("outdent",u()),r.Config.prototype.controls.indent={tooltip:"Increase Indent"},r.Config.prototype.controls.outdent={isDisabled:e=>{let t=e.s.current();if(t){let i=n.Dom.closest(t,n.Dom.isBlock,e.editor);if(i){let t=(0,c.getKey)(e.o.direction,i);return!i.style[t]||0>=parseInt(i.style[t],10)}}return!0},tooltip:"Decrease Indent"},r.Config.prototype.indentMargin=10},11917:function(e,t,i){"use strict";i.d(t,{getKey:function(){return o}});var n=i(23211);let o=(e,t)=>`${n.Dom.isCell(t)?"padding":"margin"}${"rtl"===e?"Right":"Left"}`},39e3:function(e,t,i){"use strict";var n=i(81937),o=i(27795),r=i(28077),s=i(93640);i(42360);var a=i(11917);let l=(e,t,i,n)=>{if(!t||e.has(t))return;let o=(0,a.getKey)(i.o.direction,t);e.add(t);let r=t.style[o]?parseInt(t.style[o],10):0;r+=i.o.indentMargin*("outdent"===n?-1:1),t.style[o]=r>0?r+"px":"",(0,s.attr)(t,"style")||(0,s.attr)(t,"style",null)};r.pluginSystem.add("indent",function(e){e.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});let t=t=>{let i=new Set,{enter:r,enterBlock:a}=e.o,u=r.toLowerCase()===n.BR,c=e.s.current();return u&&e.s.isCollapsed()&&c?l(i,o.Dom.wrapNextInline(c,a,e),e,t):(e.s.eachSelection(n=>{e.s.save();let c=!!n&&o.Dom.up(n,o.Dom.isBlock,e.editor);if(!c&&n&&(c=(0,s.call)(u?o.Dom.wrapNextInline:o.Dom.wrapInline,n,u?a:r.toLowerCase(),e)),!c)return e.s.restore(),!1;l(i,c,e,t),e.s.restore()}),e.synchronizeValues()),!1};e.registerCommand("indent",{exec:t,hotkeys:["ctrl+]","cmd+]"]}),e.registerCommand("outdent",{exec:t,hotkeys:["ctrl+[","cmd+["]})})},93637:function(e,t,i){"use strict";i(94358),i(42766),i(28286),i(63974),i(91678),i(58910),i(11018),i(43354),i(42462),i(30062),i(64222),i(43102),i(3678),i(49764),i(78690),i(50294),i(53390),i(69696),i(50982),i(2952),i(81144),i(90826),i(39978),i(90886),i(39e3),i(88952),i(64094),i(18210),i(50662),i(58354),i(68624),i(76830),i(74240),i(98792),i(23422),i(96730),i(7758),i(28346),i(198),i(49690),i(41134),i(59758),i(14248),i(72214),i(74522),i(30500),i(98988),i(2756),i(44322),i(13810),i(90204),i(86236),i(67582),i(11774),i(14774),i(81582),i(7994),i(30110),i(34142),i(22980),i(56894),i(52014),i(31262)},89873:function(e,t,i){"use strict";var n=i(28686),o=i(29434),r=i(5266),s=i(70235),a=i(17849),l=i(466),u=i(75711),c=i(59399),d=i(38681),h=i.n(d),p=i(64637),m=i.n(p),f=i(94190),g=i.n(f),v=i(51957),_=i.n(v),b=i(71940),y=i.n(b),S=i(43218),w=i.n(S),C=i(48007),k=i.n(C);r.Config.prototype.toolbarInline=!0,r.Config.prototype.toolbarInlineForSelection=!1,r.Config.prototype.toolbarInlineDisableFor=[],r.Config.prototype.toolbarInlineDisabledButtons=["source"],o.Icon.set("addcolumn",h()).set("addrow",m()).set("merge",g()).set("th",w()).set("splitg",_()).set("splitv",y()).set("th-list",k()),a.default.forEach(e=>{(0,n.isString)(e)||!e.name||r.Config.prototype.controls[e.name]||(r.Config.prototype.controls[e.name]=e)}),r.Config.prototype.popup={a:s.default,img:u.default,cells:a.default,toolbar:c.default,jodit:l.default,iframe:l.default,"jodit-media":l.default,selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]}},70235:function(e,t,i){"use strict";var n=i(7909);t.default=[{name:"eye",tooltip:"Open link",exec:(e,t)=>{let i=(0,n.attr)(t,"href");t&&i&&e.ow.open(i)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},17849:function(e,t,i){"use strict";var n=i(28686),o=i(80991);let r=e=>e.args&&(0,n.isString)(e.args[0])?e.args[0].toLowerCase():"";t.default=["brushCell",{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:(e,t,i)=>i,exec:(e,t,{control:i})=>{let n=r(i);e.getInstance("Table",e.o).getAllSelectedCells().forEach(e=>{(0,o.css)(e,"vertical-align","normal"===n?"":n)})},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},"\n",{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec:(e,t,{control:i})=>{if(!(0,n.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec:(e,t,{control:i})=>{if(!(0,n.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t)},tooltip:"Add row"},{name:"deleteTable",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec:(e,t,{control:i})=>{if(!(0,n.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t),e.e.fire("hidePopup")},tooltip:"Delete"}]},466:function(e,t,i){"use strict";t.default=[{name:"bin",tooltip:"Delete",exec:(e,t)=>{t&&e.s.removeNode(t)}},i(75711).align]},75711:function(e,t,i){"use strict";i.d(t,{align:function(){return a}});var n=i(27795),o=i(85932),r=i(16849),s=i(80991);let a={name:"left",childTemplate:(e,t,i)=>i,list:["Left","Right","Center","Normal"],exec:(e,t,{control:i})=>{if(!n.Dom.isTag(t,new Set(["img","jodit","jodit-media"])))return;let s=i.args&&(0,o.isString)(i.args[0])?i.args[0].toLowerCase():"";if(!s)return!1;(0,r.hAlignElement)(t,s),n.Dom.isTag(t,new Set(["jodit","jodit-media"]))&&t.firstElementChild&&(0,r.hAlignElement)(t.firstElementChild,s),e.synchronizeValues(),e.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"};t.default=[{name:"delete",icon:"bin",tooltip:"Delete",exec:(e,t)=>{t&&e.s.removeNode(t)}},{name:"pencil",exec(e,t){"img"===t.tagName.toLowerCase()&&e.e.fire("openImageProperties",t)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec:(e,t,{control:i})=>{if(!n.Dom.isTag(t,"img"))return;let r=i.args&&(0,o.isString)(i.args[0])?i.args[0].toLowerCase():"";if(!r)return!1;(0,s.css)(t,"vertical-align","normal"===r?"":r),e.e.fire("recalcPositionPopup")}},a]},59399:function(e,t){"use strict";t.default=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},88952:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(27795),a=i(28077),l=i(65946),u=i(91206),c=i(4099),d=i(56490),h=i(4274);i(89873);class p extends u.Plugin{get popup(){return new d.Popup(this.jodit,!1)}get toolbar(){return(0,h.makeCollection)(this.jodit,this.popup)}onClick(e){let t=this.elmsList,i=s.Dom.isTag(e,"img")?e:s.Dom.closest(e,t,this.j.editor);if(i&&this.canShowPopupForType(i.nodeName.toLowerCase()))return this.showPopup(()=>(0,l.position)(i,this.j),i.nodeName.toLowerCase(),i),!1}showPopup(e,t,i){if(t=t.toLowerCase(),!this.canShowPopupForType(t))return!1;if(this.type!==t||i!==this.previousTarget){let e;this.previousTarget=i;let n=this.j.o.popup[t];if(e=(0,l.isFunction)(n)?n(this.j,i,this.popup.close):n,(0,l.isArray)(e)){let t=this.j.o.toolbarInlineDisabledButtons;this.toolbar.build(t.length?e.filter(e=>{let i=(0,l.isString)(e)?e:e.name;return!t.includes(null!=i?i:"")}):e,i),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,e=this.toolbar.container}this.popup.setContent(e),this.type=t}return this.popup.open(e),!0}hidePopup(e){this.popup.isOpened&&(!(0,l.isString)(e)||e===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(e){let t=this.j.o.popup[e.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!t&&!this.isExcludedTarget(e)}isExcludedTarget(e){return(0,l.splitArray)(this.j.o.toolbarInlineDisableFor).map(e=>e.toLowerCase()).includes(e.toLowerCase())}afterInit(e){this.j.e.on("getDiffButtons.mobile",t=>{if(this.toolbar===t){let t=this.toolbar.getButtonsNames();return(0,l.toArray)(e.registeredButtons).filter(e=>!this.j.o.toolbarInlineDisabledButtons.includes(e.name)).filter(e=>{let i=(0,l.isString)(e)?e:e.name;return i&&"|"!==i&&"\n"!==i&&!t.includes(i)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",(e,t,i)=>{this.showPopup(t,i||((0,l.isString)(e)?e:e.nodeName),(0,l.isString)(e)?void 0:e)}).on("mousedown keydown",this.onSelectionStart).on("change",()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)}).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.addListenersForElements()}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(e){if(e&&e.target&&c.UIElement.closestElement(e.target,d.Popup))return;let{snapRange:t}=this,{range:i}=this.j.s;(!t||i.collapsed||i.startContainer!==t.startContainer||i.startOffset!==t.startOffset||i.endContainer!==t.endContainer||i.endOffset!==t.endOffset)&&this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;let e="selection",t=this.j.s.sel,i=this.j.s.range;if((null==t?void 0:t.isCollapsed)||this.isSelectedTarget(i)){this.type===e&&this.popup.isOpened&&this.hidePopup();return}this.j.s.current()&&this.showPopup(()=>i.getBoundingClientRect(),e)}isSelectedTarget(e){let t=e.startContainer;return s.Dom.isElement(t)&&t===e.endContainer&&s.Dom.isTag(t.childNodes[e.startOffset],new Set((0,l.keys)(this.j.o.popup,!1)))&&e.startOffset===e.endOffset-1}beforeDestruct(e){e.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}_eventsList(){let e=this.elmsList;return e.map(e=>(0,l.camelCase)(`click_${e}`)).concat(e.map(e=>(0,l.camelCase)(`touchstart_${e}`))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(e){this.showPopup(()=>{if(e)return e;let{range:t}=this.j.s;return t.getBoundingClientRect()},"toolbar")}constructor(...e){super(...e),(0,n._)(this,"type",null),(0,n._)(this,"previousTarget",void 0),(0,n._)(this,"snapRange",null),(0,n._)(this,"elmsList",(0,l.keys)(this.j.o.popup,!1).filter(e=>!this.isExcludedTarget(e)))}}(0,n._)(p,"requires",["select"]),(0,o.__decorate)([r.cache],p.prototype,"popup",null),(0,o.__decorate)([r.cache],p.prototype,"toolbar",null),(0,o.__decorate)([r.autobind],p.prototype,"onClick",null),(0,o.__decorate)([(0,r.wait)(e=>!e.j.isLocked)],p.prototype,"showPopup",null),(0,o.__decorate)([(0,r.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),r.autobind],p.prototype,"hidePopup",null),(0,o.__decorate)([(0,r.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),(0,o.__decorate)([r.autobind],p.prototype,"onSelectionStart",null),(0,o.__decorate)([r.autobind],p.prototype,"onSelectionEnd",null),(0,o.__decorate)([(0,r.debounce)(e=>e.defaultTimeout)],p.prototype,"onSelectionChange",null),(0,o.__decorate)([r.autobind],p.prototype,"showInlineToolbar",null),a.pluginSystem.add("inlinePopup",p)},64094:function(e,t,i){"use strict";var n=i(23211),o=i(28077),r=i(65946),s=i(16849),a=i(80991),l=i(29434),u=i(5266),c=i(80515),d=i.n(c);l.Icon.set("justify",d()),u.Config.prototype.controls.align={name:"left",tooltip:"Align",update(e,t){let i=t.control,o=e.s.current();if(o){let s=n.Dom.closest(o,n.Dom.isBlock,e.editor)||e.editor,l=(0,a.css)(s,"text-align").toString();i.defaultValue&&-1!==i.defaultValue.indexOf(l)&&(l="left");let{list:u,data:c}=i;c&&c.currentValue!==l&&u&&((0,r.isPlainObject)(u)?u[l]:u.includes(l))&&(e.o.textIcons||"select"===i.component?t.state.text=l:t.state.icon.name=l,c.currentValue=l)}},isActive:(e,t)=>{let i=e.s.current();if(!i||!t.control.defaultValue)return!1;let o=n.Dom.closest(i,n.Dom.isBlock,e.editor)||e.editor;return -1===t.control.defaultValue.indexOf((0,a.css)(o,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},u.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},u.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},u.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},u.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},o.pluginSystem.add("justify",function(e){e.registerButton({name:"align",group:"indent"});let t=t=>(e.s.focus(),e.s.eachSelection(i=>{if(!i)return;let o=n.Dom.up(i,n.Dom.isBlock,e.editor);o||(o=n.Dom.wrapInline(i,e.o.enterBlock,e)),(0,s.alignElement)(t,o)}),!1);e.registerCommand("justifyfull",t),e.registerCommand("justifyright",t),e.registerCommand("justifyleft",t),e.registerCommand("justifycenter",t)})},18210:function(e,t,i){"use strict";var n=i(31635),o=i(81937),r=i(84839),s=i(23211),a=i(28077),l=i(91206);class u extends l.Plugin{afterInit(e){}beforeDestruct(e){}onKeyDownArrow(e){var t;if(e.key!==o.KEY_RIGHT||!this.j.selection.isCollapsed())return;let{endContainer:i,endOffset:n}=this.j.selection.range;if(s.Dom.isText(i)&&(null==(t=i.nodeValue)?void 0:t.length)===n){let{parentNode:e}=i;s.Dom.isInlineBlock(e)&&!s.Dom.findNotEmptyNeighbor(e,!1,this.j.editor)&&s.Dom.after(e,this.j.createInside.text(o.NBSP_SPACE))}}}(0,n.__decorate)([(0,r.watch)(":keydown")],u.prototype,"onKeyDownArrow",null),a.pluginSystem.add("keyArrowOutside",u)},82147:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.limitWords=!1,n.Config.prototype.limitChars=!1,n.Config.prototype.limitHTML=!1},50662:function(e,t,i){"use strict";var n=i(31635),o=i(81937),r=i(84839),s=i(28077),a=i(91206);i(82147);class l extends a.Plugin{afterInit(e){let{limitWords:t,limitChars:i}=e.o;if(e&&(t||i)){let t=null;e.e.off(".limit").on("beforePaste.limit",()=>{t=e.history.snapshot.make()}).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",()=>{if(this.__shouldDenyInput(!0)&&t)return e.history.snapshot.restore(t),e.e.fire("denyPaste.limit"),!1})}}shouldPreventInsertHTML(e){return!(e&&(o.COMMAND_KEYS.includes(e.key)||e.ctrlKey||e.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(e){var t,i;let{jodit:n}=this,{limitWords:o,limitChars:r}=n.o,s=n.o.limitHTML?n.value:n.text,a=this.__splitWords(s);if(o&&(t=a.length,e?t>o:t>=o))return n.e.fire("denyWords.limit limit.limit"),!0;let l=!!(r&&(i=a.join("").length,e?i>r:i>=r));return l&&n.e.fire("denyChars.limit limit.limit"),l}checkPreventKeyPressOrPaste(e){if(this.shouldPreventInsertHTML(e))return!1}checkPreventChanging(e,t){let{jodit:i}=this;this.__shouldDenyInput(!0)&&(i.value=t)}__splitWords(e){return e.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").split((0,o.SPACE_REG_EXP)()).filter(e=>e.length)}beforeDestruct(e){e.e.off(".limit")}}(0,n.__decorate)([r.autobind],l.prototype,"checkPreventKeyPressOrPaste",null),(0,n.__decorate)([r.autobind],l.prototype,"checkPreventChanging",null),s.pluginSystem.add("limit",l)},87908:function(e,t,i){"use strict";var n=i(65946),o=i(29434),r=i(5266),s=i(223),a=i.n(s);r.Config.prototype.defaultLineHeight=null,o.Icon.set("line-height",a()),r.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(e,t,{control:i})=>(0,n.memorizeExec)(e,t,{control:i},e=>e)}},40685:function(e){e.exports={"Line height":"ارتفاع الخط"}},11246:function(e){e.exports={"Line height":"V\xfdška č\xe1ry"}},98181:function(e){e.exports={"Line height":"Zeilenh\xf6he"}},65402:function(e){e.exports={"Line height":"Altura de la l\xednea"}},12383:function(e){e.exports={"Line height":"ارتفاع خط"}},38327:function(e){e.exports={"Line height":"Rivin korkeus"}},42210:function(e){e.exports={"Line height":"Hauteur de ligne"}},98361:function(e){e.exports={"Line height":"גובה שורה"}},84041:function(e){e.exports={"Line height":"Vonal magass\xe1ga"}},87623:function(e){e.exports={"Line height":"Tinggi baris"}},5070:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n},cs_cz:function(){return o},de:function(){return r},es:function(){return s},fa:function(){return a},fi:function(){return l},fr:function(){return u},he:function(){return c},hu:function(){return d},id:function(){return h},it:function(){return p},ja:function(){return m},ko:function(){return f},mn:function(){return g},nl:function(){return v},pl:function(){return _},pt_br:function(){return b},ru:function(){return y},tr:function(){return S},ua:function(){return w},zh_cn:function(){return C},zh_tw:function(){return k}});var n=i(40685),o=i(11246),r=i(98181),s=i(65402),a=i(12383),l=i(38327),u=i(42210),c=i(98361),d=i(84041),h=i(87623),p=i(91575),m=i(89739),f=i(13732),g=i(43829),v=i(36740),_=i(554),b=i(53345),y=i(85127),S=i(1840),w=i(14224),C=i(13534),k=i(95562)},91575:function(e){e.exports={"Line height":"Altezza linea"}},89739:function(e){e.exports={"Line height":"ラインの高さ"}},13732:function(e){e.exports={"Line height":"선 높이"}},43829:function(e){e.exports={"Line height":"Зураасны өндөр"}},36740:function(e){e.exports={"Line height":"Lijnhoogte"}},554:function(e){e.exports={"Line height":"Wysokość linii"}},53345:function(e){e.exports={"Line height":"Altura da linha"}},85127:function(e){e.exports={"Line height":"Высота линии"}},1840:function(e){e.exports={"Line height":"\xc7izgi y\xfcksekliği"}},14224:function(e){e.exports={"Line height":"Висота лінії"}},13534:function(e){e.exports={"Line height":"线高"}},95562:function(e){e.exports={"Line height":"行高"}},58354:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(23211),a=i(28077),l=i(65946),u=i(91206);i(87908);var c=i(5070);class d extends u.Plugin{afterInit(e){(0,l.css)(e.editor,{lineHeight:e.o.defaultLineHeight}),e.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(e,t,i){let n,{s:o,createInside:r,editor:a,o:u}=this.j;o.isFocused()||o.focus(),o.save();let c=e=>{let t=s.Dom.closest(e,s.Dom.isBlock,a);t||(t=s.Dom.wrap(e,u.enter,r));let o=(0,l.css)(t,"lineHeight");void 0===n&&(n=o.toString()!==i.toString()),(0,l.css)(t,"lineHeight",n?i:null)};try{if(o.isCollapsed()){let e=r.fake();o.insertNode(e,!1,!1),c(e),s.Dom.safeRemove(e)}else o.eachSelection(c)}finally{o.restore()}}beforeDestruct(e){(0,l.css)(e.editor,{lineHeight:null})}constructor(e){super(e),(0,n._)(this,"buttons",[{name:"lineHeight",group:"font"}]),(0,a.extendLang)(c)}}(0,o.__decorate)([r.autobind],d.prototype,"applyLineHeight",null),a.pluginSystem.add("lineHeight",d)},65230:function(e,t,i){"use strict";var n=i(23211),o=i(29434),r=i(5266),s=i(95032),a=i.n(s),l=i(73533),u=i.n(l),c=i(45778);r.Config.prototype.link={formTemplate:c.formTemplate,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},o.Icon.set("link",a()).set("unlink",u()),r.Config.prototype.controls.unlink={exec:(e,t)=>{let i=n.Dom.closest(t,"a",e.editor);i&&n.Dom.unwrap(i),e.synchronizeValues(),e.e.fire("hidePopup")},tooltip:"Unlink"},r.Config.prototype.controls.link={isActive:e=>{let t=e.s.current();return!!(t&&n.Dom.closest(t,"a",e.editor))},popup:(e,t,i)=>e.e.fire("generateLinkForm.link",t,i),tags:["a"],tooltip:"Insert link"}},68624:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(27795),a=i(28077),l=i(65946),u=i(91206);i(65230);class c extends u.Plugin{afterInit(e){e.o.link.followOnDblClick&&e.e.on("dblclick.link",this.__onDblClickOnLink),e.e.on(e.editor,"click.link",this.__onClickReadOnlyLink),e.o.link.processPastedLink&&e.e.on("processPaste.link",this.onProcessPasteLink),e.e.on("generateLinkForm.link",this.__generateForm),e.registerCommand("openLinkDialog",{exec:()=>{let t=e.dlg({resizable:!1}),i=this.__generateForm(e.s.current(),()=>{t.close()});i.container.classList.add("jodit-dialog_alert"),t.setContent(i),t.open(),e.async.requestIdleCallback(()=>{let{url_input:e}=(0,l.refs)(i.container);null==e||e.focus()})},hotkeys:e.o.link.hotkeys})}__onDblClickOnLink(e){if(!s.Dom.isTag(e.target,"a"))return;let t=(0,l.attr)(e.target,"href");t&&(location.href=t,e.preventDefault())}onProcessPasteLink(e,t){let{jodit:i}=this;if((0,l.isURL)(t)&&i.o.link.processPastedLink){if(i.e.stopPropagation("processPaste"),i.o.link.processVideoLink){var n,o,r,s;let e=(0,l.call)(null!=(n=null==(o=i.o.video)?void 0:o.parseUrlToVideoEmbed)?n:l.convertMediaUrlToVideoEmbed,t,{width:null==(r=i.o.video)?void 0:r.defaultWidth,height:null==(s=i.o.video)?void 0:s.defaultHeight});if(e!==t)return i.createInside.fromHTML(e)}if(i.s.isCollapsed()){let e=i.createInside.element("a");return e.setAttribute("href",t),e.textContent=t,i.e.fire("applyLink",i,e,null),e}return i.s.commitStyle({element:"a",attributes:{href:t}}),!0}}__generateForm(e,t){let i,{jodit:n}=this,o=n.i18n.bind(n),{openInNewTabCheckbox:r,noFollowCheckbox:a,formTemplate:u,formClassName:c,modeClassName:d}=n.o.link,h=u(n),p=(0,l.isString)(h)?n.c.fromHTML(h,{target_checkbox_box:r,nofollow_checkbox_box:a}):h,m=s.Dom.isElement(p)?p:p.container,f=(0,l.refs)(m),{insert:g,unlink:v,content_input_box:_}=f,{target_checkbox:b,nofollow_checkbox:y,url_input:S}=f,w=s.Dom.isImage(e),{content_input:C}=f,{className_input:k}=f,{className_select:E}=f;C||(C=n.c.element("input",{type:"hidden",ref:"content_input"})),c&&m.classList.add(c),w&&s.Dom.hide(_);let I=()=>i?i.innerText:(0,l.stripTags)(n.s.range.cloneContents(),n.ed);i=!!(e&&s.Dom.closest(e,"a",n.editor))&&s.Dom.closest(e,"a",n.editor),!w&&e&&(C.value=I()),i?(S.value=(0,l.attr)(i,"href")||"",d&&function(e,t,i,n){switch(e){case"input":t&&(t.value=(0,l.attr)(i,"class")||"");break;case"select":if(n){for(let e=0;e<n.selectedOptions.length;e++){let t=n.options.item(e);t&&(t.selected=!1)}((0,l.attr)(i,"class")||"").split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{if(e)for(let t=0;t<n.options.length;t++){let i=n.options.item(t);(null==i?void 0:i.value)&&i.value.split(/\s+/).map(e=>e.trim()).includes(e)&&(i.selected=!0)}})}}}(d,k,i,E),r&&b&&(b.checked="_blank"===(0,l.attr)(i,"target")),a&&y&&(y.checked="nofollow"===(0,l.attr)(i,"rel")),g.textContent=o("Update")):s.Dom.hide(v),n.editor.normalize();let T=n.history.snapshot.make();v&&n.e.on(v,"click",e=>{n.s.restore(),n.history.snapshot.restore(T),i&&s.Dom.unwrap(i),n.synchronizeValues(),t(),e.preventDefault()});let x=()=>{let e;if(!S.value.trim().length)return S.focus(),S.classList.add("jodit_error"),!1;n.s.restore(),n.s.removeMarkers(),n.editor.normalize(),n.history.snapshot.restore(T);let o=I()!==C.value.trim(),u=n.createInside;if(i&&s.Dom.isOrContains(n.editor,i))e=[i];else{if(n.s.isCollapsed()){let t=u.element("a");n.s.insertNode(t,!1,!1),e=[t]}else{let t=n.s.current();e=s.Dom.isTag(t,"img")?[s.Dom.wrap(t,"a",u)]:n.s.wrapInTag("a")}e.forEach(e=>n.s.select(e))}return e.forEach(e=>{var t;let i;(0,l.attr)(e,"href",S.value),function(e,t,i,n){if(e&&(null!=t?t:i)){if("input"===e)""===t.value&&n.hasAttribute("class")&&(0,l.attr)(n,"class",null),""!==t.value&&(0,l.attr)(n,"class",t.value);else if("select"===e){n.hasAttribute("class")&&(0,l.attr)(n,"class",null);for(let e=0;e<i.selectedOptions.length;e++){var o;let t=null==(o=i.selectedOptions.item(e))?void 0:o.value;t&&t.split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{n.classList.add(e)})}}}}(d,k,E,e),w||(t=C,i=e.textContent,t.value.trim().length?o&&(i=t.value):i=S.value,i!==e.textContent&&(e.textContent=i)),r&&b&&(0,l.attr)(e,"target",b.checked?"_blank":null),a&&y&&(0,l.attr)(e,"rel",y.checked?"nofollow":null),n.e.fire("applyLink",n,e,p)}),n.synchronizeValues(),t(),!1};return s.Dom.isElement(p)?n.e.on(p,"submit",e=>(e.preventDefault(),e.stopImmediatePropagation(),x(),!1)):p.onSubmit(x),p}beforeDestruct(e){e.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(e.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}__onClickReadOnlyLink(e){let{jodit:t}=this;t.o.readonly&&t.o.link.preventReadOnlyNavigation&&s.Dom.isTag(e.target,"a")&&e.preventDefault()}constructor(...e){super(...e),(0,n._)(this,"buttons",[{name:"link",group:"insert"}])}}(0,o.__decorate)([r.autobind],c.prototype,"__onDblClickOnLink",null),(0,o.__decorate)([r.autobind],c.prototype,"onProcessPasteLink",null),(0,o.__decorate)([r.autobind],c.prototype,"__generateForm",null),(0,o.__decorate)([r.autobind],c.prototype,"__onClickReadOnlyLink",null),a.pluginSystem.add("link",c)},45778:function(e,t,i){"use strict";i.d(t,{formTemplate:function(){return r}});var n=i(59400),o=i(5658);let r=e=>{let{openInNewTabCheckbox:t,noFollowCheckbox:i,modeClassName:r,selectSizeClassName:s,selectMultipleClassName:a,selectOptionsClassName:l}=e.o.link;return new o.UIForm(e,[new o.UIBlock(e,[new o.UIInput(e,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new o.UIBlock(e,[new o.UIInput(e,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),r?new o.UIBlock(e,["input"===r?new o.UIInput(e,{name:"className",ref:"className_input",label:"Class name"}):"select"===r?new o.UISelect(e,{name:"className",ref:"className_select",label:"Class name",size:s,multiple:a,options:l}):null]):null,t?new o.UICheckbox(e,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,i?new o.UICheckbox(e,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new o.UIBlock(e,[new n.UIButton(e,{name:"unlink",variant:"default",text:"Unlink"}),new n.UIButton(e,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])}},51730:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.mediaFakeTag="jodit-media",n.Config.prototype.mediaInFakeBlock=!0,n.Config.prototype.mediaBlocks=["video","audio"]},76830:function(e,t,i){"use strict";var n=i(81937),o=i(28077),r=i(93640);i(51730),o.pluginSystem.add("media",function(e){let t="jodit_fake_wrapper",{mediaFakeTag:i,mediaBlocks:o,mediaInFakeBlock:s}=e.options;s&&e.e.on("afterGetValueFromEditor",e=>{let n=RegExp(`<${i}[^>]+data-${t}[^>]+>([^]+?)</${i}>`,"ig");n.test(e.value)&&(e.value=e.value.replace(n,"$1"))}).on("change afterInit afterSetMode changePlace",e.async.debounce(()=>{e.isDestructed||e.getMode()===n.MODE_SOURCE||(0,r.$$)(o.join(","),e.editor).forEach(n=>{if(!(0,r.dataBind)(n,t)){(0,r.dataBind)(n,t,!0);var o=n;if(o.parentNode&&(0,r.attr)(o.parentNode,"data-jodit_iframe_wrapper"))o=o.parentNode;else{let n=e.createInside.element(i,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,[`data-${t}`]:1});(0,r.attr)(n,"style",(0,r.attr)(o,"style")),n.style.display="inline-block"===o.style.display?"inline-block":"block",n.style.width=o.offsetWidth+"px",n.style.height=o.offsetHeight+"px",o.parentNode&&o.parentNode.insertBefore(n,o),n.appendChild(o),o=n}e.e.off(o,"mousedown.select touchstart.select").on(o,"mousedown.select touchstart.select",()=>{e.s.setCursorAfter(o)})}})},e.defaultTimeout))})},3244:function(e,t,i){"use strict";var n=i(81937),o=i(65946),r=i(5266),s=i(42573),a=i(4274);r.Config.prototype.mobileTapTimeout=300,r.Config.prototype.toolbarAdaptive=!0,r.Config.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},{group:"other",buttons:[]},"|","dots"],r.Config.prototype.buttonsSM=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},"\n",{group:"state",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},"|","dots"],r.Config.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],r.Config.prototype.controls.dots={mode:n.MODE_SOURCE+n.MODE_WYSIWYG,popup:(e,t,i,n)=>{let r=n.control.data;return void 0===r&&(r={toolbar:(0,a.makeCollection)(e),rebuild:()=>{if(n){let a=e.e.fire("getDiffButtons.mobile",n.closest(s.ToolbarCollection));if(a&&r){var t,i;r.toolbar.build((0,o.splitArray)(a));let n=(null==(i=e.toolbar)||null==(t=i.firstButton)?void 0:t.container.offsetWidth)||36;r.toolbar.container.style.width=(n+4)*3+"px"}}}},n.control.data=r),r.rebuild(),r.toolbar},tooltip:"Show all"}},74240:function(e,t,i){"use strict";var n=i(28077),o=i(65946),r=i(2496);i(3244),n.pluginSystem.add("mobile",function(e){let t=0,i=(0,o.splitArray)(e.o.buttons);e.o.mobileTapTimeout&&e.e.on("touchend",i=>{if(i.changedTouches&&i.changedTouches.length){let n=new Date().getTime(),o=n-t;o>e.o.mobileTapTimeout&&(t=n,o<1.5*e.o.mobileTapTimeout&&e.s.insertCursorAtPoint(i.clientX,i.clientY))}}),e.e.on("getDiffButtons.mobile",t=>{if(t===e.toolbar){let t=(0,r.flatButtonsSet)((0,o.splitArray)(e.o.buttons),e),n=(0,r.flatButtonsSet)(i,e);return(0,o.toArray)(t).reduce((e,t)=>(n.has(t)||e.push(t),e),[])}}),e.o.toolbarAdaptive&&e.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",()=>{var t,n;if(!e.o.toolbar)return;let r=(null!=(t=e.container.parentElement)?t:e.container).offsetWidth,s=e.isFullSize||r>=e.o.sizeLG?(0,o.splitArray)(e.o.buttons):r>=e.o.sizeMD?(0,o.splitArray)(e.o.buttonsMD):r>=e.o.sizeSM?(0,o.splitArray)(e.o.buttonsSM):(0,o.splitArray)(e.o.buttonsXS);s.toString()!==i.toString()&&(i=s,e.e.fire("closeAllPopups"),null==(n=e.toolbar)||n.setRemoveButtons(e.o.removeButtons).build(i.concat(e.o.extraButtons)))}).on(e.ow,"load resize",()=>e.e.fire("recalcAdaptive"))})},60162:function(e,t,i){"use strict";var n=i(36400),o=i(29434),r=i(5266),s=i(40037),a=i.n(s),l=i(83207),u=i.n(l);let c=(e,t,{control:i})=>{var o;let r=`button${i.command}`,s=null!=(o=i.args&&i.args[0])?o:(0,n.dataBind)(e,r);(0,n.dataBind)(e,r,s),e.execCommand(i.command,!1,"default"===s?null:s)};o.Icon.set("ol",a()).set("ul",u()),r.Config.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:c},r.Config.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:c}},98792:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(28077),a=i(91206);i(60162);class l extends a.Plugin{afterInit(e){e.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(e,t,i){return this.jodit.s.commitStyle({element:"insertunorderedlist"===e?"ul":"ol",attributes:{style:{listStyleType:null!=i?i:null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(e){}constructor(...e){super(...e),(0,n._)(this,"buttons",[{name:"ul",group:"list"},{name:"ol",group:"list"}])}}(0,o.__decorate)([r.autobind],l.prototype,"onCommand",null),s.pluginSystem.add("orderedList",l)},71693:function(e,t,i){"use strict";var n=i(81937),o=i(5266);o.Config.prototype.askBeforePasteFromWord=!0,o.Config.prototype.processPasteFromWord=!0,o.Config.prototype.defaultActionOnPasteFromWord=null,o.Config.prototype.pasteFromWordActionList=[{value:n.INSERT_AS_HTML,text:"Keep"},{value:n.INSERT_AS_TEXT,text:"Clean"},{value:n.INSERT_ONLY_TEXT,text:"Insert only Text"}]},96730:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(28077),l=i(65946),u=i(91206);i(71693);var c=i(54308);class d extends u.Plugin{afterInit(e){}beforeDestruct(e){}processWordHTML(e,t,i){let{j:n}=this,{processPasteFromWord:o,askBeforePasteFromWord:r,defaultActionOnPasteFromWord:s,defaultActionOnPaste:a,pasteFromWordActionList:u}=n.o;return!!(o&&(0,l.isHtmlFromWord)(t))&&(r?(0,c.askInsertTypeDialog)(n,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",n=>{this.insertFromWordByType(e,t,n,i)},u):this.insertFromWordByType(e,t,s||a,i),!0)}insertFromWordByType(e,t,i,n){switch(i){case r.INSERT_AS_HTML:{var o;t=(0,l.applyStyles)(t);let e=null==(o=this.j.events)?void 0:o.fire("beautifyHTML",t);(0,l.isString)(e)&&(t=e);break}case r.INSERT_AS_TEXT:t=(0,l.cleanFromWord)(t);break;case r.INSERT_ONLY_TEXT:t=(0,l.stripTags)((0,l.cleanFromWord)(t))}(0,c.pasteInsertHtml)(e,this.j,t)}}(0,n._)(d,"requires",["paste"]),(0,o.__decorate)([(0,s.watch)(":processHTML")],d.prototype,"processWordHTML",null),a.pluginSystem.add("pasteFromWord",d)},7758:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(23211),s=i(28077),a=i(65946),l=i(18855),u=i(53681);class c extends l.Plugin{createDialog(){this.dialog=this.j.dlg();let e=(0,u.Button)(this.j,"paste","Paste","primary");e.onAction(this.paste);let t=(0,u.Button)(this.j,"","Cancel");t.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([e,t]),this.j.e.on(this.listBox,"click dblclick",e=>{let t=e.target;return r.Dom.isTag(t,"a")&&t.hasAttribute("data-index")&&this.selectIndex(parseInt((0,a.attr)(t,"-index")||"0",10)),"dblclick"===e.type&&this.paste(),!1})}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",()=>this.list.length).on("afterCopy.paste-storage",e=>{-1!==this.list.indexOf(e)&&this.list.splice(this.list.indexOf(e),1),this.list.unshift(e),this.list.length>5&&(this.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),r.Dom.safeRemove(this.previewBox),r.Dom.safeRemove(this.listBox),r.Dom.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}constructor(...e){super(...e),(0,n._)(this,"currentIndex",0),(0,n._)(this,"list",[]),(0,n._)(this,"container",null),(0,n._)(this,"listBox",null),(0,n._)(this,"previewBox",null),(0,n._)(this,"dialog",null),(0,n._)(this,"paste",()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){let e=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=e}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")}),(0,n._)(this,"onKeyDown",e=>{let t=this.currentIndex;if(-1!==[o.KEY_UP,o.KEY_DOWN,o.KEY_ENTER].indexOf(e.key)){if(e.key===o.KEY_UP&&(0===t?t=this.list.length-1:t-=1),e.key===o.KEY_DOWN&&(t===this.list.length-1?t=0:t+=1),e.key===o.KEY_ENTER)return void this.paste();t!==this.currentIndex&&this.selectIndex(t),e.stopImmediatePropagation(),e.preventDefault()}}),(0,n._)(this,"selectIndex",e=>{this.listBox&&(0,a.toArray)(this.listBox.childNodes).forEach((t,i)=>{t.classList.remove("jodit_active"),e===i&&this.previewBox&&(t.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[e],t.focus())}),this.currentIndex=e}),(0,n._)(this,"showDialog",()=>{this.list.length<2||(this.dialog||this.createDialog(),this.listBox&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),this.list.forEach((e,t)=>{let i=this.j.c.element("a");i.textContent=t+1+". "+e.replace((0,o.SPACE_REG_EXP)(),""),this.j.e.on(i,"keydown",this.onKeyDown),(0,a.attr)(i,"href","#"),(0,a.attr)(i,"data-index",t.toString()),(0,a.attr)(i,"tab-index","-1"),this.listBox&&this.listBox.appendChild(i)}),this.dialog&&this.dialog.open(),this.j.async.setTimeout(()=>{this.selectIndex(0)},100))})}}s.pluginSystem.add("pasteStorage",c)},38187:function(e,t,i){"use strict";var n=i(81937),o=i(5266),r=i(54308);o.Config.prototype.askBeforePasteHTML=!0,o.Config.prototype.processPasteHTML=!0,o.Config.prototype.scrollToPastedContent=!0,o.Config.prototype.pasteExcludeStripTags=["br","hr"],o.Config.prototype.pasteHTMLActionList=[{value:n.INSERT_AS_HTML,text:"Keep"},{value:n.INSERT_AS_TEXT,text:"Insert as Text"},{value:n.INSERT_ONLY_TEXT,text:"Insert only Text"}],o.Config.prototype.memorizeChoiceWhenPasteFragment=!1,o.Config.prototype.nl2brInPlainText=!0;let s="pasteStorage";o.Config.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(e,t,{control:i}){if(i.name===s)return void e.execCommand("showPasteStorage");e.s.focus();let o="",a=!0;if(navigator.clipboard){try{let e=await navigator.clipboard.read();if(e&&e.length){let t=await e[0].getType(n.TEXT_PLAIN);o=await new Response(t).text()}a=!1}catch(e){n.IS_PROD}if(a)try{o=await navigator.clipboard.readText(),a=!1}catch(e){n.IS_PROD}}a&&(a=0===(o=e.buffer.get(n.CLIPBOARD_ID)||"").length);let l=e.value;a?(e.ed.execCommand("paste"),(a=l===e.value)||e.e.fire("afterPaste")):o.length?((0,r.pasteInsertHtml)(null,e,o),e.e.fire("afterPaste")):a&&e.alert("Your browser doesn't support direct access to the clipboard.",()=>void e.s.focus())},list:{[s]:"Paste Storage"},isChildDisabled(e){return 2>e.e.fire("pasteStorageList")}}},54308:function(e,t,i){"use strict";i.d(t,{askInsertTypeDialog:function(){return u},getAllTypes:function(){return l},pasteInsertHtml:function(){return a}});var n=i(81937),o=i(23211),r=i(28686),s=i(53681);function a(e,t,i){var n;let s,a;if(t.isInDestruct)return;e&&"drop"===e.type&&t.s.insertCursorAtPoint(e.clientX,e.clientY);let l=t.e.fire("beforePasteInsert",i);!(0,r.isVoid)(l)&&((0,r.isString)(l)||(0,r.isNumber)(l)||o.Dom.isNode(l))&&(i=l),(0,r.isString)(i)&&(-1!==(s=(n=(n=i).replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i))&&(n=n.substring(s+20)),-1!==(a=n.search(/<!--EndFragment-->/i))&&(n=n.substring(0,a)),i=n),t.s.insertHTML(i)}function l(e){let t=e.types,i="";if((0,r.isArray)(t)||"[object DOMStringList]"===({}).toString.call(t))for(let e=0;e<t.length;e+=1)i+=t[e]+";";else i=(t||n.TEXT_PLAIN).toString()+";";return i}function u(e,t,i,n,o){if(!1===e.e.fire("beforeOpenPasteDialog",t,i,n,o))return;let r=e.confirm(`<div style="word-break: normal; white-space: normal">${e.i18n(t)}</div>`,e.i18n(i)),a=o.map(({text:t,value:i})=>(0,s.Button)(e,{text:t,name:t.toLowerCase(),tabIndex:0}).onAction(()=>{r.close(),n(i)}));r.e.one(r,"afterClose",()=>{e.s.isFocused()||e.s.focus()});let l=(0,s.Button)(e,{text:"Cancel",tabIndex:0}).onAction(()=>{r.close()});return r.setFooter([...a,l]),a[0].focus(),a[0].state.variant="primary",e.e.fire("afterOpenPasteDialog",r,t,i,n,o),r}},23422:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(18855);i(38187);var d=i(54308);class h extends c.Plugin{afterInit(e){e.e.on("paste.paste",this.onPaste).on("pasteStack.paste",e=>this.pasteStack.push(e)),e.o.nl2brInPlainText&&this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}beforeDestruct(e){e.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}onPaste(e){try{if(!1===this.customPasteProcess(e)||!1===this.j.e.fire("beforePaste",e))return e.preventDefault(),!1;this.defaultPasteProcess(e)}finally{this.j.e.fire("afterPaste",e)}}customPasteProcess(e){if(!this.j.o.processPasteHTML)return;let t=(0,u.getDataTransfer)(e),i=[null==t?void 0:t.getData(r.TEXT_PLAIN),null==t?void 0:t.getData(r.TEXT_HTML),null==t?void 0:t.getData(r.TEXT_RTF)];for(let t of i)if((0,u.isHTML)(t)&&(this.j.e.fire("processHTML",e,t,{plain:i[0],html:i[1],rtf:i[2]})||this.processHTML(e,t)))return!1}defaultPasteProcess(e){let t=(0,u.getDataTransfer)(e),i=(null==t?void 0:t.getData(r.TEXT_HTML))||(null==t?void 0:t.getData(r.TEXT_PLAIN));if(t&&i&&""!==(0,u.trim)(i)){let n=this.j.e.fire("processPaste",e,i,(0,d.getAllTypes)(t));void 0!==n&&(i=n),((0,u.isString)(i)||a.Dom.isNode(i))&&this.__insertByType(e,i,this.j.o.defaultActionOnPaste),e.preventDefault(),e.stopPropagation()}}processHTML(e,t){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){let i=this.pasteStack.find(e=>e.html===t);if(i)return this.__insertByType(e,t,i.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;let i=(0,d.askInsertTypeDialog)(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",i=>{this._isDialogOpened=!1,this.__insertByType(e,t,i)},this.j.o.pasteHTMLActionList);return i&&(this._isDialogOpened=!0,i.e.on("beforeClose",()=>{this._isDialogOpened=!1})),!0}__insertByType(e,t,i){if(this.pasteStack.push({html:t,action:i}),(0,u.isString)(t))switch(this.j.buffer.set(r.CLIPBOARD_ID,t),i){case r.INSERT_CLEAR_HTML:t=(0,u.cleanFromWord)(t);break;case r.INSERT_ONLY_TEXT:t=(0,u.stripTags)(t,this.j.ed,new Set(this.j.o.pasteExcludeStripTags));break;case r.INSERT_AS_TEXT:t=(0,u.htmlspecialchars)(t);break;default:{let n=this.j.e.fire("onCustomPasteHTMLOption",i,t,e);"string"==typeof n&&(t=n)}}(0,d.pasteInsertHtml)(e,this.j,t)}onProcessPasteReplaceNl2Br(e,t,i){if(i===r.TEXT_PLAIN+";"&&!(0,u.isHTML)(t))return(0,u.nl2br)(t)}constructor(...e){super(...e),(0,n._)(this,"pasteStack",new u.LimitedStack(20)),(0,n._)(this,"_isDialogOpened",!1)}}(0,o.__decorate)([s.autobind],h.prototype,"onPaste",null),(0,o.__decorate)([s.autobind],h.prototype,"onProcessPasteReplaceNl2Br",null),l.pluginSystem.add("paste",h)},8257:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.showPlaceholder=!0,n.Config.prototype.placeholder="Type something",n.Config.prototype.useInputsPlaceholder=!0},28346:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(23175),c=i(7909),d=i(80991),h=i(18855);i(8257);class p extends h.Plugin{afterInit(e){e.o.showPlaceholder&&(this.placeholderElm=e.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${e.i18n(e.o.placeholder)}</span>`),"rtl"===e.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),e.e.on("readonly",e=>{e?this.hide():this.toggle()}).on("changePlace",this.addEvents),this.addEvents())}show(){let e=this.j;if(e.o.readonly)return;let t=0,i=0,n=e.s.current(),o=n&&a.Dom.closest(n,a.Dom.isBlock,e.editor)||e.editor,r=e.ew.getComputedStyle(o),s=e.ew.getComputedStyle(e.editor);e.workplace.appendChild(this.placeholderElm);let{firstChild:l}=e.editor;if(a.Dom.isElement(l)&&!(0,u.isMarker)(l)){let n=e.ew.getComputedStyle(l);t=parseInt(n.getPropertyValue("margin-top"),10),i=parseInt(n.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(n.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=n.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(r.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=r.getPropertyValue("line-height");(0,d.css)(this.placeholderElm,{display:"block",textAlign:r.getPropertyValue("text-align"),paddingTop:parseInt(s.paddingTop,10)+"px",paddingLeft:parseInt(s.paddingLeft,10)+"px",paddingRight:parseInt(s.paddingRight,10)+"px",marginTop:Math.max(parseInt(r.getPropertyValue("margin-top"),10),t),marginLeft:Math.max(parseInt(r.getPropertyValue("margin-left"),10),i)})}hide(){a.Dom.safeRemove(this.placeholderElm)}toggle(){let e=this.j;if(e.editor&&!e.isInDestruct){if(e.getRealMode()!==r.MODE_WYSIWYG)return void this.hide();!function(e){var t;if(!e.firstChild)return!0;let i=e.firstChild;if(r.INSEPARABLE_TAGS.has(null==(t=i.nodeName)?void 0:t.toLowerCase())||/^(TABLE)$/i.test(i.nodeName))return!1;let n=a.Dom.next(i,e=>e&&!a.Dom.isEmptyTextNode(e),e);return a.Dom.isText(i)&&!n?a.Dom.isEmptyTextNode(i):!n&&a.Dom.each(i,e=>!(a.Dom.isLeaf(e)||a.Dom.isList(e))&&(a.Dom.isEmpty(e)||a.Dom.isTag(e,"br")))}(e.editor)?this.hide():this.show()}}beforeDestruct(e){this.hide(),e.e.off(".placeholder").off(window,"load",this.toggle)}constructor(...e){super(...e),(0,n._)(this,"placeholderElm",void 0),(0,n._)(this,"addNativeListeners",()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)}),(0,n._)(this,"addEvents",()=>{let e=this.j;e.o.useInputsPlaceholder&&e.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,c.attr)(e.element,"placeholder")||""),e.e.fire("placeholder",this.placeholderElm.innerHTML),e.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()})}}(0,o.__decorate)([(0,s.debounce)(e=>e.defaultTimeout/10,!0)],p.prototype,"toggle",null),l.pluginSystem.add("placeholder",p)},198:function(e,t,i){"use strict";i(28077).pluginSystem.add("poweredByJodit",function(e){let{o:t}=e;!t.hidePoweredByJodit&&!t.inline&&(t.showCharsCounter||t.showWordsCounter||t.showXPathInStatusbar)&&e.hookStatus("ready",()=>{e.statusbar.append(e.create.fromHTML(`<a
207
+ </div>`}onStateAlignChange(){this.getElm("align").value=this.state.values.align}onChangeAlign(){let e=this.getElm("align");this.state.values.align=e.value}onStateValuesBorderRadiusChange(){this.getElm("borderRadius").value=this.state.values.borderRadius.toString()}onChangeBorderRadius(){let e=this.getElm("borderRadius");this.state.values.borderRadius=parseFloat(e.value)}onStateValuesIdChange(){this.getElm("id").value=this.state.values.id}onChangeId(){let e=this.getElm("id");this.state.values.id=e.value}onStateValuesStyleChange(){this.getElm("style").value=this.state.values.style}onChangeStyle(){let e=this.getElm("style");this.state.values.style=e.value}onStateValuesClassesChange(){this.getElm("classes").value=this.state.values.classes}onChangClasses(){let e=this.getElm("classes");this.state.values.classes=e.value}onLockMarginClick(e){this.state.marginIsLocked=!this.state.marginIsLocked,e.preventDefault()}onChangeMarginIsLocked(){let e=this.getElm("marginBottom"),t=this.getElm("marginRight"),i=this.getElm("marginLeft"),n=this.getElm("lockMargin");if([t,e,i].forEach(e=>{(0,c.attr)(e,"disabled",this.state.marginIsLocked||null)}),n.innerHTML=h.Icon.get(this.state.marginIsLocked?"lock":"unlock"),this.state.marginIsLocked){let e=this.state.values.marginTop;this.state.values.marginRight=e,this.state.values.marginBottom=e,this.state.values.marginLeft=e}}onStateValuesMarginChange(){let e=this.getElm("marginTop"),t=this.getElm("marginRight"),i=this.getElm("marginBottom"),n=this.getElm("marginLeft");e.value=this.state.values.marginTop.toString(),t.value=this.state.values.marginRight.toString(),i.value=this.state.values.marginBottom.toString(),n.value=this.state.values.marginLeft.toString()}onChangeMargin(){let e=this.getElm("marginTop"),t=this.getElm("marginRight"),i=this.getElm("marginBottom"),n=this.getElm("marginLeft");this.state.values.marginTop=(0,p.normalSizeFromString)(e.value),this.state.marginIsLocked?(this.state.values.marginRight=this.state.values.marginTop,this.state.values.marginBottom=this.state.values.marginTop,this.state.values.marginLeft=this.state.values.marginTop):(this.state.values.marginRight=(0,p.normalSizeFromString)(t.value),this.state.values.marginBottom=(0,p.normalSizeFromString)(i.value),this.state.values.marginLeft=(0,p.normalSizeFromString)(n.value))}hideFieldByOptions(){let e=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach(([t,i])=>{let n=this.getElm(i);(0,l.css)(n,"display",e[t]?null:"none")})}constructor(e,t,i){super(e,{availableClasses:e.o.image.availableClasses}),(0,n._)(this,"state",void 0),(0,n._)(this,"handlers",void 0),this.state=t,this.handlers=i}}(0,o.__decorate)([(0,s.hook)("ready"),(0,a.watch)("state.values.align")],m.prototype,"onStateAlignChange",null),(0,o.__decorate)([(0,a.watch)("align:change")],m.prototype,"onChangeAlign",null),(0,o.__decorate)([(0,s.hook)("ready"),(0,a.watch)("state.values.borderRadius")],m.prototype,"onStateValuesBorderRadiusChange",null),(0,o.__decorate)([(0,a.watch)("borderRadius:change")],m.prototype,"onChangeBorderRadius",null),(0,o.__decorate)([(0,s.hook)("ready"),(0,a.watch)("state.values.id")],m.prototype,"onStateValuesIdChange",null),(0,o.__decorate)([(0,a.watch)("id:change")],m.prototype,"onChangeId",null),(0,o.__decorate)([(0,s.hook)("ready"),(0,a.watch)("state.values.style")],m.prototype,"onStateValuesStyleChange",null),(0,o.__decorate)([(0,a.watch)("style:change")],m.prototype,"onChangeStyle",null),(0,o.__decorate)([(0,s.hook)("ready"),(0,a.watch)("state.values.classes")],m.prototype,"onStateValuesClassesChange",null),(0,o.__decorate)([(0,a.watch)("classes:change")],m.prototype,"onChangClasses",null),(0,o.__decorate)([(0,a.watch)("lockMargin:click")],m.prototype,"onLockMarginClick",null),(0,o.__decorate)([(0,s.hook)("ready"),(0,a.watch)("state.marginIsLocked")],m.prototype,"onChangeMarginIsLocked",null),(0,o.__decorate)([(0,s.hook)("ready"),(0,a.watch)(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],m.prototype,"onStateValuesMarginChange",null),(0,o.__decorate)([(0,a.watch)(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],m.prototype,"onChangeMargin",null),(0,o.__decorate)([(0,s.hook)("ready")],m.prototype,"hideFieldByOptions",null),m=(0,o.__decorate)([r.component],m)},28771:function(e,t,i){"use strict";i.d(t,{openImageEditorDialog:function(){return s}});var n=i(85932),o=i(7909),r=i(43271);function s(e,t){let i=(0,o.attr)(t.image,"src")||"",s=e.c.element("a"),a=()=>{if(s.host!==location.host)return void e.confirm("You can only edit your own images. Download this image on the host?",i=>{i&&e.uploader&&e.uploader.uploadRemoteImage(s.href.toString(),i=>{e.alert("The image has been successfully uploaded to the host!",()=>{(0,n.isString)(i.newfilename)&&(t.values.imageSrc=i.baseurl+i.newfilename)})},t=>{e.alert("There was an error loading %s",t.message)})})};s.href=i,e.filebrowser.dataProvider.getPathByUrl(s.href.toString()).then(n=>{r.openImageEditor.call(e.filebrowser,s.href,n.name,n.path,n.source,e=>{let n=new Date().getTime(),o=e||i;t.values.imageSrc=o+(-1!==o.indexOf("?")?"":"?")+"&_tmp="+n.toString()},t=>{e.alert(t.message)})}).catch(t=>{e.alert(t.message,a)})}},670:function(e,t,i){"use strict";i.d(t,{openImagePopup:function(){return a}});var n=i(17312),o=i(23599),r=i(51116),s=i(18762);function a(e,t,i,a){let l=new r.Popup(t),u=()=>{l.close(),l.destruct()};l.setContent((0,s.FileSelectorWidget)(e,{upload:e=>{e.files&&e.files.length&&(i.values.imageSrc=e.baseurl+e.files[0]),u()},filebrowser:async e=>{e&&(0,n.isArray)(e.files)&&e.files.length&&(i.values.imageSrc=e.files[0],u())}},i.image,u)).open(()=>(0,o.position)(a))}},10808:function(e,t,i){"use strict";i.d(t,{normalSizeFromString:function(){return r},normalSizeToString:function(){return s}});var n=i(72412),o=i(4040);let r=e=>/^[-+]?[0-9.]+(px)?$/.test(e.toString())?parseFloat(e.toString()):e,s=e=>(0,n.isNumber)(e)?e?e+"px":e.toString():(e=(0,o.trim)(e),/^[0-9]+$/.test(e)?e+"px":e)},71552:function(e,t,i){"use strict";i.d(t,{applyValuesToImage:function(){return l}});var n=i(23211),o=i(93640),r=i(49422),s=i(21132),a=i(49147);function l(e,t,i){let{style:l,imageSrc:u,borderRadius:c,imageTitle:d,imageAlt:h,imageLink:p,imageWidth:m,imageHeight:f,marginTop:g,marginRight:v,marginBottom:_,marginLeft:b,imageLinkOpenInNewTab:y,align:S,classes:w,id:C}=t.values,k=e.o;(k.image.editStyle&&(0,o.attr)(i,"style",l||null),u)?((0,o.attr)(i,"src",u),i.style.borderRadius=c?c+"px":"",(0,o.attr)(i,"title",d||null),(0,o.attr)(i,"alt",h||null),(0,r.applyLink)(e,i,p,y),(0,a.applySize)(i,m,f,t.sizeIsLocked),e.o.image.editMargins&&(0,s.applyMargin)(e,g,v,_,b,i,t.marginIsLocked),k.image.editClass&&(0,o.attr)(i,"class",w||null),k.image.editId&&(0,o.attr)(i,"id",C||null),k.image.editAlign&&(0,o.hAlignElement)(i,S)):n.Dom.safeRemove(i)}},49422:function(e,t,i){"use strict";i.d(t,{applyLink:function(){return r}});var n=i(23211),o=i(7909);function r(e,t,i,r){let s=n.Dom.closest(t,"a",e.editor);if(i){if(s||(s=n.Dom.wrap(t,"a",e.createInside)),(0,o.attr)(s,"href",i),(0,o.attr)(s,"target",r?"_blank":null),!r){let e=((0,o.attr)(s,"rel")||"").split(/\s+/).filter(e=>e&&"noopener"!==e&&"noreferrer"!==e);(0,o.attr)(s,"rel",e.length?e.join(" "):null)}}else s&&s.parentNode&&s.parentNode.replaceChild(t,s)}},21132:function(e,t,i){"use strict";i.d(t,{applyMargin:function(){return r}});var n=i(80991),o=i(10808);function r(e,t,i,r,s,a,l){let u=[t,i,r,s],c=(e,t)=>{let i=(0,n.css)(a,e),r=(0,o.normalSizeToString)(t);i.toString()!==r.toString()&&(0,n.css)(a,e,r)};if(l)c("margin",t);else{let e=["margin-top","margin-right","margin-bottom","margin-left"];u.forEach((t,i)=>{c(e[i],t)})}}},49147:function(e,t,i){"use strict";i.d(t,{applySize:function(){return a}});var n=i(70222),o=i(7909),r=i(80991),s=i(10808);function a(e,t,i,a){if(t!==e.offsetWidth||i!==e.offsetHeight){let l=t?(0,s.normalSizeToString)(t):null,u=i?(0,s.normalSizeToString)(i):null;(0,r.css)(e,{width:l,height:l&&a?null:u}),(0,o.attr)(e,"width",l&&(0,n.isNumeric)(t)&&(0,o.attr)(e,"width")?l:null),(!(0,o.attr)(e,"width")||a)&&(u=null),(0,o.attr)(e,"height",u)}}},90826:function(e,t,i){"use strict";var n=i(27795),o=i(28077),r=i(65946),s=i(7909),a=i(29434),l=i(5266),u=i(15753),c=i(64831),d=i.n(c);a.Icon.set("image",d()),l.Config.prototype.controls.image={popup:(e,t,i)=>{let o=null;return t&&!n.Dom.isText(t)&&n.Dom.isHTMLElement(t)&&(n.Dom.isTag(t,"img")||(0,r.$$)("img",t).length)&&(o=n.Dom.isTag(t,"img")?t:(0,r.$$)("img",t)[0]),e.s.save(),(0,u.FileSelectorWidget)(e,{filebrowser:t=>{e.s.restore(),t.files&&t.files.forEach(i=>e.s.insertImage(t.baseurl+i,null,e.o.imageDefaultWidth)),i()},upload:!0,url:async(t,n)=>{e.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(t)&&(t="//"+t);let r=o||e.createInside.element("img");(0,s.attr)(r,"src",t),(0,s.attr)(r,"alt",n),o||await e.s.insertImage(r,null,e.o.imageDefaultWidth),i()}},o,i)},tags:["img"],tooltip:"Insert Image"},o.pluginSystem.add("image",function(e){e.registerButton({name:"image",group:"media"})})},42360:function(e,t,i){"use strict";var n=i(27795),o=i(29434),r=i(5266),s=i(67176),a=i.n(s),l=i(14017),u=i.n(l),c=i(11917);o.Icon.set("indent",a()).set("outdent",u()),r.Config.prototype.controls.indent={tooltip:"Increase Indent"},r.Config.prototype.controls.outdent={isDisabled:e=>{let t=e.s.current();if(t){let i=n.Dom.closest(t,n.Dom.isBlock,e.editor);if(i){let t=(0,c.getKey)(e.o.direction,i);return!i.style[t]||0>=parseInt(i.style[t],10)}}return!0},tooltip:"Decrease Indent"},r.Config.prototype.indentMargin=10},11917:function(e,t,i){"use strict";i.d(t,{getKey:function(){return o}});var n=i(23211);let o=(e,t)=>`${n.Dom.isCell(t)?"padding":"margin"}${"rtl"===e?"Right":"Left"}`},39e3:function(e,t,i){"use strict";var n=i(81937),o=i(27795),r=i(28077),s=i(93640);i(42360);var a=i(11917);let l=(e,t,i,n)=>{if(!t||e.has(t))return;let o=(0,a.getKey)(i.o.direction,t);e.add(t);let r=t.style[o]?parseInt(t.style[o],10):0;r+=i.o.indentMargin*("outdent"===n?-1:1),t.style[o]=r>0?r+"px":"",(0,s.attr)(t,"style")||(0,s.attr)(t,"style",null)};r.pluginSystem.add("indent",function(e){e.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});let t=t=>{let i=new Set,{enter:r,enterBlock:a}=e.o,u=r.toLowerCase()===n.BR,c=e.s.current();return u&&e.s.isCollapsed()&&c?l(i,o.Dom.wrapNextInline(c,a,e),e,t):(e.s.eachSelection(n=>{e.s.save();let c=!!n&&o.Dom.up(n,o.Dom.isBlock,e.editor);if(!c&&n&&(c=(0,s.call)(u?o.Dom.wrapNextInline:o.Dom.wrapInline,n,u?a:r.toLowerCase(),e)),!c)return e.s.restore(),!1;l(i,c,e,t),e.s.restore()}),e.synchronizeValues()),!1};e.registerCommand("indent",{exec:t,hotkeys:["ctrl+]","cmd+]"]}),e.registerCommand("outdent",{exec:t,hotkeys:["ctrl+[","cmd+["]})})},93637:function(e,t,i){"use strict";i(94358),i(42766),i(28286),i(63974),i(91678),i(58910),i(11018),i(43354),i(42462),i(30062),i(64222),i(43102),i(3678),i(49764),i(78690),i(50294),i(53390),i(69696),i(50982),i(2952),i(81144),i(90826),i(39978),i(90886),i(39e3),i(88952),i(64094),i(18210),i(50662),i(58354),i(68624),i(76830),i(74240),i(98792),i(23422),i(96730),i(7758),i(28346),i(198),i(49690),i(41134),i(59758),i(14248),i(72214),i(74522),i(30500),i(98988),i(2756),i(44322),i(13810),i(90204),i(86236),i(67582),i(11774),i(14774),i(81582),i(7994),i(30110),i(34142),i(22980),i(56894),i(52014),i(31262)},89873:function(e,t,i){"use strict";var n=i(28686),o=i(29434),r=i(5266),s=i(70235),a=i(17849),l=i(466),u=i(75711),c=i(59399),d=i(38681),h=i.n(d),p=i(64637),m=i.n(p),f=i(94190),g=i.n(f),v=i(51957),_=i.n(v),b=i(71940),y=i.n(b),S=i(43218),w=i.n(S),C=i(48007),k=i.n(C);r.Config.prototype.toolbarInline=!0,r.Config.prototype.toolbarInlineForSelection=!1,r.Config.prototype.toolbarInlineDisableFor=[],r.Config.prototype.toolbarInlineDisabledButtons=["source"],o.Icon.set("addcolumn",h()).set("addrow",m()).set("merge",g()).set("th",w()).set("splitg",_()).set("splitv",y()).set("th-list",k()),a.default.forEach(e=>{(0,n.isString)(e)||!e.name||r.Config.prototype.controls[e.name]||(r.Config.prototype.controls[e.name]=e)}),r.Config.prototype.popup={a:s.default,img:u.default,cells:a.default,toolbar:c.default,jodit:l.default,iframe:l.default,"jodit-media":l.default,selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]}},70235:function(e,t,i){"use strict";var n=i(7909);t.default=[{name:"eye",tooltip:"Open link",exec:(e,t)=>{let i=(0,n.attr)(t,"href");t&&i&&e.ow.open(i)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},17849:function(e,t,i){"use strict";var n=i(28686),o=i(80991);let r=e=>e.args&&(0,n.isString)(e.args[0])?e.args[0].toLowerCase():"";t.default=["brushCell",{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:(e,t,i)=>i,exec:(e,t,{control:i})=>{let n=r(i);e.getInstance("Table",e.o).getAllSelectedCells().forEach(e=>{(0,o.css)(e,"vertical-align","normal"===n?"":n)})},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},"\n",{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec:(e,t,{control:i})=>{if(!(0,n.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec:(e,t,{control:i})=>{if(!(0,n.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t)},tooltip:"Add row"},{name:"deleteTable",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec:(e,t,{control:i})=>{if(!(0,n.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t),e.e.fire("hidePopup")},tooltip:"Delete"}]},466:function(e,t,i){"use strict";t.default=[{name:"bin",tooltip:"Delete",exec:(e,t)=>{t&&e.s.removeNode(t)}},i(75711).align]},75711:function(e,t,i){"use strict";i.d(t,{align:function(){return a}});var n=i(27795),o=i(85932),r=i(16849),s=i(80991);let a={name:"left",childTemplate:(e,t,i)=>i,list:["Left","Right","Center","Normal"],exec:(e,t,{control:i})=>{if(!n.Dom.isTag(t,new Set(["img","jodit","jodit-media"])))return;let s=i.args&&(0,o.isString)(i.args[0])?i.args[0].toLowerCase():"";if(!s)return!1;(0,r.hAlignElement)(t,s),n.Dom.isTag(t,new Set(["jodit","jodit-media"]))&&t.firstElementChild&&(0,r.hAlignElement)(t.firstElementChild,s),e.synchronizeValues(),e.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"};t.default=[{name:"delete",icon:"bin",tooltip:"Delete",exec:(e,t)=>{t&&e.s.removeNode(t)}},{name:"pencil",exec(e,t){"img"===t.tagName.toLowerCase()&&e.e.fire("openImageProperties",t)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec:(e,t,{control:i})=>{if(!n.Dom.isTag(t,"img"))return;let r=i.args&&(0,o.isString)(i.args[0])?i.args[0].toLowerCase():"";if(!r)return!1;(0,s.css)(t,"vertical-align","normal"===r?"":r),e.e.fire("recalcPositionPopup")}},a]},59399:function(e,t){"use strict";t.default=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},88952:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(27795),a=i(28077),l=i(65946),u=i(91206),c=i(4099),d=i(56490),h=i(4274);i(89873);class p extends u.Plugin{get popup(){return new d.Popup(this.jodit,!1)}get toolbar(){return(0,h.makeCollection)(this.jodit,this.popup)}onClick(e){let t=this.elmsList,i=s.Dom.isTag(e,"img")?e:s.Dom.closest(e,t,this.j.editor);if(i&&this.canShowPopupForType(i.nodeName.toLowerCase()))return this.showPopup(()=>(0,l.position)(i,this.j),i.nodeName.toLowerCase(),i),!1}showPopup(e,t,i){if(t=t.toLowerCase(),!this.canShowPopupForType(t))return!1;if(this.type!==t||i!==this.previousTarget){let e;this.previousTarget=i;let n=this.j.o.popup[t];if(e=(0,l.isFunction)(n)?n(this.j,i,this.popup.close):n,(0,l.isArray)(e)){let t=this.j.o.toolbarInlineDisabledButtons;this.toolbar.build(t.length?e.filter(e=>{let i=(0,l.isString)(e)?e:e.name;return!t.includes(null!=i?i:"")}):e,i),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,e=this.toolbar.container}this.popup.setContent(e),this.type=t}return this.popup.open(e),!0}hidePopup(e){this.popup.isOpened&&(!(0,l.isString)(e)||e===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(e){let t=this.j.o.popup[e.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!t&&!this.isExcludedTarget(e)}isExcludedTarget(e){return(0,l.splitArray)(this.j.o.toolbarInlineDisableFor).map(e=>e.toLowerCase()).includes(e.toLowerCase())}afterInit(e){this.j.e.on("getDiffButtons.mobile",t=>{if(this.toolbar===t){let t=this.toolbar.getButtonsNames();return(0,l.toArray)(e.registeredButtons).filter(e=>!this.j.o.toolbarInlineDisabledButtons.includes(e.name)).filter(e=>{let i=(0,l.isString)(e)?e:e.name;return i&&"|"!==i&&"\n"!==i&&!t.includes(i)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",(e,t,i)=>{this.showPopup(t,i||((0,l.isString)(e)?e:e.nodeName),(0,l.isString)(e)?void 0:e)}).on("mousedown keydown",this.onSelectionStart).on("change",()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)}).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.addListenersForElements()}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(e){if(e&&e.target&&c.UIElement.closestElement(e.target,d.Popup))return;let{snapRange:t}=this,{range:i}=this.j.s;(!t||i.collapsed||i.startContainer!==t.startContainer||i.startOffset!==t.startOffset||i.endContainer!==t.endContainer||i.endOffset!==t.endOffset)&&this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;let e="selection",t=this.j.s.sel,i=this.j.s.range;if((null==t?void 0:t.isCollapsed)||this.isSelectedTarget(i)){this.type===e&&this.popup.isOpened&&this.hidePopup();return}this.j.s.current()&&this.showPopup(()=>i.getBoundingClientRect(),e)}isSelectedTarget(e){let t=e.startContainer;return s.Dom.isElement(t)&&t===e.endContainer&&s.Dom.isTag(t.childNodes[e.startOffset],new Set((0,l.keys)(this.j.o.popup,!1)))&&e.startOffset===e.endOffset-1}beforeDestruct(e){e.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}_eventsList(){let e=this.elmsList;return e.map(e=>(0,l.camelCase)(`click_${e}`)).concat(e.map(e=>(0,l.camelCase)(`touchstart_${e}`))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(e){this.showPopup(()=>{if(e)return e;let{range:t}=this.j.s;return t.getBoundingClientRect()},"toolbar")}constructor(...e){super(...e),(0,n._)(this,"type",null),(0,n._)(this,"previousTarget",void 0),(0,n._)(this,"snapRange",null),(0,n._)(this,"elmsList",(0,l.keys)(this.j.o.popup,!1).filter(e=>!this.isExcludedTarget(e)))}}(0,n._)(p,"requires",["select"]),(0,o.__decorate)([r.cache],p.prototype,"popup",null),(0,o.__decorate)([r.cache],p.prototype,"toolbar",null),(0,o.__decorate)([r.autobind],p.prototype,"onClick",null),(0,o.__decorate)([(0,r.wait)(e=>!e.j.isLocked)],p.prototype,"showPopup",null),(0,o.__decorate)([(0,r.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),r.autobind],p.prototype,"hidePopup",null),(0,o.__decorate)([(0,r.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),(0,o.__decorate)([r.autobind],p.prototype,"onSelectionStart",null),(0,o.__decorate)([r.autobind],p.prototype,"onSelectionEnd",null),(0,o.__decorate)([(0,r.debounce)(e=>e.defaultTimeout)],p.prototype,"onSelectionChange",null),(0,o.__decorate)([r.autobind],p.prototype,"showInlineToolbar",null),a.pluginSystem.add("inlinePopup",p)},64094:function(e,t,i){"use strict";var n=i(23211),o=i(28077),r=i(65946),s=i(16849),a=i(80991),l=i(29434),u=i(5266),c=i(80515),d=i.n(c);l.Icon.set("justify",d()),u.Config.prototype.controls.align={name:"left",tooltip:"Align",update(e,t){let i=t.control,o=e.s.current();if(o){let s=n.Dom.closest(o,n.Dom.isBlock,e.editor)||e.editor,l=(0,a.css)(s,"text-align").toString();i.defaultValue&&-1!==i.defaultValue.indexOf(l)&&(l="left");let{list:u,data:c}=i;c&&c.currentValue!==l&&u&&((0,r.isPlainObject)(u)?u[l]:u.includes(l))&&(e.o.textIcons||"select"===i.component?t.state.text=l:t.state.icon.name=l,c.currentValue=l)}},isActive:(e,t)=>{let i=e.s.current();if(!i||!t.control.defaultValue)return!1;let o=n.Dom.closest(i,n.Dom.isBlock,e.editor)||e.editor;return -1===t.control.defaultValue.indexOf((0,a.css)(o,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},u.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},u.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},u.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},u.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},o.pluginSystem.add("justify",function(e){e.registerButton({name:"align",group:"indent"});let t=t=>(e.s.focus(),e.s.eachSelection(i=>{if(!i)return;let o=n.Dom.up(i,n.Dom.isBlock,e.editor);o||(o=n.Dom.wrapInline(i,e.o.enterBlock,e)),(0,s.alignElement)(t,o)}),!1);e.registerCommand("justifyfull",t),e.registerCommand("justifyright",t),e.registerCommand("justifyleft",t),e.registerCommand("justifycenter",t)})},18210:function(e,t,i){"use strict";var n=i(31635),o=i(81937),r=i(84839),s=i(23211),a=i(28077),l=i(91206);class u extends l.Plugin{afterInit(e){}beforeDestruct(e){}onKeyDownArrow(e){var t;if(e.key!==o.KEY_RIGHT||!this.j.selection.isCollapsed())return;let{endContainer:i,endOffset:n}=this.j.selection.range;if(s.Dom.isText(i)&&(null==(t=i.nodeValue)?void 0:t.length)===n){let{parentNode:e}=i;s.Dom.isInlineBlock(e)&&!s.Dom.findNotEmptyNeighbor(e,!1,this.j.editor)&&s.Dom.after(e,this.j.createInside.text(o.NBSP_SPACE))}}}(0,n.__decorate)([(0,r.watch)(":keydown")],u.prototype,"onKeyDownArrow",null),a.pluginSystem.add("keyArrowOutside",u)},82147:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.limitWords=!1,n.Config.prototype.limitChars=!1,n.Config.prototype.limitHTML=!1},50662:function(e,t,i){"use strict";var n=i(31635),o=i(81937),r=i(84839),s=i(28077),a=i(91206);i(82147);class l extends a.Plugin{afterInit(e){let{limitWords:t,limitChars:i}=e.o;if(e&&(t||i)){let t=null;e.e.off(".limit").on("beforePaste.limit",()=>{t=e.history.snapshot.make()}).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",()=>{if(this.__shouldDenyInput(!0)&&t)return e.history.snapshot.restore(t),e.e.fire("denyPaste.limit"),!1})}}shouldPreventInsertHTML(e){return!(e&&(o.COMMAND_KEYS.includes(e.key)||e.ctrlKey||e.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(e){var t,i;let{jodit:n}=this,{limitWords:o,limitChars:r}=n.o,s=n.o.limitHTML?n.value:n.text,a=this.__splitWords(s);if(o&&(t=a.length,e?t>o:t>=o))return n.e.fire("denyWords.limit limit.limit"),!0;let l=!!(r&&(i=a.join("").length,e?i>r:i>=r));return l&&n.e.fire("denyChars.limit limit.limit"),l}checkPreventKeyPressOrPaste(e){if(this.shouldPreventInsertHTML(e))return!1}checkPreventChanging(e,t){let{jodit:i}=this;this.__shouldDenyInput(!0)&&(i.value=t)}__splitWords(e){return e.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").split((0,o.SPACE_REG_EXP)()).filter(e=>e.length)}beforeDestruct(e){e.e.off(".limit")}}(0,n.__decorate)([r.autobind],l.prototype,"checkPreventKeyPressOrPaste",null),(0,n.__decorate)([r.autobind],l.prototype,"checkPreventChanging",null),s.pluginSystem.add("limit",l)},87908:function(e,t,i){"use strict";var n=i(65946),o=i(29434),r=i(5266),s=i(223),a=i.n(s);r.Config.prototype.defaultLineHeight=null,o.Icon.set("line-height",a()),r.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(e,t,{control:i})=>(0,n.memorizeExec)(e,t,{control:i},e=>e)}},40685:function(e){e.exports={"Line height":"ارتفاع الخط"}},11246:function(e){e.exports={"Line height":"V\xfdška č\xe1ry"}},98181:function(e){e.exports={"Line height":"Zeilenh\xf6he"}},65402:function(e){e.exports={"Line height":"Altura de la l\xednea"}},12383:function(e){e.exports={"Line height":"ارتفاع خط"}},38327:function(e){e.exports={"Line height":"Rivin korkeus"}},42210:function(e){e.exports={"Line height":"Hauteur de ligne"}},98361:function(e){e.exports={"Line height":"גובה שורה"}},84041:function(e){e.exports={"Line height":"Vonal magass\xe1ga"}},87623:function(e){e.exports={"Line height":"Tinggi baris"}},5070:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n},cs_cz:function(){return o},de:function(){return r},es:function(){return s},fa:function(){return a},fi:function(){return l},fr:function(){return u},he:function(){return c},hu:function(){return d},id:function(){return h},it:function(){return p},ja:function(){return m},ko:function(){return f},mn:function(){return g},nl:function(){return v},pl:function(){return _},pt_br:function(){return b},ru:function(){return y},tr:function(){return S},ua:function(){return w},zh_cn:function(){return C},zh_tw:function(){return k}});var n=i(40685),o=i(11246),r=i(98181),s=i(65402),a=i(12383),l=i(38327),u=i(42210),c=i(98361),d=i(84041),h=i(87623),p=i(91575),m=i(89739),f=i(13732),g=i(43829),v=i(36740),_=i(554),b=i(53345),y=i(85127),S=i(1840),w=i(14224),C=i(13534),k=i(95562)},91575:function(e){e.exports={"Line height":"Altezza linea"}},89739:function(e){e.exports={"Line height":"ラインの高さ"}},13732:function(e){e.exports={"Line height":"선 높이"}},43829:function(e){e.exports={"Line height":"Зураасны өндөр"}},36740:function(e){e.exports={"Line height":"Lijnhoogte"}},554:function(e){e.exports={"Line height":"Wysokość linii"}},53345:function(e){e.exports={"Line height":"Altura da linha"}},85127:function(e){e.exports={"Line height":"Высота линии"}},1840:function(e){e.exports={"Line height":"\xc7izgi y\xfcksekliği"}},14224:function(e){e.exports={"Line height":"Висота лінії"}},13534:function(e){e.exports={"Line height":"线高"}},95562:function(e){e.exports={"Line height":"行高"}},58354:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(23211),a=i(28077),l=i(65946),u=i(91206);i(87908);var c=i(5070);class d extends u.Plugin{afterInit(e){(0,l.css)(e.editor,{lineHeight:e.o.defaultLineHeight}),e.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(e,t,i){let n,{s:o,createInside:r,editor:a,o:u}=this.j;o.isFocused()||o.focus(),o.save();let c=e=>{let t=s.Dom.closest(e,s.Dom.isBlock,a);t||(t=s.Dom.wrap(e,u.enter,r));let o=(0,l.css)(t,"lineHeight");void 0===n&&(n=o.toString()!==i.toString()),(0,l.css)(t,"lineHeight",n?i:null)};try{if(o.isCollapsed()){let e=r.fake();o.insertNode(e,!1,!1),c(e),s.Dom.safeRemove(e)}else o.eachSelection(c)}finally{o.restore()}}beforeDestruct(e){(0,l.css)(e.editor,{lineHeight:null})}constructor(e){super(e),(0,n._)(this,"buttons",[{name:"lineHeight",group:"font"}]),(0,a.extendLang)(c)}}(0,o.__decorate)([r.autobind],d.prototype,"applyLineHeight",null),a.pluginSystem.add("lineHeight",d)},65230:function(e,t,i){"use strict";var n=i(23211),o=i(29434),r=i(5266),s=i(95032),a=i.n(s),l=i(73533),u=i.n(l),c=i(45778);r.Config.prototype.link={formTemplate:c.formTemplate,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},o.Icon.set("link",a()).set("unlink",u()),r.Config.prototype.controls.unlink={exec:(e,t)=>{let i=n.Dom.closest(t,"a",e.editor);i&&n.Dom.unwrap(i),e.synchronizeValues(),e.e.fire("hidePopup")},tooltip:"Unlink"},r.Config.prototype.controls.link={isActive:e=>{let t=e.s.current();return!!(t&&n.Dom.closest(t,"a",e.editor))},popup:(e,t,i)=>e.e.fire("generateLinkForm.link",t,i),tags:["a"],tooltip:"Insert link"}},68624:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(27795),a=i(28077),l=i(65946),u=i(91206);i(65230);class c extends u.Plugin{afterInit(e){e.o.link.followOnDblClick&&e.e.on("dblclick.link",this.__onDblClickOnLink),e.e.on(e.editor,"click.link",this.__onClickReadOnlyLink),e.o.link.processPastedLink&&e.e.on("processPaste.link",this.onProcessPasteLink),e.e.on("generateLinkForm.link",this.__generateForm),e.registerCommand("openLinkDialog",{exec:()=>{let t=e.dlg({resizable:!1}),i=this.__generateForm(e.s.current(),()=>{t.close()});i.container.classList.add("jodit-dialog_alert"),t.setContent(i),t.open(),e.async.requestIdleCallback(()=>{let{url_input:e}=(0,l.refs)(i.container);null==e||e.focus()})},hotkeys:e.o.link.hotkeys})}__onDblClickOnLink(e){if(!s.Dom.isTag(e.target,"a"))return;let t=(0,l.attr)(e.target,"href");t&&(location.href=t,e.preventDefault())}onProcessPasteLink(e,t){let{jodit:i}=this;if((0,l.isURL)(t)&&i.o.link.processPastedLink){if(i.e.stopPropagation("processPaste"),i.o.link.processVideoLink){var n,o,r,s;let e=(0,l.call)(null!=(n=null==(o=i.o.video)?void 0:o.parseUrlToVideoEmbed)?n:l.convertMediaUrlToVideoEmbed,t,{width:null==(r=i.o.video)?void 0:r.defaultWidth,height:null==(s=i.o.video)?void 0:s.defaultHeight});if(e!==t)return i.createInside.fromHTML(e)}if(i.s.isCollapsed()){let e=i.createInside.element("a");return(0,l.attr)(e,"href",t),e.textContent=t,i.e.fire("applyLink",i,e,null),e}return i.s.commitStyle({element:"a",attributes:{href:t}}),!0}}__generateForm(e,t){let i,{jodit:n}=this,o=n.i18n.bind(n),{openInNewTabCheckbox:r,noFollowCheckbox:a,formTemplate:u,formClassName:c,modeClassName:d}=n.o.link,h=u(n),p=(0,l.isString)(h)?n.c.fromHTML(h,{target_checkbox_box:r,nofollow_checkbox_box:a}):h,m=s.Dom.isElement(p)?p:p.container,f=(0,l.refs)(m),{insert:g,unlink:v,content_input_box:_}=f,{target_checkbox:b,nofollow_checkbox:y,url_input:S}=f,w=s.Dom.isImage(e),{content_input:C}=f,{className_input:k}=f,{className_select:E}=f;C||(C=n.c.element("input",{type:"hidden",ref:"content_input"})),c&&m.classList.add(c),w&&s.Dom.hide(_);let I=()=>i?i.innerText:(0,l.stripTags)(n.s.range.cloneContents(),n.ed);i=!!(e&&s.Dom.closest(e,"a",n.editor))&&s.Dom.closest(e,"a",n.editor),!w&&e&&(C.value=I()),i?(S.value=(0,l.attr)(i,"href")||"",d&&function(e,t,i,n){switch(e){case"input":t&&(t.value=(0,l.attr)(i,"class")||"");break;case"select":if(n){for(let e=0;e<n.selectedOptions.length;e++){let t=n.options.item(e);t&&(t.selected=!1)}((0,l.attr)(i,"class")||"").split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{if(e)for(let t=0;t<n.options.length;t++){let i=n.options.item(t);(null==i?void 0:i.value)&&i.value.split(/\s+/).map(e=>e.trim()).includes(e)&&(i.selected=!0)}})}}}(d,k,i,E),r&&b&&(b.checked="_blank"===(0,l.attr)(i,"target")),a&&y&&(y.checked=((0,l.attr)(i,"rel")||"").split(/\s+/).includes("nofollow")),g.textContent=o("Update")):s.Dom.hide(v),n.editor.normalize();let T=n.history.snapshot.make();v&&n.e.on(v,"click",e=>{n.s.restore(),n.history.snapshot.restore(T),i&&s.Dom.unwrap(i),n.synchronizeValues(),t(),e.preventDefault()});let x=()=>{let e;if(!S.value.trim().length)return S.focus(),S.classList.add("jodit_error"),!1;n.s.restore(),n.s.removeMarkers(),n.editor.normalize(),n.history.snapshot.restore(T);let o=I()!==C.value.trim(),u=n.createInside;if(i&&s.Dom.isOrContains(n.editor,i))e=[i];else{if(n.s.isCollapsed()){let t=u.element("a");n.s.insertNode(t,!1,!1),e=[t]}else{let t=n.s.current();e=s.Dom.isTag(t,"img")?[s.Dom.wrap(t,"a",u)]:n.s.wrapInTag("a")}e.forEach(e=>n.s.select(e))}return e.forEach(e=>{var t;let i;if((0,l.attr)(e,"href",S.value),function(e,t,i,n){if(e&&(null!=t?t:i)){if("input"===e)""===t.value&&n.hasAttribute("class")&&(0,l.attr)(n,"class",null),""!==t.value&&(0,l.attr)(n,"class",t.value);else if("select"===e){n.hasAttribute("class")&&(0,l.attr)(n,"class",null);for(let e=0;e<i.selectedOptions.length;e++){var o;let t=null==(o=i.selectedOptions.item(e))?void 0:o.value;t&&t.split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{n.classList.add(e)})}}}}(d,k,E,e),w||(t=C,i=e.textContent,t.value.trim().length?o&&(i=t.value):i=S.value,i!==e.textContent&&(e.textContent=i)),r&&b&&(0,l.attr)(e,"target",b.checked?"_blank":null),a&&y){let t=((0,l.attr)(e,"rel")||"").split(/\s+/).filter(Boolean),i=t.includes("nofollow");y.checked&&!i?t.push("nofollow"):!y.checked&&i&&t.splice(t.indexOf("nofollow"),1),(0,l.attr)(e,"rel",t.length?t.join(" "):null)}n.e.fire("applyLink",n,e,p)}),n.synchronizeValues(),t(),!1};return s.Dom.isElement(p)?n.e.on(p,"submit",e=>(e.preventDefault(),e.stopImmediatePropagation(),x(),!1)):p.onSubmit(x),p}beforeDestruct(e){e.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(e.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}__onClickReadOnlyLink(e){let{jodit:t}=this;t.o.readonly&&t.o.link.preventReadOnlyNavigation&&s.Dom.isTag(e.target,"a")&&e.preventDefault()}constructor(...e){super(...e),(0,n._)(this,"buttons",[{name:"link",group:"insert"}])}}(0,o.__decorate)([r.autobind],c.prototype,"__onDblClickOnLink",null),(0,o.__decorate)([r.autobind],c.prototype,"onProcessPasteLink",null),(0,o.__decorate)([r.autobind],c.prototype,"__generateForm",null),(0,o.__decorate)([r.autobind],c.prototype,"__onClickReadOnlyLink",null),a.pluginSystem.add("link",c)},45778:function(e,t,i){"use strict";i.d(t,{formTemplate:function(){return r}});var n=i(59400),o=i(5658);let r=e=>{let{openInNewTabCheckbox:t,noFollowCheckbox:i,modeClassName:r,selectSizeClassName:s,selectMultipleClassName:a,selectOptionsClassName:l}=e.o.link;return new o.UIForm(e,[new o.UIBlock(e,[new o.UIInput(e,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new o.UIBlock(e,[new o.UIInput(e,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),r?new o.UIBlock(e,["input"===r?new o.UIInput(e,{name:"className",ref:"className_input",label:"Class name"}):"select"===r?new o.UISelect(e,{name:"className",ref:"className_select",label:"Class name",size:s,multiple:a,options:l}):null]):null,t?new o.UICheckbox(e,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,i?new o.UICheckbox(e,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new o.UIBlock(e,[new n.UIButton(e,{name:"unlink",variant:"default",text:"Unlink"}),new n.UIButton(e,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])}},51730:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.mediaFakeTag="jodit-media",n.Config.prototype.mediaInFakeBlock=!0,n.Config.prototype.mediaBlocks=["video","audio"]},76830:function(e,t,i){"use strict";var n=i(81937),o=i(28077),r=i(93640);i(51730),o.pluginSystem.add("media",function(e){let t="jodit_fake_wrapper",{mediaFakeTag:i,mediaBlocks:o,mediaInFakeBlock:s}=e.options;s&&e.e.on("afterGetValueFromEditor",e=>{let n=RegExp(`<${i}[^>]+data-${t}[^>]+>([^]+?)</${i}>`,"ig");n.test(e.value)&&(e.value=e.value.replace(n,"$1"))}).on("change afterInit afterSetMode changePlace",e.async.debounce(()=>{e.isDestructed||e.getMode()===n.MODE_SOURCE||(0,r.$$)(o.join(","),e.editor).forEach(n=>{if(!(0,r.dataBind)(n,t)){(0,r.dataBind)(n,t,!0);var o=n;if(o.parentNode&&(0,r.attr)(o.parentNode,"data-jodit_iframe_wrapper"))o=o.parentNode;else{let n=e.createInside.element(i,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,[`data-${t}`]:1});(0,r.attr)(n,"style",(0,r.attr)(o,"style")),n.style.display="inline-block"===o.style.display?"inline-block":"block",n.style.width=o.offsetWidth+"px",n.style.height=o.offsetHeight+"px",o.parentNode&&o.parentNode.insertBefore(n,o),n.appendChild(o),o=n}e.e.off(o,"mousedown.select touchstart.select").on(o,"mousedown.select touchstart.select",()=>{e.s.setCursorAfter(o)})}})},e.defaultTimeout))})},3244:function(e,t,i){"use strict";var n=i(81937),o=i(65946),r=i(5266),s=i(42573),a=i(4274);r.Config.prototype.mobileTapTimeout=300,r.Config.prototype.toolbarAdaptive=!0,r.Config.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},{group:"other",buttons:[]},"|","dots"],r.Config.prototype.buttonsSM=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},"\n",{group:"state",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},"|","dots"],r.Config.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],r.Config.prototype.controls.dots={mode:n.MODE_SOURCE+n.MODE_WYSIWYG,popup:(e,t,i,n)=>{let r=n.control.data;return void 0===r&&(r={toolbar:(0,a.makeCollection)(e),rebuild:()=>{if(n){let a=e.e.fire("getDiffButtons.mobile",n.closest(s.ToolbarCollection));if(a&&r){var t,i;r.toolbar.build((0,o.splitArray)(a));let n=(null==(i=e.toolbar)||null==(t=i.firstButton)?void 0:t.container.offsetWidth)||36;r.toolbar.container.style.width=(n+4)*3+"px"}}}},n.control.data=r),r.rebuild(),r.toolbar},tooltip:"Show all"}},74240:function(e,t,i){"use strict";var n=i(28077),o=i(65946),r=i(2496);i(3244),n.pluginSystem.add("mobile",function(e){let t=0,i=(0,o.splitArray)(e.o.buttons);e.o.mobileTapTimeout&&e.e.on("touchend",i=>{if(i.changedTouches&&i.changedTouches.length){let n=new Date().getTime(),o=n-t;o>e.o.mobileTapTimeout&&(t=n,o<1.5*e.o.mobileTapTimeout&&e.s.insertCursorAtPoint(i.clientX,i.clientY))}}),e.e.on("getDiffButtons.mobile",t=>{if(t===e.toolbar){let t=(0,r.flatButtonsSet)((0,o.splitArray)(e.o.buttons),e),n=(0,r.flatButtonsSet)(i,e);return(0,o.toArray)(t).reduce((e,t)=>(n.has(t)||e.push(t),e),[])}}),e.o.toolbarAdaptive&&e.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",()=>{var t,n;if(!e.o.toolbar)return;let r=(null!=(t=e.container.parentElement)?t:e.container).offsetWidth,s=e.isFullSize||r>=e.o.sizeLG?(0,o.splitArray)(e.o.buttons):r>=e.o.sizeMD?(0,o.splitArray)(e.o.buttonsMD):r>=e.o.sizeSM?(0,o.splitArray)(e.o.buttonsSM):(0,o.splitArray)(e.o.buttonsXS);s.toString()!==i.toString()&&(i=s,e.e.fire("closeAllPopups"),null==(n=e.toolbar)||n.setRemoveButtons(e.o.removeButtons).build(i.concat(e.o.extraButtons)))}).on(e.ow,"load resize",()=>e.e.fire("recalcAdaptive"))})},60162:function(e,t,i){"use strict";var n=i(36400),o=i(29434),r=i(5266),s=i(40037),a=i.n(s),l=i(83207),u=i.n(l);let c=(e,t,{control:i})=>{var o;let r=`button${i.command}`,s=null!=(o=i.args&&i.args[0])?o:(0,n.dataBind)(e,r);(0,n.dataBind)(e,r,s),e.execCommand(i.command,!1,"default"===s?null:s)};o.Icon.set("ol",a()).set("ul",u()),r.Config.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:c},r.Config.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:c}},98792:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(28077),a=i(91206);i(60162);class l extends a.Plugin{afterInit(e){e.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(e,t,i){return this.jodit.s.commitStyle({element:"insertunorderedlist"===e?"ul":"ol",attributes:{style:{listStyleType:null!=i?i:null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(e){}constructor(...e){super(...e),(0,n._)(this,"buttons",[{name:"ul",group:"list"},{name:"ol",group:"list"}])}}(0,o.__decorate)([r.autobind],l.prototype,"onCommand",null),s.pluginSystem.add("orderedList",l)},71693:function(e,t,i){"use strict";var n=i(81937),o=i(5266);o.Config.prototype.askBeforePasteFromWord=!0,o.Config.prototype.processPasteFromWord=!0,o.Config.prototype.defaultActionOnPasteFromWord=null,o.Config.prototype.pasteFromWordActionList=[{value:n.INSERT_AS_HTML,text:"Keep"},{value:n.INSERT_AS_TEXT,text:"Clean"},{value:n.INSERT_ONLY_TEXT,text:"Insert only Text"}]},96730:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(28077),l=i(65946),u=i(91206);i(71693);var c=i(54308);class d extends u.Plugin{afterInit(e){}beforeDestruct(e){}processWordHTML(e,t,i){let{j:n}=this,{processPasteFromWord:o,askBeforePasteFromWord:r,defaultActionOnPasteFromWord:s,defaultActionOnPaste:a,pasteFromWordActionList:u}=n.o;return!!(o&&(0,l.isHtmlFromWord)(t))&&(r?(0,c.askInsertTypeDialog)(n,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",n=>{this.insertFromWordByType(e,t,n,i)},u):this.insertFromWordByType(e,t,s||a,i),!0)}insertFromWordByType(e,t,i,n){switch(i){case r.INSERT_AS_HTML:{var o;t=(0,l.applyStyles)(t);let e=null==(o=this.j.events)?void 0:o.fire("beautifyHTML",t);(0,l.isString)(e)&&(t=e);break}case r.INSERT_AS_TEXT:t=(0,l.cleanFromWord)(t);break;case r.INSERT_ONLY_TEXT:t=(0,l.stripTags)((0,l.cleanFromWord)(t))}(0,c.pasteInsertHtml)(e,this.j,t)}}(0,n._)(d,"requires",["paste"]),(0,o.__decorate)([(0,s.watch)(":processHTML")],d.prototype,"processWordHTML",null),a.pluginSystem.add("pasteFromWord",d)},7758:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(23211),s=i(28077),a=i(65946),l=i(18855),u=i(53681);class c extends l.Plugin{createDialog(){this.dialog=this.j.dlg();let e=(0,u.Button)(this.j,"paste","Paste","primary");e.onAction(this.paste);let t=(0,u.Button)(this.j,"","Cancel");t.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([e,t]),this.j.e.on(this.listBox,"click dblclick",e=>{let t=e.target;return r.Dom.isTag(t,"a")&&t.hasAttribute("data-index")&&this.selectIndex(parseInt((0,a.attr)(t,"-index")||"0",10)),"dblclick"===e.type&&this.paste(),!1})}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",()=>this.list.length).on("afterCopy.paste-storage",e=>{-1!==this.list.indexOf(e)&&this.list.splice(this.list.indexOf(e),1),this.list.unshift(e),this.list.length>5&&(this.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),r.Dom.safeRemove(this.previewBox),r.Dom.safeRemove(this.listBox),r.Dom.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}constructor(...e){super(...e),(0,n._)(this,"currentIndex",0),(0,n._)(this,"list",[]),(0,n._)(this,"container",null),(0,n._)(this,"listBox",null),(0,n._)(this,"previewBox",null),(0,n._)(this,"dialog",null),(0,n._)(this,"paste",()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){let e=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=e}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")}),(0,n._)(this,"onKeyDown",e=>{let t=this.currentIndex;if(-1!==[o.KEY_UP,o.KEY_DOWN,o.KEY_ENTER].indexOf(e.key)){if(e.key===o.KEY_UP&&(0===t?t=this.list.length-1:t-=1),e.key===o.KEY_DOWN&&(t===this.list.length-1?t=0:t+=1),e.key===o.KEY_ENTER)return void this.paste();t!==this.currentIndex&&this.selectIndex(t),e.stopImmediatePropagation(),e.preventDefault()}}),(0,n._)(this,"selectIndex",e=>{this.listBox&&(0,a.toArray)(this.listBox.childNodes).forEach((t,i)=>{t.classList.remove("jodit_active"),e===i&&this.previewBox&&(t.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[e],t.focus())}),this.currentIndex=e}),(0,n._)(this,"showDialog",()=>{this.list.length<2||(this.dialog||this.createDialog(),this.listBox&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),this.list.forEach((e,t)=>{let i=this.j.c.element("a");i.textContent=t+1+". "+e.replace((0,o.SPACE_REG_EXP)(),""),this.j.e.on(i,"keydown",this.onKeyDown),(0,a.attr)(i,"href","#"),(0,a.attr)(i,"data-index",t.toString()),(0,a.attr)(i,"tab-index","-1"),this.listBox&&this.listBox.appendChild(i)}),this.dialog&&this.dialog.open(),this.j.async.setTimeout(()=>{this.selectIndex(0)},100))})}}s.pluginSystem.add("pasteStorage",c)},38187:function(e,t,i){"use strict";var n=i(81937),o=i(5266),r=i(54308);o.Config.prototype.askBeforePasteHTML=!0,o.Config.prototype.processPasteHTML=!0,o.Config.prototype.scrollToPastedContent=!0,o.Config.prototype.pasteExcludeStripTags=["br","hr"],o.Config.prototype.pasteHTMLActionList=[{value:n.INSERT_AS_HTML,text:"Keep"},{value:n.INSERT_AS_TEXT,text:"Insert as Text"},{value:n.INSERT_ONLY_TEXT,text:"Insert only Text"}],o.Config.prototype.memorizeChoiceWhenPasteFragment=!1,o.Config.prototype.nl2brInPlainText=!0;let s="pasteStorage";o.Config.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(e,t,{control:i}){if(i.name===s)return void e.execCommand("showPasteStorage");e.s.focus();let o="",a=!0;if(navigator.clipboard){try{let e=await navigator.clipboard.read();if(e&&e.length){let t=await e[0].getType(n.TEXT_PLAIN);o=await new Response(t).text()}a=!1}catch(e){n.IS_PROD}if(a)try{o=await navigator.clipboard.readText(),a=!1}catch(e){n.IS_PROD}}a&&(a=0===(o=e.buffer.get(n.CLIPBOARD_ID)||"").length);let l=e.value;a?(e.ed.execCommand("paste"),(a=l===e.value)||e.e.fire("afterPaste")):o.length?((0,r.pasteInsertHtml)(null,e,o),e.e.fire("afterPaste")):a&&e.alert("Your browser doesn't support direct access to the clipboard.",()=>void e.s.focus())},list:{[s]:"Paste Storage"},isChildDisabled(e){return 2>e.e.fire("pasteStorageList")}}},54308:function(e,t,i){"use strict";i.d(t,{askInsertTypeDialog:function(){return u},getAllTypes:function(){return l},pasteInsertHtml:function(){return a}});var n=i(81937),o=i(23211),r=i(28686),s=i(53681);function a(e,t,i){var n;let s,a;if(t.isInDestruct)return;e&&"drop"===e.type&&t.s.insertCursorAtPoint(e.clientX,e.clientY);let l=t.e.fire("beforePasteInsert",i);!(0,r.isVoid)(l)&&((0,r.isString)(l)||(0,r.isNumber)(l)||o.Dom.isNode(l))&&(i=l),(0,r.isString)(i)&&(-1!==(s=(n=(n=i).replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i))&&(n=n.substring(s+20)),-1!==(a=n.search(/<!--EndFragment-->/i))&&(n=n.substring(0,a)),i=n),t.s.insertHTML(i)}function l(e){let t=e.types,i="";if((0,r.isArray)(t)||"[object DOMStringList]"===({}).toString.call(t))for(let e=0;e<t.length;e+=1)i+=t[e]+";";else i=(t||n.TEXT_PLAIN).toString()+";";return i}function u(e,t,i,n,o){if(!1===e.e.fire("beforeOpenPasteDialog",t,i,n,o))return;let r=e.confirm(`<div style="word-break: normal; white-space: normal">${e.i18n(t)}</div>`,e.i18n(i)),a=o.map(({text:t,value:i})=>(0,s.Button)(e,{text:t,name:t.toLowerCase(),tabIndex:0}).onAction(()=>{r.close(),n(i)}));r.e.one(r,"afterClose",()=>{e.s.isFocused()||e.s.focus()});let l=(0,s.Button)(e,{text:"Cancel",tabIndex:0}).onAction(()=>{r.close()});return r.setFooter([...a,l]),a[0].focus(),a[0].state.variant="primary",e.e.fire("afterOpenPasteDialog",r,t,i,n,o),r}},23422:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(18855);i(38187);var d=i(54308);class h extends c.Plugin{afterInit(e){e.e.on("paste.paste",this.onPaste).on("pasteStack.paste",e=>this.pasteStack.push(e)),e.o.nl2brInPlainText&&this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}beforeDestruct(e){e.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}onPaste(e){try{if(!1===this.customPasteProcess(e)||!1===this.j.e.fire("beforePaste",e))return e.preventDefault(),!1;this.defaultPasteProcess(e)}finally{this.j.e.fire("afterPaste",e)}}customPasteProcess(e){if(!this.j.o.processPasteHTML)return;let t=(0,u.getDataTransfer)(e),i=[null==t?void 0:t.getData(r.TEXT_PLAIN),null==t?void 0:t.getData(r.TEXT_HTML),null==t?void 0:t.getData(r.TEXT_RTF)];for(let t of i)if((0,u.isHTML)(t)&&(this.j.e.fire("processHTML",e,t,{plain:i[0],html:i[1],rtf:i[2]})||this.processHTML(e,t)))return!1}defaultPasteProcess(e){let t=(0,u.getDataTransfer)(e),i=(null==t?void 0:t.getData(r.TEXT_HTML))||(null==t?void 0:t.getData(r.TEXT_PLAIN));if(t&&i&&""!==(0,u.trim)(i)){let n=this.j.e.fire("processPaste",e,i,(0,d.getAllTypes)(t));void 0!==n&&(i=n),((0,u.isString)(i)||a.Dom.isNode(i))&&this.__insertByType(e,i,this.j.o.defaultActionOnPaste),e.preventDefault(),e.stopPropagation()}}processHTML(e,t){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){let i=this.pasteStack.find(e=>e.html===t);if(i)return this.__insertByType(e,t,i.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;let i=(0,d.askInsertTypeDialog)(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",i=>{this._isDialogOpened=!1,this.__insertByType(e,t,i)},this.j.o.pasteHTMLActionList);return i&&(this._isDialogOpened=!0,i.e.on("beforeClose",()=>{this._isDialogOpened=!1})),!0}__insertByType(e,t,i){if(this.pasteStack.push({html:t,action:i}),(0,u.isString)(t))switch(this.j.buffer.set(r.CLIPBOARD_ID,t),i){case r.INSERT_CLEAR_HTML:t=(0,u.cleanFromWord)(t);break;case r.INSERT_ONLY_TEXT:t=(0,u.stripTags)(t,this.j.ed,new Set(this.j.o.pasteExcludeStripTags));break;case r.INSERT_AS_TEXT:t=(0,u.htmlspecialchars)(t);break;default:{let n=this.j.e.fire("onCustomPasteHTMLOption",i,t,e);"string"==typeof n&&(t=n)}}(0,d.pasteInsertHtml)(e,this.j,t)}onProcessPasteReplaceNl2Br(e,t,i){if(i===r.TEXT_PLAIN+";"&&!(0,u.isHTML)(t))return(0,u.nl2br)(t)}constructor(...e){super(...e),(0,n._)(this,"pasteStack",new u.LimitedStack(20)),(0,n._)(this,"_isDialogOpened",!1)}}(0,o.__decorate)([s.autobind],h.prototype,"onPaste",null),(0,o.__decorate)([s.autobind],h.prototype,"onProcessPasteReplaceNl2Br",null),l.pluginSystem.add("paste",h)},8257:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.showPlaceholder=!0,n.Config.prototype.placeholder="Type something",n.Config.prototype.useInputsPlaceholder=!0},28346:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(23175),c=i(7909),d=i(80991),h=i(18855);i(8257);class p extends h.Plugin{afterInit(e){e.o.showPlaceholder&&(this.placeholderElm=e.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${e.i18n(e.o.placeholder)}</span>`),"rtl"===e.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),e.e.on("readonly",e=>{e?this.hide():this.toggle()}).on("changePlace",this.addEvents),this.addEvents())}show(){let e=this.j;if(e.o.readonly)return;let t=0,i=0,n=e.s.current(),o=n&&a.Dom.closest(n,a.Dom.isBlock,e.editor)||e.editor,r=e.ew.getComputedStyle(o),s=e.ew.getComputedStyle(e.editor);e.workplace.appendChild(this.placeholderElm);let{firstChild:l}=e.editor;if(a.Dom.isElement(l)&&!(0,u.isMarker)(l)){let n=e.ew.getComputedStyle(l);t=parseInt(n.getPropertyValue("margin-top"),10),i=parseInt(n.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(n.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=n.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(r.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=r.getPropertyValue("line-height");(0,d.css)(this.placeholderElm,{display:"block",textAlign:r.getPropertyValue("text-align"),paddingTop:parseInt(s.paddingTop,10)+"px",paddingLeft:parseInt(s.paddingLeft,10)+"px",paddingRight:parseInt(s.paddingRight,10)+"px",marginTop:Math.max(parseInt(r.getPropertyValue("margin-top"),10),t),marginLeft:Math.max(parseInt(r.getPropertyValue("margin-left"),10),i)})}hide(){a.Dom.safeRemove(this.placeholderElm)}toggle(){let e=this.j;if(e.editor&&!e.isInDestruct){if(e.getRealMode()!==r.MODE_WYSIWYG)return void this.hide();!function(e){var t;if(!e.firstChild)return!0;let i=e.firstChild;if(r.INSEPARABLE_TAGS.has(null==(t=i.nodeName)?void 0:t.toLowerCase())||/^(TABLE)$/i.test(i.nodeName))return!1;let n=a.Dom.next(i,e=>e&&!a.Dom.isEmptyTextNode(e),e);return a.Dom.isText(i)&&!n?a.Dom.isEmptyTextNode(i):!n&&a.Dom.each(i,e=>!(a.Dom.isLeaf(e)||a.Dom.isList(e))&&(a.Dom.isEmpty(e)||a.Dom.isTag(e,"br")))}(e.editor)?this.hide():this.show()}}beforeDestruct(e){this.hide(),e.e.off(".placeholder").off(window,"load",this.toggle)}constructor(...e){super(...e),(0,n._)(this,"placeholderElm",void 0),(0,n._)(this,"addNativeListeners",()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)}),(0,n._)(this,"addEvents",()=>{let e=this.j;e.o.useInputsPlaceholder&&e.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,c.attr)(e.element,"placeholder")||""),e.e.fire("placeholder",this.placeholderElm.innerHTML),e.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()})}}(0,o.__decorate)([(0,s.debounce)(e=>e.defaultTimeout/10,!0)],p.prototype,"toggle",null),l.pluginSystem.add("placeholder",p)},198:function(e,t,i){"use strict";i(28077).pluginSystem.add("poweredByJodit",function(e){let{o:t}=e;!t.hidePoweredByJodit&&!t.inline&&(t.showCharsCounter||t.showWordsCounter||t.showXPathInStatusbar)&&e.hookStatus("ready",()=>{e.statusbar.append(e.create.fromHTML(`<a
208
208
  tabindex="-1"
209
209
  style="text-transform: uppercase"
210
210
  class="jodit-status-bar-link"
@@ -215,7 +215,7 @@
215
215
  body {
216
216
  -webkit-print-color-adjust: exact;
217
217
  }
218
- }`,n.document.head.appendChild(t),n.focus(),n.print()}},mode:n.MODE_SOURCE+n.MODE_WYSIWYG,tooltip:"Print"},r.pluginSystem.add("print",function(e){e.registerButton({name:"print"})})},59758:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(28077),s=i(18855),a=i(29434),l=i(5266),u=i(34045),c=i.n(u),d=i(39199),h=i.n(d);a.Icon.set("redo",c()).set("undo",h()),l.Config.prototype.controls.redo={mode:o.MODE_SPLIT,isDisabled:e=>!e.history.canRedo(),tooltip:"Redo"},l.Config.prototype.controls.undo={mode:o.MODE_SPLIT,isDisabled:e=>!e.history.canUndo(),tooltip:"Undo"};class p extends s.Plugin{beforeDestruct(){}afterInit(e){let t=t=>(e.history[t](),!1);e.registerCommand("redo",{exec:t,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),e.registerCommand("undo",{exec:t,hotkeys:["ctrl+z","cmd+z"]})}constructor(...e){super(...e),(0,n._)(this,"buttons",[{name:"undo",group:"history"},{name:"redo",group:"history"}])}}r.pluginSystem.add("redoUndo",p)},51822:function(e,t,i){"use strict";i(5266).Config.prototype.tableAllowCellResize=!0},14248:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(60936);i(51822);let d="table_processor_observer-resize";class h extends c.Plugin{get module(){return this.j.getInstance("Table",this.j.o)}get isRTL(){return"rtl"===this.j.o.direction}showResizeHandle(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}hideResizeHandle(){this.hideTimeout=this.j.async.setTimeout(()=>{a.Dom.safeRemove(this.resizeHandler)},{timeout:this.j.defaultTimeout,label:"hideResizer"})}onHandleMouseDown(e){if(this.j.isLocked)return;this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=e.clientX,this.j.lock(d),this.resizeHandler.classList.add("jodit-table-resizer_moved");let t,i=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)i=this.workTable.parentNode.getBoundingClientRect(),this.minX=i.left,this.maxX=this.minX+i.width;else{let e=this.module.formalCoordinate(this.workTable,this.workCell,!0);this.module.formalMatrix(this.workTable,(i,n,o)=>{e[1]===o&&(t=i.getBoundingClientRect(),this.minX=Math.max(t.left+r.NEARBY/2,this.minX)),e[1]+(this.isRTL?-1:1)===o&&(t=i.getBoundingClientRect(),this.maxX=Math.min(t.left+t.width-r.NEARBY/2,this.maxX))})}return!1}onMouseMove(e){if(!this.drag)return;this.j.e.fire("closeAllPopups");let t=e.clientX,i=(0,u.offset)(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);t<this.minX&&(t=this.minX),t>this.maxX&&(t=this.maxX),this.resizeDelta=t-this.startX+(this.j.o.iframe?i.left:0),this.resizeHandler.style.left=t-(this.j.o.iframe?0:i.left)+"px";let n=this.j.s.sel;n&&n.removeAllRanges()}onMouseUp(e){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==e.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}resizeColumns(){let e=this.resizeDelta,t=[],i=this.module;i.setColumnWidthByDelta(this.workTable,i.formalCoordinate(this.workTable,this.workCell,!0)[1],e,!0,t);let n=(0,u.call)(this.isRTL?a.Dom.prev:a.Dom.next,this.workCell,a.Dom.isCell,this.workCell.parentNode);i.setColumnWidthByDelta(this.workTable,i.formalCoordinate(this.workTable,n)[1],-e,!1,t)}resizeTable(){let e=this.resizeDelta*(this.isRTL?-1:1),t=this.workTable.offsetWidth,i=(0,u.getContentWidth)(this.workTable.parentNode,this.j.ew),n=!this.wholeTable;if(this.isRTL?!n:n)this.workTable.style.width=(t+e)/i*100+"%";else{let n=this.isRTL?"marginRight":"marginLeft",o=parseInt(this.j.ew.getComputedStyle(this.workTable)[n]||"0",10);this.workTable.style.width=(t-e)/i*100+"%",this.workTable.style[n]=(o+e)/i*100+"%"}}setWorkCell(e,t=null){this.wholeTable=t,this.workCell=e,this.workTable=a.Dom.up(e,e=>a.Dom.isTag(e,"table"),this.j.editor)}calcHandlePosition(e,t,i=0,n=0){let o=(0,u.offset)(t,this.j,this.j.ed);if(i>r.NEARBY&&i<o.width-r.NEARBY)return void this.hideResizeHandle();let s=(0,u.offset)(this.j.workplace,this.j,this.j.od,!0),l=(0,u.offset)(e,this.j,this.j.ed);if(this.resizeHandler.style.left=(i<=r.NEARBY?o.left:o.left+o.width)-s.left+n+"px",Object.assign(this.resizeHandler.style,{height:l.height+"px",top:l.top-s.top+"px"}),this.showResizeHandle(),i<=r.NEARBY){let e=(0,u.call)(this.isRTL?a.Dom.next:a.Dom.prev,t,a.Dom.isCell,t.parentNode);this.setWorkCell(e||t,!e||null)}else{let e=(0,u.call)(this.isRTL?a.Dom.prev:a.Dom.next,t,a.Dom.isCell,t.parentNode);this.setWorkCell(t,!!e&&null)}}afterInit(e){e.o.tableAllowCellResize&&e.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",()=>{(0,u.$$)("table",e.editor).forEach(this.observe)}).on(this.j.ow,"scroll.resize-cells",()=>{if(!this.drag)return;let t=a.Dom.up(this.workCell,e=>a.Dom.isTag(e,"table"),e.editor);if(t){let e=t.getBoundingClientRect();this.resizeHandler.style.top=e.top+"px"}}).on("beforeSetMode.resize-cells",()=>{let t=this.module;t.getAllSelectedCells().forEach(i=>{t.removeSelection(i),t.normalizeTable(a.Dom.closest(i,"table",e.editor))})})}observe(e){(0,u.dataBind)(e,d)||((0,u.dataBind)(e,d,!0),this.j.e.on(e,"mouseleave.resize-cells",e=>{this.resizeHandler&&this.resizeHandler!==e.relatedTarget&&this.hideResizeHandle()}).on(e,"mousemove.resize-cells touchmove.resize-cells",this.j.async.throttle(t=>{if(this.j.isLocked)return;let i=a.Dom.up(t.target,a.Dom.isCell,e);i&&this.calcHandlePosition(e,i,t.offsetX)},{timeout:this.j.defaultTimeout})),this.createResizeHandle())}beforeDestruct(e){e.events&&(e.e.off(this.j.ow,".resize-cells"),e.e.off(".resize-cells"))}constructor(...e){super(...e),(0,n._)(this,"selectMode",!1),(0,n._)(this,"resizeDelta",0),(0,n._)(this,"resizeHandler",void 0),(0,n._)(this,"createResizeHandle",()=>{this.resizeHandler||(this.resizeHandler=this.j.c.div("jodit-table-resizer"),this.j.e.on(this.resizeHandler,"mousedown.table touchstart.table",this.onHandleMouseDown).on(this.resizeHandler,"mouseenter.table",()=>{this.j.async.clearTimeout(this.hideTimeout)}))}),(0,n._)(this,"hideTimeout",0),(0,n._)(this,"drag",!1),(0,n._)(this,"wholeTable",void 0),(0,n._)(this,"workCell",void 0),(0,n._)(this,"workTable",void 0),(0,n._)(this,"minX",0),(0,n._)(this,"maxX",0),(0,n._)(this,"startX",0)}}(0,o.__decorate)([s.autobind],h.prototype,"onHandleMouseDown",null),(0,o.__decorate)([s.autobind],h.prototype,"onMouseMove",null),(0,o.__decorate)([s.autobind],h.prototype,"onMouseUp",null),(0,o.__decorate)([s.autobind],h.prototype,"observe",null),l.pluginSystem.add("resizeCells",h)},58293:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.allowResizeX=!1,n.Config.prototype.allowResizeY=!0},72214:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(27795),a=i(28077),l=i(91206),u=i(4099);i(58293);class c extends l.Plugin{afterInit(e){let{height:t,width:i,allowResizeX:n}=e.o,{allowResizeY:o}=e.o;"auto"===t&&"auto"!==i&&(o=!1),("auto"!==t||"auto"!==i)&&(n||o)&&(e.statusbar.setMod("resize-handle",!0),e.e.on("toggleFullSize.resizeHandler",()=>{this.handle.style.display=e.isFullSize?"none":"block"}).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(e.ow,"mouseup touchend",this.onHandleResizeEnd),e.container.appendChild(this.handle))}onHandleResizeStart(e){this.isResized=!0,this.start.x=e.clientX,this.start.y=e.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,"mousemove touchmove",this.onHandleResize),e.preventDefault()}onHandleResize(e){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+e.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+e.clientX-this.start.x),this.j.e.fire("resize"))}onHandleResizeEnd(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,"mousemove touchmove",this.onHandleResize),this.j.unlock())}beforeDestruct(){s.Dom.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}constructor(...e){super(...e),(0,n._)(this,"isResized",!1),(0,n._)(this,"start",{x:0,y:0,w:0,h:0}),(0,n._)(this,"handle",this.j.c.div("jodit-editor__resize",u.Icon.get("resize_handler")))}}(0,n._)(c,"requires",["size"]),(0,o.__decorate)([r.autobind],c.prototype,"onHandleResizeStart",null),(0,o.__decorate)([r.autobind],c.prototype,"onHandleResize",null),(0,o.__decorate)([r.autobind],c.prototype,"onHandleResizeEnd",null),a.pluginSystem.add("resizeHandler",c)},96608:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),n.Config.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])}},74522:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(18855);i(96608);let d="__jodit-resizer_binded";class h extends c.Plugin{afterInit(e){(0,u.$$)("div",this.rect).forEach(t=>{e.e.on(t,"mousedown.resizer touchstart.resizer",this.onStartResizing.bind(this,t))}),l.eventEmitter.on("hideHelpers",this.hide),e.e.on("readonly",e=>{e&&this.hide()}).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",e=>{let t=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;t.test(e.value)&&(e.value=e.value.replace(t,"$1"))}),this.addEventListeners(),this.__onChangeEditor()}onEditorClick(e){let t=e.target,{editor:i,options:{allowResizeTags:n}}=this.j;for(;t&&t!==i;){if(a.Dom.isTag(t,n)){this.__bind(t),this.onClickElement(t);return}t=t.parentNode}}__afterInsertImage(e){if(this.j.o.resizer.forImageChangeAttributes)return;let t=(0,u.attr)(e,"width");t&&!(0,u.css)(e,"width",!0)&&((0,u.css)(e,"width",t),(0,u.attr)(e,"width",null))}addEventListeners(){let e=this.j;e.e.off(e.editor,".resizer").off(e.ow,".resizer").on(e.editor,"keydown.resizer",e=>{this.isShown&&e.key===r.KEY_DELETE&&this.element&&!a.Dom.isTag(this.element,"table")&&this.onDelete(e)}).on(e.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([e.ow,e.editor],"scroll.resizer",()=>{this.isShown&&!this.isResizeMode&&this.hide()}).on(e.ow,"keydown.resizer",this.onKeyDown).on(e.ow,"keyup.resizer",this.onKeyUp).on(e.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}onStartResizing(e,t){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=e,t.cancelable&&t.preventDefault(),t.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=t.clientX,this.startY=t.clientY,this.pointerX=t.clientX,this.pointerY=t.clientY;let{j:i}=this;i.e.fire("hidePopup"),i.lock(this.LOCK_KEY),i.e.on(i.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onEndResizing(){let{j:e}=this;e.unlock(),this.isResizeMode=!1,this.isAltMode=!1,e.synchronizeValues(),e.e.off(e.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onResize(e){if(this.isResizeMode){let t,i;if(!this.element)return;if(this.pointerX=e.clientX,this.pointerY=e.clientY,this.j.options.iframe){let n=this.getWorkplacePosition();t=e.clientX+n.left-this.startX,i=e.clientY+n.top-this.startY}else t=this.pointerX-this.startX,i=this.pointerY-this.startY;let n=this.handle.className,o=0,r=0,s=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===s||s&&a.Dom.isTag(this.element,s))?(t?r=Math.round((o=this.width+(n.match(/left/)?-1:1)*t)/this.ratio):o=Math.round((r=this.height+(n.match(/top/)?-1:1)*i)*this.ratio),o>(0,u.innerWidth)(this.j.editor,this.j.ow)&&(r=Math.round((o=(0,u.innerWidth)(this.j.editor,this.j.ow))/this.ratio))):(o=this.width+(n.match(/left/)?-1:1)*t,r=this.height+(n.match(/top/)?-1:1)*i),o>this.j.o.resizer.min_width&&(o<this.rect.parentNode.offsetWidth?this.applySize(this.element,"width",o):this.applySize(this.element,"width","100%")),r>this.j.o.resizer.min_height&&this.applySize(this.element,"height",r),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),e.stopImmediatePropagation()}}onKeyDown(e){this.isAltMode=e.key===r.KEY_ALT,!this.isAltMode&&this.isResizeMode&&this.onEndResizing()}onKeyUp(){this.isAltMode&&this.isResizeMode&&this.element&&(this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.startX=this.pointerX,this.startY=this.pointerY),this.isAltMode=!1}onClickOutside(e){if(this.isShown){if(!this.isResizeMode)return this.hide();e.stopImmediatePropagation(),this.onEndResizing()}}getWorkplacePosition(){return(0,u.offset)(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}applySize(e,t,i){let n=a.Dom.isImage(e)&&this.j.o.resizer.forImageChangeAttributes;n&&(0,u.attr)(e,t,i),(!n||e.style[t])&&(0,u.css)(e,t,i)}onDelete(e){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(a.Dom.safeRemove(this.element),this.hide(),e.preventDefault()))}__onChangeEditor(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),(0,u.$$)("iframe",this.j.editor).forEach(this.__bind)}__bind(e){let t;if(!(!a.Dom.isHTMLElement(e)||!this.j.o.allowResizeTags.has(e.tagName.toLowerCase())||(0,u.dataBind)(e,d))){if((0,u.dataBind)(e,d,!0),a.Dom.isTag(e,"iframe")){let i=e;a.Dom.isHTMLElement(e.parentNode)&&(0,u.attr)(e.parentNode,"-jodit_iframe_wrapper")?e=e.parentNode:(t=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),(0,u.attr)(t,"style",(0,u.attr)(e,"style")),(0,u.css)(t,{display:"inline-block"===e.style.display?"inline-block":"block",width:e.offsetWidth,height:e.offsetHeight}),e.parentNode&&e.parentNode.insertBefore(t,e),t.appendChild(e),this.j.e.on(t,"click",()=>{(0,u.attr)(t,"data-jodit-wrapper_active",!0)}),e=t),this.j.e.off(e,"mousedown.select touchstart.select").on(e,"mousedown.select touchstart.select",()=>{this.j.s.select(e)}).off(e,"changesize").on(e,"changesize",()=>{i.setAttribute("width",e.offsetWidth+"px"),i.setAttribute("height",e.offsetHeight+"px")})}this.j.e.on(e,"dragstart",this.hide),!r.IS_ES_NEXT&&r.IS_IE&&this.j.e.on(e,"mousedown",t=>{a.Dom.isTag(e,"img")&&t.preventDefault()})}}showSizeViewer(e,t){if(this.j.o.resizer.showSize){if(e<this.sizeViewer.offsetWidth||t<this.sizeViewer.offsetHeight)return void this.hideSizeViewer();this.sizeViewer.style.opacity="1",this.sizeViewer.textContent=`${e} x ${t}`,this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})}}show(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||((0,u.markOwner)(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=(0,u.css)(this.j.container,"zIndex").toString()),this.updateSize())}hide(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,a.Dom.safeRemove(this.rect),(0,u.$$)("[data-jodit-wrapper_active='true']",this.j.editor).forEach(e=>(0,u.attr)(e,"data-jodit-wrapper_active",!1)))}beforeDestruct(e){this.hide(),l.eventEmitter.off("hideHelpers",this.hide),e.e.off(this.j.ow,".resizer").off(".resizer")}constructor(...e){super(...e),(0,n._)(this,"LOCK_KEY","resizer"),(0,n._)(this,"handle",void 0),(0,n._)(this,"element",null),(0,n._)(this,"isResizeMode",!1),(0,n._)(this,"isShown",!1),(0,n._)(this,"startX",0),(0,n._)(this,"startY",0),(0,n._)(this,"width",0),(0,n._)(this,"height",0),(0,n._)(this,"ratio",0),(0,n._)(this,"rect",this.j.c.fromHTML(`<div title="${this.j.i18n("Press Alt for custom resizing")}" class="jodit-resizer">
218
+ }`,n.document.head.appendChild(t),n.focus(),n.print()}},mode:n.MODE_SOURCE+n.MODE_WYSIWYG,tooltip:"Print"},r.pluginSystem.add("print",function(e){e.registerButton({name:"print"})})},59758:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(28077),s=i(18855),a=i(29434),l=i(5266),u=i(34045),c=i.n(u),d=i(39199),h=i.n(d);a.Icon.set("redo",c()).set("undo",h()),l.Config.prototype.controls.redo={mode:o.MODE_SPLIT,isDisabled:e=>!e.history.canRedo(),tooltip:"Redo"},l.Config.prototype.controls.undo={mode:o.MODE_SPLIT,isDisabled:e=>!e.history.canUndo(),tooltip:"Undo"};class p extends s.Plugin{beforeDestruct(){}afterInit(e){let t=t=>(e.history[t](),!1);e.registerCommand("redo",{exec:t,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),e.registerCommand("undo",{exec:t,hotkeys:["ctrl+z","cmd+z"]})}constructor(...e){super(...e),(0,n._)(this,"buttons",[{name:"undo",group:"history"},{name:"redo",group:"history"}])}}r.pluginSystem.add("redoUndo",p)},51822:function(e,t,i){"use strict";i(5266).Config.prototype.tableAllowCellResize=!0},14248:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(60936);i(51822);let d="table_processor_observer-resize";class h extends c.Plugin{get module(){return this.j.getInstance("Table",this.j.o)}get isRTL(){return"rtl"===this.j.o.direction}showResizeHandle(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}hideResizeHandle(){this.hideTimeout=this.j.async.setTimeout(()=>{a.Dom.safeRemove(this.resizeHandler)},{timeout:this.j.defaultTimeout,label:"hideResizer"})}onHandleMouseDown(e){if(this.j.isLocked)return;this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=e.clientX,this.j.lock(d),this.resizeHandler.classList.add("jodit-table-resizer_moved");let t,i=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)i=this.workTable.parentNode.getBoundingClientRect(),this.minX=i.left,this.maxX=this.minX+i.width;else{let e=this.module.formalCoordinate(this.workTable,this.workCell,!0);this.module.formalMatrix(this.workTable,(i,n,o)=>{e[1]===o&&(t=i.getBoundingClientRect(),this.minX=Math.max(t.left+r.NEARBY/2,this.minX)),e[1]+(this.isRTL?-1:1)===o&&(t=i.getBoundingClientRect(),this.maxX=Math.min(t.left+t.width-r.NEARBY/2,this.maxX))})}return!1}onMouseMove(e){if(!this.drag)return;this.j.e.fire("closeAllPopups");let t=e.clientX,i=(0,u.offset)(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);t<this.minX&&(t=this.minX),t>this.maxX&&(t=this.maxX),this.resizeDelta=t-this.startX+(this.j.o.iframe?i.left:0),this.resizeHandler.style.left=t-(this.j.o.iframe?0:i.left)+"px";let n=this.j.s.sel;n&&n.removeAllRanges()}onMouseUp(e){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==e.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}resizeColumns(){let e=this.resizeDelta,t=[],i=this.module;i.setColumnWidthByDelta(this.workTable,i.formalCoordinate(this.workTable,this.workCell,!0)[1],e,!0,t);let n=(0,u.call)(this.isRTL?a.Dom.prev:a.Dom.next,this.workCell,a.Dom.isCell,this.workCell.parentNode);i.setColumnWidthByDelta(this.workTable,i.formalCoordinate(this.workTable,n)[1],-e,!1,t)}resizeTable(){let e=this.resizeDelta*(this.isRTL?-1:1),t=this.workTable.offsetWidth,i=(0,u.getContentWidth)(this.workTable.parentNode,this.j.ew),n=!this.wholeTable;if(this.isRTL?!n:n)this.workTable.style.width=(t+e)/i*100+"%";else{let n=this.isRTL?"marginRight":"marginLeft",o=parseInt(this.j.ew.getComputedStyle(this.workTable)[n]||"0",10);this.workTable.style.width=(t-e)/i*100+"%",this.workTable.style[n]=(o+e)/i*100+"%"}}setWorkCell(e,t=null){this.wholeTable=t,this.workCell=e,this.workTable=a.Dom.up(e,e=>a.Dom.isTag(e,"table"),this.j.editor)}calcHandlePosition(e,t,i=0,n=0){let o=(0,u.offset)(t,this.j,this.j.ed);if(i>r.NEARBY&&i<o.width-r.NEARBY)return void this.hideResizeHandle();let s=(0,u.offset)(this.j.workplace,this.j,this.j.od,!0),l=(0,u.offset)(e,this.j,this.j.ed);if(this.resizeHandler.style.left=(i<=r.NEARBY?o.left:o.left+o.width)-s.left+n+"px",Object.assign(this.resizeHandler.style,{height:l.height+"px",top:l.top-s.top+"px"}),this.showResizeHandle(),i<=r.NEARBY){let e=(0,u.call)(this.isRTL?a.Dom.next:a.Dom.prev,t,a.Dom.isCell,t.parentNode);this.setWorkCell(e||t,!e||null)}else{let e=(0,u.call)(this.isRTL?a.Dom.prev:a.Dom.next,t,a.Dom.isCell,t.parentNode);this.setWorkCell(t,!!e&&null)}}afterInit(e){e.o.tableAllowCellResize&&e.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",()=>{(0,u.$$)("table",e.editor).forEach(this.observe)}).on(this.j.ow,"scroll.resize-cells",()=>{if(!this.drag)return;let t=a.Dom.up(this.workCell,e=>a.Dom.isTag(e,"table"),e.editor);if(t){let e=t.getBoundingClientRect();this.resizeHandler.style.top=e.top+"px"}}).on("beforeSetMode.resize-cells",()=>{let t=this.module;t.getAllSelectedCells().forEach(i=>{t.removeSelection(i),t.normalizeTable(a.Dom.closest(i,"table",e.editor))})})}observe(e){(0,u.dataBind)(e,d)||((0,u.dataBind)(e,d,!0),this.j.e.on(e,"mouseleave.resize-cells",e=>{this.resizeHandler&&this.resizeHandler!==e.relatedTarget&&this.hideResizeHandle()}).on(e,"mousemove.resize-cells touchmove.resize-cells",this.j.async.throttle(t=>{if(this.j.isLocked)return;let i=a.Dom.up(t.target,a.Dom.isCell,e);i&&this.calcHandlePosition(e,i,t.offsetX)},{timeout:this.j.defaultTimeout})),this.createResizeHandle())}beforeDestruct(e){e.events&&(e.e.off(this.j.ow,".resize-cells"),e.e.off(".resize-cells"))}constructor(...e){super(...e),(0,n._)(this,"selectMode",!1),(0,n._)(this,"resizeDelta",0),(0,n._)(this,"resizeHandler",void 0),(0,n._)(this,"createResizeHandle",()=>{this.resizeHandler||(this.resizeHandler=this.j.c.div("jodit-table-resizer"),this.j.e.on(this.resizeHandler,"mousedown.table touchstart.table",this.onHandleMouseDown).on(this.resizeHandler,"mouseenter.table",()=>{this.j.async.clearTimeout(this.hideTimeout)}))}),(0,n._)(this,"hideTimeout",0),(0,n._)(this,"drag",!1),(0,n._)(this,"wholeTable",void 0),(0,n._)(this,"workCell",void 0),(0,n._)(this,"workTable",void 0),(0,n._)(this,"minX",0),(0,n._)(this,"maxX",0),(0,n._)(this,"startX",0)}}(0,o.__decorate)([s.autobind],h.prototype,"onHandleMouseDown",null),(0,o.__decorate)([s.autobind],h.prototype,"onMouseMove",null),(0,o.__decorate)([s.autobind],h.prototype,"onMouseUp",null),(0,o.__decorate)([s.autobind],h.prototype,"observe",null),l.pluginSystem.add("resizeCells",h)},58293:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.allowResizeX=!1,n.Config.prototype.allowResizeY=!0},72214:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(27795),a=i(28077),l=i(91206),u=i(4099);i(58293);class c extends l.Plugin{afterInit(e){let{height:t,width:i,allowResizeX:n}=e.o,{allowResizeY:o}=e.o;"auto"===t&&"auto"!==i&&(o=!1),("auto"!==t||"auto"!==i)&&(n||o)&&(e.statusbar.setMod("resize-handle",!0),e.e.on("toggleFullSize.resizeHandler",()=>{this.handle.style.display=e.isFullSize?"none":"block"}).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(e.ow,"mouseup touchend",this.onHandleResizeEnd),e.container.appendChild(this.handle))}onHandleResizeStart(e){this.isResized=!0,this.start.x=e.clientX,this.start.y=e.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,"mousemove touchmove",this.onHandleResize),e.preventDefault()}onHandleResize(e){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+e.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+e.clientX-this.start.x),this.j.e.fire("resize"))}onHandleResizeEnd(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,"mousemove touchmove",this.onHandleResize),this.j.unlock())}beforeDestruct(){s.Dom.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}constructor(...e){super(...e),(0,n._)(this,"isResized",!1),(0,n._)(this,"start",{x:0,y:0,w:0,h:0}),(0,n._)(this,"handle",this.j.c.div("jodit-editor__resize",u.Icon.get("resize_handler")))}}(0,n._)(c,"requires",["size"]),(0,o.__decorate)([r.autobind],c.prototype,"onHandleResizeStart",null),(0,o.__decorate)([r.autobind],c.prototype,"onHandleResize",null),(0,o.__decorate)([r.autobind],c.prototype,"onHandleResizeEnd",null),a.pluginSystem.add("resizeHandler",c)},96608:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),n.Config.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])}},74522:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(18855);i(96608);let d="__jodit-resizer_binded";class h extends c.Plugin{afterInit(e){(0,u.$$)("div",this.rect).forEach(t=>{e.e.on(t,"mousedown.resizer touchstart.resizer",this.onStartResizing.bind(this,t))}),l.eventEmitter.on("hideHelpers",this.hide),e.e.on("readonly",e=>{e&&this.hide()}).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",e=>{let t=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;t.test(e.value)&&(e.value=e.value.replace(t,"$1"))}),this.addEventListeners(),this.__onChangeEditor()}onEditorClick(e){let t=e.target,{editor:i,options:{allowResizeTags:n}}=this.j;for(;t&&t!==i;){if(a.Dom.isTag(t,n)){this.__bind(t),this.onClickElement(t);return}t=t.parentNode}}__afterInsertImage(e){if(this.j.o.resizer.forImageChangeAttributes)return;let t=(0,u.attr)(e,"width");t&&!(0,u.css)(e,"width",!0)&&((0,u.css)(e,"width",t),(0,u.attr)(e,"width",null))}addEventListeners(){let e=this.j;e.e.off(e.editor,".resizer").off(e.ow,".resizer").on(e.editor,"keydown.resizer",e=>{this.isShown&&e.key===r.KEY_DELETE&&this.element&&!a.Dom.isTag(this.element,"table")&&this.onDelete(e)}).on(e.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([e.ow,e.editor],"scroll.resizer",()=>{this.isShown&&!this.isResizeMode&&this.hide()}).on(e.ow,"keydown.resizer",this.onKeyDown).on(e.ow,"keyup.resizer",this.onKeyUp).on(e.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}onStartResizing(e,t){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=e,t.cancelable&&t.preventDefault(),t.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=t.clientX,this.startY=t.clientY,this.pointerX=t.clientX,this.pointerY=t.clientY;let{j:i}=this;i.e.fire("hidePopup"),i.lock(this.LOCK_KEY),i.e.on(i.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onEndResizing(){let{j:e}=this;e.unlock(),this.isResizeMode=!1,this.isAltMode=!1,e.synchronizeValues(),e.e.off(e.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onResize(e){if(this.isResizeMode){let t,i;if(!this.element)return;if(this.pointerX=e.clientX,this.pointerY=e.clientY,this.j.options.iframe){let n=this.getWorkplacePosition();t=e.clientX+n.left-this.startX,i=e.clientY+n.top-this.startY}else t=this.pointerX-this.startX,i=this.pointerY-this.startY;let n=this.handle.className,o=0,r=0,s=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===s||s&&a.Dom.isTag(this.element,s))?(t?r=Math.round((o=this.width+(n.match(/left/)?-1:1)*t)/this.ratio):o=Math.round((r=this.height+(n.match(/top/)?-1:1)*i)*this.ratio),o>(0,u.innerWidth)(this.j.editor,this.j.ow)&&(r=Math.round((o=(0,u.innerWidth)(this.j.editor,this.j.ow))/this.ratio))):(o=this.width+(n.match(/left/)?-1:1)*t,r=this.height+(n.match(/top/)?-1:1)*i),o>this.j.o.resizer.min_width&&(o<this.rect.parentNode.offsetWidth?this.applySize(this.element,"width",o):this.applySize(this.element,"width","100%")),r>this.j.o.resizer.min_height&&this.applySize(this.element,"height",r),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),e.stopImmediatePropagation()}}onKeyDown(e){this.isAltMode=e.key===r.KEY_ALT,!this.isAltMode&&this.isResizeMode&&this.onEndResizing()}onKeyUp(){this.isAltMode&&this.isResizeMode&&this.element&&(this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.startX=this.pointerX,this.startY=this.pointerY),this.isAltMode=!1}onClickOutside(e){if(this.isShown){if(!this.isResizeMode)return this.hide();e.stopImmediatePropagation(),this.onEndResizing()}}getWorkplacePosition(){return(0,u.offset)(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}applySize(e,t,i){let n=a.Dom.isImage(e)&&this.j.o.resizer.forImageChangeAttributes;n&&(0,u.attr)(e,t,i),(!n||e.style[t])&&(0,u.css)(e,t,i)}onDelete(e){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(a.Dom.safeRemove(this.element),this.hide(),e.preventDefault()))}__onChangeEditor(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),(0,u.$$)("iframe",this.j.editor).forEach(this.__bind)}__bind(e){let t;if(!(!a.Dom.isHTMLElement(e)||!this.j.o.allowResizeTags.has(e.tagName.toLowerCase())||(0,u.dataBind)(e,d))){if((0,u.dataBind)(e,d,!0),a.Dom.isTag(e,"iframe")){let i=e;a.Dom.isHTMLElement(e.parentNode)&&(0,u.attr)(e.parentNode,"-jodit_iframe_wrapper")?e=e.parentNode:(t=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),(0,u.attr)(t,"style",(0,u.attr)(e,"style")),(0,u.css)(t,{display:"inline-block"===e.style.display?"inline-block":"block",width:e.offsetWidth,height:e.offsetHeight}),e.parentNode&&e.parentNode.insertBefore(t,e),t.appendChild(e),this.j.e.on(t,"click",()=>{(0,u.attr)(t,"data-jodit-wrapper_active",!0)}),e=t),this.j.e.off(e,"mousedown.select touchstart.select").on(e,"mousedown.select touchstart.select",()=>{this.j.s.select(e)}).off(e,"changesize").on(e,"changesize",()=>{(0,u.attr)(i,"width",e.offsetWidth+"px"),(0,u.attr)(i,"height",e.offsetHeight+"px")})}this.j.e.on(e,"dragstart",this.hide),!r.IS_ES_NEXT&&r.IS_IE&&this.j.e.on(e,"mousedown",t=>{a.Dom.isTag(e,"img")&&t.preventDefault()})}}showSizeViewer(e,t){if(this.j.o.resizer.showSize){if(e<this.sizeViewer.offsetWidth||t<this.sizeViewer.offsetHeight)return void this.hideSizeViewer();this.sizeViewer.style.opacity="1",this.sizeViewer.textContent=`${e} x ${t}`,this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})}}show(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||((0,u.markOwner)(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=(0,u.css)(this.j.container,"zIndex").toString()),this.updateSize())}hide(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,a.Dom.safeRemove(this.rect),(0,u.$$)("[data-jodit-wrapper_active='true']",this.j.editor).forEach(e=>(0,u.attr)(e,"data-jodit-wrapper_active",!1)))}beforeDestruct(e){this.hide(),l.eventEmitter.off("hideHelpers",this.hide),e.e.off(this.j.ow,".resizer").off(".resizer")}constructor(...e){super(...e),(0,n._)(this,"LOCK_KEY","resizer"),(0,n._)(this,"handle",void 0),(0,n._)(this,"element",null),(0,n._)(this,"isResizeMode",!1),(0,n._)(this,"isShown",!1),(0,n._)(this,"startX",0),(0,n._)(this,"startY",0),(0,n._)(this,"width",0),(0,n._)(this,"height",0),(0,n._)(this,"ratio",0),(0,n._)(this,"rect",this.j.c.fromHTML(`<div title="${this.j.i18n("Press Alt for custom resizing")}" class="jodit-resizer">
219
219
  <div class="jodit-resizer__top-left"></div>
220
220
  <div class="jodit-resizer__top-right"></div>
221
221
  <div class="jodit-resizer__bottom-right"></div>
@@ -239,7 +239,7 @@
239
239
  <button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>
240
240
  </div>
241
241
  </div>
242
- </div>`}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.currentBox.innerText=e.toString()}set count(e){this.countBox.innerText=e.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(e){if(!this.isOpened)return;let{j:t}=this;if(t.getRealMode()===r.MODE_WYSIWYG)switch(e.key){case r.KEY_ESC:this.close();break;case r.KEY_F3:this.queryInput.value&&(t.e.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}open(e,t,i=!1){this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",i);let n=null!=e?e:(this.j.s.sel||"").toString();n&&(this.queryInput.value=n),t&&(this.replaceInput.value=t),this.setMod("empty-query",!n.length),this.j.e.fire(this,"needUpdateCounters"),n?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),a.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(e){if(this.isOpened)if(this.setMod("sticky",e),e){let e=(0,l.position)(this.j.toolbarContainer);(0,l.css)(this.container,{top:e.top+e.height,left:e.left+e.width})}else(0,l.css)(this.container,{top:null,left:null})}constructor(e){super(e),(0,n._)(this,"queryInput",void 0),(0,n._)(this,"replaceInput",void 0),(0,n._)(this,"selInfo",null),(0,n._)(this,"closeButton",void 0),(0,n._)(this,"replaceButton",void 0),(0,n._)(this,"currentBox",void 0),(0,n._)(this,"countBox",void 0),(0,n._)(this,"_currentIndex",0),(0,n._)(this,"isOpened",!1);const{query:t,replace:i,cancel:o,next:s,prev:a,replaceBtn:u,current:c,count:d}=(0,l.refs)(this.container);this.queryInput=t,this.replaceInput=i,this.closeButton=o,this.replaceButton=u,this.currentBox=c,this.countBox=d,e.e.on(this.closeButton,"pointerdown",()=>(this.close(),!1)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{e.s.isFocused()&&(e.s.removeMarkers(),this.selInfo=e.s.save())}).on(this.replaceButton,"pointerdown",()=>(e.e.fire(this,"pressReplaceButton"),!1)).on(s,"pointerdown",()=>(e.e.fire("searchNext"),!1)).on(a,"pointerdown",()=>(e.e.fire("searchPrevious"),!1)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,l.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",this.j.async.debounce(async t=>{t.key===r.KEY_ENTER?(t.preventDefault(),t.stopImmediatePropagation(),await e.e.fire("searchNext")&&this.close()):e.e.fire(this,"needUpdateCounters")},this.j.defaultTimeout))}}(0,o.__decorate)([(0,s.watch)([":keydown","queryInput:keydown"])],c.prototype,"onEditorKeyDown",null),(0,o.__decorate)([s.autobind],c.prototype,"open",null),(0,o.__decorate)([s.autobind],c.prototype,"close",null),(0,o.__decorate)([(0,s.watch)(":toggleSticky")],c.prototype,"calcSticky",null),c=(0,o.__decorate)([s.component],c)},69070:function(e,t,i){"use strict";i(5266).Config.prototype.tableAllowCellSelection=!0},2756:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(91206),d=i(98803);i(69070);let h="table_processor_observer",p="onMoveTableSelectCell";class m extends c.Plugin{get __tableModule(){return this.j.getInstance(d.Table,this.j.o)}afterInit(e){e.o.tableAllowCellSelection&&e.e.on("keydown.select-cells",e=>{e.key===r.KEY_TAB&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(e=>e+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody",()=>{let e=this.__tableModule.getAllSelectedCells().length;if(e){if(e>1){var t;null==(t=this.j.s.sel)||t.removeAllRanges()}return!1}})}onStartSelection(e){if(this.j.o.readonly||(this.unselectCells(),e===this.j.editor))return;let t=a.Dom.closest(e,"table",this.j.editor);if(e&&t)return e.firstChild||e.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=e,this.__tableModule.addSelection(e),this.j.e.on(t,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,t),{label:p,timeout:this.j.defaultTimeout/2})).on(t,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,t)),!1}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onChange(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}__onMove(e,t){let i;if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(h))return;let n=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(!n)return;let o=a.Dom.closest(n,["td","th"],e);if(!o||!this.__selectedCell)return;o!==this.__selectedCell&&this.j.lock(h),this.unselectCells();let r=this.__tableModule.getSelectedBound(e,[o,this.__selectedCell]),s=this.__tableModule.formalMatrix(e);for(let e=r[0][0];e<=r[1][0];e+=1)for(let t=r[0][1];t<=r[1][1];t+=1)this.__tableModule.addSelection(s[e][t]);if(this.__tableModule.getAllSelectedCells().length>1){var l;null==(l=this.j.s.sel)||l.removeAllRanges()}this.j.e.fire("hidePopup"),t.stopPropagation(),i=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>'),o.appendChild(i),this.j.async.setTimeout(()=>{var e;null==(e=i.parentNode)||e.removeChild(i)},this.j.defaultTimeout/5)}__onRemoveSelection(e){var t;if(!(null==e||null==(t=e.buffer)?void 0:t.actionTrigger)&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length){this.j.unlock(),this.unselectCells(),this.j.e.fire("hidePopup","cells");return}this.__isSelectionMode=!1,this.__selectedCell=null}__onStopSelection(e,t){if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let i=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(!i)return;let n=a.Dom.closest(i,["td","th"],e);if(!n)return;let o=a.Dom.closest(n,"table",e);if(o&&o!==e)return;let r=this.__tableModule.getSelectedBound(e,[n,this.__selectedCell]),s=this.__tableModule.formalMatrix(e),l=s[r[1][0]][r[1][1]],c=s[r[0][0]][r[0][1]];this.j.e.fire("showPopup",e,()=>{let e=(0,u.position)(c,this.j),t=(0,u.position)(l,this.j);return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}},"cells"),(0,u.$$)("table",this.j.editor).forEach(e=>{this.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),this.j.async.clearTimeout(p)}unselectCells(e){let t=this.__tableModule,i=t.getAllSelectedCells();i.length&&i.forEach(i=>{e&&e===i||t.removeSelection(i)})}onExecCommand(e){if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(e)){e=e.replace("table","");let t=this.__tableModule.getAllSelectedCells();if(t.length){let[i]=t;if(!i)return;let n=a.Dom.closest(i,"table",this.j.editor);if(!n)return;switch(e){case"splitv":this.__tableModule.splitVertical(n);break;case"splitg":this.__tableModule.splitHorizontal(n);break;case"merge":this.__tableModule.mergeSelected(n);break;case"empty":t.forEach(e=>a.Dom.detach(e));break;case"bin":a.Dom.safeRemove(n);break;case"binrow":new Set(t.map(e=>e.parentNode)).forEach(e=>{this.__tableModule.removeRow(n,e.rowIndex)});break;case"bincolumn":{let e=new Set,i=[];t.forEach(t=>{let[,o]=this.__tableModule.formalCoordinate(n,t);e.has(o)||(i.push(o),e.add(o))}),i.sort((e,t)=>t-e).forEach(e=>{this.__tableModule.removeColumn(n,e)})}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(n,i,"addcolumnafter"===e);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(n,i.parentNode,"addrowafter"===e)}}return!1}}onAfterCommand(e){/^justify/.test(e)&&this.__tableModule.getAllSelectedCells().forEach(t=>(0,u.alignElement)(e,t))}beforeDestruct(e){this.__onRemoveSelection(),e.e.off(".select-cells")}constructor(...e){super(...e),(0,n._)(this,"__selectedCell",null),(0,n._)(this,"__isSelectionMode",!1)}}(0,n._)(m,"requires",["select"]),(0,o.__decorate)([s.autobind],m.prototype,"onStartSelection",null),(0,o.__decorate)([(0,s.watch)(":outsideClick")],m.prototype,"onOutsideClick",null),(0,o.__decorate)([(0,s.watch)(":change")],m.prototype,"onChange",null),(0,o.__decorate)([s.autobind],m.prototype,"__onRemoveSelection",null),(0,o.__decorate)([s.autobind],m.prototype,"__onStopSelection",null),(0,o.__decorate)([s.autobind],m.prototype,"onExecCommand",null),(0,o.__decorate)([s.autobind],m.prototype,"onAfterCommand",null),l.pluginSystem.add("selectCells",m)},47670:function(e,t,i){"use strict";i(5266).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},98988:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(23211),a=i(28077),l=i(57821),u=i(91206),c=i(4099);i(47670);class d extends u.Plugin{afterInit(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)})}beforeDestruct(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)})}onStartSelection(e){let{j:t}=this,i,n=e.target;for(;void 0===i&&n&&n!==t.editor;)i=t.e.fire((0,l.camelCase)(e.type+"_"+n.nodeName.toLowerCase()),n,e),n=n.parentElement;"click"===e.type&&void 0===i&&n===t.editor&&t.e.fire(e.type+"Editor",n,e)}onOutsideClick(e){let t=e.target;s.Dom.up(t,e=>e===this.j.editor)||c.UIElement.closestElement(t,c.Popup)||this.j.e.fire("outsideClick",e)}beforeCommandCut(){let{s:e}=this.j;if(!e.isCollapsed()){let t=e.current();t&&s.Dom.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:e}=this.j;return e.focus(),e.select(this.j.editor,!0),e.expandSelection(),!1}onTripleClickNormalizeSelection(e){if(3!==e.detail||!this.j.o.select.normalizeTripleClick)return;let{s:t}=this.j,{startContainer:i,startOffset:n}=t.range;0===n&&s.Dom.isText(i)&&t.select(s.Dom.closest(i,s.Dom.isBlock,this.j.editor)||i,!0)}onCopyNormalizeSelectionBound(e){let{s:t,editor:i,o:n}=this.j;!n.select.normalizeSelectionBeforeCutAndCopy||t.isCollapsed()||(!e||e.isTrusted&&s.Dom.isNode(e.target)&&s.Dom.isOrContains(i,e.target))&&this.jodit.s.expandSelection()}constructor(...e){super(...e),(0,n._)(this,"proxyEventsList",["click","mousedown","touchstart","mouseup","touchend"])}}(0,o.__decorate)([r.autobind],d.prototype,"onStartSelection",null),(0,o.__decorate)([(0,r.watch)("ow:click")],d.prototype,"onOutsideClick",null),(0,o.__decorate)([(0,r.watch)([":beforeCommandCut"])],d.prototype,"beforeCommandCut",null),(0,o.__decorate)([(0,r.watch)([":beforeCommandSelectall"])],d.prototype,"beforeCommandSelectAll",null),(0,o.__decorate)([(0,r.watch)([":click"])],d.prototype,"onTripleClickNormalizeSelection",null),(0,o.__decorate)([(0,r.watch)([":copy",":cut"])],d.prototype,"onCopyNormalizeSelectionBound",null),a.pluginSystem.add("select",d)},80202:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.minWidth=200,n.Config.prototype.maxWidth="100%",n.Config.prototype.minHeight=200,n.Config.prototype.maxHeight="auto",n.Config.prototype.saveHeightInStorage=!1},44322:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(28077),a=i(72412),l=i(80991),u=i(18855);i(80202);class c extends u.Plugin{afterInit(e){e.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(e.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__immediateInitialize()}__initialize(){this.__immediateInitialize()}__immediateInitialize(){let{j:e}=this;if(e.o.inline)return;let{height:t}=e.o;if(e.o.saveHeightInStorage&&"auto"!==t){let i=e.storage.get("height");i&&(t=i)}(0,l.css)(e.editor,{minHeight:"100%"}),(0,l.css)(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),e.isFullSize||(this.__setHeight(t),this.__setWidth(e.o.width))}__setHeight(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,a.isNumber)(e)){let{minHeight:t,maxHeight:i}=this.j.o;(0,a.isNumber)(t)&&t>e&&(e=t),(0,a.isNumber)(i)&&i<e&&(e=i)}(0,l.css)(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__setWidth(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,a.isNumber)(e)){let{minWidth:t,maxWidth:i}=this.j.o;(0,a.isNumber)(t)&&t>e&&(e=t),(0,a.isNumber)(i)&&e>i&&(e=i)}(0,l.css)(this.j.container,"width",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__getNotWorkHeight(){var e,t;return((null==(e=this.j.toolbarContainer)?void 0:e.offsetHeight)||0)+((null==(t=this.j.statusbar)?void 0:t.getHeight())||0)+2}__resizeWorkspaceImd({clientHeight:e,clientWidth:t}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let i=((0,l.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,a.isNumber)(i)&&i>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(e=>{e&&(0,l.css)(e,"minHeight",i)}),this.j.e.fire("setMinHeight",i)),(0,a.isNumber)(this.j.o.maxHeight)){let e=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,l.css)(t,"maxHeight",e)}),this.j.e.fire("setMaxHeight",e)}if(this.j.container){let e="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,l.css)(this.j.workplace,"height",e),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,a.isNumber)(e)?e+"px":e)}let{clientHeight:n,clientWidth:o}=this.j.container;(e!==n||t!==o)&&this.j.e.fire(this.j,"resize")}beforeDestruct(e){e.e.off(e.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(...e){super(...e),(0,n._)(this,"__resizeWorkspaces",this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0))}}(0,o.__decorate)([(0,r.throttle)()],c.prototype,"__initialize",null),(0,o.__decorate)([r.autobind],c.prototype,"__setHeight",null),(0,o.__decorate)([r.autobind],c.prototype,"__setWidth",null),(0,o.__decorate)([r.autobind],c.prototype,"__resizeWorkspaceImd",null),s.pluginSystem.add("size",c)},18929:function(e,t,i){"use strict";var n=i(81937),o=i(29434),r=i(5266),s=i(9103),a=i.n(s);r.Config.prototype.beautifyHTML=!n.IS_IE,r.Config.prototype.sourceEditor="ace",r.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},r.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],r.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],o.Icon.set("source",a()),r.Config.prototype.controls.source={mode:n.MODE_SPLIT,exec:e=>{e.toggleMode()},isActive:e=>e.getRealMode()===n.MODE_SOURCE,tooltip:"Change mode"}},94978:function(e,t,i){"use strict";i.d(t,{AceEditor:function(){return a}});var n=i(25045),o=i(81937),r=i(65946),s=i(94193);class a extends s.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(e){return this.instance.session.getLine(e).length}getLastColumnIndices(){let e=this.instance.session.getLength(),t=[],i=0;for(let n=0;e>n;n++)i+=this.getLastColumnIndex(n),n>0&&(i+=1),t[n]=i;return t}getRowColumnIndices(e){let t=this.getLastColumnIndices();if(e<=t[0])return{row:0,column:e};let i=1;for(let n=1;n<t.length;n++)e>t[n]&&(i=n+1);let n=e-t[i-1]-1;return{row:i,column:n}}setSelectionRangeIndices(e,t){let i=this.getRowColumnIndices(e),n=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:i,end:n})}getIndexByRowColumn(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}init(e){let t=()=>{if(void 0!==this.instance||!this.aceExists())return;let t=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(t);let i=e.ow.ace;this.instance=i.edit(t),"rtl"===e.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setTheme(e.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),e.getRealMode()!==o.MODE_WYSIWYG&&this.setValue(this.getValue());let n=this.j.async.throttle(()=>{if(e.isInDestruct||e.getMode()===o.MODE_WYSIWYG)return;let t=this.instance.isFocused();"auto"!==e.o.height?this.instance.setOption("maxLines",e.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),t&&this.focus()},2*this.j.defaultTimeout);e.e.on(e,"resize",n).on("afterResize afterSetMode",n),n(),this.onReady()},i=()=>{e.isInDestruct||e.getRealMode()!==o.MODE_SOURCE&&e.getMode()!==o.MODE_SPLIT||(this.fromWYSIWYG(),t())};e.e.on("afterSetMode",i),i(),this.aceExists()||(0,r.loadNext)(e,e.o.sourceEditorCDNUrlsJS).then(i).catch(()=>null)}destruct(){var e,t;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null==(t=this.j)||null==(e=t.events)||e.off("aceInited.source")}setValue(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let t=this.j.e.fire("beautifyHTML",e);(0,r.isString)(t)&&(e=t)}this.instance.setValue(e),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(e){this.instance.setReadOnly(e)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}getSelectionEnd(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(e){let t=this.instance.selection.getCursor(),i=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:i},!1)}setSelectionRange(e,t){this.setSelectionRangeIndices(e,t)}setPlaceHolder(e){}replaceUndoManager(){let{history:e}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:()=>{e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:()=>{e.redo()}})}constructor(...e){super(...e),(0,n._)(this,"className","jodit_ace_editor"),(0,n._)(this,"proxyOnBlur",e=>{this.j.e.fire("blur",e)}),(0,n._)(this,"proxyOnFocus",e=>{this.j.e.fire("focus",e)}),(0,n._)(this,"proxyOnMouseDown",e=>{this.j.e.fire("mousedown",e)})}}},45844:function(e,t,i){"use strict";i.d(t,{TextAreaEditor:function(){return a}});var n=i(25045),o=i(23211),r=i(80991),s=i(94193);class a extends s.SourceEditor{init(e){this.instance=e.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===e.o.direction?"rtl":void 0}),this.container.appendChild(this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",e=>{(0,r.css)(this.instance,"minHeight",e)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",t=>{e.e.fire(t.type,t)}),this.autosize(),this.onReady()}destruct(){o.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(e){this.instance.value=e}insertRaw(e){let t=this.getValue();if(this.getSelectionStart()>=0){let i=this.getSelectionStart(),n=this.getSelectionEnd();this.setValue(t.substring(0,i)+e+t.substring(n,t.length))}else this.setValue(t+e)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(e,t=e){this.instance.setSelectionRange(e,t)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(e){this.instance.setAttribute("placeholder",e)}setReadOnly(e){e?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}selectAll(){this.instance.select()}replaceUndoManager(){let{history:e}=this.jodit;this.j.e.on(this.instance,"keydown",t=>{if((t.ctrlKey||t.metaKey)&&"z"===t.key)return t.shiftKey?e.redo():e.undo(),this.setSelectionRange(this.getValue().length),!1})}constructor(...e){super(...e),(0,n._)(this,"autosize",this.j.async.debounce(()=>{this.instance.style.height="auto",this.instance.style.height=this.instance.scrollHeight+"px"},this.j.defaultTimeout,!0))}}},8105:function(e,t,i){"use strict";i.d(t,{AceEditor:function(){return n.AceEditor},TextAreaEditor:function(){return o.TextAreaEditor}});var n=i(94978),o=i(45844)},82495:function(e,t,i){"use strict";i.d(t,{createSourceEditor:function(){return r}});var n=i(65946),o=i(8105);function r(e,t,i,r,s){let a;if((0,n.isFunction)(e))a=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){a=new o.AceEditor(t,i,r,s);break}default:a=new o.TextAreaEditor(t,i,r,s)}return a.init(t),a.onReadyAlways(()=>{a.setReadOnly(t.o.readonly)}),a}},94193:function(e,t,i){"use strict";i.d(t,{SourceEditor:function(){return o}});var n=i(25045);class o{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(e){if(this.isReady)e();else{var t;null==(t=this.j.events)||t.on(this,"ready",e)}}constructor(e,t,i,o){(0,n._)(this,"jodit",void 0),(0,n._)(this,"container",void 0),(0,n._)(this,"toWYSIWYG",void 0),(0,n._)(this,"fromWYSIWYG",void 0),(0,n._)(this,"instance",void 0),(0,n._)(this,"className",void 0),(0,n._)(this,"isReady",void 0),this.jodit=e,this.container=t,this.toWYSIWYG=i,this.fromWYSIWYG=o,this.className="",this.isReady=!1}}},13810:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(91206);i(18929);var d=i(82495);class h extends c.Plugin{onInsertHTML(e){if(!this.j.o.readonly&&!this.j.isEditorMode()){var t;return null==(t=this.sourceEditor)||t.insertRaw(e),this.toWYSIWYG(),!1}}fromWYSIWYG(e=!1){if(!this.__lock||!0===e){this.__lock=!0;let e=this.j.getEditorValue(!1,r.SOURCE_CONSUMER);e!==this.getMirrorValue()&&this.setMirrorValue(e),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;let e=this.getMirrorValue();e!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=e,this.__lock=!1,this.__oldMirrorValue=e)}getNormalPosition(e,t){for(t=t.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,e=>{let t="";for(let i=0;i<e.length;i+=1)t+=r.INVISIBLE_SPACE;return t});e>0&&t[e]===r.INVISIBLE_SPACE;)e--;let i=e;for(;i>0;){if("<"===t[--i]&&void 0!==t[i+1]&&t[i+1].match(/[\w/]+/i))return i;if(">"===t[i])break}return e}clnInv(e){return e.replace(r.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(e){if("selectall"===e.toLowerCase()&&this.j.getRealMode()===r.MODE_SOURCE){var t;return null==(t=this.sourceEditor)||t.selectAll(),!1}}getMirrorValue(){var e;return(null==(e=this.sourceEditor)?void 0:e.getValue())||""}setMirrorValue(e){var t;null==(t=this.sourceEditor)||t.setValue(e)}setFocusToMirror(){var e;null==(e=this.sourceEditor)||e.focus()}saveSelection(){if(this.j.getRealMode()===r.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;let e=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){let t=this.j.s.marker(!0),i=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(e.substring(0,i)+this.clnInv(t.outerHTML)+e.substring(i))}else{let t=this.j.s.marker(!0),i=this.j.s.marker(!1),n=this.getNormalPosition(this.getSelectionStart(),e),o=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.slice(0,n)+this.clnInv(t.outerHTML)+e.slice(n,o)+this.clnInv(i.outerHTML)+e.slice(o))}this.toWYSIWYG()}}removeSelection(){if(this.j.getRealMode()===r.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let e=this.getMirrorValue(),t=0,i=0;try{if(e=e.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let t=this.j.e.fire("beautifyHTML",e);(0,u.isString)(t)&&(e=t)}if(i=t=e.indexOf(this.tempMarkerStart),e=e.replace(this.tempMarkerStartReg,""),-1!==t){let t=e.indexOf(this.tempMarkerEnd);-1!==t&&(i=t)}e=e.replace(this.tempMarkerEndReg,"")}finally{e=e.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(e),this.setMirrorSelectionRange(t,i),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(e,t){var i;null==(i=this.sourceEditor)||i.setSelectionRange(e,t)}onReadonlyReact(){var e;null==(e=this.sourceEditor)||e.setReadOnly(this.j.o.readonly)}afterInit(e){if(this.mirrorContainer=e.c.div("jodit-source"),e.workplace.appendChild(this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",()=>{e.workplace.appendChild(this.mirrorContainer)}),this.sourceEditor=(0,d.createSourceEditor)("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.e.on(e.ow,"keydown",e=>{var t;e.key===r.KEY_ESC&&(null==(t=this.sourceEditor)?void 0:t.isFocused)&&this.sourceEditor.blur()}),this.onReadonlyReact(),e.e.on("placeholder.source",e=>{var t;null==(t=this.sourceEditor)||t.setPlaceHolder(e)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",e=>e),e.o.beautifyHTML){let t=()=>{if(e.isInDestruct)return!1;let t=e.ow.html_beautify;if(t&&!e.isInDestruct){var i;return null==(i=e.events)||i.off("beautifyHTML").on("beautifyHTML",e=>t(e)),!0}return!1};t()||(0,u.loadNext)(e,e.o.beautifyHTMLCDNUrlsJS).then(t,()=>null)}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}syncValueFromWYSIWYG(e=!1){let t=this.j;(t.getMode()===r.MODE_SPLIT||t.getMode()===r.MODE_SOURCE)&&this.fromWYSIWYG(e)}initSourceEditor(e){if("area"!==e.o.sourceEditor){let t=(0,d.createSourceEditor)(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);t.onReadyAlways(()=>{var i,n;null==(i=this.sourceEditor)||i.destruct(),this.sourceEditor=t,this.syncValueFromWYSIWYG(!0),null==(n=e.events)||n.fire("sourceEditorReady",e)})}else{var t;null==(t=this.sourceEditor)||t.onReadyAlways(()=>{var t;this.syncValueFromWYSIWYG(!0),null==(t=e.events)||t.fire("sourceEditorReady",e)})}}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),a.Dom.safeRemove(this.mirrorContainer)}constructor(...e){super(...e),(0,n._)(this,"buttons",[{name:"source",group:"source"}]),(0,n._)(this,"sourceEditor",void 0),(0,n._)(this,"mirrorContainer",void 0),(0,n._)(this,"__lock",!1),(0,n._)(this,"__oldMirrorValue",""),(0,n._)(this,"tempMarkerStart","{start-jodit-selection}"),(0,n._)(this,"tempMarkerStartReg",/{start-jodit-selection}/g),(0,n._)(this,"tempMarkerEnd","{end-jodit-selection}"),(0,n._)(this,"tempMarkerEndReg",/{end-jodit-selection}/g),(0,n._)(this,"getSelectionStart",()=>{var e,t;return null!=(e=null==(t=this.sourceEditor)?void 0:t.getSelectionStart())?e:0}),(0,n._)(this,"getSelectionEnd",()=>{var e,t;return null!=(e=null==(t=this.sourceEditor)?void 0:t.getSelectionEnd())?e:0})}}(0,o.__decorate)([(0,s.watch)(":insertHTML.source")],h.prototype,"onInsertHTML",null),(0,o.__decorate)([s.autobind],h.prototype,"fromWYSIWYG",null),(0,o.__decorate)([s.autobind],h.prototype,"toWYSIWYG",null),(0,o.__decorate)([s.autobind],h.prototype,"getNormalPosition",null),(0,o.__decorate)([(0,s.watch)(":beforeCommand.source")],h.prototype,"onSelectAll",null),(0,o.__decorate)([(0,s.watch)(":beforeSetMode.source")],h.prototype,"saveSelection",null),(0,o.__decorate)([(0,s.watch)(":afterSetMode.source")],h.prototype,"removeSelection",null),(0,o.__decorate)([s.autobind],h.prototype,"setMirrorSelectionRange",null),(0,o.__decorate)([(0,s.watch)(":readonly.source")],h.prototype,"onReadonlyReact",null),(0,o.__decorate)([s.autobind],h.prototype,"syncValueFromWYSIWYG",null),l.pluginSystem.add("source",h)},75143:function(e,t,i){"use strict";var n=i(22289),o=i(85932),r=i(7909),s=i(36400),a=i(29434),l=i(5266),u=i(97743),c=i(68097),d=i(22227),h=i.n(d);l.Config.prototype.speechRecognize={api:void 0!==u.SpeechRecognition?u.SpeechRecognition:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},a.Icon.set("speech-recognize",h()),l.Config.prototype.controls.speechRecognize={isVisible(e){return!!e.o.speechRecognize.api},isActive(e,t){let i=(0,s.dataBind)(e,"speech");return!!(null==i?void 0:i.isEnabled)},isDisabled(e){return!e.o.speechRecognize.api},exec(e,t,{button:i,control:a}){let{api:l,lang:u,continuous:d,interimResults:h,sound:p}=e.o.speechRecognize;if(!l)return void e.alert("Speech recognize API unsupported in your browser");let m=(0,s.dataBind)(e,"speech");if(!m){var f;let t=new l;(m=new c.RecognizeManager(e.async,t)).lang=(0,o.isString)(u)?u:null!=(f=(0,r.attr)(e.od.documentElement,"lang"))?f:void 0,m.continuous=d,m.interimResults=h,m.sound=p,(0,s.dataBind)(e,"speech",m),m.on("pulse",e=>{i.setMod("pulse",e)}),m.on("result",t=>e.e.fire("speechRecognizeResult",t)),m.on("progress",t=>e.e.fire("speechRecognizeProgressResult",t)),m.on("error",t=>e.message.error(t)),i.hookStatus("beforeDestruct",()=>{(0,s.dataBind)(e,"speech",null),m.destruct()})}if(a.args){let e=a.args[0];if((0,n.isBoolean)(m[e])){m[e]=!m[e],m.isEnabled&&m.restart();return}}m.toggle(),m.isEnabled&&i.setMod("pulse",!0),i.state.activated=m.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(e,t,i){var n;let o=(0,s.dataBind)(e,"speech"),r=null!=(n=null==o?void 0:o[t])?n:e.o.speechRecognize[t];return`<span class='jodit-speech-recognize__list-item'><input ${r?"checked":""} class='jodit-checkbox' type='checkbox'>&nbsp;${i}</span>`},mods:{stroke:!1}}},94092:function(e,t,i){"use strict";i.d(t,{PII:function(){return n},WARN:function(){return o}});let n=440,o=940},97743:function(e,t,i){"use strict";i.d(t,{SpeechRecognition:function(){return o}});var n=i(81937);let o=n.globalWindow?n.globalWindow.SpeechRecognition||n.globalWindow.webkitSpeechRecognition:void 0},8962:function(e,t,i){"use strict";function n(e,t){let[i,n]=t.split("::");e.execCommand(i,null,n)}i.d(t,{execSpellCommand:function(){return n}})},68097:function(e,t,i){"use strict";i.d(t,{RecognizeManager:function(){return u}});var n=i(25045),o=i(31635),r=i(84839),s=i(60216),a=i(32560),l=i(94092);class u extends s.Eventify{set lang(e){this._lang=e,this._api.lang=e}get lang(){return this._lang}set continuous(e){this._continuous=e,this._api.continuous=e}get continuous(){return this._continuous}set interimResults(e){this._interimResults=e,this._api.interimResults=e}get interimResults(){return this._interimResults}destruct(){this.stop(),u._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,u._instances.forEach(e=>{e!==this&&e.stop()});try{this._api.start()}catch(e){this._onError(e),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(e,t){return this._api.addEventListener(e,t),this}__off(e,t){return this._api.removeEventListener(e,t),this}_onResults(e){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(l.PII),this.restart()}_onProgress(e){if(this._isEnabled&&(this.__interimResults="",e.results)){for(let t=0;t<e.results.length;t++){let i=e.results.item(t);if(i.length){let{transcript:e}=i.item(0);this.__interimResults+=e}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(e){"voice-unavailable"===e.error&&this.emit("error","Voice unavailable"),"not-allowed"===e.error&&this.emit("error","Not allowed"),("language-unavailable"===e.error||"language-not-supported"===e.error)&&this.emit("error","Language unavailable"),this._makeSound(l.WARN),this.emit("pulse",!1),this.stop()}_makeSound(e){this.sound&&(0,a.sound)({frequency:e})}constructor(e,t){super(),(0,n._)(this,"async",void 0),(0,n._)(this,"_lang",void 0),(0,n._)(this,"_continuous",void 0),(0,n._)(this,"_interimResults",void 0),(0,n._)(this,"sound",void 0),(0,n._)(this,"_isEnabled",void 0),(0,n._)(this,"_restartTimeout",void 0),(0,n._)(this,"_onSpeechStart",void 0),(0,n._)(this,"_api",void 0),(0,n._)(this,"__interimResults",void 0),this.async=e,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=e=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(l.WARN)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=t,u._instances.add(this)}}(0,n._)(u,"_instances",new Set),(0,o.__decorate)([r.autobind],u.prototype,"_onResults",null),(0,o.__decorate)([r.autobind],u.prototype,"_onProgress",null),(0,o.__decorate)([r.autobind],u.prototype,"_onError",null)},32560:function(e,t,i){"use strict";i.d(t,{sound:function(){return r}});var n=i(81937),o=i(94092);function r({sec:e=.1,frequency:t=o.PII,gain:i=.1,type:s="sine"}={}){if(!n.globalWindow||void 0===n.globalWindow.AudioContext&&void 0===n.globalWindow.webkitAudioContext)return;let a=new(n.globalWindow.AudioContext||n.globalWindow.webkitAudioContext),l=a.createGain(),u=a.createOscillator();u.type=s,u.frequency.value=t,u.connect(l),l.connect(a.destination),u.start(),u.stop(a.currentTime+e),l.gain.value=i}},19922:function(e){e.exports={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"}},20759:function(e){e.exports={newline:"ř\xe1dek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpozn\xe1n\xed Řeči",Sound:"Zvuk","Interim Results":"Průběžn\xe9 V\xfdsledky"}},22350:function(e){e.exports={newline:"Zeilenumbruch",delete:"l\xf6schen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"}},97509:function(e){e.exports={newline:"nueva l\xednea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"}},49668:function(e){e.exports={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"}},33276:function(e){e.exports={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"\xc4\xe4ni","Interim Results":"V\xe4litulokset"}},43517:function(e){e.exports={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"R\xe9sultats Interm\xe9diaires"}},8858:function(e){e.exports={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"}},22922:function(e){e.exports={newline:"\xfajsor",delete:"t\xf6rl\xe9s",space:"t\xe9r","Speech Recognize":"A Besz\xe9d Felismeri",Sound:"Hang","Interim Results":"Idők\xf6zi Eredm\xe9nyek"}},81900:function(e){e.exports={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"}},43219:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n},cs_cz:function(){return o},de:function(){return r},es:function(){return s},fa:function(){return a},fi:function(){return l},fr:function(){return u},he:function(){return c},hu:function(){return d},id:function(){return h},it:function(){return p},ja:function(){return m},ko:function(){return f},mn:function(){return g},nl:function(){return v},no:function(){return _},pl:function(){return b},pt_br:function(){return y},ru:function(){return S},tr:function(){return w},ua:function(){return C},zh_cn:function(){return k},zh_tw:function(){return E}});var n=i(19922),o=i(20759),r=i(22350),s=i(97509),a=i(49668),l=i(33276),u=i(43517),c=i(8858),d=i(22922),h=i(81900),p=i(35420),m=i(18712),f=i(73363),g=i(74762),v=i(73759),_=i(72850),b=i(37161),y=i(62896),S=i(39996),w=i(93423),C=i(10179),k=i(62547),E=i(29475)},35420:function(e){e.exports={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"}},18712:function(e){e.exports={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"}},73363:function(e){e.exports={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"}},74762:function(e){e.exports={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"}},73759:function(e){e.exports={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"}},72850:function(e){e.exports={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"}},37161:function(e){e.exports={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},62896:function(e){e.exports={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provis\xf3rios"}},39996:function(e){e.exports={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"}},93423:function(e){e.exports={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonu\xe7lar"}},10179:function(e){e.exports={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"}},62547:function(e){e.exports={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},29475:function(e){e.exports={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"}},31262:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(68616),s=i(23211),a=i(28077),l=i(71125),u=i(91206);i(75143);var c=i(73302),d=i(8962),h=i(43219);class p extends u.Plugin{afterInit(e){let{commands:t}=e.o.speechRecognize;t&&((0,a.extendLang)(h),(0,l.keys)(t,!1).forEach(i=>{i.split("|").forEach(n=>{n=n.trim().toLowerCase(),this._commandToWord[n]=t[i];let o=e.i18n(n);o!==n&&o.split("|").forEach(e=>{this._commandToWord[e.trim().toLowerCase()]=t[i].trim()})})}))}beforeDestruct(e){s.Dom.safeRemove(this.messagePopup)}onSpeechRecognizeProgressResult(e){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),this.j.workplace.appendChild(this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(()=>{s.Dom.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){this.j.async.clearTimeout(this.__hidePopupTimeout),s.Dom.safeRemove(this.messagePopup);let{j:t}=this,{s:i}=t;if(!this._checkCommand(e)){let{range:n}=i,o=i.current();if(i.isCollapsed()&&s.Dom.isText(o)&&s.Dom.isOrContains(t.editor,o)&&o.nodeValue){let r=o.nodeValue;o.nodeValue=r+(/[\u00A0 ]\uFEFF*$/.test(r)?"":" ")+e,n.setStartAfter(o),i.selectRange(n),t.synchronizeValues()}else i.insertHTML(e)}}_checkCommand(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&((0,d.execSpellCommand)(this.j,this._commandToWord[e]),!0)}constructor(...e){super(...e),(0,n._)(this,"buttons",[{group:"state",name:"speechRecognize"}]),(0,n._)(this,"messagePopup",void 0),(0,n._)(this,"__hidePopupTimeout",void 0),(0,n._)(this,"_commandToWord",{})}}(0,o.__decorate)([(0,r.watch)(":speechRecognizeProgressResult")],p.prototype,"onSpeechRecognizeProgressResult",null),(0,o.__decorate)([(0,r.watch)(":speechRecognizeResult")],p.prototype,"onSpeechRecognizeResult",null),c.Jodit.plugins.add("speech-recognize",p)},24268:function(e,t,i){"use strict";var n=i(29434),o=i(5266),r=i(49989),s=i.n(r);o.Config.prototype.spellcheck=!1,n.Icon.set("spellcheck",s()),o.Config.prototype.controls.spellcheck={isActive(e){return e.o.spellcheck},icon:s(),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},30885:function(e){e.exports={Spellcheck:"التدقيق الإملائي"}},48918:function(e){e.exports={Spellcheck:"Kontrola pravopisu"}},47229:function(e){e.exports={Spellcheck:"Rechtschreibpr\xfcfung"}},67026:function(e){e.exports={Spellcheck:"Correcci\xf3n ortogr\xe1fica"}},69495:function(e){e.exports={Spellcheck:"غلطیابی املایی"}},59903:function(e){e.exports={Spellcheck:"Oikeinkirjoituksen tarkistus"}},38522:function(e){e.exports={Spellcheck:"V\xe9rification Orthographique"}},81089:function(e){e.exports={Spellcheck:"בדיקת איות"}},59985:function(e){e.exports={Spellcheck:"Helyes\xedr\xe1s-ellenőrz\xe9s"}},43439:function(e){e.exports={Spellcheck:"Spellchecking"}},33494:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n},cs_cz:function(){return o},de:function(){return r},es:function(){return s},fa:function(){return a},fi:function(){return l},fr:function(){return u},he:function(){return c},hu:function(){return d},id:function(){return h},it:function(){return p},ja:function(){return m},ko:function(){return f},mn:function(){return g},nl:function(){return v},no:function(){return _},pl:function(){return b},pt_br:function(){return y},ru:function(){return S},tr:function(){return w},ua:function(){return C},zh_cn:function(){return k},zh_tw:function(){return E}});var n=i(30885),o=i(48918),r=i(47229),s=i(67026),a=i(69495),l=i(59903),u=i(38522),c=i(81089),d=i(59985),h=i(43439),p=i(57759),m=i(93203),f=i(32540),g=i(68429),v=i(45596),_=i(91685),b=i(63794),y=i(69977),S=i(51647),w=i(54472),C=i(84872),k=i(18310),E=i(95042)},57759:function(e){e.exports={Spellcheck:"Controllo ortografico"}},93203:function(e){e.exports={Spellcheck:"スペルチェック"}},32540:function(e){e.exports={Spellcheck:"맞춤법 검사"}},68429:function(e){e.exports={Spellcheck:"Дүрмийн алдаа шалгах"}},45596:function(e){e.exports={Spellcheck:"Spellingcontrole"}},91685:function(e){e.exports={Spellcheck:"Stavekontroll"}},63794:function(e){e.exports={Spellcheck:"Sprawdzanie pisowni"}},69977:function(e){e.exports={Spellcheck:"Verifica\xe7\xe3o ortogr\xe1fica"}},51647:function(e){e.exports={Spellcheck:"Проверка орфографии"}},54472:function(e){e.exports={Spellcheck:"Yazım denetimi"}},84872:function(e){e.exports={Spellcheck:"Перевірка орфографії"}},18310:function(e){e.exports={Spellcheck:"拼写检查"}},95042:function(e){e.exports={Spellcheck:"拼字檢查"}},90204:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(28077),a=i(7909),l=i(91206);i(24268);var u=i(33494);class c extends l.Plugin{afterInit(e){e.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),e.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,a.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(e){}constructor(e){super(e),(0,n._)(this,"buttons",[{group:"state",name:"spellcheck"}]),(0,s.extendLang)(u)}}(0,o.__decorate)([r.autobind],c.prototype,"toggleSpellcheck",null),s.pluginSystem.add("spellcheck",c)},88580:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.showCharsCounter=!0,n.Config.prototype.countHTMLChars=!1,n.Config.prototype.countTextSpaces=!1,n.Config.prototype.showWordsCounter=!0},86236:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(23211),s=i(28077),a=i(18855);i(88580);class l extends a.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){r.Dom.safeRemove(this.charCounter),r.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(...e){super(...e),(0,n._)(this,"charCounter",null),(0,n._)(this,"wordCounter",null),(0,n._)(this,"reInit",()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()}),(0,n._)(this,"calc",this.j.async.throttle(()=>{let e=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let t;t=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?e.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):e.replace((0,o.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",t.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",e.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").split((0,o.SPACE_REG_EXP)()).filter(e=>e.length).length))},this.j.defaultTimeout))}}s.pluginSystem.add("stat",l)},79803:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.toolbarSticky=!0,n.Config.prototype.toolbarDisableStickyForMobile=!0,n.Config.prototype.toolbarStickyOffset=0},67582:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(18855);i(79803);let d=!r.IS_ES_NEXT&&r.IS_IE;class h extends c.Plugin{afterInit(e){e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){let{jodit:e}=this;if(!e.o.toolbarSticky||!e.o.toolbar)return;let t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,i=(0,u.offset)(e.container,e,e.od,!0),n=e.getMode()===r.MODE_WYSIWYG&&t+e.o.toolbarStickyOffset>i.top&&t+e.o.toolbarStickyOffset<i.top+i.height&&!(e.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===n)return;let o=e.toolbarContainer;o&&(n?this.addSticky(o):this.removeSticky(o)),e.e.fire("toggleSticky",n)}__isMobile(){let{j:e}=this;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}beforeDestruct(e){a.Dom.safeRemove(this.__dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}constructor(...e){super(...e),(0,n._)(this,"__isToolbarStuck",!1),(0,n._)(this,"__dummyBox",void 0),(0,n._)(this,"__createDummy",e=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),this.j.container.insertBefore(this.__dummyBox,e)}),(0,n._)(this,"addSticky",e=>{this.__isToolbarStuck||(d&&!this.__dummyBox&&this.__createDummy(e),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,u.css)(e,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,u.css)(this.__dummyBox,{height:e.offsetHeight})}),(0,n._)(this,"removeSticky",e=>{this.__isToolbarStuck&&((0,u.css)(e,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)})}}(0,o.__decorate)([(0,s.throttle)()],h.prototype,"__onScroll",null),l.pluginSystem.add("sticky",h)},18993:function(e,t,i){"use strict";var n=i(29434),o=i(5266),r=i(81875),s=i.n(r);o.Config.prototype.usePopupForSpecialCharacters=!1,o.Config.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],n.Icon.set("symbols",s()),o.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:(e,t,i)=>{let n=e.e.fire("generateSpecialCharactersTable.symbols");if(n){if(e.o.usePopupForSpecialCharacters){let t=e.c.div();return t.classList.add("jodit-symbols"),t.appendChild(n),e.e.on(n,"close_dialog",i),t}e.alert(n,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);let t=n.querySelector("a");t&&t.focus()}}}},80696:function(e){e.exports={symbols:"رمز"}},33433:function(e){e.exports={symbols:"symbol"}},59488:function(e){e.exports={symbols:"Symbol"}},14099:function(e){e.exports={symbols:"S\xedmbolo"}},64394:function(e){e.exports={symbols:"سمبل"}},96978:function(e){e.exports={symbols:"Symbolit"}},54055:function(e){e.exports={symbols:"caract\xe8re"}},15164:function(e){e.exports={symbols:"תו מיוחד"}},42412:function(e){e.exports={symbols:"Szimb\xf3lum"}},98710:function(e){e.exports={symbols:"simbol"}},91017:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n},cs_cz:function(){return o},de:function(){return r},es:function(){return s},fa:function(){return a},fi:function(){return l},fr:function(){return u},he:function(){return c},hu:function(){return d},id:function(){return h},it:function(){return p},ja:function(){return m},ko:function(){return f},mn:function(){return g},nl:function(){return v},pl:function(){return _},pt_br:function(){return b},ru:function(){return y},tr:function(){return S},ua:function(){return w},zh_cn:function(){return C},zh_tw:function(){return k}});var n=i(80696),o=i(33433),r=i(59488),s=i(14099),a=i(64394),l=i(96978),u=i(54055),c=i(15164),d=i(42412),h=i(98710),p=i(68294),m=i(3294),f=i(44837),g=i(72320),v=i(87141),_=i(10099),b=i(442),y=i(54554),S=i(86581),w=i(97493),C=i(58585),k=i(57629)},68294:function(e){e.exports={symbols:"Simbolo"}},3294:function(e){e.exports={symbols:"symbol"}},44837:function(e){e.exports={symbols:"기호"}},72320:function(e){e.exports={symbols:"тэмдэгт"}},87141:function(e){e.exports={symbols:"symbool"}},10099:function(e){e.exports={symbols:"symbol"}},442:function(e){e.exports={symbols:"S\xedmbolo"}},54554:function(e){e.exports={symbols:"символ"}},86581:function(e){e.exports={symbols:"Sembol"}},97493:function(e){e.exports={symbols:"символ"}},58585:function(e){e.exports={symbols:"符号"}},57629:function(e){e.exports={symbols:"符號"}},11774:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(23211),s=i(28077),a=i(93640),l=i(18855);i(18993);var u=i(91017);class c extends l.Plugin{afterInit(e){e.e.on("generateSpecialCharactersTable.symbols",()=>{let t=e.c.fromHTML(`<div class="jodit-symbols__container">
242
+ </div>`}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.currentBox.innerText=e.toString()}set count(e){this.countBox.innerText=e.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(e){if(!this.isOpened)return;let{j:t}=this;if(t.getRealMode()===r.MODE_WYSIWYG)switch(e.key){case r.KEY_ESC:this.close();break;case r.KEY_F3:this.queryInput.value&&(t.e.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}open(e,t,i=!1){this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",i);let n=null!=e?e:(this.j.s.sel||"").toString();n&&(this.queryInput.value=n),t&&(this.replaceInput.value=t),this.setMod("empty-query",!n.length),this.j.e.fire(this,"needUpdateCounters"),n?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),a.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(e){if(this.isOpened)if(this.setMod("sticky",e),e){let e=(0,l.position)(this.j.toolbarContainer);(0,l.css)(this.container,{top:e.top+e.height,left:e.left+e.width})}else(0,l.css)(this.container,{top:null,left:null})}constructor(e){super(e),(0,n._)(this,"queryInput",void 0),(0,n._)(this,"replaceInput",void 0),(0,n._)(this,"selInfo",null),(0,n._)(this,"closeButton",void 0),(0,n._)(this,"replaceButton",void 0),(0,n._)(this,"currentBox",void 0),(0,n._)(this,"countBox",void 0),(0,n._)(this,"_currentIndex",0),(0,n._)(this,"isOpened",!1);const{query:t,replace:i,cancel:o,next:s,prev:a,replaceBtn:u,current:c,count:d}=(0,l.refs)(this.container);this.queryInput=t,this.replaceInput=i,this.closeButton=o,this.replaceButton=u,this.currentBox=c,this.countBox=d,e.e.on(this.closeButton,"pointerdown",()=>(this.close(),!1)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{e.s.isFocused()&&(e.s.removeMarkers(),this.selInfo=e.s.save())}).on(this.replaceButton,"pointerdown",()=>(e.e.fire(this,"pressReplaceButton"),!1)).on(s,"pointerdown",()=>(e.e.fire("searchNext"),!1)).on(a,"pointerdown",()=>(e.e.fire("searchPrevious"),!1)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,l.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",this.j.async.debounce(async t=>{t.key===r.KEY_ENTER?(t.preventDefault(),t.stopImmediatePropagation(),await e.e.fire("searchNext")&&this.close()):e.e.fire(this,"needUpdateCounters")},this.j.defaultTimeout))}}(0,o.__decorate)([(0,s.watch)([":keydown","queryInput:keydown"])],c.prototype,"onEditorKeyDown",null),(0,o.__decorate)([s.autobind],c.prototype,"open",null),(0,o.__decorate)([s.autobind],c.prototype,"close",null),(0,o.__decorate)([(0,s.watch)(":toggleSticky")],c.prototype,"calcSticky",null),c=(0,o.__decorate)([s.component],c)},69070:function(e,t,i){"use strict";i(5266).Config.prototype.tableAllowCellSelection=!0},2756:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(91206),d=i(98803);i(69070);let h="table_processor_observer",p="onMoveTableSelectCell";class m extends c.Plugin{get __tableModule(){return this.j.getInstance(d.Table,this.j.o)}afterInit(e){e.o.tableAllowCellSelection&&e.e.on("keydown.select-cells",e=>{e.key===r.KEY_TAB&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(e=>e+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody",()=>{let e=this.__tableModule.getAllSelectedCells().length;if(e){if(e>1){var t;null==(t=this.j.s.sel)||t.removeAllRanges()}return!1}})}onStartSelection(e){if(this.j.o.readonly||(this.unselectCells(),e===this.j.editor))return;let t=a.Dom.closest(e,"table",this.j.editor);if(e&&t)return e.firstChild||e.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=e,this.__tableModule.addSelection(e),this.j.e.on(t,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,t),{label:p,timeout:this.j.defaultTimeout/2})).on(t,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,t)),!1}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onChange(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}__onMove(e,t){let i;if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(h))return;let n=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(!n)return;let o=a.Dom.closest(n,["td","th"],e);if(!o||!this.__selectedCell)return;o!==this.__selectedCell&&this.j.lock(h),this.unselectCells();let r=this.__tableModule.getSelectedBound(e,[o,this.__selectedCell]),s=this.__tableModule.formalMatrix(e);for(let e=r[0][0];e<=r[1][0];e+=1)for(let t=r[0][1];t<=r[1][1];t+=1)this.__tableModule.addSelection(s[e][t]);if(this.__tableModule.getAllSelectedCells().length>1){var l;null==(l=this.j.s.sel)||l.removeAllRanges()}this.j.e.fire("hidePopup"),t.stopPropagation(),i=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>'),o.appendChild(i),this.j.async.setTimeout(()=>{var e;null==(e=i.parentNode)||e.removeChild(i)},this.j.defaultTimeout/5)}__onRemoveSelection(e){var t;if(!(null==e||null==(t=e.buffer)?void 0:t.actionTrigger)&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length){this.j.unlock(),this.unselectCells(),this.j.e.fire("hidePopup","cells");return}this.__isSelectionMode=!1,this.__selectedCell=null}__onStopSelection(e,t){if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let i=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(!i)return;let n=a.Dom.closest(i,["td","th"],e);if(!n)return;let o=a.Dom.closest(n,"table",e);if(o&&o!==e)return;let r=this.__tableModule.getSelectedBound(e,[n,this.__selectedCell]),s=this.__tableModule.formalMatrix(e),l=s[r[1][0]][r[1][1]],c=s[r[0][0]][r[0][1]];this.j.e.fire("showPopup",e,()=>{let e=(0,u.position)(c,this.j),t=(0,u.position)(l,this.j);return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}},"cells"),(0,u.$$)("table",this.j.editor).forEach(e=>{this.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),this.j.async.clearTimeout(p)}unselectCells(e){let t=this.__tableModule,i=t.getAllSelectedCells();i.length&&i.forEach(i=>{e&&e===i||t.removeSelection(i)})}onExecCommand(e){if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(e)){e=e.replace("table","");let t=this.__tableModule.getAllSelectedCells();if(t.length){let[i]=t;if(!i)return;let n=a.Dom.closest(i,"table",this.j.editor);if(!n)return;switch(e){case"splitv":this.__tableModule.splitVertical(n);break;case"splitg":this.__tableModule.splitHorizontal(n);break;case"merge":this.__tableModule.mergeSelected(n);break;case"empty":t.forEach(e=>a.Dom.detach(e));break;case"bin":a.Dom.safeRemove(n);break;case"binrow":new Set(t.map(e=>e.parentNode)).forEach(e=>{this.__tableModule.removeRow(n,e.rowIndex)});break;case"bincolumn":{let e=new Set,i=[];t.forEach(t=>{let[,o]=this.__tableModule.formalCoordinate(n,t);e.has(o)||(i.push(o),e.add(o))}),i.sort((e,t)=>t-e).forEach(e=>{this.__tableModule.removeColumn(n,e)})}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(n,i,"addcolumnafter"===e);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(n,i.parentNode,"addrowafter"===e)}}return!1}}onAfterCommand(e){/^justify/.test(e)&&this.__tableModule.getAllSelectedCells().forEach(t=>(0,u.alignElement)(e,t))}beforeDestruct(e){this.__onRemoveSelection(),e.e.off(".select-cells")}constructor(...e){super(...e),(0,n._)(this,"__selectedCell",null),(0,n._)(this,"__isSelectionMode",!1)}}(0,n._)(m,"requires",["select"]),(0,o.__decorate)([s.autobind],m.prototype,"onStartSelection",null),(0,o.__decorate)([(0,s.watch)(":outsideClick")],m.prototype,"onOutsideClick",null),(0,o.__decorate)([(0,s.watch)(":change")],m.prototype,"onChange",null),(0,o.__decorate)([s.autobind],m.prototype,"__onRemoveSelection",null),(0,o.__decorate)([s.autobind],m.prototype,"__onStopSelection",null),(0,o.__decorate)([s.autobind],m.prototype,"onExecCommand",null),(0,o.__decorate)([s.autobind],m.prototype,"onAfterCommand",null),l.pluginSystem.add("selectCells",m)},47670:function(e,t,i){"use strict";i(5266).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},98988:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(23211),a=i(28077),l=i(57821),u=i(91206),c=i(4099);i(47670);class d extends u.Plugin{afterInit(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)})}beforeDestruct(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)})}onStartSelection(e){let{j:t}=this,i,n=e.target;for(;void 0===i&&n&&n!==t.editor;)i=t.e.fire((0,l.camelCase)(e.type+"_"+n.nodeName.toLowerCase()),n,e),n=n.parentElement;"click"===e.type&&void 0===i&&n===t.editor&&t.e.fire(e.type+"Editor",n,e)}onOutsideClick(e){let t=e.target;s.Dom.up(t,e=>e===this.j.editor)||c.UIElement.closestElement(t,c.Popup)||this.j.e.fire("outsideClick",e)}beforeCommandCut(){let{s:e}=this.j;if(!e.isCollapsed()){let t=e.current();t&&s.Dom.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:e}=this.j;return e.focus(),e.select(this.j.editor,!0),e.expandSelection(),!1}onTripleClickNormalizeSelection(e){if(3!==e.detail||!this.j.o.select.normalizeTripleClick)return;let{s:t}=this.j,{startContainer:i,startOffset:n}=t.range;0===n&&s.Dom.isText(i)&&t.select(s.Dom.closest(i,s.Dom.isBlock,this.j.editor)||i,!0)}onCopyNormalizeSelectionBound(e){let{s:t,editor:i,o:n}=this.j;!n.select.normalizeSelectionBeforeCutAndCopy||t.isCollapsed()||(!e||e.isTrusted&&s.Dom.isNode(e.target)&&s.Dom.isOrContains(i,e.target))&&this.jodit.s.expandSelection()}constructor(...e){super(...e),(0,n._)(this,"proxyEventsList",["click","mousedown","touchstart","mouseup","touchend"])}}(0,o.__decorate)([r.autobind],d.prototype,"onStartSelection",null),(0,o.__decorate)([(0,r.watch)("ow:click")],d.prototype,"onOutsideClick",null),(0,o.__decorate)([(0,r.watch)([":beforeCommandCut"])],d.prototype,"beforeCommandCut",null),(0,o.__decorate)([(0,r.watch)([":beforeCommandSelectall"])],d.prototype,"beforeCommandSelectAll",null),(0,o.__decorate)([(0,r.watch)([":click"])],d.prototype,"onTripleClickNormalizeSelection",null),(0,o.__decorate)([(0,r.watch)([":copy",":cut"])],d.prototype,"onCopyNormalizeSelectionBound",null),a.pluginSystem.add("select",d)},80202:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.minWidth=200,n.Config.prototype.maxWidth="100%",n.Config.prototype.minHeight=200,n.Config.prototype.maxHeight="auto",n.Config.prototype.saveHeightInStorage=!1},44322:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(28077),a=i(72412),l=i(80991),u=i(18855);i(80202);class c extends u.Plugin{afterInit(e){e.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(e.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__immediateInitialize()}__initialize(){this.__immediateInitialize()}__immediateInitialize(){let{j:e}=this;if(e.o.inline)return;let{height:t}=e.o;if(e.o.saveHeightInStorage&&"auto"!==t){let i=e.storage.get("height");i&&(t=i)}(0,l.css)(e.editor,{minHeight:"100%"}),(0,l.css)(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),e.isFullSize||(this.__setHeight(t),this.__setWidth(e.o.width))}__setHeight(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,a.isNumber)(e)){let{minHeight:t,maxHeight:i}=this.j.o;(0,a.isNumber)(t)&&t>e&&(e=t),(0,a.isNumber)(i)&&i<e&&(e=i)}(0,l.css)(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__setWidth(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,a.isNumber)(e)){let{minWidth:t,maxWidth:i}=this.j.o;(0,a.isNumber)(t)&&t>e&&(e=t),(0,a.isNumber)(i)&&e>i&&(e=i)}(0,l.css)(this.j.container,"width",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__getNotWorkHeight(){var e,t;return((null==(e=this.j.toolbarContainer)?void 0:e.offsetHeight)||0)+((null==(t=this.j.statusbar)?void 0:t.getHeight())||0)+2}__resizeWorkspaceImd({clientHeight:e,clientWidth:t}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let i=((0,l.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,a.isNumber)(i)&&i>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(e=>{e&&(0,l.css)(e,"minHeight",i)}),this.j.e.fire("setMinHeight",i)),(0,a.isNumber)(this.j.o.maxHeight)){let e=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,l.css)(t,"maxHeight",e)}),this.j.e.fire("setMaxHeight",e)}if(this.j.container){let e="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,l.css)(this.j.workplace,"height",e),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,a.isNumber)(e)?e+"px":e)}let{clientHeight:n,clientWidth:o}=this.j.container;(e!==n||t!==o)&&this.j.e.fire(this.j,"resize")}beforeDestruct(e){e.e.off(e.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(...e){super(...e),(0,n._)(this,"__resizeWorkspaces",this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0))}}(0,o.__decorate)([(0,r.throttle)()],c.prototype,"__initialize",null),(0,o.__decorate)([r.autobind],c.prototype,"__setHeight",null),(0,o.__decorate)([r.autobind],c.prototype,"__setWidth",null),(0,o.__decorate)([r.autobind],c.prototype,"__resizeWorkspaceImd",null),s.pluginSystem.add("size",c)},18929:function(e,t,i){"use strict";var n=i(81937),o=i(29434),r=i(5266),s=i(9103),a=i.n(s);r.Config.prototype.beautifyHTML=!n.IS_IE,r.Config.prototype.sourceEditor="ace",r.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},r.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],r.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],o.Icon.set("source",a()),r.Config.prototype.controls.source={mode:n.MODE_SPLIT,exec:e=>{e.toggleMode()},isActive:e=>e.getRealMode()===n.MODE_SOURCE,tooltip:"Change mode"}},94978:function(e,t,i){"use strict";i.d(t,{AceEditor:function(){return a}});var n=i(25045),o=i(81937),r=i(65946),s=i(94193);class a extends s.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(e){return this.instance.session.getLine(e).length}getLastColumnIndices(){let e=this.instance.session.getLength(),t=[],i=0;for(let n=0;e>n;n++)i+=this.getLastColumnIndex(n),n>0&&(i+=1),t[n]=i;return t}getRowColumnIndices(e){let t=this.getLastColumnIndices();if(e<=t[0])return{row:0,column:e};let i=1;for(let n=1;n<t.length;n++)e>t[n]&&(i=n+1);let n=e-t[i-1]-1;return{row:i,column:n}}setSelectionRangeIndices(e,t){let i=this.getRowColumnIndices(e),n=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:i,end:n})}getIndexByRowColumn(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}init(e){let t=()=>{if(void 0!==this.instance||!this.aceExists())return;let t=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(t);let i=e.ow.ace;this.instance=i.edit(t),"rtl"===e.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setTheme(e.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),e.getRealMode()!==o.MODE_WYSIWYG&&this.setValue(this.getValue());let n=this.j.async.throttle(()=>{if(e.isInDestruct||e.getMode()===o.MODE_WYSIWYG)return;let t=this.instance.isFocused();"auto"!==e.o.height?this.instance.setOption("maxLines",e.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),t&&this.focus()},2*this.j.defaultTimeout);e.e.on(e,"resize",n).on("afterResize afterSetMode",n),n(),this.onReady()},i=()=>{e.isInDestruct||e.getRealMode()!==o.MODE_SOURCE&&e.getMode()!==o.MODE_SPLIT||(this.fromWYSIWYG(),t())};e.e.on("afterSetMode",i),i(),this.aceExists()||(0,r.loadNext)(e,e.o.sourceEditorCDNUrlsJS).then(i).catch(()=>null)}destruct(){var e,t;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null==(t=this.j)||null==(e=t.events)||e.off("aceInited.source")}setValue(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let t=this.j.e.fire("beautifyHTML",e);(0,r.isString)(t)&&(e=t)}this.instance.setValue(e),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(e){this.instance.setReadOnly(e)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}getSelectionEnd(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(e){let t=this.instance.selection.getCursor(),i=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:i},!1)}setSelectionRange(e,t){this.setSelectionRangeIndices(e,t)}setPlaceHolder(e){}replaceUndoManager(){let{history:e}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:()=>{e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:()=>{e.redo()}})}constructor(...e){super(...e),(0,n._)(this,"className","jodit_ace_editor"),(0,n._)(this,"proxyOnBlur",e=>{this.j.e.fire("blur",e)}),(0,n._)(this,"proxyOnFocus",e=>{this.j.e.fire("focus",e)}),(0,n._)(this,"proxyOnMouseDown",e=>{this.j.e.fire("mousedown",e)})}}},45844:function(e,t,i){"use strict";i.d(t,{TextAreaEditor:function(){return l}});var n=i(25045),o=i(23211),r=i(7909),s=i(80991),a=i(94193);class l extends a.SourceEditor{init(e){this.instance=e.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===e.o.direction?"rtl":void 0}),this.container.appendChild(this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",e=>{(0,s.css)(this.instance,"minHeight",e)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",t=>{e.e.fire(t.type,t)}),this.autosize(),this.onReady()}destruct(){o.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(e){this.instance.value=e}insertRaw(e){let t=this.getValue();if(this.getSelectionStart()>=0){let i=this.getSelectionStart(),n=this.getSelectionEnd();this.setValue(t.substring(0,i)+e+t.substring(n,t.length))}else this.setValue(t+e)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(e,t=e){this.instance.setSelectionRange(e,t)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(e){(0,r.attr)(this.instance,"placeholder",e)}setReadOnly(e){(0,r.attr)(this.instance,"readonly",e?"true":null)}selectAll(){this.instance.select()}replaceUndoManager(){let{history:e}=this.jodit;this.j.e.on(this.instance,"keydown",t=>{if((t.ctrlKey||t.metaKey)&&"z"===t.key)return t.shiftKey?e.redo():e.undo(),this.setSelectionRange(this.getValue().length),!1})}constructor(...e){super(...e),(0,n._)(this,"autosize",this.j.async.debounce(()=>{this.instance.style.height="auto",this.instance.style.height=this.instance.scrollHeight+"px"},this.j.defaultTimeout,!0))}}},8105:function(e,t,i){"use strict";i.d(t,{AceEditor:function(){return n.AceEditor},TextAreaEditor:function(){return o.TextAreaEditor}});var n=i(94978),o=i(45844)},82495:function(e,t,i){"use strict";i.d(t,{createSourceEditor:function(){return r}});var n=i(65946),o=i(8105);function r(e,t,i,r,s){let a;if((0,n.isFunction)(e))a=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){a=new o.AceEditor(t,i,r,s);break}default:a=new o.TextAreaEditor(t,i,r,s)}return a.init(t),a.onReadyAlways(()=>{a.setReadOnly(t.o.readonly)}),a}},94193:function(e,t,i){"use strict";i.d(t,{SourceEditor:function(){return o}});var n=i(25045);class o{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(e){if(this.isReady)e();else{var t;null==(t=this.j.events)||t.on(this,"ready",e)}}constructor(e,t,i,o){(0,n._)(this,"jodit",void 0),(0,n._)(this,"container",void 0),(0,n._)(this,"toWYSIWYG",void 0),(0,n._)(this,"fromWYSIWYG",void 0),(0,n._)(this,"instance",void 0),(0,n._)(this,"className",void 0),(0,n._)(this,"isReady",void 0),this.jodit=e,this.container=t,this.toWYSIWYG=i,this.fromWYSIWYG=o,this.className="",this.isReady=!1}}},13810:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(91206);i(18929);var d=i(82495);class h extends c.Plugin{onInsertHTML(e){if(!this.j.o.readonly&&!this.j.isEditorMode()){var t;return null==(t=this.sourceEditor)||t.insertRaw(e),this.toWYSIWYG(),!1}}fromWYSIWYG(e=!1){if(!this.__lock||!0===e){this.__lock=!0;let e=this.j.getEditorValue(!1,r.SOURCE_CONSUMER);e!==this.getMirrorValue()&&this.setMirrorValue(e),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;let e=this.getMirrorValue();e!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=e,this.__lock=!1,this.__oldMirrorValue=e)}getNormalPosition(e,t){for(t=t.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,e=>{let t="";for(let i=0;i<e.length;i+=1)t+=r.INVISIBLE_SPACE;return t});e>0&&t[e]===r.INVISIBLE_SPACE;)e--;let i=e;for(;i>0;){if("<"===t[--i]&&void 0!==t[i+1]&&t[i+1].match(/[\w/]+/i))return i;if(">"===t[i])break}return e}clnInv(e){return e.replace(r.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(e){if("selectall"===e.toLowerCase()&&this.j.getRealMode()===r.MODE_SOURCE){var t;return null==(t=this.sourceEditor)||t.selectAll(),!1}}getMirrorValue(){var e;return(null==(e=this.sourceEditor)?void 0:e.getValue())||""}setMirrorValue(e){var t;null==(t=this.sourceEditor)||t.setValue(e)}setFocusToMirror(){var e;null==(e=this.sourceEditor)||e.focus()}saveSelection(){if(this.j.getRealMode()===r.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;let e=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){let t=this.j.s.marker(!0),i=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(e.substring(0,i)+this.clnInv(t.outerHTML)+e.substring(i))}else{let t=this.j.s.marker(!0),i=this.j.s.marker(!1),n=this.getNormalPosition(this.getSelectionStart(),e),o=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.slice(0,n)+this.clnInv(t.outerHTML)+e.slice(n,o)+this.clnInv(i.outerHTML)+e.slice(o))}this.toWYSIWYG()}}removeSelection(){if(this.j.getRealMode()===r.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let e=this.getMirrorValue(),t=0,i=0;try{if(e=e.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let t=this.j.e.fire("beautifyHTML",e);(0,u.isString)(t)&&(e=t)}if(i=t=e.indexOf(this.tempMarkerStart),e=e.replace(this.tempMarkerStartReg,""),-1!==t){let t=e.indexOf(this.tempMarkerEnd);-1!==t&&(i=t)}e=e.replace(this.tempMarkerEndReg,"")}finally{e=e.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(e),this.setMirrorSelectionRange(t,i),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(e,t){var i;null==(i=this.sourceEditor)||i.setSelectionRange(e,t)}onReadonlyReact(){var e;null==(e=this.sourceEditor)||e.setReadOnly(this.j.o.readonly)}afterInit(e){if(this.mirrorContainer=e.c.div("jodit-source"),e.workplace.appendChild(this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",()=>{e.workplace.appendChild(this.mirrorContainer)}),this.sourceEditor=(0,d.createSourceEditor)("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.e.on(e.ow,"keydown",e=>{var t;e.key===r.KEY_ESC&&(null==(t=this.sourceEditor)?void 0:t.isFocused)&&this.sourceEditor.blur()}),this.onReadonlyReact(),e.e.on("placeholder.source",e=>{var t;null==(t=this.sourceEditor)||t.setPlaceHolder(e)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",e=>e),e.o.beautifyHTML){let t=()=>{if(e.isInDestruct)return!1;let t=e.ow.html_beautify;if(t&&!e.isInDestruct){var i;return null==(i=e.events)||i.off("beautifyHTML").on("beautifyHTML",e=>t(e)),!0}return!1};t()||(0,u.loadNext)(e,e.o.beautifyHTMLCDNUrlsJS).then(t,()=>null)}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}syncValueFromWYSIWYG(e=!1){let t=this.j;(t.getMode()===r.MODE_SPLIT||t.getMode()===r.MODE_SOURCE)&&this.fromWYSIWYG(e)}initSourceEditor(e){if("area"!==e.o.sourceEditor){let t=(0,d.createSourceEditor)(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);t.onReadyAlways(()=>{var i,n;null==(i=this.sourceEditor)||i.destruct(),this.sourceEditor=t,this.syncValueFromWYSIWYG(!0),null==(n=e.events)||n.fire("sourceEditorReady",e)})}else{var t;null==(t=this.sourceEditor)||t.onReadyAlways(()=>{var t;this.syncValueFromWYSIWYG(!0),null==(t=e.events)||t.fire("sourceEditorReady",e)})}}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),a.Dom.safeRemove(this.mirrorContainer)}constructor(...e){super(...e),(0,n._)(this,"buttons",[{name:"source",group:"source"}]),(0,n._)(this,"sourceEditor",void 0),(0,n._)(this,"mirrorContainer",void 0),(0,n._)(this,"__lock",!1),(0,n._)(this,"__oldMirrorValue",""),(0,n._)(this,"tempMarkerStart","{start-jodit-selection}"),(0,n._)(this,"tempMarkerStartReg",/{start-jodit-selection}/g),(0,n._)(this,"tempMarkerEnd","{end-jodit-selection}"),(0,n._)(this,"tempMarkerEndReg",/{end-jodit-selection}/g),(0,n._)(this,"getSelectionStart",()=>{var e,t;return null!=(e=null==(t=this.sourceEditor)?void 0:t.getSelectionStart())?e:0}),(0,n._)(this,"getSelectionEnd",()=>{var e,t;return null!=(e=null==(t=this.sourceEditor)?void 0:t.getSelectionEnd())?e:0})}}(0,o.__decorate)([(0,s.watch)(":insertHTML.source")],h.prototype,"onInsertHTML",null),(0,o.__decorate)([s.autobind],h.prototype,"fromWYSIWYG",null),(0,o.__decorate)([s.autobind],h.prototype,"toWYSIWYG",null),(0,o.__decorate)([s.autobind],h.prototype,"getNormalPosition",null),(0,o.__decorate)([(0,s.watch)(":beforeCommand.source")],h.prototype,"onSelectAll",null),(0,o.__decorate)([(0,s.watch)(":beforeSetMode.source")],h.prototype,"saveSelection",null),(0,o.__decorate)([(0,s.watch)(":afterSetMode.source")],h.prototype,"removeSelection",null),(0,o.__decorate)([s.autobind],h.prototype,"setMirrorSelectionRange",null),(0,o.__decorate)([(0,s.watch)(":readonly.source")],h.prototype,"onReadonlyReact",null),(0,o.__decorate)([s.autobind],h.prototype,"syncValueFromWYSIWYG",null),l.pluginSystem.add("source",h)},75143:function(e,t,i){"use strict";var n=i(22289),o=i(85932),r=i(7909),s=i(36400),a=i(29434),l=i(5266),u=i(97743),c=i(68097),d=i(22227),h=i.n(d);l.Config.prototype.speechRecognize={api:void 0!==u.SpeechRecognition?u.SpeechRecognition:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},a.Icon.set("speech-recognize",h()),l.Config.prototype.controls.speechRecognize={isVisible(e){return!!e.o.speechRecognize.api},isActive(e,t){let i=(0,s.dataBind)(e,"speech");return!!(null==i?void 0:i.isEnabled)},isDisabled(e){return!e.o.speechRecognize.api},exec(e,t,{button:i,control:a}){let{api:l,lang:u,continuous:d,interimResults:h,sound:p}=e.o.speechRecognize;if(!l)return void e.alert("Speech recognize API unsupported in your browser");let m=(0,s.dataBind)(e,"speech");if(!m){var f;let t=new l;(m=new c.RecognizeManager(e.async,t)).lang=(0,o.isString)(u)?u:null!=(f=(0,r.attr)(e.od.documentElement,"lang"))?f:void 0,m.continuous=d,m.interimResults=h,m.sound=p,(0,s.dataBind)(e,"speech",m),m.on("pulse",e=>{i.setMod("pulse",e)}),m.on("result",t=>e.e.fire("speechRecognizeResult",t)),m.on("progress",t=>e.e.fire("speechRecognizeProgressResult",t)),m.on("error",t=>e.message.error(t)),i.hookStatus("beforeDestruct",()=>{(0,s.dataBind)(e,"speech",null),m.destruct()})}if(a.args){let e=a.args[0];if((0,n.isBoolean)(m[e])){m[e]=!m[e],m.isEnabled&&m.restart();return}}m.toggle(),m.isEnabled&&i.setMod("pulse",!0),i.state.activated=m.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(e,t,i){var n;let o=(0,s.dataBind)(e,"speech"),r=null!=(n=null==o?void 0:o[t])?n:e.o.speechRecognize[t];return`<span class='jodit-speech-recognize__list-item'><input ${r?"checked":""} class='jodit-checkbox' type='checkbox'>&nbsp;${i}</span>`},mods:{stroke:!1}}},94092:function(e,t,i){"use strict";i.d(t,{PII:function(){return n},WARN:function(){return o}});let n=440,o=940},97743:function(e,t,i){"use strict";i.d(t,{SpeechRecognition:function(){return o}});var n=i(81937);let o=n.globalWindow?n.globalWindow.SpeechRecognition||n.globalWindow.webkitSpeechRecognition:void 0},8962:function(e,t,i){"use strict";function n(e,t){let[i,n]=t.split("::");e.execCommand(i,null,n)}i.d(t,{execSpellCommand:function(){return n}})},68097:function(e,t,i){"use strict";i.d(t,{RecognizeManager:function(){return u}});var n=i(25045),o=i(31635),r=i(84839),s=i(60216),a=i(32560),l=i(94092);class u extends s.Eventify{set lang(e){this._lang=e,this._api.lang=e}get lang(){return this._lang}set continuous(e){this._continuous=e,this._api.continuous=e}get continuous(){return this._continuous}set interimResults(e){this._interimResults=e,this._api.interimResults=e}get interimResults(){return this._interimResults}destruct(){this.stop(),u._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,u._instances.forEach(e=>{e!==this&&e.stop()});try{this._api.start()}catch(e){this._onError(e),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(e,t){return this._api.addEventListener(e,t),this}__off(e,t){return this._api.removeEventListener(e,t),this}_onResults(e){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(l.PII),this.restart()}_onProgress(e){if(this._isEnabled&&(this.__interimResults="",e.results)){for(let t=0;t<e.results.length;t++){let i=e.results.item(t);if(i.length){let{transcript:e}=i.item(0);this.__interimResults+=e}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(e){"voice-unavailable"===e.error&&this.emit("error","Voice unavailable"),"not-allowed"===e.error&&this.emit("error","Not allowed"),("language-unavailable"===e.error||"language-not-supported"===e.error)&&this.emit("error","Language unavailable"),this._makeSound(l.WARN),this.emit("pulse",!1),this.stop()}_makeSound(e){this.sound&&(0,a.sound)({frequency:e})}constructor(e,t){super(),(0,n._)(this,"async",void 0),(0,n._)(this,"_lang",void 0),(0,n._)(this,"_continuous",void 0),(0,n._)(this,"_interimResults",void 0),(0,n._)(this,"sound",void 0),(0,n._)(this,"_isEnabled",void 0),(0,n._)(this,"_restartTimeout",void 0),(0,n._)(this,"_onSpeechStart",void 0),(0,n._)(this,"_api",void 0),(0,n._)(this,"__interimResults",void 0),this.async=e,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=e=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(l.WARN)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=t,u._instances.add(this)}}(0,n._)(u,"_instances",new Set),(0,o.__decorate)([r.autobind],u.prototype,"_onResults",null),(0,o.__decorate)([r.autobind],u.prototype,"_onProgress",null),(0,o.__decorate)([r.autobind],u.prototype,"_onError",null)},32560:function(e,t,i){"use strict";i.d(t,{sound:function(){return r}});var n=i(81937),o=i(94092);function r({sec:e=.1,frequency:t=o.PII,gain:i=.1,type:s="sine"}={}){if(!n.globalWindow||void 0===n.globalWindow.AudioContext&&void 0===n.globalWindow.webkitAudioContext)return;let a=new(n.globalWindow.AudioContext||n.globalWindow.webkitAudioContext),l=a.createGain(),u=a.createOscillator();u.type=s,u.frequency.value=t,u.connect(l),l.connect(a.destination),u.start(),u.stop(a.currentTime+e),l.gain.value=i}},19922:function(e){e.exports={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"}},20759:function(e){e.exports={newline:"ř\xe1dek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpozn\xe1n\xed Řeči",Sound:"Zvuk","Interim Results":"Průběžn\xe9 V\xfdsledky"}},22350:function(e){e.exports={newline:"Zeilenumbruch",delete:"l\xf6schen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"}},97509:function(e){e.exports={newline:"nueva l\xednea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"}},49668:function(e){e.exports={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"}},33276:function(e){e.exports={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"\xc4\xe4ni","Interim Results":"V\xe4litulokset"}},43517:function(e){e.exports={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"R\xe9sultats Interm\xe9diaires"}},8858:function(e){e.exports={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"}},22922:function(e){e.exports={newline:"\xfajsor",delete:"t\xf6rl\xe9s",space:"t\xe9r","Speech Recognize":"A Besz\xe9d Felismeri",Sound:"Hang","Interim Results":"Idők\xf6zi Eredm\xe9nyek"}},81900:function(e){e.exports={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"}},43219:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n},cs_cz:function(){return o},de:function(){return r},es:function(){return s},fa:function(){return a},fi:function(){return l},fr:function(){return u},he:function(){return c},hu:function(){return d},id:function(){return h},it:function(){return p},ja:function(){return m},ko:function(){return f},mn:function(){return g},nl:function(){return v},no:function(){return _},pl:function(){return b},pt_br:function(){return y},ru:function(){return S},tr:function(){return w},ua:function(){return C},zh_cn:function(){return k},zh_tw:function(){return E}});var n=i(19922),o=i(20759),r=i(22350),s=i(97509),a=i(49668),l=i(33276),u=i(43517),c=i(8858),d=i(22922),h=i(81900),p=i(35420),m=i(18712),f=i(73363),g=i(74762),v=i(73759),_=i(72850),b=i(37161),y=i(62896),S=i(39996),w=i(93423),C=i(10179),k=i(62547),E=i(29475)},35420:function(e){e.exports={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"}},18712:function(e){e.exports={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"}},73363:function(e){e.exports={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"}},74762:function(e){e.exports={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"}},73759:function(e){e.exports={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"}},72850:function(e){e.exports={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"}},37161:function(e){e.exports={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},62896:function(e){e.exports={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provis\xf3rios"}},39996:function(e){e.exports={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"}},93423:function(e){e.exports={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonu\xe7lar"}},10179:function(e){e.exports={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"}},62547:function(e){e.exports={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},29475:function(e){e.exports={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"}},31262:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(68616),s=i(23211),a=i(28077),l=i(71125),u=i(91206);i(75143);var c=i(73302),d=i(8962),h=i(43219);class p extends u.Plugin{afterInit(e){let{commands:t}=e.o.speechRecognize;t&&((0,a.extendLang)(h),(0,l.keys)(t,!1).forEach(i=>{i.split("|").forEach(n=>{n=n.trim().toLowerCase(),this._commandToWord[n]=t[i];let o=e.i18n(n);o!==n&&o.split("|").forEach(e=>{this._commandToWord[e.trim().toLowerCase()]=t[i].trim()})})}))}beforeDestruct(e){s.Dom.safeRemove(this.messagePopup)}onSpeechRecognizeProgressResult(e){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),this.j.workplace.appendChild(this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(()=>{s.Dom.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){this.j.async.clearTimeout(this.__hidePopupTimeout),s.Dom.safeRemove(this.messagePopup);let{j:t}=this,{s:i}=t;if(!this._checkCommand(e)){let{range:n}=i,o=i.current();if(i.isCollapsed()&&s.Dom.isText(o)&&s.Dom.isOrContains(t.editor,o)&&o.nodeValue){let r=o.nodeValue;o.nodeValue=r+(/[\u00A0 ]\uFEFF*$/.test(r)?"":" ")+e,n.setStartAfter(o),i.selectRange(n),t.synchronizeValues()}else i.insertHTML(e)}}_checkCommand(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&((0,d.execSpellCommand)(this.j,this._commandToWord[e]),!0)}constructor(...e){super(...e),(0,n._)(this,"buttons",[{group:"state",name:"speechRecognize"}]),(0,n._)(this,"messagePopup",void 0),(0,n._)(this,"__hidePopupTimeout",void 0),(0,n._)(this,"_commandToWord",{})}}(0,o.__decorate)([(0,r.watch)(":speechRecognizeProgressResult")],p.prototype,"onSpeechRecognizeProgressResult",null),(0,o.__decorate)([(0,r.watch)(":speechRecognizeResult")],p.prototype,"onSpeechRecognizeResult",null),c.Jodit.plugins.add("speech-recognize",p)},24268:function(e,t,i){"use strict";var n=i(29434),o=i(5266),r=i(49989),s=i.n(r);o.Config.prototype.spellcheck=!1,n.Icon.set("spellcheck",s()),o.Config.prototype.controls.spellcheck={isActive(e){return e.o.spellcheck},icon:s(),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},30885:function(e){e.exports={Spellcheck:"التدقيق الإملائي"}},48918:function(e){e.exports={Spellcheck:"Kontrola pravopisu"}},47229:function(e){e.exports={Spellcheck:"Rechtschreibpr\xfcfung"}},67026:function(e){e.exports={Spellcheck:"Correcci\xf3n ortogr\xe1fica"}},69495:function(e){e.exports={Spellcheck:"غلطیابی املایی"}},59903:function(e){e.exports={Spellcheck:"Oikeinkirjoituksen tarkistus"}},38522:function(e){e.exports={Spellcheck:"V\xe9rification Orthographique"}},81089:function(e){e.exports={Spellcheck:"בדיקת איות"}},59985:function(e){e.exports={Spellcheck:"Helyes\xedr\xe1s-ellenőrz\xe9s"}},43439:function(e){e.exports={Spellcheck:"Spellchecking"}},33494:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n},cs_cz:function(){return o},de:function(){return r},es:function(){return s},fa:function(){return a},fi:function(){return l},fr:function(){return u},he:function(){return c},hu:function(){return d},id:function(){return h},it:function(){return p},ja:function(){return m},ko:function(){return f},mn:function(){return g},nl:function(){return v},no:function(){return _},pl:function(){return b},pt_br:function(){return y},ru:function(){return S},tr:function(){return w},ua:function(){return C},zh_cn:function(){return k},zh_tw:function(){return E}});var n=i(30885),o=i(48918),r=i(47229),s=i(67026),a=i(69495),l=i(59903),u=i(38522),c=i(81089),d=i(59985),h=i(43439),p=i(57759),m=i(93203),f=i(32540),g=i(68429),v=i(45596),_=i(91685),b=i(63794),y=i(69977),S=i(51647),w=i(54472),C=i(84872),k=i(18310),E=i(95042)},57759:function(e){e.exports={Spellcheck:"Controllo ortografico"}},93203:function(e){e.exports={Spellcheck:"スペルチェック"}},32540:function(e){e.exports={Spellcheck:"맞춤법 검사"}},68429:function(e){e.exports={Spellcheck:"Дүрмийн алдаа шалгах"}},45596:function(e){e.exports={Spellcheck:"Spellingcontrole"}},91685:function(e){e.exports={Spellcheck:"Stavekontroll"}},63794:function(e){e.exports={Spellcheck:"Sprawdzanie pisowni"}},69977:function(e){e.exports={Spellcheck:"Verifica\xe7\xe3o ortogr\xe1fica"}},51647:function(e){e.exports={Spellcheck:"Проверка орфографии"}},54472:function(e){e.exports={Spellcheck:"Yazım denetimi"}},84872:function(e){e.exports={Spellcheck:"Перевірка орфографії"}},18310:function(e){e.exports={Spellcheck:"拼写检查"}},95042:function(e){e.exports={Spellcheck:"拼字檢查"}},90204:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(84839),s=i(28077),a=i(7909),l=i(91206);i(24268);var u=i(33494);class c extends l.Plugin{afterInit(e){e.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),e.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,a.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(e){}constructor(e){super(e),(0,n._)(this,"buttons",[{group:"state",name:"spellcheck"}]),(0,s.extendLang)(u)}}(0,o.__decorate)([r.autobind],c.prototype,"toggleSpellcheck",null),s.pluginSystem.add("spellcheck",c)},88580:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.showCharsCounter=!0,n.Config.prototype.countHTMLChars=!1,n.Config.prototype.countTextSpaces=!1,n.Config.prototype.showWordsCounter=!0},86236:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(23211),s=i(28077),a=i(18855);i(88580);class l extends a.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){r.Dom.safeRemove(this.charCounter),r.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(...e){super(...e),(0,n._)(this,"charCounter",null),(0,n._)(this,"wordCounter",null),(0,n._)(this,"reInit",()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()}),(0,n._)(this,"calc",this.j.async.throttle(()=>{let e=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let t;t=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?e.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):e.replace((0,o.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",t.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",e.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").split((0,o.SPACE_REG_EXP)()).filter(e=>e.length).length))},this.j.defaultTimeout))}}s.pluginSystem.add("stat",l)},79803:function(e,t,i){"use strict";var n=i(5266);n.Config.prototype.toolbarSticky=!0,n.Config.prototype.toolbarDisableStickyForMobile=!0,n.Config.prototype.toolbarStickyOffset=0},67582:function(e,t,i){"use strict";var n=i(25045),o=i(31635),r=i(81937),s=i(84839),a=i(23211),l=i(28077),u=i(65946),c=i(18855);i(79803);let d=!r.IS_ES_NEXT&&r.IS_IE;class h extends c.Plugin{afterInit(e){e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){let{jodit:e}=this;if(!e.o.toolbarSticky||!e.o.toolbar)return;let t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,i=(0,u.offset)(e.container,e,e.od,!0),n=e.getMode()===r.MODE_WYSIWYG&&t+e.o.toolbarStickyOffset>i.top&&t+e.o.toolbarStickyOffset<i.top+i.height&&!(e.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===n)return;let o=e.toolbarContainer;o&&(n?this.addSticky(o):this.removeSticky(o)),e.e.fire("toggleSticky",n)}__isMobile(){let{j:e}=this;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}beforeDestruct(e){a.Dom.safeRemove(this.__dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}constructor(...e){super(...e),(0,n._)(this,"__isToolbarStuck",!1),(0,n._)(this,"__dummyBox",void 0),(0,n._)(this,"__createDummy",e=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),this.j.container.insertBefore(this.__dummyBox,e)}),(0,n._)(this,"addSticky",e=>{this.__isToolbarStuck||(d&&!this.__dummyBox&&this.__createDummy(e),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,u.css)(e,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,u.css)(this.__dummyBox,{height:e.offsetHeight})}),(0,n._)(this,"removeSticky",e=>{this.__isToolbarStuck&&((0,u.css)(e,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)})}}(0,o.__decorate)([(0,s.throttle)()],h.prototype,"__onScroll",null),l.pluginSystem.add("sticky",h)},18993:function(e,t,i){"use strict";var n=i(29434),o=i(5266),r=i(81875),s=i.n(r);o.Config.prototype.usePopupForSpecialCharacters=!1,o.Config.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],n.Icon.set("symbols",s()),o.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:(e,t,i)=>{let n=e.e.fire("generateSpecialCharactersTable.symbols");if(n){if(e.o.usePopupForSpecialCharacters){let t=e.c.div();return t.classList.add("jodit-symbols"),t.appendChild(n),e.e.on(n,"close_dialog",i),t}e.alert(n,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);let t=n.querySelector("a");t&&t.focus()}}}},80696:function(e){e.exports={symbols:"رمز"}},33433:function(e){e.exports={symbols:"symbol"}},59488:function(e){e.exports={symbols:"Symbol"}},14099:function(e){e.exports={symbols:"S\xedmbolo"}},64394:function(e){e.exports={symbols:"سمبل"}},96978:function(e){e.exports={symbols:"Symbolit"}},54055:function(e){e.exports={symbols:"caract\xe8re"}},15164:function(e){e.exports={symbols:"תו מיוחד"}},42412:function(e){e.exports={symbols:"Szimb\xf3lum"}},98710:function(e){e.exports={symbols:"simbol"}},91017:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n},cs_cz:function(){return o},de:function(){return r},es:function(){return s},fa:function(){return a},fi:function(){return l},fr:function(){return u},he:function(){return c},hu:function(){return d},id:function(){return h},it:function(){return p},ja:function(){return m},ko:function(){return f},mn:function(){return g},nl:function(){return v},pl:function(){return _},pt_br:function(){return b},ru:function(){return y},tr:function(){return S},ua:function(){return w},zh_cn:function(){return C},zh_tw:function(){return k}});var n=i(80696),o=i(33433),r=i(59488),s=i(14099),a=i(64394),l=i(96978),u=i(54055),c=i(15164),d=i(42412),h=i(98710),p=i(68294),m=i(3294),f=i(44837),g=i(72320),v=i(87141),_=i(10099),b=i(442),y=i(54554),S=i(86581),w=i(97493),C=i(58585),k=i(57629)},68294:function(e){e.exports={symbols:"Simbolo"}},3294:function(e){e.exports={symbols:"symbol"}},44837:function(e){e.exports={symbols:"기호"}},72320:function(e){e.exports={symbols:"тэмдэгт"}},87141:function(e){e.exports={symbols:"symbool"}},10099:function(e){e.exports={symbols:"symbol"}},442:function(e){e.exports={symbols:"S\xedmbolo"}},54554:function(e){e.exports={symbols:"символ"}},86581:function(e){e.exports={symbols:"Sembol"}},97493:function(e){e.exports={symbols:"символ"}},58585:function(e){e.exports={symbols:"符号"}},57629:function(e){e.exports={symbols:"符號"}},11774:function(e,t,i){"use strict";var n=i(25045),o=i(81937),r=i(23211),s=i(28077),a=i(93640),l=i(18855);i(18993);var u=i(91017);class c extends l.Plugin{afterInit(e){e.e.on("generateSpecialCharactersTable.symbols",()=>{let t=e.c.fromHTML(`<div class="jodit-symbols__container">
243
243
  <div class="jodit-symbols__container_table">
244
244
  <table class="jodit-symbols__table"><tbody></tbody></table>
245
245
  </div>