!function(){"use strict";vart,e,n,i,r,o,s=tinymce.util.Tools.resolve("tinymce.ThemeManager"),a=tinymce.util.Tools.resolve("tinymce.Env"),l=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),u=tinymce.util.Tools.resolve("tinymce.util.Delay"),c=function(t){returnt.reduce(function(t,e){returnArray.isArray(e)?t.concat(c(e)):t.concat(e)},[])},d={flatten:c},f=function(t,e){for(varn=0;n<e.length;n++){vari=(0,e[n])(t);if(i)returni}returnnull},h=function(t,e){return{id:t,rect:e}},m=function(t){return{x:t.left,y:t.top,w:t.width,h:t.height}},g=function(t){return{left:t.x,top:t.y,width:t.w,height:t.h,right:t.x+t.w,bottom:t.y+t.h}},p=function(t){vare=l.DOM.getViewPort();return{x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},v=function(t){vare=t.getBoundingClientRect();returnp({x:e.left,y:e.top,w:Math.max(t.clientWidth,t.offsetWidth),h:Math.max(t.clientHeight,t.offsetHeight)})},y=function(t,e){returnv(e)},b=function(t){returnv(t.getContentAreaContainer()||t.getBody())},x=function(t){vare=t.selection.getBoundingClientRect();returne?p(m(e)):null},w=function(t,e){returnfunction(n){for(vari=0;i<e.length;i++)if(e[i].predicate(t))returnh(e[i].id,y(n,t));returnnull}},_=function(t,e){returnfunction(n){for(vari=0;i<t.length;i++)for(varr=0;r<e.length;r++)if(e[r].predicate(t[i]))returnh(e[r].id,y(n,t[i]));returnnull}},R=tinymce.util.Tools.resolve("tinymce.util.Tools"),C=function(t,e){return{id:t,predicate:e}},k=function(t){returnR.map(t,function(t){returnC(t.id,t.predicate)})},E=function(t){returnfunction(e){returne.selection.isCollapsed()?null:h(t,x(e))}},H=function(t,e){returnfunction(n){vari,r=n.schema.getTextBlockElements();for(i=0;i<t.length;i++)if("TABLE"===t[i].nodeName)returnnull;for(i=0;i<t.length;i++)if(t[i].nodeNameinr)returnn.dom.isEmpty(t[i])?h(e,x(n)):null;returnnull}},S=function(t){t.fire("SkinLoaded")},M=function(t){returnt.fire("BeforeRenderUI")},T=tinymce.util.Tools.resolve("tinymce.EditorManager"),W=function(t){returnfunction(e){returntypeofe===t}},P=function(t){returnArray.isArray(t)},N=function(t){returnW("string")(t)},O=function(t){returnW("number")(t)},D=function(t){returnW("boolean")(t)},A=function(t){returnW("function")(t)},B=(W("object"),P),L=function(t,e){if(e(t))return!0;thrownewError("Default value doesn't match requested type.")},z=function(t){returnfunction(e,n,i){varr=e.settings;returnL(i,t),ninr&&t(r[n])?r[n]:i}},I={getStringOr:z(N),getBoolOr:z(D),getNumberOr:z(O),getHandlerOr:z(A),getToolbarItemsOr:(t=B,function(e,n,i){varr,o,s,a,l,u=nine.settings?e.settings[n]:i;returnL(i,t),o=i,B(r=u)?r:N(r)?"string"==typeof(a=r)?(l=/[ ,]/,a.split(l).filter(function(t){returnt.length>0})):a:D(r)?(s=o,!1===r?[]:s):o})},F=tinymce.util.Tools.resolve("tinymce.geom.Rect"),V=function(t,e){return{rect:t,position:e}},U=function(t,e){return{x:e.x,y:e.y,w:t.w,h:t.h}},q=function(t,e,n,i,r){varo,s,a,l={x:i.x,y:i.y,w:i.w+(i.w<r.w+n.w?r.w:0),h:i.h+(i.h<r.h+n.h?r.h:0)};returno=F.findBestRelativePosition(r,n,l,t),n=F.clamp(n,l),o?(s=F.relativePosition(r,n,o),a=U(r,s),V(a,o)):(n=F.intersect(l,n))?(o=F.findBestRelativePosition(r,n,l,e))?(s=F.relativePosition(r,n,o),a=U(r,s),V(a,o)):(a=U(r,n),V(a,o)):null},j=function(t,e,n){returnq(["cr-cl","cl-cr"],["bc-tc","bl-tl","br-tr"],t,e,n)},$=function(t,e,n){returnq(["tc-bc","bc-tc","tl-bl","bl-tl","tr-br","br-tr","cr-cl","cl-cr"],["bc-tc","bl-tl","br-tr","cr-cl"],t,e,n)},Y=function(t,e,n,i){varr;return"function"==typeoft?(r=t({elementRect:g(e),contentAreaRect:g(n),panelRect:g(i)}),m(r)):i},X=function(t){returnt.panelRect},J=function(t){returnI.getToolbarItemsOr(t,"selection_toolbar",["bold","italic","|","quicklink","h2","h3","blockquote"])},G=function(t){returnI.getToolbarItemsOr(t,"insert_toolbar",["quickimage","quicktable"])},K=function(t){returnI.getHandlerOr(t,"inline_toolbar_position_handler",X)},Z=function(t){vare,n,i,r,o=t.settings;returno.skin_url?(i=t,r=o.skin_url,i.documentBaseURI.toAbsolute(r)):(e=o.skin,n=T.baseURL+"/skins/",e?n+e:n+"lightgray")},Q=function(t){return!1===t.settings.skin},tt=function(t,e){varn=Z(t),i=function(){varn,i,r