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