_o0d.js 63 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: rs
  3. // (C) Copyright IBM Corp. 2003, 2022.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. define(["text!./DashboardToV5Templates.xml"],function(_hwf){var _o0d={};_o0d._j67=function(_p1e){var _3oj=[];var _tah=JSON.parse(_p1e.spec);var _iqi=_8qn._dhe(_hwf).documentElement;if(!_iqi){throw new Error(_frh._c6j("IDS_ERR_NO_TEMPLATE_RETURNED"));}return Application._jfe().then(function(){var _2e=[];var _x34=[];var _lr6=[];for(var i=0; i<_tah.dataSources.sources.length; i++){var _dza=_tah.dataSources.sources[i].type;if(_dza=='uploadedFile'||_dza=='socialMediaProject'){_3oj.push(_frh._c6j("IDS_MSG_UNSUPPORTED_DATASOURCE") + ": " + _tah.dataSources.sources[i].name);continue;}if(_dza=='module'){_2e.push(this._ra(_tah, _tah.dataSources.sources[i]));}_x34.push(this._bu1(_tah.dataSources.sources[i].assetId));_lr6.push(this._673(_tah.dataSources.sources[i].assetId));}var _a59=this._9g6(_tah, _iqi);return Q.all([Q.all(_2e), Q.all(_x34), Q.all(_lr6), Q.all(_a59)]);}.bind(this)).spread(function(_py1,_5u2,_m8i,_xvk){for(var i=0; i<_xvk.length; i++){if(_xvk[i].unavailable){_xvk.splice(i, 1);}}var _a6f=this._mib(_xvk);var _83m=this._waj(_tah, _5u2, _m8i, _py1, _3oj, _iqi, _a6f);return {report: _83m,warnings: _3oj};}.bind(this)).catch(function(_mmn){Application._28j(_mmn, {type: "error"});}); };_o0d._web=function(_w6m,_66m){Object.keys(_w6m).forEach(function(key){ _66m[key]=_w6m[key]; });};_o0d._mib=function(_xvk){var _a6f=[];for(var i=0; i<_xvk.length; i++){var _mbl=_xvk[i];var _wxm=_mbl.id;var _ovi={};var _c5k=_mbl.dataSets;var _kmj=Object.keys(_c5k);for(var j=0; j<_kmj.length; j++){this._web(_c5k[_kmj[j]].slots, _ovi);}_a6f.push({visId: _wxm,slots: _ovi,supportsMeasureGroup: _mbl.supportsMeasureGroup,palettes: _mbl.palettes,properties: _mbl.properties}); }return _a6f; };_o0d._353=function(_a7m,_iqi){if(!_a7m.visId||_a7m.visId.indexOf('com.ibm.vis')==-1){return null;}if(_a7m.visId=="com.ibm.vis.rave2bundlecolumn"||_a7m.visId=="com.ibm.vis.rave2bundlebar"){var _0ug=false;var _ypj=false;for(var i=0; i<_a7m.slotmapping.slots.length;++i){var _ybn=_a7m.slotmapping.slots[i];if(_ybn.name=="yStart"){_0ug=true;break;}if(_ybn.name=="target"){_ypj=true;break;}}if(_0ug){_a7m.visId+= "floating";}if(_ypj){_a7m.visId+= "target";}}var _h2k=_iqi.selectSingleNode("template[@name='" + _a7m.visId + "']");if(!_h2k){return _a7m.visId;}return _h2k.selectSingleNode("vizControl").getAttribute("type");};_o0d._gb4=function(widgets){var _0wk=[];if(!Array.isArray(widgets)){var _y4n=Object.keys(widgets);for(var i=0; i<_y4n.length; i++){_0wk.push(widgets[_y4n[i]]);}}else{_0wk=widgets;}return _0wk;};_o0d._9g6=function(_tah,_iqi){var _a59=[];var _0um=Q.defer();var _vvk=[];var _dhl;var _0wk=this._gb4(_tah.widgets);for(var i=0; i<_0wk.length; i++){_dhl=this._353(_0wk[i], _iqi);if(_dhl){_vvk.push(_dhl);}} if(_vvk.length==0){_0um.resolve(_a59);}_5ml._jll(["_og4"],function(_og4){for(var i=0; i<_vvk.length; i++){if(!_vvk[i]){continue;}_a59.push(_og4._1em(_vvk[i], true));}_0um.resolve(_a59);});return _0um.promise;};_o0d._zc=function(_trg,_61e,_n31){for(var i=0; i<_trg.dataViews.length;++i){if(_61e.id&&_trg.dataViews[i].modelRef!=_61e.id){continue;}for(var j=0; j<_trg.dataViews[i].dataItems.length; j++){var _7ya=_trg.dataViews[i].dataItems[j];_n31+= window.btoa(encodeURIComponent(_7ya.itemId));_n31+= ',';if(!_7ya.selection){continue;}for(var k=0; k<_7ya.selection.length;++k){var _se2=_7ya.selection[k];if(!_se2||!_se2.context){continue;}for(var l=0; l<_se2.context.length;++l){_n31+= window.btoa(encodeURIComponent(_se2.context[l].itemId));_n31+= ',';}}}}return _n31;};_o0d._ra=function(_tah,_61e){var _n31="";var _trg;var _0wk=this._gb4(_tah.widgets);for(var i=0; i<_0wk.length; i++){_trg=_0wk[i].data;if(!_trg){continue;}_n31=this._zc(_trg, _61e, _n31);} return Application.GlassContext.services.ajax.ajax({url: "v1/metadata/modules/" + encodeURIComponent(_61e.assetId) + "/identifiers?idFormat=longBracketed&idArray=" + encodeURIComponent(_n31),type: 'GET'});};_o0d._673=function(_335){return Application.GlassContext.services.ajax.ajax({url: "v1/metadata/modules/" + encodeURIComponent(_335) + "/metadata?shortIdForExpression=true&item=on",type: 'GET'});};_o0d._bu1=function(_335){return Application.GlassContext.services.ajax.ajax({url: "v1/objects/" + _335 + "?fields=searchPath",type: 'GET'});};_o0d._waj=function(_tah, _imj, _luk, _py1, _3oj, _iqi, _a6f){console.log("DB Spec: " + JSON.stringify(_tah));console.log("DB Data Source: " + JSON.stringify(_imj));console.log("DB Model: " + JSON.stringify(_luk));console.log("DataItemsLongBracketed: " + JSON.stringify(_py1));console.log("Vida Def Info: " + JSON.stringify(_a6f));var _u39=[];for(var i=0; i<_tah.dataSources.sources.length; i++){var _81e=_tah.dataSources.sources[i];var _l5e=_81e.assetId;for(var j=0; j<_imj.length; j++){if(_imj[j].data[0].id!=_l5e){continue;}_u39.push({dbDataSource: _81e,searchPath: _imj[j].data[0].searchPath,modelInfo: _luk[j],dataItemsLongBracketed: _py1[j]}); }}var _efc=new _dpc(this, _tah, _u39, _iqi, _3oj, _a6f);var _u2h=_efc._51g();console.log("DB->RS spec: " + _u2h.outerHTML);return _u2h;};return _o0d;});function _dpc(_d6m, _d5m, _u39, _iqi, _3oj, _a6f){this._5sl=_d6m;this._trl=_d5m;this._knb=this._trl.layout;this._c3i=_iqi;this._pz8=0;this._5q5=0;this._vdj=[];this._ned=null;this._oq5=null;this._4ej=_3oj;this._rok=_a6f;this._9w8=[];this._ol2(_u39);this._byh=[];this._be5(_d5m.widgets);}_dpc.prototype._51g=function(){this._tvh();if(this._9w8.length==0){_8qn._k5g(this._irl, "modelPath");_8qn._k5g(this._irl, "layouts/layout/reportPages/page/pageBody/contents/table");return this._irl;}for(var i=0; i<this._byh.length;++i){var _95k=new _b45(this, i);_95k._t55();}return this._irl;};_dpc.prototype._ol2=function(_u39){for(var i=0; i<_u39.length; i++){var _wf9=_u39[i];if(!_wf9){continue;}if(!this._1x3(_wf9)){this._gn8(this._rf6("IDS_MSG_UNSUPPORTED_DATASOURCE") + ": " + _wf9.dbDataSource.name);continue;}this._9w8.push(_wf9);}};_dpc.prototype._be5=function(widgets){var _0wk=this._5sl._gb4(widgets);for(var i=0; i<_0wk.length;++i){var _95k=_0wk[i];if(!this._mk7(_95k)||!this._7g(_95k)){continue;}this._byh.push(_95k);}};_dpc.prototype._1x3=function(_wf9){var _z8f=true;switch(_wf9.dbDataSource.type){case "uploadedFile":case "dataSet2":_z8f=false;break;case "module":if(this._jo2(_wf9)&&!this._f91(_wf9)){_z8f=false;}break;}return _z8f;};_dpc.prototype._7g=function(_95k){if(!_95k.data||!_95k.data.dataViews){return true;}var _dz1=false;for(var i=0; i<this._9w8.length; i++){for(var j=0; j<_95k.data.dataViews.length;++j){var _8ya=_95k.data.dataViews[j];if(_8ya.modelRef==this._9w8[i].dbDataSource.id){_dz1=true;}}}return _dz1;};_dpc.prototype._rf6=function(_cek){return(typeof _frh!=="undefined"?_frh._c6j(_cek):_cek);};_dpc.prototype._jo2=function(_wf9){if(!_wf9||!_wf9.modelInfo||!_wf9.modelInfo.querySubject[0].sourceCategory){return false;}return(_wf9.modelInfo.querySubject[0].sourceCategory!="column"&&_wf9.modelInfo.querySubject[0].sourceCategory!="table");};_dpc.prototype._f91=function(_wf9){if(!_wf9||!_wf9.modelInfo||!_wf9.modelInfo.useSpec||_wf9.modelInfo.useSpec.length==0){return false;}return _wf9.modelInfo.useSpec[0].type=="lwOLAP";};_dpc.prototype._gn8=function(_oon){this._4ej.push(_oon);};_dpc.prototype._m2=function(_q26){var _2ak;switch(_q26){case "text":_2ak="IDS_LBL_DASHBOARD_TEXT";break;case "image":_2ak="IDS_LBL_DASHBOARD_IMAGE";break;case "media":_2ak="IDS_LBL_DASHBOARD_MEDIA";break;case "webpage":_2ak="IDS_LBL_DASHBOARD_WEBPAGE";break;case "shape":_2ak="IDS_LBL_DASHBOARD_SHAPE";break;case "list":_2ak="IDS_LBL_DASHBOARD_LIST";break;case "summary":_2ak="IDS_LBL_DASHBOARD_SUMMARY";break;case "dataPlayer":_2ak="IDS_LBL_DASHBOARD_DATAPLAYER";break;case "com.ibm.vis.rave2comet":_2ak="IDS_LBL_CHART_vida_rave2comet";break;case "com.ibm.vis.decisiontree":_2ak="IDS_LBL_CHART_vida_decisiontree";break;case "com.ibm.vis.sunburst":_2ak="IDS_LBL_CHART_vida_sunburst";break;case "com.ibm.vis.spiral":_2ak="IDS_LBL_CHART_vida_spiral";break;case "com.ibm.vis.rave2polygonmap":_2ak="IDS_LBL_CHART_vida_rave2polygonmap";break;default:_2ak=_q26;break;}return this._rf6(_2ak);};_dpc.prototype._mk7=function(_95k){if(!_95k||!_95k.visId){return false;}switch(_95k.visId){case "list":case "dataPlayer":case "com.ibm.vis.rave2comet":case "com.ibm.vis.decisiontree":case "com.ibm.vis.sunburst":case "com.ibm.vis.spiral":case "com.ibm.vis.rave2polygonmap":this._gn8(this._m2(_95k.visId));return false; }return true;};_dpc.prototype._tvh=function(){this._hqn=_8qn._w5b();this._00a(); this._ned=this._bt1(this._byh.length);this._oq5=this._ned.selectNodes("tableRows/tableRow/tableCells/tableCell");};_dpc.prototype._2d=function(_6ri,_fsm){if(!_fsm){_6ri.removeAttribute("refDataStore");return;}var _158=_8qn._w6b(this._irl, "reportDataStores");var _rd9=_8qn._u0g(_158, "reportDataStore");_rd9.setAttribute("name", _6ri.getAttribute("refDataStore"));var _5yj=_8qn._u0g(_rd9, "dsSource");var _6mi=_8qn._u0g(_5yj, "dsV5ListQuery");_6mi.setAttribute("refQuery",_fsm.getAttribute("name")); var _x7i=[];var nlVcSlotData=_6ri.selectNodes("vcSlots/vcSlotData");for(var i=0; i<nlVcSlotData.length; i++){var _n8h=nlVcSlotData.item(i);var _ef9=_n8h.selectNodes("vcSlotDsColumns/vcSlotDsColumn");for(var j=0; j<_ef9.length; j++){var _cua=_ef9.item(j);var _5wf=_cua.getAttribute("refDsColumn");if(!_5wf||_x7i.indexOf(_5wf)!=-1){continue;}_x7i.push(_5wf);var _c3h=_8qn._u0g(_8qn._w6b(_6mi, "dsV5DataItems"), "dsV5DataItem");_c3h.setAttribute("refDataItem", _5wf);if(_n8h.getAttribute("idSlot")=='values'){_c3h.setAttribute("dsColumnType", "value");}}}};_dpc.prototype._3m4=function(_r4f,_wel){for(var i=0; i<_r4f.length;++i){var _t9i=_r4f[i].widgetIds;for(var j=0; j<_t9i.length;++j){if(_t9i[j]==_wel){return i;}}}return 0;};_dpc.prototype._bt1=function(_zv6){var _t9n=this._irl.selectSingleNode("layouts//reportPages//page");_t9n.setAttribute("name", "Page1");var _l48=_t9n.selectSingleNode("pageBody/contents");var _8a9=_zv6>1?3:1;var _psm=_l48.appendChild(this._mag(_zv6/_8a9, _8a9));var _lsm=_8qn._w6b(_psm, "style");var _tkn=_8qn._w6b(_lsm, "CSS");_tkn.setAttribute("value", "border-collapse:collapse;height:100%;width:100%");return _psm;};_dpc.prototype._mag=function(_38n,_g7n,_tqj){var _psm=this._cnh("table");var _gqi=_psm.appendChild(this._cnh("tableRows"));for(var _ekn=0; _ekn<_38n; _ekn++){var _g2k=_gqi.appendChild(this._cnh("tableRow"));var _w7h=_g2k.appendChild(this._cnh("tableCells"));for(var _ujn=0; _ujn<_g7n; _ujn++){_w7h.appendChild(this._50a());}}return _psm;};_dpc.prototype._50a=function(){var _p8n=this._cnh("tableCell");_p8n.appendChild(this._cnh("contents"));return _p8n;};_dpc.prototype._00a=function(){var _z7c=this._c3i.selectSingleNode("template[@name='Blank']").cloneNode(true);this._irl=_z7c.selectSingleNode("report");if(this._9w8.length>0&&this._9w8[0].modelInfo&&this._9w8[0].modelInfo.expressionLocale){this._irl.setAttribute("expressionLocale", this._9w8[0].modelInfo.expressionLocale.replace('_', '-'));}if(this._trl.name){_8qn._w6b(this._irl, "reportName").text=this._trl.name;}if(this._9w8.length==0){return;}var _wni=this._irl.selectSingleNode("modelPath");if(this._9w8[0].dbDataSource.type=="module"){_wni.text=this._9w8[0].searchPath;_wni.setAttribute("type", "module");}else{_wni.text=this._9w8[0].searchPath+"/model[@name='model']";}};_dpc.prototype._ne8=function(_tkc,_pen,_dwm){var _9ac=this._cnh(_tkc);var _krn=_8qn._u0g(_9ac, "dataSource");var _ban=this._cnh(_pen);if(_dwm){_ban.setAttribute("refDataItem", _dwm);}_krn.appendChild(_ban);return _9ac;};_dpc.prototype._sqc=function(_9ac,_04l){var _kxj=_8qn._w6b(_9ac, "contents");_kxj.appendChild(_04l);};_dpc.prototype._rjk=function(n,_lvm){var _lsm=_8qn._w6b(n, "style");var _89c=_8qn._w6b(_lsm, "defaultStyles");_8qn._k5g(_89c, "*");_8qn._u0g(_89c, "defaultStyle").setAttribute("refStyle", _lvm);};_dpc.prototype._cnh=function(_ick){var n=this._hqn.createElement(_ick);return n;};function _b45(_efc, _bff){this._8tb=_efc;this._kxe=_bff;this._jsl=this._8tb._byh[_bff];this._3jm=null;this._c09=null;this._5o5=[];this._0v=[];this._1q=[];this._nok=[];this._f09=this._8tb._oq5.item(_bff);this._y0f=this._qib();if(!this._jsl.data||!this._jsl.data.dataViews){return;}for(var i=0; i<this._8tb._9w8.length; i++){for(var j=0; j<this._jsl.data.dataViews.length;++j){var _8ya=this._jsl.data.dataViews[j];if(_8ya.modelRef==this._8tb._9w8[i].dbDataSource.id){this._534=this._8tb._9w8[i];if(this._534.dbDataSource.shaping&&this._534.dbDataSource.shaping.moserJSON &&this._534.dbDataSource.shaping.moserJSON.calculation){this._0v=this._534.dbDataSource.shaping.moserJSON.calculation;}if(this._jsl.visId!="com.ibm.vis.rave2bundlecomposite"||j==0){this._nok.push(this._u53());}}}}}_b45.prototype._t55=function(){this._k71();if(!this._ps1()){return;}this._1o(); this._aj6();};_b45.prototype._u53=function(){var _w6l=_8qn._w6b(this._8tb._irl, "queries");var _fsm=_8qn._u0g(_w6l, "query");this._8tb._pz8++;_fsm.setAttribute("name", "Query" + this._8tb._pz8);var _j3m=_8qn._u0g(_fsm, "source");var _wni=this._8tb._irl.selectSingleNode("modelPath");var _pa8=this._534.dbDataSource.type==="module"?this._534.searchPath:this._534.searchPath+"/model[@name='model']";if(_wni&&_wni.text&&_wni.text!=_pa8){var _rvd=_8qn._u0g(_j3m, "metadataPath");_rvd.setAttribute("path", _pa8);if(this._534.dbDataSource.type==="module"){_rvd.setAttribute("type", "module"); }}else{_8qn._u0g(_j3m, "model");}_8qn._u0g(_fsm, "selection");return _fsm;};_b45.prototype._4pe=function(_0j9,_klm){var _sui=null;for(var i=0; _sui==null&&_klm&&i<_klm.length; i++){var _6bn=_klm[i];if(_6bn.idForExpression==_0j9){_sui=_6bn;break;}if(Array.isArray(_6bn)){_sui=this._4pe(_0j9, _6bn);}else if(Array.isArray(_6bn.item)){_sui=this._4pe(_0j9, _6bn.item);}else if(_6bn.folder&&Array.isArray(_6bn.folder.item)){_sui=this._4pe(_0j9, _6bn.folder.item);}else if(_6bn.queryItem){if(_6bn.queryItem.idForExpression===_0j9){return _6bn.queryItem;}else if(Array.isArray(_6bn.queryItem.item)){_sui=this._4pe(_0j9, _6bn.queryItem.item);} }} if(_sui){_sui.querySubjectIndex=i-1;}return _sui;};_b45.prototype._mhb=function(_19m){if(!this._0v){return null;}for(var i=0; i<this._0v.length; i++){var _s17=this._0v[i];if(!_s17){continue;}if(_s17.identifier===_19m){return _s17;}}return null;};_b45.prototype._qib=function(){var _wel=this._jsl.id;if(!this._8tb._knb){return "";}for(var i=0; i<this._8tb._knb.length;++i){if(this._8tb._knb[i].id===_wel){return this._8tb._knb[i].style;}}};_b45.prototype._po8=function(_h5e,_sui,_zf9,_tj3,_mfh,_fsm){var _zpi=_fsm.selectSingleNode("selection");var _72b=_sui?_sui.sourceCategory:null;var _qxj;switch(_72b){case "level":_qxj=this._c53(_zpi, _h5e, _mfh, _zf9);break;case "hierarchy/level":case "hierarchy/parent-child":_qxj=this._8h1(_zpi, _h5e, _zf9, _sui);break;case "measure":_qxj=this._mt3(_zpi, _h5e, _mfh, _zf9);break;default:_qxj=this._m53(_zpi, _h5e, _mfh);if(_tj3){_qxj.setAttribute("aggregate", _tj3);}break;}if(_tj3){_qxj.setAttribute("rollupAggregate", _tj3);}return _qxj;};_b45.prototype._m53=function(_zpi,_h5e,_mfh){var _qxj=_8qn._u0g(_zpi, "dataItem");_qxj.setAttribute("name", _h5e);var _p3h=_8qn._u0g(_qxj, "expression");_p3h.text=_mfh;_p3h.removeAttribute("xml:space");return _qxj;};_b45.prototype._c53=function(_zpi,_h5e,_mfh,_zf9){var _qxj=_8qn._u0g(_zpi, "dataItemLevelSet");_qxj.setAttribute("name", _h5e);var _l4l=_8qn._u0g(_qxj, "dmLevel");this._ah1(_l4l, "LUN", _h5e, _mfh);var _fhf=_8qn._u0g(_qxj, "dmDimension");this._ah1(_fhf, "DUN", _h5e, _zf9.DUN);var _ghf=_8qn._u0g(_qxj, "dmHierarchy");this._ah1(_ghf, "HUN", _h5e, _zf9.HUN);return _qxj;};_b45.prototype._5t1=function(_zpi,_h5e,_mfh,_wkn,_5ln){var _qxj=_8qn._u0g(_zpi, "dataItemChildrenSet");_qxj.setAttribute("name", _h5e);var _xxj=_8qn._u0g(_qxj, "dmMember");this._ah1(_xxj, "MUN", _h5e, _mfh);var _fhf=_8qn._u0g(_qxj, "dmDimension");this._ah1(_fhf, "DUN", _h5e, _wkn);var _ghf=_8qn._u0g(_qxj, "dmHierarchy");this._ah1(_ghf, "HUN", _h5e, _5ln);return _qxj;};_b45.prototype._9h1=function(_zpi,_h5e,_zf9){var _qxj=_8qn._u0g(_zpi, "dataItemHierarchySet");_qxj.setAttribute("rootMembersOnly", "true");_qxj.setAttribute("name", _h5e);var _fhf=_8qn._u0g(_qxj, "dmDimension");this._ah1(_fhf, "DUN", _h5e, _zf9.DUN);var _ghf=_8qn._u0g(_qxj, "dmHierarchy");this._ah1(_ghf, "HUN", _h5e, _zf9.HUN);return _qxj;};_b45.prototype._8h1=function(_zpi,_h5e,_zf9,_sui){if(_sui.hierarchyHasMultipleRoots){return this._9h1(_zpi, _h5e, _zf9);}else{var _awl=_sui.rootMember.match(/->:\[(.*)\]\./);return this._5t1(_zpi, _h5e, _awl?_sui.rootMember:_zf9.DUN+"." + _sui.rootMember,_zf9.DUN, _zf9.HUN);}};_b45.prototype._mt3=function(_zpi,_h5e,_mfh,_zf9){var _qxj=_8qn._u0g(_zpi, "dataItemMeasure");_qxj.setAttribute("name", _h5e);var _xxj=_8qn._u0g(_qxj, "dmMember");this._ah1(_xxj, "MUN", _h5e, _mfh);var _fhf=_8qn._u0g(_qxj, "dmDimension");this._ah1(_fhf, "DUN", _h5e, _zf9.DUN);return _qxj;};_b45.prototype._fj=function(_zpi,_h5e,_mfh,_xnn){var _qxj=_8qn._u0g(_zpi, "dataItemCalculatedMeasure");_qxj.setAttribute("name", _h5e);var _fhf=_8qn._u0g(_qxj, "dmDimension");this._ah1(_fhf, "DUN", _h5e, _xnn);var _p3h=_8qn._u0g(_qxj, "expression");_p3h.text=_mfh;return _qxj;};_b45.prototype._ah1=function(_33m,_h7e,_h5e,_mfh){var _tvd=_8qn._u0g(_33m, _h7e);_tvd.text=_mfh;_tvd.removeAttribute("xml:space");var _bif=_8qn._u0g(_33m, "itemCaption");_bif.text=_h5e;_bif.removeAttribute("xml:space");};_b45.prototype._rth=function(_oon){if(this._3jm&&this._3jm.getAttribute("name")){_oon=this._3jm.getAttribute("name") + " -> " + _oon;}else if(this._nok[0]&&this._nok[0].getAttribute("name")){_oon=this._nok[0].getAttribute("name") + " -> " + _oon;}this._8tb._gn8(_oon);};_b45.prototype._k71=function(){if(!this._jsl.data.dataViews||!this._534||!this._534.modelInfo){return;}var _4x7=[];for(var i=0; i<this._jsl.data.dataViews.length;++i){if(this._jsl.data.dataViews.length>1&&this._jsl.visId!="com.ibm.vis.rave2bundlecomposite"){_4x7=[];}var _iia=this._jsl.data.dataViews[i];var _fsm=this._jsl.visId=="com.ibm.vis.rave2bundlecomposite"?this._nok[0]:this._nok[i];for(var j=0; j<_iia.dataItems.length;++j){var _7ya=_iia.dataItems[j];var _s17=this._mhb(_7ya.itemId);var _h5e=_s17?_s17.label:_7ya.itemLabel;if(_4x7.indexOf(_h5e)!=-1){continue;}if(_7ya.binningDefinition){this._rth(_h5e+": " + _7ya.binningDefinition.label + " (" + _7ya.binningDefinition.binning.auto.numberOfBins + ")");}_4x7.push(_h5e);var _sui=this._4pe(_7ya.itemId, this._534.modelInfo.querySubject);if(!_sui){_sui=this._4pe(_7ya.itemId, this._534.modelInfo.calculation);}var _zf9=this._hf6(_sui);if(_sui&&_sui.usage==="fact"){this._5o5.push(_h5e);}var _mfh, _8rf;if(!this._m83(_h5e)&&this._jsl.visId=='summary'){if(_zf9){var _zpi=this._nok[i].selectSingleNode("selection");this._m53(_zpi, _h5e+" Count", "count(1 within set [" + _h5e + "])");}else if(this._534.dbDataSource.type=="module"){_8rf='countDistinct';}else{_8rf='count';}}if(_s17){_mfh=_s17.expression;_8rf=_s17.regularAggregate;}else if(this._534.dataItemsLongBracketed&&this._534.dataItemsLongBracketed[_7ya.itemId]){_mfh=this._534.dataItemsLongBracketed[_7ya.itemId];}else if (this._534.dbDataSource.type=="module"&&_7ya.itemId != "_multiMeasuresSeries"){_mfh=this._t6(_7ya.itemLabel);if(!_mfh){_7ya.notFound=true;this._rth(_h5e);continue; }}else{_mfh=_7ya.itemId;}var _tj3=this._ez(_7ya.aggregate||_8rf);this._po8(_h5e, _sui, _zf9, _tj3, _mfh, _fsm);}}};_b45.prototype._t6=function(_045){if(!this._534.dbDataSource.shaping||!this._534.dbDataSource.shaping.moserJSON ||!this._534.dbDataSource.shaping.moserJSON.querySubject){return null;}var _sui;var _rr6=this._534.dbDataSource.shaping.moserJSON.querySubject[0].item;for(var i=0; i<_rr6.length; i++){if(_rr6[i].queryItem.label==_045){_sui=_rr6[i].queryItem;break;}}if(!_sui||!_sui.property||!_sui.property[0].value){return null;}var _ygc=JSON.parse(_sui.property[0].value);if(!_ygc){return null;}if(_ygc.func!="simpleCalculation"){return null;}var _z39=_ygc.elementOperands;var _iha=_ygc.numberOperands;if(_z39.length!=_iha.length){return null;}var _mfh=_z39[0]||_iha[0];var _90j=_ygc.operation;var _bfl;for(var i=1; i<_z39.length; i++){_bfl=_z39[i]||_iha[i];if(_bfl){_mfh += (' ' + _90j + ' ' + _bfl);}}return _mfh;};_b45.prototype._hf6=function(_sui){if(!_sui||!_sui.sourceCategory||_sui.sourceCategory=="column"){return null;}var _zf9={};var _d84=this._534.modelInfo.querySubject[_sui.querySubjectIndex];if(_d84){_zf9.DUN=_d84.idForExpression;_zf9.HUN=_d84.item[0].queryItem.idForExpression;}return _zf9;};_b45.prototype._ps1=function(){this._653();if(!this._3jm){return false;}this._f09.selectSingleNode("contents").appendChild(this._3jm); return true;};_b45.prototype._653=function(){switch(this._jsl.visId){case "JQGrid":this._ai6();break;case "summary":this._ip2();break;case "crosstab":this._ei6();break;case "list":this._rth(this._jsl.visId);break;default:this._di6();break;}};_b45.prototype._ez=function(_k02){switch(_k02){case "avg":return "average";case "sum":return "summarize";case "min":return "minimum";case "max":return "maximum";case "count":return "count";case "countdistinct":return "countDistinct";default:return _k02; }};_b45.prototype._uu1=function(){if(!this._jsl.data.dataViews){return [];}var _p5f=[];for(var i=0; i<this._jsl.data.dataViews.length;++i){for(var j=0; j<this._jsl.data.dataViews[i].dataItems.length;++j){var _7ya=this._jsl.data.dataViews[i].dataItems[j];if(!_7ya.selection||_7ya.selection.length==0){continue;}for(var k=0; k<_7ya.selection.length;++k){var _se2=_7ya.selection[k];if(_se2.topBottom&&(_se2.topBottom.type=="topcount"||_se2.topBottom.type=="bottomcount")&&_se2.topBottom.rank==true){_p5f.push({itemLabel: _7ya.itemLabel,itemId: _7ya.itemId,contextItemId: _se2.context?_se2.context[0].itemId:""}); }}}}return _p5f;};_b45.prototype._ai6=function(){if(!this._nok[0]){return;}var _h2k=this._8tb._c3i.selectSingleNode("template[@name='List']").cloneNode(true);this._3jm=_h2k.selectSingleNode(".//layouts/layout//list");this._my3();this._3jm.setAttribute("refQuery", this._nok[0].getAttribute("name"));this._e1();var _mif=this._4h7();var _o4h=null;var _19=(_mif.childNodes.length==this._1q.length);if(!_19){_o4h=this._go8();this._j53();}this._np(_mif, _o4h);this._3t();this._6a();this._tz3();if(this._8tb._jo2(this._534)){this._0o();}this._xs();};_b45.prototype._3t=function(){if(!this._jsl.data.dataViews){return;}for(var i=0; i<this._jsl.data.dataViews.length;++i){for(var j=0; j<this._jsl.data.dataViews[i].dataItems.length;++j){var _7ya=this._jsl.data.dataViews[i].dataItems[j];if(!_7ya.selection||_7ya.selection.length==0){continue;}for(var k=0; k<_7ya.selection.length;++k){var _se2=_7ya.selection[k];switch(_se2.operation){case "order":if(!_se2.sort.rankSort){this._u52(_7ya, _se2);}break;case "keep":this._4t(_7ya, _se2);break;case "add":if(!_se2.children){break;}this._t52(_7ya, _se2);break;}}}}};_b45.prototype._t52=function(_7ya,_se2){var _zpi=this._nok[0].selectSingleNode("selection");var _h5e=_7ya.itemLabel;var _qxj=_zpi.selectSingleNode("./dataItemChildrenSet[@name='" + _h5e + "']");if(_qxj){var _dln=_qxj.selectSingleNode("./dmMember/MUN");if(_dln){_dln.text=_se2.children;}}else{_qxj=_zpi.selectSingleNode("./dataItemHierarchySet[@name='" + _h5e + "']");if(!_qxj){return;}var _wkn=_qxj.selectSingleNode("./dmDimension/DUN");var _5ln=_qxj.selectSingleNode("./dmDimension/HUN");_zpi.removeChild(_qxj);this._5t1(_zpi, _h5e, _se2.children, _wkn, _5ln);}};_b45.prototype._vs1=function(_h5e,_3ek,_33m){var _52k=_8qn._w6b(_33m, "sortList");var _42k=_8qn._u0g(_52k, "sortItem");_42k.setAttribute("sortOrder", _3ek=="desc"?"descending":"ascending");_42k.setAttribute("refDataItem", _h5e);};_b45.prototype._u52=function(_7ya,_se2){var _h5e=_7ya.itemLabel;var _3ek=_se2.sort.type;if(this._3jm.nodeName=="list"){this._vs1(_h5e, _3ek, this._3jm); var _gni=this._3jm.selectSingleNode(".//listGroup[@refDataItem='" + _h5e + "']");if(_gni){this._vs1(_h5e, _3ek, _gni);}}else if(this._3jm.nodeName=="crosstab"){var _ex5=this._3jm.selectSingleNode(".//crosstabNodeMember[@refDataItem='" + _h5e + "']");this._vs1(_h5e, _3ek, _ex5);}};_b45.prototype._ug6=function(_qxj){return(_qxj.nodeName=="dataItem");};_b45.prototype._8=function(_7ya,_se2){var _cug=_se2.topBottom.type=="topcount";var _cdk="Rank (" + _7ya.itemLabel + ")";var _6f2='[' + _7ya.itemLabel + ']';var _m1b="rank(distinct " + (_cug?_6f2:_6f2 + "*(-1)") + " desc)";var _zpi=this._nok[0].selectSingleNode("selection");this._m53(_zpi, _cdk, _m1b);var _c9c=_8qn._w6b(this._nok[0], "detailFilters");var _eud=_8qn._u0g(_c9c, "detailFilter");if(!this._8tb._jo2(this._534)){_eud.setAttribute("postAutoAggregation", "true");}var _nmi=_8qn._u0g(_eud, "filterDefinition");var _t9c=_8qn._u0g(_nmi, "filterCompare");_t9c.setAttribute("refDataItem", _cdk);var _l98='decimal';var _s17=this._mhb(_7ya.itemId);if(_s17){_l98=_s17.highlevelDatatype;}else{var _sui=this._4pe(_7ya.itemId, this._534.modelInfo.querySubject);if(_sui){_l98=this._z1a(_sui);} }_t9c.setAttribute("dataType", _l98);_t9c.setAttribute("operator", "lessThanEqual");_8qn._u0g(_t9c, "filterValue").text=_se2.topBottom.value;};_b45.prototype._42=function(_7ya,_se2){var _ax2=_se2.context?_se2.context[0].itemId:null;var _qxj=this._nok[0].selectSingleNode("./selection/*[@name='" + _7ya.itemLabel + "']"); if(this._ug6(_qxj)){this._11(_ax2, _7ya, _se2);}else{this._s(_qxj, _ax2, _7ya, _se2);}};_b45.prototype._4t=function(_7ya,_se2){if(this._m83(_7ya.itemLabel)){this._8(_7ya, _se2);}else{this._42(_7ya, _se2);}};_b45.prototype._11=function(_ax2,_7ya,_se2){if(_se2.topBottom.type=="toppercent"||_se2.topBottom.type=="bottompercent"){var _qxj=this._nok[0].selectSingleNode("./selection/*[@name='" + _7ya.itemLabel + "']"); var _jx5=_qxj.selectSingleNode("expression");_jx5.text=_se2.topBottom.type+"(" + _jx5.text + "," +_se2.topBottom.value+"," + _ax2 + ")";return;}var _cug=(_se2.topBottom.type=="topcount");var _cdk="Rank (" + _7ya.itemLabel + ")";var _s27=(this._534.dataItemsLongBracketed&&this._534.dataItemsLongBracketed[_ax2] ?this._534.dataItemsLongBracketed[_ax2]:_ax2);var _894=(this._534.dataItemsLongBracketed&&this._534.dataItemsLongBracketed[_7ya.itemId] ?this._534.dataItemsLongBracketed[_7ya.itemId]:_7ya.itemId);var _sj3=_cug?_s27:_s27+"*(-1)";var _m1b="rank(distinct total(" + _sj3 + " for " + _894 + ") desc)";var _zpi=this._nok[0].selectSingleNode("selection");this._m53(_zpi, _cdk, _m1b);var _c9c=_8qn._w6b(this._nok[0], "detailFilters");var _eud=_8qn._u0g(_c9c, "detailFilter");_eud.setAttribute("postAutoAggregation", "true");var _nmi=_8qn._u0g(_eud, "filterDefinition");var _t9c=_8qn._u0g(_nmi, "filterCompare");_t9c.setAttribute("refDataItem", _cdk);var _sui=this._4pe(_ax2, this._534.modelInfo.querySubject);var _l98=this._z1a(_sui);_t9c.setAttribute("dataType", _l98);_t9c.setAttribute("operator", "lessThanEqual");_8qn._u0g(_t9c, "filterValue").text=_se2.topBottom.value;};_b45.prototype._s=function(_qxj,_ax2,_7ya,_se2){var _h5e=_7ya.itemLabel;var _bln=(_qxj.selectSingleNode(".//LUN"));var _dln=(_qxj.selectSingleNode(".//MUN"));var _5ln=(_qxj.selectSingleNode(".//HUN"));var _wkn=(_qxj.selectSingleNode(".//DUN"));if(!_bln&&!_dln){this._rth(this._8tb._rf6("IDS_LBL_DASHBOARD_FILTER_TYPE") + ": " + _se2.topBottom.type);return;}var _33m=_qxj.parentNode;_33m.removeChild(_qxj);var _m8f=!_bln;if(_m8f){ this._98(_33m, _h5e, _se2, _ax2, _dln);}else{this._a8(_33m, _h5e, _se2, _ax2, _bln, _wkn, _5ln);}if(this._lte&&this._lte.length>0){for(var i=0; i<this._lte.length; i++){var _6ch=this._lte[i];if(_6ch.itemLabel!=_h5e){continue;}var _7kc=_m8f?"children(" + _dln.text + ")":_6ch.itemId;this._ud6(_h5e, _6ch.contextItemId, _7kc, _33m);}}};_b45.prototype._ud6=function(_vdn,_ucl,_7kc,_33m){var _qxj=_8qn._u0g(_33m, "dataItem");_qxj.setAttribute("name", "Rank (" + _vdn + ")");var _jx5=_8qn._u0g(_qxj, "expression");_jx5.text="rank(distinct total(" + _ucl + " for " + _7kc + ") desc for report)";};_b45.prototype._98=function(_33m,_h5e,_se2,_ax2,_dln){var _qxj=_8qn._u0g(_33m, "dataItem");_qxj.setAttribute("name", _h5e);var _jx5=_8qn._u0g(_qxj, "expression");_jx5.text=_se2.topBottom.type+"(children(" + _dln.text + ")," +_se2.topBottom.value+"," + _ax2 + ")";};_b45.prototype._a8=function(_33m, _h5e, _se2, _ax2, _bln, _wkn, _5ln){var _ex6=_8qn._u0g(_33m, "dataItemMemberSet");_ex6.setAttribute("name", _h5e);var _fcc=_8qn._u0g(_ex6, "setDefinition");var _yy6=_8qn._u0g(_fcc, this._2h1(_se2.topBottom.type));_yy6.setAttribute("value", _se2.topBottom.value);var _m4l=_8qn._u0g(_yy6, "dmTuple");var _hhf=_8qn._u0g(_m4l, "dmTuplePart");var _b88=this._4pe(_ax2, this._534.modelInfo.querySubject);var _aw2=this._hf6(_b88);var _xxj=_8qn._u0g(_hhf, "dmMember");this._ah1(_xxj, "MUN", _h5e, _ax2);var _fhf=_8qn._u0g(_hhf, "dmDimension");this._ah1(_fhf, "DUN", _h5e, _aw2.DUN);var _j3l=_8qn._u0g(_yy6, "baseSet");var _xd9=_8qn._u0g(_j3l, "setLevelMembers");var _l4l=_8qn._u0g(_xd9, "dmLevel");this._ah1(_l4l, "LUN", _h5e, _bln.text);_fhf=_8qn._u0g(_ex6, "dmDimension");this._ah1(_fhf, "DUN", _h5e, _wkn.text);var _ghf=_8qn._u0g(_ex6, "dmHierarchy");this._ah1(_ghf, "HUN", _h5e, _5ln.text);};_b45.prototype._2h1=function(_1i9){switch(_1i9){case "topcount":return "setTopCount";case "bottomcount":return "setBottomCount";case "toppercent":return "setTopPercent";case "bottompercent":return "setBottomPercent";default:this._rth(this._8tb._rf6("IDS_LBL_DASHBOARD_FILTER_TYPE") + ": " + _1i9);return null;} };_b45.prototype._2m2=function(_e5e){switch(_e5e){case "currency":return "currencyFormat";case "number":return "numberFormat";case "percent":return "percentFormat";case undefined:return null;default:this._rth(this._8tb._rf6("IDS_LBL_DASHBOARD_FORMAT_TYPE") + ": " + _e5e);return null;} };_b45.prototype._dz=function(_627){switch(_627){case "maximumFractionDigits":return "decimalSize";case "currencyCode":case "useGrouping":return _627;case "decimalFormatLength":this._rth(this._8tb._rf6("IDS_LBL_DASHBOARD_FORMAT_TYPE") + ": " + _627);return null;case undefined:return null;default:return null;} };_b45.prototype._n2=function(_71e){var _tae=this._2m2(_71e.type);if(!_tae){return null;}var _vyd=this._8tb._cnh("dataFormat");var _615=_8qn._u0g(_vyd, _tae);Object.keys(_71e).forEach(function(_gon){var _147=this._dz(_gon);if(_147){_615.setAttribute(_147, _71e[_gon]);}}.bind(this));return(_vyd.childNodes.length==0?null:_vyd);};_b45.prototype._gw3=function(_h5e){var _5z5;switch(this._3jm.nodeName){case "list":_5z5=this._3jm.selectSingleNode(".//*[@refDataItem='" + _h5e + "']//ancestor::listColumn[1]/listColumnBody/style");break;case "crosstab":if(this._5o5.length>1){this._rth(this._8tb._rf6("IDS_LBL_DASHBOARD_FORMAT") + ": " + _h5e);}_5z5=this._3jm.selectSingleNode(".//crosstabFactCell/style");break;case "vizControl":var _cxb=this._3jm.selectSingleNode(".//vcSlotDsColumn[@refDsColumn='" + _h5e + "']");if(_cxb){_5z5=_8qn._u0g(_cxb, "vcValueFormat");}break;default:return;}return _5z5;};_b45.prototype._3z3=function(_5qa){var _a5e=_5qa.getAttribute("currencyCode");if(_a5e){var CURRENCY_SYMBOL_MAP={ARS: '$',AUD: '$',BDT: '৳',BRL: 'R$',CAD: '$',CHF: 'Fr.',CLP: '$',CNY: '¥',COP: '$',DKK: 'kr',EUR: '€',GBP: '£',HKD: 'HK$',HRK: 'kn',HUF: 'Ft',IDR: 'Rp',ILS: '₪',INR: '₹',IRR: 'ريال',JPY: '¥',KRW: '₩',KZT: '₸',MXN: '$',MYR: 'RM',NGN: '₦',NOK: 'kr',PEN: 'S/.',PHP: '₱',PKR: '₨',PLN: 'zł',RON: 'lei',RUB: 'руб.',SEK: 'kr',SGD: 'S$',THB: '฿',TRY: 'TL',TWD: 'NT$',UAH: '₴',USD: '$',VEF: 'Bs.F.',VND: '₫',ZAR: 'R'};var _6za=CURRENCY_SYMBOL_MAP[_a5e]||_a5e;_5qa.setAttribute("currencySymbol", CURRENCY_SYMBOL_MAP[_a5e]);}};_b45.prototype._6a=function(){if(!this._jsl.data.dataViews){return;}for(var i=0; i<this._jsl.data.dataViews.length;++i){for(var j=0; j<this._jsl.data.dataViews[i].dataItems.length;++j){var _7ya=this._jsl.data.dataViews[i].dataItems[j];var _s17=this._mhb(_7ya.itemId);var _h5e=_s17?_s17.label:_7ya.itemLabel;if(!_7ya.format||!_7ya.format.formatSpec){continue;}var _vyd=this._n2(_7ya.format.formatSpec); if(!_vyd){continue;}var _5z5=this._gw3(_h5e);if(!_5z5){continue;}if(this._3jm.nodeName==="vizControl"){var _5qa=_vyd.selectSingleNode(".//currencyFormat");if(_5qa){this._3z3(_5qa);}}_5z5.appendChild(_vyd);if(this._3jm.nodeName=="list"){var nlSummaryMeasures=this._3jm.selectNodes(".//*[@refDataItem='Summary(" + _h5e + ")']//ancestor::rowCell[1]/style");for(var k=0; k<nlSummaryMeasures.length;++k){nlSummaryMeasures.item(k).appendChild(_vyd.cloneNode(true));}}}}};_b45.prototype._4o2=function(_1c8,key){for(var i=0; i<this._jsl.data.dataViews.length;++i){for(var j=0; j<this._jsl.data.dataViews[i].dataItems.length;++j){ if(!this._jsl.data.dataViews[i].dataItems[j].notFound&&this._jsl.data.dataViews[i].dataItems[j][key]==_1c8){return this._jsl.data.dataViews[i].dataItems[j];}}}return null;};_b45.prototype._e1=function(){var _42b, _j3e, _jx7=[];for(var k=0; k<this._jsl.slotmapping.slots.length;++k){var _ybn=this._jsl.slotmapping.slots[k];if(_ybn.name=='rank'){continue;}else if(_ybn.name!='grid_cols'){continue;}var _wx7=_ybn.dataItems;for(var i=0; i<_wx7.length;++i){_42b=_wx7[i];_j3e=this._4o2(_42b, "id");if(!_j3e){continue;}var _3ci=this._t3a(_j3e.itemLabel);var _s17=this._mhb(_j3e.itemId);var _w1c=!!_s17||!!this._t6(_j3e.itemLabel);var _k69=_3ci||_w1c;var _h5e=_s17?_s17.label:_j3e.itemLabel;if(_k69){this._1q.push({name: _h5e,id: _42b});}else{_jx7.push(_42b);}}for(var i=0; i<this._1q.length;++i){_jx7.push(this._1q[i].id);}if(this._1q.length>0){_ybn.dataItems=_jx7;}}};_b45.prototype._4h7=function(){var _mif=_8qn._u0g(this._3jm, "listColumns");var _42b, _j3e;for(var k=0; k<this._jsl.slotmapping.slots.length;++k){var _ybn=this._jsl.slotmapping.slots[k];if(_ybn.name=='rank'){_42b=_ybn.dataItems[0];_j3e=this._4o2(_42b, "id");if(!_j3e){continue;}_mif.appendChild(this._fo8("Rank (" + _j3e.itemLabel + ")"));continue;}else if(_ybn.name!='grid_cols'){this._rth(this._8tb._rf6("IDS_LBL_DASHBOARD_SLOT") + ": " + _ybn.name);continue;}var _wx7=_ybn.dataItems;for(var i=0; i<_wx7.length;++i){_42b=_wx7[i];_j3e=this._4o2(_42b, "id");if(!_j3e){continue;}var _3ci=this._t3a(_j3e.itemLabel);var _s17=this._mhb(_j3e.itemId);var _w1c=!!_s17||!!this._t6(_j3e.itemLabel);var _k69=_3ci||_w1c;var _h5e=_s17?_s17.label:_j3e.itemLabel;_mif.appendChild(this._fo8(_h5e, _k69));}}return _mif;};_b45.prototype._fo8=function(_h5e,_k69){var _h2k=this._8tb._c3i.selectSingleNode("template[@name='ListColumn']").cloneNode(true);var _m4h=_h2k.selectSingleNode("listColumn");var nl=_m4h.selectNodes(".//*[@refDataItem]");for(var i=0; i<nl.length; i++){nl.item(i).setAttribute("refDataItem", _h5e);}if(_k69){_m4h.selectSingleNode("listColumnBody/style/defaultStyles/defaultStyle").setAttribute("refStyle", "lm");}return _m4h;};_b45.prototype._m83=function(_h5e){if(this._5o5.indexOf(_h5e)!=-1){return true;}for(var i=0; i<this._1q.length;++i){if(_h5e==this._1q[i].name){return true;}}return false;};_b45.prototype._go8=function(){this._lte=this._uu1();if(this._lte&&this._lte.length>0){return;}var _o4h;for(var k=0; k<this._jsl.slotmapping.slots.length;++k){if(this._jsl.slotmapping.slots[k].name!='grid_cols'){continue;}var _wx7=this._jsl.slotmapping.slots[k].dataItems;for(var i=0; i<_wx7.length;++i){var _42b=_wx7[i];var _j3e=this._4o2(_42b, "id");if(!_j3e){continue;}var _t0l=_wx7.length-this._1q.length-i;if(!this._m83(_j3e.itemLabel)&&_t0l>1){_o4h=_8qn._w6b(this._3jm, "listGroups");_o4h.appendChild(this._wz9(_j3e.itemLabel, _t0l));}}}return _o4h;};_b45.prototype._wz9=function(_h5e,_t0l){var _gni;if(_t0l<2){_gni=this._8tb._cnh("listGroup");_gni.setAttribute("refDataItem", _h5e);return _gni;}var _h2k=this._8tb._c3i.selectSingleNode("template[@name='ListGroup']").cloneNode(true);_gni=_h2k.selectSingleNode("listGroup");_gni.setAttribute("refDataItem", _h5e);var _s1k=_h2k.selectSingleNode(".//rowCells");var _27l=_s1k.selectSingleNode("rowCell[@colSpan]");_27l.setAttribute("colSpan", _t0l);var _69c=_27l.selectSingleNode("contents/textItem/dataSource/dataItemValue");_69c.setAttribute("refDataItem", _h5e);if(this._xo8()){var _n4h=_gni.selectSingleNode("listFooter");_gni.removeChild(_n4h);return _gni;}this._1q.forEach(function(_6bn){ _s1k.appendChild(this._tt(_6bn.name));}.bind(this));return _gni;};_b45.prototype._xo8=function(){return(this._oo2()||this._1q.length==0||(this._lte&&this._lte.length>0));};_b45.prototype._tt=function(_9uf){var _h2k=this._8tb._c3i.selectSingleNode("template[@name='ListGroupSummary']").cloneNode(true);var _27l=_h2k.selectSingleNode("rowCell");var _69c=_27l.selectSingleNode("contents/textItem/dataSource/dataItemValue");_69c.setAttribute("refDataItem", "Summary(" + _9uf + ")");return _27l;};_b45.prototype._np=function(_mif,_o4h){var _d15=_mif.selectNodes(".//listColumnRowSpan");for(var i=0; i<_d15.length; i++){var _wx6=_d15.item(i);var _5wf=_wx6.getAttribute("refDataItem");var _gni=_o4h?_o4h.selectSingleNode("listGroup[@refDataItem='" + _5wf + "']"):null;if(!_gni){var _33m=_wx6.parentNode;_33m.removeChild(_wx6);}}};_b45.prototype._j53=function(){if(this._xo8()){return;}var _h2k=this._8tb._c3i.selectSingleNode("template[@name='ListOverallGroup']").cloneNode(true);var _748=_h2k.selectSingleNode("listOverallGroup");var _s1k=_748.selectSingleNode(".//rowCells");var _27l=_s1k.selectSingleNode("rowCell[@colSpan]");for(var k=0; k<this._jsl.slotmapping.slots.length;++k){if(this._jsl.slotmapping.slots[k].name!='grid_cols'){continue;}var _t0l=0;var _wx7=this._jsl.slotmapping.slots[k].dataItems;_t0l=_wx7.length-this._1q.length;if(_t0l>0){_27l.setAttribute("colSpan", _t0l);}else{_27l.removeAttribute("colSpan");}}this._1q.forEach(function(_6bn){ _s1k.appendChild(this._tt(_6bn.name));this._i71(_6bn.name);}.bind(this)); this._3jm.appendChild(_748);};_b45.prototype._i71=function(_h5e){var _zpi=this._nok[0].selectSingleNode("selection");var _405=_8qn._u0g(_zpi, "dataItemListSummary");_405.setAttribute("refDataItem", _h5e);_405.setAttribute("aggregateMethod", "aggregate");_405.setAttribute("name", "Summary(" + _h5e + ")");};_b45.prototype._0o=function(){var _d2k;switch(this._3jm.nodeName){case "list":_d2k=_8qn._u0g(this._3jm, "listSuppress");break;case "crosstab":_d2k=_8qn._u0g(this._3jm, "crosstabSuppress");break;}if(_d2k){_d2k.setAttribute("zero", "false");_d2k.setAttribute("divByZero", "false");_d2k.setAttribute("overflow", "false");}else{for(var i=0; i<this._nok.length; i++){var _fsm=this._nok[i];var _p6h=_8qn._u0g(_fsm, "queryHints");var _sbc=_8qn._u0g(_p6h, "suppress");_sbc.setAttribute("value", "nulls");}}};_b45.prototype._tz3=function(){if(!this._y0f){return;}if(this._y0f.width||this._y0f.height){var _b2k=this._3jm.selectSingleNode("style/CSS");if(_b2k){var _l8k=_b2k.getAttribute("value");if(this._y0f.width&&this._y0f.width.indexOf("%")==-1){_l8k += "width:" + this._y0f.width + ";";}if(this._y0f.height&&this._y0f.height.indexOf("%")==-1){_l8k+= "height:" + this._y0f.height;}_b2k.setAttribute("value", _l8k);}}};_b45.prototype._5v1=function(_bzb){var _bu2=[];for(var i=0; i<_bzb.length;++i){var _b5k=this._4o2(_bzb[i], "id");if(_b5k){_bu2.push(_b5k);} }return _bu2;};_b45.prototype._ei6=function(){var _h2k=this._8tb._c3i.selectSingleNode("template[@name='Crosstab']").cloneNode(true);this._3jm=_h2k.selectSingleNode(".//layouts/layout//crosstab");this._my3();this._3jm.setAttribute("refQuery", this._nok[0].getAttribute("name"));var _2dh, _bu2, _131;var _btg=false;for(var i=0; i<this._jsl.slotmapping.slots.length;++i){var _ybn=this._jsl.slotmapping.slots[i];_bu2=this._5v1(_ybn.dataItems);switch(_ybn.name){case "values":_2dh=_ybn;_131=_bu2;break;case "row_level1":this._48(_ybn, _bu2, 1);break;case "column_level1":_btg=true;this._48(_ybn, _bu2, 2);break;}}if(_btg&&_2dh.dataItems.length==1){this._4a(_2dh, _131[0].itemLabel, 3);}else{this._o5(_2dh, _131, 3);_8qn._k5g(this._3jm, "crosstabCorner/contents/*");_8qn._k5g(this._3jm, "defaultMeasure");}this._3t();this._6a();this._tz3();if(this._8tb._jo2(this._534)){this._0o();}this._zs();};_b45.prototype._o5=function(_2dh,_131,_nji){var _2e2;var _kb9=this._3jm.selectSingleNode("crosstabColumns");if(!_kb9){_2e2=_8qn._u0g(this._3jm, "crosstabColumns");}else{var _ytd=_kb9.selectSingleNode("crosstabNode");_2e2=_8qn._u0g(_ytd, "crosstabNestedNodes");}this._au(_2e2, _131);};_b45.prototype._au=function(_2e2,_131){for(var i=0; i<_131.length;++i){ var _ytd=_8qn._u0g(_2e2, "crosstabNode");var _305=_8qn._u0g(_ytd, "crosstabNodeMembers");var _ex5=this._bi4(_131[i].itemLabel);_305.appendChild(_ex5);}};_b45.prototype._48=function(_ybn,_bu2,_nji){var _fh3=_8qn._u0g(this._3jm, _ybn.name==="row_level1"?"crosstabRows":"crosstabColumns");this._ueb(_bu2, _fh3, _nji);};_b45.prototype._4a=function(_ybn,_b16,_nji){var _49c=this._3jm.selectSingleNode(".//dataItemLabel");_49c.setAttribute("refDataItem", _b16);var _eqa=this._3jm.selectSingleNode(".//defaultMeasure");_eqa.setAttribute("refDataItem", _b16);};_b45.prototype._ueb=function(_bu2,_fh3,_nji){var _b38=_8qn._u0g(_fh3, "crosstabNode");if(!_bu2||_bu2.length==0){return;}this._g71(_bu2[0].itemLabel, _b38, _fh3, _nji);var addNestedNodes=function(_klm,_ugf){if(_klm.length===0){return; }else{var _0w5=_8qn._u0g(_ugf, "crosstabNestedNodes");var _ytd=_8qn._u0g(_0w5, "crosstabNode");addNestedNodes(_klm.slice(1), _ytd);this._g71(_klm[0].itemLabel, _ytd, _0w5);}}.bind(this);addNestedNodes(_bu2.slice(1), _b38);};_b45.prototype._g71=function(_h5e,_xx6,_tz1,_nji){var _305=_8qn._u0g(_xx6, "crosstabNodeMembers");var _ex5=this._bi4(_h5e, _nji);_305.appendChild(_ex5);if(!this._t3a(_h5e)&&!this._oo2()){var _ytd=_8qn._u0g(_tz1, "crosstabNode");_305=_8qn._u0g(_ytd, "crosstabNodeMembers");_ex5=this._581(_h5e, "ol", null, "ov");_305.appendChild(_ex5);this._j71(_h5e);} };_b45.prototype._t3a=function(_h5e){return(this._5o5.indexOf(_h5e)!=-1);};_b45.prototype._oo2=function(){if(!this._jsl.properties){return false;}for(var i=0; i<this._jsl.properties.length; i++){if(this._jsl.properties[i]&&this._jsl.properties[i].id=='hideSummaries'&&this._jsl.properties[i].value==true){return true;}}return false;};_b45.prototype._1o=function(){var _nga=this._jsl.localFilters;if(!_nga||_nga.length==0){return;}var _c9c=_8qn._w6b(this._nok[0], "detailFilters");for(var i=0; i<_nga.length;++i){var _dfc=_nga[i];var _eud=_8qn._u0g(_c9c, "detailFilter");_eud.setAttribute("postAutoAggregation", _dfc.preOrPost==="post"?"true":"false");var _h5e=this._t81(_dfc.columnId);var _sui=this._4pe(_dfc.columnId, this._534.modelInfo.querySubject);if(!_h5e&&!_sui){continue;}var _zf9=this._hf6(_sui);var _x1m;if(_dfc.conditions){_x1m=_8qn._w6b(_eud, "filterExpression");if(_dfc.operator=="notin"){_x1m.text += "not( ";} this._f4(_dfc.conditions, _x1m, _sui);if(_dfc.values&&_dfc.values.length>0){for(var j=0; j<_dfc.values.length;++j){ _x1m.text += " or ";if(_zf9){_x1m.text+= "caption(";}_x1m.text+= _dfc.id;if(_zf9){_x1m.text+= ")";}_x1m.text += " = '" + _dfc.values[j].d + "'";}}if(_dfc.operator=="notin"){_x1m.text += " )";} }else{_x1m=_8qn._u0g(_eud, "filterDefinition");this._2t(_dfc, _x1m, _sui);}if(_x1m&&_x1m.childNodes.length==0){if(_h5e){this._rth(this._8tb._rf6("IDS_LBL_DASHBOARD_FILTER") + ": " + _h5e);}_c9c.removeChild(_eud);}}this._oi6(_c9c);};_b45.prototype._oi6=function(_c9c){if(_c9c.childNodes.length==0){this._nok[0].removeChild(_c9c);}else {var _jx6=_c9c.selectSingleNode("detailFilter");if(_jx6&&_jx6.childNodes.length==0){this._nok[0].removeChild(_c9c);}}};_b45.prototype._un=function(_x1m,_3ti,_mck,_sui){_x1m.text+= "lower(";var _zf9=this._hf6(_sui);if(_zf9){_x1m.text+= "caption(";}_x1m.text+= _3ti.itemId+")";if(_zf9){_x1m.text+= ")";}_x1m.text += (" " + _mck + " (lower('" + _3ti.values[0] + "'))");};_b45.prototype._f4=function(_3ti,_x1m,_sui){var _mck;var _evm;var _nva;if(_3ti.and){_evm=" and ";_nva=_3ti.and;}else if(_3ti.or){_evm=" or ";_nva=_3ti.or;}if(_evm){for(var i=0; i<_nva.length;++i){this._f4(_nva[i], _x1m, _sui);if(i<_nva.length-1){_x1m.text+= _evm;}}}else if(_3ti.not){_x1m.text += " not ( ";this._f4(_3ti.not, _x1m, _sui);_x1m.text += " )"; }else{_mck=this._p6(_3ti.operator);this._un(_x1m, _3ti, _mck, _sui); }};_b45.prototype._2t=function(_dfc,_x1m,_sui){switch(_dfc.operator){case "and":case "or":case "not":var _df2=this._9a(_dfc.operator);if(!_df2){break;}_x1m=_8qn._u0g(_x1m, _df2);for(var i=0; i<_dfc.values.length;++i){this._2t(_dfc.values[i], _x1m, _sui);} break;default:this._n5(_dfc, _x1m, _sui);break;}};_b45.prototype._9a=function(_0f2){switch(_0f2){case "and":return "filterAnd";case "or":return "filterOr";case "not":return "filterNot";default:this._rth(this._8tb._rf6("IDS_LBL_DASHBOARD_FILTER_TYPE") + ": " + _0f2);return null;}};_b45.prototype._p6=function(_4o1){var _mck;switch(_4o1){case "containsignorecase":_mck="contains";break;case "beginswith":_mck="starts with";break;case "endswith":_mck="ends with";break;case "in":_mck="in";break;default:this._rth(this._8tb._rf6("IDS_LBL_DASHBOARD_FILTER_TYPE") + ": " + _4o1);break;}return _mck;};_b45.prototype._z1a=function(_sui){if(!_sui){return null;}if(_sui.highlevelDatatype){return _sui.highlevelDatatype;}if(_sui.item&&_sui.item[0]&&_sui.item[0].queryItem){return this._z1a(_sui.item[0].queryItem);}return null;};_b45.prototype._n5=function(_dfc,_x1m,_sui){var _zf9=_sui?this._hf6(_sui):null;var _s17=this._mhb(_dfc.columnId);var _h5e;var _l98;if(_s17){_h5e=_s17.label;_l98=_s17.highlevelDatatype;}else{_h5e=this._t81(_dfc.columnId);_l98=this._z1a(_sui);}if(!_h5e&&_sui){_h5e=_sui.label;if (!this._nok[0].selectSingleNode(".//*[@name = '" + _h5e + "']")){var _zpi=this._nok[0].selectSingleNode("selection");if(_zf9){this._c53(_zpi, _h5e, _dfc.columnId, _zf9);}else{this._m53(_zpi, _h5e, _dfc.columnId);}}}if(!_h5e||!_l98){return;}switch(_dfc.operator){case "between":case "notbetween":this._ns3(_dfc, _x1m, _h5e, _l98);break;case "in":case "notin":case "eq":this._5z(_dfc, _x1m, _h5e, _l98, _sui);break;case "gt":case "lt":this._ml2(_dfc, _x1m, _h5e, _l98);break;default:this._rth(this._8tb._rf6("IDS_LBL_DASHBOARD_FILTER_TYPE") + ": " + _dfc.operator);break;}return;};_b45.prototype._t81=function(_19m){var _b5k=this._4o2(_19m, "itemId");if(_b5k){return _b5k.itemLabel;} return "";};_b45.prototype._j71=function(_h5e){var _zpi=this._nok[0].selectSingleNode("selection");var _405=_8qn._u0g(_zpi, "dataItemEdgeSummary");_405.setAttribute("refDataItem", _h5e);_405.setAttribute("solveOrder", "1");_405.setAttribute("aggregateMethod", "total");_405.setAttribute("name", "Summary(" + _h5e + ")");_405.setAttribute("label", "Summary(" + _h5e + ")");};_b45.prototype._aj6=function(){if(!this._y0f){return;}var _lsm=_8qn._w6b(this._f09, "style");var _tkn=_8qn._w6b(_lsm, "CSS");var _cff=this._y0f.width;var _lsd=this._y0f.height;_tkn.setAttribute("value", "width:" + _cff + ";height:" + _lsd);};_b45.prototype._bi4=function(_h5e,_nji,_lvm,_jgf,_zjc){var _m5h=this._8tb._cnh("crosstabNodeMember");_m5h.setAttribute("refDataItem", _h5e);if(_nji){_m5h.setAttribute("edgeLocation", "e" + _nji);}this._8tb._rjk(_m5h, _lvm||_n9g._w42);this._8tb._sqc(_m5h, _jgf?_jgf:this._8tb._ne8("textItem", "memberCaption"));var _eyj=_8qn._u0g(_m5h, "factCell"); if(_zjc){this._8tb._rjk(_eyj, _zjc);}return _m5h;};_b45.prototype._581=function(_h5e,_lvm,_jgf,_zjc){var _m5h=this._8tb._cnh("crosstabNodeMember");var _dwm="Summary(" + _h5e + ")";_m5h.setAttribute("refDataItem", _dwm);this._8tb._rjk(_m5h, _lvm||_n9g._w42);this._8tb._sqc(_m5h, _jgf||this._8tb._ne8("textItem", "dataItemLabel", _dwm));var _eyj=_8qn._u0g(_m5h, "factCell");if(_zjc){this._8tb._rjk(_eyj, _zjc);}return _m5h;};_b45.prototype._my3=function(){var _8yi=this._3jm.getAttribute("name");var _ayi=this._3jm.nodeName;var _6qg=[];for(var i=0; i<this._8tb._oq5.length; i++){var _prm=this._8tb._oq5.item(i).selectSingleNode(".//"+_ayi);if(_prm){_6qg.push(_prm.getAttribute("name"));}}if(_6qg.length==0||_6qg.indexOf(_8yi)==-1){return;}var _n7e=_8qn._wh2(_6qg, _8yi, true);if(_8yi!==_n7e){this._3jm.setAttribute("name", _n7e);}};_b45.prototype._di6=function(){this._90a();if(!this._3jm){return;}var _p9i=[];var _6jd=[];for(var i=0; i<this._jsl.data.dataViews.length; i++){var _8ya=this._jsl.data.dataViews[i];var _fsm=this._nok[i];var _6ri=this._1u(_8ya);if(!_6ri){continue;}_6ri.setAttribute("refDataStore", "dataStore" + (++this._8tb._5q5));this._n52(_6ri, _p9i, _6jd);if(i==1&&this._jsl.visId=="com.ibm.vis.rave2bundlecomposite"){_fsm=this._nok[0];}this._8tb._2d(_6ri, _fsm);this._qi6(_6ri);this._ys();this._3t();this._6a();if(this._8tb._jo2(this._534)){this._0o();} }for(var i=0; i<_6jd.length;++i){if(_p9i.indexOf(_6jd[i])==-1){this._rth(this._8tb._rf6("IDS_LBL_DASHBOARD_SLOT") + ": " + _6jd[i]);}}};_b45.prototype._1u=function(_8ya){var _ki9=_8ya.dataItems[0].id;for(var i=0; i<this._jsl.slotmapping.slots.length;++i){var _ybn=this._jsl.slotmapping.slots[i];if(_ybn.dataItems.indexOf(_ki9)!=-1){return this._3jm.selectSingleNode(".//vcDataSet[.//@idSlot='" + _ybn.name + "']");}}};_b45.prototype._xs=function(){if(!this._jsl.properties){return;}var _i8k=""; var _bwi=""; for(var i=0; i<this._jsl.properties.length;++i){var _v6k=this._jsl.properties[i];switch(_v6k.id){case "cellValueFontFace":case "columnHeadingFontFace":case "cellValueColor":case "columnHeadingColor":this._rth(_v6k.id+": " + _v6k.value);continue;case "cellValueFontSize":_i8k += ("font-size:" + _v6k.value + ";");break;case "cellValueFontAlign":_i8k += ("text-align:" + _v6k.value + ";");break;case "cellValueFontBold":if(_v6k.value){_i8k+= "font-weight:bold;";}break;case "cellValueFontItalic":if(_v6k.value){_i8k+= "font-style:italic;";}break;case "cellValueFontUnderline":if(_v6k.value){_i8k+= "text-decoration:underline;";}break;case "columnHeadingFontSize":_bwi += ("font-size:" + _v6k.value + ";");break;case "columnHeadingFontAlign":_bwi += ("text-align:" + _v6k.value + ";");break;case "columnHeadingFontBold":if(_v6k.value){_bwi+= "font-weight:bold;";}break;case "columnHeadingFontItalic":if(_v6k.value){_bwi+= "font-style:italic;";}break;case "columnHeadingFontUnderline":if(_v6k.value){_bwi+= "text-decoration:underline;";}break;}}var _lsm, _tkn;if(_i8k){var _e05=this._3jm.selectSingleNode("./listColumnBodyStyle");_lsm=_8qn._w6b(_e05, "style");_tkn=_8qn._w6b(_lsm, "CSS");_tkn.setAttribute("value", _i8k);var _oz6=this._3jm.selectNodes("./listOverallGroup/listFooter/listRows/listRow/rowCells/rowCell/style");for(var j=0; j<_oz6.length; j++){var _w38=_oz6.item(j);_tkn=_8qn._w6b(_w38, "CSS");_tkn.setAttribute("value", _i8k);} }if(_bwi){var _x64=this._3jm.selectSingleNode("./listColumnTitleStyle");_lsm=_8qn._w6b(_x64, "style");_tkn=_8qn._w6b(_lsm, "CSS");_tkn.setAttribute("value", _bwi);}};_b45.prototype._zs=function(){if(!this._jsl.properties){return;}var _i8k=""; var _nh9="";var _iic="";var _hic="";for(var i=0; i<this._jsl.properties.length;++i){var _v6k=this._jsl.properties[i];switch(_v6k.id){case "valuesFontFace":case "rowHeadingFontFace":case "valueHeadingFontFace":case "columnHeadingFontFace":case "valuesColor":case "rowHeadingColor":case "valueHeadingColor":case "columnHeadingColor":this._rth(_v6k.id+": " + _v6k.value);continue;case "valuesFontSize":_i8k += ("font-size:" + _v6k.value + ";");break;case "valuesFontAlign":_i8k += ("text-align:" + _v6k.value + ";");break;case "valuesFontBold":if(_v6k.value){_i8k+= "font-weight:bold;";}break;case "valuesFontItalic":if(_v6k.value){_i8k+= "font-style:italic;";}break;case "valuesFontUnderline":if(_v6k.value){_i8k+= "text-decoration:underline;";}break;case "valueHeadingFontSize":_nh9 += ("font-size:" + _v6k.value + ";");break;case "valueHeadingFontAlign":_nh9 += ("text-align:" + _v6k.value + ";");break;case "valueHeadingFontBold":if(_v6k.value){_nh9+= "font-weight:bold;";}break;case "valueHeadingFontItalic":if(_v6k.value){_nh9+= "font-style:italic;";}break;case "valueHeadingFontUnderline":if(_v6k.value){_nh9+= "text-decoration:underline;";}break;case "rowHeadingFontSize":_iic += ("font-size:" + _v6k.value + ";");break;case "rowHeadingFontAlign":_iic += ("text-align:" + _v6k.value + ";");break;case "rowHeadingFontBold":if(_v6k.value){_iic+= "font-weight:bold;";}break;case "rowHeadingItalic":if(_v6k.value){_iic+= "font-style:italic;";}break;case "rowHeadingUnderline":if(_v6k.value){_iic+= "text-decoration:underline;";}break;case "columnHeadingFontSize":_hic += ("font-size:" + _v6k.value + ";");break;case "columnHeadingFontAlign":_hic += ("text-align:" + _v6k.value + ";");break;case "columnHeadingFontBold":if(_v6k.value){_hic+= "font-weight:bold;";}break;case "columnHeadingItalic":if(_v6k.value){_hic+= "font-style:italic;";}break;case "columnHeadingUnderline":if(_v6k.value){_hic+= "text-decoration:underline;";}break; }}var _lsm, _tkn;if(_i8k){_lsm=this._3jm.selectSingleNode("./crosstabFactCell/style");_tkn=_8qn._w6b(_lsm, "CSS");_tkn.setAttribute("value", _i8k);}if(_nh9){_lsm=this._3jm.selectSingleNode("./crosstabCorner/style");_tkn=_8qn._w6b(_lsm, "CSS");_tkn.setAttribute("value", _nh9);}if(_iic){var _m64=this._3jm.selectSingleNode("./crosstabRowNodeStyle");_lsm=_8qn._w6b(_m64, "style");_tkn=_8qn._w6b(_lsm, "CSS");_tkn.setAttribute("value", _iic);}if(_hic){var _1e2=this._3jm.selectSingleNode("./crosstabColumnNodeStyle");_lsm=_8qn._w6b(_1e2, "style");_tkn=_8qn._w6b(_lsm, "CSS");_tkn.setAttribute("value", _hic);}};_b45.prototype._ys=function(){var _cz6=this._3jm.selectSingleNode("vizPropertyValues");if(!_cz6){return;}var _hhl=this._3jm.getAttribute("type");var _97m=this._qbj(_hhl);var _x58;if(this._jsl.fillColor){var _zuj=this._jsl.fillColor.indexOf('customColor');if(_zuj!=-1){var _xon=this._jsl.fillColor.substring(11);_x58=_8qn._u0g(_cz6, "vizPropertyCSSColorValue");_x58.setAttribute("name", "backgroundColor");_x58.text='#'+_xon;}else{this._rth(this._8tb._rf6("IDS_LBL_DASHBOARD_FILL_COLOR") + ": " + this._jsl.fillColor);}}if(this._jsl.borderColor){this._rth(this._8tb._rf6("IDS_LBL_DASHBOARD_BORDER_COLOR") + ": " + this._jsl.borderColor);}if(this._jsl.showTitle===true){this._rth(this._8tb._rf6("IDS_LBL_DASHBOARD_SHOW_TITLE") + ": " + this._jsl.showTitle);}if(this._jsl.properties){for(var i=0; i<this._jsl.properties.length;++i){var _v6k=this._jsl.properties[i];if (_cz6.selectSingleNode(".//*[@name='" + _v6k.id + "']")){continue;}var _cl9;switch(_v6k.id){case "colorPalette":case "contColorPalette":if(this._jsl.visId=="com.ibm.vis.rave2bundletiledmap"||this._jsl.visId=="com.ibm.vis.rave2bundletreemap"){this._rth(_v6k.id+": " + _v6k.value);break;}var _p6k=_97m?_97m.palettes:null;if(!_p6k){break;}var _7kd=Object.keys(_p6k);var _vj9=_7kd?(_v6k.id==="colorPalette"?_7kd[0]:_7kd[1]):null;_cl9=_vj9;if(_cl9==null){break;}if(_v6k.value&&_v6k.value.indexOf("__CM__")==0){_x58=_8qn._u0g(_cz6, "vizPropertyCMPaletteValue");_x58.setAttribute("name", _cl9);_x58.text=_v6k.value.substring("__CM__".length);continue;}else{_x58=_8qn._u0g(_cz6, "vizPropertyPaletteValue");}break;case "itemAxis.ticks.labels.color":case "valueAxis.ticks.labels.color":case "itemAxis.title.color":case "valueAxis.title.color":case "valueLabels.color":this._rth(_v6k.id+": " + _v6k.value);continue;default:var _yfh=".font";if(_v6k.id.indexOf(_yfh, _v6k.id.length-_yfh.length)!==-1){if(_v6k.value){var _7uk=_v6k.value.split(" ")[1];this._rth(_v6k.id+": " + _7uk);_x58=_8qn._u0g(_cz6, "vizPropertyCSSFontValue");_x58.setAttribute("name", _v6k.id);var _8uk=_v6k.value.split(" ")[0];_x58.text="font-size:"+_8uk; }continue; }else{_cl9=_v6k.id; var _dl9=_97m&&_97m.properties&&_97m.properties[_cl9]?_97m.properties[_cl9].v5NodeName:"vizPropertyEnumValue";_x58=_8qn._u0g(_cz6, _dl9);}break;}if(_cl9){_x58.setAttribute("name", _cl9);_x58.text=(typeof(_v6k.value)=="object"&&_v6k.value&&_v6k.value.translationTable?_v6k.value.translationTable.Default:_v6k.value);}}}if(this._y0f&&this._y0f.width&&this._y0f.width.indexOf("%")==-1){_x58=_8qn._u0g(_cz6, "vizPropertyLengthValue");_x58.setAttribute("name", "vcWidth");_x58.text=this._y0f.width;}if(this._y0f&&this._y0f.height&&this._y0f.height.indexOf("%")==-1){_x58=_8qn._u0g(_cz6, "vizPropertyLengthValue");_x58.setAttribute("name", "vcHeight");_x58.text=this._y0f.height;}if(_cz6.childNodes.length==0){_8qn._k5g(this._3jm, "vizPropertyValues");}this._4u(_hhl, _cz6);};_b45.prototype._4u=function(_wxm,_cz6){if(_wxm!=="com.ibm.vis.tiledmap"){return;}this._2q4("region", _cz6);this._2q4("point", _cz6);};_b45.prototype._2q4=function(_vsf,_cz6){var _6mn=this._3jm;var _74l=_8qn._8x(_6mn, "vcDataSets/vcDataSet", "idDataSet", "data." + _vsf);var _te3=[_vsf+".custom.mapId", _vsf+".custom.layerName", _vsf+".custom.propertyName"];var _302=_cz6&&_cz6.selectNodes("vizPropertyStringValue"+ _8qn._j12("name", "=", _te3, "or"));var _ah=0;for(var i=0; i<_302.length; i++){var _ih3=_302.item(i);if(_ih3.text===''){continue;}_ah++;}var _32k=_7hn._ij8(_74l, "vcSlots/vcSlotData[@geoCode]");if(_32k){_32k.setAttribute("geoCode", _ah<3);}};_b45.prototype._90a=function(){var _h2k=this._8tb._c3i.selectSingleNode("template[@name='" + this._jsl.visId + "']");if(!_h2k){this._3jm=this._qo8();}else{_h2k=_h2k.cloneNode(true);this._3jm=_h2k.selectSingleNode("vizControl"); }this._my3();};_b45.prototype._qo8=function(){var _wxm=this._jsl.visId;var _p8h=this._8tb._cnh("vizControl");_p8h.setAttribute("type", _wxm);_p8h.setAttribute("name", _wxm);var _m8h=_8qn._u0g(_p8h, "vcDataSets");var _6ri=_8qn._u0g(_m8h, "vcDataSet");_6ri.setAttribute("idDataSet", "data");_6ri.setAttribute("refDataStore", "");var _18l=_8qn._u0g(_6ri, "vcSlots");var _97m=this._qbj(_wxm);if(_97m){var _5mm=_97m.slots;var _y4n=Object.keys(_5mm);for(var i=0; i<_y4n.length; i++){ var _n8h=_8qn._u0g(_18l, "vcSlotData");_n8h.setAttribute("idSlot", _y4n[i]);} }return _p8h;};_b45.prototype._0g7=function(_6ri){_6ri.removeAttribute("refDataStore");this._3jm.selectSingleNode(".//vcDataSets").appendChild(_6ri);};_b45.prototype._iy3=function(){var nl=this._3jm.selectNodes(".//vcDataSet");for(var i=0; i<nl.length; i++){var n_VcDataSet=nl.item(i);if(n_VcDataSet&&!n_VcDataSet.getAttribute("refDataStore")){continue;}var _33m=n_VcDataSet.parentNode;_33m.removeChild(n_VcDataSet);}};_b45.prototype._qi6=function(){var nl=this._3jm.selectNodes(".//vcSlotDsColumn[@refDsColumn='']//ancestor::vcSlotData[1]");for(var i=0; i<nl.length; i++){var _n38=nl.item(i);var _33m=_n38.parentNode;_33m.removeChild(_n38);}};_b45.prototype._ic6=function(_q8h,_bu2,_1ek){var _v58=_q8h.selectSingleNode(".//vizCategoryField[@idField='" + _1ek + "']");var _k74=_v58.selectSingleNode("vizCategoryDataItems");var _815=_v58.selectSingleNode("vizCategoryDataItems/vizCategoryDataItem");_815.setAttribute("refDataItem", _bu2[0].getAttribute("name"));for(var i=1; i<_bu2.length;++i){_815=_8qn._u0g(_k74, "vizCategoryDataItem");_815.setAttribute("refDataItem", _bu2[i].getAttribute("name"));}};_b45.prototype._qbj=function(_hhl){for(var i=0; i<this._8tb._rok.length;++i){var _97m=this._8tb._rok[i];if(_hhl==_97m.visId){return _97m;}}return null;};_b45.prototype._o83=function(_7ya,_97m,_1ek,_6qm,_6ri){if(!_97m){return true;}var _fdl=this._u73(_7ya, _97m, _1ek, _6qm);if(_fdl){var _2ak=_6ri.getAttribute("idDataSet") + " -> " + _97m.slots[_1ek].label + " -> " + _7ya.itemLabel;_2ak += ": " + this._8tb._rf6(_fdl);this._rth(_2ak);return false;}return true;};_b45.prototype._ko2=function(_97m){return _97m?_97m.supportsMeasureGroup:false;};_b45.prototype._u73=function(_7ya,_97m,_1ek,_iii){var _1c8=_7ya.itemId;var _p26=_7ya.itemLabel;var _3ci=this._t3a(_p26);var _s17=this._mhb(_7ya.itemId);var _5d2=(_s17&&_s17.usage=="fact");var _6bl=_97m.slots[_1ek];var _nu2=_3ci||_5d2;if(!_6bl){return null;}if(_1c8=="_multiMeasuresSeries"&&!this._ko2(_97m)){return "IDS_VIZ_INSERT_MEASURES_UNION_UNSUPPORTED";}if(_nu2&&!_6bl.acceptsContinuous){return "IDS_NO_INSERTABLE_OBJECT_MEASURE";}if(!_nu2&&!_6bl.acceptsCategorical){return "IDS_INSERT_REQUIRES_MEASURE_OR_SINGLE_VALUE";}if(_iii>0){if(_nu2){if(!this._ko2(_97m)||!_6bl.canUnion){return "IDS_VIZ_INSERT_CANNOT_NEST_MEASURE";}}else if(!_6bl.canNest){return "IDS_VIZ_INSERT_CANNOT_NEST";}}return null;};_b45.prototype._n52=function(_6ri,_p9i,_6jd){if(!this._jsl.slotmapping.slots){return;}var _97m=this._qbj(this._3jm.getAttribute("type"));var _ehh, _7zi;for(var i=0; i<this._jsl.slotmapping.slots.length;++i){var _ybn=this._jsl.slotmapping.slots[i];var _bzb=_ybn.dataItems;var _bu2=this._5v1(_bzb);if(!_bu2||_bu2.length==0){_6jd.push(_ybn.name);continue;}var _n8h=_6ri.selectSingleNode("vcSlots/vcSlotData[@idSlot='" + _ybn.name + "']");if(!_n8h){_6jd.push(_ybn.name);continue;}_p9i.push(_ybn.name);var _a6c=0;for(var j=0; j<_bu2.length;++j){var _7ya=_bu2[j];if(!this._o83(_7ya, _97m, _ybn.name, j, _6ri)){continue;}var _3ci=this._t3a(_7ya.itemLabel);if(_3ci&&++_a6c>1){_ehh=_ybn.name;}var _ke9=_8qn._w6b(_n8h, "vcSlotDsColumns");var _cua;if(this._ko2(_97m)&&_7ya.itemId=="_multiMeasuresSeries"){_7zi=_ybn.name;continue;}else{_cua=_8qn._u0g(_ke9, "vcSlotDsColumn");_cua.setAttribute("refDsColumn", _7ya.itemLabel); }for(var k=0; _7ya.selection&&k<_7ya.selection.length;++k){var _se2=_7ya.selection[k];if(_se2.operation==="order"){if(_3ci){this._rth(_7ya.itemLabel+": " + _se2.operation + " " + _se2.sort.type);}else{_cua.setAttribute("dsSort", _se2.sort.type==="desc"?"descending":"ascending");}} }}}if(_ehh&&_7zi){var _ke9=_6ri.selectSingleNode("vcSlots/vcSlotData[@idSlot='" + _7zi + "']/vcSlotDsColumns");var _53k=_8qn._w6b(_ke9, "vcSlotMeasureGroup");_53k.setAttribute("refSlot", _ehh); }};_b45.prototype._klb=function(_6ri,_lgh,_aia){var _n8h=_6ri.selectSingleNode("vcSlots/vcSlotData[@idSlot='" + _lgh + "']");var _ke9=_8qn._w6b(_n8h, "vcSlotDsColumns");var _cua=_8qn._u0g(_ke9, "vcSlotDsColumn");_cua.setAttribute("refDsColumn", _aia);};_b45.prototype._ip2=function(){var _h2k=this._8tb._c3i.selectSingleNode("template[@name='Singleton']").cloneNode(true);this._3jm=_h2k.selectSingleNode(".//layouts/layout//singleton");this._3jm.setAttribute("refQuery", this._nok[0].getAttribute("name"));var _69c=this._3jm.selectSingleNode(".//dataItemValue");var _xfl=this._jsl.data.dataViews[0].dataItems[0].itemLabel;if(!this._m83(_xfl)&&this._8tb._jo2(this._534)){_xfl += " Count";}if(this._jsl.data.dataViews[0].dataItems){_69c.setAttribute("refDataItem", _xfl); }this._tz3(this._3jm, this._y0f);};_b45.prototype._ot3=function(_dfc,_vx5,_5wf,_zf9){var _e35;var _1mi=_8qn._u0g(_vx5, "dmMembers");for(var i=0; i<_dfc.values.length;++i){if(!_e35){var _5qm=_dfc.values[i].u.indexOf("->");if(_5qm==-1){return;}_e35=_dfc.values[i].u.substring(0, _5qm);}var _xxj=_8qn._u0g(_1mi, "dmMember");_8qn._u0g(_xxj, "MUN").text=_dfc.values[i].u;_8qn._u0g(_xxj, "itemCaption").text=_dfc.values[i].d;}if(!_e35){return;}var _fhf=_8qn._u0g(_vx5, "dmDimension");_8qn._u0g(_fhf, "DUN").text=_zf9.DUN;_8qn._u0g(_fhf, "itemCaption").text=_5wf;var _ghf=_8qn._u0g(_vx5, "dmHierarchy");_8qn._u0g(_ghf, "HUN").text=_zf9.HUN;_8qn._u0g(_ghf, "itemCaption").text=_5wf;var _fkf=this._nok[0].selectSingleNode("./selection/*[@name='" + _5wf + "']");if(_fkf){var _p3h=_fkf.selectSingleNode("expression");if(_p3h&&_p3h.text!=_e35){_fkf=null;}else{var _4zj=_fkf.selectSingleNode(".//LUN")||_fkf.selectSingleNode(".//MUN");if(_4zj&&_4zj.text!=_e35&&this._534&&this._534.dataItemsLongBracketed &&_4zj.text!=this._534.dataItemsLongBracketed[_e35]){_fkf=null;}}}if(!_fkf){var _i27="DataItemRefByFilter_"+_5wf;if (this._nok[0].selectSingleNode("./selection/*[@name='" + _i27 + "']")){return;}_vx5.setAttribute("refDataItem", _i27);var _zpi=this._nok[0].selectSingleNode("selection");this._m53(_zpi, _i27, _e35);}};_b45.prototype._jj4=function(_dfc,_vx5,_l98){_vx5.setAttribute("dataType", _l98); var _qud=_8qn._u0g(_vx5, "filterValues");for(var j=0; j<_dfc.values.length;++j){_8qn._u0g(_qud, "filterValue").text=_dfc.values[j].d;}};_b45.prototype._5z=function(_dfc,_x1m,_5wf,_l98,_sui){if(_dfc.values&&_dfc.values.length==0){return;}var _zf9=_sui?this._hf6(_sui):null;var _vv5=(_dfc.type!='display'&&_zf9);var _vx5=(_vv5?_8qn._u0g(_x1m, "filterInMembers"):_8qn._u0g(_x1m, "filterInValues"));if(_dfc.operator==="notin"){_vx5.setAttribute("not", "true");}_vx5.setAttribute("refDataItem", _5wf);if(_vv5){this._ot3(_dfc, _vx5, _5wf, _zf9);}else{this._jj4(_dfc, _vx5, _l98);}};_b45.prototype._ns3=function(_dfc,_x1m,_5wf,_l98){var _uhf=_8qn._u0g(_x1m, "filterRange");if(_dfc.operator==="notbetween"){_uhf.setAttribute("not", "true");}_uhf.setAttribute("refDataItem", _5wf);_uhf.setAttribute("dataType", _l98);_uhf.setAttribute("not", _dfc.operator==="notbetween"?"true":"false");_8qn._u0g(_uhf, "filterFrom").text=_dfc.values[0].d;_8qn._u0g(_uhf, "filterTo").text=_dfc.values[1].d;};_b45.prototype._ml2=function(_dfc,_x1m,_5wf,_l98){var _t9c=_8qn._u0g(_x1m, "filterCompare");_t9c.setAttribute("refDataItem", _5wf);_t9c.setAttribute("dataType", _l98);_t9c.setAttribute("operator", _dfc.operator==="lt"?"lessThan":"greaterThan");_8qn._u0g(_t9c, "filterValue").text=_dfc.values[0].d;};