function jd(){this.Init()}m("AdfGeckoEditingAgent",jd);r.v(jd,gd);jd.ga=function(){this.Vab="backcolor";this.Xab="hilitecolor";this.F4="data-adf-tmp-rte-enabler";this.Kja="\x3cbr "+this.F4;this.Hcb=this.Kja+'\x3d"true"\x3e'};m("AdfGeckoEditingAgent.InitClass",jd.ga);
jd.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(jd.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(jd.F4)?d=!0:C.o9(e,!0,this.ota,null)&&(d=!0);
if(d)return e=e.innerHTML,f=e.lastIndexOf(jd.Kja),d=e.indexOf("\x3e",f+jd.Kja.length),e.substring(0,f)+e.substring(d+1)}}return e.innerHTML};r.a("AdfGeckoEditingAgent.prototype.getInlineFrameContent",{il:jd.prototype.il});jd.prototype.ota=function(a){return"BR"==a.nodeName&&"true"==a.getAttribute(jd.F4)?C.FILTER_ACCEPT:C.FILTER_SKIP};r.a("AdfGeckoEditingAgent.prototype.isDummyBrFnc",{ota:jd.prototype.ota});jd.prototype.wh=function(){return jd.Hcb};
r.a("AdfGeckoEditingAgent.prototype.getDefaultContent",{wh:jd.prototype.wh});jd.prototype.xv=function(a){var b=a;a==jd.Vab&&(b=jd.Xab);return b};r.a("AdfGeckoEditingAgent.prototype.toBrowserSpecificCommand",{xv:jd.prototype.xv});jd.prototype.hl=function(a){u.u(a,"IFRAME");return this.Mc(a)};r.a("AdfGeckoEditingAgent.prototype.getFocusBlurElement",{hl:jd.prototype.hl});jd.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:jd.prototype.je});jd.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:jd.prototype.setSelectionRange});jd.prototype.$l=function(a){u.u(a,"IFRAME");return this.Mc(a).defaultView.getSelection()};jd.prototype.ql=function(a,b){b.shiftKey||(q.b.preventDefault(b),J.be(a,null,!0))};
r.a("AdfGeckoEditingAgent.prototype.handleTab",{ql:jd.prototype.ql});jd.prototype.queryCommandValue=function(a,b){if(this.Oi(a))return jd.h.queryCommandValue.call(this,a,b)};r.a("AdfGeckoEditingAgent.prototype.queryCommandValue",{queryCommandValue:jd.prototype.queryCommandValue});jd.prototype.queryCommandState=function(a,b){if(this.Oi(a))return jd.h.queryCommandState.call(this,a,b)};r.a("AdfGeckoEditingAgent.prototype.queryCommandState",{queryCommandState:jd.prototype.queryCommandState});
jd.prototype.ul=function(a,b){return this.Oi(a)?jd.h.ul.call(this,a,b):!1};r.a("AdfGeckoEditingAgent.prototype.queryCommandIndeterminate",{ul:jd.prototype.ul});jd.prototype.queryCommandEnabled=function(a,b,d){return this.Oi(b)?"unlink"==d?this.Tca(a,b):jd.h.queryCommandEnabled.call(this,a,b,d):!1};r.a("AdfGeckoEditingAgent.prototype.queryCommandEnabled",{queryCommandEnabled:jd.prototype.queryCommandEnabled});jd.prototype.Tca=function(a,b){var d=this.Mc(b).getSelection();return d&&""==d?!1:!0};
r.a("AdfGeckoEditingAgent.prototype.QueryUnLinkEnabled",{Tca:jd.prototype.Tca});jd.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 jd.h.nD(a,b,e)};r.a("AdfGeckoEditingAgent.prototype.CreateLink",{nD:jd.prototype.nD});