jodit 4.7.4 → 4.7.5

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 (55) hide show
  1. package/CHANGELOG.md +46 -31
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +3 -3
  4. package/es2015/jodit.js +20 -13
  5. package/es2015/jodit.min.js +3 -3
  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 +3 -3
  13. package/es2018/jodit.min.js +3 -3
  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 +4 -4
  18. package/es2021/jodit.js +20 -13
  19. package/es2021/jodit.min.js +4 -4
  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 +4 -4
  28. package/es2021.en/jodit.js +20 -13
  29. package/es2021.en/jodit.min.js +4 -4
  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 +22 -13
  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/core/constants.js +1 -1
  51. package/esm/modules/uploader/helpers/send.js +17 -11
  52. package/esm/modules/widget/file-selector/file-selector.js +5 -3
  53. package/esm/types/uploader.d.ts +14 -0
  54. package/package.json +1 -1
  55. package/types/types/uploader.d.ts +14 -0
@@ -1,7 +1,7 @@
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.7.4
4
+ * Version: v4.7.5
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -136,7 +136,7 @@
136
136
  <label>~Border radius~</label>
137
137
  <input type="number" class="jodit-input &__borderRadius"/>
138
138
  </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"),s=this.getElm("lockMargin");if([t,e,i].forEach(e=>{(0,h.attr)(e,"disabled",this.state.marginIsLocked||null)}),s.innerHTML=u.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"),s=this.getElm("marginLeft");e.value=this.state.values.marginTop.toString(),t.value=this.state.values.marginRight.toString(),i.value=this.state.values.marginBottom.toString(),s.value=this.state.values.marginLeft.toString()}onChangeMargin(){let e=this.getElm("marginTop"),t=this.getElm("marginRight"),i=this.getElm("marginBottom"),s=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)(s.value))}hideFieldByOptions(){let e=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach(([t,i])=>{let s=this.getElm(i);(0,l.css)(s,"display",e[t]?null:"none")})}constructor(e,t,i){super(e,{availableClasses:e.o.image.availableClasses}),(0,s._)(this,"state",void 0),(0,s._)(this,"handlers",void 0),this.state=t,this.handlers=i}}(0,o.__decorate)([(0,n.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,n.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,n.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,n.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,n.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,n.hook)("ready"),(0,a.watch)("state.marginIsLocked")],m.prototype,"onChangeMarginIsLocked",null),(0,o.__decorate)([(0,n.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,n.hook)("ready")],m.prototype,"hideFieldByOptions",null),m=(0,o.__decorate)([r.component],m)},17312(e,t,i){"use strict";function s(e){return Array.isArray(e)}i.d(t,{isArray:()=>s})},17326(e,t,i){"use strict";var s=i(5266);s.Config.prototype.iframeBaseUrl="",s.Config.prototype.iframeTitle="Jodit Editor",s.Config.prototype.iframeDoctype="<!DOCTYPE html>",s.Config.prototype.iframeDefaultSrc="about:blank",s.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}',s.Config.prototype.iframeCSSLinks=[],s.Config.prototype.iframeSandbox=null},17338(e,t,i){"use strict";i.d(t,{Ajax:()=>u});var s=i(25045),o=i(31635),r=i(91231),n=i(81937),a=i(52201),l=i(65946),c=i(33201),h=i(5266);i(37102);var d=i(32855);class u{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 n.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{}return this}send(){this.__activated=!0;let{xhr:e,o:t}=this,i=this.prepareRequest();return this.__async.promise(async(s,o)=>{let r=()=>{this.__isFulfilled=!0,o(c.connection("Connection error"))},n=()=>{this.__isFulfilled=!0,s(new d.Response(i,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=n,e.onabort=()=>{this.__isFulfilled=!0,o(c.abort("Abort connection"))},e.onerror=r,e.ontimeout=r,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{let t=0;e.lengthComputable&&(t=e.loaded/e.total*100),this.options.onProgress?.(t)},e.onreadystatechange=()=>{this.options.onProgress?.(10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?n():e.statusText&&(this.__isFulfilled=!0,o(c.connection(e.statusText))))},e.withCredentials=t.withCredentials??!1;let{url:a,data:h,method:u}=i;e.open(u,a,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:p}=t;(0,l.isFunction)(p)&&(p=await p.call(this)),p&&e.setRequestHeader&&Object.keys(p).forEach(t=>{e.setRequestHeader(t,p[t])}),this.__async.setTimeout(()=>{e.send(h?this.__buildParams(h):void 0)},0)})}prepareRequest(){if(!this.o.url)throw c.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 s=(0,l.parseQuery)(e);e=e.substring(0,i)+"?"+(0,l.buildQuery)({...s,...t})}else e+="?"+(0,l.buildQuery)(this.o.data)}let s={url:e,method:i,data:t};return u.log.splice(100),u.log.push(s),s}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(e,t=h.Config.prototype.defaultAjaxOptions){(0,s._)(this,"__async",new r.Async),(0,s._)(this,"xhr",void 0),(0,s._)(this,"options",void 0),(0,s._)(this,"__isFulfilled",!1),(0,s._)(this,"__activated",!1),(0,s._)(this,"__isDestructed",!1),this.options=(0,l.ConfigProto)(e||{},t),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}(0,s._)(u,"log",[]),(0,o.__decorate)([a.default],u.prototype,"destruct",null)},17481(e,t,i){"use strict";i.d(t,{extractSelectedPart:()=>a});var s=i(23211),o=i(23175),r=i(4040),n=i(71125);function a(e,t,i){let s=i.s.createRange(),r=(0,o.isMarker)(t.previousSibling)?t.previousSibling:t;s.setStartBefore(e),s.setEndBefore(r),l(e,s,!0);let n=(0,o.isMarker)(t.nextSibling)?t.nextSibling:t;s.setStartAfter(n),s.setEndAfter(e),l(e,s,!1)}function l(e,t,i){let o=t.extractContents();o.textContent&&(0,r.trim)(o.textContent).length||!o.firstChild||s.Dom.unwrap(o.firstChild),e.parentNode&&(0,n.call)(i?s.Dom.before:s.Dom.after,e,o)}},17523(e,t,i){"use strict";i.d(t,{cases:()=>u});var s=i(26106),o=i(80951),r=i(58881),n=i(68709),a=i(5771),l=i(2409),c=i(93890),h=i(12443),d=i(10157);let u=[c.checkRemoveUnbreakableElement,n.checkRemoveContentNotEditable,r.checkRemoveChar,h.checkTableCell,l.checkRemoveEmptyParent,a.checkRemoveEmptyNeighbor,o.checkJoinTwoLists,s.checkJoinNeighbors,d.checkUnwrapFirstListItem]},17610(e,t,i){"use strict";i.d(t,{FileBrowser:()=>s.FileBrowser});var s=i(62623)},17780(e,t,i){"use strict";i.d(t,{DEFAULT_SOURCE_NAME:()=>h,default:()=>u});var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(65946),l=i(73714),c=i(58664);let h="default",d=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);class u{get o(){return this.options}get(e){let t=this.__ajaxInstances;if(t.has(e)){let i=t.get(e);i?.abort(),t.delete(e)}let i=(0,a.ConfigProto)(void 0!==this.options[e]?this.options[e]:{},(0,a.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));i.prepareData&&(i.data=i.prepareData.call(this,i.data));let s=new l.Ajax(i);t.set(e,s);let o=s.send();return o.finally(()=>{s.destruct(),t.delete(e),this.progressHandler(100)}).catch(()=>null),o.then(e=>e.json()).then(e=>{if(e&&!this.isSuccess(e))throw Error(this.getMessage(e));return e})}onProgress(e){this.progressHandler=e}async permissions(e,t){return this.o.permissions&&(this.o.permissions.data.path=e,this.o.permissions.data.source=t,this.o.permissions.url)?this.get("permissions").then(e=>{if(this.parent.isInDestruct)throw(0,a.abort)();let t=this.o.permissions.process;if(t||(t=this.o.ajax.process),t){let i=t.call(self,e);i.data.permissions&&(this.parent.events.fire(this,"changePermissions",this.__currentPermissions,i.data.permissions),this.__currentPermissions=i.data.permissions)}return this.__currentPermissions}):null}canI(e){let t="allow"+e;if(!r.IS_PROD&&!d.has(t))throw(0,a.error)("Wrong action "+e);let i=this.o.permissionsPresets[t];return void 0!==i?i:null==this.__currentPermissions||void 0===this.__currentPermissions[t]||this.__currentPermissions[t]}__items(e,t,i,s){let o=this.options;return o.items?(o.items.data.path=e,o.items.data.source=t,o.items.data.mods=i,this.get("items").then(e=>{let t=this.o.items.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),s(e)})):Promise.reject(Error("Set Items api options"))}items(e,t,i={}){return this.__items(e,t,i,e=>this.generateItemsList(e.data.sources,i))}itemsEx(e,t,i={}){return this.__items(e,t,i,e=>({items:this.generateItemsList(e.data.sources,i),loadedTotal:e.data.sources.reduce((e,t)=>e+t.files.length,0)}))}generateItemsList(e,t={}){let i=[],s=e=>!t.filterWord?.length||void 0===this.o.filter||this.o.filter(e,t.filterWord);return e.forEach(e=>{if(e.files&&e.files.length){let{sort:o}=this.o;(0,a.isFunction)(o)&&t.sortBy&&e.files.sort((e,i)=>o(e,i,t.sortBy)),e.files.forEach(o=>{s(o)&&("folder"===o.type||!t.onlyImages||void 0===o.isImage||o.isImage)&&i.push(c.FileBrowserItem.create({...o,sourceName:e.name,source:e}))})}}),i}async tree(e,t){return(e=(0,a.normalizeRelativePath)(e),this.o.folder)?(await this.permissions(e,t),this.o.folder.data.path=e,this.o.folder.data.source=t,this.get("folder").then(e=>{let t=this.o.folder.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),e.data.sources})):Promise.reject(Error("Set Folder Api options"))}getPathByUrl(e){return(0,a.set)("options.getLocalFileByUrl.data.url",e,this),this.get("getLocalFileByUrl").then(e=>{if(this.isSuccess(e))return e.data;throw(0,a.error)(this.getMessage(e))})}createFolder(e,t,i){let{create:s}=this.o;if(!s)throw(0,a.error)("Set Create api options");return s.data.source=i,s.data.path=t,s.data.name=e,this.get("create").then(e=>{if(this.isSuccess(e))return!0;throw(0,a.error)(this.getMessage(e))})}move(e,t,i,s){let o=s?"fileMove":"folderMove",r=this.options[o];if(!r)throw(0,a.error)("Set Move api options");return r.data.from=e,r.data.path=t,r.data.source=i,this.get(o).then(e=>{if(this.isSuccess(e))return!0;throw(0,a.error)(this.getMessage(e))})}remove(e,t,i,s){let o=this.o[e];if(!o)throw(0,a.error)(`Set "${e}" api options`);return o.data.path=t,o.data.name=i,o.data.source=s,this.get(e).then(e=>(o.process&&(e=o.process.call(this,e)),this.getMessage(e)))}fileRemove(e,t,i){return this.remove("fileRemove",e,t,i)}folderRemove(e,t,i){return this.remove("folderRemove",e,t,i)}rename(e,t,i,s,o){let r=this.o[e];if(!r)throw(0,a.error)(`Set "${e}" api options`);return r.data.path=t,r.data.name=i,r.data.newname=s,r.data.source=o,this.get(e).then(e=>(r.process&&(e=r.process.call(self,e)),this.getMessage(e)))}folderRename(e,t,i,s){return this.rename("folderRename",e,t,i,s)}fileRename(e,t,i,s){return this.rename("fileRename",e,t,i,s)}changeImage(e,t,i,s,o,r){this.o[e]||(this.o[e]={data:{}});let n=this.o[e];return void 0===n.data&&(n.data={action:e}),n.data.newname=o||s,r&&(n.data.box=r),n.data.path=t,n.data.name=s,n.data.source=i,this.get(e).then(()=>!0)}crop(e,t,i,s,o){return this.changeImage("crop",e,t,i,s,o)}resize(e,t,i,s,o){return this.changeImage("resize",e,t,i,s,o)}getMessage(e){return this.options.getMessage(e)}isSuccess(e){return this.options.isSuccess(e)}destruct(){this.__ajaxInstances.forEach(e=>e.destruct()),this.__ajaxInstances.clear()}constructor(e,t){(0,s._)(this,"parent",void 0),(0,s._)(this,"options",void 0),(0,s._)(this,"__currentPermissions",void 0),(0,s._)(this,"__ajaxInstances",void 0),(0,s._)(this,"progressHandler",void 0),this.parent=e,this.options=t,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=e=>{}}}u=(0,o.__decorate)([n.autobind],u)},17849(e,t,i){"use strict";var s=i(28686),o=i(80991);let r=e=>e.args&&(0,s.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 s=r(i);e.getInstance("Table",e.o).getAllSelectedCells().forEach(e=>{(0,o.css)(e,"vertical-align","normal"===s?"":s)})},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},`
