function ld(){this.Init()}m("AdfGeckoEditingAgent",ld);r.v(ld,kd);ld.ga=function(){this.Xab="backcolor";this.Zab="hilitecolor";this.F4="data-adf-tmp-rte-enabler";this.Nja="\x3cbr "+this.F4;this.Icb=this.Nja+'\x3d"true"\x3e'};m("AdfGeckoEditingAgent.InitClass",ld.ga);
ld.prototype.il=function(a,b){var d=this.Mc(a),e=d.body;if(!b){var f=e.childNodes;if(f){var g=e.getElementsByTagName("BR"),h=f.length;if(g&&1>=g.length&&1<h){for(;0<h;)g=f[0],1==g.nodeType&&0==g.offsetWidth?(e.removeChild(g),h--):h=0;0==e.childNodes.length&&(d=d.createElement("br"),d.setAttribute(ld.F4,"true"),e.appendChild(d))}d=!1;if(1==f.length&&"BR"==f[0].nodeName)return"";1<=f.length&&"BR"==f[f.length-1].nodeName&&"true"==f[f.length-1].getAttribute(ld.F4)?d=!0:C.o9(e,!0,this.rta,null)&&(d=!0);
if(d)return e=e.innerHTML,f=e.lastIndexOf(ld.Nja),d=e.indexOf("\x3e",f+ld.Nja.length),e.substring(0,f)+e.substring(d+1)}}return e.innerHTML};r.a("AdfGeckoEditingAgent.prototype.getInlineFrameContent",{il:ld.prototype.il});ld.prototype.rta=function(a){return"BR"==a.nodeName&&"true"==a.getAttribute(ld.F4)?C.FILTER_ACCEPT:C.FILTER_SKIP};r.a("AdfGeckoEditingAgent.prototype.isDummyBrFnc",{rta:ld.prototype.rta});ld.prototype.xh=function(){return ld.Icb};
r.a("AdfGeckoEditingAgent.prototype.getDefaultContent",{xh:ld.prototype.xh});ld.prototype.zv=function(a){var b=a;a==ld.Xab&&(b=ld.Zab);return b};r.a("AdfGeckoEditingAgent.prototype.toBrowserSpecificCommand",{zv:ld.prototype.zv});ld.prototype.hl=function(a){u.u(a,"IFRAME");return this.Mc(a)};r.a("AdfGeckoEditingAgent.prototype.getFocusBlurElement",{hl:ld.prototype.hl});ld.prototype.je=function(a){u.u(a,"IFRAME");if((a=this.$l(a))&&0<a.rangeCount)return a.getRangeAt(0)};
r.a("AdfGeckoEditingAgent.prototype.getSelectionRange",{je:ld.prototype.je});ld.prototype.setSelectionRange=function(a,b){u.u(a,"IFRAME");var d=this.$l(a);d&&(d.removeAllRanges(),d.addRange(b))};r.a("AdfGeckoEditingAgent.prototype.setSelectionRange",{setSelectionRange:ld.prototype.setSelectionRange});ld.prototype.$l=function(a){u.u(a,"IFRAME");return this.Mc(a).defaultView.getSelection()};ld.prototype.ql=function(a,b){b.shiftKey||(q.b.preventDefault(b),J.ce(a,null,!0))};
r.a("AdfGeckoEditingAgent.prototype.handleTab",{ql:ld.prototype.ql});ld.prototype.queryCommandValue=function(a,b){if(this.Pi(a))return ld.h.queryCommandValue.call(this,a,b)};r.a("AdfGeckoEditingAgent.prototype.queryCommandValue",{queryCommandValue:ld.prototype.queryCommandValue});ld.prototype.queryCommandState=function(a,b){if(this.Pi(a))return ld.h.queryCommandState.call(this,a,b)};r.a("AdfGeckoEditingAgent.prototype.queryCommandState",{queryCommandState:ld.prototype.queryCommandState});
ld.prototype.ul=function(a,b){return this.Pi(a)?ld.h.ul.call(this,a,b):!1};r.a("AdfGeckoEditingAgent.prototype.queryCommandIndeterminate",{ul:ld.prototype.ul});ld.prototype.queryCommandEnabled=function(a,b,d){return this.Pi(b)?"unlink"==d?this.Vca(a,b):ld.h.queryCommandEnabled.call(this,a,b,d):!1};r.a("AdfGeckoEditingAgent.prototype.queryCommandEnabled",{queryCommandEnabled:ld.prototype.queryCommandEnabled});ld.prototype.Vca=function(a,b){var d=this.Mc(b).getSelection();return d&&""==d?!1:!0};
r.a("AdfGeckoEditingAgent.prototype.QueryUnLinkEnabled",{Vca:ld.prototype.Vca});ld.prototype.nD=function(a,b,d){for(var e="",f="",g=0;g<d.length;g++){for(var h=f=d.charAt(g),l=void 0,l=0;256>l;++l){var n=l.toString(16);1==n.length&&(n="0"+n);n="%"+n;n=unescape(n);if(n==h)break}e=256==l?e+encodeURI(f):e+f}return ld.h.nD(a,b,e)};r.a("AdfGeckoEditingAgent.prototype.CreateLink",{nD:ld.prototype.nD});