!function(){"use strict";vare,t,n,i,r,o=tinymce.util.Tools.resolve("tinymce.ThemeManager"),l=tinymce.util.Tools.resolve("tinymce.EditorManager"),w=tinymce.util.Tools.resolve("tinymce.util.Tools"),d=function(e){return!1!==c(e)},c=function(e){returne.getParam("menubar")},f=function(e){returne.getParam("toolbar_items_size")},h=function(e){returne.getParam("menu")},m=function(e){return!1===e.settings.skin},g=function(e){vart=e.getParam("resize","vertical");return!1===t?"none":"both"===t?"both":"vertical"},p=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),v=tinymce.util.Tools.resolve("tinymce.ui.Factory"),b=tinymce.util.Tools.resolve("tinymce.util.I18n"),s=function(e){returne.fire("SkinLoaded")},y=function(e){returne.fire("ResizeEditor")},x=function(e){returne.fire("BeforeRenderUI")},a=function(t,n){returnfunction(){vare=t.find(n)[0];e&&e.focus(!0)}},_=function(e,t){e.shortcuts.add("Alt+F9","",a(t,"menubar")),e.shortcuts.add("Alt+F10,F10","",a(t,"toolbar")),e.shortcuts.add("Alt+F11","",a(t,"elementpath")),t.on("cancel",function(){e.focus()})},R=tinymce.util.Tools.resolve("tinymce.geom.Rect"),u=tinymce.util.Tools.resolve("tinymce.util.Delay"),C=function(e){returnfunction(){returne}},k={noop:function(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},noarg:function(n){returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];returnn()}},compose:function(n,i){returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];returnn(i.apply(null,arguments))}},constant:C,identity:function(e){returne},tripleEquals:function(e,t){returne===t},curry:function(o){for(vare=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];for(vars=newArray(arguments.length-1),n=1;n<arguments.length;n++)s[n-1]=arguments[n];returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(varn=newArray(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];varr=s.concat(n);returno.apply(null,r)}},not:function(n){returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return!n.apply(null,arguments)}},die:function(e){returnfunction(){thrownewError(e)}},apply:function(e){returne()},call:function(e){e()},never:C(!1),always:C(!0)},E=k.never,H=k.always,S=function(){returnM},M=(i={fold:function(e,t){returne()},is:E,isSome:E,isNone:H,getOr:n=function(e){returne},getOrThunk:t=function(e){returne()},getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},or:n,orThunk:t,map:S,ap:S,each:function(){},bind:S,flatten:S,exists:E,forall:H,filter:S,equals:e=function(e){returne.isNone()},equals_:e,toArray:function(){return[]},toString:k.constant("none()")},Object.freeze&&Object.freeze(i),i),T=function(n){vare=function(){returnn},t=function(){returnr},i=function(e){returne(n)},r={fold:function(e,t){returnt(n)},is:function(e){returnn===e},isSome:H,isNone:E,getOr:e,getOrThunk:e,getOrDie:e,or:t,orThunk:t,map:function(e){returnT(e(n))},ap:function(e){returne.fold(S,function(e){returnT(e(n))})},each:function(e){e(n)},bind:i,flatten:e,exists:i,forall:i,filter:function(e){returne(n)?r:M},equals:function(e){returne.is(n)},equals_:function(e,t){returne.fold(E,function(e){returnt(n,e)})},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};returnr},P={some:T,none:S,from:function(e){returnnull===e||e===undefined?M:T(e)}},W=function(e){returne?e.getRoot().uiContainer:null},D={getUiContainerDelta:function(e){vart=W(e);if(t&&"static"!==p.DOM.getStyle(t,"position",!0)){varn=p.DOM.getPos(t),i=t.scrollLeft-n.x,r=t.scrollTop-n.y;returnP.some({x:i,y:r})}returnP.none()},setUiContainer:function(e,t){varn=p.DOM.select(e.settings.ui_container)[0];t.getRoot().uiContainer=n},getUiContainer:W,inheritUiContainer:function(e,t){returnt.uiContainer=W(e)}},N=function(i,e,r){varo,s=[];if(e)returnw.each(e.split(/[ ,]/),function(t){vare,n=function(){vare=i.selection;t.settings.stateSelector&&e.selectorChanged(t.settings.stateSelector,function(e){t.active(e)},!0),t.settings.disabledStateSelector&&e.selectorChanged(t.settings.disabledStateSe