jodit 3.18.2 → 3.18.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/workspace.xml +114 -101
- package/CHANGELOG.MD +71 -35
- package/README.md +2 -2
- package/build/jodit.css +66 -5
- package/build/jodit.es2018.css +19 -4
- package/build/jodit.es2018.en.css +19 -4
- package/build/jodit.es2018.en.js +326 -91
- package/build/jodit.es2018.en.min.css +1 -1
- package/build/jodit.es2018.en.min.js +1 -1
- package/build/jodit.es2018.js +326 -91
- package/build/jodit.es2018.min.css +1 -1
- package/build/jodit.es2018.min.js +1 -1
- package/build/jodit.js +2036 -1755
- package/build/jodit.min.css +2 -2
- package/build/jodit.min.js +1 -1
- package/build/vdom.css +1 -1
- package/build/vdom.js +5 -3
- package/package.json +1 -1
- package/src/config.ts +5 -1
- package/src/core/async/async.ts +5 -3
- package/src/core/helpers/html/safe-html.ts +4 -0
- package/src/core/helpers/utils/error/error.ts +34 -0
- package/src/core/helpers/utils/error/errors/abort-error.ts +16 -0
- package/src/core/helpers/utils/error/errors/connection-error.ts +16 -0
- package/src/core/helpers/utils/{error.ts → error/errors/index.ts} +3 -6
- package/src/core/helpers/utils/error/errors/options-error.ts +16 -0
- package/{types/core/helpers/utils/error.d.ts → src/core/helpers/utils/error/index.ts} +4 -4
- package/src/core/helpers/utils/reset.ts +4 -0
- package/src/core/helpers/utils/scroll-into-view.ts +4 -0
- package/src/core/request/ajax.ts +22 -11
- package/src/modules/file-browser/data-provider.ts +11 -9
- package/src/modules/file-browser/fetch/load-items.ts +5 -3
- package/src/modules/file-browser/fetch/load-tree.ts +3 -10
- package/src/modules/file-browser/file-browser.test.js +1 -1
- package/src/modules/file-browser/file-browser.ts +10 -1
- package/src/modules/file-browser/listeners/self-listeners.ts +4 -4
- package/src/modules/table/table.test.js +1 -1
- package/src/modules/uploader/README.md +18 -0
- package/src/modules/uploader/config.ts +9 -0
- package/src/modules/uploader/helpers/send-files.ts +10 -2
- package/src/modules/uploader/uploader.test.js +36 -0
- package/src/plugins/clipboard/paste/helpers.ts +13 -4
- package/src/plugins/fix/clean-html/clean-html.test.js +3 -3
- package/src/plugins/fix/clean-html/helpers/remove-format/remove-format-for-selection.ts +1 -1
- package/src/plugins/print/helpers.ts +1 -1
- package/src/plugins/print/lib/generate-critical-css.ts +135 -0
- package/src/plugins/print/print.ts +7 -4
- package/src/plugins/source/editor/engines/ace.ts +4 -0
- package/src/plugins/source/editor/engines/area.ts +4 -0
- package/src/plugins/source/source.ts +10 -12
- package/src/plugins/speech/speech-recognize/README.md +0 -0
- package/src/plugins/speech/speech-recognize/config.ts +23 -0
- package/src/plugins/speech/speech-recognize/helpers/microphone-input.ts +218 -0
- package/src/plugins/speech/speech-recognize/helpers/voice-command.ts +118 -0
- package/src/plugins/speech/speech-recognize/icon.svg +5 -0
- package/src/plugins/speech/speech-recognize/speech-recognize.ts +38 -0
- package/src/plugins/table/config.ts +0 -4
- package/src/plugins/table/table.common.less +1 -4
- package/src/plugins/table/table.test.js +43 -0
- package/src/styles/mixins.less +8 -0
- package/src/types/create.d.ts +1 -1
- package/src/types/events.d.ts +12 -1
- package/src/types/source.d.ts +1 -0
- package/src/types/uploader.d.ts +20 -0
- package/types/core/helpers/utils/error/error.d.ts +13 -0
- package/types/core/helpers/utils/error/errors/abort-error.d.ts +11 -0
- package/types/core/helpers/utils/error/errors/connection-error.d.ts +11 -0
- package/types/core/helpers/utils/error/errors/index.d.ts +11 -0
- package/types/core/helpers/utils/error/errors/options-error.d.ts +11 -0
- package/types/core/helpers/utils/error/index.d.ts +10 -0
- package/types/core/helpers/utils/reset.d.ts +3 -0
- package/types/core/request/ajax.d.ts +1 -1
- package/types/plugins/print/lib/generate-critical-css.d.ts +7 -0
- package/types/plugins/source/editor/engines/ace.d.ts +1 -0
- package/types/plugins/source/editor/engines/area.d.ts +1 -0
- package/types/types/create.d.ts +1 -1
- package/types/types/events.d.ts +12 -1
- package/types/types/source.d.ts +1 -0
- package/types/types/uploader.d.ts +20 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var o in i)("object"==typeof exports?exports:e)[o]=i[o]}})(self,(function(){return function(){var e=[,function(e,t,i){"use strict";i.d(t,{D:()=>s});var o=i(2);class s{constructor(){this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.safePluginsList=["about","enter","backspace"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument="undefined"!=typeof document?document:null,this.ownerWindow="undefined"!=typeof window?window:null,this.shadowRoot=null,this.styleValues={},this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.editorCssClass=!1,this.style=!1,this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=1e3,this.useNativeTooltip=!1,this.enter=o.PARAGRAPH,this.enterBlock="br"!==this.enter?this.enter:o.PARAGRAPH,this.defaultMode=o.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.buttonsMD=["bold","italic","|","ul","ol","eraser","|","font","fontsize","---","image","table","|","link","\n","brush","paragraph","align","|","hr","copyformat","fullsize","---","undo","redo","|","dots"],this.buttonsSM=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"],this.buttonsXS=["bold","brush","paragraph","eraser","|","fontsize","---","image","\n","align","undo","redo","|","link","table","---","dots"],this.events={},this.textIcons=!1,this.showBrowserColorPicker=!0}static get defaultOptions(){return s.__defaultOptions||(s.__defaultOptions=new s),s.__defaultOptions}}s.prototype.controls={}},(e,t,i)=>{"use strict";i.r(t),i.d(t,{ACCURACY:()=>z,BASE_PATH:()=>Y,BR:()=>j,COMMAND_KEYS:()=>T,EMULATE_DBLCLICK_TIMEOUT:()=>B,INSEPARABLE_TAGS:()=>p,INSERT_AS_HTML:()=>H,INSERT_AS_TEXT:()=>F,INSERT_CLEAR_HTML:()=>O,INSERT_ONLY_TEXT:()=>V,INVISIBLE_SPACE:()=>o,INVISIBLE_SPACE_REG_EXP:()=>n,INVISIBLE_SPACE_REG_EXP_END:()=>r,INVISIBLE_SPACE_REG_EXP_START:()=>a,IS_BLOCK:()=>h,IS_IE:()=>P,IS_INLINE:()=>u,IS_MAC:()=>U,KEY_ALIASES:()=>$,KEY_BACKSPACE:()=>f,KEY_DELETE:()=>E,KEY_DOWN:()=>C,KEY_ENTER:()=>v,KEY_ESC:()=>b,KEY_F3:()=>I,KEY_LEFT:()=>y,KEY_RIGHT:()=>k,KEY_SPACE:()=>S,KEY_TAB:()=>g,KEY_UP:()=>w,MARKER_CLASS:()=>N,MAY_BE_REMOVED_WITH_KEY:()=>m,MODE_SOURCE:()=>M,MODE_SPLIT:()=>D,MODE_WYSIWYG:()=>A,NBSP_SPACE:()=>s,NEARBY:()=>x,PARAGRAPH:()=>L,SAFE_COUNT_CHANGE_CALL:()=>W,SPACE_REG_EXP:()=>l,SPACE_REG_EXP_END:()=>d,SPACE_REG_EXP_START:()=>c,TEMP_ATTR:()=>G,TEXT_HTML:()=>R,TEXT_PLAIN:()=>_,TEXT_RTF:()=>q,lang:()=>K});const o="\ufeff",s=" ",n=()=>/[\uFEFF]/g,r=()=>/[\uFEFF]+$/g,a=()=>/^[\uFEFF]+/g,l=()=>/[\s\n\t\r\uFEFF\u200b]+/g,c=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,d=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,h=/^(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,u=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,p=["img","br","video","iframe","script","input","textarea","hr","link","jodit","jodit-media"],m=RegExp(`^${p.join("|")}$`,"i"),f="Backspace",g="Tab",v="Enter",b="Escape",y="ArrowLeft",w="ArrowUp",k="ArrowRight",C="ArrowDown",S="Space",E="Delete",I="F3",x=5,z=10,T=[f,E,w,C,k,y,v,b,I,g],j="br",L="p",A=1,M=2,D=3,P="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),_=P?"text":"text/plain",R=P?"html":"text/html",q=P?"rtf":"text/rtf",N="jodit-selection_marker",B=300,H="insert_as_html",O="insert_clear_html",F="insert_as_text",V="insert_only_text",W=10,U="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),$={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:U?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Y=(()=>{if("undefined"==typeof document)return"";const e=document.currentScript,t=e=>{const t=e.split("/");return/\.js/.test(t[t.length-1])?t.slice(0,t.length-1).join("/")+"/":e};if(e)return t(e.src);const i=document.querySelectorAll("script[src]");return i&&i.length?t(i[i.length-1].src):window.location.href})(),G="data-jodit-temp",K={}},function(e,t,i){"use strict";i.d(t,{vp:()=>u,DG:()=>r,aN:()=>p.a,rO:()=>n,LO:()=>m.L});var o=i(4),s=i(5);const n="JoditEventDefaultNamespace";class r{constructor(){this.__store=new Map}get(e,t){if(this.__store.has(t)){const i=this.__store.get(t);return(0,o.h)(i,"-"),i[e]}}indexOf(e,t,i){const o=this.get(e,t);if(o)for(let e=0;o.length>e;e+=1)if(o[e].originalCallback===i)return e;return!1}namespaces(e=!1){const t=(0,s.q)(this.__store.keys());return e?t.filter((e=>e!==n)):t}events(e){const t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,o=!1){let s=this.__store.get(t);s||(s={},this.__store.set(t,s)),void 0===s[e]&&(s[e]=[]),o?s[e].unshift(i):s[e].push(i)}clear(){this.__store.clear()}clearEvents(e,t){const i=this.__store.get(e);i&&i[t]&&(delete i[t],Object.keys(i).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}}var a=i(8),l=i(11),c=i(9),d=i(14),h=i(13);class u{constructor(e){this.mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.doc=document,this.prepareEvent=e=>{e.cancelBubble||(e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach((t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})})),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.isDestructed=!1,e&&(this.doc=e),this.__key+=(new Date).getTime()}mute(e){return this.mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!(!e||!this.mutedEvents.has(e))||this.mutedEvents.has("*")}unmute(e){return this.mutedEvents.delete(null!=e?e:"*"),this}eachEvent(e,t){(0,h.C)(e).map((e=>e.trim())).forEach((e=>{const i=e.split(".");t.call(this,i[0],i[1]||n)}))}getStore(e){if(!e)throw(0,d.v)("Need subject");if(void 0===e[this.__key]){const t=new r;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){const i=this.doc.createEvent("HTMLEvents");(0,a.H)(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,o){let s,n,r,h;if((0,a.H)(e)||(0,a.G)(e)?(s=this,n=e,r=t,h=i):(s=e,n=t,r=i,h=o),!(0,a.H)(n)&&!(0,a.G)(n)||0===n.length)throw(0,d.v)("Need events names");if(!(0,l.m)(r))throw(0,d.v)("Need event handler");if((0,c.k)(s))return s.forEach((e=>{this.on(e,n,r,h)})),this;const u=s,p=this.getStore(u),m=(0,l.m)(u.addEventListener),f=this;let g=function(e,...t){if(!f.isMuted(e))return r&&r.call(this,...t)};return m&&(g=function(e){if(!f.isMuted(e.type))return f.prepareEvent(e),r&&!1===r.call(this,e)?(e.preventDefault(),e.stopImmediatePropagation(),!1):void 0}),this.eachEvent(n,((e,t)=>{if(0===e.length)throw(0,d.v)("Need event name");if(!1===p.indexOf(e,t,r)&&(p.set(e,t,{event:e,originalCallback:r,syntheticCallback:g},null==h?void 0:h.top),m)){const t=!!["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"].includes(e)&&{passive:!0};u.addEventListener(e,g,t)}})),this}one(e,t,i,o){let s,n,r,l;(0,a.H)(e)||(0,a.G)(e)?(s=this,n=e,r=t,l=i):(s=e,n=t,r=i,l=o);const c=(...e)=>(this.off(s,n,c),r(...e));return this.on(s,n,c,l),this}off(e,t,i){let o,s,r;if((0,a.H)(e)||(0,a.G)(e)?(o=this,s=e,r=t):(o=e,s=t,r=i),(0,c.k)(o))return o.forEach((e=>{this.off(e,s,r)})),this;const d=o,h=this.getStore(d);if(!(0,a.H)(s)&&!(0,a.G)(s)||0===s.length)return h.namespaces().forEach((e=>{this.off(d,"."+e)})),this.removeStoreFromSubject(d),this;const u=(0,l.m)(d.removeEventListener),p=e=>{u&&d.removeEventListener(e.event,e.syntheticCallback,!1)},m=(e,t)=>{if(""===e)return void h.events(t).forEach((e=>{""!==e&&m(e,t)}));const i=h.get(e,t);if(i&&i.length)if((0,l.m)(r)){const o=h.indexOf(e,t,r);!1!==o&&(p(i[o]),i.splice(o,1),i.length||h.clearEvents(t,e))}else i.forEach(p),i.length=0,h.clearEvents(t,e)};return this.eachEvent(s,((e,t)=>{t===n?h.namespaces().forEach((t=>{m(e,t)})):m(e,t)})),h.isEmpty()&&this.removeStoreFromSubject(d),this}stopPropagation(e,t){const i=(0,a.H)(e)?this:e,o=(0,a.H)(e)?e:t;if("string"!=typeof o)throw(0,d.v)("Need event names");const s=this.getStore(i);this.eachEvent(o,((e,t)=>{const o=s.get(e,t);o&&this.__stopped.push(o),t===n&&s.namespaces(!0).forEach((t=>this.stopPropagation(i,e+"."+t)))}))}removeStop(e){if(e){const t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...i){let o,s;const r=(0,a.H)(e)?this:e,c=(0,a.H)(e)?e:t,h=(0,a.H)(e)?[t,...i]:i,u=(0,l.m)(r.dispatchEvent);if(!u&&!(0,a.H)(c))throw(0,d.v)("Need events names");const p=this.getStore(r);return!(0,a.H)(c)&&u?this.triggerNativeEvent(r,t):this.eachEvent(c,((e,t)=>{if(u)this.triggerNativeEvent(r,e);else{const i=p.get(e,t);if(i)try{[...i].every((t=>!this.isStopped(i)&&(this.currents.push(e),s=t.syntheticCallback.call(r,e,...h),this.currents.pop(),void 0!==s&&(o=s),!0)))}finally{this.removeStop(i)}t!==n||u||p.namespaces().filter((e=>e!==t)).forEach((t=>{const i=this.fire.call(this,r,e+"."+t,...h);void 0!==i&&(o=i)}))}})),o}destruct(){this.isDestructed&&(this.isDestructed=!0,this.off(this),this.getStore(this).clear(),this.removeStoreFromSubject(this))}}var p=i(15),m=i(16)},function(e,t,i){"use strict";i.d(t,{h:()=>s});class o extends Error{constructor(e){super(e),this.name="AssertionError"}}function s(e,t){if(!e)throw new o("Assertion failed: "+t)}},(e,t,i)=>{"use strict";i.d(t,{q:()=>n});var o=i(6),s=i(12);const n=(...e)=>{var t;return((0,s.Q)(Array.from)?Array.from:null!==(t=(0,o.m)("Array.from"))&&void 0!==t?t:Array.from).apply(Array,e)}},(e,t,i)=>{"use strict";i.d(t,{m:()=>r});var o=i(7),s=i(11);const n={},r=e=>{var t,i;if(!(e in n)){const i=document.createElement("iframe");try{if(i.src="about:blank",document.body.appendChild(i),!i.contentWindow)return null;const r=(0,o.U)(e,i.contentWindow),a=(0,o.U)(e.split(".").slice(0,-1).join("."),i.contentWindow);(0,s.m)(r)&&(n[e]=r.bind(a))}catch(e){}finally{null===(t=i.parentNode)||void 0===t||t.removeChild(i)}}return null!==(i=n[e])&&void 0!==i?i:null}},(e,t,i)=>{"use strict";i.d(t,{U:()=>n});var o=i(8),s=i(10);function n(e,t){if(!(0,o.H)(e)||!e.length)return null;const i=e.split(".");let n=t;try{for(const e of i){if((0,s.n)(n[e]))return null;n=n[e]}}catch(e){return null}return(0,s.n)(n)?null:n}},(e,t,i)=>{"use strict";i.d(t,{G:()=>n,H:()=>s});var o=i(9);function s(e){return"string"==typeof e}function n(e){return(0,o.k)(e)&&s(e[0])}},(e,t,i)=>{"use strict";function o(e){return Array.isArray(e)}i.d(t,{k:()=>o})},(e,t,i)=>{"use strict";function o(e){return null==e}i.d(t,{n:()=>o})},(e,t,i)=>{"use strict";function o(e){return"function"==typeof e}i.d(t,{m:()=>o})},(e,t,i)=>{"use strict";function o(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(e+""))}i.d(t,{Q:()=>o})},(e,t,i)=>{"use strict";function o(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}i.d(t,{C:()=>o})},(e,t,i)=>{"use strict";function o(e){return new TypeError(e)}i.d(t,{v:()=>o})},function(e,t,i){"use strict";i.d(t,{a:()=>o});class o{constructor(){this.map=new Map}on(e,t){var i;return this.map.has(e)||this.map.set(e,new Set),null===(i=this.map.get(e))||void 0===i||i.add(t),this}off(e,t){var i;return this.map.has(e)&&(null===(i=this.map.get(e))||void 0===i||i.delete(t)),this}emit(e,...t){var i;let o;return this.map.has(e)&&(null===(i=this.map.get(e))||void 0===i||i.forEach((e=>{o=e(...t)}))),o}}},(e,t,i)=>{"use strict";i.d(t,{L:()=>c});var o=i(9),s=i(22),n=i(20),r=i(17);const a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;const t={},i={},c=(t,s)=>(0,o.k)(t)?(t.map((e=>c(e,s))),e):(i[t]||(i[t]=[]),i[t].push(s),e),d=(s,...n)=>{if((0,o.k)(s))s.map((e=>d(e,...n)));else try{!t[s]&&i[s]&&(t[s]=!0,i[s].forEach((t=>t.call(e,...n))))}finally{t[s]=!1}},h=(t,i=[])=>{const o={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach((a=>{const l=a,c=i.concat(l).filter((e=>e.length));o[l]=t[l];const u=(0,r.w7)(t,l);Object.defineProperty(t,l,{set(t){const i=o[l];if(!(0,s.L)(o[l],t)){d(["beforeChange","beforeChange."+c.join(".")],l,t),(0,n.P)(t)&&h(t,c),u&&u.set?u.set.call(e,t):o[l]=t;const s=[];d(["change",...c.reduce(((e,t)=>(s.push(t),e.push("change."+s.join(".")),e)),[])],c.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>u&&u.get?u.get.call(e):o[l],enumerable:!0,configurable:!0}),(0,n.P)(o[l])&&h(o[l],c)})),Object.defineProperty(e,"on",{value:c}))};return h(e),e}},(e,t,i)=>{"use strict";i.d(t,{YP:()=>h,w7:()=>d});var o=i(11),s=i(20),n=i(19),r=i(16),a=i(18),l=i(13),c=i(14);function d(e,t){let i;do{i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e)}while(!i&&e);return i}function h(e,t){return(i,h)=>{if(!(0,o.m)(i[h]))throw(0,c.v)("Handler must be a Function");const u=a=>{const c=(e,...t)=>{if(!a.isInDestruct)return a[h](e,...t)};(0,l.C)(e).forEach((e=>{if(/:/.test(e)){const[i,s]=e.split(":");let r=t;const l=(0,n.f)(a)?a:a.jodit;return i.length&&(r=a.get(i)),(0,o.m)(r)&&(r=r(a)),l.events.on(r||a,s,c),r||l.events.on(s,c),void a.hookStatus("beforeDestruct",(()=>{l.events.off(r||a,s,c).off(s,c)}))}const l=e.split("."),[h]=l,u=l.slice(1);let p=a[h];(0,s.P)(p)&&(0,r.L)(p).on("change."+u.join("."),c);const m=d(i,h);Object.defineProperty(a,h,{configurable:!0,set(e){const t=p;t!==e&&(p=e,m&&m.set&&m.set.call(a,e),(0,s.P)(p)&&(p=(0,r.L)(p),p.on("change."+u.join("."),c)),c(h,t,p))},get(){return m&&m.get?m.get.call(a):p}})}))};(0,o.m)(i.hookStatus)?i.hookStatus(a.n.ready,u):u(i)}}},(e,t,i)=>{"use strict";i.d(t,{n:()=>o});const o={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},(e,t,i)=>{"use strict";i.d(t,{f:()=>s});var o=i(11);function s(e){return!!(e&&e instanceof Object&&(0,o.m)(e.constructor)&&e.isView)}},(e,t,i)=>{"use strict";i.d(t,{P:()=>s});var o=i(21);function s(e){return!(!e||"object"!=typeof e||e.nodeType||(0,o.F)(e)||e.constructor&&!{}.hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},(e,t,i)=>{"use strict";function o(e){return null!=e&&e===e.window}i.d(t,{F:()=>o})},(e,t,i)=>{"use strict";i.d(t,{L:()=>n,X:()=>s});var o=i(23);function s(e,t){return e===t||(0,o.P)(e)===(0,o.P)(t)}function n(e,t){return e===t}},(e,t,i)=>{"use strict";function o(e,t={}){if("object"!=typeof e)return e+"";const i=new Set(t.excludeKeys),o=new WeakMap;return JSON.stringify(e,((e,t)=>{if(!i.has(e)){if("object"==typeof t&&null!=t){if(o.get(t))return"[refObject]";o.set(t,!0)}return t}}),t.prettify)}i.d(t,{P:()=>o})},function(e,t,i){"use strict";i.d(t,{e:()=>c});var o=i(26),s=i(11),n=i(20),r=i(27),a=i(8),l=i(25);class c{constructor(){var e,t,i,o;this.timers=new Map,this.promisesRejections=new Set,this.requestsIdle=new Set,this.requestsRaf=new Set,this.requestIdleCallbackNative=null!==(t=null===(e=window.requestIdleCallback)||void 0===e?void 0:e.bind(window))&&void 0!==t?t:(e,t)=>{var i;const o=Date.now();return this.setTimeout((()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})}),null!==(i=null==t?void 0:t.timeout)&&void 0!==i?i:1)},this.cancelIdleCallbackNative=null!==(o=null===(i=window.cancelIdleCallback)||void 0===i?void 0:i.bind(window))&&void 0!==o?o:e=>{this.clearTimeout(e)},this.isDestructed=!1}delay(e){return this.promise((t=>this.setTimeout(t,e)))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let s={};(0,l.h)(t)||(s=t,t=s.timeout||0),s.label&&this.clearLabel(s.label);const n=(0,o.i)(e,t,...i);return this.timers.set(s.label||n,n),n}clearLabel(e){e&&this.timers.has(e)&&((0,o.g)(this.timers.get(e)),this.timers.delete(e))}clearTimeout(e){if((0,a.H)(e))return this.clearLabel(e);(0,o.g)(e),this.timers.delete(e)}debounce(e,t,i=!1){let a=0,l=!1;const c=[],d=(...t)=>{if(!l){a=0;const i=e(...t);if(l=!0,c.length){const e=()=>{c.forEach((e=>e())),c.length=0};(0,r.t)(i)?i.finally(e):e()}}},h=(...n)=>{l=!1,t?(!a&&i&&d(...n),(0,o.g)(a),a=this.setTimeout((()=>d(...n)),(0,s.m)(t)?t():t),this.timers.set(e,a)):d(...n)};return(0,n.P)(t)&&t.promisify?(...e)=>{const t=this.promise((e=>{c.push(e)}));return h(...e),t}:h}throttle(e,t,i=!1){let o,n,r,a=null;return(...i)=>{o=!0,r=i,t?a||(n=()=>{o?(e(...r),o=!1,a=this.setTimeout(n,(0,s.m)(t)?t():t),this.timers.set(n,a)):a=null},n()):e(...r)}}promise(e){let t=()=>{};const i=new Promise(((i,o)=>(this.promisesRejections.add(o),t=o,e(i,o))));return i.finally((()=>{this.promisesRejections.delete(t)})),i.rejectCallback=t,i}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise((t=>{e.then((e=>(t("fulfilled"),e)),(e=>{throw t("rejected"),e})),this.setTimeout((()=>{t("pending")}),100)}));const t={};return Promise.race([e,t]).then((e=>e===t?"pending":"fulfilled"),(()=>"rejected"))}requestIdleCallback(e,t){const i=this.requestIdleCallbackNative(e,t);return this.requestsIdle.add(i),i}requestIdlePromise(e){return this.promise((t=>{const i=this.requestIdleCallback((()=>t(i)),e)}))}cancelIdleCallback(e){return this.requestsIdle.delete(e),this.cancelIdleCallbackNative(e)}requestAnimationFrame(e){const t=requestAnimationFrame(e);return this.requestsRaf.add(t),t}cancelAnimationFrame(e){this.requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.requestsIdle.forEach((e=>this.cancelIdleCallback(e))),this.requestsRaf.forEach((e=>this.cancelAnimationFrame(e))),this.timers.forEach((e=>(0,o.g)(this.timers.get(e)))),this.timers.clear(),this.promisesRejections.forEach((e=>e())),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}}},(e,t,i)=>{"use strict";function o(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}i.d(t,{h:()=>o})},(e,t,i)=>{"use strict";function o(e,t,...i){return t?window.setTimeout(e,t,...i):(e.call(null,...i),0)}function s(e){window.clearTimeout(e)}i.d(t,{g:()=>s,i:()=>o})},(e,t,i)=>{"use strict";function o(e){return e&&"function"==typeof e.then}i.d(t,{t:()=>o})},(e,t,i)=>{"use strict";i.r(t),i.d(t,{$$:()=>o.$$,CamelCaseToKebabCase:()=>j.gP,ConfigFlatten:()=>o.tp,ConfigProto:()=>o.II,LimitedStack:()=>o.lI,appendScript:()=>o.uR,appendScriptAsync:()=>o.JL,appendStyleAsync:()=>o.Nf,applyStyles:()=>m,asArray:()=>n,assert:()=>o.hu,attr:()=>o.Lj,browser:()=>o.Xh,buildQuery:()=>o.XP,call:()=>o.RE,callPromise:()=>o.C6,camelCase:()=>j.eV,cleanFromWord:()=>f,clearCenterAlign:()=>o.bI,clearTimeout:()=>l.g,cns:()=>o.H5,colorToHex:()=>d.h,completeUrl:()=>o.WO,convertMediaUrlToVideoEmbed:()=>o.UU,css:()=>o.iv,cssPath:()=>o.iN,ctrlKey:()=>o.kT,dataBind:()=>o.qI,defaultLanguage:()=>o.X9,error:()=>o.vU,fastClone:()=>o.V8,fuzzySearchIndex:()=>j.Qy,get:()=>o.U2,getClassName:()=>o.gj,getContentWidth:()=>C,getScrollParent:()=>S,getXPathByElement:()=>o.BR,hasBrowserColorPicker:()=>c.EO,hasContainer:()=>c.Zt,htmlspecialchars:()=>g,humanSizeToBytes:()=>o.wx,i18n:()=>j.ag,inView:()=>o.jF,innerWidth:()=>E,isArray:()=>c.kJ,isAtom:()=>o.J8,isBoolean:()=>c.jn,isDestructable:()=>c.Z$,isEqual:()=>c.Xy,isFastEqual:()=>c.LP,isFunction:()=>c.mf,isHTML:()=>c.FP,isHtmlFromWord:()=>c.I4,isInitable:()=>c.Gu,isInt:()=>c.GN,isJoditObject:()=>c.Zu,isLicense:()=>c.A1,isNativeFunction:()=>c.QC,isNumber:()=>c.hj,isNumeric:()=>c.kE,isPlainObject:()=>c.PO,isPromise:()=>c.tI,isString:()=>c.HD,isStringArray:()=>c.GI,isURL:()=>c.PX,isValidName:()=>c.r1,isViewObject:()=>c.f2,isVoid:()=>c.nj,isWindow:()=>c.FJ,kebabCase:()=>j.GL,keepNames:()=>o.kc,keys:()=>o.am,loadImage:()=>o.po,loadNext:()=>o.wY,loadNextStyle:()=>o.GX,markAsAtomic:()=>o.XT,markDeprecated:()=>o.Q8,markOwner:()=>o.MN,memorizeExec:()=>o.u3,nl2br:()=>w,normalizeColor:()=>k.ut,normalizeCssValue:()=>k.Zh,normalizeKeyAliases:()=>k.T2,normalizeLicense:()=>k.Pd,normalizeNode:()=>k.Tz,normalizePath:()=>k.AH,normalizeRelativePath:()=>k.Jf,normalizeSize:()=>k.aC,normalizeUrl:()=>k.D5,offset:()=>I,parseQuery:()=>o.mB,position:()=>z,refs:()=>o.xL,reset:()=>o.mc,resolveElement:()=>o.W2,safeHTML:()=>y.e,sanitizeHTMLElement:()=>y.n,scrollIntoViewIfNeeded:()=>o.n5,set:()=>o.t8,setTimeout:()=>l.i,size:()=>T.d,splitArray:()=>r.C,sprintf:()=>j.gB,stringify:()=>j.Pz,stripTags:()=>b,toArray:()=>a.q,trim:()=>j.fy,trimInv:()=>j.as,ucfirst:()=>j.Ps,val:()=>o.P0});var o=i(29),s=i(9);const n=e=>(0,s.k)(e)?e:[e];var r=i(13),a=i(5),l=i(26),c=i(45),d=i(37),h=i(42),u=i(61);function p(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,((e,t,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e}))}function m(e){if(-1===e.indexOf("<html "))return e;e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7);const t=document.createElement("iframe");t.style.display="none",document.body.appendChild(t);let i="",s=[];try{const n=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(n){n.open(),n.write(e),n.close();try{for(let e=0;n.styleSheets.length>e;e+=1){const t=n.styleSheets[e].cssRules;for(let e=0;t.length>e;e+=1)""!==t[e].selectorText&&(s=(0,o.$$)(t[e].selectorText,n.body),s.forEach((i=>{i.style.cssText=p(t[e].style.cssText+";"+i.style.cssText)})))}}catch(e){}h.i.each(n.body,(e=>{if(h.i.isElement(e)){const t=e,i=t.getAttribute("style");i&&(t.style.cssText=p(i)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}})),i=n.firstChild?(0,u.f)(n.body.innerHTML):""}}catch(e){}finally{h.i.safeRemove(t)}return i&&(e=i),(0,u.f)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}function f(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{const i=document.createElement("div");i.innerHTML=e;const o=[];i.firstChild&&h.i.each(i,(e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":o.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":h.i.unwrap(e);break;default:(0,a.q)(e.attributes).forEach((t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&e.removeAttribute(t.name)}))}break;case Node.TEXT_NODE:break;default:o.push(e)}})),h.i.safeRemove.apply(null,o),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(u.f).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}function g(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}var v=i(8);function b(e,t=document){const i=t.createElement("div");return(0,v.H)(e)?i.innerHTML=e:i.appendChild(e),(0,o.$$)("DIV, P, BR, H1, H2, H3, H4, H5, H6, HR",i).forEach((e=>{const i=e.parentNode;if(!i)return;const o=e.nextSibling;h.i.isText(o)&&/^\s/.test(o.nodeValue||"")||o&&i.insertBefore(t.createTextNode(" "),o)})),(0,u.f)(i.innerText)||""}var y=i(62);function w(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}var k=i(63);const C=(e,t)=>{const i=e=>parseInt(e,10),o=t.getComputedStyle(e);return e.offsetWidth-i(o.getPropertyValue("padding-left")||"0")-i(o.getPropertyValue("padding-right")||"0")};function S(e){if(!e)return null;const t=h.i.isHTMLElement(e),i=t&&(0,o.iv)(e,"overflowY");return t&&"visible"!==i&&"hidden"!==i&&e.scrollHeight>=e.clientHeight?e:S(e.parentNode)||document.scrollingElement||document.body}const E=(e,t)=>{const i=t.getComputedStyle(e);let o=e.clientWidth;return o-=parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"),o},I=(e,t,i,o=!1)=>{let s;try{s=e.getBoundingClientRect()}catch(e){s={top:0,bottom:0,left:0,right:0,width:0,height:0}}const n=i.body,r=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},a=i.defaultView||i.parentWindow,l=a.pageYOffset||r.scrollTop||n.scrollTop,c=a.pageXOffset||r.scrollLeft||n.scrollLeft,d=r.clientTop||n.clientTop||0,h=r.clientLeft||n.clientLeft||0;let u,p;const m=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&m){const{top:e,left:i}=I(m,t,t.od,!0);u=s.top+e,p=s.left+i}else u=s.top+l-d,p=s.left+c-h;return{top:Math.round(u),left:Math.round(p),width:s.width,height:s.height}};var x=i(46);function z(e,t,i=!1){const o=e.getBoundingClientRect();let s=o.left,n=o.top;if((0,x.Z)(t)&&t.iframe&&!i){const{left:e,top:i}=z(t.iframe,t,!0);s+=e,n+=i}return{left:Math.round(s),top:Math.round(n),width:Math.round(e.offsetWidth),height:Math.round(e.offsetHeight)}}var T=i(44),j=i(64)},function(e,t,i){"use strict";i.d(t,{$$:()=>V.$$,tp:()=>D,II:()=>M,lI:()=>m,uR:()=>y,JL:()=>w,Nf:()=>k,hu:()=>o.h,Lj:()=>r.Lj,Xh:()=>E,XP:()=>I,RE:()=>r.RE,C6:()=>r.C6,bI:()=>q.b,H5:()=>s,WO:()=>f,UU:()=>R,iv:()=>q.i,iN:()=>V.iN,kT:()=>N,qI:()=>B.q,X9:()=>H,vU:()=>W.v,V8:()=>j,U2:()=>a.U,gj:()=>p.g,BR:()=>V.BR,wx:()=>O,jF:()=>F.j,J8:()=>z,kc:()=>p.k,am:()=>r.XP,po:()=>r.po,wY:()=>C,GX:()=>S,XT:()=>T,Q8:()=>n,MN:()=>r.MN,u3:()=>r.u3,mB:()=>_,xL:()=>V.xL,mc:()=>$.m,W2:()=>V.W2,n5:()=>F.n,t8:()=>u,P0:()=>U});var o=i(4);const s=console;function n(e,t=[""],i=null){return(...o)=>(s.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...o))}var r=i(30),a=i(7),l=i(8),c=i(34),d=i(9),h=i(20);function u(e,t,i){if(!(0,l.H)(e)||!e.length)return;const o=e.split(".");let s=i,n=o[0];for(let e=0;o.length-1>e;e+=1)n=o[e],(0,d.k)(s[n])||(0,h.P)(s[n])||(s[n]=(0,c.k)(o[e+1])?[]:{}),s=s[n];s&&(s[o[o.length-1]]=t)}var p=i(39);class m{constructor(e){this.limit=e,this.stack=[]}push(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(e){return this.stack.find(e)}}const f=e=>("file:"===window.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e);var g=i(11);const v=new Map,b=e=>async(t,i)=>{if(v.has(i))return v.get(i);const o=e(t,i);return v.set(i,o),o},y=(e,t,i)=>{const o=e.c.element("script");return o.type="text/javascript",o.async=!0,(0,g.m)(i)&&!e.isInDestruct&&e.e.on(o,"load",i),o.src||(o.src=f(t)),e.od.body.appendChild(o),{callback:i,element:o}},w=b(((e,t)=>new Promise(((i,o)=>{const{element:s}=y(e,t,i);!e.isInDestruct&&e.e.on(s,"error",o)})))),k=b(((e,t)=>new Promise(((i,o)=>{const s=e.c.element("link");s.rel="stylesheet",s.media="all",s.crossOrigin="anonymous",!e.isInDestruct&&e.e.on(s,"load",(()=>i(s))).on(s,"error",o),s.href=f(t),e.o.shadowRoot?e.o.shadowRoot.appendChild(s):e.od.body.appendChild(s)})))),C=(e,t,i=0)=>(0,l.H)(t[i])?w(e,t[i]).then((()=>C(e,t,i+1))):Promise.resolve(),S=(e,t,i=0)=>(0,l.H)(t[i])?k(e,t[i]).then((()=>S(e,t,i+1))):Promise.resolve(),E=e=>{const t=navigator.userAgent.toLowerCase(),i=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||0>t.indexOf("compatible")||[];return"version"===e?i[2]:"webkit"===e?"chrome"===i[1]||"webkit"===i[1]:"ff"===e?"firefox"===i[1]:"msie"===e?"trident"===i[1]||"msie"===i[1]:i[1]===e},I=(e,t)=>{const i=[],o=encodeURIComponent;for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const n=t?t+"["+s+"]":s,r=e[s];i.push((0,h.P)(r)?I(r,n):o(n)+"="+o(r))}return i.join("&")};var x=i(23);function z(e){return e&&e.isAtom}function T(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function j(e){return JSON.parse((0,x.P)(e))}var L=i(10),A=i(1);function M(e,t,i=0){if(Object.getPrototypeOf(e)!==Object.prototype)return e;const o=A.D.defaultOptions;if((0,l.H)(e.preset)){if(void 0!==o.presets[e.preset]){const t=o.presets[e.preset];Object.keys(t).forEach((i=>{(0,L.n)(e[i])&&(e[i]=t[i])}))}delete e.preset}const s={};return Object.keys(e).forEach((o=>{const n=e[o],r=t?t[o]:null;s[o]=(0,h.P)(n)&&(0,h.P)(r)&&!z(n)?M(n,r,i+1):0!==i&&(0,d.k)(n)&&!z(n)&&(0,d.k)(r)?[...n,...r.slice(n.length)]:n})),Object.setPrototypeOf(s,t),s}function D(e){return(0,r.XP)(e,!1).reduce(((t,i)=>(t[i]=e[i],t)),{})}var P=i(40);const _=e=>{const t={},i=e.substr(1).split("&");for(let e=0;i.length>e;e+=1){const o=i[e].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return t},R=(e,t=400,i=345)=>{if(!(0,P.P)(e))return e;const o=document.createElement("a"),s=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;o.href=e,t||(t=400),i||(i=345);const n=o.protocol||"";switch(o.hostname){case"www.vimeo.com":case"vimeo.com":return s.test(e)?e.replace(s,'<iframe width="'+t+'" height="'+i+'" src="'+n+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):e;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{const s=o.search?_(o.search):{v:o.pathname.substr(1)};return s.v?'<iframe width="'+t+'" height="'+i+'" src="'+n+"//www.youtube.com/embed/"+s.v+'" frameborder="0" allowfullscreen></iframe>':e}}return e};var q=i(32);const N=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};var B=i(31);const H=(e,t="en")=>"auto"!==e&&(0,l.H)(e)?e:document.documentElement&&document.documentElement.lang?document.documentElement.lang:navigator.language?navigator.language.substr(0,2):t,O=e=>{if(/^[0-9.]+$/.test(""+e))return parseFloat(e);const t=e.substr(-2,2).toUpperCase(),i=["KB","MB","GB","TB"],o=parseFloat(e.substr(0,e.length-2));return-1!==i.indexOf(t)?o*Math.pow(1024,i.indexOf(t)+1):parseInt(e,10)};var F=i(41),V=i(57),W=i(14);const U=(e,t,i)=>{const o=e.querySelector(t);return o?(i&&(o.value=i),o.value):""};var $=i(6)},(e,t,i)=>{"use strict";i.d(t,{C6:()=>m,Lj:()=>u,MN:()=>p,RE:()=>h,XP:()=>g,po:()=>f,u3:()=>v});var o=i(11),s=i(27),n=i(10),r=i(20),a=i(8),l=i(31),c=i(32),d=i(36);function h(e,...t){return e(...t)}function u(e,t,i){if(!e||!(0,o.m)(e.getAttribute))return null;if(!(0,a.H)(t))return Object.keys(t).forEach((i=>{const o=t[i];(0,r.P)(o)&&"style"===i?(0,c.i)(e,o):("className"===i&&(i="class"),u(e,i,o))})),null;let s=(0,d.g)(t);if(/^-/.test(s)){const t=u(e,"data"+s);if(t)return t;s=s.substr(1)}if(void 0!==i){if(null!=i)return e.setAttribute(s,""+i),""+i;e.hasAttribute(s)&&e.removeAttribute(s)}return e.getAttribute(s)}function p(e,t){u(t,"data-editor_id",e.id),!t.component&&Object.defineProperty(t,"jodit",{value:e})}function m(e,t){return(0,s.t)(e)?e.finally(t):t()}const f=(e,t)=>t.async.promise(((i,o)=>{const s=new Image,n=()=>{t.e.off(s),null==o||o()},r=()=>{t.e.off(s),i(s)};t.e.one(s,"load",r).one(s,"error",n).one(s,"abort",n),s.src=e,s.complete&&r()})),g=(e,t=!0)=>{if(t)return Object.keys(e);const i=[];for(const t in e)i.push(t);return i},v=(e,t,{control:i},o)=>{var s;const r="button"+i.command;let a=null!==(s=i.args&&i.args[0])&&void 0!==s?s:(0,l.q)(e,r);if((0,n.n)(a))return!1;(0,l.q)(e,r,a),o&&(a=o(a)),e.execCommand(i.command,!1,null!=a?a:void 0)}},(e,t,i)=>{"use strict";i.d(t,{q:()=>n});var o=i(19);const s=new WeakMap,n=(e,t,i)=>{let n=s.get(e);if(!n){n={},s.set(e,n);let t=null;(0,o.f)(e.j)&&(t=e.j.e),(0,o.f)(e)&&(t=e.e),t&&t.on("beforeDestruct",(()=>{s.delete(e)}))}return void 0===i?n[t]:(n[t]=i,i)}},(e,t,i)=>{"use strict";i.d(t,{b:()=>h,i:()=>d});var o=i(20),s=i(34),n=i(10),r=i(33),a=i(35),l=i(38),c=i(36);function d(e,t,i,h=!1){const u=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;if((0,r.j)(i)&&(h=i,i=void 0),(0,o.P)(t)||void 0!==i){const r=(e,t,i)=>{!(0,n.n)(i)&&u.test(t)&&(0,s.k)(""+i)&&(i=parseInt(""+i,10)+"px"),void 0===i||null!=i&&d(e,t,!0)===(0,a.Z)(t,i)||(e.style[t]=i)};if((0,o.P)(t)){const i=Object.keys(t);for(let o=0;i.length>o;o+=1)r(e,(0,l.e)(i[o]),t[i[o]])}else r(e,(0,l.e)(t),i);return""}const p=(0,c.G)(t),m=e.ownerDocument||document,f=!!m&&(m.defaultView||m.parentWindow),g=e.style[t];let v="";return void 0!==g&&""!==g?v=g:f&&!h&&(v=f.getComputedStyle(e).getPropertyValue(p)),u.test(t)&&/^[-+]?[0-9.]+px$/.test(""+v)&&(v=parseInt(""+v,10)),(0,a.Z)(t,v)}const h=e=>{"block"===d(e,"display")&&d(e,"display","");const{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}},(e,t,i)=>{"use strict";function o(e){return"boolean"==typeof e}i.d(t,{j:()=>o})},(e,t,i)=>{"use strict";i.d(t,{k:()=>s});var o=i(8);function s(e){if((0,o.H)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var o=i(34),s=i(36),n=i(37);function r(e,t){if("font-weight"===(0,s.G)(e)){switch((""+t).toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,o.k)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(""+t)&&(0,n.h)(""+t)||t}},(e,t,i)=>{"use strict";i.d(t,{G:()=>o,g:()=>s});const o=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(),s=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},(e,t,i)=>{"use strict";i.d(t,{h:()=>o});const o=e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;const 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";const i=parseInt(t[2],10),o=parseInt(t[3],10);let s=(parseInt(t[4],10)|o<<8|i<<16).toString(16).toUpperCase();for(;6>s.length;)s="0"+s;return t[1]+"#"+s}},(e,t,i)=>{"use strict";i.d(t,{e:()=>o});const o=e=>e.replace(/([-_])(.)/g,((e,t,i)=>i.toUpperCase()))},(e,t,i)=>{"use strict";i.d(t,{g:()=>n,k:()=>s});var o=i(11);const s=new Map,n=e=>{var t;if((0,o.m)(e.className))return e.className();const i=(null===(t=e.constructor)||void 0===t?void 0:t.originalConstructor)||e.constructor;if(s.has(i))return s.get(i);if(i.name)return i.name;const n=(""+i).match(/^\s*function\s*(\S*)\s*\(/);return n?n[1]:""}},(e,t,i)=>{"use strict";function o(e){if(e.includes(" "))return!1;if("undefined"!=typeof URL)try{const t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}const t=document.createElement("a");return t.href=e,!!t.hostname}i.d(t,{P:()=>o})},(e,t,i)=>{"use strict";i.d(t,{j:()=>s,n:()=>n});var o=i(42);const s=(e,t,i)=>{let o=e.getBoundingClientRect(),s=e;const n=o.top,r=o.height;do{if(s&&s.parentNode){if(s=s.parentNode,o=s.getBoundingClientRect(),n>o.bottom)return!1;if(o.top>=n+r)return!1}}while(s&&s!==t&&s.parentNode);return(i.documentElement&&i.documentElement.clientHeight||0)>=n};function n(e,t,i){o.i.isHTMLElement(e)&&!s(e,t,i)&&(t.clientHeight!==t.scrollHeight&&(t.scrollTop=e.offsetTop),s(e,t,i)||e.scrollIntoView())}},function(e,t,i){"use strict";i.d(t,{i:()=>r});var o=i(2),s=i(28),n=i(43);class r{static detach(e){for(;e.firstChild;)e.removeChild(e.firstChild)}static wrapInline(e,t,i){let o,n=e,a=e;i.s.save();let l=!1;do{l=!1,o=n.previousSibling,o&&!r.isBlock(o)&&(l=!0,n=o)}while(l);do{l=!1,o=a.nextSibling,o&&!r.isBlock(o)&&(l=!0,a=o)}while(l);const c=(0,s.isString)(t)?i.createInside.element(t):t;n.parentNode&&n.parentNode.insertBefore(c,n);let d=n;for(;d&&(d=n.nextSibling,c.appendChild(n),n!==a&&d);)n=d;return i.s.restore(),c}static wrap(e,t,i){const o=(0,s.isString)(t)?i.element(t):t;if(r.isNode(e)){if(!e.parentNode)throw(0,s.error)("Element should be in DOM");e.parentNode.insertBefore(o,e),o.appendChild(e)}else{const t=e.extractContents();e.insertNode(o),o.appendChild(t)}return o}static unwrap(e){const t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);r.safeRemove(e)}}static between(e,t,i){let o=e;for(;o&&o!==t&&(e===o||!i(o));){let e=o.firstChild||o.nextSibling;if(!e){for(;o&&!o.nextSibling;)o=o.parentNode;e=null==o?void 0:o.nextSibling}o=e}}static replace(e,t,i,o=!1,n=!1){(0,s.isHTML)(t)&&(t=i.fromHTML(t));const r=(0,s.isString)(t)?i.element(t):t;if(!n)for(;e.firstChild;)r.appendChild(e.firstChild);return o&&(0,s.toArray)(e.attributes).forEach((e=>{r.setAttribute(e.name,e.value)})),e.parentNode&&e.parentNode.replaceChild(r,e),r}static isEmptyTextNode(e){return r.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return r.each(e,(e=>r.isEmptyTextNode(e)))}static isContentEditable(e,t){return r.isNode(e)&&!r.closest(e,(e=>r.isElement(e)&&"false"===e.getAttribute("contenteditable")),t)}static isEmpty(e,t=/^(img|svg|canvas|input|textarea|form)$/){return!e||(r.isText(e)?null==e.nodeValue||0===(0,s.trim)(e.nodeValue).length:!t.test(e.nodeName.toLowerCase())&&r.each(e,(e=>{if(r.isText(e)&&null!=e.nodeValue&&0!==(0,s.trim)(e.nodeValue).length||r.isElement(e)&&t.test(e.nodeName.toLowerCase()))return!1})))}static isNode(e){return!!(e&&(0,s.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,s.isFunction)(e.appendChild))}static isCell(e){return r.isNode(e)&&/^(td|th)$/i.test(e.nodeName)}static isImage(e){return r.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,s.isVoid)(e)&&"object"==typeof e&&r.isNode(e)&&o.IS_BLOCK.test(e.nodeName)}static isText(e){return!(!e||e.nodeType!==Node.TEXT_NODE)}static isElement(e){var t;return!!r.isNode(e)&&!(!(null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView)||e.nodeType!==Node.ELEMENT_NODE)}static isFragment(e){var t;return!!r.isNode(e)&&!(!(null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView)||e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(e){var t;if(!r.isNode(e))return!1;const i=null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(i&&e instanceof i.HTMLElement)}static isInlineBlock(e){return r.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf(""+(0,s.css)(e,"display"))}static canSplitBlock(e){return!(0,s.isVoid)(e)&&r.isHTMLElement(e)&&r.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static last(e,t){let i=null==e?void 0:e.lastChild;if(!i)return null;do{if(t(i))return i;let o=i.lastChild;if(o||(o=i.previousSibling),!o&&i.parentNode!==e){do{i=i.parentNode}while(i&&!(null==i?void 0:i.previousSibling)&&i.parentNode!==e);o=null==i?void 0:i.previousSibling}i=o}while(i);return null}static prev(e,t,i,o=!0){return r.find(e,t,i,!1,o)}static next(e,t,i,o=!0){return r.find(e,t,i,!0,o)}static prevWithClass(e,t){return r.prev(e,(e=>r.isElement(e)&&e.classList.contains(t)),e.parentNode)}static nextWithClass(e,t){return r.next(e,(e=>r.isElement(e)&&e.classList.contains(t)),e.parentNode)}static find(e,t,i,o=!0,s=!0){const n=this.nextGen(e,i,o,s);let r=n.next();for(;!r.done;){if(t(r.value))return r.value;r=n.next()}return null}static*nextGen(e,t,i=!0,o=!0){const s=[];let n=e;do{let t=i?n.nextSibling:n.previousSibling;for(;t;)s.unshift(t),t=i?t.nextSibling:t.previousSibling;yield*this.runInStack(e,s,i,o),n=n.parentNode}while(n&&n!==t);return null}static each(e,t,i=!0){const o=this.eachGen(e,i);let s=o.next();for(;!s.done;){if(!1===t(s.value))return!1;s=o.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,o=!0){for(;t.length;){const s=t.pop();if(o){let e=i?s.lastChild:s.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==s&&(yield s)}}static findWithCurrent(e,t,i,o="nextSibling",s="firstChild"){let n=e;do{if(t(n))return n||null;if(s&&n&&n[s]){const e=r.findWithCurrent(n[s],t,n,o,s);if(e)return e}for(;n&&!n[o]&&n!==i;)n=n.parentNode;n&&n[o]&&n!==i&&(n=n[o])}while(n&&n!==i);return null}static findSibling(e,t=!0,i=(e=>!r.isEmptyTextNode(e))){let o=r.sibling(e,t);for(;o&&!i(o);)o=r.sibling(o,t);return o&&i(o)?o:null}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,o=!1){let s=e;if(!s)return null;do{if(t(s))return s;if(s===i||!s.parentNode)break;s=s.parentNode}while(s&&s!==i);return s===i&&o&&t(s)?s:null}static closest(e,t,i){let o;return o=(0,s.isFunction)(t)?t:(0,s.isArray)(t)?e=>!(!e||!t.includes(e.nodeName.toLowerCase())):e=>!(!e||t!==e.nodeName.toLowerCase()),r.up(e,o,i)}static furthest(e,t,i){let o=null,s=null==e?void 0:e.parentElement;for(;s&&s!==i&&t(s);)o=s,s=null==s?void 0:s.parentElement;return o}static appendChildFirst(e,t){const i=e.firstChild;i?i!==t&&e.insertBefore(t,i):e.appendChild(t)}static after(e,t){const{parentNode:i}=e;i&&(i.lastChild===e?i.appendChild(t):i.insertBefore(t,e.nextSibling))}static before(e,t){const{parentNode:i}=e;i&&i.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,s.isArray)(t)?t.forEach((t=>{this.append(e,t)})):e.appendChild(t)}static moveContent(e,t,i=!1){const o=(e.ownerDocument||document).createDocumentFragment();(0,s.toArray)(e.childNodes).forEach((e=>{o.appendChild(e)})),i&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o)}static isOrContains(e,t,i=!1){return e===t?!i:!!(t&&e&&this.up(t,(t=>t===e),e,!0))}static safeRemove(...e){e.forEach((e=>r.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e)))}static hide(e){e&&((0,s.dataBind)(e,"__old_display",e.style.display),e.style.display="none")}static show(e){if(!e)return;const t=(0,s.dataBind)(e,"__old_display");"none"===e.style.display&&(e.style.display=t||"")}static isTag(e,t){const i=(0,s.asArray)(t).map(String);for(let t=0;i.length>t;t+=1)if(this.isElement(e)&&e.tagName.toLowerCase()===i[t].toLowerCase())return!0;return!1}static markTemporary(e,t){return t&&(0,s.attr)(e,t),(0,s.attr)(e,o.TEMP_ATTR,!0),e}static isTemporary(e){return!!r.isElement(e)&&(n.Ph.isMarker(e)||"true"===(0,s.attr)(e,o.TEMP_ATTR))}static replaceTemporaryFromString(e){return e.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(e){return(0,s.$$)(`[${o.TEMP_ATTR}]`,e)}}},function(e,t,i){"use strict";i.d(t,{RP:()=>_,Ph:()=>b});var o=i(2),s=i(28),n=i(29),r=i(32),a=i(31),l=i(36),c=i(35),d=i(44),h=i(47),u=i(53);function p(e,t,i,o,s=!1){const{style:n,className:p}=e.options;return n&&(0,d.d)(n)>0&&Object.keys(n).forEach((d=>{if(""!==t.style.getPropertyValue((0,l.G)(d))||null!=n[d]){if(((e,t,i)=>{const o=e.create.element(t.tagName.toLowerCase());o.style.cssText=t.style.cssText,(e=>{var t;if(void 0!==(0,a.q)(e,"shadowRoot"))return(0,a.q)(e,"shadowRoot");const i=(0,u.ZO)(e),o=document.createElement("iframe");(0,r.i)(o,{width:0,height:0,position:"absolute",border:0}),o.src="about:blank",i.appendChild(o);const s=null===(t=o.contentWindow)||void 0===t?void 0:t.document,n=s?s.body:e.od.body;return(0,a.q)(e,"shadowRoot",n),n})(e).appendChild(o);const s=(0,r.i)(o,i);return h.i.safeRemove(o),s})(i,t,d)===(0,c.Z)(d,n[d]))return!s&&(0,r.i)(t,d,null),void(o=m(e,t,o=M));o=A,!s&&(0,r.i)(t,d,n[d]),s||(o=m(e,t,o))}})),p&&(t.classList.contains(p)?(t.classList.remove(p),o=M):(t.classList.add(p),o=A)),o}function m(e,t,i){return(0,n.Lj)(t,"style")||((0,n.Lj)(t,"style",null),t.tagName.toLowerCase()===e.defaultTag&&(h.i.unwrap(t),i=L)),i}var f=i(55),g=i(49),v=i(56);class b{constructor(e){this.jodit=e,e.e.on("removeMarkers",(()=>{this.removeMarkers()}))}get j(){return this.jodit}errorNode(e){if(!h.i.isNode(e))throw(0,s.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,s.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){const e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()}get isInsideArea(){const{sel:e}=this,t=(null==e?void 0:e.rangeCount)?e.getRangeAt(0):null;return!(!t||!h.i.isOrContains(this.area,t.startContainer))}createRange(e=!1){const t=this.doc.createRange();return e&&this.selectRange(t),t}remove(){const e=this.sel,t=this.current();if(e&&t)for(let t=0;e.rangeCount>t;t+=1)e.getRangeAt(t).deleteContents(),e.getRangeAt(t).collapse(!0)}clear(){var e,t;(null===(e=this.sel)||void 0===e?void 0:e.rangeCount)&&(null===(t=this.sel)||void 0===t||t.removeAllRanges())}removeNode(e){if(!h.i.isOrContains(this.j.editor,e,!0))throw(0,s.error)("Selection.removeNode can remove only editor's children");h.i.safeRemove(e),this.j.e.fire("afterRemoveNode",e)}insertCursorAtPoint(e,t){this.removeMarkers();try{const i=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){const o=this.doc.caretPositionFromPoint(e,t);if(o)return void i.setStart(o.offsetNode,o.offset)}if(this.doc.caretRangeFromPoint){const o=this.doc.caretRangeFromPoint(e,t);i.setStart(o.startContainer,o.startOffset)}})(),i.collapse(!0),this.selectRange(i),!0}catch(e){}return!1}static isMarker(e){return h.i.isNode(e)&&h.i.isTag(e,"span")&&e.hasAttribute("data-"+o.MARKER_CLASS)}get hasMarkers(){return!!this.markers.length}get markers(){return(0,s.$$)("span[data-"+o.MARKER_CLASS+"]",this.area)}removeMarkers(){h.i.safeRemove.apply(null,this.markers)}marker(e=!1,t){let i=null;t&&(i=t.cloneRange(),i.collapse(e));const s=this.j.createInside.span();return s.id=o.MARKER_CLASS+"_"+Number(new Date)+"_"+(Math.random()+"").slice(2),s.style.lineHeight="0",s.style.display="none",s.setAttribute("data-"+o.MARKER_CLASS,e?"start":"end"),s.appendChild(this.j.createInside.text(o.INVISIBLE_SPACE)),i&&h.i.isOrContains(this.area,e?i.startContainer:i.endContainer)&&i.insertNode(s),s}restore(){let e=!1;const t=e=>`span[data-${o.MARKER_CLASS}=${e?"start":"end"}]`,i=this.area.querySelector(t(!0)),s=this.area.querySelector(t(!1));if(i){if(e=this.createRange(),s)e.setStartAfter(i),h.i.safeRemove(i),e.setEndBefore(s),h.i.safeRemove(s);else{const t=i.previousSibling;h.i.isText(t)?e.setStart(t,t.nodeValue?t.nodeValue.length:0):e.setStartBefore(i),h.i.safeRemove(i),e.collapse(!0)}e&&this.selectRange(e)}}save(e=!1){if(this.hasMarkers)return[];const t=this.sel;if(!t||!t.rangeCount)return[];const i=[],o=t.rangeCount,s=[];for(let e=0;o>e;e+=1)if(s[e]=t.getRangeAt(e),s[e].collapsed){const t=this.marker(!0,s[e]);i[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{const t=this.marker(!0,s[e]),o=this.marker(!1,s[e]);i[e]={startId:t.id,endId:o.id,collapsed:!1,startMarker:t.outerHTML,endMarker:o.outerHTML}}if(!e){t.removeAllRanges();for(let e=o-1;e>=0;--e){const o=this.doc.getElementById(i[e].startId);if(o)if(i[e].collapsed)s[e].setStartAfter(o),s[e].collapse(!0);else if(s[e].setStartBefore(o),i[e].endId){const t=this.doc.getElementById(i[e].endId);t&&s[e].setEndAfter(t)}try{t.addRange(s[e].cloneRange())}catch(e){}}}return i}focus(e={preventScroll:!0}){var t,i;if(!this.isFocused()){const o=(0,s.getScrollParent)(this.j.container),n=null==o?void 0:o.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(e),this.win.focus(),this.area.focus(e),n&&(null==o?void 0:o.scrollTo)&&o.scrollTo(0,n);const r=this.sel,a=(null==r?void 0:r.rangeCount)?null==r?void 0:r.getRangeAt(0):null;if(!a||!h.i.isOrContains(this.area,a.startContainer)){const e=this.createRange();e.setStart(this.area,0),e.collapse(!0),this.selectRange(e,!1)}return this.j.editorIsActive||null===(i=null===(t=this.j)||void 0===t?void 0:t.events)||void 0===i||i.fire("focus"),!0}return!1}isCollapsed(){const e=this.sel;for(let t=0;e&&e.rangeCount>t;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(e=!0){if(this.j.getRealMode()===o.MODE_WYSIWYG){const t=this.sel;if(!t||0===t.rangeCount)return null;const i=t.getRangeAt(0);let o=i.startContainer,s=!1;const n=e=>s?e.lastChild:e.firstChild;if(h.i.isTag(o,"br")&&t.isCollapsed)return o;if(!h.i.isText(o)){if(o=i.startContainer.childNodes[i.startOffset],o||(o=i.startContainer.childNodes[i.startOffset-1],s=!0),o&&t.isCollapsed&&!h.i.isText(o))if(!s&&h.i.isText(o.previousSibling))o=o.previousSibling;else if(e){let e=n(o);for(;e;){if(e&&h.i.isText(e)){o=e;break}e=n(e)}}if(o&&!t.isCollapsed&&!h.i.isText(o)){let e=o,t=o;do{e=e.firstChild,t=t.lastChild}while(e&&t&&!h.i.isText(e));e===t&&e&&h.i.isText(e)&&(o=e)}}if(o&&h.i.isOrContains(this.area,o))return o}return null}insertNode(e,t=!0,i=!0){var s;this.errorNode(e),this.j.e.fire("safeHTML",e),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());const n=this.sel;if(this.isCollapsed()||this.j.execCommand("Delete"),n&&n.rangeCount){const t=n.getRangeAt(0);h.i.isOrContains(this.area,t.commonAncestorContainer)?h.i.isTag(t.startContainer,o.INSEPARABLE_TAGS)&&t.collapsed?null===(s=t.startContainer.parentNode)||void 0===s||s.insertBefore(e,t.startContainer):(t.deleteContents(),t.insertNode(e)):this.area.appendChild(e)}else this.area.appendChild(e);t&&(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.lastChild&&this.setCursorAfter(e.lastChild):this.setCursorAfter(e)),i&&this.j.events&&this.j.e.fire("synchro"),this.j.events&&this.j.e.fire("afterInsertNode",e)}insertHTML(e,t=!0){if(""===e)return;const i=this.j.createInside.div(),o=this.j.createInside.fragment();let s;if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),h.i.isNode(e)?i.appendChild(e):i.innerHTML=""+e,(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",i.innerHTML))&&(s=i.lastChild,s)){for(;i.firstChild;)s=i.firstChild,o.appendChild(i.firstChild);this.insertNode(o,!1,!1),t&&(s?this.setCursorAfter(s):this.setCursorIn(o)),this.j.synchronizeValues()}}insertImage(e,t=null,i=null){const o=(0,s.isString)(e)?this.j.createInside.element("img"):e;if((0,s.isString)(e)&&o.setAttribute("src",e),null!=i){let e=""+i;e&&"auto"!==e&&0>(e+"").indexOf("px")&&0>(e+"").indexOf("%")&&(e+="px"),(0,s.call)(this.j.o.resizer.forImageChangeAttributes?s.attr:s.css,o,"width",e)}t&&"object"==typeof t&&(0,s.css)(o,t);const n=()=>{(o.offsetHeight>o.naturalHeight||o.offsetWidth>o.naturalWidth)&&(o.style.width="",o.style.height=""),o.removeEventListener("load",n)};this.j.e.on(o,"load",n),o.complete&&n(),this.insertNode(o),this.j.e.fire("afterInsertImage",o)}eachSelection(e){var t;const i=this.sel;if(i&&i.rangeCount){const n=i.getRangeAt(0);let r=n.commonAncestorContainer;h.i.isHTMLElement(r)||(r=r.parentElement);const a=[],l=n.startOffset,c=r.childNodes.length,d=c>l?l:c-1;let u=n.startContainer===this.area?r.childNodes[d]:n.startContainer,p=n.endContainer===this.area?r.childNodes[n.endOffset-1]:n.endContainer;h.i.isText(u)&&u===n.startContainer&&n.startOffset===(null===(t=u.nodeValue)||void 0===t?void 0:t.length)&&u.nextSibling&&(u=u.nextSibling),h.i.isText(p)&&p===n.endContainer&&0===n.endOffset&&p.previousSibling&&(p=p.previousSibling);const m=e=>{!e||e===r||h.i.isEmptyTextNode(e)||b.isMarker(e)||a.push(e)};m(u),u!==p&&h.i.isOrContains(r,u,!0)&&h.i.find(u,(e=>(m(e),e===p||e&&e.contains&&e.contains(p))),r,!0,!1);const f=t=>{if(h.i.isOrContains(this.j.editor,t,!0)){if(t.nodeName.match(/^(UL|OL)$/))return(0,s.toArray)(t.childNodes).forEach(f);if(h.i.isTag(t,"li"))if(t.firstChild)t=t.firstChild;else{const e=this.j.createInside.text(o.INVISIBLE_SPACE);t.appendChild(e),t=e}e(t)}};0===a.length&&h.i.isEmptyTextNode(u)&&a.push(u),0===a.length&&u.firstChild&&a.push(u.firstChild),a.forEach(f)}}cursorInTheEdge(e,t){var i,n;const r=!e,a=null===(i=this.sel)||void 0===i?void 0:i.getRangeAt(0),l=this.current(!1);if(!a||!l||!h.i.isOrContains(t,l,!0))return null;const c=e?a.startContainer:a.endContainer,d=e?a.startOffset:a.endOffset,u=e=>!(!e||h.i.isTag(e,"br")||h.i.isEmptyTextNode(e));if(h.i.isText(c)){const t=(null===(n=c.nodeValue)||void 0===n?void 0:n.length)?c.nodeValue:"";if(r&&t.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").length>d)return!1;const i=(0,o.INVISIBLE_SPACE_REG_EXP_START)().exec(t);if(e&&(i&&d>i[0].length||!i&&d>0))return!1}else{const e=(0,s.toArray)(c.childNodes);if(r){if(e.slice(d).some(u))return!1}else if(e.slice(0,d).some(u))return!1}return!(0,s.call)(e?h.i.prev:h.i.next,l,u,t)}cursorOnTheLeft(e){return this.cursorInTheEdge(!0,e)}cursorOnTheRight(e){return this.cursorInTheEdge(!1,e)}setCursorAfter(e){return this.setCursorNearWith(e,!1)}setCursorBefore(e){return this.setCursorNearWith(e,!0)}setCursorNearWith(e,t){var i,n;if(this.errorNode(e),!h.i.up(e,(e=>e===this.area||e&&e.parentNode===this.area),this.area))throw(0,s.error)("Node element must be in editor");const r=this.createRange();let a=null;return h.i.isText(e)?t?r.setStart(e,0):r.setEnd(e,null!==(n=null===(i=e.nodeValue)||void 0===i?void 0:i.length)&&void 0!==n?n:0):(a=this.j.createInside.text(o.INVISIBLE_SPACE),t?r.setStartBefore(e):r.setEndAfter(e),r.collapse(t),r.insertNode(a),r.selectNode(a)),r.collapse(t),this.selectRange(r),a}setCursorIn(e,t=!1){if(this.errorNode(e),!h.i.up(e,(e=>e===this.area||e&&e.parentNode===this.area),this.area))throw(0,s.error)("Node element must be in editor");const i=this.createRange();let n=e,r=e;do{if(h.i.isText(n))break;r=n,n=t?n.firstChild:n.lastChild}while(n);if(!n){const e=this.j.createInside.text(o.INVISIBLE_SPACE);/^(img|br|input)$/i.test(r.nodeName)?n=r:(r.appendChild(e),r=e)}return i.selectNodeContents(n||r),i.collapse(t),this.selectRange(i),r}selectRange(e,t=!0){const i=this.sel;return t&&!this.isFocused()&&this.focus(),i&&(i.removeAllRanges(),i.addRange(e)),this.j.e.fire("changeSelection"),this}select(e,t=!1){if(this.errorNode(e),!h.i.up(e,(e=>e===this.area||e&&e.parentNode===this.area),this.area))throw(0,s.error)("Node element must be in editor");const i=this.createRange();return i[t?"selectNodeContents":"selectNode"](e),this.selectRange(i)}get html(){const e=this.sel;if(e&&e.rangeCount>0){const t=e.getRangeAt(0).cloneContents(),i=this.j.createInside.div();return i.appendChild(t),i.innerHTML}return""}*wrapInTagGen(){if(this.isCollapsed()){const e=this.jodit.createInside.element("font",o.INVISIBLE_SPACE);this.insertNode(e,!1,!1);const[t]=this.markers;return t?e.appendChild(t):(this.setCursorIn(e),this.save()),yield e,void h.i.unwrap(e)}if((0,s.$$)("*[style*=font-size]",this.area).forEach((e=>(0,s.attr)(e,"data-font-size",""+e.style.fontSize))),this.isCollapsed()){const e=this.j.createInside.element("font");(0,s.attr)(e,"size",7),this.insertNode(e,!1,!1)}else this.j.nativeExecCommand("fontsize",!1,"7");(0,s.$$)("*[data-font-size]",this.area).forEach((e=>{const t=(0,s.attr)(e,"data-font-size");t&&(e.style.fontSize=t,(0,s.attr)(e,"data-font-size",null))}));const e=(0,s.$$)('font[size="7"]',this.area);for(const t of e){const{firstChild:e,lastChild:i}=t;e&&e===i&&b.isMarker(e)||(e&&b.isMarker(e)&&h.i.before(t,e),i&&b.isMarker(i)&&h.i.after(t,i),yield t),h.i.unwrap(t)}}wrapInTag(e){const t=[];for(const i of this.wrapInTagGen())try{if(i.firstChild&&i.firstChild===i.lastChild&&b.isMarker(i.firstChild))continue;(0,s.isFunction)(e)?e(i):t.push(h.i.replace(i,e,this.j.createInside))}finally{const e=i.parentNode;e&&(h.i.unwrap(i),h.i.isEmpty(e)&&h.i.unwrap(e))}return t}applyStyle(e,t={}){new _({style:e,element:t.element,className:t.className,defaultTag:t.defaultTag}).apply(this.j)}splitSelection(e){if(!this.isCollapsed())return null;const t=this.createRange(),i=this.range;t.setStartBefore(e);const s=this.cursorOnTheRight(e),n=this.cursorOnTheLeft(e),r=this.j.createInside.element("br"),a=this.j.createInside.text(o.INVISIBLE_SPACE),l=a.cloneNode();try{if(s||n){i.insertNode(r);const e=(e,t)=>{let i=t(e);for(;i;){const e=t(i);if(!i||!h.i.isTag(i,"br")&&!h.i.isEmptyTextNode(i))break;h.i.safeRemove(i),i=e}};e(r,(e=>e.nextSibling)),e(r,(e=>e.previousSibling)),h.i.after(r,l),h.i.before(r,a),s?(t.setEndBefore(r),i.setEndBefore(r)):(t.setEndAfter(r),i.setEndAfter(r))}else t.setEnd(i.startContainer,i.startOffset);const o=t.extractContents();if(e.parentNode)try{if(e.parentNode.insertBefore(o,e),s&&(null==r?void 0:r.parentNode)){const e=this.createRange();e.setStartBefore(r),this.selectRange(e)}}catch(e){}const c=e=>{var t,i,o;(null===(t=null==e?void 0:e.parentNode)||void 0===t?void 0:t.firstChild)===(null===(i=null==e?void 0:e.parentNode)||void 0===i?void 0:i.lastChild)&&(null===(o=null==e?void 0:e.parentNode)||void 0===o||o.appendChild(r.cloneNode()))};c(a),c(l)}finally{h.i.safeRemove(a),h.i.safeRemove(l)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;const{range:e}=this,t=e.cloneRange();if(!h.i.isOrContains(this.j.editor,e.commonAncestorContainer,!0))return this;const i=t=>{const i=this.j.createInside.fake(),o=e.cloneRange();return o.collapse(t),o.insertNode(i),(0,v.f)(i,t,this.j.editor),i},o=i(!0),s=i(!1);t.setStartAfter(o),t.setEndBefore(s);const n=h.i.findSibling(o,!1),r=h.i.findSibling(s,!0);if(n!==r){const e=h.i.isElement(n)&&h.i.isOrContains(n,s),i=!e&&h.i.isElement(r)&&h.i.isOrContains(r,o);if(e||i){let i=e?n:r,a=i;for(;h.i.isElement(i);)i=e?i.firstElementChild:i.lastElementChild,i&&h.i.isOrContains(i,e?s:o)&&(a=i);e?t.setStart(a,0):t.setEnd(a,a.childNodes.length)}}return this.selectRange(t),h.i.safeRemove(o,s),this}}function y(e,t,i){const o=i.s.createRange(),s=b.isMarker(t.previousSibling)?t.previousSibling:t;o.setStartBefore(e),o.setEndBefore(s),w(e,o,!0);const n=b.isMarker(t.nextSibling)?t.nextSibling:t;o.setStartAfter(n),o.setEndAfter(e),w(e,o,!1)}function w(e,t,i){const o=t.extractContents();o.textContent&&(0,s.trim)(o.textContent).length||!o.firstChild||h.i.unwrap(o.firstChild),e.parentNode&&(0,s.call)(i?h.i.before:h.i.after,e,o)}(0,f.gn)([g.autobind],b.prototype,"createRange",null),(0,f.gn)([g.autobind],b.prototype,"focus",null),(0,f.gn)([g.autobind],b.prototype,"setCursorAfter",null),(0,f.gn)([g.autobind],b.prototype,"setCursorBefore",null),(0,f.gn)([g.autobind],b.prototype,"setCursorIn",null);var k=i(10);function C(e,t){return!(h.i.isTag(e,"font")||!h.i.isHTMLElement(e)||!Object.keys(t).every((t=>!(0,k.n)((0,r.i)(e,t,!0)))))}class S{constructor(e,t){this.state=e,this.transitions=t,this.subState="",this.silent=!0}setState(e,t){this.state=e,null!=t&&(this.subState=t)}getState(){return this.state}getSubState(){return this.subState}disableSilent(){this.silent=!1}dispatch(e,...t){const i=this.transitions[this.state][e];if(i)return i.call(this,...t);if(!this.silent)throw Error("invalid action: "+this.state+"."+e)}}function E(e){return!(!e||h.i.isEmptyTextNode(e)||h.i.isTemporary(e))}function I(e,t,i){if(!t)return!1;const{element:o,elementIsDefault:s,options:n}=e,a=!(!n.style||!((e,t)=>!(h.i.isTag(e,"font")||!h.i.isHTMLElement(e)||!Object.keys(t).every((i=>{const o=(0,r.i)(e,i,!0);return!(0,k.n)(o)&&""!==o&&!(0,k.n)(t[i])&&(""+(0,c.Z)(i,t[i])).toLowerCase()===(""+o).toLowerCase()}))))(t,n.style)),l=t.nodeName.toLowerCase()===o||h.i.isTag(t,["ul","ol"])&&e.elementIsList;return!!((!s||!i)&&l||a&&E(t))||!(l||i||!s||!h.i.isInlineBlock(t))}function x(e,t){const{element:i,options:o}=e;if(!t||!E(t))return!1;const s=t.nodeName.toLowerCase()===i,n=!(!o.style||!C(t,o.style));return s&&n}function z(e,t,i){const{parentNode:o}=t;return o===i||!h.i.isHTMLElement(o)||h.i.next(t,E,o)||h.i.prev(t,E,o)?null:e.isElementCommit&&e.elementIsBlock&&!h.i.isBlock(o)?z(e,o,i):!I(e,o,!1)||h.i.isBlock(o)&&!e.elementIsBlock?null:o}function T(e,t){const{s:i,editor:o}=e,n=new S("start",{start:{start(){i.save(),(0,s.normalizeNode)(o.firstChild),this.setState("generator")}},generator:{initGenerator(){return e.s.wrapInTagGen()},nextFont(e){const t=e.next();if(t.done)this.setState("end");else if(!((e,t)=>!!h.i.closest(e,["style","script"],t))(t.value,o)&&!h.i.isEmptyContent(t.value))return this.setState("check"),t.value}},check:{work(i){let o=z(t,i,e.editor)||((e,t)=>{let{firstChild:i}=t;for(;i&&!E(i);)if(i=i.nextSibling,!i)return null;return i&&!h.i.next(i,E,t)&&I(e,i,!1)?i:null})(t,i);return o?(this.setState("wholeElement"),o):(o=h.i.closest(i,(e=>I(t,e,!0)),e.editor),o&&(t.elementIsBlock||y(o,i,e)),t.elementIsList&&h.i.isTag(o,["ul","ol"])?(this.setState("orderList"),i):o?(this.setState("wholeElement"),o):((e,t)=>{const i=[],o=[];let n;const r=e.options.style;if(t.firstChild){const a=h.i.eachGen(t);let l=a.next();for(;!l.done;){const t=l.value;!I(e,t,!0)||r&&!C(t,r)?r&&x(e,t)?(void 0===n&&(n=!1),o.push((()=>{(0,s.css)(t,Object.keys(r).reduce(((e,t)=>(e[t]=null,e)),{})),(0,s.attr)(t,"style")||(0,s.attr)(t,"style",null),(0,s.attr)(t,"style")||t.nodeName.toLowerCase()!==e.element||i.push(t)}))):h.i.isEmptyTextNode(t)||void 0===n&&(n=!1):(void 0===n&&(n=!0),i.push(t)),l=a.next()}}return o.forEach((e=>e())),i.forEach(h.i.unwrap),!!n})(t,i)?(this.setState("endProcess"),null):(this.setState("wrap"),i))}},wholeElement:{toggleStyles(i){let o=D;var s,n;n=i,o=((s=t).elementIsBlock||h.i.isTag(n,s.element)&&!s.elementIsDefault)&&(h.i.unwrap(n),1)?L:p(t,i,e,o),this.setState("generator",o)}},orderList:{toggleStyles(i){let o=D;const s=h.i.closest(i,"li",e.editor);s&&h.i.closest(i,["ul","ol"],e.editor)?(o=((e,t,i,o)=>{if(!t)return o;const s=t.parentElement;return s?s.tagName.toLowerCase()!==e.element?(p(e,h.i.replace(s,e.element,i.createInside),i,o),P):p(e,t.parentElement,i,D,!0)===A?p(e,t.parentElement,i,o):(y(s,t,i),h.i.unwrap(t.parentElement),h.i.replace(t,i.o.enter,i.createInside),o):o})(t,s,e,o),this.setState(o!==P&&o!==L&&o!==A?"generator":"endWhile")):this.setState("generator")}},wrap:{toggleStyles(i){if("unwrap"!==this.getSubState()){const o=((e,t,i)=>{const o=((e,t,i)=>{if(e.elementIsBlock){const e=h.i.up(t,(e=>h.i.isBlock(e)&&!h.i.isTag(e,["td","th","tr","tbody","table","li","ul","ol"])),i.editor);if(e)return e}return e.elementIsBlock?((e,t,i,o)=>{const s=i.editor,n=i.createInside,r=(e,t="previousSibling")=>{let o=e,n=e;for(;n&&!h.i.isTag(n,i.o.enter)&&(o=n,n=n[t]?n[t]:n.parentNode&&!h.i.isBlock(n.parentNode)&&n.parentNode!==s?n.parentNode:null,!h.i.isBlock(n)););return o},a=r(t),l=r(t,"nextSibling"),c=o();c.setStartBefore(a),c.setEndAfter(l);const d=c.extractContents(),u=n.element(e.element);return u.appendChild(d),c.insertNode(u),e.elementIsBlock&&h.i.isEmpty(u)&&!h.i.isTag(u.firstElementChild,"br")&&u.appendChild(n.element("br")),u})(e,t,i,i.s.createRange):((0,s.attr)(t,"size",null),t)})(e,t,i);return e.elementIsList?((e,t,i)=>{const o=h.i.replace(t,"li",i.createInside);let s=o.previousElementSibling||o.nextElementSibling;return h.i.isTag(s,["ul","ol"])||(s=i.createInside.element(e.element),h.i.before(o,s)),o.previousElementSibling===s?h.i.append(s,o):h.i.prepend(s,o),s})(e,o,i):h.i.replace(o,e.element,i.createInside,!0)})(t,i,e);p(t,o,e,j)}this.setState("generator")}},endWhile:{nextFont(e){e.next().done&&this.setState("end")}},endProcess:{toggleStyles(){this.setState("generator")}},end:{finalize(){i.restore()}}});n.dispatch("start");const r=n.dispatch("initGenerator");for(;"end"!==n.getState();){const e=n.dispatch("nextFont",r);if(e){const t=n.dispatch("work",e);n.dispatch("toggleStyles",t)}}n.dispatch("finalize",r)}const j="wrap",L="unwrap",A="change",M="unset",D="initial",P="replace";class _{constructor(e){this.options=e}get elementIsList(){return!(!this.options.element||!["ul","ol"].includes(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){T(e,this)}}},(e,t,i)=>{"use strict";i.d(t,{d:()=>s});var o=i(45);function s(e){return(0,o.HD)(e)||(0,o.kJ)(e)?e.length:(0,o.PO)(e)?Object.keys(e).length:0}},(e,t,i)=>{"use strict";function o(){let e=!0;try{const t=document.createElement("input");t.type="color",e="color"===t.type&&"number"!=typeof t.selectionStart}catch(t){e=!1}return e}i.d(t,{EO:()=>o,Zt:()=>f,kJ:()=>s.k,jn:()=>n.j,Z$:()=>m,Xy:()=>r.X,LP:()=>r.L,mf:()=>a.m,FP:()=>c,I4:()=>d,Gu:()=>p,GN:()=>v,Zu:()=>b.Z,A1:()=>w,QC:()=>k.Q,hj:()=>C.h,kE:()=>g.k,PO:()=>S.P,tI:()=>E.t,HD:()=>l.H,GI:()=>l.G,PX:()=>I.P,r1:()=>x,f2:()=>y.f,nj:()=>u.n,FJ:()=>z.F});var s=i(9),n=i(33),r=i(22),a=i(11),l=i(8);const c=e=>(0,l.H)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""));function d(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/)}var h=i(42),u=i(10);function p(e){return!(0,u.n)(e)&&(0,a.m)(e.init)}function m(e){return!(0,u.n)(e)&&(0,a.m)(e.destruct)}function f(e){return!(0,u.n)(e)&&h.i.isElement(e.container)}var g=i(34);function v(e){return(0,l.H)(e)&&(0,g.k)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}var b=i(46),y=i(19);const w=e=>(0,l.H)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e);var k=i(12),C=i(25),S=i(20),E=i(27),I=i(40);function x(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_.]/.test(e)}var z=i(21)},(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var o=i(11);function s(e){return!!(e&&e instanceof Object&&(0,o.m)(e.constructor)&&("undefined"!=typeof Jodit&&e instanceof Jodit||e.isJodit))}},(e,t,i)=>{"use strict";i.d(t,{b:()=>s.b,i:()=>o.i});var o=i(42),s=i(48)},function(e,t,i){"use strict";i.d(t,{b:()=>a});var o=i(55),s=i(15),n=i(49),r=i(42);class a extends s.a{constructor(e,t={}){super(),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0}setWork(e){return this.isWorked&&this.break(),this.workNodes=r.i.eachGen(e,!this.options.reverse),this.isFinished=!1,this.startIdleRequest(),this}startIdleRequest(){var e;this.idleId=this.async.requestIdleCallback(this.workPerform,{timeout:null!==(e=this.options.timeout)&&void 0!==e?e:10})}break(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){this.stop()}workPerform(e){var t;if(this.workNodes){this.isWorked=!0;let i=0;const o=null!==(t=this.options.timeoutChunkSize)&&void 0!==t?t:50;for(;!this.isFinished&&(e.timeRemaining()>0||e.didTimeout&&o>=i);){const e=this.workNodes.next();if(i+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this.startIdleRequest()}visitNode(e){var t;return!(!e||void 0!==this.options.whatToShow&&e.nodeType!==this.options.whatToShow)&&null!==(t=this.emit("visit",e))&&void 0!==t&&t}}(0,o.gn)([n.autobind],a.prototype,"workPerform",null)},function(e,t,i){"use strict";i.r(t),i.d(t,{autobind:()=>k,cache:()=>s,component:()=>n.w,debounce:()=>c,getPropertyDescriptor:()=>v.w7,hook:()=>u,idle:()=>h,nonenumerable:()=>p,persistent:()=>f,throttle:()=>d,wait:()=>g,watch:()=>v.YP});var o=i(28);function s(e,t,i){const s=i.get;if(!s)throw(0,o.error)("Getter property descriptor expected");i.get=function(){const e=s.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}var n=i(50),r=i(45),a=i(51),l=i(14);function c(e,t=!1,i="debounce"){return(s,n)=>{const c=s[n];if(!(0,r.mf)(c))throw(0,l.v)("Handler must be a Function");return s.hookStatus(a.n$.ready,(s=>{const{async:a}=s;(0,o.assert)(null!=a,`Component ${s.componentName||s.constructor.name} should have "async:IAsync" field`);const l=(0,r.mf)(e)?e(s):e;Object.defineProperty(s,n,{configurable:!0,value:a[i](s[n].bind(s),(0,r.hj)(l)||(0,r.PO)(l)?l:s.defaultTimeout,t)})})),{configurable:!0,get(){return c.bind(this)}}}}function d(e,t=!1){return c(e,t,"throttle")}function h(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,o.error)("Handler must be a Function");e.hookStatus(a.n$.ready,(e=>{const{async:i}=e,o=e[t];e[t]=(...t)=>i.requestIdleCallback(o.bind(e,...t))}))}}function u(e){return(t,i)=>{if(!(0,r.mf)(t[i]))throw(0,l.v)("Handler must be a Function");t.hookStatus(e,(e=>{e[i].call(e)}))}}const p=(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})};var m=i(19);function f(e,t){e.hookStatus(a.n$.ready,(e=>{const i=(0,m.f)(e)?e:e.jodit,o=`${i.options.namespace}${e.componentName}_prop_${t}`,s=e[t];Object.defineProperty(e,t,{get(){var e;return null!==(e=i.storage.get(o))&&void 0!==e?e:s},set(e){i.storage.set(o,e)}})}))}function g(e){return(t,i)=>{if(!(0,o.isFunction)(t[i]))throw(0,o.error)("Handler must be a Function");t.hookStatus(a.n$.ready,(t=>{const{async:o}=t,s=t[i];let n=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...r){o.clearTimeout(n),e(t)?s.apply(t,r):n=o.setTimeout((()=>i(...r)),10)}})}))}}var v=i(17);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e=>typeof e:e=>e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e,b(e)}function y(e,t,i){var o=i.value;if("function"!=typeof o)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(b(o)));var s=!1;return{configurable:!0,get(){if(s||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof o)return o;var i=o.bind(this);return s=!0,Object.defineProperty(this,t,{configurable:!0,get:()=>i,set(e){o=e,delete this[t]}}),s=!1,i},set(e){o=e}}}function w(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((t=>{if("constructor"!==t){var i=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof i.value&&Object.defineProperty(e.prototype,t,y(e,t,i))}})),e}function k(){return 1===arguments.length?w.apply(void 0,arguments):y.apply(void 0,arguments)}},function(e,t,i){"use strict";function o(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,{w:()=>o})},function(e,t,i){"use strict";i.d(t,{wA:()=>s.w,n$:()=>o.n,Hr:()=>n});var o=i(18),s=i(52);class n extends s.w{constructor(e){super(),this.setParentView(e)}get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}}},function(e,t,i){"use strict";i.d(t,{w:()=>l});var o=i(28),s=i(53),n=i(18),r=i(24);const a=new Map;class l{constructor(){this.async=new r.e,this.ownerWindow=window,this.__componentStatus=n.n.beforeInit,this.uid="jodit-uid-"+(0,s.fe)()}get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,o.kebabCase)(((0,o.isFunction)(this.className)?this.className():"")||(0,o.getClassName)(this))),this.__componentName}getFullElName(e,t,i){const s=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),s.push("__"+e)),t&&(s.push("_",t),s.push("_",(0,o.isVoid)(i)?"true":""+i)),s.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,o.get)(e,t||this)}get isReady(){return this.componentStatus===n.n.ready}get isDestructed(){return this.componentStatus===n.n.destructed}get isInDestruct(){return n.n.beforeDestruct===this.componentStatus||n.n.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(n.n.beforeDestruct,(()=>!this.isInDestruct&&this.destruct())),this}destruct(){this.setStatus(n.n.destructed),this.async.destruct(),a.get(this)&&a.delete(this)}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);const i=Object.getPrototypeOf(this);i&&(0,o.isFunction)(i.setStatusComponent)&&i.setStatusComponent(e,t);const s=a.get(this),n=null==s?void 0:s[e];n&&n.length&&n.forEach((e=>e(t)))}hookStatus(e,t){let i=a.get(this);i||(i={},a.set(this,i)),i[e]||(i[e]=[]),i[e].push(t)}static isInstanceOf(e,t){return e instanceof t}}l.STATUSES=n.n},(e,t,i)=>{"use strict";i.d(t,{TB:()=>b,ZO:()=>v,as:()=>d,fe:()=>p,pw:()=>m,qz:()=>f});var o=i(54),s=i(47),n=i(3),r=i(46),a=i(19),l=i(39),c=i(36);i(2);const d={};let h=1;const u=new Set;function p(){function e(){return h+=10*(Math.random()+1),Math.round(h).toString(16)}let t=e();for(;u.has(t);)t=e();return u.add(t),t}const m=new o.h,f={},g=new WeakMap;function v(e,t,i="div",o=!1){const n=t?(0,l.g)(t.prototype):"jodit-utils",d=g.get(e)||{},h=n+i,u=(0,a.f)(e)?e:e.j;if(!d[h]){let t=u.c,a=(0,r.Z)(e)&&e.o.shadowRoot?e.o.shadowRoot:e.od.body;if(o&&(0,r.Z)(e)&&e.od!==e.ed){t=e.createInside;const o="style"===i?e.ed.head:e.ed.body;a=(0,r.Z)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}const l=t.element(i,{className:`jodit jodit-${(0,c.G)(n)}-container jodit-box`});l.classList.add("jodit_theme_"+(u.o.theme||"default")),a.appendChild(l),d[h]=l,e.hookStatus("beforeDestruct",(()=>{s.i.safeRemove(l),delete d[h],Object.keys(d).length&&g.delete(e)})),g.set(e,d)}return d[h].classList.remove("jodit_theme_default","jodit_theme_dark"),d[h].classList.add("jodit_theme_"+(u.o.theme||"default")),d[h]}const b=new n.vp},function(e,t,i){"use strict";i.d(t,{h:()=>s});var o=i(28);class s{constructor(){this._items=new Map}normalizeName(e){return(0,o.kebabCase)(e).toLowerCase()}items(e){const t=[];return this._items.forEach(((e,i)=>{t.push([i,e])})),t.filter((([t])=>!e||e.includes(t)))}add(e,t){this._items.set(this.normalizeName(e),t)}get(e){return this._items.get(this.normalizeName(e))}remove(e){this._items.delete(this.normalizeName(e))}init(e){const t=e.o.extraPlugins.map((e=>(0,o.isString)(e)?{name:e}:e)),i=(0,o.splitArray)(e.o.disablePlugins).map((e=>this.normalizeName(e))),n=[],r={},a=[],l={},c=([t,c])=>{if(i.includes(t)||n.includes(t)||r[t])return;const d=null==c?void 0:c.requires;if(d&&(0,o.isArray)(d)&&this.hasDisabledRequires(i,d))return;const h=s.makePluginInstance(e,c);h&&(this.initOrWait(e,t,h,n,r),a.push(h),l[t]=h)},d=this.loadExtras(e,t);return(0,o.callPromise)(d,(()=>{e.isInDestruct||(this.items(e.o.safeMode?e.o.safePluginsList.concat(t.map((e=>e.name))):null).forEach(c),this.addListenerOnBeforeDestruct(e,a),e.__plugins=l)}))}hasDisabledRequires(e,t){return!(!(null==t?void 0:t.length)||!e.some((e=>t.includes(e))))}static makePluginInstance(e,t){try{return(0,o.isFunction)(t)?new t(e):t}catch(e){}return null}initOrWait(e,t,i,n,r){const a=(t,i)=>{if((0,o.isInitable)(i)){const o=i.requires;if((null==o?void 0:o.length)&&!o.every((e=>n.includes(e))))return r[t]=i,!1;try{i.init(e)}catch(e){}n.push(t)}else n.push(t);return i.hasStyle&&s.loadStyle(e,t),!0};a(t,i),Object.keys(r).forEach((e=>{const t=r[e];t&&a(e,t)&&(r[e]=void 0,delete r[e])}))}addListenerOnBeforeDestruct(e,t){e.e.on("beforeDestruct",(()=>{t.forEach((t=>{(0,o.isDestructable)(t)&&t.destruct(e)})),t.length=0,delete e.__plugins}))}load(e,t){return Promise.all(t.map((t=>{const i=t.url||s.getFullUrl(e,t.name,!0);return(0,o.appendScriptAsync)(e,i).then((e=>({v:e,status:"fulfilled"})),(e=>({e,status:"rejected"})))})))}static async loadStyle(e,t){const i=s.getFullUrl(e,t,!1);if(!this.styles.has(i))return this.styles.add(i),(0,o.appendStyleAsync)(e,i)}static getFullUrl(e,t,i){return t=(0,o.kebabCase)(t),e.basePath+"plugins/"+t+"/"+t+"."+(i?"js":"css")}loadExtras(e,t){if(t&&t.length)try{const i=t.filter((e=>!this._items.has(this.normalizeName(e.name))));if(i.length)return this.load(e,i)}catch(e){}}}s.styles=new Set},(e,t,i)=>{"use strict";function o(e,t,i,o){var s,n=arguments.length,r=3>n?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(3>n?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r}i.d(t,{gn:()=>o})},(e,t,i)=>{"use strict";i.d(t,{F:()=>n,f:()=>r});var o=i(47),s=i(2);function n(e,t,i){let n=o.i.findSibling(t,i),r=o.i.findSibling(t,!i);for(;o.i.isElement(n)&&!o.i.isTag(n,s.INSEPARABLE_TAGS)&&o.i.isContentEditable(n,e.editor)&&(!r||!o.i.closest(t,o.i.isElement,e.editor));)i||!n.firstChild?n.appendChild(t):o.i.before(n.firstChild,t),n=o.i.sibling(t,i),r=o.i.sibling(t,!i)}function r(e,t,i){let s=e;for(;s&&s!==i;){if(o.i.findSibling(s,t))return;s=s.parentElement,s&&s!==i&&(t?o.i.before(s,e):o.i.after(s,e))}}},(e,t,i)=>{"use strict";i.d(t,{$$:()=>d,BR:()=>h,W2:()=>m,iN:()=>p,xL:()=>u}),i(2);var o=i(8),s=i(29),n=i(42),r=i(38),a=i(5),l=i(58),c=i(52);function d(e,t){let i;return i=t.querySelectorAll(e),[].slice.call(i)}const h=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE)return"";if(!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";const i=[].filter.call(e.parentNode.childNodes,(t=>t.nodeName===e.nodeName));return h(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(i.length>1?"["+((0,a.q)(i).indexOf(e)+1)+"]":"")},u=e=>(c.w.isInstanceOf(e,l.u)&&(e=e.container),d("[ref],[data-ref]",e).reduce(((e,t)=>{const i=(0,s.Lj)(t,"-ref");return i&&(0,o.H)(i)&&(e[(0,r.e)(i)]=t,e[i]=t),e}),{})),p=e=>{if(!n.i.isElement(e))return null;const t=[];let i=e;for(;i&&i.nodeType===Node.ELEMENT_NODE;){let e=i.nodeName.toLowerCase();if(i.id){e+="#"+i.id,t.unshift(e);break}{let t=i,o=1;do{t=t.previousElementSibling,t&&t.nodeName.toLowerCase()===e&&o++}while(t);e+=":nth-of-type("+o+")"}t.unshift(e),i=i.parentNode}return t.join(" > ")};function m(e,t){let i=e;if((0,o.H)(e))try{i=t.querySelector(e)}catch(t){throw(0,s.vU)('String "'+e+'" should be valid HTML selector')}if(!i||"object"!=typeof i||!n.i.isElement(i)||!i.cloneNode)throw(0,s.vU)('Element "'+e+'" should be string or HTMLElement instance');return i}},function(e,t,i){"use strict";i.d(t,{u:()=>l});var o=i(51),s=i(42),n=i(59),r=i(8),a=i(60);class l extends o.Hr{constructor(e,t){super(e),this.name="",this.__parentElement=null,this.mods={},this.container=this.createContainer(t),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}get parentElement(){return this.__parentElement}set parentElement(e){this.__parentElement=e,e&&e.hookStatus("beforeDestruct",(()=>this.destruct())),this.updateParentElement(this)}bubble(e){let t=this.parentElement;for(;t;)e(t),t=t.parentElement;return this}updateParentElement(e){var t;return null===(t=this.__parentElement)||void 0===t||t.updateParentElement(e),this}get(e,t){return super.get(e,t)||this.getElm(e)}closest(e){const t="object"==typeof e?t=>t===e:t=>o.wA.isInstanceOf(t,e);let i=this.__parentElement;for(;i;){if(t(i))return i;i=!i.parentElement&&i.container.parentElement?l.closestElement(i.container.parentElement,l):i.parentElement}return null}static closestElement(e,t){const i=s.i.up(e,(e=>{if(e){const{component:i}=e;return i&&o.wA.isInstanceOf(i,t)}return!1}));return i?null==i?void 0:i.component:null}setMod(e,t,i=this.container){return n.$.setMod.call(this,e,t,i),this}getMod(e){return n.$.getMod.call(this,e)}getElm(e){return n.F.getElm.call(this,e)}getElms(e){return n.F.getElms.call(this,e)}update(){}appendTo(e){return e.appendChild(this.container),this}clearName(e){return e.replace(/[^a-zA-Z0-9]/g,"_")}render(e){return this.j.c.div(this.componentName)}createContainer(e){const t=this.render(e);if((0,r.H)(t)){const e=this.j.c.fromHTML(t.replace(/\*([^*]+?)\*/g,((e,t)=>a.J.get(t)||"")).replace(/&__/g,this.componentName+"__").replace(/~([^~]+?)~/g,((e,t)=>this.i18n(t))));return e.classList.add(this.componentName),e}return t}destruct(){return s.i.safeRemove(this.container),this.parentElement=null,super.destruct()}}},function(e,t,i){"use strict";i.d(t,{F:()=>s,$:()=>r});var o=i(5);class s{static getElm(e){return this.container.querySelector("."+this.getFullElName(e))}static getElms(e){return(0,o.q)(this.container.querySelectorAll("."+this.getFullElName(e)))}}var n=i(10);class r{static setMod(e,t,i){if(e=e.toLowerCase(),this.mods[e]===t)return;const s=`${this.componentName}_${e}`,r=(i||this.container).classList;(0,o.q)(r).forEach((e=>{0===e.indexOf(s)&&r.remove(e)})),!(0,n.n)(t)&&""!==t&&r.add(`${s}_${(""+t).toLowerCase()}`),this.mods[e]=t}static getMod(e){var t;return null!==(t=this.mods[e])&&void 0!==t?t:null}}},function(e,t,i){"use strict";i.d(t,{J:()=>s});var o=i(32);class s{static getIcon(e){return/<svg/i.test(e)?e:s.icons[e]||s.icons[e.replace(/-/g,"_")]||s.icons[e.replace(/_/g,"-")]||s.icons[e.toLowerCase()]}static exists(e){return void 0!==this.getIcon(e)}static get(e,t="<span></span>"){return this.getIcon(e)||t}static set(e,t){return this.icons[e.replace("_","-")]=t,this}static makeIcon(e,t){var i;let n;if(t){const r=t.name.replace(/[^a-zA-Z0-9]/g,"_");if(t.iconURL)n=e.c.span(),(0,o.i)(n,"backgroundImage","url("+t.iconURL.replace("{basePath}",(null==e?void 0:e.basePath)||"")+")");else{const o=e.e.fire("getIcon",t.name,t,r)||s.get(t.name,"")||(null===(i=e.o.extraIcons)||void 0===i?void 0:i[t.name]);o&&(n=e.c.fromHTML(o.trim()),/^<svg/i.test(t.name)||n.classList.add("jodit-icon_"+r))}}return n&&(n.classList.add("jodit-icon"),n.style.fill=t.fill),n}}s.icons={}},(e,t,i)=>{"use strict";i.d(t,{a:()=>n,f:()=>s});var o=i(2);function s(e){return e.replace((0,o.SPACE_REG_EXP_END)(),"").replace((0,o.SPACE_REG_EXP_START)(),"")}function n(e){return e.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,o.INVISIBLE_SPACE_REG_EXP_START)(),"")}},(e,t,i)=>{"use strict";i.d(t,{e:()=>n,n:()=>r});var o=i(29),s=i(42);function n(e,t){(s.i.isElement(e)||s.i.isFragment(e))&&(t.removeOnError&&(r(e),(0,o.$$)("[onerror]",e).forEach(r)),t.safeJavaScriptLink&&(r(e),(0,o.$$)('a[href^="javascript"]',e).forEach(r)))}function r(e){if(!s.i.isElement(e))return!1;let t=!1;e.hasAttribute("onerror")&&((0,o.Lj)(e,"onerror",null),t=!0);const i=e.getAttribute("href");return i&&0===i.trim().indexOf("javascript")&&((0,o.Lj)(e,"href",location.protocol+"//"+i),t=!0),t}},(e,t,i)=>{"use strict";i.d(t,{ut:()=>g,Zh:()=>m.Z,T2:()=>n,Pd:()=>r,Tz:()=>l,AH:()=>d,Jf:()=>h,aC:()=>u,D5:()=>p});var o=i(61),s=i(2);function n(e){const t={};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map((e=>(0,o.f)(e.toLowerCase()))).map((e=>s.KEY_ALIASES[e]||e)).sort().filter((e=>!t[e]&&""!==e&&(t[e]=!0))).join("+")}const r=(e,t=8)=>{const i=[];for(;e.length;)i.push(e.substr(0,t)),e=e.substr(t);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")};var a=i(42);const l=e=>{if(e){if(a.i.isText(e)&&null!=e.nodeValue&&e.parentNode)for(;a.i.isText(e.nextSibling);)null!=e.nextSibling.nodeValue&&(e.nodeValue+=e.nextSibling.nodeValue),e.nodeValue=e.nodeValue.replace((0,s.INVISIBLE_SPACE_REG_EXP)(),""),a.i.safeRemove(e.nextSibling);else l(e.firstChild);l(e.nextSibling)}};var c=i(64);const d=(...e)=>e.filter((e=>(0,c.fy)(e).length)).map(((t,i)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),i&&(t=t.replace(/^\//,"")),i!==e.length-1&&(t=t.replace(/\/$/,"")),t))).join("/"),h=e=>e.split("/").reduce(((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e}),[]).join("/")+(e.endsWith("/")?"/":""),u=e=>/^[0-9]+$/.test(""+e)?e+"px":""+e,p=(...e)=>e.filter((e=>e.length)).map((e=>e.replace(/\/$/,""))).join("/").replace(/([^:])[\\/]+/g,"$1/");var m=i(35),f=i(37);const g=e=>{const t=["#"];let i=(0,f.h)(e);if(!i)return!1;if(i=(0,c.fy)(i.toUpperCase()),i=i.substr(1),3===i.length){for(let e=0;3>e;e+=1)t.push(i[e]),t.push(i[e]);return t.join("")}return i.length>6&&(i=i.substr(0,6)),"#"+i}},(e,t,i)=>{"use strict";i.d(t,{gP:()=>u.g,eV:()=>o.e,Qy:()=>s.Q,ag:()=>h,GL:()=>u.G,gB:()=>d,Pz:()=>p.P,fy:()=>m.f,as:()=>m.a,Ps:()=>l});var o=i(38),s=i(65),n=i(1),r=i(29),a=i(8);function l(e){return e.length?e[0].toUpperCase()+e.substr(1):""}var c=i(2);const d=(e,t)=>{if(!t||!t.length)return e;const i=/%([sd])/g;let o=i.exec(e),s=e,n=0;for(;o&&void 0!==t[n];)s=s.replace(o[0],""+t[n]),n+=1,o=i.exec(e);return s};function h(e,t,i){if(!(0,a.H)(e))throw(0,r.vU)("i18n: Need string in first argument");if(!e.length)return e;const o=!(void 0===i||!i.debugLanguage);let s;const h=e=>t&&t.length?d(e,t):e,u=(0,r.X9)(n.D.defaultOptions.language,n.D.defaultOptions.language),p=(0,r.X9)(null==i?void 0:i.language,u),m=t=>{if(!t)return;if((0,a.H)(t[e]))return h(t[e]);const i=e.toLowerCase();if((0,a.H)(t[i]))return h(t[i]);const o=l(e);return(0,a.H)(t[o])?h(t[o]):void 0};s=void 0!==c.lang[p]?c.lang[p]:void 0!==c.lang[u]?c.lang[u]:c.lang.en;const f=null==i?void 0:i.i18n;if(f&&f[p]){const e=m(f[p]);if(e)return e}return m(s)||(c.lang.en&&(0,a.H)(c.lang.en[e])&&c.lang.en[e]?h(c.lang.en[e]):o?"{"+e+"}":h(e))}var u=i(36),p=i(23),m=i(61)},(e,t,i)=>{"use strict";i.d(t,{Q:()=>s});var o=i(2);function s(e,t,i=0,s=1){let n=0,r=0,a=-1,l=0,c=0;for(r=i;e.length>n&&t.length>r;)e[n].toLowerCase()===t[r].toLowerCase()?(n++,l++,c=0,-1===a&&(a=r)):n>0&&(s>c||t[r]===o.INVISIBLE_SPACE?(c++,l++):(n=0,a=-1,l=0,c=0,r--)),r++;return n===e.length?[a,l]:[-1,0]}},(e,t,i)=>{"use strict";i.d(t,{G:()=>o.G});var o=i(67)},function(e,t,i){"use strict";i.d(t,{G:()=>d});var o=i(55),s=i(42),n=i(28),r=i(58),a=i(49),l=i(52),c=i(53);class d extends r.u{constructor(e,t=!0){super(e),this.smart=t,this.isOpened=!1,this.strategy="leftBottom",this.viewBound=()=>({left:0,top:0,width:this.ow.innerWidth,height:this.ow.innerHeight}),this.childrenPopups=new Set,(0,n.attr)(this.container,"role","popup")}className(){return"Popup"}updateParentElement(e){return e!==this&&l.w.isInstanceOf(e,d)&&(this.childrenPopups.forEach((t=>{!e.closest(t)&&t.isOpened&&t.close()})),this.childrenPopups.has(e)||this.j.e.on(e,"beforeClose",(()=>{this.childrenPopups.delete(e)})),this.childrenPopups.add(e)),super.updateParentElement(e)}setContent(e){s.i.detach(this.container);const t=this.j.c.div(this.componentName+"__content");let i;return l.w.isInstanceOf(e,r.u)?(i=e.container,e.parentElement=this):i=(0,n.isString)(e)?this.j.c.fromHTML(e):e,t.appendChild(i),this.container.appendChild(t),this.updatePosition(),this}open(e,t=!1,i){if((0,n.markOwner)(this.jodit,this.container),this.calculateZIndex(),this.isOpened=!0,this.addGlobalListeners(),this.targetBound=t?this.getKeepBound(e):e,i)i.appendChild(this.container);else{const e=(0,c.ZO)(this.jodit,d);i!==this.container.parentElement&&e.appendChild(this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this}calculateZIndex(){if(this.container.style.zIndex)return;const e=e=>{const t=e.container.style.zIndex||e.o.zIndex;return!!t&&(this.setZIndex(1+parseInt(""+t,10)),!0)},{j:t}=this;if(e(t))return;let i=this.parentElement;for(;i;){if(e(t))return;if(i.container.style.zIndex)return void this.setZIndex(1+parseInt(""+i.container.style.zIndex,10));if(!i.parentElement&&i.container.parentElement){const e=r.u.closestElement(i.container.parentElement,r.u);if(e){i=e;continue}}i=i.parentElement}}getKeepBound(e){const t=e(),i=this.od.elementFromPoint(t.left,t.top);if(!i)return e;const o=s.i.isHTMLElement(i)?i:i.parentElement,r=(0,n.position)(o,this.j);return()=>{const t=e(),i=(0,n.position)(o,this.j);return{...t,top:t.top+(i.top-r.top),left:t.left+(i.left-r.left)}}}updatePosition(){if(!this.isOpened)return this;const[e,t]=this.calculatePosition(this.targetBound(),this.viewBound(),(0,n.position)(this.container,this.j));return this.setMod("strategy",t),(0,n.css)(this.container,{left:e.left,top:e.top}),this.childrenPopups.forEach((e=>e.updatePosition())),this}throttleUpdatePosition(){this.updatePosition()}calculatePosition(e,t,i,o=this.strategy){const s={left:e.left,right:e.left-(i.width-e.width)},r={bottom:e.top+e.height,top:e.top-i.height},a=Object.keys(s).reduce(((e,t)=>e.concat(Object.keys(r).map((e=>`${t}${(0,n.ucfirst)(e)}`)))),[]),l=e=>{const[t,o]=(0,n.kebabCase)(e).split("-");return{left:s[t],top:r[o],width:i.width,height:i.height}},c=e=>{let t=null;return t=d.boxInView(l(o),e)?o:a.find((t=>{if(d.boxInView(l(t),e))return t}))||null,t};let h=c((0,n.position)(this.j.container,this.j));return h&&d.boxInView(l(h),t)||(h=c(t)||h||o),[l(h),h]}static boxInView(e,t){return!(-2>e.top-t.top||-2>e.left-t.left||-2>t.top+t.height-(e.top+e.height)||-2>t.left+t.width-(e.left+e.width))}close(){return this.isOpened?(this.isOpened=!1,this.childrenPopups.forEach((e=>e.close())),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.removeGlobalListeners(),s.i.safeRemove(this.container),this):this}closeOnOutsideClick(e){this.isOpened&&!this.isOwnClick(e)&&this.close()}isOwnClick(e){const t=(0,n.isFunction)(e.composedPath)&&e.composedPath()[0]||e.target;if(!t)return!1;const i=r.u.closestElement(t,d);return!(!i||this!==i&&!i.closest(this))}addGlobalListeners(){const e=this.throttleUpdatePosition,t=this.ow;c.TB.on("closeAllPopups",this.close),this.smart&&this.j.e.on("escape",this.close).on("mousedown touchstart",this.closeOnOutsideClick).on(t,"mousedown touchstart",this.closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",e).on(this.container,"scroll mousewheel",e).on(t,"scroll",e).on(t,"resize",e),s.i.up(this.j.container,(t=>{t&&this.j.e.on(t,"scroll mousewheel",e)}))}removeGlobalListeners(){const e=this.throttleUpdatePosition,t=this.ow;c.TB.off("closeAllPopups",this.close),this.smart&&this.j.e.off("escape",this.close).off("mousedown touchstart",this.closeOnOutsideClick).off(t,"mousedown touchstart",this.closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",e).off(this.container,"scroll mousewheel",e).off(t,"scroll",e).off(t,"resize",e),(0,n.assert)(this.j.container.isConnected,"The container must be built into the DOM"),s.i.up(this.j.container,(t=>{t&&this.j.e.off(t,"scroll mousewheel",e)}))}setZIndex(e){this.container.style.zIndex=""+e}destruct(){return this.close(),super.destruct()}}(0,o.gn)([a.autobind],d.prototype,"updatePosition",null),(0,o.gn)([(0,a.throttle)(10),a.autobind],d.prototype,"throttleUpdatePosition",null),(0,o.gn)([a.autobind],d.prototype,"close",null),(0,o.gn)([a.autobind],d.prototype,"closeOnOutsideClick",null)},function(e,t,i){"use strict";i.d(t,{zx:()=>o.zx,y3:()=>o.y3,Yc:()=>o.Yc});var o=i(69),s=i(55),n=i(72),r=i(50),a=i(4);let l=class extends n.q{constructor(e,t={radio:!0}){var i,s;super(e,null===(i=t.options)||void 0===i?void 0:i.map((t=>{const i=new o.y3(e,{text:t.text,value:t.value,variant:"primary"});return i.onAction((()=>{this.select(t.value)})),i})),t),this.options=t,this.select(null!==(s=t.value)&&void 0!==s?s:0)}className(){return"UIButtonGroup"}render(e){return`<div>\n\t\t\t<div class="&__label">~${e.label}~</div>\n\t\t\t<div class="&__options"></div>\n\t\t</div>`}appendChildToContainer(e){const t=this.getElm("options");(0,a.h)(null!=t,"Options does not exist"),t.appendChild(e)}select(e){var t,i;this.elements.forEach(((t,i)=>{i===e||t.state.value===e?t.state.activated=!0:this.options.radio&&(t.state.activated=!1)}));const o=this.elements.filter((e=>e.state.activated)).map((e=>({text:e.state.text,value:e.state.value})));this.jodit.e.fire(this,"select",o),null===(i=(t=this.options).onChange)||void 0===i||i.call(t,o)}};l=(0,s.gn)([r.w],l)},function(e,t,i){"use strict";i.d(t,{Yc:()=>p,y3:()=>m,zx:()=>f});var o=i(55),s=i(58),n=i(42),r=i(29),a=i(8),l=i(11),c=i(60),d=i(70),h=i(49),u=i(18);const p=()=>({size:"middle",type:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0});let m=class extends s.u{constructor(e,t){super(e),this.isButton=!0,this.state=p(),this.actionHandlers=[],this.updateSize(),this.onChangeSize(),this.onChangeStatus(),t&&this.hookStatus(u.n.ready,(()=>{this.setState(t)}))}className(){return"UIButton"}setState(e){return Object.assign(this.state,e),this}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,r.Lj)(this.container,"type",this.state.type)}updateSize(){const e=this.closest(d.b);e&&(this.state.size=e.buttonSize)}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text)}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,r.Lj)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,r.Lj)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,r.Lj)(this.container,"data-ref",this.state.name),(0,r.Lj)(this.container,"ref",this.state.name)}onChangeTooltip(){this.get("j.o.useNativeTooltip")&&(0,r.Lj)(this.container,"title",this.state.tooltip),(0,r.Lj)(this.container,"aria-label",this.state.tooltip)}onChangeTabIndex(){(0,r.Lj)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){const e=this.get("j.o.textIcons");if(!0===e||(0,l.m)(e)&&e(this.state.name))return;n.i.detach(this.icon);const t=c.J.makeIcon(this.j,this.state.icon);t&&this.icon.appendChild(t)}focus(){this.container.focus()}isFocused(){const{activeElement:e}=this.od;return!(!e||!n.i.isOrContains(this.container,e))}createContainer(){const e=this.componentName,t=this.j.c.element("button",{class:e,type:"button",role:"button",ariaPressed:!1});return this.icon=this.j.c.span(e+"__icon"),this.text=this.j.c.span(e+"__text"),t.appendChild(this.icon),t.appendChild(this.text),this.j.e.on(t,"click",this.onActionFire),t}destruct(){return this.j.e.off(this.container),super.destruct()}onAction(e){return this.actionHandlers.push(e),this}onActionFire(e){e.buffer={actionTrigger:this},this.actionHandlers.forEach((t=>t.call(this,e)))}};function f(e,t,i,o){const s=new m(e);return s.state.tabIndex=e.o.allowTabNavigation?0:-1,(0,a.H)(t)?(s.state.icon.name=t,s.state.name=t,o&&(s.state.variant=o),i&&(s.state.text=i)):s.setState(t),s}(0,o.gn)([(0,h.watch)("state.size")],m.prototype,"onChangeSize",null),(0,o.gn)([(0,h.watch)("state.type")],m.prototype,"onChangeType",null),(0,o.gn)([(0,h.watch)("parentElement")],m.prototype,"updateSize",null),(0,o.gn)([(0,h.watch)("state.variant")],m.prototype,"onChangeStatus",null),(0,o.gn)([(0,h.watch)("state.text")],m.prototype,"onChangeText",null),(0,o.gn)([(0,h.watch)("state.text")],m.prototype,"onChangeTextSetMode",null),(0,o.gn)([(0,h.watch)("state.disabled")],m.prototype,"onChangeDisabled",null),(0,o.gn)([(0,h.watch)("state.activated")],m.prototype,"onChangeActivated",null),(0,o.gn)([(0,h.watch)("state.name")],m.prototype,"onChangeName",null),(0,o.gn)([(0,h.watch)("state.tooltip")],m.prototype,"onChangeTooltip",null),(0,o.gn)([(0,h.watch)("state.tabIndex")],m.prototype,"onChangeTabIndex",null),(0,o.gn)([(0,h.watch)("state.icon")],m.prototype,"onChangeIcon",null),(0,o.gn)([h.autobind],m.prototype,"onActionFire",null),m=(0,o.gn)([h.component],m)},function(e,t,i){"use strict";i.d(t,{b:()=>g});var o=i(55),s=i(71),n=i(1),r=i(9),a=i(29),l=i(49),c=i(72),d=i(73),h=i(74),u=i(69),p=i(75),m=i(13),f=i(52);let g=class extends c.q{constructor(e){super(e),this.mode="horizontal",this.removeButtons=[],this.onChangeMode()}className(){return"UIList"}onChangeMode(){this.setMod("mode",this.mode)}makeGroup(){return new c.q(this.jodit)}get buttons(){return this.allChildren.filter((e=>f.w.isInstanceOf(e,u.y3)))}getButtonsNames(){return this.buttons.map((e=>e instanceof u.y3&&e.state.name||"")).filter((e=>""!==e))}setRemoveButtons(e){return this.removeButtons=e||[],this}build(e,t=null){e=(0,m.C)(e),this.clear();let i,o=!1,l=this.makeGroup();this.append(l),l.setMod("line",!0);const c=e=>{let s=null;switch(e.name){case"\n":l=this.makeGroup(),l.setMod("line",!0),i=this.makeGroup(),l.append(i),this.append(l);break;case"|":o||(o=!0,s=new d.l(this.j));break;case"---":{i.setMod("before-spacer",!0);const e=new h.W(this.j);l.append(e),i=this.makeGroup(),l.append(i),o=!1;break}default:o=!1,s=this.makeButton(e,t)}s&&(i||(i=this.makeGroup(),l.append(i)),i.append(s))},u=e=>!this.removeButtons.includes(e.name);return e.forEach((e=>{if((0,p.A)(e)){const t=e.buttons.filter((e=>e));t.length&&(i=this.makeGroup(),i.setMod("separated",!0).setMod("group",e.group),l.append(i),((e,t)=>((0,r.k)(e)?e:(0,a.am)(e,!1).map((t=>(0,a.II)({name:t},e[t]||{})))).map((e=>(0,s.Y)(e,t||n.D.defaultOptions.controls))))(t,this.j.o.controls).filter(u).forEach(c))}else{i||(i=this.makeGroup(),l.append(i));const t=(0,s.Y)(e,this.j.o.controls);u(t)&&c(t)}})),this.update(),this}makeButton(e,t){return new u.y3(this.j)}};(0,o.gn)([(0,l.watch)("mode")],g.prototype,"onChangeMode",null),g=(0,o.gn)([l.component],g)},(e,t,i)=>{"use strict";i.d(t,{Y:()=>n,z:()=>r});var o=i(28),s=i(1);function n(e,t){let i;return t||(t=s.D.defaultOptions.controls),(0,o.isString)(e)?i=r(e,t)||{name:e,command:e,tooltip:e}:(i={name:"empty",...(0,o.ConfigFlatten)(e)},void 0!==t[i.name]&&(i={...(0,o.ConfigFlatten)(t[i.name]),...(0,o.ConfigFlatten)(i)})),i}function r(e,t){let[i,s]=e.split(/\./),n=t;return null!=s?void 0!==t[i]&&(n=t[i]):s=i,n[s]?{name:s,...(0,o.ConfigFlatten)(n[s])}:void 0}},function(e,t,i){"use strict";i.d(t,{q:()=>d});var o,s=i(55),n=i(58),r=i(49),a=i(28),l=i(42),c=i(52);let d=o=class extends n.u{constructor(e,t,i){super(e,i),this.options=i,this.syncMod=!1,this.elements=[],this.buttonSize="middle",null==t||t.forEach((e=>e&&this.append(e))),(null==i?void 0:i.name)&&(this.name=i.name)}className(){return"UIGroup"}get allChildren(){const e=[],t=[...this.elements];for(;t.length;){const i=t.shift();(0,a.isArray)(i)?t.push(...i):c.w.isInstanceOf(i,o)?t.push(...i.elements):i&&e.push(i)}return e}update(){this.elements.forEach((e=>e.update())),this.setMod("size",this.buttonSize)}append(e,t){if((0,a.isArray)(e))return e.forEach((e=>this.append(e,t))),this;if(this.elements.push(e),e.name&&e.container.classList.add(this.getFullElName(e.name)),t){const i=this.getElm(t);(0,a.assert)(null!=i,"Element does not exist"),i.appendChild(e.container)}else this.appendChildToContainer(e.container);return e.parentElement=this,e.update(),this}setMod(e,t){return this.syncMod&&this.elements.forEach((i=>i.setMod(e,t))),super.setMod(e,t)}appendChildToContainer(e){this.container.appendChild(e)}remove(e){const t=this.elements.indexOf(e);return-1!==t&&(this.elements.splice(t,1),l.i.safeRemove(e.container),e.parentElement=null),this}clear(){return this.elements.forEach((e=>e.destruct())),this.elements.length=0,this}destruct(){return this.clear(),super.destruct()}};(0,s.gn)([(0,r.watch)("buttonSize")],d.prototype,"update",null),d=o=(0,s.gn)([r.component],d)},(e,t,i)=>{"use strict";i.d(t,{l:()=>r});var o=i(55),s=i(58),n=i(50);let r=class extends s.u{className(){return"UISeparator"}};r=(0,o.gn)([n.w],r)},(e,t,i)=>{"use strict";i.d(t,{W:()=>r});var o=i(55),s=i(58),n=i(50);let r=class extends s.u{className(){return"UISpacer"}};r=(0,o.gn)([n.w],r)},(e,t,i)=>{"use strict";i.d(t,{A:()=>s,q:()=>n});var o=i(9);const s=e=>(0,o.k)(e.buttons);function n(e,t){const i=t.getRegisteredButtonGroups();return new Set(e.reduce(((e,t)=>{var o;return s(t)?e=e.concat([...t.buttons,...null!==(o=i[t.group])&&void 0!==o?o:[]]):e.push(t),e}),[]))}},function(e,t,i){"use strict";i.d(t,{zx:()=>s.zx,JO:()=>d.J,GI:()=>n.G,ko:()=>u,eC:()=>c.eC,y3:()=>s.y3,mA:()=>c.mA,u1:()=>o.u,Z:()=>c.Z,x4:()=>c.x4,qe:()=>r.q,u3:()=>c.u3,bz:()=>a.b,lU:()=>l.l,GJ:()=>c.GJ});var o=i(58),s=i(68),n=i(66),r=i(72),a=i(70),l=i(73),c=(i(74),i(77)),d=i(60),h=i(42);class u extends o.u{className(){return"ProgressBar"}render(){return"<div><div></div></div>"}show(){return(this.j.workplace||this.j.container).appendChild(this.container),this}hide(){return h.i.safeRemove(this.container),this}progress(e){return this.container.style.width=e.toFixed(2)+"%",this}destruct(){return this.hide(),super.destruct()}}},function(e,t,i){"use strict";i.d(t,{eC:()=>A,mA:()=>T,Z:()=>L,x4:()=>E,u3:()=>b,Cj:()=>C,GJ:()=>x});var o={};i.r(o),i.d(o,{required:()=>m,url:()=>f});var s=i(55),n=i(72),r=i(58),a=i(29),l=i(5),c=i(42),d=i(49),h=i(60),u=i(40),p=i(61);const m=e=>!!(0,p.f)(e.value).length||(e.error="Please fill out this field",!1),f=e=>!!(0,u.P)((0,p.f)(e.value))||(e.error="Please enter a web address",!1),g=e=>!!(0,p.f)(e.value).length||(e.error="Please fill out this field",!1);var v;let b=v=class extends r.u{constructor(e,t){super(e,t),this.label=this.j.c.span(this.getFullElName("label")),this.icon=this.j.c.span(this.getFullElName("icon")),this.clearButton=this.j.c.span(this.getFullElName("clear"),h.J.get("cancel")),this.state={...v.defaultState},this.__errorBox=this.j.c.span(this.getFullElName("error")),this.validators=new Set([]),void 0!==(null==t?void 0:t.value)&&(t.value=""+t.value),Object.assign(this.state,t),void 0!==this.state.clearButton&&(this.j.e.on(this.clearButton,"click",(e=>{e.preventDefault(),this.nativeInput.value="",this.j.e.fire(this.nativeInput,"input"),this.focus()})).on(this.nativeInput,"input",(()=>{this.state.clearButton=!!this.value.length})),this.state.clearButton=!!this.value.length),this.j.e.on(this.nativeInput,"focus blur",(()=>{this.onChangeFocus()})).on(this.nativeInput,"input change",this.onChangeValue),this.onChangeState(),this.onChangeClassName(),this.onChangeStateValue()}className(){return"UIInput"}onChangeClear(){this.state.clearButton?c.i.after(this.nativeInput,this.clearButton):c.i.safeRemove(this.clearButton)}onChangeClassName(e,t){t&&this.container.classList.remove(t),this.state.className&&this.container.classList.add(this.state.className)}onChangeState(){this.name=this.state.name;const e=this.nativeInput,{name:t,icon:i,type:o,ref:s,required:n,placeholder:r,autocomplete:l,label:d}=this.state;(0,a.Lj)(e,"name",t),(0,a.Lj)(e,"type",o),(0,a.Lj)(e,"data-ref",s||t),(0,a.Lj)(e,"ref",s||t),(0,a.Lj)(e,"required",n||null),(0,a.Lj)(e,"autocomplete",l?null:"off"),(0,a.Lj)(e,"placeholder",r?this.j.i18n(r):""),i&&h.J.exists(i)?(c.i.before(e,this.icon),this.icon.innerHTML=h.J.get(i)):c.i.safeRemove(this.icon),d?(c.i.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(d)):c.i.safeRemove(this.label),this.updateValidators()}updateValidators(){var e;this.validators.clear(),this.state.required&&this.validators.add(m),null===(e=this.state.validators)||void 0===e||e.forEach((e=>{const t=o[e];t&&this.validators.add(t)}))}set error(e){this.setMod("has-error",!!e),e?(this.__errorBox.innerText=this.j.i18n(e,this.j.i18n(this.state.label||"")),this.container.appendChild(this.__errorBox)):c.i.safeRemove(this.__errorBox)}get value(){return this.nativeInput.value}set value(e){this.value!==e&&(this.nativeInput.value=e,this.onChangeValue())}onChangeStateValue(){const e=""+this.state.value;e!==this.value&&(this.value=e)}onChangeValue(){var e,t;const{value:i}=this;this.state.value!==i&&(this.state.value=i,this.j.e.fire(this,"change",i),null===(t=(e=this.state).onChange)||void 0===t||t.call(e,i))}validate(){return this.error="",(0,l.q)(this.validators).every((e=>e(this)))}createContainer(e){const t=super.createContainer();this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());const{nativeInput:i}=this;return i.classList.add(this.getFullElName("input")),this.wrapper.appendChild(i),t.appendChild(this.wrapper),(0,a.Lj)(i,"dir",this.j.o.direction||"auto"),t}createNativeInput(e){return this.j.create.element("input")}focus(){this.nativeInput.focus()}get isFocused(){return this.nativeInput===this.j.od.activeElement}onChangeFocus(){this.setMod("focused",this.isFocused)}};b.defaultState={className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]},(0,s.gn)([(0,d.watch)("state.clearButton")],b.prototype,"onChangeClear",null),(0,s.gn)([(0,d.watch)("state.className")],b.prototype,"onChangeClassName",null),(0,s.gn)([(0,d.watch)(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"]),(0,d.debounce)()],b.prototype,"onChangeState",null),(0,s.gn)([(0,d.watch)("state.value")],b.prototype,"onChangeStateValue",null),(0,s.gn)([d.autobind],b.prototype,"onChangeValue",null),b=v=(0,s.gn)([d.component],b);var y,w=i(30),k=i(50);let C=y=class extends b{constructor(e,t){super(e,t),this.state={...y.defaultState},Object.assign(this.state,t)}className(){return"UISelect"}createContainer(e){var t;const i=super.createContainer(e),{j:o}=this,{nativeInput:s}=this,n=()=>o.create.element("option");if(void 0!==e.placeholder){const t=n();t.value="",t.text=o.i18n(e.placeholder),s.add(t)}return null===(t=e.options)||void 0===t||t.forEach((e=>{const t=n();t.value=""+e.value,t.text=o.i18n(e.text),s.add(t)})),e.size&&e.size>0&&(0,w.Lj)(s,"size",e.size),e.multiple&&(0,w.Lj)(s,"multiple",""),i}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(m),this.validators.add(g))}};C.defaultState={...b.defaultState,options:[],size:1,multiple:!1},C=y=(0,s.gn)([k.w],C);var S=i(52);let E=class extends n.q{constructor(...e){var t,i;super(...e),(null===(t=this.options)||void 0===t?void 0:t.className)&&this.container.classList.add(null===(i=this.options)||void 0===i?void 0:i.className)}className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){const e=this.allChildren.filter((e=>S.w.isInstanceOf(e,b)));for(const t of e)if(!t.validate())return!1;const t=this.allChildren.filter((e=>S.w.isInstanceOf(e,C)));for(const e of t)if(!e.validate())return!1;return!0}onSubmit(e){this.j.e.on(this.container,"submit",(()=>{const t=this.allChildren.filter((e=>S.w.isInstanceOf(e,b)));return!!this.validate()&&(e(t.reduce(((e,t)=>(e[t.state.name]=t.value,e)),{})),!1)}))}createContainer(){const e=this.j.c.element("form");return e.classList.add(this.componentName),(0,a.Lj)(e,"dir",this.j.o.direction||"auto"),e}};var I;E=(0,s.gn)([k.w],E);let x=I=class extends b{constructor(e,t){super(e,t),this.state={...I.defaultState},Object.assign(this.state,t),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}className(){return"UITextArea"}createContainer(e){return this.nativeInput=this.j.create.element("textarea"),super.createContainer(e)}};var z;x.defaultState={...b.defaultState,size:5,resizable:!0},x=I=(0,s.gn)([k.w],x);let T=z=class extends b{constructor(e,t){super(e,{...t,type:"checkbox"}),this.state={...z.defaultState},Object.assign(this.state,t)}className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}onChangeChecked(){this.value=""+this.state.checked,this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}onChangeNativeCheckBox(){this.state.checked=this.nativeInput.checked}onChangeSwitch(){this.setMod("switch",this.state.switch);let e=this.getElm("switch-slider");this.state.switch?(e||(e=this.j.c.div(this.getFullElName("switch-slider"))),c.i.after(this.nativeInput,e)):c.i.safeRemove(e)}};T.defaultState={...b.defaultState,checked:!1,switch:!1},(0,s.gn)([(0,d.watch)("state.checked"),(0,d.hook)("ready")],T.prototype,"onChangeChecked",null),(0,s.gn)([(0,d.watch)("nativeInput:change")],T.prototype,"onChangeNativeCheckBox",null),(0,s.gn)([(0,d.watch)("state.switch"),(0,d.hook)("ready")],T.prototype,"onChangeSwitch",null),T=z=(0,s.gn)([d.component],T);var j=i(69);let L=class extends b{constructor(e,t){super(e,{type:"file",...t}),this.state={...b.defaultState,type:"file",onlyImages:!0}}className(){return"UIFileInput"}createContainer(e){this.button=new j.y3(this.j,{icon:{name:"plus"}});const{container:t}=this.button;this.nativeInput||(this.nativeInput=this.createNativeInput(e));const{nativeInput:i}=this;return i.classList.add(this.getFullElName("input")),t.classList.add(this.componentName),t.appendChild(i),t}createNativeInput(e){return this.j.create.fromHTML(`<input\n\t\t\ttype="file"\n\t\t\taccept="${e.onlyImages?"image/*":"*"}"\n\t\t\ttabindex="-1"\n\t\t\tdir="auto"\n\t\t\tmultiple=""\n\t\t/>`)}};L=(0,s.gn)([k.w],L);let A=class extends n.q{constructor(e,t,i={align:"left"}){super(e,t),this.options=i,this.setMod("align",this.options.align||"left"),this.setMod("width",this.options.width||""),this.options.mod&&this.setMod(this.options.mod,!0),this.options.className&&this.container.classList.add(this.options.className),(0,a.Lj)(this.container,"data-ref",i.ref),(0,a.Lj)(this.container,"ref",i.ref)}className(){return"UIBlock"}};A=(0,s.gn)([k.w],A)},e=>{e.exports={"Type something":"Start writing...",pencil:"Edit",Quadrate:"Square"}},e=>{e.exports={"Type something":"إبدأ في الكتابة...","About Jodit":"حول جوديت","Jodit Editor":"محرر جوديت","Jodit User's Guide":"دليل مستخدم جوديت","contains detailed help for using":"يحتوي على مساعدة مفصلة للاستخدام","For information about the license, please go to our website:":"للحصول على معلومات حول الترخيص، يرجى الذهاب لموقعنا:","Buy full version":"شراء النسخة الكاملة","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"حقوق الطبع والنشر © XDSoft.net - Chupurnov Valeriy. كل الحقوق محفوظة.",Anchor:"مِرْساة","Open in new tab":"فتح في نافذة جديدة","Open editor in fullsize":"فتح المحرر في الحجم الكامل","Clear Formatting":"مسح التنسيق","Fill color or set the text color":"ملء اللون أو تعيين لون النص",Redo:"إعادة",Undo:"تراجع",Bold:"عريض",Italic:"مائل","Insert Unordered List":"إدراج قائمة غير مرتبة","Insert Ordered List":"إدراج قائمة مرتبة","Align Center":"محاذاة للوسط","Align Justify":"محاذاة مثبتة","Align Left":"محاذاة لليسار","Align Right":"محاذاة لليمين","Insert Horizontal Line":"إدراج خط أفقي","Insert Image":"إدراج صورة","Insert file":"ادخال الملف","Insert youtube/vimeo video":"إدراج فيديو يوتيوب/فيميو ","Insert link":"إدراج رابط","Font size":"حجم الخط","Font family":"نوع الخط","Insert format block":"إدراج كتلة تنسيق",Normal:"عادي","Heading 1":"عنوان 1","Heading 2":"عنوان 2","Heading 3":"عنوان 3","Heading 4":"عنوان 4",Quote:"إقتباس",Code:"كود",Insert:"إدراج","Insert table":"إدراج جدول","Decrease Indent":"تقليل المسافة البادئة","Increase Indent":"زيادة المسافة البادئة","Select Special Character":"تحديد أحرف خاصة","Insert Special Character":"إدراج حرف خاص","Paint format":"تنسيق الرسم","Change mode":"تغيير الوضع",Margins:"هوامش",top:"أعلى",right:"يمين",bottom:"أسفل",left:"يسار",Styles:"الأنماط",Classes:"الطبقات",Align:"محاذاة",Right:"اليمين",Center:"الوسط",Left:"اليسار","--Not Set--":"--غير مضبوط--",Src:"Src",Title:"العنوان",Alternative:"العنوان البديل",Link:"الرابط","Open link in new tab":"افتح الرابط في نافذة جديدة",Image:"الصورة",file:"ملف",Advanced:"متقدم","Image properties":"خصائص الصورة",Cancel:"إلغاء",Ok:"حسنا","File Browser":"متصفح الملفات","Error on load list":"حدث خطأ في تحميل القائمة ","Error on load folders":"حدث خطأ في تحميل المجلدات","Are you sure?":"هل أنت واثق؟","Enter Directory name":"أدخل اسم المجلد","Create directory":"إنشاء مجلد","type name":"أكتب إسم","Drop image":"إسقاط صورة","Drop file":"إسقاط الملف","or click":"أو أنقر","Alternative text":"النص البديل",Upload:"رفع",Browse:"تصفح",Background:"الخلفية",Text:"نص",Top:"أعلى",Middle:"الوسط",Bottom:"الأسفل","Insert column before":"إدراج عمود قبل","Insert column after":"إدراج عمود بعد","Insert row above":"إدراج صف أعلى","Insert row below":"إدراج صف أسفل","Delete table":"حذف الجدول","Delete row":"حذف الصف","Delete column":"حذف العمود","Empty cell":"خلية فارغة","Chars: %d":"%d حرف","Words: %d":"%d كلام","Strike through":"اضرب من خلال",Underline:"أكد",superscript:"حرف فوقي",subscript:"مخطوطة","Cut selection":"قطع الاختيار","Select all":"اختر الكل",Break:"استراحة","Search for":"البحث عن","Replace with":"استبدل ب",Replace:"محل",Paste:"معجون","Choose Content to Paste":"اختر محتوى للصق",source:"مصدر",bold:"بالخط العريض",italic:"مائل",brush:"شغل",link:"صلة",undo:"إلغاء",redo:"كرر",table:"طاولة",image:"صورة",eraser:"نظيف",paragraph:"فقرة",fontsize:"حجم الخط",video:"فيديو",font:"الخط",about:"حول المحرر",print:"طباعة",symbol:"رمز",underline:"أكد",strikethrough:"شطب",indent:"المسافة البادئة",outdent:"نتوء",fullsize:"ملء الشاشة",shrink:"الحجم التقليدي",copyformat:"نسخ التنسيق",hr:"الخط",ul:"قائمة",ol:"قائمة مرقمة",cut:"قطع",selectall:"اختر الكل","Embed code":"قانون","Open link":"فتح الرابط","Edit link":"تعديل الرابط","No follow":"سمة Nofollow",Unlink:"إزالة الرابط",Update:"تحديث",pencil:"لتحرير",Eye:"مراجعة"," URL":"URL",Edit:"تحرير","Horizontal align":"محاذاة أفقية",Filter:"فلتر","Sort by changed":"عن طريق التغيير","Sort by name":"بالاسم","Sort by size":"حسب الحجم","Add folder":"إضافة مجلد",Reset:"إعادة",Save:"احتفظ","Save as ...":"حفظ باسم",Resize:"تغيير الحجم",Crop:"حجم القطع",Width:"عرض",Height:"ارتفاع","Keep Aspect Ratio":"حافظ على النسب",Yes:"أن",No:"لا",Remove:"حذف",Select:"تميز","Select %s":"تميز %s","Vertical align":"محاذاة عمودية",Split:"انشق، مزق",Merge:"اذهب","Add column":"أضف العمود","Add row":"اضف سطر","License: %s":"رخصة %s",Delete:"حذف","Split vertical":"انقسام عمودي","Split horizontal":"تقسيم أفقي",Border:"الحدود","Your code is similar to HTML. Keep as HTML?":"يشبه الكود الخاص بك HTML. تبقي كما HTML؟","Paste as HTML":"الصق ك HTML",Keep:"احتفظ","Insert as Text":"إدراج كنص","Insert only Text":"إدراج النص فقط","You can only edit your own images. Download this image on the host?":"يمكنك فقط تحرير صورك الخاصة. تحميل هذه الصورة على المضيف؟","The image has been successfully uploaded to the host!":"تم تحميل الصورة بنجاح على الخادم!",palette:"لوحة","There are no files":"لا توجد ملفات في هذا الدليل.",Rename:"إعادة تسمية","Enter new name":"أدخل اسم جديد",preview:"معاينة",download:"تحميل","Paste from clipboard":"لصق من الحافظة","Your browser doesn't support direct access to the clipboard.":"متصفحك لا يدعم إمكانية الوصول المباشر إلى الحافظة.","Copy selection":"نسخ التحديد",copy:"نسخ","Border radius":"دائرة نصف قطرها الحدود","Show all":"عرض كل",Apply:"تطبيق","Please fill out this field":"يرجى ملء هذا المجال","Please enter a web address":"يرجى إدخال عنوان ويب",Default:"الافتراضي",Circle:"دائرة",Dot:"نقطة",Quadrate:"المربعة",Find:"البحث","Find Previous":"تجد السابقة","Find Next":"تجد التالي","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"للصق المحتوى قادم من Microsoft Word/Excel الوثيقة. هل تريد أن تبقي شكل أو تنظيفه ؟ ","Word Paste Detected":"كلمة لصق الكشف عن",Clean:"نظيفة","Insert className":"أدخل اسم الفصل","Line height":"ارتفاع الخط",Spellchecking:"التدقيق الإملائي"}},e=>{e.exports={"Type something":"Napiš něco","About Jodit":"O Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Verze pro nekomerční použití","Jodit User's Guide":"Jodit Uživatelská příručka","contains detailed help for using":"obsahuje detailní nápovědu","For information about the license, please go to our website:":"Pro informace o licenci, prosím, přejděte na naši stránku:","Buy full version":"Koupit plnou verzi","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Všechna práva vyhrazena.",Anchor:"Anchor","Open in new tab":"Otevřít v nové záložce","Open editor in fullsize":"Otevřít v celoobrazovkovém režimu","Clear Formatting":"Vyčistit formátování","Fill color or set the text color":"Barva výplně a písma",Redo:"Vpřed",Undo:"Zpět",Bold:"Tučné",Italic:"Kurzíva","Insert Unordered List":"Odrážky","Insert Ordered List":"Číslovaný seznam","Align Center":"Zarovnat na střed","Align Justify":"Zarovnat do bloku","Align Left":"Zarovnat vlevo","Align Right":"Zarovnat vpravo","Insert Horizontal Line":"Vložit horizontální linku","Insert Image":"Vložit obrázek","Insert file":"Vložit soubor","Insert youtube/vimeo video":"Vložit video (YT/Vimeo)","Insert link":"Vložit odkaz","Font size":"Velikost písma","Font family":"Typ písma","Insert format block":"Formátovat blok",Normal:"Normální text","Heading 1":"Nadpis 1","Heading 2":"Nadpis 2","Heading 3":"Nadpis 3","Heading 4":"Nadpis 4",Quote:"Citát",Code:"Kód",Insert:"Vložit","Insert table":"Vložit tabulku","Decrease Indent":"Zmenšit odsazení","Increase Indent":"Zvětšit odsazení","Select Special Character":"Vybrat speciální symbol","Insert Special Character":"Vložit speciální symbol","Paint format":"Použít formát","Change mode":"Změnit mód",Margins:"Okraje",top:"horní",right:"pravý",bottom:"spodní",left:"levý",Styles:"Styly",Classes:"Třídy",Align:"Zarovnání",Right:"Vpravo",Center:"Na střed",Left:"Vlevo","--Not Set--":"--nenastaveno--",Src:"src",Title:"Titulek",Alternative:"Alternativní text (alt)",Link:"Link","Open link in new tab":"Otevřít link v nové záložce",Image:"Obrázek",file:"soubor",Advanced:"Rozšířené","Image properties":"Vlastnosti obrázku",Cancel:"Zpět",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Váš text se podobá HTML. Vložit ho jako HTML?","Paste as HTML":"Vložit jako HTML",Keep:"Ponechat originál",Clean:"Vyčistit","Insert as Text":"Vložit jako TEXT","Insert only Text":"Vložit pouze TEXT","Word Paste Detected":"Detekován fragment z Wordu nebo Excelu","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Obsah, který vkládáte, je pravděpodobně z Microsoft Word / Excel. Chcete ponechat formát nebo vložit pouze text?","File Browser":"Prohlížeč souborů","Error on load list":"Chyba při načítání seznamu souborů","Error on load folders":"Chyba při načítání složek","Are you sure?":"Jste si jistý(á)?","Enter Directory name":"Název složky","Create directory":"Vytvořit složku","type name":"název","Drop image":"Přetáhněte sem obrázek","Drop file":"Přetáhněte sem soubor","or click":"nebo klikněte","Alternative text":"Alternativní text",Browse:"Server",Upload:"Nahrát",Background:"Pozadí",Text:"Text",Top:"Nahoru",Middle:"Na střed",Bottom:"Dolu","Insert column before":"Vložit sloupec před","Insert column after":"Vložit sloupec za","Insert row above":"Vložit řádek nad","Insert row below":"Vložit řádek pod","Delete table":"Vymazat tabulku","Delete row":"Vymazat řádku","Delete column":"Vymazat sloupec","Empty cell":"Vyčistit buňku",source:"HTML",bold:"tučně",italic:"kurzíva",brush:"štětec",link:"odkaz",undo:"zpět",redo:"vpřed",table:"tabulka",image:"obrázek",eraser:"guma",paragraph:"odstavec",fontsize:"velikost písma",video:"video",font:"písmo",about:"о editoru",print:"tisk",symbol:"symbol",underline:"podtrženo",strikethrough:"přeškrtnuto",indent:"zvětšit odsazení",outdent:"zmenšit odsazení",fullsize:"celoobrazovkový režim",shrink:"smrsknout",copyformat:"Kopírovat formát",hr:"Linka",ul:"Odrážka",ol:"Číslovaný seznam",cut:"Vyjmout",selectall:"Označit vše","Embed code":"Kód","Open link":"Otevřít odkaz","Edit link":"Upravit odkaz","No follow":"Atribut no-follow",Unlink:"Odstranit odkaz",Eye:"Zobrazit",pencil:"Chcete-li upravit",Update:"Aktualizovat"," URL":"URL",Edit:"Editovat","Horizontal align":"Horizontální zarovnání",Filter:"Filtr","Sort by changed":"Dle poslední změny","Sort by name":"Dle názvu","Sort by size":"Dle velikosti","Add folder":"Přidat složku",Reset:"Reset",Save:"Uložit","Save as ...":"Uložit jako...",Resize:"Změnit rozměr",Crop:"Ořezat",Width:"Šířka",Height:"Výška","Keep Aspect Ratio":"Ponechat poměr",Yes:"Ano",No:"Ne",Remove:"Vyjmout",Select:"Označit","Chars: %d":"Znaky: %d","Words: %d":"Slova: %d",All:"Vše","Select %s":"Označit %s","Select all":"Označit vše","Vertical align":"Vertikální zarovnání",Split:"Rozdělit","Split vertical":"Rozdělit vertikálně","Split horizontal":"Rozdělit horizontálně",Merge:"Spojit","Add column":"Přidat sloupec","Add row":"Přidat řádek",Delete:"Vymazat",Border:"Okraj","License: %s":"Licence: %s","Strike through":"Přeškrtnuto",Underline:"Podtrženo",superscript:"Horní index",subscript:"Dolní index","Cut selection":"Vyjmout označené",Break:"Zalomení","Search for":"Najdi","Replace with":"Nahradit za",Replace:"Vyměňte",Paste:"Vložit","Choose Content to Paste":"Vyber obsah pro vložení","You can only edit your own images. Download this image on the host?":"Můžete upravovat pouze své obrázky. Načíst obrázek?","The image has been successfully uploaded to the host!":"Obrázek byl úspěšně nahrán!",palette:"paleta","There are no files":"V tomto adresáři nejsou žádné soubory.",Rename:"přejmenovat","Enter new name":"Zadejte nový název",preview:"náhled",download:"Stažení","Paste from clipboard":"Vložit ze schránky","Your browser doesn't support direct access to the clipboard.":"Váš prohlížeč nepodporuje přímý přístup do schránky.","Copy selection":"Kopírovat výběr",copy:"kopírování","Border radius":"Border radius","Show all":"Zobrazit všechny",Apply:"Platí","Please fill out this field":"Prosím, vyplňte toto pole","Please enter a web address":"Prosím, zadejte webovou adresu",Default:"Výchozí",Circle:"Kruh",Dot:"Dot",Quadrate:"Quadrate",Find:"Najít","Find Previous":"Najít Předchozí","Find Next":"Najít Další","Insert className":"Vložte název třídy","Line height":"Výška čáry",Spellchecking:"Kontrola pravopisu"}},e=>{e.exports={"Type something":"Bitte geben Sie einen Text ein",Advanced:"Fortgeschritten","About Jodit":"Über Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Das Jodit Benutzerhandbuch","contains detailed help for using":"beinhaltet ausführliche Informationen wie Sie den Editor verwenden können.","For information about the license, please go to our website:":"Für Informationen zur Lizenz, besuchen Sie bitte unsere Web-Präsenz:","Buy full version":"Vollversion kaufen","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.",Anchor:"Anker","Open in new tab":"In neuer Registerkarte öffnen","Open editor in fullsize":"Editor in voller Größe öffnen","Clear Formatting":"Formatierung löschen","Fill color or set the text color":"Füllfarbe oder Textfarbe ändern",Redo:"Wiederholen",Undo:"Rückgängig machen",Bold:"Fett",Italic:"Kursiv","Insert Unordered List":"Unsortierte Liste einfügen","Insert Ordered List":"Nummerierte Liste einfügen","Align Center":"Mittig ausrichten","Align Justify":"Blocksatz","Align Left":"Links ausrichten","Align Right":"Rechts ausrichten","Insert Horizontal Line":"Horizontale Linie einfügen","Insert Image":"Bild einfügen","Insert file":"Datei einfügen","Insert youtube/vimeo video":"Youtube/vimeo Video einfügen","Insert link":"Link einfügen","Font size":"Schriftgröße","Font family":"Schriftfamilie","Insert format block":"Formatblock einfügen",Normal:"Normal","Heading 1":"Überschrift 1","Heading 2":"Überschrift 2","Heading 3":"Überschrift 3","Heading 4":"Überschrift 4",Quote:"Zitat",Code:"Code",Insert:"Einfügen","Insert table":"Tabelle einfügen","Decrease Indent":"Einzug verkleinern","Increase Indent":"Einzug vergrößern","Select Special Character":"Sonderzeichen auswählen","Insert Special Character":"Sonderzeichen einfügen","Paint format":"Format kopieren","Change mode":"Änderungsmodus",Margins:"Ränder",top:"Oben",right:"Rechts",bottom:"Unten",left:"Links",Styles:"CSS Stil",Classes:"CSS Klassen",Align:"Ausrichtung",Right:"Rechts",Center:"Zentriert",Left:"Links","--Not Set--":"Keine",Src:"Pfad",Title:"Titel",Alternative:"Alternativer Text",Link:"Link","Open link in new tab":"Link in neuem Tab öffnen",Image:"Bild",file:"Datei",Advansed:"Erweitert","Image properties":"Bildeigenschaften",Cancel:"Abbrechen",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Ihr Text ähnelt HTML-Code. Als HTML beibehalten?","Paste as HTML":"Als HTML einfügen?",Keep:"Original speichern",Clean:"Säubern","Insert as Text":"Als Text einfügen","Word Paste Detected":"In Word formatierter Text erkannt","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder bereinigen?","Insert only Text":"Nur Text einfügen","File Browser":"Dateibrowser","Error on load list":"Fehler beim Laden der Liste","Error on load folders":"Fehler beim Laden der Ordner","Are you sure?":"Sind Sie sicher?","Enter Directory name":"Geben Sie den Verzeichnisnamen ein","Create directory":"Verzeichnis erstellen","type name":"Typname","Drop image":"Bild hier hinziehen","Drop file":"Datei löschen","or click":"oder hier klicken","Alternative text":"Alternativtext",Browse:"Auswählen",Upload:"Hochladen",Background:"Hintergrund",Text:"Text",Top:"Oben",Middle:"Mittig",Bottom:"Unten","Insert column before":"Spalte davor einfügen","Insert column after":"Spalte danach einfügen","Insert row above":"Zeile oberhalb einfügen","Insert row below":"Zeile unterhalb einfügen","Delete table":"Tabelle löschen","Delete row":"Zeile löschen","Delete column":"Spalte löschen","Empty cell":"Zelle leeren",Delete:"Löschen","Strike through":"Durchstreichen",Underline:"Unterstreichen",Break:"Pause","Search for":"Suche nach","Replace with":"Ersetzen durch",Replace:"Ersetzen",Edit:"Bearbeiten","Vertical align":"Vertikale Ausrichtung","Horizontal align":"Horizontale Ausrichtung",Filter:"Filter","Sort by changed":"Sortieren nach geändert","Sort by name":"Nach Name sortieren","Sort by size":"Nach Größe sortiert","Add folder":"Ordner hinzufügen","Split vertical":"Vertikal unterteilen","Split horizontal":"Horizontal unterteilen",Split:"Unterteilen",Merge:"Vereinen","Add column":"Spalte hinzufügen","Add row":"Zeile hinzufügen",Border:"Rand","Embed code":"Code einbetten",Update:"Aktualisieren",superscript:"Hochgestellen",subscript:"Tiefstellen","Cut selection":"Auswahl ausschneiden",Paste:"Einfügen","Choose Content to Paste":"Wählen Sie den Inhalt zum Einfügen aus","Chars: %d":"Zeichen: %d","Words: %d":"Wörter: %d",All:"Alles markieren","Select %s":"Markieren: %s","Select all":"Alles markieren",source:"HTML",bold:"Fett gedruckt",italic:"Kursiv",brush:"Bürste",link:"Verknüpfung",undo:"Rückgängig machen",redo:"Wiederholen",table:"Tabelle",image:"Bild",eraser:"Radiergummi",paragraph:"Absatz",fontsize:"Schriftgröße",video:"Video",font:"Schriftart",about:"Über",print:"Drucken",symbol:"Symbol",underline:"Unterstreichen",strikethrough:"Durchstreichen",indent:"Einzug",outdent:"Herausstellen",fullsize:"Vollgröße",shrink:"Schrumpfen",copyformat:"Format kopierenт",hr:"die Linie",ul:"Liste von",ol:"Nummerierte Liste","Lower Alpha":"Standard, Alphabet (klein)","Upper Alpha":"Standard, Alphabet (gross)","Lower Roman":"Römisch (klein)","Upper Roman":"Römisch (gross)","Lower Greek":"Griechisch",cut:"Schneiden",selectall:"Wählen Sie Alle aus","Open link":"Link öffnen","Edit link":"Link bearbeiten","No follow":"Nofollow-Attribut",Unlink:"Link entfernen",Eye:"Ansehen",pencil:"Bearbeiten"," URL":"URL",Reset:"Wiederherstellen",Save:"Speichern","Save as ...":"Speichern als",Resize:"Größe ändern",Crop:"Größe anpassen",Width:"Breite",Height:"Höhe","Keep Aspect Ratio":"Seitenverhältnis beibehalten",Yes:"Ja",No:"Nein",Remove:"Entfernen",Select:"Markieren","You can only edit your own images. Download this image on the host?":"Sie können nur Ihre eigenen Bilder bearbeiten. Dieses Bild auf den Host herunterladen?","The image has been successfully uploaded to the host!":"Das Bild wurde erfolgreich auf den Server hochgeladen!",palette:"Palette","There are no files":"In diesem Verzeichnis befinden sich keine Dateien.",Rename:"Umbenennen","Enter new name":"Geben Sie einen neuen Namen ein",preview:"Vorschau",download:"Herunterladen","Paste from clipboard":"Aus Zwischenablage einfügen","Your browser doesn't support direct access to the clipboard.":"Ihr Browser unterstützt keinen direkten Zugriff auf die Zwischenablage.","Copy selection":"Auswahl kopieren",copy:"Kopieren","Border radius":"Radius für abgerundete Ecken","Show all":"Alle anzeigen",Apply:"Anwenden","Please fill out this field":"Bitte füllen Sie dieses Feld aus","Please enter a web address":"Bitte geben Sie eine Web-Adresse ein",Default:"Standard",Circle:"Kreis",Dot:"Punkte",Quadrate:"Quadrate",Find:"Suchen","Find Previous":"Suche vorherige","Find Next":"Weitersuchen","Insert className":"className (CSS) einfügen","Line height":"Zeilenhöhe",Spellchecking:"Rechtschreibprüfung"}},e=>{e.exports={"Type something":"Escriba algo...",Advanced:"Avanzado","About Jodit":"Acerca de Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Guía de usuario Jodit","contains detailed help for using":"contiene ayuda detallada para el uso.","For information about the license, please go to our website:":"Para información sobre la licencia, por favor visite nuestro sitio:","Buy full version":"Compre la versión completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.",Anchor:"Anclar","Open in new tab":"Abrir en nueva pestaña","Open editor in fullsize":"Abrir editor en pantalla completa","Clear Formatting":"Limpiar formato","Fill color or set the text color":"Color de relleno o de letra",Redo:"Rehacer",Undo:"Deshacer",Bold:"Negrita",Italic:"Cursiva","Insert Unordered List":"Insertar lista no ordenada","Insert Ordered List":"Insertar lista ordenada","Align Center":"Alinear Centrado","Align Justify":"Alinear Justificado","Align Left":"Alinear Izquierda","Align Right":"Alinear Derecha","Insert Horizontal Line":"Insertar línea horizontal","Insert Image":"Insertar imagen","Insert file":"Insertar archivo","Insert youtube/vimeo video":"Insertar video de Youtube/vimeo","Insert link":"Insertar vínculo","Font size":"Tamaño de letra","Font family":"Familia de letra","Insert format block":"Insertar bloque",Normal:"Normal","Heading 1":"Encabezado 1","Heading 2":"Encabezado 2","Heading 3":"Encabezado 3","Heading 4":"Encabezado 4",Quote:"Cita",Code:"Código",Insert:"Insertar","Insert table":"Insertar tabla","Decrease Indent":"Disminuir sangría","Increase Indent":"Aumentar sangría","Select Special Character":"Seleccionar caracter especial","Insert Special Character":"Insertar caracter especial","Paint format":"Copiar formato","Change mode":"Cambiar modo",Margins:"Márgenes",top:"arriba",right:"derecha",bottom:"abajo",left:"izquierda",Styles:"Estilos CSS",Classes:"Clases CSS",Align:"Alinear",Right:"Derecha",Center:"Centrado",Left:"Izquierda","--Not Set--":"--No Establecido--",Src:"Fuente",Title:"Título",Alternative:"Texto Alternativo",Link:"Vínculo","Open link in new tab":"Abrir vínculo en nueva pestaña",Image:"Imagen",file:"Archivo",Advansed:"Avanzado","Image properties":"Propiedades de imagen",Cancel:"Cancelar",Ok:"Aceptar","Your code is similar to HTML. Keep as HTML?":"El código es similar a HTML. ¿Mantener como HTML?","Paste as HTML":"Pegar como HTML?",Keep:"Mantener",Clean:"Limpiar","Insert as Text":"Insertar como texto","Word Paste Detected":"Pegado desde Word detectado","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"El contenido pegado proviene de un documento de Microsoft Word/Excel. ¿Desea mantener el formato o limpiarlo?","Insert only Text":"Insertar solo texto","File Browser":"Buscar archivo","Error on load list":"Error al cargar la lista","Error on load folders":"Error al cargar las carpetas","Are you sure?":"¿Está seguro?","Enter Directory name":"Entre nombre de carpeta","Create directory":"Crear carpeta","type name":"Entre el nombre","Drop image":"Soltar imagen","Drop file":"Soltar archivo","or click":"o click","Alternative text":"Texto alternativo",Browse:"Buscar",Upload:"Subir",Background:"Fondo",Text:"Texto",Top:"Arriba",Middle:"Centro",Bottom:"Abajo","Insert column before":"Insertar columna antes","Insert column after":"Interar columna después","Insert row above":"Insertar fila arriba","Insert row below":"Insertar fila debajo","Delete table":"Borrar tabla","Delete row":"Borrar fila","Delete column":"Borrar columna","Empty cell":"Vaciar celda",Delete:"Borrar","Strike through":"Tachado",Underline:"Subrayado",Break:"Pausa","Search for":"Buscar","Replace with":"Reemplazar con",Replace:"Reemplazar",Edit:"Editar","Vertical align":"Alineación vertical","Horizontal align":"Alineación horizontal",Filter:"filtrar","Sort by changed":"Ordenar por fecha modificación","Sort by name":"Ordenar por nombre","Sort by size":"Ordenar por tamaño","Add folder":"Agregar carpeta",Split:"Dividir","Split vertical":"Dividir vertical","Split horizontal":"Dividir horizontal",Merge:"Mezclar","Add column":"Agregar columna","Add row":"Agregar fila",Border:"Borde","Embed code":"Incluir código",Update:"Actualizar",superscript:"superíndice",subscript:"subíndice","Cut selection":"Cortar selección",Paste:"Pegar","Choose Content to Paste":"Seleccionar contenido para pegar","Chars: %d":"Caracteres: %d","Words: %d":"Palabras: %d",All:"Todo","Select %s":"Seleccionar: %s","Select all":"Seleccionar todo",source:"HTML",bold:"negrita",italic:"cursiva",brush:"Brocha",link:"Vínculo",undo:"deshacer",redo:"rehacer",table:"Tabla",image:"Imagen",eraser:"Borrar",paragraph:"Párrafo",fontsize:"Tamaño de letra",video:"Video",font:"Letra",about:"Acerca de",print:"Imprimir",symbol:"Símbolo",underline:"subrayar",strikethrough:"tachar",indent:"sangría",outdent:"quitar sangría",fullsize:"Tamaño completo",shrink:"encoger",copyformat:"Copiar formato",hr:"línea horizontal",ul:"lista sin ordenar",ol:"lista ordenada",cut:"Cortar",selectall:"Seleccionar todo","Open link":"Abrir vínculo","Edit link":"Editar vínculo","No follow":"No seguir",Unlink:"Desvincular",Eye:"Ver",pencil:"Para editar"," URL":"URL",Reset:"Resetear",Save:"Guardar","Save as ...":"Guardar como...",Resize:"Redimensionar",Crop:"Recortar",Width:"Ancho",Height:"Alto","Keep Aspect Ratio":"Mantener relación de aspecto",Yes:"Si",No:"No",Remove:"Quitar",Select:"Seleccionar","You can only edit your own images. Download this image on the host?":"Solo puedes editar tus propias imágenes. ¿Descargar esta imagen en el servidor?","The image has been successfully uploaded to the host!":"¡La imagen se ha subido correctamente al servidor!",palette:"paleta","There are no files":"No hay archivos en este directorio.",Rename:"renombrar","Enter new name":"Ingresa un nuevo nombre",preview:"avance",download:"Descargar","Paste from clipboard":"Pegar desde el portapapeles","Your browser doesn't support direct access to the clipboard.":"Su navegador no soporta el acceso directo en el portapapeles.","Copy selection":"Selección de copia",copy:"copia","Border radius":"Radio frontera","Show all":"Mostrar todos los",Apply:"Aplicar","Please fill out this field":"Por favor, rellene este campo","Please enter a web address":"Por favor, introduzca una dirección web",Default:"Predeterminado",Circle:"Círculo",Dot:"Punto",Quadrate:"Cuadro","Lower Alpha":"Letra Minúscula","Lower Greek":"Griego Minúscula","Lower Roman":"Romano Minúscula","Upper Alpha":"Letra Mayúscula","Upper Roman":"Romano Mayúscula",Find:"Encontrar","Find Previous":"Buscar Anterior","Find Next":"Buscar Siguiente","Insert className":"Insertar nombre de clase","Line height":"Altura de la línea",Spellchecking:"Corrección ortográfica"}},e=>{e.exports={"Type something":"Ecrivez ici","About Jodit":"A propos de Jodit","Jodit Editor":"Editeur Jodit","Jodit User's Guide":"Guide de l'utilisateur","contains detailed help for using":"Aide détaillée à l'utilisation","For information about the license, please go to our website:":"Consulter la licence sur notre site web:","Buy full version":"Acheter la version complète","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tous droits réservés.",Anchor:"Ancre","Open in new tab":"Ouvrir dans un nouvel onglet","Open editor in fullsize":"Ouvrir l'éditeur en pleine page","Clear Formatting":"Supprimer le formattage","Fill color or set the text color":"Modifier la couleur du fond ou du texte",Redo:"Refaire",Undo:"Défaire",Bold:"Gras",Italic:"Italique","Insert Unordered List":"Liste non ordonnée","Insert Ordered List":"Liste ordonnée","Align Center":"Centrer","Align Justify":"Justifier","Align Left":"Aligner à gauche ","Align Right":"Aligner à droite","Insert Horizontal Line":"Insérer une ligne horizontale","Insert Image":"Insérer une image","Insert file":"Insérer un fichier","Insert youtube/vimeo video":"Insérer une vidéo","Insert link":"Insérer un lien","Font size":"Taille des caractères","Font family":"Famille des caractères","Insert format block":"Bloc formatté",Normal:"Normal","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4",Quote:"Citation",Code:"Code",Insert:"Insérer","Insert table":"Insérer un tableau","Decrease Indent":"Diminuer le retrait","Increase Indent":"Retrait plus","Select Special Character":"Sélectionnez un caractère spécial","Insert Special Character":"Insérer un caractère spécial","Paint format":"Cloner le format","Change mode":"Mode wysiwyg <-> code html",Margins:"Marges",top:"haut",right:"droite",bottom:"Bas",left:"gauche",Styles:"Styles",Classes:"Classes",Align:"Alignement",Right:"Droite",Center:"Centre",Left:"Gauche","--Not Set--":"--Non disponible--",Src:"Source",Title:"Titre",Alternative:"Alternative",Filter:"Filtre",Link:"Lien","Open link in new tab":"Ouvrir le lien dans un nouvel onglet",Image:"Image",file:"fichier",Advanced:"Avancé","Image properties":"Propriétés de l'image",Cancel:"Annuler",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Votre texte que vous essayez de coller est similaire au HTML. Collez-le en HTML?","Paste as HTML":"Coller en HTML?",Keep:"Sauvegarder l'original",Clean:"Nettoyer","Insert as Text":"Coller en tant que texte","Word Paste Detected":"C'est peut-être un fragment de Word ou Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Le contenu que vous insérez provient d'un document Microsoft Word / Excel. Voulez-vous enregistrer le format ou l'effacer?","Insert only Text":"Coller le texte seulement","File Browser":"Explorateur de fichiers","Error on load list":"Erreur de liste de chargement","Error on load folders":"Erreur de dossier de chargement","Are you sure?":"Etes-vous sûrs ?","Enter Directory name":"Entrer le non de dossier","Create directory":"Créer un dossier","type name":"type de fichier","Drop image":"Coller une image","Drop file":"Déposer un fichier","or click":"ou cliquer","Alternative text":"Texte de remplacemement",Browse:"Chercher",Upload:"Charger",Background:"Arrière-plan",Text:"Texte",Top:"Haut",Middle:"Milieu",Bottom:"Bas","Insert column before":"Insérer une colonne avant","Insert column after":"Insérer une colonne après","Insert row above":"Insérer une ligne en dessus","Insert row below":"Insérer une ligne en dessous","Delete table":"Supprimer le tableau","Delete row":"Supprimer la ligne","Delete column":"Supprimer la colonne","Empty cell":"Vider la cellule","Chars: %d":"Symboles: %d","Words: %d":"Mots: %d",Split:"Split","Split vertical":"Split vertical","Split horizontal":"Split horizontal","Strike through":"Frapper à travers",Underline:"Souligner",superscript:"exposant",subscript:"indice","Cut selection":"Couper la sélection","Select all":"Tout sélectionner",Break:"Pause","Search for":"Rechercher","Replace with":"Remplacer par",Replace:"Remplacer",Paste:"Coller","Choose Content to Paste":"Choisissez le contenu à coller",source:"la source",bold:"graisseux",italic:"italique",brush:"verser",link:"lien",undo:"abolir",redo:"prêt",table:"graphique",image:"Image",eraser:"la gommen",paragraph:"clause",fontsize:"taille de police",video:"Video",font:"police",about:"à propos de l'éditeur",print:"impression",symbol:"caractère",underline:"souligné",strikethrough:"barré",indent:"indentation",outdent:"indifférent",fullsize:"taille réelle",shrink:"taille conventionnelle",copyformat:"Format de copie",hr:"la ligne",ul:"Liste des",ol:"Liste numérotée",cut:"Couper",selectall:"Sélectionner tout","Open link":"Ouvrir le lien","Edit link":"Modifier le lien","No follow":"Attribut Nofollow",Unlink:"Supprimer le lien",Eye:"Voir",pencil:"Pour éditer"," URL":"URL",Reset:"Restaurer",Save:"Sauvegarder","Save as ...":"Enregistrer sous",Resize:"Changer la taille",Crop:"Taille de garniture",Width:"Largeur",Height:"Hauteur","Keep Aspect Ratio":"Garder les proportions",Yes:"Oui",No:"Non",Remove:"Supprimer",Select:"Mettre en évidence","Select %s":"Mettre en évidence: %s",Update:"Mettre à jour","Vertical align":"Alignement vertical",Merge:"aller","Add column":"Ajouter une colonne","Add row":"Ajouter une rangée",Delete:"Effacer","Horizontal align":"Alignement horizontal","Sort by changed":"Trier par modifié","Sort by name":"Trier par nom","Sort by size":"Classer par taille","Add folder":"Ajouter le dossier","You can only edit your own images. Download this image on the host?":"Vous ne pouvez éditer que vos propres images. Téléchargez cette image sur l'hôte?","The image has been successfully uploaded to the host!":"L'image a été téléchargée avec succès sur le serveur!null",palette:"Palette","There are no files":"Il n'y a aucun fichier dans ce répertoire.",Rename:"renommer","Enter new name":"Entrez un nouveau nom",preview:"Aperçu",download:"Télécharger","Paste from clipboard":"Coller à partir du presse-papiers","Your browser doesn't support direct access to the clipboard.":"Votre navigateur ne prend pas en charge l'accès direct à la presse-papiers.","Copy selection":"Copier la sélection",copy:"copie","Border radius":"Rayon des frontières","Show all":"Afficher tous les",Apply:"Appliquer","Please fill out this field":"Veuillez remplir ce champ","Please enter a web address":"Veuillez entrer une adresse web",Default:"Par défaut",Circle:"Cercle",Dot:"Dot",Quadrate:"Quadrate",Find:"Trouver","Find Previous":"Trouvez Précédente","Find Next":"Suivant","Insert className":"Insérer un nom de classe","Line height":"Hauteur de ligne",Spellchecking:"Vérification Orthographique"}},e=>{e.exports={"Type something":"הקלד משהו...",Advanced:"מתקדם","About Jodit":"About Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit User's Guide","contains detailed help for using":"contains detailed help for using.","For information about the license, please go to our website:":"For information about the license, please go to our website:","Buy full version":"Buy full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"מקום עיגון","Open in new tab":"פתח בכרטיסיה חדשה","Open editor in fullsize":"פתח את העורך בחלון חדש","Clear Formatting":"נקה עיצוב","Fill color or set the text color":"שנה צבע טקסט או רקע",Redo:"בצע שוב",Undo:"בטל",Bold:"מודגש",Italic:"נטוי","Insert Unordered List":"הכנס רשימת תבליטים","Insert Ordered List":"הכנס רשימה ממוספרת","Align Center":"מרכז","Align Justify":"ישר ","Align Left":"ישר לשמאל","Align Right":"ישר לימין","Insert Horizontal Line":"הכנס קו אופקי","Insert Image":"הכנס תמונה","Insert file":"הכנס קובץ","Insert youtube/vimeo video":"הכנס סרטון וידאו מYouTube/Vimeo","Insert link":"הכנס קישור","Font size":"גודל גופן","Font family":"גופן","Insert format block":"מעוצב מראש",Normal:"רגיל","Heading 1":"כותרת 1","Heading 2":"כותרת 2","Heading 3":"כותרת 3","Heading 4":"כותרת 4",Quote:"ציטוט",Code:"קוד",Insert:"הכנס","Insert table":"הכנס טבלה","Decrease Indent":"הקטן כניסה","Increase Indent":"הגדל כניסה","Select Special Character":"בחר תו מיוחד","Insert Special Character":"הכנס תו מיוחד","Paint format":"העתק עיצוב","Change mode":"החלף מצב",Margins:"ריווח",top:"עליון",right:"ימין",bottom:"תחתון",left:"שמאל",Styles:"עיצוב CSS",Classes:"מחלקת CSS",Align:"יישור",Right:"ימין",Center:"מרכז",Left:"שמאל","--Not Set--":"--לא נקבע--",Src:"מקור",Title:"כותרת",Alternative:"כיתוב חלופי",Link:"קישור","Open link in new tab":"פתח בכרטיסיה חדשה",Image:"תמונה",file:"קובץ",Advansed:"מתקדם","Image properties":"מאפייני תמונה",Cancel:"ביטול",Ok:"אישור","Your code is similar to HTML. Keep as HTML?":"הקוד דומה לHTML, האם להשאיר כHTML","Paste as HTML":"הדבק כHTML",Keep:"השאר",Clean:"נקה","Insert as Text":"הכנס כטקסט","Word Paste Detected":'זוהתה הדבקה מ"וורד"',"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"התוכן המודבק מגיע ממסמך וורד/אקסל. האם ברצונך להשאיר את העיצוב או לנקותו","Insert only Text":"הכנס טקסט בלבד","File Browser":"סייר הקבצים","Error on load list":"שגיאה בזמן טעינת רשימה","Error on load folders":"שגיאה בזמן טעינת תקיות","Are you sure?":"האם אתה בטוח?","Enter Directory name":"הכנס שם תקיה","Create directory":"צור תקיה","type name":"סוג הקובץ","Drop image":"הסר תמונה","Drop file":"הסר קובץ","or click":"או לחץ","Alternative text":"כיתוב חלופי",Browse:"סייר",Upload:"העלה",Background:"רקע",Text:"טקסט",Top:"עליון",Middle:"מרכז",Bottom:"תחתון","Insert column before":"הכנס עמודה לפני","Insert column after":"הכנס עמודה אחרי","Insert row above":"הכנס שורה מעל","Insert row below":"הכנס שורה מתחת","Delete table":"מחק טבלה","Delete row":"מחק שורה","Delete column":"מחק עמודה","Empty cell":"רוקן תא",Delete:"מחק","Strike through":"קו חוצה",Underline:"קו תחתון",Break:"שבירת שורה","Search for":"חפש","Replace with":"החלף ב",Replace:"להחליף",Edit:"ערוך","Vertical align":"יישור אנכי","Horizontal align":"יישור אופקי",Filter:"סנן","Sort by changed":"מין לפי שינוי","Sort by name":"מיין לפי שם","Sort by size":"מיין לפי גודל","Add folder":"הוסף תקייה",Split:"פיצול","Split vertical":"פיצול אנכי","Split horizontal":"פיצול אופקי",Merge:"מזג","Add column":"הוסף עמודה","Add row":"הוסף שורה",Border:"מסגרת","Embed code":"הוסף קוד",Update:"עדכן",superscript:"superscript",subscript:"subscript","Cut selection":"גזור בחירה",Paste:"הדבק","Choose Content to Paste":"בחר תוכן להדבקה","Chars: %d":"תווים: %d","Words: %d":"מילים: %d",All:"הכל","Select %s":"נבחר: %s","Select all":"בחר הכל",source:"HTML",bold:"מודגש",italic:"נטוי",brush:"מברשת",link:"קישור",undo:"בטל",redo:"בצע שוב",table:"טבלה",image:"תמונה",eraser:"מחק",paragraph:"פסקה",fontsize:"גודל גופן",video:"וידאו",font:"גופן",about:"עלינו",print:"הדפס",symbol:"תו מיוחד",underline:"קו תחתון",strikethrough:"קו חוצה",indent:"הגדל כניסה",outdent:"הקטן כניסה",fullsize:"גודל מלא",shrink:"כווץ",copyformat:"העתק עיצוב",hr:"קו אופקי",ul:"רשימת תבליטים",ol:"רשימה ממוספרת",cut:"חתוך",selectall:"בחר הכל","Open link":"פתח קישור","Edit link":"ערוך קישור","No follow":"ללא מעקב",Unlink:"בטל קישור",Eye:"הצג",pencil:"כדי לערוך"," URL":"כתובת",Reset:"אפס",Save:"שמור","Save as ...":"שמור בשם...",Resize:"שנה גודל",Crop:"חתוך",Width:"רוחב",Height:"גובה","Keep Aspect Ratio":"שמור יחס",Yes:"כן",No:"לא",Remove:"הסר",Select:"בחר","You can only edit your own images. Download this image on the host?":"רק קבצים המשוייכים שלך ניתנים לעריכה. האם להוריד את הקובץ?","The image has been successfully uploaded to the host!":"התמונה עלתה בהצלחה!",palette:"לוח","There are no files":"אין קבצים בספריה זו.",Rename:"הונגרית","Enter new name":"הזן שם חדש",preview:"תצוגה מקדימה",download:"הורד","Paste from clipboard":"להדביק מהלוח","Your browser doesn't support direct access to the clipboard.":"הדפדפן שלך לא תומך גישה ישירה ללוח.","Copy selection":"העתק בחירה",copy:"העתק","Border radius":"רדיוס הגבול","Show all":"הצג את כל",Apply:"החל","Please fill out this field":"נא למלא שדה זה","Please enter a web address":"אנא הזן כתובת אינטרנט",Default:"ברירת המחדל",Circle:"מעגל",Dot:"נקודה",Quadrate:"הריבוע הזה",Find:"למצוא","Find Previous":"מצא את הקודם","Find Next":"חפש את הבא","Insert className":"הכנס את שם הכיתה","Line height":"גובה שורה",Spellchecking:"בדיקת איות"}},e=>{e.exports={"Type something":"Írjon be valamit",Advanced:"Haladó","About Jodit":"Joditról","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Ingyenes változat","Jodit User's Guide":"Jodit útmutató","contains detailed help for using":"további segítséget tartalmaz","For information about the license, please go to our website:":"További licence információkért látogassa meg a weboldalunkat:","Buy full version":"Teljes verzió megvásárlása","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Minden jog fenntartva.",Anchor:"Horgony","Open in new tab":"Megnyitás új lapon","Open editor in fullsize":"Megnyitás teljes méretben","Clear Formatting":"Formázás törlése","Fill color or set the text color":"Háttér/szöveg szín",Redo:"Újra",Undo:"Visszavon",Bold:"Félkövér",Italic:"Dőlt","Insert Unordered List":"Pontozott lista","Insert Ordered List":"Számozott lista","Align Center":"Középre zárt","Align Justify":"Sorkizárt","Align Left":"Balra zárt","Align Right":"Jobbra zárt","Insert Horizontal Line":"Vízszintes vonal beszúrása","Insert Image":"Kép beszúrás","Insert file":"Fájl beszúrás","Insert youtube/vimeo video":"Youtube videó beszúrása","Insert link":"Link beszúrás","Font size":"Betűméret","Font family":"Betűtípus","Insert format block":"Formázott blokk beszúrása",Normal:"Normál","Heading 1":"Fejléc 1","Heading 2":"Fejléc 2","Heading 3":"Fejléc 3","Heading 4":"Fejléc 4",Quote:"Idézet",Code:"Kód",Insert:"Beszúr","Insert table":"Táblázat beszúrása","Decrease Indent":"Behúzás csökkentése","Increase Indent":"Behúzás növelése","Select Special Character":"Speciális karakter kiválasztása","Insert Special Character":"Speciális karakter beszúrása","Paint format":"Kép formázása","Change mode":"Nézet váltása",Print:"Nyomtatás",Margins:"Szegélyek",top:"felső",right:"jobb",bottom:"alsó",left:"bal",Styles:"CSS stílusok",Classes:"CSS osztályok",Align:"Igazítás",Right:"Jobbra",Center:"Középre",Left:"Balra","--Not Set--":"Nincs",Src:"Forrás",Title:"Cím",Alternative:"Helyettesítő szöveg",Link:"Link","Open link in new tab":"Link megnyitása új lapon",Image:"Kép",file:"Fájl",Advansed:"További beállítás","Image properties":"Kép tulajdonságai",Cancel:"Mégsem",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"A beillesztett szöveg HTML-nek tűnik. Megtartsuk HTML-ként?","Paste as HTML":"Beszúrás HTML-ként",Keep:"Megtartás",Clean:"Elvetés","Insert as Text":"Beszúrás szövegként","Word Paste Detected":"Word-ből másolt szöveg","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"A beillesztett tartalom Microsoft Word/Excel dokumentumból származik. Meg szeretné tartani a formátumát?","Insert only Text":"Csak szöveg beillesztése","File Browser":"Fájl tallózó","Error on load list":"Hiba a lista betöltése közben","Error on load folders":"Hiba a mappák betöltése közben","Are you sure?":"Biztosan ezt szeretné?","Enter Directory name":"Írjon be egy mappanevet","Create directory":"Mappa létrehozása","type name":"írjon be bevet","Drop image":"Húzza ide a képet","Drop file":"Húzza ide a fájlt","or click":"vagy kattintson","Alternative text":"Helyettesítő szöveg",Browse:"Tallóz",Upload:"Feltölt",Background:"Háttér",Text:"Szöveg",Top:"Fent",Middle:"Középen",Bottom:"Lent","Insert column before":"Oszlop beszúrás elé","Insert column after":"Oszlop beszúrás utána","Insert row above":"Sor beszúrás fölé","Insert row below":"Sor beszúrás alá","Delete table":"Táblázat törlése","Delete row":"Sor törlése","Delete column":"Oszlop törlése","Empty cell":"Cella tartalmának törlése",Delete:"Törlés","Strike through":"Áthúzott",Underline:"Aláhúzott",Break:"Szünet","Search for":"Keresés","Replace with":"Csere erre",Replace:"Cserélje ki",Edit:"Szerkeszt","Vertical align":"Függőleges igazítás","Horizontal align":"Vízszintes igazítás",Filter:"Szűrő","Sort by changed":"Rendezés módosítás szerint","Sort by name":"Rendezés név szerint","Sort by size":"Rendezés méret szerint","Add folder":"Mappa hozzáadás","Split vertical":"Függőleges felosztás","Split horizontal":"Vízszintes felosztás",Merge:"Összevonás","Add column":"Oszlop hozzáadás","Add row":"Sor hozzáadás",Border:"Szegély","Embed code":"Beágyazott kód",Update:"Frissít",superscript:"Felső index",subscript:"Alsó index","Cut selection":"Kivágás",Paste:"Beillesztés","Choose Content to Paste":"Válasszon tartalmat a beillesztéshez",Split:"Felosztás","Chars: %d":"Karakterek száma: %d","Words: %d":"Szavak száma: %d",All:"Összes","Select %s":"Kijelöl: %s","Select all":"Összes kijelölése",source:"HTML",bold:"Félkövér",italic:"Dőlt",brush:"Ecset",link:"Link",undo:"Visszavon",redo:"Újra",table:"Táblázat",image:"Kép",eraser:"Törlés",paragraph:"Paragráfus",fontsize:"Betűméret",video:"Videó",font:"Betű",about:"Rólunk",print:"Nyomtat",symbol:"Szimbólum",underline:"Aláhúzott",strikethrough:"Áthúzott",indent:"Behúzás",outdent:"Aussenseiter",fullsize:"Teljes méret",shrink:"Összenyom",copyformat:"Formátum másolás",hr:"Egyenes vonal",ul:"Lista",ol:"Számozott lista",cut:"Kivág",selectall:"Összes kijelölése","Open link":"Link megnyitása","Edit link":"Link szerkesztése","No follow":"Nincs követés",Unlink:"Link leválasztása",Eye:"felülvizsgálat",pencil:"Szerkesztés"," URL":"URL",Reset:"Visszaállít",Save:"Mentés","Save as ...":"Mentés másként...",Resize:"Átméretezés",Crop:"Kivág",Width:"Szélesség",Height:"Magasság","Keep Aspect Ratio":"Képarány megtartása",Yes:"Igen",No:"Nem",Remove:"Eltávolít",Select:"Kijelöl","You can only edit your own images. Download this image on the host?":"Csak a saját képeit tudja szerkeszteni. Letölti ezt a képet?","The image has been successfully uploaded to the host!":"Kép sikeresen feltöltve!",palette:"Palette","There are no files":"Er zijn geen bestanden in deze map.",Rename:"átnevezés","Enter new name":"Adja meg az új nevet",preview:"előnézet",download:"Letöltés","Paste from clipboard":"Illessze be a vágólap","Your browser doesn't support direct access to the clipboard.":"A böngésző nem támogatja a közvetlen hozzáférést biztosít a vágólapra.","Copy selection":"Másolás kiválasztása",copy:"másolás","Border radius":"Határ sugár","Show all":"Összes",Apply:"Alkalmazni","Please fill out this field":"Kérjük, töltse ki ezt a mezőt,","Please enter a web address":"Kérjük, írja be a webcímet",Default:"Alapértelmezett",Circle:"Kör",Dot:"Pont",Quadrate:"Quadrate",Find:"Találni","Find Previous":"Megtalálja Előző","Find Next":"Következő Keresése","Insert className":"Helyezze be az osztály nevét","Line height":"Vonal magassága",Spellchecking:"Helyesírás-ellenőrzés"}},e=>{e.exports={"Type something":"Ketik sesuatu","About Jodit":"Tentang Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Versi Bebas Non-komersil","Jodit User's Guide":"Panduan Pengguna Jodit","contains detailed help for using":"mencakup detail bantuan penggunaan","For information about the license, please go to our website:":"Untuk informasi tentang lisensi, silakan kunjungi website:","Buy full version":"Beli versi lengkap","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Hak Cipta © XDSoft.net - Chupurnov Valeriy. Hak cipta dilindungi undang-undang.",Anchor:"Tautan","Open in new tab":"Buka di tab baru","Open editor in fullsize":"Buka editor dalam ukuran penuh","Clear Formatting":"Hapus Pemformatan","Fill color or set the text color":"Isi warna atau atur warna teks",Redo:"Ulangi",Undo:"Batalkan",Bold:"Tebal",Italic:"Miring","Insert Unordered List":"Sisipkan Daftar Tidak Berurut","Insert Ordered List":"Sisipkan Daftar Berurut","Align Center":"Tengah","Align Justify":"Penuh","Align Left":"Kiri","Align Right":"Kanan","Insert Horizontal Line":"Sisipkan Garis Horizontal","Insert Image":"Sisipkan Gambar","Insert file":"Sisipkan Berkas","Insert youtube/vimeo video":"Sisipkan video youtube/vimeo","Insert link":"Sisipkan tautan","Font size":"Ukuran font","Font family":"Keluarga font","Insert format block":"Sisipkan blok format",Normal:"Normal","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4",Quote:"Kutip",Code:"Kode",Insert:"Sisipkan","Insert table":"Sisipkan tabel","Decrease Indent":"Kurangi Indentasi","Increase Indent":"Tambah Indentasi","Select Special Character":"Pilih Karakter Spesial","Insert Special Character":"Sisipkan Karakter Spesial","Paint format":"Formar warna","Change mode":"Ubah mode",Margins:"Batas",top:"atas",right:"kanan",bottom:"bawah",left:"kiri",Styles:"Gaya",Classes:"Class",Align:"Rata",Right:"Kanan",Center:"Tengah",Left:"Kiri","--Not Set--":"--Tidak diset--",Src:"Src",Title:"Judul",Alternative:"Teks alternatif",Link:"Tautan","Open link in new tab":"Buka tautan di tab baru",Image:"Gambar",file:"berkas",Advanced:"Lanjutan","Image properties":"Properti gambar",Cancel:"Batal",Ok:"Ya","Your code is similar to HTML. Keep as HTML?":"Kode Anda cenderung ke HTML. Biarkan sebagai HTML?","Paste as HTML":"Paste sebagai HTML",Keep:"Jaga",Clean:"Bersih","Insert as Text":"Sisipkan sebagai teks","Insert only Text":"Sisipkan hanya teks","Word Paste Detected":"Terdeteksi paste dari Word","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Konten dipaste dari dokumen Microsoft Word/Excel. Apakah Anda ingin tetap menjaga format atau membersihkannya?","File Browser":"Penjelajah Berkas","Error on load list":"Error ketika memuat list","Error on load folders":"Error ketika memuat folder","Are you sure?":"Apakah Anda yakin?","Enter Directory name":"Masukkan nama Direktori","Create directory":"Buat direktori","type name":"ketik nama","Drop image":"Letakkan gambar","Drop file":"Letakkan berkas","or click":"atau klik","Alternative text":"Teks alternatif",Browse:"Jelajahi",Upload:"Unggah",Background:"Latar Belakang",Text:"Teks",Top:"Atas",Middle:"Tengah",Bottom:"Bawah","Insert column before":"Sisipkan kolom sebelumnya","Insert column after":"Sisipkan kolom setelahnya","Insert row above":"Sisipkan baris di atasnya","Insert row below":"Sisipkan baris di bawahnya","Delete table":"Hapus tabel","Delete row":"Hapus baris","Delete column":"Hapus kolom","Empty cell":"Kosongkan cell",source:"sumber",bold:"tebal",italic:"miring",brush:"sikat",link:"tautan",undo:"batalkan",redo:"ulangi",table:"tabel",image:"gambar",eraser:"penghapus",paragraph:"paragraf",fontsize:"ukuran font",video:"video",font:"font",about:"tentang",print:"cetak",symbol:"simbol",underline:"garis bawah",strikethrough:"coret",indent:"menjorok ke dalam",outdent:"menjorok ke luar",fullsize:"ukuran penuh",shrink:"menyusut",copyformat:"salin format",hr:"hr",ul:"ul",ol:"ol",cut:"potong",selectall:"Pilih semua","Embed code":"Kode embed","Open link":"Buka tautan","Edit link":"Edit tautan","No follow":"No follow",Unlink:"Hapus tautan",Eye:"Mata",pencil:"pensil",Update:"Perbarui"," URL":"URL",Edit:"Edit","Horizontal align":"Perataan horizontal",Filter:"Filter","Sort by changed":"Urutkan berdasarkan perubahan","Sort by name":"Urutkan berdasarkan nama","Sort by size":"Urutkan berdasarkan ukuran","Add folder":"Tambah folder",Reset:"Reset",Save:"Simpan","Save as ...":"Simpan sebagai...",Resize:"Ubah ukuran",Crop:"Crop",Width:"Lebar",Height:"Tinggi","Keep Aspect Ratio":"Jaga aspek rasio",Yes:"Ya",No:"Tidak",Remove:"Copot",Select:"Pilih","Chars: %d":"Karakter: %d","Words: %d":"Kata: %d",All:"Semua","Select %s":"Pilih %s","Select all":"Pilih semua","Vertical align":"Rata vertikal",Split:"Bagi","Split vertical":"Bagi secara vertikal","Split horizontal":"Bagi secara horizontal",Merge:"Gabungkan","Add column":"Tambah kolom","Add row":"tambah baris",Delete:"Hapus",Border:"Bingkai","License: %s":"Lisensi: %s","Strike through":"Coret",Underline:"Garis Bawah",superscript:"Superskrip",subscript:"Subskrip","Cut selection":"Potong pilihan",Break:"Berhenti","Search for":"Mencari","Replace with":"Ganti dengan",Replace:"Mengganti",Paste:"Paste","Choose Content to Paste":"Pilih konten untuk dipaste","You can only edit your own images. Download this image on the host?":"Anda hanya dapat mengedit gambar Anda sendiri. Unduh gambar ini di host?","The image has been successfully uploaded to the host!":"Gambar telah sukses diunggah ke host!",palette:"palet","There are no files":"Tidak ada berkas",Rename:"ganti nama","Enter new name":"Masukkan nama baru",preview:"pratinjau",download:"Unduh","Paste from clipboard":"Paste dari clipboard","Your browser doesn't support direct access to the clipboard.":"Browser anda tidak mendukung akses langsung ke clipboard.","Copy selection":"Copy seleksi",copy:"copy","Border radius":"Border radius","Show all":"Tampilkan semua",Apply:"Menerapkan","Please fill out this field":"Silahkan mengisi kolom ini","Please enter a web address":"Silahkan masukkan alamat web",Default:"Default",Circle:"Lingkaran",Dot:"Dot",Quadrate:"Kuadrat",Find:"Menemukan","Find Previous":"Menemukan Sebelumnya","Find Next":"Menemukan Berikutnya","Insert className":"Masukkan nama kelas","Line height":"Tinggi baris",Spellchecking:"Spellchecking"}},e=>{e.exports={"Type something":"Scrivi qualcosa...",Advanced:"Avanzato","About Jodit":"A proposito di Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Guida utente di Jodit","contains detailed help for using":"contiene una guida dettagliata per l'uso.","For information about the license, please go to our website:":"Per informazioni sulla licenza, si prega di visitare il nostro sito:","Buy full version":"Acquista la versione completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.",Anchor:"Ancora","Open in new tab":"Apri in una nuova scheda","Open editor in fullsize":"Apri l'editor a schermo intero","Clear Formatting":"Formato chiaro","Fill color or set the text color":"Riempi colore o lettera",Redo:"Ripristina",Undo:"Annulla",Bold:"Grassetto",Italic:"Corsivo","Insert Unordered List":"Inserisci lista non ordinata","Insert Ordered List":"Inserisci l'elenco ordinato","Align Center":"Allinea Centra","Align Justify":"Allineare Giustificato","Align Left":"Allinea a Sinistra","Align Right":"Allinea a Destra","Insert Horizontal Line":"Inserisci la linea orizzontale","Insert Image":"Inserisci immagine","Insert file":"Inserisci un file","Insert youtube/vimeo video":"Inserisci video Youtube/Vimeo","Insert link":"Inserisci il link","Font size":"Dimensione del carattere","Font family":"Tipo di font","Insert format block":"Inserisci blocco",Normal:"Normale","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4",Quote:"Citazione",Code:"Codice",Insert:"Inserisci","Insert table":"Inserisci tabella","Decrease Indent":"Riduci il rientro","Increase Indent":"Aumenta il rientro","Select Special Character":"Seleziona una funzione speciale","Insert Special Character":"Inserisci un carattere speciale","Paint format":"Copia formato","Change mode":"Cambia modo",Margins:"Margini",top:"su",right:"destra",bottom:"giù",left:"sinistra",Styles:"Stili CSS",Classes:"Classi CSS",Align:"Allinea",Right:"Destra",Center:"Centro",Left:"Sinistra","--Not Set--":"--Non Impostato--",Src:"Fonte",Title:"Titolo",Alternative:"Testo Alternativo",Link:"Link","Open link in new tab":"Apri il link in una nuova scheda",Image:"Immagine",file:"Archivio",Advansed:"Avanzato","Image properties":"Proprietà dell'immagine",Cancel:"Annulla",Ok:"Accetta","Your code is similar to HTML. Keep as HTML?":"Il codice è simile all'HTML. Mantieni come HTML?","Paste as HTML":"Incolla come HTML?",Keep:"Mantieni",Clean:"Pulisci","Insert as Text":"Inserisci come testo","Word Paste Detected":"Incollato da Word rilevato","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Il contenuto incollato proviene da un documento Microsoft Word / Excel. Vuoi mantenere il formato o pulirlo?","Insert only Text":"Inserisci solo il testo","File Browser":"Cerca il file","Error on load list":"Errore durante il caricamento dell'elenco","Error on load folders":"Errore durante il caricamento delle cartelle","Are you sure?":"Sei sicuro?","Enter Directory name":"Inserisci il nome della cartella","Create directory":"Crea cartella","type name":"Entre el nombre","Drop image":"Rilascia l'immagine","Drop file":"Rilascia file","or click":"o click","Alternative text":"Testo alternativo",Browse:"Sfoglia",Upload:"Carica",Background:"Sfondo",Text:"Testo",Top:"Su",Middle:"Centro",Bottom:"Sotto","Insert column before":"Inserisci prima la colonna","Insert column after":"Inserisci colonna dopo","Insert row above":"Inserisci la riga sopra","Insert row below":"Inserisci la riga sotto","Delete table":"Elimina tabella","Delete row":"Elimina riga","Delete column":"Elimina colonna","Empty cell":"Cella vuota",Delete:"Cancella","Strike through":"Barrato",Underline:"Sottolineato",Break:"Pausa","Search for":"Cerca","Replace with":"Sostituisci con",Replace:"Sostituire",Edit:"Modifica","Vertical align":"Allineamento verticala","Horizontal align":"Allineamento orizzontale",Filter:"Filtro","Sort by changed":"Ordina per data di modifica","Sort by name":"Ordina per nome","Sort by size":"Ordina per dimensione","Add folder":"Aggiungi cartella",Split:"Dividere","Split vertical":"Dividere verticalmente","Split horizontal":"Diviso orizzontale",Merge:"Fondi","Add column":"Aggiungi colonna","Add row":"Aggiungi riga",Border:"Bordo","Embed code":"Includi codice",Update:"Aggiornare",superscript:"indice",subscript:"deponente","Cut selection":"Taglia la selezione",Paste:"Incolla","Choose Content to Paste":"Seleziona il contenuto da incollare","Chars: %d":"Caratteri: %d","Words: %d":"Parole: %d",All:"Tutto","Select %s":"Seleziona: %s","Select all":"Seleziona tutto",source:"HTML",bold:"Grassetto",italic:"Corsivo",brush:"Pennello",link:"Link",undo:"Annulla",redo:"Ripristina",table:"Tabella",image:"Immagine",eraser:"Gomma",paragraph:"Paragrafo",fontsize:"Dimensione del carattere",video:"Video",font:"Font",about:"Approposito di",print:"Stampa",symbol:"Simbolo",underline:"Sottolineato",strikethrough:"Barrato",indent:"trattino",outdent:"annulla rientro",fullsize:"A grandezza normale",shrink:"comprimere",copyformat:"Copia il formato",hr:"linea orizzontale",ul:"lista non ordinata",ol:"lista ordinata",cut:"Taglia",selectall:"Seleziona tutto","Open link":"Apri link","Edit link":"Modifica link","No follow":"Non seguire",Unlink:"Togli link",Eye:"Recensione",pencil:"Per modificare"," URL":" URL",Reset:"Reset",Save:"Salva","Save as ...":"Salva con nome...",Resize:"Ridimensiona",Crop:"Tagliare",Width:"Larghezza",Height:"Altezza","Keep Aspect Ratio":"Mantenere le proporzioni",Yes:"Si",No:"No",Remove:"Rimuovere",Select:"Seleziona","You can only edit your own images. Download this image on the host?":"Puoi modificare solo le tue immagini. Scarica questa immagine sul server?","The image has been successfully uploaded to the host!":"L'immagine è stata caricata con successo sul server!",palette:"tavolozza","There are no files":"Non ci sono file in questa directory.",Rename:"ungherese","Enter new name":"Inserisci un nuovo nome",preview:"anteprima",download:"Scaricare","Paste from clipboard":"Incolla dagli appunti","Your browser doesn't support direct access to the clipboard.":"Il tuo browser non supporta l'accesso diretto agli appunti.","Copy selection":"Selezione di copia",copy:"copia","Border radius":"Border radius","Show all":"Mostra tutti",Apply:"Applicare","Please fill out this field":"Si prega di compilare questo campo","Please enter a web address":"Si prega di inserire un indirizzo web",Default:"Di Default",Circle:"Cerchio",Dot:"Dot",Quadrate:"Quadrate",Find:"Trovare","Find Previous":"Trova Precedente","Find Next":"Trova Successivo","Insert className":"Inserisci il nome della classe","Line height":"Altezza linea",Spellchecking:"Controllo ortografico"}},e=>{e.exports={"Type something":"なにかタイプしてください",Advanced:"高度な設定","About Jodit":"Joditについて","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit ユーザーズ・ガイド","contains detailed help for using":"詳しい使い方","For information about the license, please go to our website:":"ライセンス詳細についてはJodit Webサイトを確認ください:","Buy full version":"フルバージョンを購入","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"Anchor","Open in new tab":"新しいタブで開く","Open editor in fullsize":"エディターのサイズ(フル/ノーマル)","Clear Formatting":"書式をクリア","Fill color or set the text color":"テキストの色",Redo:"やり直し",Undo:"元に戻す",Bold:"太字",Italic:"斜体","Insert Unordered List":"箇条書き","Insert Ordered List":"番号付きリスト","Align Center":"中央揃え","Align Justify":"両端揃え","Align Left":"左揃え","Align Right":"右揃え","Insert Horizontal Line":"区切り線を挿入","Insert Image":"画像を挿入","Insert file":"ファイルを挿入","Insert youtube/vimeo video":"Youtube/Vimeo 動画","Insert link":"リンクを挿入","Font size":"フォントサイズ","Font family":"フォント","Insert format block":"テキストのスタイル",Normal:"指定なし","Heading 1":"タイトル1","Heading 2":"タイトル2","Heading 3":"タイトル3","Heading 4":"タイトル4",Quote:"引用",Code:"コード",Insert:"挿入","Insert table":"表を挿入","Decrease Indent":"インデント減","Increase Indent":"インデント増","Select Special Character":"特殊文字を選択","Insert Special Character":"特殊文字を挿入","Paint format":"書式を貼付け","Change mode":"編集モード切替え",Margins:"マージン",top:"上",right:"右",bottom:"下",left:"左",Styles:"スタイル",Classes:"クラス",Align:"配置",Right:"右寄せ",Center:"中央寄せ",Left:"左寄せ","--Not Set--":"指定なし",Src:"ソース",Title:"タイトル",Alternative:"代替テキスト",Link:"リンク","Open link in new tab":"新しいタブで開く",Image:"画像",file:"ファイル",Advansed:"Advansed","Image properties":"画像のプロパティー",Cancel:"キャンセル",Ok:"確定","Your code is similar to HTML. Keep as HTML?":"HTMLコードを保持しますか?","Paste as HTML":"HTMLで貼付け",Keep:"HTMLを保持",Clean:"Clean","Insert as Text":"HTMLをテキストにする","Word Paste Detected":"Word Paste Detected","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Insert only Text":"テキストだけ","File Browser":"File Browser","Error on load list":"Error on load list","Error on load folders":"Error on load folders","Are you sure?":"Are you sure?","Enter Directory name":"Enter Directory name","Create directory":"Create directory","type name":"type name","Drop image":"ここに画像をドロップ","Drop file":"ここにファイルをドロップ","or click":"or クリック","Alternative text":"代替テキスト",Browse:"ブラウズ",Upload:"アップロード",Background:"背景",Text:"文字",Top:"上",Middle:"中央",Bottom:"下","Insert column before":"左に列を挿入","Insert column after":"右に列を挿入","Insert row above":"上に行を挿入","Insert row below":"下に行を挿入","Delete table":"表を削除","Delete row":"行を削除","Delete column":"列を削除","Empty cell":"セルを空にする","Chars: %d":"文字数: %d","Words: %d":"単語数: %d","Strike through":"取り消し線",Underline:"下線",superscript:"上付き文字",subscript:"下付き文字","Cut selection":"切り取り","Select all":"すべて選択",Break:"Pause","Search for":"検索","Replace with":"置換",Replace:"交換",Paste:"貼付け","Choose Content to Paste":"選択した内容を貼付け",All:"全部",source:"source",bold:"bold",italic:"italic",brush:"brush",link:"link",undo:"undo",redo:"redo",table:"table",image:"image",eraser:"eraser",paragraph:"paragraph",fontsize:"fontsize",video:"video",font:"font",about:"about",print:"print",symbol:"symbol",underline:"underline",strikethrough:"strikethrough",indent:"indent",outdent:"outdent",fullsize:"fullsize",shrink:"shrink",copyformat:"copyformat",hr:"分割線",ul:"箇条書き",ol:"番号付きリスト",cut:"切り取り",selectall:"すべて選択","Open link":"リンクを開く","Edit link":"リンクを編集","No follow":"No follow",Unlink:"リンク解除",Eye:"サイトを確認"," URL":"URL",Reset:"リセット",Save:"保存","Save as ...":"Save as ...",Resize:"リサイズ",Crop:"Crop",Width:"幅",Height:"高さ","Keep Aspect Ratio":"縦横比を保持",Yes:"はい",No:"いいえ",Remove:"移除",Select:"選択","Select %s":"選択: %s",Update:"更新","Vertical align":"垂直方向の配置",Merge:"セルの結合","Add column":"列を追加","Add row":"行を追加",Border:"境界線","Embed code":"埋め込みコード",Delete:"削除",Edit:"編集","Horizontal align":"水平方向の配置",Filter:"Filter","Sort by changed":"Sort by changed","Sort by name":"Sort by name","Sort by size":"Sort by size","Add folder":"Add folder",Split:"分割","Split vertical":"セルの分割(垂直方向)","Split horizontal":"セルの分割(水平方向)","You can only edit your own images. Download this image on the host?":"You can only edit your own images. Download this image on the host?","The image has been successfully uploaded to the host!":"The image has been successfully uploaded to the host!",palette:"パレット",pencil:"鉛筆","There are no files":"There are no files",Rename:"Rename","Enter new name":"Enter new name",preview:"プレビュー",download:"ダウンロード","Paste from clipboard":"貼り付け","Your browser doesn't support direct access to the clipboard.":"お使いのブラウザはクリップボードを使用できません","Copy selection":"コピー",copy:"copy","Border radius":"角の丸み","Show all":"全て表示",Apply:"適用","Please fill out this field":"まだこの分野","Please enter a web address":"を入力してくださいウェブアドレス",Default:"デフォルト",Circle:"白丸",Dot:"黒丸",Quadrate:"四角",Find:"見","Find Previous":"探前","Find Next":"由来","Lower Alpha":"英小文字","Lower Greek":"ギリシャ文字","Lower Roman":"ローマ数字小文字","Upper Alpha":"英大文字","Upper Roman":"ローマ数字大文字","Insert className":"クラス名を挿入","Line height":"ラインの高さ",Spellchecking:"スペルチェック"}},e=>{e.exports={"Type something":"무엇이든 입력하세요","About Jodit":"Jodit에 대하여","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit 사용자 안내서","contains detailed help for using":"자세한 도움말이 들어있어요","For information about the license, please go to our website:":"라이센스에 관해서는 Jodit 웹 사이트를 방문해주세요:","Buy full version":"풀 버전 구입하기","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"© XDSoft.net - Chupurnov Valeriy. 에게 저작권과 모든 권리가 있습니다.",Anchor:"Anchor","Open in new tab":"새 탭에서 열기","Open editor in fullsize":"전체 크기로 보기","Clear Formatting":"서식 지우기","Fill color or set the text color":"글씨 색상",Redo:"재실행",Undo:"실행 취소",Bold:"굵게",Italic:"기울임","Insert Unordered List":"글머리 목록","Insert Ordered List":"번호 목록","Align Center":"가운데 정렬","Align Justify":"양쪽 정렬","Align Left":"왼쪽 정렬","Align Right":"오른쪽 정렬","Insert Horizontal Line":"수평 구분선 넣기","Insert Image":"이미지 넣기","Insert file":"파일 넣기","Insert youtube/vimeo video":"Youtube/Vimeo 동영상","Insert link":"링크 넣기","Font size":"글꼴 크기","Font family":"글꼴","Insert format block":"블록 요소 넣기",Normal:"일반 텍스트","Heading 1":"제목 1","Heading 2":"제목 2","Heading 3":"제목 3","Heading 4":"제목 4",Quote:"인용",Code:"코드",Insert:"붙여 넣기","Insert table":"테이블","Decrease Indent":"들여쓰기 감소","Increase Indent":"들여쓰기 증가","Select Special Character":"특수문자 선택","Insert Special Character":"특수문자 입력","Paint format":"페인트 형식","Change mode":"편집모드 변경",Margins:"마진",top:"위",right:"오른쪽",bottom:"아래",left:"왼쪽",Styles:"스타일",Classes:"클래스",Align:"정렬",Right:"오른쪽으로",Center:"가운데로",Left:"왼쪽으로","--Not Set--":"--지정 안 함--",Src:"경로(src)",Title:"제목",Alternative:"대체 텍스트(alt)",Link:"링크","Open link in new tab":"새 탭에서 열기",file:"파일",Advanced:"고급","Image properties":"이미지 속성",Cancel:"취소",Ok:"확인","Your code is similar to HTML. Keep as HTML?":"HTML 코드로 감지했어요. 코드인채로 붙여넣을까요?","Paste as HTML":"HTML로 붙여넣기",Keep:"원본 유지",Clean:"지우기","Insert as Text":"텍스트로 넣기","Insert only Text":"텍스트만 넣기","Word Paste Detected":"Word 붙여넣기 감지","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Microsoft Word/Excel 문서로 감지했어요. 서식을 유지한채로 붙여넣을까요?","File Browser":"파일 탐색기","Error on load list":"목록 불러오기 에러","Error on load folders":"폴더 불러오기","Are you sure?":"정말 진행할까요?","Enter Directory name":"디렉토리 이름 입력","Create directory":"디렉토리 생성","type name":"이름 입력","Drop image":"이미지 드래그","Drop file":"파일 드래그","or click":"혹은 클릭","Alternative text":"대체 텍스트",Browse:"탐색",Upload:"업로드",Background:"배경",Text:"텍스트",Top:"위",Middle:"중앙",Bottom:"아래","Insert column before":"이전 열에 삽입","Insert column after":"다음 열에 삽입","Insert row above":"위 행에 삽입","Insert row below":"아래 행에 삽입","Delete table":"테이블 삭제","Delete row":"행 삭제","Delete column":"열 삭제","Empty cell":"빈 셀",source:"HTML 소스",bold:"볼드",italic:"이탤릭",brush:"브러시",link:"링크",undo:"실행 취소",redo:"재실행",table:"테이블",image:"이미지",eraser:"지우개",paragraph:"문단",fontsize:"글꼴 크기",video:"비디오",font:"글꼴",about:"편집기 정보",print:"프린트",symbol:"기호",underline:"밑줄",strikethrough:"취소선",indent:"들여쓰기",outdent:"내어쓰기",fullsize:"전체 화면",shrink:"일반 화면",copyformat:"복사 형식",hr:"구분선",ul:"글머리 목록",ol:"번호 목록",cut:"잘라내기",selectall:"모두 선택","Embed code":"Embed 코드","Open link":"링크 열기","Edit link":"링크 편집","No follow":"No follow",Unlink:"링크 제거",Eye:"사이트 확인",pencil:"연필",Update:"갱신"," URL":"URL",Edit:"편집","Horizontal align":"수평 정렬",Filter:"필터","Sort by changed":"변경일 정렬","Sort by name":"이름 정렬","Sort by size":"크기 정렬","Add folder":"새 폴더",Reset:"초기화",Save:"저장","Save as ...":"새로 저장하기 ...",Resize:"리사이즈",Crop:"크롭",Width:"가로 길이",Height:"세로 높이","Keep Aspect Ratio":"비율 유지하기",Yes:"네",No:"아니오",Remove:"제거",Select:"선택","Chars: %d":"문자수: %d","Words: %d":"단어수: %d",All:"모두","Select all":"모두 선택","Select %s":"선택: %s","Vertical align":"수직 정렬",Split:"분할","Split vertical":"세로 셀 분할","Split horizontal":"가로 셀 분할",Merge:"셀 병합","Add column":"열 추가","Add row":"행 추가",Delete:"삭제",Border:"외곽선","License: %s":"라이센스: %s","Strike through":"취소선",Underline:"밑줄",superscript:"윗첨자",subscript:"아래첨자","Cut selection":"선택 잘라내기",Break:"구분자","Search for":"검색","Replace with":"대체하기",Replace:"대체",Paste:"붙여넣기","Choose Content to Paste":"붙여넣을 내용 선택","You can only edit your own images. Download this image on the host?":"외부 이미지는 편집할 수 없어요. 외부 이미지를 다운로드 할까요?","The image has been successfully uploaded to the host!":"이미지를 무사히 업로드 했어요!",palette:"팔레트","There are no files":"파일이 없어요",Rename:"이름 변경","Enter new name":"새 이름 입력",preview:"미리보기",download:"다운로드","Paste from clipboard":"클립보드 붙여넣기","Your browser doesn't support direct access to the clipboard.":"사용중인 브라우저가 클립보드 접근을 지원하지 않아요.","Copy selection":"선택 복사",copy:"복사","Border radius":"둥근 테두리","Show all":"모두 보기",Apply:"적용","Please fill out this field":"이 항목을 입력해주세요!","Please enter a web address":"웹 URL을 입력해주세요.",Default:"기본",Circle:"원",Dot:"점",Quadrate:"정사각형",Find:"찾기","Find Previous":"이전 찾기","Find Next":"다음 찾기","Insert className":"className 입력","Line height":"선 높이",Spellchecking:"맞춤법 검사"}},e=>{e.exports={"Type something":"Begin met typen..",Advanced:"Geavanceerd","About Jodit":"Over Jodit","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Gratis niet-commerciële versie","Jodit User's Guide":"Jodit gebruikershandleiding","contains detailed help for using":"bevat gedetailleerde informatie voor gebruik.","For information about the license, please go to our website:":"Voor informatie over de licentie, ga naar onze website:","Buy full version":"Volledige versie kopen","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle rechten voorbehouden.",Anchor:"Anker","Open in new tab":"Open in nieuwe tab","Open editor in fullsize":"Editor in volledig scherm openen","Clear Formatting":"Opmaak verwijderen","Fill color or set the text color":"Vulkleur of tekstkleur aanpassen",Redo:"Opnieuw",Undo:"Ongedaan maken",Bold:"Vet",Italic:"Cursief","Insert Unordered List":"Geordende list invoegen","Insert Ordered List":"Ongeordende lijst invoegen","Align Center":"Centreren","Align Justify":"Uitlijnen op volledige breedte","Align Left":"Links uitlijnen","Align Right":"Rechts uitlijnen","Insert Horizontal Line":"Horizontale lijn invoegen","Insert Image":"Afbeelding invoegen","Insert file":"Bestand invoegen","Insert youtube/vimeo video":"Youtube/Vimeo video invoegen","Insert link":"Link toevoegen","Font size":"Tekstgrootte","Font family":"Lettertype","Insert format block":"Format blok invoegen",Normal:"Normaal","Heading 1":"Koptekst 1","Heading 2":"Koptekst 2","Heading 3":"Koptekst 3","Heading 4":"Koptekst 4",Quote:"Citaat",Code:"Code",Insert:"Invoegen","Insert table":"Tabel invoegen","Decrease Indent":"Inspringing verkleinen","Increase Indent":"Inspringing vergroten","Select Special Character":"Symbool selecteren","Insert Special Character":"Symbool invoegen","Paint format":"Opmaak kopieren","Change mode":"Modus veranderen",Margins:"Marges",top:"Boven",right:"Rechts",bottom:"Onder",left:"Links",Styles:"CSS styles",Classes:"CSS classes",Align:"Uitlijning",Right:"Rechts",Center:"Gecentreerd",Left:"Links","--Not Set--":"--Leeg--",Src:"Src",Title:"Titel",Alternative:"Alternatieve tekst",Link:"Link","Open link in new tab":"Link in nieuwe tab openen",Image:"Afbeelding",file:"Bestand",Advansed:"Geavanceerd","Image properties":"Afbeeldingseigenschappen",Cancel:"Annuleren",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Deze code lijkt op HTML. Als HTML behouden?","Paste as HTML":"Invoegen als HTML",Keep:"Origineel behouden",Clean:"Opschonen","Insert as Text":"Als tekst invoegen","Word Paste Detected":"Word-tekst gedetecteerd","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"De geplakte tekst is afkomstig van een Microsoft Word/Excel document. Wil je de opmaak behouden of opschonen?","Insert only Text":"Als onopgemaakte tekst invoegen","File Browser":"Bestandsbrowser","Error on load list":"Fout bij het laden van de lijst","Error on load folders":"Fout bij het laden van de mappenlijst","Are you sure?":"Weet je het zeker?","Enter Directory name":"Geef de map een naam","Create directory":"Map aanmaken","type name":"Type naam","Drop image":"Sleep hier een afbeelding naartoe","Drop file":"Sleep hier een bestand naartoe","or click":"of klik","Alternative text":"Alternatieve tekst",Browse:"Bladeren",Upload:"Uploaden",Background:"Achtergrond",Text:"Tekst",Top:"Boven",Middle:"Midden",Bottom:"Onder","Insert column before":"Kolom invoegen (voor)","Insert column after":"Kolom invoegen (na)","Insert row above":"Rij invoegen (boven)","Insert row below":"Rij invoegen (onder)","Delete table":"Tabel verwijderen","Delete row":"Rij verwijderen","Delete column":"Kolom verwijderen","Empty cell":"Cel leegmaken",Delete:"Verwijderen","Strike through":"Doorstrepen",Underline:"Onderstrepen",Break:"Enter","Search for":"Zoek naar","Replace with":"Vervangen door",Replace:"Vervangen",Edit:"Bewerken","Vertical align":"Verticaal uitlijnen","Horizontal align":"Horizontaal uitlijnen",Filter:"Filteren","Sort by changed":"Sorteren op wijzigingsdatum","Sort by name":"Sorteren op naam","Sort by size":"Sorteren op grootte","Add folder":"Map toevoegen",Split:"Splitsen","Split vertical":"Verticaal splitsen","Split horizontal":"Horizontaal splitsen",Merge:"Samenvoegen","Add column":"Kolom toevoegen","Add row":"Rij toevoegen",Border:"Rand","Embed code":"Embed code",Update:"Updaten",superscript:"Superscript",subscript:"Subscript","Cut selection":"Selectie knippen",Paste:"Plakken","Choose Content to Paste":"Kies content om te plakken","Chars: %d":"Tekens: %d","Words: %d":"Woorden: %d",All:"Alles","Select %s":"Selecteer: %s","Select all":"Selecteer alles",source:"Broncode",bold:"vet",italic:"cursief",brush:"kwast",link:"link",undo:"ongedaan maken",redo:"opnieuw",table:"tabel",image:"afbeelding",eraser:"gum",paragraph:"paragraaf",fontsize:"lettergrootte",video:"video",font:"lettertype",about:"over",print:"afdrukken",symbol:"symbool",underline:"onderstreept",strikethrough:"doorgestreept",indent:"inspringen",outdent:"minder inspringen",fullsize:"volledige grootte",shrink:"kleiner maken",copyformat:"opmaak kopiëren",hr:"horizontale lijn",ul:"lijst",ol:"genummerde lijst",cut:"knip",selectall:"alles selecteren","Open link":"link openen","Edit link":"link aanpassen","No follow":"niet volgen",Unlink:"link verwijderen",Eye:"Recensie",pencil:"Om te bewerken"," URL":" URL",Reset:"Herstellen",Save:"Opslaan","Save as ...":"Opslaan als ...",Resize:"Grootte aanpassen",Crop:"Bijknippen",Width:"Breedte",Height:"Hoogte","Keep Aspect Ratio":"Verhouding behouden",Yes:"Ja",No:"Nee",Remove:"Verwijderen",Select:"Selecteren","You can only edit your own images. Download this image on the host?":"Je kunt alleen je eigen afbeeldingen aanpassen. Deze afbeelding downloaden?","The image has been successfully uploaded to the host!":"De afbeelding is succesvol geüploadet!",palette:"Palette","There are no files":"Er zijn geen bestanden in deze map.",Rename:"Hongaars","Enter new name":"Voer een nieuwe naam in",preview:"voorvertoning",download:"Download","Paste from clipboard":"Plakken van klembord","Your browser doesn't support direct access to the clipboard.":"Uw browser ondersteunt geen directe toegang tot het klembord.","Copy selection":"Selectie kopiëren",copy:"kopiëren","Border radius":"Border radius","Show all":"Toon alle",Apply:"Toepassing","Please fill out this field":"Vul dit veld","Please enter a web address":"Voer een webadres",Default:"Standaard",Circle:"Cirkel",Dot:"Dot",Quadrate:"Quadrate",Find:"Zoeken","Find Previous":"Vorige Zoeken","Find Next":"Volgende Zoeken","Insert className":"Voeg de klassenaam in","Line height":"Lijnhoogte",Spellchecking:"Spellingcontrole"}},e=>{e.exports={"Type something":"Napisz coś",Advanced:"Zaawansowane","About Jodit":"O Jodit","Jodit Editor":"Edytor Jodit","Jodit User's Guide":"Instrukcja Jodit","contains detailed help for using":"zawiera szczegółowe informacje dotyczące użytkowania.","For information about the license, please go to our website:":"Odwiedź naszą stronę, aby uzyskać więcej informacji na temat licencji:","Buy full version":"Zakup pełnej wersji","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Wszystkie prawa zastrzeżone.",Anchor:"Kotwica","Open in new tab":"Otwórz w nowej zakładce","Open editor in fullsize":"Otwórz edytor w pełnym rozmiarze","Clear Formatting":"Wyczyść formatowanie","Fill color or set the text color":"Kolor wypełnienia lub ustaw kolor tekstu",Redo:"Ponów",Undo:"Cofnij",Bold:"Pogrubienie",Italic:"Kursywa","Insert Unordered List":"Wstaw listę wypunktowaną","Insert Ordered List":"Wstaw listę numeryczną","Align Center":"Wyśrodkuj","Align Justify":"Wyjustuj","Align Left":"Wyrównaj do lewej","Align Right":"Wyrównaj do prawej","Insert Horizontal Line":"Wstaw linię poziomą","Insert Image":"Wstaw grafikę","Insert file":"Wstaw plik","Insert youtube/vimeo video":"Wstaw film Youtube/vimeo","Insert link":"Wstaw link","Font size":"Rozmiar tekstu","Font family":"Krój czcionki","Insert format block":"Wstaw formatowanie",Normal:"Normalne","Heading 1":"Nagłówek 1","Heading 2":"Nagłówek 2","Heading 3":"Nagłówek 3","Heading 4":"Nagłówek 4",Quote:"Cytat",Code:"Kod",Insert:"Wstaw","Insert table":"Wstaw tabelę","Decrease Indent":"Zmniejsz wcięcie","Increase Indent":"Zwiększ wcięcie","Select Special Character":"Wybierz znak specjalny","Insert Special Character":"Wstaw znak specjalny","Paint format":"Malarz formatów","Change mode":"Zmień tryb",Margins:"Marginesy",top:"Górny",right:"Prawy",bottom:"Dolny",left:"Levy",Styles:"Style CSS",Classes:"Klasy CSS",Align:"Wyrównanie",Right:"Prawa",Center:"środek",Left:"Lewa","--Not Set--":"brak",Src:"Źródło",Title:"Tytuł",Alternative:"Tekst alternatywny",Link:"Link","Open link in new tab":"Otwórz w nowej zakładce",Image:"Grafika",file:"Plik",Advansed:"Zaawansowne","Image properties":"Właściwości grafiki",Cancel:"Anuluj",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Twój kod wygląda jak HTML. Zachować HTML?","Paste as HTML":"Wkleić jako HTML?",Keep:"Oryginalny tekst",Clean:"Wyczyść","Insert as Text":"Wstaw jako tekst","Word Paste Detected":"Wykryto tekst w formacie Word","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Wklejany tekst pochodzi z dokumentu Microsoft Word/Excel. Chcesz zachować ten format czy wyczyścić go? ","Insert only Text":"Wstaw tylko treść","File Browser":"Przeglądarka plików","Error on load list":"Błąd ładowania listy plików","Error on load folders":"Błąd ładowania folderów","Are you sure?":"Czy jesteś pewien?","Enter Directory name":"Wprowadź nazwę folderu","Create directory":"Utwórz folder","type name":"wprowadź nazwę","Drop image":"Upuść plik graficzny","Drop file":"Upuść plik","or click":"lub kliknij tu","Alternative text":"Tekst alternatywny",Browse:"Przeglądaj",Upload:"Wczytaj",Background:"Tło",Text:"Treść",Top:"Góra",Middle:"Środek",Bottom:"Dół","Insert column before":"Wstaw kolumnę przed","Insert column after":"Wstaw kolumnę po","Insert row above":"Wstaw wiersz przed","Insert row below":"Wstaw wiersz po","Delete table":"Usuń tabelę","Delete row":"Usuń wiersz","Delete column":"Usuń kolumnę","Empty cell":"Wyczyść komórkę",Delete:"Usuń","Strike through":"Przekreślenie",Underline:"Podkreślenie",Break:"Przerwa","Search for":"Szukaj","Replace with":"Zamień na",Replace:"Wymienić",Edit:"Edytuj","Vertical align":"Wyrównywanie w pionie","Horizontal align":"Wyrównywanie w poziomie",Filter:"Filtruj","Sort by changed":"Sortuj wg zmiany","Sort by name":"Sortuj wg nazwy","Sort by size":"Sortuj wg rozmiaru","Add folder":"Dodaj folder","Split vertical":"Podziel w pionie","Split horizontal":"Podziel w poziomie",Split:"Podziel",Merge:"Scal","Add column":"Dodaj kolumnę","Add row":"Dodaj wiersz",Border:"Obramowanie","Embed code":"Wstaw kod",Update:"Aktualizuj",superscript:"indeks górny",subscript:"index dolny","Cut selection":"Wytnij zaznaczenie",Paste:"Wklej","Choose Content to Paste":"Wybierz zawartość do wklejenia","Chars: %d":"Znaki: %d","Words: %d":"Słowa: %d",All:"Wszystko","Select %s":"Wybierz: %s","Select all":"Wybierz wszystko",source:"HTML",bold:"pogrubienie",italic:"kursywa",brush:"pędzel",link:"link",undo:"cofnij",redo:"ponów",table:"tabela",image:"grafika",eraser:"wyczyść",paragraph:"akapit",fontsize:"rozmiar czcionki",video:"wideo",font:"czcionka",about:"O programie",print:"drukuj",symbol:"symbol",underline:"podkreślenie",strikethrough:"przekreślenie",indent:"wcięcie",outdent:"wycięcie",fullsize:"pełen rozmiar",shrink:"przytnij",copyformat:"format kopii",hr:"linia pozioma",ul:"lista",ol:"lista numerowana",cut:"wytnij",selectall:"zaznacz wszystko","Open link":"otwórz link","Edit link":"edytuj link","No follow":"Atrybut no-follow",Unlink:"Usuń link",Eye:"szukaj",pencil:"edytuj"," URL":"URL",Reset:"wyczyść",Save:"zapisz","Save as ...":"zapisz jako",Resize:"Zmień rozmiar",Crop:"Przytnij",Width:"Szerokość",Height:"Wysokość","Keep Aspect Ratio":"Zachowaj proporcje",Yes:"Tak",No:"Nie",Remove:"Usuń",Select:"Wybierz","You can only edit your own images. Download this image on the host?":"Możesz edytować tylko swoje grafiki. Czy chcesz pobrać tą grafikę?","The image has been successfully uploaded to the host!":"Grafika została pomyślnienie dodana na serwer",palette:"Paleta","There are no files":"Brak plików.",Rename:"zmień nazwę","Enter new name":"Wprowadź nową nazwę",preview:"podgląd",download:"pobierz","Paste from clipboard":"Wklej ze schowka","Your browser doesn't support direct access to the clipboard.":"Twoja przeglądarka nie obsługuje schowka","Copy selection":"Kopiuj zaznaczenie",copy:"kopiuj","Border radius":"Zaokrąglenie krawędzi","Show all":"Pokaż wszystkie",Apply:"Zastosuj","Please fill out this field":"Proszę wypełnić to pole","Please enter a web address":"Proszę, wpisz adres sieci web",Default:"Domyślnie",Circle:"Koło",Dot:"Punkt",Quadrate:"Kwadrat",Find:"Znaleźć","Find Previous":"Znaleźć Poprzednie","Find Next":"Znajdź Dalej","Insert className":"Wstaw nazwę zajęć","Line height":"Wysokość linii",Spellchecking:"Sprawdzanie pisowni"}},e=>{e.exports={"Type something":"Escreva algo...",Advanced:"Avançado","About Jodit":"Sobre o Jodit","Jodit Editor":"Editor Jodit","Jodit User's Guide":"Guia de usuário Jodit","contains detailed help for using":"contém ajuda detalhada para o uso.","For information about the license, please go to our website:":"Para informação sobre a licença, por favor visite nosso site:","Buy full version":"Compre a versão completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Todos os direitos reservados.",Anchor:"Link","Open in new tab":"Abrir em nova aba","Open editor in fullsize":"Abrir editor em tela cheia","Clear Formatting":"Limpar formatação","Fill color or set the text color":"Cor de preenchimento ou cor do texto",Redo:"Refazer",Undo:"Desfazer",Bold:"Negrito",Italic:"Itálico","Insert Unordered List":"Inserir lista não ordenada","Insert Ordered List":"Inserir lista ordenada","Align Center":"Centralizar","Align Justify":"Justificar","Align Left":"Alinhar à Esquerda","Align Right":"Alinhar à Direita","Insert Horizontal Line":"Inserir linha horizontal","Insert Image":"Inserir imagem","Insert file":"Inserir arquivo","Insert youtube/vimeo video":"Inserir vídeo do Youtube/vimeo","Insert link":"Inserir link","Font size":"Tamanho da letra","Font family":"Fonte","Insert format block":"Inserir bloco",Normal:"Normal","Heading 1":"Cabeçalho 1","Heading 2":"Cabeçalho 2","Heading 3":"Cabeçalho 3","Heading 4":"Cabeçalho 4",Quote:"Citação",Code:"Código",Insert:"Inserir","Insert table":"Inserir tabela","Decrease Indent":"Diminuir recuo","Increase Indent":"Aumentar recuo","Select Special Character":"Selecionar caractere especial","Insert Special Character":"Inserir caractere especial","Paint format":"Copiar formato","Change mode":"Mudar modo",Margins:"Margens",top:"cima",right:"direta",bottom:"baixo",left:"esquerda",Styles:"Estilos CSS",Classes:"Classes CSS",Align:"Alinhamento",Right:"Direita",Center:"Centro",Left:"Esquerda","--Not Set--":"--Não Estabelecido--",Src:"Fonte",Title:"Título",Alternative:"Texto Alternativo",Link:"Link","Open link in new tab":"Abrir link em nova aba",Image:"Imagem",file:"Arquivo",Advansed:"Avançado","Image properties":"Propriedades da imagem",Cancel:"Cancelar",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Seu código é similar ao HTML. Manter como HTML?","Paste as HTML":"Colar como HTML?",Keep:"Manter",Clean:"Limpar","Insert as Text":"Inserir como Texto","Word Paste Detected":"Colado do Word Detectado","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"O conteúdo colado veio de um documento Microsoft Word/Excel. Você deseja manter o formato ou limpa-lo?","Insert only Text":"Inserir somente o Texto","File Browser":"Procurar arquivo","Error on load list":"Erro ao carregar a lista","Error on load folders":"Erro ao carregar as pastas","Are you sure?":"Você tem certeza?","Enter Directory name":"Escreva o nome da pasta","Create directory":"Criar pasta","type name":"Escreva seu nome","Drop image":"Soltar imagem","Drop file":"Soltar arquivo","or click":"ou clique","Alternative text":"Texto alternativo",Browse:"Explorar",Upload:"Upload",Background:"Fundo",Text:"Texto",Top:"Cima",Middle:"Meio",Bottom:"Baixo","Insert column before":"Inserir coluna antes","Insert column after":"Inserir coluna depois","Insert row above":"Inserir linha acima","Insert row below":"Inserir linha abaixo","Delete table":"Excluir tabela","Delete row":"Excluir linha","Delete column":"Excluir coluna","Empty cell":"Limpar célula",Delete:"Excluir","Strike through":"Tachado",Underline:"Sublinhar",Break:"Pausa","Search for":"Procurar por","Replace with":"Substituir com",Replace:"Substituir",Edit:"Editar","Vertical align":"Alinhamento vertical","Horizontal align":"Alinhamento horizontal",Filter:"filtrar","Sort by changed":"Ordenar por modificação","Sort by name":"Ordenar por nome","Sort by size":"Ordenar por tamanho","Add folder":"Adicionar pasta",Split:"Dividir","Split vertical":"Dividir vertical","Split horizontal":"Dividir horizontal",Merge:"Mesclar","Add column":"Adicionar coluna","Add row":"Adicionar linha",Border:"Borda","Embed code":"Incluir código",Update:"Atualizar",superscript:"sobrescrito",subscript:"subscrito","Cut selection":"Cortar seleção",Paste:"Colar","Choose Content to Paste":"Escolher conteúdo para colar","Chars: %d":"Caracteres: %d","Words: %d":"Palavras: %d",All:"Tudo","Select %s":"Selecionar: %s","Select all":"Selecionar tudo",source:"HTML",bold:"negrito",italic:"itálico",brush:"pincel",link:"link",undo:"desfazer",redo:"refazer",table:"tabela",image:"imagem",eraser:"apagar",paragraph:"parágrafo",fontsize:"tamanho da letra",video:"vídeo",font:"fonte",about:"Sobre de",print:"Imprimir",symbol:"Símbolo",underline:"sublinhar",strikethrough:"tachado",indent:"recuar",outdent:"diminuir recuo",fullsize:"Tamanho completo",shrink:"diminuir",copyformat:"Copiar formato",hr:"linha horizontal",ul:"lista não ordenada",ol:"lista ordenada",cut:"Cortar",selectall:"Selecionar tudo","Open link":"Abrir link","Edit link":"Editar link","No follow":"Não siga",Unlink:"Remover link",Eye:"Visualizar",pencil:"Editar"," URL":"URL",Reset:"Resetar",Save:"Salvar","Save as ...":"Salvar como...",Resize:"Redimensionar",Crop:"Recortar",Width:"Largura",Height:"Altura","Keep Aspect Ratio":"Manter a proporção",Yes:"Sim",No:"Não",Remove:"Remover",Select:"Selecionar","You can only edit your own images. Download this image on the host?":"Você só pode editar suas próprias imagens. Baixar essa imagem pro servidor?","The image has been successfully uploaded to the host!":"A imagem foi enviada com sucesso para o servidor!",palette:"Palette","There are no files":"Não há arquivos nesse diretório.",Rename:"Húngara","Enter new name":"Digite um novo nome",preview:"preview",download:"Baixar","Paste from clipboard":"Colar da área de transferência","Your browser doesn't support direct access to the clipboard.":"O seu navegador não oferece suporte a acesso direto para a área de transferência.","Copy selection":"Selecção de cópia",copy:"cópia","Border radius":"Border radius","Show all":"Mostrar todos os",Apply:"Aplicar","Please fill out this field":"Por favor, preencha este campo","Please enter a web address":"Por favor introduza um endereço web",Default:"Padrão",Circle:"Círculo",Dot:"Ponto",Quadrate:"Quadro","Lower Alpha":"Letra Minúscula","Lower Greek":"Grego Minúscula","Lower Roman":"Romano Minúscula","Upper Alpha":"Letra Maiúscula","Upper Roman":"Romano Maiúscula",Find:"Encontrar","Find Previous":"Encontrar Anteriores","Find Next":"Localizar Próxima","Insert className":"Insira o nome da classe","Line height":"Altura da linha",Spellchecking:"Verificação ortográfica"}},e=>{e.exports={"Type something":"Напишите что-либо","About Jodit":"О Jodit","Jodit Editor":"Редактор Jodit","Jodit User's Guide":"Jodit Руководство пользователя","contains detailed help for using":"содержит детальную информацию по использованию","For information about the license, please go to our website:":"Для получения сведений о лицензии , пожалуйста, перейдите на наш сайт:","Buy full version":"Купить полную версию","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.",Anchor:"Анкор","Open in new tab":"Открывать ссылку в новой вкладке","Open editor in fullsize":"Открыть редактор в полном размере","Clear Formatting":"Очистить форматирование","Fill color or set the text color":"Цвет заливки или цвет текста",Redo:"Повтор",Undo:"Отмена",Bold:"Жирный",Italic:"Наклонный","Insert Unordered List":"Вставка маркированного списка","Insert Ordered List":"Вставить нумерованный список","Align Center":"Выровнять по центру","Align Justify":"Выровнять по ширине","Align Left":"Выровнять по левому краю","Align Right":"Выровнять по правому краю","Insert Horizontal Line":"Вставить горизонтальную линию","Insert Image":"Вставить изображение","Insert file":"Вставить файл","Insert youtube/vimeo video":"Вставьте видео","Insert link":"Вставить ссылку","Font size":"Размер шрифта","Font family":"Шрифт","Insert format block":"Вставить блочный элемент",Normal:"Нормальный текст","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4",Quote:"Цитата",Code:"Код",Insert:"Вставить","Insert table":"Вставить таблицу","Decrease Indent":"Уменьшить отступ","Increase Indent":"Увеличить отступ","Select Special Character":"Выберите специальный символ","Insert Special Character":"Вставить специальный символ","Paint format":"Формат краски","Change mode":"Источник",Margins:"Отступы",top:"сверху",right:"справа",bottom:"снизу",left:"слева",Styles:"Стили",Classes:"Классы",Align:"Выравнивание",Right:"По правому краю",Center:"По центру",Left:"По левому краю","--Not Set--":"--не устанавливать--",Src:"src",Title:"Заголовок",Alternative:"Альтернативный текст (alt)",Link:"Ссылка","Open link in new tab":"Открывать ссылку в новом окне",file:"Файл",Advanced:"Расширенные","Image properties":"Свойства изображения",Cancel:"Отмена",Ok:"Ок","Your code is similar to HTML. Keep as HTML?":"Ваш текст, который вы пытаетесь вставить похож на HTML. Вставить его как HTML?","Paste as HTML":"Вставить как HTML?",Keep:"Сохранить оригинал",Clean:"Почистить","Insert as Text":"Вставить как текст","Insert only Text":"Вставить только текст","Word Paste Detected":"Возможно это фрагмент Word или Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Контент который вы вставляете поступает из документа Microsoft Word / Excel. Вы хотите сохранить формат или очистить его?","File Browser":"Браузер файлов","Error on load list":"Ошибка при загрузке списка изображений","Error on load folders":"Ошибка при загрузке списка директорий","Are you sure?":"Вы уверены?","Enter Directory name":"Введите название директории","Create directory":"Создать директорию","type name":"введите название","Drop image":"Перетащите сюда изображение","Drop file":"Перетащите сюда файл","or click":"или нажмите","Alternative text":"Альтернативный текст",Browse:"Сервер",Upload:"Загрузка",Background:"Фон",Text:"Текст",Top:" К верху",Middle:"По середине",Bottom:"К низу","Insert column before":"Вставить столбец до","Insert column after":"Вставить столбец после","Insert row above":"Вставить ряд выше","Insert row below":"Вставить ряд ниже","Delete table":"Удалить таблицу","Delete row":"Удалять ряд","Delete column":"Удалить столбец","Empty cell":"Очистить ячейку",source:"HTML",bold:"жирный",italic:"курсив",brush:"заливка",link:"ссылка",undo:"отменить",redo:"повторить",table:"таблица",image:"Изображение",eraser:"очистить",paragraph:"параграф",fontsize:"размер шрифта",video:"видео",font:"шрифт",about:"о редакторе",print:"печать",symbol:"символ",underline:"подчеркнутый",strikethrough:"перечеркнутый",indent:"отступ",outdent:"выступ",fullsize:"во весь экран",shrink:"обычный размер",copyformat:"Копировать формат",hr:"линия",ul:"Список",ol:"Нумерованный список",cut:"Вырезать",selectall:"Выделить все","Embed code":"Код","Open link":"Открыть ссылку","Edit link":"Редактировать ссылку","No follow":"Атрибут nofollow",Unlink:"Убрать ссылку",Eye:"Просмотр",pencil:"Редактировать",Update:"Обновить"," URL":"URL",Edit:"Редактировать","Horizontal align":"Горизонтальное выравнивание",Filter:"Фильтр","Sort by changed":"По изменению","Sort by name":"По имени","Sort by size":"По размеру","Add folder":"Добавить папку",Reset:"Восстановить",Save:"Сохранить","Save as ...":"Сохранить как",Resize:"Изменить размер",Crop:"Обрезать размер",Width:"Ширина",Height:"Высота","Keep Aspect Ratio":"Сохранять пропорции",Yes:"Да",No:"Нет",Remove:"Удалить",Select:"Выделить","Chars: %d":"Символов: %d","Words: %d":"Слов: %d",All:"Выделить все","Select %s":"Выделить: %s","Select all":"Выделить все","Vertical align":"Вертикальное выравнивание",Split:"Разделить","Split vertical":"Разделить по вертикали","Split horizontal":"Разделить по горизонтали",Merge:"Объединить в одну","Add column":"Добавить столбец","Add row":"Добавить строку",Delete:"Удалить",Border:"Рамка","License: %s":"Лицензия: %s","Strike through":"Перечеркнуть",Underline:"Подчеркивание",superscript:"верхний индекс",subscript:"индекс","Cut selection":"Вырезать",Break:"Разделитель","Search for":"Найти","Replace with":"Заменить на",Replace:"Заменить",Paste:"Вставить","Choose Content to Paste":"Выбрать контент для вставки","You can only edit your own images. Download this image on the host?":"Вы можете редактировать только свои собственные изображения. Загрузить это изображение на ваш сервер?","The image has been successfully uploaded to the host!":"Изображение успешно загружено на сервер!",palette:"палитра","There are no files":"В данном каталоге нет файлов",Rename:"Переименовать","Enter new name":"Введите новое имя",preview:"Предпросмотр",download:"Скачать","Paste from clipboard":"Вставить из буфера обмена","Your browser doesn't support direct access to the clipboard.":"Ваш браузер не поддерживает прямой доступ к буферу обмена.","Copy selection":"Скопировать выделенное",copy:"копия","Border radius":"Радиус границы","Show all":"Показать все",Apply:"Применить","Please fill out this field":"Пожалуйста, заполните это поле","Please enter a web address":"Пожалуйста, введите веб-адрес",Default:"По умолчанию",Circle:"Круг",Dot:"Точка",Quadrate:"Квадрат",Find:"Найти","Find Previous":"Найти Предыдущие","Find Next":"Найти Далее","Insert className":"Вставить название класса","Line height":"Высота линии",Spellchecking:"Проверка орфографии"}},e=>{e.exports={"Type something":"Bir şeyler yaz",Advanced:"Gelişmiş","About Jodit":"Jodit Hakkında","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit Kullanım Kılavuzu","contains detailed help for using":"kullanım için detaylı bilgiler içerir","For information about the license, please go to our website:":"Lisans hakkında bilgi için lütfen web sitemize gidin:","Buy full version":"Tam versiyonunu satın al","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tüm hakları saklıdır.",Anchor:"Bağlantı","Open in new tab":"Yeni sekmede aç","Open editor in fullsize":"Editörü tam ekranda aç","Clear Formatting":"Stili temizle","Fill color or set the text color":"Renk doldur veya yazı rengi seç",Redo:"Yinele",Undo:"Geri Al",Bold:"Kalın",Italic:"İtalik","Insert Unordered List":"Sırasız Liste Ekle","Insert Ordered List":"Sıralı Liste Ekle","Align Center":"Ortala","Align Justify":"Kenarlara Yasla","Align Left":"Sola Yasla","Align Right":"Sağa Yasla","Insert Horizontal Line":"Yatay Çizgi Ekle","Insert Image":"Resim Ekle","Insert file":"Dosya Ekle","Insert youtube/vimeo video":"Youtube/Vimeo Videosu Ekle","Insert link":"Bağlantı Ekle","Font size":"Font Boyutu","Font family":"Font Ailesi","Insert format block":"Blok Ekle",Normal:"Normal","Heading 1":"Başlık 1","Heading 2":"Başlık 2","Heading 3":"Başlık 3","Heading 4":"Başlık 4",Quote:"Alıntı",Code:"Kod",Insert:"Ekle","Insert table":"Tablo Ekle","Decrease Indent":"Girintiyi Azalt","Increase Indent":"Girintiyi Arttır","Select Special Character":"Özel Karakter Seç","Insert Special Character":"Özel Karakter Ekle","Paint format":"Resim Biçimi","Change mode":"Mod Değiştir",Margins:"Boşluklar",top:"Üst",right:"Sağ",bottom:"Alt",left:"Sol",Styles:"CSS Stilleri",Classes:"CSS Sınıfları",Align:"Hizalama",Right:"Sağ",Center:"Ortalı",Left:"Sol","--Not Set--":"Belirsiz",Src:"Kaynak",Title:"Başlık",Alternative:"Alternatif Yazı",Link:"Link","Open link in new tab":"Bağlantıyı yeni sekmede aç",Image:"Resim",file:"Dosya",Advansed:"Gelişmiş","Image properties":"Resim özellikleri",Cancel:"İptal",Ok:"Tamam","Your code is similar to HTML. Keep as HTML?":"Kodunuz HTML koduna benziyor. HTML olarak devam etmek ister misiniz?","Paste as HTML":"HTML olarak yapıştır",Keep:"Sakla",Clean:"Temizle","Insert as Text":"Yazı olarak ekle","Word Paste Detected":"Word biçiminde yapıştırma algılandı","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder löschen?","Insert only Text":"Sadece yazıyı ekle","File Browser":"Dosya Listeleyici","Error on load list":"Liste yüklenirken hata oluştu","Error on load folders":"Klasörler yüklenirken hata oluştur","Are you sure?":"Emin misiniz?","Enter Directory name":"Dizin yolu giriniz","Create directory":"Dizin oluştur","type name":"İsim yaz","Drop image":"Resim bırak","Drop file":"Dosya bırak","or click":"veya tıkla","Alternative text":"Alternatif yazı",Browse:"Gözat",Upload:"Yükle",Background:"Arka plan",Text:"Yazı",Top:"Üst",Middle:"Orta",Bottom:"Aşağı","Insert column before":"Öncesine kolon ekle","Insert column after":"Sonrasına kolon ekle","Insert row above":"Üstüne satır ekle","Insert row below":"Altına satır ekle","Delete table":"Tabloyu sil","Delete row":"Satırı sil","Delete column":"Kolonu sil","Empty cell":"Hücreyi temizle",Delete:"Sil","Strike through":"Üstü çizili",Underline:"Alt çizgi",Break:"Satır sonu","Search for":"Ara","Replace with":"Şununla değiştir",Replace:"Değiştir",Edit:"Düzenle","Vertical align":"Dikey hizala","Horizontal align":"Yatay hizala",Filter:"Filtre","Sort by changed":"Değişime göre sırala","Sort by name":"İsme göre sırala","Sort by size":"Boyuta göre sırala","Add folder":"Klasör ekle",Split:"Ayır","Split vertical":"Dikey ayır","Split horizontal":"Yatay ayır",Merge:"Birleştir","Add column":"Kolon ekle","Add row":"Satır ekle",Border:"Kenarlık","Embed code":"Kod ekle",Update:"Güncelle",superscript:"Üst yazı",subscript:"Alt yazı","Cut selection":"Seçilimi kes",Paste:"Yapıştır","Choose Content to Paste":"Yapıştırılacak içerik seç","Chars: %d":"Harfler: %d","Words: %d":"Kelimeler: %d",All:"Tümü","Select %s":"Seç: %s","Select all":"Tümünü seç",source:"Kaynak",bold:"Kalın",italic:"italik",brush:"Fırça",link:"Bağlantı",undo:"Geri al",redo:"Yinele",table:"Tablo",image:"Resim",eraser:"Silgi",paragraph:"Paragraf",fontsize:"Font boyutu",video:"Video",font:"Font",about:"Hakkında",print:"Yazdır",symbol:"Sembol",underline:"Alt çizgi",strikethrough:"Üstü çizili",indent:"Girinti",outdent:"Çıkıntı",fullsize:"Tam ekran",shrink:"Küçült",copyformat:"Kopyalama Biçimi",hr:"Ayraç",ul:"Sırasız liste",ol:"Sıralı liste",cut:"Kes",selectall:"Tümünü seç","Open link":"Bağlantıyı aç","Edit link":"Bağlantıyı düzenle","No follow":"Nofollow özelliği",Unlink:"Bağlantıyı kaldır",Eye:"Yorumu",pencil:"Düzenlemek için"," URL":"URL",Reset:"Sıfırla",Save:"Kaydet","Save as ...":"Farklı kaydet",Resize:"Boyutlandır",Crop:"Kırp",Width:"Genişlik",Height:"Yükseklik","Keep Aspect Ratio":"En boy oranını koru",Yes:"Evet",No:"Hayır",Remove:"Sil",Select:"Seç","You can only edit your own images. Download this image on the host?":"Sadece kendi resimlerinizi düzenleyebilirsiniz. Bu görseli kendi hostunuza indirmek ister misiniz?","The image has been successfully uploaded to the host!":"Görsel başarıyla hostunuza yüklendi",palette:"Palet","There are no files":"Bu dizinde dosya yok",Rename:"Yeniden isimlendir","Enter new name":"Yeni isim girin",preview:"Ön izleme",download:"İndir","Paste from clipboard":"Panodan yapıştır ","Your browser doesn't support direct access to the clipboard.":"Tarayıcınız panoya doğrudan erişimi desteklemiyor.","Copy selection":"Seçimi kopyala",copy:"Kopyala","Border radius":"Sınır yarıçapı","Show all":"Tümünü Göster",Apply:"Uygula","Please fill out this field":"Lütfen bu alanı doldurun","Please enter a web address":"Lütfen bir web adresi girin",Default:"Varsayılan",Circle:"Daire",Dot:"Nokta",Quadrate:"Kare",Find:"Bul","Find Previous":"Öncekini Bul","Find Next":"Sonrakini Bul","Insert className":"Sınıf adı girin","Line height":"Çizgi yüksekliği",Spellchecking:"Yazım denetimi"}},e=>{e.exports={"Type something":"输入一些内容",Advanced:"高级","About Jodit":"关于Jodit","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Free Non-commercial Version","Jodit User's Guide":"开发者指南","contains detailed help for using":"使用帮助","For information about the license, please go to our website:":"有关许可证的信息,请访问我们的网站:","Buy full version":"购买完整版本","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. 版权所有",Anchor:"Anchor","Open in new tab":"在新窗口打开","Open editor in fullsize":"全屏编辑","Clear Formatting":"清除样式","Fill color or set the text color":"颜色",Redo:"重做",Undo:"撤销",Bold:"粗体",Italic:"斜体","Insert Unordered List":"符号列表","Insert Ordered List":"编号","Align Center":"居中","Align Justify":"对齐文本","Align Left":"左对齐","Align Right":"右对齐","Insert Horizontal Line":"分割线","Insert Image":"图片","Insert file":"文件","Insert youtube/vimeo video":"视频","Insert link":"链接","Font size":"字号","Font family":"字体","Insert format block":"格式块",Normal:"默认","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4",Quote:"引用",Code:"代码",Insert:"插入","Insert table":"表格","Decrease Indent":"减少缩进","Increase Indent":"增加缩进","Select Special Character":"选择特殊符号","Insert Special Character":"特殊符号","Paint format":"格式复制","Change mode":"改变模式",Margins:"外边距(Margins)",top:"top",right:"right",bottom:"bottom",left:"left",Styles:"样式",Classes:"Classes",Align:"对齐方式",Right:"居右",Center:"居中",Left:"居左","--Not Set--":"无",Src:"Src",Title:"Title",Alternative:"Alternative",Link:"Link","Open link in new tab":"在新窗口打开链接",Image:"图片",file:"file",Advansed:"高级","Image properties":"图片属性",Cancel:"取消",Ok:"确定","Your code is similar to HTML. Keep as HTML?":"你粘贴的文本是一段html代码,是否保留源格式","Paste as HTML":"html粘贴",Keep:"保留源格式",Clean:"匹配目标格式","Insert as Text":"把html代码视为普通文本","Word Paste Detected":"文本粘贴","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"正在粘贴 Word/Excel 的文本,是否保留源格式?","Insert only Text":"只保留文本","File Browser":"文件管理","Error on load list":"加载list错误","Error on load folders":"加载folders错误","Are you sure?":"你确定吗?","Enter Directory name":"输入路径","Create directory":"创建路径","type name":"type name","Drop image":"拖动图片到此","Drop file":"拖动文件到此","or click":"或点击","Alternative text":"Alternative text",Browse:"浏览",Upload:"上传",Background:"背景色",Text:"文字",Top:"顶部",Middle:"中间",Bottom:"底部","Insert column before":"在之前插入列","Insert column after":"在之后插入列","Insert row above":"在之前插入行","Insert row below":"在之后插入行","Delete table":"删除表格","Delete row":"删除行","Delete column":"删除列","Empty cell":"清除内容","Chars: %d":"字符数: %d","Words: %d":"单词数: %d","Strike through":"删除线",Underline:"下划线",superscript:"上标",subscript:"下标","Cut selection":"剪切","Select all":"全选",Break:"Break","Search for":"查找","Replace with":"替换为",Replace:"替换",Edit:"编辑",Paste:"粘贴","Choose Content to Paste":"选择内容并粘贴",All:"全部",source:"源码",bold:"粗体",italic:"斜体",brush:"颜色",link:"链接",undo:"撤销",redo:"重做",table:"表格",image:"图片",eraser:"橡皮擦",paragraph:"段落",fontsize:"字号",video:"视频",font:"字体",about:"关于",print:"打印",symbol:"符号",underline:"下划线",strikethrough:"上出现",indent:"增加缩进",outdent:"减少缩进",fullsize:"全屏",shrink:"收缩",copyformat:"复制格式",hr:"分割线",ul:"无序列表",ol:"顺序列表",cut:"剪切",selectall:"全选","Open link":"打开链接","Edit link":"编辑链接","No follow":"No follow",Unlink:"取消链接",Eye:"预览"," URL":"URL",Reset:"重置",Save:"保存","Save as ...":"保存为",Resize:"调整大小",Crop:"剪切",Width:"宽",Height:"高","Keep Aspect Ratio":"保持长宽比",Yes:"是",No:"不",Remove:"移除",Select:"选择","Select %s":"选择: %s",Update:"更新","Vertical align":"垂直对齐",Merge:"合并","Add column":"添加列","Add row":"添加行",Border:"边框","Embed code":"嵌入代码",Delete:"删除","Horizontal align":"水平对齐",Filter:"筛选","Sort by changed":"修改时间排序","Sort by name":"名称排序","Sort by size":"大小排序","Add folder":"新建文件夹",Split:"拆分","Split vertical":"垂直拆分","Split horizontal":"水平拆分","You can only edit your own images. Download this image on the host?":"你只能编辑你自己的图片。Download this image on the host?","The image has been successfully uploaded to the host!":"图片上传成功",palette:"调色板",pencil:"铅笔","There are no files":"此目录中沒有文件。",Rename:"重命名","Enter new name":"输入新名称",preview:"预览",download:"下载","Paste from clipboard":"粘贴从剪贴板","Your browser doesn't support direct access to the clipboard.":"你浏览器不支持直接访问的剪贴板。","Copy selection":"复制选中内容",copy:"复制","Border radius":"边界半径","Show all":"显示所有",Apply:"应用","Please fill out this field":"请填写这个字段","Please enter a web address":"请输入一个网址",Default:"默认",Circle:"圆圈",Dot:"点",Quadrate:"方形",Find:"搜索","Find Previous":"查找上一个","Find Next":"查找下一个","Insert className":"插入班级名称","Line height":"线高",Spellchecking:"拼写检查"}},e=>{e.exports={"Type something":"輸入一些內容",Advanced:"高級","About Jodit":"關於Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"開發者指南","contains detailed help for using":"使用幫助","For information about the license, please go to our website:":"有關許可證的信息,請訪問我們的網站:","Buy full version":"購買完整版本","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"Anchor","Open in new tab":"在新窗口打開","Open editor in fullsize":"全屏編輯","Clear Formatting":"清除樣式","Fill color or set the text color":"顏色",Redo:"重做",Undo:"撤銷",Bold:"粗體",Italic:"斜體","Insert Unordered List":"符號列表","Insert Ordered List":"編號","Align Center":"居中","Align Justify":"對齊文本","Align Left":"左對齊","Align Right":"右對齊","Insert Horizontal Line":"分割線","Insert Image":"圖片","Insert file":"文件","Insert youtube/vimeo video":"youtube/vimeo 影片","Insert link":"鏈接","Font size":"字號","Font family":"字體","Insert format block":"格式塊",Normal:"文本","Heading 1":"標題1","Heading 2":"標題2","Heading 3":"標題3","Heading 4":"標題4",Quote:"引用",Code:"代碼",Insert:"插入","Insert table":"表格","Decrease Indent":"減少縮進","Increase Indent":"增加縮進","Select Special Character":"選擇特殊符號","Insert Special Character":"特殊符號","Paint format":"格式複製","Change mode":"改變模式",Margins:"外邊距(Margins)",top:"top",right:"right",bottom:"bottom",left:"left",Styles:"樣式",Classes:"Classes",Align:"對齊方式",Right:"居右",Center:"居中",Left:"居左","--Not Set--":"無",Src:"Src",Title:"Title",Alternative:"替代",Link:"Link","Open link in new tab":"在新窗口打開鏈接",Image:"圖片",file:"file",Advansed:"高級","Image properties":"圖片屬性",Cancel:"取消",Ok:"確定","Your code is similar to HTML. Keep as HTML?":"你黏貼的文本是一段html代碼,是否保留源格式","Paste as HTML":"html黏貼",Keep:"保留源格式",Clean:"匹配目標格式","Insert as Text":"把html代碼視為普通文本","Word Paste Detected":"文本黏貼","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"正在黏貼 Word/Excel 的文本,是否保留源格式?","Insert only Text":"只保留文本","File Browser":"文件管理","Error on load list":"加載list錯誤","Error on load folders":"加載folders錯誤","Are you sure?":"你確定嗎?","Enter Directory name":"輸入路徑","Create directory":"創建路徑","type name":"type name","Drop image":"拖動圖片到此","Drop file":"拖動文件到此","or click":"或點擊","Alternative text":"替代文字",Browse:"瀏覽",Upload:"上傳",Background:"背景色",Text:"文字",Top:"頂部",Middle:"中間",Bottom:"底部","Insert column before":"在之前插入列","Insert column after":"在之後插入列","Insert row above":"在之前插入行","Insert row below":"在之後插入行","Delete table":"刪除表格","Delete row":"刪除行","Delete column":"刪除列","Empty cell":"清除內容","Chars: %d":"字符數: %d","Words: %d":"單詞數: %d","Strike through":"刪除線",Underline:"下劃線",superscript:"上標",subscript:"下標","Cut selection":"剪切","Select all":"全選",Break:"Pause","Search for":"查找","Replace with":"替換為",Replace:"แทนที่",Paste:"黏貼","Choose Content to Paste":"選擇內容並黏貼",All:"全部",source:"源碼",bold:"粗體",italic:"斜體",brush:"顏色",link:"鏈接",undo:"撤銷",redo:"重做",table:"表格",image:"圖片",eraser:"橡皮擦",paragraph:"段落",fontsize:"字號",video:"影片",font:"字體",about:"關於",print:"打印",symbol:"符號",underline:"下劃線",strikethrough:"上出現",indent:"增加縮進",outdent:"減少縮進",fullsize:"全屏",shrink:"收縮",copyformat:"複製格式",hr:"分割線",ul:"無序列表",ol:"順序列表",cut:"剪切",selectall:"全選","Open link":"打開鏈接","Edit link":"編輯鏈接","No follow":"No follow",Unlink:"取消連結",Eye:"回顧"," URL":"URL",Reset:"重置",Save:"保存","Save as ...":"保存為",Resize:"調整大小",Crop:"Crop",Width:"寬",Height:"高","Keep Aspect Ratio":"保存長寬比",Yes:"是",No:"不",Remove:"移除",Select:"選擇","Select %s":"選擇: %s",Update:"更新","Vertical align":"垂直對齊",Merge:"合併","Add column":"添加列","Add row":"添加行",Border:"邊框","Embed code":"嵌入代碼",Delete:"刪除","Horizontal align":"水平對齊",Filter:"篩選","Sort by changed":"修改時間排序","Sort by name":"名稱排序","Sort by size":"大小排序","Add folder":"新建文件夾",Split:"拆分","Split vertical":"垂直拆分","Split horizontal":"水平拆分","You can only edit your own images. Download this image on the host?":"你只能編輯你自己的圖片。是否下載此圖片到本地?","The image has been successfully uploaded to the host!":"圖片上傳成功",palette:"調色板",pencil:"鉛筆","There are no files":"此目錄中沒有文件。",Rename:"重命名","Enter new name":"輸入新名稱",preview:"預覽",download:"下載","Paste from clipboard":"從剪貼板貼上","Your browser doesn't support direct access to the clipboard.":"瀏覽器無法存取剪贴板。","Copy selection":"複製已選取項目",copy:"複製","Border radius":"邊框圓角","Show all":"顯示所有",Apply:"應用","Please fill out this field":"ได้โปรดกรอกช่องข้อมูลนี้","Please enter a web address":"โปรดเติมที่อยู่บนเว็บ",Default:"ค่าปริยาย",Circle:"วงกลม",Dot:"จุด",Quadrate:"Quadrate",Find:"ค้นหา","Find Previous":"ค้นหาก่อนหน้านี้","Find Next":"ค้นหาถัดไป","Insert className":"ใส่ชื่อคลาส","Line height":"ความสูงเส้น",Spellchecking:"สะกดคำ"}},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>'},(e,t,i)=>{"use strict";i.d(t,{YW:()=>r,ov:()=>c,IL:()=>l});var o=i(28),s=i(76),n=i(47);const r=(e,t,i)=>{const r="jodit-color-picker",a=(0,o.normalizeColor)(i),l=e.c.div(r),c=e.o.textIcons?`<span>${e.i18n("palette")}</span>`:s.JO.get("palette"),d=e=>{const t=[];return(0,o.isPlainObject)(e)?Object.keys(e).forEach((i=>{t.push(`<div class="${r}__group ${r}__group-${i}">`),t.push(d(e[i])),t.push("</div>")})):(0,o.isArray)(e)&&e.forEach((e=>{t.push(`<span class='${r}__color-item ${a===e?r+"__color-item_active_true":""}' title="${e}" style="background-color:${e}" data-color="${e}"></span>`)})),t.join("")};l.appendChild(e.c.fromHTML(`<div class="${r}__groups">${d(e.o.colors)}</div>`)),l.appendChild(e.c.fromHTML(`<div data-ref="extra" class="${r}__extra"></div>`));const{extra:h}=(0,o.refs)(l);return e.o.showBrowserColorPicker&&(0,o.hasBrowserColorPicker)()&&(h.appendChild(e.c.fromHTML(`<div class="${r}__native">${c}<input type="color" value="#ffffff"/></div>`)),e.e.on(l,"change",(e=>{e.stopPropagation();const i=e.target;if(!i||!i.tagName||!n.i.isTag(i,"input"))return;const s=i.value||"";(0,o.isFunction)(t)&&t(s),e.preventDefault()}))),e.e.on(l,"mousedown touchend",(i=>{i.stopPropagation(),i.preventDefault();let s=i.target;if(s&&s.tagName&&!n.i.isTag(s,"svg")&&!n.i.isTag(s,"path")||!s.parentNode||(s=n.i.closest(s.parentNode,"span",e.editor)),!n.i.isTag(s,"span")||!s.classList.contains(r+"__color-item"))return;const a=(0,o.attr)(s,"-color")||"";t&&(0,o.isFunction)(t)&&t(a)})),e.e.fire("afterGenerateColorPicker",l,h,t,a),l};var a=i(51);const l=(e,t,i)=>{const n=e.c.div("jodit-tabs"),r=e.c.div("jodit-tabs__wrapper"),l=e.c.div("jodit-tabs__buttons"),c={},d=[];let h="",u=0;n.appendChild(l),n.appendChild(r);const p=e=>{c[e]&&(d.forEach((e=>{e.state.activated=!1})),(0,o.$$)(".jodit-tab",r).forEach((e=>{e.classList.remove("jodit-tab_active")})),c[e].button.state.activated=!0,c[e].tab.classList.add("jodit-tab_active"))};if(t.forEach((({icon:n,name:m,content:f})=>{const g=e.c.div("jodit-tab"),v=(0,s.zx)(e,n||m,m);e.e.on(v.container,"mousedown",(e=>e.preventDefault())),h||(h=m),l.appendChild(v.container),d.push(v),v.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+t.length),(0,o.isFunction)(f)?g.appendChild(e.c.div("jodit-tab_empty")):g.appendChild(a.wA.isInstanceOf(f,s.u1)?f.container:f),r.appendChild(g),v.onAction((()=>(p(m),(0,o.isFunction)(f)&&f.call(e),i&&(i.__activeTab=m),!1))),c[m]={button:v,tab:g},u+=1})),!u)return n;if((0,o.$$)("a",l).forEach((e=>{e.style.width=(100/u).toFixed(10)+"%"})),p(i&&i.__activeTab&&c[i.__activeTab]?i.__activeTab:h),i){let e=i.__activeTab;Object.defineProperty(i,"__activeTab",{configurable:!0,enumerable:!1,get(){return e},set(t){e=t,p(t)}})}return n},c=(e,t,i,r,a=!0)=>{let c;const d=[];if(t.upload&&e.o.uploader&&(e.o.uploader.url||e.o.uploader.insertImageAsBase64URI)){const i=e.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${e.i18n(a?"Drop image":"Drop file")}</strong><span><br>${e.i18n("or click")}</span><input type="file" accept="${a?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);e.uploader.bind(i,(i=>{const s=(0,o.isFunction)(t.upload)?t.upload:e.o.uploader.defaultHandlerSuccess;(0,o.isFunction)(s)&&s.call(e,i),e.e.fire("closeAllPopups")}),(t=>{e.e.fire("errorMessage",t.message),e.e.fire("closeAllPopups")})),d.push({icon:"upload",name:"Upload",content:i})}if(t.filebrowser&&(e.o.filebrowser.ajax.url||e.o.filebrowser.items.url)&&d.push({icon:"folder",name:"Browse",content(){r&&r(),t.filebrowser&&e.filebrowser.open(t.filebrowser,a)}}),t.url){const r=new s.y3(e,{type:"submit",variant:"primary",text:"Insert"}),a=new s.x4(e,[new s.u3(e,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new s.u3(e,{name:"text",label:"Alternative text"}),new s.eC(e,[r])]);c=null,i&&!n.i.isText(i)&&(n.i.isTag(i,"img")||(0,o.$$)("img",i).length)&&(c="IMG"===i.tagName?i:(0,o.$$)("img",i)[0],(0,o.val)(a.container,"input[name=url]",(0,o.attr)(c,"src")),(0,o.val)(a.container,"input[name=text]",(0,o.attr)(c,"alt")),r.state.text="Update"),i&&n.i.isTag(i,"a")&&((0,o.val)(a.container,"input[name=url]",(0,o.attr)(i,"href")),(0,o.val)(a.container,"input[name=text]",(0,o.attr)(i,"title")),r.state.text="Update"),a.onSubmit((i=>{(0,o.isFunction)(t.url)&&t.url.call(e,i.url,i.text)})),d.push({icon:"link",name:"URL",content:a.container})}return l(e,d)}},(e,t,i)=>{"use strict";i.d(t,{z:()=>s});var o=i(28);const s=(e,t)=>{t&&"normal"!==t?"center"!==t?((0,o.css)(e,"float",t),(0,o.clearCenterAlign)(e)):(0,o.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,o.css)(e,"float")&&-1!==["right","left"].indexOf((""+(0,o.css)(e,"float")).toLowerCase())&&(0,o.css)(e,"float",""),(0,o.clearCenterAlign)(e))}},(e,t,i)=>{"use strict";var o=i(29);t.Z=[{name:"eye",tooltip:"Open link",exec(e,t){const i=(0,o.Lj)(t,"href");t&&i&&e.ow.open(i)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var o=i(47),s=i(8),n=i(32),r=i(99);const a={name:"left",childTemplate:(e,t,i)=>i,list:["Left","Right","Center","Normal"],exec(e,t,{control:i}){if(!o.i.isTag(t,["img","jodit","jodit-media"]))return;const n=i.args&&(0,s.H)(i.args[0])?i.args[0].toLowerCase():"";if(!n)return!1;(0,r.z)(t,n),o.i.isTag(t,["jodit","jodit-media"])&&t.firstElementChild&&(0,r.z)(t.firstElementChild,n),e.synchronizeValues(),e.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"};t.Z=[{name:"delete",icon:"bin",tooltip:"Delete",exec(e,t){t&&e.s.removeNode(t)}},{name:"pencil",exec(e,t){"img"===t.tagName.toLowerCase()&&e.e.fire("openImageProperties",t)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec(e,t,{control:i}){if(!o.i.isTag(t,"img"))return;const r=i.args&&(0,s.H)(i.args[0])?i.args[0].toLowerCase():"";if(!r)return!1;(0,n.i)(t,"vertical-align","normal"===r?"":r),e.e.fire("recalcPositionPopup")}},a]},(e,t,i)=>{"use strict";var o=i(45),s=i(32),n=i(98);const r=e=>e.args&&(0,o.HD)(e.args[0])?e.args[0].toLowerCase():"";t.Z=[{name:"brush",popup(e,t,i,r){if(!(0,o.Zu)(e))return;const a=e.getInstance("Table",e.o).getAllSelectedCells();if(!a.length)return!1;const l=t=>(0,n.YW)(e,(i=>{a.forEach((e=>{(0,s.i)(e,t,i)})),e.lock(),e.synchronizeValues(),r(),e.unlock()}),(0,s.i)(a[0],t));return(0,n.IL)(e,[{name:"Background",content:l("background-color")},{name:"Text",content:l("color")},{name:"Border",content:l("border-color")}])},tooltip:"Background"},{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:(e,t,i)=>i,exec(e,t,{control:i}){const o=r(i);e.getInstance("Table",e.o).getAllSelectedCells().forEach((e=>{(0,s.i)(e,"vertical-align","normal"===o?"":o)}))},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},"\n",{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec(e,t,{control:i}){if(!(0,o.Zu)(e))return;const s=r(i);e.execCommand(s,!1,t)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec(e,t,{control:i}){if(!(0,o.Zu)(e))return;const s=r(i);e.execCommand(s,!1,t)},tooltip:"Add row"},{name:"delete",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec(e,t,{control:i}){if(!(0,o.Zu)(e))return;const s=r(i);e.execCommand(s,!1,t),e.e.fire("hidePopup")},tooltip:"Delete"}]},(e,t)=>{"use strict";t.Z=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},(e,t,i)=>{"use strict";var o=i(101);t.Z=[{name:"bin",tooltip:"Delete",exec(e,t){t&&e.s.removeNode(t)}},o.A]},e=>{e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg>'},e=>{e.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg>'},e=>{e.exports='<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg>'},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>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1411 541l-355 355 355 355 144-144q29-31 70-14 39 17 39 59v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l144-144-355-355-355 355 144 144q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l144 144 355-355-355-355-144 144q-19 19-45 19-12 0-24-5-40-17-40-59v-448q0-26 19-45t45-19h448q42 0 59 40 17 39-14 69l-144 144 355 355 355-355-144-144q-31-30-14-69 17-40 59-40h448q26 0 45 19t19 45v448q0 42-39 59-13 5-25 5-26 0-45-19z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 896q0 26-19 45l-256 256q-19 19-45 19t-45-19-19-45v-128h-1024v128q0 26-19 45t-45 19-45-19l-256-256q-19-19-19-45t19-45l256-256q19-19 45-19t45 19 19 45v128h1024v-128q0-26 19-45t45-19 45 19l256 256q19 19 19 45z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1596 1385q0 117-79 196t-196 79q-135 0-235-100l-777-776q-113-115-113-271 0-159 110-270t269-111q158 0 273 113l605 606q10 10 10 22 0 16-30.5 46.5t-46.5 30.5q-13 0-23-10l-606-607q-79-77-181-77-106 0-179 75t-73 181q0 105 76 181l776 777q63 63 145 63 64 0 106-42t42-106q0-82-63-145l-581-581q-26-24-60-24-29 0-48 19t-19 48q0 32 25 59l410 410q10 10 10 22 0 16-31 47t-47 31q-12 0-22-10l-410-410q-63-61-63-149 0-82 57-139t139-57q88 0 149 63l581 581q100 98 100 235z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg>'},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>'},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 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M813 1299l614-614q19-19 19-45t-19-45l-102-102q-19-19-45-19t-45 19l-467 467-211-211q-19-19-45-19t-45 19l-102 102q-19 19-19 45t19 45l358 358q19 19 45 19t45-19zm851-883v960q0 119-84.5 203.5t-203.5 84.5h-960q-119 0-203.5-84.5t-84.5-203.5v-960q0-119 84.5-203.5t203.5-84.5h960q119 0 203.5 84.5t84.5 203.5z"/></svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg>'},e=>{e.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},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>'},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>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg>'},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>'},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 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},e=>{e.exports='<svg fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1664 1344v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45z"/></svg>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 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>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg>'},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-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg>'},e=>{e.exports='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M844 472q0 60-19 113.5t-63 92.5-105 39q-76 0-138-57.5t-92-135.5-30-151q0-60 19-113.5t63-92.5 105-39q77 0 138.5 57.5t91.5 135 30 151.5zm-342 483q0 80-42 139t-119 59q-76 0-141.5-55.5t-100.5-133.5-35-152q0-80 42-139.5t119-59.5q76 0 141.5 55.5t100.5 134 35 152.5zm394-27q118 0 255 97.5t229 237 92 254.5q0 46-17 76.5t-48.5 45-64.5 20-76 5.5q-68 0-187.5-45t-182.5-45q-66 0-192.5 44.5t-200.5 44.5q-183 0-183-146 0-86 56-191.5t139.5-192.5 187.5-146 193-59zm239-211q-61 0-105-39t-63-92.5-19-113.5q0-74 30-151.5t91.5-135 138.5-57.5q61 0 105 39t63 92.5 19 113.5q0 73-30 151t-92 135.5-138 57.5zm432-104q77 0 119 59.5t42 139.5q0 74-35 152t-100.5 133.5-141.5 55.5q-77 0-119-59t-42-139q0-74 35-152.5t100.5-134 141.5-55.5z"/> </svg>'},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-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg>'},e=>{e.exports='<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg>'},e=>{e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg>'},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>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"/> </svg>'},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>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg>'}],t={};function i(o){var s=t[o];if(void 0!==s)return s.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";i.r(o),i.d(o,{Jodit:()=>Jodit});var e={};i.r(e),i.d(e,{Ajax:()=>p,Alert:()=>W,Async:()=>d.e,CommitStyle:()=>Ae.RP,Component:()=>m.wA,Confirm:()=>$,ContextMenu:()=>y,Create:()=>K,Dialog:()=>V,Dom:()=>j.i,EventEmitter:()=>c.vp,EventHandlersStore:()=>c.DG,Eventify:()=>c.aN,FileBrowser:()=>Ie,Helpers:()=>h,History:()=>Le,Icon:()=>L.JO,ImageEditor:()=>pe,LazyWalker:()=>j.b,Plugin:()=>G,PluginSystem:()=>Y.h,Popup:()=>L.GI,ProgressBar:()=>L.ko,Prompt:()=>U,Response:()=>u,STATUSES:()=>m.n$,Select:()=>Ae.Ph,Snapshot:()=>ze,StatusBar:()=>Me,Table:()=>Pe,ToolbarButton:()=>q,ToolbarCollection:()=>A,ToolbarContent:()=>N,ToolbarEditorCollection:()=>M,UIBlock:()=>L.eC,UIButton:()=>L.y3,UICheckbox:()=>L.mA,UIElement:()=>L.u1,UIForm:()=>L.x4,UIGroup:()=>L.qe,UIInput:()=>L.u3,UIList:()=>L.bz,UISeparator:()=>L.lU,UITextArea:()=>L.GJ,Uploader:()=>Ve,View:()=>T,ViewComponent:()=>m.Hr,ViewWithToolbar:()=>F,defaultNameSpace:()=>c.rO,isFileBrowserFilesItem:()=>xe,observable:()=>c.LO});var t={};i.r(t),i.d(t,{allowAttributes:()=>kt,fillEmptyParagraph:()=>Ct,removeInvTextNodes:()=>It,replaceOldTags:()=>wt,sanitizeAttributes:()=>xt,tryRemoveNode:()=>Et});var s={};i.r(s),i.d(s,{Backspace:()=>ut,DragAndDrop:()=>Ut,DragAndDropElement:()=>Yt,KeyArrowOutside:()=>ti,PasteFromWord:()=>Bt,WrapNodes:()=>Lt,about:()=>Qe,addNewLine:()=>Ze,bold:()=>pt,classSpan:()=>tt,cleanHtml:()=>Tt,clipboard:()=>Rt,color:()=>Kt,copyFormat:()=>Wt,enter:()=>ei,errorMessages:()=>ni,file:()=>Pi,focus:()=>et,font:()=>ri,formatBlock:()=>ai,fullsize:()=>li,hotkeys:()=>ci,hr:()=>Ei,iframe:()=>di,image:()=>ki,imageProcessor:()=>wi,imageProperties:()=>gi,indent:()=>Si,inlinePopup:()=>Ii,justify:()=>zi,limit:()=>Ti,lineHeight:()=>ji,link:()=>Ai,media:()=>Mi,mobile:()=>_i,orderedList:()=>Ni,paste:()=>Nt,pasteStorage:()=>Ht,placeholder:()=>Hi,poweredByJodit:()=>Bi,preview:()=>ko,print:()=>Co,redoUndo:()=>Oi,resizeCells:()=>po,resizeHandler:()=>eo,resizer:()=>Vi,search:()=>Xi,select:()=>Qi,selectCells:()=>go,size:()=>to,source:()=>ro,spellcheck:()=>co,stat:()=>ao,sticky:()=>lo,symbols:()=>ho,tab:()=>wo,table:()=>bo,tableKeyboardNavigation:()=>vo,tooltip:()=>yo,video:()=>Di,xpath:()=>So});var n={};i.r(n),i.d(n,{about:()=>Eo,addcolumn:()=>Io,addrow:()=>xo,angle_down:()=>zo,angle_left:()=>To,angle_right:()=>jo,angle_up:()=>Lo,arrows_alt:()=>Ao,arrows_h:()=>Mo,attachment:()=>Do,bin:()=>Po,bold:()=>_o,brush:()=>Ro,cancel:()=>qo,center:()=>No,chain_broken:()=>Bo,check:()=>Ho,check_square:()=>Oo,chevron:()=>Fo,copy:()=>Uo,copyformat:()=>Vo,crop:()=>Wo,cut:()=>$o,dedent:()=>Yo,dots:()=>Go,enter:()=>Ko,eraser:()=>Jo,eye:()=>Xo,file:()=>Zo,folder:()=>Qo,font:()=>es,fontsize:()=>ts,fullsize:()=>is,hr:()=>os,image:()=>ss,indent:()=>ns,info_circle:()=>rs,italic:()=>as,justify:()=>ls,left:()=>cs,line_height:()=>ds,link:()=>hs,lock:()=>us,menu:()=>ps,merge:()=>ms,ok:()=>fs,ol:()=>gs,omega:()=>vs,outdent:()=>bs,palette:()=>ys,paragraph:()=>ws,paste:()=>ks,pencil:()=>Cs,plus:()=>Ss,print:()=>Es,redo:()=>Is,resize:()=>xs,resize_handler:()=>zs,resizer:()=>Ts,right:()=>js,save:()=>Ls,search:()=>As,select_all:()=>Ds,settings:()=>Ms,shrink:()=>Ps,source:()=>_s,splitg:()=>Rs,splitv:()=>qs,strikethrough:()=>Ns,subscript:()=>Bs,superscript:()=>Hs,table:()=>Os,th:()=>Fs,th_list:()=>Vs,ul:()=>Ws,underline:()=>Us,undo:()=>$s,unlink:()=>Ys,unlock:()=>Gs,update:()=>Ks,upload:()=>Js,valign:()=>Xs,video:()=>Zs});var r=i(55),a=i(1),l=i(2),c=i(3),d=i(24),h=i(28);class u{constructor(e,t,i,o){this.request=e,this.status=t,this.statusText=i,this.body=o}get url(){return this.request.url}async json(){return JSON.parse(this.body)}text(){return Promise.resolve(this.body)}async blob(){return this.body}}a.D.prototype.defaultAjaxOptions={successStatuses:[200,201,202],dataType:"json",method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr(){return new XMLHttpRequest}};class p{constructor(e,t){this.jodit=e,this.resolved=!1,this.activated=!1,this.options=(0,h.ConfigProto)(t||{},a.D.prototype.defaultAjaxOptions),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest,e&&e.e&&e.e.on("beforeDestruct",(()=>this.destruct()))}__buildParams(e,t){return(0,h.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):(0,h.isString)(e)||this.j.ow.FormData&&e instanceof this.j.ow.FormData?e:(0,h.buildQuery)(e)}get o(){return this.options}get j(){return this.jodit}abort(){try{this.xhr.abort()}catch(e){}return this}send(){this.activated=!0;const{xhr:e,o:t}=this,i=this.prepareRequest();return this.j.async.promise(((o,s)=>{var n;const r=()=>{s((0,h.error)("Connection error"))},a=()=>{this.resolved=!0,o(new u(i,e.status,e.statusText,e.responseType?e.response:e.responseText))};e.onload=a,e.onabort=r,e.onerror=r,e.ontimeout=r,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,i;let o=0;e.lengthComputable&&(o=e.loaded/e.total*100),null===(i=(t=this.options).onProgress)||void 0===i||i.call(t,o)},e.onreadystatechange=()=>{var i,o;null===(o=(i=this.options).onProgress)||void 0===o||o.call(i,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?a():s((0,h.error)(e.statusText||"Connection error")))},e.withCredentials=null!==(n=t.withCredentials)&&void 0!==n&&n;const{url:l,data:c,method:d}=i;e.open(d,l,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);const{headers:p}=t;p&&e.setRequestHeader&&Object.keys(p).forEach((t=>{e.setRequestHeader(t,p[t])})),this.j.async.setTimeout((()=>{e.send(c?this.__buildParams(c):void 0)}),0)}))}prepareRequest(){if(!this.o.url)throw(0,h.error)("Need URL for AJAX request");let e=this.o.url;const t=this.o.data,i=(this.o.method||"get").toLowerCase();if("get"===i&&t&&(0,h.isPlainObject)(t)){const i=e.indexOf("?");if(-1!==i){const o=(0,h.parseQuery)(e);e=e.substr(0,i)+"?"+(0,h.buildQuery)({...o,...t})}else e+="?"+(0,h.buildQuery)(this.o.data)}const o={url:e,method:i,data:t};return p.log.splice(100),p.log.push(o),o}destruct(){this.activated&&!this.resolved&&(this.abort(),this.resolved=!0)}}p.log=[];var m=i(51),f=i(66),g=i(68),v=i(45),b=i(50);let y=class extends f.G{className(){return"ContextMenu"}show(e,t,i){const o=this,s=this.j.c.div(this.getFullElName("actions"));(0,v.kJ)(i)&&(i.forEach((e=>{if(!e)return;const t=(0,g.zx)(this.jodit,e.icon||"empty",e.title);this.jodit&&t.setParentView(this.jodit),t.setMod("context","menu"),t.onAction((t=>{var i;return null===(i=e.exec)||void 0===i||i.call(o,t),o.close(),!1})),s.appendChild(t.container)})),this.setContent(s).open((()=>({left:e,top:t,width:0,height:0})),!0))}};y=(0,r.gn)([b.w],y);const w=(()=>{let e;return()=>(void 0===e&&(e=(()=>{const e="___Jodit___"+Math.random();try{localStorage.setItem(e,"1");const t="1"===localStorage.getItem(e);return localStorage.removeItem(e),t}catch(e){}return!1})()),e)})();class k{constructor(e){this.rootKey=e}set(e,t){try{const i=localStorage.getItem(this.rootKey),o=i?JSON.parse(i):{};o[e]=t,localStorage.setItem(this.rootKey,JSON.stringify(o))}catch(e){}return this}delete(e){try{localStorage.removeItem(this.rootKey)}catch(e){}return this}get(e){try{const t=localStorage.getItem(this.rootKey),i=t?JSON.parse(t):{};return void 0!==i[e]?i[e]:null}catch(e){}}exists(e){return null!=this.get(e)}clear(){try{localStorage.removeItem(this.rootKey)}catch(e){}return this}}class C{constructor(){this.data=new Map}set(e,t){return this.data.set(e,t),this}delete(e){return this.data.delete(e),this}get(e){return this.data.get(e)}exists(e){return this.data.has(e)}clear(){return this.data.clear(),this}}const S="Jodit_";class E{constructor(e,t){this.provider=e,this.prefix=S,t&&(this.prefix+=t)}set(e,t){return this.provider.set((0,h.camelCase)(this.prefix+e),t),this}delete(e){return this.provider.delete((0,h.camelCase)(this.prefix+e)),this}get(e){return this.provider.get((0,h.camelCase)(this.prefix+e))}exists(e){return this.provider.exists((0,h.camelCase)(this.prefix+e))}clear(){return this.provider.clear(),this}static makeStorage(e=!1,t){let i;return e&&w()&&(i=new k(S+t)),i||(i=new C),new E(i,t)}}var I=i(53),x=i(49),z=i(59);class T extends m.wA{constructor(e,t=!1){super(),this.isJodit=t,this.isView=!0,this.mods={},this.components=new Set,this.version="3.18.2",this.buffer=E.makeStorage(),this.storage=E.makeStorage(!0,this.componentName),this.OPTIONS=T.defaultOptions,this.__isFullSize=!1,this.__whoLocked="",this.isLockedNotBy=e=>this.isLocked&&this.__whoLocked!==e,this.__modulesInstances=new Map,this.id=""+(new Date).getTime(),this.buffer=E.makeStorage(),this.initOptions(e),this.initOwners(),this.events=new c.vp(this.od),this.create=new K(this.od),this.container=this.c.div(),this.container.classList.add("jodit"),this.progressbar=new L.ko(this)}setMod(...[e,t]){return z.$.setMod.call(this,e,t),this}getMod(e){return z.$.getMod.call(this,e)}getElm(e){return z.F.getElm.call(this,e)}getElms(e){return z.F.getElms.call(this,e)}get basePath(){return this.o.basePath?this.o.basePath:l.BASE_PATH}get defaultTimeout(){return(0,h.isVoid)(this.o.defaultTimeout)?100:this.o.defaultTimeout}get c(){return this.create}get container(){return this.__container}set container(e){this.__container=e}get e(){return this.events}get options(){return this.__options}set options(e){this.__options=e}get o(){return this.options}i18n(e,...t){return(0,h.i18n)(e,t,this.options)}toggleFullSize(e){void 0===e&&(e=!this.__isFullSize),e!==this.__isFullSize&&(this.__isFullSize=e,this.events&&this.e.fire("toggleFullSize",e))}get isLocked(){return""!==this.__whoLocked}lock(e="any"){return!this.isLocked&&(this.__whoLocked=e,!0)}unlock(){return!!this.isLocked&&(this.__whoLocked="",!0)}get isFullSize(){return this.__isFullSize}getVersion(){return"3.18.2"}static getVersion(){return"3.18.2"}initOptions(e){this.options=(0,h.ConfigProto)(e||{},(0,h.ConfigProto)(this.options||{},T.defaultOptions))}initOwners(){var e;this.ownerWindow=null!==(e=this.o.ownerWindow)&&void 0!==e?e:window}attachEvents(e){if(!e)return;const t=null==e?void 0:e.events;t&&Object.keys(t).forEach((e=>this.e.on(e,t[e])))}getInstance(e,t){const i=this.e.fire((0,h.camelCase)("getInstance_"+e),t);if(i)return i;const o=I.qz[e],s=this.__modulesInstances;if(!(0,h.isFunction)(o))throw(0,h.error)("Need real module name");if(!s.has(e)){const i=o.prototype instanceof m.Hr?new o(this,t):new o(t);this.components.add(i),s.set(e,i)}return s.get(e)}addDisclaimer(e){this.container.appendChild(e)}beforeDestruct(){this.e.fire(m.n$.beforeDestruct,this),this.components.forEach((e=>{(0,h.isDestructable)(e)&&!e.isInDestruct&&e.destruct()})),this.components.clear()}destruct(){this.isDestructed||(this.async&&this.async.destruct(),this.events&&this.e.destruct(),this.buffer&&this.buffer.clear(),j.i.safeRemove(this.container),super.destruct())}}T.esNext=!0,(0,r.gn)([(0,x.hook)(m.n$.beforeDestruct)],T.prototype,"beforeDestruct",null),T.defaultOptions={extraButtons:[],textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0};var j=i(47),L=i(76);let A=class extends L.bz{constructor(e){super(e),this.listenEvents="updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur",this.update=this.j.async.debounce(this.immediateUpdate,(()=>this.j.defaultTimeout)),this.initEvents()}className(){return"ToolbarCollection"}get firstButton(){const[e]=this.buttons;return e||null}makeButton(e,t=null){return H(this.j,e,t)}shouldBeActive(e){}shouldBeDisabled(e){}getTarget(e){return e.target||null}immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar"))}setDirection(e){this.container.style.direction=e,this.container.setAttribute("dir",e)}initEvents(){this.j.e.on(this.listenEvents,this.update).on("afterSetMode focus",this.immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(e){throw(0,h.error)("The method is not implemented for this class.")}build(e,t=null){const i=this.j.e.fire("beforeToolbarBuild",e);return i&&(e=i),super.build(e,t),this}destruct(){this.isDestructed||(this.j.e.off(this.listenEvents,this.update).off("afterSetMode focus",this.immediateUpdate),super.destruct())}};(0,r.gn)([x.autobind],A.prototype,"immediateUpdate",null),A=(0,r.gn)([x.component],A);let M=class extends A{constructor(e){super(e),this.checkActiveStatus=(e,t)=>{let i=0,o=0;return Object.keys(e).forEach((s=>{const n=e[s];(0,h.isFunction)(n)?n(this.j,""+(0,h.css)(t,s))&&(i+=1):-1!==n.indexOf(""+(0,h.css)(t,s))&&(i+=1),o+=1})),o===i},this.prependInvisibleInput(this.container)}className(){return"ToolbarEditorCollection"}shouldBeDisabled(e){const t=super.shouldBeDisabled(e);if(void 0!==t)return t;const i=void 0===e.control.mode?l.MODE_WYSIWYG:e.control.mode;return!(i===l.MODE_SPLIT||i===this.j.getRealMode())}shouldBeActive(e){const t=super.shouldBeActive(e);if(void 0!==t)return t;const i=this.j.selection?this.j.s.current():null;if(!i)return!1;let o;if(e.control.tags){const t=e.control.tags;if(o=i,j.i.up(o,(e=>{if(e&&-1!==t.indexOf(e.nodeName.toLowerCase()))return!0}),this.j.editor))return!0}if(e.control.css){const t=e.control.css;if(o=i,j.i.up(o,(e=>{if(e&&!j.i.isText(e))return this.checkActiveStatus(t,e)}),this.j.editor))return!0}return!1}getTarget(e){return e.target||this.j.s.current()||null}prependInvisibleInput(e){const t=this.j.create.element("input",{tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});j.i.appendChildFirst(e,t)}showInline(e){this.jodit.e.fire("showInlineToolbar",e)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}};M=(0,r.gn)([x.component],M);var D=i(67),P=i(60),_=i(18),R=i(71);let q=class extends g.y3{constructor(e,t,i=null){super(e),this.control=t,this.target=i,this.state={...(0,g.Yc)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null,e.e.on([this.button,this.trigger],"mousedown",(e=>e.preventDefault())),this.onAction(this.onClick),this.hookStatus(_.n.ready,(()=>{this.initFromControl(),this.initTooltip(),this.update()}))}className(){return"ToolbarButton"}get toolbar(){return this.closest(A)}get button(){return this.container.querySelector(`button.${this.componentName}__button`)}update(){const{control:e,state:t}=this,i=this.closest(A);t.disabled=this.calculateDisabledStatus(i),t.activated=this.calculateActivatedStatus(i),(0,h.isFunction)(e.update)&&i&&e.update(this,i.jodit),super.update()}calculateActivatedStatus(e){return!((0,h.isJoditObject)(this.j)&&!this.j.editorIsActive||(!(0,h.isFunction)(this.control.isActive)||!this.control.isActive(this.j,this.control,this))&&(!e||!e.shouldBeActive(this)))}calculateDisabledStatus(e){return!(!this.j.o.disabled&&(!this.j.o.readonly||this.j.o.activeButtonsInReadOnly&&this.j.o.activeButtonsInReadOnly.includes(this.control.name))&&(!(0,h.isFunction)(this.control.isDisabled)||!this.control.isDisabled(this.j,this.control,this))&&(!e||!e.shouldBeDisabled(this)))}onChangeActivated(){(0,h.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,h.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,h.attr)(this.button,"tabindex",this.state.tabIndex)}onChangeTooltip(){(0,h.attr)(this.button,"aria-label",this.state.tooltip),super.onChangeTooltip()}createContainer(){const e=this.componentName,t=this.j.c.span(e),i=super.createContainer();return(0,h.attr)(t,"role","listitem"),i.classList.remove(e),i.classList.add(e+"__button"),Object.defineProperty(i,"component",{value:this}),t.appendChild(i),this.trigger=this.j.c.fromHTML(`<span role="trigger" class="${e}__trigger">${P.J.get("chevron")}</span>`),t}focus(){var e;null===(e=this.container.querySelector("button"))||void 0===e||e.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):j.i.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){const e=this.state.disabled?"disabled":null;(0,h.attr)(this.trigger,"disabled",e),(0,h.attr)(this.button,"disabled",e),(0,h.attr)(this.container,"disabled",e)}initTooltip(){this.j.o.textIcons||!this.j.o.showTooltip||this.j.o.useNativeTooltip||this.j.e.off(this.container,"mouseenter mouseleave").on(this.container,"mousemove",(e=>{this.state.tooltip&&!this.state.disabled&&this.j.e.fire("delayShowTooltip",(()=>({x:e.clientX+10,y:e.clientY+10})),this.state.tooltip)})).on(this.container,"mouseleave",(()=>{this.j.e.fire("hideTooltip")}))}initFromControl(){var e;const{control:t,state:i}=this;this.updateSize(),i.name=t.name;const{textIcons:o}=this.j.o;if(!0===o||(0,h.isFunction)(o)&&o(t.name)||t.template)i.icon=(0,g.Yc)().icon,i.text=t.text||t.name;else{if(t.iconURL)i.icon.iconURL=t.iconURL;else{const o=t.icon||t.name;i.icon.name=P.J.exists(o)||(null===(e=this.j.o.extraIcons)||void 0===e?void 0:e[o])?o:""}t.iconURL||i.icon.name||(i.text=t.text||t.name)}t.tooltip&&(i.tooltip=this.j.i18n((0,h.isFunction)(t.tooltip)?t.tooltip(this.j,t,this):t.tooltip)),i.hasTrigger=!!(t.list||t.popup&&t.exec)}onTriggerClick(e){var t,i,o;if(this.openedPopup)return void this.closePopup();const{control:s}=this;if(e.buffer={actionTrigger:this},s.list)return this.openControlList(s);if((0,h.isFunction)(s.popup)){const e=this.openPopup();if(e.parentElement=this,!1!==this.j.e.fire((0,h.camelCase)(`before-${s.name}-open-popup`),this.target,s,e)){const n=null!==(o=null!==(i=null===(t=this.toolbar)||void 0===t?void 0:t.getTarget(this))&&void 0!==i?i:this.target)&&void 0!==o?o:null,r=s.popup(this.j,n,s,this.closePopup,this);r&&e.setContent((0,h.isString)(r)?this.j.c.fromHTML(r):r).open((()=>(0,h.position)(this.container)),!1,this.j.o.allowTabNavigation?this.container:void 0)}this.j.e.fire((0,h.camelCase)(`after-${s.name}-open-popup`),e.container)}}openControlList(e){var t;const i=null!==(t=this.jodit.options.controls)&&void 0!==t?t:{},o=e=>(0,R.z)(e,i),s=e.list,n=this.openPopup(),r=B(this.j);n.parentElement=this,r.parentElement=n,r.mode="vertical";const a=(t,i)=>{if((0,h.isString)(i)&&o(i))return{name:""+i,...o(i)};if((0,h.isString)(t)&&o(t))return{name:""+t,...o(t),..."object"==typeof i?i:{}};const s={name:""+t,template:e.childTemplate,exec:e.exec,data:e.data,command:e.command,isActive:e.isChildActive,isDisabled:e.isChildDisabled,mode:e.mode,args:[...e.args?e.args:[],t,i]};return(0,h.isString)(i)&&(s.text=i),s};r.build((0,h.isArray)(s)?s.map(a):(0,h.keys)(s,!1).map((e=>a(e,s[e]))),this.target),n.setContent(r.container).open((()=>(0,h.position)(this.container)),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(e){this.openedPopup&&(e&&j.i.isNode(e.target)&&(j.i.isOrContains(this.container,e.target)||this.openedPopup.isOwnClick(e))||this.closePopup())}openPopup(){return this.closePopup(),this.openedPopup=new D.G(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null)}onClick(e){var t,i,o,s,n,r,a;const{control:l}=this;if((0,h.isFunction)(l.exec)){const c=null!==(o=null!==(i=null===(t=this.toolbar)||void 0===t?void 0:t.getTarget(this))&&void 0!==i?i:this.target)&&void 0!==o?o:null,d=l.exec(this.j,c,{control:l,originalEvent:e,button:this});if(!1!==d&&!0!==d&&(null===(n=null===(s=this.j)||void 0===s?void 0:s.e)||void 0===n||n.fire("synchro"),this.parentElement&&this.parentElement.update(),null===(a=null===(r=this.j)||void 0===r?void 0:r.e)||void 0===a||a.fire("closeAllPopups afterExec")),!1!==d)return}return l.list?this.openControlList(l):(0,h.isFunction)(l.popup)?this.onTriggerClick(e):void((l.command||l.name)&&((0,h.call)((0,h.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),l.command||l.name,!1,l.args&&l.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.closePopup(),super.destruct()}};(0,r.gn)([(0,x.watch)("state.tooltip")],q.prototype,"onChangeTooltip",null),(0,r.gn)([(0,x.watch)("state.hasTrigger")],q.prototype,"onChangeHasTrigger",null),(0,r.gn)([(0,x.watch)("trigger:click")],q.prototype,"onTriggerClick",null),(0,r.gn)([x.autobind],q.prototype,"onOutsideClick",null),(0,r.gn)([x.autobind],q.prototype,"closePopup",null),q=(0,r.gn)([x.component],q);let N=class extends g.y3{constructor(e,t,i=null){super(e),this.control=t,this.target=i,this.container.classList.add(`${this.componentName}_${this.clearName(t.name)}`),(0,h.attr)(this.container,"role","content")}className(){return"ToolbarContent"}update(){const e=this.control.getContent(this.j,this.control,this);((0,h.isString)(e)||e.parentNode!==this.container)&&(j.i.detach(this.container),this.container.appendChild((0,h.isString)(e)?this.j.create.fromHTML(e):e)),super.update()}createContainer(){return this.j.c.span(this.componentName)}};function B(e,t){const i=(0,h.isJoditObject)(e)?new M(e):new A(e);return e.o.textIcons&&i.container.classList.add("jodit_text_icons"),t&&(i.parentElement=t),e.o.toolbarButtonSize&&(i.buttonSize=e.o.toolbarButtonSize),i}function H(e,t,i=null){if((0,h.isFunction)(t.getContent))return new N(e,t,i);const o=new q(e,t,i);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,o}N=(0,r.gn)([x.component],N);var O=i(75);class F extends T{constructor(e,t=!1){super(e,t),this.toolbar=B(this),this.defaultToolbarContainer=this.c.div("jodit-toolbar__box"),this.registeredButtons=new Set,this.groupToButtons={},this.isJodit=!1,this.isJodit=t,this.e.on("beforeToolbarBuild",this.beforeToolbarBuild)}get toolbarContainer(){return this.o.fullsize||!(0,h.isString)(this.o.toolbar)&&!j.i.isHTMLElement(this.o.toolbar)?(this.o.toolbar&&j.i.appendChildFirst(this.container,this.defaultToolbarContainer),this.defaultToolbarContainer):(0,h.resolveElement)(this.o.toolbar,this.o.shadowRoot||this.od)}setPanel(e){this.o.toolbar=e,this.buildToolbar()}buildToolbar(){if(!this.o.toolbar)return;const e=this.o.buttons?(0,h.splitArray)(this.o.buttons):[];this.toolbar.setRemoveButtons(this.o.removeButtons).build(e.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}getRegisteredButtonGroups(){return this.groupToButtons}registerButton(e){var t;this.registeredButtons.add(e);const i=null!==(t=e.group)&&void 0!==t?t:"other";return this.groupToButtons[i]||(this.groupToButtons[i]=[]),null!=e.position?this.groupToButtons[i][e.position]=e.name:this.groupToButtons[i].push(e.name),this}unregisterButton(e){var t;this.registeredButtons.delete(e);const i=null!==(t=e.group)&&void 0!==t?t:"other",o=this.groupToButtons[i];if(o){const t=o.indexOf(e.name);-1!==t&&o.splice(t,1),0===o.length&&delete this.groupToButtons[i]}return this}beforeToolbarBuild(e){if(Object.keys(this.groupToButtons).length)return e.map((e=>(0,O.A)(e)&&e.group&&this.groupToButtons[e.group]?{group:e.group,buttons:[...e.buttons,...this.groupToButtons[e.group]]}:e))}destruct(){this.isDestructed||(this.setStatus(m.n$.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.toolbar.destruct(),super.destruct())}}(0,r.gn)([x.autobind],F.prototype,"beforeToolbarBuild",null),a.D.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[]},a.D.prototype.controls.dialog={close:{icon:"cancel",exec(e){e.close(),e.toggleFullSizeBox(!1)}}};let V=class extends F{constructor(e){super(e),this.destroyAfterClose=!1,this.moved=!1,this.iSetMaximization=!1,this.resizable=!1,this.draggable=!1,this.startX=0,this.startY=0,this.startPoint={x:0,y:0,w:0,h:0},this.lockSelect=()=>{this.setMod("moved",!0)},this.unlockSelect=()=>{this.setMod("moved",!1)},this.onResize=()=>{this.options&&this.o.resizable&&!this.moved&&this.isOpened&&!this.offsetX&&!this.offsetY&&this.setPosition()},this.isModal=!1,this.isOpened=!1;const t=this;t.options=(0,h.ConfigProto)(null!=e?e:{},(0,h.ConfigProto)({toolbarButtonSize:"middle"},(0,h.ConfigProto)(a.D.prototype.dialog,T.defaultOptions))),j.i.safeRemove(t.container);const i=this.getFullElName.bind(this);t.container=this.c.fromHTML(`<div style="z-index:${t.o.zIndex}" class="jodit jodit-dialog ${this.componentName}">\n\t\t\t\t<div class="${i("overlay")}"></div>\n\t\t\t\t<div class="${this.getFullElName("panel")}">\n\t\t\t\t\t<div class="${i("header")}">\n\t\t\t\t\t\t<div class="${i("header-title")}"></div>\n\t\t\t\t\t\t<div class="${i("header-toolbar")}"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="${i("content")}"></div>\n\t\t\t\t\t<div class="${i("footer")}"></div>\n\t\t\t\t\t<div class="${i("resizer")}">${L.JO.get("resize_handler")}</div>\n\t\t\t\t</div>\n\t\t\t</div>`),(0,h.attr)(t.container,"role","dialog"),Object.defineProperty(t.container,"component",{value:this}),t.setMod("theme",t.o.theme||"default").setMod("resizable",!!t.o.resizable);const o=t.getElm("panel");(0,h.assert)(null!=o,"Panel element does not exist");const s=t.getElm("resizer");(0,h.assert)(null!=s,"Resizer element does not exist");const n=t.getElm("header-title");(0,h.assert)(null!=n,"header-title element does not exist");const r=t.getElm("content");(0,h.assert)(null!=r,"Content element does not exist");const l=t.getElm("footer");(0,h.assert)(null!=l,"Footer element does not exist");const c=t.getElm("header-toolbar");(0,h.assert)(null!=c,"header-toolbar element does not exist"),t.dialog=o,t.resizer=s,t.dialogbox_header=n,t.dialogbox_content=r,t.dialogbox_footer=l,t.dialogbox_toolbar=c,(0,h.css)(t.dialog,{maxWidth:t.options.maxWidth,minHeight:t.options.minHeight,minWidth:t.options.minWidth});const d=t.getElm("header");d&&t.e.on(d,"pointerdown touchstart",t.onHeaderMouseDown),t.e.on(t.resizer,"mousedown touchstart",t.onResizerMouseDown);const u=I.pw.get("fullsize");(0,h.isFunction)(u)&&u(t),this.e.on(t.container,"close_dialog",t.close).on(this.ow,"keydown",this.onEsc).on(this.ow,"resize",this.onResize)}className(){return"Dialog"}get destination(){return this.od.body}setElements(e,t){const i=[];(0,h.asArray)(t).forEach((t=>{if((0,h.isArray)(t)){const o=this.c.div(this.getFullElName("column"));return i.push(o),e.appendChild(o),this.setElements(o,t)}let o;o=(0,h.isString)(t)?this.c.fromHTML(t):(0,h.hasContainer)(t)?t.container:t,i.push(o),o.parentNode!==e&&e.appendChild(o)})),(0,h.toArray)(e.childNodes).forEach((t=>{-1===i.indexOf(t)&&e.removeChild(t)}))}onMouseUp(){(this.draggable||this.resizable)&&(this.removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}onHeaderMouseDown(e){const t=e.target;!this.o.draggable||t&&t.nodeName.match(/^(INPUT|SELECT)$/)||(this.draggable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.x=(0,h.css)(this.dialog,"left"),this.startPoint.y=(0,h.css)(this.dialog,"top"),this.setMaxZIndex(),e.cancelable&&e.preventDefault(),this.lockSelect(),this.addGlobalResizeListeners(),this.e&&this.e.fire(this,"startMove"))}onMouseMove(e){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+e.clientX-this.startX,this.startPoint.y+e.clientY-this.startY),this.e&&this.e.fire(this,"move",e.clientX-this.startX,e.clientY-this.startY),e.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+e.clientX-this.startX,this.startPoint.h+e.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",e.clientX-this.startX,e.clientY-this.startY))}onEsc(e){if(this.isOpened&&e.key===l.KEY_ESC&&!0!==this.getMod("static")){const t=this.getMaxZIndexDialog();t?t.close():this.close(),e.stopImmediatePropagation()}}onResizerMouseDown(e){this.resizable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}addGlobalResizeListeners(){const e=this;e.e.on(e.ow,"pointermove touchmove",e.onMouseMove).on(e.ow,"pointerup touchend",e.onMouseUp)}removeGlobalResizeListeners(){const e=this;e.e.off(e.ow,"mousemove pointermove",e.onMouseMove).off(e.ow,"mouseup pointerup",e.onMouseUp)}setSize(e,t){return null==e&&(e=this.dialog.offsetWidth),null==t&&(t=this.dialog.offsetHeight),(0,h.css)(this.dialog,{width:e,height:t}),this}calcAutoSize(){return this.setSize("auto","auto"),this.setSize(),this}setPosition(e,t){let i=this.ow.innerWidth/2-this.dialog.offsetWidth/2,o=this.ow.innerHeight/2-this.dialog.offsetHeight/2;return 0>i&&(i=0),0>o&&(o=0),void 0!==e&&void 0!==t&&(this.offsetX=e,this.offsetY=t,this.moved=Math.abs(e-i)>100||Math.abs(t-o)>100),this.dialog.style.left=(e||i)+"px",this.dialog.style.top=(t||o)+"px",this}setHeader(e){return this.setElements(this.dialogbox_header,e),this}setContent(e){return this.setElements(this.dialogbox_content,e),this}setFooter(e){return this.setElements(this.dialogbox_footer,e),this.setMod("footer",!!e),this}getZIndex(){return parseInt((0,h.css)(this.container,"zIndex"),10)||0}getMaxZIndexDialog(){let e,t,i=0,o=this;return(0,h.$$)(".jodit-dialog",this.destination).forEach((s=>{e=s.component,t=parseInt((0,h.css)(s,"zIndex"),10),e.isOpened&&!isNaN(t)&&t>i&&(o=e,i=t)})),o}setMaxZIndex(){let e=20000004,t=0;(0,h.$$)(".jodit-dialog",this.destination).forEach((i=>{t=parseInt((0,h.css)(i,"zIndex"),10),e=Math.max(isNaN(t)?0:t,e)})),this.container.style.zIndex=""+(e+1)}maximization(e){return(0,h.isVoid)(e)&&(e=!this.getMod("fullsize")),this.setMod("fullsize",e),this.toggleFullSizeBox(e),this.iSetMaximization=e,e}toggleFullSizeBox(e){[this.destination,this.destination.parentNode].forEach((t=>{t&&t.classList&&t.classList.toggle("jodit_fullsize-box_true",e)}))}open(e,t,i,o){if(I.TB.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;(0,h.isBoolean)(e)&&(i=e),(0,h.isBoolean)(t)&&(o=t),this.destroyAfterClose=!0===i;const s=(0,h.isBoolean)(e)?void 0:e,n=(0,h.isBoolean)(t)?void 0:t;return void 0!==n&&this.setHeader(n),s&&this.setContent(s),this.setMod("active",!0),this.isOpened=!0,this.setModal(o),this.destination.appendChild(this.container),this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex(),this.o.fullsize&&this.maximization(!0),this.e.fire("afterOpen",this),this}setModal(e){return this.isModal=!!e,this.setMod("modal",this.isModal),this}close(e){var t,i;return this.isDestructed||!this.isOpened||!0===this.getMod("static")||(e&&(e.stopImmediatePropagation(),e.preventDefault()),this.e&&!1===this.e.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,this.e.fire("toggleFullSize",!1),this.iSetMaximization&&this.maximization(!1),j.i.safeRemove(this.container),this.removeGlobalResizeListeners(),this.destroyAfterClose&&this.destruct(),null===(t=this.e)||void 0===t||t.fire(this,"afterClose"),null===(i=this.e)||void 0===i||i.fire(this.ow,"joditCloseDialog"))),this}buildToolbar(){this.o.buttons&&this.toolbar.build((0,h.splitArray)(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}destruct(){this.isInDestruct||(this.setStatus(m.n$.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.onEsc).off(this.ow,"resize",this.onResize)),super.destruct())}};(0,r.gn)([x.autobind],V.prototype,"onMouseUp",null),(0,r.gn)([x.autobind],V.prototype,"onHeaderMouseDown",null),(0,r.gn)([x.autobind],V.prototype,"onMouseMove",null),(0,r.gn)([x.autobind],V.prototype,"onEsc",null),(0,r.gn)([x.autobind],V.prototype,"onResizerMouseDown",null),(0,r.gn)([x.autobind],V.prototype,"close",null),(0,r.gn)([(0,x.hook)("ready")],V.prototype,"buildToolbar",null),V=(0,r.gn)([x.component],V);const W=(e,t,i,o="jodit-dialog_alert")=>{(0,h.isFunction)(t)&&(i=t,t=void 0);const s=new V,n=s.c.div(o),r=(0,L.zx)(s,"ok","Ok");return(0,h.asArray)(e).forEach((e=>{n.appendChild(j.i.isNode(e)?e:s.c.fromHTML(e))})),r.onAction((()=>{i&&(0,h.isFunction)(i)&&!1===i(s)||s.close()})),s.setFooter([r]),s.open(n,t||" ",!0,!0),r.focus(),s},U=(e,t,i,o,s)=>{const n=new V,r=(0,L.zx)(n,"cancel","Cancel"),a=(0,L.zx)(n,"ok","Ok"),l=n.c.element("form",{class:"jodit-dialog_prompt"}),c=n.c.element("input",{autofocus:!0,class:"jodit-input"}),d=n.c.element("label");(0,h.isFunction)(t)&&(i=t,t=void 0),o&&(0,h.attr)(c,"placeholder",o),d.appendChild(n.c.text(e)),l.appendChild(d),l.appendChild(c),r.onAction(n.close);const u=()=>{i&&(0,h.isFunction)(i)&&!1===i(c.value)||n.close()};return a.onAction(u),n.e.on(l,"submit",(()=>(u(),!1))),n.setFooter([a,r]),n.open(l,t||" ",!0,!0),c.focus(),void 0!==s&&s.length&&(c.value=s,c.select()),n},$=(e,t,i)=>{const o=new V,s=o.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),n=o.c.element("label");(0,h.isFunction)(t)&&(i=t,t=void 0),n.appendChild(o.c.fromHTML(e)),s.appendChild(n);const r=e=>()=>{i&&!1===i(e)||o.close()},a=(0,L.zx)(o,"cancel","Cancel"),l=(0,L.zx)(o,"ok","Yes");return a.onAction(r(!1)),l.onAction(r(!0)),o.e.on(s,"submit",(()=>(r(!0)(),!1))),o.setFooter([l,a]),o.open(s,t||" ",!0,!0),l.focus(),o};var Y=i(54);class G extends m.Hr{constructor(e){super(e),this.requires=[],this.buttons=[],this.hasStyle=!1,e.e.on("afterPluginSystemInit",(()=>{var t;(0,h.isJoditObject)(e)&&(null===(t=this.buttons)||void 0===t||t.forEach((t=>{e.registerButton(t)})))})).on("afterInit",(()=>{this.setStatus(m.n$.ready),this.afterInit(e)})).on("beforeDestruct",this.destruct)}className(){return""}init(e){}destruct(){var e,t,i;if(!this.isInDestruct){this.setStatus(m.n$.beforeDestruct);const{j:o}=this;(0,h.isJoditObject)(o)&&(null===(e=this.buttons)||void 0===e||e.forEach((e=>{null==o||o.unregisterButton(e)}))),null===(i=null===(t=this.j)||void 0===t?void 0:t.events)||void 0===i||i.off("beforeDestruct",this.destruct),this.beforeDestruct(this.j),super.destruct()}}}(0,r.gn)([x.autobind],G.prototype,"destruct",null);class K{constructor(e,t){this.document=e,this.createAttributes=t}get doc(){return(0,h.isFunction)(this.document)?this.document():this.document}element(e,t,i){const o=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(o),t&&((0,h.isPlainObject)(t)?(0,h.attr)(o,t):i=t),i&&(0,h.asArray)(i).forEach((e=>o.appendChild((0,h.isString)(e)?this.fromHTML(e):e))),o}div(e,t,i){const o=this.element("div",t,i);return e&&(o.className=e),o}span(e,t,i){const o=this.element("span",t,i);return e&&(o.className=e),o}a(e,t,i){const o=this.element("a",t,i);return e&&(o.className=e),o}text(e){return this.doc.createTextNode(e)}fake(){return this.text(l.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){const i=this.div();i.innerHTML=""+e;const o=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(j.i.safeRemove(o),t){const e=(0,h.refs)(o);Object.keys(t).forEach((i=>{const o=e[i];o&&!1===t[i]&&j.i.hide(o)}))}return o}applyCreateAttributes(e){if(this.createAttributes){const t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){const i=t[e.tagName.toLowerCase()];(0,h.isFunction)(i)?i(e):(0,h.isPlainObject)(i)&&(0,h.attr)(e,i)}}}}a.D.prototype.filebrowser={namespace:"",extraButtons:[],filter(e,t){return t=t.toLowerCase(),(0,h.isString)(e)?-1!==e.toLowerCase().indexOf(t):(0,h.isString)(e.name)?-1!==e.name.toLowerCase().indexOf(t):!(0,h.isString)(e.file)||-1!==e.file.toLowerCase().indexOf(t)},sortBy:"changed-desc",sort(e,t,i){const[o,s]=i.toLowerCase().split("-"),n="asc"===s,r=(e,t)=>t>e?n?-1:1:e>t?n?1:-1:0;if((0,h.isString)(e))return r(e.toLowerCase(),t.toLowerCase());if(void 0===e[o]||"name"===o)return(0,h.isString)(e.name)?r(e.name.toLowerCase(),t.name.toLowerCase()):(0,h.isString)(e.file)?r(e.file.toLowerCase(),t.file.toLowerCase()):0;switch(o){case"changed":{const i=new Date(e.changed).getTime(),o=new Date(t.changed).getTime();return n?i-o:o-i}case"size":{const i=(0,h.humanSizeToBytes)(e.size),o=(0,h.humanSizeToBytes)(t.size);return n?i-o:o-i}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess(e){return e.success},getMessage(e){return void 0!==e.data.messages&&(0,h.isArray)(e.data.messages)?e.data.messages.join(" "):""},showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(e,t,i){const o=this.options,s=this.files.getFullElName("item"),n=o.showFileName,r=o.showFileSize&&e.size,a=o.showFileChangeTime&&e.time;let l="";return void 0!==e.file&&(l=e.file),`<a\n\t\t\tdata-jodit-filebrowser-item="true"\n\t\t\tdata-is-file="${e.isImage?0:1}"\n\t\t\tdraggable="true"\n\t\t\tclass="${s}"\n\t\t\thref="${e.fileURL}"\n\t\t\tdata-source="${i}"\n\t\t\tdata-path="${e.path}"\n\t\t\tdata-name="${l}"\n\t\t\ttitle="${l}"\n\t\t\tdata-url="${e.fileURL}">\n\t\t\t\t<img\n\t\t\t\t\tdata-is-file="${e.isImage?0:1}"\n\t\t\t\t\tdata-src="${e.fileURL}"\n\t\t\t\t\tsrc="${e.imageURL}"\n\t\t\t\t\talt="${l}"\n\t\t\t\t\tloading="lazy"\n\t\t\t\t/>\n\t\t\t\t${n||r||a?`<div class="${s}-info">${n?`<span class="${s}-info-filename">${l}</span>`:""}${r?`<span class="${s}-info-filesize">${e.size}</span>`:""}${a?`<span class="${s}-info-filechanged">${a}</span>`:""}</div>`:""}\n\t\t\t</a>`},ajax:{...a.D.prototype.defaultAjaxOptions,url:"",async:!0,data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,dataType:"json",headers:{},prepareData(e){return e},process(e){return e}},create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},a.D.prototype.controls.filebrowser={upload:{icon:"plus",isInput:!0,isDisabled:e=>!e.dataProvider.canI("FileUpload"),getContent(e){const t=new L.Z(e,{onlyImages:e.state.onlyImages});return e.e.fire("bindUploader.filebrowser",t.container),t.container}},remove:{icon:"bin",isDisabled:e=>!e.state.activeElements.length||!e.dataProvider.canI("FileRemove"),exec(e){e.e.fire("fileRemove.filebrowser")}},update:{exec(e){e.e.fire("update.filebrowser")}},select:{icon:"check",isDisabled:e=>!e.state.activeElements.length,exec(e){e.e.fire("select.filebrowser")}},edit:{icon:"pencil",isDisabled(e){const 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:{icon:"th",isActive:e=>"tiles"===e.state.view,exec(e){e.e.fire("view.filebrowser","tiles")}},list:{icon:"th-list",isActive:e=>"list"===e.state.view,exec(e){e.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent(e,t,i){const o=i.container.querySelector(".jodit-input");if(o)return o;const 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){const 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}}};class J{constructor(e){this.data=e,Object.keys(e).forEach((t=>{this[t]=e[t]}))}static create(e){return e instanceof J?e:new J(e)}get path(){return(0,h.normalizePath)(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){const e=""+(new Date).getTime(),{thumbIsAbsolute:t,source:i,thumb:o,file:s}=this.data,n=o||s;return t&&n?n:(0,h.normalizeUrl)(i.baseurl,i.path,n||"")+"?_tmst="+e}get fileURL(){let{name:e}=this.data;const{file:t,fileIsAbsolute:i,source:o}=this.data;return void 0!==t&&(e=t),i&&e?e:(0,h.normalizeUrl)(o.baseurl,o.path,e||"")}get time(){const{changed:e}=this.data;return e&&("number"==typeof e?new Date(e).toLocaleString():e)||""}get uniqueHashKey(){const e=this.data;let t=[e.sourceName,e.name,e.file,this.time,e.thumb].join("_");return t=t.toLowerCase().replace(/[^0-9a-z\-.]/g,"-"),t}toJSON(){return this.data}}const X="default";let Z=class{constructor(e,t){this.parent=e,this.options=t,this.__currentPermissions=null,this.ajaxInstances=new Map,this.progressHandler=e=>{}}get o(){return this.options}get(e){const t=this.ajaxInstances;if(t.has(e)){const i=t.get(e);null==i||i.abort(),t.delete(e)}const i=(0,h.ConfigProto)(void 0!==this.options[e]?this.options[e]:{},(0,h.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));i.prepareData&&(i.data=i.prepareData.call(this,i.data));const o=new p(this.parent,i);t.set(e,o);const s=o.send();return s.finally((()=>{o.destruct(),t.delete(e),this.progressHandler(100)})),s.then((e=>e.json())).then((e=>{if(e&&!this.isSuccess(e))throw Error(this.getMessage(e));return e}))}onProgress(e){this.progressHandler=e}async permissions(e,t){return this.o.permissions?(this.o.permissions.data.path=e,this.o.permissions.data.source=t,this.o.permissions.url?this.get("permissions").then((e=>{let t=this.o.permissions.process;if(t||(t=this.o.ajax.process),t){const i=t.call(self,e);i.data.permissions&&(this.__currentPermissions=i.data.permissions)}return this.__currentPermissions})):null):null}canI(e){const t="allow"+e;return null==this.__currentPermissions||void 0===this.__currentPermissions[t]||this.__currentPermissions[t]}async items(e,t,i={}){const o=this.options;return o.items?(o.items.data.path=e,o.items.data.source=t,o.items.data.mods=i,this.get("items").then((e=>{let t=this.o.items.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),this.generateItemsList(e.data.sources,i)}))):Promise.reject("Set Items api options")}generateItemsList(e,t={}){const i=[],o=e=>{var i;return!(null===(i=t.filterWord)||void 0===i?void 0:i.length)||void 0===this.o.filter||this.o.filter(e,t.filterWord)};return e.forEach((e=>{if(e.files&&e.files.length){const{sort:s}=this.o;(0,h.isFunction)(s)&&t.sortBy&&e.files.sort(((e,i)=>s(e,i,t.sortBy))),e.files.forEach((s=>{o(s)&&(e=>!t.onlyImages||void 0===e.isImage||e.isImage)(s)&&i.push(J.create({...s,sourceName:e.name,source:e}))}))}})),i}async tree(e,t){return e=(0,h.normalizeRelativePath)(e),await this.permissions(e,t),this.o.folder?(this.o.folder.data.path=e,this.o.folder.data.source=t,this.get("folder").then((e=>{let t=this.o.folder.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),e.data.sources}))):Promise.reject("Set Folder Api options")}getPathByUrl(e){return(0,h.set)("options.getLocalFileByUrl.data.url",e,this),this.get("getLocalFileByUrl").then((e=>{if(this.isSuccess(e))return e.data;throw(0,h.error)(this.getMessage(e))}))}createFolder(e,t,i){const{create:o}=this.o;if(!o)throw(0,h.error)("Set Create api options");return o.data.source=i,o.data.path=t,o.data.name=e,this.get("create").then((e=>{if(this.isSuccess(e))return!0;throw(0,h.error)(this.getMessage(e))}))}move(e,t,i,o){const s=o?"fileMove":"folderMove",n=this.options[s];if(!n)throw(0,h.error)("Set Move api options");return n.data.from=e,n.data.path=t,n.data.source=i,this.get(s).then((e=>{if(this.isSuccess(e))return!0;throw(0,h.error)(this.getMessage(e))}))}remove(e,t,i,o){const s=this.o[e];if(!s)throw(0,h.error)(`Set "${e}" api options`);return s.data.path=t,s.data.name=i,s.data.source=o,this.get(e).then((e=>(s.process&&(e=s.process.call(this,e)),this.getMessage(e))))}fileRemove(e,t,i){return this.remove("fileRemove",e,t,i)}folderRemove(e,t,i){return this.remove("folderRemove",e,t,i)}rename(e,t,i,o,s){const n=this.o[e];if(!n)throw(0,h.error)(`Set "${e}" api options`);return n.data.path=t,n.data.name=i,n.data.newname=o,n.data.source=s,this.get(e).then((e=>(n.process&&(e=n.process.call(self,e)),this.getMessage(e))))}folderRename(e,t,i,o){return this.rename("folderRename",e,t,i,o)}fileRename(e,t,i,o){return this.rename("fileRename",e,t,i,o)}changeImage(e,t,i,o,s,n){this.o[e]||(this.o[e]={data:{}});const r=this.o[e];return void 0===r.data&&(r.data={action:e}),r.data.newname=s||o,n&&(r.data.box=n),r.data.path=t,r.data.name=o,r.data.source=i,this.get(e).then((()=>!0))}crop(e,t,i,o,s){return this.changeImage("crop",e,t,i,o,s)}resize(e,t,i,o,s){return this.changeImage("resize",e,t,i,o,s)}getMessage(e){return this.options.getMessage(e)}isSuccess(e){return this.options.isSuccess(e)}destruct(){this.ajaxInstances.forEach((e=>e.destruct())),this.ajaxInstances.clear()}};Z=(0,r.gn)([x.autobind],Z);var Q=Z,ee=i(63);const te=new WeakMap,ie=e=>{let t=te.get(e);return t||(t={},te.set(e,t)),t};var oe=i(14);async function se(e){return e.files.setMod("active",!0),e.files.setMod("loading",!0),e.dataProvider.items(e.state.currentPath,e.state.currentSource,{sortBy:e.state.sortBy,onlyImages:e.state.onlyImages,filterWord:e.state.filterWord}).then((t=>{e.state.elements=t,e.state.activeElements=[]})).catch(e.status).finally((()=>e.files.setMod("loading",!1)))}async function ne(e){e.tree.setMod("active",!0),j.i.detach(e.tree.container);const t=se(e);if(e.o.showFoldersPanel){e.tree.setMod("loading",!0);const i=e.dataProvider.tree(e.state.currentPath,e.state.currentSource).then((t=>{e.state.sources=t})).catch((e=>{(e=>{throw e instanceof Error?e:(0,oe.v)(e)})(e)})).finally((()=>e.tree.setMod("loading",!1)));return Promise.all([i,t]).catch(oe.v)}return e.tree.setMod("active",!1),t.catch(oe.v)}function re(){const e=ie(this),{state:t,files:i,create:o,options:s}=this,n=t=>{const i=t.uniqueHashKey;if(e[i])return e[i].elm;const n=o.fromHTML(s.getThumbTemplate.call(this,t,t.source,""+t.sourceName));return n.dataset.key=i,e[i]={item:t,elm:n},e[i].elm};t.on(["change.currentPath","change.currentSource"],this.async.debounce((()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeLastOpenedFolder&&this.storage.set("currentPath",this.state.currentPath).set("currentSource",this.state.currentSource),ne(this).catch(this.status)}),this.defaultTimeout)).on("beforeChange.activeElements",(()=>{t.activeElements.forEach((t=>{const o=t.uniqueHashKey,{elm:s}=e[o];s&&s.classList.remove(i.getFullElName("item","active",!0))}))})).on("change.activeElements",(()=>{this.e.fire("changeSelection"),t.activeElements.forEach((t=>{const o=t.uniqueHashKey,{elm:s}=e[o];s&&s.classList.add(i.getFullElName("item","active",!0))}))})).on("change.view",(()=>{i.setMod("view",t.view),this.o.saveStateInStorage&&this.o.saveStateInStorage.storeView&&this.storage.set("view",t.view)})).on("change.sortBy",(()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeSortBy&&this.storage.set("sortBy",t.sortBy)})).on("change.elements",this.async.debounce((()=>{j.i.detach(i.container),t.elements.length?t.elements.forEach((e=>{this.files.container.appendChild(n(e))})):i.container.appendChild(o.div(this.componentName+"_no-files_true",this.i18n("There are no files")))}),this.defaultTimeout)).on("change.sources",this.async.debounce((()=>{j.i.detach(this.tree.container),t.sources.forEach((e=>{const t=e.name;if(t&&"default"!==t&&this.tree.container.appendChild(o.div(this.tree.getFullElName("source-title"),t)),e.folders.forEach((i=>{const n=o.a(this.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":(0,ee.AH)(e.path,i+"/"),"data-name":i,"data-source":t,"data-source-path":e.path},o.span(this.tree.getFullElName("item-title"),i)),r=o=>s=>{this.e.fire(o+".filebrowser",{name:i,path:(0,ee.AH)(e.path+"/"),source:t}),s.stopPropagation(),s.preventDefault()};if(this.e.on(n,"click",r("openFolder")),this.tree.container.appendChild(n),".."!==i&&"."!==i){if(s.renameFolder&&this.dataProvider.canI("FolderRename")){const e=(0,L.zx)(this,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});e.onAction(r("renameFolder")),n.appendChild(e.container)}if(s.deleteFolder&&this.dataProvider.canI("FolderRemove")){const e=(0,L.zx)(this,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});e.onAction(r("removeFolder")),n.appendChild(e.container)}}})),s.createNewFolder&&this.dataProvider.canI("FolderCreate")){const i=(0,L.zx)(this,"plus","Add folder","secondary");i.onAction((()=>{this.e.fire("addFolder",{path:(0,ee.AH)(e.path+"/"),source:t})})),this.tree.append(i)}}))}),this.defaultTimeout))}const ae="jodit-image-editor",le=L.JO.get.bind(L.JO),ce=(e,t="jodti-image-editor_active")=>e?t:"";var de;a.D.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"};const he="resize",ue="crop";let pe=de=class extends m.Hr{constructor(e){super(e),this.resizeUseRatio=!0,this.cropUseRatio=!0,this.clicked=!1,this.start_x=0,this.start_y=0,this.top_x=0,this.top_y=0,this.width=0,this.height=0,this.activeTab=he,this.naturalWidth=0,this.naturalHeight=0,this.ratio=0,this.new_h=0,this.new_w=0,this.diff_x=0,this.diff_y=0,this.cropBox={x:0,y:0,w:0,h:0},this.resizeBox={w:0,h:0},this.calcCropBox=()=>{const e=this.crop_box.parentNode,t=.8*e.offsetWidth,i=.8*e.offsetHeight;let o=t,s=i;const{naturalWidth:n,naturalHeight:r}=this;t>n&&i>r?(o=n,s=r):this.ratio>t/i?(o=t,s=r*(t/n)):(o=n*(i/r),s=i),(0,h.css)(this.crop_box,{width:o,height:s})},this.showCrop=()=>{if(!this.cropImage)return;this.calcCropBox();const e=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=de.calcValueByPercent(e,this.o.cropDefaultWidth);const t=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.new_h=this.cropUseRatio?this.new_w/this.ratio:de.calcValueByPercent(t,this.o.cropDefaultHeight),(0,h.css)(this.cropHandler,{backgroundImage:"url("+(0,h.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:e/2-this.new_w/2,top:t/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")},this.updateCropBox=()=>{if(!this.cropImage)return;const e=this.cropImage.offsetWidth/this.naturalWidth,t=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,h.css)(this.cropHandler,"left")/e,this.cropBox.y=(0,h.css)(this.cropHandler,"top")/t,this.cropBox.w=this.cropHandler.offsetWidth/e,this.cropBox.h=this.cropHandler.offsetHeight/t,this.sizes.textContent=this.cropBox.w.toFixed(0)+"x"+this.cropBox.h.toFixed(0)},this.updateResizeBox=()=>{this.resizeBox.w=this.image.offsetWidth||this.naturalWidth,this.resizeBox.h=this.image.offsetHeight||this.naturalHeight},this.setHandlers=()=>{const e=this,{widthInput:t,heightInput:i}=(0,h.refs)(this.editor);e.j.e.on([e.editor.querySelector(".jodit_bottomright"),e.cropHandler],"mousedown.jodit-image-editor",this.onResizeHandleMouseDown).on(this.j.ow,"resize.jodit-image-editor",(()=>{this.j.e.fire(e.resizeHandler,"updatesize"),e.showCrop(),this.j.e.fire(e.cropHandler,"updatesize")})),e.j.e.on((0,h.toArray)(this.editor.querySelectorAll(".jodit-image-editor__slider-title")),"click",this.onTitleModeClick).on([t,i],"input",this.onChangeSizeInput);const{keepAspectRatioResize:o,keepAspectRatioCrop:s}=(0,h.refs)(this.editor);o&&o.addEventListener("change",(()=>{this.resizeUseRatio=o.checked})),s&&s.addEventListener("change",(()=>{this.cropUseRatio=s.checked})),e.j.e.on(e.resizeHandler,"updatesize",(()=>{(0,h.css)(e.resizeHandler,{top:0,left:0,width:e.image.offsetWidth||e.naturalWidth,height:e.image.offsetHeight||e.naturalHeight}),this.updateResizeBox()})).on(e.cropHandler,"updatesize",(()=>{if(!e.cropImage)return;let t=(0,h.css)(e.cropHandler,"left"),i=(0,h.css)(e.cropHandler,"top"),o=e.cropHandler.offsetWidth,s=e.cropHandler.offsetHeight;0>t&&(t=0),0>i&&(i=0),t+o>e.cropImage.offsetWidth&&(o=e.cropImage.offsetWidth-t,e.cropUseRatio&&(s=o/e.ratio)),i+s>e.cropImage.offsetHeight&&(s=e.cropImage.offsetHeight-i,e.cropUseRatio&&(o=s*e.ratio)),(0,h.css)(e.cropHandler,{width:o,height:s,left:t,top:i,backgroundPosition:-t-1+"px "+(-i-1)+"px",backgroundSize:e.cropImage.offsetWidth+"px "+e.cropImage.offsetHeight+"px"}),e.updateCropBox()})),Object.values(e.buttons).forEach((o=>{o.onAction((()=>{const s={action:e.activeTab,box:e.activeTab===he?e.resizeBox:e.cropBox};switch(o){case e.buttons.saveas:U(e.j.i18n("Enter new name"),e.j.i18n("Save in new file"),(t=>{if(!(0,h.trim)(t))return W(e.j.i18n("The name should not be empty")).bindDestruct(this.j),!1;e.onSave(t,s,e.hide,(t=>{W(t.message).bindDestruct(e.j)}))})).bindDestruct(this.j);break;case e.buttons.save:e.onSave(void 0,s,e.hide,(t=>{W(t.message).bindDestruct(e.j)}));break;case e.buttons.reset:e.activeTab===he?((0,h.css)(e.image,{width:null,height:null}),t.value=""+e.naturalWidth,i.value=""+e.naturalHeight,e.j.e.fire(e.resizeHandler,"updatesize")):e.showCrop()}}))}))},this.options=e&&e.o&&e.o.imageeditor?e.o.imageeditor:a.D.defaultOptions.imageeditor;const t=this.options;this.resizeUseRatio=t.resizeUseRatio,this.cropUseRatio=t.cropUseRatio,this.buttons={reset:(0,g.zx)(this.j,"update","Reset"),save:(0,g.zx)(this.j,"save","Save"),saveas:(0,g.zx)(this.j,"save","Save as ...")},this.activeTab=t.resize?he:ue,this.editor=((e,t)=>{const i=e.i18n.bind(e),o=(e,t,o=!0)=>`<div class="jodit-form__group">\n\t\t\t<label>${i(e)}</label>\n\n\t\t\t<label class='jodit-switcher'>\n\t\t\t\t<input ${ce(o,"checked")} data-ref="${t}" type="checkbox"/>\n\t\t\t\t<span class="jodit-switcher__slider"></span>\n\t\t\t</label>\n\t</div>`;return e.create.fromHTML(`<form class="${ae} jodit-properties">\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-3-4 jodit_col-sm-5-5">\n\t\t\t${t.resize?`<div class="${ae}__area ${ae}__area_resize ${ae}_active">\n\t\t\t\t\t\t\t<div data-ref="resizeBox" class="${ae}__box"></div>\n\t\t\t\t\t\t\t<div class="${ae}__resizer">\n\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t${t.crop?`<div class="${ae}__area ${ae}__area_crop ${ce(!t.resize)}">\n\t\t\t\t\t\t\t<div data-ref="cropBox" class="${ae}__box">\n\t\t\t\t\t\t\t\t<div class="${ae}__croper">\n\t\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t\t\t<i class="${ae}__sizes"></i>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t</div>\n\t\t\t<div class="jodit_col-lg-1-4 jodit_col-sm-5-5">\n\t\t\t${t.resize?`<div data-area="resize" class="${ae}__slider ${ae}_active">\n\t\t\t\t\t\t\t<div class="${ae}__slider-title">\n\t\t\t\t\t\t\t\t${le("resize")}\n\t\t\t\t\t\t\t\t${i("Resize")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="${ae}__slider-content">\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t${i("Width")}\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="widthInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t${i("Height")}\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="heightInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t${o("Keep Aspect Ratio","keepAspectRatioResize")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t${t.crop?`<div data-area="crop" class="${ae}__slider ${ce(!t.resize)}'">\n\t\t\t\t\t\t\t<div class="${ae}__slider-title">\n\t\t\t\t\t\t\t\t${le("crop")}\n\t\t\t\t\t\t\t\t${i("Crop")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="${ae}__slider-content">\n\t\t\t\t\t\t\t\t${o("Keep Aspect Ratio","keepAspectRatioCrop")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t</div>\n\t\t</div>\n\t</form>`)})(this.j,this.options);const{resizeBox:i,cropBox:o}=(0,h.refs)(this.editor);this.resize_box=i,this.crop_box=o,this.sizes=this.editor.querySelector(".jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__sizes"),this.resizeHandler=this.editor.querySelector(".jodit-image-editor__resizer"),this.cropHandler=this.editor.querySelector(".jodit-image-editor__croper"),this.dialog=new V({fullsize:this.j.o.fullsize,globalFullSize:this.j.o.globalFullSize,language:this.j.o.language,buttons:["fullsize","dialog.close"]}),this.dialog.setContent(this.editor),this.dialog.setSize(this.o.width,this.o.height),this.dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}className(){return"ImageEditor"}onTitleModeClick(e){const t=this,i=e.target,o=null==i?void 0:i.parentElement;if(!o)return;(0,h.$$)(".jodit-image-editor__slider,.jodit-image-editor__area",t.editor).forEach((e=>e.classList.remove("jodit-image-editor_active"))),o.classList.add("jodit-image-editor_active"),this.activeTab=(0,h.attr)(o,"-area")||he;const s=t.editor.querySelector(".jodit-image-editor__area.jodit-image-editor__area_"+t.activeTab);s&&s.classList.add("jodit-image-editor_active"),t.activeTab===ue&&t.showCrop()}onChangeSizeInput(e){const t=this,i=e.target,{widthInput:o,heightInput:s}=(0,h.refs)(this.editor),n="widthInput"===(0,h.attr)(i,"data-ref"),r=parseInt(i.value,10),a=n?t.o.min_height:t.o.min_width;let l;r>(n?t.o.min_width:t.o.min_height)&&((0,h.css)(t.image,n?"width":"height",r),t.resizeUseRatio&&(l=Math.round(n?r/t.ratio:r*t.ratio),l>a&&((0,h.css)(t.image,n?"height":"width",l),n?s.value=""+l:o.value=""+l))),this.j.e.fire(t.resizeHandler,"updatesize")}onResizeHandleMouseDown(e){const t=this;t.target=e.target,e.preventDefault(),e.stopImmediatePropagation(),t.clicked=!0,t.start_x=e.clientX,t.start_y=e.clientY,t.activeTab===ue?(t.top_x=(0,h.css)(t.cropHandler,"left"),t.top_y=(0,h.css)(t.cropHandler,"top"),t.width=t.cropHandler.offsetWidth,t.height=t.cropHandler.offsetHeight):(t.width=t.image.offsetWidth,t.height=t.image.offsetHeight),t.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(e){this.clicked&&(this.clicked=!1,e.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(e){const t=this;if(!t.clicked)return;const{widthInput:i,heightInput:o}=(0,h.refs)(this.editor);t.diff_x=e.clientX-t.start_x,t.diff_y=e.clientY-t.start_y,t.activeTab===he&&t.resizeUseRatio||t.activeTab===ue&&t.cropUseRatio?t.diff_x?(t.new_w=t.width+t.diff_x,t.new_h=Math.round(t.new_w/t.ratio)):(t.new_h=t.height+t.diff_y,t.new_w=Math.round(t.new_h*t.ratio)):(t.new_w=t.width+t.diff_x,t.new_h=t.height+t.diff_y),t.activeTab===he?(t.new_w>t.o.resizeMinWidth&&((0,h.css)(t.image,"width",t.new_w+"px"),i.value=""+t.new_w),t.new_h>t.o.resizeMinHeight&&((0,h.css)(t.image,"height",t.new_h+"px"),o.value=""+t.new_h),this.j.e.fire(t.resizeHandler,"updatesize")):(t.target!==t.cropHandler?(t.top_x+t.new_w>t.cropImage.offsetWidth&&(t.new_w=t.cropImage.offsetWidth-t.top_x),t.top_y+t.new_h>t.cropImage.offsetHeight&&(t.new_h=t.cropImage.offsetHeight-t.top_y),(0,h.css)(t.cropHandler,{width:t.new_w,height:t.new_h})):(t.top_x+t.diff_x+t.cropHandler.offsetWidth>t.cropImage.offsetWidth&&(t.diff_x=t.cropImage.offsetWidth-t.top_x-t.cropHandler.offsetWidth),(0,h.css)(t.cropHandler,"left",t.top_x+t.diff_x),t.top_y+t.diff_y+t.cropHandler.offsetHeight>t.cropImage.offsetHeight&&(t.diff_y=t.cropImage.offsetHeight-t.top_y-t.cropHandler.offsetHeight),(0,h.css)(t.cropHandler,"top",t.top_y+t.diff_y)),this.j.e.fire(t.cropHandler,"updatesize"))}get o(){return this.options}hide(){this.dialog.close()}open(e,t){return this.j.async.promise((i=>{const o=(new Date).getTime();this.image=this.j.c.element("img"),(0,h.$$)("img,.jodit-icon_loader",this.resize_box).forEach(j.i.safeRemove),(0,h.$$)("img,.jodit-icon_loader",this.crop_box).forEach(j.i.safeRemove),(0,h.css)(this.cropHandler,"background","transparent"),this.onSave=t,this.resize_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.crop_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.image.setAttribute("src",e+=/\?/.test(e)?"&_tst="+o:"?_tst="+o),this.dialog.open();const{widthInput:s,heightInput:n}=(0,h.refs)(this.editor),r=()=>{this.isDestructed||(this.image.removeEventListener("load",r),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,s.value=""+this.naturalWidth,n.value=""+this.naturalHeight,this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),j.i.safeRemove.apply(null,(0,h.$$)(".jodit-icon_loader",this.editor)),this.activeTab===ue&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this.dialog.setPosition(),this.j.e.fire("afterImageEditor"),i(this.dialog))};this.image.addEventListener("load",r),this.image.complete&&r()}))}destruct(){this.isDestructed||(this.dialog&&!this.dialog.isInDestruct&&this.dialog.destruct(),j.i.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,".jodit-image-editor").off(".jodit-image-editor"),super.destruct())}};function me(e,t,i,o,s,n){return this.getInstance("ImageEditor",this.o).open(e,((e,r,a,l)=>(0,h.call)("resize"===r.action?this.dataProvider.resize:this.dataProvider.crop,i,o,t,e,r.box).then((e=>{e&&(a(),s&&s())})).catch((e=>{l(e),n&&n(e)}))))}function fe(e,t,i){return e.dataProvider.fileRemove(e.state.currentPath,t,i).then((i=>{e.status(i||e.i18n('File "%s" was deleted',t),!0)})).catch(e.status)}pe.calcValueByPercent=(e,t)=>{const i=""+t,o=parseFloat(""+e);let s;return s=/^[-+]?[0-9]+(px)?$/.exec(i),s?parseInt(i,10):(s=/^([-+]?[0-9.]+)%$/.exec(i),s?Math.round(o*(parseFloat(s[1])/100)):o||0)},(0,r.gn)([x.autobind],pe.prototype,"onTitleModeClick",null),(0,r.gn)([(0,x.debounce)(),x.autobind],pe.prototype,"onChangeSizeInput",null),(0,r.gn)([x.autobind],pe.prototype,"onResizeHandleMouseDown",null),(0,r.gn)([x.autobind],pe.prototype,"onGlobalMouseUp",null),(0,r.gn)([(0,x.throttle)(10)],pe.prototype,"onGlobalMouseMove",null),(0,r.gn)([x.autobind],pe.prototype,"hide",null),(0,r.gn)([x.autobind],pe.prototype,"open",null),pe=de=(0,r.gn)([x.component],pe);const ge="jodit-filebrowser-preview",ve=(e="next",t="right")=>`<div class="${ge}__navigation ${ge}__navigation_arrow_${e}">`+L.JO.get("angle-"+t)+"</a>";var be=e=>{if(!e.o.contextMenu)return()=>{};const t=new y(e);return i=>{const o=ye(i.target,e.container);if(!o)return;let s=o;const n=e.options,r=e=>(0,h.attr)(s,e)||"";return e.async.setTimeout((()=>{const a=we(o,ie(e));a&&(e.state.activeElements=[a],t.show(i.clientX,i.clientY,[!("1"===r("data-is-file")||!n.editImage||!e.dataProvider.canI("ImageResize")&&!e.dataProvider.canI("ImageCrop"))&&{icon:"pencil",title:"Edit",exec:()=>me.call(e,r("href"),r("data-name"),r("data-path"),r("data-source"))},!!e.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec(){e.e.fire("fileRename.filebrowser",r("data-name"),r("data-path"),r("data-source"))}},!!e.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",async exec(){try{await fe(e,r("data-name"),r("data-source"))}catch(t){return e.status(t)}return e.state.activeElements=[],ne(e).catch(e.status)}},!!n.preview&&{icon:"eye",title:"Preview",exec(){const t=new V({fullsize:e.o.fullsize,language:e.o.language,buttons:["fullsize","dialog.close"]}),i=e.c.div(ge,'<div class="jodit-icon_loader"></div>'),o=e.c.div(ge+"__box"),a=e.c.fromHTML(ve()),l=e.c.fromHTML(ve("prev","left")),c=r=>{const c=e.c.element("img");c.setAttribute("src",r);const d=()=>{var r;e.isInDestruct||(e.e.off(c,"load"),j.i.detach(i),n.showPreviewNavigation&&(j.i.prevWithClass(s,e.files.getFullElName("item"))&&i.appendChild(l),j.i.nextWithClass(s,e.files.getFullElName("item"))&&i.appendChild(a)),i.appendChild(o),o.appendChild(c),t.setPosition(),null===(r=null==e?void 0:e.events)||void 0===r||r.fire("previewOpenedAndLoaded"))};e.e.on(c,"load",d),c.complete&&d()};e.e.on([a,l],"click",(function(){if(s=this===a?j.i.nextWithClass(s,e.files.getFullElName("item")):j.i.prevWithClass(s,e.files.getFullElName("item")),!s)throw(0,h.error)("Need element");j.i.detach(i),j.i.detach(o),i.innerHTML='<div class="jodit-icon_loader"></div>',c(r("href"))})),e.e.on("beforeDestruct",(()=>{t.destruct()})),t.container.classList.add(ge+"__dialog"),t.setContent(i),t.setPosition(),t.open(),c(r("href")),e.events.on("beforeDestruct",(()=>{t.destruct()})).fire("previewOpened")}},{icon:"upload",title:"Download",exec(){const t=r("href");t&&e.ow.open(t)}}]))}),e.defaultTimeout),e.e.on("beforeClose",(()=>t.close())).on("beforeDestruct",(()=>t.destruct())),i.stopPropagation(),i.preventDefault(),!1}};const ye=(e,t,i="a")=>j.i.closest(e,(e=>j.i.isTag(e,i)),t),we=(e,t)=>{const{key:i}=e.dataset,{item:o}=t[i||""];return o};function ke(){let e=!1;const t=ie(this),i=this;i.e.on(i.tree.container,"dragstart",(t=>{const o=ye(t.target,i.container);o&&i.o.moveFolder&&(e=o)})).on(i.tree.container,"drop",(t=>{if((i.o.moveFile||i.o.moveFolder)&&e){let o=(0,h.attr)(e,"-path")||"";if(!i.o.moveFolder&&e.classList.contains(this.tree.getFullElName("item")))return!1;if(e.classList.contains(this.files.getFullElName("item"))&&(o+=(0,h.attr)(e,"-name"),!i.o.moveFile))return!1;const s=ye(t.target,i.container);if(!s)return;i.dataProvider.move(o,(0,h.attr)(s,"-path")||"",(0,h.attr)(s,"-source")||"",e.classList.contains(this.files.getFullElName("item"))).then((()=>ne(this))).catch(i.status),e=!1}})).on(i.files.container,"contextmenu",be(i)).on(i.files.container,"click",(e=>{(0,h.ctrlKey)(e)||(this.state.activeElements=[])})).on(i.files.container,"click",(e=>{const o=ye(e.target,i.container);if(!o)return;const s=we(o,t);return s?(i.state.activeElements=(0,h.ctrlKey)(e)?[...i.state.activeElements,s]:[s],e.stopPropagation(),!1):void 0})).on(i.files.container,"dragstart",(t=>{if(i.o.moveFile){const o=ye(t.target,i.container);if(!o)return;e=o}})).on(i.container,"drop",(e=>e.preventDefault()))}function Ce(){const e=this.state,t=this.dataProvider,i=this;i.e.on("view.filebrowser",(t=>{t!==e.view&&(e.view=t)})).on("sort.filebrowser",(t=>{t!==e.sortBy&&(e.sortBy=t,se(i).catch(i.status))})).on("filter.filebrowser",(t=>{t!==e.filterWord&&(e.filterWord=t,se(i).catch(i.status))})).on("openFolder.filebrowser",(e=>{let t;t=".."===e.name?e.path.split("/").filter((e=>e.length)).slice(0,-1).join("/"):(0,h.normalizePath)(e.path,e.name),i.state.currentPath=t,i.state.currentSource="."===e.name?X:e.source})).on("removeFolder.filebrowser",(e=>{$(i.i18n("Are you sure?"),i.i18n("Delete"),(o=>{o&&t.folderRemove(e.path,e.name,e.source).then((e=>(i.status(e,!0),ne(i)))).catch(i.status)})).bindDestruct(i)})).on("renameFolder.filebrowser",(e=>{U(i.i18n("Enter new name"),i.i18n("Rename"),(o=>{if(!(0,v.r1)(o))return i.status(i.i18n("Enter new name")),!1;t.folderRename(e.path,e.name,o,e.source).then((e=>(i.state.activeElements=[],i.status(e,!0),ne(i)))).catch(i.status)}),i.i18n("type name"),e.name).bindDestruct(i)})).on("addFolder.filebrowser",(e=>{U(i.i18n("Enter Directory name"),i.i18n("Create directory"),(o=>{t.createFolder(o,e.path,e.source).then((()=>ne(i))).catch(i.status)}),i.i18n("type name")).bindDestruct(i)})).on("fileRemove.filebrowser",(()=>{i.state.activeElements.length&&$(i.i18n("Are you sure?"),"",(e=>{if(e){const e=[];i.state.activeElements.forEach((t=>{e.push(fe(i,t.file||t.name||"",t.sourceName))})),i.state.activeElements=[],Promise.all(e).then((()=>ne(i).catch(i.status)),i.status)}})).bindDestruct(i)})).on("edit.filebrowser",(()=>{if(1===i.state.activeElements.length){const[e]=this.state.activeElements;me.call(i,e.fileURL,e.file||"",e.path,e.sourceName)}})).on("fileRename.filebrowser",((e,o,s)=>{1===i.state.activeElements.length&&U(i.i18n("Enter new name"),i.i18n("Rename"),(n=>{if(!(0,v.r1)(n))return i.status(i.i18n("Enter new name")),!1;t.fileRename(o,e,n,s).then((e=>{i.state.activeElements=[],i.status(e,!0),se(i).catch(i.status)})).catch(i.status)}),i.i18n("type name"),e).bindDestruct(this)})).on("update.filebrowser",(()=>{ne(this).then(this.status)}))}class Se extends L.qe{className(){return"FilebrowserFiles"}}class Ee extends L.qe{className(){return"FilebrowserTree"}}class Ie extends F{constructor(e){var t;super(e),this.browser=this.c.div(this.componentName),this.status_line=this.c.div(this.getFullElName("status")),this.tree=new Ee(this),this.files=new Se(this),this.state=(0,c.LO)({currentPath:"",currentSource:X,currentBaseUrl:"",activeElements:[],elements:[],messages:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=e=>{this.status(e instanceof Error?this.i18n(e.message):this.dataProvider.getMessage(e))},this.close=()=>{this.dialog.close()},this.attachEvents(e);const i=this;i.options=(0,h.ConfigProto)(e||{},a.D.defaultOptions.filebrowser),i.storage=E.makeStorage(!!this.o.saveStateInStorage,this.componentName),i.dataProvider=((e,t)=>new Q(e,t))(i,i.options),i.dialog=new V({fullsize:i.o.fullsize,ownerWindow:i.ownerWindow,theme:i.o.theme,globalFullSize:i.o.globalFullSize,language:this.o.language,minWidth:Math.min(700,screen.width),minHeight:300,buttons:null!==(t=this.o.headerButtons)&&void 0!==t?t:["fullsize","dialog.close"]}),this.proxyDialogEvents(i),i.browser.component=this,i.container=i.browser,i.o.showFoldersPanel&&i.browser.appendChild(i.tree.container),i.browser.appendChild(i.files.container),i.browser.appendChild(i.status_line),Ce.call(i),ke.call(i),re.call(i),i.dialog.setSize(i.o.width,i.o.height),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach((e=>{null!=this.options[e]&&(this.options[e]=(0,h.ConfigProto)(this.options[e],this.o.ajax))}));const{storeView:o,storeSortBy:s,storeLastOpenedFolder:n}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},r=o&&this.storage.get("view");i.state.view=r&&null==this.o.view?"list"===r?"list":"tiles":"list"===i.o.view?"list":"tiles",i.files.setMod("view",i.state.view);const l=s&&i.storage.get("sortBy");if(l){const e=l.split("-");i.state.sortBy=["changed","name","size"].includes(e[0])?l:"changed-desc"}else i.state.sortBy=i.o.sortBy||"changed-desc";if(n){const e=i.storage.get("currentPath"),t=i.storage.get("currentSource");i.state.currentPath=null!=e?e:"",i.state.currentSource=null!=t?t:""}i.initUploader(i),i.setStatus(m.n$.ready)}className(){return"Filebrowser"}onSelect(e){return()=>{if(this.state.activeElements.length){const t=[],i=[];this.state.activeElements.forEach((e=>{const o=e.fileURL;o&&(t.push(o),i.push(e.isImage||!1))})),this.close();const o={baseurl:"",files:t,isImages:i};(0,h.isFunction)(e)&&e(o),this.close()}return!1}}get isOpened(){return this.dialog.isOpened&&"none"!==this.browser.style.display}status(e,t){if((0,h.isString)(e)||(e=e.message),!(0,h.isString)(e)||!(0,h.trim)(e).length)return;const i=this.getFullElName("status","success",!0),o=this.getFullElName("status","active",!0);this.status_line.classList.remove(i),this.status_line.classList.add(o);const s=this.c.div();s.textContent=e,this.status_line.appendChild(s),t&&this.status_line.classList.add(i),this.async.setTimeout((()=>{this.status_line.classList.remove(o),j.i.detach(this.status_line)}),{timeout:this.o.howLongShowMsg,label:"fileBrowser.status"})}open(e=this.o.defaultCallback,t=!1){return this.state.onlyImages=t,this.async.promise(((t,i)=>{var o;if(!this.o.items||!this.o.items.url)throw(0,h.error)("Need set options.filebrowser.ajax.url");let s=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(e)).on(this.files.container,"touchstart",(()=>{const t=(new Date).getTime();l.EMULATE_DBLCLICK_TIMEOUT>t-s&&this.onSelect(e)(),s=t})).off("select.filebrowser").on("select.filebrowser",this.onSelect(e));const n=this.c.div();this.toolbar.build(null!==(o=this.o.buttons)&&void 0!==o?o:[]).appendTo(n),this.dialog.open(this.browser,n),this.e.fire("sort.filebrowser",this.state.sortBy),ne(this).then(t,i)}))}initUploader(e){var t;const i=this,o=null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.uploader,s=(0,h.ConfigProto)(o||{},a.D.defaultOptions.uploader),n=()=>se(this);i.uploader=i.getInstance("Uploader",s),i.uploader.setPath(i.state.currentPath).setSource(i.state.currentSource).bind(i.browser,n,i.errorHandler),this.state.on(["change.currentPath","change.currentSource"],(()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)})),i.e.on("bindUploader.filebrowser",(e=>{i.uploader.bind(e,n,i.errorHandler)}))}proxyDialogEvents(e){["afterClose","beforeOpen"].forEach((t=>{e.dialog.events.on(e.dialog,t,(()=>{this.e.fire(t)}))}))}destruct(){this.isInDestruct||(super.destruct(),this.dialog.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}}function xe(e){return j.i.isElement(e)&&e.classList.contains(Se.prototype.getFullElName("item"))}(0,r.gn)([x.autobind],Ie.prototype,"status",null),(0,r.gn)([x.autobind],Ie.prototype,"open",null);class ze extends m.Hr{constructor(){super(...arguments),this.isBlocked=!1}className(){return"Snapshot"}static equal(e,t){return e.html===t.html&&JSON.stringify(e.range)===JSON.stringify(t.range)}static countNodesBeforeInParent(e){if(!e.parentNode)return 0;const t=e.parentNode.childNodes;let i,o=0,s=null;for(i=0;t.length>i;i+=1){if(!s||j.i.isText(t[i])&&""===t[i].textContent||j.i.isText(s)&&j.i.isText(t[i])||(o+=1),t[i]===e)return o;s=t[i]}return 0}static strokeOffset(e,t){for(;j.i.isText(e);)j.i.isText(e=e.previousSibling)&&null!=e.textContent&&(t+=e.textContent.length);return t}calcHierarchyLadder(e){const t=[];if(!e||!e.parentNode||!j.i.isOrContains(this.j.editor,e))return[];for(;e&&e!==this.j.editor;)e&&t.push(ze.countNodesBeforeInParent(e)),e=e.parentNode;return t.reverse()}getElementByLadder(e){let t,i=this.j.editor;for(t=0;i&&e.length>t;t+=1)i=i.childNodes[e[t]];return i}make(){const e={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};e.html=this.j.getNativeEditorValue();const t=this.j.s.sel;if(t&&t.rangeCount){const i=t.getRangeAt(0),o=this.calcHierarchyLadder(i.startContainer),s=this.calcHierarchyLadder(i.endContainer);let n=ze.strokeOffset(i.startContainer,i.startOffset),r=ze.strokeOffset(i.endContainer,i.endOffset);o.length||i.startContainer===this.j.editor||(n=0),s.length||i.endContainer===this.j.editor||(r=0),e.range={startContainer:o,startOffset:n,endContainer:s,endOffset:r}}return e}restore(e){this.isBlocked=!0;const t=this.storeScrollState();this.j.getNativeEditorValue()!==e.html&&(this.j.value=e.html),this.restoreOnlySelection(e),this.restoreScrollState(t),this.isBlocked=!1}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(e){const{j:t}=this,{ow:i}=t;i.scrollTo(i.scrollX,e[0]),t.editor.scrollTop=e[1]}restoreOnlySelection(e){try{if(e.range){const t=this.j.ed.createRange();t.setStart(this.getElementByLadder(e.range.startContainer),e.range.startOffset),t.setEnd(this.getElementByLadder(e.range.endContainer),e.range.endOffset),this.j.s.selectRange(t)}}catch(e){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild)}}destruct(){this.isBlocked=!1,super.destruct()}}class Te{constructor(e){this.size=e,this.commands=[],this.stackPosition=-1}get length(){return this.commands.length}clearRedo(){this.commands.length=this.stackPosition+1}clear(){this.commands.length=0,this.stackPosition=-1}push(e){this.clearRedo(),this.commands.push(e),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}replace(e){this.commands[this.stackPosition]=e}current(){return this.commands[this.stackPosition]}undo(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}redo(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}canUndo(){return this.stackPosition>=0}canRedo(){return this.commands.length-1>this.stackPosition}}class je{constructor(e,t,i,o){this.oldValue=e,this.newValue=t,this.history=i,this.tick=o}undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}}a.D.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3},a.D.prototype.observer=a.D.prototype.history;class Le extends m.Hr{constructor(e,t=new Te(e.o.history.maxHistoryLength),i=new ze(e)){super(e),this.updateTick=0,this.stack=t,this.snapshot=i,e.o.history.enable&&e.e.on("afterAddPlace.history",(()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),e.events.on("internalChange internalUpdate",(()=>{this.startValue=this.snapshot.make()})).on(e.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map((e=>e+".history")).join(" "),(()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())})).on(this,"change.history",this.onChange))}))}className(){return"History"}get startValue(){return this.__startValue}set startValue(e){this.__startValue=e}upTick(){this.updateTick+=1}onChange(){this.processChanges()}processChanges(){this.snapshot.isBlocked||this.updateStack()}updateStack(e=!1){const t=this.snapshot.make();if(!ze.equal(t,this.startValue)){const i=new je(this.startValue,t,this,this.updateTick);if(e){const e=this.stack.current();e&&this.updateTick===e.tick&&this.stack.replace(i)}else this.stack.push(i);this.startValue=t,this.fireChangeStack()}}redo(){this.stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.stack.canRedo()}undo(){this.stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.stack.clear(),this.fireChangeStack()}get length(){return this.stack.length}fireChangeStack(){var e;this.j&&!this.j.isInDestruct&&(null===(e=this.j.events)||void 0===e||e.fire("changeStack"))}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}}(0,r.gn)([(0,x.debounce)()],Le.prototype,"onChange",null);var Ae=i(43);let Me=class extends m.Hr{constructor(e,t){super(e),this.target=t,this.mods={},this.container=e.c.div("jodit-status-bar"),t.appendChild(this.container),this.hide()}className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}setMod(e,t){return z.$.setMod.call(this,e,t),this}getMod(e){return z.$.getMod.call(this,e)}getHeight(){var e,t;return null!==(t=null===(e=this.container)||void 0===e?void 0:e.offsetHeight)&&void 0!==t?t:0}findEmpty(e=!1){const t=z.F.getElms.call(this,e?"item-right":"item");for(let e=0;t.length>e;e+=1)if(!t[e].innerHTML.trim().length)return t[e]}append(e,t=!1){var i;const o=this.findEmpty(t)||this.j.c.div(this.getFullElName("item"));t&&o.classList.add(this.getFullElName("item-right")),o.appendChild(e),null===(i=this.container)||void 0===i||i.appendChild(o),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}destruct(){this.isInDestruct||(this.setStatus(m.n$.beforeDestruct),j.i.safeRemove(this.container),super.destruct())}};Me=(0,r.gn)([x.component],Me);const De=new WeakMap;class Pe extends m.Hr{constructor(){super(...arguments),this.selected=new Set}className(){return"Table"}recalculateStyles(){const e=(0,I.ZO)(this.j,Pe,"style",!0),t=[];this.selected.forEach((e=>{const i=(0,h.cssPath)(e);i&&t.push(i)})),e.innerHTML=t.length?t.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(e){this.selected.add(e),this.recalculateStyles();const t=j.i.closest(e,"table",this.j.editor);if(t){const i=Pe.selectedByTable.get(t)||new Set;i.add(e),Pe.selectedByTable.set(t,i)}}removeSelection(e){this.selected.delete(e),this.recalculateStyles();const t=j.i.closest(e,"table",this.j.editor);if(t){const i=Pe.selectedByTable.get(t);i&&(i.delete(e),i.size||Pe.selectedByTable.delete(t))}}getAllSelectedCells(){return(0,h.toArray)(this.selected)}static getSelectedCellsByTable(e){const t=Pe.selectedByTable.get(e);return t?(0,h.toArray)(t):[]}destruct(){return this.selected.clear(),super.destruct()}static getRowsCount(e){return e.rows.length}static getColumnsCount(e){return Pe.formalMatrix(e).reduce(((e,t)=>Math.max(e,t.length)),0)}static formalMatrix(e,t){const i=[[]],o=(0,h.toArray)(e.rows),s=(e,o)=>{void 0===i[o]&&(i[o]=[]);const s=e.colSpan,n=e.rowSpan;let r,a,l=0;for(;i[o][l];)l+=1;for(a=0;n>a;a+=1)for(r=0;s>r;r+=1){if(void 0===i[o+a]&&(i[o+a]=[]),t&&!1===t(e,o+a,l+r,s,n))return!1;i[o+a][l+r]=e}};for(let e=0;o.length>e;e+=1){const t=(0,h.toArray)(o[e].cells);for(let o=0;t.length>o;o+=1)if(!1===s(t[o],e))return i}return i}static formalCoordinate(e,t,i=!1){let o=0,s=0,n=1,r=1;return Pe.formalMatrix(e,((e,a,l,c,d)=>{if(t===e)return o=a,s=l,n=c||1,r=d||1,i&&(s+=(c||1)-1,o+=(d||1)-1),!1})),[o,s,n,r]}static appendRow(e,t,i,o){var s;let n;if(t)n=t.cloneNode(!0),(0,h.$$)("td,th",t).forEach((e=>{const t=(0,h.attr)(e,"rowspan");if(t&&parseInt(t,10)>1){const i=parseInt(t,10)-1;(0,h.attr)(e,"rowspan",i>1?i:null)}})),(0,h.$$)("td,th",n).forEach((e=>{e.innerHTML=""}));else{const t=Pe.getColumnsCount(e);n=o.element("tr");for(let e=0;t>e;e+=1)n.appendChild(o.element("td"))}i&&t&&t.nextSibling?t.parentNode&&t.parentNode.insertBefore(n,t.nextSibling):!i&&t?t.parentNode&&t.parentNode.insertBefore(n,t):((null===(s=e.getElementsByTagName("tbody"))||void 0===s?void 0:s[0])||e).appendChild(n)}static removeRow(e,t){const i=Pe.formalMatrix(e);let o;const s=e.rows[t];i[t].forEach(((n,r)=>{if(o=!1,0>t-1||i[t-1][r]!==n)if(i[t+1]&&i[t+1][r]===n){if(n.parentNode===s&&n.parentNode.nextSibling){o=!0;let s=r+1;for(;i[t+1][s]===n;)s+=1;const a=j.i.next(n.parentNode,(e=>j.i.isTag(e,"tr")),e);a&&(i[t+1][s]?a.insertBefore(n,i[t+1][s]):a.appendChild(n))}}else j.i.safeRemove(n);else o=!0;if(o&&(n.parentNode===s||n!==i[t][r-1])){const e=n.rowSpan;(0,h.attr)(n,"rowspan",e-1>1?e-1:null)}})),j.i.safeRemove(s)}static appendColumn(e,t,i,o){const s=Pe.formalMatrix(e);let n;for((void 0===t||0>t)&&(t=Pe.getColumnsCount(e)-1),n=0;s.length>n;n+=1){const e=o.element("td"),r=s[n][t];let a=!1;i?(s[n]&&r&&t+1>=s[n].length||r!==s[n][t+1])&&(r.nextSibling?j.i.before(r.nextSibling,e):r.parentNode&&r.parentNode.appendChild(e),a=!0):(0>t-1||s[n][t]!==s[n][t-1]&&s[n][t].parentNode)&&(j.i.before(s[n][t],e),a=!0),a||(0,h.attr)(s[n][t],"colspan",parseInt((0,h.attr)(s[n][t],"colspan")||"1",10)+1)}}static removeColumn(e,t){const i=Pe.formalMatrix(e);let o;i.forEach(((e,s)=>{const n=e[t];if(o=!1,0>t-1||i[s][t-1]!==n?e.length>t+1&&i[s][t+1]===n?o=!0:j.i.safeRemove(n):o=!0,o&&(0>s-1||n!==i[s-1][t])){const e=n.colSpan;(0,h.attr)(n,"colspan",e-1>1?""+(e-1):null)}}))}static getSelectedBound(e,t){const i=[[1/0,1/0],[0,0]],o=Pe.formalMatrix(e);let s,n,r;for(s=0;o.length>s;s+=1)for(n=0;o[s]&&o[s].length>n;n+=1)t.includes(o[s][n])&&(i[0][0]=Math.min(s,i[0][0]),i[0][1]=Math.min(n,i[0][1]),i[1][0]=Math.max(s,i[1][0]),i[1][1]=Math.max(n,i[1][1]));for(s=i[0][0];i[1][0]>=s;s+=1)for(r=1,n=i[0][1];i[1][1]>=n;n+=1){for(;o[s]&&o[s][n-r]&&o[s][n]===o[s][n-r];)i[0][1]=Math.min(n-r,i[0][1]),i[1][1]=Math.max(n-r,i[1][1]),r+=1;for(r=1;o[s]&&o[s][n+r]&&o[s][n]===o[s][n+r];)i[0][1]=Math.min(n+r,i[0][1]),i[1][1]=Math.max(n+r,i[1][1]),r+=1;for(r=1;o[s-r]&&o[s][n]===o[s-r][n];)i[0][0]=Math.min(s-r,i[0][0]),i[1][0]=Math.max(s-r,i[1][0]),r+=1;for(r=1;o[s+r]&&o[s][n]===o[s+r][n];)i[0][0]=Math.min(s+r,i[0][0]),i[1][0]=Math.max(s+r,i[1][0]),r+=1}return i}static normalizeTable(e){let t,i,o,s;const n=[],r=Pe.formalMatrix(e);for(i=0;r[0].length>i;i+=1){for(o=1e6,s=!1,t=0;r.length>t;t+=1)if(void 0!==r[t][i]){if(2>r[t][i].colSpan){s=!0;break}o=Math.min(o,r[t][i].colSpan)}if(!s)for(t=0;r.length>t;t+=1)void 0!==r[t][i]&&Pe.mark(r[t][i],"colspan",r[t][i].colSpan-o+1,n)}for(t=0;r.length>t;t+=1){for(o=1e6,s=!1,i=0;r[t].length>i;i+=1)if(void 0!==r[t][i]){if(2>r[t][i].rowSpan){s=!0;break}o=Math.min(o,r[t][i].rowSpan)}if(!s)for(i=0;r[t].length>i;i+=1)void 0!==r[t][i]&&Pe.mark(r[t][i],"rowspan",r[t][i].rowSpan-o+1,n)}for(t=0;r.length>t;t+=1)for(i=0;r[t].length>i;i+=1)void 0!==r[t][i]&&(r[t][i].hasAttribute("rowspan")&&1===r[t][i].rowSpan&&(0,h.attr)(r[t][i],"rowspan",null),r[t][i].hasAttribute("colspan")&&1===r[t][i].colSpan&&(0,h.attr)(r[t][i],"colspan",null),r[t][i].hasAttribute("class")&&!(0,h.attr)(r[t][i],"class")&&(0,h.attr)(r[t][i],"class",null));Pe.unmark(n)}static mergeSelected(e,t){const i=[],o=Pe.getSelectedBound(e,Pe.getSelectedCellsByTable(e));let s,n=0,r=null,a=0,c=0,d=0;const u=new Set,p=[];o&&(o[0][0]-o[1][0]||o[0][1]-o[1][1])&&(Pe.formalMatrix(e,((e,l,m,f,g)=>{if(!(o[0][0]>l||l>o[1][0]||o[0][1]>m||m>o[1][1])){if(s=e,u.has(s))return;u.add(s),l===o[0][0]&&s.style.width&&(n+=s.offsetWidth),""!==(0,h.trim)(e.innerHTML.replace(/<br(\/)?>/g,""))&&i.push(e.innerHTML),f>1&&(c+=f-1),g>1&&(d+=g-1),r?(Pe.mark(s,"remove",1,p),_e(t).removeSelection(s)):(r=e,a=m)}})),c=o[1][1]-o[0][1]+1,d=o[1][0]-o[0][0]+1,r&&(c>1&&Pe.mark(r,"colspan",c,p),d>1&&Pe.mark(r,"rowspan",d,p),n&&(Pe.mark(r,"width",(n/e.offsetWidth*100).toFixed(l.ACCURACY)+"%",p),a&&Pe.setColumnWidthByDelta(e,a,0,!0,p)),r.innerHTML=i.join("<br/>"),_e(t).addSelection(r),u.delete(r),Pe.unmark(p),Pe.normalizeTable(e),(0,h.toArray)(e.rows).forEach(((e,t)=>{e.cells.length||j.i.safeRemove(e)}))))}static splitHorizontal(e,t){let i,o,s,n,r;const a=[];Pe.getSelectedCellsByTable(e).forEach((l=>{o=t.createInside.element("td"),o.appendChild(t.createInside.element("br")),s=t.createInside.element("tr"),i=Pe.formalCoordinate(e,l),2>l.rowSpan?(Pe.formalMatrix(e,((e,t,o)=>{i[0]===t&&i[1]!==o&&e!==l&&Pe.mark(e,"rowspan",e.rowSpan+1,a)})),j.i.after(j.i.closest(l,"tr",e),s),s.appendChild(o)):(Pe.mark(l,"rowspan",l.rowSpan-1,a),Pe.formalMatrix(e,((t,o,s)=>{o>i[0]&&i[0]+l.rowSpan>o&&i[1]>s&&t.parentNode.rowIndex===o&&(r=t),o>i[0]&&t===l&&(n=e.rows[o])})),r?j.i.after(r,o):n.insertBefore(o,n.firstChild)),l.colSpan>1&&Pe.mark(o,"colspan",l.colSpan,a),Pe.unmark(a),_e(t).removeSelection(l)})),this.normalizeTable(e)}static splitVertical(e,t){let i,o,s;const n=[];Pe.getSelectedCellsByTable(e).forEach((r=>{i=Pe.formalCoordinate(e,r),2>r.colSpan?Pe.formalMatrix(e,((e,t,o)=>{i[1]===o&&i[0]!==t&&e!==r&&Pe.mark(e,"colspan",e.colSpan+1,n)})):Pe.mark(r,"colspan",r.colSpan-1,n),o=t.createInside.element("td"),o.appendChild(t.createInside.element("br")),r.rowSpan>1&&Pe.mark(o,"rowspan",r.rowSpan,n);const a=r.offsetWidth;j.i.after(r,o),s=a/e.offsetWidth/2,Pe.mark(r,"width",(100*s).toFixed(l.ACCURACY)+"%",n),Pe.mark(o,"width",(100*s).toFixed(l.ACCURACY)+"%",n),Pe.unmark(n),_e(t).removeSelection(r)})),Pe.normalizeTable(e)}static setColumnWidthByDelta(e,t,i,o,s){const n=Pe.formalMatrix(e);let r=0;for(let o=0;n.length>o;o+=1){const a=n[o][t];if(1>=a.colSpan||1>=n.length){Pe.mark(a,"width",((a.offsetWidth+i)/e.offsetWidth*100).toFixed(l.ACCURACY)+"%",s),r=o;break}}for(let e=r+1;n.length>e;e+=1)Pe.mark(n[e][t],"width",null,s);o||Pe.unmark(s)}static mark(e,t,i,o){var s;o.push(e);const n=null!==(s=De.get(e))&&void 0!==s?s:{};n[t]=void 0===i?1:i,De.set(e,n)}static unmark(e){e.forEach((e=>{const t=De.get(e);t&&(Object.keys(t).forEach((i=>{const o=t[i];switch(i){case"remove":j.i.safeRemove(e);break;case"rowspan":(0,h.attr)(e,"rowspan",(0,h.isNumber)(o)&&o>1?o:null);break;case"colspan":(0,h.attr)(e,"colspan",(0,h.isNumber)(o)&&o>1?o:null);break;case"width":null==o?(e.style.removeProperty("width"),(0,h.attr)(e,"style")||(0,h.attr)(e,"style",null)):e.style.width=""+o}delete t[i]})),De.delete(e))}))}}Pe.selectedByTable=new WeakMap,(0,r.gn)([(0,x.debounce)()],Pe.prototype,"recalculateStyles",null);const _e=e=>e.getInstance("Table",e.o),Re=new WeakMap;function qe(e,t){const i=((e,t)=>{if((0,h.isFunction)(e.o.buildData))return e.o.buildData.call(e,t);const i=e.ow.FormData;if(void 0!==i){if(t instanceof i)return t;if((0,h.isString)(t))return t;const e=new i;return Object.keys(t).forEach((i=>{e.append(i,t[i])})),e}return t})(e,t),o=t=>{const i=new p(e.j,{xhr(){const 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),100>i||e.j.progressbar.hide()}}),!1)):e.j.progressbar.hide(),t},method:e.o.method||"POST",data:t,url:(0,h.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),dataType:e.o.format||"json",withCredentials:e.o.withCredentials||!1});let o=Re.get(e);return o||(o=new Set,Re.set(e,o)),o.add(i),i.send().then((e=>e.json())).catch((t=>{e.o.error.call(e,t)})).finally((()=>{null==o||o.delete(i)}))};return(0,h.isPromise)(i)?i.then(o).catch((t=>{e.o.error.call(e,t)})):o(i)}function Ne(e,t,i,o,s){if(!t)return Promise.reject((0,h.error)("Need files"));const{o:n}=e;let r=(0,h.toArray)(t);if(!r.length)return Promise.reject((0,h.error)("Need files"));const a=[];if(n.insertImageAsBase64URI){let t,o;for(o=0;r.length>o;o+=1)if(t=r[o],t&&t.type){const s=t.type.match(/\/([a-z0-9]+)/i),l=s[1]?s[1].toLowerCase():"";if(n.imagesExtensions.includes(l)){const s=new FileReader;a.push(e.j.async.promise(((o,r)=>{s.onerror=r,s.onloadend=()=>{const t={baseurl:"",files:[s.result],isImages:[!0]};((0,h.isFunction)(i)?i:n.defaultHandlerSuccess).call(e,t),o(t)},s.readAsDataURL(t)}))),r[o]=null}}}if(r=r.filter((e=>e)),r.length){const t=new FormData;let l;t.append(n.pathVariableName,e.path),t.append("source",e.source);for(let e=0;r.length>e;e+=1)if(l=r[e],l){const i=l.type.match(/\/([a-z0-9]+)/i),o=i&&i[1]?i[1].toLowerCase():"";let s=r[e].name||(""+Math.random()).replace(".","");if(o){let e=o;["jpeg","jpg"].includes(e)&&(e="jpeg|jpg"),RegExp(".("+e+")$","i").test(s)||(s+="."+o)}t.append(n.filesVariableName(e),r[e],s)}s&&s(t),n.data&&(0,h.isPlainObject)(n.data)&&Object.keys(n.data).forEach((e=>{t.append(e,n.data[e])})),n.prepareData.call(e,t),a.push(qe(e,t).then((t=>n.isSuccess.call(e,t)?(((0,h.isFunction)(i)?i:n.defaultHandlerSuccess).call(e,n.process.call(e,t)),t):(((0,h.isFunction)(o)?o:n.defaultHandlerError).call(e,(0,h.error)(n.getMessage.call(e,t))),t))).then((()=>{e.j.events&&e.j.e.fire("filesWereUploaded")})))}return Promise.all(a)}function Be(e){return!!(e&&e.files&&e.files.length>0)}function He(e){return!!(e&&e.items&&e.items.length>0)}var Oe=i(9),Fe=i(46);a.D.prototype.enableDragAndDropFileToEditor=!0,a.D.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","png","jpeg","gif"],headers:null,data:null,filesVariableName(e){return`files[${e}]`},withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData(e){return e},isSuccess(e){return e.success},getMessage(e){return void 0!==e.data.messages&&(0,Oe.k)(e.data.messages)?e.data.messages.join(" "):""},process(e){return e.data},error(e){this.j.e.fire("errorMessage",e.message,"error",4e3)},defaultHandlerSuccess(e){const t=this.j||this;(0,Fe.Z)(t)&&e.files&&e.files.length&&e.files.forEach(((i,o)=>{const[s,n]=e.isImages&&e.isImages[o]?["img","src"]:["a","href"],r=t.createInside.element(s);r.setAttribute(n,e.baseurl+i),"a"===s&&(r.textContent=e.baseurl+i),"img"===s?t.s.insertImage(r,null,t.o.imageDefaultWidth):t.s.insertNode(r)}))},defaultHandlerError(e){this.j.e.fire("errorMessage",e.message)},contentType(e){return(void 0===this.ow.FormData||"string"==typeof e)&&"application/x-www-form-urlencoded; charset=UTF-8"}};class Ve extends m.Hr{constructor(e,t){super(e),this.path="",this.source="default",this.options=(0,h.ConfigProto)(t||{},(0,h.ConfigProto)(a.D.defaultOptions.uploader,(0,h.isJoditObject)(e)?e.o.uploader:{}))}get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(e){return this.path=e,this}setSource(e){return this.source=e,this}bind(e,t,i){const o=()=>{e.classList.remove("jodit_drag_hover")},s=this,n=e=>{let n,r,a;const c=e.clipboardData,d=e=>{r&&(e.append("extension",a),e.append("mimetype",r.type))};if(!l.IS_IE&&Be(c))return Ne(s,c.files,t,i).finally(o),!1;if(He(c)){const{items:l}=c;for(n=0;l.length>n;n+=1)if("file"===l[n].kind&&"image/png"===l[n].type){if(r=l[n].getAsFile(),r){const e=r.type.match(/\/([a-z0-9]+)/i);a=e[1]?e[1].toLowerCase():"",Ne(s,[r],t,i,d).finally(o)}e.preventDefault();break}}};s.j&&s.j.editor!==e?s.j.e.on(e,"paste",n):s.j.e.on("beforePaste",n),this.attachEvents(e,t,i,o)}attachEvents(e,t,i,o){const s=this;s.j.e.on(e,"dragend dragover dragenter dragleave drop",(e=>{e.preventDefault()})).on(e,"dragover",(t=>{(Be(t.dataTransfer)||He(t.dataTransfer))&&(e.classList.add("jodit_drag_hover"),t.preventDefault())})).on(e,"dragend dragleave",(t=>{e.classList.remove("jodit_drag_hover"),Be(t.dataTransfer)&&t.preventDefault()})).on(e,"drop",(n=>{e.classList.remove("jodit_drag_hover"),Be(n.dataTransfer)&&(n.preventDefault(),n.stopImmediatePropagation(),Ne(s,n.dataTransfer.files,t,i).finally(o))}));const n=e.querySelector("input[type=file]");n&&s.j.e.on(n,"change",(()=>{Ne(s,n.files,t,i).then((()=>{n.value="",/safari/i.test(navigator.userAgent)||(n.type="",n.type="file")})).finally(o)}))}uploadRemoteImage(e,t,i){const o=this,{o:s}=o,n=(0,h.isFunction)(i)?i:s.defaultHandlerError;qe(o,{action:"fileUploadRemote",url:e}).then((e=>{s.isSuccess.call(o,e)?((0,h.isFunction)(t)?t:s.defaultHandlerSuccess).call(o,s.process.call(o,e)):n.call(o,(0,h.error)(s.getMessage.call(o,e)))})).catch((e=>n.call(o,e)))}destruct(){this.setStatus(m.n$.beforeDestruct);const e=Re.get(this);e&&(e.forEach((e=>{try{e.destruct()}catch(e){}})),e.clear()),super.destruct()}}const We="data-jodit-default-style-display",Ue="data-jodit-default-classes";class Jodit extends F{constructor(e,t){super(t,!0),this.isJodit=!0,this.commands=new Map,this.__selectionLocked=null,this.__wasReadOnly=!1,this.createInside=new K((()=>this.ed),this.o.createAttributes),this.editorIsActive=!1,this.__mode=l.MODE_WYSIWYG,this.__callChangeCount=0,this.isSilentChange=!1,this.elementToPlace=new Map;try{const t=(0,h.resolveElement)(e,this.o.shadowRoot||this.od);if(Jodit.isJoditAssigned(t))return t.component}catch(e){throw this.destruct(),e}this.setStatus(m.n$.beforeInit),this.id=(0,h.attr)((0,h.resolveElement)(e,this.o.shadowRoot||this.od),"id")||""+(new Date).getTime(),I.as[this.id]=this,this.storage=E.makeStorage(!0,this.id),this.attachEvents(t),this.e.on(this.ow,"resize",(()=>{this.e&&this.e.fire("resize")})),this.e.on("prepareWYSIWYGEditor",this.prepareWYSIWYGEditor),this.selection=new Ae.Ph(this);const i=this.beforeInitHook();(0,h.callPromise)(i,(()=>{this.e.fire("beforeInit",this);const i=I.pw.init(this);(0,h.callPromise)(i,(()=>{this.e.fire("afterPluginSystemInit",this),this.e.on("changePlace",(()=>{this.setReadOnly(this.o.readonly),this.setDisabled(this.o.disabled)})),this.places.length=0;const i=this.addPlace(e,t);I.as[this.id]=this,(0,h.callPromise)(i,(()=>{this.e&&this.e.fire("afterInit",this),this.afterInitHook(),this.setStatus(m.n$.ready),this.e.fire("afterConstructor",this)}))}))}))}className(){return"Jodit"}waitForReady(){return this.isReady?Promise.resolve(this):this.async.promise((e=>{this.hookStatus("ready",(()=>e(this)))}))}get text(){if(this.editor)return this.editor.innerText||"";const e=this.createInside.div();return e.innerHTML=this.getElementValue(),e.innerText||""}get defaultTimeout(){return(0,h.isNumber)(this.o.defaultTimeout)?this.o.defaultTimeout:a.D.defaultOptions.defaultTimeout}static atom(e){return(0,h.markAsAtomic)(e)}static make(e,t){return new Jodit(e,t)}static isJoditAssigned(e){return e&&(0,h.isJoditObject)(e.component)&&!e.component.isInDestruct}static get defaultOptions(){return a.D.defaultOptions}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 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 observer(){return this.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.setPlaceField("options",e)}get s(){return this.selection}get uploader(){return this.getInstance("Uploader",this.o.uploader)}get filebrowser(){const e=this,t=(0,h.ConfigProto)({defaultTimeout:e.defaultTimeout,uploader:e.o.uploader,language:e.o.language,license:e.o.license,theme:e.o.theme,defaultCallback(t){t.files&&t.files.length&&t.files.forEach(((i,o)=>{const s=t.baseurl+i;t.isImages&&t.isImages[o]?e.s.insertImage(s,null,e.o.imageDefaultWidth):e.s.insertNode(e.createInside.fromHTML(`<a href='${s}' title='${s}'>${s}</a>`))}))}},this.o.filebrowser);return e.getInstance("FileBrowser",t)}get mode(){return this.__mode}set mode(e){this.setMode(e)}getNativeEditorValue(){const e=this.e.fire("beforeGetNativeEditorValue");return(0,h.isString)(e)?e:this.editor?this.editor.innerHTML:this.getElementValue()}setNativeEditorValue(e){const 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.setEditorValue()}getEditorValue(e=!0,t){let i;if(i=this.e.fire("beforeGetValueFromEditor",t),void 0!==i)return i;i=this.getNativeEditorValue().replace(l.INVISIBLE_SPACE_REG_EXP(),""),e&&(i=i.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===i&&(i="");const o={value:i};return this.e.fire("afterGetValueFromEditor",o,t),o.value}setEditorValue(e){const t=this.e.fire("beforeSetValueToEditor",e);if(!1===t)return;if((0,h.isString)(t)&&(e=t),!this.editor)return void(void 0!==e&&this.__setElementValue(e));if(!(0,h.isString)(e)&&!(0,h.isVoid)(e))throw(0,h.error)("value must be string");void 0!==e&&this.getNativeEditorValue()!==e&&this.setNativeEditorValue(e),this.e.fire("postProcessSetEditorValue");const i=this.getElementValue(),o=this.getEditorValue();if(!this.isSilentChange&&i!==o&&l.SAFE_COUNT_CHANGE_CALL>this.__callChangeCount){this.__setElementValue(o),this.__callChangeCount+=1;try{this.history.upTick(),this.e.fire("change",o,i),this.e.fire(this.history,"change",o,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){const t=this.getElementValue();return(void 0===e||(0,h.isString)(e)&&e!==t)&&(null!=e||(e=t),e!==this.getEditorValue()&&this.setEditorValue(e)),this.__setElementValue(e)}__setElementValue(e){if(!(0,h.isString)(e))throw(0,h.error)("value must be string");if(this.element!==this.container&&e!==this.getElementValue()){const t={value:e},i=this.e.fire("beforeSetElementValue",t);(0,h.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){const o=e.toLowerCase();let s=this.commands.get(o);if(void 0===s&&(s=[],this.commands.set(o,s)),s.push(t),!(0,h.isFunction)(t)){const s=this.o.commandToHotkeys[o]||this.o.commandToHotkeys[e]||t.hotkeys;s&&this.registerHotkeyToCommand(s,o,null==i?void 0:i.stopPropagation)}return this}registerHotkeyToCommand(e,t,i=!0){const o=(0,h.asArray)(e).map(h.normalizeKeyAliases).map((e=>e+".hotkey")).join(" ");this.e.off(o).on(o,((e,o)=>(o&&(o.shouldStop=null==i||i),this.execCommand(t))))}execCommand(e,t=!1,i=null){if(this.s.isFocused()||this.s.focus(),this.o.readonly&&"selectall"!==e)return;let o;if(e=e.toLowerCase(),o=this.e.fire("beforeCommand",e,t,i),!1!==o&&(o=this.execCustomCommands(e,t,i)),!1!==o)if(this.s.focus(),"selectall"===e)this.s.select(this.editor,!0),this.s.expandSelection();else try{o=this.nativeExecCommand(e,t,i)}catch(e){}return this.e.fire("afterCommand",e,t,i),this.setEditorValue(),o}nativeExecCommand(e,t=!1,i=null){this.isSilentChange=!0;try{return this.ed.execCommand(e,t,i)}finally{this.isSilentChange=!1}}execCustomCommands(e,t=!1,i=null){e=e.toLowerCase();const o=this.commands.get(e);if(void 0!==o){let s;return o.forEach((o=>{let n;n=(0,h.isFunction)(o)?o:o.exec;const r=n.call(this,e,t,i);void 0!==r&&(s=r)})),s}}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()===l.MODE_WYSIWYG}getRealMode(){if(this.getMode()!==l.MODE_SPLIT)return this.getMode();const e=this.od.activeElement;return e&&(e===this.iframe||j.i.isOrContains(this.editor,e)||j.i.isOrContains(this.toolbar.container,e))?l.MODE_WYSIWYG:l.MODE_SOURCE}setMode(e){const t=this.getMode(),i={mode:parseInt(""+e,10)},o=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",i)&&(this.__mode=[l.MODE_SOURCE,l.MODE_WYSIWYG,l.MODE_SPLIT].includes(i.mode)?i.mode:l.MODE_WYSIWYG,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),o.forEach((e=>{this.container.classList.remove(e)})),this.container.classList.add(o[this.mode-1]),t!==this.getMode()&&this.e.fire("afterSetMode"))}toggleMode(){let e=this.getMode();[l.MODE_SOURCE,l.MODE_WYSIWYG,this.o.useSplitMode?l.MODE_SPLIT:9].includes(e+1)?e+=1:e=l.MODE_WYSIWYG,this.setMode(e)}setDisabled(e){this.o.disabled=e;const t=this.__wasReadOnly;this.setReadOnly(e||t),this.__wasReadOnly=t,this.editor&&(this.editor.setAttribute("aria-disabled",""+e),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}beforeInitHook(){}afterInitHook(){}initOptions(e){this.options=(0,h.ConfigProto)(e||{},a.D.defaultOptions)}initOwners(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}addPlace(e,t){const i=(0,h.resolveElement)(e,this.o.shadowRoot||this.od);this.attachEvents(t),i.attributes&&(0,h.toArray)(i.attributes).forEach((e=>{const i=e.name;let o=e.value;void 0===a.D.defaultOptions[i]||t&&void 0!==t[i]||(-1!==["readonly","disabled"].indexOf(i)&&(o=""===o||"true"===o),/^[0-9]+(\.)?([0-9]+)?$/.test(""+o)&&(o=Number(o)),this.options[i]=o)}));let o=this.c.div("jodit-container");o.classList.add("jodit"),o.classList.add("jodit-container"),o.classList.add("jodit_theme_"+(this.o.theme||"default"));const{styleValues:s}=this.o;Object.keys(s).forEach((e=>{const t=(0,h.kebabCase)(e);o.style.setProperty("--jd-"+t,s[e])})),o.setAttribute("contenteditable","false");let n=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(i.nodeName)&&(o=i,i.setAttribute(Ue,""+i.className),n=o.innerHTML,o.innerHTML=""),o.classList.add("jodit_inline"),o.classList.add("jodit-container")),i!==o&&(i.style.display&&i.setAttribute(We,i.style.display),i.style.display="none");const r=this.c.div("jodit-workplace",{contenteditable:!1});o.appendChild(r),i.parentNode&&i!==o&&i.parentNode.insertBefore(o,i),Object.defineProperty(i,"component",{enumerable:!1,configurable:!0,value:this});const l=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});r.appendChild(l);const c={editor:l,element:i,container:o,workplace:r,statusbar:new Me(this,o),options:this.isReady?(0,h.ConfigProto)(t||{},a.D.defaultOptions):this.options,history:new Le(this),editorWindow:this.ow};this.elementToPlace.set(l,c),this.setCurrentPlace(c),this.places.push(c),this.setNativeEditorValue(this.getElementValue());const d=this.initEditor(n),u=this.options;return(0,h.callPromise)(d,(()=>{u.enableDragAndDropFileToEditor&&u.uploader&&(u.uploader.url||u.uploader.insertImageAsBase64URI)&&this.uploader.bind(this.editor),this.elementToPlace.get(this.editor)||this.elementToPlace.set(this.editor,c),this.e.fire("afterAddPlace",c)}))}addDisclaimer(e){this.workplace.appendChild(e)}setCurrentPlace(e){this.currentPlace!==e&&(this.isEditorMode()||this.setMode(l.MODE_WYSIWYG),this.currentPlace=e,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",e))}initEditor(e){const t=this.createEditor();return(0,h.callPromise)(t,(()=>{if(this.isInDestruct)return;if(this.element!==this.container){const e=this.getElementValue();e!==this.getEditorValue()&&this.setEditorValue(e)}else null!=e&&this.setEditorValue(e);let t=this.o.defaultMode;if(this.o.saveModeInStorage){const 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(e){}try{this.ed.execCommand("enableObjectResizing",!1,"false")}catch(e){}try{this.ed.execCommand("enableInlineTableEditing",!1,"false")}catch(e){}}))}createEditor(){const e=this.editor,t=this.e.fire("createEditor",this);return(0,h.callPromise)(t,(()=>{if(!this.isInDestruct){if((!1===t||(0,h.isPromise)(t))&&j.i.safeRemove(e),this.o.editorCssClass&&this.editor.classList.add(this.o.editorCssClass),this.o.style&&(0,h.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.direction){const e="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.container.style.direction=e,this.container.setAttribute("dir",e),this.toolbar.setDirection(e)}this.o.triggerChangeEvent&&this.e.on("change",this.async.debounce((()=>{this.e&&this.e.fire(this.element,"change")}),this.defaultTimeout))}}))}prepareWYSIWYGEditor(){const{editor:e}=this;if(this.o.direction){const e="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=e,this.editor.setAttribute("dir",e)}this.e.on(e,"mousedown touchstart focus",(()=>{const 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()}}))}destruct(){if(this.isInDestruct)return;if(this.setStatus(m.n$.beforeDestruct),this.elementToPlace.clear(),!this.editor)return;const e=this.getEditorValue();this.storage.clear(),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),this.places.forEach((({container:t,workplace:i,statusbar:o,element:s,iframe:n,editor:r,history:a})=>{if(s!==t)if(s.hasAttribute(We)){const e=(0,h.attr)(s,We);e&&(s.style.display=e,s.removeAttribute(We))}else s.style.display="";else s.hasAttribute(Ue)&&(s.className=(0,h.attr)(s,Ue)||"",s.removeAttribute(Ue));s.hasAttribute("style")&&!(0,h.attr)(s,"style")&&s.removeAttribute("style"),o.destruct(),this.e.off(t),this.e.off(s),this.e.off(r),j.i.safeRemove(i),j.i.safeRemove(r),t!==s&&j.i.safeRemove(t),Object.defineProperty(s,"component",{enumerable:!1,configurable:!0,value:null}),j.i.safeRemove(n),t===s&&(s.innerHTML=e),a.destruct()})),this.places.length=0,this.currentPlace={},delete I.as[this.id],super.destruct()}}Jodit.fatMode=!1,Jodit.plugins=I.pw,Jodit.modules=I.qz,Jodit.ns=I.qz,Jodit.decorators={},Jodit.constants=l,Jodit.instances=I.as,Jodit.lang=l.lang,Jodit.core={Plugin:G},(0,r.gn)([x.cache],Jodit.prototype,"uploader",null),(0,r.gn)([x.cache],Jodit.prototype,"filebrowser",null),(0,r.gn)([(0,x.throttle)()],Jodit.prototype,"synchronizeValues",null),(0,r.gn)([(0,x.watch)(":internalChange")],Jodit.prototype,"updateElementValue",null),(0,r.gn)([x.autobind],Jodit.prototype,"prepareWYSIWYGEditor",null);const $e=i(78);let Ye={en:$e};{const e=i(79),t=i(80),o=i(81),s=i(82),n=i(83),r=i(84),a=i(85),l=i(86),c=i(87),d=i(88),h=i(89),u=i(90),p=i(91),m=i(92),f=i(93),g=i(94),v=i(95),b=i(96);Ye={ar:e,cs_cz:t,de:o,en:$e,es:s,fr:n,he:r,hu:a,id:l,it:c,ja:d,ko:h,nl:u,pl:p,pt_br:m,ru:f,tr:g,zh_cn:v,zh_tw:b}}const Ge=e=>e.default||e,Ke={};(0,v.kJ)(Ge($e))&&Ge($e).forEach(((e,t)=>{Ke[t]=e})),Object.keys(Ye).forEach((e=>{const t=Ge(Ye[e]);(0,v.kJ)(t)&&(Ye[e]={},t.forEach(((t,i)=>{Ye[e][Ke[i]]=t})))}));var Je=Ye;a.D.prototype.addNewLine=!0,a.D.prototype.addNewLineOnDBLClick=!0,a.D.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],a.D.prototype.addNewLineDeltaShow=20;const Xe="addnewline";class Ze extends G{constructor(){super(...arguments),this.line=this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n("Break")}" class="jodit-add-new-line"><span>${L.JO.get("enter")}</span></div>`),this.isMatchedTag=e=>!(!e||!this.j.o.addNewLineTagsTriggers.includes(e.nodeName.toLowerCase())),this.preview=!1,this.lineInFocus=!1,this.isShown=!1,this.hideForce=()=>{this.isShown&&(this.isShown=!1,this.j.async.clearTimeout(this.timeout),this.lineInFocus=!1,j.i.safeRemove(this.line),this.line.style.setProperty("--jd-offset-handle","0"))},this.canGetFocus=e=>null!=e&&j.i.isBlock(e)&&!/^(img|table|iframe|hr)$/i.test(e.nodeName),this.onClickLine=e=>{const t=this.j,i=t.createInside.element(t.o.enter);this.preview&&this.current&&this.current.parentNode?this.current===t.editor?j.i.prepend(t.editor,i):this.current.parentNode.insertBefore(i,this.current):t.editor.appendChild(i),t.s.setCursorIn(i),(0,h.scrollIntoViewIfNeeded)(i,t.editor,t.ed),t.e.fire("synchro"),this.hideForce(),e.preventDefault()}}show(){this.isShown||this.j.o.readonly||this.j.isLocked||(this.isShown=!0,this.j.async.clearTimeout(this.timeout),this.line.classList.toggle("jodit-add-new-line_after",!this.preview),this.j.container.appendChild(this.line),this.line.style.width=this.j.editor.clientWidth+"px")}onLock(e){e&&this.isShown&&this.hideForce()}hide(){this.isShown&&!this.lineInFocus&&(this.timeout=this.j.async.setTimeout(this.hideForce,{timeout:500,label:"add-new-line-hide"}))}afterInit(e){e.o.addNewLine&&(e.e.on(this.line,"mousemove",(e=>{e.stopPropagation()})).on(this.line,"mousedown touchstart",this.onClickLine).on("change",this.hideForce).on(this.line,"mouseenter",(()=>{this.j.async.clearTimeout(this.timeout),this.lineInFocus=!0})).on(this.line,"mouseleave",(()=>{this.lineInFocus=!1})).on("changePlace",this.addEventListeners.bind(this)),this.addEventListeners())}addEventListeners(){const e=this.j;e.e.off(e.editor,"."+Xe).off(e.container,"."+Xe).on([e.ow,e.ew,e.editor],"scroll."+Xe,this.hideForce).on(e.editor,"click."+Xe,this.hide).on(e.container,"mouseleave."+Xe,this.hide).on(e.editor,"mousemove."+Xe,this.onMouseMove)}onDblClickEditor(e){const t=this.j;if(!t.o.readonly&&t.o.addNewLineOnDBLClick&&e.target===t.editor&&t.s.isCollapsed()){const i=(0,h.offset)(t.editor,t,t.ed),o=e.pageY-t.ew.pageYOffset,s=t.createInside.element(t.o.enter);Math.abs(o-(i.height+i.top))>Math.abs(o-i.top)&&t.editor.firstChild?t.editor.insertBefore(s,t.editor.firstChild):t.editor.appendChild(s),t.s.setCursorIn(s),t.synchronizeValues(),this.hideForce(),e.preventDefault()}}onMouseMove(e){const t=this.j;let i=t.ed.elementFromPoint(e.clientX,e.clientY);if(!j.i.isHTMLElement(i)||j.i.isOrContains(this.line,i))return;if(!j.i.isOrContains(t.editor,i))return;if(t.editor===i||this.isMatchedTag(i)||(i=j.i.closest(i,this.isMatchedTag,t.editor)),!i)return void this.hide();if(this.isMatchedTag(i)){const e=j.i.up(i,j.i.isBlock,t.editor);e&&e!==t.editor&&(i=e)}const o=(0,h.position)(i,this.j);let s=!1,{clientY:n}=e;if(this.j.iframe){const{top:e}=(0,h.position)(this.j.iframe,this.j,!0);n+=e}const r=this.j.o.addNewLineDeltaShow;Math.abs(n-o.top)>r||(s=o.top,this.preview=!0),Math.abs(n-(o.top+o.height))>r||(s=o.top+o.height,this.preview=!1),!1===s||(t.editor!==i||this.preview)&&(0,h.call)(this.preview?j.i.prev:j.i.next,i,this.canGetFocus,t.editor)?(this.current=!1,this.hide()):(this.line.style.top=s+"px",this.current=i,this.show(),this.line.style.setProperty("--jd-offset-handle",e.clientX-o.left-10+"px"))}beforeDestruct(){this.j.async.clearTimeout(this.timeout),this.j.e.off(this.line).off("changePlace",this.addEventListeners),j.i.safeRemove(this.line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+Xe).off(this.j.container,"."+Xe)}}function Qe(e){e.registerButton({name:"about",group:"info"})}function et(e){e.o.saveSelectionOnBlur&&e.e.on("blur",(()=>{e.isEditorMode()&&e.s.save(!0)})).on("focus",(()=>{e.s.restore()}));const t=()=>{if(e.s.focus(),"end"===e.o.cursorAfterAutofocus){const t=j.i.last(e.editor,(e=>j.i.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&&j.i.isBlock(t.target)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))}))}))}(0,r.gn)([(0,x.watch)(":lock")],Ze.prototype,"onLock",null),(0,r.gn)([x.autobind],Ze.prototype,"hide",null),(0,r.gn)([(0,x.watch)(":dblclick")],Ze.prototype,"onDblClickEditor",null),(0,r.gn)([(0,x.debounce)((e=>5*e.defaultTimeout))],Ze.prototype,"onMouseMove",null),a.D.prototype.controls.about={exec(e){const t=new V({language:e.o.language}),i=e.i18n.bind(e);t.setMod("theme",e.o.theme).setHeader(i("About Jodit")).setContent(`<div class="jodit-about">\n\t\t\t\t\t<div>${i("Jodit Editor")} v.${e.getVersion()}</div>\n\t\t\t\t\t<div>${i("License: %s",(0,h.isLicense)(e.o.license)?(0,h.normalizeLicense)(e.o.license):"MIT")}</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="https://xdsoft.net/jodit/" target="_blank">https://xdsoft.net/jodit/</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="https://xdsoft.net/jodit/doc/" target="_blank">${i("Jodit User's Guide")}</a>\n\t\t\t\t\t\t${i("contains detailed help for using")}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>${i("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.")}</div>\n\t\t\t\t</div>`),(0,h.css)(t.dialog,{minHeight:200,minWidth:420}),t.open(!0).bindDestruct(e)},tooltip:"About Jodit",mode:l.MODE_SOURCE+l.MODE_WYSIWYG},a.D.prototype.autofocus=!1,a.D.prototype.cursorAfterAutofocus="end",a.D.prototype.saveSelectionOnBlur=!0,a.D.prototype.controls.classSpan={command:"applyClassName",icon:i(97),exec:h.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(e,t){const i=e.s.current();if(i){const o=j.i.closest(i,j.i.isElement,e.editor)||e.editor;return!(!t.args||!o.classList.contains(""+t.args[0]))}return!1},isActive(e,t){const i=e.s.current();if(i){const o=j.i.closest(i,j.i.isElement,e.editor)||e.editor;let s=!1;return t.list&&Object.keys(t.list).forEach((e=>{o.classList.contains(e)&&(s=!0)})),!(!o||o===e.editor||void 0===t.list||!s)}return!1},childTemplate:(e,t,i)=>`<span class="${t}">${e.i18n(i)}</span>`,tooltip:"Insert className"};class tt extends G{constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"font"}]}afterInit(e){e.registerCommand("applyClassName",((t,i,o)=>(e.s.applyStyle(void 0,{className:o}),!1)))}beforeDestruct(){}}var it=i(29),ot=i(64);function st(e,t,i){return(0,it.RE)(t?j.i.prev:j.i.next,e,(e=>!(!e||j.i.isText(e)&&!(0,ot.fy)((null==e?void 0:e.nodeValue)||"").length)),i)}function nt(e,t){return j.i.findSibling(e,t,(e=>{var t;return!j.i.isEmptyTextNode(e)&&!!(!j.i.isText(e)||(null===(t=e.nodeValue)||void 0===t?void 0:t.length)&&(0,ot.fy)(e.nodeValue))}))}function rt(e,t,i,o=!1){const s=e=>t?e.firstChild:e.lastChild;let n=st(e,!t,i);if(o&&j.i.isElement(n)&&!j.i.isInlineBlock(n))return null;if(n)do{if(!s(n))return n;n=s(n)}while(n);return null}function at(e,t,i){const o=j.i.findSibling(t,i),s=j.i.findSibling(t,!i);if(!j.i.closest(t,j.i.isElement,e.editor)&&j.i.isTag(o,["ul","ol"])&&j.i.isTag(s,["ul","ol"])&&j.i.isTag(o.lastElementChild,"li")&&j.i.isTag(s.firstElementChild,"li")){const{setCursorBefore:n,setCursorAfter:r}=e.s,a=o.lastElementChild;return(0,h.call)(i?j.i.prepend:j.i.append,s.firstElementChild,t),j.i.moveContent(s,o,!i),j.i.safeRemove(s),(0,h.call)(i?j.i.append:j.i.prepend,a,t),(0,h.call)(i?n:r,t),!0}return!1}function lt(e,t,i){let o=!1;const{setCursorBefore:s,setCursorIn:n}=e.s;let r=j.i.closest(t,j.i.isElement,e.editor);if(!r||!j.i.isEmpty(r))return!1;const a=st(t,i,e.editor);do{if(!r||!j.i.isEmpty(r)||j.i.isCell(r))break;{j.i.after(r,t);const i=j.i.closest(r,(e=>j.i.isElement(e)&&e!==r),e.editor);j.i.safeRemove(r),o=!0,r=i}}while(r);return!(!o||!at(e,t,i))||(!a||j.i.isText(a)||j.i.isTag(a,l.INSEPARABLE_TAGS)?s(t):n(a,!i),o)}var ct=i(56);function dt(e,t,i,o){if(t&&j.i.isElement(i)){j.i.moveContent(t,i,!o);let s=t;for(;s&&s!==e.editor&&j.i.isEmpty(s);){const e=s.parentElement;j.i.safeRemove(s),s=e}return!0}return!1}const ht=[(e,t,i)=>{const o=j.i.findSibling(t,i);return!(!j.i.isElement(o)||!j.i.isTag(o,l.INSEPARABLE_TAGS)&&!j.i.isEmpty(o)||(j.i.safeRemove(o),e.s.setCursorBefore(t),j.i.isTag(o,"br")&<(e,t,i),0))},(e,t,i)=>{let o=j.i.findSibling(t,i);return!o&&t.parentElement&&t.parentElement!==e.editor&&(o=j.i.findSibling(t.parentElement,i)),!(!j.i.isElement(o)||j.i.isContentEditable(o,e.editor)||((0,h.call)(i?j.i.before:j.i.after,o,t),j.i.safeRemove(o),(0,ct.F)(e,t,i),(0,h.call)(i?e.s.setCursorBefore:e.s.setCursorAfter,t),0))},function e(t,i,o,s){var n,r,a;const c=o?-1:1,d=j.i.sibling(i,!o);let u,p=j.i.sibling(i,o),m=null,f=!1;for(;p&&(j.i.isText(p)||j.i.isInlineBlock(p));){for(;j.i.isInlineBlock(p);)p=o?null==p?void 0:p.lastChild:null==p?void 0:p.firstChild;if(!p)break;if(null===(n=p.nodeValue)||void 0===n?void 0:n.length){let e=(0,h.toArray)(p.nodeValue);const t=e.length;let i=o?t-1:0;if(e[i]===l.INVISIBLE_SPACE)for(;e[i]===l.INVISIBLE_SPACE;)i+=c;if(u=e[i],e[i+c]===l.INVISIBLE_SPACE){for(i+=c;e[i]===l.INVISIBLE_SPACE;)i+=c;i+=o?1:-1}if(e=o&&0>i?[]:e.slice(o?0:i+1,o?i:t),!d||!j.i.isText(d)||(o?/^ /:/ $/).test(null!==(r=d.nodeValue)&&void 0!==r?r:"")||!(0,h.trimInv)(d.nodeValue||"").length)for(let t=o?e.length-1:0;(o?t>=0:e.length>t)&&" "===e[t];t+=o?-1:1)e[t]=l.NBSP_SPACE;p.nodeValue=e.join("")}if((null===(a=p.nodeValue)||void 0===a?void 0:a.length)||(m=p),!(0,h.isVoid)(u)&&u!==l.INVISIBLE_SPACE){f=!0,(0,h.call)(o?j.i.after:j.i.before,p,i),("sentence"===s||"word"===s&&" "!==u&&u!==l.NBSP_SPACE)&&e(t,i,o,s);break}let g=j.i.sibling(p,o);!g&&p.parentNode&&p.parentNode!==t.editor&&(g=rt(p,!o,t.editor,!0)),m&&(j.i.safeRemove(m),m=null),p=g}return f&&((e=>{let t=e.parentElement;for(;t&&j.i.isInlineBlock(t);){const i=t.parentElement;j.i.isEmpty(t)&&(j.i.after(t,e),j.i.safeRemove(t)),t=i}})(i),((e,t)=>{t.parentElement!==e.editor&&j.i.isBlock(t.parentElement)&&j.i.each(t.parentElement,j.i.isEmptyTextNode)&&j.i.after(t,e.createInside.element("br"))})(t,i),t.s.setCursorBefore(i)),f},(e,t)=>!!j.i.isCell(t.parentElement),lt,(e,t,i)=>{const o=j.i.closest(t,j.i.isElement,e.editor);if(!o)return!1;const s=nt(o,i);return!(!s||!j.i.isEmpty(s)||(j.i.safeRemove(s),e.s.setCursorBefore(t),0))},at,(e,t,i)=>{let o=t,s=o;for(;o&&!nt(o,i)&&o.parentElement!==e.editor;)o=o.parentElement,s=o;if(j.i.isElement(s)&&j.i.isContentEditable(s,e.editor)){const o=nt(s,i);if(o&&(((e,t,i,o)=>{const s=j.i.isTag(i,["ol","ul"]),n=j.i.isTag(t,["ol","ul"]),r=(e,t)=>t?e.firstElementChild:e.lastElementChild;return n?(i=e.createInside.element(e.o.enterBlock),j.i.before(t,i),dt(e,r(t,o),i,o)):!(!i||!s||n)&&dt(e,t,r(i,!o),o)})(e,s,o,i)||dt(e,s,o,i)))return e.s.setCursorBefore(t),!0}return!1},(e,t,i)=>{var o;const s=j.i.closest(t,j.i.isElement,e.editor),{s:n}=e;if(j.i.isTag(s,"li")&&(null===(o=null==s?void 0:s.parentElement)||void 0===o?void 0:o[i?"firstElementChild":"lastElementChild"])===s&&n.cursorInTheEdge(i,s)){const o=s.parentElement,r=e.createInside.element(e.o.enterBlock);return(0,it.RE)(i?j.i.before:j.i.after,o,r),j.i.moveContent(s,r),j.i.safeRemove(s),j.i.isEmpty(o)&&j.i.safeRemove(o),(0,it.RE)(i?n.setCursorBefore:n.setCursorAfter,t),!0}return!1}];a.D.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}};class ut extends G{constructor(){super(...arguments),this.requires=["hotkeys"]}afterInit(e){e.e.on("afterCommand.delete",(e=>{"delete"===e&&this.afterDeleteCommand()})),e.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:e.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:e.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:e.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:e.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:e.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:e.o.delete.hotkeys.backspaceSentence})}beforeDestruct(e){e.e.off("afterCommand.delete")}afterDeleteCommand(){const e=this.j,t=e.s.current();if(t&&j.i.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!((0,h.trim)(e.editor.textContent||"")||e.editor.querySelector("img")||t&&j.i.closest(t,"table",e.editor))){e.editor.innerHTML="";const t=e.s.setCursorIn(e.editor);e.s.removeNode(t)}}onDelete(e,t="char"){const i=this.j,o=i.selection;if(o.isFocused()||o.focus(),(e=>!e.s.isCollapsed()&&(e.execCommand("Delete"),!0))(i))return!1;const s=o.range,n=i.createInside.text(l.INVISIBLE_SPACE);try{if(s.insertNode(n),!j.i.isOrContains(i.editor,n))return;if((0,ct.F)(i,n,e),ht.some((o=>(0,h.isFunction)(o)&&o(i,n,e,t))))return!1}catch(e){throw e}finally{this.safeRemoveEmptyNode(n)}return!1}safeRemoveEmptyNode(e){var t,i;const{range:o}=this.j.s;o.startContainer===e&&(e.previousSibling?j.i.isText(e.previousSibling)?o.setStart(e.previousSibling,null!==(i=null===(t=e.previousSibling.nodeValue)||void 0===t?void 0:t.length)&&void 0!==i?i:0):o.setStartAfter(e.previousSibling):e.nextSibling&&(j.i.isText(e.nextSibling)?o.setStart(e.nextSibling,0):o.setStartBefore(e.nextSibling)),o.collapse(!0),this.j.s.selectRange(o)),j.i.safeRemove(e)}}function pt(e){const t=t=>{const i=a.D.defaultOptions.controls[t],o={...i.css},s={};return Object.keys(o).forEach((e=>{s[e]=(0,h.isArray)(o[e])?o[e][0]:o[e]})),e.s.applyStyle(s,{element:i.tags?i.tags[0]:void 0}),e.e.fire("synchro"),!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})}a.D.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},a.D.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},a.D.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},a.D.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},a.D.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},a.D.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"};var mt=i(62),ft=i(48);function gt(e){const t=/([^[]*)\[([^\]]+)]/,i=/[\s]*,[\s]*/,o=/^(.*)[\s]*=[\s]*(.*)$/,s={};return(0,h.isString)(e)?(e.split(i).map((e=>{e=(0,h.trim)(e);const n=t.exec(e),r={},a=e=>{e=(0,h.trim)(e);const t=o.exec(e);t?r[t[1]]=t[2]:r[e]=!0};if(n){const e=n[2].split(i);n[1]&&(e.forEach(a),s[n[1].toUpperCase()]=r)}else s[e.toUpperCase()]=!0})),s):!!e&&(Object.keys(e).forEach((t=>{s[t.toUpperCase()]=e[t]})),s)}var vt=i(42);function bt(e,t){const{s:i}=e;let o=t;o||(o=e.createInside.fake(),i.range.insertNode(o),i.range.collapse());const s=vt.i.furthest(o,yt,e.editor);if(s)if(i.cursorOnTheLeft(s))vt.i.before(s,o);else if(i.cursorOnTheRight(s))vt.i.after(s,o);else{const e=i.splitSelection(s);e&&vt.i.after(e,o)}t||(i.setCursorBefore(o),vt.i.safeRemove(o))}function yt(e){return vt.i.isInlineBlock(e)&&!vt.i.isTag(e,l.INSEPARABLE_TAGS)}function wt(e,t,i){const o=((e,t,i)=>{if(!i||!vt.i.isHTMLElement(t))return t;const o=i[t.nodeName.toLowerCase()]||i[t.nodeName];return o?vt.i.replace(t,o,e.createInside,!0,!1):t})(e,t,e.o.cleanHTML.replaceOldTags);return t!==o?(t=o,!0):i}function kt(e,t,i,o){if(o&&vt.i.isElement(t)&&!0!==o[t.nodeName]){const e=t.attributes;if(e&&e.length){const s=[];for(let i=0;e.length>i;i+=1){const n=o[t.nodeName][e[i].name];(!n||!0!==n&&n!==e[i].value)&&s.push(e[i].name)}s.length&&(i=!0),s.forEach((e=>{t.removeAttribute(e)}))}}return i}function Ct(e,t,i){if(e.o.cleanHTML.fillEmptyParagraph&&vt.i.isBlock(t)&&vt.i.isEmpty(t,/^(img|svg|canvas|input|textarea|form|br)$/)){const i=e.createInside.element("br");return t.appendChild(i),!0}return i}var St=i(61);function Et(e,t,i,o,s,n){return((e,t,i,o,s)=>!(vt.i.isText(t)||!(o&&!o[t.nodeName]||s&&s[t.nodeName]))||e.o.cleanHTML.removeEmptyElements&&vt.i.isElement(t)&&null!=t.nodeName.match(l.IS_INLINE)&&!vt.i.isTemporary(t)&&0===(0,St.f)(t.innerHTML).length&&(null==i||!vt.i.isOrContains(t,i)))(e,t,n,o,s)?(vt.i.safeRemove(t),!0):i}function It(e,t,i,o,s,n){return n&&vt.i.isText(t)&&null!=t.nodeValue&&(0,l.INVISIBLE_SPACE_REG_EXP)().test(t.nodeValue)&&0!==t.nodeValue.replace((0,l.INVISIBLE_SPACE_REG_EXP)(),"").length?(t.nodeValue=t.nodeValue.replace((0,l.INVISIBLE_SPACE_REG_EXP)(),""),t===n&&e.s.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||vt.i.safeRemove(t),!0):i}function xt(e,t,i){return!(!vt.i.isElement(t)||!(0,h.sanitizeHTMLElement)(t))||i}const zt=Object.keys(t);a.D.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:!1,removeOnError:!0,safeJavaScriptLink:!0},a.D.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"};class Tt extends G{constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new ft.b(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}afterInit(e){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;const e=this.j;this.walker.setWork(e.editor),this.currentSelectionNode=e.s.current()}startWalker(){const{jodit:e}=this,i=gt(this.j.o.cleanHTML.allowTags),o=gt(this.j.o.cleanHTML.denyTags);this.walker.on("visit",(s=>((e,i,o,s,n)=>{let r=!1;for(const a of zt)if(r=(0,t[a])(e,i,r,o,s,n),!i.isConnected)return!0;return r})(e,s,i,o,this.currentSelectionNode))).on("end",(e=>{this.j.e.fire(e?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")}))}beforeCommand(e){if("removeformat"===e.toLowerCase())return this.j.s.isCollapsed()?bt(this.j):(e=>{const{s:t,editor:i,createInside:o}=e,{range:s}=t,n=s.cloneRange(),r=s.cloneRange(),a=o.fake(),l=o.fake();n.collapse(!0),r.collapse(!1),n.insertNode(a),r.insertNode(l),s.setStartBefore(a),s.collapse(!0),t.selectRange(s),bt(e,a),s.setEndAfter(l),s.collapse(!1),t.selectRange(s),bt(e,l);const c=[];vt.i.between(a,l,(e=>{yt(e)&&c.push(e),vt.i.isElement(e)&&(0,it.Lj)(e,"style")&&(0,it.Lj)(e,"style",null)})),c.forEach((e=>vt.i.unwrap(e)));const d=(e,t)=>{if(!nt(e,t)){const o=e.parentNode;if(o&&o!==i&&(0,it.Lj)(o,"style"))return(0,it.Lj)(o,"style",null),d(o,t),!0}};d(a,!0)&&d(l,!1),s.setStartAfter(a),s.setEndBefore(l),t.selectRange(s),vt.i.safeRemove(a),vt.i.safeRemove(l)})(this.j),!1}onBeforeSetNativeEditorValue(e){const t=this.j.createInside.div();return t.innerHTML=e.value,this.onSafeHTML(t),e.value=t.innerHTML,!1}onSafeHTML(e){(0,mt.e)(e,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}}(0,r.gn)([(0,x.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],Tt.prototype,"onChangeCleanHTML",null),(0,r.gn)([(0,x.hook)("ready")],Tt.prototype,"startWalker",null),(0,r.gn)([(0,x.watch)(":beforeCommand")],Tt.prototype,"beforeCommand",null),(0,r.gn)([(0,x.watch)(":beforeSetNativeEditorValue")],Tt.prototype,"onBeforeSetNativeEditorValue",null),(0,r.gn)([(0,x.watch)(":safeHTML")],Tt.prototype,"onSafeHTML",null);var jt=i(8);a.D.prototype.wrapNodes={exclude:["hr","style","br"]};class Lt extends G{constructor(){super(...arguments),this.isSuitableStart=e=>j.i.isText(e)&&(0,jt.H)(e.nodeValue)&&/[^\s]/.test(e.nodeValue)||this.isNotClosed(e)&&!j.i.isTemporary(e),this.isSuitable=e=>j.i.isText(e)||this.isNotClosed(e),this.isNotClosed=e=>j.i.isElement(e)&&!(j.i.isBlock(e)||j.i.isTag(e,this.j.o.wrapNodes.exclude))}afterInit(e){"br"!==e.o.enter.toLowerCase()&&e.e.on("afterInit.wtn postProcessSetEditorValue.wtn",this.postProcessSetEditorValue)}beforeDestruct(e){e.e.off(".wtn")}postProcessSetEditorValue(){const{jodit:e}=this;if(!e.isEditorMode())return;let t=e.editor.firstChild,i=!1;for(;t;){if(this.checkAloneListLeaf(t,e),this.isSuitableStart(t)){i||e.s.save(),i=!0;const o=e.createInside.element(e.o.enter);for(j.i.before(t,o);t&&this.isSuitable(t);){const e=t.nextSibling;o.appendChild(t),t=e}o.normalize()}t=t&&t.nextSibling}i&&(e.s.restore(),"afterInit"===e.e.current&&e.e.fire("internalChange"))}checkAloneListLeaf(e,t){j.i.isElement(e)&&j.i.isTag(e,"li")&&!j.i.isTag(e.parentElement,["ul","ol"])&&j.i.wrap(e,"ul",t.createInside)}}(0,r.gn)([x.autobind],Lt.prototype,"postProcessSetEditorValue",null),a.D.prototype.controls.cut={command:"cut",isDisabled:e=>e.s.isCollapsed(),tooltip:"Cut selection"},a.D.prototype.controls.copy={command:"copy",isDisabled:e=>e.s.isCollapsed(),tooltip:"Copy selection"},a.D.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"};var At=i(30);const Mt=e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}};function Dt(e,t,i){if(t.isInDestruct)return;(e=>!(!e||"drop"!==e.type))(e)&&t.s.insertCursorAtPoint(e.clientX,e.clientY);const o=t.e.fire("beforePasteInsert",i);!(0,v.nj)(o)&&((0,v.HD)(o)||(0,v.hj)(o)||j.i.isNode(o))&&(i=o),(0,v.HD)(i)&&(i=(e=>{const t=(e=e.replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i);-1!==t&&(e=e.substring(t+20));const i=e.search(/<!--EndFragment-->/i);return-1!==i&&(e=e.substring(0,i)),e})(i)),t.s.insertHTML(i)}function Pt(e,t,i,o,s){if(!1===e.e.fire("beforeOpenPasteDialog",t,i,o,s))return;const n=$(`<div style="word-break: normal; white-space: normal">${e.i18n(t)}</div>`,e.i18n(i));n.bindDestruct(e),(0,At.MN)(e,n.container);const r=s.map((({text:t,value:i})=>(0,L.zx)(e,{text:t,name:t.toLowerCase(),tabIndex:0}).onAction((()=>o(i))))),a=(0,L.zx)(e,{text:"Cancel",tabIndex:0});return n.setFooter([...r,a].map((e=>e.onAction((()=>n.close()))))),r[0].focus(),r[0].state.variant="primary",e.e.fire("afterOpenPasteDialog",n,t,i,o,s),n}const _t="clipboard";class Rt{constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}init(e){var t;null===(t=this.buttons)||void 0===t||t.forEach((t=>e.registerButton(t))),e.e.off("copy.clipboard cut.clipboard").on("copy.clipboard cut.clipboard",(t=>{var i;const o=e.s.html,s=Mt(t)||Mt(e.ew)||Mt(t.originalEvent);s&&(s.setData(l.TEXT_PLAIN,(0,h.stripTags)(o)),s.setData(l.TEXT_HTML,o)),e.buffer.set(_t,o),e.e.fire("pasteStack",{html:o,action:e.o.defaultActionOnPaste}),"cut"===t.type&&(e.s.remove(),e.s.focus()),t.preventDefault(),null===(i=null==e?void 0:e.events)||void 0===i||i.fire("afterCopy",o)}))}destruct(e){var t,i;null===(t=null==e?void 0:e.buffer)||void 0===t||t.set(_t,""),null===(i=null==e?void 0:e.events)||void 0===i||i.off(".clipboard")}}a.D.prototype.askBeforePasteHTML=!0,a.D.prototype.processPasteHTML=!0,a.D.prototype.pasteHTMLActionList=[{value:l.INSERT_AS_HTML,text:"Keep"},{value:l.INSERT_AS_TEXT,text:"Insert as Text"},{value:l.INSERT_ONLY_TEXT,text:"Insert only Text"}],a.D.prototype.memorizeChoiceWhenPasteFragment=!1,a.D.prototype.nl2brInPlainText=!0,a.D.prototype.defaultActionOnPaste=l.INSERT_AS_HTML,a.D.prototype.draggableTags=["img","jodit-media","jodit"];const qt="pasteStorage";a.D.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(e,t,{control:i}){if(i.name===qt)return void e.execCommand("showPasteStorage");e.s.focus();let o="",s=!0;if(navigator.clipboard){try{const e=await navigator.clipboard.read();if(e&&e.length){const t=await e[0].getType(l.TEXT_PLAIN);o=await new Response(t).text()}s=!1}catch(e){}if(s)try{o=await navigator.clipboard.readText(),s=!1}catch(e){}}s&&(o=e.buffer.get(_t)||"",s=0===o.length);const n=e.value;s?(e.ed.execCommand("paste"),s=n===e.value,!s&&e.e.fire("afterPaste")):o.length?(Dt(null,e,o),e.e.fire("afterPaste")):s&&W(e.i18n("Your browser doesn't support direct access to the clipboard."),(()=>{e.s.focus()})).bindDestruct(e)},list:{[qt]:"Paste Storage"},isChildDisabled(e){return 2>e.e.fire("pasteStorageList")}};class Nt extends G{constructor(){super(...arguments),this.pasteStack=new h.LimitedStack(20)}afterInit(e){e.e.on("paste.paste",this.onPaste).on("pasteStack.paste",(e=>this.pasteStack.push(e))),e.o.nl2brInPlainText&&this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}onPaste(e){try{if(!1===this.customPasteProcess(e)||!1===this.j.e.fire("beforePaste",e))return e.preventDefault(),!1;this.defaultPasteProcess(e)}finally{this.j.e.fire("afterPaste",e)}}customPasteProcess(e){if(!this.j.o.processPasteHTML)return;const t=Mt(e),i={html:null==t?void 0:t.getData(l.TEXT_HTML),plain:null==t?void 0:t.getData(l.TEXT_PLAIN),rtf:null==t?void 0:t.getData(l.TEXT_RTF)};let o;for(o in i){const t=i[o];if((0,h.isHTML)(t)&&(this.j.e.fire("processHTML",e,t,i)||this.processHTML(e,t)))return!1}}defaultPasteProcess(e){const t=Mt(e);let i=(null==t?void 0:t.getData(l.TEXT_HTML))||(null==t?void 0:t.getData(l.TEXT_PLAIN));if(t&&i&&""!==(0,h.trim)(i)){const o=this.j.e.fire("processPaste",e,i,(e=>{const t=e.types;let i="";if((0,v.kJ)(t)||"[object DOMStringList]"==={}.toString.call(t))for(let e=0;t.length>e;e+=1)i+=t[e]+";";else i=(t||l.TEXT_PLAIN)+";";return i})(t));void 0!==o&&(i=o),((0,h.isString)(i)||j.i.isNode(i))&&this.insertByType(e,i,this.j.o.defaultActionOnPaste),e.preventDefault(),e.stopPropagation()}}processHTML(e,t){if(this.j.o.askBeforePasteHTML){if(this.j.o.memorizeChoiceWhenPasteFragment){const i=this.pasteStack.find((e=>e.html===t));if(i)return this.insertByType(e,t,i.action||this.j.o.defaultActionOnPaste),!0}return Pt(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",(i=>{this.insertByType(e,t,i)}),this.j.o.pasteHTMLActionList),!0}return!1}insertByType(e,t,i){if(this.pasteStack.push({html:t,action:i}),(0,h.isString)(t))switch(this.j.buffer.set(_t,t),i){case l.INSERT_CLEAR_HTML:t=(0,h.cleanFromWord)(t);break;case l.INSERT_ONLY_TEXT:t=(0,h.stripTags)(t);break;case l.INSERT_AS_TEXT:t=(0,h.htmlspecialchars)(t)}Dt(e,this.j,t)}onProcessPasteReplaceNl2Br(e,t,i){if(i===l.TEXT_PLAIN+";"&&!(0,h.isHTML)(t))return(0,h.nl2br)(t)}beforeDestruct(e){e.e.off("paste.paste",this.onPaste)}}(0,r.gn)([x.autobind],Nt.prototype,"onPaste",null),(0,r.gn)([x.autobind],Nt.prototype,"onProcessPasteReplaceNl2Br",null),a.D.prototype.askBeforePasteFromWord=!0,a.D.prototype.processPasteFromWord=!0,a.D.prototype.defaultActionOnPasteFromWord=null,a.D.prototype.pasteFromWordActionList=[{value:l.INSERT_AS_HTML,text:"Keep"},{value:l.INSERT_AS_TEXT,text:"Clean"},{value:l.INSERT_ONLY_TEXT,text:"Insert only Text"}];class Bt extends G{afterInit(e){}beforeDestruct(e){}processWordHTML(e,t,i){const{j:o}=this,{processPasteFromWord:s,askBeforePasteFromWord:n,defaultActionOnPasteFromWord:r,defaultActionOnPaste:a,pasteFromWordActionList:l}=o.o;return!(!s||!(0,h.isHtmlFromWord)(t)||(n?Pt(o,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",(o=>{this.insertFromWordByType(e,t,o,i)}),l):this.insertFromWordByType(e,t,r||a,i),0))}insertFromWordByType(e,t,i,o){var s;switch(i){case l.INSERT_AS_HTML:if(t=(0,h.applyStyles)(t),this.j.o.beautifyHTML){const e=null===(s=this.j.events)||void 0===s?void 0:s.fire("beautifyHTML",t);(0,h.isString)(e)&&(t=e)}break;case l.INSERT_AS_TEXT:t=(0,h.cleanFromWord)(t);break;case l.INSERT_ONLY_TEXT:t=(0,h.stripTags)((0,h.cleanFromWord)(t))}Dt(e,this.j,t)}}(0,r.gn)([(0,x.watch)(":processHTML")],Bt.prototype,"processWordHTML",null);class Ht extends G{constructor(){super(...arguments),this.currentIndex=0,this.list=[],this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.paste=()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){const e=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=e}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")},this.onKeyDown=e=>{let t=this.currentIndex;-1!==[l.KEY_UP,l.KEY_DOWN,l.KEY_ENTER].indexOf(e.key)&&(e.key===l.KEY_UP&&(0===t?t=this.list.length-1:t-=1),e.key===l.KEY_DOWN&&(t===this.list.length-1?t=0:t+=1),e.key!==l.KEY_ENTER?(t!==this.currentIndex&&this.selectIndex(t),e.stopImmediatePropagation(),e.preventDefault()):this.paste())},this.selectIndex=e=>{this.listBox&&(0,h.toArray)(this.listBox.childNodes).forEach(((t,i)=>{t.classList.remove("jodit_active"),e===i&&this.previewBox&&(t.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[e],t.focus())})),this.currentIndex=e},this.showDialog=()=>{2>this.list.length||(this.dialog||this.createDialog(),this.listBox&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),this.list.forEach(((e,t)=>{const i=this.j.c.element("a");i.textContent=t+1+". "+e.replace((0,l.SPACE_REG_EXP)(),""),this.j.e.on(i,"keydown",this.onKeyDown),(0,h.attr)(i,"href","#"),(0,h.attr)(i,"data-index",""+t),(0,h.attr)(i,"tab-index","-1"),this.listBox&&this.listBox.appendChild(i)})),this.dialog&&this.dialog.open(),this.j.async.setTimeout((()=>{this.selectIndex(0)}),100))}}createDialog(){this.dialog=new V({language:this.j.o.language});const e=(0,L.zx)(this.j,"paste","Paste","primary");e.onAction(this.paste);const t=(0,L.zx)(this.j,"","Cancel");t.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([e,t]),this.j.e.on(this.listBox,"click dblclick",(e=>{const t=e.target;return j.i.isTag(t,"a")&&t.hasAttribute("data-index")&&this.selectIndex(parseInt((0,h.attr)(t,"-index")||"0",10)),"dblclick"===e.type&&this.paste(),!1}))}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",(()=>this.list.length)).on("afterCopy.paste-storage",(e=>{-1!==this.list.indexOf(e)&&this.list.splice(this.list.indexOf(e),1),this.list.unshift(e),this.list.length>5&&(this.list.length=5)})),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),j.i.safeRemove(this.previewBox),j.i.safeRemove(this.listBox),j.i.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}}const Ot="copyformat",Ft=["fontWeight","fontStyle","fontSize","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine","fontFamily"],Vt=(e,t,i,o)=>{let s=(0,h.css)(i,t);return s===o[t]&&(s=i.parentNode&&i!==e.editor&&i.parentNode!==e.editor?Vt(e,t,i.parentNode,o):void 0),s};function Wt(e){e.registerButton({name:"copyformat",group:"clipboard"})}a.D.prototype.controls.copyformat={exec(e,t,{button:i}){if(t){if(e.buffer.exists(Ot))e.buffer.delete(Ot),e.e.off(e.editor,"mouseup.copyformat");else{const i={},o=j.i.up(t,(e=>e&&!j.i.isText(e)),e.editor)||e.editor,s=e.createInside.span();e.editor.appendChild(s),Ft.forEach((e=>{i[e]=(0,h.css)(s,e)})),s!==e.editor&&j.i.safeRemove(s);const n=((e,t,i)=>{const o={};return t&&Ft.forEach((s=>{o[s]=Vt(e,s,t,i),s.match(/border(Style|Color)/)&&!o.borderWidth&&(o[s]=void 0)})),o})(e,o,i),r=()=>{e.buffer.delete(Ot);const t=e.s.current();t&&(j.i.isTag(t,"img")?(0,h.css)(t,n):e.s.applyStyle(n)),e.e.off(e.editor,"mouseup.copyformat")};e.e.on(e.editor,"mouseup.copyformat",r),e.buffer.set(Ot,!0)}i.update()}},isActive:e=>e.buffer.exists(Ot),tooltip:"Paint format"};class Ut extends G{constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=e=>{const t=Mt(e);return t?t.getData(l.TEXT_HTML)||t.getData(l.TEXT_PLAIN):null}}afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(e){let t=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=j.i.isOrContains(this.j.editor,t,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,h.ctrlKey)(e),this.isFragmentFromEditor){const e=this.j.s.sel,t=e&&e.rangeCount?e.getRangeAt(0):null;t&&(this.bufferRange=t.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,xe(t)&&(t=t.querySelector("img")),j.i.isTag(t,"img")&&(this.draggable=t.cloneNode(!0),(0,h.dataBind)(this.draggable,"target",t)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())}onDragEnd(){this.draggable&&(j.i.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;const t=this.j.s.sel,i=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null);let o=null;if(!this.draggable&&i)o=this.isCopyMode?i.cloneContents():i.extractContents();else if(this.draggable)if(this.isCopyMode){const[e,t]="1"===(0,h.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];o=this.j.createInside.element(e),o.setAttribute(t,(0,h.attr)(this.draggable,"data-src")||(0,h.attr)(this.draggable,"src")||""),"a"===e&&(o.textContent=(0,h.attr)(o,t)||"")}else o=(0,h.dataBind)(this.draggable,"target");else this.getText(e)&&(o=this.j.createInside.fromHTML(this.getText(e)));t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),o&&(this.j.s.insertNode(o,!1,!1),i&&o.firstChild&&o.lastChild&&(i.setStartBefore(o.firstChild),i.setEndAfter(o.lastChild),this.j.s.selectRange(i),this.j.e.fire("synchro")),j.i.isTag(o,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",o)),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}}var $t;(0,r.gn)([x.autobind],Ut.prototype,"onDragStart",null),(0,r.gn)([(0,x.throttle)((e=>e.defaultTimeout/10))],Ut.prototype,"onDrag",null),(0,r.gn)([x.autobind],Ut.prototype,"onDragEnd",null),(0,r.gn)([x.autobind],Ut.prototype,"onDrop",null),(e=>{e[e.IDLE=0]="IDLE",e[e.WAIT_DRAGGING=1]="WAIT_DRAGGING",e[e.DRAGGING=2]="DRAGGING"})($t||($t={}));class Yt extends G{constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=$t.IDLE}afterInit(){this.dragList=this.j.o.draggableTags?(0,h.splitArray)(this.j.o.draggableTags).filter(Boolean).map((e=>e.toLowerCase())):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onDragStart(e){if("dragstart"===e.type&&this.draggable)return!1;if(this.state>$t.IDLE)return;const t=e.target;if(!this.dragList.length||!t)return;const i=e=>!(!e||!this.dragList.includes(e.nodeName.toLowerCase()));let o=j.i.furthest(t,i,this.j.editor)||(i(t)?t:null);o&&(j.i.isTag(o.parentElement,"a")&&o.parentElement.firstChild===o&&o.parentElement.lastChild===o&&(o=o.parentElement),this.startX=e.clientX,this.startY=e.clientY,this.isCopyMode=(0,h.ctrlKey)(e),this.draggable=o.cloneNode(!0),(0,h.dataBind)(this.draggable,"target",o),this.state=$t.WAIT_DRAGGING,this.addDragListeners())}onDrag(e){var t,i;if(!this.draggable||this.state===$t.IDLE)return;const o=e.clientY;if(this.state!==$t.WAIT_DRAGGING||Math.sqrt(Math.pow(e.clientX-this.startX,2)+Math.pow(o-this.startY,2))>=this.diffStep){if(this.state===$t.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=$t.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){const o=(0,h.dataBind)(this.draggable,"target");(0,h.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:e.clientX,top:e.clientY,width:null!==(t=null==o?void 0:o.offsetWidth)&&void 0!==t?t:100,height:null!==(i=null==o?void 0:o.offsetHeight)&&void 0!==i?i:100}),(0,I.ZO)(this.j,Yt).appendChild(this.draggable)}(0,h.css)(this.draggable,{left:e.clientX,top:e.clientY}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}}onDragEnd(){this.isInDestruct||(this.removeDragListeners(),this.j.unlock(),this.state=$t.IDLE,this.draggable&&(j.i.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||$t.DRAGGING>this.state)return void this.onDragEnd();let e=(0,h.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));const{parentElement:t}=e;this.j.s.insertNode(e,!0,!1),t&&j.i.isEmpty(t)&&!j.i.isTag(t,["td","th"])&&j.i.safeRemove(t),j.i.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart),this.removeDragListeners()}}(0,r.gn)([x.autobind],Yt.prototype,"onDragStart",null),(0,r.gn)([(0,x.throttle)((e=>e.defaultTimeout/10))],Yt.prototype,"onDrag",null),(0,r.gn)([x.autobind],Yt.prototype,"onDragEnd",null),(0,r.gn)([x.autobind],Yt.prototype,"onDrop",null);var Gt=i(98);function Kt(e){e.registerButton({name:"brush",group:"color"});const t=(t,i,o)=>{const s=(0,h.normalizeColor)(o);switch(t){case"background":e.s.applyStyle({backgroundColor:s||""});break;case"forecolor":e.s.applyStyle({color:s||""})}return e.synchronizeValues(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)}a.D.prototype.controls.brush={update(e,t){const i=(0,h.dataBind)(e,"color"),o=(i,o)=>{o&&o!==""+(0,h.css)(t.editor,i)&&(e.state.icon.fill=o)};if(i){const t=(0,h.dataBind)(e,"color");return void o("color"===t?t:"background-color",i)}const s=t.s.current();if(s&&!e.state.disabled){const e=j.i.closest(s,j.i.isElement,t.editor)||t.editor;o("color",""+(0,h.css)(e,"color")),o("background-color",""+(0,h.css)(e,"background-color"))}e.state.icon.fill="",e.state.activated=!1},popup(e,t,i,o,s){let n="",r="",a=[],l=null;return t&&t!==e.editor&&j.i.isNode(t)&&(j.i.isElement(t)&&e.s.isCollapsed()&&!j.i.isTag(t,["br","hr"])&&(l=t),j.i.up(t,(e=>{if(j.i.isHTMLElement(e)){const t=(0,h.css)(e,"color",!0),i=(0,h.css)(e,"background-color",!0);if(t)return n=""+t,!0;if(i)return r=""+i,!0}}),e.editor)),a=[{name:"Background",content:(0,Gt.YW)(e,(t=>{l?l.style.backgroundColor=t:e.execCommand("background",!1,t),(0,h.dataBind)(s,"color",t),(0,h.dataBind)(s,"color-mode","background"),o()}),r)},{name:"Text",content:(0,Gt.YW)(e,(t=>{l?l.style.color=t:e.execCommand("forecolor",!1,t),(0,h.dataBind)(s,"color",t),(0,h.dataBind)(s,"color-mode","color"),o()}),n)}],"background"!==e.o.colorPickerDefaultTab&&(a=a.reverse()),(0,Gt.IL)(e,a,l)},exec(e,t,{button:i}){const o=(0,h.dataBind)(i,"color-mode"),s=(0,h.dataBind)(i,"color");if(!o)return!1;if(t&&t!==e.editor&&j.i.isNode(t)&&j.i.isElement(t))switch(o){case"color":t.style.color=s;break;case"background":t.style.backgroundColor=s}else e.execCommand("background"===o?o:"forecolor",!1,s)},tooltip:"Fill color or set the text color"};var Jt=i(41),Xt=i(57);function Zt(e,t,i,o){var s,n;const{s:r,createInside:a}=e,l=a.element(i),c=a.element("br");l.appendChild(c),o&&o.cssText&&l.setAttribute("style",o.cssText),t&&t.isConnected?(vt.i.before(t,l),vt.i.safeRemove(t)):r.insertNode(l,!1,!1);const d=r.createRange();return d.setStartBefore("br"!==i.toLowerCase()?c:l),d.collapse(!0),null===(s=r.sel)||void 0===s||s.removeAllRanges(),null===(n=r.sel)||void 0===n||n.addRange(d),(0,Jt.n)(l,e.editor,e.ed),l}function Qt(e,t,i=l.IS_BLOCK){let o=t;const s=e.editor;do{if(!o||o===s)break;if(i.test(o.nodeName))return vt.i.isTag(o,"li")?o:Qt(e,o.parentNode,/^li$/i)||o;o=o.parentNode}while(o&&o!==s);return null}class ei extends G{afterInit(e){const t=e.o.enter.toLowerCase(),i=t===l.BR.toLowerCase();e.o.enterBlock||(e.o.enterBlock=i?l.PARAGRAPH:t)}onEnterKeyDown(e){if(e.key===l.KEY_ENTER){const t=this.j,i=t.e.fire("beforeEnter",e);return void 0!==i?i:(t.s.isCollapsed()||t.execCommand("Delete"),t.s.focus(),this.onEnter(e),t.synchronizeValues(),!1)}}onEnter(e){const t=this.j,i=this.getCurrentOrFillEmpty(t);let o=Qt(t,i);const s=vt.i.isTag(o,"li");return!!(s&&!e.shiftKey||((e,t,i)=>{const o=vt.i.closest(t,["pre","blockquote"],e.editor);if(e.o.enter.toLowerCase()===l.BR.toLowerCase()||i&&!o||!i&&o){const t=e.createInside.element("br");return e.s.insertNode(t,!0,!1),(0,Jt.n)(t,e.editor,e.ed),!1}return!0})(t,i,e.shiftKey))&&(o||((e,t)=>!!vt.i.prev(t,(e=>vt.i.isBlock(e)||vt.i.isImage(e)),e.editor))(t,i)||(o=((e,t)=>{let i=t;vt.i.up(i,(t=>{t&&t.hasChildNodes()&&t!==e.editor&&(i=t)}),e.editor);const o=vt.i.wrapInline(i,e.o.enter,e);if(vt.i.isEmpty(o)){const t=e.createInside.element("br");o.appendChild(t),e.s.setCursorBefore(t)}return o})(t,i)),o&&o!==i?!!((e,t)=>{const i=e.s;if(!vt.i.canSplitBlock(t)){const t=e.createInside.element("br");return i.insertNode(t,!1,!1),i.setCursorAfter(t),!1}return!0})(t,o)&&(s&&vt.i.isEmpty(o)?(((e,t)=>{const i=vt.i.closest(t,["ol","ul"],e.editor);if(!i)return;const o=i.parentElement,s=vt.i.isTag(o,"li"),n=s?o:i,r=e.s.createRange();r.setStartAfter(t),r.setEndAfter(i);const a=r.extractContents(),l=e.createInside.fake();vt.i.after(n,l),vt.i.safeRemove(t),(0,Xt.$$)("li",i).length||vt.i.safeRemove(i);const c=Zt(e,l,s?"li":e.o.enter);a.querySelector("li")&&(s?c.appendChild(a):vt.i.after(c,a))})(t,o),!1):void((e,t)=>{const i=e.s,{enter:o}=e.o,s=o.toLowerCase(),n=vt.i.isTag(t,"li"),r=t.tagName.toLowerCase()===s||n,a=i.cursorOnTheRight(t),l=i.cursorOnTheLeft(t);if(!r&&(a||l)){let o=null;return o=a?i.setCursorAfter(t):i.setCursorBefore(t),Zt(e,o,s),void(l&&!a&&i.setCursorIn(t,!0))}const c=i.splitSelection(t);(0,Jt.n)(c,e.editor,e.ed)})(t,o)):(Zt(t,null,s?"li":t.o.enter),!1))}getCurrentOrFillEmpty(e){const{s:t}=e;let i=t.current(!1);return i&&i!==e.editor||(i=e.createInside.text(l.INVISIBLE_SPACE),t.insertNode(i,!1,!1),t.select(i)),i}beforeDestruct(e){e.e.off("keydown.enter")}}(0,r.gn)([(0,x.watch)(":keydown.enter")],ei.prototype,"onEnterKeyDown",null);class ti extends G{afterInit(e){}beforeDestruct(e){}onKeyDownArrow(e){var t;if(e.key!==l.KEY_RIGHT||!this.j.selection.isCollapsed())return;const{endContainer:i,endOffset:o}=this.j.selection.range;if(j.i.isText(i)&&(null===(t=i.nodeValue)||void 0===t?void 0:t.length)===o){const{parentNode:e}=i;j.i.isInlineBlock(e)&&!st(e,!1,this.j.editor)&&j.i.after(e,this.j.createInside.text(l.NBSP_SPACE))}}}(0,r.gn)([(0,x.watch)(":keydown")],ti.prototype,"onKeyDownArrow",null);var ii=i(32),oi=i(5);a.D.prototype.showMessageErrors=!0,a.D.prototype.showMessageErrorTime=3e3,a.D.prototype.showMessageErrorOffsetPx=3;const si="error-box-for-messages";function ni(e){if(e.o.showMessageErrors){const t=e.getFullElName(si,"active",!0),i=e.c.div(e.getFullElName(si)),o=()=>{let t=5;(0,oi.q)(i.childNodes).forEach((i=>{(0,ii.i)(i,"bottom",t+"px"),t+=i.offsetHeight+e.o.showMessageErrorOffsetPx}))};e.e.on("beforeDestruct",(()=>{j.i.safeRemove(i)})).on("errorMessage",((s,n,r)=>{e.workplace.appendChild(i);const a=e.c.div(t,s);a.classList.add(e.getFullElName(si,"type",n)),i.appendChild(a),o(),e.async.setTimeout((()=>{a.classList.remove(t),e.async.setTimeout((()=>{j.i.safeRemove(a),o()}),300)}),r||e.o.showMessageErrorTime)}))}}function ri(e){e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});const t=(t,i,o)=>{switch(t){case"fontsize":e.s.applyStyle({fontSize:(0,h.normalizeSize)(o)});break;case"fontname":e.s.applyStyle({fontFamily:o})}return e.e.fire("synchro"),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)}function ai(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",((t,i,o)=>(e.s.applyStyle(void 0,{element:o}),e.synchronizeValues(),!1)))}function li(e){e.registerButton({name:"fullsize"});let t=!1,i=0,o=0,s=!1;const n=()=>{const{container:n,events:r}=e;r&&(t?(i=(0,ii.i)(n,"height",!0),o=(0,ii.i)(n,"width",!0),(0,ii.i)(n,{height:e.ow.innerHeight,width:e.ow.innerWidth}),s=!0):s&&(0,ii.i)(n,{height:i||"auto",width:o||"auto"}))},r=i=>{const{container:o,events:s}=e;if(o){if(void 0===i&&(i=!o.classList.contains("jodit_fullsize")),e.setMod("fullsize",i),e.o.fullsize=i,t=i,o.classList.toggle("jodit_fullsize",i),e.toolbar&&((0,Fe.Z)(e)&&e.toolbarContainer.appendChild(e.toolbar.container),(0,ii.i)(e.toolbar.container,"width","auto")),e.o.globalFullSize){let e=o.parentNode;for(;e&&e.nodeType!==Node.DOCUMENT_NODE;)e.classList.toggle("jodit_fullsize-box_true",i),e=e.parentNode;n()}s.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",n),e.e.on("afterInit afterOpen",(()=>{var t;e.toggleFullSize(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.fullsize)})).on("toggleFullSize",r).on("beforeDestruct",(()=>{t&&r(!1)})).on("beforeDestruct",(()=>{e.events&&e.e.off(e.ow,"resize",n)}))}a.D.prototype.defaultFontSizePoints="px",a.D.prototype.controls.fontsize={command:"fontSize",data:{cssRule:"font-size"},list:["8","9","10","11","12","14","16","18","24","30","36","48","60","72","96"],exec:(e,t,{control:i})=>(0,h.memorizeExec)(e,t,{control:i},(t=>{var o;return"fontsize"===(null===(o=i.command)||void 0===o?void 0:o.toLowerCase())?`${t}${e.o.defaultFontSizePoints}`:t})),childTemplate:(e,t,i)=>`${i}${e.o.defaultFontSizePoints}`,tooltip:"Font size",isChildActive(e,t){var i,o;const s=e.s.current(),n=(null===(i=t.data)||void 0===i?void 0:i.cssRule)||"font-size",r=(null===(o=t.data)||void 0===o?void 0:o.normalize)||(t=>/pt$/i.test(t)&&"pt"===e.o.defaultFontSizePoints?t.replace(/pt$/i,""):t);if(s){const i=j.i.closest(s,j.i.isElement,e.editor)||e.editor,o=(0,h.css)(i,n);return!(!o||!t.args||r(""+t.args[0])!==r(""+o))}return!1}},a.D.prototype.controls.font={...a.D.prototype.controls.fontsize,command:"fontname",list:{"":"Default","Helvetica,sans-serif":"Helvetica","Arial,Helvetica,sans-serif":"Arial","Georgia,serif":"Georgia","Impact,Charcoal,sans-serif":"Impact","Tahoma,Geneva,sans-serif":"Tahoma","Times New Roman,Times,serif":"Times New Roman","Verdana,Geneva,sans-serif":"Verdana"},childTemplate(e,t,i){let o=!1;try{o=-1===t.indexOf("dings")&&document.fonts.check("16px "+t,i)}catch(e){}return`<span style="${o?`font-family: ${t}!important;`:""}">${i}</span>`},data:{cssRule:"font-family",normalize:e=>e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9]+/g,",")},tooltip:"Font family"},a.D.prototype.controls.paragraph={command:"formatBlock",update(e,t){const i=e.control,o=t.s.current();if(o&&t.o.textIcons){const s=(j.i.closest(o,j.i.isBlock,t.editor)||t.editor).nodeName.toLowerCase(),n=i.list;e&&i.data&&i.data.currentValue!==s&&n&&n[s]&&(t.o.textIcons?e.state.text=s:e.state.icon.name=s,i.data.currentValue=s)}return!1},exec:h.memorizeExec,data:{currentValue:"left"},list:{p:"Normal",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive(e,t){const i=e.s.current();if(i){const o=j.i.closest(i,j.i.isBlock,e.editor);return!(!o||o===e.editor||void 0===t.args||o.nodeName.toLowerCase()!==t.args[0])}return!1},isActive(e,t){const i=e.s.current();if(i){const o=j.i.closest(i,j.i.isBlock,e.editor);return!(!o||o===e.editor||void 0===t.list||j.i.isTag(o,"p")||void 0===t.list[o.nodeName.toLowerCase()])}return!1},childTemplate:(e,t,i)=>`<${t} style="margin:0;padding:0"><span>${e.i18n(i)}</span></${t}>`,tooltip:"Insert format block"},a.D.prototype.fullsize=!1,a.D.prototype.globalFullSize=!0,a.D.prototype.controls.fullsize={exec(e){e.toggleFullSize()},update(e,t){const i=t.isFullSize?"shrink":"fullsize";e.state.activated=t.isFullSize,t.o.textIcons?e.state.text=i:e.state.icon.name=i},tooltip:"Open editor in fullsize",mode:l.MODE_SOURCE+l.MODE_WYSIWYG},a.D.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8, cmd+shift+8"],selectall:["ctrl+a","cmd+a"]};class ci extends G{constructor(){super(...arguments),this.onKeyPress=e=>{const t=this.specialKeys[e.which],i=(e.key||String.fromCharCode(e.which)).toLowerCase(),o=[t||i];return["alt","ctrl","shift","meta"].forEach((i=>{e[i+"Key"]&&t!==i&&o.push(i)})),(0,h.normalizeKeyAliases)(o.join("+"))},this.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}}afterInit(e){(0,h.keys)(e.o.commandToHotkeys,!1).forEach((t=>{const i=e.o.commandToHotkeys[t];i&&((0,h.isArray)(i)||(0,h.isString)(i))&&e.registerHotkeyToCommand(i,t)}));let t=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",(e=>{if(e.key===l.KEY_ESC)return this.j.e.fire("escape",e)})).on("keydown.hotkeys",(i=>{const o=this.onKeyPress(i),s={shouldStop:!0};if(!1===this.j.e.fire(o+".hotkey",i.type,s)){if(s.shouldStop)return t=!0,e.e.stopPropagation("keydown"),!1;i.preventDefault()}}),{top:!0}).on("keyup.hotkeys",(()=>{if(t)return t=!1,e.e.stopPropagation("keyup"),!1}),{top:!0})}beforeDestruct(e){e.events&&e.e.off(".hotkeys")}}function di(e){const t=e.options;e.e.on("afterSetMode",(()=>{e.isEditorMode()&&e.s.focus()})).on("generateDocumentStructure.iframe",((e,i)=>{const o=e||i.iframe.contentWindow.document;if(o.open(),o.write(t.iframeDoctype+`<html dir="${t.direction}" class="jodit" lang="${(0,h.defaultLanguage)(t.language)}"><head>`+`<title>${t.iframeTitle}</title>`+(t.iframeBaseUrl?`<base href="${t.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),o.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach((e=>{const t=o.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),o.head&&o.head.appendChild(t)})),t.iframeStyle){const e=o.createElement("style");e.innerHTML=t.iframeStyle,o.head&&o.head.appendChild(e)}})).on("createEditor",(()=>{if(!t.iframe)return;const 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),i.setAttribute("frameborder","0"),e.workplace.appendChild(i),e.iframe=i;const o=e.e.fire("generateDocumentStructure.iframe",null,e);return(0,h.callPromise)(o,(()=>{if(!e.iframe)return!1;const i=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;const o=()=>{(0,h.attr)(i.body,"contenteditable",e.getMode()!==l.MODE_SOURCE&&!e.getReadOnly()||null)},s=e=>{const t=/<body.*<\/body>/im,i="{%%BODY%%}",o=t.exec(e);return o&&(e=e.replace(t,i).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/<span([^&]*?)>(.*?)<\/span>/gim,"").replace(i,o[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),e};if(t.editHTMLDocumentMode){const t=e.element.tagName;if("TEXTAREA"!==t&&"INPUT"!==t)throw(0,h.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",(()=>s(e.o.iframeDoctype+i.documentElement.outerHTML))).on("beforeSetNativeEditorValue",(({value:t})=>!e.isLocked&&(/<(html|body)/i.test(t)?s(i.documentElement.outerHTML)!==s(t)&&(i.open(),i.write(e.o.iframeDoctype+s(t)),i.close(),e.editor=i.body,e.e.fire("safeHTML",e.editor),o(),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",o),"auto"===t.height){i.documentElement&&(i.documentElement.style.overflowY="hidden");const o=e.async.throttle((()=>{if(e.editor&&e.iframe&&"auto"===t.height){const t=e.ew.getComputedStyle(e.editor);(0,h.css)(e.iframe,"height",e.editor.offsetHeight+(parseInt(t.marginTop||"0",10)+parseInt(t.marginBottom||"0",10)))}}),e.defaultTimeout/2);if(e.e.on("change afterInit afterSetMode resize",o).on([e.iframe,e.ew,i.documentElement],"load",o).on(i,"readystatechange DOMContentLoaded",o),"function"==typeof ResizeObserver){const t=new ResizeObserver(o);t.observe(i.body),e.e.on("beforeDestruct",(()=>{t.unobserve(i.body)}))}}return i.documentElement&&e.e.on(i.documentElement,"mousedown touchend",(()=>{e.s.isFocused()||(e.s.focus(),e.editor===i.body&&e.s.setCursorIn(i.body))})).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",(t=>{var i;null===(i=e.events)||void 0===i||i.fire(e.ow,t)})),!1}))}))}function hi(e){const t=e.o,i=e.i18n.bind(e),o=L.JO.get.bind(L.JO),s=t.filebrowser.ajax.url||t.uploader.url,n=t.image.useImageEditor;return e.c.fromHTML(`<div style="${t.image.editSrc?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${i("Src")}</label>\n\t\t\t<div class="jodit-input_group">\n\t\t\t\t<input data-ref="imageSrc" class="jodit-input" type="text"/>\n\t\t\t\t<div\n\t\t\t\t\tclass="jodit-input_group-buttons"\n\t\t\t\t\tstyle="${s?"":"display: none"}"\n\t\t\t\t>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tdata-ref="changeImage"\n\t\t\t\t\t\t\tclass="jodit-button"\n\t\t\t\t\t\t>${o("image")}</a>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tdata-ref="editImage"\n\t\t\t\t\t\t\tclass="jodit-button"\n\t\t\t\t\t\t\tstyle="${n?"":"display: none"}"\n\t\t\t\t\t\t>${o("crop")}</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div style="${t.image.editTitle?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${i("Title")}</label>\n\t\t\t<input data-ref="imageTitle" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${t.image.editAlt?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${i("Alternative")}</label>\n\t\t\t<input data-ref="imageAlt" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${t.image.editLink?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${i("Link")}</label>\n\t\t\t<input data-ref="imageLink" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${t.image.editLink?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label class="jodit_vertical_middle">\n\t\t\t\t<input data-ref="imageLinkOpenInNewTab" type="checkbox" class="jodit-checkbox"/>\n\t\t\t\t<span>${i("Open link in new tab")}</span>\n\t\t\t</label>\n\t\t</div>`)}function ui(e){const t=e.o,i=e.i18n.bind(e),o=L.JO.get.bind(L.JO);return e.c.fromHTML(`<div style="${t.image.editMargins?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${i("Margins")}</label>\n\t\t\t<div class="jodit-grid jodit_vertical_middle">\n\t\t\t\t<input class="jodit_col-lg-1-5 jodit-input" data-ref="marginTop" type="text" placeholder="${i("top")}"/>\n\t\t\t\t<a style="text-align: center;" data-ref="lockMargin" class="jodit-properties__lock jodit_col-lg-1-5">${o("lock")}</a>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginRight" type="text" placeholder="${i("right")}"/>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginBottom" type="text" placeholder="${i("bottom")}"/>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginLeft" type="text" placeholder="${i("left")}"/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div\n\t\t\tstyle="${t.image.editAlign?"":"display:none"}"\n\t\t\tclass="jodit-form__group"\n\t\t>\n\t\t\t<label>${i("Align")}</label>\n\t\t\t<select data-ref="align" class="jodit-select">\n\t\t\t\t<option value="">${i("--Not Set--")}</option>\n\t\t\t\t<option value="left">${i("Left")}</option>\n\t\t\t\t<option value="center">${i("Center")}</option>\n\t\t\t\t<option value="right">${i("Right")}</option>\n\t\t\t</select>\n\t\t</div>\n\t\t<div style="${t.image.editStyle?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${i("Styles")}</label>\n\t\t\t<input data-ref="style" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${t.image.editClass?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${i("Classes")}</label>\n\t\t\t<input data-ref="classes" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${t.image.editId?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>Id</label>\n\t\t\t<input data-ref="id" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div\n\t\t\tstyle="${t.image.editBorderRadius?"":"display:none"}"\n\t\t\tclass="jodit-form__group"\n\t\t>\n\t\t\t<label>${i("Border radius")}</label>\n\t\t\t\t<input data-ref="borderRadius" type="number" class="jodit-input"/>\n\t\t</div>`)}a.D.prototype.iframe=!1,a.D.prototype.iframeBaseUrl="",a.D.prototype.iframeTitle="Jodit Editor",a.D.prototype.iframeDoctype="<!DOCTYPE html>",a.D.prototype.iframeDefaultSrc="about:blank",a.D.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',a.D.prototype.iframeCSSLinks=[],a.D.prototype.editHTMLDocumentMode=!1;var pi=i(99);a.D.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0};const mi=e=>(e=(0,h.trim)(e),/^[0-9]+$/.test(e)?e+"px":e),fi=e=>/^[-+]?[0-9.]+px$/.test(""+e)?parseFloat(""+e):e;class gi extends G{constructor(){super(...arguments),this.state={image:new Image,get ratio(){return this.image.naturalWidth/this.image.naturalHeight||1},sizeIsLocked:!0,marginIsLocked:!0},this.activeTabState={__activeTab:"Image"}}onChangeMarginIsLocked(){if(!this.form)return;const{marginRight:e,marginBottom:t,marginLeft:i,lockMargin:o}=(0,h.refs)(this.form);[e,t,i].forEach((e=>{(0,h.attr)(e,"disabled",this.state.marginIsLocked||null)})),o.innerHTML=L.JO.get(this.state.marginIsLocked?"lock":"unlock")}onChangeSizeIsLocked(){if(!this.form)return;const{lockSize:e,imageWidth:t}=(0,h.refs)(this.form);e.innerHTML=L.JO.get(this.state.sizeIsLocked?"lock":"unlock"),e.classList.remove("jodit-properties__lock"),e.classList.remove("jodit-properties__unlock"),e.classList.add(this.state.sizeIsLocked?"jodit-properties__lock":"jodit-properties__unlock"),this.j.e.fire(t,"change")}open(){return this.makeForm(),this.activeTabState.__activeTab="Image",this.j.e.fire("hidePopup"),(0,h.markOwner)(this.j,this.dialog.container),this.state.marginIsLocked=!0,this.state.sizeIsLocked=!0,this.onChangeMarginIsLocked(),this.onChangeSizeIsLocked(),this.updateValues(),this.dialog.open().setModal(!0).setPosition(),!1}makeForm(){if(this.dialog)return;this.dialog=new V({fullsize:this.j.o.fullsize,globalFullSize:this.j.o.globalFullSize,theme:this.j.o.theme,language:this.j.o.language,minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]});const e=this.j,t=e.o,i=e.i18n.bind(e),o={check:(0,g.zx)(e,"ok","Apply","primary"),remove:(0,g.zx)(e,"bin","Delete")};e.e.on(this.dialog,"afterClose",(()=>{this.state.image.parentNode&&t.image.selectImageAfterClose&&e.s.select(this.state.image)})),o.remove.onAction((()=>{e.s.removeNode(this.state.image),this.dialog.close()}));const{dialog:s}=this;s.setHeader(i("Image properties"));const n=(e=>{const{showPreview:t,editSize:i}=e.o.image,o=L.JO.get.bind(L.JO);return e.c.fromHTML(`<form class="jodit-properties">\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-2-5 jodit_col-xs-5-5">\n\t\t\t\t<div class="jodit-properties_view_box">\n\t\t\t\t\t<div style="${t?"":"display:none"}" class="jodit-properties_image_view">\n\t\t\t\t\t\t<img data-ref="imageViewSrc" src="" alt=""/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="${i?"":"display:none"}" class="jodit-form__group jodit-properties_image_sizes">\n\t\t\t\t\t\t<input data-ref="imageWidth" type="text" class="jodit-input"/>\n\t\t\t\t\t\t<a data-ref="lockSize" class="jodit-properties__lock">${o("lock")}</a>\n\t\t\t\t\t\t<input data-ref="imageHeight" type="text" class="imageHeight jodit-input"/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div data-ref="tabsBox" class="jodit_col-lg-3-5 jodit_col-xs-5-5"></div>\n\t\t</div>\n\t</form>`)})(e);this.form=n,s.setContent(n);const{tabsBox:r}=(0,h.refs)(this.form);r&&r.appendChild((0,Gt.IL)(e,[{name:"Image",content:hi(e)},{name:"Advanced",content:ui(e)}],this.activeTabState)),o.check.onAction(this.onApply);const{changeImage:a,editImage:l}=(0,h.refs)(this.form);e.e.on(a,"click",this.openImagePopup),t.image.useImageEditor&&e.e.on(l,"click",this.openImageEditor);const{lockSize:c,lockMargin:d,imageWidth:u,imageHeight:p}=(0,h.refs)(n);c&&e.e.on(c,"click",(()=>{this.state.sizeIsLocked=!this.state.sizeIsLocked})),e.e.on(d,"click",(e=>{this.state.marginIsLocked=!this.state.marginIsLocked,e.preventDefault()}));const m=e=>{if(!(0,h.isNumeric)(u.value)||!(0,h.isNumeric)(p.value))return;const t=parseFloat(u.value),i=parseFloat(p.value);e.target===u?p.value=""+Math.round(t/this.state.ratio):u.value=""+Math.round(i*this.state.ratio)};e.e.on([u,p],"change keydown mousedown paste",(t=>{this.state.sizeIsLocked&&e.async.setTimeout(m.bind(this,t),{timeout:e.defaultTimeout,label:"image-properties-changeSize"})})),s.setFooter([o.remove,o.check]),s.setSize(this.j.o.image.dialogWidth)}updateValues(){const e=this.j.o,{image:t}=this.state,{marginTop:i,marginRight:o,marginBottom:s,marginLeft:n,lockMargin:r,imageSrc:a,id:l,classes:c,align:d,style:u,imageTitle:p,imageAlt:m,borderRadius:f,imageLink:g,imageWidth:v,imageHeight:b,imageLinkOpenInNewTab:y,imageViewSrc:w,lockSize:k}=(0,h.refs)(this.form);(()=>{r.checked=this.state.marginIsLocked,k.checked=this.state.sizeIsLocked})(),a.value=(0,h.attr)(t,"src")||"",w&&(0,h.attr)(w,"src",(0,h.attr)(t,"src")||""),(()=>{p.value=(0,h.attr)(t,"title")||"",m.value=(0,h.attr)(t,"alt")||"";const e=j.i.closest(t,"a",this.j.editor);e?(g.value=(0,h.attr)(e,"href")||"",y.checked="_blank"===(0,h.attr)(e,"target")):(g.value="",y.checked=!1)})(),(()=>{const e=(0,h.attr)(t,"width")||(0,h.css)(t,"width",!0)||!1,i=(0,h.attr)(t,"height")||(0,h.css)(t,"height",!0)||!1;v.value=!1!==e?""+fi(e):""+t.offsetWidth,b.value=!1!==i?""+fi(i):""+t.offsetHeight,this.state.sizeIsLocked=(()=>!(!(0,h.isNumeric)(v.value)||!(0,h.isNumeric)(b.value))&&1>Math.abs(parseFloat(v.value)-parseFloat(b.value)*this.state.ratio))()})(),(()=>{if(!e.image.editMargins)return;let r=!0,a=!1;[i,o,s,n].forEach((e=>{const o=(0,h.attr)(e,"data-ref")||"";let s=t.style.getPropertyValue((0,h.kebabCase)(o));if(!s)return a=!0,void(e.value="");/^[0-9]+(px)?$/.test(s)&&(s=parseInt(s,10)),e.value=""+s||"",(a&&e.value||r&&"marginTop"!==o&&e.value!==i.value)&&(r=!1)})),this.state.marginIsLocked=r})(),c.value=((0,h.attr)(t,"class")||"").replace(/jodit_focused_image[\s]*/,""),l.value=(0,h.attr)(t,"id")||"",f.value=""+(parseInt(t.style.borderRadius||"0",10)||"0"),t.style.cssFloat&&-1!==["left","right"].indexOf(t.style.cssFloat.toLowerCase())?d.value=(0,h.css)(t,"float"):"block"===(0,h.css)(t,"display")&&"auto"===t.style.marginLeft&&"auto"===t.style.marginRight&&(d.value="center"),u.value=(0,h.attr)(t,"style")||""}onApply(){const{style:e,imageSrc:t,borderRadius:i,imageTitle:o,imageAlt:s,imageLink:n,imageWidth:r,imageHeight:a,marginTop:l,marginRight:c,marginBottom:d,marginLeft:u,imageLinkOpenInNewTab:p,align:m,classes:f,id:g}=(0,h.refs)(this.form),v=this.j.o,{image:b}=this.state;if(v.image.editStyle&&(0,h.attr)(b,"style",e.value||null),!t.value)return j.i.safeRemove(b),void this.dialog.close();(0,h.attr)(b,"src",t.value),b.style.borderRadius="0"!==i.value&&/^[0-9]+$/.test(i.value)?i.value+"px":"",(0,h.attr)(b,"title",o.value||null),(0,h.attr)(b,"alt",s.value||null);let y=j.i.closest(b,"a",this.j.editor);if(n.value?(y||(y=j.i.wrap(b,"a",this.j.createInside)),(0,h.attr)(y,"href",n.value),(0,h.attr)(y,"target",p.checked?"_blank":null)):y&&y.parentNode&&y.parentNode.replaceChild(b,y),r.value!==""+b.offsetWidth||a.value!==""+b.offsetHeight){const e=(0,h.trim)(r.value)?mi(r.value):null,t=(0,h.trim)(a.value)?mi(a.value):null;(0,h.css)(b,{width:e,height:t}),(0,h.attr)(b,"width",(0,h.attr)(b,"width")?e:null),(0,h.attr)(b,"height",(0,h.attr)(b,"height")?t:null)}const w=[l,c,d,u];v.image.editMargins&&(this.state.marginIsLocked?(0,h.css)(b,"margin",mi(l.value)):w.forEach((e=>{const t=(0,h.attr)(e,"data-ref")||"";(0,h.css)(b,t,mi(e.value))}))),v.image.editClass&&(0,h.attr)(b,"class",f.value||null),v.image.editId&&(0,h.attr)(b,"id",g.value||null),v.image.editAlign&&(0,pi.z)(b,m.value),this.j.synchronizeValues(),this.dialog.close()}openImageEditor(){const e=(0,h.attr)(this.state.image,"src")||"",t=this.j.c.element("a"),i=()=>{t.host===location.host||$(this.j.i18n("You can only edit your own images. Download this image on the host?"),(e=>{e&&this.j.uploader&&this.j.uploader.uploadRemoteImage(""+t.href,(e=>{W(this.j.i18n("The image has been successfully uploaded to the host!"),(()=>{(0,h.isString)(e.newfilename)&&((0,h.attr)(this.state.image,"src",e.baseurl+e.newfilename),this.updateValues())})).bindDestruct(this.j)}),(e=>{W(this.j.i18n("There was an error loading %s",e.message)).bindDestruct(this.j)}))})).bindDestruct(this.j)};t.href=e,this.j.filebrowser.dataProvider.getPathByUrl(""+t.href).then((i=>{me.call(this.j.filebrowser,t.href,i.name,i.path,i.source,(()=>{const t=(new Date).getTime();(0,h.attr)(this.state.image,"src",e+(-1!==e.indexOf("?")?"":"?")+"&_tmp="+t),this.updateValues()}),(e=>{W(e.message).bindDestruct(this.j)}))})).catch((e=>{W(e.message,i).bindDestruct(this.j)}))}openImagePopup(e){const t=new L.GI(this.j),{changeImage:i}=(0,h.refs)(this.form);t.setZIndex(this.dialog.getZIndex()+1),t.setContent((0,Gt.ov)(this.j,{upload:e=>{e.files&&e.files.length&&(0,h.attr)(this.state.image,"src",e.baseurl+e.files[0]),this.updateValues(),t.close()},filebrowser:e=>{e&&(0,h.isArray)(e.files)&&e.files.length&&((0,h.attr)(this.state.image,"src",e.files[0]),t.close(),this.updateValues())}},this.state.image,t.close)).open((()=>(0,h.position)(i))),e.stopPropagation()}afterInit(e){const t=this;e.e.on("afterConstructor changePlace",(()=>{e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",(i=>{const o=i.target;if(j.i.isTag(o,"img"))if(e.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",o))return;t.state.image=o,e.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),t.open())}else i.stopImmediatePropagation(),e.s.select(o)}))})).on("openImageProperties.imageproperties",(e=>{this.state.image=e,this.open()}))}beforeDestruct(e){this.dialog&&this.dialog.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}}(0,r.gn)([(0,x.watch)("state.marginIsLocked")],gi.prototype,"onChangeMarginIsLocked",null),(0,r.gn)([(0,x.watch)("state.sizeIsLocked")],gi.prototype,"onChangeSizeIsLocked",null),(0,r.gn)([x.autobind],gi.prototype,"onApply",null),(0,r.gn)([x.autobind],gi.prototype,"openImageEditor",null),(0,r.gn)([x.autobind],gi.prototype,"openImagePopup",null),a.D.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0};const vi="source-consumer",bi="__jodit_imageprocessor_binded",yi="__jodit_imageprocessor_bindedblob-id";class wi extends G{afterInit(e){}beforeDestruct(e){const t=e.buffer.get(yi);if(t){const i=Object.keys(t);for(const e of i)URL.revokeObjectURL(e);e.buffer.delete(yi)}}onAfterGetValueFromEditor(e,t){if(t!==vi)return this.onBeforeSetElementValue(e)}onBeforeSetElementValue(e){const{jodit:t}=this;if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;const i=t.buffer.get(yi);if(i){const t=Object.keys(i);for(const o of t)for(;e.value.includes(o);)e.value=e.value.replace(o,i[o])}}async afterChange(e){const{jodit:t}=this;t.editor&&(0,h.$$)("img",t.editor).forEach((e=>{(0,h.dataBind)(e,bi)||((0,h.dataBind)(e,bi,!0),e.complete||t.e.on(e,"load",(function i(){var o;!t.isInDestruct&&(null===(o=t.e)||void 0===o||o.fire("resize")),t.e.off(e,"load",i)})),e.src&&/^data:/.test(e.src)&&((e,t)=>{if(!e.o.imageProcessor.replaceDataURIToBlobIdInView)return;if("undefined"==typeof ArrayBuffer||"undefined"==typeof URL)return;const i=t.src,o=(e=>{const t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(t.length),s=new Uint8Array(o);for(let e=0;t.length>e;e++)s[e]=t.charCodeAt(e);return new Blob([o],{type:i})})(i);t.src=URL.createObjectURL(o),e.e.fire("internalUpdate");const{buffer:s}=e,n=s.get(yi)||{};n[t.src]=i,e.buffer.set(yi,n)})(t,e),t.e.on(e,"mousedown touchstart",(()=>{t.s.select(e)})))}))}}function ki(e){e.registerButton({name:"image",group:"media"})}(0,r.gn)([(0,x.watch)(":afterGetValueFromEditor")],wi.prototype,"onAfterGetValueFromEditor",null),(0,r.gn)([(0,x.watch)(":beforeSetElementValue")],wi.prototype,"onBeforeSetElementValue",null),(0,r.gn)([(0,x.watch)([":change",":afterInit",":changePlace"]),(0,x.debounce)()],wi.prototype,"afterChange",null),a.D.prototype.controls.image={popup(e,t,i,o){let s=null;return t&&!j.i.isText(t)&&j.i.isHTMLElement(t)&&(j.i.isTag(t,"img")||(0,h.$$)("img",t).length)&&(s=j.i.isTag(t,"img")?t:(0,h.$$)("img",t)[0]),e.s.save(),(0,Gt.ov)(e,{filebrowser(t){e.s.restore(),t.files&&t.files.forEach((i=>e.s.insertImage(t.baseurl+i,null,e.o.imageDefaultWidth))),o()},upload:!0,async url(t,i){e.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(t)&&(t="//"+t);const n=s||e.createInside.element("img");n.setAttribute("src",t),n.setAttribute("alt",i),s||await e.s.insertImage(n,null,e.o.imageDefaultWidth),o()}},s,o)},tags:["img"],tooltip:"Insert Image"},a.D.prototype.controls.indent={tooltip:"Increase Indent"};const Ci=(e,t)=>`${j.i.isCell(t)?"padding":"margin"}${"rtl"===e?"Right":"Left"}`;function Si(e){e.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});const t=t=>{const i=[];return e.s.eachSelection((o=>{e.s.save();let s=!!o&&j.i.up(o,j.i.isBlock,e.editor);const{enter:n}=e.o;if(!s&&o&&(s=j.i.wrapInline(o,n!==l.BR?n:l.PARAGRAPH,e)),!s)return e.s.restore(),!1;const r=i.includes(s);if(s&&!r){const o=Ci(e.o.direction,s);i.push(s);let n=s.style[o]?parseInt(s.style[o],10):0;n+=e.o.indentMargin*("outdent"===t?-1:1),s.style[o]=n>0?n+"px":"",(0,h.attr)(s,"style")||(0,h.attr)(s,"style",null)}e.s.restore()})),e.synchronizeValues(),!1};e.registerCommand("indent",{exec:t,hotkeys:["ctrl+]","cmd+]"]}),e.registerCommand("outdent",{exec:t,hotkeys:["ctrl+[","cmd+["]})}function Ei(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",(()=>{const t=e.createInside.element("hr");e.s.insertNode(t,!1,!1);const i=j.i.closest(t.parentElement,j.i.isBlock,e.editor);i&&j.i.isEmpty(i)&&i!==e.editor&&(j.i.after(i,t),j.i.safeRemove(i));let o=j.i.next(t,j.i.isBlock,e.editor,!1);return o||(o=e.createInside.element(e.o.enter),j.i.after(t,o)),e.s.setCursorIn(o),!1}))}a.D.prototype.controls.outdent={isDisabled(e){const t=e.s.current();if(t){const i=j.i.closest(t,j.i.isBlock,e.editor);if(i){const t=Ci(e.o.direction,i);return!i.style[t]||0>=parseInt(i.style[t],10)}}return!0},tooltip:"Decrease Indent"},a.D.prototype.indentMargin=10,a.D.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},a.D.prototype.toolbarInline=!0,a.D.prototype.toolbarInlineForSelection=!1,a.D.prototype.toolbarInlineDisableFor=[],a.D.prototype.toolbarInlineDisabledButtons=["source"],a.D.prototype.popup={a:i(100).Z,img:i(101).Z,cells:i(102).Z,toolbar:i(103).Z,jodit:i(104).Z,iframe:i(104).Z,"jodit-media":i(104).Z,selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]};class Ii extends G{constructor(){super(...arguments),this.requires=["select"],this.type=null,this.popup=new f.G(this.jodit,!1),this.toolbar=B(this.jodit,this.popup),this.snapRange=null,this.elmsList=(0,h.keys)(this.j.o.popup,!1).filter((e=>!this.isExcludedTarget(e)))}onClick(e){const t=this.elmsList,i=j.i.isTag(e,"img")?e:j.i.closest(e,t,this.j.editor);if(i&&this.canShowPopupForType(i.nodeName.toLowerCase()))return this.showPopup((()=>(0,h.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){this.previousTarget=i;const e=this.j.o.popup[t];let o;o=(0,h.isFunction)(e)?e(this.j,i,this.popup.close):e,(0,h.isArray)(o)&&(this.toolbar.build(o,i),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,o=this.toolbar.container),this.popup.setContent(o),this.type=t}return this.popup.open(e),!0}hidePopup(e){(0,h.isString)(e)&&e!==this.type||this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(e){const t=this.j.o.popup[e.toLowerCase()];return!(this.j.o.readonly||!this.j.o.toolbarInline||!t||this.isExcludedTarget(e))}isExcludedTarget(e){return(0,h.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){const t=this.toolbar.getButtonsNames();return(0,h.toArray)(e.registeredButtons).filter((e=>!this.j.o.toolbarInlineDisabledButtons.includes(e.name))).filter((e=>{const i=(0,h.isString)(e)?e:e.name;return i&&"|"!==i&&"\n"!==i&&!t.includes(i)}))}})).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",((e,t,i)=>{this.showPopup(t,i||((0,h.isString)(e)?e:e.nodeName),(0,h.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&&L.u1.closestElement(e.target,f.G))return;const{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;const e="selection",t=this.j.s.sel,i=this.j.s.range;(null==t?void 0:t.isCollapsed)||this.isSelectedTarget(i)||this.tableModule.getAllSelectedCells().length?this.type===e&&this.popup.isOpened&&this.hidePopup():this.j.s.current()&&this.showPopup((()=>i.getBoundingClientRect()),e)}isSelectedTarget(e){const t=e.startContainer;return j.i.isElement(t)&&t===e.endContainer&&j.i.isTag(t.childNodes[e.startOffset],(0,h.keys)(this.j.o.popup,!1))&&e.startOffset===e.endOffset-1}get tableModule(){return this.j.getInstance("Table",this.j.o)}beforeDestruct(e){e.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}_eventsList(){const e=this.elmsList;return e.map((e=>(0,h.camelCase)("click_"+e))).concat(e.map((e=>(0,h.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;const{range:t}=this.j.s;return t.getBoundingClientRect()}),"toolbar")}}(0,r.gn)([x.autobind],Ii.prototype,"onClick",null),(0,r.gn)([(0,x.wait)((e=>!e.j.isLocked))],Ii.prototype,"showPopup",null),(0,r.gn)([(0,x.watch)(":clickEditor"),x.autobind],Ii.prototype,"hidePopup",null),(0,r.gn)([(0,x.watch)(":outsideClick")],Ii.prototype,"onOutsideClick",null),(0,r.gn)([x.autobind],Ii.prototype,"onSelectionStart",null),(0,r.gn)([x.autobind],Ii.prototype,"onSelectionEnd",null),(0,r.gn)([(0,x.debounce)((e=>e.defaultTimeout))],Ii.prototype,"onSelectionChange",null),(0,r.gn)([x.autobind],Ii.prototype,"showInlineToolbar",null),a.D.prototype.controls.align={name:"left",tooltip:"Align",update(e,t){const i=e.control,o=t.s.current();if(o){const s=j.i.closest(o,j.i.isBlock,t.editor)||t.editor;let n=""+(0,h.css)(s,"text-align");i.defaultValue&&-1!==i.defaultValue.indexOf(n)&&(n="left"),i.data&&i.data.currentValue!==n&&i.list&&-1!==i.list.indexOf(n)&&(t.o.textIcons?e.state.text=n:e.state.icon.name=n,i.data.currentValue=n)}},isActive(e,t){const i=e.s.current();if(i&&t.defaultValue){const o=j.i.closest(i,j.i.isBlock,e.editor)||e.editor;return-1===t.defaultValue.indexOf(""+(0,h.css)(o,"text-align"))}return!1},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},a.D.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},a.D.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},a.D.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},a.D.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"};const xi=(e,t)=>{if(j.i.isNode(t)&&j.i.isElement(t))switch(j.i.each(t,(e=>{j.i.isHTMLElement(e)&&e.style.textAlign&&(e.style.textAlign="",e.style.cssText.trim().length||e.removeAttribute("style"))})),e.toLowerCase()){case"justifyfull":t.style.textAlign="justify";break;case"justifyright":t.style.textAlign="right";break;case"justifyleft":t.style.textAlign="left";break;case"justifycenter":t.style.textAlign="center"}};function zi(e){e.registerButton({name:"align",group:"indent"});const t=t=>(e.s.focus(),e.s.eachSelection((i=>{if(!i)return;let o=j.i.up(i,j.i.isBlock,e.editor);o||(o=j.i.wrapInline(i,e.o.enterBlock,e)),xi(t,o)})),!1);e.registerCommand("justifyfull",t),e.registerCommand("justifyright",t),e.registerCommand("justifyleft",t),e.registerCommand("justifycenter",t)}a.D.prototype.limitWords=!1,a.D.prototype.limitChars=!1,a.D.prototype.limitHTML=!1;class Ti extends G{afterInit(e){const{limitWords:t,limitChars:i}=e.o;if(e&&(t||i)){let t=null;e.e.off(".limit").on("beforePaste.limit",(()=>{t=e.history.snapshot.make()})).on("keydown.limit keyup.limit beforeEnter.limit beforePaste.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",(()=>{if(this.shouldPreventInsertHTML()&&t)return e.history.snapshot.restore(t),!1}))}}shouldPreventInsertHTML(e=null,t=""){if(e&&l.COMMAND_KEYS.includes(e.key))return!1;const{jodit:i}=this,{limitWords:o,limitChars:s}=i.o,n=this.splitWords(t||(i.o.limitHTML?i.value:i.text));return!(!o||o>n.length)||!!s&&n.join("").length>=s}checkPreventKeyPressOrPaste(e){if(this.shouldPreventInsertHTML(e))return!1}checkPreventChanging(e,t){const{jodit:i}=this,{limitWords:o,limitChars:s}=i.o,n=i.o.limitHTML?e:(0,h.stripTags)(e),r=this.splitWords(n);(o&&r.length>o||s&&r.join("").length>s)&&(i.value=t)}splitWords(e){return e.replace((0,l.INVISIBLE_SPACE_REG_EXP)(),"").split((0,l.SPACE_REG_EXP)()).filter((e=>e.length))}beforeDestruct(e){e.e.off(".limit")}}(0,r.gn)([x.autobind],Ti.prototype,"checkPreventKeyPressOrPaste",null),(0,r.gn)([x.autobind],Ti.prototype,"checkPreventChanging",null),a.D.prototype.defaultLineHeight=null,a.D.prototype.controls.lineHeight={icon:"line-height",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,h.memorizeExec)(e,t,{control:i},(e=>e))};class ji extends G{constructor(){super(...arguments),this.buttons=[{name:"lineHeight",group:"font"}]}afterInit(e){(0,h.css)(e.editor,{lineHeight:e.o.defaultLineHeight}),e.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(e,t,i){const{s:o,createInside:s,editor:n,o:r}=this.j;let a;o.isFocused()||o.focus(),o.save();const l=e=>{let t=j.i.closest(e,j.i.isBlock,n);t||(t=j.i.wrap(e,r.enter,s));const o=(0,h.css)(t,"lineHeight");void 0===a&&(a=""+o!=""+i),(0,h.css)(t,"lineHeight",a?i:null)};try{if(o.isCollapsed()){const e=s.fake();o.insertNode(e,!1,!1),l(e),j.i.safeRemove(e)}else o.eachSelection(l)}finally{o.restore()}}beforeDestruct(e){(0,h.css)(e.editor,{lineHeight:null})}}(0,r.gn)([x.autobind],ji.prototype,"applyLineHeight",null);var Li=i(77);a.D.prototype.link={formTemplate(e){const{openInNewTabCheckbox:t,noFollowCheckbox:i,modeClassName:o,selectSizeClassName:s,selectMultipleClassName:n,selectOptionsClassName:r}=e.o.link;return new Li.x4(e,[new Li.eC(e,[new Li.u3(e,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new Li.eC(e,[new Li.u3(e,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),o?new Li.eC(e,["input"===o?new Li.u3(e,{name:"className",ref:"className_input",label:"Class name"}):"select"===o?new Li.Cj(e,{name:"className",ref:"className_select",label:"Class name",size:s,multiple:n,options:r}):null]):null,t?new Li.mA(e,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,i?new Li.mA(e,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new Li.eC(e,[new g.y3(e,{name:"unlink",variant:"default",text:"Unlink"}),new g.y3(e,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])},followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},a.D.prototype.controls.unlink={exec(e,t){const i=vt.i.closest(t,"a",e.editor);i&&vt.i.unwrap(i),e.synchronizeValues(),e.e.fire("hidePopup")},tooltip:"Unlink"},a.D.prototype.controls.link={isActive(e){const t=e.s.current();return!(!t||!vt.i.closest(t,"a",e.editor))},popup:(e,t,i,o)=>e.e.fire("generateLinkForm.link",t,o),tags:["a"],tooltip:"Insert link"};class Ai extends G{constructor(){super(...arguments),this.buttons=[{name:"link",group:"insert"}]}afterInit(e){e.o.link.followOnDblClick&&e.e.on("dblclick.link",this.onDblClickOnLink),e.o.link.processPastedLink&&e.e.on("processPaste.link",this.onProcessPasteLink),e.e.on("generateLinkForm.link",this.generateForm),e.registerCommand("openLinkDialog",{exec:()=>{const t=new V({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((()=>{const{url_input:e}=(0,h.refs)(i.container);null==e||e.focus()}))},hotkeys:e.o.link.hotkeys})}onDblClickOnLink(e){if(!j.i.isTag(e.target,"a"))return;const t=(0,h.attr)(e.target,"href");t&&(location.href=t,e.preventDefault())}onProcessPasteLink(e,t){const{jodit:i}=this;if((0,h.isURL)(t)){if(i.o.link.processVideoLink){const e=(0,h.convertMediaUrlToVideoEmbed)(t);if(e!==t)return i.e.stopPropagation("processPaste"),i.createInside.fromHTML(e)}const e=i.createInside.element("a");return e.setAttribute("href",t),e.textContent=t,i.e.stopPropagation("processPaste"),e}}generateForm(e,t){const{jodit:i}=this,o=i.i18n.bind(i),{openInNewTabCheckbox:s,noFollowCheckbox:n,formTemplate:r,formClassName:a,modeClassName:l}=i.o.link,c=r(i),d=(0,h.isString)(c)?i.c.fromHTML(c,{target_checkbox_box:s,nofollow_checkbox_box:n}):c,u=j.i.isElement(d)?d:d.container,p=(0,h.refs)(u),{insert:m,unlink:f,content_input_box:g}=p,{target_checkbox:v,nofollow_checkbox:b,url_input:y}=p,w=j.i.isImage(e);let{content_input:k}=p;const{className_input:C}=p,{className_select:S}=p;let E;k||(k=i.c.element("input",{type:"hidden",ref:"content_input"})),a&&u.classList.add(a),w&&j.i.hide(g);const I=()=>E?E.innerText:(0,h.stripTags)(i.s.range.cloneContents(),i.ed);if(E=!(!e||!j.i.closest(e,"a",i.editor))&&j.i.closest(e,"a",i.editor),!w&&e&&(k.value=I()),E){if(y.value=(0,h.attr)(E,"href")||"",l)switch(l){case"input":C&&(C.value=(0,h.attr)(E,"class")||"");break;case"select":if(S){for(let e=0;S.selectedOptions.length>e;e++){const t=S.options.item(e);t&&(t.selected=!1)}((0,h.attr)(E,"class")||"").split(" ").forEach((e=>{if(e)for(let t=0;S.options.length>t;t++){const i=S.options.item(t);(null==i?void 0:i.value)&&i.value===e&&(i.selected=!0)}}))}}s&&v&&(v.checked="_blank"===(0,h.attr)(E,"target")),n&&b&&(b.checked="nofollow"===(0,h.attr)(E,"rel")),m.textContent=o("Update")}else j.i.hide(f);i.editor.normalize();const x=i.history.snapshot.make();f&&i.e.on(f,"click",(e=>{i.s.restore(),i.history.snapshot.restore(x),E&&j.i.unwrap(E),i.synchronizeValues(),t(),e.preventDefault()}));const z=()=>{if(!y.value.trim().length)return y.focus(),y.classList.add("jodit_error"),!1;let e;i.s.restore(),i.s.removeMarkers(),i.editor.normalize(),i.history.snapshot.restore(x);const o=I()!==k.value.trim(),r=i.createInside;if(E)e=[E];else{if(i.s.isCollapsed()){const t=r.element("a");i.s.insertNode(t,!1,!1),e=[t]}else{const t=i.s.current();e=j.i.isTag(t,["img"])?[j.i.wrap(t,"a",r)]:i.s.wrapInTag("a")}e.forEach((e=>i.s.select(e)))}return e.forEach((e=>{var t;if((0,h.attr)(e,"href",y.value),l&&(null!=C?C:S))if("input"===l)""===C.value&&e.hasAttribute("class")&&(0,h.attr)(e,"class",null),""!==C.value&&(0,h.attr)(e,"class",C.value);else if("select"===l){e.hasAttribute("class")&&(0,h.attr)(e,"class",null);for(let i=0;S.selectedOptions.length>i;i++){const o=null===(t=S.selectedOptions.item(i))||void 0===t?void 0:t.value;o&&e.classList.add(o)}}if(!w){let t=e.textContent;k.value.trim().length?o&&(t=k.value):t=y.value,t!==e.textContent&&(e.textContent=t)}s&&v&&(0,h.attr)(e,"target",v.checked?"_blank":null),n&&b&&(0,h.attr)(e,"rel",b.checked?"nofollow":null),i.e.fire("applyLink",i,e,d)})),i.synchronizeValues(),t(),!1};return j.i.isElement(d)?i.e.on(d,"submit",(e=>(e.preventDefault(),e.stopImmediatePropagation(),z(),!1))):d.onSubmit(z),d}beforeDestruct(e){e.e.off("generateLinkForm.link",this.generateForm).off("dblclick.link",this.onDblClickOnLink).off("processPaste.link",this.onProcessPasteLink)}}function Mi(e){const t="jodit_fake_wrapper",{mediaFakeTag:i,mediaBlocks:o,mediaInFakeBlock:s}=e.options;s&&e.e.on("afterGetValueFromEditor",(e=>{const o=RegExp(`<${i}[^>]+data-${t}[^>]+>([^]+?)</${i}>`,"ig");o.test(e.value)&&(e.value=e.value.replace(o,"$1"))})).on("change afterInit afterSetMode changePlace",e.async.debounce((()=>{e.isDestructed||e.getMode()===l.MODE_SOURCE||(0,h.$$)(o.join(","),e.editor).forEach((o=>{(0,h.dataBind)(o,t)||((0,h.dataBind)(o,t,!0),(o=>{if(o.parentNode&&(0,h.attr)(o.parentNode,"data-jodit_iframe_wrapper"))o=o.parentNode;else{const s=e.createInside.element(i,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,["data-"+t]:1});(0,h.attr)(s,"style",(0,h.attr)(o,"style")),s.style.display="inline-block"===o.style.display?"inline-block":"block",s.style.width=o.offsetWidth+"px",s.style.height=o.offsetHeight+"px",o.parentNode&&o.parentNode.insertBefore(s,o),s.appendChild(o),o=s}e.e.off(o,"mousedown.select touchstart.select").on(o,"mousedown.select touchstart.select",(()=>{e.s.setCursorAfter(o)}))})(o))}))}),e.defaultTimeout))}function Di(e){e.registerButton({name:"video",group:"media"})}function Pi(e){e.registerButton({name:"file",group:"media"})}function _i(e){let t=0,i=(0,h.splitArray)(e.o.buttons);e.o.mobileTapTimeout&&e.e.on("touchend",(i=>{if(i.changedTouches&&i.changedTouches.length){const o=(new Date).getTime(),s=o-t;s>e.o.mobileTapTimeout&&(t=o,1.5*e.o.mobileTapTimeout>s&&e.s.insertCursorAtPoint(i.clientX,i.clientY))}})),e.e.on("getDiffButtons.mobile",(t=>{if(t===e.toolbar){const t=(0,O.q)((0,h.splitArray)(e.o.buttons),e),o=(0,O.q)(i,e);return(0,h.toArray)(t).reduce(((e,t)=>(o.has(t)||e.push(t),e)),[])}})),e.o.toolbarAdaptive&&e.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",(()=>{var t;if(!e.o.toolbar)return;const o=(null!==(t=e.container.parentElement)&&void 0!==t?t:e.container).offsetWidth,s=(0,h.splitArray)(e.o.sizeLG>o?e.o.sizeMD>o?e.o.sizeSM>o?e.o.buttonsXS:e.o.buttonsSM:e.o.buttonsMD:e.o.buttons);""+s!=""+i&&(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")))}(0,r.gn)([x.autobind],Ai.prototype,"onDblClickOnLink",null),(0,r.gn)([x.autobind],Ai.prototype,"onProcessPasteLink",null),(0,r.gn)([x.autobind],Ai.prototype,"generateForm",null),a.D.prototype.mediaFakeTag="jodit-media",a.D.prototype.mediaInFakeBlock=!0,a.D.prototype.mediaBlocks=["video","audio"],a.D.prototype.controls.video={popup(e,t,i,o){const s=new Li.x4(e,[new Li.eC(e,[new Li.u3(e,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new Li.eC(e,[(0,g.zx)(e,"","Insert","primary").onAction((()=>s.submit()))])]),n=new Li.x4(e,[new Li.eC(e,[new Li.GJ(e,{name:"code",required:!0,label:"Embed code"})]),new Li.eC(e,[(0,g.zx)(e,"","Insert","primary").onAction((()=>n.submit()))])]),r=[],a=t=>{e.s.restore(),e.s.insertHTML(t),o()};return e.s.save(),r.push({icon:"link",name:"Link",content:s.container},{icon:"source",name:"Code",content:n.container}),s.onSubmit((e=>{a((0,h.convertMediaUrlToVideoEmbed)(e.url))})),n.onSubmit((e=>{a(e.code)})),(0,Gt.IL)(e,r)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"},a.D.prototype.controls.file={popup(e,t,i,o){const s=(t,i="")=>{e.s.insertNode(e.createInside.fromHTML(`<a href="${t}" title="${i}">${i||t}</a>`))};let n=null;return t&&(j.i.isTag(t,"a")||j.i.closest(t,"a",e.editor))&&(n=j.i.isTag(t,"a")?t:j.i.closest(t,"a",e.editor)),(0,Gt.ov)(e,{filebrowser(e){e.files&&e.files.forEach((t=>s(e.baseurl+t))),o()},upload:!0,url(e,t){n?(n.setAttribute("href",e),n.setAttribute("title",t)):s(e,t),o()}},n,o,!1)},tags:["a"],tooltip:"Insert file"},a.D.prototype.mobileTapTimeout=300,a.D.prototype.toolbarAdaptive=!0,a.D.prototype.controls.dots={mode:l.MODE_SOURCE+l.MODE_WYSIWYG,popup(e,t,i,o,s){let n=i.data;return void 0===n&&(n={toolbar:B(e),rebuild(){var t;if(s){const i=e.e.fire("getDiffButtons.mobile",s.closest(A));if(i&&n){n.toolbar.build((0,h.splitArray)(i));const o=(null===(t=e.toolbar.firstButton)||void 0===t?void 0:t.container.offsetWidth)||36;n.toolbar.container.style.width=3*(o+4)+"px"}}}},i.data=n),n.rebuild(),n.toolbar},tooltip:"Show all"};var Ri=i(31);const qi=(e,t,{control:i})=>{var o;const s="button"+i.command,n=null!==(o=i.args&&i.args[0])&&void 0!==o?o:(0,Ri.q)(e,s);(0,Ri.q)(e,s,n),e.execCommand(i.command,!1,"default"===n?null:n)};a.D.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:qi},a.D.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:qi};class Ni extends G{constructor(){super(...arguments),this.buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}]}afterInit(e){e.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(e,t,i){return this.jodit.s.applyStyle({listStyleType:null!=i?i:null},{element:"insertunorderedlist"===e?"ul":"ol"}),this.jodit.synchronizeValues(),!1}beforeDestruct(e){}}function Bi(e){e.o.hidePoweredByJodit||e.o.inline||!(e.o.showCharsCounter||e.o.showWordsCounter||e.o.showXPathInStatusbar)||e.hookStatus("ready",(()=>{e.statusbar.append(e.create.fromHTML('<a\n\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\tstyle="text-transform: uppercase"\n\t\t\t\t\t\tclass="jodit-status-bar-link"\n\t\t\t\t\t\ttarget="_blank"\n\t\t\t\t\t\thref="https://xdsoft.net/jodit/">\n\t\t\t\t\t\t\tPowered by Jodit\n\t\t\t\t\t\t</a>'),!0)}))}(0,r.gn)([x.autobind],Ni.prototype,"onCommand",null),a.D.prototype.showPlaceholder=!0,a.D.prototype.placeholder="Type something",a.D.prototype.useInputsPlaceholder=!0;class Hi extends G{constructor(){super(...arguments),this.addNativeListeners=()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)},this.addEvents=()=>{const e=this.j;e.o.useInputsPlaceholder&&e.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,h.attr)(e.element,"placeholder")||""),e.e.fire("placeholder",this.placeholderElm.innerHTML),e.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()}}afterInit(e){e.o.showPlaceholder&&(this.placeholderElm=e.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${e.i18n(e.o.placeholder)}</span>`),"rtl"===e.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),e.e.on("readonly",(e=>{e?this.hide():this.toggle()})).on("changePlace",this.addEvents),this.addEvents())}show(){const e=this.j;if(e.o.readonly)return;let t=0,i=0;const o=e.s.current(),s=o&&j.i.closest(o,j.i.isBlock,e.editor)||e.editor,n=e.ew.getComputedStyle(s);e.workplace.appendChild(this.placeholderElm);const{firstChild:r}=e.editor;if(j.i.isElement(r)&&!Ae.Ph.isMarker(r)){const o=e.ew.getComputedStyle(r);t=parseInt(o.getPropertyValue("margin-top"),10),i=parseInt(o.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(o.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=o.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(n.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=n.getPropertyValue("line-height");(0,h.css)(this.placeholderElm,{display:"block",textAlign:n.getPropertyValue("text-align"),marginTop:Math.max(parseInt(n.getPropertyValue("margin-top"),10),t),marginLeft:Math.max(parseInt(n.getPropertyValue("margin-left"),10),i)})}hide(){j.i.safeRemove(this.placeholderElm)}toggle(){const e=this.j;e.editor&&!e.isInDestruct&&(e.getRealMode()===l.MODE_WYSIWYG&&(e=>{if(!e.firstChild)return!0;const t=e.firstChild;if(l.MAY_BE_REMOVED_WITH_KEY.test(t.nodeName)||/^(TABLE)$/i.test(t.nodeName))return!1;const i=j.i.next(t,(e=>e&&!j.i.isEmptyTextNode(e)),e);return j.i.isText(t)&&!i?j.i.isEmptyTextNode(t):!i&&j.i.each(t,(e=>!j.i.isTag(e,["ul","li","ol"])&&(j.i.isEmpty(e)||j.i.isTag(e,"br"))))})(e.editor)?this.show():this.hide())}beforeDestruct(e){this.hide(),e.e.off(".placeholder").off(window,"load",this.toggle)}}(0,r.gn)([(0,x.debounce)((e=>e.defaultTimeout/10),!0)],Hi.prototype,"toggle",null),a.D.prototype.controls.redo={mode:l.MODE_SPLIT,isDisabled:e=>!e.history.canRedo(),tooltip:"Redo"},a.D.prototype.controls.undo={mode:l.MODE_SPLIT,isDisabled:e=>!e.history.canUndo(),tooltip:"Undo"};class Oi extends G{constructor(){super(...arguments),this.buttons=[{name:"undo",group:"history"},{name:"redo",group:"history"}]}beforeDestruct(){}afterInit(e){const t=t=>(e.history[t](),!1);e.registerCommand("redo",{exec:t,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),e.registerCommand("undo",{exec:t,hotkeys:["ctrl+z","cmd+z"]})}}a.D.prototype.allowResizeTags=["img","iframe","table","jodit"],a.D.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:["img"]};const Fi="__jodit-resizer_binded";class Vi extends G{constructor(){super(...arguments),this.LOCK_KEY="resizer",this.element=null,this.isResized=!1,this.isShown=!1,this.start_x=0,this.start_y=0,this.width=0,this.height=0,this.ratio=0,this.rect=this.j.c.fromHTML('<div class="jodit-resizer">\n\t\t\t\t<div class="jodit-resizer__top-left"></div>\n\t\t\t\t<div class="jodit-resizer__top-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-left"></div>\n\t\t\t\t<span>100x100</span>\n\t\t\t</div>'),this.sizeViewer=this.rect.getElementsByTagName("span")[0],this.onResize=e=>{if(this.isResized){if(!this.element)return;let t,i;if(this.j.options.iframe){const o=this.getWorkplacePosition();t=e.clientX+o.left-this.start_x,i=e.clientY+o.top-this.start_y}else t=e.clientX-this.start_x,i=e.clientY-this.start_y;const o=this.handle.className;let s=0,n=0;const r=this.j.o.resizer.useAspectRatio;!0===r||Array.isArray(r)&&j.i.isTag(this.element,r)?(t?(s=this.width+(o.match(/left/)?-1:1)*t,n=Math.round(s/this.ratio)):(n=this.height+(o.match(/top/)?-1:1)*i,s=Math.round(n*this.ratio)),s>(0,h.innerWidth)(this.j.editor,this.j.ow)&&(s=(0,h.innerWidth)(this.j.editor,this.j.ow),n=Math.round(s/this.ratio))):(s=this.width+(o.match(/left/)?-1:1)*t,n=this.height+(o.match(/top/)?-1:1)*i),s>this.j.o.resizer.min_width&&this.applySize(this.element,"width",this.rect.parentNode.offsetWidth>s?s:"100%"),n>this.j.o.resizer.min_height&&this.applySize(this.element,"height",n),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),e.stopImmediatePropagation()}},this.onClickOutside=e=>{this.isShown&&(this.isResized?(this.j.unlock(),this.isResized=!1,this.j.synchronizeValues(),e.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove.resizer touchmove.resizer",this.onResize)):this.hide())},this.onClickElement=e=>{this.isResized||this.element===e&&this.isShown||(this.element=e,this.show(),j.i.isTag(this.element,"img")&&!this.element.complete&&this.j.e.one(this.element,"load",this.updateSize))},this.updateSize=()=>{if(!this.isInDestruct&&this.isShown&&this.element&&this.rect){const e=this.getWorkplacePosition(),t=(0,h.offset)(this.element,this.j,this.j.ed),i=parseInt(this.rect.style.left||"0",10),o=this.rect.offsetWidth,s=this.rect.offsetHeight,n=t.top-e.top,r=t.left-e.left;parseInt(this.rect.style.top||"0",10)===n&&i===r&&o===this.element.offsetWidth&&s===this.element.offsetHeight||((0,h.css)(this.rect,{top:n,left:r,width:this.element.offsetWidth,height:this.element.offsetHeight}),this.j.events&&(this.j.e.fire(this.element,"changesize"),isNaN(i)||this.j.e.fire("resize")))}},this.hideSizeViewer=()=>{this.sizeViewer.style.opacity="0"}}afterInit(e){(0,h.$$)("div",this.rect).forEach((t=>{e.e.on(t,"mousedown.resizer touchstart.resizer",this.onClickHandle.bind(this,t))})),I.TB.on("hideHelpers",this.hide),e.e.on("readonly",(e=>{e&&this.hide()})).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",(e=>{const t=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;t.test(e.value)&&(e.value=e.value.replace(t,"$1"))})).on("hideResizer",this.hide).on("change afterInit afterSetMode",this.onChangeEditor),this.addEventListeners(),this.onChangeEditor()}onEditorClick(e){let t=e.target;const{editor:i,options:{allowResizeTags:o}}=this.j;for(;t&&t!==i;){if(j.i.isTag(t,o))return this.bind(t),void this.onClickElement(t);t=t.parentNode}}addEventListeners(){const e=this.j;e.e.off(e.editor,".resizer").off(e.ow,".resizer").on(e.editor,"keydown.resizer",(e=>{this.isShown&&e.key===l.KEY_DELETE&&this.element&&!j.i.isTag(this.element,"table")&&this.onDelete(e)})).on(e.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on(e.ow,"mouseup.resizer keydown.resizer touchend.resizer",this.onClickOutside).on([e.ow,e.editor],"scroll.resizer",(()=>{this.isShown&&!this.isResized&&this.hide()}))}onClickHandle(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.isResized=!0,this.start_x=t.clientX,this.start_y=t.clientY,this.j.e.fire("hidePopup"),this.j.lock(this.LOCK_KEY),this.j.e.on(this.j.ow,"mousemove.resizer touchmove.resizer",this.onResize)}getWorkplacePosition(){return(0,h.offset)(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}applySize(e,t,i){const o=j.i.isImage(e)&&this.j.o.resizer.forImageChangeAttributes;o&&(0,h.attr)(e,t,i),o&&!e.style[t]||(0,h.css)(e,t,i)}onDelete(e){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(j.i.safeRemove(this.element),this.hide(),e.preventDefault()))}onChangeEditor(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),(0,h.$$)("iframe",this.j.editor).forEach(this.bind)}bind(e){if(!j.i.isHTMLElement(e)||!this.j.o.allowResizeTags.includes(e.tagName.toLowerCase())||(0,h.dataBind)(e,Fi))return;let t;if((0,h.dataBind)(e,Fi,!0),j.i.isTag(e,"iframe")){const i=e;j.i.isHTMLElement(e.parentNode)&&(0,h.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,h.attr)(t,"style",(0,h.attr)(e,"style")),(0,h.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,h.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)}showSizeViewer(e,t){this.j.o.resizer.showSize&&(this.sizeViewer.offsetWidth>e||this.sizeViewer.offsetHeight>t?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,h.markOwner)(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=""+(0,h.css)(this.j.container,"zIndex")),this.updateSize())}hide(){this.isResized||(this.isResized=!1,this.isShown=!1,this.element=null,j.i.safeRemove(this.rect),(0,h.$$)("[data-jodit-wrapper_active='true']",this.j.editor).forEach((e=>(0,h.attr)(e,"data-jodit-wrapper_active",!1))))}beforeDestruct(e){this.hide(),I.TB.off("hideHelpers",this.hide),e.e.off(this.j.ow,".resizer").off(".resizer")}}(0,r.gn)([(0,x.watch)(":click")],Vi.prototype,"onEditorClick",null),(0,r.gn)([(0,x.debounce)()],Vi.prototype,"onChangeEditor",null),(0,r.gn)([x.autobind],Vi.prototype,"bind",null),(0,r.gn)([x.autobind],Vi.prototype,"hide",null);var Wi=i(65);class Ui{constructor(e=Wi.Q){this.searchIndex=e,this.queue=[],this.value=""}add(e){var t;const i=(null!==(t=e.nodeValue)&&void 0!==t?t:"").toLowerCase();if(!i.length)return;const o=this.value.length;this.queue.push({startIndex:o,endIndex:o+i.length,node:e}),this.value+=i}ranges(e,t=0){const i=[];let o=t,s=0,n=0;do{if([o,s]=this.searchIndex(e,this.value,o),-1!==o){let e,t,r=0,a=0;for(let i=n;this.queue.length>i;i+=1)if(!e&&this.queue[i].endIndex>o&&(e=this.queue[i].node,r=o-this.queue[i].startIndex),e&&this.queue[i].endIndex>=o+s){t=this.queue[i].node,a=o+s-this.queue[i].startIndex,n=i;break}e&&t&&i.push({startContainer:e,startOffset:r,endContainer:t,endOffset:a}),o+=s}}while(-1!==o);return 0===i.length?null:i}}const $i="jd-tmp-selection";function Yi(e,t,i,o){if(null==e.startContainer.nodeValue||null==e.endContainer.nodeValue)return;const s=i.element("span",{[$i]:!0}),n=e.startContainer.nodeValue;let r=0;if(0!==e.startOffset){const t=i.text(n.substring(0,e.startOffset));e.startContainer.nodeValue=n.substring(e.startOffset),j.i.before(e.startContainer,t),e.startContainer===e.endContainer&&(r=e.startOffset,e.endOffset-=r),e.startOffset=0}const a=e.endContainer.nodeValue;if(e.endOffset!==a.length){const o=i.text(a.substring(e.endOffset));e.endContainer.nodeValue=a.substring(0,e.endOffset),j.i.after(e.endContainer,o);for(const i of t){if(i.startContainer!==e.endContainer)break;i.startContainer=o,i.startOffset=i.startOffset-e.endOffset-r,i.endContainer===e.endContainer&&(i.endContainer=o,i.endOffset=i.endOffset-e.endOffset-r)}e.endOffset=e.endContainer.nodeValue.length}let l=e.startContainer;do{if(!l)break;if(!j.i.isText(l)||j.i.isElement(c=l.parentNode)&&c.hasAttribute($i)||j.i.wrap(l,s.cloneNode(),i),l===e.endContainer)break;let t=l.firstChild||l.nextSibling;if(!t){for(;l&&!l.nextSibling&&l!==o;)l=l.parentNode;t=null==l?void 0:l.nextSibling}l=t}while(l&&l!==o);var c}function Gi(e){return(0,Xt.$$)(`[${$i}]`,e)}function Ki(e){Gi(e).forEach((e=>j.i.unwrap(e)))}let Ji=class extends L.u1{constructor(e){super(e),this.selInfo=null,this._currentIndex=0,this.isOpened=!1;const{query:t,replace:i,cancel:o,next:s,prev:n,replaceBtn:r,current:a,count:c}=(0,h.refs)(this.container);this.queryInput=t,this.replaceInput=i,this.closeButton=o,this.replaceButton=r,this.currentBox=a,this.countBox=c,e.e.on(this.closeButton,"pointerdown",(()=>(this.close(),!1))).on(this.queryInput,"input",(()=>{this.currentIndex=0})).on(this.queryInput,"pointerdown",(()=>{e.s.isFocused()&&(e.s.removeMarkers(),this.selInfo=e.s.save())})).on(this.replaceButton,"pointerdown",(()=>(e.e.fire(this,"pressReplaceButton"),!1))).on(s,"pointerdown",(()=>(e.e.fire("searchNext"),!1))).on(n,"pointerdown",(()=>(e.e.fire("searchPrevious"),!1))).on(this.queryInput,"input",(()=>{this.setMod("empty-query",!(0,h.trim)(this.queryInput.value).length)})).on(this.queryInput,"keydown",this.j.async.debounce((t=>{t.key===l.KEY_ENTER?(t.preventDefault(),t.stopImmediatePropagation(),e.e.fire("searchNext")&&this.close()):e.e.fire(this,"needUpdateCounters")}),this.j.defaultTimeout))}className(){return"UISearch"}render(){return`<div>\n\t\t\t<div class="&__box">\n\t\t\t\t<div class="&__inputs">\n\t\t\t\t\t<input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>\n\t\t\t\t\t<input data-ref="replace" tabindex="0" placeholder="~Replace with~" type="text"/>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__counts">\n\t\t\t\t\t<span data-ref="counter-box">\n\t\t\t\t\t\t<span data-ref="current">0</span><span>/</span><span data-ref="count">0</span>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__buttons">\n\t\t\t\t\t<button data-ref="next" tabindex="0" type="button">${L.JO.get("angle-down")}</button>\n\t\t\t\t\t<button data-ref="prev" tabindex="0" type="button">${L.JO.get("angle-up")}</button>\n\t\t\t\t\t<button data-ref="cancel" tabindex="0" type="button">${L.JO.get("cancel")}</button>\n\t\t\t\t\t<button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>`}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.currentBox.innerText=""+e}set count(e){this.countBox.innerText=""+e}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(e){if(!this.isOpened)return;const{j:t}=this;if(t.getRealMode()===l.MODE_WYSIWYG)switch(e.key){case l.KEY_ESC:this.close();break;case l.KEY_F3:this.queryInput.value&&(t.e.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}open(e=!1){this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",e);const t=""+(this.j.s.sel||"");t&&(this.queryInput.value=t),this.setMod("empty-query",!t.length),this.j.e.fire(this,"needUpdateCounters"),t?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),j.i.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(e){if(this.isOpened)if(this.setMod("sticky",e),e){const e=(0,h.position)(this.j.toolbarContainer);(0,h.css)(this.container,{top:e.top+e.height,left:e.left+e.width})}else(0,h.css)(this.container,{top:null,left:null})}};(0,r.gn)([(0,x.watch)([":keydown","queryInput:keydown"])],Ji.prototype,"onEditorKeyDown",null),(0,r.gn)([x.autobind],Ji.prototype,"open",null),(0,r.gn)([x.autobind],Ji.prototype,"close",null),(0,r.gn)([(0,x.watch)(":toggleSticky")],Ji.prototype,"calcSticky",null),Ji=(0,r.gn)([x.component],Ji),a.D.prototype.useSearch=!0,a.D.prototype.search={lazyIdleTimeout:0},a.D.prototype.controls.find={tooltip:"Find",icon:"search",exec(e,t,{control:i}){switch(i.args&&i.args[0]){case"findPrevious":e.e.fire("searchPrevious");break;case"findNext":e.e.fire("searchNext");break;case"replace":e.execCommand("openReplaceDialog");break;default:e.execCommand("openSearchDialog")}},list:{search:"Find",findNext:"Find Next",findPrevious:"Find Previous",replace:"Replace"},childTemplate:(e,t,i)=>i};class Xi extends G{constructor(){super(...arguments),this.buttons=[{name:"find",group:"search"}],this.previousQuery="",this.drawPromise=null,this.walker=null,this.walkerCount=null,this.cache={},this.wrapFrameRequest=0}get ui(){return new Ji(this.j)}async updateCounters(){this.ui.isOpened&&(this.ui.count=await this.calcCounts(this.ui.query))}onPressReplaceButton(){this.findAndReplace(this.ui.query),this.updateCounters()}tryScrollToElement(e){let t=j.i.closest(e,j.i.isElement,this.j.editor);t||(t=j.i.prev(e,j.i.isElement,this.j.editor)),t&&t!==this.j.editor&&(0,h.scrollIntoViewIfNeeded)(t,this.j.editor,this.j.ed)}async calcCounts(e){return this.walkerCount&&this.walkerCount.break(),this.walkerCount=new j.b(this.j.async,{timeout:this.j.o.search.lazyIdleTimeout}),(await this.find(this.walkerCount,e).catch((()=>[]))).length}async findAndReplace(e){this.walker&&this.walker.break(),this.walker=new j.b(this.j.async,{timeout:this.j.o.search.lazyIdleTimeout});const t=this.j.s.range,i=await this.find(this.walker,e).catch((()=>[]));let o=this.findCurrentIndexInRanges(i,t);-1===o&&(o=0);const s=i[o];if(s){try{const e=this.j.ed.createRange();e.setStart(s.startContainer,s.startOffset),e.setEnd(s.endContainer,s.endOffset),e.deleteContents();const t=this.j.createInside.text(this.ui.replace);e.insertNode(t),this.j.s.select(t),this.tryScrollToElement(t),this.cache={},this.j.synchronizeValues()}catch(e){}return this.j.e.fire("afterFindAndReplace"),!0}return!1}async findAndSelect(e,t){var i;this.walker&&this.walker.break(),this.walker=new j.b(this.j.async,{timeout:this.j.defaultTimeout});const o=await this.find(this.walker,e);if(!o.length)return!1;this.previousQuery===e&&Gi(this.j.editor).length||(null===(i=this.drawPromise)||void 0===i||i.rejectCallback(),this.j.async.cancelAnimationFrame(this.wrapFrameRequest),Ki(this.j.editor),this.drawPromise=this.drawSelectionRanges(o)),this.previousQuery=e;let s=this.ui.currentIndex-1;s=-1===s?0:t?s===o.length-1?0:s+1:0===s?o.length-1:s-1,this.ui.currentIndex=s+1;const n=o[s];if(n){const e=this.j.ed.createRange();try{e.setStart(n.startContainer,n.startOffset),e.setEnd(n.endContainer,n.endOffset),this.j.s.selectRange(e)}catch(e){}return this.tryScrollToElement(n.startContainer),await this.updateCounters(),await this.drawPromise,this.j.e.fire("afterFindAndSelect"),!0}return!1}findCurrentIndexInRanges(e,t){return e.findIndex((e=>e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.startContainer&&e.endOffset===t.endOffset))}async isValidCache(e){return(await e).every((e=>{var t,i,o,s;return e.startContainer.isConnected&&e.startOffset<=(null!==(i=null===(t=e.startContainer.nodeValue)||void 0===t?void 0:t.length)&&void 0!==i?i:0)&&e.endContainer.isConnected&&e.endOffset<=(null!==(s=null===(o=e.endContainer.nodeValue)||void 0===o?void 0:o.length)&&void 0!==s?s:0)}))}async find(e,t){if(!t.length)return[];const i=this.cache[t];if(i&&await this.isValidCache(i))return i;const o=new Ui(this.j.o.search.fuzzySearch);return this.cache[t]=this.j.async.promise((i=>{e.on("break",(()=>{i([])})).on("visit",(e=>(j.i.isText(e)&&o.add(e),!1))).on("end",(()=>{var e;i(null!==(e=o.ranges(t))&&void 0!==e?e:[])})).setWork(this.j.editor)})),this.cache[t]}drawSelectionRanges(e){const{async:t,createInside:i,editor:o}=this.j;t.cancelAnimationFrame(this.wrapFrameRequest);const s=[...e];let n,r=0;return t.promise((e=>{const a=()=>{do{n=s.shift(),n&&Yi(n,s,i,o),r+=1}while(n&&5>=r);s.length?this.wrapFrameRequest=t.requestAnimationFrame(a):e()};a()}))}onAfterGetValueFromEditor(e){e.value=e.value.replace(RegExp(`<span[^>]+${$i}[^>]+>(.*?)</span>`,"g"),"$1")}afterInit(e){if(e.o.useSearch){const t=this;e.e.on("beforeSetMode.search",(()=>{this.ui.close()})).on(this.ui,"afterClose",(()=>{Ki(e.editor),this.ui.currentIndex=0,this.ui.count=0,this.cache={}})).on("click",(()=>{this.ui.currentIndex=0,Ki(e.editor)})).on("change.search",(()=>{this.cache={}})).on("keydown.search mousedown.search",e.async.debounce((()=>{this.ui.selInfo&&(e.s.removeMarkers(),this.ui.selInfo=null),this.ui.isOpened&&this.updateCounters()}),e.defaultTimeout)).on("searchNext.search searchPrevious.search",(()=>(this.ui.isOpened||this.ui.open(),t.findAndSelect(t.ui.query,"searchNext"===e.e.current).catch((()=>{}))))).on("search.search",((e,i=!0)=>(this.ui.currentIndex=0,t.findAndSelect(e||"",i).catch((()=>{}))))),e.registerCommand("search",{exec:(e,i,o=!0)=>(i&&t.findAndSelect(i,o).catch((()=>{})),!1)}).registerCommand("openSearchDialog",{exec:()=>(t.ui.open(),!1),hotkeys:["ctrl+f","cmd+f"]}).registerCommand("openReplaceDialog",{exec:()=>(e.o.readonly||t.ui.open(!0),!1),hotkeys:["ctrl+h","cmd+h"]})}}beforeDestruct(e){this.ui.destruct(),e.e.off(".search")}}(0,r.gn)([x.cache],Xi.prototype,"ui",null),(0,r.gn)([(0,x.watch)("ui:needUpdateCounters")],Xi.prototype,"updateCounters",null),(0,r.gn)([(0,x.watch)("ui:pressReplaceButton")],Xi.prototype,"onPressReplaceButton",null),(0,r.gn)([x.autobind],Xi.prototype,"findAndReplace",null),(0,r.gn)([x.autobind],Xi.prototype,"findAndSelect",null),(0,r.gn)([x.autobind],Xi.prototype,"find",null),(0,r.gn)([(0,x.watch)(":afterGetValueFromEditor")],Xi.prototype,"onAfterGetValueFromEditor",null);var Zi=i(38);a.D.prototype.select={normalizeSelectionBeforeCutAndCopy:!0};class Qi extends G{constructor(){super(...arguments),this.proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"]}afterInit(e){this.proxyEventsList.forEach((t=>{e.e.on(t+".select",this.onStartSelection)}))}beforeDestruct(e){this.proxyEventsList.forEach((t=>{e.e.on(t+".select",this.onStartSelection)}))}onStartSelection(e){const{j:t}=this;let i,o=e.target;for(;void 0===i&&o&&o!==t.editor;)i=t.e.fire((0,Zi.e)(e.type+"_"+o.nodeName.toLowerCase()),o,e),o=o.parentElement;"click"===e.type&&void 0===i&&o===t.editor&&t.e.fire(e.type+"Editor",o,e)}onOutsideClick(e){const t=e.target;j.i.up(t,(e=>e===this.j.editor))||L.u1.closestElement(t,L.GI)||this.j.e.fire("outsideClick",e)}beforeCommandCut(e){const{s:t}=this.j;if("cut"===e&&!t.isCollapsed()){const e=t.current();e&&j.i.isOrContains(this.j.editor,e)&&this.onCopyNormalizeSelectionBound()}}onCopyNormalizeSelectionBound(e){const{s:t,editor:i,o}=this.j;o.select.normalizeSelectionBeforeCutAndCopy&&!t.isCollapsed()&&(!e||e.isTrusted&&j.i.isNode(e.target)&&j.i.isOrContains(i,e.target))&&this.jodit.s.expandSelection()}}(0,r.gn)([x.autobind],Qi.prototype,"onStartSelection",null),(0,r.gn)([(0,x.watch)("ow:click")],Qi.prototype,"onOutsideClick",null),(0,r.gn)([(0,x.watch)([":beforeCommand"])],Qi.prototype,"beforeCommandCut",null),(0,r.gn)([(0,x.watch)([":copy",":cut"])],Qi.prototype,"onCopyNormalizeSelectionBound",null),a.D.prototype.width="auto",a.D.prototype.minWidth=200,a.D.prototype.maxWidth="100%",a.D.prototype.allowResizeX=!1,a.D.prototype.allowResizeY=!0,a.D.prototype.height="auto",a.D.prototype.minHeight=200,a.D.prototype.maxHeight="auto",a.D.prototype.saveHeightInStorage=!1;let eo=class extends G{constructor(){super(...arguments),this.isResized=!1,this.start={x:0,y:0,w:0,h:0},this.handle=this.j.c.div("jodit-editor__resize",L.JO.get("resize_handler"))}afterInit(e){const{height:t,width:i,allowResizeX:o}=e.o;let{allowResizeY:s}=e.o;"auto"===t&&"auto"!==i&&(s=!1),"auto"===t&&"auto"===i||!o&&!s||(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(){j.i.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}};eo.requires=["size"],eo=(0,r.gn)([x.autobind],eo);let to=class extends G{constructor(){super(...arguments),this.resizeWorkspaces=this.j.async.debounce(this.resizeWorkspaceImd,this.j.defaultTimeout,!0)}afterInit(e){e.e.on("setHeight.size",this.setHeight).on("setWidth.size",this.setWidth).on("afterInit.size changePlace.size",this.initialize,{top:!0}).on(e.ow,"load.size",this.resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.resizeWorkspaceImd),this.initialize()}initialize(){const{j:e}=this;if(e.o.inline)return;let{height:t}=e.o;if(e.o.saveHeightInStorage&&"auto"!==t){const i=e.storage.get("height");i&&(t=i)}(0,h.css)(e.editor,{minHeight:"100%"}),(0,h.css)(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),this.setHeight(t),this.setWidth(e.o.width)}setHeight(e){if((0,h.isNumber)(e)){const{minHeight:t,maxHeight:i}=this.j.o;(0,h.isNumber)(t)&&t>e&&(e=t),(0,h.isNumber)(i)&&e>i&&(e=i)}(0,h.css)(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.resizeWorkspaceImd()}setWidth(e){if((0,h.isNumber)(e)){const{minWidth:t,maxWidth:i}=this.j.o;(0,h.isNumber)(t)&&t>e&&(e=t),(0,h.isNumber)(i)&&e>i&&(e=i)}(0,h.css)(this.j.container,"width",e),this.resizeWorkspaceImd()}getNotWorkHeight(){var e,t;return((null===(e=this.j.toolbarContainer)||void 0===e?void 0:e.offsetHeight)||0)+((null===(t=this.j.statusbar)||void 0===t?void 0:t.getHeight())||0)+2}resizeWorkspaceImd(){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline)return;if(!this.j.container||!this.j.container.parentNode)return;const e=((0,h.css)(this.j.container,"minHeight")||0)-this.getNotWorkHeight();if((0,h.isNumber)(e)&&e>0&&([this.j.workplace,this.j.iframe,this.j.editor].map((t=>{t&&(0,h.css)(t,"minHeight",e)})),this.j.e.fire("setMinHeight",e)),(0,h.isNumber)(this.j.o.maxHeight)){const e=this.j.o.maxHeight-this.getNotWorkHeight();[this.j.workplace,this.j.iframe,this.j.editor].map((t=>{t&&(0,h.css)(t,"maxHeight",e)})),this.j.e.fire("setMaxHeight",e)}this.j.container&&(0,h.css)(this.j.workplace,"height","auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.getNotWorkHeight():"auto")}beforeDestruct(e){e.e.off(e.ow,"load.size",this.resizeWorkspaces).off(".size")}};(0,r.gn)([x.autobind],to.prototype,"resizeWorkspaceImd",null),to=(0,r.gn)([x.autobind],to),a.D.prototype.beautifyHTML=!l.IS_IE,a.D.prototype.sourceEditor="ace",a.D.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},a.D.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12/ace.js"],a.D.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.0/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.0/beautify-html.min.js"],a.D.prototype.controls.source={mode:l.MODE_SPLIT,exec(e){e.toggleMode()},isActive:e=>e.getRealMode()===l.MODE_SOURCE,tooltip:"Change mode"};class io{constructor(e,t,i,o){this.jodit=e,this.container=t,this.toWYSIWYG=i,this.fromWYSIWYG=o,this.className="",this.isReady=!1}get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(e){var t;this.isReady?e():null===(t=this.j.events)||void 0===t||t.on(this,"ready",e)}}class oo extends io{constructor(){super(...arguments),this.autosize=this.j.async.debounce((()=>{this.instance.style.height="auto",this.instance.style.height=this.instance.scrollHeight+"px"}),this.j.defaultTimeout)}init(e){this.instance=e.c.element("textarea",{class:"jodit-source__mirror"}),this.container.appendChild(this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",(e=>{(0,h.css)(this.instance,"minHeight",e)})).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",(t=>{e.e.fire(t.type,t)})),this.autosize(),this.onReady()}destruct(){j.i.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(e){this.instance.value=e}insertRaw(e){const t=this.getValue();if(0>this.getSelectionStart())this.setValue(t+e);else{const i=this.getSelectionStart(),o=this.getSelectionEnd();this.setValue(t.substring(0,i)+e+t.substring(o,t.length))}}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(e,t=e){this.instance.setSelectionRange(e,t)}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(e){this.instance.setAttribute("placeholder",e)}setReadOnly(e){e?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}selectAll(){this.instance.select()}replaceUndoManager(){const{history:e}=this.jodit;this.j.e.on(this.instance,"keydown",(t=>{if((t.ctrlKey||t.metaKey)&&"z"===t.key)return t.shiftKey?e.redo():e.undo(),this.setSelectionRange(this.getValue().length),!1}))}}class so extends io{constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=e=>{this.j.e.fire("blur",e)},this.proxyOnFocus=e=>{this.j.e.fire("focus",e)},this.proxyOnMouseDown=e=>{this.j.e.fire("mousedown",e)}}aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(e){return this.instance.session.getLine(e).length}getLastColumnIndices(){const e=this.instance.session.getLength(),t=[];let i=0;for(let o=0;e>o;o++)i+=this.getLastColumnIndex(o),o>0&&(i+=1),t[o]=i;return t}getRowColumnIndices(e){const t=this.getLastColumnIndices();if(t[0]>=e)return{row:0,column:e};let i=1;for(let o=1;t.length>o;o++)e>t[o]&&(i=o+1);return{row:i,column:e-t[i-1]-1}}setSelectionRangeIndices(e,t){const i=this.getRowColumnIndices(e),o=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:i,end:o})}getIndexByRowColumn(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}init(e){const t=()=>{if(void 0!==this.instance||!this.aceExists())return;const t=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(t),this.instance=e.ow.ace.edit(t),this.instance.setTheme(e.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),e.getRealMode()!==l.MODE_WYSIWYG&&this.setValue(this.getValue());const i=this.j.async.debounce((()=>{e.isInDestruct||(this.instance.setOption("maxLines","auto"!==e.o.height?e.workplace.offsetHeight/this.instance.renderer.lineHeight:1/0),this.instance.resize())}),2*this.j.defaultTimeout);e.e.on("afterResize afterSetMode",i),i(),this.onReady()};e.e.on("afterSetMode",(()=>{e.getRealMode()!==l.MODE_SOURCE&&e.getMode()!==l.MODE_SPLIT||(this.fromWYSIWYG(),t())})),t(),this.aceExists()||(0,h.loadNext)(e,e.o.sourceEditorCDNUrlsJS).then((()=>{e.isInDestruct||t()}))}destruct(){var e,t;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null===(t=null===(e=this.j)||void 0===e?void 0:e.events)||void 0===t||t.off("aceInited.source")}setValue(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){const t=this.j.e.fire("beautifyHTML",e);(0,h.isString)(t)&&(e=t)}this.instance.setValue(e),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(e){this.instance.setReadOnly(e)}focus(){this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){const e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}getSelectionEnd(){const e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(e){const t=this.instance.selection.getCursor(),i=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:i},!1)}setSelectionRange(e,t){this.setSelectionRangeIndices(e,t)}setPlaceHolder(e){}replaceUndoManager(){const{history:e}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec(){e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec(){e.redo()}})}}function no(e,t,i,o,s){let n;if((0,h.isFunction)(e))n=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){n=new so(t,i,o,s);break}default:n=new oo(t,i,o,s)}return n.init(t),n.onReadyAlways((()=>{n.setReadOnly(t.o.readonly)})),n}class ro extends G{constructor(){super(...arguments),this.buttons=[{name:"source",group:"source"}],this.__lock=!1,this.__oldMirrorValue="",this.tempMarkerStart="{start-jodit-selection}",this.tempMarkerStartReg=/{start-jodit-selection}/g,this.tempMarkerEnd="{end-jodit-selection}",this.tempMarkerEndReg=/{end-jodit-selection}/g,this.getSelectionStart=()=>{var e,t;return null!==(t=null===(e=this.sourceEditor)||void 0===e?void 0:e.getSelectionStart())&&void 0!==t?t:0},this.getSelectionEnd=()=>{var e,t;return null!==(t=null===(e=this.sourceEditor)||void 0===e?void 0:e.getSelectionEnd())&&void 0!==t?t:0}}onInsertHTML(e){var t;if(!this.j.o.readonly&&!this.j.isEditorMode())return null===(t=this.sourceEditor)||void 0===t||t.insertRaw(e),this.toWYSIWYG(),!1}fromWYSIWYG(e=!1){if(!this.__lock||!0===e){this.__lock=!0;const e=this.j.getEditorValue(!1,vi);e!==this.getMirrorValue()&&this.setMirrorValue(e),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;const e=this.getMirrorValue();e!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=e,this.__lock=!1,this.__oldMirrorValue=e)}getNormalPosition(e,t){for(t=t.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,(e=>{let t="";for(let i=0;e.length>i;i+=1)t+=l.INVISIBLE_SPACE;return t}));e>0&&t[e]===l.INVISIBLE_SPACE;)e--;let i=e;for(;i>0;){if(i--,"<"===t[i]&&void 0!==t[i+1]&&t[i+1].match(/[\w/]+/i))return i;if(">"===t[i])return e}return e}clnInv(e){return e.replace(l.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(e){var t;if("selectall"===e.toLowerCase()&&this.j.getRealMode()===l.MODE_SOURCE)return null===(t=this.sourceEditor)||void 0===t||t.selectAll(),!1}getMirrorValue(){var e;return(null===(e=this.sourceEditor)||void 0===e?void 0:e.getValue())||""}setMirrorValue(e){var t;null===(t=this.sourceEditor)||void 0===t||t.setValue(e)}setFocusToMirror(){var e;null===(e=this.sourceEditor)||void 0===e||e.focus()}saveSelection(){if(this.j.getRealMode()===l.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;const e=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){const t=this.j.s.marker(!0),i=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(e.substr(0,i)+this.clnInv(t.outerHTML)+e.substr(i))}else{const t=this.j.s.marker(!0),i=this.j.s.marker(!1),o=this.getNormalPosition(this.getSelectionStart(),e),s=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.substr(0,o)+this.clnInv(t.outerHTML)+e.substr(o,s-o)+this.clnInv(i.outerHTML)+e.substr(s))}this.toWYSIWYG()}}removeSelection(){if(this.j.getRealMode()===l.MODE_WYSIWYG)return this.__lock=!0,this.j.s.restore(),void(this.__lock=!1);let e=this.getMirrorValue(),t=0,i=0;try{if(e=e.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){const t=this.j.e.fire("beautifyHTML",e);(0,h.isString)(t)&&(e=t)}if(t=e.indexOf(this.tempMarkerStart),i=t,e=e.replace(this.tempMarkerStartReg,""),-1!==t){const t=e.indexOf(this.tempMarkerEnd);-1!==t&&(i=t)}e=e.replace(this.tempMarkerEndReg,"")}finally{e=e.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(e),this.setMirrorSelectionRange(t,i),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(e,t){var i;null===(i=this.sourceEditor)||void 0===i||i.setSelectionRange(e,t)}onReadonlyReact(){var e;null===(e=this.sourceEditor)||void 0===e||e.setReadOnly(this.j.o.readonly)}afterInit(e){if(this.mirrorContainer=e.c.div("jodit-source"),e.workplace.appendChild(this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",(()=>{e.workplace.appendChild(this.mirrorContainer)})),this.sourceEditor=no("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.registerCommand("escapeSourceEditor",{exec:()=>{var e;null===(e=this.sourceEditor)||void 0===e||e.blur()},hotkeys:["esc"]},{stopPropagation:!1}),this.onReadonlyReact(),e.e.on("placeholder.source",(e=>{var t;null===(t=this.sourceEditor)||void 0===t||t.setPlaceHolder(e)})).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",(e=>e)),e.o.beautifyHTML){const t=()=>{var t;const i=e.ow.html_beautify;return!(!i||e.isInDestruct||(null===(t=e.events)||void 0===t||t.off("beautifyHTML").on("beautifyHTML",(e=>i(e))),0))};t()||(0,h.loadNext)(e,e.o.beautifyHTMLCDNUrlsJS).then(t)}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}syncValueFromWYSIWYG(e=!1){const t=this.j;t.getMode()!==l.MODE_SPLIT&&t.getMode()!==l.MODE_SOURCE||this.fromWYSIWYG(e)}initSourceEditor(e){var t;if("area"!==e.o.sourceEditor){const t=no(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);t.onReadyAlways((()=>{var i,o;null===(i=this.sourceEditor)||void 0===i||i.destruct(),this.sourceEditor=t,this.syncValueFromWYSIWYG(!0),null===(o=e.events)||void 0===o||o.fire("sourceEditorReady",e)}))}else null===(t=this.sourceEditor)||void 0===t||t.onReadyAlways((()=>{var t;this.syncValueFromWYSIWYG(!0),null===(t=e.events)||void 0===t||t.fire("sourceEditorReady",e)}))}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),j.i.safeRemove(this.mirrorContainer)}}(0,r.gn)([(0,x.watch)(":insertHTML.source")],ro.prototype,"onInsertHTML",null),(0,r.gn)([x.autobind],ro.prototype,"fromWYSIWYG",null),(0,r.gn)([x.autobind],ro.prototype,"toWYSIWYG",null),(0,r.gn)([x.autobind],ro.prototype,"getNormalPosition",null),(0,r.gn)([(0,x.watch)(":beforeCommand.source")],ro.prototype,"onSelectAll",null),(0,r.gn)([(0,x.watch)(":beforeSetMode.source")],ro.prototype,"saveSelection",null),(0,r.gn)([(0,x.watch)(":afterSetMode.source")],ro.prototype,"removeSelection",null),(0,r.gn)([x.autobind],ro.prototype,"setMirrorSelectionRange",null),(0,r.gn)([(0,x.watch)(":readonly.source")],ro.prototype,"onReadonlyReact",null),(0,r.gn)([x.autobind],ro.prototype,"syncValueFromWYSIWYG",null),a.D.prototype.showCharsCounter=!0,a.D.prototype.countHTMLChars=!1,a.D.prototype.showWordsCounter=!0;class ao extends G{constructor(){super(...arguments),this.charCounter=null,this.wordCounter=null,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()},this.calc=this.j.async.throttle((()=>{const e=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){const t=this.j.o.countHTMLChars?this.j.value:e.replace((0,l.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,l.INVISIBLE_SPACE_REG_EXP)(),"").split((0,l.SPACE_REG_EXP)()).filter((e=>e.length)).length))}),this.j.defaultTimeout)}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(){j.i.safeRemove(this.charCounter),j.i.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}}a.D.prototype.toolbarSticky=!0,a.D.prototype.toolbarDisableStickyForMobile=!0,a.D.prototype.toolbarStickyOffset=0;class lo extends G{constructor(){super(...arguments),this.isToolbarSticked=!1,this.createDummy=e=>{},this.addSticky=e=>{this.isToolbarSticked||(this.createDummy(e),this.j.container.classList.add("jodit_sticky"),this.isToolbarSticked=!0),(0,h.css)(e,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2})},this.removeSticky=e=>{this.isToolbarSticked&&((0,h.css)(e,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.isToolbarSticked=!1)}}afterInit(e){e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.onScroll).on("getStickyState.sticky",(()=>this.isToolbarSticked))}onScroll(){const{jodit:e}=this,t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,i=(0,h.offset)(e.container,e,e.od,!0),o=e.getMode()===l.MODE_WYSIWYG&&t+e.o.toolbarStickyOffset>i.top&&i.top+i.height>t+e.o.toolbarStickyOffset&&!(e.o.toolbarDisableStickyForMobile&&this.isMobile());if(e.o.toolbarSticky&&!0===e.o.toolbar&&this.isToolbarSticked!==o){const t=e.toolbarContainer;t&&(o?this.addSticky(t):this.removeSticky(t)),e.e.fire("toggleSticky",o)}}isMobile(){return this.j&&this.j.options&&this.j.container&&this.j.o.sizeSM>=this.j.container.offsetWidth}beforeDestruct(e){this.dummyBox&&j.i.safeRemove(this.dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.onScroll).off(".sticky")}}(0,r.gn)([(0,x.throttle)()],lo.prototype,"onScroll",null),a.D.prototype.spellcheck=!1,a.D.prototype.controls.spellcheck={isActive(e){return e.o.spellcheck},icon:i(105),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellchecking"};class co extends G{constructor(){super(...arguments),this.buttons=[{group:"state",name:"spellcheck"}]}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,At.Lj)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(e){}}(0,r.gn)([x.autobind],co.prototype,"toggleSpellcheck",null),a.D.prototype.usePopupForSpecialCharacters=!1,a.D.prototype.specialCharacters=["!",""","#","$","%","&","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","€","‘","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","»","¬","®","¯","°","²","³","´","µ","¶","·","¸","¹","º","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ý","þ","ÿ","Œ","œ","Ŵ","Ŷ","ŵ","ŷ","‚","‛","„","…","™","►","•","→","⇒","⇔","♦","≈"],a.D.prototype.controls.symbol={icon:"omega",hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(e,t,i,o){const s=e.e.fire("generateSpecialCharactersTable.symbols");if(s){if(e.o.usePopupForSpecialCharacters){const t=e.c.div();return t.classList.add("jodit-symbols"),t.appendChild(s),e.e.on(s,"close_dialog",o),t}{W(s,e.i18n("Select Special Character"),void 0,"jodit-symbols").bindDestruct(e);const t=s.querySelector("a");t&&t.focus()}}}};class ho extends G{constructor(){super(...arguments),this.buttons=[{name:"symbol",group:"insert"}],this.countInRow=17}afterInit(e){e.e.on("generateSpecialCharactersTable.symbols",(()=>{const t=e.c.fromHTML('<div class="jodit-symbols__container">\n\t\t\t\t\t\t<div class="jodit-symbols__container_table">\n\t\t\t\t\t\t\t<table class="jodit-symbols__table"><tbody></tbody></table>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="jodit-symbols__container_preview">\n\t\t\t\t\t\t\t<div class="jodit-symbols__preview"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>'),i=t.querySelector(".jodit-symbols__preview"),o=t.querySelector("table").tBodies[0],s=[];for(let t=0;e.o.specialCharacters.length>t;){const i=e.c.element("tr");for(let o=0;this.countInRow>o&&e.o.specialCharacters.length>t;o+=1,t+=1){const n=e.c.element("td"),r=e.c.fromHTML(`<a\n\t\t\t\t\t\t\t\t\tdata-index="${t}"\n\t\t\t\t\t\t\t\t\tdata-index-j="${o}"\n\t\t\t\t\t\t\t\t\trole="option"\n\t\t\t\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\t\t>${e.o.specialCharacters[t]}</a>`);s.push(r),n.appendChild(r),i.appendChild(n)}o.appendChild(i)}const n=this;return e.e.on(s,"focus",(function(){i.innerHTML=this.innerHTML})).on(s,"mousedown",(function(t){j.i.isTag(this,"a")&&(e.s.focus(),e.s.insertHTML(this.innerHTML),e.e.fire(this,"close_dialog"),t&&t.preventDefault(),t&&t.stopImmediatePropagation())})).on(s,"mouseenter",(function(){j.i.isTag(this,"a")&&this.focus()})).on(s,"keydown",(t=>{const i=t.target;if(j.i.isTag(i,"a")){const o=parseInt((0,it.Lj)(i,"-index")||"0",10),r=parseInt((0,it.Lj)(i,"data-index-j")||"0",10);let a;switch(t.key){case l.KEY_UP:case l.KEY_DOWN:a=t.key===l.KEY_UP?o-n.countInRow:o+n.countInRow,void 0===s[a]&&(a=t.key===l.KEY_UP?Math.floor(s.length/n.countInRow)*n.countInRow+r:r,a>s.length-1&&(a-=n.countInRow)),s[a]&&s[a].focus();break;case l.KEY_RIGHT:case l.KEY_LEFT:a=t.key===l.KEY_LEFT?o-1:o+1,void 0===s[a]&&(a=t.key===l.KEY_LEFT?s.length-1:0),s[a]&&s[a].focus();break;case l.KEY_ENTER:e.e.fire(i,"mousedown"),t.stopImmediatePropagation(),t.preventDefault()}}})),t}))}beforeDestruct(e){e.e.off("generateSpecialCharactersTable.symbols")}}a.D.prototype.table={allowCellSelection:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",allowCellResize:!0,useExtraClassesOptions:!1},a.D.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup(e,t,i,o,s){const n=i.data&&i.data.rows?i.data.rows:10,r=i.data&&i.data.cols?i.data.cols:10,a=e.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+(()=>{if(!e.o.table.useExtraClassesOptions)return"";const t=[];if(i.data){const e=i.data.classList;Object.keys(e).forEach((i=>{t.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${i}" type="checkbox"/>${e[i]}</label>`)}))}return t.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> × <span>1</span></label></form>'),l=a.querySelectorAll("span")[0],c=a.querySelectorAll("span")[1],d=a.querySelector(".jodit-form__container"),u=a.querySelector(".jodit-form__options"),p=[],m=n*r;for(let t=0;m>t;t+=1)p[t]||p.push(e.c.element("span",{dataIndex:t}));if(e.e.on(d,"mousemove",((e,t)=>{const i=e.target;if(!j.i.isTag(i,"span"))return;const o=void 0===t||isNaN(t)?parseInt((0,it.Lj)(i,"-index")||"0",10):t||0,s=Math.ceil((o+1)/r),n=o%r+1;for(let e=0;p.length>e;e+=1)p[e].className=e%r+1>n||Math.ceil((e+1)/r)>s?"":"jodit_hovered";c.textContent=""+n,l.textContent=""+s})).on(d,"touchstart mousedown",(t=>{const i=t.target;if(t.preventDefault(),t.stopImmediatePropagation(),!j.i.isTag(i,"span"))return;const s=parseInt((0,it.Lj)(i,"-index")||"0",10),n=Math.ceil((s+1)/r),a=s%r+1,l=e.createInside,c=l.element("tbody"),d=l.element("table");d.appendChild(c),d.style.width="100%";let p,m,f=null;for(let e=1;n>=e;e+=1){p=l.element("tr");for(let e=1;a>=e;e+=1)m=l.element("td"),f||(f=m),(0,h.css)(m,"width",(100/a).toFixed(4)+"%"),m.appendChild(l.element("br")),p.appendChild(l.text("\n")),p.appendChild(l.text("\t")),p.appendChild(m);c.appendChild(l.text("\n")),c.appendChild(p)}const g=e.s.current();if(g&&e.s.isCollapsed()){const t=j.i.closest(g,j.i.isBlock,e.editor);t&&t!==e.editor&&!t.nodeName.match(/^TD|TH|TBODY|TABLE|THEADER|TFOOTER$/)&&e.s.setCursorAfter(t)}(0,h.$$)("input[type=checkbox]:checked",u).forEach((e=>{e.value.split(/[\s]+/).forEach((e=>{d.classList.add(e)}))})),e.s.insertNode(l.text("\n")),e.s.insertNode(d,!1),f&&(e.s.setCursorIn(f),(0,h.scrollIntoViewIfNeeded)(f,e.editor,e.ed)),o()})),s&&s.parentElement){for(let t=0;n>t;t+=1){const i=e.c.div();for(let e=0;r>e;e+=1)i.appendChild(p[t*r+e]);d.appendChild(i)}p[0]&&(p[0].className="hovered")}return a},tooltip:"Insert table"};const uo="table_processor_observer-resize";class po extends G{constructor(){super(...arguments),this.selectMode=!1,this.resizeDelta=0,this.createResizeHandle=()=>{this.resizeHandler||(this.resizeHandler=this.j.c.div("jodit-table-resizer"),this.j.e.on(this.resizeHandler,"mousedown.table touchstart.table",this.onHandleMouseDown).on(this.resizeHandler,"mouseenter.table",(()=>{this.j.async.clearTimeout(this.hideTimeout)})))},this.hideTimeout=0,this.drag=!1,this.minX=0,this.maxX=0,this.startX=0}get module(){return this.j.getInstance("Table",this.j.o)}get isRTL(){return"rtl"===this.j.o.direction}showResizeHandle(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}hideResizeHandle(){this.hideTimeout=this.j.async.setTimeout((()=>{j.i.safeRemove(this.resizeHandler)}),{timeout:this.j.defaultTimeout,label:"hideResizer"})}onHandleMouseDown(e){if(this.j.isLocked)return;this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=e.clientX,this.j.lock(uo),this.resizeHandler.classList.add("jodit-table-resizer_moved");let t,i=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)i=this.workTable.parentNode.getBoundingClientRect(),this.minX=i.left,this.maxX=this.minX+i.width;else{const e=Pe.formalCoordinate(this.workTable,this.workCell,!0);Pe.formalMatrix(this.workTable,((i,o,s)=>{e[1]===s&&(t=i.getBoundingClientRect(),this.minX=Math.max(t.left+l.NEARBY/2,this.minX)),e[1]+(this.isRTL?-1:1)===s&&(t=i.getBoundingClientRect(),this.maxX=Math.min(t.left+t.width-l.NEARBY/2,this.maxX))}))}return!1}onMouseMove(e){if(!this.drag)return;this.j.e.fire("closeAllPopups");let t=e.clientX;const i=(0,h.offset)(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);this.minX>t&&(t=this.minX),t>this.maxX&&(t=this.maxX),this.resizeDelta=t-this.startX+(this.j.o.iframe?i.left:0),this.resizeHandler.style.left=t-(this.j.o.iframe?0:i.left)+"px";const o=this.j.s.sel;o&&o.removeAllRanges()}onMouseUp(e){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==e.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}resizeColumns(){const e=this.resizeDelta,t=[];Pe.setColumnWidthByDelta(this.workTable,Pe.formalCoordinate(this.workTable,this.workCell,!0)[1],e,!0,t);const i=(0,h.call)(this.isRTL?j.i.prev:j.i.next,this.workCell,j.i.isCell,this.workCell.parentNode);Pe.setColumnWidthByDelta(this.workTable,Pe.formalCoordinate(this.workTable,i)[1],-e,!1,t)}resizeTable(){const e=this.resizeDelta*(this.isRTL?-1:1),t=this.workTable.offsetWidth,i=(0,h.getContentWidth)(this.workTable.parentNode,this.j.ew),o=!this.wholeTable;if(this.isRTL?!o:o)this.workTable.style.width=(t+e)/i*100+"%";else{const o=this.isRTL?"marginRight":"marginLeft",s=parseInt(this.j.ew.getComputedStyle(this.workTable)[o]||"0",10);this.workTable.style.width=(t-e)/i*100+"%",this.workTable.style[o]=(s+e)/i*100+"%"}}setWorkCell(e,t=null){this.wholeTable=t,this.workCell=e,this.workTable=j.i.up(e,(e=>j.i.isTag(e,"table")),this.j.editor)}calcHandlePosition(e,t,i=0,o=0){const s=(0,h.offset)(t,this.j,this.j.ed);if(i>l.NEARBY&&s.width-l.NEARBY>i)return void this.hideResizeHandle();const n=(0,h.offset)(this.j.workplace,this.j,this.j.od,!0),r=(0,h.offset)(e,this.j,this.j.ed);if(this.resizeHandler.style.left=(i>l.NEARBY?s.left+s.width:s.left)-n.left+o+"px",Object.assign(this.resizeHandler.style,{height:r.height+"px",top:r.top-n.top+"px"}),this.showResizeHandle(),i>l.NEARBY){const e=(0,h.call)(this.isRTL?j.i.prev:j.i.next,t,j.i.isCell,t.parentNode);this.setWorkCell(t,!!e&&null)}else{const e=(0,h.call)(this.isRTL?j.i.next:j.i.prev,t,j.i.isCell,t.parentNode);this.setWorkCell(e||t,!e||null)}}afterInit(e){e.o.table.allowCellResize&&e.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",(()=>{(0,h.$$)("table",e.editor).forEach(this.observe)})).on(this.j.ow,"scroll.resize-cells",(()=>{if(!this.drag)return;const t=j.i.up(this.workCell,(e=>j.i.isTag(e,"table")),e.editor);if(t){const e=t.getBoundingClientRect();this.resizeHandler.style.top=e.top+"px"}})).on("beforeSetMode.resize-cells",(()=>{this.module.getAllSelectedCells().forEach((t=>{this.module.removeSelection(t),Pe.normalizeTable(j.i.closest(t,"table",e.editor))}))}))}observe(e){(0,h.dataBind)(e,uo)||((0,h.dataBind)(e,uo,!0),this.j.e.on(e,"mouseleave.resize-cells",(e=>{this.resizeHandler&&this.resizeHandler!==e.relatedTarget&&this.hideResizeHandle()})).on(e,"mousemove.resize-cells touchmove.resize-cells",this.j.async.throttle((t=>{if(this.j.isLocked)return;const i=j.i.up(t.target,j.i.isCell,e);i&&this.calcHandlePosition(e,i,t.offsetX)}),{timeout:this.j.defaultTimeout})),this.createResizeHandle())}beforeDestruct(e){e.events&&(e.e.off(this.j.ow,".resize-cells"),e.e.off(".resize-cells"))}}(0,r.gn)([x.autobind],po.prototype,"onHandleMouseDown",null),(0,r.gn)([x.autobind],po.prototype,"onMouseMove",null),(0,r.gn)([x.autobind],po.prototype,"onMouseUp",null),(0,r.gn)([x.autobind],po.prototype,"observe",null);const mo="table_processor_observer",fo="onMoveTableSelectCell";class go extends G{constructor(){super(...arguments),this.requires=["select"],this.selectedCell=null,this.isSelectionMode=!1}get module(){return this.j.getInstance("Table",this.j.o)}afterInit(e){e.o.table.allowCellSelection&&e.e.on("keydown.select-cells",(e=>{e.key===l.KEY_TAB&&this.unselectCells()})).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map((e=>e+".select-cells")).join(" "),this.onStartSelection).on("clickTr clickTbody",(()=>{var e;const t=this.module.getAllSelectedCells().length;if(t)return t>1&&(null===(e=this.j.s.sel)||void 0===e||e.removeAllRanges()),!1}))}onStartSelection(e){if(this.j.o.readonly)return;if(this.unselectCells(),e===this.j.editor)return;const t=j.i.closest(e,"table",this.j.editor);return e&&t?(e.firstChild||e.appendChild(this.j.createInside.element("br")),this.isSelectionMode=!0,this.selectedCell=e,this.module.addSelection(e),this.j.e.on(t,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.onMove.bind(this,t),{label:fo,timeout:this.j.defaultTimeout/2})).on(t,"mouseup.select-cells touchend.select-cells",this.onStopSelection.bind(this,t)),!1):void 0}onOutsideClick(){this.selectedCell=null,this.onRemoveSelection()}onChange(){this.j.isLocked||this.isSelectionMode||this.onRemoveSelection()}onMove(e,t){var i;if(this.j.o.readonly&&!this.j.isLocked)return;if(this.j.isLockedNotBy(mo))return;const o=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(!o)return;const s=j.i.closest(o,["td","th"],e);if(!s||!this.selectedCell)return;s!==this.selectedCell&&this.j.lock(mo),this.unselectCells();const n=Pe.getSelectedBound(e,[s,this.selectedCell]),r=Pe.formalMatrix(e);for(let e=n[0][0];n[1][0]>=e;e+=1)for(let t=n[0][1];n[1][1]>=t;t+=1)this.module.addSelection(r[e][t]);this.module.getAllSelectedCells().length>1&&(null===(i=this.j.s.sel)||void 0===i||i.removeAllRanges()),this.j.e.fire("hidePopup"),t.stopPropagation(),(()=>{const e=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0"> </div>');s.appendChild(e),this.j.async.setTimeout((()=>{var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}),this.j.defaultTimeout/5)})()}onRemoveSelection(e){var t;if(!(null===(t=null==e?void 0:e.buffer)||void 0===t?void 0:t.actionTrigger)&&!this.selectedCell&&this.module.getAllSelectedCells().length)return this.j.unlock(),this.unselectCells(),void this.j.e.fire("hidePopup","cells");this.isSelectionMode=!1,this.selectedCell=null}onStopSelection(e,t){if(!this.selectedCell)return;this.isSelectionMode=!1,this.j.unlock();const i=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(!i)return;const o=j.i.closest(i,["td","th"],e);if(!o)return;const s=j.i.closest(o,"table",e);if(s&&s!==e)return;const n=Pe.getSelectedBound(e,[o,this.selectedCell]),r=Pe.formalMatrix(e),a=r[n[1][0]][n[1][1]],l=r[n[0][0]][n[0][1]];this.j.e.fire("showPopup",e,(()=>{const e=(0,h.position)(l,this.j),t=(0,h.position)(a,this.j);return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}}),"cells"),(0,h.$$)("table",this.j.editor).forEach((e=>{this.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")})),this.j.async.clearTimeout(fo)}unselectCells(e){const t=this.module,i=t.getAllSelectedCells();i.length&&i.forEach((i=>{e&&e===i||t.removeSelection(i)}))}onExecCommand(e){if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(e)){e=e.replace("table","");const t=this.module.getAllSelectedCells();if(t.length){const[i]=t;if(!i)return;const o=j.i.closest(i,"table",this.j.editor);if(!o)return;switch(e){case"splitv":Pe.splitVertical(o,this.j);break;case"splitg":Pe.splitHorizontal(o,this.j);break;case"merge":Pe.mergeSelected(o,this.j);break;case"empty":t.forEach((e=>j.i.detach(e)));break;case"bin":j.i.safeRemove(o);break;case"binrow":new Set(t.map((e=>e.parentNode))).forEach((e=>{Pe.removeRow(o,e.rowIndex)}));break;case"bincolumn":{const e=new Set;t.reduce(((t,i)=>(e.has(i.cellIndex)||(t.push(i),e.add(i.cellIndex)),t)),[]).forEach((e=>{Pe.removeColumn(o,e.cellIndex)}))}break;case"addcolumnafter":case"addcolumnbefore":Pe.appendColumn(o,i.cellIndex,"addcolumnafter"===e,this.j.createInside);break;case"addrowafter":case"addrowbefore":Pe.appendRow(o,i.parentNode,"addrowafter"===e,this.j.createInside)}}return!1}}onAfterCommand(e){/^justify/.test(e)&&this.module.getAllSelectedCells().forEach((t=>xi(e,t)))}beforeDestruct(e){this.onRemoveSelection(),e.e.off(".select-cells")}}function vo(e){e.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",(t=>{let i,o;if(t.key!==l.KEY_TAB&&t.key!==l.KEY_LEFT&&t.key!==l.KEY_RIGHT&&t.key!==l.KEY_UP&&t.key!==l.KEY_DOWN)return;{if(i=e.s.current(),o=j.i.up(i,(e=>e&&e.nodeName&&/^td|th$/i.test(e.nodeName)),e.editor),!o)return;const s=e.s.range;if(t.key!==l.KEY_TAB&&i!==o&&((t.key===l.KEY_LEFT||t.key===l.KEY_UP)&&(j.i.prev(i,(e=>t.key===l.KEY_UP?j.i.isTag(e,"br"):!!e),o)||t.key!==l.KEY_UP&&j.i.isText(i)&&0!==s.startOffset)||(t.key===l.KEY_RIGHT||t.key===l.KEY_DOWN)&&(j.i.next(i,(e=>t.key===l.KEY_DOWN?j.i.isTag(e,"br"):!!e),o)||t.key!==l.KEY_DOWN&&j.i.isText(i)&&i.nodeValue&&s.startOffset!==i.nodeValue.length)))return}const s=j.i.up(o,(e=>e&&/^table$/i.test(e.nodeName)),e.editor);let n=null;switch(t.key){case l.KEY_TAB:case l.KEY_LEFT:{const i=t.key===l.KEY_LEFT||t.shiftKey?"prev":"next";n=j.i[i](o,(e=>e&&/^td|th$/i.test(e.tagName)),s),n||(Pe.appendRow(s,"next"!==i&&s.querySelector("tr"),"next"===i,e.createInside),n=j.i[i](o,j.i.isCell,s));break}case l.KEY_UP:case l.KEY_DOWN:{let e=0,i=0;const r=Pe.formalMatrix(s,((t,s,n)=>{t===o&&(e=s,i=n)}));t.key===l.KEY_UP?void 0!==r[e-1]&&(n=r[e-1][i]):void 0!==r[e+1]&&(n=r[e+1][i])}}if(n){if(n.firstChild)t.key===l.KEY_TAB?e.s.select(n,!0):e.s.setCursorIn(n,t.key===l.KEY_RIGHT||t.key===l.KEY_DOWN);else{const t=e.createInside.element("br");n.appendChild(t),e.s.setCursorBefore(t)}return!1}}))}function bo(e){e.registerButton({name:"table",group:"insert"})}(0,r.gn)([x.autobind],go.prototype,"onStartSelection",null),(0,r.gn)([(0,x.watch)(":outsideClick")],go.prototype,"onOutsideClick",null),(0,r.gn)([(0,x.watch)(":change")],go.prototype,"onChange",null),(0,r.gn)([x.autobind],go.prototype,"onRemoveSelection",null),(0,r.gn)([x.autobind],go.prototype,"onStopSelection",null),(0,r.gn)([x.autobind],go.prototype,"onExecCommand",null),(0,r.gn)([x.autobind],go.prototype,"onAfterCommand",null);class yo extends G{constructor(){super(...arguments),this.isOpened=!1,this.delayShowTimeout=0}afterInit(e){this.container=e.c.div("jodit-tooltip"),(0,I.ZO)(this.j,yo).appendChild(this.container);let t=0;e.e.off(".tooltip").on("showTooltip.tooltip",((i,o)=>{e.async.clearTimeout(t),this.open(i,o)})).on("delayShowTooltip.tooltip",this.delayOpen).on("escape.tooltip",this.close).on("hideTooltip.tooltip change.tooltip scroll.tooltip changePlace.tooltip hidePopup.tooltip closeAllPopups.tooltip",(()=>{this.j.async.clearTimeout(this.delayShowTimeout),t=e.async.setTimeout(this.close,this.j.defaultTimeout)}))}delayOpen(e,t){const i=this.j.o.showTooltipDelay||this.j.defaultTimeout;this.j.async.clearTimeout(this.delayShowTimeout),this.delayShowTimeout=this.j.async.setTimeout((()=>this.open(e,t)),{timeout:i,label:"tooltip"})}open(e,t){this.container.classList.add("jodit-tooltip_visible"),this.container.innerHTML=t,this.isOpened=!0,this.setPosition(e)}setPosition(e){const t=e();(0,h.css)(this.container,{left:t.x,top:t.y})}close(){this.j.async.clearTimeout(this.delayShowTimeout),this.isOpened&&(this.isOpened=!1,this.container.classList.remove("jodit-tooltip_visible"),(0,h.css)(this.container,{left:-5e3}))}beforeDestruct(e){null==e||e.e.off(".tooltip"),this.close(),j.i.safeRemove(this.container)}}(0,r.gn)([x.autobind],yo.prototype,"delayOpen",null),(0,r.gn)([x.autobind],yo.prototype,"close",null),a.D.prototype.tab={tabInsideLiInsertNewList:!0};class wo extends G{afterInit(e){}onTab(e){if(e.key===l.KEY_TAB&&(e=>{if(!e.o.tab.tabInsideLiInsertNewList||!e.s.isCollapsed())return!1;const t=e.createInside.fake();e.s.insertNode(t);const i=j.i.closest(t,"li",e.editor);if(i&&e.s.cursorOnTheLeft(i)&&j.i.isTag(i.previousElementSibling,"li")){const o=j.i.closest(i,["ol","ul"],e.editor);if(o){const s=e.createInside.element(o.tagName),n=i.previousElementSibling;return s.appendChild(i),n.appendChild(s),e.s.setCursorAfter(t),j.i.safeRemove(t),!0}}return j.i.safeRemove(t),!1})(this.j))return!1}beforeDestruct(e){}}function ko(e){e.registerButton({name:"preview"}),e.registerCommand("preview",((t,i,o)=>{const s=new V({language:e.o.language,theme:e.o.theme});s.setSize(1024,600).open("",e.i18n("Preview")).setModal(!0),((e,t,i="px",o=null)=>{const s=((e,t)=>{const i=[];try{(0,h.$$)("img",e.editor).forEach((o=>{const s=[(0,h.attr)(o,"width"),(0,h.attr)(o,"height"),o.src];(0,h.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});const n=e.createInside.a();e.ed.body.appendChild(n),n.href=o.src,o.src=n.href,j.i.safeRemove(n),i.push((()=>{var e;o.src=null!==(e=s[2])&&void 0!==e?e:"",(0,h.attr)(o,{width:s[0]||null,height:s[1]||null})}))}))}catch(e){throw i.forEach((e=>e())),i.length=0,e}return i})(e,i);try{const n=e.e.fire("beforePreviewBox",t,i);if(null!=n)return n;let r=e.c.div("jodit__preview-box");o&&o.appendChild(r),(0,h.css)(r,{position:"relative",padding:16});const a=e.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${e.i18n("Empty")}</div>`;if(e.iframe){const t=e.create.element("iframe");(0,h.css)(t,{minWidth:800,minHeight:600,border:0}),r.appendChild(t);const i=t.contentWindow;if(i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),r=i.document.body,"function"==typeof ResizeObserver)){const o=new ResizeObserver((e=>{t.style.height=i.document.body.offsetHeight+20+"px"}));o.observe(i.document.body),e.e.on("beforeDestruct",(()=>{o.unobserve(i.document.body)}))}}else(0,h.css)(r,{minWidth:1024,minHeight:600,border:0});const l=(t,i)=>{const o=(0,h.isString)(i)?e.c.div():i;(0,h.isString)(i)&&(o.innerHTML=i);for(let e=0;o.childNodes.length>e;e+=1){const i=o.childNodes[e];if(j.i.isElement(i)){const e=t.ownerDocument.createElement(i.nodeName);for(let t=0;i.attributes.length>t;t+=1)(0,h.attr)(e,i.attributes[t].nodeName,i.attributes[t].nodeValue);0===i.childNodes.length||j.i.isTag(i,["table"])?"SCRIPT"===i.nodeName?i.textContent&&(e.textContent=i.textContent):i.innerHTML&&(e.innerHTML=i.innerHTML):l(e,i);try{t.appendChild(e)}catch(e){}}else try{t.appendChild(i.cloneNode(!0))}catch(e){}}};l(r,a),e.e.fire("afterPreviewBox",r)}finally{s.forEach((e=>e()))}})(e,o,"px",s.getElm("content"))}))}function Co(e){e.registerButton({name:"print"})}(0,r.gn)([(0,x.watch)(":keydown.tab")],wo.prototype,"onTab",null),a.D.prototype.controls.preview={icon:"eye",command:"preview",mode:l.MODE_SOURCE+l.MODE_WYSIWYG,tooltip:"Preview"},a.D.prototype.controls.print={exec(e){const t=e.create.element("iframe");Object.assign(t.style,{position:"fixed",right:0,bottom:0,width:0,height:0,border:0}),(0,I.ZO)(e,a.D).appendChild(t);const i=()=>{e.e.off(e.ow,"mousemove",i),j.i.safeRemove(t)},o=t.contentWindow;if(o){e.e.on(o,"onbeforeunload onafterprint",i).on(e.ow,"mousemove",i),e.o.iframe?(e.e.fire("generateDocumentStructure.iframe",o.document,e),o.document.body.innerHTML=e.value):(o.document.write('<!doctype html><html lang="'+(0,h.defaultLanguage)(e.o.language)+'"><head><title></title></head><body>'+e.value+"</body></html>"),o.document.close());const t=o.document.createElement("style");t.innerHTML="@media print {\n\t\t\t\t\tbody {\n\t\t\t\t\t\t\t-webkit-print-color-adjust: exact;\n\t\t\t\t\t}\n\t\t\t}",o.document.head.appendChild(t),o.focus(),o.print()}},mode:l.MODE_SOURCE+l.MODE_WYSIWYG,tooltip:"Print"},a.D.prototype.showXPathInStatusbar=!0;class So extends G{constructor(){super(...arguments),this.onContext=(e,t)=>(this.menu||(this.menu=new y(this.j)),this.menu.show(t.clientX,t.clientY,[{icon:"bin",title:e===this.j.editor?"Clear":"Remove",exec:()=>{e!==this.j.editor?j.i.safeRemove(e):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(e)}}]),!1),this.onSelectPath=(e,t)=>{this.j.s.focus();const i=(0,h.attr)(t.target,"-path")||"/";if("/"===i)return this.j.execCommand("selectall"),!1;try{const e=this.j.ed.evaluate(i,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(e)return this.j.s.select(e),!1}catch(e){}return this.j.s.select(e),!1},this.tpl=(e,t,i,o)=>{const s=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${t}" title="${o}" tabindex="-1"'>${(0,h.trim)(i)}</a></span>`),n=s.firstChild;return this.j.e.on(n,"click",this.onSelectPath.bind(this,e)).on(n,"contextmenu",this.onContext.bind(this,e)),s},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=H(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)},this.calcPathImd=()=>{if(this.isDestructed)return;const e=this.j.s.current();if(this.container&&(this.container.innerHTML=l.INVISIBLE_SPACE),e){let t,i,o;j.i.up(e,(e=>{e&&this.j.editor!==e&&!j.i.isText(e)&&(t=e.nodeName.toLowerCase(),i=(0,h.getXPathByElement)(e,this.j.editor).replace(/^\//,""),o=this.tpl(e,i,t,this.j.i18n("Select %s",t)),this.container&&this.container.insertBefore(o,this.container.firstChild))}),this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout)}afterInit(){this.j.o.showXPathInStatusbar&&(this.container=this.j.c.div("jodit-xpath"),this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",(()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===l.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=l.INVISIBLE_SPACE),this.appendSelectAll()))})),this.calcPath())}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),j.i.safeRemove(this.container),delete this.menu,delete this.container}}var Eo=i(106),Io=i(107),xo=i(108),zo=i(109),To=i(110),jo=i(111),Lo=i(112),Ao=i(113),Mo=i(114),Do=i(115),Po=i(116),_o=i(117),Ro=i(118),qo=i(119),No=i(120),Bo=i(121),Ho=i(122),Oo=i(123),Fo=i(124),Vo=i(125),Wo=i(126),Uo=i(127),$o=i(128),Yo=i(129),Go=i(130),Ko=i(131),Jo=i(132),Xo=i(133),Zo=i(134),Qo=i(135),es=i(136),ts=i(137),is=i(138),os=i(139),ss=i(140),ns=i(141),rs=i(142),as=i(143),ls=i(144),cs=i(145),ds=i(146),hs=i(147),us=i(148),ps=i(149),ms=i(150),fs=i(151),gs=i(152),vs=i(153),bs=i(154),ys=i(155),ws=i(156),ks=i(157),Cs=i(158),Ss=i(159),Es=i(160),Is=i(161),xs=i(162),zs=i(163),Ts=i(164),js=i(165),Ls=i(166),As=i(167),Ms=i(168),Ds=i(169),Ps=i(170),_s=i(171),Rs=i(172),qs=i(173),Ns=i(174),Bs=i(175),Hs=i(176),Os=i(177),Fs=i(178),Vs=i(179),Ws=i(180),Us=i(181),$s=i(182),Ys=i(183),Gs=i(184),Ks=i(185),Js=i(186),Xs=i(187),Zs=i(188);Object.keys(l).forEach((e=>{Jodit[e]=l[e]}));const Qs=e=>"__esModule"!==e;Object.keys(n).filter(Qs).forEach((e=>{L.JO.set(e.replace("_","-"),n[e])})),Object.keys(e).filter(Qs).forEach((t=>{Jodit.modules[t]=e[t]})),Object.keys(x).filter(Qs).forEach((e=>{Jodit.decorators[e]=x[e]})),["Confirm","Alert","Prompt"].forEach((t=>{Jodit[t]=e[t]})),Object.keys(s).filter(Qs).forEach((e=>{Jodit.plugins.add(e,s[e])})),Object.keys(Je).filter(Qs).forEach((e=>{Jodit.lang[e]=Je[e]}))}(),o}()}));
|
|
1
|
+
((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var o in i)("object"==typeof exports?exports:e)[o]=i[o]}})(self,(function(){return function(){var e=[,function(e,t,i){"use strict";i.d(t,{D:()=>s});var o=i(2);class s{constructor(){this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.safePluginsList=["about","enter","backspace"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument="undefined"!=typeof document?document:null,this.ownerWindow="undefined"!=typeof window?window:null,this.shadowRoot=null,this.styleValues={},this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.editorCssClass=!1,this.style=!1,this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=1e3,this.useNativeTooltip=!1,this.enter=o.PARAGRAPH,this.enterBlock="br"!==this.enter?this.enter:o.PARAGRAPH,this.defaultMode=o.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.buttonsMD=["bold","italic","|","ul","ol","eraser","|","font","fontsize","---","image","table","|","link","\n","brush","paragraph","align","|","hr","copyformat","fullsize","---","undo","redo","|","dots"],this.buttonsSM=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"],this.buttonsXS=["bold","brush","paragraph","eraser","|","fontsize","---","image","\n","align","undo","redo","|","link","table","---","dots"],this.events={},this.textIcons=!1,this.showBrowserColorPicker=!0}static get defaultOptions(){return s.__defaultOptions||(s.__defaultOptions=new s),s.__defaultOptions}}s.prototype.controls={}},(e,t,i)=>{"use strict";i.r(t),i.d(t,{ACCURACY:()=>z,BASE_PATH:()=>$,BR:()=>j,COMMAND_KEYS:()=>T,EMULATE_DBLCLICK_TIMEOUT:()=>B,INSEPARABLE_TAGS:()=>p,INSERT_AS_HTML:()=>H,INSERT_AS_TEXT:()=>F,INSERT_CLEAR_HTML:()=>O,INSERT_ONLY_TEXT:()=>W,INVISIBLE_SPACE:()=>o,INVISIBLE_SPACE_REG_EXP:()=>n,INVISIBLE_SPACE_REG_EXP_END:()=>r,INVISIBLE_SPACE_REG_EXP_START:()=>a,IS_BLOCK:()=>h,IS_IE:()=>P,IS_INLINE:()=>u,IS_MAC:()=>U,KEY_ALIASES:()=>Y,KEY_BACKSPACE:()=>f,KEY_DELETE:()=>E,KEY_DOWN:()=>k,KEY_ENTER:()=>v,KEY_ESC:()=>b,KEY_F3:()=>I,KEY_LEFT:()=>y,KEY_RIGHT:()=>C,KEY_SPACE:()=>S,KEY_TAB:()=>g,KEY_UP:()=>w,MARKER_CLASS:()=>q,MAY_BE_REMOVED_WITH_KEY:()=>m,MODE_SOURCE:()=>M,MODE_SPLIT:()=>D,MODE_WYSIWYG:()=>A,NBSP_SPACE:()=>s,NEARBY:()=>x,PARAGRAPH:()=>L,SAFE_COUNT_CHANGE_CALL:()=>V,SPACE_REG_EXP:()=>l,SPACE_REG_EXP_END:()=>d,SPACE_REG_EXP_START:()=>c,TEMP_ATTR:()=>G,TEXT_HTML:()=>R,TEXT_PLAIN:()=>_,TEXT_RTF:()=>N,lang:()=>K});const o="\ufeff",s=" ",n=()=>/[\uFEFF]/g,r=()=>/[\uFEFF]+$/g,a=()=>/^[\uFEFF]+/g,l=()=>/[\s\n\t\r\uFEFF\u200b]+/g,c=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,d=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,h=/^(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,u=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,p=["img","br","video","iframe","script","input","textarea","hr","link","jodit","jodit-media"],m=RegExp(`^${p.join("|")}$`,"i"),f="Backspace",g="Tab",v="Enter",b="Escape",y="ArrowLeft",w="ArrowUp",C="ArrowRight",k="ArrowDown",S="Space",E="Delete",I="F3",x=5,z=10,T=[f,E,w,k,C,y,v,b,I,g],j="br",L="p",A=1,M=2,D=3,P="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),_=P?"text":"text/plain",R=P?"html":"text/html",N=P?"rtf":"text/rtf",q="jodit-selection_marker",B=300,H="insert_as_html",O="insert_clear_html",F="insert_as_text",W="insert_only_text",V=10,U="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Y={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:U?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},$=(()=>{if("undefined"==typeof document)return"";const e=document.currentScript,t=e=>{const t=e.split("/");return/\.js/.test(t[t.length-1])?t.slice(0,t.length-1).join("/")+"/":e};if(e)return t(e.src);const i=document.querySelectorAll("script[src]");return i&&i.length?t(i[i.length-1].src):window.location.href})(),G="data-jodit-temp",K={}},function(e,t,i){"use strict";i.d(t,{vp:()=>u,DG:()=>r,aN:()=>p.a,rO:()=>n,LO:()=>m.L});var o=i(4),s=i(5);const n="JoditEventDefaultNamespace";class r{constructor(){this.__store=new Map}get(e,t){if(this.__store.has(t)){const i=this.__store.get(t);return(0,o.h)(i,"-"),i[e]}}indexOf(e,t,i){const o=this.get(e,t);if(o)for(let e=0;o.length>e;e+=1)if(o[e].originalCallback===i)return e;return!1}namespaces(e=!1){const t=(0,s.q)(this.__store.keys());return e?t.filter((e=>e!==n)):t}events(e){const t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,o=!1){let s=this.__store.get(t);s||(s={},this.__store.set(t,s)),void 0===s[e]&&(s[e]=[]),o?s[e].unshift(i):s[e].push(i)}clear(){this.__store.clear()}clearEvents(e,t){const i=this.__store.get(e);i&&i[t]&&(delete i[t],Object.keys(i).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}}var a=i(8),l=i(11),c=i(9),d=i(13),h=i(14);class u{constructor(e){this.mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.doc=document,this.prepareEvent=e=>{e.cancelBubble||(e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach((t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})})),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.isDestructed=!1,e&&(this.doc=e),this.__key+=(new Date).getTime()}mute(e){return this.mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!(!e||!this.mutedEvents.has(e))||this.mutedEvents.has("*")}unmute(e){return this.mutedEvents.delete(null!=e?e:"*"),this}eachEvent(e,t){(0,h.C)(e).map((e=>e.trim())).forEach((e=>{const i=e.split(".");t.call(this,i[0],i[1]||n)}))}getStore(e){if(!e)throw(0,d.vU)("Need subject");if(void 0===e[this.__key]){const t=new r;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){const i=this.doc.createEvent("HTMLEvents");(0,a.H)(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,o){let s,n,r,h;if((0,a.H)(e)||(0,a.G)(e)?(s=this,n=e,r=t,h=i):(s=e,n=t,r=i,h=o),!(0,a.H)(n)&&!(0,a.G)(n)||0===n.length)throw(0,d.vU)("Need events names");if(!(0,l.m)(r))throw(0,d.vU)("Need event handler");if((0,c.k)(s))return s.forEach((e=>{this.on(e,n,r,h)})),this;const u=s,p=this.getStore(u),m=(0,l.m)(u.addEventListener),f=this;let g=function(e,...t){if(!f.isMuted(e))return r&&r.call(this,...t)};return m&&(g=function(e){if(!f.isMuted(e.type))return f.prepareEvent(e),r&&!1===r.call(this,e)?(e.preventDefault(),e.stopImmediatePropagation(),!1):void 0}),this.eachEvent(n,((e,t)=>{if(0===e.length)throw(0,d.vU)("Need event name");if(!1===p.indexOf(e,t,r)&&(p.set(e,t,{event:e,originalCallback:r,syntheticCallback:g},null==h?void 0:h.top),m)){const t=!!["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"].includes(e)&&{passive:!0};u.addEventListener(e,g,t)}})),this}one(e,t,i,o){let s,n,r,l;(0,a.H)(e)||(0,a.G)(e)?(s=this,n=e,r=t,l=i):(s=e,n=t,r=i,l=o);const c=(...e)=>(this.off(s,n,c),r(...e));return this.on(s,n,c,l),this}off(e,t,i){let o,s,r;if((0,a.H)(e)||(0,a.G)(e)?(o=this,s=e,r=t):(o=e,s=t,r=i),(0,c.k)(o))return o.forEach((e=>{this.off(e,s,r)})),this;const d=o,h=this.getStore(d);if(!(0,a.H)(s)&&!(0,a.G)(s)||0===s.length)return h.namespaces().forEach((e=>{this.off(d,"."+e)})),this.removeStoreFromSubject(d),this;const u=(0,l.m)(d.removeEventListener),p=e=>{u&&d.removeEventListener(e.event,e.syntheticCallback,!1)},m=(e,t)=>{if(""===e)return void h.events(t).forEach((e=>{""!==e&&m(e,t)}));const i=h.get(e,t);if(i&&i.length)if((0,l.m)(r)){const o=h.indexOf(e,t,r);!1!==o&&(p(i[o]),i.splice(o,1),i.length||h.clearEvents(t,e))}else i.forEach(p),i.length=0,h.clearEvents(t,e)};return this.eachEvent(s,((e,t)=>{t===n?h.namespaces().forEach((t=>{m(e,t)})):m(e,t)})),h.isEmpty()&&this.removeStoreFromSubject(d),this}stopPropagation(e,t){const i=(0,a.H)(e)?this:e,o=(0,a.H)(e)?e:t;if("string"!=typeof o)throw(0,d.vU)("Need event names");const s=this.getStore(i);this.eachEvent(o,((e,t)=>{const o=s.get(e,t);o&&this.__stopped.push(o),t===n&&s.namespaces(!0).forEach((t=>this.stopPropagation(i,e+"."+t)))}))}removeStop(e){if(e){const t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...i){let o,s;const r=(0,a.H)(e)?this:e,c=(0,a.H)(e)?e:t,h=(0,a.H)(e)?[t,...i]:i,u=(0,l.m)(r.dispatchEvent);if(!u&&!(0,a.H)(c))throw(0,d.vU)("Need events names");const p=this.getStore(r);return!(0,a.H)(c)&&u?this.triggerNativeEvent(r,t):this.eachEvent(c,((e,t)=>{if(u)this.triggerNativeEvent(r,e);else{const i=p.get(e,t);if(i)try{[...i].every((t=>!this.isStopped(i)&&(this.currents.push(e),s=t.syntheticCallback.call(r,e,...h),this.currents.pop(),void 0!==s&&(o=s),!0)))}finally{this.removeStop(i)}t!==n||u||p.namespaces().filter((e=>e!==t)).forEach((t=>{const i=this.fire.call(this,r,e+"."+t,...h);void 0!==i&&(o=i)}))}})),o}destruct(){this.isDestructed&&(this.isDestructed=!0,this.off(this),this.getStore(this).clear(),this.removeStoreFromSubject(this))}}var p=i(15),m=i(16)},function(e,t,i){"use strict";i.d(t,{h:()=>s});class o extends Error{constructor(e){super(e),this.name="AssertionError"}}function s(e,t){if(!e)throw new o("Assertion failed: "+t)}},(e,t,i)=>{"use strict";i.d(t,{q:()=>n});var o=i(6),s=i(12);const n=(...e)=>{var t;return((0,s.Q)(Array.from)?Array.from:null!==(t=(0,o.m)("Array.from"))&&void 0!==t?t:Array.from).apply(Array,e)}},(e,t,i)=>{"use strict";i.d(t,{m:()=>r});var o=i(7),s=i(11);const n={},r=e=>{var t,i;if(!(e in n)){const i=document.createElement("iframe");try{if(i.src="about:blank",document.body.appendChild(i),!i.contentWindow)return null;const r=(0,o.U)(e,i.contentWindow),a=(0,o.U)(e.split(".").slice(0,-1).join("."),i.contentWindow);(0,s.m)(r)&&(n[e]=r.bind(a))}catch(e){}finally{null===(t=i.parentNode)||void 0===t||t.removeChild(i)}}return null!==(i=n[e])&&void 0!==i?i:null}},(e,t,i)=>{"use strict";i.d(t,{U:()=>n});var o=i(8),s=i(10);function n(e,t){if(!(0,o.H)(e)||!e.length)return null;const i=e.split(".");let n=t;try{for(const e of i){if((0,s.n)(n[e]))return null;n=n[e]}}catch(e){return null}return(0,s.n)(n)?null:n}},(e,t,i)=>{"use strict";i.d(t,{G:()=>n,H:()=>s});var o=i(9);function s(e){return"string"==typeof e}function n(e){return(0,o.k)(e)&&s(e[0])}},(e,t,i)=>{"use strict";function o(e){return Array.isArray(e)}i.d(t,{k:()=>o})},(e,t,i)=>{"use strict";function o(e){return null==e}i.d(t,{n:()=>o})},(e,t,i)=>{"use strict";function o(e){return"function"==typeof e}i.d(t,{m:()=>o})},(e,t,i)=>{"use strict";function o(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(e+""))}i.d(t,{Q:()=>o})},function(e,t,i){"use strict";i.d(t,{_L:()=>o,hY:()=>s,tW:()=>n,JG:()=>c,ZI:()=>a,vU:()=>r,PQ:()=>d,YM:()=>l});class o extends Error{constructor(e){super(e),Object.setPrototypeOf(this,o.prototype)}}class s extends Error{constructor(e){super(e),Object.setPrototypeOf(this,s.prototype)}}class n extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}function r(e){return new TypeError(e)}function a(e){return new s(e)}function l(e){return new n(e)}function c(e){return new o(e)}function d(e){return e instanceof o}},(e,t,i)=>{"use strict";function o(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}i.d(t,{C:()=>o})},function(e,t,i){"use strict";i.d(t,{a:()=>o});class o{constructor(){this.map=new Map}on(e,t){var i;return this.map.has(e)||this.map.set(e,new Set),null===(i=this.map.get(e))||void 0===i||i.add(t),this}off(e,t){var i;return this.map.has(e)&&(null===(i=this.map.get(e))||void 0===i||i.delete(t)),this}emit(e,...t){var i;let o;return this.map.has(e)&&(null===(i=this.map.get(e))||void 0===i||i.forEach((e=>{o=e(...t)}))),o}}},(e,t,i)=>{"use strict";i.d(t,{L:()=>c});var o=i(9),s=i(22),n=i(20),r=i(17);const a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;const t={},i={},c=(t,s)=>(0,o.k)(t)?(t.map((e=>c(e,s))),e):(i[t]||(i[t]=[]),i[t].push(s),e),d=(s,...n)=>{if((0,o.k)(s))s.map((e=>d(e,...n)));else try{!t[s]&&i[s]&&(t[s]=!0,i[s].forEach((t=>t.call(e,...n))))}finally{t[s]=!1}},h=(t,i=[])=>{const o={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach((a=>{const l=a,c=i.concat(l).filter((e=>e.length));o[l]=t[l];const u=(0,r.w7)(t,l);Object.defineProperty(t,l,{set(t){const i=o[l];if(!(0,s.L)(o[l],t)){d(["beforeChange","beforeChange."+c.join(".")],l,t),(0,n.P)(t)&&h(t,c),u&&u.set?u.set.call(e,t):o[l]=t;const s=[];d(["change",...c.reduce(((e,t)=>(s.push(t),e.push("change."+s.join(".")),e)),[])],c.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>u&&u.get?u.get.call(e):o[l],enumerable:!0,configurable:!0}),(0,n.P)(o[l])&&h(o[l],c)})),Object.defineProperty(e,"on",{value:c}))};return h(e),e}},(e,t,i)=>{"use strict";i.d(t,{YP:()=>h,w7:()=>d});var o=i(11),s=i(20),n=i(19),r=i(16),a=i(18),l=i(14),c=i(13);function d(e,t){let i;do{i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e)}while(!i&&e);return i}function h(e,t){return(i,h)=>{if(!(0,o.m)(i[h]))throw(0,c.vU)("Handler must be a Function");const u=a=>{const c=(e,...t)=>{if(!a.isInDestruct)return a[h](e,...t)};(0,l.C)(e).forEach((e=>{if(/:/.test(e)){const[i,s]=e.split(":");let r=t;const l=(0,n.f)(a)?a:a.jodit;return i.length&&(r=a.get(i)),(0,o.m)(r)&&(r=r(a)),l.events.on(r||a,s,c),r||l.events.on(s,c),void a.hookStatus("beforeDestruct",(()=>{l.events.off(r||a,s,c).off(s,c)}))}const l=e.split("."),[h]=l,u=l.slice(1);let p=a[h];(0,s.P)(p)&&(0,r.L)(p).on("change."+u.join("."),c);const m=d(i,h);Object.defineProperty(a,h,{configurable:!0,set(e){const t=p;t!==e&&(p=e,m&&m.set&&m.set.call(a,e),(0,s.P)(p)&&(p=(0,r.L)(p),p.on("change."+u.join("."),c)),c(h,t,p))},get(){return m&&m.get?m.get.call(a):p}})}))};(0,o.m)(i.hookStatus)?i.hookStatus(a.n.ready,u):u(i)}}},(e,t,i)=>{"use strict";i.d(t,{n:()=>o});const o={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},(e,t,i)=>{"use strict";i.d(t,{f:()=>s});var o=i(11);function s(e){return!!(e&&e instanceof Object&&(0,o.m)(e.constructor)&&e.isView)}},(e,t,i)=>{"use strict";i.d(t,{P:()=>s});var o=i(21);function s(e){return!(!e||"object"!=typeof e||e.nodeType||(0,o.F)(e)||e.constructor&&!{}.hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},(e,t,i)=>{"use strict";function o(e){return null!=e&&e===e.window}i.d(t,{F:()=>o})},(e,t,i)=>{"use strict";i.d(t,{L:()=>n,X:()=>s});var o=i(23);function s(e,t){return e===t||(0,o.P)(e)===(0,o.P)(t)}function n(e,t){return e===t}},(e,t,i)=>{"use strict";function o(e,t={}){if("object"!=typeof e)return e+"";const i=new Set(t.excludeKeys),o=new WeakMap;return JSON.stringify(e,((e,t)=>{if(!i.has(e)){if("object"==typeof t&&null!=t){if(o.get(t))return"[refObject]";o.set(t,!0)}return t}}),t.prettify)}i.d(t,{P:()=>o})},function(e,t,i){"use strict";i.d(t,{e:()=>c});var o=i(26),s=i(11),n=i(20),r=i(27),a=i(8),l=i(25);class c{constructor(){var e,t,i,o;this.timers=new Map,this.promisesRejections=new Set,this.requestsIdle=new Set,this.requestsRaf=new Set,this.requestIdleCallbackNative=null!==(t=null===(e=window.requestIdleCallback)||void 0===e?void 0:e.bind(window))&&void 0!==t?t:(e,t)=>{var i;const o=Date.now();return this.setTimeout((()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})}),null!==(i=null==t?void 0:t.timeout)&&void 0!==i?i:1)},this.cancelIdleCallbackNative=null!==(o=null===(i=window.cancelIdleCallback)||void 0===i?void 0:i.bind(window))&&void 0!==o?o:e=>{this.clearTimeout(e)},this.isDestructed=!1}delay(e){return this.promise((t=>this.setTimeout(t,e)))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let s={};(0,l.h)(t)||(s=t,t=s.timeout||0),s.label&&this.clearLabel(s.label);const n=(0,o.i)(e,t,...i);return this.timers.set(s.label||n,n),n}clearLabel(e){e&&this.timers.has(e)&&((0,o.g)(this.timers.get(e)),this.timers.delete(e))}clearTimeout(e){if((0,a.H)(e))return this.clearLabel(e);(0,o.g)(e),this.timers.delete(e)}debounce(e,t,i=!1){let a=0,l=!1;const c=[],d=(...t)=>{if(!l){a=0;const i=e(...t);if(l=!0,c.length){const e=()=>{c.forEach((e=>e())),c.length=0};(0,r.t)(i)?i.finally(e):e()}}},h=(...n)=>{l=!1,t?(!a&&i&&d(...n),(0,o.g)(a),a=this.setTimeout((()=>d(...n)),(0,s.m)(t)?t():t),this.timers.set(e,a)):d(...n)};return(0,n.P)(t)&&t.promisify?(...e)=>{const t=this.promise((e=>{c.push(e)}));return h(...e),t}:h}throttle(e,t,i=!1){let o,n,r,a=null;return(...i)=>{o=!0,r=i,t?a||(n=()=>{o?(e(...r),o=!1,a=this.setTimeout(n,(0,s.m)(t)?t():t),this.timers.set(n,a)):a=null},n()):e(...r)}}promise(e){let t=()=>{};const i=new Promise(((i,o)=>(this.promisesRejections.add(o),t=o,e(i,o))));return i.finally((()=>{this.promisesRejections.delete(t)})).catch((()=>null)),i.rejectCallback=t,i}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise((t=>{e.then((e=>(t("fulfilled"),e)),(e=>{throw t("rejected"),e})),this.setTimeout((()=>{t("pending")}),100)}));const t={};return Promise.race([e,t]).then((e=>e===t?"pending":"fulfilled"),(()=>"rejected"))}requestIdleCallback(e,t){const i=this.requestIdleCallbackNative(e,t);return this.requestsIdle.add(i),i}requestIdlePromise(e){return this.promise((t=>{const i=this.requestIdleCallback((()=>t(i)),e)}))}cancelIdleCallback(e){return this.requestsIdle.delete(e),this.cancelIdleCallbackNative(e)}requestAnimationFrame(e){const t=requestAnimationFrame(e);return this.requestsRaf.add(t),t}cancelAnimationFrame(e){this.requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.requestsIdle.forEach((e=>this.cancelIdleCallback(e))),this.requestsRaf.forEach((e=>this.cancelAnimationFrame(e))),this.timers.forEach((e=>(0,o.g)(this.timers.get(e)))),this.timers.clear(),this.promisesRejections.forEach((e=>e())),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}}},(e,t,i)=>{"use strict";function o(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}i.d(t,{h:()=>o})},(e,t,i)=>{"use strict";function o(e,t,...i){return t?window.setTimeout(e,t,...i):(e.call(null,...i),0)}function s(e){window.clearTimeout(e)}i.d(t,{g:()=>s,i:()=>o})},(e,t,i)=>{"use strict";function o(e){return e&&"function"==typeof e.then}i.d(t,{t:()=>o})},(e,t,i)=>{"use strict";i.r(t),i.d(t,{$$:()=>o.$$,AbortError:()=>o._L,CamelCaseToKebabCase:()=>j.gP,ConfigFlatten:()=>o.tp,ConfigProto:()=>o.II,ConnectionError:()=>o.hY,LimitedStack:()=>o.lI,OptionsError:()=>o.tW,abort:()=>o.JG,appendScript:()=>o.uR,appendScriptAsync:()=>o.JL,appendStyleAsync:()=>o.Nf,applyStyles:()=>m,asArray:()=>n,assert:()=>o.hu,attr:()=>o.Lj,browser:()=>o.Xh,buildQuery:()=>o.XP,call:()=>o.RE,callPromise:()=>o.C6,camelCase:()=>j.eV,cleanFromWord:()=>f,clearCenterAlign:()=>o.bI,clearTimeout:()=>l.g,cns:()=>o.H5,colorToHex:()=>d.h,completeUrl:()=>o.WO,connection:()=>o.ZI,convertMediaUrlToVideoEmbed:()=>o.UU,css:()=>o.iv,cssPath:()=>o.iN,ctrlKey:()=>o.kT,dataBind:()=>o.qI,defaultLanguage:()=>o.X9,error:()=>o.vU,fastClone:()=>o.V8,fuzzySearchIndex:()=>j.Qy,get:()=>o.U2,getClassName:()=>o.gj,getContentWidth:()=>k,getScrollParent:()=>S,getXPathByElement:()=>o.BR,hasBrowserColorPicker:()=>c.EO,hasContainer:()=>c.Zt,htmlspecialchars:()=>g,humanSizeToBytes:()=>o.wx,i18n:()=>j.ag,inView:()=>o.jF,innerWidth:()=>E,isAbort:()=>o.PQ,isArray:()=>c.kJ,isAtom:()=>o.J8,isBoolean:()=>c.jn,isDestructable:()=>c.Z$,isEqual:()=>c.Xy,isFastEqual:()=>c.LP,isFunction:()=>c.mf,isHTML:()=>c.FP,isHtmlFromWord:()=>c.I4,isInitable:()=>c.Gu,isInt:()=>c.GN,isJoditObject:()=>c.Zu,isLicense:()=>c.A1,isNativeFunction:()=>c.QC,isNumber:()=>c.hj,isNumeric:()=>c.kE,isPlainObject:()=>c.PO,isPromise:()=>c.tI,isString:()=>c.HD,isStringArray:()=>c.GI,isURL:()=>c.PX,isValidName:()=>c.r1,isViewObject:()=>c.f2,isVoid:()=>c.nj,isWindow:()=>c.FJ,kebabCase:()=>j.GL,keepNames:()=>o.kc,keys:()=>o.am,loadImage:()=>o.po,loadNext:()=>o.wY,loadNextStyle:()=>o.GX,markAsAtomic:()=>o.XT,markDeprecated:()=>o.Q8,markOwner:()=>o.MN,memorizeExec:()=>o.u3,nl2br:()=>w,normalizeColor:()=>C.ut,normalizeCssValue:()=>C.Zh,normalizeKeyAliases:()=>C.T2,normalizeLicense:()=>C.Pd,normalizeNode:()=>C.Tz,normalizePath:()=>C.AH,normalizeRelativePath:()=>C.Jf,normalizeSize:()=>C.aC,normalizeUrl:()=>C.D5,offset:()=>I,options:()=>o.YM,parseQuery:()=>o.mB,position:()=>z,refs:()=>o.xL,reset:()=>o.mc,resolveElement:()=>o.W2,safeHTML:()=>y.e,sanitizeHTMLElement:()=>y.n,scrollIntoViewIfNeeded:()=>o.n5,set:()=>o.t8,setTimeout:()=>l.i,size:()=>T.d,splitArray:()=>r.C,sprintf:()=>j.gB,stringify:()=>j.Pz,stripTags:()=>b,toArray:()=>a.q,trim:()=>j.fy,trimInv:()=>j.as,ucfirst:()=>j.Ps,val:()=>o.P0});var o=i(29),s=i(9);const n=e=>(0,s.k)(e)?e:[e];var r=i(14),a=i(5),l=i(26),c=i(45),d=i(37),h=i(42),u=i(61);function p(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,((e,t,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e}))}function m(e){if(-1===e.indexOf("<html "))return e;e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7);const t=document.createElement("iframe");t.style.display="none",document.body.appendChild(t);let i="",s=[];try{const n=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(n){n.open(),n.write(e),n.close();try{for(let e=0;n.styleSheets.length>e;e+=1){const t=n.styleSheets[e].cssRules;for(let e=0;t.length>e;e+=1)""!==t[e].selectorText&&(s=(0,o.$$)(t[e].selectorText,n.body),s.forEach((i=>{i.style.cssText=p(t[e].style.cssText+";"+i.style.cssText)})))}}catch(e){}h.i.each(n.body,(e=>{if(h.i.isElement(e)){const t=e,i=t.getAttribute("style");i&&(t.style.cssText=p(i)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}})),i=n.firstChild?(0,u.f)(n.body.innerHTML):""}}catch(e){}finally{h.i.safeRemove(t)}return i&&(e=i),(0,u.f)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}function f(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{const i=document.createElement("div");i.innerHTML=e;const o=[];i.firstChild&&h.i.each(i,(e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":o.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":h.i.unwrap(e);break;default:(0,a.q)(e.attributes).forEach((t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&e.removeAttribute(t.name)}))}break;case Node.TEXT_NODE:break;default:o.push(e)}})),h.i.safeRemove.apply(null,o),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(u.f).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}function g(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}var v=i(8);function b(e,t=document){const i=t.createElement("div");return(0,v.H)(e)?i.innerHTML=e:i.appendChild(e),(0,o.$$)("DIV, P, BR, H1, H2, H3, H4, H5, H6, HR",i).forEach((e=>{const i=e.parentNode;if(!i)return;const o=e.nextSibling;h.i.isText(o)&&/^\s/.test(o.nodeValue||"")||o&&i.insertBefore(t.createTextNode(" "),o)})),(0,u.f)(i.innerText)||""}var y=i(62);function w(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}var C=i(63);const k=(e,t)=>{const i=e=>parseInt(e,10),o=t.getComputedStyle(e);return e.offsetWidth-i(o.getPropertyValue("padding-left")||"0")-i(o.getPropertyValue("padding-right")||"0")};function S(e){if(!e)return null;const t=h.i.isHTMLElement(e),i=t&&(0,o.iv)(e,"overflowY");return t&&"visible"!==i&&"hidden"!==i&&e.scrollHeight>=e.clientHeight?e:S(e.parentNode)||document.scrollingElement||document.body}const E=(e,t)=>{const i=t.getComputedStyle(e);let o=e.clientWidth;return o-=parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"),o},I=(e,t,i,o=!1)=>{let s;try{s=e.getBoundingClientRect()}catch(e){s={top:0,bottom:0,left:0,right:0,width:0,height:0}}const n=i.body,r=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},a=i.defaultView||i.parentWindow,l=a.pageYOffset||r.scrollTop||n.scrollTop,c=a.pageXOffset||r.scrollLeft||n.scrollLeft,d=r.clientTop||n.clientTop||0,h=r.clientLeft||n.clientLeft||0;let u,p;const m=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&m){const{top:e,left:i}=I(m,t,t.od,!0);u=s.top+e,p=s.left+i}else u=s.top+l-d,p=s.left+c-h;return{top:Math.round(u),left:Math.round(p),width:s.width,height:s.height}};var x=i(46);function z(e,t,i=!1){const o=e.getBoundingClientRect();let s=o.left,n=o.top;if((0,x.Z)(t)&&t.iframe&&!i){const{left:e,top:i}=z(t.iframe,t,!0);s+=e,n+=i}return{left:Math.round(s),top:Math.round(n),width:Math.round(e.offsetWidth),height:Math.round(e.offsetHeight)}}var T=i(44),j=i(64)},function(e,t,i){"use strict";i.d(t,{$$:()=>W.$$,_L:()=>V._L,tp:()=>D,II:()=>M,hY:()=>V.hY,lI:()=>m,tW:()=>V.tW,JG:()=>V.JG,uR:()=>y,JL:()=>w,Nf:()=>C,hu:()=>o.h,Lj:()=>r.Lj,Xh:()=>E,XP:()=>I,RE:()=>r.RE,C6:()=>r.C6,bI:()=>N.b,H5:()=>s,WO:()=>f,ZI:()=>V.ZI,UU:()=>R,iv:()=>N.i,iN:()=>W.iN,kT:()=>q,qI:()=>B.q,X9:()=>H,vU:()=>V.vU,V8:()=>j,U2:()=>a.U,gj:()=>p.g,BR:()=>W.BR,wx:()=>O,jF:()=>F.j,PQ:()=>V.PQ,J8:()=>z,kc:()=>p.k,am:()=>r.XP,po:()=>r.po,wY:()=>k,GX:()=>S,XT:()=>T,Q8:()=>n,MN:()=>r.MN,u3:()=>r.u3,YM:()=>V.YM,mB:()=>_,xL:()=>W.xL,mc:()=>Y.m,W2:()=>W.W2,n5:()=>F.n,t8:()=>u,P0:()=>U});var o=i(4);const s=console;function n(e,t=[""],i=null){return(...o)=>(s.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...o))}var r=i(30),a=i(7),l=i(8),c=i(34),d=i(9),h=i(20);function u(e,t,i){if(!(0,l.H)(e)||!e.length)return;const o=e.split(".");let s=i,n=o[0];for(let e=0;o.length-1>e;e+=1)n=o[e],(0,d.k)(s[n])||(0,h.P)(s[n])||(s[n]=(0,c.k)(o[e+1])?[]:{}),s=s[n];s&&(s[o[o.length-1]]=t)}var p=i(39);class m{constructor(e){this.limit=e,this.stack=[]}push(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(e){return this.stack.find(e)}}const f=e=>("file:"===window.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e);var g=i(11);const v=new Map,b=e=>async(t,i)=>{if(v.has(i))return v.get(i);const o=e(t,i);return v.set(i,o),o},y=(e,t,i)=>{const o=e.c.element("script");return o.type="text/javascript",o.async=!0,(0,g.m)(i)&&!e.isInDestruct&&e.e.on(o,"load",i),o.src||(o.src=f(t)),e.od.body.appendChild(o),{callback:i,element:o}},w=b(((e,t)=>new Promise(((i,o)=>{const{element:s}=y(e,t,i);!e.isInDestruct&&e.e.on(s,"error",o)})))),C=b(((e,t)=>new Promise(((i,o)=>{const s=e.c.element("link");s.rel="stylesheet",s.media="all",s.crossOrigin="anonymous",!e.isInDestruct&&e.e.on(s,"load",(()=>i(s))).on(s,"error",o),s.href=f(t),e.o.shadowRoot?e.o.shadowRoot.appendChild(s):e.od.body.appendChild(s)})))),k=(e,t,i=0)=>(0,l.H)(t[i])?w(e,t[i]).then((()=>k(e,t,i+1))):Promise.resolve(),S=(e,t,i=0)=>(0,l.H)(t[i])?C(e,t[i]).then((()=>S(e,t,i+1))):Promise.resolve(),E=e=>{const t=navigator.userAgent.toLowerCase(),i=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||0>t.indexOf("compatible")||[];return"version"===e?i[2]:"webkit"===e?"chrome"===i[1]||"webkit"===i[1]:"ff"===e?"firefox"===i[1]:"msie"===e?"trident"===i[1]||"msie"===i[1]:i[1]===e},I=(e,t)=>{const i=[],o=encodeURIComponent;for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const n=t?t+"["+s+"]":s,r=e[s];i.push((0,h.P)(r)?I(r,n):o(n)+"="+o(r))}return i.join("&")};var x=i(23);function z(e){return e&&e.isAtom}function T(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function j(e){return JSON.parse((0,x.P)(e))}var L=i(10),A=i(1);function M(e,t,i=0){if(Object.getPrototypeOf(e)!==Object.prototype)return e;const o=A.D.defaultOptions;if((0,l.H)(e.preset)){if(void 0!==o.presets[e.preset]){const t=o.presets[e.preset];Object.keys(t).forEach((i=>{(0,L.n)(e[i])&&(e[i]=t[i])}))}delete e.preset}const s={};return Object.keys(e).forEach((o=>{const n=e[o],r=t?t[o]:null;s[o]=(0,h.P)(n)&&(0,h.P)(r)&&!z(n)?M(n,r,i+1):0!==i&&(0,d.k)(n)&&!z(n)&&(0,d.k)(r)?[...n,...r.slice(n.length)]:n})),Object.setPrototypeOf(s,t),s}function D(e){return(0,r.XP)(e,!1).reduce(((t,i)=>(t[i]=e[i],t)),{})}var P=i(40);const _=e=>{const t={},i=e.substr(1).split("&");for(let e=0;i.length>e;e+=1){const o=i[e].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return t},R=(e,t=400,i=345)=>{if(!(0,P.P)(e))return e;const o=document.createElement("a"),s=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;o.href=e,t||(t=400),i||(i=345);const n=o.protocol||"";switch(o.hostname){case"www.vimeo.com":case"vimeo.com":return s.test(e)?e.replace(s,'<iframe width="'+t+'" height="'+i+'" src="'+n+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):e;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{const s=o.search?_(o.search):{v:o.pathname.substr(1)};return s.v?'<iframe width="'+t+'" height="'+i+'" src="'+n+"//www.youtube.com/embed/"+s.v+'" frameborder="0" allowfullscreen></iframe>':e}}return e};var N=i(32);const q=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};var B=i(31);const H=(e,t="en")=>"auto"!==e&&(0,l.H)(e)?e:document.documentElement&&document.documentElement.lang?document.documentElement.lang:navigator.language?navigator.language.substr(0,2):t,O=e=>{if(/^[0-9.]+$/.test(""+e))return parseFloat(e);const t=e.substr(-2,2).toUpperCase(),i=["KB","MB","GB","TB"],o=parseFloat(e.substr(0,e.length-2));return-1!==i.indexOf(t)?o*Math.pow(1024,i.indexOf(t)+1):parseInt(e,10)};var F=i(41),W=i(57),V=i(13);const U=(e,t,i)=>{const o=e.querySelector(t);return o?(i&&(o.value=i),o.value):""};var Y=i(6)},(e,t,i)=>{"use strict";i.d(t,{C6:()=>m,Lj:()=>u,MN:()=>p,RE:()=>h,XP:()=>g,po:()=>f,u3:()=>v});var o=i(11),s=i(27),n=i(10),r=i(20),a=i(8),l=i(31),c=i(32),d=i(36);function h(e,...t){return e(...t)}function u(e,t,i){if(!e||!(0,o.m)(e.getAttribute))return null;if(!(0,a.H)(t))return Object.keys(t).forEach((i=>{const o=t[i];(0,r.P)(o)&&"style"===i?(0,c.i)(e,o):("className"===i&&(i="class"),u(e,i,o))})),null;let s=(0,d.g)(t);if(/^-/.test(s)){const t=u(e,"data"+s);if(t)return t;s=s.substr(1)}if(void 0!==i){if(null!=i)return e.setAttribute(s,""+i),""+i;e.hasAttribute(s)&&e.removeAttribute(s)}return e.getAttribute(s)}function p(e,t){u(t,"data-editor_id",e.id),!t.component&&Object.defineProperty(t,"jodit",{value:e})}function m(e,t){return(0,s.t)(e)?e.finally(t):t()}const f=(e,t)=>t.async.promise(((i,o)=>{const s=new Image,n=()=>{t.e.off(s),null==o||o()},r=()=>{t.e.off(s),i(s)};t.e.one(s,"load",r).one(s,"error",n).one(s,"abort",n),s.src=e,s.complete&&r()})),g=(e,t=!0)=>{if(t)return Object.keys(e);const i=[];for(const t in e)i.push(t);return i},v=(e,t,{control:i},o)=>{var s;const r="button"+i.command;let a=null!==(s=i.args&&i.args[0])&&void 0!==s?s:(0,l.q)(e,r);if((0,n.n)(a))return!1;(0,l.q)(e,r,a),o&&(a=o(a)),e.execCommand(i.command,!1,null!=a?a:void 0)}},(e,t,i)=>{"use strict";i.d(t,{q:()=>n});var o=i(19);const s=new WeakMap,n=(e,t,i)=>{let n=s.get(e);if(!n){n={},s.set(e,n);let t=null;(0,o.f)(e.j)&&(t=e.j.e),(0,o.f)(e)&&(t=e.e),t&&t.on("beforeDestruct",(()=>{s.delete(e)}))}return void 0===i?n[t]:(n[t]=i,i)}},(e,t,i)=>{"use strict";i.d(t,{b:()=>h,i:()=>d});var o=i(20),s=i(34),n=i(10),r=i(33),a=i(35),l=i(38),c=i(36);function d(e,t,i,h=!1){const u=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;if((0,r.j)(i)&&(h=i,i=void 0),(0,o.P)(t)||void 0!==i){const r=(e,t,i)=>{!(0,n.n)(i)&&u.test(t)&&(0,s.k)(""+i)&&(i=parseInt(""+i,10)+"px"),void 0===i||null!=i&&d(e,t,!0)===(0,a.Z)(t,i)||(e.style[t]=i)};if((0,o.P)(t)){const i=Object.keys(t);for(let o=0;i.length>o;o+=1)r(e,(0,l.e)(i[o]),t[i[o]])}else r(e,(0,l.e)(t),i);return""}const p=(0,c.G)(t),m=e.ownerDocument||document,f=!!m&&(m.defaultView||m.parentWindow),g=e.style[t];let v="";return void 0!==g&&""!==g?v=g:f&&!h&&(v=f.getComputedStyle(e).getPropertyValue(p)),u.test(t)&&/^[-+]?[0-9.]+px$/.test(""+v)&&(v=parseInt(""+v,10)),(0,a.Z)(t,v)}const h=e=>{"block"===d(e,"display")&&d(e,"display","");const{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}},(e,t,i)=>{"use strict";function o(e){return"boolean"==typeof e}i.d(t,{j:()=>o})},(e,t,i)=>{"use strict";i.d(t,{k:()=>s});var o=i(8);function s(e){if((0,o.H)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var o=i(34),s=i(36),n=i(37);function r(e,t){if("font-weight"===(0,s.G)(e)){switch((""+t).toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,o.k)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(""+t)&&(0,n.h)(""+t)||t}},(e,t,i)=>{"use strict";i.d(t,{G:()=>o,g:()=>s});const o=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(),s=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},(e,t,i)=>{"use strict";i.d(t,{h:()=>o});const o=e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;const 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";const i=parseInt(t[2],10),o=parseInt(t[3],10);let s=(parseInt(t[4],10)|o<<8|i<<16).toString(16).toUpperCase();for(;6>s.length;)s="0"+s;return t[1]+"#"+s}},(e,t,i)=>{"use strict";i.d(t,{e:()=>o});const o=e=>e.replace(/([-_])(.)/g,((e,t,i)=>i.toUpperCase()))},(e,t,i)=>{"use strict";i.d(t,{g:()=>n,k:()=>s});var o=i(11);const s=new Map,n=e=>{var t;if((0,o.m)(e.className))return e.className();const i=(null===(t=e.constructor)||void 0===t?void 0:t.originalConstructor)||e.constructor;if(s.has(i))return s.get(i);if(i.name)return i.name;const n=(""+i).match(/^\s*function\s*(\S*)\s*\(/);return n?n[1]:""}},(e,t,i)=>{"use strict";function o(e){if(e.includes(" "))return!1;if("undefined"!=typeof URL)try{const t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}const t=document.createElement("a");return t.href=e,!!t.hostname}i.d(t,{P:()=>o})},(e,t,i)=>{"use strict";i.d(t,{j:()=>s,n:()=>n});var o=i(42);const s=(e,t,i)=>{let o=e.getBoundingClientRect(),s=e;const n=o.top,r=o.height;do{if(s&&s.parentNode){if(s=s.parentNode,o=s.getBoundingClientRect(),n>o.bottom)return!1;if(o.top>=n+r)return!1}}while(s&&s!==t&&s.parentNode);return(i.documentElement&&i.documentElement.clientHeight||0)>=n};function n(e,t,i){o.i.isHTMLElement(e)&&!s(e,t,i)&&(t.clientHeight!==t.scrollHeight&&(t.scrollTop=e.offsetTop),s(e,t,i)||e.scrollIntoView())}},function(e,t,i){"use strict";i.d(t,{i:()=>r});var o=i(2),s=i(28),n=i(43);class r{static detach(e){for(;e.firstChild;)e.removeChild(e.firstChild)}static wrapInline(e,t,i){let o,n=e,a=e;i.s.save();let l=!1;do{l=!1,o=n.previousSibling,o&&!r.isBlock(o)&&(l=!0,n=o)}while(l);do{l=!1,o=a.nextSibling,o&&!r.isBlock(o)&&(l=!0,a=o)}while(l);const c=(0,s.isString)(t)?i.createInside.element(t):t;n.parentNode&&n.parentNode.insertBefore(c,n);let d=n;for(;d&&(d=n.nextSibling,c.appendChild(n),n!==a&&d);)n=d;return i.s.restore(),c}static wrap(e,t,i){const o=(0,s.isString)(t)?i.element(t):t;if(r.isNode(e)){if(!e.parentNode)throw(0,s.error)("Element should be in DOM");e.parentNode.insertBefore(o,e),o.appendChild(e)}else{const t=e.extractContents();e.insertNode(o),o.appendChild(t)}return o}static unwrap(e){const t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);r.safeRemove(e)}}static between(e,t,i){let o=e;for(;o&&o!==t&&(e===o||!i(o));){let e=o.firstChild||o.nextSibling;if(!e){for(;o&&!o.nextSibling;)o=o.parentNode;e=null==o?void 0:o.nextSibling}o=e}}static replace(e,t,i,o=!1,n=!1){(0,s.isHTML)(t)&&(t=i.fromHTML(t));const r=(0,s.isString)(t)?i.element(t):t;if(!n)for(;e.firstChild;)r.appendChild(e.firstChild);return o&&(0,s.toArray)(e.attributes).forEach((e=>{r.setAttribute(e.name,e.value)})),e.parentNode&&e.parentNode.replaceChild(r,e),r}static isEmptyTextNode(e){return r.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return r.each(e,(e=>r.isEmptyTextNode(e)))}static isContentEditable(e,t){return r.isNode(e)&&!r.closest(e,(e=>r.isElement(e)&&"false"===e.getAttribute("contenteditable")),t)}static isEmpty(e,t=/^(img|svg|canvas|input|textarea|form)$/){return!e||(r.isText(e)?null==e.nodeValue||0===(0,s.trim)(e.nodeValue).length:!t.test(e.nodeName.toLowerCase())&&r.each(e,(e=>{if(r.isText(e)&&null!=e.nodeValue&&0!==(0,s.trim)(e.nodeValue).length||r.isElement(e)&&t.test(e.nodeName.toLowerCase()))return!1})))}static isNode(e){return!!(e&&(0,s.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,s.isFunction)(e.appendChild))}static isCell(e){return r.isNode(e)&&/^(td|th)$/i.test(e.nodeName)}static isImage(e){return r.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,s.isVoid)(e)&&"object"==typeof e&&r.isNode(e)&&o.IS_BLOCK.test(e.nodeName)}static isText(e){return!(!e||e.nodeType!==Node.TEXT_NODE)}static isElement(e){var t;return!!r.isNode(e)&&!(!(null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView)||e.nodeType!==Node.ELEMENT_NODE)}static isFragment(e){var t;return!!r.isNode(e)&&!(!(null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView)||e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(e){var t;if(!r.isNode(e))return!1;const i=null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(i&&e instanceof i.HTMLElement)}static isInlineBlock(e){return r.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf(""+(0,s.css)(e,"display"))}static canSplitBlock(e){return!(0,s.isVoid)(e)&&r.isHTMLElement(e)&&r.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static last(e,t){let i=null==e?void 0:e.lastChild;if(!i)return null;do{if(t(i))return i;let o=i.lastChild;if(o||(o=i.previousSibling),!o&&i.parentNode!==e){do{i=i.parentNode}while(i&&!(null==i?void 0:i.previousSibling)&&i.parentNode!==e);o=null==i?void 0:i.previousSibling}i=o}while(i);return null}static prev(e,t,i,o=!0){return r.find(e,t,i,!1,o)}static next(e,t,i,o=!0){return r.find(e,t,i,!0,o)}static prevWithClass(e,t){return r.prev(e,(e=>r.isElement(e)&&e.classList.contains(t)),e.parentNode)}static nextWithClass(e,t){return r.next(e,(e=>r.isElement(e)&&e.classList.contains(t)),e.parentNode)}static find(e,t,i,o=!0,s=!0){const n=this.nextGen(e,i,o,s);let r=n.next();for(;!r.done;){if(t(r.value))return r.value;r=n.next()}return null}static*nextGen(e,t,i=!0,o=!0){const s=[];let n=e;do{let t=i?n.nextSibling:n.previousSibling;for(;t;)s.unshift(t),t=i?t.nextSibling:t.previousSibling;yield*this.runInStack(e,s,i,o),n=n.parentNode}while(n&&n!==t);return null}static each(e,t,i=!0){const o=this.eachGen(e,i);let s=o.next();for(;!s.done;){if(!1===t(s.value))return!1;s=o.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,o=!0){for(;t.length;){const s=t.pop();if(o){let e=i?s.lastChild:s.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==s&&(yield s)}}static findWithCurrent(e,t,i,o="nextSibling",s="firstChild"){let n=e;do{if(t(n))return n||null;if(s&&n&&n[s]){const e=r.findWithCurrent(n[s],t,n,o,s);if(e)return e}for(;n&&!n[o]&&n!==i;)n=n.parentNode;n&&n[o]&&n!==i&&(n=n[o])}while(n&&n!==i);return null}static findSibling(e,t=!0,i=(e=>!r.isEmptyTextNode(e))){let o=r.sibling(e,t);for(;o&&!i(o);)o=r.sibling(o,t);return o&&i(o)?o:null}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,o=!1){let s=e;if(!s)return null;do{if(t(s))return s;if(s===i||!s.parentNode)break;s=s.parentNode}while(s&&s!==i);return s===i&&o&&t(s)?s:null}static closest(e,t,i){let o;return o=(0,s.isFunction)(t)?t:(0,s.isArray)(t)?e=>!(!e||!t.includes(e.nodeName.toLowerCase())):e=>!(!e||t!==e.nodeName.toLowerCase()),r.up(e,o,i)}static furthest(e,t,i){let o=null,s=null==e?void 0:e.parentElement;for(;s&&s!==i&&t(s);)o=s,s=null==s?void 0:s.parentElement;return o}static appendChildFirst(e,t){const i=e.firstChild;i?i!==t&&e.insertBefore(t,i):e.appendChild(t)}static after(e,t){const{parentNode:i}=e;i&&(i.lastChild===e?i.appendChild(t):i.insertBefore(t,e.nextSibling))}static before(e,t){const{parentNode:i}=e;i&&i.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,s.isArray)(t)?t.forEach((t=>{this.append(e,t)})):e.appendChild(t)}static moveContent(e,t,i=!1){const o=(e.ownerDocument||document).createDocumentFragment();(0,s.toArray)(e.childNodes).forEach((e=>{o.appendChild(e)})),i&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o)}static isOrContains(e,t,i=!1){return e===t?!i:!!(t&&e&&this.up(t,(t=>t===e),e,!0))}static safeRemove(...e){e.forEach((e=>r.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e)))}static hide(e){e&&((0,s.dataBind)(e,"__old_display",e.style.display),e.style.display="none")}static show(e){if(!e)return;const t=(0,s.dataBind)(e,"__old_display");"none"===e.style.display&&(e.style.display=t||"")}static isTag(e,t){const i=(0,s.asArray)(t).map(String);for(let t=0;i.length>t;t+=1)if(this.isElement(e)&&e.tagName.toLowerCase()===i[t].toLowerCase())return!0;return!1}static markTemporary(e,t){return t&&(0,s.attr)(e,t),(0,s.attr)(e,o.TEMP_ATTR,!0),e}static isTemporary(e){return!!r.isElement(e)&&(n.Ph.isMarker(e)||"true"===(0,s.attr)(e,o.TEMP_ATTR))}static replaceTemporaryFromString(e){return e.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(e){return(0,s.$$)(`[${o.TEMP_ATTR}]`,e)}}},function(e,t,i){"use strict";i.d(t,{RP:()=>_,Ph:()=>b});var o=i(2),s=i(28),n=i(29),r=i(32),a=i(31),l=i(36),c=i(35),d=i(44),h=i(47),u=i(53);function p(e,t,i,o,s=!1){const{style:n,className:p}=e.options;return n&&(0,d.d)(n)>0&&Object.keys(n).forEach((d=>{if(""!==t.style.getPropertyValue((0,l.G)(d))||null!=n[d]){if(((e,t,i)=>{const o=e.create.element(t.tagName.toLowerCase());o.style.cssText=t.style.cssText,(e=>{var t;if(void 0!==(0,a.q)(e,"shadowRoot"))return(0,a.q)(e,"shadowRoot");const i=(0,u.ZO)(e),o=document.createElement("iframe");(0,r.i)(o,{width:0,height:0,position:"absolute",border:0}),o.src="about:blank",i.appendChild(o);const s=null===(t=o.contentWindow)||void 0===t?void 0:t.document,n=s?s.body:e.od.body;return(0,a.q)(e,"shadowRoot",n),n})(e).appendChild(o);const s=(0,r.i)(o,i);return h.i.safeRemove(o),s})(i,t,d)===(0,c.Z)(d,n[d]))return!s&&(0,r.i)(t,d,null),void(o=m(e,t,o=M));o=A,!s&&(0,r.i)(t,d,n[d]),s||(o=m(e,t,o))}})),p&&(t.classList.contains(p)?(t.classList.remove(p),o=M):(t.classList.add(p),o=A)),o}function m(e,t,i){return(0,n.Lj)(t,"style")||((0,n.Lj)(t,"style",null),t.tagName.toLowerCase()===e.defaultTag&&(h.i.unwrap(t),i=L)),i}var f=i(55),g=i(49),v=i(56);class b{constructor(e){this.jodit=e,e.e.on("removeMarkers",(()=>{this.removeMarkers()}))}get j(){return this.jodit}errorNode(e){if(!h.i.isNode(e))throw(0,s.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,s.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){const e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()}get isInsideArea(){const{sel:e}=this,t=(null==e?void 0:e.rangeCount)?e.getRangeAt(0):null;return!(!t||!h.i.isOrContains(this.area,t.startContainer))}createRange(e=!1){const t=this.doc.createRange();return e&&this.selectRange(t),t}remove(){const e=this.sel,t=this.current();if(e&&t)for(let t=0;e.rangeCount>t;t+=1)e.getRangeAt(t).deleteContents(),e.getRangeAt(t).collapse(!0)}clear(){var e,t;(null===(e=this.sel)||void 0===e?void 0:e.rangeCount)&&(null===(t=this.sel)||void 0===t||t.removeAllRanges())}removeNode(e){if(!h.i.isOrContains(this.j.editor,e,!0))throw(0,s.error)("Selection.removeNode can remove only editor's children");h.i.safeRemove(e),this.j.e.fire("afterRemoveNode",e)}insertCursorAtPoint(e,t){this.removeMarkers();try{const i=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){const o=this.doc.caretPositionFromPoint(e,t);if(o)return void i.setStart(o.offsetNode,o.offset)}if(this.doc.caretRangeFromPoint){const o=this.doc.caretRangeFromPoint(e,t);i.setStart(o.startContainer,o.startOffset)}})(),i.collapse(!0),this.selectRange(i),!0}catch(e){}return!1}static isMarker(e){return h.i.isNode(e)&&h.i.isTag(e,"span")&&e.hasAttribute("data-"+o.MARKER_CLASS)}get hasMarkers(){return!!this.markers.length}get markers(){return(0,s.$$)("span[data-"+o.MARKER_CLASS+"]",this.area)}removeMarkers(){h.i.safeRemove.apply(null,this.markers)}marker(e=!1,t){let i=null;t&&(i=t.cloneRange(),i.collapse(e));const s=this.j.createInside.span();return s.id=o.MARKER_CLASS+"_"+Number(new Date)+"_"+(Math.random()+"").slice(2),s.style.lineHeight="0",s.style.display="none",s.setAttribute("data-"+o.MARKER_CLASS,e?"start":"end"),s.appendChild(this.j.createInside.text(o.INVISIBLE_SPACE)),i&&h.i.isOrContains(this.area,e?i.startContainer:i.endContainer)&&i.insertNode(s),s}restore(){let e=!1;const t=e=>`span[data-${o.MARKER_CLASS}=${e?"start":"end"}]`,i=this.area.querySelector(t(!0)),s=this.area.querySelector(t(!1));if(i){if(e=this.createRange(),s)e.setStartAfter(i),h.i.safeRemove(i),e.setEndBefore(s),h.i.safeRemove(s);else{const t=i.previousSibling;h.i.isText(t)?e.setStart(t,t.nodeValue?t.nodeValue.length:0):e.setStartBefore(i),h.i.safeRemove(i),e.collapse(!0)}e&&this.selectRange(e)}}save(e=!1){if(this.hasMarkers)return[];const t=this.sel;if(!t||!t.rangeCount)return[];const i=[],o=t.rangeCount,s=[];for(let e=0;o>e;e+=1)if(s[e]=t.getRangeAt(e),s[e].collapsed){const t=this.marker(!0,s[e]);i[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{const t=this.marker(!0,s[e]),o=this.marker(!1,s[e]);i[e]={startId:t.id,endId:o.id,collapsed:!1,startMarker:t.outerHTML,endMarker:o.outerHTML}}if(!e){t.removeAllRanges();for(let e=o-1;e>=0;--e){const o=this.doc.getElementById(i[e].startId);if(o)if(i[e].collapsed)s[e].setStartAfter(o),s[e].collapse(!0);else if(s[e].setStartBefore(o),i[e].endId){const t=this.doc.getElementById(i[e].endId);t&&s[e].setEndAfter(t)}try{t.addRange(s[e].cloneRange())}catch(e){}}}return i}focus(e={preventScroll:!0}){var t,i;if(!this.isFocused()){const o=(0,s.getScrollParent)(this.j.container),n=null==o?void 0:o.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(e),this.win.focus(),this.area.focus(e),n&&(null==o?void 0:o.scrollTo)&&o.scrollTo(0,n);const r=this.sel,a=(null==r?void 0:r.rangeCount)?null==r?void 0:r.getRangeAt(0):null;if(!a||!h.i.isOrContains(this.area,a.startContainer)){const e=this.createRange();e.setStart(this.area,0),e.collapse(!0),this.selectRange(e,!1)}return this.j.editorIsActive||null===(i=null===(t=this.j)||void 0===t?void 0:t.events)||void 0===i||i.fire("focus"),!0}return!1}isCollapsed(){const e=this.sel;for(let t=0;e&&e.rangeCount>t;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(e=!0){if(this.j.getRealMode()===o.MODE_WYSIWYG){const t=this.sel;if(!t||0===t.rangeCount)return null;const i=t.getRangeAt(0);let o=i.startContainer,s=!1;const n=e=>s?e.lastChild:e.firstChild;if(h.i.isTag(o,"br")&&t.isCollapsed)return o;if(!h.i.isText(o)){if(o=i.startContainer.childNodes[i.startOffset],o||(o=i.startContainer.childNodes[i.startOffset-1],s=!0),o&&t.isCollapsed&&!h.i.isText(o))if(!s&&h.i.isText(o.previousSibling))o=o.previousSibling;else if(e){let e=n(o);for(;e;){if(e&&h.i.isText(e)){o=e;break}e=n(e)}}if(o&&!t.isCollapsed&&!h.i.isText(o)){let e=o,t=o;do{e=e.firstChild,t=t.lastChild}while(e&&t&&!h.i.isText(e));e===t&&e&&h.i.isText(e)&&(o=e)}}if(o&&h.i.isOrContains(this.area,o))return o}return null}insertNode(e,t=!0,i=!0){var s;this.errorNode(e),this.j.e.fire("safeHTML",e),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());const n=this.sel;if(this.isCollapsed()||this.j.execCommand("Delete"),n&&n.rangeCount){const t=n.getRangeAt(0);h.i.isOrContains(this.area,t.commonAncestorContainer)?h.i.isTag(t.startContainer,o.INSEPARABLE_TAGS)&&t.collapsed?null===(s=t.startContainer.parentNode)||void 0===s||s.insertBefore(e,t.startContainer):(t.deleteContents(),t.insertNode(e)):this.area.appendChild(e)}else this.area.appendChild(e);t&&(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.lastChild&&this.setCursorAfter(e.lastChild):this.setCursorAfter(e)),i&&this.j.events&&this.j.e.fire("synchro"),this.j.events&&this.j.e.fire("afterInsertNode",e)}insertHTML(e,t=!0){if(""===e)return;const i=this.j.createInside.div(),o=this.j.createInside.fragment();let s;if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),h.i.isNode(e)?i.appendChild(e):i.innerHTML=""+e,(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",i.innerHTML))&&(s=i.lastChild,s)){for(;i.firstChild;)s=i.firstChild,o.appendChild(i.firstChild);this.insertNode(o,!1,!1),t&&(s?this.setCursorAfter(s):this.setCursorIn(o)),this.j.synchronizeValues()}}insertImage(e,t=null,i=null){const o=(0,s.isString)(e)?this.j.createInside.element("img"):e;if((0,s.isString)(e)&&o.setAttribute("src",e),null!=i){let e=""+i;e&&"auto"!==e&&0>(e+"").indexOf("px")&&0>(e+"").indexOf("%")&&(e+="px"),(0,s.call)(this.j.o.resizer.forImageChangeAttributes?s.attr:s.css,o,"width",e)}t&&"object"==typeof t&&(0,s.css)(o,t);const n=()=>{(o.offsetHeight>o.naturalHeight||o.offsetWidth>o.naturalWidth)&&(o.style.width="",o.style.height=""),o.removeEventListener("load",n)};this.j.e.on(o,"load",n),o.complete&&n(),this.insertNode(o),this.j.e.fire("afterInsertImage",o)}eachSelection(e){var t;const i=this.sel;if(i&&i.rangeCount){const n=i.getRangeAt(0);let r=n.commonAncestorContainer;h.i.isHTMLElement(r)||(r=r.parentElement);const a=[],l=n.startOffset,c=r.childNodes.length,d=c>l?l:c-1;let u=n.startContainer===this.area?r.childNodes[d]:n.startContainer,p=n.endContainer===this.area?r.childNodes[n.endOffset-1]:n.endContainer;h.i.isText(u)&&u===n.startContainer&&n.startOffset===(null===(t=u.nodeValue)||void 0===t?void 0:t.length)&&u.nextSibling&&(u=u.nextSibling),h.i.isText(p)&&p===n.endContainer&&0===n.endOffset&&p.previousSibling&&(p=p.previousSibling);const m=e=>{!e||e===r||h.i.isEmptyTextNode(e)||b.isMarker(e)||a.push(e)};m(u),u!==p&&h.i.isOrContains(r,u,!0)&&h.i.find(u,(e=>(m(e),e===p||e&&e.contains&&e.contains(p))),r,!0,!1);const f=t=>{if(h.i.isOrContains(this.j.editor,t,!0)){if(t.nodeName.match(/^(UL|OL)$/))return(0,s.toArray)(t.childNodes).forEach(f);if(h.i.isTag(t,"li"))if(t.firstChild)t=t.firstChild;else{const e=this.j.createInside.text(o.INVISIBLE_SPACE);t.appendChild(e),t=e}e(t)}};0===a.length&&h.i.isEmptyTextNode(u)&&a.push(u),0===a.length&&u.firstChild&&a.push(u.firstChild),a.forEach(f)}}cursorInTheEdge(e,t){var i,n;const r=!e,a=null===(i=this.sel)||void 0===i?void 0:i.getRangeAt(0),l=this.current(!1);if(!a||!l||!h.i.isOrContains(t,l,!0))return null;const c=e?a.startContainer:a.endContainer,d=e?a.startOffset:a.endOffset,u=e=>!(!e||h.i.isTag(e,"br")||h.i.isEmptyTextNode(e));if(h.i.isText(c)){const t=(null===(n=c.nodeValue)||void 0===n?void 0:n.length)?c.nodeValue:"";if(r&&t.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").length>d)return!1;const i=(0,o.INVISIBLE_SPACE_REG_EXP_START)().exec(t);if(e&&(i&&d>i[0].length||!i&&d>0))return!1}else{const e=(0,s.toArray)(c.childNodes);if(r){if(e.slice(d).some(u))return!1}else if(e.slice(0,d).some(u))return!1}return!(0,s.call)(e?h.i.prev:h.i.next,l,u,t)}cursorOnTheLeft(e){return this.cursorInTheEdge(!0,e)}cursorOnTheRight(e){return this.cursorInTheEdge(!1,e)}setCursorAfter(e){return this.setCursorNearWith(e,!1)}setCursorBefore(e){return this.setCursorNearWith(e,!0)}setCursorNearWith(e,t){var i,n;if(this.errorNode(e),!h.i.up(e,(e=>e===this.area||e&&e.parentNode===this.area),this.area))throw(0,s.error)("Node element must be in editor");const r=this.createRange();let a=null;return h.i.isText(e)?t?r.setStart(e,0):r.setEnd(e,null!==(n=null===(i=e.nodeValue)||void 0===i?void 0:i.length)&&void 0!==n?n:0):(a=this.j.createInside.text(o.INVISIBLE_SPACE),t?r.setStartBefore(e):r.setEndAfter(e),r.collapse(t),r.insertNode(a),r.selectNode(a)),r.collapse(t),this.selectRange(r),a}setCursorIn(e,t=!1){if(this.errorNode(e),!h.i.up(e,(e=>e===this.area||e&&e.parentNode===this.area),this.area))throw(0,s.error)("Node element must be in editor");const i=this.createRange();let n=e,r=e;do{if(h.i.isText(n))break;r=n,n=t?n.firstChild:n.lastChild}while(n);if(!n){const e=this.j.createInside.text(o.INVISIBLE_SPACE);/^(img|br|input)$/i.test(r.nodeName)?n=r:(r.appendChild(e),r=e)}return i.selectNodeContents(n||r),i.collapse(t),this.selectRange(i),r}selectRange(e,t=!0){const i=this.sel;return t&&!this.isFocused()&&this.focus(),i&&(i.removeAllRanges(),i.addRange(e)),this.j.e.fire("changeSelection"),this}select(e,t=!1){if(this.errorNode(e),!h.i.up(e,(e=>e===this.area||e&&e.parentNode===this.area),this.area))throw(0,s.error)("Node element must be in editor");const i=this.createRange();return i[t?"selectNodeContents":"selectNode"](e),this.selectRange(i)}get html(){const e=this.sel;if(e&&e.rangeCount>0){const t=e.getRangeAt(0).cloneContents(),i=this.j.createInside.div();return i.appendChild(t),i.innerHTML}return""}*wrapInTagGen(){if(this.isCollapsed()){const e=this.jodit.createInside.element("font",o.INVISIBLE_SPACE);this.insertNode(e,!1,!1);const[t]=this.markers;return t?e.appendChild(t):(this.setCursorIn(e),this.save()),yield e,void h.i.unwrap(e)}if((0,s.$$)("*[style*=font-size]",this.area).forEach((e=>(0,s.attr)(e,"data-font-size",""+e.style.fontSize))),this.isCollapsed()){const e=this.j.createInside.element("font");(0,s.attr)(e,"size",7),this.insertNode(e,!1,!1)}else this.j.nativeExecCommand("fontsize",!1,"7");(0,s.$$)("*[data-font-size]",this.area).forEach((e=>{const t=(0,s.attr)(e,"data-font-size");t&&(e.style.fontSize=t,(0,s.attr)(e,"data-font-size",null))}));const e=(0,s.$$)('font[size="7"]',this.area);for(const t of e){const{firstChild:e,lastChild:i}=t;e&&e===i&&b.isMarker(e)||(e&&b.isMarker(e)&&h.i.before(t,e),i&&b.isMarker(i)&&h.i.after(t,i),yield t),h.i.unwrap(t)}}wrapInTag(e){const t=[];for(const i of this.wrapInTagGen())try{if(i.firstChild&&i.firstChild===i.lastChild&&b.isMarker(i.firstChild))continue;(0,s.isFunction)(e)?e(i):t.push(h.i.replace(i,e,this.j.createInside))}finally{const e=i.parentNode;e&&(h.i.unwrap(i),h.i.isEmpty(e)&&h.i.unwrap(e))}return t}applyStyle(e,t={}){new _({style:e,element:t.element,className:t.className,defaultTag:t.defaultTag}).apply(this.j)}splitSelection(e){if(!this.isCollapsed())return null;const t=this.createRange(),i=this.range;t.setStartBefore(e);const s=this.cursorOnTheRight(e),n=this.cursorOnTheLeft(e),r=this.j.createInside.element("br"),a=this.j.createInside.text(o.INVISIBLE_SPACE),l=a.cloneNode();try{if(s||n){i.insertNode(r);const e=(e,t)=>{let i=t(e);for(;i;){const e=t(i);if(!i||!h.i.isTag(i,"br")&&!h.i.isEmptyTextNode(i))break;h.i.safeRemove(i),i=e}};e(r,(e=>e.nextSibling)),e(r,(e=>e.previousSibling)),h.i.after(r,l),h.i.before(r,a),s?(t.setEndBefore(r),i.setEndBefore(r)):(t.setEndAfter(r),i.setEndAfter(r))}else t.setEnd(i.startContainer,i.startOffset);const o=t.extractContents();if(e.parentNode)try{if(e.parentNode.insertBefore(o,e),s&&(null==r?void 0:r.parentNode)){const e=this.createRange();e.setStartBefore(r),this.selectRange(e)}}catch(e){}const c=e=>{var t,i,o;(null===(t=null==e?void 0:e.parentNode)||void 0===t?void 0:t.firstChild)===(null===(i=null==e?void 0:e.parentNode)||void 0===i?void 0:i.lastChild)&&(null===(o=null==e?void 0:e.parentNode)||void 0===o||o.appendChild(r.cloneNode()))};c(a),c(l)}finally{h.i.safeRemove(a),h.i.safeRemove(l)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;const{range:e}=this,t=e.cloneRange();if(!h.i.isOrContains(this.j.editor,e.commonAncestorContainer,!0))return this;const i=t=>{const i=this.j.createInside.fake(),o=e.cloneRange();return o.collapse(t),o.insertNode(i),(0,v.f)(i,t,this.j.editor),i},o=i(!0),s=i(!1);t.setStartAfter(o),t.setEndBefore(s);const n=h.i.findSibling(o,!1),r=h.i.findSibling(s,!0);if(n!==r){const e=h.i.isElement(n)&&h.i.isOrContains(n,s),i=!e&&h.i.isElement(r)&&h.i.isOrContains(r,o);if(e||i){let i=e?n:r,a=i;for(;h.i.isElement(i);)i=e?i.firstElementChild:i.lastElementChild,i&&h.i.isOrContains(i,e?s:o)&&(a=i);e?t.setStart(a,0):t.setEnd(a,a.childNodes.length)}}return this.selectRange(t),h.i.safeRemove(o,s),this}}function y(e,t,i){const o=i.s.createRange(),s=b.isMarker(t.previousSibling)?t.previousSibling:t;o.setStartBefore(e),o.setEndBefore(s),w(e,o,!0);const n=b.isMarker(t.nextSibling)?t.nextSibling:t;o.setStartAfter(n),o.setEndAfter(e),w(e,o,!1)}function w(e,t,i){const o=t.extractContents();o.textContent&&(0,s.trim)(o.textContent).length||!o.firstChild||h.i.unwrap(o.firstChild),e.parentNode&&(0,s.call)(i?h.i.before:h.i.after,e,o)}(0,f.gn)([g.autobind],b.prototype,"createRange",null),(0,f.gn)([g.autobind],b.prototype,"focus",null),(0,f.gn)([g.autobind],b.prototype,"setCursorAfter",null),(0,f.gn)([g.autobind],b.prototype,"setCursorBefore",null),(0,f.gn)([g.autobind],b.prototype,"setCursorIn",null);var C=i(10);function k(e,t){return!(h.i.isTag(e,"font")||!h.i.isHTMLElement(e)||!Object.keys(t).every((t=>!(0,C.n)((0,r.i)(e,t,!0)))))}class S{constructor(e,t){this.state=e,this.transitions=t,this.subState="",this.silent=!0}setState(e,t){this.state=e,null!=t&&(this.subState=t)}getState(){return this.state}getSubState(){return this.subState}disableSilent(){this.silent=!1}dispatch(e,...t){const i=this.transitions[this.state][e];if(i)return i.call(this,...t);if(!this.silent)throw Error("invalid action: "+this.state+"."+e)}}function E(e){return!(!e||h.i.isEmptyTextNode(e)||h.i.isTemporary(e))}function I(e,t,i){if(!t)return!1;const{element:o,elementIsDefault:s,options:n}=e,a=!(!n.style||!((e,t)=>!(h.i.isTag(e,"font")||!h.i.isHTMLElement(e)||!Object.keys(t).every((i=>{const o=(0,r.i)(e,i,!0);return!(0,C.n)(o)&&""!==o&&!(0,C.n)(t[i])&&(""+(0,c.Z)(i,t[i])).toLowerCase()===(""+o).toLowerCase()}))))(t,n.style)),l=t.nodeName.toLowerCase()===o||h.i.isTag(t,["ul","ol"])&&e.elementIsList;return!!((!s||!i)&&l||a&&E(t))||!(l||i||!s||!h.i.isInlineBlock(t))}function x(e,t){const{element:i,options:o}=e;if(!t||!E(t))return!1;const s=t.nodeName.toLowerCase()===i,n=!(!o.style||!k(t,o.style));return s&&n}function z(e,t,i){const{parentNode:o}=t;return o===i||!h.i.isHTMLElement(o)||h.i.next(t,E,o)||h.i.prev(t,E,o)?null:e.isElementCommit&&e.elementIsBlock&&!h.i.isBlock(o)?z(e,o,i):!I(e,o,!1)||h.i.isBlock(o)&&!e.elementIsBlock?null:o}function T(e,t){const{s:i,editor:o}=e,n=new S("start",{start:{start(){i.save(),(0,s.normalizeNode)(o.firstChild),this.setState("generator")}},generator:{initGenerator(){return e.s.wrapInTagGen()},nextFont(e){const t=e.next();if(t.done)this.setState("end");else if(!((e,t)=>!!h.i.closest(e,["style","script"],t))(t.value,o)&&!h.i.isEmptyContent(t.value))return this.setState("check"),t.value}},check:{work(i){let o=z(t,i,e.editor)||((e,t)=>{let{firstChild:i}=t;for(;i&&!E(i);)if(i=i.nextSibling,!i)return null;return i&&!h.i.next(i,E,t)&&I(e,i,!1)?i:null})(t,i);return o?(this.setState("wholeElement"),o):(o=h.i.closest(i,(e=>I(t,e,!0)),e.editor),o&&(t.elementIsBlock||y(o,i,e)),t.elementIsList&&h.i.isTag(o,["ul","ol"])?(this.setState("orderList"),i):o?(this.setState("wholeElement"),o):((e,t)=>{const i=[],o=[];let n;const r=e.options.style;if(t.firstChild){const a=h.i.eachGen(t);let l=a.next();for(;!l.done;){const t=l.value;!I(e,t,!0)||r&&!k(t,r)?r&&x(e,t)?(void 0===n&&(n=!1),o.push((()=>{(0,s.css)(t,Object.keys(r).reduce(((e,t)=>(e[t]=null,e)),{})),(0,s.attr)(t,"style")||(0,s.attr)(t,"style",null),(0,s.attr)(t,"style")||t.nodeName.toLowerCase()!==e.element||i.push(t)}))):h.i.isEmptyTextNode(t)||void 0===n&&(n=!1):(void 0===n&&(n=!0),i.push(t)),l=a.next()}}return o.forEach((e=>e())),i.forEach(h.i.unwrap),!!n})(t,i)?(this.setState("endProcess"),null):(this.setState("wrap"),i))}},wholeElement:{toggleStyles(i){let o=D;var s,n;n=i,o=((s=t).elementIsBlock||h.i.isTag(n,s.element)&&!s.elementIsDefault)&&(h.i.unwrap(n),1)?L:p(t,i,e,o),this.setState("generator",o)}},orderList:{toggleStyles(i){let o=D;const s=h.i.closest(i,"li",e.editor);s&&h.i.closest(i,["ul","ol"],e.editor)?(o=((e,t,i,o)=>{if(!t)return o;const s=t.parentElement;return s?s.tagName.toLowerCase()!==e.element?(p(e,h.i.replace(s,e.element,i.createInside),i,o),P):p(e,t.parentElement,i,D,!0)===A?p(e,t.parentElement,i,o):(y(s,t,i),h.i.unwrap(t.parentElement),h.i.replace(t,i.o.enter,i.createInside),o):o})(t,s,e,o),this.setState(o!==P&&o!==L&&o!==A?"generator":"endWhile")):this.setState("generator")}},wrap:{toggleStyles(i){if("unwrap"!==this.getSubState()){const o=((e,t,i)=>{const o=((e,t,i)=>{if(e.elementIsBlock){const e=h.i.up(t,(e=>h.i.isBlock(e)&&!h.i.isTag(e,["td","th","tr","tbody","table","li","ul","ol"])),i.editor);if(e)return e}return e.elementIsBlock?((e,t,i,o)=>{const s=i.editor,n=i.createInside,r=(e,t="previousSibling")=>{let o=e,n=e;for(;n&&!h.i.isTag(n,i.o.enter)&&(o=n,n=n[t]?n[t]:n.parentNode&&!h.i.isBlock(n.parentNode)&&n.parentNode!==s?n.parentNode:null,!h.i.isBlock(n)););return o},a=r(t),l=r(t,"nextSibling"),c=o();c.setStartBefore(a),c.setEndAfter(l);const d=c.extractContents(),u=n.element(e.element);return u.appendChild(d),c.insertNode(u),e.elementIsBlock&&h.i.isEmpty(u)&&!h.i.isTag(u.firstElementChild,"br")&&u.appendChild(n.element("br")),u})(e,t,i,i.s.createRange):((0,s.attr)(t,"size",null),t)})(e,t,i);return e.elementIsList?((e,t,i)=>{const o=h.i.replace(t,"li",i.createInside);let s=o.previousElementSibling||o.nextElementSibling;return h.i.isTag(s,["ul","ol"])||(s=i.createInside.element(e.element),h.i.before(o,s)),o.previousElementSibling===s?h.i.append(s,o):h.i.prepend(s,o),s})(e,o,i):h.i.replace(o,e.element,i.createInside,!0)})(t,i,e);p(t,o,e,j)}this.setState("generator")}},endWhile:{nextFont(e){e.next().done&&this.setState("end")}},endProcess:{toggleStyles(){this.setState("generator")}},end:{finalize(){i.restore()}}});n.dispatch("start");const r=n.dispatch("initGenerator");for(;"end"!==n.getState();){const e=n.dispatch("nextFont",r);if(e){const t=n.dispatch("work",e);n.dispatch("toggleStyles",t)}}n.dispatch("finalize",r)}const j="wrap",L="unwrap",A="change",M="unset",D="initial",P="replace";class _{constructor(e){this.options=e}get elementIsList(){return!(!this.options.element||!["ul","ol"].includes(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){T(e,this)}}},(e,t,i)=>{"use strict";i.d(t,{d:()=>s});var o=i(45);function s(e){return(0,o.HD)(e)||(0,o.kJ)(e)?e.length:(0,o.PO)(e)?Object.keys(e).length:0}},(e,t,i)=>{"use strict";function o(){let e=!0;try{const t=document.createElement("input");t.type="color",e="color"===t.type&&"number"!=typeof t.selectionStart}catch(t){e=!1}return e}i.d(t,{EO:()=>o,Zt:()=>f,kJ:()=>s.k,jn:()=>n.j,Z$:()=>m,Xy:()=>r.X,LP:()=>r.L,mf:()=>a.m,FP:()=>c,I4:()=>d,Gu:()=>p,GN:()=>v,Zu:()=>b.Z,A1:()=>w,QC:()=>C.Q,hj:()=>k.h,kE:()=>g.k,PO:()=>S.P,tI:()=>E.t,HD:()=>l.H,GI:()=>l.G,PX:()=>I.P,r1:()=>x,f2:()=>y.f,nj:()=>u.n,FJ:()=>z.F});var s=i(9),n=i(33),r=i(22),a=i(11),l=i(8);const c=e=>(0,l.H)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""));function d(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/)}var h=i(42),u=i(10);function p(e){return!(0,u.n)(e)&&(0,a.m)(e.init)}function m(e){return!(0,u.n)(e)&&(0,a.m)(e.destruct)}function f(e){return!(0,u.n)(e)&&h.i.isElement(e.container)}var g=i(34);function v(e){return(0,l.H)(e)&&(0,g.k)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}var b=i(46),y=i(19);const w=e=>(0,l.H)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e);var C=i(12),k=i(25),S=i(20),E=i(27),I=i(40);function x(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_.]/.test(e)}var z=i(21)},(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var o=i(11);function s(e){return!!(e&&e instanceof Object&&(0,o.m)(e.constructor)&&("undefined"!=typeof Jodit&&e instanceof Jodit||e.isJodit))}},(e,t,i)=>{"use strict";i.d(t,{b:()=>s.b,i:()=>o.i});var o=i(42),s=i(48)},function(e,t,i){"use strict";i.d(t,{b:()=>a});var o=i(55),s=i(15),n=i(49),r=i(42);class a extends s.a{constructor(e,t={}){super(),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0}setWork(e){return this.isWorked&&this.break(),this.workNodes=r.i.eachGen(e,!this.options.reverse),this.isFinished=!1,this.startIdleRequest(),this}startIdleRequest(){var e;this.idleId=this.async.requestIdleCallback(this.workPerform,{timeout:null!==(e=this.options.timeout)&&void 0!==e?e:10})}break(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){this.stop()}workPerform(e){var t;if(this.workNodes){this.isWorked=!0;let i=0;const o=null!==(t=this.options.timeoutChunkSize)&&void 0!==t?t:50;for(;!this.isFinished&&(e.timeRemaining()>0||e.didTimeout&&o>=i);){const e=this.workNodes.next();if(i+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this.startIdleRequest()}visitNode(e){var t;return!(!e||void 0!==this.options.whatToShow&&e.nodeType!==this.options.whatToShow)&&null!==(t=this.emit("visit",e))&&void 0!==t&&t}}(0,o.gn)([n.autobind],a.prototype,"workPerform",null)},function(e,t,i){"use strict";i.r(t),i.d(t,{autobind:()=>C,cache:()=>s,component:()=>n.w,debounce:()=>c,getPropertyDescriptor:()=>v.w7,hook:()=>u,idle:()=>h,nonenumerable:()=>p,persistent:()=>f,throttle:()=>d,wait:()=>g,watch:()=>v.YP});var o=i(28);function s(e,t,i){const s=i.get;if(!s)throw(0,o.error)("Getter property descriptor expected");i.get=function(){const e=s.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}var n=i(50),r=i(45),a=i(51),l=i(13);function c(e,t=!1,i="debounce"){return(s,n)=>{const c=s[n];if(!(0,r.mf)(c))throw(0,l.vU)("Handler must be a Function");return s.hookStatus(a.n$.ready,(s=>{const{async:a}=s;(0,o.assert)(null!=a,`Component ${s.componentName||s.constructor.name} should have "async:IAsync" field`);const l=(0,r.mf)(e)?e(s):e;Object.defineProperty(s,n,{configurable:!0,value:a[i](s[n].bind(s),(0,r.hj)(l)||(0,r.PO)(l)?l:s.defaultTimeout,t)})})),{configurable:!0,get(){return c.bind(this)}}}}function d(e,t=!1){return c(e,t,"throttle")}function h(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,o.error)("Handler must be a Function");e.hookStatus(a.n$.ready,(e=>{const{async:i}=e,o=e[t];e[t]=(...t)=>i.requestIdleCallback(o.bind(e,...t))}))}}function u(e){return(t,i)=>{if(!(0,r.mf)(t[i]))throw(0,l.vU)("Handler must be a Function");t.hookStatus(e,(e=>{e[i].call(e)}))}}const p=(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})};var m=i(19);function f(e,t){e.hookStatus(a.n$.ready,(e=>{const i=(0,m.f)(e)?e:e.jodit,o=`${i.options.namespace}${e.componentName}_prop_${t}`,s=e[t];Object.defineProperty(e,t,{get(){var e;return null!==(e=i.storage.get(o))&&void 0!==e?e:s},set(e){i.storage.set(o,e)}})}))}function g(e){return(t,i)=>{if(!(0,o.isFunction)(t[i]))throw(0,o.error)("Handler must be a Function");t.hookStatus(a.n$.ready,(t=>{const{async:o}=t,s=t[i];let n=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...r){o.clearTimeout(n),e(t)?s.apply(t,r):n=o.setTimeout((()=>i(...r)),10)}})}))}}var v=i(17);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e=>typeof e:e=>e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e,b(e)}function y(e,t,i){var o=i.value;if("function"!=typeof o)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(b(o)));var s=!1;return{configurable:!0,get(){if(s||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof o)return o;var i=o.bind(this);return s=!0,Object.defineProperty(this,t,{configurable:!0,get:()=>i,set(e){o=e,delete this[t]}}),s=!1,i},set(e){o=e}}}function w(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((t=>{if("constructor"!==t){var i=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof i.value&&Object.defineProperty(e.prototype,t,y(e,t,i))}})),e}function C(){return 1===arguments.length?w.apply(void 0,arguments):y.apply(void 0,arguments)}},function(e,t,i){"use strict";function o(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,{w:()=>o})},function(e,t,i){"use strict";i.d(t,{wA:()=>s.w,n$:()=>o.n,Hr:()=>n});var o=i(18),s=i(52);class n extends s.w{constructor(e){super(),this.setParentView(e)}get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}}},function(e,t,i){"use strict";i.d(t,{w:()=>l});var o=i(28),s=i(53),n=i(18),r=i(24);const a=new Map;class l{constructor(){this.async=new r.e,this.ownerWindow=window,this.__componentStatus=n.n.beforeInit,this.uid="jodit-uid-"+(0,s.fe)()}get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,o.kebabCase)(((0,o.isFunction)(this.className)?this.className():"")||(0,o.getClassName)(this))),this.__componentName}getFullElName(e,t,i){const s=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),s.push("__"+e)),t&&(s.push("_",t),s.push("_",(0,o.isVoid)(i)?"true":""+i)),s.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,o.get)(e,t||this)}get isReady(){return this.componentStatus===n.n.ready}get isDestructed(){return this.componentStatus===n.n.destructed}get isInDestruct(){return n.n.beforeDestruct===this.componentStatus||n.n.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(n.n.beforeDestruct,(()=>!this.isInDestruct&&this.destruct())),this}destruct(){this.setStatus(n.n.destructed),this.async.destruct(),a.get(this)&&a.delete(this)}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);const i=Object.getPrototypeOf(this);i&&(0,o.isFunction)(i.setStatusComponent)&&i.setStatusComponent(e,t);const s=a.get(this),n=null==s?void 0:s[e];n&&n.length&&n.forEach((e=>e(t)))}hookStatus(e,t){let i=a.get(this);i||(i={},a.set(this,i)),i[e]||(i[e]=[]),i[e].push(t)}static isInstanceOf(e,t){return e instanceof t}}l.STATUSES=n.n},(e,t,i)=>{"use strict";i.d(t,{TB:()=>b,ZO:()=>v,as:()=>d,fe:()=>p,pw:()=>m,qz:()=>f});var o=i(54),s=i(47),n=i(3),r=i(46),a=i(19),l=i(39),c=i(36);i(2);const d={};let h=1;const u=new Set;function p(){function e(){return h+=10*(Math.random()+1),Math.round(h).toString(16)}let t=e();for(;u.has(t);)t=e();return u.add(t),t}const m=new o.h,f={},g=new WeakMap;function v(e,t,i="div",o=!1){const n=t?(0,l.g)(t.prototype):"jodit-utils",d=g.get(e)||{},h=n+i,u=(0,a.f)(e)?e:e.j;if(!d[h]){let t=u.c,a=(0,r.Z)(e)&&e.o.shadowRoot?e.o.shadowRoot:e.od.body;if(o&&(0,r.Z)(e)&&e.od!==e.ed){t=e.createInside;const o="style"===i?e.ed.head:e.ed.body;a=(0,r.Z)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}const l=t.element(i,{className:`jodit jodit-${(0,c.G)(n)}-container jodit-box`});l.classList.add("jodit_theme_"+(u.o.theme||"default")),a.appendChild(l),d[h]=l,e.hookStatus("beforeDestruct",(()=>{s.i.safeRemove(l),delete d[h],Object.keys(d).length&&g.delete(e)})),g.set(e,d)}return d[h].classList.remove("jodit_theme_default","jodit_theme_dark"),d[h].classList.add("jodit_theme_"+(u.o.theme||"default")),d[h]}const b=new n.vp},function(e,t,i){"use strict";i.d(t,{h:()=>s});var o=i(28);class s{constructor(){this._items=new Map}normalizeName(e){return(0,o.kebabCase)(e).toLowerCase()}items(e){const t=[];return this._items.forEach(((e,i)=>{t.push([i,e])})),t.filter((([t])=>!e||e.includes(t)))}add(e,t){this._items.set(this.normalizeName(e),t)}get(e){return this._items.get(this.normalizeName(e))}remove(e){this._items.delete(this.normalizeName(e))}init(e){const t=e.o.extraPlugins.map((e=>(0,o.isString)(e)?{name:e}:e)),i=(0,o.splitArray)(e.o.disablePlugins).map((e=>this.normalizeName(e))),n=[],r={},a=[],l={},c=([t,c])=>{if(i.includes(t)||n.includes(t)||r[t])return;const d=null==c?void 0:c.requires;if(d&&(0,o.isArray)(d)&&this.hasDisabledRequires(i,d))return;const h=s.makePluginInstance(e,c);h&&(this.initOrWait(e,t,h,n,r),a.push(h),l[t]=h)},d=this.loadExtras(e,t);return(0,o.callPromise)(d,(()=>{e.isInDestruct||(this.items(e.o.safeMode?e.o.safePluginsList.concat(t.map((e=>e.name))):null).forEach(c),this.addListenerOnBeforeDestruct(e,a),e.__plugins=l)}))}hasDisabledRequires(e,t){return!(!(null==t?void 0:t.length)||!e.some((e=>t.includes(e))))}static makePluginInstance(e,t){try{return(0,o.isFunction)(t)?new t(e):t}catch(e){}return null}initOrWait(e,t,i,n,r){const a=(t,i)=>{if((0,o.isInitable)(i)){const o=i.requires;if((null==o?void 0:o.length)&&!o.every((e=>n.includes(e))))return r[t]=i,!1;try{i.init(e)}catch(e){}n.push(t)}else n.push(t);return i.hasStyle&&s.loadStyle(e,t),!0};a(t,i),Object.keys(r).forEach((e=>{const t=r[e];t&&a(e,t)&&(r[e]=void 0,delete r[e])}))}addListenerOnBeforeDestruct(e,t){e.e.on("beforeDestruct",(()=>{t.forEach((t=>{(0,o.isDestructable)(t)&&t.destruct(e)})),t.length=0,delete e.__plugins}))}load(e,t){return Promise.all(t.map((t=>{const i=t.url||s.getFullUrl(e,t.name,!0);return(0,o.appendScriptAsync)(e,i).then((e=>({v:e,status:"fulfilled"})),(e=>({e,status:"rejected"})))})))}static async loadStyle(e,t){const i=s.getFullUrl(e,t,!1);if(!this.styles.has(i))return this.styles.add(i),(0,o.appendStyleAsync)(e,i)}static getFullUrl(e,t,i){return t=(0,o.kebabCase)(t),e.basePath+"plugins/"+t+"/"+t+"."+(i?"js":"css")}loadExtras(e,t){if(t&&t.length)try{const i=t.filter((e=>!this._items.has(this.normalizeName(e.name))));if(i.length)return this.load(e,i)}catch(e){}}}s.styles=new Set},(e,t,i)=>{"use strict";function o(e,t,i,o){var s,n=arguments.length,r=3>n?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(3>n?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r}i.d(t,{gn:()=>o})},(e,t,i)=>{"use strict";i.d(t,{F:()=>n,f:()=>r});var o=i(47),s=i(2);function n(e,t,i){let n=o.i.findSibling(t,i),r=o.i.findSibling(t,!i);for(;o.i.isElement(n)&&!o.i.isTag(n,s.INSEPARABLE_TAGS)&&o.i.isContentEditable(n,e.editor)&&(!r||!o.i.closest(t,o.i.isElement,e.editor));)i||!n.firstChild?n.appendChild(t):o.i.before(n.firstChild,t),n=o.i.sibling(t,i),r=o.i.sibling(t,!i)}function r(e,t,i){let s=e;for(;s&&s!==i;){if(o.i.findSibling(s,t))return;s=s.parentElement,s&&s!==i&&(t?o.i.before(s,e):o.i.after(s,e))}}},(e,t,i)=>{"use strict";i.d(t,{$$:()=>d,BR:()=>h,W2:()=>m,iN:()=>p,xL:()=>u}),i(2);var o=i(8),s=i(29),n=i(42),r=i(38),a=i(5),l=i(58),c=i(52);function d(e,t){let i;return i=t.querySelectorAll(e),[].slice.call(i)}const h=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE)return"";if(!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";const i=[].filter.call(e.parentNode.childNodes,(t=>t.nodeName===e.nodeName));return h(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(i.length>1?"["+((0,a.q)(i).indexOf(e)+1)+"]":"")},u=e=>(c.w.isInstanceOf(e,l.u)&&(e=e.container),d("[ref],[data-ref]",e).reduce(((e,t)=>{const i=(0,s.Lj)(t,"-ref");return i&&(0,o.H)(i)&&(e[(0,r.e)(i)]=t,e[i]=t),e}),{})),p=e=>{if(!n.i.isElement(e))return null;const t=[];let i=e;for(;i&&i.nodeType===Node.ELEMENT_NODE;){let e=i.nodeName.toLowerCase();if(i.id){e+="#"+i.id,t.unshift(e);break}{let t=i,o=1;do{t=t.previousElementSibling,t&&t.nodeName.toLowerCase()===e&&o++}while(t);e+=":nth-of-type("+o+")"}t.unshift(e),i=i.parentNode}return t.join(" > ")};function m(e,t){let i=e;if((0,o.H)(e))try{i=t.querySelector(e)}catch(t){throw(0,s.vU)('String "'+e+'" should be valid HTML selector')}if(!i||"object"!=typeof i||!n.i.isElement(i)||!i.cloneNode)throw(0,s.vU)('Element "'+e+'" should be string or HTMLElement instance');return i}},function(e,t,i){"use strict";i.d(t,{u:()=>l});var o=i(51),s=i(42),n=i(59),r=i(8),a=i(60);class l extends o.Hr{constructor(e,t){super(e),this.name="",this.__parentElement=null,this.mods={},this.container=this.createContainer(t),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}get parentElement(){return this.__parentElement}set parentElement(e){this.__parentElement=e,e&&e.hookStatus("beforeDestruct",(()=>this.destruct())),this.updateParentElement(this)}bubble(e){let t=this.parentElement;for(;t;)e(t),t=t.parentElement;return this}updateParentElement(e){var t;return null===(t=this.__parentElement)||void 0===t||t.updateParentElement(e),this}get(e,t){return super.get(e,t)||this.getElm(e)}closest(e){const t="object"==typeof e?t=>t===e:t=>o.wA.isInstanceOf(t,e);let i=this.__parentElement;for(;i;){if(t(i))return i;i=!i.parentElement&&i.container.parentElement?l.closestElement(i.container.parentElement,l):i.parentElement}return null}static closestElement(e,t){const i=s.i.up(e,(e=>{if(e){const{component:i}=e;return i&&o.wA.isInstanceOf(i,t)}return!1}));return i?null==i?void 0:i.component:null}setMod(e,t,i=this.container){return n.$.setMod.call(this,e,t,i),this}getMod(e){return n.$.getMod.call(this,e)}getElm(e){return n.F.getElm.call(this,e)}getElms(e){return n.F.getElms.call(this,e)}update(){}appendTo(e){return e.appendChild(this.container),this}clearName(e){return e.replace(/[^a-zA-Z0-9]/g,"_")}render(e){return this.j.c.div(this.componentName)}createContainer(e){const t=this.render(e);if((0,r.H)(t)){const e=this.j.c.fromHTML(t.replace(/\*([^*]+?)\*/g,((e,t)=>a.J.get(t)||"")).replace(/&__/g,this.componentName+"__").replace(/~([^~]+?)~/g,((e,t)=>this.i18n(t))));return e.classList.add(this.componentName),e}return t}destruct(){return s.i.safeRemove(this.container),this.parentElement=null,super.destruct()}}},function(e,t,i){"use strict";i.d(t,{F:()=>s,$:()=>r});var o=i(5);class s{static getElm(e){return this.container.querySelector("."+this.getFullElName(e))}static getElms(e){return(0,o.q)(this.container.querySelectorAll("."+this.getFullElName(e)))}}var n=i(10);class r{static setMod(e,t,i){if(e=e.toLowerCase(),this.mods[e]===t)return;const s=`${this.componentName}_${e}`,r=(i||this.container).classList;(0,o.q)(r).forEach((e=>{0===e.indexOf(s)&&r.remove(e)})),!(0,n.n)(t)&&""!==t&&r.add(`${s}_${(""+t).toLowerCase()}`),this.mods[e]=t}static getMod(e){var t;return null!==(t=this.mods[e])&&void 0!==t?t:null}}},function(e,t,i){"use strict";i.d(t,{J:()=>s});var o=i(32);class s{static getIcon(e){return/<svg/i.test(e)?e:s.icons[e]||s.icons[e.replace(/-/g,"_")]||s.icons[e.replace(/_/g,"-")]||s.icons[e.toLowerCase()]}static exists(e){return void 0!==this.getIcon(e)}static get(e,t="<span></span>"){return this.getIcon(e)||t}static set(e,t){return this.icons[e.replace("_","-")]=t,this}static makeIcon(e,t){var i;let n;if(t){const r=t.name.replace(/[^a-zA-Z0-9]/g,"_");if(t.iconURL)n=e.c.span(),(0,o.i)(n,"backgroundImage","url("+t.iconURL.replace("{basePath}",(null==e?void 0:e.basePath)||"")+")");else{const o=e.e.fire("getIcon",t.name,t,r)||s.get(t.name,"")||(null===(i=e.o.extraIcons)||void 0===i?void 0:i[t.name]);o&&(n=e.c.fromHTML(o.trim()),/^<svg/i.test(t.name)||n.classList.add("jodit-icon_"+r))}}return n&&(n.classList.add("jodit-icon"),n.style.fill=t.fill),n}}s.icons={}},(e,t,i)=>{"use strict";i.d(t,{a:()=>n,f:()=>s});var o=i(2);function s(e){return e.replace((0,o.SPACE_REG_EXP_END)(),"").replace((0,o.SPACE_REG_EXP_START)(),"")}function n(e){return e.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,o.INVISIBLE_SPACE_REG_EXP_START)(),"")}},(e,t,i)=>{"use strict";i.d(t,{e:()=>n,n:()=>r});var o=i(29),s=i(42);function n(e,t){(s.i.isElement(e)||s.i.isFragment(e))&&(t.removeOnError&&(r(e),(0,o.$$)("[onerror]",e).forEach(r)),t.safeJavaScriptLink&&(r(e),(0,o.$$)('a[href^="javascript"]',e).forEach(r)))}function r(e){if(!s.i.isElement(e))return!1;let t=!1;e.hasAttribute("onerror")&&((0,o.Lj)(e,"onerror",null),t=!0);const i=e.getAttribute("href");return i&&0===i.trim().indexOf("javascript")&&((0,o.Lj)(e,"href",location.protocol+"//"+i),t=!0),t}},(e,t,i)=>{"use strict";i.d(t,{ut:()=>g,Zh:()=>m.Z,T2:()=>n,Pd:()=>r,Tz:()=>l,AH:()=>d,Jf:()=>h,aC:()=>u,D5:()=>p});var o=i(61),s=i(2);function n(e){const t={};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map((e=>(0,o.f)(e.toLowerCase()))).map((e=>s.KEY_ALIASES[e]||e)).sort().filter((e=>!t[e]&&""!==e&&(t[e]=!0))).join("+")}const r=(e,t=8)=>{const i=[];for(;e.length;)i.push(e.substr(0,t)),e=e.substr(t);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")};var a=i(42);const l=e=>{if(e){if(a.i.isText(e)&&null!=e.nodeValue&&e.parentNode)for(;a.i.isText(e.nextSibling);)null!=e.nextSibling.nodeValue&&(e.nodeValue+=e.nextSibling.nodeValue),e.nodeValue=e.nodeValue.replace((0,s.INVISIBLE_SPACE_REG_EXP)(),""),a.i.safeRemove(e.nextSibling);else l(e.firstChild);l(e.nextSibling)}};var c=i(64);const d=(...e)=>e.filter((e=>(0,c.fy)(e).length)).map(((t,i)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),i&&(t=t.replace(/^\//,"")),i!==e.length-1&&(t=t.replace(/\/$/,"")),t))).join("/"),h=e=>e.split("/").reduce(((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e}),[]).join("/")+(e.endsWith("/")?"/":""),u=e=>/^[0-9]+$/.test(""+e)?e+"px":""+e,p=(...e)=>e.filter((e=>e.length)).map((e=>e.replace(/\/$/,""))).join("/").replace(/([^:])[\\/]+/g,"$1/");var m=i(35),f=i(37);const g=e=>{const t=["#"];let i=(0,f.h)(e);if(!i)return!1;if(i=(0,c.fy)(i.toUpperCase()),i=i.substr(1),3===i.length){for(let e=0;3>e;e+=1)t.push(i[e]),t.push(i[e]);return t.join("")}return i.length>6&&(i=i.substr(0,6)),"#"+i}},(e,t,i)=>{"use strict";i.d(t,{gP:()=>u.g,eV:()=>o.e,Qy:()=>s.Q,ag:()=>h,GL:()=>u.G,gB:()=>d,Pz:()=>p.P,fy:()=>m.f,as:()=>m.a,Ps:()=>l});var o=i(38),s=i(65),n=i(1),r=i(29),a=i(8);function l(e){return e.length?e[0].toUpperCase()+e.substr(1):""}var c=i(2);const d=(e,t)=>{if(!t||!t.length)return e;const i=/%([sd])/g;let o=i.exec(e),s=e,n=0;for(;o&&void 0!==t[n];)s=s.replace(o[0],""+t[n]),n+=1,o=i.exec(e);return s};function h(e,t,i){if(!(0,a.H)(e))throw(0,r.vU)("i18n: Need string in first argument");if(!e.length)return e;const o=!(void 0===i||!i.debugLanguage);let s;const h=e=>t&&t.length?d(e,t):e,u=(0,r.X9)(n.D.defaultOptions.language,n.D.defaultOptions.language),p=(0,r.X9)(null==i?void 0:i.language,u),m=t=>{if(!t)return;if((0,a.H)(t[e]))return h(t[e]);const i=e.toLowerCase();if((0,a.H)(t[i]))return h(t[i]);const o=l(e);return(0,a.H)(t[o])?h(t[o]):void 0};s=void 0!==c.lang[p]?c.lang[p]:void 0!==c.lang[u]?c.lang[u]:c.lang.en;const f=null==i?void 0:i.i18n;if(f&&f[p]){const e=m(f[p]);if(e)return e}return m(s)||(c.lang.en&&(0,a.H)(c.lang.en[e])&&c.lang.en[e]?h(c.lang.en[e]):o?"{"+e+"}":h(e))}var u=i(36),p=i(23),m=i(61)},(e,t,i)=>{"use strict";i.d(t,{Q:()=>s});var o=i(2);function s(e,t,i=0,s=1){let n=0,r=0,a=-1,l=0,c=0;for(r=i;e.length>n&&t.length>r;)e[n].toLowerCase()===t[r].toLowerCase()?(n++,l++,c=0,-1===a&&(a=r)):n>0&&(s>c||t[r]===o.INVISIBLE_SPACE?(c++,l++):(n=0,a=-1,l=0,c=0,r--)),r++;return n===e.length?[a,l]:[-1,0]}},(e,t,i)=>{"use strict";i.d(t,{G:()=>o.G});var o=i(67)},function(e,t,i){"use strict";i.d(t,{G:()=>d});var o=i(55),s=i(42),n=i(28),r=i(58),a=i(49),l=i(52),c=i(53);class d extends r.u{constructor(e,t=!0){super(e),this.smart=t,this.isOpened=!1,this.strategy="leftBottom",this.viewBound=()=>({left:0,top:0,width:this.ow.innerWidth,height:this.ow.innerHeight}),this.childrenPopups=new Set,(0,n.attr)(this.container,"role","popup")}className(){return"Popup"}updateParentElement(e){return e!==this&&l.w.isInstanceOf(e,d)&&(this.childrenPopups.forEach((t=>{!e.closest(t)&&t.isOpened&&t.close()})),this.childrenPopups.has(e)||this.j.e.on(e,"beforeClose",(()=>{this.childrenPopups.delete(e)})),this.childrenPopups.add(e)),super.updateParentElement(e)}setContent(e){s.i.detach(this.container);const t=this.j.c.div(this.componentName+"__content");let i;return l.w.isInstanceOf(e,r.u)?(i=e.container,e.parentElement=this):i=(0,n.isString)(e)?this.j.c.fromHTML(e):e,t.appendChild(i),this.container.appendChild(t),this.updatePosition(),this}open(e,t=!1,i){if((0,n.markOwner)(this.jodit,this.container),this.calculateZIndex(),this.isOpened=!0,this.addGlobalListeners(),this.targetBound=t?this.getKeepBound(e):e,i)i.appendChild(this.container);else{const e=(0,c.ZO)(this.jodit,d);i!==this.container.parentElement&&e.appendChild(this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this}calculateZIndex(){if(this.container.style.zIndex)return;const e=e=>{const t=e.container.style.zIndex||e.o.zIndex;return!!t&&(this.setZIndex(1+parseInt(""+t,10)),!0)},{j:t}=this;if(e(t))return;let i=this.parentElement;for(;i;){if(e(t))return;if(i.container.style.zIndex)return void this.setZIndex(1+parseInt(""+i.container.style.zIndex,10));if(!i.parentElement&&i.container.parentElement){const e=r.u.closestElement(i.container.parentElement,r.u);if(e){i=e;continue}}i=i.parentElement}}getKeepBound(e){const t=e(),i=this.od.elementFromPoint(t.left,t.top);if(!i)return e;const o=s.i.isHTMLElement(i)?i:i.parentElement,r=(0,n.position)(o,this.j);return()=>{const t=e(),i=(0,n.position)(o,this.j);return{...t,top:t.top+(i.top-r.top),left:t.left+(i.left-r.left)}}}updatePosition(){if(!this.isOpened)return this;const[e,t]=this.calculatePosition(this.targetBound(),this.viewBound(),(0,n.position)(this.container,this.j));return this.setMod("strategy",t),(0,n.css)(this.container,{left:e.left,top:e.top}),this.childrenPopups.forEach((e=>e.updatePosition())),this}throttleUpdatePosition(){this.updatePosition()}calculatePosition(e,t,i,o=this.strategy){const s={left:e.left,right:e.left-(i.width-e.width)},r={bottom:e.top+e.height,top:e.top-i.height},a=Object.keys(s).reduce(((e,t)=>e.concat(Object.keys(r).map((e=>`${t}${(0,n.ucfirst)(e)}`)))),[]),l=e=>{const[t,o]=(0,n.kebabCase)(e).split("-");return{left:s[t],top:r[o],width:i.width,height:i.height}},c=e=>{let t=null;return t=d.boxInView(l(o),e)?o:a.find((t=>{if(d.boxInView(l(t),e))return t}))||null,t};let h=c((0,n.position)(this.j.container,this.j));return h&&d.boxInView(l(h),t)||(h=c(t)||h||o),[l(h),h]}static boxInView(e,t){return!(-2>e.top-t.top||-2>e.left-t.left||-2>t.top+t.height-(e.top+e.height)||-2>t.left+t.width-(e.left+e.width))}close(){return this.isOpened?(this.isOpened=!1,this.childrenPopups.forEach((e=>e.close())),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.removeGlobalListeners(),s.i.safeRemove(this.container),this):this}closeOnOutsideClick(e){this.isOpened&&!this.isOwnClick(e)&&this.close()}isOwnClick(e){const t=(0,n.isFunction)(e.composedPath)&&e.composedPath()[0]||e.target;if(!t)return!1;const i=r.u.closestElement(t,d);return!(!i||this!==i&&!i.closest(this))}addGlobalListeners(){const e=this.throttleUpdatePosition,t=this.ow;c.TB.on("closeAllPopups",this.close),this.smart&&this.j.e.on("escape",this.close).on("mousedown touchstart",this.closeOnOutsideClick).on(t,"mousedown touchstart",this.closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",e).on(this.container,"scroll mousewheel",e).on(t,"scroll",e).on(t,"resize",e),s.i.up(this.j.container,(t=>{t&&this.j.e.on(t,"scroll mousewheel",e)}))}removeGlobalListeners(){const e=this.throttleUpdatePosition,t=this.ow;c.TB.off("closeAllPopups",this.close),this.smart&&this.j.e.off("escape",this.close).off("mousedown touchstart",this.closeOnOutsideClick).off(t,"mousedown touchstart",this.closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",e).off(this.container,"scroll mousewheel",e).off(t,"scroll",e).off(t,"resize",e),(0,n.assert)(this.j.container.isConnected,"The container must be built into the DOM"),s.i.up(this.j.container,(t=>{t&&this.j.e.off(t,"scroll mousewheel",e)}))}setZIndex(e){this.container.style.zIndex=""+e}destruct(){return this.close(),super.destruct()}}(0,o.gn)([a.autobind],d.prototype,"updatePosition",null),(0,o.gn)([(0,a.throttle)(10),a.autobind],d.prototype,"throttleUpdatePosition",null),(0,o.gn)([a.autobind],d.prototype,"close",null),(0,o.gn)([a.autobind],d.prototype,"closeOnOutsideClick",null)},function(e,t,i){"use strict";i.d(t,{zx:()=>o.zx,y3:()=>o.y3,Yc:()=>o.Yc});var o=i(69),s=i(55),n=i(72),r=i(50),a=i(4);let l=class extends n.q{constructor(e,t={radio:!0}){var i,s;super(e,null===(i=t.options)||void 0===i?void 0:i.map((t=>{const i=new o.y3(e,{text:t.text,value:t.value,variant:"primary"});return i.onAction((()=>{this.select(t.value)})),i})),t),this.options=t,this.select(null!==(s=t.value)&&void 0!==s?s:0)}className(){return"UIButtonGroup"}render(e){return`<div>\n\t\t\t<div class="&__label">~${e.label}~</div>\n\t\t\t<div class="&__options"></div>\n\t\t</div>`}appendChildToContainer(e){const t=this.getElm("options");(0,a.h)(null!=t,"Options does not exist"),t.appendChild(e)}select(e){var t,i;this.elements.forEach(((t,i)=>{i===e||t.state.value===e?t.state.activated=!0:this.options.radio&&(t.state.activated=!1)}));const o=this.elements.filter((e=>e.state.activated)).map((e=>({text:e.state.text,value:e.state.value})));this.jodit.e.fire(this,"select",o),null===(i=(t=this.options).onChange)||void 0===i||i.call(t,o)}};l=(0,s.gn)([r.w],l)},function(e,t,i){"use strict";i.d(t,{Yc:()=>p,y3:()=>m,zx:()=>f});var o=i(55),s=i(58),n=i(42),r=i(29),a=i(8),l=i(11),c=i(60),d=i(70),h=i(49),u=i(18);const p=()=>({size:"middle",type:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0});let m=class extends s.u{constructor(e,t){super(e),this.isButton=!0,this.state=p(),this.actionHandlers=[],this.updateSize(),this.onChangeSize(),this.onChangeStatus(),t&&this.hookStatus(u.n.ready,(()=>{this.setState(t)}))}className(){return"UIButton"}setState(e){return Object.assign(this.state,e),this}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,r.Lj)(this.container,"type",this.state.type)}updateSize(){const e=this.closest(d.b);e&&(this.state.size=e.buttonSize)}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text)}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,r.Lj)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,r.Lj)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,r.Lj)(this.container,"data-ref",this.state.name),(0,r.Lj)(this.container,"ref",this.state.name)}onChangeTooltip(){this.get("j.o.useNativeTooltip")&&(0,r.Lj)(this.container,"title",this.state.tooltip),(0,r.Lj)(this.container,"aria-label",this.state.tooltip)}onChangeTabIndex(){(0,r.Lj)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){const e=this.get("j.o.textIcons");if(!0===e||(0,l.m)(e)&&e(this.state.name))return;n.i.detach(this.icon);const t=c.J.makeIcon(this.j,this.state.icon);t&&this.icon.appendChild(t)}focus(){this.container.focus()}isFocused(){const{activeElement:e}=this.od;return!(!e||!n.i.isOrContains(this.container,e))}createContainer(){const e=this.componentName,t=this.j.c.element("button",{class:e,type:"button",role:"button",ariaPressed:!1});return this.icon=this.j.c.span(e+"__icon"),this.text=this.j.c.span(e+"__text"),t.appendChild(this.icon),t.appendChild(this.text),this.j.e.on(t,"click",this.onActionFire),t}destruct(){return this.j.e.off(this.container),super.destruct()}onAction(e){return this.actionHandlers.push(e),this}onActionFire(e){e.buffer={actionTrigger:this},this.actionHandlers.forEach((t=>t.call(this,e)))}};function f(e,t,i,o){const s=new m(e);return s.state.tabIndex=e.o.allowTabNavigation?0:-1,(0,a.H)(t)?(s.state.icon.name=t,s.state.name=t,o&&(s.state.variant=o),i&&(s.state.text=i)):s.setState(t),s}(0,o.gn)([(0,h.watch)("state.size")],m.prototype,"onChangeSize",null),(0,o.gn)([(0,h.watch)("state.type")],m.prototype,"onChangeType",null),(0,o.gn)([(0,h.watch)("parentElement")],m.prototype,"updateSize",null),(0,o.gn)([(0,h.watch)("state.variant")],m.prototype,"onChangeStatus",null),(0,o.gn)([(0,h.watch)("state.text")],m.prototype,"onChangeText",null),(0,o.gn)([(0,h.watch)("state.text")],m.prototype,"onChangeTextSetMode",null),(0,o.gn)([(0,h.watch)("state.disabled")],m.prototype,"onChangeDisabled",null),(0,o.gn)([(0,h.watch)("state.activated")],m.prototype,"onChangeActivated",null),(0,o.gn)([(0,h.watch)("state.name")],m.prototype,"onChangeName",null),(0,o.gn)([(0,h.watch)("state.tooltip")],m.prototype,"onChangeTooltip",null),(0,o.gn)([(0,h.watch)("state.tabIndex")],m.prototype,"onChangeTabIndex",null),(0,o.gn)([(0,h.watch)("state.icon")],m.prototype,"onChangeIcon",null),(0,o.gn)([h.autobind],m.prototype,"onActionFire",null),m=(0,o.gn)([h.component],m)},function(e,t,i){"use strict";i.d(t,{b:()=>g});var o=i(55),s=i(71),n=i(1),r=i(9),a=i(29),l=i(49),c=i(72),d=i(73),h=i(74),u=i(69),p=i(75),m=i(14),f=i(52);let g=class extends c.q{constructor(e){super(e),this.mode="horizontal",this.removeButtons=[],this.onChangeMode()}className(){return"UIList"}onChangeMode(){this.setMod("mode",this.mode)}makeGroup(){return new c.q(this.jodit)}get buttons(){return this.allChildren.filter((e=>f.w.isInstanceOf(e,u.y3)))}getButtonsNames(){return this.buttons.map((e=>e instanceof u.y3&&e.state.name||"")).filter((e=>""!==e))}setRemoveButtons(e){return this.removeButtons=e||[],this}build(e,t=null){e=(0,m.C)(e),this.clear();let i,o=!1,l=this.makeGroup();this.append(l),l.setMod("line",!0);const c=e=>{let s=null;switch(e.name){case"\n":l=this.makeGroup(),l.setMod("line",!0),i=this.makeGroup(),l.append(i),this.append(l);break;case"|":o||(o=!0,s=new d.l(this.j));break;case"---":{i.setMod("before-spacer",!0);const e=new h.W(this.j);l.append(e),i=this.makeGroup(),l.append(i),o=!1;break}default:o=!1,s=this.makeButton(e,t)}s&&(i||(i=this.makeGroup(),l.append(i)),i.append(s))},u=e=>!this.removeButtons.includes(e.name);return e.forEach((e=>{if((0,p.A)(e)){const t=e.buttons.filter((e=>e));t.length&&(i=this.makeGroup(),i.setMod("separated",!0).setMod("group",e.group),l.append(i),((e,t)=>((0,r.k)(e)?e:(0,a.am)(e,!1).map((t=>(0,a.II)({name:t},e[t]||{})))).map((e=>(0,s.Y)(e,t||n.D.defaultOptions.controls))))(t,this.j.o.controls).filter(u).forEach(c))}else{i||(i=this.makeGroup(),l.append(i));const t=(0,s.Y)(e,this.j.o.controls);u(t)&&c(t)}})),this.update(),this}makeButton(e,t){return new u.y3(this.j)}};(0,o.gn)([(0,l.watch)("mode")],g.prototype,"onChangeMode",null),g=(0,o.gn)([l.component],g)},(e,t,i)=>{"use strict";i.d(t,{Y:()=>n,z:()=>r});var o=i(28),s=i(1);function n(e,t){let i;return t||(t=s.D.defaultOptions.controls),(0,o.isString)(e)?i=r(e,t)||{name:e,command:e,tooltip:e}:(i={name:"empty",...(0,o.ConfigFlatten)(e)},void 0!==t[i.name]&&(i={...(0,o.ConfigFlatten)(t[i.name]),...(0,o.ConfigFlatten)(i)})),i}function r(e,t){let[i,s]=e.split(/\./),n=t;return null!=s?void 0!==t[i]&&(n=t[i]):s=i,n[s]?{name:s,...(0,o.ConfigFlatten)(n[s])}:void 0}},function(e,t,i){"use strict";i.d(t,{q:()=>d});var o,s=i(55),n=i(58),r=i(49),a=i(28),l=i(42),c=i(52);let d=o=class extends n.u{constructor(e,t,i){super(e,i),this.options=i,this.syncMod=!1,this.elements=[],this.buttonSize="middle",null==t||t.forEach((e=>e&&this.append(e))),(null==i?void 0:i.name)&&(this.name=i.name)}className(){return"UIGroup"}get allChildren(){const e=[],t=[...this.elements];for(;t.length;){const i=t.shift();(0,a.isArray)(i)?t.push(...i):c.w.isInstanceOf(i,o)?t.push(...i.elements):i&&e.push(i)}return e}update(){this.elements.forEach((e=>e.update())),this.setMod("size",this.buttonSize)}append(e,t){if((0,a.isArray)(e))return e.forEach((e=>this.append(e,t))),this;if(this.elements.push(e),e.name&&e.container.classList.add(this.getFullElName(e.name)),t){const i=this.getElm(t);(0,a.assert)(null!=i,"Element does not exist"),i.appendChild(e.container)}else this.appendChildToContainer(e.container);return e.parentElement=this,e.update(),this}setMod(e,t){return this.syncMod&&this.elements.forEach((i=>i.setMod(e,t))),super.setMod(e,t)}appendChildToContainer(e){this.container.appendChild(e)}remove(e){const t=this.elements.indexOf(e);return-1!==t&&(this.elements.splice(t,1),l.i.safeRemove(e.container),e.parentElement=null),this}clear(){return this.elements.forEach((e=>e.destruct())),this.elements.length=0,this}destruct(){return this.clear(),super.destruct()}};(0,s.gn)([(0,r.watch)("buttonSize")],d.prototype,"update",null),d=o=(0,s.gn)([r.component],d)},(e,t,i)=>{"use strict";i.d(t,{l:()=>r});var o=i(55),s=i(58),n=i(50);let r=class extends s.u{className(){return"UISeparator"}};r=(0,o.gn)([n.w],r)},(e,t,i)=>{"use strict";i.d(t,{W:()=>r});var o=i(55),s=i(58),n=i(50);let r=class extends s.u{className(){return"UISpacer"}};r=(0,o.gn)([n.w],r)},(e,t,i)=>{"use strict";i.d(t,{A:()=>s,q:()=>n});var o=i(9);const s=e=>(0,o.k)(e.buttons);function n(e,t){const i=t.getRegisteredButtonGroups();return new Set(e.reduce(((e,t)=>{var o;return s(t)?e=e.concat([...t.buttons,...null!==(o=i[t.group])&&void 0!==o?o:[]]):e.push(t),e}),[]))}},function(e,t,i){"use strict";i.d(t,{zx:()=>s.zx,JO:()=>d.J,GI:()=>n.G,ko:()=>u,eC:()=>c.eC,y3:()=>s.y3,mA:()=>c.mA,u1:()=>o.u,Z:()=>c.Z,x4:()=>c.x4,qe:()=>r.q,u3:()=>c.u3,bz:()=>a.b,lU:()=>l.l,GJ:()=>c.GJ});var o=i(58),s=i(68),n=i(66),r=i(72),a=i(70),l=i(73),c=(i(74),i(77)),d=i(60),h=i(42);class u extends o.u{className(){return"ProgressBar"}render(){return"<div><div></div></div>"}show(){return(this.j.workplace||this.j.container).appendChild(this.container),this}hide(){return h.i.safeRemove(this.container),this}progress(e){return this.container.style.width=e.toFixed(2)+"%",this}destruct(){return this.hide(),super.destruct()}}},function(e,t,i){"use strict";i.d(t,{eC:()=>A,mA:()=>T,Z:()=>L,x4:()=>E,u3:()=>b,Cj:()=>k,GJ:()=>x});var o={};i.r(o),i.d(o,{required:()=>m,url:()=>f});var s=i(55),n=i(72),r=i(58),a=i(29),l=i(5),c=i(42),d=i(49),h=i(60),u=i(40),p=i(61);const m=e=>!!(0,p.f)(e.value).length||(e.error="Please fill out this field",!1),f=e=>!!(0,u.P)((0,p.f)(e.value))||(e.error="Please enter a web address",!1),g=e=>!!(0,p.f)(e.value).length||(e.error="Please fill out this field",!1);var v;let b=v=class extends r.u{constructor(e,t){super(e,t),this.label=this.j.c.span(this.getFullElName("label")),this.icon=this.j.c.span(this.getFullElName("icon")),this.clearButton=this.j.c.span(this.getFullElName("clear"),h.J.get("cancel")),this.state={...v.defaultState},this.__errorBox=this.j.c.span(this.getFullElName("error")),this.validators=new Set([]),void 0!==(null==t?void 0:t.value)&&(t.value=""+t.value),Object.assign(this.state,t),void 0!==this.state.clearButton&&(this.j.e.on(this.clearButton,"click",(e=>{e.preventDefault(),this.nativeInput.value="",this.j.e.fire(this.nativeInput,"input"),this.focus()})).on(this.nativeInput,"input",(()=>{this.state.clearButton=!!this.value.length})),this.state.clearButton=!!this.value.length),this.j.e.on(this.nativeInput,"focus blur",(()=>{this.onChangeFocus()})).on(this.nativeInput,"input change",this.onChangeValue),this.onChangeState(),this.onChangeClassName(),this.onChangeStateValue()}className(){return"UIInput"}onChangeClear(){this.state.clearButton?c.i.after(this.nativeInput,this.clearButton):c.i.safeRemove(this.clearButton)}onChangeClassName(e,t){t&&this.container.classList.remove(t),this.state.className&&this.container.classList.add(this.state.className)}onChangeState(){this.name=this.state.name;const e=this.nativeInput,{name:t,icon:i,type:o,ref:s,required:n,placeholder:r,autocomplete:l,label:d}=this.state;(0,a.Lj)(e,"name",t),(0,a.Lj)(e,"type",o),(0,a.Lj)(e,"data-ref",s||t),(0,a.Lj)(e,"ref",s||t),(0,a.Lj)(e,"required",n||null),(0,a.Lj)(e,"autocomplete",l?null:"off"),(0,a.Lj)(e,"placeholder",r?this.j.i18n(r):""),i&&h.J.exists(i)?(c.i.before(e,this.icon),this.icon.innerHTML=h.J.get(i)):c.i.safeRemove(this.icon),d?(c.i.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(d)):c.i.safeRemove(this.label),this.updateValidators()}updateValidators(){var e;this.validators.clear(),this.state.required&&this.validators.add(m),null===(e=this.state.validators)||void 0===e||e.forEach((e=>{const t=o[e];t&&this.validators.add(t)}))}set error(e){this.setMod("has-error",!!e),e?(this.__errorBox.innerText=this.j.i18n(e,this.j.i18n(this.state.label||"")),this.container.appendChild(this.__errorBox)):c.i.safeRemove(this.__errorBox)}get value(){return this.nativeInput.value}set value(e){this.value!==e&&(this.nativeInput.value=e,this.onChangeValue())}onChangeStateValue(){const e=""+this.state.value;e!==this.value&&(this.value=e)}onChangeValue(){var e,t;const{value:i}=this;this.state.value!==i&&(this.state.value=i,this.j.e.fire(this,"change",i),null===(t=(e=this.state).onChange)||void 0===t||t.call(e,i))}validate(){return this.error="",(0,l.q)(this.validators).every((e=>e(this)))}createContainer(e){const t=super.createContainer();this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());const{nativeInput:i}=this;return i.classList.add(this.getFullElName("input")),this.wrapper.appendChild(i),t.appendChild(this.wrapper),(0,a.Lj)(i,"dir",this.j.o.direction||"auto"),t}createNativeInput(e){return this.j.create.element("input")}focus(){this.nativeInput.focus()}get isFocused(){return this.nativeInput===this.j.od.activeElement}onChangeFocus(){this.setMod("focused",this.isFocused)}};b.defaultState={className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]},(0,s.gn)([(0,d.watch)("state.clearButton")],b.prototype,"onChangeClear",null),(0,s.gn)([(0,d.watch)("state.className")],b.prototype,"onChangeClassName",null),(0,s.gn)([(0,d.watch)(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"]),(0,d.debounce)()],b.prototype,"onChangeState",null),(0,s.gn)([(0,d.watch)("state.value")],b.prototype,"onChangeStateValue",null),(0,s.gn)([d.autobind],b.prototype,"onChangeValue",null),b=v=(0,s.gn)([d.component],b);var y,w=i(30),C=i(50);let k=y=class extends b{constructor(e,t){super(e,t),this.state={...y.defaultState},Object.assign(this.state,t)}className(){return"UISelect"}createContainer(e){var t;const i=super.createContainer(e),{j:o}=this,{nativeInput:s}=this,n=()=>o.create.element("option");if(void 0!==e.placeholder){const t=n();t.value="",t.text=o.i18n(e.placeholder),s.add(t)}return null===(t=e.options)||void 0===t||t.forEach((e=>{const t=n();t.value=""+e.value,t.text=o.i18n(e.text),s.add(t)})),e.size&&e.size>0&&(0,w.Lj)(s,"size",e.size),e.multiple&&(0,w.Lj)(s,"multiple",""),i}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(m),this.validators.add(g))}};k.defaultState={...b.defaultState,options:[],size:1,multiple:!1},k=y=(0,s.gn)([C.w],k);var S=i(52);let E=class extends n.q{constructor(...e){var t,i;super(...e),(null===(t=this.options)||void 0===t?void 0:t.className)&&this.container.classList.add(null===(i=this.options)||void 0===i?void 0:i.className)}className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){const e=this.allChildren.filter((e=>S.w.isInstanceOf(e,b)));for(const t of e)if(!t.validate())return!1;const t=this.allChildren.filter((e=>S.w.isInstanceOf(e,k)));for(const e of t)if(!e.validate())return!1;return!0}onSubmit(e){this.j.e.on(this.container,"submit",(()=>{const t=this.allChildren.filter((e=>S.w.isInstanceOf(e,b)));return!!this.validate()&&(e(t.reduce(((e,t)=>(e[t.state.name]=t.value,e)),{})),!1)}))}createContainer(){const e=this.j.c.element("form");return e.classList.add(this.componentName),(0,a.Lj)(e,"dir",this.j.o.direction||"auto"),e}};var I;E=(0,s.gn)([C.w],E);let x=I=class extends b{constructor(e,t){super(e,t),this.state={...I.defaultState},Object.assign(this.state,t),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}className(){return"UITextArea"}createContainer(e){return this.nativeInput=this.j.create.element("textarea"),super.createContainer(e)}};var z;x.defaultState={...b.defaultState,size:5,resizable:!0},x=I=(0,s.gn)([C.w],x);let T=z=class extends b{constructor(e,t){super(e,{...t,type:"checkbox"}),this.state={...z.defaultState},Object.assign(this.state,t)}className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}onChangeChecked(){this.value=""+this.state.checked,this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}onChangeNativeCheckBox(){this.state.checked=this.nativeInput.checked}onChangeSwitch(){this.setMod("switch",this.state.switch);let e=this.getElm("switch-slider");this.state.switch?(e||(e=this.j.c.div(this.getFullElName("switch-slider"))),c.i.after(this.nativeInput,e)):c.i.safeRemove(e)}};T.defaultState={...b.defaultState,checked:!1,switch:!1},(0,s.gn)([(0,d.watch)("state.checked"),(0,d.hook)("ready")],T.prototype,"onChangeChecked",null),(0,s.gn)([(0,d.watch)("nativeInput:change")],T.prototype,"onChangeNativeCheckBox",null),(0,s.gn)([(0,d.watch)("state.switch"),(0,d.hook)("ready")],T.prototype,"onChangeSwitch",null),T=z=(0,s.gn)([d.component],T);var j=i(69);let L=class extends b{constructor(e,t){super(e,{type:"file",...t}),this.state={...b.defaultState,type:"file",onlyImages:!0}}className(){return"UIFileInput"}createContainer(e){this.button=new j.y3(this.j,{icon:{name:"plus"}});const{container:t}=this.button;this.nativeInput||(this.nativeInput=this.createNativeInput(e));const{nativeInput:i}=this;return i.classList.add(this.getFullElName("input")),t.classList.add(this.componentName),t.appendChild(i),t}createNativeInput(e){return this.j.create.fromHTML(`<input\n\t\t\ttype="file"\n\t\t\taccept="${e.onlyImages?"image/*":"*"}"\n\t\t\ttabindex="-1"\n\t\t\tdir="auto"\n\t\t\tmultiple=""\n\t\t/>`)}};L=(0,s.gn)([C.w],L);let A=class extends n.q{constructor(e,t,i={align:"left"}){super(e,t),this.options=i,this.setMod("align",this.options.align||"left"),this.setMod("width",this.options.width||""),this.options.mod&&this.setMod(this.options.mod,!0),this.options.className&&this.container.classList.add(this.options.className),(0,a.Lj)(this.container,"data-ref",i.ref),(0,a.Lj)(this.container,"ref",i.ref)}className(){return"UIBlock"}};A=(0,s.gn)([C.w],A)},e=>{e.exports={"Type something":"Start writing...",pencil:"Edit",Quadrate:"Square"}},e=>{e.exports={"Type something":"إبدأ في الكتابة...","About Jodit":"حول جوديت","Jodit Editor":"محرر جوديت","Jodit User's Guide":"دليل مستخدم جوديت","contains detailed help for using":"يحتوي على مساعدة مفصلة للاستخدام","For information about the license, please go to our website:":"للحصول على معلومات حول الترخيص، يرجى الذهاب لموقعنا:","Buy full version":"شراء النسخة الكاملة","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"حقوق الطبع والنشر © XDSoft.net - Chupurnov Valeriy. كل الحقوق محفوظة.",Anchor:"مِرْساة","Open in new tab":"فتح في نافذة جديدة","Open editor in fullsize":"فتح المحرر في الحجم الكامل","Clear Formatting":"مسح التنسيق","Fill color or set the text color":"ملء اللون أو تعيين لون النص",Redo:"إعادة",Undo:"تراجع",Bold:"عريض",Italic:"مائل","Insert Unordered List":"إدراج قائمة غير مرتبة","Insert Ordered List":"إدراج قائمة مرتبة","Align Center":"محاذاة للوسط","Align Justify":"محاذاة مثبتة","Align Left":"محاذاة لليسار","Align Right":"محاذاة لليمين","Insert Horizontal Line":"إدراج خط أفقي","Insert Image":"إدراج صورة","Insert file":"ادخال الملف","Insert youtube/vimeo video":"إدراج فيديو يوتيوب/فيميو ","Insert link":"إدراج رابط","Font size":"حجم الخط","Font family":"نوع الخط","Insert format block":"إدراج كتلة تنسيق",Normal:"عادي","Heading 1":"عنوان 1","Heading 2":"عنوان 2","Heading 3":"عنوان 3","Heading 4":"عنوان 4",Quote:"إقتباس",Code:"كود",Insert:"إدراج","Insert table":"إدراج جدول","Decrease Indent":"تقليل المسافة البادئة","Increase Indent":"زيادة المسافة البادئة","Select Special Character":"تحديد أحرف خاصة","Insert Special Character":"إدراج حرف خاص","Paint format":"تنسيق الرسم","Change mode":"تغيير الوضع",Margins:"هوامش",top:"أعلى",right:"يمين",bottom:"أسفل",left:"يسار",Styles:"الأنماط",Classes:"الطبقات",Align:"محاذاة",Right:"اليمين",Center:"الوسط",Left:"اليسار","--Not Set--":"--غير مضبوط--",Src:"Src",Title:"العنوان",Alternative:"العنوان البديل",Link:"الرابط","Open link in new tab":"افتح الرابط في نافذة جديدة",Image:"الصورة",file:"ملف",Advanced:"متقدم","Image properties":"خصائص الصورة",Cancel:"إلغاء",Ok:"حسنا","File Browser":"متصفح الملفات","Error on load list":"حدث خطأ في تحميل القائمة ","Error on load folders":"حدث خطأ في تحميل المجلدات","Are you sure?":"هل أنت واثق؟","Enter Directory name":"أدخل اسم المجلد","Create directory":"إنشاء مجلد","type name":"أكتب إسم","Drop image":"إسقاط صورة","Drop file":"إسقاط الملف","or click":"أو أنقر","Alternative text":"النص البديل",Upload:"رفع",Browse:"تصفح",Background:"الخلفية",Text:"نص",Top:"أعلى",Middle:"الوسط",Bottom:"الأسفل","Insert column before":"إدراج عمود قبل","Insert column after":"إدراج عمود بعد","Insert row above":"إدراج صف أعلى","Insert row below":"إدراج صف أسفل","Delete table":"حذف الجدول","Delete row":"حذف الصف","Delete column":"حذف العمود","Empty cell":"خلية فارغة","Chars: %d":"%d حرف","Words: %d":"%d كلام","Strike through":"اضرب من خلال",Underline:"أكد",superscript:"حرف فوقي",subscript:"مخطوطة","Cut selection":"قطع الاختيار","Select all":"اختر الكل",Break:"استراحة","Search for":"البحث عن","Replace with":"استبدل ب",Replace:"محل",Paste:"معجون","Choose Content to Paste":"اختر محتوى للصق",source:"مصدر",bold:"بالخط العريض",italic:"مائل",brush:"شغل",link:"صلة",undo:"إلغاء",redo:"كرر",table:"طاولة",image:"صورة",eraser:"نظيف",paragraph:"فقرة",fontsize:"حجم الخط",video:"فيديو",font:"الخط",about:"حول المحرر",print:"طباعة",symbol:"رمز",underline:"أكد",strikethrough:"شطب",indent:"المسافة البادئة",outdent:"نتوء",fullsize:"ملء الشاشة",shrink:"الحجم التقليدي",copyformat:"نسخ التنسيق",hr:"الخط",ul:"قائمة",ol:"قائمة مرقمة",cut:"قطع",selectall:"اختر الكل","Embed code":"قانون","Open link":"فتح الرابط","Edit link":"تعديل الرابط","No follow":"سمة Nofollow",Unlink:"إزالة الرابط",Update:"تحديث",pencil:"لتحرير",Eye:"مراجعة"," URL":"URL",Edit:"تحرير","Horizontal align":"محاذاة أفقية",Filter:"فلتر","Sort by changed":"عن طريق التغيير","Sort by name":"بالاسم","Sort by size":"حسب الحجم","Add folder":"إضافة مجلد",Reset:"إعادة",Save:"احتفظ","Save as ...":"حفظ باسم",Resize:"تغيير الحجم",Crop:"حجم القطع",Width:"عرض",Height:"ارتفاع","Keep Aspect Ratio":"حافظ على النسب",Yes:"أن",No:"لا",Remove:"حذف",Select:"تميز","Select %s":"تميز %s","Vertical align":"محاذاة عمودية",Split:"انشق، مزق",Merge:"اذهب","Add column":"أضف العمود","Add row":"اضف سطر","License: %s":"رخصة %s",Delete:"حذف","Split vertical":"انقسام عمودي","Split horizontal":"تقسيم أفقي",Border:"الحدود","Your code is similar to HTML. Keep as HTML?":"يشبه الكود الخاص بك HTML. تبقي كما HTML؟","Paste as HTML":"الصق ك HTML",Keep:"احتفظ","Insert as Text":"إدراج كنص","Insert only Text":"إدراج النص فقط","You can only edit your own images. Download this image on the host?":"يمكنك فقط تحرير صورك الخاصة. تحميل هذه الصورة على المضيف؟","The image has been successfully uploaded to the host!":"تم تحميل الصورة بنجاح على الخادم!",palette:"لوحة","There are no files":"لا توجد ملفات في هذا الدليل.",Rename:"إعادة تسمية","Enter new name":"أدخل اسم جديد",preview:"معاينة",download:"تحميل","Paste from clipboard":"لصق من الحافظة","Your browser doesn't support direct access to the clipboard.":"متصفحك لا يدعم إمكانية الوصول المباشر إلى الحافظة.","Copy selection":"نسخ التحديد",copy:"نسخ","Border radius":"دائرة نصف قطرها الحدود","Show all":"عرض كل",Apply:"تطبيق","Please fill out this field":"يرجى ملء هذا المجال","Please enter a web address":"يرجى إدخال عنوان ويب",Default:"الافتراضي",Circle:"دائرة",Dot:"نقطة",Quadrate:"المربعة",Find:"البحث","Find Previous":"تجد السابقة","Find Next":"تجد التالي","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"للصق المحتوى قادم من Microsoft Word/Excel الوثيقة. هل تريد أن تبقي شكل أو تنظيفه ؟ ","Word Paste Detected":"كلمة لصق الكشف عن",Clean:"نظيفة","Insert className":"أدخل اسم الفصل","Line height":"ارتفاع الخط",Spellchecking:"التدقيق الإملائي"}},e=>{e.exports={"Type something":"Napiš něco","About Jodit":"O Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Verze pro nekomerční použití","Jodit User's Guide":"Jodit Uživatelská příručka","contains detailed help for using":"obsahuje detailní nápovědu","For information about the license, please go to our website:":"Pro informace o licenci, prosím, přejděte na naši stránku:","Buy full version":"Koupit plnou verzi","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Všechna práva vyhrazena.",Anchor:"Anchor","Open in new tab":"Otevřít v nové záložce","Open editor in fullsize":"Otevřít v celoobrazovkovém režimu","Clear Formatting":"Vyčistit formátování","Fill color or set the text color":"Barva výplně a písma",Redo:"Vpřed",Undo:"Zpět",Bold:"Tučné",Italic:"Kurzíva","Insert Unordered List":"Odrážky","Insert Ordered List":"Číslovaný seznam","Align Center":"Zarovnat na střed","Align Justify":"Zarovnat do bloku","Align Left":"Zarovnat vlevo","Align Right":"Zarovnat vpravo","Insert Horizontal Line":"Vložit horizontální linku","Insert Image":"Vložit obrázek","Insert file":"Vložit soubor","Insert youtube/vimeo video":"Vložit video (YT/Vimeo)","Insert link":"Vložit odkaz","Font size":"Velikost písma","Font family":"Typ písma","Insert format block":"Formátovat blok",Normal:"Normální text","Heading 1":"Nadpis 1","Heading 2":"Nadpis 2","Heading 3":"Nadpis 3","Heading 4":"Nadpis 4",Quote:"Citát",Code:"Kód",Insert:"Vložit","Insert table":"Vložit tabulku","Decrease Indent":"Zmenšit odsazení","Increase Indent":"Zvětšit odsazení","Select Special Character":"Vybrat speciální symbol","Insert Special Character":"Vložit speciální symbol","Paint format":"Použít formát","Change mode":"Změnit mód",Margins:"Okraje",top:"horní",right:"pravý",bottom:"spodní",left:"levý",Styles:"Styly",Classes:"Třídy",Align:"Zarovnání",Right:"Vpravo",Center:"Na střed",Left:"Vlevo","--Not Set--":"--nenastaveno--",Src:"src",Title:"Titulek",Alternative:"Alternativní text (alt)",Link:"Link","Open link in new tab":"Otevřít link v nové záložce",Image:"Obrázek",file:"soubor",Advanced:"Rozšířené","Image properties":"Vlastnosti obrázku",Cancel:"Zpět",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Váš text se podobá HTML. Vložit ho jako HTML?","Paste as HTML":"Vložit jako HTML",Keep:"Ponechat originál",Clean:"Vyčistit","Insert as Text":"Vložit jako TEXT","Insert only Text":"Vložit pouze TEXT","Word Paste Detected":"Detekován fragment z Wordu nebo Excelu","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Obsah, který vkládáte, je pravděpodobně z Microsoft Word / Excel. Chcete ponechat formát nebo vložit pouze text?","File Browser":"Prohlížeč souborů","Error on load list":"Chyba při načítání seznamu souborů","Error on load folders":"Chyba při načítání složek","Are you sure?":"Jste si jistý(á)?","Enter Directory name":"Název složky","Create directory":"Vytvořit složku","type name":"název","Drop image":"Přetáhněte sem obrázek","Drop file":"Přetáhněte sem soubor","or click":"nebo klikněte","Alternative text":"Alternativní text",Browse:"Server",Upload:"Nahrát",Background:"Pozadí",Text:"Text",Top:"Nahoru",Middle:"Na střed",Bottom:"Dolu","Insert column before":"Vložit sloupec před","Insert column after":"Vložit sloupec za","Insert row above":"Vložit řádek nad","Insert row below":"Vložit řádek pod","Delete table":"Vymazat tabulku","Delete row":"Vymazat řádku","Delete column":"Vymazat sloupec","Empty cell":"Vyčistit buňku",source:"HTML",bold:"tučně",italic:"kurzíva",brush:"štětec",link:"odkaz",undo:"zpět",redo:"vpřed",table:"tabulka",image:"obrázek",eraser:"guma",paragraph:"odstavec",fontsize:"velikost písma",video:"video",font:"písmo",about:"о editoru",print:"tisk",symbol:"symbol",underline:"podtrženo",strikethrough:"přeškrtnuto",indent:"zvětšit odsazení",outdent:"zmenšit odsazení",fullsize:"celoobrazovkový režim",shrink:"smrsknout",copyformat:"Kopírovat formát",hr:"Linka",ul:"Odrážka",ol:"Číslovaný seznam",cut:"Vyjmout",selectall:"Označit vše","Embed code":"Kód","Open link":"Otevřít odkaz","Edit link":"Upravit odkaz","No follow":"Atribut no-follow",Unlink:"Odstranit odkaz",Eye:"Zobrazit",pencil:"Chcete-li upravit",Update:"Aktualizovat"," URL":"URL",Edit:"Editovat","Horizontal align":"Horizontální zarovnání",Filter:"Filtr","Sort by changed":"Dle poslední změny","Sort by name":"Dle názvu","Sort by size":"Dle velikosti","Add folder":"Přidat složku",Reset:"Reset",Save:"Uložit","Save as ...":"Uložit jako...",Resize:"Změnit rozměr",Crop:"Ořezat",Width:"Šířka",Height:"Výška","Keep Aspect Ratio":"Ponechat poměr",Yes:"Ano",No:"Ne",Remove:"Vyjmout",Select:"Označit","Chars: %d":"Znaky: %d","Words: %d":"Slova: %d",All:"Vše","Select %s":"Označit %s","Select all":"Označit vše","Vertical align":"Vertikální zarovnání",Split:"Rozdělit","Split vertical":"Rozdělit vertikálně","Split horizontal":"Rozdělit horizontálně",Merge:"Spojit","Add column":"Přidat sloupec","Add row":"Přidat řádek",Delete:"Vymazat",Border:"Okraj","License: %s":"Licence: %s","Strike through":"Přeškrtnuto",Underline:"Podtrženo",superscript:"Horní index",subscript:"Dolní index","Cut selection":"Vyjmout označené",Break:"Zalomení","Search for":"Najdi","Replace with":"Nahradit za",Replace:"Vyměňte",Paste:"Vložit","Choose Content to Paste":"Vyber obsah pro vložení","You can only edit your own images. Download this image on the host?":"Můžete upravovat pouze své obrázky. Načíst obrázek?","The image has been successfully uploaded to the host!":"Obrázek byl úspěšně nahrán!",palette:"paleta","There are no files":"V tomto adresáři nejsou žádné soubory.",Rename:"přejmenovat","Enter new name":"Zadejte nový název",preview:"náhled",download:"Stažení","Paste from clipboard":"Vložit ze schránky","Your browser doesn't support direct access to the clipboard.":"Váš prohlížeč nepodporuje přímý přístup do schránky.","Copy selection":"Kopírovat výběr",copy:"kopírování","Border radius":"Border radius","Show all":"Zobrazit všechny",Apply:"Platí","Please fill out this field":"Prosím, vyplňte toto pole","Please enter a web address":"Prosím, zadejte webovou adresu",Default:"Výchozí",Circle:"Kruh",Dot:"Dot",Quadrate:"Quadrate",Find:"Najít","Find Previous":"Najít Předchozí","Find Next":"Najít Další","Insert className":"Vložte název třídy","Line height":"Výška čáry",Spellchecking:"Kontrola pravopisu"}},e=>{e.exports={"Type something":"Bitte geben Sie einen Text ein",Advanced:"Fortgeschritten","About Jodit":"Über Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Das Jodit Benutzerhandbuch","contains detailed help for using":"beinhaltet ausführliche Informationen wie Sie den Editor verwenden können.","For information about the license, please go to our website:":"Für Informationen zur Lizenz, besuchen Sie bitte unsere Web-Präsenz:","Buy full version":"Vollversion kaufen","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.",Anchor:"Anker","Open in new tab":"In neuer Registerkarte öffnen","Open editor in fullsize":"Editor in voller Größe öffnen","Clear Formatting":"Formatierung löschen","Fill color or set the text color":"Füllfarbe oder Textfarbe ändern",Redo:"Wiederholen",Undo:"Rückgängig machen",Bold:"Fett",Italic:"Kursiv","Insert Unordered List":"Unsortierte Liste einfügen","Insert Ordered List":"Nummerierte Liste einfügen","Align Center":"Mittig ausrichten","Align Justify":"Blocksatz","Align Left":"Links ausrichten","Align Right":"Rechts ausrichten","Insert Horizontal Line":"Horizontale Linie einfügen","Insert Image":"Bild einfügen","Insert file":"Datei einfügen","Insert youtube/vimeo video":"Youtube/vimeo Video einfügen","Insert link":"Link einfügen","Font size":"Schriftgröße","Font family":"Schriftfamilie","Insert format block":"Formatblock einfügen",Normal:"Normal","Heading 1":"Überschrift 1","Heading 2":"Überschrift 2","Heading 3":"Überschrift 3","Heading 4":"Überschrift 4",Quote:"Zitat",Code:"Code",Insert:"Einfügen","Insert table":"Tabelle einfügen","Decrease Indent":"Einzug verkleinern","Increase Indent":"Einzug vergrößern","Select Special Character":"Sonderzeichen auswählen","Insert Special Character":"Sonderzeichen einfügen","Paint format":"Format kopieren","Change mode":"Änderungsmodus",Margins:"Ränder",top:"Oben",right:"Rechts",bottom:"Unten",left:"Links",Styles:"CSS Stil",Classes:"CSS Klassen",Align:"Ausrichtung",Right:"Rechts",Center:"Zentriert",Left:"Links","--Not Set--":"Keine",Src:"Pfad",Title:"Titel",Alternative:"Alternativer Text",Link:"Link","Open link in new tab":"Link in neuem Tab öffnen",Image:"Bild",file:"Datei",Advansed:"Erweitert","Image properties":"Bildeigenschaften",Cancel:"Abbrechen",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Ihr Text ähnelt HTML-Code. Als HTML beibehalten?","Paste as HTML":"Als HTML einfügen?",Keep:"Original speichern",Clean:"Säubern","Insert as Text":"Als Text einfügen","Word Paste Detected":"In Word formatierter Text erkannt","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder bereinigen?","Insert only Text":"Nur Text einfügen","File Browser":"Dateibrowser","Error on load list":"Fehler beim Laden der Liste","Error on load folders":"Fehler beim Laden der Ordner","Are you sure?":"Sind Sie sicher?","Enter Directory name":"Geben Sie den Verzeichnisnamen ein","Create directory":"Verzeichnis erstellen","type name":"Typname","Drop image":"Bild hier hinziehen","Drop file":"Datei löschen","or click":"oder hier klicken","Alternative text":"Alternativtext",Browse:"Auswählen",Upload:"Hochladen",Background:"Hintergrund",Text:"Text",Top:"Oben",Middle:"Mittig",Bottom:"Unten","Insert column before":"Spalte davor einfügen","Insert column after":"Spalte danach einfügen","Insert row above":"Zeile oberhalb einfügen","Insert row below":"Zeile unterhalb einfügen","Delete table":"Tabelle löschen","Delete row":"Zeile löschen","Delete column":"Spalte löschen","Empty cell":"Zelle leeren",Delete:"Löschen","Strike through":"Durchstreichen",Underline:"Unterstreichen",Break:"Pause","Search for":"Suche nach","Replace with":"Ersetzen durch",Replace:"Ersetzen",Edit:"Bearbeiten","Vertical align":"Vertikale Ausrichtung","Horizontal align":"Horizontale Ausrichtung",Filter:"Filter","Sort by changed":"Sortieren nach geändert","Sort by name":"Nach Name sortieren","Sort by size":"Nach Größe sortiert","Add folder":"Ordner hinzufügen","Split vertical":"Vertikal unterteilen","Split horizontal":"Horizontal unterteilen",Split:"Unterteilen",Merge:"Vereinen","Add column":"Spalte hinzufügen","Add row":"Zeile hinzufügen",Border:"Rand","Embed code":"Code einbetten",Update:"Aktualisieren",superscript:"Hochgestellen",subscript:"Tiefstellen","Cut selection":"Auswahl ausschneiden",Paste:"Einfügen","Choose Content to Paste":"Wählen Sie den Inhalt zum Einfügen aus","Chars: %d":"Zeichen: %d","Words: %d":"Wörter: %d",All:"Alles markieren","Select %s":"Markieren: %s","Select all":"Alles markieren",source:"HTML",bold:"Fett gedruckt",italic:"Kursiv",brush:"Bürste",link:"Verknüpfung",undo:"Rückgängig machen",redo:"Wiederholen",table:"Tabelle",image:"Bild",eraser:"Radiergummi",paragraph:"Absatz",fontsize:"Schriftgröße",video:"Video",font:"Schriftart",about:"Über",print:"Drucken",symbol:"Symbol",underline:"Unterstreichen",strikethrough:"Durchstreichen",indent:"Einzug",outdent:"Herausstellen",fullsize:"Vollgröße",shrink:"Schrumpfen",copyformat:"Format kopierenт",hr:"die Linie",ul:"Liste von",ol:"Nummerierte Liste","Lower Alpha":"Standard, Alphabet (klein)","Upper Alpha":"Standard, Alphabet (gross)","Lower Roman":"Römisch (klein)","Upper Roman":"Römisch (gross)","Lower Greek":"Griechisch",cut:"Schneiden",selectall:"Wählen Sie Alle aus","Open link":"Link öffnen","Edit link":"Link bearbeiten","No follow":"Nofollow-Attribut",Unlink:"Link entfernen",Eye:"Ansehen",pencil:"Bearbeiten"," URL":"URL",Reset:"Wiederherstellen",Save:"Speichern","Save as ...":"Speichern als",Resize:"Größe ändern",Crop:"Größe anpassen",Width:"Breite",Height:"Höhe","Keep Aspect Ratio":"Seitenverhältnis beibehalten",Yes:"Ja",No:"Nein",Remove:"Entfernen",Select:"Markieren","You can only edit your own images. Download this image on the host?":"Sie können nur Ihre eigenen Bilder bearbeiten. Dieses Bild auf den Host herunterladen?","The image has been successfully uploaded to the host!":"Das Bild wurde erfolgreich auf den Server hochgeladen!",palette:"Palette","There are no files":"In diesem Verzeichnis befinden sich keine Dateien.",Rename:"Umbenennen","Enter new name":"Geben Sie einen neuen Namen ein",preview:"Vorschau",download:"Herunterladen","Paste from clipboard":"Aus Zwischenablage einfügen","Your browser doesn't support direct access to the clipboard.":"Ihr Browser unterstützt keinen direkten Zugriff auf die Zwischenablage.","Copy selection":"Auswahl kopieren",copy:"Kopieren","Border radius":"Radius für abgerundete Ecken","Show all":"Alle anzeigen",Apply:"Anwenden","Please fill out this field":"Bitte füllen Sie dieses Feld aus","Please enter a web address":"Bitte geben Sie eine Web-Adresse ein",Default:"Standard",Circle:"Kreis",Dot:"Punkte",Quadrate:"Quadrate",Find:"Suchen","Find Previous":"Suche vorherige","Find Next":"Weitersuchen","Insert className":"className (CSS) einfügen","Line height":"Zeilenhöhe",Spellchecking:"Rechtschreibprüfung"}},e=>{e.exports={"Type something":"Escriba algo...",Advanced:"Avanzado","About Jodit":"Acerca de Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Guía de usuario Jodit","contains detailed help for using":"contiene ayuda detallada para el uso.","For information about the license, please go to our website:":"Para información sobre la licencia, por favor visite nuestro sitio:","Buy full version":"Compre la versión completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.",Anchor:"Anclar","Open in new tab":"Abrir en nueva pestaña","Open editor in fullsize":"Abrir editor en pantalla completa","Clear Formatting":"Limpiar formato","Fill color or set the text color":"Color de relleno o de letra",Redo:"Rehacer",Undo:"Deshacer",Bold:"Negrita",Italic:"Cursiva","Insert Unordered List":"Insertar lista no ordenada","Insert Ordered List":"Insertar lista ordenada","Align Center":"Alinear Centrado","Align Justify":"Alinear Justificado","Align Left":"Alinear Izquierda","Align Right":"Alinear Derecha","Insert Horizontal Line":"Insertar línea horizontal","Insert Image":"Insertar imagen","Insert file":"Insertar archivo","Insert youtube/vimeo video":"Insertar video de Youtube/vimeo","Insert link":"Insertar vínculo","Font size":"Tamaño de letra","Font family":"Familia de letra","Insert format block":"Insertar bloque",Normal:"Normal","Heading 1":"Encabezado 1","Heading 2":"Encabezado 2","Heading 3":"Encabezado 3","Heading 4":"Encabezado 4",Quote:"Cita",Code:"Código",Insert:"Insertar","Insert table":"Insertar tabla","Decrease Indent":"Disminuir sangría","Increase Indent":"Aumentar sangría","Select Special Character":"Seleccionar caracter especial","Insert Special Character":"Insertar caracter especial","Paint format":"Copiar formato","Change mode":"Cambiar modo",Margins:"Márgenes",top:"arriba",right:"derecha",bottom:"abajo",left:"izquierda",Styles:"Estilos CSS",Classes:"Clases CSS",Align:"Alinear",Right:"Derecha",Center:"Centrado",Left:"Izquierda","--Not Set--":"--No Establecido--",Src:"Fuente",Title:"Título",Alternative:"Texto Alternativo",Link:"Vínculo","Open link in new tab":"Abrir vínculo en nueva pestaña",Image:"Imagen",file:"Archivo",Advansed:"Avanzado","Image properties":"Propiedades de imagen",Cancel:"Cancelar",Ok:"Aceptar","Your code is similar to HTML. Keep as HTML?":"El código es similar a HTML. ¿Mantener como HTML?","Paste as HTML":"Pegar como HTML?",Keep:"Mantener",Clean:"Limpiar","Insert as Text":"Insertar como texto","Word Paste Detected":"Pegado desde Word detectado","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"El contenido pegado proviene de un documento de Microsoft Word/Excel. ¿Desea mantener el formato o limpiarlo?","Insert only Text":"Insertar solo texto","File Browser":"Buscar archivo","Error on load list":"Error al cargar la lista","Error on load folders":"Error al cargar las carpetas","Are you sure?":"¿Está seguro?","Enter Directory name":"Entre nombre de carpeta","Create directory":"Crear carpeta","type name":"Entre el nombre","Drop image":"Soltar imagen","Drop file":"Soltar archivo","or click":"o click","Alternative text":"Texto alternativo",Browse:"Buscar",Upload:"Subir",Background:"Fondo",Text:"Texto",Top:"Arriba",Middle:"Centro",Bottom:"Abajo","Insert column before":"Insertar columna antes","Insert column after":"Interar columna después","Insert row above":"Insertar fila arriba","Insert row below":"Insertar fila debajo","Delete table":"Borrar tabla","Delete row":"Borrar fila","Delete column":"Borrar columna","Empty cell":"Vaciar celda",Delete:"Borrar","Strike through":"Tachado",Underline:"Subrayado",Break:"Pausa","Search for":"Buscar","Replace with":"Reemplazar con",Replace:"Reemplazar",Edit:"Editar","Vertical align":"Alineación vertical","Horizontal align":"Alineación horizontal",Filter:"filtrar","Sort by changed":"Ordenar por fecha modificación","Sort by name":"Ordenar por nombre","Sort by size":"Ordenar por tamaño","Add folder":"Agregar carpeta",Split:"Dividir","Split vertical":"Dividir vertical","Split horizontal":"Dividir horizontal",Merge:"Mezclar","Add column":"Agregar columna","Add row":"Agregar fila",Border:"Borde","Embed code":"Incluir código",Update:"Actualizar",superscript:"superíndice",subscript:"subíndice","Cut selection":"Cortar selección",Paste:"Pegar","Choose Content to Paste":"Seleccionar contenido para pegar","Chars: %d":"Caracteres: %d","Words: %d":"Palabras: %d",All:"Todo","Select %s":"Seleccionar: %s","Select all":"Seleccionar todo",source:"HTML",bold:"negrita",italic:"cursiva",brush:"Brocha",link:"Vínculo",undo:"deshacer",redo:"rehacer",table:"Tabla",image:"Imagen",eraser:"Borrar",paragraph:"Párrafo",fontsize:"Tamaño de letra",video:"Video",font:"Letra",about:"Acerca de",print:"Imprimir",symbol:"Símbolo",underline:"subrayar",strikethrough:"tachar",indent:"sangría",outdent:"quitar sangría",fullsize:"Tamaño completo",shrink:"encoger",copyformat:"Copiar formato",hr:"línea horizontal",ul:"lista sin ordenar",ol:"lista ordenada",cut:"Cortar",selectall:"Seleccionar todo","Open link":"Abrir vínculo","Edit link":"Editar vínculo","No follow":"No seguir",Unlink:"Desvincular",Eye:"Ver",pencil:"Para editar"," URL":"URL",Reset:"Resetear",Save:"Guardar","Save as ...":"Guardar como...",Resize:"Redimensionar",Crop:"Recortar",Width:"Ancho",Height:"Alto","Keep Aspect Ratio":"Mantener relación de aspecto",Yes:"Si",No:"No",Remove:"Quitar",Select:"Seleccionar","You can only edit your own images. Download this image on the host?":"Solo puedes editar tus propias imágenes. ¿Descargar esta imagen en el servidor?","The image has been successfully uploaded to the host!":"¡La imagen se ha subido correctamente al servidor!",palette:"paleta","There are no files":"No hay archivos en este directorio.",Rename:"renombrar","Enter new name":"Ingresa un nuevo nombre",preview:"avance",download:"Descargar","Paste from clipboard":"Pegar desde el portapapeles","Your browser doesn't support direct access to the clipboard.":"Su navegador no soporta el acceso directo en el portapapeles.","Copy selection":"Selección de copia",copy:"copia","Border radius":"Radio frontera","Show all":"Mostrar todos los",Apply:"Aplicar","Please fill out this field":"Por favor, rellene este campo","Please enter a web address":"Por favor, introduzca una dirección web",Default:"Predeterminado",Circle:"Círculo",Dot:"Punto",Quadrate:"Cuadro","Lower Alpha":"Letra Minúscula","Lower Greek":"Griego Minúscula","Lower Roman":"Romano Minúscula","Upper Alpha":"Letra Mayúscula","Upper Roman":"Romano Mayúscula",Find:"Encontrar","Find Previous":"Buscar Anterior","Find Next":"Buscar Siguiente","Insert className":"Insertar nombre de clase","Line height":"Altura de la línea",Spellchecking:"Corrección ortográfica"}},e=>{e.exports={"Type something":"Ecrivez ici","About Jodit":"A propos de Jodit","Jodit Editor":"Editeur Jodit","Jodit User's Guide":"Guide de l'utilisateur","contains detailed help for using":"Aide détaillée à l'utilisation","For information about the license, please go to our website:":"Consulter la licence sur notre site web:","Buy full version":"Acheter la version complète","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tous droits réservés.",Anchor:"Ancre","Open in new tab":"Ouvrir dans un nouvel onglet","Open editor in fullsize":"Ouvrir l'éditeur en pleine page","Clear Formatting":"Supprimer le formattage","Fill color or set the text color":"Modifier la couleur du fond ou du texte",Redo:"Refaire",Undo:"Défaire",Bold:"Gras",Italic:"Italique","Insert Unordered List":"Liste non ordonnée","Insert Ordered List":"Liste ordonnée","Align Center":"Centrer","Align Justify":"Justifier","Align Left":"Aligner à gauche ","Align Right":"Aligner à droite","Insert Horizontal Line":"Insérer une ligne horizontale","Insert Image":"Insérer une image","Insert file":"Insérer un fichier","Insert youtube/vimeo video":"Insérer une vidéo","Insert link":"Insérer un lien","Font size":"Taille des caractères","Font family":"Famille des caractères","Insert format block":"Bloc formatté",Normal:"Normal","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4",Quote:"Citation",Code:"Code",Insert:"Insérer","Insert table":"Insérer un tableau","Decrease Indent":"Diminuer le retrait","Increase Indent":"Retrait plus","Select Special Character":"Sélectionnez un caractère spécial","Insert Special Character":"Insérer un caractère spécial","Paint format":"Cloner le format","Change mode":"Mode wysiwyg <-> code html",Margins:"Marges",top:"haut",right:"droite",bottom:"Bas",left:"gauche",Styles:"Styles",Classes:"Classes",Align:"Alignement",Right:"Droite",Center:"Centre",Left:"Gauche","--Not Set--":"--Non disponible--",Src:"Source",Title:"Titre",Alternative:"Alternative",Filter:"Filtre",Link:"Lien","Open link in new tab":"Ouvrir le lien dans un nouvel onglet",Image:"Image",file:"fichier",Advanced:"Avancé","Image properties":"Propriétés de l'image",Cancel:"Annuler",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Votre texte que vous essayez de coller est similaire au HTML. Collez-le en HTML?","Paste as HTML":"Coller en HTML?",Keep:"Sauvegarder l'original",Clean:"Nettoyer","Insert as Text":"Coller en tant que texte","Word Paste Detected":"C'est peut-être un fragment de Word ou Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Le contenu que vous insérez provient d'un document Microsoft Word / Excel. Voulez-vous enregistrer le format ou l'effacer?","Insert only Text":"Coller le texte seulement","File Browser":"Explorateur de fichiers","Error on load list":"Erreur de liste de chargement","Error on load folders":"Erreur de dossier de chargement","Are you sure?":"Etes-vous sûrs ?","Enter Directory name":"Entrer le non de dossier","Create directory":"Créer un dossier","type name":"type de fichier","Drop image":"Coller une image","Drop file":"Déposer un fichier","or click":"ou cliquer","Alternative text":"Texte de remplacemement",Browse:"Chercher",Upload:"Charger",Background:"Arrière-plan",Text:"Texte",Top:"Haut",Middle:"Milieu",Bottom:"Bas","Insert column before":"Insérer une colonne avant","Insert column after":"Insérer une colonne après","Insert row above":"Insérer une ligne en dessus","Insert row below":"Insérer une ligne en dessous","Delete table":"Supprimer le tableau","Delete row":"Supprimer la ligne","Delete column":"Supprimer la colonne","Empty cell":"Vider la cellule","Chars: %d":"Symboles: %d","Words: %d":"Mots: %d",Split:"Split","Split vertical":"Split vertical","Split horizontal":"Split horizontal","Strike through":"Frapper à travers",Underline:"Souligner",superscript:"exposant",subscript:"indice","Cut selection":"Couper la sélection","Select all":"Tout sélectionner",Break:"Pause","Search for":"Rechercher","Replace with":"Remplacer par",Replace:"Remplacer",Paste:"Coller","Choose Content to Paste":"Choisissez le contenu à coller",source:"la source",bold:"graisseux",italic:"italique",brush:"verser",link:"lien",undo:"abolir",redo:"prêt",table:"graphique",image:"Image",eraser:"la gommen",paragraph:"clause",fontsize:"taille de police",video:"Video",font:"police",about:"à propos de l'éditeur",print:"impression",symbol:"caractère",underline:"souligné",strikethrough:"barré",indent:"indentation",outdent:"indifférent",fullsize:"taille réelle",shrink:"taille conventionnelle",copyformat:"Format de copie",hr:"la ligne",ul:"Liste des",ol:"Liste numérotée",cut:"Couper",selectall:"Sélectionner tout","Open link":"Ouvrir le lien","Edit link":"Modifier le lien","No follow":"Attribut Nofollow",Unlink:"Supprimer le lien",Eye:"Voir",pencil:"Pour éditer"," URL":"URL",Reset:"Restaurer",Save:"Sauvegarder","Save as ...":"Enregistrer sous",Resize:"Changer la taille",Crop:"Taille de garniture",Width:"Largeur",Height:"Hauteur","Keep Aspect Ratio":"Garder les proportions",Yes:"Oui",No:"Non",Remove:"Supprimer",Select:"Mettre en évidence","Select %s":"Mettre en évidence: %s",Update:"Mettre à jour","Vertical align":"Alignement vertical",Merge:"aller","Add column":"Ajouter une colonne","Add row":"Ajouter une rangée",Delete:"Effacer","Horizontal align":"Alignement horizontal","Sort by changed":"Trier par modifié","Sort by name":"Trier par nom","Sort by size":"Classer par taille","Add folder":"Ajouter le dossier","You can only edit your own images. Download this image on the host?":"Vous ne pouvez éditer que vos propres images. Téléchargez cette image sur l'hôte?","The image has been successfully uploaded to the host!":"L'image a été téléchargée avec succès sur le serveur!null",palette:"Palette","There are no files":"Il n'y a aucun fichier dans ce répertoire.",Rename:"renommer","Enter new name":"Entrez un nouveau nom",preview:"Aperçu",download:"Télécharger","Paste from clipboard":"Coller à partir du presse-papiers","Your browser doesn't support direct access to the clipboard.":"Votre navigateur ne prend pas en charge l'accès direct à la presse-papiers.","Copy selection":"Copier la sélection",copy:"copie","Border radius":"Rayon des frontières","Show all":"Afficher tous les",Apply:"Appliquer","Please fill out this field":"Veuillez remplir ce champ","Please enter a web address":"Veuillez entrer une adresse web",Default:"Par défaut",Circle:"Cercle",Dot:"Dot",Quadrate:"Quadrate",Find:"Trouver","Find Previous":"Trouvez Précédente","Find Next":"Suivant","Insert className":"Insérer un nom de classe","Line height":"Hauteur de ligne",Spellchecking:"Vérification Orthographique"}},e=>{e.exports={"Type something":"הקלד משהו...",Advanced:"מתקדם","About Jodit":"About Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit User's Guide","contains detailed help for using":"contains detailed help for using.","For information about the license, please go to our website:":"For information about the license, please go to our website:","Buy full version":"Buy full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"מקום עיגון","Open in new tab":"פתח בכרטיסיה חדשה","Open editor in fullsize":"פתח את העורך בחלון חדש","Clear Formatting":"נקה עיצוב","Fill color or set the text color":"שנה צבע טקסט או רקע",Redo:"בצע שוב",Undo:"בטל",Bold:"מודגש",Italic:"נטוי","Insert Unordered List":"הכנס רשימת תבליטים","Insert Ordered List":"הכנס רשימה ממוספרת","Align Center":"מרכז","Align Justify":"ישר ","Align Left":"ישר לשמאל","Align Right":"ישר לימין","Insert Horizontal Line":"הכנס קו אופקי","Insert Image":"הכנס תמונה","Insert file":"הכנס קובץ","Insert youtube/vimeo video":"הכנס סרטון וידאו מYouTube/Vimeo","Insert link":"הכנס קישור","Font size":"גודל גופן","Font family":"גופן","Insert format block":"מעוצב מראש",Normal:"רגיל","Heading 1":"כותרת 1","Heading 2":"כותרת 2","Heading 3":"כותרת 3","Heading 4":"כותרת 4",Quote:"ציטוט",Code:"קוד",Insert:"הכנס","Insert table":"הכנס טבלה","Decrease Indent":"הקטן כניסה","Increase Indent":"הגדל כניסה","Select Special Character":"בחר תו מיוחד","Insert Special Character":"הכנס תו מיוחד","Paint format":"העתק עיצוב","Change mode":"החלף מצב",Margins:"ריווח",top:"עליון",right:"ימין",bottom:"תחתון",left:"שמאל",Styles:"עיצוב CSS",Classes:"מחלקת CSS",Align:"יישור",Right:"ימין",Center:"מרכז",Left:"שמאל","--Not Set--":"--לא נקבע--",Src:"מקור",Title:"כותרת",Alternative:"כיתוב חלופי",Link:"קישור","Open link in new tab":"פתח בכרטיסיה חדשה",Image:"תמונה",file:"קובץ",Advansed:"מתקדם","Image properties":"מאפייני תמונה",Cancel:"ביטול",Ok:"אישור","Your code is similar to HTML. Keep as HTML?":"הקוד דומה לHTML, האם להשאיר כHTML","Paste as HTML":"הדבק כHTML",Keep:"השאר",Clean:"נקה","Insert as Text":"הכנס כטקסט","Word Paste Detected":'זוהתה הדבקה מ"וורד"',"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"התוכן המודבק מגיע ממסמך וורד/אקסל. האם ברצונך להשאיר את העיצוב או לנקותו","Insert only Text":"הכנס טקסט בלבד","File Browser":"סייר הקבצים","Error on load list":"שגיאה בזמן טעינת רשימה","Error on load folders":"שגיאה בזמן טעינת תקיות","Are you sure?":"האם אתה בטוח?","Enter Directory name":"הכנס שם תקיה","Create directory":"צור תקיה","type name":"סוג הקובץ","Drop image":"הסר תמונה","Drop file":"הסר קובץ","or click":"או לחץ","Alternative text":"כיתוב חלופי",Browse:"סייר",Upload:"העלה",Background:"רקע",Text:"טקסט",Top:"עליון",Middle:"מרכז",Bottom:"תחתון","Insert column before":"הכנס עמודה לפני","Insert column after":"הכנס עמודה אחרי","Insert row above":"הכנס שורה מעל","Insert row below":"הכנס שורה מתחת","Delete table":"מחק טבלה","Delete row":"מחק שורה","Delete column":"מחק עמודה","Empty cell":"רוקן תא",Delete:"מחק","Strike through":"קו חוצה",Underline:"קו תחתון",Break:"שבירת שורה","Search for":"חפש","Replace with":"החלף ב",Replace:"להחליף",Edit:"ערוך","Vertical align":"יישור אנכי","Horizontal align":"יישור אופקי",Filter:"סנן","Sort by changed":"מין לפי שינוי","Sort by name":"מיין לפי שם","Sort by size":"מיין לפי גודל","Add folder":"הוסף תקייה",Split:"פיצול","Split vertical":"פיצול אנכי","Split horizontal":"פיצול אופקי",Merge:"מזג","Add column":"הוסף עמודה","Add row":"הוסף שורה",Border:"מסגרת","Embed code":"הוסף קוד",Update:"עדכן",superscript:"superscript",subscript:"subscript","Cut selection":"גזור בחירה",Paste:"הדבק","Choose Content to Paste":"בחר תוכן להדבקה","Chars: %d":"תווים: %d","Words: %d":"מילים: %d",All:"הכל","Select %s":"נבחר: %s","Select all":"בחר הכל",source:"HTML",bold:"מודגש",italic:"נטוי",brush:"מברשת",link:"קישור",undo:"בטל",redo:"בצע שוב",table:"טבלה",image:"תמונה",eraser:"מחק",paragraph:"פסקה",fontsize:"גודל גופן",video:"וידאו",font:"גופן",about:"עלינו",print:"הדפס",symbol:"תו מיוחד",underline:"קו תחתון",strikethrough:"קו חוצה",indent:"הגדל כניסה",outdent:"הקטן כניסה",fullsize:"גודל מלא",shrink:"כווץ",copyformat:"העתק עיצוב",hr:"קו אופקי",ul:"רשימת תבליטים",ol:"רשימה ממוספרת",cut:"חתוך",selectall:"בחר הכל","Open link":"פתח קישור","Edit link":"ערוך קישור","No follow":"ללא מעקב",Unlink:"בטל קישור",Eye:"הצג",pencil:"כדי לערוך"," URL":"כתובת",Reset:"אפס",Save:"שמור","Save as ...":"שמור בשם...",Resize:"שנה גודל",Crop:"חתוך",Width:"רוחב",Height:"גובה","Keep Aspect Ratio":"שמור יחס",Yes:"כן",No:"לא",Remove:"הסר",Select:"בחר","You can only edit your own images. Download this image on the host?":"רק קבצים המשוייכים שלך ניתנים לעריכה. האם להוריד את הקובץ?","The image has been successfully uploaded to the host!":"התמונה עלתה בהצלחה!",palette:"לוח","There are no files":"אין קבצים בספריה זו.",Rename:"הונגרית","Enter new name":"הזן שם חדש",preview:"תצוגה מקדימה",download:"הורד","Paste from clipboard":"להדביק מהלוח","Your browser doesn't support direct access to the clipboard.":"הדפדפן שלך לא תומך גישה ישירה ללוח.","Copy selection":"העתק בחירה",copy:"העתק","Border radius":"רדיוס הגבול","Show all":"הצג את כל",Apply:"החל","Please fill out this field":"נא למלא שדה זה","Please enter a web address":"אנא הזן כתובת אינטרנט",Default:"ברירת המחדל",Circle:"מעגל",Dot:"נקודה",Quadrate:"הריבוע הזה",Find:"למצוא","Find Previous":"מצא את הקודם","Find Next":"חפש את הבא","Insert className":"הכנס את שם הכיתה","Line height":"גובה שורה",Spellchecking:"בדיקת איות"}},e=>{e.exports={"Type something":"Írjon be valamit",Advanced:"Haladó","About Jodit":"Joditról","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Ingyenes változat","Jodit User's Guide":"Jodit útmutató","contains detailed help for using":"további segítséget tartalmaz","For information about the license, please go to our website:":"További licence információkért látogassa meg a weboldalunkat:","Buy full version":"Teljes verzió megvásárlása","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Minden jog fenntartva.",Anchor:"Horgony","Open in new tab":"Megnyitás új lapon","Open editor in fullsize":"Megnyitás teljes méretben","Clear Formatting":"Formázás törlése","Fill color or set the text color":"Háttér/szöveg szín",Redo:"Újra",Undo:"Visszavon",Bold:"Félkövér",Italic:"Dőlt","Insert Unordered List":"Pontozott lista","Insert Ordered List":"Számozott lista","Align Center":"Középre zárt","Align Justify":"Sorkizárt","Align Left":"Balra zárt","Align Right":"Jobbra zárt","Insert Horizontal Line":"Vízszintes vonal beszúrása","Insert Image":"Kép beszúrás","Insert file":"Fájl beszúrás","Insert youtube/vimeo video":"Youtube videó beszúrása","Insert link":"Link beszúrás","Font size":"Betűméret","Font family":"Betűtípus","Insert format block":"Formázott blokk beszúrása",Normal:"Normál","Heading 1":"Fejléc 1","Heading 2":"Fejléc 2","Heading 3":"Fejléc 3","Heading 4":"Fejléc 4",Quote:"Idézet",Code:"Kód",Insert:"Beszúr","Insert table":"Táblázat beszúrása","Decrease Indent":"Behúzás csökkentése","Increase Indent":"Behúzás növelése","Select Special Character":"Speciális karakter kiválasztása","Insert Special Character":"Speciális karakter beszúrása","Paint format":"Kép formázása","Change mode":"Nézet váltása",Print:"Nyomtatás",Margins:"Szegélyek",top:"felső",right:"jobb",bottom:"alsó",left:"bal",Styles:"CSS stílusok",Classes:"CSS osztályok",Align:"Igazítás",Right:"Jobbra",Center:"Középre",Left:"Balra","--Not Set--":"Nincs",Src:"Forrás",Title:"Cím",Alternative:"Helyettesítő szöveg",Link:"Link","Open link in new tab":"Link megnyitása új lapon",Image:"Kép",file:"Fájl",Advansed:"További beállítás","Image properties":"Kép tulajdonságai",Cancel:"Mégsem",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"A beillesztett szöveg HTML-nek tűnik. Megtartsuk HTML-ként?","Paste as HTML":"Beszúrás HTML-ként",Keep:"Megtartás",Clean:"Elvetés","Insert as Text":"Beszúrás szövegként","Word Paste Detected":"Word-ből másolt szöveg","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"A beillesztett tartalom Microsoft Word/Excel dokumentumból származik. Meg szeretné tartani a formátumát?","Insert only Text":"Csak szöveg beillesztése","File Browser":"Fájl tallózó","Error on load list":"Hiba a lista betöltése közben","Error on load folders":"Hiba a mappák betöltése közben","Are you sure?":"Biztosan ezt szeretné?","Enter Directory name":"Írjon be egy mappanevet","Create directory":"Mappa létrehozása","type name":"írjon be bevet","Drop image":"Húzza ide a képet","Drop file":"Húzza ide a fájlt","or click":"vagy kattintson","Alternative text":"Helyettesítő szöveg",Browse:"Tallóz",Upload:"Feltölt",Background:"Háttér",Text:"Szöveg",Top:"Fent",Middle:"Középen",Bottom:"Lent","Insert column before":"Oszlop beszúrás elé","Insert column after":"Oszlop beszúrás utána","Insert row above":"Sor beszúrás fölé","Insert row below":"Sor beszúrás alá","Delete table":"Táblázat törlése","Delete row":"Sor törlése","Delete column":"Oszlop törlése","Empty cell":"Cella tartalmának törlése",Delete:"Törlés","Strike through":"Áthúzott",Underline:"Aláhúzott",Break:"Szünet","Search for":"Keresés","Replace with":"Csere erre",Replace:"Cserélje ki",Edit:"Szerkeszt","Vertical align":"Függőleges igazítás","Horizontal align":"Vízszintes igazítás",Filter:"Szűrő","Sort by changed":"Rendezés módosítás szerint","Sort by name":"Rendezés név szerint","Sort by size":"Rendezés méret szerint","Add folder":"Mappa hozzáadás","Split vertical":"Függőleges felosztás","Split horizontal":"Vízszintes felosztás",Merge:"Összevonás","Add column":"Oszlop hozzáadás","Add row":"Sor hozzáadás",Border:"Szegély","Embed code":"Beágyazott kód",Update:"Frissít",superscript:"Felső index",subscript:"Alsó index","Cut selection":"Kivágás",Paste:"Beillesztés","Choose Content to Paste":"Válasszon tartalmat a beillesztéshez",Split:"Felosztás","Chars: %d":"Karakterek száma: %d","Words: %d":"Szavak száma: %d",All:"Összes","Select %s":"Kijelöl: %s","Select all":"Összes kijelölése",source:"HTML",bold:"Félkövér",italic:"Dőlt",brush:"Ecset",link:"Link",undo:"Visszavon",redo:"Újra",table:"Táblázat",image:"Kép",eraser:"Törlés",paragraph:"Paragráfus",fontsize:"Betűméret",video:"Videó",font:"Betű",about:"Rólunk",print:"Nyomtat",symbol:"Szimbólum",underline:"Aláhúzott",strikethrough:"Áthúzott",indent:"Behúzás",outdent:"Aussenseiter",fullsize:"Teljes méret",shrink:"Összenyom",copyformat:"Formátum másolás",hr:"Egyenes vonal",ul:"Lista",ol:"Számozott lista",cut:"Kivág",selectall:"Összes kijelölése","Open link":"Link megnyitása","Edit link":"Link szerkesztése","No follow":"Nincs követés",Unlink:"Link leválasztása",Eye:"felülvizsgálat",pencil:"Szerkesztés"," URL":"URL",Reset:"Visszaállít",Save:"Mentés","Save as ...":"Mentés másként...",Resize:"Átméretezés",Crop:"Kivág",Width:"Szélesség",Height:"Magasság","Keep Aspect Ratio":"Képarány megtartása",Yes:"Igen",No:"Nem",Remove:"Eltávolít",Select:"Kijelöl","You can only edit your own images. Download this image on the host?":"Csak a saját képeit tudja szerkeszteni. Letölti ezt a képet?","The image has been successfully uploaded to the host!":"Kép sikeresen feltöltve!",palette:"Palette","There are no files":"Er zijn geen bestanden in deze map.",Rename:"átnevezés","Enter new name":"Adja meg az új nevet",preview:"előnézet",download:"Letöltés","Paste from clipboard":"Illessze be a vágólap","Your browser doesn't support direct access to the clipboard.":"A böngésző nem támogatja a közvetlen hozzáférést biztosít a vágólapra.","Copy selection":"Másolás kiválasztása",copy:"másolás","Border radius":"Határ sugár","Show all":"Összes",Apply:"Alkalmazni","Please fill out this field":"Kérjük, töltse ki ezt a mezőt,","Please enter a web address":"Kérjük, írja be a webcímet",Default:"Alapértelmezett",Circle:"Kör",Dot:"Pont",Quadrate:"Quadrate",Find:"Találni","Find Previous":"Megtalálja Előző","Find Next":"Következő Keresése","Insert className":"Helyezze be az osztály nevét","Line height":"Vonal magassága",Spellchecking:"Helyesírás-ellenőrzés"}},e=>{e.exports={"Type something":"Ketik sesuatu","About Jodit":"Tentang Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Versi Bebas Non-komersil","Jodit User's Guide":"Panduan Pengguna Jodit","contains detailed help for using":"mencakup detail bantuan penggunaan","For information about the license, please go to our website:":"Untuk informasi tentang lisensi, silakan kunjungi website:","Buy full version":"Beli versi lengkap","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Hak Cipta © XDSoft.net - Chupurnov Valeriy. Hak cipta dilindungi undang-undang.",Anchor:"Tautan","Open in new tab":"Buka di tab baru","Open editor in fullsize":"Buka editor dalam ukuran penuh","Clear Formatting":"Hapus Pemformatan","Fill color or set the text color":"Isi warna atau atur warna teks",Redo:"Ulangi",Undo:"Batalkan",Bold:"Tebal",Italic:"Miring","Insert Unordered List":"Sisipkan Daftar Tidak Berurut","Insert Ordered List":"Sisipkan Daftar Berurut","Align Center":"Tengah","Align Justify":"Penuh","Align Left":"Kiri","Align Right":"Kanan","Insert Horizontal Line":"Sisipkan Garis Horizontal","Insert Image":"Sisipkan Gambar","Insert file":"Sisipkan Berkas","Insert youtube/vimeo video":"Sisipkan video youtube/vimeo","Insert link":"Sisipkan tautan","Font size":"Ukuran font","Font family":"Keluarga font","Insert format block":"Sisipkan blok format",Normal:"Normal","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4",Quote:"Kutip",Code:"Kode",Insert:"Sisipkan","Insert table":"Sisipkan tabel","Decrease Indent":"Kurangi Indentasi","Increase Indent":"Tambah Indentasi","Select Special Character":"Pilih Karakter Spesial","Insert Special Character":"Sisipkan Karakter Spesial","Paint format":"Formar warna","Change mode":"Ubah mode",Margins:"Batas",top:"atas",right:"kanan",bottom:"bawah",left:"kiri",Styles:"Gaya",Classes:"Class",Align:"Rata",Right:"Kanan",Center:"Tengah",Left:"Kiri","--Not Set--":"--Tidak diset--",Src:"Src",Title:"Judul",Alternative:"Teks alternatif",Link:"Tautan","Open link in new tab":"Buka tautan di tab baru",Image:"Gambar",file:"berkas",Advanced:"Lanjutan","Image properties":"Properti gambar",Cancel:"Batal",Ok:"Ya","Your code is similar to HTML. Keep as HTML?":"Kode Anda cenderung ke HTML. Biarkan sebagai HTML?","Paste as HTML":"Paste sebagai HTML",Keep:"Jaga",Clean:"Bersih","Insert as Text":"Sisipkan sebagai teks","Insert only Text":"Sisipkan hanya teks","Word Paste Detected":"Terdeteksi paste dari Word","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Konten dipaste dari dokumen Microsoft Word/Excel. Apakah Anda ingin tetap menjaga format atau membersihkannya?","File Browser":"Penjelajah Berkas","Error on load list":"Error ketika memuat list","Error on load folders":"Error ketika memuat folder","Are you sure?":"Apakah Anda yakin?","Enter Directory name":"Masukkan nama Direktori","Create directory":"Buat direktori","type name":"ketik nama","Drop image":"Letakkan gambar","Drop file":"Letakkan berkas","or click":"atau klik","Alternative text":"Teks alternatif",Browse:"Jelajahi",Upload:"Unggah",Background:"Latar Belakang",Text:"Teks",Top:"Atas",Middle:"Tengah",Bottom:"Bawah","Insert column before":"Sisipkan kolom sebelumnya","Insert column after":"Sisipkan kolom setelahnya","Insert row above":"Sisipkan baris di atasnya","Insert row below":"Sisipkan baris di bawahnya","Delete table":"Hapus tabel","Delete row":"Hapus baris","Delete column":"Hapus kolom","Empty cell":"Kosongkan cell",source:"sumber",bold:"tebal",italic:"miring",brush:"sikat",link:"tautan",undo:"batalkan",redo:"ulangi",table:"tabel",image:"gambar",eraser:"penghapus",paragraph:"paragraf",fontsize:"ukuran font",video:"video",font:"font",about:"tentang",print:"cetak",symbol:"simbol",underline:"garis bawah",strikethrough:"coret",indent:"menjorok ke dalam",outdent:"menjorok ke luar",fullsize:"ukuran penuh",shrink:"menyusut",copyformat:"salin format",hr:"hr",ul:"ul",ol:"ol",cut:"potong",selectall:"Pilih semua","Embed code":"Kode embed","Open link":"Buka tautan","Edit link":"Edit tautan","No follow":"No follow",Unlink:"Hapus tautan",Eye:"Mata",pencil:"pensil",Update:"Perbarui"," URL":"URL",Edit:"Edit","Horizontal align":"Perataan horizontal",Filter:"Filter","Sort by changed":"Urutkan berdasarkan perubahan","Sort by name":"Urutkan berdasarkan nama","Sort by size":"Urutkan berdasarkan ukuran","Add folder":"Tambah folder",Reset:"Reset",Save:"Simpan","Save as ...":"Simpan sebagai...",Resize:"Ubah ukuran",Crop:"Crop",Width:"Lebar",Height:"Tinggi","Keep Aspect Ratio":"Jaga aspek rasio",Yes:"Ya",No:"Tidak",Remove:"Copot",Select:"Pilih","Chars: %d":"Karakter: %d","Words: %d":"Kata: %d",All:"Semua","Select %s":"Pilih %s","Select all":"Pilih semua","Vertical align":"Rata vertikal",Split:"Bagi","Split vertical":"Bagi secara vertikal","Split horizontal":"Bagi secara horizontal",Merge:"Gabungkan","Add column":"Tambah kolom","Add row":"tambah baris",Delete:"Hapus",Border:"Bingkai","License: %s":"Lisensi: %s","Strike through":"Coret",Underline:"Garis Bawah",superscript:"Superskrip",subscript:"Subskrip","Cut selection":"Potong pilihan",Break:"Berhenti","Search for":"Mencari","Replace with":"Ganti dengan",Replace:"Mengganti",Paste:"Paste","Choose Content to Paste":"Pilih konten untuk dipaste","You can only edit your own images. Download this image on the host?":"Anda hanya dapat mengedit gambar Anda sendiri. Unduh gambar ini di host?","The image has been successfully uploaded to the host!":"Gambar telah sukses diunggah ke host!",palette:"palet","There are no files":"Tidak ada berkas",Rename:"ganti nama","Enter new name":"Masukkan nama baru",preview:"pratinjau",download:"Unduh","Paste from clipboard":"Paste dari clipboard","Your browser doesn't support direct access to the clipboard.":"Browser anda tidak mendukung akses langsung ke clipboard.","Copy selection":"Copy seleksi",copy:"copy","Border radius":"Border radius","Show all":"Tampilkan semua",Apply:"Menerapkan","Please fill out this field":"Silahkan mengisi kolom ini","Please enter a web address":"Silahkan masukkan alamat web",Default:"Default",Circle:"Lingkaran",Dot:"Dot",Quadrate:"Kuadrat",Find:"Menemukan","Find Previous":"Menemukan Sebelumnya","Find Next":"Menemukan Berikutnya","Insert className":"Masukkan nama kelas","Line height":"Tinggi baris",Spellchecking:"Spellchecking"}},e=>{e.exports={"Type something":"Scrivi qualcosa...",Advanced:"Avanzato","About Jodit":"A proposito di Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Guida utente di Jodit","contains detailed help for using":"contiene una guida dettagliata per l'uso.","For information about the license, please go to our website:":"Per informazioni sulla licenza, si prega di visitare il nostro sito:","Buy full version":"Acquista la versione completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.",Anchor:"Ancora","Open in new tab":"Apri in una nuova scheda","Open editor in fullsize":"Apri l'editor a schermo intero","Clear Formatting":"Formato chiaro","Fill color or set the text color":"Riempi colore o lettera",Redo:"Ripristina",Undo:"Annulla",Bold:"Grassetto",Italic:"Corsivo","Insert Unordered List":"Inserisci lista non ordinata","Insert Ordered List":"Inserisci l'elenco ordinato","Align Center":"Allinea Centra","Align Justify":"Allineare Giustificato","Align Left":"Allinea a Sinistra","Align Right":"Allinea a Destra","Insert Horizontal Line":"Inserisci la linea orizzontale","Insert Image":"Inserisci immagine","Insert file":"Inserisci un file","Insert youtube/vimeo video":"Inserisci video Youtube/Vimeo","Insert link":"Inserisci il link","Font size":"Dimensione del carattere","Font family":"Tipo di font","Insert format block":"Inserisci blocco",Normal:"Normale","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4",Quote:"Citazione",Code:"Codice",Insert:"Inserisci","Insert table":"Inserisci tabella","Decrease Indent":"Riduci il rientro","Increase Indent":"Aumenta il rientro","Select Special Character":"Seleziona una funzione speciale","Insert Special Character":"Inserisci un carattere speciale","Paint format":"Copia formato","Change mode":"Cambia modo",Margins:"Margini",top:"su",right:"destra",bottom:"giù",left:"sinistra",Styles:"Stili CSS",Classes:"Classi CSS",Align:"Allinea",Right:"Destra",Center:"Centro",Left:"Sinistra","--Not Set--":"--Non Impostato--",Src:"Fonte",Title:"Titolo",Alternative:"Testo Alternativo",Link:"Link","Open link in new tab":"Apri il link in una nuova scheda",Image:"Immagine",file:"Archivio",Advansed:"Avanzato","Image properties":"Proprietà dell'immagine",Cancel:"Annulla",Ok:"Accetta","Your code is similar to HTML. Keep as HTML?":"Il codice è simile all'HTML. Mantieni come HTML?","Paste as HTML":"Incolla come HTML?",Keep:"Mantieni",Clean:"Pulisci","Insert as Text":"Inserisci come testo","Word Paste Detected":"Incollato da Word rilevato","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Il contenuto incollato proviene da un documento Microsoft Word / Excel. Vuoi mantenere il formato o pulirlo?","Insert only Text":"Inserisci solo il testo","File Browser":"Cerca il file","Error on load list":"Errore durante il caricamento dell'elenco","Error on load folders":"Errore durante il caricamento delle cartelle","Are you sure?":"Sei sicuro?","Enter Directory name":"Inserisci il nome della cartella","Create directory":"Crea cartella","type name":"Entre el nombre","Drop image":"Rilascia l'immagine","Drop file":"Rilascia file","or click":"o click","Alternative text":"Testo alternativo",Browse:"Sfoglia",Upload:"Carica",Background:"Sfondo",Text:"Testo",Top:"Su",Middle:"Centro",Bottom:"Sotto","Insert column before":"Inserisci prima la colonna","Insert column after":"Inserisci colonna dopo","Insert row above":"Inserisci la riga sopra","Insert row below":"Inserisci la riga sotto","Delete table":"Elimina tabella","Delete row":"Elimina riga","Delete column":"Elimina colonna","Empty cell":"Cella vuota",Delete:"Cancella","Strike through":"Barrato",Underline:"Sottolineato",Break:"Pausa","Search for":"Cerca","Replace with":"Sostituisci con",Replace:"Sostituire",Edit:"Modifica","Vertical align":"Allineamento verticala","Horizontal align":"Allineamento orizzontale",Filter:"Filtro","Sort by changed":"Ordina per data di modifica","Sort by name":"Ordina per nome","Sort by size":"Ordina per dimensione","Add folder":"Aggiungi cartella",Split:"Dividere","Split vertical":"Dividere verticalmente","Split horizontal":"Diviso orizzontale",Merge:"Fondi","Add column":"Aggiungi colonna","Add row":"Aggiungi riga",Border:"Bordo","Embed code":"Includi codice",Update:"Aggiornare",superscript:"indice",subscript:"deponente","Cut selection":"Taglia la selezione",Paste:"Incolla","Choose Content to Paste":"Seleziona il contenuto da incollare","Chars: %d":"Caratteri: %d","Words: %d":"Parole: %d",All:"Tutto","Select %s":"Seleziona: %s","Select all":"Seleziona tutto",source:"HTML",bold:"Grassetto",italic:"Corsivo",brush:"Pennello",link:"Link",undo:"Annulla",redo:"Ripristina",table:"Tabella",image:"Immagine",eraser:"Gomma",paragraph:"Paragrafo",fontsize:"Dimensione del carattere",video:"Video",font:"Font",about:"Approposito di",print:"Stampa",symbol:"Simbolo",underline:"Sottolineato",strikethrough:"Barrato",indent:"trattino",outdent:"annulla rientro",fullsize:"A grandezza normale",shrink:"comprimere",copyformat:"Copia il formato",hr:"linea orizzontale",ul:"lista non ordinata",ol:"lista ordinata",cut:"Taglia",selectall:"Seleziona tutto","Open link":"Apri link","Edit link":"Modifica link","No follow":"Non seguire",Unlink:"Togli link",Eye:"Recensione",pencil:"Per modificare"," URL":" URL",Reset:"Reset",Save:"Salva","Save as ...":"Salva con nome...",Resize:"Ridimensiona",Crop:"Tagliare",Width:"Larghezza",Height:"Altezza","Keep Aspect Ratio":"Mantenere le proporzioni",Yes:"Si",No:"No",Remove:"Rimuovere",Select:"Seleziona","You can only edit your own images. Download this image on the host?":"Puoi modificare solo le tue immagini. Scarica questa immagine sul server?","The image has been successfully uploaded to the host!":"L'immagine è stata caricata con successo sul server!",palette:"tavolozza","There are no files":"Non ci sono file in questa directory.",Rename:"ungherese","Enter new name":"Inserisci un nuovo nome",preview:"anteprima",download:"Scaricare","Paste from clipboard":"Incolla dagli appunti","Your browser doesn't support direct access to the clipboard.":"Il tuo browser non supporta l'accesso diretto agli appunti.","Copy selection":"Selezione di copia",copy:"copia","Border radius":"Border radius","Show all":"Mostra tutti",Apply:"Applicare","Please fill out this field":"Si prega di compilare questo campo","Please enter a web address":"Si prega di inserire un indirizzo web",Default:"Di Default",Circle:"Cerchio",Dot:"Dot",Quadrate:"Quadrate",Find:"Trovare","Find Previous":"Trova Precedente","Find Next":"Trova Successivo","Insert className":"Inserisci il nome della classe","Line height":"Altezza linea",Spellchecking:"Controllo ortografico"}},e=>{e.exports={"Type something":"なにかタイプしてください",Advanced:"高度な設定","About Jodit":"Joditについて","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit ユーザーズ・ガイド","contains detailed help for using":"詳しい使い方","For information about the license, please go to our website:":"ライセンス詳細についてはJodit Webサイトを確認ください:","Buy full version":"フルバージョンを購入","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"Anchor","Open in new tab":"新しいタブで開く","Open editor in fullsize":"エディターのサイズ(フル/ノーマル)","Clear Formatting":"書式をクリア","Fill color or set the text color":"テキストの色",Redo:"やり直し",Undo:"元に戻す",Bold:"太字",Italic:"斜体","Insert Unordered List":"箇条書き","Insert Ordered List":"番号付きリスト","Align Center":"中央揃え","Align Justify":"両端揃え","Align Left":"左揃え","Align Right":"右揃え","Insert Horizontal Line":"区切り線を挿入","Insert Image":"画像を挿入","Insert file":"ファイルを挿入","Insert youtube/vimeo video":"Youtube/Vimeo 動画","Insert link":"リンクを挿入","Font size":"フォントサイズ","Font family":"フォント","Insert format block":"テキストのスタイル",Normal:"指定なし","Heading 1":"タイトル1","Heading 2":"タイトル2","Heading 3":"タイトル3","Heading 4":"タイトル4",Quote:"引用",Code:"コード",Insert:"挿入","Insert table":"表を挿入","Decrease Indent":"インデント減","Increase Indent":"インデント増","Select Special Character":"特殊文字を選択","Insert Special Character":"特殊文字を挿入","Paint format":"書式を貼付け","Change mode":"編集モード切替え",Margins:"マージン",top:"上",right:"右",bottom:"下",left:"左",Styles:"スタイル",Classes:"クラス",Align:"配置",Right:"右寄せ",Center:"中央寄せ",Left:"左寄せ","--Not Set--":"指定なし",Src:"ソース",Title:"タイトル",Alternative:"代替テキスト",Link:"リンク","Open link in new tab":"新しいタブで開く",Image:"画像",file:"ファイル",Advansed:"Advansed","Image properties":"画像のプロパティー",Cancel:"キャンセル",Ok:"確定","Your code is similar to HTML. Keep as HTML?":"HTMLコードを保持しますか?","Paste as HTML":"HTMLで貼付け",Keep:"HTMLを保持",Clean:"Clean","Insert as Text":"HTMLをテキストにする","Word Paste Detected":"Word Paste Detected","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Insert only Text":"テキストだけ","File Browser":"File Browser","Error on load list":"Error on load list","Error on load folders":"Error on load folders","Are you sure?":"Are you sure?","Enter Directory name":"Enter Directory name","Create directory":"Create directory","type name":"type name","Drop image":"ここに画像をドロップ","Drop file":"ここにファイルをドロップ","or click":"or クリック","Alternative text":"代替テキスト",Browse:"ブラウズ",Upload:"アップロード",Background:"背景",Text:"文字",Top:"上",Middle:"中央",Bottom:"下","Insert column before":"左に列を挿入","Insert column after":"右に列を挿入","Insert row above":"上に行を挿入","Insert row below":"下に行を挿入","Delete table":"表を削除","Delete row":"行を削除","Delete column":"列を削除","Empty cell":"セルを空にする","Chars: %d":"文字数: %d","Words: %d":"単語数: %d","Strike through":"取り消し線",Underline:"下線",superscript:"上付き文字",subscript:"下付き文字","Cut selection":"切り取り","Select all":"すべて選択",Break:"Pause","Search for":"検索","Replace with":"置換",Replace:"交換",Paste:"貼付け","Choose Content to Paste":"選択した内容を貼付け",All:"全部",source:"source",bold:"bold",italic:"italic",brush:"brush",link:"link",undo:"undo",redo:"redo",table:"table",image:"image",eraser:"eraser",paragraph:"paragraph",fontsize:"fontsize",video:"video",font:"font",about:"about",print:"print",symbol:"symbol",underline:"underline",strikethrough:"strikethrough",indent:"indent",outdent:"outdent",fullsize:"fullsize",shrink:"shrink",copyformat:"copyformat",hr:"分割線",ul:"箇条書き",ol:"番号付きリスト",cut:"切り取り",selectall:"すべて選択","Open link":"リンクを開く","Edit link":"リンクを編集","No follow":"No follow",Unlink:"リンク解除",Eye:"サイトを確認"," URL":"URL",Reset:"リセット",Save:"保存","Save as ...":"Save as ...",Resize:"リサイズ",Crop:"Crop",Width:"幅",Height:"高さ","Keep Aspect Ratio":"縦横比を保持",Yes:"はい",No:"いいえ",Remove:"移除",Select:"選択","Select %s":"選択: %s",Update:"更新","Vertical align":"垂直方向の配置",Merge:"セルの結合","Add column":"列を追加","Add row":"行を追加",Border:"境界線","Embed code":"埋め込みコード",Delete:"削除",Edit:"編集","Horizontal align":"水平方向の配置",Filter:"Filter","Sort by changed":"Sort by changed","Sort by name":"Sort by name","Sort by size":"Sort by size","Add folder":"Add folder",Split:"分割","Split vertical":"セルの分割(垂直方向)","Split horizontal":"セルの分割(水平方向)","You can only edit your own images. Download this image on the host?":"You can only edit your own images. Download this image on the host?","The image has been successfully uploaded to the host!":"The image has been successfully uploaded to the host!",palette:"パレット",pencil:"鉛筆","There are no files":"There are no files",Rename:"Rename","Enter new name":"Enter new name",preview:"プレビュー",download:"ダウンロード","Paste from clipboard":"貼り付け","Your browser doesn't support direct access to the clipboard.":"お使いのブラウザはクリップボードを使用できません","Copy selection":"コピー",copy:"copy","Border radius":"角の丸み","Show all":"全て表示",Apply:"適用","Please fill out this field":"まだこの分野","Please enter a web address":"を入力してくださいウェブアドレス",Default:"デフォルト",Circle:"白丸",Dot:"黒丸",Quadrate:"四角",Find:"見","Find Previous":"探前","Find Next":"由来","Lower Alpha":"英小文字","Lower Greek":"ギリシャ文字","Lower Roman":"ローマ数字小文字","Upper Alpha":"英大文字","Upper Roman":"ローマ数字大文字","Insert className":"クラス名を挿入","Line height":"ラインの高さ",Spellchecking:"スペルチェック"}},e=>{e.exports={"Type something":"무엇이든 입력하세요","About Jodit":"Jodit에 대하여","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit 사용자 안내서","contains detailed help for using":"자세한 도움말이 들어있어요","For information about the license, please go to our website:":"라이센스에 관해서는 Jodit 웹 사이트를 방문해주세요:","Buy full version":"풀 버전 구입하기","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"© XDSoft.net - Chupurnov Valeriy. 에게 저작권과 모든 권리가 있습니다.",Anchor:"Anchor","Open in new tab":"새 탭에서 열기","Open editor in fullsize":"전체 크기로 보기","Clear Formatting":"서식 지우기","Fill color or set the text color":"글씨 색상",Redo:"재실행",Undo:"실행 취소",Bold:"굵게",Italic:"기울임","Insert Unordered List":"글머리 목록","Insert Ordered List":"번호 목록","Align Center":"가운데 정렬","Align Justify":"양쪽 정렬","Align Left":"왼쪽 정렬","Align Right":"오른쪽 정렬","Insert Horizontal Line":"수평 구분선 넣기","Insert Image":"이미지 넣기","Insert file":"파일 넣기","Insert youtube/vimeo video":"Youtube/Vimeo 동영상","Insert link":"링크 넣기","Font size":"글꼴 크기","Font family":"글꼴","Insert format block":"블록 요소 넣기",Normal:"일반 텍스트","Heading 1":"제목 1","Heading 2":"제목 2","Heading 3":"제목 3","Heading 4":"제목 4",Quote:"인용",Code:"코드",Insert:"붙여 넣기","Insert table":"테이블","Decrease Indent":"들여쓰기 감소","Increase Indent":"들여쓰기 증가","Select Special Character":"특수문자 선택","Insert Special Character":"특수문자 입력","Paint format":"페인트 형식","Change mode":"편집모드 변경",Margins:"마진",top:"위",right:"오른쪽",bottom:"아래",left:"왼쪽",Styles:"스타일",Classes:"클래스",Align:"정렬",Right:"오른쪽으로",Center:"가운데로",Left:"왼쪽으로","--Not Set--":"--지정 안 함--",Src:"경로(src)",Title:"제목",Alternative:"대체 텍스트(alt)",Link:"링크","Open link in new tab":"새 탭에서 열기",file:"파일",Advanced:"고급","Image properties":"이미지 속성",Cancel:"취소",Ok:"확인","Your code is similar to HTML. Keep as HTML?":"HTML 코드로 감지했어요. 코드인채로 붙여넣을까요?","Paste as HTML":"HTML로 붙여넣기",Keep:"원본 유지",Clean:"지우기","Insert as Text":"텍스트로 넣기","Insert only Text":"텍스트만 넣기","Word Paste Detected":"Word 붙여넣기 감지","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Microsoft Word/Excel 문서로 감지했어요. 서식을 유지한채로 붙여넣을까요?","File Browser":"파일 탐색기","Error on load list":"목록 불러오기 에러","Error on load folders":"폴더 불러오기","Are you sure?":"정말 진행할까요?","Enter Directory name":"디렉토리 이름 입력","Create directory":"디렉토리 생성","type name":"이름 입력","Drop image":"이미지 드래그","Drop file":"파일 드래그","or click":"혹은 클릭","Alternative text":"대체 텍스트",Browse:"탐색",Upload:"업로드",Background:"배경",Text:"텍스트",Top:"위",Middle:"중앙",Bottom:"아래","Insert column before":"이전 열에 삽입","Insert column after":"다음 열에 삽입","Insert row above":"위 행에 삽입","Insert row below":"아래 행에 삽입","Delete table":"테이블 삭제","Delete row":"행 삭제","Delete column":"열 삭제","Empty cell":"빈 셀",source:"HTML 소스",bold:"볼드",italic:"이탤릭",brush:"브러시",link:"링크",undo:"실행 취소",redo:"재실행",table:"테이블",image:"이미지",eraser:"지우개",paragraph:"문단",fontsize:"글꼴 크기",video:"비디오",font:"글꼴",about:"편집기 정보",print:"프린트",symbol:"기호",underline:"밑줄",strikethrough:"취소선",indent:"들여쓰기",outdent:"내어쓰기",fullsize:"전체 화면",shrink:"일반 화면",copyformat:"복사 형식",hr:"구분선",ul:"글머리 목록",ol:"번호 목록",cut:"잘라내기",selectall:"모두 선택","Embed code":"Embed 코드","Open link":"링크 열기","Edit link":"링크 편집","No follow":"No follow",Unlink:"링크 제거",Eye:"사이트 확인",pencil:"연필",Update:"갱신"," URL":"URL",Edit:"편집","Horizontal align":"수평 정렬",Filter:"필터","Sort by changed":"변경일 정렬","Sort by name":"이름 정렬","Sort by size":"크기 정렬","Add folder":"새 폴더",Reset:"초기화",Save:"저장","Save as ...":"새로 저장하기 ...",Resize:"리사이즈",Crop:"크롭",Width:"가로 길이",Height:"세로 높이","Keep Aspect Ratio":"비율 유지하기",Yes:"네",No:"아니오",Remove:"제거",Select:"선택","Chars: %d":"문자수: %d","Words: %d":"단어수: %d",All:"모두","Select all":"모두 선택","Select %s":"선택: %s","Vertical align":"수직 정렬",Split:"분할","Split vertical":"세로 셀 분할","Split horizontal":"가로 셀 분할",Merge:"셀 병합","Add column":"열 추가","Add row":"행 추가",Delete:"삭제",Border:"외곽선","License: %s":"라이센스: %s","Strike through":"취소선",Underline:"밑줄",superscript:"윗첨자",subscript:"아래첨자","Cut selection":"선택 잘라내기",Break:"구분자","Search for":"검색","Replace with":"대체하기",Replace:"대체",Paste:"붙여넣기","Choose Content to Paste":"붙여넣을 내용 선택","You can only edit your own images. Download this image on the host?":"외부 이미지는 편집할 수 없어요. 외부 이미지를 다운로드 할까요?","The image has been successfully uploaded to the host!":"이미지를 무사히 업로드 했어요!",palette:"팔레트","There are no files":"파일이 없어요",Rename:"이름 변경","Enter new name":"새 이름 입력",preview:"미리보기",download:"다운로드","Paste from clipboard":"클립보드 붙여넣기","Your browser doesn't support direct access to the clipboard.":"사용중인 브라우저가 클립보드 접근을 지원하지 않아요.","Copy selection":"선택 복사",copy:"복사","Border radius":"둥근 테두리","Show all":"모두 보기",Apply:"적용","Please fill out this field":"이 항목을 입력해주세요!","Please enter a web address":"웹 URL을 입력해주세요.",Default:"기본",Circle:"원",Dot:"점",Quadrate:"정사각형",Find:"찾기","Find Previous":"이전 찾기","Find Next":"다음 찾기","Insert className":"className 입력","Line height":"선 높이",Spellchecking:"맞춤법 검사"}},e=>{e.exports={"Type something":"Begin met typen..",Advanced:"Geavanceerd","About Jodit":"Over Jodit","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Gratis niet-commerciële versie","Jodit User's Guide":"Jodit gebruikershandleiding","contains detailed help for using":"bevat gedetailleerde informatie voor gebruik.","For information about the license, please go to our website:":"Voor informatie over de licentie, ga naar onze website:","Buy full version":"Volledige versie kopen","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle rechten voorbehouden.",Anchor:"Anker","Open in new tab":"Open in nieuwe tab","Open editor in fullsize":"Editor in volledig scherm openen","Clear Formatting":"Opmaak verwijderen","Fill color or set the text color":"Vulkleur of tekstkleur aanpassen",Redo:"Opnieuw",Undo:"Ongedaan maken",Bold:"Vet",Italic:"Cursief","Insert Unordered List":"Geordende list invoegen","Insert Ordered List":"Ongeordende lijst invoegen","Align Center":"Centreren","Align Justify":"Uitlijnen op volledige breedte","Align Left":"Links uitlijnen","Align Right":"Rechts uitlijnen","Insert Horizontal Line":"Horizontale lijn invoegen","Insert Image":"Afbeelding invoegen","Insert file":"Bestand invoegen","Insert youtube/vimeo video":"Youtube/Vimeo video invoegen","Insert link":"Link toevoegen","Font size":"Tekstgrootte","Font family":"Lettertype","Insert format block":"Format blok invoegen",Normal:"Normaal","Heading 1":"Koptekst 1","Heading 2":"Koptekst 2","Heading 3":"Koptekst 3","Heading 4":"Koptekst 4",Quote:"Citaat",Code:"Code",Insert:"Invoegen","Insert table":"Tabel invoegen","Decrease Indent":"Inspringing verkleinen","Increase Indent":"Inspringing vergroten","Select Special Character":"Symbool selecteren","Insert Special Character":"Symbool invoegen","Paint format":"Opmaak kopieren","Change mode":"Modus veranderen",Margins:"Marges",top:"Boven",right:"Rechts",bottom:"Onder",left:"Links",Styles:"CSS styles",Classes:"CSS classes",Align:"Uitlijning",Right:"Rechts",Center:"Gecentreerd",Left:"Links","--Not Set--":"--Leeg--",Src:"Src",Title:"Titel",Alternative:"Alternatieve tekst",Link:"Link","Open link in new tab":"Link in nieuwe tab openen",Image:"Afbeelding",file:"Bestand",Advansed:"Geavanceerd","Image properties":"Afbeeldingseigenschappen",Cancel:"Annuleren",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Deze code lijkt op HTML. Als HTML behouden?","Paste as HTML":"Invoegen als HTML",Keep:"Origineel behouden",Clean:"Opschonen","Insert as Text":"Als tekst invoegen","Word Paste Detected":"Word-tekst gedetecteerd","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"De geplakte tekst is afkomstig van een Microsoft Word/Excel document. Wil je de opmaak behouden of opschonen?","Insert only Text":"Als onopgemaakte tekst invoegen","File Browser":"Bestandsbrowser","Error on load list":"Fout bij het laden van de lijst","Error on load folders":"Fout bij het laden van de mappenlijst","Are you sure?":"Weet je het zeker?","Enter Directory name":"Geef de map een naam","Create directory":"Map aanmaken","type name":"Type naam","Drop image":"Sleep hier een afbeelding naartoe","Drop file":"Sleep hier een bestand naartoe","or click":"of klik","Alternative text":"Alternatieve tekst",Browse:"Bladeren",Upload:"Uploaden",Background:"Achtergrond",Text:"Tekst",Top:"Boven",Middle:"Midden",Bottom:"Onder","Insert column before":"Kolom invoegen (voor)","Insert column after":"Kolom invoegen (na)","Insert row above":"Rij invoegen (boven)","Insert row below":"Rij invoegen (onder)","Delete table":"Tabel verwijderen","Delete row":"Rij verwijderen","Delete column":"Kolom verwijderen","Empty cell":"Cel leegmaken",Delete:"Verwijderen","Strike through":"Doorstrepen",Underline:"Onderstrepen",Break:"Enter","Search for":"Zoek naar","Replace with":"Vervangen door",Replace:"Vervangen",Edit:"Bewerken","Vertical align":"Verticaal uitlijnen","Horizontal align":"Horizontaal uitlijnen",Filter:"Filteren","Sort by changed":"Sorteren op wijzigingsdatum","Sort by name":"Sorteren op naam","Sort by size":"Sorteren op grootte","Add folder":"Map toevoegen",Split:"Splitsen","Split vertical":"Verticaal splitsen","Split horizontal":"Horizontaal splitsen",Merge:"Samenvoegen","Add column":"Kolom toevoegen","Add row":"Rij toevoegen",Border:"Rand","Embed code":"Embed code",Update:"Updaten",superscript:"Superscript",subscript:"Subscript","Cut selection":"Selectie knippen",Paste:"Plakken","Choose Content to Paste":"Kies content om te plakken","Chars: %d":"Tekens: %d","Words: %d":"Woorden: %d",All:"Alles","Select %s":"Selecteer: %s","Select all":"Selecteer alles",source:"Broncode",bold:"vet",italic:"cursief",brush:"kwast",link:"link",undo:"ongedaan maken",redo:"opnieuw",table:"tabel",image:"afbeelding",eraser:"gum",paragraph:"paragraaf",fontsize:"lettergrootte",video:"video",font:"lettertype",about:"over",print:"afdrukken",symbol:"symbool",underline:"onderstreept",strikethrough:"doorgestreept",indent:"inspringen",outdent:"minder inspringen",fullsize:"volledige grootte",shrink:"kleiner maken",copyformat:"opmaak kopiëren",hr:"horizontale lijn",ul:"lijst",ol:"genummerde lijst",cut:"knip",selectall:"alles selecteren","Open link":"link openen","Edit link":"link aanpassen","No follow":"niet volgen",Unlink:"link verwijderen",Eye:"Recensie",pencil:"Om te bewerken"," URL":" URL",Reset:"Herstellen",Save:"Opslaan","Save as ...":"Opslaan als ...",Resize:"Grootte aanpassen",Crop:"Bijknippen",Width:"Breedte",Height:"Hoogte","Keep Aspect Ratio":"Verhouding behouden",Yes:"Ja",No:"Nee",Remove:"Verwijderen",Select:"Selecteren","You can only edit your own images. Download this image on the host?":"Je kunt alleen je eigen afbeeldingen aanpassen. Deze afbeelding downloaden?","The image has been successfully uploaded to the host!":"De afbeelding is succesvol geüploadet!",palette:"Palette","There are no files":"Er zijn geen bestanden in deze map.",Rename:"Hongaars","Enter new name":"Voer een nieuwe naam in",preview:"voorvertoning",download:"Download","Paste from clipboard":"Plakken van klembord","Your browser doesn't support direct access to the clipboard.":"Uw browser ondersteunt geen directe toegang tot het klembord.","Copy selection":"Selectie kopiëren",copy:"kopiëren","Border radius":"Border radius","Show all":"Toon alle",Apply:"Toepassing","Please fill out this field":"Vul dit veld","Please enter a web address":"Voer een webadres",Default:"Standaard",Circle:"Cirkel",Dot:"Dot",Quadrate:"Quadrate",Find:"Zoeken","Find Previous":"Vorige Zoeken","Find Next":"Volgende Zoeken","Insert className":"Voeg de klassenaam in","Line height":"Lijnhoogte",Spellchecking:"Spellingcontrole"}},e=>{e.exports={"Type something":"Napisz coś",Advanced:"Zaawansowane","About Jodit":"O Jodit","Jodit Editor":"Edytor Jodit","Jodit User's Guide":"Instrukcja Jodit","contains detailed help for using":"zawiera szczegółowe informacje dotyczące użytkowania.","For information about the license, please go to our website:":"Odwiedź naszą stronę, aby uzyskać więcej informacji na temat licencji:","Buy full version":"Zakup pełnej wersji","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Wszystkie prawa zastrzeżone.",Anchor:"Kotwica","Open in new tab":"Otwórz w nowej zakładce","Open editor in fullsize":"Otwórz edytor w pełnym rozmiarze","Clear Formatting":"Wyczyść formatowanie","Fill color or set the text color":"Kolor wypełnienia lub ustaw kolor tekstu",Redo:"Ponów",Undo:"Cofnij",Bold:"Pogrubienie",Italic:"Kursywa","Insert Unordered List":"Wstaw listę wypunktowaną","Insert Ordered List":"Wstaw listę numeryczną","Align Center":"Wyśrodkuj","Align Justify":"Wyjustuj","Align Left":"Wyrównaj do lewej","Align Right":"Wyrównaj do prawej","Insert Horizontal Line":"Wstaw linię poziomą","Insert Image":"Wstaw grafikę","Insert file":"Wstaw plik","Insert youtube/vimeo video":"Wstaw film Youtube/vimeo","Insert link":"Wstaw link","Font size":"Rozmiar tekstu","Font family":"Krój czcionki","Insert format block":"Wstaw formatowanie",Normal:"Normalne","Heading 1":"Nagłówek 1","Heading 2":"Nagłówek 2","Heading 3":"Nagłówek 3","Heading 4":"Nagłówek 4",Quote:"Cytat",Code:"Kod",Insert:"Wstaw","Insert table":"Wstaw tabelę","Decrease Indent":"Zmniejsz wcięcie","Increase Indent":"Zwiększ wcięcie","Select Special Character":"Wybierz znak specjalny","Insert Special Character":"Wstaw znak specjalny","Paint format":"Malarz formatów","Change mode":"Zmień tryb",Margins:"Marginesy",top:"Górny",right:"Prawy",bottom:"Dolny",left:"Levy",Styles:"Style CSS",Classes:"Klasy CSS",Align:"Wyrównanie",Right:"Prawa",Center:"środek",Left:"Lewa","--Not Set--":"brak",Src:"Źródło",Title:"Tytuł",Alternative:"Tekst alternatywny",Link:"Link","Open link in new tab":"Otwórz w nowej zakładce",Image:"Grafika",file:"Plik",Advansed:"Zaawansowne","Image properties":"Właściwości grafiki",Cancel:"Anuluj",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Twój kod wygląda jak HTML. Zachować HTML?","Paste as HTML":"Wkleić jako HTML?",Keep:"Oryginalny tekst",Clean:"Wyczyść","Insert as Text":"Wstaw jako tekst","Word Paste Detected":"Wykryto tekst w formacie Word","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Wklejany tekst pochodzi z dokumentu Microsoft Word/Excel. Chcesz zachować ten format czy wyczyścić go? ","Insert only Text":"Wstaw tylko treść","File Browser":"Przeglądarka plików","Error on load list":"Błąd ładowania listy plików","Error on load folders":"Błąd ładowania folderów","Are you sure?":"Czy jesteś pewien?","Enter Directory name":"Wprowadź nazwę folderu","Create directory":"Utwórz folder","type name":"wprowadź nazwę","Drop image":"Upuść plik graficzny","Drop file":"Upuść plik","or click":"lub kliknij tu","Alternative text":"Tekst alternatywny",Browse:"Przeglądaj",Upload:"Wczytaj",Background:"Tło",Text:"Treść",Top:"Góra",Middle:"Środek",Bottom:"Dół","Insert column before":"Wstaw kolumnę przed","Insert column after":"Wstaw kolumnę po","Insert row above":"Wstaw wiersz przed","Insert row below":"Wstaw wiersz po","Delete table":"Usuń tabelę","Delete row":"Usuń wiersz","Delete column":"Usuń kolumnę","Empty cell":"Wyczyść komórkę",Delete:"Usuń","Strike through":"Przekreślenie",Underline:"Podkreślenie",Break:"Przerwa","Search for":"Szukaj","Replace with":"Zamień na",Replace:"Wymienić",Edit:"Edytuj","Vertical align":"Wyrównywanie w pionie","Horizontal align":"Wyrównywanie w poziomie",Filter:"Filtruj","Sort by changed":"Sortuj wg zmiany","Sort by name":"Sortuj wg nazwy","Sort by size":"Sortuj wg rozmiaru","Add folder":"Dodaj folder","Split vertical":"Podziel w pionie","Split horizontal":"Podziel w poziomie",Split:"Podziel",Merge:"Scal","Add column":"Dodaj kolumnę","Add row":"Dodaj wiersz",Border:"Obramowanie","Embed code":"Wstaw kod",Update:"Aktualizuj",superscript:"indeks górny",subscript:"index dolny","Cut selection":"Wytnij zaznaczenie",Paste:"Wklej","Choose Content to Paste":"Wybierz zawartość do wklejenia","Chars: %d":"Znaki: %d","Words: %d":"Słowa: %d",All:"Wszystko","Select %s":"Wybierz: %s","Select all":"Wybierz wszystko",source:"HTML",bold:"pogrubienie",italic:"kursywa",brush:"pędzel",link:"link",undo:"cofnij",redo:"ponów",table:"tabela",image:"grafika",eraser:"wyczyść",paragraph:"akapit",fontsize:"rozmiar czcionki",video:"wideo",font:"czcionka",about:"O programie",print:"drukuj",symbol:"symbol",underline:"podkreślenie",strikethrough:"przekreślenie",indent:"wcięcie",outdent:"wycięcie",fullsize:"pełen rozmiar",shrink:"przytnij",copyformat:"format kopii",hr:"linia pozioma",ul:"lista",ol:"lista numerowana",cut:"wytnij",selectall:"zaznacz wszystko","Open link":"otwórz link","Edit link":"edytuj link","No follow":"Atrybut no-follow",Unlink:"Usuń link",Eye:"szukaj",pencil:"edytuj"," URL":"URL",Reset:"wyczyść",Save:"zapisz","Save as ...":"zapisz jako",Resize:"Zmień rozmiar",Crop:"Przytnij",Width:"Szerokość",Height:"Wysokość","Keep Aspect Ratio":"Zachowaj proporcje",Yes:"Tak",No:"Nie",Remove:"Usuń",Select:"Wybierz","You can only edit your own images. Download this image on the host?":"Możesz edytować tylko swoje grafiki. Czy chcesz pobrać tą grafikę?","The image has been successfully uploaded to the host!":"Grafika została pomyślnienie dodana na serwer",palette:"Paleta","There are no files":"Brak plików.",Rename:"zmień nazwę","Enter new name":"Wprowadź nową nazwę",preview:"podgląd",download:"pobierz","Paste from clipboard":"Wklej ze schowka","Your browser doesn't support direct access to the clipboard.":"Twoja przeglądarka nie obsługuje schowka","Copy selection":"Kopiuj zaznaczenie",copy:"kopiuj","Border radius":"Zaokrąglenie krawędzi","Show all":"Pokaż wszystkie",Apply:"Zastosuj","Please fill out this field":"Proszę wypełnić to pole","Please enter a web address":"Proszę, wpisz adres sieci web",Default:"Domyślnie",Circle:"Koło",Dot:"Punkt",Quadrate:"Kwadrat",Find:"Znaleźć","Find Previous":"Znaleźć Poprzednie","Find Next":"Znajdź Dalej","Insert className":"Wstaw nazwę zajęć","Line height":"Wysokość linii",Spellchecking:"Sprawdzanie pisowni"}},e=>{e.exports={"Type something":"Escreva algo...",Advanced:"Avançado","About Jodit":"Sobre o Jodit","Jodit Editor":"Editor Jodit","Jodit User's Guide":"Guia de usuário Jodit","contains detailed help for using":"contém ajuda detalhada para o uso.","For information about the license, please go to our website:":"Para informação sobre a licença, por favor visite nosso site:","Buy full version":"Compre a versão completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Todos os direitos reservados.",Anchor:"Link","Open in new tab":"Abrir em nova aba","Open editor in fullsize":"Abrir editor em tela cheia","Clear Formatting":"Limpar formatação","Fill color or set the text color":"Cor de preenchimento ou cor do texto",Redo:"Refazer",Undo:"Desfazer",Bold:"Negrito",Italic:"Itálico","Insert Unordered List":"Inserir lista não ordenada","Insert Ordered List":"Inserir lista ordenada","Align Center":"Centralizar","Align Justify":"Justificar","Align Left":"Alinhar à Esquerda","Align Right":"Alinhar à Direita","Insert Horizontal Line":"Inserir linha horizontal","Insert Image":"Inserir imagem","Insert file":"Inserir arquivo","Insert youtube/vimeo video":"Inserir vídeo do Youtube/vimeo","Insert link":"Inserir link","Font size":"Tamanho da letra","Font family":"Fonte","Insert format block":"Inserir bloco",Normal:"Normal","Heading 1":"Cabeçalho 1","Heading 2":"Cabeçalho 2","Heading 3":"Cabeçalho 3","Heading 4":"Cabeçalho 4",Quote:"Citação",Code:"Código",Insert:"Inserir","Insert table":"Inserir tabela","Decrease Indent":"Diminuir recuo","Increase Indent":"Aumentar recuo","Select Special Character":"Selecionar caractere especial","Insert Special Character":"Inserir caractere especial","Paint format":"Copiar formato","Change mode":"Mudar modo",Margins:"Margens",top:"cima",right:"direta",bottom:"baixo",left:"esquerda",Styles:"Estilos CSS",Classes:"Classes CSS",Align:"Alinhamento",Right:"Direita",Center:"Centro",Left:"Esquerda","--Not Set--":"--Não Estabelecido--",Src:"Fonte",Title:"Título",Alternative:"Texto Alternativo",Link:"Link","Open link in new tab":"Abrir link em nova aba",Image:"Imagem",file:"Arquivo",Advansed:"Avançado","Image properties":"Propriedades da imagem",Cancel:"Cancelar",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Seu código é similar ao HTML. Manter como HTML?","Paste as HTML":"Colar como HTML?",Keep:"Manter",Clean:"Limpar","Insert as Text":"Inserir como Texto","Word Paste Detected":"Colado do Word Detectado","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"O conteúdo colado veio de um documento Microsoft Word/Excel. Você deseja manter o formato ou limpa-lo?","Insert only Text":"Inserir somente o Texto","File Browser":"Procurar arquivo","Error on load list":"Erro ao carregar a lista","Error on load folders":"Erro ao carregar as pastas","Are you sure?":"Você tem certeza?","Enter Directory name":"Escreva o nome da pasta","Create directory":"Criar pasta","type name":"Escreva seu nome","Drop image":"Soltar imagem","Drop file":"Soltar arquivo","or click":"ou clique","Alternative text":"Texto alternativo",Browse:"Explorar",Upload:"Upload",Background:"Fundo",Text:"Texto",Top:"Cima",Middle:"Meio",Bottom:"Baixo","Insert column before":"Inserir coluna antes","Insert column after":"Inserir coluna depois","Insert row above":"Inserir linha acima","Insert row below":"Inserir linha abaixo","Delete table":"Excluir tabela","Delete row":"Excluir linha","Delete column":"Excluir coluna","Empty cell":"Limpar célula",Delete:"Excluir","Strike through":"Tachado",Underline:"Sublinhar",Break:"Pausa","Search for":"Procurar por","Replace with":"Substituir com",Replace:"Substituir",Edit:"Editar","Vertical align":"Alinhamento vertical","Horizontal align":"Alinhamento horizontal",Filter:"filtrar","Sort by changed":"Ordenar por modificação","Sort by name":"Ordenar por nome","Sort by size":"Ordenar por tamanho","Add folder":"Adicionar pasta",Split:"Dividir","Split vertical":"Dividir vertical","Split horizontal":"Dividir horizontal",Merge:"Mesclar","Add column":"Adicionar coluna","Add row":"Adicionar linha",Border:"Borda","Embed code":"Incluir código",Update:"Atualizar",superscript:"sobrescrito",subscript:"subscrito","Cut selection":"Cortar seleção",Paste:"Colar","Choose Content to Paste":"Escolher conteúdo para colar","Chars: %d":"Caracteres: %d","Words: %d":"Palavras: %d",All:"Tudo","Select %s":"Selecionar: %s","Select all":"Selecionar tudo",source:"HTML",bold:"negrito",italic:"itálico",brush:"pincel",link:"link",undo:"desfazer",redo:"refazer",table:"tabela",image:"imagem",eraser:"apagar",paragraph:"parágrafo",fontsize:"tamanho da letra",video:"vídeo",font:"fonte",about:"Sobre de",print:"Imprimir",symbol:"Símbolo",underline:"sublinhar",strikethrough:"tachado",indent:"recuar",outdent:"diminuir recuo",fullsize:"Tamanho completo",shrink:"diminuir",copyformat:"Copiar formato",hr:"linha horizontal",ul:"lista não ordenada",ol:"lista ordenada",cut:"Cortar",selectall:"Selecionar tudo","Open link":"Abrir link","Edit link":"Editar link","No follow":"Não siga",Unlink:"Remover link",Eye:"Visualizar",pencil:"Editar"," URL":"URL",Reset:"Resetar",Save:"Salvar","Save as ...":"Salvar como...",Resize:"Redimensionar",Crop:"Recortar",Width:"Largura",Height:"Altura","Keep Aspect Ratio":"Manter a proporção",Yes:"Sim",No:"Não",Remove:"Remover",Select:"Selecionar","You can only edit your own images. Download this image on the host?":"Você só pode editar suas próprias imagens. Baixar essa imagem pro servidor?","The image has been successfully uploaded to the host!":"A imagem foi enviada com sucesso para o servidor!",palette:"Palette","There are no files":"Não há arquivos nesse diretório.",Rename:"Húngara","Enter new name":"Digite um novo nome",preview:"preview",download:"Baixar","Paste from clipboard":"Colar da área de transferência","Your browser doesn't support direct access to the clipboard.":"O seu navegador não oferece suporte a acesso direto para a área de transferência.","Copy selection":"Selecção de cópia",copy:"cópia","Border radius":"Border radius","Show all":"Mostrar todos os",Apply:"Aplicar","Please fill out this field":"Por favor, preencha este campo","Please enter a web address":"Por favor introduza um endereço web",Default:"Padrão",Circle:"Círculo",Dot:"Ponto",Quadrate:"Quadro","Lower Alpha":"Letra Minúscula","Lower Greek":"Grego Minúscula","Lower Roman":"Romano Minúscula","Upper Alpha":"Letra Maiúscula","Upper Roman":"Romano Maiúscula",Find:"Encontrar","Find Previous":"Encontrar Anteriores","Find Next":"Localizar Próxima","Insert className":"Insira o nome da classe","Line height":"Altura da linha",Spellchecking:"Verificação ortográfica"}},e=>{e.exports={"Type something":"Напишите что-либо","About Jodit":"О Jodit","Jodit Editor":"Редактор Jodit","Jodit User's Guide":"Jodit Руководство пользователя","contains detailed help for using":"содержит детальную информацию по использованию","For information about the license, please go to our website:":"Для получения сведений о лицензии , пожалуйста, перейдите на наш сайт:","Buy full version":"Купить полную версию","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.",Anchor:"Анкор","Open in new tab":"Открывать ссылку в новой вкладке","Open editor in fullsize":"Открыть редактор в полном размере","Clear Formatting":"Очистить форматирование","Fill color or set the text color":"Цвет заливки или цвет текста",Redo:"Повтор",Undo:"Отмена",Bold:"Жирный",Italic:"Наклонный","Insert Unordered List":"Вставка маркированного списка","Insert Ordered List":"Вставить нумерованный список","Align Center":"Выровнять по центру","Align Justify":"Выровнять по ширине","Align Left":"Выровнять по левому краю","Align Right":"Выровнять по правому краю","Insert Horizontal Line":"Вставить горизонтальную линию","Insert Image":"Вставить изображение","Insert file":"Вставить файл","Insert youtube/vimeo video":"Вставьте видео","Insert link":"Вставить ссылку","Font size":"Размер шрифта","Font family":"Шрифт","Insert format block":"Вставить блочный элемент",Normal:"Нормальный текст","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4",Quote:"Цитата",Code:"Код",Insert:"Вставить","Insert table":"Вставить таблицу","Decrease Indent":"Уменьшить отступ","Increase Indent":"Увеличить отступ","Select Special Character":"Выберите специальный символ","Insert Special Character":"Вставить специальный символ","Paint format":"Формат краски","Change mode":"Источник",Margins:"Отступы",top:"сверху",right:"справа",bottom:"снизу",left:"слева",Styles:"Стили",Classes:"Классы",Align:"Выравнивание",Right:"По правому краю",Center:"По центру",Left:"По левому краю","--Not Set--":"--не устанавливать--",Src:"src",Title:"Заголовок",Alternative:"Альтернативный текст (alt)",Link:"Ссылка","Open link in new tab":"Открывать ссылку в новом окне",file:"Файл",Advanced:"Расширенные","Image properties":"Свойства изображения",Cancel:"Отмена",Ok:"Ок","Your code is similar to HTML. Keep as HTML?":"Ваш текст, который вы пытаетесь вставить похож на HTML. Вставить его как HTML?","Paste as HTML":"Вставить как HTML?",Keep:"Сохранить оригинал",Clean:"Почистить","Insert as Text":"Вставить как текст","Insert only Text":"Вставить только текст","Word Paste Detected":"Возможно это фрагмент Word или Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Контент который вы вставляете поступает из документа Microsoft Word / Excel. Вы хотите сохранить формат или очистить его?","File Browser":"Браузер файлов","Error on load list":"Ошибка при загрузке списка изображений","Error on load folders":"Ошибка при загрузке списка директорий","Are you sure?":"Вы уверены?","Enter Directory name":"Введите название директории","Create directory":"Создать директорию","type name":"введите название","Drop image":"Перетащите сюда изображение","Drop file":"Перетащите сюда файл","or click":"или нажмите","Alternative text":"Альтернативный текст",Browse:"Сервер",Upload:"Загрузка",Background:"Фон",Text:"Текст",Top:" К верху",Middle:"По середине",Bottom:"К низу","Insert column before":"Вставить столбец до","Insert column after":"Вставить столбец после","Insert row above":"Вставить ряд выше","Insert row below":"Вставить ряд ниже","Delete table":"Удалить таблицу","Delete row":"Удалять ряд","Delete column":"Удалить столбец","Empty cell":"Очистить ячейку",source:"HTML",bold:"жирный",italic:"курсив",brush:"заливка",link:"ссылка",undo:"отменить",redo:"повторить",table:"таблица",image:"Изображение",eraser:"очистить",paragraph:"параграф",fontsize:"размер шрифта",video:"видео",font:"шрифт",about:"о редакторе",print:"печать",symbol:"символ",underline:"подчеркнутый",strikethrough:"перечеркнутый",indent:"отступ",outdent:"выступ",fullsize:"во весь экран",shrink:"обычный размер",copyformat:"Копировать формат",hr:"линия",ul:"Список",ol:"Нумерованный список",cut:"Вырезать",selectall:"Выделить все","Embed code":"Код","Open link":"Открыть ссылку","Edit link":"Редактировать ссылку","No follow":"Атрибут nofollow",Unlink:"Убрать ссылку",Eye:"Просмотр",pencil:"Редактировать",Update:"Обновить"," URL":"URL",Edit:"Редактировать","Horizontal align":"Горизонтальное выравнивание",Filter:"Фильтр","Sort by changed":"По изменению","Sort by name":"По имени","Sort by size":"По размеру","Add folder":"Добавить папку",Reset:"Восстановить",Save:"Сохранить","Save as ...":"Сохранить как",Resize:"Изменить размер",Crop:"Обрезать размер",Width:"Ширина",Height:"Высота","Keep Aspect Ratio":"Сохранять пропорции",Yes:"Да",No:"Нет",Remove:"Удалить",Select:"Выделить","Chars: %d":"Символов: %d","Words: %d":"Слов: %d",All:"Выделить все","Select %s":"Выделить: %s","Select all":"Выделить все","Vertical align":"Вертикальное выравнивание",Split:"Разделить","Split vertical":"Разделить по вертикали","Split horizontal":"Разделить по горизонтали",Merge:"Объединить в одну","Add column":"Добавить столбец","Add row":"Добавить строку",Delete:"Удалить",Border:"Рамка","License: %s":"Лицензия: %s","Strike through":"Перечеркнуть",Underline:"Подчеркивание",superscript:"верхний индекс",subscript:"индекс","Cut selection":"Вырезать",Break:"Разделитель","Search for":"Найти","Replace with":"Заменить на",Replace:"Заменить",Paste:"Вставить","Choose Content to Paste":"Выбрать контент для вставки","You can only edit your own images. Download this image on the host?":"Вы можете редактировать только свои собственные изображения. Загрузить это изображение на ваш сервер?","The image has been successfully uploaded to the host!":"Изображение успешно загружено на сервер!",palette:"палитра","There are no files":"В данном каталоге нет файлов",Rename:"Переименовать","Enter new name":"Введите новое имя",preview:"Предпросмотр",download:"Скачать","Paste from clipboard":"Вставить из буфера обмена","Your browser doesn't support direct access to the clipboard.":"Ваш браузер не поддерживает прямой доступ к буферу обмена.","Copy selection":"Скопировать выделенное",copy:"копия","Border radius":"Радиус границы","Show all":"Показать все",Apply:"Применить","Please fill out this field":"Пожалуйста, заполните это поле","Please enter a web address":"Пожалуйста, введите веб-адрес",Default:"По умолчанию",Circle:"Круг",Dot:"Точка",Quadrate:"Квадрат",Find:"Найти","Find Previous":"Найти Предыдущие","Find Next":"Найти Далее","Insert className":"Вставить название класса","Line height":"Высота линии",Spellchecking:"Проверка орфографии"}},e=>{e.exports={"Type something":"Bir şeyler yaz",Advanced:"Gelişmiş","About Jodit":"Jodit Hakkında","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit Kullanım Kılavuzu","contains detailed help for using":"kullanım için detaylı bilgiler içerir","For information about the license, please go to our website:":"Lisans hakkında bilgi için lütfen web sitemize gidin:","Buy full version":"Tam versiyonunu satın al","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tüm hakları saklıdır.",Anchor:"Bağlantı","Open in new tab":"Yeni sekmede aç","Open editor in fullsize":"Editörü tam ekranda aç","Clear Formatting":"Stili temizle","Fill color or set the text color":"Renk doldur veya yazı rengi seç",Redo:"Yinele",Undo:"Geri Al",Bold:"Kalın",Italic:"İtalik","Insert Unordered List":"Sırasız Liste Ekle","Insert Ordered List":"Sıralı Liste Ekle","Align Center":"Ortala","Align Justify":"Kenarlara Yasla","Align Left":"Sola Yasla","Align Right":"Sağa Yasla","Insert Horizontal Line":"Yatay Çizgi Ekle","Insert Image":"Resim Ekle","Insert file":"Dosya Ekle","Insert youtube/vimeo video":"Youtube/Vimeo Videosu Ekle","Insert link":"Bağlantı Ekle","Font size":"Font Boyutu","Font family":"Font Ailesi","Insert format block":"Blok Ekle",Normal:"Normal","Heading 1":"Başlık 1","Heading 2":"Başlık 2","Heading 3":"Başlık 3","Heading 4":"Başlık 4",Quote:"Alıntı",Code:"Kod",Insert:"Ekle","Insert table":"Tablo Ekle","Decrease Indent":"Girintiyi Azalt","Increase Indent":"Girintiyi Arttır","Select Special Character":"Özel Karakter Seç","Insert Special Character":"Özel Karakter Ekle","Paint format":"Resim Biçimi","Change mode":"Mod Değiştir",Margins:"Boşluklar",top:"Üst",right:"Sağ",bottom:"Alt",left:"Sol",Styles:"CSS Stilleri",Classes:"CSS Sınıfları",Align:"Hizalama",Right:"Sağ",Center:"Ortalı",Left:"Sol","--Not Set--":"Belirsiz",Src:"Kaynak",Title:"Başlık",Alternative:"Alternatif Yazı",Link:"Link","Open link in new tab":"Bağlantıyı yeni sekmede aç",Image:"Resim",file:"Dosya",Advansed:"Gelişmiş","Image properties":"Resim özellikleri",Cancel:"İptal",Ok:"Tamam","Your code is similar to HTML. Keep as HTML?":"Kodunuz HTML koduna benziyor. HTML olarak devam etmek ister misiniz?","Paste as HTML":"HTML olarak yapıştır",Keep:"Sakla",Clean:"Temizle","Insert as Text":"Yazı olarak ekle","Word Paste Detected":"Word biçiminde yapıştırma algılandı","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder löschen?","Insert only Text":"Sadece yazıyı ekle","File Browser":"Dosya Listeleyici","Error on load list":"Liste yüklenirken hata oluştu","Error on load folders":"Klasörler yüklenirken hata oluştur","Are you sure?":"Emin misiniz?","Enter Directory name":"Dizin yolu giriniz","Create directory":"Dizin oluştur","type name":"İsim yaz","Drop image":"Resim bırak","Drop file":"Dosya bırak","or click":"veya tıkla","Alternative text":"Alternatif yazı",Browse:"Gözat",Upload:"Yükle",Background:"Arka plan",Text:"Yazı",Top:"Üst",Middle:"Orta",Bottom:"Aşağı","Insert column before":"Öncesine kolon ekle","Insert column after":"Sonrasına kolon ekle","Insert row above":"Üstüne satır ekle","Insert row below":"Altına satır ekle","Delete table":"Tabloyu sil","Delete row":"Satırı sil","Delete column":"Kolonu sil","Empty cell":"Hücreyi temizle",Delete:"Sil","Strike through":"Üstü çizili",Underline:"Alt çizgi",Break:"Satır sonu","Search for":"Ara","Replace with":"Şununla değiştir",Replace:"Değiştir",Edit:"Düzenle","Vertical align":"Dikey hizala","Horizontal align":"Yatay hizala",Filter:"Filtre","Sort by changed":"Değişime göre sırala","Sort by name":"İsme göre sırala","Sort by size":"Boyuta göre sırala","Add folder":"Klasör ekle",Split:"Ayır","Split vertical":"Dikey ayır","Split horizontal":"Yatay ayır",Merge:"Birleştir","Add column":"Kolon ekle","Add row":"Satır ekle",Border:"Kenarlık","Embed code":"Kod ekle",Update:"Güncelle",superscript:"Üst yazı",subscript:"Alt yazı","Cut selection":"Seçilimi kes",Paste:"Yapıştır","Choose Content to Paste":"Yapıştırılacak içerik seç","Chars: %d":"Harfler: %d","Words: %d":"Kelimeler: %d",All:"Tümü","Select %s":"Seç: %s","Select all":"Tümünü seç",source:"Kaynak",bold:"Kalın",italic:"italik",brush:"Fırça",link:"Bağlantı",undo:"Geri al",redo:"Yinele",table:"Tablo",image:"Resim",eraser:"Silgi",paragraph:"Paragraf",fontsize:"Font boyutu",video:"Video",font:"Font",about:"Hakkında",print:"Yazdır",symbol:"Sembol",underline:"Alt çizgi",strikethrough:"Üstü çizili",indent:"Girinti",outdent:"Çıkıntı",fullsize:"Tam ekran",shrink:"Küçült",copyformat:"Kopyalama Biçimi",hr:"Ayraç",ul:"Sırasız liste",ol:"Sıralı liste",cut:"Kes",selectall:"Tümünü seç","Open link":"Bağlantıyı aç","Edit link":"Bağlantıyı düzenle","No follow":"Nofollow özelliği",Unlink:"Bağlantıyı kaldır",Eye:"Yorumu",pencil:"Düzenlemek için"," URL":"URL",Reset:"Sıfırla",Save:"Kaydet","Save as ...":"Farklı kaydet",Resize:"Boyutlandır",Crop:"Kırp",Width:"Genişlik",Height:"Yükseklik","Keep Aspect Ratio":"En boy oranını koru",Yes:"Evet",No:"Hayır",Remove:"Sil",Select:"Seç","You can only edit your own images. Download this image on the host?":"Sadece kendi resimlerinizi düzenleyebilirsiniz. Bu görseli kendi hostunuza indirmek ister misiniz?","The image has been successfully uploaded to the host!":"Görsel başarıyla hostunuza yüklendi",palette:"Palet","There are no files":"Bu dizinde dosya yok",Rename:"Yeniden isimlendir","Enter new name":"Yeni isim girin",preview:"Ön izleme",download:"İndir","Paste from clipboard":"Panodan yapıştır ","Your browser doesn't support direct access to the clipboard.":"Tarayıcınız panoya doğrudan erişimi desteklemiyor.","Copy selection":"Seçimi kopyala",copy:"Kopyala","Border radius":"Sınır yarıçapı","Show all":"Tümünü Göster",Apply:"Uygula","Please fill out this field":"Lütfen bu alanı doldurun","Please enter a web address":"Lütfen bir web adresi girin",Default:"Varsayılan",Circle:"Daire",Dot:"Nokta",Quadrate:"Kare",Find:"Bul","Find Previous":"Öncekini Bul","Find Next":"Sonrakini Bul","Insert className":"Sınıf adı girin","Line height":"Çizgi yüksekliği",Spellchecking:"Yazım denetimi"}},e=>{e.exports={"Type something":"输入一些内容",Advanced:"高级","About Jodit":"关于Jodit","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Free Non-commercial Version","Jodit User's Guide":"开发者指南","contains detailed help for using":"使用帮助","For information about the license, please go to our website:":"有关许可证的信息,请访问我们的网站:","Buy full version":"购买完整版本","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. 版权所有",Anchor:"Anchor","Open in new tab":"在新窗口打开","Open editor in fullsize":"全屏编辑","Clear Formatting":"清除样式","Fill color or set the text color":"颜色",Redo:"重做",Undo:"撤销",Bold:"粗体",Italic:"斜体","Insert Unordered List":"符号列表","Insert Ordered List":"编号","Align Center":"居中","Align Justify":"对齐文本","Align Left":"左对齐","Align Right":"右对齐","Insert Horizontal Line":"分割线","Insert Image":"图片","Insert file":"文件","Insert youtube/vimeo video":"视频","Insert link":"链接","Font size":"字号","Font family":"字体","Insert format block":"格式块",Normal:"默认","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4",Quote:"引用",Code:"代码",Insert:"插入","Insert table":"表格","Decrease Indent":"减少缩进","Increase Indent":"增加缩进","Select Special Character":"选择特殊符号","Insert Special Character":"特殊符号","Paint format":"格式复制","Change mode":"改变模式",Margins:"外边距(Margins)",top:"top",right:"right",bottom:"bottom",left:"left",Styles:"样式",Classes:"Classes",Align:"对齐方式",Right:"居右",Center:"居中",Left:"居左","--Not Set--":"无",Src:"Src",Title:"Title",Alternative:"Alternative",Link:"Link","Open link in new tab":"在新窗口打开链接",Image:"图片",file:"file",Advansed:"高级","Image properties":"图片属性",Cancel:"取消",Ok:"确定","Your code is similar to HTML. Keep as HTML?":"你粘贴的文本是一段html代码,是否保留源格式","Paste as HTML":"html粘贴",Keep:"保留源格式",Clean:"匹配目标格式","Insert as Text":"把html代码视为普通文本","Word Paste Detected":"文本粘贴","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"正在粘贴 Word/Excel 的文本,是否保留源格式?","Insert only Text":"只保留文本","File Browser":"文件管理","Error on load list":"加载list错误","Error on load folders":"加载folders错误","Are you sure?":"你确定吗?","Enter Directory name":"输入路径","Create directory":"创建路径","type name":"type name","Drop image":"拖动图片到此","Drop file":"拖动文件到此","or click":"或点击","Alternative text":"Alternative text",Browse:"浏览",Upload:"上传",Background:"背景色",Text:"文字",Top:"顶部",Middle:"中间",Bottom:"底部","Insert column before":"在之前插入列","Insert column after":"在之后插入列","Insert row above":"在之前插入行","Insert row below":"在之后插入行","Delete table":"删除表格","Delete row":"删除行","Delete column":"删除列","Empty cell":"清除内容","Chars: %d":"字符数: %d","Words: %d":"单词数: %d","Strike through":"删除线",Underline:"下划线",superscript:"上标",subscript:"下标","Cut selection":"剪切","Select all":"全选",Break:"Break","Search for":"查找","Replace with":"替换为",Replace:"替换",Edit:"编辑",Paste:"粘贴","Choose Content to Paste":"选择内容并粘贴",All:"全部",source:"源码",bold:"粗体",italic:"斜体",brush:"颜色",link:"链接",undo:"撤销",redo:"重做",table:"表格",image:"图片",eraser:"橡皮擦",paragraph:"段落",fontsize:"字号",video:"视频",font:"字体",about:"关于",print:"打印",symbol:"符号",underline:"下划线",strikethrough:"上出现",indent:"增加缩进",outdent:"减少缩进",fullsize:"全屏",shrink:"收缩",copyformat:"复制格式",hr:"分割线",ul:"无序列表",ol:"顺序列表",cut:"剪切",selectall:"全选","Open link":"打开链接","Edit link":"编辑链接","No follow":"No follow",Unlink:"取消链接",Eye:"预览"," URL":"URL",Reset:"重置",Save:"保存","Save as ...":"保存为",Resize:"调整大小",Crop:"剪切",Width:"宽",Height:"高","Keep Aspect Ratio":"保持长宽比",Yes:"是",No:"不",Remove:"移除",Select:"选择","Select %s":"选择: %s",Update:"更新","Vertical align":"垂直对齐",Merge:"合并","Add column":"添加列","Add row":"添加行",Border:"边框","Embed code":"嵌入代码",Delete:"删除","Horizontal align":"水平对齐",Filter:"筛选","Sort by changed":"修改时间排序","Sort by name":"名称排序","Sort by size":"大小排序","Add folder":"新建文件夹",Split:"拆分","Split vertical":"垂直拆分","Split horizontal":"水平拆分","You can only edit your own images. Download this image on the host?":"你只能编辑你自己的图片。Download this image on the host?","The image has been successfully uploaded to the host!":"图片上传成功",palette:"调色板",pencil:"铅笔","There are no files":"此目录中沒有文件。",Rename:"重命名","Enter new name":"输入新名称",preview:"预览",download:"下载","Paste from clipboard":"粘贴从剪贴板","Your browser doesn't support direct access to the clipboard.":"你浏览器不支持直接访问的剪贴板。","Copy selection":"复制选中内容",copy:"复制","Border radius":"边界半径","Show all":"显示所有",Apply:"应用","Please fill out this field":"请填写这个字段","Please enter a web address":"请输入一个网址",Default:"默认",Circle:"圆圈",Dot:"点",Quadrate:"方形",Find:"搜索","Find Previous":"查找上一个","Find Next":"查找下一个","Insert className":"插入班级名称","Line height":"线高",Spellchecking:"拼写检查"}},e=>{e.exports={"Type something":"輸入一些內容",Advanced:"高級","About Jodit":"關於Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"開發者指南","contains detailed help for using":"使用幫助","For information about the license, please go to our website:":"有關許可證的信息,請訪問我們的網站:","Buy full version":"購買完整版本","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"Anchor","Open in new tab":"在新窗口打開","Open editor in fullsize":"全屏編輯","Clear Formatting":"清除樣式","Fill color or set the text color":"顏色",Redo:"重做",Undo:"撤銷",Bold:"粗體",Italic:"斜體","Insert Unordered List":"符號列表","Insert Ordered List":"編號","Align Center":"居中","Align Justify":"對齊文本","Align Left":"左對齊","Align Right":"右對齊","Insert Horizontal Line":"分割線","Insert Image":"圖片","Insert file":"文件","Insert youtube/vimeo video":"youtube/vimeo 影片","Insert link":"鏈接","Font size":"字號","Font family":"字體","Insert format block":"格式塊",Normal:"文本","Heading 1":"標題1","Heading 2":"標題2","Heading 3":"標題3","Heading 4":"標題4",Quote:"引用",Code:"代碼",Insert:"插入","Insert table":"表格","Decrease Indent":"減少縮進","Increase Indent":"增加縮進","Select Special Character":"選擇特殊符號","Insert Special Character":"特殊符號","Paint format":"格式複製","Change mode":"改變模式",Margins:"外邊距(Margins)",top:"top",right:"right",bottom:"bottom",left:"left",Styles:"樣式",Classes:"Classes",Align:"對齊方式",Right:"居右",Center:"居中",Left:"居左","--Not Set--":"無",Src:"Src",Title:"Title",Alternative:"替代",Link:"Link","Open link in new tab":"在新窗口打開鏈接",Image:"圖片",file:"file",Advansed:"高級","Image properties":"圖片屬性",Cancel:"取消",Ok:"確定","Your code is similar to HTML. Keep as HTML?":"你黏貼的文本是一段html代碼,是否保留源格式","Paste as HTML":"html黏貼",Keep:"保留源格式",Clean:"匹配目標格式","Insert as Text":"把html代碼視為普通文本","Word Paste Detected":"文本黏貼","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"正在黏貼 Word/Excel 的文本,是否保留源格式?","Insert only Text":"只保留文本","File Browser":"文件管理","Error on load list":"加載list錯誤","Error on load folders":"加載folders錯誤","Are you sure?":"你確定嗎?","Enter Directory name":"輸入路徑","Create directory":"創建路徑","type name":"type name","Drop image":"拖動圖片到此","Drop file":"拖動文件到此","or click":"或點擊","Alternative text":"替代文字",Browse:"瀏覽",Upload:"上傳",Background:"背景色",Text:"文字",Top:"頂部",Middle:"中間",Bottom:"底部","Insert column before":"在之前插入列","Insert column after":"在之後插入列","Insert row above":"在之前插入行","Insert row below":"在之後插入行","Delete table":"刪除表格","Delete row":"刪除行","Delete column":"刪除列","Empty cell":"清除內容","Chars: %d":"字符數: %d","Words: %d":"單詞數: %d","Strike through":"刪除線",Underline:"下劃線",superscript:"上標",subscript:"下標","Cut selection":"剪切","Select all":"全選",Break:"Pause","Search for":"查找","Replace with":"替換為",Replace:"แทนที่",Paste:"黏貼","Choose Content to Paste":"選擇內容並黏貼",All:"全部",source:"源碼",bold:"粗體",italic:"斜體",brush:"顏色",link:"鏈接",undo:"撤銷",redo:"重做",table:"表格",image:"圖片",eraser:"橡皮擦",paragraph:"段落",fontsize:"字號",video:"影片",font:"字體",about:"關於",print:"打印",symbol:"符號",underline:"下劃線",strikethrough:"上出現",indent:"增加縮進",outdent:"減少縮進",fullsize:"全屏",shrink:"收縮",copyformat:"複製格式",hr:"分割線",ul:"無序列表",ol:"順序列表",cut:"剪切",selectall:"全選","Open link":"打開鏈接","Edit link":"編輯鏈接","No follow":"No follow",Unlink:"取消連結",Eye:"回顧"," URL":"URL",Reset:"重置",Save:"保存","Save as ...":"保存為",Resize:"調整大小",Crop:"Crop",Width:"寬",Height:"高","Keep Aspect Ratio":"保存長寬比",Yes:"是",No:"不",Remove:"移除",Select:"選擇","Select %s":"選擇: %s",Update:"更新","Vertical align":"垂直對齊",Merge:"合併","Add column":"添加列","Add row":"添加行",Border:"邊框","Embed code":"嵌入代碼",Delete:"刪除","Horizontal align":"水平對齊",Filter:"篩選","Sort by changed":"修改時間排序","Sort by name":"名稱排序","Sort by size":"大小排序","Add folder":"新建文件夾",Split:"拆分","Split vertical":"垂直拆分","Split horizontal":"水平拆分","You can only edit your own images. Download this image on the host?":"你只能編輯你自己的圖片。是否下載此圖片到本地?","The image has been successfully uploaded to the host!":"圖片上傳成功",palette:"調色板",pencil:"鉛筆","There are no files":"此目錄中沒有文件。",Rename:"重命名","Enter new name":"輸入新名稱",preview:"預覽",download:"下載","Paste from clipboard":"從剪貼板貼上","Your browser doesn't support direct access to the clipboard.":"瀏覽器無法存取剪贴板。","Copy selection":"複製已選取項目",copy:"複製","Border radius":"邊框圓角","Show all":"顯示所有",Apply:"應用","Please fill out this field":"ได้โปรดกรอกช่องข้อมูลนี้","Please enter a web address":"โปรดเติมที่อยู่บนเว็บ",Default:"ค่าปริยาย",Circle:"วงกลม",Dot:"จุด",Quadrate:"Quadrate",Find:"ค้นหา","Find Previous":"ค้นหาก่อนหน้านี้","Find Next":"ค้นหาถัดไป","Insert className":"ใส่ชื่อคลาส","Line height":"ความสูงเส้น",Spellchecking:"สะกดคำ"}},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>'},(e,t,i)=>{"use strict";i.d(t,{YW:()=>r,ov:()=>c,IL:()=>l});var o=i(28),s=i(76),n=i(47);const r=(e,t,i)=>{const r="jodit-color-picker",a=(0,o.normalizeColor)(i),l=e.c.div(r),c=e.o.textIcons?`<span>${e.i18n("palette")}</span>`:s.JO.get("palette"),d=e=>{const t=[];return(0,o.isPlainObject)(e)?Object.keys(e).forEach((i=>{t.push(`<div class="${r}__group ${r}__group-${i}">`),t.push(d(e[i])),t.push("</div>")})):(0,o.isArray)(e)&&e.forEach((e=>{t.push(`<span class='${r}__color-item ${a===e?r+"__color-item_active_true":""}' title="${e}" style="background-color:${e}" data-color="${e}"></span>`)})),t.join("")};l.appendChild(e.c.fromHTML(`<div class="${r}__groups">${d(e.o.colors)}</div>`)),l.appendChild(e.c.fromHTML(`<div data-ref="extra" class="${r}__extra"></div>`));const{extra:h}=(0,o.refs)(l);return e.o.showBrowserColorPicker&&(0,o.hasBrowserColorPicker)()&&(h.appendChild(e.c.fromHTML(`<div class="${r}__native">${c}<input type="color" value="#ffffff"/></div>`)),e.e.on(l,"change",(e=>{e.stopPropagation();const i=e.target;if(!i||!i.tagName||!n.i.isTag(i,"input"))return;const s=i.value||"";(0,o.isFunction)(t)&&t(s),e.preventDefault()}))),e.e.on(l,"mousedown touchend",(i=>{i.stopPropagation(),i.preventDefault();let s=i.target;if(s&&s.tagName&&!n.i.isTag(s,"svg")&&!n.i.isTag(s,"path")||!s.parentNode||(s=n.i.closest(s.parentNode,"span",e.editor)),!n.i.isTag(s,"span")||!s.classList.contains(r+"__color-item"))return;const a=(0,o.attr)(s,"-color")||"";t&&(0,o.isFunction)(t)&&t(a)})),e.e.fire("afterGenerateColorPicker",l,h,t,a),l};var a=i(51);const l=(e,t,i)=>{const n=e.c.div("jodit-tabs"),r=e.c.div("jodit-tabs__wrapper"),l=e.c.div("jodit-tabs__buttons"),c={},d=[];let h="",u=0;n.appendChild(l),n.appendChild(r);const p=e=>{c[e]&&(d.forEach((e=>{e.state.activated=!1})),(0,o.$$)(".jodit-tab",r).forEach((e=>{e.classList.remove("jodit-tab_active")})),c[e].button.state.activated=!0,c[e].tab.classList.add("jodit-tab_active"))};if(t.forEach((({icon:n,name:m,content:f})=>{const g=e.c.div("jodit-tab"),v=(0,s.zx)(e,n||m,m);e.e.on(v.container,"mousedown",(e=>e.preventDefault())),h||(h=m),l.appendChild(v.container),d.push(v),v.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+t.length),(0,o.isFunction)(f)?g.appendChild(e.c.div("jodit-tab_empty")):g.appendChild(a.wA.isInstanceOf(f,s.u1)?f.container:f),r.appendChild(g),v.onAction((()=>(p(m),(0,o.isFunction)(f)&&f.call(e),i&&(i.__activeTab=m),!1))),c[m]={button:v,tab:g},u+=1})),!u)return n;if((0,o.$$)("a",l).forEach((e=>{e.style.width=(100/u).toFixed(10)+"%"})),p(i&&i.__activeTab&&c[i.__activeTab]?i.__activeTab:h),i){let e=i.__activeTab;Object.defineProperty(i,"__activeTab",{configurable:!0,enumerable:!1,get(){return e},set(t){e=t,p(t)}})}return n},c=(e,t,i,r,a=!0)=>{let c;const d=[];if(t.upload&&e.o.uploader&&(e.o.uploader.url||e.o.uploader.insertImageAsBase64URI)){const i=e.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${e.i18n(a?"Drop image":"Drop file")}</strong><span><br>${e.i18n("or click")}</span><input type="file" accept="${a?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);e.uploader.bind(i,(i=>{const s=(0,o.isFunction)(t.upload)?t.upload:e.o.uploader.defaultHandlerSuccess;(0,o.isFunction)(s)&&s.call(e,i),e.e.fire("closeAllPopups")}),(t=>{e.e.fire("errorMessage",t.message),e.e.fire("closeAllPopups")})),d.push({icon:"upload",name:"Upload",content:i})}if(t.filebrowser&&(e.o.filebrowser.ajax.url||e.o.filebrowser.items.url)&&d.push({icon:"folder",name:"Browse",content(){r&&r(),t.filebrowser&&e.filebrowser.open(t.filebrowser,a)}}),t.url){const r=new s.y3(e,{type:"submit",variant:"primary",text:"Insert"}),a=new s.x4(e,[new s.u3(e,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new s.u3(e,{name:"text",label:"Alternative text"}),new s.eC(e,[r])]);c=null,i&&!n.i.isText(i)&&(n.i.isTag(i,"img")||(0,o.$$)("img",i).length)&&(c="IMG"===i.tagName?i:(0,o.$$)("img",i)[0],(0,o.val)(a.container,"input[name=url]",(0,o.attr)(c,"src")),(0,o.val)(a.container,"input[name=text]",(0,o.attr)(c,"alt")),r.state.text="Update"),i&&n.i.isTag(i,"a")&&((0,o.val)(a.container,"input[name=url]",(0,o.attr)(i,"href")),(0,o.val)(a.container,"input[name=text]",(0,o.attr)(i,"title")),r.state.text="Update"),a.onSubmit((i=>{(0,o.isFunction)(t.url)&&t.url.call(e,i.url,i.text)})),d.push({icon:"link",name:"URL",content:a.container})}return l(e,d)}},(e,t,i)=>{"use strict";i.d(t,{z:()=>s});var o=i(28);const s=(e,t)=>{t&&"normal"!==t?"center"!==t?((0,o.css)(e,"float",t),(0,o.clearCenterAlign)(e)):(0,o.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,o.css)(e,"float")&&-1!==["right","left"].indexOf((""+(0,o.css)(e,"float")).toLowerCase())&&(0,o.css)(e,"float",""),(0,o.clearCenterAlign)(e))}},(e,t,i)=>{"use strict";var o=i(29);t.Z=[{name:"eye",tooltip:"Open link",exec(e,t){const i=(0,o.Lj)(t,"href");t&&i&&e.ow.open(i)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var o=i(47),s=i(8),n=i(32),r=i(99);const a={name:"left",childTemplate:(e,t,i)=>i,list:["Left","Right","Center","Normal"],exec(e,t,{control:i}){if(!o.i.isTag(t,["img","jodit","jodit-media"]))return;const n=i.args&&(0,s.H)(i.args[0])?i.args[0].toLowerCase():"";if(!n)return!1;(0,r.z)(t,n),o.i.isTag(t,["jodit","jodit-media"])&&t.firstElementChild&&(0,r.z)(t.firstElementChild,n),e.synchronizeValues(),e.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"};t.Z=[{name:"delete",icon:"bin",tooltip:"Delete",exec(e,t){t&&e.s.removeNode(t)}},{name:"pencil",exec(e,t){"img"===t.tagName.toLowerCase()&&e.e.fire("openImageProperties",t)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec(e,t,{control:i}){if(!o.i.isTag(t,"img"))return;const r=i.args&&(0,s.H)(i.args[0])?i.args[0].toLowerCase():"";if(!r)return!1;(0,n.i)(t,"vertical-align","normal"===r?"":r),e.e.fire("recalcPositionPopup")}},a]},(e,t,i)=>{"use strict";var o=i(45),s=i(32),n=i(98);const r=e=>e.args&&(0,o.HD)(e.args[0])?e.args[0].toLowerCase():"";t.Z=[{name:"brush",popup(e,t,i,r){if(!(0,o.Zu)(e))return;const a=e.getInstance("Table",e.o).getAllSelectedCells();if(!a.length)return!1;const l=t=>(0,n.YW)(e,(i=>{a.forEach((e=>{(0,s.i)(e,t,i)})),e.lock(),e.synchronizeValues(),r(),e.unlock()}),(0,s.i)(a[0],t));return(0,n.IL)(e,[{name:"Background",content:l("background-color")},{name:"Text",content:l("color")},{name:"Border",content:l("border-color")}])},tooltip:"Background"},{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:(e,t,i)=>i,exec(e,t,{control:i}){const o=r(i);e.getInstance("Table",e.o).getAllSelectedCells().forEach((e=>{(0,s.i)(e,"vertical-align","normal"===o?"":o)}))},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},"\n",{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec(e,t,{control:i}){if(!(0,o.Zu)(e))return;const s=r(i);e.execCommand(s,!1,t)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec(e,t,{control:i}){if(!(0,o.Zu)(e))return;const s=r(i);e.execCommand(s,!1,t)},tooltip:"Add row"},{name:"delete",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec(e,t,{control:i}){if(!(0,o.Zu)(e))return;const s=r(i);e.execCommand(s,!1,t),e.e.fire("hidePopup")},tooltip:"Delete"}]},(e,t)=>{"use strict";t.Z=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},(e,t,i)=>{"use strict";var o=i(101);t.Z=[{name:"bin",tooltip:"Delete",exec(e,t){t&&e.s.removeNode(t)}},o.A]},e=>{e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg>'},e=>{e.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg>'},e=>{e.exports='<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg>'},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>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1411 541l-355 355 355 355 144-144q29-31 70-14 39 17 39 59v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l144-144-355-355-355 355 144 144q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l144 144 355-355-355-355-144 144q-19 19-45 19-12 0-24-5-40-17-40-59v-448q0-26 19-45t45-19h448q42 0 59 40 17 39-14 69l-144 144 355 355 355-355-144-144q-31-30-14-69 17-40 59-40h448q26 0 45 19t19 45v448q0 42-39 59-13 5-25 5-26 0-45-19z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 896q0 26-19 45l-256 256q-19 19-45 19t-45-19-19-45v-128h-1024v128q0 26-19 45t-45 19-45-19l-256-256q-19-19-19-45t19-45l256-256q19-19 45-19t45 19 19 45v128h1024v-128q0-26 19-45t45-19 45 19l256 256q19 19 19 45z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1596 1385q0 117-79 196t-196 79q-135 0-235-100l-777-776q-113-115-113-271 0-159 110-270t269-111q158 0 273 113l605 606q10 10 10 22 0 16-30.5 46.5t-46.5 30.5q-13 0-23-10l-606-607q-79-77-181-77-106 0-179 75t-73 181q0 105 76 181l776 777q63 63 145 63 64 0 106-42t42-106q0-82-63-145l-581-581q-26-24-60-24-29 0-48 19t-19 48q0 32 25 59l410 410q10 10 10 22 0 16-31 47t-47 31q-12 0-22-10l-410-410q-63-61-63-149 0-82 57-139t139-57q88 0 149 63l581 581q100 98 100 235z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg>'},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>'},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 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M813 1299l614-614q19-19 19-45t-19-45l-102-102q-19-19-45-19t-45 19l-467 467-211-211q-19-19-45-19t-45 19l-102 102q-19 19-19 45t19 45l358 358q19 19 45 19t45-19zm851-883v960q0 119-84.5 203.5t-203.5 84.5h-960q-119 0-203.5-84.5t-84.5-203.5v-960q0-119 84.5-203.5t203.5-84.5h960q119 0 203.5 84.5t84.5 203.5z"/></svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg>'},e=>{e.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},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>'},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>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg>'},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>'},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 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},e=>{e.exports='<svg fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1664 1344v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45z"/></svg>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 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>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg>'},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-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg>'},e=>{e.exports='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M844 472q0 60-19 113.5t-63 92.5-105 39q-76 0-138-57.5t-92-135.5-30-151q0-60 19-113.5t63-92.5 105-39q77 0 138.5 57.5t91.5 135 30 151.5zm-342 483q0 80-42 139t-119 59q-76 0-141.5-55.5t-100.5-133.5-35-152q0-80 42-139.5t119-59.5q76 0 141.5 55.5t100.5 134 35 152.5zm394-27q118 0 255 97.5t229 237 92 254.5q0 46-17 76.5t-48.5 45-64.5 20-76 5.5q-68 0-187.5-45t-182.5-45q-66 0-192.5 44.5t-200.5 44.5q-183 0-183-146 0-86 56-191.5t139.5-192.5 187.5-146 193-59zm239-211q-61 0-105-39t-63-92.5-19-113.5q0-74 30-151.5t91.5-135 138.5-57.5q61 0 105 39t63 92.5 19 113.5q0 73-30 151t-92 135.5-138 57.5zm432-104q77 0 119 59.5t42 139.5q0 74-35 152t-100.5 133.5-141.5 55.5q-77 0-119-59t-42-139q0-74 35-152.5t100.5-134 141.5-55.5z"/> </svg>'},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-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg>'},e=>{e.exports='<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg>'},e=>{e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg>'},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>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"/> </svg>'},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>'},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>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg>'},e=>{e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg>'}],t={};function i(o){var s=t[o];if(void 0!==s)return s.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";i.r(o),i.d(o,{Jodit:()=>Jodit});var e={};i.r(e),i.d(e,{Ajax:()=>m,Alert:()=>U,Async:()=>d.e,CommitStyle:()=>Ae.RP,Component:()=>f.wA,Confirm:()=>$,ContextMenu:()=>w,Create:()=>J,Dialog:()=>V,Dom:()=>L.i,EventEmitter:()=>c.vp,EventHandlersStore:()=>c.DG,Eventify:()=>c.aN,FileBrowser:()=>Ie,Helpers:()=>h,History:()=>Le,Icon:()=>A.JO,ImageEditor:()=>pe,LazyWalker:()=>L.b,Plugin:()=>K,PluginSystem:()=>G.h,Popup:()=>A.GI,ProgressBar:()=>A.ko,Prompt:()=>Y,Response:()=>p,STATUSES:()=>f.n$,Select:()=>Ae.Ph,Snapshot:()=>ze,StatusBar:()=>Me,Table:()=>Pe,ToolbarButton:()=>q,ToolbarCollection:()=>M,ToolbarContent:()=>B,ToolbarEditorCollection:()=>D,UIBlock:()=>A.eC,UIButton:()=>A.y3,UICheckbox:()=>A.mA,UIElement:()=>A.u1,UIForm:()=>A.x4,UIGroup:()=>A.qe,UIInput:()=>A.u3,UIList:()=>A.bz,UISeparator:()=>A.lU,UITextArea:()=>A.GJ,Uploader:()=>We,View:()=>j,ViewComponent:()=>f.Hr,ViewWithToolbar:()=>W,defaultNameSpace:()=>c.rO,isFileBrowserFilesItem:()=>xe,observable:()=>c.LO});var t={};i.r(t),i.d(t,{allowAttributes:()=>Ct,fillEmptyParagraph:()=>kt,removeInvTextNodes:()=>It,replaceOldTags:()=>wt,sanitizeAttributes:()=>xt,tryRemoveNode:()=>Et});var s={};i.r(s),i.d(s,{Backspace:()=>ut,DragAndDrop:()=>Ut,DragAndDropElement:()=>$t,KeyArrowOutside:()=>ti,PasteFromWord:()=>Bt,WrapNodes:()=>Lt,about:()=>Qe,addNewLine:()=>Ze,bold:()=>pt,classSpan:()=>tt,cleanHtml:()=>Tt,clipboard:()=>Rt,color:()=>Kt,copyFormat:()=>Vt,enter:()=>ei,errorMessages:()=>ni,file:()=>Pi,focus:()=>et,font:()=>ri,formatBlock:()=>ai,fullsize:()=>li,hotkeys:()=>ci,hr:()=>Ei,iframe:()=>di,image:()=>Ci,imageProcessor:()=>wi,imageProperties:()=>gi,indent:()=>Si,inlinePopup:()=>Ii,justify:()=>zi,limit:()=>Ti,lineHeight:()=>ji,link:()=>Ai,media:()=>Mi,mobile:()=>_i,orderedList:()=>qi,paste:()=>qt,pasteStorage:()=>Ht,placeholder:()=>Hi,poweredByJodit:()=>Bi,preview:()=>ko,print:()=>So,redoUndo:()=>Oi,resizeCells:()=>po,resizeHandler:()=>eo,resizer:()=>Wi,search:()=>Xi,select:()=>Qi,selectCells:()=>go,size:()=>to,source:()=>ro,spellcheck:()=>co,stat:()=>ao,sticky:()=>lo,symbols:()=>ho,tab:()=>wo,table:()=>bo,tableKeyboardNavigation:()=>vo,tooltip:()=>yo,video:()=>Di,xpath:()=>Eo});var n={};i.r(n),i.d(n,{about:()=>Io,addcolumn:()=>xo,addrow:()=>zo,angle_down:()=>To,angle_left:()=>jo,angle_right:()=>Lo,angle_up:()=>Ao,arrows_alt:()=>Mo,arrows_h:()=>Do,attachment:()=>Po,bin:()=>_o,bold:()=>Ro,brush:()=>No,cancel:()=>qo,center:()=>Bo,chain_broken:()=>Ho,check:()=>Oo,check_square:()=>Fo,chevron:()=>Wo,copy:()=>Yo,copyformat:()=>Vo,crop:()=>Uo,cut:()=>$o,dedent:()=>Go,dots:()=>Ko,enter:()=>Jo,eraser:()=>Xo,eye:()=>Zo,file:()=>Qo,folder:()=>es,font:()=>ts,fontsize:()=>is,fullsize:()=>os,hr:()=>ss,image:()=>ns,indent:()=>rs,info_circle:()=>as,italic:()=>ls,justify:()=>cs,left:()=>ds,line_height:()=>hs,link:()=>us,lock:()=>ps,menu:()=>ms,merge:()=>fs,ok:()=>gs,ol:()=>vs,omega:()=>bs,outdent:()=>ys,palette:()=>ws,paragraph:()=>Cs,paste:()=>ks,pencil:()=>Ss,plus:()=>Es,print:()=>Is,redo:()=>xs,resize:()=>zs,resize_handler:()=>Ts,resizer:()=>js,right:()=>Ls,save:()=>As,search:()=>Ms,select_all:()=>Ps,settings:()=>Ds,shrink:()=>_s,source:()=>Rs,splitg:()=>Ns,splitv:()=>qs,strikethrough:()=>Bs,subscript:()=>Hs,superscript:()=>Os,table:()=>Fs,th:()=>Ws,th_list:()=>Vs,ul:()=>Us,underline:()=>Ys,undo:()=>$s,unlink:()=>Gs,unlock:()=>Ks,update:()=>Js,upload:()=>Xs,valign:()=>Zs,video:()=>Qs});var r=i(55),a=i(1),l=i(2),c=i(3),d=i(24),h=i(28),u=i(13);class p{constructor(e,t,i,o){this.request=e,this.status=t,this.statusText=i,this.body=o}get url(){return this.request.url}async json(){return JSON.parse(this.body)}text(){return Promise.resolve(this.body)}async blob(){return this.body}}a.D.prototype.defaultAjaxOptions={successStatuses:[200,201,202],dataType:"json",method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr(){return new XMLHttpRequest}};class m{constructor(e,t){this.jodit=e,this.isFulfilled=!1,this.activated=!1,this.options=(0,h.ConfigProto)(t||{},a.D.prototype.defaultAjaxOptions),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest,e&&e.e&&e.e.on("beforeDestruct",(()=>this.destruct()))}__buildParams(e,t){return(0,h.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):(0,h.isString)(e)||this.j.ow.FormData&&e instanceof this.j.ow.FormData?e:(0,h.buildQuery)(e)}get o(){return this.options}get j(){return this.jodit}abort(){if(this.isFulfilled)return this;try{this.isFulfilled=!0,this.xhr.abort()}catch(e){}return this}send(){this.activated=!0;const{xhr:e,o:t}=this,i=this.prepareRequest();return this.j.async.promise(((o,s)=>{var n;const r=()=>{this.isFulfilled=!0,s(u.ZI("Connection error"))},a=()=>{this.isFulfilled=!0,o(new p(i,e.status,e.statusText,e.responseType?e.response:e.responseText))};e.onload=a,e.onabort=()=>{this.isFulfilled=!0,s(u.JG("Abort connection"))},e.onerror=r,e.ontimeout=r,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,i;let o=0;e.lengthComputable&&(o=e.loaded/e.total*100),null===(i=(t=this.options).onProgress)||void 0===i||i.call(t,o)},e.onreadystatechange=()=>{var i,o;null===(o=(i=this.options).onProgress)||void 0===o||o.call(i,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?a():e.statusText&&(this.isFulfilled=!0,s(u.ZI(e.statusText))))},e.withCredentials=null!==(n=t.withCredentials)&&void 0!==n&&n;const{url:l,data:c,method:d}=i;e.open(d,l,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);const{headers:h}=t;h&&e.setRequestHeader&&Object.keys(h).forEach((t=>{e.setRequestHeader(t,h[t])})),this.j.async.setTimeout((()=>{e.send(c?this.__buildParams(c):void 0)}),0)}))}prepareRequest(){if(!this.o.url)throw u.vU("Need URL for AJAX request");let e=this.o.url;const t=this.o.data,i=(this.o.method||"get").toLowerCase();if("get"===i&&t&&(0,h.isPlainObject)(t)){const i=e.indexOf("?");if(-1!==i){const o=(0,h.parseQuery)(e);e=e.substring(0,i)+"?"+(0,h.buildQuery)({...o,...t})}else e+="?"+(0,h.buildQuery)(this.o.data)}const o={url:e,method:i,data:t};return m.log.splice(100),m.log.push(o),o}destruct(){this.activated&&!this.isFulfilled&&(this.abort(),this.isFulfilled=!0)}}m.log=[];var f=i(51),g=i(66),v=i(68),b=i(45),y=i(50);let w=class extends g.G{className(){return"ContextMenu"}show(e,t,i){const o=this,s=this.j.c.div(this.getFullElName("actions"));(0,b.kJ)(i)&&(i.forEach((e=>{if(!e)return;const t=(0,v.zx)(this.jodit,e.icon||"empty",e.title);this.jodit&&t.setParentView(this.jodit),t.setMod("context","menu"),t.onAction((t=>{var i;return null===(i=e.exec)||void 0===i||i.call(o,t),o.close(),!1})),s.appendChild(t.container)})),this.setContent(s).open((()=>({left:e,top:t,width:0,height:0})),!0))}};w=(0,r.gn)([y.w],w);const C=(()=>{let e;return()=>(void 0===e&&(e=(()=>{const e="___Jodit___"+Math.random();try{localStorage.setItem(e,"1");const t="1"===localStorage.getItem(e);return localStorage.removeItem(e),t}catch(e){}return!1})()),e)})();class k{constructor(e){this.rootKey=e}set(e,t){try{const i=localStorage.getItem(this.rootKey),o=i?JSON.parse(i):{};o[e]=t,localStorage.setItem(this.rootKey,JSON.stringify(o))}catch(e){}return this}delete(e){try{localStorage.removeItem(this.rootKey)}catch(e){}return this}get(e){try{const t=localStorage.getItem(this.rootKey),i=t?JSON.parse(t):{};return void 0!==i[e]?i[e]:null}catch(e){}}exists(e){return null!=this.get(e)}clear(){try{localStorage.removeItem(this.rootKey)}catch(e){}return this}}class S{constructor(){this.data=new Map}set(e,t){return this.data.set(e,t),this}delete(e){return this.data.delete(e),this}get(e){return this.data.get(e)}exists(e){return this.data.has(e)}clear(){return this.data.clear(),this}}const E="Jodit_";class I{constructor(e,t){this.provider=e,this.prefix=E,t&&(this.prefix+=t)}set(e,t){return this.provider.set((0,h.camelCase)(this.prefix+e),t),this}delete(e){return this.provider.delete((0,h.camelCase)(this.prefix+e)),this}get(e){return this.provider.get((0,h.camelCase)(this.prefix+e))}exists(e){return this.provider.exists((0,h.camelCase)(this.prefix+e))}clear(){return this.provider.clear(),this}static makeStorage(e=!1,t){let i;return e&&C()&&(i=new k(E+t)),i||(i=new S),new I(i,t)}}var x=i(53),z=i(49),T=i(59);class j extends f.wA{constructor(e,t=!1){super(),this.isJodit=t,this.isView=!0,this.mods={},this.components=new Set,this.version="3.18.5",this.buffer=I.makeStorage(),this.storage=I.makeStorage(!0,this.componentName),this.OPTIONS=j.defaultOptions,this.__isFullSize=!1,this.__whoLocked="",this.isLockedNotBy=e=>this.isLocked&&this.__whoLocked!==e,this.__modulesInstances=new Map,this.id=""+(new Date).getTime(),this.buffer=I.makeStorage(),this.initOptions(e),this.initOwners(),this.events=new c.vp(this.od),this.create=new J(this.od),this.container=this.c.div(),this.container.classList.add("jodit"),this.progressbar=new A.ko(this)}setMod(...[e,t]){return T.$.setMod.call(this,e,t),this}getMod(e){return T.$.getMod.call(this,e)}getElm(e){return T.F.getElm.call(this,e)}getElms(e){return T.F.getElms.call(this,e)}get basePath(){return this.o.basePath?this.o.basePath:l.BASE_PATH}get defaultTimeout(){return(0,h.isVoid)(this.o.defaultTimeout)?100:this.o.defaultTimeout}get c(){return this.create}get container(){return this.__container}set container(e){this.__container=e}get e(){return this.events}get options(){return this.__options}set options(e){this.__options=e}get o(){return this.options}i18n(e,...t){return(0,h.i18n)(e,t,this.options)}toggleFullSize(e){void 0===e&&(e=!this.__isFullSize),e!==this.__isFullSize&&(this.__isFullSize=e,this.events&&this.e.fire("toggleFullSize",e))}get isLocked(){return""!==this.__whoLocked}lock(e="any"){return!this.isLocked&&(this.__whoLocked=e,!0)}unlock(){return!!this.isLocked&&(this.__whoLocked="",!0)}get isFullSize(){return this.__isFullSize}getVersion(){return"3.18.5"}static getVersion(){return"3.18.5"}initOptions(e){this.options=(0,h.ConfigProto)(e||{},(0,h.ConfigProto)(this.options||{},j.defaultOptions))}initOwners(){var e;this.ownerWindow=null!==(e=this.o.ownerWindow)&&void 0!==e?e:window}attachEvents(e){if(!e)return;const t=null==e?void 0:e.events;t&&Object.keys(t).forEach((e=>this.e.on(e,t[e])))}getInstance(e,t){const i=this.e.fire((0,h.camelCase)("getInstance_"+e),t);if(i)return i;const o=x.qz[e],s=this.__modulesInstances;if(!(0,h.isFunction)(o))throw(0,h.error)("Need real module name");if(!s.has(e)){const i=o.prototype instanceof f.Hr?new o(this,t):new o(t);this.components.add(i),s.set(e,i)}return s.get(e)}addDisclaimer(e){this.container.appendChild(e)}beforeDestruct(){this.e.fire(f.n$.beforeDestruct,this),this.components.forEach((e=>{(0,h.isDestructable)(e)&&!e.isInDestruct&&e.destruct()})),this.components.clear()}destruct(){this.isDestructed||(this.async&&this.async.destruct(),this.events&&this.e.destruct(),this.buffer&&this.buffer.clear(),L.i.safeRemove(this.container),super.destruct())}}j.esNext=!0,(0,r.gn)([(0,z.hook)(f.n$.beforeDestruct)],j.prototype,"beforeDestruct",null),j.defaultOptions={extraButtons:[],textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0};var L=i(47),A=i(76);let M=class extends A.bz{constructor(e){super(e),this.listenEvents="updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur",this.update=this.j.async.debounce(this.immediateUpdate,(()=>this.j.defaultTimeout)),this.initEvents()}className(){return"ToolbarCollection"}get firstButton(){const[e]=this.buttons;return e||null}makeButton(e,t=null){return O(this.j,e,t)}shouldBeActive(e){}shouldBeDisabled(e){}getTarget(e){return e.target||null}immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar"))}setDirection(e){this.container.style.direction=e,this.container.setAttribute("dir",e)}initEvents(){this.j.e.on(this.listenEvents,this.update).on("afterSetMode focus",this.immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(e){throw(0,h.error)("The method is not implemented for this class.")}build(e,t=null){const i=this.j.e.fire("beforeToolbarBuild",e);return i&&(e=i),super.build(e,t),this}destruct(){this.isDestructed||(this.j.e.off(this.listenEvents,this.update).off("afterSetMode focus",this.immediateUpdate),super.destruct())}};(0,r.gn)([z.autobind],M.prototype,"immediateUpdate",null),M=(0,r.gn)([z.component],M);let D=class extends M{constructor(e){super(e),this.checkActiveStatus=(e,t)=>{let i=0,o=0;return Object.keys(e).forEach((s=>{const n=e[s];(0,h.isFunction)(n)?n(this.j,""+(0,h.css)(t,s))&&(i+=1):-1!==n.indexOf(""+(0,h.css)(t,s))&&(i+=1),o+=1})),o===i},this.prependInvisibleInput(this.container)}className(){return"ToolbarEditorCollection"}shouldBeDisabled(e){const t=super.shouldBeDisabled(e);if(void 0!==t)return t;const i=void 0===e.control.mode?l.MODE_WYSIWYG:e.control.mode;return!(i===l.MODE_SPLIT||i===this.j.getRealMode())}shouldBeActive(e){const t=super.shouldBeActive(e);if(void 0!==t)return t;const i=this.j.selection?this.j.s.current():null;if(!i)return!1;let o;if(e.control.tags){const t=e.control.tags;if(o=i,L.i.up(o,(e=>{if(e&&-1!==t.indexOf(e.nodeName.toLowerCase()))return!0}),this.j.editor))return!0}if(e.control.css){const t=e.control.css;if(o=i,L.i.up(o,(e=>{if(e&&!L.i.isText(e))return this.checkActiveStatus(t,e)}),this.j.editor))return!0}return!1}getTarget(e){return e.target||this.j.s.current()||null}prependInvisibleInput(e){const t=this.j.create.element("input",{tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});L.i.appendChildFirst(e,t)}showInline(e){this.jodit.e.fire("showInlineToolbar",e)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}};D=(0,r.gn)([z.component],D);var P=i(67),_=i(60),R=i(18),N=i(71);let q=class extends v.y3{constructor(e,t,i=null){super(e),this.control=t,this.target=i,this.state={...(0,v.Yc)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null,e.e.on([this.button,this.trigger],"mousedown",(e=>e.preventDefault())),this.onAction(this.onClick),this.hookStatus(R.n.ready,(()=>{this.initFromControl(),this.initTooltip(),this.update()}))}className(){return"ToolbarButton"}get toolbar(){return this.closest(M)}get button(){return this.container.querySelector(`button.${this.componentName}__button`)}update(){const{control:e,state:t}=this,i=this.closest(M);t.disabled=this.calculateDisabledStatus(i),t.activated=this.calculateActivatedStatus(i),(0,h.isFunction)(e.update)&&i&&e.update(this,i.jodit),super.update()}calculateActivatedStatus(e){return!((0,h.isJoditObject)(this.j)&&!this.j.editorIsActive||(!(0,h.isFunction)(this.control.isActive)||!this.control.isActive(this.j,this.control,this))&&(!e||!e.shouldBeActive(this)))}calculateDisabledStatus(e){return!(!this.j.o.disabled&&(!this.j.o.readonly||this.j.o.activeButtonsInReadOnly&&this.j.o.activeButtonsInReadOnly.includes(this.control.name))&&(!(0,h.isFunction)(this.control.isDisabled)||!this.control.isDisabled(this.j,this.control,this))&&(!e||!e.shouldBeDisabled(this)))}onChangeActivated(){(0,h.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,h.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,h.attr)(this.button,"tabindex",this.state.tabIndex)}onChangeTooltip(){(0,h.attr)(this.button,"aria-label",this.state.tooltip),super.onChangeTooltip()}createContainer(){const e=this.componentName,t=this.j.c.span(e),i=super.createContainer();return(0,h.attr)(t,"role","listitem"),i.classList.remove(e),i.classList.add(e+"__button"),Object.defineProperty(i,"component",{value:this}),t.appendChild(i),this.trigger=this.j.c.fromHTML(`<span role="trigger" class="${e}__trigger">${_.J.get("chevron")}</span>`),t}focus(){var e;null===(e=this.container.querySelector("button"))||void 0===e||e.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):L.i.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){const e=this.state.disabled?"disabled":null;(0,h.attr)(this.trigger,"disabled",e),(0,h.attr)(this.button,"disabled",e),(0,h.attr)(this.container,"disabled",e)}initTooltip(){this.j.o.textIcons||!this.j.o.showTooltip||this.j.o.useNativeTooltip||this.j.e.off(this.container,"mouseenter mouseleave").on(this.container,"mousemove",(e=>{this.state.tooltip&&!this.state.disabled&&this.j.e.fire("delayShowTooltip",(()=>({x:e.clientX+10,y:e.clientY+10})),this.state.tooltip)})).on(this.container,"mouseleave",(()=>{this.j.e.fire("hideTooltip")}))}initFromControl(){var e;const{control:t,state:i}=this;this.updateSize(),i.name=t.name;const{textIcons:o}=this.j.o;if(!0===o||(0,h.isFunction)(o)&&o(t.name)||t.template)i.icon=(0,v.Yc)().icon,i.text=t.text||t.name;else{if(t.iconURL)i.icon.iconURL=t.iconURL;else{const o=t.icon||t.name;i.icon.name=_.J.exists(o)||(null===(e=this.j.o.extraIcons)||void 0===e?void 0:e[o])?o:""}t.iconURL||i.icon.name||(i.text=t.text||t.name)}t.tooltip&&(i.tooltip=this.j.i18n((0,h.isFunction)(t.tooltip)?t.tooltip(this.j,t,this):t.tooltip)),i.hasTrigger=!!(t.list||t.popup&&t.exec)}onTriggerClick(e){var t,i,o;if(this.openedPopup)return void this.closePopup();const{control:s}=this;if(e.buffer={actionTrigger:this},s.list)return this.openControlList(s);if((0,h.isFunction)(s.popup)){const e=this.openPopup();if(e.parentElement=this,!1!==this.j.e.fire((0,h.camelCase)(`before-${s.name}-open-popup`),this.target,s,e)){const n=null!==(o=null!==(i=null===(t=this.toolbar)||void 0===t?void 0:t.getTarget(this))&&void 0!==i?i:this.target)&&void 0!==o?o:null,r=s.popup(this.j,n,s,this.closePopup,this);r&&e.setContent((0,h.isString)(r)?this.j.c.fromHTML(r):r).open((()=>(0,h.position)(this.container)),!1,this.j.o.allowTabNavigation?this.container:void 0)}this.j.e.fire((0,h.camelCase)(`after-${s.name}-open-popup`),e.container)}}openControlList(e){var t;const i=null!==(t=this.jodit.options.controls)&&void 0!==t?t:{},o=e=>(0,N.z)(e,i),s=e.list,n=this.openPopup(),r=H(this.j);n.parentElement=this,r.parentElement=n,r.mode="vertical";const a=(t,i)=>{if((0,h.isString)(i)&&o(i))return{name:""+i,...o(i)};if((0,h.isString)(t)&&o(t))return{name:""+t,...o(t),..."object"==typeof i?i:{}};const s={name:""+t,template:e.childTemplate,exec:e.exec,data:e.data,command:e.command,isActive:e.isChildActive,isDisabled:e.isChildDisabled,mode:e.mode,args:[...e.args?e.args:[],t,i]};return(0,h.isString)(i)&&(s.text=i),s};r.build((0,h.isArray)(s)?s.map(a):(0,h.keys)(s,!1).map((e=>a(e,s[e]))),this.target),n.setContent(r.container).open((()=>(0,h.position)(this.container)),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(e){this.openedPopup&&(e&&L.i.isNode(e.target)&&(L.i.isOrContains(this.container,e.target)||this.openedPopup.isOwnClick(e))||this.closePopup())}openPopup(){return this.closePopup(),this.openedPopup=new P.G(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null)}onClick(e){var t,i,o,s,n,r,a;const{control:l}=this;if((0,h.isFunction)(l.exec)){const c=null!==(o=null!==(i=null===(t=this.toolbar)||void 0===t?void 0:t.getTarget(this))&&void 0!==i?i:this.target)&&void 0!==o?o:null,d=l.exec(this.j,c,{control:l,originalEvent:e,button:this});if(!1!==d&&!0!==d&&(null===(n=null===(s=this.j)||void 0===s?void 0:s.e)||void 0===n||n.fire("synchro"),this.parentElement&&this.parentElement.update(),null===(a=null===(r=this.j)||void 0===r?void 0:r.e)||void 0===a||a.fire("closeAllPopups afterExec")),!1!==d)return}return l.list?this.openControlList(l):(0,h.isFunction)(l.popup)?this.onTriggerClick(e):void((l.command||l.name)&&((0,h.call)((0,h.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),l.command||l.name,!1,l.args&&l.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.closePopup(),super.destruct()}};(0,r.gn)([(0,z.watch)("state.tooltip")],q.prototype,"onChangeTooltip",null),(0,r.gn)([(0,z.watch)("state.hasTrigger")],q.prototype,"onChangeHasTrigger",null),(0,r.gn)([(0,z.watch)("trigger:click")],q.prototype,"onTriggerClick",null),(0,r.gn)([z.autobind],q.prototype,"onOutsideClick",null),(0,r.gn)([z.autobind],q.prototype,"closePopup",null),q=(0,r.gn)([z.component],q);let B=class extends v.y3{constructor(e,t,i=null){super(e),this.control=t,this.target=i,this.container.classList.add(`${this.componentName}_${this.clearName(t.name)}`),(0,h.attr)(this.container,"role","content")}className(){return"ToolbarContent"}update(){const e=this.control.getContent(this.j,this.control,this);((0,h.isString)(e)||e.parentNode!==this.container)&&(L.i.detach(this.container),this.container.appendChild((0,h.isString)(e)?this.j.create.fromHTML(e):e)),super.update()}createContainer(){return this.j.c.span(this.componentName)}};function H(e,t){const i=(0,h.isJoditObject)(e)?new D(e):new M(e);return e.o.textIcons&&i.container.classList.add("jodit_text_icons"),t&&(i.parentElement=t),e.o.toolbarButtonSize&&(i.buttonSize=e.o.toolbarButtonSize),i}function O(e,t,i=null){if((0,h.isFunction)(t.getContent))return new B(e,t,i);const o=new q(e,t,i);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,o}B=(0,r.gn)([z.component],B);var F=i(75);class W extends j{constructor(e,t=!1){super(e,t),this.toolbar=H(this),this.defaultToolbarContainer=this.c.div("jodit-toolbar__box"),this.registeredButtons=new Set,this.groupToButtons={},this.isJodit=!1,this.isJodit=t,this.e.on("beforeToolbarBuild",this.beforeToolbarBuild)}get toolbarContainer(){return this.o.fullsize||!(0,h.isString)(this.o.toolbar)&&!L.i.isHTMLElement(this.o.toolbar)?(this.o.toolbar&&L.i.appendChildFirst(this.container,this.defaultToolbarContainer),this.defaultToolbarContainer):(0,h.resolveElement)(this.o.toolbar,this.o.shadowRoot||this.od)}setPanel(e){this.o.toolbar=e,this.buildToolbar()}buildToolbar(){if(!this.o.toolbar)return;const e=this.o.buttons?(0,h.splitArray)(this.o.buttons):[];this.toolbar.setRemoveButtons(this.o.removeButtons).build(e.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}getRegisteredButtonGroups(){return this.groupToButtons}registerButton(e){var t;this.registeredButtons.add(e);const i=null!==(t=e.group)&&void 0!==t?t:"other";return this.groupToButtons[i]||(this.groupToButtons[i]=[]),null!=e.position?this.groupToButtons[i][e.position]=e.name:this.groupToButtons[i].push(e.name),this}unregisterButton(e){var t;this.registeredButtons.delete(e);const i=null!==(t=e.group)&&void 0!==t?t:"other",o=this.groupToButtons[i];if(o){const t=o.indexOf(e.name);-1!==t&&o.splice(t,1),0===o.length&&delete this.groupToButtons[i]}return this}beforeToolbarBuild(e){if(Object.keys(this.groupToButtons).length)return e.map((e=>(0,F.A)(e)&&e.group&&this.groupToButtons[e.group]?{group:e.group,buttons:[...e.buttons,...this.groupToButtons[e.group]]}:e))}destruct(){this.isDestructed||(this.setStatus(f.n$.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.toolbar.destruct(),super.destruct())}}(0,r.gn)([z.autobind],W.prototype,"beforeToolbarBuild",null),a.D.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[]},a.D.prototype.controls.dialog={close:{icon:"cancel",exec(e){e.close(),e.toggleFullSizeBox(!1)}}};let V=class extends W{constructor(e){super(e),this.destroyAfterClose=!1,this.moved=!1,this.iSetMaximization=!1,this.resizable=!1,this.draggable=!1,this.startX=0,this.startY=0,this.startPoint={x:0,y:0,w:0,h:0},this.lockSelect=()=>{this.setMod("moved",!0)},this.unlockSelect=()=>{this.setMod("moved",!1)},this.onResize=()=>{this.options&&this.o.resizable&&!this.moved&&this.isOpened&&!this.offsetX&&!this.offsetY&&this.setPosition()},this.isModal=!1,this.isOpened=!1;const t=this;t.options=(0,h.ConfigProto)(null!=e?e:{},(0,h.ConfigProto)({toolbarButtonSize:"middle"},(0,h.ConfigProto)(a.D.prototype.dialog,j.defaultOptions))),L.i.safeRemove(t.container);const i=this.getFullElName.bind(this);t.container=this.c.fromHTML(`<div style="z-index:${t.o.zIndex}" class="jodit jodit-dialog ${this.componentName}">\n\t\t\t\t<div class="${i("overlay")}"></div>\n\t\t\t\t<div class="${this.getFullElName("panel")}">\n\t\t\t\t\t<div class="${i("header")}">\n\t\t\t\t\t\t<div class="${i("header-title")}"></div>\n\t\t\t\t\t\t<div class="${i("header-toolbar")}"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="${i("content")}"></div>\n\t\t\t\t\t<div class="${i("footer")}"></div>\n\t\t\t\t\t<div class="${i("resizer")}">${A.JO.get("resize_handler")}</div>\n\t\t\t\t</div>\n\t\t\t</div>`),(0,h.attr)(t.container,"role","dialog"),Object.defineProperty(t.container,"component",{value:this}),t.setMod("theme",t.o.theme||"default").setMod("resizable",!!t.o.resizable);const o=t.getElm("panel");(0,h.assert)(null!=o,"Panel element does not exist");const s=t.getElm("resizer");(0,h.assert)(null!=s,"Resizer element does not exist");const n=t.getElm("header-title");(0,h.assert)(null!=n,"header-title element does not exist");const r=t.getElm("content");(0,h.assert)(null!=r,"Content element does not exist");const l=t.getElm("footer");(0,h.assert)(null!=l,"Footer element does not exist");const c=t.getElm("header-toolbar");(0,h.assert)(null!=c,"header-toolbar element does not exist"),t.dialog=o,t.resizer=s,t.dialogbox_header=n,t.dialogbox_content=r,t.dialogbox_footer=l,t.dialogbox_toolbar=c,(0,h.css)(t.dialog,{maxWidth:t.options.maxWidth,minHeight:t.options.minHeight,minWidth:t.options.minWidth});const d=t.getElm("header");d&&t.e.on(d,"pointerdown touchstart",t.onHeaderMouseDown),t.e.on(t.resizer,"mousedown touchstart",t.onResizerMouseDown);const u=x.pw.get("fullsize");(0,h.isFunction)(u)&&u(t),this.e.on(t.container,"close_dialog",t.close).on(this.ow,"keydown",this.onEsc).on(this.ow,"resize",this.onResize)}className(){return"Dialog"}get destination(){return this.od.body}setElements(e,t){const i=[];(0,h.asArray)(t).forEach((t=>{if((0,h.isArray)(t)){const o=this.c.div(this.getFullElName("column"));return i.push(o),e.appendChild(o),this.setElements(o,t)}let o;o=(0,h.isString)(t)?this.c.fromHTML(t):(0,h.hasContainer)(t)?t.container:t,i.push(o),o.parentNode!==e&&e.appendChild(o)})),(0,h.toArray)(e.childNodes).forEach((t=>{-1===i.indexOf(t)&&e.removeChild(t)}))}onMouseUp(){(this.draggable||this.resizable)&&(this.removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}onHeaderMouseDown(e){const t=e.target;!this.o.draggable||t&&t.nodeName.match(/^(INPUT|SELECT)$/)||(this.draggable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.x=(0,h.css)(this.dialog,"left"),this.startPoint.y=(0,h.css)(this.dialog,"top"),this.setMaxZIndex(),e.cancelable&&e.preventDefault(),this.lockSelect(),this.addGlobalResizeListeners(),this.e&&this.e.fire(this,"startMove"))}onMouseMove(e){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+e.clientX-this.startX,this.startPoint.y+e.clientY-this.startY),this.e&&this.e.fire(this,"move",e.clientX-this.startX,e.clientY-this.startY),e.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+e.clientX-this.startX,this.startPoint.h+e.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",e.clientX-this.startX,e.clientY-this.startY))}onEsc(e){if(this.isOpened&&e.key===l.KEY_ESC&&!0!==this.getMod("static")){const t=this.getMaxZIndexDialog();t?t.close():this.close(),e.stopImmediatePropagation()}}onResizerMouseDown(e){this.resizable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}addGlobalResizeListeners(){const e=this;e.e.on(e.ow,"pointermove touchmove",e.onMouseMove).on(e.ow,"pointerup touchend",e.onMouseUp)}removeGlobalResizeListeners(){const e=this;e.e.off(e.ow,"mousemove pointermove",e.onMouseMove).off(e.ow,"mouseup pointerup",e.onMouseUp)}setSize(e,t){return null==e&&(e=this.dialog.offsetWidth),null==t&&(t=this.dialog.offsetHeight),(0,h.css)(this.dialog,{width:e,height:t}),this}calcAutoSize(){return this.setSize("auto","auto"),this.setSize(),this}setPosition(e,t){let i=this.ow.innerWidth/2-this.dialog.offsetWidth/2,o=this.ow.innerHeight/2-this.dialog.offsetHeight/2;return 0>i&&(i=0),0>o&&(o=0),void 0!==e&&void 0!==t&&(this.offsetX=e,this.offsetY=t,this.moved=Math.abs(e-i)>100||Math.abs(t-o)>100),this.dialog.style.left=(e||i)+"px",this.dialog.style.top=(t||o)+"px",this}setHeader(e){return this.setElements(this.dialogbox_header,e),this}setContent(e){return this.setElements(this.dialogbox_content,e),this}setFooter(e){return this.setElements(this.dialogbox_footer,e),this.setMod("footer",!!e),this}getZIndex(){return parseInt((0,h.css)(this.container,"zIndex"),10)||0}getMaxZIndexDialog(){let e,t,i=0,o=this;return(0,h.$$)(".jodit-dialog",this.destination).forEach((s=>{e=s.component,t=parseInt((0,h.css)(s,"zIndex"),10),e.isOpened&&!isNaN(t)&&t>i&&(o=e,i=t)})),o}setMaxZIndex(){let e=20000004,t=0;(0,h.$$)(".jodit-dialog",this.destination).forEach((i=>{t=parseInt((0,h.css)(i,"zIndex"),10),e=Math.max(isNaN(t)?0:t,e)})),this.container.style.zIndex=""+(e+1)}maximization(e){return(0,h.isVoid)(e)&&(e=!this.getMod("fullsize")),this.setMod("fullsize",e),this.toggleFullSizeBox(e),this.iSetMaximization=e,e}toggleFullSizeBox(e){[this.destination,this.destination.parentNode].forEach((t=>{t&&t.classList&&t.classList.toggle("jodit_fullsize-box_true",e)}))}open(e,t,i,o){if(x.TB.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;(0,h.isBoolean)(e)&&(i=e),(0,h.isBoolean)(t)&&(o=t),this.destroyAfterClose=!0===i;const s=(0,h.isBoolean)(e)?void 0:e,n=(0,h.isBoolean)(t)?void 0:t;return void 0!==n&&this.setHeader(n),s&&this.setContent(s),this.setMod("active",!0),this.isOpened=!0,this.setModal(o),this.destination.appendChild(this.container),this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex(),this.o.fullsize&&this.maximization(!0),this.e.fire("afterOpen",this),this}setModal(e){return this.isModal=!!e,this.setMod("modal",this.isModal),this}close(e){var t,i;return this.isDestructed||!this.isOpened||!0===this.getMod("static")||(e&&(e.stopImmediatePropagation(),e.preventDefault()),this.e&&!1===this.e.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,this.e.fire("toggleFullSize",!1),this.iSetMaximization&&this.maximization(!1),L.i.safeRemove(this.container),this.removeGlobalResizeListeners(),this.destroyAfterClose&&this.destruct(),null===(t=this.e)||void 0===t||t.fire(this,"afterClose"),null===(i=this.e)||void 0===i||i.fire(this.ow,"joditCloseDialog"))),this}buildToolbar(){this.o.buttons&&this.toolbar.build((0,h.splitArray)(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}destruct(){this.isInDestruct||(this.setStatus(f.n$.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.onEsc).off(this.ow,"resize",this.onResize)),super.destruct())}};(0,r.gn)([z.autobind],V.prototype,"onMouseUp",null),(0,r.gn)([z.autobind],V.prototype,"onHeaderMouseDown",null),(0,r.gn)([z.autobind],V.prototype,"onMouseMove",null),(0,r.gn)([z.autobind],V.prototype,"onEsc",null),(0,r.gn)([z.autobind],V.prototype,"onResizerMouseDown",null),(0,r.gn)([z.autobind],V.prototype,"close",null),(0,r.gn)([(0,z.hook)("ready")],V.prototype,"buildToolbar",null),V=(0,r.gn)([z.component],V);const U=(e,t,i,o="jodit-dialog_alert")=>{(0,h.isFunction)(t)&&(i=t,t=void 0);const s=new V,n=s.c.div(o),r=(0,A.zx)(s,"ok","Ok");return(0,h.asArray)(e).forEach((e=>{n.appendChild(L.i.isNode(e)?e:s.c.fromHTML(e))})),r.onAction((()=>{i&&(0,h.isFunction)(i)&&!1===i(s)||s.close()})),s.setFooter([r]),s.open(n,t||" ",!0,!0),r.focus(),s},Y=(e,t,i,o,s)=>{const n=new V,r=(0,A.zx)(n,"cancel","Cancel"),a=(0,A.zx)(n,"ok","Ok"),l=n.c.element("form",{class:"jodit-dialog_prompt"}),c=n.c.element("input",{autofocus:!0,class:"jodit-input"}),d=n.c.element("label");(0,h.isFunction)(t)&&(i=t,t=void 0),o&&(0,h.attr)(c,"placeholder",o),d.appendChild(n.c.text(e)),l.appendChild(d),l.appendChild(c),r.onAction(n.close);const u=()=>{i&&(0,h.isFunction)(i)&&!1===i(c.value)||n.close()};return a.onAction(u),n.e.on(l,"submit",(()=>(u(),!1))),n.setFooter([a,r]),n.open(l,t||" ",!0,!0),c.focus(),void 0!==s&&s.length&&(c.value=s,c.select()),n},$=(e,t,i)=>{const o=new V,s=o.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),n=o.c.element("label");(0,h.isFunction)(t)&&(i=t,t=void 0),n.appendChild(o.c.fromHTML(e)),s.appendChild(n);const r=e=>()=>{i&&!1===i(e)||o.close()},a=(0,A.zx)(o,"cancel","Cancel"),l=(0,A.zx)(o,"ok","Yes");return a.onAction(r(!1)),l.onAction(r(!0)),o.e.on(s,"submit",(()=>(r(!0)(),!1))),o.setFooter([l,a]),o.open(s,t||" ",!0,!0),l.focus(),o};var G=i(54);class K extends f.Hr{constructor(e){super(e),this.requires=[],this.buttons=[],this.hasStyle=!1,e.e.on("afterPluginSystemInit",(()=>{var t;(0,h.isJoditObject)(e)&&(null===(t=this.buttons)||void 0===t||t.forEach((t=>{e.registerButton(t)})))})).on("afterInit",(()=>{this.setStatus(f.n$.ready),this.afterInit(e)})).on("beforeDestruct",this.destruct)}className(){return""}init(e){}destruct(){var e,t,i;if(!this.isInDestruct){this.setStatus(f.n$.beforeDestruct);const{j:o}=this;(0,h.isJoditObject)(o)&&(null===(e=this.buttons)||void 0===e||e.forEach((e=>{null==o||o.unregisterButton(e)}))),null===(i=null===(t=this.j)||void 0===t?void 0:t.events)||void 0===i||i.off("beforeDestruct",this.destruct),this.beforeDestruct(this.j),super.destruct()}}}(0,r.gn)([z.autobind],K.prototype,"destruct",null);class J{constructor(e,t){this.document=e,this.createAttributes=t}get doc(){return(0,h.isFunction)(this.document)?this.document():this.document}element(e,t,i){const o=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(o),t&&((0,h.isPlainObject)(t)?(0,h.attr)(o,t):i=t),i&&(0,h.asArray)(i).forEach((e=>o.appendChild((0,h.isString)(e)?this.fromHTML(e):e))),o}div(e,t,i){const o=this.element("div",t,i);return e&&(o.className=e),o}span(e,t,i){const o=this.element("span",t,i);return e&&(o.className=e),o}a(e,t,i){const o=this.element("a",t,i);return e&&(o.className=e),o}text(e){return this.doc.createTextNode(e)}fake(){return this.text(l.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){const i=this.div();i.innerHTML=""+e;const o=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(L.i.safeRemove(o),t){const e=(0,h.refs)(o);Object.keys(t).forEach((i=>{const o=e[i];o&&!1===t[i]&&L.i.hide(o)}))}return o}applyCreateAttributes(e){if(this.createAttributes){const t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){const i=t[e.tagName.toLowerCase()];(0,h.isFunction)(i)?i(e):(0,h.isPlainObject)(i)&&(0,h.attr)(e,i)}}}}a.D.prototype.filebrowser={namespace:"",extraButtons:[],filter(e,t){return t=t.toLowerCase(),(0,h.isString)(e)?-1!==e.toLowerCase().indexOf(t):(0,h.isString)(e.name)?-1!==e.name.toLowerCase().indexOf(t):!(0,h.isString)(e.file)||-1!==e.file.toLowerCase().indexOf(t)},sortBy:"changed-desc",sort(e,t,i){const[o,s]=i.toLowerCase().split("-"),n="asc"===s,r=(e,t)=>t>e?n?-1:1:e>t?n?1:-1:0;if((0,h.isString)(e))return r(e.toLowerCase(),t.toLowerCase());if(void 0===e[o]||"name"===o)return(0,h.isString)(e.name)?r(e.name.toLowerCase(),t.name.toLowerCase()):(0,h.isString)(e.file)?r(e.file.toLowerCase(),t.file.toLowerCase()):0;switch(o){case"changed":{const i=new Date(e.changed).getTime(),o=new Date(t.changed).getTime();return n?i-o:o-i}case"size":{const i=(0,h.humanSizeToBytes)(e.size),o=(0,h.humanSizeToBytes)(t.size);return n?i-o:o-i}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess(e){return e.success},getMessage(e){return void 0!==e.data.messages&&(0,h.isArray)(e.data.messages)?e.data.messages.join(" "):""},showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(e,t,i){const o=this.options,s=this.files.getFullElName("item"),n=o.showFileName,r=o.showFileSize&&e.size,a=o.showFileChangeTime&&e.time;let l="";return void 0!==e.file&&(l=e.file),`<a\n\t\t\tdata-jodit-filebrowser-item="true"\n\t\t\tdata-is-file="${e.isImage?0:1}"\n\t\t\tdraggable="true"\n\t\t\tclass="${s}"\n\t\t\thref="${e.fileURL}"\n\t\t\tdata-source="${i}"\n\t\t\tdata-path="${e.path}"\n\t\t\tdata-name="${l}"\n\t\t\ttitle="${l}"\n\t\t\tdata-url="${e.fileURL}">\n\t\t\t\t<img\n\t\t\t\t\tdata-is-file="${e.isImage?0:1}"\n\t\t\t\t\tdata-src="${e.fileURL}"\n\t\t\t\t\tsrc="${e.imageURL}"\n\t\t\t\t\talt="${l}"\n\t\t\t\t\tloading="lazy"\n\t\t\t\t/>\n\t\t\t\t${n||r||a?`<div class="${s}-info">${n?`<span class="${s}-info-filename">${l}</span>`:""}${r?`<span class="${s}-info-filesize">${e.size}</span>`:""}${a?`<span class="${s}-info-filechanged">${a}</span>`:""}</div>`:""}\n\t\t\t</a>`},ajax:{...a.D.prototype.defaultAjaxOptions,url:"",async:!0,data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,dataType:"json",headers:{},prepareData(e){return e},process(e){return e}},create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},a.D.prototype.controls.filebrowser={upload:{icon:"plus",isInput:!0,isDisabled:e=>!e.dataProvider.canI("FileUpload"),getContent(e){const t=new A.Z(e,{onlyImages:e.state.onlyImages});return e.e.fire("bindUploader.filebrowser",t.container),t.container}},remove:{icon:"bin",isDisabled:e=>!e.state.activeElements.length||!e.dataProvider.canI("FileRemove"),exec(e){e.e.fire("fileRemove.filebrowser")}},update:{exec(e){e.e.fire("update.filebrowser")}},select:{icon:"check",isDisabled:e=>!e.state.activeElements.length,exec(e){e.e.fire("select.filebrowser")}},edit:{icon:"pencil",isDisabled(e){const 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:{icon:"th",isActive:e=>"tiles"===e.state.view,exec(e){e.e.fire("view.filebrowser","tiles")}},list:{icon:"th-list",isActive:e=>"list"===e.state.view,exec(e){e.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent(e,t,i){const o=i.container.querySelector(".jodit-input");if(o)return o;const 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){const 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}}};class X{constructor(e){this.data=e,Object.keys(e).forEach((t=>{this[t]=e[t]}))}static create(e){return e instanceof X?e:new X(e)}get path(){return(0,h.normalizePath)(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){const e=""+(new Date).getTime(),{thumbIsAbsolute:t,source:i,thumb:o,file:s}=this.data,n=o||s;return t&&n?n:(0,h.normalizeUrl)(i.baseurl,i.path,n||"")+"?_tmst="+e}get fileURL(){let{name:e}=this.data;const{file:t,fileIsAbsolute:i,source:o}=this.data;return void 0!==t&&(e=t),i&&e?e:(0,h.normalizeUrl)(o.baseurl,o.path,e||"")}get time(){const{changed:e}=this.data;return e&&("number"==typeof e?new Date(e).toLocaleString():e)||""}get uniqueHashKey(){const e=this.data;let t=[e.sourceName,e.name,e.file,this.time,e.thumb].join("_");return t=t.toLowerCase().replace(/[^0-9a-z\-.]/g,"-"),t}toJSON(){return this.data}}const Z="default";let Q=class{constructor(e,t){this.parent=e,this.options=t,this.__currentPermissions=null,this.ajaxInstances=new Map,this.progressHandler=e=>{}}get o(){return this.options}get(e){const t=this.ajaxInstances;if(t.has(e)){const i=t.get(e);null==i||i.abort(),t.delete(e)}const i=(0,h.ConfigProto)(void 0!==this.options[e]?this.options[e]:{},(0,h.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));i.prepareData&&(i.data=i.prepareData.call(this,i.data));const o=new m(this.parent,i);t.set(e,o);const s=o.send();return s.finally((()=>{o.destruct(),t.delete(e),this.progressHandler(100)})).catch((()=>null)),s.then((e=>e.json())).then((e=>{if(e&&!this.isSuccess(e))throw Error(this.getMessage(e));return e}))}onProgress(e){this.progressHandler=e}async permissions(e,t){return this.o.permissions?(this.o.permissions.data.path=e,this.o.permissions.data.source=t,this.o.permissions.url?this.get("permissions").then((e=>{let t=this.o.permissions.process;if(t||(t=this.o.ajax.process),t){const i=t.call(self,e);i.data.permissions&&(this.__currentPermissions=i.data.permissions)}return this.__currentPermissions})):null):null}canI(e){const t="allow"+e;return null==this.__currentPermissions||void 0===this.__currentPermissions[t]||this.__currentPermissions[t]}items(e,t,i={}){const o=this.options;return o.items?(o.items.data.path=e,o.items.data.source=t,o.items.data.mods=i,this.get("items").then((e=>{let t=this.o.items.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),this.generateItemsList(e.data.sources,i)}))):Promise.reject("Set Items api options")}generateItemsList(e,t={}){const i=[],o=e=>{var i;return!(null===(i=t.filterWord)||void 0===i?void 0:i.length)||void 0===this.o.filter||this.o.filter(e,t.filterWord)};return e.forEach((e=>{if(e.files&&e.files.length){const{sort:s}=this.o;(0,h.isFunction)(s)&&t.sortBy&&e.files.sort(((e,i)=>s(e,i,t.sortBy))),e.files.forEach((s=>{o(s)&&(e=>!t.onlyImages||void 0===e.isImage||e.isImage)(s)&&i.push(X.create({...s,sourceName:e.name,source:e}))}))}})),i}async tree(e,t){return e=(0,h.normalizeRelativePath)(e),this.o.folder?(await this.permissions(e,t),this.o.folder.data.path=e,this.o.folder.data.source=t,this.get("folder").then((e=>{let t=this.o.folder.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),e.data.sources}))):Promise.reject("Set Folder Api options")}getPathByUrl(e){return(0,h.set)("options.getLocalFileByUrl.data.url",e,this),this.get("getLocalFileByUrl").then((e=>{if(this.isSuccess(e))return e.data;throw(0,h.error)(this.getMessage(e))}))}createFolder(e,t,i){const{create:o}=this.o;if(!o)throw(0,h.error)("Set Create api options");return o.data.source=i,o.data.path=t,o.data.name=e,this.get("create").then((e=>{if(this.isSuccess(e))return!0;throw(0,h.error)(this.getMessage(e))}))}move(e,t,i,o){const s=o?"fileMove":"folderMove",n=this.options[s];if(!n)throw(0,h.error)("Set Move api options");return n.data.from=e,n.data.path=t,n.data.source=i,this.get(s).then((e=>{if(this.isSuccess(e))return!0;throw(0,h.error)(this.getMessage(e))}))}remove(e,t,i,o){const s=this.o[e];if(!s)throw(0,h.error)(`Set "${e}" api options`);return s.data.path=t,s.data.name=i,s.data.source=o,this.get(e).then((e=>(s.process&&(e=s.process.call(this,e)),this.getMessage(e))))}fileRemove(e,t,i){return this.remove("fileRemove",e,t,i)}folderRemove(e,t,i){return this.remove("folderRemove",e,t,i)}rename(e,t,i,o,s){const n=this.o[e];if(!n)throw(0,h.error)(`Set "${e}" api options`);return n.data.path=t,n.data.name=i,n.data.newname=o,n.data.source=s,this.get(e).then((e=>(n.process&&(e=n.process.call(self,e)),this.getMessage(e))))}folderRename(e,t,i,o){return this.rename("folderRename",e,t,i,o)}fileRename(e,t,i,o){return this.rename("fileRename",e,t,i,o)}changeImage(e,t,i,o,s,n){this.o[e]||(this.o[e]={data:{}});const r=this.o[e];return void 0===r.data&&(r.data={action:e}),r.data.newname=s||o,n&&(r.data.box=n),r.data.path=t,r.data.name=o,r.data.source=i,this.get(e).then((()=>!0))}crop(e,t,i,o,s){return this.changeImage("crop",e,t,i,o,s)}resize(e,t,i,o,s){return this.changeImage("resize",e,t,i,o,s)}getMessage(e){return this.options.getMessage(e)}isSuccess(e){return this.options.isSuccess(e)}destruct(){this.ajaxInstances.forEach((e=>e.destruct())),this.ajaxInstances.clear()}};Q=(0,r.gn)([z.autobind],Q);var ee=Q,te=i(63);const ie=new WeakMap,oe=e=>{let t=ie.get(e);return t||(t={},ie.set(e,t)),t};function se(e){return e.files.setMod("active",!0),e.files.setMod("loading",!0),e.dataProvider.items(e.state.currentPath,e.state.currentSource,{sortBy:e.state.sortBy,onlyImages:e.state.onlyImages,filterWord:e.state.filterWord}).then((t=>{t&&(e.state.elements=t,e.state.activeElements=[])})).catch(e.status).finally((()=>e.files.setMod("loading",!1)))}async function ne(e){e.tree.setMod("active",!0),L.i.detach(e.tree.container);const t=se(e);if(e.o.showFoldersPanel){e.tree.setMod("loading",!0);const i=e.dataProvider.tree(e.state.currentPath,e.state.currentSource).then((t=>{e.state.sources=t})).catch(e.status).finally((()=>e.tree.setMod("loading",!1)));return Promise.all([i,t])}return e.tree.setMod("active",!1),t}function re(){const e=oe(this),{state:t,files:i,create:o,options:s}=this,n=t=>{const i=t.uniqueHashKey;if(e[i])return e[i].elm;const n=o.fromHTML(s.getThumbTemplate.call(this,t,t.source,""+t.sourceName));return n.dataset.key=i,e[i]={item:t,elm:n},e[i].elm};t.on(["change.currentPath","change.currentSource"],this.async.debounce((()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeLastOpenedFolder&&this.storage.set("currentPath",this.state.currentPath).set("currentSource",this.state.currentSource),ne(this).catch(this.status)}),this.defaultTimeout)).on("beforeChange.activeElements",(()=>{t.activeElements.forEach((t=>{const o=t.uniqueHashKey,{elm:s}=e[o];s&&s.classList.remove(i.getFullElName("item","active",!0))}))})).on("change.activeElements",(()=>{this.e.fire("changeSelection"),t.activeElements.forEach((t=>{const o=t.uniqueHashKey,{elm:s}=e[o];s&&s.classList.add(i.getFullElName("item","active",!0))}))})).on("change.view",(()=>{i.setMod("view",t.view),this.o.saveStateInStorage&&this.o.saveStateInStorage.storeView&&this.storage.set("view",t.view)})).on("change.sortBy",(()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeSortBy&&this.storage.set("sortBy",t.sortBy)})).on("change.elements",this.async.debounce((()=>{L.i.detach(i.container),t.elements.length?t.elements.forEach((e=>{this.files.container.appendChild(n(e))})):i.container.appendChild(o.div(this.componentName+"_no-files_true",this.i18n("There are no files")))}),this.defaultTimeout)).on("change.sources",this.async.debounce((()=>{L.i.detach(this.tree.container),t.sources.forEach((e=>{const t=e.name;if(t&&"default"!==t&&this.tree.container.appendChild(o.div(this.tree.getFullElName("source-title"),t)),e.folders.forEach((i=>{const n=o.a(this.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":(0,te.AH)(e.path,i+"/"),"data-name":i,"data-source":t,"data-source-path":e.path},o.span(this.tree.getFullElName("item-title"),i)),r=o=>s=>{this.e.fire(o+".filebrowser",{name:i,path:(0,te.AH)(e.path+"/"),source:t}),s.stopPropagation(),s.preventDefault()};if(this.e.on(n,"click",r("openFolder")),this.tree.container.appendChild(n),".."!==i&&"."!==i){if(s.renameFolder&&this.dataProvider.canI("FolderRename")){const e=(0,A.zx)(this,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});e.onAction(r("renameFolder")),n.appendChild(e.container)}if(s.deleteFolder&&this.dataProvider.canI("FolderRemove")){const e=(0,A.zx)(this,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});e.onAction(r("removeFolder")),n.appendChild(e.container)}}})),s.createNewFolder&&this.dataProvider.canI("FolderCreate")){const i=(0,A.zx)(this,"plus","Add folder","secondary");i.onAction((()=>{this.e.fire("addFolder",{path:(0,te.AH)(e.path+"/"),source:t})})),this.tree.append(i)}}))}),this.defaultTimeout))}const ae="jodit-image-editor",le=A.JO.get.bind(A.JO),ce=(e,t="jodti-image-editor_active")=>e?t:"";var de;a.D.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"};const he="resize",ue="crop";let pe=de=class extends f.Hr{constructor(e){super(e),this.resizeUseRatio=!0,this.cropUseRatio=!0,this.clicked=!1,this.start_x=0,this.start_y=0,this.top_x=0,this.top_y=0,this.width=0,this.height=0,this.activeTab=he,this.naturalWidth=0,this.naturalHeight=0,this.ratio=0,this.new_h=0,this.new_w=0,this.diff_x=0,this.diff_y=0,this.cropBox={x:0,y:0,w:0,h:0},this.resizeBox={w:0,h:0},this.calcCropBox=()=>{const e=this.crop_box.parentNode,t=.8*e.offsetWidth,i=.8*e.offsetHeight;let o=t,s=i;const{naturalWidth:n,naturalHeight:r}=this;t>n&&i>r?(o=n,s=r):this.ratio>t/i?(o=t,s=r*(t/n)):(o=n*(i/r),s=i),(0,h.css)(this.crop_box,{width:o,height:s})},this.showCrop=()=>{if(!this.cropImage)return;this.calcCropBox();const e=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=de.calcValueByPercent(e,this.o.cropDefaultWidth);const t=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.new_h=this.cropUseRatio?this.new_w/this.ratio:de.calcValueByPercent(t,this.o.cropDefaultHeight),(0,h.css)(this.cropHandler,{backgroundImage:"url("+(0,h.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:e/2-this.new_w/2,top:t/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")},this.updateCropBox=()=>{if(!this.cropImage)return;const e=this.cropImage.offsetWidth/this.naturalWidth,t=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,h.css)(this.cropHandler,"left")/e,this.cropBox.y=(0,h.css)(this.cropHandler,"top")/t,this.cropBox.w=this.cropHandler.offsetWidth/e,this.cropBox.h=this.cropHandler.offsetHeight/t,this.sizes.textContent=this.cropBox.w.toFixed(0)+"x"+this.cropBox.h.toFixed(0)},this.updateResizeBox=()=>{this.resizeBox.w=this.image.offsetWidth||this.naturalWidth,this.resizeBox.h=this.image.offsetHeight||this.naturalHeight},this.setHandlers=()=>{const e=this,{widthInput:t,heightInput:i}=(0,h.refs)(this.editor);e.j.e.on([e.editor.querySelector(".jodit_bottomright"),e.cropHandler],"mousedown.jodit-image-editor",this.onResizeHandleMouseDown).on(this.j.ow,"resize.jodit-image-editor",(()=>{this.j.e.fire(e.resizeHandler,"updatesize"),e.showCrop(),this.j.e.fire(e.cropHandler,"updatesize")})),e.j.e.on((0,h.toArray)(this.editor.querySelectorAll(".jodit-image-editor__slider-title")),"click",this.onTitleModeClick).on([t,i],"input",this.onChangeSizeInput);const{keepAspectRatioResize:o,keepAspectRatioCrop:s}=(0,h.refs)(this.editor);o&&o.addEventListener("change",(()=>{this.resizeUseRatio=o.checked})),s&&s.addEventListener("change",(()=>{this.cropUseRatio=s.checked})),e.j.e.on(e.resizeHandler,"updatesize",(()=>{(0,h.css)(e.resizeHandler,{top:0,left:0,width:e.image.offsetWidth||e.naturalWidth,height:e.image.offsetHeight||e.naturalHeight}),this.updateResizeBox()})).on(e.cropHandler,"updatesize",(()=>{if(!e.cropImage)return;let t=(0,h.css)(e.cropHandler,"left"),i=(0,h.css)(e.cropHandler,"top"),o=e.cropHandler.offsetWidth,s=e.cropHandler.offsetHeight;0>t&&(t=0),0>i&&(i=0),t+o>e.cropImage.offsetWidth&&(o=e.cropImage.offsetWidth-t,e.cropUseRatio&&(s=o/e.ratio)),i+s>e.cropImage.offsetHeight&&(s=e.cropImage.offsetHeight-i,e.cropUseRatio&&(o=s*e.ratio)),(0,h.css)(e.cropHandler,{width:o,height:s,left:t,top:i,backgroundPosition:-t-1+"px "+(-i-1)+"px",backgroundSize:e.cropImage.offsetWidth+"px "+e.cropImage.offsetHeight+"px"}),e.updateCropBox()})),Object.values(e.buttons).forEach((o=>{o.onAction((()=>{const s={action:e.activeTab,box:e.activeTab===he?e.resizeBox:e.cropBox};switch(o){case e.buttons.saveas:Y(e.j.i18n("Enter new name"),e.j.i18n("Save in new file"),(t=>{if(!(0,h.trim)(t))return U(e.j.i18n("The name should not be empty")).bindDestruct(this.j),!1;e.onSave(t,s,e.hide,(t=>{U(t.message).bindDestruct(e.j)}))})).bindDestruct(this.j);break;case e.buttons.save:e.onSave(void 0,s,e.hide,(t=>{U(t.message).bindDestruct(e.j)}));break;case e.buttons.reset:e.activeTab===he?((0,h.css)(e.image,{width:null,height:null}),t.value=""+e.naturalWidth,i.value=""+e.naturalHeight,e.j.e.fire(e.resizeHandler,"updatesize")):e.showCrop()}}))}))},this.options=e&&e.o&&e.o.imageeditor?e.o.imageeditor:a.D.defaultOptions.imageeditor;const t=this.options;this.resizeUseRatio=t.resizeUseRatio,this.cropUseRatio=t.cropUseRatio,this.buttons={reset:(0,v.zx)(this.j,"update","Reset"),save:(0,v.zx)(this.j,"save","Save"),saveas:(0,v.zx)(this.j,"save","Save as ...")},this.activeTab=t.resize?he:ue,this.editor=((e,t)=>{const i=e.i18n.bind(e),o=(e,t,o=!0)=>`<div class="jodit-form__group">\n\t\t\t<label>${i(e)}</label>\n\n\t\t\t<label class='jodit-switcher'>\n\t\t\t\t<input ${ce(o,"checked")} data-ref="${t}" type="checkbox"/>\n\t\t\t\t<span class="jodit-switcher__slider"></span>\n\t\t\t</label>\n\t</div>`;return e.create.fromHTML(`<form class="${ae} jodit-properties">\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-3-4 jodit_col-sm-5-5">\n\t\t\t${t.resize?`<div class="${ae}__area ${ae}__area_resize ${ae}_active">\n\t\t\t\t\t\t\t<div data-ref="resizeBox" class="${ae}__box"></div>\n\t\t\t\t\t\t\t<div class="${ae}__resizer">\n\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t${t.crop?`<div class="${ae}__area ${ae}__area_crop ${ce(!t.resize)}">\n\t\t\t\t\t\t\t<div data-ref="cropBox" class="${ae}__box">\n\t\t\t\t\t\t\t\t<div class="${ae}__croper">\n\t\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t\t\t<i class="${ae}__sizes"></i>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t</div>\n\t\t\t<div class="jodit_col-lg-1-4 jodit_col-sm-5-5">\n\t\t\t${t.resize?`<div data-area="resize" class="${ae}__slider ${ae}_active">\n\t\t\t\t\t\t\t<div class="${ae}__slider-title">\n\t\t\t\t\t\t\t\t${le("resize")}\n\t\t\t\t\t\t\t\t${i("Resize")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="${ae}__slider-content">\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t${i("Width")}\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="widthInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t${i("Height")}\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="heightInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t${o("Keep Aspect Ratio","keepAspectRatioResize")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t${t.crop?`<div data-area="crop" class="${ae}__slider ${ce(!t.resize)}'">\n\t\t\t\t\t\t\t<div class="${ae}__slider-title">\n\t\t\t\t\t\t\t\t${le("crop")}\n\t\t\t\t\t\t\t\t${i("Crop")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="${ae}__slider-content">\n\t\t\t\t\t\t\t\t${o("Keep Aspect Ratio","keepAspectRatioCrop")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t</div>\n\t\t</div>\n\t</form>`)})(this.j,this.options);const{resizeBox:i,cropBox:o}=(0,h.refs)(this.editor);this.resize_box=i,this.crop_box=o,this.sizes=this.editor.querySelector(".jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__sizes"),this.resizeHandler=this.editor.querySelector(".jodit-image-editor__resizer"),this.cropHandler=this.editor.querySelector(".jodit-image-editor__croper"),this.dialog=new V({fullsize:this.j.o.fullsize,globalFullSize:this.j.o.globalFullSize,language:this.j.o.language,buttons:["fullsize","dialog.close"]}),this.dialog.setContent(this.editor),this.dialog.setSize(this.o.width,this.o.height),this.dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}className(){return"ImageEditor"}onTitleModeClick(e){const t=this,i=e.target,o=null==i?void 0:i.parentElement;if(!o)return;(0,h.$$)(".jodit-image-editor__slider,.jodit-image-editor__area",t.editor).forEach((e=>e.classList.remove("jodit-image-editor_active"))),o.classList.add("jodit-image-editor_active"),this.activeTab=(0,h.attr)(o,"-area")||he;const s=t.editor.querySelector(".jodit-image-editor__area.jodit-image-editor__area_"+t.activeTab);s&&s.classList.add("jodit-image-editor_active"),t.activeTab===ue&&t.showCrop()}onChangeSizeInput(e){const t=this,i=e.target,{widthInput:o,heightInput:s}=(0,h.refs)(this.editor),n="widthInput"===(0,h.attr)(i,"data-ref"),r=parseInt(i.value,10),a=n?t.o.min_height:t.o.min_width;let l;r>(n?t.o.min_width:t.o.min_height)&&((0,h.css)(t.image,n?"width":"height",r),t.resizeUseRatio&&(l=Math.round(n?r/t.ratio:r*t.ratio),l>a&&((0,h.css)(t.image,n?"height":"width",l),n?s.value=""+l:o.value=""+l))),this.j.e.fire(t.resizeHandler,"updatesize")}onResizeHandleMouseDown(e){const t=this;t.target=e.target,e.preventDefault(),e.stopImmediatePropagation(),t.clicked=!0,t.start_x=e.clientX,t.start_y=e.clientY,t.activeTab===ue?(t.top_x=(0,h.css)(t.cropHandler,"left"),t.top_y=(0,h.css)(t.cropHandler,"top"),t.width=t.cropHandler.offsetWidth,t.height=t.cropHandler.offsetHeight):(t.width=t.image.offsetWidth,t.height=t.image.offsetHeight),t.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(e){this.clicked&&(this.clicked=!1,e.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(e){const t=this;if(!t.clicked)return;const{widthInput:i,heightInput:o}=(0,h.refs)(this.editor);t.diff_x=e.clientX-t.start_x,t.diff_y=e.clientY-t.start_y,t.activeTab===he&&t.resizeUseRatio||t.activeTab===ue&&t.cropUseRatio?t.diff_x?(t.new_w=t.width+t.diff_x,t.new_h=Math.round(t.new_w/t.ratio)):(t.new_h=t.height+t.diff_y,t.new_w=Math.round(t.new_h*t.ratio)):(t.new_w=t.width+t.diff_x,t.new_h=t.height+t.diff_y),t.activeTab===he?(t.new_w>t.o.resizeMinWidth&&((0,h.css)(t.image,"width",t.new_w+"px"),i.value=""+t.new_w),t.new_h>t.o.resizeMinHeight&&((0,h.css)(t.image,"height",t.new_h+"px"),o.value=""+t.new_h),this.j.e.fire(t.resizeHandler,"updatesize")):(t.target!==t.cropHandler?(t.top_x+t.new_w>t.cropImage.offsetWidth&&(t.new_w=t.cropImage.offsetWidth-t.top_x),t.top_y+t.new_h>t.cropImage.offsetHeight&&(t.new_h=t.cropImage.offsetHeight-t.top_y),(0,h.css)(t.cropHandler,{width:t.new_w,height:t.new_h})):(t.top_x+t.diff_x+t.cropHandler.offsetWidth>t.cropImage.offsetWidth&&(t.diff_x=t.cropImage.offsetWidth-t.top_x-t.cropHandler.offsetWidth),(0,h.css)(t.cropHandler,"left",t.top_x+t.diff_x),t.top_y+t.diff_y+t.cropHandler.offsetHeight>t.cropImage.offsetHeight&&(t.diff_y=t.cropImage.offsetHeight-t.top_y-t.cropHandler.offsetHeight),(0,h.css)(t.cropHandler,"top",t.top_y+t.diff_y)),this.j.e.fire(t.cropHandler,"updatesize"))}get o(){return this.options}hide(){this.dialog.close()}open(e,t){return this.j.async.promise((i=>{const o=(new Date).getTime();this.image=this.j.c.element("img"),(0,h.$$)("img,.jodit-icon_loader",this.resize_box).forEach(L.i.safeRemove),(0,h.$$)("img,.jodit-icon_loader",this.crop_box).forEach(L.i.safeRemove),(0,h.css)(this.cropHandler,"background","transparent"),this.onSave=t,this.resize_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.crop_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.image.setAttribute("src",e+=/\?/.test(e)?"&_tst="+o:"?_tst="+o),this.dialog.open();const{widthInput:s,heightInput:n}=(0,h.refs)(this.editor),r=()=>{this.isDestructed||(this.image.removeEventListener("load",r),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,s.value=""+this.naturalWidth,n.value=""+this.naturalHeight,this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),L.i.safeRemove.apply(null,(0,h.$$)(".jodit-icon_loader",this.editor)),this.activeTab===ue&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this.dialog.setPosition(),this.j.e.fire("afterImageEditor"),i(this.dialog))};this.image.addEventListener("load",r),this.image.complete&&r()}))}destruct(){this.isDestructed||(this.dialog&&!this.dialog.isInDestruct&&this.dialog.destruct(),L.i.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,".jodit-image-editor").off(".jodit-image-editor"),super.destruct())}};function me(e,t,i,o,s,n){return this.getInstance("ImageEditor",this.o).open(e,((e,r,a,l)=>(0,h.call)("resize"===r.action?this.dataProvider.resize:this.dataProvider.crop,i,o,t,e,r.box).then((e=>{e&&(a(),s&&s())})).catch((e=>{l(e),n&&n(e)}))))}function fe(e,t,i){return e.dataProvider.fileRemove(e.state.currentPath,t,i).then((i=>{e.status(i||e.i18n('File "%s" was deleted',t),!0)})).catch(e.status)}pe.calcValueByPercent=(e,t)=>{const i=""+t,o=parseFloat(""+e);let s;return s=/^[-+]?[0-9]+(px)?$/.exec(i),s?parseInt(i,10):(s=/^([-+]?[0-9.]+)%$/.exec(i),s?Math.round(o*(parseFloat(s[1])/100)):o||0)},(0,r.gn)([z.autobind],pe.prototype,"onTitleModeClick",null),(0,r.gn)([(0,z.debounce)(),z.autobind],pe.prototype,"onChangeSizeInput",null),(0,r.gn)([z.autobind],pe.prototype,"onResizeHandleMouseDown",null),(0,r.gn)([z.autobind],pe.prototype,"onGlobalMouseUp",null),(0,r.gn)([(0,z.throttle)(10)],pe.prototype,"onGlobalMouseMove",null),(0,r.gn)([z.autobind],pe.prototype,"hide",null),(0,r.gn)([z.autobind],pe.prototype,"open",null),pe=de=(0,r.gn)([z.component],pe);const ge="jodit-filebrowser-preview",ve=(e="next",t="right")=>`<div class="${ge}__navigation ${ge}__navigation_arrow_${e}">`+A.JO.get("angle-"+t)+"</a>";var be=e=>{if(!e.o.contextMenu)return()=>{};const t=new w(e);return i=>{const o=ye(i.target,e.container);if(!o)return;let s=o;const n=e.options,r=e=>(0,h.attr)(s,e)||"";return e.async.setTimeout((()=>{const a=we(o,oe(e));a&&(e.state.activeElements=[a],t.show(i.clientX,i.clientY,[!("1"===r("data-is-file")||!n.editImage||!e.dataProvider.canI("ImageResize")&&!e.dataProvider.canI("ImageCrop"))&&{icon:"pencil",title:"Edit",exec:()=>me.call(e,r("href"),r("data-name"),r("data-path"),r("data-source"))},!!e.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec(){e.e.fire("fileRename.filebrowser",r("data-name"),r("data-path"),r("data-source"))}},!!e.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",async exec(){try{await fe(e,r("data-name"),r("data-source"))}catch(t){return e.status(t)}return e.state.activeElements=[],ne(e).catch(e.status)}},!!n.preview&&{icon:"eye",title:"Preview",exec(){const t=new V({fullsize:e.o.fullsize,language:e.o.language,buttons:["fullsize","dialog.close"]}),i=e.c.div(ge,'<div class="jodit-icon_loader"></div>'),o=e.c.div(ge+"__box"),a=e.c.fromHTML(ve()),l=e.c.fromHTML(ve("prev","left")),c=r=>{const c=e.c.element("img");c.setAttribute("src",r);const d=()=>{var r;e.isInDestruct||(e.e.off(c,"load"),L.i.detach(i),n.showPreviewNavigation&&(L.i.prevWithClass(s,e.files.getFullElName("item"))&&i.appendChild(l),L.i.nextWithClass(s,e.files.getFullElName("item"))&&i.appendChild(a)),i.appendChild(o),o.appendChild(c),t.setPosition(),null===(r=null==e?void 0:e.events)||void 0===r||r.fire("previewOpenedAndLoaded"))};e.e.on(c,"load",d),c.complete&&d()};e.e.on([a,l],"click",(function(){if(s=this===a?L.i.nextWithClass(s,e.files.getFullElName("item")):L.i.prevWithClass(s,e.files.getFullElName("item")),!s)throw(0,h.error)("Need element");L.i.detach(i),L.i.detach(o),i.innerHTML='<div class="jodit-icon_loader"></div>',c(r("href"))})),e.e.on("beforeDestruct",(()=>{t.destruct()})),t.container.classList.add(ge+"__dialog"),t.setContent(i),t.setPosition(),t.open(),c(r("href")),e.events.on("beforeDestruct",(()=>{t.destruct()})).fire("previewOpened")}},{icon:"upload",title:"Download",exec(){const t=r("href");t&&e.ow.open(t)}}]))}),e.defaultTimeout),e.e.on("beforeClose",(()=>t.close())).on("beforeDestruct",(()=>t.destruct())),i.stopPropagation(),i.preventDefault(),!1}};const ye=(e,t,i="a")=>L.i.closest(e,(e=>L.i.isTag(e,i)),t),we=(e,t)=>{const{key:i}=e.dataset,{item:o}=t[i||""];return o};function Ce(){let e=!1;const t=oe(this),i=this;i.e.on(i.tree.container,"dragstart",(t=>{const o=ye(t.target,i.container);o&&i.o.moveFolder&&(e=o)})).on(i.tree.container,"drop",(t=>{if((i.o.moveFile||i.o.moveFolder)&&e){let o=(0,h.attr)(e,"-path")||"";if(!i.o.moveFolder&&e.classList.contains(this.tree.getFullElName("item")))return!1;if(e.classList.contains(this.files.getFullElName("item"))&&(o+=(0,h.attr)(e,"-name"),!i.o.moveFile))return!1;const s=ye(t.target,i.container);if(!s)return;i.dataProvider.move(o,(0,h.attr)(s,"-path")||"",(0,h.attr)(s,"-source")||"",e.classList.contains(this.files.getFullElName("item"))).then((()=>ne(this))).catch(i.status),e=!1}})).on(i.files.container,"contextmenu",be(i)).on(i.files.container,"click",(e=>{(0,h.ctrlKey)(e)||(this.state.activeElements=[])})).on(i.files.container,"click",(e=>{const o=ye(e.target,i.container);if(!o)return;const s=we(o,t);return s?(i.state.activeElements=(0,h.ctrlKey)(e)?[...i.state.activeElements,s]:[s],e.stopPropagation(),!1):void 0})).on(i.files.container,"dragstart",(t=>{if(i.o.moveFile){const o=ye(t.target,i.container);if(!o)return;e=o}})).on(i.container,"drop",(e=>e.preventDefault()))}function ke(){const e=this.state,t=this.dataProvider,i=this;i.e.on("view.filebrowser",(t=>{t!==e.view&&(e.view=t)})).on("sort.filebrowser",(t=>{t!==e.sortBy&&(e.sortBy=t,se(i))})).on("filter.filebrowser",(t=>{t!==e.filterWord&&(e.filterWord=t,se(i))})).on("openFolder.filebrowser",(e=>{let t;t=".."===e.name?e.path.split("/").filter((e=>e.length)).slice(0,-1).join("/"):(0,h.normalizePath)(e.path,e.name),i.state.currentPath=t,i.state.currentSource="."===e.name?Z:e.source})).on("removeFolder.filebrowser",(e=>{$(i.i18n("Are you sure?"),i.i18n("Delete"),(o=>{o&&t.folderRemove(e.path,e.name,e.source).then((e=>(i.status(e,!0),ne(i)))).catch(i.status)})).bindDestruct(i)})).on("renameFolder.filebrowser",(e=>{Y(i.i18n("Enter new name"),i.i18n("Rename"),(o=>{if(!(0,b.r1)(o))return i.status(i.i18n("Enter new name")),!1;t.folderRename(e.path,e.name,o,e.source).then((e=>(i.state.activeElements=[],i.status(e,!0),ne(i)))).catch(i.status)}),i.i18n("type name"),e.name).bindDestruct(i)})).on("addFolder.filebrowser",(e=>{Y(i.i18n("Enter Directory name"),i.i18n("Create directory"),(o=>{t.createFolder(o,e.path,e.source).then((()=>ne(i))).catch(i.status)}),i.i18n("type name")).bindDestruct(i)})).on("fileRemove.filebrowser",(()=>{i.state.activeElements.length&&$(i.i18n("Are you sure?"),"",(e=>{if(e){const e=[];i.state.activeElements.forEach((t=>{e.push(fe(i,t.file||t.name||"",t.sourceName))})),i.state.activeElements=[],Promise.all(e).then((()=>ne(i).catch(i.status)),i.status)}})).bindDestruct(i)})).on("edit.filebrowser",(()=>{if(1===i.state.activeElements.length){const[e]=this.state.activeElements;me.call(i,e.fileURL,e.file||"",e.path,e.sourceName)}})).on("fileRename.filebrowser",((e,o,s)=>{1===i.state.activeElements.length&&Y(i.i18n("Enter new name"),i.i18n("Rename"),(n=>{if(!(0,b.r1)(n))return i.status(i.i18n("Enter new name")),!1;t.fileRename(o,e,n,s).then((e=>{i.state.activeElements=[],i.status(e,!0),se(i)})).catch(i.status)}),i.i18n("type name"),e).bindDestruct(this)})).on("update.filebrowser",(()=>{ne(this).then(this.status,this.status)}))}class Se extends A.qe{className(){return"FilebrowserFiles"}}class Ee extends A.qe{className(){return"FilebrowserTree"}}class Ie extends W{constructor(e){var t;super(e),this.browser=this.c.div(this.componentName),this.status_line=this.c.div(this.getFullElName("status")),this.tree=new Ee(this),this.files=new Se(this),this.state=(0,c.LO)({currentPath:"",currentSource:Z,currentBaseUrl:"",activeElements:[],elements:[],messages:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=e=>{(0,h.isAbort)(e)||this.status(e instanceof Error?this.i18n(e.message):this.dataProvider.getMessage(e))},this.close=()=>{this.dialog.close()},this.attachEvents(e);const i=this;i.options=(0,h.ConfigProto)(e||{},a.D.defaultOptions.filebrowser),i.storage=I.makeStorage(!!this.o.saveStateInStorage,this.componentName),i.dataProvider=((e,t)=>new ee(e,t))(i,i.options),i.dialog=new V({fullsize:i.o.fullsize,ownerWindow:i.ownerWindow,theme:i.o.theme,globalFullSize:i.o.globalFullSize,language:this.o.language,minWidth:Math.min(700,screen.width),minHeight:300,buttons:null!==(t=this.o.headerButtons)&&void 0!==t?t:["fullsize","dialog.close"]}),this.proxyDialogEvents(i),i.browser.component=this,i.container=i.browser,i.o.showFoldersPanel&&i.browser.appendChild(i.tree.container),i.browser.appendChild(i.files.container),i.browser.appendChild(i.status_line),ke.call(i),Ce.call(i),re.call(i),i.dialog.setSize(i.o.width,i.o.height),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach((e=>{null!=this.options[e]&&(this.options[e]=(0,h.ConfigProto)(this.options[e],this.o.ajax))}));const{storeView:o,storeSortBy:s,storeLastOpenedFolder:n}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},r=o&&this.storage.get("view");i.state.view=r&&null==this.o.view?"list"===r?"list":"tiles":"list"===i.o.view?"list":"tiles",i.files.setMod("view",i.state.view);const l=s&&i.storage.get("sortBy");if(l){const e=l.split("-");i.state.sortBy=["changed","name","size"].includes(e[0])?l:"changed-desc"}else i.state.sortBy=i.o.sortBy||"changed-desc";if(n){const e=i.storage.get("currentPath"),t=i.storage.get("currentSource");i.state.currentPath=null!=e?e:"",i.state.currentSource=null!=t?t:""}i.initUploader(i),i.setStatus(f.n$.ready)}className(){return"Filebrowser"}onSelect(e){return()=>{if(this.state.activeElements.length){const t=[],i=[];this.state.activeElements.forEach((e=>{const o=e.fileURL;o&&(t.push(o),i.push(e.isImage||!1))})),this.close();const o={baseurl:"",files:t,isImages:i};(0,h.isFunction)(e)&&e(o),this.close()}return!1}}get isOpened(){return this.dialog.isOpened&&"none"!==this.browser.style.display}status(e,t){if(!e||(0,h.isAbort)(e))return;if((0,h.isString)(e)||(e=e.message),!(0,h.isString)(e)||!(0,h.trim)(e).length)return;const i=this.getFullElName("status","success",!0),o=this.getFullElName("status","active",!0);this.status_line.classList.remove(i),this.status_line.classList.add(o);const s=this.c.div();s.textContent=e,this.status_line.appendChild(s),t&&this.status_line.classList.add(i),this.async.setTimeout((()=>{this.status_line.classList.remove(o),L.i.detach(this.status_line)}),{timeout:this.o.howLongShowMsg,label:"fileBrowser.status"})}open(e=this.o.defaultCallback,t=!1){return this.state.onlyImages=t,this.async.promise(((t,i)=>{var o;if(!this.o.items||!this.o.items.url)throw(0,h.error)("Need set options.filebrowser.ajax.url");let s=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(e)).on(this.files.container,"touchstart",(()=>{const t=(new Date).getTime();l.EMULATE_DBLCLICK_TIMEOUT>t-s&&this.onSelect(e)(),s=t})).off("select.filebrowser").on("select.filebrowser",this.onSelect(e));const n=this.c.div();this.toolbar.build(null!==(o=this.o.buttons)&&void 0!==o?o:[]).appendTo(n),this.dialog.open(this.browser,n),this.e.fire("sort.filebrowser",this.state.sortBy),ne(this).then(t,i)}))}initUploader(e){var t;const i=this,o=null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.uploader,s=(0,h.ConfigProto)(o||{},a.D.defaultOptions.uploader),n=()=>se(this);i.uploader=i.getInstance("Uploader",s),i.uploader.setPath(i.state.currentPath).setSource(i.state.currentSource).bind(i.browser,n,i.errorHandler),this.state.on(["change.currentPath","change.currentSource"],(()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)})),i.e.on("bindUploader.filebrowser",(e=>{i.uploader.bind(e,n,i.errorHandler)}))}proxyDialogEvents(e){["afterClose","beforeOpen"].forEach((t=>{e.dialog.events.on(e.dialog,t,(()=>{this.e.fire(t)}))}))}destruct(){this.isInDestruct||(super.destruct(),this.dialog.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}}function xe(e){return L.i.isElement(e)&&e.classList.contains(Se.prototype.getFullElName("item"))}(0,r.gn)([z.autobind],Ie.prototype,"status",null),(0,r.gn)([z.autobind],Ie.prototype,"open",null);class ze extends f.Hr{constructor(){super(...arguments),this.isBlocked=!1}className(){return"Snapshot"}static equal(e,t){return e.html===t.html&&JSON.stringify(e.range)===JSON.stringify(t.range)}static countNodesBeforeInParent(e){if(!e.parentNode)return 0;const t=e.parentNode.childNodes;let i,o=0,s=null;for(i=0;t.length>i;i+=1){if(!s||L.i.isText(t[i])&&""===t[i].textContent||L.i.isText(s)&&L.i.isText(t[i])||(o+=1),t[i]===e)return o;s=t[i]}return 0}static strokeOffset(e,t){for(;L.i.isText(e);)L.i.isText(e=e.previousSibling)&&null!=e.textContent&&(t+=e.textContent.length);return t}calcHierarchyLadder(e){const t=[];if(!e||!e.parentNode||!L.i.isOrContains(this.j.editor,e))return[];for(;e&&e!==this.j.editor;)e&&t.push(ze.countNodesBeforeInParent(e)),e=e.parentNode;return t.reverse()}getElementByLadder(e){let t,i=this.j.editor;for(t=0;i&&e.length>t;t+=1)i=i.childNodes[e[t]];return i}make(){const e={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};e.html=this.j.getNativeEditorValue();const t=this.j.s.sel;if(t&&t.rangeCount){const i=t.getRangeAt(0),o=this.calcHierarchyLadder(i.startContainer),s=this.calcHierarchyLadder(i.endContainer);let n=ze.strokeOffset(i.startContainer,i.startOffset),r=ze.strokeOffset(i.endContainer,i.endOffset);o.length||i.startContainer===this.j.editor||(n=0),s.length||i.endContainer===this.j.editor||(r=0),e.range={startContainer:o,startOffset:n,endContainer:s,endOffset:r}}return e}restore(e){this.isBlocked=!0;const t=this.storeScrollState();this.j.getNativeEditorValue()!==e.html&&(this.j.value=e.html),this.restoreOnlySelection(e),this.restoreScrollState(t),this.isBlocked=!1}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(e){const{j:t}=this,{ow:i}=t;i.scrollTo(i.scrollX,e[0]),t.editor.scrollTop=e[1]}restoreOnlySelection(e){try{if(e.range){const t=this.j.ed.createRange();t.setStart(this.getElementByLadder(e.range.startContainer),e.range.startOffset),t.setEnd(this.getElementByLadder(e.range.endContainer),e.range.endOffset),this.j.s.selectRange(t)}}catch(e){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild)}}destruct(){this.isBlocked=!1,super.destruct()}}class Te{constructor(e){this.size=e,this.commands=[],this.stackPosition=-1}get length(){return this.commands.length}clearRedo(){this.commands.length=this.stackPosition+1}clear(){this.commands.length=0,this.stackPosition=-1}push(e){this.clearRedo(),this.commands.push(e),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}replace(e){this.commands[this.stackPosition]=e}current(){return this.commands[this.stackPosition]}undo(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}redo(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}canUndo(){return this.stackPosition>=0}canRedo(){return this.commands.length-1>this.stackPosition}}class je{constructor(e,t,i,o){this.oldValue=e,this.newValue=t,this.history=i,this.tick=o}undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}}a.D.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3},a.D.prototype.observer=a.D.prototype.history;class Le extends f.Hr{constructor(e,t=new Te(e.o.history.maxHistoryLength),i=new ze(e)){super(e),this.updateTick=0,this.stack=t,this.snapshot=i,e.o.history.enable&&e.e.on("afterAddPlace.history",(()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),e.events.on("internalChange internalUpdate",(()=>{this.startValue=this.snapshot.make()})).on(e.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map((e=>e+".history")).join(" "),(()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())})).on(this,"change.history",this.onChange))}))}className(){return"History"}get startValue(){return this.__startValue}set startValue(e){this.__startValue=e}upTick(){this.updateTick+=1}onChange(){this.processChanges()}processChanges(){this.snapshot.isBlocked||this.updateStack()}updateStack(e=!1){const t=this.snapshot.make();if(!ze.equal(t,this.startValue)){const i=new je(this.startValue,t,this,this.updateTick);if(e){const e=this.stack.current();e&&this.updateTick===e.tick&&this.stack.replace(i)}else this.stack.push(i);this.startValue=t,this.fireChangeStack()}}redo(){this.stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.stack.canRedo()}undo(){this.stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.stack.clear(),this.fireChangeStack()}get length(){return this.stack.length}fireChangeStack(){var e;this.j&&!this.j.isInDestruct&&(null===(e=this.j.events)||void 0===e||e.fire("changeStack"))}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}}(0,r.gn)([(0,z.debounce)()],Le.prototype,"onChange",null);var Ae=i(43);let Me=class extends f.Hr{constructor(e,t){super(e),this.target=t,this.mods={},this.container=e.c.div("jodit-status-bar"),t.appendChild(this.container),this.hide()}className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}setMod(e,t){return T.$.setMod.call(this,e,t),this}getMod(e){return T.$.getMod.call(this,e)}getHeight(){var e,t;return null!==(t=null===(e=this.container)||void 0===e?void 0:e.offsetHeight)&&void 0!==t?t:0}findEmpty(e=!1){const t=T.F.getElms.call(this,e?"item-right":"item");for(let e=0;t.length>e;e+=1)if(!t[e].innerHTML.trim().length)return t[e]}append(e,t=!1){var i;const o=this.findEmpty(t)||this.j.c.div(this.getFullElName("item"));t&&o.classList.add(this.getFullElName("item-right")),o.appendChild(e),null===(i=this.container)||void 0===i||i.appendChild(o),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}destruct(){this.isInDestruct||(this.setStatus(f.n$.beforeDestruct),L.i.safeRemove(this.container),super.destruct())}};Me=(0,r.gn)([z.component],Me);const De=new WeakMap;class Pe extends f.Hr{constructor(){super(...arguments),this.selected=new Set}className(){return"Table"}recalculateStyles(){const e=(0,x.ZO)(this.j,Pe,"style",!0),t=[];this.selected.forEach((e=>{const i=(0,h.cssPath)(e);i&&t.push(i)})),e.innerHTML=t.length?t.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(e){this.selected.add(e),this.recalculateStyles();const t=L.i.closest(e,"table",this.j.editor);if(t){const i=Pe.selectedByTable.get(t)||new Set;i.add(e),Pe.selectedByTable.set(t,i)}}removeSelection(e){this.selected.delete(e),this.recalculateStyles();const t=L.i.closest(e,"table",this.j.editor);if(t){const i=Pe.selectedByTable.get(t);i&&(i.delete(e),i.size||Pe.selectedByTable.delete(t))}}getAllSelectedCells(){return(0,h.toArray)(this.selected)}static getSelectedCellsByTable(e){const t=Pe.selectedByTable.get(e);return t?(0,h.toArray)(t):[]}destruct(){return this.selected.clear(),super.destruct()}static getRowsCount(e){return e.rows.length}static getColumnsCount(e){return Pe.formalMatrix(e).reduce(((e,t)=>Math.max(e,t.length)),0)}static formalMatrix(e,t){const i=[[]],o=(0,h.toArray)(e.rows),s=(e,o)=>{void 0===i[o]&&(i[o]=[]);const s=e.colSpan,n=e.rowSpan;let r,a,l=0;for(;i[o][l];)l+=1;for(a=0;n>a;a+=1)for(r=0;s>r;r+=1){if(void 0===i[o+a]&&(i[o+a]=[]),t&&!1===t(e,o+a,l+r,s,n))return!1;i[o+a][l+r]=e}};for(let e=0;o.length>e;e+=1){const t=(0,h.toArray)(o[e].cells);for(let o=0;t.length>o;o+=1)if(!1===s(t[o],e))return i}return i}static formalCoordinate(e,t,i=!1){let o=0,s=0,n=1,r=1;return Pe.formalMatrix(e,((e,a,l,c,d)=>{if(t===e)return o=a,s=l,n=c||1,r=d||1,i&&(s+=(c||1)-1,o+=(d||1)-1),!1})),[o,s,n,r]}static appendRow(e,t,i,o){var s;let n;if(t)n=t.cloneNode(!0),(0,h.$$)("td,th",t).forEach((e=>{const t=(0,h.attr)(e,"rowspan");if(t&&parseInt(t,10)>1){const i=parseInt(t,10)-1;(0,h.attr)(e,"rowspan",i>1?i:null)}})),(0,h.$$)("td,th",n).forEach((e=>{e.innerHTML=""}));else{const t=Pe.getColumnsCount(e);n=o.element("tr");for(let e=0;t>e;e+=1)n.appendChild(o.element("td"))}i&&t&&t.nextSibling?t.parentNode&&t.parentNode.insertBefore(n,t.nextSibling):!i&&t?t.parentNode&&t.parentNode.insertBefore(n,t):((null===(s=e.getElementsByTagName("tbody"))||void 0===s?void 0:s[0])||e).appendChild(n)}static removeRow(e,t){const i=Pe.formalMatrix(e);let o;const s=e.rows[t];i[t].forEach(((n,r)=>{if(o=!1,0>t-1||i[t-1][r]!==n)if(i[t+1]&&i[t+1][r]===n){if(n.parentNode===s&&n.parentNode.nextSibling){o=!0;let s=r+1;for(;i[t+1][s]===n;)s+=1;const a=L.i.next(n.parentNode,(e=>L.i.isTag(e,"tr")),e);a&&(i[t+1][s]?a.insertBefore(n,i[t+1][s]):a.appendChild(n))}}else L.i.safeRemove(n);else o=!0;if(o&&(n.parentNode===s||n!==i[t][r-1])){const e=n.rowSpan;(0,h.attr)(n,"rowspan",e-1>1?e-1:null)}})),L.i.safeRemove(s)}static appendColumn(e,t,i,o){const s=Pe.formalMatrix(e);let n;for((void 0===t||0>t)&&(t=Pe.getColumnsCount(e)-1),n=0;s.length>n;n+=1){const e=o.element("td"),r=s[n][t];let a=!1;i?(s[n]&&r&&t+1>=s[n].length||r!==s[n][t+1])&&(r.nextSibling?L.i.before(r.nextSibling,e):r.parentNode&&r.parentNode.appendChild(e),a=!0):(0>t-1||s[n][t]!==s[n][t-1]&&s[n][t].parentNode)&&(L.i.before(s[n][t],e),a=!0),a||(0,h.attr)(s[n][t],"colspan",parseInt((0,h.attr)(s[n][t],"colspan")||"1",10)+1)}}static removeColumn(e,t){const i=Pe.formalMatrix(e);let o;i.forEach(((e,s)=>{const n=e[t];if(o=!1,0>t-1||i[s][t-1]!==n?e.length>t+1&&i[s][t+1]===n?o=!0:L.i.safeRemove(n):o=!0,o&&(0>s-1||n!==i[s-1][t])){const e=n.colSpan;(0,h.attr)(n,"colspan",e-1>1?""+(e-1):null)}}))}static getSelectedBound(e,t){const i=[[1/0,1/0],[0,0]],o=Pe.formalMatrix(e);let s,n,r;for(s=0;o.length>s;s+=1)for(n=0;o[s]&&o[s].length>n;n+=1)t.includes(o[s][n])&&(i[0][0]=Math.min(s,i[0][0]),i[0][1]=Math.min(n,i[0][1]),i[1][0]=Math.max(s,i[1][0]),i[1][1]=Math.max(n,i[1][1]));for(s=i[0][0];i[1][0]>=s;s+=1)for(r=1,n=i[0][1];i[1][1]>=n;n+=1){for(;o[s]&&o[s][n-r]&&o[s][n]===o[s][n-r];)i[0][1]=Math.min(n-r,i[0][1]),i[1][1]=Math.max(n-r,i[1][1]),r+=1;for(r=1;o[s]&&o[s][n+r]&&o[s][n]===o[s][n+r];)i[0][1]=Math.min(n+r,i[0][1]),i[1][1]=Math.max(n+r,i[1][1]),r+=1;for(r=1;o[s-r]&&o[s][n]===o[s-r][n];)i[0][0]=Math.min(s-r,i[0][0]),i[1][0]=Math.max(s-r,i[1][0]),r+=1;for(r=1;o[s+r]&&o[s][n]===o[s+r][n];)i[0][0]=Math.min(s+r,i[0][0]),i[1][0]=Math.max(s+r,i[1][0]),r+=1}return i}static normalizeTable(e){let t,i,o,s;const n=[],r=Pe.formalMatrix(e);for(i=0;r[0].length>i;i+=1){for(o=1e6,s=!1,t=0;r.length>t;t+=1)if(void 0!==r[t][i]){if(2>r[t][i].colSpan){s=!0;break}o=Math.min(o,r[t][i].colSpan)}if(!s)for(t=0;r.length>t;t+=1)void 0!==r[t][i]&&Pe.mark(r[t][i],"colspan",r[t][i].colSpan-o+1,n)}for(t=0;r.length>t;t+=1){for(o=1e6,s=!1,i=0;r[t].length>i;i+=1)if(void 0!==r[t][i]){if(2>r[t][i].rowSpan){s=!0;break}o=Math.min(o,r[t][i].rowSpan)}if(!s)for(i=0;r[t].length>i;i+=1)void 0!==r[t][i]&&Pe.mark(r[t][i],"rowspan",r[t][i].rowSpan-o+1,n)}for(t=0;r.length>t;t+=1)for(i=0;r[t].length>i;i+=1)void 0!==r[t][i]&&(r[t][i].hasAttribute("rowspan")&&1===r[t][i].rowSpan&&(0,h.attr)(r[t][i],"rowspan",null),r[t][i].hasAttribute("colspan")&&1===r[t][i].colSpan&&(0,h.attr)(r[t][i],"colspan",null),r[t][i].hasAttribute("class")&&!(0,h.attr)(r[t][i],"class")&&(0,h.attr)(r[t][i],"class",null));Pe.unmark(n)}static mergeSelected(e,t){const i=[],o=Pe.getSelectedBound(e,Pe.getSelectedCellsByTable(e));let s,n=0,r=null,a=0,c=0,d=0;const u=new Set,p=[];o&&(o[0][0]-o[1][0]||o[0][1]-o[1][1])&&(Pe.formalMatrix(e,((e,l,m,f,g)=>{if(!(o[0][0]>l||l>o[1][0]||o[0][1]>m||m>o[1][1])){if(s=e,u.has(s))return;u.add(s),l===o[0][0]&&s.style.width&&(n+=s.offsetWidth),""!==(0,h.trim)(e.innerHTML.replace(/<br(\/)?>/g,""))&&i.push(e.innerHTML),f>1&&(c+=f-1),g>1&&(d+=g-1),r?(Pe.mark(s,"remove",1,p),_e(t).removeSelection(s)):(r=e,a=m)}})),c=o[1][1]-o[0][1]+1,d=o[1][0]-o[0][0]+1,r&&(c>1&&Pe.mark(r,"colspan",c,p),d>1&&Pe.mark(r,"rowspan",d,p),n&&(Pe.mark(r,"width",(n/e.offsetWidth*100).toFixed(l.ACCURACY)+"%",p),a&&Pe.setColumnWidthByDelta(e,a,0,!0,p)),r.innerHTML=i.join("<br/>"),_e(t).addSelection(r),u.delete(r),Pe.unmark(p),Pe.normalizeTable(e),(0,h.toArray)(e.rows).forEach(((e,t)=>{e.cells.length||L.i.safeRemove(e)}))))}static splitHorizontal(e,t){let i,o,s,n,r;const a=[];Pe.getSelectedCellsByTable(e).forEach((l=>{o=t.createInside.element("td"),o.appendChild(t.createInside.element("br")),s=t.createInside.element("tr"),i=Pe.formalCoordinate(e,l),2>l.rowSpan?(Pe.formalMatrix(e,((e,t,o)=>{i[0]===t&&i[1]!==o&&e!==l&&Pe.mark(e,"rowspan",e.rowSpan+1,a)})),L.i.after(L.i.closest(l,"tr",e),s),s.appendChild(o)):(Pe.mark(l,"rowspan",l.rowSpan-1,a),Pe.formalMatrix(e,((t,o,s)=>{o>i[0]&&i[0]+l.rowSpan>o&&i[1]>s&&t.parentNode.rowIndex===o&&(r=t),o>i[0]&&t===l&&(n=e.rows[o])})),r?L.i.after(r,o):n.insertBefore(o,n.firstChild)),l.colSpan>1&&Pe.mark(o,"colspan",l.colSpan,a),Pe.unmark(a),_e(t).removeSelection(l)})),this.normalizeTable(e)}static splitVertical(e,t){let i,o,s;const n=[];Pe.getSelectedCellsByTable(e).forEach((r=>{i=Pe.formalCoordinate(e,r),2>r.colSpan?Pe.formalMatrix(e,((e,t,o)=>{i[1]===o&&i[0]!==t&&e!==r&&Pe.mark(e,"colspan",e.colSpan+1,n)})):Pe.mark(r,"colspan",r.colSpan-1,n),o=t.createInside.element("td"),o.appendChild(t.createInside.element("br")),r.rowSpan>1&&Pe.mark(o,"rowspan",r.rowSpan,n);const a=r.offsetWidth;L.i.after(r,o),s=a/e.offsetWidth/2,Pe.mark(r,"width",(100*s).toFixed(l.ACCURACY)+"%",n),Pe.mark(o,"width",(100*s).toFixed(l.ACCURACY)+"%",n),Pe.unmark(n),_e(t).removeSelection(r)})),Pe.normalizeTable(e)}static setColumnWidthByDelta(e,t,i,o,s){const n=Pe.formalMatrix(e);let r=0;for(let o=0;n.length>o;o+=1){const a=n[o][t];if(1>=a.colSpan||1>=n.length){Pe.mark(a,"width",((a.offsetWidth+i)/e.offsetWidth*100).toFixed(l.ACCURACY)+"%",s),r=o;break}}for(let e=r+1;n.length>e;e+=1)Pe.mark(n[e][t],"width",null,s);o||Pe.unmark(s)}static mark(e,t,i,o){var s;o.push(e);const n=null!==(s=De.get(e))&&void 0!==s?s:{};n[t]=void 0===i?1:i,De.set(e,n)}static unmark(e){e.forEach((e=>{const t=De.get(e);t&&(Object.keys(t).forEach((i=>{const o=t[i];switch(i){case"remove":L.i.safeRemove(e);break;case"rowspan":(0,h.attr)(e,"rowspan",(0,h.isNumber)(o)&&o>1?o:null);break;case"colspan":(0,h.attr)(e,"colspan",(0,h.isNumber)(o)&&o>1?o:null);break;case"width":null==o?(e.style.removeProperty("width"),(0,h.attr)(e,"style")||(0,h.attr)(e,"style",null)):e.style.width=""+o}delete t[i]})),De.delete(e))}))}}Pe.selectedByTable=new WeakMap,(0,r.gn)([(0,z.debounce)()],Pe.prototype,"recalculateStyles",null);const _e=e=>e.getInstance("Table",e.o),Re=new WeakMap;function Ne(e,t){const i=((e,t)=>{if((0,h.isFunction)(e.o.buildData))return e.o.buildData.call(e,t);const i=e.ow.FormData;if(void 0!==i){if(t instanceof i)return t;if((0,h.isString)(t))return t;const e=new i;return Object.keys(t).forEach((i=>{e.append(i,t[i])})),e}return t})(e,t),o=t=>{const i=new m(e.j,{xhr(){const 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),100>i||e.j.progressbar.hide()}}),!1)):e.j.progressbar.hide(),t},method:e.o.method||"POST",data:t,url:(0,h.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),dataType:e.o.format||"json",withCredentials:e.o.withCredentials||!1});let o=Re.get(e);return o||(o=new Set,Re.set(e,o)),o.add(i),i.send().then((e=>e.json())).catch((t=>{e.o.error.call(e,t)})).finally((()=>{null==o||o.delete(i)}))};return(0,h.isPromise)(i)?i.then(o).catch((t=>{e.o.error.call(e,t)})):o(i)}function qe(e,t,i,o,s){if(!t)return Promise.reject((0,h.error)("Need files"));const{o:n}=e;let r=(0,h.toArray)(t);if(!r.length)return Promise.reject((0,h.error)("Need files"));const a=[];if(n.insertImageAsBase64URI){let t,o;for(o=0;r.length>o;o+=1)if(t=r[o],t&&t.type){const s=t.type.match(/\/([a-z0-9]+)/i),l=s[1]?s[1].toLowerCase():"";if(n.imagesExtensions.includes(l)){const s=new FileReader;a.push(e.j.async.promise(((o,r)=>{s.onerror=r,s.onloadend=()=>{const t={baseurl:"",files:[s.result],isImages:[!0]};((0,h.isFunction)(i)?i:n.defaultHandlerSuccess).call(e,t),o(t)},s.readAsDataURL(t)}))),r[o]=null}}}if(r=r.filter((e=>e)),r.length){const t=new FormData;let l;t.append(n.pathVariableName,e.path),t.append("source",e.source);for(let i=0;r.length>i;i+=1)if(l=r[i],l){const o=/\.[\d\w]+$/.test(l.name),s=l.type.match(/\/([a-z0-9]+)/i),a=s&&s[1]?s[1].toLowerCase():"";let c=r[i].name||(""+Math.random()).replace(".","");if(!o&&a){let e=a;["jpeg","jpg"].includes(e)&&(e="jpeg|jpg"),RegExp(".("+e+")$","i").test(c)||(c+="."+a)}const[d,h,u]=n.processFileName.call(e,n.filesVariableName(i),r[i],c);t.append(d,h,u)}s&&s(t),n.data&&(0,h.isPlainObject)(n.data)&&Object.keys(n.data).forEach((e=>{t.append(e,n.data[e])})),n.prepareData.call(e,t),a.push(Ne(e,t).then((t=>n.isSuccess.call(e,t)?(((0,h.isFunction)(i)?i:n.defaultHandlerSuccess).call(e,n.process.call(e,t)),t):(((0,h.isFunction)(o)?o:n.defaultHandlerError).call(e,(0,h.error)(n.getMessage.call(e,t))),t))).then((()=>{e.j.events&&e.j.e.fire("filesWereUploaded")})))}return Promise.all(a)}function Be(e){return!!(e&&e.files&&e.files.length>0)}function He(e){return!!(e&&e.items&&e.items.length>0)}var Oe=i(9),Fe=i(46);a.D.prototype.enableDragAndDropFileToEditor=!0,a.D.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","png","jpeg","gif"],headers:null,data:null,filesVariableName(e){return`files[${e}]`},withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData(e){return e},isSuccess(e){return e.success},getMessage(e){return void 0!==e.data.messages&&(0,Oe.k)(e.data.messages)?e.data.messages.join(" "):""},processFileName(e,t,i){return[e,t,i]},process(e){return e.data},error(e){this.j.e.fire("errorMessage",e.message,"error",4e3)},defaultHandlerSuccess(e){const t=this.j||this;(0,Fe.Z)(t)&&e.files&&e.files.length&&e.files.forEach(((i,o)=>{const[s,n]=e.isImages&&e.isImages[o]?["img","src"]:["a","href"],r=t.createInside.element(s);r.setAttribute(n,e.baseurl+i),"a"===s&&(r.textContent=e.baseurl+i),"img"===s?t.s.insertImage(r,null,t.o.imageDefaultWidth):t.s.insertNode(r)}))},defaultHandlerError(e){this.j.e.fire("errorMessage",e.message)},contentType(e){return(void 0===this.ow.FormData||"string"==typeof e)&&"application/x-www-form-urlencoded; charset=UTF-8"}};class We extends f.Hr{constructor(e,t){super(e),this.path="",this.source="default",this.options=(0,h.ConfigProto)(t||{},(0,h.ConfigProto)(a.D.defaultOptions.uploader,(0,h.isJoditObject)(e)?e.o.uploader:{}))}get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(e){return this.path=e,this}setSource(e){return this.source=e,this}bind(e,t,i){const o=()=>{e.classList.remove("jodit_drag_hover")},s=this,n=e=>{let n,r,a;const c=e.clipboardData,d=e=>{r&&(e.append("extension",a),e.append("mimetype",r.type))};if(!l.IS_IE&&Be(c))return qe(s,c.files,t,i).finally(o),!1;if(He(c)){const{items:l}=c;for(n=0;l.length>n;n+=1)if("file"===l[n].kind&&"image/png"===l[n].type){if(r=l[n].getAsFile(),r){const e=r.type.match(/\/([a-z0-9]+)/i);a=e[1]?e[1].toLowerCase():"",qe(s,[r],t,i,d).finally(o)}e.preventDefault();break}}};s.j&&s.j.editor!==e?s.j.e.on(e,"paste",n):s.j.e.on("beforePaste",n),this.attachEvents(e,t,i,o)}attachEvents(e,t,i,o){const s=this;s.j.e.on(e,"dragend dragover dragenter dragleave drop",(e=>{e.preventDefault()})).on(e,"dragover",(t=>{(Be(t.dataTransfer)||He(t.dataTransfer))&&(e.classList.add("jodit_drag_hover"),t.preventDefault())})).on(e,"dragend dragleave",(t=>{e.classList.remove("jodit_drag_hover"),Be(t.dataTransfer)&&t.preventDefault()})).on(e,"drop",(n=>{e.classList.remove("jodit_drag_hover"),Be(n.dataTransfer)&&(n.preventDefault(),n.stopImmediatePropagation(),qe(s,n.dataTransfer.files,t,i).finally(o))}));const n=e.querySelector("input[type=file]");n&&s.j.e.on(n,"change",(()=>{qe(s,n.files,t,i).then((()=>{n.value="",/safari/i.test(navigator.userAgent)||(n.type="",n.type="file")})).finally(o)}))}uploadRemoteImage(e,t,i){const o=this,{o:s}=o,n=(0,h.isFunction)(i)?i:s.defaultHandlerError;Ne(o,{action:"fileUploadRemote",url:e}).then((e=>{s.isSuccess.call(o,e)?((0,h.isFunction)(t)?t:s.defaultHandlerSuccess).call(o,s.process.call(o,e)):n.call(o,(0,h.error)(s.getMessage.call(o,e)))})).catch((e=>n.call(o,e)))}destruct(){this.setStatus(f.n$.beforeDestruct);const e=Re.get(this);e&&(e.forEach((e=>{try{e.destruct()}catch(e){}})),e.clear()),super.destruct()}}const Ve="data-jodit-default-style-display",Ue="data-jodit-default-classes";class Jodit extends W{constructor(e,t){super(t,!0),this.isJodit=!0,this.commands=new Map,this.__selectionLocked=null,this.__wasReadOnly=!1,this.createInside=new J((()=>this.ed),this.o.createAttributes),this.editorIsActive=!1,this.__mode=l.MODE_WYSIWYG,this.__callChangeCount=0,this.isSilentChange=!1,this.elementToPlace=new Map;try{const t=(0,h.resolveElement)(e,this.o.shadowRoot||this.od);if(Jodit.isJoditAssigned(t))return t.component}catch(e){throw this.destruct(),e}this.setStatus(f.n$.beforeInit),this.id=(0,h.attr)((0,h.resolveElement)(e,this.o.shadowRoot||this.od),"id")||""+(new Date).getTime(),x.as[this.id]=this,this.storage=I.makeStorage(!0,this.id),this.attachEvents(t),this.e.on(this.ow,"resize",(()=>{this.e&&this.e.fire("resize")})),this.e.on("prepareWYSIWYGEditor",this.prepareWYSIWYGEditor),this.selection=new Ae.Ph(this);const i=this.beforeInitHook();(0,h.callPromise)(i,(()=>{this.e.fire("beforeInit",this);const i=x.pw.init(this);(0,h.callPromise)(i,(()=>{this.e.fire("afterPluginSystemInit",this),this.e.on("changePlace",(()=>{this.setReadOnly(this.o.readonly),this.setDisabled(this.o.disabled)})),this.places.length=0;const i=this.addPlace(e,t);x.as[this.id]=this,(0,h.callPromise)(i,(()=>{this.e&&this.e.fire("afterInit",this),this.afterInitHook(),this.setStatus(f.n$.ready),this.e.fire("afterConstructor",this)}))}))}))}className(){return"Jodit"}waitForReady(){return this.isReady?Promise.resolve(this):this.async.promise((e=>{this.hookStatus("ready",(()=>e(this)))}))}get text(){if(this.editor)return this.editor.innerText||"";const e=this.createInside.div();return e.innerHTML=this.getElementValue(),e.innerText||""}get defaultTimeout(){return(0,h.isNumber)(this.o.defaultTimeout)?this.o.defaultTimeout:a.D.defaultOptions.defaultTimeout}static atom(e){return(0,h.markAsAtomic)(e)}static make(e,t){return new Jodit(e,t)}static isJoditAssigned(e){return e&&(0,h.isJoditObject)(e.component)&&!e.component.isInDestruct}static get defaultOptions(){return a.D.defaultOptions}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 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 observer(){return this.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.setPlaceField("options",e)}get s(){return this.selection}get uploader(){return this.getInstance("Uploader",this.o.uploader)}get filebrowser(){const e=this,t=(0,h.ConfigProto)({defaultTimeout:e.defaultTimeout,uploader:e.o.uploader,language:e.o.language,license:e.o.license,theme:e.o.theme,defaultCallback(t){t.files&&t.files.length&&t.files.forEach(((i,o)=>{const s=t.baseurl+i;t.isImages&&t.isImages[o]?e.s.insertImage(s,null,e.o.imageDefaultWidth):e.s.insertNode(e.createInside.fromHTML(`<a href='${s}' title='${s}'>${s}</a>`))}))}},this.o.filebrowser);return e.getInstance("FileBrowser",t)}get mode(){return this.__mode}set mode(e){this.setMode(e)}getNativeEditorValue(){const e=this.e.fire("beforeGetNativeEditorValue");return(0,h.isString)(e)?e:this.editor?this.editor.innerHTML:this.getElementValue()}setNativeEditorValue(e){const 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.setEditorValue()}getEditorValue(e=!0,t){let i;if(i=this.e.fire("beforeGetValueFromEditor",t),void 0!==i)return i;i=this.getNativeEditorValue().replace(l.INVISIBLE_SPACE_REG_EXP(),""),e&&(i=i.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===i&&(i="");const o={value:i};return this.e.fire("afterGetValueFromEditor",o,t),o.value}setEditorValue(e){const t=this.e.fire("beforeSetValueToEditor",e);if(!1===t)return;if((0,h.isString)(t)&&(e=t),!this.editor)return void(void 0!==e&&this.__setElementValue(e));if(!(0,h.isString)(e)&&!(0,h.isVoid)(e))throw(0,h.error)("value must be string");void 0!==e&&this.getNativeEditorValue()!==e&&this.setNativeEditorValue(e),this.e.fire("postProcessSetEditorValue");const i=this.getElementValue(),o=this.getEditorValue();if(!this.isSilentChange&&i!==o&&l.SAFE_COUNT_CHANGE_CALL>this.__callChangeCount){this.__setElementValue(o),this.__callChangeCount+=1;try{this.history.upTick(),this.e.fire("change",o,i),this.e.fire(this.history,"change",o,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){const t=this.getElementValue();return(void 0===e||(0,h.isString)(e)&&e!==t)&&(null!=e||(e=t),e!==this.getEditorValue()&&this.setEditorValue(e)),this.__setElementValue(e)}__setElementValue(e){if(!(0,h.isString)(e))throw(0,h.error)("value must be string");if(this.element!==this.container&&e!==this.getElementValue()){const t={value:e},i=this.e.fire("beforeSetElementValue",t);(0,h.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){const o=e.toLowerCase();let s=this.commands.get(o);if(void 0===s&&(s=[],this.commands.set(o,s)),s.push(t),!(0,h.isFunction)(t)){const s=this.o.commandToHotkeys[o]||this.o.commandToHotkeys[e]||t.hotkeys;s&&this.registerHotkeyToCommand(s,o,null==i?void 0:i.stopPropagation)}return this}registerHotkeyToCommand(e,t,i=!0){const o=(0,h.asArray)(e).map(h.normalizeKeyAliases).map((e=>e+".hotkey")).join(" ");this.e.off(o).on(o,((e,o)=>(o&&(o.shouldStop=null==i||i),this.execCommand(t))))}execCommand(e,t=!1,i=null){if(this.s.isFocused()||this.s.focus(),this.o.readonly&&"selectall"!==e)return;let o;if(e=e.toLowerCase(),o=this.e.fire("beforeCommand",e,t,i),!1!==o&&(o=this.execCustomCommands(e,t,i)),!1!==o)if(this.s.focus(),"selectall"===e)this.s.select(this.editor,!0),this.s.expandSelection();else try{o=this.nativeExecCommand(e,t,i)}catch(e){}return this.e.fire("afterCommand",e,t,i),this.setEditorValue(),o}nativeExecCommand(e,t=!1,i=null){this.isSilentChange=!0;try{return this.ed.execCommand(e,t,i)}finally{this.isSilentChange=!1}}execCustomCommands(e,t=!1,i=null){e=e.toLowerCase();const o=this.commands.get(e);if(void 0!==o){let s;return o.forEach((o=>{let n;n=(0,h.isFunction)(o)?o:o.exec;const r=n.call(this,e,t,i);void 0!==r&&(s=r)})),s}}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()===l.MODE_WYSIWYG}getRealMode(){if(this.getMode()!==l.MODE_SPLIT)return this.getMode();const e=this.od.activeElement;return e&&(e===this.iframe||L.i.isOrContains(this.editor,e)||L.i.isOrContains(this.toolbar.container,e))?l.MODE_WYSIWYG:l.MODE_SOURCE}setMode(e){const t=this.getMode(),i={mode:parseInt(""+e,10)},o=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",i)&&(this.__mode=[l.MODE_SOURCE,l.MODE_WYSIWYG,l.MODE_SPLIT].includes(i.mode)?i.mode:l.MODE_WYSIWYG,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),o.forEach((e=>{this.container.classList.remove(e)})),this.container.classList.add(o[this.mode-1]),t!==this.getMode()&&this.e.fire("afterSetMode"))}toggleMode(){let e=this.getMode();[l.MODE_SOURCE,l.MODE_WYSIWYG,this.o.useSplitMode?l.MODE_SPLIT:9].includes(e+1)?e+=1:e=l.MODE_WYSIWYG,this.setMode(e)}setDisabled(e){this.o.disabled=e;const t=this.__wasReadOnly;this.setReadOnly(e||t),this.__wasReadOnly=t,this.editor&&(this.editor.setAttribute("aria-disabled",""+e),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}beforeInitHook(){}afterInitHook(){}initOptions(e){this.options=(0,h.ConfigProto)(e||{},a.D.defaultOptions)}initOwners(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}addPlace(e,t){const i=(0,h.resolveElement)(e,this.o.shadowRoot||this.od);this.attachEvents(t),i.attributes&&(0,h.toArray)(i.attributes).forEach((e=>{const i=e.name;let o=e.value;void 0===a.D.defaultOptions[i]||t&&void 0!==t[i]||(-1!==["readonly","disabled"].indexOf(i)&&(o=""===o||"true"===o),/^[0-9]+(\.)?([0-9]+)?$/.test(""+o)&&(o=Number(o)),this.options[i]=o)}));let o=this.c.div("jodit-container");o.classList.add("jodit"),o.classList.add("jodit-container"),o.classList.add("jodit_theme_"+(this.o.theme||"default"));const{styleValues:s}=this.o;Object.keys(s).forEach((e=>{const t=(0,h.kebabCase)(e);o.style.setProperty("--jd-"+t,s[e])})),o.setAttribute("contenteditable","false");let n=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(i.nodeName)&&(o=i,i.setAttribute(Ue,""+i.className),n=o.innerHTML,o.innerHTML=""),o.classList.add("jodit_inline"),o.classList.add("jodit-container")),i!==o&&(i.style.display&&i.setAttribute(Ve,i.style.display),i.style.display="none");const r=this.c.div("jodit-workplace",{contenteditable:!1});o.appendChild(r),i.parentNode&&i!==o&&i.parentNode.insertBefore(o,i),Object.defineProperty(i,"component",{enumerable:!1,configurable:!0,value:this});const l=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});r.appendChild(l);const c={editor:l,element:i,container:o,workplace:r,statusbar:new Me(this,o),options:this.isReady?(0,h.ConfigProto)(t||{},a.D.defaultOptions):this.options,history:new Le(this),editorWindow:this.ow};this.elementToPlace.set(l,c),this.setCurrentPlace(c),this.places.push(c),this.setNativeEditorValue(this.getElementValue());const d=this.initEditor(n),u=this.options;return(0,h.callPromise)(d,(()=>{u.enableDragAndDropFileToEditor&&u.uploader&&(u.uploader.url||u.uploader.insertImageAsBase64URI)&&this.uploader.bind(this.editor),this.elementToPlace.get(this.editor)||this.elementToPlace.set(this.editor,c),this.e.fire("afterAddPlace",c)}))}addDisclaimer(e){this.workplace.appendChild(e)}setCurrentPlace(e){this.currentPlace!==e&&(this.isEditorMode()||this.setMode(l.MODE_WYSIWYG),this.currentPlace=e,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",e))}initEditor(e){const t=this.createEditor();return(0,h.callPromise)(t,(()=>{if(this.isInDestruct)return;if(this.element!==this.container){const e=this.getElementValue();e!==this.getEditorValue()&&this.setEditorValue(e)}else null!=e&&this.setEditorValue(e);let t=this.o.defaultMode;if(this.o.saveModeInStorage){const 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(e){}try{this.ed.execCommand("enableObjectResizing",!1,"false")}catch(e){}try{this.ed.execCommand("enableInlineTableEditing",!1,"false")}catch(e){}}))}createEditor(){const e=this.editor,t=this.e.fire("createEditor",this);return(0,h.callPromise)(t,(()=>{if(!this.isInDestruct){if((!1===t||(0,h.isPromise)(t))&&L.i.safeRemove(e),this.o.editorCssClass&&this.editor.classList.add(this.o.editorCssClass),this.o.style&&(0,h.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.direction){const e="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.container.style.direction=e,this.container.setAttribute("dir",e),this.toolbar.setDirection(e)}this.o.triggerChangeEvent&&this.e.on("change",this.async.debounce((()=>{this.e&&this.e.fire(this.element,"change")}),this.defaultTimeout))}}))}prepareWYSIWYGEditor(){const{editor:e}=this;if(this.o.direction){const e="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=e,this.editor.setAttribute("dir",e)}this.e.on(e,"mousedown touchstart focus",(()=>{const 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()}}))}destruct(){if(this.isInDestruct)return;if(this.setStatus(f.n$.beforeDestruct),this.elementToPlace.clear(),!this.editor)return;const e=this.getEditorValue();this.storage.clear(),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),this.places.forEach((({container:t,workplace:i,statusbar:o,element:s,iframe:n,editor:r,history:a})=>{if(s!==t)if(s.hasAttribute(Ve)){const e=(0,h.attr)(s,Ve);e&&(s.style.display=e,s.removeAttribute(Ve))}else s.style.display="";else s.hasAttribute(Ue)&&(s.className=(0,h.attr)(s,Ue)||"",s.removeAttribute(Ue));s.hasAttribute("style")&&!(0,h.attr)(s,"style")&&s.removeAttribute("style"),o.destruct(),this.e.off(t),this.e.off(s),this.e.off(r),L.i.safeRemove(i),L.i.safeRemove(r),t!==s&&L.i.safeRemove(t),Object.defineProperty(s,"component",{enumerable:!1,configurable:!0,value:null}),L.i.safeRemove(n),t===s&&(s.innerHTML=e),a.destruct()})),this.places.length=0,this.currentPlace={},delete x.as[this.id],super.destruct()}}Jodit.fatMode=!1,Jodit.plugins=x.pw,Jodit.modules=x.qz,Jodit.ns=x.qz,Jodit.decorators={},Jodit.constants=l,Jodit.instances=x.as,Jodit.lang=l.lang,Jodit.core={Plugin:K},(0,r.gn)([z.cache],Jodit.prototype,"uploader",null),(0,r.gn)([z.cache],Jodit.prototype,"filebrowser",null),(0,r.gn)([(0,z.throttle)()],Jodit.prototype,"synchronizeValues",null),(0,r.gn)([(0,z.watch)(":internalChange")],Jodit.prototype,"updateElementValue",null),(0,r.gn)([z.autobind],Jodit.prototype,"prepareWYSIWYGEditor",null);const Ye=i(78);let $e={en:Ye};{const e=i(79),t=i(80),o=i(81),s=i(82),n=i(83),r=i(84),a=i(85),l=i(86),c=i(87),d=i(88),h=i(89),u=i(90),p=i(91),m=i(92),f=i(93),g=i(94),v=i(95),b=i(96);$e={ar:e,cs_cz:t,de:o,en:Ye,es:s,fr:n,he:r,hu:a,id:l,it:c,ja:d,ko:h,nl:u,pl:p,pt_br:m,ru:f,tr:g,zh_cn:v,zh_tw:b}}const Ge=e=>e.default||e,Ke={};(0,b.kJ)(Ge(Ye))&&Ge(Ye).forEach(((e,t)=>{Ke[t]=e})),Object.keys($e).forEach((e=>{const t=Ge($e[e]);(0,b.kJ)(t)&&($e[e]={},t.forEach(((t,i)=>{$e[e][Ke[i]]=t})))}));var Je=$e;a.D.prototype.addNewLine=!0,a.D.prototype.addNewLineOnDBLClick=!0,a.D.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],a.D.prototype.addNewLineDeltaShow=20;const Xe="addnewline";class Ze extends K{constructor(){super(...arguments),this.line=this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n("Break")}" class="jodit-add-new-line"><span>${A.JO.get("enter")}</span></div>`),this.isMatchedTag=e=>!(!e||!this.j.o.addNewLineTagsTriggers.includes(e.nodeName.toLowerCase())),this.preview=!1,this.lineInFocus=!1,this.isShown=!1,this.hideForce=()=>{this.isShown&&(this.isShown=!1,this.j.async.clearTimeout(this.timeout),this.lineInFocus=!1,L.i.safeRemove(this.line),this.line.style.setProperty("--jd-offset-handle","0"))},this.canGetFocus=e=>null!=e&&L.i.isBlock(e)&&!/^(img|table|iframe|hr)$/i.test(e.nodeName),this.onClickLine=e=>{const t=this.j,i=t.createInside.element(t.o.enter);this.preview&&this.current&&this.current.parentNode?this.current===t.editor?L.i.prepend(t.editor,i):this.current.parentNode.insertBefore(i,this.current):t.editor.appendChild(i),t.s.setCursorIn(i),(0,h.scrollIntoViewIfNeeded)(i,t.editor,t.ed),t.e.fire("synchro"),this.hideForce(),e.preventDefault()}}show(){this.isShown||this.j.o.readonly||this.j.isLocked||(this.isShown=!0,this.j.async.clearTimeout(this.timeout),this.line.classList.toggle("jodit-add-new-line_after",!this.preview),this.j.container.appendChild(this.line),this.line.style.width=this.j.editor.clientWidth+"px")}onLock(e){e&&this.isShown&&this.hideForce()}hide(){this.isShown&&!this.lineInFocus&&(this.timeout=this.j.async.setTimeout(this.hideForce,{timeout:500,label:"add-new-line-hide"}))}afterInit(e){e.o.addNewLine&&(e.e.on(this.line,"mousemove",(e=>{e.stopPropagation()})).on(this.line,"mousedown touchstart",this.onClickLine).on("change",this.hideForce).on(this.line,"mouseenter",(()=>{this.j.async.clearTimeout(this.timeout),this.lineInFocus=!0})).on(this.line,"mouseleave",(()=>{this.lineInFocus=!1})).on("changePlace",this.addEventListeners.bind(this)),this.addEventListeners())}addEventListeners(){const e=this.j;e.e.off(e.editor,"."+Xe).off(e.container,"."+Xe).on([e.ow,e.ew,e.editor],"scroll."+Xe,this.hideForce).on(e.editor,"click."+Xe,this.hide).on(e.container,"mouseleave."+Xe,this.hide).on(e.editor,"mousemove."+Xe,this.onMouseMove)}onDblClickEditor(e){const t=this.j;if(!t.o.readonly&&t.o.addNewLineOnDBLClick&&e.target===t.editor&&t.s.isCollapsed()){const i=(0,h.offset)(t.editor,t,t.ed),o=e.pageY-t.ew.pageYOffset,s=t.createInside.element(t.o.enter);Math.abs(o-(i.height+i.top))>Math.abs(o-i.top)&&t.editor.firstChild?t.editor.insertBefore(s,t.editor.firstChild):t.editor.appendChild(s),t.s.setCursorIn(s),t.synchronizeValues(),this.hideForce(),e.preventDefault()}}onMouseMove(e){const t=this.j;let i=t.ed.elementFromPoint(e.clientX,e.clientY);if(!L.i.isHTMLElement(i)||L.i.isOrContains(this.line,i))return;if(!L.i.isOrContains(t.editor,i))return;if(t.editor===i||this.isMatchedTag(i)||(i=L.i.closest(i,this.isMatchedTag,t.editor)),!i)return void this.hide();if(this.isMatchedTag(i)){const e=L.i.up(i,L.i.isBlock,t.editor);e&&e!==t.editor&&(i=e)}const o=(0,h.position)(i,this.j);let s=!1,{clientY:n}=e;if(this.j.iframe){const{top:e}=(0,h.position)(this.j.iframe,this.j,!0);n+=e}const r=this.j.o.addNewLineDeltaShow;Math.abs(n-o.top)>r||(s=o.top,this.preview=!0),Math.abs(n-(o.top+o.height))>r||(s=o.top+o.height,this.preview=!1),!1===s||(t.editor!==i||this.preview)&&(0,h.call)(this.preview?L.i.prev:L.i.next,i,this.canGetFocus,t.editor)?(this.current=!1,this.hide()):(this.line.style.top=s+"px",this.current=i,this.show(),this.line.style.setProperty("--jd-offset-handle",e.clientX-o.left-10+"px"))}beforeDestruct(){this.j.async.clearTimeout(this.timeout),this.j.e.off(this.line).off("changePlace",this.addEventListeners),L.i.safeRemove(this.line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+Xe).off(this.j.container,"."+Xe)}}function Qe(e){e.registerButton({name:"about",group:"info"})}function et(e){e.o.saveSelectionOnBlur&&e.e.on("blur",(()=>{e.isEditorMode()&&e.s.save(!0)})).on("focus",(()=>{e.s.restore()}));const t=()=>{if(e.s.focus(),"end"===e.o.cursorAfterAutofocus){const t=L.i.last(e.editor,(e=>L.i.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&&L.i.isBlock(t.target)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))}))}))}(0,r.gn)([(0,z.watch)(":lock")],Ze.prototype,"onLock",null),(0,r.gn)([z.autobind],Ze.prototype,"hide",null),(0,r.gn)([(0,z.watch)(":dblclick")],Ze.prototype,"onDblClickEditor",null),(0,r.gn)([(0,z.debounce)((e=>5*e.defaultTimeout))],Ze.prototype,"onMouseMove",null),a.D.prototype.controls.about={exec(e){const t=new V({language:e.o.language}),i=e.i18n.bind(e);t.setMod("theme",e.o.theme).setHeader(i("About Jodit")).setContent(`<div class="jodit-about">\n\t\t\t\t\t<div>${i("Jodit Editor")} v.${e.getVersion()}</div>\n\t\t\t\t\t<div>${i("License: %s",(0,h.isLicense)(e.o.license)?(0,h.normalizeLicense)(e.o.license):"MIT")}</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="https://xdsoft.net/jodit/" target="_blank">https://xdsoft.net/jodit/</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="https://xdsoft.net/jodit/doc/" target="_blank">${i("Jodit User's Guide")}</a>\n\t\t\t\t\t\t${i("contains detailed help for using")}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>${i("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.")}</div>\n\t\t\t\t</div>`),(0,h.css)(t.dialog,{minHeight:200,minWidth:420}),t.open(!0).bindDestruct(e)},tooltip:"About Jodit",mode:l.MODE_SOURCE+l.MODE_WYSIWYG},a.D.prototype.autofocus=!1,a.D.prototype.cursorAfterAutofocus="end",a.D.prototype.saveSelectionOnBlur=!0,a.D.prototype.controls.classSpan={command:"applyClassName",icon:i(97),exec:h.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(e,t){const i=e.s.current();if(i){const o=L.i.closest(i,L.i.isElement,e.editor)||e.editor;return!(!t.args||!o.classList.contains(""+t.args[0]))}return!1},isActive(e,t){const i=e.s.current();if(i){const o=L.i.closest(i,L.i.isElement,e.editor)||e.editor;let s=!1;return t.list&&Object.keys(t.list).forEach((e=>{o.classList.contains(e)&&(s=!0)})),!(!o||o===e.editor||void 0===t.list||!s)}return!1},childTemplate:(e,t,i)=>`<span class="${t}">${e.i18n(i)}</span>`,tooltip:"Insert className"};class tt extends K{constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"font"}]}afterInit(e){e.registerCommand("applyClassName",((t,i,o)=>(e.s.applyStyle(void 0,{className:o}),!1)))}beforeDestruct(){}}var it=i(29),ot=i(64);function st(e,t,i){return(0,it.RE)(t?L.i.prev:L.i.next,e,(e=>!(!e||L.i.isText(e)&&!(0,ot.fy)((null==e?void 0:e.nodeValue)||"").length)),i)}function nt(e,t){return L.i.findSibling(e,t,(e=>{var t;return!L.i.isEmptyTextNode(e)&&!!(!L.i.isText(e)||(null===(t=e.nodeValue)||void 0===t?void 0:t.length)&&(0,ot.fy)(e.nodeValue))}))}function rt(e,t,i,o=!1){const s=e=>t?e.firstChild:e.lastChild;let n=st(e,!t,i);if(o&&L.i.isElement(n)&&!L.i.isInlineBlock(n))return null;if(n)do{if(!s(n))return n;n=s(n)}while(n);return null}function at(e,t,i){const o=L.i.findSibling(t,i),s=L.i.findSibling(t,!i);if(!L.i.closest(t,L.i.isElement,e.editor)&&L.i.isTag(o,["ul","ol"])&&L.i.isTag(s,["ul","ol"])&&L.i.isTag(o.lastElementChild,"li")&&L.i.isTag(s.firstElementChild,"li")){const{setCursorBefore:n,setCursorAfter:r}=e.s,a=o.lastElementChild;return(0,h.call)(i?L.i.prepend:L.i.append,s.firstElementChild,t),L.i.moveContent(s,o,!i),L.i.safeRemove(s),(0,h.call)(i?L.i.append:L.i.prepend,a,t),(0,h.call)(i?n:r,t),!0}return!1}function lt(e,t,i){let o=!1;const{setCursorBefore:s,setCursorIn:n}=e.s;let r=L.i.closest(t,L.i.isElement,e.editor);if(!r||!L.i.isEmpty(r))return!1;const a=st(t,i,e.editor);do{if(!r||!L.i.isEmpty(r)||L.i.isCell(r))break;{L.i.after(r,t);const i=L.i.closest(r,(e=>L.i.isElement(e)&&e!==r),e.editor);L.i.safeRemove(r),o=!0,r=i}}while(r);return!(!o||!at(e,t,i))||(!a||L.i.isText(a)||L.i.isTag(a,l.INSEPARABLE_TAGS)?s(t):n(a,!i),o)}var ct=i(56);function dt(e,t,i,o){if(t&&L.i.isElement(i)){L.i.moveContent(t,i,!o);let s=t;for(;s&&s!==e.editor&&L.i.isEmpty(s);){const e=s.parentElement;L.i.safeRemove(s),s=e}return!0}return!1}const ht=[(e,t,i)=>{const o=L.i.findSibling(t,i);return!(!L.i.isElement(o)||!L.i.isTag(o,l.INSEPARABLE_TAGS)&&!L.i.isEmpty(o)||(L.i.safeRemove(o),e.s.setCursorBefore(t),L.i.isTag(o,"br")&<(e,t,i),0))},(e,t,i)=>{let o=L.i.findSibling(t,i);return!o&&t.parentElement&&t.parentElement!==e.editor&&(o=L.i.findSibling(t.parentElement,i)),!(!L.i.isElement(o)||L.i.isContentEditable(o,e.editor)||((0,h.call)(i?L.i.before:L.i.after,o,t),L.i.safeRemove(o),(0,ct.F)(e,t,i),(0,h.call)(i?e.s.setCursorBefore:e.s.setCursorAfter,t),0))},function e(t,i,o,s){var n,r,a;const c=o?-1:1,d=L.i.sibling(i,!o);let u,p=L.i.sibling(i,o),m=null,f=!1;for(;p&&(L.i.isText(p)||L.i.isInlineBlock(p));){for(;L.i.isInlineBlock(p);)p=o?null==p?void 0:p.lastChild:null==p?void 0:p.firstChild;if(!p)break;if(null===(n=p.nodeValue)||void 0===n?void 0:n.length){let e=(0,h.toArray)(p.nodeValue);const t=e.length;let i=o?t-1:0;if(e[i]===l.INVISIBLE_SPACE)for(;e[i]===l.INVISIBLE_SPACE;)i+=c;if(u=e[i],e[i+c]===l.INVISIBLE_SPACE){for(i+=c;e[i]===l.INVISIBLE_SPACE;)i+=c;i+=o?1:-1}if(e=o&&0>i?[]:e.slice(o?0:i+1,o?i:t),!d||!L.i.isText(d)||(o?/^ /:/ $/).test(null!==(r=d.nodeValue)&&void 0!==r?r:"")||!(0,h.trimInv)(d.nodeValue||"").length)for(let t=o?e.length-1:0;(o?t>=0:e.length>t)&&" "===e[t];t+=o?-1:1)e[t]=l.NBSP_SPACE;p.nodeValue=e.join("")}if((null===(a=p.nodeValue)||void 0===a?void 0:a.length)||(m=p),!(0,h.isVoid)(u)&&u!==l.INVISIBLE_SPACE){f=!0,(0,h.call)(o?L.i.after:L.i.before,p,i),("sentence"===s||"word"===s&&" "!==u&&u!==l.NBSP_SPACE)&&e(t,i,o,s);break}let g=L.i.sibling(p,o);!g&&p.parentNode&&p.parentNode!==t.editor&&(g=rt(p,!o,t.editor,!0)),m&&(L.i.safeRemove(m),m=null),p=g}return f&&((e=>{let t=e.parentElement;for(;t&&L.i.isInlineBlock(t);){const i=t.parentElement;L.i.isEmpty(t)&&(L.i.after(t,e),L.i.safeRemove(t)),t=i}})(i),((e,t)=>{t.parentElement!==e.editor&&L.i.isBlock(t.parentElement)&&L.i.each(t.parentElement,L.i.isEmptyTextNode)&&L.i.after(t,e.createInside.element("br"))})(t,i),t.s.setCursorBefore(i)),f},(e,t)=>!!L.i.isCell(t.parentElement),lt,(e,t,i)=>{const o=L.i.closest(t,L.i.isElement,e.editor);if(!o)return!1;const s=nt(o,i);return!(!s||!L.i.isEmpty(s)||(L.i.safeRemove(s),e.s.setCursorBefore(t),0))},at,(e,t,i)=>{let o=t,s=o;for(;o&&!nt(o,i)&&o.parentElement!==e.editor;)o=o.parentElement,s=o;if(L.i.isElement(s)&&L.i.isContentEditable(s,e.editor)){const o=nt(s,i);if(o&&(((e,t,i,o)=>{const s=L.i.isTag(i,["ol","ul"]),n=L.i.isTag(t,["ol","ul"]),r=(e,t)=>t?e.firstElementChild:e.lastElementChild;return n?(i=e.createInside.element(e.o.enterBlock),L.i.before(t,i),dt(e,r(t,o),i,o)):!(!i||!s||n)&&dt(e,t,r(i,!o),o)})(e,s,o,i)||dt(e,s,o,i)))return e.s.setCursorBefore(t),!0}return!1},(e,t,i)=>{var o;const s=L.i.closest(t,L.i.isElement,e.editor),{s:n}=e;if(L.i.isTag(s,"li")&&(null===(o=null==s?void 0:s.parentElement)||void 0===o?void 0:o[i?"firstElementChild":"lastElementChild"])===s&&n.cursorInTheEdge(i,s)){const o=s.parentElement,r=e.createInside.element(e.o.enterBlock);return(0,it.RE)(i?L.i.before:L.i.after,o,r),L.i.moveContent(s,r),L.i.safeRemove(s),L.i.isEmpty(o)&&L.i.safeRemove(o),(0,it.RE)(i?n.setCursorBefore:n.setCursorAfter,t),!0}return!1}];a.D.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}};class ut extends K{constructor(){super(...arguments),this.requires=["hotkeys"]}afterInit(e){e.e.on("afterCommand.delete",(e=>{"delete"===e&&this.afterDeleteCommand()})),e.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:e.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:e.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:e.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:e.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:e.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:e.o.delete.hotkeys.backspaceSentence})}beforeDestruct(e){e.e.off("afterCommand.delete")}afterDeleteCommand(){const e=this.j,t=e.s.current();if(t&&L.i.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!((0,h.trim)(e.editor.textContent||"")||e.editor.querySelector("img")||t&&L.i.closest(t,"table",e.editor))){e.editor.innerHTML="";const t=e.s.setCursorIn(e.editor);e.s.removeNode(t)}}onDelete(e,t="char"){const i=this.j,o=i.selection;if(o.isFocused()||o.focus(),(e=>!e.s.isCollapsed()&&(e.execCommand("Delete"),!0))(i))return!1;const s=o.range,n=i.createInside.text(l.INVISIBLE_SPACE);try{if(s.insertNode(n),!L.i.isOrContains(i.editor,n))return;if((0,ct.F)(i,n,e),ht.some((o=>(0,h.isFunction)(o)&&o(i,n,e,t))))return!1}catch(e){throw e}finally{this.safeRemoveEmptyNode(n)}return!1}safeRemoveEmptyNode(e){var t,i;const{range:o}=this.j.s;o.startContainer===e&&(e.previousSibling?L.i.isText(e.previousSibling)?o.setStart(e.previousSibling,null!==(i=null===(t=e.previousSibling.nodeValue)||void 0===t?void 0:t.length)&&void 0!==i?i:0):o.setStartAfter(e.previousSibling):e.nextSibling&&(L.i.isText(e.nextSibling)?o.setStart(e.nextSibling,0):o.setStartBefore(e.nextSibling)),o.collapse(!0),this.j.s.selectRange(o)),L.i.safeRemove(e)}}function pt(e){const t=t=>{const i=a.D.defaultOptions.controls[t],o={...i.css},s={};return Object.keys(o).forEach((e=>{s[e]=(0,h.isArray)(o[e])?o[e][0]:o[e]})),e.s.applyStyle(s,{element:i.tags?i.tags[0]:void 0}),e.e.fire("synchro"),!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})}a.D.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},a.D.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},a.D.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},a.D.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},a.D.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},a.D.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"};var mt=i(62),ft=i(48);function gt(e){const t=/([^[]*)\[([^\]]+)]/,i=/[\s]*,[\s]*/,o=/^(.*)[\s]*=[\s]*(.*)$/,s={};return(0,h.isString)(e)?(e.split(i).map((e=>{e=(0,h.trim)(e);const n=t.exec(e),r={},a=e=>{e=(0,h.trim)(e);const t=o.exec(e);t?r[t[1]]=t[2]:r[e]=!0};if(n){const e=n[2].split(i);n[1]&&(e.forEach(a),s[n[1].toUpperCase()]=r)}else s[e.toUpperCase()]=!0})),s):!!e&&(Object.keys(e).forEach((t=>{s[t.toUpperCase()]=e[t]})),s)}var vt=i(42);function bt(e,t){const{s:i}=e;let o=t;o||(o=e.createInside.fake(),i.range.insertNode(o),i.range.collapse());const s=vt.i.furthest(o,yt,e.editor);if(s)if(i.cursorOnTheLeft(s))vt.i.before(s,o);else if(i.cursorOnTheRight(s))vt.i.after(s,o);else{const e=i.splitSelection(s);e&&vt.i.after(e,o)}t||(i.setCursorBefore(o),vt.i.safeRemove(o))}function yt(e){return vt.i.isInlineBlock(e)&&!vt.i.isTag(e,l.INSEPARABLE_TAGS)}function wt(e,t,i){const o=((e,t,i)=>{if(!i||!vt.i.isHTMLElement(t))return t;const o=i[t.nodeName.toLowerCase()]||i[t.nodeName];return o?vt.i.replace(t,o,e.createInside,!0,!1):t})(e,t,e.o.cleanHTML.replaceOldTags);return t!==o?(t=o,!0):i}function Ct(e,t,i,o){if(o&&vt.i.isElement(t)&&!0!==o[t.nodeName]){const e=t.attributes;if(e&&e.length){const s=[];for(let i=0;e.length>i;i+=1){const n=o[t.nodeName][e[i].name];(!n||!0!==n&&n!==e[i].value)&&s.push(e[i].name)}s.length&&(i=!0),s.forEach((e=>{t.removeAttribute(e)}))}}return i}function kt(e,t,i){if(e.o.cleanHTML.fillEmptyParagraph&&vt.i.isBlock(t)&&vt.i.isEmpty(t,/^(img|svg|canvas|input|textarea|form|br)$/)){const i=e.createInside.element("br");return t.appendChild(i),!0}return i}var St=i(61);function Et(e,t,i,o,s,n){return((e,t,i,o,s)=>!(vt.i.isText(t)||!(o&&!o[t.nodeName]||s&&s[t.nodeName]))||e.o.cleanHTML.removeEmptyElements&&vt.i.isElement(t)&&null!=t.nodeName.match(l.IS_INLINE)&&!vt.i.isTemporary(t)&&0===(0,St.f)(t.innerHTML).length&&(null==i||!vt.i.isOrContains(t,i)))(e,t,n,o,s)?(vt.i.safeRemove(t),!0):i}function It(e,t,i,o,s,n){return n&&vt.i.isText(t)&&null!=t.nodeValue&&(0,l.INVISIBLE_SPACE_REG_EXP)().test(t.nodeValue)&&0!==t.nodeValue.replace((0,l.INVISIBLE_SPACE_REG_EXP)(),"").length?(t.nodeValue=t.nodeValue.replace((0,l.INVISIBLE_SPACE_REG_EXP)(),""),t===n&&e.s.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||vt.i.safeRemove(t),!0):i}function xt(e,t,i){return!(!vt.i.isElement(t)||!(0,h.sanitizeHTMLElement)(t))||i}const zt=Object.keys(t);a.D.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:!1,removeOnError:!0,safeJavaScriptLink:!0},a.D.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"};class Tt extends K{constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new ft.b(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}afterInit(e){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;const e=this.j;this.walker.setWork(e.editor),this.currentSelectionNode=e.s.current()}startWalker(){const{jodit:e}=this,i=gt(this.j.o.cleanHTML.allowTags),o=gt(this.j.o.cleanHTML.denyTags);this.walker.on("visit",(s=>((e,i,o,s,n)=>{let r=!1;for(const a of zt)if(r=(0,t[a])(e,i,r,o,s,n),!i.isConnected)return!0;return r})(e,s,i,o,this.currentSelectionNode))).on("end",(e=>{this.j.e.fire(e?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")}))}beforeCommand(e){if("removeformat"===e.toLowerCase())return this.j.s.isCollapsed()?bt(this.j):(e=>{const{s:t,editor:i,createInside:o}=e,{range:s}=t,n=s.cloneRange(),r=s.cloneRange(),a=o.fake(),l=o.fake();n.collapse(!0),r.collapse(!1),n.insertNode(a),r.insertNode(l),s.setStartBefore(a),s.collapse(!0),t.selectRange(s),bt(e,a),s.setEndAfter(l),s.collapse(!1),t.selectRange(s),bt(e,l);const c=[];vt.i.between(a,l,(e=>{yt(e)&&!vt.i.isTag(e,["a"])&&c.push(e),vt.i.isElement(e)&&(0,it.Lj)(e,"style")&&(0,it.Lj)(e,"style",null)})),c.forEach((e=>vt.i.unwrap(e)));const d=(e,t)=>{if(!nt(e,t)){const o=e.parentNode;if(o&&o!==i&&(0,it.Lj)(o,"style"))return(0,it.Lj)(o,"style",null),d(o,t),!0}};d(a,!0)&&d(l,!1),s.setStartAfter(a),s.setEndBefore(l),t.selectRange(s),vt.i.safeRemove(a),vt.i.safeRemove(l)})(this.j),!1}onBeforeSetNativeEditorValue(e){const t=this.j.createInside.div();return t.innerHTML=e.value,this.onSafeHTML(t),e.value=t.innerHTML,!1}onSafeHTML(e){(0,mt.e)(e,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}}(0,r.gn)([(0,z.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],Tt.prototype,"onChangeCleanHTML",null),(0,r.gn)([(0,z.hook)("ready")],Tt.prototype,"startWalker",null),(0,r.gn)([(0,z.watch)(":beforeCommand")],Tt.prototype,"beforeCommand",null),(0,r.gn)([(0,z.watch)(":beforeSetNativeEditorValue")],Tt.prototype,"onBeforeSetNativeEditorValue",null),(0,r.gn)([(0,z.watch)(":safeHTML")],Tt.prototype,"onSafeHTML",null);var jt=i(8);a.D.prototype.wrapNodes={exclude:["hr","style","br"]};class Lt extends K{constructor(){super(...arguments),this.isSuitableStart=e=>L.i.isText(e)&&(0,jt.H)(e.nodeValue)&&/[^\s]/.test(e.nodeValue)||this.isNotClosed(e)&&!L.i.isTemporary(e),this.isSuitable=e=>L.i.isText(e)||this.isNotClosed(e),this.isNotClosed=e=>L.i.isElement(e)&&!(L.i.isBlock(e)||L.i.isTag(e,this.j.o.wrapNodes.exclude))}afterInit(e){"br"!==e.o.enter.toLowerCase()&&e.e.on("afterInit.wtn postProcessSetEditorValue.wtn",this.postProcessSetEditorValue)}beforeDestruct(e){e.e.off(".wtn")}postProcessSetEditorValue(){const{jodit:e}=this;if(!e.isEditorMode())return;let t=e.editor.firstChild,i=!1;for(;t;){if(this.checkAloneListLeaf(t,e),this.isSuitableStart(t)){i||e.s.save(),i=!0;const o=e.createInside.element(e.o.enter);for(L.i.before(t,o);t&&this.isSuitable(t);){const e=t.nextSibling;o.appendChild(t),t=e}o.normalize()}t=t&&t.nextSibling}i&&(e.s.restore(),"afterInit"===e.e.current&&e.e.fire("internalChange"))}checkAloneListLeaf(e,t){L.i.isElement(e)&&L.i.isTag(e,"li")&&!L.i.isTag(e.parentElement,["ul","ol"])&&L.i.wrap(e,"ul",t.createInside)}}(0,r.gn)([z.autobind],Lt.prototype,"postProcessSetEditorValue",null),a.D.prototype.controls.cut={command:"cut",isDisabled:e=>e.s.isCollapsed(),tooltip:"Cut selection"},a.D.prototype.controls.copy={command:"copy",isDisabled:e=>e.s.isCollapsed(),tooltip:"Copy selection"},a.D.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"};var At=i(30);const Mt=e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}};function Dt(e,t,i){if(t.isInDestruct)return;(e=>!(!e||"drop"!==e.type))(e)&&t.s.insertCursorAtPoint(e.clientX,e.clientY);const o=t.e.fire("beforePasteInsert",i);!(0,b.nj)(o)&&((0,b.HD)(o)||(0,b.hj)(o)||L.i.isNode(o))&&(i=o),(0,b.HD)(i)&&(i=(e=>{const t=(e=e.replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i);-1!==t&&(e=e.substring(t+20));const i=e.search(/<!--EndFragment-->/i);return-1!==i&&(e=e.substring(0,i)),e})(i)),t.s.insertHTML(i)}function Pt(e,t,i,o,s){if(!1===e.e.fire("beforeOpenPasteDialog",t,i,o,s))return;const n=$(`<div style="word-break: normal; white-space: normal">${e.i18n(t)}</div>`,e.i18n(i));n.bindDestruct(e),(0,At.MN)(e,n.container);const r=s.map((({text:t,value:i})=>(0,A.zx)(e,{text:t,name:t.toLowerCase(),tabIndex:0}).onAction((()=>{n.close(),o(i)}))));n.e.one(n,"afterClose",(()=>{e.s.isFocused()||e.s.focus()}));const a=(0,A.zx)(e,{text:"Cancel",tabIndex:0}).onAction((()=>{n.close()}));return n.setFooter([...r,a]),r[0].focus(),r[0].state.variant="primary",e.e.fire("afterOpenPasteDialog",n,t,i,o,s),n}const _t="clipboard";class Rt{constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}init(e){var t;null===(t=this.buttons)||void 0===t||t.forEach((t=>e.registerButton(t))),e.e.off("copy.clipboard cut.clipboard").on("copy.clipboard cut.clipboard",(t=>{var i;const o=e.s.html,s=Mt(t)||Mt(e.ew)||Mt(t.originalEvent);s&&(s.setData(l.TEXT_PLAIN,(0,h.stripTags)(o)),s.setData(l.TEXT_HTML,o)),e.buffer.set(_t,o),e.e.fire("pasteStack",{html:o,action:e.o.defaultActionOnPaste}),"cut"===t.type&&(e.s.remove(),e.s.focus()),t.preventDefault(),null===(i=null==e?void 0:e.events)||void 0===i||i.fire("afterCopy",o)}))}destruct(e){var t,i;null===(t=null==e?void 0:e.buffer)||void 0===t||t.set(_t,""),null===(i=null==e?void 0:e.events)||void 0===i||i.off(".clipboard")}}a.D.prototype.askBeforePasteHTML=!0,a.D.prototype.processPasteHTML=!0,a.D.prototype.pasteHTMLActionList=[{value:l.INSERT_AS_HTML,text:"Keep"},{value:l.INSERT_AS_TEXT,text:"Insert as Text"},{value:l.INSERT_ONLY_TEXT,text:"Insert only Text"}],a.D.prototype.memorizeChoiceWhenPasteFragment=!1,a.D.prototype.nl2brInPlainText=!0,a.D.prototype.defaultActionOnPaste=l.INSERT_AS_HTML,a.D.prototype.draggableTags=["img","jodit-media","jodit"];const Nt="pasteStorage";a.D.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(e,t,{control:i}){if(i.name===Nt)return void e.execCommand("showPasteStorage");e.s.focus();let o="",s=!0;if(navigator.clipboard){try{const e=await navigator.clipboard.read();if(e&&e.length){const t=await e[0].getType(l.TEXT_PLAIN);o=await new Response(t).text()}s=!1}catch(e){}if(s)try{o=await navigator.clipboard.readText(),s=!1}catch(e){}}s&&(o=e.buffer.get(_t)||"",s=0===o.length);const n=e.value;s?(e.ed.execCommand("paste"),s=n===e.value,!s&&e.e.fire("afterPaste")):o.length?(Dt(null,e,o),e.e.fire("afterPaste")):s&&U(e.i18n("Your browser doesn't support direct access to the clipboard."),(()=>{e.s.focus()})).bindDestruct(e)},list:{[Nt]:"Paste Storage"},isChildDisabled(e){return 2>e.e.fire("pasteStorageList")}};class qt extends K{constructor(){super(...arguments),this.pasteStack=new h.LimitedStack(20)}afterInit(e){e.e.on("paste.paste",this.onPaste).on("pasteStack.paste",(e=>this.pasteStack.push(e))),e.o.nl2brInPlainText&&this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}onPaste(e){try{if(!1===this.customPasteProcess(e)||!1===this.j.e.fire("beforePaste",e))return e.preventDefault(),!1;this.defaultPasteProcess(e)}finally{this.j.e.fire("afterPaste",e)}}customPasteProcess(e){if(!this.j.o.processPasteHTML)return;const t=Mt(e),i={html:null==t?void 0:t.getData(l.TEXT_HTML),plain:null==t?void 0:t.getData(l.TEXT_PLAIN),rtf:null==t?void 0:t.getData(l.TEXT_RTF)};let o;for(o in i){const t=i[o];if((0,h.isHTML)(t)&&(this.j.e.fire("processHTML",e,t,i)||this.processHTML(e,t)))return!1}}defaultPasteProcess(e){const t=Mt(e);let i=(null==t?void 0:t.getData(l.TEXT_HTML))||(null==t?void 0:t.getData(l.TEXT_PLAIN));if(t&&i&&""!==(0,h.trim)(i)){const o=this.j.e.fire("processPaste",e,i,(e=>{const t=e.types;let i="";if((0,b.kJ)(t)||"[object DOMStringList]"==={}.toString.call(t))for(let e=0;t.length>e;e+=1)i+=t[e]+";";else i=(t||l.TEXT_PLAIN)+";";return i})(t));void 0!==o&&(i=o),((0,h.isString)(i)||L.i.isNode(i))&&this.insertByType(e,i,this.j.o.defaultActionOnPaste),e.preventDefault(),e.stopPropagation()}}processHTML(e,t){if(this.j.o.askBeforePasteHTML){if(this.j.o.memorizeChoiceWhenPasteFragment){const i=this.pasteStack.find((e=>e.html===t));if(i)return this.insertByType(e,t,i.action||this.j.o.defaultActionOnPaste),!0}return Pt(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",(i=>{this.insertByType(e,t,i)}),this.j.o.pasteHTMLActionList),!0}return!1}insertByType(e,t,i){if(this.pasteStack.push({html:t,action:i}),(0,h.isString)(t))switch(this.j.buffer.set(_t,t),i){case l.INSERT_CLEAR_HTML:t=(0,h.cleanFromWord)(t);break;case l.INSERT_ONLY_TEXT:t=(0,h.stripTags)(t);break;case l.INSERT_AS_TEXT:t=(0,h.htmlspecialchars)(t)}Dt(e,this.j,t)}onProcessPasteReplaceNl2Br(e,t,i){if(i===l.TEXT_PLAIN+";"&&!(0,h.isHTML)(t))return(0,h.nl2br)(t)}beforeDestruct(e){e.e.off("paste.paste",this.onPaste)}}(0,r.gn)([z.autobind],qt.prototype,"onPaste",null),(0,r.gn)([z.autobind],qt.prototype,"onProcessPasteReplaceNl2Br",null),a.D.prototype.askBeforePasteFromWord=!0,a.D.prototype.processPasteFromWord=!0,a.D.prototype.defaultActionOnPasteFromWord=null,a.D.prototype.pasteFromWordActionList=[{value:l.INSERT_AS_HTML,text:"Keep"},{value:l.INSERT_AS_TEXT,text:"Clean"},{value:l.INSERT_ONLY_TEXT,text:"Insert only Text"}];class Bt extends K{afterInit(e){}beforeDestruct(e){}processWordHTML(e,t,i){const{j:o}=this,{processPasteFromWord:s,askBeforePasteFromWord:n,defaultActionOnPasteFromWord:r,defaultActionOnPaste:a,pasteFromWordActionList:l}=o.o;return!(!s||!(0,h.isHtmlFromWord)(t)||(n?Pt(o,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",(o=>{this.insertFromWordByType(e,t,o,i)}),l):this.insertFromWordByType(e,t,r||a,i),0))}insertFromWordByType(e,t,i,o){var s;switch(i){case l.INSERT_AS_HTML:if(t=(0,h.applyStyles)(t),this.j.o.beautifyHTML){const e=null===(s=this.j.events)||void 0===s?void 0:s.fire("beautifyHTML",t);(0,h.isString)(e)&&(t=e)}break;case l.INSERT_AS_TEXT:t=(0,h.cleanFromWord)(t);break;case l.INSERT_ONLY_TEXT:t=(0,h.stripTags)((0,h.cleanFromWord)(t))}Dt(e,this.j,t)}}(0,r.gn)([(0,z.watch)(":processHTML")],Bt.prototype,"processWordHTML",null);class Ht extends K{constructor(){super(...arguments),this.currentIndex=0,this.list=[],this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.paste=()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){const e=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=e}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")},this.onKeyDown=e=>{let t=this.currentIndex;-1!==[l.KEY_UP,l.KEY_DOWN,l.KEY_ENTER].indexOf(e.key)&&(e.key===l.KEY_UP&&(0===t?t=this.list.length-1:t-=1),e.key===l.KEY_DOWN&&(t===this.list.length-1?t=0:t+=1),e.key!==l.KEY_ENTER?(t!==this.currentIndex&&this.selectIndex(t),e.stopImmediatePropagation(),e.preventDefault()):this.paste())},this.selectIndex=e=>{this.listBox&&(0,h.toArray)(this.listBox.childNodes).forEach(((t,i)=>{t.classList.remove("jodit_active"),e===i&&this.previewBox&&(t.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[e],t.focus())})),this.currentIndex=e},this.showDialog=()=>{2>this.list.length||(this.dialog||this.createDialog(),this.listBox&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),this.list.forEach(((e,t)=>{const i=this.j.c.element("a");i.textContent=t+1+". "+e.replace((0,l.SPACE_REG_EXP)(),""),this.j.e.on(i,"keydown",this.onKeyDown),(0,h.attr)(i,"href","#"),(0,h.attr)(i,"data-index",""+t),(0,h.attr)(i,"tab-index","-1"),this.listBox&&this.listBox.appendChild(i)})),this.dialog&&this.dialog.open(),this.j.async.setTimeout((()=>{this.selectIndex(0)}),100))}}createDialog(){this.dialog=new V({language:this.j.o.language});const e=(0,A.zx)(this.j,"paste","Paste","primary");e.onAction(this.paste);const t=(0,A.zx)(this.j,"","Cancel");t.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([e,t]),this.j.e.on(this.listBox,"click dblclick",(e=>{const t=e.target;return L.i.isTag(t,"a")&&t.hasAttribute("data-index")&&this.selectIndex(parseInt((0,h.attr)(t,"-index")||"0",10)),"dblclick"===e.type&&this.paste(),!1}))}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",(()=>this.list.length)).on("afterCopy.paste-storage",(e=>{-1!==this.list.indexOf(e)&&this.list.splice(this.list.indexOf(e),1),this.list.unshift(e),this.list.length>5&&(this.list.length=5)})),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),L.i.safeRemove(this.previewBox),L.i.safeRemove(this.listBox),L.i.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}}const Ot="copyformat",Ft=["fontWeight","fontStyle","fontSize","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine","fontFamily"],Wt=(e,t,i,o)=>{let s=(0,h.css)(i,t);return s===o[t]&&(s=i.parentNode&&i!==e.editor&&i.parentNode!==e.editor?Wt(e,t,i.parentNode,o):void 0),s};function Vt(e){e.registerButton({name:"copyformat",group:"clipboard"})}a.D.prototype.controls.copyformat={exec(e,t,{button:i}){if(t){if(e.buffer.exists(Ot))e.buffer.delete(Ot),e.e.off(e.editor,"mouseup.copyformat");else{const i={},o=L.i.up(t,(e=>e&&!L.i.isText(e)),e.editor)||e.editor,s=e.createInside.span();e.editor.appendChild(s),Ft.forEach((e=>{i[e]=(0,h.css)(s,e)})),s!==e.editor&&L.i.safeRemove(s);const n=((e,t,i)=>{const o={};return t&&Ft.forEach((s=>{o[s]=Wt(e,s,t,i),s.match(/border(Style|Color)/)&&!o.borderWidth&&(o[s]=void 0)})),o})(e,o,i),r=()=>{e.buffer.delete(Ot);const t=e.s.current();t&&(L.i.isTag(t,"img")?(0,h.css)(t,n):e.s.applyStyle(n)),e.e.off(e.editor,"mouseup.copyformat")};e.e.on(e.editor,"mouseup.copyformat",r),e.buffer.set(Ot,!0)}i.update()}},isActive:e=>e.buffer.exists(Ot),tooltip:"Paint format"};class Ut extends K{constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=e=>{const t=Mt(e);return t?t.getData(l.TEXT_HTML)||t.getData(l.TEXT_PLAIN):null}}afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(e){let t=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=L.i.isOrContains(this.j.editor,t,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,h.ctrlKey)(e),this.isFragmentFromEditor){const e=this.j.s.sel,t=e&&e.rangeCount?e.getRangeAt(0):null;t&&(this.bufferRange=t.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,xe(t)&&(t=t.querySelector("img")),L.i.isTag(t,"img")&&(this.draggable=t.cloneNode(!0),(0,h.dataBind)(this.draggable,"target",t)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())}onDragEnd(){this.draggable&&(L.i.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;const t=this.j.s.sel,i=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null);let o=null;if(!this.draggable&&i)o=this.isCopyMode?i.cloneContents():i.extractContents();else if(this.draggable)if(this.isCopyMode){const[e,t]="1"===(0,h.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];o=this.j.createInside.element(e),o.setAttribute(t,(0,h.attr)(this.draggable,"data-src")||(0,h.attr)(this.draggable,"src")||""),"a"===e&&(o.textContent=(0,h.attr)(o,t)||"")}else o=(0,h.dataBind)(this.draggable,"target");else this.getText(e)&&(o=this.j.createInside.fromHTML(this.getText(e)));t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),o&&(this.j.s.insertNode(o,!1,!1),i&&o.firstChild&&o.lastChild&&(i.setStartBefore(o.firstChild),i.setEndAfter(o.lastChild),this.j.s.selectRange(i),this.j.e.fire("synchro")),L.i.isTag(o,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",o)),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}}var Yt;(0,r.gn)([z.autobind],Ut.prototype,"onDragStart",null),(0,r.gn)([(0,z.throttle)((e=>e.defaultTimeout/10))],Ut.prototype,"onDrag",null),(0,r.gn)([z.autobind],Ut.prototype,"onDragEnd",null),(0,r.gn)([z.autobind],Ut.prototype,"onDrop",null),(e=>{e[e.IDLE=0]="IDLE",e[e.WAIT_DRAGGING=1]="WAIT_DRAGGING",e[e.DRAGGING=2]="DRAGGING"})(Yt||(Yt={}));class $t extends K{constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=Yt.IDLE}afterInit(){this.dragList=this.j.o.draggableTags?(0,h.splitArray)(this.j.o.draggableTags).filter(Boolean).map((e=>e.toLowerCase())):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onDragStart(e){if("dragstart"===e.type&&this.draggable)return!1;if(this.state>Yt.IDLE)return;const t=e.target;if(!this.dragList.length||!t)return;const i=e=>!(!e||!this.dragList.includes(e.nodeName.toLowerCase()));let o=L.i.furthest(t,i,this.j.editor)||(i(t)?t:null);o&&(L.i.isTag(o.parentElement,"a")&&o.parentElement.firstChild===o&&o.parentElement.lastChild===o&&(o=o.parentElement),this.startX=e.clientX,this.startY=e.clientY,this.isCopyMode=(0,h.ctrlKey)(e),this.draggable=o.cloneNode(!0),(0,h.dataBind)(this.draggable,"target",o),this.state=Yt.WAIT_DRAGGING,this.addDragListeners())}onDrag(e){var t,i;if(!this.draggable||this.state===Yt.IDLE)return;const o=e.clientY;if(this.state!==Yt.WAIT_DRAGGING||Math.sqrt(Math.pow(e.clientX-this.startX,2)+Math.pow(o-this.startY,2))>=this.diffStep){if(this.state===Yt.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=Yt.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){const o=(0,h.dataBind)(this.draggable,"target");(0,h.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:e.clientX,top:e.clientY,width:null!==(t=null==o?void 0:o.offsetWidth)&&void 0!==t?t:100,height:null!==(i=null==o?void 0:o.offsetHeight)&&void 0!==i?i:100}),(0,x.ZO)(this.j,$t).appendChild(this.draggable)}(0,h.css)(this.draggable,{left:e.clientX,top:e.clientY}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}}onDragEnd(){this.isInDestruct||(this.removeDragListeners(),this.j.unlock(),this.state=Yt.IDLE,this.draggable&&(L.i.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||Yt.DRAGGING>this.state)return void this.onDragEnd();let e=(0,h.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));const{parentElement:t}=e;this.j.s.insertNode(e,!0,!1),t&&L.i.isEmpty(t)&&!L.i.isTag(t,["td","th"])&&L.i.safeRemove(t),L.i.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart),this.removeDragListeners()}}(0,r.gn)([z.autobind],$t.prototype,"onDragStart",null),(0,r.gn)([(0,z.throttle)((e=>e.defaultTimeout/10))],$t.prototype,"onDrag",null),(0,r.gn)([z.autobind],$t.prototype,"onDragEnd",null),(0,r.gn)([z.autobind],$t.prototype,"onDrop",null);var Gt=i(98);function Kt(e){e.registerButton({name:"brush",group:"color"});const t=(t,i,o)=>{const s=(0,h.normalizeColor)(o);switch(t){case"background":e.s.applyStyle({backgroundColor:s||""});break;case"forecolor":e.s.applyStyle({color:s||""})}return e.synchronizeValues(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)}a.D.prototype.controls.brush={update(e,t){const i=(0,h.dataBind)(e,"color"),o=(i,o)=>{o&&o!==""+(0,h.css)(t.editor,i)&&(e.state.icon.fill=o)};if(i){const t=(0,h.dataBind)(e,"color");return void o("color"===t?t:"background-color",i)}const s=t.s.current();if(s&&!e.state.disabled){const e=L.i.closest(s,L.i.isElement,t.editor)||t.editor;o("color",""+(0,h.css)(e,"color")),o("background-color",""+(0,h.css)(e,"background-color"))}e.state.icon.fill="",e.state.activated=!1},popup(e,t,i,o,s){let n="",r="",a=[],l=null;return t&&t!==e.editor&&L.i.isNode(t)&&(L.i.isElement(t)&&e.s.isCollapsed()&&!L.i.isTag(t,["br","hr"])&&(l=t),L.i.up(t,(e=>{if(L.i.isHTMLElement(e)){const t=(0,h.css)(e,"color",!0),i=(0,h.css)(e,"background-color",!0);if(t)return n=""+t,!0;if(i)return r=""+i,!0}}),e.editor)),a=[{name:"Background",content:(0,Gt.YW)(e,(t=>{l?l.style.backgroundColor=t:e.execCommand("background",!1,t),(0,h.dataBind)(s,"color",t),(0,h.dataBind)(s,"color-mode","background"),o()}),r)},{name:"Text",content:(0,Gt.YW)(e,(t=>{l?l.style.color=t:e.execCommand("forecolor",!1,t),(0,h.dataBind)(s,"color",t),(0,h.dataBind)(s,"color-mode","color"),o()}),n)}],"background"!==e.o.colorPickerDefaultTab&&(a=a.reverse()),(0,Gt.IL)(e,a,l)},exec(e,t,{button:i}){const o=(0,h.dataBind)(i,"color-mode"),s=(0,h.dataBind)(i,"color");if(!o)return!1;if(t&&t!==e.editor&&L.i.isNode(t)&&L.i.isElement(t))switch(o){case"color":t.style.color=s;break;case"background":t.style.backgroundColor=s}else e.execCommand("background"===o?o:"forecolor",!1,s)},tooltip:"Fill color or set the text color"};var Jt=i(41),Xt=i(57);function Zt(e,t,i,o){var s,n;const{s:r,createInside:a}=e,l=a.element(i),c=a.element("br");l.appendChild(c),o&&o.cssText&&l.setAttribute("style",o.cssText),t&&t.isConnected?(vt.i.before(t,l),vt.i.safeRemove(t)):r.insertNode(l,!1,!1);const d=r.createRange();return d.setStartBefore("br"!==i.toLowerCase()?c:l),d.collapse(!0),null===(s=r.sel)||void 0===s||s.removeAllRanges(),null===(n=r.sel)||void 0===n||n.addRange(d),(0,Jt.n)(l,e.editor,e.ed),l}function Qt(e,t,i=l.IS_BLOCK){let o=t;const s=e.editor;do{if(!o||o===s)break;if(i.test(o.nodeName))return vt.i.isTag(o,"li")?o:Qt(e,o.parentNode,/^li$/i)||o;o=o.parentNode}while(o&&o!==s);return null}class ei extends K{afterInit(e){const t=e.o.enter.toLowerCase(),i=t===l.BR.toLowerCase();e.o.enterBlock||(e.o.enterBlock=i?l.PARAGRAPH:t)}onEnterKeyDown(e){if(e.key===l.KEY_ENTER){const t=this.j,i=t.e.fire("beforeEnter",e);return void 0!==i?i:(t.s.isCollapsed()||t.execCommand("Delete"),t.s.focus(),this.onEnter(e),t.synchronizeValues(),!1)}}onEnter(e){const t=this.j,i=this.getCurrentOrFillEmpty(t);let o=Qt(t,i);const s=vt.i.isTag(o,"li");return!!(s&&!e.shiftKey||((e,t,i)=>{const o=vt.i.closest(t,["pre","blockquote"],e.editor);if(e.o.enter.toLowerCase()===l.BR.toLowerCase()||i&&!o||!i&&o){const t=e.createInside.element("br");return e.s.insertNode(t,!0,!1),(0,Jt.n)(t,e.editor,e.ed),!1}return!0})(t,i,e.shiftKey))&&(o||((e,t)=>!!vt.i.prev(t,(e=>vt.i.isBlock(e)||vt.i.isImage(e)),e.editor))(t,i)||(o=((e,t)=>{let i=t;vt.i.up(i,(t=>{t&&t.hasChildNodes()&&t!==e.editor&&(i=t)}),e.editor);const o=vt.i.wrapInline(i,e.o.enter,e);if(vt.i.isEmpty(o)){const t=e.createInside.element("br");o.appendChild(t),e.s.setCursorBefore(t)}return o})(t,i)),o&&o!==i?!!((e,t)=>{const i=e.s;if(!vt.i.canSplitBlock(t)){const t=e.createInside.element("br");return i.insertNode(t,!1,!1),i.setCursorAfter(t),!1}return!0})(t,o)&&(s&&vt.i.isEmpty(o)?(((e,t)=>{const i=vt.i.closest(t,["ol","ul"],e.editor);if(!i)return;const o=i.parentElement,s=vt.i.isTag(o,"li"),n=s?o:i,r=e.s.createRange();r.setStartAfter(t),r.setEndAfter(i);const a=r.extractContents(),l=e.createInside.fake();vt.i.after(n,l),vt.i.safeRemove(t),(0,Xt.$$)("li",i).length||vt.i.safeRemove(i);const c=Zt(e,l,s?"li":e.o.enter);a.querySelector("li")&&(s?c.appendChild(a):vt.i.after(c,a))})(t,o),!1):void((e,t)=>{const i=e.s,{enter:o}=e.o,s=o.toLowerCase(),n=vt.i.isTag(t,"li"),r=t.tagName.toLowerCase()===s||n,a=i.cursorOnTheRight(t),l=i.cursorOnTheLeft(t);if(!r&&(a||l)){let o=null;return o=a?i.setCursorAfter(t):i.setCursorBefore(t),Zt(e,o,s),void(l&&!a&&i.setCursorIn(t,!0))}const c=i.splitSelection(t);(0,Jt.n)(c,e.editor,e.ed)})(t,o)):(Zt(t,null,s?"li":t.o.enter),!1))}getCurrentOrFillEmpty(e){const{s:t}=e;let i=t.current(!1);return i&&i!==e.editor||(i=e.createInside.text(l.INVISIBLE_SPACE),t.insertNode(i,!1,!1),t.select(i)),i}beforeDestruct(e){e.e.off("keydown.enter")}}(0,r.gn)([(0,z.watch)(":keydown.enter")],ei.prototype,"onEnterKeyDown",null);class ti extends K{afterInit(e){}beforeDestruct(e){}onKeyDownArrow(e){var t;if(e.key!==l.KEY_RIGHT||!this.j.selection.isCollapsed())return;const{endContainer:i,endOffset:o}=this.j.selection.range;if(L.i.isText(i)&&(null===(t=i.nodeValue)||void 0===t?void 0:t.length)===o){const{parentNode:e}=i;L.i.isInlineBlock(e)&&!st(e,!1,this.j.editor)&&L.i.after(e,this.j.createInside.text(l.NBSP_SPACE))}}}(0,r.gn)([(0,z.watch)(":keydown")],ti.prototype,"onKeyDownArrow",null);var ii=i(32),oi=i(5);a.D.prototype.showMessageErrors=!0,a.D.prototype.showMessageErrorTime=3e3,a.D.prototype.showMessageErrorOffsetPx=3;const si="error-box-for-messages";function ni(e){if(e.o.showMessageErrors){const t=e.getFullElName(si,"active",!0),i=e.c.div(e.getFullElName(si)),o=()=>{let t=5;(0,oi.q)(i.childNodes).forEach((i=>{(0,ii.i)(i,"bottom",t+"px"),t+=i.offsetHeight+e.o.showMessageErrorOffsetPx}))};e.e.on("beforeDestruct",(()=>{L.i.safeRemove(i)})).on("errorMessage",((s,n,r)=>{e.workplace.appendChild(i);const a=e.c.div(t,s);a.classList.add(e.getFullElName(si,"type",n)),i.appendChild(a),o(),e.async.setTimeout((()=>{a.classList.remove(t),e.async.setTimeout((()=>{L.i.safeRemove(a),o()}),300)}),r||e.o.showMessageErrorTime)}))}}function ri(e){e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});const t=(t,i,o)=>{switch(t){case"fontsize":e.s.applyStyle({fontSize:(0,h.normalizeSize)(o)});break;case"fontname":e.s.applyStyle({fontFamily:o})}return e.e.fire("synchro"),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)}function ai(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",((t,i,o)=>(e.s.applyStyle(void 0,{element:o}),e.synchronizeValues(),!1)))}function li(e){e.registerButton({name:"fullsize"});let t=!1,i=0,o=0,s=!1;const n=()=>{const{container:n,events:r}=e;r&&(t?(i=(0,ii.i)(n,"height",!0),o=(0,ii.i)(n,"width",!0),(0,ii.i)(n,{height:e.ow.innerHeight,width:e.ow.innerWidth}),s=!0):s&&(0,ii.i)(n,{height:i||"auto",width:o||"auto"}))},r=i=>{const{container:o,events:s}=e;if(o){if(void 0===i&&(i=!o.classList.contains("jodit_fullsize")),e.setMod("fullsize",i),e.o.fullsize=i,t=i,o.classList.toggle("jodit_fullsize",i),e.toolbar&&((0,Fe.Z)(e)&&e.toolbarContainer.appendChild(e.toolbar.container),(0,ii.i)(e.toolbar.container,"width","auto")),e.o.globalFullSize){let e=o.parentNode;for(;e&&e.nodeType!==Node.DOCUMENT_NODE;)e.classList.toggle("jodit_fullsize-box_true",i),e=e.parentNode;n()}s.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",n),e.e.on("afterInit afterOpen",(()=>{var t;e.toggleFullSize(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.fullsize)})).on("toggleFullSize",r).on("beforeDestruct",(()=>{t&&r(!1)})).on("beforeDestruct",(()=>{e.events&&e.e.off(e.ow,"resize",n)}))}a.D.prototype.defaultFontSizePoints="px",a.D.prototype.controls.fontsize={command:"fontSize",data:{cssRule:"font-size"},list:["8","9","10","11","12","14","16","18","24","30","36","48","60","72","96"],exec:(e,t,{control:i})=>(0,h.memorizeExec)(e,t,{control:i},(t=>{var o;return"fontsize"===(null===(o=i.command)||void 0===o?void 0:o.toLowerCase())?`${t}${e.o.defaultFontSizePoints}`:t})),childTemplate:(e,t,i)=>`${i}${e.o.defaultFontSizePoints}`,tooltip:"Font size",isChildActive(e,t){var i,o;const s=e.s.current(),n=(null===(i=t.data)||void 0===i?void 0:i.cssRule)||"font-size",r=(null===(o=t.data)||void 0===o?void 0:o.normalize)||(t=>/pt$/i.test(t)&&"pt"===e.o.defaultFontSizePoints?t.replace(/pt$/i,""):t);if(s){const i=L.i.closest(s,L.i.isElement,e.editor)||e.editor,o=(0,h.css)(i,n);return!(!o||!t.args||r(""+t.args[0])!==r(""+o))}return!1}},a.D.prototype.controls.font={...a.D.prototype.controls.fontsize,command:"fontname",list:{"":"Default","Helvetica,sans-serif":"Helvetica","Arial,Helvetica,sans-serif":"Arial","Georgia,serif":"Georgia","Impact,Charcoal,sans-serif":"Impact","Tahoma,Geneva,sans-serif":"Tahoma","Times New Roman,Times,serif":"Times New Roman","Verdana,Geneva,sans-serif":"Verdana"},childTemplate(e,t,i){let o=!1;try{o=-1===t.indexOf("dings")&&document.fonts.check("16px "+t,i)}catch(e){}return`<span style="${o?`font-family: ${t}!important;`:""}">${i}</span>`},data:{cssRule:"font-family",normalize:e=>e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9]+/g,",")},tooltip:"Font family"},a.D.prototype.controls.paragraph={command:"formatBlock",update(e,t){const i=e.control,o=t.s.current();if(o&&t.o.textIcons){const s=(L.i.closest(o,L.i.isBlock,t.editor)||t.editor).nodeName.toLowerCase(),n=i.list;e&&i.data&&i.data.currentValue!==s&&n&&n[s]&&(t.o.textIcons?e.state.text=s:e.state.icon.name=s,i.data.currentValue=s)}return!1},exec:h.memorizeExec,data:{currentValue:"left"},list:{p:"Normal",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive(e,t){const i=e.s.current();if(i){const o=L.i.closest(i,L.i.isBlock,e.editor);return!(!o||o===e.editor||void 0===t.args||o.nodeName.toLowerCase()!==t.args[0])}return!1},isActive(e,t){const i=e.s.current();if(i){const o=L.i.closest(i,L.i.isBlock,e.editor);return!(!o||o===e.editor||void 0===t.list||L.i.isTag(o,"p")||void 0===t.list[o.nodeName.toLowerCase()])}return!1},childTemplate:(e,t,i)=>`<${t} style="margin:0;padding:0"><span>${e.i18n(i)}</span></${t}>`,tooltip:"Insert format block"},a.D.prototype.fullsize=!1,a.D.prototype.globalFullSize=!0,a.D.prototype.controls.fullsize={exec(e){e.toggleFullSize()},update(e,t){const i=t.isFullSize?"shrink":"fullsize";e.state.activated=t.isFullSize,t.o.textIcons?e.state.text=i:e.state.icon.name=i},tooltip:"Open editor in fullsize",mode:l.MODE_SOURCE+l.MODE_WYSIWYG},a.D.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8, cmd+shift+8"],selectall:["ctrl+a","cmd+a"]};class ci extends K{constructor(){super(...arguments),this.onKeyPress=e=>{const t=this.specialKeys[e.which],i=(e.key||String.fromCharCode(e.which)).toLowerCase(),o=[t||i];return["alt","ctrl","shift","meta"].forEach((i=>{e[i+"Key"]&&t!==i&&o.push(i)})),(0,h.normalizeKeyAliases)(o.join("+"))},this.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}}afterInit(e){(0,h.keys)(e.o.commandToHotkeys,!1).forEach((t=>{const i=e.o.commandToHotkeys[t];i&&((0,h.isArray)(i)||(0,h.isString)(i))&&e.registerHotkeyToCommand(i,t)}));let t=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",(e=>{if(e.key===l.KEY_ESC)return this.j.e.fire("escape",e)})).on("keydown.hotkeys",(i=>{const o=this.onKeyPress(i),s={shouldStop:!0};if(!1===this.j.e.fire(o+".hotkey",i.type,s)){if(s.shouldStop)return t=!0,e.e.stopPropagation("keydown"),!1;i.preventDefault()}}),{top:!0}).on("keyup.hotkeys",(()=>{if(t)return t=!1,e.e.stopPropagation("keyup"),!1}),{top:!0})}beforeDestruct(e){e.events&&e.e.off(".hotkeys")}}function di(e){const t=e.options;e.e.on("afterSetMode",(()=>{e.isEditorMode()&&e.s.focus()})).on("generateDocumentStructure.iframe",((e,i)=>{const o=e||i.iframe.contentWindow.document;if(o.open(),o.write(t.iframeDoctype+`<html dir="${t.direction}" class="jodit" lang="${(0,h.defaultLanguage)(t.language)}"><head>`+`<title>${t.iframeTitle}</title>`+(t.iframeBaseUrl?`<base href="${t.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),o.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach((e=>{const t=o.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),o.head&&o.head.appendChild(t)})),t.iframeStyle){const e=o.createElement("style");e.innerHTML=t.iframeStyle,o.head&&o.head.appendChild(e)}})).on("createEditor",(()=>{if(!t.iframe)return;const 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),i.setAttribute("frameborder","0"),e.workplace.appendChild(i),e.iframe=i;const o=e.e.fire("generateDocumentStructure.iframe",null,e);return(0,h.callPromise)(o,(()=>{if(!e.iframe)return!1;const i=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;const o=()=>{(0,h.attr)(i.body,"contenteditable",e.getMode()!==l.MODE_SOURCE&&!e.getReadOnly()||null)},s=e=>{const t=/<body.*<\/body>/im,i="{%%BODY%%}",o=t.exec(e);return o&&(e=e.replace(t,i).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/<span([^&]*?)>(.*?)<\/span>/gim,"").replace(i,o[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),e};if(t.editHTMLDocumentMode){const t=e.element.tagName;if("TEXTAREA"!==t&&"INPUT"!==t)throw(0,h.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",(()=>s(e.o.iframeDoctype+i.documentElement.outerHTML))).on("beforeSetNativeEditorValue",(({value:t})=>!e.isLocked&&(/<(html|body)/i.test(t)?s(i.documentElement.outerHTML)!==s(t)&&(i.open(),i.write(e.o.iframeDoctype+s(t)),i.close(),e.editor=i.body,e.e.fire("safeHTML",e.editor),o(),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",o),"auto"===t.height){i.documentElement&&(i.documentElement.style.overflowY="hidden");const o=e.async.throttle((()=>{if(e.editor&&e.iframe&&"auto"===t.height){const t=e.ew.getComputedStyle(e.editor);(0,h.css)(e.iframe,"height",e.editor.offsetHeight+(parseInt(t.marginTop||"0",10)+parseInt(t.marginBottom||"0",10)))}}),e.defaultTimeout/2);if(e.e.on("change afterInit afterSetMode resize",o).on([e.iframe,e.ew,i.documentElement],"load",o).on(i,"readystatechange DOMContentLoaded",o),"function"==typeof ResizeObserver){const t=new ResizeObserver(o);t.observe(i.body),e.e.on("beforeDestruct",(()=>{t.unobserve(i.body)}))}}return i.documentElement&&e.e.on(i.documentElement,"mousedown touchend",(()=>{e.s.isFocused()||(e.s.focus(),e.editor===i.body&&e.s.setCursorIn(i.body))})).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",(t=>{var i;null===(i=e.events)||void 0===i||i.fire(e.ow,t)})),!1}))}))}function hi(e){const t=e.o,i=e.i18n.bind(e),o=A.JO.get.bind(A.JO),s=t.filebrowser.ajax.url||t.uploader.url,n=t.image.useImageEditor;return e.c.fromHTML(`<div style="${t.image.editSrc?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${i("Src")}</label>\n\t\t\t<div class="jodit-input_group">\n\t\t\t\t<input data-ref="imageSrc" class="jodit-input" type="text"/>\n\t\t\t\t<div\n\t\t\t\t\tclass="jodit-input_group-buttons"\n\t\t\t\t\tstyle="${s?"":"display: none"}"\n\t\t\t\t>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tdata-ref="changeImage"\n\t\t\t\t\t\t\tclass="jodit-button"\n\t\t\t\t\t\t>${o("image")}</a>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tdata-ref="editImage"\n\t\t\t\t\t\t\tclass="jodit-button"\n\t\t\t\t\t\t\tstyle="${n?"":"display: none"}"\n\t\t\t\t\t\t>${o("crop")}</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div style="${t.image.editTitle?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${i("Title")}</label>\n\t\t\t<input data-ref="imageTitle" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${t.image.editAlt?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${i("Alternative")}</label>\n\t\t\t<input data-ref="imageAlt" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${t.image.editLink?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${i("Link")}</label>\n\t\t\t<input data-ref="imageLink" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${t.image.editLink?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label class="jodit_vertical_middle">\n\t\t\t\t<input data-ref="imageLinkOpenInNewTab" type="checkbox" class="jodit-checkbox"/>\n\t\t\t\t<span>${i("Open link in new tab")}</span>\n\t\t\t</label>\n\t\t</div>`)}function ui(e){const t=e.o,i=e.i18n.bind(e),o=A.JO.get.bind(A.JO);return e.c.fromHTML(`<div style="${t.image.editMargins?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${i("Margins")}</label>\n\t\t\t<div class="jodit-grid jodit_vertical_middle">\n\t\t\t\t<input class="jodit_col-lg-1-5 jodit-input" data-ref="marginTop" type="text" placeholder="${i("top")}"/>\n\t\t\t\t<a style="text-align: center;" data-ref="lockMargin" class="jodit-properties__lock jodit_col-lg-1-5">${o("lock")}</a>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginRight" type="text" placeholder="${i("right")}"/>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginBottom" type="text" placeholder="${i("bottom")}"/>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginLeft" type="text" placeholder="${i("left")}"/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div\n\t\t\tstyle="${t.image.editAlign?"":"display:none"}"\n\t\t\tclass="jodit-form__group"\n\t\t>\n\t\t\t<label>${i("Align")}</label>\n\t\t\t<select data-ref="align" class="jodit-select">\n\t\t\t\t<option value="">${i("--Not Set--")}</option>\n\t\t\t\t<option value="left">${i("Left")}</option>\n\t\t\t\t<option value="center">${i("Center")}</option>\n\t\t\t\t<option value="right">${i("Right")}</option>\n\t\t\t</select>\n\t\t</div>\n\t\t<div style="${t.image.editStyle?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${i("Styles")}</label>\n\t\t\t<input data-ref="style" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${t.image.editClass?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${i("Classes")}</label>\n\t\t\t<input data-ref="classes" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${t.image.editId?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>Id</label>\n\t\t\t<input data-ref="id" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div\n\t\t\tstyle="${t.image.editBorderRadius?"":"display:none"}"\n\t\t\tclass="jodit-form__group"\n\t\t>\n\t\t\t<label>${i("Border radius")}</label>\n\t\t\t\t<input data-ref="borderRadius" type="number" class="jodit-input"/>\n\t\t</div>`)}a.D.prototype.iframe=!1,a.D.prototype.iframeBaseUrl="",a.D.prototype.iframeTitle="Jodit Editor",a.D.prototype.iframeDoctype="<!DOCTYPE html>",a.D.prototype.iframeDefaultSrc="about:blank",a.D.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',a.D.prototype.iframeCSSLinks=[],a.D.prototype.editHTMLDocumentMode=!1;var pi=i(99);a.D.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0};const mi=e=>(e=(0,h.trim)(e),/^[0-9]+$/.test(e)?e+"px":e),fi=e=>/^[-+]?[0-9.]+px$/.test(""+e)?parseFloat(""+e):e;class gi extends K{constructor(){super(...arguments),this.state={image:new Image,get ratio(){return this.image.naturalWidth/this.image.naturalHeight||1},sizeIsLocked:!0,marginIsLocked:!0},this.activeTabState={__activeTab:"Image"}}onChangeMarginIsLocked(){if(!this.form)return;const{marginRight:e,marginBottom:t,marginLeft:i,lockMargin:o}=(0,h.refs)(this.form);[e,t,i].forEach((e=>{(0,h.attr)(e,"disabled",this.state.marginIsLocked||null)})),o.innerHTML=A.JO.get(this.state.marginIsLocked?"lock":"unlock")}onChangeSizeIsLocked(){if(!this.form)return;const{lockSize:e,imageWidth:t}=(0,h.refs)(this.form);e.innerHTML=A.JO.get(this.state.sizeIsLocked?"lock":"unlock"),e.classList.remove("jodit-properties__lock"),e.classList.remove("jodit-properties__unlock"),e.classList.add(this.state.sizeIsLocked?"jodit-properties__lock":"jodit-properties__unlock"),this.j.e.fire(t,"change")}open(){return this.makeForm(),this.activeTabState.__activeTab="Image",this.j.e.fire("hidePopup"),(0,h.markOwner)(this.j,this.dialog.container),this.state.marginIsLocked=!0,this.state.sizeIsLocked=!0,this.onChangeMarginIsLocked(),this.onChangeSizeIsLocked(),this.updateValues(),this.dialog.open().setModal(!0).setPosition(),!1}makeForm(){if(this.dialog)return;this.dialog=new V({fullsize:this.j.o.fullsize,globalFullSize:this.j.o.globalFullSize,theme:this.j.o.theme,language:this.j.o.language,minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]});const e=this.j,t=e.o,i=e.i18n.bind(e),o={check:(0,v.zx)(e,"ok","Apply","primary"),remove:(0,v.zx)(e,"bin","Delete")};e.e.on(this.dialog,"afterClose",(()=>{this.state.image.parentNode&&t.image.selectImageAfterClose&&e.s.select(this.state.image)})),o.remove.onAction((()=>{e.s.removeNode(this.state.image),this.dialog.close()}));const{dialog:s}=this;s.setHeader(i("Image properties"));const n=(e=>{const{showPreview:t,editSize:i}=e.o.image,o=A.JO.get.bind(A.JO);return e.c.fromHTML(`<form class="jodit-properties">\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-2-5 jodit_col-xs-5-5">\n\t\t\t\t<div class="jodit-properties_view_box">\n\t\t\t\t\t<div style="${t?"":"display:none"}" class="jodit-properties_image_view">\n\t\t\t\t\t\t<img data-ref="imageViewSrc" src="" alt=""/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="${i?"":"display:none"}" class="jodit-form__group jodit-properties_image_sizes">\n\t\t\t\t\t\t<input data-ref="imageWidth" type="text" class="jodit-input"/>\n\t\t\t\t\t\t<a data-ref="lockSize" class="jodit-properties__lock">${o("lock")}</a>\n\t\t\t\t\t\t<input data-ref="imageHeight" type="text" class="imageHeight jodit-input"/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div data-ref="tabsBox" class="jodit_col-lg-3-5 jodit_col-xs-5-5"></div>\n\t\t</div>\n\t</form>`)})(e);this.form=n,s.setContent(n);const{tabsBox:r}=(0,h.refs)(this.form);r&&r.appendChild((0,Gt.IL)(e,[{name:"Image",content:hi(e)},{name:"Advanced",content:ui(e)}],this.activeTabState)),o.check.onAction(this.onApply);const{changeImage:a,editImage:l}=(0,h.refs)(this.form);e.e.on(a,"click",this.openImagePopup),t.image.useImageEditor&&e.e.on(l,"click",this.openImageEditor);const{lockSize:c,lockMargin:d,imageWidth:u,imageHeight:p}=(0,h.refs)(n);c&&e.e.on(c,"click",(()=>{this.state.sizeIsLocked=!this.state.sizeIsLocked})),e.e.on(d,"click",(e=>{this.state.marginIsLocked=!this.state.marginIsLocked,e.preventDefault()}));const m=e=>{if(!(0,h.isNumeric)(u.value)||!(0,h.isNumeric)(p.value))return;const t=parseFloat(u.value),i=parseFloat(p.value);e.target===u?p.value=""+Math.round(t/this.state.ratio):u.value=""+Math.round(i*this.state.ratio)};e.e.on([u,p],"change keydown mousedown paste",(t=>{this.state.sizeIsLocked&&e.async.setTimeout(m.bind(this,t),{timeout:e.defaultTimeout,label:"image-properties-changeSize"})})),s.setFooter([o.remove,o.check]),s.setSize(this.j.o.image.dialogWidth)}updateValues(){const e=this.j.o,{image:t}=this.state,{marginTop:i,marginRight:o,marginBottom:s,marginLeft:n,lockMargin:r,imageSrc:a,id:l,classes:c,align:d,style:u,imageTitle:p,imageAlt:m,borderRadius:f,imageLink:g,imageWidth:v,imageHeight:b,imageLinkOpenInNewTab:y,imageViewSrc:w,lockSize:C}=(0,h.refs)(this.form);(()=>{r.checked=this.state.marginIsLocked,C.checked=this.state.sizeIsLocked})(),a.value=(0,h.attr)(t,"src")||"",w&&(0,h.attr)(w,"src",(0,h.attr)(t,"src")||""),(()=>{p.value=(0,h.attr)(t,"title")||"",m.value=(0,h.attr)(t,"alt")||"";const e=L.i.closest(t,"a",this.j.editor);e?(g.value=(0,h.attr)(e,"href")||"",y.checked="_blank"===(0,h.attr)(e,"target")):(g.value="",y.checked=!1)})(),(()=>{const e=(0,h.attr)(t,"width")||(0,h.css)(t,"width",!0)||!1,i=(0,h.attr)(t,"height")||(0,h.css)(t,"height",!0)||!1;v.value=!1!==e?""+fi(e):""+t.offsetWidth,b.value=!1!==i?""+fi(i):""+t.offsetHeight,this.state.sizeIsLocked=(()=>!(!(0,h.isNumeric)(v.value)||!(0,h.isNumeric)(b.value))&&1>Math.abs(parseFloat(v.value)-parseFloat(b.value)*this.state.ratio))()})(),(()=>{if(!e.image.editMargins)return;let r=!0,a=!1;[i,o,s,n].forEach((e=>{const o=(0,h.attr)(e,"data-ref")||"";let s=t.style.getPropertyValue((0,h.kebabCase)(o));if(!s)return a=!0,void(e.value="");/^[0-9]+(px)?$/.test(s)&&(s=parseInt(s,10)),e.value=""+s||"",(a&&e.value||r&&"marginTop"!==o&&e.value!==i.value)&&(r=!1)})),this.state.marginIsLocked=r})(),c.value=((0,h.attr)(t,"class")||"").replace(/jodit_focused_image[\s]*/,""),l.value=(0,h.attr)(t,"id")||"",f.value=""+(parseInt(t.style.borderRadius||"0",10)||"0"),t.style.cssFloat&&-1!==["left","right"].indexOf(t.style.cssFloat.toLowerCase())?d.value=(0,h.css)(t,"float"):"block"===(0,h.css)(t,"display")&&"auto"===t.style.marginLeft&&"auto"===t.style.marginRight&&(d.value="center"),u.value=(0,h.attr)(t,"style")||""}onApply(){const{style:e,imageSrc:t,borderRadius:i,imageTitle:o,imageAlt:s,imageLink:n,imageWidth:r,imageHeight:a,marginTop:l,marginRight:c,marginBottom:d,marginLeft:u,imageLinkOpenInNewTab:p,align:m,classes:f,id:g}=(0,h.refs)(this.form),v=this.j.o,{image:b}=this.state;if(v.image.editStyle&&(0,h.attr)(b,"style",e.value||null),!t.value)return L.i.safeRemove(b),void this.dialog.close();(0,h.attr)(b,"src",t.value),b.style.borderRadius="0"!==i.value&&/^[0-9]+$/.test(i.value)?i.value+"px":"",(0,h.attr)(b,"title",o.value||null),(0,h.attr)(b,"alt",s.value||null);let y=L.i.closest(b,"a",this.j.editor);if(n.value?(y||(y=L.i.wrap(b,"a",this.j.createInside)),(0,h.attr)(y,"href",n.value),(0,h.attr)(y,"target",p.checked?"_blank":null)):y&&y.parentNode&&y.parentNode.replaceChild(b,y),r.value!==""+b.offsetWidth||a.value!==""+b.offsetHeight){const e=(0,h.trim)(r.value)?mi(r.value):null,t=(0,h.trim)(a.value)?mi(a.value):null;(0,h.css)(b,{width:e,height:t}),(0,h.attr)(b,"width",(0,h.attr)(b,"width")?e:null),(0,h.attr)(b,"height",(0,h.attr)(b,"height")?t:null)}const w=[l,c,d,u];v.image.editMargins&&(this.state.marginIsLocked?(0,h.css)(b,"margin",mi(l.value)):w.forEach((e=>{const t=(0,h.attr)(e,"data-ref")||"";(0,h.css)(b,t,mi(e.value))}))),v.image.editClass&&(0,h.attr)(b,"class",f.value||null),v.image.editId&&(0,h.attr)(b,"id",g.value||null),v.image.editAlign&&(0,pi.z)(b,m.value),this.j.synchronizeValues(),this.dialog.close()}openImageEditor(){const e=(0,h.attr)(this.state.image,"src")||"",t=this.j.c.element("a"),i=()=>{t.host===location.host||$(this.j.i18n("You can only edit your own images. Download this image on the host?"),(e=>{e&&this.j.uploader&&this.j.uploader.uploadRemoteImage(""+t.href,(e=>{U(this.j.i18n("The image has been successfully uploaded to the host!"),(()=>{(0,h.isString)(e.newfilename)&&((0,h.attr)(this.state.image,"src",e.baseurl+e.newfilename),this.updateValues())})).bindDestruct(this.j)}),(e=>{U(this.j.i18n("There was an error loading %s",e.message)).bindDestruct(this.j)}))})).bindDestruct(this.j)};t.href=e,this.j.filebrowser.dataProvider.getPathByUrl(""+t.href).then((i=>{me.call(this.j.filebrowser,t.href,i.name,i.path,i.source,(()=>{const t=(new Date).getTime();(0,h.attr)(this.state.image,"src",e+(-1!==e.indexOf("?")?"":"?")+"&_tmp="+t),this.updateValues()}),(e=>{U(e.message).bindDestruct(this.j)}))})).catch((e=>{U(e.message,i).bindDestruct(this.j)}))}openImagePopup(e){const t=new A.GI(this.j),{changeImage:i}=(0,h.refs)(this.form);t.setZIndex(this.dialog.getZIndex()+1),t.setContent((0,Gt.ov)(this.j,{upload:e=>{e.files&&e.files.length&&(0,h.attr)(this.state.image,"src",e.baseurl+e.files[0]),this.updateValues(),t.close()},filebrowser:e=>{e&&(0,h.isArray)(e.files)&&e.files.length&&((0,h.attr)(this.state.image,"src",e.files[0]),t.close(),this.updateValues())}},this.state.image,t.close)).open((()=>(0,h.position)(i))),e.stopPropagation()}afterInit(e){const t=this;e.e.on("afterConstructor changePlace",(()=>{e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",(i=>{const o=i.target;if(L.i.isTag(o,"img"))if(e.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",o))return;t.state.image=o,e.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),t.open())}else i.stopImmediatePropagation(),e.s.select(o)}))})).on("openImageProperties.imageproperties",(e=>{this.state.image=e,this.open()}))}beforeDestruct(e){this.dialog&&this.dialog.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}}(0,r.gn)([(0,z.watch)("state.marginIsLocked")],gi.prototype,"onChangeMarginIsLocked",null),(0,r.gn)([(0,z.watch)("state.sizeIsLocked")],gi.prototype,"onChangeSizeIsLocked",null),(0,r.gn)([z.autobind],gi.prototype,"onApply",null),(0,r.gn)([z.autobind],gi.prototype,"openImageEditor",null),(0,r.gn)([z.autobind],gi.prototype,"openImagePopup",null),a.D.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0};const vi="source-consumer",bi="__jodit_imageprocessor_binded",yi="__jodit_imageprocessor_bindedblob-id";class wi extends K{afterInit(e){}beforeDestruct(e){const t=e.buffer.get(yi);if(t){const i=Object.keys(t);for(const e of i)URL.revokeObjectURL(e);e.buffer.delete(yi)}}onAfterGetValueFromEditor(e,t){if(t!==vi)return this.onBeforeSetElementValue(e)}onBeforeSetElementValue(e){const{jodit:t}=this;if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;const i=t.buffer.get(yi);if(i){const t=Object.keys(i);for(const o of t)for(;e.value.includes(o);)e.value=e.value.replace(o,i[o])}}async afterChange(e){const{jodit:t}=this;t.editor&&(0,h.$$)("img",t.editor).forEach((e=>{(0,h.dataBind)(e,bi)||((0,h.dataBind)(e,bi,!0),e.complete||t.e.on(e,"load",(function i(){var o;!t.isInDestruct&&(null===(o=t.e)||void 0===o||o.fire("resize")),t.e.off(e,"load",i)})),e.src&&/^data:/.test(e.src)&&((e,t)=>{if(!e.o.imageProcessor.replaceDataURIToBlobIdInView)return;if("undefined"==typeof ArrayBuffer||"undefined"==typeof URL)return;const i=t.src,o=(e=>{const t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(t.length),s=new Uint8Array(o);for(let e=0;t.length>e;e++)s[e]=t.charCodeAt(e);return new Blob([o],{type:i})})(i);t.src=URL.createObjectURL(o),e.e.fire("internalUpdate");const{buffer:s}=e,n=s.get(yi)||{};n[t.src]=i,e.buffer.set(yi,n)})(t,e),t.e.on(e,"mousedown touchstart",(()=>{t.s.select(e)})))}))}}function Ci(e){e.registerButton({name:"image",group:"media"})}(0,r.gn)([(0,z.watch)(":afterGetValueFromEditor")],wi.prototype,"onAfterGetValueFromEditor",null),(0,r.gn)([(0,z.watch)(":beforeSetElementValue")],wi.prototype,"onBeforeSetElementValue",null),(0,r.gn)([(0,z.watch)([":change",":afterInit",":changePlace"]),(0,z.debounce)()],wi.prototype,"afterChange",null),a.D.prototype.controls.image={popup(e,t,i,o){let s=null;return t&&!L.i.isText(t)&&L.i.isHTMLElement(t)&&(L.i.isTag(t,"img")||(0,h.$$)("img",t).length)&&(s=L.i.isTag(t,"img")?t:(0,h.$$)("img",t)[0]),e.s.save(),(0,Gt.ov)(e,{filebrowser(t){e.s.restore(),t.files&&t.files.forEach((i=>e.s.insertImage(t.baseurl+i,null,e.o.imageDefaultWidth))),o()},upload:!0,async url(t,i){e.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(t)&&(t="//"+t);const n=s||e.createInside.element("img");n.setAttribute("src",t),n.setAttribute("alt",i),s||await e.s.insertImage(n,null,e.o.imageDefaultWidth),o()}},s,o)},tags:["img"],tooltip:"Insert Image"},a.D.prototype.controls.indent={tooltip:"Increase Indent"};const ki=(e,t)=>`${L.i.isCell(t)?"padding":"margin"}${"rtl"===e?"Right":"Left"}`;function Si(e){e.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});const t=t=>{const i=[];return e.s.eachSelection((o=>{e.s.save();let s=!!o&&L.i.up(o,L.i.isBlock,e.editor);const{enter:n}=e.o;if(!s&&o&&(s=L.i.wrapInline(o,n!==l.BR?n:l.PARAGRAPH,e)),!s)return e.s.restore(),!1;const r=i.includes(s);if(s&&!r){const o=ki(e.o.direction,s);i.push(s);let n=s.style[o]?parseInt(s.style[o],10):0;n+=e.o.indentMargin*("outdent"===t?-1:1),s.style[o]=n>0?n+"px":"",(0,h.attr)(s,"style")||(0,h.attr)(s,"style",null)}e.s.restore()})),e.synchronizeValues(),!1};e.registerCommand("indent",{exec:t,hotkeys:["ctrl+]","cmd+]"]}),e.registerCommand("outdent",{exec:t,hotkeys:["ctrl+[","cmd+["]})}function Ei(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",(()=>{const t=e.createInside.element("hr");e.s.insertNode(t,!1,!1);const i=L.i.closest(t.parentElement,L.i.isBlock,e.editor);i&&L.i.isEmpty(i)&&i!==e.editor&&(L.i.after(i,t),L.i.safeRemove(i));let o=L.i.next(t,L.i.isBlock,e.editor,!1);return o||(o=e.createInside.element(e.o.enter),L.i.after(t,o)),e.s.setCursorIn(o),!1}))}a.D.prototype.controls.outdent={isDisabled(e){const t=e.s.current();if(t){const i=L.i.closest(t,L.i.isBlock,e.editor);if(i){const t=ki(e.o.direction,i);return!i.style[t]||0>=parseInt(i.style[t],10)}}return!0},tooltip:"Decrease Indent"},a.D.prototype.indentMargin=10,a.D.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},a.D.prototype.toolbarInline=!0,a.D.prototype.toolbarInlineForSelection=!1,a.D.prototype.toolbarInlineDisableFor=[],a.D.prototype.toolbarInlineDisabledButtons=["source"],a.D.prototype.popup={a:i(100).Z,img:i(101).Z,cells:i(102).Z,toolbar:i(103).Z,jodit:i(104).Z,iframe:i(104).Z,"jodit-media":i(104).Z,selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]};class Ii extends K{constructor(){super(...arguments),this.requires=["select"],this.type=null,this.popup=new g.G(this.jodit,!1),this.toolbar=H(this.jodit,this.popup),this.snapRange=null,this.elmsList=(0,h.keys)(this.j.o.popup,!1).filter((e=>!this.isExcludedTarget(e)))}onClick(e){const t=this.elmsList,i=L.i.isTag(e,"img")?e:L.i.closest(e,t,this.j.editor);if(i&&this.canShowPopupForType(i.nodeName.toLowerCase()))return this.showPopup((()=>(0,h.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){this.previousTarget=i;const e=this.j.o.popup[t];let o;o=(0,h.isFunction)(e)?e(this.j,i,this.popup.close):e,(0,h.isArray)(o)&&(this.toolbar.build(o,i),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,o=this.toolbar.container),this.popup.setContent(o),this.type=t}return this.popup.open(e),!0}hidePopup(e){(0,h.isString)(e)&&e!==this.type||this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(e){const t=this.j.o.popup[e.toLowerCase()];return!(this.j.o.readonly||!this.j.o.toolbarInline||!t||this.isExcludedTarget(e))}isExcludedTarget(e){return(0,h.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){const t=this.toolbar.getButtonsNames();return(0,h.toArray)(e.registeredButtons).filter((e=>!this.j.o.toolbarInlineDisabledButtons.includes(e.name))).filter((e=>{const i=(0,h.isString)(e)?e:e.name;return i&&"|"!==i&&"\n"!==i&&!t.includes(i)}))}})).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",((e,t,i)=>{this.showPopup(t,i||((0,h.isString)(e)?e:e.nodeName),(0,h.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&&A.u1.closestElement(e.target,g.G))return;const{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;const e="selection",t=this.j.s.sel,i=this.j.s.range;(null==t?void 0:t.isCollapsed)||this.isSelectedTarget(i)||this.tableModule.getAllSelectedCells().length?this.type===e&&this.popup.isOpened&&this.hidePopup():this.j.s.current()&&this.showPopup((()=>i.getBoundingClientRect()),e)}isSelectedTarget(e){const t=e.startContainer;return L.i.isElement(t)&&t===e.endContainer&&L.i.isTag(t.childNodes[e.startOffset],(0,h.keys)(this.j.o.popup,!1))&&e.startOffset===e.endOffset-1}get tableModule(){return this.j.getInstance("Table",this.j.o)}beforeDestruct(e){e.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}_eventsList(){const e=this.elmsList;return e.map((e=>(0,h.camelCase)("click_"+e))).concat(e.map((e=>(0,h.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;const{range:t}=this.j.s;return t.getBoundingClientRect()}),"toolbar")}}(0,r.gn)([z.autobind],Ii.prototype,"onClick",null),(0,r.gn)([(0,z.wait)((e=>!e.j.isLocked))],Ii.prototype,"showPopup",null),(0,r.gn)([(0,z.watch)(":clickEditor"),z.autobind],Ii.prototype,"hidePopup",null),(0,r.gn)([(0,z.watch)(":outsideClick")],Ii.prototype,"onOutsideClick",null),(0,r.gn)([z.autobind],Ii.prototype,"onSelectionStart",null),(0,r.gn)([z.autobind],Ii.prototype,"onSelectionEnd",null),(0,r.gn)([(0,z.debounce)((e=>e.defaultTimeout))],Ii.prototype,"onSelectionChange",null),(0,r.gn)([z.autobind],Ii.prototype,"showInlineToolbar",null),a.D.prototype.controls.align={name:"left",tooltip:"Align",update(e,t){const i=e.control,o=t.s.current();if(o){const s=L.i.closest(o,L.i.isBlock,t.editor)||t.editor;let n=""+(0,h.css)(s,"text-align");i.defaultValue&&-1!==i.defaultValue.indexOf(n)&&(n="left"),i.data&&i.data.currentValue!==n&&i.list&&-1!==i.list.indexOf(n)&&(t.o.textIcons?e.state.text=n:e.state.icon.name=n,i.data.currentValue=n)}},isActive(e,t){const i=e.s.current();if(i&&t.defaultValue){const o=L.i.closest(i,L.i.isBlock,e.editor)||e.editor;return-1===t.defaultValue.indexOf(""+(0,h.css)(o,"text-align"))}return!1},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},a.D.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},a.D.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},a.D.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},a.D.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"};const xi=(e,t)=>{if(L.i.isNode(t)&&L.i.isElement(t))switch(L.i.each(t,(e=>{L.i.isHTMLElement(e)&&e.style.textAlign&&(e.style.textAlign="",e.style.cssText.trim().length||e.removeAttribute("style"))})),e.toLowerCase()){case"justifyfull":t.style.textAlign="justify";break;case"justifyright":t.style.textAlign="right";break;case"justifyleft":t.style.textAlign="left";break;case"justifycenter":t.style.textAlign="center"}};function zi(e){e.registerButton({name:"align",group:"indent"});const t=t=>(e.s.focus(),e.s.eachSelection((i=>{if(!i)return;let o=L.i.up(i,L.i.isBlock,e.editor);o||(o=L.i.wrapInline(i,e.o.enterBlock,e)),xi(t,o)})),!1);e.registerCommand("justifyfull",t),e.registerCommand("justifyright",t),e.registerCommand("justifyleft",t),e.registerCommand("justifycenter",t)}a.D.prototype.limitWords=!1,a.D.prototype.limitChars=!1,a.D.prototype.limitHTML=!1;class Ti extends K{afterInit(e){const{limitWords:t,limitChars:i}=e.o;if(e&&(t||i)){let t=null;e.e.off(".limit").on("beforePaste.limit",(()=>{t=e.history.snapshot.make()})).on("keydown.limit keyup.limit beforeEnter.limit beforePaste.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",(()=>{if(this.shouldPreventInsertHTML()&&t)return e.history.snapshot.restore(t),!1}))}}shouldPreventInsertHTML(e=null,t=""){if(e&&l.COMMAND_KEYS.includes(e.key))return!1;const{jodit:i}=this,{limitWords:o,limitChars:s}=i.o,n=this.splitWords(t||(i.o.limitHTML?i.value:i.text));return!(!o||o>n.length)||!!s&&n.join("").length>=s}checkPreventKeyPressOrPaste(e){if(this.shouldPreventInsertHTML(e))return!1}checkPreventChanging(e,t){const{jodit:i}=this,{limitWords:o,limitChars:s}=i.o,n=i.o.limitHTML?e:(0,h.stripTags)(e),r=this.splitWords(n);(o&&r.length>o||s&&r.join("").length>s)&&(i.value=t)}splitWords(e){return e.replace((0,l.INVISIBLE_SPACE_REG_EXP)(),"").split((0,l.SPACE_REG_EXP)()).filter((e=>e.length))}beforeDestruct(e){e.e.off(".limit")}}(0,r.gn)([z.autobind],Ti.prototype,"checkPreventKeyPressOrPaste",null),(0,r.gn)([z.autobind],Ti.prototype,"checkPreventChanging",null),a.D.prototype.defaultLineHeight=null,a.D.prototype.controls.lineHeight={icon:"line-height",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,h.memorizeExec)(e,t,{control:i},(e=>e))};class ji extends K{constructor(){super(...arguments),this.buttons=[{name:"lineHeight",group:"font"}]}afterInit(e){(0,h.css)(e.editor,{lineHeight:e.o.defaultLineHeight}),e.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(e,t,i){const{s:o,createInside:s,editor:n,o:r}=this.j;let a;o.isFocused()||o.focus(),o.save();const l=e=>{let t=L.i.closest(e,L.i.isBlock,n);t||(t=L.i.wrap(e,r.enter,s));const o=(0,h.css)(t,"lineHeight");void 0===a&&(a=""+o!=""+i),(0,h.css)(t,"lineHeight",a?i:null)};try{if(o.isCollapsed()){const e=s.fake();o.insertNode(e,!1,!1),l(e),L.i.safeRemove(e)}else o.eachSelection(l)}finally{o.restore()}}beforeDestruct(e){(0,h.css)(e.editor,{lineHeight:null})}}(0,r.gn)([z.autobind],ji.prototype,"applyLineHeight",null);var Li=i(77);a.D.prototype.link={formTemplate(e){const{openInNewTabCheckbox:t,noFollowCheckbox:i,modeClassName:o,selectSizeClassName:s,selectMultipleClassName:n,selectOptionsClassName:r}=e.o.link;return new Li.x4(e,[new Li.eC(e,[new Li.u3(e,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new Li.eC(e,[new Li.u3(e,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),o?new Li.eC(e,["input"===o?new Li.u3(e,{name:"className",ref:"className_input",label:"Class name"}):"select"===o?new Li.Cj(e,{name:"className",ref:"className_select",label:"Class name",size:s,multiple:n,options:r}):null]):null,t?new Li.mA(e,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,i?new Li.mA(e,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new Li.eC(e,[new v.y3(e,{name:"unlink",variant:"default",text:"Unlink"}),new v.y3(e,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])},followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},a.D.prototype.controls.unlink={exec(e,t){const i=vt.i.closest(t,"a",e.editor);i&&vt.i.unwrap(i),e.synchronizeValues(),e.e.fire("hidePopup")},tooltip:"Unlink"},a.D.prototype.controls.link={isActive(e){const t=e.s.current();return!(!t||!vt.i.closest(t,"a",e.editor))},popup:(e,t,i,o)=>e.e.fire("generateLinkForm.link",t,o),tags:["a"],tooltip:"Insert link"};class Ai extends K{constructor(){super(...arguments),this.buttons=[{name:"link",group:"insert"}]}afterInit(e){e.o.link.followOnDblClick&&e.e.on("dblclick.link",this.onDblClickOnLink),e.o.link.processPastedLink&&e.e.on("processPaste.link",this.onProcessPasteLink),e.e.on("generateLinkForm.link",this.generateForm),e.registerCommand("openLinkDialog",{exec:()=>{const t=new V({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((()=>{const{url_input:e}=(0,h.refs)(i.container);null==e||e.focus()}))},hotkeys:e.o.link.hotkeys})}onDblClickOnLink(e){if(!L.i.isTag(e.target,"a"))return;const t=(0,h.attr)(e.target,"href");t&&(location.href=t,e.preventDefault())}onProcessPasteLink(e,t){const{jodit:i}=this;if((0,h.isURL)(t)){if(i.o.link.processVideoLink){const e=(0,h.convertMediaUrlToVideoEmbed)(t);if(e!==t)return i.e.stopPropagation("processPaste"),i.createInside.fromHTML(e)}const e=i.createInside.element("a");return e.setAttribute("href",t),e.textContent=t,i.e.stopPropagation("processPaste"),e}}generateForm(e,t){const{jodit:i}=this,o=i.i18n.bind(i),{openInNewTabCheckbox:s,noFollowCheckbox:n,formTemplate:r,formClassName:a,modeClassName:l}=i.o.link,c=r(i),d=(0,h.isString)(c)?i.c.fromHTML(c,{target_checkbox_box:s,nofollow_checkbox_box:n}):c,u=L.i.isElement(d)?d:d.container,p=(0,h.refs)(u),{insert:m,unlink:f,content_input_box:g}=p,{target_checkbox:v,nofollow_checkbox:b,url_input:y}=p,w=L.i.isImage(e);let{content_input:C}=p;const{className_input:k}=p,{className_select:S}=p;let E;C||(C=i.c.element("input",{type:"hidden",ref:"content_input"})),a&&u.classList.add(a),w&&L.i.hide(g);const I=()=>E?E.innerText:(0,h.stripTags)(i.s.range.cloneContents(),i.ed);if(E=!(!e||!L.i.closest(e,"a",i.editor))&&L.i.closest(e,"a",i.editor),!w&&e&&(C.value=I()),E){if(y.value=(0,h.attr)(E,"href")||"",l)switch(l){case"input":k&&(k.value=(0,h.attr)(E,"class")||"");break;case"select":if(S){for(let e=0;S.selectedOptions.length>e;e++){const t=S.options.item(e);t&&(t.selected=!1)}((0,h.attr)(E,"class")||"").split(" ").forEach((e=>{if(e)for(let t=0;S.options.length>t;t++){const i=S.options.item(t);(null==i?void 0:i.value)&&i.value===e&&(i.selected=!0)}}))}}s&&v&&(v.checked="_blank"===(0,h.attr)(E,"target")),n&&b&&(b.checked="nofollow"===(0,h.attr)(E,"rel")),m.textContent=o("Update")}else L.i.hide(f);i.editor.normalize();const x=i.history.snapshot.make();f&&i.e.on(f,"click",(e=>{i.s.restore(),i.history.snapshot.restore(x),E&&L.i.unwrap(E),i.synchronizeValues(),t(),e.preventDefault()}));const z=()=>{if(!y.value.trim().length)return y.focus(),y.classList.add("jodit_error"),!1;let e;i.s.restore(),i.s.removeMarkers(),i.editor.normalize(),i.history.snapshot.restore(x);const o=I()!==C.value.trim(),r=i.createInside;if(E)e=[E];else{if(i.s.isCollapsed()){const t=r.element("a");i.s.insertNode(t,!1,!1),e=[t]}else{const t=i.s.current();e=L.i.isTag(t,["img"])?[L.i.wrap(t,"a",r)]:i.s.wrapInTag("a")}e.forEach((e=>i.s.select(e)))}return e.forEach((e=>{var t;if((0,h.attr)(e,"href",y.value),l&&(null!=k?k:S))if("input"===l)""===k.value&&e.hasAttribute("class")&&(0,h.attr)(e,"class",null),""!==k.value&&(0,h.attr)(e,"class",k.value);else if("select"===l){e.hasAttribute("class")&&(0,h.attr)(e,"class",null);for(let i=0;S.selectedOptions.length>i;i++){const o=null===(t=S.selectedOptions.item(i))||void 0===t?void 0:t.value;o&&e.classList.add(o)}}if(!w){let t=e.textContent;C.value.trim().length?o&&(t=C.value):t=y.value,t!==e.textContent&&(e.textContent=t)}s&&v&&(0,h.attr)(e,"target",v.checked?"_blank":null),n&&b&&(0,h.attr)(e,"rel",b.checked?"nofollow":null),i.e.fire("applyLink",i,e,d)})),i.synchronizeValues(),t(),!1};return L.i.isElement(d)?i.e.on(d,"submit",(e=>(e.preventDefault(),e.stopImmediatePropagation(),z(),!1))):d.onSubmit(z),d}beforeDestruct(e){e.e.off("generateLinkForm.link",this.generateForm).off("dblclick.link",this.onDblClickOnLink).off("processPaste.link",this.onProcessPasteLink)}}function Mi(e){const t="jodit_fake_wrapper",{mediaFakeTag:i,mediaBlocks:o,mediaInFakeBlock:s}=e.options;s&&e.e.on("afterGetValueFromEditor",(e=>{const o=RegExp(`<${i}[^>]+data-${t}[^>]+>([^]+?)</${i}>`,"ig");o.test(e.value)&&(e.value=e.value.replace(o,"$1"))})).on("change afterInit afterSetMode changePlace",e.async.debounce((()=>{e.isDestructed||e.getMode()===l.MODE_SOURCE||(0,h.$$)(o.join(","),e.editor).forEach((o=>{(0,h.dataBind)(o,t)||((0,h.dataBind)(o,t,!0),(o=>{if(o.parentNode&&(0,h.attr)(o.parentNode,"data-jodit_iframe_wrapper"))o=o.parentNode;else{const s=e.createInside.element(i,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,["data-"+t]:1});(0,h.attr)(s,"style",(0,h.attr)(o,"style")),s.style.display="inline-block"===o.style.display?"inline-block":"block",s.style.width=o.offsetWidth+"px",s.style.height=o.offsetHeight+"px",o.parentNode&&o.parentNode.insertBefore(s,o),s.appendChild(o),o=s}e.e.off(o,"mousedown.select touchstart.select").on(o,"mousedown.select touchstart.select",(()=>{e.s.setCursorAfter(o)}))})(o))}))}),e.defaultTimeout))}function Di(e){e.registerButton({name:"video",group:"media"})}function Pi(e){e.registerButton({name:"file",group:"media"})}function _i(e){let t=0,i=(0,h.splitArray)(e.o.buttons);e.o.mobileTapTimeout&&e.e.on("touchend",(i=>{if(i.changedTouches&&i.changedTouches.length){const o=(new Date).getTime(),s=o-t;s>e.o.mobileTapTimeout&&(t=o,1.5*e.o.mobileTapTimeout>s&&e.s.insertCursorAtPoint(i.clientX,i.clientY))}})),e.e.on("getDiffButtons.mobile",(t=>{if(t===e.toolbar){const t=(0,F.q)((0,h.splitArray)(e.o.buttons),e),o=(0,F.q)(i,e);return(0,h.toArray)(t).reduce(((e,t)=>(o.has(t)||e.push(t),e)),[])}})),e.o.toolbarAdaptive&&e.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",(()=>{var t;if(!e.o.toolbar)return;const o=(null!==(t=e.container.parentElement)&&void 0!==t?t:e.container).offsetWidth,s=(0,h.splitArray)(e.o.sizeLG>o?e.o.sizeMD>o?e.o.sizeSM>o?e.o.buttonsXS:e.o.buttonsSM:e.o.buttonsMD:e.o.buttons);""+s!=""+i&&(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")))}(0,r.gn)([z.autobind],Ai.prototype,"onDblClickOnLink",null),(0,r.gn)([z.autobind],Ai.prototype,"onProcessPasteLink",null),(0,r.gn)([z.autobind],Ai.prototype,"generateForm",null),a.D.prototype.mediaFakeTag="jodit-media",a.D.prototype.mediaInFakeBlock=!0,a.D.prototype.mediaBlocks=["video","audio"],a.D.prototype.controls.video={popup(e,t,i,o){const s=new Li.x4(e,[new Li.eC(e,[new Li.u3(e,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new Li.eC(e,[(0,v.zx)(e,"","Insert","primary").onAction((()=>s.submit()))])]),n=new Li.x4(e,[new Li.eC(e,[new Li.GJ(e,{name:"code",required:!0,label:"Embed code"})]),new Li.eC(e,[(0,v.zx)(e,"","Insert","primary").onAction((()=>n.submit()))])]),r=[],a=t=>{e.s.restore(),e.s.insertHTML(t),o()};return e.s.save(),r.push({icon:"link",name:"Link",content:s.container},{icon:"source",name:"Code",content:n.container}),s.onSubmit((e=>{a((0,h.convertMediaUrlToVideoEmbed)(e.url))})),n.onSubmit((e=>{a(e.code)})),(0,Gt.IL)(e,r)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"},a.D.prototype.controls.file={popup(e,t,i,o){const s=(t,i="")=>{e.s.insertNode(e.createInside.fromHTML(`<a href="${t}" title="${i}">${i||t}</a>`))};let n=null;return t&&(L.i.isTag(t,"a")||L.i.closest(t,"a",e.editor))&&(n=L.i.isTag(t,"a")?t:L.i.closest(t,"a",e.editor)),(0,Gt.ov)(e,{filebrowser(e){e.files&&e.files.forEach((t=>s(e.baseurl+t))),o()},upload:!0,url(e,t){n?(n.setAttribute("href",e),n.setAttribute("title",t)):s(e,t),o()}},n,o,!1)},tags:["a"],tooltip:"Insert file"},a.D.prototype.mobileTapTimeout=300,a.D.prototype.toolbarAdaptive=!0,a.D.prototype.controls.dots={mode:l.MODE_SOURCE+l.MODE_WYSIWYG,popup(e,t,i,o,s){let n=i.data;return void 0===n&&(n={toolbar:H(e),rebuild(){var t;if(s){const i=e.e.fire("getDiffButtons.mobile",s.closest(M));if(i&&n){n.toolbar.build((0,h.splitArray)(i));const o=(null===(t=e.toolbar.firstButton)||void 0===t?void 0:t.container.offsetWidth)||36;n.toolbar.container.style.width=3*(o+4)+"px"}}}},i.data=n),n.rebuild(),n.toolbar},tooltip:"Show all"};var Ri=i(31);const Ni=(e,t,{control:i})=>{var o;const s="button"+i.command,n=null!==(o=i.args&&i.args[0])&&void 0!==o?o:(0,Ri.q)(e,s);(0,Ri.q)(e,s,n),e.execCommand(i.command,!1,"default"===n?null:n)};a.D.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:Ni},a.D.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:Ni};class qi extends K{constructor(){super(...arguments),this.buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}]}afterInit(e){e.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(e,t,i){return this.jodit.s.applyStyle({listStyleType:null!=i?i:null},{element:"insertunorderedlist"===e?"ul":"ol"}),this.jodit.synchronizeValues(),!1}beforeDestruct(e){}}function Bi(e){e.o.hidePoweredByJodit||e.o.inline||!(e.o.showCharsCounter||e.o.showWordsCounter||e.o.showXPathInStatusbar)||e.hookStatus("ready",(()=>{e.statusbar.append(e.create.fromHTML('<a\n\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\tstyle="text-transform: uppercase"\n\t\t\t\t\t\tclass="jodit-status-bar-link"\n\t\t\t\t\t\ttarget="_blank"\n\t\t\t\t\t\thref="https://xdsoft.net/jodit/">\n\t\t\t\t\t\t\tPowered by Jodit\n\t\t\t\t\t\t</a>'),!0)}))}(0,r.gn)([z.autobind],qi.prototype,"onCommand",null),a.D.prototype.showPlaceholder=!0,a.D.prototype.placeholder="Type something",a.D.prototype.useInputsPlaceholder=!0;class Hi extends K{constructor(){super(...arguments),this.addNativeListeners=()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)},this.addEvents=()=>{const e=this.j;e.o.useInputsPlaceholder&&e.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,h.attr)(e.element,"placeholder")||""),e.e.fire("placeholder",this.placeholderElm.innerHTML),e.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()}}afterInit(e){e.o.showPlaceholder&&(this.placeholderElm=e.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${e.i18n(e.o.placeholder)}</span>`),"rtl"===e.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),e.e.on("readonly",(e=>{e?this.hide():this.toggle()})).on("changePlace",this.addEvents),this.addEvents())}show(){const e=this.j;if(e.o.readonly)return;let t=0,i=0;const o=e.s.current(),s=o&&L.i.closest(o,L.i.isBlock,e.editor)||e.editor,n=e.ew.getComputedStyle(s);e.workplace.appendChild(this.placeholderElm);const{firstChild:r}=e.editor;if(L.i.isElement(r)&&!Ae.Ph.isMarker(r)){const o=e.ew.getComputedStyle(r);t=parseInt(o.getPropertyValue("margin-top"),10),i=parseInt(o.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(o.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=o.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(n.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=n.getPropertyValue("line-height");(0,h.css)(this.placeholderElm,{display:"block",textAlign:n.getPropertyValue("text-align"),marginTop:Math.max(parseInt(n.getPropertyValue("margin-top"),10),t),marginLeft:Math.max(parseInt(n.getPropertyValue("margin-left"),10),i)})}hide(){L.i.safeRemove(this.placeholderElm)}toggle(){const e=this.j;e.editor&&!e.isInDestruct&&(e.getRealMode()===l.MODE_WYSIWYG&&(e=>{if(!e.firstChild)return!0;const t=e.firstChild;if(l.MAY_BE_REMOVED_WITH_KEY.test(t.nodeName)||/^(TABLE)$/i.test(t.nodeName))return!1;const i=L.i.next(t,(e=>e&&!L.i.isEmptyTextNode(e)),e);return L.i.isText(t)&&!i?L.i.isEmptyTextNode(t):!i&&L.i.each(t,(e=>!L.i.isTag(e,["ul","li","ol"])&&(L.i.isEmpty(e)||L.i.isTag(e,"br"))))})(e.editor)?this.show():this.hide())}beforeDestruct(e){this.hide(),e.e.off(".placeholder").off(window,"load",this.toggle)}}(0,r.gn)([(0,z.debounce)((e=>e.defaultTimeout/10),!0)],Hi.prototype,"toggle",null),a.D.prototype.controls.redo={mode:l.MODE_SPLIT,isDisabled:e=>!e.history.canRedo(),tooltip:"Redo"},a.D.prototype.controls.undo={mode:l.MODE_SPLIT,isDisabled:e=>!e.history.canUndo(),tooltip:"Undo"};class Oi extends K{constructor(){super(...arguments),this.buttons=[{name:"undo",group:"history"},{name:"redo",group:"history"}]}beforeDestruct(){}afterInit(e){const t=t=>(e.history[t](),!1);e.registerCommand("redo",{exec:t,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),e.registerCommand("undo",{exec:t,hotkeys:["ctrl+z","cmd+z"]})}}a.D.prototype.allowResizeTags=["img","iframe","table","jodit"],a.D.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:["img"]};const Fi="__jodit-resizer_binded";class Wi extends K{constructor(){super(...arguments),this.LOCK_KEY="resizer",this.element=null,this.isResized=!1,this.isShown=!1,this.start_x=0,this.start_y=0,this.width=0,this.height=0,this.ratio=0,this.rect=this.j.c.fromHTML('<div class="jodit-resizer">\n\t\t\t\t<div class="jodit-resizer__top-left"></div>\n\t\t\t\t<div class="jodit-resizer__top-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-left"></div>\n\t\t\t\t<span>100x100</span>\n\t\t\t</div>'),this.sizeViewer=this.rect.getElementsByTagName("span")[0],this.onResize=e=>{if(this.isResized){if(!this.element)return;let t,i;if(this.j.options.iframe){const o=this.getWorkplacePosition();t=e.clientX+o.left-this.start_x,i=e.clientY+o.top-this.start_y}else t=e.clientX-this.start_x,i=e.clientY-this.start_y;const o=this.handle.className;let s=0,n=0;const r=this.j.o.resizer.useAspectRatio;!0===r||Array.isArray(r)&&L.i.isTag(this.element,r)?(t?(s=this.width+(o.match(/left/)?-1:1)*t,n=Math.round(s/this.ratio)):(n=this.height+(o.match(/top/)?-1:1)*i,s=Math.round(n*this.ratio)),s>(0,h.innerWidth)(this.j.editor,this.j.ow)&&(s=(0,h.innerWidth)(this.j.editor,this.j.ow),n=Math.round(s/this.ratio))):(s=this.width+(o.match(/left/)?-1:1)*t,n=this.height+(o.match(/top/)?-1:1)*i),s>this.j.o.resizer.min_width&&this.applySize(this.element,"width",this.rect.parentNode.offsetWidth>s?s:"100%"),n>this.j.o.resizer.min_height&&this.applySize(this.element,"height",n),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),e.stopImmediatePropagation()}},this.onClickOutside=e=>{this.isShown&&(this.isResized?(this.j.unlock(),this.isResized=!1,this.j.synchronizeValues(),e.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove.resizer touchmove.resizer",this.onResize)):this.hide())},this.onClickElement=e=>{this.isResized||this.element===e&&this.isShown||(this.element=e,this.show(),L.i.isTag(this.element,"img")&&!this.element.complete&&this.j.e.one(this.element,"load",this.updateSize))},this.updateSize=()=>{if(!this.isInDestruct&&this.isShown&&this.element&&this.rect){const e=this.getWorkplacePosition(),t=(0,h.offset)(this.element,this.j,this.j.ed),i=parseInt(this.rect.style.left||"0",10),o=this.rect.offsetWidth,s=this.rect.offsetHeight,n=t.top-e.top,r=t.left-e.left;parseInt(this.rect.style.top||"0",10)===n&&i===r&&o===this.element.offsetWidth&&s===this.element.offsetHeight||((0,h.css)(this.rect,{top:n,left:r,width:this.element.offsetWidth,height:this.element.offsetHeight}),this.j.events&&(this.j.e.fire(this.element,"changesize"),isNaN(i)||this.j.e.fire("resize")))}},this.hideSizeViewer=()=>{this.sizeViewer.style.opacity="0"}}afterInit(e){(0,h.$$)("div",this.rect).forEach((t=>{e.e.on(t,"mousedown.resizer touchstart.resizer",this.onClickHandle.bind(this,t))})),x.TB.on("hideHelpers",this.hide),e.e.on("readonly",(e=>{e&&this.hide()})).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",(e=>{const t=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;t.test(e.value)&&(e.value=e.value.replace(t,"$1"))})).on("hideResizer",this.hide).on("change afterInit afterSetMode",this.onChangeEditor),this.addEventListeners(),this.onChangeEditor()}onEditorClick(e){let t=e.target;const{editor:i,options:{allowResizeTags:o}}=this.j;for(;t&&t!==i;){if(L.i.isTag(t,o))return this.bind(t),void this.onClickElement(t);t=t.parentNode}}addEventListeners(){const e=this.j;e.e.off(e.editor,".resizer").off(e.ow,".resizer").on(e.editor,"keydown.resizer",(e=>{this.isShown&&e.key===l.KEY_DELETE&&this.element&&!L.i.isTag(this.element,"table")&&this.onDelete(e)})).on(e.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on(e.ow,"mouseup.resizer keydown.resizer touchend.resizer",this.onClickOutside).on([e.ow,e.editor],"scroll.resizer",(()=>{this.isShown&&!this.isResized&&this.hide()}))}onClickHandle(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.isResized=!0,this.start_x=t.clientX,this.start_y=t.clientY,this.j.e.fire("hidePopup"),this.j.lock(this.LOCK_KEY),this.j.e.on(this.j.ow,"mousemove.resizer touchmove.resizer",this.onResize)}getWorkplacePosition(){return(0,h.offset)(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}applySize(e,t,i){const o=L.i.isImage(e)&&this.j.o.resizer.forImageChangeAttributes;o&&(0,h.attr)(e,t,i),o&&!e.style[t]||(0,h.css)(e,t,i)}onDelete(e){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(L.i.safeRemove(this.element),this.hide(),e.preventDefault()))}onChangeEditor(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),(0,h.$$)("iframe",this.j.editor).forEach(this.bind)}bind(e){if(!L.i.isHTMLElement(e)||!this.j.o.allowResizeTags.includes(e.tagName.toLowerCase())||(0,h.dataBind)(e,Fi))return;let t;if((0,h.dataBind)(e,Fi,!0),L.i.isTag(e,"iframe")){const i=e;L.i.isHTMLElement(e.parentNode)&&(0,h.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,h.attr)(t,"style",(0,h.attr)(e,"style")),(0,h.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,h.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)}showSizeViewer(e,t){this.j.o.resizer.showSize&&(this.sizeViewer.offsetWidth>e||this.sizeViewer.offsetHeight>t?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,h.markOwner)(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=""+(0,h.css)(this.j.container,"zIndex")),this.updateSize())}hide(){this.isResized||(this.isResized=!1,this.isShown=!1,this.element=null,L.i.safeRemove(this.rect),(0,h.$$)("[data-jodit-wrapper_active='true']",this.j.editor).forEach((e=>(0,h.attr)(e,"data-jodit-wrapper_active",!1))))}beforeDestruct(e){this.hide(),x.TB.off("hideHelpers",this.hide),e.e.off(this.j.ow,".resizer").off(".resizer")}}(0,r.gn)([(0,z.watch)(":click")],Wi.prototype,"onEditorClick",null),(0,r.gn)([(0,z.debounce)()],Wi.prototype,"onChangeEditor",null),(0,r.gn)([z.autobind],Wi.prototype,"bind",null),(0,r.gn)([z.autobind],Wi.prototype,"hide",null);var Vi=i(65);class Ui{constructor(e=Vi.Q){this.searchIndex=e,this.queue=[],this.value=""}add(e){var t;const i=(null!==(t=e.nodeValue)&&void 0!==t?t:"").toLowerCase();if(!i.length)return;const o=this.value.length;this.queue.push({startIndex:o,endIndex:o+i.length,node:e}),this.value+=i}ranges(e,t=0){const i=[];let o=t,s=0,n=0;do{if([o,s]=this.searchIndex(e,this.value,o),-1!==o){let e,t,r=0,a=0;for(let i=n;this.queue.length>i;i+=1)if(!e&&this.queue[i].endIndex>o&&(e=this.queue[i].node,r=o-this.queue[i].startIndex),e&&this.queue[i].endIndex>=o+s){t=this.queue[i].node,a=o+s-this.queue[i].startIndex,n=i;break}e&&t&&i.push({startContainer:e,startOffset:r,endContainer:t,endOffset:a}),o+=s}}while(-1!==o);return 0===i.length?null:i}}const Yi="jd-tmp-selection";function $i(e,t,i,o){if(null==e.startContainer.nodeValue||null==e.endContainer.nodeValue)return;const s=i.element("span",{[Yi]:!0}),n=e.startContainer.nodeValue;let r=0;if(0!==e.startOffset){const t=i.text(n.substring(0,e.startOffset));e.startContainer.nodeValue=n.substring(e.startOffset),L.i.before(e.startContainer,t),e.startContainer===e.endContainer&&(r=e.startOffset,e.endOffset-=r),e.startOffset=0}const a=e.endContainer.nodeValue;if(e.endOffset!==a.length){const o=i.text(a.substring(e.endOffset));e.endContainer.nodeValue=a.substring(0,e.endOffset),L.i.after(e.endContainer,o);for(const i of t){if(i.startContainer!==e.endContainer)break;i.startContainer=o,i.startOffset=i.startOffset-e.endOffset-r,i.endContainer===e.endContainer&&(i.endContainer=o,i.endOffset=i.endOffset-e.endOffset-r)}e.endOffset=e.endContainer.nodeValue.length}let l=e.startContainer;do{if(!l)break;if(!L.i.isText(l)||L.i.isElement(c=l.parentNode)&&c.hasAttribute(Yi)||L.i.wrap(l,s.cloneNode(),i),l===e.endContainer)break;let t=l.firstChild||l.nextSibling;if(!t){for(;l&&!l.nextSibling&&l!==o;)l=l.parentNode;t=null==l?void 0:l.nextSibling}l=t}while(l&&l!==o);var c}function Gi(e){return(0,Xt.$$)(`[${Yi}]`,e)}function Ki(e){Gi(e).forEach((e=>L.i.unwrap(e)))}let Ji=class extends A.u1{constructor(e){super(e),this.selInfo=null,this._currentIndex=0,this.isOpened=!1;const{query:t,replace:i,cancel:o,next:s,prev:n,replaceBtn:r,current:a,count:c}=(0,h.refs)(this.container);this.queryInput=t,this.replaceInput=i,this.closeButton=o,this.replaceButton=r,this.currentBox=a,this.countBox=c,e.e.on(this.closeButton,"pointerdown",(()=>(this.close(),!1))).on(this.queryInput,"input",(()=>{this.currentIndex=0})).on(this.queryInput,"pointerdown",(()=>{e.s.isFocused()&&(e.s.removeMarkers(),this.selInfo=e.s.save())})).on(this.replaceButton,"pointerdown",(()=>(e.e.fire(this,"pressReplaceButton"),!1))).on(s,"pointerdown",(()=>(e.e.fire("searchNext"),!1))).on(n,"pointerdown",(()=>(e.e.fire("searchPrevious"),!1))).on(this.queryInput,"input",(()=>{this.setMod("empty-query",!(0,h.trim)(this.queryInput.value).length)})).on(this.queryInput,"keydown",this.j.async.debounce((t=>{t.key===l.KEY_ENTER?(t.preventDefault(),t.stopImmediatePropagation(),e.e.fire("searchNext")&&this.close()):e.e.fire(this,"needUpdateCounters")}),this.j.defaultTimeout))}className(){return"UISearch"}render(){return`<div>\n\t\t\t<div class="&__box">\n\t\t\t\t<div class="&__inputs">\n\t\t\t\t\t<input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>\n\t\t\t\t\t<input data-ref="replace" tabindex="0" placeholder="~Replace with~" type="text"/>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__counts">\n\t\t\t\t\t<span data-ref="counter-box">\n\t\t\t\t\t\t<span data-ref="current">0</span><span>/</span><span data-ref="count">0</span>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__buttons">\n\t\t\t\t\t<button data-ref="next" tabindex="0" type="button">${A.JO.get("angle-down")}</button>\n\t\t\t\t\t<button data-ref="prev" tabindex="0" type="button">${A.JO.get("angle-up")}</button>\n\t\t\t\t\t<button data-ref="cancel" tabindex="0" type="button">${A.JO.get("cancel")}</button>\n\t\t\t\t\t<button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>`}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.currentBox.innerText=""+e}set count(e){this.countBox.innerText=""+e}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(e){if(!this.isOpened)return;const{j:t}=this;if(t.getRealMode()===l.MODE_WYSIWYG)switch(e.key){case l.KEY_ESC:this.close();break;case l.KEY_F3:this.queryInput.value&&(t.e.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}open(e=!1){this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",e);const t=""+(this.j.s.sel||"");t&&(this.queryInput.value=t),this.setMod("empty-query",!t.length),this.j.e.fire(this,"needUpdateCounters"),t?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),L.i.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(e){if(this.isOpened)if(this.setMod("sticky",e),e){const e=(0,h.position)(this.j.toolbarContainer);(0,h.css)(this.container,{top:e.top+e.height,left:e.left+e.width})}else(0,h.css)(this.container,{top:null,left:null})}};(0,r.gn)([(0,z.watch)([":keydown","queryInput:keydown"])],Ji.prototype,"onEditorKeyDown",null),(0,r.gn)([z.autobind],Ji.prototype,"open",null),(0,r.gn)([z.autobind],Ji.prototype,"close",null),(0,r.gn)([(0,z.watch)(":toggleSticky")],Ji.prototype,"calcSticky",null),Ji=(0,r.gn)([z.component],Ji),a.D.prototype.useSearch=!0,a.D.prototype.search={lazyIdleTimeout:0},a.D.prototype.controls.find={tooltip:"Find",icon:"search",exec(e,t,{control:i}){switch(i.args&&i.args[0]){case"findPrevious":e.e.fire("searchPrevious");break;case"findNext":e.e.fire("searchNext");break;case"replace":e.execCommand("openReplaceDialog");break;default:e.execCommand("openSearchDialog")}},list:{search:"Find",findNext:"Find Next",findPrevious:"Find Previous",replace:"Replace"},childTemplate:(e,t,i)=>i};class Xi extends K{constructor(){super(...arguments),this.buttons=[{name:"find",group:"search"}],this.previousQuery="",this.drawPromise=null,this.walker=null,this.walkerCount=null,this.cache={},this.wrapFrameRequest=0}get ui(){return new Ji(this.j)}async updateCounters(){this.ui.isOpened&&(this.ui.count=await this.calcCounts(this.ui.query))}onPressReplaceButton(){this.findAndReplace(this.ui.query),this.updateCounters()}tryScrollToElement(e){let t=L.i.closest(e,L.i.isElement,this.j.editor);t||(t=L.i.prev(e,L.i.isElement,this.j.editor)),t&&t!==this.j.editor&&(0,h.scrollIntoViewIfNeeded)(t,this.j.editor,this.j.ed)}async calcCounts(e){return this.walkerCount&&this.walkerCount.break(),this.walkerCount=new L.b(this.j.async,{timeout:this.j.o.search.lazyIdleTimeout}),(await this.find(this.walkerCount,e).catch((()=>[]))).length}async findAndReplace(e){this.walker&&this.walker.break(),this.walker=new L.b(this.j.async,{timeout:this.j.o.search.lazyIdleTimeout});const t=this.j.s.range,i=await this.find(this.walker,e).catch((()=>[]));let o=this.findCurrentIndexInRanges(i,t);-1===o&&(o=0);const s=i[o];if(s){try{const e=this.j.ed.createRange();e.setStart(s.startContainer,s.startOffset),e.setEnd(s.endContainer,s.endOffset),e.deleteContents();const t=this.j.createInside.text(this.ui.replace);e.insertNode(t),this.j.s.select(t),this.tryScrollToElement(t),this.cache={},this.j.synchronizeValues()}catch(e){}return this.j.e.fire("afterFindAndReplace"),!0}return!1}async findAndSelect(e,t){var i;this.walker&&this.walker.break(),this.walker=new L.b(this.j.async,{timeout:this.j.defaultTimeout});const o=await this.find(this.walker,e);if(!o.length)return!1;this.previousQuery===e&&Gi(this.j.editor).length||(null===(i=this.drawPromise)||void 0===i||i.rejectCallback(),this.j.async.cancelAnimationFrame(this.wrapFrameRequest),Ki(this.j.editor),this.drawPromise=this.drawSelectionRanges(o)),this.previousQuery=e;let s=this.ui.currentIndex-1;s=-1===s?0:t?s===o.length-1?0:s+1:0===s?o.length-1:s-1,this.ui.currentIndex=s+1;const n=o[s];if(n){const e=this.j.ed.createRange();try{e.setStart(n.startContainer,n.startOffset),e.setEnd(n.endContainer,n.endOffset),this.j.s.selectRange(e)}catch(e){}return this.tryScrollToElement(n.startContainer),await this.updateCounters(),await this.drawPromise,this.j.e.fire("afterFindAndSelect"),!0}return!1}findCurrentIndexInRanges(e,t){return e.findIndex((e=>e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.startContainer&&e.endOffset===t.endOffset))}async isValidCache(e){return(await e).every((e=>{var t,i,o,s;return e.startContainer.isConnected&&e.startOffset<=(null!==(i=null===(t=e.startContainer.nodeValue)||void 0===t?void 0:t.length)&&void 0!==i?i:0)&&e.endContainer.isConnected&&e.endOffset<=(null!==(s=null===(o=e.endContainer.nodeValue)||void 0===o?void 0:o.length)&&void 0!==s?s:0)}))}async find(e,t){if(!t.length)return[];const i=this.cache[t];if(i&&await this.isValidCache(i))return i;const o=new Ui(this.j.o.search.fuzzySearch);return this.cache[t]=this.j.async.promise((i=>{e.on("break",(()=>{i([])})).on("visit",(e=>(L.i.isText(e)&&o.add(e),!1))).on("end",(()=>{var e;i(null!==(e=o.ranges(t))&&void 0!==e?e:[])})).setWork(this.j.editor)})),this.cache[t]}drawSelectionRanges(e){const{async:t,createInside:i,editor:o}=this.j;t.cancelAnimationFrame(this.wrapFrameRequest);const s=[...e];let n,r=0;return t.promise((e=>{const a=()=>{do{n=s.shift(),n&&$i(n,s,i,o),r+=1}while(n&&5>=r);s.length?this.wrapFrameRequest=t.requestAnimationFrame(a):e()};a()}))}onAfterGetValueFromEditor(e){e.value=e.value.replace(RegExp(`<span[^>]+${Yi}[^>]+>(.*?)</span>`,"g"),"$1")}afterInit(e){if(e.o.useSearch){const t=this;e.e.on("beforeSetMode.search",(()=>{this.ui.close()})).on(this.ui,"afterClose",(()=>{Ki(e.editor),this.ui.currentIndex=0,this.ui.count=0,this.cache={}})).on("click",(()=>{this.ui.currentIndex=0,Ki(e.editor)})).on("change.search",(()=>{this.cache={}})).on("keydown.search mousedown.search",e.async.debounce((()=>{this.ui.selInfo&&(e.s.removeMarkers(),this.ui.selInfo=null),this.ui.isOpened&&this.updateCounters()}),e.defaultTimeout)).on("searchNext.search searchPrevious.search",(()=>(this.ui.isOpened||this.ui.open(),t.findAndSelect(t.ui.query,"searchNext"===e.e.current).catch((()=>{}))))).on("search.search",((e,i=!0)=>(this.ui.currentIndex=0,t.findAndSelect(e||"",i).catch((()=>{}))))),e.registerCommand("search",{exec:(e,i,o=!0)=>(i&&t.findAndSelect(i,o).catch((()=>{})),!1)}).registerCommand("openSearchDialog",{exec:()=>(t.ui.open(),!1),hotkeys:["ctrl+f","cmd+f"]}).registerCommand("openReplaceDialog",{exec:()=>(e.o.readonly||t.ui.open(!0),!1),hotkeys:["ctrl+h","cmd+h"]})}}beforeDestruct(e){this.ui.destruct(),e.e.off(".search")}}(0,r.gn)([z.cache],Xi.prototype,"ui",null),(0,r.gn)([(0,z.watch)("ui:needUpdateCounters")],Xi.prototype,"updateCounters",null),(0,r.gn)([(0,z.watch)("ui:pressReplaceButton")],Xi.prototype,"onPressReplaceButton",null),(0,r.gn)([z.autobind],Xi.prototype,"findAndReplace",null),(0,r.gn)([z.autobind],Xi.prototype,"findAndSelect",null),(0,r.gn)([z.autobind],Xi.prototype,"find",null),(0,r.gn)([(0,z.watch)(":afterGetValueFromEditor")],Xi.prototype,"onAfterGetValueFromEditor",null);var Zi=i(38);a.D.prototype.select={normalizeSelectionBeforeCutAndCopy:!0};class Qi extends K{constructor(){super(...arguments),this.proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"]}afterInit(e){this.proxyEventsList.forEach((t=>{e.e.on(t+".select",this.onStartSelection)}))}beforeDestruct(e){this.proxyEventsList.forEach((t=>{e.e.on(t+".select",this.onStartSelection)}))}onStartSelection(e){const{j:t}=this;let i,o=e.target;for(;void 0===i&&o&&o!==t.editor;)i=t.e.fire((0,Zi.e)(e.type+"_"+o.nodeName.toLowerCase()),o,e),o=o.parentElement;"click"===e.type&&void 0===i&&o===t.editor&&t.e.fire(e.type+"Editor",o,e)}onOutsideClick(e){const t=e.target;L.i.up(t,(e=>e===this.j.editor))||A.u1.closestElement(t,A.GI)||this.j.e.fire("outsideClick",e)}beforeCommandCut(e){const{s:t}=this.j;if("cut"===e&&!t.isCollapsed()){const e=t.current();e&&L.i.isOrContains(this.j.editor,e)&&this.onCopyNormalizeSelectionBound()}}onCopyNormalizeSelectionBound(e){const{s:t,editor:i,o}=this.j;o.select.normalizeSelectionBeforeCutAndCopy&&!t.isCollapsed()&&(!e||e.isTrusted&&L.i.isNode(e.target)&&L.i.isOrContains(i,e.target))&&this.jodit.s.expandSelection()}}(0,r.gn)([z.autobind],Qi.prototype,"onStartSelection",null),(0,r.gn)([(0,z.watch)("ow:click")],Qi.prototype,"onOutsideClick",null),(0,r.gn)([(0,z.watch)([":beforeCommand"])],Qi.prototype,"beforeCommandCut",null),(0,r.gn)([(0,z.watch)([":copy",":cut"])],Qi.prototype,"onCopyNormalizeSelectionBound",null),a.D.prototype.width="auto",a.D.prototype.minWidth=200,a.D.prototype.maxWidth="100%",a.D.prototype.allowResizeX=!1,a.D.prototype.allowResizeY=!0,a.D.prototype.height="auto",a.D.prototype.minHeight=200,a.D.prototype.maxHeight="auto",a.D.prototype.saveHeightInStorage=!1;let eo=class extends K{constructor(){super(...arguments),this.isResized=!1,this.start={x:0,y:0,w:0,h:0},this.handle=this.j.c.div("jodit-editor__resize",A.JO.get("resize_handler"))}afterInit(e){const{height:t,width:i,allowResizeX:o}=e.o;let{allowResizeY:s}=e.o;"auto"===t&&"auto"!==i&&(s=!1),"auto"===t&&"auto"===i||!o&&!s||(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(){L.i.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}};eo.requires=["size"],eo=(0,r.gn)([z.autobind],eo);let to=class extends K{constructor(){super(...arguments),this.resizeWorkspaces=this.j.async.debounce(this.resizeWorkspaceImd,this.j.defaultTimeout,!0)}afterInit(e){e.e.on("setHeight.size",this.setHeight).on("setWidth.size",this.setWidth).on("afterInit.size changePlace.size",this.initialize,{top:!0}).on(e.ow,"load.size",this.resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.resizeWorkspaceImd),this.initialize()}initialize(){const{j:e}=this;if(e.o.inline)return;let{height:t}=e.o;if(e.o.saveHeightInStorage&&"auto"!==t){const i=e.storage.get("height");i&&(t=i)}(0,h.css)(e.editor,{minHeight:"100%"}),(0,h.css)(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),this.setHeight(t),this.setWidth(e.o.width)}setHeight(e){if((0,h.isNumber)(e)){const{minHeight:t,maxHeight:i}=this.j.o;(0,h.isNumber)(t)&&t>e&&(e=t),(0,h.isNumber)(i)&&e>i&&(e=i)}(0,h.css)(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.resizeWorkspaceImd()}setWidth(e){if((0,h.isNumber)(e)){const{minWidth:t,maxWidth:i}=this.j.o;(0,h.isNumber)(t)&&t>e&&(e=t),(0,h.isNumber)(i)&&e>i&&(e=i)}(0,h.css)(this.j.container,"width",e),this.resizeWorkspaceImd()}getNotWorkHeight(){var e,t;return((null===(e=this.j.toolbarContainer)||void 0===e?void 0:e.offsetHeight)||0)+((null===(t=this.j.statusbar)||void 0===t?void 0:t.getHeight())||0)+2}resizeWorkspaceImd(){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline)return;if(!this.j.container||!this.j.container.parentNode)return;const e=((0,h.css)(this.j.container,"minHeight")||0)-this.getNotWorkHeight();if((0,h.isNumber)(e)&&e>0&&([this.j.workplace,this.j.iframe,this.j.editor].map((t=>{t&&(0,h.css)(t,"minHeight",e)})),this.j.e.fire("setMinHeight",e)),(0,h.isNumber)(this.j.o.maxHeight)){const e=this.j.o.maxHeight-this.getNotWorkHeight();[this.j.workplace,this.j.iframe,this.j.editor].map((t=>{t&&(0,h.css)(t,"maxHeight",e)})),this.j.e.fire("setMaxHeight",e)}this.j.container&&(0,h.css)(this.j.workplace,"height","auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.getNotWorkHeight():"auto")}beforeDestruct(e){e.e.off(e.ow,"load.size",this.resizeWorkspaces).off(".size")}};(0,r.gn)([z.autobind],to.prototype,"resizeWorkspaceImd",null),to=(0,r.gn)([z.autobind],to),a.D.prototype.beautifyHTML=!l.IS_IE,a.D.prototype.sourceEditor="ace",a.D.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},a.D.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12/ace.js"],a.D.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.0/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.0/beautify-html.min.js"],a.D.prototype.controls.source={mode:l.MODE_SPLIT,exec(e){e.toggleMode()},isActive:e=>e.getRealMode()===l.MODE_SOURCE,tooltip:"Change mode"};class io{constructor(e,t,i,o){this.jodit=e,this.container=t,this.toWYSIWYG=i,this.fromWYSIWYG=o,this.className="",this.isReady=!1}get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(e){var t;this.isReady?e():null===(t=this.j.events)||void 0===t||t.on(this,"ready",e)}}class oo extends io{constructor(){super(...arguments),this.autosize=this.j.async.debounce((()=>{this.instance.style.height="auto",this.instance.style.height=this.instance.scrollHeight+"px"}),this.j.defaultTimeout)}init(e){this.instance=e.c.element("textarea",{class:"jodit-source__mirror"}),this.container.appendChild(this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",(e=>{(0,h.css)(this.instance,"minHeight",e)})).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",(t=>{e.e.fire(t.type,t)})),this.autosize(),this.onReady()}destruct(){L.i.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(e){this.instance.value=e}insertRaw(e){const t=this.getValue();if(0>this.getSelectionStart())this.setValue(t+e);else{const i=this.getSelectionStart(),o=this.getSelectionEnd();this.setValue(t.substring(0,i)+e+t.substring(o,t.length))}}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(e,t=e){this.instance.setSelectionRange(e,t)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(e){this.instance.setAttribute("placeholder",e)}setReadOnly(e){e?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}selectAll(){this.instance.select()}replaceUndoManager(){const{history:e}=this.jodit;this.j.e.on(this.instance,"keydown",(t=>{if((t.ctrlKey||t.metaKey)&&"z"===t.key)return t.shiftKey?e.redo():e.undo(),this.setSelectionRange(this.getValue().length),!1}))}}class so extends io{constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=e=>{this.j.e.fire("blur",e)},this.proxyOnFocus=e=>{this.j.e.fire("focus",e)},this.proxyOnMouseDown=e=>{this.j.e.fire("mousedown",e)}}aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(e){return this.instance.session.getLine(e).length}getLastColumnIndices(){const e=this.instance.session.getLength(),t=[];let i=0;for(let o=0;e>o;o++)i+=this.getLastColumnIndex(o),o>0&&(i+=1),t[o]=i;return t}getRowColumnIndices(e){const t=this.getLastColumnIndices();if(t[0]>=e)return{row:0,column:e};let i=1;for(let o=1;t.length>o;o++)e>t[o]&&(i=o+1);return{row:i,column:e-t[i-1]-1}}setSelectionRangeIndices(e,t){const i=this.getRowColumnIndices(e),o=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:i,end:o})}getIndexByRowColumn(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}init(e){const t=()=>{if(void 0!==this.instance||!this.aceExists())return;const t=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(t),this.instance=e.ow.ace.edit(t),this.instance.setTheme(e.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),e.getRealMode()!==l.MODE_WYSIWYG&&this.setValue(this.getValue());const i=this.j.async.debounce((()=>{e.isInDestruct||(this.instance.setOption("maxLines","auto"!==e.o.height?e.workplace.offsetHeight/this.instance.renderer.lineHeight:1/0),this.instance.resize())}),2*this.j.defaultTimeout);e.e.on("afterResize afterSetMode",i),i(),this.onReady()};e.e.on("afterSetMode",(()=>{e.getRealMode()!==l.MODE_SOURCE&&e.getMode()!==l.MODE_SPLIT||(this.fromWYSIWYG(),t())})),t(),this.aceExists()||(0,h.loadNext)(e,e.o.sourceEditorCDNUrlsJS).then((()=>{e.isInDestruct||t()}))}destruct(){var e,t;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null===(t=null===(e=this.j)||void 0===e?void 0:e.events)||void 0===t||t.off("aceInited.source")}setValue(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){const t=this.j.e.fire("beautifyHTML",e);(0,h.isString)(t)&&(e=t)}this.instance.setValue(e),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(e){this.instance.setReadOnly(e)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){const e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}getSelectionEnd(){const e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(e){const t=this.instance.selection.getCursor(),i=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:i},!1)}setSelectionRange(e,t){this.setSelectionRangeIndices(e,t)}setPlaceHolder(e){}replaceUndoManager(){const{history:e}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec(){e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec(){e.redo()}})}}function no(e,t,i,o,s){let n;if((0,h.isFunction)(e))n=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){n=new so(t,i,o,s);break}default:n=new oo(t,i,o,s)}return n.init(t),n.onReadyAlways((()=>{n.setReadOnly(t.o.readonly)})),n}class ro extends K{constructor(){super(...arguments),this.buttons=[{name:"source",group:"source"}],this.__lock=!1,this.__oldMirrorValue="",this.tempMarkerStart="{start-jodit-selection}",this.tempMarkerStartReg=/{start-jodit-selection}/g,this.tempMarkerEnd="{end-jodit-selection}",this.tempMarkerEndReg=/{end-jodit-selection}/g,this.getSelectionStart=()=>{var e,t;return null!==(t=null===(e=this.sourceEditor)||void 0===e?void 0:e.getSelectionStart())&&void 0!==t?t:0},this.getSelectionEnd=()=>{var e,t;return null!==(t=null===(e=this.sourceEditor)||void 0===e?void 0:e.getSelectionEnd())&&void 0!==t?t:0}}onInsertHTML(e){var t;if(!this.j.o.readonly&&!this.j.isEditorMode())return null===(t=this.sourceEditor)||void 0===t||t.insertRaw(e),this.toWYSIWYG(),!1}fromWYSIWYG(e=!1){if(!this.__lock||!0===e){this.__lock=!0;const e=this.j.getEditorValue(!1,vi);e!==this.getMirrorValue()&&this.setMirrorValue(e),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;const e=this.getMirrorValue();e!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=e,this.__lock=!1,this.__oldMirrorValue=e)}getNormalPosition(e,t){for(t=t.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,(e=>{let t="";for(let i=0;e.length>i;i+=1)t+=l.INVISIBLE_SPACE;return t}));e>0&&t[e]===l.INVISIBLE_SPACE;)e--;let i=e;for(;i>0;){if(i--,"<"===t[i]&&void 0!==t[i+1]&&t[i+1].match(/[\w/]+/i))return i;if(">"===t[i])return e}return e}clnInv(e){return e.replace(l.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(e){var t;if("selectall"===e.toLowerCase()&&this.j.getRealMode()===l.MODE_SOURCE)return null===(t=this.sourceEditor)||void 0===t||t.selectAll(),!1}getMirrorValue(){var e;return(null===(e=this.sourceEditor)||void 0===e?void 0:e.getValue())||""}setMirrorValue(e){var t;null===(t=this.sourceEditor)||void 0===t||t.setValue(e)}setFocusToMirror(){var e;null===(e=this.sourceEditor)||void 0===e||e.focus()}saveSelection(){if(this.j.getRealMode()===l.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;const e=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){const t=this.j.s.marker(!0),i=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(e.substr(0,i)+this.clnInv(t.outerHTML)+e.substr(i))}else{const t=this.j.s.marker(!0),i=this.j.s.marker(!1),o=this.getNormalPosition(this.getSelectionStart(),e),s=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.substr(0,o)+this.clnInv(t.outerHTML)+e.substr(o,s-o)+this.clnInv(i.outerHTML)+e.substr(s))}this.toWYSIWYG()}}removeSelection(){if(this.j.getRealMode()===l.MODE_WYSIWYG)return this.__lock=!0,this.j.s.restore(),void(this.__lock=!1);let e=this.getMirrorValue(),t=0,i=0;try{if(e=e.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){const t=this.j.e.fire("beautifyHTML",e);(0,h.isString)(t)&&(e=t)}if(t=e.indexOf(this.tempMarkerStart),i=t,e=e.replace(this.tempMarkerStartReg,""),-1!==t){const t=e.indexOf(this.tempMarkerEnd);-1!==t&&(i=t)}e=e.replace(this.tempMarkerEndReg,"")}finally{e=e.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(e),this.setMirrorSelectionRange(t,i),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(e,t){var i;null===(i=this.sourceEditor)||void 0===i||i.setSelectionRange(e,t)}onReadonlyReact(){var e;null===(e=this.sourceEditor)||void 0===e||e.setReadOnly(this.j.o.readonly)}afterInit(e){if(this.mirrorContainer=e.c.div("jodit-source"),e.workplace.appendChild(this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",(()=>{e.workplace.appendChild(this.mirrorContainer)})),this.sourceEditor=no("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.e.on(e.ow,"keydown",(e=>{var t;e.key===l.KEY_ESC&&(null===(t=this.sourceEditor)||void 0===t?void 0:t.isFocused)&&this.sourceEditor.blur()})),this.onReadonlyReact(),e.e.on("placeholder.source",(e=>{var t;null===(t=this.sourceEditor)||void 0===t||t.setPlaceHolder(e)})).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",(e=>e)),e.o.beautifyHTML){const t=()=>{var t;const i=e.ow.html_beautify;return!(!i||e.isInDestruct||(null===(t=e.events)||void 0===t||t.off("beautifyHTML").on("beautifyHTML",(e=>i(e))),0))};t()||(0,h.loadNext)(e,e.o.beautifyHTMLCDNUrlsJS).then(t)}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}syncValueFromWYSIWYG(e=!1){const t=this.j;t.getMode()!==l.MODE_SPLIT&&t.getMode()!==l.MODE_SOURCE||this.fromWYSIWYG(e)}initSourceEditor(e){var t;if("area"!==e.o.sourceEditor){const t=no(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);t.onReadyAlways((()=>{var i,o;null===(i=this.sourceEditor)||void 0===i||i.destruct(),this.sourceEditor=t,this.syncValueFromWYSIWYG(!0),null===(o=e.events)||void 0===o||o.fire("sourceEditorReady",e)}))}else null===(t=this.sourceEditor)||void 0===t||t.onReadyAlways((()=>{var t;this.syncValueFromWYSIWYG(!0),null===(t=e.events)||void 0===t||t.fire("sourceEditorReady",e)}))}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),L.i.safeRemove(this.mirrorContainer)}}(0,r.gn)([(0,z.watch)(":insertHTML.source")],ro.prototype,"onInsertHTML",null),(0,r.gn)([z.autobind],ro.prototype,"fromWYSIWYG",null),(0,r.gn)([z.autobind],ro.prototype,"toWYSIWYG",null),(0,r.gn)([z.autobind],ro.prototype,"getNormalPosition",null),(0,r.gn)([(0,z.watch)(":beforeCommand.source")],ro.prototype,"onSelectAll",null),(0,r.gn)([(0,z.watch)(":beforeSetMode.source")],ro.prototype,"saveSelection",null),(0,r.gn)([(0,z.watch)(":afterSetMode.source")],ro.prototype,"removeSelection",null),(0,r.gn)([z.autobind],ro.prototype,"setMirrorSelectionRange",null),(0,r.gn)([(0,z.watch)(":readonly.source")],ro.prototype,"onReadonlyReact",null),(0,r.gn)([z.autobind],ro.prototype,"syncValueFromWYSIWYG",null),a.D.prototype.showCharsCounter=!0,a.D.prototype.countHTMLChars=!1,a.D.prototype.showWordsCounter=!0;class ao extends K{constructor(){super(...arguments),this.charCounter=null,this.wordCounter=null,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()},this.calc=this.j.async.throttle((()=>{const e=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){const t=this.j.o.countHTMLChars?this.j.value:e.replace((0,l.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,l.INVISIBLE_SPACE_REG_EXP)(),"").split((0,l.SPACE_REG_EXP)()).filter((e=>e.length)).length))}),this.j.defaultTimeout)}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(){L.i.safeRemove(this.charCounter),L.i.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}}a.D.prototype.toolbarSticky=!0,a.D.prototype.toolbarDisableStickyForMobile=!0,a.D.prototype.toolbarStickyOffset=0;class lo extends K{constructor(){super(...arguments),this.isToolbarSticked=!1,this.createDummy=e=>{},this.addSticky=e=>{this.isToolbarSticked||(this.createDummy(e),this.j.container.classList.add("jodit_sticky"),this.isToolbarSticked=!0),(0,h.css)(e,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2})},this.removeSticky=e=>{this.isToolbarSticked&&((0,h.css)(e,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.isToolbarSticked=!1)}}afterInit(e){e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.onScroll).on("getStickyState.sticky",(()=>this.isToolbarSticked))}onScroll(){const{jodit:e}=this,t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,i=(0,h.offset)(e.container,e,e.od,!0),o=e.getMode()===l.MODE_WYSIWYG&&t+e.o.toolbarStickyOffset>i.top&&i.top+i.height>t+e.o.toolbarStickyOffset&&!(e.o.toolbarDisableStickyForMobile&&this.isMobile());if(e.o.toolbarSticky&&!0===e.o.toolbar&&this.isToolbarSticked!==o){const t=e.toolbarContainer;t&&(o?this.addSticky(t):this.removeSticky(t)),e.e.fire("toggleSticky",o)}}isMobile(){return this.j&&this.j.options&&this.j.container&&this.j.o.sizeSM>=this.j.container.offsetWidth}beforeDestruct(e){this.dummyBox&&L.i.safeRemove(this.dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.onScroll).off(".sticky")}}(0,r.gn)([(0,z.throttle)()],lo.prototype,"onScroll",null),a.D.prototype.spellcheck=!1,a.D.prototype.controls.spellcheck={isActive(e){return e.o.spellcheck},icon:i(105),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellchecking"};class co extends K{constructor(){super(...arguments),this.buttons=[{group:"state",name:"spellcheck"}]}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,At.Lj)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(e){}}(0,r.gn)([z.autobind],co.prototype,"toggleSpellcheck",null),a.D.prototype.usePopupForSpecialCharacters=!1,a.D.prototype.specialCharacters=["!",""","#","$","%","&","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","€","‘","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","»","¬","®","¯","°","²","³","´","µ","¶","·","¸","¹","º","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ý","þ","ÿ","Œ","œ","Ŵ","Ŷ","ŵ","ŷ","‚","‛","„","…","™","►","•","→","⇒","⇔","♦","≈"],a.D.prototype.controls.symbol={icon:"omega",hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(e,t,i,o){const s=e.e.fire("generateSpecialCharactersTable.symbols");if(s){if(e.o.usePopupForSpecialCharacters){const t=e.c.div();return t.classList.add("jodit-symbols"),t.appendChild(s),e.e.on(s,"close_dialog",o),t}{U(s,e.i18n("Select Special Character"),void 0,"jodit-symbols").bindDestruct(e);const t=s.querySelector("a");t&&t.focus()}}}};class ho extends K{constructor(){super(...arguments),this.buttons=[{name:"symbol",group:"insert"}],this.countInRow=17}afterInit(e){e.e.on("generateSpecialCharactersTable.symbols",(()=>{const t=e.c.fromHTML('<div class="jodit-symbols__container">\n\t\t\t\t\t\t<div class="jodit-symbols__container_table">\n\t\t\t\t\t\t\t<table class="jodit-symbols__table"><tbody></tbody></table>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="jodit-symbols__container_preview">\n\t\t\t\t\t\t\t<div class="jodit-symbols__preview"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>'),i=t.querySelector(".jodit-symbols__preview"),o=t.querySelector("table").tBodies[0],s=[];for(let t=0;e.o.specialCharacters.length>t;){const i=e.c.element("tr");for(let o=0;this.countInRow>o&&e.o.specialCharacters.length>t;o+=1,t+=1){const n=e.c.element("td"),r=e.c.fromHTML(`<a\n\t\t\t\t\t\t\t\t\tdata-index="${t}"\n\t\t\t\t\t\t\t\t\tdata-index-j="${o}"\n\t\t\t\t\t\t\t\t\trole="option"\n\t\t\t\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\t\t>${e.o.specialCharacters[t]}</a>`);s.push(r),n.appendChild(r),i.appendChild(n)}o.appendChild(i)}const n=this;return e.e.on(s,"focus",(function(){i.innerHTML=this.innerHTML})).on(s,"mousedown",(function(t){L.i.isTag(this,"a")&&(e.s.focus(),e.s.insertHTML(this.innerHTML),e.e.fire(this,"close_dialog"),t&&t.preventDefault(),t&&t.stopImmediatePropagation())})).on(s,"mouseenter",(function(){L.i.isTag(this,"a")&&this.focus()})).on(s,"keydown",(t=>{const i=t.target;if(L.i.isTag(i,"a")){const o=parseInt((0,it.Lj)(i,"-index")||"0",10),r=parseInt((0,it.Lj)(i,"data-index-j")||"0",10);let a;switch(t.key){case l.KEY_UP:case l.KEY_DOWN:a=t.key===l.KEY_UP?o-n.countInRow:o+n.countInRow,void 0===s[a]&&(a=t.key===l.KEY_UP?Math.floor(s.length/n.countInRow)*n.countInRow+r:r,a>s.length-1&&(a-=n.countInRow)),s[a]&&s[a].focus();break;case l.KEY_RIGHT:case l.KEY_LEFT:a=t.key===l.KEY_LEFT?o-1:o+1,void 0===s[a]&&(a=t.key===l.KEY_LEFT?s.length-1:0),s[a]&&s[a].focus();break;case l.KEY_ENTER:e.e.fire(i,"mousedown"),t.stopImmediatePropagation(),t.preventDefault()}}})),t}))}beforeDestruct(e){e.e.off("generateSpecialCharactersTable.symbols")}}a.D.prototype.table={allowCellSelection:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",allowCellResize:!0,useExtraClassesOptions:!1},a.D.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup(e,t,i,o,s){const n=i.data&&i.data.rows?i.data.rows:10,r=i.data&&i.data.cols?i.data.cols:10,a=e.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+(()=>{if(!e.o.table.useExtraClassesOptions)return"";const t=[];if(i.data){const e=i.data.classList;Object.keys(e).forEach((i=>{t.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${i}" type="checkbox"/>${e[i]}</label>`)}))}return t.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> × <span>1</span></label></form>'),l=a.querySelectorAll("span")[0],c=a.querySelectorAll("span")[1],d=a.querySelector(".jodit-form__container"),u=a.querySelector(".jodit-form__options"),p=[],m=n*r;for(let t=0;m>t;t+=1)p[t]||p.push(e.c.element("span",{dataIndex:t}));if(e.e.on(d,"mousemove",((e,t)=>{const i=e.target;if(!L.i.isTag(i,"span"))return;const o=void 0===t||isNaN(t)?parseInt((0,it.Lj)(i,"-index")||"0",10):t||0,s=Math.ceil((o+1)/r),n=o%r+1;for(let e=0;p.length>e;e+=1)p[e].className=e%r+1>n||Math.ceil((e+1)/r)>s?"":"jodit_hovered";c.textContent=""+n,l.textContent=""+s})).on(d,"touchstart mousedown",(t=>{const i=t.target;if(t.preventDefault(),t.stopImmediatePropagation(),!L.i.isTag(i,"span"))return;const s=parseInt((0,it.Lj)(i,"-index")||"0",10),n=Math.ceil((s+1)/r),a=s%r+1,l=e.createInside,c=l.element("tbody"),d=l.element("table");d.appendChild(c);let p,m,f=null;for(let e=1;n>=e;e+=1){p=l.element("tr");for(let e=1;a>=e;e+=1)m=l.element("td"),f||(f=m),(0,h.css)(m,"width",(100/a).toFixed(4)+"%"),m.appendChild(l.element("br")),p.appendChild(l.text("\n")),p.appendChild(l.text("\t")),p.appendChild(m);c.appendChild(l.text("\n")),c.appendChild(p)}const g=e.s.current();if(g&&e.s.isCollapsed()){const t=L.i.closest(g,L.i.isBlock,e.editor);t&&t!==e.editor&&!t.nodeName.match(/^TD|TH|TBODY|TABLE|THEADER|TFOOTER$/)&&e.s.setCursorAfter(t)}(0,h.$$)("input[type=checkbox]:checked",u).forEach((e=>{e.value.split(/[\s]+/).forEach((e=>{d.classList.add(e)}))})),e.s.insertNode(l.text("\n")),e.s.insertNode(d,!1),f&&(e.s.setCursorIn(f),(0,h.scrollIntoViewIfNeeded)(f,e.editor,e.ed)),o()})),s&&s.parentElement){for(let t=0;n>t;t+=1){const i=e.c.div();for(let e=0;r>e;e+=1)i.appendChild(p[t*r+e]);d.appendChild(i)}p[0]&&(p[0].className="hovered")}return a},tooltip:"Insert table"};const uo="table_processor_observer-resize";class po extends K{constructor(){super(...arguments),this.selectMode=!1,this.resizeDelta=0,this.createResizeHandle=()=>{this.resizeHandler||(this.resizeHandler=this.j.c.div("jodit-table-resizer"),this.j.e.on(this.resizeHandler,"mousedown.table touchstart.table",this.onHandleMouseDown).on(this.resizeHandler,"mouseenter.table",(()=>{this.j.async.clearTimeout(this.hideTimeout)})))},this.hideTimeout=0,this.drag=!1,this.minX=0,this.maxX=0,this.startX=0}get module(){return this.j.getInstance("Table",this.j.o)}get isRTL(){return"rtl"===this.j.o.direction}showResizeHandle(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}hideResizeHandle(){this.hideTimeout=this.j.async.setTimeout((()=>{L.i.safeRemove(this.resizeHandler)}),{timeout:this.j.defaultTimeout,label:"hideResizer"})}onHandleMouseDown(e){if(this.j.isLocked)return;this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=e.clientX,this.j.lock(uo),this.resizeHandler.classList.add("jodit-table-resizer_moved");let t,i=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)i=this.workTable.parentNode.getBoundingClientRect(),this.minX=i.left,this.maxX=this.minX+i.width;else{const e=Pe.formalCoordinate(this.workTable,this.workCell,!0);Pe.formalMatrix(this.workTable,((i,o,s)=>{e[1]===s&&(t=i.getBoundingClientRect(),this.minX=Math.max(t.left+l.NEARBY/2,this.minX)),e[1]+(this.isRTL?-1:1)===s&&(t=i.getBoundingClientRect(),this.maxX=Math.min(t.left+t.width-l.NEARBY/2,this.maxX))}))}return!1}onMouseMove(e){if(!this.drag)return;this.j.e.fire("closeAllPopups");let t=e.clientX;const i=(0,h.offset)(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);this.minX>t&&(t=this.minX),t>this.maxX&&(t=this.maxX),this.resizeDelta=t-this.startX+(this.j.o.iframe?i.left:0),this.resizeHandler.style.left=t-(this.j.o.iframe?0:i.left)+"px";const o=this.j.s.sel;o&&o.removeAllRanges()}onMouseUp(e){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==e.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}resizeColumns(){const e=this.resizeDelta,t=[];Pe.setColumnWidthByDelta(this.workTable,Pe.formalCoordinate(this.workTable,this.workCell,!0)[1],e,!0,t);const i=(0,h.call)(this.isRTL?L.i.prev:L.i.next,this.workCell,L.i.isCell,this.workCell.parentNode);Pe.setColumnWidthByDelta(this.workTable,Pe.formalCoordinate(this.workTable,i)[1],-e,!1,t)}resizeTable(){const e=this.resizeDelta*(this.isRTL?-1:1),t=this.workTable.offsetWidth,i=(0,h.getContentWidth)(this.workTable.parentNode,this.j.ew),o=!this.wholeTable;if(this.isRTL?!o:o)this.workTable.style.width=(t+e)/i*100+"%";else{const o=this.isRTL?"marginRight":"marginLeft",s=parseInt(this.j.ew.getComputedStyle(this.workTable)[o]||"0",10);this.workTable.style.width=(t-e)/i*100+"%",this.workTable.style[o]=(s+e)/i*100+"%"}}setWorkCell(e,t=null){this.wholeTable=t,this.workCell=e,this.workTable=L.i.up(e,(e=>L.i.isTag(e,"table")),this.j.editor)}calcHandlePosition(e,t,i=0,o=0){const s=(0,h.offset)(t,this.j,this.j.ed);if(i>l.NEARBY&&s.width-l.NEARBY>i)return void this.hideResizeHandle();const n=(0,h.offset)(this.j.workplace,this.j,this.j.od,!0),r=(0,h.offset)(e,this.j,this.j.ed);if(this.resizeHandler.style.left=(i>l.NEARBY?s.left+s.width:s.left)-n.left+o+"px",Object.assign(this.resizeHandler.style,{height:r.height+"px",top:r.top-n.top+"px"}),this.showResizeHandle(),i>l.NEARBY){const e=(0,h.call)(this.isRTL?L.i.prev:L.i.next,t,L.i.isCell,t.parentNode);this.setWorkCell(t,!!e&&null)}else{const e=(0,h.call)(this.isRTL?L.i.next:L.i.prev,t,L.i.isCell,t.parentNode);this.setWorkCell(e||t,!e||null)}}afterInit(e){e.o.table.allowCellResize&&e.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",(()=>{(0,h.$$)("table",e.editor).forEach(this.observe)})).on(this.j.ow,"scroll.resize-cells",(()=>{if(!this.drag)return;const t=L.i.up(this.workCell,(e=>L.i.isTag(e,"table")),e.editor);if(t){const e=t.getBoundingClientRect();this.resizeHandler.style.top=e.top+"px"}})).on("beforeSetMode.resize-cells",(()=>{this.module.getAllSelectedCells().forEach((t=>{this.module.removeSelection(t),Pe.normalizeTable(L.i.closest(t,"table",e.editor))}))}))}observe(e){(0,h.dataBind)(e,uo)||((0,h.dataBind)(e,uo,!0),this.j.e.on(e,"mouseleave.resize-cells",(e=>{this.resizeHandler&&this.resizeHandler!==e.relatedTarget&&this.hideResizeHandle()})).on(e,"mousemove.resize-cells touchmove.resize-cells",this.j.async.throttle((t=>{if(this.j.isLocked)return;const i=L.i.up(t.target,L.i.isCell,e);i&&this.calcHandlePosition(e,i,t.offsetX)}),{timeout:this.j.defaultTimeout})),this.createResizeHandle())}beforeDestruct(e){e.events&&(e.e.off(this.j.ow,".resize-cells"),e.e.off(".resize-cells"))}}(0,r.gn)([z.autobind],po.prototype,"onHandleMouseDown",null),(0,r.gn)([z.autobind],po.prototype,"onMouseMove",null),(0,r.gn)([z.autobind],po.prototype,"onMouseUp",null),(0,r.gn)([z.autobind],po.prototype,"observe",null);const mo="table_processor_observer",fo="onMoveTableSelectCell";class go extends K{constructor(){super(...arguments),this.requires=["select"],this.selectedCell=null,this.isSelectionMode=!1}get module(){return this.j.getInstance("Table",this.j.o)}afterInit(e){e.o.table.allowCellSelection&&e.e.on("keydown.select-cells",(e=>{e.key===l.KEY_TAB&&this.unselectCells()})).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map((e=>e+".select-cells")).join(" "),this.onStartSelection).on("clickTr clickTbody",(()=>{var e;const t=this.module.getAllSelectedCells().length;if(t)return t>1&&(null===(e=this.j.s.sel)||void 0===e||e.removeAllRanges()),!1}))}onStartSelection(e){if(this.j.o.readonly)return;if(this.unselectCells(),e===this.j.editor)return;const t=L.i.closest(e,"table",this.j.editor);return e&&t?(e.firstChild||e.appendChild(this.j.createInside.element("br")),this.isSelectionMode=!0,this.selectedCell=e,this.module.addSelection(e),this.j.e.on(t,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.onMove.bind(this,t),{label:fo,timeout:this.j.defaultTimeout/2})).on(t,"mouseup.select-cells touchend.select-cells",this.onStopSelection.bind(this,t)),!1):void 0}onOutsideClick(){this.selectedCell=null,this.onRemoveSelection()}onChange(){this.j.isLocked||this.isSelectionMode||this.onRemoveSelection()}onMove(e,t){var i;if(this.j.o.readonly&&!this.j.isLocked)return;if(this.j.isLockedNotBy(mo))return;const o=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(!o)return;const s=L.i.closest(o,["td","th"],e);if(!s||!this.selectedCell)return;s!==this.selectedCell&&this.j.lock(mo),this.unselectCells();const n=Pe.getSelectedBound(e,[s,this.selectedCell]),r=Pe.formalMatrix(e);for(let e=n[0][0];n[1][0]>=e;e+=1)for(let t=n[0][1];n[1][1]>=t;t+=1)this.module.addSelection(r[e][t]);this.module.getAllSelectedCells().length>1&&(null===(i=this.j.s.sel)||void 0===i||i.removeAllRanges()),this.j.e.fire("hidePopup"),t.stopPropagation(),(()=>{const e=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0"> </div>');s.appendChild(e),this.j.async.setTimeout((()=>{var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}),this.j.defaultTimeout/5)})()}onRemoveSelection(e){var t;if(!(null===(t=null==e?void 0:e.buffer)||void 0===t?void 0:t.actionTrigger)&&!this.selectedCell&&this.module.getAllSelectedCells().length)return this.j.unlock(),this.unselectCells(),void this.j.e.fire("hidePopup","cells");this.isSelectionMode=!1,this.selectedCell=null}onStopSelection(e,t){if(!this.selectedCell)return;this.isSelectionMode=!1,this.j.unlock();const i=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(!i)return;const o=L.i.closest(i,["td","th"],e);if(!o)return;const s=L.i.closest(o,"table",e);if(s&&s!==e)return;const n=Pe.getSelectedBound(e,[o,this.selectedCell]),r=Pe.formalMatrix(e),a=r[n[1][0]][n[1][1]],l=r[n[0][0]][n[0][1]];this.j.e.fire("showPopup",e,(()=>{const e=(0,h.position)(l,this.j),t=(0,h.position)(a,this.j);return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}}),"cells"),(0,h.$$)("table",this.j.editor).forEach((e=>{this.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")})),this.j.async.clearTimeout(fo)}unselectCells(e){const t=this.module,i=t.getAllSelectedCells();i.length&&i.forEach((i=>{e&&e===i||t.removeSelection(i)}))}onExecCommand(e){if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(e)){e=e.replace("table","");const t=this.module.getAllSelectedCells();if(t.length){const[i]=t;if(!i)return;const o=L.i.closest(i,"table",this.j.editor);if(!o)return;switch(e){case"splitv":Pe.splitVertical(o,this.j);break;case"splitg":Pe.splitHorizontal(o,this.j);break;case"merge":Pe.mergeSelected(o,this.j);break;case"empty":t.forEach((e=>L.i.detach(e)));break;case"bin":L.i.safeRemove(o);break;case"binrow":new Set(t.map((e=>e.parentNode))).forEach((e=>{Pe.removeRow(o,e.rowIndex)}));break;case"bincolumn":{const e=new Set;t.reduce(((t,i)=>(e.has(i.cellIndex)||(t.push(i),e.add(i.cellIndex)),t)),[]).forEach((e=>{Pe.removeColumn(o,e.cellIndex)}))}break;case"addcolumnafter":case"addcolumnbefore":Pe.appendColumn(o,i.cellIndex,"addcolumnafter"===e,this.j.createInside);break;case"addrowafter":case"addrowbefore":Pe.appendRow(o,i.parentNode,"addrowafter"===e,this.j.createInside)}}return!1}}onAfterCommand(e){/^justify/.test(e)&&this.module.getAllSelectedCells().forEach((t=>xi(e,t)))}beforeDestruct(e){this.onRemoveSelection(),e.e.off(".select-cells")}}function vo(e){e.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",(t=>{let i,o;if(t.key!==l.KEY_TAB&&t.key!==l.KEY_LEFT&&t.key!==l.KEY_RIGHT&&t.key!==l.KEY_UP&&t.key!==l.KEY_DOWN)return;{if(i=e.s.current(),o=L.i.up(i,(e=>e&&e.nodeName&&/^td|th$/i.test(e.nodeName)),e.editor),!o)return;const s=e.s.range;if(t.key!==l.KEY_TAB&&i!==o&&((t.key===l.KEY_LEFT||t.key===l.KEY_UP)&&(L.i.prev(i,(e=>t.key===l.KEY_UP?L.i.isTag(e,"br"):!!e),o)||t.key!==l.KEY_UP&&L.i.isText(i)&&0!==s.startOffset)||(t.key===l.KEY_RIGHT||t.key===l.KEY_DOWN)&&(L.i.next(i,(e=>t.key===l.KEY_DOWN?L.i.isTag(e,"br"):!!e),o)||t.key!==l.KEY_DOWN&&L.i.isText(i)&&i.nodeValue&&s.startOffset!==i.nodeValue.length)))return}const s=L.i.up(o,(e=>e&&/^table$/i.test(e.nodeName)),e.editor);let n=null;switch(t.key){case l.KEY_TAB:case l.KEY_LEFT:{const i=t.key===l.KEY_LEFT||t.shiftKey?"prev":"next";n=L.i[i](o,(e=>e&&/^td|th$/i.test(e.tagName)),s),n||(Pe.appendRow(s,"next"!==i&&s.querySelector("tr"),"next"===i,e.createInside),n=L.i[i](o,L.i.isCell,s));break}case l.KEY_UP:case l.KEY_DOWN:{let e=0,i=0;const r=Pe.formalMatrix(s,((t,s,n)=>{t===o&&(e=s,i=n)}));t.key===l.KEY_UP?void 0!==r[e-1]&&(n=r[e-1][i]):void 0!==r[e+1]&&(n=r[e+1][i])}}if(n){if(n.firstChild)t.key===l.KEY_TAB?e.s.select(n,!0):e.s.setCursorIn(n,t.key===l.KEY_RIGHT||t.key===l.KEY_DOWN);else{const t=e.createInside.element("br");n.appendChild(t),e.s.setCursorBefore(t)}return!1}}))}function bo(e){e.registerButton({name:"table",group:"insert"})}(0,r.gn)([z.autobind],go.prototype,"onStartSelection",null),(0,r.gn)([(0,z.watch)(":outsideClick")],go.prototype,"onOutsideClick",null),(0,r.gn)([(0,z.watch)(":change")],go.prototype,"onChange",null),(0,r.gn)([z.autobind],go.prototype,"onRemoveSelection",null),(0,r.gn)([z.autobind],go.prototype,"onStopSelection",null),(0,r.gn)([z.autobind],go.prototype,"onExecCommand",null),(0,r.gn)([z.autobind],go.prototype,"onAfterCommand",null);class yo extends K{constructor(){super(...arguments),this.isOpened=!1,this.delayShowTimeout=0}afterInit(e){this.container=e.c.div("jodit-tooltip"),(0,x.ZO)(this.j,yo).appendChild(this.container);let t=0;e.e.off(".tooltip").on("showTooltip.tooltip",((i,o)=>{e.async.clearTimeout(t),this.open(i,o)})).on("delayShowTooltip.tooltip",this.delayOpen).on("escape.tooltip",this.close).on("hideTooltip.tooltip change.tooltip scroll.tooltip changePlace.tooltip hidePopup.tooltip closeAllPopups.tooltip",(()=>{this.j.async.clearTimeout(this.delayShowTimeout),t=e.async.setTimeout(this.close,this.j.defaultTimeout)}))}delayOpen(e,t){const i=this.j.o.showTooltipDelay||this.j.defaultTimeout;this.j.async.clearTimeout(this.delayShowTimeout),this.delayShowTimeout=this.j.async.setTimeout((()=>this.open(e,t)),{timeout:i,label:"tooltip"})}open(e,t){this.container.classList.add("jodit-tooltip_visible"),this.container.innerHTML=t,this.isOpened=!0,this.setPosition(e)}setPosition(e){const t=e();(0,h.css)(this.container,{left:t.x,top:t.y})}close(){this.j.async.clearTimeout(this.delayShowTimeout),this.isOpened&&(this.isOpened=!1,this.container.classList.remove("jodit-tooltip_visible"),(0,h.css)(this.container,{left:-5e3}))}beforeDestruct(e){null==e||e.e.off(".tooltip"),this.close(),L.i.safeRemove(this.container)}}(0,r.gn)([z.autobind],yo.prototype,"delayOpen",null),(0,r.gn)([z.autobind],yo.prototype,"close",null),a.D.prototype.tab={tabInsideLiInsertNewList:!0};class wo extends K{afterInit(e){}onTab(e){if(e.key===l.KEY_TAB&&(e=>{if(!e.o.tab.tabInsideLiInsertNewList||!e.s.isCollapsed())return!1;const t=e.createInside.fake();e.s.insertNode(t);const i=L.i.closest(t,"li",e.editor);if(i&&e.s.cursorOnTheLeft(i)&&L.i.isTag(i.previousElementSibling,"li")){const o=L.i.closest(i,["ol","ul"],e.editor);if(o){const s=e.createInside.element(o.tagName),n=i.previousElementSibling;return s.appendChild(i),n.appendChild(s),e.s.setCursorAfter(t),L.i.safeRemove(t),!0}}return L.i.safeRemove(t),!1})(this.j))return!1}beforeDestruct(e){}}function Co(e,t,i="px",o=null){const s=((e,t)=>{const i=[];try{(0,h.$$)("img",e.editor).forEach((o=>{const s=[(0,h.attr)(o,"width"),(0,h.attr)(o,"height"),o.src];(0,h.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});const n=e.createInside.a();e.ed.body.appendChild(n),n.href=o.src,o.src=n.href,L.i.safeRemove(n),i.push((()=>{var e;o.src=null!==(e=s[2])&&void 0!==e?e:"",(0,h.attr)(o,{width:s[0]||null,height:s[1]||null})}))}))}catch(e){throw i.forEach((e=>e())),i.length=0,e}return i})(e,i);try{const n=e.e.fire("beforePreviewBox",t,i);if(null!=n)return n;let r=e.c.div("jodit__preview-box jodit-context");o&&o.appendChild(r),(0,h.css)(r,{position:"relative",padding:16});const a=e.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${e.i18n("Empty")}</div>`;if(e.iframe){const t=e.create.element("iframe");(0,h.css)(t,{minWidth:800,minHeight:600,border:0}),r.appendChild(t);const i=t.contentWindow;if(i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),r=i.document.body,"function"==typeof ResizeObserver)){const o=new ResizeObserver((e=>{t.style.height=i.document.body.offsetHeight+20+"px"}));o.observe(i.document.body),e.e.on("beforeDestruct",(()=>{o.unobserve(i.document.body)}))}}else(0,h.css)(r,{minWidth:1024,minHeight:600,border:0});const l=(t,i)=>{const o=(0,h.isString)(i)?e.c.div():i;(0,h.isString)(i)&&(o.innerHTML=i);for(let e=0;o.childNodes.length>e;e+=1){const i=o.childNodes[e];if(L.i.isElement(i)){const e=t.ownerDocument.createElement(i.nodeName);for(let t=0;i.attributes.length>t;t+=1)(0,h.attr)(e,i.attributes[t].nodeName,i.attributes[t].nodeValue);0===i.childNodes.length||L.i.isTag(i,["table"])?"SCRIPT"===i.nodeName?i.textContent&&(e.textContent=i.textContent):i.innerHTML&&(e.innerHTML=i.innerHTML):l(e,i);try{t.appendChild(e)}catch(e){}}else try{t.appendChild(i.cloneNode(!0))}catch(e){}}};return l(r,a),e.e.fire("afterPreviewBox",r),r}finally{s.forEach((e=>e()))}}function ko(e){e.registerButton({name:"preview"}),e.registerCommand("preview",((t,i,o)=>{const s=new V({language:e.o.language,theme:e.o.theme});s.setSize(1024,600).open("",e.i18n("Preview")).setModal(!0),Co(e,o,"px",s.getElm("content"))}))}function So(e){e.registerButton({name:"print"})}(0,r.gn)([(0,z.watch)(":keydown.tab")],wo.prototype,"onTab",null),a.D.prototype.controls.preview={icon:"eye",command:"preview",mode:l.MODE_SOURCE+l.MODE_WYSIWYG,tooltip:"Preview"},a.D.prototype.controls.print={exec(e){const t=e.create.element("iframe");Object.assign(t.style,{position:"fixed",right:0,bottom:0,width:0,height:0,border:0}),(0,x.ZO)(e,a.D).appendChild(t);const i=()=>{e.e.off(e.ow,"mousemove",i),L.i.safeRemove(t)},o=t.contentWindow;if(o){e.e.on(o,"onbeforeunload onafterprint",i).on(e.ow,"mousemove",i),e.o.iframe?(e.e.fire("generateDocumentStructure.iframe",o.document,e),o.document.body.innerHTML=e.value):(o.document.write('<!doctype html><html lang="'+(0,h.defaultLanguage)(e.o.language)+'"><head><title></title></head><style>'+function(e){const t=(e,t=e.ownerDocument.styleSheets)=>(0,oi.q)(t).map((e=>{try{return(0,oi.q)(e.cssRules)}catch(e){}return[]})).flat().filter((t=>{try{return!(!t||!e.matches(t.selectorText))}catch(e){}return!1}));class i{constructor(i,o,s){this.css={};const n=s||{},r=t=>{const i=t.selectorText.split(",").map((e=>e.trim())).sort().join(",");0==!!this.css[i]&&(this.css[i]={});const o=t.style.cssText.split(/;(?![A-Za-z0-9])/);for(let t=0;o.length>t;t++){if(!o[t])continue;const s=o[t].split(":");s[0]=s[0].trim(),s[1]=s[1].trim(),this.css[i][s[0]]=s[1].replace(/var\(([^)]+)\)/g,((t,i)=>{const[o,s]=i.split(",");return(e.ew.getComputedStyle(e.editor).getPropertyValue(o.trim())||s||t).trim()}))}};(()=>{const s=i.innerHeight,a=o.createTreeWalker(e.editor,NodeFilter.SHOW_ELEMENT,(()=>NodeFilter.FILTER_ACCEPT));for(;a.nextNode();){const e=a.currentNode;if(s>e.getBoundingClientRect().top||n.scanFullPage){const i=t(e);if(i)for(let e=0;i.length>e;e++)r(i[e])}}})()}generateCSS(){let e="";for(const t in this.css)if(!/:not\(/.test(t)){e+=t+" { ";for(const i in this.css[t])e+=i+": "+this.css[t][i]+"; ";e+="}\n"}return e}}try{return new i(e.ew,e.ed,{scanFullPage:!0}).generateCSS()}catch(e){}return""}(e)+"</style><body></body></html>"),o.document.close(),Co(e,void 0,"px",o.document.body));const t=o.document.createElement("style");t.innerHTML="@media print {\n\t\t\t\t\tbody {\n\t\t\t\t\t\t\t-webkit-print-color-adjust: exact;\n\t\t\t\t\t}\n\t\t\t}",o.document.head.appendChild(t),o.focus(),o.print()}},mode:l.MODE_SOURCE+l.MODE_WYSIWYG,tooltip:"Print"},a.D.prototype.showXPathInStatusbar=!0;class Eo extends K{constructor(){super(...arguments),this.onContext=(e,t)=>(this.menu||(this.menu=new w(this.j)),this.menu.show(t.clientX,t.clientY,[{icon:"bin",title:e===this.j.editor?"Clear":"Remove",exec:()=>{e!==this.j.editor?L.i.safeRemove(e):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(e)}}]),!1),this.onSelectPath=(e,t)=>{this.j.s.focus();const i=(0,h.attr)(t.target,"-path")||"/";if("/"===i)return this.j.execCommand("selectall"),!1;try{const e=this.j.ed.evaluate(i,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(e)return this.j.s.select(e),!1}catch(e){}return this.j.s.select(e),!1},this.tpl=(e,t,i,o)=>{const s=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${t}" title="${o}" tabindex="-1"'>${(0,h.trim)(i)}</a></span>`),n=s.firstChild;return this.j.e.on(n,"click",this.onSelectPath.bind(this,e)).on(n,"contextmenu",this.onContext.bind(this,e)),s},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=O(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)},this.calcPathImd=()=>{if(this.isDestructed)return;const e=this.j.s.current();if(this.container&&(this.container.innerHTML=l.INVISIBLE_SPACE),e){let t,i,o;L.i.up(e,(e=>{e&&this.j.editor!==e&&!L.i.isText(e)&&(t=e.nodeName.toLowerCase(),i=(0,h.getXPathByElement)(e,this.j.editor).replace(/^\//,""),o=this.tpl(e,i,t,this.j.i18n("Select %s",t)),this.container&&this.container.insertBefore(o,this.container.firstChild))}),this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout)}afterInit(){this.j.o.showXPathInStatusbar&&(this.container=this.j.c.div("jodit-xpath"),this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",(()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===l.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=l.INVISIBLE_SPACE),this.appendSelectAll()))})),this.calcPath())}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),L.i.safeRemove(this.container),delete this.menu,delete this.container}}var Io=i(106),xo=i(107),zo=i(108),To=i(109),jo=i(110),Lo=i(111),Ao=i(112),Mo=i(113),Do=i(114),Po=i(115),_o=i(116),Ro=i(117),No=i(118),qo=i(119),Bo=i(120),Ho=i(121),Oo=i(122),Fo=i(123),Wo=i(124),Vo=i(125),Uo=i(126),Yo=i(127),$o=i(128),Go=i(129),Ko=i(130),Jo=i(131),Xo=i(132),Zo=i(133),Qo=i(134),es=i(135),ts=i(136),is=i(137),os=i(138),ss=i(139),ns=i(140),rs=i(141),as=i(142),ls=i(143),cs=i(144),ds=i(145),hs=i(146),us=i(147),ps=i(148),ms=i(149),fs=i(150),gs=i(151),vs=i(152),bs=i(153),ys=i(154),ws=i(155),Cs=i(156),ks=i(157),Ss=i(158),Es=i(159),Is=i(160),xs=i(161),zs=i(162),Ts=i(163),js=i(164),Ls=i(165),As=i(166),Ms=i(167),Ds=i(168),Ps=i(169),_s=i(170),Rs=i(171),Ns=i(172),qs=i(173),Bs=i(174),Hs=i(175),Os=i(176),Fs=i(177),Ws=i(178),Vs=i(179),Us=i(180),Ys=i(181),$s=i(182),Gs=i(183),Ks=i(184),Js=i(185),Xs=i(186),Zs=i(187),Qs=i(188);Object.keys(l).forEach((e=>{Jodit[e]=l[e]}));const en=e=>"__esModule"!==e;Object.keys(n).filter(en).forEach((e=>{A.JO.set(e.replace("_","-"),n[e])})),Object.keys(e).filter(en).forEach((t=>{Jodit.modules[t]=e[t]})),Object.keys(z).filter(en).forEach((e=>{Jodit.decorators[e]=z[e]})),["Confirm","Alert","Prompt"].forEach((t=>{Jodit[t]=e[t]})),Object.keys(s).filter(en).forEach((e=>{Jodit.plugins.add(e,s[e])})),Object.keys(Je).filter(en).forEach((e=>{Jodit.lang[e]=Je[e]}))}(),o}()}));
|