function A_ph(a,b,c){var d=a.getProperty(AdfRichPivotTable.If),e;if(d==A_a)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.If,d,A_c,AdfUIComponent.PROPAGATE_ALWAYS)}
function A_7f(a,b,c){var d={};if(c.ka){var e=c.ka;if(e.cell){var f=c.ba==AdfPivotTableUtils.l&&0==a.b.Db;if(!f){var g=A_c,h=A_,f=Math.min(AdfDhtmlPivotTablePeer.Rz,Math.ceil(e.cellWidth/2));if(e.cellWidth-e.cellMouseX<=f)g=A_b,h="endCol";else if(e.cellMouseX<=f){f=A_c;if(1==A_ag(b,e.cell))if(c.ba==AdfPivotTableUtils.l)f=A_b;else if(b=A_9f(a,e.cell),b==a.b.na[1][0]||0<a.b.o[0]&&b==a.b.na[0][0])f=A_b;f||(g=A_b,h="startCol")}}f=c.ba==AdfPivotTableUtils.n&&0==a.b.Hb;if(!g&&!f)if(e.cellMouseY<=AdfDhtmlPivotTablePeer.xl){f=
A_c;if(1==e.cell.parentNode.rowIndex)if(c.ba==AdfPivotTableUtils.n)f=A_b;else if(b=A_9f(a,e.cell),b==a.b.Ga[1][0]||0<a.b.o[1]&&b==a.b.Ga[0][0])f=A_b;f||(g=A_b,h="startRow")}else e.cellHeight-e.cellMouseY<=AdfDhtmlPivotTablePeer.xl?(g=A_b,h="endRow"):c.ba==AdfPivotTableUtils.n&&e.cellHeight-e.cellMouseY<=AdfDhtmlPivotTablePeer.xl+1?(f=e.cell.parentNode.rowIndex+e.cell.rowSpan-1,f==a.b.Hb&&(g=A_b,h="endRow")):c.ba==AdfPivotTableUtils.l&&e.cellHeight-e.cellMouseY<=AdfDhtmlPivotTablePeer.xl+1&&(f=e.cell.parentNode.rowIndex+
e.cell.rowSpan-1,b=A_9f(a,e.cell),f==AdfAgent.AGENT.getAttribute(b,"_numSlices")&&"t"==AdfAgent.AGENT.getAttribute(b,"_lastBlock")&&(g=A_b,h="endRow"));d.cell=e.cell;g&&(d.type="resize",d.yg=c.ba==AdfPivotTableUtils.l,d.data=h)}}return d}function A_qh(a){a.Jv==A_a&&(a.Jv=A_rh(a,A_c));return a.Jv}function A_yg(a){a.lx==A_a&&(a.lx=A_rh(a,A_b));return a.lx}
function A_rh(a,b){for(var c=a.b.i[b?1:0];2>c;++c)for(var d=b?a.b.Ga[c]:a.b.na[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(n!=A_&&n.style!=A_&&"normal"==n.style.whiteSpace){h=A_b;break a}}h=A_c}if(h)return A_b}return A_c}
function A_sh(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.i[b?1:0];2>e;++e)for(var f=b?a.b.Ga[e]:a.b.na[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 A_b}}return A_c}
function A_qf(a,b,c,d,e,f,g){var h=e.offsetWidth+g;if(b){b=a.b.Ga[c][d]._width;for(c=a.b.i[1];2>c;++c){d=a.b.Ga[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.qa)c=e.childNodes[0].rows[0].cells,f==a.b.Db||0==a.b.Db?(d=Math.ceil(a.b.tw*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_ph(a.getComponent(),"rh"+(f-1),h);0>g&&(A_yg(a)&&A_sh(a,A_b))&&(A_zg(a.b),
a.b.Fq=A_b)}else{e.style.width=h+"px";e=a.b.na[c][d];b=e._width;A_9g(a,0,e,b,g,0);l=-1;for(m=a.b.i[1];2>m;++m)for(var p=a.b.N[m][c],q=p.length,v=0;v<q;v++)e=p[v][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_ph(a.getComponent(),"cc"+f,h);h=d+1;e=a.b.na[c];f=e.length;for(i=h;i<f;i++)b=e[i],b._placeholder||(A_th(a.b,b._horizPos+g,b),A_uh(b._canvasHorizPos+g,b));for(e=
a.b.i[1];2>e;++e){d=a.b.N[e][c];f=d.length;for(i=0;i<f;i++){n=d[i];l=n.length;for(j=h;j<l;j++)if(b=n[j])A_th(a.b,b._horizPos+g,b),A_uh(b._canvasHorizPos+g,b)}}if(0>g&&A_qh(a)&&A_sh(a,A_c)){A_vh(a.b);a:{g=AdfAgent.AGENT;c=g.getPlatform();g=c==AdfAgent.IE_PLATFORM&&8<=g.getVersion();c=c==AdfAgent.WEBKIT_PLATFORM;for(h=a.b.i[0];2>h;++h){f=a.b.na[h];for(b=f.length;0<b;){h=f[0];if(!h._placeholder){h=h.childNodes[0].rows;for(f=1;f<h.length;f++)b=h[f].cells,b=parseInt((c||g?b[0]:h[f]).style.height),isNaN(b)||
A_ph(a.getComponent(),"ch"+(f-1),b)}break a}}}}}a.b.Cg(a.le,a.je);A_jg(a.b);A_kg(a.b,A_b);a.Fa&&A_lg(a)}
function A_pf(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.na[c][d]._height;for(c=a.b.i[0];2>c;++c){d=a.b.na[c];for(var v=d.length,u=0;u<v;u++){b=d[u];var w=b.childNodes[0];b._placeholder||(w=w.rows[f],w.zc>m&&(m=w.zc))}}g=m-l;for(c=a.b.i[0];2>c;++c){d=a.b.na[c];v=d.length;for(u=0;u<v;u++)b=d[u],b._placeholder||A_wh(a,b,f,m,e,g,n,p,q)}(b=a.b.qa)&&A_wh(a,b,f,m,e,g,n,
p,q);h==A_c&&A_ph(a.getComponent(),"ch"+(f-1),m);0>g&&(A_qh(a)&&A_sh(a,A_c))&&A_vh(a.b)}else{v=e.parentNode;v.zc>m&&(m=v.zc);g=-1;for(u=a.b.i[0];2>u;++u){b=a.b.N[c][u];for(var r=b[d],x=r.length,s=0;s<x;s++)b=r[s],-1==g&&(g=AdfAgent.AGENT.getIntAttribute(b,"_startRow")),w=b.childNodes[0],w=w.rows[f],w.zc>m&&(m=w.zc)}g=g+f-1;h==A_c&&A_ph(a.getComponent(),"rr"+g,m);g=m-l;l=h=0;p&&!q&&(h=AdfPivotTableUtils.qi,l=h+1);(n||q?e:v).style.height=m-l+"px";l=a.b.Ga[c][d];e=l._height;p&&!q?A_9g(a,1,l,e,g,1):A_9g(a,
1,l,e,g,0);for(u=a.b.i[0];2>u;++u){b=a.b.N[c][u];r=b[d];x=r.length;for(s=0;s<x;s++)b=r[s],w=b.childNodes[0],w=w.rows[f],l=n||q?w.cells[0]:w,l.style.height=m-h+"px",A_9g(a,1,b,e,g,0)}A_xh(a.b,c,d+1,g);p&&A_ng(w,m-h);0>g&&(A_yg(a)&&A_sh(a,A_b))&&A_zg(a.b)}a.b.Cg(a.le,a.je);A_jg(a.b);A_kg(a.b,A_b);a.Fa&&A_lg(a)}
function A_wh(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.qi+"px",A_9g(a,1,b,e,f,1)):(g.style.height=d+"px",A_9g(a,1,b,e,f,0))}A_g=AdfDhtmlPivotTablePeer.prototype;
A_g.wG=function(a,b){var c=AdfAgent.AGENT;if(!(c.getPlatform()==AdfAgent.IE_PLATFORM&&8<=c.getVersion())){var d=A_af(this,a);d.ka&&(d.ka.cell&&d.ka.edge===AdfPivotTableUtils.n)&&AdfDhtmlPivotTablePeer.Ca(d.ka.cell,c.getCursor("col-resize"))}var c=this.b.yh.style,d=this.Gd.offsetWidth,e=this.bg?AdfDhtmlPivotTablePeer.Ho:AdfDhtmlPivotTablePeer.pt,e=Math.min(e,d);b=parseInt(b,10);this.oe=this.b.R?this.oe-b:this.oe+b;d+this.oe>e&&(this.ag=this.oe,c.left=this.Zq+(this.b.R?-this.ag:this.ag)+"px")};
A_g.xG=function(a){this.b.yh.style.display="none";A_3e(this);A_qf(this,this.bg,this.Vj,this.$q,this.Gd,this.Uj,this.ag);this.Sj=A_c;AdfDhtmlPivotTablePeer.Ca(this.Gd,AdfAgent.AGENT.getCursor("auto"));this.Vj=this.bg=this.JH=this.Uj=this.Gd=A_;this.Tj=AdfAgent.AGENT.getMousePosition(a)};
A_g.CG=function(a,b,c){b=AdfAgent.AGENT;b.getPlatform()==AdfAgent.IE_PLATFORM&&8<=b.getVersion()||(a=A_af(this,a),a.ka&&(a.ka.cell&&a.ka.edge===AdfPivotTableUtils.l)&&AdfDhtmlPivotTablePeer.Ca(a.ka.cell,b.getCursor("row-resize")));a=this.b.yh.style;b=this.Gd.offsetHeight;var d=this.bg?AdfDhtmlPivotTablePeer.sl:AdfDhtmlPivotTablePeer.Lg,d=Math.min(d,b);c=parseInt(c,10);this.oe+=c;b+this.oe>d&&(this.ag=this.oe,a.top=this.Zq+this.ag+"px")};
A_g.DG=function(a){try{this.b.yh.style.display="none",A_3e(this),A_pf(this,this.bg,this.Vj,this.$q,this.Gd,this.Uj,this.ag,A_c),this.Sj=A_c,AdfDhtmlPivotTablePeer.Ca(this.Gd,AdfAgent.AGENT.getCursor("auto")),this.Vj=this.bg=this.JH=this.Uj=this.Gd=A_,this.Tj=AdfAgent.AGENT.getMousePosition(a)}catch(b){AdfLogger.LOGGER.severe(b.message)}};A_g.Os=function(a){this.Ib=AdfDhtmlPivotTablePeer.Sg;this.jx=a;a=this.getComponent().getClientId();AdfPage.PAGE.findComponent(a+AdfDhtmlPivotTablePeer.u+AdfDhtmlPivotTablePeer.zt).show()};
A_h("AdfDhtmlPivotTablePeer.prototype.showResizeDialog",AdfDhtmlPivotTablePeer.prototype.Os);