!function(){"use strict";varn,e,t,r,o=function(n){vare=n,t=function(){returne};return{get:t,set:function(n){e=n},clone:function(){returno(t())}}},u=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=function(n){return{isEnabled:function(){returnn.get()}}},c=function(n,e){returnn.fire("VisualChars",{state:e})},a={"\xa0":"nbsp","\xad":"shy"},f=function(n,e){vart,r="";for(tinn)r+=t;returnnewRegExp("["+r+"]",e?"g":"")},l=function(n){vare,t="";for(einn)t&&(t+=","),t+="span.mce-"+n[e];returnt},s={charMap:a,regExp:f(a),regExpGlobal:f(a,!0),selector:l(a),charMapToRegExp:f,charMapToSelector:l},d=function(n){returnfunction(){returnn}},m={noop:function(){},noarg:function(n){returnfunction(){returnn()}},compose:function(n,e){returnfunction(){returnn(e.apply(null,arguments))}},constant:d,identity:function(n){returnn},tripleEquals:function(n,e){returnn===e},curry:function(n){for(vare=newArray(arguments.length-1),t=1;t<arguments.length;t++)e[t-1]=arguments[t];returnfunction(){for(vart=newArray(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];varo=e.concat(t);returnn.apply(null,o)}},not:function(n){returnfunction(){return!n.apply(null,arguments)}},die:function(n){returnfunction(){thrownewError(n)}},apply:function(n){returnn()},call:function(n){n()},never:d(!1),always:d(!0)},p=m.never,h=m.always,v=function(){returng},g=(r={fold:function(n,e){returnn()},is:p,isSome:p,isNone:h,getOr:t=function(n){returnn},getOrThunk:e=function(n){returnn()},getOrDie:function(n){thrownewError(n||"error: getOrDie called on none.")},or:t,orThunk:e,map:v,ap:v,each:function(){},bind:v,flatten:v,exists:p,forall:h,filter:v,equals:n=function(n){returnn.isNone()},equals_:n,toArray:function(){return[]},toString:m.constant("none()")},Object.freeze&&Object.freeze(r),r),y=function(n){vare=function(){returnn},t=function(){returno},r=function(e){returne(n)},o={fold:function(e,t){returnt(n)},is:function(e){returnn===e},isSome:h,isNone:p,getOr:e,getOrThunk:e,getOrDie:e,or:t,orThunk:t,map:function(e){returny(e(n))},ap:function(e){returne.fold(v,function(e){returny(e(n))})},each:function(e){e(n)},bind:r,flatten:e,exists:r,forall:r,filter:function(e){returne(n)?o:g},equals:function(e){returne.is(n)},equals_:function(e,t){returne.fold(p,function(e){returnt(n,e)})},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};returno},T={some:y,none:v,from:function(n){returnnull===n||n===undefined?g:y(n)}},w=(Array.prototype.indexOf,undefined,function(n,e){for(vart=n.length,r=newArray(t),o=0;o<t;o++){varu=n[o];r[o]=e(u,o,n)}returnr}),x=function(n,e){for(vart=0,r=n.length;t<r;t++)e(n[t],t,n)},E=(Array.prototype.push,Array.prototype.slice,w),b=x,k=function(n){if(null===n||n===undefined)thrownewError("Node cannot be null or undefined");return{dom:m.constant(n)}},N={fromHtml:function(n,e){vart=(e||document).createElement("div");if(t.innerHTML=n,!t.hasChildNodes()||t.childNodes.length>1)throwconsole.error("HTML does not have a single root node",n),"HTML must have a single root node";returnk(t.childNodes[0])},fromTag:function(n,e){vart=(e||document).createElement(n);returnk(t)},fromText:function(n,e){vart=(e||document).createTextNode(n);returnk(t)},fromDom:k,fromPoint:function(n,e,t){returnT.from(n.dom().elementFromPoint(e,t)).map(k)}},C=8,M=9,D=3,O=function(n){returnn.dom().nodeName.toLowerCase()},A=function(n){returnn.dom().nodeType},S=function(n){returnfunction(e){returnA(e)===n}},B=S(1),P=S(D),V=S(M),q={name:O,type:A,value:function(n){returnn.dom().nodeValue},isElement:B,isText:P,isDocument:V,isComment:function(n){returnA(n)===C||"#comment"===O(n)}},H=function(n){return'<span data-mce-bogus="1" class="mce-'+s.charMap[n]+'">'+n+"</span>"},L=function(n,e){vart=[],r=n.dom(),o=E(r.childNodes,N.fromDom);returnb(o,function(n){e(n)&&(t=t.concat([n])),t=t.concat(L(n,e))}),t},R={isMatch:function(n){returnq.isText(n)&&q.value(n)!==undefined&&s.regExp.test(q.value(n))},filterDescendants:L,findParentElm:function(n,e){for(;n.parentNode;){if(n.parentNode===e)returnn;n=n.parentNode}},replaceWit