!function(){"use strict";functione(r){returnfunction(e){returnn=typeof(t=e),(null===t?"null":"object"==n&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"==n&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":n)===r;vart,n}}functiont(t){returnfunction(e){returntypeofe===t}}functionD(e){return!(null==e)}functionl(){}functiona(e){returnfunction(){returne}}functionn(e){returne}functionr(){returng}vari,o=tinymce.util.Tools.resolve("tinymce.PluginManager"),v=function(){return(v=Object.assign||function(e){for(vart,n=1,r=arguments.length;n<r;n++)for(variint=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);returne}).apply(this,arguments)},T=e("string"),s=e("object"),c=e("array"),N=t("boolean"),w=t("function"),u=t("number"),m=a(!1),d=a(!(i=null)),g={fold:function(e,t){returne()},isSome:m,isNone:d,getOr:n,getOrThunk:p,getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},getOrNull:a(null),getOrUndefined:a(void0),or:n,orThunk:p,map:r,each:l,bind:r,exists:m,forall:d,filter:function(){returng},toArray:function(){return[]},toString:a("none()")};functionp(e){returne()}functionf(e,a,o,l){returnfunction(e){for(vart=y(e),n=0,r=t.length;n<r;n++){vari=t[n];!function(e,t){(a(e,t)?o:l)(e,t)}(e[i],i)}}(e),1}functionh(e,t){returnA.call(e,t)}functionS(e){for(vart=[],n=0,r=e.length;n<r;++n){if(!c(e[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+e);U.apply(t,e[n])}returnt}varb=function(n){functione(){returni}functiont(e){returne(n)}varr=a(n),i={fold:function(e,t){returnt(n)},isSome:d,isNone:m,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:e,orThunk:e,map:function(e){returnb(e(n))},each:function(e){e(n)},bind:t,exists:t,forall:t,filter:function(e){returne(n)?i:g},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};returni},L={some:b,none:r,from:function(e){returnnull==e?g:b(e)}},y=Object.keys,A=Object.hasOwnProperty,U=Array.prototype.push;functionI(e,t,n){!function(e,t,n){if(!(T(n)||N(n)||u(n)))throwconsole.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),newError("Attribute value was not simple");e.setAttribute(t,n+"")}(e.dom,t,n)}functionC(e){returne.getParam("image_dimensions",!0,"boolean")}functionx(e,t){returnMath.max(parseInt(e,10),parseInt(t,10))}functionO(e){returne&&e.replace(/px$/,"")}functionP(e){return0<e.length&&/^[0-9]+$/.test(e)&&(e+="px"),e}function_(e){if(e.margin){vart=String(e.margin).split(" ");switch(t.length){case1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}deletee.margin}returne}functionE(e){return"IMG"===e.nodeName&&(e.hasAttribute("data-mce-object")||e.hasAttribute("data-mce-placeholder"))}functionR(e,t){returnwe.isDomSafe(t,"img",e.settings)}functionk(e){returne.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?O(e.style.marginLeft):""}functionz(e){returne.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?O(e.style.marginTop):""}functionM(e){returne.style.borderWidth?O(e.style.borderWidth):""}functionj(e,t){returne.hasAttribute(t)?e.getAttribute(t):""}functionB(e,t){returne.style[t]||""}functionH(e){returnnull!==e.parentNode&&"FIGURE"===e.parentNode.nodeName}functionF(e,t,n){""===n?e.removeAttribute(t):e.setAttribute(t,n)}function