text: ((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.spellcheck=!0,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:()=>$,BR:()=>j,COMMAND_KEYS:()=>T,EMULATE_DBLCLICK_TIMEOUT:()=>B,INSEPARABLE_TAGS:()=>p,INSERT_AS_HTML:()=>q,INSERT_AS_TEXT:()=>O,INSERT_CLEAR_HTML:()=>H,INSERT_ONLY_TEXT:()=>F,INVISIBLE_SPACE:()=>o,INVISIBLE_SPACE_REG_EXP:()=>r,INVISIBLE_SPACE_REG_EXP_END:()=>n,INVISIBLE_SPACE_REG_EXP_START:()=>a,IS_BLOCK:()=>h,IS_IE:()=>P,IS_INLINE:()=>u,IS_MAC:()=>V,KEY_ALIASES:()=>U,KEY_BACKSPACE:()=>g,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:()=>f,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:()=>Y,TEXT_HTML:()=>R,TEXT_PLAIN:()=>_});const o="\ufeff",s=" ",r=()=>/[\uFEFF]/g,n=()=>/[\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"),g="Backspace",f="Tab",v="Enter",b="Escape",y="ArrowLeft",w="ArrowUp",C="ArrowRight",k="ArrowDown",S="Space",E="Delete",I="F3",x=5,z=10,T=[g,E,w,k,C,y,v,b,I,f],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="jodit-selection_marker",B=300,q="insert_as_html",H="insert_clear_html",O="insert_as_text",F="insert_only_text",W=10,V="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),U={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:V?"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})(),Y="data-jodit-temp"},function(e,t,i){"use strict";i.d(t,{vp:()=>c,DG:()=>s,rO:()=>o,LO:()=>m});const o="JoditEventDefaultNamespace";class s{constructor(){this.__store={}}get(e,t){if(void 0!==this.__store[t])return this.__store[t][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=Object.keys(this.__store);return e?t.filter((e=>e!==o)):t}events(e){return this.__store[e]?Object.keys(this.__store[e]):[]}set(e,t,i,o=!1){void 0===this.__store[t]&&(this.__store[t]={}),void 0===this.__store[t][e]&&(this.__store[t][e]=[]),o?this.__store[t][e].unshift(i):this.__store[t][e].push(i)}clear(){this.__store={}}}var r=i(5),n=i(6),a=i(7),l=i(4);class c{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){e.split(/[\s,]+/).forEach((e=>{const i=e.split(".");t.call(this,i[0],i[1]||o)}))}getStore(e){if(!e)throw(0,l.v)("Need subject");if(void 0===e[this.__key]){const t=new s;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,value:t})}return e[this.__key]}clearStore(e){void 0!==e[this.__key]&&delete e[this.__key]}triggerNativeEvent(e,t){const i=this.doc.createEvent("HTMLEvents");"string"==typeof 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=!1){const s=(0,r.H)(e)?this:e,c=(0,r.H)(t)?t:e;let d=i;void 0===d&&(0,n.m)(t)&&(d=t);const h=this.getStore(s);if(!(0,r.H)(c)||""===c)throw(0,l.v)("Need events names");if(!(0,n.m)(d))throw(0,l.v)("Need event handler");if((0,a.k)(s))return s.forEach((e=>{this.on(e,c,d,o)})),this;const u=(0,n.m)(s.addEventListener),p=this;let m=function(e,...t){if(!p.isMuted(e))return d&&d.call(this,...t)};return u&&(m=function(e){if(!p.isMuted(e.type))return p.prepareEvent(e),d&&!1===d.call(this,e)?(e.preventDefault(),e.stopImmediatePropagation(),!1):void 0}),this.eachEvent(c,((e,t)=>{if(""===e)throw(0,l.v)("Need event name");if(!1===h.indexOf(e,t,d)&&(h.set(e,t,{event:e,originalCallback:d,syntheticCallback:m},o),u)){const t=!!["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"].includes(e)&&{passive:!0};s.addEventListener(e,m,t)}})),this}one(e,t,i,o=!1){const s=(0,r.H)(e)?this:e,a=(0,r.H)(t)?t:e;let l=i;void 0===l&&(0,n.m)(t)&&(l=t);const c=(...e)=>(this.off(s,a,c),l(...e));return this.on(s,a,c,o),this}off(e,t,i){const s=(0,r.H)(e)?this:e,a=(0,r.H)(t)?t:e,l=this.getStore(s);let c=i;if(!(0,r.H)(a)||!a)return l.namespaces().forEach((e=>{this.off(s,"."+e)})),this.clearStore(s),this;void 0===c&&(0,n.m)(t)&&(c=t);const d=(0,n.m)(s.removeEventListener),h=e=>{d&&s.removeEventListener(e.event,e.syntheticCallback,!1)},u=(e,t)=>{if(""!==e){const i=l.get(e,t);if(i&&i.length)if((0,n.m)(c)){const o=l.indexOf(e,t,c);!1!==o&&(h(i[o]),i.splice(o,1))}else i.forEach(h),i.length=0}else l.events(t).forEach((e=>{""!==e&&u(e,t)}))};return this.eachEvent(a,((e,t)=>{t===o?l.namespaces().forEach((t=>{u(e,t)})):u(e,t)})),this}stopPropagation(e,t){const i=(0,r.H)(e)?this:e,s=(0,r.H)(e)?e:t;if("string"!=typeof s)throw(0,l.v)("Need event names");const n=this.getStore(i);this.eachEvent(s,((e,t)=>{const s=n.get(e,t);s&&this.__stopped.push(s),t===o&&n.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 s,a;const c=(0,r.H)(e)?this:e,d=(0,r.H)(e)?e:t,h=(0,r.H)(e)?[t,...i]:i,u=(0,n.m)(c.dispatchEvent);if(!u&&!(0,r.H)(d))throw(0,l.v)("Need events names");const p=this.getStore(c);return!(0,r.H)(d)&&u?this.triggerNativeEvent(c,t):this.eachEvent(d,((e,t)=>{if(u)this.triggerNativeEvent(c,e);else{const i=p.get(e,t);if(i)try{[...i].every((t=>!this.isStopped(i)&&(this.currents.push(e),a=t.syntheticCallback.call(c,e,...h),this.currents.pop(),void 0!==a&&(s=a),!0)))}finally{this.removeStop(i)}t!==o||u||p.namespaces().filter((e=>e!==t)).forEach((t=>{const i=this.fire.call(this,c,e+"."+t,...h);void 0!==i&&(s=i)}))}})),s}destruct(){this.isDestructed&&(this.isDestructed=!0,this.off(this),this.getStore(this).clear(),delete this[this.__key])}}var d=i(8),h=i(17);const u=Symbol("observable-object");function p(e){return void 0!==e[u]}function m(e){if(p(e))return e;const t={},i={},o=(t,s)=>(0,d.isArray)(t)?(t.map((e=>o(e,s))),e):(i[t]||(i[t]=[]),i[t].push(s),e),s=(o,...r)=>{if((0,d.isArray)(o))o.map((e=>s(e,...r)));else try{!t[o]&&i[o]&&(t[o]=!0,i[o].forEach((t=>t.call(e,...r))))}finally{t[o]=!1}},r=(t,i=[])=>{const n={};p(t)||(Object.defineProperty(t,u,{enumerable:!1,value:!0}),Object.keys(t).forEach((o=>{const a=o,l=i.concat(a).filter((e=>e.length));n[a]=t[a];const c=(0,h.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set(t){const i=n[a];if(!(0,d.isFastEqual)(n[a],t)){s(["beforeChange","beforeChange."+l.join(".")],a,t),(0,d.isPlainObject)(t)&&r(t,l),c&&c.set?c.set.call(e,t):n[a]=t;const o=[];s(["change",...l.reduce(((e,t)=>(o.push(t),e.push("change."+o.join(".")),e)),[])],l.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):n[a],enumerable:!0,configurable:!0}),(0,d.isPlainObject)(n[a])&&r(n[a],l)})),Object.defineProperty(e,"on",{value:o}))};return r(e),e}},(e,t,i)=>{"use strict";function o(e){return new TypeError(e)}i.d(t,{v:()=>o})},(e,t,i)=>{"use strict";function o(e){return"string"==typeof e}i.d(t,{H:()=>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 Array.isArray(e)}i.d(t,{k:()=>o})},(e,t,i)=>{"use strict";i.r(t),i.d(t,{$$:()=>o.$$,CamelCaseToKebabCase:()=>c.gP,ConfigFlatten:()=>o.tp,ConfigProto:()=>o.II,LimitedStack:()=>o.lI,appendScript:()=>o.uR,appendScriptAsync:()=>o.JL,appendStyleAsync:()=>o.Nf,applyStyles:()=>h,asArray:()=>s._2,assert:()=>o.hu,attr:()=>o.Lj,browser:()=>o.Xh,buildQuery:()=>o.XP,call:()=>o.RE,callPromise:()=>o.C6,camelCase:()=>c.eV,cleanFromWord:()=>m,clearCenterAlign:()=>o.bI,clearTimeout:()=>r.g,cns:()=>o.H5,colorToHex:()=>a.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,get:()=>o.U2,getClassName:()=>o.gj,getContentWidth:()=>C,getScrollParent:()=>k,getXPathByElement:()=>o.BR,hasBrowserColorPicker:()=>n.EO,hasContainer:()=>n.Zt,htmlspecialchars:()=>g,humanSizeToBytes:()=>o.wx,i18n:()=>c.ag,inView:()=>o.jF,innerWidth:()=>S,isArray:()=>n.kJ,isAtom:()=>o.J8,isBoolean:()=>n.jn,isDestructable:()=>n.Z$,isEqual:()=>n.Xy,isFastEqual:()=>n.LP,isFunction:()=>n.mf,isHTML:()=>n.FP,isHtmlFromWord:()=>n.I4,isInitable:()=>n.Gu,isInt:()=>n.GN,isJoditObject:()=>n.Zu,isLicense:()=>n.A1,isNativeFunction:()=>n.QC,isNumber:()=>n.hj,isNumeric:()=>n.kE,isPlainObject:()=>n.PO,isPromise:()=>n.tI,isString:()=>n.HD,isURL:()=>n.PX,isValidName:()=>n.r1,isViewObject:()=>n.f2,isVoid:()=>n.nj,isWindow:()=>n.FJ,kebabCase:()=>c.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:()=>y,normalizeColor:()=>w.ut,normalizeCssValue:()=>w.Zh,normalizeKeyAliases:()=>w.T2,normalizeLicense:()=>w.Pd,normalizeNode:()=>w.Tz,normalizePath:()=>w.AH,normalizeRelativePath:()=>w.Jf,normalizeSize:()=>w.aC,normalizeUrl:()=>w.D5,offset:()=>E,parseQuery:()=>o.mB,position:()=>I,refs:()=>o.xL,reset:()=>o.mc,resolveElement:()=>o.W2,safeHTML:()=>b,scrollIntoViewIfNeeded:()=>o.n5,set:()=>o.t8,setTimeout:()=>r.i,size:()=>x,splitArray:()=>s.C1,sprintf:()=>c.gB,stringify:()=>c.Pz,stripTags:()=>v,toArray:()=>s.qo,trim:()=>c.fy,trimInv:()=>c.as,ucfirst:()=>c.Ps,val:()=>o.P0});var o=i(9),s=i(38),r=i(51),n=i(18),a=i(36),l=i(15),c=i(31);function d(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 h(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 r=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(r){r.open(),r.write(e),r.close();try{for(let e=0;r.styleSheets.length>e;e+=1){const t=r.styleSheets[e].cssRules;for(let e=0;t.length>e;e+=1)""!==t[e].selectorText&&(s=(0,o.$$)(t[e].selectorText,r.body),s.forEach((i=>{i.style.cssText=d(t[e].style.cssText+";"+i.style.cssText)})))}}catch(e){}l.i.each(r.body,(e=>{if(l.i.isElement(e)){const t=e,i=t.getAttribute("style");i&&(t.style.cssText=d(i)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}})),i=r.firstChild?(0,c.fy)(r.body.innerHTML):""}}catch(e){}finally{l.i.safeRemove(t)}return i&&(e=i),(0,c.fy)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}var u=i(33),p=i(39);function m(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&&l.i.all(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":l.i.unwrap(e);break;default:(0,p.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)}})),l.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 f=i(5);function v(e,t=document){const i=t.createElement("div");return(0,f.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;l.i.isText(o)&&/^\s/.test(o.nodeValue||"")||o&&i.insertBefore(t.createTextNode(" "),o)})),(0,u.f)(i.innerText)||""}function b(e,t){if(!l.i.isElement(e))return;const i=e=>(0,o.Lj)(e,"onerror",null),s=e=>{const t=e.getAttribute("href");t&&0===t.trim().indexOf("javascript")&&(0,o.Lj)(e,"href",location.protocol+"//"+t)};t.removeOnError&&(i(e),(0,o.$$)("[onerror]",e).forEach(i)),t.safeJavaScriptLink&&(s(e),(0,o.$$)('a[href^="javascript"]',e).forEach(s))}function y(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}var w=i(35);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 k(e){if(!e)return null;const t=l.i.isHTMLElement(e),i=t&&(0,o.iv)(e,"overflowY");return t&&"visible"!==i&&"hidden"!==i&&e.scrollHeight>=e.clientHeight?e:k(e.parentNode)||document.scrollingElement||document.body}const S=(e,t)=>{const i=t.getComputedStyle(e);let o=e.clientWidth;return o-=parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"),o},E=(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 r=i.body,n=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},a=i.defaultView||i.parentWindow,l=a.pageYOffset||n.scrollTop||r.scrollTop,c=a.pageXOffset||n.scrollLeft||r.scrollLeft,d=n.clientTop||r.clientTop||0,h=n.clientLeft||r.clientLeft||0;let u,p;const m=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&m){const{top:e,left:i}=E(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}};function I(e,t,i=!1){const o=e.getBoundingClientRect();let s=o.left,r=o.top;if((0,n.Zu)(t)&&t.iframe&&!i){const{left:e,top:i}=I(t.iframe,t,!0);s+=e,r+=i}return{left:Math.round(s),top:Math.round(r),width:Math.round(e.offsetWidth),height:Math.round(e.offsetHeight)}}function x(e){return(0,n.HD)(e)||(0,n.kJ)(e)?e.length:(0,n.PO)(e)?Object.keys(e).length:0}},function(e,t,i){"use strict";i.d(t,{$$:()=>$,tp:()=>M,II:()=>A,lI:()=>g,uR:()=>y,JL:()=>w,Nf:()=>C,hu:()=>s,Lj:()=>a.Lj,Xh:()=>E,XP:()=>I,RE:()=>a.RE,C6:()=>a.C6,bI:()=>_.b,H5:()=>r,WO:()=>f,UU:()=>P,iv:()=>_.i,iN:()=>G,kT:()=>R,qI:()=>N.q,X9:()=>B,vU:()=>X.v,V8:()=>j,U2:()=>l.U,gj:()=>m.g,BR:()=>Y,wx:()=>q,jF:()=>H,J8:()=>z,kc:()=>m.k,am:()=>a.XP,po:()=>a.po,wY:()=>k,GX:()=>S,XT:()=>T,Q8:()=>n,MN:()=>a.MN,u3:()=>a.u3,mB:()=>D,xL:()=>K,mc:()=>a.mc,W2:()=>J,n5:()=>O,t8:()=>p,P0:()=>Z});class o extends Error{constructor(e){super(e),this.name="AssertionError"}}function s(e,t){if(!e)throw new o("Assertion failed: "+t)}const r=console;function n(e,t=[""],i=null){return(...o)=>(r.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...o))}var a=i(10),l=i(37),c=i(5),d=i(21),h=i(7),u=i(18);function p(e,t,i){if(!(0,c.H)(e)||!e.length)return;const o=e.split(".");let s=i,r=o[0];for(let e=0;o.length-1>e;e+=1)r=o[e],(0,h.k)(s[r])||(0,u.PO)(s[r])||(s[r]=(0,d.k)(o[e+1])?[]:{}),s=s[r];s&&(s[o[o.length-1]]=t)}var m=i(30);class g{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),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,u.mf)(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,u.HD)(t[i])?w(e,t[i]).then((()=>k(e,t,i+1))):Promise.resolve(),S=(e,t,i=0)=>(0,u.HD)(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 r=t?t+"["+s+"]":s,n=e[s];i.push((0,u.PO)(n)?I(n,r):o(r)+"="+o(n))}return i.join("&")};var x=i(19);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(1);function A(e,t,i=0){if(Object.getPrototypeOf(e)!==Object.prototype)return e;const o=L.D.defaultOptions;if((0,u.HD)(e.preset)){if(void 0!==o.presets[e.preset]){const t=o.presets[e.preset];Object.keys(t).forEach((i=>{(0,u.nj)(e[i])&&(e[i]=t[i])}))}delete e.preset}const s={};return Object.keys(e).forEach((o=>{const r=e[o],n=t?t[o]:null;s[o]=(0,u.PO)(r)&&(0,u.PO)(n)&&!z(r)?A(r,n,i+1):0!==i&&(0,u.kJ)(r)&&!z(r)&&(0,u.kJ)(n)?[...r,...n.slice(r.length)]:r})),Object.setPrototypeOf(s,t),s}function M(e){return(0,a.XP)(e,!1).reduce(((t,i)=>(t[i]=e[i],t)),{})}const D=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},P=(e,t=400,i=345)=>{if(!(0,u.PX)(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 r=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="'+r+'//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?D(o.search):{v:o.pathname.substr(1)};return s.v?'<iframe width="'+t+'" height="'+i+'" src="'+r+"//www.youtube.com/embed/"+s.v+'" frameborder="0" allowfullscreen></iframe>':e}}return e};var _=i(34);const R=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 N=i(11);const B=(e,t="en")=>"auto"!==e&&(0,u.HD)(e)?e:document.documentElement&&document.documentElement.lang?document.documentElement.lang:navigator.language?navigator.language.substr(0,2):t,q=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)},H=(e,t,i)=>{let o=e.getBoundingClientRect(),s=e;const r=o.top,n=o.height;do{if(s&&s.parentNode){if(s=s.parentNode,o=s.getBoundingClientRect(),r>o.bottom)return!1;if(o.top>=r+n)return!1}}while(s&&s!==t&&s.parentNode);return(i.documentElement&&i.documentElement.clientHeight||0)>=r},O=(e,t,i)=>{H(e,t,i)||(t.clientHeight!==t.scrollHeight&&(t.scrollTop=e.offsetTop),H(e,t,i)||e.scrollIntoView())};i(2);var F=i(15),W=i(31),V=i(38),U=i(40);function $(e,t){let i;return i=t.querySelectorAll(e),[].slice.call(i)}const Y=(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 Y(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(i.length>1?"["+((0,V.qo)(i).indexOf(e)+1)+"]":"")},K=e=>(e instanceof U.u1&&(e=e.container),$("[ref],[data-ref]",e).reduce(((e,t)=>{const i=(0,a.Lj)(t,"-ref");return i&&(0,u.HD)(i)&&(e[(0,W.eV)(i)]=t,e[i]=t),e}),{})),G=e=>{if(!F.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 J(e,t){let i=e;if((0,u.HD)(e))try{i=t.querySelector(e)}catch(t){throw(0,X.v)('String "'+e+'" should be valid HTML selector')}if(!i||"object"!=typeof i||!F.i.isElement(i)||!i.cloneNode)throw(0,X.v)('Element "'+e+'" should be string or HTMLElement instance');return i}var X=i(4);const Z=(e,t,i)=>{const o=e.querySelector(t);return o?(i&&(o.value=i),o.value):""}},(e,t,i)=>{"use strict";i.d(t,{C6:()=>m,Lj:()=>u,MN:()=>p,RE:()=>h,XP:()=>b,mc:()=>f,po:()=>v,u3:()=>y});var o=i(6),s=i(26),r=i(37),n=i(11),a=i(20),l=i(18),c=i(34),d=i(31);function h(e,...t){return e(...t)}function u(e,t,i){if(!e||!(0,o.m)(e.getAttribute))return null;if(!(0,l.HD)(t))return Object.keys(t).forEach((i=>{const o=t[i];(0,l.PO)(o)&&"style"===i?(0,c.i)(e,o):("className"===i&&(i="class"),u(e,i,o))})),null;let s=(0,d.gP)(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 g={},f=e=>{var t,i;if(!(e in g)){const i=document.createElement("iframe");try{if(i.src="about:blank",document.body.appendChild(i),!i.contentWindow)return null;const s=(0,r.U)(e,i.contentWindow),n=(0,r.U)(e.split(".").slice(0,-1).join("."),i.contentWindow);(0,o.m)(s)&&(g[e]=s.bind(n))}catch(e){}finally{null===(t=i.parentNode)||void 0===t||t.removeChild(i)}}return null!==(i=g[e])&&void 0!==i?i:null},v=(e,t)=>t.async.promise(((i,o)=>{const s=new Image,r=()=>{t.e.off(s),null==o||o()},n=()=>{t.e.off(s),i(s)};t.e.one(s,"load",n).one(s,"error",r).one(s,"abort",r),s.src=e,s.complete&&n()})),b=(e,t=!0)=>{if(t)return Object.keys(e);const i=[];for(const t in e)i.push(t);return i},y=(e,t,{control:i},o)=>{var s;const r="button"+i.command;let l=null!==(s=i.args&&i.args[0])&&void 0!==s?s:(0,n.q)(e,r);if((0,a.n)(l))return!1;(0,n.q)(e,r,l),o&&(l=o(l)),e.execCommand(i.command,!1,null!=l?l:void 0)}},(e,t,i)=>{"use strict";i.d(t,{q:()=>n});var o=i(12),s=i(18);const r=new WeakMap,n=(e,t,i)=>{let n=r.get(e);if(!n){n={},r.set(e,n);let t=null;e instanceof o.Hr&&(t=e.j.e),(0,s.f2)(e)&&(t=e.e),t&&t.on("beforeDestruct",(()=>{r.delete(e)}))}return void 0===i?n[t]:(n[t]=i,i)}},function(e,t,i){"use strict";i.d(t,{wA:()=>a,n$:()=>o,Hr:()=>l});const o={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"};var s=i(8),r=i(13);const n=new Map;class a{constructor(){this.ownerWindow=window,this.__componentStatus=o.beforeInit,this.uid="jodit-uid-"+(0,r.fe)()}get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,s.kebabCase)(((0,s.isFunction)(this.className)?this.className():"")||(0,s.getClassName)(this))),this.__componentName}getFullElName(e,t,i){const o=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),o.push("__"+e)),t&&(o.push("_",t),o.push("_",(0,s.isVoid)(i)?"true":""+i)),o.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,s.get)(e,t||this)}get isReady(){return this.componentStatus===o.ready}get isDestructed(){return this.componentStatus===o.destructed}get isInDestruct(){return o.beforeDestruct===this.componentStatus||o.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(o.beforeDestruct,(()=>!this.isInDestruct&&this.destruct())),this}destruct(){this.setStatus(o.destructed),n.get(this)&&n.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,s.isFunction)(i.setStatusComponent)&&i.setStatusComponent(e,t);const o=n.get(this),r=null==o?void 0:o[e];r&&r.length&&r.forEach((e=>e(t)))}hookStatus(e,t){let i=n.get(this);i||(i={},n.set(this,i)),i[e]||(i[e]=[]),i[e].push(t)}}a.STATUSES=o;class l extends a{constructor(e){super(),this.setParentView(e)}get defaultTimeout(){return this.j.defaultTimeout}get j(){return this.jodit}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()}}},(e,t,i)=>{"use strict";i.d(t,{KQ:()=>g,TB:()=>b,ZO:()=>v,as:()=>c,fe:()=>u,pw:()=>p,qz:()=>m});var o=i(14),s=i(15),r=i(3),n=i(18),a=i(30),l=i(31);const c={};let d=1;const h=new Set;function u(){function e(){return d+=10*(Math.random()+1),Math.round(d).toString(16)}let t=e();for(;h.has(t);)t=e();return h.add(t),t}const p=new o.h,m={},g={},f=new WeakMap;function v(e,t,i="div",o=!1){const r=t?(0,a.g)(t.prototype):"jodit-utils",c=f.get(e)||{},d=r+i,h=(0,n.f2)(e)?e:e.j;if(!c[d]){let t=h.c,a=(0,n.Zu)(e)&&e.o.shadowRoot?e.o.shadowRoot:e.od.body;if(o&&(0,n.Zu)(e)&&e.od!==e.ed){t=e.createInside;const o="style"===i?e.ed.head:e.ed.body;a=(0,n.Zu)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}const u=t.element(i,{className:`jodit jodit-${(0,l.GL)(r)}-container jodit-box`});u.classList.add("jodit_theme_"+(h.o.theme||"default")),a.appendChild(u),c[d]=u,e.hookStatus("beforeDestruct",(()=>{s.i.safeRemove(u),delete c[d],Object.keys(c).length&&f.delete(e)})),f.set(e,c)}return c[d].classList.remove("jodit_theme_default","jodit_theme_dark"),c[d].classList.add("jodit_theme_"+(h.o.theme||"default")),c[d]}const b=new r.vp},function(e,t,i){"use strict";i.d(t,{h:()=>s});var o=i(8);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))),r=[],n={},a=[],l={},c=([t,c])=>{if(i.includes(t)||r.includes(t)||n[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,r,n),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,r,n){const a=(t,i)=>{if((0,o.isInitable)(i)){const o=i.requires;if((null==o?void 0:o.length)&&!o.every((e=>r.includes(e))))return n[t]=i,!1;try{i.init(e)}catch(e){}r.push(t)}else r.push(t);return i.hasStyle&&s.loadStyle(e,t),!0};a(t,i),Object.keys(n).forEach((e=>{const t=n[e];t&&a(e,t)&&(n[e]=void 0,delete n[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},function(e,t,i){"use strict";i.d(t,{i:()=>n});var o=i(2),s=i(8),r=i(16);class n{static detach(e){for(;e.firstChild;)e.removeChild(e.firstChild)}static wrapInline(e,t,i){let o,r=e,a=e;i.s.save();let l=!1;do{l=!1,o=r.previousSibling,o&&!n.isBlock(o)&&(l=!0,r=o)}while(l);do{l=!1,o=a.nextSibling,o&&!n.isBlock(o)&&(l=!0,a=o)}while(l);const c=(0,s.isString)(t)?i.createInside.element(t):t;r.parentNode&&r.parentNode.insertBefore(c,r);let d=r;for(;d&&(d=r.nextSibling,c.appendChild(r),r!==a&&d);)r=d;return i.s.restore(),c}static wrap(e,t,i){const o=(0,s.isString)(t)?i.element(t):t;if(!e.parentNode)throw(0,s.error)("Element should be in DOM");return e.parentNode.insertBefore(o,e),o.appendChild(e),o}static unwrap(e){const t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);n.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,r=!1){(0,s.isHTML)(t)&&(t=i.fromHTML(t));const n=(0,s.isString)(t)?i.element(t):t;if(!r)for(;e.firstChild;)n.appendChild(e.firstChild);return o&&(0,s.toArray)(e.attributes).forEach((e=>{n.setAttribute(e.name,e.value)})),e.parentNode&&e.parentNode.replaceChild(n,e),n}static isEmptyTextNode(e){return n.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return n.each(e,(e=>n.isEmptyTextNode(e)))}static isContentEditable(e,t){return n.isNode(e)&&!n.closest(e,(e=>n.isElement(e)&&"false"===e.getAttribute("contenteditable")),t)}static isEmpty(e,t=/^(img|svg|canvas|input|textarea|form)$/){return!e||(n.isText(e)?null==e.nodeValue||0===(0,s.trim)(e.nodeValue).length:!t.test(e.nodeName.toLowerCase())&&n.each(e,(e=>{if(n.isText(e)&&null!=e.nodeValue&&0!==(0,s.trim)(e.nodeValue).length||n.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 n.isNode(e)&&/^(td|th)$/i.test(e.nodeName)}static isImage(e){return n.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,s.isVoid)(e)&&"object"==typeof e&&n.isNode(e)&&o.IS_BLOCK.test(e.nodeName)}static isText(e){return!(!e||e.nodeType!==Node.TEXT_NODE)}static isElement(e){var t;return!!n.isNode(e)&&!(!(null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView)||e.nodeType!==Node.ELEMENT_NODE)}static isHTMLElement(e){var t;if(!n.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 n.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)&&n.isHTMLElement(e)&&n.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 n.find(e,t,i,!1,o)}static next(e,t,i,o=!0){return n.find(e,t,i,!0,o)}static prevWithClass(e,t){return n.prev(e,(e=>n.isElement(e)&&e.classList.contains(t)),e.parentNode)}static nextWithClass(e,t){return n.next(e,(e=>n.isElement(e)&&e.classList.contains(t)),e.parentNode)}static find(e,t,i,o=!0,s=!0){const r=this.nextGen(e,i,o,s);let n=r.next();for(;!n.done;){if(t(n.value))return n.value;n=r.next()}return null}static*nextGen(e,t,i=!0,o=!0){const s=[];let r=e;do{let t=i?r.nextSibling:r.previousSibling;for(;t;)s.unshift(t),t=i?t.nextSibling:t.previousSibling;yield*this.runInStack(e,s,i,o),r=r.parentNode}while(r!==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(e!==s&&(yield s),o){let e=i?s.lastChild:s.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}}}static findWithCurrent(e,t,i,o="nextSibling",s="firstChild"){let r=e;do{if(t(r))return r||null;if(s&&r&&r[s]){const e=n.findWithCurrent(r[s],t,r,o,s);if(e)return e}for(;r&&!r[o]&&r!==i;)r=r.parentNode;r&&r[o]&&r!==i&&(r=r[o])}while(r&&r!==i);return null}static findSibling(e,t=!0,i=(e=>!n.isEmptyTextNode(e))){let o=n.sibling(e,t);for(;o&&!i(o);)o=n.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(),n.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 all(e,t,i=!1){let o=e.childNodes?(0,s.toArray)(e.childNodes):[];return t(e)?e:(i&&(o=o.reverse()),o.forEach((e=>{n.all(e,t,i)})),null)}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=>n.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!!n.isElement(e)&&(r.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:()=>x,Ph:()=>h});var o=i(2),s=i(8),r=i(15),n=i(13);function a(e,t,i,o,a=!1){const{style:l,className:c}=e.options;return l&&(0,s.size)(l)>0&&Object.keys(l).forEach((c=>{if(""!==t.style.getPropertyValue((0,s.kebabCase)(c))||null!=l[c]){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,s.dataBind)(e,"shadowRoot"))return(0,s.dataBind)(e,"shadowRoot");const i=(0,n.ZO)(e),o=document.createElement("iframe");(0,s.css)(o,{width:0,height:0,position:"absolute",border:0}),o.src="about:blank",i.appendChild(o);const r=null===(t=o.contentWindow)||void 0===t?void 0:t.document,a=r?r.body:e.od.body;return(0,s.dataBind)(e,"shadowRoot",a),a})(e).appendChild(o);const a=(0,s.css)(o,i);return r.i.safeRemove(o),a})(i,t,c)===(0,s.normalizeCssValue)(c,l[c]))return!a&&(0,s.css)(t,c,null),void(o=((e,t,i)=>((0,s.attr)(t,"style")||((0,s.attr)(t,"style",null),t.tagName.toLowerCase()===e.defaultTag&&(r.i.unwrap(t),i=C)),i))(e,t,o=S));o=k,!a&&(0,s.css)(t,c,l[c])}})),c&&(t.classList.contains(c)?(t.classList.remove(c),o=S):(t.classList.add(c),o=k)),o}var l=i(29),c=i(17),d=i(28);class h{constructor(e){this.jodit=e,e.e.on("removeMarkers",(()=>{this.removeMarkers()}))}get j(){return this.jodit}errorNode(e){if(!r.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()}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(!r.i.isOrContains(this.j.editor,e,!0))throw(0,s.error)("Selection.removeNode can remove only editor's children");r.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 r.i.isNode(e)&&r.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(){r.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&&r.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),r.i.safeRemove(i),e.setEndBefore(s),r.i.safeRemove(s);else{const t=i.previousSibling;r.i.isText(t)?e.setStart(t,t.nodeValue?t.nodeValue.length:0):e.setStartBefore(i),r.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 a=this.sel,l=(null==a?void 0:a.rangeCount)?null==a?void 0:a.getRangeAt(0):null;if(!l||!r.i.isOrContains(this.area,l.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(r.i.isTag(o,"br")&&t.isCollapsed)return o;if(!r.i.isText(o)){if(o=i.startContainer.childNodes[i.startOffset],o||(o=i.startContainer.childNodes[i.startOffset-1],s=!0),o&&t.isCollapsed&&!r.i.isText(o))if(!s&&r.i.isText(o.previousSibling))o=o.previousSibling;else if(e){let e=n(o);for(;e;){if(e&&r.i.isText(e)){o=e;break}e=n(e)}}if(o&&!t.isCollapsed&&!r.i.isText(o)){let e=o,t=o;do{e=e.firstChild,t=t.lastChild}while(e&&t&&!r.i.isText(e));e===t&&e&&r.i.isText(e)&&(o=e)}}if(o&&r.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);r.i.isOrContains(this.area,t.commonAncestorContainer)?r.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){if(""===e)return;const t=this.j.createInside.div(),i=this.j.createInside.fragment();let o;if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),r.i.isNode(e)?t.appendChild(e):t.innerHTML=""+e,(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",t.innerHTML))&&(o=t.lastChild,o)){for(;t.firstChild;)o=t.firstChild,i.appendChild(t.firstChild);this.insertNode(i,!1,!1),o?this.setCursorAfter(o):this.setCursorIn(i),this.j.e&&this.j.e.fire("synchro")}}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 r=()=>{(o.offsetHeight>o.naturalHeight||o.offsetWidth>o.naturalWidth)&&(o.style.width="",o.style.height=""),o.removeEventListener("load",r)};this.j.e.on(o,"load",r),o.complete&&r(),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 a=n.commonAncestorContainer;r.i.isHTMLElement(a)||(a=a.parentElement);const l=[],c=n.startOffset,d=a.childNodes.length,u=d>c?c:d-1;let p=n.startContainer===this.area?a.childNodes[u]:n.startContainer,m=n.endContainer===this.area?a.childNodes[n.endOffset-1]:n.endContainer;r.i.isText(p)&&p===n.startContainer&&n.startOffset===(null===(t=p.nodeValue)||void 0===t?void 0:t.length)&&p.nextSibling&&(p=p.nextSibling),r.i.isText(m)&&m===n.endContainer&&0===n.endOffset&&m.previousSibling&&(m=m.previousSibling);const g=e=>{!e||e===a||r.i.isEmptyTextNode(e)||h.isMarker(e)||l.push(e)};g(p),p!==m&&r.i.find(p,(e=>(g(e),e===m||e&&e.contains&&e.contains(m))),a,!0,!1);const f=t=>{if(r.i.isOrContains(this.j.editor,t,!0)){if(t.nodeName.match(/^(UL|OL)$/))return(0,s.toArray)(t.childNodes).forEach(f);if(r.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===l.length&&r.i.isEmptyTextNode(p)&&l.push(p),0===l.length&&p.firstChild&&l.push(p.firstChild),l.forEach(f)}}cursorInTheEdge(e,t){var i,n;const a=!e,l=null===(i=this.sel)||void 0===i?void 0:i.getRangeAt(0),c=this.current(!1);if(!l||!c||!r.i.isOrContains(t,c,!0))return null;const d=e?l.startContainer:l.endContainer,h=e?l.startOffset:l.endOffset,u=e=>e&&!r.i.isTag(e,"br")&&!r.i.isEmptyTextNode(e);if(r.i.isText(d)){const t=(null===(n=d.nodeValue)||void 0===n?void 0:n.length)?d.nodeValue:"";if(a&&t.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").length>h)return!1;const i=(0,o.INVISIBLE_SPACE_REG_EXP_START)().exec(t);if(e&&(i&&h>i[0].length||!i&&h>0))return!1}else{const e=(0,s.toArray)(d.childNodes);if(a){if(e.slice(h).some(u))return!1}else if(e.slice(0,h).some(u))return!1}return!(0,s.call)(e?r.i.prev:r.i.next,c,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),!r.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 a=this.createRange();let l=null;return r.i.isText(e)?t?a.setStart(e,0):a.setEnd(e,null!==(n=null===(i=e.nodeValue)||void 0===i?void 0:i.length)&&void 0!==n?n:0):(l=this.j.createInside.text(o.INVISIBLE_SPACE),t?a.setStartBefore(e):a.setEndAfter(e),a.collapse(t),a.insertNode(l),a.selectNode(l)),a.collapse(t),this.selectRange(a),l}setCursorIn(e,t=!1){if(this.errorNode(e),!r.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,a=e;do{if(r.i.isText(n))break;a=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(a.nodeName)?n=a:(a.appendChild(e),a=e)}return i.selectNodeContents(n||a),i.collapse(t),this.selectRange(i),a}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),!r.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 r.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&&h.isMarker(e)||(e&&h.isMarker(e)&&r.i.before(t,e),i&&h.isMarker(i)&&r.i.after(t,i),yield t),r.i.unwrap(t)}}wrapInTag(e){const t=[];for(const i of this.wrapInTagGen())try{if(i.firstChild&&i.firstChild===i.lastChild&&h.isMarker(i.firstChild))continue;(0,s.isFunction)(e)?e(i):t.push(r.i.replace(i,e,this.j.createInside))}finally{const e=i.parentNode;e&&(r.i.unwrap(i),r.i.isEmpty(e)&&r.i.unwrap(e))}return t}applyStyle(e,t={}){new x({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),a=this.j.createInside.element("br"),l=this.j.createInside.text(o.INVISIBLE_SPACE),c=l.cloneNode();try{if(s||n){i.insertNode(a);const e=(e,t)=>{let i=t(e);for(;i;){const e=t(i);if(!i||!r.i.isTag(i,"br")&&!r.i.isEmptyTextNode(i))break;r.i.safeRemove(i),i=e}};e(a,(e=>e.nextSibling)),e(a,(e=>e.previousSibling)),r.i.after(a,c),r.i.before(a,l),s?(t.setEndBefore(a),i.setEndBefore(a)):(t.setEndAfter(a),i.setEndAfter(a))}else t.setEnd(i.startContainer,i.startOffset);const o=t.extractContents();if(e.parentNode)try{if(e.parentNode.insertBefore(o,e),s&&(null==a?void 0:a.parentNode)){const e=this.createRange();e.setStartBefore(a),this.selectRange(e)}}catch(e){}const d=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(a.cloneNode()))};d(l),d(c)}finally{r.i.safeRemove(l),r.i.safeRemove(c)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;const{range:e}=this,t=e.cloneRange();if(!r.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,d.f)(i,t,this.j.editor),i},o=i(!0),s=i(!1);t.setStartAfter(o),t.setEndBefore(s);const n=r.i.findSibling(o,!1),a=r.i.findSibling(s,!0);if(n!==a){const e=r.i.isElement(n)&&r.i.isOrContains(n,s),i=!e&&r.i.isElement(a)&&r.i.isOrContains(a,o);if(e||i){let i=e?n:a,l=i;for(;r.i.isElement(i);)i=e?i.firstElementChild:i.lastElementChild,i&&r.i.isOrContains(i,e?s:o)&&(l=i);e?t.setStart(l,0):t.setEnd(l,l.childNodes.length)}}return this.selectRange(t),r.i.safeRemove(o,s),this}}function u(e,t,i){const o=i.s.createRange(),s=h.isMarker(t.previousSibling)?t.previousSibling:t;o.setStartBefore(e),o.setEndBefore(s),p(e,o,!0);const r=h.isMarker(t.nextSibling)?t.nextSibling:t;o.setStartAfter(r),o.setEndAfter(e),p(e,o,!1)}function p(e,t,i){const o=t.extractContents();o.textContent&&(0,s.trim)(o.textContent).length||!o.firstChild||r.i.unwrap(o.firstChild),e.parentNode&&(0,s.call)(i?r.i.before:r.i.after,e,o)}(0,l.gn)([c.autobind],h.prototype,"createRange",null),(0,l.gn)([c.autobind],h.prototype,"focus",null),(0,l.gn)([c.autobind],h.prototype,"setCursorAfter",null),(0,l.gn)([c.autobind],h.prototype,"setCursorBefore",null),(0,l.gn)([c.autobind],h.prototype,"setCursorIn",null);class m{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 g(e){return!(!e||r.i.isEmptyTextNode(e)||r.i.isTemporary(e))}function f(e,t,i){if(!t)return!1;const{element:o,elementIsDefault:n,options:a}=e,l=!(!a.style||!((e,t)=>!(r.i.isTag(e,"font")||!r.i.isHTMLElement(e)||!Object.keys(t).every((i=>{const o=(0,s.css)(e,i,!0);return!(0,s.isVoid)(o)&&""!==o&&!(0,s.isVoid)(t[i])&&(""+(0,s.normalizeCssValue)(i,t[i])).toLowerCase()===(""+o).toLowerCase()}))))(t,a.style)),c=t.nodeName.toLowerCase()===o||r.i.isTag(t,["ul","ol"])&&e.elementIsList;return!!((!n||!i)&&c||l&&g(t))||!(c||i||!n||!r.i.isInlineBlock(t))}function v(e,t){const{element:i,options:o}=e;if(!t||!g(t))return!1;const n=t.nodeName.toLowerCase()===i,a=!(!o.style||!((e,t)=>!(r.i.isTag(e,"font")||!r.i.isHTMLElement(e)||!Object.keys(t).every((t=>!(0,s.isVoid)((0,s.css)(e,t,!0))))))(t,o.style));return n&&a}function b(e,t,i){const{parentNode:o}=t;return o===i||!r.i.isHTMLElement(o)||r.i.next(t,g,o)||r.i.prev(t,g,o)?null:e.isElementCommit&&e.elementIsBlock&&!r.i.isBlock(o)?b(e,o,i):!f(e,o,!1)||r.i.isBlock(o)&&!e.elementIsBlock?null:o}function y(e,t){const{s:i,editor:o}=e,n=new m("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)=>!!r.i.closest(e,["style","script"],t))(t.value,o)&&!r.i.isEmptyContent(t.value))return this.setState("check"),t.value}},check:{work(i){let o=b(t,i,e.editor)||((e,t)=>{let{firstChild:i}=t;for(;i&&!g(i);)if(i=i.nextSibling,!i)return null;return i&&!r.i.next(i,g,t)&&f(e,i,!1)?i:null})(t,i);return o?(this.setState("wholeElement"),o):(o=r.i.closest(i,(e=>f(t,e,!0)),e.editor),o&&(t.elementIsBlock||u(o,i,e)),t.elementIsList&&r.i.isTag(o,["ul","ol"])?(this.setState("orderList"),i):o?(this.setState("wholeElement"),o):((e,t)=>{const i=[],o=[];let n;const a=e.options.style;if(t.firstChild){const l=r.i.eachGen(t);let c=l.next();for(;!c.done;){const t=c.value;f(e,t,!0)?(void 0===n&&(n=!0),i.push(t)):a&&v(e,t)?(void 0===n&&(n=!1),o.push((()=>{(0,s.css)(t,Object.keys(a).reduce(((e,t)=>(e[t]=null,e)),{})),(0,s.attr)(t,"style")||(0,s.attr)(t,"style",null),t.nodeName.toLowerCase()===e.element&&i.push(t)}))):r.i.isEmptyTextNode(t)||void 0===n&&(n=!1),c=l.next()}}return o.forEach((e=>e())),i.forEach(r.i.unwrap),!!n})(t,i)?(this.setState("endProcess"),null):(this.setState("wrap"),i))}},wholeElement:{toggleStyles(i){let o=E;var s,n;n=i,o=((s=t).elementIsBlock||r.i.isTag(n,s.element)&&!s.elementIsDefault)&&(r.i.unwrap(n),1)?C:a(t,i,e,o),this.setState("generator",o)}},orderList:{toggleStyles(i){let o=E;const s=r.i.closest(i,"li",e.editor);s&&r.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?(a(e,r.i.replace(s,e.element,i.createInside),i,o),I):a(e,t.parentElement,i,E,!0)===k?a(e,t.parentElement,i,o):(u(s,t,i),r.i.unwrap(t.parentElement),r.i.replace(t,i.o.enter,i.createInside),o):o})(t,s,e,o),this.setState(o!==I&&o!==C&&o!==k?"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=r.i.up(t,(e=>r.i.isBlock(e)&&!r.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,a=(e,t="previousSibling")=>{let o=e,n=e;for(;n&&!r.i.isTag(n,i.o.enter)&&(o=n,n=n[t]?n[t]:n.parentNode&&!r.i.isBlock(n.parentNode)&&n.parentNode!==s?n.parentNode:null,!r.i.isBlock(n)););return o},l=a(t),c=a(t,"nextSibling"),d=o();d.setStartBefore(l),d.setEndAfter(c);const h=d.extractContents(),u=n.element(e.element);return u.appendChild(h),d.insertNode(u),e.elementIsBlock&&r.i.isEmpty(u)&&!r.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=r.i.replace(t,"li",i.createInside);let s=o.previousElementSibling||o.nextElementSibling;return r.i.isTag(s,["ul","ol"])||(s=i.createInside.element(e.element),r.i.before(o,s)),o.previousElementSibling===s?r.i.append(s,o):r.i.prepend(s,o),s})(e,o,i):r.i.replace(o,e.element,i.createInside,!0)})(t,i,e);a(t,o,e,w)}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 l=n.dispatch("initGenerator");for(;"end"!==n.getState();){const e=n.dispatch("nextFont",l);if(e){const t=n.dispatch("work",e);n.dispatch("toggleStyles",t)}}n.dispatch("finalize",l)}const w="wrap",C="unwrap",k="change",S="unset",E="initial",I="replace";class x{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){y(e,this)}}},function(e,t,i){"use strict";i.r(t),i.d(t,{autobind:()=>E,cache:()=>s,component:()=>n,debounce:()=>d,getPropertyDescriptor:()=>y,hook:()=>p,idle:()=>u,nonenumerable:()=>m,persistent:()=>g,throttle:()=>h,wait:()=>f,watch:()=>w});var o=i(8);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}}const r=e=>(0,o.isFunction)(e.className)?e.className():NaN;function n(e){class t extends e{constructor(...e){super(...e);const i=Object.getPrototypeOf(this)===t.prototype,o=r(this)===r(t.prototype);(i||o)&&this.setStatus("ready")}}return t.prototype.constructor=e,t}var a=i(18),l=i(12),c=i(4);function d(e,t=!1,i="debounce"){return(o,s)=>{if(!(0,a.mf)(o[s]))throw(0,c.v)("Handler must be a Function");o.hookStatus(l.n$.ready,(o=>{const r=(0,a.f2)(o)?o:o.jodit,n=(0,a.mf)(e)?e(o):e;o[s]=r.async[i](o[s].bind(o),(0,a.hj)(n)||(0,a.PO)(n)?n:r.defaultTimeout,t)}))}}function h(e,t=!1){return d(e,t,"throttle")}function u(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,o.error)("Handler must be a Function");e.hookStatus(l.n$.ready,(e=>{const i=(0,o.isViewObject)(e)?e:e.jodit,s=e[t];e[t]=(...t)=>i.async.requestIdleCallback(s.bind(e,...t))}))}}function p(e){return(t,i)=>{if(!(0,a.mf)(t[i]))throw(0,c.v)("Handler must be a Function");t.hookStatus(e,(e=>{t[i].call(e)}))}}const m=(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})}})};function g(e,t){e.hookStatus(l.n$.ready,(e=>{const i=(0,o.isViewObject)(e)?e:e.jodit,s=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!==(e=i.storage.get(s))&&void 0!==e?e:r},set(e){i.storage.set(s,e)}})}))}function f(e){return(t,i)=>{if(!(0,o.isFunction)(t[i]))throw(0,o.error)("Handler must be a Function");t.hookStatus(l.n$.ready,(t=>{const s=(0,o.isViewObject)(t)?t.async:t.j.async,r=t[i];let n=0;t[i]=function i(...o){s.clearTimeout(n),e(t)?r.apply(t,o):n=s.setTimeout((()=>i(...o)),10)}}))}}var v=i(3),b=i(27);function y(e,t){let i;do{i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e)}while(!i&&e);return i}function w(e,t){return(i,o)=>{if(!(0,a.mf)(i[o]))throw(0,c.v)("Handler must be a Function");const s=s=>{const r=(e,...t)=>{if(!s.isInDestruct)return s[o](e,...t)};(0,b.C)(e).forEach((e=>{if(/:/.test(e)){const[i,o]=e.split(":"),n=(0,a.f2)(s)?s:s.jodit;return i.length&&(t=s.get(i)),(0,a.mf)(t)&&(t=t(s)),n.events.on(t||s,o,r),t||n.events.on(o,r),void n.hookStatus("beforeDestruct",(()=>{n.events.off(t||s,o,r).off(o,r)}))}const o=e.split("."),[n]=o,l=o.slice(1);let c=s[n];(0,a.PO)(c)&&(0,v.LO)(c).on("change."+l.join("."),r);const d=y(i,n);Object.defineProperty(s,n,{configurable:!0,set(e){const t=c;t!==e&&(c=e,d&&d.set&&d.set.call(s,e),(0,a.PO)(c)&&(c=(0,v.LO)(c),c.on("change."+l.join("."),r)),r(n,t,c))},get(){return d&&d.get?d.get.call(s):c}})}))};(0,a.mf)(i.hookStatus)?i.hookStatus(l.n$.ready,s):s(i)}}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e=>typeof e:e=>e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e,C(e)}function k(e,t,i){var o=i.value;if("function"!=typeof o)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(C(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 S(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,k(e,t,i))}})),e}function E(){return 1===arguments.length?S.apply(void 0,arguments):k.apply(void 0,arguments)}},(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:()=>v,kJ:()=>s.k,jn:()=>r,Z$:()=>f,Xy:()=>a,LP:()=>l,mf:()=>c.m,FP:()=>h,I4:()=>u,Gu:()=>g,GN:()=>y,Zu:()=>C,A1:()=>S,QC:()=>E.Q,hj:()=>I.h,kE:()=>b.k,PO:()=>x.P,tI:()=>z.t,HD:()=>d.H,PX:()=>T,r1:()=>j,f2:()=>k,nj:()=>m.n,FJ:()=>L.F});var s=i(7);function r(e){return"boolean"==typeof e}var n=i(19);function a(e,t){return e===t||(0,n.P)(e)===(0,n.P)(t)}function l(e,t){return e===t}var c=i(6),d=i(5);const h=e=>(0,d.H)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""));function u(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 p=i(15),m=i(20);function g(e){return!(0,m.n)(e)&&(0,c.m)(e.init)}function f(e){return!(0,m.n)(e)&&(0,c.m)(e.destruct)}function v(e){return!(0,m.n)(e)&&p.i.isElement(e.container)}var b=i(21);function y(e){return(0,d.H)(e)&&(0,b.k)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}var w=i(13);function C(e){return!!(e&&e instanceof Object&&(0,c.m)(e.constructor)&&("undefined"!=typeof Jodit&&e instanceof Jodit||e.isJodit))}function k(e){return!!(e&&e instanceof Object&&(0,c.m)(e.constructor)&&(e instanceof w.qz.View||e.isView))}const S=e=>(0,d.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 E=i(22),I=i(23),x=i(24),z=i(26);function T(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}function j(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_.]/.test(e)}var L=i(25)},(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})},(e,t,i)=>{"use strict";function o(e){return null==e}i.d(t,{n:()=>o})},(e,t,i)=>{"use strict";i.d(t,{k:()=>s});var o=i(5);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";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"number"==typeof e&&!isNaN(e)&&isFinite(e)}i.d(t,{h:()=>o})},(e,t,i)=>{"use strict";i.d(t,{P:()=>s});var o=i(25);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";function o(e){return e&&"function"==typeof e.then}i.d(t,{t:()=>o})},(e,t,i)=>{"use strict";i.d(t,{C:()=>s});var o=i(5);function s(e){return(0,o.H)(e)?e.split(/[,\s]+/):e}},(e,t,i)=>{"use strict";i.d(t,{F:()=>r,f:()=>n});var o=i(15),s=i(2);function r(e,t,i){let r=o.i.findSibling(t,i),n=o.i.findSibling(t,!i);for(;o.i.isElement(r)&&!o.i.isTag(r,s.INSEPARABLE_TAGS)&&o.i.isContentEditable(r,e.editor)&&(!n||!o.i.closest(t,o.i.isElement,e.editor));)i||!r.firstChild?r.appendChild(t):o.i.before(r.firstChild,t),r=o.i.sibling(t,i),n=o.i.sibling(t,!i)}function n(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";function o(e,t,i,o){var s,r=arguments.length,n=3>r?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(3>r?s(n):r>3?s(t,i,n):s(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n}i.d(t,{gn:()=>o})},(e,t,i)=>{"use strict";i.d(t,{g:()=>r,k:()=>s});var o=i(6);const s=new Map,r=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 r=(""+i).match(/^\s*function\s*(\S*)\s*\(/);return r?r[1]:""}},(e,t,i)=>{"use strict";i.d(t,{gP:()=>n,eV:()=>o.e,ag:()=>m,GL:()=>r,gB:()=>p,Pz:()=>s.P,fy:()=>a.f,as:()=>a.a,Ps:()=>l});var o=i(32),s=i(19);const r=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(),n=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var a=i(33);function l(e){return e.length?e[0].toUpperCase()+e.substr(1):""}var c=i(1),d=i(9),h=i(18),u=i(13);const p=(e,t)=>{if(!t||!t.length)return e;const i=/%([sd])/g;let o=i.exec(e),s=e,r=0;for(;o&&void 0!==t[r];)s=s.replace(o[0],""+t[r]),r+=1,o=i.exec(e);return s},m=(e,t,i)=>{if(!(0,h.HD)(e))throw(0,d.vU)("i18n: Need string in first argument");if(!e.length)return e;const o=!(void 0===i||!i.debugLanguage);let s;const r=e=>t&&t.length?p(e,t):e,n=(0,d.X9)(c.D.defaultOptions.language,c.D.defaultOptions.language),a=(0,d.X9)(null==i?void 0:i.language,n),m=t=>{if(!t)return;if((0,h.HD)(t[e]))return r(t[e]);const i=e.toLowerCase();if((0,h.HD)(t[i]))return r(t[i]);const o=l(e);return(0,h.HD)(t[o])?r(t[o]):void 0};s=void 0!==u.KQ[a]?u.KQ[a]:void 0!==u.KQ[n]?u.KQ[n]:u.KQ.en;const g=null==i?void 0:i.i18n;if(g&&g[a]){const e=m(g[a]);if(e)return e}return m(s)||(u.KQ.en&&(0,h.HD)(u.KQ.en[e])&&u.KQ.en[e]?r(u.KQ.en[e]):o?"{"+e+"}":r(e))}},(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,{a:()=>r,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 r(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,{b:()=>a,i:()=>n});var o=i(18),s=i(35),r=i(31);function n(e,t,i,a=!1){const l=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;if((0,o.jn)(i)&&(a=i,i=void 0),(0,o.PO)(t)||void 0!==i){const a=(e,t,i)=>{!(0,o.nj)(i)&&l.test(t)&&(0,o.kE)(""+i)&&(i=parseInt(""+i,10)+"px"),void 0===i||null!=i&&n(e,t,!0)===(0,s.Zh)(t,i)||(e.style[t]=i)};if((0,o.PO)(t)){const i=Object.keys(t);for(let o=0;i.length>o;o+=1)a(e,(0,r.eV)(i[o]),t[i[o]])}else a(e,(0,r.eV)(t),i);return""}const c=(0,r.GL)(t),d=e.ownerDocument||document,h=!!d&&(d.defaultView||d.parentWindow),u=e.style[t];let p="";return void 0!==u&&""!==u?p=u:h&&!a&&(p=h.getComputedStyle(e).getPropertyValue(c)),l.test(t)&&/^[-+]?[0-9.]+px$/.test(""+p)&&(p=parseInt(""+p,10)),(0,s.Zh)(t,p)}const a=e=>{"block"===n(e,"display")&&n(e,"display","");const{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}},(e,t,i)=>{"use strict";i.d(t,{ut:()=>f,Zh:()=>g,T2:()=>r,Pd:()=>n,Tz:()=>l,AH:()=>c,Jf:()=>d,aC:()=>h,D5:()=>u});var o=i(31),s=i(2);function r(e){const t={};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map((e=>(0,o.fy)(e.toLowerCase()))).map((e=>s.KEY_ALIASES[e]||e)).sort().filter((e=>!t[e]&&""!==e&&(t[e]=!0))).join("+")}const n=(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(15);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)}},c=(...e)=>e.filter((e=>(0,o.fy)(e).length)).map(((t,i)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),i&&(t=t.replace(/^\//,"")),i!==e.length-1&&(t=t.replace(/\/$/,"")),t))).join("/"),d=e=>e.split("/").reduce(((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e}),[]).join("/")+(e.endsWith("/")?"/":""),h=e=>/^[0-9]+$/.test(""+e)?e+"px":""+e,u=(...e)=>e.filter((e=>e.length)).map((e=>e.replace(/\/$/,""))).join("/").replace(/([^:])[\\/]+/g,"$1/");var p=i(18),m=i(36);function g(e,t){if("font-weight"===(0,o.GL)(e)){switch((""+t).toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,p.kE)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(""+t)&&(0,m.h)(""+t)||t}const f=e=>{const t=["#"];let i=(0,m.h)(e);if(!i)return!1;if(i=(0,o.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,{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,{U:()=>r});var o=i(5),s=i(20);function r(e,t){if(!(0,o.H)(e)||!e.length)return null;const i=e.split(".");let r=t;try{for(const e of i){if((0,s.n)(r[e]))return null;r=r[e]}}catch(e){return null}return(0,s.n)(r)?null:r}},(e,t,i)=>{"use strict";i.d(t,{_2:()=>s,C1:()=>r.C,qo:()=>n.q});var o=i(7);const s=e=>(0,o.k)(e)?e:[e];var r=i(27),n=i(39)},(e,t,i)=>{"use strict";i.d(t,{q:()=>r});var o=i(10),s=i(22);const r=(...e)=>{var t;return((0,s.Q)(Array.from)?Array.from:null!==(t=(0,o.mc)("Array.from"))&&void 0!==t?t:Array.from).apply(Array,e)}},function(e,t,i){"use strict";i.d(t,{zx:()=>s.zx,JO:()=>l.J,GI:()=>r.G,ko:()=>d,eC:()=>a.eC,y3:()=>s.y3,mA:()=>a.mA,u1:()=>o.u,Z:()=>a.Z,x4:()=>a.x4,qe:()=>n.qe,u3:()=>a.u3,bz:()=>n.bz,Cj:()=>a.Cj,lU:()=>n.lU,GJ:()=>a.GJ});var o=i(41),s=i(44),r=i(49),n=i(46),a=i(50),l=i(43),c=i(15);class d 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 c.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,{u:()=>l});var o=i(12),s=i(15),r=i(42),n=i(8),a=i(43);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=>t instanceof 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&&i instanceof t}return!1}));return i?null==i?void 0:i.component:null}setMod(e,t,i=this.container){return r.$.setMod.call(this,e,t,i),this}getMod(e){return r.$.getMod.call(this,e)}getElm(e){return r.F.getElm.call(this,e)}getElms(e){return r.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,n.isString)(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,$:()=>n});var o=i(39);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 r=i(20);class n{static setMod(e,t,i){if(e=e.toLowerCase(),this.mods[e]===t)return;const s=`${this.componentName}_${e}`,n=(i||this.container).classList;(0,o.q)(n).forEach((e=>{0===e.indexOf(s)&&n.remove(e)})),!(0,r.n)(t)&&""!==t&&n.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(8);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 r;if(t){const n=t.name.replace(/[^a-zA-Z0-9]/g,"_");if(t.iconURL)r=e.c.span(),(0,o.css)(r,"backgroundImage","url("+t.iconURL.replace("{basePath}",(null==e?void 0:e.basePath)||"")+")");else{const o=e.e.fire("getIcon",t.name,t,n)||s.get(t.name,"")||(null===(i=e.o.extraIcons)||void 0===i?void 0:i[t.name]);o&&(r=e.c.fromHTML(o.trim()),/^<svg/i.test(t.name)||r.classList.add("jodit-icon_"+n))}}return r&&(r.classList.add("jodit-icon"),r.style.fill=t.fill),r}}s.icons={}},function(e,t,i){"use strict";i.d(t,{zx:()=>o.zx,y3:()=>o.y3,Yc:()=>o.Yc});var o=i(45),s=i(29),r=i(46),n=i(17),a=i(8);let l=class extends r.qe{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.assert)(null!=t,"Options does not exist"),t.appendChild(e)}select(e){var t,i;this.elements.forEach(((t,i)=>{i===e||t.state.value===e?t.state.activated=!0:this.options.radio&&(t.state.activated=!1)}));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)([n.component],l)},function(e,t,i){"use strict";i.d(t,{Yc:()=>c,y3:()=>d,zx:()=>h});var o=i(29),s=i(40),r=i(15),n=i(8),a=i(17),l=i(12);const c=()=>({size:"middle",type:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0});let d=class extends s.u1{constructor(e,t){super(e),this.isButton=!0,this.state=c(),this.actionHandlers=[],this.updateSize(),this.onChangeSize(),this.onChangeStatus(),t&&this.hookStatus(l.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,n.attr)(this.container,"type",this.state.type)}updateSize(){const e=this.closest(s.bz);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,n.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,n.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,n.attr)(this.container,"data-ref",this.state.name),(0,n.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){this.get("j.o.useNativeTooltip")&&(0,n.attr)(this.container,"title",this.state.tooltip),(0,n.attr)(this.container,"aria-label",this.state.tooltip)}onChangeTabIndex(){(0,n.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){const e=this.get("j.o.textIcons");if(!0===e||(0,n.isFunction)(e)&&e(this.state.name))return;r.i.detach(this.icon);const t=s.JO.makeIcon(this.j,this.state.icon);t&&this.icon.appendChild(t)}focus(){this.container.focus()}isFocused(){const{activeElement:e}=this.od;return!(!e||!r.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 h(e,t,i,o){const s=new d(e);return s.state.tabIndex=e.o.allowTabNavigation?0:-1,(0,n.isString)(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,a.watch)("state.size")],d.prototype,"onChangeSize",null),(0,o.gn)([(0,a.watch)("state.type")],d.prototype,"onChangeType",null),(0,o.gn)([(0,a.watch)("parentElement")],d.prototype,"updateSize",null),(0,o.gn)([(0,a.watch)("state.variant")],d.prototype,"onChangeStatus",null),(0,o.gn)([(0,a.watch)("state.text")],d.prototype,"onChangeText",null),(0,o.gn)([(0,a.watch)("state.text")],d.prototype,"onChangeTextSetMode",null),(0,o.gn)([(0,a.watch)("state.disabled")],d.prototype,"onChangeDisabled",null),(0,o.gn)([(0,a.watch)("state.activated")],d.prototype,"onChangeActivated",null),(0,o.gn)([(0,a.watch)("state.name")],d.prototype,"onChangeName",null),(0,o.gn)([(0,a.watch)("state.tooltip")],d.prototype,"onChangeTooltip",null),(0,o.gn)([(0,a.watch)("state.tabIndex")],d.prototype,"onChangeTabIndex",null),(0,o.gn)([(0,a.watch)("state.icon")],d.prototype,"onChangeIcon",null),(0,o.gn)([a.autobind],d.prototype,"onActionFire",null),d=(0,o.gn)([a.component],d)},function(e,t,i){"use strict";i.d(t,{qe:()=>c,bz:()=>y,lU:()=>p});var o,s=i(29),r=i(41),n=i(17),a=i(8),l=i(15);let c=o=class extends r.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):i instanceof 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,n.watch)("buttonSize")],c.prototype,"update",null),c=o=(0,s.gn)([n.component],c);var d=i(47),h=i(1),u=i(18);let p=class extends r.u{className(){return"UISeparator"}};p=(0,s.gn)([n.component],p);var m=i(40);let g=class extends m.u1{className(){return"UISpacer"}};g=(0,s.gn)([n.component],g);var f=i(45),v=i(48),b=i(38);let y=class extends c{constructor(e){super(e),this.mode="horizontal",this.removeButtons=[],this.onChangeMode()}className(){return"UIList"}onChangeMode(){this.setMod("mode",this.mode)}makeGroup(){return new c(this.jodit)}get buttons(){return this.allChildren.filter((e=>e instanceof f.y3))}getButtonsNames(){return this.buttons.map((e=>e instanceof f.y3&&e.state.name||"")).filter((e=>""!==e))}setRemoveButtons(e){return this.removeButtons=e||[],this}build(e,t=null){e=(0,b.C1)(e),this.clear();let i,o=!1,s=this.makeGroup();this.append(s),s.setMod("line",!0);const r=e=>{let r=null;switch(e.name){case"\n":s=this.makeGroup(),s.setMod("line",!0),i=this.makeGroup(),s.append(i),this.append(s);break;case"|":o||(o=!0,r=new p(this.j));break;case"---":{i.setMod("before-spacer",!0);const e=new g(this.j);s.append(e),i=this.makeGroup(),s.append(i),o=!1;break}default:o=!1,r=this.makeButton(e,t)}r&&(i||(i=this.makeGroup(),s.append(i)),i.append(r))},n=e=>!this.removeButtons.includes(e.name);return e.forEach((e=>{if((0,v.A)(e)){const t=e.buttons.filter((e=>e));t.length&&(i=this.makeGroup(),i.setMod("separated",!0).setMod("group",e.group),s.append(i),((e,t)=>((0,u.kJ)(e)?e:(0,a.keys)(e,!1).map((t=>(0,a.ConfigProto)({name:t},e[t]||{})))).map((e=>(0,d.Y)(e,t||h.D.defaultOptions.controls))))(t,this.j.o.controls).filter(n).forEach(r))}else{i||(i=this.makeGroup(),s.append(i));const t=(0,d.Y)(e,this.j.o.controls);n(t)&&r(t)}})),this.update(),this}makeButton(e,t){return new f.y3(this.j)}};(0,s.gn)([(0,n.watch)("mode")],y.prototype,"onChangeMode",null),y=(0,s.gn)([n.component],y)},(e,t,i)=>{"use strict";i.d(t,{Y:()=>r,z:()=>n});var o=i(8),s=i(1);function r(e,t){let i;return t||(t=s.D.defaultOptions.controls),(0,o.isString)(e)?i=n(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 n(e,t){let[i,s]=e.split(/\./),r=t;return null!=s?void 0!==t[i]&&(r=t[i]):s=i,r[s]?{name:s,...(0,o.ConfigFlatten)(r[s])}:void 0}},(e,t,i)=>{"use strict";i.d(t,{A:()=>s,q:()=>r});var o=i(18);const s=e=>(0,o.kJ)(e.buttons);function r(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,{G:()=>c});var o=i(29),s=i(15),r=i(8),n=i(13),a=i(40),l=i(17);class c extends a.u1{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,r.attr)(this.container,"role","popup")}className(){return"Popup"}updateParentElement(e){return e!==this&&e instanceof c&&(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 e instanceof a.u1?(i=e.container,e.parentElement=this):i=(0,r.isString)(e)?this.j.c.fromHTML(e):e,t.appendChild(i),this.container.appendChild(t),this.updatePosition(),this}open(e,t=!1){(0,r.markOwner)(this.jodit,this.container),this.calculateZIndex(),this.isOpened=!0,this.addGlobalListeners(),this.targetBound=t?this.getKeepBound(e):e;const i=(0,n.ZO)(this.jodit,c);return i!==this.container.parentElement&&i.appendChild(this.container),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)};if(e(this.j))return;let t=this.parentElement;for(;t;){if(e(t.j))return;if(t.container.style.zIndex)return void this.setZIndex(1+parseInt(""+t.container.style.zIndex,10));if(!t.parentElement&&t.container.parentElement){const e=a.u1.closestElement(t.container.parentElement,a.u1);if(e){t=e;continue}}t=t.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,n=(0,r.position)(o,this.j);return()=>{const t=e(),i=(0,r.position)(o,this.j);return{...t,top:t.top+(i.top-n.top),left:t.left+(i.left-n.left)}}}updatePosition(){if(!this.isOpened)return this;const[e,t]=this.calculatePosition(this.targetBound(),this.viewBound(),(0,r.position)(this.container,this.j));return this.setMod("strategy",t),(0,r.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)},n={bottom:e.top+e.height,top:e.top-i.height},a=Object.keys(s).reduce(((e,t)=>e.concat(Object.keys(n).map((e=>`${t}${(0,r.ucfirst)(e)}`)))),[]),l=e=>{const[t,o]=(0,r.kebabCase)(e).split("-");return{left:s[t],top:n[o],width:i.width,height:i.height}},d=e=>{let t=null;return t=c.boxInView(l(o),e)?o:a.find((t=>{if(c.boxInView(l(t),e))return t}))||null,t};let h=d((0,r.position)(this.j.container,this.j));return h&&c.boxInView(l(h),t)||(h=d(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,r.isFunction)(e.composedPath)&&e.composedPath()[0]||e.target;if(!t)return!1;const i=a.u1.closestElement(t,c);return!(!i||this!==i&&!i.closest(this))}addGlobalListeners(){const e=this.throttleUpdatePosition,t=this.ow;n.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;n.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),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)([l.autobind],c.prototype,"updatePosition",null),(0,o.gn)([(0,l.throttle)(10),l.autobind],c.prototype,"throttleUpdatePosition",null),(0,o.gn)([l.autobind],c.prototype,"close",null),(0,o.gn)([l.autobind],c.prototype,"closeOnOutsideClick",null)},function(e,t,i){"use strict";i.d(t,{eC:()=>z,mA:()=>C,Z:()=>I,x4:()=>l,u3:()=>v,Cj:()=>S,GJ:()=>y});var o={};i.r(o),i.d(o,{required:()=>p,url:()=>m});var s=i(29),r=i(40),n=i(9),a=i(17);let l=class extends r.qe{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=>e instanceof r.u3));for(const t of e)if(!t.validate())return!1;const t=this.allChildren.filter((e=>e instanceof r.Cj));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=>e instanceof r.u3));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,n.Lj)(e,"dir",this.j.o.direction||"auto"),e}};l=(0,s.gn)([a.component],l);var c=i(41),d=i(8),h=i(15),u=i(43);const p=e=>!!(0,d.trim)(e.value).length||(e.error="Please fill out this field",!1),m=e=>!!(0,d.isURL)((0,d.trim)(e.value))||(e.error="Please enter a web address",!1),g=e=>!!(0,d.trim)(e.value).length||(e.error="Please fill out this field",!1);var f;let v=f=class extends c.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"),u.J.get("cancel")),this.state={...f.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?h.i.after(this.nativeInput,this.clearButton):h.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:r,placeholder:n,autocomplete:a,label:l}=this.state;(0,d.attr)(e,"name",t),(0,d.attr)(e,"type",o),(0,d.attr)(e,"data-ref",s||t),(0,d.attr)(e,"ref",s||t),(0,d.attr)(e,"required",r||null),(0,d.attr)(e,"autocomplete",a?null:"off"),(0,d.attr)(e,"placeholder",n?this.j.i18n(n):""),i&&u.J.exists(i)?(h.i.before(e,this.icon),this.icon.innerHTML=u.J.get(i)):h.i.safeRemove(this.icon),l?(h.i.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(l)):h.i.safeRemove(this.label),this.updateValidators()}updateValidators(){var e;this.validators.clear(),this.state.required&&this.validators.add(p),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)):h.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,d.toArray)(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,d.attr)(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)}};var b;v.defaultState={className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]},(0,s.gn)([(0,a.watch)("state.clearButton")],v.prototype,"onChangeClear",null),(0,s.gn)([(0,a.watch)("state.className")],v.prototype,"onChangeClassName",null),(0,s.gn)([(0,a.watch)(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"]),(0,a.debounce)()],v.prototype,"onChangeState",null),(0,s.gn)([(0,a.watch)("state.value")],v.prototype,"onChangeStateValue",null),(0,s.gn)([a.autobind],v.prototype,"onChangeValue",null),v=f=(0,s.gn)([a.component],v);let y=b=class extends v{constructor(e,t){super(e,t),this.state={...b.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 w;y.defaultState={...v.defaultState,size:5,resizable:!0},y=b=(0,s.gn)([a.component],y);let C=w=class extends v{constructor(e,t){super(e,{...t,type:"checkbox"}),this.state={...w.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"))),h.i.after(this.nativeInput,e)):h.i.safeRemove(e)}};var k;C.defaultState={...v.defaultState,checked:!1,switch:!1},(0,s.gn)([(0,a.watch)("state.checked"),(0,a.hook)("ready")],C.prototype,"onChangeChecked",null),(0,s.gn)([(0,a.watch)("nativeInput:change")],C.prototype,"onChangeNativeCheckBox",null),(0,s.gn)([(0,a.watch)("state.switch"),(0,a.hook)("ready")],C.prototype,"onChangeSwitch",null),C=w=(0,s.gn)([a.component],C);let S=k=class extends v{constructor(e,t){super(e,t),this.state={...k.defaultState},Object.assign(this.state,t)}className(){return"UISelect"}createContainer(e){var t;const i=super.createContainer(e),{j:o}=this,{nativeInput:s}=this,r=()=>o.create.element("option");if(void 0!==e.placeholder){const t=r();t.value="",t.text=o.i18n(e.placeholder),s.add(t)}return null===(t=e.options)||void 0===t||t.forEach((e=>{const t=r();t.value=""+e.value,t.text=o.i18n(e.text),s.add(t)})),e.size&&e.size>0&&(0,d.attr)(s,"size",e.size),e.multiple&&(0,d.attr)(s,"multiple",""),i}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(p),this.validators.add(g))}};S.defaultState={...v.defaultState,options:[],size:1,multiple:!1},S=k=(0,s.gn)([a.component],S);var E=i(44);let I=class extends v{constructor(e,t){super(e,{type:"file",...t}),this.state={...v.defaultState,type:"file",onlyImages:!0}}className(){return"UIFileInput"}createContainer(e){this.button=new E.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/>`)}};I=(0,s.gn)([a.component],I);var x=i(46);let z=class extends x.qe{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,n.Lj)(this.container,"data-ref",i.ref),(0,n.Lj)(this.container,"ref",i.ref)}className(){return"UIBlock"}};z=(0,s.gn)([a.component],z)},(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=>{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":"ارتفاع الخط"}},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"}},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"}},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"}},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"}},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":"גובה שורה"}},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"}},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"}},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"}},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":"ラインの高さ"}},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":"선 높이"}},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"}},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"}},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"}},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":"Высота линии"}},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"}},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":"线高"}},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":"ความสูงเส้น"}},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:()=>n,ov:()=>l,IL:()=>a});var o=i(8),s=i(40),r=i(15);const n=(e,t,i)=>{const n="jodit-color-picker",a=(0,o.normalizeColor)(i),l=e.c.div(n),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="${n}__group ${n}__group-${i}">`),t.push(d(e[i])),t.push("</div>")})):(0,o.isArray)(e)&&e.forEach((e=>{t.push(`<span class='${n}__color-item ${a===e?n+"__color-item_active_true":""}' title="${e}" style="background-color:${e}" data-color="${e}"></span>`)})),t.join("")};l.appendChild(e.c.fromHTML(`<div class="${n}__groups">${d(e.o.colors)}</div>`)),l.appendChild(e.c.fromHTML(`<div data-ref="extra" class="${n}__extra"></div>`));const{extra:h}=(0,o.refs)(l);return e.o.showBrowserColorPicker&&(0,o.hasBrowserColorPicker)()&&(h.appendChild(e.c.fromHTML(`<div class="${n}__native">${c}<input type="color" value="#ffffff"/></div>`)),e.e.on(l,"change",(e=>{e.stopPropagation();const i=e.target;if(!i||!i.tagName||!r.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&&!r.i.isTag(s,"svg")&&!r.i.isTag(s,"path")||!s.parentNode||(s=r.i.closest(s.parentNode,"span",e.editor)),!r.i.isTag(s,"span")||!s.classList.contains(n+"__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},a=(e,t,i)=>{const r=e.c.div("jodit-tabs"),n=e.c.div("jodit-tabs__wrapper"),a=e.c.div("jodit-tabs__buttons"),l={},c=[];let d="",h=0;r.appendChild(a),r.appendChild(n);const u=e=>{l[e]&&(c.forEach((e=>{e.state.activated=!1})),(0,o.$$)(".jodit-tab",n).forEach((e=>{e.classList.remove("jodit-tab_active")})),l[e].button.state.activated=!0,l[e].tab.classList.add("jodit-tab_active"))};if(t.forEach((({icon:r,name:p,content:m})=>{const g=e.c.div("jodit-tab"),f=(0,s.zx)(e,r||p,p);e.e.on(f.container,"mousedown",(e=>e.preventDefault())),d||(d=p),a.appendChild(f.container),c.push(f),f.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+t.length),(0,o.isFunction)(m)?g.appendChild(e.c.div("jodit-tab_empty")):g.appendChild(m instanceof s.u1?m.container:m),n.appendChild(g),f.onAction((()=>(u(p),(0,o.isFunction)(m)&&m.call(e),i&&(i.__activeTab=p),!1))),l[p]={button:f,tab:g},h+=1})),!h)return r;if((0,o.$$)("a",a).forEach((e=>{e.style.width=(100/h).toFixed(10)+"%"})),u(i&&i.__activeTab&&l[i.__activeTab]?i.__activeTab:d),i){let e=i.__activeTab;Object.defineProperty(i,"__activeTab",{get(){return e},set(t){e=t,u(t)}})}return r},l=(e,t,i,n,l=!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(l?"Drop image":"Drop file")}</strong><span><br>${e.i18n("or click")}</span><input type="file" accept="${l?"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(){n&&n(),t.filebrowser&&e.filebrowser.open(t.filebrowser,l)}}),t.url){const n=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,[n])]);c=null,i&&!r.i.isText(i)&&(r.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")),n.state.text="Update"),i&&r.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")),n.state.text="Update"),a.onSubmit((i=>{(0,o.isFunction)(t.url)&&t.url.call(e,i.url,i.text)})),d.push({icon:"link",name:"URL",content:a.container})}return a(e,d)}},(e,t,i)=>{"use strict";i.d(t,{z:()=>s});var o=i(8);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(9);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(15),s=i(18),r=i(8),n=i(73);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 r=i.args&&(0,s.HD)(i.args[0])?i.args[0].toLowerCase():"";if(!r)return!1;(0,n.z)(t,r),o.i.isTag(t,["jodit","jodit-media"])&&t.firstElementChild&&(0,n.z)(t.firstElementChild,r),e.setEditorValue(),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 n=i.args&&(0,s.HD)(i.args[0])?i.args[0].toLowerCase():"";if(!n)return!1;(0,r.css)(t,"vertical-align","normal"===n?"":n),e.e.fire("recalcPositionPopup")}},a]},(e,t,i)=>{"use strict";var o=i(18),s=i(8),r=i(72);const n=e=>e.args&&(0,o.HD)(e.args[0])?e.args[0].toLowerCase():"";t.Z=[{name:"brush",popup(e,t,i,n){if(!(0,o.Zu)(e))return;const a=e.getInstance("Table",e.o).getAllSelectedCells();if(!a.length)return!1;const l=t=>(0,r.YW)(e,(i=>{a.forEach((e=>{(0,s.css)(e,t,i)})),e.lock(),e.setEditorValue(),n(),e.unlock()}),(0,s.css)(a[0],t));return(0,r.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=n(i);e.getInstance("Table",e.o).getAllSelectedCells().forEach((e=>{(0,s.css)(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=n(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=n(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=n(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(75);t.Z=[{name:"bin",tooltip:"Delete",exec(e,t){t&&e.s.removeNode(t)}},o.A]},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 r=t[o]={exports:{}};return e[o](r,r.exports,i),r.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:()=>b,Alert:()=>U,Async:()=>g,CommitStyle:()=>Me.RP,Component:()=>y.wA,Confirm:()=>Y,ContextMenu:()=>S,Create:()=>J,Dialog:()=>V,Dom:()=>D.i,EventEmitter:()=>l.vp,EventHandlersStore:()=>l.DG,FileBrowser:()=>xe,Helpers:()=>f,History:()=>Ae,Icon:()=>P.JO,ImageEditor:()=>me,Plugin:()=>G,PluginSystem:()=>K.h,Popup:()=>P.GI,ProgressBar:()=>P.ko,Prompt:()=>$,Response:()=>v,STATUSES:()=>y.n$,Select:()=>Me.Ph,Snapshot:()=>Te,StatusBar:()=>De,Table:()=>_e,ToolbarButton:()=>B,ToolbarCollection:()=>_,ToolbarContent:()=>q,ToolbarEditorCollection:()=>R,UIBlock:()=>P.eC,UIButton:()=>P.y3,UICheckbox:()=>P.mA,UIElement:()=>P.u1,UIForm:()=>P.x4,UIGroup:()=>P.qe,UIInput:()=>P.u3,UIList:()=>P.bz,UISeparator:()=>P.lU,UITextArea:()=>P.GJ,Uploader:()=>Fe,View:()=>M,ViewComponent:()=>y.Hr,ViewWithToolbar:()=>W,defaultNameSpace:()=>l.rO,isFileBrowserFilesItem:()=>ze,observable:()=>l.LO});var t={};i.r(t),i.d(t,{Backspace:()=>ht,DragAndDrop:()=>Mt,DragAndDropElement:()=>Dt,KeyArrowOutside:()=>Rt,PasteFromWord:()=>St,WrapTextNodes:()=>mt,about:()=>Ze,addNewLine:()=>Xe,bold:()=>ut,classSpan:()=>et,cleanHtml:()=>pt,clipboard:()=>wt,color:()=>At,copyFormat:()=>Tt,enter:()=>_t,errorMessages:()=>Bt,file:()=>hi,focus:()=>Qe,font:()=>qt,formatBlock:()=>Ht,fullsize:()=>Ot,hotkeys:()=>Ft,hr:()=>ti,iframe:()=>Wt,image:()=>Zt,imageProcessor:()=>Xt,imageProperties:()=>Gt,indent:()=>ei,inlinePopup:()=>ii,justify:()=>si,limit:()=>ri,lineHeight:()=>ni,link:()=>li,media:()=>ci,mobile:()=>ui,orderedList:()=>mi,paste:()=>kt,pasteStorage:()=>Et,placeholder:()=>fi,poweredByJodit:()=>gi,preview:()=>Fi,print:()=>Wi,redoUndo:()=>vi,resizeCells:()=>Pi,resizeHandler:()=>Si,resizer:()=>yi,search:()=>wi,select:()=>ki,selectCells:()=>Ni,size:()=>Ei,source:()=>ji,stat:()=>Li,sticky:()=>Ai,symbols:()=>Mi,tab:()=>Oi,table:()=>qi,tableKeyboardNavigation:()=>Bi,tooltip:()=>Hi,video:()=>di,xpath:()=>Vi});var s={};i.r(s),i.d(s,{about:()=>Ui,addcolumn:()=>$i,addrow:()=>Yi,angle_down:()=>Ki,angle_left:()=>Gi,angle_right:()=>Ji,angle_up:()=>Xi,arrows_alt:()=>Zi,arrows_h:()=>Qi,attachment:()=>eo,bin:()=>to,bold:()=>io,brush:()=>oo,cancel:()=>so,center:()=>ro,chain_broken:()=>no,check:()=>ao,check_square:()=>lo,chevron:()=>co,copy:()=>po,copyformat:()=>ho,crop:()=>uo,cut:()=>mo,dedent:()=>go,dots:()=>fo,enter:()=>vo,eraser:()=>bo,eye:()=>yo,file:()=>wo,folder:()=>Co,font:()=>ko,fontsize:()=>So,fullsize:()=>Eo,hr:()=>Io,image:()=>xo,indent:()=>zo,info_circle:()=>To,italic:()=>jo,justify:()=>Lo,left:()=>Ao,line_height:()=>Mo,link:()=>Do,lock:()=>Po,menu:()=>_o,merge:()=>Ro,ok:()=>No,ol:()=>Bo,omega:()=>qo,outdent:()=>Ho,palette:()=>Oo,paragraph:()=>Fo,paste:()=>Wo,pencil:()=>Vo,plus:()=>Uo,print:()=>$o,redo:()=>Yo,resize:()=>Ko,resize_handler:()=>Go,resizer:()=>Jo,right:()=>Xo,save:()=>Zo,search:()=>Qo,select_all:()=>ts,settings:()=>es,shrink:()=>is,source:()=>os,splitg:()=>ss,splitv:()=>rs,strikethrough:()=>ns,subscript:()=>as,superscript:()=>ls,table:()=>cs,th:()=>ds,th_list:()=>hs,ul:()=>us,underline:()=>ps,undo:()=>ms,unlink:()=>gs,unlock:()=>fs,update:()=>vs,upload:()=>bs,valign:()=>ys,video:()=>ws});var r=i(29),n=i(1),a=i(2),l=i(3),c=i(51),d=i(6),h=i(24),u=i(26),p=i(5),m=i(23);class g{constructor(){var e,t,i,o;this.timers=new Map,this.promisesRejections=new Set,this.requestsIdle=new Set,this.requestIdleCallbackNative=null!==(t=null===(e=window.requestIdleCallback)||void 0===e?void 0:e.bind(window))&&void 0!==t?t:e=>{const t=Date.now();return this.setTimeout((()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})}),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 o={};(0,m.h)(t)||(o=t,t=o.timeout||0),o.label&&this.clearLabel(o.label);const s=(0,c.i)(e,t,...i);return this.timers.set(o.label||s,s),s}clearLabel(e){e&&this.timers.has(e)&&((0,c.g)(this.timers.get(e)),this.timers.delete(e))}clearTimeout(e){if((0,p.H)(e))return this.clearLabel(e);(0,c.g)(e),this.timers.delete(e)}debounce(e,t,i=!1){let o=0,s=!1;const r=[],n=(...t)=>{if(!s){o=0;const i=e(...t);if(s=!0,r.length){const e=()=>{r.forEach((e=>e())),r.length=0};(0,u.t)(i)?i.finally(e):e()}}},a=(...r)=>{s=!1,t?(!o&&i&&n(...r),(0,c.g)(o),o=this.setTimeout((()=>n(...r)),(0,d.m)(t)?t():t),this.timers.set(e,o)):n(...r)};return(0,h.P)(t)&&t.promisify?(...e)=>{const t=this.promise((e=>{r.push(e)}));return a(...e),t}:a}throttle(e,t,i=!1){let o,s,r,n=null;return(...i)=>{o=!0,r=i,t?n||(s=()=>{o?(e(...r),o=!1,n=this.setTimeout(s,(0,d.m)(t)?t():t),this.timers.set(s,n)):n=null},s()):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){const t=this.requestIdleCallbackNative(e);return this.requestsIdle.add(t),t}requestIdlePromise(){return this.promise((e=>{const t=this.requestIdleCallback((()=>e(t)))}))}cancelIdleCallback(e){return this.requestsIdle.delete(e),this.cancelIdleCallbackNative(e)}clear(){this.requestsIdle.forEach((e=>{this.cancelIdleCallback(e)})),this.timers.forEach((e=>{(0,c.g)(this.timers.get(e))})),this.timers.clear(),this.promisesRejections.forEach((e=>{e()})),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}}var f=i(8);class v{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}}n.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 b{constructor(e,t){this.jodit=e,this.resolved=!1,this.activated=!1,this.options=(0,f.ConfigProto)(t||{},n.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,f.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):(0,f.isString)(e)||this.j.ow.FormData&&e instanceof this.j.ow.FormData?e:(0,f.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 r;const n=()=>{s((0,f.error)("Connection error"))},a=()=>{this.resolved=!0,o(new v(i,e.status,e.statusText,e.responseType?e.response:e.responseText))};e.onload=a,e.onabort=n,e.onerror=n,e.ontimeout=n,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,f.error)(e.statusText||"Connection error")))},e.withCredentials=null!==(r=t.withCredentials)&&void 0!==r&&r;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(0,f.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,f.isPlainObject)(t)){const i=e.indexOf("?");if(-1!==i){const o=(0,f.parseQuery)(e);e=e.substr(0,i)+"?"+(0,f.buildQuery)({...o,...t})}else e+="?"+(0,f.buildQuery)(this.o.data)}const o={url:e,method:i,data:t};return b.log.splice(100),b.log.push(o),o}destruct(){this.activated&&!this.resolved&&(this.abort(),this.resolved=!0)}}b.log=[];var y=i(12),w=i(49),C=i(44),k=i(18);class S extends w.G{className(){return"ContextMenu"}show(e,t,i){const o=this,s=this.j.c.div(this.getFullElName("actions"));(0,k.kJ)(i)&&(i.forEach((e=>{if(!e)return;const t=(0,C.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)})),super.setContent(s).open((()=>({left:e,top:t,width:0,height:0})),!0))}}const E=(()=>{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 I{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 x{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 z="Jodit_";class T{constructor(e,t){this.provider=e,this.prefix=z,t&&(this.prefix+=t)}set(e,t){return this.provider.set((0,f.camelCase)(this.prefix+e),t),this}delete(e){return this.provider.delete((0,f.camelCase)(this.prefix+e)),this}get(e){return this.provider.get((0,f.camelCase)(this.prefix+e))}exists(e){return this.provider.exists((0,f.camelCase)(this.prefix+e))}clear(){return this.provider.clear(),this}static makeStorage(e=!1,t){let i;return e&&E()&&(i=new I(z+t)),i||(i=new x),new T(i,t)}}var j=i(13),L=i(17),A=i(42);class M extends y.wA{constructor(e,t=!1){super(),this.isJodit=t,this.isView=!0,this.mods={},this.components=new Set,this.version="3.15.3",this.async=new g,this.buffer=T.makeStorage(),this.storage=T.makeStorage(!0,this.componentName),this.OPTIONS=M.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=T.makeStorage(),this.initOptions(e),this.initOwners(),this.events=new l.vp(this.od),this.create=new J(this.od),this.container=this.c.div(),this.container.classList.add("jodit"),this.progressbar=new P.ko(this)}setMod(...[e,t]){return A.$.setMod.call(this,e,t),this}getMod(e){return A.$.getMod.call(this,e)}getElm(e){return A.F.getElm.call(this,e)}getElms(e){return A.F.getElms.call(this,e)}get basePath(){return this.o.basePath?this.o.basePath:a.BASE_PATH}get defaultTimeout(){return(0,f.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,f.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.15.3"}static getVersion(){return"3.15.3"}initOptions(e){this.options=(0,f.ConfigProto)(e||{},(0,f.ConfigProto)(this.options||{},M.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,f.camelCase)("getInstance_"+e),t);if(i)return i;const o=j.qz[e],s=this.__modulesInstances;if(!(0,f.isFunction)(o))throw(0,f.error)("Need real module name");if(!s.has(e)){const i=o.prototype instanceof y.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(y.n$.beforeDestruct,this),this.components.forEach((e=>{(0,f.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(),D.i.safeRemove(this.container),super.destruct())}}(0,r.gn)([(0,L.hook)(y.n$.beforeDestruct)],M.prototype,"beforeDestruct",null),M.defaultOptions={extraButtons:[],textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0};var D=i(15),P=i(40);let _=class extends P.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,f.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)([L.autobind],_.prototype,"immediateUpdate",null),_=(0,r.gn)([L.component],_);let R=class extends _{constructor(e){super(e),this.checkActiveStatus=(e,t)=>{let i=0,o=0;return Object.keys(e).forEach((s=>{const r=e[s];(0,f.isFunction)(r)?r(this.j,""+(0,f.css)(t,s))&&(i+=1):-1!==r.indexOf(""+(0,f.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?a.MODE_WYSIWYG:e.control.mode;return!(i===a.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,D.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,D.i.up(o,(e=>{if(e&&!D.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;"});D.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")}};R=(0,r.gn)([L.component],R);var N=i(47);let B=class extends C.y3{constructor(e,t,i=null){super(e),this.control=t,this.target=i,this.state={...(0,C.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(y.n$.ready,(()=>{this.initFromControl(),this.initTooltip(),this.update()}))}className(){return"ToolbarButton"}get toolbar(){return this.closest(_)}get button(){return this.container.querySelector(`button.${this.componentName}__button`)}update(){const{control:e,state:t}=this,i=this.closest(_);t.disabled=this.calculateDisabledStatus(i),t.activated=this.calculateActivatedStatus(i),(0,f.isFunction)(e.update)&&e.update(this),super.update()}calculateActivatedStatus(e){return!((0,f.isJoditObject)(this.j)&&!this.j.editorIsActive||(!(0,f.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,f.isFunction)(this.control.isDisabled)||!this.control.isDisabled(this.j,this.control,this))&&(!e||!e.shouldBeDisabled(this)))}onChangeActivated(){(0,f.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,f.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,f.attr)(this.button,"tabindex",this.state.tabIndex)}onChangeTooltip(){(0,f.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,f.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.JO.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):D.i.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){const e=this.state.disabled?"disabled":null;(0,f.attr)(this.trigger,"disabled",e),(0,f.attr)(this.button,"disabled",e),(0,f.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,f.isFunction)(o)&&o(t.name)||t.template)i.icon=(0,C.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.JO.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,f.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,f.isFunction)(s.popup)){const e=this.openPopup();if(e.parentElement=this,!1!==this.j.e.fire((0,f.camelCase)(`before-${s.name}-open-popup`),this.target,s,e)){const r=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,n=s.popup(this.j,r,s,this.closePopup,this);n&&e.setContent((0,f.isString)(n)?this.j.c.fromHTML(n):n).open((()=>(0,f.position)(this.container)))}this.j.e.fire((0,f.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,r=this.openPopup(),n=H(this.j);r.parentElement=this,n.parentElement=r,n.mode="vertical";const a=(t,i)=>{if((0,f.isString)(i)&&o(i))return{name:""+i,...o(i)};if((0,f.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,f.isString)(i)&&(s.text=i),s};n.build((0,f.isArray)(s)?s.map(a):(0,f.keys)(s,!1).map((e=>a(e,s[e]))),this.target),r.setContent(n.container).open((()=>(0,f.position)(this.container))),this.state.activated=!0}onOutsideClick(e){this.openedPopup&&(e&&D.i.isNode(e.target)&&(D.i.isOrContains(this.container,e.target)||this.openedPopup.isOwnClick(e))||this.closePopup())}openPopup(){return this.closePopup(),this.openedPopup=new w.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,r,n,a;const{control:l}=this;if((0,f.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===(r=null===(s=this.j)||void 0===s?void 0:s.e)||void 0===r||r.fire("synchro"),this.parentElement&&this.parentElement.update(),null===(a=null===(n=this.j)||void 0===n?void 0:n.e)||void 0===a||a.fire("closeAllPopups afterExec")),!1!==d)return}return l.list?this.openControlList(l):(0,f.isFunction)(l.popup)?this.onTriggerClick(e):void((l.command||l.name)&&((0,f.call)((0,f.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,L.watch)("state.tooltip")],B.prototype,"onChangeTooltip",null),(0,r.gn)([(0,L.watch)("state.hasTrigger")],B.prototype,"onChangeHasTrigger",null),(0,r.gn)([(0,L.watch)("trigger:click")],B.prototype,"onTriggerClick",null),(0,r.gn)([L.autobind],B.prototype,"onOutsideClick",null),(0,r.gn)([L.autobind],B.prototype,"closePopup",null),B=(0,r.gn)([L.component],B);let q=class extends C.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,f.attr)(this.container,"role","content")}className(){return"ToolbarContent"}update(){const e=this.control.getContent(this.j,this.control,this);((0,f.isString)(e)||e.parentNode!==this.container)&&(D.i.detach(this.container),this.container.appendChild((0,f.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,f.isJoditObject)(e)?new R(e):new _(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,f.isFunction)(t.getContent))return new q(e,t,i);const o=new B(e,t,i);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,o}q=(0,r.gn)([L.component],q);var F=i(48);class W extends M{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,f.isString)(this.o.toolbar)&&!D.i.isHTMLElement(this.o.toolbar)?(this.o.toolbar&&D.i.appendChildFirst(this.container,this.defaultToolbarContainer),this.defaultToolbarContainer):(0,f.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,f.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(y.n$.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.toolbar.destruct(),super.destruct())}}(0,r.gn)([L.autobind],W.prototype,"beforeToolbarBuild",null),n.D.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[]},n.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,f.ConfigProto)(null!=e?e:{},(0,f.ConfigProto)({toolbarButtonSize:"middle"},(0,f.ConfigProto)(n.D.prototype.dialog,M.defaultOptions))),D.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")}">${P.JO.get("resize_handler")}</div>\n\t\t\t\t</div>\n\t\t\t</div>`),(0,f.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,f.assert)(null!=o,"Panel element does not exist");const s=t.getElm("resizer");(0,f.assert)(null!=s,"Resizer element does not exist");const r=t.getElm("header-title");(0,f.assert)(null!=r,"header-title element does not exist");const a=t.getElm("content");(0,f.assert)(null!=a,"Content element does not exist");const l=t.getElm("footer");(0,f.assert)(null!=l,"Footer element does not exist");const c=t.getElm("header-toolbar");(0,f.assert)(null!=c,"header-toolbar element does not exist"),t.dialog=o,t.resizer=s,t.dialogbox_header=r,t.dialogbox_content=a,t.dialogbox_footer=l,t.dialogbox_toolbar=c,(0,f.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 h=j.pw.get("fullsize");(0,f.isFunction)(h)&&h(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,f.asArray)(t).forEach((t=>{if((0,f.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,f.isString)(t)?this.c.fromHTML(t):(0,f.hasContainer)(t)?t.container:t,i.push(o),o.parentNode!==e&&e.appendChild(o)})),(0,f.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,f.css)(this.dialog,"left"),this.startPoint.y=(0,f.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===a.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,f.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,f.css)(this.container,"zIndex"),10)||0}getMaxZIndexDialog(){let e,t,i=0,o=this;return(0,f.$$)(".jodit-dialog",this.destination).forEach((s=>{e=s.component,t=parseInt((0,f.css)(s,"zIndex"),10),e.isOpened&&!isNaN(t)&&t>i&&(o=e,i=t)})),o}setMaxZIndex(){let e=20000004,t=0;(0,f.$$)(".jodit-dialog",this.destination).forEach((i=>{t=parseInt((0,f.css)(i,"zIndex"),10),e=Math.max(isNaN(t)?0:t,e)})),this.container.style.zIndex=""+(e+1)}maximization(e){return(0,f.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(j.TB.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;(0,f.isBoolean)(e)&&(i=e),(0,f.isBoolean)(t)&&(o=t),this.destroyAfterClose=!0===i;const s=(0,f.isBoolean)(e)?void 0:e,r=(0,f.isBoolean)(t)?void 0:t;return void 0!==r&&this.setHeader(r),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),D.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,f.splitArray)(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}destruct(){this.isInDestruct||(this.setStatus(y.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)([L.autobind],V.prototype,"onMouseUp",null),(0,r.gn)([L.autobind],V.prototype,"onHeaderMouseDown",null),(0,r.gn)([L.autobind],V.prototype,"onMouseMove",null),(0,r.gn)([L.autobind],V.prototype,"onEsc",null),(0,r.gn)([L.autobind],V.prototype,"onResizerMouseDown",null),(0,r.gn)([L.autobind],V.prototype,"close",null),(0,r.gn)([(0,L.hook)("ready")],V.prototype,"buildToolbar",null),V=(0,r.gn)([L.component],V);const U=(e,t,i,o="jodit-dialog_alert")=>{(0,f.isFunction)(t)&&(i=t,t=void 0);const s=new V,r=s.c.div(o),n=(0,P.zx)(s,"ok","Ok");return(0,f.asArray)(e).forEach((e=>{r.appendChild(D.i.isNode(e)?e:s.c.fromHTML(e))})),n.onAction((()=>{i&&(0,f.isFunction)(i)&&!1===i(s)||s.close()})),s.setFooter([n]),s.open(r,t||"&nbsp;",!0,!0),n.focus(),s},$=(e,t,i,o,s)=>{const r=new V,n=(0,P.zx)(r,"cancel","Cancel"),a=(0,P.zx)(r,"ok","Ok"),l=r.c.element("form",{class:"jodit-dialog_prompt"}),c=r.c.element("input",{autofocus:!0,class:"jodit-input"}),d=r.c.element("label");(0,f.isFunction)(t)&&(i=t,t=void 0),o&&(0,f.attr)(c,"placeholder",o),d.appendChild(r.c.text(e)),l.appendChild(d),l.appendChild(c),n.onAction(r.close);const h=()=>{i&&(0,f.isFunction)(i)&&!1===i(c.value)||r.close()};return a.onAction(h),r.e.on(l,"submit",(()=>(h(),!1))),r.setFooter([a,n]),r.open(l,t||"&nbsp;",!0,!0),c.focus(),void 0!==s&&s.length&&(c.value=s,c.select()),r},Y=(e,t,i)=>{const o=new V,s=o.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),r=o.c.element("label");(0,f.isFunction)(t)&&(i=t,t=void 0),r.appendChild(o.c.fromHTML(e)),s.appendChild(r);const n=e=>()=>{i&&!1===i(e)||o.close()},a=(0,P.zx)(o,"cancel","Cancel"),l=(0,P.zx)(o,"ok","Yes");return a.onAction(n(!1)),l.onAction(n(!0)),o.e.on(s,"submit",(()=>(n(!0)(),!1))),o.setFooter([l,a]),o.open(s,t||"&nbsp;",!0,!0),l.focus(),o};var K=i(14);class G extends y.Hr{constructor(e){super(e),this.requires=[],this.buttons=[],this.hasStyle=!1,e.e.on("afterPluginSystemInit",(()=>{var t;(0,f.isJoditObject)(e)&&(null===(t=this.buttons)||void 0===t||t.forEach((t=>{e.registerButton(t)})))})).on("afterInit",(()=>{this.setStatus(y.n$.ready),this.afterInit(e)})).on("beforeDestruct",this.destruct)}className(){return""}init(e){}destruct(){var e,t,i;if(!this.isInDestruct){this.setStatus(y.n$.beforeDestruct);const{j:o}=this;(0,f.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)([L.autobind],G.prototype,"destruct",null);class J{constructor(e,t){this.document=e,this.createAttributes=t}get doc(){return(0,f.isFunction)(this.document)?this.document():this.document}element(e,t,i){const o=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(o),t&&((0,f.isPlainObject)(t)?(0,f.attr)(o,t):i=t),i&&(0,f.asArray)(i).forEach((e=>o.appendChild((0,f.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(a.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(D.i.safeRemove(o),t){const e=(0,f.refs)(o);Object.keys(t).forEach((i=>{const o=e[i];o&&!1===t[i]&&D.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,f.isFunction)(i)?i(e):(0,f.isPlainObject)(i)&&(0,f.attr)(e,i)}}}}n.D.prototype.filebrowser={namespace:"",extraButtons:[],filter(e,t){return t=t.toLowerCase(),(0,f.isString)(e)?-1!==e.toLowerCase().indexOf(t):(0,f.isString)(e.name)?-1!==e.name.toLowerCase().indexOf(t):!(0,f.isString)(e.file)||-1!==e.file.toLowerCase().indexOf(t)},sortBy:"changed-desc",sort(e,t,i){const[o,s]=i.toLowerCase().split("-"),r="asc"===s,n=(e,t)=>t>e?r?-1:1:e>t?r?1:-1:0;if((0,f.isString)(e))return n(e.toLowerCase(),t.toLowerCase());if(void 0===e[o]||"name"===o)return(0,f.isString)(e.name)?n(e.name.toLowerCase(),t.name.toLowerCase()):(0,f.isString)(e.file)?n(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 r?i-o:o-i}case"size":{const i=(0,f.humanSizeToBytes)(e.size),o=(0,f.humanSizeToBytes)(t.size);return r?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,f.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"),r=o.showFileName,n=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${r||n||a?`<div class="${s}-info">${r?`<span class="${s}-info-filename">${l}</span>`:""}${n?`<span class="${s}-info-filesize">${e.size}</span>`:""}${a?`<span class="${s}-info-filechanged">${a}</span>`:""}</div>`:""}\n\t\t\t</a>`},ajax:{...n.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"}}},n.D.prototype.controls.filebrowser={upload:{icon:"plus",isInput:!0,isDisabled:e=>!e.dataProvider.canI("FileUpload"),getContent(e){const t=new P.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,f.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,r=o||s;return t&&r?r:(0,f.normalizeUrl)(i.baseurl,i.path,r||"")+"?_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,f.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,f.ConfigProto)(void 0!==this.options[e]?this.options[e]:{},(0,f.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));i.prepareData&&(i.data=i.prepareData.call(this,i.data));const o=new b(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,f.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,f.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,f.set)("options.getLocalFileByUrl.data.url",e,this),this.get("getLocalFileByUrl").then((e=>{if(this.isSuccess(e))return e.data;throw(0,f.error)(this.getMessage(e))}))}createFolder(e,t,i){const{create:o}=this.o;if(!o)throw(0,f.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,f.error)(this.getMessage(e))}))}move(e,t,i,o){const s=o?"fileMove":"folderMove",r=this.options[s];if(!r)throw(0,f.error)("Set Move api options");return r.data.from=e,r.data.path=t,r.data.source=i,this.get(s).then((e=>{if(this.isSuccess(e))return!0;throw(0,f.error)(this.getMessage(e))}))}remove(e,t,i,o){const s=this.o[e];if(!s)throw(0,f.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 r=this.o[e];if(!r)throw(0,f.error)(`Set "${e}" api options`);return r.data.path=t,r.data.name=i,r.data.newname=o,r.data.source=s,this.get(e).then((e=>(r.process&&(e=r.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,r){this.o[e]||(this.o[e]={data:{}});const n=this.o[e];return void 0===n.data&&(n.data={action:e}),n.data.newname=s||o,r&&(n.data.box=r),n.data.path=t,n.data.name=o,n.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)([L.autobind],Q);var ee=Q,te=i(35);const ie=new WeakMap,oe=e=>{let t=ie.get(e);return t||(t={},ie.set(e,t)),t};var se=i(4);async function re(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),D.i.detach(e.tree.container);const t=re(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,se.v)(e)})(e)})).finally((()=>e.tree.setMod("loading",!1)));return Promise.all([i,t]).catch(se.v)}return e.tree.setMod("active",!1),t.catch(se.v)}function ae(){const e=oe(this),{state:t,files:i,create:o,options:s}=this,r=t=>{const i=t.uniqueHashKey;if(e[i])return e[i].elm;const r=o.fromHTML(s.getThumbTemplate.call(this,t,t.source,""+t.sourceName));return r.dataset.key=i,e[i]={item:t,elm:r},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((()=>{D.i.detach(i.container),t.elements.length?t.elements.forEach((e=>{this.files.container.appendChild(r(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((()=>{D.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 r=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)),n=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(r,"click",n("openFolder")),this.tree.container.appendChild(r),".."!==i&&"."!==i){if(s.renameFolder&&this.dataProvider.canI("FolderRename")){const e=(0,P.zx)(this,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});e.onAction(n("renameFolder")),r.appendChild(e.container)}if(s.deleteFolder&&this.dataProvider.canI("FolderRemove")){const e=(0,P.zx)(this,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});e.onAction(n("removeFolder")),r.appendChild(e.container)}}})),s.createNewFolder&&this.dataProvider.canI("FolderCreate")){const i=(0,P.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 le="jodit-image-editor",ce=P.JO.get.bind(P.JO),de=(e,t="jodti-image-editor_active")=>e?t:"";var he;n.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 ue="resize",pe="crop";let me=he=class extends y.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=ue,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:r,naturalHeight:n}=this;t>r&&i>n?(o=r,s=n):this.ratio>t/i?(o=t,s=n*(t/r)):(o=r*(i/n),s=i),(0,f.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=he.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:he.calcValueByPercent(t,this.o.cropDefaultHeight),(0,f.css)(this.cropHandler,{backgroundImage:"url("+(0,f.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,f.css)(this.cropHandler,"left")/e,this.cropBox.y=(0,f.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,f.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,f.toArray)(this.editor.querySelectorAll(".jodit-image-editor__slider-title")),"click",this.onTitleModeClick).on([t,i],"input",this.onChangeSizeInput);const{keepAspectRatioResize:o,keepAspectRatioCrop:s}=(0,f.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,f.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,f.css)(e.cropHandler,"left"),i=(0,f.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,f.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===ue?e.resizeBox:e.cropBox};switch(o){case e.buttons.saveas:$(e.j.i18n("Enter new name"),e.j.i18n("Save in new file"),(t=>{if(!(0,f.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===ue?((0,f.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:n.D.defaultOptions.imageeditor;const t=this.options;this.resizeUseRatio=t.resizeUseRatio,this.cropUseRatio=t.cropUseRatio,this.buttons={reset:(0,C.zx)(this.j,"update","Reset"),save:(0,C.zx)(this.j,"save","Save"),saveas:(0,C.zx)(this.j,"save","Save as ...")},this.activeTab=t.resize?ue:pe,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 ${de(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="${le} 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="${le}__area ${le}__area_resize ${le}_active">\n\t\t\t\t\t\t\t<div data-ref="resizeBox" class="${le}__box"></div>\n\t\t\t\t\t\t\t<div class="${le}__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="${le}__area ${le}__area_crop ${de(!t.resize)}">\n\t\t\t\t\t\t\t<div data-ref="cropBox" class="${le}__box">\n\t\t\t\t\t\t\t\t<div class="${le}__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="${le}__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="${le}__slider ${le}_active">\n\t\t\t\t\t\t\t<div class="${le}__slider-title">\n\t\t\t\t\t\t\t\t${ce("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="${le}__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="${le}__slider ${de(!t.resize)}'">\n\t\t\t\t\t\t\t<div class="${le}__slider-title">\n\t\t\t\t\t\t\t\t${ce("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="${le}__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,f.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,f.$$)(".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,f.attr)(o,"-area")||ue;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===pe&&t.showCrop()}onChangeSizeInput(e){const t=this,i=e.target,{widthInput:o,heightInput:s}=(0,f.refs)(this.editor),r="widthInput"===(0,f.attr)(i,"data-ref"),n=parseInt(i.value,10),a=r?t.o.min_height:t.o.min_width;let l;n>(r?t.o.min_width:t.o.min_height)&&((0,f.css)(t.image,r?"width":"height",n),t.resizeUseRatio&&(l=Math.round(r?n/t.ratio:n*t.ratio),l>a&&((0,f.css)(t.image,r?"height":"width",l),r?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===pe?(t.top_x=(0,f.css)(t.cropHandler,"left"),t.top_y=(0,f.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,f.refs)(this.editor);t.diff_x=e.clientX-t.start_x,t.diff_y=e.clientY-t.start_y,t.activeTab===ue&&t.resizeUseRatio||t.activeTab===pe&&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===ue?(t.new_w>t.o.resizeMinWidth&&((0,f.css)(t.image,"width",t.new_w+"px"),i.value=""+t.new_w),t.new_h>t.o.resizeMinHeight&&((0,f.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,f.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,f.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,f.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,f.$$)("img,.jodit-icon_loader",this.resize_box).forEach(D.i.safeRemove),(0,f.$$)("img,.jodit-icon_loader",this.crop_box).forEach(D.i.safeRemove),(0,f.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:r}=(0,f.refs)(this.editor),n=()=>{this.isDestructed||(this.image.removeEventListener("load",n),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,s.value=""+this.naturalWidth,r.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),D.i.safeRemove.apply(null,(0,f.$$)(".jodit-icon_loader",this.editor)),this.activeTab===pe&&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",n),this.image.complete&&n()}))}destruct(){this.isDestructed||(this.dialog&&!this.dialog.isInDestruct&&this.dialog.destruct(),D.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 ge(e,t,i,o,s,r){return this.getInstance("ImageEditor",this.o).open(e,((e,n,a,l)=>(0,f.call)("resize"===n.action?this.dataProvider.resize:this.dataProvider.crop,i,o,t,e,n.box).then((e=>{e&&(a(),s&&s())})).catch((e=>{l(e),r&&r(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)}me.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)([L.autobind],me.prototype,"onTitleModeClick",null),(0,r.gn)([(0,L.debounce)(),L.autobind],me.prototype,"onChangeSizeInput",null),(0,r.gn)([L.autobind],me.prototype,"onResizeHandleMouseDown",null),(0,r.gn)([L.autobind],me.prototype,"onGlobalMouseUp",null),(0,r.gn)([(0,L.throttle)(10)],me.prototype,"onGlobalMouseMove",null),(0,r.gn)([L.autobind],me.prototype,"hide",null),(0,r.gn)([L.autobind],me.prototype,"open",null),me=he=(0,r.gn)([L.component],me);const ve="jodit-filebrowser-preview",be=(e="next",t="right")=>`<div class="${ve}__navigation ${ve}__navigation_arrow_${e}">`+P.JO.get("angle-"+t)+"</a>";var ye=e=>{if(!e.o.contextMenu)return()=>{};const t=new S(e);return i=>{const o=we(i.target,e.container);if(!o)return;let s=o;const r=e.options,n=e=>(0,f.attr)(s,e)||"";return e.async.setTimeout((()=>{const a=Ce(o,oe(e));a&&(e.state.activeElements=[a],t.show(i.clientX,i.clientY,[!("1"===n("data-is-file")||!r.editImage||!e.dataProvider.canI("ImageResize")&&!e.dataProvider.canI("ImageCrop"))&&{icon:"pencil",title:"Edit",exec:()=>ge.call(e,n("href"),n("data-name"),n("data-path"),n("data-source"))},!!e.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",async exec(){e.e.fire("fileRename.filebrowser",n("data-name"),n("data-path"),n("data-source"))}},!!e.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",async exec(){try{await fe(e,n("data-name"),n("data-source"))}catch(t){return e.status(t)}return e.state.activeElements=[],ne(e).catch(e.status)}},!!r.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(ve,'<div class="jodit-icon_loader"></div>'),o=e.c.div(ve+"__box"),a=e.c.fromHTML(be()),l=e.c.fromHTML(be("prev","left")),c=n=>{const c=e.c.element("img");c.setAttribute("src",n);const d=()=>{var n;e.isInDestruct||(e.e.off(c,"load"),D.i.detach(i),r.showPreviewNavigation&&(D.i.prevWithClass(s,e.files.getFullElName("item"))&&i.appendChild(l),D.i.nextWithClass(s,e.files.getFullElName("item"))&&i.appendChild(a)),i.appendChild(o),o.appendChild(c),t.setPosition(),null===(n=null==e?void 0:e.events)||void 0===n||n.fire("previewOpenedAndLoaded"))};e.e.on(c,"load",d),c.complete&&d()};e.e.on([a,l],"click",(function(){if(s=this===a?D.i.nextWithClass(s,e.files.getFullElName("item")):D.i.prevWithClass(s,e.files.getFullElName("item")),!s)throw(0,f.error)("Need element");D.i.detach(i),D.i.detach(o),i.innerHTML='<div class="jodit-icon_loader"></div>',c(n("href"))})),e.e.on("beforeDestruct",(()=>{t.destruct()})),t.container.classList.add(ve+"__dialog"),t.setContent(i),t.setPosition(),t.open(),c(n("href")),e.events.on("beforeDestruct",(()=>{t.destruct()})).fire("previewOpened")}},{icon:"upload",title:"Download",exec(){const t=n("href");t&&e.ow.open(t)}}]))}),e.defaultTimeout),e.e.on("beforeClose",(()=>t.close())).on("beforeDestruct",(()=>t.destruct())),i.stopPropagation(),i.preventDefault(),!1}};const we=(e,t,i="a")=>D.i.closest(e,(e=>D.i.isTag(e,i)),t),Ce=(e,t)=>{const{key:i}=e.dataset,{item:o}=t[i||""];return o};function ke(){let e=!1;const t=oe(this),i=this;i.e.on(i.tree.container,"dragstart",(t=>{const o=we(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,f.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,f.attr)(e,"-name"),!i.o.moveFile))return!1;const s=we(t.target,i.container);if(!s)return;i.dataProvider.move(o,(0,f.attr)(s,"-path")||"",(0,f.attr)(s,"-source")||"",e.classList.contains(this.files.getFullElName("item"))).then((()=>ne(this))).catch(i.status),e=!1}})).on(i.files.container,"contextmenu",ye(i)).on(i.files.container,"click",(e=>{(0,f.ctrlKey)(e)||(this.state.activeElements=[])})).on(i.files.container,"click",(e=>{const o=we(e.target,i.container);if(!o)return;const s=Ce(o,t);return s?(i.state.activeElements=(0,f.ctrlKey)(e)?[...i.state.activeElements,s]:[s],e.stopPropagation(),!1):void 0})).on(i.files.container,"dragstart",(t=>{if(i.o.moveFile){const o=we(t.target,i.container);if(!o)return;e=o}})).on(i.container,"drop",(e=>e.preventDefault()))}function Se(){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,re(i).catch(i.status))})).on("filter.filebrowser",(t=>{t!==e.filterWord&&(e.filterWord=t,re(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,f.normalizePath)(e.path,e.name),i.state.currentPath=t,i.state.currentSource="."===e.name?Z:e.source})).on("removeFolder.filebrowser",(e=>{Y(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=>{$(i.i18n("Enter new name"),i.i18n("Rename"),(o=>{if(!(0,k.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=>{$(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&&Y(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;ge.call(i,e.fileURL,e.file||"",e.path,e.sourceName)}})).on("fileRename.filebrowser",((e,o,s)=>{1===i.state.activeElements.length&&$(i.i18n("Enter new name"),i.i18n("Rename"),(r=>{if(!(0,k.r1)(r))return i.status(i.i18n("Enter new name")),!1;t.fileRename(o,e,r,s).then((e=>{i.state.activeElements=[],i.status(e,!0),re(i).catch(i.status)})).catch(i.status)}),i.i18n("type name"),e).bindDestruct(this)})).on("update.filebrowser",(()=>{ne(this).then(this.status)}))}class Ee extends P.qe{className(){return"FilebrowserFiles"}}class Ie extends P.qe{className(){return"FilebrowserTree"}}class xe 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 Ie(this),this.files=new Ee(this),this.state=(0,l.LO)({currentPath:"",currentSource:Z,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,f.ConfigProto)(e||{},n.D.defaultOptions.filebrowser),i.storage=T.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),Se.call(i),ke.call(i),ae.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,f.ConfigProto)(this.options[e],this.o.ajax))}));const{storeView:o,storeSortBy:s,storeLastOpenedFolder:r}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},a=o&&this.storage.get("view");i.state.view=a&&null==this.o.view?"list"===a?"list":"tiles":"list"===i.o.view?"list":"tiles",i.files.setMod("view",i.state.view);const c=s&&i.storage.get("sortBy");if(c){const e=c.split("-");i.state.sortBy=["changed","name","size"].includes(e[0])?c:"changed-desc"}else i.state.sortBy=i.o.sortBy||"changed-desc";if(r){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(y.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,f.isFunction)(e)&&e(o),this.close()}return!1}}get isOpened(){return this.dialog.isOpened&&"none"!==this.browser.style.display}status(e,t){if((0,f.isString)(e)||(e=e.message),!(0,f.isString)(e)||!(0,f.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),D.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,f.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();a.EMULATE_DBLCLICK_TIMEOUT>t-s&&this.onSelect(e)(),s=t})).off("select.filebrowser").on("select.filebrowser",this.onSelect(e));const r=this.c.div();this.toolbar.build(null!==(o=this.o.buttons)&&void 0!==o?o:[]).appendTo(r),this.dialog.open(this.browser,r),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,f.ConfigProto)(o||{},n.D.defaultOptions.uploader),r=()=>re(this);i.uploader=i.getInstance("Uploader",s),i.uploader.setPath(i.state.currentPath).setSource(i.state.currentSource).bind(i.browser,r,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,r,i.errorHandler)}))}proxyDialogEvents(e){["afterClose","beforeOpen"].forEach((t=>{e.dialog.events.on(e.dialog,t,(()=>{this.e.fire(t)}))}))}destruct(){this.isInDestruct||(this.dialog.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct(),super.destruct())}}function ze(e){return D.i.isElement(e)&&e.classList.contains(Ee.prototype.getFullElName("item"))}(0,r.gn)([L.autobind],xe.prototype,"status",null),(0,r.gn)([L.autobind],xe.prototype,"open",null);class Te extends y.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||D.i.isText(t[i])&&""===t[i].textContent||D.i.isText(s)&&D.i.isText(t[i])||(o+=1),t[i]===e)return o;s=t[i]}return 0}static strokeOffset(e,t){for(;D.i.isText(e);)D.i.isText(e=e.previousSibling)&&null!=e.textContent&&(t+=e.textContent.length);return t}calcHierarchyLadder(e){const t=[];if(!e||!e.parentNode||!D.i.isOrContains(this.j.editor,e))return[];for(;e&&e!==this.j.editor;)e&&t.push(Te.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 r=Te.strokeOffset(i.startContainer,i.startOffset),n=Te.strokeOffset(i.endContainer,i.endOffset);o.length||i.startContainer===this.j.editor||(r=0),s.length||i.endContainer===this.j.editor||(n=0),e.range={startContainer:o,startOffset:r,endContainer:s,endOffset:n}}return e}restore(e){this.isBlocked=!0;const t=this.storeScrollState();this.j.getNativeEditorValue()!==e.html&&this.j.setEditorValue(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 je{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 Le{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)}}n.D.prototype.history={maxHistoryLength:1/0,timeout:100},n.D.prototype.observer=n.D.prototype.history;class Ae extends y.Hr{constructor(e,t=new je(e.o.history.maxHistoryLength),i=new Te(e)){super(e),this.updateTick=0,this.stack=t,this.snapshot=i,e.e.on("afterAddPlace.history",(()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),e.events.on("internalChange",(()=>{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(!Te.equal(t,this.startValue)){const i=new Le(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,L.debounce)()],Ae.prototype,"onChange",null);var Me=i(16);let De=class extends y.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 A.$.setMod.call(this,e,t),this}getMod(e){return A.$.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=A.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(y.n$.beforeDestruct),D.i.safeRemove(this.container),super.destruct())}};De=(0,r.gn)([L.component],De);const Pe=new WeakMap;class _e extends y.Hr{constructor(){super(...arguments),this.selected=new Set}className(){return"Table"}recalculateStyles(){const e=(0,j.ZO)(this.j,_e,"style",!0),t=[];this.selected.forEach((e=>{const i=(0,f.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=D.i.closest(e,"table",this.j.editor);if(t){const i=_e.selectedByTable.get(t)||new Set;i.add(e),_e.selectedByTable.set(t,i)}}removeSelection(e){this.selected.delete(e),this.recalculateStyles();const t=D.i.closest(e,"table",this.j.editor);if(t){const i=_e.selectedByTable.get(t);i&&(i.delete(e),i.size||_e.selectedByTable.delete(t))}}getAllSelectedCells(){return(0,f.toArray)(this.selected)}static getSelectedCellsByTable(e){const t=_e.selectedByTable.get(e);return t?(0,f.toArray)(t):[]}destruct(){return this.selected.clear(),super.destruct()}static getRowsCount(e){return e.rows.length}static getColumnsCount(e){return _e.formalMatrix(e).reduce(((e,t)=>Math.max(e,t.length)),0)}static formalMatrix(e,t){const i=[[]],o=(0,f.toArray)(e.rows),s=(e,o)=>{void 0===i[o]&&(i[o]=[]);const s=e.colSpan,r=e.rowSpan;let n,a,l=0;for(;i[o][l];)l+=1;for(a=0;r>a;a+=1)for(n=0;s>n;n+=1){if(void 0===i[o+a]&&(i[o+a]=[]),t&&!1===t(e,o+a,l+n,s,r))return!1;i[o+a][l+n]=e}};for(let e=0;o.length>e;e+=1){const t=(0,f.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,r=1,n=1;return _e.formalMatrix(e,((e,a,l,c,d)=>{if(t===e)return o=a,s=l,r=c||1,n=d||1,i&&(s+=(c||1)-1,o+=(d||1)-1),!1})),[o,s,r,n]}static appendRow(e,t,i,o){var s;let r;if(t)r=t.cloneNode(!0),(0,f.$$)("td,th",t).forEach((e=>{const t=(0,f.attr)(e,"rowspan");if(t&&parseInt(t,10)>1){const i=parseInt(t,10)-1;(0,f.attr)(e,"rowspan",i>1?i:null)}})),(0,f.$$)("td,th",r).forEach((e=>{e.innerHTML=""}));else{const t=_e.getColumnsCount(e);r=o.element("tr");for(let e=0;t>e;e+=1)r.appendChild(o.element("td"))}i&&t&&t.nextSibling?t.parentNode&&t.parentNode.insertBefore(r,t.nextSibling):!i&&t?t.parentNode&&t.parentNode.insertBefore(r,t):((null===(s=e.getElementsByTagName("tbody"))||void 0===s?void 0:s[0])||e).appendChild(r)}static removeRow(e,t){const i=_e.formalMatrix(e);let o;const s=e.rows[t];i[t].forEach(((r,n)=>{if(o=!1,0>t-1||i[t-1][n]!==r)if(i[t+1]&&i[t+1][n]===r){if(r.parentNode===s&&r.parentNode.nextSibling){o=!0;let s=n+1;for(;i[t+1][s]===r;)s+=1;const a=D.i.next(r.parentNode,(e=>D.i.isTag(e,"tr")),e);a&&(i[t+1][s]?a.insertBefore(r,i[t+1][s]):a.appendChild(r))}}else D.i.safeRemove(r);else o=!0;if(o&&(r.parentNode===s||r!==i[t][n-1])){const e=r.rowSpan;(0,f.attr)(r,"rowspan",e-1>1?e-1:null)}})),D.i.safeRemove(s)}static appendColumn(e,t,i,o){const s=_e.formalMatrix(e);let r;for((void 0===t||0>t)&&(t=_e.getColumnsCount(e)-1),r=0;s.length>r;r+=1){const e=o.element("td"),n=s[r][t];let a=!1;i?(s[r]&&n&&t+1>=s[r].length||n!==s[r][t+1])&&(n.nextSibling?D.i.before(n.nextSibling,e):n.parentNode&&n.parentNode.appendChild(e),a=!0):(0>t-1||s[r][t]!==s[r][t-1]&&s[r][t].parentNode)&&(D.i.before(s[r][t],e),a=!0),a||(0,f.attr)(s[r][t],"colspan",parseInt((0,f.attr)(s[r][t],"colspan")||"1",10)+1)}}static removeColumn(e,t){const i=_e.formalMatrix(e);let o;i.forEach(((e,s)=>{const r=e[t];if(o=!1,0>t-1||i[s][t-1]!==r?e.length>t+1&&i[s][t+1]===r?o=!0:D.i.safeRemove(r):o=!0,o&&(0>s-1||r!==i[s-1][t])){const e=r.colSpan;(0,f.attr)(r,"colspan",e-1>1?""+(e-1):null)}}))}static getSelectedBound(e,t){const i=[[1/0,1/0],[0,0]],o=_e.formalMatrix(e);let s,r,n;for(s=0;o.length>s;s+=1)for(r=0;o[s]&&o[s].length>r;r+=1)t.includes(o[s][r])&&(i[0][0]=Math.min(s,i[0][0]),i[0][1]=Math.min(r,i[0][1]),i[1][0]=Math.max(s,i[1][0]),i[1][1]=Math.max(r,i[1][1]));for(s=i[0][0];i[1][0]>=s;s+=1)for(n=1,r=i[0][1];i[1][1]>=r;r+=1){for(;o[s]&&o[s][r-n]&&o[s][r]===o[s][r-n];)i[0][1]=Math.min(r-n,i[0][1]),i[1][1]=Math.max(r-n,i[1][1]),n+=1;for(n=1;o[s]&&o[s][r+n]&&o[s][r]===o[s][r+n];)i[0][1]=Math.min(r+n,i[0][1]),i[1][1]=Math.max(r+n,i[1][1]),n+=1;for(n=1;o[s-n]&&o[s][r]===o[s-n][r];)i[0][0]=Math.min(s-n,i[0][0]),i[1][0]=Math.max(s-n,i[1][0]),n+=1;for(n=1;o[s+n]&&o[s][r]===o[s+n][r];)i[0][0]=Math.min(s+n,i[0][0]),i[1][0]=Math.max(s+n,i[1][0]),n+=1}return i}static normalizeTable(e){let t,i,o,s;const r=[],n=_e.formalMatrix(e);for(i=0;n[0].length>i;i+=1){for(o=1e6,s=!1,t=0;n.length>t;t+=1)if(void 0!==n[t][i]){if(2>n[t][i].colSpan){s=!0;break}o=Math.min(o,n[t][i].colSpan)}if(!s)for(t=0;n.length>t;t+=1)void 0!==n[t][i]&&_e.mark(n[t][i],"colspan",n[t][i].colSpan-o+1,r)}for(t=0;n.length>t;t+=1){for(o=1e6,s=!1,i=0;n[t].length>i;i+=1)if(void 0!==n[t][i]){if(2>n[t][i].rowSpan){s=!0;break}o=Math.min(o,n[t][i].rowSpan)}if(!s)for(i=0;n[t].length>i;i+=1)void 0!==n[t][i]&&_e.mark(n[t][i],"rowspan",n[t][i].rowSpan-o+1,r)}for(t=0;n.length>t;t+=1)for(i=0;n[t].length>i;i+=1)void 0!==n[t][i]&&(n[t][i].hasAttribute("rowspan")&&1===n[t][i].rowSpan&&(0,f.attr)(n[t][i],"rowspan",null),n[t][i].hasAttribute("colspan")&&1===n[t][i].colSpan&&(0,f.attr)(n[t][i],"colspan",null),n[t][i].hasAttribute("class")&&!(0,f.attr)(n[t][i],"class")&&(0,f.attr)(n[t][i],"class",null));_e.unmark(r)}static mergeSelected(e,t){const i=[],o=_e.getSelectedBound(e,_e.getSelectedCellsByTable(e));let s,r=0,n=null,l=0,c=0,d=0;const h=new Set,u=[];o&&(o[0][0]-o[1][0]||o[0][1]-o[1][1])&&(_e.formalMatrix(e,((e,a,p,m,g)=>{if(!(o[0][0]>a||a>o[1][0]||o[0][1]>p||p>o[1][1])){if(s=e,h.has(s))return;h.add(s),a===o[0][0]&&s.style.width&&(r+=s.offsetWidth),""!==(0,f.trim)(e.innerHTML.replace(/<br(\/)?>/g,""))&&i.push(e.innerHTML),m>1&&(c+=m-1),g>1&&(d+=g-1),n?(_e.mark(s,"remove",1,u),Re(t).removeSelection(s)):(n=e,l=p)}})),c=o[1][1]-o[0][1]+1,d=o[1][0]-o[0][0]+1,n&&(c>1&&_e.mark(n,"colspan",c,u),d>1&&_e.mark(n,"rowspan",d,u),r&&(_e.mark(n,"width",(r/e.offsetWidth*100).toFixed(a.ACCURACY)+"%",u),l&&_e.setColumnWidthByDelta(e,l,0,!0,u)),n.innerHTML=i.join("<br/>"),Re(t).addSelection(n),h.delete(n),_e.unmark(u),_e.normalizeTable(e),(0,f.toArray)(e.rows).forEach(((e,t)=>{e.cells.length||D.i.safeRemove(e)}))))}static splitHorizontal(e,t){let i,o,s,r,n;const a=[];_e.getSelectedCellsByTable(e).forEach((l=>{o=t.createInside.element("td"),o.appendChild(t.createInside.element("br")),s=t.createInside.element("tr"),i=_e.formalCoordinate(e,l),2>l.rowSpan?(_e.formalMatrix(e,((e,t,o)=>{i[0]===t&&i[1]!==o&&e!==l&&_e.mark(e,"rowspan",e.rowSpan+1,a)})),D.i.after(D.i.closest(l,"tr",e),s),s.appendChild(o)):(_e.mark(l,"rowspan",l.rowSpan-1,a),_e.formalMatrix(e,((t,o,s)=>{o>i[0]&&i[0]+l.rowSpan>o&&i[1]>s&&t.parentNode.rowIndex===o&&(n=t),o>i[0]&&t===l&&(r=e.rows[o])})),n?D.i.after(n,o):r.insertBefore(o,r.firstChild)),l.colSpan>1&&_e.mark(o,"colspan",l.colSpan,a),_e.unmark(a),Re(t).removeSelection(l)})),this.normalizeTable(e)}static splitVertical(e,t){let i,o,s;const r=[];_e.getSelectedCellsByTable(e).forEach((n=>{i=_e.formalCoordinate(e,n),2>n.colSpan?_e.formalMatrix(e,((e,t,o)=>{i[1]===o&&i[0]!==t&&e!==n&&_e.mark(e,"colspan",e.colSpan+1,r)})):_e.mark(n,"colspan",n.colSpan-1,r),o=t.createInside.element("td"),o.appendChild(t.createInside.element("br")),n.rowSpan>1&&_e.mark(o,"rowspan",n.rowSpan,r);const l=n.offsetWidth;D.i.after(n,o),s=l/e.offsetWidth/2,_e.mark(n,"width",(100*s).toFixed(a.ACCURACY)+"%",r),_e.mark(o,"width",(100*s).toFixed(a.ACCURACY)+"%",r),_e.unmark(r),Re(t).removeSelection(n)})),_e.normalizeTable(e)}static setColumnWidthByDelta(e,t,i,o,s){const r=_e.formalMatrix(e);let n=0;for(let o=0;r.length>o;o+=1){const l=r[o][t];if(1>=l.colSpan||1>=r.length){_e.mark(l,"width",((l.offsetWidth+i)/e.offsetWidth*100).toFixed(a.ACCURACY)+"%",s),n=o;break}}for(let e=n+1;r.length>e;e+=1)_e.mark(r[e][t],"width",null,s);o||_e.unmark(s)}static mark(e,t,i,o){var s;o.push(e);const r=null!==(s=Pe.get(e))&&void 0!==s?s:{};r[t]=void 0===i?1:i,Pe.set(e,r)}static unmark(e){e.forEach((e=>{const t=Pe.get(e);t&&(Object.keys(t).forEach((i=>{const o=t[i];switch(i){case"remove":D.i.safeRemove(e);break;case"rowspan":(0,f.attr)(e,"rowspan",(0,f.isNumber)(o)&&o>1?o:null);break;case"colspan":(0,f.attr)(e,"colspan",(0,f.isNumber)(o)&&o>1?o:null);break;case"width":null==o?(e.style.removeProperty("width"),(0,f.attr)(e,"style")||(0,f.attr)(e,"style",null)):e.style.width=""+o}delete t[i]})),Pe.delete(e))}))}}_e.selectedByTable=new WeakMap,(0,r.gn)([(0,L.debounce)()],_e.prototype,"recalculateStyles",null);const Re=e=>e.getInstance("Table",e.o),Ne=new WeakMap;function Be(e,t){const i=((e,t)=>{if((0,f.isFunction)(e.o.buildData))return e.o.buildData.call(e,t);const i=e.j.ow.FormData;if(void 0!==i){if(t instanceof i)return t;if((0,f.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 b(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,f.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=Ne.get(e);return o||(o=new Set,Ne.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,f.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,f.error)("Need files"));const{o:r}=e;let n=(0,f.toArray)(t);if(!n.length)return Promise.reject((0,f.error)("Need files"));const a=[];if(r.insertImageAsBase64URI){let t,o;for(o=0;n.length>o;o+=1)if(t=n[o],t&&t.type){const s=t.type.match(/\/([a-z0-9]+)/i),l=s[1]?s[1].toLowerCase():"";if(r.imagesExtensions.includes(l)){const s=new FileReader;a.push(e.j.async.promise(((o,n)=>{s.onerror=n,s.onloadend=()=>{const t={baseurl:"",files:[s.result],isImages:[!0]};((0,f.isFunction)(i)?i:r.defaultHandlerSuccess).call(e,t),o(t)},s.readAsDataURL(t)}))),n[o]=null}}}if(n=n.filter((e=>e)),n.length){const t=new FormData;let l;t.append(r.pathVariableName,e.path),t.append("source",e.source);for(let e=0;n.length>e;e+=1)if(l=n[e],l){const i=l.type.match(/\/([a-z0-9]+)/i),o=i&&i[1]?i[1].toLowerCase():"";let s=n[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(r.filesVariableName(e),n[e],s)}s&&s(t),r.data&&(0,f.isPlainObject)(r.data)&&Object.keys(r.data).forEach((e=>{t.append(e,r.data[e])})),r.prepareData.call(e,t),a.push(Be(e,t).then((t=>r.isSuccess.call(e,t)?(((0,f.isFunction)(i)?i:r.defaultHandlerSuccess).call(e,r.process.call(e,t)),t):(((0,f.isFunction)(o)?o:r.defaultHandlerError).call(e,(0,f.error)(r.getMessage.call(e,t))),t))).then((()=>{e.j.events&&e.j.e.fire("filesWereUploaded")})))}return Promise.all(a)}function He(e){return!!(e&&e.files&&e.files.length>0)}function Oe(e){return!!(e&&e.items&&e.items.length>0)}n.D.prototype.enableDragAndDropFileToEditor=!0,n.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,f.isArray)(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,f.isJoditObject)(t)&&e.files&&e.files.length&&e.files.forEach(((i,o)=>{const[s,r]=e.isImages&&e.isImages[o]?["img","src"]:["a","href"],n=t.createInside.element(s);n.setAttribute(r,e.baseurl+i),"a"===s&&(n.textContent=e.baseurl+i),"img"===s?t.s.insertImage(n,null,t.o.imageDefaultWidth):t.s.insertNode(n)}))},defaultHandlerError(e){this.j.e.fire("errorMessage",e.message)},contentType(e){return(void 0===this.j.ow.FormData||"string"==typeof e)&&"application/x-www-form-urlencoded; charset=UTF-8"}};class Fe extends y.Hr{constructor(e,t){super(e),this.path="",this.source="default",this.options=(0,f.ConfigProto)(t||{},(0,f.ConfigProto)(n.D.defaultOptions.uploader,(0,f.isJoditObject)(e)?e.o.uploader:{}))}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,r=e=>{let r,n,l;const c=e.clipboardData,d=e=>{n&&(e.append("extension",l),e.append("mimetype",n.type))};if(!a.IS_IE&&He(c))return qe(s,c.files,t,i).finally(o),!1;if(Oe(c)){const{items:a}=c;for(r=0;a.length>r;r+=1)if("file"===a[r].kind&&"image/png"===a[r].type){if(n=a[r].getAsFile(),n){const e=n.type.match(/\/([a-z0-9]+)/i);l=e[1]?e[1].toLowerCase():"",qe(s,[n],t,i,d).finally(o)}e.preventDefault();break}}};s.j&&s.j.editor!==e?s.j.e.on(e,"paste",r):s.j.e.on("beforePaste",r),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=>{(He(t.dataTransfer)||Oe(t.dataTransfer))&&(e.classList.add("jodit_drag_hover"),t.preventDefault())})).on(e,"dragend dragleave",(t=>{e.classList.remove("jodit_drag_hover"),He(t.dataTransfer)&&t.preventDefault()})).on(e,"drop",(r=>{e.classList.remove("jodit_drag_hover"),He(r.dataTransfer)&&(r.preventDefault(),r.stopImmediatePropagation(),qe(s,r.dataTransfer.files,t,i).finally(o))}));const r=e.querySelector("input[type=file]");r&&s.j.e.on(r,"change",(()=>{qe(s,r.files,t,i).then((()=>{r.value="",/safari/i.test(navigator.userAgent)||(r.type="",r.type="file")})).finally(o)}))}uploadRemoteImage(e,t,i){const o=this,{o:s}=o,r=(0,f.isFunction)(i)?i:s.defaultHandlerError;Be(o,{action:"fileUploadRemote",url:e}).then((e=>{s.isSuccess.call(o,e)?((0,f.isFunction)(t)?t:s.defaultHandlerSuccess).call(o,s.process.call(o,e)):r.call(o,(0,f.error)(s.getMessage.call(o,e)))})).catch((e=>r.call(o,e)))}destruct(){this.setStatus(y.n$.beforeDestruct);const e=Ne.get(this);e&&(e.forEach((e=>{try{e.destruct()}catch(e){}})),e.clear()),super.destruct()}}const We="data-jodit-default-style-display",Ve="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=a.MODE_WYSIWYG,this.__callChangeCount=0,this.isSilentChange=!1,this.elementToPlace=new Map;try{const t=(0,f.resolveElement)(e,this.o.shadowRoot||this.od);if(Jodit.isJoditAssigned(t))return t.component}catch(e){throw this.destruct(),e}this.setStatus(y.n$.beforeInit),this.id=(0,f.attr)((0,f.resolveElement)(e,this.o.shadowRoot||this.od),"id")||""+(new Date).getTime(),j.as[this.id]=this,this.storage=T.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 Me.Ph(this);const i=this.beforeInitHook();(0,f.callPromise)(i,(()=>{this.e.fire("beforeInit",this);const i=j.pw.init(this);(0,f.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);j.as[this.id]=this,(0,f.callPromise)(i,(()=>{this.e&&this.e.fire("afterInit",this),this.afterInitHook(),this.setStatus(y.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,f.isNumber)(this.o.defaultTimeout)?this.o.defaultTimeout:n.D.defaultOptions.defaultTimeout}static atom(e){return(0,f.markAsAtomic)(e)}static make(e,t){return new Jodit(e,t)}static isJoditAssigned(e){return e&&(0,f.isJoditObject)(e.component)&&!e.component.isInDestruct}static get defaultOptions(){return n.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,f.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,f.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()}getEditorValue(e=!0,t){let i;if(i=this.e.fire("beforeGetValueFromEditor",t),void 0!==i)return i;i=this.getNativeEditorValue().replace(a.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,f.isString)(t)&&(e=t),!this.editor)return void(void 0!==e&&this.setElementValue(e));if(!(0,f.isString)(e)&&!(0,f.isVoid)(e))throw(0,f.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&&a.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}}}getElementValue(){return void 0!==this.element.value?this.element.value:this.element.innerHTML}setElementValue(e){if(!(0,f.isString)(e)&&void 0!==e)throw(0,f.error)("value must be string");void 0!==e?this.element!==this.container&&(void 0!==this.element.value?this.element.value=e:this.element.innerHTML=e):e=this.getElementValue(),e!==this.getEditorValue()&&this.setEditorValue(e)}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,f.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,f.asArray)(e).map(f.normalizeKeyAliases).map((e=>e+".hotkey")).join(" ");this.e.off(o).on(o,((e,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 r;r=(0,f.isFunction)(o)?o:o.exec;const n=r.call(this,e,t,i);void 0!==n&&(s=n)})),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()===a.MODE_WYSIWYG}getRealMode(){if(this.getMode()!==a.MODE_SPLIT)return this.getMode();const e=this.od.activeElement;return e&&(e===this.iframe||D.i.isOrContains(this.editor,e)||D.i.isOrContains(this.toolbar.container,e))?a.MODE_WYSIWYG:a.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=[a.MODE_SOURCE,a.MODE_WYSIWYG,a.MODE_SPLIT].includes(i.mode)?i.mode:a.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();[a.MODE_SOURCE,a.MODE_WYSIWYG,this.o.useSplitMode?a.MODE_SPLIT:9].includes(e+1)?e+=1:e=a.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,f.ConfigProto)(e||{},n.D.defaultOptions)}initOwners(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}addPlace(e,t){const i=(0,f.resolveElement)(e,this.o.shadowRoot||this.od);this.attachEvents(t),i.attributes&&(0,f.toArray)(i.attributes).forEach((e=>{const i=e.name;let o=e.value;void 0===n.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,f.kebabCase)(e);o.style.setProperty("--jd-"+t,s[e])})),o.setAttribute("contenteditable","false");let r=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(i.nodeName)&&(o=i,i.setAttribute(Ve,""+i.className),r=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 a=this.c.div("jodit-workplace",{contenteditable:!1});o.appendChild(a),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});a.appendChild(l);const c={editor:l,element:i,container:o,workplace:a,statusbar:new De(this,o),options:this.isReady?(0,f.ConfigProto)(t||{},n.D.defaultOptions):this.options,history:new Ae(this),editorWindow:this.ow};this.elementToPlace.set(l,c),this.setCurrentPlace(c),this.places.push(c),this.setNativeEditorValue(this.getElementValue());const d=this.initEditor(r),h=this.options;return(0,f.callPromise)(d,(()=>{h.enableDragAndDropFileToEditor&&h.uploader&&(h.uploader.url||h.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(a.MODE_WYSIWYG),this.currentPlace=e,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",e))}initEditor(e){const t=this.createEditor();return(0,f.callPromise)(t,(()=>{if(this.isInDestruct)return;this.element!==this.container?this.setElementValue():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,f.callPromise)(t,(()=>{if(!this.isInDestruct){if((!1===t||(0,f.isPromise)(t))&&D.i.safeRemove(e),this.o.editorCssClass&&this.editor.classList.add(this.o.editorCssClass),this.o.style&&(0,f.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.editor.setAttribute("spellcheck",this.o.spellcheck?"true":"false"),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.setEditorValue()})).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.setEditorValue()}}))}destruct(){if(this.isInDestruct)return;if(this.setStatus(y.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:r,editor:n,history:a})=>{if(s!==t)if(s.hasAttribute(We)){const e=(0,f.attr)(s,We);e&&(s.style.display=e,s.removeAttribute(We))}else s.style.display="";else s.hasAttribute(Ve)&&(s.className=(0,f.attr)(s,Ve)||"",s.removeAttribute(Ve));s.hasAttribute("style")&&!(0,f.attr)(s,"style")&&s.removeAttribute("style"),o.destruct(),this.e.off(t),this.e.off(s),this.e.off(n),D.i.safeRemove(i),D.i.safeRemove(n),t!==s&&D.i.safeRemove(t),Object.defineProperty(s,"component",{enumerable:!1,configurable:!0,value:null}),D.i.safeRemove(r),t===s&&(s.innerHTML=e),a.destruct()})),this.places.length=0,this.currentPlace={},delete j.as[this.id],super.destruct()}}Jodit.fatMode=!1,Jodit.plugins=j.pw,Jodit.modules=j.qz,Jodit.ns=j.qz,Jodit.decorators={},Jodit.instances=j.as,Jodit.lang=j.KQ,Jodit.core={Plugin:G},(0,r.gn)([L.cache],Jodit.prototype,"uploader",null),(0,r.gn)([L.cache],Jodit.prototype,"filebrowser",null),(0,r.gn)([L.autobind],Jodit.prototype,"prepareWYSIWYGEditor",null);const Ue=i(52);let $e={en:Ue};{const e=i(53),t=i(54),o=i(55),s=i(56),r=i(57),n=i(58),a=i(59),l=i(60),c=i(61),d=i(62),h=i(63),u=i(64),p=i(65),m=i(66),g=i(67),f=i(68),v=i(69),b=i(70);$e={ar:e,cs_cz:t,de:o,en:Ue,es:s,fr:r,he:n,hu:a,id:l,it:c,ja:d,ko:h,nl:u,pl:p,pt_br:m,ru:g,tr:f,zh_cn:v,zh_tw:b}}const Ye=e=>e.default||e,Ke={};(0,k.kJ)(Ye(Ue))&&Ye(Ue).forEach(((e,t)=>{Ke[t]=e})),Object.keys($e).forEach((e=>{const t=Ye($e[e]);(0,k.kJ)(t)&&($e[e]={},t.forEach(((t,i)=>{$e[e][Ke[i]]=t})))}));var Ge=$e;n.D.prototype.addNewLine=!0,n.D.prototype.addNewLineOnDBLClick=!0,n.D.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],n.D.prototype.addNewLineDeltaShow=20;const Je="addnewline";class Xe 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>${P.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,D.i.safeRemove(this.line))},this.hide=()=>{this.isShown&&!this.lineInFocus&&(this.timeout=this.j.async.setTimeout(this.hideForce,{timeout:500,label:"add-new-line-hide"}))},this.canGetFocus=e=>null!=e&&D.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.parentNode.insertBefore(i,this.current):t.editor.appendChild(i),t.s.setCursorIn(i),(0,f.scrollIntoViewIfNeeded)(i,t.editor,t.ed),t.e.fire("synchro"),this.hideForce(),e.preventDefault()},this.onDblClickEditor=e=>{const t=this.j;if(!t.o.readonly&&t.o.addNewLineOnDBLClick&&e.target===t.editor&&t.s.isCollapsed()){const i=(0,f.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.setEditorValue(),this.hideForce(),e.preventDefault()}},this.onMouseMove=e=>{const t=this.j;let i=t.ed.elementFromPoint(e.clientX,e.clientY);if(!D.i.isHTMLElement(i)||D.i.isOrContains(this.line,i))return;if(!D.i.isOrContains(t.editor,i))return;if(this.isMatchedTag(i)||(i=D.i.closest(i,this.isMatchedTag,t.editor)),!i)return void this.hide();if(this.isMatchedTag(i)){const e=D.i.up(i,D.i.isBlock,t.editor);e&&e!==t.editor&&(i=e)}const o=(0,f.position)(i,this.j);let s=!1,{clientY:r}=e;if(this.j.iframe){const{top:e}=(0,f.position)(this.j.iframe,this.j,!0);r+=e}const n=this.j.o.addNewLineDeltaShow;Math.abs(r-o.top)>n||(s=o.top,this.preview=!0),Math.abs(r-(o.top+o.height))>n||(s=o.top+o.height,this.preview=!1),!1===s||(0,f.call)(this.preview?D.i.prev:D.i.next,i,this.canGetFocus,t.editor)?(this.current=!1,this.hide()):(this.line.style.top=s+"px",this.current=i,this.show())}}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")}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,"."+Je).off(e.container,"."+Je).on([e.ow,e.ew,e.editor],"scroll."+Je,this.hideForce).on(e.editor,"dblclick."+Je,this.onDblClickEditor).on(e.editor,"click."+Je,this.hide).on(e.container,"mouseleave."+Je,this.hide).on(e.editor,"mousemove."+Je,e.async.debounce(this.onMouseMove,3*e.defaultTimeout))}beforeDestruct(){this.j.async.clearTimeout(this.timeout),this.j.e.off(this.line).off("changePlace",this.addEventListeners),D.i.safeRemove(this.line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+Je).off(this.j.container,"."+Je)}}function Ze(e){e.registerButton({name:"about",group:"info"})}function Qe(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=D.i.last(e.editor,(e=>D.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&&D.i.isBlock(t.target)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))}))}))}n.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,f.isLicense)(e.o.license)?(0,f.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,f.css)(t.dialog,{minHeight:200,minWidth:420}),t.open(!0).bindDestruct(e)},tooltip:"About Jodit",mode:a.MODE_SOURCE+a.MODE_WYSIWYG},n.D.prototype.autofocus=!1,n.D.prototype.cursorAfterAutofocus="end",n.D.prototype.saveSelectionOnBlur=!0,n.D.prototype.controls.classSpan={command:"applyClassName",icon:i(71),exec:f.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=D.i.closest(i,D.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=D.i.closest(i,D.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 et 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 tt=i(9),it=i(31);function ot(e,t,i){return(0,tt.RE)(t?D.i.prev:D.i.next,e,(e=>!(!e||D.i.isText(e)&&!(0,it.fy)((null==e?void 0:e.nodeValue)||"").length)),i)}function st(e,t){return D.i.findSibling(e,t,(e=>{var t;return!D.i.isEmptyTextNode(e)&&!!(!D.i.isText(e)||(null===(t=e.nodeValue)||void 0===t?void 0:t.length)&&(0,it.fy)(e.nodeValue))}))}function rt(e,t,i,o=!1){const s=e=>t?e.firstChild:e.lastChild;let r=ot(e,!t,i);if(o&&D.i.isElement(r)&&!D.i.isInlineBlock(r))return null;if(r)do{if(!s(r))return r;r=s(r)}while(r);return null}function nt(e,t,i){const o=D.i.findSibling(t,i),s=D.i.findSibling(t,!i);if(!D.i.closest(t,D.i.isElement,e.editor)&&D.i.isTag(o,["ul","ol"])&&D.i.isTag(s,["ul","ol"])&&D.i.isTag(o.lastElementChild,"li")&&D.i.isTag(s.firstElementChild,"li")){const{setCursorBefore:r,setCursorAfter:n}=e.s,a=o.lastElementChild;return(0,f.call)(i?D.i.prepend:D.i.append,s.firstElementChild,t),D.i.moveContent(s,o,!i),D.i.safeRemove(s),(0,f.call)(i?D.i.append:D.i.prepend,a,t),(0,f.call)(i?r:n,t),!0}return!1}function at(e,t,i){let o=!1;const{setCursorBefore:s,setCursorIn:r}=e.s;let n=D.i.closest(t,D.i.isElement,e.editor);if(!n||!D.i.isEmpty(n))return!1;const l=ot(t,i,e.editor);do{if(!n||!D.i.isEmpty(n)||D.i.isCell(n))break;{D.i.after(n,t);const i=D.i.closest(n,(e=>D.i.isElement(e)&&e!==n),e.editor);D.i.safeRemove(n),o=!0,n=i}}while(n);return!(!o||!nt(e,t,i))||(!l||D.i.isText(l)||D.i.isTag(l,a.INSEPARABLE_TAGS)?s(t):r(l,!i),o)}var lt=i(28);function ct(e,t,i,o){if(t&&D.i.isElement(i)){D.i.moveContent(t,i,!o);let s=t;for(;s&&s!==e.editor&&D.i.isEmpty(s);){const e=s.parentElement;D.i.safeRemove(s),s=e}return!0}return!1}const dt=[(e,t,i)=>{const o=D.i.findSibling(t,i);return!(!D.i.isElement(o)||!D.i.isTag(o,a.INSEPARABLE_TAGS)&&!D.i.isEmpty(o)||(D.i.safeRemove(o),e.s.setCursorBefore(t),D.i.isTag(o,"br")&&at(e,t,i),0))},(e,t,i)=>{let o=D.i.findSibling(t,i);return!o&&t.parentElement&&t.parentElement!==e.editor&&(o=D.i.findSibling(t.parentElement,i)),!(!D.i.isElement(o)||D.i.isContentEditable(o,e.editor)||((0,f.call)(i?D.i.before:D.i.after,o,t),D.i.safeRemove(o),(0,lt.F)(e,t,i),(0,f.call)(i?e.s.setCursorBefore:e.s.setCursorAfter,t),0))},function e(t,i,o,s){var r,n,l;const c=o?-1:1,d=D.i.sibling(i,!o);let h,u=D.i.sibling(i,o),p=null,m=!1;for(;u&&(D.i.isText(u)||D.i.isInlineBlock(u));){for(;D.i.isInlineBlock(u);)u=o?null==u?void 0:u.lastChild:null==u?void 0:u.firstChild;if(!u)break;if(null===(r=u.nodeValue)||void 0===r?void 0:r.length){let e=(0,f.toArray)(u.nodeValue);const t=e.length;let i=o?t-1:0;if(e[i]===a.INVISIBLE_SPACE)for(;e[i]===a.INVISIBLE_SPACE;)i+=c;if(h=e[i],e[i+c]===a.INVISIBLE_SPACE){for(i+=c;e[i]===a.INVISIBLE_SPACE;)i+=c;i+=o?1:-1}if(e=o&&0>i?[]:e.slice(o?0:i+1,o?i:t),!d||!D.i.isText(d)||(o?/^ /:/ $/).test(null!==(n=d.nodeValue)&&void 0!==n?n:"")||!(0,f.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]=a.NBSP_SPACE;u.nodeValue=e.join("")}if((null===(l=u.nodeValue)||void 0===l?void 0:l.length)||(p=u),!(0,f.isVoid)(h)&&h!==a.INVISIBLE_SPACE){m=!0,(0,f.call)(o?D.i.after:D.i.before,u,i),("sentence"===s||"word"===s&&" "!==h&&h!==a.NBSP_SPACE)&&e(t,i,o,s);break}let g=D.i.sibling(u,o);!g&&u.parentNode&&u.parentNode!==t.editor&&(g=rt(u,!o,t.editor,!0)),p&&(D.i.safeRemove(p),p=null),u=g}return m&&((e=>{let t=e.parentElement;for(;t&&D.i.isInlineBlock(t);){const i=t.parentElement;D.i.isEmpty(t)&&(D.i.after(t,e),D.i.safeRemove(t)),t=i}})(i),((e,t)=>{t.parentElement!==e.editor&&D.i.isBlock(t.parentElement)&&D.i.each(t.parentElement,D.i.isEmptyTextNode)&&D.i.after(t,e.createInside.element("br"))})(t,i),t.s.setCursorBefore(i)),m},(e,t)=>!!D.i.isCell(t.parentElement),at,(e,t,i)=>{const o=D.i.closest(t,D.i.isElement,e.editor);if(!o)return!1;const s=st(o,i);return!(!s||!D.i.isEmpty(s)||(D.i.safeRemove(s),e.s.setCursorBefore(t),0))},nt,(e,t,i)=>{let o=t,s=o;for(;o&&!st(o,i)&&o.parentElement!==e.editor;)o=o.parentElement,s=o;if(D.i.isElement(s)&&D.i.isContentEditable(s,e.editor)){const o=st(s,i);if(o&&(((e,t,i,o)=>{const s=D.i.isTag(i,["ol","ul"]),r=D.i.isTag(t,["ol","ul"]),n=(e,t)=>t?e.firstElementChild:e.lastElementChild;return r?(i=e.createInside.element(e.o.enterBlock),D.i.before(t,i),ct(e,n(t,o),i,o)):!(!i||!s||r)&&ct(e,t,n(i,!o),o)})(e,s,o,i)||ct(e,s,o,i)))return e.s.setCursorBefore(t),!0}return!1},(e,t,i)=>{var o;const s=D.i.closest(t,D.i.isElement,e.editor),{s:r}=e;if(D.i.isTag(s,"li")&&(null===(o=null==s?void 0:s.parentElement)||void 0===o?void 0:o[i?"firstElementChild":"lastElementChild"])===s&&r.cursorInTheEdge(i,s)){const o=s.parentElement,n=e.createInside.element(e.o.enterBlock);return(0,tt.RE)(i?D.i.before:D.i.after,o,n),D.i.moveContent(s,n),D.i.safeRemove(s),D.i.isEmpty(o)&&D.i.safeRemove(o),(0,tt.RE)(i?r.setCursorBefore:r.setCursorAfter,t),!0}return!1}];n.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 ht 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&&D.i.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!((0,f.trim)(e.editor.textContent||"")||e.editor.querySelector("img")||t&&D.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,r=i.createInside.text(a.INVISIBLE_SPACE);try{if(s.insertNode(r),!D.i.isOrContains(i.editor,r))return;if((0,lt.F)(i,r,e),dt.some((o=>(0,f.isFunction)(o)&&o(i,r,e,t))))return!1}catch(e){throw e}finally{this.safeRemoveEmptyNode(r)}return!1}safeRemoveEmptyNode(e){var t,i;const{range:o}=this.j.s;o.startContainer===e&&(e.previousSibling?D.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&&(D.i.isText(e.nextSibling)?o.setStart(e.nextSibling,0):o.setStartBefore(e.nextSibling)),o.collapse(!0),this.j.s.selectRange(o)),D.i.safeRemove(e)}}function ut(e){const t=t=>{const i=n.D.defaultOptions.controls[t],o={...i.css},s={};return Object.keys(o).forEach((e=>{s[e]=(0,f.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})}n.D.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},n.D.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},n.D.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},n.D.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},n.D.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},n.D.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"},n.D.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:!1,removeOnError:!0,safeJavaScriptLink:!0},n.D.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"};class pt extends G{constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.visitNode=(e,t,i)=>{let o=!1;if(!e)return o;if(e=this.replaceIfMatched(e),this.isRemovableNode(e,t))return i.push(e),this.visitNode(e.nextSibling,t,i);if(this.j.o.cleanHTML.fillEmptyParagraph&&D.i.isBlock(e)&&D.i.isEmpty(e,/^(img|svg|canvas|input|textarea|form|br)$/)){const t=this.j.createInside.element("br");e.appendChild(t),o=!0}const s=this.allowTagsHash;if(s&&!0!==s[e.nodeName]){const t=e.attributes;if(t&&t.length){const i=[];for(let o=0;t.length>o;o+=1){const r=s[e.nodeName][t[o].name];(!r||!0!==r&&r!==t[o].value)&&i.push(t[o].name)}i.length&&(o=!0),i.forEach((t=>{e.removeAttribute(t)}))}}return o=this.visitNode(e.firstChild,t,i)||o,o=this.visitNode(e.nextSibling,t,i)||o,o},this.allowTagsHash=pt.getHash(this.j.o.cleanHTML.allowTags),this.denyTagsHash=pt.getHash(this.j.o.cleanHTML.denyTags),this.onKeyUpCleanUp=()=>{const e=this.j;if(!this.allowEdit())return;const t=e.s.current();if(t){const i=D.i.up(t,D.i.isBlock,e.editor);i&&D.i.all(i,(i=>{i&&D.i.isText(i)&&null!=i.nodeValue&&(0,a.INVISIBLE_SPACE_REG_EXP)().test(i.nodeValue)&&0!==i.nodeValue.replace((0,a.INVISIBLE_SPACE_REG_EXP)(),"").length&&(i.nodeValue=i.nodeValue.replace((0,a.INVISIBLE_SPACE_REG_EXP)(),""),i===t&&e.s.isCollapsed()&&e.s.setCursorAfter(i))}))}},this.beforeCommand=e=>{if("removeformat"===e.toLowerCase())return this.onRemoveFormat(),!1}}afterInit(e){e.e.off(".cleanHtml").on("change.cleanHtml afterSetMode.cleanHtml afterInit.cleanHtml mousedown.cleanHtml keydown.cleanHtml",this.onChangeCleanHTML).on("keyup.cleanHtml",this.onKeyUpCleanUp).on("beforeCommand.cleanHtml",this.beforeCommand)}replaceIfMatched(e){const t=this.j.o.cleanHTML.replaceOldTags;if(!t||!D.i.isHTMLElement(e))return e;const i=t[e.nodeName.toLowerCase()]||t[e.nodeName];return i?D.i.replace(e,i,this.j.createInside,!0,!1):e}onChangeCleanHTML(){if(!this.allowEdit())return;const e=this.j;this.onSafeHTML(e.editor);const t=e.s.current(),i=e.o.cleanHTML.replaceOldTags;if(i&&t){const o=(0,f.keys)(i,!1);if(e.s.isCollapsed()){const i=D.i.closest(t,o,e.editor);i&&(e.s.save(),this.replaceIfMatched(i),e.s.restore())}}let o=null;e.editor.firstChild&&(o=e.editor.firstChild);const s=[],r=this.visitNode(o,t,s);s.forEach(D.i.safeRemove),(s.length||r)&&e.events&&e.e.fire("synchro")}allowEdit(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}static getHash(e){const t=/([^[]*)\[([^\]]+)]/,i=/[\s]*,[\s]*/,o=/^(.*)[\s]*=[\s]*(.*)$/,s={};return(0,f.isString)(e)?(e.split(i).map((e=>{e=(0,f.trim)(e);const r=t.exec(e),n={},a=e=>{e=(0,f.trim)(e);const t=o.exec(e);t?n[t[1]]=t[2]:n[e]=!0};if(r){const e=r[2].split(i);r[1]&&(e.forEach(a),s[r[1].toUpperCase()]=n)}else s[e.toUpperCase()]=!0})),s):!!e&&(Object.keys(e).forEach((t=>{s[t.toUpperCase()]=e[t]})),s)}onRemoveFormat(){this.j.s.isCollapsed()?this.removeFormatForCollapsedSelection():this.removeFormatForSelection()}removeFormatForCollapsedSelection(e){const{s:t}=this.j;let i=e;i||(i=this.j.createInside.fake(),t.range.insertNode(i),t.range.collapse());const o=D.i.furthest(i,this.isInlineBlock,this.j.editor);if(o)if(t.cursorOnTheLeft(o))D.i.before(o,i);else if(t.cursorOnTheRight(o))D.i.after(o,i);else{const e=t.splitSelection(o);e&&D.i.after(e,i)}e||(t.setCursorBefore(i),D.i.safeRemove(i))}isInlineBlock(e){return D.i.isInlineBlock(e)&&!D.i.isTag(e,a.INSEPARABLE_TAGS)}removeFormatForSelection(){const{s:e}=this.j,{range:t}=e,i=t.cloneRange(),o=t.cloneRange(),s=this.j.createInside.fake(),r=this.j.createInside.fake();i.collapse(!0),o.collapse(!1),i.insertNode(s),o.insertNode(r),t.setStartBefore(s),t.collapse(!0),e.selectRange(t),this.removeFormatForCollapsedSelection(s),t.setEndAfter(r),t.collapse(!1),e.selectRange(t),this.removeFormatForCollapsedSelection(r);const n=[];D.i.between(s,r,(e=>{this.isInlineBlock(e)&&n.push(e),D.i.isElement(e)&&(0,f.attr)(e,"style")&&(0,f.attr)(e,"style",null)})),n.forEach((e=>D.i.unwrap(e)));const a=(t,i)=>{if(!st(t,i)){const o=t.parentNode;if(o&&o!==e.area&&(0,f.attr)(o,"style"))return(0,f.attr)(o,"style",null),a(o,i),!0}};a(s,!0)&&a(r,!1),t.setStartAfter(s),t.setEndBefore(r),e.selectRange(t),D.i.safeRemove(s),D.i.safeRemove(r)}isRemovableNode(e,t){const i=this.allowTagsHash;return!(D.i.isText(e)||!(i&&!i[e.nodeName]||this.denyTagsHash&&this.denyTagsHash[e.nodeName]))||!(!(t&&D.i.isTag(e,"br")&&pt.hasNotEmptyTextSibling(e))||pt.hasNotEmptyTextSibling(e,!0)||D.i.up(e,D.i.isBlock,this.j.editor)===D.i.up(t,D.i.isBlock,this.j.editor))||this.j.o.cleanHTML.removeEmptyElements&&null!=t&&D.i.isElement(e)&&null!=e.nodeName.match(a.IS_INLINE)&&!D.i.isTemporary(e)&&0===(0,f.trim)(e.innerHTML).length&&!D.i.isOrContains(e,t)}static hasNotEmptyTextSibling(e,t=!1){let i=t?e.nextSibling:e.previousSibling;for(;i;){if(D.i.isElement(i)||!D.i.isEmptyTextNode(i))return!0;i=t?i.nextSibling:i.previousSibling}return!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,f.safeHTML)(e,this.j.o.cleanHTML)}beforeDestruct(){this.j.e.off(".cleanHtml")}}(0,r.gn)([(0,L.debounce)((e=>e.jodit.o.cleanHTML.timeout))],pt.prototype,"onChangeCleanHTML",null),(0,r.gn)([L.autobind],pt.prototype,"isInlineBlock",null),(0,r.gn)([(0,L.watch)(":beforeSetNativeEditorValue")],pt.prototype,"onBeforeSetNativeEditorValue",null),(0,r.gn)([(0,L.watch)(":safeHTML")],pt.prototype,"onSafeHTML",null);class mt extends G{constructor(){super(...arguments),this.isSuitableStart=e=>D.i.isText(e)&&(0,k.HD)(e.nodeValue)&&/[^\s]/.test(e.nodeValue)||this.isNotClosed(e)&&!D.i.isTemporary(e),this.isSuitable=e=>D.i.isText(e)||this.isNotClosed(e),this.isNotClosed=e=>D.i.isElement(e)&&!(D.i.isBlock(e)||D.i.isTag(e,["hr","style"]))}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(D.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){D.i.isElement(e)&&D.i.isTag(e,"li")&&!D.i.isTag(e.parentElement,["ul","ol"])&&D.i.wrap(e,"ul",t.createInside)}}(0,r.gn)([L.autobind],mt.prototype,"postProcessSetEditorValue",null),n.D.prototype.controls.cut={command:"cut",isDisabled:e=>e.s.isCollapsed(),tooltip:"Cut selection"},n.D.prototype.controls.copy={command:"copy",isDisabled:e=>e.s.isCollapsed(),tooltip:"Copy selection"},n.D.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"};var gt=i(10);const ft=e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}};function vt(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,k.nj)(o)&&((0,k.HD)(o)||(0,k.hj)(o)||D.i.isNode(o))&&(i=o),(0,k.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 bt(e,t,i,o,s="Clean",r="Insert only Text"){if(!1===e.e.fire("beforeOpenPasteDialog",t,i,o,s,r))return;const n=Y(`<div style="word-break: normal; white-space: normal">${e.i18n(t)}</div>`,e.i18n(i));n.bindDestruct(e),(0,gt.MN)(e,n.container);const l=(0,P.zx)(e,{text:"Keep",name:"keep",variant:"primary",tabIndex:0}),c=(0,P.zx)(e,{text:s,tabIndex:0}),d=(0,P.zx)(e,{text:r,tabIndex:0}),h=(0,P.zx)(e,{text:"Cancel",tabIndex:0});return l.onAction((()=>{n.close(),o(a.INSERT_AS_HTML)})),c.onAction((()=>{n.close(),o(a.INSERT_AS_TEXT)})),d.onAction((()=>{n.close(),o(a.INSERT_ONLY_TEXT)})),h.onAction((()=>{n.close()})),n.setFooter([l,c,r?d:"",h]),l.focus(),e.e.fire("afterOpenPasteDialog",n,t,i,o,s,r),n}const yt="clipboard";class wt{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=ft(t)||ft(e.ew)||ft(t.originalEvent);s&&(s.setData(a.TEXT_PLAIN,(0,f.stripTags)(o)),s.setData(a.TEXT_HTML,o)),e.buffer.set(yt,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(yt,""),null===(i=null==e?void 0:e.events)||void 0===i||i.off(".clipboard")}}n.D.prototype.askBeforePasteHTML=!0,n.D.prototype.processPasteHTML=!0,n.D.prototype.memorizeChoiceWhenPasteFragment=!1,n.D.prototype.nl2brInPlainText=!0,n.D.prototype.defaultActionOnPaste=a.INSERT_AS_HTML,n.D.prototype.draggableTags=["img","jodit-media","jodit"];const Ct="pasteStorage";n.D.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(e,t,{control:i}){if(i.name===Ct)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(a.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(yt)||"",s=0===o.length);const r=e.value;s?(e.ed.execCommand("paste"),s=r===e.value,!s&&e.e.fire("afterPaste")):o.length?(vt(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:{[Ct]:"Paste Storage"},isChildDisabled(e){return 2>e.e.fire("pasteStorageList")}};class kt extends G{constructor(){super(...arguments),this.pasteStack=new f.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=ft(e),i=[null==t?void 0:t.getData(a.TEXT_HTML),null==t?void 0:t.getData(a.TEXT_PLAIN)];for(const t of i)if((0,f.isHTML)(t)&&(this.j.e.fire("processHTML",e,t)||this.processHTML(e,t)))return!1}defaultPasteProcess(e){const t=ft(e);let i=(null==t?void 0:t.getData(a.TEXT_HTML))||(null==t?void 0:t.getData(a.TEXT_PLAIN));if(t&&i&&""!==(0,f.trim)(i)){const o=this.j.e.fire("processPaste",e,i,(e=>{const t=e.types;let i="";if((0,k.kJ)(t)||"[object DOMStringList]"==={}.toString.call(t))for(let e=0;t.length>e;e+=1)i+=t[e]+";";else i=(t||a.TEXT_PLAIN)+";";return i})(t));void 0!==o&&(i=o),((0,f.isString)(i)||D.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 bt(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",(i=>{this.insertByType(e,t,i)}),"Insert as Text"),!0}return!1}insertByType(e,t,i){if(this.pasteStack.push({html:t,action:i}),(0,f.isString)(t))switch(this.j.buffer.set(yt,t),i){case a.INSERT_CLEAR_HTML:t=(0,f.cleanFromWord)(t);break;case a.INSERT_ONLY_TEXT:t=(0,f.stripTags)(t);break;case a.INSERT_AS_TEXT:t=(0,f.htmlspecialchars)(t)}vt(e,this.j,t)}onProcessPasteReplaceNl2Br(e,t,i){if(i===a.TEXT_PLAIN+";"&&!(0,f.isHTML)(t))return(0,f.nl2br)(t)}beforeDestruct(e){e.e.off("paste.paste",this.onPaste)}}(0,r.gn)([L.autobind],kt.prototype,"onPaste",null),(0,r.gn)([L.autobind],kt.prototype,"onProcessPasteReplaceNl2Br",null),n.D.prototype.askBeforePasteFromWord=!0,n.D.prototype.processPasteFromWord=!0,n.D.prototype.defaultActionOnPasteFromWord=null;class St extends G{afterInit(e){}beforeDestruct(e){}processWordHTML(e,t){const{j:i}=this,{processPasteFromWord:o,askBeforePasteFromWord:s,defaultActionOnPasteFromWord:r,defaultActionOnPaste:n}=i.o;return!(!o||!(0,f.isHtmlFromWord)(t)||(s?bt(i,"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",(i=>{this.insertFromWordByType(e,t,i)})):this.insertFromWordByType(e,t,r||n),0))}insertFromWordByType(e,t,i){var o;switch(i){case a.INSERT_AS_HTML:if(t=(0,f.applyStyles)(t),this.j.o.beautifyHTML){const e=null===(o=this.j.events)||void 0===o?void 0:o.fire("beautifyHTML",t);(0,f.isString)(e)&&(t=e)}break;case a.INSERT_AS_TEXT:t=(0,f.cleanFromWord)(t);break;case a.INSERT_ONLY_TEXT:t=(0,f.stripTags)((0,f.cleanFromWord)(t))}vt(e,this.j,t)}}(0,r.gn)([(0,L.watch)(":processHTML")],St.prototype,"processWordHTML",null);class Et 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.setEditorValue(),this.j.e.fire("afterPaste")},this.onKeyDown=e=>{let t=this.currentIndex;-1!==[a.KEY_UP,a.KEY_DOWN,a.KEY_ENTER].indexOf(e.key)&&(e.key===a.KEY_UP&&(0===t?t=this.list.length-1:t-=1),e.key===a.KEY_DOWN&&(t===this.list.length-1?t=0:t+=1),e.key!==a.KEY_ENTER?(t!==this.currentIndex&&this.selectIndex(t),e.stopImmediatePropagation(),e.preventDefault()):this.paste())},this.selectIndex=e=>{this.listBox&&(0,f.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,a.SPACE_REG_EXP)(),""),this.j.e.on(i,"keydown",this.onKeyDown),(0,f.attr)(i,"href","#"),(0,f.attr)(i,"data-index",""+t),(0,f.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,P.zx)(this.j,"paste","Paste","primary");e.onAction(this.paste);const t=(0,P.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 D.i.isTag(t,"a")&&t.hasAttribute("data-index")&&this.selectIndex(parseInt((0,f.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"),D.i.safeRemove(this.previewBox),D.i.safeRemove(this.listBox),D.i.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}}const It="copyformat",xt=["fontWeight","fontStyle","fontSize","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine","fontFamily"],zt=(e,t,i,o)=>{let s=(0,f.css)(i,t);return s===o[t]&&(s=i.parentNode&&i!==e.editor&&i.parentNode!==e.editor?zt(e,t,i.parentNode,o):void 0),s};function Tt(e){e.registerButton({name:"copyformat",group:"clipboard"})}n.D.prototype.controls.copyformat={exec(e,t,{button:i}){if(t){if(e.buffer.exists(It))e.buffer.delete(It),e.e.off(e.editor,"mouseup.copyformat");else{const i={},o=D.i.up(t,(e=>e&&!D.i.isText(e)),e.editor)||e.editor,s=e.createInside.span();e.editor.appendChild(s),xt.forEach((e=>{i[e]=(0,f.css)(s,e)})),s!==e.editor&&D.i.safeRemove(s);const r=((e,t,i)=>{const o={};return t&&xt.forEach((s=>{o[s]=zt(e,s,t,i),s.match(/border(Style|Color)/)&&!o.borderWidth&&(o[s]=void 0)})),o})(e,o,i),n=()=>{e.buffer.delete(It);const t=e.s.current();t&&(D.i.isTag(t,"img")?(0,f.css)(t,r):e.s.applyStyle(r)),e.e.off(e.editor,"mouseup.copyformat")};e.e.on(e.editor,"mouseup.copyformat",n),e.buffer.set(It,!0)}i.update()}},isActive:e=>e.buffer.exists(It),tooltip:"Paint format"};var jt,Lt=i(72);function At(e){e.registerButton({name:"brush",group:"color"});const t=(t,i,o)=>{const s=(0,f.normalizeColor)(o);switch(t){case"background":e.s.applyStyle({backgroundColor:s||""});break;case"forecolor":e.s.applyStyle({color:s||""})}return e.setEditorValue(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)}n.D.prototype.controls.brush={update(e){const t=(0,f.dataBind)(e,"color"),i=e.j,o=(t,o)=>{o&&o!==""+(0,f.css)(i.editor,t)&&(e.state.icon.fill=o)};if(t){const i=(0,f.dataBind)(e,"color");return void o("color"===i?i:"background-color",t)}const s=i.s.current();if(s&&!e.state.disabled){const e=D.i.closest(s,D.i.isElement,i.editor)||i.editor;o("color",""+(0,f.css)(e,"color")),o("background-color",""+(0,f.css)(e,"background-color"))}e.state.icon.fill="",e.state.activated=!1},popup(e,t,i,o,s){let r="",n="",a=[],l=null;return t&&t!==e.editor&&D.i.isNode(t)&&(D.i.isElement(t)&&e.s.isCollapsed()&&!D.i.isTag(t,["br","hr"])&&(l=t),D.i.up(t,(e=>{if(D.i.isHTMLElement(e)){const t=(0,f.css)(e,"color",!0),i=(0,f.css)(e,"background-color",!0);if(t)return r=""+t,!0;if(i)return n=""+i,!0}}),e.editor)),a=[{name:"Background",content:(0,Lt.YW)(e,(t=>{l?l.style.backgroundColor=t:e.execCommand("background",!1,t),(0,f.dataBind)(s,"color",t),(0,f.dataBind)(s,"color-mode","background"),o()}),n)},{name:"Text",content:(0,Lt.YW)(e,(t=>{l?l.style.color=t:e.execCommand("forecolor",!1,t),(0,f.dataBind)(s,"color",t),(0,f.dataBind)(s,"color-mode","color"),o()}),r)}],"background"!==e.o.colorPickerDefaultTab&&(a=a.reverse()),(0,Lt.IL)(e,a,l)},exec(e,t,{button:i}){const o=(0,f.dataBind)(i,"color-mode"),s=(0,f.dataBind)(i,"color");if(!o)return!1;if(t&&t!==e.editor&&D.i.isNode(t)&&D.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"};class Mt 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=ft(e);return t?t.getData(a.TEXT_HTML)||t.getData(a.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=D.i.isOrContains(this.j.editor,t,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,f.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,ze(t)&&(t=t.querySelector("img")),D.i.isTag(t,"img")&&(this.draggable=t.cloneNode(!0),(0,f.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&&(D.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,f.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];o=this.j.createInside.element(e),o.setAttribute(t,(0,f.attr)(this.draggable,"data-src")||(0,f.attr)(this.draggable,"src")||""),"a"===e&&(o.textContent=(0,f.attr)(o,t)||"")}else o=(0,f.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")),D.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)}}(0,r.gn)([L.autobind],Mt.prototype,"onDragStart",null),(0,r.gn)([(0,L.throttle)((e=>e.j.defaultTimeout/10))],Mt.prototype,"onDrag",null),(0,r.gn)([L.autobind],Mt.prototype,"onDragEnd",null),(0,r.gn)([L.autobind],Mt.prototype,"onDrop",null),(e=>{e[e.IDLE=0]="IDLE",e[e.WAIT_DRAGGING=1]="WAIT_DRAGGING",e[e.DRAGGING=2]="DRAGGING"})(jt||(jt={}));class Dt extends G{constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=jt.IDLE}afterInit(){this.dragList=this.j.o.draggableTags?(0,f.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>jt.IDLE)return;const t=e.target;if(!this.dragList.length||!t)return;const i=e=>e&&this.dragList.includes(e.nodeName.toLowerCase());let o=D.i.furthest(t,i,this.j.editor)||(i(t)?t:null);o&&(D.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,f.ctrlKey)(e),this.draggable=o.cloneNode(!0),(0,f.dataBind)(this.draggable,"target",o),this.state=jt.WAIT_DRAGGING,this.addDragListeners())}onDrag(e){var t,i;if(!this.draggable||this.state===jt.IDLE)return;const o=e.clientY;if(this.state!==jt.WAIT_DRAGGING||Math.sqrt(Math.pow(e.clientX-this.startX,2)+Math.pow(o-this.startY,2))>=this.diffStep){if(this.state===jt.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=jt.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){const o=(0,f.dataBind)(this.draggable,"target");(0,f.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,j.ZO)(this.j,Dt).appendChild(this.draggable)}(0,f.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=jt.IDLE,this.draggable&&(D.i.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||jt.DRAGGING>this.state)return void this.onDragEnd();let e=(0,f.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));const{parentElement:t}=e;this.j.s.insertNode(e,!0,!1),t&&D.i.isEmpty(t)&&!D.i.isTag(t,["td","th"])&&D.i.safeRemove(t),D.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)([L.autobind],Dt.prototype,"onDragStart",null),(0,r.gn)([(0,L.throttle)((e=>e.j.defaultTimeout/10))],Dt.prototype,"onDrag",null),(0,r.gn)([L.autobind],Dt.prototype,"onDragEnd",null),(0,r.gn)([L.autobind],Dt.prototype,"onDrop",null);const Pt=(e,t,i,o)=>{var s;const r=e.createInside.element(i),n=e.createInside.element("br");r.appendChild(n),o&&o.cssText&&r.setAttribute("style",o.cssText),e.s.insertNode(r,!1,!1),e.s.setCursorBefore(n);const a=e.s.createRange();return a.setStartBefore("br"!==i.toLowerCase()?n:r),a.collapse(!0),e.s.selectRange(a),D.i.safeRemove(t),(0,f.scrollIntoViewIfNeeded)(r,e.editor,e.ed),null===(s=e.events)||void 0===s||s.fire("synchro"),r};class _t extends G{constructor(){super(...arguments),this.brMode=!1,this.defaultTag=a.PARAGRAPH}afterInit(e){this.defaultTag=e.o.enter.toLowerCase(),this.brMode=this.defaultTag===a.BR.toLowerCase(),e.o.enterBlock||(e.o.enterBlock=this.brMode?a.PARAGRAPH:this.defaultTag),e.e.off(".enter").on("keydown.enter",(t=>{if(t.key===a.KEY_ENTER){const i=e.e.fire("beforeEnter",t);return void 0!==i?i:(e.s.isCollapsed()||e.execCommand("Delete"),e.s.focus(),this.onEnter(t),!1)}}))}onEnter(e){const t=this.j,i=t.selection,o=this.defaultTag;let s=i.current(!1);s&&s!==t.editor||(s=t.createInside.text(a.INVISIBLE_SPACE),i.insertNode(s),i.select(s));let r=this.getBlockWrapper(s);const n=D.i.isTag(r,"li");if((!n||e.shiftKey)&&!this.checkBR(s,e.shiftKey))return!1;if(r||this.hasPreviousBlock(s)||(r=this.wrapText(s)),!r||r===s)return Pt(t,null,n?"li":o),!1;if(!this.checkUnsplittableBox(r))return!1;if(n&&D.i.isEmpty(r))return this.enterInsideEmptyLIelement(r),!1;const l=r.tagName.toLowerCase()===this.defaultTag||n,c=i.cursorOnTheRight(r),d=i.cursorOnTheLeft(r);if(!l&&(c||d)){let e=null;return e=c?i.setCursorAfter(r):i.setCursorBefore(r),Pt(t,e,this.defaultTag),void(d&&!c&&i.setCursorIn(r,!0))}i.splitSelection(r)}getBlockWrapper(e,t=a.IS_BLOCK){let i=e;const o=this.j.editor;do{if(!i||i===o)break;if(t.test(i.nodeName))return D.i.isTag(i,"li")?i:this.getBlockWrapper(i.parentNode,/^li$/i)||i;i=i.parentNode}while(i&&i!==o);return null}checkBR(e,t){const i=D.i.closest(e,["pre","blockquote"],this.j.editor);if(this.brMode||t&&!i||!t&&i){const e=this.j.createInside.element("br");return this.j.s.insertNode(e,!0),(0,f.scrollIntoViewIfNeeded)(e,this.j.editor,this.j.ed),!1}return!0}wrapText(e){let t=e;D.i.up(t,(e=>{e&&e.hasChildNodes()&&e!==this.j.editor&&(t=e)}),this.j.editor);const i=D.i.wrapInline(t,this.j.o.enter,this.j);if(D.i.isEmpty(i)){const e=this.j.createInside.element("br");i.appendChild(e),this.j.s.setCursorBefore(e)}return i}hasPreviousBlock(e){return!!D.i.prev(e,(e=>D.i.isBlock(e)||D.i.isImage(e)),this.j.editor)}checkUnsplittableBox(e){const t=this.j,i=t.selection;if(!D.i.canSplitBlock(e)){const e=t.createInside.element("br");return i.insertNode(e,!1),i.setCursorAfter(e),!1}return!0}enterInsideEmptyLIelement(e){let t=null;const i=D.i.closest(e,["ol","ul"],this.j.editor);if(i){if(D.i.prev(e,(e=>D.i.isTag(e,"li")),i))if(D.i.next(e,(e=>D.i.isTag(e,"li")),i)){const o=this.j.s.createRange();o.setStartBefore(i),o.setEndAfter(e);const s=o.extractContents();i.parentNode&&i.parentNode.insertBefore(s,i),t=this.j.s.setCursorBefore(i)}else t=this.j.s.setCursorAfter(i);else t=this.j.s.setCursorBefore(i);D.i.safeRemove(e),Pt(this.j,t,this.defaultTag),(0,f.$$)("li",i).length||D.i.safeRemove(i)}}beforeDestruct(e){e.e.off("keydown.enter")}}class Rt extends G{afterInit(e){}beforeDestruct(e){}onKeyDownArrow(e){var t;if(e.key!==a.KEY_RIGHT||!this.j.selection.isCollapsed())return;const{endContainer:i,endOffset:o}=this.j.selection.range;if(D.i.isText(i)&&(null===(t=i.nodeValue)||void 0===t?void 0:t.length)===o){const{parentNode:e}=i;D.i.isInlineBlock(e)&&!ot(e,!1,this.j.editor)&&D.i.after(e,this.j.createInside.text(a.NBSP_SPACE))}}}(0,r.gn)([(0,L.watch)(":keydown")],Rt.prototype,"onKeyDownArrow",null),n.D.prototype.showMessageErrors=!0,n.D.prototype.showMessageErrorTime=3e3,n.D.prototype.showMessageErrorOffsetPx=3;const Nt="error-box-for-messages";function Bt(e){if(e.o.showMessageErrors){const t=e.getFullElName(Nt,"active",!0),i=e.c.div(e.getFullElName(Nt)),o=()=>{let t=5;(0,f.toArray)(i.childNodes).forEach((i=>{(0,f.css)(i,"bottom",t+"px"),t+=i.offsetHeight+e.o.showMessageErrorOffsetPx}))};e.e.on("beforeDestruct",(()=>{D.i.safeRemove(i)})).on("errorMessage",((s,r,n)=>{e.workplace.appendChild(i);const a=e.c.div(t,s);a.classList.add(e.getFullElName(Nt,"type",r)),i.appendChild(a),o(),e.async.setTimeout((()=>{a.classList.remove(t),e.async.setTimeout((()=>{D.i.safeRemove(a),o()}),300)}),n||e.o.showMessageErrorTime)}))}}function qt(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,f.normalizeSize)(o)});break;case"fontname":e.s.applyStyle({fontFamily:o})}return e.e.fire("synchro"),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)}function Ht(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",((t,i,o)=>(e.s.applyStyle(void 0,{element:o}),e.setEditorValue(),!1)))}function Ot(e){e.registerButton({name:"fullsize"});let t=!1,i=0,o=0,s=!1;const r=()=>{const{container:r,events:n}=e;n&&(t?(i=(0,f.css)(r,"height",!0),o=(0,f.css)(r,"width",!0),(0,f.css)(r,{height:e.ow.innerHeight,width:e.ow.innerWidth}),s=!0):s&&(0,f.css)(r,{height:i||"auto",width:o||"auto"}))},n=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,f.isJoditObject)(e)&&e.toolbarContainer.appendChild(e.toolbar.container),(0,f.css)(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;r()}s.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",r),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",n).on("beforeDestruct",(()=>{t&&n(!1)})).on("beforeDestruct",(()=>{e.events&&e.e.off(e.ow,"resize",r)}))}n.D.prototype.defaultFontSizePoints="px",n.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,f.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(),r=(null===(i=t.data)||void 0===i?void 0:i.cssRule)||"font-size",n=(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=D.i.closest(s,D.i.isElement,e.editor)||e.editor,o=(0,f.css)(i,r);return!(!o||!t.args||n(""+t.args[0])!==n(""+o))}return!1}},n.D.prototype.controls.font={...n.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"},n.D.prototype.controls.paragraph={command:"formatBlock",update(e){const t=e.j,i=e.control,o=t.s.current();if(o&&t.o.textIcons){const s=(D.i.closest(o,D.i.isBlock,t.editor)||t.editor).nodeName.toLowerCase(),r=i.list;e&&i.data&&i.data.currentValue!==s&&r&&r[s]&&(t.o.textIcons?e.state.text=s:e.state.icon.name=s,i.data.currentValue=s)}return!1},exec:f.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=D.i.closest(i,D.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=D.i.closest(i,D.i.isBlock,e.editor);return!(!o||o===e.editor||void 0===t.list||D.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"},n.D.prototype.fullsize=!1,n.D.prototype.globalFullSize=!0,n.D.prototype.controls.fullsize={exec(e){e.toggleFullSize()},update(e){const t=e.j,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:a.MODE_SOURCE+a.MODE_WYSIWYG},n.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 Ft 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,f.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,f.keys)(e.o.commandToHotkeys,!1).forEach((t=>{const i=e.o.commandToHotkeys[t];i&&((0,f.isArray)(i)||(0,f.isString)(i))&&e.registerHotkeyToCommand(i,t)}));let t=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",(e=>{if(e.key===a.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()}}),void 0,!0).on("keyup.hotkeys",(()=>{if(t)return t=!1,e.e.stopPropagation("keyup"),!1}),void 0,!0)}beforeDestruct(e){e.events&&e.e.off(".hotkeys")}}function Wt(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,f.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,f.callPromise)(o,(()=>{if(!e.iframe)return;const i=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;const o=()=>{(0,f.attr)(i.body,"contenteditable",e.getMode()!==a.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(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/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,f.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)),void 0,!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,f.css)(e.iframe,"height",e.editor.offsetHeight+(parseInt(t.marginTop||"0",10)+parseInt(t.marginBottom||"0",10)))}}),e.defaultTimeout/2);e.e.on("change afterInit afterSetMode resize",o).on([e.iframe,e.ew,i.documentElement],"load",o).on(i,"readystatechange DOMContentLoaded",o)}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 Vt(e){const t=e.o,i=e.i18n.bind(e),o=P.JO.get.bind(P.JO),s=t.filebrowser.ajax.url||t.uploader.url,r=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="${r?"":"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 Ut(e){const t=e.o,i=e.i18n.bind(e),o=P.JO.get.bind(P.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>`)}n.D.prototype.iframe=!1,n.D.prototype.iframeBaseUrl="",n.D.prototype.iframeTitle="Jodit Editor",n.D.prototype.iframeDoctype="<!DOCTYPE html>",n.D.prototype.iframeDefaultSrc="about:blank",n.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}',n.D.prototype.iframeCSSLinks=[],n.D.prototype.editHTMLDocumentMode=!1;var $t=i(73);n.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 Yt=e=>(e=(0,f.trim)(e),/^[0-9]+$/.test(e)?e+"px":e),Kt=e=>/^[-+]?[0-9.]+px$/.test(""+e)?parseFloat(""+e):e;class Gt 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,f.refs)(this.form);[e,t,i].forEach((e=>{(0,f.attr)(e,"disabled",this.state.marginIsLocked||null)})),o.innerHTML=P.JO.get(this.state.marginIsLocked?"lock":"unlock")}onChangeSizeIsLocked(){if(!this.form)return;const{lockSize:e,imageWidth:t}=(0,f.refs)(this.form);e.innerHTML=P.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,f.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,C.zx)(e,"ok","Apply","primary"),remove:(0,C.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 r=(e=>{const{showPreview:t,editSize:i}=e.o.image,o=P.JO.get.bind(P.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=r,s.setContent(r);const{tabsBox:n}=(0,f.refs)(this.form);n&&n.appendChild((0,Lt.IL)(e,[{name:"Image",content:Vt(e)},{name:"Advanced",content:Ut(e)}],this.activeTabState)),o.check.onAction(this.onApply);const{changeImage:a,editImage:l}=(0,f.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:h,imageHeight:u}=(0,f.refs)(r);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 p=e=>{if(!(0,f.isNumeric)(h.value)||!(0,f.isNumeric)(u.value))return;const t=parseFloat(h.value),i=parseFloat(u.value);e.target===h?u.value=""+Math.round(t/this.state.ratio):h.value=""+Math.round(i*this.state.ratio)};e.e.on([h,u],"change keydown mousedown paste",(t=>{this.state.sizeIsLocked&&e.async.setTimeout(p.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:r,lockMargin:n,imageSrc:a,id:l,classes:c,align:d,style:h,imageTitle:u,imageAlt:p,borderRadius:m,imageLink:g,imageWidth:v,imageHeight:b,imageLinkOpenInNewTab:y,imageViewSrc:w,lockSize:C}=(0,f.refs)(this.form);(()=>{n.checked=this.state.marginIsLocked,C.checked=this.state.sizeIsLocked})(),a.value=(0,f.attr)(t,"src")||"",w&&(0,f.attr)(w,"src",(0,f.attr)(t,"src")||""),(()=>{u.value=(0,f.attr)(t,"title")||"",p.value=(0,f.attr)(t,"alt")||"";const e=D.i.closest(t,"a",this.j.editor);e?(g.value=(0,f.attr)(e,"href")||"",y.checked="_blank"===(0,f.attr)(e,"target")):(g.value="",y.checked=!1)})(),(()=>{const e=(0,f.attr)(t,"width")||(0,f.css)(t,"width",!0)||!1,i=(0,f.attr)(t,"height")||(0,f.css)(t,"height",!0)||!1;v.value=!1!==e?""+Kt(e):""+t.offsetWidth,b.value=!1!==i?""+Kt(i):""+t.offsetHeight,this.state.sizeIsLocked=(()=>!(!(0,f.isNumeric)(v.value)||!(0,f.isNumeric)(b.value))&&1>Math.abs(parseFloat(v.value)-parseFloat(b.value)*this.state.ratio))()})(),(()=>{if(!e.image.editMargins)return;let n=!0,a=!1;[i,o,s,r].forEach((e=>{const o=(0,f.attr)(e,"data-ref")||"";let s=t.style.getPropertyValue((0,f.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||n&&"marginTop"!==o&&e.value!==i.value)&&(n=!1)})),this.state.marginIsLocked=n})(),c.value=((0,f.attr)(t,"class")||"").replace(/jodit_focused_image[\s]*/,""),l.value=(0,f.attr)(t,"id")||"",m.value=""+(parseInt(t.style.borderRadius||"0",10)||"0"),t.style.cssFloat&&-1!==["left","right"].indexOf(t.style.cssFloat.toLowerCase())?d.value=(0,f.css)(t,"float"):"block"===(0,f.css)(t,"display")&&"auto"===t.style.marginLeft&&"auto"===t.style.marginRight&&(d.value="center"),h.value=(0,f.attr)(t,"style")||""}onApply(){const{style:e,imageSrc:t,borderRadius:i,imageTitle:o,imageAlt:s,imageLink:r,imageWidth:n,imageHeight:a,marginTop:l,marginRight:c,marginBottom:d,marginLeft:h,imageLinkOpenInNewTab:u,align:p,classes:m,id:g}=(0,f.refs)(this.form),v=this.j.o,{image:b}=this.state;if(v.image.editStyle&&(0,f.attr)(b,"style",e.value||null),!t.value)return D.i.safeRemove(b),void this.dialog.close();(0,f.attr)(b,"src",t.value),b.style.borderRadius="0"!==i.value&&/^[0-9]+$/.test(i.value)?i.value+"px":"",(0,f.attr)(b,"title",o.value||null),(0,f.attr)(b,"alt",s.value||null);let y=D.i.closest(b,"a",this.j.editor);if(r.value?(y||(y=D.i.wrap(b,"a",this.j.createInside)),(0,f.attr)(y,"href",r.value),(0,f.attr)(y,"target",u.checked?"_blank":null)):y&&y.parentNode&&y.parentNode.replaceChild(b,y),n.value!==""+b.offsetWidth||a.value!==""+b.offsetHeight){const e=(0,f.trim)(n.value)?Yt(n.value):null,t=(0,f.trim)(a.value)?Yt(a.value):null;(0,f.css)(b,{width:e,height:t}),(0,f.attr)(b,"width",(0,f.attr)(b,"width")?e:null),(0,f.attr)(b,"height",(0,f.attr)(b,"height")?t:null)}const w=[l,c,d,h];v.image.editMargins&&(this.state.marginIsLocked?(0,f.css)(b,"margin",Yt(l.value)):w.forEach((e=>{const t=(0,f.attr)(e,"data-ref")||"";(0,f.css)(b,t,Yt(e.value))}))),v.image.editClass&&(0,f.attr)(b,"class",m.value||null),v.image.editId&&(0,f.attr)(b,"id",g.value||null),v.image.editAlign&&(0,$t.z)(b,p.value),this.j.setEditorValue(),this.dialog.close()}openImageEditor(){const e=(0,f.attr)(this.state.image,"src")||"",t=this.j.c.element("a"),i=()=>{t.host===location.host||Y(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,f.isString)(e.newfilename)&&((0,f.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=>{ge.call(this.j.filebrowser,t.href,i.name,i.path,i.source,(()=>{const t=(new Date).getTime();(0,f.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 P.GI(this.j),{changeImage:i}=(0,f.refs)(this.form);t.setZIndex(this.dialog.getZIndex()+1),t.setContent((0,Lt.ov)(this.j,{upload:e=>{e.files&&e.files.length&&(0,f.attr)(this.state.image,"src",e.baseurl+e.files[0]),this.updateValues(),t.close()},filebrowser:e=>{e&&(0,f.isArray)(e.files)&&e.files.length&&((0,f.attr)(this.state.image,"src",e.files[0]),t.close(),this.updateValues())}},this.state.image,t.close)).open((()=>(0,f.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(D.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,L.watch)("state.marginIsLocked")],Gt.prototype,"onChangeMarginIsLocked",null),(0,r.gn)([(0,L.watch)("state.sizeIsLocked")],Gt.prototype,"onChangeSizeIsLocked",null),(0,r.gn)([L.autobind],Gt.prototype,"onApply",null),(0,r.gn)([L.autobind],Gt.prototype,"openImageEditor",null),(0,r.gn)([L.autobind],Gt.prototype,"openImagePopup",null);const Jt="__jodit_imageprocessor_binded";function Xt(e){e.e.on("change afterInit changePlace",e.async.debounce((()=>{e.editor&&(0,f.$$)("img",e.editor).forEach((t=>{(0,f.dataBind)(t,Jt)||((0,f.dataBind)(t,Jt,!0),t.complete||e.e.on(t,"load",(function i(){var o;!e.isInDestruct&&(null===(o=e.e)||void 0===o||o.fire("resize")),e.e.off(t,"load",i)})),e.e.on(t,"mousedown touchstart",(()=>{e.s.select(t)})))}))}),e.defaultTimeout))}function Zt(e){e.registerButton({name:"image",group:"media"})}n.D.prototype.controls.image={popup(e,t,i,o){let s=null;return t&&!D.i.isText(t)&&D.i.isHTMLElement(t)&&(D.i.isTag(t,"img")||(0,f.$$)("img",t).length)&&(s=D.i.isTag(t,"img")?t:(0,f.$$)("img",t)[0]),e.s.save(),(0,Lt.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();const r=s||e.createInside.element("img");r.setAttribute("src",t),r.setAttribute("alt",i),s||await e.s.insertImage(r,null,e.o.imageDefaultWidth),o()}},s,o)},tags:["img"],tooltip:"Insert Image"},n.D.prototype.controls.indent={tooltip:"Increase Indent"};const Qt=(e,t)=>`${D.i.isCell(t)?"padding":"margin"}${"rtl"===e?"Right":"Left"}`;function ei(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&&D.i.up(o,D.i.isBlock,e.editor);const{enter:r}=e.o;if(!s&&o&&(s=D.i.wrapInline(o,r!==a.BR?r:a.PARAGRAPH,e)),!s)return e.s.restore(),!1;const n=i.includes(s);if(s&&!n){const o=Qt(e.o.direction,s);i.push(s);let r=s.style[o]?parseInt(s.style[o],10):0;r+=e.o.indentMargin*("outdent"===t?-1:1),s.style[o]=r>0?r+"px":"",(0,f.attr)(s,"style")||(0,f.attr)(s,"style",null)}e.s.restore()})),e.setEditorValue(),!1};e.registerCommand("indent",{exec:t,hotkeys:["ctrl+]","cmd+]"]}),e.registerCommand("outdent",{exec:t,hotkeys:["ctrl+[","cmd+["]})}function ti(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",(()=>{const t=e.createInside.element("hr");e.s.insertNode(t,!1,!1);const i=D.i.closest(t.parentElement,D.i.isBlock,e.editor);i&&D.i.isEmpty(i)&&i!==e.editor&&(D.i.after(i,t),D.i.safeRemove(i));let o=D.i.next(t,D.i.isBlock,e.editor,!1);return o||(o=e.createInside.element(e.o.enter),D.i.after(t,o)),e.s.setCursorIn(o),!1}))}n.D.prototype.controls.outdent={isDisabled(e){const t=e.s.current();if(t){const i=D.i.closest(t,D.i.isBlock,e.editor);if(i){const t=Qt(e.o.direction,i);return!i.style[t]||0>=parseInt(i.style[t],10)}}return!0},tooltip:"Decrease Indent"},n.D.prototype.indentMargin=10,n.D.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},n.D.prototype.toolbarInline=!0,n.D.prototype.toolbarInlineForSelection=!1,n.D.prototype.toolbarInlineDisableFor=[],n.D.prototype.toolbarInlineDisabledButtons=["source"],n.D.prototype.popup={a:i(74).Z,img:i(75).Z,cells:i(76).Z,toolbar:i(77).Z,jodit:i(78).Z,iframe:i(78).Z,"jodit-media":i(78).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 w.G(this.jodit,!1),this.toolbar=H(this.jodit,this.popup),this.snapRange=null,this.elmsList=(0,f.keys)(this.j.o.popup,!1).filter((e=>!this.isExcludedTarget(e)))}onClick(e){const t=this.elmsList,i=D.i.isTag(e,"img")?e:D.i.closest(e,t,this.j.editor);if(i&&this.canShowPopupForType(i.nodeName.toLowerCase()))return this.showPopup((()=>(0,f.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,f.isFunction)(e)?e(this.j,i,this.popup.close):e,(0,f.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,f.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,f.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,f.toArray)(e.registeredButtons).filter((e=>!this.j.o.toolbarInlineDisabledButtons.includes(e.name))).filter((e=>{const i=(0,f.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,f.isString)(e)?e:e.nodeName),(0,f.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&&P.u1.closestElement(e.target,w.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 D.i.isElement(t)&&t===e.endContainer&&D.i.isTag(t.childNodes[e.startOffset],(0,f.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,f.camelCase)("click_"+e))).concat(e.map((e=>(0,f.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)([L.autobind],ii.prototype,"onClick",null),(0,r.gn)([(0,L.wait)((e=>!e.j.isLocked))],ii.prototype,"showPopup",null),(0,r.gn)([(0,L.watch)(":clickEditor"),L.autobind],ii.prototype,"hidePopup",null),(0,r.gn)([(0,L.watch)(":outsideClick")],ii.prototype,"onOutsideClick",null),(0,r.gn)([L.autobind],ii.prototype,"onSelectionStart",null),(0,r.gn)([L.autobind],ii.prototype,"onSelectionEnd",null),(0,r.gn)([(0,L.debounce)((e=>e.defaultTimeout))],ii.prototype,"onSelectionChange",null),(0,r.gn)([L.autobind],ii.prototype,"showInlineToolbar",null),n.D.prototype.controls.align={name:"left",tooltip:"Align",update(e){const t=e.j,i=e.control,o=t.s.current();if(o){const s=D.i.closest(o,D.i.isBlock,t.editor)||t.editor;let r=""+(0,f.css)(s,"text-align");i.defaultValue&&-1!==i.defaultValue.indexOf(r)&&(r="left"),i.data&&i.data.currentValue!==r&&i.list&&-1!==i.list.indexOf(r)&&(t.o.textIcons?e.state.text=r:e.state.icon.name=r,i.data.currentValue=r)}},isActive(e,t){const i=e.s.current();if(i&&t.defaultValue){const o=D.i.closest(i,D.i.isBlock,e.editor)||e.editor;return-1===t.defaultValue.indexOf(""+(0,f.css)(o,"text-align"))}return!1},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},n.D.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},n.D.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},n.D.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},n.D.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"};const oi=(e,t)=>{if(D.i.isNode(t)&&D.i.isElement(t))switch(D.i.each(t,(e=>{D.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 si(e){e.registerButton({name:"align",group:"indent"});const t=t=>(e.s.focus(),e.s.eachSelection((i=>{if(!i)return;let o=D.i.up(i,D.i.isBlock,e.editor);o||(o=D.i.wrapInline(i,e.o.enterBlock,e)),oi(t,o)})),!1);e.registerCommand("justifyfull",t),e.registerCommand("justifyright",t),e.registerCommand("justifyleft",t),e.registerCommand("justifycenter",t)}n.D.prototype.limitWords=!1,n.D.prototype.limitChars=!1,n.D.prototype.limitHTML=!1;class ri 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&&a.COMMAND_KEYS.includes(e.key))return!1;const{jodit:i}=this,{limitWords:o,limitChars:s}=i.o,r=this.splitWords(t||(i.o.limitHTML?i.value:i.text));return!(!o||o>r.length)||!!s&&r.join("").length>=s}checkPreventKeyPressOrPaste(e){if(this.shouldPreventInsertHTML(e))return!1}checkPreventChanging(e,t){const{jodit:i}=this,{limitWords:o,limitChars:s}=i.o,r=i.o.limitHTML?e:(0,f.stripTags)(e),n=this.splitWords(r);(o&&n.length>o||s&&n.join("").length>s)&&(i.value=t)}splitWords(e){return e.replace((0,a.INVISIBLE_SPACE_REG_EXP)(),"").split((0,a.SPACE_REG_EXP)()).filter((e=>e.length))}beforeDestruct(e){e.e.off(".limit")}}(0,r.gn)([L.autobind],ri.prototype,"checkPreventKeyPressOrPaste",null),(0,r.gn)([L.autobind],ri.prototype,"checkPreventChanging",null),n.D.prototype.defaultLineHeight=null,n.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,f.memorizeExec)(e,t,{control:i},(e=>e))};class ni extends G{constructor(){super(...arguments),this.buttons=[{name:"lineHeight",group:"font"}]}afterInit(e){(0,f.css)(e.editor,{lineHeight:e.o.defaultLineHeight}),e.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(e,t,i){const{s:o,createInside:s,editor:r,o:n}=this.j;let a;o.isFocused()||o.focus(),o.save();const l=e=>{let t=D.i.closest(e,D.i.isBlock,r);t||(t=D.i.wrap(e,n.enter,s));const o=(0,f.css)(t,"lineHeight");void 0===a&&(a=""+o!=""+i),(0,f.css)(t,"lineHeight",a?i:null)};try{if(o.isCollapsed()){const e=s.fake();o.insertNode(e,!1,!1),l(e),D.i.safeRemove(e)}else o.eachSelection(l)}finally{o.restore()}}beforeDestruct(e){(0,f.css)(e.editor,{lineHeight:null})}}(0,r.gn)([L.autobind],ni.prototype,"applyLineHeight",null);var ai=i(50);n.D.prototype.link={formTemplate(e){const{openInNewTabCheckbox:t,noFollowCheckbox:i,modeClassName:o,selectSizeClassName:s,selectMultipleClassName:r,selectOptionsClassName:n}=e.o.link;return new ai.x4(e,[new ai.eC(e,[new ai.u3(e,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new ai.eC(e,[new ai.u3(e,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),o?new ai.eC(e,["input"===o?new ai.u3(e,{name:"className",ref:"className_input",label:"Class name"}):"select"===o?new ai.Cj(e,{name:"className",ref:"className_select",label:"Class name",size:s,multiple:r,options:n}):null]):null,t?new ai.mA(e,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,i?new ai.mA(e,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new ai.eC(e,[new C.y3(e,{name:"unlink",variant:"default",text:"Unlink"}),new C.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"]},n.D.prototype.controls.unlink={exec(e,t){const i=D.i.closest(t,"a",e.editor);i&&D.i.unwrap(i),e.setEditorValue(),e.e.fire("hidePopup")},tooltip:"Unlink"},n.D.prototype.controls.link={isActive(e){const t=e.s.current();return!(!t||!D.i.closest(t,"a",e.editor))},popup:(e,t,i,o)=>e.e.fire("generateLinkForm.link",t,o),tags:["a"],tooltip:"Insert link"};class li 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,f.refs)(i.container);null==e||e.focus()}))},hotkeys:e.o.link.hotkeys})}onDblClickOnLink(e){if(!D.i.isTag(e.target,"a"))return;const t=(0,f.attr)(e.target,"href");t&&(location.href=t,e.preventDefault())}onProcessPasteLink(e,t){const{jodit:i}=this;if((0,f.isURL)(t)){if(i.o.link.processVideoLink){const e=(0,f.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:r,formTemplate:n,formClassName:a,modeClassName:l}=i.o.link,c=n(i),d=(0,f.isString)(c)?i.c.fromHTML(c,{target_checkbox_box:s,nofollow_checkbox_box:r}):c,h=D.i.isElement(d)?d:d.container,u=(0,f.refs)(h),{insert:p,unlink:m,content_input_box:g}=u,{target_checkbox:v,nofollow_checkbox:b,url_input:y}=u,w=D.i.isImage(e);let{content_input:C}=u;const{className_input:k}=u,{className_select:S}=u;let E;C||(C=i.c.element("input",{type:"hidden",ref:"content_input"})),a&&h.classList.add(a),w&&D.i.hide(g);const I=()=>E?E.innerText:(0,f.stripTags)(i.s.range.cloneContents(),i.ed);if(E=!(!e||!D.i.closest(e,"a",i.editor))&&D.i.closest(e,"a",i.editor),!w&&e&&(C.value=I()),E){if(y.value=(0,f.attr)(E,"href")||"",l)switch(l){case"input":k&&(k.value=(0,f.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,f.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,f.attr)(E,"target")),r&&b&&(b.checked="nofollow"===(0,f.attr)(E,"rel")),p.textContent=o("Update")}else D.i.hide(m);i.editor.normalize();const x=i.history.snapshot.make();m&&i.e.on(m,"click",(e=>{i.s.restore(),i.history.snapshot.restore(x),E&&D.i.unwrap(E),i.setEditorValue(),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(),n=i.createInside;if(E)e=[E];else{if(i.s.isCollapsed()){const t=n.element("a");i.s.insertNode(t,!1,!1),e=[t]}else{const t=i.s.current();e=D.i.isTag(t,["img"])?[D.i.wrap(t,"a",n)]:i.s.wrapInTag("a")}e.forEach((e=>i.s.select(e)))}return e.forEach((e=>{var t;if((0,f.attr)(e,"href",y.value),l&&(null!=k?k:S))if("input"===l)""===k.value&&e.hasAttribute("class")&&(0,f.attr)(e,"class",null),""!==k.value&&(0,f.attr)(e,"class",k.value);else if("select"===l){e.hasAttribute("class")&&(0,f.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,f.attr)(e,"target",v.checked?"_blank":null),r&&b&&(0,f.attr)(e,"rel",b.checked?"nofollow":null)})),i.setEditorValue(),t(),!1};return D.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 ci(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()===a.MODE_SOURCE||(0,f.$$)(o.join(","),e.editor).forEach((o=>{(0,f.dataBind)(o,t)||((0,f.dataBind)(o,t,!0),(o=>{if(o.parentNode&&(0,f.attr)(o.parentNode,"data-jodit_iframe_wrapper"))o=o.parentNode;else{const s=e.createInside.fromHTML(`<${i} data-jodit-temp="1" contenteditable="false" draggable="true" data-${t}="1"></${i}>`);(0,f.attr)(s,"style",(0,f.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 hi(e){e.registerButton({name:"file",group:"media"})}function ui(e){let t=0,i=(0,f.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,f.splitArray)(e.o.buttons),e),o=(0,F.q)(i,e);return(0,f.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,f.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)([L.autobind],li.prototype,"onDblClickOnLink",null),(0,r.gn)([L.autobind],li.prototype,"onProcessPasteLink",null),(0,r.gn)([L.autobind],li.prototype,"generateForm",null),n.D.prototype.mediaFakeTag="jodit-media",n.D.prototype.mediaInFakeBlock=!0,n.D.prototype.mediaBlocks=["video","audio"],n.D.prototype.controls.video={popup(e,t,i,o){const s=new ai.x4(e,[new ai.eC(e,[new ai.u3(e,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new ai.eC(e,[(0,C.zx)(e,"","Insert","primary").onAction((()=>s.submit()))])]),r=new ai.x4(e,[new ai.eC(e,[new ai.GJ(e,{name:"code",required:!0,label:"Embed code"})]),new ai.eC(e,[(0,C.zx)(e,"","Insert","primary").onAction((()=>r.submit()))])]),n=[],a=t=>{e.s.restore(),e.s.insertHTML(t),o()};return e.s.save(),n.push({icon:"link",name:"Link",content:s.container},{icon:"source",name:"Code",content:r.container}),s.onSubmit((e=>{a((0,f.convertMediaUrlToVideoEmbed)(e.url))})),r.onSubmit((e=>{a(e.code)})),(0,Lt.IL)(e,n)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"},n.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 r=null;return t&&(D.i.isTag(t,"a")||D.i.closest(t,"a",e.editor))&&(r=D.i.isTag(t,"a")?t:D.i.closest(t,"a",e.editor)),(0,Lt.ov)(e,{filebrowser(e){e.files&&e.files.forEach((t=>s(e.baseurl+t))),o()},upload:!0,url(e,t){r?(r.setAttribute("href",e),r.setAttribute("title",t)):s(e,t),o()}},r,o,!1)},tags:["a"],tooltip:"Insert file"},n.D.prototype.mobileTapTimeout=300,n.D.prototype.toolbarAdaptive=!0,n.D.prototype.controls.dots={mode:a.MODE_SOURCE+a.MODE_WYSIWYG,popup(e,t,i,o,s){let r=i.data;return void 0===r&&(r={toolbar:H(e),rebuild(){var t;if(s){const i=e.e.fire("getDiffButtons.mobile",s.closest(P.bz));if(i&&r){r.toolbar.build((0,f.splitArray)(i));const o=(null===(t=e.toolbar.firstButton)||void 0===t?void 0:t.container.offsetWidth)||36;r.toolbar.container.style.width=3*(o+4)+"px"}}}},i.data=r),r.rebuild(),r.toolbar},tooltip:"Show all"};const pi=(e,t,{control:i})=>{const o="button"+i.command,s=i.args&&i.args[0]||(0,f.dataBind)(e,o);(0,f.dataBind)(e,o,s),e.execCommand(i.command,!1,s)};n.D.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:pi},n.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:pi};class mi 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.setEditorValue(),!1}beforeDestruct(e){}}function gi(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)([L.autobind],mi.prototype,"onCommand",null),n.D.prototype.showPlaceholder=!0,n.D.prototype.placeholder="Type something",n.D.prototype.useInputsPlaceholder=!0;class fi 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,f.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&&D.i.closest(o,D.i.isBlock,e.editor)||e.editor,r=e.ew.getComputedStyle(s);e.workplace.appendChild(this.placeholderElm);const{firstChild:n}=e.editor;if(D.i.isElement(n)&&!Me.Ph.isMarker(n)){const o=e.ew.getComputedStyle(n);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(r.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=r.getPropertyValue("line-height");(0,f.css)(this.placeholderElm,{display:"block",textAlign:r.getPropertyValue("text-align"),marginTop:Math.max(parseInt(r.getPropertyValue("margin-top"),10),t),marginLeft:Math.max(parseInt(r.getPropertyValue("margin-left"),10),i)})}hide(){D.i.safeRemove(this.placeholderElm)}toggle(){const e=this.j;e.editor&&!e.isInDestruct&&(e.getRealMode()===a.MODE_WYSIWYG&&(e=>{if(!e.firstChild)return!0;const t=e.firstChild;if(a.MAY_BE_REMOVED_WITH_KEY.test(t.nodeName)||/^(TABLE)$/i.test(t.nodeName))return!1;const i=D.i.next(t,(e=>e&&!D.i.isEmptyTextNode(e)),e);return D.i.isText(t)&&!i?D.i.isEmptyTextNode(t):!i&&D.i.each(t,(e=>!D.i.isTag(e,["ul","li","ol"])&&(D.i.isEmpty(e)||D.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,L.debounce)((e=>e.defaultTimeout/10),!0)],fi.prototype,"toggle",null),n.D.prototype.controls.redo={mode:a.MODE_SPLIT,isDisabled:e=>!e.history.canRedo(),tooltip:"Redo"},n.D.prototype.controls.undo={mode:a.MODE_SPLIT,isDisabled:e=>!e.history.canUndo(),tooltip:"Undo"};class vi 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"]})}}n.D.prototype.allowResizeTags=["img","iframe","table","jodit"],n.D.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10};const bi="__jodit-resizer_binded";class yi 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,r=0;D.i.isTag(this.element,"img")?(t?(s=this.width+(o.match(/left/)?-1:1)*t,r=Math.round(s/this.ratio)):(r=this.height+(o.match(/top/)?-1:1)*i,s=Math.round(r*this.ratio)),s>(0,f.innerWidth)(this.j.editor,this.j.ow)&&(s=(0,f.innerWidth)(this.j.editor,this.j.ow),r=Math.round(s/this.ratio))):(s=this.width+(o.match(/left/)?-1:1)*t,r=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%"),r>this.j.o.resizer.min_height&&this.applySize(this.element,"height",r),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),e.stopImmediatePropagation()}},this.onClickOutside=e=>{this.isShown&&(this.isResized?(this.j.unlock(),this.isResized=!1,this.j.setEditorValue(),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(),D.i.isTag(this.element,"img")&&!this.element.complete&&this.j.e.on(this.element,"load",this.updateSize))},this.updateSize=()=>{if(!this.isInDestruct&&this.isShown&&this.element&&this.rect){const e=this.getWorkplacePosition(),t=(0,f.offset)(this.element,this.j,this.j.ed),i=parseInt(this.rect.style.left||"0",10),o=this.rect.offsetWidth,s=this.rect.offsetHeight,r=t.top-e.top,n=t.left-e.left;parseInt(this.rect.style.top||"0",10)===r&&i===n&&o===this.element.offsetWidth&&s===this.element.offsetHeight||((0,f.css)(this.rect,{top:r,left:n,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,f.$$)("div",this.rect).forEach((t=>{e.e.on(t,"mousedown.resizer touchstart.resizer",this.onClickHandle.bind(this,t))})),j.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(D.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===a.KEY_DELETE&&this.element&&!D.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,f.offset)(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}applySize(e,t,i){const o=D.i.isImage(e)&&this.j.o.resizer.forImageChangeAttributes;o&&(0,f.attr)(e,t,i),o&&!e.style[t]||(0,f.css)(e,t,i)}onDelete(e){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(D.i.safeRemove(this.element),this.hide(),e.preventDefault()))}onChangeEditor(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),(0,f.$$)("iframe",this.j.editor).forEach(this.bind)}bind(e){if(!D.i.isHTMLElement(e)||(0,f.dataBind)(e,bi))return;let t;if((0,f.dataBind)(e,bi,!0),D.i.isTag(e,"iframe")){const i=e;D.i.isHTMLElement(e.parentNode)&&(0,f.attr)(e.parentNode,"-jodit_iframe_wrapper")?e=e.parentNode:(t=this.j.createInside.fromHTML('<jodit data-jodit-temp="1" contenteditable="false" draggable="true" data-jodit_iframe_wrapper="1"></jodit>'),(0,f.attr)(t,"style",(0,f.attr)(e,"style")),(0,f.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),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,f.markOwner)(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=""+(0,f.css)(this.j.container,"zIndex")),this.updateSize())}hide(){this.isResized||(this.isResized=!1,this.isShown=!1,this.element=null,D.i.safeRemove(this.rect))}beforeDestruct(e){this.hide(),j.TB.off("hideHelpers",this.hide),e.e.off(this.j.ow,".resizer").off(".resizer")}}(0,r.gn)([(0,L.watch)(":click")],yi.prototype,"onEditorClick",null),(0,r.gn)([(0,L.debounce)()],yi.prototype,"onChangeEditor",null),(0,r.gn)([L.autobind],yi.prototype,"bind",null),(0,r.gn)([L.autobind],yi.prototype,"hide",null),n.D.prototype.useSearch=!0,n.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 wi extends G{constructor(){super(...arguments),this.buttons=[{name:"find",group:"search"}],this.template=`<div class="jodit-search">\n\t\t\t<div class="jodit-search__box">\n\t\t\t\t<div class="jodit-search__inputs">\n\t\t\t\t\t<input data-ref="query" tabindex="0" placeholder="${this.j.i18n("Search for")}" type="text"/>\n\t\t\t\t\t<input data-ref="replace" tabindex="0" placeholder="${this.j.i18n("Replace with")}" type="text"/>\n\t\t\t\t</div>\n\t\t\t\t<div class="jodit-search__counts">\n\t\t\t\t\t<span data-ref="counter-box">0/0</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="jodit-search__buttons">\n\t\t\t\t\t<button data-ref="next" tabindex="0" type="button">${P.JO.get("angle-down")}</button>\n\t\t\t\t\t<button data-ref="prev" tabindex="0" type="button">${P.JO.get("angle-up")}</button>\n\t\t\t\t\t<button data-ref="cancel" tabindex="0" type="button">${P.JO.get("cancel")}</button>\n\t\t\t\t\t<button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">${this.j.i18n("Replace")}</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>`,this.isOpened=!1,this.selInfo=null,this.current=null,this.eachMap=(e,t,i)=>{D.i.findWithCurrent(e,(e=>!(!e||!t(e))),this.j.editor,i?"nextSibling":"previousSibling",i?"firstChild":"lastChild")},this.updateCounters=()=>{if(!this.isOpened)return;this.counterBox.style.display=this.queryInput.value.length?"inline-block":"none";const e=this.calcCounts(this.queryInput.value,this.j.s.range);this.counterBox.textContent=e.join("/")},this.calcCounts=(e,t=!1)=>{const i=[];let o=0,s=0,r=!1,n=this.j.editor.firstChild;for(;n&&e.length;)if(r=this.find(n,e,!0,0,r||this.j.ed.createRange()),r){if(this.boundAlreadyWas(r,i))break;i.push(r),n=r.startContainer,s+=1,t&&this.boundAlreadyWas(t,[r])&&(o=s)}else n=null;return[o,s]},this.findAndReplace=(e,t)=>{const i=this.find(e,t,!0,0,this.j.s.range);if(i&&i.startContainer&&i.endContainer){const e=this.j.ed.createRange();try{if(i&&i.startContainer&&i.endContainer){e.setStart(i.startContainer,i.startOffset),e.setEnd(i.endContainer,i.endOffset),e.deleteContents();const t=this.j.createInside.text(this.replaceInput.value);e.insertNode(t),this.j.s.select(t),this.tryScrollToElement(t)}}catch(e){}return!0}return!1},this.findAndSelect=(e,t,i)=>{const o=this.find(e,t,i,0,this.j.s.range);if(o&&o.startContainer&&o.endContainer){const e=this.j.ed.createRange();try{e.setStart(o.startContainer,o.startOffset),e.setEnd(o.endContainer,o.endOffset),this.j.s.selectRange(e)}catch(e){}return this.tryScrollToElement(o.startContainer),this.current=o.startContainer,this.updateCounters(),!0}return!1},this.find=(e,t,i,o,s)=>{if(e&&t.length){let r="",n={startContainer:null,startOffset:null,endContainer:null,endOffset:null};if(this.eachMap(e,(e=>{if(D.i.isText(e)&&null!=e.nodeValue&&e.nodeValue.length){let a=e.nodeValue;i||e!==s.startContainer?i&&e===s.endContainer&&(a=o?a.substr(0,s.startOffset):a.substr(s.endOffset)):a=o?a.substr(s.endOffset):a.substr(0,s.startOffset);const l=i?r+a:a+r,c=wi.findSomePartOfString(t,l,i);if(!1!==c){let s=wi.findSomePartOfString(t,a,i);!0===s?s=(0,f.trim)(t):!1===s&&(s=wi.findSomePartOfString(a,t,i),!0===s&&(s=(0,f.trim)(a)));let d=wi.getSomePartOfStringIndex(t,a,i)||0;if((i&&!o||!i&&o)&&e.nodeValue.length-a.length>0&&(d+=e.nodeValue.length-a.length),null==n.startContainer&&(n.startContainer=e,n.startOffset=d),!0===c)return n.endContainer=e,n.endOffset=d,n.endOffset+=s.length,!0;r=l}else r="",n={startContainer:null,startOffset:null,endContainer:null,endOffset:null}}else D.i.isBlock(e)&&""!==r&&(r=i?r+" ":" "+r);return!1}),i),n.startContainer&&n.endContainer)return n;if(!o)return this.current=i?this.j.editor.firstChild:this.j.editor.lastChild,this.find(this.current,t,i,o+1,s)}return!1},this.open=(e=!1)=>{this.isOpened||(this.searchBox.classList.add("jodit-search_active"),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.searchBox.classList.toggle("jodit-search_replace",e),this.current=this.j.s.current();const t=""+(this.j.s.sel||"");t&&(this.queryInput.value=t),this.updateCounters(),t?this.queryInput.select():this.queryInput.focus()},this.close=()=>{this.isOpened&&(this.j.s.restore(),this.searchBox.classList.remove("jodit-search_active"),this.isOpened=!1)}}static getSomePartOfStringIndex(e,t,i=!0){return this.findSomePartOfString(e,t,i,!0)}static findSomePartOfString(e,t,i=!0,o=!1){e=(0,f.trim)(e.toLowerCase().replace(a.SPACE_REG_EXP()," ")),t=t.toLowerCase();let s=i?0:t.length-1,r=i?0:e.length-1,n=0,l=null;const c=i?1:-1,d=[];for(;void 0!==t[s];s+=c){const h=e[r]===t[s];if(h||null!=l&&a.SPACE_REG_EXP().test(t[s])?(null!=l&&i||(l=s),d.push(t[s]),h&&(n+=1,r+=c)):(l=null,d.length=0,n=0,r=i?0:e.length-1),n===e.length)return!o||l}return o?null!=l&&l:!!d.length&&(i?d.join(""):d.reverse().join(""))}boundAlreadyWas(e,t){return t.some((t=>t.startContainer===e.startContainer&&t.endContainer===e.endContainer&&t.startOffset===e.startOffset&&t.endOffset===e.endOffset),!1)}tryScrollToElement(e){let t=D.i.closest(e,D.i.isElement,this.j.editor);t||(t=D.i.prev(e,D.i.isElement,this.j.editor)),t&&t!==this.j.editor&&t.scrollIntoView()}afterInit(e){if(e.o.useSearch){const t=this;t.searchBox=e.c.fromHTML(t.template);const{query:i,replace:o,cancel:s,next:r,prev:n,replaceBtn:l,counterBox:c}=(0,f.refs)(t.searchBox);t.queryInput=i,t.replaceInput=o,t.closeButton=s,t.nextButton=r,t.prevButton=n,t.replaceButton=l,t.counterBox=c;const d=()=>{e.workplace.appendChild(this.searchBox),e.e.off(this.j.container,"keydown.search").on(this.j.container,"keydown.search",(i=>{if(e.getRealMode()===a.MODE_WYSIWYG)switch(i.key){case a.KEY_ESC:this.close();break;case a.KEY_F3:t.queryInput.value&&(e.e.fire(i.shiftKey?"searchPrevious":"searchNext"),i.preventDefault())}}))};d(),e.e.on("changePlace",d).on(t.closeButton,"click",this.close).on(t.queryInput,"mousedown",(()=>{e.s.isFocused()&&(e.s.removeMarkers(),t.selInfo=e.s.save())})).on(t.replaceButton,"click",(i=>{t.findAndReplace(e.s.current()||e.editor.firstChild,t.queryInput.value),this.updateCounters(),i.preventDefault(),i.stopImmediatePropagation()})).on([t.nextButton,t.prevButton],"click",(function(i){e.e.fire(t.nextButton===this?"searchNext":"searchPrevious"),i.preventDefault(),i.stopImmediatePropagation()})).on(this.queryInput,"keydown",this.j.async.debounce((t=>{t.key===a.KEY_ENTER?(t.preventDefault(),t.stopImmediatePropagation(),e.e.fire("searchNext")&&this.close()):this.updateCounters()}),this.j.defaultTimeout)).on("beforeSetMode.search",(()=>{this.close()})).on("keydown.search mousedown.search",(()=>{this.selInfo&&(e.s.removeMarkers(),this.selInfo=null),this.isOpened&&(this.current=this.j.s.current(),this.updateCounters())})).on("searchNext.search searchPrevious.search",(()=>t.isOpened?t.findAndSelect(e.s.current()||e.editor.firstChild,t.queryInput.value,"searchNext"===e.e.current):t.open())).on("search.search",((t,i=!0)=>{e.execCommand("search",t,i)})).on("toggleSticky.search",this.calcSticky),e.registerCommand("search",{exec:(i,o,s=!0)=>(t.findAndSelect(e.s.current()||e.editor.firstChild,o||"",s),!1)}).registerCommand("openSearchDialog",{exec:()=>(t.open(),!1),hotkeys:["ctrl+f","cmd+f"]}).registerCommand("openReplaceDialog",{exec:()=>(e.o.readonly||t.open(!0),!1),hotkeys:["ctrl+h","cmd+h"]})}}beforeDestruct(e){var t;D.i.safeRemove(this.searchBox),null===(t=e.events)||void 0===t||t.off(".search")}calcSticky(e){if(this.isOpened)if(this.searchBox.classList.toggle("jodit-search_sticky",e),e){const e=(0,f.position)(this.j.toolbarContainer);(0,f.css)(this.searchBox,{top:e.top+e.height,left:e.left+e.width})}else(0,f.css)(this.searchBox,{top:null,left:null})}}(0,r.gn)([L.autobind],wi.prototype,"calcSticky",null);var Ci=i(32);n.D.prototype.select={normalizeSelectionBeforeCutAndCopy:!0};class ki 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,Ci.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;D.i.up(t,(e=>e===this.j.editor))||P.u1.closestElement(t,P.GI)||this.j.e.fire("outsideClick",e)}beforeCommandCut(e){const{s:t}=this.j;if("cut"===e&&!t.isCollapsed()){const e=t.current();e&&D.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&&D.i.isNode(e.target)&&D.i.isOrContains(i,e.target))&&this.jodit.s.expandSelection()}}(0,r.gn)([L.autobind],ki.prototype,"onStartSelection",null),(0,r.gn)([(0,L.watch)("ow:click")],ki.prototype,"onOutsideClick",null),(0,r.gn)([(0,L.watch)([":beforeCommand"])],ki.prototype,"beforeCommandCut",null),(0,r.gn)([(0,L.watch)([":copy",":cut"])],ki.prototype,"onCopyNormalizeSelectionBound",null),n.D.prototype.width="auto",n.D.prototype.minWidth=200,n.D.prototype.maxWidth="100%",n.D.prototype.allowResizeX=!1,n.D.prototype.allowResizeY=!0,n.D.prototype.height="auto",n.D.prototype.minHeight=200,n.D.prototype.maxHeight="auto",n.D.prototype.saveHeightInStorage=!1;let Si=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",P.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(){D.i.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}};Si.requires=["size"],Si=(0,r.gn)([L.autobind],Si);let Ei=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,void 0,!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,f.css)(e.editor,{minHeight:"100%"}),(0,f.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,f.isNumber)(e)){const{minHeight:t,maxHeight:i}=this.j.o;(0,f.isNumber)(t)&&t>e&&(e=t),(0,f.isNumber)(i)&&e>i&&(e=i)}(0,f.css)(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.resizeWorkspaceImd()}setWidth(e){if((0,f.isNumber)(e)){const{minWidth:t,maxWidth:i}=this.j.o;(0,f.isNumber)(t)&&t>e&&(e=t),(0,f.isNumber)(i)&&e>i&&(e=i)}(0,f.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,f.css)(this.j.container,"minHeight")||0)-this.getNotWorkHeight();if((0,f.isNumber)(e)&&e>0&&([this.j.workplace,this.j.iframe,this.j.editor].map((t=>{t&&(0,f.css)(t,"minHeight",e)})),this.j.e.fire("setMinHeight",e)),(0,f.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,f.css)(t,"maxHeight",e)})),this.j.e.fire("setMaxHeight",e)}this.j.container&&(0,f.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)([L.autobind],Ei.prototype,"resizeWorkspaceImd",null),Ei=(0,r.gn)([L.autobind],Ei),n.D.prototype.beautifyHTML=!a.IS_IE,n.D.prototype.sourceEditor="ace",n.D.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},n.D.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12/ace.js"],n.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"],n.D.prototype.controls.source={mode:a.MODE_SPLIT,exec(e){e.toggleMode()},isActive:e=>e.getRealMode()===a.MODE_SOURCE,tooltip:"Change mode"};class Ii{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 xi extends Ii{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,f.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(){D.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()}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 zi extends Ii{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()!==a.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()!==a.MODE_SOURCE&&e.getMode()!==a.MODE_SPLIT||(this.fromWYSIWYG(),t())})),t(),this.aceExists()||(0,f.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,f.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()}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 Ti(e,t,i,o,s){let r;if((0,f.isFunction)(e))r=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){r=new zi(t,i,o,s);break}default:r=new xi(t,i,o,s)}return r.init(t),r.onReadyAlways((()=>{r.setReadOnly(t.o.readonly)})),r}class ji 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,"source-consumer");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.setEditorValue(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+=a.INVISIBLE_SPACE;return t}));e>0&&t[e]===a.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(a.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(e){var t;if("selectall"===e.toLowerCase()&&this.j.getRealMode()===a.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()===a.MODE_WYSIWYG)this.j.s.save(),this.j.setEditorValue(),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()===a.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,f.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=Ti("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),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,f.loadNext)(e,e.o.beautifyHTMLCDNUrlsJS).then(t)}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}syncValueFromWYSIWYG(e=!1){const t=this.j;t.getMode()!==a.MODE_SPLIT&&t.getMode()!==a.MODE_SOURCE||this.fromWYSIWYG(e)}initSourceEditor(e){var t;if("area"!==e.o.sourceEditor){const t=Ti(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),D.i.safeRemove(this.mirrorContainer)}}(0,r.gn)([(0,L.watch)(":insertHTML.source")],ji.prototype,"onInsertHTML",null),(0,r.gn)([L.autobind],ji.prototype,"fromWYSIWYG",null),(0,r.gn)([L.autobind],ji.prototype,"toWYSIWYG",null),(0,r.gn)([L.autobind],ji.prototype,"getNormalPosition",null),(0,r.gn)([(0,L.watch)(":beforeCommand.source")],ji.prototype,"onSelectAll",null),(0,r.gn)([(0,L.watch)(":beforeSetMode.source")],ji.prototype,"saveSelection",null),(0,r.gn)([(0,L.watch)(":afterSetMode.source")],ji.prototype,"removeSelection",null),(0,r.gn)([L.autobind],ji.prototype,"setMirrorSelectionRange",null),(0,r.gn)([(0,L.watch)(":readonly.source")],ji.prototype,"onReadonlyReact",null),(0,r.gn)([L.autobind],ji.prototype,"syncValueFromWYSIWYG",null),n.D.prototype.showCharsCounter=!0,n.D.prototype.countHTMLChars=!1,n.D.prototype.showWordsCounter=!0;class Li 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,a.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,a.INVISIBLE_SPACE_REG_EXP)(),"").split((0,a.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(){D.i.safeRemove(this.charCounter),D.i.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}}n.D.prototype.toolbarSticky=!0,n.D.prototype.toolbarDisableStickyForMobile=!0,n.D.prototype.toolbarStickyOffset=0;class Ai 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,f.css)(e,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2})},this.removeSticky=e=>{this.isToolbarSticked&&((0,f.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,f.offset)(e.container,e,e.od,!0),o=e.getMode()===a.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&&D.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,L.throttle)()],Ai.prototype,"onScroll",null),n.D.prototype.usePopupForSpecialCharacters=!1,n.D.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],n.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 Mi 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 r=e.c.element("td"),n=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(n),r.appendChild(n),i.appendChild(r)}o.appendChild(i)}const r=this;return e.e.on(s,"focus",(function(){i.innerHTML=this.innerHTML})).on(s,"mousedown",(function(t){D.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(){D.i.isTag(this,"a")&&this.focus()})).on(s,"keydown",(t=>{const i=t.target;if(D.i.isTag(i,"a")){const o=parseInt((0,tt.Lj)(i,"-index")||"0",10),n=parseInt((0,tt.Lj)(i,"data-index-j")||"0",10);let l;switch(t.key){case a.KEY_UP:case a.KEY_DOWN:l=t.key===a.KEY_UP?o-r.countInRow:o+r.countInRow,void 0===s[l]&&(l=t.key===a.KEY_UP?Math.floor(s.length/r.countInRow)*r.countInRow+n:n,l>s.length-1&&(l-=r.countInRow)),s[l]&&s[l].focus();break;case a.KEY_RIGHT:case a.KEY_LEFT:l=t.key===a.KEY_LEFT?o-1:o+1,void 0===s[l]&&(l=t.key===a.KEY_LEFT?s.length-1:0),s[l]&&s[l].focus();break;case a.KEY_ENTER:e.e.fire(i,"mousedown"),t.stopImmediatePropagation(),t.preventDefault()}}})),t}))}beforeDestruct(e){e.e.off("generateSpecialCharactersTable.symbols")}}n.D.prototype.table={allowCellSelection:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",allowCellResize:!0,useExtraClassesOptions:!1},n.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 r=i.data&&i.data.rows?i.data.rows:10,n=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> &times; <span>1</span></label></form>'),l=a.querySelectorAll("span")[0],c=a.querySelectorAll("span")[1],d=a.querySelector(".jodit-form__container"),h=a.querySelector(".jodit-form__options"),u=[],p=r*n;for(let t=0;p>t;t+=1)u[t]||u.push(e.c.element("span",{dataIndex:t}));if(e.e.on(d,"mousemove",((e,t)=>{const i=e.target;if(!D.i.isTag(i,"span"))return;const o=void 0===t||isNaN(t)?parseInt((0,tt.Lj)(i,"-index")||"0",10):t||0,s=Math.ceil((o+1)/n),r=o%n+1;for(let e=0;u.length>e;e+=1)u[e].className=e%n+1>r||Math.ceil((e+1)/n)>s?"":"jodit_hovered";c.textContent=""+r,l.textContent=""+s})).on(d,"touchstart mousedown",(t=>{const i=t.target;if(t.preventDefault(),t.stopImmediatePropagation(),!D.i.isTag(i,"span"))return;const s=parseInt((0,tt.Lj)(i,"-index")||"0",10),r=Math.ceil((s+1)/n),a=s%n+1,l=e.createInside,c=l.element("tbody"),d=l.element("table");d.appendChild(c),d.style.width="100%";let u,p,m=null;for(let e=1;r>=e;e+=1){u=l.element("tr");for(let e=1;a>=e;e+=1)p=l.element("td"),m||(m=p),(0,f.css)(p,"width",(100/a).toFixed(4)+"%"),p.appendChild(l.element("br")),u.appendChild(l.text("\n")),u.appendChild(l.text("\t")),u.appendChild(p);c.appendChild(l.text("\n")),c.appendChild(u)}const g=e.s.current();if(g&&e.s.isCollapsed()){const t=D.i.closest(g,D.i.isBlock,e.editor);t&&t!==e.editor&&!t.nodeName.match(/^TD|TH|TBODY|TABLE|THEADER|TFOOTER$/)&&e.s.setCursorAfter(t)}(0,f.$$)("input[type=checkbox]:checked",h).forEach((e=>{e.value.split(/[\s]+/).forEach((e=>{d.classList.add(e)}))})),e.s.insertNode(l.text("\n")),e.s.insertNode(d,!1),m&&(e.s.setCursorIn(m),(0,f.scrollIntoViewIfNeeded)(m,e.editor,e.ed)),o()})),s&&s.parentElement){for(let t=0;r>t;t+=1){const i=e.c.div();for(let e=0;n>e;e+=1)i.appendChild(u[t*n+e]);d.appendChild(i)}u[0]&&(u[0].className="hovered")}return a},tooltip:"Insert table"};const Di="table_processor_observer-resize";class Pi 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((()=>{D.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(Di),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=_e.formalCoordinate(this.workTable,this.workCell,!0);_e.formalMatrix(this.workTable,((i,o,s)=>{e[1]===s&&(t=i.getBoundingClientRect(),this.minX=Math.max(t.left+a.NEARBY/2,this.minX)),e[1]+(this.isRTL?-1:1)===s&&(t=i.getBoundingClientRect(),this.maxX=Math.min(t.left+t.width-a.NEARBY/2,this.maxX))}))}return!1}onMouseMove(e){if(!this.drag)return;this.j.e.fire("closeAllPopups");let t=e.clientX;const i=(0,f.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.setEditorValue(),this.j.s.focus())}resizeColumns(){const e=this.resizeDelta,t=[];_e.setColumnWidthByDelta(this.workTable,_e.formalCoordinate(this.workTable,this.workCell,!0)[1],e,!0,t);const i=(0,f.call)(this.isRTL?D.i.prev:D.i.next,this.workCell,D.i.isCell,this.workCell.parentNode);_e.setColumnWidthByDelta(this.workTable,_e.formalCoordinate(this.workTable,i)[1],-e,!1,t)}resizeTable(){const e=this.resizeDelta*(this.isRTL?-1:1),t=this.workTable.offsetWidth,i=(0,f.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=D.i.up(e,(e=>D.i.isTag(e,"table")),this.j.editor)}calcHandlePosition(e,t,i=0,o=0){const s=(0,f.offset)(t,this.j,this.j.ed);if(i>a.NEARBY&&s.width-a.NEARBY>i)return void this.hideResizeHandle();const r=(0,f.offset)(this.j.workplace,this.j,this.j.od,!0),n=(0,f.offset)(e,this.j,this.j.ed);if(this.resizeHandler.style.left=(i>a.NEARBY?s.left+s.width:s.left)-r.left+o+"px",Object.assign(this.resizeHandler.style,{height:n.height+"px",top:n.top-r.top+"px"}),this.showResizeHandle(),i>a.NEARBY){const e=(0,f.call)(this.isRTL?D.i.prev:D.i.next,t,D.i.isCell,t.parentNode);this.setWorkCell(t,!!e&&null)}else{const e=(0,f.call)(this.isRTL?D.i.next:D.i.prev,t,D.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,f.$$)("table",e.editor).forEach(this.observe)})).on(this.j.ow,"scroll.resize-cells",(()=>{if(!this.drag)return;const t=D.i.up(this.workCell,(e=>D.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),_e.normalizeTable(D.i.closest(t,"table",e.editor))}))}))}observe(e){(0,f.dataBind)(e,Di)||((0,f.dataBind)(e,Di,!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=D.i.up(t.target,D.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)([L.autobind],Pi.prototype,"onHandleMouseDown",null),(0,r.gn)([L.autobind],Pi.prototype,"onMouseMove",null),(0,r.gn)([L.autobind],Pi.prototype,"onMouseUp",null),(0,r.gn)([L.autobind],Pi.prototype,"observe",null);const _i="table_processor_observer",Ri="onMoveTableSelectCell";class Ni 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===a.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=D.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:Ri,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(_i))return;const o=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(!o)return;const s=D.i.closest(o,["td","th"],e);if(!s||!this.selectedCell)return;s!==this.selectedCell&&this.j.lock(_i),this.unselectCells();const r=_e.getSelectedBound(e,[s,this.selectedCell]),n=_e.formalMatrix(e);for(let e=r[0][0];r[1][0]>=e;e+=1)for(let t=r[0][1];r[1][1]>=t;t+=1)this.module.addSelection(n[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">&nbsp;</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=D.i.closest(i,["td","th"],e);if(!o)return;const s=D.i.closest(o,"table",e);if(s&&s!==e)return;const r=_e.getSelectedBound(e,[o,this.selectedCell]),n=_e.formalMatrix(e),a=n[r[1][0]][r[1][1]],l=n[r[0][0]][r[0][1]];this.j.e.fire("showPopup",e,(()=>{const e=(0,f.position)(l,this.j),t=(0,f.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,f.$$)("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(Ri)}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=D.i.closest(i,"table",this.j.editor);if(!o)return;switch(e){case"splitv":_e.splitVertical(o,this.j);break;case"splitg":_e.splitHorizontal(o,this.j);break;case"merge":_e.mergeSelected(o,this.j);break;case"empty":t.forEach((e=>D.i.detach(e)));break;case"bin":D.i.safeRemove(o);break;case"binrow":new Set(t.map((e=>e.parentNode))).forEach((e=>{_e.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=>{_e.removeColumn(o,e.cellIndex)}))}break;case"addcolumnafter":case"addcolumnbefore":_e.appendColumn(o,i.cellIndex,"addcolumnafter"===e,this.j.createInside);break;case"addrowafter":case"addrowbefore":_e.appendRow(o,i.parentNode,"addrowafter"===e,this.j.createInside)}}return!1}}onAfterCommand(e){/^justify/.test(e)&&this.module.getAllSelectedCells().forEach((t=>oi(e,t)))}beforeDestruct(e){this.onRemoveSelection(),e.e.off(".select-cells")}}function Bi(e){e.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",(t=>{let i,o;if(t.key!==a.KEY_TAB&&t.key!==a.KEY_LEFT&&t.key!==a.KEY_RIGHT&&t.key!==a.KEY_UP&&t.key!==a.KEY_DOWN)return;{if(i=e.s.current(),o=D.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!==a.KEY_TAB&&i!==o&&((t.key===a.KEY_LEFT||t.key===a.KEY_UP)&&(D.i.prev(i,(e=>t.key===a.KEY_UP?D.i.isTag(e,"br"):!!e),o)||t.key!==a.KEY_UP&&D.i.isText(i)&&0!==s.startOffset)||(t.key===a.KEY_RIGHT||t.key===a.KEY_DOWN)&&(D.i.next(i,(e=>t.key===a.KEY_DOWN?D.i.isTag(e,"br"):!!e),o)||t.key!==a.KEY_DOWN&&D.i.isText(i)&&i.nodeValue&&s.startOffset!==i.nodeValue.length)))return}const s=D.i.up(o,(e=>e&&/^table$/i.test(e.nodeName)),e.editor);let r=null;switch(t.key){case a.KEY_TAB:case a.KEY_LEFT:{const i=t.key===a.KEY_LEFT||t.shiftKey?"prev":"next";r=D.i[i](o,(e=>e&&/^td|th$/i.test(e.tagName)),s),r||(_e.appendRow(s,"next"!==i&&s.querySelector("tr"),"next"===i,e.createInside),r=D.i[i](o,D.i.isCell,s));break}case a.KEY_UP:case a.KEY_DOWN:{let e=0,i=0;const n=_e.formalMatrix(s,((t,s,r)=>{t===o&&(e=s,i=r)}));t.key===a.KEY_UP?void 0!==n[e-1]&&(r=n[e-1][i]):void 0!==n[e+1]&&(r=n[e+1][i])}}if(r){if(r.firstChild)t.key===a.KEY_TAB?e.s.select(r,!0):e.s.setCursorIn(r,t.key===a.KEY_RIGHT||t.key===a.KEY_DOWN);else{const t=e.createInside.element("br");r.appendChild(t),e.s.setCursorBefore(t)}return!1}}))}function qi(e){e.registerButton({name:"table",group:"insert"})}(0,r.gn)([L.autobind],Ni.prototype,"onStartSelection",null),(0,r.gn)([(0,L.watch)(":outsideClick")],Ni.prototype,"onOutsideClick",null),(0,r.gn)([(0,L.watch)(":change")],Ni.prototype,"onChange",null),(0,r.gn)([L.autobind],Ni.prototype,"onRemoveSelection",null),(0,r.gn)([L.autobind],Ni.prototype,"onStopSelection",null),(0,r.gn)([L.autobind],Ni.prototype,"onExecCommand",null),(0,r.gn)([L.autobind],Ni.prototype,"onAfterCommand",null);class Hi extends G{constructor(){super(...arguments),this.isOpened=!1,this.delayShowTimeout=0}afterInit(e){this.container=e.c.div("jodit-tooltip"),(0,j.ZO)(this.j,Hi).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,f.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,f.css)(this.container,{left:-5e3}))}beforeDestruct(e){null==e||e.e.off(".tooltip"),this.close(),D.i.safeRemove(this.container)}}(0,r.gn)([L.autobind],Hi.prototype,"delayOpen",null),(0,r.gn)([L.autobind],Hi.prototype,"close",null),n.D.prototype.tab={tabInsideLiInsertNewList:!0};class Oi extends G{afterInit(e){}onTab(e){if(e.key===a.KEY_TAB&&(e=>{if(!e.o.tab.tabInsideLiInsertNewList||!e.s.isCollapsed())return!1;const t=e.createInside.fake();e.s.insertNode(t);const i=D.i.closest(t,"li",e.editor);if(i&&e.s.cursorOnTheLeft(i)&&D.i.isTag(i.previousElementSibling,"li")){const o=D.i.closest(i,["ol","ul"],e.editor);if(o){const s=e.createInside.element(o.tagName),r=i.previousElementSibling;return s.appendChild(i),r.appendChild(s),e.s.setCursorAfter(t),D.i.safeRemove(t),!0}}return D.i.safeRemove(t),!1})(this.j))return!1}beforeDestruct(e){}}function Fi(e){e.registerButton({name:"preview"}),e.registerCommand("preview",((t,i,o)=>{const s=e.getInstance("Dialog",{language:e.o.language,theme:e.o.theme}),r=((e,t,i="px")=>{const o=((e,t)=>{const i=[];try{(0,f.$$)("img",e.editor).forEach((o=>{const s=[(0,f.attr)(o,"width"),(0,f.attr)(o,"height"),o.src];(0,f.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});const r=e.createInside.a();e.ed.body.appendChild(r),r.href=o.src,o.src=r.href,D.i.safeRemove(r),i.push((()=>{var e;o.src=null!==(e=s[2])&&void 0!==e?e:"",(0,f.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 s=e.e.fire("beforePreviewBox",t,i);if(null!=s)return s;const r=e.c.div("jodit__preview-box");(0,f.css)(r,{position:"relative",padding:16});const n=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,f.css)(t,{minWidth:800,minHeight:600,border:0}),r.appendChild(t);const i=t.contentWindow;i&&e.e.fire("generateDocumentStructure.iframe",i.document,e)}else(0,f.css)(r,{minWidth:1024,minHeight:600,border:0});const a=(t,i)=>{const o=(0,f.isString)(i)?e.c.div():i;(0,f.isString)(i)&&(o.innerHTML=i);for(let e=0;o.children.length>e;e+=1){const i=o.children[e],s=document.createElement(i.nodeName);for(let e=0;i.attributes.length>e;e+=1)(0,f.attr)(s,i.attributes[e].nodeName,i.attributes[e].nodeValue);0===i.children.length||D.i.isTag(i,["table"])?"SCRIPT"===i.nodeName?i.textContent&&(s.textContent=i.textContent):i.innerHTML&&(s.innerHTML=i.innerHTML):a(s,i);try{t.appendChild(s)}catch(e){}}};return a(r,n),e.e.fire("afterPreviewBox",r),r}finally{o.forEach((e=>e()))}})(e,o);s.setSize(1024,600).open(r,e.i18n("Preview")).setModal(!0)}))}function Wi(e){e.registerButton({name:"print"})}(0,r.gn)([(0,L.watch)(":keydown.tab")],Oi.prototype,"onTab",null),n.D.prototype.controls.preview={icon:"eye",command:"preview",mode:a.MODE_SOURCE+a.MODE_WYSIWYG,tooltip:"Preview"},n.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,j.ZO)(e,n.D).appendChild(t);const i=()=>{e.e.off(e.ow,"mousemove",i),D.i.safeRemove(t)},o=t.contentWindow;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,f.defaultLanguage)(e.o.language)+'"><head><title></title></head><body>'+e.value+"</body></html>"),o.document.close()),o.focus(),o.print())},mode:a.MODE_SOURCE+a.MODE_WYSIWYG,tooltip:"Print"},n.D.prototype.showXPathInStatusbar=!0;class Vi extends G{constructor(){super(...arguments),this.onContext=(e,t)=>(this.menu||(this.menu=new S(this.j)),this.menu.show(t.clientX,t.clientY,[{icon:"bin",title:e===this.j.editor?"Clear":"Remove",exec:()=>{e!==this.j.editor?D.i.safeRemove(e):this.j.value="",this.j.setEditorValue()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(e)}}]),!1),this.onSelectPath=(e,t)=>{this.j.s.focus();const i=(0,f.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,f.trim)(i)}</a></span>`),r=s.firstChild;return this.j.e.on(r,"click",this.onSelectPath.bind(this,e)).on(r,"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=a.INVISIBLE_SPACE),e){let t,i,o;D.i.up(e,(e=>{e&&this.j.editor!==e&&!D.i.isText(e)&&(t=e.nodeName.toLowerCase(),i=(0,f.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()===a.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=a.INVISIBLE_SPACE),this.appendSelectAll()))})),this.calcPath())}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),D.i.safeRemove(this.container),delete this.menu,delete this.container}}var Ui=i(79),$i=i(80),Yi=i(81),Ki=i(82),Gi=i(83),Ji=i(84),Xi=i(85),Zi=i(86),Qi=i(87),eo=i(88),to=i(89),io=i(90),oo=i(91),so=i(92),ro=i(93),no=i(94),ao=i(95),lo=i(96),co=i(97),ho=i(98),uo=i(99),po=i(100),mo=i(101),go=i(102),fo=i(103),vo=i(104),bo=i(105),yo=i(106),wo=i(107),Co=i(108),ko=i(109),So=i(110),Eo=i(111),Io=i(112),xo=i(113),zo=i(114),To=i(115),jo=i(116),Lo=i(117),Ao=i(118),Mo=i(119),Do=i(120),Po=i(121),_o=i(122),Ro=i(123),No=i(124),Bo=i(125),qo=i(126),Ho=i(127),Oo=i(128),Fo=i(129),Wo=i(130),Vo=i(131),Uo=i(132),$o=i(133),Yo=i(134),Ko=i(135),Go=i(136),Jo=i(137),Xo=i(138),Zo=i(139),Qo=i(140),es=i(141),ts=i(142),is=i(143),os=i(144),ss=i(145),rs=i(146),ns=i(147),as=i(148),ls=i(149),cs=i(150),ds=i(151),hs=i(152),us=i(153),ps=i(154),ms=i(155),gs=i(156),fs=i(157),vs=i(158),bs=i(159),ys=i(160),ws=i(161);Object.keys(a).forEach((e=>{Jodit[e]=a[e]}));const Cs=e=>"__esModule"!==e;Object.keys(s).filter(Cs).forEach((e=>{P.JO.set(e.replace("_","-"),s[e])})),Object.keys(e).filter(Cs).forEach((t=>{Jodit.modules[t]=e[t]})),Object.keys(L).filter(Cs).forEach((e=>{Jodit.decorators[e]=L[e]})),["Confirm","Alert","Prompt"].forEach((t=>{Jodit[t]=e[t]})),Object.keys(t).filter(Cs).forEach((e=>{Jodit.plugins.add(e,t[e])})),Object.keys(Ge).filter(Cs).forEach((e=>{Jodit.lang[e]=Ge[e]}))}(),o}()}));