function A_qh(a,b,c){var d=a.getProperty(AdfRichPivotTable.Xf),e;if(void 0==d)e={};else{var f={};for(e in d)d.hasOwnProperty(e)&&(f[e]=d[e]);e=f}d=e;d[b]=c;a.setProperty(AdfRichPivotTable.Xf,d,!1,AdfUIComponent.PROPAGATE_ALWAYS)}
function A_1f(a,b,c){var d={};if(c.ua){var e=c.ua;if(e.cell){var f=c.ia==AdfPivotTableUtils.s&&0==a.b.Lb;if(!f){var g=!1,h=null,f=Math.min(AdfDhtmlPivotTablePeer.HA,Math.ceil(e.cellWidth/2));if(e.cellWidth-e.cellMouseX<=f)g=!0,h="endCol";else if(e.cellMouseX<=f){f=!1;if(1==A_6f(b,e.cell))if(c.ia==AdfPivotTableUtils.s)f=!0;else if(b=A_4f(a,e.cell),b==a.b.wa[1][0]||0<a.b.u[0]&&b==a.b.wa[0][0])f=!0;f||(g=!0,h="startCol")}}f=c.ia==AdfPivotTableUtils.o&&0==a.b.Qb;if(!g&&!f)if(e.cellMouseY<=AdfDhtmlPivotTablePeer.Zl){f=
!1;if(1==e.cell.parentNode.rowIndex)if(c.ia==AdfPivotTableUtils.o)f=!0;else if(b=A_4f(a,e.cell),b==a.b.Pa[1][0]||0<a.b.u[1]&&b==a.b.Pa[0][0])f=!0;f||(g=!0,h="startRow")}else e.cellHeight-e.cellMouseY<=AdfDhtmlPivotTablePeer.Zl?(g=!0,h="endRow"):c.ia==AdfPivotTableUtils.o&&e.cellHeight-e.cellMouseY<=AdfDhtmlPivotTablePeer.Zl+1?(f=e.cell.parentNode.rowIndex+e.cell.rowSpan-1,f==a.b.Qb&&(g=!0,h="endRow")):c.ia==AdfPivotTableUtils.s&&e.cellHeight-e.cellMouseY<=AdfDhtmlPivotTablePeer.Zl+1&&(f=e.cell.parentNode.rowIndex+
e.cell.rowSpan-1,b=A_4f(a,e.cell),f==AdfAgent.AGENT.getAttribute(b,"_numSlices")&&"t"==AdfAgent.AGENT.getAttribute(b,"_lastBlock")&&(g=!0,h="endRow"));d.cell=e.cell;g&&(d.type="resize",d.Ng=c.ia==AdfPivotTableUtils.s,d.data=h)}}return d}function A_rh(a){void 0==a.yw&&(a.yw=A_sh(a,!1));return a.yw}function A_sg(a){void 0==a.$x&&(a.$x=A_sh(a,!0));return a.$x}
function A_sh(a,b){for(var c=a.b.j[b?1:0];2>c;++c)for(var d=b?a.b.Pa[c]:a.b.wa[c],e=d.length,f=0;f<e;f++){var g=d[f],h;if(h=!g._placeholder)a:{g=g.childNodes[0].rows;for(h=1;h<g.length;h++)for(var l=g[h].cells,m=1;m<l.length;m++){var n=l[m].lastChild;if(null!=n&&null!=n.style&&"normal"==n.style.whiteSpace){h=!0;break a}}h=!1}if(h)return!0}return!1}
function A_th(a,b){for(var c=AdfAgent.AGENT,d=c.getPlatform(),c=d==AdfAgent.IE_PLATFORM&&8<=c.getVersion(),d=d==AdfAgent.WEBKIT_PLATFORM,e=a.b.j[b?1:0];2>e;++e)for(var f=b?a.b.Pa[e]:a.b.wa[e],g=f.length,h=0;h<g;h++){var l=f[h];if(!l._placeholder)for(var l=l.childNodes[0].rows,m=1;m<l.length;m++){var n=l[m].cells,p=d||c?n[0]:l[m],n=parseInt(p.style.height),p=p.offsetHeight;if(!isNaN(n)&&!isNaN(p)&&n!=p)return!0}}return!1}
function A_kf(a,b,c,d,e,f,g){var h=e.offsetWidth+g;if(b){b=a.b.Pa[c][d]._width;for(c=a.b.j[1];2>c;++c){d=a.b.Pa[c];for(var l=d.length,m=0;m<l;m++)if(e=d[m],!e._placeholder){var n=e.childNodes[0].rows[0].cells[f];n.style.width=h+"px";A_9g(a,0,e,b,g,0)}}if(e=a.b.za)c=e.childNodes[0].rows[0].cells,f==a.b.Lb||0==a.b.Lb?(d=Math.ceil(a.b.gx*h),c[f].style.width=d+"px",c[f+1].style.width=h-d+"px"):c[f].style.width=h+"px",A_9g(a,0,e,b,g,0);A_qh(a.getComponent(),"rh"+(f-1),h);0>g&&A_sg(a)&&A_th(a,!0)&&(A_tg(a.b),
a.b.nr=!0)}else{e.hasAttribute("_ow")&&e.removeAttribute("_ow");e.style.width=h+"px";e=a.b.wa[c][d];b=e._width;A_9g(a,0,e,b,g,0);l=-1;for(m=a.b.j[1];2>m;++m)for(var p=a.b.V[m][c],q=p.length,u=0;u<q;u++)e=p[u][d],-1==l&&(l=AdfAgent.AGENT.getIntAttribute(e,"_startCol")),table=e.childNodes[0],n=table.rows[0].cells[f],n.style.width=parseInt(n.style.width)+g+"px",A_9g(a,0,e,b,g,0);f=l+f-1;A_qh(a.getComponent(),"cc"+f,h);h=d+1;e=a.b.wa[c];f=e.length;for(i=h;i<f;i++)b=e[i],b._placeholder||(A_uh(a.b,b._horizPos+
g,b),A_vh(b._canvasHorizPos+g,b));for(e=a.b.j[1];2>e;++e)for(d=a.b.V[e][c],f=d.length,i=0;i<f;i++)for(n=d[i],l=n.length,j=h;j<l;j++)if(b=n[j])A_uh(a.b,b._horizPos+g,b),A_vh(b._canvasHorizPos+g,b);if(0>g&&A_rh(a)&&A_th(a,!1))a:for(A_wh(a.b),g=AdfAgent.AGENT,c=g.getPlatform(),g=c==AdfAgent.IE_PLATFORM&&8<=g.getVersion(),c=c==AdfAgent.WEBKIT_PLATFORM,h=a.b.j[0];2>h;++h)for(f=a.b.wa[h],b=f.length;0<b;){h=f[0];if(!h._placeholder)for(h=h.childNodes[0].rows,f=1;f<h.length;f++)b=h[f].cells,b=parseInt((c||
g?b[0]:h[f]).style.height),isNaN(b)||A_qh(a.getComponent(),"ch"+(f-1),b);break a}}a.b.Sg(a.xe,a.ve);A_dg(a.b);A_eg(a.b,!0);a.Oa&&A_fg(a)}
function A_jf(a,b,c,d,e,f,g,h){var l=e.offsetHeight,m=l+g,n=AdfAgent.AGENT.getPlatform(),p=n==AdfAgent.IE_PLATFORM,q=p&&8<=AdfAgent.AGENT.getVersion(),n=n==AdfAgent.WEBKIT_PLATFORM;if(b){e=a.b.wa[c][d]._height;for(c=a.b.j[0];2>c;++c){d=a.b.wa[c];for(var u=d.length,v=0;v<u;v++){b=d[v];var x=b.childNodes[0];b._placeholder||(x=x.rows[f],x.Hc>m&&(m=x.Hc))}}g=m-l;for(c=a.b.j[0];2>c;++c)for(d=a.b.wa[c],u=d.length,v=0;v<u;v++)b=d[v],b._placeholder||A_xh(a,b,f,m,e,g,n,p,q);(b=a.b.za)&&A_xh(a,b,f,m,e,g,n,
p,q);0==h&&A_qh(a.getComponent(),"ch"+(f-1),m);0>g&&A_rh(a)&&A_th(a,!1)&&A_wh(a.b)}else{u=e.parentNode;u.hasAttribute("_oh")&&u.removeAttribute("_oh");u.Hc>m&&(m=u.Hc);g=-1;for(v=a.b.j[0];2>v;++v){b=a.b.V[c][v];for(var w=b[d],y=w.length,r=0;r<y;r++)b=w[r],-1==g&&(g=AdfAgent.AGENT.getIntAttribute(b,"_startRow")),x=b.childNodes[0],x=x.rows[f],x.Hc>m&&(m=x.Hc)}g=g+f-1;0==h&&A_qh(a.getComponent(),"rr"+g,m);g=m-l;l=h=0;p&&!q&&(h=AdfPivotTableUtils.Ii,l=h+1);(n||q?e:u).style.height=m-l+"px";l=a.b.Pa[c][d];
e=l._height;p&&!q?A_9g(a,1,l,e,g,1):A_9g(a,1,l,e,g,0);for(v=a.b.j[0];2>v;++v)for(b=a.b.V[c][v],w=b[d],y=w.length,r=0;r<y;r++)b=w[r],x=b.childNodes[0],x=x.rows[f],l=n||q?x.cells[0]:x,l.style.height=m-h+"px",A_9g(a,1,b,e,g,0);A_yh(a.b,c,d+1,g);p&&A_hg(x,m-h);0>g&&A_sg(a)&&A_th(a,!0)&&A_tg(a.b)}a.b.Sg(a.xe,a.ve);A_dg(a.b);A_eg(a.b,!0);a.Oa&&A_fg(a)}
function A_xh(a,b,c,d,e,f,g,h,l){c=b.childNodes[0].rows[c];g=g||l?c.cells[0]:c;h&&!l?(g.style.height=d-AdfPivotTableUtils.Ii+"px",A_9g(a,1,b,e,f,1)):(g.style.height=d+"px",A_9g(a,1,b,e,f,0))}A_=AdfDhtmlPivotTablePeer.prototype;
A_.qH=function(a,b){var c=AdfAgent.AGENT;if(!(c.getPlatform()==AdfAgent.IE_PLATFORM&&8<=c.getVersion())){var d=A_5e(this,a);d.ua&&d.ua.cell&&d.ua.edge===AdfPivotTableUtils.o&&AdfDhtmlPivotTablePeer.Ka(d.ua.cell,c.getCursor("col-resize"))}var c=this.b.Ph.style,d=this.Od.offsetWidth,e=this.qg?AdfDhtmlPivotTablePeer.np:AdfDhtmlPivotTablePeer.cu,e=Math.min(e,d);b=parseInt(b,10);this.Ae=this.b.U?this.Ae-b:this.Ae+b;d+this.Ae>e&&(this.pg=this.Ae,c.left=this.Kr+(this.b.U?-this.pg:this.pg)+"px")};
A_.rH=function(a){this.b.Ph.style.display="none";A_Ye(this);A_kf(this,this.qg,this.tk,this.Lr,this.Od,this.sk,this.pg);this.qk=!1;AdfDhtmlPivotTablePeer.Ka(this.Od,AdfAgent.AGENT.getCursor("auto"));this.tk=this.qg=this.sk=this.Od=null;this.rk=AdfAgent.AGENT.getMousePosition(a)};
A_.wH=function(a,b,c){b=AdfAgent.AGENT;b.getPlatform()==AdfAgent.IE_PLATFORM&&8<=b.getVersion()||(a=A_5e(this,a),a.ua&&a.ua.cell&&a.ua.edge===AdfPivotTableUtils.s&&AdfDhtmlPivotTablePeer.Ka(a.ua.cell,b.getCursor("row-resize")));a=this.b.Ph.style;b=this.Od.offsetHeight;var d=this.qg?AdfDhtmlPivotTablePeer.Vl:AdfDhtmlPivotTablePeer.ah,d=Math.min(d,b);c=parseInt(c,10);this.Ae+=c;b+this.Ae>d&&(this.pg=this.Ae,a.top=this.Kr+this.pg+"px")};
A_.xH=function(a){try{this.b.Ph.style.display="none",A_Ye(this),A_jf(this,this.qg,this.tk,this.Lr,this.Od,this.sk,this.pg,!1),this.qk=!1,AdfDhtmlPivotTablePeer.Ka(this.Od,AdfAgent.AGENT.getCursor("auto")),this.tk=this.qg=this.sk=this.Od=null,this.rk=AdfAgent.AGENT.getMousePosition(a)}catch(b){AdfLogger.LOGGER.severe(b.message)}};A_.zt=function(a){this.Rb=AdfDhtmlPivotTablePeer.jh;this.Yx=a;a=this.getComponent().getClientId();AdfPage.PAGE.findComponent(a+AdfDhtmlPivotTablePeer.D+AdfDhtmlPivotTablePeer.lu).show()};
AdfDhtmlPivotTablePeer.prototype.showResizeDialog=AdfDhtmlPivotTablePeer.prototype.zt;