jodit 4.7.3 → 4.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +3 -3
- package/es2015/jodit.js +4 -3
- package/es2015/jodit.min.js +3 -3
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.fat.min.js +3 -3
- package/es2018/jodit.min.js +3 -3
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +3 -3
- package/es2021/jodit.js +4 -3
- package/es2021/jodit.min.js +3 -3
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +3 -3
- package/es2021.en/jodit.js +4 -3
- package/es2021.en/jodit.min.js +3 -3
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +4 -3
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/core/view/view.d.ts +1 -1
- package/esm/jodit.js +2 -1
- package/package.json +1 -1
- package/types/core/view/view.d.ts +1 -1
|
@@ -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
|
+
* Version: v4.7.4
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
loading="lazy"
|
|
227
227
|
/>
|
|
228
228
|
${r||n||a?c:""}
|
|
229
|
-
</a>`},ajax:{...n.Config.prototype.defaultAjaxOptions,url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData:e=>e,process:e=>e},create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},n.Config.prototype.controls.filebrowser={upload:{icon:"plus",tooltip:"Upload file",isInput:!0,isDisabled:e=>!e.dataProvider.canI("FileUpload"),getContent(e,t){let i=new r.UIFileInput(e,{tooltip:t.control.tooltip,onlyImages:e.state.onlyImages});return e.e.fire("bindUploader.filebrowser",i.container),i.container}},remove:{icon:"bin",tooltip:"Remove file",isDisabled:e=>!e.state.activeElements.length||!e.dataProvider.canI("FileRemove"),exec(e){e.e.fire("fileRemove.filebrowser")}},update:{tooltip:"Update file list",exec(e){e.e.fire("update.filebrowser")}},select:{tooltip:"Select file",icon:"check",isDisabled:e=>!e.state.activeElements.length,exec(e){e.e.fire("select.filebrowser")}},edit:{tooltip:"Edit image",icon:"pencil",isDisabled(e){let t=e.state.activeElements;return 1!==t.length||!t[0].isImage||!(e.dataProvider.canI("ImageCrop")||e.dataProvider.canI("ImageResize"))},exec(e){e.e.fire("edit.filebrowser")}},tiles:{tooltip:"Tiles view",icon:"th",isActive:e=>"tiles"===e.state.view,exec(e){e.e.fire("view.filebrowser","tiles")}},list:{tooltip:"List view",icon:"th-list",isActive:e=>"list"===e.state.view,exec(e){e.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent(e,t){let i=t.container.querySelector(".jodit-input");if(i)return i;let s=e.c.element("input",{class:"jodit-input",placeholder:e.i18n("Filter")});return s.value=e.state.filterWord,e.e.on(s,"keydown mousedown",e.async.debounce(()=>{e.e.fire("filter.filebrowser",s.value)},e.defaultTimeout)),s}},sort:{isInput:!0,getContent(e){let t=e.c.fromHTML(`<select class="jodit-input jodit-select"><option value="changed-asc">${e.i18n("Sort by changed")} (⬆)</option><option value="changed-desc">${e.i18n("Sort by changed")} (⬇)</option><option value="name-asc">${e.i18n("Sort by name")} (⬆)</option><option value="name-desc">${e.i18n("Sort by name")} (⬇)</option><option value="size-asc">${e.i18n("Sort by size")} (⬆)</option><option value="size-desc">${e.i18n("Sort by size")} (⬇)</option></select>`);return t.value=e.state.sortBy,e.e.on("sort.filebrowser",e=>{t.value!==e&&(t.value=e)}).on(t,"change",()=>{e.e.fire("sort.filebrowser",t.value)}),t}}}},68616(e,t,i){"use strict";i.d(t,{getPropertyDescriptor:()=>h,watch:()=>d});var s=i(69364),o=i(70535),r=i(32328),n=i(91565),a=i(62101),l=i(31534),c=i(33201);function h(e,t){let i;do i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!i&&e)return i}function d(e,t){return(i,d)=>{if(!(0,n.isFunction)(i[d]))throw(0,c.error)("Handler must be a Function");let u=t?.immediately??!0,p=t?.context,m=t=>{let s=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...i)=>{if(!t.isInDestruct)return t[d](e,...i)};u||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,o]=e.split(":"),r=p;i.length&&(r=t.get(i)),(0,n.isFunction)(r)&&(r=r(t)),s.events.on(r||t,o,c),r||s.events.on(o,c),t.hookStatus("beforeDestruct",()=>{s.events.off(r||t,o,c).off(o,c)});return}let r=e.split("."),[l]=r,d=r.slice(1),u=t[l];(0,a.isPlainObject)(u)&&(0,o.observable)(u).on("change."+d.join("."),c);let m=h(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=u;i!==e&&(u=e,m&&m.set&&m.set.call(t,e),(0,a.isPlainObject)(u)&&(u=(0,o.observable)(u)).on("change."+d.join("."),c),c(l,i,u))},get:()=>m&&m.get?m.get.call(t):u})})};(0,n.isFunction)(i.hookStatus)?i.hookStatus(s.STATUSES.ready,m):m(i)}}},68624(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);i(65230);class h extends c.Plugin{afterInit(e){e.o.link.followOnDblClick&&e.e.on("dblclick.link",this.__onDblClickOnLink),e.e.on(e.editor,"click.link",this.__onClickReadOnlyLink),e.o.link.processPastedLink&&e.e.on("processPaste.link",this.onProcessPasteLink),e.e.on("generateLinkForm.link",this.__generateForm),e.registerCommand("openLinkDialog",{exec:()=>{let t=e.dlg({resizable:!1}),i=this.__generateForm(e.s.current(),()=>{t.close()});i.container.classList.add("jodit-dialog_alert"),t.setContent(i),t.open(),e.async.requestIdleCallback(()=>{let{url_input:e}=(0,l.refs)(i.container);e?.focus()})},hotkeys:e.o.link.hotkeys})}__onDblClickOnLink(e){if(!n.Dom.isTag(e.target,"a"))return;let t=(0,l.attr)(e.target,"href");t&&(location.href=t,e.preventDefault())}onProcessPasteLink(e,t){let{jodit:i}=this;if((0,l.isURL)(t)&&i.o.link.processPastedLink){if(i.e.stopPropagation("processPaste"),i.o.link.processVideoLink){let e=(0,l.call)(i.o.video?.parseUrlToVideoEmbed??l.convertMediaUrlToVideoEmbed,t,{width:i.o.video?.defaultWidth,height:i.o.video?.defaultHeight});if(e!==t)return i.createInside.fromHTML(e)}if(i.s.isCollapsed()){let e=i.createInside.element("a");return e.setAttribute("href",t),e.textContent=t,i.e.fire("applyLink",i,e,null),e}return i.s.commitStyle({element:"a",attributes:{href:t}}),!0}}__generateForm(e,t){let i,{jodit:s}=this,o=s.i18n.bind(s),{openInNewTabCheckbox:r,noFollowCheckbox:a,formTemplate:c,formClassName:h,modeClassName:d}=s.o.link,u=c(s),p=(0,l.isString)(u)?s.c.fromHTML(u,{target_checkbox_box:r,nofollow_checkbox_box:a}):u,m=n.Dom.isElement(p)?p:p.container,g=(0,l.refs)(m),{insert:f,unlink:_,content_input_box:v}=g,{target_checkbox:b,nofollow_checkbox:y,url_input:w}=g,S=n.Dom.isImage(e),{content_input:C}=g,{className_input:E}=g,{className_select:I}=g;C||(C=s.c.element("input",{type:"hidden",ref:"content_input"})),h&&m.classList.add(h),S&&n.Dom.hide(v);let T=()=>i?i.innerText:(0,l.stripTags)(s.s.range.cloneContents(),s.ed);i=!!(e&&n.Dom.closest(e,"a",s.editor))&&n.Dom.closest(e,"a",s.editor),!S&&e&&(C.value=T()),i?(w.value=(0,l.attr)(i,"href")||"",d&&((e,t,i,s)=>{switch(e){case"input":t&&(t.value=(0,l.attr)(i,"class")||"");break;case"select":if(s){for(let e=0;e<s.selectedOptions.length;e++){let t=s.options.item(e);t&&(t.selected=!1)}((0,l.attr)(i,"class")||"").split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{if(e)for(let t=0;t<s.options.length;t++){let i=s.options.item(t);i?.value&&i.value.split(/\s+/).map(e=>e.trim()).includes(e)&&(i.selected=!0)}})}}})(d,E,i,I),r&&b&&(b.checked="_blank"===(0,l.attr)(i,"target")),a&&y&&(y.checked="nofollow"===(0,l.attr)(i,"rel")),f.textContent=o("Update")):n.Dom.hide(_),s.editor.normalize();let x=s.history.snapshot.make();_&&s.e.on(_,"click",e=>{s.s.restore(),s.history.snapshot.restore(x),i&&n.Dom.unwrap(i),s.synchronizeValues(),t(),e.preventDefault()});let D=()=>{let e;if(!w.value.trim().length)return w.focus(),w.classList.add("jodit_error"),!1;s.s.restore(),s.s.removeMarkers(),s.editor.normalize(),s.history.snapshot.restore(x);let o=T()!==C.value.trim(),c=s.createInside;if(i&&n.Dom.isOrContains(s.editor,i))e=[i];else{if(s.s.isCollapsed()){let t=c.element("a");s.s.insertNode(t,!1,!1),e=[t]}else{let t=s.s.current();e=n.Dom.isTag(t,"img")?[n.Dom.wrap(t,"a",c)]:s.s.wrapInTag("a")}e.forEach(e=>s.s.select(e))}return e.forEach(e=>{var t;let i;(0,l.attr)(e,"href",w.value),((e,t,i,s)=>{if(e&&(t??i)){if("input"===e)""===t.value&&s.hasAttribute("class")&&(0,l.attr)(s,"class",null),""!==t.value&&(0,l.attr)(s,"class",t.value);else if("select"===e){s.hasAttribute("class")&&(0,l.attr)(s,"class",null);for(let e=0;e<i.selectedOptions.length;e++){let t=i.selectedOptions.item(e)?.value;t&&t.split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{s.classList.add(e)})}}}})(d,E,I,e),S||(t=C,i=e.textContent,t.value.trim().length?o&&(i=t.value):i=w.value,i!==e.textContent&&(e.textContent=i)),r&&b&&(0,l.attr)(e,"target",b.checked?"_blank":null),a&&y&&(0,l.attr)(e,"rel",y.checked?"nofollow":null),s.e.fire("applyLink",s,e,p)}),s.synchronizeValues(),t(),!1};return n.Dom.isElement(p)?s.e.on(p,"submit",e=>(e.preventDefault(),e.stopImmediatePropagation(),D(),!1)):p.onSubmit(D),p}beforeDestruct(e){e.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(e.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}__onClickReadOnlyLink(e){let{jodit:t}=this;t.o.readonly&&t.o.link.preventReadOnlyNavigation&&n.Dom.isTag(e.target,"a")&&e.preventDefault()}constructor(...e){super(...e),(0,s._)(this,"buttons",[{name:"link",group:"insert"}])}}(0,o.__decorate)([r.autobind],h.prototype,"__onDblClickOnLink",null),(0,o.__decorate)([r.autobind],h.prototype,"onProcessPasteLink",null),(0,o.__decorate)([r.autobind],h.prototype,"__generateForm",null),(0,o.__decorate)([r.autobind],h.prototype,"__onClickReadOnlyLink",null),a.pluginSystem.add("link",h)},68709(e,t,i){"use strict";i.d(t,{checkRemoveContentNotEditable:()=>n});var s=i(27795),o=i(65946),r=i(42259);function n(e,t,i){let n=s.Dom.findSibling(t,i);return!n&&t.parentElement&&t.parentElement!==e.editor&&(n=s.Dom.findSibling(t.parentElement,i)),!(!s.Dom.isElement(n)||s.Dom.isContentEditable(n,e.editor))&&((0,o.call)(i?s.Dom.before:s.Dom.after,n,t),s.Dom.safeRemove(n),(0,r.moveNodeInsideStart)(e,t,i),(0,o.call)(i?e.s.setCursorBefore:e.s.setCursorAfter,t),!0)}},69023(e,t,i){"use strict";i(5266).Config.prototype.tab={tabInsideLiInsertNewList:!0}},69070(e,t,i){"use strict";i(5266).Config.prototype.tableAllowCellSelection=!0},69143(e,t,i){"use strict";i.d(t,{offset:()=>s});let s=(e,t,i,o=!1)=>{let r,n,a;try{r=e.getBoundingClientRect()}catch(e){r={top:0,bottom:0,left:0,right:0,width:0,height:0}}let l=i.body,c=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},h=i.defaultView||i.parentWindow,d=h.pageYOffset||c.scrollTop||l.scrollTop,u=h.pageXOffset||c.scrollLeft||l.scrollLeft,p=c.clientTop||l.clientTop||0,m=c.clientLeft||l.clientLeft||0,g=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&g){let{top:e,left:i}=s(g,t,t.od,!0);n=r.top+e,a=r.left+i}else n=r.top+d-p,a=r.left+u-m;return{top:Math.round(n),left:Math.round(a),width:r.width,height:r.height}}},69364(e,t,i){"use strict";i.d(t,{STATUSES:()=>s});let s={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},69696(e,t,i){"use strict";var s=i(28077),o=i(24497),r=i(80991);i(80538);let n=new Set;s.pluginSystem.add("fullsize",e=>{e.registerButton({name:"fullsize"});let t=!1,i=0,s=0,a=!1,l=()=>{let{container:o,events:n}=e;n&&(t?(i=(0,r.css)(o,"height",!0),s=(0,r.css)(o,"width",!0),(0,r.css)(o,{height:e.ow.innerHeight,width:e.ow.innerWidth}),a=!0):a&&(0,r.css)(o,{height:i||"auto",width:s||"auto"}))},c=i=>{let{container:s,events:a}=e;if(s){if(void 0===i&&(i=!s.classList.contains("jodit_fullsize")),e.setMod("fullsize",i),e.o.fullsize=i,t=i,s.classList.toggle("jodit_fullsize",i),e.toolbar&&((0,o.isJoditObject)(e)&&e.toolbarContainer?.appendChild(e.toolbar.container),(0,r.css)(e.toolbar.container,"width","auto")),i?n.add(s):n.delete(s),e.o.globalFullSize&&(1===n.size&&i||0===n.size&&!i)){let e=s.parentNode;for(;e&&e.nodeType!==Node.DOCUMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)e.classList.toggle("jodit_fullsize-box_true",i),e=e.parentNode;l()}a.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",l),e.e.on("afterInit afterOpen",()=>{e.toggleFullSize(e?.options?.fullsize)}).on("toggleFullSize",c).on("beforeDestruct",()=>{t&&c(!1)}).on("beforeDestruct",()=>{e.events&&e.e.off(e.ow,"resize",l)})})},70195(e,t,i){"use strict";i.d(t,{removeFormatForSelection:()=>n});var s=i(23211),o=i(93640),r=i(37431);function n(e){let{s:t,editor:i,createInside:n}=e,{range:a}=t,l=a.cloneRange(),c=a.cloneRange(),h=n.fake(),d=n.fake();l.collapse(!0),c.collapse(!1),s.Dom.safeInsertNode(l,h),s.Dom.safeInsertNode(c,d),a.setStartBefore(h),a.collapse(!0),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,h),a.setEndAfter(d),a.collapse(!1),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,d);let u=[];s.Dom.between(h,d,e=>{(0,r.isInlineBlock)(e)&&!s.Dom.isTag(e,"a")&&u.push(e),s.Dom.isElement(e)&&(0,o.attr)(e,"style")&&(0,o.attr)(e,"style",null)}),u.forEach(e=>s.Dom.unwrap(e));let p=(e,t)=>{if(!s.Dom.findNotEmptySibling(e,t)){let s=e.parentNode;if(s&&s!==i&&(0,o.attr)(s,"style"))return(0,o.attr)(s,"style",null),p(s,t),!0}};p(h,!0)&&p(d,!1),a.setStartAfter(h),a.setEndBefore(d),t.selectRange(a),s.Dom.safeRemove(h),s.Dom.safeRemove(d)}},70222(e,t,i){"use strict";i.d(t,{isNumeric:()=>o});var s=i(85932);function o(e){if((0,s.isString)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},70235(e,t,i){"use strict";var s=i(7909);t.default=[{name:"eye",tooltip:"Open link",exec(e,t){let i=(0,s.attr)(t,"href");t&&i&&e.ow.open(i)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},70535(e,t,i){"use strict";i.d(t,{observable:()=>c});var s=i(68616),o=i(17312),r=i(94013),n=i(62101);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;let t={},i={},c=(t,s)=>((0,o.isArray)(t)?t.map(e=>c(e,s)):(i[t]||(i[t]=[]),i[t].push(s)),e),h=(s,...r)=>{if((0,o.isArray)(s))return void s.map(e=>h(e,...r));try{!t[s]&&i[s]&&(t[s]=!0,i[s].forEach(t=>t.call(e,...r)))}finally{t[s]=!1}},d=(t,i=[])=>{let o={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);o[a]=t[a];let c=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set(t){let i=o[a];if(!(0,r.isFastEqual)(o[a],t)){h(["beforeChange","beforeChange."+l.join(".")],a,t),(0,n.isPlainObject)(t)&&d(t,l),c&&c.set?c.set.call(e,t):o[a]=t;let s=[];h(["change",...l.reduce((e,t)=>(s.push(t),e.push("change."+s.join(".")),e),[])],l.join("."),i,t?.valueOf?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):o[a],enumerable:!0,configurable:!0}),(0,n.isPlainObject)(o[a])&&d(o[a],l)}),Object.defineProperty(e,"on",{value:c}))};return d(e),e}},70697(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg>'},70881(e){e.exports='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg>'},70999(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg>'},71125(e,t,i){"use strict";i.d(t,{call:()=>a,callPromise:()=>c,getDataTransfer:()=>p,keys:()=>d,loadImage:()=>h,markOwner:()=>l,memorizeExec:()=>u});var s=i(52100),o=i(18303),r=i(7909),n=i(36400);function a(e,...t){return e(...t)}function l(e,t){(0,r.attr)(t,"data-editor_id",e.id),t.component||Object.defineProperty(t,"jodit",{value:e})}function c(e,t){return(0,s.isPromise)(e)?e.then(e=>e,()=>null).finally(t):t?.()}let h=(e,t)=>t.async.promise((i,s)=>{let o=new Image,r=()=>{t.e.off(o),s?.()},n=()=>{t.e.off(o),i(o)};t.e.one(o,"load",n).one(o,"error",r).one(o,"abort",r),o.src=e,o.complete&&n()}),d=(e,t=!0)=>{if(t)return Object.keys(e);let i=[];for(let t in e)i.push(t);return i},u=(e,t,{control:i},s)=>{let r="button"+i.command,a=(i.args&&i.args[0])??(0,n.dataBind)(e,r);if((0,o.isVoid)(a))return!1;(0,n.dataBind)(e,r,a),s&&(a=s(a)),e.execCommand(i.command,!1,a??void 0)},p=e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch{return null}}},71552(e,t,i){"use strict";i.d(t,{applyValuesToImage:()=>l});var s=i(23211),o=i(93640),r=i(49422),n=i(21132),a=i(49147);function l(e,t,i){let{style:l,imageSrc:c,borderRadius:h,imageTitle:d,imageAlt:u,imageLink:p,imageWidth:m,imageHeight:g,marginTop:f,marginRight:_,marginBottom:v,marginLeft:b,imageLinkOpenInNewTab:y,align:w,classes:S,id:C}=t.values,E=e.o;if(E.image.editStyle&&(0,o.attr)(i,"style",l||null),!c)return void s.Dom.safeRemove(i);(0,o.attr)(i,"src",c),i.style.borderRadius=h?h+"px":"",(0,o.attr)(i,"title",d||null),(0,o.attr)(i,"alt",u||null),(0,r.applyLink)(e,i,p,y),(0,a.applySize)(i,m,g,t.sizeIsLocked),e.o.image.editMargins&&(0,n.applyMargin)(e,f,_,v,b,i,t.marginIsLocked),E.image.editClass&&(0,o.attr)(i,"class",S||null),E.image.editId&&(0,o.attr)(i,"id",C||null),E.image.editAlign&&(0,o.hAlignElement)(i,w)}},71693(e,t,i){"use strict";var s=i(81937),o=i(5266);o.Config.prototype.askBeforePasteFromWord=!0,o.Config.prototype.processPasteFromWord=!0,o.Config.prototype.defaultActionOnPasteFromWord=null,o.Config.prototype.pasteFromWordActionList=[{value:s.INSERT_AS_HTML,text:"Keep"},{value:s.INSERT_AS_TEXT,text:"Clean"},{value:s.INSERT_ONLY_TEXT,text:"Insert only Text"}]},71940(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>'},71948(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg>'},72068(e,t,i){"use strict";function s(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}i.d(t,{isAbortError:()=>s})},72214(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(27795),a=i(28077),l=i(91206),c=i(4099);i(58293);class h extends l.Plugin{afterInit(e){let{height:t,width:i,allowResizeX:s}=e.o,{allowResizeY:o}=e.o;"auto"===t&&"auto"!==i&&(o=!1),("auto"!==t||"auto"!==i)&&(s||o)&&(e.statusbar.setMod("resize-handle",!0),e.e.on("toggleFullSize.resizeHandler",()=>{this.handle.style.display=e.isFullSize?"none":"block"}).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(e.ow,"mouseup touchend",this.onHandleResizeEnd),e.container.appendChild(this.handle))}onHandleResizeStart(e){this.isResized=!0,this.start.x=e.clientX,this.start.y=e.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,"mousemove touchmove",this.onHandleResize),e.preventDefault()}onHandleResize(e){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+e.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+e.clientX-this.start.x),this.j.e.fire("resize"))}onHandleResizeEnd(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,"mousemove touchmove",this.onHandleResize),this.j.unlock())}beforeDestruct(){n.Dom.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}constructor(...e){super(...e),(0,s._)(this,"isResized",!1),(0,s._)(this,"start",{x:0,y:0,w:0,h:0}),(0,s._)(this,"handle",this.j.c.div("jodit-editor__resize",c.Icon.get("resize_handler")))}}(0,s._)(h,"requires",["size"]),h=(0,o.__decorate)([r.autobind],h),a.pluginSystem.add("resizeHandler",h)},72348(e,t,i){"use strict";i.d(t,{ColorPickerWidget:()=>l});var s=i(27795),o=i(65946),r=i(4099),n=i(54522),a=i.n(n);r.Icon.set("palette",a());let l=(e,t,i)=>{let n="jodit-color-picker",a=(0,o.normalizeColor)(i),l=e.c.div(n),c=e.o.textIcons?`<span>${e.i18n("palette")}</span>`:r.Icon.get("palette"),h=e=>{let t=[];return(0,o.isPlainObject)(e)?Object.keys(e).forEach(i=>{t.push(`<div class="${n}__group ${n}__group-${i}">`),t.push(h(e[i])),t.push("</div>")}):(0,o.isArray)(e)&&e.forEach(e=>{t.push(`<span class='${n}__color-item ${a===e?n+"__color-item_active_true":""}' title="${e}" style="background-color:${e}" data-color="${e}"></span>`)}),t.join("")};l.appendChild(e.c.fromHTML(`<div class="${n}__groups">${h(e.o.colors)}</div>`)),l.appendChild(e.c.fromHTML(`<div data-ref="extra" class="${n}__extra"></div>`));let{extra:d}=(0,o.refs)(l);return e.o.showBrowserColorPicker&&(0,o.hasBrowserColorPicker)()&&(d.appendChild(e.c.fromHTML(`<div class="${n}__native">${c}<input type="color" value="#ffffff"/></div>`)),e.e.on(l,"change",e=>{e.stopPropagation();let i=e.target;if(!i||!i.tagName||!s.Dom.isTag(i,"input"))return;let r=i.value||"";(0,o.isFunction)(t)&&t(r),e.preventDefault()})),e.e.on(l,"mousedown touchend",i=>{i.stopPropagation(),i.preventDefault();let r=i.target;if((!r||!r.tagName||s.Dom.isTag(r,"svg")||s.Dom.isTag(r,"path"))&&r.parentNode&&(r=s.Dom.closest(r.parentNode,"span",e.editor)),!s.Dom.isTag(r,"span")||!r.classList.contains(n+"__color-item"))return;let a=(0,o.attr)(r,"-color")||"";t&&(0,o.isFunction)(t)&&t(a)}),e.e.fire("afterGenerateColorPicker",l,d,t,a),l}},72412(e,t,i){"use strict";function s(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}i.d(t,{isNumber:()=>s})},73019(e,t,i){"use strict";i.d(t,{isSameStyleChild:()=>l,isSuitElement:()=>n,suitableClosest:()=>a});var s=i(23211),o=i(9703),r=i(83653);function n(e,t,i,a=!0){if(!t||!(0,r.isNormalNode)(t))return!1;let{element:l,elementIsDefault:c,options:h}=e;if(s.Dom.isList(t)&&e.elementIsList)return!0;let d=s.Dom.isTag(t,l);return!!(d&&!(c&&i)||h.attributes?.style&&(a?(0,o.hasSameStyle)(t,h.attributes.style):(0,o.hasSameStyleKeys)(t,h.attributes.style))&&!e.elementIsList)||!d&&!i&&c&&s.Dom.isInlineBlock(t)}function a(e,t,i){return s.Dom.closest(t,t=>n(e,t,!0,!1),i)}function l(e,t){let{element:i,options:s}=e;if(!t||!(0,r.isNormalNode)(t))return!1;let n=t.nodeName.toLowerCase()===i,a=!!(s.attributes?.style&&(0,o.hasSameStyleKeys)(t,s.attributes?.style));return n&&a}},73154(e,t,i){"use strict";i.d(t,{wrap:()=>a});var s=i(27795),o=i(7909),r=i(97110),n=i(83335);function a(e,t,i){var a,c,h;let d=(a=e,c=t,h=i,a.elementIsBlock?s.Dom.up(c,e=>s.Dom.isBlock(e)&&!s.Dom.isTag(e,l),h.editor)||(0,n.wrapUnwrappedText)(a,c,h):((0,o.attr)(c,"size",null),c));return e.elementIsList?(0,r.wrapList)(e,d,i):s.Dom.replace(d,e.element,i.createInside,!0)}let l=new Set(["td","th","tr","tbody","table","li","ul","ol"])},73302(e,t,i){"use strict";i.d(t,{Jodit:()=>Jodit});var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(28077),l=i(65946),c=i(73714),h=i(80512),d=i(5266),u=i(60936);let p="data-jodit-default-style-display",m="data-jodit-default-classes";class Jodit extends u.ViewWithToolbar{className(){return"Jodit"}waitForReady(){return this.isReady?Promise.resolve(this):this.async.promise(e=>{this.hookStatus("ready",()=>e(this))})}static get ready(){return new Promise(e=>{a.eventEmitter.on("joditready",e)})}get text(){if(this.editor)return this.editor.innerText||"";let e=this.createInside.div();return e.innerHTML=this.getElementValue(),e.innerText||""}get defaultTimeout(){return(0,l.isNumber)(this.o.defaultTimeout)?this.o.defaultTimeout:d.Config.defaultOptions.defaultTimeout}static atom(e){return(0,l.markAsAtomic)(e)}static make(e,t){return new this(e,t)}static isJoditAssigned(e){return e&&(0,l.isJoditObject)(e.component)&&!e.component.isInDestruct}static get defaultOptions(){return d.Config.defaultOptions}get createInside(){return new u.Create(()=>this.ed,this.o.createAttributes)}__setPlaceField(e,t){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[e]=t}get element(){return this.currentPlace.element}get editor(){return this.currentPlace.editor}set editor(e){this.__setPlaceField("editor",e)}get container(){return this.currentPlace.container}set container(e){this.__setPlaceField("container",e)}get workplace(){return this.currentPlace.workplace}get message(){return this.getMessageModule(this.workplace)}get statusbar(){return this.currentPlace.statusbar}get iframe(){return this.currentPlace.iframe}set iframe(e){this.__setPlaceField("iframe",e)}get history(){return this.currentPlace.history}get editorWindow(){return this.currentPlace.editorWindow}set editorWindow(e){this.__setPlaceField("editorWindow",e)}get ew(){return this.editorWindow}get editorDocument(){return this.currentPlace.editorWindow.document}get ed(){return this.editorDocument}get options(){return this.currentPlace.options}set options(e){this.__options=e,this.__setPlaceField("options",e)}get s(){return this.selection}get uploader(){return this.getInstance("Uploader",this.o.uploader)}get filebrowser(){let e=this,t=(0,l.ConfigProto)({defaultTimeout:e.defaultTimeout,uploader:e.o.uploader,language:e.o.language,license:e.o.license,theme:e.o.theme,shadowRoot:e.o.shadowRoot,defaultCallback(t){t.files&&t.files.length&&t.files.forEach((i,s)=>{let o=t.baseurl+i;t.isImages&&t.isImages[s]?e.s.insertImage(o,null,e.o.imageDefaultWidth):e.s.insertNode(e.createInside.fromHTML(`<a href='${o}' title='${o}'>${o}</a>`))})}},this.o.filebrowser);return e.getInstance("FileBrowser",t)}get mode(){return this.__mode}set mode(e){this.setMode(e)}getNativeEditorValue(){let e=this.e.fire("beforeGetNativeEditorValue");return(0,l.isString)(e)?e:this.editor?this.editor.innerHTML:this.getElementValue()}setNativeEditorValue(e){let t={value:e};!this.e.fire("beforeSetNativeEditorValue",t)&&this.editor&&(this.editor.innerHTML=t.value)}get value(){return this.getEditorValue()}set value(e){this.setEditorValue(e),this.history.__processChanges()}synchronizeValues(){this.__imdSynchronizeValues()}__imdSynchronizeValues(){this.setEditorValue()}getEditorValue(e=!0,t){let i;if(void 0!==(i=this.e.fire("beforeGetValueFromEditor",t)))return i;i=this.getNativeEditorValue().replace(r.INVISIBLE_SPACE_REG_EXP(),""),e&&(i=i.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===i&&(i="");let s={value:i};return this.e.fire("afterGetValueFromEditor",s,t),s.value}setEditorValue(e){let t=this.e.fire("beforeSetValueToEditor",e);if(!1===t)return;if((0,l.isString)(t)&&(e=t),!this.editor){void 0!==e&&this.__setElementValue(e);return}if(!(0,l.isString)(e)&&!(0,l.isVoid)(e))throw(0,l.error)("value must be string");(0,l.isVoid)(e)||this.getNativeEditorValue()===e||this.setNativeEditorValue(e),this.e.fire("postProcessSetEditorValue");let i=this.getElementValue(),s=this.getEditorValue();if(!this.__isSilentChange&&i!==s&&this.__callChangeCount<r.SAFE_COUNT_CHANGE_CALL){this.__setElementValue(s),this.__callChangeCount+=1,r.IS_PROD||this.__callChangeCount;try{this.history.__upTick(),this.e.fire("change",s,i),this.e.fire(this.history,"change",s,i)}finally{this.__callChangeCount=0}}}updateElementValue(){this.__setElementValue(this.getEditorValue())}getElementValue(){return void 0!==this.element.value?this.element.value:this.element.innerHTML}__setElementValue(e){if(!(0,l.isString)(e))throw(0,l.error)("value must be string");if(this.element!==this.container&&e!==this.getElementValue()){let t={value:e},i=this.e.fire("beforeSetElementValue",t);(0,l.callPromise)(i,()=>{void 0!==this.element.value?this.element.value=t.value:this.element.innerHTML=t.value,this.e.fire("afterSetElementValue",t)})}}registerCommand(e,t,i){let s=e.toLowerCase(),o=this.commands.get(s);if(void 0===o&&(o=[],this.commands.set(s,o)),o.push(t),!(0,l.isFunction)(t)){let o=this.o.commandToHotkeys[s]||this.o.commandToHotkeys[e]||t.hotkeys;o&&this.registerHotkeyToCommand(o,s,i?.stopPropagation)}return this}registerHotkeyToCommand(e,t,i=!0){let s=(0,l.asArray)(e).map(l.normalizeKeyAliases).map(e=>e+".hotkey").join(" ");this.e.off(s).on(s,(e,s)=>(s&&(s.shouldStop=i??!0),this.execCommand(t)))}execCommand(e,t,i,...s){let o;if(this.s.isFocused()||this.s.focus(),!this.o.readonly||this.o.allowCommandsInReadOnly.includes(e)){if(e=e.toLowerCase(),!1!==(o=this.e.fire("beforeCommand"+(0,l.ucfirst)(e),t,i,...s))&&(o=this.e.fire("beforeCommand",e,t,i,...s)),!1!==o&&(o=this.__execCustomCommands(e,t,i,...s)),!1!==o){this.s.focus();try{o=this.nativeExecCommand(e,t,i)}catch(e){if(!r.IS_PROD)throw e}}return this.e.fire("afterCommand",e,t,i),this.__imdSynchronizeValues(),o}}nativeExecCommand(e,t,i){this.__isSilentChange=!0;try{return this.ed.execCommand(e,t,i)}finally{this.__isSilentChange=!1}}__execCustomCommands(e,t,i,...s){e=e.toLowerCase();let o=this.commands.get(e);if(void 0!==o){let r;return o.forEach(o=>{let n=((0,l.isFunction)(o)?o:o.exec).call(this,e,t,i,...s);void 0!==n&&(r=n)}),r}}lock(e="any"){return!!super.lock(e)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.editor.classList.add("jodit_lock"),this.e.fire("lock",!0),!0)}unlock(){return!!super.unlock()&&(this.editor.classList.remove("jodit_lock"),this.__selectionLocked&&this.s.restore(),this.e.fire("lock",!1),!0)}getMode(){return this.mode}isEditorMode(){return this.getRealMode()===r.MODE_WYSIWYG}getRealMode(){if(this.getMode()!==r.MODE_SPLIT)return this.getMode();let e=this.od.activeElement;return e&&(e===this.iframe||u.Dom.isOrContains(this.editor,e)||u.Dom.isOrContains(this.toolbar.container,e))?r.MODE_WYSIWYG:r.MODE_SOURCE}setMode(e){let t=this.getMode(),i={mode:parseInt(e.toString(),10)},s=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",i)&&(this.__mode=[r.MODE_SOURCE,r.MODE_WYSIWYG,r.MODE_SPLIT].includes(i.mode)?i.mode:r.MODE_WYSIWYG,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),s.forEach(e=>{this.container.classList.remove(e)}),this.container.classList.add(s[this.mode-1]),t!==this.getMode()&&this.e.fire("afterSetMode"))}toggleMode(){let e=this.getMode();[r.MODE_SOURCE,r.MODE_WYSIWYG,this.o.useSplitMode?r.MODE_SPLIT:9].includes(e+1)?e+=1:e=r.MODE_WYSIWYG,this.setMode(e)}setDisabled(e){this.o.disabled=e;let t=this.__wasReadOnly;this.setReadOnly(e||t),this.__wasReadOnly=t,this.editor&&(this.editor.setAttribute("aria-disabled",e.toString()),this.container.classList.toggle("jodit_disabled",e),this.e.fire("disabled",e))}getDisabled(){return this.o.disabled}setReadOnly(e){this.__wasReadOnly!==e&&(this.__wasReadOnly=e,this.o.readonly=e,e?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.e&&this.e.fire("readonly",e))}getReadOnly(){return this.o.readonly}focus(){this.getMode()!==r.MODE_SOURCE&&this.s.focus()}get isFocused(){return this.s.isFocused()}beforeInitHook(){}afterInitHook(){}initOptions(e){this.options=(0,l.ConfigProto)(e||{},d.Config.defaultOptions)}initOwners(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}addPlace(e,t){let i=(0,l.resolveElement)(e,this.o.shadowRoot||this.od);this.attachEvents(t),i.attributes&&(0,l.toArray)(i.attributes).forEach(e=>{let i=e.name,s=e.value;void 0===d.Config.defaultOptions[i]||t&&void 0!==t[i]||(-1!==["readonly","disabled"].indexOf(i)&&(s=""===s||"true"===s),/^[0-9]+(\.)?([0-9]+)?$/.test(s.toString())&&(s=Number(s)),this.options[i]=s)});let s=this.c.div("jodit-container");s.classList.add("jodit"),s.classList.add("jodit-container"),s.classList.add("jodit_theme_"+(this.o.theme||"default")),g(this.o.className,s),this.o.containerStyle&&(0,l.css)(s,this.o.containerStyle);let{styleValues:o}=this.o;Object.keys(o).forEach(e=>{let t=(0,l.kebabCase)(e);s.style.setProperty("--jd-"+t,o[e])}),s.setAttribute("contenteditable","false");let r=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(i.nodeName)&&(s=i,i.setAttribute(m,i.className.toString()),r=s.innerHTML,s.innerHTML=""),s.classList.add("jodit_inline"),s.classList.add("jodit-container")),i!==s&&(i.style.display&&i.setAttribute(p,i.style.display),i.style.display="none");let n=this.c.div("jodit-workplace",{contenteditable:!1});s.appendChild(n),i.parentNode&&i!==s&&i.parentNode.insertBefore(s,i),Object.defineProperty(i,"component",{enumerable:!1,configurable:!0,value:this});let a=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});n.appendChild(a);let c={editor:a,element:i,container:s,workplace:n,statusbar:new u.StatusBar(this,s),options:this.isReady?(0,l.ConfigProto)(t||{},d.Config.defaultOptions):this.options,history:new u.History(this),editorWindow:this.ow};this.__elementToPlace.set(a,c),this.setCurrentPlace(c),this.places.push(c),this.setNativeEditorValue(this.getElementValue());let h=this.__initEditor(r),f=this.options,_=()=>{f.enableDragAndDropFileToEditor&&f.uploader&&(f.uploader.url||f.uploader.insertImageAsBase64URI)&&this.uploader.bind(this.editor),this.__elementToPlace.get(this.editor)||this.__elementToPlace.set(this.editor,c),this.e.fire("afterAddPlace",c)};return(0,l.callPromise)(h,_)}addDisclaimer(e){this.workplace.appendChild(e)}setCurrentPlace(e){this.currentPlace!==e&&(this.isEditorMode()||this.setMode(r.MODE_WYSIWYG),this.currentPlace=e,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",e))}__initEditor(e){let t=this.__createEditor();return(0,l.callPromise)(t,()=>{if(this.isInDestruct)return;if(this.element!==this.container){let e=this.getElementValue();e!==this.getEditorValue()&&this.setEditorValue(e)}else null!=e&&this.setEditorValue(e);let t=this.o.defaultMode;if(this.o.saveModeInStorage){let e=this.storage.get("jodit_default_mode");"string"==typeof e&&(t=parseInt(e,10))}this.setMode(t),this.o.readonly&&(this.__wasReadOnly=!1,this.setReadOnly(!0)),this.o.disabled&&this.setDisabled(!0);try{this.ed.execCommand("defaultParagraphSeparator",!1,this.o.enter.toLowerCase())}catch{}})}__createEditor(){let e=this.editor,t=this.e.fire("createEditor",this);return(0,l.callPromise)(t,()=>{!this.isInDestruct&&((!1===t||(0,l.isPromise)(t))&&u.Dom.safeRemove(e),g(this.o.editorClassName,this.editor),this.o.style&&(0,l.css)(this.editor,this.o.style),this.e.on("synchro",()=>{this.setEditorValue()}).on("focus",()=>{this.editorIsActive=!0}).on("blur",()=>this.editorIsActive=!1),this.__prepareWYSIWYGEditor(),this.o.triggerChangeEvent&&this.e.on("change",this.async.debounce(()=>{this.e&&this.e.fire(this.element,"change")},this.defaultTimeout)))})}__prepareWYSIWYGEditor(){let{editor:e}=this;if(this.o.direction){let e="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=e,this.editor.setAttribute("dir",e),this.container.style.direction=e,this.container.setAttribute("dir",e),this.toolbar.setDirection(e)}this.e.on(e,"mousedown touchstart focus",()=>{let t=this.__elementToPlace.get(e);t&&this.setCurrentPlace(t)}).on(e,"compositionend",this.synchronizeValues).on(e,"selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",e=>{if(!this.o.readonly&&!this.__isSilentChange&&(!(e instanceof this.ew.KeyboardEvent)||!e.isComposing)&&this.e&&this.e.fire){if(!1===this.e.fire(e.type,e))return!1;this.synchronizeValues()}})}fetch(e,t){let i=new c.Ajax({url:e,...t},this.o.defaultAjaxOptions),s=()=>{this.e.off("beforeDestruct",s),this.progressbar.progress(100).hide(),i.destruct()};this.e.one("beforeDestruct",s),this.progressbar.show().progress(30);let o=i.send();return o.finally(s).catch(()=>null),o}destruct(){if(this.isInDestruct)return;this.setStatus(u.STATUSES.beforeDestruct),this.__elementToPlace.clear(),(0,n.cached)(this,"storage")?.clear(),(0,n.cached)(this,"buffer")?.clear(),this.commands.clear(),this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body);let e=this.editor?this.getEditorValue():"";this.places.forEach(({container:t,workplace:i,statusbar:s,element:o,iframe:r,editor:n,history:a})=>{if(o){if(o!==t)if(o.hasAttribute(p)){let e=(0,l.attr)(o,p);e&&(o.style.display=e,o.removeAttribute(p))}else o.style.display="";else o.hasAttribute(m)&&(o.className=(0,l.attr)(o,m)||"",o.removeAttribute(m));o.hasAttribute("style")&&!(0,l.attr)(o,"style")&&o.removeAttribute("style"),s.destruct(),this.e.off(t),this.e.off(o),this.e.off(n),u.Dom.safeRemove(i),u.Dom.safeRemove(n),t!==o&&u.Dom.safeRemove(t),Object.defineProperty(o,"component",{enumerable:!1,configurable:!0,value:null}),u.Dom.safeRemove(r),t===o&&(o.innerHTML=e),a.destruct()}}),this.places.length=0,this.currentPlace={},delete a.instances[this.id],super.destruct()}constructor(e,t){super(t,!0),(0,s._)(this,"isJodit",!0),(0,s._)(this,"commands",new Map),(0,s._)(this,"__selectionLocked",null),(0,s._)(this,"__wasReadOnly",!1),(0,s._)(this,"editorIsActive",!1),(0,s._)(this,"selection",void 0),(0,s._)(this,"__mode",r.MODE_WYSIWYG),(0,s._)(this,"__callChangeCount",0),(0,s._)(this,"__isSilentChange",!1),(0,s._)(this,"currentPlace",{options:this.__options}),(0,s._)(this,"places",[]),(0,s._)(this,"__elementToPlace",new Map);try{let t=(0,l.resolveElement)(e,this.options.shadowRoot||this.od);if(Jodit.isJoditAssigned(t))return t.component}catch(e){if(!r.IS_PROD)throw e;throw this.destruct(),e}this.setStatus(u.STATUSES.beforeInit),this.id=(0,l.attr)((0,l.resolveElement)(e,this.o.shadowRoot||this.od),"id")||new Date().getTime().toString(),a.instances[this.id]=this,this.attachEvents(t),this.e.on(this.ow,"resize",()=>{this.e&&this.e.fire("resize")}),this.e.on("prepareWYSIWYGEditor",this.__prepareWYSIWYGEditor),this.selection=new u.Selection(this);let i=this.beforeInitHook();(0,l.callPromise)(i,()=>{if(this.isInDestruct)return;this.e.fire("beforeInit",this),a.pluginSystem.__init(this),this.e.fire("afterPluginSystemInit",this),this.e.on("changePlace",()=>{this.setReadOnly(this.o.readonly),this.setDisabled(this.o.disabled)}),this.places.length=0;let i=this.addPlace(e,t);a.instances[this.id]=this;let s=()=>{this.isInDestruct||(this.e&&this.e.fire("afterInit",this),(0,l.callPromise)(this.afterInitHook()),this.setStatus(u.STATUSES.ready),this.e.fire("afterConstructor",this))};(0,l.callPromise)(i,s)})}}function g(e,t){e&&e.split(/\s+/).forEach(e=>t.classList.add(e))}(0,s._)(Jodit,"fatMode",r.FAT_MODE),(0,s._)(Jodit,"plugins",a.pluginSystem),(0,s._)(Jodit,"modules",a.modules),(0,s._)(Jodit,"ns",a.modules),(0,s._)(Jodit,"decorators",{}),(0,s._)(Jodit,"constants",r),(0,s._)(Jodit,"instances",a.instances),(0,s._)(Jodit,"lang",r.lang),(0,s._)(Jodit,"core",{Plugin:u.Plugin}),(0,o.__decorate)([n.cache],Jodit.prototype,"createInside",null),(0,o.__decorate)([n.cache],Jodit.prototype,"message",null),(0,o.__decorate)([n.cache],Jodit.prototype,"s",null),(0,o.__decorate)([n.cache],Jodit.prototype,"uploader",null),(0,o.__decorate)([n.cache],Jodit.prototype,"filebrowser",null),(0,o.__decorate)([(0,n.throttle)()],Jodit.prototype,"synchronizeValues",null),(0,o.__decorate)([(0,n.watch)(":internalChange")],Jodit.prototype,"updateElementValue",null),(0,o.__decorate)([n.autobind],Jodit.prototype,"__prepareWYSIWYGEditor",null),Jodit=(0,o.__decorate)([(0,n.derive)(h.Dlgs)],Jodit)},73533(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg>'},73714(e,t,i){"use strict";i.d(t,{Ajax:()=>s.Ajax,Response:()=>o.Response});var s=i(17338),o=i(32855)},74103(e,t,i){"use strict";i.d(t,{Prompt:()=>a});var s=i(91565),o=i(7909),r=i(53681),n=i(76841);function a(e,t,i,a,l){let c=this instanceof n.Dialog?this:new n.Dialog({closeOnClickOverlay:!0}),h=(0,r.Button)(c,"cancel","Cancel"),d=(0,r.Button)(c,"ok","Ok"),u=c.c.element("form",{class:"jodit-dialog_prompt"}),p=c.c.element("input",{autofocus:!0,class:"jodit-input"}),m=c.c.element("label");(0,s.isFunction)(t)&&(i=t,t=void 0),a&&(0,o.attr)(p,"placeholder",a),m.appendChild(c.c.text(e)),u.appendChild(m),u.appendChild(p),h.onAction(c.close);let g=()=>{i&&(0,s.isFunction)(i)&&!1===i(p.value)||c.close()};return d.onAction(g),c.e.on(u,"submit",()=>(g(),!1)),c.setFooter([d,h]),c.open(u,t||" ",!0,!0),p.focus(),void 0!==l&&l.length&&(p.value=l,p.select()),c}},74240(e,t,i){"use strict";var s=i(28077),o=i(65946),r=i(2496);i(3244),s.pluginSystem.add("mobile",e=>{let t=0,i=(0,o.splitArray)(e.o.buttons);e.o.mobileTapTimeout&&e.e.on("touchend",i=>{if(i.changedTouches&&i.changedTouches.length){let s=new Date().getTime(),o=s-t;o>e.o.mobileTapTimeout&&(t=s,o<1.5*e.o.mobileTapTimeout&&e.s.insertCursorAtPoint(i.clientX,i.clientY))}}),e.e.on("getDiffButtons.mobile",t=>{if(t===e.toolbar){let t=(0,r.flatButtonsSet)((0,o.splitArray)(e.o.buttons),e),s=(0,r.flatButtonsSet)(i,e);return(0,o.toArray)(t).reduce((e,t)=>(s.has(t)||e.push(t),e),[])}}),e.o.toolbarAdaptive&&e.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",()=>{if(!e.o.toolbar)return;let t=(e.container.parentElement??e.container).offsetWidth,s=e.isFullSize||t>=e.o.sizeLG?(0,o.splitArray)(e.o.buttons):t>=e.o.sizeMD?(0,o.splitArray)(e.o.buttonsMD):t>=e.o.sizeSM?(0,o.splitArray)(e.o.buttonsSM):(0,o.splitArray)(e.o.buttonsXS);s.toString()!==i.toString()&&(i=s,e.e.fire("closeAllPopups"),e.toolbar?.setRemoveButtons(e.o.removeButtons).build(i.concat(e.o.extraButtons)))}).on(e.ow,"load resize",()=>e.e.fire("recalcAdaptive"))})},74264(e,t,i){"use strict";i.d(t,{CamelCaseToKebabCase:()=>o,kebabCase:()=>s});let s=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),o=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},74522(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(96608);let d="__jodit-resizer_binded";class u extends h.Plugin{afterInit(e){(0,c.$$)("div",this.rect).forEach(t=>{e.e.on(t,"mousedown.resizer touchstart.resizer",this.onStartResizing.bind(this,t))}),l.eventEmitter.on("hideHelpers",this.hide),e.e.on("readonly",e=>{e&&this.hide()}).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",e=>{let t=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;t.test(e.value)&&(e.value=e.value.replace(t,"$1"))}),this.addEventListeners(),this.__onChangeEditor()}onEditorClick(e){let t=e.target,{editor:i,options:{allowResizeTags:s}}=this.j;for(;t&&t!==i;){if(a.Dom.isTag(t,s)){this.__bind(t),this.onClickElement(t);return}t=t.parentNode}}__afterInsertImage(e){if(this.j.o.resizer.forImageChangeAttributes)return;let t=(0,c.attr)(e,"width");t&&!(0,c.css)(e,"width",!0)&&((0,c.css)(e,"width",t),(0,c.attr)(e,"width",null))}addEventListeners(){let e=this.j;e.e.off(e.editor,".resizer").off(e.ow,".resizer").on(e.editor,"keydown.resizer",e=>{this.isShown&&e.key===r.KEY_DELETE&&this.element&&!a.Dom.isTag(this.element,"table")&&this.onDelete(e)}).on(e.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([e.ow,e.editor],"scroll.resizer",()=>{this.isShown&&!this.isResizeMode&&this.hide()}).on(e.ow,"keydown.resizer",this.onKeyDown).on(e.ow,"keyup.resizer",this.onKeyUp).on(e.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}onStartResizing(e,t){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=e,t.cancelable&&t.preventDefault(),t.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=t.clientX,this.startY=t.clientY,this.pointerX=t.clientX,this.pointerY=t.clientY;let{j:i}=this;i.e.fire("hidePopup"),i.lock(this.LOCK_KEY),i.e.on(i.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onEndResizing(){let{j:e}=this;e.unlock(),this.isResizeMode=!1,this.isAltMode=!1,e.synchronizeValues(),e.e.off(e.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onResize(e){if(this.isResizeMode){let t,i;if(!this.element)return;if(this.pointerX=e.clientX,this.pointerY=e.clientY,this.j.options.iframe){let s=this.getWorkplacePosition();t=e.clientX+s.left-this.startX,i=e.clientY+s.top-this.startY}else t=this.pointerX-this.startX,i=this.pointerY-this.startY;let s=this.handle.className,o=0,r=0,n=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===n||n&&a.Dom.isTag(this.element,n))?(t?r=Math.round((o=this.width+(s.match(/left/)?-1:1)*t)/this.ratio):o=Math.round((r=this.height+(s.match(/top/)?-1:1)*i)*this.ratio),o>(0,c.innerWidth)(this.j.editor,this.j.ow)&&(r=Math.round((o=(0,c.innerWidth)(this.j.editor,this.j.ow))/this.ratio))):(o=this.width+(s.match(/left/)?-1:1)*t,r=this.height+(s.match(/top/)?-1:1)*i),o>this.j.o.resizer.min_width&&(o<this.rect.parentNode.offsetWidth?this.applySize(this.element,"width",o):this.applySize(this.element,"width","100%")),r>this.j.o.resizer.min_height&&this.applySize(this.element,"height",r),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),e.stopImmediatePropagation()}}onKeyDown(e){this.isAltMode=e.key===r.KEY_ALT,!this.isAltMode&&this.isResizeMode&&this.onEndResizing()}onKeyUp(){this.isAltMode&&this.isResizeMode&&this.element&&(this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.startX=this.pointerX,this.startY=this.pointerY),this.isAltMode=!1}onClickOutside(e){if(this.isShown){if(!this.isResizeMode)return this.hide();e.stopImmediatePropagation(),this.onEndResizing()}}getWorkplacePosition(){return(0,c.offset)(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}applySize(e,t,i){let s=a.Dom.isImage(e)&&this.j.o.resizer.forImageChangeAttributes;s&&(0,c.attr)(e,t,i),(!s||e.style[t])&&(0,c.css)(e,t,i)}onDelete(e){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(a.Dom.safeRemove(this.element),this.hide(),e.preventDefault()))}__onChangeEditor(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),(0,c.$$)("iframe",this.j.editor).forEach(this.__bind)}__bind(e){let t;if(!(!a.Dom.isHTMLElement(e)||!this.j.o.allowResizeTags.has(e.tagName.toLowerCase())||(0,c.dataBind)(e,d))){if((0,c.dataBind)(e,d,!0),a.Dom.isTag(e,"iframe")){let i=e;a.Dom.isHTMLElement(e.parentNode)&&(0,c.attr)(e.parentNode,"-jodit_iframe_wrapper")?e=e.parentNode:(t=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),(0,c.attr)(t,"style",(0,c.attr)(e,"style")),(0,c.css)(t,{display:"inline-block"===e.style.display?"inline-block":"block",width:e.offsetWidth,height:e.offsetHeight}),e.parentNode&&e.parentNode.insertBefore(t,e),t.appendChild(e),this.j.e.on(t,"click",()=>{(0,c.attr)(t,"data-jodit-wrapper_active",!0)}),e=t),this.j.e.off(e,"mousedown.select touchstart.select").on(e,"mousedown.select touchstart.select",()=>{this.j.s.select(e)}).off(e,"changesize").on(e,"changesize",()=>{i.setAttribute("width",e.offsetWidth+"px"),i.setAttribute("height",e.offsetHeight+"px")})}this.j.e.on(e,"dragstart",this.hide),!r.IS_ES_NEXT&&r.IS_IE&&this.j.e.on(e,"mousedown",t=>{a.Dom.isTag(e,"img")&&t.preventDefault()})}}showSizeViewer(e,t){if(this.j.o.resizer.showSize){if(e<this.sizeViewer.offsetWidth||t<this.sizeViewer.offsetHeight)return void this.hideSizeViewer();this.sizeViewer.style.opacity="1",this.sizeViewer.textContent=`${e} x ${t}`,this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})}}show(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||((0,c.markOwner)(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=(0,c.css)(this.j.container,"zIndex").toString()),this.updateSize())}hide(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,a.Dom.safeRemove(this.rect),(0,c.$$)("[data-jodit-wrapper_active='true']",this.j.editor).forEach(e=>(0,c.attr)(e,"data-jodit-wrapper_active",!1)))}beforeDestruct(e){this.hide(),l.eventEmitter.off("hideHelpers",this.hide),e.e.off(this.j.ow,".resizer").off(".resizer")}constructor(...e){super(...e),(0,s._)(this,"LOCK_KEY","resizer"),(0,s._)(this,"handle",void 0),(0,s._)(this,"element",null),(0,s._)(this,"isResizeMode",!1),(0,s._)(this,"isShown",!1),(0,s._)(this,"startX",0),(0,s._)(this,"startY",0),(0,s._)(this,"width",0),(0,s._)(this,"height",0),(0,s._)(this,"ratio",0),(0,s._)(this,"rect",this.j.c.fromHTML(`<div title="${this.j.i18n("Press Alt for custom resizing")}" class="jodit-resizer">
|
|
229
|
+
</a>`},ajax:{...n.Config.prototype.defaultAjaxOptions,url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData:e=>e,process:e=>e},create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},n.Config.prototype.controls.filebrowser={upload:{icon:"plus",tooltip:"Upload file",isInput:!0,isDisabled:e=>!e.dataProvider.canI("FileUpload"),getContent(e,t){let i=new r.UIFileInput(e,{tooltip:t.control.tooltip,onlyImages:e.state.onlyImages});return e.e.fire("bindUploader.filebrowser",i.container),i.container}},remove:{icon:"bin",tooltip:"Remove file",isDisabled:e=>!e.state.activeElements.length||!e.dataProvider.canI("FileRemove"),exec(e){e.e.fire("fileRemove.filebrowser")}},update:{tooltip:"Update file list",exec(e){e.e.fire("update.filebrowser")}},select:{tooltip:"Select file",icon:"check",isDisabled:e=>!e.state.activeElements.length,exec(e){e.e.fire("select.filebrowser")}},edit:{tooltip:"Edit image",icon:"pencil",isDisabled(e){let t=e.state.activeElements;return 1!==t.length||!t[0].isImage||!(e.dataProvider.canI("ImageCrop")||e.dataProvider.canI("ImageResize"))},exec(e){e.e.fire("edit.filebrowser")}},tiles:{tooltip:"Tiles view",icon:"th",isActive:e=>"tiles"===e.state.view,exec(e){e.e.fire("view.filebrowser","tiles")}},list:{tooltip:"List view",icon:"th-list",isActive:e=>"list"===e.state.view,exec(e){e.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent(e,t){let i=t.container.querySelector(".jodit-input");if(i)return i;let s=e.c.element("input",{class:"jodit-input",placeholder:e.i18n("Filter")});return s.value=e.state.filterWord,e.e.on(s,"keydown mousedown",e.async.debounce(()=>{e.e.fire("filter.filebrowser",s.value)},e.defaultTimeout)),s}},sort:{isInput:!0,getContent(e){let t=e.c.fromHTML(`<select class="jodit-input jodit-select"><option value="changed-asc">${e.i18n("Sort by changed")} (⬆)</option><option value="changed-desc">${e.i18n("Sort by changed")} (⬇)</option><option value="name-asc">${e.i18n("Sort by name")} (⬆)</option><option value="name-desc">${e.i18n("Sort by name")} (⬇)</option><option value="size-asc">${e.i18n("Sort by size")} (⬆)</option><option value="size-desc">${e.i18n("Sort by size")} (⬇)</option></select>`);return t.value=e.state.sortBy,e.e.on("sort.filebrowser",e=>{t.value!==e&&(t.value=e)}).on(t,"change",()=>{e.e.fire("sort.filebrowser",t.value)}),t}}}},68616(e,t,i){"use strict";i.d(t,{getPropertyDescriptor:()=>h,watch:()=>d});var s=i(69364),o=i(70535),r=i(32328),n=i(91565),a=i(62101),l=i(31534),c=i(33201);function h(e,t){let i;do i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!i&&e)return i}function d(e,t){return(i,d)=>{if(!(0,n.isFunction)(i[d]))throw(0,c.error)("Handler must be a Function");let u=t?.immediately??!0,p=t?.context,m=t=>{let s=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...i)=>{if(!t.isInDestruct)return t[d](e,...i)};u||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,o]=e.split(":"),r=p;i.length&&(r=t.get(i)),(0,n.isFunction)(r)&&(r=r(t)),s.events.on(r||t,o,c),r||s.events.on(o,c),t.hookStatus("beforeDestruct",()=>{s.events.off(r||t,o,c).off(o,c)});return}let r=e.split("."),[l]=r,d=r.slice(1),u=t[l];(0,a.isPlainObject)(u)&&(0,o.observable)(u).on("change."+d.join("."),c);let m=h(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=u;i!==e&&(u=e,m&&m.set&&m.set.call(t,e),(0,a.isPlainObject)(u)&&(u=(0,o.observable)(u)).on("change."+d.join("."),c),c(l,i,u))},get:()=>m&&m.get?m.get.call(t):u})})};(0,n.isFunction)(i.hookStatus)?i.hookStatus(s.STATUSES.ready,m):m(i)}}},68624(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);i(65230);class h extends c.Plugin{afterInit(e){e.o.link.followOnDblClick&&e.e.on("dblclick.link",this.__onDblClickOnLink),e.e.on(e.editor,"click.link",this.__onClickReadOnlyLink),e.o.link.processPastedLink&&e.e.on("processPaste.link",this.onProcessPasteLink),e.e.on("generateLinkForm.link",this.__generateForm),e.registerCommand("openLinkDialog",{exec:()=>{let t=e.dlg({resizable:!1}),i=this.__generateForm(e.s.current(),()=>{t.close()});i.container.classList.add("jodit-dialog_alert"),t.setContent(i),t.open(),e.async.requestIdleCallback(()=>{let{url_input:e}=(0,l.refs)(i.container);e?.focus()})},hotkeys:e.o.link.hotkeys})}__onDblClickOnLink(e){if(!n.Dom.isTag(e.target,"a"))return;let t=(0,l.attr)(e.target,"href");t&&(location.href=t,e.preventDefault())}onProcessPasteLink(e,t){let{jodit:i}=this;if((0,l.isURL)(t)&&i.o.link.processPastedLink){if(i.e.stopPropagation("processPaste"),i.o.link.processVideoLink){let e=(0,l.call)(i.o.video?.parseUrlToVideoEmbed??l.convertMediaUrlToVideoEmbed,t,{width:i.o.video?.defaultWidth,height:i.o.video?.defaultHeight});if(e!==t)return i.createInside.fromHTML(e)}if(i.s.isCollapsed()){let e=i.createInside.element("a");return e.setAttribute("href",t),e.textContent=t,i.e.fire("applyLink",i,e,null),e}return i.s.commitStyle({element:"a",attributes:{href:t}}),!0}}__generateForm(e,t){let i,{jodit:s}=this,o=s.i18n.bind(s),{openInNewTabCheckbox:r,noFollowCheckbox:a,formTemplate:c,formClassName:h,modeClassName:d}=s.o.link,u=c(s),p=(0,l.isString)(u)?s.c.fromHTML(u,{target_checkbox_box:r,nofollow_checkbox_box:a}):u,m=n.Dom.isElement(p)?p:p.container,g=(0,l.refs)(m),{insert:f,unlink:_,content_input_box:v}=g,{target_checkbox:b,nofollow_checkbox:y,url_input:w}=g,S=n.Dom.isImage(e),{content_input:C}=g,{className_input:E}=g,{className_select:I}=g;C||(C=s.c.element("input",{type:"hidden",ref:"content_input"})),h&&m.classList.add(h),S&&n.Dom.hide(v);let T=()=>i?i.innerText:(0,l.stripTags)(s.s.range.cloneContents(),s.ed);i=!!(e&&n.Dom.closest(e,"a",s.editor))&&n.Dom.closest(e,"a",s.editor),!S&&e&&(C.value=T()),i?(w.value=(0,l.attr)(i,"href")||"",d&&((e,t,i,s)=>{switch(e){case"input":t&&(t.value=(0,l.attr)(i,"class")||"");break;case"select":if(s){for(let e=0;e<s.selectedOptions.length;e++){let t=s.options.item(e);t&&(t.selected=!1)}((0,l.attr)(i,"class")||"").split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{if(e)for(let t=0;t<s.options.length;t++){let i=s.options.item(t);i?.value&&i.value.split(/\s+/).map(e=>e.trim()).includes(e)&&(i.selected=!0)}})}}})(d,E,i,I),r&&b&&(b.checked="_blank"===(0,l.attr)(i,"target")),a&&y&&(y.checked="nofollow"===(0,l.attr)(i,"rel")),f.textContent=o("Update")):n.Dom.hide(_),s.editor.normalize();let x=s.history.snapshot.make();_&&s.e.on(_,"click",e=>{s.s.restore(),s.history.snapshot.restore(x),i&&n.Dom.unwrap(i),s.synchronizeValues(),t(),e.preventDefault()});let D=()=>{let e;if(!w.value.trim().length)return w.focus(),w.classList.add("jodit_error"),!1;s.s.restore(),s.s.removeMarkers(),s.editor.normalize(),s.history.snapshot.restore(x);let o=T()!==C.value.trim(),c=s.createInside;if(i&&n.Dom.isOrContains(s.editor,i))e=[i];else{if(s.s.isCollapsed()){let t=c.element("a");s.s.insertNode(t,!1,!1),e=[t]}else{let t=s.s.current();e=n.Dom.isTag(t,"img")?[n.Dom.wrap(t,"a",c)]:s.s.wrapInTag("a")}e.forEach(e=>s.s.select(e))}return e.forEach(e=>{var t;let i;(0,l.attr)(e,"href",w.value),((e,t,i,s)=>{if(e&&(t??i)){if("input"===e)""===t.value&&s.hasAttribute("class")&&(0,l.attr)(s,"class",null),""!==t.value&&(0,l.attr)(s,"class",t.value);else if("select"===e){s.hasAttribute("class")&&(0,l.attr)(s,"class",null);for(let e=0;e<i.selectedOptions.length;e++){let t=i.selectedOptions.item(e)?.value;t&&t.split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{s.classList.add(e)})}}}})(d,E,I,e),S||(t=C,i=e.textContent,t.value.trim().length?o&&(i=t.value):i=w.value,i!==e.textContent&&(e.textContent=i)),r&&b&&(0,l.attr)(e,"target",b.checked?"_blank":null),a&&y&&(0,l.attr)(e,"rel",y.checked?"nofollow":null),s.e.fire("applyLink",s,e,p)}),s.synchronizeValues(),t(),!1};return n.Dom.isElement(p)?s.e.on(p,"submit",e=>(e.preventDefault(),e.stopImmediatePropagation(),D(),!1)):p.onSubmit(D),p}beforeDestruct(e){e.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(e.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}__onClickReadOnlyLink(e){let{jodit:t}=this;t.o.readonly&&t.o.link.preventReadOnlyNavigation&&n.Dom.isTag(e.target,"a")&&e.preventDefault()}constructor(...e){super(...e),(0,s._)(this,"buttons",[{name:"link",group:"insert"}])}}(0,o.__decorate)([r.autobind],h.prototype,"__onDblClickOnLink",null),(0,o.__decorate)([r.autobind],h.prototype,"onProcessPasteLink",null),(0,o.__decorate)([r.autobind],h.prototype,"__generateForm",null),(0,o.__decorate)([r.autobind],h.prototype,"__onClickReadOnlyLink",null),a.pluginSystem.add("link",h)},68709(e,t,i){"use strict";i.d(t,{checkRemoveContentNotEditable:()=>n});var s=i(27795),o=i(65946),r=i(42259);function n(e,t,i){let n=s.Dom.findSibling(t,i);return!n&&t.parentElement&&t.parentElement!==e.editor&&(n=s.Dom.findSibling(t.parentElement,i)),!(!s.Dom.isElement(n)||s.Dom.isContentEditable(n,e.editor))&&((0,o.call)(i?s.Dom.before:s.Dom.after,n,t),s.Dom.safeRemove(n),(0,r.moveNodeInsideStart)(e,t,i),(0,o.call)(i?e.s.setCursorBefore:e.s.setCursorAfter,t),!0)}},69023(e,t,i){"use strict";i(5266).Config.prototype.tab={tabInsideLiInsertNewList:!0}},69070(e,t,i){"use strict";i(5266).Config.prototype.tableAllowCellSelection=!0},69143(e,t,i){"use strict";i.d(t,{offset:()=>s});let s=(e,t,i,o=!1)=>{let r,n,a;try{r=e.getBoundingClientRect()}catch(e){r={top:0,bottom:0,left:0,right:0,width:0,height:0}}let l=i.body,c=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},h=i.defaultView||i.parentWindow,d=h.pageYOffset||c.scrollTop||l.scrollTop,u=h.pageXOffset||c.scrollLeft||l.scrollLeft,p=c.clientTop||l.clientTop||0,m=c.clientLeft||l.clientLeft||0,g=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&g){let{top:e,left:i}=s(g,t,t.od,!0);n=r.top+e,a=r.left+i}else n=r.top+d-p,a=r.left+u-m;return{top:Math.round(n),left:Math.round(a),width:r.width,height:r.height}}},69364(e,t,i){"use strict";i.d(t,{STATUSES:()=>s});let s={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},69696(e,t,i){"use strict";var s=i(28077),o=i(24497),r=i(80991);i(80538);let n=new Set;s.pluginSystem.add("fullsize",e=>{e.registerButton({name:"fullsize"});let t=!1,i=0,s=0,a=!1,l=()=>{let{container:o,events:n}=e;n&&(t?(i=(0,r.css)(o,"height",!0),s=(0,r.css)(o,"width",!0),(0,r.css)(o,{height:e.ow.innerHeight,width:e.ow.innerWidth}),a=!0):a&&(0,r.css)(o,{height:i||"auto",width:s||"auto"}))},c=i=>{let{container:s,events:a}=e;if(s){if(void 0===i&&(i=!s.classList.contains("jodit_fullsize")),e.setMod("fullsize",i),e.o.fullsize=i,t=i,s.classList.toggle("jodit_fullsize",i),e.toolbar&&((0,o.isJoditObject)(e)&&e.toolbarContainer?.appendChild(e.toolbar.container),(0,r.css)(e.toolbar.container,"width","auto")),i?n.add(s):n.delete(s),e.o.globalFullSize&&(1===n.size&&i||0===n.size&&!i)){let e=s.parentNode;for(;e&&e.nodeType!==Node.DOCUMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)e.classList.toggle("jodit_fullsize-box_true",i),e=e.parentNode;l()}a.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",l),e.e.on("afterInit afterOpen",()=>{e.toggleFullSize(e?.options?.fullsize)}).on("toggleFullSize",c).on("beforeDestruct",()=>{t&&c(!1)}).on("beforeDestruct",()=>{e.events&&e.e.off(e.ow,"resize",l)})})},70195(e,t,i){"use strict";i.d(t,{removeFormatForSelection:()=>n});var s=i(23211),o=i(93640),r=i(37431);function n(e){let{s:t,editor:i,createInside:n}=e,{range:a}=t,l=a.cloneRange(),c=a.cloneRange(),h=n.fake(),d=n.fake();l.collapse(!0),c.collapse(!1),s.Dom.safeInsertNode(l,h),s.Dom.safeInsertNode(c,d),a.setStartBefore(h),a.collapse(!0),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,h),a.setEndAfter(d),a.collapse(!1),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,d);let u=[];s.Dom.between(h,d,e=>{(0,r.isInlineBlock)(e)&&!s.Dom.isTag(e,"a")&&u.push(e),s.Dom.isElement(e)&&(0,o.attr)(e,"style")&&(0,o.attr)(e,"style",null)}),u.forEach(e=>s.Dom.unwrap(e));let p=(e,t)=>{if(!s.Dom.findNotEmptySibling(e,t)){let s=e.parentNode;if(s&&s!==i&&(0,o.attr)(s,"style"))return(0,o.attr)(s,"style",null),p(s,t),!0}};p(h,!0)&&p(d,!1),a.setStartAfter(h),a.setEndBefore(d),t.selectRange(a),s.Dom.safeRemove(h),s.Dom.safeRemove(d)}},70222(e,t,i){"use strict";i.d(t,{isNumeric:()=>o});var s=i(85932);function o(e){if((0,s.isString)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},70235(e,t,i){"use strict";var s=i(7909);t.default=[{name:"eye",tooltip:"Open link",exec(e,t){let i=(0,s.attr)(t,"href");t&&i&&e.ow.open(i)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},70535(e,t,i){"use strict";i.d(t,{observable:()=>c});var s=i(68616),o=i(17312),r=i(94013),n=i(62101);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;let t={},i={},c=(t,s)=>((0,o.isArray)(t)?t.map(e=>c(e,s)):(i[t]||(i[t]=[]),i[t].push(s)),e),h=(s,...r)=>{if((0,o.isArray)(s))return void s.map(e=>h(e,...r));try{!t[s]&&i[s]&&(t[s]=!0,i[s].forEach(t=>t.call(e,...r)))}finally{t[s]=!1}},d=(t,i=[])=>{let o={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);o[a]=t[a];let c=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set(t){let i=o[a];if(!(0,r.isFastEqual)(o[a],t)){h(["beforeChange","beforeChange."+l.join(".")],a,t),(0,n.isPlainObject)(t)&&d(t,l),c&&c.set?c.set.call(e,t):o[a]=t;let s=[];h(["change",...l.reduce((e,t)=>(s.push(t),e.push("change."+s.join(".")),e),[])],l.join("."),i,t?.valueOf?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):o[a],enumerable:!0,configurable:!0}),(0,n.isPlainObject)(o[a])&&d(o[a],l)}),Object.defineProperty(e,"on",{value:c}))};return d(e),e}},70697(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg>'},70881(e){e.exports='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg>'},70999(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg>'},71125(e,t,i){"use strict";i.d(t,{call:()=>a,callPromise:()=>c,getDataTransfer:()=>p,keys:()=>d,loadImage:()=>h,markOwner:()=>l,memorizeExec:()=>u});var s=i(52100),o=i(18303),r=i(7909),n=i(36400);function a(e,...t){return e(...t)}function l(e,t){(0,r.attr)(t,"data-editor_id",e.id),t.component||Object.defineProperty(t,"jodit",{value:e})}function c(e,t){return(0,s.isPromise)(e)?e.then(e=>e,()=>null).finally(t):t?.()}let h=(e,t)=>t.async.promise((i,s)=>{let o=new Image,r=()=>{t.e.off(o),s?.()},n=()=>{t.e.off(o),i(o)};t.e.one(o,"load",n).one(o,"error",r).one(o,"abort",r),o.src=e,o.complete&&n()}),d=(e,t=!0)=>{if(t)return Object.keys(e);let i=[];for(let t in e)i.push(t);return i},u=(e,t,{control:i},s)=>{let r="button"+i.command,a=(i.args&&i.args[0])??(0,n.dataBind)(e,r);if((0,o.isVoid)(a))return!1;(0,n.dataBind)(e,r,a),s&&(a=s(a)),e.execCommand(i.command,!1,a??void 0)},p=e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch{return null}}},71552(e,t,i){"use strict";i.d(t,{applyValuesToImage:()=>l});var s=i(23211),o=i(93640),r=i(49422),n=i(21132),a=i(49147);function l(e,t,i){let{style:l,imageSrc:c,borderRadius:h,imageTitle:d,imageAlt:u,imageLink:p,imageWidth:m,imageHeight:g,marginTop:f,marginRight:_,marginBottom:v,marginLeft:b,imageLinkOpenInNewTab:y,align:w,classes:S,id:C}=t.values,E=e.o;if(E.image.editStyle&&(0,o.attr)(i,"style",l||null),!c)return void s.Dom.safeRemove(i);(0,o.attr)(i,"src",c),i.style.borderRadius=h?h+"px":"",(0,o.attr)(i,"title",d||null),(0,o.attr)(i,"alt",u||null),(0,r.applyLink)(e,i,p,y),(0,a.applySize)(i,m,g,t.sizeIsLocked),e.o.image.editMargins&&(0,n.applyMargin)(e,f,_,v,b,i,t.marginIsLocked),E.image.editClass&&(0,o.attr)(i,"class",S||null),E.image.editId&&(0,o.attr)(i,"id",C||null),E.image.editAlign&&(0,o.hAlignElement)(i,w)}},71693(e,t,i){"use strict";var s=i(81937),o=i(5266);o.Config.prototype.askBeforePasteFromWord=!0,o.Config.prototype.processPasteFromWord=!0,o.Config.prototype.defaultActionOnPasteFromWord=null,o.Config.prototype.pasteFromWordActionList=[{value:s.INSERT_AS_HTML,text:"Keep"},{value:s.INSERT_AS_TEXT,text:"Clean"},{value:s.INSERT_ONLY_TEXT,text:"Insert only Text"}]},71940(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>'},71948(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg>'},72068(e,t,i){"use strict";function s(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}i.d(t,{isAbortError:()=>s})},72214(e,t,i){"use strict";var s=i(25045),o=i(31635),r=i(84839),n=i(27795),a=i(28077),l=i(91206),c=i(4099);i(58293);class h extends l.Plugin{afterInit(e){let{height:t,width:i,allowResizeX:s}=e.o,{allowResizeY:o}=e.o;"auto"===t&&"auto"!==i&&(o=!1),("auto"!==t||"auto"!==i)&&(s||o)&&(e.statusbar.setMod("resize-handle",!0),e.e.on("toggleFullSize.resizeHandler",()=>{this.handle.style.display=e.isFullSize?"none":"block"}).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(e.ow,"mouseup touchend",this.onHandleResizeEnd),e.container.appendChild(this.handle))}onHandleResizeStart(e){this.isResized=!0,this.start.x=e.clientX,this.start.y=e.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,"mousemove touchmove",this.onHandleResize),e.preventDefault()}onHandleResize(e){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+e.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+e.clientX-this.start.x),this.j.e.fire("resize"))}onHandleResizeEnd(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,"mousemove touchmove",this.onHandleResize),this.j.unlock())}beforeDestruct(){n.Dom.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}constructor(...e){super(...e),(0,s._)(this,"isResized",!1),(0,s._)(this,"start",{x:0,y:0,w:0,h:0}),(0,s._)(this,"handle",this.j.c.div("jodit-editor__resize",c.Icon.get("resize_handler")))}}(0,s._)(h,"requires",["size"]),h=(0,o.__decorate)([r.autobind],h),a.pluginSystem.add("resizeHandler",h)},72348(e,t,i){"use strict";i.d(t,{ColorPickerWidget:()=>l});var s=i(27795),o=i(65946),r=i(4099),n=i(54522),a=i.n(n);r.Icon.set("palette",a());let l=(e,t,i)=>{let n="jodit-color-picker",a=(0,o.normalizeColor)(i),l=e.c.div(n),c=e.o.textIcons?`<span>${e.i18n("palette")}</span>`:r.Icon.get("palette"),h=e=>{let t=[];return(0,o.isPlainObject)(e)?Object.keys(e).forEach(i=>{t.push(`<div class="${n}__group ${n}__group-${i}">`),t.push(h(e[i])),t.push("</div>")}):(0,o.isArray)(e)&&e.forEach(e=>{t.push(`<span class='${n}__color-item ${a===e?n+"__color-item_active_true":""}' title="${e}" style="background-color:${e}" data-color="${e}"></span>`)}),t.join("")};l.appendChild(e.c.fromHTML(`<div class="${n}__groups">${h(e.o.colors)}</div>`)),l.appendChild(e.c.fromHTML(`<div data-ref="extra" class="${n}__extra"></div>`));let{extra:d}=(0,o.refs)(l);return e.o.showBrowserColorPicker&&(0,o.hasBrowserColorPicker)()&&(d.appendChild(e.c.fromHTML(`<div class="${n}__native">${c}<input type="color" value="#ffffff"/></div>`)),e.e.on(l,"change",e=>{e.stopPropagation();let i=e.target;if(!i||!i.tagName||!s.Dom.isTag(i,"input"))return;let r=i.value||"";(0,o.isFunction)(t)&&t(r),e.preventDefault()})),e.e.on(l,"mousedown touchend",i=>{i.stopPropagation(),i.preventDefault();let r=i.target;if((!r||!r.tagName||s.Dom.isTag(r,"svg")||s.Dom.isTag(r,"path"))&&r.parentNode&&(r=s.Dom.closest(r.parentNode,"span",e.editor)),!s.Dom.isTag(r,"span")||!r.classList.contains(n+"__color-item"))return;let a=(0,o.attr)(r,"-color")||"";t&&(0,o.isFunction)(t)&&t(a)}),e.e.fire("afterGenerateColorPicker",l,d,t,a),l}},72412(e,t,i){"use strict";function s(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}i.d(t,{isNumber:()=>s})},73019(e,t,i){"use strict";i.d(t,{isSameStyleChild:()=>l,isSuitElement:()=>n,suitableClosest:()=>a});var s=i(23211),o=i(9703),r=i(83653);function n(e,t,i,a=!0){if(!t||!(0,r.isNormalNode)(t))return!1;let{element:l,elementIsDefault:c,options:h}=e;if(s.Dom.isList(t)&&e.elementIsList)return!0;let d=s.Dom.isTag(t,l);return!!(d&&!(c&&i)||h.attributes?.style&&(a?(0,o.hasSameStyle)(t,h.attributes.style):(0,o.hasSameStyleKeys)(t,h.attributes.style))&&!e.elementIsList)||!d&&!i&&c&&s.Dom.isInlineBlock(t)}function a(e,t,i){return s.Dom.closest(t,t=>n(e,t,!0,!1),i)}function l(e,t){let{element:i,options:s}=e;if(!t||!(0,r.isNormalNode)(t))return!1;let n=t.nodeName.toLowerCase()===i,a=!!(s.attributes?.style&&(0,o.hasSameStyleKeys)(t,s.attributes?.style));return n&&a}},73154(e,t,i){"use strict";i.d(t,{wrap:()=>a});var s=i(27795),o=i(7909),r=i(97110),n=i(83335);function a(e,t,i){var a,c,h;let d=(a=e,c=t,h=i,a.elementIsBlock?s.Dom.up(c,e=>s.Dom.isBlock(e)&&!s.Dom.isTag(e,l),h.editor)||(0,n.wrapUnwrappedText)(a,c,h):((0,o.attr)(c,"size",null),c));return e.elementIsList?(0,r.wrapList)(e,d,i):s.Dom.replace(d,e.element,i.createInside,!0)}let l=new Set(["td","th","tr","tbody","table","li","ul","ol"])},73302(e,t,i){"use strict";i.d(t,{Jodit:()=>Jodit});var s=i(25045),o=i(31635),r=i(81937),n=i(84839),a=i(28077),l=i(65946),c=i(73714),h=i(80512),d=i(5266),u=i(60936);let p="data-jodit-default-style-display",m="data-jodit-default-classes";class Jodit extends u.ViewWithToolbar{className(){return"Jodit"}waitForReady(){return this.isReady?Promise.resolve(this):this.async.promise(e=>{this.hookStatus("ready",()=>e(this))})}static get ready(){return new Promise(e=>{a.eventEmitter.on("joditready",e)})}get text(){if(this.editor)return this.editor.innerText||"";let e=this.createInside.div();return e.innerHTML=this.getElementValue(),e.innerText||""}get defaultTimeout(){return(0,l.isNumber)(this.o.defaultTimeout)?this.o.defaultTimeout:d.Config.defaultOptions.defaultTimeout}static atom(e){return(0,l.markAsAtomic)(e)}static make(e,t){return new this(e,t)}static isJoditAssigned(e){return e&&(0,l.isJoditObject)(e.component)&&!e.component.isInDestruct}static get defaultOptions(){return d.Config.defaultOptions}get createInside(){return new u.Create(()=>this.ed,this.o.createAttributes)}__setPlaceField(e,t){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[e]=t}get element(){return this.currentPlace.element}get editor(){return this.currentPlace.editor}set editor(e){this.__setPlaceField("editor",e)}get container(){return this.currentPlace.container}set container(e){this.__setPlaceField("container",e)}get workplace(){return this.currentPlace.workplace}get message(){return this.getMessageModule(this.workplace)}get statusbar(){return this.currentPlace.statusbar}get iframe(){return this.currentPlace.iframe}set iframe(e){this.__setPlaceField("iframe",e)}get history(){return this.currentPlace.history}get editorWindow(){return this.currentPlace.editorWindow}set editorWindow(e){this.__setPlaceField("editorWindow",e)}get ew(){return this.editorWindow}get editorDocument(){return this.currentPlace.editorWindow.document}get ed(){return this.editorDocument}get options(){return this.currentPlace.options}set options(e){this.__options=e,this.__setPlaceField("options",e)}get s(){return this.selection}get uploader(){return this.getInstance("Uploader",this.o.uploader)}get filebrowser(){let e=this,t=(0,l.ConfigProto)({defaultTimeout:e.defaultTimeout,uploader:e.o.uploader,language:e.o.language,license:e.o.license,theme:e.o.theme,shadowRoot:e.o.shadowRoot,defaultCallback(t){t.files&&t.files.length&&t.files.forEach((i,s)=>{let o=t.baseurl+i;t.isImages&&t.isImages[s]?e.s.insertImage(o,null,e.o.imageDefaultWidth):e.s.insertNode(e.createInside.fromHTML(`<a href='${o}' title='${o}'>${o}</a>`))})}},this.o.filebrowser);return e.getInstance("FileBrowser",t)}get mode(){return this.__mode}set mode(e){this.setMode(e)}getNativeEditorValue(){let e=this.e.fire("beforeGetNativeEditorValue");return(0,l.isString)(e)?e:this.editor?this.editor.innerHTML:this.getElementValue()}setNativeEditorValue(e){let t={value:e};!this.e.fire("beforeSetNativeEditorValue",t)&&this.editor&&(this.editor.innerHTML=t.value)}get value(){return this.getEditorValue()}set value(e){this.setEditorValue(e),this.history.__processChanges()}synchronizeValues(){this.__imdSynchronizeValues()}__imdSynchronizeValues(){this.setEditorValue()}getEditorValue(e=!0,t){let i;if(void 0!==(i=this.e.fire("beforeGetValueFromEditor",t)))return i;i=this.getNativeEditorValue().replace(r.INVISIBLE_SPACE_REG_EXP(),""),e&&(i=i.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===i&&(i="");let s={value:i};return this.e.fire("afterGetValueFromEditor",s,t),s.value}setEditorValue(e){let t=this.e.fire("beforeSetValueToEditor",e);if(!1===t)return;if((0,l.isString)(t)&&(e=t),!this.editor){void 0!==e&&this.__setElementValue(e);return}if(!(0,l.isString)(e)&&!(0,l.isVoid)(e))throw(0,l.error)("value must be string");(0,l.isVoid)(e)||this.getNativeEditorValue()===e||this.setNativeEditorValue(e),this.e.fire("postProcessSetEditorValue");let i=this.getElementValue(),s=this.getEditorValue();if(!this.__isSilentChange&&i!==s&&this.__callChangeCount<r.SAFE_COUNT_CHANGE_CALL){this.__setElementValue(s),this.__callChangeCount+=1,r.IS_PROD||this.__callChangeCount;try{this.history.__upTick(),this.e.fire("change",s,i),this.e.fire(this.history,"change",s,i)}finally{this.__callChangeCount=0}}}updateElementValue(){this.__setElementValue(this.getEditorValue())}getElementValue(){return void 0!==this.element.value?this.element.value:this.element.innerHTML}__setElementValue(e){if(!(0,l.isString)(e))throw(0,l.error)("value must be string");if(this.element!==this.container&&e!==this.getElementValue()){let t={value:e},i=this.e.fire("beforeSetElementValue",t);(0,l.callPromise)(i,()=>{void 0!==this.element.value?this.element.value=t.value:this.element.innerHTML=t.value,this.e.fire("afterSetElementValue",t)})}}registerCommand(e,t,i){let s=e.toLowerCase(),o=this.commands.get(s);if(void 0===o&&(o=[],this.commands.set(s,o)),o.push(t),!(0,l.isFunction)(t)){let o=this.o.commandToHotkeys[s]||this.o.commandToHotkeys[e]||t.hotkeys;o&&this.registerHotkeyToCommand(o,s,i?.stopPropagation)}return this}registerHotkeyToCommand(e,t,i=!0){let s=(0,l.asArray)(e).map(l.normalizeKeyAliases).map(e=>e+".hotkey").join(" ");this.e.off(s).on(s,(e,s)=>(s&&(s.shouldStop=i??!0),this.execCommand(t)))}execCommand(e,t,i,...s){let o;if(this.s.isFocused()||this.s.focus(),!this.o.readonly||this.o.allowCommandsInReadOnly.includes(e)){if(e=e.toLowerCase(),!1!==(o=this.e.fire("beforeCommand"+(0,l.ucfirst)(e),t,i,...s))&&(o=this.e.fire("beforeCommand",e,t,i,...s)),!1!==o&&(o=this.__execCustomCommands(e,t,i,...s)),!1!==o){this.s.focus();try{o=this.nativeExecCommand(e,t,i)}catch(e){if(!r.IS_PROD)throw e}}return this.e.fire("afterCommand",e,t,i),this.__imdSynchronizeValues(),o}}nativeExecCommand(e,t,i){this.__isSilentChange=!0;try{return this.ed.execCommand(e,t,i)}finally{this.__isSilentChange=!1}}__execCustomCommands(e,t,i,...s){e=e.toLowerCase();let o=this.commands.get(e);if(void 0!==o){let r;return o.forEach(o=>{let n=((0,l.isFunction)(o)?o:o.exec).call(this,e,t,i,...s);void 0!==n&&(r=n)}),r}}lock(e="any"){return!!super.lock(e)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.editor.classList.add("jodit_lock"),this.e.fire("lock",!0),!0)}unlock(){return!!super.unlock()&&(this.editor.classList.remove("jodit_lock"),this.__selectionLocked&&this.s.restore(),this.e.fire("lock",!1),!0)}getMode(){return this.mode}isEditorMode(){return this.getRealMode()===r.MODE_WYSIWYG}getRealMode(){if(this.getMode()!==r.MODE_SPLIT)return this.getMode();let e=this.od.activeElement;return e&&(e===this.iframe||u.Dom.isOrContains(this.editor,e)||u.Dom.isOrContains(this.toolbar.container,e))?r.MODE_WYSIWYG:r.MODE_SOURCE}setMode(e){let t=this.getMode(),i={mode:parseInt(e.toString(),10)},s=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",i)&&(this.__mode=[r.MODE_SOURCE,r.MODE_WYSIWYG,r.MODE_SPLIT].includes(i.mode)?i.mode:r.MODE_WYSIWYG,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),s.forEach(e=>{this.container.classList.remove(e)}),this.container.classList.add(s[this.mode-1]),t!==this.getMode()&&this.e.fire("afterSetMode"))}toggleMode(){let e=this.getMode();[r.MODE_SOURCE,r.MODE_WYSIWYG,this.o.useSplitMode?r.MODE_SPLIT:9].includes(e+1)?e+=1:e=r.MODE_WYSIWYG,this.setMode(e)}setDisabled(e){this.o.disabled=e;let t=this.__wasReadOnly;this.setReadOnly(e||t),this.__wasReadOnly=t,this.editor&&(this.editor.setAttribute("aria-disabled",e.toString()),this.container.classList.toggle("jodit_disabled",e),this.e.fire("disabled",e))}getDisabled(){return this.o.disabled}setReadOnly(e){this.__wasReadOnly!==e&&(this.__wasReadOnly=e,this.o.readonly=e,e?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.e&&this.e.fire("readonly",e))}getReadOnly(){return this.o.readonly}focus(){this.getMode()!==r.MODE_SOURCE&&this.s.focus()}get isFocused(){return this.s.isFocused()}beforeInitHook(){}afterInitHook(){}initOptions(e){this.options=(0,l.ConfigProto)(e||{},d.Config.defaultOptions)}initOwners(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}addPlace(e,t){let i=(0,l.resolveElement)(e,this.o.shadowRoot||this.od);this.attachEvents(t),i.attributes&&(0,l.toArray)(i.attributes).forEach(e=>{let i=e.name,s=e.value;void 0===d.Config.defaultOptions[i]||t&&void 0!==t[i]||(-1!==["readonly","disabled"].indexOf(i)&&(s=""===s||"true"===s),/^[0-9]+(\.)?([0-9]+)?$/.test(s.toString())&&(s=Number(s)),this.options[i]=s)});let s=this.c.div("jodit-container");s.classList.add("jodit"),s.classList.add("jodit-container"),s.classList.add("jodit_theme_"+(this.o.theme||"default")),g(this.o.className,s),this.o.containerStyle&&(0,l.css)(s,this.o.containerStyle);let{styleValues:o}=this.o;Object.keys(o).forEach(e=>{let t=(0,l.kebabCase)(e);s.style.setProperty("--jd-"+t,o[e])}),s.setAttribute("contenteditable","false");let r=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(i.nodeName)&&(s=i,i.setAttribute(m,i.className.toString()),r=s.innerHTML,s.innerHTML=""),s.classList.add("jodit_inline"),s.classList.add("jodit-container")),i!==s&&(i.style.display&&i.setAttribute(p,i.style.display),i.style.display="none");let n=this.c.div("jodit-workplace",{contenteditable:!1});s.appendChild(n),i.parentNode&&i!==s&&i.parentNode.insertBefore(s,i),Object.defineProperty(i,"component",{enumerable:!1,configurable:!0,value:this});let a=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});n.appendChild(a);let c={editor:a,element:i,container:s,workplace:n,statusbar:new u.StatusBar(this,s),options:this.isReady?(0,l.ConfigProto)(t||{},d.Config.defaultOptions):this.options,history:new u.History(this),editorWindow:this.ow};this.__elementToPlace.set(a,c),this.setCurrentPlace(c),this.places.push(c),this.setNativeEditorValue(this.getElementValue());let h=this.__initEditor(r),f=this.options,_=()=>{f.enableDragAndDropFileToEditor&&f.uploader&&(f.uploader.url||f.uploader.insertImageAsBase64URI)&&this.uploader.bind(this.editor),this.__elementToPlace.get(this.editor)||this.__elementToPlace.set(this.editor,c),this.e.fire("afterAddPlace",c)};return(0,l.callPromise)(h,_)}addDisclaimer(e){this.workplace.appendChild(e)}setCurrentPlace(e){this.currentPlace!==e&&(this.isEditorMode()||this.setMode(r.MODE_WYSIWYG),this.currentPlace=e,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",e))}__initEditor(e){let t=this.__createEditor();return(0,l.callPromise)(t,()=>{if(this.isInDestruct)return;if(this.element!==this.container){let e=this.getElementValue();e!==this.getEditorValue()&&this.setEditorValue(e)}else null!=e&&this.setEditorValue(e);let t=this.o.defaultMode;if(this.o.saveModeInStorage){let e=this.storage.get("jodit_default_mode");"string"==typeof e&&(t=parseInt(e,10))}this.setMode(t),this.o.readonly&&(this.__wasReadOnly=!1,this.setReadOnly(!0)),this.o.disabled&&this.setDisabled(!0);try{this.ed.execCommand("defaultParagraphSeparator",!1,this.o.enter.toLowerCase())}catch{}})}__createEditor(){let e=this.editor,t=this.e.fire("createEditor",this);return(0,l.callPromise)(t,()=>{!this.isInDestruct&&((!1===t||(0,l.isPromise)(t))&&u.Dom.safeRemove(e),g(this.o.editorClassName,this.editor),this.o.style&&(0,l.css)(this.editor,this.o.style),this.e.on("synchro",()=>{this.setEditorValue()}).on("focus",()=>{this.editorIsActive=!0}).on("blur",()=>this.editorIsActive=!1),this.__prepareWYSIWYGEditor(),this.o.triggerChangeEvent&&this.e.on("change",this.async.debounce(()=>{this.e&&this.e.fire(this.element,"change")},this.defaultTimeout)))})}__prepareWYSIWYGEditor(){let{editor:e}=this;if(this.o.direction){let e="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=e,this.editor.setAttribute("dir",e),this.container.style.direction=e,this.container.setAttribute("dir",e),this.toolbar.setDirection(e)}this.e.on(e,"mousedown touchstart focus",()=>{let t=this.__elementToPlace.get(e);t&&this.setCurrentPlace(t)}).on(e,"compositionend",this.synchronizeValues).on(e,"selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",e=>{if(!this.o.readonly&&!this.__isSilentChange&&(!(e instanceof this.ew.KeyboardEvent)||!e.isComposing)&&this.e&&this.e.fire){if(!1===this.e.fire(e.type,e))return!1;this.synchronizeValues()}})}fetch(e,t){let i=new c.Ajax({url:e,...t},this.o.defaultAjaxOptions),s=()=>{this.e.off("beforeDestruct",s),this.progressbar.progress(100).hide(),i.destruct()};this.e.one("beforeDestruct",s),this.progressbar.show().progress(30);let o=i.send();return o.finally(s).catch(()=>null),o}destruct(){if(this.isInDestruct)return;this.setStatus(u.STATUSES.beforeDestruct),this.__elementToPlace.clear(),(0,n.cached)(this,"storage")?.clear(),(0,n.cached)(this,"buffer")?.clear(),this.commands.clear(),this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body);let e=this.editor?this.getEditorValue():"";this.places.forEach(({container:t,workplace:i,statusbar:s,element:o,iframe:r,editor:n,history:a})=>{if(o){if(o!==t)if(o.hasAttribute(p)){let e=(0,l.attr)(o,p);e&&(o.style.display=e,o.removeAttribute(p))}else o.style.display="";else o.hasAttribute(m)&&(o.className=(0,l.attr)(o,m)||"",o.removeAttribute(m));o.hasAttribute("style")&&!(0,l.attr)(o,"style")&&o.removeAttribute("style"),s.destruct(),this.e.off(t),this.e.off(o),this.e.off(n),u.Dom.safeRemove(i),u.Dom.safeRemove(n),t!==o&&u.Dom.safeRemove(t),Object.defineProperty(o,"component",{enumerable:!1,configurable:!0,value:null}),u.Dom.safeRemove(r),t===o&&(o.innerHTML=e),a.destruct()}}),this.places.length=0,this.currentPlace={},delete a.instances[this.id],super.destruct()}constructor(e,t){super(t,!0),(0,s._)(this,"isJodit",!0),(0,s._)(this,"commands",new Map),(0,s._)(this,"__selectionLocked",null),(0,s._)(this,"__wasReadOnly",!1),(0,s._)(this,"editorIsActive",!1),(0,s._)(this,"selection",void 0),(0,s._)(this,"__mode",r.MODE_WYSIWYG),(0,s._)(this,"__callChangeCount",0),(0,s._)(this,"__isSilentChange",!1),(0,s._)(this,"currentPlace",{options:this.__options,container:this.__container}),(0,s._)(this,"places",[]),(0,s._)(this,"__elementToPlace",new Map);try{let t=(0,l.resolveElement)(e,this.options.shadowRoot||this.od);if(Jodit.isJoditAssigned(t))return t.component}catch(e){if(!r.IS_PROD)throw e;throw this.destruct(),e}this.setStatus(u.STATUSES.beforeInit),this.id=(0,l.attr)((0,l.resolveElement)(e,this.o.shadowRoot||this.od),"id")||new Date().getTime().toString(),a.instances[this.id]=this,this.attachEvents(t),this.e.on(this.ow,"resize",()=>{this.e&&this.e.fire("resize")}),this.e.on("prepareWYSIWYGEditor",this.__prepareWYSIWYGEditor),this.selection=new u.Selection(this);let i=this.beforeInitHook();(0,l.callPromise)(i,()=>{if(this.isInDestruct)return;this.e.fire("beforeInit",this),a.pluginSystem.__init(this),this.e.fire("afterPluginSystemInit",this),this.e.on("changePlace",()=>{this.setReadOnly(this.o.readonly),this.setDisabled(this.o.disabled)}),this.places.length=0;let i=this.addPlace(e,t);a.instances[this.id]=this;let s=()=>{this.isInDestruct||(this.e&&this.e.fire("afterInit",this),(0,l.callPromise)(this.afterInitHook()),this.setStatus(u.STATUSES.ready),this.e.fire("afterConstructor",this))};(0,l.callPromise)(i,s)})}}function g(e,t){e&&e.split(/\s+/).forEach(e=>t.classList.add(e))}(0,s._)(Jodit,"fatMode",r.FAT_MODE),(0,s._)(Jodit,"plugins",a.pluginSystem),(0,s._)(Jodit,"modules",a.modules),(0,s._)(Jodit,"ns",a.modules),(0,s._)(Jodit,"decorators",{}),(0,s._)(Jodit,"constants",r),(0,s._)(Jodit,"instances",a.instances),(0,s._)(Jodit,"lang",r.lang),(0,s._)(Jodit,"core",{Plugin:u.Plugin}),(0,o.__decorate)([n.cache],Jodit.prototype,"createInside",null),(0,o.__decorate)([n.cache],Jodit.prototype,"message",null),(0,o.__decorate)([n.cache],Jodit.prototype,"s",null),(0,o.__decorate)([n.cache],Jodit.prototype,"uploader",null),(0,o.__decorate)([n.cache],Jodit.prototype,"filebrowser",null),(0,o.__decorate)([(0,n.throttle)()],Jodit.prototype,"synchronizeValues",null),(0,o.__decorate)([(0,n.watch)(":internalChange")],Jodit.prototype,"updateElementValue",null),(0,o.__decorate)([n.autobind],Jodit.prototype,"__prepareWYSIWYGEditor",null),Jodit=(0,o.__decorate)([(0,n.derive)(h.Dlgs)],Jodit)},73533(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg>'},73714(e,t,i){"use strict";i.d(t,{Ajax:()=>s.Ajax,Response:()=>o.Response});var s=i(17338),o=i(32855)},74103(e,t,i){"use strict";i.d(t,{Prompt:()=>a});var s=i(91565),o=i(7909),r=i(53681),n=i(76841);function a(e,t,i,a,l){let c=this instanceof n.Dialog?this:new n.Dialog({closeOnClickOverlay:!0}),h=(0,r.Button)(c,"cancel","Cancel"),d=(0,r.Button)(c,"ok","Ok"),u=c.c.element("form",{class:"jodit-dialog_prompt"}),p=c.c.element("input",{autofocus:!0,class:"jodit-input"}),m=c.c.element("label");(0,s.isFunction)(t)&&(i=t,t=void 0),a&&(0,o.attr)(p,"placeholder",a),m.appendChild(c.c.text(e)),u.appendChild(m),u.appendChild(p),h.onAction(c.close);let g=()=>{i&&(0,s.isFunction)(i)&&!1===i(p.value)||c.close()};return d.onAction(g),c.e.on(u,"submit",()=>(g(),!1)),c.setFooter([d,h]),c.open(u,t||" ",!0,!0),p.focus(),void 0!==l&&l.length&&(p.value=l,p.select()),c}},74240(e,t,i){"use strict";var s=i(28077),o=i(65946),r=i(2496);i(3244),s.pluginSystem.add("mobile",e=>{let t=0,i=(0,o.splitArray)(e.o.buttons);e.o.mobileTapTimeout&&e.e.on("touchend",i=>{if(i.changedTouches&&i.changedTouches.length){let s=new Date().getTime(),o=s-t;o>e.o.mobileTapTimeout&&(t=s,o<1.5*e.o.mobileTapTimeout&&e.s.insertCursorAtPoint(i.clientX,i.clientY))}}),e.e.on("getDiffButtons.mobile",t=>{if(t===e.toolbar){let t=(0,r.flatButtonsSet)((0,o.splitArray)(e.o.buttons),e),s=(0,r.flatButtonsSet)(i,e);return(0,o.toArray)(t).reduce((e,t)=>(s.has(t)||e.push(t),e),[])}}),e.o.toolbarAdaptive&&e.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",()=>{if(!e.o.toolbar)return;let t=(e.container.parentElement??e.container).offsetWidth,s=e.isFullSize||t>=e.o.sizeLG?(0,o.splitArray)(e.o.buttons):t>=e.o.sizeMD?(0,o.splitArray)(e.o.buttonsMD):t>=e.o.sizeSM?(0,o.splitArray)(e.o.buttonsSM):(0,o.splitArray)(e.o.buttonsXS);s.toString()!==i.toString()&&(i=s,e.e.fire("closeAllPopups"),e.toolbar?.setRemoveButtons(e.o.removeButtons).build(i.concat(e.o.extraButtons)))}).on(e.ow,"load resize",()=>e.e.fire("recalcAdaptive"))})},74264(e,t,i){"use strict";i.d(t,{CamelCaseToKebabCase:()=>o,kebabCase:()=>s});let s=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),o=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},74522(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(96608);let d="__jodit-resizer_binded";class u extends h.Plugin{afterInit(e){(0,c.$$)("div",this.rect).forEach(t=>{e.e.on(t,"mousedown.resizer touchstart.resizer",this.onStartResizing.bind(this,t))}),l.eventEmitter.on("hideHelpers",this.hide),e.e.on("readonly",e=>{e&&this.hide()}).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",e=>{let t=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;t.test(e.value)&&(e.value=e.value.replace(t,"$1"))}),this.addEventListeners(),this.__onChangeEditor()}onEditorClick(e){let t=e.target,{editor:i,options:{allowResizeTags:s}}=this.j;for(;t&&t!==i;){if(a.Dom.isTag(t,s)){this.__bind(t),this.onClickElement(t);return}t=t.parentNode}}__afterInsertImage(e){if(this.j.o.resizer.forImageChangeAttributes)return;let t=(0,c.attr)(e,"width");t&&!(0,c.css)(e,"width",!0)&&((0,c.css)(e,"width",t),(0,c.attr)(e,"width",null))}addEventListeners(){let e=this.j;e.e.off(e.editor,".resizer").off(e.ow,".resizer").on(e.editor,"keydown.resizer",e=>{this.isShown&&e.key===r.KEY_DELETE&&this.element&&!a.Dom.isTag(this.element,"table")&&this.onDelete(e)}).on(e.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([e.ow,e.editor],"scroll.resizer",()=>{this.isShown&&!this.isResizeMode&&this.hide()}).on(e.ow,"keydown.resizer",this.onKeyDown).on(e.ow,"keyup.resizer",this.onKeyUp).on(e.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}onStartResizing(e,t){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=e,t.cancelable&&t.preventDefault(),t.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=t.clientX,this.startY=t.clientY,this.pointerX=t.clientX,this.pointerY=t.clientY;let{j:i}=this;i.e.fire("hidePopup"),i.lock(this.LOCK_KEY),i.e.on(i.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onEndResizing(){let{j:e}=this;e.unlock(),this.isResizeMode=!1,this.isAltMode=!1,e.synchronizeValues(),e.e.off(e.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onResize(e){if(this.isResizeMode){let t,i;if(!this.element)return;if(this.pointerX=e.clientX,this.pointerY=e.clientY,this.j.options.iframe){let s=this.getWorkplacePosition();t=e.clientX+s.left-this.startX,i=e.clientY+s.top-this.startY}else t=this.pointerX-this.startX,i=this.pointerY-this.startY;let s=this.handle.className,o=0,r=0,n=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===n||n&&a.Dom.isTag(this.element,n))?(t?r=Math.round((o=this.width+(s.match(/left/)?-1:1)*t)/this.ratio):o=Math.round((r=this.height+(s.match(/top/)?-1:1)*i)*this.ratio),o>(0,c.innerWidth)(this.j.editor,this.j.ow)&&(r=Math.round((o=(0,c.innerWidth)(this.j.editor,this.j.ow))/this.ratio))):(o=this.width+(s.match(/left/)?-1:1)*t,r=this.height+(s.match(/top/)?-1:1)*i),o>this.j.o.resizer.min_width&&(o<this.rect.parentNode.offsetWidth?this.applySize(this.element,"width",o):this.applySize(this.element,"width","100%")),r>this.j.o.resizer.min_height&&this.applySize(this.element,"height",r),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),e.stopImmediatePropagation()}}onKeyDown(e){this.isAltMode=e.key===r.KEY_ALT,!this.isAltMode&&this.isResizeMode&&this.onEndResizing()}onKeyUp(){this.isAltMode&&this.isResizeMode&&this.element&&(this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.startX=this.pointerX,this.startY=this.pointerY),this.isAltMode=!1}onClickOutside(e){if(this.isShown){if(!this.isResizeMode)return this.hide();e.stopImmediatePropagation(),this.onEndResizing()}}getWorkplacePosition(){return(0,c.offset)(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}applySize(e,t,i){let s=a.Dom.isImage(e)&&this.j.o.resizer.forImageChangeAttributes;s&&(0,c.attr)(e,t,i),(!s||e.style[t])&&(0,c.css)(e,t,i)}onDelete(e){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(a.Dom.safeRemove(this.element),this.hide(),e.preventDefault()))}__onChangeEditor(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),(0,c.$$)("iframe",this.j.editor).forEach(this.__bind)}__bind(e){let t;if(!(!a.Dom.isHTMLElement(e)||!this.j.o.allowResizeTags.has(e.tagName.toLowerCase())||(0,c.dataBind)(e,d))){if((0,c.dataBind)(e,d,!0),a.Dom.isTag(e,"iframe")){let i=e;a.Dom.isHTMLElement(e.parentNode)&&(0,c.attr)(e.parentNode,"-jodit_iframe_wrapper")?e=e.parentNode:(t=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),(0,c.attr)(t,"style",(0,c.attr)(e,"style")),(0,c.css)(t,{display:"inline-block"===e.style.display?"inline-block":"block",width:e.offsetWidth,height:e.offsetHeight}),e.parentNode&&e.parentNode.insertBefore(t,e),t.appendChild(e),this.j.e.on(t,"click",()=>{(0,c.attr)(t,"data-jodit-wrapper_active",!0)}),e=t),this.j.e.off(e,"mousedown.select touchstart.select").on(e,"mousedown.select touchstart.select",()=>{this.j.s.select(e)}).off(e,"changesize").on(e,"changesize",()=>{i.setAttribute("width",e.offsetWidth+"px"),i.setAttribute("height",e.offsetHeight+"px")})}this.j.e.on(e,"dragstart",this.hide),!r.IS_ES_NEXT&&r.IS_IE&&this.j.e.on(e,"mousedown",t=>{a.Dom.isTag(e,"img")&&t.preventDefault()})}}showSizeViewer(e,t){if(this.j.o.resizer.showSize){if(e<this.sizeViewer.offsetWidth||t<this.sizeViewer.offsetHeight)return void this.hideSizeViewer();this.sizeViewer.style.opacity="1",this.sizeViewer.textContent=`${e} x ${t}`,this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})}}show(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||((0,c.markOwner)(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=(0,c.css)(this.j.container,"zIndex").toString()),this.updateSize())}hide(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,a.Dom.safeRemove(this.rect),(0,c.$$)("[data-jodit-wrapper_active='true']",this.j.editor).forEach(e=>(0,c.attr)(e,"data-jodit-wrapper_active",!1)))}beforeDestruct(e){this.hide(),l.eventEmitter.off("hideHelpers",this.hide),e.e.off(this.j.ow,".resizer").off(".resizer")}constructor(...e){super(...e),(0,s._)(this,"LOCK_KEY","resizer"),(0,s._)(this,"handle",void 0),(0,s._)(this,"element",null),(0,s._)(this,"isResizeMode",!1),(0,s._)(this,"isShown",!1),(0,s._)(this,"startX",0),(0,s._)(this,"startY",0),(0,s._)(this,"width",0),(0,s._)(this,"height",0),(0,s._)(this,"ratio",0),(0,s._)(this,"rect",this.j.c.fromHTML(`<div title="${this.j.i18n("Press Alt for custom resizing")}" class="jodit-resizer">
|
|
230
230
|
<div class="jodit-resizer__top-left"></div>
|
|
231
231
|
<div class="jodit-resizer__top-right"></div>
|
|
232
232
|
<div class="jodit-resizer__bottom-right"></div>
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
<div class="${t("resizer")}">${m.Icon.get("resize_handler")}</div>
|
|
251
251
|
</div>
|
|
252
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(/<span([^&]*?)>(.*?)<\/span>/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.3",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||" ",!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&&`
|
|
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||" ",!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||" ",!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">
|
package/es2021.en/jodit.js
CHANGED
|
@@ -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
|
+
* Version: v4.7.4
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -29265,7 +29265,8 @@ class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_9__.ViewWithToolbar {
|
|
|
29265
29265
|
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "editorIsActive", false), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "selection", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__mode", jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.MODE_WYSIWYG), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__callChangeCount", 0), /**
|
|
29266
29266
|
* Don't raise a change event
|
|
29267
29267
|
*/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__isSilentChange", false), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "currentPlace", {
|
|
29268
|
-
options: this.__options
|
|
29268
|
+
options: this.__options,
|
|
29269
|
+
container: this.__container
|
|
29269
29270
|
}), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "places", []), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__elementToPlace", new Map());
|
|
29270
29271
|
try {
|
|
29271
29272
|
const elementSource = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.resolveElement)(element, this.options.shadowRoot || this.od);
|
|
@@ -33051,7 +33052,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
33051
33052
|
* ```
|
|
33052
33053
|
* @packageDocumentation
|
|
33053
33054
|
* @module constants
|
|
33054
|
-
*/ const APP_VERSION = "4.7.
|
|
33055
|
+
*/ const APP_VERSION = "4.7.4";
|
|
33055
33056
|
// prettier-ignore
|
|
33056
33057
|
const ES = "es2021";
|
|
33057
33058
|
const IS_ES_MODERN = true;
|