text: /*!
   jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
   Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
   Version: v3.3.2
   Url: https://xdsoft.net/jodit/
   License(s): GPL-2.0-or-later OR MIT OR Commercial
  */
  
  ((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var o in i)("object"==typeof exports?exports:t)[o]=i[o]}})(window,(function(){return(t=>{var e={};function i(o){if(e[o])return e[o].exports;var s=e[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=(t,e,o)=>{i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=(t,e)=>{if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(o,s,(e=>t[e]).bind(null,s));return o},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,"a",e),e},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.p="/build/",i(i.s=95)})([(t,e)=>{t.exports.default=["Type something","About Jodit","Jodit Editor","Free Non-commercial Version","GNU General Public License, version 2 or later","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.","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","Heading 2","Heading 3","Heading 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","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","Words: %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","Unlink","Update","pencil","Eye"," 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","Vertical align","Split","Merge","Add column","Add row","License: %s","Delete","Split vertical","Split horizontal","Border","Your code is similar to HTML. Keep as HTML?","Paste as 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"]},(t,e)=>{t.exports='<svg viewBox="0 0 1792 1792">\n\t<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"/>\n</svg>\n'},(t,e)=>{t.exports='<svg viewBox="0 0 18.151 18.151">\n<g>\n\t<g>\n\t\t<path d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194\n\t\t\tc0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/>\n\t\t<path 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\n\t\t\tS13.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\n\t\t\ts3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/>\n\t\t<polygon  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\n\t\t\t10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 \t\t"/>\n\t</g>\n</g>\n</svg>\n'},(t,e)=>{t.exports='<svg viewBox="0 0 432 432">\n<g>\n\t<g>\n\t\t<polygon points="203.688,96 0,96 0,144 155.688,144 \t\t"/>\n\t\t<polygon points="155.719,288 0,288 0,336 203.719,336 \t\t"/>\n\t\t<rect x="252" y="96"/>\n\t\t<rect/>\n\t\t<rect x="252" y="288"/>\n\t\t<rect y="384"/>\n\t\t<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\n\t\t\tL97.844,230.125z"/>\n\t\t<polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176 \t\t"/>\n\t</g>\n</g>\n</svg>\n'},(t,e)=>{t.exports='<svg  viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<svg viewBox="0 0 16 16">\n    <g transform="translate(0,-1036.3622)">\n        <path d="m 2,1050.3622 12,-12"\n              style="fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"/>\n        <path d="m 2,1038.3622 12,12"\n              style="fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"/>\n    </g>\n</svg>\n'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<svg viewBox="0 0 16 16"><path 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>\n'},(t,e)=>{t.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},(t,e)=>{t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">\n\t<path\n\t\td="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"/>\n\t<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"/>\n\t<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"/>\n\t<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"/>\n</svg>\n'},(t,e)=>{t.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<svg\n        enable-background="new 0 0 24 24"\n        viewBox="0 0 24 24"\n        xml:space="preserve"\n\n       >\n    <circle cx="12" cy="12" r="2.2"/>\n    <circle cx="12" cy="5" r="2.2"/>\n    <circle cx="12" cy="19" r="2.2"/>\n</svg>'},(t,e)=>{t.exports='<svg viewBox="0 0 10 10">\n\t<path\n\t\td="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"></path>\n</svg>\n'},(t,e)=>{t.exports='<svg viewBox="0 0 128 128" xml:space="preserve">\n    <g>\n        <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   "/>\n    </g>\n</svg>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},(t,e)=>{t.exports='<svg viewBox="0 0 1792 1792">\n\t<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"/>\n</svg>\n'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<svg viewBox="0 0 24 24" >\n\t<path 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"/>\n</svg>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<svg\n     viewBox="0 0 312 312">\n    <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none">\n        <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32\n-30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30\n25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27\n-503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960\n11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40\n-47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0\n-775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80\n-3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10\n164 12 777 10 l773 -3 3 -454z"/>\n        <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104\n190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4\n289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103\n-97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35\n-82 -78z"/>\n        <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0\n189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/>\n        <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95\n106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79\n79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95\n108 -6 10 -568 11 -577 1z"/>\n    </g>\n</svg>\n'},(t,e)=>{t.exports='<svg role="img" viewBox="0 0 1792 1792">\n    <path 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"/>\n</svg>'},(t,e)=>{t.exports='<svg viewBox="0 0 270 270">\n\t<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"/>\n</svg>'},(t,e)=>{t.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},(t,e)=>{t.exports='<svg x="0px" y="0px" viewBox="0 0 459 459">\n<g>\n\t<g>\n\t\t<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\n\t\t\tc-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\n\t\t\t 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\n\t\t\t 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\n\t\t\t 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\n\t\t\t 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"\n\t\t/>\n\t</g>\n</g>\n</svg>\n'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">\n\t<path\n\t\td="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"/>\n</svg>\n'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},(t,e)=>{t.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},(t,e)=>{t.exports='<svg viewBox="0 0 24 24"\n    >\n    <g>\n        <g transform="translate(-251.000000, -443.000000)">\n            <g transform="translate(215.000000, 119.000000)"/>\n            <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"/>\n        </g>\n    </g>\n</svg>'},(t,e)=>{t.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},(t,e)=>{t.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},(t,e)=>{t.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},(t,e)=>{t.exports='<svg viewBox="0 0 18 18">\n    <g fill-rule="evenodd" stroke="none" stroke-width="1">\n        <g transform="translate(-381.000000, -381.000000)">\n            <g transform="translate(381.000000, 381.000000)">\n                <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"/>\n            </g>\n        </g>\n    </g>\n</svg>'},(t,e)=>{t.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},(t,e)=>{t.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},(t,e)=>{t.exports='<svg viewBox="0 0 48 48">\n    <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"/>\n</svg>'},(t,e)=>{t.exports='<svg viewBox="0 0 48 48">\n    <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"/>\n    <path d="M0 0h48v48h-48z" fill="none"/>\n</svg>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},(t,e)=>{t.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<svg viewBox="0 0 1792 1792"><path 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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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>'},(t,e)=>{t.exports='<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,e)=>{t.exports.default=["إبدأ في الكتابة...","حول جوديت","محرر جوديت","الإصدار الغير تجاري مجاني","رخصة جنو العمومية العامة ، الإصدار الثاني أو الأحدث","دليل مستخدم جوديت","يحتوي على مساعدة مفصلة للاستخدام","للحصول على معلومات حول الترخيص، يرجى الذهاب لموقعنا:","شراء النسخة الكاملة","حقوق الطبع والنشر © XDSoft.net - Chupurnov Valeriy. كل الحقوق محفوظة.","مِرْساة","فتح في نافذة جديدة","فتح المحرر في الحجم الكامل","مسح التنسيق","ملء اللون أو تعيين لون النص","إعادة","تراجع","عريض","مائل","إدراج قائمة غير مرتبة","إدراج قائمة مرتبة","محاذاة للوسط","محاذاة مثبتة","محاذاة لليسار","محاذاة لليمين","إدراج خط أفقي","إدراج صورة","ادخال الملف","إدراج فيديو يوتيوب/فيميو ","إدراج رابط","حجم الخط","نوع الخط","إدراج كتلة تنسيق","عادي","عنوان 1","عنوان 2","عنوان 3","عنوان 4","إقتباس","كود","إدراج","إدراج جدول","تقليل المسافة البادئة","زيادة المسافة البادئة","تحديد أحرف خاصة","إدراج حرف خاص","تنسيق الرسم","تغيير الوضع","هوامش","أعلى","يمين","أسفل","يسار","الأنماط","الطبقات","محاذاة","اليمين","الوسط","اليسار","--غير مضبوط--","Src","العنوان","العنوان البديل","الرابط","افتح الرابط في نافذة جديدة","الصورة","ملف","متقدم","خصائص الصورة","إلغاء","حسنا","متصفح الملفات","حدث خطأ في تحميل القائمة ","حدث خطأ في تحميل المجلدات","هل أنت واثق؟","أدخل اسم المجلد","إنشاء مجلد","أكتب إسم","إسقاط صورة","إسقاط الملف","أو أنقر","النص البديل","رفع","تصفح","الخلفية","نص","أعلى","الوسط","الأسفل","إدراج عمود قبل","إدراج عمود بعد","إدراج صف أعلى","إدراج صف أسفل","حذف الجدول","حذف الصف","حذف العمود","خلية فارغة","%d حرف","%d كلام","اضرب من خلال","أكد","حرف فوقي","مخطوطة","قطع الاختيار","اختر الكل","استراحة","البحث عن","استبدل ب","يحل محل","معجون","اختر محتوى للصق","مصدر","بالخط العريض","مائل","شغل","صلة","إلغاء","كرر","طاولة","صورة","نظيف","فقرة","حجم الخط","فيديو","الخط","حول المحرر","طباعة","رمز","أكد","شطب","المسافة البادئة","نتوء","ملء الشاشة","الحجم التقليدي","نسخ التنسيق","الخط","قائمة","قائمة مرقمة","قطع","اختر الكل","قانون","فتح الرابط","تعديل الرابط","سمة Nofollow","إزالة الرابط","تحديث","لتحرير","مراجعة","URL","تحرير","محاذاة أفقية","فلتر","عن طريق التغيير","بالاسم","حسب الحجم","إضافة مجلد","إعادة","احتفظ","حفظ باسم","تغيير الحجم","حجم القطع","عرض","ارتفاع","حافظ على النسب","أن","لا","حذف","تميز","تميز %s","محاذاة عمودية","انشق، مزق","اذهب","أضف العمود","اضف سطر","رخصة %s","حذف","انقسام عمودي","تقسيم أفقي","الحدود","يشبه الكود الخاص بك HTML. تبقي كما HTML؟","الصق ك HTML","احتفظ","إدراج كنص","إدراج النص فقط","يمكنك فقط تحرير صورك الخاصة. تحميل هذه الصورة على المضيف؟","تم تحميل الصورة بنجاح على الخادم!","لوحة","لا توجد ملفات في هذا الدليل.","إعادة تسمية","أدخل اسم جديد","معاينة","تحميل","لصق من الحافظة","متصفحك لا يدعم إمكانية الوصول المباشر إلى الحافظة.","نسخ التحديد","نسخ","دائرة نصف قطرها الحدود"]},(t,e)=>{t.exports.default=["Napiš něco","O Jodit","Editor Jodit","Verze pro nekomerční použití","Licence GNU (GPL), verze 2 nebo vyšší","Jodit Uživatelská příručka","obsahuje detailní nápovědu","Pro informace o licenci, prosím, přejděte na naši stránku:","Koupit plnou verzi","Copyright © XDSoft.net - Chupurnov Valeriy. Všechna práva vyhrazena.","Anchor","Otevřít v nové záložce","Otevřít v celoobrazovkovém režimu","Vyčistit formátování","Barva výplně a písma","Vpřed","Zpět","Tučné","Kurzíva","Odrážky","Číslovaný seznam","Zarovnat na střed","Zarovnat do bloku","Zarovnat vlevo","Zarovnat vpravo","Vložit horizontální linku","Vložit obrázek","Vložit soubor","Vložit video (YT/Vimeo)","Vložit odkaz","Velikost písma","Typ písma","Formátovat blok","Normální text","Nadpis 1","Nadpis 2","Nadpis 3","Nadpis 4","Citát","Kód","Vložit","Vložit tabulku","Zmenšit odsazení","Zvětšit odsazení","Vybrat speciální symbol","Vložit speciální symbol","Použít formát","Změnit mód","Okraje","horní","pravý","spodní","levý","Styly","Třídy","Zarovnání","Vpravo","Na střed","Vlevo","--nenastaveno--","src","Titulek","Alternativní text (alt)","Link","Otevřít link v nové záložce","Obrázek","soubor","Rozšířené","Vlastnosti obrázku","Zpět","Ok","Prohlížeč souborů","Chyba při načítání seznamu souborů","Chyba při načítání složek","Jste si jistý(á)?","Název složky","Vytvořit složku","název","Přetáhněte sem obrázek","Přetáhněte sem soubor","nebo klikněte","Alternativní text","Nahrát","Server","Pozadí","Text","Nahoru","Na střed","Dolu","Vložit sloupec před","Vložit sloupec za","Vložit řádek nad","Vložit řádek pod","Vymazat tabulku","Vymazat řádku","Vymazat sloupec","Vyčistit buňku","Znaky: %d","Slova: %d","Přeškrtnuto","Podtrženo","Horní index","Dolní index","Vyjmout označené","Označit vše","Zalomení","Najdi","Nahradit za","Nahradit","Vložit","Vyber obsah pro vložení","HTML","tučně","kurzíva","štětec","odkaz","zpět","vpřed","tabulka","obrázek","guma","odstavec","velikost písma","video","písmo","о editoru","tisk","symbol","podtrženo","přeškrtnuto","zvětšit odsazení","zmenšit odsazení","celoobrazovkový režim","smrsknout","Kopírovat formát","Linka","Odrážka","Číslovaný seznam","Vyjmout","Označit vše","Kód","Otevřít odkaz","Upravit odkaz","Atribut no-follow","Odstranit odkaz","Aktualizovat","Chcete-li upravit","Zobrazit","URL","Editovat","Horizontální zarovnání","Filtr","Dle poslední změny","Dle názvu","Dle velikosti","Přidat složku","Reset","Uložit","Uložit jako...","Změnit rozměr","Ořezat","Šířka","Výška","Ponechat poměr","Ano","Ne","Vyjmout","Označit","Označit %s","Vertikální zarovnání","Rozdělit","Spojit","Přidat sloupec","Přidat řádek","Licence: %s","Vymazat","Rozdělit vertikálně","Rozdělit horizontálně","Okraj","Váš text se podobá HTML. Vložit ho jako HTML?","Vložit jako HTML","Ponechat originál","Vložit jako TEXT","Vložit pouze TEXT","Můžete upravovat pouze své obrázky. Načíst obrázek?","Obrázek byl úspěšně nahrán!","paleta","V tomto adresáři nejsou žádné soubory.","přejmenovat","Zadejte nový název","náhled","Stažení","Vložit ze schránky","Váš prohlížeč nepodporuje přímý přístup do schránky.","Kopírovat výběr","kopírování","Border radius"]},(t,e)=>{t.exports.default=["Bitte geben Sie einen Text ein","Über Jodit","Jodit Editor","Freie Nicht-kommerzielle Version","GNU General Public License, Version 2 oder höher","Das Jodit Benutzerhandbuch","beinhaltet ausführliche Informationen wie Sie den Editor verwenden können.","Für Lizenz-Informationen, besuchen Sie bitte unsere Webseite:","Vollversion kaufen","Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.","Anker","In neuer Registerkarte öffnen","Editor in voller Größe öffnen","Formatierung löschen","Füllfarbe oder Textfarbe ändern","Wiederholen","Rückgängig machen","Fett","Kursiv","Ungeordnete Liste einfügen","Sortierte Liste einfügen","Mittig ausrichten","Blocksatz","Links ausrichten","Rechts ausrichten","Horizontale Linie einfügen","Bild einfügen","Datei einfügen","Youtube/vimeo Video einfügen","Link einfügen","Schriftgröße","Schriftfamilie","Formatblock einfügen","Normal","Überschrift 1","Überschrift 2","Überschrift 3","Überschrift 4","Zitat","Code","Einfügen","Tabelle einfügen","Einzug verkleinern","Einzug vergrößern","Sonderzeichen auswählen","Sonderzeichen einfügen","Format kopieren","Änderungsmodus","Ränder","Oben","Rechts","Unten","Links","CSS Stiel","CSS Klassen","Ausrichten","Rechts","Zentriert","Links","Keine","Pfad","Titel","Alternativer Text","Link","Link in neuem Tab öffnen","Bild","Datei","Fortgeschritten","Bildeigenschaften","Abbrechen","OK","Dateibrowser","Fehler beim Laden der Liste","Fehler beim Laden der Ordner","Sind Sie sicher?","Geben Sie den Verzeichnisnamen ein","Verzeichnis erstellen","Typname","Bild hier hinziehen","Datei löschen","oder hier klicken","Alternativtext","Hochladen","Auswählen","Hintergrund","Text","Oben","Mittig","Unten","Spalte einfügen vor","Spalte einfügen nach","Zeile einfügen oberhalb","Zeile unterhalb einfügen","Tabelle löschen","Zeile löschen","Spalte löschen","Leere Zelle","Zeichen: %d","Wörter: %d","Durchschlagen","Unterstreichen","hochgestellt","Index","Auswahl ausschneid","Wählen Sie Alle aus","Pause","Suche nach","Ersetzen durch","Ersetzen","Einfügen","Wählen Sie Inhalt zum Einfügen","HTML","Fett gedruckt","kursiv","Bürste","Verknüpfung","rückgängig machen","wiederholen","Tabelle","Bild","Radiergummi","Absatz","Schriftgröße","Video","Schriftart","Über","drucken","Symbol","unterstreichen","durchgestrichen","Einzug","Aussenseiter","Vollgröße","schrumpfen","Format kopierenт","die Linie","Liste von","Nummerierte Liste","Schnitt","Wählen Sie Alle aus","Code einbetten","Link öffnen","Link bearbeiten","Nofollow-Attribut","Link entfernen","Aktualisieren","Bearbeiten","Ansehen","URL","Bearbeiten","Horizontale Ausrichtung","filter","Sortieren nach geändert","Nach Name sortieren","Nach Größe sortiert","Ordner hinzufügen","Wiederherstellen","Speichern","Speichern als","Ändern Sie die Größe","Größe anpassen","Breite","Höhe","Halten Sie Proportionen","Ja","Nein","Entfernen","Markieren","Markieren: %s","Vertikale Ausrichtung","Split","Verschmelzen","Spalte hinzufügen","Zeile hinzufügen",null,"Löschen","Split vertikal","Split horizontally","Rand","Es scheint als dass Sie HTML-Text einfügen möchten","Als HTML einfügen?","Original speichern","Als Text einfügen","Nur Text einfügen","Sie können nur Ihre eigenen Bilder bearbeiten. Laden Sie dieses Bild auf dem Host herunter?","Das Bild wurde erfolgreich auf den Server hochgeladen!null","Palette","In diesem Verzeichnis befinden sich keine Dateien.","umbenennen","Geben Sie einen neuen Namen ein","Vorschau","Herunterladen","Aus der Zwischenablage einfügen","Ihr browser unterstützt kein direkter Zugriff auf die Zwischenablage.","Auswahl kopieren","kopieren","Border-radius"]},(t,e)=>{t.exports.default=["Escriba algo...","Acerca de Jodit","Jodit Editor","Versión gratis no comercial","GNU General Public License, Versión 2 o posterior","Guía de usuario Jodit","contiene ayuda detallada para el uso.","Para información sobre la licencia, por favor visite nuestro sitio:","Compre la versión completa","Copyright © XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.","Anclar","Abrir en nueva pestaña","Abrir editor en pantalla completa","Limpiar formato","Color de relleno o de letra","Rehacer","Deshacer","Negrita","Cursiva","Insertar lista no ordenada","Insertar lista ordenada","Alinear Centrado","Alinear Justificado","Alinear Izquierda","Alinear Derecha","Insertar línea horizontal","Insertar imagen","Insertar archivo","Insertar video de Youtube/vimeo","Insertar vínculo","Tamaño de letra","Familia de letra","Insertar bloque","Normal","Encabezado 1","Encabezado 2","Encabezado 3","Encabezado 4","Cita","Código","Insertar","Insertar tabla","Disminuir sangría","Aumentar sangría","Seleccionar caracter especial","Insertar caracter especial","Copiar formato","Cambiar modo","Márgenes","arriba","derecha","abajo","izquierda","Estilos CSS","Clases CSS","Alinear","Derecha","Centrado","Izquierda","--No Establecido--","Fuente","Título","Texto Alternativo","Vínculo","Abrir vínculo en nueva pestaña","Imagen","Archivo","Avanzado","Propiedades de imagen","Cancelar","Aceptar","Buscar archivo","Error al cargar la lista","Error al cargar las carpetas","¿Está seguro?","Entre nombre de carpeta","Crear carpeta","Entre el nombre","Soltar imagen","Soltar archivo","o click","Texto alternativo","Subir","Buscar","Fondo","Texto","Arriba","Centro","Abajo","Insertar columna antes","Interar columna después","Insertar fila arriba","Insertar fila debajo","Borrar tabla","Borrar fila","Borrar columna","Vaciar celda","Caracteres: %d","Palabras: %d","Tachado","Subrayado","superíndice","subíndice","Cortar selección","Seleccionar todo","Pausa","Buscar","Reemplazar con","Reemplazar","Pegar","Seleccionar contenido para pegar","HTML","negrita","cursiva","Brocha","Vínculo","deshacer","rehacer","Tabla","Imagen","Borrar","Párrafo","Tamaño de letra","Video","Letra","Acerca de","Imprimir","Símbolo","subrayar","tachar","sangría","quitar sangría","Tamaño completo","encoger","Copiar formato","línea horizontal","lista sin ordenar","lista ordenada","Cortar","Seleccionar todo","Incluir código","Abrir vínculo","Editar vínculo","No seguir","Desvincular","Actualizar","Para editar","Ver","URL","Editar","Alineación horizontal","filtrar","Ordenar por fecha modificación","Ordenar por nombre","Ordenar por tamaño","Agregar carpeta","Resetear","Guardar","Guardar como...","Redimensionar","Recortar","Ancho","Alto","Mantener relación de aspecto","Si","No","Quitar","Seleccionar","Seleccionar: %s","Alineación vertical","Dividir","Mezclar","Agregar columna","Agregar fila",null,"Borrar","Dividir vertical","Dividir horizontal","Borde","El código es similar a HTML. ¿Mantener como HTML?","Pegar como HTML?","Mantener","Insertar como texto","Insertar solo texto","Solo puedes editar tus propias imágenes. ¿Descargar esta imagen en el servidor?","¡La imagen se ha subido correctamente al servidor!","paleta","No hay archivos en este directorio.","renombrar","Ingresa un nuevo nombre","avance","Descargar","Pegar desde el portapapeles","Su navegador no soporta el acceso directo en el portapapeles.","Selección de copia","copia","Radio frontera"]},(t,e)=>{t.exports.default=["Ecrivez ici","A propos de Jodit","Editeur Jodit","Version gratuite, non commerciale","GNU General Public License, version 2 ou ultérieure","Guide de l'utilisateur","Aide détaillée à l'utilisation","Consulter la licence sur notre site web:","Acheter la version complète","Copyright © XDSoft.net - Chupurnov Valeriy. Tous droits réservés.","Ancre","Ouvrir dans un nouvel onglet","Ouvrir l'éditeur en pleine page","Supprimer le formattage","Modifier la couleur du fond ou du texte","Refaire","Défaire","Gras","Italique","Liste non ordonnée","Liste ordonnée","Centrer","Justifier","Aligner à gauche ","Aligner à droite","Insérer une ligne horizontale","Insérer une image","Insérer un fichier","Insérer une vidéo","Insérer un lien","Taille des caractères","Famille des caractères","Bloc formatté","Normal","Titre 1","Titre 2","Titre 3","Titre 4","Citation","Code","Insérer","Insérer un tableau","Diminuer le retrait","Retrait plus","Sélectionnez un caractère spécial","Insérer un caractère spécial","Cloner le format","Mode wysiwyg <-> code html","Marges","haut","droite","Bas","gauche","Styles","Classes","Alignement","Droite","Centre","Gauche","--Non disponible--","Source","Titre","Alternative","Lien","Ouvrir le lien dans un nouvel onglet","Image","fichier","Avancé","Propriétés de l'image","Effacer","OK","Explorateur de fichiers","Erreur de liste de chargement","Erreur de dossier de chargement","Etes-vous sûrs ?","Entrer le non de dossier","Créer un dossier","type de fichier","Coller une image","Déposer un fichier","ou cliquer","Texte de remplacemement","Charger","Chercher","Arrière-plan","Texte","Haut","Milieu","Bas","Insérer une colonne avant","Insérer une colonne après","Insérer une ligne en dessus","Insérer une ligne en dessous","Supprimer le tableau","Supprimer la ligne","Supprimer la colonne","Vider la cellule","Symboles: %d","Mots: %d","Frapper à travers","Souligner","exposant","indice","Couper la sélection","Tout sélectionner","Pause","Rechercher","Remplacer par","Remplacer","Coller","Choisissez le contenu à coller","la source","graisseux","italique","verser","lien","abolir","prêt","graphique","Image","la gommen","clause","taille de police","Video","police","à propos de l'éditeur","impression","caractère","souligné","barré","indentation","indifférent","taille réelle","taille conventionnelle","Format de copie","la ligne","Liste des","Liste numérotée","Couper","Sélectionner tout",null,"Ouvrir le lien","Modifier le lien","Attribut Nofollow","Supprimer le lien","Mettre à jour","Pour éditer","Voir","URL",null,"Alignement horizontal","Filtre","Trier par modifié","Trier par nom","Classer par taille","Ajouter le dossier","Restaurer","Sauvegarder","Enregistrer sous","Changer la taille","Taille de garniture","Largeur","Hauteur","Garder les proportions","Oui","Non","Supprimer","Mettre en évidence","Mettre en évidence: %s","Alignement vertical","Split","aller","Ajouter une colonne","Ajouter une rangée",null,"Effacer","Split vertical","Split horizontal",null,"Votre texte que vous essayez de coller est similaire au HTML. Collez-le en HTML?","Coller en HTML?","Sauvegarder l'original","Coller en tant que texte","Coller le texte seulement","Vous ne pouvez éditer que vos propres images. Téléchargez cette image sur l'hôte?","L'image a été téléchargée avec succès sur le serveur!null","Palette","Il n'y a aucun fichier dans ce répertoire.","renommer","Entrez un nouveau nom","Aperçu","Télécharger","Coller à partir du presse-papiers","Votre navigateur ne prend pas en charge l'accès direct à la presse-papiers.","Copier la sélection","copie","Rayon des frontières"]},(t,e)=>{t.exports.default=["הקלד משהו...","About Jodit","Jodit Editor","Free Non-commercial Version","GNU General Public License, version 2 or later","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.","מקום עיגון","פתח בכרטיסיה חדשה","פתח את העורך בחלון חדש","נקה עיצוב","שנה צבע טקסט או רקע","בצע שוב","בטל","מודגש","נטוי","הכנס רשימת תבליטים","הכנס רשימה ממוספרת","מרכז","ישר ","ישר לשמאל","ישר לימין","הכנס קו אופקי","הכנס תמונה","הכנס קובץ","הכנס סרטון וידאו מYouTube/Vimeo","הכנס קישור","גודל גופן","גופן","מעוצב מראש","רגיל","כותרת 1","כותרת 2","כותרת 3","כותרת 4","ציטוט","קוד","הכנס","הכנס טבלה","הקטן כניסה","הגדל כניסה","בחר תו מיוחד","הכנס תו מיוחד","העתק עיצוב","החלף מצב","ריווח","עליון","ימין","תחתון","שמאל","עיצוב CSS","מחלקת CSS","יישור","ימין","מרכז","שמאל","--לא נקבע--","מקור","כותרת","כיתוב חלופי","קישור","פתח בכרטיסיה חדשה","תמונה","קובץ","מתקדם","מאפייני תמונה","ביטול","אישור","סייר הקבצים","שגיאה  בזמן טעינת רשימה","שגיאה בזמן טעינת תקיות","האם אתה בטוח?","הכנס שם תקיה","צור תקיה","סוג הקובץ","הסר תמונה","הסר קובץ","או לחץ","כיתוב חלופי","העלה","סייר","רקע","טקסט","עליון","מרכז","תחתון","הכנס עמודה לפני","הכנס עמודה אחרי","הכנס שורה מעל","הכנס שורה מתחת","מחק טבלה","מחק שורה","מחק עמודה","רוקן תא","תווים: %d","מילים: %d","קו חוצה","קו תחתון","superscript","subscript","גזור בחירה","בחר הכל","שבירת שורה","חפש","החלף ב","החלף","הדבק","בחר תוכן להדבקה","HTML","מודגש","נטוי","מברשת","קישור","בטל","בצע שוב","טבלה","תמונה","מחק","פסקה","גודל גופן","וידאו","גופן","עלינו","הדפס","תו מיוחד","קו תחתון","קו חוצה","הגדל כניסה","הקטן כניסה","גודל מלא","כווץ","העתק עיצוב","קו אופקי","רשימת תבליטים","רשימה ממוספרת","חתוך","בחר הכל","הוסף קוד","פתח קישור","ערוך קישור","ללא מעקב","בטל קישור","עדכן","כדי לערוך","הצג","כתובת","ערוך","יישור אופקי","סנן","מין לפי שינוי","מיין לפי שם","מיין לפי גודל","הוסף תקייה","אפס","שמור","שמור בשם...","שנה גודל","חתוך","רוחב","גובה","שמור יחס","כן","לא","הסר","בחר","נבחר: %s","יישור אנכי","פיצול","מזג","הוסף עמודה","הוסף שורה",null,"מחק","פיצול אנכי","פיצול אופקי","מסגרת","הקוד דומה לHTML, האם להשאיר כHTML","הדבק כHTML","השאר","הכנס כטקסט","הכנס טקסט בלבד","רק קבצים המשוייכים שלך ניתנים לעריכה. האם להוריד את הקובץ?","התמונה עלתה בהצלחה!","לוח","אין קבצים בספריה זו.","הונגרית","הזן שם חדש","תצוגה מקדימה","הורד","להדביק מהלוח","הדפדפן שלך לא תומך גישה ישירה ללוח.","העתק בחירה","העתק","רדיוס הגבול"]},(t,e)=>{t.exports.default=["Írjon be valamit","Joditról","Jodit Editor","Ingyenes változat","GNU General Public License, Verzió 2 vagy későbbi","Jodit útmutató","további segítséget tartalmaz","További licence információkért látogassa meg a weboldalunkat:","Teljes verzió megvásárlása","Copyright © XDSoft.net - Chupurnov Valeriy. Minden jog fenntartva.","Horgony","Megnyitás új lapon","Megnyitás teljes méretben","Formázás törlése","Háttér/szöveg szín","Újra","Visszavon","Félkövér","Dőlt","Pontozott lista","Számozott lista","Középre zárt","Sorkizárt","Balra zárt","Jobbra zárt","Vízszintes vonal beszúrása","Kép beszúrás","Fájl beszúrás","Youtube videó beszúrása","Link beszúrás","Betűméret","Betűtípus","Formázott blokk beszúrása","Normál","Fejléc 1","Fejléc 2","Fejléc 3","Fejléc 4","Idézet","Kód","Beszúr","Táblázat beszúrása","Behúzás csökkentése","Behúzás növelése","Speciális karakter kiválasztása","Speciális karakter beszúrása","Kép formázása","Nézet váltása","Szegélyek","felső","jobb","alsó","bal","CSS stílusok","CSS osztályok","Igazítás","Jobbra","Középre","Balra","Nincs","Forrás","Cím","Helyettesítő szöveg","Link","Link megnyitása új lapon","Kép","Fájl","Haladó","Kép tulajdonságai","Mégsem","OK","Fájl tallózó","Hiba a lista betöltése közben","Hiba a mappák betöltése közben","Biztosan ezt szeretné?","Írjon be egy mappanevet","Mappa létrehozása","írjon be bevet","Húzza ide a képet","Húzza ide a fájlt","vagy kattintson","Helyettesítő szöveg","Feltölt","Tallóz","Háttér","Szöveg","Fent","Középen","Lent","Oszlop beszúrás elé","Oszlop beszúrás utána","Sor beszúrás fölé","Sor beszúrás alá","Táblázat törlése","Sor törlése","Oszlop törlése","Cella tartalmának törlése","Karakterek száma: %d","Szavak száma: %d","Áthúzott","Aláhúzott","Felső index","Alsó index","Kivágás","Összes kijelölése","Szünet","Keresés","Csere erre","Csere","Beillesztés","Válasszon tartalmat a beillesztéshez","HTML","Félkövér","Dőlt","Ecset","Link","Visszavon","Újra","Táblázat","Kép","Törlés","Paragráfus","Betűméret","Videó","Betű","Rólunk","Nyomtat","Szimbólum","Aláhúzott","Áthúzott","Behúzás","Aussenseiter","Teljes méret","Összenyom","Formátum másolás","Egyenes vonal","Lista","Számozott lista","Kivág","Összes kijelölése","Beágyazott kód","Link megnyitása","Link szerkesztése","Nincs követés","Link leválasztása","Frissít","Szerkesztés","felülvizsgálat","URL","Szerkeszt","Vízszintes igazítás","Szűrő","Rendezés módosítás szerint","Rendezés név szerint","Rendezés méret szerint","Mappa hozzáadás","Visszaállít","Mentés","Mentés másként...","Átméretezés","Kivág","Szélesség","Magasság","Képarány megtartása","Igen","Nem","Eltávolít","Kijelöl","Kijelöl: %s","Függőleges igazítás","Felosztás","Összevonás","Oszlop hozzáadás","Sor hozzáadás",null,"Törlés","Függőleges felosztás","Vízszintes felosztás","Szegély","A beillesztett szöveg HTML-nek tűnik. Megtartsuk HTML-ként?","Beszúrás HTML-ként","Megtartás","Beszúrás szövegként","Csak szöveg beillesztése","Csak a saját képeit tudja szerkeszteni. Letölti ezt a képet?","Kép sikeresen feltöltve!","Palette","Er zijn geen bestanden in deze map.","átnevezés","Adja meg az új nevet","előnézet","Letöltés","Illessze be a vágólap","A böngésző nem támogatja a közvetlen hozzáférést biztosít a vágólapra.","Másolás kiválasztása","másolás","Határ sugár"]},(t,e)=>{t.exports.default=["Ketik sesuatu","Tentang Jodit","Editor Jodit","Versi Bebas Non-komersil","Lisensi Publik Umum (GPL), versi 2 atau terbaru","Panduan Pengguna Jodit","mencakup detail bantuan penggunaan","Untuk informasi tentang lisensi, silakan kunjungi website:","Beli versi lengkap","Hak Cipta © XDSoft.net - Chupurnov Valeriy. Hak cipta dilindungi undang-undang.","Tautan","Buka di tab baru","Buka editor dalam ukuran penuh","Hapus Pemformatan","Isi warna atau atur warna teks","Ulangi","Batalkan","Tebal","Miring","Sisipkan Daftar Tidak Berurut","Sisipkan Daftar Berurut","Tengah","Penuh","Kiri","Kanan","Sisipkan Garis Horizontal","Sisipkan Gambar","Sisipkan Berkas","Sisipkan video youtube/vimeo","Sisipkan tautan","Ukuran font","Keluarga font","Sisipkan blok format","Normal","Heading 1","Heading 2","Heading 3","Heading 4","Kutip","Kode","Sisipkan","Sisipkan tabel","Kurangi Indentasi","Tambah Indentasi","Pilih Karakter Spesial","Sisipkan Karakter Spesial","Formar warna","Ubah mode","Batas","atas","kanan","bawah","kiri","Gaya","Class","Rata","Kanan","Tengah","Kiri","--Tidak diset--","Src","Judul","Teks alternatif","Tautan","Buka tautan di tab baru","Gambar","berkas","Lanjutan","Properti gambar","Batal","Ya","Penjelajah Berkas","Error ketika memuat list","Error ketika memuat folder","Apakah Anda yakin?","Masukkan nama Direktori","Buat direktori","ketik nama","Letakkan gambar","Letakkan berkas","atau klik","Teks alternatif","Unggah","Jelajahi","Latar Belakang","Teks","Atas","Tengah","Bawah","Sisipkan kolom sebelumnya","Sisipkan kolom setelahnya","Sisipkan baris di atasnya","Sisipkan baris di bawahnya","Hapus tabel","Hapus baris","Hapus kolom","Kosongkan cell","Karakter: %d","Kata: %d","Coret","Garis Bawah","Superskrip","Subskrip","Potong pilihan","Pilih semua","Berhenti","Mencari","Ganti dengan","Ganti","Paste","Pilih konten untuk dipaste","sumber","tebal","miring","sikat","tautan","batalkan","ulangi","tabel","gambar","penghapus","paragraf","ukuran font","video","font","tentang","cetak","simbol","garis bawah","coret","menjorok ke dalam","menjorok ke luar","ukuran penuh","menyusut","salin format","hr","ul","ol","potong","Pilih semua","Kode embed","Buka tautan","Edit tautan","No follow","Hapus tautan","Perbarui","pensil","Mata","URL","Edit","Perataan horizontal","Filter","Urutkan berdasarkan perubahan","Urutkan berdasarkan nama","Urutkan berdasarkan ukuran","Tambah folder","Reset","Simpan","Simpan sebagai...","Ubah ukuran","Crop","Lebar","Tinggi","Jaga aspek rasio","Ya","Tidak","Copot","Pilih","Pilih %s","Rata vertikal","Bagi","Gabungkan","Tambah kolom","tambah baris","Lisensi: %s","Hapus","Bagi secara vertikal","Bagi secara horizontal","Bingkai","Kode Anda cenderung ke HTML. Biarkan sebagai HTML?","Paste sebagai HTML","Jaga","Sisipkan sebagai teks","Sisipkan hanya teks","Anda hanya dapat mengedit gambar Anda sendiri. Unduh gambar ini di host?","Gambar telah sukses diunggah ke host!","palet","Tidak ada berkas","ganti nama","Masukkan nama baru","pratinjau","Unduh","Paste dari clipboard","Browser anda tidak mendukung akses langsung ke clipboard.","Copy seleksi","copy","Border radius"]},(t,e)=>{t.exports.default=["Scrivi qualcosa...","A proposito di Jodit","Jodit Editor","Versione gratuita non commerciale","Licenza pubblica generale GNU, versione 2 o successiva","Guida utente di Jodit","contiene una guida dettagliata per l'uso.","Per informazioni sulla licenza, si prega di visitare il nostro sito:","Acquista la versione completa","Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.","Ancora","Apri in una nuova scheda","Apri l'editor a schermo intero","Formato chiaro","Riempi colore o lettera","Ripristina","Annulla","Grassetto","Corsivo","Inserisci lista non ordinata","Inserisci l'elenco ordinato","Allinea Centra","Allineare Giustificato","Allinea a Sinistra","Allinea a Destra","Inserisci la linea orizzontale","Inserisci immagine","Inserisci un file","Inserisci video Youtube/Vimeo","Inserisci il link","Dimensione del carattere","Tipo di font","Inserisci blocco","Normale","Heading 1","Heading 2","Heading 3","Heading 4","Citazione","Codice","Inserisci","Inserisci tabella","Riduci il rientro","Aumenta il rientro","Seleziona una funzione speciale","Inserisci un carattere speciale","Copia formato","Cambia modo","Margini","su","destra","giù","sinistra","Stili CSS","Classi CSS","Allinea","Destra","Centro","Sinistra","--Non Impostato--","Fonte","Titolo","Testo Alternativo","Link","Apri il link in una nuova scheda","Immagine","Archivio","Avanzato","Proprietà dell'immagine","Annulla","Accetta","Cerca il file","Errore durante il caricamento dell'elenco","Errore durante il caricamento delle cartelle","Sei sicuro?","Inserisci il nome della cartella","Crea cartella","Entre el nombre","Rilascia l'immagine","Rilascia file","o click","Testo alternativo","Carica","Sfoglia","Sfondo","Testo","Su","Centro","Sotto","Inserisci prima la colonna","Inserisci colonna dopo","Inserisci la riga sopra","Inserisci la riga sotto","Elimina tabella","Elimina riga","Elimina colonna","Cella vuota","Caratteri: %d","Parole: %d","Barrato","Sottolineato","indice","deponente","Taglia la selezione","Seleziona tutto","Pausa","Cerca","Sostituisci con","Sostituisci","Incolla","Seleziona il contenuto da incollare","HTML","Grassetto","Corsivo","Pennello","Link","Annulla","Ripristina","Tabella","Immagine","Gomma","Paragrafo","Dimensione del carattere","Video","Font","Approposito di","Stampa","Simbolo","Sottolineato","Barrato","trattino","annulla rientro","A grandezza normale","comprimere","Copia il formato","linea orizzontale","lista non ordinata","lista ordinata","Taglia","Seleziona tutto","Includi codice","Apri link","Modifica link","Non seguire","Togli link","Aggiornare","Per modificare","Recensione"," URL","Modifica","Allineamento orizzontale","Filtro","Ordina per data di modifica","Ordina per nome","Ordina per dimensione","Aggiungi cartella","Reset","Salva","Salva con nome...","Ridimensiona","Tagliare","Larghezza","Altezza","Mantenere le proporzioni","Si","No","Rimuovere","Seleziona","Seleziona: %s","Allineamento verticala","Dividere","Fondi","Aggiungi colonna","Aggiungi riga",null,"Cancella","Dividere verticalmente","Diviso orizzontale","Bordo","Il codice è simile all'HTML. Mantieni come HTML?","Incolla come HTML?","Mantieni","Inserisci come testo","Inserisci solo il testo","Puoi modificare solo le tue immagini. Scarica questa immagine sul server?","L'immagine è stata caricata con successo sul server!","tavolozza","Non ci sono file in questa directory.","ungherese","Inserisci un nuovo nome","anteprima","Scaricare","Incolla dagli appunti","Il tuo browser non supporta l'accesso diretto agli appunti.","Selezione di copia","copia","Border radius"]},(t,e)=>{t.exports.default=["Begin met typen..","Over Jodit","Jodit Editor","Gratis niet-commerciële versie","GNU General Public License, versie 2 of hoger","Jodit gebruikershandleiding","bevat gedetailleerde informatie voor gebruik.","Voor informatie over de licentie, ga naar onze website:","Volledige versie kopen","Copyright © XDSoft.net - Chupurnov Valeriy. Alle rechten voorbehouden.","Anker","Open in nieuwe tab","Editor in volledig scherm openen","Opmaak verwijderen","Vulkleur of tekstkleur aanpassen","Opnieuw","Ongedaan maken","Vet","Cursief","Geordende list invoegen","Ongeordende lijst invoegen","Centreren","Uitlijnen op volledige breedte","Links uitlijnen","Rechts uitlijnen","Horizontale lijn invoegen","Afbeelding invoegen","Bestand invoegen","Youtube/Vimeo video invoegen","Link toevoegen","Tekstgrootte","Lettertype","Format blok invoegen","Normaal","Koptekst 1","Koptekst 2","Koptekst 3","Koptekst 4","Citaat","Code","Invoegen","Tabel invoegen","Inspringing verkleinen","Inspringing vergroten","Symbool selecteren","Symbool invoegen","Opmaak kopieren","Modus veranderen","Marges","Boven","Rechts","Onder","Links","CSS styles","CSS classes","Uitlijning","Rechts","Gecentreerd","Links","--Leeg--","Src","Titel","Alternatieve tekst","Link","Link in nieuwe tab openen","Afbeelding","Bestand","Geavanceerd","Afbeeldingseigenschappen","Annuleren","OK","Bestandsbrowser","Fout bij het laden van de lijst","Fout bij het laden van de mappenlijst","Weet je het zeker?","Geef de map een naam","Map aanmaken","Type naam","Sleep hier een afbeelding naartoe","Sleep hier een bestand naartoe","of klik","Alternatieve tekst","Uploaden","Bladeren","Achtergrond","Tekst","Boven","Midden","Onder","Kolom invoegen (voor)","Kolom invoegen (na)","Rij invoegen (boven)","Rij invoegen (onder)","Tabel verwijderen","Rij verwijderen","Kolom verwijderen","Cel leegmaken","Tekens: %d","Woorden: %d","Doorstrepen","Onderstrepen","Superscript","Subscript","Selectie knippen","Selecteer alles","Enter","Zoek naar","Vervangen door","Vervangen","Plakken","Kies content om te plakken","Broncode","vet","cursief","kwast","link","ongedaan maken","opnieuw","tabel","afbeelding","gum","paragraaf","lettergrootte","video","lettertype","over","afdrukken","symbool","onderstreept","doorgestreept","inspringen","minder inspringen","volledige grootte","kleiner maken","opmaak kopiëren","horizontale lijn","lijst","genummerde lijst","knip","alles selecteren","Embed code","link openen","link aanpassen","niet volgen","link verwijderen","Updaten","Om te bewerken","Recensie"," URL","Bewerken","Horizontaal uitlijnen","Filteren","Sorteren op wijzigingsdatum","Sorteren op naam","Sorteren op grootte","Map toevoegen","Herstellen","Opslaan","Opslaan als ...","Grootte aanpassen","Bijknippen","Breedte","Hoogte","Verhouding behouden","Ja","Nee","Verwijderen","Selecteren","Selecteer: %s","Verticaal uitlijnen","Splitsen","Samenvoegen","Kolom toevoegen","Rij toevoegen",null,"Verwijderen","Verticaal splitsen","Horizontaal splitsen","Rand","Deze code lijkt op HTML. Als HTML behouden?","Invoegen als HTML","Origineel behouden","Als tekst invoegen","Als onopgemaakte tekst invoegen","Je kunt alleen je eigen afbeeldingen aanpassen. Deze afbeelding downloaden?","De afbeelding is succesvol geüploadet!","Palette","Er zijn geen bestanden in deze map.","Hongaars","Voer een nieuwe naam in","voorvertoning","Download","Plakken van klembord","Uw browser ondersteunt geen directe toegang tot het klembord.","Selectie kopiëren","kopiëren","Border radius"]},(t,e)=>{t.exports.default=["Escreva algo...","Sobre o Jodit","Editor Jodit","Versão Gratuita não-comercial","Licença Pública GNU General, Versão 2 ou posterior","Guia de usuário Jodit","contém ajuda detalhada para o uso.","Para informação sobre a licença, por favor visite nosso site:","Compre a versão completa","Copyright © XDSoft.net - Chupurnov Valeriy. Todos os direitos reservados.","Link","Abrir em nova aba","Abrir editor em tela cheia","Limpar formatação","Cor de preenchimento ou cor do texto","Refazer","Desfazer","Negrito","Itálico","Inserir lista não ordenada","Inserir lista ordenada","Centralizar","Justificar","Alinhar à Esquerda","Alinhar à Direita","Inserir linha horizontal","Inserir imagem","Inserir arquivo","Inserir vídeo do Youtube/vimeo","Inserir link","Tamanho da letra","Fonte","Inserir bloco","Normal","Cabeçalho 1","Cabeçalho 2","Cabeçalho 3","Cabeçalho 4","Citação","Código","Inserir","Inserir tabela","Diminuir recuo","Aumentar recuo","Selecionar caractere especial","Inserir caractere especial","Copiar formato","Mudar modo","Margens","cima","direta","baixo","esquerda","Estilos CSS","Classes CSS","Alinhamento","Direita","Centro","Esquerda","--Não Estabelecido--","Fonte","Título","Texto Alternativo","Link","Abrir link em nova aba","Imagem","Arquivo","Avançado","Propriedades da imagem","Cancelar","Ok","Procurar arquivo","Erro ao carregar a lista","Erro ao carregar as pastas","Você tem certeza?","Escreva o nome da pasta","Criar pasta","Escreva seu nome","Soltar imagem","Soltar arquivo","ou clique","Texto alternativo","Upload","Explorar","Fundo","Texto","Cima","Meio","Baixo","Inserir coluna antes","Inserir coluna depois","Inserir linha acima","Inserir linha abaixo","Excluir tabela","Excluir linha","Excluir coluna","Limpar célula","Caracteres: %d","Palavras: %d","Tachado","Sublinhar","sobrescrito","subscrito","Cortar seleção","Selecionar tudo","Pausa","Procurar por","Substituir com","Substituir","Colar","Escolher conteúdo para colar","HTML","negrito","itálico","pincel","link","desfazer","refazer","tabela","imagem","apagar","parágrafo","tamanho da letra","vídeo","fonte","Sobre de","Imprimir","Símbolo","sublinhar","tachado","recuar","diminuir recuo","Tamanho completo","diminuir","Copiar formato","linha horizontal","lista não ordenada","lista ordenada","Cortar","Selecionar tudo","Incluir código","Abrir link","Editar link","Não siga","Remover link","Atualizar","Editar","Visualizar","URL","Editar","Alinhamento horizontal","filtrar","Ordenar por modificação","Ordenar por nome","Ordenar por tamanho","Adicionar pasta","Resetar","Salvar","Salvar como...","Redimensionar","Recortar","Largura","Altura","Manter a proporção","Sim","Não","Remover","Selecionar","Selecionar: %s","Alinhamento vertical","Dividir","Mesclar","Adicionar coluna","Adicionar linha",null,"Excluir","Dividir vertical","Dividir horizontal","Borda","Seu código é simular ao HTML. Manter como HTML?","Colar como HTML?","Manter","Inserir como Texto","Inserir somente o Texto","Você só pode editar suas próprias imagens. Baixar essa imagem pro servidor?","A imagem foi enviada com sucesso para o servidor!","Palette","Não há arquivos nesse diretório.","Húngara","Digite um novo nome","preview","Baixar","Colar da área de transferência","O seu navegador não oferece suporte a acesso direto para a área de transferência.","Selecção de cópia","cópia","Border radius"]},(t,e)=>{t.exports.default=["Напишите что-либо","О Jodit","Редактор Jodit","Версия для не коммерческого использования","Стандартная общественная лицензия GNU (GPL), версия 2 или выше","Jodit Руководство пользователя","содержит детальную информацию по использованию","Для получения сведений о лицензии , пожалуйста, перейдите на наш сайт:","Купить полную версию","Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.","Анкор","Открывать ссылку в новой вкладке","Открыть редактор в полном размере","Очистить форматирование","Цвет заливки или цвет текста","Повтор","Отмена","Жирный","Наклонный","Вставка маркированного списка","Вставить нумерованный список","Выровнять по центру","Выровнять по ширине","Выровнять по левому краю","Выровнять по правому краю","Вставить горизонтальную линию","Вставить изображение","Вставить файл","Вставьте видео","Вставить ссылку","Размер шрифта","Шрифт","Вставить блочный элемент","Нормальный текст","Заголовок 1","Заголовок 2","Заголовок 3","Заголовок 4","Цитата","Код","Вставить","Вставить таблицу","Уменьшить отступ","Увеличить отступ","Выберите специальный символ","Вставить специальный символ","Формат краски","Источник","Отступы","сверху","справа","снизу","слева","Стили","Классы","Выравнивание","По правому краю","По центру","По левому краю","--не устанавливать--","src","Заголовок","Альтернативный текст (alt)","Ссылка","Открывать ссылку в новом окне",null,"Файл","Расширенные","Свойства изображения","Отмена","Ок","Браузер файлов","Ошибка при загрузке списка изображений","Ошибка при загрузке списка директорий","Вы уверены?","Введите название директории","Создать директорию","введите название","Перетащите сюда изображение","Перетащите сюда файл","или нажмите","Альтернативный текст","Загрузка","Сервер","Фон","Текст"," К верху","По середине","К низу","Вставить столбец до","Вставить столбец после","Вставить ряд выше","Вставить ряд ниже","Удалить таблицу","Удалять ряд","Удалить столбец","Отчистить ячейку","Символов: %d","Слов: %d","Перечеркнуть","Подчеркивание","верхний индекс","индекс","Вырезать","Выделить все","Разделитель","Найти","Заменить на","Заменить","Вставить","Выбрать контент для вставки","HTML","жирный","курсив","заливка","ссылка","отменить","повторить","таблица","Изображение","очистить","параграф","размер шрифта","видео","шрифт","о редакторе","печать","символ","подчеркнутый","перечеркнутый","отступ","выступ","во весь экран","обычный размер","Копировать формат","линия","Список","Нумерованный список","Вырезать","Выделить все","Код","Открыть ссылку","Редактировать ссылку","Атрибут nofollow","Убрать ссылку","Обновить","Редактировать","Просмотр","URL","Редактировать","Горизонтальное выравнивание","Фильтр","По изменению","По имени","По размеру","Добавить папку","Восстановить","Сохранить","Сохранить как","Изменить размер","Обрезать размер","Ширина","Высота","Сохранять пропорции","Да","Нет","Удалить","Выделить","Выделить: %s","Вертикальное выравнивание","Разделить","Объеденить в одну","Добавить столбец","Добавить строку","Лицензия: %s","Удалить","Разделить по вертикали","Разделить по горизонтали","Рамка","Ваш текст, который вы пытаетесь вставить похож на HTML. Вставить его как HTML?","Вставить как HTML?","Сохранить оригинал","Вставить как текст","Вставить только текст","Вы можете редактировать только свои собственные изображения. Загрузить это изображение на ваш сервер?","Изображение успешно загружено на сервер!","палитра","В данном каталоге нет файлов","Переименовать","Введите новое имя","Предпросмотр","Скачать","Вставить из буфера обмена","Ваш браузер не поддерживает прямой доступ к буферу обмена.","Скопировать выделенное","копия","Радиус границы"]},(t,e)=>{t.exports.default=["Bir şey yazın.","Jodit Hakkında","Jodit Editor","Ücretsiz, ticari olmayan versiyon","GNU General Public License, Versiyon 2 ve sonrası için","Jodit Kullanım Kılavuzu","kullanım için detaylı bilgiler içerir","Lisans hakkında bilgi için lütfen web sitemize gidin:","Tam versiyon satın al","Copyright © XDSoft.net - Chupurnov Valeriy. Tüm Hakları Saklıdır","Bağlantı","Yeni sekmede aç","Tam ekran editör","Stili temizle","Dolgu ve yazı rengi seç","İleri Al","Geri Al","Kalın","İtalik","Sırasız Liste Ekle","Sıralı Liste Ekle","Ortala","Kenarlara Yasla","Sola Yasla","Sağa Yasla","Yatay Çizgi Ekle","Resim Ekle","Dosya Ekle","Youtube/vimeo Videosu Ekle","Bağlantı Ekle","Font Boyutu","Font Ailesi","Blok Ekle","Normal","Başlık 1","Başlık 2","Başlık 3","Başlık 4","Alıntı","Code","Ekle","Tablo Ekle","Girintiyi Azalt","Girintiyi Arttır","Özel Karakter Seç","Özel Karakter Ekle","Resim Biçimi","Mod Değiştir","MEsafeler","Üst","Sağ","Alt","Sol","CSS Stilleri","CSS Sınıfları","Hizalama","Sağ","Ortalı","Sol","Belirlenmedi","Kaynak","Başlık","Alternatif Yazı","Link","Bağlantıyı yeni sekmede aç","Resim","Dosya","Gelişmiş","Resim özellikleri","İptal","Tamam","Dosya Gezgini","Liste yüklenirken hata oluştu","Klasörler yüklenirken hata oluştur","Emin misiniz?","Dizin yolu giriniz","Dizin oluştur","Typname","Resim bırak","Dosya bırak","veya tıkla","Alternatif yazı","Yükle","Ekle","Arka plan","Yazı","Üst","Orta","Aşağı","Öncesine kolon ekle","Sonrasına kolon ekle","Üstüne satır ekle","Altına satır ekle","Tabloyu sil","Satır sil","Kolon sil","Hücreyi boşalt","Harfler: %d","Kelimeler: %d","Durchschlagen","Alt çizgi","Üst yazı","Alt yazı","Seçilimi kes","Tümünü seç","Durdur","Ara","Şununla değiştir","Değiştir","Yapıştır","Yapıştırılacak içerik seç","Kaynak","Kalın","italik","Fırça","Bağlantı","Geri al","İleri al","Tablo","Resim","Silgi","Paragraf","Font boyutu","Video","Font","Hakkında","Yazdır","Sembol","Alt çizgi","Üstü çizili","Girinti","Çıkıntı","Tam ekran","Küçült","Kopyalama Biçimi","Ayraç","Sırasız liste","Sıralı liste","Kes","Tümünü seç","Kod ekle","Bağlantıyı aç","Bağlantıyı düzenle","Nofollow özelliği","Bağlantıyı kaldır","Güncelle","Düzenlemek için","Yorumu","URL","Düzenle","Yatay hizalama","Filtre","Değişime göre sırala","İsme göre sırala","Boyuta göre sırala","Klasör ekle","Sıfırla","Kaydet","Farklı kaydet","Boyutlandır","Kırp","Genişlik","Yükseklik","En boy oranını koru","Evet","Hayır","Sil","Seç","Seç: %s","Dikey hizalama","Ayır","Birleştir","Kolon ekle","Satır ekle",null,"Sil","Dikey ayır","Yatay ayır","Kenarlık","Kodunuz HTML koduna benziyor. HTML olarak devam etmek ister misiniz?","HTML olarak yapıştır","Sakla","Yazı olarak ekle","Nur Text einfügen","Sadece kendi resimlerinizi düzenleyebilirsiniz. Bu görseli kendi hostunuza indirmek ister misiniz?","Görsel başarıyla hostunuza yüklendi","Palette","Bu dizinde dosya yok.","Macarca","Yeni isim girin","Ön izleme","İndir","Panodan yapıştır ","Tarayıcınız pano doğrudan erişim desteklemiyor.","Kopya seçimi","kopya","Sınır yarıçapı"]},(t,e)=>{t.exports.default=["输入一些内容","关于Jodit","Jodit Editor","Free Non-commercial Version","GNU General Public License, version 2 or later","开发者指南","使用帮助","有关许可证的信息，请访问我们的网站：","购买完整版本","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.","Anchor","在新窗口打开","全屏编辑","清除样式","颜色","重做","撤销","粗体","斜体","符号列表","编号","居中","对齐文本","左对齐","右对齐","分割线","图片","文件","youtube/vimeo 视频","链接","字号","字体","格式块","文本","标题1","标题2","标题3","标题4","引用","代码","插入","表格","减少缩进","增加缩进","选择特殊符号","特殊符号","格式复制","改变模式","外边距（Margins）","top","right","bottom","left","样式","Classes","对齐方式","居右","居中","居左","无","Src","Title","Alternative","Link","在新窗口打开链接","图片","file","高级","图片属性","取消","确定","文件管理","加载list错误","加载folders错误","你确定吗？","输入路径","创建路径","type name","拖动图片到此","拖动文件到此","或点击","Alternative text","上传","浏览","背景色","文字","顶部","中间","底部","在之前插入列","在之后插入列","在之前插入行","在之后插入行","删除表格","删除行","删除列","清除内容","字符数: %d","单词数: %d","删除线","下划线","上标","下标","剪切","全选","Pause","查找","替换为","替换","粘贴","选择内容并粘贴","源码","粗体","斜体","颜色","链接","撤销","重做","表格","图片","橡皮擦","段落","字号","视频","字体","关于","打印","符号","下划线","上出现","增加缩进","减少缩进","全屏","收缩","复制格式","分割线","无序列表","顺序列表","剪切","全选","嵌入代码","打开链接","编辑链接","No follow","Unlink","更新","铅笔","回顧","URL",null,"水平对齐","筛选","修改时间排序","名称排序","大小排序","新建文件夹","重置","保存","保存为","调整大小","Crop","宽","高","保存长宽比","是","不","移除","选择","选择: %s","垂直对齐","拆分","合并","添加列","添加行",null,"删除","垂直拆分","水平拆分","边框","你粘贴的文本是一段html代码，是否保留源格式","html粘贴","保留源格式","把html代码视为普通文本","只保留文本","你只能编辑你自己的图片。Download this image on the host?","图片上传成功","调色板","此目录中沒有文件。","重命名","输入新名称","预览","下载","粘贴从剪贴板","你浏览器不支持直接访问的剪贴板。","复制的选择","复制","边界半径"]},(t,e)=>{t.exports.default=["輸入一些內容","關於Jodit","Jodit Editor","Free Non-commercial Version","GNU General Public License, version 2 or later","開發者指南","使用幫助","有關許可證的信息，請訪問我們的網站：","購買完整版本","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.","Anchor","在新窗口打開","全屏編輯","清除樣式","顏色","重做","撤銷","粗體","斜體","符號列表","編號","居中","對齊文本","左對齊","右對齊","分割線","圖片","文件","youtube/vimeo 影片","鏈接","字號","字體","格式塊","文本","標題1","標題2","標題3","標題4","引用","代碼","插入","表格","減少縮進","增加縮進","選擇特殊符號","特殊符號","格式複製","改變模式","外邊距（Margins）","top","right","bottom","left","樣式","Classes","對齊方式","居右","居中","居左","無","Src","Title","Alternative","Link","在新窗口打開鏈接","圖片","file","高級","圖片屬性","取消","確定","文件管理","加載list錯誤","加載folders錯誤","你確定嗎？","輸入路徑","創建路徑","type name","拖動圖片到此","拖動文件到此","或點擊","Alternative text","上傳","瀏覽","背景色","文字","頂部","中間","底部","在之前插入列","在之後插入列","在之前插入行","在之後插入行","刪除表格","刪除行","刪除列","清除內容","字符數: %d","單詞數: %d","刪除線","下劃線","上標","下標","剪切","全選","Pause","查找","替換為","替換","黏貼","選擇內容並黏貼","源碼","粗體","斜體","顏色","鏈接","撤銷","重做","表格","圖片","橡皮擦","段落","字號","影片","字體","關於","打印","符號","下劃線","上出現","增加縮進","減少縮進","全屏","收縮","複製格式","分割線","無序列表","順序列表","剪切","全選","嵌入代碼","打開鏈接","編輯鏈接","No follow","Unlink","更新","鉛筆","回顧","URL",null,"水平對齊","篩選","修改時間排序","名稱排序","大小排序","新建文件夾","重置","保存","保存為","調整大小","Crop","寬","高","保存長寬比","是","不","移除","選擇","選擇: %s","垂直對齊","拆分","合併","添加列","添加行",null,"刪除","垂直拆分","水平拆分","邊框","你黏貼的文本是一段html代碼，是否保留源格式","html黏貼","保留源格式","把html代碼視為普通文本","只保留文本","妳只能編輯妳自己的圖片。Download this image on the host?","圖片上傳成功","調色板","此目錄中沒有文件。","重命名","輸入新名稱","預覽","下載","วางจากคลิปบอร์ด","ของเบราว์เซอร์ไม่สนับสนุนโดยตรงเข้าไปยังคลิปบอร์ด","คัดลอกส่วนที่เลือก","คัดลอก","เส้นขอบรัศมี"]},(t,e,i)=>{},function(t,e,i){"use strict";i.r(e);var o={};i.r(o),i.d(o,"INVISIBLE_SPACE",()=>l),i.d(o,"INVISIBLE_SPACE_REG_EXP",()=>d),i.d(o,"INVISIBLE_SPACE_REG_EXP_END",()=>c),i.d(o,"INVISIBLE_SPACE_REG_EXP_START",()=>h),i.d(o,"SPACE_REG_EXP",()=>p),i.d(o,"SPACE_REG_EXP_START",()=>u),i.d(o,"SPACE_REG_EXP_END",()=>f),i.d(o,"IS_BLOCK",()=>m),i.d(o,"IS_INLINE",()=>g),i.d(o,"MAY_BE_REMOVED_WITH_KEY",()=>v),i.d(o,"KEY_BACKSPACE",()=>b),i.d(o,"KEY_TAB",()=>y),i.d(o,"KEY_ENTER",()=>_),i.d(o,"KEY_ESC",()=>w),i.d(o,"KEY_LEFT",()=>k),i.d(o,"KEY_UP",()=>x),i.d(o,"KEY_RIGHT",()=>C),i.d(o,"KEY_DOWN",()=>j),i.d(o,"KEY_DELETE",()=>T),i.d(o,"KEY_F",()=>E),i.d(o,"KEY_R",()=>z),i.d(o,"KEY_H",()=>q),i.d(o,"KEY_Y",()=>S),i.d(o,"KEY_V",()=>L),i.d(o,"KEY_Z",()=>N),i.d(o,"KEY_F3",()=>M),i.d(o,"NEARBY",()=>A),i.d(o,"ACCURACY",()=>I),i.d(o,"COMMAND_KEYS",()=>D),i.d(o,"BR",()=>R),i.d(o,"PARAGRAPH",()=>B),i.d(o,"MODE_WYSIWYG",()=>H),i.d(o,"MODE_SOURCE",()=>P),i.d(o,"MODE_SPLIT",()=>O),i.d(o,"IS_IE",()=>F),i.d(o,"URL_LIST",()=>V),i.d(o,"TEXT_PLAIN",()=>W),i.d(o,"TEXT_HTML",()=>$),i.d(o,"MARKER_CLASS",()=>U),i.d(o,"EMULATE_DBLCLICK_TIMEOUT",()=>K),i.d(o,"JODIT_SELECTED_CELL_MARKER",()=>X),i.d(o,"INSERT_AS_HTML",()=>Y),i.d(o,"INSERT_CLEAR_HTML",()=>G),i.d(o,"INSERT_AS_TEXT",()=>J),i.d(o,"INSERT_ONLY_TEXT",()=>Z),i.d(o,"IS_MAC",()=>Q),i.d(o,"KEY_ALIASES",()=>tt);var s={};i.r(s),i.d(s,"extend",()=>mt),i.d(s,"JoditArray",()=>lt),i.d(s,"JoditObject",()=>at),i.d(s,"asArray",()=>et),i.d(s,"inArray",()=>it),i.d(s,"splitArray",()=>ot),i.d(s,"debounce",()=>nt),i.d(s,"setTimeout",()=>st),i.d(s,"isNumeric",()=>bt),i.d(s,"isPlainObject",()=>ft),i.d(s,"isURL",()=>xt),i.d(s,"isWindow",()=>ut),i.d(s,"colorToHex",()=>Tt),i.d(s,"camelCase",()=>Lt),i.d(s,"fromCamelCase",()=>Nt),i.d(s,"appendScript",()=>ee),i.d(s,"browser",()=>ie),i.d(s,"convertMediaURLToVideoEmbed",()=>se),i.d(s,"css",()=>ne),i.d(s,"clearCenterAlign",()=>re),i.d(s,"ctrlKey",()=>ae),i.d(s,"dataBind",()=>le),i.d(s,"defaultLanguage",()=>It),i.d(s,"each",()=>de),i.d(s,"completeUrl",()=>te),i.d(s,"humanSizeToBytes",()=>ce),i.d(s,"parseQuery",()=>oe),i.d(s,"buildQuery",()=>he),i.d(s,"inView",()=>pe),i.d(s,"scrollIntoView",()=>ue),i.d(s,"$$",()=>zt),i.d(s,"getXPathByElement",()=>qt),i.d(s,"hasOwn",()=>ht),i.d(s,"type",()=>pt),i.d(s,"val",()=>fe),i.d(s,"throttle",()=>rt),i.d(s,"isHTML",()=>gt),i.d(s,"isHTMLFromWord",()=>vt),i.d(s,"isInt",()=>yt),i.d(s,"isLicense",()=>_t),i.d(s,"isString",()=>wt),i.d(s,"isFunction",()=>kt),i.d(s,"hasBrowserColorPicker",()=>Ct),i.d(s,"hexToRgb",()=>jt),i.d(s,"applyStyles",()=>St),i.d(s,"cleanFromWord",()=>Bt),i.d(s,"clear",()=>Ht),i.d(s,"htmlspecialchars",()=>Pt),i.d(s,"stripTags",()=>Ot),i.d(s,"normalizeKeyAliases",()=>Ft),i.d(s,"normalizeLicense",()=>Vt),i.d(s,"normalizeNode",()=>Wt),i.d(s,"normalizePath",()=>$t),i.d(s,"normalizeRelativePath",()=>Ut),i.d(s,"normalizeSize",()=>Kt),i.d(s,"normalizeURL",()=>Xt),i.d(s,"normilizeCSSValue",()=>Yt),i.d(s,"normalizeColor",()=>Gt),i.d(s,"getContentWidth",()=>Jt),i.d(s,"innerWidth",()=>Zt),i.d(s,"offset",()=>Qt),i.d(s,"trim",()=>Mt),i.d(s,"ucfirst",()=>At),i.d(s,"sprintf",()=>Dt),i.d(s,"i18n",()=>Rt);var n={};i.r(n),i.d(n,"Ajax",()=>Di),i.d(n,"EventsNative",()=>Be),i.d(n,"Component",()=>Ce),i.d(n,"ContextMenu",()=>Ri),i.d(n,"Alert",()=>Hi),i.d(n,"Confirm",()=>Oi),i.d(n,"Promt",()=>Pi),i.d(n,"Dialog",()=>Bi),i.d(n,"Dom",()=>me),i.d(n,"Plugin",()=>Fi),i.d(n,"Create",()=>He),i.d(n,"FileBrowser",()=>io),i.d(n,"Helpers",()=>s),i.d(n,"ImageEditor",()=>no),i.d(n,"Observer",()=>ze),i.d(n,"Select",()=>qe),i.d(n,"Storage",()=>Ie),i.d(n,"Snapshot",()=>je),i.d(n,"Table",()=>ro),i.d(n,"ToolbarIcon",()=>ge),i.d(n,"JoditToolbarCollection",()=>Ge),i.d(n,"ToolbarCollection",()=>Ye),i.d(n,"ToolbarButton",()=>Ke),i.d(n,"Stack",()=>Te),i.d(n,"Widget",()=>ve),i.d(n,"Uploader",()=>ao);var r={};i.r(r),i.d(r,"addNewLine",()=>lo),i.d(r,"autofocus",()=>co),i.d(r,"backspace",()=>ho),i.d(r,"bold",()=>po),i.d(r,"cleanHtml",()=>uo),i.d(r,"clipboard",()=>bo),i.d(r,"paste",()=>go),i.d(r,"pasteStorage",()=>yo),i.d(r,"color",()=>Co),i.d(r,"DragAndDrop",()=>jo),i.d(r,"DragAndDropElement",()=>To),i.d(r,"enter",()=>zo),i.d(r,"errorMessages",()=>qo),i.d(r,"font",()=>So),i.d(r,"formatBlock",()=>Lo),i.d(r,"fullsize",()=>No),i.d(r,"hotkeys",()=>Mo),i.d(r,"iframe",()=>Ao),i.d(r,"imageProcessor",()=>Do),i.d(r,"imageProperties",()=>Ho),i.d(r,"indent",()=>Po),i.d(r,"inlinePopup",()=>Vo),i.d(r,"justify",()=>Wo),i.d(r,"limit",()=>$o),i.d(r,"link",()=>Uo),i.d(r,"media",()=>Ko),i.d(r,"mobile",()=>Xo),i.d(r,"orderedlist",()=>Yo),i.d(r,"placeholder",()=>Go),i.d(r,"redoundo",()=>Jo),i.d(r,"resizer",()=>Zo),i.d(r,"search",()=>Qo),i.d(r,"size",()=>ts),i.d(r,"source",()=>es),i.d(r,"stat",()=>is),i.d(r,"sticky",()=>os),i.d(r,"symbols",()=>(class{constructor(t){this.countInRow=17,t.events.on("generateSpecialCharactersTable.symbols",()=>{const e=t.create.fromHTML('<div class="jodit_symbols-container"><div class="jodit_symbols-container_table"><table><tbody></tbody></table></div><div class="jodit_symbols-container_preview"><div class="jodit_symbols-preview"></div></div></div>'),i=e.querySelector(".jodit_symbols-preview"),o=e.querySelector("table").tBodies[0],s=[];for(let e=0;t.options.specialCharacters.length>e;){const i=t.create.element("tr");for(let o=0;this.countInRow>o&&t.options.specialCharacters.length>e;o+=1,e+=1){const n=t.create.element("td"),r=t.create.fromHTML(`<a\n                                    data-index="${e}"\n                                    data-index-j="${o}"\n                                    href="javascript:void(0)"\n                                    role="option"\n                                    tabindex="-1"\n                                >${t.options.specialCharacters[e]}</a>`);s.push(r),n.appendChild(r),i.appendChild(n)}o.appendChild(i)}const n=this;return t.events.on(s,"focus",(function(){i.innerHTML=this.innerHTML})).on(s,"mousedown",(function(e){this&&"A"===this.nodeName&&(t.selection.focus(),t.selection.insertHTML(this.innerHTML),t.events.fire(this,"close_dialog"),e&&e.preventDefault(),e&&e.stopImmediatePropagation())})).on(s,"mouseenter",(function(){this&&"A"===this.nodeName&&this.focus()})).on(s,"keydown",e=>{const i=e.target;if(i&&"A"===i.nodeName){const o=parseInt(i.getAttribute("data-index")||"0",10),r=parseInt(i.getAttribute("data-index-j")||"0",10);let a;switch(e.which){case x:case j:a=e.which===x?o-n.countInRow:o+n.countInRow,void 0===s[a]&&(a=e.which===x?Math.floor(s.length/n.countInRow)*n.countInRow+r:r,a>s.length-1&&(a-=n.countInRow)),s[a]&&s[a].focus();break;case C:case k:a=e.which===k?o-1:o+1,void 0===s[a]&&(a=e.which===k?s.length-1:0),s[a]&&s[a].focus();break;case _:t.events.fire(i,"mousedown"),e.stopImmediatePropagation(),e.preventDefault()}}}),e})}})),i.d(r,"tableKeyboardNavigation",()=>ss),i.d(r,"table",()=>ns),i.d(r,"xpath",()=>rs);var a={};i.r(a),i.d(a,"about",()=>as),i.d(a,"addcolumn",()=>ls),i.d(a,"addrow",()=>ds),i.d(a,"angle_down",()=>cs),i.d(a,"angle_left",()=>hs),i.d(a,"angle_right",()=>ps),i.d(a,"angle_up",()=>us),i.d(a,"arrows_alt",()=>fs),i.d(a,"arrows_h",()=>ms),i.d(a,"attachment",()=>gs),i.d(a,"bin",()=>vs),i.d(a,"bold",()=>bs),i.d(a,"brush",()=>ys),i.d(a,"cancel",()=>_s),i.d(a,"center",()=>ws),i.d(a,"chain_broken",()=>ks),i.d(a,"check",()=>xs),i.d(a,"check_square",()=>Cs),i.d(a,"copyformat",()=>js),i.d(a,"copy",()=>Es),i.d(a,"crop",()=>Ts),i.d(a,"cut",()=>zs),i.d(a,"dedent",()=>qs),i.d(a,"dots",()=>Ss),i.d(a,"dropdown_arrow",()=>Ls),i.d(a,"enter",()=>Ns),i.d(a,"eraser",()=>Ms),i.d(a,"eye",()=>As),i.d(a,"file",()=>Is),i.d(a,"folder",()=>Ds),i.d(a,"font",()=>Rs),i.d(a,"fontsize",()=>Bs),i.d(a,"fullsize",()=>Hs),i.d(a,"hr",()=>Ps),i.d(a,"image",()=>Os),i.d(a,"indent",()=>Fs),i.d(a,"info_circle",()=>Vs),i.d(a,"italic",()=>Ws),i.d(a,"justify",()=>$s),i.d(a,"left",()=>Us),i.d(a,"link",()=>Ks),i.d(a,"lock",()=>Xs),i.d(a,"menu",()=>Ys),i.d(a,"merge",()=>Gs),i.d(a,"ol",()=>Js),i.d(a,"omega",()=>Zs),i.d(a,"outdent",()=>Qs),i.d(a,"palette",()=>tn),i.d(a,"paragraph",()=>en),i.d(a,"paste",()=>on),i.d(a,"pencil",()=>sn),i.d(a,"plus",()=>nn),i.d(a,"print",()=>rn),i.d(a,"redo",()=>an),i.d(a,"resize",()=>ln),i.d(a,"resizer",()=>dn),i.d(a,"right",()=>cn),i.d(a,"save",()=>hn),i.d(a,"select_all",()=>pn),i.d(a,"shrink",()=>un),i.d(a,"source",()=>fn),i.d(a,"splitg",()=>mn),i.d(a,"splitv",()=>gn),i.d(a,"strikethrough",()=>vn),i.d(a,"subscript",()=>bn),i.d(a,"superscript",()=>yn),i.d(a,"table",()=>_n),i.d(a,"th",()=>wn),i.d(a,"th_list",()=>kn),i.d(a,"ul",()=>xn),i.d(a,"underline",()=>Cn),i.d(a,"undo",()=>jn),i.d(a,"unlink",()=>Tn),i.d(a,"unlock",()=>En),i.d(a,"update",()=>zn),i.d(a,"upload",()=>qn),i.d(a,"valign",()=>Sn),i.d(a,"video",()=>Ln),i(94);const l="\ufeff",d=/[\uFEFF]/g,c=/[\uFEFF]+$/g,h=/^[\uFEFF]+/g,p=/[\s\n\t\r\uFEFF\u200b]+/g,u=/^[\s\n\t\r\uFEFF\u200b]+/g,f=/[\s\n\t\r\uFEFF\u200b]+$/g,m=/^(PRE|DIV|P|LI|H[1-6]|BLOCKQUOTE|TD|TH|TABLE|BODY|HTML|FIGCAPTION|FIGURE|DT|DD)$/i,g=/^(STRONG|SPAN|I|EM|B|SUP|SUB)$/,v=/^(IMG|BR|IFRAME|SCRIPT|INPUT|TEXTAREA|HR|JODIT|JODIT-MEDIA)$/,b=8,y=9,_=13,w=27,k=37,x=38,C=39,j=40,T=46,E=70,z=82,q=72,S=89,L=86,N=90,M=114,A=5,I=10,D=[b,T,x,j,C,k,_,w,M,y],R="br",B="p",H=1,P=2,O=3,F="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),V=F?"url":"text/uri-list",W=F?"text":"text/plain",$=F?"text":"text/html",U="jodit_selection_marker",K=300,X="data-jodit-selected-cell",Y="insert_as_html",G="insert_clear_html",J="insert_as_text",Z="insert_only_text",Q="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),tt={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Q?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},et=t=>Array.isArray(t)?t:[t],it=(t,e)=>-1!==e.indexOf(t),ot=t=>"string"==typeof t?t.split(/[,\s]+/):t,st=(t,e,i,o,s)=>e?window.setTimeout.call(window,t,e,i,o,s):(t.call(null,i,o,s),0),nt=function(t,e,i,o){3===arguments.length&&"boolean"!=typeof i&&(o=i,i=!1);let s=0;return function(){const n=arguments,r=o||this;(i&&!s||!e)&&t.apply(r,n),e&&(clearTimeout(s),s=st(()=>{i||t.apply(r,n),s=0},e))}},rt=(t,e,i)=>{let o,s,n,r=null;return function(){o=arguments,s=!0;const a=i||this;e?r||(n=()=>{s?(t.apply(a,o),s=!1,r=st(n,e)):r=null},n()):t.apply(a,o)}};class at{constructor(t){mt(!0,this,t)}}class lt{constructor(t){this.length=0,mt(!0,this,t),this.length=t.length;const e=Array.prototype;["map","forEach","reduce","push","pop","shift","unshift","slice","splice"].forEach(t=>{this[t]=e[t]})}toString(){const t=[];for(let e=0;this.length>e;e+=1)t[e]=this[e];return""+t}}const dt={},ct=dt.toString,ht=dt.hasOwnProperty;["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error","Symbol","HTMLDocument","Window","HTMLElement","HTMLBodyElement","Text","DocumentFragment","DOMStringList","HTMLCollection"].forEach(t=>{dt["[object "+t+"]"]=t.toLowerCase()});const pt=t=>null===t?"null":"object"==typeof t||"function"==typeof t?dt[ct.call(t)]||"object":typeof t,ut=t=>null!==t&&t===t.window,ft=t=>!("object"!=typeof t||t.nodeType||ut(t)||t.constructor&&!ht.call(t.constructor.prototype,"isPrototypeOf"));function mt(...t){const e=t.length;let i,o,s,n,r,a,l,d,c=t[0]||{},h=1,p=!1;for("boolean"==typeof c&&(p=c,c=t[h]||{},h+=1),"object"!=typeof c&&"function"===pt(c)&&(c={}),h===e&&(c=this,h+=1);e>h;h+=1)if(i=t[h],null!=i)for(d=Object.keys(i),l=0;d.length>l;l+=1)o=d[l],s=c[o],n=i[o],c!==n&&(p&&n&&(ft(n)&&!(n instanceof at)||Array.isArray(n)&&!(n instanceof lt))?(r=Array.isArray(n),r?(r=!1,a=s&&Array.isArray(s)?s:[]):a=s&&ft(s)?s:{},c[o]=mt(p,a,n)):void 0!==n&&(c[o]=n));return c}const gt=t=>/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t),vt=t=>-1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/),bt=t=>{if("string"==typeof t){if(!t.match(/^([+\-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return!isNaN(t)&&isFinite(t)},yt=t=>("string"==typeof t&&bt(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)),_t=t=>"string"==typeof t&&32===t.length&&/^[a-z0-9]+$/.test(t),wt=t=>"string"==typeof t,kt=t=>"function"==typeof t,xt=t=>/^(https?:\/\/)((([a-z\d]([a-z\d-]*[a-z\d])*)\.?)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(\#[-a-z\d_]*)?$/i.test(t),Ct=()=>{let t=!0;try{const e=document.createElement("input");e.type="color",t="color"===e.type&&"number"!=typeof e.selectionStart}catch(e){t=!1}return t},jt=t=>{t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(t,e,i,o)=>e+e+i+i+o+o);const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null},Tt=t=>{if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;const e=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(t);let i,o,s,n,r;if(!e)return"#000000";for(o=parseInt(e[2],10),s=parseInt(e[3],10),n=parseInt(e[4],10),r=n|s<<8|o<<16,i=r.toString(16).toUpperCase();6>i.length;)i="0"+i;return e[1]+"#"+i};let Et=1;const zt=(t,e)=>{let i;if(!/:scope/.test(t)||!F||e&&e.nodeType===Node.DOCUMENT_NODE)i=e.querySelectorAll(t);else{const o=e.id,s=o||"_selector_id_"+(""+Math.random()).slice(2)+Et++;t=t.replace(/:scope/g,"#"+s),!o&&e.setAttribute("id",s),i=e.parentNode.querySelectorAll(t),o||e.removeAttribute("id")}return[].slice.call(i)},qt=(t,e)=>{if(!t||1!==t.nodeType)return"";if(!t.parentNode||e===t)return"";if(t.id)return"//*[@id='"+t.id+"']";const i=[].filter.call(t.parentNode.childNodes,e=>e.nodeName===t.nodeName);return qt(t.parentNode,e)+"/"+t.nodeName.toLowerCase()+(i.length>1?"["+(Array.from(i).indexOf(t)+1)+"]":"")},St=t=>{if(-1===t.indexOf("<html "))return t;t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7);const e=document.createElement("iframe");e.style.display="none",document.body.appendChild(e);let i="",o=[],s=[];try{const n=e.contentDocument||(e.contentWindow?e.contentWindow.document:null);if(n){n.open(),n.write(t),n.close(),n.styleSheets.length&&(s=n.styleSheets[n.styleSheets.length-1].cssRules);for(let t=0;s.length>t;t+=1)""!==s[t].selectorText&&(o=zt(s[t].selectorText,n.body),o.forEach(e=>{e.style.cssText=s[t].style.cssText.replace(/mso-[a-z\-]+:[\s]*[^;]+;/g,"").replace(/border[a-z\-]*:[\s]*[^;]+;/g,"")+e.style.cssText}));i=n.firstChild?n.body.innerHTML:""}}catch(t){}finally{me.safeRemove(e)}return i&&(t=i),t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")},Lt=t=>t.replace(/([-_])(.)/g,(t,e,i)=>i.toUpperCase()),Nt=t=>t.replace(/([A-Z]+)/g,(t,e)=>"-"+e.toLowerCase()),Mt=t=>t.replace(u,"").replace(f,""),At=t=>t.length?t[0].toUpperCase()+t.substr(1):"",It=(t,e="en")=>"auto"!==t&&"string"==typeof t?t:document.documentElement&&document.documentElement.lang?document.documentElement.lang:navigator.language?navigator.language.substr(0,2):e,Dt=(t,e)=>{if(!e||!e.length)return t;const i=/%([sd])/g;let o=i.exec(t),s=t,n=0;for(;o&&void 0!==e[n];)s=s.replace(o[0],""+e[n]),n+=1,o=i.exec(t);return s},Rt=(t,e,i,o=!0)=>{var s,n;const r=!(void 0===i||!i.debugLanguage);let a;const l=t=>e&&e.length?Dt(t,e):t,d=It(we.defaultOptions.language,we.defaultOptions.language),c=It(null===(s=i)||void 0===s?void 0:s.language,d),h=e=>{if(!e)return;if(wt(e[t]))return l(e[t]);const i=t.toLowerCase();if(wt(e[i]))return l(e[i]);const o=At(t);return wt(e[o])?l(e[o]):void 0};a=void 0!==Qe.lang[c]?Qe.lang[c]:void 0!==Qe.lang[d]?Qe.lang[d]:Qe.lang.en;const p=null===(n=i)||void 0===n?void 0:n.i18n;if(p&&p[c]){const t=h(p[c]);if(t)return t}const u=h(a);if(u)return u;if(Qe.lang.en&&"string"==typeof Qe.lang.en[t]&&Qe.lang.en[t])return l(Qe.lang.en[t]);if(r)return"{"+t+"}";if(!o&&"en"!==c)throw new TypeError(`i18n need "${t}" in "${c}"`);return l(t)},Bt=t=>{-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let e="";try{const i=document.createElement("div");i.innerHTML=t;const o=[];i.firstChild&&me.all(i,t=>{if(t)switch(t.nodeType){case Node.ELEMENT_NODE:switch(t.nodeName){case"STYLE":case"LINK":case"META":o.push(t);break;case"W:SDT":case"W:SDTPR":case"FONT":me.unwrap(t);break;default:Array.from(t.attributes).forEach(e=>{-1===["src","href","rel","content"].indexOf(e.name.toLowerCase())&&t.removeAttribute(e.name)})}break;case Node.TEXT_NODE:break;default:o.push(t)}}),o.forEach(me.safeRemove),e=i.innerHTML}catch(t){}return e&&(t=e),(t=t.split(/(\n)/).filter(Mt).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")},Ht=(t,e=!1)=>(t=Mt(t).replace(d,"").replace(/[\s]*class=""/g,""),e&&(t=t.replace(/<p[^>]*>[\s\n\r\t]*(&nbsp;|<br>|<br\/>)?[\s\n\r\t]*<\/p>[\n\r]*/g,"")),t),Pt=t=>{const e=document.createElement("div");return e.textContent=t,e.innerHTML},Ot=t=>{const e=document.createElement("div");return e.innerHTML=t,e.textContent||""},Ft=t=>{const e={};return t.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(t=>Mt(t.toLowerCase())).map(t=>tt[t]||t).sort().filter(t=>!e[t]&&""!==t&&(e[t]=!0)).join("+")},Vt=(t,e=8)=>{const i=[];for(;t.length;)i.push(t.substr(0,e)),t=t.substr(e);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")},Wt=t=>{if(t){if(t.nodeType===Node.TEXT_NODE&&null!==t.nodeValue&&t.parentNode)for(;t.nextSibling&&t.nextSibling.nodeType===Node.TEXT_NODE;)null!==t.nextSibling.nodeValue&&(t.nodeValue+=t.nextSibling.nodeValue),t.nodeValue=t.nodeValue.replace(d,""),me.safeRemove(t.nextSibling);else Wt(t.firstChild);Wt(t.nextSibling)}},$t=(...t)=>t.filter(t=>Mt(t).length).map((e,i)=>(e=e.replace(/([^:])[\\\/]+/g,"$1/"),i&&(e=e.replace(/^\//,"")),i!==t.length-1&&(e=e.replace(/\/$/,"")),e)).join("/"),Ut=t=>t.split("/").reduce((t,e)=>{switch(e){case"":case".":break;case"..":t.pop();break;default:t.push(e)}return t},[]).join("/")+(t.endsWith("/")?"/":""),Kt=t=>/^[0-9]+$/.test(""+t)?t+"px":""+t,Xt=(...t)=>t.filter(t=>t.length).map(t=>t.replace(/\/$/,"")).join("/").replace(/([^:])[\\\/]+/g,"$1/"),Yt=(t,e)=>{switch(t.toLowerCase()){case"font-weight":switch((""+e).toLowerCase()){case"bold":return 700;case"normal":return 400;case"heavy":return 900}return bt(e)?+e:e}return e},Gt=t=>{const e=["#"];let i=Tt(t);if(!i)return!1;if(i=Mt(i.toUpperCase()),i=i.substr(1),3===i.length){for(let t=0;3>t;t+=1)e.push(i[t]),e.push(i[t]);return e.join("")}return i.length>6&&(i=i.substr(0,6)),"#"+i},Jt=(t,e)=>{const i=t=>parseInt(t,10),o=e.getComputedStyle(t);return t.offsetWidth-i(o.getPropertyValue("padding-left")||"0")-i(o.getPropertyValue("padding-right")||"0")},Zt=(t,e)=>{const i=e.getComputedStyle(t);let o=t.clientWidth;return o-=parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"),o},Qt=(t,e,i,o=!1)=>{const s=t.getBoundingClientRect(),n=i.body,r=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},a=i.defaultView||i.parentWindow,l=a.pageYOffset||r.scrollTop||n.scrollTop,d=a.pageXOffset||r.scrollLeft||n.scrollLeft,c=r.clientTop||n.clientTop||0,h=r.clientLeft||n.clientLeft||0;let p,u;if(!o&&e&&e.options&&e.options.iframe&&e.iframe){const{top:t,left:i}=Qt(e.iframe,e,e.ownerDocument,!0);p=s.top+t,u=s.left+i}else p=s.top+l-c,u=s.left+d-h;return{top:Math.round(p),left:Math.round(u),width:s.width,height:s.height}},te=t=>("file:"===window.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t),ee=(t,e,i="",o)=>{const s=o.createElement("script");return s.className=i,s.type="text/javascript",void 0!==e&&s.addEventListener("load",e),s.src=te(t),o.body.appendChild(s),{callback:e,element:s}},ie=t=>{const e=navigator.userAgent.toLowerCase(),i=/(firefox)[\s\/]([\w.]+)/.exec(e)||/(chrome)[\s\/]([\w.]+)/.exec(e)||/(webkit)[\s\/]([\w.]+)/.exec(e)||/(opera)(?:.*version)[\s\/]([\w.]+)/.exec(e)||/(msie)[\s]([\w.]+)/.exec(e)||/(trident)\/([\w.]+)/.exec(e)||0>e.indexOf("compatible")||[];return"version"===t?i[2]:"webkit"===t?"chrome"===i[1]||"webkit"===i[1]:"ff"===t?"firefox"===i[1]:"msie"===t?"trident"===i[1]||"msie"===i[1]:i[1]===t},oe=t=>{const e={},i=t.substr(1).split("&");for(let t=0;i.length>t;t+=1){const o=i[t].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return e},se=(t,e=400,i=345)=>{if(!xt(t))return t;const o=document.createElement("a"),s=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;o.href=t,e||(e=400),i||(i=345);const n=o.protocol||"";switch(o.hostname){case"www.vimeo.com":case"vimeo.com":return s.test(t)?t.replace(s,'<iframe width="'+e+'" height="'+i+'" src="'+n+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):t;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":const r=o.search?oe(o.search):{v:o.pathname.substr(1)};return r.v?'<iframe width="'+e+'" height="'+i+'" src="'+n+"//www.youtube.com/embed/"+r.v+'" frameborder="0" allowfullscreen></iframe>':t}return t},ne=(t,e,i,o=!1)=>{const s=/^left|top|bottom|right|width|min|max|height|margin|padding|font-size/i;if(ft(e)||void 0!==i){const o=(t,e,i)=>{null!=i&&s.test(e)&&bt(""+i)&&(i=parseInt(""+i,10)+"px"),void 0!==i&&ne(t,e,void 0,!0)!==Yt(e,i)&&(t.style[e]=i)};if(ft(e)){const i=Object.keys(e);for(let s=0;i.length>s;s+=1)o(t,Lt(i[s]),e[i[s]])}else o(t,Lt(e),i);return""}const n=Nt(e),r=t.ownerDocument||document,a=!!r&&(r.defaultView||r.parentWindow),l=t.style[e];let d="";return void 0!==l&&""!==l?d=l:a&&!o&&(d=a.getComputedStyle(t).getPropertyValue(n)),s.test(e)&&/^[\-+]?[0-9.]+px$/.test(""+d)&&(d=parseInt(""+d,10)),Yt(e,d)},re=t=>{"block"===ne(t,"display")&&ne(t,"display",""),"auto"===t.style.marginLeft&&"auto"===t.style.marginRight&&(t.style.marginLeft="",t.style.marginRight="")},ae=t=>{if("undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(t.metaKey&&!t.altKey)return!0}else if(t.ctrlKey&&!t.altKey)return!0;return!1},le=(t,e,i)=>{let o=t.JoditDataBindKey;if(o||(o={},Object.defineProperty(t,"JoditDataBindKey",{enumerable:!1,configurable:!0,value:o})),void 0===i)return o[e];o[e]=i};function de(t,e){let i,o,s;if(Array.isArray(t)){for(i=t.length,s=0;i>s;s+=1)if(!1===e.call(t[s],s,t[s]))return!1}else for(o=Object.keys(t),s=0;o.length>s;s+=1)if(!1===e.call(t[o[s]],o[s],t[o[s]]))return!1;return!0}const ce=t=>{if(/^[0-9.]+$/.test(""+t))return parseFloat(t);const e=t.substr(-2,2).toUpperCase(),i=["KB","MB","GB","TB"],o=parseFloat(t.substr(0,t.length-2));return-1!==i.indexOf(e)?o*Math.pow(1024,i.indexOf(e)+1):parseInt(t,10)},he=(t,e)=>{const i=[],o=encodeURIComponent;for(const s in t)if(t.hasOwnProperty(s)){const n=e?e+"["+s+"]":s,r=t[s];i.push(ft(r)?he(r,n):o(n)+"="+o(r))}return i.join("&")},pe=(t,e,i)=>{let o=t.getBoundingClientRect(),s=t;const n=o.top,r=o.height;do{if(s&&s.parentNode){if(s=s.parentNode,o=s.getBoundingClientRect(),n>o.bottom)return!1;if(o.top>=n+r)return!1}}while(s&&s!==e&&s.parentNode);return(i.documentElement&&i.documentElement.clientHeight||0)>=n},ue=(t,e,i)=>{pe(t,e,i)||(e.clientHeight!==e.scrollHeight&&(e.scrollTop=t.offsetTop),pe(t,e,i)||t.scrollIntoView())},fe=(t,e,i)=>{const o=t.querySelector(e);return o?(i&&(o.value=i),o.value):""};class me{static detach(t){for(;t.firstChild;)t.removeChild(t.firstChild)}static unwrap(t){const e=t.parentNode,i=t;if(e){for(;i.firstChild;)e.insertBefore(i.firstChild,i);me.safeRemove(i)}}static each(t,e){let i=t.firstChild;if(i)for(;i;){if(!1===e.call(i,i)||!me.each(i,e))return!1;i=me.next(i,t=>!!t,t)}return!0}static replace(t,e,i=!1,o=!1,s){const n="string"==typeof e?s.createElement(e):e;if(!o)for(;t.firstChild;)n.appendChild(t.firstChild);return i&&Array.from(t.attributes).forEach(t=>{n.setAttribute(t.name,t.value)}),t.parentNode&&t.parentNode.replaceChild(n,t),n}static isEmptyTextNode(t){return t&&t.nodeType===Node.TEXT_NODE&&(!t.nodeValue||0===t.nodeValue.replace(d,"").length)}static isEmpty(t,e=/^(img|svg|canvas|input|textarea|form)$/){return!t||(t.nodeType===Node.TEXT_NODE?null===t.nodeValue||0===Mt(t.nodeValue).length:!t.nodeName.toLowerCase().match(e)&&me.each(t,t=>{if(t&&t.nodeType===Node.TEXT_NODE&&null!==t.nodeValue&&0!==Mt(t.nodeValue).length||t&&t.nodeType===Node.ELEMENT_NODE&&e.test(t.nodeName.toLowerCase()))return!1}))}static isNode(t,e){return!("object"!=typeof e||!e||"function"!=typeof e.Node&&"object"!=typeof e.Node)&&t instanceof e.Node}static isCell(t,e){return me.isNode(t,e)&&/^(td|th)$/i.test(t.nodeName)}static isImage(t,e){return me.isNode(t,e)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t,e){return t&&"object"==typeof t&&me.isNode(t,e)&&m.test(t.nodeName)}static isInlineBlock(t){return!!t&&t.nodeType===Node.ELEMENT_NODE&&-1!==["inline","inline-block"].indexOf(""+ne(t,"display"))}static canSplitBlock(t,e){return t&&t instanceof e.HTMLElement&&this.isBlock(t,e)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static prev(t,e,i,o=!0){return me.find(t,e,i,!1,"previousSibling",!!o&&"lastChild")}static next(t,e,i,o=!0){return me.find(t,e,i,void 0,void 0,o?"firstChild":"")}static prevWithClass(t,e){return this.prev(t,t=>t&&t.nodeType===Node.ELEMENT_NODE&&t.classList.contains(e),t.parentNode)}static nextWithClass(t,e){return this.next(t,t=>t&&t.nodeType===Node.ELEMENT_NODE&&t.classList.contains(e),t.parentNode)}static find(t,e,i,o=!1,s="nextSibling",n="firstChild"){if(o&&e(t))return t;let r,a=t;do{if(r=a[s],e(r))return r||!1;if(n&&r&&r[n]){const t=me.find(r[n],e,r,!0,s,n);if(t)return t}r||(r=a.parentNode),a=r}while(a&&a!==i);return!1}static findWithCurrent(t,e,i,o="nextSibling",s="firstChild"){let n=t;do{if(e(n))return n||!1;if(s&&n&&n[s]){const t=me.findWithCurrent(n[s],e,n,o,s);if(t)return t}for(;n&&!n[o]&&n!==i;)n=n.parentNode;n&&n[o]&&n!==i&&(n=n[o])}while(n&&n!==i);return!1}static up(t,e,i){let o=t;if(!t)return!1;do{if(e(o))return o;if(o===i||!o.parentNode)break;o=o.parentNode}while(o&&o!==i);return!1}static closest(t,e,i){let o;return o="function"==typeof e?e:e instanceof RegExp?t=>t&&e.test(t.nodeName):t=>t&&RegExp("^("+e+")$","i").test(t.nodeName),me.up(t,o,i)}static after(t,e){const i=t.parentNode;i&&(i.lastChild===t?i.appendChild(e):i.insertBefore(e,t.nextSibling))}static moveContent(t,e,i=!1){const o=(t.ownerDocument||document).createDocumentFragment();[].slice.call(t.childNodes).forEach(t=>{t.nodeType===Node.TEXT_NODE&&t.nodeValue===l||o.appendChild(t)}),i&&e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o)}static all(t,e,i=!1){let o=t.childNodes?Array.prototype.slice.call(t.childNodes):[];if(e(t))return t;i&&(o=o.reverse()),o.forEach(t=>{me.all(t,e,i)})}static safeRemove(t){t&&t.parentNode&&t.parentNode.removeChild(t)}}me.wrapInline=(t,e,i)=>{let o,s=t,n=t;const r=i.selection.save();let a=!1;do{a=!1,o=s.previousSibling,o&&!me.isBlock(o,i.editorWindow)&&(a=!0,s=o)}while(a);do{a=!1,o=n.nextSibling,o&&!me.isBlock(o,i.editorWindow)&&(a=!0,n=o)}while(a);const l="string"==typeof e?i.create.inside.element(e):e;s.parentNode&&s.parentNode.insertBefore(l,s);let d=s;for(;d&&(d=s.nextSibling,l.appendChild(s),s!==n&&d);)s=d;return i.selection.restore(r),l},me.wrap=(t,e,i)=>{const o=i.selection.save(),s="string"==typeof e?i.editorDocument.createElement(e):e;return t.parentNode?(t.parentNode.insertBefore(s,t),s.appendChild(t),i.selection.restore(o),s):null},me.findInline=(t,e,i)=>{let o=t,s=null;do{if(!o)break;if(s=e?o.previousSibling:o.nextSibling,s||!o.parentNode||o.parentNode===i||!me.isInlineBlock(o.parentNode))break;o=o.parentNode}while(!s);for(;s&&me.isInlineBlock(s)&&(e?s.lastChild:s.firstChild);)s=e?s.lastChild:s.firstChild;return s},me.contains=(t,e)=>{for(;e.parentNode;){if(e.parentNode===t)return!0;e=e.parentNode}return!1},me.isOrContains=(t,e,i=!1)=>e&&t&&(t===e&&!i||me.contains(t,e));class ge{static exists(t){return void 0!==ge.icons[t]}static getIcon(t,e="<span></span>"){return ge.icons[t]||ge.icons[t.replace(/-/g,"_")]||ge.icons[t.toLowerCase()]||e}}var ve,be;ge.icons={},(be=ve||(ve={})).ColorPickerWidget=(t,e,i)=>{const o=Gt(i),s=t.create.div("jodit_colorpicker"),n=t.options.textIcons?"":ge.getIcon("eye"),r=t.options.textIcons?`<span>${t.i18n("eraser")}</span>`:ge.getIcon("eraser"),a=t.options.textIcons?`<span>${t.i18n("palette")}</span>`:ge.getIcon("palette"),l=(t,e)=>{t.innerHTML=ge.getIcon("eye"),t.classList.add("active");const i=jt(e);i&&(t.firstChild.style.fill="rgb("+(255-i.r)+","+(255-i.g)+","+(255-i.b)+")")},d=t=>{const e=[];return ft(t)?Object.keys(t).forEach(i=>{e.push('<div class="jodit_colorpicker_group jodit_colorpicker_group-'+i+'">'),e.push(d(t[i])),e.push("</div>")}):Array.isArray(t)&&t.forEach(t=>{e.push("<a "+(o===t?' class="active" ':"")+' title="'+t+'" style="background-color:'+t+'" data-color="'+t+'" href="javascript:void(0)">'+(o===t?n:"")+"</a>")}),e.join("")};return s.appendChild(t.create.fromHTML("<div>"+d(t.options.colors)+"</div>")),s.appendChild(t.create.fromHTML("<a "+(t.options.textIcons?'class="jodit_text_icon"':"")+' data-color="" href="javascript:void(0)">'+r+"</a>")),t.options.showBrowserColorPicker&&Ct()&&(s.appendChild(t.create.fromHTML("<span><em "+(t.options.textIcons?'class="jodit_text_icon"':"")+">"+a+'</em><input type="color" value=""/></span>')),t.events.on(s,"change",t=>{t.stopPropagation();let i=t.target;if(!i||!i.tagName||"INPUT"!==i.tagName.toUpperCase())return;const o=i.value||"";o&&l(i,o),e&&"function"==typeof e&&e(o),t.preventDefault()})),t.events.on(s,"mousedown touchend",i=>{i.stopPropagation();let o=i.target;if(o&&o.tagName&&"SVG"!==o.tagName.toUpperCase()&&"PATH"!==o.tagName.toUpperCase()||!o.parentNode||(o=me.closest(o.parentNode,"A",t.editor)),"A"!==o.tagName.toUpperCase())return;const n=s.querySelector("a.active");n&&(n.classList.remove("active"),n.innerHTML="");const r=o.getAttribute("data-color")||"";r&&l(o,r),e&&"function"==typeof e&&e(r),i.preventDefault()}),s},be.TabsWidget=(t,e,i)=>{const o=t.create.div("jodit_tabs"),s=t.create.div("jodit_tabs_wrapper"),n=t.create.div("jodit_tabs_buttons"),r={};let a="",l=0;return o.appendChild(n),o.appendChild(s),de(e,(e,o)=>{const d=t.create.div("jodit_tab"),c=t.create.element("a",{href:"javascript:void(0);"});a||(a=""+e),c.innerHTML=/<svg/.test(""+e)?e:t.i18n(""+e),n.appendChild(c),d.appendChild("function"!=typeof o?o:t.create.div("jodit_tab_empty")),s.appendChild(d),t.events.on(c,"mousedown touchend",r=>(zt("a",n).forEach(t=>{t.classList.remove("active")}),zt(".jodit_tab",s).forEach(t=>{t.classList.remove("active")}),c.classList.add("active"),d.classList.add("active"),"function"==typeof o&&o.call(t),r.stopPropagation(),i&&(i.__activeTab=""+e),!1)),r[e]={button:c,tab:d},l+=1}),l?(zt("a",n).forEach(t=>{t.style.width=(100/l).toFixed(10)+"%"}),i&&i.__activeTab&&r[i.__activeTab]?(r[i.__activeTab].button.classList.add("active"),r[i.__activeTab].tab.classList.add("active")):(r[a].button.classList.add("active"),r[a].tab.classList.add("active")),o):o},be.FileSelectorWidget=(t,e,i,o,s=!0)=>{let n;const r={};if(e.upload&&t.options.uploader&&(t.options.uploader.url||t.options.uploader.insertImageAsBase64URI)){const i=t.create.fromHTML('<div class="jodit_draganddrop_file_box">'+`<strong>${t.i18n(s?"Drop image":"Drop file")}</strong>`+`<span><br>${t.i18n("or click")}</span>`+`<input type="file" accept="${s?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/>`+"</div>");t.getInstance("Uploader").bind(i,i=>{let o=kt(e.upload)?e.upload:t.options.uploader.defaultHandlerSuccess;"function"==typeof o&&o.call(t,{baseurl:i.baseurl,files:i.files,isImages:i.isImages})},e=>{t.events.fire("errorMessage",e.message)}),r[(t.options.textIcons?"":ge.getIcon("upload"))+t.i18n("Upload")]=i}if(e.filebrowser&&(t.options.filebrowser.ajax.url||t.options.filebrowser.items.url)&&(r[(t.options.textIcons?"":ge.getIcon("folder"))+t.i18n("Browse")]=()=>{o&&o(),e.filebrowser&&t.getInstance("FileBrowser").open(e.filebrowser,s)}),e.url){const o=t.create.fromHTML(`<form onsubmit="return false;" class="jodit_form">\n\t\t\t\t\t\t<div class="jodit_form_group">\n\t\t\t\t\t\t\t<input class="jodit_input" type="text" required name="url" placeholder="http://"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="jodit_form_group">\n\t\t\t\t\t\t\t<input class="jodit_input" type="text" name="text" placeholder="${t.i18n("Alternative text")}"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style="text-align: right"><button class="jodit_button">${t.i18n("Insert")}</button></div>\n\t\t\t\t\t</form>`),s=o.querySelector("button"),a=o.querySelector("input[name=url]");n=null,i&&i.nodeType!==Node.TEXT_NODE&&("IMG"===i.tagName||zt("img",i).length)&&(n="IMG"===i.tagName?i:zt("img",i)[0],fe(o,"input[name=url]",n.getAttribute("src")),fe(o,"input[name=text]",n.getAttribute("alt")),s.textContent=t.i18n("Update")),i&&i.nodeType!==Node.TEXT_NODE&&"A"===i.nodeName&&(fe(o,"input[name=url]",i.getAttribute("href")||""),fe(o,"input[name=text]",i.getAttribute("title")||""),s.textContent=t.i18n("Update")),o.addEventListener("submit",i=>(i.preventDefault(),i.stopPropagation(),fe(o,"input[name=url]")?("function"==typeof e.url&&e.url.call(t,fe(o,"input[name=url]"),fe(o,"input[name=text]")),!1):(a.focus(),a.classList.add("jodit_error"),!1)),!1),r[(t.options.textIcons?"":ge.getIcon("link"))+" URL"]=o}return be.TabsWidget(t,r)};var ye=ve.TabsWidget,_e=ve.FileSelectorWidget;class we{constructor(){this.iframe=!1,this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,popup:{selection:["bold","underline","italic","ul","ol","outdent","indent","\n","fontsize","brush","paragraph","link","align","cut","dots"]},showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument="undefined"!=typeof document?document:null,this.ownerWindow="undefined"!=typeof window?window:null,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.saveHeightInStorage=!1,this.spellcheck=!0,this.editorCssClass=!1,this.style=!1,this.triggerChangeEvent=!0,this.width="auto",this.minWidth="200px",this.maxWidth="100%",this.height="auto",this.minHeight=200,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.showTooltip=!0,this.showTooltipDelay=500,this.useNativeTooltip=!1,this.enter=B,this.enterBlock=B,this.defaultMode=H,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.extraButtons=[],this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=["source","|","bold","strikethrough","underline","italic","|","superscript","subscript","|","ul","ol","|","outdent","indent","|","font","fontsize","brush","paragraph","|","image","file","video","table","link","|","align","undo","redo","\n","selectall","cut","copy","paste","eraser","copyformat","|","hr","symbol","fullsize","print","about"],this.buttonsMD=["source","|","bold","italic","|","ul","ol","|","font","fontsize","brush","paragraph","|","image","table","link","|","align","|","undo","redo","|","hr","eraser","copyformat","fullsize","dots"],this.buttonsSM=["source","|","bold","italic","|","ul","ol","|","fontsize","brush","paragraph","|","image","table","link","|","align","|","undo","redo","|","eraser","copyformat","fullsize","dots"],this.buttonsXS=["bold","image","|","brush","paragraph","|","align","|","undo","redo","|","eraser","dots"],this.events={},this.textIcons=!1,this.showBrowserColorPicker=!1}static get defaultOptions(){return we.__defaultOptions||(we.__defaultOptions=new we),we.__defaultOptions}}const ke=function(t){const e=we.defaultOptions,i=this;if(i.plainOptions=t,void 0!==t&&"object"==typeof t){const o=(t,s)=>{if("preset"===s&&void 0!==e.presets[t.preset]){const i=e.presets[t.preset];Object.keys(i).forEach(o.bind(this,i))}const n=e[s];i[s]="object"!=typeof n||null===n||["ownerWindow","ownerDocument"].includes(s)||Array.isArray(n)?t[s]:mt(!0,{},n,t[s])};Object.keys(t).forEach(o.bind(this,t))}};we.prototype.controls={print:{exec(t){const e=window.open("","PRINT");e&&(t.options.iframe?(t.events.fire("generateDocumentStructure.iframe",e.document,t),e.document.body.innerHTML=t.value):(e.document.write('<!doctype html><html lang="'+It(t.options.language)+'"><head><title></title></head><body>'+t.value+"</body></html>"),e.document.close()),e.focus(),e.print(),e.close())},mode:P+H},about:{exec(t){const e=t.getInstance("Dialog");e.setTitle(t.i18n("About Jodit")),e.setContent('<div class="jodit_about">\t\t\t\t\t\t\t\t\t\t<div>'+t.i18n("Jodit Editor")+" v."+t.getVersion()+" </div><div>"+t.i18n("License: %s",_t(t.options.license)?Vt(t.options.license):t.i18n("GNU General Public License, version 2 or later"))+'</div><div><a href="https://xdsoft.net/jodit/" target="_blank">http://xdsoft.net/jodit/</a></div><div><a href="https://xdsoft.net/jodit/doc/" target="_blank">'+t.i18n("Jodit User's Guide")+"</a> "+t.i18n("contains detailed help for using")+"</div><div>"+t.i18n("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.")+"</div></div>"),e.open()},tooltip:"About Jodit",mode:P+H},hr:{command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},image:{popup(t,e,i,o){let s=null;return e&&e.nodeType!==Node.TEXT_NODE&&("IMG"===e.tagName||zt("img",e).length)&&(s="IMG"===e.tagName?e:zt("img",e)[0]),_e(t,{async filebrowser(e){if(e.files&&e.files.length)for(let i=0;e.files.length>i;i+=1)await t.selection.insertImage(e.baseurl+e.files[i],null,t.options.imageDefaultWidth);o()},upload:!0,async url(e,i){const n=s||t.create.inside.element("img");n.setAttribute("src",e),n.setAttribute("alt",i),s||await t.selection.insertImage(n,null,t.options.imageDefaultWidth),o()}},s,o)},tags:["img"],tooltip:"Insert Image"},file:{popup(t,e,i,o){const s=(e,i="")=>{t.selection.insertNode(t.create.inside.fromHTML('<a href="'+e+'" title="'+i+'">'+(i||e)+"</a>"))};let n=null;return e&&("A"===e.nodeName||me.closest(e,"A",t.editor))&&(n="A"===e.nodeName?e:me.closest(e,"A",t.editor)),_e(t,{filebrowser(t){if(t.files&&t.files.length){let e;for(e=0;t.files.length>e;e+=1)s(t.baseurl+t.files[e])}o()},upload:!0,url(t,e){n?(n.setAttribute("href",t),n.setAttribute("title",e)):s(t,e),o()}},n,o,!1)},tags:["a"],tooltip:"Insert file"},video:{popup(t,e,i,o){const s=t.create.fromHTML(`<form class="jodit_form">\n\t\t\t\t\t<div class="jodit jodit_form_group">\n\t\t\t\t\t\t<input class="jodit_input" required name="code" placeholder="http://" type="url"/>\n\t\t\t\t\t\t<button class="jodit_button" type="submit">${t.i18n("Insert")}</button>\n\t\t\t\t\t</div>\n\t\t\t\t</form>`),n=t.create.fromHTML(`<form class="jodit_form">\n\t\t\t\t\t\t\t\t\t<div class="jodit_form_group">\n\t\t\t\t\t\t\t\t\t\t<textarea class="jodit_textarea" required name="code" placeholder="${t.i18n("Embed code")}"></textarea>\n\t\t\t\t\t\t\t\t\t\t<button class="jodit_button" type="submit">${t.i18n("Insert")}</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</form>`),r={},a=t.selection.save(),l=e=>{t.selection.restore(a),t.selection.insertHTML(e),o()};return t.options.textIcons?(r[t.i18n("Link")]=s,r[t.i18n("Code")]=n):(r[ge.getIcon("link")+"&nbsp;"+t.i18n("Link")]=s,r[ge.getIcon("source")+"&nbsp;"+t.i18n("Code")]=n),n.addEventListener("submit",t=>(t.preventDefault(),Mt(fe(n,"textarea[name=code]"))?(l(fe(n,"textarea[name=code]")),!1):(n.querySelector("textarea[name=code]").focus(),n.querySelector("textarea[name=code]").classList.add("jodit_error"),!1))),s.addEventListener("submit",t=>(t.preventDefault(),xt(fe(s,"input[name=code]"))?(l(se(fe(s,"input[name=code]"))),!1):(s.querySelector("input[name=code]").focus(),s.querySelector("input[name=code]").classList.add("jodit_error"),!1))),ye(t,r)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}};const xe=t=>!!(t&&t instanceof Object&&"function"==typeof t.constructor&&(t instanceof Qe||t.isJodit));class Ce{constructor(t){this.__isDestructed=!1,t&&t instanceof Ce&&(this.jodit=t,xe(t)&&t.components.push(this))}get isDestructed(){return this.__isDestructed}destruct(){this.jodit&&(this.jodit=void 0),this.__isDestructed=!0}}class je extends Ce{constructor(){super(...arguments),this.isBlocked=!1}static equal(t,e){return t.html===e.html&&JSON.stringify(t.range)===JSON.stringify(e.range)}static countNodesBeforeInParent(t){if(!t.parentNode)return 0;const e=t.parentNode.childNodes;let i,o=0,s=null;for(i=0;e.length>i;i+=1){if(!s||e[i].nodeType===Node.TEXT_NODE&&""===e[i].textContent||s.nodeType===Node.TEXT_NODE&&e[i].nodeType===Node.TEXT_NODE||(o+=1),e[i]===t)return o;s=e[i]}return 0}static strokeOffset(t,e){for(;t&&t.nodeType===Node.TEXT_NODE;)(t=t.previousSibling)&&t.nodeType===Node.TEXT_NODE&&null!==t.textContent&&(e+=t.textContent.length);return e}calcHierarchyLadder(t){const e=[];if(!t||!t.parentNode||!me.isOrContains(this.jodit.editor,t))return[];for(;t&&t!==this.jodit.editor;)t&&e.push(je.countNodesBeforeInParent(t)),t=t.parentNode;return e.reverse()}getElementByLadder(t){let e,i=this.jodit.editor;for(e=0;i&&t.length>e;e+=1)i=i.childNodes[t[e]];return i}make(){const t={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};t.html=this.jodit.getNativeEditorValue();const e=this.jodit.selection.sel;if(e&&e.rangeCount){const i=e.getRangeAt(0),o=this.calcHierarchyLadder(i.startContainer),s=this.calcHierarchyLadder(i.endContainer);let n=je.strokeOffset(i.startContainer,i.startOffset),r=je.strokeOffset(i.endContainer,i.endOffset);o.length||i.startContainer===this.jodit.editor||(n=0),s.length||i.endContainer===this.jodit.editor||(r=0),t.range={startContainer:o,startOffset:n,endContainer:s,endOffset:r}}return t}restore(t){this.isBlocked=!0,this.jodit.setEditorValue(t.html);try{if(t.range){const e=this.jodit.editorDocument.createRange();e.setStart(this.getElementByLadder(t.range.startContainer),t.range.startOffset),e.setEnd(this.getElementByLadder(t.range.endContainer),t.range.endOffset),this.jodit.selection.selectRange(e)}}catch(t){}this.isBlocked=!1}destruct(){this.isBlocked=!1,super.destruct()}}class Te{constructor(){this.commands=[],this.stackPosition=-1}clearRedo(){this.commands.length=this.stackPosition+1}clear(){this.commands.length=0,this.stackPosition=-1}push(t){this.clearRedo(),this.commands.push(t),this.stackPosition+=1}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 Ee{constructor(t,e,i){this.observer=i,this.oldValue=t,this.newValue=e}undo(){this.observer.snapshot.restore(this.oldValue)}redo(){this.observer.snapshot.restore(this.newValue)}}we.prototype.observer={timeout:100};class ze extends Ce{constructor(t){super(t),this.onChangeStack=()=>{this.__newValue=this.snapshot.make(),je.equal(this.__newValue,this.__startValue)||(this.stack.push(new Ee(this.__startValue,this.__newValue,this)),this.__startValue=this.__newValue,this.changeStack())},this.stack=new Te,this.snapshot=new je(t);const e=nt(this.onChangeStack,t.defaultTimeout);t.events.on("afterInit.observer",()=>{this.isDestructed||(this.__startValue=this.snapshot.make(),t.events.on("changeSelection.observer selectionstart.observer selectionchange.observer mousedown.observer mouseup.observer keydown.observer keyup.observer",()=>{this.__startValue.html===this.jodit.getNativeEditorValue()&&(this.__startValue=this.snapshot.make())}).on("change.observer",()=>{this.snapshot.isBlocked||e()}))})}redo(){this.stack.redo()&&(this.__startValue=this.snapshot.make(),this.changeStack())}undo(){this.stack.undo()&&(this.__startValue=this.snapshot.make(),this.changeStack())}clear(){this.__startValue=this.snapshot.make(),this.stack.clear(),this.changeStack()}changeStack(){this.jodit&&!this.jodit.isDestructed&&this.jodit.events&&this.jodit.events.fire("changeStack")}destruct(){this.jodit.events&&this.jodit.events.off(".observer"),this.snapshot.destruct(),delete this.snapshot,delete this.stack,super.destruct()}}class qe{constructor(t){this.jodit=t,this.isMarker=t=>me.isNode(t,this.win)&&t.nodeType===Node.ELEMENT_NODE&&"SPAN"===t.nodeName&&t.hasAttribute("data-"+U),this.focus=()=>{var t,e;if(!this.isFocused()){this.jodit.iframe&&"complete"==this.doc.readyState&&this.jodit.iframe.focus(),this.win.focus(),this.area.focus();const i=this.sel,o=this.createRange();return!i||i.rangeCount&&this.current()||(o.setStart(this.area,0),o.collapse(!0),i.removeAllRanges(),i.addRange(o)),this.jodit.editorIsActive||null===(e=null===(t=this.jodit)||void 0===t?void 0:t.events)||void 0===e||e.fire("focus"),!0}return!1},this.eachSelection=t=>{const e=this.sel;if(e&&e.rangeCount){const i=e.getRangeAt(0),o=[],s=i.startOffset,n=this.area.childNodes.length,r=n>s?s:n-1,a=i.startContainer===this.area?this.area.childNodes[r]:i.startContainer,d=i.endContainer===this.area?this.area.childNodes[i.endOffset-1]:i.endContainer;me.find(a,t=>(!t||t===this.area||me.isEmptyTextNode(t)||this.isMarker(t)||o.push(t),t===d||t&&t.contains(d)),this.area,!0,"nextSibling",!1);const c=e=>{if(e.nodeName.match(/^(UL|OL)$/))return Array.from(e.childNodes).forEach(c);if("LI"===e.nodeName)if(e.firstChild)e=e.firstChild;else{const t=this.jodit.create.inside.text(l);e.appendChild(t),e=t}t(e)};0===o.length&&me.isEmptyTextNode(a)&&o.push(a),o.forEach(c)}}}errorNode(t){if(!me.isNode(t,this.win))throw Error("Parameter node must be instance of Node")}get area(){return this.jodit.editor}get win(){return this.jodit.editorWindow}get doc(){return this.jodit.editorDocument}get sel(){return this.win.getSelection()}get range(){const t=this.sel;return t&&t.rangeCount?t.getRangeAt(0):this.createRange()}createRange(){return this.doc.createRange()}remove(){const t=this.sel,e=this.current();if(t&&e)for(let e=0;t.rangeCount>e;e+=1)t.getRangeAt(e).deleteContents(),t.getRangeAt(e).collapse(!0)}insertCursorAtPoint(t,e){this.removeMarkers();try{let i=this.createRange();if(this.doc.caretPositionFromPoint){const o=this.doc.caretPositionFromPoint(t,e);i.setStart(o.offsetNode,o.offset)}else if(this.doc.caretRangeFromPoint){const o=this.doc.caretRangeFromPoint(t,e);i.setStart(o.startContainer,o.startOffset)}if(i){i.collapse(!0);const t=this.sel;t&&(t.removeAllRanges(),t.addRange(i))}else if(void 0!==this.doc.body.createTextRange){const i=this.doc.body.createTextRange();i.moveToPoint(t,e);const o=i.duplicate();o.moveToPoint(t,e),i.setEndPoint("EndToEnd",o),i.select()}return!0}catch(t){}return!1}removeMarkers(){zt("span[data-"+U+"]",this.area).forEach(me.safeRemove)}marker(t=!1,e){let i=null;e&&(i=e.cloneRange(),i.collapse(t));const o=this.jodit.create.inside.span();return o.id=U+"_"+ +new Date+"_"+(""+Math.random()).slice(2),o.style.lineHeight="0",o.style.display="none",o.setAttribute("data-"+U,t?"start":"end"),o.appendChild(this.jodit.create.inside.text(l)),i&&me.isOrContains(this.area,t?i.startContainer:i.endContainer)&&i.insertNode(o),o}restore(t=[]){if(Array.isArray(t)){const e=this.sel;e&&e.removeAllRanges(),t.forEach(t=>{const i=this.createRange(),o=this.area.querySelector("#"+t.endId),s=this.area.querySelector("#"+t.startId);if(s){if(t.collapsed||!o){const t=s.previousSibling;t&&t.nodeType===Node.TEXT_NODE?i.setStart(t,t.nodeValue?t.nodeValue.length:0):i.setStartBefore(s),me.safeRemove(s),i.collapse(!0)}else i.setStartAfter(s),me.safeRemove(s),i.setEndBefore(o),me.safeRemove(o);e&&e.addRange(i)}})}}save(){const t=this.sel;if(!t||!t.rangeCount)return[];const e=[],i=t.rangeCount,o=[];let s,n,r;for(s=0;i>s;s+=1)o[s]=t.getRangeAt(s),o[s].collapsed?(n=this.marker(!0,o[s]),e[s]={startId:n.id,collapsed:!0,startMarker:n.outerHTML}):(n=this.marker(!0,o[s]),r=this.marker(!1,o[s]),e[s]={startId:n.id,endId:r.id,collapsed:!1,startMarker:n.outerHTML,endMarker:r.outerHTML});for(t.removeAllRanges(),s=i-1;s>=0;--s){const i=this.doc.getElementById(e[s].startId);if(i)if(e[s].collapsed)o[s].setStartAfter(i),o[s].collapse(!0);else if(o[s].setStartBefore(i),e[s].endId){const t=this.doc.getElementById(e[s].endId);t&&o[s].setEndAfter(t)}try{t.addRange(o[s].cloneRange())}catch(t){}}return e}isCollapsed(){const t=this.sel;for(let e=0;t&&t.rangeCount>e;e+=1)if(!t.getRangeAt(e).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(t=!0){if(this.jodit.getRealMode()===H){const e=this.sel;if(e&&e.rangeCount>0){const i=e.getRangeAt(0);let o=i.startContainer,s=!1;const n=t=>s?t.lastChild:t.firstChild;if(o.nodeType!==Node.TEXT_NODE){if(o=i.startContainer.childNodes[i.startOffset],o||(o=i.startContainer.childNodes[i.startOffset-1],s=!0),o&&e.isCollapsed&&o.nodeType!==Node.TEXT_NODE)if(!s&&o.previousSibling&&o.previousSibling.nodeType===Node.TEXT_NODE)o=o.previousSibling;else if(t){let t=n(o);for(;t;){if(t&&t.nodeType===Node.TEXT_NODE){o=t;break}t=n(t)}}if(o&&!e.isCollapsed&&o.nodeType!==Node.TEXT_NODE){let t=o,e=o;do{t=t.firstChild,e=e.lastChild}while(t&&e&&t.nodeType!==Node.TEXT_NODE);t===e&&t&&t.nodeType===Node.TEXT_NODE&&(o=t)}}if(o&&me.isOrContains(this.area,o))return o}}return!1}insertNode(t,e=!0,i=!0){this.errorNode(t),this.focus();const o=this.sel;if(this.isCollapsed()||this.jodit.execCommand("Delete"),o&&o.rangeCount){const e=o.getRangeAt(0);me.isOrContains(this.area,e.commonAncestorContainer)?(e.deleteContents(),e.insertNode(t)):this.area.appendChild(t)}else this.area.appendChild(t);e&&this.setCursorAfter(t),i&&this.jodit.events&&this.jodit.events.fire("synchro"),this.jodit.events&&this.jodit.events.fire("afterInsertNode",t)}insertHTML(t){if(""===t)return;const e=this.jodit.create.inside.div(),i=this.jodit.create.inside.fragment();let o,s;if(!this.isFocused()&&this.jodit.isEditorMode()&&this.focus(),me.isNode(t,this.win)?e.appendChild(t):e.innerHTML=""+t,(this.jodit.isEditorMode()||!1!==this.jodit.events.fire("insertHTML",e.innerHTML))&&(o=e.lastChild,o)){for(;e.firstChild;)o=e.firstChild,i.appendChild(e.firstChild);for(this.insertNode(i,!1),o?this.setCursorAfter(o):this.setCursorIn(i),s=this.area.lastChild;s&&s.nodeType===Node.TEXT_NODE&&s.previousSibling&&s.nodeValue&&/^\s*$/.test(s.nodeValue);)s=s.previousSibling;o&&(s&&o===s&&o.nodeType===Node.ELEMENT_NODE&&this.area.appendChild(this.jodit.create.inside.element("br")),this.setCursorAfter(o))}}insertImage(t,e,i){const o="string"==typeof t?this.jodit.create.inside.element("img"):t;if("string"==typeof t&&o.setAttribute("src",t),null!==i){let t=""+i;t&&"auto"!==t&&0>(t+"").indexOf("px")&&0>(t+"").indexOf("%")&&(t+="px"),ne(o,"width",t)}e&&"object"==typeof e&&ne(o,e);const s=()=>{(o.offsetHeight>o.naturalHeight||o.offsetWidth>o.naturalWidth)&&(o.style.width="",o.style.height=""),o.removeEventListener("load",s)};o.addEventListener("load",s),o.complete&&s();const n=this.insertNode(o);return this.jodit.events.fire("afterInsertImage",o),n}setCursorAfter(t){if(this.errorNode(t),!me.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw Error("Node element must be in editor");const e=this.createRange();let i=!1;return t.nodeType!==Node.TEXT_NODE?(i=this.doc.createTextNode(l),e.setStartAfter(t),e.insertNode(i),e.selectNode(i)):e.setEnd(t,null!==t.nodeValue?t.nodeValue.length:0),e.collapse(!1),this.selectRange(e),i}cursorInTheEdge(t,e){const i=this.sel,o=i&&i.rangeCount?i.getRangeAt(0):null;if(!o)return null;const s=t?o.startContainer:o.endContainer,n=i=>t?me.prev(i,t=>!!t,e):me.next(i,t=>!!t,e),r=t=>{for(;t;)if((t=n(t))&&!me.isEmptyTextNode(t)&&"BR"!==t.nodeName)return!1};if(s.nodeType===Node.TEXT_NODE){const e=s.nodeValue||"";if(t&&o.startOffset>e.length-e.replace(h,"").length)return!1;if(!t&&o.startOffset<e.replace(c,"").length)return!1;if(!1===r(s))return!1}const a=this.current(!1);return a&&me.isOrContains(e,a,!0)?!(!t&&o.startContainer.childNodes[o.startOffset]&&a&&!me.isEmptyTextNode(a))&&!1!==r(a):null}setCursorBefore(t){if(this.errorNode(t),!me.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw Error("Node element must be in editor");const e=this.createRange();let i=!1;return t.nodeType!==Node.TEXT_NODE?(i=this.doc.createTextNode(l),e.setStartBefore(t),e.collapse(!0),e.insertNode(i),e.selectNode(i)):e.setStart(t,null!==t.nodeValue?t.nodeValue.length:0),e.collapse(!0),this.selectRange(e),i}setCursorIn(t,e=!1){if(this.errorNode(t),!me.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw Error("Node element must be in editor");const i=this.createRange();let o=t,s=t;do{if(o.nodeType===Node.TEXT_NODE)break;s=o,o=e?o.firstChild:o.lastChild}while(o);if(!o){const t=this.doc.createTextNode(l);/^(img|br|input)$/i.test(s.nodeName)?o=s:(s.appendChild(t),s=t)}return i.selectNodeContents(o||s),i.collapse(e),this.selectRange(i),s}selectRange(t){const e=this.sel;e&&(e.removeAllRanges(),e.addRange(t)),this.jodit.events.fire("changeSelection")}select(t,e=!1){if(this.errorNode(t),!me.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw Error("Node element must be in editor");const i=this.createRange();i[e?"selectNodeContents":"selectNode"](t),this.selectRange(i)}getHTML(){const t=this.sel;if(t&&t.rangeCount>0){const e=t.getRangeAt(0).cloneContents(),i=this.jodit.create.inside.div();return i.appendChild(e),i.innerHTML}return""}applyCSS(t,e="span",i){let o;const s=t=>null!==t&&!me.isEmptyTextNode(t)&&!this.isMarker(t),n=t=>"FONT"!==t.nodeName&&t.nodeType===Node.ELEMENT_NODE&&(ft(i)&&de(i,(e,i)=>{const o=ne(t,e,void 0,!0);return null!==o&&""!==o&&-1!==i.indexOf((""+o).toLowerCase())})||"function"==typeof i&&i(this.jodit,t)),r=t=>!!t&&(RegExp("^"+t.nodeName+"$","i").test(e)||!(!i||!n(t)))&&s(t),a=e=>{r(e)&&("SPAN"===e.nodeName&&t&&Object.keys(t).forEach(i=>{0===o||ne(e,i)===Yt(i,t[i])?(ne(e,i,""),void 0===o&&(o=0)):(ne(e,i,t[i]),void 0===o&&(o=1))}),me.isBlock(e,this.win)||e.getAttribute("style")&&"SPAN"===e.nodeName||(me.unwrap(e),void 0===o&&(o=0)))};if(this.isCollapsed()){let i=!1;if(this.current()&&me.closest(this.current(),e,this.area)){i=!0;const t=me.closest(this.current(),e,this.area);t&&this.setCursorAfter(t)}if("SPAN"===e.toUpperCase()||!i){const i=this.jodit.create.inside.element(e);i.appendChild(this.jodit.create.inside.text(l)),this.insertNode(i,!1,!1),"SPAN"===e.toUpperCase()&&t&&ne(i,t),this.setCursorIn(i)}}else{const i=this.save();Wt(this.area.firstChild),zt("*[style*=font-size]",this.area).forEach(t=>{t.style&&t.style.fontSize&&t.setAttribute("data-font-size",""+t.style.fontSize)}),this.doc.execCommand("fontsize",!1,"7"),zt("*[data-font-size]",this.area).forEach(t=>{const e=t.getAttribute("data-font-size");t.style&&e&&(t.style.fontSize=e,t.removeAttribute("data-font-size"))}),zt('font[size="7"]',this.area).forEach(i=>{if(me.next(i,s,i.parentNode)||me.prev(i,s,i.parentNode)||!r(i.parentNode)||i.parentNode===this.area||me.isBlock(i.parentNode,this.win)&&!m.test(e))if(i.firstChild&&!me.next(i.firstChild,s,i)&&!me.prev(i.firstChild,s,i)&&r(i.firstChild))a(i.firstChild);else if(me.closest(i,r,this.area)){const t=this.createRange(),e=me.closest(i,r,this.area);t.setStartBefore(e),t.setEndBefore(i);const o=t.extractContents();o.textContent&&Mt(o.textContent).length||!o.firstChild||me.unwrap(o.firstChild),e.parentNode&&e.parentNode.insertBefore(o,e),t.setStartAfter(i),t.setEndAfter(e);const s=t.extractContents();s.textContent&&Mt(s.textContent).length||!s.firstChild||me.unwrap(s.firstChild),me.after(e,s),a(e)}else{const s=[];let n;i.firstChild&&me.find(i.firstChild,t=>(t&&r(t)?(void 0===n&&(n=!0),s.push(t)):void 0===n&&(n=!1),!1),i,!0),s.forEach(me.unwrap),n||(void 0===o&&(o=1),1===o&&ne(me.replace(i,e,!1,!1,this.doc),t&&"SPAN"===e.toUpperCase()?t:{}))}else a(i.parentNode);i.parentNode&&me.unwrap(i)}),this.restore(i)}}}class Se extends Ce{constructor(t,e){super(t),this.target=e,this.container=t.create.div("jodit_statusbar"),e.appendChild(this.container),this.hide()}hide(){this.container&&this.container.classList.add("jodit_hidden")}show(){this.container&&this.container.classList.remove("jodit_hidden")}getHeight(){return this.container.offsetHeight}append(t,e=!1){const i=this.jodit.create.div("jodit_statusbar_item");e&&i.classList.add("jodit_statusbar_item-right"),i.appendChild(t),this.container.appendChild(i),this.show(),this.jodit.events.fire("resize")}destruct(){me.safeRemove(this.container),delete this.container,super.destruct()}}const Le=(()=>{let t;return()=>(void 0===t&&(t=(()=>{const t="___Jodit___"+Math.random();try{localStorage.setItem(t,"1");const e="1"===localStorage.getItem(t);return localStorage.removeItem(t),e}catch(t){}return!1})()),t)})();class Ne{constructor(t){this.rootKey=t}set(t,e){try{const i=localStorage.getItem(this.rootKey),o=i?JSON.parse(i):{};o[t]=e,localStorage.setItem(this.rootKey,JSON.stringify(o))}catch(t){}}get(t){try{const e=localStorage.getItem(this.rootKey),i=e?JSON.parse(e):{};return void 0!==i[t]?i[t]:null}catch(t){}}exists(t){return null!==this.get(t)}clear(){try{localStorage.removeItem(this.rootKey)}catch(t){}}}class Me{constructor(){this.data=new Map}set(t,e){this.data.set(t,e)}get(t){return this.data.get(t)}exists(t){return this.data.has(t)}clear(){this.data.clear()}}const Ae="Jodit_";class Ie{constructor(t,e){this.provider=t,this.prefix=Ae,e&&(this.prefix+=e)}set(t,e){this.provider.set(Lt(this.prefix+t),e)}get(t){return this.provider.get(Lt(this.prefix+t))}exists(t){return this.provider.exists(Lt(this.prefix+t))}clear(){return this.provider.clear()}static makeStorage(t=!1,e){let i;return t&&Le()&&(i=new Ne(Ae+e)),i||(i=new Me),new Ie(i,e)}}const De="JoditEventDefaultNamespace";class Re{constructor(){this.__store={}}get(t,e){if(void 0!==this.__store[e])return this.__store[e][t]}indexOf(t,e,i){const o=this.get(t,e);if(o)for(let t=0;o.length>t;t+=1)if(o[t].originalCallback===i)return t;return!1}namespaces(t=!1){const e=Object.keys(this.__store);return t?e.filter(t=>t!==De):e}events(t){return this.__store[t]?Object.keys(this.__store[t]):[]}set(t,e,i,o=!1){void 0===this.__store[e]&&(this.__store[e]={}),void 0===this.__store[e][t]&&(this.__store[e][t]=[]),o?this.__store[e][t].unshift(i):this.__store[e][t].push(i)}clear(){delete this.__store,this.__store={}}}class Be{constructor(t){this.__key="__JoditEventsNativeNamespaces",this.doc=document,this.__stopped=[],this.prepareEvent=t=>{t.cancelBubble||(t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(e=>{Object.defineProperty(t,e,{value:t.changedTouches[0][e],configurable:!0,enumerable:!0})}),t.originalEvent||(t.originalEvent=t),"paste"===t.type&&void 0===t.clipboardData&&this.doc.defaultView.clipboardData&&Object.defineProperty(t,"clipboardData",{get:()=>this.doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.current=[],this.isDestructed=!1,t&&(this.doc=t),this.__key+=(new Date).getTime()}eachEvent(t,e){t.split(/[\s,]+/).forEach(t=>{const i=t.split(".");e.call(this,i[0],i[1]||De)})}getStore(t){if(void 0===t[this.__key]){const e=new Re;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,value:e})}return t[this.__key]}clearStore(t){void 0!==t[this.__key]&&delete t[this.__key]}triggerNativeEvent(t,e){const i=this.doc.createEvent("HTMLEvents");"string"==typeof e?i.initEvent(e,!0,!0):(i.initEvent(e.type,e.bubbles,e.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(t=>{Object.defineProperty(i,t,{value:e[t],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:e,enumerable:!0})),t.dispatchEvent(i)}removeStop(t){if(t){const e=this.__stopped.indexOf(t);-1!==e&&this.__stopped.splice(e,1)}}isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}on(t,e,i,o,s=!1){const n="string"==typeof t?this:t,r="string"==typeof e?e:t;let a=i;void 0===a&&"function"==typeof e&&(a=e);const l=this.getStore(n);if("string"!=typeof r||""===r)throw Error("Need events names");if("function"!=typeof a)throw Error("Need event handler");if(Array.isArray(n))return n.forEach(t=>{this.on(t,r,a,o)}),this;const d="function"==typeof n.addEventListener,c=this;let h=function(t){return a&&a.apply(this,arguments)};return d&&(h=function(t){if(c.prepareEvent(t),a&&!1===a.call(this,t))return t.preventDefault(),t.stopImmediatePropagation(),!1},o&&(h=function(t){c.prepareEvent(t);let e=t.target;for(;e&&e!==this;){if(e.matches(o))return Object.defineProperty(t,"target",{value:e,configurable:!0,enumerable:!0}),a&&!1===a.call(e,t)?(t.preventDefault(),!1):void 0;e=e.parentNode}})),this.eachEvent(r,(t,e)=>{if(""===t)throw Error("Need event name");!1===l.indexOf(t,e,a)&&(l.set(t,e,{event:t,originalCallback:a,syntheticCallback:h},s),d&&n.addEventListener(t,h,!1))}),this}off(t,e,i){const o="string"==typeof t?this:t,s="string"==typeof e?e:t,n=this.getStore(o);let r=i;if("string"!=typeof s||!s)return n.namespaces().forEach(t=>{this.off(o,"."+t)}),this.clearStore(o),this;void 0===r&&"function"==typeof e&&(r=e);const a="function"==typeof o.removeEventListener,l=t=>{a&&o.removeEventListener(t.event,t.syntheticCallback,!1)},d=(t,e)=>{if(""!==t){const i=n.get(t,e);if(i&&i.length)if("function"!=typeof r)i.forEach(l),i.length=0;else{const o=n.indexOf(t,e,r);!1!==o&&(l(i[o]),i.splice(o,1))}}else n.events(e).forEach(t=>{""!==t&&d(t,e)})};return this.eachEvent(s,(t,e)=>{e===De?n.namespaces().forEach(e=>{d(t,e)}):d(t,e)}),this}stopPropagation(t,e){const i="string"==typeof t?this:t,o="string"==typeof t?t:e;if("string"!=typeof o)throw Error("Need event names");const s=this.getStore(i);this.eachEvent(o,(t,e)=>{const o=s.get(t,e);o&&this.__stopped.push(o),e===De&&s.namespaces(!0).forEach(e=>this.stopPropagation(i,t+"."+e))})}fire(t,e,...i){let o,s=void 0;const n="string"==typeof t?this:t,r="string"==typeof t?t:e,a="string"==typeof t?[e,...i]:i,l="function"==typeof n.dispatchEvent;if(!l&&"string"!=typeof r)throw Error("Need events names");const d=this.getStore(n);return"string"!=typeof r&&l?this.triggerNativeEvent(n,e):this.eachEvent(r,(t,e)=>{if(l)this.triggerNativeEvent(n,t);else{const i=d.get(t,e);if(i)try{i.every(e=>!this.isStopped(i)&&(this.current.push(t),o=e.syntheticCallback.apply(n,a),this.current.pop(),void 0!==o&&(s=o),!0))}finally{this.removeStop(i)}e!==De||l||d.namespaces().filter(t=>t!==e).forEach(e=>{const i=this.fire.call(this,n,t+"."+e,...a);void 0!==i&&(s=i)})}}),s}destruct(){this.isDestructed&&(this.isDestructed=!0,this.off(this),this.getStore(this).clear(),delete this[this.__key])}}class He{constructor(t,e){this.doc=t,null!==e&&(this.inside=e?new He(e):new He(t,null))}setDocument(t){this.doc=t}element(t,e,i){const o=this.doc.createElement(t.toLowerCase());return e&&(ft(e)?de(e,(t,e)=>{ft(e)&&"style"===t?ne(o,e):o.setAttribute(t,""+e)}):i=e),i&&et(i).forEach(t=>o.appendChild("string"==typeof t?this.fromHTML(t):t)),o}div(t,e,i){const o=this.element("div",e,i);return t&&(o.className=t),o}span(t,e,i){const o=this.element("span",e,i);return t&&(o.className=t),o}a(t,e,i){const o=this.element("a",e,i);return t&&(o.className=t),o}text(t){return this.doc.createTextNode(t)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t){const e=this.div();e.innerHTML=""+t;const i=e.firstChild===e.lastChild&&e.firstChild?e.firstChild:e;return me.safeRemove(i),i}}class Pe extends Ce{constructor(t){super(t),this.__whoLocked="",this.__isFullSize=!1,this.ownerDocument=document,this.ownerWindow=window,this.isLocked=()=>""!==this.__whoLocked,this.isLockedNotBy=t=>this.isLocked()&&this.__whoLocked!==t,this.isFullSize=()=>this.__isFullSize,t&&t.ownerDocument&&(this.ownerDocument=t.ownerDocument,this.ownerWindow=t.ownerWindow),this.create=new He(this.ownerDocument,xe(t)?t.editorDocument:void 0),this.container=this.create.div()}destruct(){this.isDestructed&&(me.safeRemove(this.container),delete this.container,super.destruct())}lock(t="any"){return!this.isLocked()&&(this.__whoLocked=t,!0)}unlock(){return!!this.isLocked()&&(this.__whoLocked="",!0)}toggleFullSize(t){void 0===t&&(t=!this.__isFullSize),t!==this.__isFullSize&&(this.__isFullSize=t)}}class Oe extends Pe{constructor(t,e){super(t),this.version="3.3.2",this.__modulesInstances={},this.buffer=Ie.makeStorage(),this.progress_bar=this.create.div("jodit_progress_bar",this.create.div()),this.options={removeButtons:[],zIndex:100002,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullsize:!0},this.components=[],this.getVersion=()=>this.version,this.id=t&&t.id?t.id:""+(new Date).getTime(),this.jodit=t||this,this.events=t&&t.events?t.events:new Be(this.ownerDocument),this.buffer=t&&t.buffer?t.buffer:Ie.makeStorage(),this.options={...this.options,...e}}get defaultTimeout(){return 100}i18n(t,...e){var i;return Rt(t,e,(null===(i=null==this?void 0:this.jodit)||void 0===i?void 0:i.options)||(null==this?void 0:this.options))}toggleFullSize(t){super.toggleFullSize(t),this.events&&this.events.fire("toggleFullSize",t)}getInstance(t,e){if("function"!=typeof Qe.modules[t])throw Error("Need real module name");return void 0===this.__modulesInstances[t]&&(this.__modulesInstances[t]=new Qe.modules[t](this.jodit||this,e)),this.__modulesInstances[t]}destruct(){this.isDestructed||(this.events&&(this.events.destruct(),delete this.events),delete this.options,super.destruct())}}class Fe extends Ce{constructor(t,e="li",i="jodit_toolbar_btn"){t instanceof Ye?(super(t.jodit),this.parentToolbar=t):super(t),this.container=this.jodit.create.element(e),this.container.classList.add(i)}focus(){this.container.focus()}destruct(){this.isDestructed||(me.safeRemove(this.container),this.parentToolbar=void 0,super.destruct())}createIcon(t,e){const i=e?e.icon||e.name:t;if(!this.jodit.options.textIcons){let o,s=this.jodit.events.fire("getIcon",i,e,t);return e&&e.iconURL&&void 0===s?(o=this.jodit.create.element("i"),o.style.backgroundImage="url("+e.iconURL+")"):(void 0===s&&(s=ge.exists(i)?ge.getIcon(i):ge.getIcon("empty")),o="string"==typeof s?this.jodit.create.fromHTML(Mt(s)):s),o.classList.add("jodit_icon","jodit_icon_"+t),o}return this.jodit.create.fromHTML(`<span class="jodit_icon">${this.jodit.i18n(e?e.name:t)}</span>`)}}class Ve extends Fe{constructor(t){super(t),this.container.classList.add("jodit_toolbar_btn-break")}}class We extends Ce{constructor(t,e,i,o="jodit_toolbar_popup"){super(t),this.target=e,this.current=i,this.className=o,this.throttleCalcPosition=rt(this.calcPosition,this.jodit.defaultTimeout),this.isOpened=!1,this.close=t=>{(this.isOpened||this.isDestructed)&&(t&&me.isOrContains(this.container,t instanceof We?t.target:t)||(this.isOpened=!1,this.jodit.events.off("closeAllPopups",this.close),this.doClose(),me.safeRemove(this.container),this.jodit.events.fire("removeMarkers"),this.jodit.events.fire(this,"afterClose")))},this.container=this.jodit.create.div(o,{"data-editor_id":t.id}),this.jodit.events.on(this.container,"mousedown touchstart touchend",t=>{t.stopPropagation()}).on([this.jodit.ownerWindow,this.jodit.events],"resize",this.throttleCalcPosition).on("afterInsertNode, afterInsertImage",this.close)}calcPosition(){if(!this.isOpened||this.isDestructed)return;const t=this.container,e=Qt(this.jodit.container,this.jodit,this.jodit.ownerDocument,!0),i=Qt(t,this.jodit,this.jodit.ownerDocument,!0),o=ne(t,"marginLeft")||0;i.left-=o;let s=o,n="auto";if(s=e.left>i.left?e.left-i.left:e.left+e.width>i.left+i.width?0:-(i.left+i.width-(e.left+e.width)),e.width>i.width||(s=e.left-i.left,n=e.width),s!==o)try{t.style.setProperty("margin-left",s+"px","important")}catch(e){t.style.marginLeft=s+"px"}const r=t.querySelector(".jodit_popup_triangle");r&&(r.style.marginLeft=-s+"px"),ne(t,"width",n)}doOpen(t){t&&(me.detach(this.container),this.container.innerHTML='<span class="jodit_popup_triangle"></span>',this.container.appendChild(me.isNode(t,this.jodit.ownerWindow)?t:this.jodit.create.fromHTML(""+t)),this.container.style.display="block",this.container.style.removeProperty("marginLeft"))}doClose(){}open(t,e,i=!1){Qe.fireEach("beforeOpenPopup closeAllPopups",this,t),i||this.jodit.events.on("closeAllPopups",this.close),this.container.classList.add(this.className+"-open"),this.doOpen(t),this.target.appendChild(this.container),this.jodit.options.textIcons&&this.firstInFocus(),void 0!==e&&this.container.classList.toggle("jodit_right",e),!i&&this.container.parentNode&&this.jodit.events.fire(this.container.parentNode,"afterOpenPopup",this.container),this.isOpened=!0,!i&&this.calcPosition()}firstInFocus(){}destruct(){this.isDestructed||(this.jodit.events.off([this.jodit.ownerWindow,this.jodit.events],"resize",this.throttleCalcPosition),me.safeRemove(this.container),delete this.container,super.destruct())}}class $e extends We{constructor(t,e,i,o="jodit_toolbar_list"){super(t,e,i,o),this.target=e,this.current=i,this.className=o,this.defaultControl={template:(t,e,i)=>this.jodit.i18n(i)}}doClose(){this.toolbar&&(this.toolbar.destruct(),delete this.toolbar)}doOpen(t){this.toolbar=Ge.makeCollection(this.jodit),de("string"==typeof t.list?t.list.split(/[\s,]+/):t.list,(e,i)=>{let o,s=this.jodit.options.controls,n=t=>s&&s[t];"string"==typeof i&&n(i)?o=new Ke(this.toolbar,{name:""+i,...n(i)},this.current):"string"==typeof e&&n(e)&&"object"==typeof i?o=new Ke(this.toolbar,{name:""+e,...n(e),...i},this.current):(o=new Ke(this.toolbar,{name:""+e,exec:t.exec,command:t.command,isActive:t.isActiveChild,isDisable:t.isDisableChild,mode:t.mode,args:[t.args&&t.args[0]||e,t.args&&t.args[1]||i]},this.current),o.textBox.innerHTML=(t.template||this.defaultControl.template)(this.jodit,""+e,""+i)),this.toolbar.appendChild(o)}),this.container.appendChild(this.toolbar.container),this.container.style.removeProperty("marginLeft"),this.toolbar.checkActiveButtons()}firstInFocus(){this.toolbar.firstButton.focus()}destruct(){this.isDestructed||(this.doClose(),super.destruct())}}class Ue extends Fe{constructor(t){super(t.parentToolbar||t.jodit,"div","jodit_tooltip"),this.button=t,this.timeout=0,this.show=()=>{const t=this.button.jodit.options.showTooltipDelay||10*this.button.jodit.defaultTimeout;this.button.jodit.events.fire("hideTooltip"),this.timeout=st(()=>{this.button.container.appendChild(this.container),this.container.style.marginLeft=-(this.container.offsetWidth-this.button.container.offsetWidth)/2+"px"},t)},this.hide=()=>{window.clearTimeout(this.timeout),me.safeRemove(this.container)},t.control.tooltip&&(this.container.innerHTML=t.tooltipText,t.jodit.events.on(t.anchor,"mouseenter",this.show).on(t.anchor,"mouseleave",this.hide).on("change updateToolbar scroll hidePopup closeAllPopups hideTooltip",this.hide))}destruct(){return this.hide(),this.jodit&&this.jodit.events&&this.jodit.events.off("change updateToolbar scroll hidePopup closeAllPopups hideTooltip",this.hide),super.destruct()}}class Ke extends Fe{constructor(t,e,i){super(t),this.__disabled=!1,this.__actived=!1,this.onMouseDown=t=>{if("keydown"===t.type&&t.which!==_)return;if(t.stopImmediatePropagation(),t.preventDefault(),this.disable)return!1;const e=this.control,i=()=>this.parentToolbar&&this.parentToolbar.getTarget(this)||this.target||!1;if(e.list){const t=new $e(this.jodit,this.container,this.target);t.open(e),this.jodit.events.fire("closeAllPopups",t.container),this.anchor.setAttribute("aria-expanded","true"),this.jodit.events.on(t,"afterClose",()=>{this.anchor.setAttribute("aria-expanded","false")})}else if(void 0!==e.exec&&"function"==typeof e.exec)e.exec(this.jodit,i(),e,t,this.container),this.jodit.events.fire("synchro"),this.parentToolbar&&this.parentToolbar.immediateCheckActiveButtons(),this.jodit.events.fire("closeAllPopups afterExec");else if(void 0!==e.popup&&"function"==typeof e.popup){const t=new We(this.jodit,this.container,this.target);if(!1!==this.jodit.events.fire(Lt(`before-${e.name}-OpenPopup`),i(),e,t)){const o=e.popup(this.jodit,i(),e,t.close,this);o&&t.open(o)}this.jodit.events.fire(Lt(`after-${e.name}-OpenPopup`)+" closeAllPopups",t.container)}else(e.command||e.name)&&(xe(this.jodit)?this.jodit.execCommand(e.command||e.name,e.args&&e.args[0]||!1,e.args&&e.args[1]||null):this.jodit.ownerDocument.execCommand(e.command||e.name,e.args&&e.args[0]||!1,e.args&&e.args[1]||null),this.jodit.events.fire("closeAllPopups"))},this.control=e,this.target=i,this.anchor=this.jodit.create.element("a",{role:"button",href:"javascript:void(0)"});let o="-1";this.jodit.options.allowTabNavigation&&(o="0"),this.anchor.setAttribute("tabindex",o),this.container.appendChild(this.anchor),this.jodit.options.showTooltip&&e.tooltip&&(this.jodit.options.useNativeTooltip?this.anchor.setAttribute("title",this.tooltipText):this.tooltip=new Ue(this),this.anchor.setAttribute("aria-label",this.tooltipText)),this.textBox=this.jodit.create.span(),this.anchor.appendChild(this.textBox);const s=e.name.replace(/[^a-zA-Z0-9]/g,"_");if(e.getContent&&"function"==typeof e.getContent){me.detach(this.container);const t=e.getContent(this.jodit,e,this);this.container.appendChild("string"==typeof t?this.jodit.create.fromHTML(t):t)}else{if(e.list&&this.anchor){const t=this.jodit.create.fromHTML(ge.getIcon("dropdown-arrow"));t.classList.add("jodit_with_dropdownlist-trigger"),this.container.classList.add("jodit_with_dropdownlist"),this.anchor.appendChild(t)}this.textBox.appendChild(this.createIcon(s,e))}if(this.container.classList.add("jodit_toolbar_btn-"+s),this.jodit.options.direction){const t=this.jodit.options.direction.toLowerCase();this.container.style.direction="rtl"===t?"rtl":"ltr"}e.isInput?this.container.classList.add("jodit_toolbar-input"):this.jodit.events.on(this.container,"mousedown touchend keydown",this.onMouseDown).on(`click-${s}-btn`,this.onMouseDown)}set disable(t){this.__disabled=t,this.container.classList.toggle("jodit_disabled",t),t?this.container.hasAttribute("disabled")||this.container.setAttribute("disabled","disabled"):this.container.hasAttribute("disabled")&&this.container.removeAttribute("disabled")}get disable(){return this.__disabled}set active(t){this.__actived=t,this.container.classList.toggle("jodit_active",t)}get active(){return this.__actived}isDisable(){return!(!this.parentToolbar||!this.parentToolbar.buttonIsDisabled(this))}isActive(){return!(!this.parentToolbar||!this.parentToolbar.buttonIsActive(this))}get tooltipText(){return this.control.tooltip?this.jodit.i18n(this.control.tooltip)+(this.control.hotkeys?"<br>"+et(this.control.hotkeys).join(" "):""):""}focus(){this.anchor.focus()}destruct(){this.isDestructed||(this.jodit&&this.jodit.events&&this.jodit.events.off(this.container),super.destruct(),this.tooltip&&(this.tooltip.destruct(),delete this.tooltip))}}class Xe extends Fe{constructor(t){super(t),this.container.classList.add("jodit_toolbar_btn-separator")}}class Ye extends Ce{constructor(t){super(t),this.__buttons=[],this.__getControlType=t=>{let e;const i=this.jodit.options.controls||we.defaultOptions.controls;if("string"!=typeof t)e={name:"empty",...t},void 0!==i[e.name]&&(e={...i[e.name],...e});else{const o=t.split(/\./);let s=i;o.length>1&&void 0!==i[o[0]]&&(s=i[o[0]],t=o[1]),e=void 0!==s[t]?{name:t,...s[t]}:{name:t,command:t,tooltip:t}}return e},this.closeAll=()=>{this.jodit&&this.jodit.events&&this.jodit.events.fire("closeAllPopups")},this.initEvents=()=>{this.jodit.events.on(this.jodit.ownerWindow,"mousedown touchend",this.closeAll).on(this.listenEvents,this.checkActiveButtons).on("afterSetMode focus",this.immediateCheckActiveButtons)},this.listenEvents="changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur",this.immediateCheckActiveButtons=()=>{this.isDestructed||this.jodit.isLocked()||(this.__buttons.filter(t=>t instanceof Ke).forEach(t=>{t.disable=t.isDisable(),t.disable||(t.active=t.isActive()),"function"==typeof t.control.getLabel&&t.control.getLabel(this.jodit,t.control,t)}),this.jodit.events&&this.jodit.events.fire("updateToolbar"))},this.checkActiveButtons=nt(this.immediateCheckActiveButtons,this.jodit.defaultTimeout),this.container=this.jodit.create.element("ul"),this.container.classList.add("jodit_toolbar"),this.initEvents()}getButtonsList(){return this.__buttons.map(t=>t instanceof Ke?t.control.name:"").filter(t=>""!==t)}getParentContainer(){return this.__parentContainer}appendChild(t){this.__buttons.push(t),this.container.appendChild(t.container)}get firstButton(){return this.__buttons[0]}removeChild(t){const e=this.__buttons.indexOf(t);-1!==e&&(this.__buttons.splice(e,1),t.container.parentNode===this.container&&me.safeRemove(t.container))}build(t,e,i){this.__parentContainer=e;let o=!1;this.clear(),("string"==typeof t?t.split(/[,\s]+/):t).map(this.__getControlType).forEach(t=>{let e=null;if(-1===this.jodit.options.removeButtons.indexOf(t.name)){switch(t.name){case"\n":e=new Ve(this);break;case"|":o||(o=!0,e=new Xe(this));break;default:o=!1,e=new Ke(this,t,i)}e&&this.appendChild(e)}}),this.container.parentNode!==e&&e.appendChild(this.container),this.immediateCheckActiveButtons()}clear(){[...this.__buttons].forEach(t=>{this.removeChild(t),t.destruct()}),this.__buttons.length=0}buttonIsActive(t){return!(xe(this.jodit)&&!this.jodit.editorIsActive)&&("function"==typeof t.control.isActive?t.control.isActive(this.jodit,t.control,t):void 0)}buttonIsDisabled(t){if(this.jodit.options.disabled)return!0;if(this.jodit.options.readonly&&(!this.jodit.options.activeButtonsInReadOnly||-1===this.jodit.options.activeButtonsInReadOnly.indexOf(t.control.name)))return!0;let e;return"function"==typeof t.control.isDisable&&(e=t.control.isDisable(this.jodit,t.control,t)),e}getTarget(t){return t.target}setDirection(t){this.container.style.direction=t,this.container.setAttribute("dir",t)}destruct(){this.isDestructed||(this.jodit.events.off(this.jodit.ownerWindow,"mousedown touchstart",this.closeAll).off(this.listenEvents,this.checkActiveButtons).off("afterSetMode focus",this.immediateCheckActiveButtons),this.clear(),me.safeRemove(this.container),delete this.container,super.destruct())}}class Ge extends Ye{constructor(){super(...arguments),this.checkActiveStatus=(t,e)=>{let i=0,o=0;return Object.keys(t).forEach(s=>{const n=t[s];"function"==typeof n?n(this.jodit,""+ne(e,s))&&(i+=1):-1!==n.indexOf(""+ne(e,s))&&(i+=1),o+=1}),o===i}}buttonIsActive(t){const e=super.buttonIsActive(t);if(void 0!==e)return e;const i=!!this.jodit.selection&&this.jodit.selection.current();if(!i)return!1;let o,s,n;return!(!(t.control.tags||t.control.options&&t.control.options.tags)||(o=t.control.tags||t.control.options&&t.control.options.tags,s=i,!me.up(s,t=>{if(t&&-1!==o.indexOf(t.nodeName.toLowerCase()))return!0},this.jodit.editor)))||!(!(t.control.css||t.control.options&&t.control.options.css)||(n=t.control.css||t.control.options&&t.control.options.css,s=i,!me.up(s,t=>{if(t&&t.nodeType!==Node.TEXT_NODE)return this.checkActiveStatus(n,t)},this.jodit.editor)))}buttonIsDisabled(t){const e=super.buttonIsDisabled(t);if(void 0!==e)return e;const i=void 0===t.control||void 0===t.control.mode?H:t.control.mode;return!(i===O||i===this.jodit.getRealMode())}getTarget(t){return t.target||this.jodit.selection.current()||void 0}static makeCollection(t){const e=xe(t)?new Ge(t):new Ye(t);return t.options.textIcons&&e.container.classList.add("jodit_text_icons"),e}}class Je extends Oe{constructor(){super(...arguments),this.toolbar=Ge.makeCollection(this)}destruct(){this.toolbar.destruct(),delete this.toolbar,super.destruct()}}const Ze=10;class Qe extends Je{constructor(t,e){super(),this.__defaultStyleDisplayKey="data-jodit-default-style-display",this.__defaultClassesKey="data-jodit-default-classes",this.commands={},this.__selectionLocked=null,this.__wasReadOnly=!1,this.storage=Ie.makeStorage(!0,this.id),this.editorIsActive=!1,this.iframe=null,this.__plugins={},this.mode=H,this.__callChangeCount=0,this.isInited=!1,this.options=new ke(e),this.editorDocument=this.options.ownerDocument,this.editorWindow=this.options.ownerWindow,this.ownerDocument=this.options.ownerDocument,this.ownerWindow=this.options.ownerWindow,this.element=this.resolveElement(t),this.element.attributes&&Array.from(this.element.attributes).forEach(t=>{const i=t.name;let o=t.value;void 0===Qe.defaultOptions[i]||e&&void 0!==e[i]||(-1!==["readonly","disabled"].indexOf(i)&&(o=""===o||"true"===o),/^[0-9]+(\.)?([0-9]+)?$/.test(""+o)&&(o=Number(o)),this.options[i]=o)}),this.options.events&&Object.keys(this.options.events).forEach(t=>{this.events.on(t,this.options.events[t])}),this.container.classList.add("jodit_container"),this.container.setAttribute("contenteditable","false"),this.selection=new qe(this),this.events.on("removeMarkers",()=>{this.selection&&this.selection.removeMarkers()}),this.observer=new ze(this);let i=null;this.options.inline&&(-1===["TEXTAREA","INPUT"].indexOf(this.element.nodeName)&&(this.container=this.element,this.element.setAttribute(this.__defaultClassesKey,""+this.element.className),i=this.container.innerHTML,this.container.innerHTML=""),this.container.classList.add("jodit_inline"),this.container.classList.add("jodit_container")),this.element!==this.container&&(this.element.style.display&&this.element.setAttribute(this.__defaultStyleDisplayKey,this.element.style.display),this.element.style.display="none"),this.applyOptionsToToolbarContainer(this.container),this.workplace=this.create.div("jodit_workplace",{contenteditable:!1}),this.makeToolbar(),this.options.textIcons&&this.container.classList.add("jodit_text_icons"),this.events.on(this.ownerWindow,"resize",()=>{this.events&&this.events.fire("resize")}),this.container.appendChild(this.workplace),this.statusbar=new Se(this,this.container),this.workplace.appendChild(this.progress_bar),this.element.parentNode&&this.element!==this.container&&this.element.parentNode.insertBefore(this.container,this.element),this.id=this.element.getAttribute("id")||""+(new Date).getTime(),this.editor=this.create.div("jodit_wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.options.tabIndex}),this.workplace.appendChild(this.editor),this.setNativeEditorValue(this.getElementValue()),(async()=>{await this.beforeInitHook(),await this.events.fire("beforeInit",this);try{this.__initPlugines()}catch(t){}if(await this.__initEditor(i),this.isDestructed)return;const t=this.options;t.enableDragAndDropFileToEditor&&t.uploader&&(t.uploader.url||t.uploader.insertImageAsBase64URI)&&this.uploader.bind(this.editor),this.isInited=!0,this.events&&(await this.events.fire("afterInit",this),this.events.fire("afterConstructor",this)),await this.afterInitHook()})()}get isJodit(){return!0}get value(){return this.getEditorValue()}set value(t){this.setEditorValue(t)}get defaultTimeout(){return this.options&&this.options.observer?this.options.observer.timeout:Qe.defaultOptions.observer.timeout}static Array(t){return new lt(t)}static Object(t){return new at(t)}static fireEach(t,...e){Object.keys(Qe.instances).forEach(i=>{const o=Qe.instances[i];!o.isDestructed&&o.events&&o.events.fire(t,...e)})}static make(t,e){return new Qe(t,e)}get uploader(){return this.getInstance("Uploader")}get filebrowser(){return this.getInstance("FileBrowser")}getElementValue(){return void 0!==this.element.value?this.element.value:this.element.innerHTML}getNativeEditorValue(){return this.editor?this.editor.innerHTML:this.getElementValue()}setNativeEditorValue(t){this.editor&&(this.editor.innerHTML=t)}getEditorValue(t=!0){let e;if(e=this.events.fire("beforeGetValueFromEditor"),void 0!==e)return e;e=this.getNativeEditorValue().replace(d,""),t&&(e=e.replace(/<span[^>]+id="jodit_selection_marker_[^>]+><\/span>/g,"")),"<br>"===e&&(e="");const i={value:e};return this.events.fire("afterGetValueFromEditor",i),i.value}getEditorText(){if(this.editor)return this.editor.textContent||"";const t=this.create.inside.div();return t.innerHTML=this.getElementValue(),t.textContent||""}setElementValue(t){if("string"!=typeof t&&void 0!==t)throw Error("value must be string");void 0!==t?this.element!==this.container&&(void 0!==this.element.value?this.element.value=t:this.element.innerHTML=t):t=this.getElementValue(),t!==this.getEditorValue()&&this.setEditorValue(t)}setEditorValue(t){const e=this.events.fire("beforeSetValueToEditor",t);if(!1===e)return;if("string"==typeof e&&(t=e),!this.editor)return void(void 0!==t&&this.setElementValue(t));if("string"!=typeof t&&void 0!==t)throw Error("value must be string");void 0!==t&&this.editor.innerHTML!==t&&this.setNativeEditorValue(t);const i=this.getElementValue(),o=this.getEditorValue();if(i!==o&&Ze>this.__callChangeCount){this.setElementValue(o),this.__callChangeCount+=1;try{this.events.fire("change",o,i)}finally{this.__callChangeCount=0}}}registerCommand(t,e){const i=t.toLowerCase();if(void 0===this.commands[i]&&(this.commands[i]=[]),this.commands[i].push(e),"function"!=typeof e){const o=this.options.commandToHotkeys[i]||this.options.commandToHotkeys[t]||e.hotkeys;o&&this.registerHotkeyToCommand(o,i)}return this}registerHotkeyToCommand(t,e){const i=et(t).map(Ft).map(t=>t+".hotkey").join(" ");this.events.off(i).on(i,()=>this.execCommand(e))}execCommand(t,e=!1,i=null){if(this.options.readonly&&"selectall"!==t)return;let o;if(t=t.toLowerCase(),o=this.events.fire("beforeCommand",t,e,i),!1!==o&&(o=this.execCustomCommands(t,e,i)),!1!==o)if(this.selection.focus(),"selectall"===t)this.selection.select(this.editor,!0);else try{o=this.editorDocument.execCommand(t,e,i)}catch(t){}return this.events.fire("afterCommand",t,e,i),this.setEditorValue(),o}execCustomCommands(t,e=!1,i=null){if(t=t.toLowerCase(),void 0!==this.commands[t]){let o;const s=s=>{let n;n="function"==typeof s?s:s.exec;const r=n.call(this,t,e,i);void 0!==r&&(o=r)};for(let e=0;this.commands[t].length>e;e+=1)s(this.commands[t][e]);return o}}lock(t="any"){return!!super.lock(t)&&(this.__selectionLocked=this.selection.save(),this.editor.classList.add("jodit_disabled"),!0)}unlock(){return!!super.unlock()&&(this.editor.classList.remove("jodit_disabled"),this.__selectionLocked&&this.selection.restore(this.__selectionLocked),!0)}getMode(){return this.mode}isEditorMode(){return this.getRealMode()===H}getRealMode(){if(this.getMode()!==O)return this.getMode();const t=this.ownerDocument.activeElement;return t&&(me.isOrContains(this.editor,t)||me.isOrContains(this.toolbar.container,t))?H:P}setMode(t){const e=this.getMode(),i={mode:parseInt(""+t,10)},o=["jodit_wysiwyg_mode","jodit_source_mode","jodit_split_mode"];!1!==this.events.fire("beforeSetMode",i)&&(this.mode=it(i.mode,[P,H,O])?i.mode:H,this.options.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),o.forEach(t=>{this.container.classList.remove(t)}),this.container.classList.add(o[this.mode-1]),e!==this.getMode()&&this.events.fire("afterSetMode"))}toggleMode(){let t=this.getMode();it(t+1,[P,H,this.options.useSplitMode?O:9])?t+=1:t=H,this.setMode(t)}setDisabled(t){this.options.disabled=t;const e=this.__wasReadOnly;this.setReadOnly(t||e),this.__wasReadOnly=e,this.editor&&(this.editor.setAttribute("aria-disabled",""+t),this.container.classList.toggle("jodit_disabled",t),this.events.fire("disabled",t))}getDisabled(){return this.options.disabled}setReadOnly(t){this.__wasReadOnly!==t&&(this.__wasReadOnly=t,this.options.readonly=t,t?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.events&&this.events.fire("readonly",t))}getReadOnly(){return this.options.readonly}beforeInitHook(){}afterInitHook(){}resolveElement(t){let e=t;if("string"==typeof t)try{e=this.ownerDocument.querySelector(t)}catch(e){throw Error('String "'+t+'" should be valid HTML selector')}if(!e||"object"!=typeof e||e.nodeType!==Node.ELEMENT_NODE||!e.cloneNode)throw Error('Element "'+t+'" should be string or HTMLElement instance');return e}makeToolbar(){if(!this.options.toolbar)return;let t=this.create.div("jodit_toolbar_container");this.container.appendChild(t),(this.options.toolbar instanceof HTMLElement||"string"==typeof this.options.toolbar)&&(t=this.resolveElement(this.options.toolbar)),this.applyOptionsToToolbarContainer(t),this.toolbar.build(ot(this.options.buttons).concat(this.options.extraButtons),t);const e=this.options.toolbarButtonSize.toLowerCase();t.classList.add("jodit_toolbar_size-"+(-1!==["middle","large","small"].indexOf(e)?e:"middle"))}applyOptionsToToolbarContainer(t){t.classList.add("jodit_"+(this.options.theme||"default")+"_theme"),this.options.zIndex&&(t.style.zIndex=""+parseInt(""+this.options.zIndex,10))}__initPlugines(){const t=this.options.disablePlugins,e=Array.isArray(t)?t.map(t=>t.toLowerCase()):t.toLowerCase().split(/[\s,]+/);Object.keys(Qe.plugins).forEach(t=>{-1===e.indexOf(t.toLowerCase())&&(this.__plugins[t]=new Qe.plugins[t](this))})}async __initEditor(t){if(await this.__createEditor(),this.isDestructed)return;this.element!==this.container?this.setElementValue():null!==t&&this.setEditorValue(t),Qe.instances[this.id]=this;let e=this.options.defaultMode;if(this.options.saveModeInStorage){const t=this.storage.get("jodit_default_mode");"string"==typeof t&&(e=parseInt(t,10))}this.setMode(e),this.options.readonly&&this.setReadOnly(!0),this.options.disabled&&this.setDisabled(!0);try{this.editorDocument.execCommand("defaultParagraphSeparator",!1,this.options.enter.toLowerCase())}catch(t){}try{this.editorDocument.execCommand("enableObjectResizing",!1,"false")}catch(t){}try{this.editorDocument.execCommand("enableInlineTableEditing",!1,"false")}catch(t){}}async __createEditor(){const t=this.editor,e=await this.events.fire("createEditor",this);if(!this.isDestructed){if(!1===e&&me.safeRemove(t),this.options.editorCssClass&&this.editor.classList.add(this.options.editorCssClass),this.options.style&&ne(this.editor,this.options.style),this.events.on("synchro",()=>{this.setEditorValue()}).on("focus",()=>this.editorIsActive=!0).on("blur",()=>this.editorIsActive=!1).on(this.editor,"selectionchange selectionstart keydown keyup keypress mousedown mouseup mousepress click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",t=>{if(!this.options.readonly&&this.events&&this.events.fire){if(!1===this.events.fire(t.type,t))return!1;this.setEditorValue()}}),this.options.spellcheck&&this.editor.setAttribute("spellcheck","true"),this.options.direction){const t="rtl"===this.options.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=t,this.container.style.direction=t,this.editor.setAttribute("dir",t),this.container.setAttribute("dir",t),this.toolbar.setDirection(t)}this.options.triggerChangeEvent&&this.events.on("change",nt(()=>{this.events&&this.events.fire(this.element,"change")},this.defaultTimeout))}}destruct(){if(this.isDestructed)return;if(!1===this.events.fire("beforeDestruct"))return;if(!this.editor)return;const t=this.getEditorValue();if(this.element!==this.container)if(this.element.hasAttribute(this.__defaultStyleDisplayKey)){const t=this.element.getAttribute(this.__defaultStyleDisplayKey);t&&(this.element.style.display=t,this.element.removeAttribute(this.__defaultStyleDisplayKey))}else this.element.style.display="";else this.element.hasAttribute(this.__defaultClassesKey)&&(this.element.className=this.element.getAttribute(this.__defaultClassesKey)||"",this.element.removeAttribute(this.__defaultClassesKey));this.element.hasAttribute("style")&&!this.element.getAttribute("style")&&this.element.removeAttribute("style"),Object.keys(this.__plugins).forEach(t=>{const e=this.__plugins[t];void 0!==e&&void 0!==e.destruct&&"function"==typeof e.destruct&&e.destruct(),delete this.__plugins[t]}),this.observer.destruct(),this.statusbar.destruct(),delete this.observer,delete this.statusbar,delete this.storage,this.buffer.clear(),delete this.buffer,this.components.forEach(t=>{void 0===t.destruct||"function"!=typeof t.destruct||t.isDestructed||t.destruct()}),this.components.length=0,this.commands={},delete this.selection,this.__selectionLocked=null,this.events.off(this.ownerWindow),this.events.off(this.ownerDocument),this.events.off(this.ownerDocument.body),this.events.off(this.element),this.events.off(this.editor),me.safeRemove(this.workplace),me.safeRemove(this.editor),me.safeRemove(this.progress_bar),me.safeRemove(this.iframe),this.container!==this.element&&me.safeRemove(this.container),delete this.workplace,delete this.editor,delete this.progress_bar,delete this.iframe,this.container===this.element&&(this.element.innerHTML=t),delete Qe.instances[this.id],super.destruct(),delete this.container}}Qe.plugins={},Qe.modules={},Qe.instances={},Qe.lang={};var ti=i(79),ei=i.n(ti),ii=i(80),oi=i.n(ii),si=i(81),ni=i.n(si),ri=i(82),ai=i.n(ri),li=i(83),di=i.n(li),ci=i(84),hi=i.n(ci),pi=i(85),ui=i.n(pi),fi=i(86),mi=i.n(fi),gi=i(87),vi=i.n(gi),bi=i(88),yi=i.n(bi),_i=i(89),wi=i.n(_i),ki=i(90),xi=i.n(ki),Ci=i(91),ji=i.n(Ci),Ti=i(92),Ei=i.n(Ti),zi=i(93),qi=i.n(zi),Si=i(0),Li=i.n(Si);const Ni={ar:ei.a,de:ni.a,cs_cz:oi.a,en:Li.a,es:ai.a,fr:di.a,he:hi.a,hu:ui.a,id:mi.a,it:vi.a,nl:yi.a,pt_br:wi.a,ru:xi.a,tr:ji.a,zh_cn:Ei.a,zh_tw:qi.a},Mi=t=>t.default||t,Ai={};Array.isArray(Mi(Li.a))&&Mi(Li.a).forEach((t,e)=>{Ai[e]=t}),Object.keys(Ni).forEach(t=>{const e=Mi(Ni[t]);Array.isArray(e)&&(Ni[t]={},e.forEach((e,i)=>{Ni[t][Ai[i]]=e}))});var Ii=Ni;we.prototype.defaultAjaxOptions={dataType:"json",method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr:()=>new XMLHttpRequest};class Di{constructor(t,e){this.success_response_codes=[200,201,202],this.jodit=t,this.options=mt(!0,{},we.prototype.defaultAjaxOptions,e),this.options.xhr&&(this.xhr=this.options.xhr()),t&&t.events&&t.events.on("beforeDestruct",()=>{this.abort()})}__buildParams(t,e){return this.options.queryBuild&&"function"==typeof this.options.queryBuild?this.options.queryBuild.call(this,t,e):"string"==typeof t||this.jodit.ownerWindow.FormData&&t instanceof this.jodit.ownerWindow.FormData?t:he(t)}abort(){try{this.xhr.abort()}catch(t){}return this}send(){return new Promise((t,e)=>{const i=t=>{let e=null;if("json"===this.options.dataType&&(e=JSON.parse(t)),!e)throw Error("No JSON format");return e};this.xhr.onabort=()=>{e(Error(this.xhr.statusText))},this.xhr.onerror=()=>{e(Error(this.xhr.statusText))},this.xhr.ontimeout=()=>{e(Error(this.xhr.statusText))},this.xhr.onload=()=>{this.response=this.xhr.responseText,this.status=this.xhr.status,t.call(this.xhr,i(this.response)||{})},this.xhr.onreadystatechange=()=>{if(this.xhr.readyState===XMLHttpRequest.DONE){const o=this.xhr.responseText;this.response=o,this.status=this.xhr.status,this.success_response_codes.indexOf(this.xhr.status)>-1?t.call(this.xhr,i(o)):e.call(this.xhr,Error(this.xhr.statusText||this.jodit.i18n("Connection error!")))}},this.xhr.withCredentials=this.options.withCredentials||!1;const{url:o,data:s,method:n}=this.prepareRequest();this.xhr.open(n,o,!0),this.options.contentType&&this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-type",this.options.contentType),this.options.headers&&this.xhr.setRequestHeader&&de(this.options.headers,(t,e)=>{this.xhr.setRequestHeader(t,e)}),setTimeout(()=>{this.xhr.send(s?this.__buildParams(s):void 0)},0)})}prepareRequest(){if(!this.options.url)throw Error("Need URL for AJAX request");let t=this.options.url;const e=this.options.data,i=(this.options.method||"get").toLowerCase();if("get"===i&&e&&ft(e)){const i=t.indexOf("?");if(-1!==i){const o=oe(t);t=t.substr(0,i)+"?"+he({...o,...e})}else t+="?"+he(this.options.data)}const o={url:t,method:i,data:e};return Di.log.splice(100),Di.log.push(o),o}}Di.log=[];class Ri extends Ce{constructor(t){super(t),this.hide=()=>{this.context.classList.remove("jodit_context_menu-show"),this.jodit.ownerWindow.removeEventListener("mouseup",this.hide)},this.context=t.create.div("jodit_context_menu",{"data-editor_id":this.jodit.id}),t.ownerDocument.body.appendChild(this.context)}show(t,e,i,o){const s=this;Array.isArray(i)&&(o&&(this.context.style.zIndex=""+o),this.context.innerHTML="",i.forEach(t=>{if(!t)return;const e=s.jodit.i18n(t.title||""),i=this.jodit.create.fromHTML(`<a title="${e}" data-icon="${t.icon}"  href="javascript:void(0)">`+(t.icon?ge.getIcon(t.icon):"")+"<span></span></a>"),o=i.querySelector("span");i.addEventListener("click",e=>(t.exec&&t.exec.call(s,e),s.hide(),!1)),o.textContent=e,s.context.appendChild(i)}),ne(s.context,{left:t,top:e}),this.jodit.events.on(this.jodit.ownerWindow,"mouseup jodit_close_dialog",s.hide),this.context.classList.add("jodit_context_menu-show"))}destruct(){me.safeRemove(this.context),delete this.context,this.jodit.events.off(this.jodit.ownerWindow,"mouseup",this.hide),super.destruct()}}we.prototype.dialog={resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[]},we.prototype.controls.dialog={close:{icon:"cancel",exec(t){t.close()}},fullsize:{icon:"fullsize",getLabel(t,e,i){if(we.prototype.controls.fullsize&&we.prototype.controls.fullsize.getLabel&&"function"==typeof we.prototype.controls.fullsize.getLabel)return we.prototype.controls.fullsize.getLabel(t,e,i)},exec(t){t.toggleFullSize()}}};class Bi extends Oe{constructor(t,e=we.prototype.dialog){super(t,e),this.destination=document.body,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.container.classList.add("jodit_dialog_box-moved")},this.unlockSelect=()=>{this.container.classList.remove("jodit_dialog_box-moved")},this.onMouseUp=()=>{(this.draggable||this.resizable)&&(this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.jodit&&this.jodit.events&&this.jodit.events.fire(this,"endResize endMove"))},this.onHeaderMouseDown=t=>{const e=t.target;!this.options.draggable||e&&e.nodeName.match(/^(INPUT|SELECT)$/)||(this.draggable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.x=ne(this.dialog,"left"),this.startPoint.y=ne(this.dialog,"top"),this.setMaxZIndex(),t.preventDefault(),this.lockSelect(),this.jodit&&this.jodit.events&&this.jodit.events.fire(this,"startMove"))},this.onMouseMove=t=>{this.draggable&&this.options.draggable&&(this.setPosition(this.startPoint.x+t.clientX-this.startX,this.startPoint.y+t.clientY-this.startY),this.jodit&&this.jodit.events&&this.jodit.events.fire(this,"move",t.clientX-this.startX,t.clientY-this.startY),t.stopImmediatePropagation(),t.preventDefault()),this.resizable&&this.options.resizable&&(this.setSize(this.startPoint.w+t.clientX-this.startX,this.startPoint.h+t.clientY-this.startY),this.jodit&&this.jodit.events&&this.jodit.events.fire(this,"resizeDialog",t.clientX-this.startX,t.clientY-this.startY),t.stopImmediatePropagation(),t.preventDefault())},this.onKeyDown=t=>{if(this.isOpened()&&t.which===w){const e=this.getMaxZIndexDialog();e?e.close():this.close(),t.stopImmediatePropagation()}},this.onResize=()=>{this.options&&this.options.resizable&&!this.moved&&this.isOpened()&&!this.offsetX&&!this.offsetY&&this.setPosition()},this.document=document,this.window=window,this.close=t=>{this.isDestructed||(t&&(t.stopImmediatePropagation(),t.preventDefault()),this.jodit&&this.jodit.events&&this.jodit.events.fire("beforeClose",this),this.container&&this.container.classList&&this.container.classList.remove("active"),this.iSetMaximization&&this.maximization(!1),this.destroyAfterClose&&this.destruct(),this.jodit&&this.jodit.events&&(this.jodit.events.fire(this,"afterClose"),this.jodit.events.fire(this.ownerWindow,"jodit_close_dialog")))},xe(t)&&(this.window=t.ownerWindow,this.document=t.ownerDocument,t.events.on("beforeDestruct",()=>{this.destruct()})),this.options={...t&&t.options?t.options.dialog:we.prototype.dialog,...this.options},this.container=this.create.fromHTML('<div style="z-index:'+this.options.zIndex+'" class="jodit jodit_dialog_box"><div class="jodit_dialog_overlay"></div><div class="jodit_dialog"><div class="jodit_dialog_header non-selected"><div class="jodit_dialog_header-title"></div><div class="jodit_dialog_header-toolbar"></div></div><div class="jodit_dialog_content"></div><div class="jodit_dialog_footer"></div>'+(this.options.resizable?'<div class="jodit_dialog_resizer"></div>':"")+"</div></div>"),t&&t.id&&this.container.setAttribute("data-editor_id",t.id),Object.defineProperty(this.container,"__jodit_dialog",{value:this}),this.dialog=this.container.querySelector(".jodit_dialog"),this.resizer=this.container.querySelector(".jodit_dialog_resizer"),this.jodit&&this.jodit.options&&this.jodit.options.textIcons&&this.container.classList.add("jodit_text_icons"),this.dialogbox_header=this.container.querySelector(".jodit_dialog_header>.jodit_dialog_header-title"),this.dialogbox_content=this.container.querySelector(".jodit_dialog_content"),this.dialogbox_footer=this.container.querySelector(".jodit_dialog_footer"),this.dialogbox_toolbar=this.container.querySelector(".jodit_dialog_header>.jodit_dialog_header-toolbar"),this.destination.appendChild(this.container),this.container.addEventListener("close_dialog",this.close),this.toolbar=Ge.makeCollection(this),this.toolbar.build(this.options.buttons,this.dialogbox_toolbar),this.events.on(this.window,"mousemove",this.onMouseMove).on(this.window,"mouseup",this.onMouseUp).on(this.window,"keydown",this.onKeyDown).on(this.window,"resize",this.onResize);const i=this.container.querySelector(".jodit_dialog_header");i&&i.addEventListener("mousedown",this.onHeaderMouseDown.bind(this)),this.options.resizable&&this.resizer.addEventListener("mousedown",this.onResizerMouseDown.bind(this)),Qe.plugins.fullsize(this)}setElements(t,e){const i=[];et(e).forEach(e=>{const o="string"==typeof e?this.create.fromHTML(e):e;i.push(o),o.parentNode!==t&&t.appendChild(o)}),Array.from(t.childNodes).forEach(e=>{-1===i.indexOf(e)&&t.removeChild(e)})}onResizerMouseDown(t){this.resizable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.jodit.events&&this.jodit.events.fire(this,"startResize")}setSize(t,e){t&&ne(this.dialog,"width",t),e&&ne(this.dialog,"height",e)}setPosition(t,e){let i=this.window.innerWidth/2-this.dialog.offsetWidth/2,o=this.window.innerHeight/2-this.dialog.offsetHeight/2;0>i&&(i=0),0>o&&(o=0),void 0!==t&&void 0!==e&&(this.offsetX=t,this.offsetY=e,this.moved=Math.abs(t-i)>100||Math.abs(e-o)>100),this.dialog.style.left=(t||i)+"px",this.dialog.style.top=(e||o)+"px"}setTitle(t){this.setElements(this.dialogbox_header,t)}setContent(t){this.setElements(this.dialogbox_content,t)}setFooter(t){this.setElements(this.dialogbox_footer,t),this.dialog.classList.toggle("with_footer",!!t)}getZIndex(){return parseInt(this.container.style.zIndex||"0",10)}getMaxZIndexDialog(){let t,e,i=0,o=this;return zt(".jodit_dialog_box",this.destination).forEach(s=>{t=s.__jodit_dialog,e=parseInt(ne(s,"zIndex"),10),t.isOpened()&&!isNaN(e)&&e>i&&(o=t,i=e)}),o}setMaxZIndex(){let t=0,e=0;zt(".jodit_dialog_box",this.destination).forEach(i=>{e=parseInt(ne(i,"zIndex"),10),t=Math.max(isNaN(e)?0:e,t)}),this.container.style.zIndex=""+(t+1)}maximization(t){return"boolean"!=typeof t&&(t=!this.container.classList.contains("jodit_dialog_box-fullsize")),this.container.classList.toggle("jodit_dialog_box-fullsize",t),[this.destination,this.destination.parentNode].forEach(e=>{e&&e.classList&&e.classList.toggle("jodit_fullsize_box",t)}),this.iSetMaximization=t,t}open(t,e,i,o){this.jodit&&this.jodit.events&&!1===this.jodit.events.fire(this,"beforeOpen")||(this.destroyAfterClose=!0===i,void 0!==e&&this.setTitle(e),t&&this.setContent(t),this.container.classList.add("active"),o&&this.container.classList.add("jodit_modal"),this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex(),this.options.fullsize&&this.maximization(!0),this.jodit&&this.jodit.events&&this.jodit.events.fire("afterOpen",this))}isOpened(){return!this.isDestructed&&this.container&&this.container.classList.contains("active")}destruct(){this.isDestructed||(this.toolbar&&(this.toolbar.destruct(),delete this.toolbar),this.events&&this.events.off(this.window,"mousemove",this.onMouseMove).off(this.window,"mouseup",this.onMouseUp).off(this.window,"keydown",this.onKeyDown).off(this.window,"resize",this.onResize),!this.jodit&&this.events&&(this.events.destruct(),delete this.events),this.container&&(me.safeRemove(this.container),delete this.container),super.destruct())}}const Hi=(t,e,i,o="jodit_alert")=>{"function"==typeof e&&(i=e,e=void 0);const s=new Bi,n=s.create.div(o),r=s.create.fromHTML('<a href="javascript:void(0)" style="float:right;" class="jodit_button">'+ge.getIcon("cancel")+"<span>"+Qe.prototype.i18n("Ok")+"</span></a>");return et(t).forEach(t=>{n.appendChild(me.isNode(t,s.window)?t:s.create.fromHTML(t))}),r.addEventListener("click",()=>{i&&"function"==typeof i&&!1===i(s)||s.close()}),s.setFooter([r]),s.open(n,e||"&nbsp;",!0,!0),r.focus(),s},Pi=(t,e,i,o,s)=>{const n=new Bi,r=n.create.fromHTML('<a href="javascript:void(0)" style="float:right;" class="jodit_button">'+ge.getIcon("cancel")+"<span>"+Qe.prototype.i18n("Cancel")+"</span></a>"),a=n.create.fromHTML('<a href="javascript:void(0)" style="float:left;" class="jodit_button">'+ge.getIcon("check")+"<span>"+Qe.prototype.i18n("Ok")+"</span></a>"),l=n.create.element("form",{class:"jodit_promt"}),d=n.create.element("input",{autofocus:!0,class:"jodit_input"}),c=n.create.element("label");"function"==typeof e&&(i=e,e=void 0),o&&d.setAttribute("placeholder",o),c.appendChild(n.create.text(t)),l.appendChild(c),l.appendChild(d),r.addEventListener("click",n.close,!1);const h=()=>{i&&"function"==typeof i&&!1===i(d.value)||n.close()};return a.addEventListener("click",h),l.addEventListener("submit",()=>(h(),!1)),n.setFooter([a,r]),n.open(l,e||"&nbsp;",!0,!0),d.focus(),void 0!==s&&s.length&&(d.value=s,d.select()),n},Oi=(t,e,i)=>{const o=new Bi,s=o.create.fromHTML('<form class="jodit_promt"></form>'),n=o.create.element("label");"function"==typeof e&&(i=e,e=void 0),n.appendChild(o.create.fromHTML(t)),s.appendChild(n);const r=o.create.fromHTML('<a href="javascript:void(0)" style="float:right;" class="jodit_button">'+ge.getIcon("cancel")+"<span>"+Qe.prototype.i18n("Cancel")+"</span></a>");r.addEventListener("click",()=>{i&&i(!1),o.close()});const a=()=>{i&&i(!0),o.close()},l=o.create.fromHTML('<a href="javascript:void(0)" style="float:left;" class="jodit_button">'+ge.getIcon("check")+"<span>"+Qe.prototype.i18n("Yes")+"</span></a>");return l.addEventListener("click",a),s.addEventListener("submit",()=>(a(),!1)),o.setFooter([l,r]),o.open(s,e||"&nbsp;",!0,!0),l.focus(),o};class Fi extends Ce{constructor(t){super(t),this.destruct=()=>{this.isDestructed||(this.jodit.events&&this.jodit.events.off("beforeDestruct",this.destruct),this.beforeDestruct(this.jodit),super.destruct())},t.events.on("afterInit",this.afterInit.bind(this,t)).on("beforeDestruct",this.destruct)}}const Vi="jodit_filebrowser",Wi=Vi+"_files_item",$i='<i class="jodit_icon-loader"></i>';we.prototype.filebrowser={filter:(t,e)=>(e=e.toLowerCase(),"string"==typeof t?-1!==t.toLowerCase().indexOf(e):"string"==typeof t.name?-1!==t.name.toLowerCase().indexOf(e):"string"!=typeof t.file||-1!==t.file.toLowerCase().indexOf(e)),sortBy:"changed-desc",sort(t,e,i){const[o,s]=i.toLowerCase().split("-"),n="asc"===s,r=(t,e)=>e>t?n?-1:1:t>e?n?1:-1:0;if("string"==typeof t)return r(t.toLowerCase(),e.toLowerCase());if(void 0===t[o]||"name"===o)return"string"==typeof t.name?r(t.name.toLowerCase(),e.name.toLowerCase()):"string"==typeof t.file?r(t.file.toLowerCase(),e.file.toLowerCase()):0;switch(o){case"changed":{const i=new Date(t.changed).getTime(),o=new Date(e.changed).getTime();return n?i-o:o-i}case"size":{const i=ce(t.size),o=ce(e.size);return n?i-o:o-i}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,moveFolder:!0,moveFile:!0,showFoldersPanel:!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:t=>t.success,getMessage:t=>void 0!==t.data.messages&&Array.isArray(t.data.messages)?t.data.messages.join(" "):"",showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:!0,getThumbTemplate(t,e,i){const o=this.options,s=o.showFileName,n=o.showFileSize&&t.size,r=o.showFileChangeTime&&t.time;let a,l="";return void 0!==t.file&&(l=t.file),a=`<div class="${Wi}-info">`+(s?`<span class="${Wi}-info-filename">${l}</span>`:"")+(n?`<span class="${Wi}-info-filesize">${t.size}</span>`:"")+(r?`<span class="${Wi}-info-filechanged">${r}</span>`:"")+"</div>","<a "+`data-is-file="${t.isImage?0:1}" `+'draggable="true" '+`class="${Wi}" `+`href="${t.fileURL}" `+`data-source="${i}" `+`data-path="${t.path}" `+`data-name="${l}" `+`title="${l}" `+`data-url="${t.fileURL}"`+"><img "+`data-is-file="${t.isImage?0:1}" `+`data-src="${t.fileURL}" `+`src="${t.imageURL}" `+`alt="${l}" `+'loading="lazy" />'+(s||n||r?a:"")+"</a>"},ajax:{url:"",async:!0,data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,dataType:"json",headers:{},prepareData:t=>t,process:t=>t},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"}},uploader:null},we.prototype.controls.filebrowser={upload:{icon:"plus",isInput:!0,exec(){},isDisable:t=>!t.dataProvider.canI("FileUpload"),getContent(t,e){const i=t.create.fromHTML('<span class="jodit_upload_button">'+ge.getIcon("plus")+'<input type="file" accept="'+(t.state.onlyImages?"image/*":"*")+'" tabindex="-1" dir="auto" multiple=""/></span>'),o=i.querySelector("input");return t.events.on("updateToolbar",()=>{e&&e.isDisable&&(e.isDisable(t,e)?o.setAttribute("disabled","disabled"):o.removeAttribute("disabled"))}).fire("bindUploader.filebrowser",i),i}},remove:{icon:"bin",isDisable:t=>!t.state.activeElements.length||!t.dataProvider.canI("FileRemove"),exec(t){t.events.fire("fileRemove.filebrowser")}},update:{exec(t){t.events.fire("update.filebrowser")}},select:{icon:"check",isDisable:t=>!t.state.activeElements.length,exec(t){t.events.fire("select.filebrowser")}},edit:{icon:"pencil",isDisable(t){const e=t.state.activeElements;return 1!==e.length||!e[0].isImage||!(t.dataProvider.canI("ImageCrop")||t.dataProvider.canI("ImageResize"))},exec(t){t.events.fire("edit.filebrowser")}},tiles:{icon:"th",isActive:t=>"tiles"===t.state.view,exec(t){t.events.fire("view.filebrowser","tiles")}},list:{icon:"th-list",isActive:t=>"list"===t.state.view,exec(t){t.events.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent(t){const e=t.create.element("input",{class:"jodit_input",placeholder:t.i18n("Filter")});return t.events.on(e,"keydown mousedown",nt(()=>{t.events.fire("filter.filebrowser",e.value)},t.defaultTimeout)),e}},sort:{isInput:!0,getContent(t){const e=t.create.fromHTML('<select class="jodit_input jodit_select">'+`<option value="changed-asc">${t.i18n("Sort by changed")} (⬆)</option>`+`<option value="changed-desc">${t.i18n("Sort by changed")} (⬇)</option>`+`<option value="name-asc">${t.i18n("Sort by name")} (⬆)</option>`+`<option value="name-desc">${t.i18n("Sort by name")} (⬇)</option>`+`<option value="size-asc">${t.i18n("Sort by size")} (⬆)</option>`+`<option value="size-desc">${t.i18n("Sort by size")} (⬇)</option>`+"</select>");return t.events.on("sort.filebrowser",t=>{e.value!==t&&(e.value=t)}).on(e,"change",()=>{t.events.fire("sort.filebrowser",e.value)}),e}}};const Ui="default";class Ki{constructor(t,e){this.options=t,this.parent=e,this.__currentPermissions=null,this.currentPath="",this.currentSource=Ui,this.currentBaseUrl="",this.getPathByUrl=(t,e,i)=>(this.options.getLocalFileByUrl.data.url=t,this.get("getLocalFileByUrl",t=>{this.options.isSuccess(t)?e(t.data.path,t.data.name,t.data.source):i(Error(this.options.getMessage(t)))},i))}canI(t){const e="allow"+t;return null===this.__currentPermissions||void 0===this.__currentPermissions[e]||this.__currentPermissions[e]}get(t,e,i){const o=mt(!0,{},this.options.ajax,void 0!==this.options[t]?this.options[t]:this.options.ajax);o.prepareData&&(o.data=o.prepareData.call(this,o.data));const s=new Di(this.parent,o).send();return e&&s.then(e),i&&s.catch(i),s}async permissions(t=this.currentPath,e=this.currentSource){return this.options.permissions?(this.options.permissions.data.path=t,this.options.permissions.data.source=e,this.options.permissions.url?this.get("permissions").then(t=>{let e=this.options.permissions.process;if(e||(e=this.options.ajax.process),e){const i=e.call(self,t);i.data.permissions&&(this.__currentPermissions=i.data.permissions)}}):Promise.resolve()):Promise.resolve()}async items(t=this.currentPath,e=this.currentSource){const i=this.options;return i.items?(i.items.data.path=t,i.items.data.source=e,this.get("items")):Promise.reject("Set Items api options")}async tree(t=this.currentPath,e=this.currentSource){return t=Ut(t),await this.permissions(t,e),this.options.folder?(this.options.folder.data.path=t,this.options.folder.data.source=e,this.get("folder")):Promise.reject("Set Folder Api options")}createFolder(t,e,i){return this.options.create?(this.options.create.data.source=i,this.options.create.data.path=e,this.options.create.data.name=t,this.get("create").then(t=>(this.currentPath=e,this.currentSource=i,t))):Promise.reject("Set Create api options")}move(t,e,i,o){const s=o?"fileMove":"folderMove",n=this.options[s];return n?(n.data.from=t,n.data.path=e,n.data.source=i,this.get(s)):Promise.reject("Set Move api options")}fileRemove(t,e,i){return this.options.fileRemove?(this.options.fileRemove.data.path=t,this.options.fileRemove.data.name=e,this.options.fileRemove.data.source=i,this.get("fileRemove")):Promise.reject("Set fileRemove api options")}folderRemove(t,e,i){return this.options.folderRemove?(this.options.folderRemove.data.path=t,this.options.folderRemove.data.name=e,this.options.folderRemove.data.source=i,this.get("folderRemove")):Promise.reject("Set folderRemove api options")}folderRename(t,e,i,o){return this.options.folderRename?(this.options.folderRename.data.path=t,this.options.folderRename.data.name=e,this.options.folderRename.data.newname=i,this.options.folderRename.data.source=o,this.get("folderRename")):Promise.reject("Set folderRename api options")}fileRename(t,e,i,o){return this.options.fileRename?(this.options.fileRename.data.path=t,this.options.fileRename.data.name=e,this.options.fileRename.data.newname=i,this.options.fileRename.data.source=o,this.get("fileRename")):Promise.reject("Set fileRename api options")}crop(t,e,i,o,s){return this.options.crop||(this.options.crop={data:{}}),void 0===this.options.crop.data&&(this.options.crop.data={action:"crop"}),this.options.crop.data.newname=o||i,s&&(this.options.crop.data.box=s),this.options.crop.data.path=t,this.options.crop.data.name=i,this.options.crop.data.source=e,this.get("crop")}resize(t,e,i,o,s){return this.options.resize||(this.options.resize={data:{}}),void 0===this.options.resize.data&&(this.options.resize.data={action:"resize"}),this.options.resize.data.newname=o||i,s&&(this.options.resize.data.box=s),this.options.resize.data.path=t,this.options.resize.data.name=i,this.options.resize.data.source=e,this.get("resize")}}const Xi=Vi+"_preview_",Yi=(t="next",e="right")=>`<a href="javascript:void(0)" class="${Xi}navigation ${Xi}navigation-${t}">`+""+ge.getIcon("angle-"+e)+"</a>";var Gi=t=>{if(!t.options.contextMenu)return()=>{};const e=new Ri(t.jodit||t);return function(i){let o=this,s=t.options,n=t=>o.getAttribute(t)||"";return st(()=>{e.show(i.pageX,i.pageY,[!("1"===n("data-is-file")||!s.editImage||!t.dataProvider.canI("ImageResize")&&!t.dataProvider.canI("ImageCrop"))&&{icon:"pencil",title:"Edit",exec(){t.openImageEditor(n("href"),n("data-name"),n("data-path"),n("data-source"))}},!!t.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",async exec(){t.events.fire("fileRename.filebrowser",n("data-name"),n("data-path"),n("data-source"))}},!!t.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",async exec(){await t.deleteFile(n("data-name"),n("data-source")),t.state.activeElements=[],t.loadTree()}},!!s.preview&&{icon:"eye",title:"Preview",exec(){var e,i;const r=new Bi(t),a=t.create.div(Vi+"_preview",$i),l=t.create.div(Vi+"_preview_box"),d=t.create.fromHTML(Yi()),c=t.create.fromHTML(Yi("prev","left")),h=e=>{const i=t.create.element("img");i.setAttribute("src",e);const n=()=>{var e,h;i.removeEventListener("load",n),a.innerHTML="",s.showPreviewNavigation&&(me.prevWithClass(o,Wi)&&a.appendChild(c),me.nextWithClass(o,Wi)&&a.appendChild(d)),a.appendChild(l),l.appendChild(i),r.setPosition(),null===(h=null===(e=t)||void 0===e?void 0:e.events)||void 0===h||h.fire("previewOpenedAndLoaded")};i.addEventListener("load",n),i.complete&&n()};h(n("href")),t.events.on([d,c],"click",(function(){if(o=this.classList.contains(Xi+"navigation-next")?me.nextWithClass(o,Wi):me.prevWithClass(o,Wi),!o)throw Error("Need element");me.detach(a),me.detach(l),a.innerHTML=$i,h(n("href"))})),r.setContent(a),r.setPosition(),r.open(),null===(i=null===(e=t)||void 0===e?void 0:e.events)||void 0===i||i.fire("previewOpened")}},{icon:"upload",title:"Download",exec(){const e=n("href");e&&t.ownerWindow.open(e)}}],t.dialog.getZIndex()+1)},t.defaultTimeout),i.stopPropagation(),i.preventDefault(),!1}};class Ji{constructor(t){this.data=t,this.__onEvents={},this.__lockEvent={},Object.keys(t).forEach(e=>{Object.defineProperty(this,e,{set:i=>{this.fire(["beforeChange",`beforeChange.${e}`],e,i),t[e]=i,this.fire(["change",`change.${e}`],e,i)},get:()=>t[e]})})}on(t,e){return Array.isArray(t)?(t.map(t=>this.on(t,e)),this):(this.__onEvents[t]||(this.__onEvents[t]=[]),this.__onEvents[t].push(e),this)}fire(t,...e){if(Array.isArray(t))t.map(t=>this.fire(t,...e));else try{!this.__lockEvent[t]&&this.__onEvents[t]&&(this.__lockEvent[t]=!0,this.__onEvents[t].forEach(t=>t.call(this,...e)))}catch(t){}finally{this.__lockEvent[t]=!1}}static create(t){return new Ji(t)}}class Zi{constructor(t){this.data=t,mt(this,t)}static create(t){return new Zi(t)}get path(){return $t(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){const t=""+(new Date).getTime(),{thumbIsAbsolute:e,source:i,thumb:o,file:s}=this.data,n=o||s;return e&&n?n:Xt(i.baseurl,i.path,n||"")+"?_tmst="+t}get fileURL(){let{name:t,file:e,fileIsAbsolute:i,source:o}=this.data;return void 0!==e&&(t=e),i&&t?t:Xt(o.baseurl,o.path,t||"")}get time(){const{changed:t}=this.data;return t&&("number"==typeof t?new Date(t).toLocaleString():t)||""}get uniqueHashKey(){const t=this.data;let e=[t.sourceName,t.name,t.file,this.time,t.thumb].join("_");return e=e.toLowerCase().replace(/[^0-9a-z\-.]/g,"-"),e}}const Qi=t=>!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_\.]/.test(t),to="default",eo=Wi+"-active-true";class io extends Je{constructor(t,e){super(t,e),this.loader=this.create.div(Vi+"_loader",$i),this.browser=this.create.div(Vi+" non-selected"),this.status_line=this.create.div(Vi+"_status"),this.tree=this.create.div(Vi+"_tree"),this.files=this.create.div(Vi+"_files"),this.state=Ji.create({activeElements:[],elements:[],folders:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=t=>{this.status(t instanceof Error?this.i18n(t.message):this.options.getMessage(t))},this.status=(t,e)=>{"string"!=typeof t&&(t=t.message),clearTimeout(this.statusTimer),this.status_line.classList.remove("success"),this.status_line.classList.add("active");const i=this.create.div();i.textContent=t,this.status_line.appendChild(i),e&&this.status_line.classList.add("success"),this.statusTimer=st(()=>{this.status_line.classList.remove("active"),me.detach(this.status_line)},this.options.howLongShowMsg)},this.close=()=>{this.dialog.close()},this.open=(t,e=!1)=>(this.state.onlyImages=e,new Promise((e,i)=>{if(!this.options.items||!this.options.items.url)throw Error("Need set options.filebrowser.ajax.url");let o=0;this.events.off(this.files,"dblclick").on(this.files,"dblclick",this.onSelect(t),"a").on(this.files,"touchstart",()=>{const e=(new Date).getTime();K>e-o&&this.onSelect(t)(),o=e},"a").off("select.filebrowser").on("select.filebrowser",this.onSelect(t));const s=this.create.div();this.toolbar.build(this.options.buttons,s),this.dialog.dialogbox_header.classList.add(Vi+"_title_box"),this.dialog.open(this.browser,s),this.events.fire("sort.filebrowser",this.state.sortBy),this.loadTree().then(e,i)})),this.openImageEditor=(t,e,i,o,s,n)=>this.getInstance("ImageEditor").open(t,(t,r,a,l)=>{let d;d="resize"===r.action?this.dataProvider.resize(i,o,e,t,r.box):this.dataProvider.crop(i,o,e,t,r.box),d.then(t=>{this.options.isSuccess(t)?this.loadTree().then(()=>{a(),s&&s()}):(l(Error(this.options.getMessage(t))),n&&n(Error(this.options.getMessage(t))))}).catch(t=>{l(t),n&&n(t)})}),this.elementsMap={};const i=this,o=t?t.ownerDocument:document,s=t?t.editorDocument:o;t&&(this.id=t.id),i.options=new ke(mt(!0,{},i.options,we.defaultOptions.filebrowser,e,t?t.options.filebrowser:void 0)),i.storage=Ie.makeStorage(this.options.filebrowser.saveStateInStorage),i.dataProvider=new Ki(i.options,i.jodit||i),i.dialog=new Bi(t||i,{fullsize:i.options.fullsize,buttons:["dialog.fullsize","dialog.close"]}),i.options.showFoldersPanel&&i.browser.appendChild(i.tree),i.browser.appendChild(i.files),i.browser.appendChild(i.status_line),this.initEventsListeners(),this.initNativeEventsListeners(),i.dialog.setSize(i.options.width,i.options.height),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{null!==this.options[t]&&(this.options[t]=mt(!0,{},this.options.ajax,this.options[t]))}),i.stateToView();const n=this.storage.get(Vi+"_view");i.state.view=n&&null===this.options.view?"list"===n?"list":"tiles":"list"===i.options.view?"list":"tiles";const r=i.storage.get(Vi+"_sortby");if(r){const t=r.split("-");i.state.sortBy=["changed","name","size"].includes(t[0])?r:"changed-desc"}else i.state.sortBy=i.options.sortBy||"changed-desc";i.dataProvider.currentBaseUrl=zt("base",s).length?zt("base",s)[0].getAttribute("href")||"":location.protocol+"//"+location.host,i.initUploader(t)}get defaultTimeout(){return this.jodit&&this.jodit!==this?this.jodit.defaultTimeout:we.defaultOptions.observer.timeout}async loadItems(t=this.dataProvider.currentPath,e=this.dataProvider.currentSource){return this.files.classList.add("active"),this.files.appendChild(this.loader.cloneNode(!0)),this.dataProvider.items(t,e).then(t=>{let e=this.options.items.process;if(e||(e=this.options.ajax.process),e){const i=e.call(self,t);this.generateItemsList(i.data.sources),this.state.activeElements=[]}}).catch(t=>{Hi(t.message),this.errorHandler(t)})}async loadTree(){const t=this.dataProvider.currentPath,e=this.dataProvider.currentSource,i=t=>{throw t instanceof Error?t:Error(t)};if(this.uploader&&(this.uploader.setPath(t),this.uploader.setSource(e)),this.tree.classList.add("active"),me.detach(this.tree),this.tree.appendChild(this.loader.cloneNode(!0)),this.options.showFoldersPanel){const o=this.dataProvider.tree(t,e).then(t=>{let e=this.options.folder.process;if(e||(e=this.options.ajax.process),e){const i=e.call(self,t);this.generateFolderTree(i.data.sources)}}).catch(t=>{this.errorHandler(Error(this.jodit.i18n("Error on load folders"))),i(t)}),s=this.loadItems(t,e);return Promise.all([o,s]).catch(i)}this.tree.classList.remove("active")}async deleteFile(t,e){return this.dataProvider.fileRemove(this.dataProvider.currentPath,t,e).then(e=>{if(this.options.remove&&this.options.remove.process&&(e=this.options.remove.process.call(this,e)),!this.options.isSuccess(e))throw Error(this.options.getMessage(e));this.status(this.options.getMessage(e)||this.i18n('File "%s" was deleted',t),!0)}).catch(this.status)}generateFolderTree(t){const e=[];de(t,(t,i)=>{i.folders.forEach(o=>{e.push({name:o,source:i,sourceName:t})})}),this.state.folders=e}generateItemsList(t){const e=[],i=this.state,o=t=>!this.state.onlyImages||void 0===t.isImage||t.isImage,s=t=>!i.filterWord.length||void 0===this.options.filter||this.options.filter(t,i.filterWord);de(t,(t,n)=>{n.files&&n.files.length&&("function"==typeof this.options.sort&&n.files.sort((t,e)=>this.options.sort(t,e,i.sortBy)),n.files.forEach(i=>{s(i)&&o(i)&&e.push(Zi.create({...i,sourceName:t,source:n}))}))}),this.state.elements=e}onSelect(t){return()=>{if(this.state.activeElements.length){const e=[];this.state.activeElements.forEach(t=>{const i=t.fileURL;i&&e.push(i)}),this.close(),"function"==typeof t&&t({baseurl:"",files:e})}return!1}}isOpened(){return this.dialog.isOpened()&&"none"!==this.browser.style.display}elementToItem(t){const{key:e}=t.dataset,{item:i}=this.elementsMap[e||""];return i}stateToView(){const{state:t,files:e,create:i,options:o}=this,s=t=>{const e=t.uniqueHashKey;if(this.elementsMap[e])return this.elementsMap[e].elm;const s=i.fromHTML(o.getThumbTemplate.call(this,t,t.source,""+t.sourceName));return s.dataset.key=e,this.elementsMap[e]={item:t,elm:s},this.elementsMap[e].elm};t.on("beforeChange.activeElements",()=>{t.activeElements.forEach(t=>{const e=t.uniqueHashKey,{elm:i}=this.elementsMap[e];i&&i.classList.remove(eo)})}).on("change.activeElements",()=>{this.events.fire("changeSelection"),t.activeElements.forEach(t=>{const e=t.uniqueHashKey,{elm:i}=this.elementsMap[e];i&&i.classList.add(eo)})}).on("change.view",()=>{e.classList.remove(Vi+"_files_view-tiles"),e.classList.remove(Vi+"_files_view-list"),e.classList.add(Vi+"_files_view-"+t.view),this.storage.set(Vi+"_view",t.view)}).on("change.sortBy",()=>{this.storage.set(Vi+"_sortby",t.sortBy)}).on("change.elements",nt(()=>{me.detach(e),t.elements.length?t.elements.forEach(t=>{this.files.appendChild(s(t))}):e.appendChild(i.div(Vi+"_no_files",this.i18n("There are no files")))},this.defaultTimeout)).on("change.folders",nt(()=>{me.detach(this.tree);let e=to,s=null;const n=(t,e,n=!1)=>{t&&s&&(t!==s||n)&&o.createNewFolder&&this.dataProvider.canI("FolderCreate")&&(this.tree.appendChild(i.a("jodit_button addfolder",{href:"javascript:void(0)","data-path":$t(t.path+"/"),"data-source":e},ge.getIcon("plus")+" "+this.i18n("Add folder"))),s=t)};t.folders.forEach(t=>{const{name:r,source:a,sourceName:l}=t;l&&l!==e&&(this.tree.appendChild(i.div(Vi+"_source_title",l)),e=l);const d=i.a(Vi+"_tree_item",{draggable:"draggable",href:"javascript:void(0)","data-path":$t(a.path,r+"/"),"data-name":r,"data-source":l,"data-source-path":a.path},i.span(Vi+"_tree_item_title",r));n(a,l),s=a,this.tree.appendChild(d),".."!==r&&"."!==r&&(o.deleteFolder&&this.dataProvider.canI("FolderRename")&&d.appendChild(i.element("i",{class:"jodit_icon_folder jodit_icon_folder_rename",title:this.i18n("Rename")},ge.getIcon("pencil"))),o.deleteFolder&&this.dataProvider.canI("FolderRemove")&&d.appendChild(i.element("i",{class:"jodit_icon_folder jodit_icon_folder_remove",title:this.i18n("Delete")},ge.getIcon("cancel"))))}),n(s,e,!0)},this.defaultTimeout))}initEventsListeners(){const t=this.state,e=this;e.events.on("view.filebrowser",e=>{e!==t.view&&(t.view=e)}).on("sort.filebrowser",i=>{i!==t.sortBy&&(t.sortBy=i,e.loadItems())}).on("filter.filebrowser",i=>{i!==t.filterWord&&(t.filterWord=i,e.loadItems())}).on("fileRemove.filebrowser",()=>{e.state.activeElements.length&&Oi(e.i18n("Are you sure?"),"",t=>{if(t){const t=[];e.state.activeElements.forEach(i=>{t.push(e.deleteFile(i.file||i.name||"",i.sourceName))}),e.state.activeElements=[],Promise.all(t).then(()=>e.loadTree())}})}).on("edit.filebrowser",()=>{if(1===e.state.activeElements.length){const[t]=this.state.activeElements;e.openImageEditor(t.fileURL,t.file||"",t.path,t.sourceName)}}).on("fileRename.filebrowser",(t,i,o)=>{1===e.state.activeElements.length&&Pi(e.i18n("Enter new name"),e.i18n("Rename"),s=>{if(!Qi(s))return e.status(e.i18n("Enter new name")),!1;e.dataProvider.fileRename(i,t,s,o).then(t=>{if(e.options.fileRename&&e.options.fileRename.process&&(t=e.options.fileRename.process.call(e,t)),!e.options.isSuccess(t))throw Error(e.options.getMessage(t));e.state.activeElements=[],e.status(e.options.getMessage(t),!0),e.loadItems()}).catch(e.status)},e.i18n("type name"),t)}).on("update.filebrowser",()=>{e.loadTree()})}initNativeEventsListeners(){let t=!1;const e=this;e.events.on(e.tree,"click",(function(t){const i=this.parentNode,o=i.getAttribute("data-path")||"";return Oi(e.i18n("Are you sure?"),e.i18n("Delete"),t=>{t&&e.dataProvider.folderRemove(o,i.getAttribute("data-name")||"",i.getAttribute("data-source")||"").then(t=>{if(e.options.folderRemove&&e.options.folderRemove.process&&(t=e.options.folderRemove.process.call(e,t)),!e.options.isSuccess(t))throw Error(e.options.getMessage(t));e.state.activeElements=[],e.status(e.options.getMessage(t),!0),e.loadTree()}).catch(e.status)}),t.stopImmediatePropagation(),!1}),"a>.jodit_icon_folder_remove").on(e.tree,"click",(function(t){const i=this.parentNode,o=i.getAttribute("data-name")||"",s=i.getAttribute("data-source-path")||"";return Pi(e.i18n("Enter new name"),e.i18n("Rename"),t=>{if(!Qi(t))return e.status(e.i18n("Enter new name")),!1;e.dataProvider.folderRename(s,i.getAttribute("data-name")||"",t,i.getAttribute("data-source")||"").then(t=>{if(e.options.folderRename&&e.options.folderRename.process&&(t=e.options.folderRename.process.call(e,t)),!e.options.isSuccess(t))throw Error(e.options.getMessage(t));e.state.activeElements=[],e.status(e.options.getMessage(t),!0),e.loadTree()}).catch(e.status)},e.i18n("type name"),o),t.stopImmediatePropagation(),!1}),"a>.jodit_icon_folder_rename").on(e.tree,"click",(function(){this.classList.contains("addfolder")?Pi(e.i18n("Enter Directory name"),e.i18n("Create directory"),t=>{e.dataProvider.createFolder(t,this.getAttribute("data-path")||"",this.getAttribute("data-source")||"").then(t=>(e.options.isSuccess(t)?e.loadTree():e.status(e.options.getMessage(t)),t),e.status)},e.i18n("type name")):(e.dataProvider.currentPath=this.getAttribute("data-path")||"",e.dataProvider.currentSource=this.getAttribute("data-source")||"",e.loadTree())}),"a").on(e.tree,"dragstart",(function(){e.options.moveFolder&&(t=this)}),"a").on(e.tree,"drop",(function(){if((e.options.moveFile||e.options.moveFolder)&&t){let i=t.getAttribute("data-path")||"";if(!e.options.moveFolder&&t.classList.contains(Vi+"_tree_item"))return!1;if(t.classList.contains(Wi)&&(i+=t.getAttribute("data-name"),!e.options.moveFile))return!1;e.dataProvider.move(i,this.getAttribute("data-path")||"",this.getAttribute("data-source")||"",t.classList.contains(Wi)).then(t=>{e.options.isSuccess(t)?e.loadTree():e.status(e.options.getMessage(t))},e.status),t=!1}}),"a").on(e.files,"contextmenu",Gi(e),"a").on(e.files,"click",t=>{ae(t)||(this.state.activeElements=[])}).on(e.files,"click",(function(t){const i=e.elementToItem(this);if(i)return e.state.activeElements=ae(t)?[...e.state.activeElements,i]:[i],t.stopPropagation(),!1}),"a").on(e.files,"dragstart",(function(){e.options.moveFile&&(t=this)}),"a").on(e.dialog.container,"drop",t=>t.preventDefault())}initUploader(t){var e,i;const o=this,s=mt(!0,{},we.defaultOptions.uploader,o.options.uploader,{...null===(i=null===(e=t)||void 0===e?void 0:e.options)||void 0===i?void 0:i.uploader}),n=()=>{this.loadItems()};o.uploader=o.getInstance("Uploader",s),o.uploader.setPath(o.dataProvider.currentPath),o.uploader.setSource(o.dataProvider.currentSource),o.uploader.bind(o.browser,n,o.errorHandler),o.events.on("bindUploader.filebrowser",t=>{o.uploader.bind(t,n,o.errorHandler)})}destruct(){this.dialog.destruct(),delete this.dialog,this.events&&this.events.off(".filebrowser"),this.uploader&&this.uploader.destruct(),delete this.uploader,super.destruct()}}we.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 oo="jodit_image_editor",so=ge.getIcon;class no extends Ce{constructor(t){super(t),this.resizeUseRatio=!0,this.cropUseRatio=!0,this.clicked=!1,this.activeTab="resize",this.cropBox={x:0,y:0,w:0,h:0},this.resizeBox={w:0,h:0},this.calcValueByPercent=(t,e)=>{const i=""+e,o=parseFloat(""+t);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)},this.calcCropBox=()=>{const t=.8*this.crop_box.parentNode.offsetWidth,e=.8*this.crop_box.parentNode.offsetHeight;let i=t,o=e;t>this.naturalWidth&&e>this.naturalHeight?(i=this.naturalWidth,o=this.naturalHeight):this.ratio>t/e?(i=t,o=this.naturalHeight*(t/this.naturalWidth)):(i=this.naturalWidth*(e/this.naturalHeight),o=e),ne(this.crop_box,{width:i,height:o})},this.showCrop=()=>{this.cropImage&&(this.calcCropBox(),this.new_w=this.calcValueByPercent(this.cropImage.offsetWidth||this.image.offsetWidth,this.options.cropDefaultWidth),this.new_h=this.cropUseRatio?this.new_w/this.ratio:this.calcValueByPercent(this.cropImage.offsetHeight||this.image.offsetHeight,this.options.cropDefaultHeight),ne(this.cropHandler,{backgroundImage:"url("+this.cropImage.getAttribute("src")+")",width:this.new_w,height:this.new_h,left:(this.cropImage.offsetWidth||this.image.offsetWidth)/2-this.new_w/2,top:(this.cropImage.offsetHeight||this.image.offsetHeight)/2-this.new_h/2}),this.jodit.events.fire(this.cropHandler,"updatesize"))},this.updateCropBox=()=>{if(!this.cropImage)return;const t=this.cropImage.offsetWidth/this.naturalWidth,e=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=ne(this.cropHandler,"left")/t,this.cropBox.y=ne(this.cropHandler,"top")/e,this.cropBox.w=this.cropHandler.offsetWidth/t,this.cropBox.h=this.cropHandler.offsetHeight/e,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 t=this;t.jodit.events.on([t.editor.querySelector(".jodit_bottomright"),t.cropHandler],`mousedown.${oo}`,e=>{t.target=e.target,e.preventDefault(),e.stopImmediatePropagation(),t.clicked=!0,t.start_x=e.clientX,t.start_y=e.clientY,"crop"===t.activeTab?(t.top_x=ne(t.cropHandler,"left"),t.top_y=ne(t.cropHandler,"top"),t.width=t.cropHandler.offsetWidth,t.height=t.cropHandler.offsetHeight):(t.width=t.image.offsetWidth,t.height=t.image.offsetHeight)}).off(this.jodit.ownerWindow,`.${oo}`+t.jodit.id).on(this.jodit.ownerWindow,`mousemove.${oo}`+t.jodit.id,rt(e=>{t.clicked&&(t.diff_x=e.clientX-t.start_x,t.diff_y=e.clientY-t.start_y,"resize"===t.activeTab&&t.resizeUseRatio||"crop"===t.activeTab&&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),"resize"===t.activeTab?(t.new_w>t.options.resizeMinWidth&&(ne(t.image,"width",t.new_w+"px"),t.widthInput.value=""+t.new_w),t.new_h>t.options.resizeMinHeight&&(ne(t.image,"height",t.new_h+"px"),t.heightInput.value=""+t.new_h),this.jodit.events.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),ne(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),ne(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),ne(t.cropHandler,"top",t.top_y+t.diff_y)),this.jodit.events.fire(t.cropHandler,"updatesize")),e.stopImmediatePropagation())},5)).on(this.jodit.ownerWindow,`resize.${oo}`+t.jodit.id,()=>{this.jodit.events.fire(t.resizeHandler,"updatesize"),t.showCrop(),this.jodit.events.fire(t.cropHandler,"updatesize")}).on(this.jodit.ownerWindow,`mouseup.${oo} ${t.jodit.id} keydown.${oo}`+t.jodit.id,e=>{t.clicked&&(t.clicked=!1,e.stopImmediatePropagation())}),zt(".jodit_button_group",t.editor).forEach(e=>{const i=e.querySelector("input");t.jodit.events.on(e,"click change",()=>{i.checked=!i.checked,t.jodit.events.fire(i,"change")},"button")}),t.jodit.events.on(this.editor,"click."+oo,(function(){zt(`.${oo}_slider,.${oo}_area`,t.editor).forEach(t=>t.classList.remove("active"));const e=this.parentNode;e.classList.add("active"),t.activeTab=e.getAttribute("data-area")||"resize";const i=t.editor.querySelector(`.${oo}_area.${oo}_area_`+t.activeTab);i&&i.classList.add("active"),"crop"===t.activeTab&&t.showCrop()}),`.${oo}_slider-title`).on(t.widthInput,`change.${oo} mousedown.${oo} keydown.${oo}`,nt(()=>{const e=parseInt(t.widthInput.value,10);let i;e>t.options.min_width&&(ne(t.image,"width",e+"px"),t.resizeUseRatio&&(i=Math.round(e/t.ratio),i>t.options.min_height&&(ne(t.image,"height",i+"px"),t.heightInput.value=""+i))),this.jodit.events.fire(t.resizeHandler,"updatesize")},200)).on(t.heightInput,`change.${oo} mousedown.${oo} keydown.${oo}`,nt(()=>{if(this.isDestructed)return;const e=parseInt(t.heightInput.value,10);let i;e>t.options.min_height&&(ne(t.image,"height",e+"px"),t.resizeUseRatio&&(i=Math.round(e*t.ratio),i>t.options.min_width&&(ne(t.image,"width",i+"px"),t.widthInput.value=""+i))),this.jodit.events.fire(t.resizeHandler,"updatesize")},200));const e=t.editor.querySelector(`.${oo}_keep_spect_ratio`);e&&e.addEventListener("change",()=>{t.resizeUseRatio=e.checked});const i=t.editor.querySelector(`.${oo}_keep_spect_ratio_crop`);i&&i.addEventListener("change",()=>{t.cropUseRatio=i.checked}),t.jodit.events.on(t.resizeHandler,"updatesize",()=>{ne(t.resizeHandler,{top:0,left:0,width:(t.image.offsetWidth||t.naturalWidth)+"px",height:(t.image.offsetHeight||t.naturalHeight)+"px"}),this.updateResizeBox()}).on(t.cropHandler,"updatesize",()=>{if(!t.cropImage)return;let e=ne(t.cropHandler,"left"),i=ne(t.cropHandler,"top"),o=t.cropHandler.offsetWidth,s=t.cropHandler.offsetHeight;0>e&&(e=0),0>i&&(i=0),e+o>t.cropImage.offsetWidth&&(o=t.cropImage.offsetWidth-e,t.cropUseRatio&&(s=o/t.ratio)),i+s>t.cropImage.offsetHeight&&(s=t.cropImage.offsetHeight-i,t.cropUseRatio&&(o=s*t.ratio)),ne(t.cropHandler,{width:o,height:s,left:e,top:i,backgroundPosition:-e-1+"px "+(-i-1)+"px",backgroundSize:t.cropImage.offsetWidth+"px "+t.cropImage.offsetHeight+"px"}),t.updateCropBox()}),t.buttons.forEach(e=>{e.addEventListener("mousedown",t=>{t.stopImmediatePropagation()}),e.addEventListener("click",()=>{const i={action:t.activeTab,box:"resize"===t.activeTab?t.resizeBox:t.cropBox};switch(e.getAttribute("data-action")){case"saveas":Pi(t.jodit.i18n("Enter new name"),t.jodit.i18n("Save in new file"),e=>{if(!Mt(e))return Hi(t.jodit.i18n("The name should not be empty")),!1;t.onSave(e,i,t.hide,t=>{Hi(t.message)})});break;case"save":t.onSave(void 0,i,t.hide,t=>{Hi(t.message)});break;case"reset":"resize"===t.activeTab?(ne(t.image,{width:null,height:null}),t.widthInput.value=""+t.naturalWidth,t.heightInput.value=""+t.naturalHeight,t.jodit.events.fire(t.resizeHandler,"updatesize")):t.showCrop()}})})},this.hide=()=>{this.dialog.close()},this.open=(t,e)=>new Promise(i=>{const o=(new Date).getTime();this.image=this.jodit.create.element("img"),zt("img,.jodit_icon-loader",this.resize_box).forEach(me.safeRemove),zt("img,.jodit_icon-loader",this.crop_box).forEach(me.safeRemove),ne(this.cropHandler,"background","transparent"),this.onSave=e,this.resize_box.appendChild(this.jodit.create.element("i",{class:"jodit_icon-loader"})),this.crop_box.appendChild(this.jodit.create.element("i",{class:"jodit_icon-loader"})),this.image.setAttribute("src",t+=/\?/.test(t)?"&_tst="+o:"?_tst="+o),this.dialog.open();const s=()=>{this.isDestructed||(this.image.removeEventListener("load",s),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,this.widthInput.value=""+this.naturalWidth,this.heightInput.value=""+this.naturalHeight,this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(),this.crop_box.appendChild(this.cropImage),zt(".jodit_icon-loader",this.editor).forEach(me.safeRemove),"crop"===this.activeTab&&this.showCrop(),this.jodit.events.fire(this.resizeHandler,"updatesize"),this.jodit.events.fire(this.cropHandler,"updatesize"),this.dialog.setPosition(),this.jodit.events.fire("afterImageEditor"),i(this.dialog))};this.image.addEventListener("load",s),this.image.complete&&s()}),this.options=t&&t.options?t.options.imageeditor:we.defaultOptions.imageeditor;const e=this.options,i=t.i18n;this.resizeUseRatio=e.resizeUseRatio,this.cropUseRatio=e.cropUseRatio;const o=this.resizeUseRatio,s=this.cropUseRatio;this.buttons=[this.jodit.create.fromHTML('<button data-action="reset" type="button" class="jodit_button">'+so("update")+"&nbsp;"+i("Reset")+"</button>"),this.jodit.create.fromHTML('<button data-action="save" type="button" class="jodit_button jodit_button_success">'+so("save")+"&nbsp;"+i("Save")+"</button>"),this.jodit.create.fromHTML('<button data-action="saveas" type="button" class="jodit_button jodit_button_success">'+so("save")+"&nbsp;"+i("Save as ...")+"</button>")],this.activeTab=e.resize?"resize":"crop";const n=(t,e="active")=>t?e:"",r=(t,e,o=!0)=>`<div class="jodit_form_group">\n\t\t\t<label>${i(t)}</label>\n\t\t\t<div class="jodit_button_group jodit_button_radio_group">\n\t\t\t\t<input ${n(o,"checked")} type="checkbox" class="${oo}_${e} jodit_input"/>\n\n\t\t\t\t<button type="button" data-yes="1" class="jodit_button jodit_status_success">${i("Yes")}</button>\n\n\t\t\t\t<button type="button" class="jodit_button jodit_status_danger">${i("No")}</button>\n\t\t\t</div>\n\t\t</div>`;this.editor=this.jodit.create.fromHTML(`<form class="${oo} jodit_properties">\n\t\t\t\t\t\t\t<div class="jodit_grid">\n\t\t\t\t\t\t\t\t<div class="jodit_col-lg-3-4">\n\t\t\t\t\t\t\t\t${e.resize?`<div class="${oo}_area ${oo}_area_resize active">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="${oo}_box"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="${oo}_resizer">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>`:""}\n\t\t\t\t\t\t\t\t${e.crop?`<div class="${oo}_area ${oo}_area_crop ${n(!e.resize)}">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="${oo}_box">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="${oo}_croper">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class="jodit_sizes"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>`:""}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="jodit_col-lg-1-4">\n\t\t\t\t\t\t\t\t${e.resize?`<div data-area="resize" class="${oo}_slider active">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="${oo}_slider-title">\n\t\t\t\t\t\t\t\t\t\t\t\t\t${so("resize")}\n\t\t\t\t\t\t\t\t\t\t\t\t\t${i("Resize")}\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="${oo}_slider-content">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="jodit_form_group">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for="${oo}_width">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t${i("Width")}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type="number" class="${oo}_width jodit_input"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="jodit_form_group">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for="${oo}_height">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t${i("Height")}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type="number" class="${oo}_height jodit_input"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t${r("Keep Aspect Ratio","keep_spect_ratio",o)}\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>`:""}\n\t\t\t\t\t\t\t\t${e.crop?`<div data-area="crop" class="${oo}_slider ${n(!e.resize)}'">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="${oo}_slider-title">\n\t\t\t\t\t\t\t\t\t\t\t\t\t${so("crop")}\n\t\t\t\t\t\t\t\t\t\t\t\t\t${i("Crop")}\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="${oo}_slider-content">\n\t\t\t\t\t\t\t\t\t\t\t\t\t${r("Keep Aspect Ratio","keep_spect_ratio_crop",s)}\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>`:""}\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</form>`),this.widthInput=this.editor.querySelector(`.${oo}_width`),this.heightInput=this.editor.querySelector(`.${oo}_height`),this.resize_box=this.editor.querySelector(`.${oo}_area.${oo}_area_resize .${oo}_box`),this.crop_box=this.editor.querySelector(`.${oo}_area.${oo}_area_crop .${oo}_box`),this.sizes=this.editor.querySelector(`.${oo}_area.${oo}_area_crop .jodit_sizes`),this.resizeHandler=this.editor.querySelector(`.${oo}_resizer`),this.cropHandler=this.editor.querySelector(`.${oo}_croper`),this.dialog=new Bi(t),this.dialog.setContent(this.editor),this.dialog.setSize(this.options.width,this.options.height),this.dialog.setTitle(this.buttons),this.setHandlers()}destruct(){this.isDestructed||(this.dialog&&(this.dialog.destruct(),delete this.dialog),me.safeRemove(this.editor),delete this.widthInput,delete this.heightInput,delete this.resize_box,delete this.crop_box,delete this.sizes,delete this.resizeHandler,delete this.cropHandler,delete this.editor,this.jodit.events&&this.jodit.events.off(`.${oo}`),super.destruct())}}class ro{static addSelected(t){t.setAttribute(X,"1")}static restoreSelection(t){t.removeAttribute(X)}static getAllSelectedCells(t){return t?zt(`td[${X}],th[${X}]`,t):[]}static getRowsCount(t){return t.rows.length}static getColumnsCount(t){return ro.formalMatrix(t).reduce((t,e)=>Math.max(t,e.length),0)}static formalMatrix(t,e){const i=[[]],o=Array.prototype.slice.call(t.rows),s=(t,o)=>{void 0===i[o]&&(i[o]=[]);const s=t.colSpan,n=t.rowSpan;let r,a,l=0;for(;i[o][l];)l+=1;for(a=0;n>a;a+=1)for(r=0;s>r;r+=1){if(void 0===i[o+a]&&(i[o+a]=[]),e&&!1===e(t,o+a,l+r,s,n))return!1;i[o+a][l+r]=t}};for(let t,e=0;o.length>e;e+=1){const n=Array.prototype.slice.call(o[e].cells);for(t=0;n.length>t;t+=1)if(!1===s(n[t],e))return i}return i}static formalCoordinate(t,e,i=!1){let o=0,s=0,n=1,r=1;return ro.formalMatrix(t,(t,a,l,d,c)=>{if(e===t)return o=a,s=l,n=d||1,r=c||1,i&&(s+=(d||1)-1,o+=(c||1)-1),!1}),[o,s,n,r]}static appendRow(t,e=!1,i=!0){const o=t.ownerDocument||document,s=ro.getColumnsCount(t),n=o.createElement("tr");for(let t=0;s>t;t+=1)n.appendChild(o.createElement("td"));i&&e&&e.nextSibling?e.parentNode&&e.parentNode.insertBefore(n,e.nextSibling):!i&&e?e.parentNode&&e.parentNode.insertBefore(n,e):(zt(":scope>tbody",t)[0]||t).appendChild(n)}static removeRow(t,e){const i=ro.formalMatrix(t);let o;const s=t.rows[e];de(i[e],(n,r)=>{if(o=!1,0>e-1||i[e-1][n]!==r)if(i[e+1]&&i[e+1][n]===r){if(r.parentNode===s&&r.parentNode.nextSibling){o=!0;let s=n+1;for(;i[e+1][s]===r;)s+=1;const a=me.next(r.parentNode,t=>t&&t.nodeType===Node.ELEMENT_NODE&&"TR"===t.nodeName,t);i[e+1][s]?a.insertBefore(r,i[e+1][s]):a.appendChild(r)}}else me.safeRemove(r);else o=!0;if(o&&(r.parentNode===s||r!==i[e][n-1])){const t=r.rowSpan;t-1>1?r.setAttribute("rowspan",""+(t-1)):r.removeAttribute("rowspan")}}),me.safeRemove(s)}static appendColumn(t,e,i=!0){const o=ro.formalMatrix(t);let s;for(void 0===e&&(e=ro.getColumnsCount(t)-1),s=0;o.length>s;s+=1){const n=(t.ownerDocument||document).createElement("td"),r=o[s][e];let a=!1;i?(o[s]&&r&&e+1>=o[s].length||r!==o[s][e+1])&&(r.nextSibling?r.parentNode&&r.parentNode.insertBefore(n,r.nextSibling):r.parentNode&&r.parentNode.appendChild(n),a=!0):(0>e-1||o[s][e]!==o[s][e-1]&&o[s][e].parentNode)&&(r.parentNode&&r.parentNode.insertBefore(n,o[s][e]),a=!0),a||o[s][e].setAttribute("colspan",""+(parseInt(o[s][e].getAttribute("colspan")||"1",10)+1))}}static removeColumn(t,e){const i=ro.formalMatrix(t);let o;de(i,(t,s)=>{const n=s[e];if(o=!1,0>e-1||i[t][e-1]!==n?s.length>e+1&&i[t][e+1]===n?o=!0:me.safeRemove(n):o=!0,o&&(0>t-1||n!==i[t-1][e])){const t=n.colSpan;t-1>1?n.setAttribute("colspan",""+(t-1)):n.removeAttribute("colspan")}})}static getSelectedBound(t,e){const i=[[1/0,1/0],[0,0]],o=ro.formalMatrix(t);let s,n,r;for(s=0;o.length>s;s+=1)for(n=0;o[s].length>n;n+=1)-1!==e.indexOf(o[s][n])&&(i[0][0]=Math.min(s,i[0][0]),i[0][1]=Math.min(n,i[0][1]),i[1][0]=Math.max(s,i[1][0]),i[1][1]=Math.max(n,i[1][1]));for(s=i[0][0];i[1][0]>=s;s+=1)for(r=1,n=i[0][1];i[1][1]>=n;n+=1){for(;o[s][n-r]&&o[s][n]===o[s][n-r];)i[0][1]=Math.min(n-r,i[0][1]),i[1][1]=Math.max(n-r,i[1][1]),r+=1;for(r=1;o[s][n+r]&&o[s][n]===o[s][n+r];)i[0][1]=Math.min(n+r,i[0][1]),i[1][1]=Math.max(n+r,i[1][1]),r+=1;for(r=1;o[s-r]&&o[s][n]===o[s-r][n];)i[0][0]=Math.min(s-r,i[0][0]),i[1][0]=Math.max(s-r,i[1][0]),r+=1;for(r=1;o[s+r]&&o[s][n]===o[s+r][n];)i[0][0]=Math.min(s+r,i[0][0]),i[1][0]=Math.max(s+r,i[1][0]),r+=1}return i}static normalizeTable(t){let e,i,o,s;const n=[],r=ro.formalMatrix(t);for(i=0;r[0].length>i;i+=1){for(o=1e6,s=!1,e=0;r.length>e;e+=1)if(void 0!==r[e][i]){if(2>r[e][i].colSpan){s=!0;break}o=Math.min(o,r[e][i].colSpan)}if(!s)for(e=0;r.length>e;e+=1)void 0!==r[e][i]&&ro.__mark(r[e][i],"colspan",r[e][i].colSpan-o+1,n)}for(e=0;r.length>e;e+=1){for(o=1e6,s=!1,i=0;r[e].length>i;i+=1)if(void 0!==r[e][i]){if(2>r[e][i].rowSpan){s=!0;break}o=Math.min(o,r[e][i].rowSpan)}if(!s)for(i=0;r[e].length>i;i+=1)void 0!==r[e][i]&&ro.__mark(r[e][i],"rowspan",r[e][i].rowSpan-o+1,n)}for(e=0;r.length>e;e+=1)for(i=0;r[e].length>i;i+=1)void 0!==r[e][i]&&(r[e][i].hasAttribute("rowspan")&&1===r[e][i].rowSpan&&r[e][i].removeAttribute("rowspan"),r[e][i].hasAttribute("colspan")&&1===r[e][i].colSpan&&r[e][i].removeAttribute("colspan"),r[e][i].hasAttribute("class")&&!r[e][i].getAttribute("class")&&r[e][i].removeAttribute("class"));ro.__unmark(n)}static mergeSelected(t){const e=[],i=ro.getSelectedBound(t,ro.getAllSelectedCells(t));let o,s=0,n=null,r=0,a=0,l=0;const d=[];i&&(i[0][0]-i[1][0]||i[0][1]-i[1][1])&&(ro.formalMatrix(t,(t,c,h,p,u)=>{if(!(i[0][0]>c||c>i[1][0]||i[0][1]>h||h>i[1][1])){if(o=t,o.__i_am_already_was)return;o.__i_am_already_was=!0,c===i[0][0]&&o.style.width&&(s+=o.offsetWidth),""!==Mt(t.innerHTML.replace(/<br(\/)?>/g,""))&&e.push(t.innerHTML),p>1&&(a+=p-1),u>1&&(l+=u-1),n?ro.__mark(o,"remove",1,d):(n=t,r=h)}}),a=i[1][1]-i[0][1]+1,l=i[1][0]-i[0][0]+1,n&&(a>1&&ro.__mark(n,"colspan",a,d),l>1&&ro.__mark(n,"rowspan",l,d),s&&(ro.__mark(n,"width",(s/t.offsetWidth*100).toFixed(I)+"%",d),r&&ro.setColumnWidthByDelta(t,r,0,!0,d)),n.innerHTML=e.join("<br/>"),delete n.__i_am_already_was,ro.__unmark(d),ro.normalizeTable(t),de(Array.from(t.rows),(t,e)=>{e.cells.length||me.safeRemove(e)})))}static splitHorizontal(t){let e,i,o,s,n;const r=[],a=t.ownerDocument||document;ro.getAllSelectedCells(t).forEach(l=>{i=a.createElement("td"),i.appendChild(a.createElement("br")),o=a.createElement("tr"),e=ro.formalCoordinate(t,l),2>l.rowSpan?(ro.formalMatrix(t,(t,i,o)=>{e[0]===i&&e[1]!==o&&t!==l&&ro.__mark(t,"rowspan",t.rowSpan+1,r)}),me.after(me.closest(l,"tr",t),o),o.appendChild(i)):(ro.__mark(l,"rowspan",l.rowSpan-1,r),ro.formalMatrix(t,(i,o,r)=>{o>e[0]&&e[0]+l.rowSpan>o&&e[1]>r&&i.parentNode.rowIndex===o&&(n=i),o>e[0]&&i===l&&(s=t.rows[o])}),n?me.after(n,i):s.insertBefore(i,s.firstChild)),l.colSpan>1&&ro.__mark(i,"colspan",l.colSpan,r),ro.__unmark(r),ro.restoreSelection(l)}),this.normalizeTable(t)}static splitVertical(t){let e,i,o;const s=[],n=t.ownerDocument||document;ro.getAllSelectedCells(t).forEach(r=>{e=ro.formalCoordinate(t,r),2>r.colSpan?ro.formalMatrix(t,(t,i,o)=>{e[1]===o&&e[0]!==i&&t!==r&&ro.__mark(t,"colspan",t.colSpan+1,s)}):ro.__mark(r,"colspan",r.colSpan-1,s),i=n.createElement("td"),i.appendChild(n.createElement("br")),r.rowSpan>1&&ro.__mark(i,"rowspan",r.rowSpan,s);const a=r.offsetWidth;me.after(r,i),o=a/t.offsetWidth/2,ro.__mark(r,"width",(100*o).toFixed(I)+"%",s),ro.__mark(i,"width",(100*o).toFixed(I)+"%",s),ro.__unmark(s),ro.restoreSelection(r)}),ro.normalizeTable(t)}static setColumnWidthByDelta(t,e,i,o,s){const n=ro.formalMatrix(t);let r,a,l;for(r=0;n.length>r;r+=1)a=n[r][e].offsetWidth,l=(a+i)/t.offsetWidth*100,ro.__mark(n[r][e],"width",l.toFixed(I)+"%",s);o||ro.__unmark(s)}static __mark(t,e,i,o){o.push(t),t.__marked_value||(t.__marked_value={}),t.__marked_value[e]=void 0===i?1:i}static __unmark(t){t.forEach(t=>{t.__marked_value&&(de(t.__marked_value,(e,i)=>{switch(e){case"remove":me.safeRemove(t);break;case"rowspan":i>1?t.setAttribute("rowspan",""+i):t.removeAttribute("rowspan");break;case"colspan":i>1?t.setAttribute("colspan",""+i):t.removeAttribute("colspan");break;case"width":t.style.width=""+i}delete t.__marked_value[e]}),delete t.__marked_value)})}}we.prototype.enableDragAndDropFileToEditor=!0,we.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","png","jpeg","gif"],headers:null,data:null,filesVariableName:t=>`files[${t}]`,withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData:t=>t,isSuccess:t=>t.success,getMessage:t=>void 0!==t.data.messages&&Array.isArray(t.data.messages)?t.data.messages.join(" "):"",process:t=>t.data,error(t){this.jodit.events.fire("errorMessage",t.message,"error",4e3)},defaultHandlerSuccess(t){t.files&&t.files.length&&t.files.forEach((e,i)=>{const[o,s]=t.isImages&&t.isImages[i]?["img","src"]:["a","href"],n=this.jodit.create.inside.element(o);n.setAttribute(s,t.baseurl+e),"a"===o&&(n.textContent=t.baseurl+e),xe(this.jodit)&&("img"===o?this.jodit.selection.insertImage(n,null,this.jodit.options.imageDefaultWidth):this.jodit.selection.insertNode(n))})},defaultHandlerError(t){this.jodit.events.fire("errorMessage",t.message)},contentType(t){return(void 0===this.jodit.ownerWindow.FormData||"string"==typeof t)&&"application/x-www-form-urlencoded; charset=UTF-8"}};class ao extends Ce{constructor(t,e){super(t),this.path="",this.source="default",this.ajaxInstances=[],this.options=mt(!0,{},we.defaultOptions.uploader,xe(t)?t.options.uploader:null,e)}static dataURItoBlob(t){const e=atob(t.split(",")[1]),i=t.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(e.length),s=new Uint8Array(o);for(let t=0;e.length>t;t+=1)s[t]=e.charCodeAt(t);return new Blob([s],{type:i})}buildData(t){if(this.options.buildData&&"function"==typeof this.options.buildData)return this.options.buildData.call(this,t);const e=this.jodit.ownerWindow.FormData;if(void 0!==e){if(t instanceof e)return t;if("string"==typeof t)return t;const i=new e;return Object.keys(t).forEach(e=>{i.append(e,t[e])}),i}return t}send(t,e){const i=this.buildData(t),o=t=>{const i=new Di(this.jodit||this,{xhr:()=>{const t=new XMLHttpRequest;return void 0!==this.jodit.ownerWindow.FormData&&t.upload?t.upload.addEventListener("progress",t=>{if(t.lengthComputable){let e=t.loaded/t.total;e*=100,this.jodit.progress_bar.style.display="block",this.jodit.progress_bar.style.width=e+"%",100===e&&(this.jodit.progress_bar.style.display="none")}},!1):this.jodit.progress_bar.style.display="none",t},method:this.options.method||"POST",data:t,url:this.options.url,headers:this.options.headers,queryBuild:this.options.queryBuild,contentType:this.options.contentType.call(this,t),dataType:this.options.format||"json",withCredentials:this.options.withCredentials||!1});this.ajaxInstances.push(i);const o=()=>{const t=this.ajaxInstances.indexOf(i);-1!==t&&this.ajaxInstances.splice(t,1)};return i.send().then(t=>{o(),e.call(this,t)}).catch(t=>{o(),this.options.error.call(this,t)})};return i instanceof Promise?i.then(o).catch(t=>{this.options.error.call(this,t)}):o(i)}sendFiles(t,e,i,o){if(!t)return Promise.reject(Error("Need files"));const s=this;let n=Array.from(t);if(!n.length)return Promise.reject(Error("Need files"));const r=[];if(this.options.insertImageAsBase64URI){let t,i;for(i=0;n.length>i;i+=1)if(t=n[i],t&&t.type){const o=t.type.match(/\/([a-z0-9]+)/i),a=o[1]?o[1].toLowerCase():"";if(this.options.imagesExtensions.includes(a)){const o=new FileReader;r.push(new Promise((i,n)=>{o.onerror=n,o.onloadend=()=>{const t={baseurl:"",files:[o.result],isImages:[!0]};"function"==typeof(e||s.options.defaultHandlerSuccess)&&(e||s.options.defaultHandlerSuccess).call(s,t),i(t)},o.readAsDataURL(t)})),n[i]=null}}}if(n=n.filter(t=>t),n.length){const t=new FormData;let a;t.append(this.options.pathVariableName,s.path),t.append("source",s.source);for(let e=0;n.length>e;e+=1)if(a=n[e],a){const i=a.type.match(/\/([a-z0-9]+)/i),o=i&&i[1]?i[1].toLowerCase():"";let s=n[e].name||(""+Math.random()).replace(".","");if(o){let t=o;["jpeg","jpg"].includes(t)&&(t="jpeg|jpg"),RegExp(".("+t+")$","i").test(s)||(s+="."+o)}t.append(this.options.filesVariableName(e),n[e],s)}o&&o(t),s.options.data&&ft(s.options.data)&&Object.keys(s.options.data).forEach(e=>{t.append(e,s.options.data[e])}),s.options.prepareData.call(this,t),r.push(s.send(t,t=>{this.options.isSuccess.call(s,t)?"function"==typeof(e||s.options.defaultHandlerSuccess)&&(e||s.options.defaultHandlerSuccess).call(s,s.options.process.call(s,t)):(i||s.options.defaultHandlerError).call(s,Error(s.options.getMessage.call(s,t)))}).then(()=>{this.jodit.events&&this.jodit.events.fire("filesWereUploaded")}))}return Promise.all(r)}setPath(t){this.path=t}setSource(t){this.source=t}bind(t,e,i){const o=this,s=t=>{let s,n,r;const a=t=>{n&&(t.append("extension",r),t.append("mimetype",n.type))};if(t.clipboardData&&t.clipboardData.files&&t.clipboardData.files.length)return this.sendFiles(t.clipboardData.files,e,i),!1;if(ie("ff")||F){if(t.clipboardData&&!t.clipboardData.types.length&&t.clipboardData.types[0]!==W){const t=this.jodit.create.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});this.jodit.ownerDocument.body.appendChild(t);const s=this.jodit&&xe(this.jodit)?this.jodit.selection.save():null,n=()=>s&&this.jodit&&xe(this.jodit)&&this.jodit.selection.restore(s);t.focus(),setTimeout(()=>{const s=t.firstChild;if(me.safeRemove(t),s&&s.hasAttribute("src")){const t=s.getAttribute("src")||"";n(),o.sendFiles([ao.dataURItoBlob(t)],e,i)}},200)}}else if(t.clipboardData&&t.clipboardData.items&&t.clipboardData.items.length){const o=t.clipboardData.items;for(s=0;o.length>s;s+=1)if("file"===o[s].kind&&"image/png"===o[s].type){if(n=o[s].getAsFile(),n){const t=n.type.match(/\/([a-z0-9]+)/i);r=t[1]?t[1].toLowerCase():"",this.sendFiles([n],e,i,a)}t.preventDefault();break}}};this.jodit&&this.jodit.editor!==t?o.jodit.events.on(t,"paste",s):o.jodit.events.on("beforePaste",s);const n=t=>!(!t.dataTransfer||!t.dataTransfer.files||0===t.dataTransfer.files.length);o.jodit.events.on(t,"dragend dragover dragenter dragleave drop",t=>{t.preventDefault()}).on(t,"dragover",e=>{n(e)&&(t.classList.contains("jodit_draghover")||t.classList.add("jodit_draghover"),e.preventDefault())}).on(t,"dragend",e=>{n(e)&&(t.classList.contains("jodit_draghover")&&t.classList.remove("jodit_draghover"),e.preventDefault())}).on(t,"drop",o=>{t.classList.remove("jodit_draghover"),n(o)&&o.dataTransfer&&o.dataTransfer.files&&(o.preventDefault(),o.stopImmediatePropagation(),this.sendFiles(o.dataTransfer.files,e,i))});const r=t.querySelector("input[type=file]");r&&o.jodit.events.on(r,"change",(function(){o.sendFiles(this.files,e,i).then(()=>{r.value="",/safari/i.test(navigator.userAgent)||(r.type="",r.type="file")})}))}uploadRemoteImage(t,e,i){const o=this;o.send({action:"fileUploadRemote",url:t},t=>{if(o.options.isSuccess.call(o,t))"function"==typeof e?e.call(o,this.options.process.call(this,t)):this.options.defaultHandlerSuccess.call(o,this.options.process.call(this,t));else if("function"==typeof(i||o.options.defaultHandlerError))return void(i||this.options.defaultHandlerError).call(o,Error(o.options.getMessage.call(this,t)))})}destruct(){this.ajaxInstances.forEach(t=>{try{t.abort()}catch(t){}}),delete this.options,super.destruct()}}function lo(t){if(!t.options.addNewLine)return;const e=t.create.fromHTML('<div role="button" tabIndex="-1" title="'+t.i18n("Break")+'" class="jodit-add-new-line"><span>'+ge.getIcon("enter")+"</span></div>"),i=RegExp("^("+t.options.addNewLineTagsTriggers.join("|")+")$","i");let o,s,n=!1,r=!1,a=!1;const l=()=>{clearTimeout(o),a=!1,e.style.display="none",n=!0},d=e=>null!==e&&me.isBlock(e,t.editorWindow)&&!/^(img|table|iframe|hr)$/i.test(e.nodeName),c=()=>{n||a||(clearTimeout(o),o=st(l,500))};t.events.on("beforeDestruct",()=>{me.safeRemove(e)}).on("afterInit",()=>{t.container.appendChild(e),t.events.on(e,"mousemove",t=>{t.stopPropagation()}).on(e,"mousedown touchstart",e=>{const i=t.editorDocument.createElement(t.options.enter);r&&s&&s.parentNode?s.parentNode.insertBefore(i,s):t.editor.appendChild(i),t.selection.setCursorIn(i),t.events.fire("synchro"),l(),e.preventDefault()})}).on("afterInit",()=>{t.events.on(t.editor,"scroll",()=>{l()}).on(t.container,"mouseleave",c).on(e,"mouseenter",()=>{clearTimeout(o),a=!0}).on(e,"mouseleave",()=>{a=!1}).on(t.editor,"dblclick",e=>{if(!t.options.readonly&&t.options.addNewLineOnDBLClick&&e.target===t.editor&&t.selection.isCollapsed()){const i=Qt(t.editor,t,t.editorDocument),o=e.pageY-t.editorWindow.pageYOffset,s=t.editorDocument.createElement(t.options.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.selection.setCursorIn(s),t.setEditorValue(),l(),e.preventDefault()}}).on(t.editor,"mousemove",nt(a=>{let l=t.editorDocument.elementFromPoint(a.pageX-t.editorWindow.pageXOffset,a.pageY-t.editorWindow.pageYOffset);if(l&&me.isOrContains(e,l))return;if(!l||!me.isOrContains(t.editor,l))return;if(!(l&&l.nodeName.match(i)&&me.isOrContains(t.editor,l)||(l=me.closest(l,i,t.editor),l)))return void c();if(i.test(l.nodeName)){const e=me.up(l,e=>me.isBlock(e,t.editorWindow),t.editor);e&&e!==t.editor&&(l=e)}const h=Qt(t.editor,t,t.editorDocument),p=Qt(l,t,t.editorDocument);let u=!1;10>Math.abs(a.pageY-p.top)&&(u=p.top,20>u-h.top||(u-=15),r=!0),10>Math.abs(a.pageY-(p.top+p.height))&&(u=p.top+p.height,25>h.top+h.height-u||(u+=15),r=!1),!1!==u&&(r&&!me.prev(l,d,t.editor)||!r&&!me.next(l,d,t.editor))?(e.style.top=u+"px",s=l,t.options.readonly||t.isLocked()||t.container.classList.contains("jodit_popup_active")||(clearTimeout(o),e.classList.toggle("jodit-add-new-line_after",!r),e.style.display="block",e.style.width=t.editor.clientWidth+"px",n=!1)):(s=!1,c())},t.defaultTimeout))})}function co(t){let e;t.events.on("afterInit",()=>{t.options.autofocus&&(t.defaultTimeout?e=st(t.selection.focus,300):t.selection.focus())}).on("mousedown",e=>{t.isEditorMode()&&e.target&&me.isBlock(e.target,t.editorWindow)&&!e.target.childNodes.length&&(t.editor===e.target?t.selection.focus():t.selection.setCursorIn(e.target))}).on("beforeDestruct",()=>{clearTimeout(e)})}function ho(t){const e=e=>{let i,o=e;Wt(e);do{const s=o.innerHTML.replace(d,"");if(s.length&&"<br>"!==s||me.isCell(o,t.editorWindow)||!o.parentNode||e===t.editor)break;i=o.parentNode,me.safeRemove(o),o=i}while(o&&o!==t.editor)},i=(e,o,s)=>{if(e.node&&e.node.nodeType===Node.TEXT_NODE&&"string"==typeof e.node.nodeValue){let n=e.node.nodeValue,r=o?n.length:0;const a=o?-1:1,d=r;for(;r>=0&&n.length>=r&&n[r+(o?-1:0)]===l;)r+=a;r!==d&&(o?n=n.substr(0,r)+n.substr(d):(n=n.substr(0,d)+n.substr(r),r=d),e.node.nodeValue=n),s.setStart(e.node,r),s.collapse(!0),t.selection.selectRange(s);let c=me.findInline(e.node,o,t.editor);if(n.length){let t=!1;if(o?r&&(t=!0):n.length>r&&(t=!0),t)return!0}else s.setStartBefore(e.node),s.collapse(!0),t.selection.selectRange(s),me.safeRemove(e.node),e.node=c;if(c&&(me.isInlineBlock(c)&&(c=o?c.lastChild:c.firstChild),c&&c.nodeType===Node.TEXT_NODE))return e.node=c,i(e,o,s)}},o=v,s=t=>{if(t&&o.test(t.nodeName))return me.safeRemove(t),!1},n=(e,o,n)=>{if(e.node){const r=e.node;if(void 0!==i(e,o,n))return!0;if(e.node||(e.node=r.parentNode),e.node===t.editor)return!1;let a=e.node;if(!1===s(a))return!1;for(a&&(a=o?a.previousSibling:a.nextSibling);a&&a.nodeType===Node.TEXT_NODE&&a.nodeValue&&a.nodeValue.match(/^[\n\r]+$/);)a=o?a.previousSibling:a.nextSibling;return s(a)}},r=t=>null===t.nodeName.match(/^(TD|TH|TR|TABLE|LI)$/)&&(!(!me.isEmpty(t)&&null===t.nodeName.match(o))||!(t.nodeType===Node.TEXT_NODE&&!me.isEmptyTextNode(t))&&(!t.childNodes.length||Array.from(t.childNodes).every(r)));t.events.on("afterCommand",e=>{if("delete"===e){const e=t.selection.current();if(e&&e.firstChild&&"BR"===e.firstChild.nodeName&&me.safeRemove(e.firstChild),!(Mt(t.editor.textContent||"")||t.editor.querySelector("img")||e&&me.closest(e,"table",t.editor))){t.editor.innerHTML="";const e=t.selection.setCursorIn(t.editor);me.safeRemove(e)}}}).on("keydown",i=>{if(i.which===b||i.which===T){const o=i.which===b;if(t.selection.isFocused()||t.selection.focus(),!t.selection.isCollapsed())return t.execCommand("Delete"),!1;const s=t.selection.sel,a=!(!s||!s.rangeCount)&&s.getRangeAt(0);if(!a)return!1;const d=t.ownerDocument.createTextNode(l),c=t.editorDocument.createElement("span");try{if(a.insertNode(d),!me.isOrContains(t.editor,d))return!1;let i=me.up(d,e=>me.isBlock(e,t.editorWindow),t.editor);const s=me.findInline(d,o,t.editor),h={node:s};let p;if(s?p=n(h,o,a):d.parentNode&&(p=n({node:o?d.parentNode.previousSibling:d.parentNode.nextSibling},o,a)),void 0!==p)return!!p&&void 0;if(i&&i.nodeName.match(/^(TD)$/))return!1;let u=o?me.prev(h.node||d,e=>me.isBlock(e,t.editorWindow),t.editor):me.next(h.node||d,e=>me.isBlock(e,t.editorWindow),t.editor);if(!u&&i&&i.parentNode){u=t.create.inside.element(t.options.enter);let e=i;for(;e&&e.parentNode&&e.parentNode!==t.editor;)e=e.parentNode;e.parentNode&&e.parentNode.insertBefore(u,e)}else if(u&&r(u))return me.safeRemove(u),!1;if(u){const e=t.selection.setCursorIn(u,!o);t.selection.insertNode(c,!1,!1),e.nodeType===Node.TEXT_NODE&&e.nodeValue===l&&me.safeRemove(e)}if(i){if(e(i),u&&i.parentNode&&(i.nodeName===u.nodeName&&i.parentNode&&u.parentNode&&i.parentNode!==t.editor&&u.parentNode!==t.editor&&i.parentNode!==u.parentNode&&i.parentNode.nodeName===u.parentNode.nodeName&&(i=i.parentNode,u=u.parentNode),me.moveContent(i,u,!o),Wt(u)),u&&"LI"===u.nodeName){const e=me.closest(u,"Ul|OL",t.editor);if(e){const t=e.nextSibling;t&&t.nodeName===e.nodeName&&e!==t&&(me.moveContent(t,e,!o),me.safeRemove(t))}}return e(i),!1}}finally{if(d.parentNode&&d.nodeValue===l){const e=d.parentNode;me.safeRemove(d),!e.firstChild&&e.parentNode&&e!==t.editor&&me.safeRemove(e)}if(c&&me.isOrContains(t.editor,c,!0)){const e=t.selection.setCursorBefore(c);me.safeRemove(c),e&&e.parentNode&&(me.findInline(e,!0,e.parentNode)||me.findInline(e,!0,e.parentNode))&&me.safeRemove(e)}t.setEditorValue()}return!1}})}function po(t){const e=e=>{const i=we.defaultOptions.controls[e],o={...i.css},s={};return Object.keys(o).forEach(t=>{s[t]=Array.isArray(o[t])?o[t][0]:o[t]}),t.selection.applyCSS(s,i.tags?i.tags[0]:void 0,i.css),t.events.fire("synchro"),!1};t.registerCommand("bold",{exec:e,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:e,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:e,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:e})}function uo(t){t.options.cleanHTML.cleanOnPaste&&t.events.on("processPaste",(t,e)=>Bt(e));const e=/([^\[]*)\[([^\]]+)]/,i=/[\s]*,[\s]*/,o=/^(.*)[\s]*=[\s]*(.*)$/,s=t=>{const s={};return"string"==typeof t?(t.split(i).map(t=>{t=Mt(t);const n=e.exec(t),r={},a=t=>{t=Mt(t);const e=o.exec(t);e?r[e[1]]=e[2]:r[t]=!0};if(n){const t=n[2].split(i);n[1]&&(t.forEach(a),s[n[1].toUpperCase()]=r)}else s[t.toUpperCase()]=!0}),s):!!t&&(Object.keys(t).forEach(e=>{s[e.toUpperCase()]=t[e]}),s)};let n;const r=s(t.options.cleanHTML.allowTags),a=s(t.options.cleanHTML.denyTags),l=(t,e=!1)=>{let i=e?t.nextSibling:t.previousSibling;for(;i;){if(i.nodeType===Node.ELEMENT_NODE||!me.isEmptyTextNode(i))return!0;i=e?i.nextSibling:i.previousSibling}return!1};t.events.on("change afterSetMode afterInit mousedown keydown",nt(()=>{if(!t.isDestructed&&t.isEditorMode()&&t.selection){n=t.selection.current();let e=null,i=!1,o=0;const s=[],d=t.options.cleanHTML.replaceOldTags;if(d&&n){const e=Object.keys(d).join("|");if(t.selection.isCollapsed()){const i=me.closest(n,e,t.editor);if(i){const e=t.selection.save(),o=d[i.nodeName.toLowerCase()]||d[i.nodeName];me.replace(i,o,!0,!1,t.editorDocument),t.selection.restore(e)}}}const c=e=>{if(e){if((e=>!(e.nodeType===Node.TEXT_NODE||!(r&&!r[e.nodeName]||a&&a[e.nodeName]))||!(!n||"BR"!==e.nodeName||!l(e)||l(e,!0)||me.up(e,e=>me.isBlock(e,t.editorWindow),t.editor)===me.up(n,e=>me.isBlock(e,t.editorWindow),t.editor))||t.options.cleanHTML.removeEmptyElements&&!1!==n&&e.nodeType===Node.ELEMENT_NODE&&null!==e.nodeName.match(g)&&!t.selection.isMarker(e)&&0===Mt(e.innerHTML).length&&!me.isOrContains(e,n))(e))return s.push(e),c(e.nextSibling);if(t.options.cleanHTML.fillEmptyParagraph&&me.isBlock(e,t.editorWindow)&&me.isEmpty(e,/^(img|svg|canvas|input|textarea|form|br)$/)){const i=t.create.inside.element("br");e.appendChild(i)}if(r&&!0!==r[e.nodeName]){const t=e.attributes;if(t&&t.length){const s=[];for(o=0;t.length>o;o+=1)(!r[e.nodeName][t[o].name]||!0!==r[e.nodeName][t[o].name]&&r[e.nodeName][t[o].name]!==t[o].value)&&s.push(t[o].name);s.length&&(i=!0),s.forEach(t=>{e.removeAttribute(t)})}}c(e.firstChild),c(e.nextSibling)}};t.editor.firstChild&&(e=t.editor.firstChild),c(e),s.forEach(me.safeRemove),(s.length||i)&&t.events&&t.events.fire("syncho")}},t.options.cleanHTML.timeout)).on("keyup",()=>{if(t.options.readonly)return;const e=t.selection.current();if(e){const i=me.up(e,e=>me.isBlock(e,t.editorWindow),t.editor);i&&me.all(i,i=>{i&&i.nodeType===Node.TEXT_NODE&&null!==i.nodeValue&&d.test(i.nodeValue)&&0!==i.nodeValue.replace(d,"").length&&(i.nodeValue=i.nodeValue.replace(d,""),i===e&&t.selection.isCollapsed()&&t.selection.setCursorAfter(i))})}}).on("afterCommand",e=>{const i=t.selection;let o,s;switch(e.toLowerCase()){case"inserthorizontalrule":o=t.editor.querySelector("hr[id=null]"),o&&(s=me.next(o,e=>me.isBlock(e,t.editorWindow),t.editor,!1),s||(s=t.create.inside.element(t.options.enter),s&&me.after(o,s)),i.setCursorIn(s));break;case"removeformat":s=i.current();const e=i=>{switch(i.nodeType){case Node.ELEMENT_NODE:me.each(i,e),"FONT"===i.nodeName?me.unwrap(i):([].slice.call(i.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&i.removeAttribute(t.name)}),Wt(i));break;case Node.TEXT_NODE:t.options.cleanHTML.replaceNBSP&&i.nodeType===Node.TEXT_NODE&&null!==i.nodeValue&&i.nodeValue.match(p)&&(i.nodeValue=i.nodeValue.replace(p," "));break;default:me.safeRemove(i)}};if(i.isCollapsed())for(;s&&s.nodeType!==Node.ELEMENT_NODE&&s!==t.editor;)e(s),s&&(s=s.parentNode);else t.selection.eachSelection(t=>{e(t)})}})}we.prototype.addNewLine=!0,we.prototype.addNewLineOnDBLClick=!0,we.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","jodit"],we.prototype.autofocus=!1,we.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},we.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},we.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},we.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},we.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration":"underline"},tooltip:"Underline"},we.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration":"line-through"},tooltip:"Strike through"},we.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,cleanOnPaste:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:!1},we.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"};const fo=t=>t.replace(/([^>])([\n\r]+)/g,"$1<br/>$2");we.prototype.askBeforePasteHTML=!0,we.prototype.askBeforePasteFromWord=!0,we.prototype.nl2brInPlainText=!0,we.prototype.defaultActionOnPaste=Y;const mo=t=>t.clipboardData?t.clipboardData:t.dataTransfer||new DataTransfer;function go(t){const e=(e,i,o,s="Clean",n="Insert only Text")=>{if(t.events&&!1===t.events.fire("beforeOpenPasteDialog",e,i,o,s,n))return;const r=Oi(`<div style="word-break: normal; white-space: normal">${e}</div>`,i,o);r.container.setAttribute("data-editor_id",t.id);const a=r.create.fromHTML('<a href="javascript:void(0)" class="jodit_button jodit_button_primary"><span>'+t.i18n("Keep")+"</span></a>"),l=r.create.fromHTML('<a href="javascript:void(0)" class="jodit_button"><span>'+t.i18n(s)+"</span></a>"),d=r.create.fromHTML('<a href="javascript:void(0)" class="jodit_button"><span>'+t.i18n(n)+"</span></a>"),c=r.create.fromHTML('<a href="javascript:void(0)" class="jodit_button"><span>'+t.i18n("Cancel")+"</span></a>");return t.events.on(a,"click",()=>{r.close(),o&&o(!0)}),t.events.on(l,"click",()=>{r.close(),o&&o(!1)}),t.events.on(d,"click",()=>{r.close(),o&&o(0)}),t.events.on(c,"click",()=>{r.close()}),r.setFooter([a,l,n?d:"",c]),t.events&&t.events.fire("afterOpenPasteDialog",r,e,i,o,s,n),r},i=(e,i)=>{if("string"==typeof e)switch(i){case G:e=Bt(e);break;case Z:e=Ot(e);break;case J:e=Pt(e)}"string"==typeof e&&t.buffer.set(vo,e),t.selection.insertHTML(e)},o=(o,n)=>{const r=t.buffer.get(vo);if(gt(o)&&r!==s(o))return t.events.stopPropagation("beforePaste"),o=s(o),e(t.i18n("Your code is similar to HTML. Keep as HTML?"),t.i18n("Paste as HTML"),e=>{let s=Y;!1===e&&(s=J),0===e&&(s=Z),"drop"===n.type&&t.selection.insertCursorAtPoint(n.clientX,n.clientY),i(o,s),t.setEditorValue()},"Insert as Text"),!1},s=t=>{const e=t.search(/<!--StartFragment-->/i);-1!==e&&(t=t.substr(e+20));const i=t.search(/<!--EndFragment-->/i);return-1!==i&&(t=t.substr(0,i)),t};t.events.on("paste",e=>{if(!1===t.events.fire("beforePaste",e))return e.preventDefault(),!1;const o=mo(e);if(e&&o){const n=o.types;let r="";if(Array.isArray(n)||"domstringlist"===pt(n))for(let t=0;n.length>t;t+=1)r+=n[t]+";";else r=n+";";let a=(()=>/text\/html/i.test(r)?o.getData("text/html"):/text\/rtf/i.test(r)&&ie("safari")?o.getData("text/rtf"):/text\/plain/i.test(r)&&!ie("mozilla")?o.getData(W):/text/i.test(r)&&F?o.getData(W):"")();(me.isNode(a,t.editorWindow)||""!==Mt(a))&&(a=s(a),t.buffer.get(vo)!==a&&(a=t.events.fire("processPaste",e,a,r)),("string"==typeof a||me.isNode(a,t.editorWindow))&&("drop"===e.type&&t.selection.insertCursorAtPoint(e.clientX,e.clientY),i(a,t.options.defaultActionOnPaste)),e.preventDefault(),e.stopPropagation())}return!1!==t.events.fire("afterPaste",e)&&void 0}),t.options.askBeforePasteHTML&&t.events.on("beforePaste",t=>{const e=mo(t);if(t&&e&&e.getData(W)){const i=e.getData(W);return o(i,t)}}),t.options.askBeforePasteFromWord&&t.events.on("beforePaste",i=>{const n=mo(i);if(i&&n&&n.getData&&n.getData($)){const r=n=>{const r=t.buffer.get(vo);if(gt(n)&&r!==s(n))return vt(n)?e(t.i18n("The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?"),t.i18n("Word Paste Detected"),e=>{!0===e&&(n=St(n),t.options.beautifyHTML&&t.ownerWindow.html_beautify&&(n=t.ownerWindow.html_beautify(n))),!1===e&&(n=Bt(n)),0===e&&(n=Ot(Bt(n))),t.selection.insertHTML(n),t.setEditorValue()}):o(n,i),!1};if(n.types&&-1!==Array.from(n.types).indexOf("text/html")){const t=n.getData($);return r(t)}if("drop"!==i.type){const e=t.create.div("",{tabindex:-1,contenteditable:!0,style:{left:-9999,top:0,width:0,height:"100%",lineHeight:"140%",overflow:"hidden",position:"fixed",zIndex:2147483647,wordBreak:"break-all"}});t.container.appendChild(e);const i=t.selection.save();e.focus();let o=0;const s=()=>{me.safeRemove(e),t.selection&&t.selection.restore(i)},n=()=>{if(o+=1,e.childNodes&&e.childNodes.length>0){const i=e.innerHTML;return s(),void(!1!==r(i)&&t.selection.insertHTML(i))}5>o?st(n,20):s()};n()}}}),t.options.nl2brInPlainText&&t.events.on("processPaste",(t,e,i)=>{if(i===W+";"&&!gt(e))return fo(e)})}we.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(t){t.selection.focus();let e="",i=!0;if(i&&(e=t.buffer.get(vo)||"",i=0===e.length),i&&navigator.clipboard){try{const t=await navigator.clipboard.read();if(t&&t.length){const i=await t[0].getType("text/plain");e=await new Response(i).text()}}catch(t){}if(i)try{e=await navigator.clipboard.readText(),i=!1}catch(t){}}if(i){const e=t.value;t.editorDocument.execCommand("paste"),i=e!==t.value}e?t.selection.insertHTML(e):i&&Hi(t.i18n("Your browser doesn't support direct access to the clipboard."),()=>{t.selection.focus()})}},we.prototype.controls.cut={command:"cut",isDisable:t=>t.selection.isCollapsed(),tooltip:"Cut selection"},we.prototype.controls.copy={command:"copy",isDisable:t=>t.selection.isCollapsed(),tooltip:"Copy selection"};const vo="clipboard";class bo extends Fi{afterInit(t){t.events.on(`copy.${vo} cut.${vo}`,e=>{var i,o;const s=t.selection.getHTML(),n=mo(e)||mo(t.editorWindow)||mo(e.originalEvent);n&&(n.setData(W,Ot(s)),n.setData($,s)),t.buffer.set(vo,s),"cut"===e.type&&(t.selection.remove(),t.selection.focus()),e.preventDefault(),null===(o=null===(i=t)||void 0===i?void 0:i.events)||void 0===o||o.fire("afterCopy",s)})}beforeDestruct(t){var e,i,o,s;null===(i=null===(e=t)||void 0===e?void 0:e.buffer)||void 0===i||i.set(vo,""),null===(s=null===(o=t)||void 0===o?void 0:o.events)||void 0===s||s.off("."+vo)}}class yo extends Fi{constructor(){super(...arguments),this.currentIndex=0,this.list=[],this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.paste=()=>{if(this.jodit.selection.focus(),this.jodit.selection.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){const t=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=t}this.dialog&&this.dialog.close(),this.jodit.setEditorValue()},this.onKeyDown=t=>{let e=this.currentIndex;-1!==[x,j,_].indexOf(t.which)&&(t.which===x&&(0===e?e=this.list.length-1:e-=1),t.which===j&&(e===this.list.length-1?e=0:e+=1),t.which!==_?(e!==this.currentIndex&&this.selectIndex(e),t.stopImmediatePropagation(),t.preventDefault()):this.paste())},this.selectIndex=t=>{this.listBox&&Array.from(this.listBox.childNodes).forEach((e,i)=>{e.classList.remove("jodit_active"),t===i&&this.previewBox&&(e.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[t],e.focus())}),this.currentIndex=t},this.showDialog=()=>{2>this.list.length||(this.dialog||this.createDialog(),this.listBox&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),this.list.forEach((t,e)=>{const i=this.jodit.ownerDocument.createElement("a");i.textContent=e+1+". "+t.replace(p,""),i.addEventListener("keydown",this.onKeyDown),i.setAttribute("href","javascript:void(0)"),i.setAttribute("data-index",""+e),i.setAttribute("tab-index","-1"),this.listBox&&this.listBox.appendChild(i)}),this.dialog&&this.dialog.open(),st(()=>{this.selectIndex(0)},100))}}createDialog(){this.dialog=new Bi(this.jodit);const t=this.jodit.create.fromHTML('<a href="javascript:void(0)" style="float:right;" class="jodit_button"><span>'+this.jodit.i18n("Paste")+"</span></a>");t.addEventListener("click",this.paste);const e=this.jodit.create.fromHTML('<a href="javascript:void(0)" style="float:right; margin-right: 10px;" class="jodit_button"><span>'+this.jodit.i18n("Cancel")+"</span></a>");e.addEventListener("click",this.dialog.close),this.container=this.jodit.ownerDocument.createElement("div"),this.container.classList.add("jodit_paste_storage"),this.listBox=this.jodit.ownerDocument.createElement("div"),this.previewBox=this.jodit.ownerDocument.createElement("div"),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setTitle(this.jodit.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([t,e]),this.jodit.events.on(this.listBox,"click dblclick",t=>{const e=t.target;return e&&"A"===e.nodeName&&e.hasAttribute("data-index")&&this.selectIndex(parseInt(e.getAttribute("data-index")||"0",10)),"dblclick"===t.type&&this.paste(),!1},"a")}afterInit(){this.jodit.events.on("afterCopy",t=>{-1!==this.list.indexOf(t)&&this.list.splice(this.list.indexOf(t),1),this.list.unshift(t),this.list.length>5&&(this.list.length=5)}),this.jodit.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),me.safeRemove(this.previewBox),me.safeRemove(this.listBox),me.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}}const _o=["fontWeight","fontStyle","fontSize","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine","fontFamily"],wo=(t,e,i,o)=>{let s=ne(i,e);return s===o[e]&&(s=i.parentNode&&i!==t.editor&&i.parentNode!==t.editor?wo(t,e,i.parentNode,o):void 0),s};we.prototype.controls.copyformat={exec(t,e){if(e)if(t.buffer.exists("copyformat"))t.buffer.set("copyformat",!1),t.events.off(t.editor,"mouseup.copyformat");else{const i={},o=me.up(e,t=>t&&t.nodeType!==Node.TEXT_NODE,t.editor)||t.editor,s=t.create.inside.span();t.editor.appendChild(s),_o.forEach(t=>{i[t]=ne(s,t)}),s!==t.editor&&me.safeRemove(s);const n=((t,e,i)=>{const o={};return e&&_o.forEach(s=>{o[s]=wo(t,s,e,i),s.match(/border(Style|Color)/)&&!o.borderWidth&&(o[s]=void 0)}),o})(t,o,i),r=()=>{t.buffer.set("copyformat",!1);const e=t.selection.current();e&&("IMG"===e.nodeName?ne(e,n):t.selection.applyCSS(n)),t.events.off(t.editor,"mouseup.copyformat")};t.events.on(t.editor,"mouseup.copyformat",r),t.buffer.set("copyformat",!0)}},isActive:t=>!!t.buffer.get("copyformat"),tooltip:"Paint format"};var ko=ve.TabsWidget,xo=ve.ColorPickerWidget;function Co(t){const e=(e,i,o)=>{const s=Gt(o);switch(e){case"background":t.selection.applyCSS({backgroundColor:s||""});break;case"forecolor":t.selection.applyCSS({color:s||""})}return t.setEditorValue(),!1};t.registerCommand("forecolor",e).registerCommand("background",e)}we.prototype.controls.brush={isActive(t,e,i){if(!i)return!0;const o=t.selection.current(),s=i.container.querySelector("svg");if(s&&s.style.fill&&s.style.removeProperty("fill"),o&&!i.isDisable()){const e=me.closest(o,e=>me.isBlock(e,t.editorWindow)||e&&me.isNode(e,t.editorWindow)&&e.nodeType===Node.ELEMENT_NODE,t.editor)||t.editor,i=""+ne(e,"color"),n=""+ne(e,"background-color");if(i!==""+ne(t.editor,"color"))return s&&(s.style.fill=i),!0;if(n!==""+ne(t.editor,"background-color"))return s&&(s.style.fill=n),!0}return!1},popup(t,e,i,o){let s,n="",r="",a=null;e&&e!==t.editor&&me.isNode(e,t.editorWindow)&&e.nodeType===Node.ELEMENT_NODE&&(n=""+ne(e,"color"),r=""+ne(e,"background-color"),a=e);const l=xo(t,e=>{a?a.style.backgroundColor=e:t.execCommand("background",!1,e),o()},r),d=xo(t,e=>{a?a.style.color=e:t.execCommand("forecolor",!1,e),o()},n);return s="background"===t.options.colorPickerDefaultTab?{Background:l,Text:d}:{Text:d,Background:l},ko(t,s,a)},tooltip:"Fill color or set the text color"};class jo extends Fi{constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.onDragEnd=()=>{this.draggable&&(me.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1},this.onDrag=t=>{this.draggable&&(this.draggable.parentNode||this.jodit.ownerDocument.body.appendChild(this.draggable),this.jodit.events.fire("hidePopup"),ne(this.draggable,{left:t.clientX+20,top:t.clientY+20}),this.jodit.selection.insertCursorAtPoint(t.clientX,t.clientY),t.preventDefault(),t.stopPropagation())},this.onDrop=t=>{if(!t.dataTransfer||!t.dataTransfer.files||!t.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.jodit.events.fire("paste",t),t.preventDefault(),t.stopPropagation(),!1;const e=this.jodit.selection.sel,i=this.bufferRange||(e&&e.rangeCount?e.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[t,e]="1"===this.draggable.getAttribute("data-is-file")?["a","href"]:["img","src"];o=this.jodit.editorDocument.createElement(t),o.setAttribute(e,this.draggable.getAttribute("data-src")||this.draggable.getAttribute("src")||""),"a"===t&&(o.textContent=o.getAttribute(e)||"")}else o=le(this.draggable,"target");else this.getText(t)&&(o=this.jodit.create.inside.fromHTML(this.getText(t)));e&&e.removeAllRanges(),this.jodit.selection.insertCursorAtPoint(t.clientX,t.clientY),o&&(this.jodit.selection.insertNode(o,!1,!1),i&&o.firstChild&&o.lastChild&&(i.setStartBefore(o.firstChild),i.setEndAfter(o.lastChild),this.jodit.selection.selectRange(i),this.jodit.events.fire("synchro")),"IMG"===o.nodeName&&this.jodit.events&&this.jodit.events.fire("afterInsertImage",o)),t.preventDefault(),t.stopPropagation()}this.isFragmentFromEditor=!1},this.onDragStart=t=>{let e=t.target;if(this.onDragEnd(),this.isFragmentFromEditor=me.isOrContains(this.jodit.editor,e,!0),this.isCopyMode=!this.isFragmentFromEditor||ae(t),this.isFragmentFromEditor){const t=this.jodit.selection.sel,e=t&&t.rangeCount?t.getRangeAt(0):null;e&&(this.bufferRange=e.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=t.clientX,this.startDragPoint.y=t.clientY,e.nodeType===Node.ELEMENT_NODE&&e.matches(".jodit_filebrowser_files_item")&&(e=e.querySelector("img")),"IMG"===e.nodeName&&(this.draggable=e.cloneNode(!0),le(this.draggable,"target",e),ne(this.draggable,{"z-index":1e14,"pointer-events":"none",position:"fixed",display:"inlin-block",left:this.startDragPoint.x,top:this.startDragPoint.y,width:e.offsetWidth,height:e.offsetHeight}))},this.getDataTransfer=t=>t.dataTransfer||new DataTransfer,this.getText=t=>{const e=this.getDataTransfer(t);return e.getData($)||e.getData(W)}}afterInit(){this.jodit.events.on(window,"dragover",this.onDrag).on([window,this.jodit.editorDocument,this.jodit.editor],"dragstart",this.onDragStart).on("drop",this.onDrop).on(window,"dragend drop mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd()}}we.prototype.draggableTags=["img","a","jodit-media","jodit"];class To extends Fi{constructor(){super(...arguments),this.dragList=[],this.isCopyMode=!1,this.draggable=null,this.wasMoved=!1,this.timeout=0,this.onDrag=rt(t=>{this.draggable&&(this.wasMoved=!0,this.jodit.events.fire("hidePopup hideResizer"),this.draggable.parentNode||this.jodit.ownerDocument.body.appendChild(this.draggable),ne(this.draggable,{left:t.clientX+20,top:t.clientY+20}),this.jodit.selection.insertCursorAtPoint(t.clientX,t.clientY))},this.jodit.defaultTimeout),this.onDragStart=t=>{let e=t.target,i=null;if(this.dragList.length){do{-1!==this.dragList.indexOf(e.nodeName.toLowerCase())&&(!i||e.firstChild===i&&e.lastChild===i)&&(i=e),e=e.parentNode}while(e&&e!==this.jodit.editor);i&&(this.isCopyMode=ae(t),this.onDragEnd(),this.timeout=st(e=>{e&&(this.draggable=e.cloneNode(!0),le(this.draggable,"target",e),ne(this.draggable,{"z-index":1e14,"pointer-events":"none",position:"fixed",display:"inlin-block",left:t.clientX,top:t.clientY,width:e.offsetWidth,height:e.offsetHeight}))},this.jodit.defaultTimeout,i),t.preventDefault())}},this.onDragEnd=()=>{window.clearTimeout(this.timeout),this.draggable&&(me.safeRemove(this.draggable),this.draggable=null,this.wasMoved=!1)},this.onDrop=()=>{if(!this.draggable||!this.wasMoved)return void this.onDragEnd();let t=le(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(t=t.cloneNode(!0)),this.jodit.selection.insertNode(t,!0,!1),"IMG"===t.nodeName&&this.jodit.events&&this.jodit.events.fire("afterInsertImage",t),this.jodit.events.fire("synchro")}}afterInit(){this.dragList=this.jodit.options.draggableTags?ot(this.jodit.options.draggableTags).filter(t=>t).map(t=>t.toLowerCase()):[],this.dragList.length&&this.jodit.events.on(this.jodit.editor,"mousemove touchmove",this.onDrag).on(this.jodit.editor,"mousedown touchstart dragstart",this.onDragStart).on("mouseup touchend",this.onDrop).on(window,"mouseup touchend",this.onDragEnd)}beforeDestruct(){this.onDragEnd()}}const Eo=(t,e,i,o)=>{const s=t.create.inside.element(i),n=t.create.inside.element("br");s.appendChild(n),o&&o.cssText&&s.setAttribute("style",o.cssText),t.selection.insertNode(s,!1,!1),t.selection.setCursorBefore(n);const r=t.editorDocument.createRange();return r.setStartBefore("br"!==i.toLowerCase()?n:s),r.collapse(!0),t.selection.selectRange(r),me.safeRemove(e),ue(s,t.editor,t.editorDocument),t.events&&t.events.fire("synchro"),s};function zo(t){t.options.enterBlock||(t.options.enterBlock="br"===t.options.enter.toLowerCase()?B:t.options.enter.toLowerCase()),t.events.on("keydown",e=>{if(e.which===_){const i=t.events.fire("beforeEnter",e);if(void 0!==i)return i;t.selection.isCollapsed()||t.execCommand("Delete"),t.selection.focus();let o=t.selection.current(!1);const s=t.selection.sel;let n=t.selection.range;o&&o!==t.editor||(t.selection.current(),o=t.create.inside.text(l),s&&s.rangeCount?n.insertNode(o):t.editor.appendChild(o),n.selectNode(o),n.collapse(!1),s&&(s.removeAllRanges(),s.addRange(n)));let r=!!o&&me.up(o,e=>me.isBlock(e,t.editorWindow),t.editor);const a=r&&"LI"===r.nodeName;if(!a&&(t.options.enter.toLowerCase()===R.toLowerCase()||e.shiftKey||me.closest(o,"PRE|BLOCKQUOTE",t.editor))){const e=t.create.inside.element("br");return t.selection.insertNode(e,!0),ue(e,t.editor,t.editorDocument),!1}if(!r&&o&&!me.prev(o,e=>me.isBlock(e,t.editorWindow)||!!e&&me.isImage(e,t.editorWindow),t.editor)){let e=o;if(me.up(e,i=>{i&&i.hasChildNodes()&&i!==t.editor&&(e=i)},t.editor),r=me.wrapInline(e,t.options.enter,t),me.isEmpty(r)){const e=t.editorDocument.createElement("br");r.appendChild(e),t.selection.setCursorBefore(e)}n=s&&s.rangeCount?s.getRangeAt(0):t.editorDocument.createRange()}let d=!1,c=!1;if(r){if(!me.canSplitBlock(r,t.editorWindow)){const e=t.create.inside.element("br");return t.selection.insertNode(e,!1),t.selection.setCursorAfter(e),!1}if(a&&me.isEmpty(r)){let e=!1;const i=me.closest(r,"ol|ul",t.editor);if(me.prev(r,t=>t&&"LI"===t.nodeName,i))if(me.next(r,t=>t&&"LI"===t.nodeName,i)){const o=t.editorDocument.createRange();o.setStartBefore(i),o.setEndAfter(r);const s=o.extractContents();i.parentNode&&i.parentNode.insertBefore(s,i),e=t.selection.setCursorBefore(i)}else e=t.selection.setCursorAfter(i);else e=t.selection.setCursorBefore(i);return me.safeRemove(r),Eo(t,e,t.options.enter),zt("li",i).length||me.safeRemove(i),!1}if(t.selection.cursorInTheEdge(!0,r))return d=t.selection.setCursorBefore(r),Eo(t,d,a?"li":t.options.enter,r.style),r&&t.selection.setCursorIn(r,!0),!1;if(!1===t.selection.cursorInTheEdge(!1,r)){const e=t.editorDocument.createRange();e.setStartBefore(r),e.setEnd(n.startContainer,n.startOffset);const i=e.extractContents();r.parentNode&&r.parentNode.insertBefore(i,r),t.selection.setCursorIn(r,!0)}else d=t.selection.setCursorAfter(r)}else c=!0;return(c||d)&&Eo(t,d,a?"li":t.options.enter,r?r.style:void 0),!1}})}function qo(t){if(t.options.showMessageErrors){let e;const i=t.create.div("jodit_error_box_for_messages"),o=()=>{e=5,Array.from(i.childNodes).forEach(o=>{ne(i,"bottom",e+"px"),e+=o.offsetWidth+t.options.showMessageErrorOffsetPx})};t.workplace.appendChild(i),t.events.on("beforeDestruct",()=>{me.safeRemove(i)}).on("errorMessage",(e,s,n)=>{const r=t.create.div("active "+(s||""),e);i.appendChild(r),o(),st(()=>{r.classList.remove("active"),st(()=>{me.safeRemove(r),o()},300)},n||t.options.showMessageErrorTime)})}}function So(t){const e=(e,i,o)=>{switch(e){case"fontsize":t.selection.applyCSS({fontSize:Kt(o)});break;case"fontname":t.selection.applyCSS({fontFamily:o})}return t.events.fire("synchro"),!1};t.registerCommand("fontsize",e).registerCommand("fontname",e)}function Lo(t){t.registerCommand("formatblock",(e,i,o)=>{t.selection.focus();let s=!1;if(t.selection.eachSelection(e=>{const i=t.selection.save();let n=!!e&&me.up(e,e=>me.isBlock(e,t.editorWindow),t.editor);n&&"LI"!==n.nodeName||!e||(n=me.wrapInline(e,t.options.enter,t)),n?(n.tagName.match(/TD|TH|TBODY|TABLE|THEAD/i)?t.selection.isCollapsed()?me.wrapInline(e,o,t):t.selection.applyCSS({},o):o===t.options.enterBlock.toLowerCase()&&n.parentNode&&"LI"===n.parentNode.nodeName?me.unwrap(n):me.replace(n,o,!0,!1,t.editorDocument),s=!0,t.selection.restore(i)):t.selection.restore(i)}),!s){const e=t.editorDocument.createElement(o);e.innerHTML=l,t.selection.insertNode(e,!1),t.selection.setCursorIn(e)}return t.setEditorValue(),!1})}function No(t){let e=!1,i=0,o=0,s=!1;const n=()=>{t.events&&(e?(i=ne(t.container,"height"),o=ne(t.container,"width"),ne(t.container,{height:t.ownerWindow.innerHeight,width:t.ownerWindow.innerWidth}),s=!0):s&&ne(t.container,{height:i||"auto",width:o||"auto"}))},r=i=>{var o,s;if(t.container){if(void 0===i&&(i=!t.container.classList.contains("jodit_fullsize")),t.options.fullsize=i,e=i,t.container.classList.toggle("jodit_fullsize",i),t.toolbar&&(i?null===(s=t.container.querySelector(".jodit_toolbar_container"))||void 0===s||s.appendChild(t.toolbar.container):null===(o=t.toolbar.getParentContainer())||void 0===o||o.appendChild(t.toolbar.container),ne(t.toolbar.container,"width","auto")),t.options.globalFullsize){let e=t.container.parentNode;for(;e&&e.nodeType!==Node.DOCUMENT_NODE;)e.classList.toggle("jodit_fullsize_box",i),e=e.parentNode;n()}t.events.fire("afterResize")}};t.options.globalFullsize&&t.events.on(t.ownerWindow,"resize",n),t.events.on("afterInit afterOpen",()=>{var e,i;t.toggleFullSize(null===(i=null===(e=t)||void 0===e?void 0:e.options)||void 0===i?void 0:i.fullsize)}).on("toggleFullSize",r).on("beforeDestruct beforeClose",()=>{r(!1)}).on("beforeDestruct",()=>{t.events&&t.events.off(t.ownerWindow,"resize",n)})}we.prototype.showMessageErrors=!0,we.prototype.showMessageErrorTime=3e3,we.prototype.showMessageErrorOffsetPx=3,we.prototype.controls.fontsize={command:"fontSize",list:["8","9","10","11","12","14","16","18","24","30","36","48","60","72","96"],template:(t,e,i)=>i,tooltip:"Font size",isActiveChild(t,e){const i=t.selection.current();if(i){const o=me.closest(i,e=>me.isBlock(e,t.editorWindow)||e&&me.isNode(e,t.editorWindow)&&e.nodeType===Node.ELEMENT_NODE,t.editor)||t.editor,s=ne(o,"font-size");return!(!s||!e.args||""+e.args[1]!=""+s)}return!1},isActive(t){const e=t.selection.current();if(e){const i=me.closest(e,e=>me.isBlock(e,t.editorWindow)||e&&me.isNode(e,t.editorWindow)&&e.nodeType===Node.ELEMENT_NODE,t.editor)||t.editor;return""+ne(i,"font-size")!=""+ne(t.editor,"font-size")}return!1}},we.prototype.controls.font={command:"fontname",exec(t,e,i){t.execCommand(i.command,!1,i.args?i.args[0]:void 0)},list:{"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"},template:(t,e,i)=>`<span style="font-family: ${e}">${i}</span>`,isActiveChild(t,e){const i=t.selection.current(),o=t=>t.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9]+/g,",");if(i){const s=me.closest(i,e=>me.isBlock(e,t.editorWindow)||e&&me.isNode(e,t.editorWindow)&&e.nodeType===Node.ELEMENT_NODE,t.editor)||t.editor,n=""+ne(s,"font-family");return!(!n||!e.args||o(""+e.args[0])!==o(n))}return!1},isActive(t){const e=t.selection.current();if(e){const i=me.closest(e,e=>me.isBlock(e,t.editorWindow)||me.isNode(e,t.editorWindow)&&e&&e.nodeType===Node.ELEMENT_NODE,t.editor)||t.editor;return""+ne(i,"font-family")!=""+ne(t.editor,"font-family")}return!1},tooltip:"Font family"},we.prototype.controls.paragraph={command:"formatBlock",getLabel(t,e,i){const o=t.selection.current();if(o&&t.options.textIcons){const s=(me.closest(o,e=>me.isBlock(e,t.editorWindow),t.editor)||t.editor).nodeName.toLowerCase(),n=e.list;i&&e.data&&e.data.currentValue!==s&&e.list&&n[s]&&(i.textBox.innerHTML=`<span>${t.i18n(n[s])}</span>`,i.textBox.firstChild.classList.add("jodit_icon"),e.data.currentValue=s)}return!1},exec(t,e,i){t.execCommand(i.command,!1,i.args?i.args[0]:void 0)},data:{currentValue:"left"},list:{p:"Normal",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote"},isActiveChild(t,e){const i=t.selection.current();if(i){const o=me.closest(i,e=>me.isBlock(e,t.editorWindow),t.editor);return o&&o!==t.editor&&void 0!==e.args&&o.nodeName.toLowerCase()===e.args[0]}return!1},isActive(t,e){const i=t.selection.current();if(i){const o=me.closest(i,e=>me.isBlock(e,t.editorWindow),t.editor);return o&&o!==t.editor&&void 0!==e.list&&"p"!==o.nodeName.toLowerCase()&&void 0!==e.list[o.nodeName.toLowerCase()]}return!1},template:(t,e,i)=>"<"+e+' class="jodit_list_element"><span>'+t.i18n(i)+"</span></"+e+"></li>",tooltip:"Insert format block"},we.prototype.fullsize=!1,we.prototype.globalFullsize=!0,we.prototype.controls.fullsize={exec(t){t.toggleFullSize()},isActive:t=>t.isFullSize(),getLabel(t,e,i){const o=t.isFullSize()?"shrink":"fullsize";i&&(i.textBox.innerHTML=t.options.textIcons?`<span>${t.i18n(o)}</span>`:ge.getIcon(o),i.textBox.firstChild.classList.add("jodit_icon"))},tooltip:"Open editor in fullsize",mode:P+H},we.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 Mo extends Fi{constructor(){super(...arguments),this.onKeyPress=t=>{const e=this.specialKeys[t.which],i=(t.key||String.fromCharCode(t.which)).toLowerCase(),o=[e||i];return["alt","ctrl","shift","meta"].forEach(i=>{t[i+"Key"]&&e!==i&&o.push(i)}),Ft(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(t){Object.keys(t.options.commandToHotkeys).forEach(e=>{const i=t.options.commandToHotkeys[e];i&&t.registerHotkeyToCommand(i,e)});let e=!1;t.events.on("keydown.hotkeys",i=>{const o=this.onKeyPress(i);if(!1===this.jodit.events.fire(o+".hotkey",i.type))return e=!0,t.events.stopPropagation("keydown"),!1},void 0,void 0,!0).on("keyup.hotkeys",()=>{if(e)return e=!1,t.events.stopPropagation("keyup"),!1},void 0,void 0,!0)}beforeDestruct(t){t.events&&t.events.off(".hotkeys")}}function Ao(t){t.events.on("afterSetMode",()=>{t.isEditorMode()&&t.selection.focus()}).on("generateDocumentStructure.iframe",(t,e)=>{const i=t||e.iframe.contentWindow.document;if(i.open(),i.write('<!DOCTYPE html><html dir="'+e.options.direction+'" class="jodit" lang="'+It(e.options.language)+'"><head><title>Jodit Editor</title>'+(e.options.iframeBaseUrl?'<base href="'+e.options.iframeBaseUrl+'"/>':"")+'</head><body class="jodit_wysiwyg" style="outline:none" contenteditable="true"></body></html>'),i.close(),e.options.iframeCSSLinks&&e.options.iframeCSSLinks.forEach(t=>{const e=i.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),i.head&&i.head.appendChild(e)}),e.options.iframeStyle){const t=i.createElement("style");t.innerHTML=e.options.iframeStyle,i.head&&i.head.appendChild(t)}}).on("createEditor",async()=>{if(!t.options.iframe)return;delete t.editor;const e=t.create.element("iframe");e.style.display="block",e.src="about:blank",e.className="jodit_wysiwyg_iframe",e.setAttribute("allowtransparency","true"),e.setAttribute("tabindex",""+t.options.tabIndex),e.setAttribute("frameborder","0"),t.workplace.appendChild(e),t.iframe=e,await t.events.fire("generateDocumentStructure.iframe",null,t);const i=t.iframe.contentWindow.document;if(t.editorDocument=i,t.editorWindow=t.iframe.contentWindow,t.create.inside.setDocument(i),t.editor=i.body,"auto"===t.options.height){i.documentElement&&(i.documentElement.style.overflowY="hidden");const e=rt(()=>{t.editor&&t.iframe&&"auto"===t.options.height&&ne(t.iframe,"height",t.editor.offsetHeight)},t.defaultTimeout/2);t.events.on("change afterInit afterSetMode resize",e).on([t.iframe,t.editorWindow,i.documentElement],"load",e).on(i,"readystatechange DOMContentLoaded",e)}return(t=>{t.matches||(t.matches=Element.prototype.matches)})(t.editorWindow.Element.prototype),t.editorDocument.documentElement&&t.events.on(t.editorDocument.documentElement,"mousedown touchend",()=>{t.selection.isFocused()||(t.selection.focus(),t.selection.setCursorIn(t.editor))}).on(t.editorWindow,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",e=>{t.events&&t.events.fire&&t.events.fire(t.ownerWindow,e)}),!1})}we.prototype.iframeBaseUrl="",we.prototype.iframeDefaultSrc="about:blank",we.prototype.iframeStyle='html{margin: 0px;min-height: 100%;}body{box-sizing: border-box;font-size: 13px;    line-height: 1.6;padding:10px;background:transparent;color:#000;position:relative;z-index: 2;user-select:auto;margin:0px;overflow:auto;}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}td[data-jodit-selected-cell],th[data-jodit-selected-cell]{border: 1px double #1e88e5}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}',we.prototype.iframeCSSLinks=[];const Io="__jodit_imageprocessor_binded";function Do(t){t.events.on("change afterInit",nt(()=>{t.editor&&zt("img",t.editor).forEach(e=>{e[Io]||(e[Io]=!0,e.complete||e.addEventListener("load",(function i(){t.events&&t.events.fire&&t.events.fire("resize"),e.removeEventListener("load",i)})),t.events.on(e,"mousedown touchstart",()=>{t.selection.select(e)}))})},t.defaultTimeout))}var Ro=ve.TabsWidget,Bo=ve.FileSelectorWidget;function Ho(t){const e=t.i18n,i=ge.getIcon,o=t.options,s=t.create.fromHTML.bind(t.create),n=function(n){if(o.readonly)return;n&&n.stopImmediatePropagation();const r=this,a=new Bi(t),l=s(`<a href="javascript:void(0)" class="jodit_button  jodit_status_success">${i("check")}<span>${e("Ok")}</span></a>`),d={remove:s(`<a href="javascript:void(0)" class="jodit_button">${i("bin")}<span>${e("Delete")}</span></a>`)},c=s(`<form class="jodit_properties">\n\t\t\t\t\t\t\t\t<div class="jodit_grid">\n\t\t\t\t\t\t\t\t\t<div class="jodit_col-lg-2-5">\n\t\t\t\t\t\t\t\t\t\t<div class="jodit_properties_view_box">\n\t\t\t\t\t\t\t\t\t\t\t<div style="${o.image.showPreview?"":"display:none"}" class="jodit_properties_image_view">\n\t\t\t\t\t\t\t\t\t\t\t\t<img class="imageViewSrc" src="" alt=""/>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div style="${o.image.editSize?"":"display:none"}" class="jodit_form_group jodit_properties_image_sizes">\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="number" class="imageWidth jodit_input"/>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class="jodit_lock_helper jodit_lock_size" href="javascript:void(0)">${i("lock")}</a>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="number" class="imageHeight jodit_input"/>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="jodit_col-lg-3-5 tabsbox"></div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</form>`),h=s(`<div style="${o.image.editMargins?"":"display:none"}" class="jodit_form_group">\n\t\t\t\t\t\t\t\t<label>${e("Margins")}</label>\n\t\t\t\t\t\t\t\t<div class="jodit_grid jodit_vertical_middle">\n\t\t\t\t\t\t\t\t\t<input class="jodit_col-lg-1-5 margins marginTop jodit_input" data-id="marginTop" type="text" placeholder="${e("top")}"/>\n\t\t\t\t\t\t\t\t\t<a style="text-align: center;" class="jodit_lock_helper jodit_lock_margin jodit_col-lg-1-5" href="javascript:void(0)">${i("lock")}</a>\n\t\t\t\t\t\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 margins marginRight jodit_input" data-id="marginRight" type="text" placeholder="${e("right")}"/>\n\t\t\t\t\t\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 margins marginBottom jodit_input" data-id="marginBottom" type="text" placeholder="${e("bottom")}"/>\n\t\t\t\t\t\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 margins marginLeft jodit_input" data-id="marginLeft" type="text" placeholder="${e("left")}"/>\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\t<div style="${o.image.editStyle?"":"display:none"}" class="jodit_form_group">\n\t\t\t\t\t\t\t\t<label>${e("Styles")}</label>\n\t\t\t\t\t\t\t\t<input type="text" class="style jodit_input"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div style="${o.image.editClass?"":"display:none"}" class="jodit_form_group">\n\t\t\t\t\t\t\t\t<label for="classes">${e("Classes")}</label>\n\t\t\t\t\t\t\t\t<input type="text" class="classes jodit_input"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div style="${o.image.editId?"":"display:none"}" class="jodit_form_group">\n\t\t\t\t\t\t\t\t<label for="id">Id</label>\n\t\t\t\t\t\t\t\t<input type="text" class="id jodit_input"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tstyle="${o.image.editBorderRadius?"":"display:none"}"\n\t\t\t\t\t\t\t\tclass="jodit_form_group"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<label for="border_radius">${e("Border radius")}</label>\n\t\t\t\t\t\t\t\t<input type="number" class="border_radius jodit_input"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tstyle="${o.image.editAlign?"":"display:none"}"\n\t\t\t\t\t\t\t\tclass="jodit_form_group"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<label for="align">${e("Align")}</label>\n\t\t\t\t\t\t\t\t<select class="select align jodit_select">\n\t\t\t\t\t\t\t\t\t<option value="">${e("--Not Set--")}</option>\n\t\t\t\t\t\t\t\t\t<option value="left">${e("Left")}</option>\n\t\t\t\t\t\t\t\t\t<option value="center">${e("Center")}</option>\n\t\t\t\t\t\t\t\t\t<option value="right">${e("Right")}</option>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t</div>`),p=o.filebrowser.ajax.url||o.uploader.url,u=o.image.useImageEditor,f=s(`<div style="${o.image.editSrc?"":"display:none"}" class="jodit_form_group">\n\t\t\t\t\t\t\t\t<label>${e("Src")}</label>\n\t\t\t\t\t\t\t\t<div class="jodit_input_group">\n\t\t\t\t\t\t\t\t\t<input class="jodit_input imageSrc" type="text"/>\n\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\tclass="jodit_input_group-buttons"\n\t\t\t\t\t\t\t\t\t\tstyle="${p?"":"display: none"}"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<a class="jodit_button jodit_rechange" href="javascript:void(0)">${i("image")}</a>\n\t\t\t\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\t\t\t\tclass="jodit_button jodit_use_image_editor" href="javascript:void(0)"\n\t\t\t\t\t\t\t\t\t\t\t\tstyle="${u?"":"display: none"}"\n\t\t\t\t\t\t\t\t\t\t\t>${i("crop")}</a>\n\t\t\t\t\t\t\t\t\t</div>\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\t<div style="${o.image.editTitle?"":"display:none"}" class="jodit_form_group">\n\t\t\t\t\t\t\t\t<label for="imageTitle">${e("Title")}</label>\n\t\t\t\t\t\t\t\t<input type="text" class="imageTitle jodit_input"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div style="${o.image.editAlt?"":"display:none"}" class="jodit_form_group">\n\t\t\t\t\t\t\t\t<label for="imageAlt">${e("Alternative")}</label>\n\t\t\t\t\t\t\t\t<input type="text" class="imageAlt jodit_input"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div style="${o.image.editLink?"":"display:none"}" class="jodit_form_group">\n\t\t\t\t\t\t\t\t<label for="imageLink">${e("Link")}</label>\n\t\t\t\t\t\t\t\t<input type="text" class="imageLink jodit_input"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div style="${o.image.editLink?"":"display:none"}" class="jodit_form_group">\n\t\t\t\t\t\t\t\t<div class="jodit_vertical_middle">\n\t\t\t\t\t\t\t\t\t<input type="checkbox" class="imageLinkOpenInNewTab jodit_checkbox"/>\n\t\t\t\t\t\t\t\t\t${e("Open link in new tab")}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>`),m=r.naturalWidth/r.naturalHeight||1,g=c.querySelector(".imageWidth"),v=c.querySelector(".imageHeight"),b=()=>{fe(c,".imageSrc",r.getAttribute("src")||"");const t=c.querySelector(".imageViewSrc");t&&t.setAttribute("src",r.getAttribute("src")||"")},y=()=>{b(),(()=>{r.hasAttribute("title")&&fe(c,".imageTitle",r.getAttribute("title")||""),r.hasAttribute("alt")&&fe(c,".imageAlt",r.getAttribute("alt")||"");const e=me.closest(r,"a",t.editor);e&&(fe(c,".imageLink",e.getAttribute("href")||""),c.querySelector(".imageLinkOpenInNewTab").checked="_blank"===e.getAttribute("target"))})(),g.value=""+r.offsetWidth,v.value=""+r.offsetHeight,(()=>{if(!o.image.editMargins)return;let t=!1;zt(".margins",c).forEach(e=>{const i=e.getAttribute("data-id")||"";let o=r.style[i];o&&(/^[0-9]+(px)?$/.test(o)&&(o=parseInt(o,10)),e.value=""+o||"",t||"marginTop"===i||e.value===fe(c,".marginTop")||(t=!0))}),k=!t;const e=c.querySelector(".jodit_lock_margin");e&&(e.innerHTML=i(k?"lock":"unlock")),zt(".margins:not(.marginTop)",c).forEach(t=>k?t.setAttribute("disabled","true"):t.removeAttribute("disabled"))})(),fe(c,".classes",(r.getAttribute("class")||"").replace(/jodit_focused_image[\s]*/,"")),fe(c,".id",r.getAttribute("id")||""),fe(c,".border_radius",""+(parseInt(r.style.borderRadius||"0",10)||"0")),r.style.cssFloat&&-1!==["left","right"].indexOf(r.style.cssFloat.toLowerCase())?fe(c,".align",ne(r,"float")):"block"===ne(r,"display")&&"auto"===r.style.marginLeft&&"auto"===r.style.marginRight&&fe(c,".align","center"),fe(c,".style",r.getAttribute("style")||"")};let _,w=!0,k=!0;const x={},C=c.querySelector(".tabsbox");x.Image=f,x.Advanced=h,C&&C.appendChild(Ro(t,x)),y(),t.events.on(a,"afterClose",()=>{a.destruct(),r.parentNode&&o.image.selectImageAfterClose&&t.selection.select(r)}),d.remove.addEventListener("click",()=>{me.safeRemove(r),a.close()}),o.image.useImageEditor&&zt(".jodit_use_image_editor",f).forEach(i=>{t.events.on(i,"mousedown touchstart",()=>{const i=r.getAttribute("src")||"",o=t.create.element("a"),s=()=>{o.host===location.host||Oi(e("You can only edit your own images. Download this image on the host?"),i=>{i&&t.uploader&&t.uploader.uploadRemoteImage(""+o.href,t=>{Hi(e("The image has been successfully uploaded to the host!"),()=>{"string"==typeof t.newfilename&&(r.setAttribute("src",t.baseurl+t.newfilename),b())})},t=>{Hi(e("There was an error loading %s",t.message))})})};o.href=i,t.getInstance("FileBrowser").dataProvider.getPathByUrl(""+o.href,(e,s,n)=>{t.getInstance("FileBrowser").openImageEditor(o.href,s,e,n,()=>{const t=(new Date).getTime();r.setAttribute("src",i+(-1!==i.indexOf("?")?"":"?")+"&_tmp="+t),b()},t=>{Hi(t.message)})},t=>{Hi(t.message,s)})})}),zt(".jodit_rechange",f).forEach(e=>{e.addEventListener("mousedown",i=>{e.classList.toggle("active");const o=new We(t,e);o.open(Bo(t,{upload(t){t.files&&t.files.length&&r.setAttribute("src",t.baseurl+t.files[0]),y(),o.close()},filebrowser(t){t&&t.files&&Array.isArray(t.files)&&t.files.length&&(r.setAttribute("src",t.files[0]),o.close(),y())}},r,o.close),!0),i.stopPropagation()})});const j=c.querySelector(".jodit_lock_helper.jodit_lock_size"),T=c.querySelector(".jodit_lock_helper.jodit_lock_margin");j&&j.addEventListener("click",(function(){w=!w,this.innerHTML=i(w?"lock":"unlock"),t.events.fire(g,"change")})),T&&T.addEventListener("click",(function(){k=!k,this.innerHTML=i(k?"lock":"unlock"),k?zt(".margins",c).forEach(t=>{t.matches(".marginTop")||t.setAttribute("disabled","true")}):zt(".margins",c).forEach(t=>{t.matches(".marginTop")||t.removeAttribute("disabled")})}));const E=t=>{const e=parseInt(g.value,10),i=parseInt(v.value,10);t.target===g?v.value=""+Math.round(e/m):g.value=""+Math.round(i*m)};return t.events.on([g,v],"change keydown mousedown paste",e=>{w&&(t.defaultTimeout?(clearTimeout(_),_=st(E.bind(this,e),t.defaultTimeout)):E(e))}),a.setTitle([e("Image properties"),d.remove]),a.setContent(c),l.addEventListener("click",()=>{if(o.image.editStyle&&(fe(c,".style")?r.setAttribute("style",fe(c,".style")):r.removeAttribute("style")),!fe(c,".imageSrc"))return me.safeRemove(r),void a.close();r.setAttribute("src",fe(c,".imageSrc")),r.style.borderRadius="0"!==fe(c,".border_radius")&&/^[0-9]+$/.test(fe(c,".border_radius"))?fe(c,".border_radius")+"px":"",fe(c,".imageTitle")?r.setAttribute("title",fe(c,".imageTitle")):r.removeAttribute("title"),fe(c,".imageAlt")?r.setAttribute("alt",fe(c,".imageAlt")):r.removeAttribute("alt");let e=me.closest(r,"a",t.editor);fe(c,".imageLink")?(e||(e=me.wrap(r,"a",t)),e.setAttribute("href",fe(c,".imageLink")),c.querySelector(".imageLinkOpenInNewTab").checked?e.setAttribute("target","_blank"):e.removeAttribute("target")):e&&e.parentNode&&e.parentNode.replaceChild(r,e);const i=t=>(t=Mt(t),/^[0-9]+$/.test(t)?t+"px":t);g.value===""+r.offsetWidth&&v.value===""+r.offsetHeight||ne(r,{width:Mt(g.value)?i(g.value):null,height:Mt(v.value)?i(v.value):null}),o.image.editMargins&&(k?ne(r,"margin",i(fe(c,".marginTop"))):zt(".margins",c).forEach(t=>{const e=t.getAttribute("data-id")||"";ne(r,e,i(t.value))})),o.image.editClass&&(fe(c,".classes")?r.setAttribute("class",fe(c,".classes")):r.removeAttribute("class")),o.image.editId&&(fe(c,".id")?r.setAttribute("id",fe(c,".id")):r.removeAttribute("id")),o.image.editAlign&&(fe(c,".align")?-1!==["right","left"].indexOf(fe(c,".align").toLowerCase())?(ne(r,"float",fe(c,".align")),re(r)):(ne(r,"float",""),ne(r,{display:"block","margin-left":"auto","margin-right":"auto"})):(ne(r,"float")&&-1!==["right","left"].indexOf((""+ne(r,"float")).toLowerCase())&&ne(r,"float",""),re(r))),r.getAttribute("style")||r.removeAttribute("style"),t.setEditorValue(),a.close()}),a.setFooter([l]),a.setSize(500),a.open(),n&&n.preventDefault(),!1};t.events.on("afterInit",()=>{t.events.on(t.editor,"dblclick",o.image.openOnDblClick?n:function(e){e.stopImmediatePropagation(),t.selection.select(this)},"img")}).on("openImageProperties",t=>{n.call(t)})}function Po(t){const e=e=>{const i=[];return t.selection.eachSelection(o=>{const s=t.selection.save();let n=!!o&&me.up(o,e=>me.isBlock(e,t.editorWindow),t.editor);const r=t.options.enter;if(!n&&o&&(n=me.wrapInline(o,r!==R?r:B,t)),!n)return t.selection.restore(s),!1;const a=-1!==i.indexOf(n);if(n&&n.style&&!a){i.push(n);let o=n.style.marginLeft?parseInt(n.style.marginLeft,10):0;o+=t.options.indentMargin*("outdent"===e?-1:1),n.style.marginLeft=o>0?o+"px":"",n.getAttribute("style")||n.removeAttribute("style")}t.selection.restore(s)}),t.setEditorValue(),!1};t.registerCommand("indent",{exec:e,hotkeys:["ctrl+]","cmd+]"]}),t.registerCommand("outdent",{exec:e,hotkeys:["ctrl+[","cmd+["]})}we.prototype.image={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},we.prototype.controls.indent={tooltip:"Increase Indent"},we.prototype.controls.outdent={isDisable(t){const e=t.selection.current();if(e){const i=me.closest(e,e=>me.isBlock(e,t.editorWindow),t.editor);if(i&&i.style&&i.style.marginLeft)return 0>=parseInt(i.style.marginLeft,10)}return!0},tooltip:"Decrease Indent"},we.prototype.indentMargin=10;var Oo=ve.ColorPickerWidget,Fo=ve.TabsWidget;we.prototype.toolbarInline=!0,we.prototype.toolbarInlineDisableFor=[],we.prototype.popup={a:[{name:"eye",tooltip:"Open link",exec(t,e){const i=e.getAttribute("href");e&&i&&t.ownerWindow.open(i)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"],jodit:[{name:"bin",tooltip:"Delete",exec(t,e){e.parentNode&&(me.safeRemove(e),t.events.fire("hidePopup"))}}],"jodit-media":[{name:"bin",tooltip:"Delete",exec(t,e){e.parentNode&&(me.safeRemove(e),t.events.fire("hidePopup"))}}],img:[{name:"delete",icon:"bin",tooltip:"Delete",exec(t,e){e.parentNode&&(me.safeRemove(e),t.events.fire("hidePopup"))}},{name:"pencil",exec(t,e){"img"===e.tagName.toLowerCase()&&t.events.fire("openImageProperties",e)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom"],tooltip:"Vertical align",exec(t,e,i){if("img"!==e.tagName.toLowerCase())return;const o=i.args&&"string"==typeof i.args[1]?i.args[1].toLowerCase():"";ne(e,"vertical-align",o),t.events.fire("recalcPositionPopup")}},{name:"left",list:["Left","Right","Center","Normal"],exec(t,e,i){if("img"!==e.tagName.toLowerCase())return;const o=i.args&&"string"==typeof i.args[1]?i.args[1].toLowerCase():"";"normal"!==o?-1!==["right","left"].indexOf(o)?(ne(e,"float",o),re(e)):(ne(e,"float",""),ne(e,{display:"block","margin-left":"auto","margin-right":"auto"})):(ne(e,"float")&&-1!==["right","left"].indexOf(ne(e,"float").toLowerCase())&&ne(e,"float",""),re(e)),t.events.fire("recalcPositionPopup")},tooltip:"Horizontal align"}],table:[{name:"brush",popup(t,e){const i=ro.getAllSelectedCells(e);let o,s,n,r,a,l,d;return!!i.length&&(a=ne(i[0],"color"),d=ne(i[0],"background-color"),l=ne(i[0],"border-color"),o=Oo(t,e=>{i.forEach(t=>{ne(t,"background-color",e)}),t.setEditorValue()},d),s=Oo(t,e=>{i.forEach(t=>{ne(t,"color",e)}),t.setEditorValue()},a),n=Oo(t,e=>{i.forEach(t=>{ne(t,"border-color",e)}),t.setEditorValue()},l),r=Fo(t,{Background:o,Text:s,Border:n}),r)},tooltip:"Background"},{name:"valign",list:["Top","Middle","Bottom"],exec(t,e,i){const o=i.args&&"string"==typeof i.args[1]?i.args[1].toLowerCase():"";ro.getAllSelectedCells(e).forEach(t=>{ne(t,"vertical-align",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(t,e,i){const o=i.args&&"string"==typeof i.args[0]?i.args[0].toLowerCase():"";t.execCommand(o,!1,e)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec(t,e,i){const o=i.args&&"string"==typeof i.args[0]?i.args[0].toLowerCase():"";t.execCommand(o,!1,e)},tooltip:"Add row"},{name:"delete",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec(t,e,i){const o=i.args&&"string"==typeof i.args[0]?i.args[0].toLowerCase():"";t.execCommand(o,!1,e),t.events.fire("hidePopup")},tooltip:"Delete"}]};class Vo extends Fi{constructor(){super(...arguments),this._hiddenClass="jodit_toolbar_popup-inline-target-hidden",this.isSelectionStarted=!1,this.onSelectionEnd=nt(()=>{!this.isDestructed&&this.jodit.isEditorMode()&&(this.isSelectionStarted&&(this.isTargetAction||this.onChangeSelection()),this.isSelectionStarted=!1,this.isTargetAction=!1)},this.jodit.defaultTimeout),this.isTargetAction=!1,this.isSelectionPopup=!1,this.calcWindSizes=()=>{const t=this.jodit.ownerWindow,e=this.jodit.ownerDocument.documentElement;if(!e)return{left:0,top:0,width:0,height:0};const i=this.jodit.ownerDocument.body,o=e.clientTop||i.clientTop||0,s=e.clientLeft||i.clientLeft||0;return{left:s,top:o,width:e.clientWidth+(t.pageXOffset||e.scrollLeft||i.scrollLeft)-s,height:e.clientHeight+(t.pageYOffset||e.scrollTop||i.scrollTop)-o}},this.calcPosition=(t,e)=>{if(this.isDestructed)return;this.popup.target.classList.remove(this._hiddenClass);const i=t.left+t.width/2,o=Qt(this.jodit.workplace,this.jodit,this.jodit.ownerDocument,!0);let s=t.top+t.height+10;this.target.style.left=i+"px",this.target.style.top=s+"px",this.jodit.isFullSize()&&(this.target.style.zIndex=""+ne(this.jodit.container,"zIndex"));const n=this.container.offsetWidth/2;let r=-n;this.popup.container.classList.remove("jodit_toolbar_popup-inline-top"),s+this.container.offsetHeight>e.height&&(s=t.top-this.container.offsetHeight-10,this.target.style.top=s+"px",this.popup.container.classList.add("jodit_toolbar_popup-inline-top")),0>i-n&&(r=-(t.width/2+t.left)),i+n>e.width&&(r=-(this.container.offsetWidth-(e.width-i))),this.container.style.marginLeft=r+"px",(o.top-s>50||s-(o.top+o.height)>50)&&this.popup.target.classList.add(this._hiddenClass)},this.reCalcPosition=()=>{this.__getRect&&this.calcPosition(this.__getRect(),this.calcWindSizes())},this.showPopup=(t,e,i)=>{if(!this.jodit.options.toolbarInline||!this.jodit.options.popup[e.toLowerCase()])return!1;if(this.isExcludedTarget(e))return!0;this.isOpened=!0,this.isTargetAction=!0;const o=this.calcWindSizes();return this.targetContainer.parentNode||this.jodit.ownerDocument.body.appendChild(this.targetContainer),this.toolbar.build(this.jodit.options.popup[e.toLowerCase()],this.container,i),this.popup.open(this.container,!1,!0),this.__getRect=t,this.calcPosition(t(),o),!0},this.hidePopup=t=>{this.isDestructed||t&&(me.isNode(t,this.jodit.editorWindow||window)||t instanceof We)&&me.isOrContains(this.target,t instanceof We?t.target:t)||(this.isTargetAction=!1,this.isOpened=!1,this.popup.close(),me.safeRemove(this.targetContainer))},this.onSelectionStart=t=>{if(!this.isDestructed&&this.jodit.isEditorMode()&&(this.isTargetAction=!1,this.isSelectionPopup=!1,!this.isSelectionStarted)){const e=Object.keys(this.jodit.options.popup).join("|"),i="IMG"===t.target.nodeName?t.target:me.closest(t.target,e,this.jodit.editor);i&&this.showPopup(()=>Qt(i,this.jodit,this.jodit.editorDocument),i.nodeName,i)||(this.isSelectionStarted=!0)}},this.checkIsTargetEvent=()=>{this.isTargetAction?this.isTargetAction=!1:this.hidePopup()},this.isOpened=!1,this.onChangeSelection=()=>{if(this.jodit.options.toolbarInline&&this.jodit.isEditorMode()&&!this.hideIfCollapsed()&&void 0!==this.jodit.options.popup.selection){const t=this.jodit.selection.sel;if(t&&t.rangeCount){this.isSelectionPopup=!0;const e=t.getRangeAt(0);this.showPopup(()=>Qt(e,this.jodit,this.jodit.editorDocument),"selection")}}}}isExcludedTarget(t){return-1!==ot(this.jodit.options.toolbarInlineDisableFor).map(t=>t.toLowerCase()).indexOf(t.toLowerCase())}hideIfCollapsed(){return!!this.jodit.selection.isCollapsed()&&(this.hidePopup(),!0)}afterInit(t){this.toolbar=Ge.makeCollection(t),this.target=t.create.div("jodit_toolbar_popup-inline-target"),this.targetContainer=t.create.div("jodit_toolbar_popup-inline-container",this.target),this.container=t.create.div(),this.popup=new We(t,this.target,void 0,"jodit_toolbar_popup-inline"),t.events.on(this.target,"mousedown keydown touchstart",t=>{t.stopPropagation()}).on("beforeOpenPopup hidePopup afterSetMode blur",this.hidePopup).on("recalcPositionPopup",this.reCalcPosition).on("getDiffButtons.mobile",e=>{if(this.toolbar===e)return ot(t.options.buttons).filter(t=>"|"!==t&&"\n"!==t).filter(t=>0>this.toolbar.getButtonsList().indexOf(t))}).on("selectionchange",this.onChangeSelection).on("afterCommand afterExec",()=>{this.isOpened&&this.isSelectionPopup&&this.onChangeSelection()}).on("showPopup",(t,e)=>{const i=("string"==typeof t?t:t.nodeName).toLowerCase();this.isSelectionPopup=!1,this.showPopup(e,i,"string"==typeof t?void 0:t)}).on("mousedown keydown touchstart",this.onSelectionStart).on([t.ownerWindow,t.editor],"scroll resize",this.reCalcPosition).on([t.ownerWindow],"mouseup keyup touchend",this.onSelectionEnd).on([t.ownerWindow],"mousedown keydown touchstart",this.checkIsTargetEvent)}beforeDestruct(t){this.popup&&this.popup.destruct(),delete this.popup,this.toolbar&&this.toolbar.destruct(),delete this.toolbar,me.safeRemove(this.target),me.safeRemove(this.container),t.events&&t.events.off([t.ownerWindow],"scroll resize",this.reCalcPosition).off([t.ownerWindow],"mouseup keyup touchend",this.onSelectionEnd).off([t.ownerWindow],"mousedown keydown touchstart",this.checkIsTargetEvent)}}function Wo(t){const e=e=>{const i=i=>{if(i instanceof t.editorWindow.HTMLElement)switch(e.toLowerCase()){case"justifyfull":i.style.textAlign="justify";break;case"justifyright":i.style.textAlign="right";break;case"justifyleft":i.style.textAlign="left";break;case"justifycenter":i.style.textAlign="center"}};return t.selection.focus(),t.selection.eachSelection(e=>{if(!e&&t.editor.querySelector(".jodit_selected_cell"))return zt(".jodit_selected_cell",t.editor).forEach(i),!1;if(!(e instanceof t.editorWindow.Node))return;let o=!!e&&me.up(e,e=>me.isBlock(e,t.editorWindow),t.editor);!o&&e&&(o=me.wrapInline(e,t.options.enterBlock,t)),i(o)}),!1};t.registerCommand("justifyfull",e),t.registerCommand("justifyright",e),t.registerCommand("justifyleft",e),t.registerCommand("justifycenter",e)}function $o(t){if(t&&(t.options.limitWords||t.options.limitChars)){const e=(e,i="")=>{const o=(i||(t.options.limitHTML?t.value:t.getEditorText())).replace(d,"").split(p).filter(t=>t.length);if(!e||-1===D.indexOf(e.which))return t.options.limitWords&&o.length>=t.options.limitWords?t.options.limitWords===o.length:t.options.limitChars&&t.options.limitChars<=o.join("").length?t.options.limitChars===o.join("").length:void 0};let i=null;t.events.on("beforePaste",()=>{i=t.observer.snapshot.make()}).on("keydown keyup beforeEnter beforePaste",t=>{if(void 0!==e(t))return!1}).on("change",nt((i,o)=>{!1===e(null,t.options.limitHTML?i:Ot(i))&&(t.value=o)},t.defaultTimeout)).on("afterPaste",()=>{if(!1===e(null)&&i)return t.observer.snapshot.restore(i),!1})}}function Uo(t){t.options.link.followOnDblClick&&t.events.on("afterInit",()=>{t.events.on(t.editor,"dblclick",(function(t){const e=this.getAttribute("href");e&&(location.href=e,t.preventDefault())}),"a")}),t.options.link.processPastedLink&&t.events.on("processPaste",(e,i)=>{if(xt(i)){const e=se(i);if(e!==i)return t.create.inside.fromHTML(e);const o=t.create.inside.element("a");return o.setAttribute("href",i),o.textContent=i,o}}),t.options.link.removeLinkAfterFormat&&t.events.on("afterCommand",e=>{let i,o;"removeFormat"===e&&(o=t.selection.current(),o&&"A"!==o.nodeName&&(o=me.closest(o,"A",t.editor)),o&&"A"===o.nodeName&&(o.innerHTML===o.textContent?i=t.editorDocument.createTextNode(o.innerHTML):(i=t.editorDocument.createElement("span"),i.innerHTML=o.innerHTML),o.parentNode&&(o.parentNode.replaceChild(i,o),t.selection.setCursorIn(i,!0))))})}function Ko(t){const e="jodit_fake_wrapper",{mediaFakeTag:i,mediaBlocks:o,mediaInFakeBlock:s}=t.options;s&&t.events.on("afterGetValueFromEditor",t=>{const o=RegExp(`<${i}[^>]+data-${e}[^>]+>(.+?)</${i}>`,"ig");o.test(t.value)&&(t.value=t.value.replace(o,"$1"))}).on("change afterInit afterSetMode",nt(()=>{t.isDestructed||t.getMode()===P||zt(o.join(","),t.editor).forEach(o=>{o["__"+e]||(o["__"+e]=!0,(o=>{if(o.parentNode&&o.parentNode.getAttribute("data-jodit_iframe_wrapper"))o=o.parentNode;else{let s;s=t.create.inside.fromHTML("<"+i+' data-jodit-temp="1" contenteditable="false" draggable="true" data-'+e+'="1"></'+i+">"),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}t.events.off(o,"mousedown.select touchstart.select").on(o,"mousedown.select touchstart.select",()=>{t.selection.setCursorAfter(o)})})(o))})},t.defaultTimeout))}function Xo(t){let e,i=0,o=ot(t.options.buttons);t.events.on("touchend",o=>{o.changedTouches&&o.changedTouches.length&&(e=(new Date).getTime(),e-i>t.options.mobileTapTimeout&&(i=e,t.selection.insertCursorAtPoint(o.changedTouches[0].clientX,o.changedTouches[0].clientY)))}).on("getDiffButtons.mobile",e=>{if(e===t.toolbar)return ot(t.options.buttons).filter(t=>0>o.indexOf(t))}),t.options.toolbarAdaptive&&t.events.on("resize afterInit",()=>{if(!t.options.toolbar)return;const e=t.container.offsetWidth;let i=[];i=ot(t.options.sizeLG>e?t.options.sizeMD>e?t.options.sizeSM>e?t.options.buttonsXS:t.options.buttonsSM:t.options.buttonsMD:t.options.buttons),""+i!=""+o&&(o=i,t.toolbar.build(o.concat(t.options.extraButtons),t.toolbar.container.parentElement||t.toolbar.getParentContainer()))})}function Yo(t){t.events.on("afterCommand",e=>{if(/insert(un)?orderedlist/i.test(e)){const e=me.up(t.selection.current(),t=>t&&/^UL|OL$/i.test(t.nodeName),t.editor);if(e&&e.parentNode&&"P"===e.parentNode.nodeName){const i=t.selection.save();me.unwrap(e.parentNode),Array.from(e.childNodes).forEach(t=>{t.lastChild&&t.lastChild.nodeType===Node.ELEMENT_NODE&&"BR"===t.lastChild.nodeName&&me.safeRemove(t.lastChild)}),t.selection.restore(i)}t.setEditorValue()}})}function Go(t){if(!t.options.showPlaceholder)return;this.destruct=()=>{me.safeRemove(o)};const e=()=>{o.parentNode&&(o.style.display="none")},i=nt(()=>{if(null===o.parentNode)return;if(!t.editor)return;if(t.getRealMode()!==H)return e();const i=t.getEditorValue();i&&!/^<(p|div|h[1-6])><\/\1>$/.test(i)?e():(()=>{if(!o.parentNode||t.options.readonly)return;let e=0,i=0;const s=t.editorWindow.getComputedStyle(t.editor);if(t.editor.firstChild&&t.editor.firstChild.nodeType===Node.ELEMENT_NODE){const s=t.editorWindow.getComputedStyle(t.editor.firstChild);e=parseInt(s.getPropertyValue("margin-top"),10),i=parseInt(s.getPropertyValue("margin-left"),10),o.style.fontSize=parseInt(s.getPropertyValue("font-size"),10)+"px",o.style.lineHeight=s.getPropertyValue("line-height")}else o.style.fontSize=parseInt(s.getPropertyValue("font-size"),10)+"px",o.style.lineHeight=s.getPropertyValue("line-height");ne(o,{display:"block",marginTop:Math.max(parseInt(s.getPropertyValue("margin-top"),10),e),marginLeft:Math.max(parseInt(s.getPropertyValue("margin-left"),10),i)})})()},t.defaultTimeout/10),o=t.create.fromHTML('<span style="display: none;" class="jodit_placeholder">'+t.i18n(t.options.placeholder)+"</span>");"rtl"===t.options.direction&&(o.style.right="0px",o.style.direction="rtl"),t.options.useInputsPlaceholder&&t.element.hasAttribute("placeholder")&&(o.innerHTML=t.element.getAttribute("placeholder")||""),t.events.on("readonly",t=>{t?e():i()}).on("afterInit",()=>{t.workplace.appendChild(o),i(),t.events.fire("placeholder",o.innerHTML),t.events.on("change keyup mouseup keydown mousedown afterSetMode",i).on(window,"load",i)})}we.prototype.controls.align={name:"left",tooltip:"Align",getLabel(t,e,i){const o=t.selection.current();if(o){const s=me.closest(o,e=>me.isBlock(e,t.editorWindow),t.editor)||t.editor;let n=""+ne(s,"text-align");e.defaultValue&&-1!==e.defaultValue.indexOf(n)&&(n="left"),i&&e.data&&e.data.currentValue!==n&&e.list&&-1!==e.list.indexOf(n)&&(i.textBox.innerHTML=t.options.textIcons?`<span>${n}</span>`:ge.getIcon(n,""),i.textBox.firstChild.classList.add("jodit_icon"),e.data.currentValue=n)}return!1},isActive(t,e){const i=t.selection.current();if(i&&e.defaultValue){const o=me.closest(i,e=>me.isBlock(e,t.editorWindow),t.editor)||t.editor;return-1===e.defaultValue.indexOf(""+ne(o,"text-align"))}return!1},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},we.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},we.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},we.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},we.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},we.prototype.limitWords=!1,we.prototype.limitChars=!1,we.prototype.limitHTML=!1,we.prototype.link={followOnDblClick:!0,processVideoLink:!0,processPastedLink:!0,openLinkDialogAfterPost:!0,removeLinkAfterFormat:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0},we.prototype.controls.unlink={exec(t,e){const i=me.closest(e,"A",t.editor);i&&me.unwrap(i),t.events.fire("hidePopup")}},we.prototype.controls.link={isActive(t){const e=t.selection.current();return e&&!1!==me.closest(e,"a",t.editor)},popup(t,e,i,o){const s=t.selection.sel,n=t.create.fromHTML('<form class="jodit_form"><div class="jodit_form_group"><input class="jodit_input" required type="text" name="url" placeholder="http://" type="text"/></div><div class="jodit_form_group"><input class="jodit_input" name="text" placeholder="'+t.i18n("Text")+'" type="text"/></div>'+(t.options.link.openInNewTabCheckbox?'<label><input class="jodit_checkbox" name="target" type="checkbox"/> '+t.i18n("Open in new tab")+"</label>":"")+(t.options.link.noFollowCheckbox?'<label><input class="jodit_checkbox" name="nofollow" type="checkbox"/> '+t.i18n("No follow")+"</label>":"")+'<div style="text-align: right"><button class="jodit_button jodit_unlink_button" type="button">'+t.i18n("Unlink")+'</button> &nbsp;&nbsp;<button class="jodit_button jodit_link_insert_button" type="submit"></button></div><form/>');e=!(!e||!me.closest(e,"A",t.editor))&&me.closest(e,"A",t.editor);const r=n.querySelector(".jodit_link_insert_button"),a=n.querySelector(".jodit_unlink_button");e?(fe(n,"input[name=url]",e.getAttribute("href")||""),fe(n,"input[name=text]",e.textContent||""),t.options.link.openInNewTabCheckbox&&(n.querySelector("input[name=target]").checked="_blank"===e.getAttribute("target")),t.options.link.noFollowCheckbox&&(n.querySelector("input[name=nofollow]").checked="nofollow"===e.getAttribute("rel")),r&&(r.innerHTML=t.i18n("Update"))):(a&&(a.style.display="none"),fe(n,"input[name=text]",s?""+s:""),r&&(r.innerHTML=t.i18n("Insert")));const l=t.selection.save();return a&&a.addEventListener("mousedown",i=>{e&&me.unwrap(e),t.selection.restore(l),o(),i.preventDefault()}),n.addEventListener("submit",i=>{i.preventDefault(),t.selection.restore(l);const s=e||t.editorDocument.createElement("a");return fe(n,"input[name=url]")?(s.setAttribute("href",fe(n,"input[name=url]")),s.textContent=fe(n,"input[name=text]"),t.options.link.openInNewTabCheckbox&&(n.querySelector("input[name=target]").checked?s.setAttribute("target","_blank"):s.removeAttribute("target")),t.options.link.noFollowCheckbox&&(n.querySelector("input[name=nofollow]").checked?s.setAttribute("rel","nofollow"):s.removeAttribute("rel")),e||t.selection.insertNode(s),o(),!1):(n.querySelector("input[name=url]").focus(),n.querySelector("input[name=url]").classList.add("jodit_error"),!1)}),n},tags:["a"],tooltip:"Insert link"},we.prototype.mediaFakeTag="jodit-media",we.prototype.mediaInFakeBlock=!0,we.prototype.mediaBlocks=["video","audio"],we.prototype.mobileTapTimeout=300,we.prototype.toolbarAdaptive=!0,we.prototype.controls.dots={mode:P+H,popup(t,e,i,o,s){let n=i.data;if(void 0===n){n={container:t.create.div(),toolbar:Ge.makeCollection(t),rebuild(){if(s){const e=t.events.fire("getDiffButtons.mobile",s.parentToolbar);e&&n&&n.toolbar.build(ot(e),n.container)}}};let e=32;const o=t.options.toolbarButtonSize;"large"===o?e=36:"small"===o&&(e=24),n.container.style.width=3*e+"px",i.data=n}return n.rebuild(),n.container}},we.prototype.controls.ul={command:"insertUnorderedList",controlName:"ul",tags:["ul"],tooltip:"Insert Unordered List"},we.prototype.controls.ol={command:"insertOrderedList",controlName:"ol",tags:["ol"],tooltip:"Insert Ordered List"},we.prototype.showPlaceholder=!0,we.prototype.useInputsPlaceholder=!0,we.prototype.placeholder="Type something",we.prototype.controls.redo={mode:O,isDisable:t=>!t.observer.stack.canRedo(),tooltip:"Redo"},we.prototype.controls.undo={mode:O,isDisable:t=>!t.observer.stack.canUndo(),tooltip:"Undo"};class Jo extends Fi{beforeDestruct(){}afterInit(t){const e=e=>(t.getRealMode()===H&&t.observer[e](),!1);t.registerCommand("redo",{exec:e,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),t.registerCommand("undo",{exec:e,hotkeys:["ctrl+z","cmd+z"]})}}function Zo(t){let e,i,o,s,n,r,a,l,d,c,h,p=!1,u=!1,f=!1,m=0;const g=t.create.fromHTML('<div data-editor_id="'+t.id+'" style="display:none" class="jodit_resizer"><i class="jodit_resizer-topleft"></i><i class="jodit_resizer-topright"></i><i class="jodit_resizer-bottomright"></i><i class="jodit_resizer-bottomleft"></i><span>100x100</span></div>'),v=g.getElementsByTagName("span")[0],b=()=>{u=!1,f=!1,i=null,g.style.display="none"},y=()=>{v.style.opacity="0"},_=()=>{if(f&&i&&g){const e=Qt(g.parentNode||t.ownerDocument.documentElement,t,t.ownerDocument,!0),o=Qt(i,t,t.editorDocument),s=parseInt(g.style.left||"0",10),n=g.offsetWidth,r=g.offsetHeight,a=o.top-1-e.top,l=o.left-1-e.left;parseInt(g.style.top||"0",10)===a&&s===l&&n===i.offsetWidth&&r===i.offsetHeight||(g.style.top=a+"px",g.style.left=l+"px",g.style.width=i.offsetWidth+"px",g.style.height=i.offsetHeight+"px",t.events&&(t.events.fire(i,"changesize"),isNaN(s)||t.events.fire("resize")))}};zt("i",g).forEach(l=>{t.events.on(l,"mousedown touchstart",d=>{if(!i||!i.parentNode)return b(),!1;e=l,d.preventDefault(),d.stopImmediatePropagation(),n=i.offsetWidth,r=i.offsetHeight,a=n/r,u=!0,o=d.clientX,s=d.clientY,t.events.fire("hidePopup"),t.lock("resizer")})}),t.events.on("readonly",t=>{t&&b()}).on("beforeDestruct",()=>{me.safeRemove(g)}).on("afterInit",()=>{t.events.on(t.editor,"keydown",e=>{f&&e.which===T&&i&&"table"!==i.tagName.toLowerCase()&&("JODIT"!==i.tagName?t.selection.select(i):(me.safeRemove(i),b(),e.preventDefault()))}).on(t.ownerWindow,"mousemove touchmove",p=>{if(u){if(c=p.clientX-o,h=p.clientY-s,!i)return;const u=e.className;"IMG"===i.tagName?(c?(d=n+(u.match(/left/)?-1:1)*c,l=Math.round(d/a)):(l=r+(u.match(/top/)?-1:1)*h,d=Math.round(l*a)),d>Zt(t.editor,t.ownerWindow)&&(d=Zt(t.editor,t.ownerWindow),l=Math.round(d/a))):(d=n+(u.match(/left/)?-1:1)*c,l=r+(u.match(/top/)?-1:1)*h),d>t.options.resizer.min_width&&(i.style.width=g.parentNode.offsetWidth>d?d+"px":"100%"),l>t.options.resizer.min_height&&(i.style.height=l+"px"),_(),((e,i)=>{t.options.resizer.showSize&&(v.offsetWidth>e||v.offsetHeight>i?y():(v.style.opacity="1",v.innerHTML=`${e} x ${i}`,clearTimeout(m),m=st(y,t.options.resizer.hideSizeTimeout)))})(i.offsetWidth,i.offsetHeight),p.stopImmediatePropagation()}}).on(t.ownerWindow,"resize",()=>{f&&_()}).on(t.ownerWindow,"mouseup keydown touchend",e=>{f&&!p&&(u?(t.unlock(),u=!1,t.setEditorValue(),e.stopImmediatePropagation()):b())}).on([t.ownerWindow,t.editor],"scroll",()=>{f&&!u&&b()})}).on("afterGetValueFromEditor",t=>{const e=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]+>[\s\n\r]*<\/iframe>.*?)<\/jodit>/gi;e.test(t.value)&&(t.value=t.value.replace(e,"$1"))}).on("hideResizer",b).on("change afterInit afterSetMode",nt(()=>{f&&(i&&i.parentNode?_():b()),t.isDestructed||zt("img, table, iframe",t.editor).forEach(e=>{t.getMode()!==P&&!e.__jodit_resizer_binded&&("IFRAME"===e.tagName&&t.options.useIframeResizer||"IMG"===e.tagName&&t.options.useImageResizer||"TABLE"===e.tagName&&t.options.useTableResizer)&&(e.__jodit_resizer_binded=!0,(e=>{let o,s;if("IFRAME"===e.tagName){const i=e;e.parentNode&&e.parentNode.getAttribute("data-jodit_iframe_wrapper")?e=e.parentNode:(o=t.create.inside.fromHTML('<jodit data-jodit-temp="1" contenteditable="false" draggable="true" data-jodit_iframe_wrapper="1"></jodit>'),o.style.display="inline-block"===e.style.display?"inline-block":"block",o.style.width=e.offsetWidth+"px",o.style.height=e.offsetHeight+"px",e.parentNode&&e.parentNode.insertBefore(o,e),o.appendChild(e),e=o),t.events.off(e,"mousedown.select touchstart.select").on(e,"mousedown.select touchstart.select",()=>{t.selection.select(e)}),t.events.off(e,"changesize").on(e,"changesize",()=>{i.setAttribute("width",e.offsetWidth+"px"),i.setAttribute("height",e.offsetHeight+"px")})}t.events.on(e,"dragstart",b).on(e,"mousedown",t=>{F&&"IMG"===e.nodeName&&t.preventDefault()}).on(e,"mousedown touchstart",()=>{p||(p=!0,i=e,t.options.readonly||(g.parentNode||t.workplace.appendChild(g),f=!0,g.style.display="block",t.isFullSize()&&(g.style.zIndex=""+ne(t.container,"zIndex")),_()),"IMG"!==i.tagName||i.complete||i.addEventListener("load",(function t(){_(),i&&i.removeEventListener("load",t)})),clearTimeout(s)),s=st(()=>{p=!1},400)})})(e))})},t.defaultTimeout))}we.prototype.useIframeResizer=!0,we.prototype.useTableResizer=!0,we.prototype.useImageResizer=!0,we.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,min_width:10,min_height:10},we.prototype.useSearch=!0;class Qo extends Fi{constructor(){super(...arguments),this.template='<div class="jodit_search"><div class="jodit_search_box"><div class="jodit_search_inputs"><input tabindex="0" class="jodit_search-query" placeholder="'+this.jodit.i18n("Search for")+'" type="text"/><input tabindex="0" class="jodit_search-replace" placeholder="'+this.jodit.i18n("Replace with")+'" type="text"/></div><div class="jodit_search_counts"><span>0/0</span></div><div class="jodit_search_buttons"><button tabindex="0" type="button" class="jodit_search_buttons-next">'+ge.getIcon("angle-down")+'</button><button tabindex="0" type="button" class="jodit_search_buttons-prev">'+ge.getIcon("angle-up")+'</button><button tabindex="0" type="button" class="jodit_search_buttons-cancel">'+ge.getIcon("cancel")+'</button><button tabindex="0" type="button" class="jodit_search_buttons-replace">'+this.jodit.i18n("Replace")+"</button></div></div></div>",this.isOpened=!1,this.selInfo=null,this.current=!1,this.eachMap=(t,e,i)=>{me.findWithCurrent(t,t=>!!t&&e(t),this.jodit.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 t=this.calcCounts(this.queryInput.value,this.jodit.selection.range);this.counterBox.textContent=t.join("/")},this.calcCounts=(t,e=!1)=>{const i=[];let o=0,s=0,n=!1,r=this.jodit.editor.firstChild;for(;r&&t.length;)if(n=this.find(r,t,!0,0,n||this.jodit.editorDocument.createRange()),n){if(this.boundAlreadyWas(n,i))break;i.push(n),r=n.startContainer,s+=1,e&&this.boundAlreadyWas(e,[n])&&(o=s)}else r=null;return[o,s]},this.findAndReplace=(t,e)=>{const i=this.find(t,e,!0,0,this.jodit.selection.range);if(i&&i.startContainer&&i.endContainer){const t=this.jodit.editorDocument.createRange();try{if(i&&i.startContainer&&i.endContainer){t.setStart(i.startContainer,i.startOffset),t.setEnd(i.endContainer,i.endOffset),t.deleteContents();const e=this.jodit.editorDocument.createTextNode(this.replaceInput.value);t.insertNode(e),this.jodit.selection.select(e),this.tryScrollToElement(e)}}catch(t){}return!0}return!1},this.findAndSelect=(t,e,i)=>{const o=this.find(t,e,i,0,this.jodit.selection.range);if(o&&o.startContainer&&o.endContainer){const t=this.jodit.editorDocument.createRange();try{t.setStart(o.startContainer,o.startOffset),t.setEnd(o.endContainer,o.endOffset),this.jodit.selection.selectRange(t)}catch(t){}return this.tryScrollToElement(o.startContainer),this.current=o.startContainer,this.updateCounters(),!0}return!1},this.find=(t,e,i,o,s)=>{if(t&&e.length){let n="",r={startContainer:null,startOffset:null,endContainer:null,endOffset:null};if(this.eachMap(t,t=>{if(t.nodeType===Node.TEXT_NODE&&null!==t.nodeValue&&t.nodeValue.length){let a=t.nodeValue;i||t!==s.startContainer?i&&t===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?n+a:a+n,d=Qo.findSomePartOfString(e,l,i);if(!1!==d){let s=Qo.findSomePartOfString(e,a,i);!0===s?s=Mt(e):!1===s&&(s=Qo.findSomePartOfString(a,e,i),!0===s&&(s=Mt(a)));let c=Qo.getSomePartOfStringIndex(e,a,i)||0;if((i&&!o||!i&&o)&&t.nodeValue.length-a.length>0&&(c+=t.nodeValue.length-a.length),null===r.startContainer&&(r.startContainer=t,r.startOffset=c),!0===d)return r.endContainer=t,r.endOffset=c,r.endOffset+=s.length,!0;n=l}else n="",r={startContainer:null,startOffset:null,endContainer:null,endOffset:null}}else me.isBlock(t,this.jodit.editorWindow)&&""!==n&&(n=i?n+" ":" "+n);return!1},i),r.startContainer&&r.endContainer)return r;if(!o)return this.current=i?this.jodit.editor.firstChild:this.jodit.editor.lastChild,this.find(this.current,e,i,o+1,s)}return!1},this.open=(t=!1)=>{this.isOpened||(this.searchBox.classList.add("jodit_search-active"),this.isOpened=!0),this.jodit.events.fire("hidePopup"),this.searchBox.classList.toggle("jodit_search-and-replace",t),this.current=this.jodit.selection.current(),this.selInfo=this.jodit.selection.save();const e=""+(this.jodit.selection.sel||"");e&&(this.queryInput.value=e),this.updateCounters(),e?this.queryInput.select():this.queryInput.focus()},this.close=()=>{this.isOpened&&(this.selInfo&&(this.jodit.selection.restore(this.selInfo),this.selInfo=null),this.searchBox.classList.remove("jodit_search-active"),this.isOpened=!1)}}static getSomePartOfStringIndex(t,e,i=!0){return this.findSomePartOfString(t,e,i,!0)}static findSomePartOfString(t,e,i=!0,o=!1){t=Mt(t.toLowerCase().replace(p," ")),e=e.toLowerCase();let s=i?0:e.length-1,n=i?0:t.length-1,r=0,a=null;const l=i?1:-1,d=[];for(;void 0!==e[s];s+=l){const c=t[n]===e[s];if(c||null!==a&&p.test(e[s])?(null!==a&&i||(a=s),d.push(e[s]),c&&(r+=1,n+=l)):(a=null,d.length=0,r=0,n=i?0:t.length-1),r===t.length)return!o||a}return o?null!=a&&a:!!d.length&&(i?d.join(""):d.reverse().join(""))}boundAlreadyWas(t,e){return e.some(e=>e.startContainer===t.startContainer&&e.endContainer===t.endContainer&&e.startOffset===t.startOffset&&e.endOffset===t.endOffset,!1)}tryScrollToElement(t){let e=me.closest(t,t=>t&&t.nodeType===Node.ELEMENT_NODE,this.jodit.editor);e||(e=me.prev(t,t=>t&&t.nodeType===Node.ELEMENT_NODE,this.jodit.editor)),e&&e!==this.jodit.editor&&e.scrollIntoView()}afterInit(t){if(t.options.useSearch){const e=this;e.searchBox=t.create.fromHTML(e.template);const i=e.searchBox.querySelector.bind(e.searchBox);e.queryInput=i("input.jodit_search-query"),e.replaceInput=i("input.jodit_search-replace"),e.closeButton=i(".jodit_search_buttons-cancel"),e.nextButton=i(".jodit_search_buttons-next"),e.prevButton=i(".jodit_search_buttons-prev"),e.replaceButton=i(".jodit_search_buttons-replace"),e.counterBox=i(".jodit_search_counts span"),t.workplace.appendChild(this.searchBox),t.events.on(e.closeButton,"click",this.close).on(e.queryInput,"mousedown",()=>{t.selection.isFocused()&&(t.selection.removeMarkers(),e.selInfo=t.selection.save())}).on(e.replaceButton,"click",i=>{e.findAndReplace(t.selection.current()||t.editor.firstChild,e.queryInput.value),this.updateCounters(),i.preventDefault(),i.stopImmediatePropagation()}).on([e.nextButton,e.prevButton],"click",(function(i){t.events.fire(e.nextButton===this?"searchNext":"searchPrevious"),i.preventDefault(),i.stopImmediatePropagation()})).on(this.queryInput,"keydown",nt(e=>{switch(e.which){case _:e.preventDefault(),e.stopImmediatePropagation(),t.events.fire("searchNext")&&this.close();break;default:this.updateCounters()}},this.jodit.defaultTimeout)).on(this.jodit.container,"keydown.search",i=>{if(t.getRealMode()===H)switch(i.which){case w:this.close();break;case M:e.queryInput.value&&(t.events.fire(i.shiftKey?"searchPrevious":"searchNext"),i.preventDefault())}}).on("beforeSetMode.search",()=>{this.close()}).on("keydown.search mousedown.search",()=>{this.selInfo&&(t.selection.removeMarkers(),this.selInfo=null),this.isOpened&&(this.current=this.jodit.selection.current(),this.updateCounters())}).on("searchNext.search searchPrevious.search",()=>e.findAndSelect(t.selection.current()||t.editor.firstChild,e.queryInput.value,"searchNext"===t.events.current[t.events.current.length-1])).on("search.search",(e,i=!0)=>{t.execCommand("search",e,i)}),t.registerCommand("search",{exec:(i,o,s=!0)=>(e.findAndSelect(t.selection.current()||t.editor.firstChild,o||"",s),!1)}),t.registerCommand("openSearchDialog",{exec:()=>(e.open(),!1),hotkeys:["ctrl+f","cmd+f"]}),t.registerCommand("openReplaceDialog",{exec:()=>(t.options.readonly||e.open(!0),!1),hotkeys:["ctrl+h","cmd+h"]})}}beforeDestruct(t){me.safeRemove(this.searchBox),t.events&&t.events.off(".search"),t.events&&t.events.off(t.container,".search")}}function ts(t){const e=e=>{ne(t.container,"height",e),t.options.saveHeightInStorage&&t.storage.set("height",e)},i=e=>ne(t.container,"width",e),o=e=>ne(t.workplace,"height",e);if("auto"!==t.options.height&&(t.options.allowResizeX||t.options.allowResizeY)){const o=t.create.div("jodit_editor_resize",'<a tabindex="-1" href="javascript:void(0)"></a>'),s={x:0,y:0,w:0,h:0};let n=!1;t.events.on(o,"mousedown touchstart",e=>{n=!0,s.x=e.clientX,s.y=e.clientY,s.w=t.container.offsetWidth,s.h=t.container.offsetHeight,t.lock(),e.preventDefault()}).on(t.ownerWindow,"mousemove touchmove",rt(o=>{n&&(t.options.allowResizeY&&e(s.h+o.clientY-s.y),t.options.allowResizeX&&i(s.w+o.clientX-s.x),r(),t.events.fire("resize"))},t.defaultTimeout/10)).on(t.ownerWindow,"mouseup touchsend",()=>{n&&(n=!1,t.unlock())}).on("afterInit",()=>{t.container.appendChild(o)}).on("toggleFullSize",t=>{o.style.display=t?"none":"block"})}const s=()=>(t.options.toolbar?t.toolbar.container.offsetHeight:0)+(t.statusbar?t.statusbar.getHeight():0),n=()=>{if(!t.container||!t.container.parentNode)return;const e=ne(t.container,"minHeight")-s();[t.workplace,t.iframe,t.editor].map(i=>{const o=i===t.editor?e-2:e;i&&ne(i,"minHeight",o),t.events.fire("setMinHeight",o)})},r=()=>{t&&!t.isDestructed&&t.options&&!t.options.inline&&(n(),t.container&&("auto"!==t.options.height||t.isFullSize())&&o(t.container.offsetHeight-s()))},a=nt(r,t.defaultTimeout);t.events.on("toggleFullSize",e=>{e||"auto"!==t.options.height||(o("auto"),n())}).on("afterInit",()=>{t.options.inline||(ne(t.editor,{minHeight:"100%"}),ne(t.container,{minHeight:t.options.minHeight,minWidth:t.options.minWidth,maxWidth:t.options.maxWidth}));let o=t.options.height;if(t.options.saveHeightInStorage&&"auto"!==o){const e=t.storage.get("height");e&&(o=e)}t.options.inline||(e(o),i(t.options.width)),r()},void 0,void 0,!0).on(window,"load",a).on("afterInit resize updateToolbar scroll afterResize",a)}we.prototype.allowResizeX=!1,we.prototype.allowResizeY=!0,we.prototype.beautifyHTML=!0,we.prototype.useAceEditor=!0,we.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},we.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.5/ace.js"],we.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.10.0/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.10.0/beautify-html.min.js"],we.prototype.controls.source={mode:O,exec(t){t.toggleMode()},isActive:t=>t.getRealMode()===P,tooltip:"Change mode"};class es extends Fi{constructor(){super(...arguments),this.className="jodit_ace_editor",this.__lock=!1,this.__oldMirrorValue="",this.autosize=nt(()=>{this.mirror.style.height="auto",this.mirror.style.height=this.mirror.scrollHeight+"px"},this.jodit.defaultTimeout),this.tempMarkerStart="{start-jodit-selection}",this.tempMarkerStartReg=/{start-jodit-selection}/g,this.tempMarkerEnd="{end-jodit-selection}",this.tempMarkerEndReg=/{end-jodit-selection}/g,this.selInfo=[],this.lastTuple=null,this.loadNext=(t,e,i="aceReady",o=this.className)=>{if(i&&void 0===e[t]&&!this.isDestructed)return this.jodit&&this.jodit.events&&this.jodit.events.fire(i),void(this.jodit&&this.jodit.events&&this.jodit.events.fire(this.jodit.ownerWindow,i));void 0!==e[t]&&(this.lastTuple&&this.lastTuple.element.removeEventListener("load",this.lastTuple.callback),this.lastTuple=ee(e[t],()=>{this.isDestructed||this.loadNext(t+1,e,i,o)},o,this.jodit.ownerDocument))},this.insertHTML=t=>{if(this.mirror.selectionStart||0===this.mirror.selectionStart){const e=this.mirror.selectionEnd;this.mirror.value=this.mirror.value.substring(0,this.mirror.selectionStart)+t+this.mirror.value.substring(e,this.mirror.value.length)}else this.mirror.value+=this.mirror;this.toWYSIWYG()},this.fromWYSIWYG=(t=!1)=>{if(!this.__lock||!0===t){this.__lock=!0;const t=this.jodit.getEditorValue(!1);t!==this.getMirrorValue()&&this.setMirrorValue(t),this.__lock=!1}},this.toWYSIWYG=()=>{if(this.__lock)return;const t=this.getMirrorValue();t!==this.__oldMirrorValue&&(this.__lock=!0,this.jodit.setEditorValue(t),this.__lock=!1,this.__oldMirrorValue=t)},this.getNormalPosition=(t,e)=>{let i=t;for(;i>0;){if(i--,"<"===e[i]&&void 0!==e[i+1]&&e[i+1].match(/[\w\/]+/i))return i;if(">"===e[i])return t}return t},this.__clear=t=>t.replace(d,""),this.selectAll=()=>{this.mirror.select()},this.onSelectAll=t=>{if("selectall"===t.toLowerCase()&&this.jodit.getRealMode()===P)return this.selectAll(),!1},this.getSelectionStart=()=>this.mirror.selectionStart,this.getSelectionEnd=()=>this.mirror.selectionEnd,this.saveSelection=()=>{if(this.jodit.getRealMode()===H)this.selInfo=this.jodit.selection.save()||[],this.jodit.setEditorValue(),this.fromWYSIWYG(!0);else{this.selInfo.length=0;const t=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){const e=this.jodit.selection.marker(!0);this.selInfo[0]={startId:e.id,collapsed:!0,startMarker:e.outerHTML};const i=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(t.substr(0,i)+this.__clear(this.selInfo[0].startMarker)+t.substr(i))}else{const e=this.jodit.selection.marker(!0),i=this.jodit.selection.marker(!1);this.selInfo[0]={startId:e.id,endId:i.id,collapsed:!1,startMarker:this.__clear(e.outerHTML),endMarker:this.__clear(i.outerHTML)};const o=this.getNormalPosition(this.getSelectionStart(),t),s=this.getNormalPosition(this.getSelectionEnd(),t);this.setMirrorValue(t.substr(0,o)+this.selInfo[0].startMarker+t.substr(o,s-o)+this.selInfo[0].endMarker+t.substr(s))}this.toWYSIWYG()}},this.restoreSelection=()=>{if(!this.selInfo.length)return;if(this.jodit.getRealMode()===H)return this.__lock=!0,this.jodit.selection.restore(this.selInfo),void(this.__lock=!1);let t=this.getMirrorValue(),e=0,i=0;try{this.selInfo[0].startMarker&&(t=t.replace(/<span[^>]+data-jodit_selection_marker="start"[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart)),this.selInfo[0].endMarker&&(t=t.replace(/<span[^>]+data-jodit_selection_marker="end"[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd)),this.jodit.ownerWindow.html_beautify&&this.jodit.options.beautifyHTML&&(t=this.jodit.ownerWindow.html_beautify(t)),e=t.indexOf(this.tempMarkerStart),i=e,t=t.replace(this.tempMarkerStartReg,""),this.selInfo[0].collapsed&&-1!==e||(i=t.indexOf(this.tempMarkerEnd),-1===e&&(e=i)),t=t.replace(this.tempMarkerEndReg,"")}finally{t=t.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(t),this.setMirrorSelectionRange(e,i),this.toWYSIWYG(),this.setFocusToMirror()},this.__proxyOnFocus=t=>{this.jodit.events.fire("focus",t)},this.__proxyOnMouseDown=t=>{this.jodit.events.fire("mousedown",t)},this.setMirrorSelectionRange=(t,e)=>{this.mirror.setSelectionRange(t,e)},this.onReadonlyReact=()=>{const t=this.jodit.options.readonly;t?this.mirror.setAttribute("readonly","true"):this.mirror.removeAttribute("readonly"),this.aceEditor&&this.aceEditor.setReadOnly(t)}}getMirrorValue(){return this.mirror.value}setMirrorValue(t){this.mirror.value=t}setFocusToMirror(){this.mirror.focus()}replaceMirrorToACE(){const t=this.jodit;let e,i;const o=()=>{i&&t.getRealMode()===P&&(t.events.fire("canRedo",i.hasRedo()),t.events.fire("canUndo",i.hasUndo()))},s=t=>e.session.getLine(t).length,n=()=>{const t=e.session.getLength(),i=[];let o=0;for(let e=0;t>e;e++)o+=s(e),e>0&&(o+=1),i[e]=o;return i},r=t=>{const e=n();if(e[0]>=t)return{row:0,column:t};let i=1;for(let o=1;e.length>o;o++)t>e[o]&&(i=o+1);return{row:i,column:t-e[i-1]-1}},a=(t,e)=>n()[t]-s(t)+e,l=()=>{if(void 0===e&&void 0!==this.jodit.ownerWindow.ace){this.jodit.events.off(this.jodit.ownerWindow,"aceReady",l);const s=this.jodit.create.div("jodit_source_mirror-fake");this.mirrorContainer.insertBefore(s,this.mirrorContainer.firstChild),this.aceEditor=e=this.jodit.ownerWindow.ace.edit(s),e.setTheme(t.options.sourceEditorNativeOptions.theme),e.renderer.setShowGutter(t.options.sourceEditorNativeOptions.showGutter),e.getSession().setMode(t.options.sourceEditorNativeOptions.mode),e.setHighlightActiveLine(t.options.sourceEditorNativeOptions.highlightActiveLine),e.getSession().setUseWrapMode(!0),e.setOption("indentedSoftWrap",!1),e.setOption("wrap",t.options.sourceEditorNativeOptions.wrap),e.getSession().setUseWorker(!1),e.$blockScrolling=1/0,e.setOptions({maxLines:1/0}),e.on("change",this.toWYSIWYG),e.on("focus",this.__proxyOnFocus),e.on("mousedown",this.__proxyOnMouseDown),this.mirror.style.display="none",i=e.getSession().getUndoManager(),this.setMirrorValue=i=>{e.setValue(t.options.beautifyHTML&&t.ownerWindow.html_beautify?t.ownerWindow.html_beautify(i):i),e.clearSelection(),o()},this.jodit.getRealMode()!==H&&this.setMirrorValue(this.getMirrorValue()),this.getMirrorValue=()=>e.getValue(),this.setFocusToMirror=()=>{e.focus()},this.getSelectionStart=()=>{const t=e.selection.getRange();return a(t.start.row,t.start.column)},this.getSelectionEnd=()=>{const t=e.selection.getRange();return a(t.end.row,t.end.column)},this.selectAll=()=>{e.selection.selectAll()},this.insertHTML=t=>{const i=e.selection.getCursor(),o=e.session.insert(i,t);e.selection.setRange({start:i,end:o},!1)},this.setMirrorSelectionRange=(t,i)=>{((t,i)=>{const o=r(t),s=r(i);e.getSelection().setSelectionRange({start:o,end:s})})(t,i)},t.events.on("afterResize",()=>{e.resize()}).fire("aceInited",t)}};t.events.on(this.jodit.ownerWindow,"aceReady",l).on("aceReady",l).on("afterSetMode",()=>{t.getRealMode()!==P&&t.getMode()!==O||(this.fromWYSIWYG(),l())}).on("beforeCommand",s=>{if(t.getRealMode()!==H&&("redo"===s||"undo"===s)&&i)return i["has"+s.substr(0,1).toUpperCase()+s.substr(1)]&&e[s](),o(),!1}),l(),void 0!==this.jodit.ownerWindow.ace||zt("script."+this.className,this.jodit.ownerDocument.body).length||this.loadNext(0,t.options.sourceEditorCDNUrlsJS,"aceReady",this.className)}afterInit(t){this.mirrorContainer=t.create.div("jodit_source"),this.mirror=t.create.fromHTML('<textarea class="jodit_source_mirror"/>');const e=()=>{t.events.off("beforeSetMode.source afterSetMode.source").on("beforeSetMode.source",this.saveSelection).on("afterSetMode.source",this.restoreSelection)};e(),this.onReadonlyReact(),t.events.on(this.mirror,"mousedown keydown touchstart input",nt(this.toWYSIWYG,t.defaultTimeout)).on(this.mirror,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.mirror,"mousedown focus",e=>{t.events.fire(e.type,e)}),t.events.on("setMinHeight.source",t=>{this.mirror&&ne(this.mirror,"minHeight",t)}).on("insertHTML.source",e=>{if(!t.options.readonly&&!this.jodit.isEditorMode())return this.insertHTML(e),!1}).on("aceInited",()=>{this.onReadonlyReact(),e()},void 0,void 0,!0).on("readonly.source",this.onReadonlyReact).on("placeholder.source",t=>{this.mirror.setAttribute("placeholder",t)}).on("beforeCommand.source",this.onSelectAll).on("change.source",this.fromWYSIWYG),this.mirrorContainer.appendChild(this.mirror),t.workplace.appendChild(this.mirrorContainer),this.autosize(),t.options.beautifyHTML&&void 0===t.ownerWindow.html_beautify&&!zt("script.beutyfy_html_jodit_helper",t.ownerDocument.body).length&&this.loadNext(0,t.options.beautifyHTMLCDNUrlsJS,!1,"beutyfy_html_jodit_helper"),t.options.useAceEditor&&this.replaceMirrorToACE(),this.fromWYSIWYG()}beforeDestruct(t){me.safeRemove(this.mirrorContainer),me.safeRemove(this.mirror),t&&t.events&&t.events.off("aceInited.source"),this.aceEditor&&(this.setFocusToMirror=()=>{},this.aceEditor.off("change",this.toWYSIWYG),this.aceEditor.off("focus",this.__proxyOnFocus),this.aceEditor.off("mousedown",this.__proxyOnMouseDown),this.aceEditor.destroy(),delete this.aceEditor),this.lastTuple&&this.lastTuple.element.removeEventListener("load",this.lastTuple.callback)}}we.prototype.showCharsCounter=!0,we.prototype.showWordsCounter=!0;class is extends Fi{constructor(){super(...arguments),this.calc=rt(()=>{const t=this.jodit.getEditorText();this.jodit.options.showCharsCounter&&this.charCounter&&(this.charCounter.textContent=this.jodit.i18n("Chars: %d",t.replace(p,"").length)),this.jodit.options.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.jodit.i18n("Words: %d",t.replace(d,"").split(p).filter(t=>t.length).length))},this.jodit.defaultTimeout)}afterInit(){this.jodit.options.showCharsCounter&&(this.charCounter=this.jodit.create.span(),this.jodit.statusbar.append(this.charCounter,!0)),this.jodit.options.showWordsCounter&&(this.wordCounter=this.jodit.create.span(),this.jodit.statusbar.append(this.wordCounter,!0)),this.jodit.events.on("change",this.calc),this.calc()}beforeDestruct(){me.safeRemove(this.charCounter),me.safeRemove(this.wordCounter),this.charCounter=null,this.wordCounter=null}}we.prototype.toolbarSticky=!0,we.prototype.toolbarDisableStickyForMobile=!0,we.prototype.toolbarStickyOffset=0;class os extends Fi{constructor(){super(...arguments),this.isToolbarSticked=!1,this.createDummy=t=>{F&&!this.dummyBox&&(this.dummyBox=this.jodit.create.div(),this.dummyBox.classList.add("jodit_sticky-dummy_toolbar"),this.jodit.container.insertBefore(this.dummyBox,t))},this.addSticky=t=>{this.isToolbarSticked||(this.createDummy(t),this.jodit.container.classList.add("jodit_sticky"),this.isToolbarSticked=!0),ne(t,{top:this.jodit.options.toolbarStickyOffset,width:this.jodit.container.offsetWidth}),F&&this.dummyBox&&ne(this.dummyBox,{height:t.offsetHeight})},this.removeSticky=t=>{this.isToolbarSticked&&(ne(t,{width:"",top:""}),this.jodit.container.classList.remove("jodit_sticky"),this.isToolbarSticked=!1)}}isMobile(){return this.jodit&&this.jodit.options&&this.jodit.container&&this.jodit.options.sizeSM>=this.jodit.container.offsetWidth}afterInit(t){t.events.on(t.ownerWindow,"scroll wheel mousewheel resize",()=>{const e=t.ownerWindow.pageYOffset||t.ownerDocument.documentElement&&t.ownerDocument.documentElement.scrollTop||0,i=Qt(t.container,t,t.ownerDocument,!0),o=t.getMode()===H&&e+t.options.toolbarStickyOffset>i.top&&i.top+i.height>e+t.options.toolbarStickyOffset&&!(t.options.toolbarDisableStickyForMobile&&this.isMobile());t.options.toolbarSticky&&!0===t.options.toolbar&&(o?this.addSticky(t.toolbar.getParentContainer()):this.removeSticky(t.toolbar.getParentContainer())),t.events.fire("toggleSticky",o)})}beforeDestruct(t){this.dummyBox&&me.safeRemove(this.dummyBox)}}function ss(t){t.events.on("keydown",e=>{let i,o;if(e.which!==y&&e.which!==k&&e.which!==C&&e.which!==x&&e.which!==j)return;{if(i=t.selection.current(),o=me.up(i,t=>t&&t.nodeName&&/^td|th$/i.test(t.nodeName),t.editor),!o)return;const s=t.selection.range;if(e.which!==y&&i!==o&&((e.which===k||e.which===x)&&(me.prev(i,t=>e.which===x?t&&"BR"===t.nodeName:!!t,o)||e.which!==x&&i.nodeType===Node.TEXT_NODE&&0!==s.startOffset)||(e.which===C||e.which===j)&&(me.next(i,t=>e.which===j?t&&"BR"===t.nodeName:!!t,o)||e.which!==j&&i.nodeType===Node.TEXT_NODE&&i.nodeValue&&s.startOffset!==i.nodeValue.length)))return}const s=me.up(o,t=>t&&/^table$/i.test(t.nodeName),t.editor);let n=null;switch(e.which){case y:case k:const i=e.which===k||e.shiftKey?"prev":"next";n=me[i](o,t=>t&&/^td|th$/i.test(t.tagName),s),n||(ro.appendRow(s,"next"!==i&&s.querySelector("tr"),"next"===i),n=me[i](o,e=>e&&me.isCell(e,t.editorWindow),s));break;case x:case j:{let t=0,i=0;const r=ro.formalMatrix(s,(e,s,n)=>{e===o&&(t=s,i=n)});e.which===x?void 0!==r[t-1]&&(n=r[t-1][i]):void 0!==r[t+1]&&(n=r[t+1][i])}}if(n){if(n.firstChild)e.which===y?t.selection.select(n,!0):t.selection.setCursorIn(n,e.which===C||e.which===j);else{const e=t.editorDocument.createElement("br");n.appendChild(e),t.selection.setCursorBefore(e)}return!1}})}we.prototype.usePopupForSpecialCharacters=!1,we.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;"],we.prototype.controls.symbol={icon:"omega",hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(t,e,i,o){const s=t.events.fire("generateSpecialCharactersTable.symbols");if(s){if(t.options.usePopupForSpecialCharacters){const e=t.ownerDocument.createElement("div");return e.classList.add("jodit_symbols"),e.appendChild(s),t.events.on(s,"close_dialog",o),e}{const e=Hi(s,t.i18n("Select Special Character"),void 0,"jodit_symbols"),i=s.querySelector("a");i&&i.focus(),t.events.on("beforeDestruct",()=>{e&&e.close()})}}}},we.prototype.useTableProcessor=!0,we.prototype.useExtraClassesOptions=!0,we.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(t,e,i,o,s){const n=i.data&&i.data.rows?i.data.rows:10,r=i.data&&i.data.cols?i.data.cols:10,a=t.create.fromHTML('<form class="jodit_form jodit_form_inserter"><label class="jodit_form_center"><span>1</span> &times; <span>1</span></label><div class="jodit_form-table-creator-box"><div class="jodit_form-container"></div><div class="jodit_form-options">'+(()=>{if(!t.options.useExtraClassesOptions)return"";const e=[];if(i.data){const t=i.data.classList;Object.keys(t).forEach(i=>{e.push(`<label class="jodit_vertical_middle"><input class="jodit_checkbox" value="${i}" type="checkbox"/>${t[i]}</label>`)})}return e.join("")})()+"</div></div></form>"),l=a.querySelectorAll("span")[0],d=a.querySelectorAll("span")[1],c=a.querySelector(".jodit_form-container"),h=a.querySelector(".jodit_form-table-creator-box"),p=a.querySelector(".jodit_form-options"),u=[];return c.addEventListener("mousemove",(t,e)=>{const i=t.target;if(!i||"DIV"!==i.tagName)return;let o=void 0===e||isNaN(e)?parseInt(i.getAttribute("data-index")||"0",10):e||0;const s=Math.ceil((o+1)/r),n=o%r+1;for(let t=0;u.length>t;t+=1)u[t].className=t%r+1>n||Math.ceil((t+1)/r)>s?"":"hovered";d.textContent=""+n,l.textContent=""+s}),t.events.on(c,"touchstart mousedown",e=>{const i=e.target;if(e.preventDefault(),e.stopImmediatePropagation(),"DIV"!==i.tagName)return;let s=parseInt(i.getAttribute("data-index")||"0",10);const n=Math.ceil((s+1)/r),a=s%r+1,l=t.create.inside,d=l.element("tbody"),c=l.element("table");c.appendChild(d),c.style.width="100%";let h,u,f=null;for(let t=1;n>=t;t+=1){h=l.element("tr");for(let t=1;a>=t;t+=1)u=l.element("td"),f||(f=u),u.appendChild(l.element("br")),h.appendChild(l.text("\n")),h.appendChild(l.text("\t")),h.appendChild(u);d.appendChild(l.text("\n")),d.appendChild(h)}const m=t.selection.current();if(m&&t.selection.isCollapsed()){const e=me.closest(m,e=>me.isBlock(e,t.editorWindow),t.editor);e&&e!==t.editor&&!e.nodeName.match(/^TD|TH|TBODY|TABLE|THEADER|TFOOTER$/)&&t.selection.setCursorAfter(e)}zt("input[type=checkbox]:checked",p).forEach(t=>{t.value.split(/[\s]+/).forEach(t=>{c.classList.add(t)})}),t.selection.insertNode(l.text("\n")),t.selection.insertNode(c,!1),f&&(t.selection.setCursorIn(f),ue(f,t.editor,t.editorDocument)),o()}),s&&s.parentToolbar&&t.events.off(s.parentToolbar.container,"afterOpenPopup.tableGenerator").on(s.parentToolbar.container,"afterOpenPopup.tableGenerator",()=>{(e=>{const i=e*r;if(u.length>i){for(let t=i;u.length>t;t+=1)me.safeRemove(u[t]),delete u[t];u.length=i}for(let e=0;i>e;e+=1)if(!u[e]){const i=t.create.div();i.setAttribute("data-index",""+e),u.push(i)}u.forEach(t=>{c.appendChild(t)});const o=(u[0].offsetWidth||18)*r;c.style.width=o+"px",h.style.width=o+p.offsetWidth+1+"px"})(n),u[0]&&(u[0].className="hovered")},"",!0),a},tooltip:"Insert table"};class ns extends Fi{constructor(){super(...arguments),this.__key="table_processor_observer",this.__selectMode=!1,this.__resizerDelta=0,this.__drag=!1,this.__addResizer=()=>{if(!this.__resizerHandler&&(this.__resizerHandler=this.jodit.container.querySelector(".jodit_table_resizer"),!this.__resizerHandler)){this.__resizerHandler=this.jodit.create.div("jodit_table_resizer");let t=0;this.jodit.events.on(this.__resizerHandler,"mousedown.table touchstart.table",e=>{this.__drag=!0,t=e.clientX,this.jodit.lock(this.__key),this.__resizerHandler.classList.add("jodit_table_resizer-moved");let i,o=this.__workTable.getBoundingClientRect();if(this.__minX=0,this.__maxX=1e6,null!==this.__wholeTable)o=this.__workTable.parentNode.getBoundingClientRect(),this.__minX=o.left,this.__maxX=o.left+o.width;else{const t=ro.formalCoordinate(this.__workTable,this.__workCell,!0);ro.formalMatrix(this.__workTable,(e,o,s)=>{t[1]===s&&(i=e.getBoundingClientRect(),this.__minX=Math.max(i.left+A/2,this.__minX)),t[1]+1===s&&(i=e.getBoundingClientRect(),this.__maxX=Math.min(i.left+i.width-A/2,this.__maxX))})}return!1}).on(this.__resizerHandler,"mouseenter.table",()=>{clearTimeout(this.hideTimeout)}).on(this.jodit.editorWindow,"mousemove.table touchmove.table",e=>{if(this.__drag){let i=e.clientX;const o=Qt(this.__resizerHandler.parentNode||this.jodit.ownerDocument.documentElement,this.jodit,this.jodit.ownerDocument,!0);this.__minX>i&&(i=this.__minX),i>this.__maxX&&(i=this.__maxX),this.__resizerDelta=i-t+(this.jodit.options.iframe?o.left:0),this.__resizerHandler.style.left=i-(this.jodit.options.iframe?0:o.left)+"px";const s=this.jodit.selection.sel;s&&s.removeAllRanges(),e.preventDefault&&e.preventDefault()}}),this.jodit.workplace.appendChild(this.__resizerHandler)}},this.onExecCommand=t=>{if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(t)){t=t.replace("table","");const e=ro.getAllSelectedCells(this.jodit.editor);if(e.length){const i=e.shift();if(!i)return;const o=me.closest(i,"table",this.jodit.editor);switch(t){case"splitv":ro.splitVertical(o);break;case"splitg":ro.splitHorizontal(o);break;case"merge":ro.mergeSelected(o);break;case"empty":ro.getAllSelectedCells(this.jodit.editor).forEach(t=>t.innerHTML="");break;case"bin":me.safeRemove(o);break;case"binrow":ro.removeRow(o,i.parentNode.rowIndex);break;case"bincolumn":ro.removeColumn(o,i.cellIndex);break;case"addcolumnafter":case"addcolumnbefore":ro.appendColumn(o,i.cellIndex,"addcolumnafter"===t);break;case"addrowafter":case"addrowbefore":ro.appendRow(o,i.parentNode,"addrowafter"===t)}}return!1}}}static isCell(t){return!!t&&/^TD|TH$/i.test(t.nodeName)}showResizer(){clearTimeout(this.hideTimeout),this.__resizerHandler.style.display="block"}hideResizer(){clearTimeout(this.hideTimeout),this.hideTimeout=st(()=>{this.__resizerHandler.style.display="none"},this.jodit.defaultTimeout)}__deSelectAll(t,e){const i=ro.getAllSelectedCells(t||this.jodit.editor);i.length&&i.forEach(t=>{e&&e===t||ro.restoreSelection(t)})}__setWorkCell(t,e=null){this.__wholeTable=e,this.__workCell=t,this.__workTable=me.up(t,t=>t&&"TABLE"===t.nodeName,this.jodit.editor)}__calcResizerPosition(t,e,i=0,o=0){const s=Qt(e,this.jodit,this.jodit.editorDocument);if(i>A&&s.width-i>A)this.hideResizer();else{const n=Qt(this.__resizerHandler.parentNode||this.jodit.ownerDocument.documentElement,this.jodit,this.jodit.ownerDocument,!0),r=Qt(t,this.jodit,this.jodit.editorDocument);if(this.__resizerHandler.style.left=(i>A?s.left+s.width:s.left)-n.left+o+"px",this.__resizerHandler.style.height=r.height+"px",this.__resizerHandler.style.top=r.top-n.top+"px",this.showResizer(),i>A){const t=me.next(e,ns.isCell,e.parentNode);this.__setWorkCell(e,!!t&&null)}else{const t=me.prev(e,ns.isCell,e.parentNode);t?this.__setWorkCell(t):this.__setWorkCell(e,!0)}}}observe(t){let e;t[this.__key]=!0,this.jodit.events.on(t,"mousedown.table touchstart.table",i=>{if(this.jodit.options.readonly)return;const o=me.up(i.target,ns.isCell,t);o&&o instanceof this.jodit.editorWindow.HTMLElement&&(o.firstChild||o.appendChild(this.jodit.editorDocument.createElement("br")),e=o,ro.addSelected(o),this.__selectMode=!0)}).on(t,"mouseleave.table",t=>{this.__resizerHandler&&this.__resizerHandler!==t.relatedTarget&&this.hideResizer()}).on(t,"mousemove.table touchmove.table",i=>{if(this.jodit.options.readonly)return;if(this.__drag||this.jodit.isLockedNotBy(this.__key))return;const o=me.up(i.target,ns.isCell,t);if(o)if(this.__selectMode){if(o!==e){this.jodit.lock(this.__key);const t=this.jodit.selection.sel;t&&t.removeAllRanges(),i.preventDefault&&i.preventDefault()}this.__deSelectAll(t);const s=ro.getSelectedBound(t,[o,e]),n=ro.formalMatrix(t);for(let t=s[0][0];s[1][0]>=t;t+=1)for(let e=s[0][1];s[1][1]>=e;e+=1)ro.addSelected(n[t][e]);const r=n[s[1][0]][s[1][1]],a=n[s[0][0]][s[0][1]];this.jodit.events.fire("showPopup",t,()=>{const t=Qt(a,this.jodit,this.jodit.editorDocument),e=Qt(r,this.jodit,this.jodit.editorDocument);return{left:t.left,top:t.top,width:e.left-t.left+e.width,height:e.top-t.top+e.height}}),i.stopPropagation()}else this.__calcResizerPosition(t,o,i.offsetX)}),this.__addResizer()}afterInit(t){t.options.useTableProcessor&&t.events.on(this.jodit.ownerWindow,"mouseup.table touchend.table",()=>{if((this.__selectMode||this.__drag)&&(this.__selectMode=!1,this.jodit.unlock()),this.__resizerHandler&&this.__drag){if(this.__drag=!1,this.__resizerHandler.classList.remove("jodit_table_resizer-moved"),null===this.__wholeTable){const t=[];ro.setColumnWidthByDelta(this.__workTable,ro.formalCoordinate(this.__workTable,this.__workCell,!0)[1],this.__resizerDelta,!0,t);const e=me.next(this.__workCell,ns.isCell,this.__workCell.parentNode);ro.setColumnWidthByDelta(this.__workTable,ro.formalCoordinate(this.__workTable,e)[1],-this.__resizerDelta,!1,t)}else{const t=this.__workTable.offsetWidth,e=Jt(this.__workTable.parentNode,this.jodit.editorWindow);if(this.__wholeTable){const i=parseInt(this.jodit.editorWindow.getComputedStyle(this.__workTable).marginLeft||"0",10);this.__workTable.style.width=(t-this.__resizerDelta)/e*100+"%",this.__workTable.style.marginLeft=(i+this.__resizerDelta)/e*100+"%"}else this.__workTable.style.width=(t+this.__resizerDelta)/e*100+"%"}t.setEditorValue(),t.selection.focus()}}).on(this.jodit.ownerWindow,"scroll.table",()=>{if(this.__drag){const e=me.up(this.__workCell,t=>t&&"TABLE"===t.nodeName,t.editor);if(e){const t=e.getBoundingClientRect();this.__resizerHandler.style.top=t.top+"px"}}}).on(this.jodit.ownerWindow,"mousedown.table touchend.table",t=>{const e=me.closest(t.originalEvent.target,"TD|TH",this.jodit.editor);let i=null;e instanceof this.jodit.editorWindow.HTMLTableCellElement&&(i=me.closest(e,"table",this.jodit.editor)),i?this.__deSelectAll(i,e instanceof this.jodit.editorWindow.HTMLTableCellElement&&e):this.__deSelectAll()}).on("afterGetValueFromEditor.table",t=>{const e=RegExp(`([s]*)${X}="1"`,"g");e.test(t.value)&&(t.value=t.value.replace(e,""))}).on("change.table afterCommand.table afterSetMode.table",()=>{zt("table",t.editor).forEach(t=>{t[this.__key]||this.observe(t)})}).on("beforeSetMode.table",()=>{ro.getAllSelectedCells(t.editor).forEach(e=>{ro.restoreSelection(e),ro.normalizeTable(me.closest(e,"table",t.editor))})}).on("keydown.table",e=>{e.which===y&&zt("table",t.editor).forEach(t=>{this.__deSelectAll(t)})}).on("beforeCommand.table",this.onExecCommand.bind(this))}beforeDestruct(t){t.events&&(t.events.off(this.jodit.ownerWindow,".table"),t.events.off(".table"))}}we.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},we.prototype.showXPathInStatusbar=!0;class rs extends Fi{constructor(){super(...arguments),this.onContext=(t,e)=>(this.menu||(this.menu=new Ri(this.jodit)),this.menu.show(e.clientX,e.clientY,[{icon:"bin",title:t===this.jodit.editor?"Clear":"Remove",exec:()=>{t!==this.jodit.editor?me.safeRemove(t):this.jodit.value="",this.jodit.setEditorValue()}},{icon:"select-all",title:"Select",exec:()=>{this.jodit.selection.select(t)}}]),!1),this.onSelectPath=(t,e)=>{this.jodit.selection.focus();const i=e.target.getAttribute("data-path")||"/";if("/"===i)return this.jodit.execCommand("selectall"),!1;try{const t=this.jodit.editorDocument.evaluate(i,this.jodit.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(t)return this.jodit.selection.select(t),!1}catch(t){}return this.jodit.selection.select(t),!1},this.tpl=(t,e,i,o)=>{const s=this.jodit.create.fromHTML("<li>"+`<a role="button" data-path="${e}" href="javascript:void(0)" title="${o}" tabindex="-1"'>${Mt(i)}</a>`+"</li>"),n=s.firstChild;return this.jodit.events.on(n,"click",this.onSelectPath.bind(this,t)).on(n,"contextmenu",this.onContext.bind(this,t)),s},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=new Ke(this.jodit,{name:"selectall",...this.jodit.options.controls.selectall}),this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)},this.calcPathImd=()=>{if(this.isDestructed)return;const t=this.jodit.selection.current();if(this.container&&(this.container.innerHTML=l),t){let e,i,o;me.up(t,t=>{t&&this.jodit.editor!==t&&t.nodeType!==Node.TEXT_NODE&&(e=t.nodeName.toLowerCase(),i=qt(t,this.jodit.editor).replace(/^\//,""),o=this.tpl(t,i,e,this.jodit.i18n("Select %s",e)),this.container&&this.container.insertBefore(o,this.container.firstChild))},this.jodit.editor)}this.appendSelectAll()},this.calcPath=nt(this.calcPathImd,2*this.jodit.defaultTimeout),this.container=null,this.menu=null}afterInit(){this.jodit.options.showXPathInStatusbar&&(this.container=this.jodit.create.element("ul"),this.container.classList.add("jodit_xpath"),this.jodit.statusbar.append(this.container),this.jodit.events.on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath",()=>{this.jodit.getRealMode()===H?this.calcPath():(this.container&&(this.container.innerHTML=l),this.appendSelectAll())}),this.calcPath())}beforeDestruct(){this.jodit&&this.jodit.events&&this.jodit.events.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),me.safeRemove(this.container),this.menu=null,this.container=null}}var as=i(1),ls=i(2),ds=i(3),cs=i(4),hs=i(5),ps=i(6),us=i(7),fs=i(8),ms=i(9),gs=i(10),vs=i(11),bs=i(12),ys=i(13),_s=i(14),ws=i(15),ks=i(16),xs=i(17),Cs=i(18),js=i(19),Ts=i(20),Es=i(21),zs=i(22),qs=i(23),Ss=i(24),Ls=i(25),Ns=i(26),Ms=i(27),As=i(28),Is=i(29),Ds=i(30),Rs=i(31),Bs=i(32),Hs=i(33),Ps=i(34),Os=i(35),Fs=i(36),Vs=i(37),Ws=i(38),$s=i(39),Us=i(40),Ks=i(41),Xs=i(42),Ys=i(43),Gs=i(44),Js=i(45),Zs=i(46),Qs=i(47),tn=i(48),en=i(49),on=i(50),sn=i(51),nn=i(52),rn=i(53),an=i(54),ln=i(55),dn=i(56),cn=i(57),hn=i(58),pn=i(59),un=i(60),fn=i(61),mn=i(62),gn=i(63),vn=i(64),bn=i(65),yn=i(66),_n=i(67),wn=i(68),kn=i(69),xn=i(70),Cn=i(71),jn=i(72),Tn=i(73),En=i(74),zn=i(75),qn=i(76),Sn=i(77),Ln=i(78);i.d(e,"Jodit",()=>Mn),Object.keys(o).forEach(t=>{Qe[t]=o[t]});const Nn=t=>"__esModule"!==t;Object.keys(a).filter(Nn).forEach(t=>{ge.icons[t.replace("_","-")]=a[t]}),Object.keys(n).filter(Nn).forEach(t=>{Qe.modules[t]=n[t]}),["Confirm","Alert","Promt"].forEach(t=>{Qe[t]=n[t]}),Object.keys(r).filter(Nn).forEach(t=>{Qe.plugins[t]=r[t]}),Object.keys(Ii).filter(Nn).forEach(t=>{Qe.lang[t]=Ii[t]}),Qe.defaultOptions=we.defaultOptions,ke.prototype=Qe.defaultOptions;const Mn=Qe;e.default=Qe}])}));