139
- `,{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec(e,t,{control:i}){if(!(0,s.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,s.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t)},tooltip:"Add row"},{name:"delete",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec(e,t,{control:i}){if(!(0,s.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t),e.e.fire("hidePopup")},tooltip:"Delete"}]},17918(e){e.exports={aiAssistant:"AI Assistant",aiCommands:"AI Commands","AI Assistant":"AI Assistant",Prompt:"Prompt","Ask AI to improve generated text":"Ask AI to improve generated text",Submit:"Submit"}},17995(e){e.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg>'},18073(e,t,i){"use strict";i.d(t,{size:()=>o});var s=i(28686);function o(e){return(0,s.isString)(e)||(0,s.isArray)(e)?e.length:(0,s.isPlainObject)(e)?Object.keys(e).length:0}},18080(e,t,i){"use strict";i.d(t,{i18n:()=>c,sprintf:()=>l});var s=i(81937),o=i(85932),r=i(99436),n=i(93640),a=i(5266);let l=(e,t)=>{if(!t||!t.length)return e;let i=/%([sd])/g,s=i.exec(e),o=e,r=0;for(;s&&void 0!==t[r];)o=o.replace(s[0],t[r].toString()),r+=1,s=i.exec(e);return o};function c(e,t,i){if(!(0,o.isString)(e))throw(0,n.error)("i18n: Need string in first argument");if(!e.length)return e;let c=!!i?.debugLanguage,h={},d=e=>t&&t.length?l(e,t):e,u=(0,n.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),p=(0,n.defaultLanguage)(i?.language,u),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 s=(0,r.ucfirst)(e);if((0,o.isString)(t[s]))return d(t[s])};void 0!==s.lang[p]?h=s.lang[p]:c||(h=void 0!==s.lang[u]?s.lang[u]:s.lang.en);let g=i?.i18n;if(g&&g[p]){let e=m(g[p]);if(e)return e}return m(h)||(!c&&s.lang.en&&(0,o.isString)(s.lang.en[e])&&s.lang.en[e]?d(s.lang.en[e]):c?"{"+e+"}":(!s.IS_PROD,d(e)))}},18210(e,t,i){"use strict";var s=i(31635),o=i(81937),r=i(84839),n=i(23211),a=i(28077),l=i(91206);class c extends l.Plugin{afterInit(e){}beforeDestruct(e){}onKeyDownArrow(e){if(e.key!==o.KEY_RIGHT||!this.j.selection.isCollapsed())return;let{endContainer:t,endOffset:i}=this.j.selection.range;if(n.Dom.isText(t)&&t.nodeValue?.length===i){let{parentNode:e}=t;n.Dom.isInlineBlock(e)&&!n.Dom.findNotEmptyNeighbor(e,!1,this.j.editor)&&n.Dom.after(e,this.j.createInside.text(o.NBSP_SPACE))}}}(0,s.__decorate)([(0,r.watch)(":keydown")],c.prototype,"onKeyDownArrow",null),a.pluginSystem.add("keyArrowOutside",c)},18272(e,t,i){"use strict";i.d(t,{makeContextMenu:()=>n,makeDataProvider:()=>r});var s=i(67399),o=i(17780);function r(e,t){return new o.default(e,t)}function n(e){return new s.ContextMenu(e)}},18303(e,t,i){"use strict";function s(e){return null==e}i.d(t,{isVoid:()=>s})},18377(e,t,i){"use strict";i.d(t,{normalizePath:()=>o});var s=i(4040);let o=(...e)=>e.filter(e=>(0,s.trim)(e).length).map((t,i)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),i&&(t=t.replace(/^\//,"")),i!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/")},18380(e,t,i){"use strict";i.d(t,{readMargins:()=>o});var s=i(74264);function o(e,t,i){let o=!0,r=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(i=>{let n=e.style.getPropertyValue((0,s.kebabCase)(i));if(!n){r=!0,t[i]=0;return}/^[0-9]+(px)?$/.test(n)&&(n=parseInt(n,10)),t[i]=n,(r&&t[i]||o&&"marginTop"!==i&&t[i]!==t.marginTop)&&(o=!1)}),i.marginIsLocked=o}},18605(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg>'},18762(e,t,i){"use strict";i.d(t,{FileSelectorWidget:()=>a});var s=i(23211),o=i(65946),r=i(4099),n=i(89636);let a=(e,t,i,a,c=!0)=>{let h,d=[];if(t.upload&&e.o.uploader&&(e.o.uploader.url||e.o.uploader.insertImageAsBase64URI)){let i=e.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${e.i18n(c?"Drop image":"Drop file")}</strong><span><br>${e.i18n("or click")}</span><input type="file" accept="${c?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);e.uploader.bind(i,i=>{let s=(0,o.isFunction)(t.upload)?t.upload:e.o.uploader.defaultHandlerSuccess;(0,o.isFunction)(s)&&s.call(e,i),e.e.fire("closeAllPopups")},t=>{e.message.error(t.message),e.e.fire("closeAllPopups")}),d.push({icon:"upload",name:"Upload",content:i})}if(t.filebrowser&&(e.o.filebrowser.ajax.url||e.o.filebrowser.items.url)&&d.push({icon:"folder",name:"Browse",content(){a&&a(),t.filebrowser&&e.filebrowser.open(t.filebrowser,c)}}),t.url){let n=new r.UIButton(e,{type:"submit",variant:"primary",text:"Insert"}),a=new r.UIForm(e,[new r.UIInput(e,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new r.UIInput(e,{name:"text",label:"Alternative text"}),new r.UIBlock(e,[n])]);h=null,i&&!s.Dom.isText(i)&&!s.Dom.isComment(i)&&(s.Dom.isTag(i,"img")||(0,o.$$)("img",i).length)&&(h="IMG"===i.tagName?i:(0,o.$$)("img",i)[0],l(a.container,"input[name=url]",(0,o.attr)(h,"src")),l(a.container,"input[name=text]",(0,o.attr)(h,"alt")),n.state.text="Update"),i&&s.Dom.isTag(i,"a")&&(l(a.container,"input[name=url]",(0,o.attr)(i,"href")),l(a.container,"input[name=text]",(0,o.attr)(i,"title")),n.state.text="Update"),a.onSubmit(i=>{(0,o.isFunction)(t.url)&&t.url.call(e,i.url,i.text)}),d.push({icon:"link",name:"URL",content:a.container})}return(0,n.TabsWidget)(e,d)};function l(e,t,i){let s=e.querySelector(t);return s?(i&&(s.value=i),s.value):""}},18855(e,t,i){"use strict";i.d(t,{Plugin:()=>l});var s=i(25045),o=i(31635),r=i(16964),n=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();(0,a.isJoditObject)(e)&&this.buttons?.forEach(t=>{e?.unregisterButton(t)}),this.beforeDestruct(this.j),super.destruct()}constructor(e){super(e),(0,s._)(this,"buttons",[]),(0,s._)(this,"hasStyle",!1),(0,s._)(this,"styles",void 0),(0,s._)(this,"__inited",!1),e.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}(0,s._)(l,"requires",[]),(0,o.__decorate)([n.autobind],l.prototype,"__afterPluginSystemInit",null),(0,o.__decorate)([n.autobind],l.prototype,"__afterInit",null),(0,o.__decorate)([n.autobind],l.prototype,"__beforeDestruct",null)},18869(e,t,i){"use strict";i.d(t,{EventHandlersStore:()=>a,defaultNameSpace:()=>n});var s=i(25045),o=i(88475),r=i(28712);let n="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 s=this.get(e,t);if(s){for(let e=0;e<s.length;e+=1)if(s[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,o.toArray)(this.__store.keys());return e?t.filter(e=>e!==n):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,s=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),s?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,s._)(this,"__store",new Map)}}},18929(e,t,i){"use strict";var s=i(81937),o=i(29434),r=i(5266),n=i(9103),a=i.n(n);r.Config.prototype.beautifyHTML=!s.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:s.MODE_SPLIT,exec(e){e.toggleMode()},isActive:e=>e.getRealMode()===s.MODE_SOURCE,tooltip:"Change mode"}},18993(e,t,i){"use strict";var s=i(29434),o=i(5266),r=i(81875),n=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;"],s.Icon.set("symbols",n()),o.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(e,t,i){let s=e.e.fire("generateSpecialCharactersTable.symbols");if(s){if(e.o.usePopupForSpecialCharacters){let t=e.c.div();return t.classList.add("jodit-symbols"),t.appendChild(s),e.e.on(s,"close_dialog",i),t}e.alert(s,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);let t=s.querySelector("a");t&&t.focus()}}}},19147(e,t,i){"use strict";i.d(t,{NUMBER_FIELDS_REG:()=>a,normalizeCssNumericValue:()=>l,normalizeCssValue:()=>c});var s=i(70222),o=i(18303),r=i(93387),n=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,s.isNumeric)(t.toString())?parseInt(t.toString(),10)+"px":t}function c(e,t){if("font-weight"===(0,n.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,s.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}},19213(e,t,i){"use strict";i.d(t,{clearSelectionWrappers:()=>c,clearSelectionWrappersFromHTML:()=>h,getSelectionWrappers:()=>l,highlightTextRanges:()=>a});var s=i(81937),o=i(23211),r=i(28723);let n="jd-tmp-selection";function a(e,t,i,r,a){if(null==t.startContainer.nodeValue||null==t.endContainer.nodeValue||((e,t,i)=>{if(e.o.search.useCustomHighlightAPI&&s.globalWindow&&void 0!==s.globalWindow.Highlight){let s=new Highlight(...[t,...i].map(t=>{let i=e.selection.createRange();return i.setStart(t.startContainer,t.startOffset),i.setEnd(t.endContainer,t.endOffset),i}));return CSS.highlights.clear(),CSS.highlights.set("jodit-search-result",s),i.length=0,!0}return!1})(e,t,i))return;let l=r.element("span",{[n]:!0});o.Dom.markTemporary(l),((e,t,i)=>{let s=e.startContainer.nodeValue,r=0;if(0!==e.startOffset){let t=i.text(s.substring(0,e.startOffset));e.startContainer.nodeValue=s.substring(e.startOffset),o.Dom.before(e.startContainer,t),e.startContainer===e.endContainer&&(r=e.startOffset,e.endOffset-=r),e.startOffset=0}let n=e.endContainer.nodeValue;if(e.endOffset!==n.length){let s=i.text(n.substring(e.endOffset));for(let i of(e.endContainer.nodeValue=n.substring(0,e.endOffset),o.Dom.after(e.endContainer,s),t))if(i.startContainer===e.endContainer)i.startContainer=s,i.startOffset=i.startOffset-e.endOffset-r,i.endContainer===e.endContainer&&(i.endContainer=s,i.endOffset=i.endOffset-e.endOffset-r);else break;e.endOffset=e.endContainer.nodeValue.length}})(t,i,r);let c=t.startContainer;do{var h;if(!c||(o.Dom.isText(c)&&(h=c.parentNode,!(o.Dom.isElement(h)&&h.hasAttribute(n)))&&o.Dom.wrap(c,l.cloneNode(),r),c===t.endContainer))break;let e=c.firstChild||c.nextSibling;if(!e){for(;c&&!c.nextSibling&&c!==a;)c=c.parentNode;e=c?.nextSibling}c=e}while(c&&c!==a)}function l(e){return(0,r.$$)(`[${n}]`,e)}function c(e){l(e.editor).forEach(e=>o.Dom.unwrap(e)),e.o.search.useCustomHighlightAPI&&s.globalWindow&&void 0!==s.globalWindow.Highlight&&CSS.highlights.clear()}function h(e){return e.replace(RegExp(`<span[^>]+${n}[^>]+>(.*?)</span>`,"g"),"$1")}},19549(e,t,i){"use strict";i.d(t,{getSuitParent:()=>function e(t,i,n){let{parentNode:a}=i;return a===n||!s.Dom.isHTMLElement(a)||s.Dom.next(i,o.isNormalNode,a)||s.Dom.prev(i,o.isNormalNode,a)?null:t.isElementCommit&&t.elementIsBlock&&!s.Dom.isBlock(a)?e(t,a,n):(0,r.isSuitElement)(t,a,!1)&&(!s.Dom.isBlock(a)||t.elementIsBlock)?a:t.isElementCommit&&!s.Dom.isBlock(a)?e(t,a,n):null}});var s=i(23211),o=i(83653),r=i(73019)},20784(e){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg>'},21132(e,t,i){"use strict";i.d(t,{applyMargin:()=>r});var s=i(80991),o=i(10808);function r(e,t,i,r,n,a,l){let c=[t,i,r,n],h=(e,t)=>{let i=(0,s.css)(a,e),r=(0,o.normalSizeToString)(t);i.toString()!==r.toString()&&(0,s.css)(a,e,r)};if(l)h("margin",t);else{let e=["margin-top","margin-right","margin-bottom","margin-left"];c.forEach((t,i)=>{h(e[i],t)})}}},21917(e){e.exports='<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg>'},22227(e){e.exports='<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg>'},22289(e,t,i){"use strict";function s(e){return"boolean"==typeof e}i.d(t,{isBoolean:()=>s})},22533(e,t,i){"use strict";i.d(t,{ToolbarButton:()=>g});var s=i(25045),o=i(31635),r=i(69364),n=i(84839),a=i(27795),l=i(65946),c=i(59400),h=i(15982),d=i(29434),u=i(51116),p=i(42573),m=i(4274);class g extends c.UIButton{className(){return"ToolbarButton"}get toolbar(){return this.closest(p.ToolbarCollection)}update(){let{control:e,state:t}=this,i=this.closest(p.ToolbarCollection);if(!i)return;let s=e.value?.(i.jodit,this);void 0!==s&&(t.value=s),t.disabled=this.__calculateDisabledStatus(i),t.activated=this.__calculateActivatedStatus(i),e.update?.(i.jodit,this)}__calculateActivatedStatus(e){return(!(0,l.isJoditObject)(this.j)||!!this.j.editorIsActive)&&(!!this.control.isActive?.(this.j,this)||!!(e&&e.shouldBeActive(this)))}__calculateDisabledStatus(e){return!!(this.j.o.disabled||this.j.o.readonly&&(!this.j.o.activeButtonsInReadOnly||!this.j.o.activeButtonsInReadOnly.includes(this.control.name))||this.control.isDisabled?.(this.j,this))||!!(e&&e.shouldBeDisabled(this))}onChangeActivated(){(0,l.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,l.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,l.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){let e=this.componentName,t=this.j.c.span(e),i=super.createContainer();(0,l.attr)(t,"role","listitem"),i.classList.remove(e),i.classList.add(e+"__button"),Object.defineProperty(i,"component",{value:this}),t.appendChild(i);let s=this.j.c.fromHTML(`<span role="trigger" class="${e}__trigger">${d.Icon.get("chevron")}</span>`);return i.appendChild(s),t}focus(){this.container.querySelector("button")?.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):a.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let e=this.state.disabled?"disabled":null;(0,l.attr)(this.trigger,"disabled",e),(0,l.attr)(this.button,"disabled",e),(0,l.attr)(this.container,"disabled",e)}__initFromControl(){let{control:e,state:t}=this;this.updateSize(),t.name=e.name;let{textIcons:i}=this.j.o;if(!0===i||(0,l.isFunction)(i)&&i(e.name)||e.template)t.icon=(0,c.UIButtonState)().icon,t.text=e.text||e.name;else{if(e.iconURL)t.icon.iconURL=e.iconURL;else{let i=e.icon||e.name;t.icon.name=d.Icon.exists(i)||this.j.o.extraIcons?.[i]?i:""}e.iconURL||t.icon.name||(t.text=e.text||e.name)}e.tooltip&&(t.tooltip=this.j.i18n((0,l.isFunction)(e.tooltip)?e.tooltip(this.j,e,this):e.tooltip)),t.hasTrigger=!!(e.list||e.popup&&e.exec)}onTriggerClick(e){if(this.openedPopup)return void this.__closePopup();let{control:t}=this;if(e.buffer={actionTrigger:this},t.list)return this.__openControlList(t);if((0,l.isFunction)(t.popup)){let e=this.openPopup();e.parentElement=this;try{if(!1!==this.j.e.fire((0,l.camelCase)(`before-${t.name}-open-popup`),this.target,t,e)){let i=this.toolbar?.getTarget(this)??this.target??null,s=t.popup(this.j,i,this.__closePopup,this);s?e.setContent((0,l.isString)(s)?this.j.c.fromHTML(s):s).open(()=>(0,l.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(e){throw this.__closePopup(),e}this.j.e.fire((0,l.camelCase)(`after-${t.name}-open-popup`),e.container)}}__openControlList(e){let t=this.jodit.options.controls??{},i=e=>(0,h.findControlType)(e,t),s=e.list,o=this.openPopup(),r=(0,m.makeCollection)(this.j);o.parentElement=this,r.parentElement=o,r.mode="vertical";let n=(t,s)=>{let o;if((0,l.isString)(s)&&i(s))return{name:s.toString(),...i(s)};if((0,l.isString)(t)&&i(t))return{name:t.toString(),...i(t),..."object"==typeof s?s:{}};o=t,(0,l.isPlainObject)(o)&&"title"in o&&"value"in o&&(s=t.value,t=t.title);let{childTemplate:r}=e,n={name:t.toString(),template:r&&((e,t,i)=>r(e,t,i,this)),exec:e.childExec?(t,i,s)=>e.childExec?.(t,i,{...s,parentControl:e}):e.exec,data:e.data,command:e.command,isActive:e.isChildActive,value:e.value,isDisabled:e.isChildDisabled,mode:e.mode,args:[...e.args?e.args:[],t,s]};return(0,l.isString)(s)&&(n.text=s),n};r.build((0,l.isArray)(s)?s.map(n):(0,l.keys)(s,!1).map(e=>n(e,s[e])),this.target),o.setContent(r).open(()=>(0,l.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(e){this.openedPopup&&(e&&a.Dom.isNode(e.target)&&(a.Dom.isOrContains(this.container,e.target)||this.openedPopup.isOwnClick(e))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new u.Popup(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}__closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null)}onClick(e){let{control:t}=this;if((0,l.isFunction)(t.exec)){let i=this.toolbar?.getTarget(this)??this.target??null,s=t.exec(this.j,i,{control:t,originalEvent:e,button:this});if(!1!==s&&!0!==s&&(this.j?.e?.fire("synchro"),this.parentElement&&this.parentElement.update(),this.j?.e?.fire("closeAllPopups afterExec")),!1!==s)return}return t.list?this.__openControlList(t):(0,l.isFunction)(t.popup)?this.onTriggerClick(e):void((t.command||t.name)&&((0,l.call)((0,l.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),t.command||t.name,!1,t.args&&t.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}constructor(e,t,i=null){super(e),(0,s._)(this,"control",void 0),(0,s._)(this,"target",void 0),(0,s._)(this,"state",void 0),(0,s._)(this,"trigger",void 0),(0,s._)(this,"openedPopup",void 0),this.control=t,this.target=i,this.state={...(0,c.UIButtonState)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;let o=this.getElm("button");(0,l.assert)(o,"Element button should exists"),this.button=o,Object.defineProperty(o,"component",{value:this,configurable:!0});let n=this.getElm("trigger");(0,l.assert)(n,"Element trigger should exists"),this.trigger=n,n.remove(),e.e.on([this.button,this.trigger],"mousedown",e=>e.preventDefault()),this.onAction(this.onClick),this.hookStatus(r.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),t.mods&&Object.keys(t.mods).forEach(e=>{t.mods&&this.setMod(e,t.mods[e])})}}(0,o.__decorate)([n.cacheHTML],g.prototype,"createContainer",null),(0,o.__decorate)([(0,n.watch)("state.hasTrigger",{immediately:!1})],g.prototype,"onChangeHasTrigger",null),(0,o.__decorate)([(0,n.watch)("trigger:click")],g.prototype,"onTriggerClick",null),(0,o.__decorate)([n.autobind],g.prototype,"onOutsideClick",null),(0,o.__decorate)([n.autobind],g.prototype,"__closePopup",null),g=(0,o.__decorate)([n.component],g)},22852(e,t,i){"use strict";i.d(t,{stripTags:()=>function e(t,i=document,h=null){let d=i.createElement("div");return(0,o.isString)(t)?d.innerHTML=t:d.appendChild(t),(0,n.$$)("*",d).forEach(t=>{let o=t.parentNode;if(!o)return;if(h&&s.Dom.isTag(t,h)){let o=t.nodeName.toLowerCase(),r=s.Dom.isTag(t,c)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${e(t.innerHTML,i,h)}%%%/jodit-${o}%%%`;s.Dom.before(t,i.createTextNode(r)),s.Dom.safeRemove(t);return}if(s.Dom.isTag(t,l))return void s.Dom.safeRemove(t);if(!s.Dom.isTag(t,a))return;let r=t.nextSibling;!(s.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,s)=>`<${t?"/":""}${s}>`)}});var s=i(23211),o=i(85932),r=i(4040),n=i(93640);let a=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),l=new Set(["script","style"]),c=new Set(["br","hr","input"])},22980(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(27795),a=i(28077),l=i(85932),c=i(91206);i(86038);class h extends c.Plugin{afterInit(e){"br"!==e.o.enter.toLowerCase()&&e.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}beforeDestruct(e){e.e.off(".wtn")}postProcessSetEditorValue(){let{jodit:e}=this;if(!e.isEditorMode())return;let t=e.editor.firstChild,i=!1;for(;t;){if(t=((e,t)=>{let i=e,s=e;do if(n.Dom.isElement(s)&&n.Dom.isLeaf(s)&&!n.Dom.isList(s.parentElement)){let e=n.Dom.findNotEmptySibling(s,!1);n.Dom.isTag(i,"ul")?i.appendChild(s):i=n.Dom.wrap(s,"ul",t.createInside),s=e}else break;while(s)return i})(t,e),this.isSuitableStart(t)){i||e.s.save(),i=!0;let s=e.createInside.element(e.o.enter);for(n.Dom.before(t,s);t&&this.isSuitable(t);){let e=t.nextSibling;s.appendChild(t),t=e}s.normalize(),t=s}t=t&&t.nextSibling}i&&(e.s.restore(),"afterInit"===e.e.current&&e.e.fire("internalChange"))}preprocessInput(){let{jodit:e}=this,t="afterInit"===e.e.current;if(!e.isEditorMode()||e.editor.firstChild||!e.o.wrapNodes.emptyBlockAfterInit&&t)return;let i=e.createInside.element(e.o.enter),s=e.createInside.element("br");n.Dom.append(i,s),n.Dom.append(e.editor,i),e.s.isFocused()&&e.s.setCursorBefore(s),e.e.fire("internalChange")}constructor(...e){super(...e),(0,s._)(this,"isSuitableStart",e=>n.Dom.isText(e)&&(0,l.isString)(e.nodeValue)&&(/[^\s]/.test(e.nodeValue)||e.parentNode?.firstChild===e&&this.isSuitable(e.nextSibling))||this.isNotWrapped(e)&&!n.Dom.isTemporary(e)),(0,s._)(this,"isSuitable",e=>n.Dom.isText(e)||this.isNotWrapped(e)),(0,s._)(this,"isNotWrapped",e=>n.Dom.isElement(e)&&!(n.Dom.isBlock(e)||n.Dom.isTag(e,this.j.o.wrapNodes.exclude)))}}(0,o.__decorate)([r.autobind],h.prototype,"postProcessSetEditorValue",null),(0,o.__decorate)([r.autobind],h.prototype,"preprocessInput",null),a.pluginSystem.add("wrapNodes",h)},23112(e,t,i){"use strict";function s(e){let t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],s=new Uint8Array(new ArrayBuffer(t.length));for(let e=0;e<t.length;e+=1)s[e]=t.charCodeAt(e);return new Blob([s.buffer],{type:i})}i.d(t,{dataURItoBlob:()=>s})},23175(e,t,i){"use strict";i.d(t,{isMarker:()=>r});var s=i(81937),o=i(23211);function r(e){return o.Dom.isNode(e)&&o.Dom.isTag(e,"span")&&e.hasAttribute("data-"+s.MARKER_CLASS)}},23183(e,t,i){"use strict";i.d(t,{Elms:()=>o});var s=i(88475);class o{getElm(e){return this.container.querySelector("."+this.getFullElName(e))}getElms(e){return(0,s.toArray)(this.container.querySelectorAll("."+this.getFullElName(e)))}}},23211(e,t,i){"use strict";i.d(t,{Dom:()=>l});var s=i(81937),o=i(88475),r=i(28686),n=i(4040),a=i(93640);class l{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let s,o=e;i.s.save();let r=!1;do r=!1,(s=o.nextSibling)&&!l.isBlock(s)&&!l.isTag(s,"br")&&(r=!0,o=s);while(r)return l.__wrapElements(t,i,e,o)}static __wrapElements(e,t,i,s){let o=(0,r.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(o,i);let n=i;for(;n&&(n=i.nextSibling,o.appendChild(i),i!==s&&n);)i=n;return t.s.restore(),o}static wrapInline(e,t,i){let s,o=e,r=e;i.s.save();let n=!1;do n=!1,(s=o.previousSibling)&&!l.isBlock(s)&&(n=!0,o=s);while(n)do n=!1,(s=r.nextSibling)&&!l.isBlock(s)&&(n=!0,r=s);while(n)return l.__wrapElements(t,i,o,r)}static wrap(e,t,i){let s=(0,r.isString)(t)?i.element(t):t;if(l.isNode(e)){if(!e.parentNode)throw(0,a.error)("Element should be in DOM");e.parentNode.insertBefore(s,e),s.appendChild(e)}else{let t=e.extractContents();e.insertNode(s),s.appendChild(t)}return s}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);l.safeRemove(e)}}static between(e,t,i){let s=e;for(;s&&s!==t&&!(e!==s&&i(s));){let e=s.firstChild||s.nextSibling;if(!e){for(;s&&!s.nextSibling;)s=s.parentNode;e=s?.nextSibling}s=e}}static replace(e,t,i,s=!1,n=!1){let c;if((0,r.isHTML)(t)&&((0,a.assert)(i,"Need create instance for new tag"),t=i.fromHTML(t)),(0,r.isString)(t)?((0,a.assert)(i,"Need create instance for new tag"),c=i.element(t)):c=t,!n)for(;e.firstChild;)c.appendChild(e.firstChild);return s&&l.isElement(e)&&l.isElement(c)&&(0,o.toArray)(e.attributes).forEach(e=>{c.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(c,e),c}static isEmptyTextNode(e){return l.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(s.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return l.each(e,e=>l.isEmptyTextNode(e))}static isContentEditable(e,t){return l.isNode(e)&&!l.closest(e,e=>l.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=s.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,r.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let o=e=>null==e.nodeValue||0===(0,n.trim)(e.nodeValue).length;return l.isText(e)?o(e):!(l.isElement(e)&&i(e))&&l.each(e,e=>{if(l.isText(e)&&!o(e)||l.isElement(e)&&i(e))return!1})}static isNode(e){return!!(e&&(0,r.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,r.isFunction)(e.appendChild))}static isCell(e){return l.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return l.isTag(e,s.LIST_TAGS)}static isLeaf(e){return l.isTag(e,"li")}static isImage(e){return l.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,r.isVoid)(e)&&"object"==typeof e&&l.isNode(e)&&s.IS_BLOCK.test(e.nodeName)}static isText(e){return!!(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return!!(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){return!!l.isNode(e)&&!!(e.ownerDocument?.defaultView&&e.nodeType===Node.ELEMENT_NODE)}static isFragment(e){return!!l.isNode(e)&&!!(e.ownerDocument?.defaultView&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(e){if(!l.isNode(e))return!1;let t=e.ownerDocument?.defaultView;return!!(t&&e instanceof t.HTMLElement)}static isInlineBlock(e){return l.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,a.css)(e,"display").toString())}static canSplitBlock(e){return!(0,r.isVoid)(e)&&l.isHTMLElement(e)&&l.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=e?.lastChild;if(!i)return null;do{if(t(i))return i;let s=i.lastChild;if(s||(s=i.previousSibling),!s&&i.parentNode!==e){do i=i.parentNode;while(i&&!i?.previousSibling&&i.parentNode!==e)s=i?.previousSibling}i=s}while(i)return null}static prev(e,t,i,s=!0){return l.find(e,t,i,!1,s)}static next(e,t,i,s=!0){return l.find(e,t,i,!0,s)}static prevWithClass(e,t){return l.prev(e,e=>l.isElement(e)&&e.classList.contains(t),e.parentNode)}static nextWithClass(e,t){return l.next(e,e=>l.isElement(e)&&e.classList.contains(t),e.parentNode)}static find(e,t,i,s=!0,o=!0){let r=this.nextGen(e,i,s,o),n=r.next();for(;!n.done;){if(t(n.value))return n.value;n=r.next()}return null}static*nextGen(e,t,i=!0,s=!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,s),r=r.parentNode}while(r&&r!==t)return null}static each(e,t,i=!0){let s=this.eachGen(e,i),o=s.next();for(;!o.done;){if(!1===t(o.value))return!1;o=s.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,s=!0){for(;t.length;){let o=t.pop();if(s){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,s="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){let e=l.findWithCurrent(r[o],t,r,s,o);if(e)return e}for(;r&&!r[s]&&r!==i;)r=r.parentNode;r&&r[s]&&r!==i&&(r=r[s])}while(r&&r!==i)return null}static findSibling(e,t=!0,i=e=>!l.isEmptyTextNode(e)){let s=l.sibling(e,t);for(;s&&!i(s);)s=l.sibling(s,t);return s&&i(s)?s:null}static findNotEmptySibling(e,t){return l.findSibling(e,t,e=>!l.isEmptyTextNode(e)&&!!(!l.isText(e)||e.nodeValue?.length&&(0,n.trim)(e.nodeValue)))}static findNotEmptyNeighbor(e,t,i){return(0,a.call)(t?l.prev:l.next,e,e=>!!(e&&(!(l.isText(e)||l.isComment(e))||(0,n.trim)(e?.nodeValue||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,s=!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&&s&&t(o)?o:null}static closest(e,t,i){let s,o=e=>e.toLowerCase();if((0,r.isFunction)(t))s=t;else if((0,r.isArray)(t)||(0,r.isSet)(t)){let e=(0,r.isSet)(t)?t:new Set(t.map(o));s=t=>!!(t&&e.has(o(t.nodeName)))}else s=e=>!!(e&&o(t)===o(e.nodeName));return l.up(e,s,i)}static furthest(e,t,i){let s=null,o=e?.parentElement;for(;o&&o!==i;)t(o)&&(s=o),o=o?.parentElement;return s}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 n=(e.ownerDocument||s.globalDocument).createDocumentFragment();(0,o.toArray)(e.childNodes).filter(e=>!!r(e)||(l.safeRemove(e),!1)).forEach(e=>{n.appendChild(e)}),i&&t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)}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=>l.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=l.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&l.isTag(e.startContainer,s.INSEPARABLE_TAGS)?l.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>l.isText(e)&&!e.nodeValue&&l.safeRemove(e))}static hide(e){e&&((0,a.dataBind)(e,"__old_display",e.style.display),e.style.display="none")}static show(e){if(!e)return;let t=(0,a.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(),s=e.tagName.toUpperCase();if(t instanceof Set)return t.has(i)||t.has(s);if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");return i===t||s===t}static markTemporary(e,t){return t&&(0,a.attr)(e,t),(0,a.attr)(e,s.TEMP_ATTR,!0),e}static isTemporary(e){return!!l.isElement(e)&&((0,r.isMarker)(e)||"true"===(0,a.attr)(e,s.TEMP_ATTR))}static replaceTemporaryFromString(e){return e.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(e){return(0,a.$$)(`[${s.TEMP_ATTR}]`,e)}constructor(){throw Error("Dom is static module")}}},23283(e,t,i){"use strict";function s(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(e+""))}i.d(t,{isNativeFunction:()=>s})},23422(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(23211),l=i(28077),c=i(65946),h=i(18855);i(38187);var d=i(54308);class u extends h.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,c.getDataTransfer)(e),i=[t?.getData(r.TEXT_PLAIN),t?.getData(r.TEXT_HTML),t?.getData(r.TEXT_RTF)];for(let t of i)if((0,c.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,c.getDataTransfer)(e),i=t?.getData(r.TEXT_HTML)||t?.getData(r.TEXT_PLAIN);if(t&&i&&""!==(0,c.trim)(i)){let s=this.j.e.fire("processPaste",e,i,(0,d.getAllTypes)(t));void 0!==s&&(i=s),((0,c.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,c.isString)(t))switch(this.j.buffer.set(r.CLIPBOARD_ID,t),i){case r.INSERT_CLEAR_HTML:t=(0,c.cleanFromWord)(t);break;case r.INSERT_ONLY_TEXT:t=(0,c.stripTags)(t,this.j.ed,new Set(this.j.o.pasteExcludeStripTags));break;case r.INSERT_AS_TEXT:t=(0,c.htmlspecialchars)(t);break;default:{let s=this.j.e.fire("onCustomPasteHTMLOption",i,t,e);"string"==typeof s&&(t=s)}}(0,d.pasteInsertHtml)(e,this.j,t)}onProcessPasteReplaceNl2Br(e,t,i){if(i===r.TEXT_PLAIN+";"&&!(0,c.isHTML)(t))return(0,c.nl2br)(t)}constructor(...e){super(...e),(0,s._)(this,"pasteStack",new c.LimitedStack(20)),(0,s._)(this,"_isDialogOpened",!1)}}(0,o.__decorate)([n.autobind],u.prototype,"onPaste",null),(0,o.__decorate)([n.autobind],u.prototype,"onProcessPasteReplaceNl2Br",null),l.pluginSystem.add("paste",u)},23599(e,t,i){"use strict";i.d(t,{position:()=>function e(t,i,o=!1){let r=t.getBoundingClientRect(),n=r.left,a=r.top;if((0,s.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(t)&&!o){let{left:t,top:s}=e(i.iframe,i,!0);n+=t,a+=s}return{left:Math.round(n),top:Math.round(a),width:Math.round(t.offsetWidth??r.width),height:Math.round(t.offsetHeight??r.height)}}});var s=i(24497)},23602(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg>'},24268(e,t,i){"use strict";var s=i(29434),o=i(5266),r=i(49989),n=i.n(r);o.Config.prototype.spellcheck=!1,s.Icon.set("spellcheck",n()),o.Config.prototype.controls.spellcheck={isActive:e=>e.o.spellcheck,icon:n(),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},24475(e,t,i){"use strict";i.d(t,{Storage:()=>l});var s=i(25045),o=i(57821),r=i(59807),n=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 e&&(0,r.canUsePersistentStorage)()&&(i=new r.LocalStorageProvider(a+t)),i||(i=new n.MemoryStorageProvider),new l(i,t)}constructor(e,t){(0,s._)(this,"provider",void 0),(0,s._)(this,"prefix",void 0),this.provider=e,this.prefix=a,t&&(this.prefix+=t)}}},24497(e,t,i){"use strict";i.d(t,{isJoditObject:()=>o});var s=i(91565);function o(e){return!!(e&&e instanceof Object&&(0,s.isFunction)(e.constructor)&&("undefined"!=typeof Jodit&&e instanceof Jodit||e.isJodit))}},24641(e,t,i){"use strict";i.d(t,{UICheckbox:()=>l});var s=i(25045),o=i(31635),r=i(84839),n=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"))),n.Dom.after(this.nativeInput,e)):n.Dom.safeRemove(e)}constructor(e,t){super(e,{...t,type:"checkbox"}),(0,s._)(this,"state",{...l.defaultState}),Object.assign(this.state,t)}}(0,s._)(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)},24735(e,t,i){"use strict";i.d(t,{Async:()=>g});var s=i(25045),o=i(81937),r=i(61077),n=i(72068),a=i(91565),l=i(72412),c=i(62101),h=i(52100),d=i(85932),u=i(18303),p=i(28712),m=i(14228);class g{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let s={};(0,u.isVoid)(t)&&(t=0),(0,l.isNumber)(t)||(t=(s=t).timeout||0),s.label&&this.clearLabel(s.label);let o=(0,r.setTimeout)(e,t,...i),n=s.label||o;return this.timers.set(n,o),this.__callbacks.set(n,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 s=0,o=!1,l=[],d=(...t)=>{if(!o){s=0;let i=e(...t);if(o=!0,l.length){let e=()=>{l.forEach(e=>e()),l.length=0};(0,h.isPromise)(i)?i.finally(e):e()}}},u=(...n)=>{o=!1,t?(!s&&i&&d(...n),(0,r.clearTimeout)(s),s=this.setTimeout(()=>d(...n),(0,a.isFunction)(t)?t():t),this.timers.set(e,s)):d(...n)};return(0,c.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{l.push(e)}).catch(e=>{if((0,n.isAbortError)(e))return null;throw e});return u(...e),t}:u}microDebounce(e,t=!1){let i,s=!1,o=!0;return(...r)=>{if(i=r,s){o=!0;return}o=!0,t&&(o=!1,e(...i)),s=!0,this.__queueMicrotaskNative(()=>{s=!1,!this.isDestructed&&o&&e(...i)})}}throttle(e,t,i=!1){let s=null,o,r,n;return(...i)=>{if(o=!0,n=i,!t)return void e(...n);s||(r=()=>{o?(e(...n),o=!1,s=this.setTimeout(r,(0,a.isFunction)(t)?t():t),this.timers.set(r,s)):s=null})()}}promise(e){let t=()=>{},i=new Promise((i,s)=>{t=()=>s((0,m.abort)("Abort async")),this.promisesRejections.add(t),e(i,s)});return i.finally||"undefined"==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 s=globalThis.scheduler.postTask(e,{...t,signal:i.signal});return s.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),s}return this.promise((s,o)=>{let r=this.setTimeout(()=>{try{s(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(){(0,s._)(this,"timers",new Map),(0,s._)(this,"__callbacks",new Map),(0,s._)(this,"__queueMicrotaskNative",queueMicrotask?.bind(window)??Promise.resolve().then.bind(Promise.resolve())),(0,s._)(this,"promisesRejections",new Set),(0,s._)(this,"__requestsIdle",new Set),(0,s._)(this,"__controllers",new Set),(0,s._)(this,"__requestsRaf",new Set),(0,s._)(this,"__requestIdleCallbackNative",window.requestIdleCallback?.bind(window)??((e,t)=>{let i=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-i))})},t?.timeout??1)})),(0,s._)(this,"__cancelIdleCallbackNative",window.cancelIdleCallback?.bind(window)??(e=>{this.clearTimeout(e)})),(0,s._)(this,"isDestructed",!1)}}},24772(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg>'},24968(e,t,i){"use strict";i.d(t,{derive:()=>o});var s=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],n=Object.getOwnPropertyDescriptor(o.prototype,t);null!=n&&(0,s.isFunction)(n.value)&&!(0,s.isFunction)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return n.value.call(this,...e)}})}}}}},25045(e,t,i){"use strict";function s(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,{_:()=>s})},25222(e,t,i){"use strict";i.d(t,{Storage:()=>s.Storage}),i(59807);var s=i(24475)},25501(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg>'},25974(e,t,i){"use strict";i.d(t,{makeInstance:()=>r});var s=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(!s.IS_PROD)throw e}return null}},26106(e,t,i){"use strict";i.d(t,{checkJoinNeighbors:()=>n});var s=i(81937),o=i(23211),r=i(15200);function n(e,t,i){let r=t,n=r;for(;r&&!o.Dom.findNotEmptySibling(r,i)&&r.parentElement!==e.editor;)n=r=r.parentElement;if(o.Dom.isElement(n)&&o.Dom.isContentEditable(n,e.editor)){let r=o.Dom.findNotEmptySibling(n,i);if(r&&(((e,t,i,r)=>{let n=o.Dom.isTag(i,s.LIST_TAGS),l=o.Dom.isTag(t,s.LIST_TAGS),c=(e,t)=>t?e.firstElementChild:e.lastElementChild;return l?(i=e.createInside.element(e.o.enterBlock),o.Dom.before(t,i),a(e,c(t,r),i,r)):!!i&&!!n&&!l&&a(e,t,c(i,!r),r)})(e,n,r,i)||a(e,n,r,i)))return e.s.setCursorBefore(t),!0}return!1}function a(e,t,i,s){if(t&&o.Dom.isElement(i)){o.Dom.moveContent(t,i,!s,(0,r.getMoveFilter)(e));let n=t;for(;n&&n!==e.editor&&o.Dom.isEmpty(n);){let e=n.parentElement;o.Dom.safeRemove(n),n=e}return!0}return!1}},26136(e,t,i){"use strict";i.d(t,{browser:()=>s});let s=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}},26633(e,t,i){"use strict";i.d(t,{readAlign:()=>o});var s=i(80991);function o(e,t){e.style.cssFloat&&-1!==["left","right"].indexOf(e.style.cssFloat.toLowerCase())?t.align=(0,s.css)(e,"float"):"block"===(0,s.css)(e,"display")&&"auto"===e.style.marginLeft&&"auto"===e.style.marginRight?t.align="center":t.align=""}},27137(e,t,i){"use strict";i.d(t,{UIImagePropertiesForm:()=>p});var s=i(25045),o=i(31635),r=i(84839),n=i(91672),a=i(65946),l=i(63468),c=i(29434),h=i(15753),d=i(29596),u=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>
139
+ `,{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec(e,t,{control:i}){if(!(0,s.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,s.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t)},tooltip:"Add row"},{name:"delete",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec(e,t,{control:i}){if(!(0,s.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t),e.e.fire("hidePopup")},tooltip:"Delete"}]},17918(e){e.exports={aiAssistant:"AI Assistant",aiCommands:"AI Commands","AI Assistant":"AI Assistant",Prompt:"Prompt","Ask AI to improve generated text":"Ask AI to improve generated text",Submit:"Submit"}},17995(e){e.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg>'},18073(e,t,i){"use strict";i.d(t,{size:()=>o});var s=i(28686);function o(e){return(0,s.isString)(e)||(0,s.isArray)(e)?e.length:(0,s.isPlainObject)(e)?Object.keys(e).length:0}},18080(e,t,i){"use strict";i.d(t,{i18n:()=>c,sprintf:()=>l});var s=i(81937),o=i(85932),r=i(99436),n=i(93640),a=i(5266);let l=(e,t)=>{if(!t||!t.length)return e;let i=/%([sd])/g,s=i.exec(e),o=e,r=0;for(;s&&void 0!==t[r];)o=o.replace(s[0],t[r].toString()),r+=1,s=i.exec(e);return o};function c(e,t,i){if(!(0,o.isString)(e))throw(0,n.error)("i18n: Need string in first argument");if(!e.length)return e;let c=!!i?.debugLanguage,h={},d=e=>t&&t.length?l(e,t):e,u=(0,n.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),p=(0,n.defaultLanguage)(i?.language,u),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 s=(0,r.ucfirst)(e);if((0,o.isString)(t[s]))return d(t[s])};void 0!==s.lang[p]?h=s.lang[p]:c||(h=void 0!==s.lang[u]?s.lang[u]:s.lang.en);let g=i?.i18n;if(g&&g[p]){let e=m(g[p]);if(e)return e}return m(h)||(!c&&s.lang.en&&(0,o.isString)(s.lang.en[e])&&s.lang.en[e]?d(s.lang.en[e]):c?"{"+e+"}":(!s.IS_PROD,d(e)))}},18210(e,t,i){"use strict";var s=i(31635),o=i(81937),r=i(84839),n=i(23211),a=i(28077),l=i(91206);class c extends l.Plugin{afterInit(e){}beforeDestruct(e){}onKeyDownArrow(e){if(e.key!==o.KEY_RIGHT||!this.j.selection.isCollapsed())return;let{endContainer:t,endOffset:i}=this.j.selection.range;if(n.Dom.isText(t)&&t.nodeValue?.length===i){let{parentNode:e}=t;n.Dom.isInlineBlock(e)&&!n.Dom.findNotEmptyNeighbor(e,!1,this.j.editor)&&n.Dom.after(e,this.j.createInside.text(o.NBSP_SPACE))}}}(0,s.__decorate)([(0,r.watch)(":keydown")],c.prototype,"onKeyDownArrow",null),a.pluginSystem.add("keyArrowOutside",c)},18272(e,t,i){"use strict";i.d(t,{makeContextMenu:()=>n,makeDataProvider:()=>r});var s=i(67399),o=i(17780);function r(e,t){return new o.default(e,t)}function n(e){return new s.ContextMenu(e)}},18303(e,t,i){"use strict";function s(e){return null==e}i.d(t,{isVoid:()=>s})},18377(e,t,i){"use strict";i.d(t,{normalizePath:()=>o});var s=i(4040);let o=(...e)=>e.filter(e=>(0,s.trim)(e).length).map((t,i)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),i&&(t=t.replace(/^\//,"")),i!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/")},18380(e,t,i){"use strict";i.d(t,{readMargins:()=>o});var s=i(74264);function o(e,t,i){let o=!0,r=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(i=>{let n=e.style.getPropertyValue((0,s.kebabCase)(i));if(!n){r=!0,t[i]=0;return}/^[0-9]+(px)?$/.test(n)&&(n=parseInt(n,10)),t[i]=n,(r&&t[i]||o&&"marginTop"!==i&&t[i]!==t.marginTop)&&(o=!1)}),i.marginIsLocked=o}},18605(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg>'},18762(e,t,i){"use strict";i.d(t,{FileSelectorWidget:()=>a});var s=i(23211),o=i(65946),r=i(4099),n=i(89636);let a=(e,t,i,a,c=!0)=>{let h,d=[],u=e.o.uploader;if(t.upload&&(u.url||u.insertImageAsBase64URI||u.customUploadFunction)){let i=e.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${e.i18n(c?"Drop image":"Drop file")}</strong><span><br>${e.i18n("or click")}</span><input type="file" accept="${c?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);e.uploader.bind(i,i=>{let s=(0,o.isFunction)(t.upload)?t.upload:u.defaultHandlerSuccess;(0,o.isFunction)(s)&&s.call(e,i),e.e.fire("closeAllPopups")},t=>{e.message.error(t.message),e.e.fire("closeAllPopups")}),d.push({icon:"upload",name:"Upload",content:i})}if(t.filebrowser&&(e.o.filebrowser.ajax.url||e.o.filebrowser.items.url)&&d.push({icon:"folder",name:"Browse",content(){a&&a(),t.filebrowser&&e.filebrowser.open(t.filebrowser,c)}}),t.url){let n=new r.UIButton(e,{type:"submit",variant:"primary",text:"Insert"}),a=new r.UIForm(e,[new r.UIInput(e,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new r.UIInput(e,{name:"text",label:"Alternative text"}),new r.UIBlock(e,[n])]);h=null,i&&!s.Dom.isText(i)&&!s.Dom.isComment(i)&&(s.Dom.isTag(i,"img")||(0,o.$$)("img",i).length)&&(h="IMG"===i.tagName?i:(0,o.$$)("img",i)[0],l(a.container,"input[name=url]",(0,o.attr)(h,"src")),l(a.container,"input[name=text]",(0,o.attr)(h,"alt")),n.state.text="Update"),i&&s.Dom.isTag(i,"a")&&(l(a.container,"input[name=url]",(0,o.attr)(i,"href")),l(a.container,"input[name=text]",(0,o.attr)(i,"title")),n.state.text="Update"),a.onSubmit(i=>{(0,o.isFunction)(t.url)&&t.url.call(e,i.url,i.text)}),d.push({icon:"link",name:"URL",content:a.container})}return(0,n.TabsWidget)(e,d)};function l(e,t,i){let s=e.querySelector(t);return s?(i&&(s.value=i),s.value):""}},18855(e,t,i){"use strict";i.d(t,{Plugin:()=>l});var s=i(25045),o=i(31635),r=i(16964),n=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();(0,a.isJoditObject)(e)&&this.buttons?.forEach(t=>{e?.unregisterButton(t)}),this.beforeDestruct(this.j),super.destruct()}constructor(e){super(e),(0,s._)(this,"buttons",[]),(0,s._)(this,"hasStyle",!1),(0,s._)(this,"styles",void 0),(0,s._)(this,"__inited",!1),e.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}(0,s._)(l,"requires",[]),(0,o.__decorate)([n.autobind],l.prototype,"__afterPluginSystemInit",null),(0,o.__decorate)([n.autobind],l.prototype,"__afterInit",null),(0,o.__decorate)([n.autobind],l.prototype,"__beforeDestruct",null)},18869(e,t,i){"use strict";i.d(t,{EventHandlersStore:()=>a,defaultNameSpace:()=>n});var s=i(25045),o=i(88475),r=i(28712);let n="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 s=this.get(e,t);if(s){for(let e=0;e<s.length;e+=1)if(s[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,o.toArray)(this.__store.keys());return e?t.filter(e=>e!==n):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,s=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),s?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,s._)(this,"__store",new Map)}}},18929(e,t,i){"use strict";var s=i(81937),o=i(29434),r=i(5266),n=i(9103),a=i.n(n);r.Config.prototype.beautifyHTML=!s.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:s.MODE_SPLIT,exec(e){e.toggleMode()},isActive:e=>e.getRealMode()===s.MODE_SOURCE,tooltip:"Change mode"}},18993(e,t,i){"use strict";var s=i(29434),o=i(5266),r=i(81875),n=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;"],s.Icon.set("symbols",n()),o.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(e,t,i){let s=e.e.fire("generateSpecialCharactersTable.symbols");if(s){if(e.o.usePopupForSpecialCharacters){let t=e.c.div();return t.classList.add("jodit-symbols"),t.appendChild(s),e.e.on(s,"close_dialog",i),t}e.alert(s,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);let t=s.querySelector("a");t&&t.focus()}}}},19147(e,t,i){"use strict";i.d(t,{NUMBER_FIELDS_REG:()=>a,normalizeCssNumericValue:()=>l,normalizeCssValue:()=>c});var s=i(70222),o=i(18303),r=i(93387),n=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,s.isNumeric)(t.toString())?parseInt(t.toString(),10)+"px":t}function c(e,t){if("font-weight"===(0,n.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,s.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}},19213(e,t,i){"use strict";i.d(t,{clearSelectionWrappers:()=>c,clearSelectionWrappersFromHTML:()=>h,getSelectionWrappers:()=>l,highlightTextRanges:()=>a});var s=i(81937),o=i(23211),r=i(28723);let n="jd-tmp-selection";function a(e,t,i,r,a){if(null==t.startContainer.nodeValue||null==t.endContainer.nodeValue||((e,t,i)=>{if(e.o.search.useCustomHighlightAPI&&s.globalWindow&&void 0!==s.globalWindow.Highlight){let s=new Highlight(...[t,...i].map(t=>{let i=e.selection.createRange();return i.setStart(t.startContainer,t.startOffset),i.setEnd(t.endContainer,t.endOffset),i}));return CSS.highlights.clear(),CSS.highlights.set("jodit-search-result",s),i.length=0,!0}return!1})(e,t,i))return;let l=r.element("span",{[n]:!0});o.Dom.markTemporary(l),((e,t,i)=>{let s=e.startContainer.nodeValue,r=0;if(0!==e.startOffset){let t=i.text(s.substring(0,e.startOffset));e.startContainer.nodeValue=s.substring(e.startOffset),o.Dom.before(e.startContainer,t),e.startContainer===e.endContainer&&(r=e.startOffset,e.endOffset-=r),e.startOffset=0}let n=e.endContainer.nodeValue;if(e.endOffset!==n.length){let s=i.text(n.substring(e.endOffset));for(let i of(e.endContainer.nodeValue=n.substring(0,e.endOffset),o.Dom.after(e.endContainer,s),t))if(i.startContainer===e.endContainer)i.startContainer=s,i.startOffset=i.startOffset-e.endOffset-r,i.endContainer===e.endContainer&&(i.endContainer=s,i.endOffset=i.endOffset-e.endOffset-r);else break;e.endOffset=e.endContainer.nodeValue.length}})(t,i,r);let c=t.startContainer;do{var h;if(!c||(o.Dom.isText(c)&&(h=c.parentNode,!(o.Dom.isElement(h)&&h.hasAttribute(n)))&&o.Dom.wrap(c,l.cloneNode(),r),c===t.endContainer))break;let e=c.firstChild||c.nextSibling;if(!e){for(;c&&!c.nextSibling&&c!==a;)c=c.parentNode;e=c?.nextSibling}c=e}while(c&&c!==a)}function l(e){return(0,r.$$)(`[${n}]`,e)}function c(e){l(e.editor).forEach(e=>o.Dom.unwrap(e)),e.o.search.useCustomHighlightAPI&&s.globalWindow&&void 0!==s.globalWindow.Highlight&&CSS.highlights.clear()}function h(e){return e.replace(RegExp(`<span[^>]+${n}[^>]+>(.*?)</span>`,"g"),"$1")}},19549(e,t,i){"use strict";i.d(t,{getSuitParent:()=>function e(t,i,n){let{parentNode:a}=i;return a===n||!s.Dom.isHTMLElement(a)||s.Dom.next(i,o.isNormalNode,a)||s.Dom.prev(i,o.isNormalNode,a)?null:t.isElementCommit&&t.elementIsBlock&&!s.Dom.isBlock(a)?e(t,a,n):(0,r.isSuitElement)(t,a,!1)&&(!s.Dom.isBlock(a)||t.elementIsBlock)?a:t.isElementCommit&&!s.Dom.isBlock(a)?e(t,a,n):null}});var s=i(23211),o=i(83653),r=i(73019)},20784(e){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg>'},21132(e,t,i){"use strict";i.d(t,{applyMargin:()=>r});var s=i(80991),o=i(10808);function r(e,t,i,r,n,a,l){let c=[t,i,r,n],h=(e,t)=>{let i=(0,s.css)(a,e),r=(0,o.normalSizeToString)(t);i.toString()!==r.toString()&&(0,s.css)(a,e,r)};if(l)h("margin",t);else{let e=["margin-top","margin-right","margin-bottom","margin-left"];c.forEach((t,i)=>{h(e[i],t)})}}},21917(e){e.exports='<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg>'},22227(e){e.exports='<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg>'},22289(e,t,i){"use strict";function s(e){return"boolean"==typeof e}i.d(t,{isBoolean:()=>s})},22533(e,t,i){"use strict";i.d(t,{ToolbarButton:()=>g});var s=i(25045),o=i(31635),r=i(69364),n=i(84839),a=i(27795),l=i(65946),c=i(59400),h=i(15982),d=i(29434),u=i(51116),p=i(42573),m=i(4274);class g extends c.UIButton{className(){return"ToolbarButton"}get toolbar(){return this.closest(p.ToolbarCollection)}update(){let{control:e,state:t}=this,i=this.closest(p.ToolbarCollection);if(!i)return;let s=e.value?.(i.jodit,this);void 0!==s&&(t.value=s),t.disabled=this.__calculateDisabledStatus(i),t.activated=this.__calculateActivatedStatus(i),e.update?.(i.jodit,this)}__calculateActivatedStatus(e){return(!(0,l.isJoditObject)(this.j)||!!this.j.editorIsActive)&&(!!this.control.isActive?.(this.j,this)||!!(e&&e.shouldBeActive(this)))}__calculateDisabledStatus(e){return!!(this.j.o.disabled||this.j.o.readonly&&(!this.j.o.activeButtonsInReadOnly||!this.j.o.activeButtonsInReadOnly.includes(this.control.name))||this.control.isDisabled?.(this.j,this))||!!(e&&e.shouldBeDisabled(this))}onChangeActivated(){(0,l.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,l.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,l.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){let e=this.componentName,t=this.j.c.span(e),i=super.createContainer();(0,l.attr)(t,"role","listitem"),i.classList.remove(e),i.classList.add(e+"__button"),Object.defineProperty(i,"component",{value:this}),t.appendChild(i);let s=this.j.c.fromHTML(`<span role="trigger" class="${e}__trigger">${d.Icon.get("chevron")}</span>`);return i.appendChild(s),t}focus(){this.container.querySelector("button")?.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):a.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let e=this.state.disabled?"disabled":null;(0,l.attr)(this.trigger,"disabled",e),(0,l.attr)(this.button,"disabled",e),(0,l.attr)(this.container,"disabled",e)}__initFromControl(){let{control:e,state:t}=this;this.updateSize(),t.name=e.name;let{textIcons:i}=this.j.o;if(!0===i||(0,l.isFunction)(i)&&i(e.name)||e.template)t.icon=(0,c.UIButtonState)().icon,t.text=e.text||e.name;else{if(e.iconURL)t.icon.iconURL=e.iconURL;else{let i=e.icon||e.name;t.icon.name=d.Icon.exists(i)||this.j.o.extraIcons?.[i]?i:""}e.iconURL||t.icon.name||(t.text=e.text||e.name)}e.tooltip&&(t.tooltip=this.j.i18n((0,l.isFunction)(e.tooltip)?e.tooltip(this.j,e,this):e.tooltip)),t.hasTrigger=!!(e.list||e.popup&&e.exec)}onTriggerClick(e){if(this.openedPopup)return void this.__closePopup();let{control:t}=this;if(e.buffer={actionTrigger:this},t.list)return this.__openControlList(t);if((0,l.isFunction)(t.popup)){let e=this.openPopup();e.parentElement=this;try{if(!1!==this.j.e.fire((0,l.camelCase)(`before-${t.name}-open-popup`),this.target,t,e)){let i=this.toolbar?.getTarget(this)??this.target??null,s=t.popup(this.j,i,this.__closePopup,this);s?e.setContent((0,l.isString)(s)?this.j.c.fromHTML(s):s).open(()=>(0,l.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(e){throw this.__closePopup(),e}this.j.e.fire((0,l.camelCase)(`after-${t.name}-open-popup`),e.container)}}__openControlList(e){let t=this.jodit.options.controls??{},i=e=>(0,h.findControlType)(e,t),s=e.list,o=this.openPopup(),r=(0,m.makeCollection)(this.j);o.parentElement=this,r.parentElement=o,r.mode="vertical";let n=(t,s)=>{let o;if((0,l.isString)(s)&&i(s))return{name:s.toString(),...i(s)};if((0,l.isString)(t)&&i(t))return{name:t.toString(),...i(t),..."object"==typeof s?s:{}};o=t,(0,l.isPlainObject)(o)&&"title"in o&&"value"in o&&(s=t.value,t=t.title);let{childTemplate:r}=e,n={name:t.toString(),template:r&&((e,t,i)=>r(e,t,i,this)),exec:e.childExec?(t,i,s)=>e.childExec?.(t,i,{...s,parentControl:e}):e.exec,data:e.data,command:e.command,isActive:e.isChildActive,value:e.value,isDisabled:e.isChildDisabled,mode:e.mode,args:[...e.args?e.args:[],t,s]};return(0,l.isString)(s)&&(n.text=s),n};r.build((0,l.isArray)(s)?s.map(n):(0,l.keys)(s,!1).map(e=>n(e,s[e])),this.target),o.setContent(r).open(()=>(0,l.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(e){this.openedPopup&&(e&&a.Dom.isNode(e.target)&&(a.Dom.isOrContains(this.container,e.target)||this.openedPopup.isOwnClick(e))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new u.Popup(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}__closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null)}onClick(e){let{control:t}=this;if((0,l.isFunction)(t.exec)){let i=this.toolbar?.getTarget(this)??this.target??null,s=t.exec(this.j,i,{control:t,originalEvent:e,button:this});if(!1!==s&&!0!==s&&(this.j?.e?.fire("synchro"),this.parentElement&&this.parentElement.update(),this.j?.e?.fire("closeAllPopups afterExec")),!1!==s)return}return t.list?this.__openControlList(t):(0,l.isFunction)(t.popup)?this.onTriggerClick(e):void((t.command||t.name)&&((0,l.call)((0,l.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),t.command||t.name,!1,t.args&&t.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}constructor(e,t,i=null){super(e),(0,s._)(this,"control",void 0),(0,s._)(this,"target",void 0),(0,s._)(this,"state",void 0),(0,s._)(this,"trigger",void 0),(0,s._)(this,"openedPopup",void 0),this.control=t,this.target=i,this.state={...(0,c.UIButtonState)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;let o=this.getElm("button");(0,l.assert)(o,"Element button should exists"),this.button=o,Object.defineProperty(o,"component",{value:this,configurable:!0});let n=this.getElm("trigger");(0,l.assert)(n,"Element trigger should exists"),this.trigger=n,n.remove(),e.e.on([this.button,this.trigger],"mousedown",e=>e.preventDefault()),this.onAction(this.onClick),this.hookStatus(r.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),t.mods&&Object.keys(t.mods).forEach(e=>{t.mods&&this.setMod(e,t.mods[e])})}}(0,o.__decorate)([n.cacheHTML],g.prototype,"createContainer",null),(0,o.__decorate)([(0,n.watch)("state.hasTrigger",{immediately:!1})],g.prototype,"onChangeHasTrigger",null),(0,o.__decorate)([(0,n.watch)("trigger:click")],g.prototype,"onTriggerClick",null),(0,o.__decorate)([n.autobind],g.prototype,"onOutsideClick",null),(0,o.__decorate)([n.autobind],g.prototype,"__closePopup",null),g=(0,o.__decorate)([n.component],g)},22852(e,t,i){"use strict";i.d(t,{stripTags:()=>function e(t,i=document,h=null){let d=i.createElement("div");return(0,o.isString)(t)?d.innerHTML=t:d.appendChild(t),(0,n.$$)("*",d).forEach(t=>{let o=t.parentNode;if(!o)return;if(h&&s.Dom.isTag(t,h)){let o=t.nodeName.toLowerCase(),r=s.Dom.isTag(t,c)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${e(t.innerHTML,i,h)}%%%/jodit-${o}%%%`;s.Dom.before(t,i.createTextNode(r)),s.Dom.safeRemove(t);return}if(s.Dom.isTag(t,l))return void s.Dom.safeRemove(t);if(!s.Dom.isTag(t,a))return;let r=t.nextSibling;!(s.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,s)=>`<${t?"/":""}${s}>`)}});var s=i(23211),o=i(85932),r=i(4040),n=i(93640);let a=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),l=new Set(["script","style"]),c=new Set(["br","hr","input"])},22980(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(27795),a=i(28077),l=i(85932),c=i(91206);i(86038);class h extends c.Plugin{afterInit(e){"br"!==e.o.enter.toLowerCase()&&e.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}beforeDestruct(e){e.e.off(".wtn")}postProcessSetEditorValue(){let{jodit:e}=this;if(!e.isEditorMode())return;let t=e.editor.firstChild,i=!1;for(;t;){if(t=((e,t)=>{let i=e,s=e;do if(n.Dom.isElement(s)&&n.Dom.isLeaf(s)&&!n.Dom.isList(s.parentElement)){let e=n.Dom.findNotEmptySibling(s,!1);n.Dom.isTag(i,"ul")?i.appendChild(s):i=n.Dom.wrap(s,"ul",t.createInside),s=e}else break;while(s)return i})(t,e),this.isSuitableStart(t)){i||e.s.save(),i=!0;let s=e.createInside.element(e.o.enter);for(n.Dom.before(t,s);t&&this.isSuitable(t);){let e=t.nextSibling;s.appendChild(t),t=e}s.normalize(),t=s}t=t&&t.nextSibling}i&&(e.s.restore(),"afterInit"===e.e.current&&e.e.fire("internalChange"))}preprocessInput(){let{jodit:e}=this,t="afterInit"===e.e.current;if(!e.isEditorMode()||e.editor.firstChild||!e.o.wrapNodes.emptyBlockAfterInit&&t)return;let i=e.createInside.element(e.o.enter),s=e.createInside.element("br");n.Dom.append(i,s),n.Dom.append(e.editor,i),e.s.isFocused()&&e.s.setCursorBefore(s),e.e.fire("internalChange")}constructor(...e){super(...e),(0,s._)(this,"isSuitableStart",e=>n.Dom.isText(e)&&(0,l.isString)(e.nodeValue)&&(/[^\s]/.test(e.nodeValue)||e.parentNode?.firstChild===e&&this.isSuitable(e.nextSibling))||this.isNotWrapped(e)&&!n.Dom.isTemporary(e)),(0,s._)(this,"isSuitable",e=>n.Dom.isText(e)||this.isNotWrapped(e)),(0,s._)(this,"isNotWrapped",e=>n.Dom.isElement(e)&&!(n.Dom.isBlock(e)||n.Dom.isTag(e,this.j.o.wrapNodes.exclude)))}}(0,o.__decorate)([r.autobind],h.prototype,"postProcessSetEditorValue",null),(0,o.__decorate)([r.autobind],h.prototype,"preprocessInput",null),a.pluginSystem.add("wrapNodes",h)},23112(e,t,i){"use strict";function s(e){let t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],s=new Uint8Array(new ArrayBuffer(t.length));for(let e=0;e<t.length;e+=1)s[e]=t.charCodeAt(e);return new Blob([s.buffer],{type:i})}i.d(t,{dataURItoBlob:()=>s})},23175(e,t,i){"use strict";i.d(t,{isMarker:()=>r});var s=i(81937),o=i(23211);function r(e){return o.Dom.isNode(e)&&o.Dom.isTag(e,"span")&&e.hasAttribute("data-"+s.MARKER_CLASS)}},23183(e,t,i){"use strict";i.d(t,{Elms:()=>o});var s=i(88475);class o{getElm(e){return this.container.querySelector("."+this.getFullElName(e))}getElms(e){return(0,s.toArray)(this.container.querySelectorAll("."+this.getFullElName(e)))}}},23211(e,t,i){"use strict";i.d(t,{Dom:()=>l});var s=i(81937),o=i(88475),r=i(28686),n=i(4040),a=i(93640);class l{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let s,o=e;i.s.save();let r=!1;do r=!1,(s=o.nextSibling)&&!l.isBlock(s)&&!l.isTag(s,"br")&&(r=!0,o=s);while(r)return l.__wrapElements(t,i,e,o)}static __wrapElements(e,t,i,s){let o=(0,r.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(o,i);let n=i;for(;n&&(n=i.nextSibling,o.appendChild(i),i!==s&&n);)i=n;return t.s.restore(),o}static wrapInline(e,t,i){let s,o=e,r=e;i.s.save();let n=!1;do n=!1,(s=o.previousSibling)&&!l.isBlock(s)&&(n=!0,o=s);while(n)do n=!1,(s=r.nextSibling)&&!l.isBlock(s)&&(n=!0,r=s);while(n)return l.__wrapElements(t,i,o,r)}static wrap(e,t,i){let s=(0,r.isString)(t)?i.element(t):t;if(l.isNode(e)){if(!e.parentNode)throw(0,a.error)("Element should be in DOM");e.parentNode.insertBefore(s,e),s.appendChild(e)}else{let t=e.extractContents();e.insertNode(s),s.appendChild(t)}return s}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);l.safeRemove(e)}}static between(e,t,i){let s=e;for(;s&&s!==t&&!(e!==s&&i(s));){let e=s.firstChild||s.nextSibling;if(!e){for(;s&&!s.nextSibling;)s=s.parentNode;e=s?.nextSibling}s=e}}static replace(e,t,i,s=!1,n=!1){let c;if((0,r.isHTML)(t)&&((0,a.assert)(i,"Need create instance for new tag"),t=i.fromHTML(t)),(0,r.isString)(t)?((0,a.assert)(i,"Need create instance for new tag"),c=i.element(t)):c=t,!n)for(;e.firstChild;)c.appendChild(e.firstChild);return s&&l.isElement(e)&&l.isElement(c)&&(0,o.toArray)(e.attributes).forEach(e=>{c.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(c,e),c}static isEmptyTextNode(e){return l.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(s.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return l.each(e,e=>l.isEmptyTextNode(e))}static isContentEditable(e,t){return l.isNode(e)&&!l.closest(e,e=>l.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=s.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,r.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let o=e=>null==e.nodeValue||0===(0,n.trim)(e.nodeValue).length;return l.isText(e)?o(e):!(l.isElement(e)&&i(e))&&l.each(e,e=>{if(l.isText(e)&&!o(e)||l.isElement(e)&&i(e))return!1})}static isNode(e){return!!(e&&(0,r.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,r.isFunction)(e.appendChild))}static isCell(e){return l.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return l.isTag(e,s.LIST_TAGS)}static isLeaf(e){return l.isTag(e,"li")}static isImage(e){return l.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,r.isVoid)(e)&&"object"==typeof e&&l.isNode(e)&&s.IS_BLOCK.test(e.nodeName)}static isText(e){return!!(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return!!(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){return!!l.isNode(e)&&!!(e.ownerDocument?.defaultView&&e.nodeType===Node.ELEMENT_NODE)}static isFragment(e){return!!l.isNode(e)&&!!(e.ownerDocument?.defaultView&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(e){if(!l.isNode(e))return!1;let t=e.ownerDocument?.defaultView;return!!(t&&e instanceof t.HTMLElement)}static isInlineBlock(e){return l.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,a.css)(e,"display").toString())}static canSplitBlock(e){return!(0,r.isVoid)(e)&&l.isHTMLElement(e)&&l.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=e?.lastChild;if(!i)return null;do{if(t(i))return i;let s=i.lastChild;if(s||(s=i.previousSibling),!s&&i.parentNode!==e){do i=i.parentNode;while(i&&!i?.previousSibling&&i.parentNode!==e)s=i?.previousSibling}i=s}while(i)return null}static prev(e,t,i,s=!0){return l.find(e,t,i,!1,s)}static next(e,t,i,s=!0){return l.find(e,t,i,!0,s)}static prevWithClass(e,t){return l.prev(e,e=>l.isElement(e)&&e.classList.contains(t),e.parentNode)}static nextWithClass(e,t){return l.next(e,e=>l.isElement(e)&&e.classList.contains(t),e.parentNode)}static find(e,t,i,s=!0,o=!0){let r=this.nextGen(e,i,s,o),n=r.next();for(;!n.done;){if(t(n.value))return n.value;n=r.next()}return null}static*nextGen(e,t,i=!0,s=!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,s),r=r.parentNode}while(r&&r!==t)return null}static each(e,t,i=!0){let s=this.eachGen(e,i),o=s.next();for(;!o.done;){if(!1===t(o.value))return!1;o=s.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,s=!0){for(;t.length;){let o=t.pop();if(s){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,s="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){let e=l.findWithCurrent(r[o],t,r,s,o);if(e)return e}for(;r&&!r[s]&&r!==i;)r=r.parentNode;r&&r[s]&&r!==i&&(r=r[s])}while(r&&r!==i)return null}static findSibling(e,t=!0,i=e=>!l.isEmptyTextNode(e)){let s=l.sibling(e,t);for(;s&&!i(s);)s=l.sibling(s,t);return s&&i(s)?s:null}static findNotEmptySibling(e,t){return l.findSibling(e,t,e=>!l.isEmptyTextNode(e)&&!!(!l.isText(e)||e.nodeValue?.length&&(0,n.trim)(e.nodeValue)))}static findNotEmptyNeighbor(e,t,i){return(0,a.call)(t?l.prev:l.next,e,e=>!!(e&&(!(l.isText(e)||l.isComment(e))||(0,n.trim)(e?.nodeValue||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,s=!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&&s&&t(o)?o:null}static closest(e,t,i){let s,o=e=>e.toLowerCase();if((0,r.isFunction)(t))s=t;else if((0,r.isArray)(t)||(0,r.isSet)(t)){let e=(0,r.isSet)(t)?t:new Set(t.map(o));s=t=>!!(t&&e.has(o(t.nodeName)))}else s=e=>!!(e&&o(t)===o(e.nodeName));return l.up(e,s,i)}static furthest(e,t,i){let s=null,o=e?.parentElement;for(;o&&o!==i;)t(o)&&(s=o),o=o?.parentElement;return s}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 n=(e.ownerDocument||s.globalDocument).createDocumentFragment();(0,o.toArray)(e.childNodes).filter(e=>!!r(e)||(l.safeRemove(e),!1)).forEach(e=>{n.appendChild(e)}),i&&t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)}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=>l.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=l.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&l.isTag(e.startContainer,s.INSEPARABLE_TAGS)?l.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>l.isText(e)&&!e.nodeValue&&l.safeRemove(e))}static hide(e){e&&((0,a.dataBind)(e,"__old_display",e.style.display),e.style.display="none")}static show(e){if(!e)return;let t=(0,a.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(),s=e.tagName.toUpperCase();if(t instanceof Set)return t.has(i)||t.has(s);if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");return i===t||s===t}static markTemporary(e,t){return t&&(0,a.attr)(e,t),(0,a.attr)(e,s.TEMP_ATTR,!0),e}static isTemporary(e){return!!l.isElement(e)&&((0,r.isMarker)(e)||"true"===(0,a.attr)(e,s.TEMP_ATTR))}static replaceTemporaryFromString(e){return e.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(e){return(0,a.$$)(`[${s.TEMP_ATTR}]`,e)}constructor(){throw Error("Dom is static module")}}},23283(e,t,i){"use strict";function s(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(e+""))}i.d(t,{isNativeFunction:()=>s})},23422(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(23211),l=i(28077),c=i(65946),h=i(18855);i(38187);var d=i(54308);class u extends h.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,c.getDataTransfer)(e),i=[t?.getData(r.TEXT_PLAIN),t?.getData(r.TEXT_HTML),t?.getData(r.TEXT_RTF)];for(let t of i)if((0,c.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,c.getDataTransfer)(e),i=t?.getData(r.TEXT_HTML)||t?.getData(r.TEXT_PLAIN);if(t&&i&&""!==(0,c.trim)(i)){let s=this.j.e.fire("processPaste",e,i,(0,d.getAllTypes)(t));void 0!==s&&(i=s),((0,c.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,c.isString)(t))switch(this.j.buffer.set(r.CLIPBOARD_ID,t),i){case r.INSERT_CLEAR_HTML:t=(0,c.cleanFromWord)(t);break;case r.INSERT_ONLY_TEXT:t=(0,c.stripTags)(t,this.j.ed,new Set(this.j.o.pasteExcludeStripTags));break;case r.INSERT_AS_TEXT:t=(0,c.htmlspecialchars)(t);break;default:{let s=this.j.e.fire("onCustomPasteHTMLOption",i,t,e);"string"==typeof s&&(t=s)}}(0,d.pasteInsertHtml)(e,this.j,t)}onProcessPasteReplaceNl2Br(e,t,i){if(i===r.TEXT_PLAIN+";"&&!(0,c.isHTML)(t))return(0,c.nl2br)(t)}constructor(...e){super(...e),(0,s._)(this,"pasteStack",new c.LimitedStack(20)),(0,s._)(this,"_isDialogOpened",!1)}}(0,o.__decorate)([n.autobind],u.prototype,"onPaste",null),(0,o.__decorate)([n.autobind],u.prototype,"onProcessPasteReplaceNl2Br",null),l.pluginSystem.add("paste",u)},23599(e,t,i){"use strict";i.d(t,{position:()=>function e(t,i,o=!1){let r=t.getBoundingClientRect(),n=r.left,a=r.top;if((0,s.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(t)&&!o){let{left:t,top:s}=e(i.iframe,i,!0);n+=t,a+=s}return{left:Math.round(n),top:Math.round(a),width:Math.round(t.offsetWidth??r.width),height:Math.round(t.offsetHeight??r.height)}}});var s=i(24497)},23602(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg>'},24268(e,t,i){"use strict";var s=i(29434),o=i(5266),r=i(49989),n=i.n(r);o.Config.prototype.spellcheck=!1,s.Icon.set("spellcheck",n()),o.Config.prototype.controls.spellcheck={isActive:e=>e.o.spellcheck,icon:n(),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},24475(e,t,i){"use strict";i.d(t,{Storage:()=>l});var s=i(25045),o=i(57821),r=i(59807),n=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 e&&(0,r.canUsePersistentStorage)()&&(i=new r.LocalStorageProvider(a+t)),i||(i=new n.MemoryStorageProvider),new l(i,t)}constructor(e,t){(0,s._)(this,"provider",void 0),(0,s._)(this,"prefix",void 0),this.provider=e,this.prefix=a,t&&(this.prefix+=t)}}},24497(e,t,i){"use strict";i.d(t,{isJoditObject:()=>o});var s=i(91565);function o(e){return!!(e&&e instanceof Object&&(0,s.isFunction)(e.constructor)&&("undefined"!=typeof Jodit&&e instanceof Jodit||e.isJodit))}},24641(e,t,i){"use strict";i.d(t,{UICheckbox:()=>l});var s=i(25045),o=i(31635),r=i(84839),n=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"))),n.Dom.after(this.nativeInput,e)):n.Dom.safeRemove(e)}constructor(e,t){super(e,{...t,type:"checkbox"}),(0,s._)(this,"state",{...l.defaultState}),Object.assign(this.state,t)}}(0,s._)(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)},24735(e,t,i){"use strict";i.d(t,{Async:()=>g});var s=i(25045),o=i(81937),r=i(61077),n=i(72068),a=i(91565),l=i(72412),c=i(62101),h=i(52100),d=i(85932),u=i(18303),p=i(28712),m=i(14228);class g{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let s={};(0,u.isVoid)(t)&&(t=0),(0,l.isNumber)(t)||(t=(s=t).timeout||0),s.label&&this.clearLabel(s.label);let o=(0,r.setTimeout)(e,t,...i),n=s.label||o;return this.timers.set(n,o),this.__callbacks.set(n,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 s=0,o=!1,l=[],d=(...t)=>{if(!o){s=0;let i=e(...t);if(o=!0,l.length){let e=()=>{l.forEach(e=>e()),l.length=0};(0,h.isPromise)(i)?i.finally(e):e()}}},u=(...n)=>{o=!1,t?(!s&&i&&d(...n),(0,r.clearTimeout)(s),s=this.setTimeout(()=>d(...n),(0,a.isFunction)(t)?t():t),this.timers.set(e,s)):d(...n)};return(0,c.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{l.push(e)}).catch(e=>{if((0,n.isAbortError)(e))return null;throw e});return u(...e),t}:u}microDebounce(e,t=!1){let i,s=!1,o=!0;return(...r)=>{if(i=r,s){o=!0;return}o=!0,t&&(o=!1,e(...i)),s=!0,this.__queueMicrotaskNative(()=>{s=!1,!this.isDestructed&&o&&e(...i)})}}throttle(e,t,i=!1){let s=null,o,r,n;return(...i)=>{if(o=!0,n=i,!t)return void e(...n);s||(r=()=>{o?(e(...n),o=!1,s=this.setTimeout(r,(0,a.isFunction)(t)?t():t),this.timers.set(r,s)):s=null})()}}promise(e){let t=()=>{},i=new Promise((i,s)=>{t=()=>s((0,m.abort)("Abort async")),this.promisesRejections.add(t),e(i,s)});return i.finally||"undefined"==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 s=globalThis.scheduler.postTask(e,{...t,signal:i.signal});return s.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),s}return this.promise((s,o)=>{let r=this.setTimeout(()=>{try{s(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(){(0,s._)(this,"timers",new Map),(0,s._)(this,"__callbacks",new Map),(0,s._)(this,"__queueMicrotaskNative",queueMicrotask?.bind(window)??Promise.resolve().then.bind(Promise.resolve())),(0,s._)(this,"promisesRejections",new Set),(0,s._)(this,"__requestsIdle",new Set),(0,s._)(this,"__controllers",new Set),(0,s._)(this,"__requestsRaf",new Set),(0,s._)(this,"__requestIdleCallbackNative",window.requestIdleCallback?.bind(window)??((e,t)=>{let i=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-i))})},t?.timeout??1)})),(0,s._)(this,"__cancelIdleCallbackNative",window.cancelIdleCallback?.bind(window)??(e=>{this.clearTimeout(e)})),(0,s._)(this,"isDestructed",!1)}}},24772(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg>'},24968(e,t,i){"use strict";i.d(t,{derive:()=>o});var s=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],n=Object.getOwnPropertyDescriptor(o.prototype,t);null!=n&&(0,s.isFunction)(n.value)&&!(0,s.isFunction)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return n.value.call(this,...e)}})}}}}},25045(e,t,i){"use strict";function s(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,{_:()=>s})},25222(e,t,i){"use strict";i.d(t,{Storage:()=>s.Storage}),i(59807);var s=i(24475)},25501(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg>'},25974(e,t,i){"use strict";i.d(t,{makeInstance:()=>r});var s=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(!s.IS_PROD)throw e}return null}},26106(e,t,i){"use strict";i.d(t,{checkJoinNeighbors:()=>n});var s=i(81937),o=i(23211),r=i(15200);function n(e,t,i){let r=t,n=r;for(;r&&!o.Dom.findNotEmptySibling(r,i)&&r.parentElement!==e.editor;)n=r=r.parentElement;if(o.Dom.isElement(n)&&o.Dom.isContentEditable(n,e.editor)){let r=o.Dom.findNotEmptySibling(n,i);if(r&&(((e,t,i,r)=>{let n=o.Dom.isTag(i,s.LIST_TAGS),l=o.Dom.isTag(t,s.LIST_TAGS),c=(e,t)=>t?e.firstElementChild:e.lastElementChild;return l?(i=e.createInside.element(e.o.enterBlock),o.Dom.before(t,i),a(e,c(t,r),i,r)):!!i&&!!n&&!l&&a(e,t,c(i,!r),r)})(e,n,r,i)||a(e,n,r,i)))return e.s.setCursorBefore(t),!0}return!1}function a(e,t,i,s){if(t&&o.Dom.isElement(i)){o.Dom.moveContent(t,i,!s,(0,r.getMoveFilter)(e));let n=t;for(;n&&n!==e.editor&&o.Dom.isEmpty(n);){let e=n.parentElement;o.Dom.safeRemove(n),n=e}return!0}return!1}},26136(e,t,i){"use strict";i.d(t,{browser:()=>s});let s=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}},26633(e,t,i){"use strict";i.d(t,{readAlign:()=>o});var s=i(80991);function o(e,t){e.style.cssFloat&&-1!==["left","right"].indexOf(e.style.cssFloat.toLowerCase())?t.align=(0,s.css)(e,"float"):"block"===(0,s.css)(e,"display")&&"auto"===e.style.marginLeft&&"auto"===e.style.marginRight?t.align="center":t.align=""}},27137(e,t,i){"use strict";i.d(t,{UIImagePropertiesForm:()=>p});var s=i(25045),o=i(31635),r=i(84839),n=i(91672),a=i(65946),l=i(63468),c=i(29434),h=i(15753),d=i(29596),u=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>
140
140
  <div class="jodit-grid jodit-grid_xs-column">
141
141
  <div class="jodit_col-lg-2-5 jodit_col-xs-5-5">
142
142
  <div class="&__view-box">
@@ -249,8 +249,8 @@
249
249
  <div class="${t("footer")}"></div>
250
250
  <div class="${t("resizer")}">${m.Icon.get("resize_handler")}</div>
251
251
  </div>
252
- </div>`),"rtl"===this.options.direction&&(this.container.style.direction="rtl",this.container.setAttribute("dir","rtl")),this.o.zIndex&&(this.container.style.zIndex=this.o.zIndex.toString()),(0,u.attr)(this.container,"role","dialog"),Object.defineProperty(this.container,"component",{value:this}),this.setMod("theme",this.o.theme||"default").setMod("resizable",!!this.o.resizable);let i=this.getElm("panel");(0,p.assert)(null!=i,"Panel element does not exist");let o=this.getElm("resizer");(0,p.assert)(null!=o,"Resizer element does not exist");let r=this.getElm("header-title");(0,p.assert)(null!=r,"header-title element does not exist");let n=this.getElm("content");(0,p.assert)(null!=n,"Content element does not exist");let a=this.getElm("footer");(0,p.assert)(null!=a,"Footer element does not exist");let h=this.getElm("header-toolbar");(0,p.assert)(null!=h,"header-toolbar element does not exist"),this.dialog=i,this.resizer=o,this.dialogbox_header=r,this.dialogbox_content=n,this.dialogbox_footer=a,this.dialogbox_toolbar=h,(0,u.css)(this.dialog,{maxWidth:this.options.maxWidth,minHeight:this.options.minHeight,minWidth:this.options.minWidth});let g=this.getElm("header");g&&this.e.on(g,"pointerdown touchstart",this.__onHeaderMouseDown),this.e.on(this.resizer,"mousedown touchstart",this.__onResizerMouseDown);let f=c.pluginSystem.get("fullsize");if((0,d.isFunction)(f)&&f(this),this.e.on(this.container,"close_dialog",this.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){let e=this.getElm("overlay");(0,p.assert)(null!=e,"Overlay element does not exist"),this.e.on(e,"click",this.close)}}}(0,s._)(v,"defaultOptions",{...g.View.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0}),(0,o.__decorate)([a.autobind],v.prototype,"__onMouseUp",null),(0,o.__decorate)([a.autobind],v.prototype,"__onHeaderMouseDown",null),(0,o.__decorate)([a.autobind],v.prototype,"__onMouseMove",null),(0,o.__decorate)([a.autobind],v.prototype,"__onEsc",null),(0,o.__decorate)([a.autobind],v.prototype,"__onResizerMouseDown",null),(0,o.__decorate)([a.autobind],v.prototype,"close",null),(0,o.__decorate)([(0,a.hook)("ready")],v.prototype,"buildToolbar",null),v=(0,o.__decorate)([a.component],v)},77036(e,t,i){"use strict";i.d(t,{persistent:()=>r});var s=i(69364),o=i(31534);function r(e,t){e.hookStatus(s.STATUSES.ready,e=>{let i=(0,o.isViewObject)(e)?e:e.jodit,s=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get:()=>i.storage.get(s)??r,set(e){i.storage.set(s,e)}})})}},77213(e,t,i){"use strict";i.d(t,{ctrlKey:()=>s});let s=e=>{if("undefined"!=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}},77227(e,t,i){"use strict";var s=i(29434),o=i(5266),r=i(91115),n=i.n(r),a=i(1916),l=i.n(a);o.Config.prototype.aiAssistant={aiCommonPrefixPrompt:"",aiCommonSuffixPrompt:"",aiImproveWritingPrompt:"It needs to be refined for better clarity, coherence, and overall quality. Please enhance the writing style while keeping the original meaning and language intact.",aiMakeShorterPrompt:"Please condense this content to make it more concise, while preserving the key messages, language and information.",aiMakeLongerPrompt:"Expand on this content to provide more detail, depth, and richness, without diverging from the original message and language.",aiSimplifyLanguagePrompt:"The language used here needs to be simplified for easier understanding, without altering the core information and the original language.",aiSummarizePrompt:"Provide a brief summary of this content, capturing the essential points in a concise manner. Preserve the original language and meaning.",aiContinuePrompt:"Continue the narrative or discussion from this content seamlessly, maintaining the same language, tone and style.",aiChangeToneProfessionalPrompt:"Adjust the tone to be professional, suitable for a formal business or academic setting, while retaining the original message and language.",aiChangeToneFriendlyPrompt:"It needs to be rewritten in a friendly tone while maintaining the original message and language. Please modify this content to be warm, approachable, and engaging.",aiChangeToneFormalPrompt:"Transform this content to have a formal tone, appropriate for official or serious contexts, without changing the main points and language.",aiChangeToneCasualPrompt:"Revise this content to have a casual, relaxed tone, making it feel more personal and less formal, without changing the original meaning and language.",aiChangeToneDirectPrompt:"Make the tone more direct, with straightforward language and a clear, assertive approach, without changing the original meaning and language.",aiChangeToneConfidentPrompt:"Infuse this content with a confident tone, showcasing assurance and decisiveness, without changing the original meaning and language.",aiChangeStyleBusinessPrompt:"Rewrite this content with a business-oriented style, focusing on clarity, efficiency, and professionalism, without changing the original meaning and language.",aiChangeStyleLegalPrompt:"Adapt this content to a legal style, incorporating appropriate terminology and formality typical of legal documents, without changing the original meaning and language.",aiChangeStyleJournalismPrompt:"Convert this content into a journalistic style, emphasizing factual accuracy, objectivity, and informative reporting, without changing the original meaning and language.",aiChangeStylePoeticPrompt:"Recreate this content with a poetic style, using expressive language, rhythm, and imagery to convey the message, without changing the original meaning and language.",aiTranslateToSpanishPrompt:"Translate this content into Spanish, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToFrenchPrompt:"Translate this content into French, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToGermanPrompt:"Translate this content into German, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToItalianPrompt:"Translate this content into Italian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToPortuguesePrompt:"Translate this content into Portuguese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToEnglishPrompt:"Translate this content into English, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToChinesePrompt:"Translate this content into Chinese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToJapanesePrompt:"Translate this content into Japanese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToKoreanPrompt:"Translate this content into Korean, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToRussianPrompt:"Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToArabicPrompt:"Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning."},s.Icon.set("ai-assistant",l()),s.Icon.set("ai-commands",n()),o.Config.prototype.controls["ai-commands"]={isDisabled:e=>!e.o.aiAssistant.aiAssistantCallback,tooltip:"AI Commands",list:{aiImproveWritingPrompt:"Improve writing",aiMakeShorterPrompt:"Make shorter",aiMakeLongerPrompt:"Make longer",aiSimplifyLanguagePrompt:"Simplify language",aiSummarizePrompt:"Summarize",aiContinuePrompt:"Continue",aiChangeToneProfessionalPrompt:"Change tone to professional",aiChangeToneFriendlyPrompt:"Change tone to friendly",aiChangeToneFormalPrompt:"Change tone to formal",aiChangeToneCasualPrompt:"Change tone to casual",aiChangeToneDirectPrompt:"Change tone to direct",aiChangeToneConfidentPrompt:"Change tone to confident",aiChangeStyleBusinessPrompt:"Change style to business",aiChangeStyleLegalPrompt:"Change style to legal",aiChangeStyleJournalismPrompt:"Change style of journalism",aiChangeStylePoeticPrompt:"Change style to poetic",aiTranslateToSpanishPrompt:"Translate to Spanish",aiTranslateToFrenchPrompt:"Translate to French",aiTranslateToGermanPrompt:"Translate to German",aiTranslateToItalianPrompt:"Translate to Italian",aiTranslateToPortuguesePrompt:"Translate to Portuguese",aiTranslateToEnglishPrompt:"Translate to English",aiTranslateToChinesePrompt:"Translate to Chinese",aiTranslateToJapanesePrompt:"Translate to Japanese",aiTranslateToKoreanPrompt:"Translate to Korean",aiTranslateToRussianPrompt:"Translate to Russian",aiTranslateToArabicPrompt:"Translate to Arabic"},exec(e,t,{control:i}){e.e.fire("generateAiAssistantForm.ai-assistant",i.name)}},o.Config.prototype.controls["ai-assistant"]={isDisabled:e=>!e.o.aiAssistant.aiAssistantCallback,hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec(e,t,i){e.e.fire("generateAiAssistantForm.ai-assistant")}}},77367(e,t,i){"use strict";i.d(t,{normalizeColor:()=>r});var s=i(93387),o=i(4040);let r=e=>{let t=["#"],i=(0,s.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}},77483(e,t,i){"use strict";i.d(t,{ConfigDeepFlatten:()=>function e(t){return(0,c.keys)(t,!1).reduce((i,s)=>(i[s]=(0,o.isPlainObject)(t[s])?e(t[s]):t[s],i),{})},ConfigFlatten:()=>h,ConfigProto:()=>function e(t,i,c=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let h=a.Config.defaultOptions;if((0,r.isString)(t.preset)){if(void 0!==h.presets[t.preset]){let e=h.presets[t.preset];Object.keys(e).forEach(i=>{(0,n.isVoid)(t[i])&&(t[i]=e[i])})}delete t.preset}let d={};return Object.keys(t).forEach(r=>{let n=t[r],a=i?i[r]:null;if((0,o.isPlainObject)(n)&&(0,o.isPlainObject)(a)&&!(0,l.isAtom)(n)){d[r]=e(n,a,c+1);return}if(0!==c&&(0,s.isArray)(n)&&!(0,l.isAtom)(n)&&(0,s.isArray)(a)){d[r]=[...n,...a.slice(n.length)];return}d[r]=n}),Object.setPrototypeOf(d,i),d}});var s=i(17312),o=i(62101),r=i(85932),n=i(18303),a=i(5266),l=i(54794),c=i(71125);function h(e){return(0,c.keys)(e,!1).reduce((t,i)=>(t[i]=e[i],t),{})}},77911(e,t,i){"use strict";i.d(t,{ajaxInstances:()=>n,send:()=>a});var s=i(65946),o=i(73714),r=i(89446);let n=new WeakMap;function a(e,t){let i=(0,r.buildData)(e,t),a=t=>{let i=new o.Ajax({xhr(){let t=new XMLHttpRequest;return void 0!==e.j.ow.FormData&&t.upload?(e.j.progressbar.show().progress(10),t.upload.addEventListener("progress",t=>{if(t.lengthComputable){let i=t.loaded/t.total;i*=100,e.j.progressbar.show().progress(i),i>=100&&e.j.progressbar.hide()}},!1)):e.j.progressbar.hide(),t},method:e.o.method||"POST",data:t,url:(0,s.isFunction)(e.o.url)?e.o.url(t):e.o.url,headers:e.o.headers,queryBuild:e.o.queryBuild,contentType:e.o.contentType.call(e,t),withCredentials:e.o.withCredentials||!1}),r=n.get(e);return r||(r=new Set,n.set(e,r)),r.add(i),e.j.e.one("beforeDestruct",i.destruct),i.send().then(e=>e.json()).catch(e=>({success:!1,data:{messages:[e]}})).finally(()=>{i.destruct(),r?.delete(i)})};return(0,s.isPromise)(i)?i.then(a).catch(t=>{e.o.error.call(e,t)}):a(i)}},78462(e,t,i){"use strict";i.d(t,{states:()=>l,transactions:()=>c});var s=i(81937),o=i(23211),r=i(28712),n=i(59841),a=i(51640);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"},c={[l.START]:{exec(e){let{element:t,jodit:i,style:s,mode:r,collapsed:c}=e;if((0,a.isInsideInvisibleElement)(t,i.editor)||!c&&o.Dom.isEmptyContent(t))return{...e,next:l.END};let h=(0,a.getSuitParent)(s,t,i.editor)||(0,a.getSuitChild)(s,t);if(h)return{...e,next:l.ELEMENT,element:h};let d=(0,a.suitableClosest)(s,t,i.editor);return s.elementIsList&&o.Dom.isList(d)?{...e,next:l.LIST}:d?{...e,next:l.EXTRACT}:{...e,next:r!==n.UNWRAP?l.UNWRAP_CHILDREN:l.END}}},[l.LIST]:{exec(e){let{element:t,jodit:i,mode:r}=e;if(r!==n.INITIAL&&r!==n.UNWRAP&&r!==n.REPLACE)return{...e,next:l.END};let a=o.Dom.closest(t,"li",i.editor);return a&&o.Dom.closest(t,s.LIST_TAGS,i.editor)?{...e,element:a,next:l.TOGGLE_LIST}:{...e,next:l.END}}},[l.TOGGLE_LIST]:{exec:e=>({...e,mode:(0,a.toggleOrderedList)(e.style,e.element,e.jodit,e.mode),next:l.END})},[l.EXTRACT]:{exec(e){let{element:t,jodit:i,style:s}=e,n=(0,a.suitableClosest)(s,t,i.editor);return((0,r.assert)(n,"This place should have an element"),!s.elementIsBlock&&s.options.attributes?.style&&o.Dom.isBlock(n))?{...e,next:l.WRAP}:(s.elementIsBlock||(0,a.extractSelectedPart)(n,t,i),{...e,element:n,next:l.ELEMENT})}},[l.UNWRAP_CHILDREN]:{exec(e){let{element:t,style:i}=e;return(0,a.unwrapChildren)(i,t)?{...e,mode:n.UNWRAP,next:l.END}:{...e,next:l.WRAP}}},[l.WRAP]:{exec(e){let{element:t,jodit:i,style:s}=e,o=(0,a.wrap)(s,t,i);return{...e,next:s.elementIsList?l.END:l.CHANGE,mode:n.WRAP,element:o}}},[l.ELEMENT]:{exec(e){let{style:t,element:i,jodit:s}=e;return(0,a.toggleAttributes)(t,i,s,n.INITIAL,!0)!==n.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:s,mode:r}=e,c=(0,a.toggleAttributes)(t,i,s,e.mode);return r!==n.WRAP&&c===n.UNSET&&!i.attributes.length&&o.Dom.isTag(i,t.element)?{...e,next:l.UNWRAP}:{...e,mode:c,next:l.END}}},[l.UNWRAP]:{exec:e=>e.element.attributes.length&&o.Dom.isTag(e.element,e.style.element)?{...e,next:l.REPLACE_DEFAULT}:(o.Dom.unwrap(e.element),{...e,mode:n.UNWRAP,next:l.END})},[l.REPLACE_DEFAULT]:{exec:e=>(o.Dom.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),{...e,mode:n.REPLACE,next:l.END})},[l.END]:{exec:e=>e}}},78690(e,t,i){"use strict";var s=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",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=s.Dom.last(e.editor,e=>s.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&&s.Dom.isBlock(t.target)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))})})})},78982(e,t,i){"use strict";i.d(t,{asArray:()=>o});var s=i(17312);let o=e=>(0,s.isArray)(e)?e:[e]},79310(e,t,i){"use strict";i.d(t,{readLink:()=>r});var s=i(23211),o=i(7909);function r(e,t,i){let r=s.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)}},79803(e,t,i){"use strict";var s=i(5266);s.Config.prototype.toolbarSticky=!0,s.Config.prototype.toolbarDisableStickyForMobile=!0,s.Config.prototype.toolbarStickyOffset=0},79821(e,t,i){"use strict";i.d(t,{Create:()=>s.Create});var s=i(76517)},79947(e,t,i){"use strict";i.d(t,{clearTimeout:()=>r,setTimeout:()=>o});var s=i(81937);function o(e,t,...i){return t?s.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function r(e){s.globalWindow.clearTimeout(e)}},80202(e,t,i){"use strict";var s=i(5266);s.Config.prototype.minWidth=200,s.Config.prototype.maxWidth="100%",s.Config.prototype.minHeight=200,s.Config.prototype.maxHeight="auto",s.Config.prototype.saveHeightInStorage=!1},80251(e,t,i){"use strict";i.d(t,{Component:()=>c});var s=i(25045),o=i(91231),r=i(69364),n=i(28077),a=i(65946);let l=new Map;class c{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(e,t,i){let s=[this.componentName];return e&&s.push("__"+(e=e.replace(/[^a-z0-9-]/gi,"-"))),t&&(s.push("_",t),s.push("_",(0,a.isVoid)(i)?"true":i.toString())),s.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 s=l.get(this),o=s?.[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,s._)(this,"__componentName",void 0),(0,s._)(this,"async",new o.Async),(0,s._)(this,"uid",void 0),(0,s._)(this,"ownerWindow",window),(0,s._)(this,"__componentStatus",r.STATUSES.beforeInit),this.uid="jodit-uid-"+(0,n.uniqueUid)()}}(0,s._)(c,"STATUSES",r.STATUSES)},80347(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg>'},80512(e,t,i){"use strict";i.d(t,{Dlgs:()=>a});var s=i(28077),o=i(28686),r=i(71125),n=i(37333);class a{dlg(e){let t=(0,s.getPopupViewRoot)(this.o,this.container,this.od.body),i=new n.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),n.Confirm.call(this.dlg({closeOnClickOverlay:!0}),e,t,i)}prompt(e,t,i,s,o){return e=l(e,this),t=l(t,this),s=l(s,this),n.Prompt.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,s,o)}alert(e,t,i,s){return e=l(e,this),t=l(t,this),n.Alert.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,s)}}function l(e,t){return(0,o.isString)(e)&&!(0,o.isHTML)(e)&&(e=t.i18n(e)),e}},80515(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg>'},80538(e,t,i){"use strict";var s=i(81937),o=i(29434),r=i(5266),n=i(24772),a=i.n(n),l=i(66547),c=i.n(l);r.Config.prototype.fullsize=!1,r.Config.prototype.globalFullSize=!0,o.Icon.set("fullsize",a()).set("shrink",c()),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:s.MODE_SOURCE+s.MODE_WYSIWYG}},80840(e,t,i){"use strict";i.d(t,{wait:()=>n});var s=i(69364),o=i(91565),r=i(33201);function n(e){return(t,i)=>{let n=t[i];if(!(0,o.isFunction)(n))throw(0,r.error)("Handler must be a Function");t.hookStatus(s.STATUSES.ready,t=>{let{async:s}=t,o=t[i],r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...n){s.clearTimeout(r),e(t)?o.apply(t,n):r=s.setTimeout(()=>i(...n),10)}})})}}},80951(e,t,i){"use strict";i.d(t,{checkJoinTwoLists:()=>n});var s=i(23211),o=i(71125),r=i(15200);function n(e,t,i){let n=s.Dom.findSibling(t,i),a=s.Dom.findSibling(t,!i);if(!s.Dom.closest(t,s.Dom.isElement,e.editor)&&s.Dom.isList(n)&&s.Dom.isList(a)&&s.Dom.isTag(n.lastElementChild,"li")&&s.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:c}=e.s,h=n.lastElementChild,d=a.firstElementChild;return(0,o.call)(i?s.Dom.prepend:s.Dom.append,d,t),s.Dom.moveContent(a,n,!i,(0,r.getMoveFilter)(e)),s.Dom.safeRemove(a),(0,o.call)(i?s.Dom.append:s.Dom.prepend,h,t),(0,o.call)(i?l:c,t),!0}return!1}},80991(e,t,i){"use strict";i.d(t,{clearCenterAlign:()=>c,css:()=>l});var s=i(22289),o=i(62101),r=i(19147),n=i(57821),a=i(74264);function l(e,t,i,c=!1){if((0,s.isBoolean)(i)&&(c=i,i=void 0),(0,o.isPlainObject)(t)||void 0!==i){let s=(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)s(e,(0,n.camelCase)(i[o]),t[i[o]])}else s(e,(0,n.camelCase)(t),i);return""}let h=(0,a.kebabCase)(t),d=e.ownerDocument||document,u=!!d&&(d.defaultView||d.parentWindow),p=e.style[t],m="";return void 0!==p&&""!==p?m=p:u&&!c&&(m=u.getComputedStyle(e).getPropertyValue(h)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(m.toString())&&(m=parseInt(m.toString(),10)),(0,r.normalizeCssValue)(t,m)}let c=e=>{"block"===l(e,"display")&&l(e,"display","");let{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}},81008(e,t,i){"use strict";var s=i(29434),o=i(5266),r=i(51457),n=i.n(r),a=i(23602),l=i.n(a),c=i(86899),h=i.n(c),d=i(95320),u=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"},s.Icon.set("copy",n()).set("cut",l()).set("paste",h()).set("select-all",u())},81144(e,t,i){"use strict";var s=i(81937),o=i(28077),r=i(65946);i(17326),o.pluginSystem.add("iframe",e=>{let t=e.options;e.e.on("afterSetMode",()=>{e.isEditorMode()&&e.s.focus()}).on("generateDocumentStructure.iframe",(e,i)=>{let s=e||i.iframe.contentWindow.document;if(s.open(),s.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>'),s.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach(e=>{let t=s.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),s.head&&s.head.appendChild(t)}),t.iframeStyle){let e=s.createElement("style");e.innerHTML=t.iframeStyle,s.head&&s.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,n=()=>{(0,r.attr)(i.body,"contenteditable",e.getMode()!==s.MODE_SOURCE&&!e.getReadOnly()||null)},a=e=>{let t=/<body.*<\/body>/im,i="{%%BODY%%}",s=t.exec(e);return s&&(e=e.replace(t,i).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(i,s[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),n(),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",n),"auto"===t.height){i.documentElement&&(i.documentElement.style.overflowY="hidden");let s=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",s).on([e.iframe,e.ew,i.documentElement],"load",s).on(i,"readystatechange DOMContentLoaded",s),"function"==typeof ResizeObserver){let t=new ResizeObserver(s);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=>{e.events?.fire(e.ow,t)}),!1})})})},81488(e,t,i){"use strict";i.d(t,{inputValidators:()=>s,selectValidators:()=>o});var s=i(48776),o=i(6490)},81576(e,t,i){"use strict";i.d(t,{generateCriticalCSS:()=>r});var s=i(25045),o=i(88475);function r(e){let t=(e,t=e.ownerDocument.styleSheets)=>(0,o.toArray)(t).map(e=>{try{return(0,o.toArray)(e.cssRules)}catch{}return[]}).flat().filter(t=>{try{return!!(t&&e.matches(t.selectorText))}catch{}return!1});class i{generateCSS(){let e="";for(let t in this.css)if(!/:not\(/.test(t)){for(let i in e+=t+" { ",this.css[t])e+=i+": "+this.css[t][i]+"; ";e+=`}
253
- `}return e}constructor(i,o,r){(0,s._)(this,"css",{});let n=r||{},a=t=>{let i=t.selectorText.split(",").map(e=>e.trim()).sort().join(",");!1==!!this.css[i]&&(this.css[i]={});let s=t.style.cssText.split(/;(?![A-Za-z0-9])/);for(let t=0;t<s.length;t++){if(!s[t])continue;let o=s[t].split(":");o[0]=o[0].trim(),o[1]=o[1].trim(),this.css[i][o[0]]=o[1].replace(/var\(([^)]+)\)/g,(t,i)=>{let[s,o]=i.split(",");return(e.ew.getComputedStyle(e.editor).getPropertyValue(s.trim())||o||t).trim()})}};(()=>{let s=i.innerHeight,r=o.createTreeWalker(e.editor,NodeFilter.SHOW_ELEMENT,()=>NodeFilter.FILTER_ACCEPT);for(;r.nextNode();){let e=r.currentNode;if(e.getBoundingClientRect().top<s||n.scanFullPage){let i=t(e);if(i)for(let e=0;e<i.length;e++)a(i[e])}}})()}}try{return new i(e.ew,e.ed,{scanFullPage:!0}).generateCSS()}catch{}return""}},81582(e,t,i){"use strict";var s=i(31635),o=i(81937),r=i(84839),n=i(28077),a=i(91206);i(69023);var l=i(2923);class c extends a.Plugin{afterInit(e){}__onTab(e){if(e.key===o.KEY_TAB&&this.__onShift(e.shiftKey))return!1}__onCommand(e){if(("indent"===e||"outdent"===e)&&this.__onShift("outdent"===e))return!1}__onShift(e){let t=(0,l.onTabInsideLi)(this.j,e);return t&&this.j.e.fire("afterTab",e),t}beforeDestruct(e){}}(0,s.__decorate)([(0,r.watch)(":keydown.tab")],c.prototype,"__onTab",null),(0,s.__decorate)([(0,r.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),n.pluginSystem.add("tab",c)},81875(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg>'},81937(e,t,i){"use strict";i.r(t),i.d(t,{ACCURACY:()=>U,APP_VERSION:()=>s,BASE_PATH:()=>eu,BASE_PATH_IS_MIN:()=>ep,BR:()=>V,CLIPBOARD_ID:()=>ef,COMMAND_KEYS:()=>W,EMULATE_DBLCLICK_TIMEOUT:()=>et,ES:()=>o,FAT_MODE:()=>c,HOMEPAGE:()=>h,INSEPARABLE_TAGS:()=>x,INSERT_AS_HTML:()=>ei,INSERT_AS_TEXT:()=>eo,INSERT_CLEAR_HTML:()=>es,INSERT_ONLY_TEXT:()=>er,INVISIBLE_SPACE:()=>p,INVISIBLE_SPACE_REG_EXP:()=>g,INVISIBLE_SPACE_REG_EXP_END:()=>f,INVISIBLE_SPACE_REG_EXP_START:()=>_,IS_BLOCK:()=>C,IS_ES_MODERN:()=>r,IS_ES_NEXT:()=>n,IS_IE:()=>X,IS_INLINE:()=>E,IS_MAC:()=>ea,IS_PROD:()=>a,IS_TEST:()=>l,KEY_ALIASES:()=>el,KEY_ALT:()=>N,KEY_BACKSPACE:()=>j,KEY_DELETE:()=>q,KEY_DOWN:()=>B,KEY_ENTER:()=>A,KEY_ESC:()=>P,KEY_F3:()=>F,KEY_LEFT:()=>M,KEY_META:()=>k,KEY_RIGHT:()=>R,KEY_SPACE:()=>O,KEY_TAB:()=>L,KEY_UP:()=>z,LIST_TAGS:()=>I,MARKER_CLASS:()=>ee,MODE_SOURCE:()=>G,MODE_SPLIT:()=>K,MODE_WYSIWYG:()=>Y,NBSP_SPACE:()=>m,NEARBY:()=>H,NO_EMPTY_TAGS:()=>D,PARAGRAPH:()=>$,PASSIVE_EVENTS:()=>ev,SAFE_COUNT_CHANGE_CALL:()=>en,SET_TEST:()=>d,SOURCE_CONSUMER:()=>e_,SPACE_REG_EXP:()=>v,SPACE_REG_EXP_END:()=>y,SPACE_REG_EXP_START:()=>b,TEMP_ATTR:()=>em,TEXT_HTML:()=>Z,TEXT_PLAIN:()=>J,TEXT_RTF:()=>Q,TOKENS:()=>u,globalDocument:()=>S,globalWindow:()=>w,lang:()=>eg});let s="4.7.4",o="es2021",r=!0,n=!0,a=!0,l=!1,c=!0,h="https://xdsoft.net/jodit/",d=()=>l=!0,u={},p="\uFEFF",m=" ",g=()=>/[\uFEFF]/g,f=()=>/[\uFEFF]+$/g,_=()=>/^[\uFEFF]+/g,v=()=>/[\s\n\t\r\uFEFF\u200b]+/g,b=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,w="undefined"!=typeof window?window:void 0,S="undefined"!=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,E=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,I=new Set(["ul","ol"]),T=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],x=new Set([...T,"br","hr"]),D=new Set(T),k="Meta",j="Backspace",L="Tab",A="Enter",P="Escape",N="Alt",M="ArrowLeft",z="ArrowUp",R="ArrowRight",B="ArrowDown",O="Space",q="Delete",F="F3",H=5,U=10,W=[k,j,q,z,B,R,M,A,P,F,L],V="br",$="p",Y=1,G=2,K=3,X="undefined"!=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",es="insert_clear_html",eo="insert_as_text",er="insert_only_text",en=10,ea=void 0!==w&&/Mac|iPod|iPhone|iPad/.test(w.navigator.platform),el={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ea?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},ec=e=>{let t=e.split("/");return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:!0}:{basePath:e,isMin:!0}},{basePath:eh,isMin:ed}=(()=>{if("undefined"==typeof document)return{basePath:"",isMin:!0};let e=S.currentScript;if(e)return ec(e.src);let t=S.querySelectorAll("script[src]");return t&&t.length?ec(t[t.length-1].src):ec(w.location.href)})(),eu=eh,ep=ed,em="data-jodit-temp",eg={},ef="clipboard",e_="source-consumer",ev=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},81987(e,t,i){"use strict";i.d(t,{Mods:()=>o});var s=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}_`,n=(i||this.container).classList;return null!=o&&n.remove(`${r}${o.toString().toLowerCase()}`),(0,s.isVoid)(t)||""===t||n.add(`${r}${t.toString().toLowerCase()}`),this.mods[e]=t,this.afterSetMod(e,t),this}getMod(e){return this.mods[e]??null}}},82147(e,t,i){"use strict";var s=i(5266);s.Config.prototype.limitWords=!1,s.Config.prototype.limitChars=!1,s.Config.prototype.limitHTML=!1},82166(e,t,i){"use strict";function s(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:()=>s})},82495(e,t,i){"use strict";i.d(t,{createSourceEditor:()=>r});var s=i(65946),o=i(8105);function r(e,t,i,r,n){let a;if((0,s.isFunction)(e))a=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){a=new o.AceEditor(t,i,r,n);break}default:a=new o.TextAreaEditor(t,i,r,n)}return a.init(t),a.onReadyAlways(()=>{a.setReadOnly(t.o.readonly)}),a}},82658(e,t,i){"use strict";i.d(t,{applyStyles:()=>s.applyStyles,cleanFromWord:()=>o.cleanFromWord,htmlspecialchars:()=>r.htmlspecialchars,nl2br:()=>n.nl2br,safeHTML:()=>a.safeHTML,sanitizeHTMLElement:()=>a.sanitizeHTMLElement,stripTags:()=>l.stripTags});var s=i(30893),o=i(1277),r=i(6609),n=i(48838),a=i(48155),l=i(22852)},82794(e,t,i){"use strict";i.d(t,{toggleAttributes:()=>g});var s=i(81937),o=i(23211),r=i(28077),n=i(28686),a=i(19147),l=i(18073),c=i(74264),h=i(93640),d=i(80991),u=i(36400),p=i(98394);let m="toggleAttributes";function g(e,t,i,_,v=!1){if(!v&&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=>{let g=b[m];switch(m){case"style":var y;y=_,(0,h.assert)((0,n.isPlainObject)(g)&&(0,l.size)(g),"Style must be an object"),Object.keys(g).forEach(n=>{let l=t.style.getPropertyValue((0,c.kebabCase)(n)),h=g[n];if(""!==l||null!=h){if(((e,t,i)=>{let n=e.create.element(t.tagName.toLowerCase());n.style.cssText=t.style.cssText,(e=>{if(void 0!==(0,u.dataBind)(e,"shadowRoot"))return(0,u.dataBind)(e,"shadowRoot");let t=(0,r.getContainer)(e),i=s.globalDocument.createElement("iframe");(0,d.css)(i,{width:0,height:0,position:"absolute",border:0}),i.src="about:blank",t.appendChild(i);let o=i.contentWindow?.document,n=o?o.body:e.od.body;return(0,u.dataBind)(e,"shadowRoot",n),n})(e).appendChild(n);let a=(0,d.css)(n,i);return o.Dom.safeRemove(n),a})(i,t,n)===(0,a.normalizeCssValue)(n,h)){if(!l)return;v||(0,d.css)(t,n,null),y=f(e,t,y=p.UNSET);return}y=p.CHANGE,v||((0,d.css)(t,n,h),y=f(e,t,y))}}),_=y;break;case"className":case"class":_=((e,t,i,s,o)=>{(0,h.assert)((0,n.isString)(t),"Class name must be a string");let r=e.e.fire.bind(e.e,`${p._PREFIX}AfterToggleAttribute`);return i.classList.contains(t.toString())?(s=p.UNSET,o||(i.classList.remove(t),0===i.classList.length&&((0,h.attr)(i,"class",null),r(s,i,"class",null)))):(s=p.CHANGE,o||(i.classList.add(t),r(s,i,"class",t))),s})(i,g,t,_,v);break;default:_=((e,t,i,s,o,r)=>{(0,h.assert)((0,n.isString)(t)||(0,n.isNumber)(t)||(0,n.isBoolean)(t)||null==t,"Attribute value must be a string or number or boolean or null");let a=e.e.fire.bind(e.e,`${p._PREFIX}AfterToggleAttribute`);return(0,h.attr)(i,s)===t?(o||(0,h.attr)(i,s,null),r=p.UNSET,o||a(r,i,s,t)):(r=p.CHANGE,o||((0,h.attr)(i,s,t),a(r,i,s,t))),r})(i,g,t,m,v,_)}}),_}function f(e,t,i){return(0,h.attr)(t,"style")||((0,h.attr)(t,"style",null),t.tagName.toLowerCase()===e.defaultTag&&(o.Dom.unwrap(t),i=p.UNWRAP)),i}},83207(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},83215(e,t,i){"use strict";i.d(t,{innerWidth:()=>s});let s=(e,t)=>{let i=t.getComputedStyle(e);return e.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}},83335(e,t,i){"use strict";i.d(t,{wrapUnwrappedText:()=>r});var s=i(23211),o=i(23175);function r(e,t,i){let r=i.editor,n=i.createInside,a=(e,t="previousSibling")=>{let n=e,a=e;for(;a&&!(0,o.isMarker)(a)&&!s.Dom.isTag(a,i.o.enter)&&(n=a,a=a[t]?a[t]:a.parentNode&&!s.Dom.isBlock(a.parentNode)&&a.parentNode!==r?a.parentNode:null,!s.Dom.isBlock(a)););return n},l=a(t),c=a(t,"nextSibling"),h=i.s.createRange();h.setStartBefore(l),h.setEndAfter(c);let d=h.extractContents(),u=n.element(e.element);return u.appendChild(d),s.Dom.safeInsertNode(h,u),e.elementIsBlock&&s.Dom.isEmpty(u)&&!s.Dom.isTag(u.firstElementChild,"br")&&u.appendChild(n.element("br")),u}},83376(e,t,i){"use strict";i.d(t,{getBlockWrapper:()=>function e(t,i,r=s.IS_BLOCK){let n=t,a=i.editor;do{if(!n||n===a)break;if(r.test(n.nodeName)){if(o.Dom.isLeaf(n))return n;return e(n.parentNode,i,/^li$/i)||n}n=n.parentNode}while(n&&n!==a)return null}});var s=i(81937),o=i(23211)},83389(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg>'},83653(e,t,i){"use strict";i.d(t,{isNormalNode:()=>r});var s=i(23211),o=i(23175);function r(e){return!!(e&&!s.Dom.isEmptyTextNode(e)&&!s.Dom.isTemporary(e)&&!(0,o.isMarker)(e))}},84578(e,t,i){"use strict";i.d(t,{CommitStyle:()=>l});var s=i(25045),o=i(81937),r=i(57821),n=i(98394),a=i(96127);class l{isApplied(e,t){let i=this.__applyMap.get(e);return!!i&&i[t]}setApplied(e,t){let i=this.__applyMap.get(e)??{};i[t]=!0,this.__applyMap.set(e,i)}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)(n._PREFIX+"_"+i),t[i])}),(0,a.ApplyStyle)(e,this)}finally{i.forEach(i=>{e.e.off((0,r.camelCase)(n._PREFIX+"_"+i),t[i])}),this.__applyMap=new WeakMap}e.synchronizeValues(),e.e.fire("afterCommitStyle",this)}constructor(e){(0,s._)(this,"options",void 0),(0,s._)(this,"__applyMap",void 0),this.options=e,this.__applyMap=new WeakMap}}},84839(e,t,i){"use strict";i.r(t),i.d(t,{autobind:()=>s.autobind,cache:()=>o.cache,cacheHTML:()=>o.cacheHTML,cached:()=>o.cached,component:()=>r.component,debounce:()=>n.debounce,derive:()=>a.derive,getPropertyDescriptor:()=>p.getPropertyDescriptor,hook:()=>l.hook,idle:()=>c.idle,nonenumerable:()=>h.nonenumerable,persistent:()=>d.persistent,throttle:()=>n.throttle,wait:()=>u.wait,watch:()=>p.watch});var s=i(49574),o=i(51676),r=i(91672),n=i(55184),a=i(24968),l=i(29200),c=i(35718),h=i(41360),d=i(77036),u=i(80840),p=i(68616)},85305(e,t,i){"use strict";i.d(t,{PluginSystem:()=>u});var s=i(25045),o=i(81937),r=i(28077),n=i(45664),a=i(28686),l=i(55810),c=i(3050),h=i(25974),d=i(86189);class u{get size(){return this.__items.size}add(e,t){this.__items.set((0,d.normalizeName)(e),t),r.eventEmitter.fire(`plugin:${e}:ready`)}get(e){return this.__items.get((0,d.normalizeName)(e))}remove(e){this.__items.delete((0,d.normalizeName)(e))}__getFullPluginsList(e){let t=[];return this.__items.forEach((i,s)=>{(!e||e.has(s))&&t.push([s,i])}),t}__init(e){var t;let{extraList:i,disableList:s,filter:r}={extraList:(t=e).o.extraPlugins.map(e=>(0,a.isString)(e)?{name:e}:e),disableList:new Set((0,n.splitArray)(t.o.disablePlugins).map(d.normalizeName)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null},u=new Map,p={},m=new Set;e.__plugins=p;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(r).forEach(([i,o])=>{if(s.has(i)||u.has(i))return;let r=o?.requires;if(r&&(0,a.isArray)(r)&&r.length){if(r.some(e=>s.has(e)))return;if(!r.every(e=>u.has(e)))return void m.add(i)}t=!0;let n=(0,h.makeInstance)(e,o);if(!n){u.set(i,null),m.delete(i);return}(0,l.init)(e,i,o,n,u,m),p[i]=n}),t&&(e.e.fire("updatePlugins"),g())};i&&i.length&&(0,c.loadExtras)(this.__items,e,i,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(p).forEach(t=>{let i=p[t];(0,a.isDestructable)(i)&&i.destruct(e),delete p[t]}),delete e.__plugins}),o.IS_PROD||m.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(){(0,s._)(this,"__items",new Map)}}},85932(e,t,i){"use strict";i.d(t,{isString:()=>o,isStringArray:()=>r});var s=i(17312);function o(e){return"string"==typeof e}function r(e){return(0,s.isArray)(e)&&o(e[0])}},86038(e,t,i){"use strict";i(5266).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},86122(e,t,i){"use strict";i.d(t,{FileBrowserFiles:()=>o});var s=i(4099);class o extends s.UIGroup{className(){return"FileBrowserFiles"}}},86189(e,t,i){"use strict";i.d(t,{normalizeName:()=>o});var s=i(74264);function o(e){return(0,s.kebabCase)(e).toLowerCase()}},86236(e,t,i){"use strict";var s=i(25045),o=i(81937),r=i(23211),n=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,s._)(this,"charCounter",null),(0,s._)(this,"wordCounter",null),(0,s._)(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,s._)(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))}}n.pluginSystem.add("stat",l)},86581(e,t,i){"use strict";function s(e,t){let[i,s]=t.split("::");e.execCommand(i,null,s)}i.d(t,{execSpellCommand:()=>s})},86634(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg>'},86878(e,t,i){"use strict";i.d(t,{getContentWidth:()=>s.getContentWidth,getScrollParent:()=>o.getScrollParent,innerWidth:()=>r.innerWidth,offset:()=>a.offset,position:()=>l.position,size:()=>n.size});var s=i(54447),o=i(34027),r=i(83215),n=i(18073),a=i(69143),l=i(23599)},86899(e){e.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg>'},87329(e,t,i){"use strict";i.d(t,{UITextArea:()=>l});var s=i(25045),o=i(31635),r=i(84839),n=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=e??5}constructor(e,t){super(e,t),(0,s._)(this,"state",{...l.defaultState}),Object.assign(this.state,t),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}}(0,s._)(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)([n.component],l)},87624(e,t,i){"use strict";i.d(t,{SentenceFinder:()=>o.SentenceFinder,clearSelectionWrappers:()=>s.clearSelectionWrappers,clearSelectionWrappersFromHTML:()=>s.clearSelectionWrappersFromHTML,getSelectionWrappers:()=>s.getSelectionWrappers,highlightTextRanges:()=>s.highlightTextRanges});var s=i(19213),o=i(59276)},87908(e,t,i){"use strict";var s=i(65946),o=i(29434),r=i(5266),n=i(223),a=i.n(n);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,s.memorizeExec)(e,t,{control:i},e=>e)}},88329(e,t,i){"use strict";i.d(t,{Confirm:()=>n});var s=i(91565),o=i(53681),r=i(76841);function n(e,t,i){let n=this instanceof r.Dialog?this:new r.Dialog({closeOnClickOverlay:!0}),a=n.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),l=n.c.element("label");(0,s.isFunction)(t)&&(i=t,t=void 0),l.appendChild(n.c.fromHTML(e)),a.appendChild(l);let c=e=>()=>{i&&!1===i(e)||n.close()},h=(0,o.Button)(n,"cancel","Cancel"),d=(0,o.Button)(n,"ok","Yes");return h.onAction(c(!1)),d.onAction(c(!0)),n.e.on(a,"submit",()=>(c(!0)(),!1)),n.setFooter([d,h]),n.open(a,t||"&nbsp;",!0,!0),d.focus(),n}},88475(e,t,i){"use strict";i.d(t,{toArray:()=>r});var s=i(23283),o=i(43379);let r=(...e)=>((0,s.isNativeFunction)(Array.from)?Array.from:(0,o.reset)("Array.from")??Array.from).apply(Array,e)},88497(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},88580(e,t,i){"use strict";var s=i(5266);s.Config.prototype.showCharsCounter=!0,s.Config.prototype.countHTMLChars=!1,s.Config.prototype.countTextSpaces=!1,s.Config.prototype.showWordsCounter=!0},88952(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(27795),a=i(28077),l=i(65946),c=i(91206),h=i(4099),d=i(56490),u=i(4274);i(89873);class p extends c.Plugin{get popup(){return new d.Popup(this.jodit,!1)}get toolbar(){return(0,u.makeCollection)(this.jodit,this.popup)}onClick(e){let t=this.elmsList,i=n.Dom.isTag(e,"img")?e:n.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 s=this.j.o.popup[t];e=(0,l.isFunction)(s)?s(this.j,i,this.popup.close):s,(0,l.isArray)(e)&&(this.toolbar.build(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&&`
252
+ </div>`),"rtl"===this.options.direction&&(this.container.style.direction="rtl",this.container.setAttribute("dir","rtl")),this.o.zIndex&&(this.container.style.zIndex=this.o.zIndex.toString()),(0,u.attr)(this.container,"role","dialog"),Object.defineProperty(this.container,"component",{value:this}),this.setMod("theme",this.o.theme||"default").setMod("resizable",!!this.o.resizable);let i=this.getElm("panel");(0,p.assert)(null!=i,"Panel element does not exist");let o=this.getElm("resizer");(0,p.assert)(null!=o,"Resizer element does not exist");let r=this.getElm("header-title");(0,p.assert)(null!=r,"header-title element does not exist");let n=this.getElm("content");(0,p.assert)(null!=n,"Content element does not exist");let a=this.getElm("footer");(0,p.assert)(null!=a,"Footer element does not exist");let h=this.getElm("header-toolbar");(0,p.assert)(null!=h,"header-toolbar element does not exist"),this.dialog=i,this.resizer=o,this.dialogbox_header=r,this.dialogbox_content=n,this.dialogbox_footer=a,this.dialogbox_toolbar=h,(0,u.css)(this.dialog,{maxWidth:this.options.maxWidth,minHeight:this.options.minHeight,minWidth:this.options.minWidth});let g=this.getElm("header");g&&this.e.on(g,"pointerdown touchstart",this.__onHeaderMouseDown),this.e.on(this.resizer,"mousedown touchstart",this.__onResizerMouseDown);let f=c.pluginSystem.get("fullsize");if((0,d.isFunction)(f)&&f(this),this.e.on(this.container,"close_dialog",this.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){let e=this.getElm("overlay");(0,p.assert)(null!=e,"Overlay element does not exist"),this.e.on(e,"click",this.close)}}}(0,s._)(v,"defaultOptions",{...g.View.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0}),(0,o.__decorate)([a.autobind],v.prototype,"__onMouseUp",null),(0,o.__decorate)([a.autobind],v.prototype,"__onHeaderMouseDown",null),(0,o.__decorate)([a.autobind],v.prototype,"__onMouseMove",null),(0,o.__decorate)([a.autobind],v.prototype,"__onEsc",null),(0,o.__decorate)([a.autobind],v.prototype,"__onResizerMouseDown",null),(0,o.__decorate)([a.autobind],v.prototype,"close",null),(0,o.__decorate)([(0,a.hook)("ready")],v.prototype,"buildToolbar",null),v=(0,o.__decorate)([a.component],v)},77036(e,t,i){"use strict";i.d(t,{persistent:()=>r});var s=i(69364),o=i(31534);function r(e,t){e.hookStatus(s.STATUSES.ready,e=>{let i=(0,o.isViewObject)(e)?e:e.jodit,s=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get:()=>i.storage.get(s)??r,set(e){i.storage.set(s,e)}})})}},77213(e,t,i){"use strict";i.d(t,{ctrlKey:()=>s});let s=e=>{if("undefined"!=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}},77227(e,t,i){"use strict";var s=i(29434),o=i(5266),r=i(91115),n=i.n(r),a=i(1916),l=i.n(a);o.Config.prototype.aiAssistant={aiCommonPrefixPrompt:"",aiCommonSuffixPrompt:"",aiImproveWritingPrompt:"It needs to be refined for better clarity, coherence, and overall quality. Please enhance the writing style while keeping the original meaning and language intact.",aiMakeShorterPrompt:"Please condense this content to make it more concise, while preserving the key messages, language and information.",aiMakeLongerPrompt:"Expand on this content to provide more detail, depth, and richness, without diverging from the original message and language.",aiSimplifyLanguagePrompt:"The language used here needs to be simplified for easier understanding, without altering the core information and the original language.",aiSummarizePrompt:"Provide a brief summary of this content, capturing the essential points in a concise manner. Preserve the original language and meaning.",aiContinuePrompt:"Continue the narrative or discussion from this content seamlessly, maintaining the same language, tone and style.",aiChangeToneProfessionalPrompt:"Adjust the tone to be professional, suitable for a formal business or academic setting, while retaining the original message and language.",aiChangeToneFriendlyPrompt:"It needs to be rewritten in a friendly tone while maintaining the original message and language. Please modify this content to be warm, approachable, and engaging.",aiChangeToneFormalPrompt:"Transform this content to have a formal tone, appropriate for official or serious contexts, without changing the main points and language.",aiChangeToneCasualPrompt:"Revise this content to have a casual, relaxed tone, making it feel more personal and less formal, without changing the original meaning and language.",aiChangeToneDirectPrompt:"Make the tone more direct, with straightforward language and a clear, assertive approach, without changing the original meaning and language.",aiChangeToneConfidentPrompt:"Infuse this content with a confident tone, showcasing assurance and decisiveness, without changing the original meaning and language.",aiChangeStyleBusinessPrompt:"Rewrite this content with a business-oriented style, focusing on clarity, efficiency, and professionalism, without changing the original meaning and language.",aiChangeStyleLegalPrompt:"Adapt this content to a legal style, incorporating appropriate terminology and formality typical of legal documents, without changing the original meaning and language.",aiChangeStyleJournalismPrompt:"Convert this content into a journalistic style, emphasizing factual accuracy, objectivity, and informative reporting, without changing the original meaning and language.",aiChangeStylePoeticPrompt:"Recreate this content with a poetic style, using expressive language, rhythm, and imagery to convey the message, without changing the original meaning and language.",aiTranslateToSpanishPrompt:"Translate this content into Spanish, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToFrenchPrompt:"Translate this content into French, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToGermanPrompt:"Translate this content into German, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToItalianPrompt:"Translate this content into Italian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToPortuguesePrompt:"Translate this content into Portuguese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToEnglishPrompt:"Translate this content into English, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToChinesePrompt:"Translate this content into Chinese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToJapanesePrompt:"Translate this content into Japanese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToKoreanPrompt:"Translate this content into Korean, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToRussianPrompt:"Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToArabicPrompt:"Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning."},s.Icon.set("ai-assistant",l()),s.Icon.set("ai-commands",n()),o.Config.prototype.controls["ai-commands"]={isDisabled:e=>!e.o.aiAssistant.aiAssistantCallback,tooltip:"AI Commands",list:{aiImproveWritingPrompt:"Improve writing",aiMakeShorterPrompt:"Make shorter",aiMakeLongerPrompt:"Make longer",aiSimplifyLanguagePrompt:"Simplify language",aiSummarizePrompt:"Summarize",aiContinuePrompt:"Continue",aiChangeToneProfessionalPrompt:"Change tone to professional",aiChangeToneFriendlyPrompt:"Change tone to friendly",aiChangeToneFormalPrompt:"Change tone to formal",aiChangeToneCasualPrompt:"Change tone to casual",aiChangeToneDirectPrompt:"Change tone to direct",aiChangeToneConfidentPrompt:"Change tone to confident",aiChangeStyleBusinessPrompt:"Change style to business",aiChangeStyleLegalPrompt:"Change style to legal",aiChangeStyleJournalismPrompt:"Change style of journalism",aiChangeStylePoeticPrompt:"Change style to poetic",aiTranslateToSpanishPrompt:"Translate to Spanish",aiTranslateToFrenchPrompt:"Translate to French",aiTranslateToGermanPrompt:"Translate to German",aiTranslateToItalianPrompt:"Translate to Italian",aiTranslateToPortuguesePrompt:"Translate to Portuguese",aiTranslateToEnglishPrompt:"Translate to English",aiTranslateToChinesePrompt:"Translate to Chinese",aiTranslateToJapanesePrompt:"Translate to Japanese",aiTranslateToKoreanPrompt:"Translate to Korean",aiTranslateToRussianPrompt:"Translate to Russian",aiTranslateToArabicPrompt:"Translate to Arabic"},exec(e,t,{control:i}){e.e.fire("generateAiAssistantForm.ai-assistant",i.name)}},o.Config.prototype.controls["ai-assistant"]={isDisabled:e=>!e.o.aiAssistant.aiAssistantCallback,hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec(e,t,i){e.e.fire("generateAiAssistantForm.ai-assistant")}}},77367(e,t,i){"use strict";i.d(t,{normalizeColor:()=>r});var s=i(93387),o=i(4040);let r=e=>{let t=["#"],i=(0,s.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}},77483(e,t,i){"use strict";i.d(t,{ConfigDeepFlatten:()=>function e(t){return(0,c.keys)(t,!1).reduce((i,s)=>(i[s]=(0,o.isPlainObject)(t[s])?e(t[s]):t[s],i),{})},ConfigFlatten:()=>h,ConfigProto:()=>function e(t,i,c=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let h=a.Config.defaultOptions;if((0,r.isString)(t.preset)){if(void 0!==h.presets[t.preset]){let e=h.presets[t.preset];Object.keys(e).forEach(i=>{(0,n.isVoid)(t[i])&&(t[i]=e[i])})}delete t.preset}let d={};return Object.keys(t).forEach(r=>{let n=t[r],a=i?i[r]:null;if((0,o.isPlainObject)(n)&&(0,o.isPlainObject)(a)&&!(0,l.isAtom)(n)){d[r]=e(n,a,c+1);return}if(0!==c&&(0,s.isArray)(n)&&!(0,l.isAtom)(n)&&(0,s.isArray)(a)){d[r]=[...n,...a.slice(n.length)];return}d[r]=n}),Object.setPrototypeOf(d,i),d}});var s=i(17312),o=i(62101),r=i(85932),n=i(18303),a=i(5266),l=i(54794),c=i(71125);function h(e){return(0,c.keys)(e,!1).reduce((t,i)=>(t[i]=e[i],t),{})}},77911(e,t,i){"use strict";i.d(t,{ajaxInstances:()=>n,send:()=>a});var s=i(65946),o=i(73714),r=i(89446);let n=new WeakMap;function a(e,t){let i=(0,r.buildData)(e,t),a=t=>{e.j.progressbar.show().progress(t),t>=100&&e.j.progressbar.hide()},l=(t,i)=>{let r=new o.Ajax({xhr(){let t=new XMLHttpRequest;return void 0!==e.j.ow.FormData&&t.upload?(i(10),t.upload.addEventListener("progress",e=>{if(e.lengthComputable){let t=e.loaded/e.total;i(t*=100)}},!1)):i(100),t},method:e.o.method||"POST",data:t,url:(0,s.isFunction)(e.o.url)?e.o.url(t):e.o.url,headers:e.o.headers,queryBuild:e.o.queryBuild,contentType:e.o.contentType.call(e,t),withCredentials:e.o.withCredentials||!1}),a=n.get(e);return a||(a=new Set,n.set(e,a)),a.add(r),e.j.e.one("beforeDestruct",r.destruct),r.send().then(e=>e.json()).catch(e=>({success:!1,data:{messages:[e]}})).finally(()=>{r.destruct(),a?.delete(r)})};return((0,s.isFunction)(e.o.customUploadFunction)&&(l=e.o.customUploadFunction),(0,s.isPromise)(i))?i.then(e=>l(e,a)).catch(t=>{e.o.error.call(e,t)}):l(i,a)}},78462(e,t,i){"use strict";i.d(t,{states:()=>l,transactions:()=>c});var s=i(81937),o=i(23211),r=i(28712),n=i(59841),a=i(51640);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"},c={[l.START]:{exec(e){let{element:t,jodit:i,style:s,mode:r,collapsed:c}=e;if((0,a.isInsideInvisibleElement)(t,i.editor)||!c&&o.Dom.isEmptyContent(t))return{...e,next:l.END};let h=(0,a.getSuitParent)(s,t,i.editor)||(0,a.getSuitChild)(s,t);if(h)return{...e,next:l.ELEMENT,element:h};let d=(0,a.suitableClosest)(s,t,i.editor);return s.elementIsList&&o.Dom.isList(d)?{...e,next:l.LIST}:d?{...e,next:l.EXTRACT}:{...e,next:r!==n.UNWRAP?l.UNWRAP_CHILDREN:l.END}}},[l.LIST]:{exec(e){let{element:t,jodit:i,mode:r}=e;if(r!==n.INITIAL&&r!==n.UNWRAP&&r!==n.REPLACE)return{...e,next:l.END};let a=o.Dom.closest(t,"li",i.editor);return a&&o.Dom.closest(t,s.LIST_TAGS,i.editor)?{...e,element:a,next:l.TOGGLE_LIST}:{...e,next:l.END}}},[l.TOGGLE_LIST]:{exec:e=>({...e,mode:(0,a.toggleOrderedList)(e.style,e.element,e.jodit,e.mode),next:l.END})},[l.EXTRACT]:{exec(e){let{element:t,jodit:i,style:s}=e,n=(0,a.suitableClosest)(s,t,i.editor);return((0,r.assert)(n,"This place should have an element"),!s.elementIsBlock&&s.options.attributes?.style&&o.Dom.isBlock(n))?{...e,next:l.WRAP}:(s.elementIsBlock||(0,a.extractSelectedPart)(n,t,i),{...e,element:n,next:l.ELEMENT})}},[l.UNWRAP_CHILDREN]:{exec(e){let{element:t,style:i}=e;return(0,a.unwrapChildren)(i,t)?{...e,mode:n.UNWRAP,next:l.END}:{...e,next:l.WRAP}}},[l.WRAP]:{exec(e){let{element:t,jodit:i,style:s}=e,o=(0,a.wrap)(s,t,i);return{...e,next:s.elementIsList?l.END:l.CHANGE,mode:n.WRAP,element:o}}},[l.ELEMENT]:{exec(e){let{style:t,element:i,jodit:s}=e;return(0,a.toggleAttributes)(t,i,s,n.INITIAL,!0)!==n.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:s,mode:r}=e,c=(0,a.toggleAttributes)(t,i,s,e.mode);return r!==n.WRAP&&c===n.UNSET&&!i.attributes.length&&o.Dom.isTag(i,t.element)?{...e,next:l.UNWRAP}:{...e,mode:c,next:l.END}}},[l.UNWRAP]:{exec:e=>e.element.attributes.length&&o.Dom.isTag(e.element,e.style.element)?{...e,next:l.REPLACE_DEFAULT}:(o.Dom.unwrap(e.element),{...e,mode:n.UNWRAP,next:l.END})},[l.REPLACE_DEFAULT]:{exec:e=>(o.Dom.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),{...e,mode:n.REPLACE,next:l.END})},[l.END]:{exec:e=>e}}},78690(e,t,i){"use strict";var s=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",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=s.Dom.last(e.editor,e=>s.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&&s.Dom.isBlock(t.target)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))})})})},78982(e,t,i){"use strict";i.d(t,{asArray:()=>o});var s=i(17312);let o=e=>(0,s.isArray)(e)?e:[e]},79310(e,t,i){"use strict";i.d(t,{readLink:()=>r});var s=i(23211),o=i(7909);function r(e,t,i){let r=s.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)}},79803(e,t,i){"use strict";var s=i(5266);s.Config.prototype.toolbarSticky=!0,s.Config.prototype.toolbarDisableStickyForMobile=!0,s.Config.prototype.toolbarStickyOffset=0},79821(e,t,i){"use strict";i.d(t,{Create:()=>s.Create});var s=i(76517)},79947(e,t,i){"use strict";i.d(t,{clearTimeout:()=>r,setTimeout:()=>o});var s=i(81937);function o(e,t,...i){return t?s.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function r(e){s.globalWindow.clearTimeout(e)}},80202(e,t,i){"use strict";var s=i(5266);s.Config.prototype.minWidth=200,s.Config.prototype.maxWidth="100%",s.Config.prototype.minHeight=200,s.Config.prototype.maxHeight="auto",s.Config.prototype.saveHeightInStorage=!1},80251(e,t,i){"use strict";i.d(t,{Component:()=>c});var s=i(25045),o=i(91231),r=i(69364),n=i(28077),a=i(65946);let l=new Map;class c{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(e,t,i){let s=[this.componentName];return e&&s.push("__"+(e=e.replace(/[^a-z0-9-]/gi,"-"))),t&&(s.push("_",t),s.push("_",(0,a.isVoid)(i)?"true":i.toString())),s.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 s=l.get(this),o=s?.[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,s._)(this,"__componentName",void 0),(0,s._)(this,"async",new o.Async),(0,s._)(this,"uid",void 0),(0,s._)(this,"ownerWindow",window),(0,s._)(this,"__componentStatus",r.STATUSES.beforeInit),this.uid="jodit-uid-"+(0,n.uniqueUid)()}}(0,s._)(c,"STATUSES",r.STATUSES)},80347(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg>'},80512(e,t,i){"use strict";i.d(t,{Dlgs:()=>a});var s=i(28077),o=i(28686),r=i(71125),n=i(37333);class a{dlg(e){let t=(0,s.getPopupViewRoot)(this.o,this.container,this.od.body),i=new n.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),n.Confirm.call(this.dlg({closeOnClickOverlay:!0}),e,t,i)}prompt(e,t,i,s,o){return e=l(e,this),t=l(t,this),s=l(s,this),n.Prompt.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,s,o)}alert(e,t,i,s){return e=l(e,this),t=l(t,this),n.Alert.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,s)}}function l(e,t){return(0,o.isString)(e)&&!(0,o.isHTML)(e)&&(e=t.i18n(e)),e}},80515(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg>'},80538(e,t,i){"use strict";var s=i(81937),o=i(29434),r=i(5266),n=i(24772),a=i.n(n),l=i(66547),c=i.n(l);r.Config.prototype.fullsize=!1,r.Config.prototype.globalFullSize=!0,o.Icon.set("fullsize",a()).set("shrink",c()),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:s.MODE_SOURCE+s.MODE_WYSIWYG}},80840(e,t,i){"use strict";i.d(t,{wait:()=>n});var s=i(69364),o=i(91565),r=i(33201);function n(e){return(t,i)=>{let n=t[i];if(!(0,o.isFunction)(n))throw(0,r.error)("Handler must be a Function");t.hookStatus(s.STATUSES.ready,t=>{let{async:s}=t,o=t[i],r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...n){s.clearTimeout(r),e(t)?o.apply(t,n):r=s.setTimeout(()=>i(...n),10)}})})}}},80951(e,t,i){"use strict";i.d(t,{checkJoinTwoLists:()=>n});var s=i(23211),o=i(71125),r=i(15200);function n(e,t,i){let n=s.Dom.findSibling(t,i),a=s.Dom.findSibling(t,!i);if(!s.Dom.closest(t,s.Dom.isElement,e.editor)&&s.Dom.isList(n)&&s.Dom.isList(a)&&s.Dom.isTag(n.lastElementChild,"li")&&s.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:c}=e.s,h=n.lastElementChild,d=a.firstElementChild;return(0,o.call)(i?s.Dom.prepend:s.Dom.append,d,t),s.Dom.moveContent(a,n,!i,(0,r.getMoveFilter)(e)),s.Dom.safeRemove(a),(0,o.call)(i?s.Dom.append:s.Dom.prepend,h,t),(0,o.call)(i?l:c,t),!0}return!1}},80991(e,t,i){"use strict";i.d(t,{clearCenterAlign:()=>c,css:()=>l});var s=i(22289),o=i(62101),r=i(19147),n=i(57821),a=i(74264);function l(e,t,i,c=!1){if((0,s.isBoolean)(i)&&(c=i,i=void 0),(0,o.isPlainObject)(t)||void 0!==i){let s=(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)s(e,(0,n.camelCase)(i[o]),t[i[o]])}else s(e,(0,n.camelCase)(t),i);return""}let h=(0,a.kebabCase)(t),d=e.ownerDocument||document,u=!!d&&(d.defaultView||d.parentWindow),p=e.style[t],m="";return void 0!==p&&""!==p?m=p:u&&!c&&(m=u.getComputedStyle(e).getPropertyValue(h)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(m.toString())&&(m=parseInt(m.toString(),10)),(0,r.normalizeCssValue)(t,m)}let c=e=>{"block"===l(e,"display")&&l(e,"display","");let{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}},81008(e,t,i){"use strict";var s=i(29434),o=i(5266),r=i(51457),n=i.n(r),a=i(23602),l=i.n(a),c=i(86899),h=i.n(c),d=i(95320),u=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"},s.Icon.set("copy",n()).set("cut",l()).set("paste",h()).set("select-all",u())},81144(e,t,i){"use strict";var s=i(81937),o=i(28077),r=i(65946);i(17326),o.pluginSystem.add("iframe",e=>{let t=e.options;e.e.on("afterSetMode",()=>{e.isEditorMode()&&e.s.focus()}).on("generateDocumentStructure.iframe",(e,i)=>{let s=e||i.iframe.contentWindow.document;if(s.open(),s.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>'),s.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach(e=>{let t=s.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),s.head&&s.head.appendChild(t)}),t.iframeStyle){let e=s.createElement("style");e.innerHTML=t.iframeStyle,s.head&&s.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,n=()=>{(0,r.attr)(i.body,"contenteditable",e.getMode()!==s.MODE_SOURCE&&!e.getReadOnly()||null)},a=e=>{let t=/<body.*<\/body>/im,i="{%%BODY%%}",s=t.exec(e);return s&&(e=e.replace(t,i).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(i,s[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),n(),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",n),"auto"===t.height){i.documentElement&&(i.documentElement.style.overflowY="hidden");let s=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",s).on([e.iframe,e.ew,i.documentElement],"load",s).on(i,"readystatechange DOMContentLoaded",s),"function"==typeof ResizeObserver){let t=new ResizeObserver(s);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=>{e.events?.fire(e.ow,t)}),!1})})})},81488(e,t,i){"use strict";i.d(t,{inputValidators:()=>s,selectValidators:()=>o});var s=i(48776),o=i(6490)},81576(e,t,i){"use strict";i.d(t,{generateCriticalCSS:()=>r});var s=i(25045),o=i(88475);function r(e){let t=(e,t=e.ownerDocument.styleSheets)=>(0,o.toArray)(t).map(e=>{try{return(0,o.toArray)(e.cssRules)}catch{}return[]}).flat().filter(t=>{try{return!!(t&&e.matches(t.selectorText))}catch{}return!1});class i{generateCSS(){let e="";for(let t in this.css)if(!/:not\(/.test(t)){for(let i in e+=t+" { ",this.css[t])e+=i+": "+this.css[t][i]+"; ";e+=`}
253
+ `}return e}constructor(i,o,r){(0,s._)(this,"css",{});let n=r||{},a=t=>{let i=t.selectorText.split(",").map(e=>e.trim()).sort().join(",");!1==!!this.css[i]&&(this.css[i]={});let s=t.style.cssText.split(/;(?![A-Za-z0-9])/);for(let t=0;t<s.length;t++){if(!s[t])continue;let o=s[t].split(":");o[0]=o[0].trim(),o[1]=o[1].trim(),this.css[i][o[0]]=o[1].replace(/var\(([^)]+)\)/g,(t,i)=>{let[s,o]=i.split(",");return(e.ew.getComputedStyle(e.editor).getPropertyValue(s.trim())||o||t).trim()})}};(()=>{let s=i.innerHeight,r=o.createTreeWalker(e.editor,NodeFilter.SHOW_ELEMENT,()=>NodeFilter.FILTER_ACCEPT);for(;r.nextNode();){let e=r.currentNode;if(e.getBoundingClientRect().top<s||n.scanFullPage){let i=t(e);if(i)for(let e=0;e<i.length;e++)a(i[e])}}})()}}try{return new i(e.ew,e.ed,{scanFullPage:!0}).generateCSS()}catch{}return""}},81582(e,t,i){"use strict";var s=i(31635),o=i(81937),r=i(84839),n=i(28077),a=i(91206);i(69023);var l=i(2923);class c extends a.Plugin{afterInit(e){}__onTab(e){if(e.key===o.KEY_TAB&&this.__onShift(e.shiftKey))return!1}__onCommand(e){if(("indent"===e||"outdent"===e)&&this.__onShift("outdent"===e))return!1}__onShift(e){let t=(0,l.onTabInsideLi)(this.j,e);return t&&this.j.e.fire("afterTab",e),t}beforeDestruct(e){}}(0,s.__decorate)([(0,r.watch)(":keydown.tab")],c.prototype,"__onTab",null),(0,s.__decorate)([(0,r.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),n.pluginSystem.add("tab",c)},81875(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg>'},81937(e,t,i){"use strict";i.r(t),i.d(t,{ACCURACY:()=>U,APP_VERSION:()=>s,BASE_PATH:()=>eu,BASE_PATH_IS_MIN:()=>ep,BR:()=>V,CLIPBOARD_ID:()=>ef,COMMAND_KEYS:()=>W,EMULATE_DBLCLICK_TIMEOUT:()=>et,ES:()=>o,FAT_MODE:()=>c,HOMEPAGE:()=>h,INSEPARABLE_TAGS:()=>x,INSERT_AS_HTML:()=>ei,INSERT_AS_TEXT:()=>eo,INSERT_CLEAR_HTML:()=>es,INSERT_ONLY_TEXT:()=>er,INVISIBLE_SPACE:()=>p,INVISIBLE_SPACE_REG_EXP:()=>g,INVISIBLE_SPACE_REG_EXP_END:()=>f,INVISIBLE_SPACE_REG_EXP_START:()=>_,IS_BLOCK:()=>C,IS_ES_MODERN:()=>r,IS_ES_NEXT:()=>n,IS_IE:()=>X,IS_INLINE:()=>E,IS_MAC:()=>ea,IS_PROD:()=>a,IS_TEST:()=>l,KEY_ALIASES:()=>el,KEY_ALT:()=>N,KEY_BACKSPACE:()=>j,KEY_DELETE:()=>q,KEY_DOWN:()=>B,KEY_ENTER:()=>A,KEY_ESC:()=>P,KEY_F3:()=>F,KEY_LEFT:()=>M,KEY_META:()=>k,KEY_RIGHT:()=>R,KEY_SPACE:()=>O,KEY_TAB:()=>L,KEY_UP:()=>z,LIST_TAGS:()=>I,MARKER_CLASS:()=>ee,MODE_SOURCE:()=>G,MODE_SPLIT:()=>K,MODE_WYSIWYG:()=>Y,NBSP_SPACE:()=>m,NEARBY:()=>H,NO_EMPTY_TAGS:()=>D,PARAGRAPH:()=>$,PASSIVE_EVENTS:()=>ev,SAFE_COUNT_CHANGE_CALL:()=>en,SET_TEST:()=>d,SOURCE_CONSUMER:()=>e_,SPACE_REG_EXP:()=>v,SPACE_REG_EXP_END:()=>y,SPACE_REG_EXP_START:()=>b,TEMP_ATTR:()=>em,TEXT_HTML:()=>Z,TEXT_PLAIN:()=>J,TEXT_RTF:()=>Q,TOKENS:()=>u,globalDocument:()=>S,globalWindow:()=>w,lang:()=>eg});let s="4.7.5",o="es2021",r=!0,n=!0,a=!0,l=!1,c=!0,h="https://xdsoft.net/jodit/",d=()=>l=!0,u={},p="\uFEFF",m=" ",g=()=>/[\uFEFF]/g,f=()=>/[\uFEFF]+$/g,_=()=>/^[\uFEFF]+/g,v=()=>/[\s\n\t\r\uFEFF\u200b]+/g,b=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,w="undefined"!=typeof window?window:void 0,S="undefined"!=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,E=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,I=new Set(["ul","ol"]),T=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],x=new Set([...T,"br","hr"]),D=new Set(T),k="Meta",j="Backspace",L="Tab",A="Enter",P="Escape",N="Alt",M="ArrowLeft",z="ArrowUp",R="ArrowRight",B="ArrowDown",O="Space",q="Delete",F="F3",H=5,U=10,W=[k,j,q,z,B,R,M,A,P,F,L],V="br",$="p",Y=1,G=2,K=3,X="undefined"!=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",es="insert_clear_html",eo="insert_as_text",er="insert_only_text",en=10,ea=void 0!==w&&/Mac|iPod|iPhone|iPad/.test(w.navigator.platform),el={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ea?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},ec=e=>{let t=e.split("/");return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:!0}:{basePath:e,isMin:!0}},{basePath:eh,isMin:ed}=(()=>{if("undefined"==typeof document)return{basePath:"",isMin:!0};let e=S.currentScript;if(e)return ec(e.src);let t=S.querySelectorAll("script[src]");return t&&t.length?ec(t[t.length-1].src):ec(w.location.href)})(),eu=eh,ep=ed,em="data-jodit-temp",eg={},ef="clipboard",e_="source-consumer",ev=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},81987(e,t,i){"use strict";i.d(t,{Mods:()=>o});var s=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}_`,n=(i||this.container).classList;return null!=o&&n.remove(`${r}${o.toString().toLowerCase()}`),(0,s.isVoid)(t)||""===t||n.add(`${r}${t.toString().toLowerCase()}`),this.mods[e]=t,this.afterSetMod(e,t),this}getMod(e){return this.mods[e]??null}}},82147(e,t,i){"use strict";var s=i(5266);s.Config.prototype.limitWords=!1,s.Config.prototype.limitChars=!1,s.Config.prototype.limitHTML=!1},82166(e,t,i){"use strict";function s(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:()=>s})},82495(e,t,i){"use strict";i.d(t,{createSourceEditor:()=>r});var s=i(65946),o=i(8105);function r(e,t,i,r,n){let a;if((0,s.isFunction)(e))a=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){a=new o.AceEditor(t,i,r,n);break}default:a=new o.TextAreaEditor(t,i,r,n)}return a.init(t),a.onReadyAlways(()=>{a.setReadOnly(t.o.readonly)}),a}},82658(e,t,i){"use strict";i.d(t,{applyStyles:()=>s.applyStyles,cleanFromWord:()=>o.cleanFromWord,htmlspecialchars:()=>r.htmlspecialchars,nl2br:()=>n.nl2br,safeHTML:()=>a.safeHTML,sanitizeHTMLElement:()=>a.sanitizeHTMLElement,stripTags:()=>l.stripTags});var s=i(30893),o=i(1277),r=i(6609),n=i(48838),a=i(48155),l=i(22852)},82794(e,t,i){"use strict";i.d(t,{toggleAttributes:()=>g});var s=i(81937),o=i(23211),r=i(28077),n=i(28686),a=i(19147),l=i(18073),c=i(74264),h=i(93640),d=i(80991),u=i(36400),p=i(98394);let m="toggleAttributes";function g(e,t,i,_,v=!1){if(!v&&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=>{let g=b[m];switch(m){case"style":var y;y=_,(0,h.assert)((0,n.isPlainObject)(g)&&(0,l.size)(g),"Style must be an object"),Object.keys(g).forEach(n=>{let l=t.style.getPropertyValue((0,c.kebabCase)(n)),h=g[n];if(""!==l||null!=h){if(((e,t,i)=>{let n=e.create.element(t.tagName.toLowerCase());n.style.cssText=t.style.cssText,(e=>{if(void 0!==(0,u.dataBind)(e,"shadowRoot"))return(0,u.dataBind)(e,"shadowRoot");let t=(0,r.getContainer)(e),i=s.globalDocument.createElement("iframe");(0,d.css)(i,{width:0,height:0,position:"absolute",border:0}),i.src="about:blank",t.appendChild(i);let o=i.contentWindow?.document,n=o?o.body:e.od.body;return(0,u.dataBind)(e,"shadowRoot",n),n})(e).appendChild(n);let a=(0,d.css)(n,i);return o.Dom.safeRemove(n),a})(i,t,n)===(0,a.normalizeCssValue)(n,h)){if(!l)return;v||(0,d.css)(t,n,null),y=f(e,t,y=p.UNSET);return}y=p.CHANGE,v||((0,d.css)(t,n,h),y=f(e,t,y))}}),_=y;break;case"className":case"class":_=((e,t,i,s,o)=>{(0,h.assert)((0,n.isString)(t),"Class name must be a string");let r=e.e.fire.bind(e.e,`${p._PREFIX}AfterToggleAttribute`);return i.classList.contains(t.toString())?(s=p.UNSET,o||(i.classList.remove(t),0===i.classList.length&&((0,h.attr)(i,"class",null),r(s,i,"class",null)))):(s=p.CHANGE,o||(i.classList.add(t),r(s,i,"class",t))),s})(i,g,t,_,v);break;default:_=((e,t,i,s,o,r)=>{(0,h.assert)((0,n.isString)(t)||(0,n.isNumber)(t)||(0,n.isBoolean)(t)||null==t,"Attribute value must be a string or number or boolean or null");let a=e.e.fire.bind(e.e,`${p._PREFIX}AfterToggleAttribute`);return(0,h.attr)(i,s)===t?(o||(0,h.attr)(i,s,null),r=p.UNSET,o||a(r,i,s,t)):(r=p.CHANGE,o||((0,h.attr)(i,s,t),a(r,i,s,t))),r})(i,g,t,m,v,_)}}),_}function f(e,t,i){return(0,h.attr)(t,"style")||((0,h.attr)(t,"style",null),t.tagName.toLowerCase()===e.defaultTag&&(o.Dom.unwrap(t),i=p.UNWRAP)),i}},83207(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},83215(e,t,i){"use strict";i.d(t,{innerWidth:()=>s});let s=(e,t)=>{let i=t.getComputedStyle(e);return e.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}},83335(e,t,i){"use strict";i.d(t,{wrapUnwrappedText:()=>r});var s=i(23211),o=i(23175);function r(e,t,i){let r=i.editor,n=i.createInside,a=(e,t="previousSibling")=>{let n=e,a=e;for(;a&&!(0,o.isMarker)(a)&&!s.Dom.isTag(a,i.o.enter)&&(n=a,a=a[t]?a[t]:a.parentNode&&!s.Dom.isBlock(a.parentNode)&&a.parentNode!==r?a.parentNode:null,!s.Dom.isBlock(a)););return n},l=a(t),c=a(t,"nextSibling"),h=i.s.createRange();h.setStartBefore(l),h.setEndAfter(c);let d=h.extractContents(),u=n.element(e.element);return u.appendChild(d),s.Dom.safeInsertNode(h,u),e.elementIsBlock&&s.Dom.isEmpty(u)&&!s.Dom.isTag(u.firstElementChild,"br")&&u.appendChild(n.element("br")),u}},83376(e,t,i){"use strict";i.d(t,{getBlockWrapper:()=>function e(t,i,r=s.IS_BLOCK){let n=t,a=i.editor;do{if(!n||n===a)break;if(r.test(n.nodeName)){if(o.Dom.isLeaf(n))return n;return e(n.parentNode,i,/^li$/i)||n}n=n.parentNode}while(n&&n!==a)return null}});var s=i(81937),o=i(23211)},83389(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg>'},83653(e,t,i){"use strict";i.d(t,{isNormalNode:()=>r});var s=i(23211),o=i(23175);function r(e){return!!(e&&!s.Dom.isEmptyTextNode(e)&&!s.Dom.isTemporary(e)&&!(0,o.isMarker)(e))}},84578(e,t,i){"use strict";i.d(t,{CommitStyle:()=>l});var s=i(25045),o=i(81937),r=i(57821),n=i(98394),a=i(96127);class l{isApplied(e,t){let i=this.__applyMap.get(e);return!!i&&i[t]}setApplied(e,t){let i=this.__applyMap.get(e)??{};i[t]=!0,this.__applyMap.set(e,i)}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)(n._PREFIX+"_"+i),t[i])}),(0,a.ApplyStyle)(e,this)}finally{i.forEach(i=>{e.e.off((0,r.camelCase)(n._PREFIX+"_"+i),t[i])}),this.__applyMap=new WeakMap}e.synchronizeValues(),e.e.fire("afterCommitStyle",this)}constructor(e){(0,s._)(this,"options",void 0),(0,s._)(this,"__applyMap",void 0),this.options=e,this.__applyMap=new WeakMap}}},84839(e,t,i){"use strict";i.r(t),i.d(t,{autobind:()=>s.autobind,cache:()=>o.cache,cacheHTML:()=>o.cacheHTML,cached:()=>o.cached,component:()=>r.component,debounce:()=>n.debounce,derive:()=>a.derive,getPropertyDescriptor:()=>p.getPropertyDescriptor,hook:()=>l.hook,idle:()=>c.idle,nonenumerable:()=>h.nonenumerable,persistent:()=>d.persistent,throttle:()=>n.throttle,wait:()=>u.wait,watch:()=>p.watch});var s=i(49574),o=i(51676),r=i(91672),n=i(55184),a=i(24968),l=i(29200),c=i(35718),h=i(41360),d=i(77036),u=i(80840),p=i(68616)},85305(e,t,i){"use strict";i.d(t,{PluginSystem:()=>u});var s=i(25045),o=i(81937),r=i(28077),n=i(45664),a=i(28686),l=i(55810),c=i(3050),h=i(25974),d=i(86189);class u{get size(){return this.__items.size}add(e,t){this.__items.set((0,d.normalizeName)(e),t),r.eventEmitter.fire(`plugin:${e}:ready`)}get(e){return this.__items.get((0,d.normalizeName)(e))}remove(e){this.__items.delete((0,d.normalizeName)(e))}__getFullPluginsList(e){let t=[];return this.__items.forEach((i,s)=>{(!e||e.has(s))&&t.push([s,i])}),t}__init(e){var t;let{extraList:i,disableList:s,filter:r}={extraList:(t=e).o.extraPlugins.map(e=>(0,a.isString)(e)?{name:e}:e),disableList:new Set((0,n.splitArray)(t.o.disablePlugins).map(d.normalizeName)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null},u=new Map,p={},m=new Set;e.__plugins=p;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(r).forEach(([i,o])=>{if(s.has(i)||u.has(i))return;let r=o?.requires;if(r&&(0,a.isArray)(r)&&r.length){if(r.some(e=>s.has(e)))return;if(!r.every(e=>u.has(e)))return void m.add(i)}t=!0;let n=(0,h.makeInstance)(e,o);if(!n){u.set(i,null),m.delete(i);return}(0,l.init)(e,i,o,n,u,m),p[i]=n}),t&&(e.e.fire("updatePlugins"),g())};i&&i.length&&(0,c.loadExtras)(this.__items,e,i,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(p).forEach(t=>{let i=p[t];(0,a.isDestructable)(i)&&i.destruct(e),delete p[t]}),delete e.__plugins}),o.IS_PROD||m.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(){(0,s._)(this,"__items",new Map)}}},85932(e,t,i){"use strict";i.d(t,{isString:()=>o,isStringArray:()=>r});var s=i(17312);function o(e){return"string"==typeof e}function r(e){return(0,s.isArray)(e)&&o(e[0])}},86038(e,t,i){"use strict";i(5266).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},86122(e,t,i){"use strict";i.d(t,{FileBrowserFiles:()=>o});var s=i(4099);class o extends s.UIGroup{className(){return"FileBrowserFiles"}}},86189(e,t,i){"use strict";i.d(t,{normalizeName:()=>o});var s=i(74264);function o(e){return(0,s.kebabCase)(e).toLowerCase()}},86236(e,t,i){"use strict";var s=i(25045),o=i(81937),r=i(23211),n=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,s._)(this,"charCounter",null),(0,s._)(this,"wordCounter",null),(0,s._)(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,s._)(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))}}n.pluginSystem.add("stat",l)},86581(e,t,i){"use strict";function s(e,t){let[i,s]=t.split("::");e.execCommand(i,null,s)}i.d(t,{execSpellCommand:()=>s})},86634(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg>'},86878(e,t,i){"use strict";i.d(t,{getContentWidth:()=>s.getContentWidth,getScrollParent:()=>o.getScrollParent,innerWidth:()=>r.innerWidth,offset:()=>a.offset,position:()=>l.position,size:()=>n.size});var s=i(54447),o=i(34027),r=i(83215),n=i(18073),a=i(69143),l=i(23599)},86899(e){e.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg>'},87329(e,t,i){"use strict";i.d(t,{UITextArea:()=>l});var s=i(25045),o=i(31635),r=i(84839),n=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=e??5}constructor(e,t){super(e,t),(0,s._)(this,"state",{...l.defaultState}),Object.assign(this.state,t),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}}(0,s._)(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)([n.component],l)},87624(e,t,i){"use strict";i.d(t,{SentenceFinder:()=>o.SentenceFinder,clearSelectionWrappers:()=>s.clearSelectionWrappers,clearSelectionWrappersFromHTML:()=>s.clearSelectionWrappersFromHTML,getSelectionWrappers:()=>s.getSelectionWrappers,highlightTextRanges:()=>s.highlightTextRanges});var s=i(19213),o=i(59276)},87908(e,t,i){"use strict";var s=i(65946),o=i(29434),r=i(5266),n=i(223),a=i.n(n);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,s.memorizeExec)(e,t,{control:i},e=>e)}},88329(e,t,i){"use strict";i.d(t,{Confirm:()=>n});var s=i(91565),o=i(53681),r=i(76841);function n(e,t,i){let n=this instanceof r.Dialog?this:new r.Dialog({closeOnClickOverlay:!0}),a=n.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),l=n.c.element("label");(0,s.isFunction)(t)&&(i=t,t=void 0),l.appendChild(n.c.fromHTML(e)),a.appendChild(l);let c=e=>()=>{i&&!1===i(e)||n.close()},h=(0,o.Button)(n,"cancel","Cancel"),d=(0,o.Button)(n,"ok","Yes");return h.onAction(c(!1)),d.onAction(c(!0)),n.e.on(a,"submit",()=>(c(!0)(),!1)),n.setFooter([d,h]),n.open(a,t||"&nbsp;",!0,!0),d.focus(),n}},88475(e,t,i){"use strict";i.d(t,{toArray:()=>r});var s=i(23283),o=i(43379);let r=(...e)=>((0,s.isNativeFunction)(Array.from)?Array.from:(0,o.reset)("Array.from")??Array.from).apply(Array,e)},88497(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},88580(e,t,i){"use strict";var s=i(5266);s.Config.prototype.showCharsCounter=!0,s.Config.prototype.countHTMLChars=!1,s.Config.prototype.countTextSpaces=!1,s.Config.prototype.showWordsCounter=!0},88952(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(27795),a=i(28077),l=i(65946),c=i(91206),h=i(4099),d=i(56490),u=i(4274);i(89873);class p extends c.Plugin{get popup(){return new d.Popup(this.jodit,!1)}get toolbar(){return(0,u.makeCollection)(this.jodit,this.popup)}onClick(e){let t=this.elmsList,i=n.Dom.isTag(e,"img")?e:n.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 s=this.j.o.popup[t];e=(0,l.isFunction)(s)?s(this.j,i,this.popup.close):s,(0,l.isArray)(e)&&(this.toolbar.build(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&&`
254
254
  `!==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&&h.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(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 n.Dom.isElement(t)&&t===e.endContainer&&n.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,s._)(this,"type",null),(0,s._)(this,"previousTarget",void 0),(0,s._)(this,"snapRange",null),(0,s._)(this,"elmsList",(0,l.keys)(this.j.o.popup,!1).filter(e=>!this.isExcludedTarget(e)))}}(0,s._)(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)},89081(e,t,i){"use strict";i.d(t,{unwrapChildren:()=>a});var s=i(23211),o=i(93640),r=i(9703),n=i(73019);function a(e,t){let i,a=[],l=[],c=e.options.attributes?.style;if(t.firstChild){let h=s.Dom.eachGen(t),d=h.next();for(;!d.done;){let t=d.value;(0,n.isSuitElement)(e,t,!0)&&(!c||(0,r.hasSameStyleKeys)(t,c))?(void 0===i&&(i=!0),a.push(t)):c&&(0,n.isSameStyleChild)(e,t)?(void 0===i&&(i=!1),l.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||a.push(t)})):s.Dom.isEmptyTextNode(t)||void 0!==i||(i=!1),d=h.next()}}return l.forEach(e=>e()),a.forEach(s.Dom.unwrap),!!i}},89097(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg>'},89308(e,t,i){"use strict";i.d(t,{get:()=>r});var s=i(85932),o=i(18303);function r(e,t){if(!(0,s.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{return null}return(0,o.isVoid)(r)?null:r}},89317(e,t,i){"use strict";var s=i(17312),o=i(41324),r=i.n(o),n=i(63837),a=i(53414);let l={};l={ar:r(),cs_cz:r(),de:r(),en:n,es:r(),fi:r(),fr:r(),he:r(),hu:r(),id:r(),it:r(),ja:r(),ko:r(),mn:r(),nl:r(),no:r(),pl:r(),pt_br:r(),ru:r(),tr:r(),ua:r(),zh_cn:r(),zh_tw:r()};let c=e=>e?e.default||e:{},h={};(0,s.isArray)(c(a))&&c(a).forEach((e,t)=>{h[t]=e}),Object.keys(l).forEach(e=>{let t=c(l[e]);(0,s.isArray)(t)?(l[e]={},t.forEach((t,i)=>{l[e][h[i]]=t})):l[e]=t}),t.default=l},89446(e,t,i){"use strict";i.d(t,{buildData:()=>o});var s=i(65946);function o(e,t){if((0,s.isFunction)(e.o.buildData))return e.o.buildData.call(e,t);let i=e.ow.FormData;if(void 0!==i){if(t instanceof i||(0,s.isString)(t))return t;let e=new i;return Object.keys(t).forEach(i=>{e.append(i,t[i])}),e}return t}},89636(e,t,i){"use strict";i.d(t,{TabsWidget:()=>l});var s=i(16964),o=i(23211),r=i(91565),n=i(7909),a=i(4099);let l=(e,t,i)=>{let l=e.c.div("jodit-tabs"),c=e.c.div("jodit-tabs__wrapper"),h=e.c.div("jodit-tabs__buttons");(0,n.attr)(h,{role:"tablist","aria-orientation":"horizontal"});let d={},u=[],p="";l.appendChild(h),l.appendChild(c);let m=e=>{d[e]&&(u.forEach(e=>{e.state.activated=!1}),Object.values(d).forEach(({tab:e})=>e.classList.remove("jodit-tab_active")),d[e].button.state.activated=!0,d[e].tab.classList.add("jodit-tab_active"))};if(t.forEach(({icon:l,name:g,content:f})=>{let _=e.c.div("jodit-tab");(0,n.attr)(_,{role:"tabpanel"});let v=(0,a.Button)(e,l||g,g);v.state.role="tab",e.e.on(v.container,"pointerdown",e=>e.preventDefault()),p||(p=g),h.appendChild(v.container),u.push(v),v.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+t.length),(0,r.isFunction)(f)?_.appendChild(e.c.div("jodit-tab_empty")):_.appendChild(s.Component.isInstanceOf(f,a.UIElement)?f.container:f),c.appendChild(_),v.onAction(()=>(m(g),(0,r.isFunction)(f)&&!o.Dom.isElement(f)&&f.call(e),i&&(i.activeTab=g),!1)),d[g]={button:v,tab:_}}),Object.values(d).forEach(({button:e})=>{e.container.style.width=(100/t.length).toFixed(10)+"%"}),m(i&&i.activeTab&&d[i.activeTab]?i.activeTab:p),i){let e=i.activeTab;Object.defineProperty(i,"activeTab",{configurable:!0,enumerable:!1,get:()=>e,set(t){e=t,m(t)}})}return l}},89817(e,t,i){"use strict";i.d(t,{moveNodeInsideStart:()=>r});var s=i(81937),o=i(23211);function r(e,t,i){let r=o.Dom.findSibling(t,i),n=o.Dom.findSibling(t,!i);for(;o.Dom.isElement(r)&&!o.Dom.isTag(r,s.INSEPARABLE_TAGS)&&o.Dom.isContentEditable(r,e.editor)&&(!n||!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),n=o.Dom.sibling(t,!i)}},89827(e,t,i){"use strict";function s(e){return!e.s.isCollapsed()&&(e.execCommand("Delete"),!0)}i.d(t,{checkNotCollapsed:()=>s})},89873(e,t,i){"use strict";var s=i(29434),o=i(5266),r=i(70235),n=i(17849),a=i(466),l=i(75711),c=i(59399),h=i(38681),d=i.n(h),u=i(64637),p=i.n(u),m=i(94190),g=i.n(m),f=i(51957),_=i.n(f),v=i(71940),b=i.n(v),y=i(43218),w=i.n(y),S=i(48007),C=i.n(S);o.Config.prototype.toolbarInline=!0,o.Config.prototype.toolbarInlineForSelection=!1,o.Config.prototype.toolbarInlineDisableFor=[],o.Config.prototype.toolbarInlineDisabledButtons=["source"],s.Icon.set("addcolumn",d()).set("addrow",p()).set("merge",g()).set("th",w()).set("splitg",_()).set("splitv",b()).set("th-list",C()),o.Config.prototype.popup={a:r.default,img:l.default,cells:n.default,toolbar:c.default,jodit:a.default,iframe:a.default,"jodit-media":a.default,selection:["bold","underline","italic","ul","ol",`
255
255
  `,"outdent","indent","fontsize","brush","cut",`
256
256
  `,"paragraph","link","align","dots"]}},90204(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(28077),a=i(7909),l=i(91206);i(24268);var c=i(33494);class h 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,s._)(this,"buttons",[{group:"state",name:"spellcheck"}]),(0,n.extendLang)(c)}}(0,o.__decorate)([r.autobind],h.prototype,"toggleSpellcheck",null),n.pluginSystem.add("spellcheck",h)},90826(e,t,i){"use strict";var s=i(27795),o=i(28077),r=i(65946),n=i(29434),a=i(5266),l=i(15753),c=i(64831),h=i.n(c);n.Icon.set("image",h()),a.Config.prototype.controls.image={popup(e,t,i){let o=null;return t&&!s.Dom.isText(t)&&s.Dom.isHTMLElement(t)&&(s.Dom.isTag(t,"img")||(0,r.$$)("img",t).length)&&(o=s.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,async url(t,s){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",s),o||await e.s.insertImage(r,null,e.o.imageDefaultWidth),i()}},o,i)},tags:["img"],tooltip:"Insert Image"},o.pluginSystem.add("image",e=>{e.registerButton({name:"image",group:"media"})})},90886(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(23211),a=i(28077),l=i(65946),c=i(18855),h=i(59400);i(34689);var d=i(27137),u=i(28771),p=i(670),m=i(47744),g=i(71552);class f extends c.Plugin{get form(){return new d.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,u.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,g.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,h.Button)(e,"ok","Apply","primary"),remove:(0,h.Button)(e,"bin","Delete"),cancel:(0,h.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 s=i.target;if(n.Dom.isTag(s,"img"))if(e.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",s))return;t.state.sourceImage=s,t.state.image=s.cloneNode(!0),e.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),t.open())}else i.stopImmediatePropagation(),e.s.select(s)})}).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{if(this.__lock(),await e.decode(),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){Object.values((0,r.cached)(this,"__buttons")??{}).forEach(e=>e.destruct()),(0,r.cached)(this,"dialog")?.destruct(),(0,r.cached)(this,"form")?.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}constructor(...e){super(...e),(0,s._)(this,"state",{image:new Image,sourceImage:new Image,get ratio(){let{naturalWidth:e,naturalHeight:t}=this.image;return e/t||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}}),(0,s._)(this,"activeTabState",{activeTab:"Image"})}}(0,o.__decorate)([r.cache],f.prototype,"form",null),(0,o.__decorate)([r.cache],f.prototype,"dialog",null),(0,o.__decorate)([r.cache],f.prototype,"__buttons",null),(0,o.__decorate)([(0,r.watch)("state.image")],f.prototype,"onStateValuesImageSrcChange",null),a.pluginSystem.add("imageProperties",f)},91017(e,t,i){"use strict";i.r(t),i.d(t,{ar:()=>s,cs_cz:()=>s,de:()=>s,es:()=>s,fa:()=>s,fi:()=>s,fr:()=>s,he:()=>s,hu:()=>s,id:()=>s,it:()=>s,ja:()=>s,ko:()=>s,mn:()=>s,nl:()=>s,pl:()=>s,pt_br:()=>s,ru:()=>s,tr:()=>s,ua:()=>s,zh_cn:()=>s,zh_tw:()=>s});var s=i(41324)},91115(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="M 255.9537,58.150081 237.69527,40.997278 c -1.49414,-1.375593 -3.43653,-2.077427 -5.37891,-2.077427 -1.94239,0 -3.88478,0.701834 -5.37892,2.077427 L 29.919751,226.1128 c -2.988286,2.77926 -2.988286,7.32714 0,10.13447 L 48.148295,253.372 c 1.46426,1.37559 3.406646,2.1055 5.378915,2.1055 1.972268,0 3.884771,-0.72991 5.378914,-2.1055 L 221.34935,100.73732 255.9537,68.284552 c 2.9584,-2.807333 2.9584,-7.355212 0,-10.134471 z M 251.17244,63.79282 221.34935,91.781927 201.89561,73.506191 231.68882,45.48901 c 0.20918,-0.140367 0.38847,-0.224587 0.62754,-0.224587 0.23906,0 0.44824,0.08422 0.59765,0.224587 l 18.25843,17.152803 c 0,0 0.23906,0.33688 0.23906,0.561467 0,0.224586 -0.0896,0.4211 -0.23906,0.58954 z" style="stroke-width:2.8964;stroke-opacity:1" /> <path d="m 48.626421,116.87948 10.578532,23.10435 c 0.83672,1.82477 3.615826,1.85284 4.452546,0 l 10.937126,-23.52545 c 2.629692,-5.69888 7.470715,-10.24676 13.536935,-12.71722 l 25.07172,-10.274833 c 1.94239,-0.786053 1.94239,-3.396873 0,-4.182926 L 88.13156,79.008563 C 82.06534,76.53811 77.224317,71.990231 74.594625,66.291346 L 63.657499,42.737824 c -0.83672,-1.824766 -3.615826,-1.824766 -4.452546,0 L 48.267826,66.291346 C 45.638135,71.990231 40.797112,76.53811 34.730891,79.008563 L 9.6292894,89.311474 c -1.9423859,0.786054 -1.9423859,3.3688 0,4.182926 l 25.5498446,10.61172 c 6.036338,2.49852 10.847478,7.07448 13.477169,12.77336 z" style="stroke-width:2.8964;fill-opacity:1;stroke-opacity:1" /> <path d="m 111.79878,33.136746 13.56682,5.642739 c 3.19747,1.319446 5.76739,3.761826 7.14201,6.793745 l 5.61797,12.268044 c 0.44825,0.982567 1.91251,0.982567 2.36075,0 l 5.79727,-12.492631 c 1.4045,-3.031919 3.97442,-5.446225 7.20177,-6.765672 l 13.29788,-5.446225 c 1.0459,-0.4211 1.0459,-1.796693 0,-2.217793 l -13.29788,-5.446225 c -3.22735,-1.319447 -5.79727,-3.733753 -7.20177,-6.765672 L 140.48633,6.2144248 c -0.44824,-0.9825664 -1.9125,-0.9825664 -2.36075,0 l -5.79727,12.4926312 c -1.4045,3.031919 -3.97442,5.446225 -7.20177,6.765672 l -13.32776,5.474298 c -1.01601,0.4211 -1.0459,1.796693 0,2.217793 z" style="stroke-width:2.8964;fill-opacity:1" /> <path d="m 233.09331,192.98627 -14.13459,-5.7831 c -3.40665,-1.40367 -6.12599,-3.95834 -7.62013,-7.1587 l -6.15587,-13.27868 c -0.47813,-1.03872 -2.03203,-1.03872 -2.51016,0 l -6.15587,13.27868 c -1.49414,3.20036 -4.21348,5.75503 -7.62013,7.1587 l -14.13459,5.81118 c -1.10567,0.44917 -1.10567,1.90898 0,2.35816 l 14.40354,5.97961 c 3.40664,1.40367 6.12598,3.98642 7.59024,7.21485 l 5.97658,13.02602 c 0.47812,1.03872 2.03203,1.03872 2.51016,0 l 6.15586,-13.25061 c 1.49415,-3.20036 4.21349,-5.75503 7.62013,-7.1587 l 14.1346,-5.7831 c 1.10566,-0.44917 1.10566,-1.90899 0,-2.35816 z" style="stroke-width:2.8964;stroke-opacity:1" /> </svg>'},91206(e,t,i){"use strict";i.d(t,{Plugin:()=>s.Plugin});var s=i(18855);i(85305)},91231(e,t,i){"use strict";i.d(t,{Async:()=>s.Async});var s=i(24735)},91321(e,t,i){"use strict";i.d(t,{completeUrl:()=>o});var s=i(81937);let o=e=>("file:"===s.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)},91535(e,t,i){"use strict";i.d(t,{Alert:()=>l});var s=i(23211),o=i(78982),r=i(91565),n=i(53681),a=i(76841);function l(e,t,i,c="jodit-dialog_alert"){(0,r.isFunction)(t)&&(i=t,t=void 0);let h=this instanceof a.Dialog?this:new a.Dialog({closeOnClickOverlay:!0}),d=h.c.div(c),u=(0,n.Button)(h,"ok","Ok");return(0,o.asArray)(e).forEach(e=>{d.appendChild(s.Dom.isNode(e)?e:h.c.fromHTML(e))}),u.onAction(()=>{i&&(0,r.isFunction)(i)&&!1===i(h)||h.close()}),h.setFooter([u]),h.open(d,t||"&nbsp;",!0,!0),u.focus(),h}},91560(e,t,i){"use strict";i.r(t),i.d(t,{allowAttributes:()=>s.allowAttributes,fillEmptyParagraph:()=>o.fillEmptyParagraph,removeEmptyTextNode:()=>r.removeEmptyTextNode,removeInvTextNodes:()=>n.removeInvTextNodes,replaceOldTags:()=>a.replaceOldTags,sanitizeAttributes:()=>l.sanitizeAttributes,tryRemoveNode:()=>c.tryRemoveNode});var s=i(95559),o=i(39188),r=i(94561),n=i(53514),a=i(35104),l=i(65015),c=i(27611)},91565(e,t,i){"use strict";function s(e){return"function"==typeof e}i.d(t,{isFunction:()=>s})},91672(e,t,i){"use strict";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"))}}return t}i.d(t,{component:()=>s})},91678(e,t,i){"use strict";var s=i(28077),o=i(65946),r=i(29434),n=i(5266);i(40291);var a=i(52450),l=i.n(a),c=i(41111),h=i.n(c),d=i(49972),u=i.n(d),p=i(45062),m=i.n(p),g=i(18605),f=i.n(g),_=i(83389),v=i.n(_);s.pluginSystem.add("bold",e=>{let t=t=>{let i,s=n.Config.defaultOptions.controls[t],r={...s.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:s.tags?s.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",h()).set("strikethrough",u()).set("subscript",m()).set("superscript",f()).set("underline",v())},91764(e,t,i){"use strict";i.d(t,{isURL:()=>o});var s=i(81937);function o(e){if(e.includes(" "))return!1;if("undefined"!=typeof URL)try{let t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}let t=s.globalDocument.createElement("a");return t.href=e,!!t.hostname}},91882(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},92063(e,t,i){"use strict";i(5266).Config.prototype.showXPathInStatusbar=!0},93267(e){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg>'},93387(e,t,i){"use strict";i.d(t,{colorToHex:()=>s});let s=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),s=parseInt(t[3],10),o=(parseInt(t[4],10)|s<<8|i<<16).toString(16).toUpperCase();for(;o.length<6;)o="0"+o;return t[1]+"#"+o}},93637(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)},93640(e,t,i){"use strict";i.r(t),i.d(t,{$$:()=>D.$$,ConfigDeepFlatten:()=>u.ConfigDeepFlatten,ConfigFlatten:()=>u.ConfigFlatten,ConfigProto:()=>u.ConfigProto,ConnectionError:()=>v.ConnectionError,LimitedStack:()=>j.LimitedStack,OptionsError:()=>v.OptionsError,abort:()=>v.abort,alignElement:()=>s.alignElement,alreadyLoadedList:()=>o.alreadyLoadedList,appendScriptAsync:()=>o.appendScriptAsync,appendStyleAsync:()=>o.appendStyleAsync,attr:()=>l.attr,browser:()=>c.browser,buildQuery:()=>h.buildQuery,call:()=>L.call,callPromise:()=>L.callPromise,clearAlign:()=>s.clearAlign,clearCenterAlign:()=>m.clearCenterAlign,cns:()=>C.cns,completeUrl:()=>d.completeUrl,connection:()=>v.connection,convertMediaUrlToVideoEmbed:()=>p.convertMediaUrlToVideoEmbed,css:()=>m.css,cssPath:()=>D.cssPath,ctrlKey:()=>g.ctrlKey,dataBind:()=>f.dataBind,defaultLanguage:()=>_.defaultLanguage,error:()=>v.error,fastClone:()=>b.fastClone,get:()=>y.get,getClassName:()=>w.getClassName,getDataTransfer:()=>L.getDataTransfer,getXPathByElement:()=>D.getXPathByElement,hAlignElement:()=>s.hAlignElement,humanSizeToBytes:()=>S.humanSizeToBytes,inView:()=>x.inView,isAbort:()=>v.isAbort,isAtom:()=>b.isAtom,keepNames:()=>w.keepNames,keys:()=>L.keys,loadImage:()=>L.loadImage,loadNext:()=>o.loadNext,loadNextStyle:()=>o.loadNextStyle,markAsAtomic:()=>b.markAsAtomic,markDeprecated:()=>C.markDeprecated,markOwner:()=>L.markOwner,memorizeExec:()=>L.memorizeExec,options:()=>v.options,parseQuery:()=>E.parseQuery,previewBox:()=>I.previewBox,refs:()=>D.refs,reset:()=>T.reset,resolveElement:()=>D.resolveElement,scrollIntoViewIfNeeded:()=>x.scrollIntoViewIfNeeded,set:()=>k.set});var s=i(16849),o=i(47760),r=i(28712),n={};for(var a in r)0>["default","alignElement","clearAlign","hAlignElement","alreadyLoadedList","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(a)&&(n[a]=(e=>r[e]).bind(0,a));i.d(t,n);var l=i(7909),c=i(26136),h=i(36833),d=i(91321),u=i(77483),p=i(3856),m=i(80991),g=i(77213),f=i(36400),_=i(97228),v=i(33201),b=i(54794),y=i(89308),w=i(421),S=i(37427),C=i(49385),E=i(36310),I=i(57075),T=i(43379),x=i(60898),D=i(28723),k=i(52144),j=i(42820),L=i(71125)},93747(e,t,i){"use strict";i.d(t,{EventEmitter:()=>d});var s=i(25045),o=i(81937),r=i(32328),n=i(17312),a=i(91565),l=i(85932),c=i(33201),h=i(18869);class d{mute(e){return this.__mutedEvents.add(e??"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(e??"*"),this}__eachEvent(e,t){(0,r.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),s=i[1]||h.defaultNameSpace;t.call(this,i[0],s)})}__getStore(e){if(!e)throw(0,c.error)("Need subject");if(void 0===e[this.__key]){let t=new h.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,s){let r,h,d,p;if((0,l.isString)(e)||(0,l.isStringArray)(e)?(r=this,h=e,d=t,p=i):(r=e,h=t,d=i,p=s),!((0,l.isString)(h)||(0,l.isStringArray)(h))||0===h.length)throw(0,c.error)("Need events names");if(!(0,a.isFunction)(d))throw(0,c.error)("Need event handler");if((0,n.isArray)(r))return r.forEach(e=>{this.on(e,h,d,p)}),this;let m=r,g=this.__getStore(m),f=this,_=function(e,...t){if(!f.isMuted(e))return d&&d.call(this,...t)};return u(m)&&(_=function(e){if(!f.isMuted(e.type)&&(f.__prepareEvent(e),d&&!1===d.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(h,(e,t)=>{if(0===e.length)throw(0,c.error)("Need event name");if(!1===g.indexOf(e,t,d)){let i={event:e,originalCallback:d,syntheticCallback:_};if(g.set(e,t,i,p?.top),u(m)){let t=o.PASSIVE_EVENTS.has(e)?{passive:!0,capture:p?.capture??!1}:p?.capture??!1;_.options=t,m.addEventListener(e,_,t),this.__memoryDOMSubjectToHandler(m,_)}}}),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,s=i.get(e)||new Set;s.delete(t),s.size?i.set(e,s):i.delete(e)}one(e,t,i,s){let o,r,n,a;(0,l.isString)(e)||(0,l.isStringArray)(e)?(o=this,r=e,n=t,a=i):(o=e,r=t,n=i,a=s);let c=(...e)=>(this.off(o,r,c),n(...e));return this.on(o,r,c,a),this}off(e,t,i){let s,o,r;if((0,l.isString)(e)||(0,l.isStringArray)(e)?(s=this,o=e,r=t):(s=e,o=t,r=i),(0,n.isArray)(s))return s.forEach(e=>{this.off(e,o,r)}),this;let c=s,d=this.__getStore(c);if(!((0,l.isString)(o)||(0,l.isStringArray)(o))||0===o.length)return d.namespaces().forEach(e=>{this.off(c,"."+e)}),this.__removeStoreFromSubject(c),this;let p=e=>{u(c)&&(c.removeEventListener(e.event,e.syntheticCallback,e.syntheticCallback.options??!1),this.__unmemoryDOMSubjectToHandler(c,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 s=d.indexOf(e,t,r);!1!==s&&(p(i[s]),i.splice(s,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===h.defaultNameSpace?d.namespaces().forEach(t=>{m(e,t)}):m(e,t)}),d.isEmpty()&&this.__removeStoreFromSubject(c),this}stopPropagation(e,t){let i=(0,l.isString)(e)?this:e,s=(0,l.isString)(e)?e:t;if("string"!=typeof s)throw(0,c.error)("Need event names");let o=this.__getStore(i);this.__eachEvent(s,(e,t)=>{let s=o.get(e,t);s&&this.__stopped.push(s),t===h.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 s,o,r=(0,l.isString)(e)?this:e,n=(0,l.isString)(e)?e:t,a=(0,l.isString)(e)?[t,...i]:i;if(!u(r)&&!(0,l.isString)(n))throw(0,c.error)("Need events names");let d=this.__getStore(r);return!(0,l.isString)(n)&&u(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(n,(e,t)=>{if(u(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&&(s=o),!0))}finally{this.__removeStop(i)}t!==h.defaultNameSpace||u(r)||d.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...a]);void 0!==i&&(s=i)})}}),s}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,s._)(this,"__domEventsMap",new Map),(0,s._)(this,"__mutedEvents",new Set),(0,s._)(this,"__key","__JoditEventEmitterNamespaces"),(0,s._)(this,"__doc",o.globalDocument),(0,s._)(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,s._)(this,"currents",[]),(0,s._)(this,"__stopped",[]),(0,s._)(this,"__isDestructed",!1),e&&(this.__doc=e),this.__key+=new Date().getTime()}}function u(e){return(0,a.isFunction)(e.addEventListener)}},93890(e,t,i){"use strict";i.d(t,{checkRemoveUnbreakableElement:()=>n});var s=i(81937),o=i(23211),r=i(2409);function n(e,t,i){let n=o.Dom.findSibling(t,i);return!!(o.Dom.isElement(n)&&(o.Dom.isTag(n,s.INSEPARABLE_TAGS)||o.Dom.isEmpty(n)))&&(o.Dom.safeRemove(n),o.Dom.isTag(n,"br")&&!o.Dom.findNotEmptySibling(t,!1)&&o.Dom.after(t,e.createInside.element("br")),e.s.setCursorBefore(t),o.Dom.isTag(n,"br")&&(0,r.checkRemoveEmptyParent)(e,t,i),!0)}},94013(e,t,i){"use strict";i.d(t,{isEqual:()=>o,isFastEqual:()=>r});var s=i(3347);function o(e,t){return e===t||(0,s.stringify)(e)===(0,s.stringify)(t)}function r(e,t){return e===t}},94092(e,t,i){"use strict";i.d(t,{PII:()=>s,WARN:()=>o});let s=440,o=940},94190(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg>'},94193(e,t,i){"use strict";i.d(t,{SourceEditor:()=>o});var s=i(25045);class o{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(e){this.isReady?e():this.j.events?.on(this,"ready",e)}constructor(e,t,i,o){(0,s._)(this,"jodit",void 0),(0,s._)(this,"container",void 0),(0,s._)(this,"toWYSIWYG",void 0),(0,s._)(this,"fromWYSIWYG",void 0),(0,s._)(this,"instance",void 0),(0,s._)(this,"className",void 0),(0,s._)(this,"isReady",void 0),this.jodit=e,this.container=t,this.toWYSIWYG=i,this.fromWYSIWYG=o,this.className="",this.isReady=!1}}},94358(e,t,i){"use strict";var s=i(81937),o=i(28077),r=i(65946),n=i(29434),a=i(5266),l=i(17995),c=i.n(l);a.Config.prototype.controls.about={exec(e){let t=e.dlg({closeOnClickOverlay:!0}),i=e.i18n.bind(e);t.setMod("theme",e.o.theme).setHeader(i("About Jodit")).setContent(`<div class="jodit-about">