/* Youtube Gallery Version: 3.5.0 Release date: Fri Dec 25 2020 https://elfsight.com Copyright (c) 2020 Elfsight, LLC. ALL RIGHTS RESERVED */ (function(window){"use strict"; !function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=224)}([function(e,t,o){var n=o(38)("wks"),i=o(32),r=o(2).Symbol,a="function"==typeof r;(e.exports=function(e){return n[e]||(n[e]=a&&r[e]||(a?r:i)("Symbol."+e))}).store=n},function(e,t,o){var n=o(10).f,i=Function.prototype,r=/^\s*function ([^ (]*)/;"name"in i||o(11)&&n(i,"name",{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},function(e,t){var o=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=o)},function(e,t,o){var n=o(12);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,o){"use strict";var n=o(2),i=o(17),r=o(11),a=o(5),s=o(13),l=o(159).KEY,c=o(9),d=o(38),p=o(41),u=o(32),f=o(0),h=o(69),g=o(68),m=o(160),v=o(73),b=o(3),y=o(12),x=o(18),_=o(39),w=o(33),k=o(74),j=o(163),C=o(76),S=o(10),A=o(28),M=C.f,E=S.f,z=j.f,T=n.Symbol,D=n.JSON,L=D&&D.stringify,I=f("_hidden"),P=f("toPrimitive"),O={}.propertyIsEnumerable,q=d("symbol-registry"),N=d("symbols"),R=d("op-symbols"),B=Object.prototype,V="function"==typeof T,H=n.QObject,F=!H||!H.prototype||!H.prototype.findChild,W=r&&c((function(){return 7!=k(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a}))?function(e,t,o){var n=M(B,t);n&&delete B[t],E(e,t,o),n&&e!==B&&E(B,t,n)}:E,$=function(e){var t=N[e]=k(T.prototype);return t._k=e,t},U=V&&"symbol"==typeof T.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof T},Y=function(e,t,o){return e===B&&Y(R,t,o),b(e),t=_(t,!0),b(o),i(N,t)?(o.enumerable?(i(e,I)&&e[I][t]&&(e[I][t]=!1),o=k(o,{enumerable:w(0,!1)})):(i(e,I)||E(e,I,w(1,{})),e[I][t]=!0),W(e,t,o)):E(e,t,o)},K=function(e,t){b(e);for(var o,n=m(t=x(t)),i=0,r=n.length;r>i;)Y(e,o=n[i++],t[o]);return e},G=function(e){var t=O.call(this,e=_(e,!0));return!(this===B&&i(N,e)&&!i(R,e))&&(!(t||!i(this,e)||!i(N,e)||i(this,I)&&this[I][e])||t)},J=function(e,t){if(e=x(e),t=_(t,!0),e!==B||!i(N,t)||i(R,t)){var o=M(e,t);return!o||!i(N,t)||i(e,I)&&e[I][t]||(o.enumerable=!0),o}},X=function(e){for(var t,o=z(x(e)),n=[],r=0;o.length>r;)i(N,t=o[r++])||t==I||t==l||n.push(t);return n},Z=function(e){for(var t,o=e===B,n=z(o?R:x(e)),r=[],a=0;n.length>a;)!i(N,t=n[a++])||o&&!i(B,t)||r.push(N[t]);return r};V||(s((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var e=u(arguments.length>0?arguments[0]:void 0),t=function(o){this===B&&t.call(R,o),i(this,I)&&i(this[I],e)&&(this[I][e]=!1),W(this,e,w(1,o))};return r&&F&&W(B,e,{configurable:!0,set:t}),$(e)}).prototype,"toString",(function(){return this._k})),C.f=J,S.f=Y,o(57).f=j.f=X,o(44).f=G,o(43).f=Z,r&&!o(31)&&s(B,"propertyIsEnumerable",G,!0),h.f=function(e){return $(f(e))}),a(a.G+a.W+a.F*!V,{Symbol:T});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)f(Q[ee++]);for(var te=A(f.store),oe=0;te.length>oe;)g(te[oe++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return i(q,e+="")?q[e]:q[e]=T(e)},keyFor:function(e){if(!U(e))throw TypeError(e+" is not a symbol!");for(var t in q)if(q[t]===e)return t},useSetter:function(){F=!0},useSimple:function(){F=!1}}),a(a.S+a.F*!V,"Object",{create:function(e,t){return void 0===t?k(e):K(k(e),t)},defineProperty:Y,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),D&&a(a.S+a.F*(!V||c((function(){var e=T();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))}))),"JSON",{stringify:function(e){for(var t,o,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(o=t=n[1],(y(t)||void 0!==e)&&!U(e))return v(t)||(t=function(e,t){if("function"==typeof o&&(t=o.call(this,e,t)),!U(t))return t}),n[1]=t,L.apply(D,n)}}),T.prototype[P]||o(14)(T.prototype,P,T.prototype.valueOf),p(T,"Symbol"),p(Math,"Math",!0),p(n.JSON,"JSON",!0)},function(e,t,o){var n=o(2),i=o(16),r=o(14),a=o(13),s=o(27),l=function(e,t,o){var c,d,p,u,f=e&l.F,h=e&l.G,g=e&l.S,m=e&l.P,v=e&l.B,b=h?n:g?n[t]||(n[t]={}):(n[t]||{}).prototype,y=h?i:i[t]||(i[t]={}),x=y.prototype||(y.prototype={});for(c in h&&(o=t),o)p=((d=!f&&b&&void 0!==b[c])?b:o)[c],u=v&&d?s(p,n):m&&"function"==typeof p?s(Function.call,p):p,b&&a(b,c,p,e&l.U),y[c]!=p&&r(y,c,u),m&&x[c]!=p&&(x[c]=p)};n.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,o){for(var n=o(21),i=o(28),r=o(13),a=o(2),s=o(14),l=o(35),c=o(0),d=c("iterator"),p=c("toStringTag"),u=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(f),g=0;g0?i(n(e),9007199254740991):0}},function(e,t,o){var n=o(30);e.exports=function(e){return Object(n(e))}},function(e,t,o){"use strict";var n=o(61),i=o(166),r=o(35),a=o(18);e.exports=o(78)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,o=this._i++;return!e||o>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?o:"values"==t?e[o]:[o,e[o]])}),"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},function(e,t,o){"use strict";o(170);var n=o(3),i=o(60),r=o(11),a=/./.toString,s=function(e){o(13)(RegExp.prototype,"toString",e,!0)};o(9)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?s((function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!r&&e instanceof RegExp?i.call(e):void 0)})):"toString"!=a.name&&s((function(){return a.call(this)}))},function(e,t,o){var n=Date.prototype,i=n.toString,r=n.getTime;new Date(NaN)+""!="Invalid Date"&&o(13)(n,"toString",(function(){var e=r.call(this);return e==e?i.call(this):"Invalid Date"}))},function(e,t,o){"use strict";var n=o(77)(!0);o(78)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,o=this._i;return o>=t.length?{value:void 0,done:!0}:(e=n(t,o),this._i+=e.length,{value:e,done:!1})}))},function(e,t,o){"use strict";var n=o(27),i=o(5),r=o(20),a=o(79),s=o(80),l=o(19),c=o(81),d=o(82);i(i.S+i.F*!o(83)((function(e){Array.from(e)})),"Array",{from:function(e){var t,o,i,p,u=r(e),f="function"==typeof this?this:Array,h=arguments.length,g=h>1?arguments[1]:void 0,m=void 0!==g,v=0,b=d(u);if(m&&(g=n(g,h>2?arguments[2]:void 0,2)),null==b||f==Array&&s(b))for(o=new f(t=l(u.length));t>v;v++)c(o,v,m?g(u[v],v):u[v]);else for(p=b.call(u),o=new f;!(i=p.next()).done;v++)c(o,v,m?a(p,g,[i.value,v],!0):i.value);return o.length=v,o}})},function(e,t,o){"use strict";var n=o(84),i=o(3),r=o(85),a=o(58),s=o(19),l=o(45),c=o(59),d=o(9),p=Math.min,u=[].push,f=!d((function(){RegExp(4294967295,"y")}));o(47)("split",2,(function(e,t,o,d){var h;return h="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!n(e))return o.call(i,e,t);for(var r,a,s,l=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,f=void 0===t?4294967295:t>>>0,h=new RegExp(e.source,d+"g");(r=c.call(h,i))&&!((a=h.lastIndex)>p&&(l.push(i.slice(p,r.index)),r.length>1&&r.index=f));)h.lastIndex===r.index&&h.lastIndex++;return p===i.length?!s&&h.test("")||l.push(""):l.push(i.slice(p)),l.length>f?l.slice(0,f):l}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:o.call(this,e,t)}:o,[function(o,n){var i=e(this),r=null==o?void 0:o[t];return void 0!==r?r.call(o,i,n):h.call(String(i),o,n)},function(e,t){var n=d(h,e,this,t,h!==o);if(n.done)return n.value;var c=i(e),u=String(this),g=r(c,RegExp),m=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(f?"y":"g"),b=new g(f?c:"^(?:"+c.source+")",v),y=void 0===t?4294967295:t>>>0;if(0===y)return[];if(0===u.length)return null===l(b,u)?[u]:[];for(var x=0,_=0,w=[];_]*>)/g,f=/\$([$&`']|\d\d?)/g,h=function(e){return void 0===e?e:String(e)};o(47)("replace",2,(function(e,t,o,g){return[function(n,i){var r=e(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,r,i):o.call(String(r),n,i)},function(e,t){var i=g(o,e,this,t);if(i.done)return i.value;var p=n(e),u=String(this),f="function"==typeof t;f||(t=String(t));var v=p.global;if(v){var b=p.unicode;p.lastIndex=0}for(var y=[];;){var x=l(p,u);if(null===x)break;if(y.push(x),!v)break;""===String(x[0])&&(p.lastIndex=s(u,r(p.lastIndex),b))}for(var _="",w=0,k=0;k=w&&(_+=u.slice(w,C)+z,w=C+j.length)}return _+u.slice(w)}];function m(e,t,n,r,a,s){var l=n+e.length,c=r.length,d=f;return void 0!==a&&(a=i(a),d=u),o.call(s,d,(function(o,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(l);case"<":s=a[i.slice(1,-1)];break;default:var d=+i;if(0===d)return o;if(d>c){var u=p(d/10);return 0===u?o:u<=c?void 0===r[u-1]?i.charAt(1):r[u-1]+i.charAt(1):o}s=r[d-1]}return void 0===s?"":s}))}}))},function(e,t){e.exports={}},function(e,t,o){var n=o(182),i=o(188);e.exports=function(e,t){var o=i(e,t);return n(o)?o:void 0}},function(e,t,o){var n=o(5);n(n.S+n.F,"Object",{assign:o(203)})},function(e,t,o){var n=o(16),i=o(2),r=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:o(31)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,o){var n=o(12);e.exports=function(e,t){if(!n(e))return e;var o,i;if(t&&"function"==typeof(o=e.toString)&&!n(i=o.call(e)))return i;if("function"==typeof(o=e.valueOf)&&!n(i=o.call(e)))return i;if(!t&&"function"==typeof(o=e.toString)&&!n(i=o.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,o){var n=o(10).f,i=o(17),r=o(0)("toStringTag");e.exports=function(e,t,o){e&&!i(e=o?e:e.prototype,r)&&n(e,r,{configurable:!0,value:t})}},function(e,t){var o=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:o)(e)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,o){"use strict";var n=o(46),i=RegExp.prototype.exec;e.exports=function(e,t){var o=e.exec;if("function"==typeof o){var r=o.call(e,t);if("object"!=typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==n(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,o){var n=o(29),i=o(0)("toStringTag"),r="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,o,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?o:r?n(t):"Object"==(a=n(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,o){"use strict";o(165);var n=o(13),i=o(14),r=o(9),a=o(30),s=o(0),l=o(59),c=s("species"),d=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),p=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var o="ab".split(e);return 2===o.length&&"a"===o[0]&&"b"===o[1]}();e.exports=function(e,t,o){var u=s(e),f=!r((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),h=f?!r((function(){var t=!1,o=/a/;return o.exec=function(){return t=!0,null},"split"===e&&(o.constructor={},o.constructor[c]=function(){return o}),o[u](""),!t})):void 0;if(!f||!h||"replace"===e&&!d||"split"===e&&!p){var g=/./[u],m=o(a,u,""[e],(function(e,t,o,n,i){return t.exec===l?f&&!i?{done:!0,value:g.call(t,o,n)}:{done:!0,value:e.call(o,t,n)}:{done:!1}})),v=m[0],b=m[1];n(String.prototype,e,v),i(RegExp.prototype,u,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},function(e,t,o){var n=o(88),i=o(184),r=o(185),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):r(e)}},function(e,t,o){"use strict";var n=o(3),i=o(216),r=o(45);o(47)("search",1,(function(e,t,o,a){return[function(o){var n=e(this),i=null==o?void 0:o[t];return void 0!==i?i.call(o,n):new RegExp(o)[t](String(n))},function(e){var t=a(o,e,this);if(t.done)return t.value;var s=n(e),l=String(this),c=s.lastIndex;i(c,0)||(s.lastIndex=0);var d=r(s,l);return i(s.lastIndex,c)||(s.lastIndex=c),null===d?-1:d.index}]}))},function(e,t){e.exports='\n'},function(e,t,o){ window,e.exports=function(){return o={},e.m=t=[function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(2),i=o(4),r=o(9),a=(s.detach=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},s.unwrap=function(e){var t=e.parentNode,o=e;if(t){for(;o.firstChild;)t.insertBefore(o.firstChild,o);s.safeRemove(o)}},s.each=function(e,t){var o=e.firstChild;if(o)for(;o;){if(!1===t.call(o,o)||!s.each(o,t))return!1;o=s.next(o,(function(e){return!!e}),e)}return!0},s.replace=function(e,t,o,n,i){void 0===o&&(o=!1),void 0===n&&(n=!1);var r="string"==typeof t?i.createElement(t):t;if(!n)for(;e.firstChild;)r.appendChild(e.firstChild);return o&&Array.from(e.attributes).forEach((function(e){r.setAttribute(e.name,e.value)})),e.parentNode&&e.parentNode.replaceChild(r,e),r},s.isEmptyTextNode=function(e){return e&&e.nodeType===Node.TEXT_NODE&&(!e.nodeValue||0===e.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP,"").length)},s.isEmpty=function(e,t){return void 0===t&&(t=/^(img|svg|canvas|input|textarea|form)$/),!e||(e.nodeType===Node.TEXT_NODE?null===e.nodeValue||0===r.trim(e.nodeValue).length:!e.nodeName.toLowerCase().match(t)&&s.each(e,(function(e){if(e&&e.nodeType===Node.TEXT_NODE&&null!==e.nodeValue&&0!==r.trim(e.nodeValue).length||e&&e.nodeType===Node.ELEMENT_NODE&&t.test(e.nodeName.toLowerCase()))return!1})))},s.isNode=function(e,t){return!("object"!=typeof t||!t||"function"!=typeof t.Node&&"object"!=typeof t.Node)&&e instanceof t.Node},s.isCell=function(e,t){return s.isNode(e,t)&&/^(td|th)$/i.test(e.nodeName)},s.isImage=function(e,t){return s.isNode(e,t)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)},s.isBlock=function(e,t){return e&&"object"==typeof e&&s.isNode(e,t)&&n.IS_BLOCK.test(e.nodeName)},s.isInlineBlock=function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE&&!!~["inline","inline-block"].indexOf(""+i.css(e,"display"))},s.canSplitBlock=function(e,t){return e&&e instanceof t.HTMLElement&&this.isBlock(e,t)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)},s.prev=function(e,t,o,n){return void 0===n&&(n=!0),s.find(e,t,o,!1,"previousSibling",!!n&&"lastChild")},s.next=function(e,t,o,n){return void 0===n&&(n=!0),s.find(e,t,o,void 0,void 0,n?"firstChild":"")},s.prevWithClass=function(e,t){return this.prev(e,(function(e){return e&&e.nodeType===Node.ELEMENT_NODE&&e.classList.contains(t)}),e.parentNode)},s.nextWithClass=function(e,t){return this.next(e,(function(e){return e&&e.nodeType===Node.ELEMENT_NODE&&e.classList.contains(t)}),e.parentNode)},s.find=function(e,t,o,n,i,r){if(void 0===n&&(n=!1),void 0===i&&(i="nextSibling"),void 0===r&&(r="firstChild"),n&&t(e))return e;var a,l=e;do{if(t(a=l[i]))return a||!1;if(r&&a&&a[r]){var c=s.find(a[r],t,a,!0,i,r);if(c)return c}l=a=a||l.parentNode}while(l&&l!==o);return!1},s.findWithCurrent=function(e,t,o,n,i){void 0===n&&(n="nextSibling"),void 0===i&&(i="firstChild");var r=e;do{if(t(r))return r||!1;if(i&&r&&r[i]){var a=s.findWithCurrent(r[i],t,r,n,i);if(a)return a}for(;r&&!r[n]&&r!==o;)r=r.parentNode;r&&r[n]&&r!==o&&(r=r[n])}while(r&&r!==o);return!1},s.up=function(e,t,o){var n=e;if(!e)return!1;do{if(t(n))return n;if(n===o||!n.parentNode)break;n=n.parentNode}while(n&&n!==o);return!1},s.closest=function(e,t,o){return s.up(e,"function"==typeof t?t:t instanceof RegExp?function(e){return e&&t.test(e.nodeName)}:function(e){return e&&RegExp("^("+t+")$","i").test(e.nodeName)},o)},s.after=function(e,t){var o=e.parentNode;o&&(o.lastChild===e?o.appendChild(t):o.insertBefore(t,e.nextSibling))},s.moveContent=function(e,t,o){void 0===o&&(o=!1);var i=(e.ownerDocument||document).createDocumentFragment();[].slice.call(e.childNodes).forEach((function(e){e.nodeType===Node.TEXT_NODE&&e.nodeValue===n.INVISIBLE_SPACE||i.appendChild(e)})),o&&t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i)},s.all=function(e,t,o){void 0===o&&(o=!1);var n=e.childNodes?Array.prototype.slice.call(e.childNodes):[];if(t(e))return e;o&&(n=n.reverse()),n.forEach((function(e){s.all(e,t,o)}))},s.safeRemove=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},s.wrapInline=function(e,t,o){for(var n,i=e,r=e,a=o.selection.save(),l=!1;l=!1,(n=i.previousSibling)&&!s.isBlock(n,o.editorWindow)&&(l=!0,i=n),l;);for(;l=!1,(n=r.nextSibling)&&!s.isBlock(n,o.editorWindow)&&(l=!0,r=n),l;);var c="string"==typeof t?o.create.inside.element(t):t;i.parentNode&&i.parentNode.insertBefore(c,i);for(var d=i;d&&(d=i.nextSibling,c.appendChild(i),i!==r&&d);)i=d;return o.selection.restore(a),c},s.wrap=function(e,t,o){var n=o.selection.save(),i="string"==typeof t?o.editorDocument.createElement(t):t;return e.parentNode?(e.parentNode.insertBefore(i,e),i.appendChild(e),o.selection.restore(n),i):null},s.findInline=function(e,t,o){var n=e,i=null;do{if(!n)break;if((i=t?n.previousSibling:n.nextSibling)||!n.parentNode||n.parentNode===o||!s.isInlineBlock(n.parentNode))break;n=n.parentNode}while(!i);for(;i&&s.isInlineBlock(i)&&(t?i.lastChild:i.firstChild);)i=t?i.lastChild:i.firstChild;return i},s.contains=function(e,t){for(;t.parentNode;){if(t.parentNode===e)return!0;t=t.parentNode}return!1},s.isOrContains=function(e,t,o){return void 0===o&&(o=!1),t&&e&&(e===t&&!o||s.contains(e,t))},s);function s(){}t.Dom=a},function(e,t,o){"use strict";o.r(t),o.d(t,"__extends",(function(){return i})),o.d(t,"__assign",(function(){return r})),o.d(t,"__rest",(function(){return a})),o.d(t,"__decorate",(function(){return s})),o.d(t,"__param",(function(){return l})),o.d(t,"__metadata",(function(){return c})),o.d(t,"__awaiter",(function(){return d})),o.d(t,"__generator",(function(){return p})),o.d(t,"__exportStar",(function(){return u})),o.d(t,"__values",(function(){return f})),o.d(t,"__read",(function(){return h})),o.d(t,"__spread",(function(){return g})),o.d(t,"__spreadArrays",(function(){return m})),o.d(t,"__await",(function(){return v})),o.d(t,"__asyncGenerator",(function(){return b})),o.d(t,"__asyncDelegator",(function(){return y})),o.d(t,"__asyncValues",(function(){return x})),o.d(t,"__makeTemplateObject",(function(){return _})),o.d(t,"__importStar",(function(){return w})),o.d(t,"__importDefault",(function(){return k}));var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function i(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var r=function(){return(r=Object.assign||function(e){for(var t,o=1,n=arguments.length;o'+e.value+""),t.document.close()),t.focus(),t.print(),t.close())},mode:i.MODE_SOURCE+i.MODE_WYSIWYG},about:{exec:function(e){var t=e.getInstance("Dialog");t.setTitle(e.i18n("About Jodit")),t.setContent('"),t.open()},tooltip:"About Jodit",mode:i.MODE_SOURCE+i.MODE_WYSIWYG},hr:{command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},image:{popup:function(e,t,o,i){var r=null;return t&&t.nodeType!==Node.TEXT_NODE&&("IMG"===t.tagName||c.$$("img",t).length)&&(r="IMG"===t.tagName?t:c.$$("img",t)[0]),s(e,{filebrowser:function(t){return n.__awaiter(void 0,void 0,void 0,(function(){var o;return n.__generator(this,(function(n){switch(n.label){case 0:if(!t.files||!t.files.length)return[3,4];o=0,n.label=1;case 1:return o'+(o||t)+""))}var r=null;return t&&("A"===t.nodeName||l.Dom.closest(t,"A",e.editor))&&(r="A"===t.nodeName?t:l.Dom.closest(t,"A",e.editor)),s(e,{filebrowser:function(e){if(e.files&&e.files.length){var t=void 0;for(t=0;t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t"),s=e.create.fromHTML('
\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t
"),l={},p=e.selection.save();return e.options.textIcons?(l[e.i18n("Link")]=r,l[e.i18n("Code")]=s):(l[d.ToolbarIcon.getIcon("link")+" "+e.i18n("Link")]=r,l[d.ToolbarIcon.getIcon("source")+" "+e.i18n("Code")]=s),s.addEventListener("submit",(function(e){return e.preventDefault(),c.trim(c.val(s,"textarea[name=code]"))?i(c.val(s,"textarea[name=code]")):(s.querySelector("textarea[name=code]").focus(),s.querySelector("textarea[name=code]").classList.add("jodit_error")),!1})),r.addEventListener("submit",(function(e){return e.preventDefault(),c.isURL(c.val(r,"input[name=code]"))?i(c.convertMediaURLToVideoEmbed(c.val(r,"input[name=code]"))):(r.querySelector("input[name=code]").focus(),r.querySelector("input[name=code]").classList.add("jodit_error")),!1})),a(e,l)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(1);n.__exportStar(o(31),t),n.__exportStar(o(5),t),n.__exportStar(o(14),t),n.__exportStar(o(35),t),n.__exportStar(o(86),t),n.__exportStar(o(36),t),n.__exportStar(o(19),t),n.__exportStar(o(23),t),n.__exportStar(o(9),t),n.__exportStar(o(50),t),n.__exportStar(o(105),t),n.__exportStar(o(106),t),n.__exportStar(o(10),t),n.__exportStar(o(53),t),n.__exportStar(o(107),t),n.__exportStar(o(54),t),n.__exportStar(o(24),t),n.__exportStar(o(51),t),n.__exportStar(o(108),t),n.__exportStar(o(33),t),n.__exportStar(o(32),t),n.__exportStar(o(52),t),n.__exportStar(o(55),t),n.__exportStar(o(109),t),n.__exportStar(o(12),t),n.__exportStar(o(34),t),n.__exportStar(o(110),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(1);n.__exportStar(o(43),t),n.__exportStar(o(18),t),n.__exportStar(o(80),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(i.exists=function(e){return void 0!==i.icons[e]},i.getIcon=function(e,t){return void 0===t&&(t=""),i.icons[e]||i.icons[e.replace(/-/g,"_")]||i.icons[e.toLowerCase()]||t},i.icons={},i);function i(){}t.ToolbarIcon=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(1),r=o(8),a=(i.__extends(s,n=r.Component),s);function s(e){var t=n.call(this,e)||this;return t.destruct=function(){t.isDestructed||(t.jodit.events&&t.jodit.events.off("beforeDestruct",t.destruct),t.beforeDestruct(t.jodit),n.prototype.destruct.call(t))},e.events.on("afterInit",t.afterInit.bind(t,e)).on("beforeDestruct",t.destruct),t}t.Plugin=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(15),i=(Object.defineProperty(r.prototype,"isDestructed",{get:function(){return this.__isDestructed},enumerable:!0,configurable:!0}),r.prototype.destruct=function(){this.jodit&&(this.jodit=void 0),this.__isDestructed=!0},r);function r(e){this.__isDestructed=!1,e&&e instanceof r&&n.isJoditObject(this.jodit=e)&&e.components.push(this)}t.Component=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(1);n.__exportStar(o(47),t),n.__exportStar(o(48),t),n.__exportStar(o(90),t),n.__exportStar(o(37),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(21),i=o(22),r=o(49),a=o(47),s=o(48);t.css=function(e,o,l,c){void 0===c&&(c=!1);var d=/^left|top|bottom|right|width|min|max|height|margin|padding|font-size/i;if(n.isPlainObject(o)||void 0!==l){var p=function(e,o,n){null!=n&&d.test(o)&&i.isNumeric(""+n)&&(n=parseInt(""+n,10)+"px"),void 0!==n&&t.css(e,o,void 0,!0)!==r.normilizeCSSValue(o,n)&&(e.style[o]=n)};if(n.isPlainObject(o))for(var u=Object.keys(o),f=0;f]+id="jodit_selection_marker_[^>]+><\/span>/g,"")),"
"===t&&(t="");var o={value:t};return this.events.fire("afterGetValueFromEditor",o),o.value},t.prototype.getEditorText=function(){if(this.editor)return this.editor.textContent||"";var e=this.create.inside.div();return e.innerHTML=this.getElementValue(),e.textContent||""},t.prototype.setElementValue=function(e){if("string"!=typeof e&&void 0!==e)throw Error("value must be string");void 0!==e?this.element!==this.container&&(void 0!==this.element.value?this.element.value=e:this.element.innerHTML=e):e=this.getElementValue(),e!==this.getEditorValue()&&this.setEditorValue(e)},t.prototype.setEditorValue=function(e){var t=this.events.fire("beforeSetValueToEditor",e);if(!1!==t)if("string"==typeof t&&(e=t),this.editor){if("string"!=typeof e&&void 0!==e)throw Error("value must be string");void 0!==e&&this.editor.innerHTML!==e&&this.setNativeEditorValue(e);var o=this.getElementValue(),n=this.getEditorValue();if(o!==n&&this.__callChangeCount<10){this.setElementValue(n),this.__callChangeCount+=1;try{this.events.fire("change",n,o)}finally{this.__callChangeCount=0}}}else void 0!==e&&this.setElementValue(e)},t.prototype.registerCommand=function(e,t){var o=e.toLowerCase();if(void 0===this.commands[o]&&(this.commands[o]=[]),this.commands[o].push(t),"function"!=typeof t){var n=this.options.commandToHotkeys[o]||this.options.commandToHotkeys[e]||t.hotkeys;n&&this.registerHotkeyToCommand(n,o)}return this},t.prototype.registerHotkeyToCommand=function(e,t){var o=this,n=s.asArray(e).map(s.normalizeKeyAliases).map((function(e){return e+".hotkey"})).join(" ");this.events.off(n).on(n,(function(){return o.execCommand(t)}))},t.prototype.execCommand=function(e,t,o){if(void 0===t&&(t=!1),void 0===o&&(o=null),!this.options.readonly||"selectall"===e){var n;if(e=e.toLowerCase(),!1!==(n=this.events.fire("beforeCommand",e,t,o))&&(n=this.execCustomCommands(e,t,o)),!1!==n)if(this.selection.focus(),"selectall"===e)this.selection.select(this.editor,!0);else try{n=this.editorDocument.execCommand(e,t,o)}catch(e){}return this.events.fire("afterCommand",e,t,o),this.setEditorValue(),n}},t.prototype.execCustomCommands=function(e,t,o){var n,i;if(void 0===t&&(t=!1),void 0===o&&(o=null),e=e.toLowerCase(),void 0!==this.commands[e]){for(var r,a=0;a
'+(s.options.resizable?'
':"")+"
"),e&&e.id&&s.container.setAttribute("data-editor_id",e.id),Object.defineProperty(s.container,"__jodit_dialog",{value:s}),s.dialog=s.container.querySelector(".jodit_dialog"),s.resizer=s.container.querySelector(".jodit_dialog_resizer"),s.jodit&&s.jodit.options&&s.jodit.options.textIcons&&s.container.classList.add("jodit_text_icons"),s.dialogbox_header=s.container.querySelector(".jodit_dialog_header>.jodit_dialog_header-title"),s.dialogbox_content=s.container.querySelector(".jodit_dialog_content"),s.dialogbox_footer=s.container.querySelector(".jodit_dialog_footer"),s.dialogbox_toolbar=s.container.querySelector(".jodit_dialog_header>.jodit_dialog_header-toolbar"),s.destination.appendChild(s.container),s.container.addEventListener("close_dialog",s.close),s.toolbar=h.JoditToolbarCollection.makeCollection(s),s.toolbar.build(s.options.buttons,s.dialogbox_toolbar),s.events.on(o.window,"mousemove",s.onMouseMove).on(o.window,"mouseup",s.onMouseUp).on(o.window,"keydown",s.onKeyDown).on(o.window,"resize",s.onResize);var l=s.container.querySelector(".jodit_dialog_header");return l&&l.addEventListener("mousedown",s.onHeaderMouseDown.bind(s)),s.options.resizable&&s.resizer.addEventListener("mousedown",s.onResizerMouseDown.bind(s)),f.Jodit.plugins.fullsize(s),o}t.Dialog=p;var f=o(11),h=o(29)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(0),r=o(4),a=o(6);(n=t.Widget||(t.Widget={})).ColorPickerWidget=function(e,t,o){function n(e,t){e.innerHTML=a.ToolbarIcon.getIcon("eye"),e.classList.add("active");var o=r.hexToRgb(t);o&&(e.firstChild.style.fill="rgb("+(255-o.r)+","+(255-o.g)+","+(255-o.b)+")")}var s=r.normalizeColor(o),l=e.create.div("jodit_colorpicker"),c=e.options.textIcons?"":a.ToolbarIcon.getIcon("eye"),d=e.options.textIcons?""+e.i18n("eraser")+"":a.ToolbarIcon.getIcon("eraser"),p=e.options.textIcons?""+e.i18n("palette")+"":a.ToolbarIcon.getIcon("palette"),u=function(e){var t=[];return r.isPlainObject(e)?Object.keys(e).forEach((function(o){t.push('
'),t.push(u(e[o])),t.push("
")})):Array.isArray(e)&&e.forEach((function(e){t.push("'+(s===e?c:"")+"")})),t.join("")};return l.appendChild(e.create.fromHTML("
"+u(e.options.colors)+"
")),l.appendChild(e.create.fromHTML("'+d+"")),e.options.showBrowserColorPicker&&r.hasBrowserColorPicker()&&(l.appendChild(e.create.fromHTML(""+p+'')),e.events.on(l,"change",(function(e){e.stopPropagation();var o=e.target;if(o&&o.tagName&&"INPUT"==o.tagName.toUpperCase()){var i=o.value||"";i&&n(o,i),t&&"function"==typeof t&&t(i),e.preventDefault()}}))),e.events.on(l,"mousedown touchend",(function(o){o.stopPropagation();var r=o.target;if(r&&r.tagName&&"SVG"!=r.tagName.toUpperCase()&&"PATH"!=r.tagName.toUpperCase()||!r.parentNode||(r=i.Dom.closest(r.parentNode,"A",e.editor)),"A"==r.tagName.toUpperCase()){var a=l.querySelector("a.active");a&&(a.classList.remove("active"),a.innerHTML="");var s=r.getAttribute("data-color")||"";s&&n(r,s),t&&"function"==typeof t&&t(s),o.preventDefault()}})),l},n.TabsWidget=function(e,t,o){var n=e.create.div("jodit_tabs"),i=e.create.div("jodit_tabs_wrapper"),a=e.create.div("jodit_tabs_buttons"),s={},l="",c=0;return n.appendChild(a),n.appendChild(i),r.each(t,(function(t,n){var d=e.create.div("jodit_tab"),p=e.create.element("a",{href:"javascript:void(0);"});l=l||""+t,p.innerHTML=/'+e.i18n(s?"Drop image":"Drop file")+"
"+e.i18n("or click")+'
');e.getInstance("Uploader").bind(d,(function(o){var n=e.options.uploader.defaultHandlerSuccess||t.upload;"function"==typeof n&&n.call(e,{baseurl:o.baseurl,files:o.files})}),(function(t){e.events.fire("errorMessage",t.message)})),c[(e.options.textIcons?"":a.ToolbarIcon.getIcon("upload"))+e.i18n("Upload")]=d}if(t.filebrowser&&(e.options.filebrowser.ajax.url||e.options.filebrowser.items.url)&&(c[(e.options.textIcons?"":a.ToolbarIcon.getIcon("folder"))+e.i18n("Browse")]=function(){i&&i(),t.filebrowser&&e.getInstance("FileBrowser").open(t.filebrowser,s)}),t.url){var p=e.create.fromHTML('
"),u=p.querySelector("button"),f=p.querySelector("input[name=url]");l=null,o&&o.nodeType!==Node.TEXT_NODE&&("IMG"===o.tagName||r.$$("img",o).length)&&(l="IMG"===o.tagName?o:r.$$("img",o)[0],r.val(p,"input[name=url]",l.getAttribute("src")),r.val(p,"input[name=text]",l.getAttribute("alt")),u.textContent=e.i18n("Update")),o&&o.nodeType!==Node.TEXT_NODE&&"A"===o.nodeName&&(r.val(p,"input[name=url]",o.getAttribute("href")||""),r.val(p,"input[name=text]",o.getAttribute("title")||""),u.textContent=e.i18n("Update")),p.addEventListener("submit",(function(o){return o.preventDefault(),o.stopPropagation(),r.val(p,"input[name=url]")?"function"==typeof t.url&&t.url.call(e,r.val(p,"input[name=url]"),r.val(p,"input[name=text]")):(f.focus(),f.classList.add("jodit_error")),!1}),!1),c[(e.options.textIcons?"":a.ToolbarIcon.getIcon("link"))+" URL"]=p}return n.TabsWidget(e,c)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setTimeout=function(e,t,o,n,i){return t?window.setTimeout.call(window,e,t,o,n,i):(e.call(null,o,n,i),0)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(1);n.__exportStar(o(94),t),n.__exportStar(o(95),t),n.__exportStar(o(96),t),n.__exportStar(o(97),t),n.__exportStar(o(98),t),n.__exportStar(o(99),t),n.__exportStar(o(100),t),n.__exportStar(o(49),t),n.__exportStar(o(101),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(1),r=o(38),a=o(0),s=o(10),l=o(2),c=o(15),d=(i.__extends(p,n=r.ToolbarCollection),p.prototype.buttonIsActive=function(e){var t=this,o=n.prototype.buttonIsActive.call(this,e);if(void 0!==o)return o;var i,r,s=!!this.jodit.selection&&this.jodit.selection.current();return!(!s||!((e.control.tags||e.control.options&&e.control.options.tags)&&(i=e.control.tags||e.control.options&&e.control.options.tags,a.Dom.up(s,(function(e){if(e&&~i.indexOf(e.nodeName.toLowerCase()))return!0}),this.jodit.editor))||(e.control.css||e.control.options&&e.control.options.css)&&(r=e.control.css||e.control.options&&e.control.options.css,a.Dom.up(s,(function(e){if(e&&e.nodeType!==Node.TEXT_NODE)return t.checkActiveStatus(r,e)}),this.jodit.editor))))},p.prototype.buttonIsDisabled=function(e){var t=n.prototype.buttonIsDisabled.call(this,e);if(void 0!==t)return t;var o=void 0===e.control||void 0===e.control.mode?l.MODE_WYSIWYG:e.control.mode;return!(o===l.MODE_SPLIT||o===this.jodit.getRealMode())},p.prototype.getTarget=function(e){return e.target||this.jodit.selection.current()||void 0},p.makeCollection=function(e){var t=c.isJoditObject(e)?new p(e):new r.ToolbarCollection(e);return e.options.textIcons&&t.container.classList.add("jodit_text_icons"),t},p);function p(){var e=null!==n&&n.apply(this,arguments)||this;return e.checkActiveStatus=function(t,o){var n=0,i=0;return Object.keys(t).forEach((function(r){var a=t[r];"function"==typeof a?a(e.jodit,""+s.css(o,r))&&(n+=1):~a.indexOf(""+s.css(o,r))&&(n+=1),i+=1})),i===n},e}t.JoditToolbarCollection=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(44),i=o(34);t.isPlainObject=function(e){return!("object"!=typeof e||e.nodeType||n.isWindow(e)||e.constructor&&!i.hasOwn.call(e.constructor.prototype,"isPrototypeOf"))}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNumeric=function(e){if("string"==typeof e){if(!e.match(/^([+\-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return!isNaN(e)&&isFinite(e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(1);n.__exportStar(o(102),t),n.__exportStar(o(103),t),n.__exportStar(o(104),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.each=function(e,t){var o,n,i;if(Array.isArray(e)){for(o=e.length,i=0;i'+this.jodit.i18n(t?t.name:e)+"");var n=this.jodit.events.fire("getIcon",o,t,e),i=void 0;return t&&t.iconURL&&void 0===n?(i=this.jodit.create.element("i")).style.backgroundImage="url("+t.iconURL+")":(void 0===n&&(n=s.ToolbarIcon.exists(o)?s.ToolbarIcon.getIcon(o):s.ToolbarIcon.getIcon("empty")),i="string"==typeof n?this.jodit.create.fromHTML(c.trim(n)):n),i.classList.add("jodit_icon","jodit_icon_"+e),i},p);function p(e,t,o){void 0===t&&(t="li"),void 0===o&&(o="jodit_toolbar_btn");var i=this;return e instanceof a.ToolbarCollection?(i=n.call(this,e.jodit)||this).parentToolbar=e:i=n.call(this,e)||this,i.container=i.jodit.create.element(t),i.container.classList.add(o),i}t.ToolbarElement=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(1),r=o(0),a=o(4),s=o(26),l=o(117),c=o(28),d=o(118),p=o(15),u=o(2),f=o(6),h=(i.__extends(g,n=s.ToolbarElement),Object.defineProperty(g.prototype,"disable",{get:function(){return this.__disabled},set:function(e){this.__disabled=e,this.container.classList.toggle("jodit_disabled",e),e?this.container.hasAttribute("disabled")||this.container.setAttribute("disabled","disabled"):this.container.hasAttribute("disabled")&&this.container.removeAttribute("disabled")},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"active",{get:function(){return this.__actived},set:function(e){this.__actived=e,this.container.classList.toggle("jodit_active",e)},enumerable:!0,configurable:!0}),g.prototype.isDisable=function(){return!(!this.parentToolbar||!this.parentToolbar.buttonIsDisabled(this))},g.prototype.isActive=function(){return!(!this.parentToolbar||!this.parentToolbar.buttonIsActive(this))},Object.defineProperty(g.prototype,"tooltipText",{get:function(){return this.control.tooltip?this.jodit.i18n(this.control.tooltip)+(this.control.hotkeys?"
"+a.asArray(this.control.hotkeys).join(" "):""):""},enumerable:!0,configurable:!0}),g.prototype.focus=function(){this.anchor.focus()},g.prototype.destruct=function(){this.isDestructed||(this.jodit&&this.jodit.events&&this.jodit.events.off(this.container),n.prototype.destruct.call(this),this.tooltip&&(this.tooltip.destruct(),delete this.tooltip))},g);function g(e,t,o){var i=n.call(this,e)||this;i.__disabled=!1,i.__actived=!1,i.onMouseDown=function(e){if("keydown"!==e.type||e.which===u.KEY_ENTER){if(e.stopImmediatePropagation(),e.preventDefault(),i.disable)return!1;var t=i.control,o=function(){return i.parentToolbar&&i.parentToolbar.getTarget(i)||i.target||!1};if(t.list){var n=new l.PopupList(i.jodit,i.container,i.target);n.open(t),i.jodit.events.fire("closeAllPopups",n.container),i.anchor.setAttribute("aria-expanded","true"),i.jodit.events.on(n,"afterClose",(function(){i.anchor.setAttribute("aria-expanded","false")}))}else if(void 0!==t.exec&&"function"==typeof t.exec)t.exec(i.jodit,o(),t,e,i.container),i.jodit.events.fire("synchro"),i.parentToolbar&&i.parentToolbar.immedateCheckActiveButtons(),i.jodit.events.fire("closeAllPopups afterExec");else if(void 0!==t.popup&&"function"==typeof t.popup){var r=new c.Popup(i.jodit,i.container,i.target);if(!1!==i.jodit.events.fire(a.camelCase("before-"+t.name+"-OpenPopup"),o(),t,r)){var s=t.popup(i.jodit,o(),t,r.close,i);s&&r.open(s)}i.jodit.events.fire(a.camelCase("after-"+t.name+"-OpenPopup")+" closeAllPopups",r.container)}else(t.command||t.name)&&(p.isJoditObject(i.jodit)?i.jodit.execCommand(t.command||t.name,t.args&&t.args[0]||!1,t.args&&t.args[1]||null):i.jodit.ownerDocument.execCommand(t.command||t.name,t.args&&t.args[0]||!1,t.args&&t.args[1]||null),i.jodit.events.fire("closeAllPopups"))}},i.control=t,i.target=o,i.anchor=i.jodit.create.element("a",{role:"button",href:"javascript:void(0)"});var s="-1";i.jodit.options.allowTabNavigation&&(s="0"),i.anchor.setAttribute("tabindex",s),i.container.appendChild(i.anchor),i.jodit.options.showTooltip&&t.tooltip&&(i.jodit.options.useNativeTooltip?i.anchor.setAttribute("title",i.tooltipText):i.tooltip=new d.ToolbarTooltip(i),i.anchor.setAttribute("aria-label",i.tooltipText)),i.textBox=i.jodit.create.span(),i.anchor.appendChild(i.textBox);var h=t.name.replace(/[^a-zA-Z0-9]/g,"_");if(t.getContent&&"function"==typeof t.getContent){r.Dom.detach(i.container);var g=t.getContent(i.jodit,t,i);i.container.appendChild("string"==typeof g?i.jodit.create.fromHTML(g):g)}else{if(t.list&&i.anchor){var m=i.jodit.create.fromHTML(f.ToolbarIcon.getIcon("dropdown-arrow"));m.classList.add("jodit_with_dropdownlist-trigger"),i.container.classList.add("jodit_with_dropdownlist"),i.anchor.appendChild(m)}i.textBox.appendChild(i.createIcon(h,t))}if(i.container.classList.add("jodit_toolbar_btn-"+h),i.jodit.options.direction){var v=i.jodit.options.direction.toLowerCase();i.container.style.direction="rtl"==v?"rtl":"ltr"}return t.isInput?i.container.classList.add("jodit_toolbar-input"):i.jodit.events.on(i.container,"mousedown touchend keydown",i.onMouseDown).on("click-"+h+"-btn",i.onMouseDown),i}t.ToolbarButton=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(1),r=o(0),a=o(4),s=o(8),l=(i.__extends(c,n=s.Component),c.prototype.calcPosition=function(){if(this.isOpened&&!this.isDestructed){var e=this.container,t=a.offset(this.jodit.container,this.jodit,this.jodit.ownerDocument,!0),o=a.offset(e,this.jodit,this.jodit.ownerDocument,!0),n=a.css(e,"marginLeft")||0;o.left-=n;var i=n,r="auto";if(i=o.left',this.container.appendChild(r.Dom.isNode(e,this.jodit.ownerWindow)?e:this.jodit.create.fromHTML(""+e)),this.container.style.display="block",this.container.style.removeProperty("marginLeft"))},c.prototype.doClose=function(){},c.prototype.open=function(e,t,o){void 0===o&&(o=!1),d.Jodit.fireEach("beforeOpenPopup closeAllPopups",this,e),o||this.jodit.events.on("closeAllPopups",this.close),this.container.classList.add(this.className+"-open"),this.doOpen(e),this.target.appendChild(this.container),this.jodit.options.textIcons&&this.firstInFocus(),void 0!==t&&this.container.classList.toggle("jodit_right",t),!o&&this.container.parentNode&&this.jodit.events.fire(this.container.parentNode,"afterOpenPopup",this.container),this.isOpened=!0,o||this.calcPosition()},c.prototype.firstInFocus=function(){},c.prototype.destruct=function(){this.isDestructed||(this.jodit.events.off([this.jodit.ownerWindow,this.jodit.events],"resize",this.throttleCalcPosition),r.Dom.safeRemove(this.container),delete this.container,n.prototype.destruct.call(this))},c);function c(e,t,o,i){void 0===i&&(i="jodit_toolbar_popup");var s=n.call(this,e)||this;return s.target=t,s.current=o,s.className=i,s.throttleCalcPosition=a.throttle(s.calcPosition,s.jodit.defaultTimeout),s.isOpened=!1,s.close=function(e){(s.isOpened||s.isDestructed)&&(e&&r.Dom.isOrContains(s.container,e instanceof c?e.target:e)||(s.isOpened=!1,s.jodit.events.off("closeAllPopups",s.close),s.doClose(),r.Dom.safeRemove(s.container),s.jodit.events.fire("removeMarkers"),s.jodit.events.fire(s,"afterClose")))},s.container=s.jodit.create.div(i,{"data-editor_id":e.id}),s.jodit.events.on(s.container,"mousedown touchstart touchend",(function(e){e.stopPropagation()})).on([s.jodit.ownerWindow,s.jodit.events],"resize",s.throttleCalcPosition),s}t.Popup=l;var d=o(11)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(39);t.Ajax=n.Ajax;var i=o(64);t.EventsNative=i.EventsNative;var r=o(8);t.Component=r.Component;var a=o(40);t.ContextMenu=a.ContextMenu;var s=o(13);t.Alert=s.Alert,t.Confirm=s.Confirm,t.Promt=s.Promt,t.Dialog=s.Dialog;var l=o(0);t.Dom=l.Dom;var c=o(7);t.Plugin=c.Plugin;var d=o(65);t.Create=d.Create;var p=o(139);t.FileBrowser=p.FileBrowser;var u=o(4);t.Helpers=u;var f=o(146);t.ImageEditor=f.ImageEditor;var h=o(56);t.Observer=h.Observer;var g=o(59);t.Select=g.Select;var m=o(25);t.Storage=m.Storage;var v=o(57);t.Snapshot=v.Snapshot;var b=o(30);t.Table=b.Table;var y=o(6);t.ToolbarIcon=y.ToolbarIcon;var x=o(20);t.JoditToolbarCollection=x.JoditToolbarCollection;var _=o(38);t.ToolbarCollection=_.ToolbarCollection;var w=o(27);t.ToolbarButton=w.ToolbarButton;var k=o(58);t.Stack=k.Stack;var j=o(17);t.Widget=j.Widget;var C=o(147);t.Uploader=C.Uploader},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(2),i=o(0),r=o(4),a=(s.addSelected=function(e){e.setAttribute(n.JODIT_SELECTED_CELL_MARKER,"1")},s.restoreSelection=function(e){e.removeAttribute(n.JODIT_SELECTED_CELL_MARKER)},s.getAllSelectedCells=function(e){return e?r.$$("td["+n.JODIT_SELECTED_CELL_MARKER+"],th["+n.JODIT_SELECTED_CELL_MARKER+"]",e):[]},s.getRowsCount=function(e){return e.rows.length},s.getColumnsCount=function(e){return s.formalMatrix(e).reduce((function(e,t){return Math.max(e,t.length)}),0)},s.formalMatrix=function(e,t){for(var o=[[]],n=Array.prototype.slice.call(e.rows),i=function(e,n){void 0===o[n]&&(o[n]=[]);for(var i,r,a=e.colSpan,s=e.rowSpan,l=0;o[n][l];)l+=1;for(r=0;rtbody",e)[0]||e).appendChild(a)},s.removeRow=function(e,t){var o,n=s.formalMatrix(e),a=e.rows[t];r.each(n[t],(function(r,s){if(o=!1,t-1<0||n[t-1][r]!==s)if(n[t+1]&&n[t+1][r]===s){if(s.parentNode===a&&s.parentNode.nextSibling){o=!0;for(var l=r+1;n[t+1][l]===s;)l+=1;var c=i.Dom.next(s.parentNode,(function(e){return e&&e.nodeType===Node.ELEMENT_NODE&&"TR"===e.nodeName}),e);n[t+1][l]?c.insertBefore(s,n[t+1][l]):c.appendChild(s)}}else i.Dom.safeRemove(s);else o=!0;if(o&&(s.parentNode===a||s!==n[t][r-1])){var d=s.rowSpan;1/g,""))&&o.push(e.innerHTML),1"),delete c.__i_am_already_was,s.__unmark(f),s.normalizeTable(e),r.each(Array.from(e.rows),(function(e,t){t.cells.length||i.Dom.safeRemove(t)}))))},s.splitHorizontal=function(e){var t,o,n,r,a,l=[],c=e.ownerDocument||document;s.getAllSelectedCells(e).forEach((function(d){(o=c.createElement("td")).appendChild(c.createElement("br")),n=c.createElement("tr"),t=s.formalCoordinate(e,d),d.rowSpan<2?(s.formalMatrix(e,(function(e,o,n){t[0]===o&&t[1]!==n&&e!==d&&s.__mark(e,"rowspan",e.rowSpan+1,l)})),i.Dom.after(i.Dom.closest(d,"tr",e),n),n.appendChild(o)):(s.__mark(d,"rowspan",d.rowSpan-1,l),s.formalMatrix(e,(function(o,n,i){t[0]'+(e.icon?s.ToolbarIcon.getIcon(e.icon):"")+""),n=o.querySelector("span");o.addEventListener("click",(function(t){return e.exec&&e.exec.call(r,t),r.hide(),!1})),n.textContent=t,r.context.appendChild(o)}})),a.css(r.context,{left:e,top:t}),this.jodit.events.on(this.jodit.ownerWindow,"mouseup jodit_close_dialog",r.hide),this.context.classList.add("jodit_context_menu-show"))},d.prototype.destruct=function(){l.Dom.safeRemove(this.context),delete this.context,this.jodit.events.off(this.jodit.ownerWindow,"mouseup",this.hide),n.prototype.destruct.call(this)},d);function d(e){var t=n.call(this,e)||this;return t.hide=function(){t.context.classList.remove("jodit_context_menu-show"),t.jodit.ownerWindow.removeEventListener("mouseup",t.hide)},t.context=e.create.div("jodit_context_menu",{"data-editor_id":t.jodit.id}),e.ownerDocument.body.appendChild(t.context),t}t.ContextMenu=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.F_CLASS="jodit_filebrowser",t.ITEM_CLASS=t.F_CLASS+"_files_item",t.ICON_LOADER=''},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asArray=function(e){return Array.isArray(e)?e:[e]}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(18);t.debounce=function(e,t,o,i){3===arguments.length&&"boolean"!=typeof o&&(i=o,o=!1);var r=0;return function(){var a=arguments,s=i||this;(!o||r)&&t||e.apply(s,a),t&&(clearTimeout(r),r=n.setTimeout((function(){o||e.apply(s,a),r=0}),t))}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWindow=function(e){return null!==e&&e===e.window}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isURL=function(e){return/^(https?:\/\/)((([a-z\d]([a-z\d-]*[a-z\d])*)\.?)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(\#[-a-z\d_]*)?$/i.test(e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.colorToHex=function(e){if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"==e.substr(0,1))return e;var t,o,n,i=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!i)return"#000000";for(o=parseInt(i[2],10),n=parseInt(i[3],10),t=(parseInt(i[4],10)|n<<8|o<<16).toString(16).toUpperCase();t.length<6;)t="0"+t;return i[1]+"#"+t}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=function(e){return e.replace(/([-_])(.)/g,(function(e,t,o){return o.toUpperCase()}))}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromCamelCase=function(e){return e.replace(/([A-Z]+)/g,(function(e,t){return"-"+t.toLowerCase()}))}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(22);t.normilizeCSSValue=function(e,t){switch(e.toLowerCase()){case"font-weight":switch((""+t).toLowerCase()){case"bold":return 700;case"normal":return 400;case"heavy":return 900}return n.isNumeric(t)?+t:t}return t}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(51);t.appendScript=function(e,t,o,i){void 0===o&&(o="");var r=i.createElement("script");return r.className=o,r.type="text/javascript",void 0!==t&&r.addEventListener("load",t),r.src=n.completeUrl(e),i.body.appendChild(r),{callback:t,element:r}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.completeUrl=function(e){return"file:"===window.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseQuery=function(e){for(var t={},o=e.substr(1).split("&"),n=0;nl.length-l.replace(i.INVISIBLE_SPACE_REG_EXP_START,"").length)return!1;if(!e&&n.startOffset'+i.ToolbarIcon.getIcon("cancel")+""+r.Jodit.prototype.i18n("Cancel")+""),d=l.create.fromHTML(''+i.ToolbarIcon.getIcon("check")+""+r.Jodit.prototype.i18n("Ok")+""),p=l.create.element("form",{class:"jodit_promt"}),u=l.create.element("input",{autofocus:!0,class:"jodit_input"}),f=l.create.element("label");function h(){o&&"function"==typeof o&&!1===o(u.value)||l.close()}return"function"==typeof t&&(o=t,t=void 0),a&&u.setAttribute("placeholder",a),f.appendChild(l.create.text(e)),p.appendChild(f),p.appendChild(u),c.addEventListener("click",l.close,!1),d.addEventListener("click",h),p.addEventListener("submit",(function(){return h(),!1})),l.setFooter([d,c]),l.open(p,t||" ",!0,!0),u.focus(),void 0!==s&&s.length&&(u.value=s,u.select()),l};var r=o(11)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(16),i=o(6);t.Confirm=function(e,t,o){var a=new n.Dialog,s=a.create.fromHTML('
'),l=a.create.element("label");"function"==typeof t&&(o=t,t=void 0),l.appendChild(a.create.fromHTML(e)),s.appendChild(l);var c=a.create.fromHTML(''+i.ToolbarIcon.getIcon("cancel")+""+r.Jodit.prototype.i18n("Cancel")+"");function d(){o&&o(!0),a.close()}c.addEventListener("click",(function(){o&&o(!1),a.close()}));var p=a.create.fromHTML(''+i.ToolbarIcon.getIcon("check")+""+r.Jodit.prototype.i18n("Yes")+"");return p.addEventListener("click",d),s.addEventListener("submit",(function(){return d(),!1})),a.setFooter([p,c]),a.open(s,t||" ",!0,!0),p.focus(),a};var r=o(11)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),i=o(29),r=o(3),a=o(2),s=o(36),l=o(69);r.Config.prototype.controls.cut={command:"cut",isDisable:function(e){return e.selection.isCollapsed()},tooltip:"Cut selection"},r.Config.prototype.controls.copy={command:"copy",isDisable:function(e){return e.selection.isCollapsed()},tooltip:"Copy selection"},t.pluginKey="clipboard";var c,d=(n.__extends(p,c=i.Plugin),p.prototype.afterInit=function(e){e.events.on("copy."+t.pluginKey+" cut."+t.pluginKey,(function(o){var n,i,r=e.selection.getHTML(),c=l.getDataTransfer(o)||l.getDataTransfer(e.editorWindow)||l.getDataTransfer(o.originalEvent);c&&(c.setData(a.TEXT_PLAIN,s.stripTags(r)),c.setData(a.TEXT_HTML,r)),e.buffer.set(t.pluginKey,r),"cut"===o.type&&(e.selection.remove(),e.selection.focus()),o.preventDefault(),null===(i=null===(n=e)||void 0===n?void 0:n.events)||void 0===i||i.fire("afterCopy",r)}))},p.prototype.beforeDestruct=function(e){var o,n,i,r;null===(n=null===(o=e)||void 0===o?void 0:o.buffer)||void 0===n||n.set(t.pluginKey,""),null===(r=null===(i=e)||void 0===i?void 0:i.events)||void 0===r||r.off("."+t.pluginKey)},p);function p(){return null!==c&&c.apply(this,arguments)||this}t.clipboard=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),i=o(3),r=o(2),a=o(13),s=o(4),l=o(0),c=o(155),d=o(68);i.Config.prototype.askBeforePasteHTML=!0,i.Config.prototype.askBeforePasteFromWord=!0,i.Config.prototype.nl2brInPlainText=!0,i.Config.prototype.defaultActionOnPaste=r.INSERT_AS_HTML,t.getDataTransfer=function(e){return e.clipboardData?e.clipboardData:e.dataTransfer||new DataTransfer},i.Config.prototype.controls.paste={tooltip:"Paste from clipboard",exec:function(e){return n.__awaiter(this,void 0,void 0,(function(){var t,o,i,r,s;return n.__generator(this,(function(n){switch(n.label){case 0:if(e.selection.focus(),(o=!(t=""))&&(t=e.buffer.get(d.pluginKey)||"",o=0===t.length),!o||!navigator.clipboard)return[3,11];n.label=1;case 1:return n.trys.push([1,6,,7]),[4,navigator.clipboard.read()];case 2:return(i=n.sent())&&i.length?[4,i[0].getType("text/plain")]:[3,5];case 3:return r=n.sent(),[4,new Response(r).text()];case 4:t=n.sent(),n.label=5;case 5:return[3,7];case 6:return n.sent(),[3,7];case 7:if(!o)return[3,11];n.label=8;case 8:return n.trys.push([8,10,,11]),[4,navigator.clipboard.readText()];case 9:return t=n.sent(),o=!1,[3,11];case 10:return n.sent(),[3,11];case 11:return o&&(s=e.value,e.editorDocument.execCommand("paste"),o=s!==e.value),t?e.selection.insertHTML(t):o&&a.Alert(e.i18n("Your browser doesn't support direct access to the clipboard."),(function(){e.selection.focus()})),[2]}}))}))}},t.paste=function(e){function o(t,o,n,i,r){if(void 0===i&&(i="Clean"),void 0===r&&(r="Insert only Text"),!e.events||!1!==e.events.fire("beforeOpenPasteDialog",t,o,n,i,r)){var s=a.Confirm('
'+t+"
",o,n);s.container.setAttribute("data-editor_id",e.id);var l=s.create.fromHTML(''+e.i18n("Keep")+""),c=s.create.fromHTML(''+e.i18n(i)+""),d=s.create.fromHTML(''+e.i18n(r)+""),p=s.create.fromHTML(''+e.i18n("Cancel")+"");return e.events.on(l,"click",(function(){s.close(),n&&n(!0)})),e.events.on(c,"click",(function(){s.close(),n&&n(!1)})),e.events.on(d,"click",(function(){s.close(),n&&n(0)})),e.events.on(p,"click",(function(){s.close()})),s.setFooter([l,c,r?d:"",p]),e.events&&e.events.fire("afterOpenPasteDialog",s,t,o,n,i,r),s}}function n(t,o){if("string"==typeof t)switch(o){case r.INSERT_CLEAR_HTML:t=s.cleanFromWord(t);break;case r.INSERT_ONLY_TEXT:t=s.stripTags(t);break;case r.INSERT_AS_TEXT:t=s.htmlspecialchars(t)}"string"==typeof t&&e.buffer.set(d.pluginKey,t),e.selection.insertHTML(t)}function i(t,i){var a=e.buffer.get(d.pluginKey);if(s.isHTML(t)&&a!==p(t))return e.events.stopPropagation("beforePaste"),t=p(t),o(e.i18n("Your code is similar to HTML. Keep as HTML?"),e.i18n("Paste as HTML"),(function(o){var a=r.INSERT_AS_HTML;!1===o&&(a=r.INSERT_AS_TEXT),0===o&&(a=r.INSERT_ONLY_TEXT),"drop"===i.type&&e.selection.insertCursorAtPoint(i.clientX,i.clientY),n(t,a),e.setEditorValue()}),"Insert as Text"),!1}function p(e){var t=e.search(//i);-1!=t&&(e=e.substr(20+t));var o=e.search(//i);return-1!=o&&(e=e.substr(0,o)),e}e.events.on("paste",(function(o){if(!1===e.events.fire("beforePaste",o))return o.preventDefault(),!1;var i=t.getDataTransfer(o);if(o&&i){var a=i.types,c="";if(Array.isArray(a)||"domstringlist"===s.type(a))for(var u=0;u]*>(.*?)<\/\1>/m.test(e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHTMLFromWord=function(e){return-1!=e.search(//)||-1!=e.search(//)||-1!=e.search(/style="[^"]*mso-/)&&-1!=e.search(/"));var t=document.createElement("iframe");t.style.display="none",document.body.appendChild(t);var o="",r=[];try{var a=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(a){a.open(),a.write(e),a.close(),a.styleSheets.length&&(r=a.styleSheets[a.styleSheets.length-1].cssRules);for(var s=function(e){if(""===r[e].selectorText)return"continue";i.$$(r[e].selectorText,a.body).forEach((function(t){t.style.cssText=r[e].style.cssText.replace(/mso-[a-z\-]+:[\s]*[^;]+;/g,"").replace(/border[a-z\-]*:[\s]*[^;]+;/g,"")+t.style.cssText}))},l=0;l]*>/g,"").replace(/