!function(_){"use strict";varu,t,e,n,i,r=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"),o=function(t){returnt.reduce(function(t,e){returnArray.isArray(e)?t.concat(o(e)):t.concat(e)},[])},s={flatten:o},a=function(t,e){for(varn=0;n<e.length;n++){vari=(0,e[n])(t);if(i)returni}returnnull},l=function(t,e){return{id:t,rect:e}},d=function(t){return{x:t.left,y:t.top,w:t.width,h:t.height}},f=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}},m=function(t){vare=v.DOM.getViewPort();return{x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},g=function(t){vare=t.getBoundingClientRect();returnm({x:e.left,y:e.top,w:Math.max(t.clientWidth,t.offsetWidth),h:Math.max(t.clientHeight,t.offsetHeight)})},p=function(t,e){returng(e)},b=function(t){returng(t.getContentAreaContainer()||t.getBody())},y=function(t){vare=t.selection.getBoundingClientRect();returne?m(d(e)):null},x=function(n,i){returnfunction(t){for(vare=0;e<i.length;e++)if(i[e].predicate(n))returnl(i[e].id,p(t,n));returnnull}},w=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]))returnl(r[n].id,p(t,i[e]));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(e){returnfunction(t){returnt.selection.isCollapsed()?null:l(e,y(t))}},H=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])?l(r,y(t)):null;returnnull}},T=function(t){t.fire("SkinLoaded")},S=function(t){returnt.fire("BeforeRenderUI")},M=tinymce.util.Tools.resolve("tinymce.EditorManager"),N=function(e){returnfunction(t){returntypeoft===e}},O=function(t){returnArray.isArray(t)},W=function(t){returnN("string")(t)},P=function(t){returnN("number")(t)},D=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(W),getBoolOr:I(D),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:W(i)?"string"==typeof(s=i)?(a=/[ ,]/,s.split(a).filter(function(t){return0<t.length})):s:D(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:f(e),contentAreaRect:f(n),panelRect:f(i)}),d(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=M.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=f