!function(m){"use strict";vare,t,n,r,o,a=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=function(){},l=function(e){returnfunction(){returne}},s=l(!1),u=l(!0),c=function(){returnd},d=(e=function(e){returne.isNone()},{fold:function(e,t){returne()},is:s,isSome:s,isNone:u,getOr:n=function(e){returne},getOrThunk:t=function(e){returne()},getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},getOrNull:l(null),getOrUndefined:l(undefined),or:n,orThunk:t,map:c,each:i,bind:c,exists:s,forall:u,filter:c,equals:e,equals_:e,toArray:function(){return[]},toString:l("none()")}),g=function(n){vare=l(n),t=function(){returna},r=function(e){returne(n)},a={fold:function(e,t){returnt(n)},is:function(e){returnn===e},isSome:u,isNone:s,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:t,orThunk:t,map:function(e){returng(e(n))},each:function(e){e(n)},bind:r,exists:r,forall:r,filter:function(e){returne(n)?a:d},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(e){returne.is(n)},equals_:function(e,t){returne.fold(s,function(e){returnt(n,e)})}};returna},A={some:g,none:c,from:function(e){returnnull===e||e===undefined?d:g(e)}},f=function(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}},p=function(t){returnfunction(e){returntypeofe===t}},S=f("string"),h=f("object"),b=f("array"),v=(r=null,function(e){returnr===e}),y=p("boolean"),w=p("number"),D=Array.prototype.push,x=function(e){for(vart=[],n=0,r=e.length;n<r;++n){if(!b(e[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+e);D.apply(t,e[n])}returnt},T=Object.prototype.hasOwnProperty,C=(o=function(e,t){returnh(e)&&h(t)?C(e,t):t},function(){for(vare=newArray(arguments.length),t=0;t<e.length;t++)e[t]=arguments[t];if(0===e.length)thrownewError("Can't merge zero objects");for(varn={},r=0;r<e.length;r++){vara=e[r];for(variina)T.call(a,i)&&(n[i]=o(n[i],a[i]))}returnn}),U=function(){return(U=Object.assign||function(e){for(vart,n=1,r=arguments.length;n<r;n++)for(varaint=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);returne}).apply(this,arguments)},O=("undefined"!=typeofm.window?m.window:Function("return this;")(),function(e,t,n){!function(e,t,n){if(!(S(n)||y(n)||w(n)))throwm.console.error("Invalid call to Attr.set. Key ",t,":: Value ",n,":: Element ",e),newError("Attribute value was not simple");e.setAttribute(t,n+"")}(e.dom(),t,n)}),I=function(e){if(null===e||e===undefined)thrownewError("Node cannot be null or undefined");return{dom:l(e)}},N={fromHtml:function(e,t){varn=(t||m.document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||1<n.childNodes.length)throwm.console.error("HTML does not have a single root node",e),newError("HTML must have a single root node");returnI(n.childNodes[0])},fromTag:function(e,t){varn=(t||m.document).createElement(e);returnI(n)},fromText:function(e,t){varn=(t||m.document).createTextNode(e);returnI(n)},fromDom:I,fromPoint:function(e,t,n){varr=e.dom();returnA.from(r.elementFromPoint(t,n)).map(I)}},P=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),L=tinymce.util.Tools.resolve("tinymce.util.Promise"),_=tinymce.util.Tools.resolve("tinymce.util.XHR"),E=function(e){returne.getParam("image_dimensions",!0,"boolean")},M=function(e){returne.getParam("images_upload_url","","string")},R=function(e){returne.getParam("images_upload_handler",undefined,"function")},z=function(e,t){returnMath.max(parseInt(e,10),parseInt(t,10))},H=function(e){returne=e&&e.replace(/px$/,"")},k=function(e){return0<e.length&&/^[0-9]+$/.test(e)&&(e+="px"),e},j=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[