jodit 4.0.0-beta.40 → 4.0.0-beta.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +4 -4
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.js +2 -2
  4. package/es2015/jodit.min.js +2 -2
  5. package/es2015/plugins/debug/debug.js +1 -1
  6. package/es2015/plugins/debug/debug.min.js +1 -1
  7. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  8. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  10. package/es2021/jodit.css +1 -1
  11. package/es2021/jodit.js +2 -2
  12. package/es2021/jodit.min.js +2 -2
  13. package/es2021/plugins/debug/debug.js +1 -1
  14. package/es2021/plugins/debug/debug.min.js +1 -1
  15. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  16. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  17. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  18. package/es2021.en/jodit.css +1 -1
  19. package/es2021.en/jodit.js +2 -2
  20. package/es2021.en/jodit.min.js +2 -2
  21. package/es2021.en/plugins/debug/debug.js +1 -1
  22. package/es2021.en/plugins/debug/debug.min.js +1 -1
  23. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  24. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  25. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  26. package/es5/jodit.css +2 -2
  27. package/es5/jodit.js +2 -2
  28. package/es5/jodit.min.css +1 -1
  29. package/es5/jodit.min.js +2 -2
  30. package/es5/plugins/debug/debug.js +1 -1
  31. package/es5/plugins/debug/debug.min.js +1 -1
  32. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  33. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  34. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  35. package/esm/core/constants.js +1 -1
  36. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.0.0-beta.40
4
+ * Version: v4.0.0-beta.41
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
8
8
 
9
9
 
10
- ((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("{}"));else if("function"==typeof define&&define.amd)define(["{}"],e);else{var s="object"==typeof exports?e(require("{}")):e(t["{}"]);for(var i in s)("object"==typeof exports?exports:t)[i]=s[i]}})(self,(function(t){return function(){var e,s={61227(){"use strict";"document"in window.self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(t){if("Element"in t){var e="classList",s="prototype",i=t.Element[s],r=Object,o=String[s].trim||function(){return this.replace(/^\s+|\s+$/g,"")},n=Array[s].indexOf||function(t){for(var e=0,s=this.length;s>e;e++)if(e in this&&this[e]===t)return e;return-1},a=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},l=(t,e)=>{if(""===e)throw new a("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new a("INVALID_CHARACTER_ERR","String contains an invalid character");return n.call(t,e)},c=function(t){for(var e=o.call(t.getAttribute("class")||""),s=e?e.split(/\s+/):[],i=0,r=s.length;r>i;i++)this.push(s[i]);this._updateClassName=function(){t.setAttribute("class",""+this)}},h=c[s]=[],d=function(){return new c(this)};if(a[s]=Error[s],h.item=function(t){return this[t]||null},h.contains=function(t){return-1!==l(this,t+="")},h.add=function(){var t,e=arguments,s=0,i=e.length,r=!1;do{-1===l(this,t=e[s]+"")&&(this.push(t),r=!0)}while(++s<i);r&&this._updateClassName()},h.remove=function(){var t,e,s=arguments,i=0,r=s.length,o=!1;do{for(e=l(this,t=s[i]+"");-1!==e;)this.splice(e,1),o=!0,e=l(this,t)}while(++i<r);o&&this._updateClassName()},h.toggle=function(t,e){var s=this.contains(t+=""),i=s?!0!==e&&"remove":!1!==e&&"add";return i&&this[i](t),!0===e||!1===e?e:!s},h.toString=function(){return this.join(" ")},r.defineProperty){var u={get:d,enumerable:!0,configurable:!0};try{r.defineProperty(i,e,u)}catch(t){void 0!==t.number&&-2146823252!==t.number||(u.enumerable=!1,r.defineProperty(i,e,u))}}else r[s].__defineGetter__&&i.__defineGetter__(e,d)}}(window.self),function(){var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var s,i=arguments.length;for(s=0;i>s;s++)e.call(this,t=arguments[s])}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var s=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:s.call(this,t)}}t=null}())},69220(t,e,s){"use strict";s(22513);var i=s(56599);t.exports=i("Array","findIndex")},10444(t,e,s){"use strict";s(52867),s(70057);var i=s(31116);t.exports=i.Array.from},66622(t,e,s){"use strict";s(54166),s(32044),s(95661),s(28424),s(64514),s(30733),s(40327),s(53639),s(6147),s(7290),s(95122),s(61322),s(39605),s(49341),s(28809),s(82658),s(43967),s(90217),s(73477),s(93697);var i=s(31116);t.exports=i.Symbol},98061(t,e,s){"use strict";var i=s(794),r=s(98418),o=TypeError;t.exports=t=>{if(i(t))return t;throw o(r(t)+" is not a function")}},75839(t,e,s){"use strict";var i=s(794),r=String,o=TypeError;t.exports=t=>{if("object"==typeof t||i(t))return t;throw o("Can't set "+r(t)+" as a prototype")}},15179(t,e,s){"use strict";var i=s(19517),r=s(93503),o=s(73252).f,n=i("unscopables"),a=Array.prototype;null==a[n]&&o(a,n,{configurable:!0,value:r(null)}),t.exports=t=>{a[n][t]=!0}},52313(t,e,s){"use strict";var i=s(8148),r=String,o=TypeError;t.exports=t=>{if(i(t))return t;throw o(r(t)+" is not an object")}},92707(t,e,s){"use strict";var i=s(40207),r=s(9093),o=s(68488),n=s(79665),a=s(84997),l=s(15333),c=s(15050),h=s(89476),d=s(27395),u=s(81058),p=Array;t.exports=function(t){var e=o(t),s=l(this),f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m;g&&(m=i(m,f>2?arguments[2]:void 0));var v,b,y,w,_,C,S=u(e),E=0;if(!S||this===p&&a(S))for(v=c(e),b=s?new this(v):p(v);v>E;E++)C=g?m(e[E],E):e[E],h(b,E,C);else for(_=(w=d(e,S)).next,b=s?new this:[];!(y=r(_,w)).done;E++)C=g?n(w,m,[y.value,E],!0):y.value,h(b,E,C);return b.length=E,b}},79327(t,e,s){"use strict";var i=s(98651),r=s(10586),o=s(15050),n=t=>(e,s,n)=>{var a,l=i(e),c=o(l),h=r(n,c);if(t&&s!=s){for(;c>h;)if((a=l[h++])!=a)return!0}else for(;c>h;h++)if((t||h in l)&&l[h]===s)return t||h||0;return!t&&-1};t.exports={includes:n(!0),indexOf:n(!1)}},56881(t,e,s){"use strict";var i=s(40207),r=s(90838),o=s(25049),n=s(68488),a=s(15050),l=s(6429),c=r([].push),h=t=>{var e=1==t,s=2==t,r=3==t,h=4==t,d=6==t,u=7==t,p=5==t||d;return(f,m,g,v)=>{for(var b,y,w=n(f),_=o(w),C=i(m,g),S=a(_),E=0,x=v||l,j=e?x(f,S):s||u?x(f,0):void 0;S>E;E++)if((p||E in _)&&(y=C(b=_[E],E,w),t))if(e)j[E]=y;else if(y)switch(t){case 3:return!0;case 5:return b;case 6:return E;case 2:c(j,b)}else switch(t){case 4:return!1;case 7:c(j,b)}return d?-1:r||h?h:j}};t.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(7)}},63833(t,e,s){"use strict";var i=s(75834),r=s(19517),o=s(65190),n=r("species");t.exports=t=>o>=51||!i((()=>{var e=[];return(e.constructor={})[n]=()=>({foo:1}),1!==e[t](Boolean).foo}))},57652(t,e,s){"use strict";var i=s(10586),r=s(15050),o=s(89476),n=Array,a=Math.max;t.exports=(t,e,s)=>{for(var l=r(t),c=i(e,l),h=i(void 0===s?l:s,l),d=n(a(h-c,0)),u=0;h>c;c++,u++)o(d,u,t[c]);return d.length=u,d}},54832(t,e,s){"use strict";var i=s(90838);t.exports=i([].slice)},22506(t,e,s){"use strict";var i=s(36222),r=s(15333),o=s(8148),n=s(19517)("species"),a=Array;t.exports=t=>{var e;return i(t)&&(r(e=t.constructor)&&(e===a||i(e.prototype))||o(e)&&null===(e=e[n]))&&(e=void 0),void 0===e?a:e}},6429(t,e,s){"use strict";var i=s(22506);t.exports=(t,e)=>new(i(t))(0===e?0:e)},79665(t,e,s){"use strict";var i=s(52313),r=s(11274);t.exports=(t,e,s,o)=>{try{return o?e(i(s)[0],s[1]):e(s)}catch(e){r(t,"throw",e)}}},7581(t,e,s){"use strict";var i=s(19517)("iterator"),r=!1;try{var o=0,n={next(){return{done:!!o++}},return(){r=!0}};n[i]=function(){return this},Array.from(n,(()=>{throw 2}))}catch(t){}t.exports=(t,e)=>{if(!e&&!r)return!1;var s=!1;try{var o={};o[i]=()=>({next(){return{done:s=!0}}}),t(o)}catch(t){}return s}},6285(t,e,s){"use strict";var i=s(90838),r=i({}.toString),o=i("".slice);t.exports=t=>o(r(t),8,-1)},8652(t,e,s){"use strict";var i=s(6424),r=s(794),o=s(6285),n=s(19517)("toStringTag"),a=Object,l="Arguments"==o(function(){return arguments}());t.exports=i?o:t=>{var e,s,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(s=((t,e)=>{try{return t[e]}catch(t){}})(e=a(t),n))?s:l?o(e):"Object"==(i=o(e))&&r(e.callee)?"Arguments":i}},58392(t,e,s){"use strict";var i=s(14434),r=s(86671),o=s(36999),n=s(73252);t.exports=(t,e,s)=>{for(var a=r(e),l=n.f,c=o.f,h=0;a.length>h;h++){var d=a[h];i(t,d)||s&&i(s,d)||l(t,d,c(e,d))}}},27259(t,e,s){"use strict";var i=s(75834);t.exports=!i((()=>{function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},17427(t){"use strict";t.exports=(t,e)=>({value:t,done:e})},45840(t,e,s){"use strict";var i=s(13873),r=s(73252),o=s(32500);t.exports=i?(t,e,s)=>r.f(t,e,o(1,s)):(t,e,s)=>(t[e]=s,t)},32500(t){"use strict";t.exports=(t,e)=>({enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e})},89476(t,e,s){"use strict";var i=s(43836),r=s(73252),o=s(32500);t.exports=(t,e,s)=>{var n=i(e);n in t?r.f(t,n,o(0,s)):t[n]=s}},97548(t,e,s){"use strict";var i=s(40846),r=s(73252);t.exports=(t,e,s)=>(s.get&&i(s.get,e,{getter:!0}),s.set&&i(s.set,e,{setter:!0}),r.f(t,e,s))},35065(t,e,s){"use strict";var i=s(794),r=s(73252),o=s(40846),n=s(25379);t.exports=(t,e,s,a)=>{a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(i(s)&&o(s,c,a),a.global)l?t[e]=s:n(e,s);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=s:r.f(t,e,{value:s,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},25379(t,e,s){"use strict";var i=s(37042),r=Object.defineProperty;t.exports=(t,e)=>{try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(s){i[t]=e}return e}},13873(t,e,s){"use strict";var i=s(75834);t.exports=!i((()=>7!=Object.defineProperty({},1,{get(){return 7}})[1]))},12062(t){"use strict";var e="object"==typeof document&&document.all;t.exports={all:e,IS_HTMLDDA:void 0===e&&void 0!==e}},15192(t,e,s){"use strict";var i=s(37042),r=s(8148),o=i.document,n=r(o)&&r(o.createElement);t.exports=t=>n?o.createElement(t):{}},39505(t){"use strict";var e=TypeError;t.exports=t=>{if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},21473(t){"use strict";t.exports="undefined"!=typeof navigator&&navigator.userAgent+""||""},65190(t,e,s){"use strict";var i,r,o=s(37042),n=s(21473),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,h=c&&c.v8;h&&(r=(i=h.split("."))[0]>0&&4>i[0]?1:+(i[0]+i[1])),!r&&n&&((i=n.match(/Edge\/(\d+)/))&&74>i[1]||(i=n.match(/Chrome\/(\d+)/))&&(r=+i[1])),t.exports=r},56599(t,e,s){"use strict";var i=s(37042),r=s(90838);t.exports=(t,e)=>r(i[t].prototype[e])},64456(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},50791(t,e,s){"use strict";var i=s(37042),r=s(36999).f,o=s(45840),n=s(35065),a=s(25379),l=s(58392),c=s(56930);t.exports=(t,e)=>{var s,h,d,u,p,f=t.target,m=t.global,g=t.stat;if(s=m?i:g?i[f]||a(f,{}):(i[f]||{}).prototype)for(h in e){if(u=e[h],d=t.dontCallGetSet?(p=r(s,h))&&p.value:s[h],!c(m?h:f+(g?".":"#")+h,t.forced)&&void 0!==d){if(typeof u==typeof d)continue;l(u,d)}(t.sham||d&&d.sham)&&o(u,"sham",!0),n(s,h,u,t)}}},75834(t){"use strict";t.exports=t=>{try{return!!t()}catch(t){return!0}}},55101(t,e,s){"use strict";var i=s(32610),r=Function.prototype,o=r.apply,n=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?n.bind(o):function(){return n.apply(o,arguments)})},40207(t,e,s){"use strict";var i=s(75114),r=s(98061),o=s(32610),n=i(i.bind);t.exports=(t,e)=>(r(t),void 0===e?t:o?n(t,e):function(){return t.apply(e,arguments)})},32610(t,e,s){"use strict";var i=s(75834);t.exports=!i((()=>{var t=(()=>{}).bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9093(t,e,s){"use strict";var i=s(32610),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},84521(t,e,s){"use strict";var i=s(13873),r=s(14434),o=Function.prototype,n=i&&Object.getOwnPropertyDescriptor,a=r(o,"name"),l=a&&!1,c=a&&(!i||i&&n(o,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},47448(t,e,s){"use strict";var i=s(90838),r=s(98061);t.exports=(t,e,s)=>{try{return i(r(Object.getOwnPropertyDescriptor(t,e)[s]))}catch(t){}}},75114(t,e,s){"use strict";var i=s(6285),r=s(90838);t.exports=t=>{if("Function"===i(t))return r(t)}},90838(t,e,s){"use strict";var i=s(32610),r=Function.prototype,o=r.call,n=i&&r.bind.bind(o,o);t.exports=i?n:t=>function(){return o.apply(t,arguments)}},98945(t,e,s){"use strict";var i=s(37042),r=s(794);t.exports=function(t,e){return 2>arguments.length?r(s=i[t])?s:void 0:i[t]&&i[t][e];var s}},81058(t,e,s){"use strict";var i=s(8652),r=s(20156),o=s(8140),n=s(84922),a=s(19517)("iterator");t.exports=t=>{if(!o(t))return r(t,a)||r(t,"@@iterator")||n[i(t)]}},27395(t,e,s){"use strict";var i=s(9093),r=s(98061),o=s(52313),n=s(98418),a=s(81058),l=TypeError;t.exports=function(t,e){var s=2>arguments.length?a(t):e;if(r(s))return o(i(s,t));throw l(n(t)+" is not iterable")}},6693(t,e,s){"use strict";var i=s(90838),r=s(36222),o=s(794),n=s(6285),a=s(63046),l=i([].push);t.exports=function(t){if(o(t))return t;if(r(t)){for(var e=t.length,s=[],i=0;e>i;i++){var c=t[i];"string"==typeof c?l(s,c):"number"!=typeof c&&"Number"!=n(c)&&"String"!=n(c)||l(s,a(c))}var h=s.length,d=!0;return function(t,e){if(d)return d=!1,e;if(r(this))return e;for(var i=0;h>i;i++)if(s[i]===t)return e}}}},20156(t,e,s){"use strict";var i=s(98061),r=s(8140);t.exports=(t,e)=>{var s=t[e];return r(s)?void 0:i(s)}},37042(t,e,s){"use strict";var i=t=>t&&t.Math==Math&&t;t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof s.g&&s.g)||function(){return this}()||this||Function("return this")()},14434(t,e,s){"use strict";var i=s(90838),r=s(68488),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||((t,e)=>o(r(t),e))},48889(t){"use strict";t.exports={}},36249(t,e,s){"use strict";var i=s(98945);t.exports=i("document","documentElement")},12816(t,e,s){"use strict";var i=s(13873),r=s(75834),o=s(15192);t.exports=!i&&!r((()=>7!=Object.defineProperty(o("div"),"a",{get(){return 7}}).a))},25049(t,e,s){"use strict";var i=s(90838),r=s(75834),o=s(6285),n=Object,a=i("".split);t.exports=r((()=>!n("z").propertyIsEnumerable(0)))?t=>"String"==o(t)?a(t,""):n(t):n},92355(t,e,s){"use strict";var i=s(90838),r=s(794),o=s(45752),n=i(Function.toString);r(o.inspectSource)||(o.inspectSource=t=>n(t)),t.exports=o.inspectSource},56113(t,e,s){"use strict";var i,r,o,n=s(95473),a=s(37042),l=s(8148),c=s(45840),h=s(14434),d=s(45752),u=s(85475),p=s(48889),f="Object already initialized",m=a.TypeError;if(n||d.state){var g=d.state||(d.state=new(0,a.WeakMap));g.get=g.get,g.has=g.has,g.set=g.set,i=(t,e)=>{if(g.has(t))throw m(f);return e.facade=t,g.set(t,e),e},r=t=>g.get(t)||{},o=t=>g.has(t)}else{var v=u("state");p[v]=!0,i=(t,e)=>{if(h(t,v))throw m(f);return e.facade=t,c(t,v,e),e},r=t=>h(t,v)?t[v]:{},o=t=>h(t,v)}t.exports={set:i,get:r,has:o,enforce(t){return o(t)?r(t):i(t,{})},getterFor(t){return e=>{var s;if(!l(e)||(s=r(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return s}}}},84997(t,e,s){"use strict";var i=s(19517),r=s(84922),o=i("iterator"),n=Array.prototype;t.exports=t=>void 0!==t&&(r.Array===t||n[o]===t)},36222(t,e,s){"use strict";var i=s(6285);t.exports=Array.isArray||(t=>"Array"==i(t))},794(t,e,s){"use strict";var i=s(12062),r=i.all;t.exports=i.IS_HTMLDDA?t=>"function"==typeof t||t===r:t=>"function"==typeof t},15333(t,e,s){"use strict";var i=s(90838),r=s(75834),o=s(794),n=s(8652),a=s(98945),l=s(92355),c=()=>{},h=[],d=a("Reflect","construct"),u=/^\s*(?:class|function)\b/,p=i(u.exec),f=!u.exec(c),m=t=>{if(!o(t))return!1;try{return d(c,h,t),!0}catch(t){return!1}},g=t=>{if(!o(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!p(u,l(t))}catch(t){return!0}};g.sham=!0,t.exports=!d||r((()=>{var t;return m(m.call)||!m(Object)||!m((()=>{t=!0}))||t}))?g:m},56930(t,e,s){"use strict";var i=s(75834),r=s(794),o=/#|\.prototype\./,n=(t,e)=>{var s=l[a(t)];return s==h||s!=c&&(r(e)?i(e):!!e)},a=n.normalize=t=>(t+"").replace(o,".").toLowerCase(),l=n.data={},c=n.NATIVE="N",h=n.POLYFILL="P";t.exports=n},8140(t){"use strict";t.exports=t=>null==t},8148(t,e,s){"use strict";var i=s(794),r=s(12062),o=r.all;t.exports=r.IS_HTMLDDA?t=>"object"==typeof t?null!==t:i(t)||t===o:t=>"object"==typeof t?null!==t:i(t)},70852(t){"use strict";t.exports=!1},88253(t,e,s){"use strict";var i=s(98945),r=s(794),o=s(54671),n=s(57982),a=Object;t.exports=n?t=>"symbol"==typeof t:t=>{var e=i("Symbol");return r(e)&&o(e.prototype,a(t))}},11274(t,e,s){"use strict";var i=s(9093),r=s(52313),o=s(20156);t.exports=(t,e,s)=>{var n,a;r(t);try{if(!(n=o(t,"return"))){if("throw"===e)throw s;return s}n=i(n,t)}catch(t){a=!0,n=t}if("throw"===e)throw s;if(a)throw n;return r(n),s}},60928(t,e,s){"use strict";var i=s(77831).IteratorPrototype,r=s(93503),o=s(32500),n=s(44532),a=s(84922),l=function(){return this};t.exports=(t,e,s,c)=>{var h=e+" Iterator";return t.prototype=r(i,{next:o(+!c,s)}),n(t,h,!1,!0),a[h]=l,t}},13759(t,e,s){"use strict";var i=s(50791),r=s(9093),o=s(70852),n=s(84521),a=s(794),l=s(60928),c=s(1074),h=s(482),d=s(44532),u=s(45840),p=s(35065),f=s(19517),m=s(84922),g=s(77831),v=n.PROPER,b=n.CONFIGURABLE,y=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,_=f("iterator"),C="keys",S="values",E="entries",x=function(){return this};t.exports=function(t,e,s,n,f,g,j){l(s,e,n);var I,k,T,L=function(t){if(t===f&&D)return D;if(!w&&t in N)return N[t];switch(t){case C:case S:case E:return function(){return new s(this,t)}}return function(){return new s(this)}},M=e+" Iterator",P=!1,N=t.prototype,z=N[_]||N["@@iterator"]||f&&N[f],D=!w&&z||L(f),R="Array"==e&&N.entries||z;if(R&&(I=c(R.call(new t)))!==Object.prototype&&I.next&&(o||c(I)===y||(h?h(I,y):a(I[_])||p(I,_,x)),d(I,M,!0,!0),o&&(m[M]=x)),v&&f==S&&z&&z.name!==S&&(!o&&b?u(N,"name",S):(P=!0,D=function(){return r(z,this)})),f)if(k={values:L(S),keys:g?D:L(C),entries:L(E)},j)for(T in k)(w||P||!(T in N))&&p(N,T,k[T]);else i({target:e,proto:!0,forced:w||P},k);return o&&!j||N[_]===D||p(N,_,D,{name:f}),m[e]=D,k}},77831(t,e,s){"use strict";var i,r,o,n=s(75834),a=s(794),l=s(8148),c=s(93503),h=s(1074),d=s(35065),u=s(19517),p=s(70852),f=u("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(r=h(h(o)))!==Object.prototype&&(i=r):m=!0),!l(i)||n((()=>{var t={};return i[f].call(t)!==t}))?i={}:p&&(i=c(i)),a(i[f])||d(i,f,(function(){return this})),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:m}},84922(t){"use strict";t.exports={}},15050(t,e,s){"use strict";var i=s(24431);t.exports=t=>i(t.length)},40846(t,e,s){"use strict";var i=s(90838),r=s(75834),o=s(794),n=s(14434),a=s(13873),l=s(84521).CONFIGURABLE,c=s(92355),h=s(56113),d=h.enforce,u=h.get,p=String,f=Object.defineProperty,m=i("".slice),g=i("".replace),v=i([].join),b=a&&!r((()=>8!==f((()=>{}),"length",{value:8}).length)),y=(String+"").split("String"),w=t.exports=(t,e,s)=>{"Symbol("===m(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(e="get "+e),s&&s.setter&&(e="set "+e),(!n(t,"name")||l&&t.name!==e)&&(a?f(t,"name",{value:e,configurable:!0}):t.name=e),b&&s&&n(s,"arity")&&t.length!==s.arity&&f(t,"length",{value:s.arity});try{s&&n(s,"constructor")&&s.constructor?a&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=d(t);return n(i,"source")||(i.source=v(y,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return o(this)&&u(this).source||c(this)}),"toString")},43932(t){"use strict";var e=Math.ceil,s=Math.floor;t.exports=Math.trunc||(t=>{var i=+t;return(i>0?s:e)(i)})},93503(t,e,s){"use strict";var i,r=s(52313),o=s(5770),n=s(64456),a=s(48889),l=s(36249),c=s(15192),h=s(85475),d="prototype",u="script",p=h("IE_PROTO"),f=()=>{},m=t=>"<"+u+">"+t+"</"+u+">",g=t=>{t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=()=>{try{i=new ActiveXObject("htmlfile")}catch(t){}var t,e,s;v="undefined"!=typeof document?document.domain&&i?g(i):(e=c("iframe"),s="java"+u+":",e.style.display="none",l.appendChild(e),e.src=s+"",(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):g(i);for(var r=n.length;r--;)delete v[d][n[r]];return v()};a[p]=!0,t.exports=Object.create||((t,e)=>{var s;return null!==t?(f[d]=r(t),s=new f,f[d]=null,s[p]=t):s=v(),void 0===e?s:o.f(s,e)})},5770(t,e,s){"use strict";var i=s(13873),r=s(63142),o=s(73252),n=s(52313),a=s(98651),l=s(3385);e.f=i&&!r?Object.defineProperties:(t,e)=>{n(t);for(var s,i=a(e),r=l(e),c=r.length,h=0;c>h;)o.f(t,s=r[h++],i[s]);return t}},73252(t,e,s){"use strict";var i=s(13873),r=s(12816),o=s(63142),n=s(52313),a=s(43836),l=TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,d="enumerable",u="configurable",p="writable";e.f=i?o?(t,e,s)=>{if(n(t),e=a(e),n(s),"function"==typeof t&&"prototype"===e&&"value"in s&&p in s&&!s[p]){var i=h(t,e);i&&i[p]&&(t[e]=s.value,s={configurable:u in s?s[u]:i[u],enumerable:d in s?s[d]:i[d],writable:!1})}return c(t,e,s)}:c:(t,e,s)=>{if(n(t),e=a(e),n(s),r)try{return c(t,e,s)}catch(t){}if("get"in s||"set"in s)throw l("Accessors not supported");return"value"in s&&(t[e]=s.value),t}},36999(t,e,s){"use strict";var i=s(13873),r=s(9093),o=s(33244),n=s(32500),a=s(98651),l=s(43836),c=s(14434),h=s(12816),d=Object.getOwnPropertyDescriptor;e.f=i?d:(t,e)=>{if(t=a(t),e=l(e),h)try{return d(t,e)}catch(t){}if(c(t,e))return n(!r(o.f,t,e),t[e])}},53305(t,e,s){"use strict";var i=s(6285),r=s(98651),o=s(7792).f,n=s(57652),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=t=>a&&"Window"==i(t)?(t=>{try{return o(t)}catch(t){return n(a)}})(t):o(r(t))},7792(t,e,s){"use strict";var i=s(84729),r=s(64456).concat("length","prototype");e.f=Object.getOwnPropertyNames||(t=>i(t,r))},23953(t,e){"use strict";e.f=Object.getOwnPropertySymbols},1074(t,e,s){"use strict";var i=s(14434),r=s(794),o=s(68488),n=s(85475),a=s(27259),l=n("IE_PROTO"),c=Object,h=c.prototype;t.exports=a?c.getPrototypeOf:t=>{var e=o(t);if(i(e,l))return e[l];var s=e.constructor;return r(s)&&e instanceof s?s.prototype:e instanceof c?h:null}},54671(t,e,s){"use strict";var i=s(90838);t.exports=i({}.isPrototypeOf)},84729(t,e,s){"use strict";var i=s(90838),r=s(14434),o=s(98651),n=s(79327).indexOf,a=s(48889),l=i([].push);t.exports=(t,e)=>{var s,i=o(t),c=0,h=[];for(s in i)!r(a,s)&&r(i,s)&&l(h,s);for(;e.length>c;)r(i,s=e[c++])&&(~n(h,s)||l(h,s));return h}},3385(t,e,s){"use strict";var i=s(84729),r=s(64456);t.exports=Object.keys||(t=>i(t,r))},33244(t,e){"use strict";var s={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!s.call({1:2},1);e.f=r?function(t){var e=i(this,t);return!!e&&e.enumerable}:s},482(t,e,s){"use strict";var i=s(47448),r=s(52313),o=s(75839);t.exports=Object.setPrototypeOf||("__proto__"in{}?(()=>{var t,e=!1,s={};try{(t=i(Object.prototype,"__proto__","set"))(s,[]),e=s instanceof Array}catch(t){}return(s,i)=>(r(s),o(i),e?t(s,i):s.__proto__=i,s)})():void 0)},57555(t,e,s){"use strict";var i=s(6424),r=s(8652);t.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},82472(t,e,s){"use strict";var i=s(9093),r=s(794),o=s(8148),n=TypeError;t.exports=(t,e)=>{var s,a;if("string"===e&&r(s=t.toString)&&!o(a=i(s,t)))return a;if(r(s=t.valueOf)&&!o(a=i(s,t)))return a;if("string"!==e&&r(s=t.toString)&&!o(a=i(s,t)))return a;throw n("Can't convert object to primitive value")}},86671(t,e,s){"use strict";var i=s(98945),r=s(90838),o=s(7792),n=s(23953),a=s(52313),l=r([].concat);t.exports=i("Reflect","ownKeys")||(t=>{var e=o.f(a(t)),s=n.f;return s?l(e,s(t)):e})},31116(t,e,s){"use strict";var i=s(37042);t.exports=i},60265(t,e,s){"use strict";var i=s(8140),r=TypeError;t.exports=t=>{if(i(t))throw r("Can't call method on "+t);return t}},44532(t,e,s){"use strict";var i=s(73252).f,r=s(14434),o=s(19517)("toStringTag");t.exports=(t,e,s)=>{t&&!s&&(t=t.prototype),t&&!r(t,o)&&i(t,o,{configurable:!0,value:e})}},85475(t,e,s){"use strict";var i=s(95138),r=s(15257),o=i("keys");t.exports=t=>o[t]||(o[t]=r(t))},45752(t,e,s){"use strict";var i=s(37042),r=s(25379),o="__core-js_shared__",n=i[o]||r(o,{});t.exports=n},95138(t,e,s){"use strict";var i=s(70852),r=s(45752);(t.exports=(t,e)=>r[t]||(r[t]=void 0!==e?e:{}))("versions",[]).push({version:"3.30.2",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},41397(t,e,s){"use strict";var i=s(90838),r=s(27876),o=s(63046),n=s(60265),a=i("".charAt),l=i("".charCodeAt),c=i("".slice),h=t=>(e,s)=>{var i,h,d=o(n(e)),u=r(s),p=d.length;return 0>u||u>=p?t?"":void 0:55296>(i=l(d,u))||i>56319||u+1===p||56320>(h=l(d,u+1))||h>57343?t?a(d,u):i:t?c(d,u,u+2):h-56320+(i-55296<<10)+65536};t.exports={codeAt:h(!1),charAt:h(!0)}},73800(t,e,s){"use strict";var i=s(65190),r=s(75834),o=s(37042).String;t.exports=!!Object.getOwnPropertySymbols&&!r((()=>{var t=Symbol();return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&41>i}))},13829(t,e,s){"use strict";var i=s(9093),r=s(98945),o=s(19517),n=s(35065);t.exports=function(){var t=r("Symbol"),e=t&&t.prototype,s=e&&e.valueOf,a=o("toPrimitive");e&&!e[a]&&n(e,a,(function(t){return i(s,this)}),{arity:1})}},31948(t,e,s){"use strict";var i=s(73800);t.exports=i&&!!Symbol.for&&!!Symbol.keyFor},10586(t,e,s){"use strict";var i=s(27876),r=Math.max,o=Math.min;t.exports=(t,e)=>{var s=i(t);return 0>s?r(s+e,0):o(s,e)}},98651(t,e,s){"use strict";var i=s(25049),r=s(60265);t.exports=t=>i(r(t))},27876(t,e,s){"use strict";var i=s(43932);t.exports=t=>{var e=+t;return e!=e||0===e?0:i(e)}},24431(t,e,s){"use strict";var i=s(27876),r=Math.min;t.exports=t=>t>0?r(i(t),9007199254740991):0},68488(t,e,s){"use strict";var i=s(60265),r=Object;t.exports=t=>r(i(t))},11261(t,e,s){"use strict";var i=s(9093),r=s(8148),o=s(88253),n=s(20156),a=s(82472),l=s(19517),c=TypeError,h=l("toPrimitive");t.exports=(t,e)=>{if(!r(t)||o(t))return t;var s,l=n(t,h);if(l){if(void 0===e&&(e="default"),s=i(l,t,e),!r(s)||o(s))return s;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},43836(t,e,s){"use strict";var i=s(11261),r=s(88253);t.exports=t=>{var e=i(t,"string");return r(e)?e:e+""}},6424(t,e,s){"use strict";var i={};i[s(19517)("toStringTag")]="z",t.exports=i+""=="[object z]"},63046(t,e,s){"use strict";var i=s(8652),r=String;t.exports=t=>{if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return r(t)}},98418(t){"use strict";var e=String;t.exports=t=>{try{return e(t)}catch(t){return"Object"}}},15257(t,e,s){"use strict";var i=s(90838),r=0,o=Math.random(),n=i(1..toString);t.exports=t=>"Symbol("+(void 0===t?"":t)+")_"+n(++r+o,36)},57982(t,e,s){"use strict";var i=s(73800);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},63142(t,e,s){"use strict";var i=s(13873),r=s(75834);t.exports=i&&r((()=>42!=Object.defineProperty((()=>{}),"prototype",{value:42,writable:!1}).prototype))},95473(t,e,s){"use strict";var i=s(37042),r=s(794),o=i.WeakMap;t.exports=r(o)&&/native code/.test(o+"")},89633(t,e,s){"use strict";var i=s(31116),r=s(14434),o=s(96767),n=s(73252).f;t.exports=t=>{var e=i.Symbol||(i.Symbol={});r(e,t)||n(e,t,{value:o.f(t)})}},96767(t,e,s){"use strict";var i=s(19517);e.f=i},19517(t,e,s){"use strict";var i=s(37042),r=s(95138),o=s(14434),n=s(15257),a=s(73800),l=s(57982),c=i.Symbol,h=r("wks"),d=l?c.for||c:c&&c.withoutSetter||n;t.exports=t=>(o(h,t)||(h[t]=a&&o(c,t)?c[t]:d("Symbol."+t)),h[t])},54166(t,e,s){"use strict";var i=s(50791),r=s(75834),o=s(36222),n=s(8148),a=s(68488),l=s(15050),c=s(39505),h=s(89476),d=s(6429),u=s(63833),p=s(19517),f=s(65190),m=p("isConcatSpreadable"),g=f>=51||!r((()=>{var t=[];return t[m]=!1,t.concat()[0]!==t})),v=t=>{if(!n(t))return!1;var e=t[m];return void 0!==e?!!e:o(t)};i({target:"Array",proto:!0,arity:1,forced:!g||!u("concat")},{concat(t){var e,s,i,r,o,n=a(this),u=d(n,0),p=0;for(e=-1,i=arguments.length;i>e;e++)if(v(o=-1===e?n:arguments[e]))for(r=l(o),c(p+r),s=0;r>s;s++,p++)s in o&&h(u,p,o[s]);else c(p+1),h(u,p++,o);return u.length=p,u}})},22513(t,e,s){"use strict";var i=s(50791),r=s(56881).findIndex,o=s(15179),n="findIndex",a=!0;n in[]&&[,][n]((()=>{a=!1})),i({target:"Array",proto:!0,forced:a},{findIndex(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(n)},70057(t,e,s){"use strict";var i=s(50791),r=s(92707);i({target:"Array",stat:!0,forced:!s(7581)((t=>{Array.from(t)}))},{from:r})},67507(t,e,s){"use strict";var i=s(50791),r=s(98945),o=s(55101),n=s(9093),a=s(90838),l=s(75834),c=s(794),h=s(88253),d=s(54832),u=s(6693),p=s(73800),f=String,m=r("JSON","stringify"),g=a(/./.exec),v=a("".charAt),b=a("".charCodeAt),y=a("".replace),w=a(1..toString),_=/[\uD800-\uDFFF]/g,C=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,E=!p||l((()=>{var t=r("Symbol")();return"[null]"!=m([t])||"{}"!=m({a:t})||"{}"!=m(Object(t))})),x=l((()=>'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead"))),j=function(t,e){var s=d(arguments),i=u(e);if(c(i)||void 0!==t&&!h(t))return s[1]=function(t,e){if(c(i)&&(e=n(i,this,f(t),e)),!h(e))return e},o(m,null,s)},I=(t,e,s)=>{var i=v(s,e-1),r=v(s,e+1);return g(C,t)&&!g(S,r)||g(S,t)&&!g(C,i)?"\\u"+w(b(t,0),16):t};m&&i({target:"JSON",stat:!0,arity:3,forced:E||x},{stringify(t,e,s){var i=d(arguments),r=o(E?j:m,null,i);return x&&"string"==typeof r?y(r,_,I):r}})},90217(t,e,s){"use strict";var i=s(37042);s(44532)(i.JSON,"JSON",!0)},73477(t,e,s){"use strict";s(44532)(Math,"Math",!0)},30165(t,e,s){"use strict";var i=s(50791),r=s(73800),o=s(75834),n=s(23953),a=s(68488);i({target:"Object",stat:!0,forced:!r||o((()=>{n.f(1)}))},{getOwnPropertySymbols(t){var e=n.f;return e?e(a(t)):[]}})},32044(t,e,s){"use strict";var i=s(6424),r=s(35065),o=s(57555);i||r(Object.prototype,"toString",o,{unsafe:!0})},93697(t,e,s){"use strict";var i=s(50791),r=s(37042),o=s(44532);i({global:!0},{Reflect:{}}),o(r.Reflect,"Reflect",!0)},52867(t,e,s){"use strict";var i=s(41397).charAt,r=s(63046),o=s(56113),n=s(13759),a=s(17427),l="String Iterator",c=o.set,h=o.getterFor(l);n(String,"String",(function(t){c(this,{type:l,string:r(t),index:0})}),(function(){var t,e=h(this),s=e.string,r=e.index;return s.length>r?(t=i(s,r),e.index+=t.length,a(t,!1)):a(void 0,!0)}))},28424(t,e,s){"use strict";s(89633)("asyncIterator")},9656(t,e,s){"use strict";var i=s(50791),r=s(37042),o=s(9093),n=s(90838),a=s(70852),l=s(13873),c=s(73800),h=s(75834),d=s(14434),u=s(54671),p=s(52313),f=s(98651),m=s(43836),g=s(63046),v=s(32500),b=s(93503),y=s(3385),w=s(7792),_=s(53305),C=s(23953),S=s(36999),E=s(73252),x=s(5770),j=s(33244),I=s(35065),k=s(97548),T=s(95138),L=s(85475),M=s(48889),P=s(15257),N=s(19517),z=s(96767),D=s(89633),R=s(13829),A=s(44532),q=s(56113),O=s(56881).forEach,B=L("hidden"),H="Symbol",F="prototype",$=q.set,W=q.getterFor(H),V=Object[F],U=r.Symbol,Y=U&&U[F],G=r.TypeError,X=r.QObject,K=S.f,J=E.f,Z=_.f,Q=j.f,tt=n([].push),et=T("symbols"),st=T("op-symbols"),it=T("wks"),rt=!X||!X[F]||!X[F].findChild,ot=l&&h((function(){return 7!=b(J({},"a",{get(){return J(this,"a",{value:7}).a}})).a}))?(t,e,s)=>{var i=K(V,e);i&&delete V[e],J(t,e,s),i&&t!==V&&J(V,e,i)}:J,nt=(t,e)=>{var s=et[t]=b(Y);return $(s,{type:H,tag:t,description:e}),l||(s.description=e),s},at=(t,e,s)=>{t===V&&at(st,e,s),p(t);var i=m(e);return p(s),d(et,i)?(s.enumerable?(d(t,B)&&t[B][i]&&(t[B][i]=!1),s=b(s,{enumerable:v(0,!1)})):(d(t,B)||J(t,B,v(1,{})),t[B][i]=!0),ot(t,i,s)):J(t,i,s)},lt=(t,e)=>{p(t);var s=f(e),i=y(s).concat(ut(s));return O(i,(e=>{l&&!o(ct,s,e)||at(t,e,s[e])})),t},ct=function(t){var e=m(t),s=o(Q,this,e);return!(this===V&&d(et,e)&&!d(st,e))&&(!(s||!d(this,e)||!d(et,e)||d(this,B)&&this[B][e])||s)},ht=(t,e)=>{var s=f(t),i=m(e);if(s!==V||!d(et,i)||d(st,i)){var r=K(s,i);return!r||!d(et,i)||d(s,B)&&s[B][i]||(r.enumerable=!0),r}},dt=t=>{var e=Z(f(t)),s=[];return O(e,(t=>{d(et,t)||d(M,t)||tt(s,t)})),s},ut=t=>{var e=t===V,s=Z(e?st:f(t)),i=[];return O(s,(t=>{!d(et,t)||e&&!d(V,t)||tt(i,et[t])})),i};c||(U=function(){if(u(Y,this))throw G("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=P(t),s=function(t){this===V&&o(s,st,t),d(this,B)&&d(this[B],e)&&(this[B][e]=!1),ot(this,e,v(1,t))};return l&&rt&&ot(V,e,{configurable:!0,set:s}),nt(e,t)},I(Y=U[F],"toString",(function(){return W(this).tag})),I(U,"withoutSetter",(t=>nt(P(t),t))),j.f=ct,E.f=at,x.f=lt,S.f=ht,w.f=_.f=dt,C.f=ut,z.f=t=>nt(N(t),t),l&&(k(Y,"description",{configurable:!0,get(){return W(this).description}}),a||I(V,"propertyIsEnumerable",ct,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:U}),O(y(it),(t=>{D(t)})),i({target:H,stat:!0,forced:!c},{useSetter(){rt=!0},useSimple(){rt=!1}}),i({target:"Object",stat:!0,forced:!c,sham:!l},{create(t,e){return void 0===e?b(t):lt(b(t),e)},defineProperty:at,defineProperties:lt,getOwnPropertyDescriptor:ht}),i({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:dt}),R(),A(U,H),M[B]=!0},64514(t,e,s){"use strict";var i=s(50791),r=s(13873),o=s(37042),n=s(90838),a=s(14434),l=s(794),c=s(54671),h=s(63046),d=s(97548),u=s(58392),p=o.Symbol,f=p&&p.prototype;if(r&&l(p)&&(!("description"in f)||void 0!==p().description)){var m={},g=function(){var t=1>arguments.length||void 0===arguments[0]?void 0:h(arguments[0]),e=c(f,this)?new p(t):void 0===t?p():p(t);return""===t&&(m[e]=!0),e};u(g,p),g.prototype=f,f.constructor=g;var v=p("test")+""=="Symbol(test)",b=n(f.valueOf),y=n(f.toString),w=/^Symbol\((.*)\)[^)]+$/,_=n("".replace),C=n("".slice);d(f,"description",{configurable:!0,get(){var t=b(this);if(a(m,t))return"";var e=y(t),s=v?C(e,7,-1):_(e,w,"$1");return""===s?void 0:s}}),i({global:!0,constructor:!0,forced:!0},{Symbol:g})}},56202(t,e,s){"use strict";var i=s(50791),r=s(98945),o=s(14434),n=s(63046),a=s(95138),l=s(31948),c=a("string-to-symbol-registry"),h=a("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!l},{for(t){var e=n(t);if(o(c,e))return c[e];var s=r("Symbol")(e);return c[e]=s,h[s]=e,s}})},30733(t,e,s){"use strict";s(89633)("hasInstance")},40327(t,e,s){"use strict";s(89633)("isConcatSpreadable")},53639(t,e,s){"use strict";s(89633)("iterator")},95661(t,e,s){"use strict";s(9656),s(56202),s(71940),s(67507),s(30165)},71940(t,e,s){"use strict";var i=s(50791),r=s(14434),o=s(88253),n=s(98418),a=s(95138),l=s(31948),c=a("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!l},{keyFor(t){if(!o(t))throw TypeError(n(t)+" is not a symbol");if(r(c,t))return c[t]}})},7290(t,e,s){"use strict";s(89633)("matchAll")},6147(t,e,s){"use strict";s(89633)("match")},95122(t,e,s){"use strict";s(89633)("replace")},61322(t,e,s){"use strict";s(89633)("search")},39605(t,e,s){"use strict";s(89633)("species")},49341(t,e,s){"use strict";s(89633)("split")},28809(t,e,s){"use strict";var i=s(89633),r=s(13829);i("toPrimitive"),r()},82658(t,e,s){"use strict";var i=s(98945),r=s(89633),o=s(44532);r("toStringTag"),o(i("Symbol"),"Symbol")},43967(t,e,s){"use strict";s(89633)("unscopables")},690(t,e,s){"use strict";t.exports=s(26002).polyfill()},26002(t,e,s){"use strict";t.exports=function(){function t(t){return"function"==typeof t}var e=Array.isArray?Array.isArray:t=>"[object Array]"===Object.prototype.toString.call(t),i=0,r=void 0,o=void 0,n=(t,e)=>{p[i]=t,p[i+1]=e,2===(i+=2)&&(o?o(f):y())},a="undefined"!=typeof window?window:void 0,l=a||{},c=l.MutationObserver||l.WebKitMutationObserver,h="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function u(){var t=setTimeout;return()=>t(f,1)}var p=Array(1e3);function f(){for(var t=0;i>t;t+=2)(0,p[t])(p[t+1]),p[t]=void 0,p[t+1]=void 0;i=0}var m,g,v,b,y=void 0;function w(t,e){var s=this,i=new this.constructor(S);void 0===i[C]&&R(i);var r=s._state;if(r){var o=arguments[r-1];n((()=>z(r,i,o,s._result)))}else P(s,i,t,e);return i}function _(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(S);return k(e,t),e}y=h?()=>process.nextTick(f):c?(g=0,v=new c(f),b=document.createTextNode(""),v.observe(b,{characterData:!0}),()=>{b.data=g=++g%2}):d?((m=new MessageChannel).port1.onmessage=f,()=>m.port2.postMessage(0)):void 0===a?(()=>{try{var t=Function("return this")().require("vertx");return void 0!==(r=t.runOnLoop||t.runOnContext)?()=>{r(f)}:u()}catch(t){return u()}})():u();var C=Math.random().toString(36).substring(2);function S(){}var E=void 0,x=1,j=2;function I(e,s,i){s.constructor===e.constructor&&i===w&&s.constructor.resolve===_?((t,e)=>{e._state===x?L(t,e._result):e._state===j?M(t,e._result):P(e,void 0,(e=>k(t,e)),(e=>M(t,e)))})(e,s):void 0===i?L(e,s):t(i)?((t,e,s)=>{n((t=>{var i=!1,r=((s,r,o,n)=>{try{s.call(r,(s=>{i||(i=!0,e!==s?k(t,s):L(t,s))}),(e=>{i||(i=!0,M(t,e))}))}catch(t){return t}})(s,e);!i&&r&&(i=!0,M(t,r))}),t)})(e,s,i):L(e,s)}function k(t,e){if(t===e)M(t,new TypeError("You cannot resolve a promise with itself"));else if(r=typeof(i=e),null===i||"object"!==r&&"function"!==r)L(t,e);else{var s=void 0;try{s=e.then}catch(e){return void M(t,e)}I(t,e,s)}var i,r}function T(t){t._onerror&&t._onerror(t._result),N(t)}function L(t,e){t._state===E&&(t._result=e,t._state=x,0!==t._subscribers.length&&n(N,t))}function M(t,e){t._state===E&&(t._state=j,t._result=e,n(T,t))}function P(t,e,s,i){var r=t._subscribers,o=r.length;t._onerror=null,r[o]=e,r[o+x]=s,r[o+j]=i,0===o&&t._state&&n(N,t)}function N(t){var e=t._subscribers,s=t._state;if(0!==e.length){for(var i=void 0,r=void 0,o=t._result,n=0;e.length>n;n+=3)r=e[n+s],(i=e[n])?z(s,i,r,o):r(o);t._subscribers.length=0}}function z(e,s,i,r){var o=t(i),n=void 0,a=void 0,l=!0;if(o){try{n=i(r)}catch(t){l=!1,a=t}if(s===n)return void M(s,new TypeError("A promises callback cannot return that same promise."))}else n=r;s._state!==E||(o&&l?k(s,n):!1===l?M(s,a):e===x?L(s,n):e===j&&M(s,n))}var D=0;function R(t){t[C]=D++,t._state=void 0,t._result=void 0,t._subscribers=[]}var A=function(){function t(t,s){this._instanceConstructor=t,this.promise=new t(S),this.promise[C]||R(this.promise),e(s)?(this.length=s.length,this._remaining=s.length,this._result=Array(this.length),0===this.length?L(this.promise,this._result):(this.length=this.length||0,this._enumerate(s),0===this._remaining&&L(this.promise,this._result))):M(this.promise,Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===E&&t.length>e;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var s=this._instanceConstructor,i=s.resolve;if(i===_){var r=void 0,o=void 0,n=!1;try{r=t.then}catch(t){n=!0,o=t}if(r===w&&t._state!==E)this._settledAt(t._state,e,t._result);else if("function"!=typeof r)this._remaining--,this._result[e]=t;else if(s===q){var a=new s(S);n?M(a,o):I(a,t,r),this._willSettleAt(a,e)}else this._willSettleAt(new s((e=>e(t))),e)}else this._willSettleAt(i(t),e)},t.prototype._settledAt=function(t,e,s){var i=this.promise;i._state===E&&(this._remaining--,t===j?M(i,s):this._result[e]=s),0===this._remaining&&L(i,this._result)},t.prototype._willSettleAt=function(t,e){var s=this;P(t,void 0,(t=>s._settledAt(x,e,t)),(t=>s._settledAt(j,e,t)))},t}(),q=function(){function e(t){this[C]=D++,this._result=this._state=void 0,this._subscribers=[],S!==t&&("function"!=typeof t&&(()=>{throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")})(),this instanceof e?((t,e)=>{try{e((e=>{k(t,e)}),(e=>{M(t,e)}))}catch(e){M(t,e)}})(this,t):(()=>{throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")})())}return e.prototype.catch=function(t){return this.then(null,t)},e.prototype.finally=function(e){var s=this,i=s.constructor;return t(e)?s.then((t=>i.resolve(e()).then((()=>t))),(t=>i.resolve(e()).then((()=>{throw t})))):s.then(e,e)},e}();return q.prototype.then=w,q.all=function(t){return new A(this,t).promise},q.race=function(t){var s=this;return e(t)?new s(((e,i)=>{for(var r=t.length,o=0;r>o;o++)s.resolve(t[o]).then(e,i)})):new s(((t,e)=>e(new TypeError("You must pass an array to race."))))},q.resolve=_,q.reject=function(t){var e=new this(S);return M(e,t),e},q._setScheduler=t=>{o=t},q._setAsap=t=>{n=t},q._asap=n,q.polyfill=()=>{var t=void 0;if(void 0!==s.g)t=s.g;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var i=null;try{i=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===i&&!e.cast)return}t.Promise=q},q.Promise=q,q}()},20255(t,e,s){"use strict";function i(t,e,s,i){var r,o=arguments.length,n=3>o?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(3>o?r(n):o>3?r(e,s,n):r(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n}s.d(e,{gn(){return i}})},93166(t,e,s){"use strict";s.d(e,{D(){return r}});var i=s(86893);class r{constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument="undefined"!=typeof document?document:null,this.ownerWindow="undefined"!=typeof window?window:null,this.shadowRoot=null,this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.editorClassName=!1,this.editorCssClass=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=i.INSERT_AS_HTML,this.enter=i.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:i.PARAGRAPH,this.defaultMode=i.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.buttonsMD=["bold","italic","|","ul","ol","eraser","|","font","fontsize","---","image","table","|","link","\n","brush","paragraph","align","|","hr","copyformat","fullsize","---","undo","redo","|","dots"],this.buttonsSM=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"],this.buttonsXS=["bold","brush","paragraph","eraser","|","fontsize","---","image","\n","align","undo","redo","|","link","table","---","dots"],this.events={},this.textIcons=!1,this.showBrowserColorPicker=!0}static get defaultOptions(){return r.__defaultOptions||(r.__defaultOptions=new r),r.__defaultOptions}}r.prototype.controls={}},21317(t,e,s){"use strict";s.d(e,{e(){return h}});var i=s(27512),r=s(42096),o=s(79736),n=s(26335),a=s(24421),l=s(61817),c=(s(52378),s(86893));class h{constructor(){this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=queueMicrotask?.bind(window)??Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.requestsIdle=new Set,this.requestsRaf=new Set,this.requestIdleCallbackNative=window.requestIdleCallback?.bind(window)??((t,e)=>{const s=Date.now();return this.setTimeout((()=>{t({didTimeout:!1,timeRemaining(){return Math.max(0,50-(Date.now()-s))}})}),e?.timeout??1)}),this.cancelIdleCallbackNative=window.cancelIdleCallback?.bind(window)??(t=>{this.clearTimeout(t)}),this.isDestructed=!1}delay(t){return this.promise((e=>this.setTimeout(e,t)))}setTimeout(t,e,...s){if(this.isDestructed)return 0;let r={};(0,l.h)(e)||(r=e,e=r.timeout||0),r.label&&this.clearLabel(r.label);const o=(0,i.i)(t,e,...s),n=r.label||o;return this.timers.set(n,o),this.__callbacks.set(n,t),o}updateTimeout(t,e){if(!t||!this.timers.has(t))return null;const s=this.__callbacks.get(t);return this.setTimeout(s,{label:t,timeout:e})}clearLabel(t){t&&this.timers.has(t)&&((0,i.g)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,a.H)(t))return this.clearLabel(t);(0,i.g)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,e,s=!1){let a=0,l=!1;const c=[],h=(...e)=>{if(!l){a=0;const s=t(...e);if(l=!0,c.length){const t=()=>{c.forEach((t=>t())),c.length=0};(0,n.t)(s)?s.finally(t):t()}}},d=(...o)=>{l=!1,e?(!a&&s&&h(...o),(0,i.g)(a),a=this.setTimeout((()=>h(...o)),(0,r.m)(e)?e():e),this.timers.set(t,a)):h(...o)};return(0,o.P)(e)&&e.promisify?(...t)=>{const e=this.promise((t=>{c.push(t)}));return d(...t),e}:d}microDebounce(t,e=!1){let s,i=!1,r=!0;return(...o)=>{s=o,i?r=!0:(r=!0,e&&(r=!1,t(...s)),i=!0,this.__queueMicrotaskNative((()=>{i=!1,this.isDestructed||r&&t(...s)})))}}throttle(t,e,s=!1){let i,o,n,a=null;return(...s)=>{i=!0,n=s,e?a||(o=()=>{i?(t(...n),i=!1,a=this.setTimeout(o,(0,r.m)(e)?e():e),this.timers.set(o,a)):a=null},o()):t(...n)}}promise(t){let e=()=>{};const s=new Promise(((s,i)=>(this.promisesRejections.add(i),e=i,t(s,i))));return s.finally||"undefined"==typeof process||"es2021"===c.ES||(s.finally=t=>(s.then(t).catch(t),s)),s.finally((()=>{this.promisesRejections.delete(e)})).catch((()=>null)),s.rejectCallback=e,s}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise((e=>{t.then((t=>(e("fulfilled"),t)),(t=>{throw e("rejected"),t})),this.setTimeout((()=>{e("pending")}),100)}));const e={};return Promise.race([t,e]).then((t=>t===e?"pending":"fulfilled"),(()=>"rejected"))}requestIdleCallback(t,e){const s=this.requestIdleCallbackNative(t,e);return this.requestsIdle.add(s),s}requestIdlePromise(t){return this.promise((e=>{const s=this.requestIdleCallback((()=>e(s)),t)}))}cancelIdleCallback(t){return this.requestsIdle.delete(t),this.cancelIdleCallbackNative(t)}requestAnimationFrame(t){const e=requestAnimationFrame(t);return this.requestsRaf.add(e),e}cancelAnimationFrame(t){this.requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.requestsIdle.forEach((t=>this.cancelIdleCallback(t))),this.requestsRaf.forEach((t=>this.cancelAnimationFrame(t))),this.timers.forEach((t=>(0,i.g)(this.timers.get(t)))),this.timers.clear(),this.promisesRejections.forEach((t=>t())),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}}},45113(t,e,s){"use strict";s.d(e,{w(){return l}});var i=s(40332),r=s(17332),o=s(29411),n=s(21317);const a=new Map;class l{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,i.kebabCase)(((0,i.isFunction)(this.className)?this.className():"")||(0,i.getClassName)(this))),this.__componentName}getFullElName(t,e,s){const r=[this.componentName];return t&&(t=t.replace(/[^a-z0-9-]/gi,"-"),r.push("__"+t)),e&&(r.push("_",e),r.push("_",(0,i.isVoid)(s)?"true":""+s)),r.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,e){return(0,i.get)(t,e||this)}get isReady(){return this.componentStatus===o.n.ready}get isDestructed(){return this.componentStatus===o.n.destructed}get isInDestruct(){return o.n.beforeDestruct===this.componentStatus||o.n.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(o.n.beforeDestruct,(()=>!this.isInDestruct&&this.destruct())),this}constructor(){this.async=new n.e,this.ownerWindow=window,this.__componentStatus=o.n.beforeInit,this.uid="jodit-uid-"+(0,r.fe)()}destruct(){this.setStatus(o.n.destructed),this.async&&(this.async.destruct(),this.async=void 0),a.get(this)&&a.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,e){if(t===this.__componentStatus)return;e===this&&(this.__componentStatus=t);const s=Object.getPrototypeOf(this);s&&(0,i.isFunction)(s.setStatusComponent)&&s.setStatusComponent(t,e);const r=a.get(this),o=r?.[t];o&&o.length&&o.forEach((t=>t(e)))}hookStatus(t,e){let s=a.get(this);s||(s={},a.set(this,s)),s[t]||(s[t]=[]),s[t].push(e)}static isInstanceOf(t,e){return t instanceof e}}l.STATUSES=o.n},90549(t,e,s){"use strict";s.d(e,{wA(){return r.w},n$(){return i.n},Hr(){return o}});var i=s(29411),r=s(45113);class o extends r.w{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...e){return this.j.i18n(t,...e)}setParentView(t){return this.jodit=t,t.components.add(this),this}constructor(t){super(),this.setParentView(t)}destruct(){return this.j.components.delete(this),super.destruct()}}},29411(t,e,s){"use strict";s.d(e,{n(){return i}});const i={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},86893(t,e,s){"use strict";s.r(e),s.d(e,{ACCURACY(){return A},APP_VERSION(){return i},BASE_PATH(){return it},BR(){return O},CLIPBOARD_ID(){return nt},COMMAND_KEYS(){return q},EMULATE_DBLCLICK_TIMEOUT(){return X},ES(){return r},HOMEPAGE(){return l},INSEPARABLE_TAGS(){return _},INSERT_AS_HTML(){return K},INSERT_AS_TEXT(){return Z},INSERT_CLEAR_HTML(){return J},INSERT_ONLY_TEXT(){return Q},INVISIBLE_SPACE(){return c},INVISIBLE_SPACE_REG_EXP(){return d},INVISIBLE_SPACE_REG_EXP_END(){return u},INVISIBLE_SPACE_REG_EXP_START(){return p},IS_BLOCK(){return v},IS_ES_NEXT(){return o},IS_IE(){return W},IS_INLINE(){return b},IS_MAC(){return et},IS_PROD(){return n},IS_TEST(){return a},KEY_ALIASES(){return st},KEY_ALT(){return k},KEY_BACKSPACE(){return E},KEY_DELETE(){return z},KEY_DOWN(){return P},KEY_ENTER(){return j},KEY_ESC(){return I},KEY_F3(){return D},KEY_LEFT(){return T},KEY_META(){return S},KEY_RIGHT(){return M},KEY_SPACE(){return N},KEY_TAB(){return x},KEY_UP(){return L},LIST_TAGS(){return y},MARKER_CLASS(){return G},MODE_SOURCE(){return F},MODE_SPLIT(){return $},MODE_WYSIWYG(){return H},NBSP_SPACE(){return h},NEARBY(){return R},NO_EMPTY_TAGS(){return C},PARAGRAPH(){return B},PASSIVE_EVENTS(){return lt},SAFE_COUNT_CHANGE_CALL(){return tt},SOURCE_CONSUMER(){return at},SPACE_REG_EXP(){return f},SPACE_REG_EXP_END(){return g},SPACE_REG_EXP_START(){return m},TEMP_ATTR(){return rt},TEXT_HTML(){return U},TEXT_PLAIN(){return V},TEXT_RTF(){return Y},lang(){return ot}});const i="4.0.0-beta.40",r="es2021",o=!0,n=!0,a=!1,l="https://xdsoft.net/jodit/",c="\ufeff",h=" ",d=()=>/[\uFEFF]/g,u=()=>/[\uFEFF]+$/g,p=()=>/^[\uFEFF]+/g,f=()=>/[\s\n\t\r\uFEFF\u200b]+/g,m=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,g=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,v=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,b=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,y=new Set(["ul","ol"]),w=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],_=new Set([...w,"br","hr"]),C=new Set(w),S="Meta",E="Backspace",x="Tab",j="Enter",I="Escape",k="Alt",T="ArrowLeft",L="ArrowUp",M="ArrowRight",P="ArrowDown",N="Space",z="Delete",D="F3",R=5,A=10,q=[S,E,z,L,P,M,T,j,I,D,x],O="br",B="p",H=1,F=2,$=3,W="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),V=W?"text":"text/plain",U=W?"html":"text/html",Y=W?"rtf":"text/rtf",G="jodit-selection_marker",X=300,K="insert_as_html",J="insert_clear_html",Z="insert_as_text",Q="insert_only_text",tt=10,et="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),st={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:et?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},it=(()=>{if("undefined"==typeof document)return"";const t=document.currentScript,e=t=>{const e=t.split("/");return/\.js/.test(e[e.length-1])?e.slice(0,e.length-1).join("/")+"/":t};if(t)return e(t.src);const s=document.querySelectorAll("script[src]");return s&&s.length?e(s[s.length-1].src):window.location.href})(),rt="data-jodit-temp",ot={},nt="clipboard",at="source-consumer",lt=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},11441(t,e,s){"use strict";function i(t){class e extends t{constructor(...t){super(...t),this.constructor===e&&(this instanceof e||Object.setPrototypeOf(this,e.prototype),this.setStatus("ready"))}}return e}s.d(e,{w(){return i}})},55773(t,e,s){"use strict";s.d(e,{D(){return n},P(){return a}});var i=s(1243),r=s(90549),o=s(56964);function n(t,e=!1,s="debounce"){return(n,a)=>{const l=n[a];if(!(0,i.mf)(l))throw(0,o.vU)("Handler must be a Function");return n.hookStatus(r.n$.ready,(r=>{const{async:o}=r,n=(0,i.mf)(t)?t(r):t;Object.defineProperty(r,a,{configurable:!0,value:o[s](r[a].bind(r),(0,i.hj)(n)||(0,i.PO)(n)?n:r.defaultTimeout,e)})})),{configurable:!0,get(){return l.bind(this)}}}}function a(t,e=!1){return n(t,e,"throttle")}s(52378)},70669(t,e,s){"use strict";s.d(e,{s(){return r}});var i=s(42096);function r(...t){return e=>{const s=e.prototype;for(let e=0;t.length>e;e++){const r=t[e],o=Object.getOwnPropertyNames(r.prototype);for(let t=0;o.length>t;t++){const e=o[t],n=Object.getOwnPropertyDescriptor(r.prototype,e);null!=n&&(0,i.m)(n.value)&&!(0,i.m)(s[e])&&Object.defineProperty(s,e,{enumerable:!0,configurable:!0,writable:!0,value(...t){return n.value.call(this,...t)}})}}}}},68574(t,e,s){"use strict";s.r(e),s.d(e,{autobind(){return x},cache(){return a},cacheHTML(){return l},component(){return c.w},debounce(){return h.D},derive(){return _.s},getPropertyDescriptor(){return w.w7},hook(){return m},idle(){return f},nonenumerable(){return g},persistent(){return b},throttle(){return h.P},wait(){return y},watch(){return w.YP}});var i=s(1243),r=s(41579),o=s(24263),n=s(29411);function a(t,e,s){const i=s.get;if(!i)throw(0,r.vU)("Getter property descriptor expected");s.get=function(){const t=i.call(this);return t&&!0===t.noCache||Object.defineProperty(this,e,{configurable:s.configurable,enumerable:s.enumerable,writable:!1,value:t}),t}}function l(t,e,s){const a=s.value;if(!(0,i.mf)(a))throw(0,r.vU)("Handler must be a Function");let l=!0;const c=new WeakMap;s.value=function(...t){if(l&&c.has(this.constructor))return c.get(this.constructor).cloneNode(!0);const e=a.apply(this,t);return l&&o.i.isElement(e)&&c.set(this.constructor,e),l?e.cloneNode(!0):e},t.hookStatus(n.n.ready,(t=>{const e=(0,i.f2)(t)?t:t.jodit;l=!!e.options.cache}))}var c=s(11441),h=s(55773),d=s(90549),u=s(42096),p=s(56964);function f(){return(t,e)=>{if(!(0,u.m)(t[e]))throw(0,p.vU)("Handler must be a Function");t.hookStatus(d.n$.ready,(t=>{const{async:s}=t,i=t[e];t[e]=(...e)=>s.requestIdleCallback(i.bind(t,...e))}))}}function m(t){return(e,s)=>{if(!(0,u.m)(e[s]))throw(0,p.vU)("Handler must be a Function");e.hookStatus(t,(t=>{t[s].call(t)}))}}const g=(t,e)=>{!1!==(Object.getOwnPropertyDescriptor(t,e)||{}).enumerable&&Object.defineProperty(t,e,{enumerable:!1,set(t){Object.defineProperty(this,e,{enumerable:!1,writable:!0,value:t})}})};var v=s(96574);function b(t,e){t.hookStatus(n.n.ready,(t=>{const s=(0,v.f)(t)?t:t.jodit,i=`${s.options.namespace}${t.componentName}_prop_${e}`,r=t[e];Object.defineProperty(t,e,{get:()=>s.storage.get(i)??r,set(t){s.storage.set(i,t)}})}))}function y(t){return(e,s)=>{if(!(0,u.m)(e[s]))throw(0,p.vU)("Handler must be a Function");e.hookStatus(n.n.ready,(e=>{const{async:i}=e,r=e[s];let o=0;Object.defineProperty(e,s,{configurable:!0,value:function s(...n){i.clearTimeout(o),t(e)?r.apply(e,n):o=i.setTimeout((()=>s(...n)),10)}})}))}}var w=s(46163),_=s(70669);function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t=>typeof t:t=>t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t,C(t)}function S(t,e,s){var i=s.value;if("function"!=typeof i)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(C(i)));var r=!1;return{configurable:!0,get(){if(r||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof i)return i;var s=i.bind(this);return r=!0,Object.defineProperty(this,e,{configurable:!0,get(){return s},set(t){i=t,delete this[e]}}),r=!1,s},set(t){i=t}}}function E(t){var e;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?e=Reflect.ownKeys(t.prototype):(e=Object.getOwnPropertyNames(t.prototype),"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t.prototype)))),e.forEach((e=>{if("constructor"!==e){var s=Object.getOwnPropertyDescriptor(t.prototype,e);"function"==typeof s.value&&Object.defineProperty(t.prototype,e,S(t,e,s))}})),t}function x(){return 1===arguments.length?E.apply(void 0,arguments):S.apply(void 0,arguments)}},46163(t,e,s){"use strict";s.d(e,{YP(){return d},w7(){return h}});var i=s(42096),r=s(79736),o=s(96574),n=s(88418),a=s(29411),l=s(14556),c=s(56964);function h(t,e){let s;do{s=Object.getOwnPropertyDescriptor(t,e),t=Object.getPrototypeOf(t)}while(!s&&t);return s}function d(t,e){return(s,d)=>{if(!(0,i.m)(s[d]))throw(0,c.vU)("Handler must be a Function");const u=e?.immediately??!0,p=e?.context,f=e=>{const a=(0,o.f)(e)?e:e.jodit;let c=(t,...s)=>{if(!e.isInDestruct)return e[d](t,...s)};u||(c=e.async.microDebounce(c,!0)),(0,l.C)(t).forEach((t=>{if(/:/.test(t)){const[s,r]=t.split(":");let o=p;return s.length&&(o=e.get(s)),(0,i.m)(o)&&(o=o(e)),a.events.on(o||e,r,c),o||a.events.on(r,c),void e.hookStatus("beforeDestruct",(()=>{a.events.off(o||e,r,c).off(r,c)}))}const o=t.split("."),[l]=o,d=o.slice(1);let u=e[l];(0,r.P)(u)&&(0,n.L)(u).on("change."+d.join("."),c);const f=h(s,l);Object.defineProperty(e,l,{configurable:!0,set(t){const s=u;s!==t&&(u=t,f&&f.set&&f.set.call(e,t),(0,r.P)(u)&&(u=(0,n.L)(u),u.on("change."+d.join("."),c)),c(l,s,u))},get:()=>f&&f.get?f.get.call(e):u})}))};(0,i.m)(s.hookStatus)?s.hookStatus(a.n.ready,f):f(s)}}},24263(t,e,s){"use strict";s.d(e,{i(){return l}});var i=s(86893),r=s(1243),o=s(12557),n=s(89170),a=s(76502);class l{static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapInline(t,e,s){let i,o=t,n=t;s.s.save();let a=!1;do{a=!1,i=o.previousSibling,i&&!l.isBlock(i)&&(a=!0,o=i)}while(a);do{a=!1,i=n.nextSibling,i&&!l.isBlock(i)&&(a=!0,n=i)}while(a);const c=(0,r.HD)(e)?s.createInside.element(e):e;o.parentNode&&o.parentNode.insertBefore(c,o);let h=o;for(;h&&(h=o.nextSibling,c.appendChild(o),o!==n&&h);)o=h;return s.s.restore(),c}static wrap(t,e,s){const i=(0,r.HD)(e)?s.element(e):e;if(l.isNode(t)){if(!t.parentNode)throw(0,a.error)("Element should be in DOM");t.parentNode.insertBefore(i,t),i.appendChild(t)}else{const e=t.extractContents();t.insertNode(i),i.appendChild(e)}return i}static unwrap(t){const e=t.parentNode;if(e){for(;t.firstChild;)e.insertBefore(t.firstChild,t);l.safeRemove(t)}}static between(t,e,s){let i=t;for(;i&&i!==e&&(t===i||!s(i));){let t=i.firstChild||i.nextSibling;if(!t){for(;i&&!i.nextSibling;)i=i.parentNode;t=i?.nextSibling}i=t}}static replace(t,e,s,i=!1,n=!1){(0,r.FP)(e)&&(e=s.fromHTML(e));const a=(0,r.HD)(e)?s.element(e):e;if(!n)for(;t.firstChild;)a.appendChild(t.firstChild);return i&&l.isElement(t)&&l.isElement(a)&&(0,o.qo)(t.attributes).forEach((t=>{a.setAttribute(t.name,t.value)})),t.parentNode&&t.parentNode.replaceChild(a,t),a}static isEmptyTextNode(t){return l.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(i.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return l.each(t,(t=>l.isEmptyTextNode(t)))}static isContentEditable(t,e){return l.isNode(t)&&!l.closest(t,(t=>l.isElement(t)&&"false"===t.getAttribute("contenteditable")),e)}static isEmpty(t,e=i.NO_EMPTY_TAGS){if(!t)return!0;let s;s=(0,r.mf)(e)?e:t=>e.has(t.nodeName.toLowerCase());const o=t=>null==t.nodeValue||0===(0,n.fy)(t.nodeValue).length;return l.isText(t)?o(t):!(l.isElement(t)&&s(t))&&l.each(t,(t=>{if(l.isText(t)&&!o(t)||l.isElement(t)&&s(t))return!1}))}static isNode(t){return!!(t&&(0,r.HD)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,r.mf)(t.appendChild))}static isCell(t){return l.isNode(t)&&/^(td|th)$/i.test(t.nodeName)}static isList(t){return l.isTag(t,i.LIST_TAGS)}static isLeaf(t){return l.isTag(t,"li")}static isImage(t){return l.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,r.nj)(t)&&"object"==typeof t&&l.isNode(t)&&i.IS_BLOCK.test(t.nodeName)}static isText(t){return!(!t||t.nodeType!==Node.TEXT_NODE)}static isElement(t){if(!l.isNode(t))return!1;const e=t.ownerDocument?.defaultView;return!(!e||t.nodeType!==Node.ELEMENT_NODE)}static isFragment(t){if(!l.isNode(t))return!1;const e=t.ownerDocument?.defaultView;return!(!e||t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(t){if(!l.isNode(t))return!1;const e=t.ownerDocument?.defaultView;return!!(e&&t instanceof e.HTMLElement)}static isInlineBlock(t){return l.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf(""+(0,a.css)(t,"display"))}static canSplitBlock(t){return!(0,r.nj)(t)&&l.isHTMLElement(t)&&l.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static last(t,e){let s=t?.lastChild;if(!s)return null;do{if(e(s))return s;let i=s.lastChild;if(i||(i=s.previousSibling),!i&&s.parentNode!==t){do{s=s.parentNode}while(s&&!s?.previousSibling&&s.parentNode!==t);i=s?.previousSibling}s=i}while(s);return null}static prev(t,e,s,i=!0){return l.find(t,e,s,!1,i)}static next(t,e,s,i=!0){return l.find(t,e,s,!0,i)}static prevWithClass(t,e){return l.prev(t,(t=>l.isElement(t)&&t.classList.contains(e)),t.parentNode)}static nextWithClass(t,e){return l.next(t,(t=>l.isElement(t)&&t.classList.contains(e)),t.parentNode)}static find(t,e,s,i=!0,r=!0){const o=this.nextGen(t,s,i,r);let n=o.next();for(;!n.done;){if(e(n.value))return n.value;n=o.next()}return null}static*nextGen(t,e,s=!0,i=!0){const r=[];let o=t;do{let e=s?o.nextSibling:o.previousSibling;for(;e;)r.unshift(e),e=s?e.nextSibling:e.previousSibling;yield*this.runInStack(t,r,s,i),o=o.parentNode}while(o&&o!==e);return null}static each(t,e,s=!0){const i=this.eachGen(t,s);let r=i.next();for(;!r.done;){if(!1===e(r.value))return!1;r=i.next()}return!0}static eachGen(t,e=!0){return this.runInStack(t,[t],e)}static*runInStack(t,e,s,i=!0){for(;e.length;){const r=e.pop();if(i){let t=s?r.lastChild:r.firstChild;for(;t;)e.push(t),t=s?t.previousSibling:t.nextSibling}t!==r&&(yield r)}}static findWithCurrent(t,e,s,i="nextSibling",r="firstChild"){let o=t;do{if(e(o))return o||null;if(r&&o&&o[r]){const t=l.findWithCurrent(o[r],e,o,i,r);if(t)return t}for(;o&&!o[i]&&o!==s;)o=o.parentNode;o&&o[i]&&o!==s&&(o=o[i])}while(o&&o!==s);return null}static findSibling(t,e=!0,s=(t=>!l.isEmptyTextNode(t))){let i=l.sibling(t,e);for(;i&&!s(i);)i=l.sibling(i,e);return i&&s(i)?i:null}static findNotEmptySibling(t,e){return l.findSibling(t,e,(t=>!l.isEmptyTextNode(t)&&!!(!l.isText(t)||t.nodeValue?.length&&(0,n.fy)(t.nodeValue))))}static findNotEmptyNeighbor(t,e,s){return(0,a.call)(e?l.prev:l.next,t,(t=>!(!t||l.isText(t)&&!(0,n.fy)(t?.nodeValue||"").length)),s)}static sibling(t,e){return e?t.previousSibling:t.nextSibling}static up(t,e,s,i=!1){let r=t;if(!r)return null;do{if(e(r))return r;if(r===s||!r.parentNode)break;r=r.parentNode}while(r&&r!==s);return r===s&&i&&e(r)?r:null}static closest(t,e,s){let i;const o=t=>t.toLowerCase();if((0,r.mf)(e))i=e;else if((0,r.kJ)(e)||(0,r.DM)(e)){const t=(0,r.DM)(e)?e:new Set(e.map(o));i=e=>!(!e||!t.has(o(e.nodeName)))}else i=t=>!(!t||o(e)!==o(t.nodeName));return l.up(t,i,s)}static furthest(t,e,s){let i=null,r=t?.parentElement;for(;r&&r!==s;)e(r)&&(i=r),r=r?.parentElement;return i}static appendChildFirst(t,e){const s=t.firstChild;s?s!==e&&t.insertBefore(e,s):t.appendChild(e)}static after(t,e){const{parentNode:s}=t;s&&(s.lastChild===t?s.appendChild(e):s.insertBefore(e,t.nextSibling))}static before(t,e){const{parentNode:s}=t;s&&s.insertBefore(e,t)}static prepend(t,e){t.insertBefore(e,t.firstChild)}static append(t,e){(0,r.kJ)(e)?e.forEach((e=>{this.append(t,e)})):t.appendChild(e)}static moveContent(t,e,s=!1,i=(()=>!0)){const r=(t.ownerDocument||document).createDocumentFragment();(0,o.qo)(t.childNodes).filter((t=>!!i(t)||(l.safeRemove(t),!1))).forEach((t=>{r.appendChild(t)})),s&&e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}static isOrContains(t,e,s=!1){return t===e?!s:!!(e&&t&&this.up(e,(e=>e===t),t,!0))}static safeRemove(...t){t.forEach((t=>l.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t)))}static safeInsertNode(t,e){t.collapsed||t.deleteContents();const s=l.isFragment(e)?e.lastChild:e;t.insertNode(e),s&&t.setStartBefore(s),t.collapse(!0),[e.nextSibling,e.previousSibling].forEach((t=>l.isText(t)&&!t.nodeValue&&l.safeRemove(t)))}static hide(t){t&&((0,a.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;const e=(0,a.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=e||"")}static isTag(t,e){if(!this.isElement(t))return!1;const s=t.tagName.toLowerCase(),i=t.tagName.toUpperCase();if(e instanceof Set)return e.has(s)||e.has(i);const r=(0,o._2)(e).map((t=>(t+"").toLowerCase()));for(let t=0;r.length>t;t+=1)if(s===r[t]||i===r[t])return!0;return!1}static markTemporary(t,e){return e&&(0,a.attr)(t,e),(0,a.attr)(t,i.TEMP_ATTR,!0),t}static isTemporary(t){return!!l.isElement(t)&&((0,r._V)(t)||"true"===(0,a.attr)(t,i.TEMP_ATTR))}static replaceTemporaryFromString(t){return t.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(t){return(0,a.$$)(`[${i.TEMP_ATTR}]`,t)}}},64968(t,e,s){"use strict";s.d(e,{b(){return r.b},i(){return i.i}});var i=s(24263),r=s(33841)},33841(t,e,s){"use strict";s.d(e,{b(){return a}});var i=s(20255),r=s(73852),o=s(68574),n=s(24263);class a extends r.a{setWork(t){return this.isWorked&&this.break(),this.workNodes=n.i.eachGen(t,!this.options.reverse),this.isFinished=!1,this.startIdleRequest(),this}constructor(t,e={}){super(),this.async=t,this.options=e,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0}startIdleRequest(){this.idleId=this.async.requestIdleCallback(this.workPerform,{timeout:this.options.timeout??10})}break(t){this.isWorked&&(this.stop(),this.emit("break",t))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){super.destruct(),this.stop()}workPerform(t){if(this.workNodes){this.isWorked=!0;let e=0;const s=this.options.timeoutChunkSize??50;for(;!this.isFinished&&(t.timeRemaining()>0||t.didTimeout&&s>=e);){const t=this.workNodes.next();if(e+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this.startIdleRequest()}visitNode(t){return!(!t||void 0!==this.options.whatToShow&&t.nodeType!==this.options.whatToShow)&&(this.emit("visit",t)??!1)}}(0,i.gn)([o.autobind],a.prototype,"workPerform",null)},73852(t,e,s){"use strict";s.d(e,{a(){return i}});class i{constructor(){this.__map=new Map}on(t,e){return this.__map.has(t)||this.__map.set(t,new Set),this.__map.get(t)?.add(e),this}off(t,e){return this.__map.has(t)&&this.__map.get(t)?.delete(e),this}destruct(){this.__map.clear()}emit(t,...e){let s;return this.__map.has(t)&&this.__map.get(t)?.forEach((t=>{s=t(...e)})),s}}},4567(t,e,s){"use strict";s.d(e,{vp(){return u},DG(){return d},aN(){return f.a},rO(){return h},LO(){return m.L}});var i=s(24421),r=s(42096),o=s(49781),n=s(56964),a=s(14556),l=s(86893),c=(s(52378),s(1853));const h="JoditEventDefaultNamespace";class d{constructor(){this.__store=new Map}get(t,e){if(this.__store.has(e))return this.__store.get(e)[t]}indexOf(t,e,s){const i=this.get(t,e);if(i)for(let t=0;i.length>t;t+=1)if(i[t].originalCallback===s)return t;return!1}namespaces(t=!1){const e=(0,c.q)(this.__store.keys());return t?e.filter((t=>t!==h)):e}events(t){const e=this.__store.get(t);return e?Object.keys(e):[]}set(t,e,s,i=!1){let r=this.__store.get(e);r||(r={},this.__store.set(e,r)),void 0===r[t]&&(r[t]=[]),i?r[t].unshift(s):r[t].push(s)}clear(){this.__store.clear()}clearEvents(t,e){const s=this.__store.get(t);s&&s[e]&&(delete s[e],Object.keys(s).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}}class u{mute(t){return this.__mutedEvents.add(t??"*"),this}isMuted(t){return!(!t||!this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(t??"*"),this}__eachEvent(t,e){(0,a.C)(t).map((t=>t.trim())).forEach((t=>{const s=t.split(".");e.call(this,s[0],s[1]||h)}))}__getStore(t){if(!t)throw(0,n.vU)("Need subject");if(void 0===t[this.__key]){const e=new d;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:e})}return t[this.__key]}__removeStoreFromSubject(t){void 0!==t[this.__key]&&Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(t,e){const s=this.__doc.createEvent("HTMLEvents");(0,i.H)(e)?s.initEvent(e,!0,!0):(s.initEvent(e.type,e.bubbles,e.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach((t=>{Object.defineProperty(s,t,{value:e[t],enumerable:!0})})),Object.defineProperty(s,"originalEvent",{value:e,enumerable:!0})),t.dispatchEvent(s)}get current(){return this.currents[this.currents.length-1]}on(t,e,s,a){let c,h,d,u;if((0,i.H)(t)||(0,i.G)(t)?(c=this,h=t,d=e,u=s):(c=t,h=e,d=s,u=a),!(0,i.H)(h)&&!(0,i.G)(h)||0===h.length)throw(0,n.vU)("Need events names");if(!(0,r.m)(d))throw(0,n.vU)("Need event handler");if((0,o.k)(c))return c.forEach((t=>{this.on(t,h,d,u)})),this;const f=c,m=this.__getStore(f),g=this;let v=function(t,...e){if(!g.isMuted(t))return d&&d.call(this,...e)};return p(f)&&(v=function(t){if(!g.isMuted(t.type))return g.__prepareEvent(t),d&&!1===d.call(this,t)?(t.preventDefault(),t.stopImmediatePropagation(),!1):void 0}),this.__eachEvent(h,((t,e)=>{if(0===t.length)throw(0,n.vU)("Need event name");if(!1===m.indexOf(t,e,d)&&(m.set(t,e,{event:t,originalCallback:d,syntheticCallback:v},u?.top),p(f))){const e=l.PASSIVE_EVENTS.has(t)?{passive:!0,capture:u?.capture??!1}:u?.capture??!1;v.options=e,f.addEventListener(t,v,e),this.__memoryDOMSubjectToHandler(f,v)}})),this}__memoryDOMSubjectToHandler(t,e){const s=this.__domEventsMap.get(t)||new Set;s.add(e),this.__domEventsMap.set(t,s)}__unmemoryDOMSubjectToHandler(t,e){const s=this.__domEventsMap,i=s.get(t)||new Set;i.delete(e),i.size?s.set(t,i):s.delete(t)}one(t,e,s,r){let o,n,a,l;(0,i.H)(t)||(0,i.G)(t)?(o=this,n=t,a=e,l=s):(o=t,n=e,a=s,l=r);const c=(...t)=>(this.off(o,n,c),a(...t));return this.on(o,n,c,l),this}off(t,e,s){let n,a,l;if((0,i.H)(t)||(0,i.G)(t)?(n=this,a=t,l=e):(n=t,a=e,l=s),(0,o.k)(n))return n.forEach((t=>{this.off(t,a,l)})),this;const c=n,d=this.__getStore(c);if(!(0,i.H)(a)&&!(0,i.G)(a)||0===a.length)return d.namespaces().forEach((t=>{this.off(c,"."+t)})),this.__removeStoreFromSubject(c),this;const u=t=>{p(c)&&(c.removeEventListener(t.event,t.syntheticCallback,t.syntheticCallback.options??!1),this.__unmemoryDOMSubjectToHandler(c,t.syntheticCallback))},f=(t,e)=>{if(""===t)return void d.events(e).forEach((t=>{""!==t&&f(t,e)}));const s=d.get(t,e);if(s&&s.length)if((0,r.m)(l)){const i=d.indexOf(t,e,l);!1!==i&&(u(s[i]),s.splice(i,1),s.length||d.clearEvents(e,t))}else s.forEach(u),s.length=0,d.clearEvents(e,t)};return this.__eachEvent(a,((t,e)=>{e===h?d.namespaces().forEach((e=>{f(t,e)})):f(t,e)})),d.isEmpty()&&this.__removeStoreFromSubject(c),this}stopPropagation(t,e){const s=(0,i.H)(t)?this:t,r=(0,i.H)(t)?t:e;if("string"!=typeof r)throw(0,n.vU)("Need event names");const o=this.__getStore(s);this.__eachEvent(r,((t,e)=>{const i=o.get(t,e);i&&this.__stopped.push(i),e===h&&o.namespaces(!0).forEach((e=>this.stopPropagation(s,t+"."+e)))}))}__removeStop(t){if(t){const e=this.__stopped.indexOf(t);-1!==e&&this.__stopped.splice(0,e+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,e,...s){let r,o;const a=(0,i.H)(t)?this:t,l=(0,i.H)(t)?t:e,c=(0,i.H)(t)?[e,...s]:s;if(!p(a)&&!(0,i.H)(l))throw(0,n.vU)("Need events names");const d=this.__getStore(a);return!(0,i.H)(l)&&p(a)?this.__triggerNativeEvent(a,e):this.__eachEvent(l,((t,e)=>{if(p(a))this.__triggerNativeEvent(a,t);else{const s=d.get(t,e);if(s)try{[...s].every((e=>!this.__isStopped(s)&&(this.currents.push(t),o=e.syntheticCallback.call(a,t,...c),this.currents.pop(),void 0!==o&&(r=o),!0)))}finally{this.__removeStop(s)}e!==h||p(a)||d.namespaces().filter((t=>t!==e)).forEach((e=>{const s=this.fire.call(this,a,t+"."+e,...c);void 0!==s&&(r=s)}))}})),r}constructor(t){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=document,this.__prepareEvent=t=>{t.cancelBubble||(t.composed&&(0,r.m)(t.composedPath)&&t.composedPath()[0]&&Object.defineProperty(t,"target",{value:t.composedPath()[0],configurable:!0,enumerable:!0}),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.currents=[],this.__stopped=[],this.__isDestructed=!1,t&&(this.__doc=t),this.__key+=(new Date).getTime()}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach(((t,e)=>{this.off(e)})),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}}function p(t){return(0,r.m)(t.addEventListener)}var f=s(73852),m=s(88418)},88418(t,e,s){"use strict";s.d(e,{L(){return c}});var i=s(49781),r=s(32756),o=s(79736),n=s(46163);const a=Symbol("observable-object");function l(t){return void 0!==t[a]}function c(t){if(l(t))return t;const e={},s={},c=(e,r)=>(0,i.k)(e)?(e.map((t=>c(t,r))),t):(s[e]||(s[e]=[]),s[e].push(r),t),h=(r,...o)=>{if((0,i.k)(r))r.map((t=>h(t,...o)));else try{!e[r]&&s[r]&&(e[r]=!0,s[r].forEach((e=>e.call(t,...o))))}finally{e[r]=!1}},d=(e,s=[])=>{const i={};l(e)||(Object.defineProperty(e,a,{enumerable:!1,value:!0}),Object.keys(e).forEach((a=>{const l=a,c=s.concat(l).filter((t=>t.length));i[l]=e[l];const u=(0,n.w7)(e,l);Object.defineProperty(e,l,{set(e){const s=i[l];if(!(0,r.L)(i[l],e)){h(["beforeChange","beforeChange."+c.join(".")],l,e),(0,o.P)(e)&&d(e,c),u&&u.set?u.set.call(t,e):i[l]=e;const r=[];h(["change",...c.reduce(((t,e)=>(r.push(e),t.push("change."+r.join(".")),t)),[])],c.join("."),s,e?.valueOf?e.valueOf():e)}},get(){return u&&u.get?u.get.call(t):i[l]},enumerable:!0,configurable:!0}),(0,o.P)(i[l])&&d(i[l],c)})),Object.defineProperty(t,"on",{value:c}))};return d(t),t}},17332(t,e,s){"use strict";s.d(e,{TB(){return w},ZO(){return y},as(){return d},fe(){return f},pw(){return m},qz(){return g},xl(){return v}});var i=s(90262),r=s(64968),o=s(4567),n=s(77892),a=s(96574),l=s(87247),c=s(11278),h=s(86893);const d={};let u=1;const p=new Set;function f(){function t(){return u+=10*(Math.random()+1),Math.round(u).toString(16)}let e=t();for(;p.has(e);)e=t();return p.add(e),e}const m=new i.h,g={},v=t=>{Object.keys(t).forEach((e=>{h.lang[e]?Object.assign(h.lang[e],t[e]):h.lang[e]=t[e]}))},b=new WeakMap;function y(t,e,s="div",i=!1){const o=e?(0,l.g)(e.prototype):"jodit-utils",h=b.get(t)||{},d=o+s,u=(0,a.f)(t)?t:t.j;if(!h[d]){let e=u.c,a=(0,n.Z)(t)&&t.o.shadowRoot?t.o.shadowRoot:t.od.body;if(i&&(0,n.Z)(t)&&t.od!==t.ed){e=t.createInside;const i="style"===s?t.ed.head:t.ed.body;a=(0,n.Z)(t)&&t.o.shadowRoot?t.o.shadowRoot:i}const l=e.element(s,{className:`jodit jodit-${(0,c.G)(o)}-container jodit-box`});l.classList.add("jodit_theme_"+(u.o.theme||"default")),a.appendChild(l),h[d]=l,t.hookStatus("beforeDestruct",(()=>{r.i.safeRemove(l),delete h[d],Object.keys(h).length&&b.delete(t)})),b.set(t,h)}return h[d].classList.remove("jodit_theme_default","jodit_theme_dark"),h[d].classList.add("jodit_theme_"+(u.o.theme||"default")),h[d]}const w=new o.vp},34578(t,e,s){"use strict";s.d(e,{_(){return r}});var i=s(49781);const r=t=>(0,i.k)(t)?t:[t]},12557(t,e,s){"use strict";s.d(e,{C1(){return r.C},_2(){return i._},qo(){return o.q}});var i=s(34578),r=s(14556),o=s(1853)},14556(t,e,s){"use strict";function i(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}s.d(e,{C(){return i}})},1853(t,e,s){"use strict";s.d(e,{q(){return o}});var i=s(80861),r=s(28069);const o=(...t)=>((0,r.Q)(Array.from)?Array.from:(0,i.m)("Array.from")??Array.from).apply(Array,t)},4696(t,e,s){"use strict";s.d(e,{g(){return i.g},i(){return i.i}});var i=s(27512)},27512(t,e,s){"use strict";function i(t,e,...s){return e?window.setTimeout(t,e,...s):(t.call(null,...s),0)}function r(t){window.clearTimeout(t)}s.d(e,{g(){return r},i(){return i}})},1243(t,e,s){"use strict";function i(){let t=!0;try{const e=document.createElement("input");e.type="color",e.value="!",t="color"===e.type&&"!"!==e.value}catch(e){t=!1}return t}s.d(e,{EO(){return i},Zt(){return g},kJ(){return r.k},jn(){return a.j},Z$(){return m},Xy(){return l.X},LP(){return l.L},mf(){return o.m},FP(){return h},I4(){return d},Gu(){return f},GN(){return b},Zu(){return y.Z},A1(){return _},_V(){return T._},QC(){return C.Q},hj(){return S.h},kE(){return v.k},PO(){return E.P},tI(){return x.t},DM(){return n},HD(){return c.H},GI(){return c.G},PX(){return j.P},r1(){return I},f2(){return w.f},nj(){return p.n},FJ(){return k.F}});var r=s(49781),o=s(42096);function n(t){return!!t&&(0,o.m)(t.has)&&(0,o.m)(t.add)&&(0,o.m)(t.delete)}var a=s(67749),l=s(32756),c=s(24421);const h=t=>(0,c.H)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""));function d(t){return-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/)}var u=s(24263),p=s(24021);function f(t){return!(0,p.n)(t)&&(0,o.m)(t.init)}function m(t){return!(0,p.n)(t)&&(0,o.m)(t.destruct)}function g(t){return!(0,p.n)(t)&&u.i.isElement(t.container)}var v=s(57649);function b(t){return(0,c.H)(t)&&(0,v.k)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}var y=s(77892),w=s(96574);const _=t=>(0,c.H)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t);var C=s(28069),S=s(61817),E=s(79736),x=s(26335),j=s(64350);function I(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_.]/.test(t)}var k=s(85994),T=s(37204)},49781(t,e,s){"use strict";function i(t){return Array.isArray(t)}s.d(e,{k(){return i}})},67749(t,e,s){"use strict";function i(t){return"boolean"==typeof t}s.d(e,{j(){return i}})},32756(t,e,s){"use strict";s.d(e,{L(){return o},X(){return r}});var i=s(42554);function r(t,e){return t===e||(0,i.P)(t)===(0,i.P)(e)}function o(t,e){return t===e}},42096(t,e,s){"use strict";function i(t){return"function"==typeof t}s.d(e,{m(){return i}})},77892(t,e,s){"use strict";s.d(e,{Z(){return r}});var i=s(42096);function r(t){return!!(t&&t instanceof Object&&(0,i.m)(t.constructor)&&("undefined"!=typeof Jodit&&t instanceof Jodit||t.isJodit))}},37204(t,e,s){"use strict";s.d(e,{_(){return o}});var i=s(24263),r=s(86893);function o(t){return i.i.isNode(t)&&i.i.isTag(t,"span")&&t.hasAttribute("data-"+r.MARKER_CLASS)}},28069(t,e,s){"use strict";function i(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(t+""))}s.d(e,{Q(){return i}})},61817(t,e,s){"use strict";function i(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}s.d(e,{h(){return i}})},57649(t,e,s){"use strict";s.d(e,{k(){return r}});var i=s(24421);function r(t){if((0,i.H)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},79736(t,e,s){"use strict";s.d(e,{P(){return r}});var i=s(85994);function r(t){return!(!t||"object"!=typeof t||t.nodeType||(0,i.F)(t)||t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},26335(t,e,s){"use strict";function i(t){return t&&"function"==typeof t.then}s.d(e,{t(){return i}})},24421(t,e,s){"use strict";s.d(e,{G(){return o},H(){return r}});var i=s(49781);function r(t){return"string"==typeof t}function o(t){return(0,i.k)(t)&&r(t[0])}},64350(t,e,s){"use strict";function i(t){if(t.includes(" "))return!1;if("undefined"!=typeof URL)try{const e=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(e.protocol)}catch(t){return!1}const e=document.createElement("a");return e.href=t,!!e.hostname}s.d(e,{P(){return i}})},96574(t,e,s){"use strict";s.d(e,{f(){return r}});var i=s(42096);function r(t){return!!(t&&t instanceof Object&&(0,i.m)(t.constructor)&&t.isView)}},24021(t,e,s){"use strict";function i(t){return null==t}s.d(e,{n(){return i}})},85994(t,e,s){"use strict";function i(t){return null!=t&&t===t.window}s.d(e,{F(){return i}})},13203(t,e,s){"use strict";s.d(e,{h(){return i}});const i=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);if(!e)return"#000000";const s=parseInt(e[2],10),i=parseInt(e[3],10);let r=(parseInt(e[4],10)|i<<8|s<<16).toString(16).toUpperCase();for(;6>r.length;)r="0"+r;return e[1]+"#"+r}},61354(t,e,s){"use strict";s.d(e,{h(){return i.h}});var i=s(13203)},69678(t,e,s){"use strict";s.d(e,{Zs(){return l},pQ(){return h},$_(){return d},hU(){return b},eV(){return v.e},nA(){return v.n},oN(){return g}});var i=s(24263),r=s(54188),o=s(33941),n=s(86893);function a(t){return t.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,((t,e,s)=>{switch(s.toLowerCase()){case"pt":return(1.328*parseFloat(e)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(e)).toFixed(0)+"px"}return t}))}function l(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 s="",l=[];try{const c=e.contentDocument||(e.contentWindow?e.contentWindow.document:null);if(c){c.open(),c.write(t),c.close();try{for(let t=0;c.styleSheets.length>t;t+=1){const e=c.styleSheets[t].cssRules;for(let t=0;e.length>t;t+=1)""!==e[t].selectorText&&(l=(0,r.$$)(e[t].selectorText,c.body),l.forEach((s=>{s.style.cssText=a(e[t].style.cssText+";"+s.style.cssText)})))}}catch(t){if(!n.IS_PROD)throw t}i.i.each(c.body,(t=>{if(i.i.isElement(t)){const e=t,s=e.getAttribute("style");s&&(e.style.cssText=a(s)),e.hasAttribute("style")&&!e.getAttribute("style")&&e.removeAttribute("style")}})),s=c.firstChild?(0,o.f)(c.body.innerHTML):""}}catch{}finally{i.i.safeRemove(e)}return s&&(t=s),(0,o.f)(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}var c=s(1853);function h(t){-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let e="";try{const s=document.createElement("div");s.innerHTML=t;const r=[];s.firstChild&&i.i.each(s,(t=>{if(t)switch(t.nodeType){case Node.ELEMENT_NODE:switch(t.nodeName){case"STYLE":case"LINK":case"META":r.push(t);break;case"W:SDT":case"W:SDTPR":case"FONT":i.i.unwrap(t);break;default:(0,c.q)(t.attributes).forEach((e=>{-1===["src","href","rel","content"].indexOf(e.name.toLowerCase())&&t.removeAttribute(e.name)}))}break;case Node.TEXT_NODE:break;default:r.push(t)}})),i.i.safeRemove.apply(null,r),e=s.innerHTML}catch(t){}return e&&(t=e),(t=t.split(/(\n)/).filter(o.f).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}function d(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}var u=s(24421),p=s(76502);const f=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),m=new Set(["script","style"]);function g(t,e=document,s=null){const r=e.createElement("div");return(0,u.H)(t)?r.innerHTML=t:r.appendChild(t),(0,p.$$)("*",r).forEach((t=>{const r=t.parentNode;if(!r)return;if(s&&i.i.isTag(t,s)){const r=t.nodeName.toLowerCase(),o=i.i.isTag(t,["br","hr","input"])?`%%%jodit-single-${r}%%%`:`%%%jodit-${r}%%%${g(t.innerHTML,e,s)}%%%/jodit-${r}%%%`;return i.i.before(t,e.createTextNode(o)),void i.i.safeRemove(t)}if(i.i.isTag(t,m))return void i.i.safeRemove(t);if(!i.i.isTag(t,f))return;const o=t.nextSibling;i.i.isText(o)&&/^\s/.test(o.nodeValue||"")||o&&r.insertBefore(e.createTextNode(" "),o)})),(0,o.f)(r.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,((t,e,s,i)=>`<${e?"/":""}${i}>`))}var v=s(67128);function b(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}},67128(t,e,s){"use strict";s.d(e,{e(){return o},n(){return n}});var i=s(76502),r=s(24263);function o(t,e){(r.i.isElement(t)||r.i.isFragment(t))&&(e.removeOnError&&(n(t),(0,i.$$)("[onerror]",t).forEach((t=>n(t,e)))),e.safeJavaScriptLink&&(n(t),(0,i.$$)('a[href^="javascript"]',t).forEach((t=>n(t,e)))))}function n(t,{safeJavaScriptLink:e,removeOnError:s}={safeJavaScriptLink:!0,removeOnError:!0}){if(!r.i.isElement(t))return!1;let o=!1;s&&t.hasAttribute("onerror")&&((0,i.attr)(t,"onerror",null),o=!0);const n=t.getAttribute("href");return e&&n&&0===n.trim().indexOf("javascript")&&((0,i.attr)(t,"href",location.protocol+"//"+n),o=!0),o}},40332(t,e,s){"use strict";s.r(e),s.d(e,{CamelCaseToKebabCase(){return p.gP},NUMBER_FIELDS_REG(){return d.DO},applyStyles(){return h.Zs},asArray(){return n._2},camelCase(){return p.eV},cleanFromWord(){return h.pQ},clearTimeout(){return a.g},colorToHex(){return c.h},fuzzySearchIndex(){return p.Qy},getContentWidth(){return u.FK},getScrollParent(){return u.rP},hasBrowserColorPicker(){return l.EO},hasContainer(){return l.Zt},htmlspecialchars(){return h.$_},i18n(){return p.ag},innerWidth(){return u.x9},isArray(){return l.kJ},isBoolean(){return l.jn},isDestructable(){return l.Z$},isEqual(){return l.Xy},isFastEqual(){return l.LP},isFunction(){return l.mf},isHTML(){return l.FP},isHtmlFromWord(){return l.I4},isInitable(){return l.Gu},isInt(){return l.GN},isJoditObject(){return l.Zu},isLicense(){return l.A1},isMarker(){return l._V},isNativeFunction(){return l.QC},isNumber(){return l.hj},isNumeric(){return l.kE},isPlainObject(){return l.PO},isPromise(){return l.tI},isSet(){return l.DM},isString(){return l.HD},isStringArray(){return l.GI},isURL(){return l.PX},isValidName(){return l.r1},isViewObject(){return l.f2},isVoid(){return l.nj},isWindow(){return l.FJ},kebabCase(){return p.GL},nl2br(){return h.hU},normalizeColor(){return d.ut},normalizeCssNumericValue(){return d.xI},normalizeCssValue(){return d.Zh},normalizeKeyAliases(){return d.T2},normalizeLicense(){return d.Pd},normalizePath(){return d.AH},normalizeRelativePath(){return d.Jf},normalizeSize(){return d.aC},normalizeUrl(){return d.D5},offset(){return u.cv},position(){return u.eL},safeHTML(){return h.eV},sanitizeHTMLElement(){return h.nA},setTimeout(){return a.i},size(){return u.dp},splitArray(){return n.C1},sprintf(){return p.gB},stringify(){return p.Pz},stripTags(){return h.oN},toArray(){return n.qo},trim(){return p.fy},trimInv(){return p.as},ucfirst(){return p.Ps}});var i=s(76502),r={};for(var o in i)"default"!==o&&(r[o]=(t=>i[t]).bind(0,o));s.d(e,r);var n=s(12557),a=s(4696),l=s(1243),c=s(61354),h=s(69678),d=s(46361),u=s(36727),p=s(89170)},46361(t,e,s){"use strict";s.d(e,{DO(){return d.DO},ut(){return p},xI(){return d.xI},Zh(){return d.Zh},T2(){return o},Pd(){return n},AH(){return a},Jf(){return l},aC(){return c},D5(){return h}});var i=s(33941),r=s(86893);function o(t){const e={},s={meta:1,ctrl:2,control:2,alt:3,shift:4};return t.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map((t=>(0,i.f)(t.toLowerCase()))).map((t=>r.KEY_ALIASES[t]||t)).sort(((t,e)=>s[t]&&!s[e]?-1:!s[t]&&s[e]?1:s[t]&&s[e]?s[t]-s[e]:t>e?1:-1)).filter((t=>!e[t]&&""!==t&&(e[t]=!0))).join("+")}const n=(t,e=8)=>{const s=[];for(;t.length;)s.push(t.substr(0,e)),t=t.substr(e);return s[1]=s[1].replace(/./g,"*"),s[2]=s[2].replace(/./g,"*"),s.join("-")},a=(...t)=>t.filter((t=>(0,i.f)(t).length)).map(((e,s)=>(e=e.replace(/([^:])[\\/]+/g,"$1/"),s&&(e=e.replace(/^\//,"")),s!==t.length-1&&(e=e.replace(/\/$/,"")),e))).join("/"),l=t=>t.split("/").reduce(((t,e)=>{switch(e){case"":case".":break;case"..":t.pop();break;default:t.push(e)}return t}),[]).join("/")+(t.endsWith("/")?"/":""),c=t=>/^[0-9]+$/.test(""+t)?t+"px":""+t,h=(...t)=>t.filter((t=>t.length)).map((t=>t.replace(/\/$/,""))).join("/").replace(/([^:])[\\/]+/g,"$1/");var d=s(49353),u=s(13203);const p=t=>{const e=["#"];let s=(0,u.h)(t);if(!s)return!1;if(s=(0,i.f)(s.toUpperCase()),s=s.substring(1),3===s.length){for(let t=0;3>t;t+=1)e.push(s[t]),e.push(s[t]);return e.join("")}return s.length>6&&(s=s.slice(0,6)),"#"+s}},49353(t,e,s){"use strict";s.d(e,{DO(){return a},Zh(){return c},xI(){return l}});var i=s(57649),r=s(11278),o=s(13203),n=s(24021);const a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(t,e){return!(0,n.n)(e)&&a.test(t)&&(0,i.k)(""+e)?parseInt(""+e,10)+"px":e}function c(t,e){if("font-weight"===(0,r.G)(t)){switch((""+e).toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,i.k)(e)?Number(e):e}return/color/i.test(t)&&/^rgb/i.test(""+e)&&(0,o.h)(""+e)||e}},36727(t,e,s){"use strict";s.d(e,{FK(){return i},rP(){return n},x9(){return a},cv(){return l},eL(){return c.F},dp(){return h.d}});const i=(t,e)=>{const s=t=>parseInt(t,10),i=e.getComputedStyle(t);return t.offsetWidth-s(i.getPropertyValue("padding-left")||"0")-s(i.getPropertyValue("padding-right")||"0")};var r=s(76502),o=s(24263);function n(t){if(!t)return null;const e=o.i.isHTMLElement(t),s=e&&(0,r.css)(t,"overflowY");return e&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:n(t.parentNode)||document.scrollingElement||document.body}const a=(t,e)=>{const s=e.getComputedStyle(t);let i=t.clientWidth;return i-=parseFloat(s.paddingLeft||"0")+parseFloat(s.paddingRight||"0"),i},l=(t,e,s,i=!1)=>{let r;try{r=t.getBoundingClientRect()}catch(t){r={top:0,bottom:0,left:0,right:0,width:0,height:0}}const o=s.body,n=s.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},a=s.defaultView||s.parentWindow,c=a.pageYOffset||n.scrollTop||o.scrollTop,h=a.pageXOffset||n.scrollLeft||o.scrollLeft,d=n.clientTop||o.clientTop||0,u=n.clientLeft||o.clientLeft||0;let p,f;const m=e.iframe;if(!i&&e&&e.options&&e.o.iframe&&m){const{top:t,left:s}=l(m,e,e.od,!0);p=r.top+t,f=r.left+s}else p=r.top+c-d,f=r.left+h-u;return{top:Math.round(p),left:Math.round(f),width:r.width,height:r.height}};var c=s(81710),h=s(16492)},16492(t,e,s){"use strict";s.d(e,{d(){return r}});var i=s(1243);function r(t){return(0,i.HD)(t)||(0,i.kJ)(t)?t.length:(0,i.PO)(t)?Object.keys(t).length:0}},81710(t,e,s){"use strict";s.d(e,{F(){return r}});var i=s(77892);function r(t,e,s=!1){const o=t.getBoundingClientRect();let n=o.left,a=o.top;if((0,i.Z)(e)&&e.iframe&&e.ed.body.contains(t)&&!s){const{left:t,top:s}=r(e.iframe,e,!0);n+=t,a+=s}return{left:Math.round(n),top:Math.round(a),width:Math.round(t.offsetWidth),height:Math.round(t.offsetHeight)}}},26596(t,e,s){"use strict";s.d(e,{e(){return i}});const i=t=>t.replace(/([-_])(.)/g,((t,e,s)=>s.toUpperCase()))},93163(t,e,s){"use strict";s.d(e,{Q(){return r}});var i=s(86893);function r(t,e,s=0,r=1){let o=0,n=0,a=-1,l=0,c=0;for(n=s;t.length>o&&e.length>n;)t[o].toLowerCase()===e[n].toLowerCase()?(o++,l++,c=0,-1===a&&(a=n)):o>0&&(r>c||e[n]===i.INVISIBLE_SPACE?(c++,l++):(o=0,a=-1,l=0,c=0,n--)),n++;return o===t.length?[a,l]:[-1,0]}},89170(t,e,s){"use strict";s.d(e,{gP(){return u.g},eV(){return i.e},Qy(){return r.Q},ag(){return d},GL(){return u.G},gB(){return h},Pz(){return p.P},fy(){return f.f},as(){return f.a},Ps(){return l}});var i=s(26596),r=s(93163),o=s(93166),n=s(76502),a=s(24421);function l(t){return t.length?t[0].toUpperCase()+t.substr(1):""}var c=s(86893);const h=(t,e)=>{if(!e||!e.length)return t;const s=/%([sd])/g;let i=s.exec(t),r=t,o=0;for(;i&&void 0!==e[o];)r=r.replace(i[0],""+e[o]),o+=1,i=s.exec(t);return r};function d(t,e,s){if(!(0,a.H)(t))throw(0,n.error)("i18n: Need string in first argument");if(!t.length)return t;const i=!!s?.debugLanguage;let r={};const d=t=>e&&e.length?h(t,e):t,u=(0,n.defaultLanguage)(o.D.defaultOptions.language,o.D.defaultOptions.language),p=(0,n.defaultLanguage)(s?.language,u),f=e=>{if(!e)return;if((0,a.H)(e[t]))return d(e[t]);const s=t.toLowerCase();if((0,a.H)(e[s]))return d(e[s]);const i=l(t);return(0,a.H)(e[i])?d(e[i]):void 0};void 0!==c.lang[p]?r=c.lang[p]:i||(r=void 0!==c.lang[u]?c.lang[u]:c.lang.en);const m=s?.i18n;if(m&&m[p]){const t=f(m[p]);if(t)return t}return f(r)||(!i&&c.lang.en&&(0,a.H)(c.lang.en[t])&&c.lang.en[t]?d(c.lang.en[t]):i?"{"+t+"}":d(t))}var u=s(11278),p=s(42554),f=s(33941)},11278(t,e,s){"use strict";s.d(e,{G(){return i},g(){return r}});const i=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),r=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},42554(t,e,s){"use strict";function i(t,e={}){if("object"!=typeof t)return t+"";const s=new Set(e.excludeKeys),i=new WeakMap;return JSON.stringify(t,((t,e)=>{if(!s.has(t)){if("object"==typeof e&&null!=e){if(i.get(e))return"[refObject]";i.set(e,!0)}return e}}),e.prettify)}s.d(e,{P(){return i}})},33941(t,e,s){"use strict";s.d(e,{a(){return o},f(){return r}});var i=s(86893);function r(t){return t.replace((0,i.SPACE_REG_EXP_END)(),"").replace((0,i.SPACE_REG_EXP_START)(),"")}function o(t){return t.replace((0,i.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,i.INVISIBLE_SPACE_REG_EXP_START)(),"")}},60303(t,e,s){"use strict";s.d(e,{E3(){return a},wL(){return n},zC(){return o}});var i=s(64968),r=s(26911);function o(t,e){e&&"normal"!==e?"center"!==e?((0,r.i)(t,"float",e),(0,r.b)(t)):(0,r.i)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.i)(t,"float")&&-1!==["right","left"].indexOf((""+(0,r.i)(t,"float")).toLowerCase())&&(0,r.i)(t,"float",""),(0,r.b)(t))}function n(t){i.i.each(t,(t=>{i.i.isHTMLElement(t)&&t.style.textAlign&&(t.style.textAlign="",t.style.cssText.trim().length||t.removeAttribute("style"))}))}function a(t,e){if(i.i.isNode(e)&&i.i.isElement(e))switch(n(e),t.toLowerCase()){case"justifyfull":e.style.textAlign="justify";break;case"justifyright":e.style.textAlign="right";break;case"justifyleft":e.style.textAlign="left";break;case"justifycenter":e.style.textAlign="center"}}},62462(t,e,s){"use strict";s.d(e,{GX(){return u},JL(){return c},Nf(){return h},uR(){return l},wY(){return d}});var i=s(48240),r=s(42096),o=s(24421);const n=new Map,a=t=>async(e,s)=>{if(n.has(s))return n.get(s);const i=t(e,s);return n.set(s,i),i},l=(t,e,s)=>{const o=t.c.element("script");return o.type="text/javascript",o.async=!0,(0,r.m)(s)&&!t.isInDestruct&&t.e.on(o,"load",s),o.src||(o.src=(0,i.W)(e)),t.od.body.appendChild(o),{callback:s,element:o}},c=a(((t,e)=>new Promise(((s,i)=>{if(t.isInDestruct)return;const{element:r}=l(t,e,s);!t.isInDestruct&&t.e.on(r,"error",i)})))),h=a(((t,e)=>new Promise(((s,r)=>{if(t.isInDestruct)return;const o=t.c.element("link");o.rel="stylesheet",o.media="all",o.crossOrigin="anonymous",!t.isInDestruct&&t.e.on(o,"load",(()=>s(o))).on(o,"error",r),o.href=(0,i.W)(e),t.o.shadowRoot?t.o.shadowRoot.appendChild(o):t.od.body.appendChild(o)})))),d=(t,e,s=0)=>(0,o.H)(e[s])?c(t,e[s]).then((()=>d(t,e,s+1))):Promise.resolve(),u=(t,e,s=0)=>(0,o.H)(e[s])?h(t,e[s]).then((()=>u(t,e,s+1))):Promise.resolve()},36467(t,e,s){"use strict";s.d(e,{L(){return n}});var i=s(1243),r=s(11278),o=s(26911);function n(t,e,s){if(!t||!(0,i.mf)(t.getAttribute))return null;if(!(0,i.HD)(e))return Object.keys(e).forEach((s=>{const r=e[s];(0,i.PO)(r)&&"style"===s?(0,o.i)(t,r):("className"===s&&(s="class"),n(t,s,r))})),null;let a=(0,r.g)(e);if(/^-/.test(a)){const e=n(t,"data"+a);if(e)return e;a=a.substr(1)}if(void 0!==s){if(null!=s)return t.setAttribute(a,""+s),""+s;t.hasAttribute(a)&&t.removeAttribute(a)}return t.getAttribute(a)}},37682(t,e,s){"use strict";s.d(e,{X(){return i}});const i=t=>{const e=navigator.userAgent.toLowerCase(),s=/(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?s[2]:"webkit"===t?"chrome"===s[1]||"webkit"===s[1]:"ff"===t?"firefox"===s[1]:"msie"===t?"trident"===s[1]||"msie"===s[1]:s[1]===t}},71567(t,e,s){"use strict";s.d(e,{X(){return r}});var i=s(79736);const r=(t,e)=>{const s=[],o=encodeURIComponent;for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const a=e?e+"["+n+"]":n,l=t[n];s.push((0,i.P)(l)?r(l,a):o(a)+"="+o(l))}return s.join("&")}},48240(t,e,s){"use strict";s.d(e,{W(){return i}});const i=t=>("file:"===window.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},64981(t,e,s){"use strict";s.d(e,{I(){return h},t(){return d}});var i=s(7935),r=s(49781),o=s(79736),n=s(24421),a=s(24021),l=s(93166),c=s(67309);function h(t,e,s=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;const c=l.D.defaultOptions;if((0,n.H)(t.preset)){if(void 0!==c.presets[t.preset]){const e=c.presets[t.preset];Object.keys(e).forEach((s=>{(0,a.n)(t[s])&&(t[s]=e[s])}))}delete t.preset}const d={};return Object.keys(t).forEach((n=>{const a=t[n],l=e?e[n]:null;d[n]=(0,o.P)(a)&&(0,o.P)(l)&&!(0,i.J8)(a)?h(a,l,s+1):0!==s&&(0,r.k)(a)&&!(0,i.J8)(a)&&(0,r.k)(l)?[...a,...l.slice(a.length)]:a})),Object.setPrototypeOf(d,e),d}function d(t){return(0,c.XP)(t,!1).reduce(((e,s)=>(e[s]=t[s],e)),{})}},42051(t,e,s){"use strict";s.d(e,{U(){return o}});var i=s(64350),r=s(67285);const o=(t,e=400,s=345)=>{if(!(0,i.P)(t))return t;const o=document.createElement("a"),n=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;o.href=t,e||(e=400),s||(s=345);const a=o.protocol||"";switch(o.hostname){case"www.vimeo.com":case"vimeo.com":return n.test(t)?t.replace(n,'<iframe width="'+e+'" height="'+s+'" src="'+a+'//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 i=o.search?(0,r.m)(o.search):{v:o.pathname.substr(1)};return i.v?'<iframe width="'+e+'" height="'+s+'" src="'+a+"//www.youtube.com/embed/"+i.v+'" frameborder="0" allowfullscreen></iframe>':t}}return t}},26911(t,e,s){"use strict";s.d(e,{b(){return c},i(){return l}});var i=s(79736),r=s(67749),o=s(49353),n=s(26596),a=s(11278);function l(t,e,s,c=!1){if((0,r.j)(s)&&(c=s,s=void 0),(0,i.P)(e)||void 0!==s){const r=(t,e,s)=>{void 0===(s=(0,o.xI)(e,s))||null!=s&&l(t,e,!0)===(0,o.Zh)(e,s)||(t.style[e]=s)};if((0,i.P)(e)){const s=Object.keys(e);for(let i=0;s.length>i;i+=1)r(t,(0,n.e)(s[i]),e[s[i]])}else r(t,(0,n.e)(e),s);return""}const h=(0,a.G)(e),d=t.ownerDocument||document,u=!!d&&(d.defaultView||d.parentWindow),p=t.style[e];let f="";return void 0!==p&&""!==p?f=p:u&&!c&&(f=u.getComputedStyle(t).getPropertyValue(h)),o.DO.test(e)&&/^[-+]?[0-9.]+px$/.test(""+f)&&(f=parseInt(""+f,10)),(0,o.Zh)(e,f)}const c=t=>{"block"===l(t,"display")&&l(t,"display","");const{style:e}=t;"auto"===e.marginLeft&&"auto"===e.marginRight&&(e.marginLeft="",e.marginRight="")}},2522(t,e,s){"use strict";s.d(e,{k(){return i}});const i=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}},63122(t,e,s){"use strict";s.d(e,{q(){return o}});var i=s(96574);const r=new WeakMap,o=(t,e,s)=>{let o=r.get(t);if(!o){o={},r.set(t,o);let e=null;(0,i.f)(t.j)&&(e=t.j.e),(0,i.f)(t)&&(e=t.e),e&&e.on("beforeDestruct",(()=>{r.delete(t)}))}return void 0===s?o[e]:(o[e]=s,s)}},93351(t,e,s){"use strict";s.d(e,{X(){return r}});var i=s(24421);const r=(t,e="en")=>"auto"!==t&&(0,i.H)(t)?t:document.documentElement&&document.documentElement.lang?document.documentElement.lang:navigator.language?navigator.language.substring(0,2):e},41579(t,e,s){"use strict";s.d(e,{JG(){return a},PQ(){return l},YM(){return n},ZI(){return o},vU(){return r}});var i=s(1887);function r(t){return new TypeError(t)}function o(t){return new i.hY(t)}function n(t){return new i.tW(t)}function a(t){return new i._L(t)}function l(t){return t instanceof i._L}},1887(t,e,s){"use strict";s.d(e,{_L(){return i},hY(){return r},tW(){return o}});class i extends Error{constructor(t){super(t),Object.setPrototypeOf(this,i.prototype)}}class r extends Error{constructor(t){super(t),Object.setPrototypeOf(this,r.prototype)}}class o extends TypeError{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},56964(t,e,s){"use strict";s.d(e,{JG(){return i.JG},PQ(){return i.PQ},YM(){return i.YM},ZI(){return i.ZI},_L(){return r._L},hY(){return r.hY},tW(){return r.tW},vU(){return i.vU}});var i=s(41579),r=s(1887)},7935(t,e,s){"use strict";s.d(e,{J8(){return r},V8(){return n},XT(){return o}});var i=s(42554);function r(t){return t&&t.isAtom}function o(t){return Object.defineProperty(t,"isAtom",{enumerable:!1,value:!0,configurable:!1}),t}function n(t){return JSON.parse((0,i.P)(t))}},87247(t,e,s){"use strict";s.d(e,{g(){return o},k(){return r}});var i=s(42096);const r=new Map,o=t=>{if((0,i.m)(t.className))return t.className();const e=t.constructor?.originalConstructor||t.constructor;if(r.has(e))return r.get(e);if(e.name)return e.name;const s=RegExp(/^\s*function\s*(\S*)\s*\(/),o=(""+e).match(s);return o?o[1]:""}},69384(t,e,s){"use strict";s.d(e,{U(){return o}});var i=s(24421),r=s(24021);function o(t,e){if(!(0,i.H)(t)||!t.length)return null;const s=t.split(".");let o=e;try{for(const t of s){if((0,r.n)(o[t]))return null;o=o[t]}}catch{return null}return(0,r.n)(o)?null:o}},6102(t,e,s){"use strict";s.d(e,{w(){return i}});const i=t=>{if(/^[0-9.]+$/.test(""+t))return parseFloat(t);const e=t.substr(-2,2).toUpperCase(),s=["KB","MB","GB","TB"],i=parseFloat(t.substr(0,t.length-2));return-1!==s.indexOf(e)?i*Math.pow(1024,s.indexOf(e)+1):parseInt(t,10)}},76502(t,e,s){"use strict";s.r(e),s.d(e,{$$(){return k.$$},AbortError(){return b._L},ConfigFlatten(){return u.t},ConfigProto(){return u.I},ConnectionError(){return b.hY},LimitedStack(){return L.l},OptionsError(){return b.tW},abort(){return b.JG},alignElement(){return i.E3},appendScript(){return o.uR},appendScriptAsync(){return o.JL},appendStyleAsync(){return o.Nf},attr(){return r.L},browser(){return c.X},buildQuery(){return h.X},call(){return M.RE},callPromise(){return M.C6},clearAlign(){return i.wL},clearCenterAlign(){return f.b},cns(){return S.H},completeUrl(){return d.W},connection(){return b.ZI},convertMediaUrlToVideoEmbed(){return p.U},css(){return f.i},cssPath(){return k.iN},ctrlKey(){return m.k},dataBind(){return g.q},defaultLanguage(){return v.X},error(){return b.vU},fastClone(){return y.V8},get(){return w.U},getClassName(){return _.g},getDataTransfer(){return M.qu},getXPathByElement(){return k.BR},hAlignElement(){return i.zC},humanSizeToBytes(){return C.w},inView(){return I.j},isAbort(){return b.PQ},isAtom(){return y.J8},keepNames(){return _.k},keys(){return M.XP},loadImage(){return M.po},loadNext(){return o.wY},loadNextStyle(){return o.GX},markAsAtomic(){return y.XT},markDeprecated(){return S.Q},markOwner(){return M.MN},memorizeExec(){return M.u3},options(){return b.YM},parseQuery(){return E.m},previewBox(){return x.$},refs(){return k.xL},reset(){return j.m},resolveElement(){return k.W2},scrollIntoViewIfNeeded(){return I.n},set(){return T.t},val(){return P.P}});var i=s(60303),r=s(36467),o=s(62462),n=s(52378),a={};for(var l in n)0>["default","alignElement","clearAlign","hAlignElement","attr","appendScript","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(l)&&(a[l]=(t=>n[t]).bind(0,l));s.d(e,a);var c=s(37682),h=s(71567),d=s(48240),u=s(64981),p=s(42051),f=s(26911),m=s(2522),g=s(63122),v=s(93351),b=s(56964),y=s(7935),w=s(69384),_=s(87247),C=s(6102),S=s(47580),E=s(67285),x=s(21498),j=s(80861),I=s(9005),k=s(54188),T=s(21518),L=s(37228),M=s(67309),P=s(22362)},47580(t,e,s){"use strict";s.d(e,{H(){return i},Q(){return r}});const i=console;function r(t,e=[""],s=null){return(...r)=>(i.warn(`Method "${e[0]}" deprecated.`+(e[1]?` Use "${e[1]}" instead`:"")),t.call(s,...r))}},67285(t,e,s){"use strict";s.d(e,{m(){return i}});const i=t=>{const e={},s=t.substring(1).split("&");for(let t=0;s.length>t;t+=1){const i=s[t].split("=");e[decodeURIComponent(i[0])]=decodeURIComponent(i[1]||"")}return e}},21498(t,e,s){"use strict";s.d(e,{$(){return l}});var i=s(24421),r=s(24263),o=s(26911),n=s(36467),a=s(54188);function l(t,e,s="px",l=null){const c=[],h=((t,e)=>{const s=[];try{(0,a.$$)("img",t.editor).forEach((i=>{const o=[(0,n.L)(i,"width"),(0,n.L)(i,"height"),i.src];(0,n.L)(i,{width:i.offsetWidth+e,height:i.offsetHeight+e});const a=t.createInside.a();t.ed.body.appendChild(a),a.href=i.src,i.src=a.href,r.i.safeRemove(a),s.push((()=>{i.src=o[2]??"",(0,n.L)(i,{width:o[0]||null,height:o[1]||null})}))}))}catch(t){throw s.forEach((t=>t())),s.length=0,t}return s})(t,s);try{const a=t.e.fire("beforePreviewBox",e,s);if(null!=a)return a;let h=t.c.div("jodit__preview-box jodit-context");l&&l.appendChild(h),(0,o.i)(h,{position:"relative",padding:16});const d=t.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${t.i18n("Empty")}</div>`;if(t.iframe){const e=t.create.element("iframe");(0,o.i)(e,{minWidth:800,minHeight:600,border:0}),h.appendChild(e);const s=e.contentWindow;if(s&&(t.e.fire("generateDocumentStructure.iframe",s.document,t),h=s.document.body,"function"==typeof ResizeObserver)){let i=!1;const r=s.document.body,o=new ResizeObserver(t.async.debounce((()=>{o.unobserve(r),e.style.height=r.offsetHeight+20+"px",t.async.requestAnimationFrame((()=>{!i&&o.observe(r)}))}),100)),n=()=>{i=!0,o.unobserve(r),o.disconnect(),t.e.off("beforeDestruct",n)};c.push(n),t.e.on("beforeDestruct",n)}}else(0,o.i)(h,{minWidth:1024,minHeight:600,border:0});const u=(e,s)=>{const o=(0,i.H)(s)?t.c.div():s;(0,i.H)(s)&&(o.innerHTML=s);for(let t=0;o.childNodes.length>t;t+=1){const s=o.childNodes[t];if(r.i.isElement(s)){const t=e.ownerDocument.createElement(s.nodeName);for(let e=0;s.attributes.length>e;e+=1)(0,n.L)(t,s.attributes[e].nodeName,s.attributes[e].nodeValue);0===s.childNodes.length||r.i.isTag(s,["table"])?"SCRIPT"===s.nodeName?s.textContent&&(t.textContent=s.textContent):s.innerHTML&&(t.innerHTML=s.innerHTML):u(t,s);try{e.appendChild(t)}catch{}}else try{e.appendChild(s.cloneNode(!0))}catch{}}};return u(h,d),t.e.fire("afterPreviewBox",h),[h,()=>{c.forEach((t=>t()))}]}finally{h.forEach((t=>t()))}}},80861(t,e,s){"use strict";s.d(e,{m(){return a}});var i=s(69384),r=s(42096),o=s(86893);const n={},a=t=>{if(!(t in n)){const e=document.createElement("iframe");try{if(e.src="about:blank",document.body.appendChild(e),!e.contentWindow)return null;const s=(0,i.U)(t,e.contentWindow),o=(0,i.U)(t.split(".").slice(0,-1).join("."),e.contentWindow);(0,r.m)(s)&&(n[t]=s.bind(o))}catch(t){if(!o.IS_PROD)throw t}finally{e.parentNode?.removeChild(e)}}return n[t]??null}},9005(t,e,s){"use strict";s.d(e,{j(){return r},n(){return o}});var i=s(24263);const r=(t,e,s)=>{let i=t.getBoundingClientRect(),r=t;const o=i.top,n=i.height;do{if(r&&r.parentNode){if(r=r.parentNode,i=r.getBoundingClientRect(),o>i.bottom)return!1;if(i.top>=o+n)return!1}}while(r&&r!==e&&r.parentNode);return(s.documentElement&&s.documentElement.clientHeight||0)>=o};function o(t,e,s){i.i.isHTMLElement(t)&&!r(t,e,s)&&(e.clientHeight!==e.scrollHeight&&(e.scrollTop=t.offsetTop),r(t,e,s)||t.scrollIntoView())}},54188(t,e,s){"use strict";s.d(e,{$$(){return u},BR(){return p},W2(){return g},iN(){return m},xL(){return f}});var i=s(86893),r=s(24421),o=s(76502),n=s(24263),a=s(26596),l=s(1853),c=s(53929),h=s(45113);let d=1;function u(t,e){let s;if(i.IS_ES_NEXT||!/:scope/.test(t)||!i.IS_IE||e&&e.nodeType===Node.DOCUMENT_NODE)s=e.querySelectorAll(t);else{const i=e.id,r=i||"_selector_id_"+(Math.random()+"").slice(2)+(d++,d);t=t.replace(/:scope/g,"#"+r),!i&&e.setAttribute("id",r),s=e.parentNode.querySelectorAll(t),i||e.removeAttribute("id")}return[].slice.call(s)}const p=(t,e)=>{if(!t||t.nodeType!==Node.ELEMENT_NODE)return"";if(!t.parentNode||e===t)return"";if(t.id)return"//*[@id='"+t.id+"']";const s=[].filter.call(t.parentNode.childNodes,(e=>e.nodeName===t.nodeName));return p(t.parentNode,e)+"/"+t.nodeName.toLowerCase()+(s.length>1?"["+((0,l.q)(s).indexOf(t)+1)+"]":"")},f=t=>(h.w.isInstanceOf(t,c.u)&&(t=t.container),u("[ref],[data-ref]",t).reduce(((t,e)=>{const s=(0,o.attr)(e,"-ref");return s&&(0,r.H)(s)&&(t[(0,a.e)(s)]=e,t[s]=e),t}),{})),m=t=>{if(!n.i.isElement(t))return null;const e=[];let s=t;for(;s&&s.nodeType===Node.ELEMENT_NODE;){let t=s.nodeName.toLowerCase();if(s.id){t+="#"+s.id,e.unshift(t);break}{let e=s,i=1;do{e=e.previousElementSibling,e&&e.nodeName.toLowerCase()===t&&i++}while(e);t+=":nth-of-type("+i+")"}e.unshift(t),s=s.parentNode}return e.join(" > ")};function g(t,e){let s=t;if((0,r.H)(t))try{s=e.querySelector(t)}catch{throw(0,o.error)('String "'+t+'" should be valid HTML selector')}if(!s||"object"!=typeof s||!n.i.isElement(s)||!s.cloneNode)throw(0,o.error)('Element "'+t+'" should be string or HTMLElement instance');return s}},21518(t,e,s){"use strict";s.d(e,{t(){return a}});var i=s(24421),r=s(57649),o=s(49781),n=s(79736);function a(t,e,s){if(!(0,i.H)(t)||!t.length)return;const a=t.split(".");let l=s,c=a[0];for(let t=0;a.length-1>t;t+=1)c=a[t],(0,o.k)(l[c])||(0,n.P)(l[c])||(l[c]=(0,r.k)(a[t+1])?[]:{}),l=l[c];l&&(l[a[a.length-1]]=e)}},37228(t,e,s){"use strict";s.d(e,{l(){return i}});class i{constructor(t){this.limit=t,this.stack=[]}push(t){return this.stack.push(t),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(t){return this.stack.find(t)}}},67309(t,e,s){"use strict";s.d(e,{C6(){return c},MN(){return l},RE(){return a},XP(){return d},po(){return h},qu(){return p},u3(){return u}});var i=s(26335),r=s(24021),o=s(63122),n=s(36467);function a(t,...e){return t(...e)}function l(t,e){(0,n.L)(e,"data-editor_id",t.id),!e.component&&Object.defineProperty(e,"jodit",{value:t})}function c(t,e){return(0,i.t)(t)?t.finally(e):e()}const h=(t,e)=>e.async.promise(((s,i)=>{const r=new Image,o=()=>{e.e.off(r),i?.()},n=()=>{e.e.off(r),s(r)};e.e.one(r,"load",n).one(r,"error",o).one(r,"abort",o),r.src=t,r.complete&&n()})),d=(t,e=!0)=>{if(e)return Object.keys(t);const s=[];for(const e in t)s.push(e);return s},u=(t,e,{control:s},i)=>{const n="button"+s.command;let a=(s.args&&s.args[0])??(0,o.q)(t,n);if((0,r.n)(a))return!1;(0,o.q)(t,n,a),i&&(a=i(a)),t.execCommand(s.command,!1,a??void 0)},p=t=>{if(t.clipboardData)return t.clipboardData;try{return t.dataTransfer||new DataTransfer}catch{return null}}},22362(t,e,s){"use strict";s.d(e,{P(){return i}});const i=(t,e,s)=>{const i=t.querySelector(e);return i?(s&&(i.value=s),i.value):""}},57549(t,e,s){"use strict";s.d(e,{S(){return i.S}}),s(90262);var i=s(85605)},90262(t,e,s){"use strict";s.d(e,{h(){return f}});var i=s(1243),r=s(12557),o=s(17332),n=s(62462),a=s(11278);function l(t){return(0,a.G)(t).toLowerCase()}var c=s(86893);const h=new Set;function d(t,e,s){return e=(0,a.G)(e),t.basePath+"plugins/"+e+"/"+e+"."+(s?"js":"css")}var u=s(42096);function p(t,e,s,r,o){const a=s.requires;if(a?.length&&!a.every((t=>r.has(t))))return o[e]=s,!1;if((0,i.Gu)(s))try{s.init(t)}catch(t){if(!c.IS_PROD)throw t}return r.add(e),delete o[e],s.hasStyle&&(async(t,e)=>{const s=d(t,e,!1);if(!h.has(s))return h.add(s),(0,n.Nf)(t,s)})(t,e).catch((t=>{})),!0}class f{constructor(){this.__items=new Map}add(t,e){this.__items.set(l(t),e),o.TB.fire(`plugin:${t}:ready`)}get(t){return this.__items.get(l(t))}remove(t){this.__items.delete(l(t))}__filter(t){const e=[];return this.__items.forEach(((s,i)=>{t&&!t.has(i)||e.push([i,s])})),e}__init(t){const{extrasList:e,disableList:s,filter:o}=(t=>({extrasList:t.o.extraPlugins.map((t=>(0,i.HD)(t)?{name:t}:t)),disableList:new Set((0,r.C1)(t.o.disablePlugins).map(l)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null}))(t),a=new Set,h={},f={};t.__plugins=f;const m=()=>{if(t.isInDestruct)return;let e=!1;this.__filter(o).forEach((([r,o])=>{if(s.has(r)||a.has(r)||h[r])return;const n=o?.requires;if(n&&(0,i.kJ)(n)&&n.some((t=>s.has(t))))return;e=!0;const l=((t,e)=>{try{try{return(0,u.m)(e)?new e(t):e}catch(s){if((0,u.m)(e)&&!e.prototype)return e(t)}}catch(t){if(!c.IS_PROD)throw t}return null})(t,o);if(!l)return a.add(r),void delete h[r];((t,e,s,i,r)=>{p(t,e,s,i,r)&&Object.keys(r).forEach((e=>{p(t,e,r[e],i,r)}))})(t,r,l,a,h),f[r]=l})),e&&t.e.fire("updatePlugins")};e&&e.length||((t,e,s,i)=>{try{const r=s.filter((e=>!t.has(l(e.name))));r.length&&((t,e,s)=>{e.map((e=>{const i=e.url||d(t,e.name,!0);return(0,n.JL)(t,i).then(s).catch((()=>null))}))})(e,r,i)}catch(t){if(!c.IS_PROD)throw t}})(this.__items,t,e,m),m(),((t,e)=>{t.e.on("beforeDestruct",(()=>{Object.keys(e).forEach((s=>{const r=e[s];(0,i.Z$)(r)&&r.destruct(t),delete e[s]})),delete t.__plugins}))})(t,f)}wait(t){return new Promise((e=>{if(this.get(t))return e();const s=()=>{e(),o.TB.off(`plugin:${t}:ready`,s)};o.TB.on(`plugin:${t}:ready`,s)}))}}},85605(t,e,s){"use strict";s.d(e,{S(){return a}});var i=s(20255),r=s(90549),o=s(68574),n=s(77892);class a extends r.Hr{className(){return""}constructor(t){super(t),this.requires=[],this.buttons=[],this.hasStyle=!1,t.e.on("afterPluginSystemInit",(()=>{(0,n.Z)(t)&&this.buttons?.forEach((e=>{t.registerButton(e)}))})).on("afterInit",(()=>{this.setStatus(r.n$.ready),this.afterInit(t)})).on("beforeDestruct",this.destruct)}init(t){}destruct(){if(this.isReady){this.setStatus(r.n$.beforeDestruct);const{j:t}=this;(0,n.Z)(t)&&this.buttons?.forEach((e=>{t?.unregisterButton(e)})),this.j?.events?.off("beforeDestruct",this.destruct),this.beforeDestruct(this.j),super.destruct()}}}(0,i.gn)([o.autobind],a.prototype,"destruct",null)},14089(t,e,s){"use strict";s.d(e,{F(){return r}});var i=s(1853);class r{getElm(t){return this.container.querySelector("."+this.getFullElName(t))}getElms(t){return(0,i.q)(this.container.querySelectorAll("."+this.getFullElName(t)))}}},41681(t,e,s){"use strict";s.d(e,{$(){return r}});var i=s(24021);class r{afterSetMod(t,e){}setMod(t,e,s){t=t.toLowerCase();const r=this.mods[t];if(r===e)return this;const o=`${this.componentName}_${t}_`,n=(s||this.container).classList;return null!=r&&n.remove(`${o}${(""+r).toLowerCase()}`),!(0,i.n)(e)&&""!==e&&n.add(`${o}${(""+e).toLowerCase()}`),this.mods[t]=e,this.afterSetMod(t,e),this}getMod(t){return this.mods[t]??null}}},53929(t,e,s){"use strict";s.d(e,{u(){return u}});var i,r=s(20255),o=s(90549),n=s(24263),a=s(41681),l=s(14089),c=s(24421),h=s(77904),d=s(70669);let u=i=class t extends o.Hr{get parentElement(){return this.__parentElement}set parentElement(t){this.__parentElement=t,t&&t.hookStatus("beforeDestruct",(()=>this.destruct())),this.updateParentElement(this)}bubble(t){let e=this.parentElement;for(;e;)t(e),e=e.parentElement;return this}updateParentElement(t){return this.__parentElement?.updateParentElement(t),this}get(t,e){return super.get(t,e)||this.getElm(t)}closest(t){const e="object"==typeof t?e=>e===t:e=>o.wA.isInstanceOf(e,t);let s=this.__parentElement;for(;s;){if(e(s))return s;s=!s.parentElement&&s.container.parentElement?i.closestElement(s.container.parentElement,i):s.parentElement}return null}static closestElement(t,e){const s=n.i.up(t,(t=>{if(t){const{component:s}=t;return s&&o.wA.isInstanceOf(s,e)}return!1}));return s?s?.component:null}update(){}appendTo(t){return t.appendChild(this.container),this}clearName(t){return t.replace(/[^a-zA-Z0-9]/g,"_")}render(t){return this.j.c.div(this.componentName)}createContainer(t){const e=this.render(t);if((0,c.H)(e)){const t=this.parseTemplate(e);return t.classList.add(this.componentName),t}return e}parseTemplate(t){return this.j.c.fromHTML(t.replace(/\*([^*]+?)\*/g,((t,e)=>h.J.get(e)||"")).replace(/&__/g,this.componentName+"__").replace(/~([^~]+?)~/g,((t,e)=>this.i18n(e))))}constructor(t,e){super(t),this.name="",this.__parentElement=null,this.mods={},this.container=this.createContainer(e),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}destruct(){return n.i.safeRemove(this.container),this.parentElement=null,super.destruct()}};u=i=(0,r.gn)([(0,d.s)(a.$,l.F)],u)},77904(t,e,s){"use strict";s.d(e,{J(){return o}});var i=s(26911),r=s(40332);s(86893);class o{static getIcon(t){return/<svg/i.test(t)?t:o.icons[t]||o.icons[t.replace(/-/g,"_")]||o.icons[t.replace(/_/g,"-")]||o.icons[(0,r.camelCase)(t)]||o.icons[(0,r.kebabCase)(t)]||o.icons[t.toLowerCase()]}static exists(t){return void 0!==this.getIcon(t)}static get(t,e="<span></span>"){return this.getIcon(t)||e}static set(t,e){return this.icons[t.replace("_","-")]=e,this}static makeIcon(t,e){if(!e)return;let s;const{name:r,iconURL:n,fill:a}=e,l=r.replace(/[^a-zA-Z0-9]/g,"_"),c=t.o.getIcon?.(r,l),h=`${r}${n}${a}${c??""}`;if(t.o.cache&&this.__cache.has(h))return this.__cache.get(h).cloneNode(!0);if(n)s=t.c.span(),(0,i.i)(s,"backgroundImage","url("+n.replace("{basePath}",t?.basePath||"")+")");else{const e=c||o.get(r,"")||t.o.extraIcons?.[r];e&&(s=t.c.fromHTML(e.trim()),/^<svg/i.test(r)||s.classList.add("jodit-icon_"+l))}return s&&(s.classList.add("jodit-icon"),s.style.fill=a,t.o.cache&&this.__cache.set(h,s.cloneNode(!0))),s}}o.icons={},o.__cache=new Map},89019(t,e,s){"use strict";s.r(e),s(61227),s(690),s(66622),s(69220),s(10444),Array.prototype.includes||(Array.prototype.includes=function(t){return this.indexOf(t)>-1}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");const s=Object(t);for(let t=1;arguments.length>t;t++){const e=arguments[t];if(null!=e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(s[t]=e[t])}return s},writable:!0,configurable:!0}),Array.prototype.find||(Array.prototype.find=function(t){return this.indexOf(t)>-1?t:void 0}),String.prototype.endsWith||(String.prototype.endsWith=function(t){return this[this.length-1]===t})},90544(t){t.exports.default={"Type something":"Start writing...",pencil:"Edit",Quadrate:"Square"}},75125(t){t.exports.default=["Type something","About Jodit","Jodit Editor","Jodit User's Guide","contains detailed help for using","For information about the license, please go to our website:","Buy full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.","Anchor","Open in new tab","Open 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","underline","strikethrough","indent","outdent","fullsize","shrink","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","Show all","Apply","Please fill out this field","Please enter a web address","Default","Circle","Dot","Quadrate","Find","Find Previous","Find Next","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected","Clean","Insert className","Press Alt for custom resizing"]},3125(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg>'},54209(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg>'},45394(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg>'},34953(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg>'},89529(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg>'},53315(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg>'},70600(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg>'},53523(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg>'},6582(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg>'},30770(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg>'},96181(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg>'},43208(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg>'},28218(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg>'},48872(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg>'},43574(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg>'},68707(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg>'},15806(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg>'},89371(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg>'},79031(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg>'},84209(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg>'},51416(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg>'},59940(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg>'},7764(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg>'},32108(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg>'},8223(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg>'},51382(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg>'},30863(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},89721(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},10147(t){t.exports='<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg>'},14165(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg>'},42516(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg>'},80554(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>'},10328(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>'},69187(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg>'},68315(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg>'},94484(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg>'},12722(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg>'},10530(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg>'},52401(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg>'},44931(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},29845(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},27526(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg>'},52390(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"/> </svg>'},28825(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"/> </svg>'},27681(t){t.exports='<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg>'},61097(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"/> </svg>'},31398(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg>'},1296(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg>'},18508(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg>'},97627(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg>'},39123(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},76331(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},52326(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>'},23689(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>'},99017(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg>'},271(t){t.exports='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg>'},25570(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg>'},20865(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg>'},29777(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg>'},49220(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg>'},32336(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg>'},23384(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg>'},85588(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg>'},76962(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},52614(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},78808(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg>'},36553(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg>'},48103(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg>'},4434(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg>'},55810(t){t.exports='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg>'},18375(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},60300(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg>'},71287(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg>'},39428(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg>'},92472(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg>'},60828(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg>'},86354(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg>'},52378(t){"use strict";t.exports={assert(){}}},45143(e){"use strict";e.exports=t}},i={};function r(t){var e=i[t];if(void 0!==e)return e.exports;var o=i[t]={exports:{}};return s[t].call(o.exports,o,o.exports,r),o.exports}r.m=s,e=[],r.O=(t,s,i,o)=>{if(!s){var n=1/0;for(h=0;e.length>h;h++){s=e[h][0],i=e[h][1],o=e[h][2];for(var a=!0,l=0;s.length>l;l++)(!1&o||n>=o)&&Object.keys(r.O).every((t=>r.O[t](s[l])))?s.splice(l--,1):(a=!1,n>o&&(n=o));if(a){e.splice(h--,1);var c=i();void 0!==c&&(t=c)}}return t}o=o||0;for(var h=e.length;h>0&&e[h-1][2]>o;h--)e[h]=e[h-1];e[h]=[s,i,o]},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var s in e)r.o(e,s)&&!r.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={670:0};r.O.j=e=>0===t[e];var e=(e,s)=>{var i,o,n=s[0],a=s[1],l=s[2],c=0;if(n.some((e=>0!==t[e]))){for(i in a)r.o(a,i)&&(r.m[i]=a[i]);if(l)var h=l(r)}for(e&&e(s);n.length>c;c++)r.o(t,o=n[c])&&t[o]&&t[o][0](),t[o]=0;return r.O(h)},s=self.webpackChunkjodit=self.webpackChunkjodit||[];s.forEach(e.bind(null,0)),s.push=e.bind(null,s.push.bind(s))})();var o={};return function(){"use strict";r.r(o),r.d(o,{CommitMode(){return Fa},Jodit(){return Jodit}});var t={};r.r(t),r.d(t,{required(){return pt},url(){return ft}});var e={};r.r(e),r.d(e,{Ajax(){return _},Alert(){return $t},Async(){return g.e},CommitStyle(){return xs},Component(){return C.wA},Confirm(){return Vt},ContextMenu(){return Q},Create(){return Yt},Dialog(){return Ht},Dom(){return X.i},EventEmitter(){return m.vp},EventHandlersStore(){return m.DG},Eventify(){return m.aN},FileBrowser(){return Pe},Helpers(){return v},History(){return Ae},Icon(){return M.J},ImageEditor(){return ge},LazyWalker(){return X.b},Plugin(){return Ut.S},PluginSystem(){return Bs.h},Popup(){return I},ProgressBar(){return kt},Prompt(){return Wt},Response(){return w},STATUSES(){return C.n$},Selection(){return js},Snapshot(){return ze},StatusBar(){return Is},Table(){return Ts},ToolbarButton(){return Rt},ToolbarCollection(){return zt},ToolbarContent(){return At},ToolbarEditorCollection(){return Dt},UIBlock(){return It},UIButton(){return V},UICheckbox(){return xt},UIElement(){return E.u},UIForm(){return _t},UIGroup(){return R},UIInput(){return vt},UIList(){return $},UIMessages(){return Lt},UISeparator(){return q},UITextArea(){return St},Uploader(){return qs},View(){return Pt},ViewComponent(){return C.Hr},ViewWithToolbar(){return Bt},defaultNameSpace(){return m.rO},isFileBrowserFilesItem(){return Ne},observable(){return m.LO}});var s={};r.r(s),r.d(s,{angle_down(){return Qs()},angle_left(){return ei()},angle_right(){return ii()},angle_up(){return oi()},bin(){return ai()},cancel(){return ci()},center(){return di()},check(){return pi()},chevron(){return mi()},dots(){return vi()},eye(){return yi()},file(){return _i()},folder(){return Si()},info_circle(){return xi()},left(){return Ii()},lock(){return Ti()},ok(){return Mi()},pencil(){return Ni()},plus(){return Di()},resize_handler(){return Ai()},right(){return Oi()},save(){return Hi()},settings(){return $i()},unlock(){return Vi()},update(){return Yi()},upload(){return Xi()},valign(){return Ji()}});var i={};r.r(i),r.d(i,{allowAttributes(){return zr},fillEmptyParagraph(){return Dr},removeEmptyTextNode(){return Ar},removeInvTextNodes(){return qr},replaceOldTags(){return Nr},sanitizeAttributes(){return Or},tryRemoveNode(){return Rr}});var n={};r.r(n),r.d(n,{ar(){return Vs()},cs_cz(){return Vs()},de(){return Vs()},es(){return Vs()},fa(){return Vs()},fr(){return Vs()},he(){return Vs()},hu(){return Vs()},id(){return Vs()},it(){return Vs()},ja(){return Vs()},ko(){return Vs()},mn(){return Vs()},nl(){return Vs()},pl(){return Vs()},pt_br(){return Vs()},ru(){return Vs()},tr(){return Vs()},zh_cn(){return Vs()},zh_tw(){return Vs()}});var a={};r.r(a),r.d(a,{ar(){return Ws},cs_cz(){return Ws},de(){return Ws},es(){return Ws},fa(){return Ws},fr(){return Ws},he(){return Ws},hu(){return Ws},id(){return Ws},it(){return Ws},ja(){return Ws},ko(){return Ws},mn(){return Ws},nl(){return Ws},pl(){return Ws},pt_br(){return Ws},ru(){return Ws},tr(){return Ws},zh_cn(){return Ws},zh_tw(){return Ws}});var l={};r.r(l),r.d(l,{ar(){return Ws},cs_cz(){return Ws},de(){return Ws},es(){return Ws},fa(){return Ws},fr(){return Ws},he(){return Ws},hu(){return Ws},id(){return Ws},it(){return Ws},ja(){return Ws},ko(){return Ws},mn(){return Ws},nl(){return Ws},pl(){return Ws},pt_br(){return Ws},ru(){return Ws},tr(){return Ws},zh_cn(){return Ws},zh_tw(){return Ws}});var c={};r.r(c),r.d(c,{ar(){return Ws},cs_cz(){return Ws},de(){return Ws},es(){return Ws},fa(){return Ws},fr(){return Ws},he(){return Ws},hu(){return Ws},id(){return Ws},it(){return Ws},ja(){return Ws},ko(){return Ws},mn(){return Ws},nl(){return Ws},pl(){return Ws},pt_br(){return Ws},ru(){return Ws},tr(){return Ws},zh_cn(){return Ws},zh_tw(){return Ws}});var h={};r.r(h),r.d(h,{checkBlockNesting(){return Ra}});var d={};r.r(d),r.d(d,{removeExtraBr(){return qa}});var u=r(86893),p=r(20255),f=r(93166),m=r(4567),g=r(21317),v=r(40332),b=r(56964),y=r(68574);class w{get url(){return this.request.url}constructor(t,e,s,i){this.request=t,this.status=e,this.statusText=s,this.body=i}async json(){return JSON.parse(this.body)}text(){return Promise.resolve(this.body)}async blob(){return this.body}}f.D.prototype.defaultAjaxOptions={successStatuses:[200,201,202],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 _{constructor(t,e=f.D.prototype.defaultAjaxOptions){this.__async=new g.e,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,v.ConfigProto)(t||{},e),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}__buildParams(t,e){return(0,v.isPlainObject)(t)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(t):(0,v.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,t,e):(0,v.isString)(t)||t instanceof window.FormData||"object"==typeof t&&null!=t&&(0,v.isFunction)(t.append)?t:(0,v.buildQuery)(t)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch{}return this}send(){this.__activated=!0;const{xhr:t,o:e}=this,s=this.prepareRequest();return this.__async.promise((async(i,r)=>{const o=()=>{this.__isFulfilled=!0,r(b.ZI("Connection error"))},n=()=>{this.__isFulfilled=!0,i(new w(s,t.status,t.statusText,t.responseType?t.response:t.responseText))};t.onload=n,t.onabort=()=>{this.__isFulfilled=!0,r(b.JG("Abort connection"))},t.onerror=o,t.ontimeout=o,e.responseType&&(t.responseType=e.responseType),t.onprogress=t=>{let e=0;t.lengthComputable&&(e=t.loaded/t.total*100),this.options.onProgress?.(e)},t.onreadystatechange=()=>{this.options.onProgress?.(10),t.readyState===XMLHttpRequest.DONE&&(e.successStatuses.includes(t.status)?n():t.statusText&&(this.__isFulfilled=!0,r(b.ZI(t.statusText))))},t.withCredentials=e.withCredentials??!1;const{url:a,data:l,method:c}=s;t.open(c,a,!0),e.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",e.contentType);let{headers:h}=e;(0,v.isFunction)(h)&&(h=await h.call(this)),h&&t.setRequestHeader&&Object.keys(h).forEach((e=>{t.setRequestHeader(e,h[e])})),this.__async.setTimeout((()=>{t.send(l?this.__buildParams(l):void 0)}),0)}))}prepareRequest(){if(!this.o.url)throw b.vU("Need URL for AJAX request");let t=this.o.url;const e=this.o.data,s=(this.o.method||"get").toLowerCase();if("get"===s&&e&&(0,v.isPlainObject)(e)){const s=t.indexOf("?");if(-1!==s){const i=(0,v.parseQuery)(t);t=t.substring(0,s)+"?"+(0,v.buildQuery)({...i,...e})}else t+="?"+(0,v.buildQuery)(this.o.data)}const i={url:t,method:s,data:e};return _.log.splice(100),_.log.push(i),i}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}}_.log=[],(0,p.gn)([y.autobind],_.prototype,"destruct",null);var C=r(90549),S=r(24263),E=(r(52378),r(53929)),x=r(45113),j=r(17332);class I extends E.u{className(){return"Popup"}updateParentElement(t){return t!==this&&x.w.isInstanceOf(t,I)&&(this.childrenPopups.forEach((e=>{!t.closest(e)&&e.isOpened&&e.close()})),this.childrenPopups.has(t)||this.j.e.on(t,"beforeClose",(()=>{this.childrenPopups.delete(t)})),this.childrenPopups.add(t)),super.updateParentElement(t)}setContent(t){S.i.detach(this.container);const e=this.j.c.div(this.componentName+"__content");let s;return x.w.isInstanceOf(t,E.u)?(s=t.container,t.parentElement=this):s=(0,v.isString)(t)?this.j.c.fromHTML(t):t,e.appendChild(s),this.container.appendChild(e),this.updatePosition(),this}open(t,e=!1,s){if((0,v.markOwner)(this.jodit,this.container),this.calculateZIndex(),this.isOpened=!0,this.addGlobalListeners(),this.targetBound=e?this.getKeepBound(t):t,s)s.appendChild(this.container);else{const t=(0,j.ZO)(this.jodit,I);s!==this.container.parentElement&&t.appendChild(this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this.j.e.fire("afterOpenPopup",this),this}calculateZIndex(){if(this.container.style.zIndex)return;const t=t=>{const e=t.container.style.zIndex||t.o.zIndex;return!!e&&(this.setZIndex(1+parseInt(""+e,10)),!0)},{j:e}=this;if(t(e))return;let s=this.parentElement;for(;s;){if(t(e))return;if(s.container.style.zIndex)return void this.setZIndex(1+parseInt(""+s.container.style.zIndex,10));if(!s.parentElement&&s.container.parentElement){const t=E.u.closestElement(s.container.parentElement,E.u);if(t){s=t;continue}}s=s.parentElement}}getKeepBound(t){const e=t(),s=this.od.elementFromPoint(e.left,e.top);if(!s)return t;const i=S.i.isHTMLElement(s)?s:s.parentElement,r=(0,v.position)(i,this.j);return()=>{const e=t(),s=(0,v.position)(i,this.j);return{...e,top:e.top+(s.top-r.top),left:e.left+(s.left-r.left)}}}updatePosition(){if(!this.isOpened)return this;const[t,e]=this.calculatePosition(this.targetBound(),this.viewBound(),(0,v.position)(this.container,this.j));return this.setMod("strategy",e),(0,v.css)(this.container,{left:t.left,top:t.top}),this.childrenPopups.forEach((t=>t.updatePosition())),this}throttleUpdatePosition(){this.updatePosition()}calculatePosition(t,e,s,i=this.strategy){const r={left:t.left,right:t.left-(s.width-t.width)},o={bottom:t.top+t.height,top:t.top-s.height},n=Object.keys(r).reduce(((t,e)=>t.concat(Object.keys(o).map((t=>`${e}${(0,v.ucfirst)(t)}`)))),[]),a=t=>{const[e,i]=(0,v.kebabCase)(t).split("-");return{left:r[e],top:o[i],width:s.width,height:s.height}},l=t=>{let e=null;return e=I.boxInView(a(i),t)?i:n.find((e=>{if(I.boxInView(a(e),t))return e}))||null,e};let c=l((0,v.position)(this.j.container,this.j));return c&&I.boxInView(a(c),e)||(c=l(e)||c||i),[a(c),c]}static boxInView(t,e){return!(-2>t.top-e.top||-2>t.left-e.left||-2>e.top+e.height-(t.top+t.height)||-2>e.left+e.width-(t.left+t.width))}close(){return this.isOpened?(this.isOpened=!1,this.childrenPopups.forEach((t=>t.close())),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.removeGlobalListeners(),S.i.safeRemove(this.container),this):this}closeOnOutsideClick(t){this.isOpened&&!this.isOwnClick(t)&&this.close()}isOwnClick(t){if(!t.target)return!1;const e=E.u.closestElement(t.target,I);return!(!e||this!==e&&!e.closest(this))}addGlobalListeners(){const t=this.throttleUpdatePosition,e=this.ow;j.TB.on("closeAllPopups",this.close),this.smart&&this.j.e.on("escape",this.close).on("mousedown touchstart",this.closeOnOutsideClick).on(e,"mousedown touchstart",this.closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",t).on(this.container,"scroll mousewheel",t).on(e,"scroll",t).on(e,"resize",t),S.i.up(this.j.container,(e=>{e&&this.j.e.on(e,"scroll mousewheel",t)}))}removeGlobalListeners(){const t=this.throttleUpdatePosition,e=this.ow;j.TB.off("closeAllPopups",this.close),this.smart&&this.j.e.off("escape",this.close).off("mousedown touchstart",this.closeOnOutsideClick).off(e,"mousedown touchstart",this.closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",t).off(this.container,"scroll mousewheel",t).off(e,"scroll",t).off(e,"resize",t),S.i.up(this.j.container,(e=>{e&&this.j.e.off(e,"scroll mousewheel",t)}))}setZIndex(t){this.container.style.zIndex=""+t}constructor(t,e=!0){super(t),this.smart=e,this.isOpened=!1,this.strategy="leftBottom",this.viewBound=()=>({left:0,top:0,width:this.ow.innerWidth,height:this.ow.innerHeight}),this.childrenPopups=new Set,(0,v.attr)(this.container,"role","popup")}destruct(){return this.close(),super.destruct()}}(0,p.gn)([y.autobind],I.prototype,"updatePosition",null),(0,p.gn)([(0,y.throttle)(10),y.autobind],I.prototype,"throttleUpdatePosition",null),(0,p.gn)([y.autobind],I.prototype,"close",null),(0,p.gn)([y.autobind],I.prototype,"closeOnOutsideClick",null);var k=r(76502),T=r(24421),L=r(42096),M=r(77904);function P(t,e){let s;return e||(e=f.D.defaultOptions.controls),(0,v.isString)(t)?s=N(t,e)||{name:t,command:t,tooltip:t}:(s={name:"empty",...(0,v.ConfigFlatten)(t)},void 0!==e[s.name]&&(s={...(0,v.ConfigFlatten)(e[s.name]),...(0,v.ConfigFlatten)(s)})),s}function N(t,e){let[s,i]=t.split(/\./),r=e;return null!=i?void 0!==e[s]&&(r=e[s]):i=s,r[i]?{name:i,...(0,v.ConfigFlatten)(r[i])}:void 0}var z,D=r(49781);let R=z=class t extends E.u{className(){return"UIGroup"}get allChildren(){const t=[],e=[...this.elements];for(;e.length;){const s=e.shift();(0,v.isArray)(s)?e.push(...s):x.w.isInstanceOf(s,z)?e.push(...s.elements):s&&t.push(s)}return t}update(){this.elements.forEach((t=>t.update())),this.setMod("size",this.buttonSize)}append(t,e){return(0,v.isArray)(t)?(t.forEach((t=>this.append(t,e))),this):(this.elements.push(t),t.name&&t.container.classList.add(this.getFullElName(t.name)),e?this.getElm(e).appendChild(t.container):this.appendChildToContainer(t.container),t.parentElement=this,this)}afterSetMod(t,e){this.syncMod&&this.elements.forEach((s=>s.setMod(t,e)))}appendChildToContainer(t){this.container.appendChild(t)}remove(t){const e=this.elements.indexOf(t);return-1!==e&&(this.elements.splice(e,1),S.i.safeRemove(t.container),t.parentElement=null),this}clear(){return this.elements.forEach((t=>t.destruct())),this.elements.length=0,this}constructor(t,e,s){super(t,s),this.options=s,this.syncMod=!1,this.elements=[],this.buttonSize="middle",e?.forEach((t=>t&&this.append(t))),s?.name&&(this.name=s.name)}destruct(){return this.clear(),super.destruct()}};(0,p.gn)([(0,y.watch)("buttonSize")],R.prototype,"update",null),R=z=(0,p.gn)([y.component],R);var A=r(11441);let q=class t extends E.u{className(){return"UISeparator"}};q=(0,p.gn)([A.w],q);let O=class t extends E.u{className(){return"UISpacer"}};O=(0,p.gn)([A.w],O);const B=t=>(0,D.k)(t.buttons);function H(t,e){const s=e.getRegisteredButtonGroups();return new Set(t.reduce(((t,e)=>(B(e)?t=t.concat([...e.buttons,...s[e.group]??[]]):t.push(e),t)),[]))}var F=r(14556);let $=class t extends R{className(){return"UIList"}onChangeMode(){this.setMod("mode",this.mode)}constructor(t){super(t),this.mode="horizontal",this.removeButtons=[],this.onChangeMode()}makeGroup(){return new R(this.jodit)}get buttons(){return this.allChildren.filter((t=>x.w.isInstanceOf(t,V)))}getButtonsNames(){return this.buttons.map((t=>t instanceof V&&t.state.name||"")).filter((t=>""!==t))}setRemoveButtons(t){return this.removeButtons=t||[],this}build(t,e=null){t=(0,F.C)(t),this.clear();let s,i=!1,r=this.makeGroup();this.append(r),r.setMod("line",!0);const o=t=>{let o=null;switch(t.name){case"\n":r=this.makeGroup(),r.setMod("line",!0),s=this.makeGroup(),r.append(s),this.append(r);break;case"|":i||(i=!0,o=new q(this.j));break;case"---":{s.setMod("before-spacer",!0);const t=new O(this.j);r.append(t),s=this.makeGroup(),r.append(s),i=!1;break}default:i=!1,o=this.makeButton(t,e)}o&&(s||(s=this.makeGroup(),r.append(s)),s.append(o))},n=t=>!this.removeButtons.includes(t.name);return t.forEach((t=>{if(B(t)){const e=t.buttons.filter((t=>t));e.length&&(s=this.makeGroup(),s.setMod("separated",!0).setMod("group",t.group),r.append(s),((t,e)=>{const s=(0,D.k)(t)?t:(0,k.keys)(t,!1).map((e=>(0,k.ConfigProto)({name:e},t[e]||{})));return s.map((t=>P(t,e||f.D.defaultOptions.controls)))})(e,this.j.o.controls).filter(n).forEach(o))}else{s||(s=this.makeGroup(),r.append(s));const e=P(t,this.j.o.controls);n(e)&&o(e)}})),this.update(),this}makeButton(t,e){return new V(this.j)}};(0,p.gn)([(0,y.watch)("mode")],$.prototype,"onChangeMode",null),$=(0,p.gn)([y.component],$);var W=r(29411);let V=class t extends E.u{className(){return"UIButton"}setState(t){return Object.assign(this.state,t),this}get text(){return this.getElm("text")}get icon(){return this.getElm("icon")}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,k.attr)(this.container,"type",this.state.type)}updateSize(){const t=this.closest($);t&&(this.state.size=t.buttonSize)}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text)}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,k.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,k.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,k.attr)(this.container,"data-ref",this.state.name),(0,k.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){this.get("j.o.useNativeTooltip")&&(0,k.attr)(this.container,"title",this.state.tooltip),(0,k.attr)(this.container,"aria-label",this.state.tooltip)}onChangeTabIndex(){(0,k.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){const t=this.get("j.o.textIcons");if(!0===t||(0,L.m)(t)&&t(this.state.name))return;S.i.detach(this.icon);const e=M.J.makeIcon(this.j,this.state.icon);e&&this.icon.appendChild(e)}focus(){this.container.focus()}isFocused(){const{activeElement:t}=this.od;return!(!t||!S.i.isOrContains(this.container,t))}createContainer(){const t=this.componentName,e=this.j.c.element("button",{class:t,type:"button",role:"button",ariaPressed:!1}),s=this.j.c.span(t+"__icon"),i=this.j.c.span(t+"__text");return e.appendChild(s),e.appendChild(i),e}constructor(t,e){super(t),this.isButton=!0,this.state={size:"middle",type:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0},this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),e&&this.hookStatus(W.n.ready,(()=>{this.setState(e)}))}destruct(){return this.j.e.off(this.container),super.destruct()}onAction(t){return this.actionHandlers.push(t),this}__onActionFire(t){t.buffer={actionTrigger:this},this.actionHandlers.forEach((e=>e.call(this,t)))}};function U(t,e,s,i){const r=new V(t);return r.state.tabIndex=t.o.allowTabNavigation?0:-1,(0,T.H)(e)?(r.state.icon.name=e,r.state.name=e,i&&(r.state.variant=i),s&&(r.state.text=s)):r.setState(e),r}(0,p.gn)([y.cache],V.prototype,"text",null),(0,p.gn)([y.cache],V.prototype,"icon",null),(0,p.gn)([(0,y.watch)("state.size",{immediately:!1})],V.prototype,"onChangeSize",null),(0,p.gn)([(0,y.watch)("state.type",{immediately:!1})],V.prototype,"onChangeType",null),(0,p.gn)([(0,y.watch)("parentElement")],V.prototype,"updateSize",null),(0,p.gn)([(0,y.watch)("state.variant",{immediately:!1})],V.prototype,"onChangeStatus",null),(0,p.gn)([(0,y.watch)("state.text",{immediately:!1})],V.prototype,"onChangeText",null),(0,p.gn)([(0,y.watch)("state.text",{immediately:!1})],V.prototype,"onChangeTextSetMode",null),(0,p.gn)([(0,y.watch)("state.disabled")],V.prototype,"onChangeDisabled",null),(0,p.gn)([(0,y.watch)("state.activated")],V.prototype,"onChangeActivated",null),(0,p.gn)([(0,y.watch)("state.name",{immediately:!1})],V.prototype,"onChangeName",null),(0,p.gn)([(0,y.watch)("state.tooltip",{immediately:!1})],V.prototype,"onChangeTooltip",null),(0,p.gn)([(0,y.watch)("state.tabIndex",{immediately:!1})],V.prototype,"onChangeTabIndex",null),(0,p.gn)([(0,y.watch)("state.icon",{immediately:!1})],V.prototype,"onChangeIcon",null),(0,p.gn)([y.cacheHTML],V.prototype,"createContainer",null),(0,p.gn)([(0,y.watch)("button:click")],V.prototype,"__onActionFire",null),V=(0,p.gn)([y.component],V);let Y=class t extends R{className(){return"UIButtonGroup"}render(t){return`<div>\n\t\t\t<div class="&__label">~${t.label}~</div>\n\t\t\t<div class="&__options"></div>\n\t\t</div>`}appendChildToContainer(t){this.getElm("options").appendChild(t)}constructor(t,e={radio:!0}){super(t,e.options?.map((e=>{const s=new V(t,{text:e.text,value:e.value,variant:"primary"});return s.onAction((()=>{this.select(e.value)})),s})),e),this.options=e,this.select(e.value??0)}select(t){this.elements.forEach(((e,s)=>{s===t||e.state.value===t?e.state.activated=!0:this.options.radio&&(e.state.activated=!1)}));const e=this.elements.filter((t=>t.state.activated)).map((t=>({text:t.state.text,value:t.state.value})));this.jodit.e.fire(this,"select",e),this.options.onChange?.(e)}};Y=(0,p.gn)([A.w],Y);var G,X=r(64968),K=r(81710);let J=G=class t extends E.u{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}constructor(t){super(t),this.__isOpened=!1,this.__listenClose=!1,this.__currentTarget=null,this.__delayShowTimeout=0,this.__hideTimeout=0,t.o.textIcons||!t.o.showTooltip||t.o.useNativeTooltip||t.hookStatus(C.n$.ready,(()=>{(0,j.ZO)(t,G).appendChild(this.container),t.e.on(t.container,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0})}))}__addListenersOnClose(){if(this.__listenClose)return;this.__listenClose=!0;const t=this.j;t.e.on(t.ow,"scroll.tooltip",this.__hide).on(t.container,"mouseleave.tooltip",this.__hide).on(["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","closeAllPopups.tooltip"],this.__hide).on(t.container,"mouseleave",this.__onMouseLeave,{capture:!0})}__removeListenersOnClose(){if(!this.__listenClose)return;this.__listenClose=!1;const t=this.j;t.e.off(t.ow,"scroll.tooltip",this.__hide).off(["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","closeAllPopups.tooltip"],this.__hide).off(t.container,"mouseleave.tooltip",this.__onMouseLeave)}__onMouseLeave(t){this.__currentTarget===t.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(t){if(!X.i.isHTMLElement(t.target))return;const e=(0,k.attr)(t.target,"aria-label");if(!e)return;if((0,k.attr)(t.target,"disabled"))return;if(!t.target.className.includes("jodit"))return;this.__currentTarget=t.target;const s=(0,K.F)(t.target);this.__addListenersOnClose(),this.__delayOpen((()=>({x:s.left+s.width/2,y:s.top+s.height})),e)}__delayOpen(t,e){const s=this.j.o.showTooltipDelay||this.j.defaultTimeout;this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout),this.__delayShowTimeout=this.j.async.setTimeout((()=>this.__open(t,e)),{timeout:s,label:"tooltip"})}__open(t,e){this.setMod("visible",!0),this.getElm("content").innerHTML=e,this.__isOpened=!0,this.__setPosition(t)}__setPosition(t){const e=t();(0,k.css)(this.container,{left:e.x,top:e.y})}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnClose(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),(0,k.css)(this.container,{left:-5e3}))}__hideDelay(){this.__isOpened&&(this.j.async.clearTimeout(this.__delayShowTimeout),this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.j.e.off(this.j.container,"mouseenter",this.__onMouseEnter),this.__hide(),super.destruct()}};(0,p.gn)([y.autobind],J.prototype,"__onMouseLeave",null),(0,p.gn)([y.autobind],J.prototype,"__onMouseEnter",null),(0,p.gn)([y.autobind],J.prototype,"__delayOpen",null),(0,p.gn)([y.autobind],J.prototype,"__hide",null),(0,p.gn)([y.autobind],J.prototype,"__hideDelay",null),J=G=(0,p.gn)([y.component],J);var Z=r(1243);let Q=class t extends I{className(){return"ContextMenu"}show(t,e,s){const i=this,r=this.j.c.div(this.getFullElName("actions"));(0,Z.kJ)(s)&&(s.forEach((t=>{if(!t)return;const e=U(this.jodit,t.icon||"empty",t.title);this.jodit&&e.setParentView(this.jodit),e.setMod("context","menu"),e.onAction((e=>(t.exec?.call(i,e),i.close(),!1))),r.appendChild(e.container)})),this.setContent(r).open((()=>({left:t,top:e,width:0,height:0})),!0))}};Q=(0,p.gn)([A.w],Q);var tt=r(12557);const et=(()=>{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{}return!1})()),t)})();class st{set(t,e){try{const s=localStorage.getItem(this.rootKey),i=s?JSON.parse(s):{};i[t]=e,localStorage.setItem(this.rootKey,JSON.stringify(i))}catch{}return this}delete(t){try{localStorage.removeItem(this.rootKey)}catch{}return this}get(t){try{const e=localStorage.getItem(this.rootKey),s=e?JSON.parse(e):{};return void 0!==s[t]?s[t]:null}catch{}}exists(t){return null!=this.get(t)}constructor(t){this.rootKey=t}clear(){try{localStorage.removeItem(this.rootKey)}catch{}return this}}var it=r(26596);class rt{constructor(){this.data=new Map}set(t,e){return this.data.set(t,e),this}delete(t){return this.data.delete(t),this}get(t){return this.data.get(t)}exists(t){return this.data.has(t)}clear(){return this.data.clear(),this}}const ot="Jodit_";class nt{set(t,e){return this.provider.set((0,it.e)(this.prefix+t),e),this}delete(t){return this.provider.delete((0,it.e)(this.prefix+t)),this}get(t){return this.provider.get((0,it.e)(this.prefix+t))}exists(t){return this.provider.exists((0,it.e)(this.prefix+t))}clear(){return this.provider.clear(),this}constructor(t,e){this.provider=t,this.prefix=ot,e&&(this.prefix+=e)}static makeStorage(t=!1,e){let s;return t&&et()&&(s=new st(ot+e)),s||(s=new rt),new nt(s,e)}}var at=r(41681),lt=r(14089),ct=r(26911),ht=r(1853),dt=r(64350),ut=r(33941);const pt=t=>!!(0,ut.f)(t.value).length||(t.error="Please fill out this field",!1),ft=t=>!!(0,dt.P)((0,ut.f)(t.value))||(t.error="Please enter a web address",!1),mt=t=>!!(0,ut.f)(t.value).length||(t.error="Please fill out this field",!1);var gt;let vt=gt=class e extends E.u{className(){return"UIInput"}onChangeClear(){this.state.clearButton?S.i.after(this.nativeInput,this.clearButton):S.i.safeRemove(this.clearButton)}onChangeClassName(t,e){e&&this.container.classList.remove(e),this.state.className&&this.container.classList.add(this.state.className)}onChangeState(){this.name=this.state.name;const t=this.nativeInput,{name:e,icon:s,type:i,ref:r,required:o,placeholder:n,autocomplete:a,label:l}=this.state;(0,k.attr)(t,"name",e),(0,k.attr)(t,"type",i),(0,k.attr)(t,"data-ref",r||e),(0,k.attr)(t,"ref",r||e),(0,k.attr)(t,"required",o||null),(0,k.attr)(t,"autocomplete",a?null:"off"),(0,k.attr)(t,"placeholder",n?this.j.i18n(n):""),s&&M.J.exists(s)?(S.i.before(t,this.icon),this.icon.innerHTML=M.J.get(s)):S.i.safeRemove(this.icon),l?(S.i.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(l)):S.i.safeRemove(this.label),this.updateValidators()}updateValidators(){this.validators.clear(),this.state.required&&this.validators.add(pt),this.state.validators?.forEach((e=>{const s=t[e];s&&this.validators.add(s)}))}set error(t){this.setMod("has-error",!!t),t?(this.__errorBox.innerText=this.j.i18n(t,this.j.i18n(this.state.label||"")),this.container.appendChild(this.__errorBox)):S.i.safeRemove(this.__errorBox)}get value(){return this.nativeInput.value}set value(t){this.value!==t&&(this.nativeInput.value=t,this.onChangeValue())}onChangeStateValue(){const t=""+this.state.value;t!==this.value&&(this.value=t)}onChangeValue(){const{value:t}=this;this.state.value!==t&&(this.state.value=t,this.j.e.fire(this,"change",t),this.state.onChange?.(t))}validate(){return this.error="",(0,ht.q)(this.validators).every((t=>t(this)))}createContainer(t){const e=super.createContainer();this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());const{nativeInput:s}=this;return s.classList.add(this.getFullElName("input")),this.wrapper.appendChild(s),e.appendChild(this.wrapper),(0,k.attr)(s,"dir",this.j.o.direction||"auto"),e}createNativeInput(t){return this.j.create.element("input")}constructor(t,e){super(t,e),this.label=this.j.c.span(this.getFullElName("label")),this.icon=this.j.c.span(this.getFullElName("icon")),this.clearButton=this.j.c.span(this.getFullElName("clear"),M.J.get("cancel")),this.state={...gt.defaultState},this.__errorBox=this.j.c.span(this.getFullElName("error")),this.validators=new Set([]),void 0!==e?.value&&(e.value=""+e.value),Object.assign(this.state,e),void 0!==this.state.clearButton&&(this.j.e.on(this.clearButton,"click",(t=>{t.preventDefault(),this.nativeInput.value="",this.j.e.fire(this.nativeInput,"input"),this.focus()})).on(this.nativeInput,"input",(()=>{this.state.clearButton=!!this.value.length})),this.state.clearButton=!!this.value.length),this.j.e.on(this.nativeInput,"focus blur",(()=>{this.onChangeFocus()})).on(this.nativeInput,"input change",this.onChangeValue),this.onChangeState(),this.onChangeClassName(),this.onChangeStateValue()}focus(){this.nativeInput.focus()}get isFocused(){return this.nativeInput===this.j.od.activeElement}onChangeFocus(){this.setMod("focused",this.isFocused)}};vt.defaultState={className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]},(0,p.gn)([(0,y.watch)("state.clearButton")],vt.prototype,"onChangeClear",null),(0,p.gn)([(0,y.watch)("state.className")],vt.prototype,"onChangeClassName",null),(0,p.gn)([(0,y.watch)(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"],{immediately:!1}),(0,y.debounce)()],vt.prototype,"onChangeState",null),(0,p.gn)([(0,y.watch)("state.value")],vt.prototype,"onChangeStateValue",null),(0,p.gn)([y.autobind],vt.prototype,"onChangeValue",null),vt=gt=(0,p.gn)([y.component],vt);var bt,yt=r(36467);let wt=bt=class t extends vt{className(){return"UISelect"}createContainer(t){const e=super.createContainer(t),{j:s}=this,{nativeInput:i}=this,r=()=>s.create.element("option");if(void 0!==t.placeholder){const e=r();e.value="",e.text=s.i18n(t.placeholder),i.add(e)}return t.options?.forEach((t=>{const e=r();e.value=""+t.value,e.text=s.i18n(t.text),i.add(e)})),t.size&&t.size>0&&(0,yt.L)(i,"size",t.size),t.multiple&&(0,yt.L)(i,"multiple",""),e}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(pt),this.validators.add(mt))}constructor(t,e){super(t,e),this.state={...bt.defaultState},Object.assign(this.state,e)}};wt.defaultState={...vt.defaultState,options:[],size:1,multiple:!1},wt=bt=(0,p.gn)([A.w],wt);let _t=class t extends R{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){const t=this.allChildren.filter((t=>x.w.isInstanceOf(t,vt)));for(const e of t)if(!e.validate())return!1;const e=this.allChildren.filter((t=>x.w.isInstanceOf(t,wt)));for(const t of e)if(!t.validate())return!1;return!0}onSubmit(t){this.j.e.on(this.container,"submit",(()=>{const e=this.allChildren.filter((t=>x.w.isInstanceOf(t,vt)));return!!this.validate()&&(t(e.reduce(((t,e)=>(t[e.state.name]=e.value,t)),{})),!1)}))}createContainer(){const t=this.j.c.element("form");return t.classList.add(this.componentName),(0,k.attr)(t,"dir",this.j.o.direction||"auto"),t}constructor(...t){super(...t),this.options?.className&&this.container.classList.add(this.options?.className)}};var Ct;_t=(0,p.gn)([A.w],_t);let St=Ct=class t extends vt{className(){return"UITextArea"}constructor(t,e){super(t,e),this.state={...Ct.defaultState},this.nativeInput=this.j.create.element("textarea"),Object.assign(this.state,e),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}};var Et;St.defaultState={...vt.defaultState,size:5,resizable:!0},St=Ct=(0,p.gn)([A.w],St);let xt=Et=class t extends vt{className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}constructor(t,e){super(t,{...e,type:"checkbox"}),this.state={...Et.defaultState},Object.assign(this.state,e)}onChangeChecked(){this.value=""+this.state.checked,this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}onChangeNativeCheckBox(){this.state.checked=this.nativeInput.checked}onChangeSwitch(){this.setMod("switch",this.state.switch);let t=this.getElm("switch-slider");this.state.switch?(t||(t=this.j.c.div(this.getFullElName("switch-slider"))),S.i.after(this.nativeInput,t)):S.i.safeRemove(t)}};xt.defaultState={...vt.defaultState,checked:!1,switch:!1},(0,p.gn)([(0,y.watch)("state.checked"),(0,y.hook)("ready")],xt.prototype,"onChangeChecked",null),(0,p.gn)([(0,y.watch)("nativeInput:change")],xt.prototype,"onChangeNativeCheckBox",null),(0,p.gn)([(0,y.watch)("state.switch"),(0,y.hook)("ready")],xt.prototype,"onChangeSwitch",null),xt=Et=(0,p.gn)([y.component],xt);let jt=class t extends vt{className(){return"UIFileInput"}createContainer(t){this.button=new V(this.j,{icon:{name:"plus"}});const{container:e}=this.button;this.nativeInput||(this.nativeInput=this.createNativeInput(t));const{nativeInput:s}=this;return s.classList.add(this.getFullElName("input")),e.classList.add(this.componentName),e.appendChild(s),e}createNativeInput(t){return this.j.create.fromHTML(`<input\n\t\t\ttype="file"\n\t\t\taccept="${t.onlyImages?"image/*":"*"}"\n\t\t\ttabindex="-1"\n\t\t\tdir="auto"\n\t\t\tmultiple=""\n\t\t/>`)}constructor(t,e){super(t,{type:"file",...e}),this.state={...vt.defaultState,type:"file",onlyImages:!0}}};jt=(0,p.gn)([A.w],jt);let It=class t extends R{className(){return"UIBlock"}constructor(t,e,s={align:"left"}){super(t,e),this.options=s,this.setMod("align",this.options.align||"left"),this.setMod("width",this.options.width||""),this.options.mod&&this.setMod(this.options.mod,!0),this.options.className&&this.container.classList.add(this.options.className),(0,k.attr)(this.container,"data-ref",s.ref),(0,k.attr)(this.container,"ref",s.ref)}};It=(0,p.gn)([A.w],It);class kt extends E.u{className(){return"ProgressBar"}render(){return"<div><div></div></div>"}show(){return(this.j.workplace||this.j.container).appendChild(this.container),this}hide(){return S.i.safeRemove(this.container),this}progress(t){return this.container.style.width=t.toFixed(2)+"%",this}destruct(){return this.hide(),super.destruct()}}let Tt=class t extends E.u{className(){return"UIMessage"}constructor(t,e){super(t),this.setMod("active",!0),this.setMod("variant",e.variant),this.container.textContent=e.text}};Tt=(0,p.gn)([A.w],Tt);let Lt=class t extends R{className(){return"UIMessages"}constructor(t,e,s={defaultTimeout:3e3,defaultOffset:5}){super(t),this.__box=e,this.options=s,this.__messages=new Set}info(t,e){this.__message(t,"info",e)}success(t,e){this.__message(t,"success",e)}error(t,e){this.__message(t,"error",e)}message(t,e,s){this.__message(t,e,s)}__message(t,e="info",s){const i=t+":"+e;if(this.__messages.has(i))return void this.async.updateTimeout(i,s||this.options.defaultTimeout);this.__box.appendChild(this.container);const r=new Tt(this.j,{text:t,variant:e});this.append(r),this.__calcOffsets(),this.__messages.add(i);const o=this.__getRemoveCallback(r,i);this.j.e.on(r.container,"pointerdown",o),this.async.setTimeout(o,{label:i,timeout:s||this.options.defaultTimeout})}__getRemoveCallback(t,e){const s=i=>{i&&i.preventDefault(),t.isInDestruct||(this.async.clearTimeout(e),this.j.e.off(t.container,"pointerdown",s),this.__messages.delete(e),t.setMod("active",!1),this.async.setTimeout((()=>{this.remove(t),t.destruct(),this.__calcOffsets()}),300))};return s}__calcOffsets(){let t=5;this.elements.forEach((e=>{(0,ct.i)(e.container,"bottom",t+"px"),t+=e.container.offsetHeight+this.options.defaultOffset}))}};var Mt;Lt=(0,p.gn)([A.w],Lt);let Pt=Mt=class t extends C.wA{get basePath(){return this.o.basePath?this.o.basePath:u.BASE_PATH}get defaultTimeout(){return(0,v.isVoid)(this.o.defaultTimeout)?100:this.o.defaultTimeout}get buffer(){return nt.makeStorage()}get message(){return new Lt(this,this.container)}get storage(){return nt.makeStorage(!0,this.id)}get c(){return this.create}get container(){return this.__container}set container(t){this.__container=t}get e(){return this.events}get progressbar(){return new kt(this)}get options(){return this.__options}set options(t){this.__options=t}get o(){return this.options}i18n(t,...e){return(0,v.i18n)(t,e,this.options)}toggleFullSize(t){void 0===t&&(t=!this.__isFullSize),t!==this.__isFullSize&&(this.__isFullSize=t,this.e.fire("toggleFullSize",t))}get isLocked(){return""!==this.__whoLocked}lock(t="any"){return!this.isLocked&&(this.__whoLocked=t,!0)}unlock(){return!!this.isLocked&&(this.__whoLocked="",!0)}get isFullSize(){return this.__isFullSize}getVersion(){return Mt.version}static getVersion(){return Mt.version}initOptions(t){this.options=(0,v.ConfigProto)(t||{},(0,v.ConfigProto)(this.options||{},Mt.defaultOptions))}initOwners(){this.ownerWindow=this.o.ownerWindow??window}attachEvents(t){if(!t)return;const e=t?.events;e&&Object.keys(e).forEach((t=>this.e.on(t,e[t])))}constructor(t,e=!1){super(),this.isJodit=e,this.isView=!0,this.parent=null,this.mods={},this.components=new Set,this.OPTIONS=Mt.defaultOptions,this.__isFullSize=!1,this.__whoLocked="",this.isLockedNotBy=t=>this.isLocked&&this.__whoLocked!==t,this.__modulesInstances=new Map,this.id=""+(new Date).getTime(),this.initOptions(t),this.initOwners(),this.events=new m.vp(this.od),this.create=new Yt(this.od),this.container=this.c.div("jodit "+this.componentName)}getInstance(t,e){const s=this.e.fire((0,v.camelCase)("getInstance_"+t),e);if(s)return s;const i=j.qz[t],r=this.__modulesInstances;if(!(0,v.isFunction)(i))throw(0,v.error)("Need real module name");if(!r.has(t)){const s=i.prototype instanceof C.Hr?new i(this,e):new i(e);this.components.add(s),r.set(t,s)}return r.get(t)}addDisclaimer(t){this.container.appendChild(t)}beforeDestruct(){this.e.fire(C.n$.beforeDestruct,this),this.components.forEach((t=>{(0,v.isDestructable)(t)&&!t.isInDestruct&&t.destruct()})),this.components.clear()}destruct(){this.isDestructed||(this.progressbar.destruct(),this.message.destruct(),this.events&&(this.events.destruct(),this.events=void 0),this.buffer&&this.buffer.clear(),X.i.safeRemove(this.container),super.destruct())}};Pt.ES=u.ES,Pt.version=u.APP_VERSION,Pt.esNext=u.IS_ES_NEXT,(0,p.gn)([y.cache],Pt.prototype,"buffer",null),(0,p.gn)([y.cache],Pt.prototype,"message",null),(0,p.gn)([y.cache],Pt.prototype,"storage",null),(0,p.gn)([y.cache],Pt.prototype,"c",null),(0,p.gn)([y.cache],Pt.prototype,"e",null),(0,p.gn)([y.cache],Pt.prototype,"progressbar",null),(0,p.gn)([(0,y.hook)(C.n$.beforeDestruct)],Pt.prototype,"beforeDestruct",null),Pt=Mt=(0,p.gn)([(0,y.derive)(at.$,lt.F)],Pt),Pt.defaultOptions={extraButtons:[],cache:!0,textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0,language:"auto"};var Nt=r(41579);let zt=class t extends ${className(){return"ToolbarCollection"}get firstButton(){const[t]=this.buttons;return t||null}makeButton(t,e=null){return Ot(this.j,t,e)}shouldBeActive(t){}shouldBeDisabled(t){}getTarget(t){return t.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar"))}setDirection(t){this.container.style.direction=t,this.container.setAttribute("dir",t)}constructor(t){super(t),this.__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur",this.update=this.j.async.debounce(this.__immediateUpdate,(()=>this.j.defaultTimeout)),this.__tooltip=new J(this.jodit),this.__initEvents()}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(t){throw(0,Nt.vU)("The method is not implemented for this class.")}build(t,e=null){const s=this.j.e.fire("beforeToolbarBuild",t);return s&&(t=s),super.build(t,e),this}destruct(){this.isDestructed||(this.__tooltip?.destruct(),this.__tooltip=null,this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}};(0,p.gn)([y.autobind],zt.prototype,"__immediateUpdate",null),zt=(0,p.gn)([y.component],zt);let Dt=class t extends zt{className(){return"ToolbarEditorCollection"}shouldBeDisabled(t){const e=super.shouldBeDisabled(t);if(void 0!==e)return e;const s=void 0===t.control.mode?u.MODE_WYSIWYG:t.control.mode;return!(s===u.MODE_SPLIT||s===this.j.getRealMode())}shouldBeActive(t){const e=super.shouldBeActive(t);if(void 0!==e)return e;const s=this.j.selection?this.j.s.current():null;if(!s)return!1;let i;if(t.control.tags){const e=t.control.tags;if(i=s,X.i.up(i,(t=>{if(t&&-1!==e.indexOf(t.nodeName.toLowerCase()))return!0}),this.j.editor))return!0}if(t.control.css){const e=t.control.css;if(i=s,X.i.up(i,(t=>{if(t&&!X.i.isText(t))return this.checkActiveStatus(e,t)}),this.j.editor))return!0}return!1}getTarget(t){return t.target||this.j.s.current()||null}constructor(t){super(t),this.checkActiveStatus=(t,e)=>{let s=0,i=0;return Object.keys(t).forEach((r=>{const o=t[r];(0,v.isFunction)(o)?o(this.j,""+(0,v.css)(e,r))&&(s+=1):-1!==o.indexOf(""+(0,v.css)(e,r))&&(s+=1),i+=1})),i===s},this.prependInvisibleInput(this.container)}prependInvisibleInput(t){const e=this.j.create.element("input",{tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});X.i.appendChildFirst(t,e)}showInline(t){this.jodit.e.fire("showInlineToolbar",t)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}};Dt=(0,p.gn)([y.component],Dt);let Rt=class t extends V{className(){return"ToolbarButton"}get toolbar(){return this.closest(zt)}update(){window.__onupdate=(window.__onupdate??0)+1;const{control:t,state:e}=this,s=this.closest(zt);e.disabled=this.calculateDisabledStatus(s),e.activated=this.calculateActivatedStatus(s),(0,v.isFunction)(t.update)&&s&&t.update(this,s.jodit),super.update()}calculateActivatedStatus(t){return!((0,v.isJoditObject)(this.j)&&!this.j.editorIsActive||(!(0,v.isFunction)(this.control.isActive)||!this.control.isActive(this.j,this.control,this))&&(!t||!t.shouldBeActive(this)))}calculateDisabledStatus(t){return!(!this.j.o.disabled&&(!this.j.o.readonly||this.j.o.activeButtonsInReadOnly&&this.j.o.activeButtonsInReadOnly.includes(this.control.name))&&(!(0,v.isFunction)(this.control.isDisabled)||!this.control.isDisabled(this.j,this.control,this))&&(!t||!t.shouldBeDisabled(this)))}onChangeActivated(){(0,v.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,v.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,v.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){const t=this.componentName,e=this.j.c.span(t),s=super.createContainer();(0,v.attr)(e,"role","listitem"),s.classList.remove(t),s.classList.add(t+"__button"),Object.defineProperty(s,"component",{value:this}),e.appendChild(s);const i=this.j.c.fromHTML(`<span role="trigger" class="${t}__trigger">${M.J.get("chevron")}</span>`);return s.appendChild(i),e}focus(){this.container.querySelector("button")?.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):X.i.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){const t=this.state.disabled?"disabled":null;(0,v.attr)(this.trigger,"disabled",t),(0,v.attr)(this.button,"disabled",t),(0,v.attr)(this.container,"disabled",t)}constructor(t,e,s=null){super(t),this.control=e,this.target=s,this.state={size:"middle",type:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0,theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;const i=this.getElm("button");this.button=i,Object.defineProperty(i,"component",{value:this,configurable:!0});const r=this.getElm("trigger");this.trigger=r,r.remove(),t.e.on([this.button,this.trigger],"mousedown",(t=>t.preventDefault())),this.onAction(this.onClick),this.hookStatus(W.n.ready,(()=>{this.__initFromControl(),this.update()})),e.mods&&Object.keys(e.mods).forEach((t=>{e.mods&&this.setMod(t,e.mods[t])}))}__initFromControl(){const{control:t,state:e}=this;this.updateSize(),e.name=t.name;const{textIcons:s}=this.j.o;if(!0===s||(0,v.isFunction)(s)&&s(t.name)||t.template)e.icon={name:"empty",fill:"",iconURL:""},e.text=t.text||t.name;else{if(t.iconURL)e.icon.iconURL=t.iconURL;else{const s=t.icon||t.name;e.icon.name=M.J.exists(s)||this.j.o.extraIcons?.[s]?s:""}t.iconURL||e.icon.name||(e.text=t.text||t.name)}t.tooltip&&(e.tooltip=this.j.i18n((0,v.isFunction)(t.tooltip)?t.tooltip(this.j,t,this):t.tooltip)),e.hasTrigger=!!(t.list||t.popup&&t.exec)}onTriggerClick(t){if(this.openedPopup)return void this.closePopup();const{control:e}=this;if(t.buffer={actionTrigger:this},e.list)return this.openControlList(e);if((0,v.isFunction)(e.popup)){const t=this.openPopup();if(t.parentElement=this,!1!==this.j.e.fire((0,v.camelCase)(`before-${e.name}-open-popup`),this.target,e,t)){const s=this.toolbar?.getTarget(this)??this.target??null,i=e.popup(this.j,s,e,this.closePopup,this);i&&t.setContent((0,v.isString)(i)?this.j.c.fromHTML(i):i).open((()=>(0,v.position)(this.container)),!1,this.j.o.allowTabNavigation?this.container:void 0)}this.j.e.fire((0,v.camelCase)(`after-${e.name}-open-popup`),t.container)}}openControlList(t){const e=this.jodit.options.controls??{},s=t=>N(t,e),i=t.list,r=this.openPopup(),o=qt(this.j);r.parentElement=this,o.parentElement=r,o.mode="vertical";const n=(e,i)=>{if((0,v.isString)(i)&&s(i))return{name:""+i,...s(i)};if((0,v.isString)(e)&&s(e))return{name:""+e,...s(e),..."object"==typeof i?i:{}};(t=>(0,v.isPlainObject)(t)&&"title"in t&&"value"in t)(e)&&(i=e.value,e=e.title);const{childTemplate:r}=t,o={name:""+e,template:r&&((t,e,s)=>r(t,e,s,this)),exec:t.childExec?(e,s,i)=>t.childExec?.(e,s,{...i,parentControl:t}):t.exec,data:t.data,command:t.command,isActive:t.isChildActive,isDisabled:t.isChildDisabled,mode:t.mode,args:[...t.args?t.args:[],e,i]};return(0,v.isString)(i)&&(o.text=i),o};o.build((0,v.isArray)(i)?i.map(n):(0,v.keys)(i,!1).map((t=>n(t,i[t]))),this.target),r.setContent(o.container).open((()=>(0,v.position)(this.container)),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(t){this.openedPopup&&(t&&X.i.isNode(t.target)&&(X.i.isOrContains(this.container,t.target)||this.openedPopup.isOwnClick(t))||this.closePopup())}openPopup(){return this.closePopup(),this.openedPopup=new I(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null)}onClick(t){const{control:e}=this;if((0,v.isFunction)(e.exec)){const s=this.toolbar?.getTarget(this)??this.target??null,i=e.exec(this.j,s,{control:e,originalEvent:t,button:this});if(!1!==i&&!0!==i&&(this.j?.e?.fire("synchro"),this.parentElement&&this.parentElement.update(),this.j?.e?.fire("closeAllPopups afterExec")),!1!==i)return}return e.list?this.openControlList(e):(0,v.isFunction)(e.popup)?this.onTriggerClick(t):void((e.command||e.name)&&((0,v.call)((0,v.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),e.command||e.name,!1,e.args&&e.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.closePopup(),super.destruct()}};(0,p.gn)([y.cacheHTML],Rt.prototype,"createContainer",null),(0,p.gn)([(0,y.watch)("state.hasTrigger",{immediately:!1})],Rt.prototype,"onChangeHasTrigger",null),(0,p.gn)([(0,y.watch)("trigger:click")],Rt.prototype,"onTriggerClick",null),(0,p.gn)([y.autobind],Rt.prototype,"onOutsideClick",null),(0,p.gn)([y.autobind],Rt.prototype,"closePopup",null),Rt=(0,p.gn)([y.component],Rt);let At=class t extends V{className(){return"ToolbarContent"}update(){const t=this.control.getContent(this.j,this.control,this);((0,v.isString)(t)||t.parentNode!==this.container)&&(X.i.detach(this.container),this.container.appendChild((0,v.isString)(t)?this.j.create.fromHTML(t):t)),super.update()}createContainer(){return this.j.c.span(this.componentName)}constructor(t,e,s=null){super(t),this.control=e,this.target=s,this.container.classList.add(`${this.componentName}_${this.clearName(e.name)}`),(0,v.attr)(this.container,"role","content")}};function qt(t,e){const s=(0,v.isJoditObject)(t)?new Dt(t):new zt(t);return t.o.textIcons&&s.container.classList.add("jodit_text_icons"),e&&(s.parentElement=e),t.o.toolbarButtonSize&&(s.buttonSize=t.o.toolbarButtonSize),s}function Ot(t,e,s=null){if((0,v.isFunction)(e.getContent))return new At(t,e,s);const i=new Rt(t,e,s);return i.state.tabIndex=t.o.allowTabNavigation?0:-1,i}At=(0,p.gn)([y.component],At);class Bt extends Pt{get toolbarContainer(){return this.o.fullsize||!(0,Z.HD)(this.o.toolbar)&&!X.i.isHTMLElement(this.o.toolbar)?(this.o.toolbar&&X.i.appendChildFirst(this.container,this.defaultToolbarContainer),this.defaultToolbarContainer):(0,k.resolveElement)(this.o.toolbar,this.o.shadowRoot||this.od)}setPanel(t){this.o.toolbar=t,this.buildToolbar()}buildToolbar(){if(!this.o.toolbar)return;const t=this.o.buttons?(0,tt.C1)(this.o.buttons):[];this.toolbar?.setRemoveButtons(this.o.removeButtons).build(t.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}getRegisteredButtonGroups(){return this.groupToButtons}registerButton(t){this.registeredButtons.add(t);const e=t.group??"other";return this.groupToButtons[e]||(this.groupToButtons[e]=[]),null!=t.position?this.groupToButtons[e][t.position]=t.name:this.groupToButtons[e].push(t.name),this}unregisterButton(t){this.registeredButtons.delete(t);const e=t.group??"other",s=this.groupToButtons[e];if(s){const i=s.indexOf(t.name);-1!==i&&s.splice(i,1),0===s.length&&delete this.groupToButtons[e]}return this}beforeToolbarBuild(t){if(Object.keys(this.groupToButtons).length)return t.map((t=>B(t)&&t.group&&this.groupToButtons[t.group]?{group:t.group,buttons:[...t.buttons,...this.groupToButtons[t.group]]}:t))}constructor(t,e=!1){super(t,e),this.toolbar=qt(this),this.defaultToolbarContainer=this.c.div("jodit-toolbar__box"),this.registeredButtons=new Set,this.groupToButtons={},this.isJodit=!1,this.isJodit=e,this.e.on("beforeToolbarBuild",this.beforeToolbarBuild)}destruct(){this.isDestructed||(this.setStatus(C.n$.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.toolbar.destruct(),this.toolbar=void 0,super.destruct())}}(0,p.gn)([y.autobind],Bt.prototype,"beforeToolbarBuild",null),f.D.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[],toolbarButtonSize:"middle",zIndex:"inherit"},f.D.prototype.controls.dialog={close:{icon:"cancel",exec(t){t.close()}}};let Ht=class t extends Bt{className(){return"Dialog"}get destination(){return this.o.shadowRoot??this.od.body}setElements(t,e){const s=[];(0,tt._2)(e).forEach((e=>{if((0,Z.kJ)(e)){const i=this.c.div(this.getFullElName("column"));return s.push(i),t.appendChild(i),this.setElements(i,e)}let i;i=(0,Z.HD)(e)?this.c.fromHTML(e):(0,Z.Zt)(e)?e.container:e,s.push(i),i.parentNode!==t&&t.appendChild(i)})),(0,tt.qo)(t.childNodes).forEach((e=>{-1===s.indexOf(e)&&t.removeChild(e)}))}onMouseUp(){(this.draggable||this.resizable)&&(this.removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}onHeaderMouseDown(t){const e=t.target;!this.o.draggable||e&&e.nodeName.match(/^(INPUT|SELECT)$/)||(this.draggable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.x=(0,k.css)(this.dialog,"left"),this.startPoint.y=(0,k.css)(this.dialog,"top"),this.setMaxZIndex(),t.cancelable&&t.preventDefault(),this.lockSelect(),this.addGlobalResizeListeners(),this.e&&this.e.fire(this,"startMove"))}onMouseMove(t){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+t.clientX-this.startX,this.startPoint.y+t.clientY-this.startY),this.e&&this.e.fire(this,"move",t.clientX-this.startX,t.clientY-this.startY),t.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+t.clientX-this.startX,this.startPoint.h+t.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",t.clientX-this.startX,t.clientY-this.startY))}onEsc(t){if(this.isOpened&&t.key===u.KEY_ESC&&!0!==this.getMod("static")){const e=this.getMaxZIndexDialog();e?e.close():this.close(),t.stopImmediatePropagation()}}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.addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}addGlobalResizeListeners(){const t=this;t.e.on(t.ow,"pointermove touchmove",t.onMouseMove).on(t.ow,"pointerup touchend",t.onMouseUp)}removeGlobalResizeListeners(){const t=this;t.e.off(t.ow,"mousemove pointermove",t.onMouseMove).off(t.ow,"mouseup pointerup",t.onMouseUp)}setSize(t,e){return null==t&&(t=this.dialog.offsetWidth),null==e&&(e=this.dialog.offsetHeight),(0,k.css)(this.dialog,{width:t,height:e}),this}calcAutoSize(){return this.setSize("auto","auto"),this.setSize(),this}setPosition(t,e){let s=this.ow.innerWidth/2-this.dialog.offsetWidth/2,i=this.ow.innerHeight/2-this.dialog.offsetHeight/2;return 0>s&&(s=0),0>i&&(i=0),void 0!==t&&void 0!==e&&(this.offsetX=t,this.offsetY=e,this.moved=Math.abs(t-s)>100||Math.abs(e-i)>100),this.dialog.style.left=(t||s)+"px",this.dialog.style.top=(e||i)+"px",this}setHeader(t){return this.setElements(this.dialogbox_header,t),this}setContent(t){return this.setElements(this.dialogbox_content,t),this}setFooter(t){return this.setElements(this.dialogbox_footer,t),this.setMod("footer",!!t),this}getZIndex(){return parseInt((0,k.css)(this.container,"zIndex"),10)||0}getMaxZIndexDialog(){let t,e,s=0,i=this;return(0,k.$$)(".jodit-dialog",this.destination).forEach((r=>{t=r.component,e=parseInt((0,k.css)(r,"zIndex"),10),t.isOpened&&!isNaN(e)&&e>s&&(i=t,s=e)})),i}setMaxZIndex(){if(this.getMod("static"))return;let t=20000004,e=0;(0,k.$$)(".jodit-dialog",this.destination).forEach((s=>{e=parseInt((0,k.css)(s,"zIndex"),10),t=Math.max(isNaN(e)?0:e,t)})),this.container.style.zIndex=""+(t+1)}toggleFullSize(t){(0,Z.nj)(t)&&(t=!this.getMod("fullsize")),this.setMod("fullsize",t),super.toggleFullSize(t)}open(t,e,s,i){if(j.TB.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;(0,Z.jn)(t)&&(s=t),(0,Z.jn)(e)&&(i=e),this.destroyAfterClose=!0===s;const r=(0,Z.jn)(t)?void 0:t,o=(0,Z.jn)(e)?void 0:e;return void 0!==o&&this.setHeader(o),r&&this.setContent(r),this.setMod("active",!0),this.isOpened=!0,this.setModal(i),this.destination.appendChild(this.container),!0!==this.getMod("static")?(this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex()):this.container.style.removeProperty("z-index"),this.o.fullsize&&this.toggleFullSize(!0),this.e.fire("afterOpen",this),this}setModal(t){return this.isModal=!!t,this.setMod("modal",this.isModal),this}close(){return this.isDestructed||!this.isOpened||!0===this.getMod("static")||!1===this.e.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,this.isFullSize&&this.toggleFullSize(!1),S.i.safeRemove(this.container),this.removeGlobalResizeListeners(),this.e.fire(this,"afterClose"),this.e.fire(this.ow,"joditCloseDialog"),this.destroyAfterClose&&this.destruct()),this}constructor(t={}){super(t),this.destroyAfterClose=!1,this.moved=!1,this.resizable=!1,this.draggable=!1,this.startX=0,this.startY=0,this.startPoint={x:0,y:0,w:0,h:0},this.lockSelect=()=>{this.setMod("moved",!0)},this.unlockSelect=()=>{this.setMod("moved",!1)},this.onResize=()=>{this.options&&this.o.resizable&&!this.moved&&this.isOpened&&!this.offsetX&&!this.offsetY&&this.setPosition()},this.isModal=!1,this.isOpened=!1;const e=this;e.options=(0,k.ConfigProto)(t,(0,k.ConfigProto)(f.D.prototype.dialog,Pt.defaultOptions)),S.i.safeRemove(e.container);const s=this.getFullElName.bind(this);e.container=this.c.fromHTML(`<div class="jodit jodit-dialog ${this.componentName}">\n\t\t\t\t<div class="${s("overlay")}"></div>\n\t\t\t\t<div class="${this.getFullElName("panel")}">\n\t\t\t\t\t<div class="${s("header")}">\n\t\t\t\t\t\t<div class="${s("header-title")}"></div>\n\t\t\t\t\t\t<div class="${s("header-toolbar")}"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="${s("content")}"></div>\n\t\t\t\t\t<div class="${s("footer")}"></div>\n\t\t\t\t\t<div class="${s("resizer")}">${M.J.get("resize_handler")}</div>\n\t\t\t\t</div>\n\t\t\t</div>`),this.o.zIndex&&(this.container.style.zIndex=""+this.o.zIndex),(0,k.attr)(e.container,"role","dialog"),Object.defineProperty(e.container,"component",{value:this}),e.setMod("theme",e.o.theme||"default").setMod("resizable",!!e.o.resizable);const i=e.getElm("panel"),r=e.getElm("resizer"),o=e.getElm("header-title"),n=e.getElm("content"),a=e.getElm("footer"),l=e.getElm("header-toolbar");this.dialog=i,this.resizer=r,this.dialogbox_header=o,this.dialogbox_content=n,this.dialogbox_footer=a,this.dialogbox_toolbar=l,(0,k.css)(e.dialog,{maxWidth:e.options.maxWidth,minHeight:e.options.minHeight,minWidth:e.options.minWidth});const c=e.getElm("header");c&&e.e.on(c,"pointerdown touchstart",e.onHeaderMouseDown),e.e.on(e.resizer,"mousedown touchstart",e.onResizerMouseDown);const h=j.pw.get("fullsize");(0,Z.mf)(h)&&h(e),this.e.on(e.container,"close_dialog",e.close).on(this.ow,"keydown",this.onEsc).on(this.ow,"resize",this.onResize)}buildToolbar(){this.o.buttons&&this.toolbar.build((0,tt.C1)(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}destruct(){this.isInDestruct||(this.setStatus(C.n$.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.onEsc).off(this.ow,"resize",this.onResize)),super.destruct())}};(0,p.gn)([y.autobind],Ht.prototype,"onMouseUp",null),(0,p.gn)([y.autobind],Ht.prototype,"onHeaderMouseDown",null),(0,p.gn)([y.autobind],Ht.prototype,"onMouseMove",null),(0,p.gn)([y.autobind],Ht.prototype,"onEsc",null),(0,p.gn)([y.autobind],Ht.prototype,"onResizerMouseDown",null),(0,p.gn)([y.autobind],Ht.prototype,"close",null),(0,p.gn)([(0,y.hook)("ready")],Ht.prototype,"buildToolbar",null),Ht=(0,p.gn)([y.component],Ht);var Ft=r(34578);function $t(t,e,s,i="jodit-dialog_alert"){(0,L.m)(e)&&(s=e,e=void 0);const r=this instanceof Ht?this:new Ht,o=r.c.div(i),n=U(r,"ok","Ok");return(0,Ft._)(t).forEach((t=>{o.appendChild(S.i.isNode(t)?t:r.c.fromHTML(t))})),n.onAction((()=>{s&&(0,L.m)(s)&&!1===s(r)||r.close()})),r.setFooter([n]),r.open(o,e||"&nbsp;",!0,!0),n.focus(),r}function Wt(t,e,s,i,r){const o=this instanceof Ht?this:new Ht,n=U(o,"cancel","Cancel"),a=U(o,"ok","Ok"),l=o.c.element("form",{class:"jodit-dialog_prompt"}),c=o.c.element("input",{autofocus:!0,class:"jodit-input"}),h=o.c.element("label");(0,L.m)(e)&&(s=e,e=void 0),i&&(0,yt.L)(c,"placeholder",i),h.appendChild(o.c.text(t)),l.appendChild(h),l.appendChild(c),n.onAction(o.close);const d=()=>{s&&(0,L.m)(s)&&!1===s(c.value)||o.close()};return a.onAction(d),o.e.on(l,"submit",(()=>(d(),!1))),o.setFooter([a,n]),o.open(l,e||"&nbsp;",!0,!0),c.focus(),void 0!==r&&r.length&&(c.value=r,c.select()),o}function Vt(t,e,s){const i=this instanceof Ht?this:new Ht,r=i.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),o=i.c.element("label");(0,L.m)(e)&&(s=e,e=void 0),o.appendChild(i.c.fromHTML(t)),r.appendChild(o);const n=t=>()=>{s&&!1===s(t)||i.close()},a=U(i,"cancel","Cancel"),l=U(i,"ok","Yes");return a.onAction(n(!1)),l.onAction(n(!0)),i.e.on(r,"submit",(()=>(n(!0)(),!1))),i.setFooter([l,a]),i.open(r,e||"&nbsp;",!0,!0),l.focus(),i}var Ut=r(57549);class Yt{get doc(){return(0,v.isFunction)(this.document)?this.document():this.document}constructor(t,e){this.document=t,this.createAttributes=e}element(t,e,s){const i=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(i),e&&((0,v.isPlainObject)(e)?(0,v.attr)(i,e):s=e),s&&(0,v.asArray)(s).forEach((t=>i.appendChild((0,v.isString)(t)?this.fromHTML(t):t))),i}div(t,e,s){const i=this.element("div",e,s);return t&&(i.className=t),i}sandbox(){const t=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(t);const e=t.contentWindow?.document;if(!e)throw Error("Iframe error");return e.open(),e.write("<!DOCTYPE html><html><head></head><body></body></html>"),e.close(),e.body}span(t,e,s){const i=this.element("span",e,s);return t&&(i.className=t),i}a(t,e,s){const i=this.element("a",e,s);return t&&(i.className=t),i}text(t){return this.doc.createTextNode(t)}fake(){return this.text(u.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,e){const s=this.div();s.innerHTML=""+t;const i=s.firstChild===s.lastChild&&s.firstChild?s.firstChild:s;if(S.i.safeRemove(i),e){const t=(0,v.refs)(i);Object.keys(e).forEach((s=>{const i=t[s];i&&!1===e[s]&&S.i.hide(i)}))}return i}applyCreateAttributes(t){if(this.createAttributes){const e=this.createAttributes;if(e&&e[t.tagName.toLowerCase()]){const s=e[t.tagName.toLowerCase()];(0,v.isFunction)(s)?s(t):(0,v.isPlainObject)(s)&&(0,v.attr)(t,s)}}}}class Gt{constructor(t){this.data=t,Object.keys(t).forEach((e=>{this[e]=t[e]}))}static create(t){return t instanceof Gt?t:new Gt(t)}get path(){return(0,v.normalizePath)(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){const t=this.time||""+(new Date).getTime(),{thumbIsAbsolute:e,source:s,thumb:i,file:r}=this.data,o=i||r;return e&&o?o:(0,v.normalizeUrl)(s.baseurl,s.path,o||"")+"?_tmst="+encodeURIComponent(t)}get fileURL(){let{name:t}=this.data;const{file:e,fileIsAbsolute:s,source:i}=this.data;return void 0!==e&&(t=e),s&&t?t:(0,v.normalizeUrl)(i.baseurl,i.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}toJSON(){return this.data}}const Xt="default",Kt=["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"];let Jt=class t{constructor(t,e){this.parent=t,this.options=e,this.__currentPermissions=null,this.ajaxInstances=new Map,this.progressHandler=t=>{}}get o(){return this.options}get(t){const e=this.ajaxInstances;if(e.has(t)){const s=e.get(t);s?.abort(),e.delete(t)}const s=(0,v.ConfigProto)(void 0!==this.options[t]?this.options[t]:{},(0,v.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));s.prepareData&&(s.data=s.prepareData.call(this,s.data));const i=new _(s);e.set(t,i);const r=i.send();return r.finally((()=>{i.destruct(),e.delete(t),this.progressHandler(100)})).catch((()=>null)),r.then((t=>t.json())).then((t=>{if(t&&!this.isSuccess(t))throw Error(this.getMessage(t));return t}))}onProgress(t){this.progressHandler=t}async permissions(t,e){return this.o.permissions?(this.o.permissions.data.path=t,this.o.permissions.data.source=e,this.o.permissions.url?this.get("permissions").then((t=>{let e=this.o.permissions.process;if(e||(e=this.o.ajax.process),e){const s=e.call(self,t);s.data.permissions&&(this.__currentPermissions=s.data.permissions)}return this.__currentPermissions})):null):null}canI(t){const e="allow"+t;if(!u.IS_PROD&&!Kt.includes(e))throw(0,v.error)("Wrong action "+t);const s=this.o.permissionsPresets[e];return void 0!==s?s:null==this.__currentPermissions||void 0===this.__currentPermissions[e]||this.__currentPermissions[e]}__items(t,e,s,i){const r=this.options;return r.items?(r.items.data.path=t,r.items.data.source=e,r.items.data.mods=s,this.get("items").then((t=>{let e=this.o.items.process;return e||(e=this.o.ajax.process),e&&(t=e.call(self,t)),i(t)}))):Promise.reject("Set Items api options")}items(t,e,s={}){return this.__items(t,e,s,(t=>this.generateItemsList(t.data.sources,s)))}itemsEx(t,e,s={}){return this.__items(t,e,s,(t=>{return{items:this.generateItemsList(t.data.sources,s),loadedTotal:(e=t.data.sources,e.reduce(((t,e)=>t+e.files.length),0))};var e}))}generateItemsList(t,e={}){const s=[],i=t=>!e.filterWord?.length||void 0===this.o.filter||this.o.filter(t,e.filterWord);return t.forEach((t=>{if(t.files&&t.files.length){const{sort:r}=this.o;(0,v.isFunction)(r)&&e.sortBy&&t.files.sort(((t,s)=>r(t,s,e.sortBy))),t.files.forEach((r=>{i(r)&&(t=>"folder"===t.type||!e.onlyImages||void 0===t.isImage||t.isImage)(r)&&s.push(Gt.create({...r,sourceName:t.name,source:t}))}))}})),s}async tree(t,e){return t=(0,v.normalizeRelativePath)(t),this.o.folder?(await this.permissions(t,e),this.o.folder.data.path=t,this.o.folder.data.source=e,this.get("folder").then((t=>{let e=this.o.folder.process;return e||(e=this.o.ajax.process),e&&(t=e.call(self,t)),t.data.sources}))):Promise.reject("Set Folder Api options")}getPathByUrl(t){return(0,v.set)("options.getLocalFileByUrl.data.url",t,this),this.get("getLocalFileByUrl").then((t=>{if(this.isSuccess(t))return t.data;throw(0,v.error)(this.getMessage(t))}))}createFolder(t,e,s){const{create:i}=this.o;if(!i)throw(0,v.error)("Set Create api options");return i.data.source=s,i.data.path=e,i.data.name=t,this.get("create").then((t=>{if(this.isSuccess(t))return!0;throw(0,v.error)(this.getMessage(t))}))}move(t,e,s,i){const r=i?"fileMove":"folderMove",o=this.options[r];if(!o)throw(0,v.error)("Set Move api options");return o.data.from=t,o.data.path=e,o.data.source=s,this.get(r).then((t=>{if(this.isSuccess(t))return!0;throw(0,v.error)(this.getMessage(t))}))}remove(t,e,s,i){const r=this.o[t];if(!r)throw(0,v.error)(`Set "${t}" api options`);return r.data.path=e,r.data.name=s,r.data.source=i,this.get(t).then((t=>(r.process&&(t=r.process.call(this,t)),this.getMessage(t))))}fileRemove(t,e,s){return this.remove("fileRemove",t,e,s)}folderRemove(t,e,s){return this.remove("folderRemove",t,e,s)}rename(t,e,s,i,r){const o=this.o[t];if(!o)throw(0,v.error)(`Set "${t}" api options`);return o.data.path=e,o.data.name=s,o.data.newname=i,o.data.source=r,this.get(t).then((t=>(o.process&&(t=o.process.call(self,t)),this.getMessage(t))))}folderRename(t,e,s,i){return this.rename("folderRename",t,e,s,i)}fileRename(t,e,s,i){return this.rename("fileRename",t,e,s,i)}changeImage(t,e,s,i,r,o){this.o[t]||(this.o[t]={data:{}});const n=this.o[t];return void 0===n.data&&(n.data={action:t}),n.data.newname=r||i,o&&(n.data.box=o),n.data.path=e,n.data.name=i,n.data.source=s,this.get(t).then((()=>!0))}crop(t,e,s,i,r){return this.changeImage("crop",t,e,s,i,r)}resize(t,e,s,i,r){return this.changeImage("resize",t,e,s,i,r)}getMessage(t){return this.options.getMessage(t)}isSuccess(t){return this.options.isSuccess(t)}destruct(){this.ajaxInstances.forEach((t=>t.destruct())),this.ajaxInstances.clear()}};Jt=(0,p.gn)([y.autobind],Jt);var Zt=Jt,Qt=r(46361);const te=new WeakMap,ee=t=>{let e=te.get(t);return e||(e={},te.set(t,e)),e};function se(t){return t.files.setMod("active",!0),t.files.setMod("loading",!0),t.dataProvider.items(t.state.currentPath,t.state.currentSource,{sortBy:t.state.sortBy,onlyImages:t.state.onlyImages,filterWord:t.state.filterWord}).then((e=>{e&&(t.state.elements=e,t.state.activeElements=[])})).catch(t.status).finally((()=>t.files.setMod("loading",!1)))}async function ie(t){t.tree.setMod("active",!0),X.i.detach(t.tree.container);const e=se(t);if(t.o.showFoldersPanel){t.tree.setMod("loading",!0);const s=t.dataProvider.tree(t.state.currentPath,t.state.currentSource).then((e=>{t.state.sources=e})).catch(t.status).finally((()=>t.tree.setMod("loading",!1)));return Promise.all([s,e])}return t.tree.setMod("active",!1),e}function re(){const t=ee(this),{state:e,files:s,create:i,options:r}=this,o=e=>{const s=e.uniqueHashKey;if(t[s])return t[s].elm;const o=i.fromHTML(r.getThumbTemplate.call(this,e,e.source,""+e.sourceName));return o.dataset.key=s,t[s]={item:e,elm:o},t[s].elm};e.on(["change.currentPath","change.currentSource"],this.async.debounce((()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeLastOpenedFolder&&this.storage.set("currentPath",this.state.currentPath).set("currentSource",this.state.currentSource),ie(this).catch(this.status)}),this.defaultTimeout)).on("beforeChange.activeElements",(()=>{e.activeElements.forEach((e=>{const i=e.uniqueHashKey,{elm:r}=t[i];r&&r.classList.remove(s.getFullElName("item","active",!0))}))})).on("change.activeElements",(()=>{this.e.fire("changeSelection"),e.activeElements.forEach((e=>{const i=e.uniqueHashKey,{elm:r}=t[i];r&&r.classList.add(s.getFullElName("item","active",!0))}))})).on("change.view",(()=>{s.setMod("view",e.view),this.o.saveStateInStorage&&this.o.saveStateInStorage.storeView&&this.storage.set("view",e.view)})).on("change.sortBy",(()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeSortBy&&this.storage.set("sortBy",e.sortBy)})).on("change.elements",this.async.debounce((()=>{X.i.detach(s.container),e.elements.length?e.elements.forEach((t=>{this.files.container.appendChild(o(t))})):s.container.appendChild(i.div(this.componentName+"_no-files_true",this.i18n("There are no files")))}),this.defaultTimeout)).on("change.sources",this.async.debounce((()=>{X.i.detach(this.tree.container),e.sources.forEach((t=>{const e=t.name;if(e&&"default"!==e&&this.tree.container.appendChild(i.div(this.tree.getFullElName("source-title"),e)),t.folders.forEach((s=>{const o=i.a(this.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":(0,Qt.AH)(t.path,s+"/"),"data-name":s,"data-source":e,"data-source-path":t.path},i.span(this.tree.getFullElName("item-title"),s)),n=i=>r=>{this.e.fire(i+".filebrowser",{name:s,path:(0,Qt.AH)(t.path+"/"),source:e}),r.stopPropagation(),r.preventDefault()};if(this.e.on(o,"click",n("openFolder")),this.tree.container.appendChild(o),".."!==s&&"."!==s){if(r.renameFolder&&this.dataProvider.canI("FolderRename")){const t=U(this,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});t.onAction(n("renameFolder")),o.appendChild(t.container)}if(r.deleteFolder&&this.dataProvider.canI("FolderRemove")){const t=U(this,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});t.onAction(n("removeFolder")),o.appendChild(t.container)}}})),r.createNewFolder&&this.dataProvider.canI("FolderCreate")){const s=U(this,"plus","Add folder","secondary");s.onAction((()=>{this.e.fire("addFolder",{path:(0,Qt.AH)(t.path+"/"),source:e})})),this.tree.append(s)}}))}),this.defaultTimeout))}const oe="jodit-image-editor",ne=M.J.get.bind(M.J),ae=(t,e="jodti-image-editor_active")=>t?e:"";var le,ce=r(3125),he=r.n(ce),de=r(54209),ue=r.n(de);f.D.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},M.J.set("crop",he()).set("resize",ue());const pe="jodit-image-editor",fe="resize",me="crop";let ge=le=class t extends C.Hr{className(){return"ImageEditor"}onTitleModeClick(t){const e=this,s=t.target,i=s?.parentElement;if(!i)return;(0,v.$$)(`.${pe}__slider,.${pe}__area`,e.editor).forEach((t=>t.classList.remove(pe+"_active"))),i.classList.add(pe+"_active"),this.activeTab=(0,v.attr)(i,"-area")||fe;const r=e.editor.querySelector(`.${pe}__area.${pe}__area_`+e.activeTab);r&&r.classList.add(pe+"_active"),e.activeTab===me&&e.showCrop()}onChangeSizeInput(t){const e=this,s=t.target,{widthInput:i,heightInput:r}=(0,v.refs)(this.editor),o="widthInput"===(0,v.attr)(s,"data-ref"),n=parseInt(s.value,10),a=o?e.o.min_height:e.o.min_width;let l;n>(o?e.o.min_width:e.o.min_height)&&((0,v.css)(e.image,o?"width":"height",n),e.resizeUseRatio&&(l=Math.round(o?n/e.ratio:n*e.ratio),l>a&&((0,v.css)(e.image,o?"height":"width",l),o?r.value=""+l:i.value=""+l))),this.j.e.fire(e.resizeHandler,"updatesize")}onResizeHandleMouseDown(t){const e=this;e.target=t.target,t.preventDefault(),t.stopImmediatePropagation(),e.clicked=!0,e.start_x=t.clientX,e.start_y=t.clientY,e.activeTab===me?(e.top_x=(0,v.css)(e.cropHandler,"left"),e.top_y=(0,v.css)(e.cropHandler,"top"),e.width=e.cropHandler.offsetWidth,e.height=e.cropHandler.offsetHeight):(e.width=e.image.offsetWidth,e.height=e.image.offsetHeight),e.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(t){this.clicked&&(this.clicked=!1,t.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(t){const e=this;if(!e.clicked)return;const{widthInput:s,heightInput:i}=(0,v.refs)(this.editor);e.diff_x=t.clientX-e.start_x,e.diff_y=t.clientY-e.start_y,e.activeTab===fe&&e.resizeUseRatio||e.activeTab===me&&e.cropUseRatio?e.diff_x?(e.new_w=e.width+e.diff_x,e.new_h=Math.round(e.new_w/e.ratio)):(e.new_h=e.height+e.diff_y,e.new_w=Math.round(e.new_h*e.ratio)):(e.new_w=e.width+e.diff_x,e.new_h=e.height+e.diff_y),e.activeTab===fe?(e.new_w>e.o.resizeMinWidth&&((0,v.css)(e.image,"width",e.new_w+"px"),s.value=""+e.new_w),e.new_h>e.o.resizeMinHeight&&((0,v.css)(e.image,"height",e.new_h+"px"),i.value=""+e.new_h),this.j.e.fire(e.resizeHandler,"updatesize")):(e.target!==e.cropHandler?(e.top_x+e.new_w>e.cropImage.offsetWidth&&(e.new_w=e.cropImage.offsetWidth-e.top_x),e.top_y+e.new_h>e.cropImage.offsetHeight&&(e.new_h=e.cropImage.offsetHeight-e.top_y),(0,v.css)(e.cropHandler,{width:e.new_w,height:e.new_h})):(e.top_x+e.diff_x+e.cropHandler.offsetWidth>e.cropImage.offsetWidth&&(e.diff_x=e.cropImage.offsetWidth-e.top_x-e.cropHandler.offsetWidth),(0,v.css)(e.cropHandler,"left",e.top_x+e.diff_x),e.top_y+e.diff_y+e.cropHandler.offsetHeight>e.cropImage.offsetHeight&&(e.diff_y=e.cropImage.offsetHeight-e.top_y-e.cropHandler.offsetHeight),(0,v.css)(e.cropHandler,"top",e.top_y+e.diff_y)),this.j.e.fire(e.cropHandler,"updatesize"))}get o(){return this.options}hide(){this._dialog.close()}open(t,e){return this.j.async.promise((s=>{const i=(new Date).getTime();this.image=this.j.c.element("img"),(0,v.$$)("img,.jodit-icon_loader",this.resize_box).forEach(X.i.safeRemove),(0,v.$$)("img,.jodit-icon_loader",this.crop_box).forEach(X.i.safeRemove),(0,v.css)(this.cropHandler,"background","transparent"),this.onSave=e,this.resize_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.crop_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.image.setAttribute("src",t+=/\?/.test(t)?"&_tst="+i:"?_tst="+i),this._dialog.open();const{widthInput:r,heightInput:o}=(0,v.refs)(this.editor),n=()=>{this.isDestructed||(this.image.removeEventListener("load",n),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,r.value=""+this.naturalWidth,o.value=""+this.naturalHeight,this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),X.i.safeRemove.apply(null,(0,v.$$)(".jodit-icon_loader",this.editor)),this.activeTab===me&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),s(this._dialog))};this.image.addEventListener("load",n),this.image.complete&&n()}))}constructor(t){super(t),this.resizeUseRatio=!0,this.cropUseRatio=!0,this.clicked=!1,this.start_x=0,this.start_y=0,this.top_x=0,this.top_y=0,this.width=0,this.height=0,this.activeTab=fe,this.naturalWidth=0,this.naturalHeight=0,this.ratio=0,this.new_h=0,this.new_w=0,this.diff_x=0,this.diff_y=0,this.cropBox={x:0,y:0,w:0,h:0},this.resizeBox={w:0,h:0},this.calcCropBox=()=>{const t=this.crop_box.parentNode,e=.8*t.offsetWidth,s=.8*t.offsetHeight;let i=e,r=s;const{naturalWidth:o,naturalHeight:n}=this;e>o&&s>n?(i=o,r=n):this.ratio>e/s?(i=e,r=n*(e/o)):(i=o*(s/n),r=s),(0,v.css)(this.crop_box,{width:i,height:r})},this.showCrop=()=>{if(!this.cropImage)return;this.calcCropBox();const t=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=le.calcValueByPercent(t,this.o.cropDefaultWidth);const e=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.new_h=this.cropUseRatio?this.new_w/this.ratio:le.calcValueByPercent(e,this.o.cropDefaultHeight),(0,v.css)(this.cropHandler,{backgroundImage:"url("+(0,v.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:t/2-this.new_w/2,top:e/2-this.new_h/2}),this.j.e.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=(0,v.css)(this.cropHandler,"left")/t,this.cropBox.y=(0,v.css)(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,{widthInput:e,heightInput:s}=(0,v.refs)(this.editor);t.j.e.on([t.editor.querySelector(".jodit_bottomright"),t.cropHandler],"mousedown."+pe,this.onResizeHandleMouseDown).on(this.j.ow,"resize."+pe,(()=>{this.j.e.fire(t.resizeHandler,"updatesize"),t.showCrop(),this.j.e.fire(t.cropHandler,"updatesize")})),t.j.e.on((0,v.toArray)(this.editor.querySelectorAll(`.${pe}__slider-title`)),"click",this.onTitleModeClick).on([e,s],"input",this.onChangeSizeInput);const{keepAspectRatioResize:i,keepAspectRatioCrop:r}=(0,v.refs)(this.editor);i&&i.addEventListener("change",(()=>{this.resizeUseRatio=i.checked})),r&&r.addEventListener("change",(()=>{this.cropUseRatio=r.checked})),t.j.e.on(t.resizeHandler,"updatesize",(()=>{(0,v.css)(t.resizeHandler,{top:0,left:0,width:t.image.offsetWidth||t.naturalWidth,height:t.image.offsetHeight||t.naturalHeight}),this.updateResizeBox()})).on(t.cropHandler,"updatesize",(()=>{if(!t.cropImage)return;let e=(0,v.css)(t.cropHandler,"left"),s=(0,v.css)(t.cropHandler,"top"),i=t.cropHandler.offsetWidth,r=t.cropHandler.offsetHeight;0>e&&(e=0),0>s&&(s=0),e+i>t.cropImage.offsetWidth&&(i=t.cropImage.offsetWidth-e,t.cropUseRatio&&(r=i/t.ratio)),s+r>t.cropImage.offsetHeight&&(r=t.cropImage.offsetHeight-s,t.cropUseRatio&&(i=r*t.ratio)),(0,v.css)(t.cropHandler,{width:i,height:r,left:e,top:s,backgroundPosition:-e-1+"px "+(-s-1)+"px",backgroundSize:t.cropImage.offsetWidth+"px "+t.cropImage.offsetHeight+"px"}),t.updateCropBox()})),Object.values(t.buttons).forEach((i=>{i.onAction((()=>{const r={action:t.activeTab,box:t.activeTab===fe?t.resizeBox:t.cropBox};switch(i){case t.buttons.saveas:t.j.prompt("Enter new name","Save in new file",(e=>{if(!(0,v.trim)(e))return t.j.alert("The name should not be empty"),!1;t.onSave(e,r,t.hide,(e=>{t.j.alert(e.message)}))}));break;case t.buttons.save:t.onSave(void 0,r,t.hide,(e=>{t.j.alert(e.message)}));break;case t.buttons.reset:t.activeTab===fe?((0,v.css)(t.image,{width:null,height:null}),e.value=""+t.naturalWidth,s.value=""+t.naturalHeight,t.j.e.fire(t.resizeHandler,"updatesize")):t.showCrop()}}))}))},this.options=t&&t.o&&t.o.imageeditor?t.o.imageeditor:f.D.defaultOptions.imageeditor;const e=this.options;this.resizeUseRatio=e.resizeUseRatio,this.cropUseRatio=e.cropUseRatio,this.buttons={reset:U(this.j,"update","Reset"),save:U(this.j,"save","Save"),saveas:U(this.j,"save","Save as ...")},this.activeTab=e.resize?fe:me,this.editor=((t,e)=>{const s=t.i18n.bind(t),i=(t,e,i=!0)=>`<div class="jodit-form__group">\n\t\t\t<label>${s(t)}</label>\n\n\t\t\t<label class='jodit-switcher'>\n\t\t\t\t<input ${ae(i,"checked")} data-ref="${e}" type="checkbox"/>\n\t\t\t\t<span class="jodit-switcher__slider"></span>\n\t\t\t</label>\n\t</div>`;return t.create.fromHTML(`<form class="${oe} jodit-properties">\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-3-4 jodit_col-sm-5-5">\n\t\t\t${e.resize?`<div class="${oe}__area ${oe}__area_resize ${oe}_active">\n\t\t\t\t\t\t\t<div data-ref="resizeBox" class="${oe}__box"></div>\n\t\t\t\t\t\t\t<div class="${oe}__resizer">\n\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t${e.crop?`<div class="${oe}__area ${oe}__area_crop ${ae(!e.resize)}">\n\t\t\t\t\t\t\t<div data-ref="cropBox" class="${oe}__box">\n\t\t\t\t\t\t\t\t<div class="${oe}__croper">\n\t\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t\t\t<i class="${oe}__sizes"></i>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t</div>\n\t\t\t<div class="jodit_col-lg-1-4 jodit_col-sm-5-5">\n\t\t\t${e.resize?`<div data-area="resize" class="${oe}__slider ${oe}_active">\n\t\t\t\t\t\t\t<div class="${oe}__slider-title">\n\t\t\t\t\t\t\t\t${ne("resize")}\n\t\t\t\t\t\t\t\t${s("Resize")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="${oe}__slider-content">\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t${s("Width")}\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="widthInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t${s("Height")}\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="heightInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t${i("Keep Aspect Ratio","keepAspectRatioResize")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t${e.crop?`<div data-area="crop" class="${oe}__slider ${ae(!e.resize)}'">\n\t\t\t\t\t\t\t<div class="${oe}__slider-title">\n\t\t\t\t\t\t\t\t${ne("crop")}\n\t\t\t\t\t\t\t\t${s("Crop")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="${oe}__slider-content">\n\t\t\t\t\t\t\t\t${i("Keep Aspect Ratio","keepAspectRatioCrop")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t</div>\n\t\t</div>\n\t</form>`)})(this.j,this.options);const{resizeBox:s,cropBox:i}=(0,v.refs)(this.editor);this.resize_box=s,this.crop_box=i,this.sizes=this.editor.querySelector(`.${pe}__area.${pe}__area_crop .jodit-image-editor__sizes`),this.resizeHandler=this.editor.querySelector(`.${pe}__resizer`),this.cropHandler=this.editor.querySelector(`.${pe}__croper`),this._dialog=this.j.dlg({buttons:["fullsize","dialog.close"]}),this._dialog.setContent(this.editor),this._dialog.setSize(this.o.width,this.o.height),this._dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),X.i.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,"."+pe).off("."+pe),super.destruct())}};function ve(t,e,s,i,r,o){return this.getInstance("ImageEditor",this.o).open(t,((t,n,a,l)=>(0,v.call)("resize"===n.action?this.dataProvider.resize:this.dataProvider.crop,s,i,e,t,n.box).then((t=>{t&&(a(),r&&r())})).catch((t=>{l(t),o&&o(t)}))))}function be(t,e,s){return t.dataProvider.fileRemove(t.state.currentPath,e,s).then((s=>{t.status(s||t.i18n('File "%s" was deleted',e),!0)})).catch(t.status)}ge.calcValueByPercent=(t,e)=>{const s=""+e,i=parseFloat(""+t);let r;return r=/^[-+]?[0-9]+(px)?$/.exec(s),r?parseInt(s,10):(r=/^([-+]?[0-9.]+)%$/.exec(s),r?Math.round(i*(parseFloat(r[1])/100)):i||0)},(0,p.gn)([y.autobind],ge.prototype,"onTitleModeClick",null),(0,p.gn)([(0,y.debounce)(),y.autobind],ge.prototype,"onChangeSizeInput",null),(0,p.gn)([y.autobind],ge.prototype,"onResizeHandleMouseDown",null),(0,p.gn)([y.autobind],ge.prototype,"onGlobalMouseUp",null),(0,p.gn)([(0,y.throttle)(10)],ge.prototype,"onGlobalMouseMove",null),(0,p.gn)([y.autobind],ge.prototype,"hide",null),(0,p.gn)([y.autobind],ge.prototype,"open",null),ge=le=(0,p.gn)([y.component],ge);const ye="jodit-filebrowser-preview",we=(t="next",e="right")=>`<div class="${ye}__navigation ${ye}__navigation_arrow_${t}">`+M.J.get("angle-"+e)+"</a>";var _e=t=>{if(!t.o.contextMenu)return()=>{};const e=new Q(t);return s=>{const i=Ce(s.target,t.container);if(!i)return;let r=i;const o=t.options,n=t=>(0,k.attr)(r,t)||"";return t.async.setTimeout((()=>{const a=Se(i,ee(t));a&&(t.state.activeElements=[a],e.show(s.clientX,s.clientY,[!("1"===n("data-is-file")||!o.editImage||!t.dataProvider.canI("ImageResize")&&!t.dataProvider.canI("ImageCrop"))&&{icon:"pencil",title:"Edit",exec(){return ve.call(t,n("href"),n("data-name"),n("data-path"),n("data-source"))}},!!t.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec(){t.e.fire("fileRename.filebrowser",n("data-name"),n("data-path"),n("data-source"))}},!!t.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",async exec(){try{await be(t,n("data-name"),n("data-source"))}catch(e){return t.status(e)}return t.state.activeElements=[],ie(t).catch(t.status)}},!!o.preview&&{icon:"eye",title:"Preview",exec(){const e=t.dlg({buttons:["fullsize","dialog.close"]}),s=t.c.div(ye,'<div class="jodit-icon_loader"></div>'),i=t.c.div(ye+"__box"),a=t.c.fromHTML(we()),l=t.c.fromHTML(we("prev","left")),c=n=>{const c=t.c.element("img");c.setAttribute("src",n);const h=()=>{t.isInDestruct||(t.e.off(c,"load"),X.i.detach(s),o.showPreviewNavigation&&(X.i.prevWithClass(r,t.files.getFullElName("item"))&&s.appendChild(l),X.i.nextWithClass(r,t.files.getFullElName("item"))&&s.appendChild(a)),s.appendChild(i),i.appendChild(c),e.setPosition(),t?.events?.fire("previewOpenedAndLoaded"))};t.e.on(c,"load",h),c.complete&&h()};t.e.on([a,l],"click",(function(){if(r=this===a?X.i.nextWithClass(r,t.files.getFullElName("item")):X.i.prevWithClass(r,t.files.getFullElName("item")),!r)throw(0,k.error)("Need element");X.i.detach(s),X.i.detach(i),s.innerHTML='<div class="jodit-icon_loader"></div>',c(n("href"))})),t.e.on("beforeDestruct",(()=>{e.destruct()})),e.container.classList.add(ye+"__dialog"),e.setContent(s),e.setPosition(),e.open(),c(n("href")),t.events.on("beforeDestruct",(()=>{e.destruct()})).fire("previewOpened")}},{icon:"upload",title:"Download",exec(){const e=n("href");e&&t.ow.open(e)}}]))}),t.defaultTimeout),t.e.on("beforeClose",(()=>e.close())).on("beforeDestruct",(()=>e.destruct())),s.stopPropagation(),s.preventDefault(),!1}};const Ce=(t,e,s="a")=>X.i.closest(t,(t=>X.i.isTag(t,s)),e),Se=(t,e)=>{const{key:s}=t.dataset,{item:i}=e[s||""];return i};function Ee(){let t=!1;const e=ee(this),s=this;s.e.on(s.tree.container,"dragstart",(e=>{const i=Ce(e.target,s.container);i&&s.o.moveFolder&&(t=i)})).on(s.tree.container,"drop",(e=>{if((s.o.moveFile||s.o.moveFolder)&&t){let i=(0,v.attr)(t,"-path")||"";if(!s.o.moveFolder&&t.classList.contains(this.tree.getFullElName("item")))return!1;if(t.classList.contains(this.files.getFullElName("item"))&&(i+=(0,v.attr)(t,"-name"),!s.o.moveFile))return!1;const r=Ce(e.target,s.container);if(!r)return;s.dataProvider.move(i,(0,v.attr)(r,"-path")||"",(0,v.attr)(r,"-source")||"",t.classList.contains(this.files.getFullElName("item"))).then((()=>ie(this))).catch(s.status),t=!1}})).on(s.files.container,"contextmenu",_e(s)).on(s.files.container,"click",(t=>{(0,v.ctrlKey)(t)||(this.state.activeElements=[])})).on(s.files.container,"click",(t=>{const i=Ce(t.target,s.container);if(!i)return;const r=Se(i,e);return r?(s.state.activeElements=(0,v.ctrlKey)(t)?[...s.state.activeElements,r]:[r],t.stopPropagation(),!1):void 0})).on(s.files.container,"dragstart",(e=>{if(s.o.moveFile){const i=Ce(e.target,s.container);if(!i)return;t=i}})).on(s.container,"drop",(t=>t.preventDefault()))}function xe(){const t=this.state,e=this.dataProvider,s=this;s.e.on("view.filebrowser",(e=>{e!==t.view&&(t.view=e)})).on("sort.filebrowser",(e=>{e!==t.sortBy&&(t.sortBy=e,se(s))})).on("filter.filebrowser",(e=>{e!==t.filterWord&&(t.filterWord=e,se(s))})).on("openFolder.filebrowser",(t=>{let e;e=".."===t.name?t.path.split("/").filter((t=>t.length)).slice(0,-1).join("/"):(0,v.normalizePath)(t.path,t.name),s.state.currentPath=e,s.state.currentSource="."===t.name?Xt:t.source})).on("removeFolder.filebrowser",(t=>{s.confirm("Are you sure?","Delete",(i=>{i&&e.folderRemove(t.path,t.name,t.source).then((t=>(s.status(t,!0),ie(s)))).catch(s.status)}))})).on("renameFolder.filebrowser",(t=>{s.prompt("Enter new name","Rename",(i=>{if(!(0,Z.r1)(i))return s.status(s.i18n("Enter new name")),!1;e.folderRename(t.path,t.name,i,t.source).then((t=>(s.state.activeElements=[],s.status(t,!0),ie(s)))).catch(s.status)}),"type name",t.name)})).on("addFolder.filebrowser",(t=>{s.prompt("Enter Directory name","Create directory",(i=>{e.createFolder(i,t.path,t.source).then((()=>ie(s))).catch(s.status)}),"type name")})).on("fileRemove.filebrowser",(()=>{s.state.activeElements.length&&s.confirm("Are you sure?","",(t=>{if(t){const t=[];s.state.activeElements.forEach((e=>{t.push(be(s,e.file||e.name||"",e.sourceName))})),s.state.activeElements=[],Promise.all(t).then((()=>ie(s).catch(s.status)),s.status)}}))})).on("edit.filebrowser",(()=>{if(1===s.state.activeElements.length){const[t]=this.state.activeElements;ve.call(s,t.fileURL,t.file||"",t.path,t.sourceName)}})).on("fileRename.filebrowser",((t,i,r)=>{1===s.state.activeElements.length&&s.prompt("Enter new name","Rename",(o=>{if(!(0,Z.r1)(o))return s.status(s.i18n("Enter new name")),!1;e.fileRename(i,t,o,r).then((t=>{s.state.activeElements=[],s.status(t,!0),se(s)})).catch(s.status)}),"type name",t)})).on("update.filebrowser",(()=>{ie(this).then(this.status,this.status)}))}class je extends R{className(){return"FilebrowserFiles"}}class Ie extends R{className(){return"FilebrowserTree"}}var ke=r(67309);class Te{dlg(t){const e=new Ht({language:this.o.language,shadowRoot:this.o.shadowRoot,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...t});return(0,ke.MN)(this,e.container),e.parent=this,e.bindDestruct(this)}confirm(t,e,s){return t=Le(t,this),e=Le(e,this),Vt.call(this.dlg(),t,e,s)}prompt(t,e,s,i,r){return t=Le(t,this),e=Le(e,this),i=Le(i,this),Wt.call(this.dlg(),t,e,s,i,r)}alert(t,e,s,i){return t=Le(t,this),e=Le(e,this),$t.call(this.dlg(),t,e,s,i)}}function Le(t,e){return(0,Z.HD)(t)&&!(0,Z.FP)(t)&&(t=e.i18n(t)),t}var Me=r(6102);f.D.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter:(t,e)=>(e=e.toLowerCase(),(0,Z.HD)(t)?-1!==t.toLowerCase().indexOf(e):(0,Z.HD)(t.name)?-1!==t.name.toLowerCase().indexOf(e):!(0,Z.HD)(t.file)||-1!==t.file.toLowerCase().indexOf(e)),sortBy:"changed-desc",sort(t,e,s){const[i,r]=s.toLowerCase().split("-"),o="asc"===r,n=(t,e)=>e>t?o?-1:1:t>e?o?1:-1:0;if((0,Z.HD)(t))return n(t.toLowerCase(),e.toLowerCase());if(void 0===t[i]||"name"===i)return(0,Z.HD)(t.name)?n(t.name.toLowerCase(),e.name.toLowerCase()):(0,Z.HD)(t.file)?n(t.file.toLowerCase(),e.file.toLowerCase()):0;switch(i){case"changed":{const s=new Date(t.changed).getTime(),i=new Date(e.changed).getTime();return o?s-i:i-s}case"size":{const s=(0,Me.w)(t.size),i=(0,Me.w)(e.size);return o?s-i:i-s}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:t=>t.success,getMessage:t=>void 0!==t.data.messages&&(0,Z.kJ)(t.data.messages)?t.data.messages.join(" "):"",showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(t,e,s){const i=this.options,r=this.files.getFullElName("item"),o=i.showFileName,n=i.showFileSize&&t.size,a=i.showFileChangeTime&&t.time;let l="";return void 0!==t.file&&(l=t.file),`<a\n\t\t\tdata-jodit-filebrowser-item="true"\n\t\t\tdata-is-file="${t.isImage?0:1}"\n\t\t\tdraggable="true"\n\t\t\tclass="${r}"\n\t\t\thref="${t.fileURL}"\n\t\t\tdata-source="${s}"\n\t\t\tdata-path="${t.path}"\n\t\t\tdata-name="${l}"\n\t\t\ttitle="${l}"\n\t\t\tdata-url="${t.fileURL}">\n\t\t\t\t<img\n\t\t\t\t\tdata-is-file="${t.isImage?0:1}"\n\t\t\t\t\tdata-src="${t.fileURL}"\n\t\t\t\t\tsrc="${t.imageURL}"\n\t\t\t\t\talt="${l}"\n\t\t\t\t\tloading="lazy"\n\t\t\t\t/>\n\t\t\t\t${o||n||a?`<div class="${r}-info">${o?`<span class="${r}-info-filename">${l}</span>`:""}${n?`<span class="${r}-info-filesize">${t.size}</span>`:""}${a?`<span class="${r}-info-filechanged">${a}</span>`:""}</div>`:""}\n\t\t\t</a>`},ajax:{...f.D.prototype.defaultAjaxOptions,url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,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"}}},f.D.prototype.controls.filebrowser={upload:{icon:"plus",isInput:!0,isDisabled(t){return!t.dataProvider.canI("FileUpload")},getContent(t){const e=new jt(t,{onlyImages:t.state.onlyImages});return t.e.fire("bindUploader.filebrowser",e.container),e.container}},remove:{icon:"bin",isDisabled(t){return!t.state.activeElements.length||!t.dataProvider.canI("FileRemove")},exec(t){t.e.fire("fileRemove.filebrowser")}},update:{exec(t){t.e.fire("update.filebrowser")}},select:{icon:"check",isDisabled(t){return!t.state.activeElements.length},exec(t){t.e.fire("select.filebrowser")}},edit:{icon:"pencil",isDisabled(t){const e=t.state.activeElements;return 1!==e.length||!e[0].isImage||!(t.dataProvider.canI("ImageCrop")||t.dataProvider.canI("ImageResize"))},exec(t){t.e.fire("edit.filebrowser")}},tiles:{icon:"th",isActive(t){return"tiles"===t.state.view},exec(t){t.e.fire("view.filebrowser","tiles")}},list:{icon:"th-list",isActive(t){return"list"===t.state.view},exec(t){t.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent(t,e,s){const i=s.container.querySelector(".jodit-input");if(i)return i;const r=t.c.element("input",{class:"jodit-input",placeholder:t.i18n("Filter")});return r.value=t.state.filterWord,t.e.on(r,"keydown mousedown",t.async.debounce((()=>{t.e.fire("filter.filebrowser",r.value)}),t.defaultTimeout)),r}},sort:{isInput:!0,getContent(t){const e=t.c.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 e.value=t.state.sortBy,t.e.on("sort.filebrowser",(t=>{e.value!==t&&(e.value=t)})).on(e,"change",(()=>{t.e.fire("sort.filebrowser",e.value)})),e}}};let Pe=class t extends Bt{className(){return"Filebrowser"}get dataProvider(){return new Zt(this,this.options)}onSelect(t){return()=>{if(this.state.activeElements.length){const e=[],s=[];this.state.activeElements.forEach((t=>{const i=t.fileURL;i&&(e.push(i),s.push(t.isImage||!1))})),this.close();const i={baseurl:"",files:e,isImages:s};(0,v.isFunction)(t)&&t(i),this.close()}return!1}}get _dialog(){const t=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:this.o.headerButtons??["fullsize","dialog.close"]});return["afterClose","beforeOpen"].forEach((e=>{t.events.on(t,e,(()=>{this.e.fire(e)}))})),t.setSize(this.o.width,this.o.height),t}get storage(){return nt.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(t,e){t&&!(0,v.isAbort)(t)&&((0,v.isString)(t)||(t=t.message),(0,v.isString)(t)&&(0,v.trim)(t).length&&this.message.message(t,e?"success":"error",this.o.howLongShowMsg))}open(t=this.o.defaultCallback,e=!1){return this.state.onlyImages=e,this.async.promise(((e,s)=>{if(!this.o.items||!this.o.items.url)throw(0,v.error)("Need set options.filebrowser.ajax.url");let i=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(t)).on(this.files.container,"touchstart",(()=>{const e=(new Date).getTime();u.EMULATE_DBLCLICK_TIMEOUT>e-i&&this.onSelect(t)(),i=e})).off("select.filebrowser").on("select.filebrowser",this.onSelect(t));const r=this.c.div();this.toolbar?.build(this.__getButtons()).appendTo(r),this._dialog.open(this.browser,r),this.e.fire("sort.filebrowser",this.state.sortBy),ie(this).then(e,s)})).catch((t=>{if(!u.IS_PROD)throw t}))}__getButtons(){return(this.o.buttons??[]).filter((t=>{if(!(0,v.isString)(t))return!0;switch(t){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0}))}initUploader(t){const e=this,s=t?.options?.uploader,i=(0,v.ConfigProto)(s||{},f.D.defaultOptions.uploader),r=()=>se(this);e.uploader=e.getInstance("Uploader",i),e.uploader.setPath(e.state.currentPath).setSource(e.state.currentSource).bind(e.browser,r,e.errorHandler),this.state.on(["change.currentPath","change.currentSource"],(()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)})),e.e.on("bindUploader.filebrowser",(t=>{e.uploader.bind(t,r,e.errorHandler)}))}constructor(t){super(t),this.browser=this.c.div(this.componentName),this.status_line=this.c.div(this.getFullElName("status")),this.tree=new Ie(this),this.files=new je(this),this.state=(0,m.LO)({currentPath:"",currentSource:Xt,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=t=>{(0,v.isAbort)(t)||this.status(t instanceof Error?this.i18n(t.message):this.dataProvider.getMessage(t))},this.close=()=>{this._dialog.close()},this.attachEvents(t);const e=this;e.options=(0,v.ConfigProto)(t||{},f.D.defaultOptions.filebrowser),e.browser.component=this,e.container=e.browser,e.o.showFoldersPanel&&e.browser.appendChild(e.tree.container),e.browser.appendChild(e.files.container),e.browser.appendChild(e.status_line),xe.call(e),Ee.call(e),re.call(e),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach((t=>{null!=this.options[t]&&(this.options[t]=(0,v.ConfigProto)(this.options[t],this.o.ajax))}));const{storeView:s,storeSortBy:i,storeLastOpenedFolder:r}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},o=s&&this.storage.get("view");e.state.view=o&&null==this.o.view?"list"===o?"list":"tiles":"list"===e.o.view?"list":"tiles",e.files.setMod("view",e.state.view);const n=i&&e.storage.get("sortBy");if(n){const t=n.split("-");e.state.sortBy=["changed","name","size"].includes(t[0])?n:"changed-desc"}else e.state.sortBy=e.o.sortBy||"changed-desc";if(r){const t=e.storage.get("currentPath"),s=e.storage.get("currentSource");e.state.currentPath=t??"",e.state.currentSource=s??""}e.initUploader(e),e.setStatus(C.n$.ready)}destruct(){this.isInDestruct||(super.destruct(),this._dialog.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}};function Ne(t){return X.i.isElement(t)&&t.classList.contains(je.prototype.getFullElName("item"))}(0,p.gn)([y.cache],Pe.prototype,"dataProvider",null),(0,p.gn)([y.cache],Pe.prototype,"_dialog",null),(0,p.gn)([y.cache],Pe.prototype,"storage",null),(0,p.gn)([y.autobind],Pe.prototype,"status",null),(0,p.gn)([y.autobind],Pe.prototype,"open",null),Pe=(0,p.gn)([(0,y.derive)(Te)],Pe);class ze extends C.Hr{constructor(){super(...arguments),this.__isBlocked=!1}className(){return"Snapshot"}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 s=0,i=null;for(let r=0;e.length>r;r+=1){if(!i||this.isIgnoredNode(e[r])||X.i.isText(i)&&X.i.isText(e[r])||(s+=1),e[r]===t)return s;i=e[r]}return 0}static strokeOffset(t,e){for(;X.i.isText(t);)X.i.isText(t=t.previousSibling)&&t.nodeValue&&(e+=t.nodeValue.length);return e}calcHierarchyLadder(t){const e=[];if(!t||!t.parentNode||!X.i.isOrContains(this.j.editor,t))return[];for(;t&&t!==this.j.editor;)t&&!ze.isIgnoredNode(t)&&e.push(ze.countNodesBeforeInParent(t)),t=t.parentNode;return e.reverse()}getElementByLadder(t){let e,s=this.j.editor;for(e=0;s&&t.length>e;e+=1)s=s.childNodes[t[e]];return s}get isBlocked(){return this.__isBlocked}__block(t){this.__isBlocked=t}transaction(t){this.__block(!0);try{t()}catch(t){if(!u.IS_PROD)throw t}this.__block(!1)}make(){const t={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};t.html=this.removeJoditSelection(this.j.editor);const e=this.j.s.sel;if(e&&e.rangeCount){const s=e.getRangeAt(0),i=this.calcHierarchyLadder(s.startContainer),r=this.calcHierarchyLadder(s.endContainer);let o=ze.strokeOffset(s.startContainer,s.startOffset),n=ze.strokeOffset(s.endContainer,s.endOffset);i.length||s.startContainer===this.j.editor||(o=0),r.length||s.endContainer===this.j.editor||(n=0),t.range={startContainer:i,startOffset:o,endContainer:r,endOffset:n}}return t}restore(t){this.transaction((()=>{const e=this.storeScrollState();this.j.getNativeEditorValue()!==t.html&&(this.j.value=t.html),this.restoreOnlySelection(t),this.restoreScrollState(e)}))}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(t){const{j:e}=this,{ow:s}=e;s.scrollTo(s.scrollX,t[0]),e.editor.scrollTop=t[1]}restoreOnlySelection(t){try{if(t.range){const e=this.j.ed.createRange();e.setStart(this.getElementByLadder(t.range.startContainer),t.range.startOffset),e.setEnd(this.getElementByLadder(t.range.endContainer),t.range.endOffset),this.j.s.selectRange(e)}}catch(t){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild)}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(t){return X.i.isText(t)&&!t.nodeValue||X.i.isTemporary(t)}removeJoditSelection(t){const e=t.cloneNode(!0);return e.querySelectorAll(`[${u.TEMP_ATTR}]`).forEach(X.i.unwrap),e.innerHTML}}class De{constructor(t){this.size=t,this.commands=[],this.stackPosition=-1}get length(){return this.commands.length}clearRedo(){this.commands.length=this.stackPosition+1}clear(){this.commands.length=0,this.stackPosition=-1}push(t){this.clearRedo(),this.commands.push(t),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}replace(t){this.commands[this.stackPosition]=t}current(){return this.commands[this.stackPosition]}undo(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}redo(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}canUndo(){return this.stackPosition>=0}canRedo(){return this.commands.length-1>this.stackPosition}}class Re{undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}constructor(t,e,s,i){this.oldValue=t,this.newValue=e,this.history=s,this.tick=i}}f.D.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3},f.D.prototype.observer=f.D.prototype.history;class Ae extends C.Hr{className(){return"History"}get startValue(){return this.__startValue}set startValue(t){this.__startValue=t}constructor(t,e=new De(t.o.history.maxHistoryLength),s=new ze(t)){super(t),this.updateTick=0,this.__stack=e,this.snapshot=s,t.o.history.enable&&t.e.on("afterAddPlace.history",(()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),t.events.on("internalChange internalUpdate",(()=>{this.startValue=this.snapshot.make()})).on(t.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map((t=>t+".history")).join(" "),(()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())})).on(this,"change.history",this.onChange))}))}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(t=!1){const e=this.snapshot.make();if(!ze.equal(e,this.startValue)){const s=new Re(this.startValue,e,this,this.updateTick);if(t){const t=this.__stack.current();t&&this.updateTick===t.tick&&this.__stack.replace(s)}else this.__stack.push(s);this.startValue=e,this.fireChangeStack()}}redo(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.__stack.canRedo()}undo(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.__stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}get length(){return this.__stack.length}fireChangeStack(){this.j&&!this.j.isInDestruct&&this.j.events?.fire("changeStack")}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}}(0,p.gn)([(0,y.debounce)()],Ae.prototype,"onChange",null);var qe=r(63122),Oe=r(11278),Be=r(49353),He=r(16492);const Fe="toggleAttributes";function $e(t,e,s,i,r=!1){if(!r&&t.isApplied(e,Fe))return i;!r&&t.setApplied(e,Fe);const{attributes:o}=t.options;return o&&(0,He.d)(o)>0&&Object.keys(o).forEach((n=>{const a=o[n];switch(n){case"style":i=((t,e,s,i,r,o)=>(Object.keys(s).forEach((n=>{const a=i.style.getPropertyValue((0,Oe.G)(n)),l=s[n];if(""!==a||null!=l){if(((t,e,s)=>{const i=t.create.element(e.tagName.toLowerCase());i.style.cssText=e.style.cssText;const r=(t=>{if(void 0!==(0,qe.q)(t,"shadowRoot"))return(0,qe.q)(t,"shadowRoot");const e=(0,j.ZO)(t),s=document.createElement("iframe");(0,ct.i)(s,{width:0,height:0,position:"absolute",border:0}),s.src="about:blank",e.appendChild(s);const i=s.contentWindow?.document,r=i?i.body:t.od.body;return(0,qe.q)(t,"shadowRoot",r),r})(t);r.appendChild(i);const o=(0,ct.i)(i,s);return S.i.safeRemove(i),o})(e,i,n)===(0,Be.Zh)(n,l)){if(!a)return;return!r&&(0,ct.i)(i,n,null),void(o=We(t,i,o=_s))}o=ws,r||((0,ct.i)(i,n,l),o=We(t,i,o))}})),o))(t,s,a,e,r,i);break;case"class":i=((t,e,s,i,r)=>{const o=t.e.fire.bind(t.e,Es+"AfterToggleAttribute");return s.classList.contains(""+e)?(i=_s,r||(s.classList.remove(e),0===s.classList.length&&((0,k.attr)(s,"class",null),o(i,s,"class",null)))):(i=ws,r||(s.classList.add(e),o(i,s,"class",e))),i})(s,a,e,i,r);break;default:i=((t,e,s,i,r,o)=>{const n=t.e.fire.bind(t.e,Es+"AfterToggleAttribute");return(0,k.attr)(s,i)===e?(!r&&(0,k.attr)(s,i,null),o=_s,!r&&n(o,s,i,e),o):(o=ws,r||((0,k.attr)(s,i,e),n(o,s,i,e)),o)})(s,a,e,n,r,i)}})),i}function We(t,e,s){return(0,k.attr)(e,"style")||((0,k.attr)(e,"style",null),e.tagName.toLowerCase()===t.defaultTag&&(S.i.unwrap(e),s=ys)),s}var Ve=r(37204);function Ue(t,e,s){const i=s.s.createRange(),r=(0,Ve._)(e.previousSibling)?e.previousSibling:e;i.setStartBefore(t),i.setEndBefore(r),Ye(t,i,!0);const o=(0,Ve._)(e.nextSibling)?e.nextSibling:e;i.setStartAfter(o),i.setEndAfter(t),Ye(t,i,!1)}function Ye(t,e,s){const i=e.extractContents();i.textContent&&(0,ut.f)(i.textContent).length||!i.firstChild||S.i.unwrap(i.firstChild),t.parentNode&&(0,ke.RE)(s?S.i.before:S.i.after,t,i)}function Ge(t,e,s){const i=s.e.fire(Es+"BeforeWrapList",Ss,e,t)??X.i.replace(e,"li",s.createInside),r=i.previousElementSibling,o=i.nextElementSibling;let n=X.i.isTag(r,t.element)?r:null;var a,l,c,h;return n??=X.i.isTag(o,t.element)?o:null,X.i.isList(n)&&(h=t.options.attributes,!(c=n).attributes.length&&!(0,He.d)(h)||!(0,He.d)(h)||Object.keys(h).every((t=>"class"===t?c.classList.contains(h[t]):"style"===t?Ze(c,h[t]):(0,k.attr)(c,t)===h[t])))||(n=s.createInside.element(t.element),$e(t,n,s,Cs),X.i.before(i,n)),r===n?X.i.append(n,i):X.i.prepend(n,i),X.i.isTag(n.nextElementSibling,t.element)&&(a=n).attributes.length===(l=n.nextElementSibling).attributes.length&&Array.from(a.attributes).every((t=>l.hasAttribute(t.name)&&l.getAttribute(t.name)===t.value))&&(X.i.append(n,Array.from(n.nextElementSibling.childNodes)),X.i.safeRemove(n.nextElementSibling)),s.e.fire(Es+"AfterWrapList",bs,n,t),n}function Xe(t,e,s,i){if(!e)return i;const r=e.parentElement;if(!r)return i;const o=s.e.fire(Es+"BeforeToggleList",i,t,r);if(void 0!==o)return o;const n=s.e.fire.bind(s.e,Es+"AfterToggleList");if(i!==ys){const o=$e(t,e.parentElement,s,Cs,!0)===ws;if(i===Ss||o||r.tagName.toLowerCase()!==t.element){const i=Ge(t,Ke(Ss,r,e,s,t),s);return n(Ss,i,t),Ss}}const a=Ke(ys,r,e,s,t);return n(ys,a,t),ys}function Ke(t,e,s,i,r){return i.e.fire(Es+"BeforeUnwrapList",t,e,r)||(Ue(e,s,i),S.i.unwrap(s.parentElement),S.i.replace(s,i.o.enter,i.createInside))}var Je=r(24021);function Ze(t,e){return!(S.i.isTag(t,"font")||!S.i.isHTMLElement(t)||!Object.keys(e).every((s=>{const i=(0,ct.i)(t,s,!0);return""===i&&(""===e[s]||null==e[s])||!(0,Je.n)(i)&&""!==i&&!(0,Je.n)(e[s])&&(""+(0,Be.Zh)(s,e[s])).toLowerCase()===(""+i).toLowerCase()})))}function Qe(t,e){return!(S.i.isTag(t,"font")||!S.i.isHTMLElement(t)||!Object.keys(e).every((e=>{const s=(0,ct.i)(t,e,!0);return!(0,Je.n)(s)})))}document.createElement("div").style.color="red";class ts{setState(t){this.__previewsStates.add(t),this.__state=t}getState(){return this.__state}disableSilent(){this.silent=!1}constructor(t,e){this.transitions=e,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}dispatch(t,e){const s=this.transitions[this.getState()][t];if(s){const t=s.call(this,e);return this.setState(t.next),t}throw Error(`invalid action: ${this.getState()}.${""+t}`)}}function es(t){return!(!t||S.i.isEmptyTextNode(t)||S.i.isTemporary(t)||(0,Ve._)(t))}function ss(t,e,s){if(!e)return!1;const{element:i,elementIsDefault:r,options:o}=t,n=!(!o.attributes?.style||!Ze(e,o.attributes.style)),a=e.nodeName.toLowerCase()===i||S.i.isList(e)&&t.elementIsList;return!((r&&s||!a)&&(!n||!es(e)||t.elementIsList)&&(a||s||!r||!S.i.isInlineBlock(e)))}function is(t,e,s){return S.i.closest(e,(e=>ss(t,e,!0)),s)}function rs(t,e){const{element:s,options:i}=t;if(!e||!es(e))return!1;const r=e.nodeName.toLowerCase()===s,o=!(!i.attributes?.style||!Qe(e,i.attributes?.style));return r&&o}function os(t,e,s){const{parentNode:i}=e;return i===s||!S.i.isHTMLElement(i)||S.i.next(e,es,i)||S.i.prev(e,es,i)?null:t.isElementCommit&&t.elementIsBlock&&!S.i.isBlock(i)?os(t,i,s):!ss(t,i,!1)||S.i.isBlock(i)&&!t.elementIsBlock?t.isElementCommit&&!S.i.isBlock(i)?os(t,i,s):null:i}const ns="START",as="ELEMENT",ls="UNWRAP",cs="UNWRAP_CHILDREN",hs="CHANGE",ds="REPLACE_DEFAULT",us="LIST",ps="TOGGLE_LIST",fs="WRAP",ms="EXTRACT",gs="END",vs={[ns]:{exec(t){const{element:e,jodit:s,style:i,mode:r,collapsed:o}=t;if(((t,e)=>!!S.i.closest(t,["style","script"],e))(e,s.editor)||!o&&S.i.isEmptyContent(e))return{...t,next:gs};const n=os(i,e,s.editor)||((t,e)=>{let{firstChild:s}=e;for(;s&&!es(s);)if(s=s.nextSibling,!s)return null;return s&&!S.i.next(s,es,e)&&ss(t,s,!1)?s:null})(i,e);if(n)return{...t,next:as,element:n};const a=is(i,e,s.editor);return i.elementIsList&&S.i.isList(a)?{...t,next:us}:a?{...t,next:ms}:{...t,next:r!==ys?cs:gs}}},[us]:{exec(t){const{element:e,jodit:s,mode:i}=t;if(i!==Cs&&i!==ys&&i!==Ss)return{...t,next:gs};const r=S.i.closest(e,"li",s.editor);return r&&S.i.closest(e,u.LIST_TAGS,s.editor)?{...t,element:r,next:ps}:{...t,next:gs}}},[ps]:{exec:t=>({...t,mode:Xe(t.style,t.element,t.jodit,t.mode),next:gs})},[ms]:{exec(t){const{element:e,jodit:s,style:i}=t,r=is(i,e,s.editor);return i.elementIsBlock||Ue(r,e,s),{...t,element:r,next:as}}},[cs]:{exec(t){const{element:e,style:s}=t;return((t,e)=>{const s=[],i=[];let r;const o=t.options.attributes?.style;if(e.firstChild){const n=S.i.eachGen(e);let a=n.next();for(;!a.done;){const e=a.value;!ss(t,e,!0)||o&&!Qe(e,o)?o&&rs(t,e)?(void 0===r&&(r=!1),i.push((()=>{(0,k.css)(e,Object.keys(o).reduce(((t,e)=>(t[e]=null,t)),{})),(0,k.attr)(e,"style")||(0,k.attr)(e,"style",null),(0,k.attr)(e,"style")||e.nodeName.toLowerCase()!==t.element||s.push(e)}))):S.i.isEmptyTextNode(e)||void 0===r&&(r=!1):(void 0===r&&(r=!0),s.push(e)),a=n.next()}}return i.forEach((t=>t())),s.forEach(S.i.unwrap),!!r})(s,e)?{...t,mode:ys,next:gs}:{...t,next:fs}}},[fs]:{exec(t){const{element:e,jodit:s,style:i}=t,r=((t,e,s)=>{const i=((t,e,s)=>t.elementIsBlock?X.i.up(e,(t=>X.i.isBlock(t)&&!X.i.isTag(t,["td","th","tr","tbody","table","li","ul","ol"])),s.editor)||((t,e,s)=>{const i=s.editor,r=s.createInside,o=(t,e="previousSibling")=>{let r=t,o=t;for(;o&&!(0,Ve._)(o)&&!S.i.isTag(o,s.o.enter)&&(r=o,o=o[e]?o[e]:o.parentNode&&!S.i.isBlock(o.parentNode)&&o.parentNode!==i?o.parentNode:null,!S.i.isBlock(o)););return r},n=o(e),a=o(e,"nextSibling"),l=s.s.createRange();l.setStartBefore(n),l.setEndAfter(a);const c=l.extractContents(),h=r.element(t.element);return h.appendChild(c),S.i.safeInsertNode(l,h),t.elementIsBlock&&S.i.isEmpty(h)&&!S.i.isTag(h.firstElementChild,"br")&&h.appendChild(r.element("br")),h})(t,e,s):((0,yt.L)(e,"size",null),e))(t,e,s);return t.elementIsList?Ge(t,i,s):X.i.replace(i,t.element,s.createInside,!0)})(i,e,s);return{...t,next:i.elementIsList?gs:hs,mode:bs,element:r}}},[as]:{exec(t){const{style:e,element:s,jodit:i}=t;return $e(e,s,i,Cs,!0)!==Cs?{...t,next:hs}:S.i.isTag(s,e.element)?{...t,next:ls}:{...t,next:gs}}},[hs]:{exec(t){const{style:e,element:s,jodit:i,mode:r}=t,o=$e(e,s,i,t.mode);return r!==bs&&o===_s&&!s.attributes.length&&S.i.isTag(s,e.element)?{...t,next:ls}:{...t,mode:o,next:gs}}},[ls]:{exec:t=>t.element.attributes.length&&S.i.isTag(t.element,t.style.element)?{...t,next:ds}:(S.i.unwrap(t.element),{...t,mode:ys,next:gs})},[ds]:{exec:t=>(S.i.replace(t.element,t.style.defaultTag,t.jodit.createInside,!0),{...t,mode:Ss,next:gs})},[gs]:{exec:t=>t}},bs="wrap",ys="unwrap",ws="change",_s="unset",Cs="initial",Ss="replace",Es="commitStyle";class xs{isApplied(t,e){const s=this.__applyMap.get(t);return!!s&&s[e]}setApplied(t,e){const s=this.__applyMap.get(t)??{};s[e]=!0,this.__applyMap.set(t,s)}get elementIsList(){return!(!this.options.element||!u.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!(!this.options.element||!u.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!(!this.options.element||this.options.element===this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}constructor(t){this.options=t,this.__applyMap=new WeakMap,t.attributes=((t,e)=>{const{style:s,className:i}=t.options;return s&&(e?e.style=s:e={style:s},delete t.options.style),i&&(e?e.class=i:e={class:i},delete t.options.className),e})(this,t.attributes)}apply(t){const{hooks:e}=this.options;try{e&&Object.keys(e).forEach((s=>{t.e.on((0,it.e)(Es+"_"+s),e[s])})),((t,e)=>{const{s,editor:i}=t;i.firstChild?.normalize();const r=s.fakes(),o=t.s.wrapInTagGen(r);let n=o.next();if(n.done)return;let a={collapsed:s.isCollapsed(),mode:Cs,element:n.value,next:ns,jodit:t,style:e};for(;n&&!n.done;){const t=new ts(ns,vs);for(a.element=n.value;t.getState()!==gs;)a=t.dispatch("exec",a);n=o.next()}s.restoreFakes(r)})(t,this)}finally{e&&Object.keys(e).forEach((s=>{t.e.off((0,it.e)(Es+"_"+s),e[s])})),this.__applyMap=new WeakMap}}}class js{constructor(t){this.jodit=t,t.e.on("removeMarkers",(()=>{this.removeMarkers()}))}get j(){return this.jodit}errorNode(t){if(!X.i.isNode(t))throw(0,v.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,Z.mf)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){const t=this.sel;return t&&t.rangeCount?t.getRangeAt(0):this.createRange()}get isInsideArea(){const{sel:t}=this,e=t?.rangeCount?t.getRangeAt(0):null;return!(!e||!X.i.isOrContains(this.area,e.startContainer))}createRange(t=!1){const e=this.doc.createRange();return t&&this.selectRange(e),e}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)}clear(){this.sel?.rangeCount&&this.sel?.removeAllRanges()}removeNode(t){if(!X.i.isOrContains(this.j.editor,t,!0))throw(0,v.error)("Selection.removeNode can remove only editor's children");X.i.safeRemove(t),this.j.e.fire("afterRemoveNode",t)}insertCursorAtPoint(t,e){this.removeMarkers();try{const s=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){const i=this.doc.caretPositionFromPoint(t,e);if(i)return void s.setStart(i.offsetNode,i.offset)}if(this.doc.caretRangeFromPoint){const i=this.doc.caretRangeFromPoint(t,e);s.setStart(i.startContainer,i.startOffset)}})(),s.collapse(!0),this.selectRange(s),!0}catch{}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,v.$$)("span[data-"+u.MARKER_CLASS+"]",this.area)}removeMarkers(){X.i.safeRemove.apply(null,this.markers)}marker(t=!1,e){let s=null;e&&(s=e.cloneRange(),s.collapse(t));const i=this.j.createInside.span();return i.id=u.MARKER_CLASS+"_"+Number(new Date)+"_"+(Math.random()+"").slice(2),i.style.lineHeight="0",i.style.display="none",X.i.markTemporary(i),(0,v.attr)(i,"data-"+u.MARKER_CLASS,t?"start":"end"),i.appendChild(this.j.createInside.text(u.INVISIBLE_SPACE)),s&&X.i.isOrContains(this.area,t?s.startContainer:s.endContainer)&&s.insertNode(i),i}restore(){let t=!1;const e=t=>`span[data-${u.MARKER_CLASS}=${t?"start":"end"}]`,s=this.area.querySelector(e(!0)),i=this.area.querySelector(e(!1));if(s){if(t=this.createRange(),i)t.setStartAfter(s),X.i.safeRemove(s),t.setEndBefore(i),X.i.safeRemove(i);else{const e=s.previousSibling;X.i.isText(e)?t.setStart(e,e.nodeValue?e.nodeValue.length:0):t.setStartBefore(s),X.i.safeRemove(s),t.collapse(!0)}t&&this.selectRange(t)}}fakes(){const t=this.sel;if(!t||!t.rangeCount)return[];const e=t.getRangeAt(0),s=e.cloneRange();s.collapse(!0);const i=this.j.createInside.fake();s.insertNode(i),e.setStartBefore(i);const r=[i];if(!e.collapsed){const t=e.cloneRange();t.collapse(!1);const s=this.j.createInside.fake();t.insertNode(s),e.setEndAfter(s),r.push(s)}return this.selectRange(e),r}restoreFakes(t){const e=t.filter((t=>t.isConnected));if(!e.length)return;const[s,i]=e,r=this.createRange();r.setStartAfter(s),i&&r.setEndBefore(i),this.selectRange(r),s.parentNode?.firstChild!==s.parentNode?.lastChild&&X.i.safeRemove(s),i?.parentNode?.firstChild!==i?.parentNode?.lastChild&&X.i.safeRemove(i)}save(t=!1){if(this.hasMarkers)return[];const e=this.sel;if(!e||!e.rangeCount)return[];const s=[],i=e.rangeCount,r=[];for(let t=0;i>t;t+=1)if(r[t]=e.getRangeAt(t),r[t].collapsed){const e=this.marker(!0,r[t]);s[t]={startId:e.id,collapsed:!0,startMarker:e.outerHTML}}else{const e=this.marker(!0,r[t]),i=this.marker(!1,r[t]);s[t]={startId:e.id,endId:i.id,collapsed:!1,startMarker:e.outerHTML,endMarker:i.outerHTML}}if(!t){e.removeAllRanges();for(let t=i-1;t>=0;--t){const i=this.doc.getElementById(s[t].startId);if(i){if(s[t].collapsed)r[t].setStartAfter(i),r[t].collapse(!0);else if(r[t].setStartBefore(i),s[t].endId){const e=this.doc.getElementById(s[t].endId);e&&r[t].setEndAfter(e)}try{e.addRange(r[t].cloneRange())}catch{}}}}return s}focus(t={preventScroll:!0}){if(!this.isFocused()){const e=(0,v.getScrollParent)(this.j.container),s=e?.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(t),this.win.focus(),this.area.focus(t),s&&e?.scrollTo&&e.scrollTo(0,s);const i=this.sel,r=i?.rangeCount?i?.getRangeAt(0):null;if(!r||!X.i.isOrContains(this.area,r.startContainer)){const t=this.createRange();t.setStart(this.area,0),t.collapse(!0),this.selectRange(t,!1)}return this.j.editorIsActive||this.j?.events?.fire("focus"),!0}return!1}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.j.getRealMode()===u.MODE_WYSIWYG){const e=this.sel;if(!e||0===e.rangeCount)return null;const s=e.getRangeAt(0);let i=s.startContainer,r=!1;const o=t=>r?t.lastChild:t.firstChild;if(X.i.isTag(i,"br")&&e.isCollapsed)return i;if(!X.i.isText(i)){if(i=s.startContainer.childNodes[s.startOffset],i||(i=s.startContainer.childNodes[s.startOffset-1],r=!0),i&&e.isCollapsed&&!X.i.isText(i))if(!r&&X.i.isText(i.previousSibling))i=i.previousSibling;else if(t){let t=o(i);for(;t;){if(t&&X.i.isText(t)){i=t;break}t=o(t)}}if(i&&!e.isCollapsed&&!X.i.isText(i)){let t=i,e=i;do{t=t.firstChild,e=e.lastChild}while(t&&e&&!X.i.isText(t));t===e&&t&&X.i.isText(t)&&(i=t)}}if(i&&X.i.isOrContains(this.area,i))return i}return null}insertNode(t,e=!0,s=!0){this.errorNode(t);const i=X.i.isFragment(t)?t.lastChild:t;this.j.e.fire("safeHTML",t),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());const r=this.sel;this.j.history.snapshot.transaction((()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",t),r&&r.rangeCount){const e=r.getRangeAt(0);X.i.isOrContains(this.area,e.commonAncestorContainer)?X.i.isTag(e.startContainer,u.INSEPARABLE_TAGS)&&e.collapsed?e.startContainer.parentNode?.insertBefore(t,e.startContainer):X.i.safeInsertNode(e,t):this.area.appendChild(t)}else this.area.appendChild(t);e&&(X.i.isFragment(t)?i&&this.setCursorAfter(i):this.setCursorAfter(t))})),s&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",X.i.isFragment(t)?i:t)}insertHTML(t,e=!0){if(""===t)return;const s=this.j.createInside.div(),i=this.j.createInside.fragment();let r;if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),X.i.isNode(t)?s.appendChild(t):s.innerHTML=""+t,(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",s.innerHTML))&&(r=s.lastChild,r)){for(;s.firstChild;)r=s.firstChild,i.appendChild(s.firstChild);this.insertNode(i,e,!1),this.j.__imdSynchronizeValues()}}insertImage(t,e=null,s=null){const i=(0,Z.HD)(t)?this.j.createInside.element("img"):t;if((0,Z.HD)(t)&&i.setAttribute("src",t),null!=s){let t=""+s;t&&"auto"!==t&&0>(t+"").indexOf("px")&&0>(t+"").indexOf("%")&&(t+="px"),(0,v.call)(this.j.o.resizer.forImageChangeAttributes?v.attr:v.css,i,"width",t)}e&&"object"==typeof e&&(0,v.css)(i,e);const r=()=>{(i.offsetHeight>i.naturalHeight||i.offsetWidth>i.naturalWidth)&&(i.style.width="",i.style.height=""),i.removeEventListener("load",r)};this.j.e.on(i,"load",r),i.complete&&r(),this.insertNode(i),this.j.e.fire("afterInsertImage",i)}eachSelection(t){const e=this.sel;if(e&&e.rangeCount){const s=e.getRangeAt(0);let i=s.commonAncestorContainer;X.i.isHTMLElement(i)||(i=i.parentElement);const r=[],o=s.startOffset,n=i.childNodes.length;let a=s.startContainer===this.area?i.childNodes[n>o?o:n-1]:s.startContainer,l=s.endContainer===this.area?i.childNodes[s.endOffset-1]:s.endContainer;X.i.isText(a)&&a===s.startContainer&&s.startOffset===a.nodeValue?.length&&a.nextSibling&&(a=a.nextSibling),X.i.isText(l)&&l===s.endContainer&&0===s.endOffset&&l.previousSibling&&(l=l.previousSibling);const c=t=>{!t||t===i||X.i.isEmptyTextNode(t)||(0,Z._V)(t)||r.push(t)};c(a),a!==l&&X.i.isOrContains(i,a,!0)&&X.i.find(a,(t=>(c(t),t===l||t&&t.contains&&t.contains(l))),i,!0,!1);const h=e=>{if(X.i.isOrContains(this.j.editor,e,!0)){if(e.nodeName.match(/^(UL|OL)$/))return(0,v.toArray)(e.childNodes).forEach(h);if(X.i.isTag(e,"li"))if(e.firstChild)e=e.firstChild;else{const t=this.j.createInside.text(u.INVISIBLE_SPACE);e.appendChild(t),e=t}t(e)}};0===r.length&&X.i.isEmptyTextNode(a)&&r.push(a),0===r.length&&a.firstChild&&r.push(a.firstChild),r.forEach(h)}}cursorInTheEdge(t,e,s=null){const i=!t,r=this.sel?.getRangeAt(0);if(s??=this.current(!1),!r||!s||!X.i.isOrContains(e,s,!0))return null;const o=t?r.startContainer:r.endContainer,n=t?r.startOffset:r.endOffset,a=t=>!(!t||X.i.isTag(t,"br")||X.i.isEmptyTextNode(t)||X.i.isTemporary(t)||X.i.isElement(t)&&!0===this.j.e.fire("isInvisibleForCursor",t));if(X.i.isText(o)){const e=o.nodeValue?.length?o.nodeValue:"";if(i&&e.replace((0,u.INVISIBLE_SPACE_REG_EXP_END)(),"").length>n)return!1;const s=(0,u.INVISIBLE_SPACE_REG_EXP_START)().exec(e);if(t&&(s&&n>s[0].length||!s&&n>0))return!1}else{const t=(0,v.toArray)(o.childNodes);if(i){if(t.slice(n).some(a))return!1}else if(t.slice(0,n).some(a))return!1}let l=s;for(;l&&l!==e;){const e=X.i.sibling(l,t);if(e){if(l=e,l&&a(l))return!1}else l=l.parentNode}return!0}cursorOnTheLeft(t,e){return this.cursorInTheEdge(!0,t,e)}cursorOnTheRight(t,e){return this.cursorInTheEdge(!1,t,e)}setCursorAfter(t){return this.setCursorNearWith(t,!1)}setCursorBefore(t){return this.setCursorNearWith(t,!0)}setCursorNearWith(t,e){if(this.errorNode(t),!X.i.up(t,(t=>t===this.area||t&&t.parentNode===this.area),this.area))throw(0,v.error)("Node element must be in editor");const s=this.createRange();let i=null;return X.i.isText(t)?e?s.setStart(t,0):s.setEnd(t,t.nodeValue?.length??0):(i=this.j.createInside.fake(),e?s.setStartBefore(t):s.setEndAfter(t),s.collapse(e),X.i.safeInsertNode(s,i),s.selectNode(i)),s.collapse(e),this.selectRange(s),i}setCursorIn(t,e=!1){if(this.errorNode(t),!X.i.up(t,(t=>t===this.area||t&&t.parentNode===this.area),this.area))throw(0,v.error)("Node element must be in editor");const s=this.createRange();let i=t,r=t;do{if(X.i.isText(i))break;r=i,i=e?i.firstChild:i.lastChild}while(i);if(!i){const t=this.j.createInside.text(u.INVISIBLE_SPACE);/^(img|br|input)$/i.test(r.nodeName)?i=r:(r.appendChild(t),r=t)}return s.selectNodeContents(i||r),s.collapse(e),this.selectRange(s),r}selectRange(t,e=!0){const s=this.sel;return e&&!this.isFocused()&&this.focus(),s&&(s.removeAllRanges(),s.addRange(t)),this.j.e.fire("changeSelection"),this}select(t,e=!1){if(this.errorNode(t),!X.i.up(t,(t=>t===this.area||t&&t.parentNode===this.area),this.area))throw(0,v.error)("Node element must be in editor");const s=this.createRange();return s[e?"selectNodeContents":"selectNode"](t),this.selectRange(s)}get html(){const t=this.sel;if(t&&t.rangeCount>0){const e=t.getRangeAt(0).cloneContents(),s=this.j.createInside.div();return s.appendChild(e),s.innerHTML}return""}*wrapInTagGen(t){if(this.isCollapsed()){const e=this.jodit.createInside.element("font",u.INVISIBLE_SPACE);return this.insertNode(e,!1,!1),t&&t[0]&&e.appendChild(t[0]),yield e,void X.i.unwrap(e)}(0,v.$$)("*[style*=font-size]",this.area).forEach((t=>{(0,v.attr)(t,"data-font-size",""+t.style.fontSize),t.style.removeProperty("font-size")})),this.j.nativeExecCommand("fontsize",!1,"7"),(0,v.$$)("*[data-font-size]",this.area).forEach((t=>{const e=(0,v.attr)(t,"data-font-size");e&&(t.style.fontSize=e,(0,v.attr)(t,"data-font-size",null))}));const e=(0,v.$$)('font[size="7"]',this.area);for(const t of e){const{firstChild:e,lastChild:s}=t;e&&e===s&&(0,Z._V)(e)||(e&&(0,Z._V)(e)&&X.i.before(t,e),s&&(0,Z._V)(s)&&X.i.after(t,s),yield t),X.i.unwrap(t)}}wrapInTag(t){const e=[];for(const s of this.wrapInTagGen())try{if(s.firstChild&&s.firstChild===s.lastChild&&(0,Z._V)(s.firstChild))continue;(0,Z.mf)(t)?t(s):e.push(X.i.replace(s,t,this.j.createInside))}finally{const t=s.parentNode;t&&(X.i.unwrap(s),X.i.isEmpty(t)&&X.i.unwrap(t))}return e}commitStyle(t){new xs(t).apply(this.j)}applyStyle(t,e={}){this.commitStyle({style:t,...e})}splitSelection(t,e){if(!this.isCollapsed())return null;const s=this.createRange(),i=this.range;s.setStartBefore(t);const r=this.cursorOnTheRight(t,e),o=this.cursorOnTheLeft(t,e),n=this.j.createInside.element("br"),a=this.j.createInside.fake(),l=a.cloneNode();try{if(r||o){e?X.i.before(e,n):X.i.safeInsertNode(i,n);const t=(t,e)=>{let s=e(t);for(;s;){const t=e(s);if(!s||!X.i.isTag(s,"br")&&!X.i.isEmptyTextNode(s))break;X.i.safeRemove(s),s=t}};t(n,(t=>t.nextSibling)),t(n,(t=>t.previousSibling)),X.i.after(n,l),X.i.before(n,a),r?(s.setEndBefore(n),i.setEndBefore(n)):(s.setEndAfter(n),i.setEndAfter(n))}else s.setEnd(i.startContainer,i.startOffset);const c=s.extractContents(),h=t=>X.i.each(t,(t=>X.i.isEmptyTextNode(t)&&X.i.safeRemove(t)));try{if(h(c),h(t),t.parentNode.insertBefore(c,t),!e&&r&&n?.parentNode){const t=this.createRange();t.setStartBefore(n),this.selectRange(t)}}catch(t){if(!u.IS_PROD)throw t}const d=t=>{t?.parentNode?.firstChild===t?.parentNode?.lastChild&&t?.parentNode?.appendChild(n.cloneNode())};d(a),d(l)}finally{X.i.safeRemove(a),X.i.safeRemove(l)}return t.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;const{range:t}=this,e=t.cloneRange();if(!X.i.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;const s=e=>{const s=this.j.createInside.fake(),i=t.cloneRange();return i.collapse(e),X.i.safeInsertNode(i,s),((t,e,s)=>{let i=t;for(;i&&i!==s;){if(S.i.findSibling(i,e))return;if(S.i.isCell(i.parentElement))break;i=i.parentElement,i&&i!==s&&(e?S.i.before(i,t):S.i.after(i,t))}})(s,e,this.j.editor),s},i=s(!0),r=s(!1);e.setStartAfter(i),e.setEndBefore(r);const o=X.i.findSibling(i,!1),n=X.i.findSibling(r,!0);if(o!==n){const t=X.i.isElement(o)&&X.i.isOrContains(o,r),s=!t&&X.i.isElement(n)&&X.i.isOrContains(n,i);if(t||s){let s=t?o:n,a=s;for(;X.i.isElement(s);)s=t?s.firstElementChild:s.lastElementChild,s&&X.i.isOrContains(s,t?r:i)&&(a=s);t?e.setStart(a,0):e.setEnd(a,a.childNodes.length)}}return this.selectRange(e),X.i.safeRemove(i,r),this}}(0,p.gn)([y.autobind],js.prototype,"createRange",null),(0,p.gn)([y.autobind],js.prototype,"focus",null),(0,p.gn)([y.autobind],js.prototype,"setCursorAfter",null),(0,p.gn)([y.autobind],js.prototype,"setCursorBefore",null),(0,p.gn)([y.autobind],js.prototype,"setCursorIn",null);let Is=class t extends C.Hr{className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}getHeight(){return this.container?.offsetHeight??0}findEmpty(t=!1){const e=this.getElms(t?"item-right":"item");for(let t=0;e.length>t;t+=1)if(!e[t].innerHTML.trim().length)return e[t]}append(t,e=!1){const s=this.findEmpty(e)||this.j.c.div(this.getFullElName("item"));e&&s.classList.add(this.getFullElName("item-right")),s.appendChild(t),this.container?.appendChild(s),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}constructor(t,e){super(t),this.target=e,this.mods={},this.container=t.c.div("jodit-status-bar"),e.appendChild(this.container),this.hide()}destruct(){this.isInDestruct||(this.setStatus(C.n$.beforeDestruct),S.i.safeRemove(this.container),super.destruct())}};Is=(0,p.gn)([y.component,(0,y.derive)(at.$,lt.F)],Is);const ks=new WeakMap;class Ts extends C.Hr{constructor(){super(...arguments),this.selected=new Set}className(){return"Table"}recalculateStyles(){const t=(0,j.ZO)(this.j,Ts,"style",!0),e=[];this.selected.forEach((t=>{const s=(0,v.cssPath)(t);s&&e.push(s)})),t.innerHTML=e.length?e.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(t){this.selected.add(t),this.recalculateStyles();const e=X.i.closest(t,"table",this.j.editor);if(e){const s=Ts.selectedByTable.get(e)||new Set;s.add(t),Ts.selectedByTable.set(e,s)}}removeSelection(t){this.selected.delete(t),this.recalculateStyles();const e=X.i.closest(t,"table",this.j.editor);if(e){const s=Ts.selectedByTable.get(e);s&&(s.delete(t),s.size||Ts.selectedByTable.delete(e))}}getAllSelectedCells(){return(0,v.toArray)(this.selected)}static getSelectedCellsByTable(t){const e=Ts.selectedByTable.get(t);return e?(0,v.toArray)(e):[]}destruct(){return this.selected.clear(),super.destruct()}static getRowsCount(t){return t.rows.length}static getColumnsCount(t){return Ts.formalMatrix(t).reduce(((t,e)=>Math.max(t,e.length)),0)}static formalMatrix(t,e){const s=[[]],i=(0,v.toArray)(t.rows),r=(t,i)=>{void 0===s[i]&&(s[i]=[]);const r=t.colSpan,o=t.rowSpan;let n,a,l=0;for(;s[i][l];)l+=1;for(a=0;o>a;a+=1)for(n=0;r>n;n+=1){if(void 0===s[i+a]&&(s[i+a]=[]),e&&!1===e(t,i+a,l+n,r,o))return!1;s[i+a][l+n]=t}};for(let t=0;i.length>t;t+=1){const e=(0,v.toArray)(i[t].cells);for(let i=0;e.length>i;i+=1)if(!1===r(e[i],t))return s}return s}static formalCoordinate(t,e,s=!1){let i=0,r=0,o=1,n=1;return Ts.formalMatrix(t,((t,a,l,c,h)=>{if(e===t)return i=a,r=l,o=c||1,n=h||1,s&&(r+=(c||1)-1,i+=(h||1)-1),!1})),[i,r,o,n]}static appendRow(t,e,s,i){let r;if(e)r=e.cloneNode(!0),(0,v.$$)("td,th",e).forEach((t=>{const e=(0,v.attr)(t,"rowspan");if(e&&parseInt(e,10)>1){const s=parseInt(e,10)-1;(0,v.attr)(t,"rowspan",s>1?s:null)}})),(0,v.$$)("td,th",r).forEach((t=>{t.innerHTML=""}));else{const e=Ts.getColumnsCount(t);r=i.element("tr");for(let t=0;e>t;t+=1)r.appendChild(i.element("td"))}s&&e&&e.nextSibling?e.parentNode&&e.parentNode.insertBefore(r,e.nextSibling):!s&&e?e.parentNode&&e.parentNode.insertBefore(r,e):(t.getElementsByTagName("tbody")?.[0]||t).appendChild(r)}static removeRow(t,e){const s=Ts.formalMatrix(t);let i;const r=t.rows[e];s[e].forEach(((o,n)=>{if(i=!1,0>e-1||s[e-1][n]!==o)if(s[e+1]&&s[e+1][n]===o){if(o.parentNode===r&&o.parentNode.nextSibling){i=!0;let r=n+1;for(;s[e+1][r]===o;)r+=1;const a=X.i.next(o.parentNode,(t=>X.i.isTag(t,"tr")),t);a&&(s[e+1][r]?a.insertBefore(o,s[e+1][r]):a.appendChild(o))}}else X.i.safeRemove(o);else i=!0;if(i&&(o.parentNode===r||o!==s[e][n-1])){const t=o.rowSpan;(0,v.attr)(o,"rowspan",t-1>1?t-1:null)}})),X.i.safeRemove(r)}static appendColumn(t,e,s,i){const r=Ts.formalMatrix(t);let o;for((void 0===e||0>e)&&(e=Ts.getColumnsCount(t)-1),o=0;r.length>o;o+=1){const t=i.element("td"),n=r[o][e];let a=!1;s?(r[o]&&n&&e+1>=r[o].length||n!==r[o][e+1])&&(n.nextSibling?X.i.before(n.nextSibling,t):n.parentNode&&n.parentNode.appendChild(t),a=!0):(0>e-1||r[o][e]!==r[o][e-1]&&r[o][e].parentNode)&&(X.i.before(r[o][e],t),a=!0),a||(0,v.attr)(r[o][e],"colspan",parseInt((0,v.attr)(r[o][e],"colspan")||"1",10)+1)}}static removeColumn(t,e){const s=Ts.formalMatrix(t);let i;s.forEach(((t,r)=>{const o=t[e];if(i=!1,0>e-1||s[r][e-1]!==o?t.length>e+1&&s[r][e+1]===o?i=!0:X.i.safeRemove(o):i=!0,i&&(0>r-1||o!==s[r-1][e])){const t=o.colSpan;(0,v.attr)(o,"colspan",t-1>1?""+(t-1):null)}}))}static getSelectedBound(t,e){const s=[[1/0,1/0],[0,0]],i=Ts.formalMatrix(t);let r,o,n;for(r=0;i.length>r;r+=1)for(o=0;i[r]&&i[r].length>o;o+=1)e.includes(i[r][o])&&(s[0][0]=Math.min(r,s[0][0]),s[0][1]=Math.min(o,s[0][1]),s[1][0]=Math.max(r,s[1][0]),s[1][1]=Math.max(o,s[1][1]));for(r=s[0][0];s[1][0]>=r;r+=1)for(n=1,o=s[0][1];s[1][1]>=o;o+=1){for(;i[r]&&i[r][o-n]&&i[r][o]===i[r][o-n];)s[0][1]=Math.min(o-n,s[0][1]),s[1][1]=Math.max(o-n,s[1][1]),n+=1;for(n=1;i[r]&&i[r][o+n]&&i[r][o]===i[r][o+n];)s[0][1]=Math.min(o+n,s[0][1]),s[1][1]=Math.max(o+n,s[1][1]),n+=1;for(n=1;i[r-n]&&i[r][o]===i[r-n][o];)s[0][0]=Math.min(r-n,s[0][0]),s[1][0]=Math.max(r-n,s[1][0]),n+=1;for(n=1;i[r+n]&&i[r][o]===i[r+n][o];)s[0][0]=Math.min(r+n,s[0][0]),s[1][0]=Math.max(r+n,s[1][0]),n+=1}return s}static normalizeTable(t){let e,s,i,r;const o=[],n=Ts.formalMatrix(t);for(s=0;n[0].length>s;s+=1){for(i=1e6,r=!1,e=0;n.length>e;e+=1)if(void 0!==n[e][s]){if(2>n[e][s].colSpan){r=!0;break}i=Math.min(i,n[e][s].colSpan)}if(!r)for(e=0;n.length>e;e+=1)void 0!==n[e][s]&&Ts.mark(n[e][s],"colspan",n[e][s].colSpan-i+1,o)}for(e=0;n.length>e;e+=1){for(i=1e6,r=!1,s=0;n[e].length>s;s+=1)if(void 0!==n[e][s]){if(2>n[e][s].rowSpan){r=!0;break}i=Math.min(i,n[e][s].rowSpan)}if(!r)for(s=0;n[e].length>s;s+=1)void 0!==n[e][s]&&Ts.mark(n[e][s],"rowspan",n[e][s].rowSpan-i+1,o)}for(e=0;n.length>e;e+=1)for(s=0;n[e].length>s;s+=1)void 0!==n[e][s]&&(n[e][s].hasAttribute("rowspan")&&1===n[e][s].rowSpan&&(0,v.attr)(n[e][s],"rowspan",null),n[e][s].hasAttribute("colspan")&&1===n[e][s].colSpan&&(0,v.attr)(n[e][s],"colspan",null),n[e][s].hasAttribute("class")&&!(0,v.attr)(n[e][s],"class")&&(0,v.attr)(n[e][s],"class",null));Ts.unmark(o)}static mergeSelected(t,e){const s=[],i=Ts.getSelectedBound(t,Ts.getSelectedCellsByTable(t));let r,o=0,n=null,a=0,l=0,c=0;const h=new Set,d=[];i&&(i[0][0]-i[1][0]||i[0][1]-i[1][1])&&(Ts.formalMatrix(t,((t,u,p,f,m)=>{if(!(i[0][0]>u||u>i[1][0]||i[0][1]>p||p>i[1][1])){if(r=t,h.has(r))return;h.add(r),u===i[0][0]&&r.style.width&&(o+=r.offsetWidth),""!==(0,v.trim)(t.innerHTML.replace(/<br(\/)?>/g,""))&&s.push(t.innerHTML),f>1&&(l+=f-1),m>1&&(c+=m-1),n?(Ts.mark(r,"remove",1,d),Ls(e).removeSelection(r)):(n=t,a=p)}})),l=i[1][1]-i[0][1]+1,c=i[1][0]-i[0][0]+1,n&&(l>1&&Ts.mark(n,"colspan",l,d),c>1&&Ts.mark(n,"rowspan",c,d),o&&(Ts.mark(n,"width",(o/t.offsetWidth*100).toFixed(u.ACCURACY)+"%",d),a&&Ts.setColumnWidthByDelta(t,a,0,!0,d)),n.innerHTML=s.join("<br/>"),Ls(e).addSelection(n),h.delete(n),Ts.unmark(d),Ts.normalizeTable(t),(0,v.toArray)(t.rows).forEach(((t,e)=>{t.cells.length||X.i.safeRemove(t)}))))}static splitHorizontal(t,e){let s,i,r,o,n;const a=[];Ts.getSelectedCellsByTable(t).forEach((l=>{i=e.createInside.element("td"),i.appendChild(e.createInside.element("br")),r=e.createInside.element("tr"),s=Ts.formalCoordinate(t,l),2>l.rowSpan?(Ts.formalMatrix(t,((t,e,i)=>{s[0]===e&&s[1]!==i&&t!==l&&Ts.mark(t,"rowspan",t.rowSpan+1,a)})),X.i.after(X.i.closest(l,"tr",t),r),r.appendChild(i)):(Ts.mark(l,"rowspan",l.rowSpan-1,a),Ts.formalMatrix(t,((e,i,r)=>{i>s[0]&&s[0]+l.rowSpan>i&&s[1]>r&&e.parentNode.rowIndex===i&&(n=e),i>s[0]&&e===l&&(o=t.rows[i])})),n?X.i.after(n,i):o.insertBefore(i,o.firstChild)),l.colSpan>1&&Ts.mark(i,"colspan",l.colSpan,a),Ts.unmark(a),Ls(e).removeSelection(l)})),this.normalizeTable(t)}static splitVertical(t,e){let s,i,r;const o=[];Ts.getSelectedCellsByTable(t).forEach((n=>{s=Ts.formalCoordinate(t,n),2>n.colSpan?Ts.formalMatrix(t,((t,e,i)=>{s[1]===i&&s[0]!==e&&t!==n&&Ts.mark(t,"colspan",t.colSpan+1,o)})):Ts.mark(n,"colspan",n.colSpan-1,o),i=e.createInside.element("td"),i.appendChild(e.createInside.element("br")),n.rowSpan>1&&Ts.mark(i,"rowspan",n.rowSpan,o);const a=n.offsetWidth;X.i.after(n,i),r=a/t.offsetWidth/2,Ts.mark(n,"width",(100*r).toFixed(u.ACCURACY)+"%",o),Ts.mark(i,"width",(100*r).toFixed(u.ACCURACY)+"%",o),Ts.unmark(o),Ls(e).removeSelection(n)})),Ts.normalizeTable(t)}static setColumnWidthByDelta(t,e,s,i,r){const o=Ts.formalMatrix(t);let n=0;for(let i=0;o.length>i;i+=1){const a=o[i][e];if(1>=a.colSpan||1>=o.length){Ts.mark(a,"width",((a.offsetWidth+s)/t.offsetWidth*100).toFixed(u.ACCURACY)+"%",r),n=i;break}}for(let t=n+1;o.length>t;t+=1)Ts.mark(o[t][e],"width",null,r);i||Ts.unmark(r)}static mark(t,e,s,i){i.push(t);const r=ks.get(t)??{};r[e]=void 0===s?1:s,ks.set(t,r)}static unmark(t){t.forEach((t=>{const e=ks.get(t);e&&(Object.keys(e).forEach((s=>{const i=e[s];switch(s){case"remove":X.i.safeRemove(t);break;case"rowspan":(0,v.attr)(t,"rowspan",(0,v.isNumber)(i)&&i>1?i:null);break;case"colspan":(0,v.attr)(t,"colspan",(0,v.isNumber)(i)&&i>1?i:null);break;case"width":null==i?(t.style.removeProperty("width"),(0,v.attr)(t,"style")||(0,v.attr)(t,"style",null)):t.style.width=""+i}delete e[s]})),ks.delete(t))}))}}Ts.selectedByTable=new WeakMap,(0,p.gn)([(0,y.debounce)()],Ts.prototype,"recalculateStyles",null);const Ls=t=>t.getInstance("Table",t.o);function Ms(t){const e=atob(t.split(",")[1]),s=t.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(e.length),r=new Uint8Array(i);for(let t=0;e.length>t;t+=1)r[t]=e.charCodeAt(t);return new Blob([r],{type:s})}const Ps=new WeakMap;function Ns(t,e){const s=((t,e)=>{if((0,v.isFunction)(t.o.buildData))return t.o.buildData.call(t,e);const s=t.ow.FormData;if(void 0!==s){if(e instanceof s)return e;if((0,v.isString)(e))return e;const t=new s;return Object.keys(e).forEach((s=>{t.append(s,e[s])})),t}return e})(t,e),i=e=>{const s=new _({xhr(){const e=new XMLHttpRequest;return void 0!==t.j.ow.FormData&&e.upload?(t.j.progressbar.show().progress(10),e.upload.addEventListener("progress",(e=>{if(e.lengthComputable){let s=e.loaded/e.total;s*=100,t.j.progressbar.show().progress(s),100>s||t.j.progressbar.hide()}}),!1)):t.j.progressbar.hide(),e},method:t.o.method||"POST",data:e,url:(0,v.isFunction)(t.o.url)?t.o.url(e):t.o.url,headers:t.o.headers,queryBuild:t.o.queryBuild,contentType:t.o.contentType.call(t,e),withCredentials:t.o.withCredentials||!1});let i=Ps.get(t);return i||(i=new Set,Ps.set(t,i)),i.add(s),t.j.e.one("beforeDestruct",s.destruct),s.send().then((t=>t.json())).catch((e=>{t.o.error.call(t,e)})).finally((()=>{s.destruct(),i?.delete(s)}))};return(0,v.isPromise)(s)?s.then(i).catch((e=>{t.o.error.call(t,e)})):i(s)}function zs(t,e,s,i,r){if(!e)return Promise.reject((0,v.error)("Need files"));const{o}=t;let n=(0,v.toArray)(e);if(!n.length)return Promise.reject((0,v.error)("Need files"));const a=[];if(o.insertImageAsBase64URI){let e,i;for(i=0;n.length>i;i+=1)if(e=n[i],e&&e.type){const r=e.type.match(/\/([a-z0-9]+)/i),l=r[1]?r[1].toLowerCase():"";if(o.imagesExtensions.includes(l)){const r=new FileReader;a.push(t.j.async.promise(((i,n)=>{r.onerror=n,r.onloadend=()=>{const e={baseurl:"",files:[r.result],isImages:[!0]};((0,v.isFunction)(s)?s:o.defaultHandlerSuccess).call(t,e),i(e)},r.readAsDataURL(e)}))),n[i]=null}}}if(n=n.filter((t=>t)),n.length){const e=new FormData;let l;e.append(o.pathVariableName,t.path),e.append("source",t.source);for(let s=0;n.length>s;s+=1)if(l=n[s],l){const i=/\.[\d\w]+$/.test(l.name),r=l.type.match(/\/([a-z0-9]+)/i),a=r&&r[1]?r[1].toLowerCase():"";let c=n[s].name||(""+Math.random()).replace(".","");if(!i&&a){let t=a;["jpeg","jpg"].includes(t)&&(t="jpeg|jpg"),RegExp(".("+t+")$","i").test(c)||(c+="."+a)}const[h,d,u]=o.processFileName.call(t,o.filesVariableName(s),n[s],c);e.append(h,d,u)}r&&r(e),o.data&&(0,v.isPlainObject)(o.data)&&Object.keys(o.data).forEach((t=>{e.append(t,o.data[t])})),o.prepareData.call(t,e),a.push(Ns(t,e).then((e=>o.isSuccess.call(t,e)?(((0,v.isFunction)(s)?s:o.defaultHandlerSuccess).call(t,o.process.call(t,e)),e):(((0,v.isFunction)(i)?i:o.defaultHandlerError).call(t,(0,v.error)(o.getMessage.call(t,e))),e))).then((()=>{t.j.events&&t.j.e.fire("filesWereUploaded")})))}return Promise.all(a)}function Ds(t){return!!(t&&t.files&&t.files.length>0)}function Rs(t){return!!(t&&t.items&&t.items.length>0)}var As=r(77892);f.D.prototype.enableDragAndDropFileToEditor=!0,f.D.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&&(0,D.k)(t.data.messages)?t.data.messages.join(" "):"",processFileName:(t,e,s)=>[t,e,s],process:t=>t.data,error(t){this.j.message.error(t.message,4e3)},getDisplayName:(t,e)=>t+e,defaultHandlerSuccess(t){const e=this.j||this;(0,As.Z)(e)&&t.files&&t.files.length&&t.files.forEach(((s,i)=>{const[r,o]=t.isImages&&t.isImages[i]?["img","src"]:["a","href"],n=e.createInside.element(r);n.setAttribute(o,t.baseurl+s),"a"===r&&(n.textContent=e.o.uploader.getDisplayName.call(this,t.baseurl,s)),"img"===r?e.s.insertImage(n,null,e.o.imageDefaultWidth):e.s.insertNode(n)}))},defaultHandlerError(t){this.j.message.error(t.message)},contentType(t){return(void 0===this.ow.FormData||"string"==typeof t)&&"application/x-www-form-urlencoded; charset=UTF-8"}};class qs extends C.Hr{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(t){return this.path=t,this}setSource(t){return this.source=t,this}bind(t,e,s){const i=()=>{t.classList.remove("jodit_drag_hover")},r=this,o=t=>{let o,n,a;const l=t.clipboardData,c=t=>{n&&(t.append("extension",a),t.append("mimetype",n.type))};if(!u.IS_IE&&Ds(l))return zs(r,l.files,e,s).finally(i),!1;if(u.IS_IE&&!u.IS_ES_NEXT)return((t,e,s,i,r)=>{if(e&&(!e.types.length||e.types[0]!==u.TEXT_PLAIN)){const e=t.j.c.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});(0,j.ZO)(t.j,t.constructor).appendChild(e);const o=(0,v.isJoditObject)(t.j)?t.j.s.save():null,n=()=>o&&(0,v.isJoditObject)(t.j)&&t.j.s.restore();e.focus(),t.j.async.setTimeout((()=>{const o=e.firstChild;if(X.i.safeRemove(e),o&&o.hasAttribute("src")){const e=(0,v.attr)(o,"src")||"";n(),zs(t,[Ms(e)],s,i).finally(r)}}),t.j.defaultTimeout)}})(r,l,e,s,i);if(Rs(l)){const{items:h}=l;for(o=0;h.length>o;o+=1)if("file"===h[o].kind&&"image/png"===h[o].type){if(n=h[o].getAsFile(),n){const t=n.type.match(/\/([a-z0-9]+)/i);a=t[1]?t[1].toLowerCase():"",zs(r,[n],e,s,c).finally(i)}t.preventDefault();break}}};r.j&&r.j.editor!==t?r.j.e.on(t,"paste",o):r.j.e.on("beforePaste",o),this.attachEvents(t,e,s,i)}attachEvents(t,e,s,i){const r=this;r.j.e.on(t,"dragend dragover dragenter dragleave drop",(t=>{t.preventDefault()})).on(t,"dragover",(e=>{(Ds(e.dataTransfer)||Rs(e.dataTransfer))&&(t.classList.add("jodit_drag_hover"),e.preventDefault())})).on(t,"dragend dragleave",(e=>{t.classList.remove("jodit_drag_hover"),Ds(e.dataTransfer)&&e.preventDefault()})).on(t,"drop",(o=>{t.classList.remove("jodit_drag_hover"),Ds(o.dataTransfer)&&(o.preventDefault(),o.stopImmediatePropagation(),zs(r,o.dataTransfer.files,e,s).finally(i))}));const o=t.querySelector("input[type=file]");o&&r.j.e.on(o,"change",(()=>{zs(r,o.files,e,s).then((()=>{o.value="",/safari/i.test(navigator.userAgent)||(o.type="",o.type="file")})).finally(i)}))}uploadRemoteImage(t,e,s){const i=this,{o:r}=i,o=(0,v.isFunction)(s)?s:r.defaultHandlerError;Ns(i,{action:"fileUploadRemote",url:t}).then((t=>{r.isSuccess.call(i,t)?((0,v.isFunction)(e)?e:r.defaultHandlerSuccess).call(i,r.process.call(i,t)):o.call(i,(0,v.error)(r.getMessage.call(i,t)))})).catch((t=>o.call(i,t)))}constructor(t,e){super(t),this.path="",this.source="default",this.options=(0,v.ConfigProto)(e||{},(0,v.ConfigProto)(f.D.defaultOptions.uploader,(0,v.isJoditObject)(t)?t.o.uploader:{}))}destruct(){this.setStatus(C.n$.beforeDestruct);const t=Ps.get(this);t&&(t.forEach((t=>{try{t.destruct()}catch{}})),t.clear()),super.destruct()}}var Os,Bs=r(90262);const Hs="data-jodit-default-style-display",Fs="data-jodit-default-classes";let Jodit=Os=class Jodit extends Bt{className(){return"Jodit"}waitForReady(){return this.isReady?Promise.resolve(this):this.async.promise((t=>{this.hookStatus("ready",(()=>t(this)))}))}static get ready(){return new Promise((t=>{j.TB.on("oditready",t)}))}get text(){if(this.editor)return this.editor.innerText||"";const t=this.createInside.div();return t.innerHTML=this.getElementValue(),t.innerText||""}get defaultTimeout(){return(0,v.isNumber)(this.o.defaultTimeout)?this.o.defaultTimeout:f.D.defaultOptions.defaultTimeout}static atom(t){return(0,v.markAsAtomic)(t)}static make(t,e){return new this(t,e)}static isJoditAssigned(t){return t&&(0,v.isJoditObject)(t.component)&&!t.component.isInDestruct}static get defaultOptions(){return f.D.defaultOptions}get createInside(){return new Yt((()=>this.ed),this.o.createAttributes)}__setPlaceField(t,e){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[t]=e}get element(){return this.currentPlace.element}get editor(){return this.currentPlace.editor}set editor(t){this.__setPlaceField("editor",t)}get container(){return this.currentPlace.container}set container(t){this.__setPlaceField("container",t)}get workplace(){return this.currentPlace.workplace}get statusbar(){return this.currentPlace.statusbar}get iframe(){return this.currentPlace.iframe}set iframe(t){this.__setPlaceField("iframe",t)}get history(){return this.currentPlace.history}get editorWindow(){return this.currentPlace.editorWindow}set editorWindow(t){this.__setPlaceField("editorWindow",t)}get ew(){return this.editorWindow}get editorDocument(){return this.currentPlace.editorWindow.document}get ed(){return this.editorDocument}get options(){return this.currentPlace.options}set options(t){this.__setPlaceField("options",t)}get s(){return this.selection}get uploader(){return this.getInstance("Uploader",this.o.uploader)}get filebrowser(){const t=this,e=(0,v.ConfigProto)({defaultTimeout:t.defaultTimeout,uploader:t.o.uploader,language:t.o.language,license:t.o.license,theme:t.o.theme,shadowRoot:t.o.shadowRoot,defaultCallback(e){e.files&&e.files.length&&e.files.forEach(((s,i)=>{const r=e.baseurl+s;e.isImages&&e.isImages[i]?t.s.insertImage(r,null,t.o.imageDefaultWidth):t.s.insertNode(t.createInside.fromHTML(`<a href='${r}' title='${r}'>${r}</a>`))}))}},this.o.filebrowser);return t.getInstance("FileBrowser",e)}get mode(){return this.__mode}set mode(t){this.setMode(t)}getNativeEditorValue(){const t=this.e.fire("beforeGetNativeEditorValue");return(0,v.isString)(t)?t:this.editor?this.editor.innerHTML:this.getElementValue()}setNativeEditorValue(t){const e={value:t};this.e.fire("beforeSetNativeEditorValue",e)||this.editor&&(this.editor.innerHTML=e.value)}get value(){return this.getEditorValue()}set value(t){this.setEditorValue(t),this.history.__processChanges()}synchronizeValues(){this.__imdSynchronizeValues()}__imdSynchronizeValues(){this.setEditorValue()}getEditorValue(t=!0,e){let s;if(s=this.e.fire("beforeGetValueFromEditor",e),void 0!==s)return s;s=this.getNativeEditorValue().replace(u.INVISIBLE_SPACE_REG_EXP(),""),t&&(s=s.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===s&&(s="");const i={value:s};return this.e.fire("afterGetValueFromEditor",i,e),i.value}setEditorValue(t){const e=this.e.fire("beforeSetValueToEditor",t);if(!1===e)return;if((0,v.isString)(e)&&(t=e),!this.editor)return void(void 0!==t&&this.__setElementValue(t));if(!(0,v.isString)(t)&&!(0,v.isVoid)(t))throw(0,v.error)("value must be string");(0,v.isVoid)(t)||this.getNativeEditorValue()===t||this.setNativeEditorValue(t),this.e.fire("postProcessSetEditorValue");const s=this.getElementValue(),i=this.getEditorValue();if(!this.__isSilentChange&&s!==i&&u.SAFE_COUNT_CHANGE_CALL>this.__callChangeCount){this.__setElementValue(i),this.__callChangeCount+=1;try{this.history.__upTick(),this.e.fire("change",i,s),this.e.fire(this.history,"change",i,s)}finally{this.__callChangeCount=0}}}updateElementValue(){this.__setElementValue(this.getEditorValue())}getElementValue(){return void 0!==this.element.value?this.element.value:this.element.innerHTML}setElementValue(t){const e=this.getElementValue();return(void 0===t||(0,v.isString)(t)&&t!==e)&&(t??=e,t!==this.getEditorValue()&&this.setEditorValue(t)),this.__setElementValue(t)}__setElementValue(t){if(!(0,v.isString)(t))throw(0,v.error)("value must be string");if(this.element!==this.container&&t!==this.getElementValue()){const e={value:t},s=this.e.fire("beforeSetElementValue",e);(0,v.callPromise)(s,(()=>{void 0!==this.element.value?this.element.value=e.value:this.element.innerHTML=e.value,this.e.fire("afterSetElementValue",e)}))}}registerCommand(t,e,s){const i=t.toLowerCase();let r=this.commands.get(i);if(void 0===r&&(r=[],this.commands.set(i,r)),r.push(e),!(0,v.isFunction)(e)){const r=this.o.commandToHotkeys[i]||this.o.commandToHotkeys[t]||e.hotkeys;r&&this.registerHotkeyToCommand(r,i,s?.stopPropagation)}return this}registerHotkeyToCommand(t,e,s=!0){const i=(0,v.asArray)(t).map(v.normalizeKeyAliases).map((t=>t+".hotkey")).join(" ");this.e.off(i).on(i,((t,i)=>(i&&(i.shouldStop=s??!0),this.execCommand(e))))}execCommand(t,e,s,...i){if(this.s.isFocused()||this.s.focus(),this.o.readonly&&!this.o.allowCommandsInReadOnly.includes(t))return;let r;if(t=t.toLowerCase(),r=this.e.fire("beforeCommand",t,e,s,...i),!1!==r&&(r=this.__execCustomCommands(t,e,s,...i)),!1!==r)if(this.s.focus(),"selectall"===t)this.s.select(this.editor,!0),this.s.expandSelection();else try{r=this.nativeExecCommand(t,e,s)}catch(t){if(!u.IS_PROD)throw t}return this.e.fire("afterCommand",t,e,s),this.setEditorValue(),r}nativeExecCommand(t,e,s){this.__isSilentChange=!0;try{return this.ed.execCommand(t,e,s)}finally{this.__isSilentChange=!1}}__execCustomCommands(t,e,s,...i){t=t.toLowerCase();const r=this.commands.get(t);if(void 0!==r){let o;return r.forEach((r=>{let n;n=(0,v.isFunction)(r)?r:r.exec;const a=n.call(this,t,e,s,...i);void 0!==a&&(o=a)})),o}}lock(t="any"){return!!super.lock(t)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.editor.classList.add("jodit_lock"),this.e.fire("lock",!0),!0)}unlock(){return!!super.unlock()&&(this.editor.classList.remove("jodit_lock"),this.__selectionLocked&&this.s.restore(),this.e.fire("lock",!1),!0)}getMode(){return this.mode}isEditorMode(){return this.getRealMode()===u.MODE_WYSIWYG}getRealMode(){if(this.getMode()!==u.MODE_SPLIT)return this.getMode();const t=this.od.activeElement;return t&&(t===this.iframe||X.i.isOrContains(this.editor,t)||X.i.isOrContains(this.toolbar.container,t))?u.MODE_WYSIWYG:u.MODE_SOURCE}setMode(t){const e=this.getMode(),s={mode:parseInt(""+t,10)},i=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",s)&&(this.__mode=[u.MODE_SOURCE,u.MODE_WYSIWYG,u.MODE_SPLIT].includes(s.mode)?s.mode:u.MODE_WYSIWYG,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),i.forEach((t=>{this.container.classList.remove(t)})),this.container.classList.add(i[this.mode-1]),e!==this.getMode()&&this.e.fire("afterSetMode"))}toggleMode(){let t=this.getMode();[u.MODE_SOURCE,u.MODE_WYSIWYG,this.o.useSplitMode?u.MODE_SPLIT:9].includes(t+1)?t+=1:t=u.MODE_WYSIWYG,this.setMode(t)}setDisabled(t){this.o.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.e.fire("disabled",t))}getDisabled(){return this.o.disabled}setReadOnly(t){this.__wasReadOnly!==t&&(this.__wasReadOnly=t,this.o.readonly=t,t?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.e&&this.e.fire("readonly",t))}getReadOnly(){return this.o.readonly}focus(){this.getMode()!==u.MODE_SOURCE&&this.s.focus()}get isFocused(){return this.s.isFocused()}beforeInitHook(){}afterInitHook(){}initOptions(t){this.options=(0,v.ConfigProto)(t||{},f.D.defaultOptions)}initOwners(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}constructor(t,e){super(e,!0),this.isJodit=!0,this.commands=new Map,this.__selectionLocked=null,this.__wasReadOnly=!1,this.editorIsActive=!1,this.__mode=u.MODE_WYSIWYG,this.__callChangeCount=0,this.__isSilentChange=!1,this.__elementToPlace=new Map;try{const e=(0,v.resolveElement)(t,this.o.shadowRoot||this.od);if(Os.isJoditAssigned(e))return e.component}catch(t){throw this.destruct(),t}this.setStatus(C.n$.beforeInit),this.id=(0,v.attr)((0,v.resolveElement)(t,this.o.shadowRoot||this.od),"id")||""+(new Date).getTime(),j.as[this.id]=this,this.attachEvents(e),this.e.on(this.ow,"resize",(()=>{this.e&&this.e.fire("resize")})),this.e.on("prepareWYSIWYGEditor",this.__prepareWYSIWYGEditor),this.selection=new js(this);const s=this.beforeInitHook();(0,v.callPromise)(s,(()=>{this.e.fire("beforeInit",this),j.pw.__init(this),this.e.fire("afterPluginSystemInit",this),this.e.on("changePlace",(()=>{this.setReadOnly(this.o.readonly),this.setDisabled(this.o.disabled)})),this.places.length=0;const s=this.addPlace(t,e);j.as[this.id]=this,(0,v.callPromise)(s,(()=>{this.e&&this.e.fire("afterInit",this),this.afterInitHook(),this.setStatus(C.n$.ready),this.e.fire("afterConstructor",this)}))}))}addPlace(t,e){const s=(0,v.resolveElement)(t,this.o.shadowRoot||this.od);this.attachEvents(e),s.attributes&&(0,v.toArray)(s.attributes).forEach((t=>{const s=t.name;let i=t.value;void 0===f.D.defaultOptions[s]||e&&void 0!==e[s]||(-1!==["readonly","disabled"].indexOf(s)&&(i=""===i||"true"===i),/^[0-9]+(\.)?([0-9]+)?$/.test(""+i)&&(i=Number(i)),this.options[s]=i)}));let i=this.c.div("jodit-container");i.classList.add("jodit"),i.classList.add("jodit-container"),i.classList.add("jodit_theme_"+(this.o.theme||"default")),$s(this.o.className,i),this.o.containerStyle&&(0,v.css)(i,this.o.containerStyle);const{styleValues:r}=this.o;Object.keys(r).forEach((t=>{const e=(0,v.kebabCase)(t);i.style.setProperty("--jd-"+e,r[t])})),i.setAttribute("contenteditable","false");let o=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(s.nodeName)&&(i=s,s.setAttribute(Fs,""+s.className),o=i.innerHTML,i.innerHTML=""),i.classList.add("jodit_inline"),i.classList.add("jodit-container")),s!==i&&(s.style.display&&s.setAttribute(Hs,s.style.display),s.style.display="none");const n=this.c.div("jodit-workplace",{contenteditable:!1});i.appendChild(n),s.parentNode&&s!==i&&s.parentNode.insertBefore(i,s),Object.defineProperty(s,"component",{enumerable:!1,configurable:!0,value:this});const a=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});n.appendChild(a);const l={editor:a,element:s,container:i,workplace:n,statusbar:new Is(this,i),options:this.isReady?(0,v.ConfigProto)(e||{},f.D.defaultOptions):this.options,history:new Ae(this),editorWindow:this.ow};this.__elementToPlace.set(a,l),this.setCurrentPlace(l),this.places.push(l),this.setNativeEditorValue(this.getElementValue());const c=this.__initEditor(o),h=this.options;return(0,v.callPromise)(c,(()=>{h.enableDragAndDropFileToEditor&&h.uploader&&(h.uploader.url||h.uploader.insertImageAsBase64URI)&&this.uploader.bind(this.editor),this.__elementToPlace.get(this.editor)||this.__elementToPlace.set(this.editor,l),this.e.fire("afterAddPlace",l)}))}addDisclaimer(t){this.workplace.appendChild(t)}setCurrentPlace(t){this.currentPlace!==t&&(this.isEditorMode()||this.setMode(u.MODE_WYSIWYG),this.currentPlace=t,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",t))}__initEditor(t){const e=this.__createEditor();return(0,v.callPromise)(e,(()=>{if(this.isInDestruct)return;if(this.element!==this.container){const t=this.getElementValue();t!==this.getEditorValue()&&this.setEditorValue(t)}else null!=t&&this.setEditorValue(t);let e=this.o.defaultMode;if(this.o.saveModeInStorage){const t=this.storage.get("jodit_default_mode");"string"==typeof t&&(e=parseInt(t,10))}this.setMode(e),this.o.readonly&&(this.__wasReadOnly=!1,this.setReadOnly(!0)),this.o.disabled&&this.setDisabled(!0);try{this.ed.execCommand("defaultParagraphSeparator",!1,this.o.enter.toLowerCase())}catch{}try{this.ed.execCommand("enableObjectResizing",!1,"false")}catch{}try{this.ed.execCommand("enableInlineTableEditing",!1,"false")}catch{}}))}__createEditor(){const t=this.editor,e=this.e.fire("createEditor",this);return(0,v.callPromise)(e,(()=>{if(!this.isInDestruct){if((!1===e||(0,v.isPromise)(e))&&X.i.safeRemove(t),$s(this.o.editorClassName||this.o.editorCssClass,this.editor),this.o.editorCssClass&&this.editor.classList.add(this.o.editorCssClass),this.o.style&&(0,v.css)(this.editor,this.o.style),this.e.on("synchro",(()=>{this.setEditorValue()})).on("focus",(()=>{this.editorIsActive=!0})).on("blur",(()=>this.editorIsActive=!1)),this.__prepareWYSIWYGEditor(),this.o.direction){const t="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.container.style.direction=t,this.container.setAttribute("dir",t),this.toolbar.setDirection(t)}this.o.triggerChangeEvent&&this.e.on("change",this.async.debounce((()=>{this.e&&this.e.fire(this.element,"change")}),this.defaultTimeout))}}))}__prepareWYSIWYGEditor(){const{editor:t}=this;if(this.o.direction){const t="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=t,this.editor.setAttribute("dir",t)}this.e.on(t,"mousedown touchstart focus",(()=>{const e=this.__elementToPlace.get(t);e&&this.setCurrentPlace(e)})).on(t,"compositionend",this.synchronizeValues).on(t,"selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",(t=>{if(!this.o.readonly&&!this.__isSilentChange&&!(t instanceof this.ew.KeyboardEvent&&t.isComposing)&&this.e&&this.e.fire){if(!1===this.e.fire(t.type,t))return!1;this.synchronizeValues()}}))}fetch(t,e){const s=new _({url:t,...e},this.o.defaultAjaxOptions),i=()=>{this.e.off("beforeDestruct",i),this.progressbar.progress(100).hide(),s.destruct()};this.e.one("beforeDestruct",i),this.progressbar.show().progress(30);const r=s.send();return r.finally(i).catch((()=>null)),r}destruct(){if(this.isInDestruct)return;if(this.setStatus(C.n$.beforeDestruct),this.__elementToPlace.clear(),!this.editor)return;const t=this.getEditorValue();this.storage.clear(),this.buffer.clear(),this.commands.clear(),this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body),this.places.forEach((({container:e,workplace:s,statusbar:i,element:r,iframe:o,editor:n,history:a})=>{if(r!==e)if(r.hasAttribute(Hs)){const t=(0,v.attr)(r,Hs);t&&(r.style.display=t,r.removeAttribute(Hs))}else r.style.display="";else r.hasAttribute(Fs)&&(r.className=(0,v.attr)(r,Fs)||"",r.removeAttribute(Fs));r.hasAttribute("style")&&!(0,v.attr)(r,"style")&&r.removeAttribute("style"),i.destruct(),this.e.off(e),this.e.off(r),this.e.off(n),X.i.safeRemove(s),X.i.safeRemove(n),e!==r&&X.i.safeRemove(e),Object.defineProperty(r,"component",{enumerable:!1,configurable:!0,value:null}),X.i.safeRemove(o),e===r&&(r.innerHTML=t),a.destruct()})),this.places.length=0,this.currentPlace={},delete j.as[this.id],super.destruct()}};function $s(t,e){t&&t.split(/\s+/).forEach((t=>e.classList.add(t)))}Jodit.fatMode=!1,Jodit.plugins=j.pw,Jodit.modules=j.qz,Jodit.ns=j.qz,Jodit.decorators={},Jodit.constants=u,Jodit.instances=j.as,Jodit.lang=u.lang,Jodit.core={Plugin:Ut.S},(0,p.gn)([y.cache],Jodit.prototype,"createInside",null),(0,p.gn)([y.cache],Jodit.prototype,"s",null),(0,p.gn)([y.cache],Jodit.prototype,"uploader",null),(0,p.gn)([y.cache],Jodit.prototype,"filebrowser",null),(0,p.gn)([(0,y.throttle)()],Jodit.prototype,"synchronizeValues",null),(0,p.gn)([(0,y.watch)(":internalChange")],Jodit.prototype,"updateElementValue",null),(0,p.gn)([y.autobind],Jodit.prototype,"__prepareWYSIWYGEditor",null),Jodit=Os=(0,p.gn)([(0,y.derive)(Te)],Jodit);var Ws=r(45143),Vs=r.n(Ws),Us=r(90544),Ys=r(75125);let Gs={};Gs={ar:Vs(),cs_cz:Vs(),de:Vs(),en:Us,es:Vs(),fr:Vs(),he:Vs(),hu:Vs(),id:Vs(),it:Vs(),ja:Vs(),ko:Vs(),mn:Vs(),nl:Vs(),pl:Vs(),pt_br:Vs(),ru:Vs(),tr:Vs(),zh_cn:Vs(),zh_tw:Vs()};const Xs=t=>t?t.default||t:{},Ks={};(0,D.k)(Xs(Ys))&&Xs(Ys).forEach(((t,e)=>{Ks[e]=t})),Object.keys(Gs).forEach((t=>{const e=Xs(Gs[t]);(0,D.k)(e)?(Gs[t]={},e.forEach(((e,s)=>{Gs[t][Ks[s]]=e}))):Gs[t]=e}));var Js=Gs,Zs=r(39123),Qs=r.n(Zs),ti=r(76331),ei=r.n(ti),si=r(52326),ii=r.n(si),ri=r(23689),oi=r.n(ri),ni=r(99017),ai=r.n(ni),li=r(271),ci=r.n(li),hi=r(25570),di=r.n(hi),ui=r(20865),pi=r.n(ui),fi=r(29777),mi=r.n(fi),gi=r(49220),vi=r.n(gi),bi=r(32336),yi=r.n(bi),wi=r(23384),_i=r.n(wi),Ci=r(85588),Si=r.n(Ci),Ei=r(76962),xi=r.n(Ei),ji=r(52614),Ii=r.n(ji),ki=r(78808),Ti=r.n(ki),Li=r(36553),Mi=r.n(Li),Pi=r(48103),Ni=r.n(Pi),zi=r(4434),Di=r.n(zi),Ri=r(55810),Ai=r.n(Ri),qi=r(18375),Oi=r.n(qi),Bi=r(60300),Hi=r.n(Bi),Fi=r(71287),$i=r.n(Fi),Wi=r(39428),Vi=r.n(Wi),Ui=r(92472),Yi=r.n(Ui),Gi=r(60828),Xi=r.n(Gi),Ki=r(86354),Ji=r.n(Ki),Zi=r(34953),Qi=r.n(Zi);f.D.prototype.controls.about={exec(t){const e=t.dlg(),s=t.i18n.bind(t);e.setMod("theme",t.o.theme).setHeader(s("About Jodit")).setContent(`<div class="jodit-about">\n\t\t\t\t\t<div>${s("Jodit Editor")} v.${t.getVersion()}</div>\n\t\t\t\t\t<div>${s("License: %s",(0,v.isLicense)(t.o.license)?(0,v.normalizeLicense)(t.o.license):"MIT")}</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="${u.HOMEPAGE}" target="_blank">${u.HOMEPAGE}</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="https://xdsoft.net/jodit/docs/" target="_blank">${s("Jodit User's Guide")}</a>\n\t\t\t\t\t\t${s("contains detailed help for using")}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>${s("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.")}</div>\n\t\t\t\t</div>`),(0,v.css)(e.dialog,{minHeight:200,minWidth:420}),e.open(!0,!0)},tooltip:"About Jodit",mode:u.MODE_SOURCE+u.MODE_WYSIWYG},j.pw.add("about",(t=>{t.registerButton({name:"about",group:"info"})})),M.J.set("about",Qi());var tr=r(89529),er=r.n(tr);f.D.prototype.addNewLine=!0,f.D.prototype.addNewLineOnDBLClick=!0,f.D.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],f.D.prototype.addNewLineDeltaShow=20,M.J.set("enter",er());const sr="addnewline";class ir extends Ut.S{constructor(){super(...arguments),this.line=this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n("Break")}" class="jodit-add-new-line"><span>${M.J.get("enter")}</span></div>`),this.isMatchedTag=t=>!(!t||!this.j.o.addNewLineTagsTriggers.includes(t.nodeName.toLowerCase())),this.preview=!1,this.lineInFocus=!1,this.isShown=!1,this.hideForce=()=>{this.isShown&&(this.isShown=!1,this.j.async.clearTimeout(this.timeout),this.lineInFocus=!1,X.i.safeRemove(this.line),this.line.style.setProperty("--jd-offset-handle","0"))},this.canGetFocus=t=>null!=t&&X.i.isBlock(t)&&!/^(img|table|iframe|hr)$/i.test(t.nodeName),this.onClickLine=t=>{const e=this.j,s=e.createInside.element(e.o.enter);this.preview&&this.current&&this.current.parentNode?this.current===e.editor?X.i.prepend(e.editor,s):this.current.parentNode.insertBefore(s,this.current):e.editor.appendChild(s),e.s.setCursorIn(s),(0,v.scrollIntoViewIfNeeded)(s,e.editor,e.ed),e.synchronizeValues(),this.hideForce(),t.preventDefault()}}show(){this.isShown||this.j.o.readonly||this.j.isLocked||(this.isShown=!0,this.j.async.clearTimeout(this.timeout),this.line.classList.toggle("jodit-add-new-line_after",!this.preview),this.j.container.appendChild(this.line),this.line.style.width=this.j.container.clientWidth+"px")}onLock(t){t&&this.isShown&&this.hideForce()}hide(){this.isShown&&!this.lineInFocus&&(this.timeout=this.j.async.setTimeout(this.hideForce,{timeout:500,label:"add-new-line-hide"}))}afterInit(t){t.o.addNewLine&&(t.e.on(this.line,"mousemove",(t=>{t.stopPropagation()})).on(this.line,"mousedown touchstart",this.onClickLine).on("change",this.hideForce).on(this.line,"mouseenter",(()=>{this.j.async.clearTimeout(this.timeout),this.lineInFocus=!0})).on(this.line,"mouseleave",(()=>{this.lineInFocus=!1})).on("changePlace",this.addEventListeners.bind(this)),this.addEventListeners())}addEventListeners(){const t=this.j;t.e.off(t.editor,"."+sr).off(t.container,"."+sr).on([t.ow,t.ew,t.editor],"scroll."+sr,this.hideForce).on(t.editor,"click."+sr,this.hide).on(t.container,"mouseleave."+sr,this.hide).on(t.editor,"mousemove."+sr,this.onMouseMove)}onDblClickEditor(t){const e=this.j;if(!e.o.readonly&&e.o.addNewLineOnDBLClick&&t.target===e.editor&&e.s.isCollapsed()){const s=(0,v.offset)(e.editor,e,e.ed),i=t.pageY-e.ew.pageYOffset,r=e.createInside.element(e.o.enter);Math.abs(i-(s.height+s.top))>Math.abs(i-s.top)&&e.editor.firstChild?e.editor.insertBefore(r,e.editor.firstChild):e.editor.appendChild(r),e.s.setCursorIn(r),e.synchronizeValues(),this.hideForce(),t.preventDefault()}}onMouseMove(t){const e=this.j;let s=e.ed.elementFromPoint(t.clientX,t.clientY);if(!X.i.isHTMLElement(s)||X.i.isOrContains(this.line,s))return;if(!X.i.isOrContains(e.editor,s))return;if(e.editor===s||this.isMatchedTag(s)||(s=X.i.closest(s,this.isMatchedTag,e.editor)),!s)return void this.hide();if(this.isMatchedTag(s)){const t=X.i.up(s,X.i.isBlock,e.editor);t&&t!==e.editor&&(s=t)}const i=(0,v.position)(s,this.j);let r=!1,{clientY:o,clientX:n}=t;if(this.j.iframe){const{top:t,left:e}=(0,v.position)(this.j.iframe,this.j,!0);o+=t,n+=e}const a=this.j.o.addNewLineDeltaShow;Math.abs(o-i.top)>a||(r=i.top,this.preview=!0),Math.abs(o-(i.top+i.height))>a||(r=i.top+i.height,this.preview=!1),!1===r||(e.editor!==s||this.preview)&&(0,v.call)(this.preview?X.i.prev:X.i.next,s,this.canGetFocus,e.editor)?(this.current=!1,this.hide()):(this.line.style.top=r+"px",this.current=s,this.show(),this.line.style.setProperty("--jd-offset-handle",n-i.left-10+"px"))}beforeDestruct(){this.j.async.clearTimeout(this.timeout),this.j.e.off(this.line).off("changePlace",this.addEventListeners),X.i.safeRemove(this.line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+sr).off(this.j.container,"."+sr)}}function rr(t,e,s){let i=S.i.findSibling(e,s),r=S.i.findSibling(e,!s);for(;S.i.isElement(i)&&!S.i.isTag(i,u.INSEPARABLE_TAGS)&&S.i.isContentEditable(i,t.editor)&&(!r||!S.i.closest(e,S.i.isElement,t.editor));)s||!i.firstChild?i.appendChild(e):S.i.before(i.firstChild,e),i=S.i.sibling(e,s),r=S.i.sibling(e,!s)}function or(t){return e=>!0!==t.e.fire("backSpaceIsMovedIgnore",e)}function nr(t,e,s){const i=S.i.findSibling(e,s),r=S.i.findSibling(e,!s);if(!S.i.closest(e,S.i.isElement,t.editor)&&S.i.isList(i)&&S.i.isList(r)&&S.i.isTag(i.lastElementChild,"li")&&S.i.isTag(r.firstElementChild,"li")){const{setCursorBefore:o,setCursorAfter:n}=t.s,a=i.lastElementChild;return(0,ke.RE)(s?S.i.prepend:S.i.append,r.firstElementChild,e),S.i.moveContent(r,i,!s,or(t)),S.i.safeRemove(r),(0,ke.RE)(s?S.i.append:S.i.prepend,a,e),(0,ke.RE)(s?o:n,e),!0}return!1}function ar(t,e,s){let i=!1;const{setCursorBefore:r,setCursorIn:o}=t.s;let n=X.i.closest(e,X.i.isElement,t.editor);if(!n||!X.i.isEmpty(n))return!1;const a=X.i.findNotEmptyNeighbor(e,s,t.editor);do{if(!n||!X.i.isEmpty(n)||X.i.isCell(n))break;{X.i.after(n,e);const s=X.i.closest(n,(t=>X.i.isElement(t)&&t!==n),t.editor);X.i.safeRemove(n),i=!0,n=s}}while(n);return!(!i||!nr(t,e,s))||(!a||X.i.isText(a)||X.i.isTag(a,u.INSEPARABLE_TAGS)?r(e):o(a,!s),i)}function lr(t,e,s,i){if(e&&S.i.isElement(s)){S.i.moveContent(e,s,!i,or(t));let r=e;for(;r&&r!==t.editor&&S.i.isEmpty(r);){const t=r.parentElement;S.i.safeRemove(r),r=t}return!0}return!1}(0,p.gn)([(0,y.watch)(":lock")],ir.prototype,"onLock",null),(0,p.gn)([y.autobind],ir.prototype,"hide",null),(0,p.gn)([(0,y.watch)(":dblclick")],ir.prototype,"onDblClickEditor",null),(0,p.gn)([(0,y.debounce)((t=>5*t.defaultTimeout))],ir.prototype,"onMouseMove",null),j.pw.add("addNewLine",ir);const cr=[(t,e,s)=>{const i=S.i.findSibling(e,s);return!(!S.i.isElement(i)||!S.i.isTag(i,u.INSEPARABLE_TAGS)&&!S.i.isEmpty(i)||(S.i.safeRemove(i),S.i.isTag(i,"br")&&!S.i.findNotEmptySibling(e,!1)&&S.i.after(e,t.createInside.element("br")),t.s.setCursorBefore(e),S.i.isTag(i,"br")&&ar(t,e,s),0))},(t,e,s)=>{let i=X.i.findSibling(e,s);return!i&&e.parentElement&&e.parentElement!==t.editor&&(i=X.i.findSibling(e.parentElement,s)),!(!X.i.isElement(i)||X.i.isContentEditable(i,t.editor)||((0,v.call)(s?X.i.before:X.i.after,i,e),X.i.safeRemove(i),rr(t,e,s),(0,v.call)(s?t.s.setCursorBefore:t.s.setCursorAfter,e),0))},function t(e,s,i,r){const o=i?-1:1,n=X.i.sibling(s,!i);let a,l=X.i.sibling(s,i),c=null,h=!1;const d=t=>{let s=X.i.sibling(t,i);return!s&&t.parentNode&&t.parentNode!==e.editor&&(s=((t,e,s,i=!1)=>{const r=t=>e?t.firstChild:t.lastChild;let o=X.i.findNotEmptyNeighbor(t,!e,s);if(i&&X.i.isElement(o)&&!X.i.isInlineBlock(o))return null;if(o)do{if(!r(o))return o;o=r(o)}while(o);return null})(t,!i,e.editor,!0)),s};for(l||(l=d(s));l&&(X.i.isText(l)||X.i.isInlineBlock(l));){for(;X.i.isInlineBlock(l);)l=i?l?.lastChild:l?.firstChild;if(!l)break;if(l.nodeValue?.length){let t=(0,v.toArray)(l.nodeValue);const e=t.length;let s=i?e-1:0;if(t[s]===u.INVISIBLE_SPACE)for(;t[s]===u.INVISIBLE_SPACE;)s+=o;if(a=t[s],t[s+o]===u.INVISIBLE_SPACE){for(s+=o;t[s]===u.INVISIBLE_SPACE;)s+=o;s+=i?1:-1}if(t=i&&0>s?[]:t.slice(i?0:s+1,i?s:e),!n||!X.i.isText(n)||(i?/^ /:/ $/).test(n.nodeValue??"")||!(0,v.trimInv)(n.nodeValue||"").length)for(let e=i?t.length-1:0;(i?e>=0:t.length>e)&&" "===t[e];e+=i?-1:1)t[e]=u.NBSP_SPACE;l.nodeValue=t.join("")}if(l.nodeValue?.length||(c=l),!(0,v.isVoid)(a)&&a!==u.INVISIBLE_SPACE){h=!0,(0,v.call)(i?X.i.after:X.i.before,l,s),("sentence"===r||"word"===r&&" "!==a&&a!==u.NBSP_SPACE)&&t(e,s,i,r);break}const p=d(l);c&&(X.i.safeRemove(c),c=null),l=p}return c&&(X.i.safeRemove(c),c=null),h&&(((t,e)=>{let s=t.parentElement;for(;s&&X.i.isInlineBlock(s)&&X.i.isTag(s,e);){const e=s.parentElement;X.i.isEmpty(s)&&(X.i.after(s,t),X.i.safeRemove(s)),s=e}})(s,["a"]),((t,e)=>{e.parentElement!==t.editor&&X.i.isBlock(e.parentElement)&&X.i.each(e.parentElement,X.i.isEmptyTextNode)&&X.i.after(e,t.createInside.element("br"))})(e,s),e.s.setCursorBefore(s),X.i.isTag(s.previousSibling,"br")&&!X.i.findNotEmptySibling(s,!1)&&X.i.after(s,e.createInside.element("br"))),h},(t,e)=>!!S.i.isCell(e.parentElement),ar,(t,e,s)=>{const i=S.i.closest(e,S.i.isElement,t.editor);if(!i)return!1;const r=S.i.findNotEmptySibling(i,s);return!(!r||!S.i.isEmpty(r)||(S.i.safeRemove(r),t.s.setCursorBefore(e),0))},nr,(t,e,s)=>{let i=e,r=i;for(;i&&!S.i.findNotEmptySibling(i,s)&&i.parentElement!==t.editor;)i=i.parentElement,r=i;if(S.i.isElement(r)&&S.i.isContentEditable(r,t.editor)){const i=S.i.findNotEmptySibling(r,s);if(i&&(((t,e,s,i)=>{const r=S.i.isTag(s,["ol","ul"]),o=S.i.isTag(e,["ol","ul"]),n=(t,e)=>e?t.firstElementChild:t.lastElementChild;return o?(s=t.createInside.element(t.o.enterBlock),S.i.before(e,s),lr(t,n(e,i),s,i)):!(!s||!r||o)&&lr(t,e,n(s,!i),i)})(t,r,i,s)||lr(t,r,i,s)))return t.s.setCursorBefore(e),!0}return!1},(t,e,s)=>{const i=S.i.closest(e,S.i.isElement,t.editor),{s:r}=t;if(S.i.isLeaf(i)&&i?.parentElement?.[s?"firstElementChild":"lastElementChild"]===i&&r.cursorInTheEdge(s,i)){const o=i.parentElement,n=t.createInside.element(t.o.enterBlock);return(0,k.call)(s?S.i.before:S.i.after,o,n),S.i.moveContent(i,n),S.i.safeRemove(i),S.i.isEmpty(o)&&S.i.safeRemove(o),(0,k.call)(s?r.setCursorBefore:r.setCursorAfter,e),!0}return!1}];f.D.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}},j.pw.add("backspace",class hr extends Ut.S{constructor(){super(...arguments),this.requires=["hotkeys"]}afterInit(t){t.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:t.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:t.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:t.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:t.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:t.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:t.o.delete.hotkeys.backspaceSentence})}beforeDestruct(t){t.e.off("afterCommand.delete")}onDelete(t,e="char"){const s=this.j,i=s.selection;if(i.isFocused()||i.focus(),(t=>!t.s.isCollapsed()&&(t.execCommand("Delete"),!0))(s))return!1;const r=i.range,o=s.createInside.text(u.INVISIBLE_SPACE);try{if(X.i.safeInsertNode(r,o),!X.i.isOrContains(s.editor,o))return;if(s.e.fire("backSpaceBeforeCases",t,o))return!1;if(rr(s,o,t),cr.some((i=>{if((0,L.m)(i)&&i(s,o,t,e))return!0})))return!1}catch(t){throw t}finally{s.e.fire("backSpaceAfterDelete",t,o),this.safeRemoveEmptyNode(o)}return!1}safeRemoveEmptyNode(t){const{range:e}=this.j.s;e.startContainer===t&&(t.previousSibling?X.i.isText(t.previousSibling)?e.setStart(t.previousSibling,t.previousSibling.nodeValue?.length??0):e.setStartAfter(t.previousSibling):t.nextSibling&&(X.i.isText(t.nextSibling)?e.setStart(t.nextSibling,0):e.setStartBefore(t.nextSibling)),e.collapse(!0),this.j.s.selectRange(e)),X.i.safeRemove(t)}}),j.pw.add("deleteCommand",class dr extends Ut.S{constructor(){super(...arguments),this.requires=["backspace"]}afterInit(t){t.e.on("afterCommand.delete",(t=>{"delete"===t&&this.__afterDeleteCommand()})),t.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(t){t.e.off("afterCommand.delete")}__afterDeleteCommand(){const t=this.j,e=t.s.current();if(e&&X.i.isTag(e.firstChild,"br")&&t.s.removeNode(e.firstChild),!((0,ut.f)(t.editor.textContent||"")||t.editor.querySelector("img,table,jodit,iframe,hr")||e&&X.i.closest(e,"table",t.editor))){t.editor.innerHTML="";const e=t.s.setCursorIn(t.editor);t.s.removeNode(e)}}__onDeleteCommand(){const{jodit:t}=this;if(t.s.isCollapsed())return;t.s.expandSelection();const e=t.s.range;e.deleteContents();const s=t.createInside.fake();e.insertNode(s);const i=X.i.findSibling(s,!0),r=X.i.findSibling(s,!1);return this.__moveContentInLeftSibling(s,i,r),e.setStartBefore(s),e.collapse(!0),this.__moveCursorInEditableSibling(t,i,s,e),this.__addBrInEmptyBlock(s,r,e),X.i.safeRemove(s),t.s.selectRange(e),!1}__moveContentInLeftSibling(t,e,s){e=this.__defineRightLeftBox(e),!X.i.isList(s)&&!X.i.isTag(s,"table")&&X.i.isBlock(s)&&X.i.isBlock(e)&&(X.i.append(e,t),X.i.moveContent(s,e),X.i.safeRemove(s)),X.i.isList(s)&&X.i.isLeaf(s.firstElementChild)&&X.i.isEmpty(s.firstElementChild)&&X.i.safeRemove(s.firstElementChild)}__defineRightLeftBox(t){if(!X.i.isList(t))return t;let e=t.lastElementChild;return X.i.isLeaf(e)||(e=this.j.createInside.element("li"),X.i.append(t,e)),e}__addBrInEmptyBlock(t,e,s){const i=this.j;if(t.isConnected&&X.i.isBlock(t.parentNode)&&!t.nextSibling&&!t.previousSibling){const e=i.createInside.element("br");X.i.after(t,e),s.setStartBefore(e),s.collapse(!0)}if(X.i.isTag(e,"table")){const t=(0,v.$$)("td,th",e).shift();X.i.isCell(t)&&X.i.isEmpty(t)&&X.i.append(t,i.createInside.element("br"))}}__moveCursorInEditableSibling(t,e,s,i){if(!e||!X.i.isText(e)){const e=X.i.closest(s,X.i.isBlock,t.editor)??t.editor,r=X.i.prev(s,X.i.isText,e);r&&(i.setStartAfter(r),i.collapse(!0),X.i.safeRemove(s))}}});var ur=r(53315),pr=r.n(ur),fr=r(70600),mr=r.n(fr),gr=r(53523),vr=r.n(gr),br=r(6582),yr=r.n(br),wr=r(30770),_r=r.n(wr),Cr=r(96181),Sr=r.n(Cr);f.D.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},f.D.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},f.D.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},f.D.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},f.D.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},f.D.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"},j.pw.add("bold",(t=>{const e=e=>{const s=f.D.defaultOptions.controls[e],i={...s.css};let r;return Object.keys(i).forEach((t=>{r||(r={}),r[t]=(0,v.isArray)(i[t])?i[t][0]:i[t]})),t.s.applyStyle(r,{element:s.tags?s.tags[0]:void 0}),t.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach((e=>{t.registerButton({name:e,group:"font-style"})})),["superscript","subscript"].forEach((e=>{t.registerButton({name:e,group:"script"})})),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}).registerCommand("subscript",{exec:e}).registerCommand("superscript",{exec:e})})),M.J.set("bold",pr()).set("italic",mr()).set("strikethrough",vr()).set("subscript",yr()).set("superscript",_r()).set("underline",Sr());var Er=r(43208),xr=r.n(Er);f.D.prototype.controls.classSpan={command:"applyClassName",exec:ke.u3,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(t,e){const s=t.s.current();if(s){const i=S.i.closest(s,S.i.isElement,t.editor)||t.editor;return!(!e.args||!i.classList.contains(""+e.args[0]))}return!1},isActive(t,e){const s=t.s.current();if(s){const i=S.i.closest(s,S.i.isElement,t.editor)||t.editor;let r=!1;return e.list&&Object.keys(e.list).forEach((t=>{i.classList.contains(t)&&(r=!0)})),!(!i||i===t.editor||void 0===e.list||!r)}return!1},childTemplate(t,e,s){return`<span class="${e}">${t.i18n(s)}</span>`},tooltip:"Insert className"},j.pw.add("classSpan",class jr extends Ut.S{constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"font"}]}afterInit(t){t.registerCommand("applyClassName",((e,s,i)=>(t.s.applyStyle(void 0,{className:i}),!1)))}beforeDestruct(){}}),M.J.set("class-span",xr());var Ir=r(67128),kr=r(85605),Tr=r(33841);function Lr(t){const e=/([^[]*)\[([^\]]+)]/,s=/[\s]*,[\s]*/,i=/^(.*)[\s]*=[\s]*(.*)$/,r={};return(0,T.H)(t)?(t.split(s).map((t=>{t=(0,ut.f)(t);const o=e.exec(t),n={},a=t=>{t=(0,ut.f)(t);const e=i.exec(t);e?n[e[1]]=e[2]:n[t]=!0};if(o){const t=o[2].split(s);o[1]&&(t.forEach(a),r[o[1].toUpperCase()]=n)}else r[t.toUpperCase()]=!0})),r):!!t&&(Object.keys(t).forEach((e=>{r[e.toUpperCase()]=t[e]})),r)}function Mr(t,e){const{s}=t;let i=e;if(!i){i=t.createInside.fake();const{range:e}=s;S.i.safeInsertNode(e,i),e.collapse()}const r=S.i.furthest(i,Pr,t.editor);if(r)if(s.cursorOnTheLeft(r))S.i.before(r,i);else if(s.cursorOnTheRight(r))S.i.after(r,i);else{const t=s.splitSelection(r);t&&S.i.after(t,i)}e||(s.setCursorBefore(i),S.i.safeRemove(i))}function Pr(t){return S.i.isInlineBlock(t)&&!S.i.isTag(t,u.INSEPARABLE_TAGS)}function Nr(t,e,s){const i=((t,e,s)=>{if(!s||!S.i.isHTMLElement(e))return e;const i=s[e.nodeName.toLowerCase()]||s[e.nodeName];return i?S.i.replace(e,i,t.createInside,!0,!1):e})(t,e,t.o.cleanHTML.replaceOldTags);return e!==i?(e=i,!0):s}function zr(t,e,s,i){if(i&&S.i.isElement(e)&&!0!==i[e.nodeName]){const t=e.attributes;if(t&&t.length){const r=[];for(let s=0;t.length>s;s+=1){const o=i[e.nodeName][t[s].name];(!o||!0!==o&&o!==t[s].value)&&r.push(t[s].name)}r.length&&(s=!0),r.forEach((t=>{e.removeAttribute(t)}))}}return s}function Dr(t,e,s){if(t.o.cleanHTML.fillEmptyParagraph&&S.i.isBlock(e)&&S.i.isEmpty(e,u.INSEPARABLE_TAGS)){const s=t.createInside.element("br");return e.appendChild(s),!0}return s}function Rr(t,e,s,i,r,o){return((t,e,s,i,r)=>!(S.i.isText(e)||!(i&&!i[e.nodeName]||r&&r[e.nodeName]))||t.o.cleanHTML.removeEmptyElements&&S.i.isElement(e)&&null!=e.nodeName.match(u.IS_INLINE)&&!S.i.isTemporary(e)&&0===(0,ut.f)(e.innerHTML).length&&(null==s||!S.i.isOrContains(e,s)))(t,e,o,i,r)?(S.i.safeRemove(e),!0):s}function Ar(t,e,s,i,r,o){return S.i.isText(e)&&!e.nodeValue?(e===o&&t.s.isCollapsed()&&t.s.setCursorAfter(e),S.i.safeRemove(e),!0):s}function qr(t,e,s,i,r,o){if(o===e||!S.i.isText(e)||null==e.nodeValue)return s;if(!(0,u.INVISIBLE_SPACE_REG_EXP)().test(e.nodeValue))return s;const n=S.i.furthest(o,S.i.isBlock,t.editor);return!n||S.i.isOrContains(n,e)?s:(e.nodeValue=e.nodeValue.replace((0,u.INVISIBLE_SPACE_REG_EXP)(),""),e===o&&t.s.isCollapsed()&&t.s.setCursorAfter(e),e.nodeValue||S.i.safeRemove(e),!0)}function Or(t,e,s){return!(!S.i.isElement(e)||!(0,v.sanitizeHTMLElement)(e,{safeJavaScriptLink:t.options.cleanHTML.safeJavaScriptLink,removeOnError:t.options.cleanHTML.removeOnError}))||s}const Br=Object.keys(i);var Hr=r(28218),Fr=r.n(Hr);f.D.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script",useIframeSandbox:!1,removeOnError:!0,safeJavaScriptLink:!0,disableCleanFilter:null},f.D.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},M.J.set("eraser",Fr());class $r extends kr.S{constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new Tr.b(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}afterInit(t){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;const t=this.j;this.walker.setWork(t.editor),this.currentSelectionNode=t.s.current()}startWalker(){const{jodit:t}=this,e=Lr(this.j.o.cleanHTML.allowTags),s=Lr(this.j.o.cleanHTML.denyTags);this.walker.on("visit",(r=>((t,e,s,r,o)=>{let n=!1;const a=t.o.cleanHTML.disableCleanFilter;for(const l of Br)if(!(a&&a.has(l)||(n=(0,i[l])(t,e,n,s,r,o),e.isConnected)))return!0;return n})(t,r,e,s,this.currentSelectionNode))).on("end",(t=>{this.j.e.fire(t?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")}))}beforeCommand(t){if("removeformat"===t.toLowerCase())return this.j.s.isCollapsed()?Mr(this.j):(t=>{const{s:e,editor:s,createInside:i}=t,{range:r}=e,o=r.cloneRange(),n=r.cloneRange(),a=i.fake(),l=i.fake();o.collapse(!0),n.collapse(!1),S.i.safeInsertNode(o,a),S.i.safeInsertNode(n,l),r.setStartBefore(a),r.collapse(!0),e.selectRange(r),Mr(t,a),r.setEndAfter(l),r.collapse(!1),e.selectRange(r),Mr(t,l);const c=[];S.i.between(a,l,(t=>{Pr(t)&&!S.i.isTag(t,["a"])&&c.push(t),S.i.isElement(t)&&(0,k.attr)(t,"style")&&(0,k.attr)(t,"style",null)})),c.forEach((t=>S.i.unwrap(t)));const h=(t,e)=>{if(!S.i.findNotEmptySibling(t,e)){const i=t.parentNode;if(i&&i!==s&&(0,k.attr)(i,"style"))return(0,k.attr)(i,"style",null),h(i,e),!0}};h(a,!0)&&h(l,!1),r.setStartAfter(a),r.setEndBefore(l),e.selectRange(r),S.i.safeRemove(a),S.i.safeRemove(l)})(this.j),!1}onBeforeSetNativeEditorValue(t){const e=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():this.j.createInside.div();return e.innerHTML=t.value,this.onSafeHTML(e),t.value=e.innerHTML,(0,Ir.e)(e,{safeJavaScriptLink:!0,removeOnError:!0}),S.i.safeRemove(e),!1}onSafeHTML(t){(0,Ir.e)(t,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}}(0,p.gn)([(0,y.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],$r.prototype,"onChangeCleanHTML",null),(0,p.gn)([(0,y.hook)("ready")],$r.prototype,"startWalker",null),(0,p.gn)([(0,y.watch)(":beforeCommand")],$r.prototype,"beforeCommand",null),(0,p.gn)([(0,y.watch)(":beforeSetNativeEditorValue")],$r.prototype,"onBeforeSetNativeEditorValue",null),(0,p.gn)([(0,y.watch)(":safeHTML")],$r.prototype,"onSafeHTML",null),j.pw.add("cleanHtml",$r);var Wr=r(48872),Vr=r.n(Wr),Ur=r(43574),Yr=r.n(Ur),Gr=r(68707),Xr=r.n(Gr),Kr=r(15806),Jr=r.n(Kr);f.D.prototype.controls.cut={command:"cut",isDisabled(t){return t.s.isCollapsed()},tooltip:"Cut selection"},f.D.prototype.controls.copy={command:"copy",isDisabled(t){return t.s.isCollapsed()},tooltip:"Copy selection"},f.D.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},M.J.set("copy",Vr()).set("cut",Yr()).set("paste",Xr()).set("select-all",Jr()),j.pw.add("clipboard",class Zr{constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}init(t){this.buttons?.forEach((e=>t.registerButton(e))),t.e.off(`copy.${u.CLIPBOARD_ID} cut.${u.CLIPBOARD_ID}`).on(`copy.${u.CLIPBOARD_ID} cut.${u.CLIPBOARD_ID}`,(e=>{const s=t.s.html,i=(0,v.getDataTransfer)(e)||(0,v.getDataTransfer)(t.ew)||(0,v.getDataTransfer)(e.originalEvent);i&&(i.setData(u.TEXT_PLAIN,(0,v.stripTags)(s)),i.setData(u.TEXT_HTML,s)),t.buffer.set(u.CLIPBOARD_ID,s),t.e.fire("pasteStack",{html:s,action:t.o.defaultActionOnPaste||u.INSERT_AS_HTML}),"cut"===e.type&&(t.s.remove(),t.s.focus()),e.preventDefault(),t?.events?.fire("afterCopy",s)}))}destruct(t){t?.buffer?.set(u.CLIPBOARD_ID,""),t?.events?.off("."+u.CLIPBOARD_ID)}});var Qr=r(45394);M.J.set("palette",r.n(Qr)());const to=(t,e,s)=>{const i="jodit-color-picker",r=(0,v.normalizeColor)(s),o=t.c.div(i),n=t.o.textIcons?`<span>${t.i18n("palette")}</span>`:M.J.get("palette"),a=t=>{const e=[];return(0,v.isPlainObject)(t)?Object.keys(t).forEach((s=>{e.push(`<div class="${i}__group ${i}__group-${s}">`),e.push(a(t[s])),e.push("</div>")})):(0,v.isArray)(t)&&t.forEach((t=>{e.push(`<span class='${i}__color-item ${r===t?i+"__color-item_active_true":""}' title="${t}" style="background-color:${t}" data-color="${t}"></span>`)})),e.join("")};o.appendChild(t.c.fromHTML(`<div class="${i}__groups">${a(t.o.colors)}</div>`)),o.appendChild(t.c.fromHTML(`<div data-ref="extra" class="${i}__extra"></div>`));const{extra:l}=(0,v.refs)(o);return t.o.showBrowserColorPicker&&(0,v.hasBrowserColorPicker)()&&(l.appendChild(t.c.fromHTML(`<div class="${i}__native">${n}<input type="color" value="#ffffff"/></div>`)),t.e.on(o,"change",(t=>{t.stopPropagation();const s=t.target;if(!s||!s.tagName||!X.i.isTag(s,"input"))return;const i=s.value||"";(0,v.isFunction)(e)&&e(i),t.preventDefault()}))),t.e.on(o,"mousedown touchend",(s=>{s.stopPropagation(),s.preventDefault();let r=s.target;if(r&&r.tagName&&!X.i.isTag(r,"svg")&&!X.i.isTag(r,"path")||!r.parentNode||(r=X.i.closest(r.parentNode,"span",t.editor)),!X.i.isTag(r,"span")||!r.classList.contains(i+"__color-item"))return;const o=(0,v.attr)(r,"-color")||"";e&&(0,v.isFunction)(e)&&e(o)})),t.e.fire("afterGenerateColorPicker",o,l,e,r),o},eo=(t,e,s)=>{const i=t.c.div("jodit-tabs"),r=t.c.div("jodit-tabs__wrapper"),o=t.c.div("jodit-tabs__buttons"),n={},a=[];let l="",c=0;i.appendChild(o),i.appendChild(r);const h=t=>{n[t]&&(a.forEach((t=>{t.state.activated=!1})),(0,v.$$)(".jodit-tab",r).forEach((t=>{t.classList.remove("jodit-tab_active")})),n[t].button.state.activated=!0,n[t].tab.classList.add("jodit-tab_active"))};if(e.forEach((({icon:i,name:d,content:u})=>{const p=t.c.div("jodit-tab"),f=U(t,i||d,d);t.e.on(f.container,"mousedown",(t=>t.preventDefault())),l||(l=d),o.appendChild(f.container),a.push(f),f.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+e.length),(0,L.m)(u)?p.appendChild(t.c.div("jodit-tab_empty")):p.appendChild(C.wA.isInstanceOf(u,E.u)?u.container:u),r.appendChild(p),f.onAction((()=>(h(d),(0,L.m)(u)&&!S.i.isElement(u)&&u.call(t),s&&(s.__activeTab=d),!1))),n[d]={button:f,tab:p},c+=1})),!c)return i;if((0,v.$$)("a",o).forEach((t=>{t.style.width=(100/c).toFixed(10)+"%"})),h(s&&s.__activeTab&&n[s.__activeTab]?s.__activeTab:l),s){let t=s.__activeTab;Object.defineProperty(s,"__activeTab",{configurable:!0,enumerable:!1,get:()=>t,set(e){t=e,h(e)}})}return i},so=(t,e,s,i,r=!0)=>{let o;const n=[];if(e.upload&&t.o.uploader&&(t.o.uploader.url||t.o.uploader.insertImageAsBase64URI)){const s=t.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${t.i18n(r?"Drop image":"Drop file")}</strong><span><br>${t.i18n("or click")}</span><input type="file" accept="${r?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);t.uploader.bind(s,(s=>{const i=(0,v.isFunction)(e.upload)?e.upload:t.o.uploader.defaultHandlerSuccess;(0,v.isFunction)(i)&&i.call(t,s),t.e.fire("closeAllPopups")}),(e=>{t.message.error(e.message),t.e.fire("closeAllPopups")})),n.push({icon:"upload",name:"Upload",content:s})}if(e.filebrowser&&(t.o.filebrowser.ajax.url||t.o.filebrowser.items.url)&&n.push({icon:"folder",name:"Browse",content(){i&&i(),e.filebrowser&&t.filebrowser.open(e.filebrowser,r)}}),e.url){const i=new V(t,{type:"submit",variant:"primary",text:"Insert"}),r=new _t(t,[new vt(t,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new vt(t,{name:"text",label:"Alternative text"}),new It(t,[i])]);o=null,s&&!S.i.isText(s)&&(S.i.isTag(s,"img")||(0,v.$$)("img",s).length)&&(o="IMG"===s.tagName?s:(0,v.$$)("img",s)[0],(0,v.val)(r.container,"input[name=url]",(0,v.attr)(o,"src")),(0,v.val)(r.container,"input[name=text]",(0,v.attr)(o,"alt")),i.state.text="Update"),s&&S.i.isTag(s,"a")&&((0,v.val)(r.container,"input[name=url]",(0,v.attr)(s,"href")),(0,v.val)(r.container,"input[name=text]",(0,v.attr)(s,"title")),i.state.text="Update"),r.onSubmit((s=>{(0,v.isFunction)(e.url)&&e.url.call(t,s.url,s.text)})),n.push({icon:"link",name:"URL",content:r.container})}return eo(t,n)};var io=r(89371);M.J.set("brush",r.n(io)()),f.D.prototype.controls.brush={update(t,e){const s=(0,v.dataBind)(t,"color"),i=(s,i)=>{i&&i!==""+(0,v.css)(e.editor,s)&&(t.state.icon.fill=i)};if(s){const e=(0,v.dataBind)(t,"color");return void i("color"===e?e:"background-color",s)}const r=e.s.current();if(r&&!t.state.disabled){const t=S.i.closest(r,S.i.isElement,e.editor)||e.editor;i("color",""+(0,v.css)(t,"color")),i("background-color",""+(0,v.css)(t,"background-color"))}t.state.icon.fill="",t.state.activated=!1},popup(t,e,s,i,r){let o="",n="",a=[],l=null;return e&&e!==t.editor&&S.i.isNode(e)&&(S.i.isElement(e)&&t.s.isCollapsed()&&!S.i.isTag(e,["br","hr"])&&(l=e),S.i.up(e,(t=>{if(S.i.isHTMLElement(t)){const e=(0,v.css)(t,"color",!0),s=(0,v.css)(t,"background-color",!0);if(e)return o=""+e,!0;if(s)return n=""+s,!0}}),t.editor)),a=[{name:"Background",content:to(t,(e=>{l?l.style.backgroundColor=e:t.execCommand("background",!1,e),(0,v.dataBind)(r,"color",e),(0,v.dataBind)(r,"color-mode","background"),i()}),n)},{name:"Text",content:to(t,(e=>{l?l.style.color=e:t.execCommand("forecolor",!1,e),(0,v.dataBind)(r,"color",e),(0,v.dataBind)(r,"color-mode","color"),i()}),o)}],"background"!==t.o.colorPickerDefaultTab&&(a=a.reverse()),eo(t,a,l)},exec(t,e,{button:s}){const i=(0,v.dataBind)(s,"color-mode"),r=(0,v.dataBind)(s,"color");if(!i)return!1;if(e&&e!==t.editor&&S.i.isNode(e)&&S.i.isElement(e))switch(i){case"color":e.style.color=r;break;case"background":e.style.backgroundColor=r}else t.execCommand("background"===i?i:"forecolor",!1,r)},tooltip:"Fill color or set the text color"},j.pw.add("color",(t=>{t.registerButton({name:"brush",group:"color"});const e=(e,s,i)=>{const r=(0,v.normalizeColor)(i);switch(e){case"background":t.s.applyStyle({backgroundColor:r||""});break;case"forecolor":t.s.applyStyle({color:r||""})}return t.synchronizeValues(),!1};t.registerCommand("forecolor",e).registerCommand("background",e)}));var ro=r(79031),oo=r.n(ro);const no="copy-format",ao=["fontWeight","fontStyle","fontSize","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine","fontFamily"],lo=(t,e,s,i)=>{let r=(0,ct.i)(s,e);return r===i[e]&&(r=s.parentNode&&s!==t.editor&&s.parentNode!==t.editor?lo(t,e,s.parentNode,i):void 0),r};f.D.prototype.controls.copyformat={exec(t,e,{button:s}){if(e){if(t.buffer.exists(no))t.buffer.delete(no),t.e.off(t.editor,"mouseup."+no);else{const s={},i=S.i.up(e,(t=>t&&!S.i.isText(t)),t.editor)||t.editor,r=t.createInside.span();t.editor.appendChild(r),ao.forEach((t=>{s[t]=(0,ct.i)(r,t)})),r!==t.editor&&S.i.safeRemove(r);const o=((t,e,s)=>{const i={};return e&&ao.forEach((r=>{i[r]=lo(t,r,e,s),r.match(/border(Style|Color)/)&&!i.borderWidth&&(i[r]=void 0)})),i})(t,i,s),n=()=>{t.buffer.delete(no);const e=t.s.current();e&&(S.i.isTag(e,"img")?(0,ct.i)(e,o):t.s.applyStyle(o)),t.e.off(t.editor,"mouseup."+no)};t.e.on(t.editor,"mouseup."+no,n),t.buffer.set(no,!0)}s.update()}},isActive(t){return t.buffer.exists(no)},tooltip:"Paint format"},j.pw.add("copyformat",(t=>{t.registerButton({name:"copyformat",group:"clipboard"}),(0,j.xl)(n)})),M.J.set("copyformat",oo());class co extends Ut.S{constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=t=>{const e=(0,v.getDataTransfer)(t);return e?e.getData(u.TEXT_HTML)||e.getData(u.TEXT_PLAIN):null}}afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(t){let e=t.target;if(this.onDragEnd(),this.isFragmentFromEditor=S.i.isOrContains(this.j.editor,e,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,v.ctrlKey)(t),this.isFragmentFromEditor){const t=this.j.s.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,Ne(e)&&(e=e.querySelector("img")),S.i.isTag(e,"img")&&(this.draggable=e.cloneNode(!0),(0,v.dataBind)(this.draggable,"target",e)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(t){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),t.preventDefault(),t.stopPropagation())}onDragEnd(){this.draggable&&(S.i.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(t){if(!t.dataTransfer||!t.dataTransfer.files||!t.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",t),t.preventDefault(),t.stopPropagation(),!1;const e=this.j.s.sel,s=this.bufferRange||(e&&e.rangeCount?e.getRangeAt(0):null);let i=null;if(!this.draggable&&s)i=this.isCopyMode?s.cloneContents():s.extractContents();else if(this.draggable)if(this.isCopyMode){const[t,e]="1"===(0,v.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];i=this.j.createInside.element(t),i.setAttribute(e,(0,v.attr)(this.draggable,"data-src")||(0,v.attr)(this.draggable,"src")||""),"a"===t&&(i.textContent=(0,v.attr)(i,e)||"")}else i=(0,v.dataBind)(this.draggable,"target");else this.getText(t)&&(i=this.j.createInside.fromHTML(this.getText(t)));e&&e.removeAllRanges(),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),i&&(this.j.s.insertNode(i,!1,!1),s&&i.firstChild&&i.lastChild&&(s.setStartBefore(i.firstChild),s.setEndAfter(i.lastChild),this.j.s.selectRange(s),this.j.e.fire("synchro")),S.i.isTag(i,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",i)),t.preventDefault(),t.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}}var ho;(0,p.gn)([y.autobind],co.prototype,"onDragStart",null),(0,p.gn)([(0,y.throttle)((t=>t.defaultTimeout/10))],co.prototype,"onDrag",null),(0,p.gn)([y.autobind],co.prototype,"onDragEnd",null),(0,p.gn)([y.autobind],co.prototype,"onDrop",null),j.pw.add("dragAndDrop",co),f.D.prototype.draggableTags=["img","jodit-media","jodit"],(t=>{t[t.IDLE=0]="IDLE",t[t.WAIT_DRAGGING=1]="WAIT_DRAGGING",t[t.DRAGGING=2]="DRAGGING"})(ho||(ho={}));class uo extends Ut.S{constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=ho.IDLE}afterInit(){this.dragList=this.j.o.draggableTags?(0,v.splitArray)(this.j.o.draggableTags).filter(Boolean).map((t=>t.toLowerCase())):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onDragStart(t){if("dragstart"===t.type&&this.draggable)return!1;if(this.state>ho.IDLE)return;const e=t.target;if(!this.dragList.length||!e)return;const s=t=>!(!t||!this.dragList.includes(t.nodeName.toLowerCase()));let i=X.i.furthest(e,s,this.j.editor)||(s(e)?e:null);i&&(X.i.isTag(i.parentElement,"a")&&i.parentElement.firstChild===i&&i.parentElement.lastChild===i&&(i=i.parentElement),this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=(0,v.ctrlKey)(t),this.draggable=i.cloneNode(!0),(0,v.dataBind)(this.draggable,"target",i),this.state=ho.WAIT_DRAGGING,this.addDragListeners())}onDrag(t){if(!this.draggable||this.state===ho.IDLE)return;const e=t.clientY;if(this.state!==ho.WAIT_DRAGGING||Math.sqrt(Math.pow(t.clientX-this.startX,2)+Math.pow(e-this.startY,2))>=this.diffStep){if(this.state===ho.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=ho.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){const e=(0,v.dataBind)(this.draggable,"target");(0,v.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:t.clientX,top:t.clientY,width:e?.offsetWidth??100,height:e?.offsetHeight??100}),(0,j.ZO)(this.j,uo).appendChild(this.draggable)}(0,v.css)(this.draggable,{left:t.clientX,top:t.clientY}),this.j.s.insertCursorAtPoint(t.clientX,t.clientY)}}onDragEnd(){this.isInDestruct||(this.removeDragListeners(),this.j.unlock(),this.state=ho.IDLE,this.draggable&&(X.i.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||ho.DRAGGING>this.state)return void this.onDragEnd();let t=(0,v.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(t=t.cloneNode(!0));const{parentElement:e}=t;this.j.s.insertNode(t,!0,!1),e&&X.i.isEmpty(e)&&!X.i.isTag(e,["td","th"])&&X.i.safeRemove(e),X.i.isTag(t,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",t),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart),this.removeDragListeners()}}(0,p.gn)([y.autobind],uo.prototype,"onDragStart",null),(0,p.gn)([(0,y.throttle)((t=>t.defaultTimeout/10))],uo.prototype,"onDrag",null),(0,p.gn)([y.autobind],uo.prototype,"onDragEnd",null),(0,p.gn)([y.autobind],uo.prototype,"onDrop",null),j.pw.add("dragAndDropElement",uo);var po=r(67749),fo=r(9005);function mo(t){if(!t)return!1;const e=S.i.findSibling(t,!0);return!(!e||!S.i.isTag(e,"br"))&&e}var go=r(54188);function vo(t,e,s,i){const r="br"===s.toLowerCase(),{createInside:o}=e,n=o.element(s),a=o.element("br");return r||n.appendChild(a),i&&i.cssText&&n.setAttribute("style",i.cssText),S.i.after(t,n),S.i.before(r?n:a,t),(0,fo.n)(n,e.editor,e.ed),n}function bo(t,e,s=u.IS_BLOCK){let i=t;const r=e.editor;do{if(!i||i===r)break;if(s.test(i.nodeName))return S.i.isLeaf(i)?i:bo(i.parentNode,e,/^li$/i)||i;i=i.parentNode}while(i&&i!==r);return null}class yo extends kr.S{afterInit(t){const e=t.o.enter.toLowerCase(),s=e===u.BR.toLowerCase();t.o.enterBlock||(t.o.enterBlock=s?u.PARAGRAPH:e),t.registerCommand("enter",((t,e,s={})=>this.onEnter(s)))}onEnterKeyDown(t){if(t.key===u.KEY_ENTER){const e=this.j,s=e.e.fire("beforeEnter",t);return void 0!==s?s:(e.s.isCollapsed()||e.execCommand("Delete"),e.s.focus(),this.onEnter(t),e.e.fire("afterEnter",t),e.synchronizeValues(),!1)}}onEnter(t){const{jodit:e}=this,s=e.createInside.fake();try{S.i.safeInsertNode(e.s.range,s),((t,e,s)=>{const{s:i}=t,r=S.i.closest(e,["a"],t.editor);r&&(i.cursorOnTheRight(r,e)?S.i.after(r,e):i.cursorOnTheLeft(r,e)&&S.i.before(r,e))})(e,s);let i=bo(s,e);const r=S.i.isLeaf(i);if((!r||t?.shiftKey)&&((t,e,s)=>{const i=!!S.i.closest(t,["pre","blockquote"],e.editor);if(e.o.enter.toLowerCase()===u.BR.toLowerCase()||s&&!i||!s&&i){if(i&&(t=>{const e=mo(mo(t));return!!e&&(S.i.safeRemove(mo(t)),S.i.safeRemove(e),!0)})(t))return!1;const s=e.createInside.element("br");if(S.i.before(t,s),!S.i.findNotEmptySibling(s,!1)){const e=s.cloneNode();S.i.after(s,e),S.i.before(e,t)}return(0,fo.n)(s,e.editor,e.ed),!0}return!1})(s,e,t?.shiftKey))return!1;if(i||((t,e)=>!!S.i.prev(t,(t=>S.i.isBlock(t)||S.i.isImage(t)),e.editor))(s,e)||(i=((t,e)=>{let s=t;S.i.up(s,(t=>{t&&t.hasChildNodes()&&t!==e.editor&&(s=t)}),e.editor);const i=S.i.wrapInline(s,e.o.enter,e);if(S.i.isEmpty(i)){const s=e.createInside.element("br");i.appendChild(s),S.i.before(s,t)}return i})(s,e)),!i)return vo(s,e,r?"li":e.o.enter),!1;if(!((t,e,s)=>!!S.i.canSplitBlock(s)||(S.i.before(t,e.createInside.element("br")),!1))(s,e,i))return!1;if(r&&this.__isEmptyListLeaf(i))return((t,e,s)=>{const i=S.i.closest(s,["ol","ul"],e.editor);if(!i)return;const r=i.parentElement,o=S.i.isLeaf(r),n=o?r:i,a=e.s.createRange();a.setStartAfter(s),a.setEndAfter(i);const l=a.extractContents();S.i.after(n,t),S.i.safeRemove(s),(0,go.$$)("li",i).length||S.i.safeRemove(i);const c=vo(t,e,o?"li":e.o.enter);l.querySelector("li")&&(o?c.appendChild(l):S.i.after(c,l))})(s,e,i),!1;((t,e,s)=>{const i=e.s,{enter:r}=e.o,o=r.toLowerCase(),n=S.i.isLeaf(s),a=s.tagName.toLowerCase()===o||n,l=i.cursorOnTheRight(s,t),c=i.cursorOnTheLeft(s,t);if(!a&&(l||c))return l?S.i.after(s,t):S.i.before(s,t),vo(t,e,o),void(c&&!l&&S.i.prepend(s,t));const h=i.splitSelection(s,t);(0,fo.n)(h,e.editor,e.ed)})(s,e,i)}finally{s.isConnected&&e.s.setCursorBefore(s),S.i.safeRemove(s)}}__isEmptyListLeaf(t){const e=this.j.e.fire("enterIsEmptyListLeaf",t);return(0,po.j)(e)?e:S.i.isEmpty(t)}beforeDestruct(t){t.e.off("keydown.enter")}}(0,p.gn)([(0,y.watch)(":keydown.enter")],yo.prototype,"onEnterKeyDown",null),j.pw.add("enter",yo),f.D.prototype.controls.file={popup(t,e,s,i){const r=(e,s="")=>{t.s.insertNode(t.createInside.fromHTML(`<a href="${e}" title="${s}">${s||e}</a>`))};let o=null;return e&&(S.i.isTag(e,"a")||S.i.closest(e,"a",t.editor))&&(o=S.i.isTag(e,"a")?e:S.i.closest(e,"a",t.editor)),so(t,{filebrowser(t){t.files&&t.files.forEach((e=>r(t.baseurl+e))),i()},upload:!0,url(t,e){o?(o.setAttribute("href",t),o.setAttribute("title",e)):r(t,e),i()}},o,i,!1)},tags:["a"],tooltip:"Insert file"},j.pw.add("file",(t=>{t.registerButton({name:"file",group:"media"})})),f.D.prototype.autofocus=!1,f.D.prototype.cursorAfterAutofocus="end",f.D.prototype.saveSelectionOnBlur=!0,j.pw.add("focus",(t=>{t.o.saveSelectionOnBlur&&t.e.on("blur",(()=>{t.isEditorMode()&&t.s.save(!0)})).on("focus",(()=>{t.s.restore()}));const e=()=>{if(t.s.focus(),"end"===t.o.cursorAfterAutofocus){const e=X.i.last(t.editor,(t=>X.i.isText(t)));e&&t.s.setCursorIn(e,!1)}};t.e.on("afterInit",(()=>{t.o.autofocus&&(t.defaultTimeout?t.async.setTimeout(e,300):e())})),t.e.on("afterInit afterAddPlace",(()=>{t.e.off(t.editor,"mousedown.autofocus").on(t.editor,"mousedown.autofocus",(e=>{t.isEditorMode()&&e.target&&X.i.isBlock(e.target)&&!e.target.childNodes.length&&(t.editor===e.target?t.s.focus():t.s.setCursorIn(e.target))}))}))}));var wo=r(51416),_o=r.n(wo),Co=r(84209),So=r.n(Co);f.D.prototype.defaultFontSizePoints="px",M.J.set("font",So()).set("fontsize",_o()),f.D.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size"},list:["8","9","10","11","12","14","16","18","24","30","36","48","60","72","96"],exec(t,e,{control:s}){return(0,k.memorizeExec)(t,e,{control:s},(e=>"fontsize"===s.command?.toLowerCase()?`${e}${t.o.defaultFontSizePoints}`:e))},childTemplate(t,e,s){return`${s}${t.o.defaultFontSizePoints}`},tooltip:"Font size",isChildActive(t,e){const s=t.s.current(),i=e.data?.cssRule||"font-size",r=e.data?.normalize||(e=>/pt$/i.test(e)&&"pt"===t.o.defaultFontSizePoints?e.replace(/pt$/i,""):e);if(s){const o=S.i.closest(s,S.i.isElement,t.editor)||t.editor,n=(0,k.css)(o,i);return!(!n||!e.args||r(""+e.args[0])!==r(""+n))}return!1}},f.D.prototype.controls.font={...f.D.prototype.controls.fontsize,command:"fontname",list:{"":"Default","helvetica,sans-serif":"Helvetica","arial,helvetica,sans-serif":"Arial","georgia,palatino,serif":"Georgia","impact,charcoal,sans-serif":"Impact","tahoma,geneva,sans-serif":"Tahoma","times new roman,times,serif":"Times New Roman","verdana,geneva,sans-serif":"Verdana"},childTemplate(t,e,s){let i=!1;try{i=-1===e.indexOf("dings")&&document.fonts.check("16px "+e,s)}catch{}return`<span data-style="${e}" style="${i?`font-family: ${e}!important;`:""}">${s}</span>`},data:{cssRule:"font-family",normalize(t){return t.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9]+/g,",")}},tooltip:"Font family"},j.pw.add("font",(t=>{t.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});const e=(e,s,i)=>{switch(e){case"fontsize":t.s.applyStyle({fontSize:(0,v.normalizeSize)(i)});break;case"fontname":t.s.applyStyle({fontFamily:i})}return t.synchronizeValues(),!1};t.registerCommand("fontsize",e).registerCommand("fontname",e)}));var Eo=r(59940);M.J.set("paragraph",r.n(Eo)()),f.D.prototype.controls.paragraph={command:"formatBlock",update(t,e){const s=t.control,i=e.s.current();if(i&&e.o.textIcons){const r=(X.i.closest(i,X.i.isBlock,e.editor)||e.editor).nodeName.toLowerCase(),o=s.list;t&&s.data&&s.data.currentValue!==r&&o&&o[r]&&(e.o.textIcons?t.state.text=r:t.state.icon.name=r,s.data.currentValue=r)}return!1},exec:v.memorizeExec,data:{currentValue:"left"},list:{p:"Normal",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive(t,e){const s=t.s.current();if(s){const i=X.i.closest(s,X.i.isBlock,t.editor);return!(!i||i===t.editor||void 0===e.args||i.nodeName.toLowerCase()!==e.args[0])}return!1},isActive(t,e){const s=t.s.current();if(s){const i=X.i.closest(s,X.i.isBlock,t.editor);return!(!i||i===t.editor||void 0===e.list||X.i.isTag(i,"p")||void 0===e.list[i.nodeName.toLowerCase()])}return!1},childTemplate(t,e,s){return`<${e} style="margin:0;padding:0"><span>${t.i18n(s)}</span></${e}>`},tooltip:"Insert format block"},j.pw.add("formatBlock",(t=>{t.registerButton({name:"paragraph",group:"font"}),t.registerCommand("formatblock",((e,s,i)=>(t.s.applyStyle(void 0,{element:i}),t.synchronizeValues(),!1)))}));var xo=r(7764),jo=r.n(xo),Io=r(32108),ko=r.n(Io);f.D.prototype.fullsize=!1,f.D.prototype.globalFullSize=!0,M.J.set("fullsize",jo()).set("shrink",ko()),f.D.prototype.controls.fullsize={exec(t){t.toggleFullSize()},update(t,e){const s=e.isFullSize?"shrink":"fullsize";t.state.activated=e.isFullSize,e.o.textIcons?t.state.text=s:t.state.icon.name=s},tooltip:"Open in fullsize",mode:u.MODE_SOURCE+u.MODE_WYSIWYG};const To=new Set;j.pw.add("fullsize",(t=>{t.registerButton({name:"fullsize"});let e=!1,s=0,i=0,r=!1;const o=()=>{const{container:o,events:n}=t;n&&(e?(s=(0,ct.i)(o,"height",!0),i=(0,ct.i)(o,"width",!0),(0,ct.i)(o,{height:t.ow.innerHeight,width:t.ow.innerWidth}),r=!0):r&&(0,ct.i)(o,{height:s||"auto",width:i||"auto"}))},n=s=>{const{container:i,events:r}=t;if(i){if(void 0===s&&(s=!i.classList.contains("jodit_fullsize")),t.setMod("fullsize",s),t.o.fullsize=s,e=s,i.classList.toggle("jodit_fullsize",s),t.toolbar&&((0,As.Z)(t)&&t.toolbarContainer?.appendChild(t.toolbar.container),(0,ct.i)(t.toolbar.container,"width","auto")),s?To.add(i):To.delete(i),t.o.globalFullSize&&(1===To.size&&s||0===To.size&&!s)){let t=i.parentNode;for(;t&&t.nodeType!==Node.DOCUMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t.classList.toggle("jodit_fullsize-box_true",s),t=t.parentNode;o()}r.fire("afterResize")}};t.o.globalFullSize&&t.e.on(t.ow,"resize",o),t.e.on("afterInit afterOpen",(()=>{t.toggleFullSize(t?.options?.fullsize)})).on("toggleFullSize",n).on("beforeDestruct",(()=>{e&&n(!1)})).on("beforeDestruct",(()=>{t.events&&t.e.off(t.ow,"resize",o)}))})),f.D.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8, cmd+shift+8"],selectall:["ctrl+a","cmd+a"]},j.pw.add("hotkeys",class Lo extends Ut.S{constructor(){super(...arguments),this.onKeyPress=t=>{const e=this.specialKeys[t.which],s=(t.key||String.fromCharCode(t.which)).toLowerCase(),i=[e||s];return["alt","ctrl","shift","meta"].forEach((s=>{t[s+"Key"]&&e!==s&&i.push(s)})),(0,v.normalizeKeyAliases)(i.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){(0,v.keys)(t.o.commandToHotkeys,!1).forEach((e=>{const s=t.o.commandToHotkeys[e];s&&((0,v.isArray)(s)||(0,v.isString)(s))&&t.registerHotkeyToCommand(s,e)}));let e=!1;t.e.off(".hotkeys").on([t.ow,t.ew],"keydown.hotkeys",(t=>{if(t.key===u.KEY_ESC)return this.j.e.fire("escape",t)})).on("keydown.hotkeys",(s=>{const i=this.onKeyPress(s),r={shouldStop:!0};if(!1===this.j.e.fire(i+".hotkey",s.type,r)){if(r.shouldStop)return e=!0,t.e.stopPropagation("keydown"),!1;s.preventDefault()}}),{top:!0}).on("keyup.hotkeys",(()=>{if(e)return e=!1,t.e.stopPropagation("keyup"),!1}),{top:!0})}beforeDestruct(t){t.events&&t.e.off(".hotkeys")}});var Mo=r(8223);M.J.set("hr",r.n(Mo)()),f.D.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},j.pw.add("hr",(t=>{t.registerButton({name:"hr",group:"insert"}),t.registerCommand("insertHorizontalRule",(()=>{const e=t.createInside.element("hr");t.s.insertNode(e,!1,!1);const s=X.i.closest(e.parentElement,X.i.isBlock,t.editor);s&&X.i.isEmpty(s)&&s!==t.editor&&(X.i.after(s,e),X.i.safeRemove(s));let i=X.i.next(e,X.i.isBlock,t.editor,!1);return i||(i=t.createInside.element(t.o.enter),X.i.after(e,i)),t.s.setCursorIn(i),!1}))})),f.D.prototype.iframeBaseUrl="",f.D.prototype.iframeTitle="Jodit Editor",f.D.prototype.iframeDoctype="<!DOCTYPE html>",f.D.prototype.iframeDefaultSrc="about:blank",f.D.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',f.D.prototype.iframeCSSLinks=[],j.pw.add("iframe",(t=>{const e=t.options;t.e.on("afterSetMode",(()=>{t.isEditorMode()&&t.s.focus()})).on("generateDocumentStructure.iframe",((t,s)=>{const i=t||s.iframe.contentWindow.document;if(i.open(),i.write(e.iframeDoctype+`<html dir="${e.direction}" class="jodit" lang="${(0,v.defaultLanguage)(e.language)}"><head>`+`<title>${e.iframeTitle}</title>`+(e.iframeBaseUrl?`<base href="${e.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),i.close(),e.iframeCSSLinks&&e.iframeCSSLinks.forEach((t=>{const e=i.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),i.head&&i.head.appendChild(e)})),e.iframeStyle){const t=i.createElement("style");t.innerHTML=e.iframeStyle,i.head&&i.head.appendChild(t)}})).on("createEditor",(()=>{if(!e.iframe)return;const s=t.c.element("iframe");s.style.display="block",s.src="about:blank",s.className="jodit-wysiwyg_iframe",s.setAttribute("allowtransparency","true"),s.setAttribute("tabindex",""+e.tabIndex),s.setAttribute("frameborder","0"),t.workplace.appendChild(s),t.iframe=s;const i=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,v.callPromise)(i,(()=>{if(!t.iframe)return!1;const s=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;const i=()=>{(0,v.attr)(s.body,"contenteditable",t.getMode()!==u.MODE_SOURCE&&!t.getReadOnly()||null)},r=t=>{const e=/<body.*<\/body>/im,s="{%%BODY%%}",i=e.exec(t);return i&&(t=t.replace(e,s).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(s,i[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),t};if(e.editHTMLDocumentMode){const e=t.element.tagName;if("TEXTAREA"!==e&&"INPUT"!==e)throw(0,v.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");t.e.on("beforeGetNativeEditorValue",(()=>r(t.o.iframeDoctype+s.documentElement.outerHTML))).on("beforeSetNativeEditorValue",(({value:e})=>!t.isLocked&&(/<(html|body)/i.test(e)?r(s.documentElement.outerHTML)!==r(e)&&(s.open(),s.write(t.o.iframeDoctype+r(e)),s.close(),t.editor=s.body,t.e.fire("safeHTML",t.editor),i(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):s.body.innerHTML=e,!0)),{top:!0})}if(t.editor=s.body,t.e.on("afterSetMode afterInit afterAddPlace",i),"auto"===e.height){s.documentElement&&(s.documentElement.style.overflowY="hidden");const i=t.async.throttle((()=>{if(t.editor&&t.iframe&&"auto"===e.height){const e=t.ew.getComputedStyle(t.editor);(0,v.css)(t.iframe,"height",t.editor.offsetHeight+(parseInt(e.marginTop||"0",10)+parseInt(e.marginBottom||"0",10)))}}),t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",i).on([t.iframe,t.ew,s.documentElement],"load",i).on(s,"readystatechange DOMContentLoaded",i),"function"==typeof ResizeObserver){const e=new ResizeObserver(i);e.observe(s.body),t.e.on("beforeDestruct",(()=>{e.unobserve(s.body)}))}}return s.documentElement&&t.e.on(s.documentElement,"mousedown touchend",(()=>{t.s.isFocused()||(t.s.focus(),t.editor===s.body&&t.s.setCursorIn(s.body))})).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",(e=>{t.events?.fire(t.ow,e)})),!1}))}))}));var Po=r(51382);M.J.set("image",r.n(Po)()),f.D.prototype.controls.image={popup(t,e,s,i){let r=null;return e&&!X.i.isText(e)&&X.i.isHTMLElement(e)&&(X.i.isTag(e,"img")||(0,v.$$)("img",e).length)&&(r=X.i.isTag(e,"img")?e:(0,v.$$)("img",e)[0]),t.s.save(),so(t,{filebrowser(e){t.s.restore(),e.files&&e.files.forEach((s=>t.s.insertImage(e.baseurl+s,null,t.o.imageDefaultWidth))),i()},upload:!0,async url(e,s){t.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(e)&&(e="//"+e);const o=r||t.createInside.element("img");o.setAttribute("src",e),o.setAttribute("alt",s),r||await t.s.insertImage(o,null,t.o.imageDefaultWidth),i()}},r,i)},tags:["img"],tooltip:"Insert Image"},j.pw.add("image",(t=>{t.registerButton({name:"image",group:"media"})})),f.D.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0};const No="__jodit_imageprocessor_binded",zo=No+"blob-id";class Do extends Ut.S{afterInit(t){}beforeDestruct(t){const e=t.buffer.get(zo);if(e){const s=Object.keys(e);for(const t of s)URL.revokeObjectURL(t);t.buffer.delete(zo)}}onAfterGetValueFromEditor(t,e){if(e!==u.SOURCE_CONSUMER)return this.onBeforeSetElementValue(t)}onBeforeSetElementValue(t){const{jodit:e}=this;if(!e.o.imageProcessor.replaceDataURIToBlobIdInView)return;const s=e.buffer.get(zo);if(s){const e=Object.keys(s);for(const i of e)for(;t.value.includes(i);)t.value=t.value.replace(i,s[i])}}async afterChange(t){const{jodit:e}=this;e.editor&&(0,v.$$)("img",e.editor).forEach((t=>{(0,v.dataBind)(t,No)||((0,v.dataBind)(t,No,!0),t.complete||e.e.on(t,"load",(function s(){!e.isInDestruct&&e.e?.fire("resize"),e.e.off(t,"load",s)})),t.src&&/^data:/.test(t.src)&&((t,e)=>{if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;if("undefined"==typeof ArrayBuffer||"undefined"==typeof URL)return;const s=e.src,i=(t=>{const e=atob(t.split(",")[1]),s=t.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(e.length),r=new Uint8Array(i);for(let t=0;e.length>t;t++)r[t]=e.charCodeAt(t);return new Blob([i],{type:s})})(s);e.src=URL.createObjectURL(i),t.e.fire("internalUpdate");const{buffer:r}=t,o=r.get(zo)||{};o[e.src]=s,t.buffer.set(zo,o)})(e,t),e.e.on(t,"mousedown touchstart",(()=>{e.s.select(t)})))}))}}function Ro(t){const e=t.o,s=t.i18n.bind(t),i=M.J.get.bind(M.J),r=e.filebrowser.ajax.url||e.uploader.url,o=e.image.useImageEditor;return t.c.fromHTML(`<div style="${e.image.editSrc?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Src")}</label>\n\t\t\t<div class="jodit-input_group">\n\t\t\t\t<input data-ref="imageSrc" class="jodit-input" type="text"/>\n\t\t\t\t<div\n\t\t\t\t\tclass="jodit-input_group-buttons"\n\t\t\t\t\tstyle="${r?"":"display: none"}"\n\t\t\t\t>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tdata-ref="changeImage"\n\t\t\t\t\t\t\tclass="jodit-button"\n\t\t\t\t\t\t>${i("image")}</a>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tdata-ref="editImage"\n\t\t\t\t\t\t\tclass="jodit-button"\n\t\t\t\t\t\t\tstyle="${o?"":"display: none"}"\n\t\t\t\t\t\t>${i("crop")}</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div style="${e.image.editTitle?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Title")}</label>\n\t\t\t<input data-ref="imageTitle" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${e.image.editAlt?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Alternative")}</label>\n\t\t\t<input data-ref="imageAlt" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${e.image.editLink?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Link")}</label>\n\t\t\t<input data-ref="imageLink" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${e.image.editLink?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label class="jodit_vertical_middle">\n\t\t\t\t<input data-ref="imageLinkOpenInNewTab" type="checkbox" class="jodit-checkbox"/>\n\t\t\t\t<span>${s("Open link in new tab")}</span>\n\t\t\t</label>\n\t\t</div>`)}function Ao(t){const e=t.o,s=t.i18n.bind(t),i=M.J.get.bind(M.J),r=[];return e.image.availableClasses.length>0?(r.push('<select data-ref="classes" class="jodit-input jodit-select">'),e.image.availableClasses.forEach((t=>{r.push("string"==typeof t?`<option value="${t}">${t}</option>`:`<option value="${t[0]}">${t[1]}</option>`)})),r.push("</select>")):r.push('<input data-ref="classes" type="text" class="jodit-input"/>'),t.c.fromHTML(`<div style="${e.image.editMargins?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Margins")}</label>\n\t\t\t<div class="jodit-grid jodit_vertical_middle">\n\t\t\t\t<input class="jodit_col-lg-1-5 jodit-input" data-ref="marginTop" type="text" placeholder="${s("top")}"/>\n\t\t\t\t<a style="text-align: center;" data-ref="lockMargin" class="jodit-properties__lock jodit_col-lg-1-5">${i("lock")}</a>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginRight" type="text" placeholder="${s("right")}"/>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginBottom" type="text" placeholder="${s("bottom")}"/>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginLeft" type="text" placeholder="${s("left")}"/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div\n\t\t\tstyle="${e.image.editAlign?"":"display:none"}"\n\t\t\tclass="jodit-form__group"\n\t\t>\n\t\t\t<label>${s("Align")}</label>\n\t\t\t<select data-ref="align" class="jodit-select">\n\t\t\t\t<option value="">${s("--Not Set--")}</option>\n\t\t\t\t<option value="left">${s("Left")}</option>\n\t\t\t\t<option value="center">${s("Center")}</option>\n\t\t\t\t<option value="right">${s("Right")}</option>\n\t\t\t</select>\n\t\t</div>\n\t\t<div style="${e.image.editStyle?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Styles")}</label>\n\t\t\t<input data-ref="style" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${e.image.editClass?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Classes")}</label>\n\t\t\t${r.join("")}\n\t\t</div>\n\t\t<div style="${e.image.editId?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>Id</label>\n\t\t\t<input data-ref="id" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div\n\t\t\tstyle="${e.image.editBorderRadius?"":"display:none"}"\n\t\t\tclass="jodit-form__group"\n\t\t>\n\t\t\t<label>${s("Border radius")}</label>\n\t\t\t\t<input data-ref="borderRadius" type="number" class="jodit-input"/>\n\t\t</div>`)}(0,p.gn)([(0,y.watch)(":afterGetValueFromEditor")],Do.prototype,"onAfterGetValueFromEditor",null),(0,p.gn)([(0,y.watch)(":beforeSetElementValue")],Do.prototype,"onBeforeSetElementValue",null),(0,p.gn)([(0,y.watch)([":change",":afterInit",":changePlace"]),(0,y.debounce)()],Do.prototype,"afterChange",null),j.pw.add("imageProcessor",Do),f.D.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0};const qo=t=>(t=(0,v.trim)(t),/^[0-9]+$/.test(t)?t+"px":t),Oo=t=>/^[-+]?[0-9.]+px$/.test(""+t)?parseFloat(""+t):t;class Bo extends Ut.S{constructor(){super(...arguments),this.state={image:new Image,get ratio(){return this.image.naturalWidth/this.image.naturalHeight||1},sizeIsLocked:!0,marginIsLocked:!0},this.activeTabState={__activeTab:"Image"}}onChangeMarginIsLocked(){if(!this.form)return;const{marginRight:t,marginBottom:e,marginLeft:s,lockMargin:i}=(0,v.refs)(this.form);[t,e,s].forEach((t=>{(0,v.attr)(t,"disabled",this.state.marginIsLocked||null)})),i.innerHTML=M.J.get(this.state.marginIsLocked?"lock":"unlock")}onChangeSizeIsLocked(){if(!this.form)return;const{lockSize:t,imageWidth:e}=(0,v.refs)(this.form);t.innerHTML=M.J.get(this.state.sizeIsLocked?"lock":"unlock"),t.classList.remove("jodit-properties__lock"),t.classList.remove("jodit-properties__unlock"),t.classList.add(this.state.sizeIsLocked?"jodit-properties__lock":"jodit-properties__unlock"),this.j.e.fire(e,"change")}open(){return this.makeForm(),this.activeTabState.__activeTab="Image",this.j.e.fire("hidePopup"),(0,v.markOwner)(this.j,this.dialog.container),this.state.marginIsLocked=!0,this.state.sizeIsLocked=!0,this.onChangeMarginIsLocked(),this.onChangeSizeIsLocked(),this.updateValues(),this.dialog.open().setModal(!0).setPosition(),!1}makeForm(){if(this.dialog)return;this.dialog=this.j.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]});const t=this.j,e=t.o,s=t.i18n.bind(t),i={check:U(t,"ok","Apply","primary"),remove:U(t,"bin","Delete")};t.e.on(this.dialog,"afterClose",(()=>{this.state.image.parentNode&&e.image.selectImageAfterClose&&t.s.select(this.state.image)})),i.remove.onAction((()=>{t.s.removeNode(this.state.image),this.dialog.close()}));const{dialog:r}=this;r.setHeader(s("Image properties"));const o=(t=>{const{showPreview:e,editSize:s}=t.o.image,i=M.J.get.bind(M.J);return t.c.fromHTML(`<form class="jodit-properties">\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-2-5 jodit_col-xs-5-5">\n\t\t\t\t<div class="jodit-properties_view_box">\n\t\t\t\t\t<div style="${e?"":"display:none"}" class="jodit-properties_image_view">\n\t\t\t\t\t\t<img data-ref="imageViewSrc" src="" alt=""/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="${s?"":"display:none"}" class="jodit-form__group jodit-properties_image_sizes">\n\t\t\t\t\t\t<input data-ref="imageWidth" type="text" class="jodit-input"/>\n\t\t\t\t\t\t<a data-ref="lockSize" class="jodit-properties__lock">${i("lock")}</a>\n\t\t\t\t\t\t<input data-ref="imageHeight" type="text" class="imageHeight jodit-input"/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div data-ref="tabsBox" class="jodit_col-lg-3-5 jodit_col-xs-5-5"></div>\n\t\t</div>\n\t</form>`)})(t);this.form=o,r.setContent(o);const{tabsBox:n}=(0,v.refs)(this.form);n&&n.appendChild(eo(t,[{name:"Image",content:Ro(t)},{name:"Advanced",content:Ao(t)}],this.activeTabState)),i.check.onAction(this.onApply);const{changeImage:a,editImage:l}=(0,v.refs)(this.form);t.e.on(a,"click",this.openImagePopup),e.image.useImageEditor&&t.e.on(l,"click",this.openImageEditor);const{lockSize:c,lockMargin:h,imageWidth:d,imageHeight:u}=(0,v.refs)(o);c&&t.e.on(c,"click",(()=>{this.state.sizeIsLocked=!this.state.sizeIsLocked})),t.e.on(h,"click",(t=>{this.state.marginIsLocked=!this.state.marginIsLocked,t.preventDefault()}));const p=t=>{if(!(0,v.isNumeric)(d.value)||!(0,v.isNumeric)(u.value))return;const e=parseFloat(d.value),s=parseFloat(u.value);t.target===d?u.value=""+Math.round(e/this.state.ratio):d.value=""+Math.round(s*this.state.ratio)};t.e.on([d,u],"change keydown mousedown paste",(e=>{this.state.sizeIsLocked&&t.async.setTimeout(p.bind(this,e),{timeout:t.defaultTimeout,label:"image-properties-changeSize"})})),r.setFooter([i.remove,i.check]),r.setSize(this.j.o.image.dialogWidth)}updateValues(){const t=this.j.o,{image:e}=this.state,{marginTop:s,marginRight:i,marginBottom:r,marginLeft:o,lockMargin:n,imageSrc:a,id:l,classes:c,align:h,style:d,imageTitle:u,imageAlt:p,borderRadius:f,imageLink:m,imageWidth:g,imageHeight:b,imageLinkOpenInNewTab:y,imageViewSrc:w,lockSize:_}=(0,v.refs)(this.form);(()=>{n.checked=this.state.marginIsLocked,_.checked=this.state.sizeIsLocked})(),a.value=(0,v.attr)(e,"src")||"",w&&(0,v.attr)(w,"src",(0,v.attr)(e,"src")||""),(()=>{u.value=(0,v.attr)(e,"title")||"",p.value=(0,v.attr)(e,"alt")||"";const t=X.i.closest(e,"a",this.j.editor);t?(m.value=(0,v.attr)(t,"href")||"",y.checked="_blank"===(0,v.attr)(t,"target")):(m.value="",y.checked=!1)})(),(()=>{const t=(0,v.attr)(e,"width")||(0,v.css)(e,"width",!0)||!1,s=(0,v.attr)(e,"height")||(0,v.css)(e,"height",!0)||!1;g.value=!1!==t?""+Oo(t):""+e.offsetWidth,b.value=!1!==s?""+Oo(s):""+e.offsetHeight,this.state.sizeIsLocked=(()=>!(!(0,v.isNumeric)(g.value)||!(0,v.isNumeric)(b.value))&&1>Math.abs(parseFloat(g.value)-parseFloat(b.value)*this.state.ratio))()})(),(()=>{if(!t.image.editMargins)return;let n=!0,a=!1;[s,i,r,o].forEach((t=>{const i=(0,v.attr)(t,"data-ref")||"";let r=e.style.getPropertyValue((0,v.kebabCase)(i));if(!r)return a=!0,void(t.value="");/^[0-9]+(px)?$/.test(r)&&(r=parseInt(r,10)),t.value=""+r||"",(a&&t.value||n&&"marginTop"!==i&&t.value!==s.value)&&(n=!1)})),this.state.marginIsLocked=n})(),c.value=((0,v.attr)(e,"class")||"").replace(/jodit_focused_image[\s]*/,""),l.value=(0,v.attr)(e,"id")||"",f.value=""+(parseInt(e.style.borderRadius||"0",10)||"0"),e.style.cssFloat&&-1!==["left","right"].indexOf(e.style.cssFloat.toLowerCase())?h.value=(0,v.css)(e,"float"):"block"===(0,v.css)(e,"display")&&"auto"===e.style.marginLeft&&"auto"===e.style.marginRight&&(h.value="center"),d.value=(0,v.attr)(e,"style")||""}onApply(){const{style:t,imageSrc:e,borderRadius:s,imageTitle:i,imageAlt:r,imageLink:o,imageWidth:n,imageHeight:a,marginTop:l,marginRight:c,marginBottom:h,marginLeft:d,imageLinkOpenInNewTab:u,align:p,classes:f,id:m}=(0,v.refs)(this.form),g=this.j.o,{image:b}=this.state;if(g.image.editStyle&&(0,v.attr)(b,"style",t.value||null),!e.value)return X.i.safeRemove(b),void this.dialog.close();(0,v.attr)(b,"src",e.value),b.style.borderRadius="0"!==s.value&&/^[0-9]+$/.test(s.value)?s.value+"px":"",(0,v.attr)(b,"title",i.value||null),(0,v.attr)(b,"alt",r.value||null);let y=X.i.closest(b,"a",this.j.editor);if(o.value?(y||(y=X.i.wrap(b,"a",this.j.createInside)),(0,v.attr)(y,"href",o.value),(0,v.attr)(y,"target",u.checked?"_blank":null)):y&&y.parentNode&&y.parentNode.replaceChild(b,y),n.value!==""+b.offsetWidth||a.value!==""+b.offsetHeight){const t=(0,v.trim)(n.value)?qo(n.value):null,e=(0,v.trim)(a.value)?qo(a.value):null;(0,v.css)(b,{width:t,height:e}),(0,v.attr)(b,"width",(0,v.attr)(b,"width")?t:null),(0,v.attr)(b,"height",(0,v.attr)(b,"height")?e:null)}const w=[l,c,h,d];g.image.editMargins&&(this.state.marginIsLocked?(0,v.css)(b,"margin",qo(l.value)):w.forEach((t=>{const e=(0,v.attr)(t,"data-ref")||"";(0,v.css)(b,e,qo(t.value))}))),g.image.editClass&&(0,v.attr)(b,"class",f.value||null),g.image.editId&&(0,v.attr)(b,"id",m.value||null),g.image.editAlign&&(0,v.hAlignElement)(b,p.value),this.j.synchronizeValues(),this.dialog.close()}openImageEditor(){const t=(0,v.attr)(this.state.image,"src")||"",e=this.j.c.element("a"),s=()=>{e.host===location.host||this.j.confirm("You can only edit your own images. Download this image on the host?",(t=>{t&&this.j.uploader&&this.j.uploader.uploadRemoteImage(""+e.href,(t=>{this.j.alert("The image has been successfully uploaded to the host!",(()=>{(0,v.isString)(t.newfilename)&&((0,v.attr)(this.state.image,"src",t.baseurl+t.newfilename),this.updateValues())}))}),(t=>{this.j.alert("There was an error loading %s",t.message)}))}))};e.href=t,this.j.filebrowser.dataProvider.getPathByUrl(""+e.href).then((s=>{ve.call(this.j.filebrowser,e.href,s.name,s.path,s.source,(()=>{const e=(new Date).getTime();(0,v.attr)(this.state.image,"src",t+(-1!==t.indexOf("?")?"":"?")+"&_tmp="+e),this.updateValues()}),(t=>{this.j.alert(t.message)}))})).catch((t=>{this.j.alert(t.message,s)}))}openImagePopup(t){const e=new I(this.j),{changeImage:s}=(0,v.refs)(this.form);e.setZIndex(this.dialog.getZIndex()+1),e.setContent(so(this.j,{upload:t=>{t.files&&t.files.length&&(0,v.attr)(this.state.image,"src",t.baseurl+t.files[0]),this.updateValues(),e.close()},filebrowser:t=>{t&&(0,v.isArray)(t.files)&&t.files.length&&((0,v.attr)(this.state.image,"src",t.files[0]),e.close(),this.updateValues())}},this.state.image,e.close)).open((()=>(0,v.position)(s))),t.stopPropagation()}afterInit(t){const e=this;t.e.on("afterConstructor changePlace",(()=>{t.e.off(t.editor,".imageproperties").on(t.editor,"dblclick.imageproperties",(s=>{const i=s.target;if(X.i.isTag(i,"img"))if(t.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",i))return;e.state.image=i,t.o.readonly||(s.stopImmediatePropagation(),s.preventDefault(),e.open())}else s.stopImmediatePropagation(),t.s.select(i)}))})).on("openImageProperties.imageproperties",(t=>{this.state.image=t,this.open()}))}beforeDestruct(t){this.dialog&&this.dialog.destruct(),t.e.off(t.editor,".imageproperties").off(".imageproperties")}}(0,p.gn)([(0,y.watch)("state.marginIsLocked")],Bo.prototype,"onChangeMarginIsLocked",null),(0,p.gn)([(0,y.watch)("state.sizeIsLocked")],Bo.prototype,"onChangeSizeIsLocked",null),(0,p.gn)([y.autobind],Bo.prototype,"onApply",null),(0,p.gn)([y.autobind],Bo.prototype,"openImageEditor",null),(0,p.gn)([y.autobind],Bo.prototype,"openImagePopup",null),j.pw.add("imageProperties",Bo);const Ho=(t,e)=>`${S.i.isCell(e)?"padding":"margin"}${"rtl"===t?"Right":"Left"}`;var Fo=r(30863),$o=r.n(Fo),Wo=r(89721),Vo=r.n(Wo);M.J.set("indent",$o()).set("outdent",Vo()),f.D.prototype.controls.indent={tooltip:"Increase Indent"},f.D.prototype.controls.outdent={isDisabled(t){const e=t.s.current();if(e){const s=X.i.closest(e,X.i.isBlock,t.editor);if(s){const e=Ho(t.o.direction,s);return!s.style[e]||0>=parseInt(s.style[e],10)}}return!0},tooltip:"Decrease Indent"},f.D.prototype.indentMargin=10,j.pw.add("indent",(t=>{t.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});const e=e=>{const s=[];return t.s.eachSelection((i=>{t.s.save();let r=!!i&&X.i.up(i,X.i.isBlock,t.editor);const{enter:o}=t.o;if(!r&&i&&(r=X.i.wrapInline(i,o!==u.BR?o:u.PARAGRAPH,t)),!r)return t.s.restore(),!1;const n=s.includes(r);if(r&&!n){const i=Ho(t.o.direction,r);s.push(r);let o=r.style[i]?parseInt(r.style[i],10):0;o+=t.o.indentMargin*("outdent"===e?-1:1),r.style[i]=o>0?o+"px":"",(0,v.attr)(r,"style")||(0,v.attr)(r,"style",null)}t.s.restore()})),t.synchronizeValues(),!1};t.registerCommand("indent",{exec:e,hotkeys:["ctrl+]","cmd+]"]}),t.registerCommand("outdent",{exec:e,hotkeys:["ctrl+[","cmd+["]})}));var Uo=r(10147),Yo=r.n(Uo),Go=r(14165),Xo=r.n(Go),Ko=r(42516),Jo=r.n(Ko),Zo=r(68315),Qo=r.n(Zo),tn=r(80554),en=r.n(tn),sn=r(10328),rn=r.n(sn),on=r(69187),nn=r.n(on),an=[{name:"eye",tooltip:"Open link",exec(t,e){const s=(0,yt.L)(e,"href");e&&s&&t.ow.open(s)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"],ln=r(60303);const cn={name:"left",childTemplate(t,e,s){return s},list:["Left","Right","Center","Normal"],exec(t,e,{control:s}){if(!X.i.isTag(e,["img","jodit","jodit-media"]))return;const i=s.args&&(0,T.H)(s.args[0])?s.args[0].toLowerCase():"";if(!i)return!1;(0,ln.zC)(e,i),X.i.isTag(e,["jodit","jodit-media"])&&e.firstElementChild&&(0,ln.zC)(e.firstElementChild,i),t.synchronizeValues(),t.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"};var hn=[{name:"delete",icon:"bin",tooltip:"Delete",exec(t,e){e&&t.s.removeNode(e)}},{name:"pencil",exec(t,e){"img"===e.tagName.toLowerCase()&&t.e.fire("openImageProperties",e)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec(t,e,{control:s}){if(!X.i.isTag(e,"img"))return;const i=s.args&&(0,T.H)(s.args[0])?s.args[0].toLowerCase():"";if(!i)return!1;(0,ct.i)(e,"vertical-align","normal"===i?"":i),t.e.fire("recalcPositionPopup")}},cn];const dn=t=>t.args&&(0,Z.HD)(t.args[0])?t.args[0].toLowerCase():"";var un=[{name:"brush",popup(t,e,s,i){if(!(0,Z.Zu)(t))return;const r=t.getInstance("Table",t.o).getAllSelectedCells();if(!r.length)return!1;const o=e=>to(t,(s=>{r.forEach((t=>{(0,ct.i)(t,e,s)})),t.lock(),t.synchronizeValues(),i(),t.unlock()}),(0,ct.i)(r[0],e));return eo(t,[{name:"Background",content:o("background-color")},{name:"Text",content:o("color")},{name:"Border",content:o("border-color")}])},tooltip:"Background"},{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate(t,e,s){return s},exec(t,e,{control:s}){const i=dn(s);t.getInstance("Table",t.o).getAllSelectedCells().forEach((t=>{(0,ct.i)(t,"vertical-align","normal"===i?"":i)}))},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,{control:s}){if(!(0,Z.Zu)(t))return;const i=dn(s);t.execCommand(i,!1,e)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec(t,e,{control:s}){if(!(0,Z.Zu)(t))return;const i=dn(s);t.execCommand(i,!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,{control:s}){if(!(0,Z.Zu)(t))return;const i=dn(s);t.execCommand(i,!1,e),t.e.fire("hidePopup")},tooltip:"Delete"}],pn=[{name:"bin",tooltip:"Delete",exec(t,e){e&&t.s.removeNode(e)}},cn];f.D.prototype.toolbarInline=!0,f.D.prototype.toolbarInlineForSelection=!1,f.D.prototype.toolbarInlineDisableFor=[],f.D.prototype.toolbarInlineDisabledButtons=["source"],M.J.set("addcolumn",Yo()).set("addrow",Xo()).set("merge",Jo()).set("th",Qo()).set("splitg",en()).set("splitv",rn()).set("th-list",nn()),f.D.prototype.popup={a:an,img:hn,cells:un,toolbar:["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"],jodit:pn,iframe:pn,"jodit-media":pn,selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]};class fn extends Ut.S{constructor(){super(...arguments),this.requires=["select"],this.type=null,this.snapRange=null,this.elmsList=(0,v.keys)(this.j.o.popup,!1).filter((t=>!this.isExcludedTarget(t)))}get popup(){return new I(this.jodit,!1)}get toolbar(){return qt(this.jodit,this.popup)}onClick(t){const e=this.elmsList,s=X.i.isTag(t,"img")?t:X.i.closest(t,e,this.j.editor);if(s&&this.canShowPopupForType(s.nodeName.toLowerCase()))return this.showPopup((()=>(0,v.position)(s,this.j)),s.nodeName.toLowerCase(),s),!1}showPopup(t,e,s){if(e=e.toLowerCase(),!this.canShowPopupForType(e))return!1;if(this.type!==e||s!==this.previousTarget){this.previousTarget=s;const t=this.j.o.popup[e];let i;i=(0,v.isFunction)(t)?t(this.j,s,this.popup.close):t,(0,v.isArray)(i)&&(this.toolbar.build(i,s),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,i=this.toolbar.container),this.popup.setContent(i),this.type=e}return this.popup.open(t),!0}hidePopup(t){(0,v.isString)(t)&&t!==this.type||this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(t){const e=this.j.o.popup[t.toLowerCase()];return!(this.j.o.readonly||!this.j.o.toolbarInline||!e||this.isExcludedTarget(t))}isExcludedTarget(t){return(0,v.splitArray)(this.j.o.toolbarInlineDisableFor).map((t=>t.toLowerCase())).includes(t.toLowerCase())}afterInit(t){this.j.e.on("getDiffButtons.mobile",(e=>{if(this.toolbar===e){const e=this.toolbar.getButtonsNames();return(0,v.toArray)(t.registeredButtons).filter((t=>!this.j.o.toolbarInlineDisabledButtons.includes(t.name))).filter((t=>{const s=(0,v.isString)(t)?t:t.name;return s&&"|"!==s&&"\n"!==s&&!e.includes(s)}))}})).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",((t,e,s)=>{this.showPopup(e,s||((0,v.isString)(t)?t:t.nodeName),(0,v.isString)(t)?void 0:t)})).on("mousedown keydown",this.onSelectionStart).on("change",(()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)})).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.addListenersForElements()}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(t){if(t&&t.target&&E.u.closestElement(t.target,I))return;const{snapRange:e}=this,{range:s}=this.j.s;e&&!s.collapsed&&s.startContainer===e.startContainer&&s.startOffset===e.startOffset&&s.endContainer===e.endContainer&&s.endOffset===e.endOffset||this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;const t="selection",e=this.j.s.sel,s=this.j.s.range;e?.isCollapsed||this.isSelectedTarget(s)||this.tableModule.getAllSelectedCells().length?this.type===t&&this.popup.isOpened&&this.hidePopup():this.j.s.current()&&this.showPopup((()=>s.getBoundingClientRect()),t)}isSelectedTarget(t){const e=t.startContainer;return X.i.isElement(e)&&e===t.endContainer&&X.i.isTag(e.childNodes[t.startOffset],(0,v.keys)(this.j.o.popup,!1))&&t.startOffset===t.endOffset-1}get tableModule(){return this.j.getInstance("Table",this.j.o)}beforeDestruct(t){t.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}_eventsList(){const t=this.elmsList;return t.map((t=>(0,v.camelCase)("click_"+t))).concat(t.map((t=>(0,v.camelCase)("touchstart_"+t)))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(t){this.showPopup((()=>{if(t)return t;const{range:e}=this.j.s;return e.getBoundingClientRect()}),"toolbar")}}(0,p.gn)([y.cache],fn.prototype,"popup",null),(0,p.gn)([y.cache],fn.prototype,"toolbar",null),(0,p.gn)([y.autobind],fn.prototype,"onClick",null),(0,p.gn)([(0,y.wait)((t=>!t.j.isLocked))],fn.prototype,"showPopup",null),(0,p.gn)([(0,y.watch)(":clickEditor"),y.autobind],fn.prototype,"hidePopup",null),(0,p.gn)([(0,y.watch)(":outsideClick")],fn.prototype,"onOutsideClick",null),(0,p.gn)([y.autobind],fn.prototype,"onSelectionStart",null),(0,p.gn)([y.autobind],fn.prototype,"onSelectionEnd",null),(0,p.gn)([(0,y.debounce)((t=>t.defaultTimeout))],fn.prototype,"onSelectionChange",null),(0,p.gn)([y.autobind],fn.prototype,"showInlineToolbar",null),j.pw.add("inlinePopup",fn);var mn=r(94484);M.J.set("justify",r.n(mn)()),f.D.prototype.controls.align={name:"left",tooltip:"Align",update(t,e){const s=t.control,i=e.s.current();if(i){const r=S.i.closest(i,S.i.isBlock,e.editor)||e.editor;let o=""+(0,ct.i)(r,"text-align");s.defaultValue&&-1!==s.defaultValue.indexOf(o)&&(o="left"),s.data&&s.data.currentValue!==o&&s.list&&-1!==s.list.indexOf(o)&&(e.o.textIcons?t.state.text=o:t.state.icon.name=o,s.data.currentValue=o)}},isActive(t,e){const s=t.s.current();if(s&&e.defaultValue){const i=S.i.closest(s,S.i.isBlock,t.editor)||t.editor;return-1===e.defaultValue.indexOf(""+(0,ct.i)(i,"text-align"))}return!1},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},f.D.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},f.D.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},f.D.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},f.D.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},j.pw.add("justify",(t=>{t.registerButton({name:"align",group:"indent"});const e=e=>(t.s.focus(),t.s.eachSelection((s=>{if(!s)return;let i=S.i.up(s,S.i.isBlock,t.editor);i||(i=S.i.wrapInline(s,t.o.enterBlock,t)),(0,ln.E3)(e,i)})),!1);t.registerCommand("justifyfull",e),t.registerCommand("justifyright",e),t.registerCommand("justifyleft",e),t.registerCommand("justifycenter",e)}));class gn extends Ut.S{afterInit(t){}beforeDestruct(t){}onKeyDownArrow(t){if(t.key!==u.KEY_RIGHT||!this.j.selection.isCollapsed())return;const{endContainer:e,endOffset:s}=this.j.selection.range;if(S.i.isText(e)&&e.nodeValue?.length===s){const{parentNode:t}=e;S.i.isInlineBlock(t)&&!S.i.findNotEmptyNeighbor(t,!1,this.j.editor)&&S.i.after(t,this.j.createInside.text(u.NBSP_SPACE))}}}(0,p.gn)([(0,y.watch)(":keydown")],gn.prototype,"onKeyDownArrow",null),j.pw.add("keyArrowOutside",gn),f.D.prototype.limitWords=!1,f.D.prototype.limitChars=!1,f.D.prototype.limitHTML=!1;class vn extends Ut.S{afterInit(t){const{limitWords:e,limitChars:s}=t.o;if(t&&(e||s)){let e=null;t.e.off(".limit").on("beforePaste.limit",(()=>{e=t.history.snapshot.make()})).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",(()=>{if(this.__shouldDenyInput(!0)&&e)return t.history.snapshot.restore(e),t.e.fire("denyPaste.limit"),!1}))}}shouldPreventInsertHTML(t){return(!t||!(u.COMMAND_KEYS.includes(t.key)||t.ctrlKey||t.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(t){const{jodit:e}=this,{limitWords:s,limitChars:i}=e.o,r=this.__splitWords(e.o.limitHTML?e.value:e.text);if(s&&bn(r.length,s,t))return e.e.fire("denyWords.limit limit.limit"),!0;const o=!(!i||!bn(r.join("").length,i,t));return o&&e.e.fire("denyChars.limit limit.limit"),o}checkPreventKeyPressOrPaste(t){if(this.shouldPreventInsertHTML(t))return!1}checkPreventChanging(t,e){const{jodit:s}=this;this.__shouldDenyInput(!0)&&(s.value=e)}__splitWords(t){return t.replace((0,u.INVISIBLE_SPACE_REG_EXP)(),"").split((0,u.SPACE_REG_EXP)()).filter((t=>t.length))}beforeDestruct(t){t.e.off(".limit")}}function bn(t,e,s){return s?t>e:t>=e}(0,p.gn)([y.autobind],vn.prototype,"checkPreventKeyPressOrPaste",null),(0,p.gn)([y.autobind],vn.prototype,"checkPreventChanging",null),j.pw.add("limit",vn);var yn=r(12722),wn=r.n(yn);f.D.prototype.defaultLineHeight=null,M.J.set("line-height",wn()),f.D.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec(t,e,{control:s}){return(0,v.memorizeExec)(t,e,{control:s},(t=>t))}};class _n extends Ut.S{constructor(t){super(t),this.buttons=[{name:"lineHeight",group:"font"}],(0,j.xl)(a)}afterInit(t){(0,v.css)(t.editor,{lineHeight:t.o.defaultLineHeight}),t.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(t,e,s){const{s:i,createInside:r,editor:o,o:n}=this.j;let a;i.isFocused()||i.focus(),i.save();const l=t=>{let e=S.i.closest(t,S.i.isBlock,o);e||(e=S.i.wrap(t,n.enter,r));const i=(0,v.css)(e,"lineHeight");void 0===a&&(a=""+i!=""+s),(0,v.css)(e,"lineHeight",a?s:null)};try{if(i.isCollapsed()){const t=r.fake();i.insertNode(t,!1,!1),l(t),S.i.safeRemove(t)}else i.eachSelection(l)}finally{i.restore()}}beforeDestruct(t){(0,v.css)(t.editor,{lineHeight:null})}}(0,p.gn)([y.autobind],_n.prototype,"applyLineHeight",null),j.pw.add("lineHeight",_n);var Cn=r(10530),Sn=r.n(Cn),En=r(52401),xn=r.n(En);f.D.prototype.link={formTemplate(t){const{openInNewTabCheckbox:e,noFollowCheckbox:s,modeClassName:i,selectSizeClassName:r,selectMultipleClassName:o,selectOptionsClassName:n}=t.o.link;return new _t(t,[new It(t,[new vt(t,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new It(t,[new vt(t,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),i?new It(t,["input"===i?new vt(t,{name:"className",ref:"className_input",label:"Class name"}):"select"===i?new wt(t,{name:"className",ref:"className_select",label:"Class name",size:r,multiple:o,options:n}):null]):null,e?new xt(t,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,s?new xt(t,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new It(t,[new V(t,{name:"unlink",variant:"default",text:"Unlink"}),new V(t,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])},followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},M.J.set("link",Sn()).set("unlink",xn()),f.D.prototype.controls.unlink={exec(t,e){const s=S.i.closest(e,"a",t.editor);s&&S.i.unwrap(s),t.synchronizeValues(),t.e.fire("hidePopup")},tooltip:"Unlink"},f.D.prototype.controls.link={isActive(t){const e=t.s.current();return!(!e||!S.i.closest(e,"a",t.editor))},popup(t,e,s,i){return t.e.fire("generateLinkForm.link",e,i)},tags:["a"],tooltip:"Insert link"};class jn extends Ut.S{constructor(){super(...arguments),this.buttons=[{name:"link",group:"insert"}]}afterInit(t){t.o.link.followOnDblClick&&t.e.on("dblclick.link",this.onDblClickOnLink),t.o.link.processPastedLink&&t.e.on("processPaste.link",this.onProcessPasteLink),t.e.on("generateLinkForm.link",this.__generateForm),t.registerCommand("openLinkDialog",{exec:()=>{const e=t.dlg({resizable:!1}),s=this.__generateForm(t.s.current(),(()=>{e.close()}));s.container.classList.add("jodit-dialog_alert"),e.setContent(s),e.open(),t.async.requestIdleCallback((()=>{const{url_input:t}=(0,v.refs)(s.container);t?.focus()}))},hotkeys:t.o.link.hotkeys})}onDblClickOnLink(t){if(!X.i.isTag(t.target,"a"))return;const e=(0,v.attr)(t.target,"href");e&&(location.href=e,t.preventDefault())}onProcessPasteLink(t,e){const{jodit:s}=this;if((0,v.isURL)(e)&&s.o.link.processPastedLink){if(s.e.stopPropagation("processPaste"),s.o.link.processVideoLink){const t=(0,v.convertMediaUrlToVideoEmbed)(e);if(t!==e)return s.createInside.fromHTML(t)}if(s.s.isCollapsed()){const t=s.createInside.element("a");return t.setAttribute("href",e),t.textContent=e,s.e.fire("applyLink",s,t,null),t}return s.s.applyStyle(void 0,{element:"a",attributes:{href:e}}),!0}}__generateForm(t,e){const{jodit:s}=this,i=s.i18n.bind(s),{openInNewTabCheckbox:r,noFollowCheckbox:o,formTemplate:n,formClassName:a,modeClassName:l}=s.o.link,c=n(s),h=(0,v.isString)(c)?s.c.fromHTML(c,{target_checkbox_box:r,nofollow_checkbox_box:o}):c,d=X.i.isElement(h)?h:h.container,u=(0,v.refs)(d),{insert:p,unlink:f,content_input_box:m}=u,{target_checkbox:g,nofollow_checkbox:b,url_input:y}=u,w=X.i.isImage(t);let{content_input:_}=u;const{className_input:C}=u,{className_select:S}=u;let E;_||(_=s.c.element("input",{type:"hidden",ref:"content_input"})),a&&d.classList.add(a),w&&X.i.hide(m);const x=()=>E?E.innerText:(0,v.stripTags)(s.s.range.cloneContents(),s.ed);if(E=!(!t||!X.i.closest(t,"a",s.editor))&&X.i.closest(t,"a",s.editor),!w&&t&&(_.value=x()),E){if(y.value=(0,v.attr)(E,"href")||"",l)switch(l){case"input":C&&(C.value=(0,v.attr)(E,"class")||"");break;case"select":if(S){for(let t=0;S.selectedOptions.length>t;t++){const e=S.options.item(t);e&&(e.selected=!1)}((0,v.attr)(E,"class")||"").split(" ").forEach((t=>{if(t)for(let e=0;S.options.length>e;e++){const s=S.options.item(e);s?.value&&s.value===t&&(s.selected=!0)}}))}}r&&g&&(g.checked="_blank"===(0,v.attr)(E,"target")),o&&b&&(b.checked="nofollow"===(0,v.attr)(E,"rel")),p.textContent=i("Update")}else X.i.hide(f);s.editor.normalize();const j=s.history.snapshot.make();f&&s.e.on(f,"click",(t=>{s.s.restore(),s.history.snapshot.restore(j),E&&X.i.unwrap(E),s.synchronizeValues(),e(),t.preventDefault()}));const I=()=>{if(!y.value.trim().length)return y.focus(),y.classList.add("jodit_error"),!1;let t;s.s.restore(),s.s.removeMarkers(),s.editor.normalize(),s.history.snapshot.restore(j);const i=x()!==_.value.trim(),n=s.createInside;if(E)t=[E];else{if(s.s.isCollapsed()){const e=n.element("a");s.s.insertNode(e,!1,!1),t=[e]}else{const e=s.s.current();t=X.i.isTag(e,["img"])?[X.i.wrap(e,"a",n)]:s.s.wrapInTag("a")}t.forEach((t=>s.s.select(t)))}return t.forEach((t=>{if((0,v.attr)(t,"href",y.value),l&&(C??S))if("input"===l)""===C.value&&t.hasAttribute("class")&&(0,v.attr)(t,"class",null),""!==C.value&&(0,v.attr)(t,"class",C.value);else if("select"===l){t.hasAttribute("class")&&(0,v.attr)(t,"class",null);for(let e=0;S.selectedOptions.length>e;e++){const s=S.selectedOptions.item(e)?.value;s&&t.classList.add(s)}}if(!w){let e=t.textContent;_.value.trim().length?i&&(e=_.value):e=y.value,e!==t.textContent&&(t.textContent=e)}r&&g&&(0,v.attr)(t,"target",g.checked?"_blank":null),o&&b&&(0,v.attr)(t,"rel",b.checked?"nofollow":null),s.e.fire("applyLink",s,t,h)})),s.synchronizeValues(),e(),!1};return X.i.isElement(h)?s.e.on(h,"submit",(t=>(t.preventDefault(),t.stopImmediatePropagation(),I(),!1))):h.onSubmit(I),h}beforeDestruct(t){t.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.onDblClickOnLink).off("processPaste.link",this.onProcessPasteLink)}}(0,p.gn)([y.autobind],jn.prototype,"onDblClickOnLink",null),(0,p.gn)([y.autobind],jn.prototype,"onProcessPasteLink",null),(0,p.gn)([y.autobind],jn.prototype,"__generateForm",null),j.pw.add("link",jn),f.D.prototype.mediaFakeTag="jodit-media",f.D.prototype.mediaInFakeBlock=!0,f.D.prototype.mediaBlocks=["video","audio"],j.pw.add("media",(t=>{const e="jodit_fake_wrapper",{mediaFakeTag:s,mediaBlocks:i,mediaInFakeBlock:r}=t.options;r&&t.e.on("afterGetValueFromEditor",(t=>{const i=RegExp(`<${s}[^>]+data-${e}[^>]+>([^]+?)</${s}>`,"ig");i.test(t.value)&&(t.value=t.value.replace(i,"$1"))})).on("change afterInit afterSetMode changePlace",t.async.debounce((()=>{t.isDestructed||t.getMode()===u.MODE_SOURCE||(0,k.$$)(i.join(","),t.editor).forEach((i=>{(0,k.dataBind)(i,e)||((0,k.dataBind)(i,e,!0),(i=>{if(i.parentNode&&(0,k.attr)(i.parentNode,"data-jodit_iframe_wrapper"))i=i.parentNode;else{const r=t.createInside.element(s,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,["data-"+e]:1});(0,k.attr)(r,"style",(0,k.attr)(i,"style")),r.style.display="inline-block"===i.style.display?"inline-block":"block",r.style.width=i.offsetWidth+"px",r.style.height=i.offsetHeight+"px",i.parentNode&&i.parentNode.insertBefore(r,i),r.appendChild(i),i=r}t.e.off(i,"mousedown.select touchstart.select").on(i,"mousedown.select touchstart.select",(()=>{t.s.setCursorAfter(i)}))})(i))}))}),t.defaultTimeout))})),f.D.prototype.mobileTapTimeout=300,f.D.prototype.toolbarAdaptive=!0,f.D.prototype.controls.dots={mode:u.MODE_SOURCE+u.MODE_WYSIWYG,popup(t,e,s,i,r){let o=s.data;return void 0===o&&(o={toolbar:qt(t),rebuild(){if(r){const e=t.e.fire("getDiffButtons.mobile",r.closest(zt));e&&o&&(o.toolbar.build((0,v.splitArray)(e)),o.toolbar.container.style.width=3*((t.toolbar?.firstButton?.container.offsetWidth||36)+4)+"px")}}},s.data=o),o.rebuild(),o.toolbar},tooltip:"Show all"},j.pw.add("mobile",(t=>{let e=0,s=(0,v.splitArray)(t.o.buttons);t.o.mobileTapTimeout&&t.e.on("touchend",(s=>{if(s.changedTouches&&s.changedTouches.length){const i=(new Date).getTime(),r=i-e;r>t.o.mobileTapTimeout&&(e=i,1.5*t.o.mobileTapTimeout>r&&t.s.insertCursorAtPoint(s.clientX,s.clientY))}})),t.e.on("getDiffButtons.mobile",(e=>{if(e===t.toolbar){const e=H((0,v.splitArray)(t.o.buttons),t),i=H(s,t);return(0,v.toArray)(e).reduce(((t,e)=>(i.has(e)||t.push(e),t)),[])}})),t.o.toolbarAdaptive&&t.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",(()=>{if(!t.o.toolbar)return;const e=(t.container.parentElement??t.container).offsetWidth,i=(0,v.splitArray)(t.isFullSize||e>=t.o.sizeLG?t.o.buttons:t.o.sizeMD>e?t.o.sizeSM>e?t.o.buttonsXS:t.o.buttonsSM:t.o.buttonsMD);""+i!=""+s&&(s=i,t.e.fire("closeAllPopups"),t.toolbar?.setRemoveButtons(t.o.removeButtons).build(s.concat(t.o.extraButtons)))})).on(t.ow,"load resize",(()=>t.e.fire("recalcAdaptive")))}));var In=r(44931),kn=r.n(In),Tn=r(29845),Ln=r.n(Tn);const Mn=(t,e,{control:s})=>{const i="button"+s.command,r=(s.args&&s.args[0])??(0,qe.q)(t,i);(0,qe.q)(t,i,r),t.execCommand(s.command,!1,"default"===r?null:r)};M.J.set("ol",kn()).set("ul",Ln()),f.D.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:Mn},f.D.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:Mn};class Pn extends Ut.S{constructor(){super(...arguments),this.buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}]}afterInit(t){t.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(t,e,s){return this.jodit.s.applyStyle({listStyleType:s??null},{element:"insertunorderedlist"===t?"ul":"ol"}),this.jodit.synchronizeValues(),!1}beforeDestruct(t){}}function Nn(t,e,s){if(e.isInDestruct)return;(t=>!(!t||"drop"!==t.type))(t)&&e.s.insertCursorAtPoint(t.clientX,t.clientY);const i=e.e.fire("beforePasteInsert",s);!(0,Z.nj)(i)&&((0,Z.HD)(i)||(0,Z.hj)(i)||S.i.isNode(i))&&(s=i),(0,Z.HD)(s)&&(s=(t=>{const e=(t=t.replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i);-1!==e&&(t=t.substring(e+20));const s=t.search(/<!--EndFragment-->/i);return-1!==s&&(t=t.substring(0,s)),t})(s)),e.s.insertHTML(s)}function zn(t,e,s,i,r){if(!1===t.e.fire("beforeOpenPasteDialog",e,s,i,r))return;const o=t.confirm(`<div style="word-break: normal; white-space: normal">${t.i18n(e)}</div>`,t.i18n(s)),n=r.map((({text:e,value:s})=>U(t,{text:e,name:e.toLowerCase(),tabIndex:0}).onAction((()=>{o.close(),i(s)}))));o.e.one(o,"afterClose",(()=>{t.s.isFocused()||t.s.focus()}));const a=U(t,{text:"Cancel",tabIndex:0}).onAction((()=>{o.close()}));return o.setFooter([...n,a]),n[0].focus(),n[0].state.variant="primary",t.e.fire("afterOpenPasteDialog",o,e,s,i,r),o}(0,p.gn)([y.autobind],Pn.prototype,"onCommand",null),j.pw.add("orderedList",Pn),f.D.prototype.askBeforePasteHTML=!0,f.D.prototype.processPasteHTML=!0,f.D.prototype.pasteHTMLActionList=[{value:u.INSERT_AS_HTML,text:"Keep"},{value:u.INSERT_AS_TEXT,text:"Insert as Text"},{value:u.INSERT_ONLY_TEXT,text:"Insert only Text"}],f.D.prototype.memorizeChoiceWhenPasteFragment=!1,f.D.prototype.nl2brInPlainText=!0;const Dn="pasteStorage";f.D.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(t,e,{control:s}){if(s.name===Dn)return void t.execCommand("showPasteStorage");t.s.focus();let i="",r=!0;if(navigator.clipboard){try{const t=await navigator.clipboard.read();if(t&&t.length){const e=await t[0].getType(u.TEXT_PLAIN);i=await new Response(e).text()}r=!1}catch(t){}if(r)try{i=await navigator.clipboard.readText(),r=!1}catch(t){}}r&&(i=t.buffer.get(u.CLIPBOARD_ID)||"",r=0===i.length);const o=t.value;r?(t.ed.execCommand("paste"),r=o===t.value,!r&&t.e.fire("afterPaste")):i.length?(Nn(null,t,i),t.e.fire("afterPaste")):r&&t.alert("Your browser doesn't support direct access to the clipboard.",(()=>{t.s.focus()}))},list:{[Dn]:"Paste Storage"},isChildDisabled:t=>2>t.e.fire("pasteStorageList")};class Rn extends kr.S{constructor(){super(...arguments),this.pasteStack=new v.LimitedStack(20),this._isDialogOpened=!1}afterInit(t){t.e.on("paste.paste",this.onPaste).on("pasteStack.paste",(t=>this.pasteStack.push(t))),t.o.nl2brInPlainText&&this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}beforeDestruct(t){t.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}onPaste(t){try{if(!1===this.customPasteProcess(t)||!1===this.j.e.fire("beforePaste",t))return t.preventDefault(),!1;this.defaultPasteProcess(t)}finally{this.j.e.fire("afterPaste",t)}}customPasteProcess(t){if(!this.j.o.processPasteHTML)return;const e=(0,v.getDataTransfer)(t),s={html:e?.getData(u.TEXT_HTML),plain:e?.getData(u.TEXT_PLAIN),rtf:e?.getData(u.TEXT_RTF)};let i;for(i in s){const e=s[i];if((0,v.isHTML)(e)&&(this.j.e.fire("processHTML",t,e,s)||this.processHTML(t,e)))return!1}}defaultPasteProcess(t){const e=(0,v.getDataTransfer)(t);let s=e?.getData(u.TEXT_HTML)||e?.getData(u.TEXT_PLAIN);if(e&&s&&""!==(0,v.trim)(s)){const i=this.j.e.fire("processPaste",t,s,(t=>{const e=t.types;let s="";if((0,Z.kJ)(e)||"[object DOMStringList]"==={}.toString.call(e))for(let t=0;e.length>t;t+=1)s+=e[t]+";";else s=(e||u.TEXT_PLAIN)+";";return s})(e));void 0!==i&&(s=i),((0,v.isString)(s)||S.i.isNode(s))&&this.insertByType(t,s,this.j.o.defaultActionOnPaste),t.preventDefault(),t.stopPropagation()}}processHTML(t,e){if(this.j.o.askBeforePasteHTML){if(this.j.o.memorizeChoiceWhenPasteFragment){const s=this.pasteStack.find((t=>t.html===e));if(s)return this.insertByType(t,e,s.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;const s=zn(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",(s=>{this._isDialogOpened=!1,this.insertByType(t,e,s)}),this.j.o.pasteHTMLActionList);return s&&(this._isDialogOpened=!0,s.e.on("beforeClose",(()=>{this._isDialogOpened=!1}))),!0}return!1}insertByType(t,e,s){if(this.pasteStack.push({html:e,action:s}),(0,v.isString)(e))switch(this.j.buffer.set(u.CLIPBOARD_ID,e),s){case u.INSERT_CLEAR_HTML:e=(0,v.cleanFromWord)(e);break;case u.INSERT_ONLY_TEXT:e=(0,v.stripTags)(e);break;case u.INSERT_AS_TEXT:e=(0,v.htmlspecialchars)(e)}Nn(t,this.j,e)}onProcessPasteReplaceNl2Br(t,e,s){if(s===u.TEXT_PLAIN+";"&&!(0,v.isHTML)(e))return(0,v.nl2br)(e)}}(0,p.gn)([y.autobind],Rn.prototype,"onPaste",null),(0,p.gn)([y.autobind],Rn.prototype,"onProcessPasteReplaceNl2Br",null),j.pw.add("paste",Rn),f.D.prototype.askBeforePasteFromWord=!0,f.D.prototype.processPasteFromWord=!0,f.D.prototype.defaultActionOnPasteFromWord=null,f.D.prototype.pasteFromWordActionList=[{value:u.INSERT_AS_HTML,text:"Keep"},{value:u.INSERT_AS_TEXT,text:"Clean"},{value:u.INSERT_ONLY_TEXT,text:"Insert only Text"}];class An extends Ut.S{constructor(){super(...arguments),this.requires=["paste"]}afterInit(t){}beforeDestruct(t){}processWordHTML(t,e,s){const{j:i}=this,{processPasteFromWord:r,askBeforePasteFromWord:o,defaultActionOnPasteFromWord:n,defaultActionOnPaste:a,pasteFromWordActionList:l}=i.o;return!(!r||!(0,v.isHtmlFromWord)(e)||(o?zn(i,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",(i=>{this.insertFromWordByType(t,e,i,s)}),l):this.insertFromWordByType(t,e,n||a,s),0))}insertFromWordByType(t,e,s,i){switch(s){case u.INSERT_AS_HTML:{e=(0,v.applyStyles)(e);const t=this.j.events?.fire("beautifyHTML",e);(0,v.isString)(t)&&(e=t);break}case u.INSERT_AS_TEXT:e=(0,v.cleanFromWord)(e);break;case u.INSERT_ONLY_TEXT:e=(0,v.stripTags)((0,v.cleanFromWord)(e))}Nn(t,this.j,e)}}(0,p.gn)([(0,y.watch)(":processHTML")],An.prototype,"processWordHTML",null),j.pw.add("pasteFromWord",An),j.pw.add("pasteStorage",class qn extends kr.S{constructor(){super(...arguments),this.currentIndex=0,this.list=[],this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.paste=()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){const t=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=t}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")},this.onKeyDown=t=>{let e=this.currentIndex;-1!==[u.KEY_UP,u.KEY_DOWN,u.KEY_ENTER].indexOf(t.key)&&(t.key===u.KEY_UP&&(0===e?e=this.list.length-1:e-=1),t.key===u.KEY_DOWN&&(e===this.list.length-1?e=0:e+=1),t.key!==u.KEY_ENTER?(e!==this.currentIndex&&this.selectIndex(e),t.stopImmediatePropagation(),t.preventDefault()):this.paste())},this.selectIndex=t=>{this.listBox&&(0,v.toArray)(this.listBox.childNodes).forEach(((e,s)=>{e.classList.remove("jodit_active"),t===s&&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 s=this.j.c.element("a");s.textContent=e+1+". "+t.replace((0,u.SPACE_REG_EXP)(),""),this.j.e.on(s,"keydown",this.onKeyDown),(0,v.attr)(s,"href","#"),(0,v.attr)(s,"data-index",""+e),(0,v.attr)(s,"tab-index","-1"),this.listBox&&this.listBox.appendChild(s)})),this.dialog&&this.dialog.open(),this.j.async.setTimeout((()=>{this.selectIndex(0)}),100))}}createDialog(){this.dialog=this.j.dlg();const t=U(this.j,"paste","Paste","primary");t.onAction(this.paste);const e=U(this.j,"","Cancel");e.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([t,e]),this.j.e.on(this.listBox,"click dblclick",(t=>{const e=t.target;return S.i.isTag(e,"a")&&e.hasAttribute("data-index")&&this.selectIndex(parseInt((0,v.attr)(e,"-index")||"0",10)),"dblclick"===t.type&&this.paste(),!1}))}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",(()=>this.list.length)).on("afterCopy.paste-storage",(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.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),S.i.safeRemove(this.previewBox),S.i.safeRemove(this.listBox),S.i.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}}),f.D.prototype.showPlaceholder=!0,f.D.prototype.placeholder="Type something",f.D.prototype.useInputsPlaceholder=!0;class On extends kr.S{constructor(){super(...arguments),this.addNativeListeners=()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)},this.addEvents=()=>{const t=this.j;t.o.useInputsPlaceholder&&t.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,yt.L)(t.element,"placeholder")||""),t.e.fire("placeholder",this.placeholderElm.innerHTML),t.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()}}afterInit(t){t.o.showPlaceholder&&(this.placeholderElm=t.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${t.i18n(t.o.placeholder)}</span>`),"rtl"===t.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),t.e.on("readonly",(t=>{t?this.hide():this.toggle()})).on("changePlace",this.addEvents),this.addEvents())}show(){const t=this.j;if(t.o.readonly)return;let e=0,s=0;const i=t.s.current(),r=i&&S.i.closest(i,S.i.isBlock,t.editor)||t.editor,o=t.ew.getComputedStyle(r),n=t.ew.getComputedStyle(t.editor);t.workplace.appendChild(this.placeholderElm);const{firstChild:a}=t.editor;if(S.i.isElement(a)&&!(0,Ve._)(a)){const i=t.ew.getComputedStyle(a);e=parseInt(i.getPropertyValue("margin-top"),10),s=parseInt(i.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(i.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=i.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(o.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=o.getPropertyValue("line-height");(0,ct.i)(this.placeholderElm,{display:"block",textAlign:o.getPropertyValue("text-align"),paddingTop:parseInt(n.paddingTop,10)+"px",paddingLeft:parseInt(n.paddingLeft,10)+"px",paddingRight:parseInt(n.paddingRight,10)+"px",marginTop:Math.max(parseInt(o.getPropertyValue("margin-top"),10),e),marginLeft:Math.max(parseInt(o.getPropertyValue("margin-left"),10),s)})}hide(){S.i.safeRemove(this.placeholderElm)}toggle(){const t=this.j;t.editor&&!t.isInDestruct&&(t.getRealMode()===u.MODE_WYSIWYG&&(t=>{if(!t.firstChild)return!0;const e=t.firstChild;if(u.INSEPARABLE_TAGS.has(e.nodeName?.toLowerCase())||/^(TABLE)$/i.test(e.nodeName))return!1;const s=S.i.next(e,(t=>t&&!S.i.isEmptyTextNode(t)),t);return S.i.isText(e)&&!s?S.i.isEmptyTextNode(e):!s&&S.i.each(e,(t=>!(S.i.isLeaf(t)||S.i.isList(t))&&(S.i.isEmpty(t)||S.i.isTag(t,"br"))))})(t.editor)?this.show():this.hide())}beforeDestruct(t){this.hide(),t.e.off(".placeholder").off(window,"load",this.toggle)}}(0,p.gn)([(0,y.debounce)((t=>t.defaultTimeout/10),!0)],On.prototype,"toggle",null),j.pw.add("placeholder",On),j.pw.add("poweredByJodit",(t=>{const{o:e}=t;e.hidePoweredByJodit||e.inline||!(e.showCharsCounter||e.showWordsCounter||e.showXPathInStatusbar)||t.hookStatus("ready",(()=>{t.statusbar.append(t.create.fromHTML('<a\n\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\tstyle="text-transform: uppercase"\n\t\t\t\t\t\tclass="jodit-status-bar-link"\n\t\t\t\t\t\ttarget="_blank"\n\t\t\t\t\t\thref="https://xdsoft.net/jodit/">\n\t\t\t\t\t\t\tPowered by Jodit\n\t\t\t\t\t\t</a>'),!0)}))}));var Bn=r(21498);f.D.prototype.controls.preview={icon:"eye",command:"preview",mode:u.MODE_SOURCE+u.MODE_WYSIWYG,tooltip:"Preview"},j.pw.add("preview",(t=>{t.registerButton({name:"preview"}),t.registerCommand("preview",((e,s,i)=>{const r=t.dlg();r.setSize(1024,600).open("",t.i18n("Preview")).setModal(!0);const[,o]=(0,Bn.$)(t,i,"px",r.getElm("content"));r.e.on(r,"afterClose",o)}))}));var Hn=r(93351),Fn=r(27526);M.J.set("print",r.n(Fn)()),f.D.prototype.controls.print={exec(t){const e=t.create.element("iframe");Object.assign(e.style,{position:"fixed",right:0,bottom:0,width:0,height:0,border:0}),(0,j.ZO)(t,f.D).appendChild(e);const s=()=>{t.e.off(t.ow,"mousemove",s),X.i.safeRemove(e)},i=e.contentWindow;if(i){t.e.on(i,"onbeforeunload onafterprint",s).on(t.ow,"mousemove",s),t.o.iframe?(t.e.fire("generateDocumentStructure.iframe",i.document,t),i.document.body.innerHTML=t.value):(i.document.write('<!doctype html><html lang="'+(0,Hn.X)(t.o.language)+'"><head><title></title></head><style>'+function(t){const e=(t,e=t.ownerDocument.styleSheets)=>(0,ht.q)(e).map((t=>{try{return(0,ht.q)(t.cssRules)}catch{}return[]})).flat().filter((e=>{try{return!(!e||!t.matches(e.selectorText))}catch{}return!1}));class s{constructor(s,i,r){this.css={};const o=r||{},n=e=>{const s=e.selectorText.split(",").map((t=>t.trim())).sort().join(",");0==!!this.css[s]&&(this.css[s]={});const i=e.style.cssText.split(/;(?![A-Za-z0-9])/);for(let e=0;i.length>e;e++){if(!i[e])continue;const r=i[e].split(":");r[0]=r[0].trim(),r[1]=r[1].trim(),this.css[s][r[0]]=r[1].replace(/var\(([^)]+)\)/g,((e,s)=>{const[i,r]=s.split(",");return(t.ew.getComputedStyle(t.editor).getPropertyValue(i.trim())||r||e).trim()}))}};(()=>{const r=s.innerHeight,a=i.createTreeWalker(t.editor,NodeFilter.SHOW_ELEMENT,(()=>NodeFilter.FILTER_ACCEPT));for(;a.nextNode();){const t=a.currentNode;if(r>t.getBoundingClientRect().top||o.scanFullPage){const s=e(t);if(s)for(let t=0;s.length>t;t++)n(s[t])}}})()}generateCSS(){let t="";for(const e in this.css)if(!/:not\(/.test(e)){t+=e+" { ";for(const s in this.css[e])t+=s+": "+this.css[e][s]+"; ";t+="}\n"}return t}}try{return new s(t.ew,t.ed,{scanFullPage:!0}).generateCSS()}catch{}return""}(t)+"</style><body></body></html>"),i.document.close(),(0,Bn.$)(t,void 0,"px",i.document.body));const e=i.document.createElement("style");e.innerHTML="@media print {\n\t\t\t\t\tbody {\n\t\t\t\t\t\t\t-webkit-print-color-adjust: exact;\n\t\t\t\t\t}\n\t\t\t}",i.document.head.appendChild(e),i.focus(),i.print()}},mode:u.MODE_SOURCE+u.MODE_WYSIWYG,tooltip:"Print"},j.pw.add("print",(t=>{t.registerButton({name:"print"})}));var $n=r(52390),Wn=r.n($n),Vn=r(28825),Un=r.n(Vn);M.J.set("redo",Wn()).set("undo",Un()),f.D.prototype.controls.redo={mode:u.MODE_SPLIT,isDisabled(t){return!t.history.canRedo()},tooltip:"Redo"},f.D.prototype.controls.undo={mode:u.MODE_SPLIT,isDisabled(t){return!t.history.canUndo()},tooltip:"Undo"},j.pw.add("redoUndo",class Yn extends kr.S{constructor(){super(...arguments),this.buttons=[{name:"undo",group:"history"},{name:"redo",group:"history"}]}beforeDestruct(){}afterInit(t){const e=e=>(t.history[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"]})}}),f.D.prototype.tableAllowCellResize=!0;const Gn="table_processor_observer-resize";class Xn extends Ut.S{constructor(){super(...arguments),this.selectMode=!1,this.resizeDelta=0,this.createResizeHandle=()=>{this.resizeHandler||(this.resizeHandler=this.j.c.div("jodit-table-resizer"),this.j.e.on(this.resizeHandler,"mousedown.table touchstart.table",this.onHandleMouseDown).on(this.resizeHandler,"mouseenter.table",(()=>{this.j.async.clearTimeout(this.hideTimeout)})))},this.hideTimeout=0,this.drag=!1,this.minX=0,this.maxX=0,this.startX=0}get module(){return this.j.getInstance("Table",this.j.o)}get isRTL(){return"rtl"===this.j.o.direction}showResizeHandle(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}hideResizeHandle(){this.hideTimeout=this.j.async.setTimeout((()=>{S.i.safeRemove(this.resizeHandler)}),{timeout:this.j.defaultTimeout,label:"hideResizer"})}onHandleMouseDown(t){if(this.j.isLocked)return;this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=t.clientX,this.j.lock(Gn),this.resizeHandler.classList.add("jodit-table-resizer_moved");let e,s=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)s=this.workTable.parentNode.getBoundingClientRect(),this.minX=s.left,this.maxX=this.minX+s.width;else{const t=Ts.formalCoordinate(this.workTable,this.workCell,!0);Ts.formalMatrix(this.workTable,((s,i,r)=>{t[1]===r&&(e=s.getBoundingClientRect(),this.minX=Math.max(e.left+u.NEARBY/2,this.minX)),t[1]+(this.isRTL?-1:1)===r&&(e=s.getBoundingClientRect(),this.maxX=Math.min(e.left+e.width-u.NEARBY/2,this.maxX))}))}return!1}onMouseMove(t){if(!this.drag)return;this.j.e.fire("closeAllPopups");let e=t.clientX;const s=(0,v.offset)(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);this.minX>e&&(e=this.minX),e>this.maxX&&(e=this.maxX),this.resizeDelta=e-this.startX+(this.j.o.iframe?s.left:0),this.resizeHandler.style.left=e-(this.j.o.iframe?0:s.left)+"px";const i=this.j.s.sel;i&&i.removeAllRanges()}onMouseUp(t){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==t.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}resizeColumns(){const t=this.resizeDelta,e=[];Ts.setColumnWidthByDelta(this.workTable,Ts.formalCoordinate(this.workTable,this.workCell,!0)[1],t,!0,e);const s=(0,v.call)(this.isRTL?S.i.prev:S.i.next,this.workCell,S.i.isCell,this.workCell.parentNode);Ts.setColumnWidthByDelta(this.workTable,Ts.formalCoordinate(this.workTable,s)[1],-t,!1,e)}resizeTable(){const t=this.resizeDelta*(this.isRTL?-1:1),e=this.workTable.offsetWidth,s=(0,v.getContentWidth)(this.workTable.parentNode,this.j.ew),i=!this.wholeTable;if(this.isRTL?!i:i)this.workTable.style.width=(e+t)/s*100+"%";else{const i=this.isRTL?"marginRight":"marginLeft",r=parseInt(this.j.ew.getComputedStyle(this.workTable)[i]||"0",10);this.workTable.style.width=(e-t)/s*100+"%",this.workTable.style[i]=(r+t)/s*100+"%"}}setWorkCell(t,e=null){this.wholeTable=e,this.workCell=t,this.workTable=S.i.up(t,(t=>S.i.isTag(t,"table")),this.j.editor)}calcHandlePosition(t,e,s=0,i=0){const r=(0,v.offset)(e,this.j,this.j.ed);if(s>u.NEARBY&&r.width-u.NEARBY>s)return void this.hideResizeHandle();const o=(0,v.offset)(this.j.workplace,this.j,this.j.od,!0),n=(0,v.offset)(t,this.j,this.j.ed);if(this.resizeHandler.style.left=(s>u.NEARBY?r.left+r.width:r.left)-o.left+i+"px",Object.assign(this.resizeHandler.style,{height:n.height+"px",top:n.top-o.top+"px"}),this.showResizeHandle(),s>u.NEARBY){const t=(0,v.call)(this.isRTL?S.i.prev:S.i.next,e,S.i.isCell,e.parentNode);this.setWorkCell(e,!!t&&null)}else{const t=(0,v.call)(this.isRTL?S.i.next:S.i.prev,e,S.i.isCell,e.parentNode);this.setWorkCell(t||e,!t||null)}}afterInit(t){t.o.tableAllowCellResize&&t.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",(()=>{(0,v.$$)("table",t.editor).forEach(this.observe)})).on(this.j.ow,"scroll.resize-cells",(()=>{if(!this.drag)return;const e=S.i.up(this.workCell,(t=>S.i.isTag(t,"table")),t.editor);if(e){const t=e.getBoundingClientRect();this.resizeHandler.style.top=t.top+"px"}})).on("beforeSetMode.resize-cells",(()=>{this.module.getAllSelectedCells().forEach((e=>{this.module.removeSelection(e),Ts.normalizeTable(S.i.closest(e,"table",t.editor))}))}))}observe(t){(0,v.dataBind)(t,Gn)||((0,v.dataBind)(t,Gn,!0),this.j.e.on(t,"mouseleave.resize-cells",(t=>{this.resizeHandler&&this.resizeHandler!==t.relatedTarget&&this.hideResizeHandle()})).on(t,"mousemove.resize-cells touchmove.resize-cells",this.j.async.throttle((e=>{if(this.j.isLocked)return;const s=S.i.up(e.target,S.i.isCell,t);s&&this.calcHandlePosition(t,s,e.offsetX)}),{timeout:this.j.defaultTimeout})),this.createResizeHandle())}beforeDestruct(t){t.events&&(t.e.off(this.j.ow,".resize-cells"),t.e.off(".resize-cells"))}}(0,p.gn)([y.autobind],Xn.prototype,"onHandleMouseDown",null),(0,p.gn)([y.autobind],Xn.prototype,"onMouseMove",null),(0,p.gn)([y.autobind],Xn.prototype,"onMouseUp",null),(0,p.gn)([y.autobind],Xn.prototype,"observe",null),j.pw.add("resizeCells",Xn),f.D.prototype.allowResizeX=!1,f.D.prototype.allowResizeY=!0;let Kn=class t extends Ut.S{constructor(){super(...arguments),this.isResized=!1,this.start={x:0,y:0,w:0,h:0},this.handle=this.j.c.div("jodit-editor__resize",M.J.get("resize_handler"))}afterInit(t){const{height:e,width:s,allowResizeX:i}=t.o;let{allowResizeY:r}=t.o;"auto"===e&&"auto"!==s&&(r=!1),"auto"===e&&"auto"===s||!i&&!r||(t.statusbar.setMod("resize-handle",!0),t.e.on("toggleFullSize.resizeHandler",(()=>{this.handle.style.display=t.isFullSize?"none":"block"})).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(t.ow,"mouseup touchend",this.onHandleResizeEnd),t.container.appendChild(this.handle))}onHandleResizeStart(t){this.isResized=!0,this.start.x=t.clientX,this.start.y=t.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,"mousemove touchmove",this.onHandleResize),t.preventDefault()}onHandleResize(t){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+t.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+t.clientX-this.start.x),this.j.e.fire("resize"))}onHandleResizeEnd(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,"mousemove touchmove",this.onHandleResize),this.j.unlock())}beforeDestruct(){X.i.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}};Kn.requires=["size"],Kn=(0,p.gn)([y.autobind],Kn),j.pw.add("resizeHandler",Kn),f.D.prototype.allowResizeTags=["img","iframe","table","jodit"],f.D.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:["img"]};const Jn="__jodit-resizer_binded";class Zn extends kr.S{constructor(){super(...arguments),this.LOCK_KEY="resizer",this.element=null,this.isResizeMode=!1,this.isShown=!1,this.startX=0,this.startY=0,this.width=0,this.height=0,this.ratio=0,this.rect=this.j.c.fromHTML(`<div title="${this.j.i18n("Press Alt for custom resizing")}" class="jodit-resizer">\n\t\t\t\t<div class="jodit-resizer__top-left"></div>\n\t\t\t\t<div class="jodit-resizer__top-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-left"></div>\n\t\t\t\t<span>100x100</span>\n\t\t\t</div>`),this.sizeViewer=this.rect.getElementsByTagName("span")[0],this.pointerX=0,this.pointerY=0,this.isAltMode=!1,this.onClickElement=t=>{this.isResizeMode||this.element===t&&this.isShown||(this.element=t,this.show(),S.i.isTag(this.element,"img")&&!this.element.complete&&this.j.e.one(this.element,"load",this.updateSize))},this.updateSize=()=>{if(!this.isInDestruct&&this.isShown&&this.element&&this.rect){const t=this.getWorkplacePosition(),e=(0,v.offset)(this.element,this.j,this.j.ed),s=parseInt(this.rect.style.left||"0",10),i=e.top-t.top,r=e.left-t.left;parseInt(this.rect.style.top||"0",10)===i&&s===r&&this.rect.offsetWidth===this.element.offsetWidth&&this.rect.offsetHeight===this.element.offsetHeight||((0,v.css)(this.rect,{top:i,left:r,width:this.element.offsetWidth,height:this.element.offsetHeight}),this.j.events&&(this.j.e.fire(this.element,"changesize"),isNaN(s)||this.j.e.fire("resize")))}},this.hideSizeViewer=()=>{this.sizeViewer.style.opacity="0"}}afterInit(t){(0,v.$$)("div",this.rect).forEach((e=>{t.e.on(e,"mousedown.resizer touchstart.resizer",this.onStartResizing.bind(this,e))})),j.TB.on("hideHelpers",this.hide),t.e.on("readonly",(t=>{t&&this.hide()})).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",(t=>{const e=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;e.test(t.value)&&(t.value=t.value.replace(e,"$1"))})).on("hideResizer",this.hide).on("change afterInit afterSetMode",this.onChangeEditor),this.addEventListeners(),this.onChangeEditor()}onEditorClick(t){let e=t.target;const{editor:s,options:{allowResizeTags:i}}=this.j;for(;e&&e!==s;){if(S.i.isTag(e,i))return this.bind(e),void this.onClickElement(e);e=e.parentNode}}addEventListeners(){const t=this.j;t.e.off(t.editor,".resizer").off(t.ow,".resizer").on(t.editor,"keydown.resizer",(t=>{this.isShown&&t.key===u.KEY_DELETE&&this.element&&!S.i.isTag(this.element,"table")&&this.onDelete(t)})).on(t.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([t.ow,t.editor],"scroll.resizer",(()=>{this.isShown&&!this.isResizeMode&&this.hide()})).on(t.ow,"keydown.resizer",this.onKeyDown).on(t.ow,"keyup.resizer",this.onKeyUp).on(t.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}onStartResizing(t,e){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=t,e.cancelable&&e.preventDefault(),e.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=e.clientX,this.startY=e.clientY,this.pointerX=e.clientX,this.pointerY=e.clientY;const{j:s}=this;s.e.fire("hidePopup"),s.lock(this.LOCK_KEY),s.e.on(s.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onEndResizing(){const{j:t}=this;t.unlock(),this.isResizeMode=!1,this.isAltMode=!1,t.synchronizeValues(),t.e.off(t.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onResize(t){if(this.isResizeMode){if(!this.element)return;let e,s;if(this.pointerX=t.clientX,this.pointerY=t.clientY,this.j.options.iframe){const i=this.getWorkplacePosition();e=t.clientX+i.left-this.startX,s=t.clientY+i.top-this.startY}else e=this.pointerX-this.startX,s=this.pointerY-this.startY;const i=this.handle.className;let r=0,o=0;const n=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===n||Array.isArray(n)&&S.i.isTag(this.element,n))?(e?(r=this.width+(i.match(/left/)?-1:1)*e,o=Math.round(r/this.ratio)):(o=this.height+(i.match(/top/)?-1:1)*s,r=Math.round(o*this.ratio)),r>(0,v.innerWidth)(this.j.editor,this.j.ow)&&(r=(0,v.innerWidth)(this.j.editor,this.j.ow),o=Math.round(r/this.ratio))):(r=this.width+(i.match(/left/)?-1:1)*e,o=this.height+(i.match(/top/)?-1:1)*s),r>this.j.o.resizer.min_width&&this.applySize(this.element,"width",this.rect.parentNode.offsetWidth>r?r:"100%"),o>this.j.o.resizer.min_height&&this.applySize(this.element,"height",o),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),t.stopImmediatePropagation()}}onKeyDown(t){this.isAltMode=t.key===u.KEY_ALT,!this.isAltMode&&this.isResizeMode&&this.onEndResizing()}onKeyUp(){this.isAltMode&&this.isResizeMode&&this.element&&(this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.startX=this.pointerX,this.startY=this.pointerY),this.isAltMode=!1}onClickOutside(t){if(this.isShown){if(!this.isResizeMode)return this.hide();t.stopImmediatePropagation(),this.onEndResizing()}}getWorkplacePosition(){return(0,v.offset)(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}applySize(t,e,s){const i=S.i.isImage(t)&&this.j.o.resizer.forImageChangeAttributes;i&&(0,v.attr)(t,e,s),i&&!t.style[e]||(0,v.css)(t,e,s)}onDelete(t){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(S.i.safeRemove(this.element),this.hide(),t.preventDefault()))}onChangeEditor(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),(0,v.$$)("iframe",this.j.editor).forEach(this.bind)}bind(t){if(!S.i.isHTMLElement(t)||!this.j.o.allowResizeTags.includes(t.tagName.toLowerCase())||(0,v.dataBind)(t,Jn))return;let e;if((0,v.dataBind)(t,Jn,!0),S.i.isTag(t,"iframe")){const s=t;S.i.isHTMLElement(t.parentNode)&&(0,v.attr)(t.parentNode,"-jodit_iframe_wrapper")?t=t.parentNode:(e=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),(0,v.attr)(e,"style",(0,v.attr)(t,"style")),(0,v.css)(e,{display:"inline-block"===t.style.display?"inline-block":"block",width:t.offsetWidth,height:t.offsetHeight}),t.parentNode&&t.parentNode.insertBefore(e,t),e.appendChild(t),this.j.e.on(e,"click",(()=>{(0,v.attr)(e,"data-jodit-wrapper_active",!0)})),t=e),this.j.e.off(t,"mousedown.select touchstart.select").on(t,"mousedown.select touchstart.select",(()=>{this.j.s.select(t)})).off(t,"changesize").on(t,"changesize",(()=>{s.setAttribute("width",t.offsetWidth+"px"),s.setAttribute("height",t.offsetHeight+"px")}))}this.j.e.on(t,"dragstart",this.hide),!u.IS_ES_NEXT&&u.IS_IE&&this.j.e.on(t,"mousedown",(e=>{S.i.isTag(t,"img")&&e.preventDefault()}))}showSizeViewer(t,e){this.j.o.resizer.showSize&&(this.sizeViewer.offsetWidth>t||this.sizeViewer.offsetHeight>e?this.hideSizeViewer():(this.sizeViewer.style.opacity="1",this.sizeViewer.textContent=`${t} x ${e}`,this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})))}show(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||((0,v.markOwner)(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=""+(0,v.css)(this.j.container,"zIndex")),this.updateSize())}hide(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,S.i.safeRemove(this.rect),(0,v.$$)("[data-jodit-wrapper_active='true']",this.j.editor).forEach((t=>(0,v.attr)(t,"data-jodit-wrapper_active",!1))))}beforeDestruct(t){this.hide(),j.TB.off("hideHelpers",this.hide),t.e.off(this.j.ow,".resizer").off(".resizer")}}(0,p.gn)([(0,y.watch)(":click")],Zn.prototype,"onEditorClick",null),(0,p.gn)([y.autobind],Zn.prototype,"onStartResizing",null),(0,p.gn)([y.autobind],Zn.prototype,"onEndResizing",null),(0,p.gn)([y.autobind],Zn.prototype,"onResize",null),(0,p.gn)([y.autobind],Zn.prototype,"onKeyDown",null),(0,p.gn)([y.autobind],Zn.prototype,"onKeyUp",null),(0,p.gn)([y.autobind],Zn.prototype,"onClickOutside",null),(0,p.gn)([(0,y.debounce)()],Zn.prototype,"onChangeEditor",null),(0,p.gn)([y.autobind],Zn.prototype,"bind",null),(0,p.gn)([y.autobind],Zn.prototype,"hide",null),j.pw.add("resizer",Zn);let Qn=class t extends E.u{className(){return"UISearch"}render(){return`<div>\n\t\t\t<div class="&__box">\n\t\t\t\t<div class="&__inputs">\n\t\t\t\t\t<input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>\n\t\t\t\t\t<input data-ref="replace" tabindex="0" placeholder="~Replace with~" type="text"/>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__counts">\n\t\t\t\t\t<span data-ref="counter-box">\n\t\t\t\t\t\t<span data-ref="current">0</span><span>/</span><span data-ref="count">0</span>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__buttons">\n\t\t\t\t\t<button data-ref="next" tabindex="0" type="button">${M.J.get("angle-down")}</button>\n\t\t\t\t\t<button data-ref="prev" tabindex="0" type="button">${M.J.get("angle-up")}</button>\n\t\t\t\t\t<button data-ref="cancel" tabindex="0" type="button">${M.J.get("cancel")}</button>\n\t\t\t\t\t<button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>`}get currentIndex(){return this._currentIndex}set currentIndex(t){this._currentIndex=t,this.currentBox.innerText=""+t}set count(t){this.countBox.innerText=""+t}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}constructor(t){super(t),this.selInfo=null,this._currentIndex=0,this.isOpened=!1;const{query:e,replace:s,cancel:i,next:r,prev:o,replaceBtn:n,current:a,count:l}=(0,v.refs)(this.container);this.queryInput=e,this.replaceInput=s,this.closeButton=i,this.replaceButton=n,this.currentBox=a,this.countBox=l,t.e.on(this.closeButton,"pointerdown",(()=>(this.close(),!1))).on(this.queryInput,"input",(()=>{this.currentIndex=0})).on(this.queryInput,"pointerdown",(()=>{t.s.isFocused()&&(t.s.removeMarkers(),this.selInfo=t.s.save())})).on(this.replaceButton,"pointerdown",(()=>(t.e.fire(this,"pressReplaceButton"),!1))).on(r,"pointerdown",(()=>(t.e.fire("searchNext"),!1))).on(o,"pointerdown",(()=>(t.e.fire("searchPrevious"),!1))).on(this.queryInput,"input",(()=>{this.setMod("empty-query",!(0,v.trim)(this.queryInput.value).length)})).on(this.queryInput,"keydown",this.j.async.debounce((e=>{e.key===u.KEY_ENTER?(e.preventDefault(),e.stopImmediatePropagation(),t.e.fire("searchNext")&&this.close()):t.e.fire(this,"needUpdateCounters")}),this.j.defaultTimeout))}onEditorKeyDown(t){if(!this.isOpened)return;const{j:e}=this;if(e.getRealMode()===u.MODE_WYSIWYG)switch(t.key){case u.KEY_ESC:this.close();break;case u.KEY_F3:this.queryInput.value&&(e.e.fire(t.shiftKey?"searchPrevious":"searchNext"),t.preventDefault())}}open(t,e,s=!1){this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",s);const i=t??""+(this.j.s.sel||"");i&&(this.queryInput.value=i),e&&(this.replaceInput.value=e),this.setMod("empty-query",!i.length),this.j.e.fire(this,"needUpdateCounters"),i?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),X.i.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(t){if(this.isOpened)if(this.setMod("sticky",t),t){const t=(0,v.position)(this.j.toolbarContainer);(0,v.css)(this.container,{top:t.top+t.height,left:t.left+t.width})}else(0,v.css)(this.container,{top:null,left:null})}};(0,p.gn)([(0,y.watch)([":keydown","queryInput:keydown"])],Qn.prototype,"onEditorKeyDown",null),(0,p.gn)([y.autobind],Qn.prototype,"open",null),(0,p.gn)([y.autobind],Qn.prototype,"close",null),(0,p.gn)([(0,y.watch)(":toggleSticky")],Qn.prototype,"calcSticky",null),Qn=(0,p.gn)([y.component],Qn);var ta=r(93163);class ea{constructor(t=ta.Q){this.searchIndex=t,this.queue=[],this.value=""}add(t){const e=(t.nodeValue??"").toLowerCase();if(!e.length)return;const s=this.value.length;this.queue.push({startIndex:s,endIndex:s+e.length,node:t}),this.value+=e}ranges(t,e=0){const s=[];let i=e,r=0,o=0;do{if([i,r]=this.searchIndex(t,this.value,i),-1!==i){let t,e,n=0,a=0;for(let s=o;this.queue.length>s;s+=1)if(!t&&this.queue[s].endIndex>i&&(t=this.queue[s].node,n=i-this.queue[s].startIndex),t&&this.queue[s].endIndex>=i+r){e=this.queue[s].node,a=i+r-this.queue[s].startIndex,o=s;break}t&&e&&s.push({startContainer:t,startOffset:n,endContainer:e,endOffset:a}),i+=r}}while(-1!==i);return 0===s.length?null:s}}const sa="jd-tmp-selection";function ia(t,e,s,i){if(null==t.startContainer.nodeValue||null==t.endContainer.nodeValue)return;const r=s.element("span",{[sa]:!0});S.i.markTemporary(r);const o=t.startContainer.nodeValue;let n=0;if(0!==t.startOffset){const e=s.text(o.substring(0,t.startOffset));t.startContainer.nodeValue=o.substring(t.startOffset),S.i.before(t.startContainer,e),t.startContainer===t.endContainer&&(n=t.startOffset,t.endOffset-=n),t.startOffset=0}const a=t.endContainer.nodeValue;if(t.endOffset!==a.length){const i=s.text(a.substring(t.endOffset));t.endContainer.nodeValue=a.substring(0,t.endOffset),S.i.after(t.endContainer,i);for(const s of e){if(s.startContainer!==t.endContainer)break;s.startContainer=i,s.startOffset=s.startOffset-t.endOffset-n,s.endContainer===t.endContainer&&(s.endContainer=i,s.endOffset=s.endOffset-t.endOffset-n)}t.endOffset=t.endContainer.nodeValue.length}let l=t.startContainer;do{if(!l)break;if(!S.i.isText(l)||S.i.isElement(c=l.parentNode)&&c.hasAttribute(sa)||S.i.wrap(l,r.cloneNode(),s),l===t.endContainer)break;let e=l.firstChild||l.nextSibling;if(!e){for(;l&&!l.nextSibling&&l!==i;)l=l.parentNode;e=l?.nextSibling}l=e}while(l&&l!==i);var c}function ra(t){return(0,go.$$)(`[${sa}]`,t)}function oa(t){ra(t).forEach((t=>S.i.unwrap(t)))}var na=r(27681),aa=r.n(na);f.D.prototype.useSearch=!0,f.D.prototype.search={lazyIdleTimeout:0},M.J.set("search",aa()),f.D.prototype.controls.find={tooltip:"Find",icon:"search",exec(t,e,{control:s}){switch(s.args&&s.args[0]){case"findPrevious":t.e.fire("searchPrevious");break;case"findNext":t.e.fire("searchNext");break;case"replace":t.execCommand("openReplaceDialog");break;default:t.execCommand("openSearchDialog")}},list:{search:"Find",findNext:"Find Next",findPrevious:"Find Previous",replace:"Replace"},childTemplate(t,e,s){return s}};class la extends Ut.S{constructor(){super(...arguments),this.buttons=[{name:"find",group:"search"}],this.previousQuery="",this.drawPromise=null,this.walker=null,this.walkerCount=null,this.cache={},this.wrapFrameRequest=0}get ui(){return new Qn(this.j)}async updateCounters(){this.ui.isOpened&&(this.ui.count=await this.calcCounts(this.ui.query))}onPressReplaceButton(){this.findAndReplace(this.ui.query),this.updateCounters()}tryScrollToElement(t){let e=X.i.closest(t,X.i.isElement,this.j.editor);e||(e=X.i.prev(t,X.i.isElement,this.j.editor)),e&&e!==this.j.editor&&(0,v.scrollIntoViewIfNeeded)(e,this.j.editor,this.j.ed)}async calcCounts(t){return(await this.findQueryBounds(t,"walkerCount")).length}async findQueryBounds(t,e){let s=this[e];return s&&s.break(),s=new X.b(this.j.async,{timeout:this.j.o.search.lazyIdleTimeout}),this[e]=s,this.find(s,t).catch((t=>[]))}async findAndReplace(t){const e=await this.findQueryBounds(t,"walker");if(!e.length)return!1;let s=this.findCurrentIndexInRanges(e,this.j.s.range);-1===s&&(s=0);const i=e[s];if(i){try{const e=this.j.ed.createRange();e.setStart(i.startContainer,i.startOffset),e.setEnd(i.endContainer,i.endOffset),e.deleteContents();const r=this.j.createInside.text(this.ui.replace);X.i.safeInsertNode(e,r),oa(this.j.editor),this.j.s.setCursorAfter(r),this.tryScrollToElement(r),this.cache={},this.ui.currentIndex=s,await this.findAndSelect(t,!0).catch((t=>null))}finally{this.j.synchronizeValues()}return this.j.e.fire("afterFindAndReplace"),!0}return!1}async findAndSelect(t,e){const s=await this.findQueryBounds(t,"walker");if(!s.length)return!1;this.previousQuery===t&&ra(this.j.editor).length||(this.drawPromise?.rejectCallback(),this.j.async.cancelAnimationFrame(this.wrapFrameRequest),oa(this.j.editor),this.drawPromise=this.drawSelectionRanges(s)),this.previousQuery=t;let i=this.ui.currentIndex-1;i=-1===i?0:e?i===s.length-1?0:i+1:0===i?s.length-1:i-1,this.ui.currentIndex=i+1;const r=s[i];if(r){const t=this.j.ed.createRange();try{t.setStart(r.startContainer,r.startOffset),t.setEnd(r.endContainer,r.endOffset),this.j.s.selectRange(t)}catch(t){}return this.tryScrollToElement(r.startContainer),await this.updateCounters(),await this.drawPromise,this.j.e.fire("afterFindAndSelect"),!0}return!1}findCurrentIndexInRanges(t,e){return t.findIndex((t=>t.startContainer===e.startContainer&&t.startOffset===e.startOffset&&t.endContainer===e.startContainer&&t.endOffset===e.endOffset))}async isValidCache(t){return(await t).every((t=>t.startContainer.isConnected&&(t.startContainer.nodeValue?.length??0)>=t.startOffset&&t.endContainer.isConnected&&(t.endContainer.nodeValue?.length??0)>=t.endOffset))}async find(t,e){if(!e.length)return[];const s=this.cache[e];return s&&await this.isValidCache(s)?s:(this.cache[e]=this.j.async.promise((s=>{const i=new ea(this.j.o.search.fuzzySearch);t.on("break",(()=>{s([])})).on("visit",(t=>(X.i.isText(t)&&i.add(t),!1))).on("end",(()=>{s(i.ranges(e)??[])})).setWork(this.j.editor)})),this.cache[e])}drawSelectionRanges(t){const{async:e,createInside:s,editor:i}=this.j;e.cancelAnimationFrame(this.wrapFrameRequest);const r=[...t];let o,n=0;return e.promise((t=>{const a=()=>{do{o=r.shift(),o&&ia(o,r,s,i),n+=1}while(o&&5>=n);r.length?this.wrapFrameRequest=e.requestAnimationFrame(a):t()};a()}))}onAfterGetValueFromEditor(t){t.value=t.value.replace(RegExp(`<span[^>]+${sa}[^>]+>(.*?)</span>`,"g"),"$1")}afterInit(t){if(t.o.useSearch){const e=this;t.e.on("beforeSetMode.search",(()=>{this.ui.close()})).on(this.ui,"afterClose",(()=>{oa(t.editor),this.ui.currentIndex=0,this.ui.count=0,this.cache={}})).on("click",(()=>{this.ui.currentIndex=0,oa(t.editor)})).on("change.search",(()=>{this.cache={}})).on("keydown.search mousedown.search",t.async.debounce((()=>{this.ui.selInfo&&(t.s.removeMarkers(),this.ui.selInfo=null),this.ui.isOpened&&this.updateCounters()}),t.defaultTimeout)).on("searchNext.search searchPrevious.search",(()=>(this.ui.isOpened||this.ui.open(),e.findAndSelect(e.ui.query,"searchNext"===t.e.current).catch((t=>{}))))).on("search.search",((t,s=!0)=>(this.ui.currentIndex=0,e.findAndSelect(t||"",s).catch((t=>{}))))),t.registerCommand("search",{exec(t,s,i=!0){return s&&e.findAndSelect(s,i).catch((t=>{})),!1}}).registerCommand("openSearchDialog",{exec(t,s){return e.ui.open(s),!1},hotkeys:["ctrl+f","cmd+f"]}).registerCommand("openReplaceDialog",{exec(s,i,r){return t.o.readonly||e.ui.open(i,r,!0),!1},hotkeys:["ctrl+h","cmd+h"]})}}beforeDestruct(t){this.ui.destruct(),t.e.off(".search")}}(0,p.gn)([y.cache],la.prototype,"ui",null),(0,p.gn)([(0,y.watch)("ui:needUpdateCounters")],la.prototype,"updateCounters",null),(0,p.gn)([(0,y.watch)("ui:pressReplaceButton")],la.prototype,"onPressReplaceButton",null),(0,p.gn)([y.autobind],la.prototype,"findQueryBounds",null),(0,p.gn)([y.autobind],la.prototype,"findAndReplace",null),(0,p.gn)([y.autobind],la.prototype,"findAndSelect",null),(0,p.gn)([y.autobind],la.prototype,"find",null),(0,p.gn)([(0,y.watch)(":afterGetValueFromEditor")],la.prototype,"onAfterGetValueFromEditor",null),j.pw.add("search",la),f.D.prototype.select={normalizeSelectionBeforeCutAndCopy:!1};class ca extends Ut.S{constructor(){super(...arguments),this.proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"]}afterInit(t){this.proxyEventsList.forEach((e=>{t.e.on(e+".select",this.onStartSelection)}))}beforeDestruct(t){this.proxyEventsList.forEach((e=>{t.e.on(e+".select",this.onStartSelection)}))}onStartSelection(t){const{j:e}=this;let s,i=t.target;for(;void 0===s&&i&&i!==e.editor;)s=e.e.fire((0,it.e)(t.type+"_"+i.nodeName.toLowerCase()),i,t),i=i.parentElement;"click"===t.type&&void 0===s&&i===e.editor&&e.e.fire(t.type+"Editor",i,t)}onOutsideClick(t){const e=t.target;S.i.up(e,(t=>t===this.j.editor))||E.u.closestElement(e,I)||this.j.e.fire("outsideClick",t)}beforeCommandCut(t){const{s:e}=this.j;if("cut"===t&&!e.isCollapsed()){const t=e.current();t&&S.i.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}onCopyNormalizeSelectionBound(t){const{s:e,editor:s,o:i}=this.j;i.select.normalizeSelectionBeforeCutAndCopy&&!e.isCollapsed()&&(!t||t.isTrusted&&S.i.isNode(t.target)&&S.i.isOrContains(s,t.target))&&this.jodit.s.expandSelection()}}(0,p.gn)([y.autobind],ca.prototype,"onStartSelection",null),(0,p.gn)([(0,y.watch)("ow:click")],ca.prototype,"onOutsideClick",null),(0,p.gn)([(0,y.watch)([":beforeCommand"])],ca.prototype,"beforeCommandCut",null),(0,p.gn)([(0,y.watch)([":copy",":cut"])],ca.prototype,"onCopyNormalizeSelectionBound",null),j.pw.add("select",ca),f.D.prototype.tableAllowCellSelection=!0;const ha="table_processor_observer",da="onMoveTableSelectCell";class ua extends Ut.S{constructor(){super(...arguments),this.requires=["select"],this.selectedCell=null,this.isSelectionMode=!1}get module(){return this.j.getInstance("Table",this.j.o)}afterInit(t){t.o.tableAllowCellSelection&&t.e.on("keydown.select-cells",(t=>{t.key===u.KEY_TAB&&this.unselectCells()})).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map((t=>t+".select-cells")).join(" "),this.onStartSelection).on("clickTr clickTbody",(()=>{const t=this.module.getAllSelectedCells().length;if(t)return t>1&&this.j.s.sel?.removeAllRanges(),!1}))}onStartSelection(t){if(this.j.o.readonly)return;if(this.unselectCells(),t===this.j.editor)return;const e=S.i.closest(t,"table",this.j.editor);return t&&e?(t.firstChild||t.appendChild(this.j.createInside.element("br")),this.isSelectionMode=!0,this.selectedCell=t,this.module.addSelection(t),this.j.e.on(e,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.onMove.bind(this,e),{label:da,timeout:this.j.defaultTimeout/2})).on(e,"mouseup.select-cells touchend.select-cells",this.onStopSelection.bind(this,e)),!1):void 0}onOutsideClick(){this.selectedCell=null,this.onRemoveSelection()}onChange(){this.j.isLocked||this.isSelectionMode||this.onRemoveSelection()}onMove(t,e){if(this.j.o.readonly&&!this.j.isLocked)return;if(this.j.isLockedNotBy(ha))return;const s=this.j.ed.elementFromPoint(e.clientX,e.clientY);if(!s)return;const i=S.i.closest(s,["td","th"],t);if(!i||!this.selectedCell)return;i!==this.selectedCell&&this.j.lock(ha),this.unselectCells();const r=Ts.getSelectedBound(t,[i,this.selectedCell]),o=Ts.formalMatrix(t);for(let t=r[0][0];r[1][0]>=t;t+=1)for(let e=r[0][1];r[1][1]>=e;e+=1)this.module.addSelection(o[t][e]);this.module.getAllSelectedCells().length>1&&this.j.s.sel?.removeAllRanges(),this.j.e.fire("hidePopup"),e.stopPropagation(),(()=>{const t=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>');i.appendChild(t),this.j.async.setTimeout((()=>{t.parentNode?.removeChild(t)}),this.j.defaultTimeout/5)})()}onRemoveSelection(t){if(!t?.buffer?.actionTrigger&&!this.selectedCell&&this.module.getAllSelectedCells().length)return this.j.unlock(),this.unselectCells(),void this.j.e.fire("hidePopup","cells");this.isSelectionMode=!1,this.selectedCell=null}onStopSelection(t,e){if(!this.selectedCell)return;this.isSelectionMode=!1,this.j.unlock();const s=this.j.ed.elementFromPoint(e.clientX,e.clientY);if(!s)return;const i=S.i.closest(s,["td","th"],t);if(!i)return;const r=S.i.closest(i,"table",t);if(r&&r!==t)return;const o=Ts.getSelectedBound(t,[i,this.selectedCell]),n=Ts.formalMatrix(t),a=n[o[1][0]][o[1][1]],l=n[o[0][0]][o[0][1]];this.j.e.fire("showPopup",t,(()=>{const t=(0,v.position)(l,this.j),e=(0,v.position)(a,this.j);return{left:t.left,top:t.top,width:e.left-t.left+e.width,height:e.top-t.top+e.height}}),"cells"),(0,v.$$)("table",this.j.editor).forEach((t=>{this.j.e.off(t,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")})),this.j.async.clearTimeout(da)}unselectCells(t){const e=this.module,s=e.getAllSelectedCells();s.length&&s.forEach((s=>{t&&t===s||e.removeSelection(s)}))}onExecCommand(t){if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(t)){t=t.replace("table","");const e=this.module.getAllSelectedCells();if(e.length){const[s]=e;if(!s)return;const i=S.i.closest(s,"table",this.j.editor);if(!i)return;switch(t){case"splitv":Ts.splitVertical(i,this.j);break;case"splitg":Ts.splitHorizontal(i,this.j);break;case"merge":Ts.mergeSelected(i,this.j);break;case"empty":e.forEach((t=>S.i.detach(t)));break;case"bin":S.i.safeRemove(i);break;case"binrow":new Set(e.map((t=>t.parentNode))).forEach((t=>{Ts.removeRow(i,t.rowIndex)}));break;case"bincolumn":{const t=new Set;e.reduce(((e,s)=>(t.has(s.cellIndex)||(e.push(s),t.add(s.cellIndex)),e)),[]).forEach((t=>{Ts.removeColumn(i,t.cellIndex)}))}break;case"addcolumnafter":case"addcolumnbefore":Ts.appendColumn(i,s.cellIndex,"addcolumnafter"===t,this.j.createInside);break;case"addrowafter":case"addrowbefore":Ts.appendRow(i,s.parentNode,"addrowafter"===t,this.j.createInside)}}return!1}}onAfterCommand(t){/^justify/.test(t)&&this.module.getAllSelectedCells().forEach((e=>(0,v.alignElement)(t,e)))}beforeDestruct(t){this.onRemoveSelection(),t.e.off(".select-cells")}}(0,p.gn)([y.autobind],ua.prototype,"onStartSelection",null),(0,p.gn)([(0,y.watch)(":outsideClick")],ua.prototype,"onOutsideClick",null),(0,p.gn)([(0,y.watch)(":change")],ua.prototype,"onChange",null),(0,p.gn)([y.autobind],ua.prototype,"onRemoveSelection",null),(0,p.gn)([y.autobind],ua.prototype,"onStopSelection",null),(0,p.gn)([y.autobind],ua.prototype,"onExecCommand",null),(0,p.gn)([y.autobind],ua.prototype,"onAfterCommand",null),j.pw.add("selectCells",ua);var pa=r(61817);f.D.prototype.minWidth=200,f.D.prototype.maxWidth="100%",f.D.prototype.minHeight=200,f.D.prototype.maxHeight="auto",f.D.prototype.saveHeightInStorage=!1;let fa=class t extends kr.S{constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}afterInit(t){t.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(t.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__initialize()}__initialize(){const{j:t}=this;if(t.o.inline)return;let{height:e}=t.o;if(t.o.saveHeightInStorage&&"auto"!==e){const s=t.storage.get("height");s&&(e=s)}(0,ct.i)(t.editor,{minHeight:"100%"}),(0,ct.i)(t.container,{minHeight:t.o.minHeight,maxHeight:t.o.maxHeight,minWidth:t.o.minWidth,maxWidth:t.o.maxWidth}),this.__setHeight(e),this.__setWidth(t.o.width)}__setHeight(t){if((0,pa.h)(t)){const{minHeight:e,maxHeight:s}=this.j.o;(0,pa.h)(e)&&e>t&&(t=e),(0,pa.h)(s)&&t>s&&(t=s)}(0,ct.i)(this.j.container,"height",t),this.j.o.saveHeightInStorage&&this.j.storage.set("height",t),this.__resizeWorkspaceImd()}__setWidth(t){if((0,pa.h)(t)){const{minWidth:e,maxWidth:s}=this.j.o;(0,pa.h)(e)&&e>t&&(t=e),(0,pa.h)(s)&&t>s&&(t=s)}(0,ct.i)(this.j.container,"width",t),this.__resizeWorkspaceImd()}__getNotWorkHeight(){return(this.j.toolbarContainer?.offsetHeight||0)+(this.j.statusbar?.getHeight()||0)+2}__resizeWorkspaceImd(){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline)return;if(!this.j.container||!this.j.container.parentNode)return;const t=((0,ct.i)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,pa.h)(t)&&t>0&&([this.j.workplace,this.j.iframe,this.j.editor].map((e=>{e&&(0,ct.i)(e,"minHeight",t)})),this.j.e.fire("setMinHeight",t)),(0,pa.h)(this.j.o.maxHeight)){const t=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.iframe,this.j.editor].map((e=>{e&&(0,ct.i)(e,"maxHeight",t)})),this.j.e.fire("setMaxHeight",t)}this.j.container&&(0,ct.i)(this.j.workplace,"height","auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto")}beforeDestruct(t){t.e.off(t.ow,"load.size",this.__resizeWorkspaces).off(".size")}};(0,p.gn)([(0,y.throttle)()],fa.prototype,"__initialize",null),(0,p.gn)([y.autobind],fa.prototype,"__resizeWorkspaceImd",null),fa=(0,p.gn)([y.autobind],fa),j.pw.add("size",fa);class ma{constructor(t,e,s,i){this.jodit=t,this.container=e,this.toWYSIWYG=s,this.fromWYSIWYG=i,this.className="",this.isReady=!1}get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(t){this.isReady?t():this.j.events?.on(this,"ready",t)}}class ga extends ma{constructor(){super(...arguments),this.autosize=this.j.async.debounce((()=>{this.instance.style.height="auto",this.instance.style.height=this.instance.scrollHeight+"px"}),this.j.defaultTimeout)}init(t){this.instance=t.c.element("textarea",{class:"jodit-source__mirror"}),this.container.appendChild(this.instance),t.e.on(this.instance,"mousedown keydown touchstart input",t.async.debounce(this.toWYSIWYG,t.defaultTimeout)).on("setMinHeight.source",(t=>{(0,ct.i)(this.instance,"minHeight",t)})).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",(e=>{t.e.fire(e.type,e)})),this.autosize(),this.onReady()}destruct(){S.i.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(t){this.instance.value=t}insertRaw(t){const e=this.getValue();if(0>this.getSelectionStart())this.setValue(e+t);else{const s=this.getSelectionStart(),i=this.getSelectionEnd();this.setValue(e.substring(0,s)+t+e.substring(i,e.length))}}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(t,e=t){this.instance.setSelectionRange(t,e)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(t){this.instance.setAttribute("placeholder",t)}setReadOnly(t){t?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}selectAll(){this.instance.select()}replaceUndoManager(){const{history:t}=this.jodit;this.j.e.on(this.instance,"keydown",(e=>{if((e.ctrlKey||e.metaKey)&&"z"===e.key)return e.shiftKey?t.redo():t.undo(),this.setSelectionRange(this.getValue().length),!1}))}}class va extends ma{constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=t=>{this.j.e.fire("blur",t)},this.proxyOnFocus=t=>{this.j.e.fire("focus",t)},this.proxyOnMouseDown=t=>{this.j.e.fire("mousedown",t)}}aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(t){return this.instance.session.getLine(t).length}getLastColumnIndices(){const t=this.instance.session.getLength(),e=[];let s=0;for(let i=0;t>i;i++)s+=this.getLastColumnIndex(i),i>0&&(s+=1),e[i]=s;return e}getRowColumnIndices(t){const e=this.getLastColumnIndices();if(e[0]>=t)return{row:0,column:t};let s=1;for(let i=1;e.length>i;i++)t>e[i]&&(s=i+1);return{row:s,column:t-e[s-1]-1}}setSelectionRangeIndices(t,e){const s=this.getRowColumnIndices(t),i=this.getRowColumnIndices(e);this.instance.getSelection().setSelectionRange({start:s,end:i})}getIndexByRowColumn(t,e){return this.getLastColumnIndices()[t]-this.getLastColumnIndex(t)+e}init(t){const e=()=>{if(void 0!==this.instance||!this.aceExists())return;const e=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(e),this.instance=t.ow.ace.edit(e),this.instance.setTheme(t.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(t.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(t.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(t.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",t.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),t.getRealMode()!==u.MODE_WYSIWYG&&this.setValue(this.getValue());const s=this.j.async.debounce((()=>{t.isInDestruct||(this.instance.setOption("maxLines","auto"!==t.o.height?t.workplace.offsetHeight/this.instance.renderer.lineHeight:1/0),this.instance.resize())}),2*this.j.defaultTimeout);t.e.on("afterResize afterSetMode",s),s(),this.onReady()};t.e.on("afterSetMode",(()=>{t.getRealMode()!==u.MODE_SOURCE&&t.getMode()!==u.MODE_SPLIT||(this.fromWYSIWYG(),e())})),e(),this.aceExists()||(0,v.loadNext)(t,t.o.sourceEditorCDNUrlsJS).then((()=>{t.isInDestruct||e()})).catch((()=>null))}destruct(){this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),this.j?.events?.off("aceInited.source")}setValue(t){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){const e=this.j.e.fire("beautifyHTML",t);(0,v.isString)(e)&&(t=e)}this.instance.setValue(t),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(t){this.instance.setReadOnly(t)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){const t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.start.row,t.start.column)}getSelectionEnd(){const t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.end.row,t.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(t){const e=this.instance.selection.getCursor(),s=this.instance.session.insert(e,t);this.instance.selection.setRange({start:e,end:s},!1)}setSelectionRange(t,e){this.setSelectionRangeIndices(t,e)}setPlaceHolder(t){}replaceUndoManager(){const{history:t}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec(){t.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec(){t.redo()}})}}function ba(t,e,s,i,r){let o;if((0,v.isFunction)(t))o=t(e);else switch(t){case"ace":if(!e.o.shadowRoot){o=new va(e,s,i,r);break}default:o=new ga(e,s,i,r)}return o.init(e),o.onReadyAlways((()=>{o.setReadOnly(e.o.readonly)})),o}var ya=r(61097),wa=r.n(ya);f.D.prototype.beautifyHTML=!u.IS_IE,f.D.prototype.sourceEditor="ace",f.D.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},f.D.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],f.D.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],M.J.set("source",wa()),f.D.prototype.controls.source={mode:u.MODE_SPLIT,exec(t){t.toggleMode()},isActive(t){return t.getRealMode()===u.MODE_SOURCE},tooltip:"Change mode"};class _a extends Ut.S{constructor(){super(...arguments),this.buttons=[{name:"source",group:"source"}],this.__lock=!1,this.__oldMirrorValue="",this.tempMarkerStart="{start-jodit-selection}",this.tempMarkerStartReg=/{start-jodit-selection}/g,this.tempMarkerEnd="{end-jodit-selection}",this.tempMarkerEndReg=/{end-jodit-selection}/g,this.getSelectionStart=()=>this.sourceEditor?.getSelectionStart()??0,this.getSelectionEnd=()=>this.sourceEditor?.getSelectionEnd()??0}onInsertHTML(t){if(!this.j.o.readonly&&!this.j.isEditorMode())return this.sourceEditor?.insertRaw(t),this.toWYSIWYG(),!1}fromWYSIWYG(t=!1){if(!this.__lock||!0===t){this.__lock=!0;const t=this.j.getEditorValue(!1,u.SOURCE_CONSUMER);t!==this.getMirrorValue()&&this.setMirrorValue(t),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;const t=this.getMirrorValue();t!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=t,this.__lock=!1,this.__oldMirrorValue=t)}getNormalPosition(t,e){for(e=e.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,(t=>{let e="";for(let s=0;t.length>s;s+=1)e+=u.INVISIBLE_SPACE;return e}));t>0&&e[t]===u.INVISIBLE_SPACE;)t--;let s=t;for(;s>0;){if(s--,"<"===e[s]&&void 0!==e[s+1]&&e[s+1].match(/[\w/]+/i))return s;if(">"===e[s])return t}return t}clnInv(t){return t.replace(u.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(t){if("selectall"===t.toLowerCase()&&this.j.getRealMode()===u.MODE_SOURCE)return this.sourceEditor?.selectAll(),!1}getMirrorValue(){return this.sourceEditor?.getValue()||""}setMirrorValue(t){this.sourceEditor?.setValue(t)}setFocusToMirror(){this.sourceEditor?.focus()}saveSelection(){if(this.j.getRealMode()===u.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;const t=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){const e=this.j.s.marker(!0),s=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(t.substring(0,s)+this.clnInv(e.outerHTML)+t.substring(s))}else{const e=this.j.s.marker(!0),s=this.j.s.marker(!1),i=this.getNormalPosition(this.getSelectionStart(),t),r=this.getNormalPosition(this.getSelectionEnd(),t);this.setMirrorValue(t.slice(0,i)+this.clnInv(e.outerHTML)+t.slice(i,r)+this.clnInv(s.outerHTML)+t.slice(r))}this.toWYSIWYG()}}removeSelection(){if(this.j.getRealMode()===u.MODE_WYSIWYG)return this.__lock=!0,this.j.s.restore(),void(this.__lock=!1);let t=this.getMirrorValue(),e=0,s=0;try{if(t=t.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){const e=this.j.e.fire("beautifyHTML",t);(0,v.isString)(e)&&(t=e)}if(e=t.indexOf(this.tempMarkerStart),s=e,t=t.replace(this.tempMarkerStartReg,""),-1!==e){const e=t.indexOf(this.tempMarkerEnd);-1!==e&&(s=e)}t=t.replace(this.tempMarkerEndReg,"")}finally{t=t.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(t),this.setMirrorSelectionRange(e,s),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(t,e){this.sourceEditor?.setSelectionRange(t,e)}onReadonlyReact(){this.sourceEditor?.setReadOnly(this.j.o.readonly)}afterInit(t){if(this.mirrorContainer=t.c.div("jodit-source"),t.workplace.appendChild(this.mirrorContainer),t.e.on("afterAddPlace changePlace afterInit",(()=>{t.workplace.appendChild(this.mirrorContainer)})),this.sourceEditor=ba("area",t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),t.e.on(t.ow,"keydown",(t=>{t.key===u.KEY_ESC&&this.sourceEditor?.isFocused&&this.sourceEditor.blur()})),this.onReadonlyReact(),t.e.on("placeholder.source",(t=>{this.sourceEditor?.setPlaceHolder(t)})).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",(t=>t)),t.o.beautifyHTML){const e=()=>{if(t.isInDestruct)return!1;const e=t.ow.html_beautify;return!(!e||t.isInDestruct||(t.events?.off("beautifyHTML").on("beautifyHTML",(t=>e(t))),0))};e()||(0,v.loadNext)(t,t.o.beautifyHTMLCDNUrlsJS).then(e)}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(t)}syncValueFromWYSIWYG(t=!1){const e=this.j;e.getMode()!==u.MODE_SPLIT&&e.getMode()!==u.MODE_SOURCE||this.fromWYSIWYG(t)}initSourceEditor(t){if("area"!==t.o.sourceEditor){const e=ba(t.o.sourceEditor,t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);e.onReadyAlways((()=>{this.sourceEditor?.destruct(),this.sourceEditor=e,this.syncValueFromWYSIWYG(!0),t.events?.fire("sourceEditorReady",t)}))}else this.sourceEditor?.onReadyAlways((()=>{this.syncValueFromWYSIWYG(!0),t.events?.fire("sourceEditorReady",t)}))}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),S.i.safeRemove(this.mirrorContainer)}}(0,p.gn)([(0,y.watch)(":insertHTML.source")],_a.prototype,"onInsertHTML",null),(0,p.gn)([y.autobind],_a.prototype,"fromWYSIWYG",null),(0,p.gn)([y.autobind],_a.prototype,"toWYSIWYG",null),(0,p.gn)([y.autobind],_a.prototype,"getNormalPosition",null),(0,p.gn)([(0,y.watch)(":beforeCommand.source")],_a.prototype,"onSelectAll",null),(0,p.gn)([(0,y.watch)(":beforeSetMode.source")],_a.prototype,"saveSelection",null),(0,p.gn)([(0,y.watch)(":afterSetMode.source")],_a.prototype,"removeSelection",null),(0,p.gn)([y.autobind],_a.prototype,"setMirrorSelectionRange",null),(0,p.gn)([(0,y.watch)(":readonly.source")],_a.prototype,"onReadonlyReact",null),(0,p.gn)([y.autobind],_a.prototype,"syncValueFromWYSIWYG",null),j.pw.add("source",_a);var Ca=r(31398),Sa=r.n(Ca);f.D.prototype.spellcheck=!1,M.J.set("spellcheck",Sa()),f.D.prototype.controls.spellcheck={isActive:t=>t.o.spellcheck,icon:Sa(),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"};class Ea extends Ut.S{constructor(t){super(t),this.buttons=[{group:"state",name:"spellcheck"}],(0,j.xl)(l)}afterInit(t){t.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),t.registerCommand("toggleSpellcheck",(()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")}))}toggleSpellcheck(){(0,yt.L)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(t){}}(0,p.gn)([y.autobind],Ea.prototype,"toggleSpellcheck",null),j.pw.add("spellcheck",Ea),f.D.prototype.showCharsCounter=!0,f.D.prototype.countHTMLChars=!1,f.D.prototype.showWordsCounter=!0,j.pw.add("stat",class xa extends kr.S{constructor(){super(...arguments),this.charCounter=null,this.wordCounter=null,this.reInit=()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()},this.calc=this.j.async.throttle((()=>{const t=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){const e=this.j.o.countHTMLChars?this.j.value:t.replace((0,u.SPACE_REG_EXP)(),"");this.charCounter.textContent=this.j.i18n("Chars: %d",e.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",t.replace((0,u.INVISIBLE_SPACE_REG_EXP)(),"").split((0,u.SPACE_REG_EXP)()).filter((t=>t.length)).length))}),this.j.defaultTimeout)}afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){S.i.safeRemove(this.charCounter),S.i.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}}),f.D.prototype.toolbarSticky=!0,f.D.prototype.toolbarDisableStickyForMobile=!0,f.D.prototype.toolbarStickyOffset=0;class ja extends kr.S{constructor(){super(...arguments),this.isToolbarSticked=!1,this.createDummy=t=>{u.IS_ES_NEXT||!u.IS_IE||this.dummyBox||(this.dummyBox=this.j.c.div(),this.dummyBox.classList.add("jodit_sticky-dummy_toolbar"),this.j.container.insertBefore(this.dummyBox,t))},this.addSticky=t=>{this.isToolbarSticked||(this.createDummy(t),this.j.container.classList.add("jodit_sticky"),this.isToolbarSticked=!0),(0,v.css)(t,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),!u.IS_ES_NEXT&&u.IS_IE&&this.dummyBox&&(0,v.css)(this.dummyBox,{height:t.offsetHeight})},this.removeSticky=t=>{this.isToolbarSticked&&((0,v.css)(t,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.isToolbarSticked=!1)}}afterInit(t){t.e.on(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.onScroll).on("getStickyState.sticky",(()=>this.isToolbarSticked))}onScroll(){const{jodit:t}=this,e=t.ow.pageYOffset||t.od.documentElement&&t.od.documentElement.scrollTop||0,s=(0,v.offset)(t.container,t,t.od,!0),i=t.getMode()===u.MODE_WYSIWYG&&e+t.o.toolbarStickyOffset>s.top&&s.top+s.height>e+t.o.toolbarStickyOffset&&!(t.o.toolbarDisableStickyForMobile&&this.isMobile());if(t.o.toolbarSticky&&!0===t.o.toolbar&&this.isToolbarSticked!==i){const e=t.toolbarContainer;e&&(i?this.addSticky(e):this.removeSticky(e)),t.e.fire("toggleSticky",i)}}isMobile(){return this.j&&this.j.options&&this.j.container&&this.j.o.sizeSM>=this.j.container.offsetWidth}beforeDestruct(t){this.dummyBox&&S.i.safeRemove(this.dummyBox),t.e.off(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.onScroll).off(".sticky")}}(0,p.gn)([(0,y.throttle)()],ja.prototype,"onScroll",null),j.pw.add("sticky",ja);var Ia=r(1296),ka=r.n(Ia);f.D.prototype.usePopupForSpecialCharacters=!1,f.D.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],M.J.set("symbols",ka()),f.D.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(t,e,s,i){const r=t.e.fire("generateSpecialCharactersTable.symbols");if(r){if(t.o.usePopupForSpecialCharacters){const e=t.c.div();return e.classList.add("jodit-symbols"),e.appendChild(r),t.e.on(r,"close_dialog",i),e}{t.alert(r,"Select Special Character",void 0,"jodit-symbols").bindDestruct(t);const e=r.querySelector("a");e&&e.focus()}}}},j.pw.add("symbols",class Ta extends kr.S{constructor(t){super(t),this.buttons=[{name:"symbols",group:"insert"}],this.countInRow=17,(0,j.xl)(c)}afterInit(t){t.e.on("generateSpecialCharactersTable.symbols",(()=>{const e=t.c.fromHTML('<div class="jodit-symbols__container">\n\t\t\t\t\t\t<div class="jodit-symbols__container_table">\n\t\t\t\t\t\t\t<table class="jodit-symbols__table"><tbody></tbody></table>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="jodit-symbols__container_preview">\n\t\t\t\t\t\t\t<div class="jodit-symbols__preview"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>'),s=e.querySelector(".jodit-symbols__preview"),i=e.querySelector("table").tBodies[0],r=[];for(let e=0;t.o.specialCharacters.length>e;){const s=t.c.element("tr");for(let i=0;this.countInRow>i&&t.o.specialCharacters.length>e;i+=1,e+=1){const o=t.c.element("td"),n=t.c.fromHTML(`<a\n\t\t\t\t\t\t\t\t\tdata-index="${e}"\n\t\t\t\t\t\t\t\t\tdata-index-j="${i}"\n\t\t\t\t\t\t\t\t\trole="option"\n\t\t\t\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\t\t>${t.o.specialCharacters[e]}</a>`);r.push(n),o.appendChild(n),s.appendChild(o)}i.appendChild(s)}const o=this;return t.e.on(r,"focus",(function(){s.innerHTML=this.innerHTML})).on(r,"mousedown",(function(e){S.i.isTag(this,"a")&&(t.s.focus(),t.s.insertHTML(this.innerHTML),t.e.fire(this,"close_dialog"),e&&e.preventDefault(),e&&e.stopImmediatePropagation())})).on(r,"mouseenter",(function(){S.i.isTag(this,"a")&&this.focus()})).on(r,"keydown",(e=>{const s=e.target;if(S.i.isTag(s,"a")){const i=parseInt((0,k.attr)(s,"-index")||"0",10),n=parseInt((0,k.attr)(s,"data-index-j")||"0",10);let a;switch(e.key){case u.KEY_UP:case u.KEY_DOWN:a=e.key===u.KEY_UP?i-o.countInRow:i+o.countInRow,void 0===r[a]&&(a=e.key===u.KEY_UP?Math.floor(r.length/o.countInRow)*o.countInRow+n:n,a>r.length-1&&(a-=o.countInRow)),r[a]&&r[a].focus();break;case u.KEY_RIGHT:case u.KEY_LEFT:a=e.key===u.KEY_LEFT?i-1:i+1,void 0===r[a]&&(a=e.key===u.KEY_LEFT?r.length-1:0),r[a]&&r[a].focus();break;case u.KEY_ENTER:t.e.fire(s,"mousedown"),e.stopImmediatePropagation(),e.preventDefault()}}})),e}))}beforeDestruct(t){t.e.off("generateSpecialCharactersTable.symbols")}}),f.D.prototype.tab={tabInsideLiInsertNewList:!0};class La extends Ut.S{afterInit(t){}__onTab(t){if(t.key===u.KEY_TAB&&this.__onShift(t.shiftKey))return!1}__onCommand(t){if(("indent"===t||"outdent"===t)&&this.__onShift("outdent"===t))return!1}__onShift(t){const e=((t,e=!1)=>{if(!t.o.tab.tabInsideLiInsertNewList)return!1;const[s,i]=(t=>{const e=t.createInside.fake(),s=t.createInside.fake(),i=t.s.range.cloneRange();i.collapse(!0),i.insertNode(e);const r=t.s.range.cloneRange();return r.collapse(!1),r.insertNode(s),[e,s]})(t);try{const i=((t,e,s)=>{const i=S.i.closest(e,"li",t.editor);return!!i&&!(!s&&!S.i.isLeaf(i.previousElementSibling))&&!(s&&!S.i.closest(i,"li",t.editor))&&i})(t,s,e);if(!i)return!1;if(!((t,e,s)=>{const i=S.i.closest(s,"li",e.editor);return!(!i||i!==t&&!t.contains(i))})(i,t,s))return!1;const r=S.i.closest(i,["ol","ul"],t.editor);return!(!r||e&&!S.i.closest(r,"li",t.editor)||(e?((t,e,s)=>{const i=S.i.closest(e,"li",t.editor),r=Array.from(e.children).filter((t=>S.i.isLeaf(t)));S.i.after(i,s);const o=r.indexOf(s);if(0!==o&&1!==r.length||S.i.safeRemove(e),o!==r.length-1){const t=e.cloneNode();S.i.append(s,t);for(let e=o+1;r.length>e;e+=1)S.i.append(t,r[e])}})(t,r,i):((t,e,s)=>{const i=s.previousElementSibling,r=i.lastElementChild,o=S.i.isTag(r,e.tagName)?r:t.createInside.element(e.tagName,Array.from(e.attributes).reduce(((t,e)=>(t[e.name]=e.value,t)),{}));o.appendChild(s),r!==o&&i.appendChild(o)})(t,r,i),0))}finally{const e=t.s.createRange();e.setStartAfter(s),e.setEndBefore(i),t.s.selectRange(e),S.i.safeRemove(s),S.i.safeRemove(i)}return!1})(this.j,t);return e&&this.j.e.fire("afterTab",t),e}beforeDestruct(t){}}(0,p.gn)([(0,y.watch)(":keydown.tab")],La.prototype,"__onTab",null),(0,p.gn)([(0,y.watch)(":beforeCommand.tab")],La.prototype,"__onCommand",null),j.pw.add("tab",La);var Ma=r(18508),Pa=r.n(Ma);f.D.prototype.table={selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},M.J.set("table",Pa()),f.D.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup(t,e,s,i,r){const o=s.data&&s.data.rows?s.data.rows:10,n=s.data&&s.data.cols?s.data.cols:10,a=t.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+(()=>{if(!t.o.table.useExtraClassesOptions)return"";const e=[];if(s.data){const t=s.data.classList;Object.keys(t).forEach((s=>{e.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${s}" type="checkbox"/>${t[s]}</label>`)}))}return e.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> &times; <span>1</span></label></form>'),l=a.querySelectorAll("span")[0],c=a.querySelectorAll("span")[1],h=a.querySelector(".jodit-form__container"),d=a.querySelector(".jodit-form__options"),u=[],p=o*n;for(let e=0;p>e;e+=1)u[e]||u.push(t.c.element("span",{dataIndex:e}));if(t.e.on(h,"mousemove",((t,e)=>{const s=t.target;if(!X.i.isTag(s,"span"))return;const i=void 0===e||isNaN(e)?parseInt((0,k.attr)(s,"-index")||"0",10):e||0,r=Math.ceil((i+1)/n),o=i%n+1;for(let t=0;u.length>t;t+=1)u[t].className=t%n+1>o||Math.ceil((t+1)/n)>r?"":"jodit_hovered";c.textContent=""+o,l.textContent=""+r})).on(h,"touchstart mousedown",(e=>{const s=e.target;if(e.preventDefault(),e.stopImmediatePropagation(),!X.i.isTag(s,"span"))return;const r=parseInt((0,k.attr)(s,"-index")||"0",10),o=Math.ceil((r+1)/n),a=r%n+1,l=t.createInside,c=l.element("tbody"),h=l.element("table");h.appendChild(c);let u,p,f=null;for(let t=1;o>=t;t+=1){u=l.element("tr");for(let t=1;a>=t;t+=1)p=l.element("td"),f||(f=p),(0,v.css)(p,"width",(100/a).toFixed(4)+"%"),p.appendChild(l.element("br")),u.appendChild(l.text("\n")),u.appendChild(l.text("\t")),u.appendChild(p);c.appendChild(l.text("\n")),c.appendChild(u)}(0,v.$$)("input[type=checkbox]:checked",d).forEach((t=>{t.value.split(/[\s]+/).forEach((t=>{h.classList.add(t)}))})),t.editor.firstChild&&t.s.insertNode(l.text("\n"),!1,!1),t.s.insertNode(h,!1),f&&(t.s.setCursorIn(f),(0,v.scrollIntoViewIfNeeded)(f,t.editor,t.ed)),i()})),r&&r.parentElement){for(let e=0;o>e;e+=1){const s=t.c.div();for(let t=0;n>t;t+=1)s.appendChild(u[e*n+t]);h.appendChild(s)}u[0]&&(u[0].className="hovered")}return a},tooltip:"Insert table"},j.pw.add("table",(t=>{t.registerButton({name:"table",group:"insert"})})),j.pw.add("tableKeyboardNavigation",(t=>{t.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",(e=>{let s,i;if(e.key!==u.KEY_TAB&&e.key!==u.KEY_LEFT&&e.key!==u.KEY_RIGHT&&e.key!==u.KEY_UP&&e.key!==u.KEY_DOWN)return;{if(s=t.s.current(),i=S.i.up(s,(t=>t&&t.nodeName&&/^td|th$/i.test(t.nodeName)),t.editor),!i)return;const r=t.s.range;if(e.key!==u.KEY_TAB&&s!==i&&((e.key===u.KEY_LEFT||e.key===u.KEY_UP)&&(S.i.prev(s,(t=>e.key===u.KEY_UP?S.i.isTag(t,"br"):!!t),i)||e.key!==u.KEY_UP&&S.i.isText(s)&&0!==r.startOffset)||(e.key===u.KEY_RIGHT||e.key===u.KEY_DOWN)&&(S.i.next(s,(t=>e.key===u.KEY_DOWN?S.i.isTag(t,"br"):!!t),i)||e.key!==u.KEY_DOWN&&S.i.isText(s)&&s.nodeValue&&r.startOffset!==s.nodeValue.length)))return}const r=S.i.up(i,(t=>t&&/^table$/i.test(t.nodeName)),t.editor);let o=null;switch(e.key){case u.KEY_TAB:case u.KEY_LEFT:{const s=e.key===u.KEY_LEFT||e.shiftKey?"prev":"next";o=S.i[s](i,(t=>t&&/^td|th$/i.test(t.tagName)),r),o||(Ts.appendRow(r,"next"!==s&&r.querySelector("tr"),"next"===s,t.createInside),o=S.i[s](i,S.i.isCell,r));break}case u.KEY_UP:case u.KEY_DOWN:{let t=0,s=0;const n=Ts.formalMatrix(r,((e,r,o)=>{e===i&&(t=r,s=o)}));e.key===u.KEY_UP?void 0!==n[t-1]&&(o=n[t-1][s]):void 0!==n[t+1]&&(o=n[t+1][s])}}if(o){if(o.firstChild)e.key===u.KEY_TAB?t.s.select(o,!0):t.s.setCursorIn(o,e.key===u.KEY_RIGHT||e.key===u.KEY_DOWN);else{const e=t.createInside.element("br");o.appendChild(e),t.s.setCursorBefore(e)}return!1}}))}));var Na=r(97627);M.J.set("video",r.n(Na)()),f.D.prototype.controls.video={popup(t,e,s,i){const r=new _t(t,[new It(t,[new vt(t,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new It(t,[U(t,"","Insert","primary").onAction((()=>r.submit()))])]),o=new _t(t,[new It(t,[new St(t,{name:"code",required:!0,label:"Embed code"})]),new It(t,[U(t,"","Insert","primary").onAction((()=>o.submit()))])]),n=[],a=e=>{t.s.restore(),t.s.insertHTML(e),i()};return t.s.save(),n.push({icon:"link",name:"Link",content:r.container},{icon:"source",name:"Code",content:o.container}),r.onSubmit((t=>{a((0,v.convertMediaUrlToVideoEmbed)(t.url))})),o.onSubmit((t=>{a(t.code)})),eo(t,n)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"},j.pw.add("video",(t=>{t.registerButton({name:"video",group:"media"})})),f.D.prototype.wrapNodes={exclude:["hr","style","br"],emptyBlockAfterInit:!0};class za extends Ut.S{constructor(){super(...arguments),this.isSuitableStart=t=>X.i.isText(t)&&(0,T.H)(t.nodeValue)&&/[^\s]/.test(t.nodeValue)||this.isNotClosed(t)&&!X.i.isTemporary(t),this.isSuitable=t=>X.i.isText(t)||this.isNotClosed(t),this.isNotClosed=t=>X.i.isElement(t)&&!(X.i.isBlock(t)||X.i.isTag(t,this.j.o.wrapNodes.exclude))}afterInit(t){"br"!==t.o.enter.toLowerCase()&&t.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn",this.postProcessSetEditorValue)}beforeDestruct(t){t.e.off(".wtn")}postProcessSetEditorValue(){const{jodit:t}=this;if(!t.isEditorMode())return;let e=t.editor.firstChild,s=!1;for(;e;){if(e=this.checkAloneListLeaf(e,t),this.isSuitableStart(e)){s||t.s.save(),s=!0;const i=t.createInside.element(t.o.enter);for(X.i.before(e,i);e&&this.isSuitable(e);){const t=e.nextSibling;i.appendChild(e),e=t}i.normalize(),e=i}e=e&&e.nextSibling}s&&(t.s.restore(),"afterInit"===t.e.current&&t.e.fire("internalChange"))}checkAloneListLeaf(t,e){let s=t,i=t;do{if(!X.i.isElement(i)||!X.i.isLeaf(i)||X.i.isList(i.parentElement))break;{const t=X.i.findNotEmptySibling(i,!1);X.i.isTag(s,"ul")?s.appendChild(i):s=X.i.wrap(i,"ul",e.createInside),i=t}}while(i);return s}preprocessInput(){const{jodit:t}=this,e="afterInit"===t.e.current;if(!t.isEditorMode()||t.editor.firstChild||!t.o.wrapNodes.emptyBlockAfterInit&&e)return;const s=t.createInside.element(t.o.enter),i=t.createInside.element("br");X.i.append(s,i),X.i.append(t.editor,s),t.s.isFocused()&&t.s.setCursorBefore(i),t.e.fire("internalChange")}}(0,p.gn)([y.autobind],za.prototype,"postProcessSetEditorValue",null),(0,p.gn)([y.autobind],za.prototype,"preprocessInput",null),j.pw.add("wrapNodes",za);var Da=r(46163);function Ra(t,e){if(S.i.isFragment(e)&&(e=e.firstChild),t.o.dtd.checkBlockNesting&&S.i.isBlock(e)){const e=S.i.furthest(t.s.current(),S.i.isBlock,t.editor);e&&!t.o.dtd.blockLimits[e.tagName.toLowerCase()]&&(t.s.setCursorAfter(e),S.i.isEmpty(e)&&S.i.safeRemove(e))}}f.D.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}};const Aa=new Set(["table","pre","blockquote","code"]);function qa(t,e){if(!t.o.dtd.removeExtraBr||S.i.isTag(e,"br"))return;const s=S.i.furthest(e,S.i.isBlock,t.editor);if(s&&!S.i.isTag(s,Aa)){const s=S.i.isTag(e,"br")?e:S.i.findNotEmptySibling(e,!1);if(!S.i.isTag(s,"br"))return;t.s.setCursorBefore(s),S.i.safeRemove(s)}}class Oa extends Ut.S{afterInit(t){}beforeDestruct(t){}__onBeforeInsertNode(t){Object.keys(h).forEach((e=>{h[e](this.j,t)}))}__onAfterInsertNode(t){Object.keys(d).forEach((e=>{d[e](this.j,t)}))}}(0,p.gn)([(0,Da.YP)(":beforeInsertNode")],Oa.prototype,"__onBeforeInsertNode",null),(0,p.gn)([(0,Da.YP)(":afterInsertNode")],Oa.prototype,"__onAfterInsertNode",null),j.pw.add("dtd",Oa),f.D.prototype.showXPathInStatusbar=!0,j.pw.add("xpath",class Ba extends Ut.S{constructor(){super(...arguments),this.onContext=(t,e)=>(this.menu||(this.menu=new Q(this.j)),this.menu.show(e.clientX,e.clientY,[{icon:"bin",title:t===this.j.editor?"Clear":"Remove",exec:()=>{t!==this.j.editor?X.i.safeRemove(t):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(t)}}]),!1),this.onSelectPath=(t,e)=>{this.j.s.focus();const s=(0,v.attr)(e.target,"-path")||"/";if("/"===s)return this.j.execCommand("selectall"),!1;try{const t=this.j.ed.evaluate(s,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(t)return this.j.s.select(t),!1}catch{}return this.j.s.select(t),!1},this.tpl=(t,e,s,i)=>{const r=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${e}" title="${i}" tabindex="-1"'>${(0,v.trim)(s)}</a></span>`),o=r.firstChild;return this.j.e.on(o,"click",this.onSelectPath.bind(this,t)).on(o,"contextmenu",this.onContext.bind(this,t)),r},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=Ot(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)},this.calcPathImd=()=>{if(this.isDestructed)return;const t=this.j.s.current();if(this.container&&(this.container.innerHTML=u.INVISIBLE_SPACE),t){let e,s,i;X.i.up(t,(t=>{t&&this.j.editor!==t&&!X.i.isText(t)&&(e=t.nodeName.toLowerCase(),s=(0,v.getXPathByElement)(t,this.j.editor).replace(/^\//,""),i=this.tpl(t,s,e,this.j.i18n("Select %s",e)),this.container&&this.container.insertBefore(i,this.container.firstChild))}),this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout)}afterInit(){this.j.o.showXPathInStatusbar&&(this.container=this.j.c.div("jodit-xpath"),this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",(()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===u.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=u.INVISIBLE_SPACE),this.appendSelectAll()))})),this.calcPath())}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),X.i.safeRemove(this.container),delete this.menu,delete this.container}}),"undefined"!=typeof process&&"es5"===u.ES&&"undefined"!=typeof window&&r(89019),Object.keys(u).forEach((t=>{Jodit[t]=u[t]}));const Ha=t=>"__esModule"!==t;Object.keys(s).filter(Ha).forEach((t=>{M.J.set(t.replace("_","-"),s[t])})),Object.keys(e).filter(Ha).forEach((t=>{Jodit.modules[t]=e[t]})),Object.keys(y).filter(Ha).forEach((t=>{Jodit.decorators[t]=y[t]})),["Confirm","Alert","Prompt"].forEach((t=>{Jodit[t]=e[t]})),Object.keys(Js).filter(Ha).forEach((t=>{Jodit.lang[t]=Js[t]}));class Fa{}}(),r.O(o)}()}));
10
+ ((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("{}"));else if("function"==typeof define&&define.amd)define(["{}"],e);else{var s="object"==typeof exports?e(require("{}")):e(t["{}"]);for(var i in s)("object"==typeof exports?exports:t)[i]=s[i]}})(self,(function(t){return function(){var e,s={61227(){"use strict";"document"in window.self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(t){if("Element"in t){var e="classList",s="prototype",i=t.Element[s],r=Object,o=String[s].trim||function(){return this.replace(/^\s+|\s+$/g,"")},n=Array[s].indexOf||function(t){for(var e=0,s=this.length;s>e;e++)if(e in this&&this[e]===t)return e;return-1},a=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},l=(t,e)=>{if(""===e)throw new a("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new a("INVALID_CHARACTER_ERR","String contains an invalid character");return n.call(t,e)},c=function(t){for(var e=o.call(t.getAttribute("class")||""),s=e?e.split(/\s+/):[],i=0,r=s.length;r>i;i++)this.push(s[i]);this._updateClassName=function(){t.setAttribute("class",""+this)}},h=c[s]=[],d=function(){return new c(this)};if(a[s]=Error[s],h.item=function(t){return this[t]||null},h.contains=function(t){return-1!==l(this,t+="")},h.add=function(){var t,e=arguments,s=0,i=e.length,r=!1;do{-1===l(this,t=e[s]+"")&&(this.push(t),r=!0)}while(++s<i);r&&this._updateClassName()},h.remove=function(){var t,e,s=arguments,i=0,r=s.length,o=!1;do{for(e=l(this,t=s[i]+"");-1!==e;)this.splice(e,1),o=!0,e=l(this,t)}while(++i<r);o&&this._updateClassName()},h.toggle=function(t,e){var s=this.contains(t+=""),i=s?!0!==e&&"remove":!1!==e&&"add";return i&&this[i](t),!0===e||!1===e?e:!s},h.toString=function(){return this.join(" ")},r.defineProperty){var u={get:d,enumerable:!0,configurable:!0};try{r.defineProperty(i,e,u)}catch(t){void 0!==t.number&&-2146823252!==t.number||(u.enumerable=!1,r.defineProperty(i,e,u))}}else r[s].__defineGetter__&&i.__defineGetter__(e,d)}}(window.self),function(){var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var s,i=arguments.length;for(s=0;i>s;s++)e.call(this,t=arguments[s])}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var s=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:s.call(this,t)}}t=null}())},69220(t,e,s){"use strict";s(22513);var i=s(56599);t.exports=i("Array","findIndex")},10444(t,e,s){"use strict";s(52867),s(70057);var i=s(31116);t.exports=i.Array.from},66622(t,e,s){"use strict";s(54166),s(32044),s(95661),s(28424),s(64514),s(30733),s(40327),s(53639),s(6147),s(7290),s(95122),s(61322),s(39605),s(49341),s(28809),s(82658),s(43967),s(90217),s(73477),s(93697);var i=s(31116);t.exports=i.Symbol},98061(t,e,s){"use strict";var i=s(794),r=s(98418),o=TypeError;t.exports=t=>{if(i(t))return t;throw o(r(t)+" is not a function")}},75839(t,e,s){"use strict";var i=s(794),r=String,o=TypeError;t.exports=t=>{if("object"==typeof t||i(t))return t;throw o("Can't set "+r(t)+" as a prototype")}},15179(t,e,s){"use strict";var i=s(19517),r=s(93503),o=s(73252).f,n=i("unscopables"),a=Array.prototype;null==a[n]&&o(a,n,{configurable:!0,value:r(null)}),t.exports=t=>{a[n][t]=!0}},52313(t,e,s){"use strict";var i=s(8148),r=String,o=TypeError;t.exports=t=>{if(i(t))return t;throw o(r(t)+" is not an object")}},92707(t,e,s){"use strict";var i=s(40207),r=s(9093),o=s(68488),n=s(79665),a=s(84997),l=s(15333),c=s(15050),h=s(89476),d=s(27395),u=s(81058),p=Array;t.exports=function(t){var e=o(t),s=l(this),f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m;g&&(m=i(m,f>2?arguments[2]:void 0));var v,b,y,w,_,C,S=u(e),E=0;if(!S||this===p&&a(S))for(v=c(e),b=s?new this(v):p(v);v>E;E++)C=g?m(e[E],E):e[E],h(b,E,C);else for(_=(w=d(e,S)).next,b=s?new this:[];!(y=r(_,w)).done;E++)C=g?n(w,m,[y.value,E],!0):y.value,h(b,E,C);return b.length=E,b}},79327(t,e,s){"use strict";var i=s(98651),r=s(10586),o=s(15050),n=t=>(e,s,n)=>{var a,l=i(e),c=o(l),h=r(n,c);if(t&&s!=s){for(;c>h;)if((a=l[h++])!=a)return!0}else for(;c>h;h++)if((t||h in l)&&l[h]===s)return t||h||0;return!t&&-1};t.exports={includes:n(!0),indexOf:n(!1)}},56881(t,e,s){"use strict";var i=s(40207),r=s(90838),o=s(25049),n=s(68488),a=s(15050),l=s(6429),c=r([].push),h=t=>{var e=1==t,s=2==t,r=3==t,h=4==t,d=6==t,u=7==t,p=5==t||d;return(f,m,g,v)=>{for(var b,y,w=n(f),_=o(w),C=i(m,g),S=a(_),E=0,x=v||l,j=e?x(f,S):s||u?x(f,0):void 0;S>E;E++)if((p||E in _)&&(y=C(b=_[E],E,w),t))if(e)j[E]=y;else if(y)switch(t){case 3:return!0;case 5:return b;case 6:return E;case 2:c(j,b)}else switch(t){case 4:return!1;case 7:c(j,b)}return d?-1:r||h?h:j}};t.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(7)}},63833(t,e,s){"use strict";var i=s(75834),r=s(19517),o=s(65190),n=r("species");t.exports=t=>o>=51||!i((()=>{var e=[];return(e.constructor={})[n]=()=>({foo:1}),1!==e[t](Boolean).foo}))},57652(t,e,s){"use strict";var i=s(10586),r=s(15050),o=s(89476),n=Array,a=Math.max;t.exports=(t,e,s)=>{for(var l=r(t),c=i(e,l),h=i(void 0===s?l:s,l),d=n(a(h-c,0)),u=0;h>c;c++,u++)o(d,u,t[c]);return d.length=u,d}},54832(t,e,s){"use strict";var i=s(90838);t.exports=i([].slice)},22506(t,e,s){"use strict";var i=s(36222),r=s(15333),o=s(8148),n=s(19517)("species"),a=Array;t.exports=t=>{var e;return i(t)&&(r(e=t.constructor)&&(e===a||i(e.prototype))||o(e)&&null===(e=e[n]))&&(e=void 0),void 0===e?a:e}},6429(t,e,s){"use strict";var i=s(22506);t.exports=(t,e)=>new(i(t))(0===e?0:e)},79665(t,e,s){"use strict";var i=s(52313),r=s(11274);t.exports=(t,e,s,o)=>{try{return o?e(i(s)[0],s[1]):e(s)}catch(e){r(t,"throw",e)}}},7581(t,e,s){"use strict";var i=s(19517)("iterator"),r=!1;try{var o=0,n={next(){return{done:!!o++}},return(){r=!0}};n[i]=function(){return this},Array.from(n,(()=>{throw 2}))}catch(t){}t.exports=(t,e)=>{if(!e&&!r)return!1;var s=!1;try{var o={};o[i]=()=>({next(){return{done:s=!0}}}),t(o)}catch(t){}return s}},6285(t,e,s){"use strict";var i=s(90838),r=i({}.toString),o=i("".slice);t.exports=t=>o(r(t),8,-1)},8652(t,e,s){"use strict";var i=s(6424),r=s(794),o=s(6285),n=s(19517)("toStringTag"),a=Object,l="Arguments"==o(function(){return arguments}());t.exports=i?o:t=>{var e,s,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(s=((t,e)=>{try{return t[e]}catch(t){}})(e=a(t),n))?s:l?o(e):"Object"==(i=o(e))&&r(e.callee)?"Arguments":i}},58392(t,e,s){"use strict";var i=s(14434),r=s(86671),o=s(36999),n=s(73252);t.exports=(t,e,s)=>{for(var a=r(e),l=n.f,c=o.f,h=0;a.length>h;h++){var d=a[h];i(t,d)||s&&i(s,d)||l(t,d,c(e,d))}}},27259(t,e,s){"use strict";var i=s(75834);t.exports=!i((()=>{function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},17427(t){"use strict";t.exports=(t,e)=>({value:t,done:e})},45840(t,e,s){"use strict";var i=s(13873),r=s(73252),o=s(32500);t.exports=i?(t,e,s)=>r.f(t,e,o(1,s)):(t,e,s)=>(t[e]=s,t)},32500(t){"use strict";t.exports=(t,e)=>({enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e})},89476(t,e,s){"use strict";var i=s(43836),r=s(73252),o=s(32500);t.exports=(t,e,s)=>{var n=i(e);n in t?r.f(t,n,o(0,s)):t[n]=s}},97548(t,e,s){"use strict";var i=s(40846),r=s(73252);t.exports=(t,e,s)=>(s.get&&i(s.get,e,{getter:!0}),s.set&&i(s.set,e,{setter:!0}),r.f(t,e,s))},35065(t,e,s){"use strict";var i=s(794),r=s(73252),o=s(40846),n=s(25379);t.exports=(t,e,s,a)=>{a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(i(s)&&o(s,c,a),a.global)l?t[e]=s:n(e,s);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=s:r.f(t,e,{value:s,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},25379(t,e,s){"use strict";var i=s(37042),r=Object.defineProperty;t.exports=(t,e)=>{try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(s){i[t]=e}return e}},13873(t,e,s){"use strict";var i=s(75834);t.exports=!i((()=>7!=Object.defineProperty({},1,{get(){return 7}})[1]))},12062(t){"use strict";var e="object"==typeof document&&document.all;t.exports={all:e,IS_HTMLDDA:void 0===e&&void 0!==e}},15192(t,e,s){"use strict";var i=s(37042),r=s(8148),o=i.document,n=r(o)&&r(o.createElement);t.exports=t=>n?o.createElement(t):{}},39505(t){"use strict";var e=TypeError;t.exports=t=>{if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},21473(t){"use strict";t.exports="undefined"!=typeof navigator&&navigator.userAgent+""||""},65190(t,e,s){"use strict";var i,r,o=s(37042),n=s(21473),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,h=c&&c.v8;h&&(r=(i=h.split("."))[0]>0&&4>i[0]?1:+(i[0]+i[1])),!r&&n&&((i=n.match(/Edge\/(\d+)/))&&74>i[1]||(i=n.match(/Chrome\/(\d+)/))&&(r=+i[1])),t.exports=r},56599(t,e,s){"use strict";var i=s(37042),r=s(90838);t.exports=(t,e)=>r(i[t].prototype[e])},64456(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},50791(t,e,s){"use strict";var i=s(37042),r=s(36999).f,o=s(45840),n=s(35065),a=s(25379),l=s(58392),c=s(56930);t.exports=(t,e)=>{var s,h,d,u,p,f=t.target,m=t.global,g=t.stat;if(s=m?i:g?i[f]||a(f,{}):(i[f]||{}).prototype)for(h in e){if(u=e[h],d=t.dontCallGetSet?(p=r(s,h))&&p.value:s[h],!c(m?h:f+(g?".":"#")+h,t.forced)&&void 0!==d){if(typeof u==typeof d)continue;l(u,d)}(t.sham||d&&d.sham)&&o(u,"sham",!0),n(s,h,u,t)}}},75834(t){"use strict";t.exports=t=>{try{return!!t()}catch(t){return!0}}},55101(t,e,s){"use strict";var i=s(32610),r=Function.prototype,o=r.apply,n=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?n.bind(o):function(){return n.apply(o,arguments)})},40207(t,e,s){"use strict";var i=s(75114),r=s(98061),o=s(32610),n=i(i.bind);t.exports=(t,e)=>(r(t),void 0===e?t:o?n(t,e):function(){return t.apply(e,arguments)})},32610(t,e,s){"use strict";var i=s(75834);t.exports=!i((()=>{var t=(()=>{}).bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9093(t,e,s){"use strict";var i=s(32610),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},84521(t,e,s){"use strict";var i=s(13873),r=s(14434),o=Function.prototype,n=i&&Object.getOwnPropertyDescriptor,a=r(o,"name"),l=a&&!1,c=a&&(!i||i&&n(o,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},47448(t,e,s){"use strict";var i=s(90838),r=s(98061);t.exports=(t,e,s)=>{try{return i(r(Object.getOwnPropertyDescriptor(t,e)[s]))}catch(t){}}},75114(t,e,s){"use strict";var i=s(6285),r=s(90838);t.exports=t=>{if("Function"===i(t))return r(t)}},90838(t,e,s){"use strict";var i=s(32610),r=Function.prototype,o=r.call,n=i&&r.bind.bind(o,o);t.exports=i?n:t=>function(){return o.apply(t,arguments)}},98945(t,e,s){"use strict";var i=s(37042),r=s(794);t.exports=function(t,e){return 2>arguments.length?r(s=i[t])?s:void 0:i[t]&&i[t][e];var s}},81058(t,e,s){"use strict";var i=s(8652),r=s(20156),o=s(8140),n=s(84922),a=s(19517)("iterator");t.exports=t=>{if(!o(t))return r(t,a)||r(t,"@@iterator")||n[i(t)]}},27395(t,e,s){"use strict";var i=s(9093),r=s(98061),o=s(52313),n=s(98418),a=s(81058),l=TypeError;t.exports=function(t,e){var s=2>arguments.length?a(t):e;if(r(s))return o(i(s,t));throw l(n(t)+" is not iterable")}},6693(t,e,s){"use strict";var i=s(90838),r=s(36222),o=s(794),n=s(6285),a=s(63046),l=i([].push);t.exports=function(t){if(o(t))return t;if(r(t)){for(var e=t.length,s=[],i=0;e>i;i++){var c=t[i];"string"==typeof c?l(s,c):"number"!=typeof c&&"Number"!=n(c)&&"String"!=n(c)||l(s,a(c))}var h=s.length,d=!0;return function(t,e){if(d)return d=!1,e;if(r(this))return e;for(var i=0;h>i;i++)if(s[i]===t)return e}}}},20156(t,e,s){"use strict";var i=s(98061),r=s(8140);t.exports=(t,e)=>{var s=t[e];return r(s)?void 0:i(s)}},37042(t,e,s){"use strict";var i=t=>t&&t.Math==Math&&t;t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof s.g&&s.g)||function(){return this}()||this||Function("return this")()},14434(t,e,s){"use strict";var i=s(90838),r=s(68488),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||((t,e)=>o(r(t),e))},48889(t){"use strict";t.exports={}},36249(t,e,s){"use strict";var i=s(98945);t.exports=i("document","documentElement")},12816(t,e,s){"use strict";var i=s(13873),r=s(75834),o=s(15192);t.exports=!i&&!r((()=>7!=Object.defineProperty(o("div"),"a",{get(){return 7}}).a))},25049(t,e,s){"use strict";var i=s(90838),r=s(75834),o=s(6285),n=Object,a=i("".split);t.exports=r((()=>!n("z").propertyIsEnumerable(0)))?t=>"String"==o(t)?a(t,""):n(t):n},92355(t,e,s){"use strict";var i=s(90838),r=s(794),o=s(45752),n=i(Function.toString);r(o.inspectSource)||(o.inspectSource=t=>n(t)),t.exports=o.inspectSource},56113(t,e,s){"use strict";var i,r,o,n=s(95473),a=s(37042),l=s(8148),c=s(45840),h=s(14434),d=s(45752),u=s(85475),p=s(48889),f="Object already initialized",m=a.TypeError;if(n||d.state){var g=d.state||(d.state=new(0,a.WeakMap));g.get=g.get,g.has=g.has,g.set=g.set,i=(t,e)=>{if(g.has(t))throw m(f);return e.facade=t,g.set(t,e),e},r=t=>g.get(t)||{},o=t=>g.has(t)}else{var v=u("state");p[v]=!0,i=(t,e)=>{if(h(t,v))throw m(f);return e.facade=t,c(t,v,e),e},r=t=>h(t,v)?t[v]:{},o=t=>h(t,v)}t.exports={set:i,get:r,has:o,enforce(t){return o(t)?r(t):i(t,{})},getterFor(t){return e=>{var s;if(!l(e)||(s=r(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return s}}}},84997(t,e,s){"use strict";var i=s(19517),r=s(84922),o=i("iterator"),n=Array.prototype;t.exports=t=>void 0!==t&&(r.Array===t||n[o]===t)},36222(t,e,s){"use strict";var i=s(6285);t.exports=Array.isArray||(t=>"Array"==i(t))},794(t,e,s){"use strict";var i=s(12062),r=i.all;t.exports=i.IS_HTMLDDA?t=>"function"==typeof t||t===r:t=>"function"==typeof t},15333(t,e,s){"use strict";var i=s(90838),r=s(75834),o=s(794),n=s(8652),a=s(98945),l=s(92355),c=()=>{},h=[],d=a("Reflect","construct"),u=/^\s*(?:class|function)\b/,p=i(u.exec),f=!u.exec(c),m=t=>{if(!o(t))return!1;try{return d(c,h,t),!0}catch(t){return!1}},g=t=>{if(!o(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!p(u,l(t))}catch(t){return!0}};g.sham=!0,t.exports=!d||r((()=>{var t;return m(m.call)||!m(Object)||!m((()=>{t=!0}))||t}))?g:m},56930(t,e,s){"use strict";var i=s(75834),r=s(794),o=/#|\.prototype\./,n=(t,e)=>{var s=l[a(t)];return s==h||s!=c&&(r(e)?i(e):!!e)},a=n.normalize=t=>(t+"").replace(o,".").toLowerCase(),l=n.data={},c=n.NATIVE="N",h=n.POLYFILL="P";t.exports=n},8140(t){"use strict";t.exports=t=>null==t},8148(t,e,s){"use strict";var i=s(794),r=s(12062),o=r.all;t.exports=r.IS_HTMLDDA?t=>"object"==typeof t?null!==t:i(t)||t===o:t=>"object"==typeof t?null!==t:i(t)},70852(t){"use strict";t.exports=!1},88253(t,e,s){"use strict";var i=s(98945),r=s(794),o=s(54671),n=s(57982),a=Object;t.exports=n?t=>"symbol"==typeof t:t=>{var e=i("Symbol");return r(e)&&o(e.prototype,a(t))}},11274(t,e,s){"use strict";var i=s(9093),r=s(52313),o=s(20156);t.exports=(t,e,s)=>{var n,a;r(t);try{if(!(n=o(t,"return"))){if("throw"===e)throw s;return s}n=i(n,t)}catch(t){a=!0,n=t}if("throw"===e)throw s;if(a)throw n;return r(n),s}},60928(t,e,s){"use strict";var i=s(77831).IteratorPrototype,r=s(93503),o=s(32500),n=s(44532),a=s(84922),l=function(){return this};t.exports=(t,e,s,c)=>{var h=e+" Iterator";return t.prototype=r(i,{next:o(+!c,s)}),n(t,h,!1,!0),a[h]=l,t}},13759(t,e,s){"use strict";var i=s(50791),r=s(9093),o=s(70852),n=s(84521),a=s(794),l=s(60928),c=s(1074),h=s(482),d=s(44532),u=s(45840),p=s(35065),f=s(19517),m=s(84922),g=s(77831),v=n.PROPER,b=n.CONFIGURABLE,y=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,_=f("iterator"),C="keys",S="values",E="entries",x=function(){return this};t.exports=function(t,e,s,n,f,g,j){l(s,e,n);var I,k,T,L=function(t){if(t===f&&D)return D;if(!w&&t in N)return N[t];switch(t){case C:case S:case E:return function(){return new s(this,t)}}return function(){return new s(this)}},M=e+" Iterator",P=!1,N=t.prototype,z=N[_]||N["@@iterator"]||f&&N[f],D=!w&&z||L(f),R="Array"==e&&N.entries||z;if(R&&(I=c(R.call(new t)))!==Object.prototype&&I.next&&(o||c(I)===y||(h?h(I,y):a(I[_])||p(I,_,x)),d(I,M,!0,!0),o&&(m[M]=x)),v&&f==S&&z&&z.name!==S&&(!o&&b?u(N,"name",S):(P=!0,D=function(){return r(z,this)})),f)if(k={values:L(S),keys:g?D:L(C),entries:L(E)},j)for(T in k)(w||P||!(T in N))&&p(N,T,k[T]);else i({target:e,proto:!0,forced:w||P},k);return o&&!j||N[_]===D||p(N,_,D,{name:f}),m[e]=D,k}},77831(t,e,s){"use strict";var i,r,o,n=s(75834),a=s(794),l=s(8148),c=s(93503),h=s(1074),d=s(35065),u=s(19517),p=s(70852),f=u("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(r=h(h(o)))!==Object.prototype&&(i=r):m=!0),!l(i)||n((()=>{var t={};return i[f].call(t)!==t}))?i={}:p&&(i=c(i)),a(i[f])||d(i,f,(function(){return this})),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:m}},84922(t){"use strict";t.exports={}},15050(t,e,s){"use strict";var i=s(24431);t.exports=t=>i(t.length)},40846(t,e,s){"use strict";var i=s(90838),r=s(75834),o=s(794),n=s(14434),a=s(13873),l=s(84521).CONFIGURABLE,c=s(92355),h=s(56113),d=h.enforce,u=h.get,p=String,f=Object.defineProperty,m=i("".slice),g=i("".replace),v=i([].join),b=a&&!r((()=>8!==f((()=>{}),"length",{value:8}).length)),y=(String+"").split("String"),w=t.exports=(t,e,s)=>{"Symbol("===m(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(e="get "+e),s&&s.setter&&(e="set "+e),(!n(t,"name")||l&&t.name!==e)&&(a?f(t,"name",{value:e,configurable:!0}):t.name=e),b&&s&&n(s,"arity")&&t.length!==s.arity&&f(t,"length",{value:s.arity});try{s&&n(s,"constructor")&&s.constructor?a&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=d(t);return n(i,"source")||(i.source=v(y,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return o(this)&&u(this).source||c(this)}),"toString")},43932(t){"use strict";var e=Math.ceil,s=Math.floor;t.exports=Math.trunc||(t=>{var i=+t;return(i>0?s:e)(i)})},93503(t,e,s){"use strict";var i,r=s(52313),o=s(5770),n=s(64456),a=s(48889),l=s(36249),c=s(15192),h=s(85475),d="prototype",u="script",p=h("IE_PROTO"),f=()=>{},m=t=>"<"+u+">"+t+"</"+u+">",g=t=>{t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=()=>{try{i=new ActiveXObject("htmlfile")}catch(t){}var t,e,s;v="undefined"!=typeof document?document.domain&&i?g(i):(e=c("iframe"),s="java"+u+":",e.style.display="none",l.appendChild(e),e.src=s+"",(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):g(i);for(var r=n.length;r--;)delete v[d][n[r]];return v()};a[p]=!0,t.exports=Object.create||((t,e)=>{var s;return null!==t?(f[d]=r(t),s=new f,f[d]=null,s[p]=t):s=v(),void 0===e?s:o.f(s,e)})},5770(t,e,s){"use strict";var i=s(13873),r=s(63142),o=s(73252),n=s(52313),a=s(98651),l=s(3385);e.f=i&&!r?Object.defineProperties:(t,e)=>{n(t);for(var s,i=a(e),r=l(e),c=r.length,h=0;c>h;)o.f(t,s=r[h++],i[s]);return t}},73252(t,e,s){"use strict";var i=s(13873),r=s(12816),o=s(63142),n=s(52313),a=s(43836),l=TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,d="enumerable",u="configurable",p="writable";e.f=i?o?(t,e,s)=>{if(n(t),e=a(e),n(s),"function"==typeof t&&"prototype"===e&&"value"in s&&p in s&&!s[p]){var i=h(t,e);i&&i[p]&&(t[e]=s.value,s={configurable:u in s?s[u]:i[u],enumerable:d in s?s[d]:i[d],writable:!1})}return c(t,e,s)}:c:(t,e,s)=>{if(n(t),e=a(e),n(s),r)try{return c(t,e,s)}catch(t){}if("get"in s||"set"in s)throw l("Accessors not supported");return"value"in s&&(t[e]=s.value),t}},36999(t,e,s){"use strict";var i=s(13873),r=s(9093),o=s(33244),n=s(32500),a=s(98651),l=s(43836),c=s(14434),h=s(12816),d=Object.getOwnPropertyDescriptor;e.f=i?d:(t,e)=>{if(t=a(t),e=l(e),h)try{return d(t,e)}catch(t){}if(c(t,e))return n(!r(o.f,t,e),t[e])}},53305(t,e,s){"use strict";var i=s(6285),r=s(98651),o=s(7792).f,n=s(57652),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=t=>a&&"Window"==i(t)?(t=>{try{return o(t)}catch(t){return n(a)}})(t):o(r(t))},7792(t,e,s){"use strict";var i=s(84729),r=s(64456).concat("length","prototype");e.f=Object.getOwnPropertyNames||(t=>i(t,r))},23953(t,e){"use strict";e.f=Object.getOwnPropertySymbols},1074(t,e,s){"use strict";var i=s(14434),r=s(794),o=s(68488),n=s(85475),a=s(27259),l=n("IE_PROTO"),c=Object,h=c.prototype;t.exports=a?c.getPrototypeOf:t=>{var e=o(t);if(i(e,l))return e[l];var s=e.constructor;return r(s)&&e instanceof s?s.prototype:e instanceof c?h:null}},54671(t,e,s){"use strict";var i=s(90838);t.exports=i({}.isPrototypeOf)},84729(t,e,s){"use strict";var i=s(90838),r=s(14434),o=s(98651),n=s(79327).indexOf,a=s(48889),l=i([].push);t.exports=(t,e)=>{var s,i=o(t),c=0,h=[];for(s in i)!r(a,s)&&r(i,s)&&l(h,s);for(;e.length>c;)r(i,s=e[c++])&&(~n(h,s)||l(h,s));return h}},3385(t,e,s){"use strict";var i=s(84729),r=s(64456);t.exports=Object.keys||(t=>i(t,r))},33244(t,e){"use strict";var s={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!s.call({1:2},1);e.f=r?function(t){var e=i(this,t);return!!e&&e.enumerable}:s},482(t,e,s){"use strict";var i=s(47448),r=s(52313),o=s(75839);t.exports=Object.setPrototypeOf||("__proto__"in{}?(()=>{var t,e=!1,s={};try{(t=i(Object.prototype,"__proto__","set"))(s,[]),e=s instanceof Array}catch(t){}return(s,i)=>(r(s),o(i),e?t(s,i):s.__proto__=i,s)})():void 0)},57555(t,e,s){"use strict";var i=s(6424),r=s(8652);t.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},82472(t,e,s){"use strict";var i=s(9093),r=s(794),o=s(8148),n=TypeError;t.exports=(t,e)=>{var s,a;if("string"===e&&r(s=t.toString)&&!o(a=i(s,t)))return a;if(r(s=t.valueOf)&&!o(a=i(s,t)))return a;if("string"!==e&&r(s=t.toString)&&!o(a=i(s,t)))return a;throw n("Can't convert object to primitive value")}},86671(t,e,s){"use strict";var i=s(98945),r=s(90838),o=s(7792),n=s(23953),a=s(52313),l=r([].concat);t.exports=i("Reflect","ownKeys")||(t=>{var e=o.f(a(t)),s=n.f;return s?l(e,s(t)):e})},31116(t,e,s){"use strict";var i=s(37042);t.exports=i},60265(t,e,s){"use strict";var i=s(8140),r=TypeError;t.exports=t=>{if(i(t))throw r("Can't call method on "+t);return t}},44532(t,e,s){"use strict";var i=s(73252).f,r=s(14434),o=s(19517)("toStringTag");t.exports=(t,e,s)=>{t&&!s&&(t=t.prototype),t&&!r(t,o)&&i(t,o,{configurable:!0,value:e})}},85475(t,e,s){"use strict";var i=s(95138),r=s(15257),o=i("keys");t.exports=t=>o[t]||(o[t]=r(t))},45752(t,e,s){"use strict";var i=s(37042),r=s(25379),o="__core-js_shared__",n=i[o]||r(o,{});t.exports=n},95138(t,e,s){"use strict";var i=s(70852),r=s(45752);(t.exports=(t,e)=>r[t]||(r[t]=void 0!==e?e:{}))("versions",[]).push({version:"3.30.2",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},41397(t,e,s){"use strict";var i=s(90838),r=s(27876),o=s(63046),n=s(60265),a=i("".charAt),l=i("".charCodeAt),c=i("".slice),h=t=>(e,s)=>{var i,h,d=o(n(e)),u=r(s),p=d.length;return 0>u||u>=p?t?"":void 0:55296>(i=l(d,u))||i>56319||u+1===p||56320>(h=l(d,u+1))||h>57343?t?a(d,u):i:t?c(d,u,u+2):h-56320+(i-55296<<10)+65536};t.exports={codeAt:h(!1),charAt:h(!0)}},73800(t,e,s){"use strict";var i=s(65190),r=s(75834),o=s(37042).String;t.exports=!!Object.getOwnPropertySymbols&&!r((()=>{var t=Symbol();return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&41>i}))},13829(t,e,s){"use strict";var i=s(9093),r=s(98945),o=s(19517),n=s(35065);t.exports=function(){var t=r("Symbol"),e=t&&t.prototype,s=e&&e.valueOf,a=o("toPrimitive");e&&!e[a]&&n(e,a,(function(t){return i(s,this)}),{arity:1})}},31948(t,e,s){"use strict";var i=s(73800);t.exports=i&&!!Symbol.for&&!!Symbol.keyFor},10586(t,e,s){"use strict";var i=s(27876),r=Math.max,o=Math.min;t.exports=(t,e)=>{var s=i(t);return 0>s?r(s+e,0):o(s,e)}},98651(t,e,s){"use strict";var i=s(25049),r=s(60265);t.exports=t=>i(r(t))},27876(t,e,s){"use strict";var i=s(43932);t.exports=t=>{var e=+t;return e!=e||0===e?0:i(e)}},24431(t,e,s){"use strict";var i=s(27876),r=Math.min;t.exports=t=>t>0?r(i(t),9007199254740991):0},68488(t,e,s){"use strict";var i=s(60265),r=Object;t.exports=t=>r(i(t))},11261(t,e,s){"use strict";var i=s(9093),r=s(8148),o=s(88253),n=s(20156),a=s(82472),l=s(19517),c=TypeError,h=l("toPrimitive");t.exports=(t,e)=>{if(!r(t)||o(t))return t;var s,l=n(t,h);if(l){if(void 0===e&&(e="default"),s=i(l,t,e),!r(s)||o(s))return s;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},43836(t,e,s){"use strict";var i=s(11261),r=s(88253);t.exports=t=>{var e=i(t,"string");return r(e)?e:e+""}},6424(t,e,s){"use strict";var i={};i[s(19517)("toStringTag")]="z",t.exports=i+""=="[object z]"},63046(t,e,s){"use strict";var i=s(8652),r=String;t.exports=t=>{if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return r(t)}},98418(t){"use strict";var e=String;t.exports=t=>{try{return e(t)}catch(t){return"Object"}}},15257(t,e,s){"use strict";var i=s(90838),r=0,o=Math.random(),n=i(1..toString);t.exports=t=>"Symbol("+(void 0===t?"":t)+")_"+n(++r+o,36)},57982(t,e,s){"use strict";var i=s(73800);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},63142(t,e,s){"use strict";var i=s(13873),r=s(75834);t.exports=i&&r((()=>42!=Object.defineProperty((()=>{}),"prototype",{value:42,writable:!1}).prototype))},95473(t,e,s){"use strict";var i=s(37042),r=s(794),o=i.WeakMap;t.exports=r(o)&&/native code/.test(o+"")},89633(t,e,s){"use strict";var i=s(31116),r=s(14434),o=s(96767),n=s(73252).f;t.exports=t=>{var e=i.Symbol||(i.Symbol={});r(e,t)||n(e,t,{value:o.f(t)})}},96767(t,e,s){"use strict";var i=s(19517);e.f=i},19517(t,e,s){"use strict";var i=s(37042),r=s(95138),o=s(14434),n=s(15257),a=s(73800),l=s(57982),c=i.Symbol,h=r("wks"),d=l?c.for||c:c&&c.withoutSetter||n;t.exports=t=>(o(h,t)||(h[t]=a&&o(c,t)?c[t]:d("Symbol."+t)),h[t])},54166(t,e,s){"use strict";var i=s(50791),r=s(75834),o=s(36222),n=s(8148),a=s(68488),l=s(15050),c=s(39505),h=s(89476),d=s(6429),u=s(63833),p=s(19517),f=s(65190),m=p("isConcatSpreadable"),g=f>=51||!r((()=>{var t=[];return t[m]=!1,t.concat()[0]!==t})),v=t=>{if(!n(t))return!1;var e=t[m];return void 0!==e?!!e:o(t)};i({target:"Array",proto:!0,arity:1,forced:!g||!u("concat")},{concat(t){var e,s,i,r,o,n=a(this),u=d(n,0),p=0;for(e=-1,i=arguments.length;i>e;e++)if(v(o=-1===e?n:arguments[e]))for(r=l(o),c(p+r),s=0;r>s;s++,p++)s in o&&h(u,p,o[s]);else c(p+1),h(u,p++,o);return u.length=p,u}})},22513(t,e,s){"use strict";var i=s(50791),r=s(56881).findIndex,o=s(15179),n="findIndex",a=!0;n in[]&&[,][n]((()=>{a=!1})),i({target:"Array",proto:!0,forced:a},{findIndex(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(n)},70057(t,e,s){"use strict";var i=s(50791),r=s(92707);i({target:"Array",stat:!0,forced:!s(7581)((t=>{Array.from(t)}))},{from:r})},67507(t,e,s){"use strict";var i=s(50791),r=s(98945),o=s(55101),n=s(9093),a=s(90838),l=s(75834),c=s(794),h=s(88253),d=s(54832),u=s(6693),p=s(73800),f=String,m=r("JSON","stringify"),g=a(/./.exec),v=a("".charAt),b=a("".charCodeAt),y=a("".replace),w=a(1..toString),_=/[\uD800-\uDFFF]/g,C=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,E=!p||l((()=>{var t=r("Symbol")();return"[null]"!=m([t])||"{}"!=m({a:t})||"{}"!=m(Object(t))})),x=l((()=>'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead"))),j=function(t,e){var s=d(arguments),i=u(e);if(c(i)||void 0!==t&&!h(t))return s[1]=function(t,e){if(c(i)&&(e=n(i,this,f(t),e)),!h(e))return e},o(m,null,s)},I=(t,e,s)=>{var i=v(s,e-1),r=v(s,e+1);return g(C,t)&&!g(S,r)||g(S,t)&&!g(C,i)?"\\u"+w(b(t,0),16):t};m&&i({target:"JSON",stat:!0,arity:3,forced:E||x},{stringify(t,e,s){var i=d(arguments),r=o(E?j:m,null,i);return x&&"string"==typeof r?y(r,_,I):r}})},90217(t,e,s){"use strict";var i=s(37042);s(44532)(i.JSON,"JSON",!0)},73477(t,e,s){"use strict";s(44532)(Math,"Math",!0)},30165(t,e,s){"use strict";var i=s(50791),r=s(73800),o=s(75834),n=s(23953),a=s(68488);i({target:"Object",stat:!0,forced:!r||o((()=>{n.f(1)}))},{getOwnPropertySymbols(t){var e=n.f;return e?e(a(t)):[]}})},32044(t,e,s){"use strict";var i=s(6424),r=s(35065),o=s(57555);i||r(Object.prototype,"toString",o,{unsafe:!0})},93697(t,e,s){"use strict";var i=s(50791),r=s(37042),o=s(44532);i({global:!0},{Reflect:{}}),o(r.Reflect,"Reflect",!0)},52867(t,e,s){"use strict";var i=s(41397).charAt,r=s(63046),o=s(56113),n=s(13759),a=s(17427),l="String Iterator",c=o.set,h=o.getterFor(l);n(String,"String",(function(t){c(this,{type:l,string:r(t),index:0})}),(function(){var t,e=h(this),s=e.string,r=e.index;return s.length>r?(t=i(s,r),e.index+=t.length,a(t,!1)):a(void 0,!0)}))},28424(t,e,s){"use strict";s(89633)("asyncIterator")},9656(t,e,s){"use strict";var i=s(50791),r=s(37042),o=s(9093),n=s(90838),a=s(70852),l=s(13873),c=s(73800),h=s(75834),d=s(14434),u=s(54671),p=s(52313),f=s(98651),m=s(43836),g=s(63046),v=s(32500),b=s(93503),y=s(3385),w=s(7792),_=s(53305),C=s(23953),S=s(36999),E=s(73252),x=s(5770),j=s(33244),I=s(35065),k=s(97548),T=s(95138),L=s(85475),M=s(48889),P=s(15257),N=s(19517),z=s(96767),D=s(89633),R=s(13829),A=s(44532),q=s(56113),O=s(56881).forEach,B=L("hidden"),H="Symbol",F="prototype",$=q.set,W=q.getterFor(H),V=Object[F],U=r.Symbol,Y=U&&U[F],G=r.TypeError,X=r.QObject,K=S.f,J=E.f,Z=_.f,Q=j.f,tt=n([].push),et=T("symbols"),st=T("op-symbols"),it=T("wks"),rt=!X||!X[F]||!X[F].findChild,ot=l&&h((function(){return 7!=b(J({},"a",{get(){return J(this,"a",{value:7}).a}})).a}))?(t,e,s)=>{var i=K(V,e);i&&delete V[e],J(t,e,s),i&&t!==V&&J(V,e,i)}:J,nt=(t,e)=>{var s=et[t]=b(Y);return $(s,{type:H,tag:t,description:e}),l||(s.description=e),s},at=(t,e,s)=>{t===V&&at(st,e,s),p(t);var i=m(e);return p(s),d(et,i)?(s.enumerable?(d(t,B)&&t[B][i]&&(t[B][i]=!1),s=b(s,{enumerable:v(0,!1)})):(d(t,B)||J(t,B,v(1,{})),t[B][i]=!0),ot(t,i,s)):J(t,i,s)},lt=(t,e)=>{p(t);var s=f(e),i=y(s).concat(ut(s));return O(i,(e=>{l&&!o(ct,s,e)||at(t,e,s[e])})),t},ct=function(t){var e=m(t),s=o(Q,this,e);return!(this===V&&d(et,e)&&!d(st,e))&&(!(s||!d(this,e)||!d(et,e)||d(this,B)&&this[B][e])||s)},ht=(t,e)=>{var s=f(t),i=m(e);if(s!==V||!d(et,i)||d(st,i)){var r=K(s,i);return!r||!d(et,i)||d(s,B)&&s[B][i]||(r.enumerable=!0),r}},dt=t=>{var e=Z(f(t)),s=[];return O(e,(t=>{d(et,t)||d(M,t)||tt(s,t)})),s},ut=t=>{var e=t===V,s=Z(e?st:f(t)),i=[];return O(s,(t=>{!d(et,t)||e&&!d(V,t)||tt(i,et[t])})),i};c||(U=function(){if(u(Y,this))throw G("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=P(t),s=function(t){this===V&&o(s,st,t),d(this,B)&&d(this[B],e)&&(this[B][e]=!1),ot(this,e,v(1,t))};return l&&rt&&ot(V,e,{configurable:!0,set:s}),nt(e,t)},I(Y=U[F],"toString",(function(){return W(this).tag})),I(U,"withoutSetter",(t=>nt(P(t),t))),j.f=ct,E.f=at,x.f=lt,S.f=ht,w.f=_.f=dt,C.f=ut,z.f=t=>nt(N(t),t),l&&(k(Y,"description",{configurable:!0,get(){return W(this).description}}),a||I(V,"propertyIsEnumerable",ct,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:U}),O(y(it),(t=>{D(t)})),i({target:H,stat:!0,forced:!c},{useSetter(){rt=!0},useSimple(){rt=!1}}),i({target:"Object",stat:!0,forced:!c,sham:!l},{create(t,e){return void 0===e?b(t):lt(b(t),e)},defineProperty:at,defineProperties:lt,getOwnPropertyDescriptor:ht}),i({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:dt}),R(),A(U,H),M[B]=!0},64514(t,e,s){"use strict";var i=s(50791),r=s(13873),o=s(37042),n=s(90838),a=s(14434),l=s(794),c=s(54671),h=s(63046),d=s(97548),u=s(58392),p=o.Symbol,f=p&&p.prototype;if(r&&l(p)&&(!("description"in f)||void 0!==p().description)){var m={},g=function(){var t=1>arguments.length||void 0===arguments[0]?void 0:h(arguments[0]),e=c(f,this)?new p(t):void 0===t?p():p(t);return""===t&&(m[e]=!0),e};u(g,p),g.prototype=f,f.constructor=g;var v=p("test")+""=="Symbol(test)",b=n(f.valueOf),y=n(f.toString),w=/^Symbol\((.*)\)[^)]+$/,_=n("".replace),C=n("".slice);d(f,"description",{configurable:!0,get(){var t=b(this);if(a(m,t))return"";var e=y(t),s=v?C(e,7,-1):_(e,w,"$1");return""===s?void 0:s}}),i({global:!0,constructor:!0,forced:!0},{Symbol:g})}},56202(t,e,s){"use strict";var i=s(50791),r=s(98945),o=s(14434),n=s(63046),a=s(95138),l=s(31948),c=a("string-to-symbol-registry"),h=a("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!l},{for(t){var e=n(t);if(o(c,e))return c[e];var s=r("Symbol")(e);return c[e]=s,h[s]=e,s}})},30733(t,e,s){"use strict";s(89633)("hasInstance")},40327(t,e,s){"use strict";s(89633)("isConcatSpreadable")},53639(t,e,s){"use strict";s(89633)("iterator")},95661(t,e,s){"use strict";s(9656),s(56202),s(71940),s(67507),s(30165)},71940(t,e,s){"use strict";var i=s(50791),r=s(14434),o=s(88253),n=s(98418),a=s(95138),l=s(31948),c=a("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!l},{keyFor(t){if(!o(t))throw TypeError(n(t)+" is not a symbol");if(r(c,t))return c[t]}})},7290(t,e,s){"use strict";s(89633)("matchAll")},6147(t,e,s){"use strict";s(89633)("match")},95122(t,e,s){"use strict";s(89633)("replace")},61322(t,e,s){"use strict";s(89633)("search")},39605(t,e,s){"use strict";s(89633)("species")},49341(t,e,s){"use strict";s(89633)("split")},28809(t,e,s){"use strict";var i=s(89633),r=s(13829);i("toPrimitive"),r()},82658(t,e,s){"use strict";var i=s(98945),r=s(89633),o=s(44532);r("toStringTag"),o(i("Symbol"),"Symbol")},43967(t,e,s){"use strict";s(89633)("unscopables")},690(t,e,s){"use strict";t.exports=s(26002).polyfill()},26002(t,e,s){"use strict";t.exports=function(){function t(t){return"function"==typeof t}var e=Array.isArray?Array.isArray:t=>"[object Array]"===Object.prototype.toString.call(t),i=0,r=void 0,o=void 0,n=(t,e)=>{p[i]=t,p[i+1]=e,2===(i+=2)&&(o?o(f):y())},a="undefined"!=typeof window?window:void 0,l=a||{},c=l.MutationObserver||l.WebKitMutationObserver,h="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function u(){var t=setTimeout;return()=>t(f,1)}var p=Array(1e3);function f(){for(var t=0;i>t;t+=2)(0,p[t])(p[t+1]),p[t]=void 0,p[t+1]=void 0;i=0}var m,g,v,b,y=void 0;function w(t,e){var s=this,i=new this.constructor(S);void 0===i[C]&&R(i);var r=s._state;if(r){var o=arguments[r-1];n((()=>z(r,i,o,s._result)))}else P(s,i,t,e);return i}function _(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(S);return k(e,t),e}y=h?()=>process.nextTick(f):c?(g=0,v=new c(f),b=document.createTextNode(""),v.observe(b,{characterData:!0}),()=>{b.data=g=++g%2}):d?((m=new MessageChannel).port1.onmessage=f,()=>m.port2.postMessage(0)):void 0===a?(()=>{try{var t=Function("return this")().require("vertx");return void 0!==(r=t.runOnLoop||t.runOnContext)?()=>{r(f)}:u()}catch(t){return u()}})():u();var C=Math.random().toString(36).substring(2);function S(){}var E=void 0,x=1,j=2;function I(e,s,i){s.constructor===e.constructor&&i===w&&s.constructor.resolve===_?((t,e)=>{e._state===x?L(t,e._result):e._state===j?M(t,e._result):P(e,void 0,(e=>k(t,e)),(e=>M(t,e)))})(e,s):void 0===i?L(e,s):t(i)?((t,e,s)=>{n((t=>{var i=!1,r=((s,r,o,n)=>{try{s.call(r,(s=>{i||(i=!0,e!==s?k(t,s):L(t,s))}),(e=>{i||(i=!0,M(t,e))}))}catch(t){return t}})(s,e);!i&&r&&(i=!0,M(t,r))}),t)})(e,s,i):L(e,s)}function k(t,e){if(t===e)M(t,new TypeError("You cannot resolve a promise with itself"));else if(r=typeof(i=e),null===i||"object"!==r&&"function"!==r)L(t,e);else{var s=void 0;try{s=e.then}catch(e){return void M(t,e)}I(t,e,s)}var i,r}function T(t){t._onerror&&t._onerror(t._result),N(t)}function L(t,e){t._state===E&&(t._result=e,t._state=x,0!==t._subscribers.length&&n(N,t))}function M(t,e){t._state===E&&(t._state=j,t._result=e,n(T,t))}function P(t,e,s,i){var r=t._subscribers,o=r.length;t._onerror=null,r[o]=e,r[o+x]=s,r[o+j]=i,0===o&&t._state&&n(N,t)}function N(t){var e=t._subscribers,s=t._state;if(0!==e.length){for(var i=void 0,r=void 0,o=t._result,n=0;e.length>n;n+=3)r=e[n+s],(i=e[n])?z(s,i,r,o):r(o);t._subscribers.length=0}}function z(e,s,i,r){var o=t(i),n=void 0,a=void 0,l=!0;if(o){try{n=i(r)}catch(t){l=!1,a=t}if(s===n)return void M(s,new TypeError("A promises callback cannot return that same promise."))}else n=r;s._state!==E||(o&&l?k(s,n):!1===l?M(s,a):e===x?L(s,n):e===j&&M(s,n))}var D=0;function R(t){t[C]=D++,t._state=void 0,t._result=void 0,t._subscribers=[]}var A=function(){function t(t,s){this._instanceConstructor=t,this.promise=new t(S),this.promise[C]||R(this.promise),e(s)?(this.length=s.length,this._remaining=s.length,this._result=Array(this.length),0===this.length?L(this.promise,this._result):(this.length=this.length||0,this._enumerate(s),0===this._remaining&&L(this.promise,this._result))):M(this.promise,Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===E&&t.length>e;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var s=this._instanceConstructor,i=s.resolve;if(i===_){var r=void 0,o=void 0,n=!1;try{r=t.then}catch(t){n=!0,o=t}if(r===w&&t._state!==E)this._settledAt(t._state,e,t._result);else if("function"!=typeof r)this._remaining--,this._result[e]=t;else if(s===q){var a=new s(S);n?M(a,o):I(a,t,r),this._willSettleAt(a,e)}else this._willSettleAt(new s((e=>e(t))),e)}else this._willSettleAt(i(t),e)},t.prototype._settledAt=function(t,e,s){var i=this.promise;i._state===E&&(this._remaining--,t===j?M(i,s):this._result[e]=s),0===this._remaining&&L(i,this._result)},t.prototype._willSettleAt=function(t,e){var s=this;P(t,void 0,(t=>s._settledAt(x,e,t)),(t=>s._settledAt(j,e,t)))},t}(),q=function(){function e(t){this[C]=D++,this._result=this._state=void 0,this._subscribers=[],S!==t&&("function"!=typeof t&&(()=>{throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")})(),this instanceof e?((t,e)=>{try{e((e=>{k(t,e)}),(e=>{M(t,e)}))}catch(e){M(t,e)}})(this,t):(()=>{throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")})())}return e.prototype.catch=function(t){return this.then(null,t)},e.prototype.finally=function(e){var s=this,i=s.constructor;return t(e)?s.then((t=>i.resolve(e()).then((()=>t))),(t=>i.resolve(e()).then((()=>{throw t})))):s.then(e,e)},e}();return q.prototype.then=w,q.all=function(t){return new A(this,t).promise},q.race=function(t){var s=this;return e(t)?new s(((e,i)=>{for(var r=t.length,o=0;r>o;o++)s.resolve(t[o]).then(e,i)})):new s(((t,e)=>e(new TypeError("You must pass an array to race."))))},q.resolve=_,q.reject=function(t){var e=new this(S);return M(e,t),e},q._setScheduler=t=>{o=t},q._setAsap=t=>{n=t},q._asap=n,q.polyfill=()=>{var t=void 0;if(void 0!==s.g)t=s.g;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var i=null;try{i=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===i&&!e.cast)return}t.Promise=q},q.Promise=q,q}()},20255(t,e,s){"use strict";function i(t,e,s,i){var r,o=arguments.length,n=3>o?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(3>o?r(n):o>3?r(e,s,n):r(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n}s.d(e,{gn(){return i}})},93166(t,e,s){"use strict";s.d(e,{D(){return r}});var i=s(86893);class r{constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument="undefined"!=typeof document?document:null,this.ownerWindow="undefined"!=typeof window?window:null,this.shadowRoot=null,this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.editorClassName=!1,this.editorCssClass=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=i.INSERT_AS_HTML,this.enter=i.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:i.PARAGRAPH,this.defaultMode=i.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.buttonsMD=["bold","italic","|","ul","ol","eraser","|","font","fontsize","---","image","table","|","link","\n","brush","paragraph","align","|","hr","copyformat","fullsize","---","undo","redo","|","dots"],this.buttonsSM=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"],this.buttonsXS=["bold","brush","paragraph","eraser","|","fontsize","---","image","\n","align","undo","redo","|","link","table","---","dots"],this.events={},this.textIcons=!1,this.showBrowserColorPicker=!0}static get defaultOptions(){return r.__defaultOptions||(r.__defaultOptions=new r),r.__defaultOptions}}r.prototype.controls={}},21317(t,e,s){"use strict";s.d(e,{e(){return h}});var i=s(27512),r=s(42096),o=s(79736),n=s(26335),a=s(24421),l=s(61817),c=(s(52378),s(86893));class h{constructor(){this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=queueMicrotask?.bind(window)??Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.requestsIdle=new Set,this.requestsRaf=new Set,this.requestIdleCallbackNative=window.requestIdleCallback?.bind(window)??((t,e)=>{const s=Date.now();return this.setTimeout((()=>{t({didTimeout:!1,timeRemaining(){return Math.max(0,50-(Date.now()-s))}})}),e?.timeout??1)}),this.cancelIdleCallbackNative=window.cancelIdleCallback?.bind(window)??(t=>{this.clearTimeout(t)}),this.isDestructed=!1}delay(t){return this.promise((e=>this.setTimeout(e,t)))}setTimeout(t,e,...s){if(this.isDestructed)return 0;let r={};(0,l.h)(e)||(r=e,e=r.timeout||0),r.label&&this.clearLabel(r.label);const o=(0,i.i)(t,e,...s),n=r.label||o;return this.timers.set(n,o),this.__callbacks.set(n,t),o}updateTimeout(t,e){if(!t||!this.timers.has(t))return null;const s=this.__callbacks.get(t);return this.setTimeout(s,{label:t,timeout:e})}clearLabel(t){t&&this.timers.has(t)&&((0,i.g)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,a.H)(t))return this.clearLabel(t);(0,i.g)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,e,s=!1){let a=0,l=!1;const c=[],h=(...e)=>{if(!l){a=0;const s=t(...e);if(l=!0,c.length){const t=()=>{c.forEach((t=>t())),c.length=0};(0,n.t)(s)?s.finally(t):t()}}},d=(...o)=>{l=!1,e?(!a&&s&&h(...o),(0,i.g)(a),a=this.setTimeout((()=>h(...o)),(0,r.m)(e)?e():e),this.timers.set(t,a)):h(...o)};return(0,o.P)(e)&&e.promisify?(...t)=>{const e=this.promise((t=>{c.push(t)}));return d(...t),e}:d}microDebounce(t,e=!1){let s,i=!1,r=!0;return(...o)=>{s=o,i?r=!0:(r=!0,e&&(r=!1,t(...s)),i=!0,this.__queueMicrotaskNative((()=>{i=!1,this.isDestructed||r&&t(...s)})))}}throttle(t,e,s=!1){let i,o,n,a=null;return(...s)=>{i=!0,n=s,e?a||(o=()=>{i?(t(...n),i=!1,a=this.setTimeout(o,(0,r.m)(e)?e():e),this.timers.set(o,a)):a=null},o()):t(...n)}}promise(t){let e=()=>{};const s=new Promise(((s,i)=>(this.promisesRejections.add(i),e=i,t(s,i))));return s.finally||"undefined"==typeof process||"es2021"===c.ES||(s.finally=t=>(s.then(t).catch(t),s)),s.finally((()=>{this.promisesRejections.delete(e)})).catch((()=>null)),s.rejectCallback=e,s}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise((e=>{t.then((t=>(e("fulfilled"),t)),(t=>{throw e("rejected"),t})),this.setTimeout((()=>{e("pending")}),100)}));const e={};return Promise.race([t,e]).then((t=>t===e?"pending":"fulfilled"),(()=>"rejected"))}requestIdleCallback(t,e){const s=this.requestIdleCallbackNative(t,e);return this.requestsIdle.add(s),s}requestIdlePromise(t){return this.promise((e=>{const s=this.requestIdleCallback((()=>e(s)),t)}))}cancelIdleCallback(t){return this.requestsIdle.delete(t),this.cancelIdleCallbackNative(t)}requestAnimationFrame(t){const e=requestAnimationFrame(t);return this.requestsRaf.add(e),e}cancelAnimationFrame(t){this.requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.requestsIdle.forEach((t=>this.cancelIdleCallback(t))),this.requestsRaf.forEach((t=>this.cancelAnimationFrame(t))),this.timers.forEach((t=>(0,i.g)(this.timers.get(t)))),this.timers.clear(),this.promisesRejections.forEach((t=>t())),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}}},45113(t,e,s){"use strict";s.d(e,{w(){return l}});var i=s(40332),r=s(17332),o=s(29411),n=s(21317);const a=new Map;class l{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,i.kebabCase)(((0,i.isFunction)(this.className)?this.className():"")||(0,i.getClassName)(this))),this.__componentName}getFullElName(t,e,s){const r=[this.componentName];return t&&(t=t.replace(/[^a-z0-9-]/gi,"-"),r.push("__"+t)),e&&(r.push("_",e),r.push("_",(0,i.isVoid)(s)?"true":""+s)),r.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,e){return(0,i.get)(t,e||this)}get isReady(){return this.componentStatus===o.n.ready}get isDestructed(){return this.componentStatus===o.n.destructed}get isInDestruct(){return o.n.beforeDestruct===this.componentStatus||o.n.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(o.n.beforeDestruct,(()=>!this.isInDestruct&&this.destruct())),this}constructor(){this.async=new n.e,this.ownerWindow=window,this.__componentStatus=o.n.beforeInit,this.uid="jodit-uid-"+(0,r.fe)()}destruct(){this.setStatus(o.n.destructed),this.async&&(this.async.destruct(),this.async=void 0),a.get(this)&&a.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,e){if(t===this.__componentStatus)return;e===this&&(this.__componentStatus=t);const s=Object.getPrototypeOf(this);s&&(0,i.isFunction)(s.setStatusComponent)&&s.setStatusComponent(t,e);const r=a.get(this),o=r?.[t];o&&o.length&&o.forEach((t=>t(e)))}hookStatus(t,e){let s=a.get(this);s||(s={},a.set(this,s)),s[t]||(s[t]=[]),s[t].push(e)}static isInstanceOf(t,e){return t instanceof e}}l.STATUSES=o.n},90549(t,e,s){"use strict";s.d(e,{wA(){return r.w},n$(){return i.n},Hr(){return o}});var i=s(29411),r=s(45113);class o extends r.w{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...e){return this.j.i18n(t,...e)}setParentView(t){return this.jodit=t,t.components.add(this),this}constructor(t){super(),this.setParentView(t)}destruct(){return this.j.components.delete(this),super.destruct()}}},29411(t,e,s){"use strict";s.d(e,{n(){return i}});const i={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},86893(t,e,s){"use strict";s.r(e),s.d(e,{ACCURACY(){return A},APP_VERSION(){return i},BASE_PATH(){return it},BR(){return O},CLIPBOARD_ID(){return nt},COMMAND_KEYS(){return q},EMULATE_DBLCLICK_TIMEOUT(){return X},ES(){return r},HOMEPAGE(){return l},INSEPARABLE_TAGS(){return _},INSERT_AS_HTML(){return K},INSERT_AS_TEXT(){return Z},INSERT_CLEAR_HTML(){return J},INSERT_ONLY_TEXT(){return Q},INVISIBLE_SPACE(){return c},INVISIBLE_SPACE_REG_EXP(){return d},INVISIBLE_SPACE_REG_EXP_END(){return u},INVISIBLE_SPACE_REG_EXP_START(){return p},IS_BLOCK(){return v},IS_ES_NEXT(){return o},IS_IE(){return W},IS_INLINE(){return b},IS_MAC(){return et},IS_PROD(){return n},IS_TEST(){return a},KEY_ALIASES(){return st},KEY_ALT(){return k},KEY_BACKSPACE(){return E},KEY_DELETE(){return z},KEY_DOWN(){return P},KEY_ENTER(){return j},KEY_ESC(){return I},KEY_F3(){return D},KEY_LEFT(){return T},KEY_META(){return S},KEY_RIGHT(){return M},KEY_SPACE(){return N},KEY_TAB(){return x},KEY_UP(){return L},LIST_TAGS(){return y},MARKER_CLASS(){return G},MODE_SOURCE(){return F},MODE_SPLIT(){return $},MODE_WYSIWYG(){return H},NBSP_SPACE(){return h},NEARBY(){return R},NO_EMPTY_TAGS(){return C},PARAGRAPH(){return B},PASSIVE_EVENTS(){return lt},SAFE_COUNT_CHANGE_CALL(){return tt},SOURCE_CONSUMER(){return at},SPACE_REG_EXP(){return f},SPACE_REG_EXP_END(){return g},SPACE_REG_EXP_START(){return m},TEMP_ATTR(){return rt},TEXT_HTML(){return U},TEXT_PLAIN(){return V},TEXT_RTF(){return Y},lang(){return ot}});const i="4.0.0-beta.41",r="es2021",o=!0,n=!0,a=!1,l="https://xdsoft.net/jodit/",c="\ufeff",h=" ",d=()=>/[\uFEFF]/g,u=()=>/[\uFEFF]+$/g,p=()=>/^[\uFEFF]+/g,f=()=>/[\s\n\t\r\uFEFF\u200b]+/g,m=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,g=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,v=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,b=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,y=new Set(["ul","ol"]),w=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],_=new Set([...w,"br","hr"]),C=new Set(w),S="Meta",E="Backspace",x="Tab",j="Enter",I="Escape",k="Alt",T="ArrowLeft",L="ArrowUp",M="ArrowRight",P="ArrowDown",N="Space",z="Delete",D="F3",R=5,A=10,q=[S,E,z,L,P,M,T,j,I,D,x],O="br",B="p",H=1,F=2,$=3,W="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),V=W?"text":"text/plain",U=W?"html":"text/html",Y=W?"rtf":"text/rtf",G="jodit-selection_marker",X=300,K="insert_as_html",J="insert_clear_html",Z="insert_as_text",Q="insert_only_text",tt=10,et="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),st={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:et?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},it=(()=>{if("undefined"==typeof document)return"";const t=document.currentScript,e=t=>{const e=t.split("/");return/\.js/.test(e[e.length-1])?e.slice(0,e.length-1).join("/")+"/":t};if(t)return e(t.src);const s=document.querySelectorAll("script[src]");return s&&s.length?e(s[s.length-1].src):window.location.href})(),rt="data-jodit-temp",ot={},nt="clipboard",at="source-consumer",lt=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},11441(t,e,s){"use strict";function i(t){class e extends t{constructor(...t){super(...t),this.constructor===e&&(this instanceof e||Object.setPrototypeOf(this,e.prototype),this.setStatus("ready"))}}return e}s.d(e,{w(){return i}})},55773(t,e,s){"use strict";s.d(e,{D(){return n},P(){return a}});var i=s(1243),r=s(90549),o=s(56964);function n(t,e=!1,s="debounce"){return(n,a)=>{const l=n[a];if(!(0,i.mf)(l))throw(0,o.vU)("Handler must be a Function");return n.hookStatus(r.n$.ready,(r=>{const{async:o}=r,n=(0,i.mf)(t)?t(r):t;Object.defineProperty(r,a,{configurable:!0,value:o[s](r[a].bind(r),(0,i.hj)(n)||(0,i.PO)(n)?n:r.defaultTimeout,e)})})),{configurable:!0,get(){return l.bind(this)}}}}function a(t,e=!1){return n(t,e,"throttle")}s(52378)},70669(t,e,s){"use strict";s.d(e,{s(){return r}});var i=s(42096);function r(...t){return e=>{const s=e.prototype;for(let e=0;t.length>e;e++){const r=t[e],o=Object.getOwnPropertyNames(r.prototype);for(let t=0;o.length>t;t++){const e=o[t],n=Object.getOwnPropertyDescriptor(r.prototype,e);null!=n&&(0,i.m)(n.value)&&!(0,i.m)(s[e])&&Object.defineProperty(s,e,{enumerable:!0,configurable:!0,writable:!0,value(...t){return n.value.call(this,...t)}})}}}}},68574(t,e,s){"use strict";s.r(e),s.d(e,{autobind(){return x},cache(){return a},cacheHTML(){return l},component(){return c.w},debounce(){return h.D},derive(){return _.s},getPropertyDescriptor(){return w.w7},hook(){return m},idle(){return f},nonenumerable(){return g},persistent(){return b},throttle(){return h.P},wait(){return y},watch(){return w.YP}});var i=s(1243),r=s(41579),o=s(24263),n=s(29411);function a(t,e,s){const i=s.get;if(!i)throw(0,r.vU)("Getter property descriptor expected");s.get=function(){const t=i.call(this);return t&&!0===t.noCache||Object.defineProperty(this,e,{configurable:s.configurable,enumerable:s.enumerable,writable:!1,value:t}),t}}function l(t,e,s){const a=s.value;if(!(0,i.mf)(a))throw(0,r.vU)("Handler must be a Function");let l=!0;const c=new WeakMap;s.value=function(...t){if(l&&c.has(this.constructor))return c.get(this.constructor).cloneNode(!0);const e=a.apply(this,t);return l&&o.i.isElement(e)&&c.set(this.constructor,e),l?e.cloneNode(!0):e},t.hookStatus(n.n.ready,(t=>{const e=(0,i.f2)(t)?t:t.jodit;l=!!e.options.cache}))}var c=s(11441),h=s(55773),d=s(90549),u=s(42096),p=s(56964);function f(){return(t,e)=>{if(!(0,u.m)(t[e]))throw(0,p.vU)("Handler must be a Function");t.hookStatus(d.n$.ready,(t=>{const{async:s}=t,i=t[e];t[e]=(...e)=>s.requestIdleCallback(i.bind(t,...e))}))}}function m(t){return(e,s)=>{if(!(0,u.m)(e[s]))throw(0,p.vU)("Handler must be a Function");e.hookStatus(t,(t=>{t[s].call(t)}))}}const g=(t,e)=>{!1!==(Object.getOwnPropertyDescriptor(t,e)||{}).enumerable&&Object.defineProperty(t,e,{enumerable:!1,set(t){Object.defineProperty(this,e,{enumerable:!1,writable:!0,value:t})}})};var v=s(96574);function b(t,e){t.hookStatus(n.n.ready,(t=>{const s=(0,v.f)(t)?t:t.jodit,i=`${s.options.namespace}${t.componentName}_prop_${e}`,r=t[e];Object.defineProperty(t,e,{get:()=>s.storage.get(i)??r,set(t){s.storage.set(i,t)}})}))}function y(t){return(e,s)=>{if(!(0,u.m)(e[s]))throw(0,p.vU)("Handler must be a Function");e.hookStatus(n.n.ready,(e=>{const{async:i}=e,r=e[s];let o=0;Object.defineProperty(e,s,{configurable:!0,value:function s(...n){i.clearTimeout(o),t(e)?r.apply(e,n):o=i.setTimeout((()=>s(...n)),10)}})}))}}var w=s(46163),_=s(70669);function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t=>typeof t:t=>t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t,C(t)}function S(t,e,s){var i=s.value;if("function"!=typeof i)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(C(i)));var r=!1;return{configurable:!0,get(){if(r||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof i)return i;var s=i.bind(this);return r=!0,Object.defineProperty(this,e,{configurable:!0,get(){return s},set(t){i=t,delete this[e]}}),r=!1,s},set(t){i=t}}}function E(t){var e;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?e=Reflect.ownKeys(t.prototype):(e=Object.getOwnPropertyNames(t.prototype),"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t.prototype)))),e.forEach((e=>{if("constructor"!==e){var s=Object.getOwnPropertyDescriptor(t.prototype,e);"function"==typeof s.value&&Object.defineProperty(t.prototype,e,S(t,e,s))}})),t}function x(){return 1===arguments.length?E.apply(void 0,arguments):S.apply(void 0,arguments)}},46163(t,e,s){"use strict";s.d(e,{YP(){return d},w7(){return h}});var i=s(42096),r=s(79736),o=s(96574),n=s(88418),a=s(29411),l=s(14556),c=s(56964);function h(t,e){let s;do{s=Object.getOwnPropertyDescriptor(t,e),t=Object.getPrototypeOf(t)}while(!s&&t);return s}function d(t,e){return(s,d)=>{if(!(0,i.m)(s[d]))throw(0,c.vU)("Handler must be a Function");const u=e?.immediately??!0,p=e?.context,f=e=>{const a=(0,o.f)(e)?e:e.jodit;let c=(t,...s)=>{if(!e.isInDestruct)return e[d](t,...s)};u||(c=e.async.microDebounce(c,!0)),(0,l.C)(t).forEach((t=>{if(/:/.test(t)){const[s,r]=t.split(":");let o=p;return s.length&&(o=e.get(s)),(0,i.m)(o)&&(o=o(e)),a.events.on(o||e,r,c),o||a.events.on(r,c),void e.hookStatus("beforeDestruct",(()=>{a.events.off(o||e,r,c).off(r,c)}))}const o=t.split("."),[l]=o,d=o.slice(1);let u=e[l];(0,r.P)(u)&&(0,n.L)(u).on("change."+d.join("."),c);const f=h(s,l);Object.defineProperty(e,l,{configurable:!0,set(t){const s=u;s!==t&&(u=t,f&&f.set&&f.set.call(e,t),(0,r.P)(u)&&(u=(0,n.L)(u),u.on("change."+d.join("."),c)),c(l,s,u))},get:()=>f&&f.get?f.get.call(e):u})}))};(0,i.m)(s.hookStatus)?s.hookStatus(a.n.ready,f):f(s)}}},24263(t,e,s){"use strict";s.d(e,{i(){return l}});var i=s(86893),r=s(1243),o=s(12557),n=s(89170),a=s(76502);class l{static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapInline(t,e,s){let i,o=t,n=t;s.s.save();let a=!1;do{a=!1,i=o.previousSibling,i&&!l.isBlock(i)&&(a=!0,o=i)}while(a);do{a=!1,i=n.nextSibling,i&&!l.isBlock(i)&&(a=!0,n=i)}while(a);const c=(0,r.HD)(e)?s.createInside.element(e):e;o.parentNode&&o.parentNode.insertBefore(c,o);let h=o;for(;h&&(h=o.nextSibling,c.appendChild(o),o!==n&&h);)o=h;return s.s.restore(),c}static wrap(t,e,s){const i=(0,r.HD)(e)?s.element(e):e;if(l.isNode(t)){if(!t.parentNode)throw(0,a.error)("Element should be in DOM");t.parentNode.insertBefore(i,t),i.appendChild(t)}else{const e=t.extractContents();t.insertNode(i),i.appendChild(e)}return i}static unwrap(t){const e=t.parentNode;if(e){for(;t.firstChild;)e.insertBefore(t.firstChild,t);l.safeRemove(t)}}static between(t,e,s){let i=t;for(;i&&i!==e&&(t===i||!s(i));){let t=i.firstChild||i.nextSibling;if(!t){for(;i&&!i.nextSibling;)i=i.parentNode;t=i?.nextSibling}i=t}}static replace(t,e,s,i=!1,n=!1){(0,r.FP)(e)&&(e=s.fromHTML(e));const a=(0,r.HD)(e)?s.element(e):e;if(!n)for(;t.firstChild;)a.appendChild(t.firstChild);return i&&l.isElement(t)&&l.isElement(a)&&(0,o.qo)(t.attributes).forEach((t=>{a.setAttribute(t.name,t.value)})),t.parentNode&&t.parentNode.replaceChild(a,t),a}static isEmptyTextNode(t){return l.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(i.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return l.each(t,(t=>l.isEmptyTextNode(t)))}static isContentEditable(t,e){return l.isNode(t)&&!l.closest(t,(t=>l.isElement(t)&&"false"===t.getAttribute("contenteditable")),e)}static isEmpty(t,e=i.NO_EMPTY_TAGS){if(!t)return!0;let s;s=(0,r.mf)(e)?e:t=>e.has(t.nodeName.toLowerCase());const o=t=>null==t.nodeValue||0===(0,n.fy)(t.nodeValue).length;return l.isText(t)?o(t):!(l.isElement(t)&&s(t))&&l.each(t,(t=>{if(l.isText(t)&&!o(t)||l.isElement(t)&&s(t))return!1}))}static isNode(t){return!!(t&&(0,r.HD)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,r.mf)(t.appendChild))}static isCell(t){return l.isNode(t)&&/^(td|th)$/i.test(t.nodeName)}static isList(t){return l.isTag(t,i.LIST_TAGS)}static isLeaf(t){return l.isTag(t,"li")}static isImage(t){return l.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,r.nj)(t)&&"object"==typeof t&&l.isNode(t)&&i.IS_BLOCK.test(t.nodeName)}static isText(t){return!(!t||t.nodeType!==Node.TEXT_NODE)}static isElement(t){if(!l.isNode(t))return!1;const e=t.ownerDocument?.defaultView;return!(!e||t.nodeType!==Node.ELEMENT_NODE)}static isFragment(t){if(!l.isNode(t))return!1;const e=t.ownerDocument?.defaultView;return!(!e||t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(t){if(!l.isNode(t))return!1;const e=t.ownerDocument?.defaultView;return!!(e&&t instanceof e.HTMLElement)}static isInlineBlock(t){return l.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf(""+(0,a.css)(t,"display"))}static canSplitBlock(t){return!(0,r.nj)(t)&&l.isHTMLElement(t)&&l.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static last(t,e){let s=t?.lastChild;if(!s)return null;do{if(e(s))return s;let i=s.lastChild;if(i||(i=s.previousSibling),!i&&s.parentNode!==t){do{s=s.parentNode}while(s&&!s?.previousSibling&&s.parentNode!==t);i=s?.previousSibling}s=i}while(s);return null}static prev(t,e,s,i=!0){return l.find(t,e,s,!1,i)}static next(t,e,s,i=!0){return l.find(t,e,s,!0,i)}static prevWithClass(t,e){return l.prev(t,(t=>l.isElement(t)&&t.classList.contains(e)),t.parentNode)}static nextWithClass(t,e){return l.next(t,(t=>l.isElement(t)&&t.classList.contains(e)),t.parentNode)}static find(t,e,s,i=!0,r=!0){const o=this.nextGen(t,s,i,r);let n=o.next();for(;!n.done;){if(e(n.value))return n.value;n=o.next()}return null}static*nextGen(t,e,s=!0,i=!0){const r=[];let o=t;do{let e=s?o.nextSibling:o.previousSibling;for(;e;)r.unshift(e),e=s?e.nextSibling:e.previousSibling;yield*this.runInStack(t,r,s,i),o=o.parentNode}while(o&&o!==e);return null}static each(t,e,s=!0){const i=this.eachGen(t,s);let r=i.next();for(;!r.done;){if(!1===e(r.value))return!1;r=i.next()}return!0}static eachGen(t,e=!0){return this.runInStack(t,[t],e)}static*runInStack(t,e,s,i=!0){for(;e.length;){const r=e.pop();if(i){let t=s?r.lastChild:r.firstChild;for(;t;)e.push(t),t=s?t.previousSibling:t.nextSibling}t!==r&&(yield r)}}static findWithCurrent(t,e,s,i="nextSibling",r="firstChild"){let o=t;do{if(e(o))return o||null;if(r&&o&&o[r]){const t=l.findWithCurrent(o[r],e,o,i,r);if(t)return t}for(;o&&!o[i]&&o!==s;)o=o.parentNode;o&&o[i]&&o!==s&&(o=o[i])}while(o&&o!==s);return null}static findSibling(t,e=!0,s=(t=>!l.isEmptyTextNode(t))){let i=l.sibling(t,e);for(;i&&!s(i);)i=l.sibling(i,e);return i&&s(i)?i:null}static findNotEmptySibling(t,e){return l.findSibling(t,e,(t=>!l.isEmptyTextNode(t)&&!!(!l.isText(t)||t.nodeValue?.length&&(0,n.fy)(t.nodeValue))))}static findNotEmptyNeighbor(t,e,s){return(0,a.call)(e?l.prev:l.next,t,(t=>!(!t||l.isText(t)&&!(0,n.fy)(t?.nodeValue||"").length)),s)}static sibling(t,e){return e?t.previousSibling:t.nextSibling}static up(t,e,s,i=!1){let r=t;if(!r)return null;do{if(e(r))return r;if(r===s||!r.parentNode)break;r=r.parentNode}while(r&&r!==s);return r===s&&i&&e(r)?r:null}static closest(t,e,s){let i;const o=t=>t.toLowerCase();if((0,r.mf)(e))i=e;else if((0,r.kJ)(e)||(0,r.DM)(e)){const t=(0,r.DM)(e)?e:new Set(e.map(o));i=e=>!(!e||!t.has(o(e.nodeName)))}else i=t=>!(!t||o(e)!==o(t.nodeName));return l.up(t,i,s)}static furthest(t,e,s){let i=null,r=t?.parentElement;for(;r&&r!==s;)e(r)&&(i=r),r=r?.parentElement;return i}static appendChildFirst(t,e){const s=t.firstChild;s?s!==e&&t.insertBefore(e,s):t.appendChild(e)}static after(t,e){const{parentNode:s}=t;s&&(s.lastChild===t?s.appendChild(e):s.insertBefore(e,t.nextSibling))}static before(t,e){const{parentNode:s}=t;s&&s.insertBefore(e,t)}static prepend(t,e){t.insertBefore(e,t.firstChild)}static append(t,e){(0,r.kJ)(e)?e.forEach((e=>{this.append(t,e)})):t.appendChild(e)}static moveContent(t,e,s=!1,i=(()=>!0)){const r=(t.ownerDocument||document).createDocumentFragment();(0,o.qo)(t.childNodes).filter((t=>!!i(t)||(l.safeRemove(t),!1))).forEach((t=>{r.appendChild(t)})),s&&e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}static isOrContains(t,e,s=!1){return t===e?!s:!!(e&&t&&this.up(e,(e=>e===t),t,!0))}static safeRemove(...t){t.forEach((t=>l.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t)))}static safeInsertNode(t,e){t.collapsed||t.deleteContents();const s=l.isFragment(e)?e.lastChild:e;t.insertNode(e),s&&t.setStartBefore(s),t.collapse(!0),[e.nextSibling,e.previousSibling].forEach((t=>l.isText(t)&&!t.nodeValue&&l.safeRemove(t)))}static hide(t){t&&((0,a.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;const e=(0,a.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=e||"")}static isTag(t,e){if(!this.isElement(t))return!1;const s=t.tagName.toLowerCase(),i=t.tagName.toUpperCase();if(e instanceof Set)return e.has(s)||e.has(i);const r=(0,o._2)(e).map((t=>(t+"").toLowerCase()));for(let t=0;r.length>t;t+=1)if(s===r[t]||i===r[t])return!0;return!1}static markTemporary(t,e){return e&&(0,a.attr)(t,e),(0,a.attr)(t,i.TEMP_ATTR,!0),t}static isTemporary(t){return!!l.isElement(t)&&((0,r._V)(t)||"true"===(0,a.attr)(t,i.TEMP_ATTR))}static replaceTemporaryFromString(t){return t.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(t){return(0,a.$$)(`[${i.TEMP_ATTR}]`,t)}}},64968(t,e,s){"use strict";s.d(e,{b(){return r.b},i(){return i.i}});var i=s(24263),r=s(33841)},33841(t,e,s){"use strict";s.d(e,{b(){return a}});var i=s(20255),r=s(73852),o=s(68574),n=s(24263);class a extends r.a{setWork(t){return this.isWorked&&this.break(),this.workNodes=n.i.eachGen(t,!this.options.reverse),this.isFinished=!1,this.startIdleRequest(),this}constructor(t,e={}){super(),this.async=t,this.options=e,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0}startIdleRequest(){this.idleId=this.async.requestIdleCallback(this.workPerform,{timeout:this.options.timeout??10})}break(t){this.isWorked&&(this.stop(),this.emit("break",t))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){super.destruct(),this.stop()}workPerform(t){if(this.workNodes){this.isWorked=!0;let e=0;const s=this.options.timeoutChunkSize??50;for(;!this.isFinished&&(t.timeRemaining()>0||t.didTimeout&&s>=e);){const t=this.workNodes.next();if(e+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this.startIdleRequest()}visitNode(t){return!(!t||void 0!==this.options.whatToShow&&t.nodeType!==this.options.whatToShow)&&(this.emit("visit",t)??!1)}}(0,i.gn)([o.autobind],a.prototype,"workPerform",null)},73852(t,e,s){"use strict";s.d(e,{a(){return i}});class i{constructor(){this.__map=new Map}on(t,e){return this.__map.has(t)||this.__map.set(t,new Set),this.__map.get(t)?.add(e),this}off(t,e){return this.__map.has(t)&&this.__map.get(t)?.delete(e),this}destruct(){this.__map.clear()}emit(t,...e){let s;return this.__map.has(t)&&this.__map.get(t)?.forEach((t=>{s=t(...e)})),s}}},4567(t,e,s){"use strict";s.d(e,{vp(){return u},DG(){return d},aN(){return f.a},rO(){return h},LO(){return m.L}});var i=s(24421),r=s(42096),o=s(49781),n=s(56964),a=s(14556),l=s(86893),c=(s(52378),s(1853));const h="JoditEventDefaultNamespace";class d{constructor(){this.__store=new Map}get(t,e){if(this.__store.has(e))return this.__store.get(e)[t]}indexOf(t,e,s){const i=this.get(t,e);if(i)for(let t=0;i.length>t;t+=1)if(i[t].originalCallback===s)return t;return!1}namespaces(t=!1){const e=(0,c.q)(this.__store.keys());return t?e.filter((t=>t!==h)):e}events(t){const e=this.__store.get(t);return e?Object.keys(e):[]}set(t,e,s,i=!1){let r=this.__store.get(e);r||(r={},this.__store.set(e,r)),void 0===r[t]&&(r[t]=[]),i?r[t].unshift(s):r[t].push(s)}clear(){this.__store.clear()}clearEvents(t,e){const s=this.__store.get(t);s&&s[e]&&(delete s[e],Object.keys(s).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}}class u{mute(t){return this.__mutedEvents.add(t??"*"),this}isMuted(t){return!(!t||!this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(t??"*"),this}__eachEvent(t,e){(0,a.C)(t).map((t=>t.trim())).forEach((t=>{const s=t.split(".");e.call(this,s[0],s[1]||h)}))}__getStore(t){if(!t)throw(0,n.vU)("Need subject");if(void 0===t[this.__key]){const e=new d;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:e})}return t[this.__key]}__removeStoreFromSubject(t){void 0!==t[this.__key]&&Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(t,e){const s=this.__doc.createEvent("HTMLEvents");(0,i.H)(e)?s.initEvent(e,!0,!0):(s.initEvent(e.type,e.bubbles,e.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach((t=>{Object.defineProperty(s,t,{value:e[t],enumerable:!0})})),Object.defineProperty(s,"originalEvent",{value:e,enumerable:!0})),t.dispatchEvent(s)}get current(){return this.currents[this.currents.length-1]}on(t,e,s,a){let c,h,d,u;if((0,i.H)(t)||(0,i.G)(t)?(c=this,h=t,d=e,u=s):(c=t,h=e,d=s,u=a),!(0,i.H)(h)&&!(0,i.G)(h)||0===h.length)throw(0,n.vU)("Need events names");if(!(0,r.m)(d))throw(0,n.vU)("Need event handler");if((0,o.k)(c))return c.forEach((t=>{this.on(t,h,d,u)})),this;const f=c,m=this.__getStore(f),g=this;let v=function(t,...e){if(!g.isMuted(t))return d&&d.call(this,...e)};return p(f)&&(v=function(t){if(!g.isMuted(t.type))return g.__prepareEvent(t),d&&!1===d.call(this,t)?(t.preventDefault(),t.stopImmediatePropagation(),!1):void 0}),this.__eachEvent(h,((t,e)=>{if(0===t.length)throw(0,n.vU)("Need event name");if(!1===m.indexOf(t,e,d)&&(m.set(t,e,{event:t,originalCallback:d,syntheticCallback:v},u?.top),p(f))){const e=l.PASSIVE_EVENTS.has(t)?{passive:!0,capture:u?.capture??!1}:u?.capture??!1;v.options=e,f.addEventListener(t,v,e),this.__memoryDOMSubjectToHandler(f,v)}})),this}__memoryDOMSubjectToHandler(t,e){const s=this.__domEventsMap.get(t)||new Set;s.add(e),this.__domEventsMap.set(t,s)}__unmemoryDOMSubjectToHandler(t,e){const s=this.__domEventsMap,i=s.get(t)||new Set;i.delete(e),i.size?s.set(t,i):s.delete(t)}one(t,e,s,r){let o,n,a,l;(0,i.H)(t)||(0,i.G)(t)?(o=this,n=t,a=e,l=s):(o=t,n=e,a=s,l=r);const c=(...t)=>(this.off(o,n,c),a(...t));return this.on(o,n,c,l),this}off(t,e,s){let n,a,l;if((0,i.H)(t)||(0,i.G)(t)?(n=this,a=t,l=e):(n=t,a=e,l=s),(0,o.k)(n))return n.forEach((t=>{this.off(t,a,l)})),this;const c=n,d=this.__getStore(c);if(!(0,i.H)(a)&&!(0,i.G)(a)||0===a.length)return d.namespaces().forEach((t=>{this.off(c,"."+t)})),this.__removeStoreFromSubject(c),this;const u=t=>{p(c)&&(c.removeEventListener(t.event,t.syntheticCallback,t.syntheticCallback.options??!1),this.__unmemoryDOMSubjectToHandler(c,t.syntheticCallback))},f=(t,e)=>{if(""===t)return void d.events(e).forEach((t=>{""!==t&&f(t,e)}));const s=d.get(t,e);if(s&&s.length)if((0,r.m)(l)){const i=d.indexOf(t,e,l);!1!==i&&(u(s[i]),s.splice(i,1),s.length||d.clearEvents(e,t))}else s.forEach(u),s.length=0,d.clearEvents(e,t)};return this.__eachEvent(a,((t,e)=>{e===h?d.namespaces().forEach((e=>{f(t,e)})):f(t,e)})),d.isEmpty()&&this.__removeStoreFromSubject(c),this}stopPropagation(t,e){const s=(0,i.H)(t)?this:t,r=(0,i.H)(t)?t:e;if("string"!=typeof r)throw(0,n.vU)("Need event names");const o=this.__getStore(s);this.__eachEvent(r,((t,e)=>{const i=o.get(t,e);i&&this.__stopped.push(i),e===h&&o.namespaces(!0).forEach((e=>this.stopPropagation(s,t+"."+e)))}))}__removeStop(t){if(t){const e=this.__stopped.indexOf(t);-1!==e&&this.__stopped.splice(0,e+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,e,...s){let r,o;const a=(0,i.H)(t)?this:t,l=(0,i.H)(t)?t:e,c=(0,i.H)(t)?[e,...s]:s;if(!p(a)&&!(0,i.H)(l))throw(0,n.vU)("Need events names");const d=this.__getStore(a);return!(0,i.H)(l)&&p(a)?this.__triggerNativeEvent(a,e):this.__eachEvent(l,((t,e)=>{if(p(a))this.__triggerNativeEvent(a,t);else{const s=d.get(t,e);if(s)try{[...s].every((e=>!this.__isStopped(s)&&(this.currents.push(t),o=e.syntheticCallback.call(a,t,...c),this.currents.pop(),void 0!==o&&(r=o),!0)))}finally{this.__removeStop(s)}e!==h||p(a)||d.namespaces().filter((t=>t!==e)).forEach((e=>{const s=this.fire.call(this,a,t+"."+e,...c);void 0!==s&&(r=s)}))}})),r}constructor(t){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=document,this.__prepareEvent=t=>{t.cancelBubble||(t.composed&&(0,r.m)(t.composedPath)&&t.composedPath()[0]&&Object.defineProperty(t,"target",{value:t.composedPath()[0],configurable:!0,enumerable:!0}),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.currents=[],this.__stopped=[],this.__isDestructed=!1,t&&(this.__doc=t),this.__key+=(new Date).getTime()}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach(((t,e)=>{this.off(e)})),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}}function p(t){return(0,r.m)(t.addEventListener)}var f=s(73852),m=s(88418)},88418(t,e,s){"use strict";s.d(e,{L(){return c}});var i=s(49781),r=s(32756),o=s(79736),n=s(46163);const a=Symbol("observable-object");function l(t){return void 0!==t[a]}function c(t){if(l(t))return t;const e={},s={},c=(e,r)=>(0,i.k)(e)?(e.map((t=>c(t,r))),t):(s[e]||(s[e]=[]),s[e].push(r),t),h=(r,...o)=>{if((0,i.k)(r))r.map((t=>h(t,...o)));else try{!e[r]&&s[r]&&(e[r]=!0,s[r].forEach((e=>e.call(t,...o))))}finally{e[r]=!1}},d=(e,s=[])=>{const i={};l(e)||(Object.defineProperty(e,a,{enumerable:!1,value:!0}),Object.keys(e).forEach((a=>{const l=a,c=s.concat(l).filter((t=>t.length));i[l]=e[l];const u=(0,n.w7)(e,l);Object.defineProperty(e,l,{set(e){const s=i[l];if(!(0,r.L)(i[l],e)){h(["beforeChange","beforeChange."+c.join(".")],l,e),(0,o.P)(e)&&d(e,c),u&&u.set?u.set.call(t,e):i[l]=e;const r=[];h(["change",...c.reduce(((t,e)=>(r.push(e),t.push("change."+r.join(".")),t)),[])],c.join("."),s,e?.valueOf?e.valueOf():e)}},get(){return u&&u.get?u.get.call(t):i[l]},enumerable:!0,configurable:!0}),(0,o.P)(i[l])&&d(i[l],c)})),Object.defineProperty(t,"on",{value:c}))};return d(t),t}},17332(t,e,s){"use strict";s.d(e,{TB(){return w},ZO(){return y},as(){return d},fe(){return f},pw(){return m},qz(){return g},xl(){return v}});var i=s(90262),r=s(64968),o=s(4567),n=s(77892),a=s(96574),l=s(87247),c=s(11278),h=s(86893);const d={};let u=1;const p=new Set;function f(){function t(){return u+=10*(Math.random()+1),Math.round(u).toString(16)}let e=t();for(;p.has(e);)e=t();return p.add(e),e}const m=new i.h,g={},v=t=>{Object.keys(t).forEach((e=>{h.lang[e]?Object.assign(h.lang[e],t[e]):h.lang[e]=t[e]}))},b=new WeakMap;function y(t,e,s="div",i=!1){const o=e?(0,l.g)(e.prototype):"jodit-utils",h=b.get(t)||{},d=o+s,u=(0,a.f)(t)?t:t.j;if(!h[d]){let e=u.c,a=(0,n.Z)(t)&&t.o.shadowRoot?t.o.shadowRoot:t.od.body;if(i&&(0,n.Z)(t)&&t.od!==t.ed){e=t.createInside;const i="style"===s?t.ed.head:t.ed.body;a=(0,n.Z)(t)&&t.o.shadowRoot?t.o.shadowRoot:i}const l=e.element(s,{className:`jodit jodit-${(0,c.G)(o)}-container jodit-box`});l.classList.add("jodit_theme_"+(u.o.theme||"default")),a.appendChild(l),h[d]=l,t.hookStatus("beforeDestruct",(()=>{r.i.safeRemove(l),delete h[d],Object.keys(h).length&&b.delete(t)})),b.set(t,h)}return h[d].classList.remove("jodit_theme_default","jodit_theme_dark"),h[d].classList.add("jodit_theme_"+(u.o.theme||"default")),h[d]}const w=new o.vp},34578(t,e,s){"use strict";s.d(e,{_(){return r}});var i=s(49781);const r=t=>(0,i.k)(t)?t:[t]},12557(t,e,s){"use strict";s.d(e,{C1(){return r.C},_2(){return i._},qo(){return o.q}});var i=s(34578),r=s(14556),o=s(1853)},14556(t,e,s){"use strict";function i(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}s.d(e,{C(){return i}})},1853(t,e,s){"use strict";s.d(e,{q(){return o}});var i=s(80861),r=s(28069);const o=(...t)=>((0,r.Q)(Array.from)?Array.from:(0,i.m)("Array.from")??Array.from).apply(Array,t)},4696(t,e,s){"use strict";s.d(e,{g(){return i.g},i(){return i.i}});var i=s(27512)},27512(t,e,s){"use strict";function i(t,e,...s){return e?window.setTimeout(t,e,...s):(t.call(null,...s),0)}function r(t){window.clearTimeout(t)}s.d(e,{g(){return r},i(){return i}})},1243(t,e,s){"use strict";function i(){let t=!0;try{const e=document.createElement("input");e.type="color",e.value="!",t="color"===e.type&&"!"!==e.value}catch(e){t=!1}return t}s.d(e,{EO(){return i},Zt(){return g},kJ(){return r.k},jn(){return a.j},Z$(){return m},Xy(){return l.X},LP(){return l.L},mf(){return o.m},FP(){return h},I4(){return d},Gu(){return f},GN(){return b},Zu(){return y.Z},A1(){return _},_V(){return T._},QC(){return C.Q},hj(){return S.h},kE(){return v.k},PO(){return E.P},tI(){return x.t},DM(){return n},HD(){return c.H},GI(){return c.G},PX(){return j.P},r1(){return I},f2(){return w.f},nj(){return p.n},FJ(){return k.F}});var r=s(49781),o=s(42096);function n(t){return!!t&&(0,o.m)(t.has)&&(0,o.m)(t.add)&&(0,o.m)(t.delete)}var a=s(67749),l=s(32756),c=s(24421);const h=t=>(0,c.H)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""));function d(t){return-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/)}var u=s(24263),p=s(24021);function f(t){return!(0,p.n)(t)&&(0,o.m)(t.init)}function m(t){return!(0,p.n)(t)&&(0,o.m)(t.destruct)}function g(t){return!(0,p.n)(t)&&u.i.isElement(t.container)}var v=s(57649);function b(t){return(0,c.H)(t)&&(0,v.k)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}var y=s(77892),w=s(96574);const _=t=>(0,c.H)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t);var C=s(28069),S=s(61817),E=s(79736),x=s(26335),j=s(64350);function I(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_.]/.test(t)}var k=s(85994),T=s(37204)},49781(t,e,s){"use strict";function i(t){return Array.isArray(t)}s.d(e,{k(){return i}})},67749(t,e,s){"use strict";function i(t){return"boolean"==typeof t}s.d(e,{j(){return i}})},32756(t,e,s){"use strict";s.d(e,{L(){return o},X(){return r}});var i=s(42554);function r(t,e){return t===e||(0,i.P)(t)===(0,i.P)(e)}function o(t,e){return t===e}},42096(t,e,s){"use strict";function i(t){return"function"==typeof t}s.d(e,{m(){return i}})},77892(t,e,s){"use strict";s.d(e,{Z(){return r}});var i=s(42096);function r(t){return!!(t&&t instanceof Object&&(0,i.m)(t.constructor)&&("undefined"!=typeof Jodit&&t instanceof Jodit||t.isJodit))}},37204(t,e,s){"use strict";s.d(e,{_(){return o}});var i=s(24263),r=s(86893);function o(t){return i.i.isNode(t)&&i.i.isTag(t,"span")&&t.hasAttribute("data-"+r.MARKER_CLASS)}},28069(t,e,s){"use strict";function i(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(t+""))}s.d(e,{Q(){return i}})},61817(t,e,s){"use strict";function i(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}s.d(e,{h(){return i}})},57649(t,e,s){"use strict";s.d(e,{k(){return r}});var i=s(24421);function r(t){if((0,i.H)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},79736(t,e,s){"use strict";s.d(e,{P(){return r}});var i=s(85994);function r(t){return!(!t||"object"!=typeof t||t.nodeType||(0,i.F)(t)||t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},26335(t,e,s){"use strict";function i(t){return t&&"function"==typeof t.then}s.d(e,{t(){return i}})},24421(t,e,s){"use strict";s.d(e,{G(){return o},H(){return r}});var i=s(49781);function r(t){return"string"==typeof t}function o(t){return(0,i.k)(t)&&r(t[0])}},64350(t,e,s){"use strict";function i(t){if(t.includes(" "))return!1;if("undefined"!=typeof URL)try{const e=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(e.protocol)}catch(t){return!1}const e=document.createElement("a");return e.href=t,!!e.hostname}s.d(e,{P(){return i}})},96574(t,e,s){"use strict";s.d(e,{f(){return r}});var i=s(42096);function r(t){return!!(t&&t instanceof Object&&(0,i.m)(t.constructor)&&t.isView)}},24021(t,e,s){"use strict";function i(t){return null==t}s.d(e,{n(){return i}})},85994(t,e,s){"use strict";function i(t){return null!=t&&t===t.window}s.d(e,{F(){return i}})},13203(t,e,s){"use strict";s.d(e,{h(){return i}});const i=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);if(!e)return"#000000";const s=parseInt(e[2],10),i=parseInt(e[3],10);let r=(parseInt(e[4],10)|i<<8|s<<16).toString(16).toUpperCase();for(;6>r.length;)r="0"+r;return e[1]+"#"+r}},61354(t,e,s){"use strict";s.d(e,{h(){return i.h}});var i=s(13203)},69678(t,e,s){"use strict";s.d(e,{Zs(){return l},pQ(){return h},$_(){return d},hU(){return b},eV(){return v.e},nA(){return v.n},oN(){return g}});var i=s(24263),r=s(54188),o=s(33941),n=s(86893);function a(t){return t.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,((t,e,s)=>{switch(s.toLowerCase()){case"pt":return(1.328*parseFloat(e)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(e)).toFixed(0)+"px"}return t}))}function l(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 s="",l=[];try{const c=e.contentDocument||(e.contentWindow?e.contentWindow.document:null);if(c){c.open(),c.write(t),c.close();try{for(let t=0;c.styleSheets.length>t;t+=1){const e=c.styleSheets[t].cssRules;for(let t=0;e.length>t;t+=1)""!==e[t].selectorText&&(l=(0,r.$$)(e[t].selectorText,c.body),l.forEach((s=>{s.style.cssText=a(e[t].style.cssText+";"+s.style.cssText)})))}}catch(t){if(!n.IS_PROD)throw t}i.i.each(c.body,(t=>{if(i.i.isElement(t)){const e=t,s=e.getAttribute("style");s&&(e.style.cssText=a(s)),e.hasAttribute("style")&&!e.getAttribute("style")&&e.removeAttribute("style")}})),s=c.firstChild?(0,o.f)(c.body.innerHTML):""}}catch{}finally{i.i.safeRemove(e)}return s&&(t=s),(0,o.f)(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}var c=s(1853);function h(t){-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let e="";try{const s=document.createElement("div");s.innerHTML=t;const r=[];s.firstChild&&i.i.each(s,(t=>{if(t)switch(t.nodeType){case Node.ELEMENT_NODE:switch(t.nodeName){case"STYLE":case"LINK":case"META":r.push(t);break;case"W:SDT":case"W:SDTPR":case"FONT":i.i.unwrap(t);break;default:(0,c.q)(t.attributes).forEach((e=>{-1===["src","href","rel","content"].indexOf(e.name.toLowerCase())&&t.removeAttribute(e.name)}))}break;case Node.TEXT_NODE:break;default:r.push(t)}})),i.i.safeRemove.apply(null,r),e=s.innerHTML}catch(t){}return e&&(t=e),(t=t.split(/(\n)/).filter(o.f).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}function d(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}var u=s(24421),p=s(76502);const f=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),m=new Set(["script","style"]);function g(t,e=document,s=null){const r=e.createElement("div");return(0,u.H)(t)?r.innerHTML=t:r.appendChild(t),(0,p.$$)("*",r).forEach((t=>{const r=t.parentNode;if(!r)return;if(s&&i.i.isTag(t,s)){const r=t.nodeName.toLowerCase(),o=i.i.isTag(t,["br","hr","input"])?`%%%jodit-single-${r}%%%`:`%%%jodit-${r}%%%${g(t.innerHTML,e,s)}%%%/jodit-${r}%%%`;return i.i.before(t,e.createTextNode(o)),void i.i.safeRemove(t)}if(i.i.isTag(t,m))return void i.i.safeRemove(t);if(!i.i.isTag(t,f))return;const o=t.nextSibling;i.i.isText(o)&&/^\s/.test(o.nodeValue||"")||o&&r.insertBefore(e.createTextNode(" "),o)})),(0,o.f)(r.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,((t,e,s,i)=>`<${e?"/":""}${i}>`))}var v=s(67128);function b(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}},67128(t,e,s){"use strict";s.d(e,{e(){return o},n(){return n}});var i=s(76502),r=s(24263);function o(t,e){(r.i.isElement(t)||r.i.isFragment(t))&&(e.removeOnError&&(n(t),(0,i.$$)("[onerror]",t).forEach((t=>n(t,e)))),e.safeJavaScriptLink&&(n(t),(0,i.$$)('a[href^="javascript"]',t).forEach((t=>n(t,e)))))}function n(t,{safeJavaScriptLink:e,removeOnError:s}={safeJavaScriptLink:!0,removeOnError:!0}){if(!r.i.isElement(t))return!1;let o=!1;s&&t.hasAttribute("onerror")&&((0,i.attr)(t,"onerror",null),o=!0);const n=t.getAttribute("href");return e&&n&&0===n.trim().indexOf("javascript")&&((0,i.attr)(t,"href",location.protocol+"//"+n),o=!0),o}},40332(t,e,s){"use strict";s.r(e),s.d(e,{CamelCaseToKebabCase(){return p.gP},NUMBER_FIELDS_REG(){return d.DO},applyStyles(){return h.Zs},asArray(){return n._2},camelCase(){return p.eV},cleanFromWord(){return h.pQ},clearTimeout(){return a.g},colorToHex(){return c.h},fuzzySearchIndex(){return p.Qy},getContentWidth(){return u.FK},getScrollParent(){return u.rP},hasBrowserColorPicker(){return l.EO},hasContainer(){return l.Zt},htmlspecialchars(){return h.$_},i18n(){return p.ag},innerWidth(){return u.x9},isArray(){return l.kJ},isBoolean(){return l.jn},isDestructable(){return l.Z$},isEqual(){return l.Xy},isFastEqual(){return l.LP},isFunction(){return l.mf},isHTML(){return l.FP},isHtmlFromWord(){return l.I4},isInitable(){return l.Gu},isInt(){return l.GN},isJoditObject(){return l.Zu},isLicense(){return l.A1},isMarker(){return l._V},isNativeFunction(){return l.QC},isNumber(){return l.hj},isNumeric(){return l.kE},isPlainObject(){return l.PO},isPromise(){return l.tI},isSet(){return l.DM},isString(){return l.HD},isStringArray(){return l.GI},isURL(){return l.PX},isValidName(){return l.r1},isViewObject(){return l.f2},isVoid(){return l.nj},isWindow(){return l.FJ},kebabCase(){return p.GL},nl2br(){return h.hU},normalizeColor(){return d.ut},normalizeCssNumericValue(){return d.xI},normalizeCssValue(){return d.Zh},normalizeKeyAliases(){return d.T2},normalizeLicense(){return d.Pd},normalizePath(){return d.AH},normalizeRelativePath(){return d.Jf},normalizeSize(){return d.aC},normalizeUrl(){return d.D5},offset(){return u.cv},position(){return u.eL},safeHTML(){return h.eV},sanitizeHTMLElement(){return h.nA},setTimeout(){return a.i},size(){return u.dp},splitArray(){return n.C1},sprintf(){return p.gB},stringify(){return p.Pz},stripTags(){return h.oN},toArray(){return n.qo},trim(){return p.fy},trimInv(){return p.as},ucfirst(){return p.Ps}});var i=s(76502),r={};for(var o in i)"default"!==o&&(r[o]=(t=>i[t]).bind(0,o));s.d(e,r);var n=s(12557),a=s(4696),l=s(1243),c=s(61354),h=s(69678),d=s(46361),u=s(36727),p=s(89170)},46361(t,e,s){"use strict";s.d(e,{DO(){return d.DO},ut(){return p},xI(){return d.xI},Zh(){return d.Zh},T2(){return o},Pd(){return n},AH(){return a},Jf(){return l},aC(){return c},D5(){return h}});var i=s(33941),r=s(86893);function o(t){const e={},s={meta:1,ctrl:2,control:2,alt:3,shift:4};return t.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map((t=>(0,i.f)(t.toLowerCase()))).map((t=>r.KEY_ALIASES[t]||t)).sort(((t,e)=>s[t]&&!s[e]?-1:!s[t]&&s[e]?1:s[t]&&s[e]?s[t]-s[e]:t>e?1:-1)).filter((t=>!e[t]&&""!==t&&(e[t]=!0))).join("+")}const n=(t,e=8)=>{const s=[];for(;t.length;)s.push(t.substr(0,e)),t=t.substr(e);return s[1]=s[1].replace(/./g,"*"),s[2]=s[2].replace(/./g,"*"),s.join("-")},a=(...t)=>t.filter((t=>(0,i.f)(t).length)).map(((e,s)=>(e=e.replace(/([^:])[\\/]+/g,"$1/"),s&&(e=e.replace(/^\//,"")),s!==t.length-1&&(e=e.replace(/\/$/,"")),e))).join("/"),l=t=>t.split("/").reduce(((t,e)=>{switch(e){case"":case".":break;case"..":t.pop();break;default:t.push(e)}return t}),[]).join("/")+(t.endsWith("/")?"/":""),c=t=>/^[0-9]+$/.test(""+t)?t+"px":""+t,h=(...t)=>t.filter((t=>t.length)).map((t=>t.replace(/\/$/,""))).join("/").replace(/([^:])[\\/]+/g,"$1/");var d=s(49353),u=s(13203);const p=t=>{const e=["#"];let s=(0,u.h)(t);if(!s)return!1;if(s=(0,i.f)(s.toUpperCase()),s=s.substring(1),3===s.length){for(let t=0;3>t;t+=1)e.push(s[t]),e.push(s[t]);return e.join("")}return s.length>6&&(s=s.slice(0,6)),"#"+s}},49353(t,e,s){"use strict";s.d(e,{DO(){return a},Zh(){return c},xI(){return l}});var i=s(57649),r=s(11278),o=s(13203),n=s(24021);const a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(t,e){return!(0,n.n)(e)&&a.test(t)&&(0,i.k)(""+e)?parseInt(""+e,10)+"px":e}function c(t,e){if("font-weight"===(0,r.G)(t)){switch((""+e).toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,i.k)(e)?Number(e):e}return/color/i.test(t)&&/^rgb/i.test(""+e)&&(0,o.h)(""+e)||e}},36727(t,e,s){"use strict";s.d(e,{FK(){return i},rP(){return n},x9(){return a},cv(){return l},eL(){return c.F},dp(){return h.d}});const i=(t,e)=>{const s=t=>parseInt(t,10),i=e.getComputedStyle(t);return t.offsetWidth-s(i.getPropertyValue("padding-left")||"0")-s(i.getPropertyValue("padding-right")||"0")};var r=s(76502),o=s(24263);function n(t){if(!t)return null;const e=o.i.isHTMLElement(t),s=e&&(0,r.css)(t,"overflowY");return e&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:n(t.parentNode)||document.scrollingElement||document.body}const a=(t,e)=>{const s=e.getComputedStyle(t);let i=t.clientWidth;return i-=parseFloat(s.paddingLeft||"0")+parseFloat(s.paddingRight||"0"),i},l=(t,e,s,i=!1)=>{let r;try{r=t.getBoundingClientRect()}catch(t){r={top:0,bottom:0,left:0,right:0,width:0,height:0}}const o=s.body,n=s.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},a=s.defaultView||s.parentWindow,c=a.pageYOffset||n.scrollTop||o.scrollTop,h=a.pageXOffset||n.scrollLeft||o.scrollLeft,d=n.clientTop||o.clientTop||0,u=n.clientLeft||o.clientLeft||0;let p,f;const m=e.iframe;if(!i&&e&&e.options&&e.o.iframe&&m){const{top:t,left:s}=l(m,e,e.od,!0);p=r.top+t,f=r.left+s}else p=r.top+c-d,f=r.left+h-u;return{top:Math.round(p),left:Math.round(f),width:r.width,height:r.height}};var c=s(81710),h=s(16492)},16492(t,e,s){"use strict";s.d(e,{d(){return r}});var i=s(1243);function r(t){return(0,i.HD)(t)||(0,i.kJ)(t)?t.length:(0,i.PO)(t)?Object.keys(t).length:0}},81710(t,e,s){"use strict";s.d(e,{F(){return r}});var i=s(77892);function r(t,e,s=!1){const o=t.getBoundingClientRect();let n=o.left,a=o.top;if((0,i.Z)(e)&&e.iframe&&e.ed.body.contains(t)&&!s){const{left:t,top:s}=r(e.iframe,e,!0);n+=t,a+=s}return{left:Math.round(n),top:Math.round(a),width:Math.round(t.offsetWidth),height:Math.round(t.offsetHeight)}}},26596(t,e,s){"use strict";s.d(e,{e(){return i}});const i=t=>t.replace(/([-_])(.)/g,((t,e,s)=>s.toUpperCase()))},93163(t,e,s){"use strict";s.d(e,{Q(){return r}});var i=s(86893);function r(t,e,s=0,r=1){let o=0,n=0,a=-1,l=0,c=0;for(n=s;t.length>o&&e.length>n;)t[o].toLowerCase()===e[n].toLowerCase()?(o++,l++,c=0,-1===a&&(a=n)):o>0&&(r>c||e[n]===i.INVISIBLE_SPACE?(c++,l++):(o=0,a=-1,l=0,c=0,n--)),n++;return o===t.length?[a,l]:[-1,0]}},89170(t,e,s){"use strict";s.d(e,{gP(){return u.g},eV(){return i.e},Qy(){return r.Q},ag(){return d},GL(){return u.G},gB(){return h},Pz(){return p.P},fy(){return f.f},as(){return f.a},Ps(){return l}});var i=s(26596),r=s(93163),o=s(93166),n=s(76502),a=s(24421);function l(t){return t.length?t[0].toUpperCase()+t.substr(1):""}var c=s(86893);const h=(t,e)=>{if(!e||!e.length)return t;const s=/%([sd])/g;let i=s.exec(t),r=t,o=0;for(;i&&void 0!==e[o];)r=r.replace(i[0],""+e[o]),o+=1,i=s.exec(t);return r};function d(t,e,s){if(!(0,a.H)(t))throw(0,n.error)("i18n: Need string in first argument");if(!t.length)return t;const i=!!s?.debugLanguage;let r={};const d=t=>e&&e.length?h(t,e):t,u=(0,n.defaultLanguage)(o.D.defaultOptions.language,o.D.defaultOptions.language),p=(0,n.defaultLanguage)(s?.language,u),f=e=>{if(!e)return;if((0,a.H)(e[t]))return d(e[t]);const s=t.toLowerCase();if((0,a.H)(e[s]))return d(e[s]);const i=l(t);return(0,a.H)(e[i])?d(e[i]):void 0};void 0!==c.lang[p]?r=c.lang[p]:i||(r=void 0!==c.lang[u]?c.lang[u]:c.lang.en);const m=s?.i18n;if(m&&m[p]){const t=f(m[p]);if(t)return t}return f(r)||(!i&&c.lang.en&&(0,a.H)(c.lang.en[t])&&c.lang.en[t]?d(c.lang.en[t]):i?"{"+t+"}":d(t))}var u=s(11278),p=s(42554),f=s(33941)},11278(t,e,s){"use strict";s.d(e,{G(){return i},g(){return r}});const i=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),r=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},42554(t,e,s){"use strict";function i(t,e={}){if("object"!=typeof t)return t+"";const s=new Set(e.excludeKeys),i=new WeakMap;return JSON.stringify(t,((t,e)=>{if(!s.has(t)){if("object"==typeof e&&null!=e){if(i.get(e))return"[refObject]";i.set(e,!0)}return e}}),e.prettify)}s.d(e,{P(){return i}})},33941(t,e,s){"use strict";s.d(e,{a(){return o},f(){return r}});var i=s(86893);function r(t){return t.replace((0,i.SPACE_REG_EXP_END)(),"").replace((0,i.SPACE_REG_EXP_START)(),"")}function o(t){return t.replace((0,i.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,i.INVISIBLE_SPACE_REG_EXP_START)(),"")}},60303(t,e,s){"use strict";s.d(e,{E3(){return a},wL(){return n},zC(){return o}});var i=s(64968),r=s(26911);function o(t,e){e&&"normal"!==e?"center"!==e?((0,r.i)(t,"float",e),(0,r.b)(t)):(0,r.i)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.i)(t,"float")&&-1!==["right","left"].indexOf((""+(0,r.i)(t,"float")).toLowerCase())&&(0,r.i)(t,"float",""),(0,r.b)(t))}function n(t){i.i.each(t,(t=>{i.i.isHTMLElement(t)&&t.style.textAlign&&(t.style.textAlign="",t.style.cssText.trim().length||t.removeAttribute("style"))}))}function a(t,e){if(i.i.isNode(e)&&i.i.isElement(e))switch(n(e),t.toLowerCase()){case"justifyfull":e.style.textAlign="justify";break;case"justifyright":e.style.textAlign="right";break;case"justifyleft":e.style.textAlign="left";break;case"justifycenter":e.style.textAlign="center"}}},62462(t,e,s){"use strict";s.d(e,{GX(){return u},JL(){return c},Nf(){return h},uR(){return l},wY(){return d}});var i=s(48240),r=s(42096),o=s(24421);const n=new Map,a=t=>async(e,s)=>{if(n.has(s))return n.get(s);const i=t(e,s);return n.set(s,i),i},l=(t,e,s)=>{const o=t.c.element("script");return o.type="text/javascript",o.async=!0,(0,r.m)(s)&&!t.isInDestruct&&t.e.on(o,"load",s),o.src||(o.src=(0,i.W)(e)),t.od.body.appendChild(o),{callback:s,element:o}},c=a(((t,e)=>new Promise(((s,i)=>{if(t.isInDestruct)return;const{element:r}=l(t,e,s);!t.isInDestruct&&t.e.on(r,"error",i)})))),h=a(((t,e)=>new Promise(((s,r)=>{if(t.isInDestruct)return;const o=t.c.element("link");o.rel="stylesheet",o.media="all",o.crossOrigin="anonymous",!t.isInDestruct&&t.e.on(o,"load",(()=>s(o))).on(o,"error",r),o.href=(0,i.W)(e),t.o.shadowRoot?t.o.shadowRoot.appendChild(o):t.od.body.appendChild(o)})))),d=(t,e,s=0)=>(0,o.H)(e[s])?c(t,e[s]).then((()=>d(t,e,s+1))):Promise.resolve(),u=(t,e,s=0)=>(0,o.H)(e[s])?h(t,e[s]).then((()=>u(t,e,s+1))):Promise.resolve()},36467(t,e,s){"use strict";s.d(e,{L(){return n}});var i=s(1243),r=s(11278),o=s(26911);function n(t,e,s){if(!t||!(0,i.mf)(t.getAttribute))return null;if(!(0,i.HD)(e))return Object.keys(e).forEach((s=>{const r=e[s];(0,i.PO)(r)&&"style"===s?(0,o.i)(t,r):("className"===s&&(s="class"),n(t,s,r))})),null;let a=(0,r.g)(e);if(/^-/.test(a)){const e=n(t,"data"+a);if(e)return e;a=a.substr(1)}if(void 0!==s){if(null!=s)return t.setAttribute(a,""+s),""+s;t.hasAttribute(a)&&t.removeAttribute(a)}return t.getAttribute(a)}},37682(t,e,s){"use strict";s.d(e,{X(){return i}});const i=t=>{const e=navigator.userAgent.toLowerCase(),s=/(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?s[2]:"webkit"===t?"chrome"===s[1]||"webkit"===s[1]:"ff"===t?"firefox"===s[1]:"msie"===t?"trident"===s[1]||"msie"===s[1]:s[1]===t}},71567(t,e,s){"use strict";s.d(e,{X(){return r}});var i=s(79736);const r=(t,e)=>{const s=[],o=encodeURIComponent;for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const a=e?e+"["+n+"]":n,l=t[n];s.push((0,i.P)(l)?r(l,a):o(a)+"="+o(l))}return s.join("&")}},48240(t,e,s){"use strict";s.d(e,{W(){return i}});const i=t=>("file:"===window.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},64981(t,e,s){"use strict";s.d(e,{I(){return h},t(){return d}});var i=s(7935),r=s(49781),o=s(79736),n=s(24421),a=s(24021),l=s(93166),c=s(67309);function h(t,e,s=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;const c=l.D.defaultOptions;if((0,n.H)(t.preset)){if(void 0!==c.presets[t.preset]){const e=c.presets[t.preset];Object.keys(e).forEach((s=>{(0,a.n)(t[s])&&(t[s]=e[s])}))}delete t.preset}const d={};return Object.keys(t).forEach((n=>{const a=t[n],l=e?e[n]:null;d[n]=(0,o.P)(a)&&(0,o.P)(l)&&!(0,i.J8)(a)?h(a,l,s+1):0!==s&&(0,r.k)(a)&&!(0,i.J8)(a)&&(0,r.k)(l)?[...a,...l.slice(a.length)]:a})),Object.setPrototypeOf(d,e),d}function d(t){return(0,c.XP)(t,!1).reduce(((e,s)=>(e[s]=t[s],e)),{})}},42051(t,e,s){"use strict";s.d(e,{U(){return o}});var i=s(64350),r=s(67285);const o=(t,e=400,s=345)=>{if(!(0,i.P)(t))return t;const o=document.createElement("a"),n=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;o.href=t,e||(e=400),s||(s=345);const a=o.protocol||"";switch(o.hostname){case"www.vimeo.com":case"vimeo.com":return n.test(t)?t.replace(n,'<iframe width="'+e+'" height="'+s+'" src="'+a+'//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 i=o.search?(0,r.m)(o.search):{v:o.pathname.substr(1)};return i.v?'<iframe width="'+e+'" height="'+s+'" src="'+a+"//www.youtube.com/embed/"+i.v+'" frameborder="0" allowfullscreen></iframe>':t}}return t}},26911(t,e,s){"use strict";s.d(e,{b(){return c},i(){return l}});var i=s(79736),r=s(67749),o=s(49353),n=s(26596),a=s(11278);function l(t,e,s,c=!1){if((0,r.j)(s)&&(c=s,s=void 0),(0,i.P)(e)||void 0!==s){const r=(t,e,s)=>{void 0===(s=(0,o.xI)(e,s))||null!=s&&l(t,e,!0)===(0,o.Zh)(e,s)||(t.style[e]=s)};if((0,i.P)(e)){const s=Object.keys(e);for(let i=0;s.length>i;i+=1)r(t,(0,n.e)(s[i]),e[s[i]])}else r(t,(0,n.e)(e),s);return""}const h=(0,a.G)(e),d=t.ownerDocument||document,u=!!d&&(d.defaultView||d.parentWindow),p=t.style[e];let f="";return void 0!==p&&""!==p?f=p:u&&!c&&(f=u.getComputedStyle(t).getPropertyValue(h)),o.DO.test(e)&&/^[-+]?[0-9.]+px$/.test(""+f)&&(f=parseInt(""+f,10)),(0,o.Zh)(e,f)}const c=t=>{"block"===l(t,"display")&&l(t,"display","");const{style:e}=t;"auto"===e.marginLeft&&"auto"===e.marginRight&&(e.marginLeft="",e.marginRight="")}},2522(t,e,s){"use strict";s.d(e,{k(){return i}});const i=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}},63122(t,e,s){"use strict";s.d(e,{q(){return o}});var i=s(96574);const r=new WeakMap,o=(t,e,s)=>{let o=r.get(t);if(!o){o={},r.set(t,o);let e=null;(0,i.f)(t.j)&&(e=t.j.e),(0,i.f)(t)&&(e=t.e),e&&e.on("beforeDestruct",(()=>{r.delete(t)}))}return void 0===s?o[e]:(o[e]=s,s)}},93351(t,e,s){"use strict";s.d(e,{X(){return r}});var i=s(24421);const r=(t,e="en")=>"auto"!==t&&(0,i.H)(t)?t:document.documentElement&&document.documentElement.lang?document.documentElement.lang:navigator.language?navigator.language.substring(0,2):e},41579(t,e,s){"use strict";s.d(e,{JG(){return a},PQ(){return l},YM(){return n},ZI(){return o},vU(){return r}});var i=s(1887);function r(t){return new TypeError(t)}function o(t){return new i.hY(t)}function n(t){return new i.tW(t)}function a(t){return new i._L(t)}function l(t){return t instanceof i._L}},1887(t,e,s){"use strict";s.d(e,{_L(){return i},hY(){return r},tW(){return o}});class i extends Error{constructor(t){super(t),Object.setPrototypeOf(this,i.prototype)}}class r extends Error{constructor(t){super(t),Object.setPrototypeOf(this,r.prototype)}}class o extends TypeError{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},56964(t,e,s){"use strict";s.d(e,{JG(){return i.JG},PQ(){return i.PQ},YM(){return i.YM},ZI(){return i.ZI},_L(){return r._L},hY(){return r.hY},tW(){return r.tW},vU(){return i.vU}});var i=s(41579),r=s(1887)},7935(t,e,s){"use strict";s.d(e,{J8(){return r},V8(){return n},XT(){return o}});var i=s(42554);function r(t){return t&&t.isAtom}function o(t){return Object.defineProperty(t,"isAtom",{enumerable:!1,value:!0,configurable:!1}),t}function n(t){return JSON.parse((0,i.P)(t))}},87247(t,e,s){"use strict";s.d(e,{g(){return o},k(){return r}});var i=s(42096);const r=new Map,o=t=>{if((0,i.m)(t.className))return t.className();const e=t.constructor?.originalConstructor||t.constructor;if(r.has(e))return r.get(e);if(e.name)return e.name;const s=RegExp(/^\s*function\s*(\S*)\s*\(/),o=(""+e).match(s);return o?o[1]:""}},69384(t,e,s){"use strict";s.d(e,{U(){return o}});var i=s(24421),r=s(24021);function o(t,e){if(!(0,i.H)(t)||!t.length)return null;const s=t.split(".");let o=e;try{for(const t of s){if((0,r.n)(o[t]))return null;o=o[t]}}catch{return null}return(0,r.n)(o)?null:o}},6102(t,e,s){"use strict";s.d(e,{w(){return i}});const i=t=>{if(/^[0-9.]+$/.test(""+t))return parseFloat(t);const e=t.substr(-2,2).toUpperCase(),s=["KB","MB","GB","TB"],i=parseFloat(t.substr(0,t.length-2));return-1!==s.indexOf(e)?i*Math.pow(1024,s.indexOf(e)+1):parseInt(t,10)}},76502(t,e,s){"use strict";s.r(e),s.d(e,{$$(){return k.$$},AbortError(){return b._L},ConfigFlatten(){return u.t},ConfigProto(){return u.I},ConnectionError(){return b.hY},LimitedStack(){return L.l},OptionsError(){return b.tW},abort(){return b.JG},alignElement(){return i.E3},appendScript(){return o.uR},appendScriptAsync(){return o.JL},appendStyleAsync(){return o.Nf},attr(){return r.L},browser(){return c.X},buildQuery(){return h.X},call(){return M.RE},callPromise(){return M.C6},clearAlign(){return i.wL},clearCenterAlign(){return f.b},cns(){return S.H},completeUrl(){return d.W},connection(){return b.ZI},convertMediaUrlToVideoEmbed(){return p.U},css(){return f.i},cssPath(){return k.iN},ctrlKey(){return m.k},dataBind(){return g.q},defaultLanguage(){return v.X},error(){return b.vU},fastClone(){return y.V8},get(){return w.U},getClassName(){return _.g},getDataTransfer(){return M.qu},getXPathByElement(){return k.BR},hAlignElement(){return i.zC},humanSizeToBytes(){return C.w},inView(){return I.j},isAbort(){return b.PQ},isAtom(){return y.J8},keepNames(){return _.k},keys(){return M.XP},loadImage(){return M.po},loadNext(){return o.wY},loadNextStyle(){return o.GX},markAsAtomic(){return y.XT},markDeprecated(){return S.Q},markOwner(){return M.MN},memorizeExec(){return M.u3},options(){return b.YM},parseQuery(){return E.m},previewBox(){return x.$},refs(){return k.xL},reset(){return j.m},resolveElement(){return k.W2},scrollIntoViewIfNeeded(){return I.n},set(){return T.t},val(){return P.P}});var i=s(60303),r=s(36467),o=s(62462),n=s(52378),a={};for(var l in n)0>["default","alignElement","clearAlign","hAlignElement","attr","appendScript","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(l)&&(a[l]=(t=>n[t]).bind(0,l));s.d(e,a);var c=s(37682),h=s(71567),d=s(48240),u=s(64981),p=s(42051),f=s(26911),m=s(2522),g=s(63122),v=s(93351),b=s(56964),y=s(7935),w=s(69384),_=s(87247),C=s(6102),S=s(47580),E=s(67285),x=s(21498),j=s(80861),I=s(9005),k=s(54188),T=s(21518),L=s(37228),M=s(67309),P=s(22362)},47580(t,e,s){"use strict";s.d(e,{H(){return i},Q(){return r}});const i=console;function r(t,e=[""],s=null){return(...r)=>(i.warn(`Method "${e[0]}" deprecated.`+(e[1]?` Use "${e[1]}" instead`:"")),t.call(s,...r))}},67285(t,e,s){"use strict";s.d(e,{m(){return i}});const i=t=>{const e={},s=t.substring(1).split("&");for(let t=0;s.length>t;t+=1){const i=s[t].split("=");e[decodeURIComponent(i[0])]=decodeURIComponent(i[1]||"")}return e}},21498(t,e,s){"use strict";s.d(e,{$(){return l}});var i=s(24421),r=s(24263),o=s(26911),n=s(36467),a=s(54188);function l(t,e,s="px",l=null){const c=[],h=((t,e)=>{const s=[];try{(0,a.$$)("img",t.editor).forEach((i=>{const o=[(0,n.L)(i,"width"),(0,n.L)(i,"height"),i.src];(0,n.L)(i,{width:i.offsetWidth+e,height:i.offsetHeight+e});const a=t.createInside.a();t.ed.body.appendChild(a),a.href=i.src,i.src=a.href,r.i.safeRemove(a),s.push((()=>{i.src=o[2]??"",(0,n.L)(i,{width:o[0]||null,height:o[1]||null})}))}))}catch(t){throw s.forEach((t=>t())),s.length=0,t}return s})(t,s);try{const a=t.e.fire("beforePreviewBox",e,s);if(null!=a)return a;let h=t.c.div("jodit__preview-box jodit-context");l&&l.appendChild(h),(0,o.i)(h,{position:"relative",padding:16});const d=t.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${t.i18n("Empty")}</div>`;if(t.iframe){const e=t.create.element("iframe");(0,o.i)(e,{minWidth:800,minHeight:600,border:0}),h.appendChild(e);const s=e.contentWindow;if(s&&(t.e.fire("generateDocumentStructure.iframe",s.document,t),h=s.document.body,"function"==typeof ResizeObserver)){let i=!1;const r=s.document.body,o=new ResizeObserver(t.async.debounce((()=>{o.unobserve(r),e.style.height=r.offsetHeight+20+"px",t.async.requestAnimationFrame((()=>{!i&&o.observe(r)}))}),100)),n=()=>{i=!0,o.unobserve(r),o.disconnect(),t.e.off("beforeDestruct",n)};c.push(n),t.e.on("beforeDestruct",n)}}else(0,o.i)(h,{minWidth:1024,minHeight:600,border:0});const u=(e,s)=>{const o=(0,i.H)(s)?t.c.div():s;(0,i.H)(s)&&(o.innerHTML=s);for(let t=0;o.childNodes.length>t;t+=1){const s=o.childNodes[t];if(r.i.isElement(s)){const t=e.ownerDocument.createElement(s.nodeName);for(let e=0;s.attributes.length>e;e+=1)(0,n.L)(t,s.attributes[e].nodeName,s.attributes[e].nodeValue);0===s.childNodes.length||r.i.isTag(s,["table"])?"SCRIPT"===s.nodeName?s.textContent&&(t.textContent=s.textContent):s.innerHTML&&(t.innerHTML=s.innerHTML):u(t,s);try{e.appendChild(t)}catch{}}else try{e.appendChild(s.cloneNode(!0))}catch{}}};return u(h,d),t.e.fire("afterPreviewBox",h),[h,()=>{c.forEach((t=>t()))}]}finally{h.forEach((t=>t()))}}},80861(t,e,s){"use strict";s.d(e,{m(){return a}});var i=s(69384),r=s(42096),o=s(86893);const n={},a=t=>{if(!(t in n)){const e=document.createElement("iframe");try{if(e.src="about:blank",document.body.appendChild(e),!e.contentWindow)return null;const s=(0,i.U)(t,e.contentWindow),o=(0,i.U)(t.split(".").slice(0,-1).join("."),e.contentWindow);(0,r.m)(s)&&(n[t]=s.bind(o))}catch(t){if(!o.IS_PROD)throw t}finally{e.parentNode?.removeChild(e)}}return n[t]??null}},9005(t,e,s){"use strict";s.d(e,{j(){return r},n(){return o}});var i=s(24263);const r=(t,e,s)=>{let i=t.getBoundingClientRect(),r=t;const o=i.top,n=i.height;do{if(r&&r.parentNode){if(r=r.parentNode,i=r.getBoundingClientRect(),o>i.bottom)return!1;if(i.top>=o+n)return!1}}while(r&&r!==e&&r.parentNode);return(s.documentElement&&s.documentElement.clientHeight||0)>=o};function o(t,e,s){i.i.isHTMLElement(t)&&!r(t,e,s)&&(e.clientHeight!==e.scrollHeight&&(e.scrollTop=t.offsetTop),r(t,e,s)||t.scrollIntoView())}},54188(t,e,s){"use strict";s.d(e,{$$(){return u},BR(){return p},W2(){return g},iN(){return m},xL(){return f}});var i=s(86893),r=s(24421),o=s(76502),n=s(24263),a=s(26596),l=s(1853),c=s(53929),h=s(45113);let d=1;function u(t,e){let s;if(i.IS_ES_NEXT||!/:scope/.test(t)||!i.IS_IE||e&&e.nodeType===Node.DOCUMENT_NODE)s=e.querySelectorAll(t);else{const i=e.id,r=i||"_selector_id_"+(Math.random()+"").slice(2)+(d++,d);t=t.replace(/:scope/g,"#"+r),!i&&e.setAttribute("id",r),s=e.parentNode.querySelectorAll(t),i||e.removeAttribute("id")}return[].slice.call(s)}const p=(t,e)=>{if(!t||t.nodeType!==Node.ELEMENT_NODE)return"";if(!t.parentNode||e===t)return"";if(t.id)return"//*[@id='"+t.id+"']";const s=[].filter.call(t.parentNode.childNodes,(e=>e.nodeName===t.nodeName));return p(t.parentNode,e)+"/"+t.nodeName.toLowerCase()+(s.length>1?"["+((0,l.q)(s).indexOf(t)+1)+"]":"")},f=t=>(h.w.isInstanceOf(t,c.u)&&(t=t.container),u("[ref],[data-ref]",t).reduce(((t,e)=>{const s=(0,o.attr)(e,"-ref");return s&&(0,r.H)(s)&&(t[(0,a.e)(s)]=e,t[s]=e),t}),{})),m=t=>{if(!n.i.isElement(t))return null;const e=[];let s=t;for(;s&&s.nodeType===Node.ELEMENT_NODE;){let t=s.nodeName.toLowerCase();if(s.id){t+="#"+s.id,e.unshift(t);break}{let e=s,i=1;do{e=e.previousElementSibling,e&&e.nodeName.toLowerCase()===t&&i++}while(e);t+=":nth-of-type("+i+")"}e.unshift(t),s=s.parentNode}return e.join(" > ")};function g(t,e){let s=t;if((0,r.H)(t))try{s=e.querySelector(t)}catch{throw(0,o.error)('String "'+t+'" should be valid HTML selector')}if(!s||"object"!=typeof s||!n.i.isElement(s)||!s.cloneNode)throw(0,o.error)('Element "'+t+'" should be string or HTMLElement instance');return s}},21518(t,e,s){"use strict";s.d(e,{t(){return a}});var i=s(24421),r=s(57649),o=s(49781),n=s(79736);function a(t,e,s){if(!(0,i.H)(t)||!t.length)return;const a=t.split(".");let l=s,c=a[0];for(let t=0;a.length-1>t;t+=1)c=a[t],(0,o.k)(l[c])||(0,n.P)(l[c])||(l[c]=(0,r.k)(a[t+1])?[]:{}),l=l[c];l&&(l[a[a.length-1]]=e)}},37228(t,e,s){"use strict";s.d(e,{l(){return i}});class i{constructor(t){this.limit=t,this.stack=[]}push(t){return this.stack.push(t),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(t){return this.stack.find(t)}}},67309(t,e,s){"use strict";s.d(e,{C6(){return c},MN(){return l},RE(){return a},XP(){return d},po(){return h},qu(){return p},u3(){return u}});var i=s(26335),r=s(24021),o=s(63122),n=s(36467);function a(t,...e){return t(...e)}function l(t,e){(0,n.L)(e,"data-editor_id",t.id),!e.component&&Object.defineProperty(e,"jodit",{value:t})}function c(t,e){return(0,i.t)(t)?t.finally(e):e()}const h=(t,e)=>e.async.promise(((s,i)=>{const r=new Image,o=()=>{e.e.off(r),i?.()},n=()=>{e.e.off(r),s(r)};e.e.one(r,"load",n).one(r,"error",o).one(r,"abort",o),r.src=t,r.complete&&n()})),d=(t,e=!0)=>{if(e)return Object.keys(t);const s=[];for(const e in t)s.push(e);return s},u=(t,e,{control:s},i)=>{const n="button"+s.command;let a=(s.args&&s.args[0])??(0,o.q)(t,n);if((0,r.n)(a))return!1;(0,o.q)(t,n,a),i&&(a=i(a)),t.execCommand(s.command,!1,a??void 0)},p=t=>{if(t.clipboardData)return t.clipboardData;try{return t.dataTransfer||new DataTransfer}catch{return null}}},22362(t,e,s){"use strict";s.d(e,{P(){return i}});const i=(t,e,s)=>{const i=t.querySelector(e);return i?(s&&(i.value=s),i.value):""}},57549(t,e,s){"use strict";s.d(e,{S(){return i.S}}),s(90262);var i=s(85605)},90262(t,e,s){"use strict";s.d(e,{h(){return f}});var i=s(1243),r=s(12557),o=s(17332),n=s(62462),a=s(11278);function l(t){return(0,a.G)(t).toLowerCase()}var c=s(86893);const h=new Set;function d(t,e,s){return e=(0,a.G)(e),t.basePath+"plugins/"+e+"/"+e+"."+(s?"js":"css")}var u=s(42096);function p(t,e,s,r,o){const a=s.requires;if(a?.length&&!a.every((t=>r.has(t))))return o[e]=s,!1;if((0,i.Gu)(s))try{s.init(t)}catch(t){if(!c.IS_PROD)throw t}return r.add(e),delete o[e],s.hasStyle&&(async(t,e)=>{const s=d(t,e,!1);if(!h.has(s))return h.add(s),(0,n.Nf)(t,s)})(t,e).catch((t=>{})),!0}class f{constructor(){this.__items=new Map}add(t,e){this.__items.set(l(t),e),o.TB.fire(`plugin:${t}:ready`)}get(t){return this.__items.get(l(t))}remove(t){this.__items.delete(l(t))}__filter(t){const e=[];return this.__items.forEach(((s,i)=>{t&&!t.has(i)||e.push([i,s])})),e}__init(t){const{extrasList:e,disableList:s,filter:o}=(t=>({extrasList:t.o.extraPlugins.map((t=>(0,i.HD)(t)?{name:t}:t)),disableList:new Set((0,r.C1)(t.o.disablePlugins).map(l)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null}))(t),a=new Set,h={},f={};t.__plugins=f;const m=()=>{if(t.isInDestruct)return;let e=!1;this.__filter(o).forEach((([r,o])=>{if(s.has(r)||a.has(r)||h[r])return;const n=o?.requires;if(n&&(0,i.kJ)(n)&&n.some((t=>s.has(t))))return;e=!0;const l=((t,e)=>{try{try{return(0,u.m)(e)?new e(t):e}catch(s){if((0,u.m)(e)&&!e.prototype)return e(t)}}catch(t){if(!c.IS_PROD)throw t}return null})(t,o);if(!l)return a.add(r),void delete h[r];((t,e,s,i,r)=>{p(t,e,s,i,r)&&Object.keys(r).forEach((e=>{p(t,e,r[e],i,r)}))})(t,r,l,a,h),f[r]=l})),e&&t.e.fire("updatePlugins")};e&&e.length||((t,e,s,i)=>{try{const r=s.filter((e=>!t.has(l(e.name))));r.length&&((t,e,s)=>{e.map((e=>{const i=e.url||d(t,e.name,!0);return(0,n.JL)(t,i).then(s).catch((()=>null))}))})(e,r,i)}catch(t){if(!c.IS_PROD)throw t}})(this.__items,t,e,m),m(),((t,e)=>{t.e.on("beforeDestruct",(()=>{Object.keys(e).forEach((s=>{const r=e[s];(0,i.Z$)(r)&&r.destruct(t),delete e[s]})),delete t.__plugins}))})(t,f)}wait(t){return new Promise((e=>{if(this.get(t))return e();const s=()=>{e(),o.TB.off(`plugin:${t}:ready`,s)};o.TB.on(`plugin:${t}:ready`,s)}))}}},85605(t,e,s){"use strict";s.d(e,{S(){return a}});var i=s(20255),r=s(90549),o=s(68574),n=s(77892);class a extends r.Hr{className(){return""}constructor(t){super(t),this.requires=[],this.buttons=[],this.hasStyle=!1,t.e.on("afterPluginSystemInit",(()=>{(0,n.Z)(t)&&this.buttons?.forEach((e=>{t.registerButton(e)}))})).on("afterInit",(()=>{this.setStatus(r.n$.ready),this.afterInit(t)})).on("beforeDestruct",this.destruct)}init(t){}destruct(){if(this.isReady){this.setStatus(r.n$.beforeDestruct);const{j:t}=this;(0,n.Z)(t)&&this.buttons?.forEach((e=>{t?.unregisterButton(e)})),this.j?.events?.off("beforeDestruct",this.destruct),this.beforeDestruct(this.j),super.destruct()}}}(0,i.gn)([o.autobind],a.prototype,"destruct",null)},14089(t,e,s){"use strict";s.d(e,{F(){return r}});var i=s(1853);class r{getElm(t){return this.container.querySelector("."+this.getFullElName(t))}getElms(t){return(0,i.q)(this.container.querySelectorAll("."+this.getFullElName(t)))}}},41681(t,e,s){"use strict";s.d(e,{$(){return r}});var i=s(24021);class r{afterSetMod(t,e){}setMod(t,e,s){t=t.toLowerCase();const r=this.mods[t];if(r===e)return this;const o=`${this.componentName}_${t}_`,n=(s||this.container).classList;return null!=r&&n.remove(`${o}${(""+r).toLowerCase()}`),!(0,i.n)(e)&&""!==e&&n.add(`${o}${(""+e).toLowerCase()}`),this.mods[t]=e,this.afterSetMod(t,e),this}getMod(t){return this.mods[t]??null}}},53929(t,e,s){"use strict";s.d(e,{u(){return u}});var i,r=s(20255),o=s(90549),n=s(24263),a=s(41681),l=s(14089),c=s(24421),h=s(77904),d=s(70669);let u=i=class t extends o.Hr{get parentElement(){return this.__parentElement}set parentElement(t){this.__parentElement=t,t&&t.hookStatus("beforeDestruct",(()=>this.destruct())),this.updateParentElement(this)}bubble(t){let e=this.parentElement;for(;e;)t(e),e=e.parentElement;return this}updateParentElement(t){return this.__parentElement?.updateParentElement(t),this}get(t,e){return super.get(t,e)||this.getElm(t)}closest(t){const e="object"==typeof t?e=>e===t:e=>o.wA.isInstanceOf(e,t);let s=this.__parentElement;for(;s;){if(e(s))return s;s=!s.parentElement&&s.container.parentElement?i.closestElement(s.container.parentElement,i):s.parentElement}return null}static closestElement(t,e){const s=n.i.up(t,(t=>{if(t){const{component:s}=t;return s&&o.wA.isInstanceOf(s,e)}return!1}));return s?s?.component:null}update(){}appendTo(t){return t.appendChild(this.container),this}clearName(t){return t.replace(/[^a-zA-Z0-9]/g,"_")}render(t){return this.j.c.div(this.componentName)}createContainer(t){const e=this.render(t);if((0,c.H)(e)){const t=this.parseTemplate(e);return t.classList.add(this.componentName),t}return e}parseTemplate(t){return this.j.c.fromHTML(t.replace(/\*([^*]+?)\*/g,((t,e)=>h.J.get(e)||"")).replace(/&__/g,this.componentName+"__").replace(/~([^~]+?)~/g,((t,e)=>this.i18n(e))))}constructor(t,e){super(t),this.name="",this.__parentElement=null,this.mods={},this.container=this.createContainer(e),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}destruct(){return n.i.safeRemove(this.container),this.parentElement=null,super.destruct()}};u=i=(0,r.gn)([(0,d.s)(a.$,l.F)],u)},77904(t,e,s){"use strict";s.d(e,{J(){return o}});var i=s(26911),r=s(40332);s(86893);class o{static getIcon(t){return/<svg/i.test(t)?t:o.icons[t]||o.icons[t.replace(/-/g,"_")]||o.icons[t.replace(/_/g,"-")]||o.icons[(0,r.camelCase)(t)]||o.icons[(0,r.kebabCase)(t)]||o.icons[t.toLowerCase()]}static exists(t){return void 0!==this.getIcon(t)}static get(t,e="<span></span>"){return this.getIcon(t)||e}static set(t,e){return this.icons[t.replace("_","-")]=e,this}static makeIcon(t,e){if(!e)return;let s;const{name:r,iconURL:n,fill:a}=e,l=r.replace(/[^a-zA-Z0-9]/g,"_"),c=t.o.getIcon?.(r,l),h=`${r}${n}${a}${c??""}`;if(t.o.cache&&this.__cache.has(h))return this.__cache.get(h).cloneNode(!0);if(n)s=t.c.span(),(0,i.i)(s,"backgroundImage","url("+n.replace("{basePath}",t?.basePath||"")+")");else{const e=c||o.get(r,"")||t.o.extraIcons?.[r];e&&(s=t.c.fromHTML(e.trim()),/^<svg/i.test(r)||s.classList.add("jodit-icon_"+l))}return s&&(s.classList.add("jodit-icon"),s.style.fill=a,t.o.cache&&this.__cache.set(h,s.cloneNode(!0))),s}}o.icons={},o.__cache=new Map},89019(t,e,s){"use strict";s.r(e),s(61227),s(690),s(66622),s(69220),s(10444),Array.prototype.includes||(Array.prototype.includes=function(t){return this.indexOf(t)>-1}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");const s=Object(t);for(let t=1;arguments.length>t;t++){const e=arguments[t];if(null!=e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(s[t]=e[t])}return s},writable:!0,configurable:!0}),Array.prototype.find||(Array.prototype.find=function(t){return this.indexOf(t)>-1?t:void 0}),String.prototype.endsWith||(String.prototype.endsWith=function(t){return this[this.length-1]===t})},90544(t){t.exports.default={"Type something":"Start writing...",pencil:"Edit",Quadrate:"Square"}},75125(t){t.exports.default=["Type something","About Jodit","Jodit Editor","Jodit User's Guide","contains detailed help for using","For information about the license, please go to our website:","Buy full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.","Anchor","Open in new tab","Open 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","underline","strikethrough","indent","outdent","fullsize","shrink","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","Show all","Apply","Please fill out this field","Please enter a web address","Default","Circle","Dot","Quadrate","Find","Find Previous","Find Next","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected","Clean","Insert className","Press Alt for custom resizing"]},3125(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg>'},54209(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg>'},45394(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg>'},34953(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg>'},89529(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg>'},53315(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg>'},70600(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg>'},53523(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg>'},6582(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg>'},30770(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg>'},96181(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg>'},43208(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg>'},28218(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg>'},48872(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg>'},43574(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg>'},68707(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg>'},15806(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg>'},89371(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg>'},79031(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg>'},84209(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg>'},51416(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg>'},59940(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg>'},7764(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg>'},32108(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg>'},8223(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg>'},51382(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg>'},30863(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},89721(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},10147(t){t.exports='<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg>'},14165(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg>'},42516(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg>'},80554(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>'},10328(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>'},69187(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg>'},68315(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg>'},94484(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg>'},12722(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg>'},10530(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg>'},52401(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg>'},44931(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},29845(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},27526(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg>'},52390(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"/> </svg>'},28825(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"/> </svg>'},27681(t){t.exports='<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg>'},61097(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"/> </svg>'},31398(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg>'},1296(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg>'},18508(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg>'},97627(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg>'},39123(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},76331(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},52326(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>'},23689(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>'},99017(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg>'},271(t){t.exports='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg>'},25570(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg>'},20865(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg>'},29777(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg>'},49220(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg>'},32336(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg>'},23384(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg>'},85588(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg>'},76962(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},52614(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},78808(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg>'},36553(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg>'},48103(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg>'},4434(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg>'},55810(t){t.exports='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg>'},18375(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},60300(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg>'},71287(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg>'},39428(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg>'},92472(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg>'},60828(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg>'},86354(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg>'},52378(t){"use strict";t.exports={assert(){}}},45143(e){"use strict";e.exports=t}},i={};function r(t){var e=i[t];if(void 0!==e)return e.exports;var o=i[t]={exports:{}};return s[t].call(o.exports,o,o.exports,r),o.exports}r.m=s,e=[],r.O=(t,s,i,o)=>{if(!s){var n=1/0;for(h=0;e.length>h;h++){s=e[h][0],i=e[h][1],o=e[h][2];for(var a=!0,l=0;s.length>l;l++)(!1&o||n>=o)&&Object.keys(r.O).every((t=>r.O[t](s[l])))?s.splice(l--,1):(a=!1,n>o&&(n=o));if(a){e.splice(h--,1);var c=i();void 0!==c&&(t=c)}}return t}o=o||0;for(var h=e.length;h>0&&e[h-1][2]>o;h--)e[h]=e[h-1];e[h]=[s,i,o]},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var s in e)r.o(e,s)&&!r.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={670:0};r.O.j=e=>0===t[e];var e=(e,s)=>{var i,o,n=s[0],a=s[1],l=s[2],c=0;if(n.some((e=>0!==t[e]))){for(i in a)r.o(a,i)&&(r.m[i]=a[i]);if(l)var h=l(r)}for(e&&e(s);n.length>c;c++)r.o(t,o=n[c])&&t[o]&&t[o][0](),t[o]=0;return r.O(h)},s=self.webpackChunkjodit=self.webpackChunkjodit||[];s.forEach(e.bind(null,0)),s.push=e.bind(null,s.push.bind(s))})();var o={};return function(){"use strict";r.r(o),r.d(o,{CommitMode(){return Fa},Jodit(){return Jodit}});var t={};r.r(t),r.d(t,{required(){return pt},url(){return ft}});var e={};r.r(e),r.d(e,{Ajax(){return _},Alert(){return $t},Async(){return g.e},CommitStyle(){return xs},Component(){return C.wA},Confirm(){return Vt},ContextMenu(){return Q},Create(){return Yt},Dialog(){return Ht},Dom(){return X.i},EventEmitter(){return m.vp},EventHandlersStore(){return m.DG},Eventify(){return m.aN},FileBrowser(){return Pe},Helpers(){return v},History(){return Ae},Icon(){return M.J},ImageEditor(){return ge},LazyWalker(){return X.b},Plugin(){return Ut.S},PluginSystem(){return Bs.h},Popup(){return I},ProgressBar(){return kt},Prompt(){return Wt},Response(){return w},STATUSES(){return C.n$},Selection(){return js},Snapshot(){return ze},StatusBar(){return Is},Table(){return Ts},ToolbarButton(){return Rt},ToolbarCollection(){return zt},ToolbarContent(){return At},ToolbarEditorCollection(){return Dt},UIBlock(){return It},UIButton(){return V},UICheckbox(){return xt},UIElement(){return E.u},UIForm(){return _t},UIGroup(){return R},UIInput(){return vt},UIList(){return $},UIMessages(){return Lt},UISeparator(){return q},UITextArea(){return St},Uploader(){return qs},View(){return Pt},ViewComponent(){return C.Hr},ViewWithToolbar(){return Bt},defaultNameSpace(){return m.rO},isFileBrowserFilesItem(){return Ne},observable(){return m.LO}});var s={};r.r(s),r.d(s,{angle_down(){return Qs()},angle_left(){return ei()},angle_right(){return ii()},angle_up(){return oi()},bin(){return ai()},cancel(){return ci()},center(){return di()},check(){return pi()},chevron(){return mi()},dots(){return vi()},eye(){return yi()},file(){return _i()},folder(){return Si()},info_circle(){return xi()},left(){return Ii()},lock(){return Ti()},ok(){return Mi()},pencil(){return Ni()},plus(){return Di()},resize_handler(){return Ai()},right(){return Oi()},save(){return Hi()},settings(){return $i()},unlock(){return Vi()},update(){return Yi()},upload(){return Xi()},valign(){return Ji()}});var i={};r.r(i),r.d(i,{allowAttributes(){return zr},fillEmptyParagraph(){return Dr},removeEmptyTextNode(){return Ar},removeInvTextNodes(){return qr},replaceOldTags(){return Nr},sanitizeAttributes(){return Or},tryRemoveNode(){return Rr}});var n={};r.r(n),r.d(n,{ar(){return Vs()},cs_cz(){return Vs()},de(){return Vs()},es(){return Vs()},fa(){return Vs()},fr(){return Vs()},he(){return Vs()},hu(){return Vs()},id(){return Vs()},it(){return Vs()},ja(){return Vs()},ko(){return Vs()},mn(){return Vs()},nl(){return Vs()},pl(){return Vs()},pt_br(){return Vs()},ru(){return Vs()},tr(){return Vs()},zh_cn(){return Vs()},zh_tw(){return Vs()}});var a={};r.r(a),r.d(a,{ar(){return Ws},cs_cz(){return Ws},de(){return Ws},es(){return Ws},fa(){return Ws},fr(){return Ws},he(){return Ws},hu(){return Ws},id(){return Ws},it(){return Ws},ja(){return Ws},ko(){return Ws},mn(){return Ws},nl(){return Ws},pl(){return Ws},pt_br(){return Ws},ru(){return Ws},tr(){return Ws},zh_cn(){return Ws},zh_tw(){return Ws}});var l={};r.r(l),r.d(l,{ar(){return Ws},cs_cz(){return Ws},de(){return Ws},es(){return Ws},fa(){return Ws},fr(){return Ws},he(){return Ws},hu(){return Ws},id(){return Ws},it(){return Ws},ja(){return Ws},ko(){return Ws},mn(){return Ws},nl(){return Ws},pl(){return Ws},pt_br(){return Ws},ru(){return Ws},tr(){return Ws},zh_cn(){return Ws},zh_tw(){return Ws}});var c={};r.r(c),r.d(c,{ar(){return Ws},cs_cz(){return Ws},de(){return Ws},es(){return Ws},fa(){return Ws},fr(){return Ws},he(){return Ws},hu(){return Ws},id(){return Ws},it(){return Ws},ja(){return Ws},ko(){return Ws},mn(){return Ws},nl(){return Ws},pl(){return Ws},pt_br(){return Ws},ru(){return Ws},tr(){return Ws},zh_cn(){return Ws},zh_tw(){return Ws}});var h={};r.r(h),r.d(h,{checkBlockNesting(){return Ra}});var d={};r.r(d),r.d(d,{removeExtraBr(){return qa}});var u=r(86893),p=r(20255),f=r(93166),m=r(4567),g=r(21317),v=r(40332),b=r(56964),y=r(68574);class w{get url(){return this.request.url}constructor(t,e,s,i){this.request=t,this.status=e,this.statusText=s,this.body=i}async json(){return JSON.parse(this.body)}text(){return Promise.resolve(this.body)}async blob(){return this.body}}f.D.prototype.defaultAjaxOptions={successStatuses:[200,201,202],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 _{constructor(t,e=f.D.prototype.defaultAjaxOptions){this.__async=new g.e,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,v.ConfigProto)(t||{},e),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}__buildParams(t,e){return(0,v.isPlainObject)(t)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(t):(0,v.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,t,e):(0,v.isString)(t)||t instanceof window.FormData||"object"==typeof t&&null!=t&&(0,v.isFunction)(t.append)?t:(0,v.buildQuery)(t)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch{}return this}send(){this.__activated=!0;const{xhr:t,o:e}=this,s=this.prepareRequest();return this.__async.promise((async(i,r)=>{const o=()=>{this.__isFulfilled=!0,r(b.ZI("Connection error"))},n=()=>{this.__isFulfilled=!0,i(new w(s,t.status,t.statusText,t.responseType?t.response:t.responseText))};t.onload=n,t.onabort=()=>{this.__isFulfilled=!0,r(b.JG("Abort connection"))},t.onerror=o,t.ontimeout=o,e.responseType&&(t.responseType=e.responseType),t.onprogress=t=>{let e=0;t.lengthComputable&&(e=t.loaded/t.total*100),this.options.onProgress?.(e)},t.onreadystatechange=()=>{this.options.onProgress?.(10),t.readyState===XMLHttpRequest.DONE&&(e.successStatuses.includes(t.status)?n():t.statusText&&(this.__isFulfilled=!0,r(b.ZI(t.statusText))))},t.withCredentials=e.withCredentials??!1;const{url:a,data:l,method:c}=s;t.open(c,a,!0),e.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",e.contentType);let{headers:h}=e;(0,v.isFunction)(h)&&(h=await h.call(this)),h&&t.setRequestHeader&&Object.keys(h).forEach((e=>{t.setRequestHeader(e,h[e])})),this.__async.setTimeout((()=>{t.send(l?this.__buildParams(l):void 0)}),0)}))}prepareRequest(){if(!this.o.url)throw b.vU("Need URL for AJAX request");let t=this.o.url;const e=this.o.data,s=(this.o.method||"get").toLowerCase();if("get"===s&&e&&(0,v.isPlainObject)(e)){const s=t.indexOf("?");if(-1!==s){const i=(0,v.parseQuery)(t);t=t.substring(0,s)+"?"+(0,v.buildQuery)({...i,...e})}else t+="?"+(0,v.buildQuery)(this.o.data)}const i={url:t,method:s,data:e};return _.log.splice(100),_.log.push(i),i}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}}_.log=[],(0,p.gn)([y.autobind],_.prototype,"destruct",null);var C=r(90549),S=r(24263),E=(r(52378),r(53929)),x=r(45113),j=r(17332);class I extends E.u{className(){return"Popup"}updateParentElement(t){return t!==this&&x.w.isInstanceOf(t,I)&&(this.childrenPopups.forEach((e=>{!t.closest(e)&&e.isOpened&&e.close()})),this.childrenPopups.has(t)||this.j.e.on(t,"beforeClose",(()=>{this.childrenPopups.delete(t)})),this.childrenPopups.add(t)),super.updateParentElement(t)}setContent(t){S.i.detach(this.container);const e=this.j.c.div(this.componentName+"__content");let s;return x.w.isInstanceOf(t,E.u)?(s=t.container,t.parentElement=this):s=(0,v.isString)(t)?this.j.c.fromHTML(t):t,e.appendChild(s),this.container.appendChild(e),this.updatePosition(),this}open(t,e=!1,s){if((0,v.markOwner)(this.jodit,this.container),this.calculateZIndex(),this.isOpened=!0,this.addGlobalListeners(),this.targetBound=e?this.getKeepBound(t):t,s)s.appendChild(this.container);else{const t=(0,j.ZO)(this.jodit,I);s!==this.container.parentElement&&t.appendChild(this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this.j.e.fire("afterOpenPopup",this),this}calculateZIndex(){if(this.container.style.zIndex)return;const t=t=>{const e=t.container.style.zIndex||t.o.zIndex;return!!e&&(this.setZIndex(1+parseInt(""+e,10)),!0)},{j:e}=this;if(t(e))return;let s=this.parentElement;for(;s;){if(t(e))return;if(s.container.style.zIndex)return void this.setZIndex(1+parseInt(""+s.container.style.zIndex,10));if(!s.parentElement&&s.container.parentElement){const t=E.u.closestElement(s.container.parentElement,E.u);if(t){s=t;continue}}s=s.parentElement}}getKeepBound(t){const e=t(),s=this.od.elementFromPoint(e.left,e.top);if(!s)return t;const i=S.i.isHTMLElement(s)?s:s.parentElement,r=(0,v.position)(i,this.j);return()=>{const e=t(),s=(0,v.position)(i,this.j);return{...e,top:e.top+(s.top-r.top),left:e.left+(s.left-r.left)}}}updatePosition(){if(!this.isOpened)return this;const[t,e]=this.calculatePosition(this.targetBound(),this.viewBound(),(0,v.position)(this.container,this.j));return this.setMod("strategy",e),(0,v.css)(this.container,{left:t.left,top:t.top}),this.childrenPopups.forEach((t=>t.updatePosition())),this}throttleUpdatePosition(){this.updatePosition()}calculatePosition(t,e,s,i=this.strategy){const r={left:t.left,right:t.left-(s.width-t.width)},o={bottom:t.top+t.height,top:t.top-s.height},n=Object.keys(r).reduce(((t,e)=>t.concat(Object.keys(o).map((t=>`${e}${(0,v.ucfirst)(t)}`)))),[]),a=t=>{const[e,i]=(0,v.kebabCase)(t).split("-");return{left:r[e],top:o[i],width:s.width,height:s.height}},l=t=>{let e=null;return e=I.boxInView(a(i),t)?i:n.find((e=>{if(I.boxInView(a(e),t))return e}))||null,e};let c=l((0,v.position)(this.j.container,this.j));return c&&I.boxInView(a(c),e)||(c=l(e)||c||i),[a(c),c]}static boxInView(t,e){return!(-2>t.top-e.top||-2>t.left-e.left||-2>e.top+e.height-(t.top+t.height)||-2>e.left+e.width-(t.left+t.width))}close(){return this.isOpened?(this.isOpened=!1,this.childrenPopups.forEach((t=>t.close())),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.removeGlobalListeners(),S.i.safeRemove(this.container),this):this}closeOnOutsideClick(t){this.isOpened&&!this.isOwnClick(t)&&this.close()}isOwnClick(t){if(!t.target)return!1;const e=E.u.closestElement(t.target,I);return!(!e||this!==e&&!e.closest(this))}addGlobalListeners(){const t=this.throttleUpdatePosition,e=this.ow;j.TB.on("closeAllPopups",this.close),this.smart&&this.j.e.on("escape",this.close).on("mousedown touchstart",this.closeOnOutsideClick).on(e,"mousedown touchstart",this.closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",t).on(this.container,"scroll mousewheel",t).on(e,"scroll",t).on(e,"resize",t),S.i.up(this.j.container,(e=>{e&&this.j.e.on(e,"scroll mousewheel",t)}))}removeGlobalListeners(){const t=this.throttleUpdatePosition,e=this.ow;j.TB.off("closeAllPopups",this.close),this.smart&&this.j.e.off("escape",this.close).off("mousedown touchstart",this.closeOnOutsideClick).off(e,"mousedown touchstart",this.closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",t).off(this.container,"scroll mousewheel",t).off(e,"scroll",t).off(e,"resize",t),S.i.up(this.j.container,(e=>{e&&this.j.e.off(e,"scroll mousewheel",t)}))}setZIndex(t){this.container.style.zIndex=""+t}constructor(t,e=!0){super(t),this.smart=e,this.isOpened=!1,this.strategy="leftBottom",this.viewBound=()=>({left:0,top:0,width:this.ow.innerWidth,height:this.ow.innerHeight}),this.childrenPopups=new Set,(0,v.attr)(this.container,"role","popup")}destruct(){return this.close(),super.destruct()}}(0,p.gn)([y.autobind],I.prototype,"updatePosition",null),(0,p.gn)([(0,y.throttle)(10),y.autobind],I.prototype,"throttleUpdatePosition",null),(0,p.gn)([y.autobind],I.prototype,"close",null),(0,p.gn)([y.autobind],I.prototype,"closeOnOutsideClick",null);var k=r(76502),T=r(24421),L=r(42096),M=r(77904);function P(t,e){let s;return e||(e=f.D.defaultOptions.controls),(0,v.isString)(t)?s=N(t,e)||{name:t,command:t,tooltip:t}:(s={name:"empty",...(0,v.ConfigFlatten)(t)},void 0!==e[s.name]&&(s={...(0,v.ConfigFlatten)(e[s.name]),...(0,v.ConfigFlatten)(s)})),s}function N(t,e){let[s,i]=t.split(/\./),r=e;return null!=i?void 0!==e[s]&&(r=e[s]):i=s,r[i]?{name:i,...(0,v.ConfigFlatten)(r[i])}:void 0}var z,D=r(49781);let R=z=class t extends E.u{className(){return"UIGroup"}get allChildren(){const t=[],e=[...this.elements];for(;e.length;){const s=e.shift();(0,v.isArray)(s)?e.push(...s):x.w.isInstanceOf(s,z)?e.push(...s.elements):s&&t.push(s)}return t}update(){this.elements.forEach((t=>t.update())),this.setMod("size",this.buttonSize)}append(t,e){return(0,v.isArray)(t)?(t.forEach((t=>this.append(t,e))),this):(this.elements.push(t),t.name&&t.container.classList.add(this.getFullElName(t.name)),e?this.getElm(e).appendChild(t.container):this.appendChildToContainer(t.container),t.parentElement=this,this)}afterSetMod(t,e){this.syncMod&&this.elements.forEach((s=>s.setMod(t,e)))}appendChildToContainer(t){this.container.appendChild(t)}remove(t){const e=this.elements.indexOf(t);return-1!==e&&(this.elements.splice(e,1),S.i.safeRemove(t.container),t.parentElement=null),this}clear(){return this.elements.forEach((t=>t.destruct())),this.elements.length=0,this}constructor(t,e,s){super(t,s),this.options=s,this.syncMod=!1,this.elements=[],this.buttonSize="middle",e?.forEach((t=>t&&this.append(t))),s?.name&&(this.name=s.name)}destruct(){return this.clear(),super.destruct()}};(0,p.gn)([(0,y.watch)("buttonSize")],R.prototype,"update",null),R=z=(0,p.gn)([y.component],R);var A=r(11441);let q=class t extends E.u{className(){return"UISeparator"}};q=(0,p.gn)([A.w],q);let O=class t extends E.u{className(){return"UISpacer"}};O=(0,p.gn)([A.w],O);const B=t=>(0,D.k)(t.buttons);function H(t,e){const s=e.getRegisteredButtonGroups();return new Set(t.reduce(((t,e)=>(B(e)?t=t.concat([...e.buttons,...s[e.group]??[]]):t.push(e),t)),[]))}var F=r(14556);let $=class t extends R{className(){return"UIList"}onChangeMode(){this.setMod("mode",this.mode)}constructor(t){super(t),this.mode="horizontal",this.removeButtons=[],this.onChangeMode()}makeGroup(){return new R(this.jodit)}get buttons(){return this.allChildren.filter((t=>x.w.isInstanceOf(t,V)))}getButtonsNames(){return this.buttons.map((t=>t instanceof V&&t.state.name||"")).filter((t=>""!==t))}setRemoveButtons(t){return this.removeButtons=t||[],this}build(t,e=null){t=(0,F.C)(t),this.clear();let s,i=!1,r=this.makeGroup();this.append(r),r.setMod("line",!0);const o=t=>{let o=null;switch(t.name){case"\n":r=this.makeGroup(),r.setMod("line",!0),s=this.makeGroup(),r.append(s),this.append(r);break;case"|":i||(i=!0,o=new q(this.j));break;case"---":{s.setMod("before-spacer",!0);const t=new O(this.j);r.append(t),s=this.makeGroup(),r.append(s),i=!1;break}default:i=!1,o=this.makeButton(t,e)}o&&(s||(s=this.makeGroup(),r.append(s)),s.append(o))},n=t=>!this.removeButtons.includes(t.name);return t.forEach((t=>{if(B(t)){const e=t.buttons.filter((t=>t));e.length&&(s=this.makeGroup(),s.setMod("separated",!0).setMod("group",t.group),r.append(s),((t,e)=>{const s=(0,D.k)(t)?t:(0,k.keys)(t,!1).map((e=>(0,k.ConfigProto)({name:e},t[e]||{})));return s.map((t=>P(t,e||f.D.defaultOptions.controls)))})(e,this.j.o.controls).filter(n).forEach(o))}else{s||(s=this.makeGroup(),r.append(s));const e=P(t,this.j.o.controls);n(e)&&o(e)}})),this.update(),this}makeButton(t,e){return new V(this.j)}};(0,p.gn)([(0,y.watch)("mode")],$.prototype,"onChangeMode",null),$=(0,p.gn)([y.component],$);var W=r(29411);let V=class t extends E.u{className(){return"UIButton"}setState(t){return Object.assign(this.state,t),this}get text(){return this.getElm("text")}get icon(){return this.getElm("icon")}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,k.attr)(this.container,"type",this.state.type)}updateSize(){const t=this.closest($);t&&(this.state.size=t.buttonSize)}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text)}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,k.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,k.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,k.attr)(this.container,"data-ref",this.state.name),(0,k.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){this.get("j.o.useNativeTooltip")&&(0,k.attr)(this.container,"title",this.state.tooltip),(0,k.attr)(this.container,"aria-label",this.state.tooltip)}onChangeTabIndex(){(0,k.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){const t=this.get("j.o.textIcons");if(!0===t||(0,L.m)(t)&&t(this.state.name))return;S.i.detach(this.icon);const e=M.J.makeIcon(this.j,this.state.icon);e&&this.icon.appendChild(e)}focus(){this.container.focus()}isFocused(){const{activeElement:t}=this.od;return!(!t||!S.i.isOrContains(this.container,t))}createContainer(){const t=this.componentName,e=this.j.c.element("button",{class:t,type:"button",role:"button",ariaPressed:!1}),s=this.j.c.span(t+"__icon"),i=this.j.c.span(t+"__text");return e.appendChild(s),e.appendChild(i),e}constructor(t,e){super(t),this.isButton=!0,this.state={size:"middle",type:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0},this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),e&&this.hookStatus(W.n.ready,(()=>{this.setState(e)}))}destruct(){return this.j.e.off(this.container),super.destruct()}onAction(t){return this.actionHandlers.push(t),this}__onActionFire(t){t.buffer={actionTrigger:this},this.actionHandlers.forEach((e=>e.call(this,t)))}};function U(t,e,s,i){const r=new V(t);return r.state.tabIndex=t.o.allowTabNavigation?0:-1,(0,T.H)(e)?(r.state.icon.name=e,r.state.name=e,i&&(r.state.variant=i),s&&(r.state.text=s)):r.setState(e),r}(0,p.gn)([y.cache],V.prototype,"text",null),(0,p.gn)([y.cache],V.prototype,"icon",null),(0,p.gn)([(0,y.watch)("state.size",{immediately:!1})],V.prototype,"onChangeSize",null),(0,p.gn)([(0,y.watch)("state.type",{immediately:!1})],V.prototype,"onChangeType",null),(0,p.gn)([(0,y.watch)("parentElement")],V.prototype,"updateSize",null),(0,p.gn)([(0,y.watch)("state.variant",{immediately:!1})],V.prototype,"onChangeStatus",null),(0,p.gn)([(0,y.watch)("state.text",{immediately:!1})],V.prototype,"onChangeText",null),(0,p.gn)([(0,y.watch)("state.text",{immediately:!1})],V.prototype,"onChangeTextSetMode",null),(0,p.gn)([(0,y.watch)("state.disabled")],V.prototype,"onChangeDisabled",null),(0,p.gn)([(0,y.watch)("state.activated")],V.prototype,"onChangeActivated",null),(0,p.gn)([(0,y.watch)("state.name",{immediately:!1})],V.prototype,"onChangeName",null),(0,p.gn)([(0,y.watch)("state.tooltip",{immediately:!1})],V.prototype,"onChangeTooltip",null),(0,p.gn)([(0,y.watch)("state.tabIndex",{immediately:!1})],V.prototype,"onChangeTabIndex",null),(0,p.gn)([(0,y.watch)("state.icon",{immediately:!1})],V.prototype,"onChangeIcon",null),(0,p.gn)([y.cacheHTML],V.prototype,"createContainer",null),(0,p.gn)([(0,y.watch)("button:click")],V.prototype,"__onActionFire",null),V=(0,p.gn)([y.component],V);let Y=class t extends R{className(){return"UIButtonGroup"}render(t){return`<div>\n\t\t\t<div class="&__label">~${t.label}~</div>\n\t\t\t<div class="&__options"></div>\n\t\t</div>`}appendChildToContainer(t){this.getElm("options").appendChild(t)}constructor(t,e={radio:!0}){super(t,e.options?.map((e=>{const s=new V(t,{text:e.text,value:e.value,variant:"primary"});return s.onAction((()=>{this.select(e.value)})),s})),e),this.options=e,this.select(e.value??0)}select(t){this.elements.forEach(((e,s)=>{s===t||e.state.value===t?e.state.activated=!0:this.options.radio&&(e.state.activated=!1)}));const e=this.elements.filter((t=>t.state.activated)).map((t=>({text:t.state.text,value:t.state.value})));this.jodit.e.fire(this,"select",e),this.options.onChange?.(e)}};Y=(0,p.gn)([A.w],Y);var G,X=r(64968),K=r(81710);let J=G=class t extends E.u{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}constructor(t){super(t),this.__isOpened=!1,this.__listenClose=!1,this.__currentTarget=null,this.__delayShowTimeout=0,this.__hideTimeout=0,t.o.textIcons||!t.o.showTooltip||t.o.useNativeTooltip||t.hookStatus(C.n$.ready,(()=>{(0,j.ZO)(t,G).appendChild(this.container),t.e.on(t.container,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0})}))}__addListenersOnClose(){if(this.__listenClose)return;this.__listenClose=!0;const t=this.j;t.e.on(t.ow,"scroll.tooltip",this.__hide).on(t.container,"mouseleave.tooltip",this.__hide).on(["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","closeAllPopups.tooltip"],this.__hide).on(t.container,"mouseleave",this.__onMouseLeave,{capture:!0})}__removeListenersOnClose(){if(!this.__listenClose)return;this.__listenClose=!1;const t=this.j;t.e.off(t.ow,"scroll.tooltip",this.__hide).off(["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","closeAllPopups.tooltip"],this.__hide).off(t.container,"mouseleave.tooltip",this.__onMouseLeave)}__onMouseLeave(t){this.__currentTarget===t.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(t){if(!X.i.isHTMLElement(t.target))return;const e=(0,k.attr)(t.target,"aria-label");if(!e)return;if((0,k.attr)(t.target,"disabled"))return;if(!t.target.className.includes("jodit"))return;this.__currentTarget=t.target;const s=(0,K.F)(t.target);this.__addListenersOnClose(),this.__delayOpen((()=>({x:s.left+s.width/2,y:s.top+s.height})),e)}__delayOpen(t,e){const s=this.j.o.showTooltipDelay||this.j.defaultTimeout;this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout),this.__delayShowTimeout=this.j.async.setTimeout((()=>this.__open(t,e)),{timeout:s,label:"tooltip"})}__open(t,e){this.setMod("visible",!0),this.getElm("content").innerHTML=e,this.__isOpened=!0,this.__setPosition(t)}__setPosition(t){const e=t();(0,k.css)(this.container,{left:e.x,top:e.y})}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnClose(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),(0,k.css)(this.container,{left:-5e3}))}__hideDelay(){this.__isOpened&&(this.j.async.clearTimeout(this.__delayShowTimeout),this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.j.e.off(this.j.container,"mouseenter",this.__onMouseEnter),this.__hide(),super.destruct()}};(0,p.gn)([y.autobind],J.prototype,"__onMouseLeave",null),(0,p.gn)([y.autobind],J.prototype,"__onMouseEnter",null),(0,p.gn)([y.autobind],J.prototype,"__delayOpen",null),(0,p.gn)([y.autobind],J.prototype,"__hide",null),(0,p.gn)([y.autobind],J.prototype,"__hideDelay",null),J=G=(0,p.gn)([y.component],J);var Z=r(1243);let Q=class t extends I{className(){return"ContextMenu"}show(t,e,s){const i=this,r=this.j.c.div(this.getFullElName("actions"));(0,Z.kJ)(s)&&(s.forEach((t=>{if(!t)return;const e=U(this.jodit,t.icon||"empty",t.title);this.jodit&&e.setParentView(this.jodit),e.setMod("context","menu"),e.onAction((e=>(t.exec?.call(i,e),i.close(),!1))),r.appendChild(e.container)})),this.setContent(r).open((()=>({left:t,top:e,width:0,height:0})),!0))}};Q=(0,p.gn)([A.w],Q);var tt=r(12557);const et=(()=>{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{}return!1})()),t)})();class st{set(t,e){try{const s=localStorage.getItem(this.rootKey),i=s?JSON.parse(s):{};i[t]=e,localStorage.setItem(this.rootKey,JSON.stringify(i))}catch{}return this}delete(t){try{localStorage.removeItem(this.rootKey)}catch{}return this}get(t){try{const e=localStorage.getItem(this.rootKey),s=e?JSON.parse(e):{};return void 0!==s[t]?s[t]:null}catch{}}exists(t){return null!=this.get(t)}constructor(t){this.rootKey=t}clear(){try{localStorage.removeItem(this.rootKey)}catch{}return this}}var it=r(26596);class rt{constructor(){this.data=new Map}set(t,e){return this.data.set(t,e),this}delete(t){return this.data.delete(t),this}get(t){return this.data.get(t)}exists(t){return this.data.has(t)}clear(){return this.data.clear(),this}}const ot="Jodit_";class nt{set(t,e){return this.provider.set((0,it.e)(this.prefix+t),e),this}delete(t){return this.provider.delete((0,it.e)(this.prefix+t)),this}get(t){return this.provider.get((0,it.e)(this.prefix+t))}exists(t){return this.provider.exists((0,it.e)(this.prefix+t))}clear(){return this.provider.clear(),this}constructor(t,e){this.provider=t,this.prefix=ot,e&&(this.prefix+=e)}static makeStorage(t=!1,e){let s;return t&&et()&&(s=new st(ot+e)),s||(s=new rt),new nt(s,e)}}var at=r(41681),lt=r(14089),ct=r(26911),ht=r(1853),dt=r(64350),ut=r(33941);const pt=t=>!!(0,ut.f)(t.value).length||(t.error="Please fill out this field",!1),ft=t=>!!(0,dt.P)((0,ut.f)(t.value))||(t.error="Please enter a web address",!1),mt=t=>!!(0,ut.f)(t.value).length||(t.error="Please fill out this field",!1);var gt;let vt=gt=class e extends E.u{className(){return"UIInput"}onChangeClear(){this.state.clearButton?S.i.after(this.nativeInput,this.clearButton):S.i.safeRemove(this.clearButton)}onChangeClassName(t,e){e&&this.container.classList.remove(e),this.state.className&&this.container.classList.add(this.state.className)}onChangeState(){this.name=this.state.name;const t=this.nativeInput,{name:e,icon:s,type:i,ref:r,required:o,placeholder:n,autocomplete:a,label:l}=this.state;(0,k.attr)(t,"name",e),(0,k.attr)(t,"type",i),(0,k.attr)(t,"data-ref",r||e),(0,k.attr)(t,"ref",r||e),(0,k.attr)(t,"required",o||null),(0,k.attr)(t,"autocomplete",a?null:"off"),(0,k.attr)(t,"placeholder",n?this.j.i18n(n):""),s&&M.J.exists(s)?(S.i.before(t,this.icon),this.icon.innerHTML=M.J.get(s)):S.i.safeRemove(this.icon),l?(S.i.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(l)):S.i.safeRemove(this.label),this.updateValidators()}updateValidators(){this.validators.clear(),this.state.required&&this.validators.add(pt),this.state.validators?.forEach((e=>{const s=t[e];s&&this.validators.add(s)}))}set error(t){this.setMod("has-error",!!t),t?(this.__errorBox.innerText=this.j.i18n(t,this.j.i18n(this.state.label||"")),this.container.appendChild(this.__errorBox)):S.i.safeRemove(this.__errorBox)}get value(){return this.nativeInput.value}set value(t){this.value!==t&&(this.nativeInput.value=t,this.onChangeValue())}onChangeStateValue(){const t=""+this.state.value;t!==this.value&&(this.value=t)}onChangeValue(){const{value:t}=this;this.state.value!==t&&(this.state.value=t,this.j.e.fire(this,"change",t),this.state.onChange?.(t))}validate(){return this.error="",(0,ht.q)(this.validators).every((t=>t(this)))}createContainer(t){const e=super.createContainer();this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());const{nativeInput:s}=this;return s.classList.add(this.getFullElName("input")),this.wrapper.appendChild(s),e.appendChild(this.wrapper),(0,k.attr)(s,"dir",this.j.o.direction||"auto"),e}createNativeInput(t){return this.j.create.element("input")}constructor(t,e){super(t,e),this.label=this.j.c.span(this.getFullElName("label")),this.icon=this.j.c.span(this.getFullElName("icon")),this.clearButton=this.j.c.span(this.getFullElName("clear"),M.J.get("cancel")),this.state={...gt.defaultState},this.__errorBox=this.j.c.span(this.getFullElName("error")),this.validators=new Set([]),void 0!==e?.value&&(e.value=""+e.value),Object.assign(this.state,e),void 0!==this.state.clearButton&&(this.j.e.on(this.clearButton,"click",(t=>{t.preventDefault(),this.nativeInput.value="",this.j.e.fire(this.nativeInput,"input"),this.focus()})).on(this.nativeInput,"input",(()=>{this.state.clearButton=!!this.value.length})),this.state.clearButton=!!this.value.length),this.j.e.on(this.nativeInput,"focus blur",(()=>{this.onChangeFocus()})).on(this.nativeInput,"input change",this.onChangeValue),this.onChangeState(),this.onChangeClassName(),this.onChangeStateValue()}focus(){this.nativeInput.focus()}get isFocused(){return this.nativeInput===this.j.od.activeElement}onChangeFocus(){this.setMod("focused",this.isFocused)}};vt.defaultState={className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]},(0,p.gn)([(0,y.watch)("state.clearButton")],vt.prototype,"onChangeClear",null),(0,p.gn)([(0,y.watch)("state.className")],vt.prototype,"onChangeClassName",null),(0,p.gn)([(0,y.watch)(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"],{immediately:!1}),(0,y.debounce)()],vt.prototype,"onChangeState",null),(0,p.gn)([(0,y.watch)("state.value")],vt.prototype,"onChangeStateValue",null),(0,p.gn)([y.autobind],vt.prototype,"onChangeValue",null),vt=gt=(0,p.gn)([y.component],vt);var bt,yt=r(36467);let wt=bt=class t extends vt{className(){return"UISelect"}createContainer(t){const e=super.createContainer(t),{j:s}=this,{nativeInput:i}=this,r=()=>s.create.element("option");if(void 0!==t.placeholder){const e=r();e.value="",e.text=s.i18n(t.placeholder),i.add(e)}return t.options?.forEach((t=>{const e=r();e.value=""+t.value,e.text=s.i18n(t.text),i.add(e)})),t.size&&t.size>0&&(0,yt.L)(i,"size",t.size),t.multiple&&(0,yt.L)(i,"multiple",""),e}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(pt),this.validators.add(mt))}constructor(t,e){super(t,e),this.state={...bt.defaultState},Object.assign(this.state,e)}};wt.defaultState={...vt.defaultState,options:[],size:1,multiple:!1},wt=bt=(0,p.gn)([A.w],wt);let _t=class t extends R{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){const t=this.allChildren.filter((t=>x.w.isInstanceOf(t,vt)));for(const e of t)if(!e.validate())return!1;const e=this.allChildren.filter((t=>x.w.isInstanceOf(t,wt)));for(const t of e)if(!t.validate())return!1;return!0}onSubmit(t){this.j.e.on(this.container,"submit",(()=>{const e=this.allChildren.filter((t=>x.w.isInstanceOf(t,vt)));return!!this.validate()&&(t(e.reduce(((t,e)=>(t[e.state.name]=e.value,t)),{})),!1)}))}createContainer(){const t=this.j.c.element("form");return t.classList.add(this.componentName),(0,k.attr)(t,"dir",this.j.o.direction||"auto"),t}constructor(...t){super(...t),this.options?.className&&this.container.classList.add(this.options?.className)}};var Ct;_t=(0,p.gn)([A.w],_t);let St=Ct=class t extends vt{className(){return"UITextArea"}constructor(t,e){super(t,e),this.state={...Ct.defaultState},this.nativeInput=this.j.create.element("textarea"),Object.assign(this.state,e),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}};var Et;St.defaultState={...vt.defaultState,size:5,resizable:!0},St=Ct=(0,p.gn)([A.w],St);let xt=Et=class t extends vt{className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}constructor(t,e){super(t,{...e,type:"checkbox"}),this.state={...Et.defaultState},Object.assign(this.state,e)}onChangeChecked(){this.value=""+this.state.checked,this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}onChangeNativeCheckBox(){this.state.checked=this.nativeInput.checked}onChangeSwitch(){this.setMod("switch",this.state.switch);let t=this.getElm("switch-slider");this.state.switch?(t||(t=this.j.c.div(this.getFullElName("switch-slider"))),S.i.after(this.nativeInput,t)):S.i.safeRemove(t)}};xt.defaultState={...vt.defaultState,checked:!1,switch:!1},(0,p.gn)([(0,y.watch)("state.checked"),(0,y.hook)("ready")],xt.prototype,"onChangeChecked",null),(0,p.gn)([(0,y.watch)("nativeInput:change")],xt.prototype,"onChangeNativeCheckBox",null),(0,p.gn)([(0,y.watch)("state.switch"),(0,y.hook)("ready")],xt.prototype,"onChangeSwitch",null),xt=Et=(0,p.gn)([y.component],xt);let jt=class t extends vt{className(){return"UIFileInput"}createContainer(t){this.button=new V(this.j,{icon:{name:"plus"}});const{container:e}=this.button;this.nativeInput||(this.nativeInput=this.createNativeInput(t));const{nativeInput:s}=this;return s.classList.add(this.getFullElName("input")),e.classList.add(this.componentName),e.appendChild(s),e}createNativeInput(t){return this.j.create.fromHTML(`<input\n\t\t\ttype="file"\n\t\t\taccept="${t.onlyImages?"image/*":"*"}"\n\t\t\ttabindex="-1"\n\t\t\tdir="auto"\n\t\t\tmultiple=""\n\t\t/>`)}constructor(t,e){super(t,{type:"file",...e}),this.state={...vt.defaultState,type:"file",onlyImages:!0}}};jt=(0,p.gn)([A.w],jt);let It=class t extends R{className(){return"UIBlock"}constructor(t,e,s={align:"left"}){super(t,e),this.options=s,this.setMod("align",this.options.align||"left"),this.setMod("width",this.options.width||""),this.options.mod&&this.setMod(this.options.mod,!0),this.options.className&&this.container.classList.add(this.options.className),(0,k.attr)(this.container,"data-ref",s.ref),(0,k.attr)(this.container,"ref",s.ref)}};It=(0,p.gn)([A.w],It);class kt extends E.u{className(){return"ProgressBar"}render(){return"<div><div></div></div>"}show(){return(this.j.workplace||this.j.container).appendChild(this.container),this}hide(){return S.i.safeRemove(this.container),this}progress(t){return this.container.style.width=t.toFixed(2)+"%",this}destruct(){return this.hide(),super.destruct()}}let Tt=class t extends E.u{className(){return"UIMessage"}constructor(t,e){super(t),this.setMod("active",!0),this.setMod("variant",e.variant),this.container.textContent=e.text}};Tt=(0,p.gn)([A.w],Tt);let Lt=class t extends R{className(){return"UIMessages"}constructor(t,e,s={defaultTimeout:3e3,defaultOffset:5}){super(t),this.__box=e,this.options=s,this.__messages=new Set}info(t,e){this.__message(t,"info",e)}success(t,e){this.__message(t,"success",e)}error(t,e){this.__message(t,"error",e)}message(t,e,s){this.__message(t,e,s)}__message(t,e="info",s){const i=t+":"+e;if(this.__messages.has(i))return void this.async.updateTimeout(i,s||this.options.defaultTimeout);this.__box.appendChild(this.container);const r=new Tt(this.j,{text:t,variant:e});this.append(r),this.__calcOffsets(),this.__messages.add(i);const o=this.__getRemoveCallback(r,i);this.j.e.on(r.container,"pointerdown",o),this.async.setTimeout(o,{label:i,timeout:s||this.options.defaultTimeout})}__getRemoveCallback(t,e){const s=i=>{i&&i.preventDefault(),t.isInDestruct||(this.async.clearTimeout(e),this.j.e.off(t.container,"pointerdown",s),this.__messages.delete(e),t.setMod("active",!1),this.async.setTimeout((()=>{this.remove(t),t.destruct(),this.__calcOffsets()}),300))};return s}__calcOffsets(){let t=5;this.elements.forEach((e=>{(0,ct.i)(e.container,"bottom",t+"px"),t+=e.container.offsetHeight+this.options.defaultOffset}))}};var Mt;Lt=(0,p.gn)([A.w],Lt);let Pt=Mt=class t extends C.wA{get basePath(){return this.o.basePath?this.o.basePath:u.BASE_PATH}get defaultTimeout(){return(0,v.isVoid)(this.o.defaultTimeout)?100:this.o.defaultTimeout}get buffer(){return nt.makeStorage()}get message(){return new Lt(this,this.container)}get storage(){return nt.makeStorage(!0,this.id)}get c(){return this.create}get container(){return this.__container}set container(t){this.__container=t}get e(){return this.events}get progressbar(){return new kt(this)}get options(){return this.__options}set options(t){this.__options=t}get o(){return this.options}i18n(t,...e){return(0,v.i18n)(t,e,this.options)}toggleFullSize(t){void 0===t&&(t=!this.__isFullSize),t!==this.__isFullSize&&(this.__isFullSize=t,this.e.fire("toggleFullSize",t))}get isLocked(){return""!==this.__whoLocked}lock(t="any"){return!this.isLocked&&(this.__whoLocked=t,!0)}unlock(){return!!this.isLocked&&(this.__whoLocked="",!0)}get isFullSize(){return this.__isFullSize}getVersion(){return Mt.version}static getVersion(){return Mt.version}initOptions(t){this.options=(0,v.ConfigProto)(t||{},(0,v.ConfigProto)(this.options||{},Mt.defaultOptions))}initOwners(){this.ownerWindow=this.o.ownerWindow??window}attachEvents(t){if(!t)return;const e=t?.events;e&&Object.keys(e).forEach((t=>this.e.on(t,e[t])))}constructor(t,e=!1){super(),this.isJodit=e,this.isView=!0,this.parent=null,this.mods={},this.components=new Set,this.OPTIONS=Mt.defaultOptions,this.__isFullSize=!1,this.__whoLocked="",this.isLockedNotBy=t=>this.isLocked&&this.__whoLocked!==t,this.__modulesInstances=new Map,this.id=""+(new Date).getTime(),this.initOptions(t),this.initOwners(),this.events=new m.vp(this.od),this.create=new Yt(this.od),this.container=this.c.div("jodit "+this.componentName)}getInstance(t,e){const s=this.e.fire((0,v.camelCase)("getInstance_"+t),e);if(s)return s;const i=j.qz[t],r=this.__modulesInstances;if(!(0,v.isFunction)(i))throw(0,v.error)("Need real module name");if(!r.has(t)){const s=i.prototype instanceof C.Hr?new i(this,e):new i(e);this.components.add(s),r.set(t,s)}return r.get(t)}addDisclaimer(t){this.container.appendChild(t)}beforeDestruct(){this.e.fire(C.n$.beforeDestruct,this),this.components.forEach((t=>{(0,v.isDestructable)(t)&&!t.isInDestruct&&t.destruct()})),this.components.clear()}destruct(){this.isDestructed||(this.progressbar.destruct(),this.message.destruct(),this.events&&(this.events.destruct(),this.events=void 0),this.buffer&&this.buffer.clear(),X.i.safeRemove(this.container),super.destruct())}};Pt.ES=u.ES,Pt.version=u.APP_VERSION,Pt.esNext=u.IS_ES_NEXT,(0,p.gn)([y.cache],Pt.prototype,"buffer",null),(0,p.gn)([y.cache],Pt.prototype,"message",null),(0,p.gn)([y.cache],Pt.prototype,"storage",null),(0,p.gn)([y.cache],Pt.prototype,"c",null),(0,p.gn)([y.cache],Pt.prototype,"e",null),(0,p.gn)([y.cache],Pt.prototype,"progressbar",null),(0,p.gn)([(0,y.hook)(C.n$.beforeDestruct)],Pt.prototype,"beforeDestruct",null),Pt=Mt=(0,p.gn)([(0,y.derive)(at.$,lt.F)],Pt),Pt.defaultOptions={extraButtons:[],cache:!0,textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0,language:"auto"};var Nt=r(41579);let zt=class t extends ${className(){return"ToolbarCollection"}get firstButton(){const[t]=this.buttons;return t||null}makeButton(t,e=null){return Ot(this.j,t,e)}shouldBeActive(t){}shouldBeDisabled(t){}getTarget(t){return t.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar"))}setDirection(t){this.container.style.direction=t,this.container.setAttribute("dir",t)}constructor(t){super(t),this.__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur",this.update=this.j.async.debounce(this.__immediateUpdate,(()=>this.j.defaultTimeout)),this.__tooltip=new J(this.jodit),this.__initEvents()}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(t){throw(0,Nt.vU)("The method is not implemented for this class.")}build(t,e=null){const s=this.j.e.fire("beforeToolbarBuild",t);return s&&(t=s),super.build(t,e),this}destruct(){this.isDestructed||(this.__tooltip?.destruct(),this.__tooltip=null,this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}};(0,p.gn)([y.autobind],zt.prototype,"__immediateUpdate",null),zt=(0,p.gn)([y.component],zt);let Dt=class t extends zt{className(){return"ToolbarEditorCollection"}shouldBeDisabled(t){const e=super.shouldBeDisabled(t);if(void 0!==e)return e;const s=void 0===t.control.mode?u.MODE_WYSIWYG:t.control.mode;return!(s===u.MODE_SPLIT||s===this.j.getRealMode())}shouldBeActive(t){const e=super.shouldBeActive(t);if(void 0!==e)return e;const s=this.j.selection?this.j.s.current():null;if(!s)return!1;let i;if(t.control.tags){const e=t.control.tags;if(i=s,X.i.up(i,(t=>{if(t&&-1!==e.indexOf(t.nodeName.toLowerCase()))return!0}),this.j.editor))return!0}if(t.control.css){const e=t.control.css;if(i=s,X.i.up(i,(t=>{if(t&&!X.i.isText(t))return this.checkActiveStatus(e,t)}),this.j.editor))return!0}return!1}getTarget(t){return t.target||this.j.s.current()||null}constructor(t){super(t),this.checkActiveStatus=(t,e)=>{let s=0,i=0;return Object.keys(t).forEach((r=>{const o=t[r];(0,v.isFunction)(o)?o(this.j,""+(0,v.css)(e,r))&&(s+=1):-1!==o.indexOf(""+(0,v.css)(e,r))&&(s+=1),i+=1})),i===s},this.prependInvisibleInput(this.container)}prependInvisibleInput(t){const e=this.j.create.element("input",{tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});X.i.appendChildFirst(t,e)}showInline(t){this.jodit.e.fire("showInlineToolbar",t)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}};Dt=(0,p.gn)([y.component],Dt);let Rt=class t extends V{className(){return"ToolbarButton"}get toolbar(){return this.closest(zt)}update(){window.__onupdate=(window.__onupdate??0)+1;const{control:t,state:e}=this,s=this.closest(zt);e.disabled=this.calculateDisabledStatus(s),e.activated=this.calculateActivatedStatus(s),(0,v.isFunction)(t.update)&&s&&t.update(this,s.jodit),super.update()}calculateActivatedStatus(t){return!((0,v.isJoditObject)(this.j)&&!this.j.editorIsActive||(!(0,v.isFunction)(this.control.isActive)||!this.control.isActive(this.j,this.control,this))&&(!t||!t.shouldBeActive(this)))}calculateDisabledStatus(t){return!(!this.j.o.disabled&&(!this.j.o.readonly||this.j.o.activeButtonsInReadOnly&&this.j.o.activeButtonsInReadOnly.includes(this.control.name))&&(!(0,v.isFunction)(this.control.isDisabled)||!this.control.isDisabled(this.j,this.control,this))&&(!t||!t.shouldBeDisabled(this)))}onChangeActivated(){(0,v.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,v.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,v.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){const t=this.componentName,e=this.j.c.span(t),s=super.createContainer();(0,v.attr)(e,"role","listitem"),s.classList.remove(t),s.classList.add(t+"__button"),Object.defineProperty(s,"component",{value:this}),e.appendChild(s);const i=this.j.c.fromHTML(`<span role="trigger" class="${t}__trigger">${M.J.get("chevron")}</span>`);return s.appendChild(i),e}focus(){this.container.querySelector("button")?.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):X.i.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){const t=this.state.disabled?"disabled":null;(0,v.attr)(this.trigger,"disabled",t),(0,v.attr)(this.button,"disabled",t),(0,v.attr)(this.container,"disabled",t)}constructor(t,e,s=null){super(t),this.control=e,this.target=s,this.state={size:"middle",type:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0,theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;const i=this.getElm("button");this.button=i,Object.defineProperty(i,"component",{value:this,configurable:!0});const r=this.getElm("trigger");this.trigger=r,r.remove(),t.e.on([this.button,this.trigger],"mousedown",(t=>t.preventDefault())),this.onAction(this.onClick),this.hookStatus(W.n.ready,(()=>{this.__initFromControl(),this.update()})),e.mods&&Object.keys(e.mods).forEach((t=>{e.mods&&this.setMod(t,e.mods[t])}))}__initFromControl(){const{control:t,state:e}=this;this.updateSize(),e.name=t.name;const{textIcons:s}=this.j.o;if(!0===s||(0,v.isFunction)(s)&&s(t.name)||t.template)e.icon={name:"empty",fill:"",iconURL:""},e.text=t.text||t.name;else{if(t.iconURL)e.icon.iconURL=t.iconURL;else{const s=t.icon||t.name;e.icon.name=M.J.exists(s)||this.j.o.extraIcons?.[s]?s:""}t.iconURL||e.icon.name||(e.text=t.text||t.name)}t.tooltip&&(e.tooltip=this.j.i18n((0,v.isFunction)(t.tooltip)?t.tooltip(this.j,t,this):t.tooltip)),e.hasTrigger=!!(t.list||t.popup&&t.exec)}onTriggerClick(t){if(this.openedPopup)return void this.closePopup();const{control:e}=this;if(t.buffer={actionTrigger:this},e.list)return this.openControlList(e);if((0,v.isFunction)(e.popup)){const t=this.openPopup();if(t.parentElement=this,!1!==this.j.e.fire((0,v.camelCase)(`before-${e.name}-open-popup`),this.target,e,t)){const s=this.toolbar?.getTarget(this)??this.target??null,i=e.popup(this.j,s,e,this.closePopup,this);i&&t.setContent((0,v.isString)(i)?this.j.c.fromHTML(i):i).open((()=>(0,v.position)(this.container)),!1,this.j.o.allowTabNavigation?this.container:void 0)}this.j.e.fire((0,v.camelCase)(`after-${e.name}-open-popup`),t.container)}}openControlList(t){const e=this.jodit.options.controls??{},s=t=>N(t,e),i=t.list,r=this.openPopup(),o=qt(this.j);r.parentElement=this,o.parentElement=r,o.mode="vertical";const n=(e,i)=>{if((0,v.isString)(i)&&s(i))return{name:""+i,...s(i)};if((0,v.isString)(e)&&s(e))return{name:""+e,...s(e),..."object"==typeof i?i:{}};(t=>(0,v.isPlainObject)(t)&&"title"in t&&"value"in t)(e)&&(i=e.value,e=e.title);const{childTemplate:r}=t,o={name:""+e,template:r&&((t,e,s)=>r(t,e,s,this)),exec:t.childExec?(e,s,i)=>t.childExec?.(e,s,{...i,parentControl:t}):t.exec,data:t.data,command:t.command,isActive:t.isChildActive,isDisabled:t.isChildDisabled,mode:t.mode,args:[...t.args?t.args:[],e,i]};return(0,v.isString)(i)&&(o.text=i),o};o.build((0,v.isArray)(i)?i.map(n):(0,v.keys)(i,!1).map((t=>n(t,i[t]))),this.target),r.setContent(o.container).open((()=>(0,v.position)(this.container)),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(t){this.openedPopup&&(t&&X.i.isNode(t.target)&&(X.i.isOrContains(this.container,t.target)||this.openedPopup.isOwnClick(t))||this.closePopup())}openPopup(){return this.closePopup(),this.openedPopup=new I(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null)}onClick(t){const{control:e}=this;if((0,v.isFunction)(e.exec)){const s=this.toolbar?.getTarget(this)??this.target??null,i=e.exec(this.j,s,{control:e,originalEvent:t,button:this});if(!1!==i&&!0!==i&&(this.j?.e?.fire("synchro"),this.parentElement&&this.parentElement.update(),this.j?.e?.fire("closeAllPopups afterExec")),!1!==i)return}return e.list?this.openControlList(e):(0,v.isFunction)(e.popup)?this.onTriggerClick(t):void((e.command||e.name)&&((0,v.call)((0,v.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),e.command||e.name,!1,e.args&&e.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.closePopup(),super.destruct()}};(0,p.gn)([y.cacheHTML],Rt.prototype,"createContainer",null),(0,p.gn)([(0,y.watch)("state.hasTrigger",{immediately:!1})],Rt.prototype,"onChangeHasTrigger",null),(0,p.gn)([(0,y.watch)("trigger:click")],Rt.prototype,"onTriggerClick",null),(0,p.gn)([y.autobind],Rt.prototype,"onOutsideClick",null),(0,p.gn)([y.autobind],Rt.prototype,"closePopup",null),Rt=(0,p.gn)([y.component],Rt);let At=class t extends V{className(){return"ToolbarContent"}update(){const t=this.control.getContent(this.j,this.control,this);((0,v.isString)(t)||t.parentNode!==this.container)&&(X.i.detach(this.container),this.container.appendChild((0,v.isString)(t)?this.j.create.fromHTML(t):t)),super.update()}createContainer(){return this.j.c.span(this.componentName)}constructor(t,e,s=null){super(t),this.control=e,this.target=s,this.container.classList.add(`${this.componentName}_${this.clearName(e.name)}`),(0,v.attr)(this.container,"role","content")}};function qt(t,e){const s=(0,v.isJoditObject)(t)?new Dt(t):new zt(t);return t.o.textIcons&&s.container.classList.add("jodit_text_icons"),e&&(s.parentElement=e),t.o.toolbarButtonSize&&(s.buttonSize=t.o.toolbarButtonSize),s}function Ot(t,e,s=null){if((0,v.isFunction)(e.getContent))return new At(t,e,s);const i=new Rt(t,e,s);return i.state.tabIndex=t.o.allowTabNavigation?0:-1,i}At=(0,p.gn)([y.component],At);class Bt extends Pt{get toolbarContainer(){return this.o.fullsize||!(0,Z.HD)(this.o.toolbar)&&!X.i.isHTMLElement(this.o.toolbar)?(this.o.toolbar&&X.i.appendChildFirst(this.container,this.defaultToolbarContainer),this.defaultToolbarContainer):(0,k.resolveElement)(this.o.toolbar,this.o.shadowRoot||this.od)}setPanel(t){this.o.toolbar=t,this.buildToolbar()}buildToolbar(){if(!this.o.toolbar)return;const t=this.o.buttons?(0,tt.C1)(this.o.buttons):[];this.toolbar?.setRemoveButtons(this.o.removeButtons).build(t.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}getRegisteredButtonGroups(){return this.groupToButtons}registerButton(t){this.registeredButtons.add(t);const e=t.group??"other";return this.groupToButtons[e]||(this.groupToButtons[e]=[]),null!=t.position?this.groupToButtons[e][t.position]=t.name:this.groupToButtons[e].push(t.name),this}unregisterButton(t){this.registeredButtons.delete(t);const e=t.group??"other",s=this.groupToButtons[e];if(s){const i=s.indexOf(t.name);-1!==i&&s.splice(i,1),0===s.length&&delete this.groupToButtons[e]}return this}beforeToolbarBuild(t){if(Object.keys(this.groupToButtons).length)return t.map((t=>B(t)&&t.group&&this.groupToButtons[t.group]?{group:t.group,buttons:[...t.buttons,...this.groupToButtons[t.group]]}:t))}constructor(t,e=!1){super(t,e),this.toolbar=qt(this),this.defaultToolbarContainer=this.c.div("jodit-toolbar__box"),this.registeredButtons=new Set,this.groupToButtons={},this.isJodit=!1,this.isJodit=e,this.e.on("beforeToolbarBuild",this.beforeToolbarBuild)}destruct(){this.isDestructed||(this.setStatus(C.n$.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.toolbar.destruct(),this.toolbar=void 0,super.destruct())}}(0,p.gn)([y.autobind],Bt.prototype,"beforeToolbarBuild",null),f.D.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[],toolbarButtonSize:"middle",zIndex:"inherit"},f.D.prototype.controls.dialog={close:{icon:"cancel",exec(t){t.close()}}};let Ht=class t extends Bt{className(){return"Dialog"}get destination(){return this.o.shadowRoot??this.od.body}setElements(t,e){const s=[];(0,tt._2)(e).forEach((e=>{if((0,Z.kJ)(e)){const i=this.c.div(this.getFullElName("column"));return s.push(i),t.appendChild(i),this.setElements(i,e)}let i;i=(0,Z.HD)(e)?this.c.fromHTML(e):(0,Z.Zt)(e)?e.container:e,s.push(i),i.parentNode!==t&&t.appendChild(i)})),(0,tt.qo)(t.childNodes).forEach((e=>{-1===s.indexOf(e)&&t.removeChild(e)}))}onMouseUp(){(this.draggable||this.resizable)&&(this.removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}onHeaderMouseDown(t){const e=t.target;!this.o.draggable||e&&e.nodeName.match(/^(INPUT|SELECT)$/)||(this.draggable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.x=(0,k.css)(this.dialog,"left"),this.startPoint.y=(0,k.css)(this.dialog,"top"),this.setMaxZIndex(),t.cancelable&&t.preventDefault(),this.lockSelect(),this.addGlobalResizeListeners(),this.e&&this.e.fire(this,"startMove"))}onMouseMove(t){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+t.clientX-this.startX,this.startPoint.y+t.clientY-this.startY),this.e&&this.e.fire(this,"move",t.clientX-this.startX,t.clientY-this.startY),t.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+t.clientX-this.startX,this.startPoint.h+t.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",t.clientX-this.startX,t.clientY-this.startY))}onEsc(t){if(this.isOpened&&t.key===u.KEY_ESC&&!0!==this.getMod("static")){const e=this.getMaxZIndexDialog();e?e.close():this.close(),t.stopImmediatePropagation()}}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.addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}addGlobalResizeListeners(){const t=this;t.e.on(t.ow,"pointermove touchmove",t.onMouseMove).on(t.ow,"pointerup touchend",t.onMouseUp)}removeGlobalResizeListeners(){const t=this;t.e.off(t.ow,"mousemove pointermove",t.onMouseMove).off(t.ow,"mouseup pointerup",t.onMouseUp)}setSize(t,e){return null==t&&(t=this.dialog.offsetWidth),null==e&&(e=this.dialog.offsetHeight),(0,k.css)(this.dialog,{width:t,height:e}),this}calcAutoSize(){return this.setSize("auto","auto"),this.setSize(),this}setPosition(t,e){let s=this.ow.innerWidth/2-this.dialog.offsetWidth/2,i=this.ow.innerHeight/2-this.dialog.offsetHeight/2;return 0>s&&(s=0),0>i&&(i=0),void 0!==t&&void 0!==e&&(this.offsetX=t,this.offsetY=e,this.moved=Math.abs(t-s)>100||Math.abs(e-i)>100),this.dialog.style.left=(t||s)+"px",this.dialog.style.top=(e||i)+"px",this}setHeader(t){return this.setElements(this.dialogbox_header,t),this}setContent(t){return this.setElements(this.dialogbox_content,t),this}setFooter(t){return this.setElements(this.dialogbox_footer,t),this.setMod("footer",!!t),this}getZIndex(){return parseInt((0,k.css)(this.container,"zIndex"),10)||0}getMaxZIndexDialog(){let t,e,s=0,i=this;return(0,k.$$)(".jodit-dialog",this.destination).forEach((r=>{t=r.component,e=parseInt((0,k.css)(r,"zIndex"),10),t.isOpened&&!isNaN(e)&&e>s&&(i=t,s=e)})),i}setMaxZIndex(){if(this.getMod("static"))return;let t=20000004,e=0;(0,k.$$)(".jodit-dialog",this.destination).forEach((s=>{e=parseInt((0,k.css)(s,"zIndex"),10),t=Math.max(isNaN(e)?0:e,t)})),this.container.style.zIndex=""+(t+1)}toggleFullSize(t){(0,Z.nj)(t)&&(t=!this.getMod("fullsize")),this.setMod("fullsize",t),super.toggleFullSize(t)}open(t,e,s,i){if(j.TB.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;(0,Z.jn)(t)&&(s=t),(0,Z.jn)(e)&&(i=e),this.destroyAfterClose=!0===s;const r=(0,Z.jn)(t)?void 0:t,o=(0,Z.jn)(e)?void 0:e;return void 0!==o&&this.setHeader(o),r&&this.setContent(r),this.setMod("active",!0),this.isOpened=!0,this.setModal(i),this.destination.appendChild(this.container),!0!==this.getMod("static")?(this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex()):this.container.style.removeProperty("z-index"),this.o.fullsize&&this.toggleFullSize(!0),this.e.fire("afterOpen",this),this}setModal(t){return this.isModal=!!t,this.setMod("modal",this.isModal),this}close(){return this.isDestructed||!this.isOpened||!0===this.getMod("static")||!1===this.e.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,this.isFullSize&&this.toggleFullSize(!1),S.i.safeRemove(this.container),this.removeGlobalResizeListeners(),this.e.fire(this,"afterClose"),this.e.fire(this.ow,"joditCloseDialog"),this.destroyAfterClose&&this.destruct()),this}constructor(t={}){super(t),this.destroyAfterClose=!1,this.moved=!1,this.resizable=!1,this.draggable=!1,this.startX=0,this.startY=0,this.startPoint={x:0,y:0,w:0,h:0},this.lockSelect=()=>{this.setMod("moved",!0)},this.unlockSelect=()=>{this.setMod("moved",!1)},this.onResize=()=>{this.options&&this.o.resizable&&!this.moved&&this.isOpened&&!this.offsetX&&!this.offsetY&&this.setPosition()},this.isModal=!1,this.isOpened=!1;const e=this;e.options=(0,k.ConfigProto)(t,(0,k.ConfigProto)(f.D.prototype.dialog,Pt.defaultOptions)),S.i.safeRemove(e.container);const s=this.getFullElName.bind(this);e.container=this.c.fromHTML(`<div class="jodit jodit-dialog ${this.componentName}">\n\t\t\t\t<div class="${s("overlay")}"></div>\n\t\t\t\t<div class="${this.getFullElName("panel")}">\n\t\t\t\t\t<div class="${s("header")}">\n\t\t\t\t\t\t<div class="${s("header-title")}"></div>\n\t\t\t\t\t\t<div class="${s("header-toolbar")}"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="${s("content")}"></div>\n\t\t\t\t\t<div class="${s("footer")}"></div>\n\t\t\t\t\t<div class="${s("resizer")}">${M.J.get("resize_handler")}</div>\n\t\t\t\t</div>\n\t\t\t</div>`),this.o.zIndex&&(this.container.style.zIndex=""+this.o.zIndex),(0,k.attr)(e.container,"role","dialog"),Object.defineProperty(e.container,"component",{value:this}),e.setMod("theme",e.o.theme||"default").setMod("resizable",!!e.o.resizable);const i=e.getElm("panel"),r=e.getElm("resizer"),o=e.getElm("header-title"),n=e.getElm("content"),a=e.getElm("footer"),l=e.getElm("header-toolbar");this.dialog=i,this.resizer=r,this.dialogbox_header=o,this.dialogbox_content=n,this.dialogbox_footer=a,this.dialogbox_toolbar=l,(0,k.css)(e.dialog,{maxWidth:e.options.maxWidth,minHeight:e.options.minHeight,minWidth:e.options.minWidth});const c=e.getElm("header");c&&e.e.on(c,"pointerdown touchstart",e.onHeaderMouseDown),e.e.on(e.resizer,"mousedown touchstart",e.onResizerMouseDown);const h=j.pw.get("fullsize");(0,Z.mf)(h)&&h(e),this.e.on(e.container,"close_dialog",e.close).on(this.ow,"keydown",this.onEsc).on(this.ow,"resize",this.onResize)}buildToolbar(){this.o.buttons&&this.toolbar.build((0,tt.C1)(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}destruct(){this.isInDestruct||(this.setStatus(C.n$.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.onEsc).off(this.ow,"resize",this.onResize)),super.destruct())}};(0,p.gn)([y.autobind],Ht.prototype,"onMouseUp",null),(0,p.gn)([y.autobind],Ht.prototype,"onHeaderMouseDown",null),(0,p.gn)([y.autobind],Ht.prototype,"onMouseMove",null),(0,p.gn)([y.autobind],Ht.prototype,"onEsc",null),(0,p.gn)([y.autobind],Ht.prototype,"onResizerMouseDown",null),(0,p.gn)([y.autobind],Ht.prototype,"close",null),(0,p.gn)([(0,y.hook)("ready")],Ht.prototype,"buildToolbar",null),Ht=(0,p.gn)([y.component],Ht);var Ft=r(34578);function $t(t,e,s,i="jodit-dialog_alert"){(0,L.m)(e)&&(s=e,e=void 0);const r=this instanceof Ht?this:new Ht,o=r.c.div(i),n=U(r,"ok","Ok");return(0,Ft._)(t).forEach((t=>{o.appendChild(S.i.isNode(t)?t:r.c.fromHTML(t))})),n.onAction((()=>{s&&(0,L.m)(s)&&!1===s(r)||r.close()})),r.setFooter([n]),r.open(o,e||"&nbsp;",!0,!0),n.focus(),r}function Wt(t,e,s,i,r){const o=this instanceof Ht?this:new Ht,n=U(o,"cancel","Cancel"),a=U(o,"ok","Ok"),l=o.c.element("form",{class:"jodit-dialog_prompt"}),c=o.c.element("input",{autofocus:!0,class:"jodit-input"}),h=o.c.element("label");(0,L.m)(e)&&(s=e,e=void 0),i&&(0,yt.L)(c,"placeholder",i),h.appendChild(o.c.text(t)),l.appendChild(h),l.appendChild(c),n.onAction(o.close);const d=()=>{s&&(0,L.m)(s)&&!1===s(c.value)||o.close()};return a.onAction(d),o.e.on(l,"submit",(()=>(d(),!1))),o.setFooter([a,n]),o.open(l,e||"&nbsp;",!0,!0),c.focus(),void 0!==r&&r.length&&(c.value=r,c.select()),o}function Vt(t,e,s){const i=this instanceof Ht?this:new Ht,r=i.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),o=i.c.element("label");(0,L.m)(e)&&(s=e,e=void 0),o.appendChild(i.c.fromHTML(t)),r.appendChild(o);const n=t=>()=>{s&&!1===s(t)||i.close()},a=U(i,"cancel","Cancel"),l=U(i,"ok","Yes");return a.onAction(n(!1)),l.onAction(n(!0)),i.e.on(r,"submit",(()=>(n(!0)(),!1))),i.setFooter([l,a]),i.open(r,e||"&nbsp;",!0,!0),l.focus(),i}var Ut=r(57549);class Yt{get doc(){return(0,v.isFunction)(this.document)?this.document():this.document}constructor(t,e){this.document=t,this.createAttributes=e}element(t,e,s){const i=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(i),e&&((0,v.isPlainObject)(e)?(0,v.attr)(i,e):s=e),s&&(0,v.asArray)(s).forEach((t=>i.appendChild((0,v.isString)(t)?this.fromHTML(t):t))),i}div(t,e,s){const i=this.element("div",e,s);return t&&(i.className=t),i}sandbox(){const t=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(t);const e=t.contentWindow?.document;if(!e)throw Error("Iframe error");return e.open(),e.write("<!DOCTYPE html><html><head></head><body></body></html>"),e.close(),e.body}span(t,e,s){const i=this.element("span",e,s);return t&&(i.className=t),i}a(t,e,s){const i=this.element("a",e,s);return t&&(i.className=t),i}text(t){return this.doc.createTextNode(t)}fake(){return this.text(u.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,e){const s=this.div();s.innerHTML=""+t;const i=s.firstChild===s.lastChild&&s.firstChild?s.firstChild:s;if(S.i.safeRemove(i),e){const t=(0,v.refs)(i);Object.keys(e).forEach((s=>{const i=t[s];i&&!1===e[s]&&S.i.hide(i)}))}return i}applyCreateAttributes(t){if(this.createAttributes){const e=this.createAttributes;if(e&&e[t.tagName.toLowerCase()]){const s=e[t.tagName.toLowerCase()];(0,v.isFunction)(s)?s(t):(0,v.isPlainObject)(s)&&(0,v.attr)(t,s)}}}}class Gt{constructor(t){this.data=t,Object.keys(t).forEach((e=>{this[e]=t[e]}))}static create(t){return t instanceof Gt?t:new Gt(t)}get path(){return(0,v.normalizePath)(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){const t=this.time||""+(new Date).getTime(),{thumbIsAbsolute:e,source:s,thumb:i,file:r}=this.data,o=i||r;return e&&o?o:(0,v.normalizeUrl)(s.baseurl,s.path,o||"")+"?_tmst="+encodeURIComponent(t)}get fileURL(){let{name:t}=this.data;const{file:e,fileIsAbsolute:s,source:i}=this.data;return void 0!==e&&(t=e),s&&t?t:(0,v.normalizeUrl)(i.baseurl,i.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}toJSON(){return this.data}}const Xt="default",Kt=["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"];let Jt=class t{constructor(t,e){this.parent=t,this.options=e,this.__currentPermissions=null,this.ajaxInstances=new Map,this.progressHandler=t=>{}}get o(){return this.options}get(t){const e=this.ajaxInstances;if(e.has(t)){const s=e.get(t);s?.abort(),e.delete(t)}const s=(0,v.ConfigProto)(void 0!==this.options[t]?this.options[t]:{},(0,v.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));s.prepareData&&(s.data=s.prepareData.call(this,s.data));const i=new _(s);e.set(t,i);const r=i.send();return r.finally((()=>{i.destruct(),e.delete(t),this.progressHandler(100)})).catch((()=>null)),r.then((t=>t.json())).then((t=>{if(t&&!this.isSuccess(t))throw Error(this.getMessage(t));return t}))}onProgress(t){this.progressHandler=t}async permissions(t,e){return this.o.permissions?(this.o.permissions.data.path=t,this.o.permissions.data.source=e,this.o.permissions.url?this.get("permissions").then((t=>{let e=this.o.permissions.process;if(e||(e=this.o.ajax.process),e){const s=e.call(self,t);s.data.permissions&&(this.__currentPermissions=s.data.permissions)}return this.__currentPermissions})):null):null}canI(t){const e="allow"+t;if(!u.IS_PROD&&!Kt.includes(e))throw(0,v.error)("Wrong action "+t);const s=this.o.permissionsPresets[e];return void 0!==s?s:null==this.__currentPermissions||void 0===this.__currentPermissions[e]||this.__currentPermissions[e]}__items(t,e,s,i){const r=this.options;return r.items?(r.items.data.path=t,r.items.data.source=e,r.items.data.mods=s,this.get("items").then((t=>{let e=this.o.items.process;return e||(e=this.o.ajax.process),e&&(t=e.call(self,t)),i(t)}))):Promise.reject("Set Items api options")}items(t,e,s={}){return this.__items(t,e,s,(t=>this.generateItemsList(t.data.sources,s)))}itemsEx(t,e,s={}){return this.__items(t,e,s,(t=>{return{items:this.generateItemsList(t.data.sources,s),loadedTotal:(e=t.data.sources,e.reduce(((t,e)=>t+e.files.length),0))};var e}))}generateItemsList(t,e={}){const s=[],i=t=>!e.filterWord?.length||void 0===this.o.filter||this.o.filter(t,e.filterWord);return t.forEach((t=>{if(t.files&&t.files.length){const{sort:r}=this.o;(0,v.isFunction)(r)&&e.sortBy&&t.files.sort(((t,s)=>r(t,s,e.sortBy))),t.files.forEach((r=>{i(r)&&(t=>"folder"===t.type||!e.onlyImages||void 0===t.isImage||t.isImage)(r)&&s.push(Gt.create({...r,sourceName:t.name,source:t}))}))}})),s}async tree(t,e){return t=(0,v.normalizeRelativePath)(t),this.o.folder?(await this.permissions(t,e),this.o.folder.data.path=t,this.o.folder.data.source=e,this.get("folder").then((t=>{let e=this.o.folder.process;return e||(e=this.o.ajax.process),e&&(t=e.call(self,t)),t.data.sources}))):Promise.reject("Set Folder Api options")}getPathByUrl(t){return(0,v.set)("options.getLocalFileByUrl.data.url",t,this),this.get("getLocalFileByUrl").then((t=>{if(this.isSuccess(t))return t.data;throw(0,v.error)(this.getMessage(t))}))}createFolder(t,e,s){const{create:i}=this.o;if(!i)throw(0,v.error)("Set Create api options");return i.data.source=s,i.data.path=e,i.data.name=t,this.get("create").then((t=>{if(this.isSuccess(t))return!0;throw(0,v.error)(this.getMessage(t))}))}move(t,e,s,i){const r=i?"fileMove":"folderMove",o=this.options[r];if(!o)throw(0,v.error)("Set Move api options");return o.data.from=t,o.data.path=e,o.data.source=s,this.get(r).then((t=>{if(this.isSuccess(t))return!0;throw(0,v.error)(this.getMessage(t))}))}remove(t,e,s,i){const r=this.o[t];if(!r)throw(0,v.error)(`Set "${t}" api options`);return r.data.path=e,r.data.name=s,r.data.source=i,this.get(t).then((t=>(r.process&&(t=r.process.call(this,t)),this.getMessage(t))))}fileRemove(t,e,s){return this.remove("fileRemove",t,e,s)}folderRemove(t,e,s){return this.remove("folderRemove",t,e,s)}rename(t,e,s,i,r){const o=this.o[t];if(!o)throw(0,v.error)(`Set "${t}" api options`);return o.data.path=e,o.data.name=s,o.data.newname=i,o.data.source=r,this.get(t).then((t=>(o.process&&(t=o.process.call(self,t)),this.getMessage(t))))}folderRename(t,e,s,i){return this.rename("folderRename",t,e,s,i)}fileRename(t,e,s,i){return this.rename("fileRename",t,e,s,i)}changeImage(t,e,s,i,r,o){this.o[t]||(this.o[t]={data:{}});const n=this.o[t];return void 0===n.data&&(n.data={action:t}),n.data.newname=r||i,o&&(n.data.box=o),n.data.path=e,n.data.name=i,n.data.source=s,this.get(t).then((()=>!0))}crop(t,e,s,i,r){return this.changeImage("crop",t,e,s,i,r)}resize(t,e,s,i,r){return this.changeImage("resize",t,e,s,i,r)}getMessage(t){return this.options.getMessage(t)}isSuccess(t){return this.options.isSuccess(t)}destruct(){this.ajaxInstances.forEach((t=>t.destruct())),this.ajaxInstances.clear()}};Jt=(0,p.gn)([y.autobind],Jt);var Zt=Jt,Qt=r(46361);const te=new WeakMap,ee=t=>{let e=te.get(t);return e||(e={},te.set(t,e)),e};function se(t){return t.files.setMod("active",!0),t.files.setMod("loading",!0),t.dataProvider.items(t.state.currentPath,t.state.currentSource,{sortBy:t.state.sortBy,onlyImages:t.state.onlyImages,filterWord:t.state.filterWord}).then((e=>{e&&(t.state.elements=e,t.state.activeElements=[])})).catch(t.status).finally((()=>t.files.setMod("loading",!1)))}async function ie(t){t.tree.setMod("active",!0),X.i.detach(t.tree.container);const e=se(t);if(t.o.showFoldersPanel){t.tree.setMod("loading",!0);const s=t.dataProvider.tree(t.state.currentPath,t.state.currentSource).then((e=>{t.state.sources=e})).catch(t.status).finally((()=>t.tree.setMod("loading",!1)));return Promise.all([s,e])}return t.tree.setMod("active",!1),e}function re(){const t=ee(this),{state:e,files:s,create:i,options:r}=this,o=e=>{const s=e.uniqueHashKey;if(t[s])return t[s].elm;const o=i.fromHTML(r.getThumbTemplate.call(this,e,e.source,""+e.sourceName));return o.dataset.key=s,t[s]={item:e,elm:o},t[s].elm};e.on(["change.currentPath","change.currentSource"],this.async.debounce((()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeLastOpenedFolder&&this.storage.set("currentPath",this.state.currentPath).set("currentSource",this.state.currentSource),ie(this).catch(this.status)}),this.defaultTimeout)).on("beforeChange.activeElements",(()=>{e.activeElements.forEach((e=>{const i=e.uniqueHashKey,{elm:r}=t[i];r&&r.classList.remove(s.getFullElName("item","active",!0))}))})).on("change.activeElements",(()=>{this.e.fire("changeSelection"),e.activeElements.forEach((e=>{const i=e.uniqueHashKey,{elm:r}=t[i];r&&r.classList.add(s.getFullElName("item","active",!0))}))})).on("change.view",(()=>{s.setMod("view",e.view),this.o.saveStateInStorage&&this.o.saveStateInStorage.storeView&&this.storage.set("view",e.view)})).on("change.sortBy",(()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeSortBy&&this.storage.set("sortBy",e.sortBy)})).on("change.elements",this.async.debounce((()=>{X.i.detach(s.container),e.elements.length?e.elements.forEach((t=>{this.files.container.appendChild(o(t))})):s.container.appendChild(i.div(this.componentName+"_no-files_true",this.i18n("There are no files")))}),this.defaultTimeout)).on("change.sources",this.async.debounce((()=>{X.i.detach(this.tree.container),e.sources.forEach((t=>{const e=t.name;if(e&&"default"!==e&&this.tree.container.appendChild(i.div(this.tree.getFullElName("source-title"),e)),t.folders.forEach((s=>{const o=i.a(this.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":(0,Qt.AH)(t.path,s+"/"),"data-name":s,"data-source":e,"data-source-path":t.path},i.span(this.tree.getFullElName("item-title"),s)),n=i=>r=>{this.e.fire(i+".filebrowser",{name:s,path:(0,Qt.AH)(t.path+"/"),source:e}),r.stopPropagation(),r.preventDefault()};if(this.e.on(o,"click",n("openFolder")),this.tree.container.appendChild(o),".."!==s&&"."!==s){if(r.renameFolder&&this.dataProvider.canI("FolderRename")){const t=U(this,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});t.onAction(n("renameFolder")),o.appendChild(t.container)}if(r.deleteFolder&&this.dataProvider.canI("FolderRemove")){const t=U(this,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});t.onAction(n("removeFolder")),o.appendChild(t.container)}}})),r.createNewFolder&&this.dataProvider.canI("FolderCreate")){const s=U(this,"plus","Add folder","secondary");s.onAction((()=>{this.e.fire("addFolder",{path:(0,Qt.AH)(t.path+"/"),source:e})})),this.tree.append(s)}}))}),this.defaultTimeout))}const oe="jodit-image-editor",ne=M.J.get.bind(M.J),ae=(t,e="jodti-image-editor_active")=>t?e:"";var le,ce=r(3125),he=r.n(ce),de=r(54209),ue=r.n(de);f.D.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},M.J.set("crop",he()).set("resize",ue());const pe="jodit-image-editor",fe="resize",me="crop";let ge=le=class t extends C.Hr{className(){return"ImageEditor"}onTitleModeClick(t){const e=this,s=t.target,i=s?.parentElement;if(!i)return;(0,v.$$)(`.${pe}__slider,.${pe}__area`,e.editor).forEach((t=>t.classList.remove(pe+"_active"))),i.classList.add(pe+"_active"),this.activeTab=(0,v.attr)(i,"-area")||fe;const r=e.editor.querySelector(`.${pe}__area.${pe}__area_`+e.activeTab);r&&r.classList.add(pe+"_active"),e.activeTab===me&&e.showCrop()}onChangeSizeInput(t){const e=this,s=t.target,{widthInput:i,heightInput:r}=(0,v.refs)(this.editor),o="widthInput"===(0,v.attr)(s,"data-ref"),n=parseInt(s.value,10),a=o?e.o.min_height:e.o.min_width;let l;n>(o?e.o.min_width:e.o.min_height)&&((0,v.css)(e.image,o?"width":"height",n),e.resizeUseRatio&&(l=Math.round(o?n/e.ratio:n*e.ratio),l>a&&((0,v.css)(e.image,o?"height":"width",l),o?r.value=""+l:i.value=""+l))),this.j.e.fire(e.resizeHandler,"updatesize")}onResizeHandleMouseDown(t){const e=this;e.target=t.target,t.preventDefault(),t.stopImmediatePropagation(),e.clicked=!0,e.start_x=t.clientX,e.start_y=t.clientY,e.activeTab===me?(e.top_x=(0,v.css)(e.cropHandler,"left"),e.top_y=(0,v.css)(e.cropHandler,"top"),e.width=e.cropHandler.offsetWidth,e.height=e.cropHandler.offsetHeight):(e.width=e.image.offsetWidth,e.height=e.image.offsetHeight),e.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(t){this.clicked&&(this.clicked=!1,t.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(t){const e=this;if(!e.clicked)return;const{widthInput:s,heightInput:i}=(0,v.refs)(this.editor);e.diff_x=t.clientX-e.start_x,e.diff_y=t.clientY-e.start_y,e.activeTab===fe&&e.resizeUseRatio||e.activeTab===me&&e.cropUseRatio?e.diff_x?(e.new_w=e.width+e.diff_x,e.new_h=Math.round(e.new_w/e.ratio)):(e.new_h=e.height+e.diff_y,e.new_w=Math.round(e.new_h*e.ratio)):(e.new_w=e.width+e.diff_x,e.new_h=e.height+e.diff_y),e.activeTab===fe?(e.new_w>e.o.resizeMinWidth&&((0,v.css)(e.image,"width",e.new_w+"px"),s.value=""+e.new_w),e.new_h>e.o.resizeMinHeight&&((0,v.css)(e.image,"height",e.new_h+"px"),i.value=""+e.new_h),this.j.e.fire(e.resizeHandler,"updatesize")):(e.target!==e.cropHandler?(e.top_x+e.new_w>e.cropImage.offsetWidth&&(e.new_w=e.cropImage.offsetWidth-e.top_x),e.top_y+e.new_h>e.cropImage.offsetHeight&&(e.new_h=e.cropImage.offsetHeight-e.top_y),(0,v.css)(e.cropHandler,{width:e.new_w,height:e.new_h})):(e.top_x+e.diff_x+e.cropHandler.offsetWidth>e.cropImage.offsetWidth&&(e.diff_x=e.cropImage.offsetWidth-e.top_x-e.cropHandler.offsetWidth),(0,v.css)(e.cropHandler,"left",e.top_x+e.diff_x),e.top_y+e.diff_y+e.cropHandler.offsetHeight>e.cropImage.offsetHeight&&(e.diff_y=e.cropImage.offsetHeight-e.top_y-e.cropHandler.offsetHeight),(0,v.css)(e.cropHandler,"top",e.top_y+e.diff_y)),this.j.e.fire(e.cropHandler,"updatesize"))}get o(){return this.options}hide(){this._dialog.close()}open(t,e){return this.j.async.promise((s=>{const i=(new Date).getTime();this.image=this.j.c.element("img"),(0,v.$$)("img,.jodit-icon_loader",this.resize_box).forEach(X.i.safeRemove),(0,v.$$)("img,.jodit-icon_loader",this.crop_box).forEach(X.i.safeRemove),(0,v.css)(this.cropHandler,"background","transparent"),this.onSave=e,this.resize_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.crop_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.image.setAttribute("src",t+=/\?/.test(t)?"&_tst="+i:"?_tst="+i),this._dialog.open();const{widthInput:r,heightInput:o}=(0,v.refs)(this.editor),n=()=>{this.isDestructed||(this.image.removeEventListener("load",n),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,r.value=""+this.naturalWidth,o.value=""+this.naturalHeight,this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),X.i.safeRemove.apply(null,(0,v.$$)(".jodit-icon_loader",this.editor)),this.activeTab===me&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),s(this._dialog))};this.image.addEventListener("load",n),this.image.complete&&n()}))}constructor(t){super(t),this.resizeUseRatio=!0,this.cropUseRatio=!0,this.clicked=!1,this.start_x=0,this.start_y=0,this.top_x=0,this.top_y=0,this.width=0,this.height=0,this.activeTab=fe,this.naturalWidth=0,this.naturalHeight=0,this.ratio=0,this.new_h=0,this.new_w=0,this.diff_x=0,this.diff_y=0,this.cropBox={x:0,y:0,w:0,h:0},this.resizeBox={w:0,h:0},this.calcCropBox=()=>{const t=this.crop_box.parentNode,e=.8*t.offsetWidth,s=.8*t.offsetHeight;let i=e,r=s;const{naturalWidth:o,naturalHeight:n}=this;e>o&&s>n?(i=o,r=n):this.ratio>e/s?(i=e,r=n*(e/o)):(i=o*(s/n),r=s),(0,v.css)(this.crop_box,{width:i,height:r})},this.showCrop=()=>{if(!this.cropImage)return;this.calcCropBox();const t=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=le.calcValueByPercent(t,this.o.cropDefaultWidth);const e=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.new_h=this.cropUseRatio?this.new_w/this.ratio:le.calcValueByPercent(e,this.o.cropDefaultHeight),(0,v.css)(this.cropHandler,{backgroundImage:"url("+(0,v.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:t/2-this.new_w/2,top:e/2-this.new_h/2}),this.j.e.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=(0,v.css)(this.cropHandler,"left")/t,this.cropBox.y=(0,v.css)(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,{widthInput:e,heightInput:s}=(0,v.refs)(this.editor);t.j.e.on([t.editor.querySelector(".jodit_bottomright"),t.cropHandler],"mousedown."+pe,this.onResizeHandleMouseDown).on(this.j.ow,"resize."+pe,(()=>{this.j.e.fire(t.resizeHandler,"updatesize"),t.showCrop(),this.j.e.fire(t.cropHandler,"updatesize")})),t.j.e.on((0,v.toArray)(this.editor.querySelectorAll(`.${pe}__slider-title`)),"click",this.onTitleModeClick).on([e,s],"input",this.onChangeSizeInput);const{keepAspectRatioResize:i,keepAspectRatioCrop:r}=(0,v.refs)(this.editor);i&&i.addEventListener("change",(()=>{this.resizeUseRatio=i.checked})),r&&r.addEventListener("change",(()=>{this.cropUseRatio=r.checked})),t.j.e.on(t.resizeHandler,"updatesize",(()=>{(0,v.css)(t.resizeHandler,{top:0,left:0,width:t.image.offsetWidth||t.naturalWidth,height:t.image.offsetHeight||t.naturalHeight}),this.updateResizeBox()})).on(t.cropHandler,"updatesize",(()=>{if(!t.cropImage)return;let e=(0,v.css)(t.cropHandler,"left"),s=(0,v.css)(t.cropHandler,"top"),i=t.cropHandler.offsetWidth,r=t.cropHandler.offsetHeight;0>e&&(e=0),0>s&&(s=0),e+i>t.cropImage.offsetWidth&&(i=t.cropImage.offsetWidth-e,t.cropUseRatio&&(r=i/t.ratio)),s+r>t.cropImage.offsetHeight&&(r=t.cropImage.offsetHeight-s,t.cropUseRatio&&(i=r*t.ratio)),(0,v.css)(t.cropHandler,{width:i,height:r,left:e,top:s,backgroundPosition:-e-1+"px "+(-s-1)+"px",backgroundSize:t.cropImage.offsetWidth+"px "+t.cropImage.offsetHeight+"px"}),t.updateCropBox()})),Object.values(t.buttons).forEach((i=>{i.onAction((()=>{const r={action:t.activeTab,box:t.activeTab===fe?t.resizeBox:t.cropBox};switch(i){case t.buttons.saveas:t.j.prompt("Enter new name","Save in new file",(e=>{if(!(0,v.trim)(e))return t.j.alert("The name should not be empty"),!1;t.onSave(e,r,t.hide,(e=>{t.j.alert(e.message)}))}));break;case t.buttons.save:t.onSave(void 0,r,t.hide,(e=>{t.j.alert(e.message)}));break;case t.buttons.reset:t.activeTab===fe?((0,v.css)(t.image,{width:null,height:null}),e.value=""+t.naturalWidth,s.value=""+t.naturalHeight,t.j.e.fire(t.resizeHandler,"updatesize")):t.showCrop()}}))}))},this.options=t&&t.o&&t.o.imageeditor?t.o.imageeditor:f.D.defaultOptions.imageeditor;const e=this.options;this.resizeUseRatio=e.resizeUseRatio,this.cropUseRatio=e.cropUseRatio,this.buttons={reset:U(this.j,"update","Reset"),save:U(this.j,"save","Save"),saveas:U(this.j,"save","Save as ...")},this.activeTab=e.resize?fe:me,this.editor=((t,e)=>{const s=t.i18n.bind(t),i=(t,e,i=!0)=>`<div class="jodit-form__group">\n\t\t\t<label>${s(t)}</label>\n\n\t\t\t<label class='jodit-switcher'>\n\t\t\t\t<input ${ae(i,"checked")} data-ref="${e}" type="checkbox"/>\n\t\t\t\t<span class="jodit-switcher__slider"></span>\n\t\t\t</label>\n\t</div>`;return t.create.fromHTML(`<form class="${oe} jodit-properties">\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-3-4 jodit_col-sm-5-5">\n\t\t\t${e.resize?`<div class="${oe}__area ${oe}__area_resize ${oe}_active">\n\t\t\t\t\t\t\t<div data-ref="resizeBox" class="${oe}__box"></div>\n\t\t\t\t\t\t\t<div class="${oe}__resizer">\n\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t${e.crop?`<div class="${oe}__area ${oe}__area_crop ${ae(!e.resize)}">\n\t\t\t\t\t\t\t<div data-ref="cropBox" class="${oe}__box">\n\t\t\t\t\t\t\t\t<div class="${oe}__croper">\n\t\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t\t\t<i class="${oe}__sizes"></i>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t</div>\n\t\t\t<div class="jodit_col-lg-1-4 jodit_col-sm-5-5">\n\t\t\t${e.resize?`<div data-area="resize" class="${oe}__slider ${oe}_active">\n\t\t\t\t\t\t\t<div class="${oe}__slider-title">\n\t\t\t\t\t\t\t\t${ne("resize")}\n\t\t\t\t\t\t\t\t${s("Resize")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="${oe}__slider-content">\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t${s("Width")}\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="widthInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t${s("Height")}\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="heightInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t${i("Keep Aspect Ratio","keepAspectRatioResize")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t${e.crop?`<div data-area="crop" class="${oe}__slider ${ae(!e.resize)}'">\n\t\t\t\t\t\t\t<div class="${oe}__slider-title">\n\t\t\t\t\t\t\t\t${ne("crop")}\n\t\t\t\t\t\t\t\t${s("Crop")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="${oe}__slider-content">\n\t\t\t\t\t\t\t\t${i("Keep Aspect Ratio","keepAspectRatioCrop")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t</div>\n\t\t</div>\n\t</form>`)})(this.j,this.options);const{resizeBox:s,cropBox:i}=(0,v.refs)(this.editor);this.resize_box=s,this.crop_box=i,this.sizes=this.editor.querySelector(`.${pe}__area.${pe}__area_crop .jodit-image-editor__sizes`),this.resizeHandler=this.editor.querySelector(`.${pe}__resizer`),this.cropHandler=this.editor.querySelector(`.${pe}__croper`),this._dialog=this.j.dlg({buttons:["fullsize","dialog.close"]}),this._dialog.setContent(this.editor),this._dialog.setSize(this.o.width,this.o.height),this._dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),X.i.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,"."+pe).off("."+pe),super.destruct())}};function ve(t,e,s,i,r,o){return this.getInstance("ImageEditor",this.o).open(t,((t,n,a,l)=>(0,v.call)("resize"===n.action?this.dataProvider.resize:this.dataProvider.crop,s,i,e,t,n.box).then((t=>{t&&(a(),r&&r())})).catch((t=>{l(t),o&&o(t)}))))}function be(t,e,s){return t.dataProvider.fileRemove(t.state.currentPath,e,s).then((s=>{t.status(s||t.i18n('File "%s" was deleted',e),!0)})).catch(t.status)}ge.calcValueByPercent=(t,e)=>{const s=""+e,i=parseFloat(""+t);let r;return r=/^[-+]?[0-9]+(px)?$/.exec(s),r?parseInt(s,10):(r=/^([-+]?[0-9.]+)%$/.exec(s),r?Math.round(i*(parseFloat(r[1])/100)):i||0)},(0,p.gn)([y.autobind],ge.prototype,"onTitleModeClick",null),(0,p.gn)([(0,y.debounce)(),y.autobind],ge.prototype,"onChangeSizeInput",null),(0,p.gn)([y.autobind],ge.prototype,"onResizeHandleMouseDown",null),(0,p.gn)([y.autobind],ge.prototype,"onGlobalMouseUp",null),(0,p.gn)([(0,y.throttle)(10)],ge.prototype,"onGlobalMouseMove",null),(0,p.gn)([y.autobind],ge.prototype,"hide",null),(0,p.gn)([y.autobind],ge.prototype,"open",null),ge=le=(0,p.gn)([y.component],ge);const ye="jodit-filebrowser-preview",we=(t="next",e="right")=>`<div class="${ye}__navigation ${ye}__navigation_arrow_${t}">`+M.J.get("angle-"+e)+"</a>";var _e=t=>{if(!t.o.contextMenu)return()=>{};const e=new Q(t);return s=>{const i=Ce(s.target,t.container);if(!i)return;let r=i;const o=t.options,n=t=>(0,k.attr)(r,t)||"";return t.async.setTimeout((()=>{const a=Se(i,ee(t));a&&(t.state.activeElements=[a],e.show(s.clientX,s.clientY,[!("1"===n("data-is-file")||!o.editImage||!t.dataProvider.canI("ImageResize")&&!t.dataProvider.canI("ImageCrop"))&&{icon:"pencil",title:"Edit",exec(){return ve.call(t,n("href"),n("data-name"),n("data-path"),n("data-source"))}},!!t.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec(){t.e.fire("fileRename.filebrowser",n("data-name"),n("data-path"),n("data-source"))}},!!t.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",async exec(){try{await be(t,n("data-name"),n("data-source"))}catch(e){return t.status(e)}return t.state.activeElements=[],ie(t).catch(t.status)}},!!o.preview&&{icon:"eye",title:"Preview",exec(){const e=t.dlg({buttons:["fullsize","dialog.close"]}),s=t.c.div(ye,'<div class="jodit-icon_loader"></div>'),i=t.c.div(ye+"__box"),a=t.c.fromHTML(we()),l=t.c.fromHTML(we("prev","left")),c=n=>{const c=t.c.element("img");c.setAttribute("src",n);const h=()=>{t.isInDestruct||(t.e.off(c,"load"),X.i.detach(s),o.showPreviewNavigation&&(X.i.prevWithClass(r,t.files.getFullElName("item"))&&s.appendChild(l),X.i.nextWithClass(r,t.files.getFullElName("item"))&&s.appendChild(a)),s.appendChild(i),i.appendChild(c),e.setPosition(),t?.events?.fire("previewOpenedAndLoaded"))};t.e.on(c,"load",h),c.complete&&h()};t.e.on([a,l],"click",(function(){if(r=this===a?X.i.nextWithClass(r,t.files.getFullElName("item")):X.i.prevWithClass(r,t.files.getFullElName("item")),!r)throw(0,k.error)("Need element");X.i.detach(s),X.i.detach(i),s.innerHTML='<div class="jodit-icon_loader"></div>',c(n("href"))})),t.e.on("beforeDestruct",(()=>{e.destruct()})),e.container.classList.add(ye+"__dialog"),e.setContent(s),e.setPosition(),e.open(),c(n("href")),t.events.on("beforeDestruct",(()=>{e.destruct()})).fire("previewOpened")}},{icon:"upload",title:"Download",exec(){const e=n("href");e&&t.ow.open(e)}}]))}),t.defaultTimeout),t.e.on("beforeClose",(()=>e.close())).on("beforeDestruct",(()=>e.destruct())),s.stopPropagation(),s.preventDefault(),!1}};const Ce=(t,e,s="a")=>X.i.closest(t,(t=>X.i.isTag(t,s)),e),Se=(t,e)=>{const{key:s}=t.dataset,{item:i}=e[s||""];return i};function Ee(){let t=!1;const e=ee(this),s=this;s.e.on(s.tree.container,"dragstart",(e=>{const i=Ce(e.target,s.container);i&&s.o.moveFolder&&(t=i)})).on(s.tree.container,"drop",(e=>{if((s.o.moveFile||s.o.moveFolder)&&t){let i=(0,v.attr)(t,"-path")||"";if(!s.o.moveFolder&&t.classList.contains(this.tree.getFullElName("item")))return!1;if(t.classList.contains(this.files.getFullElName("item"))&&(i+=(0,v.attr)(t,"-name"),!s.o.moveFile))return!1;const r=Ce(e.target,s.container);if(!r)return;s.dataProvider.move(i,(0,v.attr)(r,"-path")||"",(0,v.attr)(r,"-source")||"",t.classList.contains(this.files.getFullElName("item"))).then((()=>ie(this))).catch(s.status),t=!1}})).on(s.files.container,"contextmenu",_e(s)).on(s.files.container,"click",(t=>{(0,v.ctrlKey)(t)||(this.state.activeElements=[])})).on(s.files.container,"click",(t=>{const i=Ce(t.target,s.container);if(!i)return;const r=Se(i,e);return r?(s.state.activeElements=(0,v.ctrlKey)(t)?[...s.state.activeElements,r]:[r],t.stopPropagation(),!1):void 0})).on(s.files.container,"dragstart",(e=>{if(s.o.moveFile){const i=Ce(e.target,s.container);if(!i)return;t=i}})).on(s.container,"drop",(t=>t.preventDefault()))}function xe(){const t=this.state,e=this.dataProvider,s=this;s.e.on("view.filebrowser",(e=>{e!==t.view&&(t.view=e)})).on("sort.filebrowser",(e=>{e!==t.sortBy&&(t.sortBy=e,se(s))})).on("filter.filebrowser",(e=>{e!==t.filterWord&&(t.filterWord=e,se(s))})).on("openFolder.filebrowser",(t=>{let e;e=".."===t.name?t.path.split("/").filter((t=>t.length)).slice(0,-1).join("/"):(0,v.normalizePath)(t.path,t.name),s.state.currentPath=e,s.state.currentSource="."===t.name?Xt:t.source})).on("removeFolder.filebrowser",(t=>{s.confirm("Are you sure?","Delete",(i=>{i&&e.folderRemove(t.path,t.name,t.source).then((t=>(s.status(t,!0),ie(s)))).catch(s.status)}))})).on("renameFolder.filebrowser",(t=>{s.prompt("Enter new name","Rename",(i=>{if(!(0,Z.r1)(i))return s.status(s.i18n("Enter new name")),!1;e.folderRename(t.path,t.name,i,t.source).then((t=>(s.state.activeElements=[],s.status(t,!0),ie(s)))).catch(s.status)}),"type name",t.name)})).on("addFolder.filebrowser",(t=>{s.prompt("Enter Directory name","Create directory",(i=>{e.createFolder(i,t.path,t.source).then((()=>ie(s))).catch(s.status)}),"type name")})).on("fileRemove.filebrowser",(()=>{s.state.activeElements.length&&s.confirm("Are you sure?","",(t=>{if(t){const t=[];s.state.activeElements.forEach((e=>{t.push(be(s,e.file||e.name||"",e.sourceName))})),s.state.activeElements=[],Promise.all(t).then((()=>ie(s).catch(s.status)),s.status)}}))})).on("edit.filebrowser",(()=>{if(1===s.state.activeElements.length){const[t]=this.state.activeElements;ve.call(s,t.fileURL,t.file||"",t.path,t.sourceName)}})).on("fileRename.filebrowser",((t,i,r)=>{1===s.state.activeElements.length&&s.prompt("Enter new name","Rename",(o=>{if(!(0,Z.r1)(o))return s.status(s.i18n("Enter new name")),!1;e.fileRename(i,t,o,r).then((t=>{s.state.activeElements=[],s.status(t,!0),se(s)})).catch(s.status)}),"type name",t)})).on("update.filebrowser",(()=>{ie(this).then(this.status,this.status)}))}class je extends R{className(){return"FilebrowserFiles"}}class Ie extends R{className(){return"FilebrowserTree"}}var ke=r(67309);class Te{dlg(t){const e=new Ht({language:this.o.language,shadowRoot:this.o.shadowRoot,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...t});return(0,ke.MN)(this,e.container),e.parent=this,e.bindDestruct(this)}confirm(t,e,s){return t=Le(t,this),e=Le(e,this),Vt.call(this.dlg(),t,e,s)}prompt(t,e,s,i,r){return t=Le(t,this),e=Le(e,this),i=Le(i,this),Wt.call(this.dlg(),t,e,s,i,r)}alert(t,e,s,i){return t=Le(t,this),e=Le(e,this),$t.call(this.dlg(),t,e,s,i)}}function Le(t,e){return(0,Z.HD)(t)&&!(0,Z.FP)(t)&&(t=e.i18n(t)),t}var Me=r(6102);f.D.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter:(t,e)=>(e=e.toLowerCase(),(0,Z.HD)(t)?-1!==t.toLowerCase().indexOf(e):(0,Z.HD)(t.name)?-1!==t.name.toLowerCase().indexOf(e):!(0,Z.HD)(t.file)||-1!==t.file.toLowerCase().indexOf(e)),sortBy:"changed-desc",sort(t,e,s){const[i,r]=s.toLowerCase().split("-"),o="asc"===r,n=(t,e)=>e>t?o?-1:1:t>e?o?1:-1:0;if((0,Z.HD)(t))return n(t.toLowerCase(),e.toLowerCase());if(void 0===t[i]||"name"===i)return(0,Z.HD)(t.name)?n(t.name.toLowerCase(),e.name.toLowerCase()):(0,Z.HD)(t.file)?n(t.file.toLowerCase(),e.file.toLowerCase()):0;switch(i){case"changed":{const s=new Date(t.changed).getTime(),i=new Date(e.changed).getTime();return o?s-i:i-s}case"size":{const s=(0,Me.w)(t.size),i=(0,Me.w)(e.size);return o?s-i:i-s}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:t=>t.success,getMessage:t=>void 0!==t.data.messages&&(0,Z.kJ)(t.data.messages)?t.data.messages.join(" "):"",showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(t,e,s){const i=this.options,r=this.files.getFullElName("item"),o=i.showFileName,n=i.showFileSize&&t.size,a=i.showFileChangeTime&&t.time;let l="";return void 0!==t.file&&(l=t.file),`<a\n\t\t\tdata-jodit-filebrowser-item="true"\n\t\t\tdata-is-file="${t.isImage?0:1}"\n\t\t\tdraggable="true"\n\t\t\tclass="${r}"\n\t\t\thref="${t.fileURL}"\n\t\t\tdata-source="${s}"\n\t\t\tdata-path="${t.path}"\n\t\t\tdata-name="${l}"\n\t\t\ttitle="${l}"\n\t\t\tdata-url="${t.fileURL}">\n\t\t\t\t<img\n\t\t\t\t\tdata-is-file="${t.isImage?0:1}"\n\t\t\t\t\tdata-src="${t.fileURL}"\n\t\t\t\t\tsrc="${t.imageURL}"\n\t\t\t\t\talt="${l}"\n\t\t\t\t\tloading="lazy"\n\t\t\t\t/>\n\t\t\t\t${o||n||a?`<div class="${r}-info">${o?`<span class="${r}-info-filename">${l}</span>`:""}${n?`<span class="${r}-info-filesize">${t.size}</span>`:""}${a?`<span class="${r}-info-filechanged">${a}</span>`:""}</div>`:""}\n\t\t\t</a>`},ajax:{...f.D.prototype.defaultAjaxOptions,url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,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"}}},f.D.prototype.controls.filebrowser={upload:{icon:"plus",isInput:!0,isDisabled(t){return!t.dataProvider.canI("FileUpload")},getContent(t){const e=new jt(t,{onlyImages:t.state.onlyImages});return t.e.fire("bindUploader.filebrowser",e.container),e.container}},remove:{icon:"bin",isDisabled(t){return!t.state.activeElements.length||!t.dataProvider.canI("FileRemove")},exec(t){t.e.fire("fileRemove.filebrowser")}},update:{exec(t){t.e.fire("update.filebrowser")}},select:{icon:"check",isDisabled(t){return!t.state.activeElements.length},exec(t){t.e.fire("select.filebrowser")}},edit:{icon:"pencil",isDisabled(t){const e=t.state.activeElements;return 1!==e.length||!e[0].isImage||!(t.dataProvider.canI("ImageCrop")||t.dataProvider.canI("ImageResize"))},exec(t){t.e.fire("edit.filebrowser")}},tiles:{icon:"th",isActive(t){return"tiles"===t.state.view},exec(t){t.e.fire("view.filebrowser","tiles")}},list:{icon:"th-list",isActive(t){return"list"===t.state.view},exec(t){t.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent(t,e,s){const i=s.container.querySelector(".jodit-input");if(i)return i;const r=t.c.element("input",{class:"jodit-input",placeholder:t.i18n("Filter")});return r.value=t.state.filterWord,t.e.on(r,"keydown mousedown",t.async.debounce((()=>{t.e.fire("filter.filebrowser",r.value)}),t.defaultTimeout)),r}},sort:{isInput:!0,getContent(t){const e=t.c.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 e.value=t.state.sortBy,t.e.on("sort.filebrowser",(t=>{e.value!==t&&(e.value=t)})).on(e,"change",(()=>{t.e.fire("sort.filebrowser",e.value)})),e}}};let Pe=class t extends Bt{className(){return"Filebrowser"}get dataProvider(){return new Zt(this,this.options)}onSelect(t){return()=>{if(this.state.activeElements.length){const e=[],s=[];this.state.activeElements.forEach((t=>{const i=t.fileURL;i&&(e.push(i),s.push(t.isImage||!1))})),this.close();const i={baseurl:"",files:e,isImages:s};(0,v.isFunction)(t)&&t(i),this.close()}return!1}}get _dialog(){const t=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:this.o.headerButtons??["fullsize","dialog.close"]});return["afterClose","beforeOpen"].forEach((e=>{t.events.on(t,e,(()=>{this.e.fire(e)}))})),t.setSize(this.o.width,this.o.height),t}get storage(){return nt.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(t,e){t&&!(0,v.isAbort)(t)&&((0,v.isString)(t)||(t=t.message),(0,v.isString)(t)&&(0,v.trim)(t).length&&this.message.message(t,e?"success":"error",this.o.howLongShowMsg))}open(t=this.o.defaultCallback,e=!1){return this.state.onlyImages=e,this.async.promise(((e,s)=>{if(!this.o.items||!this.o.items.url)throw(0,v.error)("Need set options.filebrowser.ajax.url");let i=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(t)).on(this.files.container,"touchstart",(()=>{const e=(new Date).getTime();u.EMULATE_DBLCLICK_TIMEOUT>e-i&&this.onSelect(t)(),i=e})).off("select.filebrowser").on("select.filebrowser",this.onSelect(t));const r=this.c.div();this.toolbar?.build(this.__getButtons()).appendTo(r),this._dialog.open(this.browser,r),this.e.fire("sort.filebrowser",this.state.sortBy),ie(this).then(e,s)})).catch((t=>{if(!u.IS_PROD)throw t}))}__getButtons(){return(this.o.buttons??[]).filter((t=>{if(!(0,v.isString)(t))return!0;switch(t){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0}))}initUploader(t){const e=this,s=t?.options?.uploader,i=(0,v.ConfigProto)(s||{},f.D.defaultOptions.uploader),r=()=>se(this);e.uploader=e.getInstance("Uploader",i),e.uploader.setPath(e.state.currentPath).setSource(e.state.currentSource).bind(e.browser,r,e.errorHandler),this.state.on(["change.currentPath","change.currentSource"],(()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)})),e.e.on("bindUploader.filebrowser",(t=>{e.uploader.bind(t,r,e.errorHandler)}))}constructor(t){super(t),this.browser=this.c.div(this.componentName),this.status_line=this.c.div(this.getFullElName("status")),this.tree=new Ie(this),this.files=new je(this),this.state=(0,m.LO)({currentPath:"",currentSource:Xt,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=t=>{(0,v.isAbort)(t)||this.status(t instanceof Error?this.i18n(t.message):this.dataProvider.getMessage(t))},this.close=()=>{this._dialog.close()},this.attachEvents(t);const e=this;e.options=(0,v.ConfigProto)(t||{},f.D.defaultOptions.filebrowser),e.browser.component=this,e.container=e.browser,e.o.showFoldersPanel&&e.browser.appendChild(e.tree.container),e.browser.appendChild(e.files.container),e.browser.appendChild(e.status_line),xe.call(e),Ee.call(e),re.call(e),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach((t=>{null!=this.options[t]&&(this.options[t]=(0,v.ConfigProto)(this.options[t],this.o.ajax))}));const{storeView:s,storeSortBy:i,storeLastOpenedFolder:r}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},o=s&&this.storage.get("view");e.state.view=o&&null==this.o.view?"list"===o?"list":"tiles":"list"===e.o.view?"list":"tiles",e.files.setMod("view",e.state.view);const n=i&&e.storage.get("sortBy");if(n){const t=n.split("-");e.state.sortBy=["changed","name","size"].includes(t[0])?n:"changed-desc"}else e.state.sortBy=e.o.sortBy||"changed-desc";if(r){const t=e.storage.get("currentPath"),s=e.storage.get("currentSource");e.state.currentPath=t??"",e.state.currentSource=s??""}e.initUploader(e),e.setStatus(C.n$.ready)}destruct(){this.isInDestruct||(super.destruct(),this._dialog.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}};function Ne(t){return X.i.isElement(t)&&t.classList.contains(je.prototype.getFullElName("item"))}(0,p.gn)([y.cache],Pe.prototype,"dataProvider",null),(0,p.gn)([y.cache],Pe.prototype,"_dialog",null),(0,p.gn)([y.cache],Pe.prototype,"storage",null),(0,p.gn)([y.autobind],Pe.prototype,"status",null),(0,p.gn)([y.autobind],Pe.prototype,"open",null),Pe=(0,p.gn)([(0,y.derive)(Te)],Pe);class ze extends C.Hr{constructor(){super(...arguments),this.__isBlocked=!1}className(){return"Snapshot"}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 s=0,i=null;for(let r=0;e.length>r;r+=1){if(!i||this.isIgnoredNode(e[r])||X.i.isText(i)&&X.i.isText(e[r])||(s+=1),e[r]===t)return s;i=e[r]}return 0}static strokeOffset(t,e){for(;X.i.isText(t);)X.i.isText(t=t.previousSibling)&&t.nodeValue&&(e+=t.nodeValue.length);return e}calcHierarchyLadder(t){const e=[];if(!t||!t.parentNode||!X.i.isOrContains(this.j.editor,t))return[];for(;t&&t!==this.j.editor;)t&&!ze.isIgnoredNode(t)&&e.push(ze.countNodesBeforeInParent(t)),t=t.parentNode;return e.reverse()}getElementByLadder(t){let e,s=this.j.editor;for(e=0;s&&t.length>e;e+=1)s=s.childNodes[t[e]];return s}get isBlocked(){return this.__isBlocked}__block(t){this.__isBlocked=t}transaction(t){this.__block(!0);try{t()}catch(t){if(!u.IS_PROD)throw t}this.__block(!1)}make(){const t={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};t.html=this.removeJoditSelection(this.j.editor);const e=this.j.s.sel;if(e&&e.rangeCount){const s=e.getRangeAt(0),i=this.calcHierarchyLadder(s.startContainer),r=this.calcHierarchyLadder(s.endContainer);let o=ze.strokeOffset(s.startContainer,s.startOffset),n=ze.strokeOffset(s.endContainer,s.endOffset);i.length||s.startContainer===this.j.editor||(o=0),r.length||s.endContainer===this.j.editor||(n=0),t.range={startContainer:i,startOffset:o,endContainer:r,endOffset:n}}return t}restore(t){this.transaction((()=>{const e=this.storeScrollState();this.j.getNativeEditorValue()!==t.html&&(this.j.value=t.html),this.restoreOnlySelection(t),this.restoreScrollState(e)}))}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(t){const{j:e}=this,{ow:s}=e;s.scrollTo(s.scrollX,t[0]),e.editor.scrollTop=t[1]}restoreOnlySelection(t){try{if(t.range){const e=this.j.ed.createRange();e.setStart(this.getElementByLadder(t.range.startContainer),t.range.startOffset),e.setEnd(this.getElementByLadder(t.range.endContainer),t.range.endOffset),this.j.s.selectRange(e)}}catch(t){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild)}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(t){return X.i.isText(t)&&!t.nodeValue||X.i.isTemporary(t)}removeJoditSelection(t){const e=t.cloneNode(!0);return e.querySelectorAll(`[${u.TEMP_ATTR}]`).forEach(X.i.unwrap),e.innerHTML}}class De{constructor(t){this.size=t,this.commands=[],this.stackPosition=-1}get length(){return this.commands.length}clearRedo(){this.commands.length=this.stackPosition+1}clear(){this.commands.length=0,this.stackPosition=-1}push(t){this.clearRedo(),this.commands.push(t),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}replace(t){this.commands[this.stackPosition]=t}current(){return this.commands[this.stackPosition]}undo(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}redo(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}canUndo(){return this.stackPosition>=0}canRedo(){return this.commands.length-1>this.stackPosition}}class Re{undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}constructor(t,e,s,i){this.oldValue=t,this.newValue=e,this.history=s,this.tick=i}}f.D.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3},f.D.prototype.observer=f.D.prototype.history;class Ae extends C.Hr{className(){return"History"}get startValue(){return this.__startValue}set startValue(t){this.__startValue=t}constructor(t,e=new De(t.o.history.maxHistoryLength),s=new ze(t)){super(t),this.updateTick=0,this.__stack=e,this.snapshot=s,t.o.history.enable&&t.e.on("afterAddPlace.history",(()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),t.events.on("internalChange internalUpdate",(()=>{this.startValue=this.snapshot.make()})).on(t.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map((t=>t+".history")).join(" "),(()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())})).on(this,"change.history",this.onChange))}))}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(t=!1){const e=this.snapshot.make();if(!ze.equal(e,this.startValue)){const s=new Re(this.startValue,e,this,this.updateTick);if(t){const t=this.__stack.current();t&&this.updateTick===t.tick&&this.__stack.replace(s)}else this.__stack.push(s);this.startValue=e,this.fireChangeStack()}}redo(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.__stack.canRedo()}undo(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.__stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}get length(){return this.__stack.length}fireChangeStack(){this.j&&!this.j.isInDestruct&&this.j.events?.fire("changeStack")}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}}(0,p.gn)([(0,y.debounce)()],Ae.prototype,"onChange",null);var qe=r(63122),Oe=r(11278),Be=r(49353),He=r(16492);const Fe="toggleAttributes";function $e(t,e,s,i,r=!1){if(!r&&t.isApplied(e,Fe))return i;!r&&t.setApplied(e,Fe);const{attributes:o}=t.options;return o&&(0,He.d)(o)>0&&Object.keys(o).forEach((n=>{const a=o[n];switch(n){case"style":i=((t,e,s,i,r,o)=>(Object.keys(s).forEach((n=>{const a=i.style.getPropertyValue((0,Oe.G)(n)),l=s[n];if(""!==a||null!=l){if(((t,e,s)=>{const i=t.create.element(e.tagName.toLowerCase());i.style.cssText=e.style.cssText;const r=(t=>{if(void 0!==(0,qe.q)(t,"shadowRoot"))return(0,qe.q)(t,"shadowRoot");const e=(0,j.ZO)(t),s=document.createElement("iframe");(0,ct.i)(s,{width:0,height:0,position:"absolute",border:0}),s.src="about:blank",e.appendChild(s);const i=s.contentWindow?.document,r=i?i.body:t.od.body;return(0,qe.q)(t,"shadowRoot",r),r})(t);r.appendChild(i);const o=(0,ct.i)(i,s);return S.i.safeRemove(i),o})(e,i,n)===(0,Be.Zh)(n,l)){if(!a)return;return!r&&(0,ct.i)(i,n,null),void(o=We(t,i,o=_s))}o=ws,r||((0,ct.i)(i,n,l),o=We(t,i,o))}})),o))(t,s,a,e,r,i);break;case"class":i=((t,e,s,i,r)=>{const o=t.e.fire.bind(t.e,Es+"AfterToggleAttribute");return s.classList.contains(""+e)?(i=_s,r||(s.classList.remove(e),0===s.classList.length&&((0,k.attr)(s,"class",null),o(i,s,"class",null)))):(i=ws,r||(s.classList.add(e),o(i,s,"class",e))),i})(s,a,e,i,r);break;default:i=((t,e,s,i,r,o)=>{const n=t.e.fire.bind(t.e,Es+"AfterToggleAttribute");return(0,k.attr)(s,i)===e?(!r&&(0,k.attr)(s,i,null),o=_s,!r&&n(o,s,i,e),o):(o=ws,r||((0,k.attr)(s,i,e),n(o,s,i,e)),o)})(s,a,e,n,r,i)}})),i}function We(t,e,s){return(0,k.attr)(e,"style")||((0,k.attr)(e,"style",null),e.tagName.toLowerCase()===t.defaultTag&&(S.i.unwrap(e),s=ys)),s}var Ve=r(37204);function Ue(t,e,s){const i=s.s.createRange(),r=(0,Ve._)(e.previousSibling)?e.previousSibling:e;i.setStartBefore(t),i.setEndBefore(r),Ye(t,i,!0);const o=(0,Ve._)(e.nextSibling)?e.nextSibling:e;i.setStartAfter(o),i.setEndAfter(t),Ye(t,i,!1)}function Ye(t,e,s){const i=e.extractContents();i.textContent&&(0,ut.f)(i.textContent).length||!i.firstChild||S.i.unwrap(i.firstChild),t.parentNode&&(0,ke.RE)(s?S.i.before:S.i.after,t,i)}function Ge(t,e,s){const i=s.e.fire(Es+"BeforeWrapList",Ss,e,t)??X.i.replace(e,"li",s.createInside),r=i.previousElementSibling,o=i.nextElementSibling;let n=X.i.isTag(r,t.element)?r:null;var a,l,c,h;return n??=X.i.isTag(o,t.element)?o:null,X.i.isList(n)&&(h=t.options.attributes,!(c=n).attributes.length&&!(0,He.d)(h)||!(0,He.d)(h)||Object.keys(h).every((t=>"class"===t?c.classList.contains(h[t]):"style"===t?Ze(c,h[t]):(0,k.attr)(c,t)===h[t])))||(n=s.createInside.element(t.element),$e(t,n,s,Cs),X.i.before(i,n)),r===n?X.i.append(n,i):X.i.prepend(n,i),X.i.isTag(n.nextElementSibling,t.element)&&(a=n).attributes.length===(l=n.nextElementSibling).attributes.length&&Array.from(a.attributes).every((t=>l.hasAttribute(t.name)&&l.getAttribute(t.name)===t.value))&&(X.i.append(n,Array.from(n.nextElementSibling.childNodes)),X.i.safeRemove(n.nextElementSibling)),s.e.fire(Es+"AfterWrapList",bs,n,t),n}function Xe(t,e,s,i){if(!e)return i;const r=e.parentElement;if(!r)return i;const o=s.e.fire(Es+"BeforeToggleList",i,t,r);if(void 0!==o)return o;const n=s.e.fire.bind(s.e,Es+"AfterToggleList");if(i!==ys){const o=$e(t,e.parentElement,s,Cs,!0)===ws;if(i===Ss||o||r.tagName.toLowerCase()!==t.element){const i=Ge(t,Ke(Ss,r,e,s,t),s);return n(Ss,i,t),Ss}}const a=Ke(ys,r,e,s,t);return n(ys,a,t),ys}function Ke(t,e,s,i,r){return i.e.fire(Es+"BeforeUnwrapList",t,e,r)||(Ue(e,s,i),S.i.unwrap(s.parentElement),S.i.replace(s,i.o.enter,i.createInside))}var Je=r(24021);function Ze(t,e){return!(S.i.isTag(t,"font")||!S.i.isHTMLElement(t)||!Object.keys(e).every((s=>{const i=(0,ct.i)(t,s,!0);return""===i&&(""===e[s]||null==e[s])||!(0,Je.n)(i)&&""!==i&&!(0,Je.n)(e[s])&&(""+(0,Be.Zh)(s,e[s])).toLowerCase()===(""+i).toLowerCase()})))}function Qe(t,e){return!(S.i.isTag(t,"font")||!S.i.isHTMLElement(t)||!Object.keys(e).every((e=>{const s=(0,ct.i)(t,e,!0);return!(0,Je.n)(s)})))}document.createElement("div").style.color="red";class ts{setState(t){this.__previewsStates.add(t),this.__state=t}getState(){return this.__state}disableSilent(){this.silent=!1}constructor(t,e){this.transitions=e,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}dispatch(t,e){const s=this.transitions[this.getState()][t];if(s){const t=s.call(this,e);return this.setState(t.next),t}throw Error(`invalid action: ${this.getState()}.${""+t}`)}}function es(t){return!(!t||S.i.isEmptyTextNode(t)||S.i.isTemporary(t)||(0,Ve._)(t))}function ss(t,e,s){if(!e)return!1;const{element:i,elementIsDefault:r,options:o}=t,n=!(!o.attributes?.style||!Ze(e,o.attributes.style)),a=e.nodeName.toLowerCase()===i||S.i.isList(e)&&t.elementIsList;return!((r&&s||!a)&&(!n||!es(e)||t.elementIsList)&&(a||s||!r||!S.i.isInlineBlock(e)))}function is(t,e,s){return S.i.closest(e,(e=>ss(t,e,!0)),s)}function rs(t,e){const{element:s,options:i}=t;if(!e||!es(e))return!1;const r=e.nodeName.toLowerCase()===s,o=!(!i.attributes?.style||!Qe(e,i.attributes?.style));return r&&o}function os(t,e,s){const{parentNode:i}=e;return i===s||!S.i.isHTMLElement(i)||S.i.next(e,es,i)||S.i.prev(e,es,i)?null:t.isElementCommit&&t.elementIsBlock&&!S.i.isBlock(i)?os(t,i,s):!ss(t,i,!1)||S.i.isBlock(i)&&!t.elementIsBlock?t.isElementCommit&&!S.i.isBlock(i)?os(t,i,s):null:i}const ns="START",as="ELEMENT",ls="UNWRAP",cs="UNWRAP_CHILDREN",hs="CHANGE",ds="REPLACE_DEFAULT",us="LIST",ps="TOGGLE_LIST",fs="WRAP",ms="EXTRACT",gs="END",vs={[ns]:{exec(t){const{element:e,jodit:s,style:i,mode:r,collapsed:o}=t;if(((t,e)=>!!S.i.closest(t,["style","script"],e))(e,s.editor)||!o&&S.i.isEmptyContent(e))return{...t,next:gs};const n=os(i,e,s.editor)||((t,e)=>{let{firstChild:s}=e;for(;s&&!es(s);)if(s=s.nextSibling,!s)return null;return s&&!S.i.next(s,es,e)&&ss(t,s,!1)?s:null})(i,e);if(n)return{...t,next:as,element:n};const a=is(i,e,s.editor);return i.elementIsList&&S.i.isList(a)?{...t,next:us}:a?{...t,next:ms}:{...t,next:r!==ys?cs:gs}}},[us]:{exec(t){const{element:e,jodit:s,mode:i}=t;if(i!==Cs&&i!==ys&&i!==Ss)return{...t,next:gs};const r=S.i.closest(e,"li",s.editor);return r&&S.i.closest(e,u.LIST_TAGS,s.editor)?{...t,element:r,next:ps}:{...t,next:gs}}},[ps]:{exec:t=>({...t,mode:Xe(t.style,t.element,t.jodit,t.mode),next:gs})},[ms]:{exec(t){const{element:e,jodit:s,style:i}=t,r=is(i,e,s.editor);return i.elementIsBlock||Ue(r,e,s),{...t,element:r,next:as}}},[cs]:{exec(t){const{element:e,style:s}=t;return((t,e)=>{const s=[],i=[];let r;const o=t.options.attributes?.style;if(e.firstChild){const n=S.i.eachGen(e);let a=n.next();for(;!a.done;){const e=a.value;!ss(t,e,!0)||o&&!Qe(e,o)?o&&rs(t,e)?(void 0===r&&(r=!1),i.push((()=>{(0,k.css)(e,Object.keys(o).reduce(((t,e)=>(t[e]=null,t)),{})),(0,k.attr)(e,"style")||(0,k.attr)(e,"style",null),(0,k.attr)(e,"style")||e.nodeName.toLowerCase()!==t.element||s.push(e)}))):S.i.isEmptyTextNode(e)||void 0===r&&(r=!1):(void 0===r&&(r=!0),s.push(e)),a=n.next()}}return i.forEach((t=>t())),s.forEach(S.i.unwrap),!!r})(s,e)?{...t,mode:ys,next:gs}:{...t,next:fs}}},[fs]:{exec(t){const{element:e,jodit:s,style:i}=t,r=((t,e,s)=>{const i=((t,e,s)=>t.elementIsBlock?X.i.up(e,(t=>X.i.isBlock(t)&&!X.i.isTag(t,["td","th","tr","tbody","table","li","ul","ol"])),s.editor)||((t,e,s)=>{const i=s.editor,r=s.createInside,o=(t,e="previousSibling")=>{let r=t,o=t;for(;o&&!(0,Ve._)(o)&&!S.i.isTag(o,s.o.enter)&&(r=o,o=o[e]?o[e]:o.parentNode&&!S.i.isBlock(o.parentNode)&&o.parentNode!==i?o.parentNode:null,!S.i.isBlock(o)););return r},n=o(e),a=o(e,"nextSibling"),l=s.s.createRange();l.setStartBefore(n),l.setEndAfter(a);const c=l.extractContents(),h=r.element(t.element);return h.appendChild(c),S.i.safeInsertNode(l,h),t.elementIsBlock&&S.i.isEmpty(h)&&!S.i.isTag(h.firstElementChild,"br")&&h.appendChild(r.element("br")),h})(t,e,s):((0,yt.L)(e,"size",null),e))(t,e,s);return t.elementIsList?Ge(t,i,s):X.i.replace(i,t.element,s.createInside,!0)})(i,e,s);return{...t,next:i.elementIsList?gs:hs,mode:bs,element:r}}},[as]:{exec(t){const{style:e,element:s,jodit:i}=t;return $e(e,s,i,Cs,!0)!==Cs?{...t,next:hs}:S.i.isTag(s,e.element)?{...t,next:ls}:{...t,next:gs}}},[hs]:{exec(t){const{style:e,element:s,jodit:i,mode:r}=t,o=$e(e,s,i,t.mode);return r!==bs&&o===_s&&!s.attributes.length&&S.i.isTag(s,e.element)?{...t,next:ls}:{...t,mode:o,next:gs}}},[ls]:{exec:t=>t.element.attributes.length&&S.i.isTag(t.element,t.style.element)?{...t,next:ds}:(S.i.unwrap(t.element),{...t,mode:ys,next:gs})},[ds]:{exec:t=>(S.i.replace(t.element,t.style.defaultTag,t.jodit.createInside,!0),{...t,mode:Ss,next:gs})},[gs]:{exec:t=>t}},bs="wrap",ys="unwrap",ws="change",_s="unset",Cs="initial",Ss="replace",Es="commitStyle";class xs{isApplied(t,e){const s=this.__applyMap.get(t);return!!s&&s[e]}setApplied(t,e){const s=this.__applyMap.get(t)??{};s[e]=!0,this.__applyMap.set(t,s)}get elementIsList(){return!(!this.options.element||!u.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!(!this.options.element||!u.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!(!this.options.element||this.options.element===this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}constructor(t){this.options=t,this.__applyMap=new WeakMap,t.attributes=((t,e)=>{const{style:s,className:i}=t.options;return s&&(e?e.style=s:e={style:s},delete t.options.style),i&&(e?e.class=i:e={class:i},delete t.options.className),e})(this,t.attributes)}apply(t){const{hooks:e}=this.options;try{e&&Object.keys(e).forEach((s=>{t.e.on((0,it.e)(Es+"_"+s),e[s])})),((t,e)=>{const{s,editor:i}=t;i.firstChild?.normalize();const r=s.fakes(),o=t.s.wrapInTagGen(r);let n=o.next();if(n.done)return;let a={collapsed:s.isCollapsed(),mode:Cs,element:n.value,next:ns,jodit:t,style:e};for(;n&&!n.done;){const t=new ts(ns,vs);for(a.element=n.value;t.getState()!==gs;)a=t.dispatch("exec",a);n=o.next()}s.restoreFakes(r)})(t,this)}finally{e&&Object.keys(e).forEach((s=>{t.e.off((0,it.e)(Es+"_"+s),e[s])})),this.__applyMap=new WeakMap}}}class js{constructor(t){this.jodit=t,t.e.on("removeMarkers",(()=>{this.removeMarkers()}))}get j(){return this.jodit}errorNode(t){if(!X.i.isNode(t))throw(0,v.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,Z.mf)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){const t=this.sel;return t&&t.rangeCount?t.getRangeAt(0):this.createRange()}get isInsideArea(){const{sel:t}=this,e=t?.rangeCount?t.getRangeAt(0):null;return!(!e||!X.i.isOrContains(this.area,e.startContainer))}createRange(t=!1){const e=this.doc.createRange();return t&&this.selectRange(e),e}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)}clear(){this.sel?.rangeCount&&this.sel?.removeAllRanges()}removeNode(t){if(!X.i.isOrContains(this.j.editor,t,!0))throw(0,v.error)("Selection.removeNode can remove only editor's children");X.i.safeRemove(t),this.j.e.fire("afterRemoveNode",t)}insertCursorAtPoint(t,e){this.removeMarkers();try{const s=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){const i=this.doc.caretPositionFromPoint(t,e);if(i)return void s.setStart(i.offsetNode,i.offset)}if(this.doc.caretRangeFromPoint){const i=this.doc.caretRangeFromPoint(t,e);s.setStart(i.startContainer,i.startOffset)}})(),s.collapse(!0),this.selectRange(s),!0}catch{}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,v.$$)("span[data-"+u.MARKER_CLASS+"]",this.area)}removeMarkers(){X.i.safeRemove.apply(null,this.markers)}marker(t=!1,e){let s=null;e&&(s=e.cloneRange(),s.collapse(t));const i=this.j.createInside.span();return i.id=u.MARKER_CLASS+"_"+Number(new Date)+"_"+(Math.random()+"").slice(2),i.style.lineHeight="0",i.style.display="none",X.i.markTemporary(i),(0,v.attr)(i,"data-"+u.MARKER_CLASS,t?"start":"end"),i.appendChild(this.j.createInside.text(u.INVISIBLE_SPACE)),s&&X.i.isOrContains(this.area,t?s.startContainer:s.endContainer)&&s.insertNode(i),i}restore(){let t=!1;const e=t=>`span[data-${u.MARKER_CLASS}=${t?"start":"end"}]`,s=this.area.querySelector(e(!0)),i=this.area.querySelector(e(!1));if(s){if(t=this.createRange(),i)t.setStartAfter(s),X.i.safeRemove(s),t.setEndBefore(i),X.i.safeRemove(i);else{const e=s.previousSibling;X.i.isText(e)?t.setStart(e,e.nodeValue?e.nodeValue.length:0):t.setStartBefore(s),X.i.safeRemove(s),t.collapse(!0)}t&&this.selectRange(t)}}fakes(){const t=this.sel;if(!t||!t.rangeCount)return[];const e=t.getRangeAt(0),s=e.cloneRange();s.collapse(!0);const i=this.j.createInside.fake();s.insertNode(i),e.setStartBefore(i);const r=[i];if(!e.collapsed){const t=e.cloneRange();t.collapse(!1);const s=this.j.createInside.fake();t.insertNode(s),e.setEndAfter(s),r.push(s)}return this.selectRange(e),r}restoreFakes(t){const e=t.filter((t=>t.isConnected));if(!e.length)return;const[s,i]=e,r=this.createRange();r.setStartAfter(s),i&&r.setEndBefore(i),this.selectRange(r),s.parentNode?.firstChild!==s.parentNode?.lastChild&&X.i.safeRemove(s),i?.parentNode?.firstChild!==i?.parentNode?.lastChild&&X.i.safeRemove(i)}save(t=!1){if(this.hasMarkers)return[];const e=this.sel;if(!e||!e.rangeCount)return[];const s=[],i=e.rangeCount,r=[];for(let t=0;i>t;t+=1)if(r[t]=e.getRangeAt(t),r[t].collapsed){const e=this.marker(!0,r[t]);s[t]={startId:e.id,collapsed:!0,startMarker:e.outerHTML}}else{const e=this.marker(!0,r[t]),i=this.marker(!1,r[t]);s[t]={startId:e.id,endId:i.id,collapsed:!1,startMarker:e.outerHTML,endMarker:i.outerHTML}}if(!t){e.removeAllRanges();for(let t=i-1;t>=0;--t){const i=this.doc.getElementById(s[t].startId);if(i){if(s[t].collapsed)r[t].setStartAfter(i),r[t].collapse(!0);else if(r[t].setStartBefore(i),s[t].endId){const e=this.doc.getElementById(s[t].endId);e&&r[t].setEndAfter(e)}try{e.addRange(r[t].cloneRange())}catch{}}}}return s}focus(t={preventScroll:!0}){if(!this.isFocused()){const e=(0,v.getScrollParent)(this.j.container),s=e?.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(t),this.win.focus(),this.area.focus(t),s&&e?.scrollTo&&e.scrollTo(0,s);const i=this.sel,r=i?.rangeCount?i?.getRangeAt(0):null;if(!r||!X.i.isOrContains(this.area,r.startContainer)){const t=this.createRange();t.setStart(this.area,0),t.collapse(!0),this.selectRange(t,!1)}return this.j.editorIsActive||this.j?.events?.fire("focus"),!0}return!1}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.j.getRealMode()===u.MODE_WYSIWYG){const e=this.sel;if(!e||0===e.rangeCount)return null;const s=e.getRangeAt(0);let i=s.startContainer,r=!1;const o=t=>r?t.lastChild:t.firstChild;if(X.i.isTag(i,"br")&&e.isCollapsed)return i;if(!X.i.isText(i)){if(i=s.startContainer.childNodes[s.startOffset],i||(i=s.startContainer.childNodes[s.startOffset-1],r=!0),i&&e.isCollapsed&&!X.i.isText(i))if(!r&&X.i.isText(i.previousSibling))i=i.previousSibling;else if(t){let t=o(i);for(;t;){if(t&&X.i.isText(t)){i=t;break}t=o(t)}}if(i&&!e.isCollapsed&&!X.i.isText(i)){let t=i,e=i;do{t=t.firstChild,e=e.lastChild}while(t&&e&&!X.i.isText(t));t===e&&t&&X.i.isText(t)&&(i=t)}}if(i&&X.i.isOrContains(this.area,i))return i}return null}insertNode(t,e=!0,s=!0){this.errorNode(t);const i=X.i.isFragment(t)?t.lastChild:t;this.j.e.fire("safeHTML",t),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());const r=this.sel;this.j.history.snapshot.transaction((()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",t),r&&r.rangeCount){const e=r.getRangeAt(0);X.i.isOrContains(this.area,e.commonAncestorContainer)?X.i.isTag(e.startContainer,u.INSEPARABLE_TAGS)&&e.collapsed?e.startContainer.parentNode?.insertBefore(t,e.startContainer):X.i.safeInsertNode(e,t):this.area.appendChild(t)}else this.area.appendChild(t);e&&(X.i.isFragment(t)?i&&this.setCursorAfter(i):this.setCursorAfter(t))})),s&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",X.i.isFragment(t)?i:t)}insertHTML(t,e=!0){if(""===t)return;const s=this.j.createInside.div(),i=this.j.createInside.fragment();let r;if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),X.i.isNode(t)?s.appendChild(t):s.innerHTML=""+t,(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",s.innerHTML))&&(r=s.lastChild,r)){for(;s.firstChild;)r=s.firstChild,i.appendChild(s.firstChild);this.insertNode(i,e,!1),this.j.__imdSynchronizeValues()}}insertImage(t,e=null,s=null){const i=(0,Z.HD)(t)?this.j.createInside.element("img"):t;if((0,Z.HD)(t)&&i.setAttribute("src",t),null!=s){let t=""+s;t&&"auto"!==t&&0>(t+"").indexOf("px")&&0>(t+"").indexOf("%")&&(t+="px"),(0,v.call)(this.j.o.resizer.forImageChangeAttributes?v.attr:v.css,i,"width",t)}e&&"object"==typeof e&&(0,v.css)(i,e);const r=()=>{(i.offsetHeight>i.naturalHeight||i.offsetWidth>i.naturalWidth)&&(i.style.width="",i.style.height=""),i.removeEventListener("load",r)};this.j.e.on(i,"load",r),i.complete&&r(),this.insertNode(i),this.j.e.fire("afterInsertImage",i)}eachSelection(t){const e=this.sel;if(e&&e.rangeCount){const s=e.getRangeAt(0);let i=s.commonAncestorContainer;X.i.isHTMLElement(i)||(i=i.parentElement);const r=[],o=s.startOffset,n=i.childNodes.length;let a=s.startContainer===this.area?i.childNodes[n>o?o:n-1]:s.startContainer,l=s.endContainer===this.area?i.childNodes[s.endOffset-1]:s.endContainer;X.i.isText(a)&&a===s.startContainer&&s.startOffset===a.nodeValue?.length&&a.nextSibling&&(a=a.nextSibling),X.i.isText(l)&&l===s.endContainer&&0===s.endOffset&&l.previousSibling&&(l=l.previousSibling);const c=t=>{!t||t===i||X.i.isEmptyTextNode(t)||(0,Z._V)(t)||r.push(t)};c(a),a!==l&&X.i.isOrContains(i,a,!0)&&X.i.find(a,(t=>(c(t),t===l||t&&t.contains&&t.contains(l))),i,!0,!1);const h=e=>{if(X.i.isOrContains(this.j.editor,e,!0)){if(e.nodeName.match(/^(UL|OL)$/))return(0,v.toArray)(e.childNodes).forEach(h);if(X.i.isTag(e,"li"))if(e.firstChild)e=e.firstChild;else{const t=this.j.createInside.text(u.INVISIBLE_SPACE);e.appendChild(t),e=t}t(e)}};0===r.length&&X.i.isEmptyTextNode(a)&&r.push(a),0===r.length&&a.firstChild&&r.push(a.firstChild),r.forEach(h)}}cursorInTheEdge(t,e,s=null){const i=!t,r=this.sel?.getRangeAt(0);if(s??=this.current(!1),!r||!s||!X.i.isOrContains(e,s,!0))return null;const o=t?r.startContainer:r.endContainer,n=t?r.startOffset:r.endOffset,a=t=>!(!t||X.i.isTag(t,"br")||X.i.isEmptyTextNode(t)||X.i.isTemporary(t)||X.i.isElement(t)&&!0===this.j.e.fire("isInvisibleForCursor",t));if(X.i.isText(o)){const e=o.nodeValue?.length?o.nodeValue:"";if(i&&e.replace((0,u.INVISIBLE_SPACE_REG_EXP_END)(),"").length>n)return!1;const s=(0,u.INVISIBLE_SPACE_REG_EXP_START)().exec(e);if(t&&(s&&n>s[0].length||!s&&n>0))return!1}else{const t=(0,v.toArray)(o.childNodes);if(i){if(t.slice(n).some(a))return!1}else if(t.slice(0,n).some(a))return!1}let l=s;for(;l&&l!==e;){const e=X.i.sibling(l,t);if(e){if(l=e,l&&a(l))return!1}else l=l.parentNode}return!0}cursorOnTheLeft(t,e){return this.cursorInTheEdge(!0,t,e)}cursorOnTheRight(t,e){return this.cursorInTheEdge(!1,t,e)}setCursorAfter(t){return this.setCursorNearWith(t,!1)}setCursorBefore(t){return this.setCursorNearWith(t,!0)}setCursorNearWith(t,e){if(this.errorNode(t),!X.i.up(t,(t=>t===this.area||t&&t.parentNode===this.area),this.area))throw(0,v.error)("Node element must be in editor");const s=this.createRange();let i=null;return X.i.isText(t)?e?s.setStart(t,0):s.setEnd(t,t.nodeValue?.length??0):(i=this.j.createInside.fake(),e?s.setStartBefore(t):s.setEndAfter(t),s.collapse(e),X.i.safeInsertNode(s,i),s.selectNode(i)),s.collapse(e),this.selectRange(s),i}setCursorIn(t,e=!1){if(this.errorNode(t),!X.i.up(t,(t=>t===this.area||t&&t.parentNode===this.area),this.area))throw(0,v.error)("Node element must be in editor");const s=this.createRange();let i=t,r=t;do{if(X.i.isText(i))break;r=i,i=e?i.firstChild:i.lastChild}while(i);if(!i){const t=this.j.createInside.text(u.INVISIBLE_SPACE);/^(img|br|input)$/i.test(r.nodeName)?i=r:(r.appendChild(t),r=t)}return s.selectNodeContents(i||r),s.collapse(e),this.selectRange(s),r}selectRange(t,e=!0){const s=this.sel;return e&&!this.isFocused()&&this.focus(),s&&(s.removeAllRanges(),s.addRange(t)),this.j.e.fire("changeSelection"),this}select(t,e=!1){if(this.errorNode(t),!X.i.up(t,(t=>t===this.area||t&&t.parentNode===this.area),this.area))throw(0,v.error)("Node element must be in editor");const s=this.createRange();return s[e?"selectNodeContents":"selectNode"](t),this.selectRange(s)}get html(){const t=this.sel;if(t&&t.rangeCount>0){const e=t.getRangeAt(0).cloneContents(),s=this.j.createInside.div();return s.appendChild(e),s.innerHTML}return""}*wrapInTagGen(t){if(this.isCollapsed()){const e=this.jodit.createInside.element("font",u.INVISIBLE_SPACE);return this.insertNode(e,!1,!1),t&&t[0]&&e.appendChild(t[0]),yield e,void X.i.unwrap(e)}(0,v.$$)("*[style*=font-size]",this.area).forEach((t=>{(0,v.attr)(t,"data-font-size",""+t.style.fontSize),t.style.removeProperty("font-size")})),this.j.nativeExecCommand("fontsize",!1,"7"),(0,v.$$)("*[data-font-size]",this.area).forEach((t=>{const e=(0,v.attr)(t,"data-font-size");e&&(t.style.fontSize=e,(0,v.attr)(t,"data-font-size",null))}));const e=(0,v.$$)('font[size="7"]',this.area);for(const t of e){const{firstChild:e,lastChild:s}=t;e&&e===s&&(0,Z._V)(e)||(e&&(0,Z._V)(e)&&X.i.before(t,e),s&&(0,Z._V)(s)&&X.i.after(t,s),yield t),X.i.unwrap(t)}}wrapInTag(t){const e=[];for(const s of this.wrapInTagGen())try{if(s.firstChild&&s.firstChild===s.lastChild&&(0,Z._V)(s.firstChild))continue;(0,Z.mf)(t)?t(s):e.push(X.i.replace(s,t,this.j.createInside))}finally{const t=s.parentNode;t&&(X.i.unwrap(s),X.i.isEmpty(t)&&X.i.unwrap(t))}return e}commitStyle(t){new xs(t).apply(this.j)}applyStyle(t,e={}){this.commitStyle({style:t,...e})}splitSelection(t,e){if(!this.isCollapsed())return null;const s=this.createRange(),i=this.range;s.setStartBefore(t);const r=this.cursorOnTheRight(t,e),o=this.cursorOnTheLeft(t,e),n=this.j.createInside.element("br"),a=this.j.createInside.fake(),l=a.cloneNode();try{if(r||o){e?X.i.before(e,n):X.i.safeInsertNode(i,n);const t=(t,e)=>{let s=e(t);for(;s;){const t=e(s);if(!s||!X.i.isTag(s,"br")&&!X.i.isEmptyTextNode(s))break;X.i.safeRemove(s),s=t}};t(n,(t=>t.nextSibling)),t(n,(t=>t.previousSibling)),X.i.after(n,l),X.i.before(n,a),r?(s.setEndBefore(n),i.setEndBefore(n)):(s.setEndAfter(n),i.setEndAfter(n))}else s.setEnd(i.startContainer,i.startOffset);const c=s.extractContents(),h=t=>X.i.each(t,(t=>X.i.isEmptyTextNode(t)&&X.i.safeRemove(t)));try{if(h(c),h(t),t.parentNode.insertBefore(c,t),!e&&r&&n?.parentNode){const t=this.createRange();t.setStartBefore(n),this.selectRange(t)}}catch(t){if(!u.IS_PROD)throw t}const d=t=>{t?.parentNode?.firstChild===t?.parentNode?.lastChild&&t?.parentNode?.appendChild(n.cloneNode())};d(a),d(l)}finally{X.i.safeRemove(a),X.i.safeRemove(l)}return t.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;const{range:t}=this,e=t.cloneRange();if(!X.i.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;const s=e=>{const s=this.j.createInside.fake(),i=t.cloneRange();return i.collapse(e),X.i.safeInsertNode(i,s),((t,e,s)=>{let i=t;for(;i&&i!==s;){if(S.i.findSibling(i,e))return;if(S.i.isCell(i.parentElement))break;i=i.parentElement,i&&i!==s&&(e?S.i.before(i,t):S.i.after(i,t))}})(s,e,this.j.editor),s},i=s(!0),r=s(!1);e.setStartAfter(i),e.setEndBefore(r);const o=X.i.findSibling(i,!1),n=X.i.findSibling(r,!0);if(o!==n){const t=X.i.isElement(o)&&X.i.isOrContains(o,r),s=!t&&X.i.isElement(n)&&X.i.isOrContains(n,i);if(t||s){let s=t?o:n,a=s;for(;X.i.isElement(s);)s=t?s.firstElementChild:s.lastElementChild,s&&X.i.isOrContains(s,t?r:i)&&(a=s);t?e.setStart(a,0):e.setEnd(a,a.childNodes.length)}}return this.selectRange(e),X.i.safeRemove(i,r),this}}(0,p.gn)([y.autobind],js.prototype,"createRange",null),(0,p.gn)([y.autobind],js.prototype,"focus",null),(0,p.gn)([y.autobind],js.prototype,"setCursorAfter",null),(0,p.gn)([y.autobind],js.prototype,"setCursorBefore",null),(0,p.gn)([y.autobind],js.prototype,"setCursorIn",null);let Is=class t extends C.Hr{className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}getHeight(){return this.container?.offsetHeight??0}findEmpty(t=!1){const e=this.getElms(t?"item-right":"item");for(let t=0;e.length>t;t+=1)if(!e[t].innerHTML.trim().length)return e[t]}append(t,e=!1){const s=this.findEmpty(e)||this.j.c.div(this.getFullElName("item"));e&&s.classList.add(this.getFullElName("item-right")),s.appendChild(t),this.container?.appendChild(s),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}constructor(t,e){super(t),this.target=e,this.mods={},this.container=t.c.div("jodit-status-bar"),e.appendChild(this.container),this.hide()}destruct(){this.isInDestruct||(this.setStatus(C.n$.beforeDestruct),S.i.safeRemove(this.container),super.destruct())}};Is=(0,p.gn)([y.component,(0,y.derive)(at.$,lt.F)],Is);const ks=new WeakMap;class Ts extends C.Hr{constructor(){super(...arguments),this.selected=new Set}className(){return"Table"}recalculateStyles(){const t=(0,j.ZO)(this.j,Ts,"style",!0),e=[];this.selected.forEach((t=>{const s=(0,v.cssPath)(t);s&&e.push(s)})),t.innerHTML=e.length?e.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(t){this.selected.add(t),this.recalculateStyles();const e=X.i.closest(t,"table",this.j.editor);if(e){const s=Ts.selectedByTable.get(e)||new Set;s.add(t),Ts.selectedByTable.set(e,s)}}removeSelection(t){this.selected.delete(t),this.recalculateStyles();const e=X.i.closest(t,"table",this.j.editor);if(e){const s=Ts.selectedByTable.get(e);s&&(s.delete(t),s.size||Ts.selectedByTable.delete(e))}}getAllSelectedCells(){return(0,v.toArray)(this.selected)}static getSelectedCellsByTable(t){const e=Ts.selectedByTable.get(t);return e?(0,v.toArray)(e):[]}destruct(){return this.selected.clear(),super.destruct()}static getRowsCount(t){return t.rows.length}static getColumnsCount(t){return Ts.formalMatrix(t).reduce(((t,e)=>Math.max(t,e.length)),0)}static formalMatrix(t,e){const s=[[]],i=(0,v.toArray)(t.rows),r=(t,i)=>{void 0===s[i]&&(s[i]=[]);const r=t.colSpan,o=t.rowSpan;let n,a,l=0;for(;s[i][l];)l+=1;for(a=0;o>a;a+=1)for(n=0;r>n;n+=1){if(void 0===s[i+a]&&(s[i+a]=[]),e&&!1===e(t,i+a,l+n,r,o))return!1;s[i+a][l+n]=t}};for(let t=0;i.length>t;t+=1){const e=(0,v.toArray)(i[t].cells);for(let i=0;e.length>i;i+=1)if(!1===r(e[i],t))return s}return s}static formalCoordinate(t,e,s=!1){let i=0,r=0,o=1,n=1;return Ts.formalMatrix(t,((t,a,l,c,h)=>{if(e===t)return i=a,r=l,o=c||1,n=h||1,s&&(r+=(c||1)-1,i+=(h||1)-1),!1})),[i,r,o,n]}static appendRow(t,e,s,i){let r;if(e)r=e.cloneNode(!0),(0,v.$$)("td,th",e).forEach((t=>{const e=(0,v.attr)(t,"rowspan");if(e&&parseInt(e,10)>1){const s=parseInt(e,10)-1;(0,v.attr)(t,"rowspan",s>1?s:null)}})),(0,v.$$)("td,th",r).forEach((t=>{t.innerHTML=""}));else{const e=Ts.getColumnsCount(t);r=i.element("tr");for(let t=0;e>t;t+=1)r.appendChild(i.element("td"))}s&&e&&e.nextSibling?e.parentNode&&e.parentNode.insertBefore(r,e.nextSibling):!s&&e?e.parentNode&&e.parentNode.insertBefore(r,e):(t.getElementsByTagName("tbody")?.[0]||t).appendChild(r)}static removeRow(t,e){const s=Ts.formalMatrix(t);let i;const r=t.rows[e];s[e].forEach(((o,n)=>{if(i=!1,0>e-1||s[e-1][n]!==o)if(s[e+1]&&s[e+1][n]===o){if(o.parentNode===r&&o.parentNode.nextSibling){i=!0;let r=n+1;for(;s[e+1][r]===o;)r+=1;const a=X.i.next(o.parentNode,(t=>X.i.isTag(t,"tr")),t);a&&(s[e+1][r]?a.insertBefore(o,s[e+1][r]):a.appendChild(o))}}else X.i.safeRemove(o);else i=!0;if(i&&(o.parentNode===r||o!==s[e][n-1])){const t=o.rowSpan;(0,v.attr)(o,"rowspan",t-1>1?t-1:null)}})),X.i.safeRemove(r)}static appendColumn(t,e,s,i){const r=Ts.formalMatrix(t);let o;for((void 0===e||0>e)&&(e=Ts.getColumnsCount(t)-1),o=0;r.length>o;o+=1){const t=i.element("td"),n=r[o][e];let a=!1;s?(r[o]&&n&&e+1>=r[o].length||n!==r[o][e+1])&&(n.nextSibling?X.i.before(n.nextSibling,t):n.parentNode&&n.parentNode.appendChild(t),a=!0):(0>e-1||r[o][e]!==r[o][e-1]&&r[o][e].parentNode)&&(X.i.before(r[o][e],t),a=!0),a||(0,v.attr)(r[o][e],"colspan",parseInt((0,v.attr)(r[o][e],"colspan")||"1",10)+1)}}static removeColumn(t,e){const s=Ts.formalMatrix(t);let i;s.forEach(((t,r)=>{const o=t[e];if(i=!1,0>e-1||s[r][e-1]!==o?t.length>e+1&&s[r][e+1]===o?i=!0:X.i.safeRemove(o):i=!0,i&&(0>r-1||o!==s[r-1][e])){const t=o.colSpan;(0,v.attr)(o,"colspan",t-1>1?""+(t-1):null)}}))}static getSelectedBound(t,e){const s=[[1/0,1/0],[0,0]],i=Ts.formalMatrix(t);let r,o,n;for(r=0;i.length>r;r+=1)for(o=0;i[r]&&i[r].length>o;o+=1)e.includes(i[r][o])&&(s[0][0]=Math.min(r,s[0][0]),s[0][1]=Math.min(o,s[0][1]),s[1][0]=Math.max(r,s[1][0]),s[1][1]=Math.max(o,s[1][1]));for(r=s[0][0];s[1][0]>=r;r+=1)for(n=1,o=s[0][1];s[1][1]>=o;o+=1){for(;i[r]&&i[r][o-n]&&i[r][o]===i[r][o-n];)s[0][1]=Math.min(o-n,s[0][1]),s[1][1]=Math.max(o-n,s[1][1]),n+=1;for(n=1;i[r]&&i[r][o+n]&&i[r][o]===i[r][o+n];)s[0][1]=Math.min(o+n,s[0][1]),s[1][1]=Math.max(o+n,s[1][1]),n+=1;for(n=1;i[r-n]&&i[r][o]===i[r-n][o];)s[0][0]=Math.min(r-n,s[0][0]),s[1][0]=Math.max(r-n,s[1][0]),n+=1;for(n=1;i[r+n]&&i[r][o]===i[r+n][o];)s[0][0]=Math.min(r+n,s[0][0]),s[1][0]=Math.max(r+n,s[1][0]),n+=1}return s}static normalizeTable(t){let e,s,i,r;const o=[],n=Ts.formalMatrix(t);for(s=0;n[0].length>s;s+=1){for(i=1e6,r=!1,e=0;n.length>e;e+=1)if(void 0!==n[e][s]){if(2>n[e][s].colSpan){r=!0;break}i=Math.min(i,n[e][s].colSpan)}if(!r)for(e=0;n.length>e;e+=1)void 0!==n[e][s]&&Ts.mark(n[e][s],"colspan",n[e][s].colSpan-i+1,o)}for(e=0;n.length>e;e+=1){for(i=1e6,r=!1,s=0;n[e].length>s;s+=1)if(void 0!==n[e][s]){if(2>n[e][s].rowSpan){r=!0;break}i=Math.min(i,n[e][s].rowSpan)}if(!r)for(s=0;n[e].length>s;s+=1)void 0!==n[e][s]&&Ts.mark(n[e][s],"rowspan",n[e][s].rowSpan-i+1,o)}for(e=0;n.length>e;e+=1)for(s=0;n[e].length>s;s+=1)void 0!==n[e][s]&&(n[e][s].hasAttribute("rowspan")&&1===n[e][s].rowSpan&&(0,v.attr)(n[e][s],"rowspan",null),n[e][s].hasAttribute("colspan")&&1===n[e][s].colSpan&&(0,v.attr)(n[e][s],"colspan",null),n[e][s].hasAttribute("class")&&!(0,v.attr)(n[e][s],"class")&&(0,v.attr)(n[e][s],"class",null));Ts.unmark(o)}static mergeSelected(t,e){const s=[],i=Ts.getSelectedBound(t,Ts.getSelectedCellsByTable(t));let r,o=0,n=null,a=0,l=0,c=0;const h=new Set,d=[];i&&(i[0][0]-i[1][0]||i[0][1]-i[1][1])&&(Ts.formalMatrix(t,((t,u,p,f,m)=>{if(!(i[0][0]>u||u>i[1][0]||i[0][1]>p||p>i[1][1])){if(r=t,h.has(r))return;h.add(r),u===i[0][0]&&r.style.width&&(o+=r.offsetWidth),""!==(0,v.trim)(t.innerHTML.replace(/<br(\/)?>/g,""))&&s.push(t.innerHTML),f>1&&(l+=f-1),m>1&&(c+=m-1),n?(Ts.mark(r,"remove",1,d),Ls(e).removeSelection(r)):(n=t,a=p)}})),l=i[1][1]-i[0][1]+1,c=i[1][0]-i[0][0]+1,n&&(l>1&&Ts.mark(n,"colspan",l,d),c>1&&Ts.mark(n,"rowspan",c,d),o&&(Ts.mark(n,"width",(o/t.offsetWidth*100).toFixed(u.ACCURACY)+"%",d),a&&Ts.setColumnWidthByDelta(t,a,0,!0,d)),n.innerHTML=s.join("<br/>"),Ls(e).addSelection(n),h.delete(n),Ts.unmark(d),Ts.normalizeTable(t),(0,v.toArray)(t.rows).forEach(((t,e)=>{t.cells.length||X.i.safeRemove(t)}))))}static splitHorizontal(t,e){let s,i,r,o,n;const a=[];Ts.getSelectedCellsByTable(t).forEach((l=>{i=e.createInside.element("td"),i.appendChild(e.createInside.element("br")),r=e.createInside.element("tr"),s=Ts.formalCoordinate(t,l),2>l.rowSpan?(Ts.formalMatrix(t,((t,e,i)=>{s[0]===e&&s[1]!==i&&t!==l&&Ts.mark(t,"rowspan",t.rowSpan+1,a)})),X.i.after(X.i.closest(l,"tr",t),r),r.appendChild(i)):(Ts.mark(l,"rowspan",l.rowSpan-1,a),Ts.formalMatrix(t,((e,i,r)=>{i>s[0]&&s[0]+l.rowSpan>i&&s[1]>r&&e.parentNode.rowIndex===i&&(n=e),i>s[0]&&e===l&&(o=t.rows[i])})),n?X.i.after(n,i):o.insertBefore(i,o.firstChild)),l.colSpan>1&&Ts.mark(i,"colspan",l.colSpan,a),Ts.unmark(a),Ls(e).removeSelection(l)})),this.normalizeTable(t)}static splitVertical(t,e){let s,i,r;const o=[];Ts.getSelectedCellsByTable(t).forEach((n=>{s=Ts.formalCoordinate(t,n),2>n.colSpan?Ts.formalMatrix(t,((t,e,i)=>{s[1]===i&&s[0]!==e&&t!==n&&Ts.mark(t,"colspan",t.colSpan+1,o)})):Ts.mark(n,"colspan",n.colSpan-1,o),i=e.createInside.element("td"),i.appendChild(e.createInside.element("br")),n.rowSpan>1&&Ts.mark(i,"rowspan",n.rowSpan,o);const a=n.offsetWidth;X.i.after(n,i),r=a/t.offsetWidth/2,Ts.mark(n,"width",(100*r).toFixed(u.ACCURACY)+"%",o),Ts.mark(i,"width",(100*r).toFixed(u.ACCURACY)+"%",o),Ts.unmark(o),Ls(e).removeSelection(n)})),Ts.normalizeTable(t)}static setColumnWidthByDelta(t,e,s,i,r){const o=Ts.formalMatrix(t);let n=0;for(let i=0;o.length>i;i+=1){const a=o[i][e];if(1>=a.colSpan||1>=o.length){Ts.mark(a,"width",((a.offsetWidth+s)/t.offsetWidth*100).toFixed(u.ACCURACY)+"%",r),n=i;break}}for(let t=n+1;o.length>t;t+=1)Ts.mark(o[t][e],"width",null,r);i||Ts.unmark(r)}static mark(t,e,s,i){i.push(t);const r=ks.get(t)??{};r[e]=void 0===s?1:s,ks.set(t,r)}static unmark(t){t.forEach((t=>{const e=ks.get(t);e&&(Object.keys(e).forEach((s=>{const i=e[s];switch(s){case"remove":X.i.safeRemove(t);break;case"rowspan":(0,v.attr)(t,"rowspan",(0,v.isNumber)(i)&&i>1?i:null);break;case"colspan":(0,v.attr)(t,"colspan",(0,v.isNumber)(i)&&i>1?i:null);break;case"width":null==i?(t.style.removeProperty("width"),(0,v.attr)(t,"style")||(0,v.attr)(t,"style",null)):t.style.width=""+i}delete e[s]})),ks.delete(t))}))}}Ts.selectedByTable=new WeakMap,(0,p.gn)([(0,y.debounce)()],Ts.prototype,"recalculateStyles",null);const Ls=t=>t.getInstance("Table",t.o);function Ms(t){const e=atob(t.split(",")[1]),s=t.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(e.length),r=new Uint8Array(i);for(let t=0;e.length>t;t+=1)r[t]=e.charCodeAt(t);return new Blob([r],{type:s})}const Ps=new WeakMap;function Ns(t,e){const s=((t,e)=>{if((0,v.isFunction)(t.o.buildData))return t.o.buildData.call(t,e);const s=t.ow.FormData;if(void 0!==s){if(e instanceof s)return e;if((0,v.isString)(e))return e;const t=new s;return Object.keys(e).forEach((s=>{t.append(s,e[s])})),t}return e})(t,e),i=e=>{const s=new _({xhr(){const e=new XMLHttpRequest;return void 0!==t.j.ow.FormData&&e.upload?(t.j.progressbar.show().progress(10),e.upload.addEventListener("progress",(e=>{if(e.lengthComputable){let s=e.loaded/e.total;s*=100,t.j.progressbar.show().progress(s),100>s||t.j.progressbar.hide()}}),!1)):t.j.progressbar.hide(),e},method:t.o.method||"POST",data:e,url:(0,v.isFunction)(t.o.url)?t.o.url(e):t.o.url,headers:t.o.headers,queryBuild:t.o.queryBuild,contentType:t.o.contentType.call(t,e),withCredentials:t.o.withCredentials||!1});let i=Ps.get(t);return i||(i=new Set,Ps.set(t,i)),i.add(s),t.j.e.one("beforeDestruct",s.destruct),s.send().then((t=>t.json())).catch((e=>{t.o.error.call(t,e)})).finally((()=>{s.destruct(),i?.delete(s)}))};return(0,v.isPromise)(s)?s.then(i).catch((e=>{t.o.error.call(t,e)})):i(s)}function zs(t,e,s,i,r){if(!e)return Promise.reject((0,v.error)("Need files"));const{o}=t;let n=(0,v.toArray)(e);if(!n.length)return Promise.reject((0,v.error)("Need files"));const a=[];if(o.insertImageAsBase64URI){let e,i;for(i=0;n.length>i;i+=1)if(e=n[i],e&&e.type){const r=e.type.match(/\/([a-z0-9]+)/i),l=r[1]?r[1].toLowerCase():"";if(o.imagesExtensions.includes(l)){const r=new FileReader;a.push(t.j.async.promise(((i,n)=>{r.onerror=n,r.onloadend=()=>{const e={baseurl:"",files:[r.result],isImages:[!0]};((0,v.isFunction)(s)?s:o.defaultHandlerSuccess).call(t,e),i(e)},r.readAsDataURL(e)}))),n[i]=null}}}if(n=n.filter((t=>t)),n.length){const e=new FormData;let l;e.append(o.pathVariableName,t.path),e.append("source",t.source);for(let s=0;n.length>s;s+=1)if(l=n[s],l){const i=/\.[\d\w]+$/.test(l.name),r=l.type.match(/\/([a-z0-9]+)/i),a=r&&r[1]?r[1].toLowerCase():"";let c=n[s].name||(""+Math.random()).replace(".","");if(!i&&a){let t=a;["jpeg","jpg"].includes(t)&&(t="jpeg|jpg"),RegExp(".("+t+")$","i").test(c)||(c+="."+a)}const[h,d,u]=o.processFileName.call(t,o.filesVariableName(s),n[s],c);e.append(h,d,u)}r&&r(e),o.data&&(0,v.isPlainObject)(o.data)&&Object.keys(o.data).forEach((t=>{e.append(t,o.data[t])})),o.prepareData.call(t,e),a.push(Ns(t,e).then((e=>o.isSuccess.call(t,e)?(((0,v.isFunction)(s)?s:o.defaultHandlerSuccess).call(t,o.process.call(t,e)),e):(((0,v.isFunction)(i)?i:o.defaultHandlerError).call(t,(0,v.error)(o.getMessage.call(t,e))),e))).then((()=>{t.j.events&&t.j.e.fire("filesWereUploaded")})))}return Promise.all(a)}function Ds(t){return!!(t&&t.files&&t.files.length>0)}function Rs(t){return!!(t&&t.items&&t.items.length>0)}var As=r(77892);f.D.prototype.enableDragAndDropFileToEditor=!0,f.D.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&&(0,D.k)(t.data.messages)?t.data.messages.join(" "):"",processFileName:(t,e,s)=>[t,e,s],process:t=>t.data,error(t){this.j.message.error(t.message,4e3)},getDisplayName:(t,e)=>t+e,defaultHandlerSuccess(t){const e=this.j||this;(0,As.Z)(e)&&t.files&&t.files.length&&t.files.forEach(((s,i)=>{const[r,o]=t.isImages&&t.isImages[i]?["img","src"]:["a","href"],n=e.createInside.element(r);n.setAttribute(o,t.baseurl+s),"a"===r&&(n.textContent=e.o.uploader.getDisplayName.call(this,t.baseurl,s)),"img"===r?e.s.insertImage(n,null,e.o.imageDefaultWidth):e.s.insertNode(n)}))},defaultHandlerError(t){this.j.message.error(t.message)},contentType(t){return(void 0===this.ow.FormData||"string"==typeof t)&&"application/x-www-form-urlencoded; charset=UTF-8"}};class qs extends C.Hr{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(t){return this.path=t,this}setSource(t){return this.source=t,this}bind(t,e,s){const i=()=>{t.classList.remove("jodit_drag_hover")},r=this,o=t=>{let o,n,a;const l=t.clipboardData,c=t=>{n&&(t.append("extension",a),t.append("mimetype",n.type))};if(!u.IS_IE&&Ds(l))return zs(r,l.files,e,s).finally(i),!1;if(u.IS_IE&&!u.IS_ES_NEXT)return((t,e,s,i,r)=>{if(e&&(!e.types.length||e.types[0]!==u.TEXT_PLAIN)){const e=t.j.c.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});(0,j.ZO)(t.j,t.constructor).appendChild(e);const o=(0,v.isJoditObject)(t.j)?t.j.s.save():null,n=()=>o&&(0,v.isJoditObject)(t.j)&&t.j.s.restore();e.focus(),t.j.async.setTimeout((()=>{const o=e.firstChild;if(X.i.safeRemove(e),o&&o.hasAttribute("src")){const e=(0,v.attr)(o,"src")||"";n(),zs(t,[Ms(e)],s,i).finally(r)}}),t.j.defaultTimeout)}})(r,l,e,s,i);if(Rs(l)){const{items:h}=l;for(o=0;h.length>o;o+=1)if("file"===h[o].kind&&"image/png"===h[o].type){if(n=h[o].getAsFile(),n){const t=n.type.match(/\/([a-z0-9]+)/i);a=t[1]?t[1].toLowerCase():"",zs(r,[n],e,s,c).finally(i)}t.preventDefault();break}}};r.j&&r.j.editor!==t?r.j.e.on(t,"paste",o):r.j.e.on("beforePaste",o),this.attachEvents(t,e,s,i)}attachEvents(t,e,s,i){const r=this;r.j.e.on(t,"dragend dragover dragenter dragleave drop",(t=>{t.preventDefault()})).on(t,"dragover",(e=>{(Ds(e.dataTransfer)||Rs(e.dataTransfer))&&(t.classList.add("jodit_drag_hover"),e.preventDefault())})).on(t,"dragend dragleave",(e=>{t.classList.remove("jodit_drag_hover"),Ds(e.dataTransfer)&&e.preventDefault()})).on(t,"drop",(o=>{t.classList.remove("jodit_drag_hover"),Ds(o.dataTransfer)&&(o.preventDefault(),o.stopImmediatePropagation(),zs(r,o.dataTransfer.files,e,s).finally(i))}));const o=t.querySelector("input[type=file]");o&&r.j.e.on(o,"change",(()=>{zs(r,o.files,e,s).then((()=>{o.value="",/safari/i.test(navigator.userAgent)||(o.type="",o.type="file")})).finally(i)}))}uploadRemoteImage(t,e,s){const i=this,{o:r}=i,o=(0,v.isFunction)(s)?s:r.defaultHandlerError;Ns(i,{action:"fileUploadRemote",url:t}).then((t=>{r.isSuccess.call(i,t)?((0,v.isFunction)(e)?e:r.defaultHandlerSuccess).call(i,r.process.call(i,t)):o.call(i,(0,v.error)(r.getMessage.call(i,t)))})).catch((t=>o.call(i,t)))}constructor(t,e){super(t),this.path="",this.source="default",this.options=(0,v.ConfigProto)(e||{},(0,v.ConfigProto)(f.D.defaultOptions.uploader,(0,v.isJoditObject)(t)?t.o.uploader:{}))}destruct(){this.setStatus(C.n$.beforeDestruct);const t=Ps.get(this);t&&(t.forEach((t=>{try{t.destruct()}catch{}})),t.clear()),super.destruct()}}var Os,Bs=r(90262);const Hs="data-jodit-default-style-display",Fs="data-jodit-default-classes";let Jodit=Os=class Jodit extends Bt{className(){return"Jodit"}waitForReady(){return this.isReady?Promise.resolve(this):this.async.promise((t=>{this.hookStatus("ready",(()=>t(this)))}))}static get ready(){return new Promise((t=>{j.TB.on("oditready",t)}))}get text(){if(this.editor)return this.editor.innerText||"";const t=this.createInside.div();return t.innerHTML=this.getElementValue(),t.innerText||""}get defaultTimeout(){return(0,v.isNumber)(this.o.defaultTimeout)?this.o.defaultTimeout:f.D.defaultOptions.defaultTimeout}static atom(t){return(0,v.markAsAtomic)(t)}static make(t,e){return new this(t,e)}static isJoditAssigned(t){return t&&(0,v.isJoditObject)(t.component)&&!t.component.isInDestruct}static get defaultOptions(){return f.D.defaultOptions}get createInside(){return new Yt((()=>this.ed),this.o.createAttributes)}__setPlaceField(t,e){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[t]=e}get element(){return this.currentPlace.element}get editor(){return this.currentPlace.editor}set editor(t){this.__setPlaceField("editor",t)}get container(){return this.currentPlace.container}set container(t){this.__setPlaceField("container",t)}get workplace(){return this.currentPlace.workplace}get statusbar(){return this.currentPlace.statusbar}get iframe(){return this.currentPlace.iframe}set iframe(t){this.__setPlaceField("iframe",t)}get history(){return this.currentPlace.history}get editorWindow(){return this.currentPlace.editorWindow}set editorWindow(t){this.__setPlaceField("editorWindow",t)}get ew(){return this.editorWindow}get editorDocument(){return this.currentPlace.editorWindow.document}get ed(){return this.editorDocument}get options(){return this.currentPlace.options}set options(t){this.__setPlaceField("options",t)}get s(){return this.selection}get uploader(){return this.getInstance("Uploader",this.o.uploader)}get filebrowser(){const t=this,e=(0,v.ConfigProto)({defaultTimeout:t.defaultTimeout,uploader:t.o.uploader,language:t.o.language,license:t.o.license,theme:t.o.theme,shadowRoot:t.o.shadowRoot,defaultCallback(e){e.files&&e.files.length&&e.files.forEach(((s,i)=>{const r=e.baseurl+s;e.isImages&&e.isImages[i]?t.s.insertImage(r,null,t.o.imageDefaultWidth):t.s.insertNode(t.createInside.fromHTML(`<a href='${r}' title='${r}'>${r}</a>`))}))}},this.o.filebrowser);return t.getInstance("FileBrowser",e)}get mode(){return this.__mode}set mode(t){this.setMode(t)}getNativeEditorValue(){const t=this.e.fire("beforeGetNativeEditorValue");return(0,v.isString)(t)?t:this.editor?this.editor.innerHTML:this.getElementValue()}setNativeEditorValue(t){const e={value:t};this.e.fire("beforeSetNativeEditorValue",e)||this.editor&&(this.editor.innerHTML=e.value)}get value(){return this.getEditorValue()}set value(t){this.setEditorValue(t),this.history.__processChanges()}synchronizeValues(){this.__imdSynchronizeValues()}__imdSynchronizeValues(){this.setEditorValue()}getEditorValue(t=!0,e){let s;if(s=this.e.fire("beforeGetValueFromEditor",e),void 0!==s)return s;s=this.getNativeEditorValue().replace(u.INVISIBLE_SPACE_REG_EXP(),""),t&&(s=s.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===s&&(s="");const i={value:s};return this.e.fire("afterGetValueFromEditor",i,e),i.value}setEditorValue(t){const e=this.e.fire("beforeSetValueToEditor",t);if(!1===e)return;if((0,v.isString)(e)&&(t=e),!this.editor)return void(void 0!==t&&this.__setElementValue(t));if(!(0,v.isString)(t)&&!(0,v.isVoid)(t))throw(0,v.error)("value must be string");(0,v.isVoid)(t)||this.getNativeEditorValue()===t||this.setNativeEditorValue(t),this.e.fire("postProcessSetEditorValue");const s=this.getElementValue(),i=this.getEditorValue();if(!this.__isSilentChange&&s!==i&&u.SAFE_COUNT_CHANGE_CALL>this.__callChangeCount){this.__setElementValue(i),this.__callChangeCount+=1;try{this.history.__upTick(),this.e.fire("change",i,s),this.e.fire(this.history,"change",i,s)}finally{this.__callChangeCount=0}}}updateElementValue(){this.__setElementValue(this.getEditorValue())}getElementValue(){return void 0!==this.element.value?this.element.value:this.element.innerHTML}setElementValue(t){const e=this.getElementValue();return(void 0===t||(0,v.isString)(t)&&t!==e)&&(t??=e,t!==this.getEditorValue()&&this.setEditorValue(t)),this.__setElementValue(t)}__setElementValue(t){if(!(0,v.isString)(t))throw(0,v.error)("value must be string");if(this.element!==this.container&&t!==this.getElementValue()){const e={value:t},s=this.e.fire("beforeSetElementValue",e);(0,v.callPromise)(s,(()=>{void 0!==this.element.value?this.element.value=e.value:this.element.innerHTML=e.value,this.e.fire("afterSetElementValue",e)}))}}registerCommand(t,e,s){const i=t.toLowerCase();let r=this.commands.get(i);if(void 0===r&&(r=[],this.commands.set(i,r)),r.push(e),!(0,v.isFunction)(e)){const r=this.o.commandToHotkeys[i]||this.o.commandToHotkeys[t]||e.hotkeys;r&&this.registerHotkeyToCommand(r,i,s?.stopPropagation)}return this}registerHotkeyToCommand(t,e,s=!0){const i=(0,v.asArray)(t).map(v.normalizeKeyAliases).map((t=>t+".hotkey")).join(" ");this.e.off(i).on(i,((t,i)=>(i&&(i.shouldStop=s??!0),this.execCommand(e))))}execCommand(t,e,s,...i){if(this.s.isFocused()||this.s.focus(),this.o.readonly&&!this.o.allowCommandsInReadOnly.includes(t))return;let r;if(t=t.toLowerCase(),r=this.e.fire("beforeCommand",t,e,s,...i),!1!==r&&(r=this.__execCustomCommands(t,e,s,...i)),!1!==r)if(this.s.focus(),"selectall"===t)this.s.select(this.editor,!0),this.s.expandSelection();else try{r=this.nativeExecCommand(t,e,s)}catch(t){if(!u.IS_PROD)throw t}return this.e.fire("afterCommand",t,e,s),this.setEditorValue(),r}nativeExecCommand(t,e,s){this.__isSilentChange=!0;try{return this.ed.execCommand(t,e,s)}finally{this.__isSilentChange=!1}}__execCustomCommands(t,e,s,...i){t=t.toLowerCase();const r=this.commands.get(t);if(void 0!==r){let o;return r.forEach((r=>{let n;n=(0,v.isFunction)(r)?r:r.exec;const a=n.call(this,t,e,s,...i);void 0!==a&&(o=a)})),o}}lock(t="any"){return!!super.lock(t)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.editor.classList.add("jodit_lock"),this.e.fire("lock",!0),!0)}unlock(){return!!super.unlock()&&(this.editor.classList.remove("jodit_lock"),this.__selectionLocked&&this.s.restore(),this.e.fire("lock",!1),!0)}getMode(){return this.mode}isEditorMode(){return this.getRealMode()===u.MODE_WYSIWYG}getRealMode(){if(this.getMode()!==u.MODE_SPLIT)return this.getMode();const t=this.od.activeElement;return t&&(t===this.iframe||X.i.isOrContains(this.editor,t)||X.i.isOrContains(this.toolbar.container,t))?u.MODE_WYSIWYG:u.MODE_SOURCE}setMode(t){const e=this.getMode(),s={mode:parseInt(""+t,10)},i=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",s)&&(this.__mode=[u.MODE_SOURCE,u.MODE_WYSIWYG,u.MODE_SPLIT].includes(s.mode)?s.mode:u.MODE_WYSIWYG,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),i.forEach((t=>{this.container.classList.remove(t)})),this.container.classList.add(i[this.mode-1]),e!==this.getMode()&&this.e.fire("afterSetMode"))}toggleMode(){let t=this.getMode();[u.MODE_SOURCE,u.MODE_WYSIWYG,this.o.useSplitMode?u.MODE_SPLIT:9].includes(t+1)?t+=1:t=u.MODE_WYSIWYG,this.setMode(t)}setDisabled(t){this.o.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.e.fire("disabled",t))}getDisabled(){return this.o.disabled}setReadOnly(t){this.__wasReadOnly!==t&&(this.__wasReadOnly=t,this.o.readonly=t,t?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.e&&this.e.fire("readonly",t))}getReadOnly(){return this.o.readonly}focus(){this.getMode()!==u.MODE_SOURCE&&this.s.focus()}get isFocused(){return this.s.isFocused()}beforeInitHook(){}afterInitHook(){}initOptions(t){this.options=(0,v.ConfigProto)(t||{},f.D.defaultOptions)}initOwners(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}constructor(t,e){super(e,!0),this.isJodit=!0,this.commands=new Map,this.__selectionLocked=null,this.__wasReadOnly=!1,this.editorIsActive=!1,this.__mode=u.MODE_WYSIWYG,this.__callChangeCount=0,this.__isSilentChange=!1,this.__elementToPlace=new Map;try{const e=(0,v.resolveElement)(t,this.o.shadowRoot||this.od);if(Os.isJoditAssigned(e))return e.component}catch(t){throw this.destruct(),t}this.setStatus(C.n$.beforeInit),this.id=(0,v.attr)((0,v.resolveElement)(t,this.o.shadowRoot||this.od),"id")||""+(new Date).getTime(),j.as[this.id]=this,this.attachEvents(e),this.e.on(this.ow,"resize",(()=>{this.e&&this.e.fire("resize")})),this.e.on("prepareWYSIWYGEditor",this.__prepareWYSIWYGEditor),this.selection=new js(this);const s=this.beforeInitHook();(0,v.callPromise)(s,(()=>{this.e.fire("beforeInit",this),j.pw.__init(this),this.e.fire("afterPluginSystemInit",this),this.e.on("changePlace",(()=>{this.setReadOnly(this.o.readonly),this.setDisabled(this.o.disabled)})),this.places.length=0;const s=this.addPlace(t,e);j.as[this.id]=this,(0,v.callPromise)(s,(()=>{this.e&&this.e.fire("afterInit",this),this.afterInitHook(),this.setStatus(C.n$.ready),this.e.fire("afterConstructor",this)}))}))}addPlace(t,e){const s=(0,v.resolveElement)(t,this.o.shadowRoot||this.od);this.attachEvents(e),s.attributes&&(0,v.toArray)(s.attributes).forEach((t=>{const s=t.name;let i=t.value;void 0===f.D.defaultOptions[s]||e&&void 0!==e[s]||(-1!==["readonly","disabled"].indexOf(s)&&(i=""===i||"true"===i),/^[0-9]+(\.)?([0-9]+)?$/.test(""+i)&&(i=Number(i)),this.options[s]=i)}));let i=this.c.div("jodit-container");i.classList.add("jodit"),i.classList.add("jodit-container"),i.classList.add("jodit_theme_"+(this.o.theme||"default")),$s(this.o.className,i),this.o.containerStyle&&(0,v.css)(i,this.o.containerStyle);const{styleValues:r}=this.o;Object.keys(r).forEach((t=>{const e=(0,v.kebabCase)(t);i.style.setProperty("--jd-"+e,r[t])})),i.setAttribute("contenteditable","false");let o=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(s.nodeName)&&(i=s,s.setAttribute(Fs,""+s.className),o=i.innerHTML,i.innerHTML=""),i.classList.add("jodit_inline"),i.classList.add("jodit-container")),s!==i&&(s.style.display&&s.setAttribute(Hs,s.style.display),s.style.display="none");const n=this.c.div("jodit-workplace",{contenteditable:!1});i.appendChild(n),s.parentNode&&s!==i&&s.parentNode.insertBefore(i,s),Object.defineProperty(s,"component",{enumerable:!1,configurable:!0,value:this});const a=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});n.appendChild(a);const l={editor:a,element:s,container:i,workplace:n,statusbar:new Is(this,i),options:this.isReady?(0,v.ConfigProto)(e||{},f.D.defaultOptions):this.options,history:new Ae(this),editorWindow:this.ow};this.__elementToPlace.set(a,l),this.setCurrentPlace(l),this.places.push(l),this.setNativeEditorValue(this.getElementValue());const c=this.__initEditor(o),h=this.options;return(0,v.callPromise)(c,(()=>{h.enableDragAndDropFileToEditor&&h.uploader&&(h.uploader.url||h.uploader.insertImageAsBase64URI)&&this.uploader.bind(this.editor),this.__elementToPlace.get(this.editor)||this.__elementToPlace.set(this.editor,l),this.e.fire("afterAddPlace",l)}))}addDisclaimer(t){this.workplace.appendChild(t)}setCurrentPlace(t){this.currentPlace!==t&&(this.isEditorMode()||this.setMode(u.MODE_WYSIWYG),this.currentPlace=t,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",t))}__initEditor(t){const e=this.__createEditor();return(0,v.callPromise)(e,(()=>{if(this.isInDestruct)return;if(this.element!==this.container){const t=this.getElementValue();t!==this.getEditorValue()&&this.setEditorValue(t)}else null!=t&&this.setEditorValue(t);let e=this.o.defaultMode;if(this.o.saveModeInStorage){const t=this.storage.get("jodit_default_mode");"string"==typeof t&&(e=parseInt(t,10))}this.setMode(e),this.o.readonly&&(this.__wasReadOnly=!1,this.setReadOnly(!0)),this.o.disabled&&this.setDisabled(!0);try{this.ed.execCommand("defaultParagraphSeparator",!1,this.o.enter.toLowerCase())}catch{}try{this.ed.execCommand("enableObjectResizing",!1,"false")}catch{}try{this.ed.execCommand("enableInlineTableEditing",!1,"false")}catch{}}))}__createEditor(){const t=this.editor,e=this.e.fire("createEditor",this);return(0,v.callPromise)(e,(()=>{if(!this.isInDestruct){if((!1===e||(0,v.isPromise)(e))&&X.i.safeRemove(t),$s(this.o.editorClassName||this.o.editorCssClass,this.editor),this.o.editorCssClass&&this.editor.classList.add(this.o.editorCssClass),this.o.style&&(0,v.css)(this.editor,this.o.style),this.e.on("synchro",(()=>{this.setEditorValue()})).on("focus",(()=>{this.editorIsActive=!0})).on("blur",(()=>this.editorIsActive=!1)),this.__prepareWYSIWYGEditor(),this.o.direction){const t="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.container.style.direction=t,this.container.setAttribute("dir",t),this.toolbar.setDirection(t)}this.o.triggerChangeEvent&&this.e.on("change",this.async.debounce((()=>{this.e&&this.e.fire(this.element,"change")}),this.defaultTimeout))}}))}__prepareWYSIWYGEditor(){const{editor:t}=this;if(this.o.direction){const t="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=t,this.editor.setAttribute("dir",t)}this.e.on(t,"mousedown touchstart focus",(()=>{const e=this.__elementToPlace.get(t);e&&this.setCurrentPlace(e)})).on(t,"compositionend",this.synchronizeValues).on(t,"selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",(t=>{if(!this.o.readonly&&!this.__isSilentChange&&!(t instanceof this.ew.KeyboardEvent&&t.isComposing)&&this.e&&this.e.fire){if(!1===this.e.fire(t.type,t))return!1;this.synchronizeValues()}}))}fetch(t,e){const s=new _({url:t,...e},this.o.defaultAjaxOptions),i=()=>{this.e.off("beforeDestruct",i),this.progressbar.progress(100).hide(),s.destruct()};this.e.one("beforeDestruct",i),this.progressbar.show().progress(30);const r=s.send();return r.finally(i).catch((()=>null)),r}destruct(){if(this.isInDestruct)return;if(this.setStatus(C.n$.beforeDestruct),this.__elementToPlace.clear(),!this.editor)return;const t=this.getEditorValue();this.storage.clear(),this.buffer.clear(),this.commands.clear(),this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body),this.places.forEach((({container:e,workplace:s,statusbar:i,element:r,iframe:o,editor:n,history:a})=>{if(r!==e)if(r.hasAttribute(Hs)){const t=(0,v.attr)(r,Hs);t&&(r.style.display=t,r.removeAttribute(Hs))}else r.style.display="";else r.hasAttribute(Fs)&&(r.className=(0,v.attr)(r,Fs)||"",r.removeAttribute(Fs));r.hasAttribute("style")&&!(0,v.attr)(r,"style")&&r.removeAttribute("style"),i.destruct(),this.e.off(e),this.e.off(r),this.e.off(n),X.i.safeRemove(s),X.i.safeRemove(n),e!==r&&X.i.safeRemove(e),Object.defineProperty(r,"component",{enumerable:!1,configurable:!0,value:null}),X.i.safeRemove(o),e===r&&(r.innerHTML=t),a.destruct()})),this.places.length=0,this.currentPlace={},delete j.as[this.id],super.destruct()}};function $s(t,e){t&&t.split(/\s+/).forEach((t=>e.classList.add(t)))}Jodit.fatMode=!1,Jodit.plugins=j.pw,Jodit.modules=j.qz,Jodit.ns=j.qz,Jodit.decorators={},Jodit.constants=u,Jodit.instances=j.as,Jodit.lang=u.lang,Jodit.core={Plugin:Ut.S},(0,p.gn)([y.cache],Jodit.prototype,"createInside",null),(0,p.gn)([y.cache],Jodit.prototype,"s",null),(0,p.gn)([y.cache],Jodit.prototype,"uploader",null),(0,p.gn)([y.cache],Jodit.prototype,"filebrowser",null),(0,p.gn)([(0,y.throttle)()],Jodit.prototype,"synchronizeValues",null),(0,p.gn)([(0,y.watch)(":internalChange")],Jodit.prototype,"updateElementValue",null),(0,p.gn)([y.autobind],Jodit.prototype,"__prepareWYSIWYGEditor",null),Jodit=Os=(0,p.gn)([(0,y.derive)(Te)],Jodit);var Ws=r(45143),Vs=r.n(Ws),Us=r(90544),Ys=r(75125);let Gs={};Gs={ar:Vs(),cs_cz:Vs(),de:Vs(),en:Us,es:Vs(),fr:Vs(),he:Vs(),hu:Vs(),id:Vs(),it:Vs(),ja:Vs(),ko:Vs(),mn:Vs(),nl:Vs(),pl:Vs(),pt_br:Vs(),ru:Vs(),tr:Vs(),zh_cn:Vs(),zh_tw:Vs()};const Xs=t=>t?t.default||t:{},Ks={};(0,D.k)(Xs(Ys))&&Xs(Ys).forEach(((t,e)=>{Ks[e]=t})),Object.keys(Gs).forEach((t=>{const e=Xs(Gs[t]);(0,D.k)(e)?(Gs[t]={},e.forEach(((e,s)=>{Gs[t][Ks[s]]=e}))):Gs[t]=e}));var Js=Gs,Zs=r(39123),Qs=r.n(Zs),ti=r(76331),ei=r.n(ti),si=r(52326),ii=r.n(si),ri=r(23689),oi=r.n(ri),ni=r(99017),ai=r.n(ni),li=r(271),ci=r.n(li),hi=r(25570),di=r.n(hi),ui=r(20865),pi=r.n(ui),fi=r(29777),mi=r.n(fi),gi=r(49220),vi=r.n(gi),bi=r(32336),yi=r.n(bi),wi=r(23384),_i=r.n(wi),Ci=r(85588),Si=r.n(Ci),Ei=r(76962),xi=r.n(Ei),ji=r(52614),Ii=r.n(ji),ki=r(78808),Ti=r.n(ki),Li=r(36553),Mi=r.n(Li),Pi=r(48103),Ni=r.n(Pi),zi=r(4434),Di=r.n(zi),Ri=r(55810),Ai=r.n(Ri),qi=r(18375),Oi=r.n(qi),Bi=r(60300),Hi=r.n(Bi),Fi=r(71287),$i=r.n(Fi),Wi=r(39428),Vi=r.n(Wi),Ui=r(92472),Yi=r.n(Ui),Gi=r(60828),Xi=r.n(Gi),Ki=r(86354),Ji=r.n(Ki),Zi=r(34953),Qi=r.n(Zi);f.D.prototype.controls.about={exec(t){const e=t.dlg(),s=t.i18n.bind(t);e.setMod("theme",t.o.theme).setHeader(s("About Jodit")).setContent(`<div class="jodit-about">\n\t\t\t\t\t<div>${s("Jodit Editor")} v.${t.getVersion()}</div>\n\t\t\t\t\t<div>${s("License: %s",(0,v.isLicense)(t.o.license)?(0,v.normalizeLicense)(t.o.license):"MIT")}</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="${u.HOMEPAGE}" target="_blank">${u.HOMEPAGE}</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="https://xdsoft.net/jodit/docs/" target="_blank">${s("Jodit User's Guide")}</a>\n\t\t\t\t\t\t${s("contains detailed help for using")}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>${s("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.")}</div>\n\t\t\t\t</div>`),(0,v.css)(e.dialog,{minHeight:200,minWidth:420}),e.open(!0,!0)},tooltip:"About Jodit",mode:u.MODE_SOURCE+u.MODE_WYSIWYG},j.pw.add("about",(t=>{t.registerButton({name:"about",group:"info"})})),M.J.set("about",Qi());var tr=r(89529),er=r.n(tr);f.D.prototype.addNewLine=!0,f.D.prototype.addNewLineOnDBLClick=!0,f.D.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],f.D.prototype.addNewLineDeltaShow=20,M.J.set("enter",er());const sr="addnewline";class ir extends Ut.S{constructor(){super(...arguments),this.line=this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n("Break")}" class="jodit-add-new-line"><span>${M.J.get("enter")}</span></div>`),this.isMatchedTag=t=>!(!t||!this.j.o.addNewLineTagsTriggers.includes(t.nodeName.toLowerCase())),this.preview=!1,this.lineInFocus=!1,this.isShown=!1,this.hideForce=()=>{this.isShown&&(this.isShown=!1,this.j.async.clearTimeout(this.timeout),this.lineInFocus=!1,X.i.safeRemove(this.line),this.line.style.setProperty("--jd-offset-handle","0"))},this.canGetFocus=t=>null!=t&&X.i.isBlock(t)&&!/^(img|table|iframe|hr)$/i.test(t.nodeName),this.onClickLine=t=>{const e=this.j,s=e.createInside.element(e.o.enter);this.preview&&this.current&&this.current.parentNode?this.current===e.editor?X.i.prepend(e.editor,s):this.current.parentNode.insertBefore(s,this.current):e.editor.appendChild(s),e.s.setCursorIn(s),(0,v.scrollIntoViewIfNeeded)(s,e.editor,e.ed),e.synchronizeValues(),this.hideForce(),t.preventDefault()}}show(){this.isShown||this.j.o.readonly||this.j.isLocked||(this.isShown=!0,this.j.async.clearTimeout(this.timeout),this.line.classList.toggle("jodit-add-new-line_after",!this.preview),this.j.container.appendChild(this.line),this.line.style.width=this.j.container.clientWidth+"px")}onLock(t){t&&this.isShown&&this.hideForce()}hide(){this.isShown&&!this.lineInFocus&&(this.timeout=this.j.async.setTimeout(this.hideForce,{timeout:500,label:"add-new-line-hide"}))}afterInit(t){t.o.addNewLine&&(t.e.on(this.line,"mousemove",(t=>{t.stopPropagation()})).on(this.line,"mousedown touchstart",this.onClickLine).on("change",this.hideForce).on(this.line,"mouseenter",(()=>{this.j.async.clearTimeout(this.timeout),this.lineInFocus=!0})).on(this.line,"mouseleave",(()=>{this.lineInFocus=!1})).on("changePlace",this.addEventListeners.bind(this)),this.addEventListeners())}addEventListeners(){const t=this.j;t.e.off(t.editor,"."+sr).off(t.container,"."+sr).on([t.ow,t.ew,t.editor],"scroll."+sr,this.hideForce).on(t.editor,"click."+sr,this.hide).on(t.container,"mouseleave."+sr,this.hide).on(t.editor,"mousemove."+sr,this.onMouseMove)}onDblClickEditor(t){const e=this.j;if(!e.o.readonly&&e.o.addNewLineOnDBLClick&&t.target===e.editor&&e.s.isCollapsed()){const s=(0,v.offset)(e.editor,e,e.ed),i=t.pageY-e.ew.pageYOffset,r=e.createInside.element(e.o.enter);Math.abs(i-(s.height+s.top))>Math.abs(i-s.top)&&e.editor.firstChild?e.editor.insertBefore(r,e.editor.firstChild):e.editor.appendChild(r),e.s.setCursorIn(r),e.synchronizeValues(),this.hideForce(),t.preventDefault()}}onMouseMove(t){const e=this.j;let s=e.ed.elementFromPoint(t.clientX,t.clientY);if(!X.i.isHTMLElement(s)||X.i.isOrContains(this.line,s))return;if(!X.i.isOrContains(e.editor,s))return;if(e.editor===s||this.isMatchedTag(s)||(s=X.i.closest(s,this.isMatchedTag,e.editor)),!s)return void this.hide();if(this.isMatchedTag(s)){const t=X.i.up(s,X.i.isBlock,e.editor);t&&t!==e.editor&&(s=t)}const i=(0,v.position)(s,this.j);let r=!1,{clientY:o,clientX:n}=t;if(this.j.iframe){const{top:t,left:e}=(0,v.position)(this.j.iframe,this.j,!0);o+=t,n+=e}const a=this.j.o.addNewLineDeltaShow;Math.abs(o-i.top)>a||(r=i.top,this.preview=!0),Math.abs(o-(i.top+i.height))>a||(r=i.top+i.height,this.preview=!1),!1===r||(e.editor!==s||this.preview)&&(0,v.call)(this.preview?X.i.prev:X.i.next,s,this.canGetFocus,e.editor)?(this.current=!1,this.hide()):(this.line.style.top=r+"px",this.current=s,this.show(),this.line.style.setProperty("--jd-offset-handle",n-i.left-10+"px"))}beforeDestruct(){this.j.async.clearTimeout(this.timeout),this.j.e.off(this.line).off("changePlace",this.addEventListeners),X.i.safeRemove(this.line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+sr).off(this.j.container,"."+sr)}}function rr(t,e,s){let i=S.i.findSibling(e,s),r=S.i.findSibling(e,!s);for(;S.i.isElement(i)&&!S.i.isTag(i,u.INSEPARABLE_TAGS)&&S.i.isContentEditable(i,t.editor)&&(!r||!S.i.closest(e,S.i.isElement,t.editor));)s||!i.firstChild?i.appendChild(e):S.i.before(i.firstChild,e),i=S.i.sibling(e,s),r=S.i.sibling(e,!s)}function or(t){return e=>!0!==t.e.fire("backSpaceIsMovedIgnore",e)}function nr(t,e,s){const i=S.i.findSibling(e,s),r=S.i.findSibling(e,!s);if(!S.i.closest(e,S.i.isElement,t.editor)&&S.i.isList(i)&&S.i.isList(r)&&S.i.isTag(i.lastElementChild,"li")&&S.i.isTag(r.firstElementChild,"li")){const{setCursorBefore:o,setCursorAfter:n}=t.s,a=i.lastElementChild;return(0,ke.RE)(s?S.i.prepend:S.i.append,r.firstElementChild,e),S.i.moveContent(r,i,!s,or(t)),S.i.safeRemove(r),(0,ke.RE)(s?S.i.append:S.i.prepend,a,e),(0,ke.RE)(s?o:n,e),!0}return!1}function ar(t,e,s){let i=!1;const{setCursorBefore:r,setCursorIn:o}=t.s;let n=X.i.closest(e,X.i.isElement,t.editor);if(!n||!X.i.isEmpty(n))return!1;const a=X.i.findNotEmptyNeighbor(e,s,t.editor);do{if(!n||!X.i.isEmpty(n)||X.i.isCell(n))break;{X.i.after(n,e);const s=X.i.closest(n,(t=>X.i.isElement(t)&&t!==n),t.editor);X.i.safeRemove(n),i=!0,n=s}}while(n);return!(!i||!nr(t,e,s))||(!a||X.i.isText(a)||X.i.isTag(a,u.INSEPARABLE_TAGS)?r(e):o(a,!s),i)}function lr(t,e,s,i){if(e&&S.i.isElement(s)){S.i.moveContent(e,s,!i,or(t));let r=e;for(;r&&r!==t.editor&&S.i.isEmpty(r);){const t=r.parentElement;S.i.safeRemove(r),r=t}return!0}return!1}(0,p.gn)([(0,y.watch)(":lock")],ir.prototype,"onLock",null),(0,p.gn)([y.autobind],ir.prototype,"hide",null),(0,p.gn)([(0,y.watch)(":dblclick")],ir.prototype,"onDblClickEditor",null),(0,p.gn)([(0,y.debounce)((t=>5*t.defaultTimeout))],ir.prototype,"onMouseMove",null),j.pw.add("addNewLine",ir);const cr=[(t,e,s)=>{const i=S.i.findSibling(e,s);return!(!S.i.isElement(i)||!S.i.isTag(i,u.INSEPARABLE_TAGS)&&!S.i.isEmpty(i)||(S.i.safeRemove(i),S.i.isTag(i,"br")&&!S.i.findNotEmptySibling(e,!1)&&S.i.after(e,t.createInside.element("br")),t.s.setCursorBefore(e),S.i.isTag(i,"br")&&ar(t,e,s),0))},(t,e,s)=>{let i=X.i.findSibling(e,s);return!i&&e.parentElement&&e.parentElement!==t.editor&&(i=X.i.findSibling(e.parentElement,s)),!(!X.i.isElement(i)||X.i.isContentEditable(i,t.editor)||((0,v.call)(s?X.i.before:X.i.after,i,e),X.i.safeRemove(i),rr(t,e,s),(0,v.call)(s?t.s.setCursorBefore:t.s.setCursorAfter,e),0))},function t(e,s,i,r){const o=i?-1:1,n=X.i.sibling(s,!i);let a,l=X.i.sibling(s,i),c=null,h=!1;const d=t=>{let s=X.i.sibling(t,i);return!s&&t.parentNode&&t.parentNode!==e.editor&&(s=((t,e,s,i=!1)=>{const r=t=>e?t.firstChild:t.lastChild;let o=X.i.findNotEmptyNeighbor(t,!e,s);if(i&&X.i.isElement(o)&&!X.i.isInlineBlock(o))return null;if(o)do{if(!r(o))return o;o=r(o)}while(o);return null})(t,!i,e.editor,!0)),s};for(l||(l=d(s));l&&(X.i.isText(l)||X.i.isInlineBlock(l));){for(;X.i.isInlineBlock(l);)l=i?l?.lastChild:l?.firstChild;if(!l)break;if(l.nodeValue?.length){let t=(0,v.toArray)(l.nodeValue);const e=t.length;let s=i?e-1:0;if(t[s]===u.INVISIBLE_SPACE)for(;t[s]===u.INVISIBLE_SPACE;)s+=o;if(a=t[s],t[s+o]===u.INVISIBLE_SPACE){for(s+=o;t[s]===u.INVISIBLE_SPACE;)s+=o;s+=i?1:-1}if(t=i&&0>s?[]:t.slice(i?0:s+1,i?s:e),!n||!X.i.isText(n)||(i?/^ /:/ $/).test(n.nodeValue??"")||!(0,v.trimInv)(n.nodeValue||"").length)for(let e=i?t.length-1:0;(i?e>=0:t.length>e)&&" "===t[e];e+=i?-1:1)t[e]=u.NBSP_SPACE;l.nodeValue=t.join("")}if(l.nodeValue?.length||(c=l),!(0,v.isVoid)(a)&&a!==u.INVISIBLE_SPACE){h=!0,(0,v.call)(i?X.i.after:X.i.before,l,s),("sentence"===r||"word"===r&&" "!==a&&a!==u.NBSP_SPACE)&&t(e,s,i,r);break}const p=d(l);c&&(X.i.safeRemove(c),c=null),l=p}return c&&(X.i.safeRemove(c),c=null),h&&(((t,e)=>{let s=t.parentElement;for(;s&&X.i.isInlineBlock(s)&&X.i.isTag(s,e);){const e=s.parentElement;X.i.isEmpty(s)&&(X.i.after(s,t),X.i.safeRemove(s)),s=e}})(s,["a"]),((t,e)=>{e.parentElement!==t.editor&&X.i.isBlock(e.parentElement)&&X.i.each(e.parentElement,X.i.isEmptyTextNode)&&X.i.after(e,t.createInside.element("br"))})(e,s),e.s.setCursorBefore(s),X.i.isTag(s.previousSibling,"br")&&!X.i.findNotEmptySibling(s,!1)&&X.i.after(s,e.createInside.element("br"))),h},(t,e)=>!!S.i.isCell(e.parentElement),ar,(t,e,s)=>{const i=S.i.closest(e,S.i.isElement,t.editor);if(!i)return!1;const r=S.i.findNotEmptySibling(i,s);return!(!r||!S.i.isEmpty(r)||(S.i.safeRemove(r),t.s.setCursorBefore(e),0))},nr,(t,e,s)=>{let i=e,r=i;for(;i&&!S.i.findNotEmptySibling(i,s)&&i.parentElement!==t.editor;)i=i.parentElement,r=i;if(S.i.isElement(r)&&S.i.isContentEditable(r,t.editor)){const i=S.i.findNotEmptySibling(r,s);if(i&&(((t,e,s,i)=>{const r=S.i.isTag(s,["ol","ul"]),o=S.i.isTag(e,["ol","ul"]),n=(t,e)=>e?t.firstElementChild:t.lastElementChild;return o?(s=t.createInside.element(t.o.enterBlock),S.i.before(e,s),lr(t,n(e,i),s,i)):!(!s||!r||o)&&lr(t,e,n(s,!i),i)})(t,r,i,s)||lr(t,r,i,s)))return t.s.setCursorBefore(e),!0}return!1},(t,e,s)=>{const i=S.i.closest(e,S.i.isElement,t.editor),{s:r}=t;if(S.i.isLeaf(i)&&i?.parentElement?.[s?"firstElementChild":"lastElementChild"]===i&&r.cursorInTheEdge(s,i)){const o=i.parentElement,n=t.createInside.element(t.o.enterBlock);return(0,k.call)(s?S.i.before:S.i.after,o,n),S.i.moveContent(i,n),S.i.safeRemove(i),S.i.isEmpty(o)&&S.i.safeRemove(o),(0,k.call)(s?r.setCursorBefore:r.setCursorAfter,e),!0}return!1}];f.D.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}},j.pw.add("backspace",class hr extends Ut.S{constructor(){super(...arguments),this.requires=["hotkeys"]}afterInit(t){t.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:t.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:t.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:t.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:t.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:t.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:t.o.delete.hotkeys.backspaceSentence})}beforeDestruct(t){t.e.off("afterCommand.delete")}onDelete(t,e="char"){const s=this.j,i=s.selection;if(i.isFocused()||i.focus(),(t=>!t.s.isCollapsed()&&(t.execCommand("Delete"),!0))(s))return!1;const r=i.range,o=s.createInside.text(u.INVISIBLE_SPACE);try{if(X.i.safeInsertNode(r,o),!X.i.isOrContains(s.editor,o))return;if(s.e.fire("backSpaceBeforeCases",t,o))return!1;if(rr(s,o,t),cr.some((i=>{if((0,L.m)(i)&&i(s,o,t,e))return!0})))return!1}catch(t){throw t}finally{s.e.fire("backSpaceAfterDelete",t,o),this.safeRemoveEmptyNode(o)}return!1}safeRemoveEmptyNode(t){const{range:e}=this.j.s;e.startContainer===t&&(t.previousSibling?X.i.isText(t.previousSibling)?e.setStart(t.previousSibling,t.previousSibling.nodeValue?.length??0):e.setStartAfter(t.previousSibling):t.nextSibling&&(X.i.isText(t.nextSibling)?e.setStart(t.nextSibling,0):e.setStartBefore(t.nextSibling)),e.collapse(!0),this.j.s.selectRange(e)),X.i.safeRemove(t)}}),j.pw.add("deleteCommand",class dr extends Ut.S{constructor(){super(...arguments),this.requires=["backspace"]}afterInit(t){t.e.on("afterCommand.delete",(t=>{"delete"===t&&this.__afterDeleteCommand()})),t.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(t){t.e.off("afterCommand.delete")}__afterDeleteCommand(){const t=this.j,e=t.s.current();if(e&&X.i.isTag(e.firstChild,"br")&&t.s.removeNode(e.firstChild),!((0,ut.f)(t.editor.textContent||"")||t.editor.querySelector("img,table,jodit,iframe,hr")||e&&X.i.closest(e,"table",t.editor))){t.editor.innerHTML="";const e=t.s.setCursorIn(t.editor);t.s.removeNode(e)}}__onDeleteCommand(){const{jodit:t}=this;if(t.s.isCollapsed())return;t.s.expandSelection();const e=t.s.range;e.deleteContents();const s=t.createInside.fake();e.insertNode(s);const i=X.i.findSibling(s,!0),r=X.i.findSibling(s,!1);return this.__moveContentInLeftSibling(s,i,r),e.setStartBefore(s),e.collapse(!0),this.__moveCursorInEditableSibling(t,i,s,e),this.__addBrInEmptyBlock(s,r,e),X.i.safeRemove(s),t.s.selectRange(e),!1}__moveContentInLeftSibling(t,e,s){e=this.__defineRightLeftBox(e),!X.i.isList(s)&&!X.i.isTag(s,"table")&&X.i.isBlock(s)&&X.i.isBlock(e)&&(X.i.append(e,t),X.i.moveContent(s,e),X.i.safeRemove(s)),X.i.isList(s)&&X.i.isLeaf(s.firstElementChild)&&X.i.isEmpty(s.firstElementChild)&&X.i.safeRemove(s.firstElementChild)}__defineRightLeftBox(t){if(!X.i.isList(t))return t;let e=t.lastElementChild;return X.i.isLeaf(e)||(e=this.j.createInside.element("li"),X.i.append(t,e)),e}__addBrInEmptyBlock(t,e,s){const i=this.j;if(t.isConnected&&X.i.isBlock(t.parentNode)&&!t.nextSibling&&!t.previousSibling){const e=i.createInside.element("br");X.i.after(t,e),s.setStartBefore(e),s.collapse(!0)}if(X.i.isTag(e,"table")){const t=(0,v.$$)("td,th",e).shift();X.i.isCell(t)&&X.i.isEmpty(t)&&X.i.append(t,i.createInside.element("br"))}}__moveCursorInEditableSibling(t,e,s,i){if(!e||!X.i.isText(e)){const e=X.i.closest(s,X.i.isBlock,t.editor)??t.editor,r=X.i.prev(s,X.i.isText,e);r&&(i.setStartAfter(r),i.collapse(!0),X.i.safeRemove(s))}}});var ur=r(53315),pr=r.n(ur),fr=r(70600),mr=r.n(fr),gr=r(53523),vr=r.n(gr),br=r(6582),yr=r.n(br),wr=r(30770),_r=r.n(wr),Cr=r(96181),Sr=r.n(Cr);f.D.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},f.D.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},f.D.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},f.D.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},f.D.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},f.D.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"},j.pw.add("bold",(t=>{const e=e=>{const s=f.D.defaultOptions.controls[e],i={...s.css};let r;return Object.keys(i).forEach((t=>{r||(r={}),r[t]=(0,v.isArray)(i[t])?i[t][0]:i[t]})),t.s.applyStyle(r,{element:s.tags?s.tags[0]:void 0}),t.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach((e=>{t.registerButton({name:e,group:"font-style"})})),["superscript","subscript"].forEach((e=>{t.registerButton({name:e,group:"script"})})),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}).registerCommand("subscript",{exec:e}).registerCommand("superscript",{exec:e})})),M.J.set("bold",pr()).set("italic",mr()).set("strikethrough",vr()).set("subscript",yr()).set("superscript",_r()).set("underline",Sr());var Er=r(43208),xr=r.n(Er);f.D.prototype.controls.classSpan={command:"applyClassName",exec:ke.u3,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(t,e){const s=t.s.current();if(s){const i=S.i.closest(s,S.i.isElement,t.editor)||t.editor;return!(!e.args||!i.classList.contains(""+e.args[0]))}return!1},isActive(t,e){const s=t.s.current();if(s){const i=S.i.closest(s,S.i.isElement,t.editor)||t.editor;let r=!1;return e.list&&Object.keys(e.list).forEach((t=>{i.classList.contains(t)&&(r=!0)})),!(!i||i===t.editor||void 0===e.list||!r)}return!1},childTemplate(t,e,s){return`<span class="${e}">${t.i18n(s)}</span>`},tooltip:"Insert className"},j.pw.add("classSpan",class jr extends Ut.S{constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"font"}]}afterInit(t){t.registerCommand("applyClassName",((e,s,i)=>(t.s.applyStyle(void 0,{className:i}),!1)))}beforeDestruct(){}}),M.J.set("class-span",xr());var Ir=r(67128),kr=r(85605),Tr=r(33841);function Lr(t){const e=/([^[]*)\[([^\]]+)]/,s=/[\s]*,[\s]*/,i=/^(.*)[\s]*=[\s]*(.*)$/,r={};return(0,T.H)(t)?(t.split(s).map((t=>{t=(0,ut.f)(t);const o=e.exec(t),n={},a=t=>{t=(0,ut.f)(t);const e=i.exec(t);e?n[e[1]]=e[2]:n[t]=!0};if(o){const t=o[2].split(s);o[1]&&(t.forEach(a),r[o[1].toUpperCase()]=n)}else r[t.toUpperCase()]=!0})),r):!!t&&(Object.keys(t).forEach((e=>{r[e.toUpperCase()]=t[e]})),r)}function Mr(t,e){const{s}=t;let i=e;if(!i){i=t.createInside.fake();const{range:e}=s;S.i.safeInsertNode(e,i),e.collapse()}const r=S.i.furthest(i,Pr,t.editor);if(r)if(s.cursorOnTheLeft(r))S.i.before(r,i);else if(s.cursorOnTheRight(r))S.i.after(r,i);else{const t=s.splitSelection(r);t&&S.i.after(t,i)}e||(s.setCursorBefore(i),S.i.safeRemove(i))}function Pr(t){return S.i.isInlineBlock(t)&&!S.i.isTag(t,u.INSEPARABLE_TAGS)}function Nr(t,e,s){const i=((t,e,s)=>{if(!s||!S.i.isHTMLElement(e))return e;const i=s[e.nodeName.toLowerCase()]||s[e.nodeName];return i?S.i.replace(e,i,t.createInside,!0,!1):e})(t,e,t.o.cleanHTML.replaceOldTags);return e!==i?(e=i,!0):s}function zr(t,e,s,i){if(i&&S.i.isElement(e)&&!0!==i[e.nodeName]){const t=e.attributes;if(t&&t.length){const r=[];for(let s=0;t.length>s;s+=1){const o=i[e.nodeName][t[s].name];(!o||!0!==o&&o!==t[s].value)&&r.push(t[s].name)}r.length&&(s=!0),r.forEach((t=>{e.removeAttribute(t)}))}}return s}function Dr(t,e,s){if(t.o.cleanHTML.fillEmptyParagraph&&S.i.isBlock(e)&&S.i.isEmpty(e,u.INSEPARABLE_TAGS)){const s=t.createInside.element("br");return e.appendChild(s),!0}return s}function Rr(t,e,s,i,r,o){return((t,e,s,i,r)=>!(S.i.isText(e)||!(i&&!i[e.nodeName]||r&&r[e.nodeName]))||t.o.cleanHTML.removeEmptyElements&&S.i.isElement(e)&&null!=e.nodeName.match(u.IS_INLINE)&&!S.i.isTemporary(e)&&0===(0,ut.f)(e.innerHTML).length&&(null==s||!S.i.isOrContains(e,s)))(t,e,o,i,r)?(S.i.safeRemove(e),!0):s}function Ar(t,e,s,i,r,o){return S.i.isText(e)&&!e.nodeValue?(e===o&&t.s.isCollapsed()&&t.s.setCursorAfter(e),S.i.safeRemove(e),!0):s}function qr(t,e,s,i,r,o){if(o===e||!S.i.isText(e)||null==e.nodeValue)return s;if(!(0,u.INVISIBLE_SPACE_REG_EXP)().test(e.nodeValue))return s;const n=S.i.furthest(o,S.i.isBlock,t.editor);return!n||S.i.isOrContains(n,e)?s:(e.nodeValue=e.nodeValue.replace((0,u.INVISIBLE_SPACE_REG_EXP)(),""),e===o&&t.s.isCollapsed()&&t.s.setCursorAfter(e),e.nodeValue||S.i.safeRemove(e),!0)}function Or(t,e,s){return!(!S.i.isElement(e)||!(0,v.sanitizeHTMLElement)(e,{safeJavaScriptLink:t.options.cleanHTML.safeJavaScriptLink,removeOnError:t.options.cleanHTML.removeOnError}))||s}const Br=Object.keys(i);var Hr=r(28218),Fr=r.n(Hr);f.D.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script",useIframeSandbox:!1,removeOnError:!0,safeJavaScriptLink:!0,disableCleanFilter:null},f.D.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},M.J.set("eraser",Fr());class $r extends kr.S{constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new Tr.b(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}afterInit(t){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;const t=this.j;this.walker.setWork(t.editor),this.currentSelectionNode=t.s.current()}startWalker(){const{jodit:t}=this,e=Lr(this.j.o.cleanHTML.allowTags),s=Lr(this.j.o.cleanHTML.denyTags);this.walker.on("visit",(r=>((t,e,s,r,o)=>{let n=!1;const a=t.o.cleanHTML.disableCleanFilter;for(const l of Br)if(!(a&&a.has(l)||(n=(0,i[l])(t,e,n,s,r,o),e.isConnected)))return!0;return n})(t,r,e,s,this.currentSelectionNode))).on("end",(t=>{this.j.e.fire(t?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")}))}beforeCommand(t){if("removeformat"===t.toLowerCase())return this.j.s.isCollapsed()?Mr(this.j):(t=>{const{s:e,editor:s,createInside:i}=t,{range:r}=e,o=r.cloneRange(),n=r.cloneRange(),a=i.fake(),l=i.fake();o.collapse(!0),n.collapse(!1),S.i.safeInsertNode(o,a),S.i.safeInsertNode(n,l),r.setStartBefore(a),r.collapse(!0),e.selectRange(r),Mr(t,a),r.setEndAfter(l),r.collapse(!1),e.selectRange(r),Mr(t,l);const c=[];S.i.between(a,l,(t=>{Pr(t)&&!S.i.isTag(t,["a"])&&c.push(t),S.i.isElement(t)&&(0,k.attr)(t,"style")&&(0,k.attr)(t,"style",null)})),c.forEach((t=>S.i.unwrap(t)));const h=(t,e)=>{if(!S.i.findNotEmptySibling(t,e)){const i=t.parentNode;if(i&&i!==s&&(0,k.attr)(i,"style"))return(0,k.attr)(i,"style",null),h(i,e),!0}};h(a,!0)&&h(l,!1),r.setStartAfter(a),r.setEndBefore(l),e.selectRange(r),S.i.safeRemove(a),S.i.safeRemove(l)})(this.j),!1}onBeforeSetNativeEditorValue(t){const e=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():this.j.createInside.div();return e.innerHTML=t.value,this.onSafeHTML(e),t.value=e.innerHTML,(0,Ir.e)(e,{safeJavaScriptLink:!0,removeOnError:!0}),S.i.safeRemove(e),!1}onSafeHTML(t){(0,Ir.e)(t,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}}(0,p.gn)([(0,y.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],$r.prototype,"onChangeCleanHTML",null),(0,p.gn)([(0,y.hook)("ready")],$r.prototype,"startWalker",null),(0,p.gn)([(0,y.watch)(":beforeCommand")],$r.prototype,"beforeCommand",null),(0,p.gn)([(0,y.watch)(":beforeSetNativeEditorValue")],$r.prototype,"onBeforeSetNativeEditorValue",null),(0,p.gn)([(0,y.watch)(":safeHTML")],$r.prototype,"onSafeHTML",null),j.pw.add("cleanHtml",$r);var Wr=r(48872),Vr=r.n(Wr),Ur=r(43574),Yr=r.n(Ur),Gr=r(68707),Xr=r.n(Gr),Kr=r(15806),Jr=r.n(Kr);f.D.prototype.controls.cut={command:"cut",isDisabled(t){return t.s.isCollapsed()},tooltip:"Cut selection"},f.D.prototype.controls.copy={command:"copy",isDisabled(t){return t.s.isCollapsed()},tooltip:"Copy selection"},f.D.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},M.J.set("copy",Vr()).set("cut",Yr()).set("paste",Xr()).set("select-all",Jr()),j.pw.add("clipboard",class Zr{constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}init(t){this.buttons?.forEach((e=>t.registerButton(e))),t.e.off(`copy.${u.CLIPBOARD_ID} cut.${u.CLIPBOARD_ID}`).on(`copy.${u.CLIPBOARD_ID} cut.${u.CLIPBOARD_ID}`,(e=>{const s=t.s.html,i=(0,v.getDataTransfer)(e)||(0,v.getDataTransfer)(t.ew)||(0,v.getDataTransfer)(e.originalEvent);i&&(i.setData(u.TEXT_PLAIN,(0,v.stripTags)(s)),i.setData(u.TEXT_HTML,s)),t.buffer.set(u.CLIPBOARD_ID,s),t.e.fire("pasteStack",{html:s,action:t.o.defaultActionOnPaste||u.INSERT_AS_HTML}),"cut"===e.type&&(t.s.remove(),t.s.focus()),e.preventDefault(),t?.events?.fire("afterCopy",s)}))}destruct(t){t?.buffer?.set(u.CLIPBOARD_ID,""),t?.events?.off("."+u.CLIPBOARD_ID)}});var Qr=r(45394);M.J.set("palette",r.n(Qr)());const to=(t,e,s)=>{const i="jodit-color-picker",r=(0,v.normalizeColor)(s),o=t.c.div(i),n=t.o.textIcons?`<span>${t.i18n("palette")}</span>`:M.J.get("palette"),a=t=>{const e=[];return(0,v.isPlainObject)(t)?Object.keys(t).forEach((s=>{e.push(`<div class="${i}__group ${i}__group-${s}">`),e.push(a(t[s])),e.push("</div>")})):(0,v.isArray)(t)&&t.forEach((t=>{e.push(`<span class='${i}__color-item ${r===t?i+"__color-item_active_true":""}' title="${t}" style="background-color:${t}" data-color="${t}"></span>`)})),e.join("")};o.appendChild(t.c.fromHTML(`<div class="${i}__groups">${a(t.o.colors)}</div>`)),o.appendChild(t.c.fromHTML(`<div data-ref="extra" class="${i}__extra"></div>`));const{extra:l}=(0,v.refs)(o);return t.o.showBrowserColorPicker&&(0,v.hasBrowserColorPicker)()&&(l.appendChild(t.c.fromHTML(`<div class="${i}__native">${n}<input type="color" value="#ffffff"/></div>`)),t.e.on(o,"change",(t=>{t.stopPropagation();const s=t.target;if(!s||!s.tagName||!X.i.isTag(s,"input"))return;const i=s.value||"";(0,v.isFunction)(e)&&e(i),t.preventDefault()}))),t.e.on(o,"mousedown touchend",(s=>{s.stopPropagation(),s.preventDefault();let r=s.target;if(r&&r.tagName&&!X.i.isTag(r,"svg")&&!X.i.isTag(r,"path")||!r.parentNode||(r=X.i.closest(r.parentNode,"span",t.editor)),!X.i.isTag(r,"span")||!r.classList.contains(i+"__color-item"))return;const o=(0,v.attr)(r,"-color")||"";e&&(0,v.isFunction)(e)&&e(o)})),t.e.fire("afterGenerateColorPicker",o,l,e,r),o},eo=(t,e,s)=>{const i=t.c.div("jodit-tabs"),r=t.c.div("jodit-tabs__wrapper"),o=t.c.div("jodit-tabs__buttons"),n={},a=[];let l="",c=0;i.appendChild(o),i.appendChild(r);const h=t=>{n[t]&&(a.forEach((t=>{t.state.activated=!1})),(0,v.$$)(".jodit-tab",r).forEach((t=>{t.classList.remove("jodit-tab_active")})),n[t].button.state.activated=!0,n[t].tab.classList.add("jodit-tab_active"))};if(e.forEach((({icon:i,name:d,content:u})=>{const p=t.c.div("jodit-tab"),f=U(t,i||d,d);t.e.on(f.container,"mousedown",(t=>t.preventDefault())),l||(l=d),o.appendChild(f.container),a.push(f),f.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+e.length),(0,L.m)(u)?p.appendChild(t.c.div("jodit-tab_empty")):p.appendChild(C.wA.isInstanceOf(u,E.u)?u.container:u),r.appendChild(p),f.onAction((()=>(h(d),(0,L.m)(u)&&!S.i.isElement(u)&&u.call(t),s&&(s.__activeTab=d),!1))),n[d]={button:f,tab:p},c+=1})),!c)return i;if((0,v.$$)("a",o).forEach((t=>{t.style.width=(100/c).toFixed(10)+"%"})),h(s&&s.__activeTab&&n[s.__activeTab]?s.__activeTab:l),s){let t=s.__activeTab;Object.defineProperty(s,"__activeTab",{configurable:!0,enumerable:!1,get:()=>t,set(e){t=e,h(e)}})}return i},so=(t,e,s,i,r=!0)=>{let o;const n=[];if(e.upload&&t.o.uploader&&(t.o.uploader.url||t.o.uploader.insertImageAsBase64URI)){const s=t.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${t.i18n(r?"Drop image":"Drop file")}</strong><span><br>${t.i18n("or click")}</span><input type="file" accept="${r?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);t.uploader.bind(s,(s=>{const i=(0,v.isFunction)(e.upload)?e.upload:t.o.uploader.defaultHandlerSuccess;(0,v.isFunction)(i)&&i.call(t,s),t.e.fire("closeAllPopups")}),(e=>{t.message.error(e.message),t.e.fire("closeAllPopups")})),n.push({icon:"upload",name:"Upload",content:s})}if(e.filebrowser&&(t.o.filebrowser.ajax.url||t.o.filebrowser.items.url)&&n.push({icon:"folder",name:"Browse",content(){i&&i(),e.filebrowser&&t.filebrowser.open(e.filebrowser,r)}}),e.url){const i=new V(t,{type:"submit",variant:"primary",text:"Insert"}),r=new _t(t,[new vt(t,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new vt(t,{name:"text",label:"Alternative text"}),new It(t,[i])]);o=null,s&&!S.i.isText(s)&&(S.i.isTag(s,"img")||(0,v.$$)("img",s).length)&&(o="IMG"===s.tagName?s:(0,v.$$)("img",s)[0],(0,v.val)(r.container,"input[name=url]",(0,v.attr)(o,"src")),(0,v.val)(r.container,"input[name=text]",(0,v.attr)(o,"alt")),i.state.text="Update"),s&&S.i.isTag(s,"a")&&((0,v.val)(r.container,"input[name=url]",(0,v.attr)(s,"href")),(0,v.val)(r.container,"input[name=text]",(0,v.attr)(s,"title")),i.state.text="Update"),r.onSubmit((s=>{(0,v.isFunction)(e.url)&&e.url.call(t,s.url,s.text)})),n.push({icon:"link",name:"URL",content:r.container})}return eo(t,n)};var io=r(89371);M.J.set("brush",r.n(io)()),f.D.prototype.controls.brush={update(t,e){const s=(0,v.dataBind)(t,"color"),i=(s,i)=>{i&&i!==""+(0,v.css)(e.editor,s)&&(t.state.icon.fill=i)};if(s){const e=(0,v.dataBind)(t,"color");return void i("color"===e?e:"background-color",s)}const r=e.s.current();if(r&&!t.state.disabled){const t=S.i.closest(r,S.i.isElement,e.editor)||e.editor;i("color",""+(0,v.css)(t,"color")),i("background-color",""+(0,v.css)(t,"background-color"))}t.state.icon.fill="",t.state.activated=!1},popup(t,e,s,i,r){let o="",n="",a=[],l=null;return e&&e!==t.editor&&S.i.isNode(e)&&(S.i.isElement(e)&&t.s.isCollapsed()&&!S.i.isTag(e,["br","hr"])&&(l=e),S.i.up(e,(t=>{if(S.i.isHTMLElement(t)){const e=(0,v.css)(t,"color",!0),s=(0,v.css)(t,"background-color",!0);if(e)return o=""+e,!0;if(s)return n=""+s,!0}}),t.editor)),a=[{name:"Background",content:to(t,(e=>{l?l.style.backgroundColor=e:t.execCommand("background",!1,e),(0,v.dataBind)(r,"color",e),(0,v.dataBind)(r,"color-mode","background"),i()}),n)},{name:"Text",content:to(t,(e=>{l?l.style.color=e:t.execCommand("forecolor",!1,e),(0,v.dataBind)(r,"color",e),(0,v.dataBind)(r,"color-mode","color"),i()}),o)}],"background"!==t.o.colorPickerDefaultTab&&(a=a.reverse()),eo(t,a,l)},exec(t,e,{button:s}){const i=(0,v.dataBind)(s,"color-mode"),r=(0,v.dataBind)(s,"color");if(!i)return!1;if(e&&e!==t.editor&&S.i.isNode(e)&&S.i.isElement(e))switch(i){case"color":e.style.color=r;break;case"background":e.style.backgroundColor=r}else t.execCommand("background"===i?i:"forecolor",!1,r)},tooltip:"Fill color or set the text color"},j.pw.add("color",(t=>{t.registerButton({name:"brush",group:"color"});const e=(e,s,i)=>{const r=(0,v.normalizeColor)(i);switch(e){case"background":t.s.applyStyle({backgroundColor:r||""});break;case"forecolor":t.s.applyStyle({color:r||""})}return t.synchronizeValues(),!1};t.registerCommand("forecolor",e).registerCommand("background",e)}));var ro=r(79031),oo=r.n(ro);const no="copy-format",ao=["fontWeight","fontStyle","fontSize","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine","fontFamily"],lo=(t,e,s,i)=>{let r=(0,ct.i)(s,e);return r===i[e]&&(r=s.parentNode&&s!==t.editor&&s.parentNode!==t.editor?lo(t,e,s.parentNode,i):void 0),r};f.D.prototype.controls.copyformat={exec(t,e,{button:s}){if(e){if(t.buffer.exists(no))t.buffer.delete(no),t.e.off(t.editor,"mouseup."+no);else{const s={},i=S.i.up(e,(t=>t&&!S.i.isText(t)),t.editor)||t.editor,r=t.createInside.span();t.editor.appendChild(r),ao.forEach((t=>{s[t]=(0,ct.i)(r,t)})),r!==t.editor&&S.i.safeRemove(r);const o=((t,e,s)=>{const i={};return e&&ao.forEach((r=>{i[r]=lo(t,r,e,s),r.match(/border(Style|Color)/)&&!i.borderWidth&&(i[r]=void 0)})),i})(t,i,s),n=()=>{t.buffer.delete(no);const e=t.s.current();e&&(S.i.isTag(e,"img")?(0,ct.i)(e,o):t.s.applyStyle(o)),t.e.off(t.editor,"mouseup."+no)};t.e.on(t.editor,"mouseup."+no,n),t.buffer.set(no,!0)}s.update()}},isActive(t){return t.buffer.exists(no)},tooltip:"Paint format"},j.pw.add("copyformat",(t=>{t.registerButton({name:"copyformat",group:"clipboard"}),(0,j.xl)(n)})),M.J.set("copyformat",oo());class co extends Ut.S{constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=t=>{const e=(0,v.getDataTransfer)(t);return e?e.getData(u.TEXT_HTML)||e.getData(u.TEXT_PLAIN):null}}afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(t){let e=t.target;if(this.onDragEnd(),this.isFragmentFromEditor=S.i.isOrContains(this.j.editor,e,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,v.ctrlKey)(t),this.isFragmentFromEditor){const t=this.j.s.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,Ne(e)&&(e=e.querySelector("img")),S.i.isTag(e,"img")&&(this.draggable=e.cloneNode(!0),(0,v.dataBind)(this.draggable,"target",e)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(t){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),t.preventDefault(),t.stopPropagation())}onDragEnd(){this.draggable&&(S.i.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(t){if(!t.dataTransfer||!t.dataTransfer.files||!t.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",t),t.preventDefault(),t.stopPropagation(),!1;const e=this.j.s.sel,s=this.bufferRange||(e&&e.rangeCount?e.getRangeAt(0):null);let i=null;if(!this.draggable&&s)i=this.isCopyMode?s.cloneContents():s.extractContents();else if(this.draggable)if(this.isCopyMode){const[t,e]="1"===(0,v.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];i=this.j.createInside.element(t),i.setAttribute(e,(0,v.attr)(this.draggable,"data-src")||(0,v.attr)(this.draggable,"src")||""),"a"===t&&(i.textContent=(0,v.attr)(i,e)||"")}else i=(0,v.dataBind)(this.draggable,"target");else this.getText(t)&&(i=this.j.createInside.fromHTML(this.getText(t)));e&&e.removeAllRanges(),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),i&&(this.j.s.insertNode(i,!1,!1),s&&i.firstChild&&i.lastChild&&(s.setStartBefore(i.firstChild),s.setEndAfter(i.lastChild),this.j.s.selectRange(s),this.j.e.fire("synchro")),S.i.isTag(i,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",i)),t.preventDefault(),t.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}}var ho;(0,p.gn)([y.autobind],co.prototype,"onDragStart",null),(0,p.gn)([(0,y.throttle)((t=>t.defaultTimeout/10))],co.prototype,"onDrag",null),(0,p.gn)([y.autobind],co.prototype,"onDragEnd",null),(0,p.gn)([y.autobind],co.prototype,"onDrop",null),j.pw.add("dragAndDrop",co),f.D.prototype.draggableTags=["img","jodit-media","jodit"],(t=>{t[t.IDLE=0]="IDLE",t[t.WAIT_DRAGGING=1]="WAIT_DRAGGING",t[t.DRAGGING=2]="DRAGGING"})(ho||(ho={}));class uo extends Ut.S{constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=ho.IDLE}afterInit(){this.dragList=this.j.o.draggableTags?(0,v.splitArray)(this.j.o.draggableTags).filter(Boolean).map((t=>t.toLowerCase())):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onDragStart(t){if("dragstart"===t.type&&this.draggable)return!1;if(this.state>ho.IDLE)return;const e=t.target;if(!this.dragList.length||!e)return;const s=t=>!(!t||!this.dragList.includes(t.nodeName.toLowerCase()));let i=X.i.furthest(e,s,this.j.editor)||(s(e)?e:null);i&&(X.i.isTag(i.parentElement,"a")&&i.parentElement.firstChild===i&&i.parentElement.lastChild===i&&(i=i.parentElement),this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=(0,v.ctrlKey)(t),this.draggable=i.cloneNode(!0),(0,v.dataBind)(this.draggable,"target",i),this.state=ho.WAIT_DRAGGING,this.addDragListeners())}onDrag(t){if(!this.draggable||this.state===ho.IDLE)return;const e=t.clientY;if(this.state!==ho.WAIT_DRAGGING||Math.sqrt(Math.pow(t.clientX-this.startX,2)+Math.pow(e-this.startY,2))>=this.diffStep){if(this.state===ho.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=ho.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){const e=(0,v.dataBind)(this.draggable,"target");(0,v.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:t.clientX,top:t.clientY,width:e?.offsetWidth??100,height:e?.offsetHeight??100}),(0,j.ZO)(this.j,uo).appendChild(this.draggable)}(0,v.css)(this.draggable,{left:t.clientX,top:t.clientY}),this.j.s.insertCursorAtPoint(t.clientX,t.clientY)}}onDragEnd(){this.isInDestruct||(this.removeDragListeners(),this.j.unlock(),this.state=ho.IDLE,this.draggable&&(X.i.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||ho.DRAGGING>this.state)return void this.onDragEnd();let t=(0,v.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(t=t.cloneNode(!0));const{parentElement:e}=t;this.j.s.insertNode(t,!0,!1),e&&X.i.isEmpty(e)&&!X.i.isTag(e,["td","th"])&&X.i.safeRemove(e),X.i.isTag(t,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",t),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart),this.removeDragListeners()}}(0,p.gn)([y.autobind],uo.prototype,"onDragStart",null),(0,p.gn)([(0,y.throttle)((t=>t.defaultTimeout/10))],uo.prototype,"onDrag",null),(0,p.gn)([y.autobind],uo.prototype,"onDragEnd",null),(0,p.gn)([y.autobind],uo.prototype,"onDrop",null),j.pw.add("dragAndDropElement",uo);var po=r(67749),fo=r(9005);function mo(t){if(!t)return!1;const e=S.i.findSibling(t,!0);return!(!e||!S.i.isTag(e,"br"))&&e}var go=r(54188);function vo(t,e,s,i){const r="br"===s.toLowerCase(),{createInside:o}=e,n=o.element(s),a=o.element("br");return r||n.appendChild(a),i&&i.cssText&&n.setAttribute("style",i.cssText),S.i.after(t,n),S.i.before(r?n:a,t),(0,fo.n)(n,e.editor,e.ed),n}function bo(t,e,s=u.IS_BLOCK){let i=t;const r=e.editor;do{if(!i||i===r)break;if(s.test(i.nodeName))return S.i.isLeaf(i)?i:bo(i.parentNode,e,/^li$/i)||i;i=i.parentNode}while(i&&i!==r);return null}class yo extends kr.S{afterInit(t){const e=t.o.enter.toLowerCase(),s=e===u.BR.toLowerCase();t.o.enterBlock||(t.o.enterBlock=s?u.PARAGRAPH:e),t.registerCommand("enter",((t,e,s={})=>this.onEnter(s)))}onEnterKeyDown(t){if(t.key===u.KEY_ENTER){const e=this.j,s=e.e.fire("beforeEnter",t);return void 0!==s?s:(e.s.isCollapsed()||e.execCommand("Delete"),e.s.focus(),this.onEnter(t),e.e.fire("afterEnter",t),e.synchronizeValues(),!1)}}onEnter(t){const{jodit:e}=this,s=e.createInside.fake();try{S.i.safeInsertNode(e.s.range,s),((t,e,s)=>{const{s:i}=t,r=S.i.closest(e,["a"],t.editor);r&&(i.cursorOnTheRight(r,e)?S.i.after(r,e):i.cursorOnTheLeft(r,e)&&S.i.before(r,e))})(e,s);let i=bo(s,e);const r=S.i.isLeaf(i);if((!r||t?.shiftKey)&&((t,e,s)=>{const i=!!S.i.closest(t,["pre","blockquote"],e.editor);if(e.o.enter.toLowerCase()===u.BR.toLowerCase()||s&&!i||!s&&i){if(i&&(t=>{const e=mo(mo(t));return!!e&&(S.i.safeRemove(mo(t)),S.i.safeRemove(e),!0)})(t))return!1;const s=e.createInside.element("br");if(S.i.before(t,s),!S.i.findNotEmptySibling(s,!1)){const e=s.cloneNode();S.i.after(s,e),S.i.before(e,t)}return(0,fo.n)(s,e.editor,e.ed),!0}return!1})(s,e,t?.shiftKey))return!1;if(i||((t,e)=>!!S.i.prev(t,(t=>S.i.isBlock(t)||S.i.isImage(t)),e.editor))(s,e)||(i=((t,e)=>{let s=t;S.i.up(s,(t=>{t&&t.hasChildNodes()&&t!==e.editor&&(s=t)}),e.editor);const i=S.i.wrapInline(s,e.o.enter,e);if(S.i.isEmpty(i)){const s=e.createInside.element("br");i.appendChild(s),S.i.before(s,t)}return i})(s,e)),!i)return vo(s,e,r?"li":e.o.enter),!1;if(!((t,e,s)=>!!S.i.canSplitBlock(s)||(S.i.before(t,e.createInside.element("br")),!1))(s,e,i))return!1;if(r&&this.__isEmptyListLeaf(i))return((t,e,s)=>{const i=S.i.closest(s,["ol","ul"],e.editor);if(!i)return;const r=i.parentElement,o=S.i.isLeaf(r),n=o?r:i,a=e.s.createRange();a.setStartAfter(s),a.setEndAfter(i);const l=a.extractContents();S.i.after(n,t),S.i.safeRemove(s),(0,go.$$)("li",i).length||S.i.safeRemove(i);const c=vo(t,e,o?"li":e.o.enter);l.querySelector("li")&&(o?c.appendChild(l):S.i.after(c,l))})(s,e,i),!1;((t,e,s)=>{const i=e.s,{enter:r}=e.o,o=r.toLowerCase(),n=S.i.isLeaf(s),a=s.tagName.toLowerCase()===o||n,l=i.cursorOnTheRight(s,t),c=i.cursorOnTheLeft(s,t);if(!a&&(l||c))return l?S.i.after(s,t):S.i.before(s,t),vo(t,e,o),void(c&&!l&&S.i.prepend(s,t));const h=i.splitSelection(s,t);(0,fo.n)(h,e.editor,e.ed)})(s,e,i)}finally{s.isConnected&&e.s.setCursorBefore(s),S.i.safeRemove(s)}}__isEmptyListLeaf(t){const e=this.j.e.fire("enterIsEmptyListLeaf",t);return(0,po.j)(e)?e:S.i.isEmpty(t)}beforeDestruct(t){t.e.off("keydown.enter")}}(0,p.gn)([(0,y.watch)(":keydown.enter")],yo.prototype,"onEnterKeyDown",null),j.pw.add("enter",yo),f.D.prototype.controls.file={popup(t,e,s,i){const r=(e,s="")=>{t.s.insertNode(t.createInside.fromHTML(`<a href="${e}" title="${s}">${s||e}</a>`))};let o=null;return e&&(S.i.isTag(e,"a")||S.i.closest(e,"a",t.editor))&&(o=S.i.isTag(e,"a")?e:S.i.closest(e,"a",t.editor)),so(t,{filebrowser(t){t.files&&t.files.forEach((e=>r(t.baseurl+e))),i()},upload:!0,url(t,e){o?(o.setAttribute("href",t),o.setAttribute("title",e)):r(t,e),i()}},o,i,!1)},tags:["a"],tooltip:"Insert file"},j.pw.add("file",(t=>{t.registerButton({name:"file",group:"media"})})),f.D.prototype.autofocus=!1,f.D.prototype.cursorAfterAutofocus="end",f.D.prototype.saveSelectionOnBlur=!0,j.pw.add("focus",(t=>{t.o.saveSelectionOnBlur&&t.e.on("blur",(()=>{t.isEditorMode()&&t.s.save(!0)})).on("focus",(()=>{t.s.restore()}));const e=()=>{if(t.s.focus(),"end"===t.o.cursorAfterAutofocus){const e=X.i.last(t.editor,(t=>X.i.isText(t)));e&&t.s.setCursorIn(e,!1)}};t.e.on("afterInit",(()=>{t.o.autofocus&&(t.defaultTimeout?t.async.setTimeout(e,300):e())})),t.e.on("afterInit afterAddPlace",(()=>{t.e.off(t.editor,"mousedown.autofocus").on(t.editor,"mousedown.autofocus",(e=>{t.isEditorMode()&&e.target&&X.i.isBlock(e.target)&&!e.target.childNodes.length&&(t.editor===e.target?t.s.focus():t.s.setCursorIn(e.target))}))}))}));var wo=r(51416),_o=r.n(wo),Co=r(84209),So=r.n(Co);f.D.prototype.defaultFontSizePoints="px",M.J.set("font",So()).set("fontsize",_o()),f.D.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size"},list:["8","9","10","11","12","14","16","18","24","30","36","48","60","72","96"],exec(t,e,{control:s}){return(0,k.memorizeExec)(t,e,{control:s},(e=>"fontsize"===s.command?.toLowerCase()?`${e}${t.o.defaultFontSizePoints}`:e))},childTemplate(t,e,s){return`${s}${t.o.defaultFontSizePoints}`},tooltip:"Font size",isChildActive(t,e){const s=t.s.current(),i=e.data?.cssRule||"font-size",r=e.data?.normalize||(e=>/pt$/i.test(e)&&"pt"===t.o.defaultFontSizePoints?e.replace(/pt$/i,""):e);if(s){const o=S.i.closest(s,S.i.isElement,t.editor)||t.editor,n=(0,k.css)(o,i);return!(!n||!e.args||r(""+e.args[0])!==r(""+n))}return!1}},f.D.prototype.controls.font={...f.D.prototype.controls.fontsize,command:"fontname",list:{"":"Default","helvetica,sans-serif":"Helvetica","arial,helvetica,sans-serif":"Arial","georgia,palatino,serif":"Georgia","impact,charcoal,sans-serif":"Impact","tahoma,geneva,sans-serif":"Tahoma","times new roman,times,serif":"Times New Roman","verdana,geneva,sans-serif":"Verdana"},childTemplate(t,e,s){let i=!1;try{i=-1===e.indexOf("dings")&&document.fonts.check("16px "+e,s)}catch{}return`<span data-style="${e}" style="${i?`font-family: ${e}!important;`:""}">${s}</span>`},data:{cssRule:"font-family",normalize(t){return t.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9]+/g,",")}},tooltip:"Font family"},j.pw.add("font",(t=>{t.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});const e=(e,s,i)=>{switch(e){case"fontsize":t.s.applyStyle({fontSize:(0,v.normalizeSize)(i)});break;case"fontname":t.s.applyStyle({fontFamily:i})}return t.synchronizeValues(),!1};t.registerCommand("fontsize",e).registerCommand("fontname",e)}));var Eo=r(59940);M.J.set("paragraph",r.n(Eo)()),f.D.prototype.controls.paragraph={command:"formatBlock",update(t,e){const s=t.control,i=e.s.current();if(i&&e.o.textIcons){const r=(X.i.closest(i,X.i.isBlock,e.editor)||e.editor).nodeName.toLowerCase(),o=s.list;t&&s.data&&s.data.currentValue!==r&&o&&o[r]&&(e.o.textIcons?t.state.text=r:t.state.icon.name=r,s.data.currentValue=r)}return!1},exec:v.memorizeExec,data:{currentValue:"left"},list:{p:"Normal",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive(t,e){const s=t.s.current();if(s){const i=X.i.closest(s,X.i.isBlock,t.editor);return!(!i||i===t.editor||void 0===e.args||i.nodeName.toLowerCase()!==e.args[0])}return!1},isActive(t,e){const s=t.s.current();if(s){const i=X.i.closest(s,X.i.isBlock,t.editor);return!(!i||i===t.editor||void 0===e.list||X.i.isTag(i,"p")||void 0===e.list[i.nodeName.toLowerCase()])}return!1},childTemplate(t,e,s){return`<${e} style="margin:0;padding:0"><span>${t.i18n(s)}</span></${e}>`},tooltip:"Insert format block"},j.pw.add("formatBlock",(t=>{t.registerButton({name:"paragraph",group:"font"}),t.registerCommand("formatblock",((e,s,i)=>(t.s.applyStyle(void 0,{element:i}),t.synchronizeValues(),!1)))}));var xo=r(7764),jo=r.n(xo),Io=r(32108),ko=r.n(Io);f.D.prototype.fullsize=!1,f.D.prototype.globalFullSize=!0,M.J.set("fullsize",jo()).set("shrink",ko()),f.D.prototype.controls.fullsize={exec(t){t.toggleFullSize()},update(t,e){const s=e.isFullSize?"shrink":"fullsize";t.state.activated=e.isFullSize,e.o.textIcons?t.state.text=s:t.state.icon.name=s},tooltip:"Open in fullsize",mode:u.MODE_SOURCE+u.MODE_WYSIWYG};const To=new Set;j.pw.add("fullsize",(t=>{t.registerButton({name:"fullsize"});let e=!1,s=0,i=0,r=!1;const o=()=>{const{container:o,events:n}=t;n&&(e?(s=(0,ct.i)(o,"height",!0),i=(0,ct.i)(o,"width",!0),(0,ct.i)(o,{height:t.ow.innerHeight,width:t.ow.innerWidth}),r=!0):r&&(0,ct.i)(o,{height:s||"auto",width:i||"auto"}))},n=s=>{const{container:i,events:r}=t;if(i){if(void 0===s&&(s=!i.classList.contains("jodit_fullsize")),t.setMod("fullsize",s),t.o.fullsize=s,e=s,i.classList.toggle("jodit_fullsize",s),t.toolbar&&((0,As.Z)(t)&&t.toolbarContainer?.appendChild(t.toolbar.container),(0,ct.i)(t.toolbar.container,"width","auto")),s?To.add(i):To.delete(i),t.o.globalFullSize&&(1===To.size&&s||0===To.size&&!s)){let t=i.parentNode;for(;t&&t.nodeType!==Node.DOCUMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t.classList.toggle("jodit_fullsize-box_true",s),t=t.parentNode;o()}r.fire("afterResize")}};t.o.globalFullSize&&t.e.on(t.ow,"resize",o),t.e.on("afterInit afterOpen",(()=>{t.toggleFullSize(t?.options?.fullsize)})).on("toggleFullSize",n).on("beforeDestruct",(()=>{e&&n(!1)})).on("beforeDestruct",(()=>{t.events&&t.e.off(t.ow,"resize",o)}))})),f.D.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8, cmd+shift+8"],selectall:["ctrl+a","cmd+a"]},j.pw.add("hotkeys",class Lo extends Ut.S{constructor(){super(...arguments),this.onKeyPress=t=>{const e=this.specialKeys[t.which],s=(t.key||String.fromCharCode(t.which)).toLowerCase(),i=[e||s];return["alt","ctrl","shift","meta"].forEach((s=>{t[s+"Key"]&&e!==s&&i.push(s)})),(0,v.normalizeKeyAliases)(i.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){(0,v.keys)(t.o.commandToHotkeys,!1).forEach((e=>{const s=t.o.commandToHotkeys[e];s&&((0,v.isArray)(s)||(0,v.isString)(s))&&t.registerHotkeyToCommand(s,e)}));let e=!1;t.e.off(".hotkeys").on([t.ow,t.ew],"keydown.hotkeys",(t=>{if(t.key===u.KEY_ESC)return this.j.e.fire("escape",t)})).on("keydown.hotkeys",(s=>{const i=this.onKeyPress(s),r={shouldStop:!0};if(!1===this.j.e.fire(i+".hotkey",s.type,r)){if(r.shouldStop)return e=!0,t.e.stopPropagation("keydown"),!1;s.preventDefault()}}),{top:!0}).on("keyup.hotkeys",(()=>{if(e)return e=!1,t.e.stopPropagation("keyup"),!1}),{top:!0})}beforeDestruct(t){t.events&&t.e.off(".hotkeys")}});var Mo=r(8223);M.J.set("hr",r.n(Mo)()),f.D.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},j.pw.add("hr",(t=>{t.registerButton({name:"hr",group:"insert"}),t.registerCommand("insertHorizontalRule",(()=>{const e=t.createInside.element("hr");t.s.insertNode(e,!1,!1);const s=X.i.closest(e.parentElement,X.i.isBlock,t.editor);s&&X.i.isEmpty(s)&&s!==t.editor&&(X.i.after(s,e),X.i.safeRemove(s));let i=X.i.next(e,X.i.isBlock,t.editor,!1);return i||(i=t.createInside.element(t.o.enter),X.i.after(e,i)),t.s.setCursorIn(i),!1}))})),f.D.prototype.iframeBaseUrl="",f.D.prototype.iframeTitle="Jodit Editor",f.D.prototype.iframeDoctype="<!DOCTYPE html>",f.D.prototype.iframeDefaultSrc="about:blank",f.D.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',f.D.prototype.iframeCSSLinks=[],j.pw.add("iframe",(t=>{const e=t.options;t.e.on("afterSetMode",(()=>{t.isEditorMode()&&t.s.focus()})).on("generateDocumentStructure.iframe",((t,s)=>{const i=t||s.iframe.contentWindow.document;if(i.open(),i.write(e.iframeDoctype+`<html dir="${e.direction}" class="jodit" lang="${(0,v.defaultLanguage)(e.language)}"><head>`+`<title>${e.iframeTitle}</title>`+(e.iframeBaseUrl?`<base href="${e.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),i.close(),e.iframeCSSLinks&&e.iframeCSSLinks.forEach((t=>{const e=i.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),i.head&&i.head.appendChild(e)})),e.iframeStyle){const t=i.createElement("style");t.innerHTML=e.iframeStyle,i.head&&i.head.appendChild(t)}})).on("createEditor",(()=>{if(!e.iframe)return;const s=t.c.element("iframe");s.style.display="block",s.src="about:blank",s.className="jodit-wysiwyg_iframe",s.setAttribute("allowtransparency","true"),s.setAttribute("tabindex",""+e.tabIndex),s.setAttribute("frameborder","0"),t.workplace.appendChild(s),t.iframe=s;const i=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,v.callPromise)(i,(()=>{if(!t.iframe)return!1;const s=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;const i=()=>{(0,v.attr)(s.body,"contenteditable",t.getMode()!==u.MODE_SOURCE&&!t.getReadOnly()||null)},r=t=>{const e=/<body.*<\/body>/im,s="{%%BODY%%}",i=e.exec(t);return i&&(t=t.replace(e,s).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(s,i[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),t};if(e.editHTMLDocumentMode){const e=t.element.tagName;if("TEXTAREA"!==e&&"INPUT"!==e)throw(0,v.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");t.e.on("beforeGetNativeEditorValue",(()=>r(t.o.iframeDoctype+s.documentElement.outerHTML))).on("beforeSetNativeEditorValue",(({value:e})=>!t.isLocked&&(/<(html|body)/i.test(e)?r(s.documentElement.outerHTML)!==r(e)&&(s.open(),s.write(t.o.iframeDoctype+r(e)),s.close(),t.editor=s.body,t.e.fire("safeHTML",t.editor),i(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):s.body.innerHTML=e,!0)),{top:!0})}if(t.editor=s.body,t.e.on("afterSetMode afterInit afterAddPlace",i),"auto"===e.height){s.documentElement&&(s.documentElement.style.overflowY="hidden");const i=t.async.throttle((()=>{if(t.editor&&t.iframe&&"auto"===e.height){const e=t.ew.getComputedStyle(t.editor);(0,v.css)(t.iframe,"height",t.editor.offsetHeight+(parseInt(e.marginTop||"0",10)+parseInt(e.marginBottom||"0",10)))}}),t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",i).on([t.iframe,t.ew,s.documentElement],"load",i).on(s,"readystatechange DOMContentLoaded",i),"function"==typeof ResizeObserver){const e=new ResizeObserver(i);e.observe(s.body),t.e.on("beforeDestruct",(()=>{e.unobserve(s.body)}))}}return s.documentElement&&t.e.on(s.documentElement,"mousedown touchend",(()=>{t.s.isFocused()||(t.s.focus(),t.editor===s.body&&t.s.setCursorIn(s.body))})).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",(e=>{t.events?.fire(t.ow,e)})),!1}))}))}));var Po=r(51382);M.J.set("image",r.n(Po)()),f.D.prototype.controls.image={popup(t,e,s,i){let r=null;return e&&!X.i.isText(e)&&X.i.isHTMLElement(e)&&(X.i.isTag(e,"img")||(0,v.$$)("img",e).length)&&(r=X.i.isTag(e,"img")?e:(0,v.$$)("img",e)[0]),t.s.save(),so(t,{filebrowser(e){t.s.restore(),e.files&&e.files.forEach((s=>t.s.insertImage(e.baseurl+s,null,t.o.imageDefaultWidth))),i()},upload:!0,async url(e,s){t.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(e)&&(e="//"+e);const o=r||t.createInside.element("img");o.setAttribute("src",e),o.setAttribute("alt",s),r||await t.s.insertImage(o,null,t.o.imageDefaultWidth),i()}},r,i)},tags:["img"],tooltip:"Insert Image"},j.pw.add("image",(t=>{t.registerButton({name:"image",group:"media"})})),f.D.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0};const No="__jodit_imageprocessor_binded",zo=No+"blob-id";class Do extends Ut.S{afterInit(t){}beforeDestruct(t){const e=t.buffer.get(zo);if(e){const s=Object.keys(e);for(const t of s)URL.revokeObjectURL(t);t.buffer.delete(zo)}}onAfterGetValueFromEditor(t,e){if(e!==u.SOURCE_CONSUMER)return this.onBeforeSetElementValue(t)}onBeforeSetElementValue(t){const{jodit:e}=this;if(!e.o.imageProcessor.replaceDataURIToBlobIdInView)return;const s=e.buffer.get(zo);if(s){const e=Object.keys(s);for(const i of e)for(;t.value.includes(i);)t.value=t.value.replace(i,s[i])}}async afterChange(t){const{jodit:e}=this;e.editor&&(0,v.$$)("img",e.editor).forEach((t=>{(0,v.dataBind)(t,No)||((0,v.dataBind)(t,No,!0),t.complete||e.e.on(t,"load",(function s(){!e.isInDestruct&&e.e?.fire("resize"),e.e.off(t,"load",s)})),t.src&&/^data:/.test(t.src)&&((t,e)=>{if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;if("undefined"==typeof ArrayBuffer||"undefined"==typeof URL)return;const s=e.src,i=(t=>{const e=atob(t.split(",")[1]),s=t.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(e.length),r=new Uint8Array(i);for(let t=0;e.length>t;t++)r[t]=e.charCodeAt(t);return new Blob([i],{type:s})})(s);e.src=URL.createObjectURL(i),t.e.fire("internalUpdate");const{buffer:r}=t,o=r.get(zo)||{};o[e.src]=s,t.buffer.set(zo,o)})(e,t),e.e.on(t,"mousedown touchstart",(()=>{e.s.select(t)})))}))}}function Ro(t){const e=t.o,s=t.i18n.bind(t),i=M.J.get.bind(M.J),r=e.filebrowser.ajax.url||e.uploader.url,o=e.image.useImageEditor;return t.c.fromHTML(`<div style="${e.image.editSrc?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Src")}</label>\n\t\t\t<div class="jodit-input_group">\n\t\t\t\t<input data-ref="imageSrc" class="jodit-input" type="text"/>\n\t\t\t\t<div\n\t\t\t\t\tclass="jodit-input_group-buttons"\n\t\t\t\t\tstyle="${r?"":"display: none"}"\n\t\t\t\t>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tdata-ref="changeImage"\n\t\t\t\t\t\t\tclass="jodit-button"\n\t\t\t\t\t\t>${i("image")}</a>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tdata-ref="editImage"\n\t\t\t\t\t\t\tclass="jodit-button"\n\t\t\t\t\t\t\tstyle="${o?"":"display: none"}"\n\t\t\t\t\t\t>${i("crop")}</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div style="${e.image.editTitle?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Title")}</label>\n\t\t\t<input data-ref="imageTitle" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${e.image.editAlt?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Alternative")}</label>\n\t\t\t<input data-ref="imageAlt" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${e.image.editLink?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Link")}</label>\n\t\t\t<input data-ref="imageLink" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${e.image.editLink?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label class="jodit_vertical_middle">\n\t\t\t\t<input data-ref="imageLinkOpenInNewTab" type="checkbox" class="jodit-checkbox"/>\n\t\t\t\t<span>${s("Open link in new tab")}</span>\n\t\t\t</label>\n\t\t</div>`)}function Ao(t){const e=t.o,s=t.i18n.bind(t),i=M.J.get.bind(M.J),r=[];return e.image.availableClasses.length>0?(r.push('<select data-ref="classes" class="jodit-input jodit-select">'),e.image.availableClasses.forEach((t=>{r.push("string"==typeof t?`<option value="${t}">${t}</option>`:`<option value="${t[0]}">${t[1]}</option>`)})),r.push("</select>")):r.push('<input data-ref="classes" type="text" class="jodit-input"/>'),t.c.fromHTML(`<div style="${e.image.editMargins?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Margins")}</label>\n\t\t\t<div class="jodit-grid jodit_vertical_middle">\n\t\t\t\t<input class="jodit_col-lg-1-5 jodit-input" data-ref="marginTop" type="text" placeholder="${s("top")}"/>\n\t\t\t\t<a style="text-align: center;" data-ref="lockMargin" class="jodit-properties__lock jodit_col-lg-1-5">${i("lock")}</a>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginRight" type="text" placeholder="${s("right")}"/>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginBottom" type="text" placeholder="${s("bottom")}"/>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginLeft" type="text" placeholder="${s("left")}"/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div\n\t\t\tstyle="${e.image.editAlign?"":"display:none"}"\n\t\t\tclass="jodit-form__group"\n\t\t>\n\t\t\t<label>${s("Align")}</label>\n\t\t\t<select data-ref="align" class="jodit-select">\n\t\t\t\t<option value="">${s("--Not Set--")}</option>\n\t\t\t\t<option value="left">${s("Left")}</option>\n\t\t\t\t<option value="center">${s("Center")}</option>\n\t\t\t\t<option value="right">${s("Right")}</option>\n\t\t\t</select>\n\t\t</div>\n\t\t<div style="${e.image.editStyle?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Styles")}</label>\n\t\t\t<input data-ref="style" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${e.image.editClass?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Classes")}</label>\n\t\t\t${r.join("")}\n\t\t</div>\n\t\t<div style="${e.image.editId?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>Id</label>\n\t\t\t<input data-ref="id" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div\n\t\t\tstyle="${e.image.editBorderRadius?"":"display:none"}"\n\t\t\tclass="jodit-form__group"\n\t\t>\n\t\t\t<label>${s("Border radius")}</label>\n\t\t\t\t<input data-ref="borderRadius" type="number" class="jodit-input"/>\n\t\t</div>`)}(0,p.gn)([(0,y.watch)(":afterGetValueFromEditor")],Do.prototype,"onAfterGetValueFromEditor",null),(0,p.gn)([(0,y.watch)(":beforeSetElementValue")],Do.prototype,"onBeforeSetElementValue",null),(0,p.gn)([(0,y.watch)([":change",":afterInit",":changePlace"]),(0,y.debounce)()],Do.prototype,"afterChange",null),j.pw.add("imageProcessor",Do),f.D.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0};const qo=t=>(t=(0,v.trim)(t),/^[0-9]+$/.test(t)?t+"px":t),Oo=t=>/^[-+]?[0-9.]+px$/.test(""+t)?parseFloat(""+t):t;class Bo extends Ut.S{constructor(){super(...arguments),this.state={image:new Image,get ratio(){return this.image.naturalWidth/this.image.naturalHeight||1},sizeIsLocked:!0,marginIsLocked:!0},this.activeTabState={__activeTab:"Image"}}onChangeMarginIsLocked(){if(!this.form)return;const{marginRight:t,marginBottom:e,marginLeft:s,lockMargin:i}=(0,v.refs)(this.form);[t,e,s].forEach((t=>{(0,v.attr)(t,"disabled",this.state.marginIsLocked||null)})),i.innerHTML=M.J.get(this.state.marginIsLocked?"lock":"unlock")}onChangeSizeIsLocked(){if(!this.form)return;const{lockSize:t,imageWidth:e}=(0,v.refs)(this.form);t.innerHTML=M.J.get(this.state.sizeIsLocked?"lock":"unlock"),t.classList.remove("jodit-properties__lock"),t.classList.remove("jodit-properties__unlock"),t.classList.add(this.state.sizeIsLocked?"jodit-properties__lock":"jodit-properties__unlock"),this.j.e.fire(e,"change")}open(){return this.makeForm(),this.activeTabState.__activeTab="Image",this.j.e.fire("hidePopup"),(0,v.markOwner)(this.j,this.dialog.container),this.state.marginIsLocked=!0,this.state.sizeIsLocked=!0,this.onChangeMarginIsLocked(),this.onChangeSizeIsLocked(),this.updateValues(),this.dialog.open().setModal(!0).setPosition(),!1}makeForm(){if(this.dialog)return;this.dialog=this.j.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]});const t=this.j,e=t.o,s=t.i18n.bind(t),i={check:U(t,"ok","Apply","primary"),remove:U(t,"bin","Delete")};t.e.on(this.dialog,"afterClose",(()=>{this.state.image.parentNode&&e.image.selectImageAfterClose&&t.s.select(this.state.image)})),i.remove.onAction((()=>{t.s.removeNode(this.state.image),this.dialog.close()}));const{dialog:r}=this;r.setHeader(s("Image properties"));const o=(t=>{const{showPreview:e,editSize:s}=t.o.image,i=M.J.get.bind(M.J);return t.c.fromHTML(`<form class="jodit-properties">\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-2-5 jodit_col-xs-5-5">\n\t\t\t\t<div class="jodit-properties_view_box">\n\t\t\t\t\t<div style="${e?"":"display:none"}" class="jodit-properties_image_view">\n\t\t\t\t\t\t<img data-ref="imageViewSrc" src="" alt=""/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="${s?"":"display:none"}" class="jodit-form__group jodit-properties_image_sizes">\n\t\t\t\t\t\t<input data-ref="imageWidth" type="text" class="jodit-input"/>\n\t\t\t\t\t\t<a data-ref="lockSize" class="jodit-properties__lock">${i("lock")}</a>\n\t\t\t\t\t\t<input data-ref="imageHeight" type="text" class="imageHeight jodit-input"/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div data-ref="tabsBox" class="jodit_col-lg-3-5 jodit_col-xs-5-5"></div>\n\t\t</div>\n\t</form>`)})(t);this.form=o,r.setContent(o);const{tabsBox:n}=(0,v.refs)(this.form);n&&n.appendChild(eo(t,[{name:"Image",content:Ro(t)},{name:"Advanced",content:Ao(t)}],this.activeTabState)),i.check.onAction(this.onApply);const{changeImage:a,editImage:l}=(0,v.refs)(this.form);t.e.on(a,"click",this.openImagePopup),e.image.useImageEditor&&t.e.on(l,"click",this.openImageEditor);const{lockSize:c,lockMargin:h,imageWidth:d,imageHeight:u}=(0,v.refs)(o);c&&t.e.on(c,"click",(()=>{this.state.sizeIsLocked=!this.state.sizeIsLocked})),t.e.on(h,"click",(t=>{this.state.marginIsLocked=!this.state.marginIsLocked,t.preventDefault()}));const p=t=>{if(!(0,v.isNumeric)(d.value)||!(0,v.isNumeric)(u.value))return;const e=parseFloat(d.value),s=parseFloat(u.value);t.target===d?u.value=""+Math.round(e/this.state.ratio):d.value=""+Math.round(s*this.state.ratio)};t.e.on([d,u],"change keydown mousedown paste",(e=>{this.state.sizeIsLocked&&t.async.setTimeout(p.bind(this,e),{timeout:t.defaultTimeout,label:"image-properties-changeSize"})})),r.setFooter([i.remove,i.check]),r.setSize(this.j.o.image.dialogWidth)}updateValues(){const t=this.j.o,{image:e}=this.state,{marginTop:s,marginRight:i,marginBottom:r,marginLeft:o,lockMargin:n,imageSrc:a,id:l,classes:c,align:h,style:d,imageTitle:u,imageAlt:p,borderRadius:f,imageLink:m,imageWidth:g,imageHeight:b,imageLinkOpenInNewTab:y,imageViewSrc:w,lockSize:_}=(0,v.refs)(this.form);(()=>{n.checked=this.state.marginIsLocked,_.checked=this.state.sizeIsLocked})(),a.value=(0,v.attr)(e,"src")||"",w&&(0,v.attr)(w,"src",(0,v.attr)(e,"src")||""),(()=>{u.value=(0,v.attr)(e,"title")||"",p.value=(0,v.attr)(e,"alt")||"";const t=X.i.closest(e,"a",this.j.editor);t?(m.value=(0,v.attr)(t,"href")||"",y.checked="_blank"===(0,v.attr)(t,"target")):(m.value="",y.checked=!1)})(),(()=>{const t=(0,v.attr)(e,"width")||(0,v.css)(e,"width",!0)||!1,s=(0,v.attr)(e,"height")||(0,v.css)(e,"height",!0)||!1;g.value=!1!==t?""+Oo(t):""+e.offsetWidth,b.value=!1!==s?""+Oo(s):""+e.offsetHeight,this.state.sizeIsLocked=(()=>!(!(0,v.isNumeric)(g.value)||!(0,v.isNumeric)(b.value))&&1>Math.abs(parseFloat(g.value)-parseFloat(b.value)*this.state.ratio))()})(),(()=>{if(!t.image.editMargins)return;let n=!0,a=!1;[s,i,r,o].forEach((t=>{const i=(0,v.attr)(t,"data-ref")||"";let r=e.style.getPropertyValue((0,v.kebabCase)(i));if(!r)return a=!0,void(t.value="");/^[0-9]+(px)?$/.test(r)&&(r=parseInt(r,10)),t.value=""+r||"",(a&&t.value||n&&"marginTop"!==i&&t.value!==s.value)&&(n=!1)})),this.state.marginIsLocked=n})(),c.value=((0,v.attr)(e,"class")||"").replace(/jodit_focused_image[\s]*/,""),l.value=(0,v.attr)(e,"id")||"",f.value=""+(parseInt(e.style.borderRadius||"0",10)||"0"),e.style.cssFloat&&-1!==["left","right"].indexOf(e.style.cssFloat.toLowerCase())?h.value=(0,v.css)(e,"float"):"block"===(0,v.css)(e,"display")&&"auto"===e.style.marginLeft&&"auto"===e.style.marginRight&&(h.value="center"),d.value=(0,v.attr)(e,"style")||""}onApply(){const{style:t,imageSrc:e,borderRadius:s,imageTitle:i,imageAlt:r,imageLink:o,imageWidth:n,imageHeight:a,marginTop:l,marginRight:c,marginBottom:h,marginLeft:d,imageLinkOpenInNewTab:u,align:p,classes:f,id:m}=(0,v.refs)(this.form),g=this.j.o,{image:b}=this.state;if(g.image.editStyle&&(0,v.attr)(b,"style",t.value||null),!e.value)return X.i.safeRemove(b),void this.dialog.close();(0,v.attr)(b,"src",e.value),b.style.borderRadius="0"!==s.value&&/^[0-9]+$/.test(s.value)?s.value+"px":"",(0,v.attr)(b,"title",i.value||null),(0,v.attr)(b,"alt",r.value||null);let y=X.i.closest(b,"a",this.j.editor);if(o.value?(y||(y=X.i.wrap(b,"a",this.j.createInside)),(0,v.attr)(y,"href",o.value),(0,v.attr)(y,"target",u.checked?"_blank":null)):y&&y.parentNode&&y.parentNode.replaceChild(b,y),n.value!==""+b.offsetWidth||a.value!==""+b.offsetHeight){const t=(0,v.trim)(n.value)?qo(n.value):null,e=(0,v.trim)(a.value)?qo(a.value):null;(0,v.css)(b,{width:t,height:e}),(0,v.attr)(b,"width",(0,v.attr)(b,"width")?t:null),(0,v.attr)(b,"height",(0,v.attr)(b,"height")?e:null)}const w=[l,c,h,d];g.image.editMargins&&(this.state.marginIsLocked?(0,v.css)(b,"margin",qo(l.value)):w.forEach((t=>{const e=(0,v.attr)(t,"data-ref")||"";(0,v.css)(b,e,qo(t.value))}))),g.image.editClass&&(0,v.attr)(b,"class",f.value||null),g.image.editId&&(0,v.attr)(b,"id",m.value||null),g.image.editAlign&&(0,v.hAlignElement)(b,p.value),this.j.synchronizeValues(),this.dialog.close()}openImageEditor(){const t=(0,v.attr)(this.state.image,"src")||"",e=this.j.c.element("a"),s=()=>{e.host===location.host||this.j.confirm("You can only edit your own images. Download this image on the host?",(t=>{t&&this.j.uploader&&this.j.uploader.uploadRemoteImage(""+e.href,(t=>{this.j.alert("The image has been successfully uploaded to the host!",(()=>{(0,v.isString)(t.newfilename)&&((0,v.attr)(this.state.image,"src",t.baseurl+t.newfilename),this.updateValues())}))}),(t=>{this.j.alert("There was an error loading %s",t.message)}))}))};e.href=t,this.j.filebrowser.dataProvider.getPathByUrl(""+e.href).then((s=>{ve.call(this.j.filebrowser,e.href,s.name,s.path,s.source,(()=>{const e=(new Date).getTime();(0,v.attr)(this.state.image,"src",t+(-1!==t.indexOf("?")?"":"?")+"&_tmp="+e),this.updateValues()}),(t=>{this.j.alert(t.message)}))})).catch((t=>{this.j.alert(t.message,s)}))}openImagePopup(t){const e=new I(this.j),{changeImage:s}=(0,v.refs)(this.form);e.setZIndex(this.dialog.getZIndex()+1),e.setContent(so(this.j,{upload:t=>{t.files&&t.files.length&&(0,v.attr)(this.state.image,"src",t.baseurl+t.files[0]),this.updateValues(),e.close()},filebrowser:t=>{t&&(0,v.isArray)(t.files)&&t.files.length&&((0,v.attr)(this.state.image,"src",t.files[0]),e.close(),this.updateValues())}},this.state.image,e.close)).open((()=>(0,v.position)(s))),t.stopPropagation()}afterInit(t){const e=this;t.e.on("afterConstructor changePlace",(()=>{t.e.off(t.editor,".imageproperties").on(t.editor,"dblclick.imageproperties",(s=>{const i=s.target;if(X.i.isTag(i,"img"))if(t.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",i))return;e.state.image=i,t.o.readonly||(s.stopImmediatePropagation(),s.preventDefault(),e.open())}else s.stopImmediatePropagation(),t.s.select(i)}))})).on("openImageProperties.imageproperties",(t=>{this.state.image=t,this.open()}))}beforeDestruct(t){this.dialog&&this.dialog.destruct(),t.e.off(t.editor,".imageproperties").off(".imageproperties")}}(0,p.gn)([(0,y.watch)("state.marginIsLocked")],Bo.prototype,"onChangeMarginIsLocked",null),(0,p.gn)([(0,y.watch)("state.sizeIsLocked")],Bo.prototype,"onChangeSizeIsLocked",null),(0,p.gn)([y.autobind],Bo.prototype,"onApply",null),(0,p.gn)([y.autobind],Bo.prototype,"openImageEditor",null),(0,p.gn)([y.autobind],Bo.prototype,"openImagePopup",null),j.pw.add("imageProperties",Bo);const Ho=(t,e)=>`${S.i.isCell(e)?"padding":"margin"}${"rtl"===t?"Right":"Left"}`;var Fo=r(30863),$o=r.n(Fo),Wo=r(89721),Vo=r.n(Wo);M.J.set("indent",$o()).set("outdent",Vo()),f.D.prototype.controls.indent={tooltip:"Increase Indent"},f.D.prototype.controls.outdent={isDisabled(t){const e=t.s.current();if(e){const s=X.i.closest(e,X.i.isBlock,t.editor);if(s){const e=Ho(t.o.direction,s);return!s.style[e]||0>=parseInt(s.style[e],10)}}return!0},tooltip:"Decrease Indent"},f.D.prototype.indentMargin=10,j.pw.add("indent",(t=>{t.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});const e=e=>{const s=[];return t.s.eachSelection((i=>{t.s.save();let r=!!i&&X.i.up(i,X.i.isBlock,t.editor);const{enter:o}=t.o;if(!r&&i&&(r=X.i.wrapInline(i,o!==u.BR?o:u.PARAGRAPH,t)),!r)return t.s.restore(),!1;const n=s.includes(r);if(r&&!n){const i=Ho(t.o.direction,r);s.push(r);let o=r.style[i]?parseInt(r.style[i],10):0;o+=t.o.indentMargin*("outdent"===e?-1:1),r.style[i]=o>0?o+"px":"",(0,v.attr)(r,"style")||(0,v.attr)(r,"style",null)}t.s.restore()})),t.synchronizeValues(),!1};t.registerCommand("indent",{exec:e,hotkeys:["ctrl+]","cmd+]"]}),t.registerCommand("outdent",{exec:e,hotkeys:["ctrl+[","cmd+["]})}));var Uo=r(10147),Yo=r.n(Uo),Go=r(14165),Xo=r.n(Go),Ko=r(42516),Jo=r.n(Ko),Zo=r(68315),Qo=r.n(Zo),tn=r(80554),en=r.n(tn),sn=r(10328),rn=r.n(sn),on=r(69187),nn=r.n(on),an=[{name:"eye",tooltip:"Open link",exec(t,e){const s=(0,yt.L)(e,"href");e&&s&&t.ow.open(s)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"],ln=r(60303);const cn={name:"left",childTemplate(t,e,s){return s},list:["Left","Right","Center","Normal"],exec(t,e,{control:s}){if(!X.i.isTag(e,["img","jodit","jodit-media"]))return;const i=s.args&&(0,T.H)(s.args[0])?s.args[0].toLowerCase():"";if(!i)return!1;(0,ln.zC)(e,i),X.i.isTag(e,["jodit","jodit-media"])&&e.firstElementChild&&(0,ln.zC)(e.firstElementChild,i),t.synchronizeValues(),t.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"};var hn=[{name:"delete",icon:"bin",tooltip:"Delete",exec(t,e){e&&t.s.removeNode(e)}},{name:"pencil",exec(t,e){"img"===e.tagName.toLowerCase()&&t.e.fire("openImageProperties",e)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec(t,e,{control:s}){if(!X.i.isTag(e,"img"))return;const i=s.args&&(0,T.H)(s.args[0])?s.args[0].toLowerCase():"";if(!i)return!1;(0,ct.i)(e,"vertical-align","normal"===i?"":i),t.e.fire("recalcPositionPopup")}},cn];const dn=t=>t.args&&(0,Z.HD)(t.args[0])?t.args[0].toLowerCase():"";var un=[{name:"brush",popup(t,e,s,i){if(!(0,Z.Zu)(t))return;const r=t.getInstance("Table",t.o).getAllSelectedCells();if(!r.length)return!1;const o=e=>to(t,(s=>{r.forEach((t=>{(0,ct.i)(t,e,s)})),t.lock(),t.synchronizeValues(),i(),t.unlock()}),(0,ct.i)(r[0],e));return eo(t,[{name:"Background",content:o("background-color")},{name:"Text",content:o("color")},{name:"Border",content:o("border-color")}])},tooltip:"Background"},{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate(t,e,s){return s},exec(t,e,{control:s}){const i=dn(s);t.getInstance("Table",t.o).getAllSelectedCells().forEach((t=>{(0,ct.i)(t,"vertical-align","normal"===i?"":i)}))},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,{control:s}){if(!(0,Z.Zu)(t))return;const i=dn(s);t.execCommand(i,!1,e)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec(t,e,{control:s}){if(!(0,Z.Zu)(t))return;const i=dn(s);t.execCommand(i,!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,{control:s}){if(!(0,Z.Zu)(t))return;const i=dn(s);t.execCommand(i,!1,e),t.e.fire("hidePopup")},tooltip:"Delete"}],pn=[{name:"bin",tooltip:"Delete",exec(t,e){e&&t.s.removeNode(e)}},cn];f.D.prototype.toolbarInline=!0,f.D.prototype.toolbarInlineForSelection=!1,f.D.prototype.toolbarInlineDisableFor=[],f.D.prototype.toolbarInlineDisabledButtons=["source"],M.J.set("addcolumn",Yo()).set("addrow",Xo()).set("merge",Jo()).set("th",Qo()).set("splitg",en()).set("splitv",rn()).set("th-list",nn()),f.D.prototype.popup={a:an,img:hn,cells:un,toolbar:["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"],jodit:pn,iframe:pn,"jodit-media":pn,selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]};class fn extends Ut.S{constructor(){super(...arguments),this.requires=["select"],this.type=null,this.snapRange=null,this.elmsList=(0,v.keys)(this.j.o.popup,!1).filter((t=>!this.isExcludedTarget(t)))}get popup(){return new I(this.jodit,!1)}get toolbar(){return qt(this.jodit,this.popup)}onClick(t){const e=this.elmsList,s=X.i.isTag(t,"img")?t:X.i.closest(t,e,this.j.editor);if(s&&this.canShowPopupForType(s.nodeName.toLowerCase()))return this.showPopup((()=>(0,v.position)(s,this.j)),s.nodeName.toLowerCase(),s),!1}showPopup(t,e,s){if(e=e.toLowerCase(),!this.canShowPopupForType(e))return!1;if(this.type!==e||s!==this.previousTarget){this.previousTarget=s;const t=this.j.o.popup[e];let i;i=(0,v.isFunction)(t)?t(this.j,s,this.popup.close):t,(0,v.isArray)(i)&&(this.toolbar.build(i,s),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,i=this.toolbar.container),this.popup.setContent(i),this.type=e}return this.popup.open(t),!0}hidePopup(t){(0,v.isString)(t)&&t!==this.type||this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(t){const e=this.j.o.popup[t.toLowerCase()];return!(this.j.o.readonly||!this.j.o.toolbarInline||!e||this.isExcludedTarget(t))}isExcludedTarget(t){return(0,v.splitArray)(this.j.o.toolbarInlineDisableFor).map((t=>t.toLowerCase())).includes(t.toLowerCase())}afterInit(t){this.j.e.on("getDiffButtons.mobile",(e=>{if(this.toolbar===e){const e=this.toolbar.getButtonsNames();return(0,v.toArray)(t.registeredButtons).filter((t=>!this.j.o.toolbarInlineDisabledButtons.includes(t.name))).filter((t=>{const s=(0,v.isString)(t)?t:t.name;return s&&"|"!==s&&"\n"!==s&&!e.includes(s)}))}})).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",((t,e,s)=>{this.showPopup(e,s||((0,v.isString)(t)?t:t.nodeName),(0,v.isString)(t)?void 0:t)})).on("mousedown keydown",this.onSelectionStart).on("change",(()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)})).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.addListenersForElements()}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(t){if(t&&t.target&&E.u.closestElement(t.target,I))return;const{snapRange:e}=this,{range:s}=this.j.s;e&&!s.collapsed&&s.startContainer===e.startContainer&&s.startOffset===e.startOffset&&s.endContainer===e.endContainer&&s.endOffset===e.endOffset||this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;const t="selection",e=this.j.s.sel,s=this.j.s.range;e?.isCollapsed||this.isSelectedTarget(s)||this.tableModule.getAllSelectedCells().length?this.type===t&&this.popup.isOpened&&this.hidePopup():this.j.s.current()&&this.showPopup((()=>s.getBoundingClientRect()),t)}isSelectedTarget(t){const e=t.startContainer;return X.i.isElement(e)&&e===t.endContainer&&X.i.isTag(e.childNodes[t.startOffset],(0,v.keys)(this.j.o.popup,!1))&&t.startOffset===t.endOffset-1}get tableModule(){return this.j.getInstance("Table",this.j.o)}beforeDestruct(t){t.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}_eventsList(){const t=this.elmsList;return t.map((t=>(0,v.camelCase)("click_"+t))).concat(t.map((t=>(0,v.camelCase)("touchstart_"+t)))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(t){this.showPopup((()=>{if(t)return t;const{range:e}=this.j.s;return e.getBoundingClientRect()}),"toolbar")}}(0,p.gn)([y.cache],fn.prototype,"popup",null),(0,p.gn)([y.cache],fn.prototype,"toolbar",null),(0,p.gn)([y.autobind],fn.prototype,"onClick",null),(0,p.gn)([(0,y.wait)((t=>!t.j.isLocked))],fn.prototype,"showPopup",null),(0,p.gn)([(0,y.watch)(":clickEditor"),y.autobind],fn.prototype,"hidePopup",null),(0,p.gn)([(0,y.watch)(":outsideClick")],fn.prototype,"onOutsideClick",null),(0,p.gn)([y.autobind],fn.prototype,"onSelectionStart",null),(0,p.gn)([y.autobind],fn.prototype,"onSelectionEnd",null),(0,p.gn)([(0,y.debounce)((t=>t.defaultTimeout))],fn.prototype,"onSelectionChange",null),(0,p.gn)([y.autobind],fn.prototype,"showInlineToolbar",null),j.pw.add("inlinePopup",fn);var mn=r(94484);M.J.set("justify",r.n(mn)()),f.D.prototype.controls.align={name:"left",tooltip:"Align",update(t,e){const s=t.control,i=e.s.current();if(i){const r=S.i.closest(i,S.i.isBlock,e.editor)||e.editor;let o=""+(0,ct.i)(r,"text-align");s.defaultValue&&-1!==s.defaultValue.indexOf(o)&&(o="left"),s.data&&s.data.currentValue!==o&&s.list&&-1!==s.list.indexOf(o)&&(e.o.textIcons?t.state.text=o:t.state.icon.name=o,s.data.currentValue=o)}},isActive(t,e){const s=t.s.current();if(s&&e.defaultValue){const i=S.i.closest(s,S.i.isBlock,t.editor)||t.editor;return-1===e.defaultValue.indexOf(""+(0,ct.i)(i,"text-align"))}return!1},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},f.D.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},f.D.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},f.D.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},f.D.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},j.pw.add("justify",(t=>{t.registerButton({name:"align",group:"indent"});const e=e=>(t.s.focus(),t.s.eachSelection((s=>{if(!s)return;let i=S.i.up(s,S.i.isBlock,t.editor);i||(i=S.i.wrapInline(s,t.o.enterBlock,t)),(0,ln.E3)(e,i)})),!1);t.registerCommand("justifyfull",e),t.registerCommand("justifyright",e),t.registerCommand("justifyleft",e),t.registerCommand("justifycenter",e)}));class gn extends Ut.S{afterInit(t){}beforeDestruct(t){}onKeyDownArrow(t){if(t.key!==u.KEY_RIGHT||!this.j.selection.isCollapsed())return;const{endContainer:e,endOffset:s}=this.j.selection.range;if(S.i.isText(e)&&e.nodeValue?.length===s){const{parentNode:t}=e;S.i.isInlineBlock(t)&&!S.i.findNotEmptyNeighbor(t,!1,this.j.editor)&&S.i.after(t,this.j.createInside.text(u.NBSP_SPACE))}}}(0,p.gn)([(0,y.watch)(":keydown")],gn.prototype,"onKeyDownArrow",null),j.pw.add("keyArrowOutside",gn),f.D.prototype.limitWords=!1,f.D.prototype.limitChars=!1,f.D.prototype.limitHTML=!1;class vn extends Ut.S{afterInit(t){const{limitWords:e,limitChars:s}=t.o;if(t&&(e||s)){let e=null;t.e.off(".limit").on("beforePaste.limit",(()=>{e=t.history.snapshot.make()})).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",(()=>{if(this.__shouldDenyInput(!0)&&e)return t.history.snapshot.restore(e),t.e.fire("denyPaste.limit"),!1}))}}shouldPreventInsertHTML(t){return(!t||!(u.COMMAND_KEYS.includes(t.key)||t.ctrlKey||t.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(t){const{jodit:e}=this,{limitWords:s,limitChars:i}=e.o,r=this.__splitWords(e.o.limitHTML?e.value:e.text);if(s&&bn(r.length,s,t))return e.e.fire("denyWords.limit limit.limit"),!0;const o=!(!i||!bn(r.join("").length,i,t));return o&&e.e.fire("denyChars.limit limit.limit"),o}checkPreventKeyPressOrPaste(t){if(this.shouldPreventInsertHTML(t))return!1}checkPreventChanging(t,e){const{jodit:s}=this;this.__shouldDenyInput(!0)&&(s.value=e)}__splitWords(t){return t.replace((0,u.INVISIBLE_SPACE_REG_EXP)(),"").split((0,u.SPACE_REG_EXP)()).filter((t=>t.length))}beforeDestruct(t){t.e.off(".limit")}}function bn(t,e,s){return s?t>e:t>=e}(0,p.gn)([y.autobind],vn.prototype,"checkPreventKeyPressOrPaste",null),(0,p.gn)([y.autobind],vn.prototype,"checkPreventChanging",null),j.pw.add("limit",vn);var yn=r(12722),wn=r.n(yn);f.D.prototype.defaultLineHeight=null,M.J.set("line-height",wn()),f.D.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec(t,e,{control:s}){return(0,v.memorizeExec)(t,e,{control:s},(t=>t))}};class _n extends Ut.S{constructor(t){super(t),this.buttons=[{name:"lineHeight",group:"font"}],(0,j.xl)(a)}afterInit(t){(0,v.css)(t.editor,{lineHeight:t.o.defaultLineHeight}),t.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(t,e,s){const{s:i,createInside:r,editor:o,o:n}=this.j;let a;i.isFocused()||i.focus(),i.save();const l=t=>{let e=S.i.closest(t,S.i.isBlock,o);e||(e=S.i.wrap(t,n.enter,r));const i=(0,v.css)(e,"lineHeight");void 0===a&&(a=""+i!=""+s),(0,v.css)(e,"lineHeight",a?s:null)};try{if(i.isCollapsed()){const t=r.fake();i.insertNode(t,!1,!1),l(t),S.i.safeRemove(t)}else i.eachSelection(l)}finally{i.restore()}}beforeDestruct(t){(0,v.css)(t.editor,{lineHeight:null})}}(0,p.gn)([y.autobind],_n.prototype,"applyLineHeight",null),j.pw.add("lineHeight",_n);var Cn=r(10530),Sn=r.n(Cn),En=r(52401),xn=r.n(En);f.D.prototype.link={formTemplate(t){const{openInNewTabCheckbox:e,noFollowCheckbox:s,modeClassName:i,selectSizeClassName:r,selectMultipleClassName:o,selectOptionsClassName:n}=t.o.link;return new _t(t,[new It(t,[new vt(t,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new It(t,[new vt(t,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),i?new It(t,["input"===i?new vt(t,{name:"className",ref:"className_input",label:"Class name"}):"select"===i?new wt(t,{name:"className",ref:"className_select",label:"Class name",size:r,multiple:o,options:n}):null]):null,e?new xt(t,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,s?new xt(t,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new It(t,[new V(t,{name:"unlink",variant:"default",text:"Unlink"}),new V(t,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])},followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},M.J.set("link",Sn()).set("unlink",xn()),f.D.prototype.controls.unlink={exec(t,e){const s=S.i.closest(e,"a",t.editor);s&&S.i.unwrap(s),t.synchronizeValues(),t.e.fire("hidePopup")},tooltip:"Unlink"},f.D.prototype.controls.link={isActive(t){const e=t.s.current();return!(!e||!S.i.closest(e,"a",t.editor))},popup(t,e,s,i){return t.e.fire("generateLinkForm.link",e,i)},tags:["a"],tooltip:"Insert link"};class jn extends Ut.S{constructor(){super(...arguments),this.buttons=[{name:"link",group:"insert"}]}afterInit(t){t.o.link.followOnDblClick&&t.e.on("dblclick.link",this.onDblClickOnLink),t.o.link.processPastedLink&&t.e.on("processPaste.link",this.onProcessPasteLink),t.e.on("generateLinkForm.link",this.__generateForm),t.registerCommand("openLinkDialog",{exec:()=>{const e=t.dlg({resizable:!1}),s=this.__generateForm(t.s.current(),(()=>{e.close()}));s.container.classList.add("jodit-dialog_alert"),e.setContent(s),e.open(),t.async.requestIdleCallback((()=>{const{url_input:t}=(0,v.refs)(s.container);t?.focus()}))},hotkeys:t.o.link.hotkeys})}onDblClickOnLink(t){if(!X.i.isTag(t.target,"a"))return;const e=(0,v.attr)(t.target,"href");e&&(location.href=e,t.preventDefault())}onProcessPasteLink(t,e){const{jodit:s}=this;if((0,v.isURL)(e)&&s.o.link.processPastedLink){if(s.e.stopPropagation("processPaste"),s.o.link.processVideoLink){const t=(0,v.convertMediaUrlToVideoEmbed)(e);if(t!==e)return s.createInside.fromHTML(t)}if(s.s.isCollapsed()){const t=s.createInside.element("a");return t.setAttribute("href",e),t.textContent=e,s.e.fire("applyLink",s,t,null),t}return s.s.applyStyle(void 0,{element:"a",attributes:{href:e}}),!0}}__generateForm(t,e){const{jodit:s}=this,i=s.i18n.bind(s),{openInNewTabCheckbox:r,noFollowCheckbox:o,formTemplate:n,formClassName:a,modeClassName:l}=s.o.link,c=n(s),h=(0,v.isString)(c)?s.c.fromHTML(c,{target_checkbox_box:r,nofollow_checkbox_box:o}):c,d=X.i.isElement(h)?h:h.container,u=(0,v.refs)(d),{insert:p,unlink:f,content_input_box:m}=u,{target_checkbox:g,nofollow_checkbox:b,url_input:y}=u,w=X.i.isImage(t);let{content_input:_}=u;const{className_input:C}=u,{className_select:S}=u;let E;_||(_=s.c.element("input",{type:"hidden",ref:"content_input"})),a&&d.classList.add(a),w&&X.i.hide(m);const x=()=>E?E.innerText:(0,v.stripTags)(s.s.range.cloneContents(),s.ed);if(E=!(!t||!X.i.closest(t,"a",s.editor))&&X.i.closest(t,"a",s.editor),!w&&t&&(_.value=x()),E){if(y.value=(0,v.attr)(E,"href")||"",l)switch(l){case"input":C&&(C.value=(0,v.attr)(E,"class")||"");break;case"select":if(S){for(let t=0;S.selectedOptions.length>t;t++){const e=S.options.item(t);e&&(e.selected=!1)}((0,v.attr)(E,"class")||"").split(" ").forEach((t=>{if(t)for(let e=0;S.options.length>e;e++){const s=S.options.item(e);s?.value&&s.value===t&&(s.selected=!0)}}))}}r&&g&&(g.checked="_blank"===(0,v.attr)(E,"target")),o&&b&&(b.checked="nofollow"===(0,v.attr)(E,"rel")),p.textContent=i("Update")}else X.i.hide(f);s.editor.normalize();const j=s.history.snapshot.make();f&&s.e.on(f,"click",(t=>{s.s.restore(),s.history.snapshot.restore(j),E&&X.i.unwrap(E),s.synchronizeValues(),e(),t.preventDefault()}));const I=()=>{if(!y.value.trim().length)return y.focus(),y.classList.add("jodit_error"),!1;let t;s.s.restore(),s.s.removeMarkers(),s.editor.normalize(),s.history.snapshot.restore(j);const i=x()!==_.value.trim(),n=s.createInside;if(E)t=[E];else{if(s.s.isCollapsed()){const e=n.element("a");s.s.insertNode(e,!1,!1),t=[e]}else{const e=s.s.current();t=X.i.isTag(e,["img"])?[X.i.wrap(e,"a",n)]:s.s.wrapInTag("a")}t.forEach((t=>s.s.select(t)))}return t.forEach((t=>{if((0,v.attr)(t,"href",y.value),l&&(C??S))if("input"===l)""===C.value&&t.hasAttribute("class")&&(0,v.attr)(t,"class",null),""!==C.value&&(0,v.attr)(t,"class",C.value);else if("select"===l){t.hasAttribute("class")&&(0,v.attr)(t,"class",null);for(let e=0;S.selectedOptions.length>e;e++){const s=S.selectedOptions.item(e)?.value;s&&t.classList.add(s)}}if(!w){let e=t.textContent;_.value.trim().length?i&&(e=_.value):e=y.value,e!==t.textContent&&(t.textContent=e)}r&&g&&(0,v.attr)(t,"target",g.checked?"_blank":null),o&&b&&(0,v.attr)(t,"rel",b.checked?"nofollow":null),s.e.fire("applyLink",s,t,h)})),s.synchronizeValues(),e(),!1};return X.i.isElement(h)?s.e.on(h,"submit",(t=>(t.preventDefault(),t.stopImmediatePropagation(),I(),!1))):h.onSubmit(I),h}beforeDestruct(t){t.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.onDblClickOnLink).off("processPaste.link",this.onProcessPasteLink)}}(0,p.gn)([y.autobind],jn.prototype,"onDblClickOnLink",null),(0,p.gn)([y.autobind],jn.prototype,"onProcessPasteLink",null),(0,p.gn)([y.autobind],jn.prototype,"__generateForm",null),j.pw.add("link",jn),f.D.prototype.mediaFakeTag="jodit-media",f.D.prototype.mediaInFakeBlock=!0,f.D.prototype.mediaBlocks=["video","audio"],j.pw.add("media",(t=>{const e="jodit_fake_wrapper",{mediaFakeTag:s,mediaBlocks:i,mediaInFakeBlock:r}=t.options;r&&t.e.on("afterGetValueFromEditor",(t=>{const i=RegExp(`<${s}[^>]+data-${e}[^>]+>([^]+?)</${s}>`,"ig");i.test(t.value)&&(t.value=t.value.replace(i,"$1"))})).on("change afterInit afterSetMode changePlace",t.async.debounce((()=>{t.isDestructed||t.getMode()===u.MODE_SOURCE||(0,k.$$)(i.join(","),t.editor).forEach((i=>{(0,k.dataBind)(i,e)||((0,k.dataBind)(i,e,!0),(i=>{if(i.parentNode&&(0,k.attr)(i.parentNode,"data-jodit_iframe_wrapper"))i=i.parentNode;else{const r=t.createInside.element(s,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,["data-"+e]:1});(0,k.attr)(r,"style",(0,k.attr)(i,"style")),r.style.display="inline-block"===i.style.display?"inline-block":"block",r.style.width=i.offsetWidth+"px",r.style.height=i.offsetHeight+"px",i.parentNode&&i.parentNode.insertBefore(r,i),r.appendChild(i),i=r}t.e.off(i,"mousedown.select touchstart.select").on(i,"mousedown.select touchstart.select",(()=>{t.s.setCursorAfter(i)}))})(i))}))}),t.defaultTimeout))})),f.D.prototype.mobileTapTimeout=300,f.D.prototype.toolbarAdaptive=!0,f.D.prototype.controls.dots={mode:u.MODE_SOURCE+u.MODE_WYSIWYG,popup(t,e,s,i,r){let o=s.data;return void 0===o&&(o={toolbar:qt(t),rebuild(){if(r){const e=t.e.fire("getDiffButtons.mobile",r.closest(zt));e&&o&&(o.toolbar.build((0,v.splitArray)(e)),o.toolbar.container.style.width=3*((t.toolbar?.firstButton?.container.offsetWidth||36)+4)+"px")}}},s.data=o),o.rebuild(),o.toolbar},tooltip:"Show all"},j.pw.add("mobile",(t=>{let e=0,s=(0,v.splitArray)(t.o.buttons);t.o.mobileTapTimeout&&t.e.on("touchend",(s=>{if(s.changedTouches&&s.changedTouches.length){const i=(new Date).getTime(),r=i-e;r>t.o.mobileTapTimeout&&(e=i,1.5*t.o.mobileTapTimeout>r&&t.s.insertCursorAtPoint(s.clientX,s.clientY))}})),t.e.on("getDiffButtons.mobile",(e=>{if(e===t.toolbar){const e=H((0,v.splitArray)(t.o.buttons),t),i=H(s,t);return(0,v.toArray)(e).reduce(((t,e)=>(i.has(e)||t.push(e),t)),[])}})),t.o.toolbarAdaptive&&t.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",(()=>{if(!t.o.toolbar)return;const e=(t.container.parentElement??t.container).offsetWidth,i=(0,v.splitArray)(t.isFullSize||e>=t.o.sizeLG?t.o.buttons:t.o.sizeMD>e?t.o.sizeSM>e?t.o.buttonsXS:t.o.buttonsSM:t.o.buttonsMD);""+i!=""+s&&(s=i,t.e.fire("closeAllPopups"),t.toolbar?.setRemoveButtons(t.o.removeButtons).build(s.concat(t.o.extraButtons)))})).on(t.ow,"load resize",(()=>t.e.fire("recalcAdaptive")))}));var In=r(44931),kn=r.n(In),Tn=r(29845),Ln=r.n(Tn);const Mn=(t,e,{control:s})=>{const i="button"+s.command,r=(s.args&&s.args[0])??(0,qe.q)(t,i);(0,qe.q)(t,i,r),t.execCommand(s.command,!1,"default"===r?null:r)};M.J.set("ol",kn()).set("ul",Ln()),f.D.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:Mn},f.D.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:Mn};class Pn extends Ut.S{constructor(){super(...arguments),this.buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}]}afterInit(t){t.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(t,e,s){return this.jodit.s.applyStyle({listStyleType:s??null},{element:"insertunorderedlist"===t?"ul":"ol"}),this.jodit.synchronizeValues(),!1}beforeDestruct(t){}}function Nn(t,e,s){if(e.isInDestruct)return;(t=>!(!t||"drop"!==t.type))(t)&&e.s.insertCursorAtPoint(t.clientX,t.clientY);const i=e.e.fire("beforePasteInsert",s);!(0,Z.nj)(i)&&((0,Z.HD)(i)||(0,Z.hj)(i)||S.i.isNode(i))&&(s=i),(0,Z.HD)(s)&&(s=(t=>{const e=(t=t.replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i);-1!==e&&(t=t.substring(e+20));const s=t.search(/<!--EndFragment-->/i);return-1!==s&&(t=t.substring(0,s)),t})(s)),e.s.insertHTML(s)}function zn(t,e,s,i,r){if(!1===t.e.fire("beforeOpenPasteDialog",e,s,i,r))return;const o=t.confirm(`<div style="word-break: normal; white-space: normal">${t.i18n(e)}</div>`,t.i18n(s)),n=r.map((({text:e,value:s})=>U(t,{text:e,name:e.toLowerCase(),tabIndex:0}).onAction((()=>{o.close(),i(s)}))));o.e.one(o,"afterClose",(()=>{t.s.isFocused()||t.s.focus()}));const a=U(t,{text:"Cancel",tabIndex:0}).onAction((()=>{o.close()}));return o.setFooter([...n,a]),n[0].focus(),n[0].state.variant="primary",t.e.fire("afterOpenPasteDialog",o,e,s,i,r),o}(0,p.gn)([y.autobind],Pn.prototype,"onCommand",null),j.pw.add("orderedList",Pn),f.D.prototype.askBeforePasteHTML=!0,f.D.prototype.processPasteHTML=!0,f.D.prototype.pasteHTMLActionList=[{value:u.INSERT_AS_HTML,text:"Keep"},{value:u.INSERT_AS_TEXT,text:"Insert as Text"},{value:u.INSERT_ONLY_TEXT,text:"Insert only Text"}],f.D.prototype.memorizeChoiceWhenPasteFragment=!1,f.D.prototype.nl2brInPlainText=!0;const Dn="pasteStorage";f.D.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(t,e,{control:s}){if(s.name===Dn)return void t.execCommand("showPasteStorage");t.s.focus();let i="",r=!0;if(navigator.clipboard){try{const t=await navigator.clipboard.read();if(t&&t.length){const e=await t[0].getType(u.TEXT_PLAIN);i=await new Response(e).text()}r=!1}catch(t){}if(r)try{i=await navigator.clipboard.readText(),r=!1}catch(t){}}r&&(i=t.buffer.get(u.CLIPBOARD_ID)||"",r=0===i.length);const o=t.value;r?(t.ed.execCommand("paste"),r=o===t.value,!r&&t.e.fire("afterPaste")):i.length?(Nn(null,t,i),t.e.fire("afterPaste")):r&&t.alert("Your browser doesn't support direct access to the clipboard.",(()=>{t.s.focus()}))},list:{[Dn]:"Paste Storage"},isChildDisabled:t=>2>t.e.fire("pasteStorageList")};class Rn extends kr.S{constructor(){super(...arguments),this.pasteStack=new v.LimitedStack(20),this._isDialogOpened=!1}afterInit(t){t.e.on("paste.paste",this.onPaste).on("pasteStack.paste",(t=>this.pasteStack.push(t))),t.o.nl2brInPlainText&&this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}beforeDestruct(t){t.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}onPaste(t){try{if(!1===this.customPasteProcess(t)||!1===this.j.e.fire("beforePaste",t))return t.preventDefault(),!1;this.defaultPasteProcess(t)}finally{this.j.e.fire("afterPaste",t)}}customPasteProcess(t){if(!this.j.o.processPasteHTML)return;const e=(0,v.getDataTransfer)(t),s={html:e?.getData(u.TEXT_HTML),plain:e?.getData(u.TEXT_PLAIN),rtf:e?.getData(u.TEXT_RTF)};let i;for(i in s){const e=s[i];if((0,v.isHTML)(e)&&(this.j.e.fire("processHTML",t,e,s)||this.processHTML(t,e)))return!1}}defaultPasteProcess(t){const e=(0,v.getDataTransfer)(t);let s=e?.getData(u.TEXT_HTML)||e?.getData(u.TEXT_PLAIN);if(e&&s&&""!==(0,v.trim)(s)){const i=this.j.e.fire("processPaste",t,s,(t=>{const e=t.types;let s="";if((0,Z.kJ)(e)||"[object DOMStringList]"==={}.toString.call(e))for(let t=0;e.length>t;t+=1)s+=e[t]+";";else s=(e||u.TEXT_PLAIN)+";";return s})(e));void 0!==i&&(s=i),((0,v.isString)(s)||S.i.isNode(s))&&this.insertByType(t,s,this.j.o.defaultActionOnPaste),t.preventDefault(),t.stopPropagation()}}processHTML(t,e){if(this.j.o.askBeforePasteHTML){if(this.j.o.memorizeChoiceWhenPasteFragment){const s=this.pasteStack.find((t=>t.html===e));if(s)return this.insertByType(t,e,s.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;const s=zn(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",(s=>{this._isDialogOpened=!1,this.insertByType(t,e,s)}),this.j.o.pasteHTMLActionList);return s&&(this._isDialogOpened=!0,s.e.on("beforeClose",(()=>{this._isDialogOpened=!1}))),!0}return!1}insertByType(t,e,s){if(this.pasteStack.push({html:e,action:s}),(0,v.isString)(e))switch(this.j.buffer.set(u.CLIPBOARD_ID,e),s){case u.INSERT_CLEAR_HTML:e=(0,v.cleanFromWord)(e);break;case u.INSERT_ONLY_TEXT:e=(0,v.stripTags)(e);break;case u.INSERT_AS_TEXT:e=(0,v.htmlspecialchars)(e)}Nn(t,this.j,e)}onProcessPasteReplaceNl2Br(t,e,s){if(s===u.TEXT_PLAIN+";"&&!(0,v.isHTML)(e))return(0,v.nl2br)(e)}}(0,p.gn)([y.autobind],Rn.prototype,"onPaste",null),(0,p.gn)([y.autobind],Rn.prototype,"onProcessPasteReplaceNl2Br",null),j.pw.add("paste",Rn),f.D.prototype.askBeforePasteFromWord=!0,f.D.prototype.processPasteFromWord=!0,f.D.prototype.defaultActionOnPasteFromWord=null,f.D.prototype.pasteFromWordActionList=[{value:u.INSERT_AS_HTML,text:"Keep"},{value:u.INSERT_AS_TEXT,text:"Clean"},{value:u.INSERT_ONLY_TEXT,text:"Insert only Text"}];class An extends Ut.S{constructor(){super(...arguments),this.requires=["paste"]}afterInit(t){}beforeDestruct(t){}processWordHTML(t,e,s){const{j:i}=this,{processPasteFromWord:r,askBeforePasteFromWord:o,defaultActionOnPasteFromWord:n,defaultActionOnPaste:a,pasteFromWordActionList:l}=i.o;return!(!r||!(0,v.isHtmlFromWord)(e)||(o?zn(i,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",(i=>{this.insertFromWordByType(t,e,i,s)}),l):this.insertFromWordByType(t,e,n||a,s),0))}insertFromWordByType(t,e,s,i){switch(s){case u.INSERT_AS_HTML:{e=(0,v.applyStyles)(e);const t=this.j.events?.fire("beautifyHTML",e);(0,v.isString)(t)&&(e=t);break}case u.INSERT_AS_TEXT:e=(0,v.cleanFromWord)(e);break;case u.INSERT_ONLY_TEXT:e=(0,v.stripTags)((0,v.cleanFromWord)(e))}Nn(t,this.j,e)}}(0,p.gn)([(0,y.watch)(":processHTML")],An.prototype,"processWordHTML",null),j.pw.add("pasteFromWord",An),j.pw.add("pasteStorage",class qn extends kr.S{constructor(){super(...arguments),this.currentIndex=0,this.list=[],this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.paste=()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){const t=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=t}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")},this.onKeyDown=t=>{let e=this.currentIndex;-1!==[u.KEY_UP,u.KEY_DOWN,u.KEY_ENTER].indexOf(t.key)&&(t.key===u.KEY_UP&&(0===e?e=this.list.length-1:e-=1),t.key===u.KEY_DOWN&&(e===this.list.length-1?e=0:e+=1),t.key!==u.KEY_ENTER?(e!==this.currentIndex&&this.selectIndex(e),t.stopImmediatePropagation(),t.preventDefault()):this.paste())},this.selectIndex=t=>{this.listBox&&(0,v.toArray)(this.listBox.childNodes).forEach(((e,s)=>{e.classList.remove("jodit_active"),t===s&&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 s=this.j.c.element("a");s.textContent=e+1+". "+t.replace((0,u.SPACE_REG_EXP)(),""),this.j.e.on(s,"keydown",this.onKeyDown),(0,v.attr)(s,"href","#"),(0,v.attr)(s,"data-index",""+e),(0,v.attr)(s,"tab-index","-1"),this.listBox&&this.listBox.appendChild(s)})),this.dialog&&this.dialog.open(),this.j.async.setTimeout((()=>{this.selectIndex(0)}),100))}}createDialog(){this.dialog=this.j.dlg();const t=U(this.j,"paste","Paste","primary");t.onAction(this.paste);const e=U(this.j,"","Cancel");e.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([t,e]),this.j.e.on(this.listBox,"click dblclick",(t=>{const e=t.target;return S.i.isTag(e,"a")&&e.hasAttribute("data-index")&&this.selectIndex(parseInt((0,v.attr)(e,"-index")||"0",10)),"dblclick"===t.type&&this.paste(),!1}))}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",(()=>this.list.length)).on("afterCopy.paste-storage",(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.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),S.i.safeRemove(this.previewBox),S.i.safeRemove(this.listBox),S.i.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}}),f.D.prototype.showPlaceholder=!0,f.D.prototype.placeholder="Type something",f.D.prototype.useInputsPlaceholder=!0;class On extends kr.S{constructor(){super(...arguments),this.addNativeListeners=()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)},this.addEvents=()=>{const t=this.j;t.o.useInputsPlaceholder&&t.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,yt.L)(t.element,"placeholder")||""),t.e.fire("placeholder",this.placeholderElm.innerHTML),t.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()}}afterInit(t){t.o.showPlaceholder&&(this.placeholderElm=t.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${t.i18n(t.o.placeholder)}</span>`),"rtl"===t.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),t.e.on("readonly",(t=>{t?this.hide():this.toggle()})).on("changePlace",this.addEvents),this.addEvents())}show(){const t=this.j;if(t.o.readonly)return;let e=0,s=0;const i=t.s.current(),r=i&&S.i.closest(i,S.i.isBlock,t.editor)||t.editor,o=t.ew.getComputedStyle(r),n=t.ew.getComputedStyle(t.editor);t.workplace.appendChild(this.placeholderElm);const{firstChild:a}=t.editor;if(S.i.isElement(a)&&!(0,Ve._)(a)){const i=t.ew.getComputedStyle(a);e=parseInt(i.getPropertyValue("margin-top"),10),s=parseInt(i.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(i.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=i.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(o.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=o.getPropertyValue("line-height");(0,ct.i)(this.placeholderElm,{display:"block",textAlign:o.getPropertyValue("text-align"),paddingTop:parseInt(n.paddingTop,10)+"px",paddingLeft:parseInt(n.paddingLeft,10)+"px",paddingRight:parseInt(n.paddingRight,10)+"px",marginTop:Math.max(parseInt(o.getPropertyValue("margin-top"),10),e),marginLeft:Math.max(parseInt(o.getPropertyValue("margin-left"),10),s)})}hide(){S.i.safeRemove(this.placeholderElm)}toggle(){const t=this.j;t.editor&&!t.isInDestruct&&(t.getRealMode()===u.MODE_WYSIWYG&&(t=>{if(!t.firstChild)return!0;const e=t.firstChild;if(u.INSEPARABLE_TAGS.has(e.nodeName?.toLowerCase())||/^(TABLE)$/i.test(e.nodeName))return!1;const s=S.i.next(e,(t=>t&&!S.i.isEmptyTextNode(t)),t);return S.i.isText(e)&&!s?S.i.isEmptyTextNode(e):!s&&S.i.each(e,(t=>!(S.i.isLeaf(t)||S.i.isList(t))&&(S.i.isEmpty(t)||S.i.isTag(t,"br"))))})(t.editor)?this.show():this.hide())}beforeDestruct(t){this.hide(),t.e.off(".placeholder").off(window,"load",this.toggle)}}(0,p.gn)([(0,y.debounce)((t=>t.defaultTimeout/10),!0)],On.prototype,"toggle",null),j.pw.add("placeholder",On),j.pw.add("poweredByJodit",(t=>{const{o:e}=t;e.hidePoweredByJodit||e.inline||!(e.showCharsCounter||e.showWordsCounter||e.showXPathInStatusbar)||t.hookStatus("ready",(()=>{t.statusbar.append(t.create.fromHTML('<a\n\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\tstyle="text-transform: uppercase"\n\t\t\t\t\t\tclass="jodit-status-bar-link"\n\t\t\t\t\t\ttarget="_blank"\n\t\t\t\t\t\thref="https://xdsoft.net/jodit/">\n\t\t\t\t\t\t\tPowered by Jodit\n\t\t\t\t\t\t</a>'),!0)}))}));var Bn=r(21498);f.D.prototype.controls.preview={icon:"eye",command:"preview",mode:u.MODE_SOURCE+u.MODE_WYSIWYG,tooltip:"Preview"},j.pw.add("preview",(t=>{t.registerButton({name:"preview"}),t.registerCommand("preview",((e,s,i)=>{const r=t.dlg();r.setSize(1024,600).open("",t.i18n("Preview")).setModal(!0);const[,o]=(0,Bn.$)(t,i,"px",r.getElm("content"));r.e.on(r,"afterClose",o)}))}));var Hn=r(93351),Fn=r(27526);M.J.set("print",r.n(Fn)()),f.D.prototype.controls.print={exec(t){const e=t.create.element("iframe");Object.assign(e.style,{position:"fixed",right:0,bottom:0,width:0,height:0,border:0}),(0,j.ZO)(t,f.D).appendChild(e);const s=()=>{t.e.off(t.ow,"mousemove",s),X.i.safeRemove(e)},i=e.contentWindow;if(i){t.e.on(i,"onbeforeunload onafterprint",s).on(t.ow,"mousemove",s),t.o.iframe?(t.e.fire("generateDocumentStructure.iframe",i.document,t),i.document.body.innerHTML=t.value):(i.document.write('<!doctype html><html lang="'+(0,Hn.X)(t.o.language)+'"><head><title></title></head><style>'+function(t){const e=(t,e=t.ownerDocument.styleSheets)=>(0,ht.q)(e).map((t=>{try{return(0,ht.q)(t.cssRules)}catch{}return[]})).flat().filter((e=>{try{return!(!e||!t.matches(e.selectorText))}catch{}return!1}));class s{constructor(s,i,r){this.css={};const o=r||{},n=e=>{const s=e.selectorText.split(",").map((t=>t.trim())).sort().join(",");0==!!this.css[s]&&(this.css[s]={});const i=e.style.cssText.split(/;(?![A-Za-z0-9])/);for(let e=0;i.length>e;e++){if(!i[e])continue;const r=i[e].split(":");r[0]=r[0].trim(),r[1]=r[1].trim(),this.css[s][r[0]]=r[1].replace(/var\(([^)]+)\)/g,((e,s)=>{const[i,r]=s.split(",");return(t.ew.getComputedStyle(t.editor).getPropertyValue(i.trim())||r||e).trim()}))}};(()=>{const r=s.innerHeight,a=i.createTreeWalker(t.editor,NodeFilter.SHOW_ELEMENT,(()=>NodeFilter.FILTER_ACCEPT));for(;a.nextNode();){const t=a.currentNode;if(r>t.getBoundingClientRect().top||o.scanFullPage){const s=e(t);if(s)for(let t=0;s.length>t;t++)n(s[t])}}})()}generateCSS(){let t="";for(const e in this.css)if(!/:not\(/.test(e)){t+=e+" { ";for(const s in this.css[e])t+=s+": "+this.css[e][s]+"; ";t+="}\n"}return t}}try{return new s(t.ew,t.ed,{scanFullPage:!0}).generateCSS()}catch{}return""}(t)+"</style><body></body></html>"),i.document.close(),(0,Bn.$)(t,void 0,"px",i.document.body));const e=i.document.createElement("style");e.innerHTML="@media print {\n\t\t\t\t\tbody {\n\t\t\t\t\t\t\t-webkit-print-color-adjust: exact;\n\t\t\t\t\t}\n\t\t\t}",i.document.head.appendChild(e),i.focus(),i.print()}},mode:u.MODE_SOURCE+u.MODE_WYSIWYG,tooltip:"Print"},j.pw.add("print",(t=>{t.registerButton({name:"print"})}));var $n=r(52390),Wn=r.n($n),Vn=r(28825),Un=r.n(Vn);M.J.set("redo",Wn()).set("undo",Un()),f.D.prototype.controls.redo={mode:u.MODE_SPLIT,isDisabled(t){return!t.history.canRedo()},tooltip:"Redo"},f.D.prototype.controls.undo={mode:u.MODE_SPLIT,isDisabled(t){return!t.history.canUndo()},tooltip:"Undo"},j.pw.add("redoUndo",class Yn extends kr.S{constructor(){super(...arguments),this.buttons=[{name:"undo",group:"history"},{name:"redo",group:"history"}]}beforeDestruct(){}afterInit(t){const e=e=>(t.history[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"]})}}),f.D.prototype.tableAllowCellResize=!0;const Gn="table_processor_observer-resize";class Xn extends Ut.S{constructor(){super(...arguments),this.selectMode=!1,this.resizeDelta=0,this.createResizeHandle=()=>{this.resizeHandler||(this.resizeHandler=this.j.c.div("jodit-table-resizer"),this.j.e.on(this.resizeHandler,"mousedown.table touchstart.table",this.onHandleMouseDown).on(this.resizeHandler,"mouseenter.table",(()=>{this.j.async.clearTimeout(this.hideTimeout)})))},this.hideTimeout=0,this.drag=!1,this.minX=0,this.maxX=0,this.startX=0}get module(){return this.j.getInstance("Table",this.j.o)}get isRTL(){return"rtl"===this.j.o.direction}showResizeHandle(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}hideResizeHandle(){this.hideTimeout=this.j.async.setTimeout((()=>{S.i.safeRemove(this.resizeHandler)}),{timeout:this.j.defaultTimeout,label:"hideResizer"})}onHandleMouseDown(t){if(this.j.isLocked)return;this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=t.clientX,this.j.lock(Gn),this.resizeHandler.classList.add("jodit-table-resizer_moved");let e,s=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)s=this.workTable.parentNode.getBoundingClientRect(),this.minX=s.left,this.maxX=this.minX+s.width;else{const t=Ts.formalCoordinate(this.workTable,this.workCell,!0);Ts.formalMatrix(this.workTable,((s,i,r)=>{t[1]===r&&(e=s.getBoundingClientRect(),this.minX=Math.max(e.left+u.NEARBY/2,this.minX)),t[1]+(this.isRTL?-1:1)===r&&(e=s.getBoundingClientRect(),this.maxX=Math.min(e.left+e.width-u.NEARBY/2,this.maxX))}))}return!1}onMouseMove(t){if(!this.drag)return;this.j.e.fire("closeAllPopups");let e=t.clientX;const s=(0,v.offset)(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);this.minX>e&&(e=this.minX),e>this.maxX&&(e=this.maxX),this.resizeDelta=e-this.startX+(this.j.o.iframe?s.left:0),this.resizeHandler.style.left=e-(this.j.o.iframe?0:s.left)+"px";const i=this.j.s.sel;i&&i.removeAllRanges()}onMouseUp(t){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==t.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}resizeColumns(){const t=this.resizeDelta,e=[];Ts.setColumnWidthByDelta(this.workTable,Ts.formalCoordinate(this.workTable,this.workCell,!0)[1],t,!0,e);const s=(0,v.call)(this.isRTL?S.i.prev:S.i.next,this.workCell,S.i.isCell,this.workCell.parentNode);Ts.setColumnWidthByDelta(this.workTable,Ts.formalCoordinate(this.workTable,s)[1],-t,!1,e)}resizeTable(){const t=this.resizeDelta*(this.isRTL?-1:1),e=this.workTable.offsetWidth,s=(0,v.getContentWidth)(this.workTable.parentNode,this.j.ew),i=!this.wholeTable;if(this.isRTL?!i:i)this.workTable.style.width=(e+t)/s*100+"%";else{const i=this.isRTL?"marginRight":"marginLeft",r=parseInt(this.j.ew.getComputedStyle(this.workTable)[i]||"0",10);this.workTable.style.width=(e-t)/s*100+"%",this.workTable.style[i]=(r+t)/s*100+"%"}}setWorkCell(t,e=null){this.wholeTable=e,this.workCell=t,this.workTable=S.i.up(t,(t=>S.i.isTag(t,"table")),this.j.editor)}calcHandlePosition(t,e,s=0,i=0){const r=(0,v.offset)(e,this.j,this.j.ed);if(s>u.NEARBY&&r.width-u.NEARBY>s)return void this.hideResizeHandle();const o=(0,v.offset)(this.j.workplace,this.j,this.j.od,!0),n=(0,v.offset)(t,this.j,this.j.ed);if(this.resizeHandler.style.left=(s>u.NEARBY?r.left+r.width:r.left)-o.left+i+"px",Object.assign(this.resizeHandler.style,{height:n.height+"px",top:n.top-o.top+"px"}),this.showResizeHandle(),s>u.NEARBY){const t=(0,v.call)(this.isRTL?S.i.prev:S.i.next,e,S.i.isCell,e.parentNode);this.setWorkCell(e,!!t&&null)}else{const t=(0,v.call)(this.isRTL?S.i.next:S.i.prev,e,S.i.isCell,e.parentNode);this.setWorkCell(t||e,!t||null)}}afterInit(t){t.o.tableAllowCellResize&&t.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",(()=>{(0,v.$$)("table",t.editor).forEach(this.observe)})).on(this.j.ow,"scroll.resize-cells",(()=>{if(!this.drag)return;const e=S.i.up(this.workCell,(t=>S.i.isTag(t,"table")),t.editor);if(e){const t=e.getBoundingClientRect();this.resizeHandler.style.top=t.top+"px"}})).on("beforeSetMode.resize-cells",(()=>{this.module.getAllSelectedCells().forEach((e=>{this.module.removeSelection(e),Ts.normalizeTable(S.i.closest(e,"table",t.editor))}))}))}observe(t){(0,v.dataBind)(t,Gn)||((0,v.dataBind)(t,Gn,!0),this.j.e.on(t,"mouseleave.resize-cells",(t=>{this.resizeHandler&&this.resizeHandler!==t.relatedTarget&&this.hideResizeHandle()})).on(t,"mousemove.resize-cells touchmove.resize-cells",this.j.async.throttle((e=>{if(this.j.isLocked)return;const s=S.i.up(e.target,S.i.isCell,t);s&&this.calcHandlePosition(t,s,e.offsetX)}),{timeout:this.j.defaultTimeout})),this.createResizeHandle())}beforeDestruct(t){t.events&&(t.e.off(this.j.ow,".resize-cells"),t.e.off(".resize-cells"))}}(0,p.gn)([y.autobind],Xn.prototype,"onHandleMouseDown",null),(0,p.gn)([y.autobind],Xn.prototype,"onMouseMove",null),(0,p.gn)([y.autobind],Xn.prototype,"onMouseUp",null),(0,p.gn)([y.autobind],Xn.prototype,"observe",null),j.pw.add("resizeCells",Xn),f.D.prototype.allowResizeX=!1,f.D.prototype.allowResizeY=!0;let Kn=class t extends Ut.S{constructor(){super(...arguments),this.isResized=!1,this.start={x:0,y:0,w:0,h:0},this.handle=this.j.c.div("jodit-editor__resize",M.J.get("resize_handler"))}afterInit(t){const{height:e,width:s,allowResizeX:i}=t.o;let{allowResizeY:r}=t.o;"auto"===e&&"auto"!==s&&(r=!1),"auto"===e&&"auto"===s||!i&&!r||(t.statusbar.setMod("resize-handle",!0),t.e.on("toggleFullSize.resizeHandler",(()=>{this.handle.style.display=t.isFullSize?"none":"block"})).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(t.ow,"mouseup touchend",this.onHandleResizeEnd),t.container.appendChild(this.handle))}onHandleResizeStart(t){this.isResized=!0,this.start.x=t.clientX,this.start.y=t.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,"mousemove touchmove",this.onHandleResize),t.preventDefault()}onHandleResize(t){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+t.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+t.clientX-this.start.x),this.j.e.fire("resize"))}onHandleResizeEnd(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,"mousemove touchmove",this.onHandleResize),this.j.unlock())}beforeDestruct(){X.i.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}};Kn.requires=["size"],Kn=(0,p.gn)([y.autobind],Kn),j.pw.add("resizeHandler",Kn),f.D.prototype.allowResizeTags=["img","iframe","table","jodit"],f.D.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:["img"]};const Jn="__jodit-resizer_binded";class Zn extends kr.S{constructor(){super(...arguments),this.LOCK_KEY="resizer",this.element=null,this.isResizeMode=!1,this.isShown=!1,this.startX=0,this.startY=0,this.width=0,this.height=0,this.ratio=0,this.rect=this.j.c.fromHTML(`<div title="${this.j.i18n("Press Alt for custom resizing")}" class="jodit-resizer">\n\t\t\t\t<div class="jodit-resizer__top-left"></div>\n\t\t\t\t<div class="jodit-resizer__top-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-left"></div>\n\t\t\t\t<span>100x100</span>\n\t\t\t</div>`),this.sizeViewer=this.rect.getElementsByTagName("span")[0],this.pointerX=0,this.pointerY=0,this.isAltMode=!1,this.onClickElement=t=>{this.isResizeMode||this.element===t&&this.isShown||(this.element=t,this.show(),S.i.isTag(this.element,"img")&&!this.element.complete&&this.j.e.one(this.element,"load",this.updateSize))},this.updateSize=()=>{if(!this.isInDestruct&&this.isShown&&this.element&&this.rect){const t=this.getWorkplacePosition(),e=(0,v.offset)(this.element,this.j,this.j.ed),s=parseInt(this.rect.style.left||"0",10),i=e.top-t.top,r=e.left-t.left;parseInt(this.rect.style.top||"0",10)===i&&s===r&&this.rect.offsetWidth===this.element.offsetWidth&&this.rect.offsetHeight===this.element.offsetHeight||((0,v.css)(this.rect,{top:i,left:r,width:this.element.offsetWidth,height:this.element.offsetHeight}),this.j.events&&(this.j.e.fire(this.element,"changesize"),isNaN(s)||this.j.e.fire("resize")))}},this.hideSizeViewer=()=>{this.sizeViewer.style.opacity="0"}}afterInit(t){(0,v.$$)("div",this.rect).forEach((e=>{t.e.on(e,"mousedown.resizer touchstart.resizer",this.onStartResizing.bind(this,e))})),j.TB.on("hideHelpers",this.hide),t.e.on("readonly",(t=>{t&&this.hide()})).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",(t=>{const e=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;e.test(t.value)&&(t.value=t.value.replace(e,"$1"))})).on("hideResizer",this.hide).on("change afterInit afterSetMode",this.onChangeEditor),this.addEventListeners(),this.onChangeEditor()}onEditorClick(t){let e=t.target;const{editor:s,options:{allowResizeTags:i}}=this.j;for(;e&&e!==s;){if(S.i.isTag(e,i))return this.bind(e),void this.onClickElement(e);e=e.parentNode}}addEventListeners(){const t=this.j;t.e.off(t.editor,".resizer").off(t.ow,".resizer").on(t.editor,"keydown.resizer",(t=>{this.isShown&&t.key===u.KEY_DELETE&&this.element&&!S.i.isTag(this.element,"table")&&this.onDelete(t)})).on(t.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([t.ow,t.editor],"scroll.resizer",(()=>{this.isShown&&!this.isResizeMode&&this.hide()})).on(t.ow,"keydown.resizer",this.onKeyDown).on(t.ow,"keyup.resizer",this.onKeyUp).on(t.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}onStartResizing(t,e){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=t,e.cancelable&&e.preventDefault(),e.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=e.clientX,this.startY=e.clientY,this.pointerX=e.clientX,this.pointerY=e.clientY;const{j:s}=this;s.e.fire("hidePopup"),s.lock(this.LOCK_KEY),s.e.on(s.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onEndResizing(){const{j:t}=this;t.unlock(),this.isResizeMode=!1,this.isAltMode=!1,t.synchronizeValues(),t.e.off(t.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onResize(t){if(this.isResizeMode){if(!this.element)return;let e,s;if(this.pointerX=t.clientX,this.pointerY=t.clientY,this.j.options.iframe){const i=this.getWorkplacePosition();e=t.clientX+i.left-this.startX,s=t.clientY+i.top-this.startY}else e=this.pointerX-this.startX,s=this.pointerY-this.startY;const i=this.handle.className;let r=0,o=0;const n=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===n||Array.isArray(n)&&S.i.isTag(this.element,n))?(e?(r=this.width+(i.match(/left/)?-1:1)*e,o=Math.round(r/this.ratio)):(o=this.height+(i.match(/top/)?-1:1)*s,r=Math.round(o*this.ratio)),r>(0,v.innerWidth)(this.j.editor,this.j.ow)&&(r=(0,v.innerWidth)(this.j.editor,this.j.ow),o=Math.round(r/this.ratio))):(r=this.width+(i.match(/left/)?-1:1)*e,o=this.height+(i.match(/top/)?-1:1)*s),r>this.j.o.resizer.min_width&&this.applySize(this.element,"width",this.rect.parentNode.offsetWidth>r?r:"100%"),o>this.j.o.resizer.min_height&&this.applySize(this.element,"height",o),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),t.stopImmediatePropagation()}}onKeyDown(t){this.isAltMode=t.key===u.KEY_ALT,!this.isAltMode&&this.isResizeMode&&this.onEndResizing()}onKeyUp(){this.isAltMode&&this.isResizeMode&&this.element&&(this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.startX=this.pointerX,this.startY=this.pointerY),this.isAltMode=!1}onClickOutside(t){if(this.isShown){if(!this.isResizeMode)return this.hide();t.stopImmediatePropagation(),this.onEndResizing()}}getWorkplacePosition(){return(0,v.offset)(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}applySize(t,e,s){const i=S.i.isImage(t)&&this.j.o.resizer.forImageChangeAttributes;i&&(0,v.attr)(t,e,s),i&&!t.style[e]||(0,v.css)(t,e,s)}onDelete(t){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(S.i.safeRemove(this.element),this.hide(),t.preventDefault()))}onChangeEditor(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),(0,v.$$)("iframe",this.j.editor).forEach(this.bind)}bind(t){if(!S.i.isHTMLElement(t)||!this.j.o.allowResizeTags.includes(t.tagName.toLowerCase())||(0,v.dataBind)(t,Jn))return;let e;if((0,v.dataBind)(t,Jn,!0),S.i.isTag(t,"iframe")){const s=t;S.i.isHTMLElement(t.parentNode)&&(0,v.attr)(t.parentNode,"-jodit_iframe_wrapper")?t=t.parentNode:(e=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),(0,v.attr)(e,"style",(0,v.attr)(t,"style")),(0,v.css)(e,{display:"inline-block"===t.style.display?"inline-block":"block",width:t.offsetWidth,height:t.offsetHeight}),t.parentNode&&t.parentNode.insertBefore(e,t),e.appendChild(t),this.j.e.on(e,"click",(()=>{(0,v.attr)(e,"data-jodit-wrapper_active",!0)})),t=e),this.j.e.off(t,"mousedown.select touchstart.select").on(t,"mousedown.select touchstart.select",(()=>{this.j.s.select(t)})).off(t,"changesize").on(t,"changesize",(()=>{s.setAttribute("width",t.offsetWidth+"px"),s.setAttribute("height",t.offsetHeight+"px")}))}this.j.e.on(t,"dragstart",this.hide),!u.IS_ES_NEXT&&u.IS_IE&&this.j.e.on(t,"mousedown",(e=>{S.i.isTag(t,"img")&&e.preventDefault()}))}showSizeViewer(t,e){this.j.o.resizer.showSize&&(this.sizeViewer.offsetWidth>t||this.sizeViewer.offsetHeight>e?this.hideSizeViewer():(this.sizeViewer.style.opacity="1",this.sizeViewer.textContent=`${t} x ${e}`,this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})))}show(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||((0,v.markOwner)(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=""+(0,v.css)(this.j.container,"zIndex")),this.updateSize())}hide(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,S.i.safeRemove(this.rect),(0,v.$$)("[data-jodit-wrapper_active='true']",this.j.editor).forEach((t=>(0,v.attr)(t,"data-jodit-wrapper_active",!1))))}beforeDestruct(t){this.hide(),j.TB.off("hideHelpers",this.hide),t.e.off(this.j.ow,".resizer").off(".resizer")}}(0,p.gn)([(0,y.watch)(":click")],Zn.prototype,"onEditorClick",null),(0,p.gn)([y.autobind],Zn.prototype,"onStartResizing",null),(0,p.gn)([y.autobind],Zn.prototype,"onEndResizing",null),(0,p.gn)([y.autobind],Zn.prototype,"onResize",null),(0,p.gn)([y.autobind],Zn.prototype,"onKeyDown",null),(0,p.gn)([y.autobind],Zn.prototype,"onKeyUp",null),(0,p.gn)([y.autobind],Zn.prototype,"onClickOutside",null),(0,p.gn)([(0,y.debounce)()],Zn.prototype,"onChangeEditor",null),(0,p.gn)([y.autobind],Zn.prototype,"bind",null),(0,p.gn)([y.autobind],Zn.prototype,"hide",null),j.pw.add("resizer",Zn);let Qn=class t extends E.u{className(){return"UISearch"}render(){return`<div>\n\t\t\t<div class="&__box">\n\t\t\t\t<div class="&__inputs">\n\t\t\t\t\t<input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>\n\t\t\t\t\t<input data-ref="replace" tabindex="0" placeholder="~Replace with~" type="text"/>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__counts">\n\t\t\t\t\t<span data-ref="counter-box">\n\t\t\t\t\t\t<span data-ref="current">0</span><span>/</span><span data-ref="count">0</span>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__buttons">\n\t\t\t\t\t<button data-ref="next" tabindex="0" type="button">${M.J.get("angle-down")}</button>\n\t\t\t\t\t<button data-ref="prev" tabindex="0" type="button">${M.J.get("angle-up")}</button>\n\t\t\t\t\t<button data-ref="cancel" tabindex="0" type="button">${M.J.get("cancel")}</button>\n\t\t\t\t\t<button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>`}get currentIndex(){return this._currentIndex}set currentIndex(t){this._currentIndex=t,this.currentBox.innerText=""+t}set count(t){this.countBox.innerText=""+t}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}constructor(t){super(t),this.selInfo=null,this._currentIndex=0,this.isOpened=!1;const{query:e,replace:s,cancel:i,next:r,prev:o,replaceBtn:n,current:a,count:l}=(0,v.refs)(this.container);this.queryInput=e,this.replaceInput=s,this.closeButton=i,this.replaceButton=n,this.currentBox=a,this.countBox=l,t.e.on(this.closeButton,"pointerdown",(()=>(this.close(),!1))).on(this.queryInput,"input",(()=>{this.currentIndex=0})).on(this.queryInput,"pointerdown",(()=>{t.s.isFocused()&&(t.s.removeMarkers(),this.selInfo=t.s.save())})).on(this.replaceButton,"pointerdown",(()=>(t.e.fire(this,"pressReplaceButton"),!1))).on(r,"pointerdown",(()=>(t.e.fire("searchNext"),!1))).on(o,"pointerdown",(()=>(t.e.fire("searchPrevious"),!1))).on(this.queryInput,"input",(()=>{this.setMod("empty-query",!(0,v.trim)(this.queryInput.value).length)})).on(this.queryInput,"keydown",this.j.async.debounce((e=>{e.key===u.KEY_ENTER?(e.preventDefault(),e.stopImmediatePropagation(),t.e.fire("searchNext")&&this.close()):t.e.fire(this,"needUpdateCounters")}),this.j.defaultTimeout))}onEditorKeyDown(t){if(!this.isOpened)return;const{j:e}=this;if(e.getRealMode()===u.MODE_WYSIWYG)switch(t.key){case u.KEY_ESC:this.close();break;case u.KEY_F3:this.queryInput.value&&(e.e.fire(t.shiftKey?"searchPrevious":"searchNext"),t.preventDefault())}}open(t,e,s=!1){this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",s);const i=t??""+(this.j.s.sel||"");i&&(this.queryInput.value=i),e&&(this.replaceInput.value=e),this.setMod("empty-query",!i.length),this.j.e.fire(this,"needUpdateCounters"),i?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),X.i.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(t){if(this.isOpened)if(this.setMod("sticky",t),t){const t=(0,v.position)(this.j.toolbarContainer);(0,v.css)(this.container,{top:t.top+t.height,left:t.left+t.width})}else(0,v.css)(this.container,{top:null,left:null})}};(0,p.gn)([(0,y.watch)([":keydown","queryInput:keydown"])],Qn.prototype,"onEditorKeyDown",null),(0,p.gn)([y.autobind],Qn.prototype,"open",null),(0,p.gn)([y.autobind],Qn.prototype,"close",null),(0,p.gn)([(0,y.watch)(":toggleSticky")],Qn.prototype,"calcSticky",null),Qn=(0,p.gn)([y.component],Qn);var ta=r(93163);class ea{constructor(t=ta.Q){this.searchIndex=t,this.queue=[],this.value=""}add(t){const e=(t.nodeValue??"").toLowerCase();if(!e.length)return;const s=this.value.length;this.queue.push({startIndex:s,endIndex:s+e.length,node:t}),this.value+=e}ranges(t,e=0){const s=[];let i=e,r=0,o=0;do{if([i,r]=this.searchIndex(t,this.value,i),-1!==i){let t,e,n=0,a=0;for(let s=o;this.queue.length>s;s+=1)if(!t&&this.queue[s].endIndex>i&&(t=this.queue[s].node,n=i-this.queue[s].startIndex),t&&this.queue[s].endIndex>=i+r){e=this.queue[s].node,a=i+r-this.queue[s].startIndex,o=s;break}t&&e&&s.push({startContainer:t,startOffset:n,endContainer:e,endOffset:a}),i+=r}}while(-1!==i);return 0===s.length?null:s}}const sa="jd-tmp-selection";function ia(t,e,s,i){if(null==t.startContainer.nodeValue||null==t.endContainer.nodeValue)return;const r=s.element("span",{[sa]:!0});S.i.markTemporary(r);const o=t.startContainer.nodeValue;let n=0;if(0!==t.startOffset){const e=s.text(o.substring(0,t.startOffset));t.startContainer.nodeValue=o.substring(t.startOffset),S.i.before(t.startContainer,e),t.startContainer===t.endContainer&&(n=t.startOffset,t.endOffset-=n),t.startOffset=0}const a=t.endContainer.nodeValue;if(t.endOffset!==a.length){const i=s.text(a.substring(t.endOffset));t.endContainer.nodeValue=a.substring(0,t.endOffset),S.i.after(t.endContainer,i);for(const s of e){if(s.startContainer!==t.endContainer)break;s.startContainer=i,s.startOffset=s.startOffset-t.endOffset-n,s.endContainer===t.endContainer&&(s.endContainer=i,s.endOffset=s.endOffset-t.endOffset-n)}t.endOffset=t.endContainer.nodeValue.length}let l=t.startContainer;do{if(!l)break;if(!S.i.isText(l)||S.i.isElement(c=l.parentNode)&&c.hasAttribute(sa)||S.i.wrap(l,r.cloneNode(),s),l===t.endContainer)break;let e=l.firstChild||l.nextSibling;if(!e){for(;l&&!l.nextSibling&&l!==i;)l=l.parentNode;e=l?.nextSibling}l=e}while(l&&l!==i);var c}function ra(t){return(0,go.$$)(`[${sa}]`,t)}function oa(t){ra(t).forEach((t=>S.i.unwrap(t)))}var na=r(27681),aa=r.n(na);f.D.prototype.useSearch=!0,f.D.prototype.search={lazyIdleTimeout:0},M.J.set("search",aa()),f.D.prototype.controls.find={tooltip:"Find",icon:"search",exec(t,e,{control:s}){switch(s.args&&s.args[0]){case"findPrevious":t.e.fire("searchPrevious");break;case"findNext":t.e.fire("searchNext");break;case"replace":t.execCommand("openReplaceDialog");break;default:t.execCommand("openSearchDialog")}},list:{search:"Find",findNext:"Find Next",findPrevious:"Find Previous",replace:"Replace"},childTemplate(t,e,s){return s}};class la extends Ut.S{constructor(){super(...arguments),this.buttons=[{name:"find",group:"search"}],this.previousQuery="",this.drawPromise=null,this.walker=null,this.walkerCount=null,this.cache={},this.wrapFrameRequest=0}get ui(){return new Qn(this.j)}async updateCounters(){this.ui.isOpened&&(this.ui.count=await this.calcCounts(this.ui.query))}onPressReplaceButton(){this.findAndReplace(this.ui.query),this.updateCounters()}tryScrollToElement(t){let e=X.i.closest(t,X.i.isElement,this.j.editor);e||(e=X.i.prev(t,X.i.isElement,this.j.editor)),e&&e!==this.j.editor&&(0,v.scrollIntoViewIfNeeded)(e,this.j.editor,this.j.ed)}async calcCounts(t){return(await this.findQueryBounds(t,"walkerCount")).length}async findQueryBounds(t,e){let s=this[e];return s&&s.break(),s=new X.b(this.j.async,{timeout:this.j.o.search.lazyIdleTimeout}),this[e]=s,this.find(s,t).catch((t=>[]))}async findAndReplace(t){const e=await this.findQueryBounds(t,"walker");if(!e.length)return!1;let s=this.findCurrentIndexInRanges(e,this.j.s.range);-1===s&&(s=0);const i=e[s];if(i){try{const e=this.j.ed.createRange();e.setStart(i.startContainer,i.startOffset),e.setEnd(i.endContainer,i.endOffset),e.deleteContents();const r=this.j.createInside.text(this.ui.replace);X.i.safeInsertNode(e,r),oa(this.j.editor),this.j.s.setCursorAfter(r),this.tryScrollToElement(r),this.cache={},this.ui.currentIndex=s,await this.findAndSelect(t,!0).catch((t=>null))}finally{this.j.synchronizeValues()}return this.j.e.fire("afterFindAndReplace"),!0}return!1}async findAndSelect(t,e){const s=await this.findQueryBounds(t,"walker");if(!s.length)return!1;this.previousQuery===t&&ra(this.j.editor).length||(this.drawPromise?.rejectCallback(),this.j.async.cancelAnimationFrame(this.wrapFrameRequest),oa(this.j.editor),this.drawPromise=this.drawSelectionRanges(s)),this.previousQuery=t;let i=this.ui.currentIndex-1;i=-1===i?0:e?i===s.length-1?0:i+1:0===i?s.length-1:i-1,this.ui.currentIndex=i+1;const r=s[i];if(r){const t=this.j.ed.createRange();try{t.setStart(r.startContainer,r.startOffset),t.setEnd(r.endContainer,r.endOffset),this.j.s.selectRange(t)}catch(t){}return this.tryScrollToElement(r.startContainer),await this.updateCounters(),await this.drawPromise,this.j.e.fire("afterFindAndSelect"),!0}return!1}findCurrentIndexInRanges(t,e){return t.findIndex((t=>t.startContainer===e.startContainer&&t.startOffset===e.startOffset&&t.endContainer===e.startContainer&&t.endOffset===e.endOffset))}async isValidCache(t){return(await t).every((t=>t.startContainer.isConnected&&(t.startContainer.nodeValue?.length??0)>=t.startOffset&&t.endContainer.isConnected&&(t.endContainer.nodeValue?.length??0)>=t.endOffset))}async find(t,e){if(!e.length)return[];const s=this.cache[e];return s&&await this.isValidCache(s)?s:(this.cache[e]=this.j.async.promise((s=>{const i=new ea(this.j.o.search.fuzzySearch);t.on("break",(()=>{s([])})).on("visit",(t=>(X.i.isText(t)&&i.add(t),!1))).on("end",(()=>{s(i.ranges(e)??[])})).setWork(this.j.editor)})),this.cache[e])}drawSelectionRanges(t){const{async:e,createInside:s,editor:i}=this.j;e.cancelAnimationFrame(this.wrapFrameRequest);const r=[...t];let o,n=0;return e.promise((t=>{const a=()=>{do{o=r.shift(),o&&ia(o,r,s,i),n+=1}while(o&&5>=n);r.length?this.wrapFrameRequest=e.requestAnimationFrame(a):t()};a()}))}onAfterGetValueFromEditor(t){t.value=t.value.replace(RegExp(`<span[^>]+${sa}[^>]+>(.*?)</span>`,"g"),"$1")}afterInit(t){if(t.o.useSearch){const e=this;t.e.on("beforeSetMode.search",(()=>{this.ui.close()})).on(this.ui,"afterClose",(()=>{oa(t.editor),this.ui.currentIndex=0,this.ui.count=0,this.cache={}})).on("click",(()=>{this.ui.currentIndex=0,oa(t.editor)})).on("change.search",(()=>{this.cache={}})).on("keydown.search mousedown.search",t.async.debounce((()=>{this.ui.selInfo&&(t.s.removeMarkers(),this.ui.selInfo=null),this.ui.isOpened&&this.updateCounters()}),t.defaultTimeout)).on("searchNext.search searchPrevious.search",(()=>(this.ui.isOpened||this.ui.open(),e.findAndSelect(e.ui.query,"searchNext"===t.e.current).catch((t=>{}))))).on("search.search",((t,s=!0)=>(this.ui.currentIndex=0,e.findAndSelect(t||"",s).catch((t=>{}))))),t.registerCommand("search",{exec(t,s,i=!0){return s&&e.findAndSelect(s,i).catch((t=>{})),!1}}).registerCommand("openSearchDialog",{exec(t,s){return e.ui.open(s),!1},hotkeys:["ctrl+f","cmd+f"]}).registerCommand("openReplaceDialog",{exec(s,i,r){return t.o.readonly||e.ui.open(i,r,!0),!1},hotkeys:["ctrl+h","cmd+h"]})}}beforeDestruct(t){this.ui.destruct(),t.e.off(".search")}}(0,p.gn)([y.cache],la.prototype,"ui",null),(0,p.gn)([(0,y.watch)("ui:needUpdateCounters")],la.prototype,"updateCounters",null),(0,p.gn)([(0,y.watch)("ui:pressReplaceButton")],la.prototype,"onPressReplaceButton",null),(0,p.gn)([y.autobind],la.prototype,"findQueryBounds",null),(0,p.gn)([y.autobind],la.prototype,"findAndReplace",null),(0,p.gn)([y.autobind],la.prototype,"findAndSelect",null),(0,p.gn)([y.autobind],la.prototype,"find",null),(0,p.gn)([(0,y.watch)(":afterGetValueFromEditor")],la.prototype,"onAfterGetValueFromEditor",null),j.pw.add("search",la),f.D.prototype.select={normalizeSelectionBeforeCutAndCopy:!1};class ca extends Ut.S{constructor(){super(...arguments),this.proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"]}afterInit(t){this.proxyEventsList.forEach((e=>{t.e.on(e+".select",this.onStartSelection)}))}beforeDestruct(t){this.proxyEventsList.forEach((e=>{t.e.on(e+".select",this.onStartSelection)}))}onStartSelection(t){const{j:e}=this;let s,i=t.target;for(;void 0===s&&i&&i!==e.editor;)s=e.e.fire((0,it.e)(t.type+"_"+i.nodeName.toLowerCase()),i,t),i=i.parentElement;"click"===t.type&&void 0===s&&i===e.editor&&e.e.fire(t.type+"Editor",i,t)}onOutsideClick(t){const e=t.target;S.i.up(e,(t=>t===this.j.editor))||E.u.closestElement(e,I)||this.j.e.fire("outsideClick",t)}beforeCommandCut(t){const{s:e}=this.j;if("cut"===t&&!e.isCollapsed()){const t=e.current();t&&S.i.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}onCopyNormalizeSelectionBound(t){const{s:e,editor:s,o:i}=this.j;i.select.normalizeSelectionBeforeCutAndCopy&&!e.isCollapsed()&&(!t||t.isTrusted&&S.i.isNode(t.target)&&S.i.isOrContains(s,t.target))&&this.jodit.s.expandSelection()}}(0,p.gn)([y.autobind],ca.prototype,"onStartSelection",null),(0,p.gn)([(0,y.watch)("ow:click")],ca.prototype,"onOutsideClick",null),(0,p.gn)([(0,y.watch)([":beforeCommand"])],ca.prototype,"beforeCommandCut",null),(0,p.gn)([(0,y.watch)([":copy",":cut"])],ca.prototype,"onCopyNormalizeSelectionBound",null),j.pw.add("select",ca),f.D.prototype.tableAllowCellSelection=!0;const ha="table_processor_observer",da="onMoveTableSelectCell";class ua extends Ut.S{constructor(){super(...arguments),this.requires=["select"],this.selectedCell=null,this.isSelectionMode=!1}get module(){return this.j.getInstance("Table",this.j.o)}afterInit(t){t.o.tableAllowCellSelection&&t.e.on("keydown.select-cells",(t=>{t.key===u.KEY_TAB&&this.unselectCells()})).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map((t=>t+".select-cells")).join(" "),this.onStartSelection).on("clickTr clickTbody",(()=>{const t=this.module.getAllSelectedCells().length;if(t)return t>1&&this.j.s.sel?.removeAllRanges(),!1}))}onStartSelection(t){if(this.j.o.readonly)return;if(this.unselectCells(),t===this.j.editor)return;const e=S.i.closest(t,"table",this.j.editor);return t&&e?(t.firstChild||t.appendChild(this.j.createInside.element("br")),this.isSelectionMode=!0,this.selectedCell=t,this.module.addSelection(t),this.j.e.on(e,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.onMove.bind(this,e),{label:da,timeout:this.j.defaultTimeout/2})).on(e,"mouseup.select-cells touchend.select-cells",this.onStopSelection.bind(this,e)),!1):void 0}onOutsideClick(){this.selectedCell=null,this.onRemoveSelection()}onChange(){this.j.isLocked||this.isSelectionMode||this.onRemoveSelection()}onMove(t,e){if(this.j.o.readonly&&!this.j.isLocked)return;if(this.j.isLockedNotBy(ha))return;const s=this.j.ed.elementFromPoint(e.clientX,e.clientY);if(!s)return;const i=S.i.closest(s,["td","th"],t);if(!i||!this.selectedCell)return;i!==this.selectedCell&&this.j.lock(ha),this.unselectCells();const r=Ts.getSelectedBound(t,[i,this.selectedCell]),o=Ts.formalMatrix(t);for(let t=r[0][0];r[1][0]>=t;t+=1)for(let e=r[0][1];r[1][1]>=e;e+=1)this.module.addSelection(o[t][e]);this.module.getAllSelectedCells().length>1&&this.j.s.sel?.removeAllRanges(),this.j.e.fire("hidePopup"),e.stopPropagation(),(()=>{const t=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>');i.appendChild(t),this.j.async.setTimeout((()=>{t.parentNode?.removeChild(t)}),this.j.defaultTimeout/5)})()}onRemoveSelection(t){if(!t?.buffer?.actionTrigger&&!this.selectedCell&&this.module.getAllSelectedCells().length)return this.j.unlock(),this.unselectCells(),void this.j.e.fire("hidePopup","cells");this.isSelectionMode=!1,this.selectedCell=null}onStopSelection(t,e){if(!this.selectedCell)return;this.isSelectionMode=!1,this.j.unlock();const s=this.j.ed.elementFromPoint(e.clientX,e.clientY);if(!s)return;const i=S.i.closest(s,["td","th"],t);if(!i)return;const r=S.i.closest(i,"table",t);if(r&&r!==t)return;const o=Ts.getSelectedBound(t,[i,this.selectedCell]),n=Ts.formalMatrix(t),a=n[o[1][0]][o[1][1]],l=n[o[0][0]][o[0][1]];this.j.e.fire("showPopup",t,(()=>{const t=(0,v.position)(l,this.j),e=(0,v.position)(a,this.j);return{left:t.left,top:t.top,width:e.left-t.left+e.width,height:e.top-t.top+e.height}}),"cells"),(0,v.$$)("table",this.j.editor).forEach((t=>{this.j.e.off(t,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")})),this.j.async.clearTimeout(da)}unselectCells(t){const e=this.module,s=e.getAllSelectedCells();s.length&&s.forEach((s=>{t&&t===s||e.removeSelection(s)}))}onExecCommand(t){if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(t)){t=t.replace("table","");const e=this.module.getAllSelectedCells();if(e.length){const[s]=e;if(!s)return;const i=S.i.closest(s,"table",this.j.editor);if(!i)return;switch(t){case"splitv":Ts.splitVertical(i,this.j);break;case"splitg":Ts.splitHorizontal(i,this.j);break;case"merge":Ts.mergeSelected(i,this.j);break;case"empty":e.forEach((t=>S.i.detach(t)));break;case"bin":S.i.safeRemove(i);break;case"binrow":new Set(e.map((t=>t.parentNode))).forEach((t=>{Ts.removeRow(i,t.rowIndex)}));break;case"bincolumn":{const t=new Set;e.reduce(((e,s)=>(t.has(s.cellIndex)||(e.push(s),t.add(s.cellIndex)),e)),[]).forEach((t=>{Ts.removeColumn(i,t.cellIndex)}))}break;case"addcolumnafter":case"addcolumnbefore":Ts.appendColumn(i,s.cellIndex,"addcolumnafter"===t,this.j.createInside);break;case"addrowafter":case"addrowbefore":Ts.appendRow(i,s.parentNode,"addrowafter"===t,this.j.createInside)}}return!1}}onAfterCommand(t){/^justify/.test(t)&&this.module.getAllSelectedCells().forEach((e=>(0,v.alignElement)(t,e)))}beforeDestruct(t){this.onRemoveSelection(),t.e.off(".select-cells")}}(0,p.gn)([y.autobind],ua.prototype,"onStartSelection",null),(0,p.gn)([(0,y.watch)(":outsideClick")],ua.prototype,"onOutsideClick",null),(0,p.gn)([(0,y.watch)(":change")],ua.prototype,"onChange",null),(0,p.gn)([y.autobind],ua.prototype,"onRemoveSelection",null),(0,p.gn)([y.autobind],ua.prototype,"onStopSelection",null),(0,p.gn)([y.autobind],ua.prototype,"onExecCommand",null),(0,p.gn)([y.autobind],ua.prototype,"onAfterCommand",null),j.pw.add("selectCells",ua);var pa=r(61817);f.D.prototype.minWidth=200,f.D.prototype.maxWidth="100%",f.D.prototype.minHeight=200,f.D.prototype.maxHeight="auto",f.D.prototype.saveHeightInStorage=!1;let fa=class t extends kr.S{constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}afterInit(t){t.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(t.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__initialize()}__initialize(){const{j:t}=this;if(t.o.inline)return;let{height:e}=t.o;if(t.o.saveHeightInStorage&&"auto"!==e){const s=t.storage.get("height");s&&(e=s)}(0,ct.i)(t.editor,{minHeight:"100%"}),(0,ct.i)(t.container,{minHeight:t.o.minHeight,maxHeight:t.o.maxHeight,minWidth:t.o.minWidth,maxWidth:t.o.maxWidth}),this.__setHeight(e),this.__setWidth(t.o.width)}__setHeight(t){if((0,pa.h)(t)){const{minHeight:e,maxHeight:s}=this.j.o;(0,pa.h)(e)&&e>t&&(t=e),(0,pa.h)(s)&&t>s&&(t=s)}(0,ct.i)(this.j.container,"height",t),this.j.o.saveHeightInStorage&&this.j.storage.set("height",t),this.__resizeWorkspaceImd()}__setWidth(t){if((0,pa.h)(t)){const{minWidth:e,maxWidth:s}=this.j.o;(0,pa.h)(e)&&e>t&&(t=e),(0,pa.h)(s)&&t>s&&(t=s)}(0,ct.i)(this.j.container,"width",t),this.__resizeWorkspaceImd()}__getNotWorkHeight(){return(this.j.toolbarContainer?.offsetHeight||0)+(this.j.statusbar?.getHeight()||0)+2}__resizeWorkspaceImd(){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline)return;if(!this.j.container||!this.j.container.parentNode)return;const t=((0,ct.i)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,pa.h)(t)&&t>0&&([this.j.workplace,this.j.iframe,this.j.editor].map((e=>{e&&(0,ct.i)(e,"minHeight",t)})),this.j.e.fire("setMinHeight",t)),(0,pa.h)(this.j.o.maxHeight)){const t=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.iframe,this.j.editor].map((e=>{e&&(0,ct.i)(e,"maxHeight",t)})),this.j.e.fire("setMaxHeight",t)}this.j.container&&(0,ct.i)(this.j.workplace,"height","auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto")}beforeDestruct(t){t.e.off(t.ow,"load.size",this.__resizeWorkspaces).off(".size")}};(0,p.gn)([(0,y.throttle)()],fa.prototype,"__initialize",null),(0,p.gn)([y.autobind],fa.prototype,"__resizeWorkspaceImd",null),fa=(0,p.gn)([y.autobind],fa),j.pw.add("size",fa);class ma{constructor(t,e,s,i){this.jodit=t,this.container=e,this.toWYSIWYG=s,this.fromWYSIWYG=i,this.className="",this.isReady=!1}get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(t){this.isReady?t():this.j.events?.on(this,"ready",t)}}class ga extends ma{constructor(){super(...arguments),this.autosize=this.j.async.debounce((()=>{this.instance.style.height="auto",this.instance.style.height=this.instance.scrollHeight+"px"}),this.j.defaultTimeout)}init(t){this.instance=t.c.element("textarea",{class:"jodit-source__mirror"}),this.container.appendChild(this.instance),t.e.on(this.instance,"mousedown keydown touchstart input",t.async.debounce(this.toWYSIWYG,t.defaultTimeout)).on("setMinHeight.source",(t=>{(0,ct.i)(this.instance,"minHeight",t)})).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",(e=>{t.e.fire(e.type,e)})),this.autosize(),this.onReady()}destruct(){S.i.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(t){this.instance.value=t}insertRaw(t){const e=this.getValue();if(0>this.getSelectionStart())this.setValue(e+t);else{const s=this.getSelectionStart(),i=this.getSelectionEnd();this.setValue(e.substring(0,s)+t+e.substring(i,e.length))}}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(t,e=t){this.instance.setSelectionRange(t,e)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(t){this.instance.setAttribute("placeholder",t)}setReadOnly(t){t?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}selectAll(){this.instance.select()}replaceUndoManager(){const{history:t}=this.jodit;this.j.e.on(this.instance,"keydown",(e=>{if((e.ctrlKey||e.metaKey)&&"z"===e.key)return e.shiftKey?t.redo():t.undo(),this.setSelectionRange(this.getValue().length),!1}))}}class va extends ma{constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=t=>{this.j.e.fire("blur",t)},this.proxyOnFocus=t=>{this.j.e.fire("focus",t)},this.proxyOnMouseDown=t=>{this.j.e.fire("mousedown",t)}}aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(t){return this.instance.session.getLine(t).length}getLastColumnIndices(){const t=this.instance.session.getLength(),e=[];let s=0;for(let i=0;t>i;i++)s+=this.getLastColumnIndex(i),i>0&&(s+=1),e[i]=s;return e}getRowColumnIndices(t){const e=this.getLastColumnIndices();if(e[0]>=t)return{row:0,column:t};let s=1;for(let i=1;e.length>i;i++)t>e[i]&&(s=i+1);return{row:s,column:t-e[s-1]-1}}setSelectionRangeIndices(t,e){const s=this.getRowColumnIndices(t),i=this.getRowColumnIndices(e);this.instance.getSelection().setSelectionRange({start:s,end:i})}getIndexByRowColumn(t,e){return this.getLastColumnIndices()[t]-this.getLastColumnIndex(t)+e}init(t){const e=()=>{if(void 0!==this.instance||!this.aceExists())return;const e=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(e),this.instance=t.ow.ace.edit(e),this.instance.setTheme(t.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(t.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(t.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(t.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",t.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),t.getRealMode()!==u.MODE_WYSIWYG&&this.setValue(this.getValue());const s=this.j.async.debounce((()=>{t.isInDestruct||(this.instance.setOption("maxLines","auto"!==t.o.height?t.workplace.offsetHeight/this.instance.renderer.lineHeight:1/0),this.instance.resize())}),2*this.j.defaultTimeout);t.e.on("afterResize afterSetMode",s),s(),this.onReady()};t.e.on("afterSetMode",(()=>{t.getRealMode()!==u.MODE_SOURCE&&t.getMode()!==u.MODE_SPLIT||(this.fromWYSIWYG(),e())})),e(),this.aceExists()||(0,v.loadNext)(t,t.o.sourceEditorCDNUrlsJS).then((()=>{t.isInDestruct||e()})).catch((()=>null))}destruct(){this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),this.j?.events?.off("aceInited.source")}setValue(t){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){const e=this.j.e.fire("beautifyHTML",t);(0,v.isString)(e)&&(t=e)}this.instance.setValue(t),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(t){this.instance.setReadOnly(t)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){const t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.start.row,t.start.column)}getSelectionEnd(){const t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.end.row,t.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(t){const e=this.instance.selection.getCursor(),s=this.instance.session.insert(e,t);this.instance.selection.setRange({start:e,end:s},!1)}setSelectionRange(t,e){this.setSelectionRangeIndices(t,e)}setPlaceHolder(t){}replaceUndoManager(){const{history:t}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec(){t.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec(){t.redo()}})}}function ba(t,e,s,i,r){let o;if((0,v.isFunction)(t))o=t(e);else switch(t){case"ace":if(!e.o.shadowRoot){o=new va(e,s,i,r);break}default:o=new ga(e,s,i,r)}return o.init(e),o.onReadyAlways((()=>{o.setReadOnly(e.o.readonly)})),o}var ya=r(61097),wa=r.n(ya);f.D.prototype.beautifyHTML=!u.IS_IE,f.D.prototype.sourceEditor="ace",f.D.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},f.D.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],f.D.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],M.J.set("source",wa()),f.D.prototype.controls.source={mode:u.MODE_SPLIT,exec(t){t.toggleMode()},isActive(t){return t.getRealMode()===u.MODE_SOURCE},tooltip:"Change mode"};class _a extends Ut.S{constructor(){super(...arguments),this.buttons=[{name:"source",group:"source"}],this.__lock=!1,this.__oldMirrorValue="",this.tempMarkerStart="{start-jodit-selection}",this.tempMarkerStartReg=/{start-jodit-selection}/g,this.tempMarkerEnd="{end-jodit-selection}",this.tempMarkerEndReg=/{end-jodit-selection}/g,this.getSelectionStart=()=>this.sourceEditor?.getSelectionStart()??0,this.getSelectionEnd=()=>this.sourceEditor?.getSelectionEnd()??0}onInsertHTML(t){if(!this.j.o.readonly&&!this.j.isEditorMode())return this.sourceEditor?.insertRaw(t),this.toWYSIWYG(),!1}fromWYSIWYG(t=!1){if(!this.__lock||!0===t){this.__lock=!0;const t=this.j.getEditorValue(!1,u.SOURCE_CONSUMER);t!==this.getMirrorValue()&&this.setMirrorValue(t),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;const t=this.getMirrorValue();t!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=t,this.__lock=!1,this.__oldMirrorValue=t)}getNormalPosition(t,e){for(e=e.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,(t=>{let e="";for(let s=0;t.length>s;s+=1)e+=u.INVISIBLE_SPACE;return e}));t>0&&e[t]===u.INVISIBLE_SPACE;)t--;let s=t;for(;s>0;){if(s--,"<"===e[s]&&void 0!==e[s+1]&&e[s+1].match(/[\w/]+/i))return s;if(">"===e[s])return t}return t}clnInv(t){return t.replace(u.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(t){if("selectall"===t.toLowerCase()&&this.j.getRealMode()===u.MODE_SOURCE)return this.sourceEditor?.selectAll(),!1}getMirrorValue(){return this.sourceEditor?.getValue()||""}setMirrorValue(t){this.sourceEditor?.setValue(t)}setFocusToMirror(){this.sourceEditor?.focus()}saveSelection(){if(this.j.getRealMode()===u.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;const t=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){const e=this.j.s.marker(!0),s=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(t.substring(0,s)+this.clnInv(e.outerHTML)+t.substring(s))}else{const e=this.j.s.marker(!0),s=this.j.s.marker(!1),i=this.getNormalPosition(this.getSelectionStart(),t),r=this.getNormalPosition(this.getSelectionEnd(),t);this.setMirrorValue(t.slice(0,i)+this.clnInv(e.outerHTML)+t.slice(i,r)+this.clnInv(s.outerHTML)+t.slice(r))}this.toWYSIWYG()}}removeSelection(){if(this.j.getRealMode()===u.MODE_WYSIWYG)return this.__lock=!0,this.j.s.restore(),void(this.__lock=!1);let t=this.getMirrorValue(),e=0,s=0;try{if(t=t.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){const e=this.j.e.fire("beautifyHTML",t);(0,v.isString)(e)&&(t=e)}if(e=t.indexOf(this.tempMarkerStart),s=e,t=t.replace(this.tempMarkerStartReg,""),-1!==e){const e=t.indexOf(this.tempMarkerEnd);-1!==e&&(s=e)}t=t.replace(this.tempMarkerEndReg,"")}finally{t=t.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(t),this.setMirrorSelectionRange(e,s),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(t,e){this.sourceEditor?.setSelectionRange(t,e)}onReadonlyReact(){this.sourceEditor?.setReadOnly(this.j.o.readonly)}afterInit(t){if(this.mirrorContainer=t.c.div("jodit-source"),t.workplace.appendChild(this.mirrorContainer),t.e.on("afterAddPlace changePlace afterInit",(()=>{t.workplace.appendChild(this.mirrorContainer)})),this.sourceEditor=ba("area",t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),t.e.on(t.ow,"keydown",(t=>{t.key===u.KEY_ESC&&this.sourceEditor?.isFocused&&this.sourceEditor.blur()})),this.onReadonlyReact(),t.e.on("placeholder.source",(t=>{this.sourceEditor?.setPlaceHolder(t)})).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",(t=>t)),t.o.beautifyHTML){const e=()=>{if(t.isInDestruct)return!1;const e=t.ow.html_beautify;return!(!e||t.isInDestruct||(t.events?.off("beautifyHTML").on("beautifyHTML",(t=>e(t))),0))};e()||(0,v.loadNext)(t,t.o.beautifyHTMLCDNUrlsJS).then(e)}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(t)}syncValueFromWYSIWYG(t=!1){const e=this.j;e.getMode()!==u.MODE_SPLIT&&e.getMode()!==u.MODE_SOURCE||this.fromWYSIWYG(t)}initSourceEditor(t){if("area"!==t.o.sourceEditor){const e=ba(t.o.sourceEditor,t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);e.onReadyAlways((()=>{this.sourceEditor?.destruct(),this.sourceEditor=e,this.syncValueFromWYSIWYG(!0),t.events?.fire("sourceEditorReady",t)}))}else this.sourceEditor?.onReadyAlways((()=>{this.syncValueFromWYSIWYG(!0),t.events?.fire("sourceEditorReady",t)}))}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),S.i.safeRemove(this.mirrorContainer)}}(0,p.gn)([(0,y.watch)(":insertHTML.source")],_a.prototype,"onInsertHTML",null),(0,p.gn)([y.autobind],_a.prototype,"fromWYSIWYG",null),(0,p.gn)([y.autobind],_a.prototype,"toWYSIWYG",null),(0,p.gn)([y.autobind],_a.prototype,"getNormalPosition",null),(0,p.gn)([(0,y.watch)(":beforeCommand.source")],_a.prototype,"onSelectAll",null),(0,p.gn)([(0,y.watch)(":beforeSetMode.source")],_a.prototype,"saveSelection",null),(0,p.gn)([(0,y.watch)(":afterSetMode.source")],_a.prototype,"removeSelection",null),(0,p.gn)([y.autobind],_a.prototype,"setMirrorSelectionRange",null),(0,p.gn)([(0,y.watch)(":readonly.source")],_a.prototype,"onReadonlyReact",null),(0,p.gn)([y.autobind],_a.prototype,"syncValueFromWYSIWYG",null),j.pw.add("source",_a);var Ca=r(31398),Sa=r.n(Ca);f.D.prototype.spellcheck=!1,M.J.set("spellcheck",Sa()),f.D.prototype.controls.spellcheck={isActive:t=>t.o.spellcheck,icon:Sa(),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"};class Ea extends Ut.S{constructor(t){super(t),this.buttons=[{group:"state",name:"spellcheck"}],(0,j.xl)(l)}afterInit(t){t.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),t.registerCommand("toggleSpellcheck",(()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")}))}toggleSpellcheck(){(0,yt.L)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(t){}}(0,p.gn)([y.autobind],Ea.prototype,"toggleSpellcheck",null),j.pw.add("spellcheck",Ea),f.D.prototype.showCharsCounter=!0,f.D.prototype.countHTMLChars=!1,f.D.prototype.showWordsCounter=!0,j.pw.add("stat",class xa extends kr.S{constructor(){super(...arguments),this.charCounter=null,this.wordCounter=null,this.reInit=()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()},this.calc=this.j.async.throttle((()=>{const t=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){const e=this.j.o.countHTMLChars?this.j.value:t.replace((0,u.SPACE_REG_EXP)(),"");this.charCounter.textContent=this.j.i18n("Chars: %d",e.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",t.replace((0,u.INVISIBLE_SPACE_REG_EXP)(),"").split((0,u.SPACE_REG_EXP)()).filter((t=>t.length)).length))}),this.j.defaultTimeout)}afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){S.i.safeRemove(this.charCounter),S.i.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}}),f.D.prototype.toolbarSticky=!0,f.D.prototype.toolbarDisableStickyForMobile=!0,f.D.prototype.toolbarStickyOffset=0;class ja extends kr.S{constructor(){super(...arguments),this.isToolbarSticked=!1,this.createDummy=t=>{u.IS_ES_NEXT||!u.IS_IE||this.dummyBox||(this.dummyBox=this.j.c.div(),this.dummyBox.classList.add("jodit_sticky-dummy_toolbar"),this.j.container.insertBefore(this.dummyBox,t))},this.addSticky=t=>{this.isToolbarSticked||(this.createDummy(t),this.j.container.classList.add("jodit_sticky"),this.isToolbarSticked=!0),(0,v.css)(t,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),!u.IS_ES_NEXT&&u.IS_IE&&this.dummyBox&&(0,v.css)(this.dummyBox,{height:t.offsetHeight})},this.removeSticky=t=>{this.isToolbarSticked&&((0,v.css)(t,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.isToolbarSticked=!1)}}afterInit(t){t.e.on(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.onScroll).on("getStickyState.sticky",(()=>this.isToolbarSticked))}onScroll(){const{jodit:t}=this,e=t.ow.pageYOffset||t.od.documentElement&&t.od.documentElement.scrollTop||0,s=(0,v.offset)(t.container,t,t.od,!0),i=t.getMode()===u.MODE_WYSIWYG&&e+t.o.toolbarStickyOffset>s.top&&s.top+s.height>e+t.o.toolbarStickyOffset&&!(t.o.toolbarDisableStickyForMobile&&this.isMobile());if(t.o.toolbarSticky&&!0===t.o.toolbar&&this.isToolbarSticked!==i){const e=t.toolbarContainer;e&&(i?this.addSticky(e):this.removeSticky(e)),t.e.fire("toggleSticky",i)}}isMobile(){return this.j&&this.j.options&&this.j.container&&this.j.o.sizeSM>=this.j.container.offsetWidth}beforeDestruct(t){this.dummyBox&&S.i.safeRemove(this.dummyBox),t.e.off(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.onScroll).off(".sticky")}}(0,p.gn)([(0,y.throttle)()],ja.prototype,"onScroll",null),j.pw.add("sticky",ja);var Ia=r(1296),ka=r.n(Ia);f.D.prototype.usePopupForSpecialCharacters=!1,f.D.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],M.J.set("symbols",ka()),f.D.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(t,e,s,i){const r=t.e.fire("generateSpecialCharactersTable.symbols");if(r){if(t.o.usePopupForSpecialCharacters){const e=t.c.div();return e.classList.add("jodit-symbols"),e.appendChild(r),t.e.on(r,"close_dialog",i),e}{t.alert(r,"Select Special Character",void 0,"jodit-symbols").bindDestruct(t);const e=r.querySelector("a");e&&e.focus()}}}},j.pw.add("symbols",class Ta extends kr.S{constructor(t){super(t),this.buttons=[{name:"symbols",group:"insert"}],this.countInRow=17,(0,j.xl)(c)}afterInit(t){t.e.on("generateSpecialCharactersTable.symbols",(()=>{const e=t.c.fromHTML('<div class="jodit-symbols__container">\n\t\t\t\t\t\t<div class="jodit-symbols__container_table">\n\t\t\t\t\t\t\t<table class="jodit-symbols__table"><tbody></tbody></table>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="jodit-symbols__container_preview">\n\t\t\t\t\t\t\t<div class="jodit-symbols__preview"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>'),s=e.querySelector(".jodit-symbols__preview"),i=e.querySelector("table").tBodies[0],r=[];for(let e=0;t.o.specialCharacters.length>e;){const s=t.c.element("tr");for(let i=0;this.countInRow>i&&t.o.specialCharacters.length>e;i+=1,e+=1){const o=t.c.element("td"),n=t.c.fromHTML(`<a\n\t\t\t\t\t\t\t\t\tdata-index="${e}"\n\t\t\t\t\t\t\t\t\tdata-index-j="${i}"\n\t\t\t\t\t\t\t\t\trole="option"\n\t\t\t\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\t\t>${t.o.specialCharacters[e]}</a>`);r.push(n),o.appendChild(n),s.appendChild(o)}i.appendChild(s)}const o=this;return t.e.on(r,"focus",(function(){s.innerHTML=this.innerHTML})).on(r,"mousedown",(function(e){S.i.isTag(this,"a")&&(t.s.focus(),t.s.insertHTML(this.innerHTML),t.e.fire(this,"close_dialog"),e&&e.preventDefault(),e&&e.stopImmediatePropagation())})).on(r,"mouseenter",(function(){S.i.isTag(this,"a")&&this.focus()})).on(r,"keydown",(e=>{const s=e.target;if(S.i.isTag(s,"a")){const i=parseInt((0,k.attr)(s,"-index")||"0",10),n=parseInt((0,k.attr)(s,"data-index-j")||"0",10);let a;switch(e.key){case u.KEY_UP:case u.KEY_DOWN:a=e.key===u.KEY_UP?i-o.countInRow:i+o.countInRow,void 0===r[a]&&(a=e.key===u.KEY_UP?Math.floor(r.length/o.countInRow)*o.countInRow+n:n,a>r.length-1&&(a-=o.countInRow)),r[a]&&r[a].focus();break;case u.KEY_RIGHT:case u.KEY_LEFT:a=e.key===u.KEY_LEFT?i-1:i+1,void 0===r[a]&&(a=e.key===u.KEY_LEFT?r.length-1:0),r[a]&&r[a].focus();break;case u.KEY_ENTER:t.e.fire(s,"mousedown"),e.stopImmediatePropagation(),e.preventDefault()}}})),e}))}beforeDestruct(t){t.e.off("generateSpecialCharactersTable.symbols")}}),f.D.prototype.tab={tabInsideLiInsertNewList:!0};class La extends Ut.S{afterInit(t){}__onTab(t){if(t.key===u.KEY_TAB&&this.__onShift(t.shiftKey))return!1}__onCommand(t){if(("indent"===t||"outdent"===t)&&this.__onShift("outdent"===t))return!1}__onShift(t){const e=((t,e=!1)=>{if(!t.o.tab.tabInsideLiInsertNewList)return!1;const[s,i]=(t=>{const e=t.createInside.fake(),s=t.createInside.fake(),i=t.s.range.cloneRange();i.collapse(!0),i.insertNode(e);const r=t.s.range.cloneRange();return r.collapse(!1),r.insertNode(s),[e,s]})(t);try{const i=((t,e,s)=>{const i=S.i.closest(e,"li",t.editor);return!!i&&!(!s&&!S.i.isLeaf(i.previousElementSibling))&&!(s&&!S.i.closest(i,"li",t.editor))&&i})(t,s,e);if(!i)return!1;if(!((t,e,s)=>{const i=S.i.closest(s,"li",e.editor);return!(!i||i!==t&&!t.contains(i))})(i,t,s))return!1;const r=S.i.closest(i,["ol","ul"],t.editor);return!(!r||e&&!S.i.closest(r,"li",t.editor)||(e?((t,e,s)=>{const i=S.i.closest(e,"li",t.editor),r=Array.from(e.children).filter((t=>S.i.isLeaf(t)));S.i.after(i,s);const o=r.indexOf(s);if(0!==o&&1!==r.length||S.i.safeRemove(e),o!==r.length-1){const t=e.cloneNode();S.i.append(s,t);for(let e=o+1;r.length>e;e+=1)S.i.append(t,r[e])}})(t,r,i):((t,e,s)=>{const i=s.previousElementSibling,r=i.lastElementChild,o=S.i.isTag(r,e.tagName)?r:t.createInside.element(e.tagName,Array.from(e.attributes).reduce(((t,e)=>(t[e.name]=e.value,t)),{}));o.appendChild(s),r!==o&&i.appendChild(o)})(t,r,i),0))}finally{const e=t.s.createRange();e.setStartAfter(s),e.setEndBefore(i),t.s.selectRange(e),S.i.safeRemove(s),S.i.safeRemove(i)}return!1})(this.j,t);return e&&this.j.e.fire("afterTab",t),e}beforeDestruct(t){}}(0,p.gn)([(0,y.watch)(":keydown.tab")],La.prototype,"__onTab",null),(0,p.gn)([(0,y.watch)(":beforeCommand.tab")],La.prototype,"__onCommand",null),j.pw.add("tab",La);var Ma=r(18508),Pa=r.n(Ma);f.D.prototype.table={selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},M.J.set("table",Pa()),f.D.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup(t,e,s,i,r){const o=s.data&&s.data.rows?s.data.rows:10,n=s.data&&s.data.cols?s.data.cols:10,a=t.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+(()=>{if(!t.o.table.useExtraClassesOptions)return"";const e=[];if(s.data){const t=s.data.classList;Object.keys(t).forEach((s=>{e.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${s}" type="checkbox"/>${t[s]}</label>`)}))}return e.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> &times; <span>1</span></label></form>'),l=a.querySelectorAll("span")[0],c=a.querySelectorAll("span")[1],h=a.querySelector(".jodit-form__container"),d=a.querySelector(".jodit-form__options"),u=[],p=o*n;for(let e=0;p>e;e+=1)u[e]||u.push(t.c.element("span",{dataIndex:e}));if(t.e.on(h,"mousemove",((t,e)=>{const s=t.target;if(!X.i.isTag(s,"span"))return;const i=void 0===e||isNaN(e)?parseInt((0,k.attr)(s,"-index")||"0",10):e||0,r=Math.ceil((i+1)/n),o=i%n+1;for(let t=0;u.length>t;t+=1)u[t].className=t%n+1>o||Math.ceil((t+1)/n)>r?"":"jodit_hovered";c.textContent=""+o,l.textContent=""+r})).on(h,"touchstart mousedown",(e=>{const s=e.target;if(e.preventDefault(),e.stopImmediatePropagation(),!X.i.isTag(s,"span"))return;const r=parseInt((0,k.attr)(s,"-index")||"0",10),o=Math.ceil((r+1)/n),a=r%n+1,l=t.createInside,c=l.element("tbody"),h=l.element("table");h.appendChild(c);let u,p,f=null;for(let t=1;o>=t;t+=1){u=l.element("tr");for(let t=1;a>=t;t+=1)p=l.element("td"),f||(f=p),(0,v.css)(p,"width",(100/a).toFixed(4)+"%"),p.appendChild(l.element("br")),u.appendChild(l.text("\n")),u.appendChild(l.text("\t")),u.appendChild(p);c.appendChild(l.text("\n")),c.appendChild(u)}(0,v.$$)("input[type=checkbox]:checked",d).forEach((t=>{t.value.split(/[\s]+/).forEach((t=>{h.classList.add(t)}))})),t.editor.firstChild&&t.s.insertNode(l.text("\n"),!1,!1),t.s.insertNode(h,!1),f&&(t.s.setCursorIn(f),(0,v.scrollIntoViewIfNeeded)(f,t.editor,t.ed)),i()})),r&&r.parentElement){for(let e=0;o>e;e+=1){const s=t.c.div();for(let t=0;n>t;t+=1)s.appendChild(u[e*n+t]);h.appendChild(s)}u[0]&&(u[0].className="hovered")}return a},tooltip:"Insert table"},j.pw.add("table",(t=>{t.registerButton({name:"table",group:"insert"})})),j.pw.add("tableKeyboardNavigation",(t=>{t.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",(e=>{let s,i;if(e.key!==u.KEY_TAB&&e.key!==u.KEY_LEFT&&e.key!==u.KEY_RIGHT&&e.key!==u.KEY_UP&&e.key!==u.KEY_DOWN)return;{if(s=t.s.current(),i=S.i.up(s,(t=>t&&t.nodeName&&/^td|th$/i.test(t.nodeName)),t.editor),!i)return;const r=t.s.range;if(e.key!==u.KEY_TAB&&s!==i&&((e.key===u.KEY_LEFT||e.key===u.KEY_UP)&&(S.i.prev(s,(t=>e.key===u.KEY_UP?S.i.isTag(t,"br"):!!t),i)||e.key!==u.KEY_UP&&S.i.isText(s)&&0!==r.startOffset)||(e.key===u.KEY_RIGHT||e.key===u.KEY_DOWN)&&(S.i.next(s,(t=>e.key===u.KEY_DOWN?S.i.isTag(t,"br"):!!t),i)||e.key!==u.KEY_DOWN&&S.i.isText(s)&&s.nodeValue&&r.startOffset!==s.nodeValue.length)))return}const r=S.i.up(i,(t=>t&&/^table$/i.test(t.nodeName)),t.editor);let o=null;switch(e.key){case u.KEY_TAB:case u.KEY_LEFT:{const s=e.key===u.KEY_LEFT||e.shiftKey?"prev":"next";o=S.i[s](i,(t=>t&&/^td|th$/i.test(t.tagName)),r),o||(Ts.appendRow(r,"next"!==s&&r.querySelector("tr"),"next"===s,t.createInside),o=S.i[s](i,S.i.isCell,r));break}case u.KEY_UP:case u.KEY_DOWN:{let t=0,s=0;const n=Ts.formalMatrix(r,((e,r,o)=>{e===i&&(t=r,s=o)}));e.key===u.KEY_UP?void 0!==n[t-1]&&(o=n[t-1][s]):void 0!==n[t+1]&&(o=n[t+1][s])}}if(o){if(o.firstChild)e.key===u.KEY_TAB?t.s.select(o,!0):t.s.setCursorIn(o,e.key===u.KEY_RIGHT||e.key===u.KEY_DOWN);else{const e=t.createInside.element("br");o.appendChild(e),t.s.setCursorBefore(e)}return!1}}))}));var Na=r(97627);M.J.set("video",r.n(Na)()),f.D.prototype.controls.video={popup(t,e,s,i){const r=new _t(t,[new It(t,[new vt(t,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new It(t,[U(t,"","Insert","primary").onAction((()=>r.submit()))])]),o=new _t(t,[new It(t,[new St(t,{name:"code",required:!0,label:"Embed code"})]),new It(t,[U(t,"","Insert","primary").onAction((()=>o.submit()))])]),n=[],a=e=>{t.s.restore(),t.s.insertHTML(e),i()};return t.s.save(),n.push({icon:"link",name:"Link",content:r.container},{icon:"source",name:"Code",content:o.container}),r.onSubmit((t=>{a((0,v.convertMediaUrlToVideoEmbed)(t.url))})),o.onSubmit((t=>{a(t.code)})),eo(t,n)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"},j.pw.add("video",(t=>{t.registerButton({name:"video",group:"media"})})),f.D.prototype.wrapNodes={exclude:["hr","style","br"],emptyBlockAfterInit:!0};class za extends Ut.S{constructor(){super(...arguments),this.isSuitableStart=t=>X.i.isText(t)&&(0,T.H)(t.nodeValue)&&/[^\s]/.test(t.nodeValue)||this.isNotClosed(t)&&!X.i.isTemporary(t),this.isSuitable=t=>X.i.isText(t)||this.isNotClosed(t),this.isNotClosed=t=>X.i.isElement(t)&&!(X.i.isBlock(t)||X.i.isTag(t,this.j.o.wrapNodes.exclude))}afterInit(t){"br"!==t.o.enter.toLowerCase()&&t.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn",this.postProcessSetEditorValue)}beforeDestruct(t){t.e.off(".wtn")}postProcessSetEditorValue(){const{jodit:t}=this;if(!t.isEditorMode())return;let e=t.editor.firstChild,s=!1;for(;e;){if(e=this.checkAloneListLeaf(e,t),this.isSuitableStart(e)){s||t.s.save(),s=!0;const i=t.createInside.element(t.o.enter);for(X.i.before(e,i);e&&this.isSuitable(e);){const t=e.nextSibling;i.appendChild(e),e=t}i.normalize(),e=i}e=e&&e.nextSibling}s&&(t.s.restore(),"afterInit"===t.e.current&&t.e.fire("internalChange"))}checkAloneListLeaf(t,e){let s=t,i=t;do{if(!X.i.isElement(i)||!X.i.isLeaf(i)||X.i.isList(i.parentElement))break;{const t=X.i.findNotEmptySibling(i,!1);X.i.isTag(s,"ul")?s.appendChild(i):s=X.i.wrap(i,"ul",e.createInside),i=t}}while(i);return s}preprocessInput(){const{jodit:t}=this,e="afterInit"===t.e.current;if(!t.isEditorMode()||t.editor.firstChild||!t.o.wrapNodes.emptyBlockAfterInit&&e)return;const s=t.createInside.element(t.o.enter),i=t.createInside.element("br");X.i.append(s,i),X.i.append(t.editor,s),t.s.isFocused()&&t.s.setCursorBefore(i),t.e.fire("internalChange")}}(0,p.gn)([y.autobind],za.prototype,"postProcessSetEditorValue",null),(0,p.gn)([y.autobind],za.prototype,"preprocessInput",null),j.pw.add("wrapNodes",za);var Da=r(46163);function Ra(t,e){if(S.i.isFragment(e)&&(e=e.firstChild),t.o.dtd.checkBlockNesting&&S.i.isBlock(e)){const e=S.i.furthest(t.s.current(),S.i.isBlock,t.editor);e&&!t.o.dtd.blockLimits[e.tagName.toLowerCase()]&&(t.s.setCursorAfter(e),S.i.isEmpty(e)&&S.i.safeRemove(e))}}f.D.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}};const Aa=new Set(["table","pre","blockquote","code"]);function qa(t,e){if(!t.o.dtd.removeExtraBr||S.i.isTag(e,"br"))return;const s=S.i.furthest(e,S.i.isBlock,t.editor);if(s&&!S.i.isTag(s,Aa)){const s=S.i.isTag(e,"br")?e:S.i.findNotEmptySibling(e,!1);if(!S.i.isTag(s,"br"))return;t.s.setCursorBefore(s),S.i.safeRemove(s)}}class Oa extends Ut.S{afterInit(t){}beforeDestruct(t){}__onBeforeInsertNode(t){Object.keys(h).forEach((e=>{h[e](this.j,t)}))}__onAfterInsertNode(t){Object.keys(d).forEach((e=>{d[e](this.j,t)}))}}(0,p.gn)([(0,Da.YP)(":beforeInsertNode")],Oa.prototype,"__onBeforeInsertNode",null),(0,p.gn)([(0,Da.YP)(":afterInsertNode")],Oa.prototype,"__onAfterInsertNode",null),j.pw.add("dtd",Oa),f.D.prototype.showXPathInStatusbar=!0,j.pw.add("xpath",class Ba extends Ut.S{constructor(){super(...arguments),this.onContext=(t,e)=>(this.menu||(this.menu=new Q(this.j)),this.menu.show(e.clientX,e.clientY,[{icon:"bin",title:t===this.j.editor?"Clear":"Remove",exec:()=>{t!==this.j.editor?X.i.safeRemove(t):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(t)}}]),!1),this.onSelectPath=(t,e)=>{this.j.s.focus();const s=(0,v.attr)(e.target,"-path")||"/";if("/"===s)return this.j.execCommand("selectall"),!1;try{const t=this.j.ed.evaluate(s,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(t)return this.j.s.select(t),!1}catch{}return this.j.s.select(t),!1},this.tpl=(t,e,s,i)=>{const r=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${e}" title="${i}" tabindex="-1"'>${(0,v.trim)(s)}</a></span>`),o=r.firstChild;return this.j.e.on(o,"click",this.onSelectPath.bind(this,t)).on(o,"contextmenu",this.onContext.bind(this,t)),r},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=Ot(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)},this.calcPathImd=()=>{if(this.isDestructed)return;const t=this.j.s.current();if(this.container&&(this.container.innerHTML=u.INVISIBLE_SPACE),t){let e,s,i;X.i.up(t,(t=>{t&&this.j.editor!==t&&!X.i.isText(t)&&(e=t.nodeName.toLowerCase(),s=(0,v.getXPathByElement)(t,this.j.editor).replace(/^\//,""),i=this.tpl(t,s,e,this.j.i18n("Select %s",e)),this.container&&this.container.insertBefore(i,this.container.firstChild))}),this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout)}afterInit(){this.j.o.showXPathInStatusbar&&(this.container=this.j.c.div("jodit-xpath"),this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",(()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===u.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=u.INVISIBLE_SPACE),this.appendSelectAll()))})),this.calcPath())}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),X.i.safeRemove(this.container),delete this.menu,delete this.container}}),"undefined"!=typeof process&&"es5"===u.ES&&"undefined"!=typeof window&&r(89019),Object.keys(u).forEach((t=>{Jodit[t]=u[t]}));const Ha=t=>"__esModule"!==t;Object.keys(s).filter(Ha).forEach((t=>{M.J.set(t.replace("_","-"),s[t])})),Object.keys(e).filter(Ha).forEach((t=>{Jodit.modules[t]=e[t]})),Object.keys(y).filter(Ha).forEach((t=>{Jodit.decorators[t]=y[t]})),["Confirm","Alert","Prompt"].forEach((t=>{Jodit[t]=e[t]})),Object.keys(Js).filter(Ha).forEach((t=>{Jodit.lang[t]=Js[t]}));class Fa{}}(),r.O(o)}()}));