!function(l){"use strict";functione(){}functionm(e){returnfunction(){returne}}functionn(){returns}varr,t=function(e){functionn(){returnr}varr=e;return{get:n,set:function(e){r=e},clone:function(){returnt(n())}}},o=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=function(e){return{isFullscreen:function(){returnnull!==e.get()}}},c=m(!1),u=m(!0),s=(r={fold:function(e,n){returne()},is:c,isSome:c,isNone:u,getOr:d,getOrThunk:a,getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},getOrNull:m(null),getOrUndefined:m(undefined),or:d,orThunk:a,map:n,each:e,bind:n,exists:c,forall:u,filter:n,equals:f,equals_:f,toArray:function(){return[]},toString:m("none()")},Object.freeze&&Object.freeze(r),r);functionf(e){returne.isNone()}functiona(e){returne()}functiond(e){returne}functionh(n){returnfunction(e){returnfunction(e){if(null===e)return"null";varn=typeofe;return"object"==n&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"==n&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":n}(e)===n}}functionv(e,n){for(varr=e.length,t=newArray(r),o=0;o<r;o++){vari=e[o];t[o]=n(i,o)}returnt}functiong(e,n){for(varr=0,t=e.length;r<t;r++){n(e[r],r)}}functionp(e,n){for(varr=[],t=0,o=e.length;t<o;t++){vari=e[t];n(i,t)&&r.push(i)}returnr}functionw(e,n){returnfunction(e){for(varn=[],r=0,t=e.length;r<t;++r){if(!Y(e[r]))thrownewError("Arr.flatten item "+r+" was not an array, input: "+e);Q.apply(n,e[r])}returnn}(v(e,n))}functiony(e,n){return-1!==e.indexOf(n)}functionS(e){returne.style!==undefined&&$(e.style.getPropertyValue)}functionE(e,n,r){!function(e,n,r){if(!(X(r)||G(r)||K(r)))throwl.console.error("Invalid call to Attr.set. Key ",n,":: Value ",r,":: Element ",e),newError("Attribute value was not simple");e.setAttribute(n,r+"")}(e.dom(),n,r)}functionO(e,n){varr=e.dom().getAttribute(n);returnnull===r?undefined:r}functionN(e,n){e.dom().removeAttribute(n)}functionT(e,n){varr=e.dom();!function(e,n){for(varr=Z(e),t=0,o=r.length;t<o;t++){vari=r[t];n(e[i],i)}}(n,function(e,n){!function(e,n,r){if(!X(r))throwl.console.error("Invalid call to CSS.set. Property ",n,":: Value ",r,":: Element ",e),newError("CSS value must be a string: "+r);S(e)&&e.style.setProperty(n,r)}(r,n,e)})}functionx(e,n){varr=e.dom(),t=l.window.getComputedStyle(r).getPropertyValue(n),o=""!==t||function(e){varn=ie(e)?e.dom().parentNode:e.dom();returnn!==undefined&&null!==n&&n.ownerDocument.body.contains(n)}(e)?t:ue(r,n);returnnull===o?undefined:o}functionb(e,n){varr=function(e,n){for(varr=0;r<e.length;r++){vart=e[r];if(t.test(n))returnt}returnundefined}(e,n);if(!r)return{major:0,minor:0};functiont(e){returnNumber(n.replace(r,"$"+e))}returnse(t(1),t(2))}functionC(e,n){returnfunction(){returnn===e}}functionD(e,n){returnfunction(){returnn===e}}functionA(e,n){varr=String(n).toLowerCase();returnfunction(e,n){for(varr=0,t=e.length;r<t;r++){varo=e[r];if(n(o,r))returnz.some(o)}returnz.none()}(e,function(e){returne.search(r)})}functionM(n){returnfunction(e){returny(e,n)}}function_(){returnxe.get()}functionk(e,n,r){return0!=(e.compareDocumentPosition(n)&r)}functionF(e,n){varr=e.dom();if(r.nodeType!==Ce)return!1;vart=r;if(t.matches!==undefined)returnt.matches(n);if(t.msMatchesSelector!==undefined)returnt.msMatchesSelector(n);if(t.webkitMatchesSelector!==undefined)returnt.webkitMatchesSelector(n);if(t.mozMatchesSelector!==undefined)returnt.mozMatchesSelector(n);thrownewError("Browser lacks native selectors")}functionR(e,n){varr=n===undefined?l.document:n.dom();returnfunction(e){returne.nodeType!==Ce&&e.nodeType!==De||0===e.childElementCount}(r)?[]:v(r.querySelectorAll(e),ne.fromDom)}functionL(n){returnfunction(e){returnz.from(e.dom().parentNode).map(ne.fromDom)}(n).map(Ae).map(function(e){returnp(e,function(e){return!function(e,n){returne.dom()===n.dom()}(n,e)})}).getOr([])}functionI(e,n,r,t){return{x:m(e),y:m(n),width:m(r),height:m(t),right:m(e+r),bottom:m(n+t)}}functionP(e){varn=e===u