var cr=M.U(M,"AdfDhtmlPanelAccordionPeer",p);v("AdfDhtmlPanelAccordionPeer",cr);
cr.m=function(){M.ha(this,I.jb,I.Xc,I.Xf,I.ec,I.qd,I.tc,I.Dd);w.b.cd()[w.Vc]==w.Wc&&M.ha(this,I.Ve,I.Qd,Db.ga);this.gF="_afrPaKey";this.W4="_afrTbr";this.MGa="_afrEvtTp";this.Pma="_afrDscl";this.OJa="disclosure";this.T6="_afrOfwSrt";this.S6="_afrOfwEnd";this.OU="moveUp";this.NU="moveDown";this.OKa="ndrag";this.Ona="btn";this.LL="disAcr";this.yF="p_AFSelected";this.oF="p_AFHighlight";this.Nna="p_AFDisclosed";this.tU="dropTarget";this.FJa="af|panelAccordion::ghost";this.h6="af|panelAccordion::header";
this.j6="af|panelAccordion::header-subsequent";this.Mna="af|panelAccordion::disclosed-icon-style";this.xra="af|panelAccordion::undisclosed-icon-style";this.yJa=1;this.zJa=0.5;this.WKa=1;this.pra=4;this.UGa=3;this.Lna="p_AFDisclosable";this.rU="p_AFDisclosed";this.wJa="p_AFDisabled";this.Zf="p_AFDepressed";this.NL="p_AFDrag";this.tj="p_AFFlow";this.JLa="af|panelAccordion-tr-minimum-resizable-height"};v("AdfDhtmlPanelAccordionPeer.InitSubclass",cr.m);
cr.prototype.Init=function(a){cr.f.Init.call(this,a);var b=w.b;a=a.e();var d=M.g(a,"overflowTop"),d=b.getElementById(d);d.tabIndex=0;var e=this.o(this.kQ);b.S(d,"mousedown",e);b.S(d,"keydown",e);e=this.o(this.Sba);b.S(d,"mouseup",e);b.S(d,"mouseout",e);a=M.g(a,"overflowBottom");a=b.getElementById(a);a.tabIndex=0;d=this.o(this.eO);b.S(a,"mousedown",d);b.S(a,"keydown",d);d=this.o(this.Rba);b.S(a,"mouseup",d);b.S(a,"mouseout",d);this.cca=this.o(this.gaa);this.dca=this.o(this.haa)};
z.a("AdfDhtmlPanelAccordionPeer.prototype.Init",{Init:cr.prototype.Init});u=cr.prototype;u.kQ=function(a){var b=w.b,d=a.type;if(!("keydown"==d&&a.keyCode!=E.$a&&a.keyCode!=E.zd&&a.keyCode!=E.Ja))if("mousedown"==d&&a.button&&a.button!=I.um)b.va(a);else if(!this.ye){var e=b.T(a);"mousedown"==d&&(d=b.T(a),this.Hb(d,l));this.ob(this.d(),cr.S6);paneCutoffIndex=this.rx;paneCutoffIndex!=n&&dr(this,e,p,cr.T6);b.va(a)}};
u.eO=function(a){var b=w.b,d=a.type;if(!("keydown"==d&&a.keyCode!=E.$a&&a.keyCode!=E.zd&&a.keyCode!=E.Ja))if("mousedown"==d&&a.button&&a.button!=I.um)b.va(a);else if(!this.ye){var e=b.T(a);"mousedown"==d&&(d=b.T(a),this.Hb(d,l));this.ob(this.d(),cr.T6);paneCutoffIndex=this.ax;paneCutoffIndex!=n&&dr(this,e,l,cr.S6);b.va(a)}};u.Sba=function(a){a=w.b.T(a);this.Hb(a,p)};u.Rba=function(a){a=w.b.T(a);this.Hb(a,p)};u.Hb=function(a,b){var d=cr.Zf;b?H.n(a,d):H.F(a,d)};
u.Ab=function(a,b){delete this.kx;if(0<a.id.indexOf("optimizedData")){var d=[],e=[],f=w.b,g=f.getAttribute(a,"_afrDiscShw");g!=n&&(f.getElementById(M.g(g,"btn")).style.display="",H.n(f.getElementById(M.g(g,"head")),cr.Lna));g=f.getAttribute(a,"_afrDiscHd");g!=n&&(f.getElementById(M.g(g,"btn")).style.display="none",H.F(f.getElementById(M.g(g,"head")),cr.Lna));g=a.childNodes;if(g!=n)for(var h=F.c,m=g.length-1;-1<m;--m){var q=g[m];if(1==q.nodeType){a.removeChild(q);var s=f.getElementById(q.id);if(s==
n)D.i.severe('Unexpected unknown target node for accordion optimized DOM replacement with id\x3d"'+q.id+'".');else if(h.th(s),f.gc(s),f.mD(q,s),f.wa(q),d!=n){e.push(s);d.push(q);var s=s.style,y=q.style,A=this.h();H.ta(A,cr.tj)||(y.bottom="",y.top=s.top);if(this.ye&&(this.ye.dja&&this.ye.dja.oC==q.id||this.ye.cja&&this.ye.cja.oC==q.id))y.height=s.height}}}d!=n&&er(this,e,d);this.QP()}else cr.f.Ab.call(this,a,b)};z.a("AdfDhtmlPanelAccordionPeer.prototype.ReplaceDomElement",{Ab:cr.prototype.Ab});
cr.prototype.Rb=function(a){delete this.kx;var b=this.h();return 0<a.id.indexOf("optimizedData")?(this.Gx=w.b.getAttribute(a,cr.gF),this.yH=l,b):a.parentNode==fr(b)?(this.yH=l,b):a};z.a("AdfDhtmlPanelAccordionPeer.prototype.DomReplaceNotify",{Rb:cr.prototype.Rb});
cr.prototype.Z=function(a){var b=w.b,d=a.e(),e=M.g(d,"overflowTop"),e=b.getElementById(e);b.sa(e,"mousedown",this.kQ);b.sa(e,"keydown",this.kQ);b.sa(e,"mouseup",this.Sba);b.sa(e,"mouseout",this.Sba);d=M.g(d,"overflowBottom");d=b.getElementById(d);b.sa(d,"mousedown",this.eO);b.sa(d,"keydown",this.eO);b.sa(d,"mouseup",this.Rba);b.sa(d,"mouseout",this.Rba);cr.f.Z.call(this,a)};z.a("AdfDhtmlPanelAccordionPeer.prototype.ComponentRemoved",{Z:cr.prototype.Z});
cr.prototype.QP=function(){var a=gr(this);a!=n&&(this.Gx=a,a=M.g(a,cr.LL),a=w.b.getElementById(a),a!=n&&O.ra(a),hr(this,n))};function gr(a){a=w.b.Vh(a.h(),"_afrRctDis");B.assert("null"!=a,"The accordion recent disclosed client ID is the string 'null' but should be the literal null");a==n&&(a=cr.oZa);return a}function hr(a,b){b!=n&&w.b.Gg(a.h(),"_afrRctDis",b);cr.oZa=b}
cr.KCa=function(a,b){if(!this.ye){var d=F.c.j(a);if(d==n)D.i.severe("AdfDhtmlPanelAccordionPeer encountered an unexpected null newDisclosed: ",d," where childId \x3d ",childId);else{var e=d.getDisclosed(),f=F.c.j(b),g=f.k();if(e)g.o4(a,f);else{var h;f.getDiscloseMany()||(e=ir(g),e!=n&&(h=F.c.j(e),B.assert(h!=n,"Could not find a showDetailItem component with clientId \x3d "+e)));hr(g,a);g.SY(h,d)}}g.ob(f,cr.S6);g.ob(f,cr.T6)}};v("AdfDhtmlPanelAccordionPeer.handleOverflowItemClick",cr.KCa);
cr.prototype.q=function(a,b){cr.f.q.call(this,a,b);this.k_a=M.g(a.e(),"overflowMenuHolder")};z.a("AdfDhtmlPanelAccordionPeer.prototype.InitDomElement",{q:cr.prototype.q});cr.prototype.Za=function(a,b){cr.f.Za.call(this,a,b);var d=w.b,e=d.getElementById(this.k_a);e!=n&&(e=H.ca(e),e!=n&&(e=M.g(e.id,"content"),this.Aj=H.ca(d.getElementById(e))));this.QP()};z.a("AdfDhtmlPanelAccordionPeer.prototype.BindToComponent",{Za:cr.prototype.Za});
cr.prototype.C=function(a){if(!a.na()&&!this.tl&&!this.ye){var b=a.L();if(jr(this,b,n))a.cancel();else if(b=w.b.T(b).id)if(b=b.split("::"),1<b.length){var d=b[b.length-1];d==cr.OU?(b.pop(),index=kr(this,b.join("::")),B.assert(0<=index,"Child not found"),lr(this,index,index-1),a.cancel()):d==cr.NU&&(b.pop(),index=kr(this,b.join("::")),B.assert(0<=index,"Child not found"),lr(this,index,index+1),a.cancel())}}};z.a("AdfDhtmlPanelAccordionPeer.prototype.HandleComponentClick",{C:cr.prototype.C});
cr.prototype.qa=function(a){if(!this.tl&&!a.na()&&!this.ye){var b=a.L(),d=w.b,e=d.T(b);if(mr(this,e))return;var f=e.id;if(f&&(f=f.split("::"),1<f.length)){var g=f[f.length-1];if(g==cr.OKa){g=fr(this.h());d.vd(document.body);this.GY=d.Uc(g);f.pop();d=this.lza=f.join("::");B.s(d);B.ub(e);d=this.GY;f=F.c;e.parentNode.removeChild(e);f.Mf().jp(e,Hg.XS);H.n(e,cr.NL);f=e.style;f.width=d.right-d.left+"px";f.left=d.left+"px";this.Xca=e;F.c.Nd(b,this.cca,this.dca,k,l);this.tl=l;a.cancel();return}nr(this,a);
if(g==cr.OU||g==cr.NU)return}}nr(this,a);a:if(!("disable"==this.d().getReorder()||this.ye))if(e=a.Q(),d=or(this),b=this.rx!=n?this.rx+1:0,f=this.ax!=n?this.ax-1:d.length-1,!(1>f-b)&&!mr(this,e))for(g=b;g<=f;++g)if(b=d[g],H.sb(b,e)){e=w.b;a=a.L();this.pG=b;this.a$=b.offsetHeight;this.zua=e.nd(b);this.xua=e.rc(b);d=e.Qb(a);b=e.Ub(b);this.vua=d.x-b.x;this.wua=d.y-b.y;F.c.Nd(a,this.o(this.TWa),this.o(this.UWa),this.o(this.SWa));break a}return p};
z.a("AdfDhtmlPanelAccordionPeer.prototype.HandleComponentMouseDown",{qa:cr.prototype.qa});function nr(a,b){if(!a.tl&&!b.na()&&!a.ye){var d=b.L(),e=pr(a,d);if(e){var f=w.b,d=f.T(d);if(!mr(a,d)&&(e=f.getElementById(M.g(e.Tl,"head")))&&H.sb(e,d))f=e.nextSibling,H.n(e,cr.yF),H.n(f,cr.yF)}}}cr.prototype.BO=function(a){if(!this.tl&&!a.na()&&(a=pr(this,a.L())))if(a=w.b.getElementById(M.g(a.Tl,"head"))){var b=a.nextSibling;H.F(a,cr.yF);H.F(b,cr.yF)}};cr.prototype.cc=cr.prototype.BO;
cr.prototype.vb=function(a){if(!this.tl&&!a.na()&&(a=pr(this,a.L()))){var b=w.b.getElementById(M.g(a.Tl,"head"));if(b){var d=b.nextSibling;H.F(b,cr.yF);H.F(d,cr.yF);var e=F.c.Qc;if(e&&(e=qr(this,e))&&e.Tl==a.Tl)switch(e.HEa){case cr.OU:case cr.NU:case cr.LL:return}H.F(b,cr.oF);H.F(d,cr.oF)}}};z.a("AdfDhtmlPanelAccordionPeer.prototype.HandleComponentMouseOut",{vb:cr.prototype.vb});
cr.prototype.Ka=function(a){if(!this.tl&&!a.na()&&!this.ye){var b=a.L();if(a=pr(this,b)){var d=w.b;if(a=d.getElementById(M.g(a.Tl,"head")))b=d.T(b),H.sb(a,b)&&!mr(this,b)&&(b=a.nextSibling,H.n(a,cr.oF),H.n(b,cr.oF))}}};z.a("AdfDhtmlPanelAccordionPeer.prototype.HandleComponentMouseOver",{Ka:cr.prototype.Ka});cr.prototype.oj=function(a){var b=a.getSource(),d=this.d();b instanceof AdfRichShowDetailItem&&(b.getParent()==d&&a.rR()==b)&&a.Nb(d)};
z.a("AdfDhtmlPanelAccordionPeer.prototype.HandleComponentDisclosure",{oj:cr.prototype.oj});u=cr.prototype;u.Qva=function(a){if(!this.tl&&!a.na()){var b=a instanceof ka?pr(this,a.L()):n;if(b){switch(b.HEa){case cr.OU:case cr.NU:case cr.LL:break;default:return}if(b=w.b.getElementById(M.g(b.Tl,"head"))){var d=b.nextSibling;a=a.getType()==I.tc;if(!a||!this.ye)H.td(a,b,cr.oF),H.td(a,d,cr.oF)}}}};u.Eb=cr.prototype.Qva;u.Ha=cr.prototype.Qva;function pr(a,b){var d=w.b.T(b);return qr(a,d)}
function qr(a,b){for(var d=fr(a.h()),e=b;e!=d;e=e.parentNode){if(e==n)return n;b=e}d=b.id;if(!d)return n;d=d.split("::");return 1<d.length?{HEa:d[d.length-1],Tl:d.slice(0,d.length-1).join("::")}:n}function kr(a,b){for(var d=or(a),e=M.g(b,"head"),f=0,g=d.length;f<g;++f)if(d[f].id==e)return f;return-1}
u.TWa=function(a,b,d){if(this.vg==n){if(3>Math.abs(d))return;this.Bx=rr(this);d=w.b;b=this.pG;var e=H.ta(b,cr.rU);this.kca=document.body.style.cursor||"auto";d.setCursor(document.body,"move");d.vd(document.body);this.tl=l;var f=this.h().ownerDocument;d=this.vg=f.createElement("div");var g=F.c.u();d.className=g.ka(cr.FJa);g=d.style;g.position="absolute";g.overflow="hidden";g.top="-10000px";g.zIndex=1E3;g.width=b.offsetWidth+"px";f.body.appendChild(d);var h=b.offsetHeight,f=b.nextSibling;e&&(h+=f.offsetHeight);
g.height=h+"px";e=vh.Xh(this.d(),cr.tU).style;e.height=h+"px";e.top=b.offsetTop+"px";e.position="absolute";e.overflow="hidden";e.left="0px";e.right="0px";g=b.cloneNode(l);w.b.bi(g);d.appendChild(g);h=g.style;h.top="0px";h.bottom="";h=f.cloneNode(l);w.b.bi(h);d.appendChild(h);d=h.style;d.top=g.offsetHeight+"px";d.bottom="0px";f.style.display="none";b.style.display="none";e.display="block"}b=this.vg;e=w.b;g=b.ownerDocument;d=e.Qb(a);f=e.getWindowWidth();h=e.getWindowHeight();e=g.documentElement.scrollLeft;
g=g.documentElement.scrollTop;h=h-b.offsetHeight-1+g;f=Math.min(f-b.offsetWidth-1+e,Math.max(d.x-this.vua,e));d=Math.min(h,Math.max(d.y-this.wua,g));b=b.style;b.left=f+"px";b.top=d+"px";if(this.Bx&&(b=w.b,d=this.Bx,f=fr(this.h()),b.Zh(a,f))){for(var m=b.Qb(a).y,q=b.Ub(f).y,f=this.rx!=n?this.rx+1:0,e=this.ax!=n?this.ax-1:d.length-1,s=-1,h=-1,g=f;g<=e;++g){var y=d[g];if(-1==s){var A=q+y.top,C=A+y.height;m>=A&&m<=C&&(s=g)}y.G_&&(h=g);if(0<=h&&0<=s)break}if(!(0>s||s==h))if(y=d[s],g=m<q+y.top+y.height/
2,g=s<h?g?s:s+1:g?s-1:s,g!=h){m=d[h];d.splice(h,1);g==d.length?d.push(m):d.splice(g,0,m);q=F.c.u();h=q.ka(cr.h6);m=q.ka(cr.j6);s=0;0<f&&(q=parseInt(q.ka("af|panelAccordion-tr-overflow-height")),s+=q);H.td(0==g,this.vg.childNodes[0],h);H.td(0<g,this.vg.childNodes[0],m);g=0;for(size=d.length;g<size;++g)q=d[g],y=q.Tu,A=y.offsetHeight,g>=f&&g<=e?(q.top=s,s+=q.height):q.top=-1E5,H.td(0==g,y,h),H.td(0<g,y,m),A!=y.offsetHeight&&b.Hg(y,A);sr(this)}}w.b.va(a);return p};
function rr(a){var b=[],d=or(a),e=a.h();H.ta(e,cr.tj)&&tr(a,e,d);for(var e=d.length,f=0;f<e;++f){var g=d[f],h=g.nextSibling,m=H.ta(g,cr.rU),q=g.offsetHeight,s=q;m&&(q+=h.offsetHeight);ur(a,g);ur(a,h);b.push({Dha:f,Tu:g,content:h,top:g.offsetTop,A4a:g.offsetTop,height:q,xI:m,Q3a:s,Au:h.offsetHeight,G_:g==a.pG})}return b}
function tr(a,b,d){b=fr(b);var e=w.b.nd(b),f=b.style;f.overflow="hidden";f.height=b.offsetHeight+"px";a.NZa=f.width;f.width=b.offsetWidth+"px";for(a=d.length-1;0<=a;--a)b=d[a],vr(b.nextSibling,e),vr(b,e)}function vr(a,b){var d=a.style;d.top=w.b.nd(a)-b+"px";d.left="0px";d.right="0px";d.position="absolute"}function wr(a){a=a.style;a.position="relative";a.top="auto";a.left="auto";a.right="auto"}
function ur(a,b){var d=b.style;if(d.bottom&&!("auto"==d.bottom||"none"==d.display)){var e=a.EG(b);d.height=e+"px";d.bottom=""}}u.EG=function(a){var b=w.b.getComputedStyle(a);return a.offsetHeight-w.ua(b.borderTopWidth)-w.ua(b.borderBottomWidth)-w.ua(b.paddingTop)-w.ua(b.paddingBottom)};
function sr(a,b,d){a.$Y&&(a.$Y.stop(),delete a.$Y);var e=parseInt(F.c.u().ka("af|panelAccordion-tr-reorder-animation-duration"));isNaN(e)&&(e=0);b==n&&(b=[]);for(var f=a.Bx,g=0,h=f.length;g<h;++g){var m=f[g],q=m.top;if(m.G_){var s=vh.Xh(a.d(),cr.tU);m.Tu.style.top=q+"px";s.style.top=q+"px"}else b.push({element:m.Tu,ib:{offsetTop:q}});q+=m.Q3a;m.xI&&!m.G_?b.push({element:m.content,ib:{offsetTop:q}}):m.content.style.top=q+"px"}a.$Y=Qg(3,e,b,n,function(a){var b=a[0];delete b.$Y;if(a[1]!=n)a[1](b)},[a,
d],n)}function xr(a){a.TS();var b=a.pG;b.style.display="block";a.a$!=b.offsetHeight&&w.b.Hg(b,a.a$);H.ta(b,cr.rU)&&(b.nextSibling.style.display="block");a.kca&&(w.b.setCursor(document.body,a.kca),delete a.kca);delete a.pG;delete a.zua;delete a.xua;delete a.vua;delete a.wua;var d=a.h();if(H.ta(d,cr.tj)){for(var b=headerElements=or(a),d=fr(d),e=b.length,f=0;f<e;++f){var g=b[f],h=g.nextSibling;wr(g);wr(h)}d.style.width=a.NZa;b=d.style;b.overflow="visible";b.height="auto";delete a.kx}}
u.UWa=function(){if(this.vg!=n){var a=w.b,b=vh.Xh(this.d(),cr.tU),a=a.Ub(b),a=[{element:this.vg,ib:{top:a.y,left:a.x}}];b.style.display="none";sr(this,a,function(a){yr(a)})}};
function yr(a){for(var b=a.Bx,d=a.pG,e=-1,f=-1,g=0,h=b.length;g<h;++g){var m=b[g];if(m.Tu==d){e=m.Dha;f=g;break}}b=e;e=new ag(a.d(),b,f);e.v(l);e.na()?zr(a):(e=a.Aj.getElementsByTagName("div"),g=e[b],h=g.parentNode,h.removeChild(g),f==e.length?h.appendChild(g):h.insertBefore(g,e[f]),m=or(a),e=m[b],g=e.nextSibling,m.splice(b,1),h=e.parentNode,b=F.c.Qc,f==m.length?(f=Ar(a),f=f[f.length-cr.pra]):f=m[f],h.insertBefore(e,f),h.insertBefore(g,f),delete a.kx,b&&b.focus&&(f=w.b.getComputedStyle(b),f.style&&
"none"!=f.style.display&&b.focus()),delete a.Bx,xr(a),a.Gx=Br(d),Cr(a))}function zr(a,b){var d=a.Bx;b==n&&(b=[]);var e=F.c.u(),f=e.ka(cr.h6),e=e.ka(cr.j6);d.sort(function(a,b){return a.Dha-b.Dha});for(var g=0,h=d.length;g<h;++g){var m=d[g];m.top=m.A4a;var m=m.Tu,q=m.offsetHeight;H.td(0==g,m,f);H.td(0<g,m,e);q!=m.offsetHeight&&w.b.Hg(m,q);d[g].G_&&(H.td(0==g,a.vg.childNodes[0],f),H.td(0<g,a.vg.childNodes[0],e))}sr(a,b,function(a){delete a.Bx;xr(a)})}
u.SWa=function(){this.vg!=n&&zr(this,[{element:this.vg,ib:{top:this.zua,left:this.xua}}])};u.gaa=function(a){var b=this.GY;a=w.b.Qb(a);a=Math.max(a.y,b.top);a=Math.min(a,b.bottom);this.Xca.style.top=a+"px"};
u.haa=function(a,b,d){a=F.c.u();var e=parseInt(a.ka(cr.JLa));a=this.lza;B.s(a);b=F.c.j(a);B.J(b,AdfRichShowDetailItem);b.k().bind(b);a=b.k().Zr();var f=a.offsetHeight,f=f+d;f<e&&(f=e);d=this.GY;d=d.bottom-d.top;f>d&&(f=d);b.p4=l;b.setFlex(0);b.setProperty("inflexibleHeight",f,l);delete b.p4;d=this.Xca;a=a.parentNode;B.ub(d);B.ub(a);b=F.c;H.F(d,cr.NL);b.Mf().Ci(d);a.appendChild(d);d=d.style;d.width="";d.left="";d.top="";d.zIndex="";delete this.Xca;delete this.tl;delete this.GY;delete this.lza;Cr(this);
w.b.Qe(document.body)};function Cr(a){var b=a.d();a.yH=l;F.c.lh(b)}u.ba=function(a){if(!a.na()&&!this.ye){var b=a.L();switch(w.b.ia(b)){case E.$a:case E.Ya:case E.Ja:case E.zd:nr(this,a)}}};z.a("AdfDhtmlPanelAccordionPeer.prototype.HandleComponentKeyDown",{ba:cr.prototype.ba});
cr.prototype.pa=function(a){if(!a.na()&&!this.ye){var b=a.L(),d=p;switch(w.b.ia(b)){case E.Ya:this.BO(a);b.shiftKey&&b.ctrlKey?d=Dr(this,l,a):!b.shiftKey&&!b.ctrlKey&&(d=jr(this,b,p));break;case E.Ja:this.BO(a);b.shiftKey&&b.ctrlKey?d=Dr(this,p,a):!b.shiftKey&&!b.ctrlKey&&(d=jr(this,b,l));break;case E.$a:this.BO(a);break;case E.zd:this.BO(a),d=jr(this,b,n)}d&&a.cancel()}};z.a("AdfDhtmlPanelAccordionPeer.prototype.HandleComponentKeyUp",{pa:cr.prototype.pa});
function Dr(a,b,d){if(!("disable"==a.d().getReorder()||a.tl||a.ye)){d=d.L();d=w.b.T(d);if(!d.id)return p;var e=d.id.split("::");if(e[e.length-1]!=cr.LL)return p;if(d=a.ex(d,a.h())){d=d[0];for(var e=or(a),f=a.rx!=n?a.rx+1:0,g=a.ax!=n?a.ax-1:e.length-1,h=0;h<e.length;++h)if(Br(e[h])==d){if(b){if(h<=f)return p;lr(a,h,h-1)}else{if(h>=g)return p;lr(a,h,h+1)}return l}}}}
function lr(a,b,d){if(!a.tl&&!a.ye){var e=a.Bx=rr(a),f,g=e[b];e.splice(b,1);a.tl=l;a.pG=g.Tu;a.a$=g.Tu.offsetHeight;if(0==b||0==d){f=w.b;var h=F.c.u(),m=h.ka(cr.h6),h=h.ka(cr.j6),q=e[0].Tu,s=g.Tu,y=q.offsetHeight,A=s.offsetHeight;0==b?(H.n(q,m),H.F(q,h),H.n(s,h),H.F(s,m)):(H.n(q,h),H.F(q,m),H.n(s,m),H.F(s,h));f.Hg(q,y);f.Hg(s,A)}f=a.h();H.ta(f,cr.tj)&&tr(a,f,or(a));for(f=b;f<d;++f)e[f].top-=g.height,g.top+=e[f].height;for(f=d;f<b;++f)e[f].top+=g.height,g.top-=e[f].height;d==e.length?e.push(g):e.splice(d,
0,g);sr(a,[],function(a){yr(a)})}}function or(a){if(a.kx==n){a.kx=[];for(var b=Ar(a),d=b.length-cr.pra-1,e=cr.WKa;e<d;e+=2)a.kx.push(b[e])}return a.kx}function fr(a){if(1==H.pga(a)){var b=H.ca(a);if(b&&"none"!=b.style.display)return b}return a}function Ar(a){a=fr(a.h()).childNodes;for(var b=[],d=0,e=a.length;d<e;d++){var f=a[d];f&&1==f.nodeType&&b.push(f)}return b}cr.NFa=function(a){a.TS()};v("AdfDhtmlPanelAccordionPeer.DragAbortAnimationComplete",cr.NFa);
cr.prototype.TS=function(){w.b.Qe(document.body);this.vg&&this.vg.parentNode.removeChild(this.vg);vh.Xh(this.d(),cr.tU).style.display="none";delete this.vg;this.tl=p};z.a("AdfDhtmlPanelAccordionPeer.prototype.DestroyDragGhost",{TS:cr.prototype.TS});
function jr(a,b,d){if(!a.ye){var e=w.b.T(b);b=a.ex(e,a.h());if(b!=n){var f=b[0];if(b[1]==cr.OJa)return b[3]?(cr.KCa(f,a.d().e()),l):Er(a,f,d,b[2])}else{b=a.h();var f=w.b,g=l;if(!H.oc(b,e))return p;for(;e!=n;){var h=e.parentNode;if(!g&&f.getAttribute(e,cr.W4))break;var g=p,m=e.id;if(m!=n&&-1!=m.indexOf("::reorder"))break;if(h==fr(b)){b=Br(e);if(b==n)break;if(H.ta(e,cr.wJa))break;f=H.ta(e,cr.rU);return Er(a,b,d,f)}e=h}}return p}}
function mr(a,b){var d=w.b,e=a.h();for(b=b.parentNode;b!=n&&b!=e;b=b.parentNode)if(1==b.nodeType&&d.getAttribute(b,cr.W4))return l;return p}
function Er(a,b,d,e){var f=a.d(),g=F.c.j(b),h="immediate"==f.getContentDelivery(),m="attachment"==F.c.mca;if(g==n)D.i.severe("AdfDhtmlPanelAccordionPeer encountered an unexpected null newDisclosed: ",g," where clientIdToDisclose \x3d ",b);else if(h&&!m)D.i.warning("PanelAccordion contentDelivery\x3dimmediate is not supported outside of attachment mode. Disclose ability is disabled while in this state.");else{if(h){var g=a.d(),q=g.getDiscloseMany(),g=g.getDiscloseNone();q==p?(D.i.warning("PanelAccordion discloseMany\x3dfalse is not supported in attachment mode."),
b=p):d!=n&&e==d?b=p:(d=!e,q=Fr(a.h()),f=q.length,e&&!g&&1==f?b=p:(a.Gx=b,hr(a,b),e=F.c.j(b),Gr(a,e,n,d),e.setDisclosed(d),e=M.g(b,"head"),a=w.b,(e=a.getElementById(e))&&(d?H.n(e,cr.Nna):H.F(e,cr.Nna)),e=M.g(b,cr.LL),e=a.getElementById(e),e!=n&&a.setAttribute(e,cr.Pma,d),m=F.c.u(),h=d?m.getStyleClass(cr.xra):m.getStyleClass(cr.Mna),m=d?m.getStyleClass(cr.Mna):m.getStyleClass(cr.xra),H.F(e,h),H.n(e,m),!g&&(d&&1==f)&&(e=M.g(q[0],cr.Ona),e=a.getElementById(e),e!=n&&(e.style.display="")),!g&&(!d&&2==f)&&
(b=M.g(q[0]==b?q[1]:q[0],cr.Ona),b=a.getElementById(b),b!=n&&(b.style.display="none")),b=l));return b}h=f.getDiscloseMany();m=f.getDiscloseNone();f=n;if(d==n||e!=d){d=p;if(h)if(q=Fr(a.h()).length,e){if(1<q||m)Hr(g,p)&&(f={item:g,xI:p,i1:n}),d=l}else Hr(g,l)&&(f={item:g,xI:l,i1:n}),a.Gx=b,d=l;else e?m&&(Hr(g,p)&&(f={item:g,xI:p,i1:n}),d=l):(e=ir(a),e!=n&&(q=F.c.j(e),B.assert(q!=n,"Could not find a showDetailItem component with clientId \x3d "+e)),a.SY(q,g)&&(f={item:g,xI:l,i1:q}),a.Gx=b,d=l);f&&Gr(a,
f.item,f.i1,f.xI);if(d)return hr(a,b),l}}return p}
function Gr(a,b,d,e){if(!a.ye){var f=a.h(),f=H.ta(f,cr.tj),g=b.e(),h=d?d.e():n,m=or(a),q,s,y,A;d=[];var C=b=n;if(f){var G=n,K=n;q=0;for(s=m.length;q<s;++q)y=m[q],A=Br(y),A==g?e?G=y.nextSibling:K=y.nextSibling:A==h&&(K=y.nextSibling);G!=n&&(G.style.overflow="hidden",w.b.yd(G,0),G.style.display="block",b={oC:G.id},d.push({element:G,ib:{alpha:100}}));K!=n&&(K.style.overflow="hidden",C={oC:K.id},d.push({element:K,ib:{height:0}}))}else{G=Ir(a,a.Exa);K=[];q=0;for(s=m.length;q<s;++q)y=m[q],A=Br(y),A==g?
K[q]=e:A==h&&(K[q]=p);e=Ir(a,a.Exa,K);q=0;for(s=m.length;q<s;++q)q<G.di&&q<e.di||(q<e.di?Jr(m[q],G.$y[q-G.di],d):q<G.di?Kr(a,m[q],e.$y[q-e.di],d):q>G.sp&&q>e.sp||(q>G.sp?Kr(a,m[q],e.$y[q-e.di],d):q>e.sp?Jr(m[q],G.$y[q-G.di],d):(g=G.$y[q-G.di],h=e.$y[q-e.di],y=m[q],A=y.nextSibling,g.top!=h.top&&d.push({element:y,ib:{offsetTop:h.top}}),-1!=h.Ik&&-1==g.Ik?(w.b.yd(A,0),A.style.display="block",b={NCa:y.id,oC:A.id,aK:h},d.push({element:A,ib:{alpha:100}})):-1==h.Ik&&-1!=g.Ik?(C={NCa:y.id,oC:A.id,aK:g},d.push({element:A,
ib:{offsetTop:h.top+y.offsetHeight,height:0}})):(h.Ik!=g.Ik||h.Au!=g.Au)&&d.push({element:A,ib:{offsetTop:h.Ik,height:h.Au}}))))}m=parseInt(F.c.u().ka("af|panelAccordion-tr-disclosure-animation-duration"));m=isNaN(m)?0:m*cr.yJa;a.ye={z4a:d,cja:b,dja:C,A9a:f};b=n;f&&(b=a.d());a.mG=Qg(3,m,d,n,function(a){a=a[0];delete a.mG;if("immediate"==a.d().getContentDelivery()){a.yH=l;var b=gr(a),d=M.g(b,"head"),d=w.fa().getElementById(d),b=M.g(b,"body");(b=w.fa().getElementById(b))&&d&&er(a,[b,d],[b,d])}},[a],
b)}}
function er(a,b,d){if(a.ye){a.mG&&(a.mG.stop(),delete a.mG);for(var e=a.ye.z4a,f=a.ye.cja,g=a.ye.dja,h=w.b,m=parseInt(F.c.u().ka("af|panelAccordion-tr-disclosure-animation-duration")),m=isNaN(m)?0:m*cr.zJa,q=b.length,s,y,A=n,C=n,G=[],K=0,N=e.length;K<N;++K){var Q=e[K];s=Q.element;for(var T=-1,Y=0;Y<q;++Y)if(y=d[Y],y.id==s.id){T=Y;break}if(-1!=T){s=b[T];Q.element=y;var ra=a.h(),ra=H.ta(ra,cr.tj),T=y.style;if(f&&y.id==f.oC)h.yd(y,0),ra||(s=h.getElementById(f.NCa),T.top=s.offsetTop+s.offsetHeight+"px",
T.bottom=""),T.display="block",T.visibility="visible",T.height="1px",s=f.aK,ra?Q.ib.height=H.ca(y).offsetHeight:(Q.ib.height=s.Au,Q.ib.offsetTop=s.Ik),G.push({element:y,aK:s});else if(g&&y.id==g.oC){"immediate"!=a.d().getContentDelivery()&&h.bi(s);y.parentNode.insertBefore(s,y);var A=s,C={element:A,ib:{}},wa;for(wa in Q.ib)C.ib[wa]=Q.ib[wa];G.push({element:s,aK:g.aK})}}}C!=n&&e.push(C);b=[];K=0;for(N=G.length;K<N;++K)d=G[K],f=d.element,ra?b.push(f):(g=H.ca(f),h=g.style,q=a.EG(f),h.height=d.aK.Au-
(f.offsetHeight-q)+"px",h.bottom="",b.push(g));G=n;ra&&(G=a.d());a.mG=Qg(3,m,e,n,function(a){var b=a[0],d=a[1];a=a[2];delete b.mG;delete b.ye;var e=w.b;d&&("immediate"==b.d().getContentDelivery()?e.setAttribute(d,"style","display: none;"):d.parentNode.removeChild(d));delete b.kx;var d=b.h(),d=H.ta(d,cr.tj),f=or(b),g;g=0;for(size=f.length;g<size;++g){var h=f[g],m=h.nextSibling;e.yd(h,100);e.yd(m,100)}g=0;for(size=a.length;g<size;++g)e=a[g].style,e.height="",d?e.height="auto":e.bottom="0px";Cr(b)},
[a,A,b],G)}}function Jr(a,b,d){d.push({element:a,ib:{alpha:0}});-1!=b.Ik&&d.push({element:a.nextSibling,ib:{alpha:0}})}function Kr(a,b,d,e){var f=w.b;f.yd(b,0);Lr(a,b,d.top);e.push({element:b,ib:{alpha:100}});-1!=d.Ik&&(b=b.nextSibling,f.yd(b,0),Lr(a,b,d.Ik),b.style.display="block",f.Hg(b,d.Au),e.push({element:b,ib:{alpha:100}}))}
cr.prototype.SY=function(a,b){if(a==n)return Hr(b,l);if(a.getDisclosed()==l){a.k().bind(a);var d=new Db(a,p,b);d.v(l);return!d.na()}D.i.severe("Unexpected panelAccordion showDetailItem disclosure state for queueing client events");return p};function Hr(a,b){if(a.getDisclosed()!=b){a.k().bind(a);var d=new Db(a,b,n);d.v(l);return!d.na()}D.i.severe("Unexpected panelAccordion showDetailItem disclosure state for queueing a client event");return p}
function ir(a){a=Fr(a.h());if(a!=n){var b=a.length;if(0<b)return B.assert(1>=b,"There are too many disclosed accordion panes."),a[0]}return n}cr.prototype.ja=t(l);z.a("AdfDhtmlPanelAccordionPeer.prototype.needsResizeNotify",{ja:cr.prototype.ja});
cr.prototype.Ia=function(a,b,d,e){var f;if(!this.ye&&(a!=d||b!=e||this.yH)){a=or(this);var g=a.length;b=w.b;f=this.h();if(!H.ta(f,cr.tj)){delete this.yH;this.M8a=d;this.Exa=e;this.RUa=l;d=Ir(this,e);0<d.di||d.sp<g-1?(this.rx=d.di-1,this.ax=d.sp+1):(delete this.rx,delete this.ax);f=Ar(this);e=f[0];f=f[f.length-cr.UGa];var h;if(0==d.di)e.style.display="none";else{e.style.display="block";for(e=0;e<d.di;++e)h=a[e],Mr(h),Mr(h.nextSibling)}if(d.sp==g-1)f.style.display="none";else{f.style.display="block";
for(e=d.sp+1;e<g;++e)h=a[e],Mr(h),Mr(h.nextSibling)}for(e=d.di;e<=d.sp;++e)g=d.$y[e-d.di],f=a[e],Lr(this,f,g.top),-1!=g.Ik&&(f=f.nextSibling,Lr(this,f,g.Ik),b.Hg(f,g.Au),f.style.bottom="")}}};z.a("AdfDhtmlPanelAccordionPeer.prototype.ResizeNotify",{Ia:cr.prototype.Ia});cr.prototype.o4=function(a,b){this.Gx=a;this.yH=l;F.c.lh(b)};z.a("AdfDhtmlPanelAccordionPeer.prototype.ReallocateSizesForNewSelection",{o4:cr.prototype.o4});
function Lr(a,b,d){b.style.top=d+"px";a.RUa!=n&&(b.style.visibility="visible")}function Mr(a){a.style.top="-100000px";a.style.visibility="hidden"}
function Ir(a,b,d){for(var e={di:0,sp:0,$y:[]},f=F.c.u(),g=parseInt(f.ka("af|panelAccordion-tr-overflow-height")),f=parseInt(f.ka("af|panelAccordion-tr-header-height")),h=or(a),m=h.length,q=[],s=[],y=[],A=0,C=0,G=0,K=-1,N=-1,Q=w.b,T,Y=h.length,ra=0;ra<Y;++ra){var wa=h[ra].nextSibling;T=Q.getAttribute(wa,cr.gF);var Ca=d&&d.length?d[ra]:n;T==a.Gx&&(K=ra);Ca==n&&"none"!=wa.style.display||Ca?(-1==N&&(N=ra),T=F.c.j(T),wa=T.getFlex(),q.push(wa),0==wa?(T=T.getInflexibleHeight()+1,s.push(T),y.push(T),C+=
T):(T=T.getInflexibleHeight()+1,s.push(0),y.push(T),A+=wa),G+=T):(q.push(n),s.push(n),y.push(n))}-1==K&&(K=N);d=b-f*m;a=G-d;if(0<a){A=m;K<m-1&&(a+=g,b-=g);for(m-=1;m>K&&0<a;--m)G=y[m],a-=f,G!=n&&(a-=G),--A;d=-1;C=0;0<a&&0<K&&(a+=g,C=g,b-=g);for(m=0;m<K&&0<a;++m)G=y[m],a-=f,G!=n&&(a-=G),++d;b-=f*(A-d-1);e.di=d+1;e.sp=A-1;g=[];y=0;K=[];a=0;for(m=d+1;m<A;++m)inflexibleHeight=s[m],g.push(inflexibleHeight),inflexibleHeight!=n&&(y+=inflexibleHeight),d=q[m],K.push(d),d!=n&&(a+=d);Nr(e,g,y,K,a,f,C,b)}else e.di=
0,e.sp=m-1,Nr(e,s,C,q,A,f,0,d);return e}function Nr(a,b,d,e,f,g,h,m){if(0==f){for(var q=n,s=b.length-1;0<=s;--s){var y=b[s];if(y!=n){q=y;b[s]=n;f=e[s]=1;break}}q!=n&&(m=Math.max(0,m-d+q))}else m=Math.max(0,m-d);d=h;for(s=0;s<b.length;s++)h={top:0,Au:-1,Ik:-1},q=e[s],h.top=d,d+=g,q!=n&&(h.Ik=d,q=0!=q?Math.floor(m*(q/f)):b[s],d+=q,q=Math.max(1,q),h.Au=q),a.$y.push(h)}function Br(a){return(a=a.nextSibling)?w.b.getAttribute(a,cr.gF):n}
function Fr(a){var b=w.fa(),d=[];if(a&&(a=fr(a),a=a.childNodes,a!=n))for(var e=0;e<a.length;e++)if(1==a[e].nodeType){var f=a[e],g=b.getAttribute(f,cr.gF);g!=n&&"none"!=f.style.display&&d.push(g)}return d}
cr.prototype.ex=function(a,b){B.p(a);var d=a,e=w.fa();if(d==n||1!=d.nodeType)return n;for(var f=e.getAttribute(d,cr.gF);f==n;){if(d==n||d==b)return n;d=d.parentNode;if(d==n||1!=d.nodeType)return n;f=e.getAttribute(d,cr.gF);if(e.getAttribute(d,cr.W4))return n}if(f==n)return n;var g=e.getAttribute(d,cr.MGa),e="true"==e.getAttribute(d,cr.Pma);return[f,g,e,"hidden"==d.style.visibility]};
function dr(a,b,d,e){var f=paneCutoffIndex,g=a.d();if(a.Qa(g,e))a.ob(g,e);else{var h=a.Aj.getElementsByTagName("a"),m=h.length,q;if(f<m)for(q=0;q<m;++q)h[q].style.display=d&&q<f?"none":!d&&q>f?"none":"";else{D.i.warning("There were an unexpected number of accordion pane overflow menu items: ",m);for(q=0;q<m;q++)h[q].style.display=""}f={};f.alignElement=b;f.type="menu";f.autodismiss="autodismissAlways";f.focus=l;b=d;F.c.Ma().Oa()&&(b=!b);f[AdfRichPopup.fd]=b?AdfRichPopup.jK:AdfRichPopup.DD;a.h2a=a.Aj.parentNode;
a.fe(g,a.Aj,f,e);O.Sj(a.Aj)}}cr.prototype.Va=function(a,b){this.h2a.appendChild(b)};z.a("AdfDhtmlPanelAccordionPeer.prototype.PopupClosed",{Va:cr.prototype.Va});