!function(){"use strict";varn=function(e){vart=e,r=function(){returnt};return{get:r,set:function(n){t=n},clone:function(){returnn(r())}}},e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(n){return{isEnabled:function(){returnn.get()}}},r=function(n,e){returnn.fire("VisualChars",{state:e})},o={"\xa0":"nbsp","\xad":"shy"},u=function(n,e){vart,r="";for(tinn)r+=t;returnnewRegExp("["+r+"]",e?"g":"")},i=function(n){vare,t="";for(einn)t&&(t+=","),t+="span.mce-"+n[e];returnt},c={charMap:o,regExp:u(o),regExpGlobal:u(o,!0),selector:i(o),charMapToRegExp:u,charMapToSelector:i},a=function(n){returnfunction(){returnn}},f={noop:function(){},noarg:function(n){returnfunction(){returnn()}},compose:function(n,e){returnfunction(){returnn(e.apply(null,arguments))}},constant:a,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:a(!1),always:a(!0)},l=f.never,s=f.always,d=function(){returnm},m=function(){varn=function(n){returnn.isNone()},e=function(n){returnn()},t=function(n){returnn},r={fold:function(n,e){returnn()},is:l,isSome:l,isNone:s,getOr:t,getOrThunk:e,getOrDie:function(n){thrownewError(n||"error: getOrDie called on none.")},or:t,orThunk:e,map:d,ap:d,each:function(){},bind:d,flatten:d,exists:l,forall:s,filter:d,equals:n,equals_:n,toArray:function(){return[]},toString:f.constant("none()")};returnObject.freeze&&Object.freeze(r),r}(),v=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:s,isNone:l,getOr:e,getOrThunk:e,getOrDie:e,or:t,orThunk:t,map:function(e){returnv(e(n))},ap:function(e){returne.fold(d,function(e){returnv(e(n))})},each:function(e){e(n)},bind:r,flatten:e,exists:r,forall:r,filter:function(e){returne(n)?o:m},equals:function(e){returne.is(n)},equals_:function(e,t){returne.fold(l,function(e){returnt(n,e)})},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};returno},p={some:v,none:d,from:function(n){returnnull===n||n===undefined?m:v(n)}},h=(function(){varn=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}),g=function(n,e){for(vart=0,r=n.length;t<r;t++){e(n[t],t,n)}},y=function(n,e){for(vart=0,r=n.length;t<r;++t)if(n[t]===e)returnt;return-1},T=(Array.prototype.push,Array.prototype.slice,h),w=g,x=function(n){if(null===n||n===undefined)thrownewError("Node cannot be null or undefined");return{dom:f.constant(n)}},E={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";returnx(t.childNodes[0])},fromTag:function(n,e){vart=(e||document).createElement(n);returnx(t)},fromText:function(n,e){vart=(e||document).createTextNode(n);returnx(t)},fromDom:x,fromPoint:function(n,e,t){returnp.from(n.dom().elementFromPoint(e,t)).map(x)}},b=8,k=9,N=3,C=function(n){returnn.dom().nodeName.toLowerCase()},M=function(n){returnn.dom().nodeType},D=function(n){returnfunction(e){returnM(e)===n}},O=D(1),A=D(N),S=D(k),B={name:C,type:M,value:function(n){returnn.dom().nodeValue},isElement:O,isText:A,isDocument:S,isComment:function(n){returnM(n)===b||"#comment"===C(n)}},P=function(n){return'<span data-mce-bogus="1" class="mce-'+c.charMap[n]+'">'+n+"</span>"},V=function(n,e){vart=[],r=n.dom(),o=T(r.childNodes,E.fromDom);returnw(o,function(n){e(n)&&(t=t.concat([n])),t=t.concat(V(n,e))}),t},q={isMatch:function(n){returnB.isText(n)&&B.value(n)!==undefined&&c.regExp.test(B.value(n))},fil