var eo=I.ea(I,"AdfDhtmlMenuPeer",!1);m("AdfDhtmlMenuPeer",eo);eo.C=function(){r.bb(W);r.bb(qi);I.ra(this,D.Bd,D.Rg,D.Pc,D.Nd,D.Ad,D.Bc,D.hh);q.b.Dd()||I.ra(this,D.ze,D.gg);I.sb(this,AdfRichMenu.DISABLED,AdfRichMenu.VISIBLE,AdfRichMenu.TEXT);this.yoa=[];this.yp=[];this.m5a=3;this.q1a=15;this.fDa=300;var a=w.zR,b=w.Bk|w.pi;this.dNa=w.Yg(a,b);a=w.xK;b=w.Bk|w.pi;this.RJa=w.Yg(a,b)};m("AdfDhtmlMenuPeer.InitSubclass",eo.C);
eo.prototype.Init=function(a){a.getParent();eo.h.Init.call(this,a);a=A.c.H();a=parseInt(a.qa("af|menu-tr-visible-items"));this.f6=isNaN(a)?14:a;this.Rr=this.xr=this.F5=!1};r.a("AdfDhtmlMenuPeer.prototype.Init",{Init:eo.prototype.Init});eo.prototype.G=function(a,b){if("1"==b.getAttribute(W.wca)){var d=a.g();eo.k9a(d)}};r.a("AdfDhtmlMenuPeer.prototype.InitDomElement",{G:eo.prototype.G});eo.pH=function(){eo.F6&&(window.clearTimeout(eo.F6),delete eo.F6,delete eo.pN)};
m("AdfDhtmlMenuPeer.cancelShowing",eo.pH);
eo.prototype.show=function(a,b){var d=this.i(),e=this.f(),f=e.g();C.w(d,W.Nh);!this.xo()&&this.Py()&&W.$Ua(f);null==b&&null!=a&&(d=a.focus,b=null!=d?d:this.xo()?!0:!1);br(this);if("noContent"==this.eB())this.BX("fetching"),d={},d.owb=cr(this),this.Sib=a,this.Rib=b,(new gh(e,gh.rk,d)).F(),this.Qoa();else if("fetching"==this.eB())v.l.info("Currently waiting on menu content fetch: "+e.g());else if(d=dr(this),"block"==d.style.display)f=q.b,f.Y().Zi&&f instanceof Ge?J.ni(d):b&&J.va(this.Pa);else{this.bh();
var g=er(this,a,b);d.style.display="block";var h=this.Lcb;h||(d.style.visibility="hidden");this.He(e,d,g,f);if(!h){e=q.b;this.f().getDetachable()&&(g=I.j(f,"close"),this.Via=e.getElementById(g),this.Uia=this.D(this.Tia),e.ba(this.Via,"click",this.Uia),g=I.j(f,"handle"),this.gB=e.getElementById(g),this.bpa=this.D(this.lkb),e.ba(this.gB,"mousedown",this.bpa));g=I.j(f,"ScrollContent");this.EN=e.getElementById(g);h=this.EN.rows;if(h.length<this.f6)this.yL=!1;else{g=[];for(i=0;i<h.length;i++){var l=h[i];
"none"!=l.style.display&&g.push(l)}if(this.yL=g.length>this.f6)h=I.j(f,"ScrollUp"),this.Qx=e.getElementById(h),this.Qx.style.display="block",h=I.j(f,"sUpBg"),this.Eoa=e.getElementById(h),h=I.j(f,"ScrollDown"),this.Px=e.getElementById(h),this.Px.style.display="block",h=I.j(f,"sDwnBg"),this.Boa=e.getElementById(h),f=I.j(f,"ScrollBox"),this.rh=e.getElementById(f),this.rh.style.height=g[this.f6].offsetTop-2-g[0].offsetTop+"px",this.ij=this.D(this.EW),this.rh.addEventListener("wheel",this.ij),f={},f[qi.dE]=
this.D(this.sx),e={},e[qi.MODE]=qi.VJ,this.Bg=new qi(this.rh,f,e)}d.style.visibility="";this.Lcb=!0;this.yL&&fr(this)}this.yL&&this.Mm();this.f().getDetachable()&&gr(this)&&null==this.fj&&(this.fj=new Ij(hr(this),this.gB),this.fj.gaa(this.D(this.jJa)),this.fj.eaa(this.D(this.cJa)))}};r.a("AdfDhtmlMenuPeer.prototype.show",{show:eo.prototype.show});eo.prototype.He=function(a,b,d,e){W.cqa(e);eo.h.He.call(this,a,b,d,e)};r.a("AdfDhtmlMenuPeer.prototype.showPopup",{He:eo.prototype.He});
eo.prototype.Jb=function(){var a=this.f(),b=a.g();b==eo.uN&&eo.BOa();this.Dh()||(ir(this,b),eo.h.Jb.call(this,a,b),this.f().getDetachable()&&(this.fj&&this.fj.Jd(),delete this.fj))};r.a("AdfDhtmlMenuPeer.prototype.hidePopup",{Jb:eo.prototype.Jb});eo.prototype.bk=function(){var a=this.f(),b=a.g();this.Dh()?b==eo.uN&&eo.BOa():(ir(this,b),v.l.finest("menuBar auto open mode, set to OFF due to cancel popup event"),W.gz(!1),eo.h.bk.call(this,a,b))};r.a("AdfDhtmlMenuPeer.prototype.cancelPopup",{bk:eo.prototype.bk});
eo.prototype.close=function(a,b){var d=this.f();if(this.Dh()){C.w(dr(this),W.aJ);if(this.GU&&this.HU){var e=this.fj.Ha();e.style.left=this.GU;e.style.top=this.HU}b||this.$t();e=d.g();eo.Q6(e);eo.h.Jb.call(this,d,e)}else this.xo()?d.getParent().Tb():(a?this.Jb():jr(this),b||this.$t())};r.a("AdfDhtmlMenuPeer.prototype.close",{close:eo.prototype.close});eo.prototype.Dh=function(){return this.F5};r.a("AdfDhtmlMenuPeer.prototype.isDetached",{Dh:eo.prototype.Dh});
eo.prototype.xo=function(){return this.f().getParent()instanceof AdfRichPopup};r.a("AdfDhtmlMenuPeer.prototype.isContextMenu",{xo:eo.prototype.xo});eo.prototype.Py=function(){return 1==cr(this)};r.a("AdfDhtmlMenuPeer.prototype.isRootMenu",{Py:eo.prototype.Py});
eo.prototype.Mm=function(){if(this.yL){for(var a=this.EN.rows,b=a.length,d=0,e=0,f=0;f<b;f++){var g=a[f];if("none"!=g.style.display){d=f;break}}for(f=b-1;-1<f;f--)if(g=a[f],"none"!=g.style.display){e=f;break}b=q.b;f=g=!1;g=b.rd(this.rh);d=b.rd(a[d]);a=b.rd(a[e]);f=90<=(g.bottom-a.top)/(a.bottom-a.top)*100;(g=90<=(d.bottom-g.top)/(d.bottom-d.top)*100)?(C.w(this.Qx,I.lb),C.w(this.Eoa,I.lb)):(C.O(this.Qx,I.lb),C.O(this.Eoa,I.lb));f?(C.w(this.Px,I.lb),C.w(this.Boa,I.lb)):(C.O(this.Px,I.lb),C.O(this.Boa,
I.lb))}};r.a("AdfDhtmlMenuPeer.prototype.updateScrollIconsState",{Mm:eo.prototype.Mm});eo.prototype.bh=function(){this.Pa&&this.Pa.setAttribute("tabIndex","-1");var a=dr(this);this.Pa=J.oI(a,{Y9:!0,X9:!0})};r.a("AdfDhtmlMenuPeer.prototype.resetActiveDescendant",{bh:eo.prototype.bh});
eo.prototype.Zb=function(a,b){if("fetching"!=this.eB())eo.h.Zb.call(this,a,b);else{var d=C.pa(a);if(null==d)v.l.warning("Unexpected element received by AdfDhtmlMenuPeer.prototype.ReplaceDomElement"),eo.h.Zb.call(this,a,b);else{this.i().appendChild(d);q.b.Ia(d);this.BX("contentLoaded");var d=this.f(),e=this.i().getAttribute("id"),e=I.j(e,"lazy-fetch-message");eo.h.Jb.call(this,d,e);this.show(this.Sib,this.Rib)}}};r.a("AdfDhtmlMenuPeer.prototype.ReplaceDomElement",{Zb:eo.prototype.Zb});
eo.prototype.ob=function(a,b){var d=this.i();W.vh(d,!0,!1);b.style.display="none";eo.h.ob.call(this,a,b);d.appendChild(b);this.xo()&&(d=a.getParent(),xc.gGa(d,b),d.o().ob(d,null))};r.a("AdfDhtmlMenuPeer.prototype.PopupClosed",{ob:eo.prototype.ob});eo.prototype.fc=function(){W.p_();if(1<cr(this)&&!gr(this)){eo.pN==this&&eo.pH();var a=this.i();C.O(a,W.Nh);C.O(a,W.Ie)}};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentMouseOut",{fc:eo.prototype.fc});
eo.prototype.za=function(a){if(!a.Aa()&&!this.Me()){var b=this.i(),d=a.na(),e=1<cr(this),f=this.f(),g=a.getSource();switch(d){case w.$i:g!=f&&(f=J.ym(dr(this)),this.ay(f),J.va(f),a.cancel());return;case w.Fo:g!=f&&(f=J.GH(dr(this)),this.ay(f),J.va(f),a.cancel());return;case w.jb:this.xr&&(C.w(b,W.Ie),this.show(null,!0));this.xr=!1;a.cancel();return;case w.gd:this.Rr&&(C.w(b,W.Ie),this.show(null,!0));this.Rr=!1;a.cancel();return;case w.Ih:this.Dh()?(this.Tia(),a.cancel()):e?b!=A.c.wd&&(this.focus(f),
this.close(!0,!0),a.cancel()):this.xo()?(W.cl(),b.blur(),this.focus(f),f=f.getParent(),f.o().Tb(f),a.cancel()):(v.l.finest("menuBar auto open mode, set to OFF due to escape pressed while on a root menu"),W.gz(!1),W.cl(!0));return}b=gr(this);d=this.Py();f=a.getSource()==f;if(b&&d||!f)f=this.EN||dr(this),eo.jgb(f,a)}};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentKeyUp",{za:eo.prototype.za});
eo.prototype.ma=function(a){if(!a.Aa()&&!this.Me()){var b=a.na(),d=q.b;b==w.jb?(this.xr=!0,a.cancel(),a.wc()):b==w.gd?(this.Rr=!0,a.cancel(),a.wc()):d.wC()==D.Bc&&this.sp(b,a)}};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentKeyDown",{ma:eo.prototype.ma});eo.prototype.Yb=function(a){if(!a.Aa()&&!this.Me()&&q.b.wC()==D.hh){var b=a.na();this.sp(b,a)}};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentKeyPress",{Yb:eo.prototype.Yb});
eo.prototype.Ta=function(a){var b=a.getSource(),d=this.f();b==d?(b=this.i(),1<cr(this)?C.w(b,W.Nh):W.vs()?(W.vh(b,!0),C.w(b,W.Ie),this.show(null,!1)):W.HC(b)):b.getParent()==d&&(b=b.g(),b=q.b.getElementById(b),(b=J.ym(b))&&b!=this.Pa&&this.ay(b));a.cancel()};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentFocus",{Ta:eo.prototype.Ta});
eo.prototype.$a=function(a){kr(this);if(this.Me())W.vs()&&this.Py()&&W.cl(!1);else if(!a.Aa()){var b=q.b,d=a.U(),e=this.i();b.$g(d,e)&&(a.cancel(),this.xo()||(a=this.f(),1<cr(this)?(C.w(e,W.Nh),W.vh(e,!1),eo.pH(),eo.F6=A.c.Y().setTimeout(this.D(this.Xbb),eo.fDa),eo.pN=this,J.io(e)||this.focus(a)):gr(this)||W.vs()?(W.vs()&&(W.vh(e,!0),C.w(e,W.Ie),this.show(null,!1)),J.io(e)||this.focus(a)):W.HC(e)))}};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentMouseOver",{$a:eo.prototype.$a});
eo.prototype.Fa=function(a){var b=this.f();if(!this.Me()&&a.ec()&&b==a.getSource()){var b=q.b,d=a.U();a=this.i();var e=this.Qx&&b.$g(d,this.Qx),f=this.Px&&b.$g(d,this.Px);e||f?(b.S()==q.ia&&(a=e?this.Qx:this.Px,a!=A.c.wd&&(a.tabIndex=0,a.focus(),a.tabIndex=-1)),b.rm()[q.zl]!=q.Al?lr(this,f,!0):lr(this,f)):b.$g(d,a)&&(b.Ea(d),this.xo()?C.w(a,W.Ie):(b=!!(A.c.Y().Zi&&q.b instanceof Ge),1<cr(this)?(C.w(a,W.Ie),this.show(null,b)):gr(this)&&(C.w(a,W.Ie),this.close(!0,!0),v.l.finest("menuBar auto open mode, set to OFF due to menu clicked while menu IS visible"),
W.gz(!1))))}};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentMouseDown",{Fa:eo.prototype.Fa});
eo.prototype.Ac=function(a){if(!this.Me()&&a.ec()){var b=q.b,d=a.U();this.gB&&C.O(this.gB,W.Ie);var e=this.Qx&&b.$g(d,this.Qx),f=this.Px&&b.$g(d,this.Px),g=this.f();e||f?(mr(this),this.Mm()):g==a.getSource()&&(a=this.i(),!b.$g(d,a)||this.xo()||1<cr(this)||gr(this)||(b=A.c.Y(),this.show(null,!!(b.Zi&&q.b instanceof Ge)),v.l.finest("menuBar auto open mode, set to ON due to menu clicked while menu IS NOT visible"),W.gz(!0)))}};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentMouseUp",{Ac:eo.prototype.Ac});
eo.prototype.Lb=function(){var a=this.i(),b=!(1<cr(this)),d=1<cr(this)&&!gr(this),e=1<cr(this)&&gr(this)&&this.Dh();(b||d||e)&&C.O(a,W.Nh);!this.Dh()&&gr(this)||C.O(a,W.Ie)};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentBlur",{Lb:eo.prototype.Lb});
eo.prototype.ka=function(a){var b=a.g();W.xta(b)?this.Jb():this.Dh()&&this.Tia();if(this.f().getDetachable()){var d=q.b,e=this.Uia;e&&d.xa(this.Via,"click",e);delete this.Via;delete this.Uia;(e=this.bpa)&&d.xa(this.gB,"mousedown",e);delete this.gB;delete this.bpa}1<cr(this)||eo.plb(b);this.yL&&(this.rh.removeEventListener("wheel",this.ij),this.Bg.release(),this.Bg=null);delete this.Pma;delete this.Qx;delete this.Px;delete this.Eoa;delete this.Boa;delete this.rh;delete this.EN;eo.h.ka.call(this,a)};
r.a("AdfDhtmlMenuPeer.prototype.ComponentRemoved",{ka:eo.prototype.ka});eo.prototype.we=function(a,b,d){W.v$(a,b,d,dr(this))};r.a("AdfDhtmlMenuPeer.prototype.ComponentDisabledChanged",{we:eo.prototype.we});eo.prototype.Bl=function(a,b,d,e){eo.h.Bl.call(this,a,b,d,e);W.w$(a,b,d,dr(this))};r.a("AdfDhtmlMenuPeer.prototype.ComponentVisibleChanged",{Bl:eo.prototype.Bl});eo.prototype.Jg=function(a,b,d,e){return null!=e&&(b=C.ib(b,"A"))?C.FC(a,b,d):!1};
r.a("AdfDhtmlMenuPeer.prototype.ComponentTextChanged",{Jg:eo.prototype.Jg});eo.prototype.Oa=function(){return ji.YRa()};r.a("AdfDhtmlMenuPeer.prototype.GetInlineEditor",{Oa:eo.prototype.Oa});eo.prototype.vaa=function(a){this.f6=a};r.a("AdfDhtmlMenuPeer.prototype.setVisibleItems",{vaa:eo.prototype.vaa});eo.prototype.bd=function(a){this.bind(a);if(this.Py()){a=this.bf(a);var b=null!=a?a.o():null;b&&b.bd&&b.bd(a)}};r.a("AdfDhtmlMenuPeer.prototype.__preferredSizeChangeNotify",{bd:eo.prototype.bd});
eo.BOa=function(){var a=eo.uN;if(null!=a){if((a=A.c.m(a))&&(a=a.o())&&a instanceof eo&&a.fj){var b=a.fj.Ha();b.style.left=a.GU;b.style.top=a.HU;var b={y:a.HU,x:a.GU},d=hr(a);d&&d.qv(b);nr(a)}eo.uN=null}};eo.TJa=function(){if(!E.zc(eo.yp)){var a,b=eo.V5;null==b?a=eo.yp[0]:(a=eo.yp.length,1==a?a=eo.yp[0]:(b=E.indexOf(eo.yp,b),a=b>=a-1?eo.yp[0]:eo.yp[b+1]));if(b=A.c.m(a)){var d=b.o();d.bind(b);null!=d.Pa&&J.KP(d.Pa)||d.bh();J.va(d.Pa);eo.V5=a}else eo.Q6(a),eo.TJa()}};
eo.w9a=function(a){var b=q.b;if(E.zc(eo.yp)){if(b.S()==q.Yc){var d=A.c.R();b.ba(d,"keypress",eo.JHa)}A.c.TC(eo.RJa,eo.TJa)}0>E.indexOf(eo.yp,a)&&(eo.V5=a,eo.yp.push(a))};eo.Q6=function(a){E.Ig(eo.yp,a);var b=E.zc(eo.yp);if(b||a==eo.V5)eo.V5=null;b&&(A.c.oz(eo.RJa),a=q.b,a.S()==q.Yc&&(b=A.c.R(),a.xa(b,"keypress",eo.JHa)))};eo.JHa=function(a){var b=q.b.na(a);a.ctrlKey&&a.shiftKey&&b==w.xK&&q.b.Ea(a)};eo.wjb=function(){eo.Sdb()};eo.k9a=function(a){var b=eo.yoa;0==b.length&&A.c.TC(eo.dNa,eo.wjb);b.push(a)};
eo.plb=function(a){var b=eo.yoa;E.Ig(b,a);0==b.length&&A.c.oz(eo.dNa)};eo.Sdb=function(){var a=eo.yoa;u.assert(1<a.length);var a=A.c.m(a[0]),b=a.getParent();u.assert(!(b instanceof AdfRichMenu));a=a.o();if(!a.TNa){b=a.i().parentNode;do var d=b.getAttribute("id"),b=b.parentNode;while(!d&&b);d&&(a.TNa=d)}a=q.b.getElementById(a.TNa);J.dk(a)};
eo.jgb=function(a,b){var d=b.Yg(),e=d.sC();if(!(e&w.pi||e&w.Bo||e&w.Oq)){e&w.Bk&&(e>>=w.Bk,d=w.Yg(d.na(),e));for(var d=d.Qs().toUpperCase(),e=a.getElementsByTagName("tr"),f=e.length,g=0;g<f;g++){var h=e[g];if(h&&1==h.nodeType){var l=h.getAttribute("accessKey");if(l&&d==l.toUpperCase()){J.va(h);b.cancel();break}}}}};
eo.prototype.sp=function(a,b){var d=b.U();if(d.ctrlKey){if(this.Dh()||this.fj&&gr(this))if(d=q.b.S()==q.ia?187==a:61==a,b.U().altKey&&d)or(this,0,0),b.cancel();else{d=!0;switch(a){case w.ab:or(this,0,-20);break;case w.Ra:or(this,0,20);break;case w.ub:or(this,-20,0);break;case w.vb:or(this,20,0);break;default:d=!1}d&&b.cancel()}}else if(!(d.altKey||d.shiftKey||d.metaKey)&&b.getSource()!=this.f())switch(d=b.getSource().o().i(),a){case w.ab:u.u(this.Pa);u.assert(d==this.Pa);this.Pa||(v.l.warning("Menu has lost its assigned activeDescendant!"),
this.bh());d=J.EO(dr(this),d,!0);u.u(d);this.Pa=d;this.Mm();b.cancel();break;case w.Ra:u.u(this.Pa);u.assert(d==this.Pa);this.Pa||(v.l.warning("Menu has lost its assigned activeDescendant!"),this.bh());d=J.DO(dr(this),d,!0);u.u(d);this.Pa=d;this.Mm();b.cancel();break;case w.ub:d=this.f();this.Py()?(this.focus(d),this.close(!0,!0),W.Xsb=!1):this.Dh()||this.xo()||(this.focus(d),this.close(!0,!0));b.cancel();break;case w.vb:d=b.getSource(),d instanceof AdfRichMenu?(d.o().show(null,!0),b.cancel()):this.Dh()||
this.xo()?b.cancel():this.Py()&&(d=this.f(),this.focus(d),this.close(!0,!0),v.l.finest("menuBar auto open mode, set to OFF due to right arrow key pressed on root menu item"),W.gz(!1),b.cancel())}};eo.prototype.lkb=function(a){q.b.Ea(a);C.w(this.gB,W.Ie)};
function er(a,b,d){var e={},f=a.i(),g=a.f();e.type="menu";e.autodismiss="autodismissMenu";e.alignElement=f;e.focus=d?!0:!1;d=g.getText();null==d&&(d=g.getShortDesc());e.title=d;e.animate=AdfRichPopup.Zva;e.closeOnEscape=!1;if(null==b||null==b.mousePosition)1<cr(a)||W.lk(f)?e[AdfRichPopup.Ed]=AdfRichPopup.tz:e[AdfRichPopup.Ed]=AdfRichPopup.qf;E.Rb(e,b);return e}
eo.prototype.Qoa=function(){var a=q.b,b=this.f(),d=this.i().getAttribute("id"),d=I.j(d,"lazy-fetch-message"),a=a.getElementById(d),a=C.pa(a),e=er(this,null,!1);e.type="inlineSelector";C.setVisible(a,!0);eo.h.He.call(this,b,a,e,d)};
function br(a){if(a.Dh()){var b=a.f().g();eo.uN=b;W.cqa(b);eo.Q6(b);pr(a);var b=A.c.Bm(),d=a.i(),e=dr(a),f=AdfRichPopup.tz,g=e.clientHeight-4,e=e.clientWidth+Mi.so(),b=b.k8(g,e,f,d,null);a.F5=!1;A.c.Oc()?(b={left:b.x,top:b.y},C.O(dr(a),W.aJ),d=a.fj.Ha(),oj(3,300,[{element:d,Cb:b}],null,eo.Z9a,[a,b.y,b.x])):(fr(a),(d=hr(a))&&d.qv(b),C.O(dr(a),W.aJ))}}eo.Z9a=function(a){var b=a[0],d=a[1];a=a[2];fr(b);d={y:d,x:a};(b=hr(b))&&b.qv(d)};
function qr(a,b){var d=a.i(),d=C.Nb(d,b);if("noContent"==a.eB())return d;var e=C.Nc(dr(a),b);return d||e}function cr(a){if(!a.RIa){var b=a.i();a.RIa=parseInt(b.getAttribute(W.wca))}return a.RIa}k=eo.prototype;k.Me=function(){var a=this.i();return a.disabled||C.sa(a,I.lb)};function ir(a,b){u.assert(!a.Dh(),"this method is not intended for detached menus");if(a.Py()){var d=a.i();C.O(d,W.Ie);C.O(d,W.Nh)}eo.pN&&qr(a,eo.pN.i())&&eo.pH();a.rh&&(a.rh.scrollTop=0);W.lua(b)}
k.jJa=function(){this.$t();pr(this);var a=this.i();W.vh(a,!0);a=this.fj.Ha();this.GU=a.style.left;this.HU=a.style.top;a=this.f().g();W.lua(a);eo.w9a(a);v.l.finest("menuBar auto open mode, set to OFF due to menu first becoming detached");W.gz(!1)};k.cJa=function(){var a=hr(this);u.assert(null!=a,"menuPopup should not disappear during a drag.");if(a){a.iQ(null);var b={y:a.vP(),x:a.$O()};a.qv(b);nr(this);fr(this);a.Hi();W.cl()}};
function jr(a,b){a.E6&&kr(a);a.E6=A.c.Y().setTimeout(a.D(a.Wbb),eo.fDa-b)}k.Wbb=function(){var a=this.f();a&&this.Za(a,a.g())&&this.Jb()};k.Xbb=function(){var a=this.f();this.Za(a,a.g())?br(this):(delete eo.pN,delete eo.F6,this.show(null,!1))};function kr(a){if(a.E6){window.clearTimeout(a.E6);delete a.E6;var b=eo.pN;b&&cr(b)<=cr(a)&&eo.pH()}}k.Bha=function(){nr(this)};r.a("AdfDhtmlMenuPeer.prototype.__makeDetached",{Bha:eo.prototype.Bha});
function nr(a){C.O(a.gB,W.Ie);var b=a.fj.Ha();a.F5=!0;a.GU=b.style.left;a.HU=b.style.top;C.w(dr(a),W.aJ);W.vh(a.i().parentNode,!0,!0);hr(a).Ip()}eo.prototype.$t=function(){var a=this.i();C.O(a,W.Nh);C.O(a,W.Ie)};eo.prototype.Tia=function(){var a=this.f(),b=a.g();C.O(dr(this),W.aJ);this.F5=!1;var d=this.i();C.O(d,W.Nh);eo.Q6(b);this.fj&&this.fj.Jd();delete this.fj;b==eo.uN&&(eo.uN=null);eo.h.Jb.call(this,a,b);W.cl();W.tua()};
function or(a,b,d){a.jJa();var e=a.fj.Ha();e.style.left=e.offsetLeft+b+"px";e.style.top=e.offsetTop+d+"px";a.cJa()}function rr(a){a=hr(a);if(null!=a&&null!=a.Zf())return a.Zf()}function pr(a){a=rr(a);Mi.vj(a)&&Mi.iz(a,!1)}function fr(a){a=rr(a);null!=a&&Mi.vj(a)&&(Mi.gv(a),Mi.iz(a,!0))}eo.prototype.Qha=function(a,b){lr(this,a,b)};r.a("AdfDhtmlMenuPeer.prototype.__startScroll",{Qha:eo.prototype.Qha});
function lr(a,b,d){a.uX=eo.m5a;d&&(a.uX=eo.q1a);b||(a.uX*=-1);d?a.DN():(b=a.D(a.DN),a.Coa=setInterval(b,10))}function mr(a){a.Coa&&clearInterval(a.Coa);a.Coa=null;var b=a.rh.scrollTop,d=a.EN.rows,e=d.length;if(0>a.uX)for(var f=e-1;-1<f;f--){var g=d[f];if("none"!=g.style.display&&(e=g.offsetTop,b>=e)){a.rh.scrollTop=e;break}}else for(var h=b+a.rh.offsetHeight,f=0;f<e;f++)if(g=d[f],"none"!=g.style.display&&(g=g.offsetTop+g.offsetHeight,h<=g)){a.rh.scrollTop=b+(g-h);break}}
eo.prototype.DN=function(){this.rh.scrollTop+=this.uX;var a=this.rh.scrollTop,b=this.EN.offsetHeight-this.rh.offsetHeight;(0>=a||a>=b)&&mr(this);this.Mm()};function dr(a){if(null==a.Pma){var b=a.i().getAttribute("id"),b=I.j(b,"menu");a.Pma=q.b.getElementById(b)}return a.Pma}function hr(a){var b=a.f(),d=b.g();return a.Xp(b,d)}function gr(a){return hr(a)?!0:!1}eo.prototype.DP=function(){return null!=this.Bx&&"contentLoaded"==this.Bx};r.a("AdfDhtmlMenuPeer.prototype.isContentLoaded",{DP:eo.prototype.DP});
eo.prototype.eB=function(){null==this.Bx&&(this.Bx=null==dr(this)?"noContent":"contentLoaded");return this.Bx};eo.prototype.BX=function(a){this.Bx=a};eo.prototype.ay=function(a){u.u(a);this.Pa&&this.Pa.setAttribute("tabIndex","-1");a.setAttribute("tabIndex","0");this.Pa=a};eo.prototype.Gj=function(a,b,d){eo.h.Gj.call(this,a,b,d);this.xo()||gr(this)||this.show(null,!1)};r.a("AdfDhtmlMenuPeer.prototype.SimulateMouseOnDescendant",{Gj:eo.prototype.Gj});
eo.prototype.EW=function(a){q.b.Ea(a);this.rh.scrollTop+=a.deltaY;this.Mm()};eo.prototype.sx=function(a){this.rh.scrollTop+=-1*a.deltaY;this.Mm()};