function od(){this.Init();this.$d=q.b.rm()[q.zl]!=q.Al}m("AdfSafariEditingAgent",od);r.v(od,kd);od.prototype.il=function(a,b){if(this.$d&&q.b.S()==q.Tc&&null==a.contentWindow)return"";var d=this.Mc(a).body;if(!b){var e=d.childNodes;if(e)if(1==e.length){if(e=e[0],"BR"==e.nodeName&&""==e.innerText)return""}else if(2==e.length&&this.$d&&q.b.S()==q.Tc&&""==e[0].innerText&&""==e[1].innerText)return""}return d.innerHTML};r.a("AdfSafariEditingAgent.prototype.getInlineFrameContent",{il:od.prototype.il});
od.prototype.xh=function(){return"\x3cbr\x3e"};r.a("AdfSafariEditingAgent.prototype.getDefaultContent",{xh:od.prototype.xh});
od.prototype.wo=function(a,b){if("TEXTAREA"==a.nodeName||"INPUT"==a.nodeName){var d=a.selectionStart+b.length;a.value=a.value.substr(0,a.selectionStart)+b+a.value.substr(a.selectionEnd);a.selectionStart=d;a.selectionEnd=d}else if(d=this.je(a),null==d){var e=this.Mc(a),f=e.createElement("div");f.innerHTML=b;for(var f=f.childNodes,g=f.length,d=e.body,g=g-1;0<=g;g--)e=f[g],d.insertBefore(e,d.firstChild)}else{0<d.toString().length&&d.deleteContents();e=this.Mc(a);f=e.createElement("div");f.innerHTML=
b;for(var f=f.childNodes,g=f.length,h=null,g=g-1;0<=g;g--)e=f[g],null==h&&(h=e),d.insertNode(e);null!=h&&(d.selectNode(h),d.setStartAfter(h))}};r.a("AdfSafariEditingAgent.prototype.insertHtmlAtSelection",{wo:od.prototype.wo});od.prototype.Ms=function(a){return this.Pi(a)?!1:od.h.Ms.call(this,a)};r.a("AdfSafariEditingAgent.prototype.setInlineFrameContentEditable",{Ms:od.prototype.Ms});od.prototype.hl=function(a){u.u(a,"IFRAME");a=this.Mc(a).body;a.tabIndex=0;return a};
r.a("AdfSafariEditingAgent.prototype.getFocusBlurElement",{hl:od.prototype.hl});od.prototype.je=function(a){u.u(a,"IFRAME");if((a=this.$l(a))&&0<a.rangeCount)return a.getRangeAt(0)};r.a("AdfSafariEditingAgent.prototype.getSelectionRange",{je:od.prototype.je});od.prototype.setSelectionRange=function(a,b){u.u(a,"IFRAME");var d=this.$l(a);d&&(d.removeAllRanges(),d.addRange(b))};r.a("AdfSafariEditingAgent.prototype.setSelectionRange",{setSelectionRange:od.prototype.setSelectionRange});
od.prototype.$l=function(a){u.u(a,"IFRAME");return this.Mc(a).defaultView.getSelection()};od.prototype.ql=function(a,b){b.shiftKey?(q.b.preventDefault(b),J.ni(a)):(q.b.preventDefault(b),J.ce(a,null,!0))};r.a("AdfSafariEditingAgent.prototype.handleTab",{ql:od.prototype.ql});od.prototype.queryCommandValue=function(a,b){if(this.Pi(a))return od.h.queryCommandValue.call(this,a,b)};r.a("AdfSafariEditingAgent.prototype.queryCommandValue",{queryCommandValue:od.prototype.queryCommandValue});
od.prototype.queryCommandState=function(a,b){if(this.Pi(a))return od.h.queryCommandState.call(this,a,b)};r.a("AdfSafariEditingAgent.prototype.queryCommandState",{queryCommandState:od.prototype.queryCommandState});od.prototype.ul=function(a,b){return this.Pi(a)?od.h.ul.call(this,a,b):!1};r.a("AdfSafariEditingAgent.prototype.queryCommandIndeterminate",{ul:od.prototype.ul});od.prototype.queryCommandEnabled=function(a,b,d){return this.Pi(b)?od.h.queryCommandEnabled.call(this,a,b,d):!1};
r.a("AdfSafariEditingAgent.prototype.queryCommandEnabled",{queryCommandEnabled:od.prototype.queryCommandEnabled});od.prototype.Bv=function(a,b,d){var e=q.b;this.$d&&e.S()==q.Tc&&536>e.Ib()?(this.Cp||(this.Cp=[]),a=this.Cp.length,0<a&&this.Cp[a-1]==d||this.Cp.push(d)):od.h.Bv.call(this,a,b,d)};r.a("AdfSafariEditingAgent.prototype.updateValueHistory",{Bv:od.prototype.Bv});
od.prototype.Ys=function(a,b,d){var e=q.b;this.$d&&e.S()==q.Tc&&536>e.Ib()?(this.wp||(this.wp=[]),this.Cp&&0<this.Cp.length&&(a=this.Cp.pop(),this.wp.push(a),0<this.Cp.length&&this.a_(b,this.Cp[this.Cp.length-1]))):od.h.Ys.call(this,a,b,d)};r.a("AdfSafariEditingAgent.prototype.ExecuteUndo",{Ys:od.prototype.Ys});od.prototype.Xs=function(a,b,d){var e=q.b;this.$d&&e.S()==q.Tc&&536>e.Ib()?this.wp&&0<this.wp.length&&this.a_(b,this.wp.pop()):od.h.Xs.call(this,a,b,d)};
r.a("AdfSafariEditingAgent.prototype.ExecuteRedo",{Xs:od.prototype.Xs});od.prototype.pt=function(a,b){var d=q.b;return this.$d&&d.S()==q.Tc&&536>d.Ib()?this.Cp&&0<this.Cp.length?!0:!1:od.h.pt.call(this,a,b)};r.a("AdfSafariEditingAgent.prototype.QueryUndoEnabled",{pt:od.prototype.pt});od.prototype.ot=function(a,b){var d=q.b;return this.$d&&d.S()==q.Tc&&536>d.Ib()?this.wp&&0<this.wp.length?!0:!1:od.h.ot.call(this,a,b)};r.a("AdfSafariEditingAgent.prototype.QueryRedoEnabled",{ot:od.prototype.ot});