var AdfDhtmlPivotTablePeer=AdfRichUIPeer.createPeerClass(AdfRichUIPeer,"AdfDhtmlPivotTablePeer",!1);A_a("AdfDhtmlPivotTablePeer",AdfDhtmlPivotTablePeer);AdfPage.PAGE.getLookAndFeel().registerPeerConstructor("oracle.dss.adf.pivotTable.PivotTable","AdfDhtmlPivotTablePeer");
AdfDhtmlPivotTablePeer.InitSubclass=function(){AdfRichUIPeer.addDomEventHandlers(this,"change");AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.CLICK_EVENT_TYPE,AdfUIInputEvent.MOUSE_DOWN_EVENT_TYPE,AdfUIInputEvent.KEY_DOWN_EVENT_TYPE,AdfUIInputEvent.KEY_UP_EVENT_TYPE,AdfComponentEvent.FOCUS_EVENT_TYPE,AdfComponentEvent.BLUR_EVENT_TYPE,AdfUIInputEvent.DOUBLE_CLICK_EVENT_TYPE,AdfUIInputEvent.MOUSE_OUT_EVENT_TYPE,AdfUIInputEvent.MOUSE_IN_EVENT_TYPE,AdfComponentEvent.CONTEXT_MENU_EVENT_TYPE,
AdfActionEvent.ACTION_EVENT_TYPE,AdfDialogEvent.EVENT_TYPE,AdfPopupOpeningEvent.POPUP_OPENING_EVENT_TYPE,AdfPopupClosedEvent.POPUP_CLOSED_EVENT_TYPE);AdfObject.ensureClassInitialization(AdfDhtmlPivotTablePeer);AdfRichUIPeer.addSuppressedPPRAttributes(this,"splitRow");AdfRichUIPeer.addSuppressedPPRAttributes(this,"splitColumn");AdfRichUIPeer.addSuppressedPPRAttributes(this,"startRow");AdfRichUIPeer.addSuppressedPPRAttributes(this,"startColumn");AdfRichUIPeer.addSuppressedPPRAttributes(this,"secondStartRow");
AdfRichUIPeer.addSuppressedPPRAttributes(this,"secondStartColumn");AdfRichUIPeer.addSuppressedPPRAttributes(this,"startRowPixel");AdfRichUIPeer.addSuppressedPPRAttributes(this,"startColumnPixel");AdfRichUIPeer.addSuppressedPPRAttributes(this,"secondStartRowPixel");AdfRichUIPeer.addSuppressedPPRAttributes(this,"secondStartColumnPixel");AdfRichUIPeer.addSuppressedPPRAttributes(this,"rowHeaderStartLayer");AdfRichUIPeer.addSuppressedPPRAttributes(this,"columnHeaderStartLayer");AdfRichUIPeer.addSuppressedPPRAttributes(this,
"rowHeaderStartPixel");AdfRichUIPeer.addSuppressedPPRAttributes(this,"columnHeaderStartPixel");AdfRichUIPeer.addSuppressedPPRAttributes(this,"_sizeOverrides");AdfRichUIPeer.addSuppressedPPRAttributes(this,"selection");AdfRichUIPeer.addSuppressedPPRAttributes(this,"activeCellKey");this.IB="2";this.Ea="partial";this.dm=0;this.cm=1;this.jh=2;this.ij=3;this.Re=5;this.HA=3;this.Zl=1;AdfPivotTableUtils.R()?this.Vl=this.np=this.ah=this.cu=22:this.Vl=this.np=this.ah=this.cu=10;this.tD=25;this.Qu=/^INPUT|SELECT|OPTION|BUTTON|^A\b|TEXTAREA/;
this.tE=/\d+/g;this.GF=/\s+/g;this.dh="_oc";this.Fo="_bc";this.QE={LN:"#F0F8FF",MN:"#FAEBD7",NN:"#00FFFF",ON:"#7FFFD4",VN:"#F0FFFF",eO:"#F5F5DC",fO:"#FFE4C4",iO:"#000000",jO:"#FFEBCD",kO:"#0000FF",lO:"#8A2BE2",mO:"#A52A2A",nO:"#DEB887",oO:"#5F9EA0",pO:"#7FFF00",qO:"#D2691E",xO:"#FF7F50",yO:"#6495ED",zO:"#FFF8DC",AO:"#DC143C",BO:"#00FFFF",DO:"#00008B",EO:"#008B8B",FO:"#B8860B",GO:"#A9A9A9",HO:"#006400",IO:"#BDB76B",JO:"#8B008B",KO:"#556B2F",LO:"#FF8C00",MO:"#9932CC",NO:"#8B0000",OO:"#E9967A",PO:"#8FBC8F",
QO:"#483D8B",RO:"#2F4F4F",SO:"#00CED1",TO:"#9400D3",UO:"#FF1493",VO:"#00BFFF",WO:"#696969",XO:"#1E90FF",eP:"#B22222",fP:"#FFFAF0",gP:"#228B22",iP:"#FF00FF",jP:"#DCDCDC",kP:"#F8F8FF",lP:"#FFD700",mP:"#DAA520",nP:"#808080",oP:"#008000",pP:"#ADFF2F",qP:"#F0FFF0",rP:"#FF69B4",uP:"#CD5C5C",wP:"#4B0082",AP:"#FFFFF0",CP:"#F0E68C",DP:"#E6E6FA",EP:"#FFF0F5",FP:"#7CFC00",GP:"#FFFACD",HP:"#ADD8E6",IP:"#F08080",JP:"#E0FFFF",KP:"#FAFAD2",MP:"#D3D3D3",LP:"#90EE90",NP:"#FFB6C1",OP:"#FFA07A",PP:"#20B2AA",QP:"#87CEFA",
RP:"#778899",SP:"#B0C4DE",TP:"#FFFFE0",UP:"#00FF00",VP:"#32CD32",WP:"#FAF0E6",ZP:"#FF00FF",$P:"#800000",aQ:"#66CDAA",bQ:"#0000CD",cQ:"#BA55D3",dQ:"#9370D8",eQ:"#3CB371",fQ:"#7B68EE",gQ:"#00FA9A",hQ:"#48D1CC",iQ:"#C71585",jQ:"#191970",kQ:"#F5FFFA",lQ:"#FFE4E1",mQ:"#FFE4B5",oQ:"#FFDEAD",pQ:"#000080",rQ:"#FDF5E6",sQ:"#808000",tQ:"#6B8E23",uQ:"#FFA500",vQ:"#FF4500",wQ:"#DA70D6",xQ:"#EEE8AA",yQ:"#98FB98",zQ:"#AFEEEE",AQ:"#D87093",DQ:"#FFEFD5",HQ:"#FFDAB9",IQ:"#CD853F",JQ:"#FFC0CB",KQ:"#DDA0DD",LQ:"#B0E0E6",
MQ:"#800080",OQ:"#FF0000",PQ:"#BC8F8F",QQ:"#4169E1",SQ:"#8B4513",TQ:"#FA8072",UQ:"#F4A460",VQ:"#2E8B57",cR:"#FFF5EE",eR:"#A0522D",fR:"#C0C0C0",gR:"#87CEEB",hR:"#6A5ACD",iR:"#708090",jR:"#FFFAFA",kR:"#00FF7F",mR:"#4682B4",zR:"#D2B48C",AR:"#008080",BR:"#D8BFD8",CR:"#FF6347",ER:"#40E0D0",MR:"#EE82EE",NR:"#F5DEB3",OR:"#FFFFFF",PR:"#F5F5F5",QR:"#FFFF00",RR:"#9ACD32"};this.jF=[["colNav0","colNav1"],["rowNav0","rowNav1"]];this.Eu="c";this.bF="p";this.UE="n";this.ZD="ClearSelectionLink";this.aE="ToggleCheckboxesLink";
this.$D="SelectionCheckbox";this.YB="et";this.qp=0;this.rp=1;this.sp=2;this.tp=3;this.gv="SelectionDiv";this.fe=0;this.xd=1;this.Ti=2;this.Yg=3;this.JA="MainContextMenuPopup";this.AA="BodyContextMenuPopup";this.iC="HeaderSortAscendingMenuItem";this.jC="HeaderSortDescendingMenuItem";this.OB="DataSortAscendingMenuItem";this.PB="DataSortDescendingMenuItem";this.nD="ResizeHeightMenuItem";this.oD="ResizeWidthMenuItem";this.HD="SplitPanesMenuItem";this.lu="ResizeDialogPopup";this.ku="ResizeDialog";this.lD=
"ResizeDialogPlm";this.mD="ResizeDialogSpin";this.nv="si";this.lv="_asc";this.mv="_desc";this.kv="_sorted";this.oF="1";this.pF="2";this.D=":";this.kr=!1;this.oj=[[],[]];this.oj[0][0]="nb_pv_00";this.oj[0][1]="nb_pv_01";this.oj[1][0]="nb_pv_10";this.oj[1][1]="nb_pv_11";this.Rf=[[],[]];this.Rf[0][0]="nb_fr_00";this.Rf[0][1]="nb_fr_01";this.Rf[1][0]="nb_fr_10";this.Rf[1][1]="nb_fr_11";this.Tf=[[],[]];this.Tf[0][0]="nb_nx_00";this.Tf[0][1]="nb_nx_01";this.Tf[1][0]="nb_nx_10";this.Tf[1][1]="nb_nx_11";
this.Sf=[[],[]];this.Sf[0][0]="nb_ls_00";this.Sf[0][1]="nb_ls_01";this.Sf[1][0]="nb_ls_10";this.Sf[1][1]="nb_ls_11"};A_a("AdfDhtmlPivotTablePeer.InitSubclass",AdfDhtmlPivotTablePeer.InitSubclass);function A_Oe(a){var b=a.getDomElement().getAttribute("_uosd");return null!=b&&(a=a.getComponent(),-1==a.getProperty("splitRow")&&-1==a.getProperty("splitColumn"))?parseInt(b,10):0}function A_Pe(a){return"initial"===a.getDomElement().getAttribute("_chb")?!0:!1}
function A_Qe(a){return"true"==a.getDomElement().getAttribute("_old_edit")?!0:!1}function A_Re(a){return"true"==a.getDomElement().getAttribute("_readonly")?!0:!1}function A_Se(a){return"true"==a.getDomElement().getAttribute("_cteAll")?!0:!1}
AdfDhtmlPivotTablePeer.prototype.Df=function(a){if(!this.ma&&0!=this.b.Be&&0!=this.b.mc)if(this.ug&&AdfAgent.AGENT.getPlatform()==AdfAgent.IE_PLATFORM)AdfPage.PAGE.getGlassPane().focus();else{if(this.ym){var b=A_Te(this);null!=b&&null==this.F&&(b=A_Ue(b),A_0(this,b),this.Vq=!1)}else this.Vq?A_Ve(this):A_We(this);A_Qe(this)||(a=a.getNativeEvent(),a=AdfAgent.AGENT.getEventTarget(a),b=A_Xe(this,a),null!=b&&null!=b[0]&&null!=b[1]&&b[1].id&&void 0==a.yb&&AdfDhtmlPivotTablePeer.QI(a))}};
A_a("AdfDhtmlPivotTablePeer.prototype.HandleComponentFocus",AdfDhtmlPivotTablePeer.prototype.Df);AdfDhtmlPivotTablePeer.prototype.ge=function(){this.ma||0!=this.Hq||(AdfPivotTableUtils.R()&&A_Ye(this),A_We(this,!0),A_Ze(this,!0))};A_a("AdfDhtmlPivotTablePeer.prototype.HandleComponentBlur",AdfDhtmlPivotTablePeer.prototype.ge);AdfDhtmlPivotTablePeer.prototype._displayContextMenuAfterEdit=function(){A__e(this,this.Hg,this.Hg.flag);this.Hg=null};
function A_0e(a,b,c){var d=b.getNativeEvent();null!=a.T?(A_1e(a,b),AdfAgent.AGENT.preventDefault(d),d.flag=c,a.Hg=d):A__e(a,d,c)}
AdfDhtmlPivotTablePeer.prototype.jb=function(a){if(!this.pe&&A_2e(this)&&this.Rb!=AdfDhtmlPivotTablePeer.jh&&this.Rb!=AdfDhtmlPivotTablePeer.ij&&!this.ma){var b=AdfAgent.AGENT,c=a.getNativeEvent(),d=b.getEventTarget(c);if(!A_3e(this,d))if(A_4e(this,d))b.preventDefault(c);else{this.getDomElement().focus();var e=A_5e(this,c);if(e.ua&&e.ua.cell&&!e.ua.Yd)b=A_6e(e.ua.cell),this.isSelected(b)||A_7e(this,b),A_0e(this,a,!1);else if(e.Gg){var e=e.Gg.cell,f=A_8e(this,e),g=this.A(AdfPivotTableUtils.de);A_Qe(this)?
(this.isSelected(f)||A_d.ta(e,g)||A_0(this,f),A_0e(this,a,!1)):A_9e(this,f,null,!0)||A_$e(this)&&this.isSelected(f)?A_0e(this,a,!1):this.T==e?A_0e(this,a,!1):(this.isSelected(f)||A_d.ta(e,g)||A_0(this,f),b.preventDefault(c),A_Re(this)?A_0e(this,a,!1):A_Se(this)?(A_af(this,e,null,null),this.Ej=!1,this.Mm(!0),A__e(this,c,!1)):(this.Hg=b.copyEvent(c),A_bf(this,a,d)))}else A_0e(this,a,!0)}}};A_a("AdfDhtmlPivotTablePeer.prototype.HandleComponentContextMenu",AdfDhtmlPivotTablePeer.prototype.jb);
function A__e(a,b,c,d){a.Rb=AdfDhtmlPivotTablePeer.cm;a.Rz=!1;var e=a.getComponent(),f=!1,g=null;if(g=c?e.getBodyContextMenuId?e.getBodyContextMenuId():null:e.getContextMenuId?e.getContextMenuId():null){var f=!0,h=e.findComponent(g);null==h&&(h=AdfPage.PAGE.findComponent(g),e=null);null!=h&&(h.removeEventListener("popupClosed",a.qz,null),h.addEventListener("popupClosed",a.qz,null));a.showContextMenu(b,g,e,d);g=AdfAgent.AGENT;g.stopPropagation(b);g.preventDefault(b)}f||(c?(c=a.getDomElement().getAttribute("_cbcm"),
c=null==c?AdfDhtmlPivotTablePeer.AA:c):(c=a.getDomElement().getAttribute("_ccm"),c=null==c?AdfDhtmlPivotTablePeer.JA:c),a.showContextMenu(b,c,a.getComponent(),d),a=AdfAgent.AGENT,a.stopPropagation(b),a.preventDefault(b))}AdfDhtmlPivotTablePeer.prototype.qz=function(){this.yd(null)};
AdfDhtmlPivotTablePeer.prototype.HandleComponentAction=function(a){var b=a.getSource();if(!b.getDisabled())if(b=b.getClientId(),-1!=b.indexOf(AdfDhtmlPivotTablePeer.OB))A_cf(this,!0,!1),a.cancel();else if(-1!=b.indexOf(AdfDhtmlPivotTablePeer.PB))A_cf(this,!1,!1),a.cancel();else if(-1!=b.indexOf(AdfDhtmlPivotTablePeer.iC))A_cf(this,!0,!0),a.cancel();else if(-1!=b.indexOf(AdfDhtmlPivotTablePeer.jC))A_cf(this,!1,!0),a.cancel();else if(-1!=b.indexOf(AdfDhtmlPivotTablePeer.nD))this.zt(!0),a.cancel();else if(-1!=
b.indexOf(AdfDhtmlPivotTablePeer.oD))this.zt(!1),a.cancel();else if(-1!=b.indexOf(AdfDhtmlPivotTablePeer.HD)){A_df(this.getDomElement());if(this.ma||A_ef(this)){var b=this.getComponent(),c=new A_ff(b);c.setPartial(!0);b.queueEvent(c);c.isCanceled()?A_gf(this,A_Te(this)):(A_hf(this,AdfDhtmlPivotTablePeer.Ea),this.Qd=null,this.ma||this.Ec(this.ld,!0))}a.cancel()}};A_a("AdfDhtmlPivotTablePeer.prototype.HandleComponentAction",AdfDhtmlPivotTablePeer.prototype.HandleComponentAction);
function A_cf(a,b,c){var d=A_if(a),e=A_1(a,d)[0].startIndex;c?e=e.layer:(d=1-d,e=e.slice);a.mt(d,e,b,c)}
AdfDhtmlPivotTablePeer.prototype.oC=function(a){if(a.getSource().getClientId()==this.getComponent().getClientId()+AdfDhtmlPivotTablePeer.D+AdfDhtmlPivotTablePeer.ku&&a.getOutcome()==AdfDialogEvent.OUTCOME_OK){var b=this.Jr,c=b.tM,d=b.cM,e=b.fM,f=b.kt,g=b.OJ,h=b.lM,l=b.cell,b=b.oN.getValue(),b=Math.max(b,Math.min(d?16:11,c)),c=b-c;0!=c&&(this.Yx?A_jf(this,e,f,g,l,h,c,!1):A_kf(this,e,f,g,l,h,c));a.cancel();a=this.getComponent().getClientId();AdfPage.PAGE.findComponent(a+AdfDhtmlPivotTablePeer.D+AdfDhtmlPivotTablePeer.lu).hide()}};
A_a("AdfDhtmlPivotTablePeer.prototype.HandleComponentDialog",AdfDhtmlPivotTablePeer.prototype.oC);
AdfDhtmlPivotTablePeer.prototype.$g=function(a){if(this.Na==AdfDhtmlPivotTablePeer.Ea)a.cancel();else{var b=a.getSource().getClientId(),c=b.indexOf(":",this.getComponent().getClientId().length+1),b=b.substring(this.getComponent().getClientId().length+1,c);if(isNaN(b))switch(this.Rb){case AdfDhtmlPivotTablePeer.dm:case AdfDhtmlPivotTablePeer.cm:b=this.Rz;b||(b=a.getSource().getDescendantComponents(),b=null==b||1>=b.length);b?(a.cancel(),this.Rb=AdfDhtmlPivotTablePeer.dm):this.Rb=AdfDhtmlPivotTablePeer.cm;
break;case AdfDhtmlPivotTablePeer.jh:var d=A_if(this);a=A_lf(this).startIndex;var c=a.layer,e=a.slice;a=this.Yx;var f=(b=d==AdfPivotTableUtils.s!=a)?c:e,g;b?(e=this.b.j[d],c=0,g=this.b.$[d][e][c],d=f+1):(e=f<this.b.u[d]?0:1,c=A_mf(this,d,f,e),g=this.b.$[d][e][c],d=AdfAgent.AGENT.getIntAttribute(g,"_startSlice"),d=f-d+1);a?(f=g.childNodes[0].rows[d].cells[0],g=f.offsetHeight):(f=g.childNodes[0].rows[0].cells[d],g=f.offsetWidth);var h=this.getComponent().getClientId(),l=AdfPage.PAGE.findComponent(h+
AdfDhtmlPivotTablePeer.D+AdfDhtmlPivotTablePeer.mD);l.setValue(g);var m=a?this.FH:this.CJ;AdfPage.PAGE.findComponent(h+AdfDhtmlPivotTablePeer.D+AdfDhtmlPivotTablePeer.ku).setTitle(m);h=h+AdfDhtmlPivotTablePeer.D+AdfDhtmlPivotTablePeer.lD;AdfPage.PAGE.findComponent(h).setLabel(m);m=AdfAgent.getAgent().getElementById(h).childNodes[0];h=m.cloneNode(!0);h.style.visibility="hidden";this.getDomElement().appendChild(h);m.style.width=h.offsetWidth+"px";this.getDomElement().removeChild(h);this.Jr||(this.Jr=
{});m=this.Jr;m.oN=l;m.tM=g;m.fM=b;m.cM=a;m.kt=e;m.OJ=c;m.lM=d;m.cell=f}else this.Rb=AdfDhtmlPivotTablePeer.ij}};A_a("AdfDhtmlPivotTablePeer.prototype.HandleComponentPopupOpening",AdfDhtmlPivotTablePeer.prototype.$g);AdfDhtmlPivotTablePeer.prototype.yd=function(){this.Rb=AdfDhtmlPivotTablePeer.dm};A_a("AdfDhtmlPivotTablePeer.prototype.HandleComponentPopupClosed",AdfDhtmlPivotTablePeer.prototype.yd);
function A_4e(a,b){var c=AdfAgent.AGENT,d=a.getComponent();if(b==a.T&&(d=AdfPage.PAGE.getClientIdsWithMessages(d.getClientId()),null!=d&&0<d.length))for(var e=0;e<d.length;e++)if(0==d[e].indexOf(b.id))return c=c.getElementById(d[e]),c=A_nf(a,c),null!=c&&0<c.length&&c[0].focus(),!0;return!1}
AdfDhtmlPivotTablePeer.prototype.ra=function(a){if(this.Na!=AdfDhtmlPivotTablePeer.Ea&&this.Rb!=AdfDhtmlPivotTablePeer.jh&&this.Rb!=AdfDhtmlPivotTablePeer.ij){var b=this.getComponent(),c=AdfAgent.AGENT,d=a.getNativeEvent(),c=c.getEventTarget(d);if(!(A_4e(this,c)||this.Oa&&A_of(this,d,c))){if(a.isLeftButtonPressed()&&(this.Ts(b,c),this.kn&&this.Na!=AdfDhtmlPivotTablePeer.Ea&&((a=c.parentNode.getAttribute(AdfDhtmlPivotTablePeer.lv))||(a=c.parentNode.parentNode.getAttribute(AdfDhtmlPivotTablePeer.lv)),
(b=c.parentNode.getAttribute(AdfDhtmlPivotTablePeer.mv))||(b=c.parentNode.parentNode.getAttribute(AdfDhtmlPivotTablePeer.mv)),a||b))){var e=A_pf(this,c,"TH"),f=A_qf(e),g=AdfRichUIPeer.CreateSubId(this.getComponent().getClientId(),f.startSlice+"::"+AdfDhtmlPivotTablePeer.nv),h=null,h=void 0==e.getAttribute("_vt")?AdfPivotTableUtils.R()?AdfDhtmlPivotTablePeer.W(e.childNodes[0],g):AdfDhtmlPivotTablePeer.W(e,g):AdfDhtmlPivotTablePeer.W(e.childNodes[0].rows[0].cells[0],g),e=h.getAttribute(AdfDhtmlPivotTablePeer.kv),
g=void 0;a&&e!=AdfDhtmlPivotTablePeer.oF?g=!0:b&&e!=AdfDhtmlPivotTablePeer.pF&&(g=!1);void 0!=g&&(this.mt(AdfPivotTableUtils.s,f.startSlice,g,!1),AdfAgent.AGENT.eatEvent(d))}if(A_Se(this))a=!0,null!=this.T&&(b=A_rf(this,this.T).ia,null!=b&&b instanceof AdfUIEditableValue&&(a=b.getValid())),a?(b=A_Xe(this,c),null!=b&&(a=b[0],b=b[1],null!=a&&null!=b&&(A_sf(this,c,b)?(null!=this.jy&&(this.Ej=!1,this.Mm(!1)),d=b.parentNode.offsetHeight,this.T!=this.Nd&&A_af(this,b,b,d),this.Gd=d,A_Pe(this)||(c=b.parentNode.offsetHeight-
d,0!=c&&A_tf(this,b,c)),this.Zj=A_uf(this,b).row,this.gk=d,this.Nd=this.T=b,A_vf(this,a,!0)):A_Qe(this)||A_bf(this,d,c)))):(d=A_8e(this,this.T),A_0(this,d),this.pk());else{a=AdfAgent.AGENT.getMousePosition(d);if(void 0==this.rk||this.rk.x!=a.x||this.rk.x!=a.x)d.shiftKey||A_wf(d)||A_xf(this,c);this.rk=void 0;A_Qe(this)||A_bf(this,d,c)}}}};A_a("AdfDhtmlPivotTablePeer.prototype.HandleComponentClick",AdfDhtmlPivotTablePeer.prototype.ra);
function A_bf(a,b,c){if(!a.ma&&!a.pe&&!A_Re(a)){if(b.shiftKey||A_wf(b))null!=A_Te(a)&&a.pk();else{var d=A_Xe(a,c);null!=d&&(c=d[0],d=d[1],null!=c&&d.id&&(c!=A_Te(a)?(a.T=d,a.Gd=d.parentNode.offsetHeight,a.Ej=!0,A_vf(a,c)):a.ym&&(b=AdfAgent.AGENT.getEventTarget(b),"INPUT"==b.tagName&&"text"==b.type&&b.select())))}a.ym=!1}}
AdfDhtmlPivotTablePeer.prototype.Zg=function(a){if(A_Qe(this))A_bf(this,a);else{var b=AdfAgent.AGENT;a=a.getNativeEvent();a=b.getEventTarget(a);"INPUT"==a.tagName&&"text"==a.type&&(b.getPlatform()==AdfAgent.IE_PLATFORM?(b=a.createTextRange(),b.moveStart("character",a.value.length),b.moveEnd("character",a.value.length),b.select()):(a.setSelectionRange(a.value.length,a.value.length),a.blur(),a.focus(),b=document.createEvent("KeyboardEvent"),b.initKeyEvent("keypress",!0,!0,null,!1,!1,!1,!1,27,0),a.dispatchEvent(b)))}this.Dm=
this.Em=null};A_a("AdfDhtmlPivotTablePeer.prototype.HandleComponentDblClick",AdfDhtmlPivotTablePeer.prototype.Zg);
AdfDhtmlPivotTablePeer.prototype.$c=function(a){if(this.Rb!=AdfDhtmlPivotTablePeer.jh&&this.Rb!=AdfDhtmlPivotTablePeer.cm&&this.Rb!=AdfDhtmlPivotTablePeer.ij){var b=a.getNativeEvent(),c=AdfAgent.AGENT,d=c.getEventTarget(b),e=b.keyCode;if(this.Oa)for(var f=d,g=this.getDomElement();f!=g;){if(f==this.b.Fa[0][0]||f==this.b.Fa[0][1]||f==this.b.Fa[1][1]||f==this.b.Fa[1][0]){e==AdfKeyStroke.ENTER_KEY&&(this.Fn=!0);return}f=f.parentNode}var h=b.altKey,l=b.ctrlKey,g=b.shiftKey,f=this.getComponent();if("A"==
d.tagName&&e==AdfKeyStroke.ENTER_KEY){var m=A_Xe(this,d);if(null!=m){var n=m[1];if(null!=m[0]&&n.id&&n==this.T)return}}if(!this.ma&&this.Na!=AdfDhtmlPivotTablePeer.Ea)if(m=this.F,n=A_$e(this),null==m||A_yf(m)!=AdfPivotTableUtils.O||null==this.T||!n&&A_zf(this,m)!=this.T){if(m=this.F,null!=m&&A_yf(m)!=AdfPivotTableUtils.O&&e==AdfKeyStroke.ENTER_KEY){range=A_Wa(m);nodes=A_Xa(this,range,m.edge);if(0==nodes.length)return;m=nodes[0];n=A_nf(this,m);d=A_Af(n,d);if(null!=n&&-1==d){a=m.firstChild;if(null==
a)return;a=a.firstChild;if(null==a||"SPAN"!=a.nodeName)return;c.getAttribute(a,"_dr")&&A_Bf(this,f,m);return}}}else{switch(e){case AdfKeyStroke.ESC_KEY:a.cancel();A_Qe(this)||void 0==d.yb?A_Qe(this)&&(A_Df(a),A_1e(this,a)):AdfDhtmlPivotTablePeer.CH(d)?(AdfPage.PAGE.scheduleTimer(null,AdfDhtmlPivotTablePeer.FI,d,0),A_Se(this)&&(a=A_Cf(this,d,this.T),null!=a&&(a.resetValue(),a=AdfRichUIPeer.getDomElementForComponent(a),null!=a&&a.removeAttribute("_afrCellDirty")))):(A_Se(this)||A_Df(a),A_1e(this,a),
this.kr=!0);break;case AdfKeyStroke.TAB_KEY:case AdfKeyStroke.ENTER_KEY:c=!0;void 0!=d.yb&&d.yb!=d.value&&(c=A_Df(a));a.cancel();c&&(e==AdfKeyStroke.TAB_KEY?A_Ef(this,a,e):A_Ff(this,a,e));break;case AdfKeyStroke.ARROWLEFT_KEY:case AdfKeyStroke.ARROWRIGHT_KEY:case AdfKeyStroke.ARROWUP_KEY:case AdfKeyStroke.ARROWDOWN_KEY:A_Qe(this)||!l||g||(c=!0,void 0!=d.yb&&d.yb!=d.value&&(c=A_Df(a)),a.cancel(),c&&(e==AdfKeyStroke.ARROWLEFT_KEY||e==AdfKeyStroke.ARROWRIGHT_KEY?A_Ef(this,a,e):A_Ff(this,a,e)))}return}switch(e){case 16:case 18:if(this.ma)break;
h&&g&&!this.Ak&&A_kc(this)&&(a=A_if(this),a==AdfPivotTableUtils.s||a==AdfPivotTableUtils.o)&&(c=A_Gf(this),A_lc(this,a,c)&&(A_Ye(this),A_Hf(this,a,c,A_mc(this,a,c)),this.Ak=!0));break;case AdfKeyStroke.ARROWRIGHT_KEY:case AdfKeyStroke.ARROWDOWN_KEY:case AdfKeyStroke.ARROWUP_KEY:case AdfKeyStroke.ARROWLEFT_KEY:if(this.ma)break;h?l||this.pe||A_If(this,e,g):!l||g?(A_Jf(this,g,e,!1),A_df(this.getDomElement())):A_Kf(this,e);a.cancel();break;case AdfKeyStroke.ESC_KEY:if(this.ma)break;h&&g&&A_Ze(this,!0);
break;case AdfKeyStroke.SPACE_KEY:if(this.ma)break;m=this.F;null!=m&&A_yf(m)!=AdfPivotTableUtils.O&&A_Lf(this,m,b);a.cancel();break;case AdfKeyStroke.F2_KEY:if(this.ma)break;A_Mf(this);break;case AdfKeyStroke.TAB_KEY:if(this.ma)break;if(null!=this.F&&A_yf(this.F)==AdfPivotTableUtils.O)if(null!=this.T)a.cancel();else if(A_Re(this)&&!A_Qe(this))a:{if(this.Na!=AdfDhtmlPivotTablePeer.Ea){c=-1;if(g)if(0==this.F.column)if(0<this.F.row)e=A_f(this.F.row-1,this.b.mc-1),A_Nf(this,e);else break a;else c=this.b.U?
AdfKeyStroke.ARROWRIGHT_KEY:AdfKeyStroke.ARROWLEFT_KEY;else if(this.F.column==this.b.mc-1)if(this.F.row<this.b.Be-1)e=A_f(this.F.row+1,0),A_Nf(this,e);else break a;else c=this.b.U?AdfKeyStroke.ARROWLEFT_KEY:AdfKeyStroke.ARROWRIGHT_KEY;-1!=c&&A_Jf(this,!1,c,!1);a.cancel()}}else A_Of(this,a);else A_Of(this,a);break;case AdfKeyStroke.M_KEY:l&&h&&this.ho(b);break;case AdfKeyStroke.ENTER_KEY:this.ma||A_Qe(this)||(A_Re(this)?A_Pf(this,b):(this.qs=AdfAgent.AGENT.copyEvent(b),A_Mf(this)))}}};
A_a("AdfDhtmlPivotTablePeer.prototype.HandleComponentKeyDown",AdfDhtmlPivotTablePeer.prototype.$c);AdfDhtmlPivotTablePeer.prototype.HandleComponentKeyUp=function(a){this.ma||(a=a.getNativeEvent(),(!a.altKey||!a.shiftKey&&this.UH)&&A_Ze(this,!1))};A_a("AdfDhtmlPivotTablePeer.prototype.HandleComponentKeyUp",AdfDhtmlPivotTablePeer.prototype.HandleComponentKeyUp);
AdfDhtmlPivotTablePeer.CH=function(a){if("INPUT"==a.tagName){if("text"==a.type)return a.yb!=a.value;if("checkbox"==a.type||"radio"==a.type)return a.yb!=a.checked}else if("SELECT"==a.tagName)for(var b=0;b<a.options.length;b++){if(a.options[b].selected)return a.yb!=a.options[b].value}else if("TEXTAREA"==a.tagName)return a.yb!=a.value;return!1};
AdfDhtmlPivotTablePeer.QI=function(a){if("INPUT"==a.tagName)if("text"==a.type)a.yb=a.value;else{if("checkbox"==a.type||"radio"==a.type)a.yb=a.checked}else if("SELECT"==a.tagName)for(var b=0;b<a.options.length;b++)a.options[b].selected&&(a.yb=a.options[b].value);else"TEXTAREA"==a.tagName&&(a.yb=a.value)};
AdfDhtmlPivotTablePeer.FI=function(a){if("INPUT"==a.tagName)if("text"==a.type)a.value=a.yb,a.select();else{if("checkbox"==a.type||"radio"==a.type)a.checked=a.yb}else if("SELECT"==a.tagName)for(var b=0;b<a.options.length;b++)a.options[b].selected=!1,a.yb==a.options[b].value&&(a.options[b].selected=!0);else"TEXTAREA"==a.tagName&&(a.value=a.yb,a.select())};
function A_Qf(a,b){for(var c=0;2>c;++c){var d=b[a.b.$z[c]],e=d<a.b.u[c]?0:1,f=A_Rf(a,c,e);if(d<f)return!1;e=A_Sf(a,c,e);if(d>=e)return!1}return!0}
function A_Pf(a,b){if(null!=a.F){var c;b.shiftKey?a.F.row==a.b.u[1]?c=A_Tf(a,1,0,!1,a.F.column):0<a.F.row&&(c=A_f(a.F.row-1,a.F.column)):a.F.row+1==a.b.u[1]?c=A_Tf(a,1,1,!0,a.F.column):a.F.row+1<a.b.Be&&(c=A_f(a.F.row+1,a.F.column));if(null==c)A_Re(a)||A_Se(a)||(c=a.getComponent().getProperty(AdfRichPivotTable.gd),A_Uf(a,c,null,a.Gd,null)&&(a.tn=c));else if(A_Qf(a,c))A_0(a,c),A_Vf(a,c),A_Re(a)||A_Mf(a);else{var d=a.F.column!=c.column;A_0(a,c);a.cf=!0;d?a.Pg(c.row,c.column):(c=a.b.se[c.row<a.b.u[1]?
0:1][1],d=a.T.parentNode.offsetHeight,c.scrollTop=b.shiftKey?c.scrollTop-d:c.scrollTop+d,a.Jb(a.getComponent(),null))}}}
function A_Ff(a,b,c){var d=b.getNativeEvent();if(c==AdfKeyStroke.ENTER_KEY)A_Pf(a,d);else if(c==AdfKeyStroke.ARROWUP_KEY&&0==a.F.row)a.ek=AdfKeyStroke.ARROWUP_KEY,A_1e(a,b);else if(c==AdfKeyStroke.ARROWDOWN_KEY||c==AdfKeyStroke.ARROWUP_KEY)a.Qr=c==AdfKeyStroke.ARROWUP_KEY?!0:!1,A_Jf(a,!1,c,!0),(b=A_Wf(a))?a.cf=!0:(d=A_uf(a,a.T),(c!=AdfKeyStroke.ARROWDOWN_KEY||null==a.F||b||d.col!=a.F.column||d.row!=a.F.row)&&A_Mf(a))}
function A_Nf(a,b){A_0(a,b);A_Qf(a,b)?(A_Vf(a,b),A_Re(a)||A_Mf(a)):(a.cf=!0,a.Pg(b.row,b.column))}
function A_Xf(a,b,c){var d=A_uf(a,a.T);0!=d.col&&!a.b.U||d.col<a.b.mc-1&&a.b.U?(a.Qr=!0,A_Jf(a,!1,AdfKeyStroke.ARROWLEFT_KEY,!0),A_Wf(a)&&(a.cf=!0,A_Se(a)&&A_af(a,a.T,a.T,a.gk)),A_Mf(a)):c?a.b.U||0!=d.col?a.b.U&&d.col==a.b.mc-1&&(A_Qe(a)||d.row==a.b.Be-1?A_1e(a,b):(b=A_f(a.F.row+1,0),A_Nf(a,b))):A_Qe(a)||0==a.F.row?A_1e(a,b):(b=A_f(a.F.row-1,a.b.mc-1),A_Nf(a,b)):a.b.U||0!=d.col||(a.ek=AdfKeyStroke.ARROWLEFT_KEY,A_1e(a,b))}
function A_Yf(a,b,c){var d=A_uf(a,a.T);d.col<a.b.mc-1&&!a.b.U||0!=d.col&&a.b.U?(A_Jf(a,!1,AdfKeyStroke.ARROWRIGHT_KEY,!0),A_Wf(a)&&(a.cf=!0,A_Se(a)&&A_af(a,a.T,a.T,a.gk)),A_Mf(a)):a.b.U||d.col!=a.b.mc-1?a.b.U&&0==d.col&&(c?0==a.F.row?A_1e(a,b):(b=A_f(a.F.row-1,a.b.mc-1),A_Nf(a,b)):(a.ek=AdfKeyStroke.ARROWRIGHT_KEY,A_1e(a,b))):c&&(A_Qe(a)||d.row==a.b.Be-1?A_1e(a,b):(b=A_f(a.F.row+1,0),A_Nf(a,b)))}
function A_Ef(a,b,c){var d=b.getNativeEvent(),e=AdfAgent.AGENT.getEventTarget(d),f=A_Zf(a,e),g=a.b.U;f?c==AdfKeyStroke.TAB_KEY?(c=A_nf(a,f),f=A_Af(c,e),d.shiftKey&&!g||!d.shiftKey&&g?a.Uj(c[0],e)?A_Xf(a,b,!0):A_df(-1==f?c[0]:c[f-1]):a.Uj(c[c.length-1],e)?A_Yf(a,b,!0):A_df(-1==f?c[0]:c[f+1])):c==AdfKeyStroke.ARROWLEFT_KEY?A_Xf(a,b,!1):A_Yf(a,b,!1):c==AdfKeyStroke.TAB_KEY?d.shiftKey&&!g||!d.shiftKey&&g?A_Xf(a,b,!0):A_Yf(a,b,!0):c==AdfKeyStroke.ARROWLEFT_KEY?A_Xf(a,b,!1):A_Yf(a,b,!1)}
function A_Of(a,b){var c=b.getNativeEvent();if(!a.ma)if(null==A_Te(a)){var d;a:{d=b.getNativeEvent();var e=AdfAgent.AGENT.getEventTarget(d),f=a.F;if(null!=f&&A__f(f)){var g=A_Wa(f),f=A_Xa(a,g,f.edge);if(0<f.length&&(f=A_nf(a,f[0]),e=A_Af(f,e),0<f.length)){if(!d.shiftKey&&e!=f.length-1){b.cancel();A_df(-1==e?f[0]:f[e+1]);d=!0;break a}if(d.shiftKey&&0!=e){b.cancel();A_df(-1==e?f[f.length-1]:f[e-1]);d=!0;break a}}}d=!1}d||(c.shiftKey?A_df(a.getDomElement()):(c=a.getDomElement(),c=AdfDhtmlPivotTablePeer.W(c.childNodes[0],
c.id+"::ScrollbarTesterParent"),null!=c&&A_df(c)))}else A_Df(b),b.cancel(),A_1e(a,b)}AdfDhtmlPivotTablePeer.prototype.ho=function(a){if(!this.pe&&A_2e(this))if(this.getDomElement().focus(),this.ma){var b=null==A_if(this);A__e(this,a,b)}else if(b=this.F,null==b)A__e(this,a,!0);else if(A__f(b)){var c=A_Wa(b),c=A_Xa(this,c,b.edge);0<c.length&&(this.isSelected(b)||A_7e(this,b),A__e(this,a,!1,c[0]))}else c=A_g(b),c=A_Va(this,c),0<c.length&&A__e(this,a,!1,c[0])};
AdfDhtmlPivotTablePeer.prototype.HandleComponentMouseOver=function(a){this.ma||AdfPivotTableUtils.R()||this.pe||this.qk||this.$m||this.Jm||!this.kn||(a=a.getNativeEventTarget(),(a=A_pf(this,a,"TH"))&&A_0f(this,a,!0))};A_a("AdfDhtmlPivotTablePeer.prototype.HandleComponentMouseOver",AdfDhtmlPivotTablePeer.prototype.HandleComponentMouseOver);
AdfDhtmlPivotTablePeer.prototype.Ib=function(a){this.ma||AdfPivotTableUtils.R()||(A_Ye(this),this.kn&&(a=a.getNativeEventTarget(),(a=A_pf(this,a,"TH"))&&A_0f(this,a,!1)))};A_a("AdfDhtmlPivotTablePeer.prototype.HandleComponentMouseOut",AdfDhtmlPivotTablePeer.prototype.Ib);
AdfDhtmlPivotTablePeer.prototype.Vi=function(a,b){if(!(this.ma||AdfPivotTableUtils.R()||this.Na==AdfDhtmlPivotTablePeer.Ea||this.qk||this.$m||this.Jm)){var c=AdfAgent.AGENT,d=AdfAgent.AGENT.getPlatform()==AdfAgent.IE_PLATFORM&&8<=c.getVersion();this.Ar=c.getMousePosition(b);var e=A_5e(this,b),f=A_1f(this,c,e),g;f&&(g=f.cell);var h=!1;f&&g&&"resize"==f.type&&!this.Od&&(h=!0,"startRow"==f.data||"endRow"==f.data?AdfDhtmlPivotTablePeer.Ka(g,c.getCursor("row-resize")):AdfDhtmlPivotTablePeer.Ka(g,c.getCursor("col-resize")));
if(e.ua&&e.ua.cell||e.wi){var l,m=!1;e.ua?(f=e.ua.edge,l=e.ua.layer,e=e.ua.Yd,e||h||(AdfDhtmlPivotTablePeer.Ka(g,this.ax[f]),h=!0)):(m=!0,f=e.wi.edge,l=e.wi.layer,e=e.wi.Yd);if(!this.pe)if(e)A_Ye(this);else if(e=A_mc(this,f,l),m&&A_kc(this)&&A_lc(this,f,l,e)&&(h=!0,AdfDhtmlPivotTablePeer.Ka(e,c.getCursor("move"))),null==this.nc||null!=e&&e.id!=this.nc.id)A_Ye(this),null!=e&&A_Hf(this,f,l,e)}else A_Ye(this);f=c.getEventTarget(b);c.getAttribute(f.parentNode.parentNode,"_cellImgName")?this.dn?f!=this.VH&&
(this.dn=!1,this.hidePopup(a),A_2f(this,a,f)):A_2f(this,a,f):this.dn&&(this.dn=!1,this.hidePopup(a));h||d||AdfDhtmlPivotTablePeer.Ka(g,"")}};AdfDhtmlPivotTablePeer.prototype.HandleDomMouseMove=AdfDhtmlPivotTablePeer.prototype.Vi;A_a("AdfDhtmlPivotTablePeer.prototype.HandleDomMouseMove",AdfDhtmlPivotTablePeer.prototype.Vi);
AdfDhtmlPivotTablePeer.prototype.kb=function(a){if(!this.ma&&this.Rb!=AdfDhtmlPivotTablePeer.jh&&this.Rb!=AdfDhtmlPivotTablePeer.ij){var b=a.getNativeEvent(),c=AdfAgent.AGENT;if(c.isLeftButton(b)){var d=c.getEventTarget(b);if(A_3e(this,d)&&!A_Se(this))this.enableUserSelect();else{this.disableUserSelect();var e=A_5e(this,b),c=A_1f(this,c,e);if("resize"!=c.type||AdfPivotTableUtils.R())e.ua&&e.ua.cell&&!e.ua.Yd?(this.getDomElement().focus(),A_2e(this)&&(d=A_6e(e.ua.cell),A_Lf(this,d,b)&&(this.$m=!0,
AdfPage.PAGE.startDrag(b,this.dy,this.ey)))):e.Gg?AdfPivotTableUtils.R()?(A_3f(this,e,b),this.getDomElement().focus(),A_Ye(this)):(this.getDomElement().focus(),c=!1,null!=d&&null!=this.T&&A_Zf(this,d)==this.T&&(c=!0),c||A_3f(this,e,b)):AdfPivotTableUtils.R()&&A_Ye(this);else{A_Ye(this);if(d="startRow"==c.data||"endRow"==c.data){var f=c.cell,e=A_4f(this,f.parentNode),g=AdfAgent.AGENT.getIntAttribute(e,"_startSlice"),h=c.Ng?1:0,g=g<this.b.u[h]?0:1,l=this.b.$[h][g],m=A_5f(l,e),n=AdfAgent.AGENT,p=f.parentNode.rowIndex;
"startRow"==c.data?(p--,0==p&&(AdfAssert.assert(AdfPivotTableUtils.Qa||c.Ng&&0<m),m--,e=l[m],p=e.childNodes[0].rows.length-1)):p+=f.rowSpan-1;this.Od=f=e.childNodes[0].rows[p].cells[0];this.sk=p;this.Lr=m;this.qg=!c.Ng;this.tk=g;m=this.b.Ph;m.className=n.getAttribute(m,"_rowClass");p=m.style;p.display="block";p.zIndex=20;p.left="0px";p.height="0px";p.width=this.b.Tb[1]._width+this.b.tb[1][1]._width+(0<this.b.u[0]?this.b.tb[1][0]._width:0)+"px";f=f.offsetTop+f.offsetHeight;this.Kr=f=c.Ng?f+(this.b.Fc[h][g]._top+
e._top):f-this.b.nb[1].scrollTop;p.top=f+"px";AdfDhtmlPivotTablePeer.Ka(m,n.getCursor("row-resize"))}else{f=c.cell;n=A_4f(this,f.parentNode);h=AdfAgent.AGENT.getIntAttribute(n,"_startSlice");e=c.Ng?1:0;p=h<this.b.u[e]?0:1;m=this.b.$[e][p];l=A_5f(m,n);h=AdfAgent.AGENT;g=A_6f(h,f);"startCol"==c.data?(g--,0==g&&(AdfAssert.assert(AdfPivotTableUtils.Qa||!c.Ng&&0<l),l--,n=m[l],g=n.childNodes[0].rows[0].cells.length-1)):g+=f.colSpan-1;this.Od=m=n.childNodes[0].rows[0].cells[g];this.sk=g;this.Lr=l;this.qg=
c.Ng;this.tk=p;c=this.b.Ph;c.className=h.getAttribute(c,"_colClass");f=c.style;f.display="block";f.zIndex=20;f.top="0px";f.width="0px";f.height=this.b.nb[1]._height+this.b.tb[1][1]._height+(0<this.b.u[1]?this.b.tb[0][1]._height:0)+"px";var q,l=this.b.Fc[e][p],p=l._left,n=e?-l.scrollLeft:n._left,l=m.offsetLeft,m=this.b.U?0:m.offsetWidth;q=e||this.b.U?-1:0;e&&g==this.b.Lb&&(q=this.b.U?-2:0);this.Kr=e=p+n+l+m+q;f.left=e+"px";AdfDhtmlPivotTablePeer.Ka(c,h.getCursor("col-resize"))}this.Ae=this.pg=0;this.qk=
!0;d?AdfPage.PAGE.startDrag(b,this.MI,this.NI):AdfPage.PAGE.startDrag(b,this.nG,this.oG)}b=A_Xe(this,a.getNativeEventTarget());null!=b&&null!=b[0]&&(b=b[0],d=(new Date).getTime(),c=d-this.Em,null==this.Em||3E3<c||this.Dm!=b?(this.Em=d,this.Dm=b):null!=this.Em&&0<c&&3E3>c&&this.Dm==b&&(b=A_Ue(b),null!=this.Dm&&null!=this.F&&null!=b&&b.row==this.F.row&&b.column==this.F.column&&this.Zg(a)))}}}};A_a("AdfDhtmlPivotTablePeer.prototype.HandleComponentMouseDown",AdfDhtmlPivotTablePeer.prototype.kb);
function A_5e(a,b){var c={},d=AdfAgent.AGENT,e=d.getMousePosition(b);if(a.b.U){var f=d.getWindowWidth();normalizedMouseX=f-e.x}else normalizedMouseX=e.x;c.ia=A_pc(a,d,e);c.target=d.getEventTarget(b);if(c.ia==AdfPivotTableUtils.o||c.ia==AdfPivotTableUtils.s){var g={};c.ua=g;c.ua.Yd=c.ia==AdfPivotTableUtils.o&&0==a.b.Qb||c.ia==AdfPivotTableUtils.s&&0==a.b.Lb;var h=A_pf(a,c.target,"TH");if(h){g.cell=h;var l=d.getElementPosition(h);g.cellWidth=h.offsetWidth;g.cellHeight=h.offsetHeight;a.b.U&&(l.x=f-l.x-
g.cellWidth);g.cellMouseX=normalizedMouseX-l.x;g.cellMouseY=e.y-l.y;g.edge=c.ia;g.layer=c.ia==AdfPivotTableUtils.s?A_6f(d,h)-1:A_pf(a,h,"TR").rowIndex-1}c.wi=c.ia==AdfPivotTableUtils.s?A_qc(a,d,e.x,f):A_rc(a,d,e.y)}else if(c.ia==AdfPivotTableUtils.bd)c.wi=A_qc(a,d,e.x,f);else if(c.ia==AdfPivotTableUtils.wd)c.wi=A_rc(a,d,e.y);else if(h=A_Zf(a,c.target))c.Gg={},c.Gg.cell=h;return c}
function A_pc(a,b,c){var d=a.b.U;if(void 0!=a.b.u){var e=a.b.nb[0<a.b.u[0]?0:1],f=b.getElementPosition(e),g=d?c.x-f.x<=e._width:0<c.x-f.x;if(g&&c.y-f.y<=e._height)return a.ef=AdfPivotTableUtils.o;var h=a.b.Tb[0<a.b.u[1]?0:1];b=b.getElementPosition(h);if((g=d?0<c.x-b.x:c.x-b.x<=h._width)&&0<c.y-b.y)return a.ef=AdfPivotTableUtils.s;var l;switch(a.ef){case AdfPivotTableUtils.s:case AdfPivotTableUtils.bd:l=AdfPivotTableUtils.bd;break;case AdfPivotTableUtils.o:case AdfPivotTableUtils.wd:l=AdfPivotTableUtils.wd;
break;default:l=null}var m=a.Fr?a.Fr:0,g=l==AdfPivotTableUtils.wd&&40<m?m:40;l=l==AdfPivotTableUtils.bd&&40<m?m:40;var n=m=!1;(g=d?c.x-f.x<=e._width+g:c.x-f.x>-g)&&c.y-f.y<=e._height&&(n=!0);(g=d?0<c.x-b.x:c.x-b.x<=h._width)&&c.y-b.y>-l&&(m=!0);return n&&m?a.ef==AdfPivotTableUtils.s||a.ef==AdfPivotTableUtils.bd?a.ef=AdfPivotTableUtils.bd:a.ef=AdfPivotTableUtils.wd:n?a.ef=AdfPivotTableUtils.wd:m?a.ef=AdfPivotTableUtils.bd:null}}
function A_2f(a,b,c){a.dn=!0;a.VH=c;var d=c.parentNode.parentNode.firstChild.firstChild.cloneNode(!0),e={};e[A_d.TYPE]=A_d.VD;e[A_d.kA]=c;e[AdfRichPopup.HINT_ALIGN]=AdfRichPopup.ALIGN_BEFORE_START;e[A_d.Hl]=A_d.qA;a.showPopup(b,d,e)}
AdfDhtmlPivotTablePeer.prototype.Ts=function(a,b){var c=AdfAgent.AGENT,d=!1;if(b){var e;e="A"==b.tagName?b:b.parentNode;var f=c.getAttribute(e.parentNode,"_cellImgName");if(f){if(this.Na==AdfDhtmlPivotTablePeer.Ea)return;this.ma?(d=c.getIntAttribute(e.parentNode,"_row"),e=c.getIntAttribute(e.parentNode,"_col")):(e=A_uf(this,e.parentNode.parentNode),d=e.row,e=e.col);e=new A_7f(a,d,e,f);e.setPartial(!0);a.queueEvent(e);d=!0}else if(c.getAttribute(e.parentNode,"_dr"))e=A_pf(this,e.parentNode,"TH"),A_Bf(this,
a,e),d=!0;else if(c.getAttribute(e.parentNode,"_adaPivot")){var f=c.getIntAttribute(e.parentNode,"_fromEdge"),d=c.getIntAttribute(e.parentNode,"_fromLayer"),g=c.getIntAttribute(e.parentNode,"_toEdge"),h=c.getIntAttribute(e.parentNode,"_toLayer");e=c.getAttribute(e.parentNode,"_flags");A_wc(this,f,d,g,h,e);d=!0}else c.getAttribute(e.parentNode,"_adaExtPivot")&&(c=this.Wd(),null!=c&&(f={},f.fromLayerName=AdfAgent.AGENT.getAttribute(e.parentNode,"_fromLayerName"),c.getPeer().wp(a,f),d=!0))}return d};
function A_Bf(a,b,c){a.Na!=AdfDhtmlPivotTablePeer.Ea&&(c=A_qf(c),c=new A_8f(b,c.edge,c.startLayer,c.startSlice,"0"),c.setPartial(!0),A_df(a.getDomElement()),b.queueEvent(c),c.isCanceled()?A_gf(a,A_Te(a)):(A_hf(a,AdfDhtmlPivotTablePeer.Ea),a.Qd=null,a.ma||a.Ec(a.ld,!0)))}
AdfDhtmlPivotTablePeer.prototype.mt=function(a,b,c,d){b=""+b;var e=this.getComponent();a=new A_9f(e,a,b,c,d);a.setPartial(!0);A_df(this.getDomElement());e.queueEvent(a);a.isCanceled()?A_gf(this,A_Te(this)):(A_hf(this,AdfDhtmlPivotTablePeer.Ea),this.Qd=null,this.ma||this.Ec(this.ld,!0))};AdfDhtmlPivotTablePeer.prototype.queueSortRequest=AdfDhtmlPivotTablePeer.prototype.mt;
function A_0f(a,b,c){var d=A_qf(b);d&&(a=AdfRichUIPeer.CreateSubId(a.getComponent().getClientId(),d.startSlice+"::"+AdfDhtmlPivotTablePeer.nv),d=null,d=void 0==b.getAttribute("_vt")?AdfPivotTableUtils.R()?AdfDhtmlPivotTablePeer.W(b.childNodes[0],a):AdfDhtmlPivotTablePeer.W(b,a):AdfDhtmlPivotTablePeer.W(b.childNodes[0].rows[0].cells[0],a),null!=d&&null==d.getAttribute(AdfDhtmlPivotTablePeer.kv)&&(d.childNodes[0].style.display=c?"":"none"))}
AdfDhtmlPivotTablePeer.prototype.getComponent=function(){return this.Ur?this.Ur:AdfDhtmlPivotTablePeer.superclass.getComponent.call(this)};
AdfDhtmlPivotTablePeer.prototype.InitDomElement=function(a,b){try{this.Ur=a;this.Hq=0;AdfDhtmlPivotTablePeer.superclass.InitDomElement.call(this,a,b);this.Sa=!1;var c=AdfAgent.AGENT,d=c.getAttribute(b,"_ada"),e=c.getAttribute(b,"_immediate");this.Bq=void 0!=c.getAttribute(b,"_adsEnabled");this.ld=c.getAttribute(b,"_fetchText");this.rw=c.getAttribute(b,"_cellSelected");this.ay=c.getAttribute(b,"_rowSelected");this.xw=c.getAttribute(b,"_colSelected");this.wr=c.getAttribute(b,"_multiple");this.Mr=c.getAttribute(b,
"_rowInfo");this.Iq=c.getAttribute(b,"_colInfo");this.FH=c.getAttribute(b,"_heightText");this.CJ=c.getAttribute(b,"_widthText");this.hI=c.getAttribute(b,"_moveBefore");this.iJ=c.getAttribute(b,"_swapWith");this.gI=c.getAttribute(b,"_moveAfter");this.jI=c.getAttribute(b,"_moveToRows");this.iI=c.getAttribute(b,"_moveToCols");this.Rb=AdfDhtmlPivotTablePeer.dm;this.ma=void 0!=d;this.kn=!1;this.QH=void 0!=e;this.yg=!1;AdfPage.PAGE.isStreamingDisabled&&(this.yg=AdfPage.PAGE.isStreamingDisabled());this.Na=
"initBlock";this.qk=!1;this.zk=this.xk=this.nc=null;a.setProperty(AdfRichPivotTable.Xf,void 0);this.ug=this.On=!1;this.Ah=this.Fq=-1;var f=a.getProperty("modelName");null!=f&&AdfPage.PAGE.setPageProperty("ROW_AND_COLUMN_EDGE:"+f,a.getClientId());this.pe="true"==b.getAttribute("_attachment");this.Oa=AdfDhtmlPivotTablePeer.gM(b);if(this.ma){for(var g=b.childNodes[0].childNodes,h=0;h<g.length;++h){var l=g[h];if(l.id&&(-1!=l.id.indexOf("Inner")||l.id.lastIndexOf("::et")==l.id.length-4)){var m=g[h];break}}this.b=
{};var n=c.getIntAttribute(m,"_colExtent"),p=c.getIntAttribute(m,"_rowExtent");this.aw=[n,p];var q=c.getIntAttribute(m,"_colBlockSize"),u=c.getIntAttribute(m,"_rowBlockSize");this.yq=[q,u];var v=c.getIntAttribute(m,"_startRow"),x=c.getIntAttribute(m,"_startCol");a.setProperty(AdfRichPivotTable.tm,v);a.setProperty(AdfRichPivotTable.sm,x);this.xh=[];this.Ye=[];this.dg=[];this.cg=[];var w=c.getIntAttribute(m,"_splitCol"),y=c.getIntAttribute(m,"_splitRow");this.b.u=[w,y];a.setProperty(AdfRichPivotTable.Ov,
w);a.setProperty(AdfRichPivotTable.Pv,y);if(-1!=w){var r=c.getIntAttribute(m,"_secondStartCol");a.setProperty(AdfRichPivotTable.oq,r);this.Ye[0]=0;this.xh[0]=[x,r];this.dg[0]=[0,r];this.cg[0]=[r,n]}else this.Ye[0]=1,this.xh[0]=[void 0,x],this.dg[0]=[void 0,0],this.cg[0]=[void 0,n];if(-1!=y){var z=c.getIntAttribute(m,"_secondStartRow");a.setProperty(AdfRichPivotTable.pq,z);this.Ye[1]=0;this.xh[1]=[v,z];this.dg[1]=[0,z];this.cg[1]=[z,p]}else this.Ye[1]=1,this.xh[1]=[void 0,v],this.dg[1]=[void 0,0],
this.cg[1]=[void 0,p];var C=a.getProperty(AdfRichPivotTable.Uf);void 0==C||"foo"==C?a.setProperty(AdfRichPivotTable.Uf,"bar",!1,AdfUIComponent.PROPAGATE_ALWAYS):a.setProperty(AdfRichPivotTable.Uf,"foo",!1,AdfUIComponent.PROPAGATE_ALWAYS);for(h=0;2>h;++h)for(var H=this.Ye[h];2>H;++H){var D=A_$f(a,h,H,AdfDhtmlPivotTablePeer.Eu);D&&AdfRichUIPeer.addEventHandlerToDomInstance(AdfDhtmlPivotTablePeer,D,"change");for(d=0;2>d;++d){var F=A_$f(a,h,H,d?AdfDhtmlPivotTablePeer.UE:AdfDhtmlPivotTablePeer.bF);if(F){var A=
A_ag(this,this.vH,[h,H,d]);c.addBubbleEventListener(F,"click",A)}}}AdfPivotTableUtils.O=-1;AdfPivotTableUtils.o=0;AdfPivotTableUtils.s=1;this.nH=c.getBooleanAttribute(m,"_graphSR");A_bg(this,m,g)}else{this.b=new AdfPivotTableUtils(a,this,b);for(var h=0;2>h;++h)for(g=0;2>g;++g)0<h+g&&AdfRichUIPeer.addEventHandlerToDomInstance(AdfDhtmlPivotTablePeer,this.b.se[h][g],"scroll"),this.b.Fc[h][g].onscroll=A_ag(this,this.ML,[h,g]),this.b.tb[h][g].onscroll=A_ag(this,this.IL,[h,g]);AdfRichUIPeer.addEventHandlerToDomInstance(AdfDhtmlPivotTablePeer,
b,"mousemove");AdfPivotTableUtils.R()||this.wt();this.nG=this.createCallback(this.qH);this.oG=this.createCallback(this.rH);this.MI=this.createCallback(this.wH);this.NI=this.createCallback(this.xH);this.dy=this.createCallback(this.NL);this.ey=this.createCallback(this.OL);"true"==c.getAttribute(b,"_cteAll")&&AdfPage.PAGE.addBusyStateListener(this,this.pH);this.pe||(a.setDragSource(new A_hc),null==a.getDropTarget()&&a.setDropTarget(new A_D));this.ax=[A_cg(b,0),A_cg(b,1)]}}finally{this.Ur=null}};
AdfDhtmlPivotTablePeer.prototype.InitDomElement=AdfDhtmlPivotTablePeer.prototype.InitDomElement;AdfDhtmlPivotTablePeer.prototype.needsResizeNotify=function(){return this.ma?!1:!0};AdfDhtmlPivotTablePeer.prototype.needsResizeNotify=AdfDhtmlPivotTablePeer.prototype.needsResizeNotify;
AdfDhtmlPivotTablePeer.prototype.ResizeNotify=function(a,b,c,d){if(this.SG)this.b.kl()||(this.ve=d,this.xe=c),this.Jb(this.getComponent(),null),this.b.Sg(c,d),A_dg(this.b),A_eg(this.b,!0),this.Oa&&A_fg(this);else if(this.b.Ja.style.width=this.getDomElement().offsetWidth-1+"px",this.b.Ja.style.height=this.getDomElement().offsetHeight-1+"px",this.ve=d,this.xe=c,this.SG=!0,this.QH)c=AdfDhtmlPivotTablePeer.Fh(this.getDomElement()),this.DomReplaceNotify(c);else{if(this.yg||!AdfPage.PAGE.isStreamingRequestPending(this.getComponent().getClientId()))a=
[],b={},b.Ao=c,b.eo=d,a[0]=b,A_gg(this,"initBlock",AdfPivotTableUtils.SB,[],a,void 0,void 0,void 0);this.Ec(this.ld,!0)}};AdfDhtmlPivotTablePeer.prototype.ResizeNotify=AdfDhtmlPivotTablePeer.prototype.ResizeNotify;
AdfDhtmlPivotTablePeer.prototype.DomReplaceNotify=function(a){try{this.b.Ft(1,2);this.b.La(1,"wrote to logger");this.Hq++;if(this.ma)return;this.te=[];var b=this.getComponent(),c=b.getProperty(AdfRichPivotTable.Uf);void 0==c||"foo"==c?b.setProperty(AdfRichPivotTable.Uf,"bar",!1,AdfUIComponent.PROPAGATE_ALWAYS):b.setProperty(AdfRichPivotTable.Uf,"foo",!1,AdfUIComponent.PROPAGATE_ALWAYS);var d=AdfAgent.AGENT.getAttribute(a,"_cte");this.b.La(1,"before CTE block");if(d){var e=A_Pe(this),f,g=void 0,h=
AdfAgent.AGENT.getIntAttribute(a,"_orh");if("true"==d){e?(f=h,g=0):(f=a.parentNode.offsetHeight,g=f-h);if(null!=this.tn){var l=A_Ue(this.tn),m=A_uf(this,a);l.column==m.col&&l.row==m.row&&(g=0)}this.fk=h;this.Zj=A_uf(this,a).row;this.T=a;this.sr=f}else"false"==d&&(e?(f=h?h:this.fk,g=0):(f=a.parentNode.offsetHeight,h&&(g=h-f)),A_uf(this,a).row==this.Zj&&(g=0,this.fk=h));g?A_tf(this,a,g):AdfAgent.AGENT.getPlatform()==AdfAgent.IE_PLATFORM&&A_hg(a.parentNode,f);return}this.b.La(1,"CTE block");var n=!1;
if(a.id==this.getDomElement().id+"::RequestDone"){A_We(this);var p=AdfAgent.AGENT.getBooleanAttribute(a,"_vError",!1);if(p){var q;q=AdfAgent.AGENT.getBooleanAttribute(a,"_CTEAction",!1)?this.tn:A_Te(this);this.getComponent().setProperty(AdfRichPivotTable.gd,q,!1,AdfUIComponent.PROPAGATE_ALWAYS);A_ig(this,q);A_hf(this,null);this.Qd=null;this.Yr=this.cf=!1;this.Hg=null}A_jg(this);this.Na==AdfDhtmlPivotTablePeer.Ea&&A_hf(this,null);this.On=!1;this._hideStatus();this.Tx||(this.Tx=this.createCallback(this.pk));
AdfAgent.AGENT.getDomWindow().setTimeout(this.Tx,10);this.rx&&this.xg&&A_eg(this.b,!0);this.xg=this.rx=null;null!=this.ek&&(p||(this.getDomElement().focus(),A_Kf(this,this.ek)),this.ek=null);null!=this.Hg&&(this.IG=this.createCallback(this._displayContextMenuAfterEdit),AdfAgent.AGENT.getDomWindow().setTimeout(this.IG,300));null!=this.qs&&(null!=this.T&&0==A_nf(this,this.T).length&&A_Pf(this,this.qs),this.qs=null);n=!0}this.b.La(1,"RequestDone block");var u=AdfDhtmlPivotTablePeer.Fh(this.getDomElement());
if(a==u){var v=AdfAgent.AGENT.getAttribute(u,"_renType"),x=A_kg(u,this.b.pc,AdfPivotTableUtils.O);if(this.Sa){var w={};A_lg(this,w);w.type="DRN";w.time=(new Date).getTime()-this.ph;w.scrollLeft=this.b.Ia(1,1).scrollLeft;w.scrollTop=this.b.Ia(1,1).scrollTop;w.tU=v;w.SS=x;w.wU=A_kg(u,this.b.pc,AdfPivotTableUtils.s);w.PS=A_kg(u,this.b.pc,AdfPivotTableUtils.o)}A_mg(this.Qd,x,v)&&(this.Qd=null);if(this.Na==AdfDhtmlPivotTablePeer.Ea&&v!=AdfDhtmlPivotTablePeer.Ea){this.Sa&&(w.FS=!0);"initialFillViewport"==
v&&this.xg&&(this.rx=!0);return}if("longScroll"==v||"shortScroll"==v||"initialFillViewport"==v)this.Sa&&(w.NS=!0),this.Jb(0,null,!0);if(this.Na!=AdfDhtmlPivotTablePeer.Ea&&!A_mg(this.Na,x,v)){this.Sa&&(w.ES=(new Date).getTime()-this.ph);return}if(this.Bq){var y=AdfAgent.AGENT.getIntAttribute(x[0],"_adsCounter");if(y<this.Fq||y>this.Ah&&("shortScroll"==v||"initialFillViewport"==v)){AdfPage.PAGE.addPartialTargets(this.getComponent());return}}this._hideStatus();AdfPivotTableUtils.R()&&!this.Oa&&(this.b.xn=
!1);b.setProperty(AdfRichPivotTable.Xf,void 0);var r;a:{for(var z=u.childNodes,C=0;C<z.length;C++){var H=z[C];if(H.id&&-1!=H.id.indexOf(AdfDhtmlPivotTablePeer.gv)){r=H.getAttribute("_selection");break a}}AdfLogger.LOGGER.severe("Selection String not found.  This is unexpected.");r=null}this.b.La(1,"in block-fetch block, just before switch");switch(v){case "initBlock":var D=AdfAgent.AGENT.getAttribute(u,"_summary"),F=this.b.hJ,A=AdfAgent.AGENT.getAttribute(F,"id");AdfAgent.AGENT.setTextContent(F,D);
AdfAgent.AGENT.setAttribute(this.b.hc,"aria-describedby",A);case AdfDhtmlPivotTablePeer.Ea:var B=this.b,I=AdfAgent.AGENT.getIntAttribute(u,"_startRow"),G=AdfAgent.AGENT.getIntAttribute(u,"_startCol"),t=AdfAgent.AGENT.getIntAttribute(u,"_startRowPixel"),E=AdfAgent.AGENT.getIntAttribute(u,"_startColPixel"),L=AdfAgent.AGENT.getIntAttribute(u,"_rowHeaderStartLayer"),K=AdfAgent.AGENT.getIntAttribute(u,"_colHeaderStartLayer"),J=AdfAgent.AGENT.getIntAttribute(u,"_rowHeaderStartPixel"),M=AdfAgent.AGENT.getIntAttribute(u,
"_colHeaderStartPixel");b.setProperty(AdfRichPivotTable.tm,I);b.setProperty(AdfRichPivotTable.sm,G);b.setProperty(AdfRichPivotTable.Sv,t);b.setProperty(AdfRichPivotTable.Rv,E);b.setProperty(AdfRichPivotTable.uj,L);b.setProperty(AdfRichPivotTable.sj,K);b.setProperty(AdfRichPivotTable.vj,J);b.setProperty(AdfRichPivotTable.tj,M);var S=AdfAgent.AGENT.getIntAttribute(u,"_splitCol"),O=AdfAgent.AGENT.getIntAttribute(u,"_splitRow");B.u=[S,O];var P=B.u;b.setProperty(AdfRichPivotTable.Ov,S);b.setProperty(AdfRichPivotTable.Pv,
O);-1==S&&-1==O&&(B.Bk[0]=.5,B.Bk[1]=.5);if(-1!=S){var Ka=AdfAgent.AGENT.getIntAttribute(u,"_secondStartCol"),ia=AdfAgent.AGENT.getIntAttribute(u,"_secondStartColPixel");b.setProperty(AdfRichPivotTable.oq,Ka);b.setProperty(AdfRichPivotTable.Mv,ia)}if(-1!=O){var sa=AdfAgent.AGENT.getIntAttribute(u,"_secondStartRow"),Jb=AdfAgent.AGENT.getIntAttribute(u,"_secondStartRowPixel");b.setProperty(AdfRichPivotTable.pq,sa);b.setProperty(AdfRichPivotTable.Nv,Jb)}var Ab=AdfAgent.AGENT.getIntAttribute(u,"_cExtent"),
kb=AdfAgent.AGENT.getIntAttribute(u,"_rExtent");B.Rm=[Ab,kb];var lb=B.Rm,mb=AdfAgent.AGENT.getIntAttribute(u,"_cLayerCount"),nb=AdfAgent.AGENT.getIntAttribute(u,"_rLayerCount");B.YH=[mb,nb];var Bb=AdfAgent.AGENT.getIntAttribute(u,"_cBlockSize"),cb=AdfAgent.AGENT.getIntAttribute(u,"_rBlockSize");B.ZF=[Bb,cb];B.j=[];B.fg=[[],[]];B.qe=[[],[]];B.Hx=[[],[]];for(var La=B.j,ob=B.fg,db=B.qe,pb=B.Hx,X=0;2>X;++X){-1==P[X]?La[X]=1:(La[X]=0,ob[X][1]=P[X],db[X][0]=P[X]);ob[X][La[X]]=0;db[X][1]=lb[X];for(var Sa=
La[X];2>Sa;++Sa)pb[X][Sa]=db[X][Sa]-ob[X][Sa]}B.EH=[Number(AdfAgent.AGENT.getAttribute(u,"_sizeAlloc0")),Number(AdfAgent.AGENT.getAttribute(u,"_sizeAlloc1"))];B.DH=[AdfAgent.AGENT.getAttribute(u,"_sizeUnit0"),AdfAgent.AGENT.getAttribute(u,"_sizeUnit1")];B.mc=Ab;B.Be=kb;B.Qb=mb;B.Lb=nb;B.ww=Bb;B.Zx=cb;this.b.La(1,"Init case: just called initInfo");this.kn=AdfAgent.AGENT.getBooleanAttribute(u,"_sortEnabled");this.nc=null;var Ta=A_ng(u,this.b.pc+"::"+AdfDhtmlPivotTablePeer.YB)[0];this.b.Mw=Ta;this.Iq=
TrFastMessageFormatUtils.format(this.Iq,"{0}",this.b.mc);this.Mr=TrFastMessageFormatUtils.format(this.Mr,"{0}",this.b.Be);this.b.La(1,"Init case: just did some misc init");for(var ta=this.b,Z=ta.u,Cb=ta.Fc,eb=ta.tb,fb=ta.se,da=0;2>da;++da){var Ca=-1==Z[da]?"none":"block";Cb[da][0].style.display=Ca;(da?eb[0][1]:eb[1][0]).style.display=Ca;AdfPivotTableUtils.R()||((da?fb[0][1]:fb[1][0]).style.display=Ca)}eb[0][0].style.display=-1!=Z[0]&&-1!=Z[1]?"block":"none";this.b.La(1,"Init case: setVisibilityOfPanes");
A_og(this.b);this.b.La(1,"Init case: removeAllBlocks");for(var aa=this.b,gb=A_ng(aa.bc,aa.pc+"::ph"),Ua=gb.length,qb=0;qb<Ua;qb++)aa.bc.removeChild(gb[qb]);aa.za&&aa.bc.removeChild(aa.za);for(var ua=this.b,Db=A_ng(u,ua.pc+"::ph"),Eb=Db.length,hb=0;hb<Eb;hb++)ua.bc.appendChild(Db[hb]);ua.za=AdfDhtmlPivotTablePeer.W(u,ua.pc+"::LayerLabelBlock");ua.za&&A_pg(ua,ua.bc,ua.za);this.b.La(1,"Init case: pivothandles");Ta&&this.b.tb[1][1].appendChild(Ta);A_qg(this.b);this.b.La(1,"Init case: addBlocksToBuffer");
var Va=A_rg(this.b,!0);this.b.La(1,"Init case: sizeInitialHTMLBlocks");A_sg(this)&&this.b.nr&&A_tg(this.b);this.b.Sg(this.xe,this.ve);this.b.La(1,"Init case: sizePivotTable");A_ug(this.b,Va);this.b.La(1,"Init case: positionInitialBlocks");A_hf(this,null,y);A_vg(this.b);A_eg(this.b,!0);this.b.La(1,"Init case: fetchNearbyBlocks");var ja=r,ja=ja.substring(1,ja.length-1),ja=ja.replace(/'/g,'"'),T=JSON.parse(ja),Wa=A_if(this,T);switch(Wa){case AdfPivotTableUtils.O:var ea=A_lf(this,T),va=ea.startIndex,
na=A_wg(ea),ka=this.qc,Y=null==ka?null:ka.startIndex,Xa=this.tg,Ya=null!=Y&&A_yf(Y)==AdfPivotTableUtils.O&&null!=Xa;if(Ya)var Za=va.row,oa=na.row,pa=va.column,Ma=na.column,$a=Y.column==pa&&Xa.column==Ma||Y.column==Ma&&Xa.column==pa,Da=!(Y.row==Za&&Xa.row==oa||Y.row==oa&&Xa.row==Za)||!$a;else Da=!0;Da&&(A_xg(this,va,null,ea.startKey),this.tg=na);break;case AdfPivotTableUtils.s:case AdfPivotTableUtils.o:ea=A_lf(this,T);va=ea.startIndex;na=A_wg(ea);ka=this.qc;Y=null==ka?null:ka.startIndex;if(Ya=null!=
Y&&A_yf(Y)==Wa)var Kb=Y.layer==va.layer,Fb=this.Qh?Y.slice==va.slice||Y.slice==na.slice:A_yg(this,Y)&&!this.isSelected(Y,T),Da=!Kb||!Fb;else Da=!0;Da&&(A_xg(this,va,Wa,ea.startKey),this.Qh=!0);break;case null:break;default:AdfAssert.assert(AdfPivotTableUtils.Qa,"unexpected selectedEdge in initializeAnchorAndFrontierCells")}A_zg(this,T);var wa=!1;A_Ag(this.getDomElement())?wa=A_Ve(this,T):this.Vq=!0;wa||A_Bg(this,T);this.b.La(1,"Init case: initializeSelection");var Q=AdfAgent.AGENT.getAttribute(u,
"_ack");"null"!=Q?(b.setProperty(AdfRichPivotTable.gd,Q,!1,AdfUIComponent.PROPAGATE_ALWAYS),b.setProperty("activeCellKey",Q,!1,AdfUIComponent.PROPAGATE_ALWAYS)):(b.setProperty(AdfRichPivotTable.gd,null,!1,AdfUIComponent.PROPAGATE_ALWAYS),b.setProperty("activeCellKey",null,!1,AdfUIComponent.PROPAGATE_ALWAYS));this.b.La(1,"Init case: ACK");var V=this.getComponent(),Ea=u.getAttribute("_initACK");Ea?(V.setProperty(AdfRichPivotTable.gd,Ea,!1,AdfUIComponent.PROPAGATE_NEVER),V.setProperty("activeCellKey",
Ea,!1,AdfUIComponent.PROPAGATE_NEVER),this.ym=!0):u.getAttribute("_afrACKChange")&&(this.ym=!0);break;case "longScroll":if("true"==this.getDomElement().getAttribute("_rngChgLstnr"))var Na=this.b.cloneArray(this.b.V);A_og(this.b);A_qg(this.b);if(null!=Na){var xa=A_Cg(this,Na,this.b.V);xa.Gq=!1}Va=A_rg(this.b,!1);A_sg(this)&&this.b.nr&&A_tg(this.b);this.b.Sg(this.xe,this.ve);A_ug(this.b,Va);var la=r,la=la.substring(1,la.length-1),la=la.replace(/'/g,'"'),qa=JSON.parse(la);A_zg(this,qa);A_Bg(this,qa);
A_hf(this,null,y);A_vg(this.b);null!=xa&&b.queueEvent(xa);A_Dg(this);break;case "shortScroll":case "initialFillViewport":for(var ra=[[],[]],ha=1;0<=ha;--ha)for(var ya=this.b.j[ha];2>ya;++ya)ra[ha][ya]=this.b.ha(ha,ya)-A_Eg(this.b,ha,ya);"true"==this.getDomElement().getAttribute("_rngChgLstnr")&&(Na=this.b.cloneArray(this.b.V));var U=this.b,Fa=[[],[]],Ga=!1,rb=!1,N=0;a:for(;2>N;++N)for(var R=U.j[N];2>R;++R){var ib=U.$[N][R].length;if(0==ib){Ga=!0;break a}var fa=A_Fg(U,N,R,ra?ra[N][R]:0);if(!A_Gg(U,
N,R,fa)){rb=!0;break a}fa.start=Math.max(fa.start,0);fa.end=Math.min(fa.end,ib-1);Fa[N][R]=fa}if(Ga)AdfLogger.LOGGER.severe("trimBuffer found that the buffer was already empty.  This is unexpected."),A_og(U);else if(rb)AdfLogger.LOGGER.severe("trimBuffer is removing all blocks due to no overlap.  This is unexpected."),A_og(U);else{for(N=1;0<=N;--N)for(R=U.j[N];2>R;++R){var fa=Fa[N][R],za=fa.end+1,ib=U.$[N][R].length,Ha=ib-za;A_Hg(U,N,R,za,Ha);za=0;Ha=fa.start;A_Hg(U,N,R,za,Ha)}for(N=1;0<=N;--N)for(R=
U.j[N];2>R;++R){var ab=U.$[N][R],Wb=ab.length-1;ab[Wb]._placeholder&&(za=Wb,Ha=1,A_Hg(U,N,R,za,Ha))}for(N=1;0<=N;--N)for(R=U.j[N];2>R;++R){var ab=U.$[N][R],Xb=ab[0];Xb&&Xb._placeholder&&(za=0,Ha=1,A_Hg(U,N,R,za,Ha))}for(N=0;2>N;++N)for(R=U.j[N];2>R;++R)0==U.$[N][R].length&&(AdfLogger.LOGGER.severe("trimBuffer found overlap betweeen the buffer and the viewport, but that overlap was exclusively placeholder rows/columns, so it removed all blocks.  This is unexpected."),A_og(U))}null!=Na&&(xa=A_Cg(this,
Na,this.b.V));A_qg(this.b);if(this.Bq){var pc=y,sb=this.zm;if(sb){for(var tb=0;tb<sb.length&&sb[tb]<=pc;){tb++;var qc=sb[tb++];A_Ig(this,qc,!1)}sb.splice(0,tb)}}for(var ba=this.b,rc=AdfAgent.AGENT.getPlatform()==AdfAgent.IE_PLATFORM,Yb=[],Oa=ba.j[0];2>Oa;++Oa)for(var Zb=ba.wa[Oa],Lb=Zb.length,Pa=0;Pa<Lb;Pa++){var ub=Zb[Pa];if(!ub._placeholder){for(var bb=[],Qa=ba.j[1];2>Qa;++Qa)for(var vb=ba.V[Qa][Oa],sc=vb.length,Aa=0;Aa<sc;Aa++){var Ra=vb[Aa][Pa];Ra&&Ra._new&&bb.push(Ra)}if(ub._new)A_Jg(ba,ub,bb);
else for(var $b=bb,tc=ub.rd,uc=$b.length,Mb=0;Mb<uc;++Mb)$b[Mb].rd=tc;Yb.push(ub)}}for(Qa=ba.j[1];2>Qa;++Qa)for(var ac=ba.Pa[Qa],Lb=ac.length,Aa=0;Aa<Lb;Aa++){for(var bc=ac[Aa],bb=[],cc=[],Oa=ba.j[0];2>Oa;++Oa)for(var vb=ba.V[Qa][Oa],vc=vb[Aa].length,Pa=0;Pa<vc;Pa++)(Ra=vb[Aa][Pa])&&Ra._new?(rc&&ba.U&&(Ra.childNodes[0].style.position="absolute"),bb.push(Ra)):cc.push(Ra);(bc._new||0<bb.length)&&A_Kg(ba,bc,bb,cc,Aa)}A_Lg(ba,Yb,!1);A_Mg(ba,!0);var Nb,wb,dc;if(AdfAgent.AGENT.getPlatform()!=AdfAgent.IE_PLATFORM||
8<=AdfAgent.AGENT.getVersion())for(var Ob=ba.j[1];2>Ob;++Ob)for(Nb=ba.Pa[Ob],dc=Nb.length,i=0;i<dc;i++)wb=Nb[i],!wb._placeholder&&wb._new&&A_2(ba,wb,wb.childNodes[0].offsetWidth,AdfPivotTableUtils.o);else A_Ng(ba,!0);A_sg(this)&&A_tg(this.b);this.b.Sg(this.xe,this.ve);var ca=this.b,W,ga,Ia,xb,Pb=[[],[]];for(W=1;0<=W;--W){var wc=ca.$[W],ec=ca.Bh[W],xc=ca.Sh[W],yc=ca.og[W];for(ga=ca.j[W];2>ga;++ga){var Qb=wc[ga],Rb=Qb.length,yb=null,Ba=Qb[0];Ba._new||(yb=Ba);var zc=ca.getIntAttribute(Ba,"_startSlice")-
ca.fg[W][ga];A_Og(W,ca.Lm[W]*zc,Ba);for(Ia=1;Ia<Rb;Ia++){var fc=Ba,Ba=Qb[Ia];null!=yb||Ba._new||(yb=Ba);A_Og(W,fc[ec]+fc[xc],Ba);Ba.style[W?"left":"top"]="0px"}Pb[W][ga]=yb[ec]-(yb[yc]-ra[W][ga])}}for(var Ac=ca.Pa,Bc=ca.wa,Cc=ca.V,Gb=ca.j[1];2>Gb;++Gb)for(var Dc=Ac[Gb],Ec=Cc[Gb],Hb=ca.j[0];2>Hb;++Hb){var Fc=Bc[Hb],gc=Ec[Hb],Rb=gc.length;for(Ia=0;Ia<Rb;Ia++){var Gc=Dc[Ia],hc=gc[Ia],Hc=hc.length;for(xb=0;xb<Hc;xb++){var Ic=Fc[xb],ic=hc[xb];A_Og(1,Gc._canvasTop,ic);A_Og(0,Ic._canvasHorizPos,ic)}}}for(W=
1;0<=W;--W)for(ga=ca.j[W];2>ga;++ga)ca.Ga.Sa&&A_lg(ca.Ga,"positionNewHTMLBlocks calling setScrollPos("+W+", "+ga+", "+Pb[W][ga]+")"),ca.setScrollPos(W,ga,Pb[W][ga]);A_dg(this.b,!0);A_Pg(this.b);var jb=r,jb=jb.substring(1,jb.length-1),jb=jb.replace(/'/g,'"'),jc=JSON.parse(jb),Sb=A_if(this,jc),kc=A_if(this);if(null!=Sb&&Sb==kc){for(var Tb=A_Qg(this),lc=A_1(this,kc,Tb),Ub=A_1(this,Sb,jc),Ib=0;Ib<lc.length;++Ib){var ma=lc[Ib],Ja=Ub[Ib];if(null==ma.startIndex)if(Ja&&A_Rg(Ja.startKey,ma.startKey))ma.startIndex=
Ja.startIndex;else for(var Vb=0;Vb<Ub.length;++Vb){var mc=Ub[Vb];if(A_Rg(mc.startKey,ma.startKey)){ma.startIndex=mc.startIndex;break}}else null==ma.startKey&&Ja&&A_Sg(Ja.startIndex,ma.startIndex)&&(ma.startKey=Ja.startKey);null!=ma.endIndex&&null==ma.endKey&&Ja&&A_Sg(Ja.endIndex,ma.endIndex)&&(ma.endKey=Ja.endKey)}A_zg(this,Tb);A_Bg(this,Tb)}A_Tg(this,!1,!0);A_hf(this,null,y);A_vg(this.b);null!=xa&&b.queueEvent(xa);A_Dg(this);break;default:AdfAssert.assert(AdfPivotTableUtils.Qa,"unexpected renderType in DomReplaceNotify")}this.b.La(1,
"after switch");if(this.Yr){this.Yr=!1;var zb=this.tJ,nc=A_Ug(this,zb.edge,zb.pM,zb.qM);null!=nc&&A_Vg(this,nc,zb.kt,zb.extend)}A_jg(this);A_We(this);this.Oa&&A_fg(this)}else if("TD"==a.nodeName&&AdfAgent.AGENT.getPlatform()==AdfAgent.IE_PLATFORM){var oc=a.parentNode;null!=oc&&A_hg(oc)}null!=this.T&&null!=a&&a.id==this.T.id&&(this.T=a)}catch(Jc){AdfLogger.LOGGER.severe(Jc.message)}finally{this.Hq--}this.b.Gt(1,"end","DomReplaceNotify");if(!n)return a};
AdfDhtmlPivotTablePeer.prototype.DomReplaceNotify=AdfDhtmlPivotTablePeer.prototype.DomReplaceNotify;function A_Dg(a){if(!A_eg(a.b,!0))if(a.cf)null!=a.F&&(A_Vf(a,a.F),A_Re(a)?A_0(a,a.F):A_Mf(a)),a.cf=!1;else if(a.b.br||a.b.bs){var b=a.tg;if(null!=b)if(A_Qf(a,b))A_Vf(a,b);else if(a.b.br){var c=b.row<a.b.u[1]?0:1,c=A_Rf(a,AdfPivotTableUtils.s,c);a.Pg(c,b.column)}else a.b.bs&&(c=b.column<a.b.u[0]?0:1,c=A_Rf(a,AdfPivotTableUtils.o,c),a.Pg(b.row,c));a.b.br=!1;a.b.bs=!1}}
function A_jg(a){var b=A_Te(a);a.T=null==b?null:A_Wg(a,b)}function A_gf(a,b){A_ig(a,b);A_Xg(a);a._hideStatus()}function A_ig(a,b){if(null!=b){var c=A_Ue(b);if(null!=c){A_0(a,c);for(var d=0;2>d;d++)for(var e=a.b.j[d];2>e;++e){var f=A_Eg(a.b,d,e);a.Sa&&A_lg(a,"_readjustScrollPos calling setScrollPos("+d+", "+e+", "+f+")");a.b.setScrollPos(d,e,f)}A_Vf(a,c);a.Hg=null}}}function A_Ue(a){a=a.split(":");return 2==a.length?A_f(1*a[0],1*a[1]):null}
function A_Wg(a,b){var c=A_Ue(b);return null!=c&&(c=A_g(c),c=A_Va(a,c),0<c.length&&null!=c[0])?c[0]:null}function A_zf(a,b,c){return null!=b&&(b=A_g(b),a=A_Va(a,b,void 0,c),0<a.length)?a[0]:null}AdfDhtmlPivotTablePeer.gM=function(a){return"true"==AdfAgent.AGENT.getAttribute(a,"_paging")};
function A_of(a,b,c){for(var d=0;2>d;d++)for(var e=a.b.j[d];2>e;e++){if(a.df(c,AdfDhtmlPivotTablePeer.oj[d][e])){A_d.ya(c,"p_AFActivated");a.ff=AdfPivotTableUtils.If[d][e];a.Cc=0;c=a.b.$e[d][e];var f=A_Yg(a.b,d,e,0),g=A_Zg(a.b,d,e),h=1;0<f.tc&&f.slice!=g.slice?h=f.Qg:a.Cc=1;f=a.b.ha(d,e);c=(d==AdfPivotTableUtils.s?c.clientHeight:c.clientWidth)-h;c>f&&(a.Cc=a.Cc+c-f);a.b.setScrollPos(d,e,f-c,!0);a.Jb(a.getComponent(),null);AdfAgent.AGENT.eatEvent(b);return!0}if(a.df(c,AdfDhtmlPivotTablePeer.Tf[d][e]))return A_d.ya(c,
"p_AFActivated"),a.ff=AdfPivotTableUtils.Yi[d][e],c=a.b.$e[d][e],f=A_Zg(a.b,d,e),h=f.Qg,0>=f.xi?h=f.xi:f.slice==A_Yg(a.b,d,e,0).slice&&(h=0),f=a.b.ha(d,e),a.b.setScrollPos(d,e,f+(d==AdfPivotTableUtils.s?c.clientHeight:c.clientWidth)-h,!0),a.Jb(a.getComponent(),null),AdfAgent.AGENT.eatEvent(b),!0;if(a.df(c,AdfDhtmlPivotTablePeer.Rf[d][e]))return A_d.ya(c,"p_AFActivated"),a.ff=AdfPivotTableUtils.eh[d][e],a.b.setScrollPos(d,e,0,!0),a.Jb(a.getComponent(),null),AdfAgent.AGENT.eatEvent(b),!0;if(a.df(c,
AdfDhtmlPivotTablePeer.Sf[d][e]))return A_d.ya(c,"p_AFActivated"),a.ff=AdfPivotTableUtils.fh[d][e],a.b.setScrollPos(d,e,a.b.we[d][e],!0),a.Jb(a.getComponent(),null),AdfAgent.AGENT.eatEvent(b),!0}return!1}AdfDhtmlPivotTablePeer.prototype.Ym=function(a,b){for(var c=a,d=null,e=this.getDomElement();!d&&c&&c!=e.parent&&1==c.nodeType;)if(c.id&&0<=c.id.indexOf(b)){d=c;break}else c=c.parentNode;return d};
AdfDhtmlPivotTablePeer.prototype.df=function(a,b){var c=AdfRichUIPeer.CreateSubId(this.getComponent().getClientId(),b);return null!=this.Ym(a,c)?!A_d.ta(a,"p_AFDisabled"):!1};function A__g(a,b){var c=A_Yg(a.b,b,1,0);return 0<c.tc?c.slice+1:c.slice}
function A_fg(a){for(var b=0;2>b;b++)for(var c=a.b.j[b];2>c;c++){var d;if(d=a.ff==AdfPivotTableUtils.If[b][c])a:{d=a;var e=b,f=c;if(null!=d.Cc&&1<d.Cc){var g=d.b.ha(e,f);if(1<g){d.b.setScrollPos(e,f,g-d.Cc,!0);d.Cc=0;d.Jb(d.getComponent(),null);d=!0;break a}d.Cc=0}d=!1}if(d)return}d=[[],[]];var e=[[],[]],f=[[],[]],g=[[],[]],h=[[],[]];h[0][0]=a.b.u[0];h[1][0]=a.b.u[1];h[0][1]=a.b.Rm[0];h[1][1]=a.b.Rm[1];for(b=0;2>b;b++)for(c=a.b.j[b];2>c;c++)if(d[b][c]=A_Yg(a.b,b,c,0),e[b][c]=d[b][c].slice,f[b][c]=
A_Zg(a.b,b,c),g[b][c]=f[b][c].slice,-1!=e[b][c]&&-1!=g[b][c]){var l;l=a;var m=d[b][c],n=f[b][c],p=g[b][c],q=b,u=c,v=h[b][c],x=a.b.$e[b][c];if(l.ff==AdfPivotTableUtils.eh[q][u]&&0<m.tc)l.b.setScrollPos(q,u,0,!0),l.Jb(l.getComponent(),null),l=!0;else if(l.ff==AdfPivotTableUtils.fh[q][u]&&0<n.xi)l.b.setScrollPos(q,u,l.b.we[q][u],!0),l.Jb(l.getComponent(),null),l=!0;else if(0<m.tc&&(0!=n.xi||p+1!=v||m.slice==n.slice)){var w=m.Qg,y=l.b.ha(q,u);m.tc==l.Cc?l.b.setScrollPos(q,u,y-l.Cc,!0):((l.ff==AdfPivotTableUtils.If[q][u]||
m.slice==n.slice&&p+1==v)&&m.Qg>=(q==AdfPivotTableUtils.s?x.clientHeight:x.clientWidth)-l.Cc&&(w=-1*m.tc),l.b.setScrollPos(q,u,y+w,!0));l.Cc=0;l.Jb(l.getComponent(),null);l=!0}else l=!1;if(l)return}else return;a.Fn=!1;a.Lh=[[!1,!1],[!1,!1]];l=!0;for(b=0;2>b;b++)for(m=a.b.u[b],c=a.b.j[b];2>c;c++){var v=a,x=b,w=c,q=-1!=m&&1==c?m+1:1,p=h[b][c],y=e[b][c],u=g[b][c],n=v.b.Fa[x][w],r=v.b.ik[x][w];if(-1!=y&&-1!=u){y!=u&&(0<d[b][c].tc&&y++,0<f[b][c].xi&&u--);y++;u++;var z=n.childNodes[0].offsetWidth,C=n.childNodes[0].childNodes[0].childNodes[0];
if(n.offsetWidth<z)null==n.wn&&(C.childNodes[3].style.display="none",C.childNodes[4].style.display="none",C.childNodes[5].style.display="none",n.wn=z);else if(null==n.wn||parseInt(n.wn)<=n.offsetWidth)z=C.childNodes[5],null==v.Fx&&(v.Fx=z.innerHTML),z.innerHTML=v.Fx.replace("-",p).replace("_","- ".concat(u)),C.childNodes[3].style.display="",C.childNodes[4].style.display="",C.childNodes[5].style.display="",n.wn=null;r=AdfPage.PAGE.findComponent(v.getComponent().getClientId().concat(r));y!=r.getValue()&&
(v.Lh[x][w]=!0,r.setValue("".concat(y)));firstArrow=C.childNodes[1].childNodes[0];prevArrow=C.childNodes[2].childNodes[0];lastArrow=C.childNodes[7].childNodes[0];nextArrow=C.childNodes[6].childNodes[0];v=y;x=firstArrow;w=prevArrow;y=lastArrow;C=nextArrow;A_d.ta(x,"p_AFActivated")?A_d.X(x,"p_AFActivated"):A_d.ta(w,"p_AFActivated")?A_d.X(w,"p_AFActivated"):A_d.ta(y,"p_AFActivated")?A_d.X(y,"p_AFActivated"):A_d.ta(C,"p_AFActivated")&&A_d.X(C,"p_AFActivated");r=AdfAgent.AGENT;v==q?A_d.ta(x,"p_AFDisabled")||
(A_d.ya(x,"p_AFDisabled"),x.removeAttribute("href"),A_d.ya(w,"p_AFDisabled"),w.removeAttribute("href")):A_d.ta(x,"p_AFDisabled")&&(A_d.X(x,"p_AFDisabled"),r.setAttribute(x,"href","#"),A_d.X(w,"p_AFDisabled"),r.setAttribute(w,"href","#"));u==p?A_d.ta(y,"p_AFDisabled")||(A_d.ya(y,"p_AFDisabled"),y.removeAttribute("href"),A_d.ya(C,"p_AFDisabled"),C.removeAttribute("href")):A_d.ta(y,"p_AFDisabled")&&(A_d.X(y,"p_AFDisabled"),r.setAttribute(y,"href","#"),A_d.X(C,"p_AFDisabled"),r.setAttribute(C,"href",
"#"));n.parentNode.style.visibility="visible";n=!0}else n=void 0;n||(l=!1)}l&&(a.ff=null)}function A_Df(a){a=a.getSource();return a instanceof AdfUIEditableValue?(AdfPage.PAGE.clearMessages(a.getClientId()),a.validate(),a.getValid()):!0}function A_hf(a,b,c){a.Na=b;if(a.Bq&&null==b){if(b=a.zm){for(var d=0;d<b.length;)id=b[d++],payload=b[d++],id>c&&A_Ig(a,payload);b.length=0}a.Ah=Math.max(a.Ah,c);a.Fq=a.Ah}}
AdfDhtmlPivotTablePeer.prototype.enableUserSelect=function(){AdfAgent.AGENT.enableUserSelect(this.getDomElement());this.Rq=!0};AdfDhtmlPivotTablePeer.prototype.disableUserSelect=function(){(void 0==this.Rq||this.Rq)&&AdfAgent.AGENT.disableUserSelect(this.getDomElement());this.Rq=!1};function A_lg(a,b){a.QF[a.tq]=b;++a.tq==a.RF&&(a.tq=0)}
function A_0g(a){for(var b={},c=0;c<a.length;c++)for(var d=0;d<a[c].length;d++){var e=a[c][d];if(e.getAttribute){var f=parseInt(e.getAttribute("_startrow"),10),g=parseInt(e.getAttribute("_startcol"),10);if(null==b.zf||b.zf>f)b.zf=f;if(null==b.Nb||b.Nb>g)b.Nb=g;if(e.firstChild&&"TABLE"==e.firstChild.tagName){f=f+(e.firstChild.rows.length-1)-1;e=g+(e.firstChild.rows[0].cells.length-1)-1;if(null==b.mf||b.mf<f)b.mf=f;if(null==b.di||b.di<e)b.di=e}}}return b}
function A_Cg(a,b,c){b=b[1][1];c=c[1][1];var d=A_0g(b),e=A_0g(c);if(d.zf==e.zf&&d.mf==e.mf&&d.Nb==e.Nb&&d.di==e.di)return null;a=a.getComponent();a=new A_1g(a,d.zf,d.Nb,d.mf,d.di,e.zf,e.Nb,e.mf,e.di);b.length!=c.length&&(a.Gq=!0);return a};