var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(sa,Sa,Ba){sa instanceof String&&(sa=String(sa));for(var ja=sa.length,ta=0;ta<ja;ta++){var Ra=sa[ta];if(Sa.call(Ba,Ra,ta,sa))return{i:ta,v:Ra}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(sa,Sa,Ba){if(sa==Array.prototype||sa==Object.prototype)return sa;sa[Sa]=Ba.value;return sa};$jscomp.getGlobal=function(sa){sa=["object"==typeof globalThis&&globalThis,sa,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var Sa=0;Sa<sa.length;++Sa){var Ba=sa[Sa];if(Ba&&Ba.Math==Math)return Ba}throw Error("Cannot find global object");};
$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(sa,Sa){var Ba=$jscomp.propertyToPolyfillSymbol[Sa];if(null==Ba)return sa[Sa];Ba=sa[Ba];return void 0!==Ba?Ba:sa[Sa]};
$jscomp.polyfill=function(sa,Sa,Ba,ja){Sa&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(sa,Sa,Ba,ja):$jscomp.polyfillUnisolated(sa,Sa,Ba,ja))};$jscomp.polyfillUnisolated=function(sa,Sa,Ba,ja){Ba=$jscomp.global;sa=sa.split(".");for(ja=0;ja<sa.length-1;ja++){var ta=sa[ja];if(!(ta in Ba))return;Ba=Ba[ta]}sa=sa[sa.length-1];ja=Ba[sa];Sa=Sa(ja);Sa!=ja&&null!=Sa&&$jscomp.defineProperty(Ba,sa,{configurable:!0,writable:!0,value:Sa})};
$jscomp.polyfillIsolated=function(sa,Sa,Ba,ja){var ta=sa.split(".");sa=1===ta.length;ja=ta[0];ja=!sa&&ja in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var Ra=0;Ra<ta.length-1;Ra++){var ib=ta[Ra];if(!(ib in ja))return;ja=ja[ib]}ta=ta[ta.length-1];Ba=$jscomp.IS_SYMBOL_NATIVE&&"es6"===Ba?ja[ta]:null;Sa=Sa(Ba);null!=Sa&&(sa?$jscomp.defineProperty($jscomp.polyfills,ta,{configurable:!0,writable:!0,value:Sa}):Sa!==Ba&&(void 0===$jscomp.propertyToPolyfillSymbol[ta]&&(Ba=1E9*Math.random()>>>0,
$jscomp.propertyToPolyfillSymbol[ta]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(ta):$jscomp.POLYFILL_PREFIX+Ba+"$"+ta),$jscomp.defineProperty(ja,$jscomp.propertyToPolyfillSymbol[ta],{configurable:!0,writable:!0,value:Sa})))};$jscomp.polyfill("Array.prototype.find",function(sa){return sa?sa:function(Sa,Ba){return $jscomp.findInternal(this,Sa,Ba).v}},"es6","es3");
$jscomp.polyfill("Array.prototype.fill",function(sa){return sa?sa:function(Sa,Ba,ja){var ta=this.length||0;0>Ba&&(Ba=Math.max(0,ta+Ba));if(null==ja||ja>ta)ja=ta;ja=Number(ja);0>ja&&(ja=Math.max(0,ta+ja));for(Ba=Number(Ba||0);Ba<ja;Ba++)this[Ba]=Sa;return this}},"es6","es3");$jscomp.typedArrayFill=function(sa){return sa?sa:Array.prototype.fill};$jscomp.polyfill("Int8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
$jscomp.polyfill("Uint8ClampedArray.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
$jscomp.polyfill("Float64Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
(function(){function sa(){var P=this,y,T,aa=function(){void 0===y&&(y=P.protectedParseLongerDesignerAccessable(),T=P.protectedParseLongerDesignerOperationJudger())};this.isLongerDesignerAccessable=function(){aa();return y};this.getLongerDesignerOperationJudger=function(){aa();return T};this.mergeToNewInstance=function(ea){var wa=P.isLongerDesignerAccessable()&&ea.isLongerDesignerAccessable(),O=P.getLongerDesignerOperationJudger().mergeToNewInstance(ea.getLongerDesignerOperationJudger());return new function(){sa.call(this);
this.protectedParseLongerDesignerAccessable=function(){return wa};this.protectedParseLongerDesignerOperationJudger=function(){return O}}};this.protectedParseLongerDesignerAccessable=function(){return!0};this.protectedParseLongerDesignerOperationJudger=function(){return new Ba}}function Sa(){var P=this,y,T,aa,ea,wa=function(){void 0===y&&(y=P.protectedParseSquareDesignerAccessable(),T=P.protectedParseSquareDesignerOperationJudger(),aa=P.protectedParseAdvancedAnalysisAccessable(),ea=P.protectedParseAdvancedAnalysisOperationJudger())};
this.isSquareDesignerAccessable=function(){wa();return y};this.getSquareDesignerOperationJudger=function(){wa();return T};this.isAdvancedAnalysisAccessable=function(){wa();return aa};this.getAdvancedAnalysisOperationJudger=function(){wa();return ea};this.mergeToNewInstance=function(O){var fa=P.isSquareDesignerAccessable()&&O.isSquareDesignerAccessable(),La=P.getSquareDesignerOperationJudger().mergeToNewInstance(O.getSquareDesignerOperationJudger()),Ma=P.isAdvancedAnalysisAccessable()&&O.isAdvancedAnalysisAccessable(),
ua=P.getAdvancedAnalysisOperationJudger().mergeToNewInstance(O.getAdvancedAnalysisOperationJudger());return new function(){Sa.call(this);this.protectedParseSquareDesignerAccessable=function(){return fa};this.protectedParseSquareDesignerOperationJudger=function(){return La};this.protectedParseAdvancedAnalysisAccessable=function(){return Ma};this.protectedParseAdvancedAnalysisOperationJudger=function(){return ua}}};this.protectedParseSquareDesignerAccessable=function(){return!0};this.protectedParseSquareDesignerOperationJudger=
function(){return new ja};this.protectedParseAdvancedAnalysisAccessable=function(){return!0};this.protectedParseAdvancedAnalysisOperationJudger=function(){return new Ba}}function Ba(){var P=this,y,T,aa,ea,wa,O,fa=function(){void 0===y&&(y=P.protectedParseDesignable(),T=P.protectedParseDataDetailReadable(),aa=P.protectedParseExportable(),ea=P.protectedParsePrintable(),wa=P.protectedParsePublishable(),O=P.protectedParseTimingPushable())};this.isDesignable=function(){fa();return y};this.isDataDetailReadable=
function(){fa();return T};this.isExportable=function(){fa();return aa};this.isPrintable=function(){fa();return ea};this.isPublishable=function(){fa();return wa};this.isTimingPushable=function(){fa();return O};this.mergeToNewInstance=function(La){return new function(){Ba.call(this);this.protectedParseDesignable=function(){return P.isDesignable()&&La.isDesignable()};this.protectedParseDataDetailReadable=function(){return P.isDataDetailReadable()&&La.isDataDetailReadable()};this.protectedParseExportable=
function(){return P.isExportable()&&La.isExportable()};this.protectedParsePrintable=function(){return P.isPrintable()&&La.isPrintable()};this.protectedParsePublishable=function(){return P.isPublishable()&&La.isPublishable()};this.protectedParseTimingPushable=function(){return P.isTimingPushable()&&La.isTimingPushable()}}};this.protectedParseDesignable=function(){return!0};this.protectedParseDataDetailReadable=function(){return!0};this.protectedParseExportable=function(){return!0};this.protectedParsePrintable=
function(){return!0};this.protectedParsePublishable=function(){return!0};this.protectedParseTimingPushable=function(){return!0}}function ja(){var P=this,y,T,aa=function(){void 0===y&&(y=P.protectedParsePublishable(),T=P.protectedParseTimingPushable())};this.isPublishable=function(){aa();return y};this.isTimingPushable=function(){aa();return T};this.mergeToNewInstance=function(ea){return new function(){ja.call(this);this.protectedParsePublishable=function(){return P.isPublishable()&&ea.isPublishable()};
this.protectedParseTimingPushable=function(){return P.isTimingPushable()&&ea.isTimingPushable()}}};this.protectedParsePublishable=function(){return!0};this.protectedParseTimingPushable=function(){return!0}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.core&&(com.kingdee.bos.qing.core={});var ta=
com.kingdee.bos.qing.core,Ra,ib,eb,x,ha;(function(){var P=com.kingdee.bos.qing.framework.common;Ra=P.AbstractFacade;ib=P.AbstractIcons;eb=P.MultilanguageManager.createPackageAccessor(ta);P=P.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.chart);com.kingdee.bos.qing.chart.MultiLanguageString.setImpl(P);P=com.kingdee.bos.qing.ui.component;x=P.WorkButton;P=com.kingdee.bos.qing.chart.model;ha=P.ContinuousColorLegendModel})();ta.Facade=function(P,y,T,aa){Ra.call(this,P,y,T,aa);var ea=
this.protectedMethod;this.getDefaultTemplate=function(O){ea.remote("getDefaultTemplate",{template:O})};this.getMeta=function(){ea.remote("getMeta",{})};this.updateMeta=function(O){O={meta:JSON.stringify(O.toJsonObject())};ea.remote("updateMeta",O)};this.checkFormula=function(O,fa,La){O={name:La,formula:O,meta:JSON.stringify(fa.toJsonObject())};ea.remote("checkFormula",O)};this.getMetaTableDetailRowData=function(O,fa,La,Ma){O={metaTable:JSON.stringify(O.toJsonObject()),startRowNum:fa,endRowNum:La,
"export":Ma?!0:!1};ea.remote("getMetaTableDetailRowData",O)};this.getCustomizedOrderDimensionMembers=function(O,fa,La){O={meta:JSON.stringify(O.toJsonObject()),fieldFullName:fa,oriCustomOrder:JSON.stringify(La)};ea.remote("getCustomizedOrderDimensionMembers",O)};this.getDetailRowNums=function(O,fa,La,Ma,ua){O={executingModelWrapper:JSON.stringify(wa(O,fa)),additionalFilters:La?JSON.stringify(La):null,tvCoordinate:Ma,showAllField:ua};ea.remote("getDetailRowNums",O);!ua&&X.occur(X.LONGER_SEARCH_DETAILS,
1)};this.getDetailRowData=function(O,fa,La,Ma){O={executingModelWrapper:JSON.stringify(wa(fa,La)),dataSourceCacheKey:O,dataRowInfo:JSON.stringify(Ma.toJsonObject())};ea.remote("getDetailRowData",O)};this.searchDetailRowLinkTargetForeignKeyMember=function(O,fa,La,Ma){ea.remote("searchDetailRowLinkTargetForeignKeyMember",{dataSourceCacheKey:O,row:fa,col:La,bizUiId:Ma})};this.exportDetailRowData=function(O,fa,La,Ma,ua){O={executingModelWrapper:JSON.stringify(wa(O,fa)),dataSourceCacheKey:La,assignedOnly:Ma,
dataRowInfo:JSON.stringify(ua.toJsonObject())};ea.remote("exportDetailRowData",O);X.occur(X.LONGER_EXPORT_DETAILS,1)};this.exportExhibition=function(O,fa){O={model:JSON.stringify(O.toJsonObject()),fileName:fa};ea.remote("exportExhibition",O)};this.christmasExecute=function(O,fa,La,Ma,ua){O={checkSelectedValueScope:ua,executingModelWrapper:JSON.stringify(wa(O,fa,La)),additionalFilters:Ma?JSON.stringify(Ma):null};La=ea.remote("christmas",O);X.occur(X.LONGER_CHART_TYPE,fa.getChartType());X.occur(X.CORE_CUSTOM_FIELD,
fa.howManyCalculatedFieldsUsed());X.occur(X.LONGER_DATASOURCE_TYPE,O.tag);return La};this.filteringExecute=function(O,fa,La,Ma,ua){O={filterIndex:ua,executingModelWrapper:JSON.stringify(wa(O,fa,La)),additionalFilters:Ma?JSON.stringify(Ma):null};La=ea.remote("filtering",O);X.occur(X.LONGER_CHART_TYPE,fa.getChartType());X.occur(X.CORE_CUSTOM_FIELD,fa.howManyCalculatedFieldsUsed());X.occur(X.LONGER_DATASOURCE_TYPE,O.tag);return La};this.execute=function(O,fa,La,Ma){O={executingModelWrapper:JSON.stringify(wa(O,
fa,La)),additionalFilters:Ma?JSON.stringify(Ma):null};La=ea.remote("execute",O);X.occur(X.LONGER_CHART_TYPE,fa.getChartType());X.occur(X.CORE_CUSTOM_FIELD,fa.howManyCalculatedFieldsUsed());X.occur(X.LONGER_DATASOURCE_TYPE,O.tag);return La};this.easter=function(O,fa,La,Ma,ua,Ka){ea.remote("easter",{timestamp:O,cacheKey:fa,fromRow:La,fromCol:Ma,rows:ua,appendRowAtView:Ka})};this.getFilterPreparedValue=function(O,fa,La,Ma,ua){O=wa(O,fa,La);Ma&&(O.model.filter=Ma);Ma={executingModelWrapper:JSON.stringify(O),
field:JSON.stringify(ua.toJsonObject())};ea.remote("getFilterPreparedValue",Ma)};this.parseDateRange=function(O){O={dateFilter:JSON.stringify(O.toJsonObject())};ea.remote("parseDateRange",O)};this.squareExecute=function(O,fa,La,Ma,ua){O={executingModelWrapper:JSON.stringify(wa(O,fa,La)),additionalFilters:Ma?JSON.stringify(Ma):null,paletteFitSkin:ua?JSON.stringify(ua):null};La=ea.remote("squareExecute",O);X.occur(X.SQUARE_CHART_TYPE,fa.getChart().getChartTypeName());X.occur(X.CORE_CUSTOM_FIELD,fa.howManyCalculatedFieldsUsed());
X.occur(X.SQUARE_DATASOURCE_TYPE,O.tag);return La};this.getSquareFilterPreparedValue=function(O,fa,La,Ma){O=wa(O,fa);La&&(O.model.filters=La);La={executingModelWrapper:JSON.stringify(O),field:JSON.stringify(Ma.toJsonObject())};ea.remote("getSquareFilterPreparedValue",La)};this.loadMapTemplate=function(O){O={refToId:O?O.getRefToId():null,refToFullPath:O?O.getFullPath():null};ea.remote("loadMapTemplate",O)};this.loadMapRegions=function(O,fa,La){O={refToId:O?O.getRefToId():null,refToFullPath:O?O.getFullPath():
null,executingModelWrapper:JSON.stringify(wa(fa,La))};ea.remote("loadMapRegions",O)};this.getGisServerConfig=function(){ea.remote("getGisServerConfig",{})};this.searchLinkTargetForeignKeyMembers=function(O,fa,La,Ma,ua,Ka){O={foreignKey:ua,bizUiId:Ka,executingModelWrapper:JSON.stringify(wa(O,fa)),additionalFilters:La?JSON.stringify(La):null,linkageContext:JSON.stringify(Ma)};ea.remote("searchLinkTargetForeignKeyMembers",O)};this.getPresetPalettes=function(O,fa){ea.remote("getPresetPalettes",{paletteGroup:O,
paletteType:fa})};this.previewContinuousColor=function(O){O={model:JSON.stringify(O.toJsonObject())};ea.remote("previewContinuousColor",O)};this.previewWarningRule=function(O,fa,La,Ma){O={executingModelWrapper:JSON.stringify(wa(O,fa,La)),definition:JSON.stringify(Ma.toJsonObject(null))};ea.remote("previewWarningRule",O)};this.previewBriefOutput=function(O,fa,La,Ma){O={executingModelWrapper:JSON.stringify(wa(O,fa,La)),definition:JSON.stringify(Ma.toJsonObject({isFieldExist:function(ua){return!0}}))};
ea.remote("previewBriefOutput",O)};this.executeBriefOutput=function(O,fa,La,Ma,ua){O={executingModelWrapper:JSON.stringify(wa(O,fa,La)),additionalFilters:Ma?JSON.stringify(Ma):null,paramNames:JSON.stringify(ua)};ea.remote("executeBriefOutput",O)};this.makeBasicInsight=function(O,fa,La,Ma){O={executingModelWrapper:JSON.stringify(wa(O,fa,La)),additionalFilters:Ma?JSON.stringify(Ma):null};ea.remote("makeBasicInsight",O)};this.makeAdvancedInsight=function(O,fa,La,Ma){O={executingModelWrapper:JSON.stringify(wa(O,
fa,La)),additionalFilters:Ma?JSON.stringify(Ma):null};ea.remote("makeAdvancedInsight",O)};var wa=function(O,fa,La){var Ma={};Ma.meta=O.toJsonObject();Ma.model=fa?fa.toJsonObject():null;Ma.preferences=La?La.toJsonObject():null;return Ma}};ta.CommonJsonParser=new function(){this.parseContontinuousColorLegendModel=function(P){var y=P.minText,T=P.maxText,aa=P.gradientColor,ea=P.segmentColor;P=new ha;if(aa){ea=aa.color1;var wa=aa.color2,O=aa.color3,fa=aa.color4;aa=(aa=aa.pos)?parseFloat(aa):null;P.prepareGradient(y,
T,ea,wa,aa,O,fa)}else P.prepareSegment(y,T,ea);return P}};ta.Icons=new function(){ib.call(this);var P=this.protectedMethod,y;this.setComboIconImpl=function(ea){y=ea};this.protectedInit=function(ea,wa){if(!y)throw Error("Please setComboIconImpl() first.");y.define(wa,"chart-type");T(0,0,"chart_table");T(0,1,"chart_pie");T(0,2,"chart_ring");T(0,3,"chart_rose");T(0,4,"chart_sunburst");T(1,0,"chart_heatmap");T(1,1,"chart_treemap");T(2,0,"chart_bar");T(2,1,"chart_msbar");T(2,2,"chart_stackbar");T(2,3,
"chart_percentbar");T(3,0,"chart_horizontalbar");T(3,1,"chart_horizontalmsbar");T(3,2,"chart_horizontalstackbar");T(3,3,"chart_horizontalpercentbar");T(4,0,"chart_line");T(4,1,"chart_mline");T(4,2,"chart_area");T(4,3,"chart_percentarea");T(5,0,"chart_scatter");T(5,1,"chart_bubble");T(6,0,"chart_kpi");T(6,1,"chart_map");T(6,2,"chart_radar");T(6,3,"chart_composite");T(6,4,"chart_dial");T(1,4,"chart_progresscircle");T(2,4,"chart_progressvbar");T(3,4,"chart_progresshbar");T(7,0,"chart_grid");T(8,0,"chart_customlist");
T(7,1,"chart_gis");T(4,4,"chart_waterfall");T(5,4,"chart_funnel");y.define(wa,"card-item");T(0,0,"mark_label");T(0,1,"mark_size");T(0,2,"mark_color");T(0,3,"mark_angle");T(0,4,"mark_empty");T(0,7,"icon_reset");T(0,8,"icon_collapsable");T(0,9,"icon_expandable");y.define(wa,"meta-tree");T(0,0,"meta_date");T(1,0,"meta_date_selected");T(0,1,"meta_string");T(1,1,"meta_string_selected");T(0,2,"meta_number");T(1,2,"meta_number_selected");T(0,3,"meta_tree1");T(1,3,"meta_tree1_selected");T(0,4,"meta_tree2");
T(1,4,"meta_tree2_selected");T(0,5,"meta_table");T(1,5,"meta_table_selected");T(0,6,"meta_folder");T(1,6,"meta_folder_selected");T(0,7,"meta_elastic");T(1,7,"meta_elastic_selected");T(2,0,"meta_table-md");T(3,0,"meta_table-md_selected");T(2,1,"meta_table-preagg");T(3,1,"meta_table-preagg_selected");T(2,2,"meta_preagg");T(3,2,"meta_preagg_selected");y.define(wa,"operate");T(0,0,"icon_search");T(0,2,"icon_left_collapse");T(0,3,"icon_delete");T(0,4,"icon_search_auto_select");y.define(wa,"sort");T(0,
0,"icon_sort-asc-h");T(0,1,"icon_sort-desc-h");T(0,2,"icon_sortable-h");T(1,0,"icon_sort-asc-v");T(1,1,"icon_sort-desc-v");T(1,2,"icon_sortable-v");y.define(wa,"roll");y.define(wa,"tooltips-bar");T(0,0,"icon_data_detail");T(0,1,"icon_bill_linkage");y.define(wa,"extra");T(0,0,"icon_extra_close");T(0,1,"icon_extra_search");T(0,2,"icon_extra_setting");T(1,0,"icon_extra_filter");T(1,1,"icon_extra_level");y.define(wa,"toolbar");aa(0,0,"btn_undo");aa(0,1,"btn_redo");aa(0,2,"btn_clear");aa(0,3,"btn_resume");
aa(0,4,"btn_suspend");aa(0,5,"btn_export");aa(0,6,"btn_print");aa(0,7,"btn_param");aa(4,0,"btn_analysis");aa(4,1,"btn_reverse");aa(4,2,"btn_preview")};var T=function(ea,wa,O){P.registIcon(ea,wa,O)},aa=function(ea,wa,O){T(ea,wa,O);T(ea+1,wa,O+"_hover");T(ea+2,wa,O+"_disabled")}};ta.ErrorCodeParser=new function(){this.toDisplayText=function(P,y){switch(P){case 205403:case 205301:return eb.get("canNotRun","\u964d\u7ea7");case 402200:return eb.get("dataEmpty","\u6ca1\u6709\u6570\u636e\u53ef\u4f9b\u5206\u6790\u548c\u5c55\u73b0");
case 402202:return eb.get("relationMissing","\u5206\u6790\u5f15\u64ce\u4e00\u8138\u8499\u5708\u3002");case 403001:return eb.get("necessaryDimensionMissing","\u7f3a\u5c11\u5fc5\u8981\u7684\u7ef4\u5ea6\uff1a")+y;default:return null}};this.attemptToAppendNecessaryDimensions=function(P,y,T){403001==P&&(P=new x,P.setText(eb.get("autoAppendNecessaryDimensions","\u5c06\u5fc5\u8981\u5b57\u6bb5\u6dfb\u52a0\u5230\u7b5b\u9009\u5668")),P.addActionListener(function(aa){T()}),P.getJqUi().css({position:"relative",
width:"240px",height:"30px","margin-left":"40px"}),P.getJqUi().appendTo(y))}};ta.LinkageRegister=new function(){var P;this.register=function(y){P=y};this.isDesigntimeSupported=function(){return P?!0:!1};this.isRuntimeSupported=function(){return P?!0:!1};this.setup=function(y,T,aa){P.setup(y,T,aa)};this.lookupBizMeta=function(y,T,aa){P.lookupBizMeta(y,T,aa)};this.jumpToBizListUi=function(y,T,aa){P.jumpToBizListUi(y.getBizUiId(),y.getUsableDisplayName(),T,aa)};this.jumpToBizEditUi=function(y,T){P.jumpToBizEditUi(y.getBizUiId(),
y.getUsableDisplayName(),T)}};ta.MapLibraryRegister=new function(){var P;this.registerTemplateSelector=function(y){P=y};this.selectTemplate=function(y,T){P?P(y,T):(y=com.kingdee.bos.qing.core.model.OutsideReference.create("map20180808_china","map20180808_china",null,"\u4e2d\u56fd\u7701\u4efd\u793a\u610f\u56fe"),T(y))}};ta.RtLongerEditableConfirmer=sa;ta.RtSquareEditableConfirmer=Sa;ta.LongerDesignerOperationJudger=Ba;ta.SquareDesignerOperationJudger=ja;var X=new function(){var P;this.hookCollector=
function(y){P=y};this.occur=function(y,T){try{P&&P(y,T)}catch(aa){window.console&&console.warn(aa)}}};X.LONGER_CHART_TYPE="longer-chart-type";X.SQUARE_CHART_TYPE="square-chart-type";X.DSB_WIDGET_TYPE="dsb-widget-type";X.CORE_CUSTOM_FIELD="core-customfield";X.LONGER_SEARCH_DETAILS="longer-search-details";X.LONGER_EXPORT_DETAILS="longer-export-details";X.SQUARE_DRILLDOWN="square-drilldown";X.SQUARE_AFFECTION="square-affection";X.SQUARE_NAVIGATETO="square-navigateto";X.SQUARE_EXTRA_FILTER="square-extrafilter";
X.SQUARE_DATASOURCE_TYPE="square-datasource-type";X.LONGER_DATASOURCE_TYPE="longer-datasource-type";ta.UserOperationReporter=X})();
(function(){function sa(){var x={};this.protectedMethod=x;x.msToSeconds=function(ha){ha=Math.round(.01*ha);return Math.floor(.1*ha)+"."+ha%10};x.createJqTable=function(){var ha=$("<table>");ha.css({"border-collapse":"collapse","font-size":"12px"});return ha};x.createJqTr=function(ha,X){var P=$("<tr>");X&&P.css({"border-bottom":"1px solid #ccc"});P.appendTo(ha);return P};x.createJqTd=function(ha,X){var P=$("<td>");P.css({padding:"4px 4px"});P.text(X);P.appendTo(ha);return P};x.letMeLeft=function(ha){ha.css("text-align",
"left");return ha};x.letMeRight=function(ha){ha.css("text-align","right");return ha};x.letMeNoWrap=function(ha){ha.css("white-space","nowrap");return ha};x.letMePending=function(ha){ha.css("color","#F90");return ha};x.letMeWaiting=function(ha){ha.css("color","#093");return ha};x.letMeFinished=function(ha){ha.css("color","");return ha};x.letMeBold=function(ha){ha.css({"font-weight":"bold"});return ha}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==
typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.core&&(com.kingdee.bos.qing.core={});"undefined"==typeof com.kingdee.bos.qing.core.commonui&&(com.kingdee.bos.qing.core.commonui={});var Sa=com.kingdee.bos.qing.core.commonui,Ba,ja,ta,Ra,ib,eb;(function(){var x=com.kingdee.bos.qing.common;Ba=x.DomUtil;x=com.kingdee.bos.qing.framework.common;ja=x.MultilanguageManager.createPackageAccessor(Sa);ta=
x.Resource;x=com.kingdee.bos.qing.ui.component;Ra=x.Label;ib=x.DropdownSelector;x=com.kingdee.bos.qing.core;eb=x.LinkageRegister})();Sa.DataDetailTable=function(){var x=com.kingdee.bos.qing.core.model.MetaField,ha=this,X,P=new Ra,y=new KTable,T=1,aa=-1,ea=0,wa=2147483647,O=1,fa;this.hookOperation=function(Ka){var oa=Ka?!0:!1;T=oa?2:1;aa=oa?0:-1;ea=oa?1:0;ua(Ka)};this.getJqUi=function(){if(!X){Ma();var Ka=$(y.getUI());X=$("<div>");X.append(P.getJqUi());X.append(Ka);Ba.layoutCtrlWithLRTB(P.getJqUi(),
0,0,null,0,null,23);Ba.layoutCtrlWithLRTB(Ka,0,0,null,30,0,null)}return X};this.resize=function(){y.relayoutViews()};this.reset=function(){y.removeAllRows();y.updateUI(!1)};this.setTotalRowsCount=function(Ka){O=1;wa=Ka;P.setText(ja.get("rowsInTotal","\u5171#1\u884c").replace("#1",wa))};this.setLoader=function(Ka){fa=Ka};this.setupColumns=function(Ka,oa){var Oa=new KTStyle;Oa.setTextAlign("center");Oa.setBold(!0);Oa.setColor("#666");Oa.setBackgroundColor("#E9E9E9");var ab=y.addRow();ab.setStyle(Oa);
ab.setHeight(22);Oa=new KTStyle;Oa.setTextAlign("center");var ca=new KTStyle;ca.setTextAlign("left");var fb=new KTStyle;fb.setTextAlign("right");Ka+=T;y.removeAllColumns();y.addColumns(Ka);for(var lb=0;lb<Ka;lb++){var gb=y.getColumn(lb),qa=ab.getCell(lb);if(lb<T)lb==ea?(qa.setValue(ja.get("rowNum","\u5e8f\u53f7")),gb.setWidth(40),gb.setStyle(Oa)):lb==aa&&(gb.setWidth(20),gb.setStyle(Oa));else{var Aa=oa(lb-T);switch(Aa.getDataType()){case x.DT_STRING:gb.setWidth(100);gb.setStyle(ca);break;case x.DT_NUMBER:gb.setWidth(80);
gb.setStyle(fb);break;case x.DT_DATE:gb.setWidth(76);gb.setStyle(ca);break;default:throw Error("Unknown data type.");}qa.setUserObject(Aa.getFullName())}}};this.updateColumnsVisible=function(Ka,oa,Oa){for(var ab=y.getRow(0),ca=T;ca<y.getColumnsCount();ca++){var fb=ab.getCell(ca),lb=fb.getUserObject(),gb=Ka(lb);y.getColumn(ca).setHide(!gb);gb&&fb.setValue(oa(lb))}Oa&&y.updateUI(!0)};this.loadRows=function(){var Ka=O,oa=Ka+1E3-1;oa=oa>wa?wa:oa;fa(Ka,oa)};this.appendRows=function(Ka,oa){La(Ka,oa);y.updateUI(!1)};
this.lazyAppendRows=function(Ka,oa){y.lazyAppendData(!0);La(Ka,oa);y.lazyAppendData(!1)};var La=function(Ka,oa){var Oa=new KTStyle;Oa.setColor("#333");Oa.setBackgroundColor("#fff");var ab=new KTStyle;ab.setColor("#333");ab.setBackgroundColor("#F3F3F3");for(var ca=0;ca<Ka;ca++){var fb=1==O%2?Oa:ab,lb=y.addRow();lb.setHeight(22);lb.setStyle(fb);for(fb=0;fb<y.getColumnsCount();fb++){var gb=lb.getCell(fb);if(fb==aa)gb.setUserObject(O);else if(fb==ea)gb.setValue(O);else{var qa=oa(ca,fb-T);gb.setValue(qa)}}O++}},
Ma=function(){var Ka=new KTBorderStyle;Ka.setBorderWidth(1);Ka.setBorderPen("solid");Ka.setBorderColor("#E3E3E3");var oa=new KTStyle;oa.setVerticalAlign("bottom");y.setBorder(Ka);y.setStyle(oa);y.setDraggableAdjusting(!0,1,0);y.setSyncUIWhenModelChanged(!1);y.setLargeDataMode(!0);y.setFrozenRows(1);y.setFrozenColumns(T);y.getCellRender().setOutsideVisible(!1);var Oa;y.addScrollToBottomListener(function(){O<=wa&&(clearTimeout(Oa),Oa=setTimeout(ha.loadRows,100))})},ua=function(Ka){if(Ka){var oa=-1,
Oa;y.setCellAcrossListener(function(ab,ca,fb,lb){ca=ab?ca:-1;oa!=ca&&(Oa&&Oa.empty(),oa=ca,1<=oa&&(ab=y.getRow(oa).getCell(aa).getUserObject(),Oa=lb(oa,aa),Ka(Oa,ab)))})}else y.setCellAcrossListener(null)}};Sa.MetaFieldSelector=function(){var x=com.kingdee.bos.qing.core.ui.SearchableMetaList,ha=this,X,P=new ib;(function(){P.setDropdownCreator(function(y,T,aa){if(!X)return[-1,40];var ea=new x;ea.setMetaModel(X);ea.setSelectedMetaField(ha.getSelected(),!0);ea.requestSelectedVisible();ea.addPressedListener(function(wa,
O){(wa=ea.getSelectedLeafMetaField())&&aa(wa)});T=ea.getJqUi();Ba.layoutCtrlWithLRTB(T,0,0,null,0,0,null);T.appendTo(y);return[-1,21*Math.max(4,ea.getVisibleItemsCount()+1)]});P.setCustomPainter(function(y,T){T.text(y?y.getFullDisplayName():"")})})();this.getJqUi=function(){return P.getJqUi()};this.setModel=function(y,T){if(T){for(var aa={},ea=0;ea<T.length;ea++)aa[T[ea]]=!0;for(ea=0;ea<y.getTableCount();ea++){T=y.getTable(ea);for(var wa=T.getFieldCount()-1;0<=wa;wa--){var O=T.getField(wa);aa[O.getDataType()]||
T.removeField(wa)}}}X=y};this.setSelected=function(y){y=y?X.searchMetaField(y):null;P.setSelectedModel(y)};this.getSelected=function(){var y=P.getSelectedModel();return y?y.getFullName():null};this.setSelectedListener=function(y){P.addSelectionListener(function(T,aa){aa&&y(ha.getSelected())})};this.setEnabled=function(y){P.setEnabled(y)}};Sa.LinkageHelper=new function(){this.makeItemDisplay=function(ha){ha=ha.getUsableDisplayName();var X=ja.get("linkageJumpTo","\u8054\u67e5\u5230#1");return X=X.replace("#1",
ha)};this.makeDetailDataLinkageCaption=function(ha){var X=ja.get("linkageFromDetailRow","\u7b2c#1\u884c\uff0c\u5355\u636e\u8054\u67e5\uff1a");return X=X.replace("#1",ha)};this.jumpToEditUi=function(ha,X,P,y,T){X=X(function(aa){T(ja.get("linkageJumping","\u6b63\u5728\u8df3\u8f6c\u5230\u4e1a\u52a1\u754c\u9762")+"...");eb.jumpToBizEditUi(ha,aa)},function(aa,ea,wa){switch(aa){case 401202:ea=ja.get("linkageJumpingError3","\u7531\u4e8e\u672a\u4f7f\u7528\u5230\u8be5\u8054\u67e5\u76ee\u6807\u7684\u5b57\u6bb5\uff0c\u5f53\u524d\u660e\u7ec6\u6570\u636e\u4e0e\u8be5\u8054\u67e5\u76ee\u6807\u65e0\u5173\u3002");
T(ea,!1);x(aa+" "+ea);break;default:x(aa+"\r\n"+ea+"\r\n"+wa)}return!0});X.setShowBlocking(!1);X.searchDetailRowLinkTargetForeignKeyMember(P,y,ha.getForeignKey(),ha.getBizUiId())};this.makeJsonLongerClickedContext=function(ha){return{forLonger:ha}};this.makeJsonSquareClickedContext=function(ha){return{forSquare:ha.toJsonObject()}};this.jumpToListUi=function(ha,X,P,y,T,aa,ea,wa){P=P(function(O){var fa=O.foreignKeyMembersCachedId;O=O.linkageMaxNums;0<O?(O=ja.get("confirmGoOnLinkageJump","\u8054\u67e5\u76ee\u6807\u5df2\u8d85\u51fa#1\u6761\u8bb0\u5f55\u7684\u4e0a\u9650\uff0c\u5c06\u65e0\u6cd5\u5217\u51fa\u5168\u90e8\u7ed3\u679c\u3002").replace("#1",
O),wa(O,function(La){La||ea(ja.get("linkageJumping","\u6b63\u5728\u8df3\u8f6c\u5230\u4e1a\u52a1\u754c\u9762")+"...");eb.jumpToBizListUi(ha,fa,La)})):(ea(ja.get("linkageJumping","\u6b63\u5728\u8df3\u8f6c\u5230\u4e1a\u52a1\u754c\u9762")+"..."),eb.jumpToBizListUi(ha,fa,!1))},function(O,fa,La){switch(O){case 401201:fa=ja.get("linkageJumpingError1","\u5173\u8054\u5b57\u6bb5\u4e0d\u5b58\u5728\u3002");ea(fa,!1);x(O+" "+fa);break;case 402202:fa=ja.get("linkageJumpingError2","\u5173\u8054\u5b57\u6bb5\u65e0\u6cd5\u5efa\u7acb\u5173\u7cfb\u3002");
ea(fa,!1);x(O+" "+fa);break;case 402200:case 402230:fa=ja.get("linkageJumpingError4","\u8054\u67e5\u76ee\u6807\u6ca1\u6709\u6570\u636e\u53ef\u5c55\u793a\u3002")+O;ea(fa,!1);x(O+" "+fa);break;default:x(O+"\r\n"+fa+"\r\n"+La)}return!0});P.setShowBlocking(!1);P.searchLinkTargetForeignKeyMembers(y,T,aa,X,ha.getForeignKey(),ha.getBizUiId())};var x=function(ha){window.console&&console.warn(ha)}};Sa.AbstractCoveredSlideDownUi=function(){var x,ha=this;this.show=function(P){if(x)ha.hide();else{x=$("<div>");
x.css("z-index",65535);x.appendTo(P);Ba.layoutCtrlWithLRTB(x,0,0,null,0,0,null);P=x.prop("clientWidth");var y=x.prop("clientHeight");P=X(P,y);y=P.css("height");P.css({height:0});P.appendTo(x);P.animate({height:y},200,function(){ha.protectedAfterSlidedDown()})}};var X=function(P,y){var T=$("<div>");T.css("z-index",1);T.addClass("sa-extra");ha.protectedInitJqUi(P,y,T);return T};this.protectedInitJqUi=function(P,y,T){throw Error("Implement");};this.protectedAfterSlidedDown=function(){};this.hide=function(){x&&
(x.remove(),x=null)};this.protectedMethod={getComfortableSize:function(P,y){var T=Math.max(.1,Math.min(.6,P/window.screen.width));P=parseInt((-.7*T+1.02)*P);T=Math.max(.1,Math.min(.6,y/window.screen.height));y=parseInt((-.7*T+1.02)*y);return[P,y]},createPromptLabel:function(P){var y=$("<div>");y.text(P);y.css({color:"#666","text-align":"center"});Ba.layoutCtrlWithLRTB(y,0,0,null);Ba.layoutCtrlMiddleAlign(y,20);return y},initManualClosable:function(P){x&&x.on("click",function(y){P.animate({height:0},
200,function(){ha.hide()})})},getJqModalLayer:function(){return x}}};Sa.LongtimeWaitingMask=function(){var x,ha,X,P,y,T;this.hookOwner=function(oa,Oa){ha=oa;x=Oa};this.setIconVisible=function(oa){oa?(X=$("<div>"),X.addClass("sa-common-loading-icon"),X.css("background-image",ta.getIconUrl("common","loading.gif")),X.css({"margin-left":"-20px","margin-top":"-30px"}),Ba.layoutCtrl(X,"50%","50%",40,40)):X&&(X.remove(),X=null)};this.showWaiting=function(oa,Oa){if(!P){var ab=$("<div>");Ba.layoutCtrlWithLRTB(ab,
0,0,null,0,0,null);var ca=Oa?La(Oa):null;ab.on("mouseenter",function(fb){ca&&Ma(ca);aa()});ab.on("mouseleave",function(fb){ca&&ua(ca);ua(y);ea()});X&&X.appendTo(ab);P=$("<div>");P.css("text-align","center");P.append($("<span>"));P.append(fa());ca&&P.append(ca);P.appendTo(ab);y=O();y.appendTo(ab);Ba.layoutCtrlWithLRTB(P,4,4,null,"50%",null,null);x?x(ab,P):(ab.css("color","#666"),ab.addClass("sa-common-loading-modallayer"));ha.append(ab);ea()}P.children(":eq(0)").text(oa)};this.hideWaiting=function(){P&&
(P.parent().remove(),T=y=P=null)};this.hookProgressDisplayer=function(oa){T=oa;aa()};var aa=function(){bRelayoutProgress=!0;if(T){var oa=P.parent(),Oa=oa.prop("clientWidth"),ab=oa.prop("clientHeight"),ca=T(300>Oa||120>ab);T=null;var fb=y.prop("scrollTop");y.empty();if(ca){Ba.layoutCtrl(ca,12,12,null,null);oa.append(ca);oa=ca.prop("offsetWidth");var lb=ca.prop("offsetHeight");wa(Oa,ab,oa,lb);bRelayoutProgress=!1;y.data("contentSize",[oa,lb]);y.append(ca);fb&&y.prop("scrollTop",fb)}Ka(y)}else Ma(y);
ea(bRelayoutProgress)},ea=function(oa){var Oa=P.prop("offsetHeight"),ab=X?15:-(Oa>>1),ca="";y.is(":visible")&&(y.is(":empty")?y.css("display","none"):(oa&&(ab=P.parent(),oa=ab.prop("clientWidth"),ab=ab.prop("clientHeight"),ca=y.data("contentSize"),wa(oa,ab,ca[0],ca[1])),oa=P.parent().prop("clientHeight")>>1,ab=y.prop("offsetTop"),ab=-(oa-ab+6+Oa),ca="none"));P.css("margin-top",ab+"px");X&&X.css("display",ca)},wa=function(oa,Oa,ab,ca){var fb=4+P.prop("offsetHeight")+6;oa=Math.max(0,oa-4);Oa=Math.max(0,
Oa-4-fb);ab=Math.min(ab+26,oa);ca=Math.min(ca+26,Oa);Ba.layoutCtrl(y,1+(oa-ab>>1),1+(Oa-ca>>1)+fb,ab,ca)},O=function(){var oa=$("<div>");oa.css({display:"none",overflow:"auto","border-radius":"6px",border:"1px solid #ddd","background-color":"#fff",color:"#333"});return oa},fa=function(){var oa=0,Oa=function(){oa=++oa%3;for(var ca="",fb=0;fb<=oa;fb++)ca+=".";ab.text(ca);ab.is(":visible")&&setTimeout(Oa,1E3)},ab=$("<span>");ab.css({display:"inline-block",width:"12px","text-align":"left"});setTimeout(Oa,
0);return ab},La=function(oa){setTimeout(function(){Ka(Oa)},1E4);var Oa=$("<span>");Oa.text(ja.get("cancel","\u53d6\u6d88"));Oa.on("click",function(ab){oa()});Oa.css({display:"none","margin-left":"16px",cursor:"pointer",color:"#88d"});return Oa},Ma=function(oa){oa.data("appeared")?oa.css("display",""):oa.data("display_request",!0)},ua=function(oa){oa.data("appeared")?oa.css("display","none"):oa.removeData("display_request")},Ka=function(oa){oa.data("appeared",!0);oa.data("display_request")&&(oa.removeData("display_request"),
Ma(oa))}};Sa.DataPreparingProgressParser=new function(){sa.call(this);var x=this.protectedMethod;this.getWaitingText=function(){return ja.get("dataPreparingWaiting","\u6570\u636e\u51c6\u5907\u4e2d")};this.makeUiCreator=function(ha){return function(X){if(X){X=0;for(var P=!1,y=ha.tables,T=0;T<y.length;T++){var aa=y[T],ea=aa.exeMs;(aa=aa.writeRows)?X+=aa:ea&&(P=!0)}X?X=ja.get("dataPreparingWaitingPrompt3","\u5df2\u7d2f\u8ba1\u63d0\u53d6\u6570\u636e#1\u884c\u3002").replace("#1",X):(X=P?ja.get("dataPreparingWaitingPrompt2",
"\u5df2\u5f00\u59cb\u6267\u884c\uff0c\u8017\u65f6#1\u79d2\u3002"):ja.get("dataPreparingWaitingPrompt1","\u6392\u961f\u7b49\u5f85\u4e2d\uff0c\u8017\u65f6#1\u79d2\u3002"),X=X.replace("#1",x.msToSeconds(ha.totalMs||0)));P=$("<span>");P.text(X);X=P}else for(X=x.createJqTable(),P=ha.tables,y=0;y<P.length;y++){aa=P[y];T=aa.name;ea=aa.type;var wa=aa.exeMs,O=aa.rwMs,fa=aa.writeRows;if(aa.finished){aa=ja.get("finished","\u5df2\u5b8c\u6210");var La=x.letMeFinished}else wa?(aa=ja.get("extracting","\u4f20\u8f93\u4e2d"),
La=x.letMeWaiting):(aa=ja.get("pending","\u672a\u5f00\u59cb"),La=x.letMePending);wa=(wa=(wa?wa:0)+(O?O:0))?ja.get("seconds","#1\u79d2").replace("#1",x.msToSeconds(wa)):"";fa=fa?ja.get("rows","#1\u884c").replace("#1",fa):"";O=x.createJqTr(X,1<P.length);x.letMeLeft(x.createJqTd(O,T));x.letMeLeft(x.createJqTd(O,ea));x.letMeNoWrap(La(x.createJqTd(O,aa)));x.letMeNoWrap(x.letMeRight(x.createJqTd(O,wa)));x.letMeNoWrap(x.letMeRight(x.createJqTd(O,fa)))}return X}}};Sa.ExecutingProgressParser=new function(){sa.call(this);
var x=this.protectedMethod;this.getWaitingText=function(){return ja.get("executingWaiting","\u65b9\u6848\u6267\u884c\u4e2d")};this.makeUiCreator=function(ha){return function(X){var P=ha.period;if("JOIN"==P){if(X){var y=ha.totalMs||0;y=ja.get("tableJoinWaitingPrompt","\u6b63\u5728\u5173\u8054\u8868\uff0c\u8017\u65f6#1\u79d2\u3002").replace("#1",x.msToSeconds(y));X=$("<span>");X.text(y);y=X}else{X=x.createJqTable();P=ha.joins;for(var T=0;T<P.length;T++){var aa=P[T],ea=aa.left,wa=aa.right,O=aa.usedMs;
aa.finished?(aa=ja.get("finished","\u5df2\u5b8c\u6210"),O=x.letMeFinished):O?(aa=ja.get("tableJoining","\u5173\u8054\u4e2d"),y=ja.get("seconds","#1\u79d2").replace("#1",x.msToSeconds(O)),O=x.letMeWaiting):(aa=ja.get("pending","\u672a\u5f00\u59cb"),y="",O=x.letMePending);var fa=x.createJqTr(X,1<P.length);x.letMeLeft(x.createJqTd(fa,ea));x.letMeNoWrap(x.createJqTd(fa,ja.get("tableJoin","\u5173\u8054")));x.letMeLeft(x.createJqTd(fa,wa));x.letMeNoWrap(O(x.createJqTd(fa,aa)));x.letMeNoWrap(x.letMeRight(x.createJqTd(fa,
y)))}y=X}return y}if("EXEC"==P)return X?(y=ha.totalMs||0,y=ja.get("executingWaitingPrompt","\u7d2f\u8ba1\u8017\u65f6#1\u79d2\u3002").replace("#1",x.msToSeconds(y)),X=$("<span>"),X.text(y),y=X):((y=ha.visualEngine)?(P=y.usedMs||0,y=ja.get("executingWaitingPromptB1","\u53ef\u89c6\u5316\u5f15\u64ce\u8017\u65f6#1\u79d2\u3002"),y=y.replace("#1",x.msToSeconds(P))):(y=ha.cubeEngine,X=y.visitedDataRows||0,P=y.usedMs||0,y=ja.get("executingWaitingPromptA1","\u6570\u636e\u8bbf\u95ee\u81f3#2\u884c\uff0c\u7d2f\u8ba1\u8017\u65f6#1\u79d2\u3002"),
y=y.replace("#1",x.msToSeconds(P)),y=y.replace("#2",X)),X=$("<span>"),X.text(y),y=X),y;console&&console.log("Invalid progress model: "+JSON.stringify(ha));return $("<span>")}}};Sa.ConsumingStatistics=function(){sa.call(this);var x=this.protectedMethod,ha=!1;this.setEmbeded=function(aa){ha=aa};this.parse=function(aa,ea,wa){var O=$("<div>");O.css({"background-color":"#fff",padding:"10px",overflow:"auto"});if(aa){var fa=O.append;var La=aa.tables;if(0==La.length)La=$("<div>"),La.text("\u6ca1\u6709\u53d1\u751f\u5b9e\u65f6\u6570\u636e\u63d0\u53d6\u3002");
else{var Ma=aa.totalMs;aa=$("<div>");aa.text("\u6570\u636e\u51c6\u5907\uff0c\u603b\u5171\u8017\u65f6\uff1a#1 \u79d2\u3002".replace("#1",y(Ma)));var ua=[["\u6570\u636e\u8868"],["\u7c7b\u578b"],["\u6267\u884c\u53d6\u6570(\u79d2)",!0],["\u5199\u5165\u6570\u636e\u6587\u4ef6(\u79d2)",!0],["\u8bfb\u53d6\u884c\u6570",!0],["\u5199\u5165\u884c\u6570",!0]];Ma=x.createJqTable();for(var Ka=x.letMeBold(x.createJqTr(Ma,!0)),oa=0;oa<ua.length;oa++){var Oa=ua[oa][1],ab=x.createJqTd(Ka,ua[oa][0]);Oa&&P(ab)}for(oa=
0;oa<La.length;oa++){Ka=La[oa];ua=Ka.name;Oa=Ka.type;ab=Ka.exeMs;var ca=Ka.rwMs,fb=Ka.finished?!0:!1,lb=Ka.readRows,gb=Ka.writeRows;Ka=x.createJqTr(Ma,!0);!fb&&x.letMePending(Ka);x.createJqTd(Ka,ua);x.createJqTd(Ka,Oa);P(x.createJqTd(Ka,ab||0===ab?y(ab):""));P(x.createJqTd(Ka,ca||0===ca?y(ca):""));P(x.createJqTd(Ka,T(lb)));P(x.createJqTd(Ka,T(gb)))}La=$("<div>");La.append(aa);La.append(Ma);ha||(aa=La,Ma=aa.append,oa=$("<li>"),oa.text("\u5982\u679c\u4e0a\u8868\u7684\u8bfb\u53d6\u884c\u6570\u8fdc\u8fdc\u5927\u4e8e\u5199\u5165\u884c\u6570\uff0c\u53ef\u68c0\u67e5\u201c\u6570\u636e\u51c6\u5907\u201d\u8bbe\u7f6e\u4e2d\u7684\u8fc7\u6ee4\u9879\uff0c\u907f\u514d\u4f7f\u7528\u8ba1\u7b97\u5b57\u6bb5\u3001\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u8fc7\u7684\u5b57\u6bb5\u505a\u8fc7\u6ee4\u3002"),
Ka=$("<li>"),Ka.text("\u5982\u679c\u754c\u9762\u957f\u65f6\u95f4\u505c\u987f\u5728\u201c\u6570\u636e\u51c6\u5907\u4e2d\u201d\uff0c\u53ef\u80fd\u9700\u8981\u8003\u8651\u5728\u4e1a\u52a1\u4e3b\u9898\u7684\u201c\u6570\u636e\u51c6\u5907\u201d\u8bbe\u7f6e\u4e2d\u9009\u62e9\u201c\u5b9a\u65f6\u9884\u63d0\u53d6\u201d\u3002"),ua=$("<ul>"),ua.append(oa),ua.append(Ka),Ma.call(aa,ua))}fa.call(O,La);O.append("<br>");if(ea){fa=$("<div>");if(oa=ea.finished?!0:!1)if((La=ea.joins)&&0!=La.length){ua="\u5176\u4e2d\u5305\u542b\u8868\u5173\u8054\u8017\u65f6 #1 \u79d2\u3002".replace("#1",
y(ea.totalMs));fa.text(ua);oa=[["\u5de6\u8868"],["JOIN"],["\u53f3\u8868"],["\u8017\u65f6(\u79d2)",!0],["\u5de6\u8868\u884c\u6570",!0],["\u53f3\u8868\u884c\u6570",!0],["\u8fde\u63a5\u540e\u884c\u6570",!0]];ea=x.createJqTable();Ma=x.letMeBold(x.createJqTr(ea,!0));for(aa=0;aa<oa.length;aa++)ua=oa[aa][0],Ka=oa[aa][1],ua=x.createJqTd(Ma,ua),Ka&&P(ua);for(aa=0;aa<La.length;aa++){Ma=La[aa];oa=Ma.finished?!0:!1;Ka=Ma.left;ua=Ma.right;Oa=Ma.usedMs;ab=Ma.leftJoined;ca=Ma.rightJoined;fb=Ma.join;lb=Ma.leftRows;
gb=Ma.rightRows;var qa=Ma.rows;Ma=x.createJqTr(ea,!0);!oa&&x.letMePending(Ma);X(x.createJqTd(Ma,Ka),ab);x.createJqTd(Ma,fb);X(x.createJqTd(Ma,ua),ca);P(x.createJqTd(Ma,Oa?Oa||0===Oa?y(Oa):"":"\u7f13\u5b58"));P(x.createJqTd(Ma,T(lb)));P(x.createJqTd(Ma,T(gb)));P(x.createJqTd(Ma,T(qa)))}La=$("<div>");La.append(fa);La.append(ea);ha||(ea=La.append,fa=$("<li>"),fa.text("\u5982\u679c\u957f\u65f6\u95f4\u8868\u5173\u8054\uff0c\u53ef\u68c0\u67e5\u201c\u6570\u636e\u51c6\u5907\u201d\u8bbe\u7f6e\u4e2d\u7684\u8868\u95f4\u5173\u7cfb\uff0c\u907f\u514d\u5173\u8054\u8868\u4e24\u8fb9\u90fd\u201c\u4fdd\u7559\u65e0\u6cd5\u5173\u8054\u7684\u884c\u201d\uff1b\u5c3d\u91cf\u907f\u514d\u591a\u8868\u5173\u8054\uff0c\u5fc5\u8981\u65f6\u6539\u7528\u201c\u81ea\u5b9a\u4e49SQL\u201d\u3002"),
aa=$("<ul>"),aa.append(fa),ea.call(La,aa));ea=La}else fa.text("\u6ca1\u6709\u8868\u5173\u8054\u3002"),ea=fa;else fa.text("\u8868\u5173\u8054\uff0c\u6ca1\u6709\u6b63\u5e38\u5b8c\u6210\u3002"),ea=fa;wa?(fa=O.append,La=$("<div>"),aa=!1,wa.finished&&(Ma=wa.totalMs,wa=wa.cubeEngine)&&(aa=!0,wa=wa.visitedDataRows,Ma="\u6267\u884c\u65b9\u6848\uff0c\u8bbf\u95ee\u6570\u636e #2 \u884c\uff0c\u5171\u7d2f\u8ba1\u8017\u65f6 #1 \u79d2\u3002".replace("#1",y(Ma)),Ma=Ma.replace("#2",wa),La.text(Ma)),aa||La.text("\u6267\u884c\u65b9\u6848\uff0c\u6ca1\u6709\u6b63\u5e38\u5b8c\u6210\u3002"),
fa.call(O,La)):(wa=$("<div>"),wa.text("\u65b9\u6848\u6267\u884c\u672a\u6b63\u5e38\u7ed3\u675f\u3002"),O.append(wa))}else ea=$("<div>"),ea.text("\u8868\u5173\u8054\u672a\u6b63\u5e38\u7ed3\u675f\u3002");O.append(ea)}else wa=$("<div>"),wa.text("\u6570\u636e\u51c6\u5907\u672a\u6b63\u5e38\u7ed3\u675f\u3002"),O.append(wa);return O};var X=function(aa,ea){if(aa.text()!=ea){var wa=$("<div>");wa.text(ea);wa.css("color","#abc");aa.append(wa)}},P=function(aa){x.letMeNoWrap(x.letMeRight(aa))},y=function(aa){aa+=
"";var ea=aa.length;if(3<ea){var wa=aa.substring(0,ea-3);aa=aa.substring(ea-3);return wa+"."+aa}for(wa=ea;3>wa;wa++)aa="0"+aa;return"0."+aa},T=function(aa){return aa||0===aa?aa+"":""}}})();(function(){function sa(){var d=this,b=new va,c,a,e,f,h,k=!1,l,r,z,D,I,J,Z,ia,Ta=!1,cb,jb=!1,ya,Ha,bb,ob,xa=!1;this.setLost=function(Ca){xa=Ca};this.getTable=function(){return Ha};this.setTable=function(Ca){Ha=Ca};this.addPropertyChangeListener=function(Ca){b.addListener(Ca)};this.removePropertyChangeListener=function(Ca){b.removeListener(Ca)};var Ya=function(Ca){b.fireEvent(function(mb){mb(new ha(d),Ca)})};this.getFullName=function(){bb||(bb=n.encodeFullName(Ha.getName(),c));return bb};this.getFullDisplayName=
function(){if(!ob){var Ca=Ha.searchSubViewContainsField(d);Ca=Ca?Ca.getDisplayName():Ha.getDisplayName();ob=n.encodeFullName(Ca,a)}return ob};this.setPureName=function(Ca){c=Ca;bb=null};this.getPureName=function(){return c};this.setDisplayName=function(Ca){a!=Ca&&(a=Ca,ob=null,Ya(sa.KEY_DISPLAYNAME))};this.getDisplayName=function(){return a};this.getComplexText=function(){return" ["+d.getDisplayName()+"] "};this.setDataType=function(Ca){e=Ca};this.getDataType=function(){return e};this.setFormatString=
function(Ca){f!=Ca&&(f=Ca,Ya(sa.KEY_FORMATSTRING))};this.getFormatString=function(){return f};this.setFiscalYearStart=function(Ca){h!=Ca&&(h=Ca,Ya(sa.KEY_FISCALYEARSTART))};this.getFiscalYearStart=function(){return h};this.getSortAccording=function(){return I};this.getCustomOrder=function(){return J};this.isOrderDefined=function(){return I||J};this.defineOrder=function(Ca,mb){I=Ca;J=mb;Ya(sa.KEY_SORTACCORDING)};this.setFormula=function(Ca){Z!=Ca&&(Z=Ca,Ya(sa.KEY_FORMULA))};this.getFormula=function(){return Z};
this.getFormulaDependence=function(){return ia};this.setFormulaDependence=function(Ca){ia=Ca};this.getFormulaAggStatus=function(){return cb};this.setFormulaAggStatus=function(Ca){cb!=Ca&&(cb=Ca,Ya(sa.KEY_FORMULA))};this.isRelativeAggregation=function(){return cb==sa.FORMULA_STATUS_AGG||cb==sa.FORMULA_STATUS_INTERLINE||cb==sa.FORMULA_STATUS_WITHTOTAL||ya};this.isInvalid=function(){return Ta};this.setInvalid=function(Ca){Ta!=Ca&&(Ta=Ca,Ya(sa.KEY_FORMULA))};this.setHierachy=function(Ca){r=Ca};this.getHierachy=
function(){return r};this.isUserCreated=function(){return jb};this.setUserCreated=function(Ca){jb=Ca};this.isPreAgg=function(){return ya};this.isHide=function(){return k};this.getGroupName=function(){return l};this.isParentChildDimension=function(){return l?!0:!1};this.isCanAsDimension=function(){return d.isRelativeAggregation()?!1:!0};this.isCanAsMeasure=function(){return!0};this.getDimensionNecessity=function(){return z};this.isNecessaryDimension=function(){if(d.isParentChildDimension()){var Ca=
Ha.getParentChildDimensionByName(l);if(null!=Ca)return Ca.isNecessaryDimension()}else if(eb.isNecessary(z))return!0;return!1};this.getCustomPeriod=function(){return D};this.mergeFrom=function(Ca){a=Ca.getDisplayName();e=Ca.getDataType();l=Ca.getGroupName();z=Ca.getDimensionNecessity();k=Ca.isHide();D=Ca.getCustomPeriod();ya=Ca.isPreAgg()};this.clone=function(){var Ca=new sa;Ca.fromJsonObject(d.toJsonObject());Ca.setInvalid(Ta);Ca.setFormulaAggStatus(cb);return Ca};this.fromJsonObject=function(Ca){ob=
bb=null;c=Ca.name;a=Ca.displayName;e=Ca.dataType;f=Ca.formatString;var mb=parseInt(Ca.fiscalYearStart);mb&&(h=mb);I=Ca.sortAccording;J=Ca.customOrder;if(mb=Ca.formula)Z=mb,ia=Ca.dependence,Ta="true"==Ca.invalid?!0:!1,cb=Ca.formulaAggStaus;jb="true"==Ca.userCreated?!0:!1;"true"==Ca.preAgg&&(ya=!0);k="true"==Ca.hide?!0:!1;l=Ca.group;z=Ca.necessary;D=(Ca=Ca.customPeriod)?Ca:null};this.toJsonObject=function(){var Ca={};Ca.name=c;Ca.displayName=a;Ca.dataType=e;Ca.formatString=f;h&&(Ca.fiscalYearStart=
h);I&&(Ca.sortAccording=I);J&&(Ca.customOrder=J);Z&&(Ca.formula=Z,Ca.dependence=ia);jb&&(Ca.userCreated="true");ya&&(Ca.preAgg="true");k&&(Ca.hide="true");l&&(Ca.group=l);z&&(Ca.necessary=z);D&&(Ca.customPeriod=D);xa&&(Ca.lost=!0);return Ca}}function Sa(d){var b=this,c=d,a,e,f=[],h,k=new va,l,r;this.addSthChangedListener=function(ya){k.addListener(ya)};this.removeSthChangedListener=function(ya){k.removeListener(ya)};this.removeAllSthChangedListener=function(){k.removeAllListener()};var z=function(ya,
Ha){k.fireEvent(function(bb){bb(b,ya,Ha)})},D=function(ya,Ha){z(Ha,ya)};this.getName=function(){return c};this.getDisplayName=function(){return a};this.getParentName=function(){return e};this.getFieldCount=function(){return f.length};this.getField=function(ya){return f[ya]};this.insertField=function(ya,Ha){f.splice(Ha,0,ya);I(ya);z()};var I=function(ya){ya.addPropertyChangeListener(D);ya.setTable(b)};this.removeField=function(ya){if(0>ya||ya>=f.length)throw Error("Illegal arguments.");ya=f.splice(ya,
1)[0];ya.removePropertyChangeListener(D);ya.setTable(null);z()};this.searchMetaField=function(ya){var Ha;J(f,function(bb){return ya==bb.getPureName()?(Ha=bb,!0):!1});return Ha};this.isAnyCalculationFieldExist=function(){var ya=!1;J(f,function(Ha){return Ha.getFormula()?ya=!0:!1});return ya};var J=function(ya,Ha){for(var bb=0;bb<ya.length&&!Ha(ya[bb]);bb++);};this.searchHierachy=function(ya){var Ha=-1,bb=null;J(f,function(ob){if(ob=ob.getHierachy())for(var xa=0;xa<ob.length;xa++)if(ya==ob[xa])return Ha=
xa,bb=ob,!0;return!1});return 0<=Ha?[bb,Ha]:null};this.getParentChildDimensionByName=function(ya){if(h)for(var Ha=0;Ha<h.length;Ha++)if(h[Ha].getName()==ya)return h[Ha];return null};this.getNecessaryParentChildDimensions=function(){var ya=[];if(h)for(var Ha=0;Ha<h.length;Ha++){var bb=h[Ha];bb.isNecessaryDimension()&&ya.push(bb)}return ya};this.getDimensionNecessityMetaFields=function(){var ya=[];if(h)for(var Ha=0;Ha<h.length;Ha++){var bb=h[Ha];bb.getDimensionNecessity()&&(bb=b.searchMetaField(bb.getIdFieldName()),
ya.push(bb))}for(Ha=0;Ha<f.length;Ha++)bb=f[Ha],bb.getDimensionNecessity()&&ya.push(bb);return ya};this.hasSubViews=function(){return l&&0<l.length};this.getSubViews=function(ya){!l&&ya&&(l=[]);return l};this.getViewItems=function(ya){!r&&ya&&(r=[]);return r};this.traversalSubViews=function(ya){Z(l,ya)};var Z=function(ya,Ha){for(ya=ya.slice();0<ya.length;){var bb=ya.shift();if(Ha(bb))break;(bb=bb.getSubViews())&&(ya=ya.concat(bb.slice()))}};this.updateFieldAtView=function(ya,Ha,bb,ob,xa){var Ya=r;
bb&&l&&b.traversalSubViews(function(Bb){var Eb=!1;Bb.getName()==bb&&(Ya=Bb.getViewItems(!0),Eb=!0);return Eb});var Ca=-1;if(Ya){var mb=Ya;if(ob)for(var tb=0;tb<Ya.length;tb++){var yb=Ya[tb];if(yb instanceof ja&&yb.getName()==ob){mb=yb.getFieldNames();break}}if(Ha)xa="number"==typeof xa&&0<=xa?xa:mb.length,mb.splice(xa,0,ya);else for(tb=mb.length-1;0<=tb;tb--)mb[tb]==ya&&(mb.splice(tb,1),Ca=tb)}return Ca};this.searchSubViewContainsField=function(ya,Ha){if(!l)return null;var bb=ya.getPureName(),ob=
null;b.traversalSubViews(function(xa){var Ya=!1,Ca;a:{if(Ca=xa.getViewItems())for(var mb=0;mb<Ca.length;mb++){var tb=Ca[mb];if(tb==bb){Ca=!0;break a}else if(tb instanceof ja)for(var yb=tb.getFieldNames(),Bb=0;Bb<yb.length;Bb++)if(bb==yb[Bb]){Ha&&(Ha[0]=tb);Ca=!0;break a}}Ca=!1}Ca&&(ob=xa,Ya=!0);return Ya});return ob};this.carryOut=function(){return[f,h,l,r]};this.mergeFrom=function(ya){a=ya.getDisplayName();e=ya.getParentName();var Ha=ya.carryOut(),bb=Ha[0];ya=Ha[2];var ob=Ha[3];h=Ha[1];var xa=[],
Ya=[];for(Ha=0;Ha<bb.length;Ha++){for(var Ca=bb[Ha],mb,tb=!1,yb=0;yb<f.length;yb++)if(mb=f[yb],mb.getPureName()==Ca.getPureName()){mb.mergeFrom(Ca);tb=xa[yb]=!0;break}tb||(mb=Ca.clone(),mb.setTable(b));Ya.push(mb)}for(Ha=0;Ha<f.length;Ha++)xa[Ha]||(mb=f[Ha],mb.isUserCreated()&&Ya.push(mb));f=Ya;bb={};for(Ha=0;Ha<f.length;Ha++)mb=f[Ha],bb[mb.getPureName()]=mb;if((l=Ta(l,ya,bb))||ob){!r&&(r=[]);for(var Bb in bb)r.push(Bb);r=ia(r,ob,bb)}else r=null};var ia=function(ya,Ha,bb){var ob={},xa=null;if(Ha){xa=
[];for(var Ya=0;Ya<Ha.length;Ya++){var Ca=Ha[Ya];if(Ca instanceof ja){var mb={},tb=Ca.clone(mb);xa.push(tb);ob[Ca.getName()]=[tb,mb]}else xa.push(Ca),ob[Ca]=!0}}if(ya)for(Ya=0;Ya<ya.length;Ya++)if(Ca=ya[Ya],Ca instanceof ja){if(mb=ob[Ca.getName()]){tb=mb[0];mb=mb[1];Ca=Ca.getFieldNames();for(var yb=0;yb<Ca.length;yb++){var Bb=Ca[yb];mb[Bb]||((Ha=bb[Bb])&&Ha.isUserCreated()&&tb.getFieldNames().push(Bb),delete bb[Bb])}}}else ob[Ca]||((Ha=bb[Ca])&&Ha.isUserCreated()&&(!xa&&(xa=[]),xa.push(Ca)),delete bb[Ca]);
return xa},Ta=function(ya,Ha,bb){if(!Ha)return null;for(var ob=[],xa=0;xa<Ha.length;xa++)ob.push(Ha[xa].clone());if(!ya)return ob;Z(ob,function(Ya){var Ca=Ya.getName(),mb=null;Z(ya,function(yb){var Bb=!1;Ca==yb.getName()&&(mb=yb.getViewItems(),Bb=!0);return Bb});var tb=ia(mb,Ya.getViewItems(),bb);Ya.carryInViewItem(tb)});return ob};this.clone=function(){for(var ya=[],Ha=0;Ha<f.length;Ha++)ya.push(f[Ha].clone());var bb;h&&(bb=cb(jb(h)));if(l){var ob=[];for(Ha=0;Ha<l.length;Ha++)ob.push(l[Ha].clone())}if(r){var xa=
[];for(Ha=0;Ha<r.length;Ha++){var Ya=r[Ha];Ya instanceof ja?(Ya=Ya.clone(),xa.push(Ya)):xa.push(Ya)}}Ha=new Sa;Ha.carryIn(c,a,e,ya,bb,ob,xa);return Ha};this.carryIn=function(ya,Ha,bb,ob,xa,Ya,Ca){c=ya;a=Ha;e=bb;f=ob;h=xa;for(ya=0;ya<f.length;ya++)I(f[ya]);l=Ya;r=Ca};this.fromJsonObject=function(ya){c=ya.name;a=ya.displayName;e=ya.parentName;var Ha=ya.fields,bb=[];if(Ha&&0<Ha.length)for(var ob=0;ob<Ha.length;ob++){var xa=Ha[ob],Ya=new sa;Ya.fromJsonObject(xa);I(Ya);bb.push(Ya)}f=bb;h=cb(ya.parentChildDimensions);
Ba.itemsFromJsonObject(b,ya);Ba.subViewsFromJsonObject(b,ya)};var cb=function(ya){if(ya&&0<ya.length){for(var Ha=[],bb=0;bb<ya.length;bb++){var ob=ya[bb],xa=new eb;xa.fromJsonObject(ob);Ha.push(xa)}return Ha}return null};this.toJsonObject=function(){var ya={};ya.name=c;ya.displayName=a;e&&(ya.parentName=e);for(var Ha=f,bb=[],ob=0;ob<Ha.length;ob++){var xa=Ha[ob].toJsonObject();bb.push(xa)}ya.fields=bb;h&&(ya.parentChildDimensions=jb(h));Ba.itemsToJsonObject(b,ya);Ba.subViewsToJsonObject(b,ya);return ya};
var jb=function(ya){for(var Ha=[],bb=0;bb<ya.length;bb++){var ob=ya[bb].toJsonObject();Ha.push(ob)}return Ha}}function Ba(d,b,c){var a=this,e,f;this.getName=function(){return d};this.getDisplayName=function(){return b};this.getDisplayAs=function(){return c};this.getSubViews=function(h){!e&&h&&(e=[]);return e};this.getViewItems=function(h){!f&&h&&(f=[]);return f};this.carryInViewItem=function(h){f=h};this.clone=function(){var h=new Ba(d,b,c);if(e)for(var k=0;k<e.length;k++){var l=e[k];h.getSubViews(!0).push(l.clone())}if(f)for(k=
0;k<f.length;k++)l=f[k],l instanceof ja?h.getViewItems(!0).push(l.clone()):h.getViewItems(!0).push(l);return h};this.fromJsonObject=function(h){Ba.itemsFromJsonObject(a,h);Ba.subViewsFromJsonObject(a,h)};this.toJsonObject=function(){var h={};Ba.itemsToJsonObject(a,h);Ba.subViewsToJsonObject(a,h);return h}}function ja(d,b){var c=[];this.getName=function(){return d};this.getDisplayName=function(){return b};this.getFieldNames=function(){return c};this.clone=function(a){for(var e=new ja(d,b),f=0;f<c.length;f++){var h=
c[f];e.getFieldNames().push(h);a&&(a[h]=!0)}return e}}function ta(){var d=this,b=[],c,a,e=new va;this.addChangedListener=function(k){e.addListener(k)};this.removeChangedListener=function(k){e.removeListener(k)};this.removeAllChangedListener=function(){e.removeAllListener()};var f=function(k){e.fireEvent(function(l){l(d,k)})},h=function(k,l,r){f(l)};this.isMultiTableMode=function(){return!(1==b.length&&!b[0].getName())};this.getTableCount=function(){return b.length};this.getTable=function(k){return b[k]};
this.searchTableByName=function(k){for(var l=0;l<b.length;l++){var r=b[l];if(r.getName()==k)return r}return null};this.searchMetaField=function(k){var l=n.decodeFullName(k);k=l[0];l=l[1];return(k=d.isMultiTableMode()?d.searchTableByName(k):d.getTable(0))?k.searchMetaField(l):null};this.isAnyCalculationFieldExist=function(){for(var k=0;k<b.length;k++)if(b[k].isAnyCalculationFieldExist())return!0;return!1};this.getTableTreeLevel=function(k){var l=0;if(k.getParentName())for(;k=d.searchTableByName(k.getParentName());)l++;
return l};this.merge=function(k){for(var l=[],r=0;r<k.getTableCount();r++){for(var z=k.getTable(r),D,I=!1,J=0;J<b.length;J++)if(D=b[J],D.getName()==z.getName()){D.mergeFrom(z);I=!0;break}I||(D=z.clone(),D.addSthChangedListener(h));l.push(D)}b=l;d.setEliminations(k.getEliminations());a=k.getSrcMode();f()};this.getSrcMode=function(){return a};this.isMdOfSrcMode=function(){return"MD"==a};this.isPreaggOfSrcMode=function(){return"PRE_AGG"==a};this.isNormalSrcMode=function(){return!a||"ER"==a};this.getDimensionNecessityMetaFields=
function(){for(var k=[],l=0;l<b.length;l++)k=k.concat(b[l].getDimensionNecessityMetaFields());return k};this.setEliminations=function(k){c=k};this.getEliminations=function(){return c};this.getEliminationKeyMetaFields=function(){var k=[];if(c&&0<c.length)for(var l=0;l<c.length;l++){var r=c[l].getKeyFieldName();r=d.searchMetaField(r);k.push(r)}return k};this.carryIn=function(k,l){b=k;for(k=0;k<b.length;k++)b[k].addSthChangedListener(h);a=l};this.createExecutingCopy=function(k){for(var l=[],r={},z=0;z<
k.length;z++){var D=k[z],I=D.getTable();if(I){var J=I.getName(),Z=r[J];if(!Z){Z=[];var ia=I.carryOut()[1],Ta=new Sa;Ta.carryIn(J,I.getDisplayName(),null,Z,ia);r[J]=Z;l.push(Ta)}Z.push(D)}}k=new ta;k.carryIn(l,a);k.setEliminations(c);return k};this.fromJsonObject=function(k){b=[];for(var l=k.tables,r=0;r<l.length;r++){var z=l[r],D=new Sa;D.fromJsonObject(z);D.addSthChangedListener(h);b.push(D)}if(l=k.eliminations){r=[];for(z=0;z<l.length;z++){D=l[z];var I=new ib;I.fromJsonObject(D);r.push(I)}l=r}else l=
null;c=l;a=k.src};this.toJsonObject=function(){for(var k=[],l=0;l<b.length;l++)k.push(b[l].toJsonObject());l={};l.tables=k;if(c){k=c;for(var r=[],z=0;z<k.length;z++)r.push(k[z].toJsonObject());l.eliminations=r}a&&(l.src=a);return l}}function Ra(d){var b=this,c=[],a={};this.getUsingMetaFields=function(){return c};this.checkField=function(f){if(e(f)&&d){var h=f.getFormulaDependence();if(h)for(var k=0;k<h.length;k++){var l=d.searchMetaField(h[k]);l&&b.checkField(l)}f.getGroupName()&&(h=f.getTable(),
k=h.getParentChildDimensionByName(f.getGroupName()),null!=k&&(l=n.encodeFullName(h.getName(),k.getIdFieldName()),e(d.searchMetaField(l)),l=n.encodeFullName(h.getName(),k.getParentFieldName()),e(d.searchMetaField(l))));f.getSortAccording()&&(f=d.searchMetaField(f.getSortAccording()))&&b.checkField(f)}};var e=function(f){return a[f.getFullName()]?!1:(c.push(f),a[f.getFullName()]=!0)}}function ib(){var d,b;this.getKeyFieldName=function(){return d};this.toJsonObject=function(){var c={};c.idField=d;c.associatedFields=
b;return c};this.fromJsonObject=function(c){d=c.idField;b=c.associatedFields}}function eb(){var d,b,c,a,e,f,h;this.getName=function(){return d};this.getAlias=function(){return b};this.getIdFieldName=function(){return c};this.getParentFieldName=function(){return a};this.getDisplayFieldName=function(){return e};this.getDimensionNecessity=function(){return h};this.isNecessaryDimension=function(){return eb.isNecessary(h)};this.fromJsonObject=function(k){d=k.name;b=k.alias;c=k.idFieldName;a=k.parentIdFieldName;
e=k.displayFieldName;f=k.sortAccordingFieldName;h=k.necessary};this.toJsonObject=function(){var k={};k.name=d;k.alias=b;k.idFieldName=c;k.parentIdFieldName=a;k.displayFieldName=e;k.sortAccordingFieldName=f;k.necessary=h;return k}}function x(){var d=this,b=new va,c,a,e,f,h,k=!0,l,r,z,D,I,J,Z=!0,ia=!1,Ta,cb,jb,ya;this.addPropertyChangeListener=function(xa){b.addListener(xa)};this.removePropertyChangeListener=function(xa){b.removeListener(xa)};var Ha=function(xa,Ya){var Ca=new X(d);Ya&&Ca.setMetaFieldSubEventTarget(Ya);
b.fireEvent(function(mb){mb(Ca,xa)})};this.clearListener=function(){b.removeAllListener();e.removePropertyChangeListener(ob)};this.setMetaField=function(xa){e&&e.removePropertyChangeListener(ob);e=xa};this.getMetaField=function(){return e};this.getId=function(){return f};this.setId=function(xa){f=xa};this.setNumberFormat=function(xa){l!=xa&&(l=xa,Ha(x.KEY_NUMBERFORMAT))};this.getNumberFormat=function(){return l?l:e.getFormatString()};this.setDateFormat=function(xa){r!=xa&&(r=xa,Ha(x.KEY_DATEFORMAT))};
this.getDateFormat=function(){return r};this.setContinuousColor=function(xa){z=xa;Ha(x.KEY_CONTINUOUSCOLOR)};this.getContinuousColor=function(){return z};this.setDiscreteColor=function(xa){D=xa;Ha(x.KEY_DISCRETECOLOR)};this.getDiscreteColor=function(){return D};this.setRole=function(xa,Ya){if(xa!==x.ROLE_DIMENSION&&xa!==x.ROLE_MEASURE)throw Error("Illegal argument: "+xa);if(h!=xa||I!=Ya)h=xa,I=Ya?Ya:null,Ha(x.KEY_ROLE)};this.getRole=function(){return h};this.isDimension=function(){return h==x.ROLE_DIMENSION?
!0:!1};this.isMeasure=function(){return h==x.ROLE_MEASURE?!0:!1};this.setContinuous=function(xa){k=xa};this.isContinuous=function(){return k};this.getAggregation=function(){return I};this.setTotalUsing=function(xa){J!=xa&&(J=xa,Ha(x.KEY_TOTALUSING))};this.getTotalUsing=function(){return J};this.setTotalDisplayHidden=function(xa){xa=!xa;Z!=xa&&(Z=xa,Ha(x.KEY_TOTALDISPLAY))};this.isTotalDisplayHidden=function(){return!Z};this.setShowSubtotal=function(xa){ia!=xa&&(ia=xa,Ha(x.KEY_SUBTOTAL))};this.isShowSubtotal=
function(){return ia};this.setPartValue=function(xa){Ta!=xa&&(Ta=xa,Ha(x.KEY_PARTVALUE))};this.getPartValue=function(){return Ta};this.setSort=function(xa){cb!=xa&&(cb=xa,Ha(x.KEY_SORT))};this.getSort=function(){return cb};this.setQuickSetup=function(xa){jb!=xa&&(jb=xa,Ha(x.KEY_QUICKSETUP))};this.getQuickSetup=function(){return jb};this.setDisplayName=function(xa){ya!=xa&&(ya=xa,Ha(x.KEY_DISPLAYNAME))};this.getDisplayName=function(){return ya};this.getText=function(){return ya?ya:bb(e.getDisplayName())};
var bb=function(xa){if(h==x.ROLE_DIMENSION){var Ya=Ta?x.partValueToString(Ta):null;return(Ya?Ya+":":"")+xa}if(h==x.ROLE_MEASURE)return Ya=x.aggregationToString(I),Ya+":"+xa;throw Error("Unknown role: "+h);};this.getTextTooltips=function(){var xa=bb("["+e.getFullDisplayName()+"]");jb&&(xa=xa+"("+x.quickSetupToString(jb),xa+=")");return xa};this.getTextForExhibition=function(){if(ya)return ya;var xa=e.getDisplayName(),Ya=Ta?x.partValueToString(Ta):null;return xa+(Ya?"("+Ya+")":"")};this.getComplexText=
function(){return" ["+d.getText()+"] "};this.setInvalidPromptListener=function(xa){c=xa};this.getInvalidPrompt=function(){return a};this.setInvalidPrompt=function(xa){var Ya=!1;xa.isCancel()?a&&a.getLevel()==xa.getLevel()&&(a=null,Ya=!0):a?xa.getLevel()<=a.getLevel()&&(a=xa,Ya=!0):(a=xa,Ya=!0);Ya&&c&&c()};this.isInvalid=function(){return a?!0:!1};var ob=function(xa,Ya){if(Ya==sa.KEY_FORMATSTRING)Ha(Ya,xa),l||Ha(x.KEY_NUMBERFORMAT,xa);else if(Ya==sa.KEY_FISCALYEARSTART||Ya==sa.KEY_SORTACCORDING)Ha(Ya,
xa);else if(Ya==sa.KEY_DISPLAYNAME||Ya==sa.KEY_FORMULA)e.getDataType()==sa.DT_DATE?!Ta&&d.setPartValue(x.PARTVALUE_DATE_YEAR):Ta&&(Ta=null),Ha(x.KEY_FORMULA,xa)};this.clone=function(){var xa=d.protectedCreateInstance(),Ya=d.toJsonObject();xa.fromJsonObject(Ya,{searchMetaField:function(Ca){return e}});return xa};this.protectedCreateInstance=function(){throw Error("Override me.");};this.toJsonObject=function(){var xa={};xa.id=f;xa.name=e.getFullName();xa.displayName=ya;xa.role=h;xa.isContinuous=k;h==
x.ROLE_MEASURE?(xa.aggregation=I,xa.totalUsing=J,xa.isTotalDisplay=Z,jb&&(xa.quickSetup=jb)):(ia&&(xa.isShowSubtotal=!0),Ta&&(xa.partValue=Ta),cb&&(xa.sort=cb));l&&(xa.numberFormat=l);r&&(xa.dateFormat=r);z&&(xa.continuousColor=z.toJsonObject());D&&(xa.discreteColor=D.toJsonObject());return xa};this.fromJsonObject=function(xa,Ya){f=xa.id;var Ca=xa.name;e=Ya.searchMetaField(Ca);ya=xa.displayName;if(null==e){var mb=n.decodeFullName(Ca);Ca=mb[0];mb=mb[1];Ya=Ya.isMultiTableMode()?Ya.searchTableByName(Ca):
Ya.getTable(0);e=new sa;e.setLost(!0);e.setTable(Ya?Ya:new Sa(Ca));e.setPureName(mb);e.setDisplayName(mb);a=new x.InvalidPrompt;a.setLevel(x.InvalidPrompt.LEVEL_META_LOST,!0)}l=(Ya=xa.numberFormat)?Ya:null;r=(Ya=xa.dateFormat)?Ya:null;z=null;if(Ya=xa.continuousColor)z=new A,z.fromJsonObject(Ya);D=null;if(Ya=xa.discreteColor)D=new M,D.fromJsonObject(Ya);h=xa.role;k=xa.isContinuous;h==x.ROLE_MEASURE?(I=xa.aggregation,Z=xa.isTotalDisplay?!0:!1,J=xa.totalUsing,jb=xa.quickSetup):(ia=xa.isShowSubtotal?
!0:!1,Ta=xa.partValue,cb=xa.sort)};this.protectedMethod={bindMetaEvent:function(){e.addPropertyChangeListener(ob)},innerSetDiscreteColor:function(xa){D=xa}}}function ha(d){this.getMetaField=function(){return d};this.toString=function(){return d.constructor.name}}function X(d){var b;this.getField=function(){return d};this.setMetaFieldSubEventTarget=function(c){b=c};this.getMetaFieldSubEventTarget=function(){return b};this.toString=function(){return d.constructor.name+(b?"-"+b.toString():"")};this.getSubEventMetaField=
function(){return b?b.getMetaField():null}}function P(){this.fromJsonObject=function(d){throw Error("Override me");};this.updateFromJsonObject=function(d){}}function y(){function d(){var a,e,f=0,h=!1;this.getValue=function(){return a};this.getDisplayText=function(){return e};this.isValueNull=function(){return a==fa.STRING_NULL_VALUE};this.getLevel=function(){return f};this.isSelected=function(){return h};this.fromJsonObject=function(k){a=k.value;a=void 0==a?fa.STRING_NULL_VALUE:a;e=k.text;f=k.level;
h=!1!==k.selected}}P.call(this);var b=this,c;this.getItems=function(){return c};this.updateFromJsonObject=function(a){b.fromJsonObject(a)};this.fromJsonObject=function(a){c=[];a=a.nodes;for(var e=0;e<a.length;e++){var f=a[e],h=new d;h.fromJsonObject(f);c.push(h)}}}function T(){function d(){var a,e,f=!1;this.getValue=function(){return a};this.getDisplayText=function(){return void 0==e?a==fa.STRING_NULL_VALUE?"":a:e};this.isValueNull=function(){return a==fa.STRING_NULL_VALUE};this.isSelected=function(){return f};
this.fromJsonObject=function(h){a=h.value;a=void 0==a?fa.STRING_NULL_VALUE:a;e=h.text;f=!1!==h.selected}}P.call(this);var b=this,c;this.getItems=function(){return c};this.updateFromJsonObject=function(a){b.fromJsonObject(a)};this.fromJsonObject=function(a){c=[];a=a.values;for(var e=0;e<a.length;e++){var f=a[e],h=new d;h.fromJsonObject(f);c.push(h)}}}function aa(){P.call(this);var d=this,b,c,a,e;this.getMin=function(){return b};this.getMax=function(){return c};this.getSelectedMin=function(){return a};
this.getSelectedMax=function(){return e};this.updateFromJsonObject=function(f){d.fromJsonObject(f)};this.fromJsonObject=function(f){b=f.min?f.min:0;c=f.max?f.max:0;a=f.selectedMin?f.selectedMin:0;e=f.selectedMax?f.selectedMax:0}}function ea(){P.call(this);var d=this,b,c;this.getFromDateMs=function(){return b};this.getToDateMs=function(){return c};this.updateFromJsonObject=function(a){d.fromJsonObject(a)};this.fromJsonObject=function(a){b=a.fromDate?a.fromDate:(new Date).getTime();c=a.toDate?a.toDate:
(new Date).getTime()}}function wa(){var d;P.call(this);this.fromJsonObject=function(b){d=b.state};this.getState=function(){return d}}function O(){var d=this,b=!0,c=!1,a=!0,e,f=O.STATE_VALID,h,k=new va,l=new va,r=new va;this.setPreparedModel=function(J){f=d.protectedCheckPreparedModel(J);f==O.STATE_VALID&&(h=J,b&&d.protectedAfterSetFullValue(!0))};this.getPreparedModel=function(){return h};this.innerCarryPreparedModel=function(J){h=J};this.setFullValue=function(J){b=J;d.protectedAfterSetFullValue(b);
z()};this.isFullValue=function(){return b};this.protectedAfterSetFullValue=function(J){throw Error("Override me.");};this.setJustShowAffected=function(J){c!=J&&(c=J,I(O.KEY_AFFECTED))};this.isJustShowAffected=function(){return c};this.setOnShow=function(J){a!=J&&(a=J,I(O.KEY_ONSHOW))};this.isOnShow=function(){return a};this.updatePreparedModel=function(J){h&&(h.updateFromJsonObject(J),b&&d.protectedAfterSetFullValue(!0),D())};this.setAssociatedField=function(J){e=J};this.getAssociatedField=function(){return e};
this.toJsonObject=function(){throw Error("Override me");};this.fromJsonObject=function(J){throw Error("Override me");};this.applySelectedValues=function(J){throw Error("Override me");};this.addValueChangedListener=function(J){k.addListener(J)};this.removeValueChangedListener=function(J){k.removeListener(J)};var z=function(){k.fireEvent(function(J){J(d)})};this.addPreparedValueUpdatedListener=function(J){l.addListener(J)};this.removePreparedValueUpdatedListener=function(J){l.removeListener(J)};var D=
function(){l.fireEvent(function(J){J(d)})};this.addPropertyChangeListener=function(J){r.addListener(J)};this.removePropertyChangeListener=function(J){r.removeListener(J)};var I=function(J){r.fireEvent(function(Z){Z(d,J)})};this.getState=function(){return f};this.isStateValid=function(){return f==O.STATE_VALID};this.getStateDisplay=function(){return f==O.STATE_FIELD_ERROR?Q.get("filterFieldInvalid","\u65e0\u6548\u7684\u5b57\u6bb5"):f==O.STATE_PMODEL_UNMATCH?Q.get("filterDataTypeUnmatched","\u5b57\u6bb5\u6570\u636e\u7c7b\u578b\u4e0e\u7b5b\u9009\u5668\u4e0d\u5339\u914d"):
f};this.checkState=function(J){(J=d.protectedCheckStateByField(J))&&(f=J)};this.protectedCheckStateByField=function(J){throw Error("Override");};this.protectedCheckPreparedModel=function(J){throw Error("Override");};this.copyForSetting=function(){var J=d.toJsonObject(),Z=new d.constructor;Z.fromJsonObject(J);Z.setAssociatedField(d.getAssociatedField());Z.setPreparedModel(d.getPreparedModel());return Z};this.applyFromSetting=function(J){var Z=J.toJsonObject();d.fromJsonObject(Z);c&&d.innerCarryPreparedModel(J.getPreparedModel())};
this.protectedMethod={fireValueChangedEvent:z,firePropertyChangeEvent:I,innerSetFullValue:function(J){b=J}}}function fa(){O.call(this);var d=this,b=this.protectedMethod,c=!1,a={},e,f=null;this.applySelectedValues=function(k){a={};k=k.values;for(var l=0;l<k.length;l++)a[k[l]]=!0};this.getSelectableItems=function(){var k=d.getPreparedModel();return k?k.getItems():[]};this.setExclude=function(k){c!=k&&(c=k,b.firePropertyChangeEvent(fa.KEY_EXCLUDE),b.fireValueChangedEvent())};this.isExclude=function(){return c};
this.abandonExclude=function(){if(c&&d.getPreparedModel()){c=!1;for(var k=!0,l={},r=d.getSelectableItems(),z=0;z<r.length;z++){var D=r[z].getValue();d.isValueSelected(D)?k=!1:l[D]=!0}a=l;b.innerSetFullValue(k)}};this.protectedAfterSetFullValue=function(k){for(var l=d.getSelectableItems(),r=0;r<l.length;r++){var z=l[r].getValue();k?a[z]=!0:delete a[z]}};this.setSelectedValue=function(k){a={};a[k]=!0;b.innerSetFullValue(!1);b.fireValueChangedEvent()};this.addSelectedValue=function(k){a[k]=!0;h();b.fireValueChangedEvent()};
this.getAllSelectedValue=function(){return a};this.removeSelectedValue=function(k){a[k]&&(delete a[k],b.innerSetFullValue(!1),b.fireValueChangedEvent())};this.isValueSelected=function(k){return 1==a[k]};this.cloneAllSelectedValue=function(){return JSON.parse(JSON.stringify(a))};this.resetAllSelectedValue=function(k){a=k;h();b.fireValueChangedEvent()};var h=function(){for(var k=!0,l=d.getSelectableItems(),r=0;r<l.length;r++)if(!a[l[r].getValue()]){k=!1;break}b.innerSetFullValue(k)};this.isTreeSelectingIncludeSubs=
function(){return!1===e?!1:!0};this.setTreeSelectingIncludeSubs=function(k){e=k};this.getCtrlType=function(){return f};this.setCtrlType=function(k,l,r){f=k;l&&(a=l,b.innerSetFullValue(r),b.fireValueChangedEvent());b.firePropertyChangeEvent(fa.KEY_CTRLTYPE)};this.isSingleValueMode=function(k){k=k?k:f;return k==fa.CTRLTYPE_RADIOBUTTON_LIST||k==fa.CTRLTYPE_RADIOBUTTON_POPUP};this.toJsonObject=function(){var k={};k.name=fa.FILTER_NAME;k.full=d.isFullValue();k.affected=d.isJustShowAffected();k.onShow=
d.isOnShow();k.exclude=c;if(d.isFullValue())var l=[];else{l=[];for(var r in a)r=r==fa.STRING_NULL_VALUE?null:r,l.push(r)}k.selected=l;!1===e&&(k.treeSelectingIncludeSubs=!1);f&&(k.ctrl=f);return k};this.fromJsonObject=function(k){var l=k.full?!0:!1;b.innerSetFullValue(l);a={};if(!l){l=k.selected;for(var r=0;r<l.length;r++)a[null==l[r]?fa.STRING_NULL_VALUE:l[r]]=!0}d.setJustShowAffected(k.affected?!0:!1);d.setOnShow(k.onShow?!0:!1);c=k.exclude?!0:!1;e=!1===k.treeSelectingIncludeSubs?!1:!0;f=k.ctrl};
this.protectedCheckStateByField=function(k){var l=k.getMetaField().getDataType(),r=l==sa.DT_STRING&&!k.getPartValue();k=l==sa.DT_DATE&&k.getPartValue();return r||k?null:O.STATE_PMODEL_UNMATCH};this.protectedCheckPreparedModel=function(k){return null==k?O.STATE_INVALID:k instanceof wa?k.getState():k instanceof T||k instanceof y?O.STATE_VALID:O.STATE_PMODEL_UNMATCH}}function La(){O.call(this);var d=this,b=this.protectedMethod,c,a,e=!0;this.protectedAfterSetFullValue=function(f){f=d.getPreparedModel();
c=f.getMin();a=f.getMax()};this.isContainNull=function(){return e};this.setContainNull=function(f){e=f};this.setValue=function(f,h,k){var l=!1;c!=f&&(c=f,l=!0);a!=h&&(a=h,l=!0);e!=k&&(e=k,l=!0);l&&(f=d.getPreparedModel(),f=e&&c==f.getMin()&&a==f.getMax(),b.innerSetFullValue(f),b.fireValueChangedEvent())};this.getFloor=function(){return c};this.getCeiling=function(){return a};this.getFormatString=function(){return d.getAssociatedField().getNumberFormat()};this.applySelectedValues=function(f){c=f.floor;
a=f.ceiling};this.toJsonObject=function(){var f={};f.name=La.FILTER_NAME;f.full=d.isFullValue();f.affected=d.isJustShowAffected();f.onShow=d.isOnShow();f.floor=c;f.ceiling=a;f.containNull=e;return f};this.fromJsonObject=function(f){b.innerSetFullValue(f.full?!0:!1);c=f.floor;a=f.ceiling;d.setJustShowAffected(f.affected?!0:!1);d.setOnShow(f.onShow?!0:!1);e=f.containNull};this.protectedCheckStateByField=function(f){return f.getMetaField().getDataType()==sa.DT_NUMBER?null:O.STATE_PMODEL_UNMATCH};this.protectedCheckPreparedModel=
function(f){return null==f?O.STATE_INVALID:f instanceof wa?f.getState():f instanceof aa?O.STATE_VALID:O.STATE_PMODEL_UNMATCH}}function Ma(){O.call(this);var d=this,b=this.protectedMethod,c=!1,a,e,f;this.setValue=function(h,k,l,r){b.innerSetFullValue(!1);a=h;e=k;f=l;c=r;b.fireValueChangedEvent()};this.isContainNull=function(){return c};this.setContainNull=function(h){c=h};this.getFromDateMs=function(){return a};this.setFromDateMs=function(h){a=h};this.getToDateMs=function(){return e};this.setToDateMs=
function(h){e=h};this.getRelativePeriodModel=function(){return f};this.setRelativePeriodModel=function(h){f=h};this.protectedAfterSetFullValue=function(h){h=d.getPreparedModel();a=h.getFromDateMs();e=h.getToDateMs()};this.applySelectedValues=function(h){};this.copy=function(){var h=null;f&&(h=new za,h.fromJsonObject(f.toJsonObject()));var k=new Ma;k.setValue(a,e,h,c);return k};this.toJsonObject=function(){var h={};h.name=Ma.FILTER_NAME;h.full=d.isFullValue();h.onShow=d.isOnShow();h.containNull=c;
h.dateFrom=a;h.dateTo=e;f&&(h.relative=f.toJsonObject());return h};this.fromJsonObject=function(h){b.innerSetFullValue(h.full?!0:!1);d.setJustShowAffected(!1);d.setOnShow(h.onShow?!0:!1);c=h.containNull;a=h.dateFrom;e=h.dateTo;(h=h.relative)?(f=new za,f.fromJsonObject(h)):f=null};this.protectedCheckStateByField=function(h){return h.getMetaField().getDataType()==sa.DT_DATE?null:O.STATE_PMODEL_UNMATCH};this.protectedCheckPreparedModel=function(h){return null==h?O.STATE_INVALID:h instanceof wa?h.getState():
h instanceof ea?O.STATE_VALID:O.STATE_PMODEL_UNMATCH}}function ua(){var d=this,b,c,a,e;this.getModel=function(){return b};this.setModel=function(f){b=f};this.getPreferences=function(){return c};this.setPreferences=function(f){c=f};this.getName=function(){return a};this.setName=function(f){a=f};this.isCurrent=function(){return e};this.setCurrent=function(f){e=f};this.toJsonObject=function(f){var h={};h.type=f.encodeModelPageType(b);h.model=b.toJsonObject();c&&(h.preferences=c.toJsonObject());a&&(h.name=
a);e&&(h.current="true");return h};this.fromJsonObject=function(f,h,k){k.decodeModelPageType(f.type,d);b.fromJsonObject(f.model,h);h=f.preferences;c&&h&&c.fromJsonObject(h);a=f.name;e=f.current?!0:!1}}function Ka(){var d=this,b,c,a;this.setName=function(e){b=e};this.getName=function(){return b};this.setDescription=function(e){c=e};this.getDescription=function(){return c};this.setPostScript=function(e){a=e};this.getPostScript=function(){return a};this.copy=function(){var e=d.protectedCopy();e.setName(b);
e.setDescription(c);e.setPostScript(a);return e};this.protectedCopy=function(){throw Error("Implement");};this.toJsonObject=function(e){var f={};f.name=b;f.description=c;f.postScript=a;d.protectedToJsonObject(f,e);return f};this.protectedToJsonObject=function(e,f){throw Error("Implement");};this.fromJsonObject=function(e,f){b=e.name;c=e.description;a=e.postScript;d.protectedFromJsonObject(e,f)};this.protectedFromJsonObject=function(e,f){throw Error("Implement");}}function oa(){Ka.call(this);var d=
[],b=[];this.setDimensionPickers=function(e){d=e};this.getDimensionPickers=function(){return d};this.setMeasurePickers=function(e){b=e};this.getMeasurePickers=function(){return b};this.protectedCopy=function(){for(var e=[],f=0;f<d.length;f++){var h=d[f];e.push(h.copy())}var k=[];for(f=0;f<b.length;f++)h=b[f],k.push(h.copy());f=new oa;f.setDimensionPickers(e);f.setMeasurePickers(k);return f};this.protectedToJsonObject=function(e,f){e.dimensionPickers=c(d,f);e.measurePickers=c(b,f)};var c=function(e,
f){for(var h=[],k=0;k<e.length;k++){var l=e[k];f.isFieldExist(l.getField())&&h.push(l.toJsonObject())}return h};this.protectedFromJsonObject=function(e,f){d=a(e.dimensionPickers,f);b=a(e.measurePickers,f)};var a=function(e,f){for(var h=[],k=0;k<e.length;k++){var l=e[k],r=oa.createPicker(l.type);r.fromJsonObject(l,f);r.getField()?h.push(r):window.console&&window.console.warn("Picker fromJson(), field '#1' not found.".replace("#1",l.fieldId))}return h}}function Oa(){var d=this,b,c=!1,a=!1,e;this.setField=
function(f){b=f};this.getField=function(){return b};this.getType=function(){throw Error("Implement");};this.setSortAccording=function(f,h){c=f?!0:!1;a=h?!0:!1};this.isSortAccording=function(){return c};this.isSortAsc=function(){return a};this.setOutputTargetIndex=function(f){e=f};this.getOutputTargetIndex=function(){return e};this.isOutputTarget=function(){return e?!0:!1};this.takeDetail=function(f){};this.copy=function(){var f=d.toJsonObject(),h=oa.createPicker(d.getType());h.fromJsonObject(f,{searchFieldById:function(k){return d.getField()}});
return h};this.toJsonObject=function(){var f={};f.fieldId=b.getId();c&&(f.sortAsc=a);f.outputTarget=e;f.type=d.getType();d.protectedToJsonObject(f);return f};this.protectedToJsonObject=function(f){throw Error("Implement");};this.fromJsonObject=function(f,h){b=h.searchFieldById(f.fieldId);h=f.sortAsc;!0===h||!1===h?(c=!0,a=h):c=!1;e=f.outputTarget;d.protectedFromJsonObject(f)};this.protectedFromJsonObject=function(f){throw Error("Implement");}}function ab(){Oa.call(this);this.getType=function(){return oa.PICKER_FULL};
this.protectedToJsonObject=function(d){};this.protectedFromJsonObject=function(d){}}function ca(){Oa.call(this);var d;this.getType=function(){return oa.PICKER_CONDITION};this.setScript=function(b){d=b};this.getScript=function(){return d};this.takeDetail=function(b){d=b.getScript()};this.protectedToJsonObject=function(b){b.conditionScript=d};this.protectedFromJsonObject=function(b){d=b.conditionScript}}function fb(){Oa.call(this);var d=1;this.setTopN=function(b){d=b};this.getTopN=function(){return d};
this.takeDetail=function(b){d=b.getTopN()};this.protectedToJsonObject=function(b){b.topN=d};this.protectedFromJsonObject=function(b){d=b.topN}}function lb(){fb.call(this);this.getType=function(){return oa.PICKER_MAX}}function gb(){fb.call(this);this.getType=function(){return oa.PICKER_MIN}}function qa(){Ka.call(this);var d=[];this.setConditionItems=function(b){d=b};this.getConditionItems=function(){return d};this.protectedCopy=function(){for(var b=[],c=0;c<d.length;c++)b.push(d[c].copy());c=new qa;
c.setConditionItems(b);return c};this.protectedToJsonObject=function(b,c){c=[];for(var a=0;a<d.length;a++)c.push(d[a].toJsonObject());b.items=c};this.protectedFromJsonObject=function(b,c){b=b.items;d=[];for(var a=0;a<b.length;a++){var e=b[a],f=new Aa;f.fromJsonObject(e,c);d.push(f)}}}function Aa(){var d=0,b,c=0,a;this.getLeftBrackets=function(){return d};this.setLeftBrackets=function(e){d=e};this.getCondition=function(){return b};this.setCondition=function(e){b=e};this.getRightBrackets=function(){return c};
this.setRightBrackets=function(e){c=e};this.getLogic=function(){return a};this.setLogic=function(e){a=e};this.copy=function(){var e=new Aa;e.setLeftBrackets(d);e.setRightBrackets(c);e.setLogic(a);e.setCondition(b.copy());return e};this.toJsonObject=function(){var e={};0<d&&(e.leftBrackets=d);0<c&&(e.rightBrackets=c);a&&(e.logic=a);e.condition=b.toJsonObject();return e};this.fromJsonObject=function(e,f){var h=e.leftBrackets;d=h?h:0;c=(h=e.rightBrackets)?h:0;a=(h=e.logic)?h:null;e=e.condition;b=qa.createCondition(e.type);
b.fromJsonObject(e,f)}}function Fa(){var d=this,b,c;this.setEditingAlarm=function(a){c=a};this.getEditingAlarm=function(){return c};this.setField=function(a){b=a};this.getField=function(){return b};this.getType=function(){throw Error("Implement");};this.isValid=function(){return b&&d.protectedCheckValid()};this.protectedCheckValid=function(){throw Error("Implement");};this.copy=function(){var a=d.toJsonObject(),e=qa.createCondition(d.getType());e.fromJsonObject(a,{searchFieldById:function(f){return d.getField()}});
return e};this.toJsonObject=function(){var a={};a.fieldId=b?b.getId():"missing";a.type=d.getType();d.protectedToJsonObject(a);return a};this.protectedToJsonObject=function(a){throw Error("Implement");};this.fromJsonObject=function(a,e){b=e.searchFieldById(a.fieldId);d.protectedFromJsonObject(a)};this.protectedFromJsonObject=function(a){throw Error("Implement");}}function ka(){Fa.call(this);var d,b;this.setOperation=function(c){d=c};this.getOperation=function(){return d};this.setComparing=function(c){b=
c};this.getComparing=function(){return b};this.getType=function(){return qa.CONDITION_NORMAL};this.protectedCheckValid=function(){return d&&(d==qa.OP_NULL||d==qa.OP_NOT_NULL||b)?!0:!1};this.protectedToJsonObject=function(c){c.op=d;c.comparing=b};this.protectedFromJsonObject=function(c){d=c.op;b=c.comparing}}function Na(){Fa.call(this);var d;this.getType=function(){return qa.CONDITION_CUSTOM};this.setScript=function(b){d=b};this.getScript=function(){return d};this.protectedCheckValid=function(){return d?
!0:!1};this.protectedToJsonObject=function(b){b.conditionScript=d};this.protectedFromJsonObject=function(b){d=b.conditionScript}}function U(){var d,b,c,a;this.getRefToId=function(){return b};this.getFullPath=function(){return c};this.getRefName=function(){return a};this.toJsonObject=function(){var e={};e.uid=d;e.refToId=b;e.fullPath=c;e.refName=a;return e};this.fromJsonObject=function(e){d=e.uid;b=e.refToId;c=e.fullPath;a=e.refName}}function K(){var d=0,b=K.TYPE_AVG,c,a;this.setMeasureIndex=function(e){d=
e};this.getMeasureIndex=function(){return d};this.setType=function(e){b=e};this.getType=function(){return b};this.setValue=function(e){c=e};this.getValue=function(){return c};this.setLabel=function(e){a=e};this.getLabel=function(){return a};this.copy=function(){var e=new K;e.setMeasureIndex(d);e.setType(b);e.setValue(c);e.setLabel(a);return e};this.toJsonObject=function(){var e={};e.measure=d;e.type=b;c&&(e.value=c);a&&(e.label=a);return e};this.fromJsonObject=function(e){d=e.measure;b=e.type;c=e.value;
a=e.label}}function V(){var d,b=[];this.getPresetName=function(){return d};this.setColors=function(c){b=c};this.getColors=function(){return b};this.isInvalid=function(){return 0==b.length};this.encodeToString=function(){return b.join(",")};this.decodeFromString=function(c){b=(c=$.trim(c))?c.split(","):[]};this.toJsonObject=function(){var c={};c.colors=b;return c};this.fromJsonObject=function(c){d=c.name;b=(c=c.colors)?c:[]}}function M(){var d=null,b=null;this.getPaletteMapping=function(){return b};
this.setPaletteMapping=function(c){b=c};this.toJsonObject=function(){var c={};d&&(c.palette=d.toJsonObject());b&&(c.paletteMapping=b);return c};this.fromJsonObject=function(c){d=null;var a=c.palette;a&&(d=new V,d.fromJsonObject(a));b=(c=c.paletteMapping)?c:null}}function A(){function d(){var r=0,z=100,D=50,I=0,J=20,Z=80;this.setColor=function(ia,Ta){r=ia[0];z=ia[1];D=ia[2];I=Ta[0];J=Ta[1];Z=Ta[2]};this.getColorA=function(){return[r,z,D]};this.getColorB=function(){return[I,J,Z]};this.toJsonObject=
function(){var ia={};ia.ha=r;ia.sa=z;ia.la=D;ia.hb=I;ia.sb=J;ia.lb=Z;return ia};this.fromJsonObject=function(ia){r=ia.ha;z=ia.sa;D=ia.la;I=ia.hb;J=ia.sb;Z=ia.lb}}var b=this,c,a,e=0,f=null,h=null,k=0,l=!1;this.getForwardGradientColor=function(r){r&&!c&&(c=new d);return c};this.getBackwardGradientColor=function(r){r&&!a&&(a=new d);return a};this.getSegments=function(){return e};this.setSegments=function(r){e=r};this.getMinData=function(){return f};this.setMinData=function(r){f=r};this.isMinDataDefined=
function(){return f||0===f};this.getMaxData=function(){return h};this.setMaxData=function(r){h=r};this.isMaxDataDefined=function(){return h||0===h};this.getMiddleData=function(){return k};this.setMiddleData=function(r){k=r};this.isMiddleDataDefined=function(){return k||0===k};this.isWholeColorRange=function(){return l};this.setWholeColorRange=function(r){l=r};this.toJsonObject=function(){var r={};c&&(r.forward=c.toJsonObject());a&&(r.backward=a.toJsonObject());e&&(r.segment=e);b.isMinDataDefined()&&
(r.min=""+f);b.isMaxDataDefined()&&(r.max=""+h);b.isMiddleDataDefined()&&(r.middle=""+k);r.wholeColorRange=l;return r};this.fromJsonObject=function(r){var z=r.forward;z?(c=new d,c.fromJsonObject(z)):c=null;(z=r.backward)?(a=new d,a.fromJsonObject(z)):a=null;e=(z=r.segment)?z:0;f=(z=r.min)?parseFloat(z):null;h=(z=r.max)?parseFloat(z):null;k=(z=r.middle)?parseFloat(z):null;l=r.wholeColorRange}}function ra(){function d(){var a,e,f,h,k=!0;this.setBizUiId=function(l){a=l};this.getBizUiId=function(){return a};
this.setBizUiDisplayName=function(l){e=l};this.getBizUiDisplayName=function(){return e};this.setUsableDisplayName=function(l){h=l};this.getUsableDisplayName=function(){return h?h:e};this.setForeignKey=function(l){f=l};this.getForeignKey=function(){return f};this.isMainComplete=function(){return a&&f?!0:!1};this.setRuntimeValid=function(l){k=l};this.isRuntimeValid=function(){return k};this.toJsonObject=function(){var l={};l.bizUiId=a;l.bizUiDisplayName=e;l.foreignKey=f;return l};this.fromJsonObject=
function(l){a=l.bizUiId;e=l.bizUiDisplayName;f=l.foreignKey}}var b=[];this.addItem=function(){var a=new d;b.push(a);return a};this.removeItem=function(a){b.splice(a,1)};this.getItemCount=function(){return b.length};this.getItem=function(a){return b[a]};this.getUsefulItems=function(){for(var a=[],e=0;e<b.length;e++){var f=b[e];f.isMainComplete()&&a.push(f)}return a};this.getRunnableItems=function(){for(var a=[],e=0;e<b.length;e++){var f=b[e];f.isMainComplete()&&f.isRuntimeValid()&&a.push(f)}return a};
this.copy=function(){var a=new ra;c(b,function(){return a.addItem()});return a};var c=function(a,e){for(var f=0;f<a.length;f++){var h=a[f],k=e();k.setBizUiId(h.getBizUiId());k.setBizUiDisplayName(h.getBizUiDisplayName());k.setForeignKey(h.getForeignKey())}};this.toArray=function(){var a=[];c(b,function(){var e=new d;a.push(e);return e});return a};this.fromArray=function(a){b=[];c(a,function(){var e=new d;b.push(e);return e})};this.toJsonObject=function(){for(var a={},e=[],f=0;f<b.length;f++)e.push(b[f].toJsonObject());
a.items=e;return a};this.fromJsonObject=function(a){b=[];if(a=a.items)for(var e=0;e<a.length;e++){var f=a[e],h=new d;h.fromJsonObject(f);b.push(h)}}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.core&&(com.kingdee.bos.qing.core={});"undefined"==typeof com.kingdee.bos.qing.core.model&&(com.kingdee.bos.qing.core.model=
{});var da=com.kingdee.bos.qing.core.model;da.MetaField=sa;da.Meta=ta;da.ParentChildDimension=eb;da.ModelBook=function(){var d,b,c;this.getMeta=function(){return d};this.setMeta=function(a){d=a};this.getModelPages=function(){return b};this.setModelPages=function(a){b=a};this.isTooModern=function(){return c};this.toJsonObject=function(a){var e={};e.meta=d.toJsonObject();for(var f=[],h=0;h<b.length;h++)f.push(b[h].toJsonObject(a));e.pages=f;return e};this.fromJsonObject=function(a,e,f){c=a.isTooModern;
var h=a.meta;h&&(d=new ta,d.fromJsonObject(h),f&&f(d));a=a.pages;b=[];for(f=0;f<a.length;f++){h=a[f];var k=new ua;k.fromJsonObject(h,d,e);b.push(k)}}};da.ModelPage=ua;da.AbstractQingModel=function(){var d=this,b=!1,c,a;this.setListenerDumb=function(e){b=e};this.getBriefOutputableFieldsModel=function(){throw Error("Implement");};this.setBriefOutputDefinitions=function(e){c=e};this.getBriefOutputDefinitions=function(){return c};this.setWarningRuleDefinitions=function(e){a=e};this.getWarningRuleDefinitions=
function(){return a};this.protectedMethod={isListenerDumb:function(){return b},sharedToJsonObject:function(e){var f={};if(c||a)f.isFieldExist=function(r){return d.getBriefOutputableFieldsModel().isFieldAlive(r)};if(c){for(var h=[],k=0;k<c.length;k++){var l=c[k];l=l.toJsonObject(f);h.push(l)}e.briefOutputDefinitions=h}if(a){h=[];for(k=0;k<a.length;k++)l=a[k],l=l.toJsonObject(f),h.push(l);e.warningRuleDefinitions=h}},sharedFromJsonObject:function(e){var f=e.briefOutputDefinitions;e=e.warningRuleDefinitions;
var h={};if(f||e)h.searchFieldById=d.getBriefOutputableFieldsModel().createFieldSearcher();c=null;if(f){c=[];for(var k=0;k<f.length;k++){var l=f[k],r=new oa;r.fromJsonObject(l,h);c.push(r)}}a=null;if(e)for(a=[],k=0;k<e.length;k++)l=e[k],r=new qa,r.fromJsonObject(l,h),a.push(r)}}};da.BriefOutputableFields=function(){var d=[],b=[];this.getDimensionFields=function(){return d};this.setDimensionFields=function(c){d=c};this.getMeasureFields=function(){return b};this.setMeasureFields=function(c){b=c};this.createFieldSearcher=
function(){for(var c={},a=d.concat(b),e=0;e<a.length;e++){var f=a[e];c[f.getId()]=f}return function(h){return c[h]}};this.isFieldAlive=function(c){for(var a=0;a<d.length;a++)if(d[a]==c)return!0;for(a=0;a<b.length;a++)if(b[a]==c)return!0;return!1}};da.BriefOutputDefinition=oa;da.BriefOutput=function(){var d,b,c,a;this.parseFromJson=function(e){d=e.previewMatrix;b=e.display;c=e.errorCode;a=e.errorMessage};this.isError=function(){return c||0===c};this.getErrorCode=function(){return c};this.getErrorMessage=
function(){return a};this.getMatrixRowCount=function(){return d?d.length:0};this.getMatrixCell=function(e,f){return d[e][f]};this.getDisplay=function(){return b}};da.WarningRuleDefinition=qa;da.WarningRulePreview=function(){var d,b,c,a,e,f;this.parseFromJson=function(h){d=h.previewTitle;b=h.previewMatrix;c=h.rows;a=h.matched;e=h.errorCode;f=h.errorMessage};this.isError=function(){return e||0===e};this.getErrorCode=function(){return e};this.getErrorMessage=function(){return f};this.getMatrixColumnCount=
function(){return d?d.length:0};this.getMatrixColumn=function(h){return d[h]};this.getMatrixRowCount=function(){return b?b.length:0};this.getMatrixCell=function(h,k){return b[h][k]};this.getFilteredRows=function(){return c};this.isMatched=function(){return a}};da.OutsideReference=U;da.AbstractAnalyticalField=x;da.ExecutableValue=function(){var d,b;this.asStringValue=function(c){d="Str";b=c};this.asSubtotal=function(){d="Subtotal";b=null};this.asNull=function(){d="Null";b=null};this.getDataType=function(){return d};
this.getValue=function(){return b};this.isTheSame=function(c){return d==c.getDataType()?"Subtotal"==d||"Null"==d?!0:b==c.getValue():!1};this.toJsonObject=function(){var c={};c.dataType=d;c.value=b;return c};this.fromJsonObject=function(c){d=c.dataType;b=c.value}};da.AbstractFilterPreparedModel=P;da.AbstractFilter=O;da.DiscreteFilter=fa;da.ContinuousFilter=La;da.ContinuousDateFilter=Ma;da.Refline=K;da.Palette=V;da.DiscreteColor=M;da.ContinuousColor=A;da.LinkTargets=ra;da.CommonStyle=function(){var d=
null,b=null,c=null,a=null,e=null;this.isFontSizeUnsure=function(){return null==d};this.getFontSize=function(){return d};this.setFontSize=function(k){d=k};this.isBoldUnsure=function(){return null==b};this.isBold=function(){return b};this.setBold=function(k){b=k};this.isItalicUnsure=function(){return null==c};this.isItalic=function(){return c};this.setItalic=function(k){c=k};this.isColorUnsure=function(){return null==a};this.getColor=function(){return a};this.setColor=function(k){a=k};this.isAlignUnsure=
function(){return null==e};this.getAlign=function(){return e};this.setAlign=function(k){e=k};this.toJsonObject=function(){var k={};f(k,"fontSize",d);f(k,"bold",b);f(k,"italic",c);f(k,"color",a);f(k,"align",e);return k};var f=function(k,l,r){(r||0===r)&&(k[l]=r)};this.fromJsonObject=function(k){d=h(k,"fontSize");b=h(k,"bold");c=h(k,"italic");a=h(k,"color");e=h(k,"align")};var h=function(k,l){return(k=k[l])||0===k?k:null}};var va,za,Q;(function(){var d=com.kingdee.bos.qing.common;va=d.EventListenerList;
za=d.RelativePeriodModel;d=com.kingdee.bos.qing.framework.common;Q=d.MultilanguageManager.createPackageAccessor(da)})();var n=new function(){this.encodeFullName=function(d,b){return d?d+"."+b:b};this.decodeFullName=function(d){var b=d.indexOf(".");if(-1==b)var c=null;else c=d.substring(0,b),d=d.substring(b+1);return[c,d]}};da.NameUtil=n;sa.DT_STRING="STRING";sa.DT_NUMBER="NUMBER";sa.DT_DATE="DATE";sa.KEY_FORMATSTRING="meta-formatString";sa.KEY_FISCALYEARSTART="meta-fiscalYearStart";sa.KEY_SORTACCORDING=
"meta-sortAccording";sa.KEY_FORMULA="meta-formula";sa.KEY_DISPLAYNAME="meta-displayName";sa.FORMULA_STATUS_REF="Ref";sa.FORMULA_STATUS_AGG="Agg";sa.FORMULA_STATUS_INTERLINE="Interline";sa.FORMULA_STATUS_WITHTOTAL="WithTotal";Ba.subViewsFromJsonObject=function(d,b){if(b=b.subViews)for(var c=0;c<b.length;c++){var a=b[c],e=new Ba(a.name,a.displayName,a.displayAs);e.fromJsonObject(a);d.getSubViews(!0).push(e)}};Ba.subViewsToJsonObject=function(d,b){if(d=d.getSubViews()){for(var c=[],a=0;a<d.length;a++){var e=
d[a],f=e.toJsonObject();f.name=e.getName();f.displayName=e.getDisplayName();f.displayAs=e.getDisplayAs();c.push(f)}b.subViews=c}};Ba.itemsFromJsonObject=function(d,b){if(b=b.viewItems)for(var c=0;c<b.length;c++){var a=b[c],e=a.fields;if(e){var f=a.name;a=new ja(f,a.displayName);for(f=0;f<e.length;f++){var h=e[f];a.getFieldNames().push(h.name)}d.getViewItems(!0).push(a)}else f=a.name,d.getViewItems(!0).push(f)}};Ba.itemsToJsonObject=function(d,b){if(d=d.getViewItems()){for(var c=[],a=0;a<d.length;a++){var e=
d[a],f={};if(e instanceof ja){f.name=e.getName();f.displayName=e.getDisplayName();var h=[];e=e.getFieldNames();for(var k=0;k<e.length;k++)h.push({name:e[k]});f.fields=h}else f.name=e;c.push(f)}b.viewItems=c}};ta.createSearchingUsingMetaFieldsTool=function(d){return new Ra(d)};eb.isNecessary=function(d){return"Indispensable"==d};x.KEY_NUMBERFORMAT="numberFormat";x.KEY_DATEFORMAT="dateFormat";x.KEY_CONTINUOUSCOLOR="continuousColor";x.KEY_DISCRETECOLOR="discreteColor";x.KEY_ROLE="role";x.KEY_TOTALUSING=
"totalUsing";x.KEY_TOTALDISPLAY="totalDisplay";x.KEY_SUBTOTAL="subtotal";x.KEY_PARTVALUE="partValue";x.KEY_FORMULA="formula";x.KEY_SORT="sort";x.KEY_QUICKSETUP="quickSetup";x.KEY_DISPLAYNAME="displayName";x.AGGREGATION_SUM="SUM";x.AGGREGATION_AVG="AVG";x.AGGREGATION_COUNT="CNT";x.AGGREGATION_CNTD="CNTD";x.AGGREGATION_MAX="MAX";x.AGGREGATION_MIN="MIN";x.AGGREGATION_AGG="AGG";x.ROLE_DIMENSION="dimension";x.ROLE_MEASURE="measure";x.PARTVALUE_DATE_EXACT="DATE_EXACT";x.PARTVALUE_DATE_YEAR="DATE_YEAR";
x.PARTVALUE_DATE_QUARTER="DATE_QUARTER";x.PARTVALUE_DATE_MONTH="DATE_MONTH";x.PARTVALUE_DATE_DAY="DATE_DAY";x.PARTVALUE_DATE_YQ="DATE_YQ";x.PARTVALUE_DATE_YM="DATE_YM";x.PARTVALUE_DATE_YMD="DATE_YMD";x.SORT_ASC="ASC";x.SORT_DESC="DESC";x.QUICKSETUP_LASTPERIOD_RATIO="LP";x.QUICKSETUP_LASTPERIOD_VALUE="LP_V";x.QUICKSETUP_LASTPERIOD_DIFF="LP_D";x.QUICKSETUP_SAMEPERIODLASTYEAR_RATIO="SPLY";x.QUICKSETUP_SAMEPERIODLASTYEAR_VALUE="SPLY_V";x.QUICKSETUP_SAMEPERIODLASTYEAR_DIFF="SPLY_D";x.QUICKSETUP_RUNNINGSUM=
"RS";x.QUICKSETUP_RUNNINGSUMY="RSY";x.QUICKSETUP_RATIO_10="RATIO_10";x.QUICKSETUP_RATIO_01="RATIO_01";x.QUICKSETUP_RATIO_11="RATIO_11";x.QUICKSETUP_RATIO_90="RATIO_90";x.QUICKSETUP_RATIO_09="RATIO_09";x.QUICKSETUP_RATIO_99="RATIO_99";x.isAggregationFittedDataType=function(d,b){return b!=sa.DT_NUMBER?b==sa.DT_DATE?d==x.AGGREGATION_COUNT||d==x.AGGREGATION_CNTD||d==x.AGGREGATION_MAX||d==x.AGGREGATION_MIN:d==x.AGGREGATION_COUNT||d==x.AGGREGATION_CNTD:!0};x.aggregationToString=function(d){switch(d){case x.AGGREGATION_SUM:return Q.get("sum",
"\u6c42\u548c");case x.AGGREGATION_AVG:return Q.get("avg","\u5e73\u5747");case x.AGGREGATION_COUNT:return Q.get("count","\u8ba1\u6570");case x.AGGREGATION_CNTD:return Q.get("cntd","\u53bb\u91cd\u8ba1\u6570");case x.AGGREGATION_MAX:return Q.get("max","\u6700\u5927");case x.AGGREGATION_MIN:return Q.get("min","\u6700\u5c0f");case x.AGGREGATION_AGG:return Q.get("aggregation","\u805a\u5408");default:throw Error("Unknown aggregation: "+d);}};x.partValueToString=function(d){switch(d){case x.PARTVALUE_DATE_YEAR:return Q.get("year",
"\u5e74");case x.PARTVALUE_DATE_QUARTER:return Q.get("quarter","\u5b63\u5ea6");case x.PARTVALUE_DATE_MONTH:return Q.get("month","\u6708");case x.PARTVALUE_DATE_DAY:return Q.get("day","\u65e5");case x.PARTVALUE_DATE_YQ:return Q.get("yearQuarter","\u5e74\u5b63");case x.PARTVALUE_DATE_YM:return Q.get("yearMonth","\u5e74\u6708");case x.PARTVALUE_DATE_YMD:return Q.get("yearMonthDay","\u5e74\u6708\u65e5");case x.PARTVALUE_DATE_EXACT:return"";default:throw Error("Unknown partValue: "+d);}};x.quickSetupToString=
function(d){switch(d){case x.QUICKSETUP_LASTPERIOD_VALUE:return Q.get("lastPeriodValue","\u4e0a\u671f\u503c");case x.QUICKSETUP_LASTPERIOD_DIFF:return Q.get("lastPeriodDiff","\u73af\u6bd4\u5dee\u989d");case x.QUICKSETUP_LASTPERIOD_RATIO:return Q.get("lastPeriodRatio","\u73af\u6bd4\u589e\u957f\u7387");case x.QUICKSETUP_SAMEPERIODLASTYEAR_VALUE:return Q.get("samePeriodLastYearValue","\u53bb\u5e74\u540c\u671f\u503c");case x.QUICKSETUP_SAMEPERIODLASTYEAR_DIFF:return Q.get("samePeriodLastYearDiff","\u540c\u6bd4\u5dee\u989d");
case x.QUICKSETUP_SAMEPERIODLASTYEAR_RATIO:return Q.get("samePeriodLastYearRatio","\u540c\u6bd4\u589e\u957f\u7387");case x.QUICKSETUP_RUNNINGSUM:return Q.get("runningSum","\u7d2f\u8ba1");case x.QUICKSETUP_RUNNINGSUMY:return Q.get("runningSumY","\u5e74\u5185\u7d2f\u8ba1");case x.QUICKSETUP_RATIO_10:return Q.get("ratio10","\u5206\u7ec4\u5185\u540c\u4e00\u884c");case x.QUICKSETUP_RATIO_01:return Q.get("ratio01","\u5206\u7ec4\u5185\u540c\u4e00\u5217");case x.QUICKSETUP_RATIO_11:return Q.get("ratio11",
"\u5206\u7ec4\u5185\u540c\u4e00\u5757");case x.QUICKSETUP_RATIO_90:return Q.get("ratio90","\u6574\u884c");case x.QUICKSETUP_RATIO_09:return Q.get("ratio09","\u6574\u5217");case x.QUICKSETUP_RATIO_99:return Q.get("ratio99","\u6574\u8868");default:throw Error("Unknown quickSetup: "+d);}};x.sortToString=function(d){switch(d){case x.SORT_ASC:return Q.get("sortAsc","\u5347\u5e8f");case x.SORT_DESC:return Q.get("sortDesc","\u964d\u5e8f");default:return Q.get("sortNone","\u9ed8\u8ba4")}};x.InvalidPrompt=
function(){var d,b,c;this.isCancel=function(){return!c};this.getLevel=function(){return d};this.setLevel=function(a,e){d=a;c=e?!0:!1};this.getPromptText=function(){return b};this.setPromptText=function(a){b=a}};x.InvalidPrompt.LEVEL_META_LOST=10;x.InvalidPrompt.LEVEL_META_INVALID=11;x.InvalidPrompt.LEVEL_AGG=20;x.InvalidPrompt.LEVEL_FILTER_UNMATCHED=30;P.create=function(d){var b=null;if(d){switch(d.type){case "discrete":b=new T;break;case "tree":b=new y;break;case "continuous":b=new aa;break;case "continuousDate":b=
new ea;break;case "invalid":b=new wa;break;default:throw Error("Unkonwn FilterPreparedModel type.");}b.fromJsonObject(d)}return b};O.KEY_AFFECTED="affected";O.KEY_ONSHOW="onShow";O.STATE_VALID="valid";O.STATE_INVALID="invalid";O.STATE_FIELD_ERROR="field_error";O.STATE_PMODEL_UNMATCH="pmodel_unmatch";O.create=function(d){if(d instanceof T||d instanceof y){var b=new fa;b.setPreparedModel(d)}else if(d instanceof aa)b=new La,b.setPreparedModel(d),b.setContainNull(!0);else if(d instanceof ea)b=new Ma,
b.setPreparedModel(d),b.setContainNull(!0);else throw Error("Unkonwn PreparedModel.");return b};fa.FILTER_NAME="discrete";fa.STRING_NULL_VALUE="kd.qing.null";fa.KEY_EXCLUDE="exclude";fa.KEY_CTRLTYPE="ctrlType";fa.CTRLTYPE_CHECKBOX_LIST="Checkbox_List";fa.CTRLTYPE_CHECKBOX_POPUP="Checkbox_Popup";fa.CTRLTYPE_RADIOBUTTON_LIST="RadioButton_List";fa.CTRLTYPE_RADIOBUTTON_POPUP="RadioButton_Popup";La.FILTER_NAME="continuous";Ma.FILTER_NAME="continuousDate";oa.createPicker=function(d){switch(d){case oa.PICKER_FULL:return new ab;
case oa.PICKER_CONDITION:return new ca;case oa.PICKER_MAX:return new lb;case oa.PICKER_MIN:return new gb;default:throw Error("Unknown:"+d);}};oa.PICKER_FULL="FULL";oa.PICKER_CONDITION="CONDITION";oa.PICKER_MAX="MAX";oa.PICKER_MIN="MIN";qa.createCondition=function(d){switch(d){case qa.CONDITION_NORMAL:return new ka;case qa.CONDITION_CUSTOM:return new Na;default:throw Error("Unknown:"+d);}};qa.CONDITION_NORMAL="NORMAL";qa.CONDITION_CUSTOM="CUSTOM";qa.ConditionItem=Aa;qa.OP_EQUAL="E";qa.OP_NOT_EQUAL=
"NOT_E";qa.OP_NULL="N";qa.OP_NOT_NULL="NOT_N";qa.OP_GREATER="G";qa.OP_GREATER_EQUAL="GE";qa.OP_LESS="L";qa.OP_LESS_EQUAL="LE";Aa.LOGIC_AND="AND";Aa.LOGIC_OR="OR";U.create=function(d,b,c,a){var e={};e.uid=d;e.refToId=b;e.fullPath=c;e.refName=a;d=new U;d.fromJsonObject(e);return d};K.TYPE_AVG="AVG";K.TYPE_MEDIAN="MEDIAN";K.TYPE_CONST="CONST"})();(function(){function sa(){this.perform=function(){throw Error("Override me.");};this.unperform=function(){throw Error("Override me.");};this.getCaption=function(){throw Error("Override me.");};this.setValue=function(x){}}function Sa(){var x,ha=[],X;this.setCaption=function(P){x=P};this.getCaption=function(){return x};this.appendUnitAction=function(P){ha.push(P)};this.perform=function(){X&&X(!0);for(var P=0,y=ha.length-1;P<=y;P++)ha[P].perform();X&&X(!1)};this.unperform=function(){X&&X(!0);for(var P=
ha.length-1;0<=P;P--)ha[P].unperform();X&&X(!1)};this.setAnnouncer=function(P){X=P}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.core&&(com.kingdee.bos.qing.core={});"undefined"==typeof com.kingdee.bos.qing.core.controller&&(com.kingdee.bos.qing.core.controller={});var Ba=com.kingdee.bos.qing.core.controller;
Ba.CommandManager=function(){var x=[],ha=[],X=null,P=!1,y=new ja,T=new ja;this.addPerformedListener=function(fa){T.addListener(fa)};this.perform=function(fa){X?X.appendUnitAction(fa):(fa.perform(),aa(x,fa),ha.length=0,ea(fa,!0))};this.compositeStart=function(fa){if(null!=X)throw Error("Can not start composite command twice.");X=new Sa;X.setAnnouncer(O);X.setCaption(fa)};this.compositeEnd=function(){X.perform();var fa=X;aa(x,fa);ha.length=0;ea(fa,!0);X=null};this.compositeAbort=function(){X=null};
this.isCompositeStarted=function(){return null!=X};this.createCompositeAction=function(){var fa=new Sa;fa.setAnnouncer(O);return fa};this.untilWakeup=function(fa){P?y.addListener(fa):fa()};this.isCanUndo=function(){return 0<x.length};this.isCanRedo=function(){return 0<ha.length};this.undo=function(){var fa=x.pop();fa&&(fa.unperform(),aa(ha,fa),ea(fa,!1,!0))};this.redo=function(){var fa=ha.pop();fa&&(fa.perform(),aa(x,fa),ea(fa,!1,!1))};this.reset=function(){x.length=0;ha.length=0;ea(null)};var aa=
function(fa,La){fa.push(La);32<fa.length&&fa.splice(0,1)},ea=function(fa,La,Ma){T.fireEvent(function(ua){ua(fa,La,Ma)})},wa=function(){P=!1;y.fireEvent(function(fa){fa()});y.removeAllListener()},O=function(fa){fa?P=!0:wa()}};Ba.AbstractAction=sa;Ba.ActionChangeProperty=function(){sa.call(this);var x=this,ha,X,P,y;this.setCaption=function(T){ha=T};this.getCaption=function(){return ha};this.setMethod=function(T,aa){X=T;P=aa};this.setValue=function(T){y=T};this.perform=function(){var T=X();P(y);y=T};
this.unperform=function(){x.perform()}};Ba.ActionChangeRole=function(x){sa.call(this);var ha=this,X,P,y,T;this.getCaption=function(){return X};this.setValue=function(aa){aa==Ra.ROLE_DIMENSION?(P=Ra.ROLE_DIMENSION,y=null,T=!1):(P=Ra.ROLE_MEASURE,y=aa,T=!0);X=x.getRole()==P?ta.get("changeAggregation","\u6539\u53d8#1\u805a\u5408\u65b9\u5f0f"):ta.get("changeRole","\u6539\u53d8#1\u7ef4\u5ea6/\u5ea6\u91cf");X=X.replace("#1",x.getComplexText())};this.perform=function(){var aa=x.getRole(),ea=x.getAggregation(),
wa=x.isContinuous();x.setRole(P,y);x.setContinuous(T);P=aa;y=ea;T=wa};this.unperform=function(){ha.perform()}};Ba.ActionChangePartValue=function(x){sa.call(this);var ha=this,X,P,y;this.setCaption=function(T){X=T};this.getCaption=function(){return X};this.setValue=function(T){P=T;y=null};this.perform=function(){var T=x.getPartValue(),aa=x.getDateFormat();x.setPartValue(P);x.setDateFormat(y);P=T;y=aa};this.unperform=function(){ha.perform()}};Ba.ActionChangeFilterCtrlType=function(){sa.call(this);var x,
ha,X,P,y,T,aa;this.setCaption=function(ea){x=ea};this.getCaption=function(){return x};this.setValue=function(ea,wa){ha=ea;X=wa;y=ha.getCtrlType();T=null;ea=ha.isSingleValueMode();wa=ha.isSingleValueMode(X);if(!ea&&wa){T=ha.getAllSelectedValue();aa=ha.isFullValue();P={};ea=!1;wa=ha.getSelectableItems();for(var O=0;O<wa.length;O++){var fa=wa[O].getValue();if(ha.isValueSelected(fa)){ea=P[fa]=!0;break}}!ea&&0<wa.length&&(ea=wa[0].getValue(),P[ea]=!0)}};this.perform=function(){ha.setCtrlType(X,P,!1)};
this.unperform=function(){ha.setCtrlType(y,T,aa)}};Ba.ActionAddSelectedValueForDiscreteFilter=function(x){sa.call(this);var ha,X,P;this.getCaption=function(){return(X?ta.get("addFilterValue","\u6dfb\u52a0\u7b5b\u9009\u503c"):ta.get("moveFilterValue","\u79fb\u9664\u7b5b\u9009\u503c"))+": "+P};this.setValue=function(y,T,aa){ha=y;X=T;P=void 0==aa?y:aa};this.perform=function(){X?x.addSelectedValue(ha):x.removeSelectedValue(ha)};this.unperform=function(){X?x.removeSelectedValue(ha):x.addSelectedValue(ha)}};
Ba.ActionChangeSelectedValueForDiscreteFilter=function(x){sa.call(this);var ha,X,P;this.getCaption=function(){return ta.get("modifyFilterValue","\u4fee\u6539\u7b5b\u9009\u503c")+": "+X};this.setValue=function(y,T){ha=y;X=void 0==T?y:T;T=x.getSelectableItems();for(var aa=0;aa<T.length;aa++)if(y=T[aa].getValue(),x.isValueSelected(y)){P=y;break}};this.perform=function(){x.setSelectedValue(ha)};this.unperform=function(){x.setSelectedValue(P)}};Ba.ActionChangeValueForContinuousFilter=function(x){sa.call(this);
var ha=this,X,P,y;this.getCaption=function(){return ta.get("modifyFilterValue","\u4fee\u6539\u7b5b\u9009\u503c")};this.setValue=function(T,aa,ea){X=T;P=aa;y=ea};this.perform=function(){var T=x.getFloor(),aa=x.getCeiling(),ea=x.isContainNull();x.setValue(X,P,y);X=T;P=aa;y=ea};this.unperform=function(){ha.perform()}};Ba.ActionChangeValueForDateFilter=function(x){sa.call(this);var ha=this,X;this.getCaption=function(){return ta.get("modifyFilterValue","\u4fee\u6539\u7b5b\u9009\u503c")};this.setValue=
function(P){X=P};this.perform=function(){var P=x.copy();x.setValue(X.getFromDateMs(),X.getToDateMs(),X.getRelativePeriodModel(),X.isContainNull());X=P};this.unperform=function(){ha.perform()}};Ba.ActionResetAllSelectedValueForDiscreteFilter=function(x){sa.call(this);var ha=this,X;this.getCaption=function(){return ta.get("modifyFilterValue","\u4fee\u6539\u7b5b\u9009\u503c")};this.setValue=function(P){X=P};this.perform=function(){var P=x.getAllSelectedValue();x.resetAllSelectedValue(X);X=P};this.unperform=
function(){ha.perform()}};Ba.ActionInsertMetaField=function(x,ha){sa.call(this);var X=this,P,y,T,aa=ha,ea,wa,O=-1;this.setCaption=function(fa){P=fa};this.getCaption=function(){return P};this.setValue=function(fa,La){y=fa;T=La};this.setViewContext=function(fa,La){ea=fa;wa=La};this.perform=function(){O=x.updateFieldAtView(y.getPureName(),aa,ea,wa,O);aa?x.insertField(y,T):x.removeField(T);aa=!aa};this.unperform=function(){X.perform()}};Ba.ActionDefineOrder=function(){sa.call(this);var x=this,ha,X,P;
this.setValue=function(y,T,aa){ha=y;X=T;P=aa};this.perform=function(){var y=ha.getSortAccording(),T=ha.getCustomOrder();ha.defineOrder(X,P);X=y;P=T};this.unperform=function(){x.perform()}};Ba.AbstractActionAppendAllNecessaryDimensions=function(){sa.call(this);this.getCaption=function(){return ta.get("appendAllNecessaryDimensions","\u4e00\u952e\u6dfb\u52a0\u5fc5\u8981\u5b57\u6bb5")};this.protectedMethod={visitMissingNecessaryDimensions:function(x,ha,X){for(var P=[],y=0,T=x.getTableCount();y<T;y++){for(var aa=
x.getTable(y),ea=aa.getNecessaryParentChildDimensions(),wa={},O=0;O<ea.length;O++){var fa=ea[O];wa[fa.getName()]=fa}for(O=0;O<ha.length;O++)ea=ha[O],ea.getTable()==aa&&ea.isParentChildDimension()&&(ea=ea.getGroupName(),delete wa[ea]);for(var La in wa)fa=wa[La],O=fa.getDisplayFieldName()||fa.getIdFieldName(),ea=aa.searchMetaField(O),P.push(ea)}for(x=0;x<P.length;x++)ha=P[x],y=ib.create({type:"tree",nodes:[]}),y=eb.create(y),y=X(y),y.setMetaField(ha),y.setRole(Ra.ROLE_DIMENSION),y.setContinuous(!1)}}};
var ja,ta,Ra,ib,eb;(function(){var x=com.kingdee.bos.qing.common;ja=x.EventListenerList;x=com.kingdee.bos.qing.framework.common;ta=x.MultilanguageManager.createPackageAccessor(Ba);x=com.kingdee.bos.qing.core.model;Ra=x.AbstractAnalyticalField;ib=x.AbstractFilterPreparedModel;eb=x.AbstractFilter})()})();(function(){function sa(){var qa=this,Aa=[],Fa=[];this.append=function(ka,Na){Aa.push(ka);Fa.push(Na)};this.isContainKey=function(ka,Na){for(var U=0;U<Aa.length;U++)if(ka==Aa[U])if(Na){if(Fa[U]&&Fa[U].getFieldSet()==Na)return!0}else return!0;return!1};this.isContainKeys=function(ka,Na){for(var U=0;U<ka.length;U++)if(qa.isContainKey(ka[U],Na))return!0;return!1};this.isContainFieldSet=function(ka){for(var Na=0;Na<Fa.length;Na++)if(Fa[Na]&&ka==Fa[Na].getFieldSet())return!0;return!1};this.getTargetField=
function(ka,Na){for(var U=0;U<Aa.length;U++)if(Na==Aa[U]&&Fa[U]&&ka==Fa[U].getFieldSet())return Fa[U].getField();return null}}function Sa(qa,Aa){var Fa=Aa?Aa:null,ka;this.getFieldSet=function(){return qa};this.getField=function(){return Fa};this.setFieldSubEventTarget=function(Na){ka=Na};this.getFieldSubEventTarget=function(){return ka};this.toString=function(){return qa.constructor.name+(ka?"-"+ka.toString():"")}}function Ba(){ua.call(this);var qa=this,Aa=this.protectedMethod,Fa=new fa,ka=Ba.CHARTTYPE_TABLE,
Na=new ja,U=new ja,K=new ta,V=new Ra,M=!1,A=!1,ra=null,da=null,va;(function(){var b,c,a=function(e,f){Aa.isListenerDumb()||(c||(c=new sa),c.append(f,e),(e=e.getFieldSubEventTarget())&&e.getMetaFieldSubEventTarget()?(b&&clearTimeout(b),b=setTimeout(function(){Q(c);c=null},50)):(Q(c),c=null))};Na.addChangedListener(a);U.addChangedListener(a);K.addChangedListener(a);V.addChangedListener(a)})();this.getBriefOutputableFieldsModel=function(){var b=[],c=[],a=function(e){for(var f=0;f<e.getCount();f++){var h=
e.get(f);(h.isDimension()?b:c).push(h)}};a(U);a(Na);a(K);a=new lb;a.setDimensionFields(b);a.setMeasureFields(c);return a};this.isExecutableContentEmpty=function(){return Na.isEmpty()&&U.isEmpty()&&K.isEmpty()&&V.isEmpty()};this.clear=function(){var b=[],c=function(a){for(var e=[],f=0,h=a.getCount();f<h;f++)e.push(a.get(f));a=a.removeSome(e);return[e,a]};qa.setListenerDumb(!0);b[0]=c(Na);b[1]=c(U);b[2]=c(K);b[3]=c(V);qa.setListenerDumb(!1);b[4]=M;b[5]=A;b[6]=ra;b[7]=da;A=M=!1;da=ra=null;za(Ba.KEY_CLEAR);
return b};this.undoClear=function(b){qa.setListenerDumb(!0);var c=b[0];Na.undoRemoveSome(c[0],c[1]);c=b[1];U.undoRemoveSome(c[0],c[1]);c=b[2];K.undoRemoveSome(c[0],c[1]);c=b[3];V.undoRemoveSome(c[0],c[1]);qa.setListenerDumb(!1);M=b[4];A=b[5];ra=b[6];da=b[7];za(Ba.KEY_UNCLEAR)};this.setChartType=function(b){ka=b;za(Ba.KEY_CHART_TYPE)};this.getChartType=function(){return ka};this.getColumnAnalyticalFieldSet=function(){return Na};this.getRowAnalyticalFieldSet=function(){return U};this.getMarkFieldSet=
function(){return K};this.getFilterFieldSet=function(){return V};this.setRowGrandTotal=function(b){M!=b&&(M=b,za(Ba.KEY_ROW_GRAND_TOTAL))};this.isRowGrandTotal=function(){return M};this.setColumnGrandTotal=function(b){A!=b&&(A=b,za(Ba.KEY_COLUMN_GRAND_TOTAL))};this.isColumnGrandTotal=function(){return A};this.setColumnsSortingLane=function(b){ra=b;za(Ba.KEY_SORTING_LANE)};this.getColumnsSortingLane=function(){return ra};this.setRowsSortingLane=function(b){da=b;za(Ba.KEY_SORTING_LANE)};this.getRowsSortingLane=
function(){return da};this.setLinkTargets=function(b){va=b};this.getLinkTargets=function(){return va};this.announceTreeExpanding=function(){za(Ba.KEY_TREE_EXPANDING)};this.addModelChangedListener=function(b){Fa.addListener(b)};this.removeModelChangedListener=function(b){Fa.removeListener(b)};var za=function(b){var c=new sa;c.append(b);Q(c)},Q=function(b){Fa.fireEvent(function(c){c(b)})};this.getUsingMetaFields=function(b){return n(b,null,null)};this.createDependentMeta=function(b,c){var a=b.getEliminationKeyMetaFields(),
e=b.getDimensionNecessityMetaFields();a=a.concat(e);c=n(b,c,a);return b.createExecutingCopy(c)};var n=function(b,c,a){var e=La.createSearchingUsingMetaFieldsTool(b),f=function(k){for(var l=0;l<k.getCount();l++){var r=k.get(l);e.checkField(r.getMetaField())}};f(Na);f(U);f(K);f(V);if(c)for(f=0;f<c.length;f++){var h=b.searchMetaField(c[f]);h&&e.checkField(h)}if(a)for(f=0;f<a.length;f++)h=a[f],e.checkField(h);return e.getUsingMetaFields()};this.isAnyCalculatedFieldUsed=function(b){var c=!1,a=function(e){for(var f=
0;f<e.getCount();f++){var h=e.get(f);if(h.getMetaField().getFormula()&&(!b||b==h.getMetaField().getFullName())){c=!0;break}}};!c&&a(Na);!c&&a(U);!c&&a(K);!c&&a(V);return c};this.howManyCalculatedFieldsUsed=function(){var b=0,c=function(a){for(var e=0;e<a.getCount();e++)a.get(e).getMetaField().getFormula()&&b++};c(Na);c(U);c(K);c(V);return b};var d=function(b){var c={},a=[],e=function(l){for(var r=0;r<l.getCount();r++){var z=l.get(r),D=b?null:z.getId();D?c[D]=!0:a.push(z)}};e(Na);e(U);e(K);e(V);e=
1;for(var f=0;f<a.length;f++){var h=a[f],k=null;do k="field"+e++;while(c[k]);h.setId(k);c[k]=!0}};this.toJsonObject=function(){d(!0);var b={};b.chartType=ka;b.column=Na.toJsonObject();b.row=U.toJsonObject();b.marks=[K.toJsonObject()];b.filter=V.toJsonObject();M&&(b.isRowGrandTotal=!0);A&&(b.isColumnGrandTotal=!0);ra&&(b.columnsSortingLane=ra.toJsonObject());da&&(b.rowsSortingLane=da.toJsonObject());va&&(b.linkTargets=va.toJsonObject());Aa.sharedToJsonObject(b);return b};this.fromJsonObject=function(b,
c){ka=b.chartType;Na.fromJsonObject(b.column,c);U.fromJsonObject(b.row,c);V.fromJsonObject(b.filter,c);K.fromJsonObject(b.marks[0],c);M=b.isRowGrandTotal?!0:!1;A=b.isColumnGrandTotal?!0:!1;if(c=b.columnsSortingLane)ra=new eb,ra.fromJsonObject(c);if(c=b.rowsSortingLane)da=new eb,da.fromJsonObject(c);va=null;if(c=b.linkTargets)va=new gb,va.fromJsonObject(c);d(!1);Aa.sharedFromJsonObject(b)}}function ja(){var qa=this,Aa=[],Fa=new fa;this.isEmpty=function(){return 0==Aa.length};this.add=function(K,V){var M=
qa.getIndex(K),A=-1;if(0<=M){var ra=qa.protectedGetExtendInfo(M);A=V>M?M:M+1}!V&&0!=V||0>V?qa.protectedAddItem(K,ra):qa.protectedInsertItem(V,K,ra);0<=A&&qa.protectedRemoveItem(A,!1);ka(ja.KEY_ADD,K);return[A]};this.undoAdd=function(K,V){V=V[0];0<=V?qa.add(K,V):qa.remove(K)};this.replace=function(K,V){var M=qa.get(K),A=M.clone(),ra=qa.protectedGetExtendInfo(K),da=qa.getIndex(V);K=0<=da&&da!=K;var va;K&&(va=qa.protectedGetExtendInfo(da));qa.protectedReplaceItem(M,V,va);K&&qa.protectedRemoveItem(da,
!0);ka(ja.KEY_REPLACE,M);return[A,ra,da,va]};this.undoReplace=function(K,V,M){var A=M[0],ra=M[1],da=M[2];M=M[3];0<=da&&qa.protectedInsertItem(da,V,M);K=qa.get(K);qa.protectedReplaceItem(K,A,ra);ka(ja.KEY_REPLACE,K)};this.remove=function(K){var V=qa.getIndex(K);if(0>V)throw Error("Sth must be wrong.");var M=qa.protectedGetExtendInfo(V);qa.protectedRemoveItem(V,!0);ka(ja.KEY_REMOVE,K);return[V,M]};this.undoRemove=function(K,V){qa.protectedInsertItem(V[0],K,V[1]);ka(ja.KEY_ADD,K)};this.removeSome=function(K){for(var V=
[],M=K.length-1;0<=M;M--){var A=qa.getIndex(K[M]),ra=qa.protectedGetExtendInfo(A);qa.protectedRemoveItem(A,!0);V[M]=[A,ra]}ka(ja.KEY_CHANGE);return V};this.undoRemoveSome=function(K,V){for(var M=0;M<K.length;M++)qa.protectedInsertItem(V[M][0],K[M],V[M][1]);ka(ja.KEY_CHANGE)};this.keepLogicalOrder=function(){for(var K=Aa.slice(0),V=[],M=[],A=!1,ra=!1,da=0;da<Aa.length;da++){var va=Aa[da];va.isDimension()?(V.push(va),A&&(ra=!0)):va.isMeasure()&&(A=!0,M.push(va))}return ra?(Aa=V.concat(M),ka(ja.KEY_CHANGE),
[K]):null};this.undoKeepLogicalOrder=function(K){K&&(Aa=K[0],ka(ja.KEY_CHANGE))};this.getCount=function(){return Aa.length};this.get=function(K){return Aa[K]};this.getIndex=function(K){for(var V=0;V<Aa.length;V++)if(Aa[V]==K)return V;return-1};this.getDimensionCount=function(){for(var K=Aa.length-1;0<=K;K--)if(Aa[K].isDimension())return K+1;return 0};this.hasAnyDimension=function(){return 0<qa.getCount()&&qa.get(0).isDimension()};this.addChangedListener=function(K){Fa.addListener(K)};this.removeChangedListener=
function(K){Fa.removeListener(K)};var ka=function(K,V,M){var A=new Sa(qa,V);M&&A.setFieldSubEventTarget(M);Fa.fireEvent(function(ra){ra(A,K)})};this.protectedAddItem=function(K,V){Aa.push(K);K.addPropertyChangeListener(Na);K.bindMetaEvent()};this.protectedInsertItem=function(K,V,M){Aa.splice(K,0,V);V.addPropertyChangeListener(Na);V.bindMetaEvent()};this.protectedReplaceItem=function(K,V,M){K.setMetaField(V.getMetaField());K.bindMetaEvent();K.setPartValue(V.getPartValue());K.setDateFormat(V.getDateFormat());
K.setRole(V.getRole(),V.getAggregation())};this.protectedRemoveItem=function(K,V){K=Aa.splice(K,1);V&&K[0].clearListener()};this.protectedGetExtendInfo=function(K){return null};var Na=function(K,V){ka(V,null,K)},U=function(K,V){if(!K.isDimension())return null;V=K.getMetaField();if(V.getDataType()==Ma.DT_DATE){K=K.getPartValue();V=[Ka.PARTVALUE_DATE_YEAR,Ka.PARTVALUE_DATE_QUARTER,Ka.PARTVALUE_DATE_MONTH,Ka.PARTVALUE_DATE_DAY];for(var M=0;M<V.length;M++)if(V[M]==K)return[V,M];return null}return(K=V.getTable())?
K.searchHierachy(V):null};this.getInitialDateHierachyForField=function(K,V){if(K.isMeasure()||K.getMetaField().getDataType()!=Ma.DT_DATE||K.getPartValue())return null;var M=[Ka.PARTVALUE_DATE_YEAR,Ka.PARTVALUE_DATE_QUARTER,Ka.PARTVALUE_DATE_MONTH,Ka.PARTVALUE_DATE_DAY];for(--V;0<=V;V--){var A=Aa[V];if(A.getMetaField()==K.getMetaField()){A=A.getPartValue();for(var ra=M.length-2;0<=ra;ra--)if(M[ra]==A)return M[ra+1]}}return Ka.PARTVALUE_DATE_YEAR};this.getHierachyExpandableStates=function(K){for(var V=
function(Q,n,d){for(d+=1;d<n.length;d++)for(var b=n[d],c=0;c<Aa.length;c++){var a=Aa[c];if(a!=Q&&a.getMetaField()==b)return!0}return!1},M=function(Q,n,d){for(d+=1;d<n.length;d++)for(var b=n[d],c=0;c<Aa.length;c++){var a=Aa[c];if(a!=Q&&a.getMetaField()==Q.getMetaField()&&b==a.getPartValue())return!0}return!1},A=[],ra=0;ra<Aa.length;ra++){var da=Aa[ra],va=U(da,K),za=va?va[0]:null;va=va?va[1]:-1;za&&va!=za.length-1?da.getMetaField().getDataType()==Ma.DT_DATE?A[ra]=!M(da,za,va):A[ra]=!V(da,za,va):A[ra]=
null}return A};this.createFieldForHierachyExpanding=function(K,V){var M=U(V,K);K=M[0];var A=M[1];M=new ib;V.getMetaField().getDataType()==Ma.DT_DATE?(K=K[A+1],M.setMetaField(V.getMetaField()),M.setPartValue(K)):M.setMetaField(K[A+1]);M.setRole(Ka.ROLE_DIMENSION);M.setContinuous(!1);return M};this.searchFieldsForHierachyCollapsing=function(K,V){var M=[],A=U(V,K),ra=A[0];A=A[1];for(var da=0;da<Aa.length;da++){var va=Aa[da];if(va!=V){var za=U(va,K);if(za){var Q=za[0];za=za[1];(V.getMetaField().getDataType()==
Ma.DT_DATE?va.getMetaField()==V.getMetaField():ra==Q)&&za>A&&M.push(va)}}}return M};this.toJsonObject=function(){for(var K=[],V=0;V<Aa.length;V++)K.push(Aa[V].toJsonObject());return{fields:K}};this.fromJsonObject=function(K,V){Aa.length=0;K=K.fields;for(var M=0;M<K.length;M++){var A=K[M],ra=new ib;ra.fromJsonObject(A,V);qa.protectedAddItem(ra)}};this.protectedMethod={fireChangedListener:ka}}function ta(){ja.call(this);var qa=this,Aa=this.protectedMethod,Fa=[];this.setFieldMatchingMarkType=function(M,
A){var ra=qa.getIndex(M);0<=ra&&(Fa[ra]=A,Aa.fireChangedListener(ta.KEY_FIELD_MARK_TYPE,M))};this.getFieldMatchingMarkType=function(M){M="number"==typeof M?parseInt(M):qa.getIndex(M);return 0<=M?Fa[M]:null};this.protectedGetExtendInfo=function(M){return Fa[M]};var ka=this.protectedAddItem;this.protectedAddItem=function(M,A){ka(M);Fa.push(A?A:"")};var Na=this.protectedInsertItem;this.protectedInsertItem=function(M,A,ra){Na(M,A);Fa.splice(M,0,ra?ra:"")};var U=this.protectedRemoveItem;this.protectedRemoveItem=
function(M,A){U(M,A);Fa.splice(M,1)};var K=this.toJsonObject;this.toJsonObject=function(){for(var M=K(),A=[],ra=0;ra<Fa.length;ra++)A.push(Fa[ra]);M.markTypes=A;return M};var V=this.fromJsonObject;this.fromJsonObject=function(M,A){V(M,A);M=M.markTypes;for(A=0;A<M.length;A++)Fa[A]=M[A]}}function Ra(){ja.call(this);var qa=this,Aa=this.protectedMethod,Fa=[];this.addSome=function(za,Q){for(var n=0;n<za.length;n++)qa.protectedAddItem(za[n],Q[n]);Aa.fireChangedListener(ja.KEY_CHANGE)};this.setFilter=function(za,
Q){za=ka(za);0<=za&&(Fa[za]=Q,M(Q,za),Aa.fireChangedListener(Ra.KEY_FILTER,qa.get(za)))};this.getFilter=function(za){za=ka(za);return 0<=za?Fa[za]:null};this.getFilterIndex=function(za){for(var Q=0;Q<Fa.length;Q++)if(Fa[Q]==za)return Q;return-1};var ka=function(za){return"number"==typeof za?parseInt(za):qa.getIndex(za)};this.protectedGetExtendInfo=function(za){return Fa[za]};var Na=this.protectedAddItem;this.protectedAddItem=function(za,Q){Na(za);za=Q?Q:null;Fa.push(za);M(za,Fa.length-1)};var U=this.protectedInsertItem;
this.protectedInsertItem=function(za,Q,n){U(za,Q);Q=n?n:null;Fa.splice(za,0,Q);M(Q,za)};var K=this.protectedReplaceItem;this.protectedReplaceItem=function(za,Q,n){K(za,Q);za=qa.getIndex(za);n=n?n:null;Fa[za]=n;M(n,za)};var V=this.protectedRemoveItem;this.protectedRemoveItem=function(za,Q){V(za,Q);za=Fa.splice(za,1);Q&&((Q=za[0])&&Q.removeValueChangedListener(A),Q&&Q.removePropertyChangeListener(ra))};var M=function(za,Q){za&&(za.addValueChangedListener(A),za.addPropertyChangeListener(ra),Q=qa.get(Q),
za.setAssociatedField(Q))},A=function(za){za=qa.get(qa.getFilterIndex(za));Aa.fireChangedListener(Ra.KEY_FILTER_VALUE,za)},ra=function(za,Q){Q==oa.KEY_ONSHOW&&(za=qa.get(qa.getFilterIndex(za)),Aa.fireChangedListener(Ra.KEY_FILTER_ONSHOW,za))};this.getOnShowFilterCount=function(){for(var za=0,Q=0;Q<qa.getCount();Q++)qa.getFilter(Q).isOnShow()&&za++;return za};this.copyFiltersForSetting=function(){for(var za=[],Q=0;Q<qa.getCount();Q++){var n=qa.getFilter(Q).copyForSetting();za.push(n)}return za};this.applyFiltersFromSetting=
function(za){for(var Q=0;Q<qa.getCount();Q++)qa.getFilter(Q).applyFromSetting(za[Q])};this.toInsteadJson=function(za){for(var Q=qa.toJsonObject(),n=[],d=0;d<za.length;d++){var b=za[d].toJsonObject();n.push(b)}Q.filters=n;return Q};this.toPartJson=function(za){var Q=qa.toJsonObject();0<=za&&(Q.fields.splice(za,1),Q.filters.splice(za,1));return Q};var da=this.toJsonObject;this.toJsonObject=function(){for(var za=da(),Q=[],n=0;n<Fa.length;n++){var d=Fa[n].toJsonObject();Q.push(d)}za.filters=Q;return za};
var va=this.fromJsonObject;this.fromJsonObject=function(za,Q){va(za,Q);za=za.filters;Fa=[];for(Q=0;Q<za.length;Q++){var n=za[Q];switch(n.name){case ab.FILTER_NAME:var d=new ab;break;case ca.FILTER_NAME:d=new ca;break;case fb.FILTER_NAME:d=new fb;break;default:throw Error("Unknown filter name.");}d.fromJsonObject(n);Fa[Q]=d;M(d,Q)}}}function ib(){Ka.call(this);var qa=this.protectedMethod;this.bindMetaEvent=function(){qa.bindMetaEvent()};this.protectedCreateInstance=function(){return new ib}}function eb(){var qa=
[],Aa,Fa=Ka.SORT_ASC;this.getHeadValue=function(){return qa};this.setHeadValue=function(ka){qa=ka};this.getMeasureIndex=function(){return Aa||0===Aa?Aa:-1};this.setMeasureIndex=function(ka){Aa=ka};this.getOrder=function(){return Fa};this.setOrder=function(ka){Fa=ka};this.toJsonObject=function(){for(var ka={},Na=[],U=0;U<qa.length;U++)Na.push(qa[U].toJsonObject());ka.headValue=Na;if(Aa||0===Aa)ka.measure=Aa;Fa&&(ka.order=Fa);return ka};this.fromJsonObject=function(ka){qa=[];for(var Na=ka.headValue,
U=0;U<Na.length;U++){var K=new Oa;K.fromJsonObject(Na[U]);qa.push(K)}Aa=ka.measure;Fa=ka.order}}function x(){var qa=this,Aa=new fa,Fa,ka,Na,U,K;this.getDesignerStatus=function(){!Fa&&(Fa=new ha);return Fa};this.getExhibitionStatus=function(){!ka&&(ka=new X);return ka};this.getChartConfig=function(){Na||(Na=new P,Na.addChangedListener(V));return Na};this.addChartConfigChangedListener=function(M){Aa.addListener(M)};this.removeChartConfigChangedListener=function(M){Aa.removeListener(M)};var V=function(M,
A){Aa.fireEvent(function(ra){ra(M,A?x.KEY_EXECUTE:x.KEY_REPAINT)})};this._innerSetItems=function(M,A){ka=M;Na=A};this.getExportSetting=function(){return U};this.setExportSetting=function(M){U=M};this.getExportConfig=function(){return K};this.setExportConfig=function(M){K=M};this.createExecutingCopy=function(M,A){var ra=ka?ka.getJsonTreeExpandStates()?!0:!1:!1;ra=A||ra?ka:null;M=Na?Na.createExecutingCopy(M):null;var da=new x;da._innerSetItems(ra,M);A&&da.setExportSetting(U);A&&da.setExportConfig(K);
return da};this.toJsonObject=function(){var M={};Fa&&(M.designerStatus=JSON.stringify(Fa.toJsonObject()));ka&&(M.exhibitionStatus=ka.toJsonObject());Na&&(M.chartConfig=qa.getChartConfig().toJsonObject());U&&(M.exportSetting=U);K&&(M.exportConfig=K);return M};this.fromJsonObject=function(M){Fa=new ha;var A=M.designerStatus;if(A)try{var ra=JSON.parse(A);Fa.fromJsonObject(ra)}catch(da){window.console&&console.log(da)}else Fa.setHide(!1);if(A=M.exhibitionStatus)ka=new X,ka.fromJsonObject(A);(A=M.chartConfig)&&
qa.getChartConfig().fromJsonObject(A);U=M.exportSetting;K=M.exportConfig}}function ha(){var qa=!0,Aa=260,Fa=320;this.isHide=function(){return qa};this.setHide=function(ka){qa=ka};this.getWidth=function(){return Aa};this.setWidth=function(ka){Aa=ka};this.getHeight=function(){return Fa};this.setHeight=function(ka){Fa=ka};this.toJsonObject=function(){var ka={};ka.hide=qa;ka.width=Aa;ka.height=Fa;return ka};this.fromJsonObject=function(ka){qa=ka.hide;Aa=ka.width;Fa=ka.height}}function X(){var qa,Aa,Fa,
ka,Na;this.setHeights=function(U){qa=U};this.getHeights=function(){return qa};this.setWidths=function(U){Aa=U};this.getWidths=function(){return Aa};this.getPaintableWidths=function(){return ka};this.getPaintableHeights=function(){return Fa};this.collectPaintableStatus=function(U,K){Fa=U;ka=K};this.setJsonTreeExpandStates=function(U){Na=U};this.getJsonTreeExpandStates=function(){return Na};this.toJsonObject=function(){var U={};qa&&(U.row=qa);Aa&&(U.column=Aa);U.height=Fa;U.width=ka;Na&&(U.treeExpandState=
Na);return U};this.fromJsonObject=function(U){qa=U.row;Aa=U.column;Fa=U.height;ka=U.width;Na=U.treeExpandState}}function P(){var qa=this,Aa=new fa,Fa=!1,ka=!0,Na,U,K,V=0,M=!1;this.addChangedListener=function(da){Aa.addListener(da)};this.removeChangedListener=function(da){Aa.removeListener(da)};var A=function(da){M|=da;clearTimeout(V);V=setTimeout(function(){Aa.fireEvent(function(va){va(qa,M)});M=!1},50)};this.setShowLabel=function(da){Fa!=da&&(Fa=da,A(!1))};this.isShowLabel=function(){return Fa};
this.setShowLegend=function(da){ka!=da&&(ka=da,A(!0))};this.isShowLegend=function(){return ka};this.getTableConfig=function(){Na||(Na=new T,Na.setChangedListener(ra));return Na};this.getPieConfig=function(){U||(U=new aa,U.setChangedListener(ra));return U};this.getRectTreeConfig=function(){K||(K=new ea,K.setChangedListener(ra));return K};this.carry=function(da,va,za){Na=da;U=va;K=za};var ra=function(da,va){A(va)};this.backup=function(){var da=new P;da.setShowLabel(Fa);da.setShowLegend(ka);da.carry(qa.getTableConfig().backup(),
qa.getPieConfig().backup(),qa.getRectTreeConfig().backup());return da};this.restore=function(da){qa.setShowLabel(da.isShowLabel());qa.setShowLegend(da.isShowLegend());qa.getTableConfig().restore(da.getTableConfig());qa.getPieConfig().restore(da.getPieConfig());qa.getRectTreeConfig().restore(da.getRectTreeConfig())};this.createExecutingCopy=function(da){var va=da==Ba.CHARTTYPE_PIE?U:null;da=da==Ba.CHARTTYPE_TREEMAP?K:null;var za=new P;za.setShowLabel(Fa);za.setShowLegend(ka);za.carry(Na,va,da);return za};
this.toJsonObject=function(){var da={};Fa&&(da.showLabel=!0);!ka&&(da.showLegend=!1);Na&&(da.table=Na.toJsonObject());U&&(da.pie=U.toJsonObject());K&&(da.rectTree=K.toJsonObject());return da};this.fromJsonObject=function(da){Fa=!0===da.showLabel?!0:!1;ka=!1===da.showLegend?!1:!0;var va=da.table;va&&qa.getTableConfig().fromJsonObject(va);(va=da.pie)&&qa.getPieConfig().fromJsonObject(va);(da=da.rectTree)&&qa.getRectTreeConfig().fromJsonObject(da)}}function y(){var qa=this,Aa;this.setChangedListener=
function(Fa){Aa=Fa};this.protectedMethod={fireChanged:function(Fa){Aa&&Aa(qa,Fa)}}}function T(){y.call(this);var qa=this,Aa=this.protectedMethod,Fa=!1,ka=T.PML_ATCOLUMN,Na=!0,U=!0;this.isTotalAhead=function(){return Fa};this.setTotalAhead=function(K){Fa!=K&&(Fa=K,Aa.fireChanged(!0))};this.isParallelMeasureLayoutAtRow=function(){return ka==T.PML_ATROW};this.setParallelMeasureLayoutAtRow=function(K){var V=ka;ka=K?T.PML_ATROW:T.PML_ATCOLUMN;ka!=V&&Aa.fireChanged(!0)};this.isFrozenTop=function(){return Na};
this.setFrozenTop=function(K){Na!=K&&(Na=K,Aa.fireChanged(!1))};this.isFrozenLeft=function(){return U};this.setFrozenLeft=function(K){U!=K&&(U=K,Aa.fireChanged(!1))};this.backup=function(){var K=new T;K.setTotalAhead(Fa);K.setParallelMeasureLayoutAtRow(qa.isParallelMeasureLayoutAtRow());K.setFrozenTop(Na);K.setFrozenLeft(U);return K};this.restore=function(K){qa.setTotalAhead(K.isTotalAhead());qa.setParallelMeasureLayoutAtRow(K.isParallelMeasureLayoutAtRow());qa.setFrozenTop(K.isFrozenTop());qa.setFrozenLeft(K.isFrozenLeft())};
this.toJsonObject=function(){var K={};Fa&&(K.totalAhead=!0);K.parallelMeasureLayout=ka;!Na&&(K.frozenTop=!1);!U&&(K.frozenLeft=!1);return K};this.fromJsonObject=function(K){Fa=K.totalAhead?!0:!1;var V=K.parallelMeasureLayout;V&&(ka=V);Na=!1!==K.frozenTop;U=!1!==K.frozenLeft}}function aa(){y.call(this);var qa=this,Aa=this.protectedMethod,Fa=0,ka=aa.LABEL_NUMBER,Na=!1;this.getTopN=function(){return Fa};this.setTopN=function(U){Fa!=U&&(Fa=U,Aa.fireChanged(!0))};this.getLabelType=function(){return ka};
this.setLabelType=function(U){ka!=U&&(ka=U,Aa.fireChanged(!1))};this.isHideNegative=function(){return Na};this.setHideNegative=function(U){Na!=U&&(Na=U,Aa.fireChanged(!0))};this.backup=function(){var U=new aa;U.setTopN(Fa);U.setLabelType(ka);U.setHideNegative(Na);return U};this.restore=function(U){qa.setTopN(U.getTopN());qa.setLabelType(U.getLabelType());qa.setHideNegative(U.isHideNegative())};this.toJsonObject=function(){var U={};Fa&&(U.topN=Fa);ka&&(U.labelType=ka);Na&&(U.hideNegative="true");return U};
this.fromJsonObject=function(U){var K=U.topN;Fa=K?parseInt(K):0;ka=(K=U.labelType)?parseInt(K):0;Na=U.hideNegative?!0:!1}}function ea(){y.call(this);var qa=this,Aa=this.protectedMethod,Fa=!1;this.isHideNegative=function(){return Fa};this.setHideNegative=function(ka){Fa!=ka&&(Fa=ka,Aa.fireChanged(!0))};this.backup=function(){var ka=new ea;ka.setHideNegative(Fa);return ka};this.restore=function(ka){qa.setHideNegative(ka.isHideNegative())};this.toJsonObject=function(){var ka={};Fa&&(ka.hideNegative=
"true");return ka};this.fromJsonObject=function(ka){Fa=ka.hideNegative?!0:!1}}function wa(qa){var Aa,Fa;this.isNumberAxis=function(){return qa==wa.TYPE_NUMBER};this.isContinueAxis=function(){return qa==wa.TYPE_CONTINUE};this.setDirection=function(ka){Aa=ka};this.getDirection=function(){return Aa};this.setDisplayName=function(ka){Fa=ka};this.getDisplayName=function(){return Fa}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&
(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.longer&&(com.kingdee.bos.qing.longer={});"undefined"==typeof com.kingdee.bos.qing.longer.model&&(com.kingdee.bos.qing.longer.model={});var O=com.kingdee.bos.qing.longer.model;O.AnalyticalModel=Ba;O.AnalyticalFieldSet=ja;O.MarkFieldSet=ta;O.FilterFieldSet=Ra;O.AnalyticalField=ib;O.SortingLane=eb;O.PieChartConfig=aa;O.AnalyticalPreferences=x;O.ChartContext=function(){var qa=
!0,Aa=null,Fa=null,ka;this.setLandscape=function(Na){qa=Na};this.isLandscape=function(){return qa};this.setSecondaryType=function(Na){Aa=Na};this.getSecondaryType=function(){return Aa};this.setAxisModel=function(Na){Fa=Na};this.getAxisModel=function(){return Fa};this.isForAxis=function(){return Fa?!0:!1};this.setChatConfig=function(Na){ka=Na};this.getChartConfig=function(){return ka};this.isShowLabel=function(){return ka?ka.isShowLabel():!1}};O.AxisModel=wa;var fa,La,Ma,ua,Ka,oa,Oa,ab,ca,fb,lb,gb;
(function(){var qa=com.kingdee.bos.qing.common;fa=qa.EventListenerList;qa=com.kingdee.bos.qing.core.model;La=qa.Meta;Ma=qa.MetaField;ua=qa.AbstractQingModel;Ka=qa.AbstractAnalyticalField;oa=qa.AbstractFilter;Oa=qa.ExecutableValue;ab=qa.DiscreteFilter;ca=qa.ContinuousFilter;fb=qa.ContinuousDateFilter;lb=qa.BriefOutputableFields;gb=qa.LinkTargets})();Ba.KEY_CLEAR="clearAll";Ba.KEY_UNCLEAR="unclearAll";Ba.KEY_CHART_TYPE="chartType";Ba.KEY_ROW_GRAND_TOTAL="isRowGrandTotal";Ba.KEY_COLUMN_GRAND_TOTAL="isColumnGrandTotal";
Ba.KEY_SORTING_LANE="sortingLane";Ba.KEY_TREE_EXPANDING="treeExpanding";Ba.CHARTTYPE_TABLE="Table";Ba.CHARTTYPE_HEATMAP="HeatMap";Ba.CHARTTYPE_PIE="Pie";Ba.CHARTTYPE_LINE="Line";Ba.CHARTTYPE_MLINE="MultiLine";Ba.CHARTTYPE_AREA="Area";Ba.CHARTTYPE_BAR="Bar";Ba.CHARTTYPE_STACKBAR="StackBar";Ba.CHARTTYPE_TREEMAP="TreeMap";Ba.CHARTTYPE_SCATTER="Scatter";ja.KEY_ADD="add";ja.KEY_REMOVE="remove";ja.KEY_REPLACE="replace";ja.KEY_CHANGE="change";ta.KEY_FIELD_MARK_TYPE="setFieldMarkType";ta.TYPE_LABEL="label";
ta.TYPE_COLOR="color";ta.TYPE_SIZE="size";ta.TYPE_ANGLE="angle";ta.TYPE_BLANK="blank";Ra.KEY_FILTER="setFilter";Ra.KEY_FILTER_VALUE="filterValueChanged";Ra.KEY_FILTER_ONSHOW="filterOnShowChanged";ib.InvalidPrompt_LEVEL_POSITION_WRONG=100;x.KEY_REPAINT="repaint";x.KEY_EXECUTE="execute";T.PML_ATCOLUMN="AtColumn";T.PML_ATROW="AtRow";aa.LABEL_NAME=1;aa.LABEL_NUMBER=2;aa.LABEL_PERCENT=4;wa.TYPE_NUMBER="number";wa.TYPE_CONTINUE="continue";wa.TYPE_DISCRETE="discrete";wa.DIR_TOP="top";wa.DIR_BOTTOM="bottom";
wa.DIR_LEFT="left";wa.DIR_RIGHT="right"})();(function(){"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.longer&&(com.kingdee.bos.qing.longer={});"undefined"==typeof com.kingdee.bos.qing.longer.controller&&(com.kingdee.bos.qing.longer.controller={});var sa=com.kingdee.bos.qing.longer.controller,Sa,Ba,ja,ta;(function(){var Ra=com.kingdee.bos.qing.framework.common;
Sa=Ra.MultilanguageManager.createPackageAccessor(sa);Ra=com.kingdee.bos.qing.core.controller;Ba=Ra.AbstractAction;ja=Ra.AbstractActionAppendAllNecessaryDimensions;Ra=com.kingdee.bos.qing.longer.model;ta=Ra.AnalyticalField})();sa.ActionClearModel=function(){Ba.call(this);var Ra,ib;this.getCaption=function(){return Sa.get("clearModel","\u6e05\u9664")};this.setValue=function(eb){Ra=eb};this.perform=function(){ib=Ra.clear()};this.unperform=function(){Ra.undoClear(ib)}};sa.ActionAddAnalyticalField=function(Ra){Ba.call(this);
var ib,eb,x,ha;this.getCaption=function(){return ha};this.setValue=function(X,P){ib=X;eb=P;ha=0<=Ra.getIndex(ib)?Sa.get("moveField","\u79fb\u52a8"):Sa.get("addField","\u6dfb\u52a0");ha+=ib.getComplexText()};this.perform=function(){x=Ra.add(ib,eb)};this.unperform=function(){Ra.undoAdd(ib,x)}};sa.ActionReplaceAnalyticalField=function(Ra){Ba.call(this);var ib,eb,x;this.getCaption=function(){return Sa.get("replaceField","\u66ff\u6362\u5206\u6790\u5b57\u6bb5")};this.setValue=function(ha,X){eb=ha;ib=X};
this.perform=function(){x=Ra.replace(eb,ib)};this.unperform=function(){Ra.undoReplace(eb,ib,x)}};sa.ActionRemoveAnalyticalField=function(Ra){Ba.call(this);var ib,eb;this.getCaption=function(){return Sa.get("removeField","\u5220\u9664")+ib.getComplexText()};this.setValue=function(x){ib=x};this.perform=function(){eb=Ra.remove(ib)};this.unperform=function(){Ra.undoRemove(ib,eb)}};sa.ActionKeepLogicalOrder=function(Ra){Ba.call(this);var ib;this.perform=function(){ib=Ra.keepLogicalOrder()};this.unperform=
function(){Ra.undoKeepLogicalOrder(ib)}};sa.ActionSetMarkType=function(Ra){Ba.call(this);var ib=this,eb,x;this.getCaption=function(){return Sa.get("setMarkType","\u8bbe\u7f6e#1\u503c\u5c55\u73b0\u65b9\u5f0f").replace("#1",eb.getComplexText())};this.setValue=function(ha,X){eb=ha;x=X};this.perform=function(){var ha=Ra.getFieldMatchingMarkType(eb);Ra.setFieldMatchingMarkType(eb,x);x=ha};this.unperform=function(){ib.perform()}};sa.ActionSetFilter=function(Ra){Ba.call(this);var ib=this,eb,x;this.setValue=
function(ha,X){eb=ha;x=X};this.perform=function(){var ha=Ra.getFilter(eb);Ra.setFilter(eb,x);x=ha};this.unperform=function(){ib.perform()}};sa.ActionExpandHierachy=function(Ra){Ba.call(this);var ib,eb,x,ha;this.getCaption=function(){return Sa.get("expandHierachy","\u5c55\u5f00")+ib.getComplexText()};this.setValue=function(X,P){ib=P;x=Ra.getIndex(P)+1;eb=Ra.createFieldForHierachyExpanding(X,P)};this.perform=function(){ha=Ra.add(eb,x)};this.unperform=function(){Ra.undoAdd(eb,ha)}};sa.ActionCollapseHierachy=
function(Ra){Ba.call(this);var ib,eb,x;this.getCaption=function(){return Sa.get("collapseHierachy","\u6536\u8d77")+ib.getComplexText()};this.setValue=function(ha,X){ib=X;eb=Ra.searchFieldsForHierachyCollapsing(ha,X)};this.perform=function(){x=Ra.removeSome(eb)};this.unperform=function(){Ra.undoRemoveSome(eb,x)}};sa.ActionSetAllSelectedForDiscreteFilter=function(Ra){Ba.call(this);var ib,eb;this.setCaption=function(x){ib=x};this.getCaption=function(){return ib};this.perform=function(){eb=Ra.cloneAllSelectedValue();
Ra.setFullValue(!0)};this.unperform=function(){Ra.resetAllSelectedValue(eb)}};sa.ActionAppendAllNecessaryDimensions=function(){ja.call(this);var Ra=this.protectedMethod,ib,eb,x;this.setValue=function(ha,X){ib=X.getFilterFieldSet();eb=[];x=[];X=X.getUsingMetaFields(ha);Ra.visitMissingNecessaryDimensions(ha,X,function(P){var y=new ta;eb.push(y);x.push(P);return y})};this.perform=function(){ib.addSome(eb,x)};this.unperform=function(){ib.removeSome(eb)}}})();(function(){function sa(n){var d=this,b,c,a;this.getName=function(){return n};this.getText=function(){return b};this.getIconFileName=function(){return c};this.getSuppliedMarks=function(){throw Error("Override me.");};this.getCardsDynamicInfo=function(){a||(a=new ib,a.getColumnCardInfo().setTitle(ua.get("columnCardTitle","\u5217")),a.getRowCardInfo().setTitle(ua.get("rowCardTitle","\u884c")),a.getMarkCardInfo().setTitle(ua.get("markCardTitle","\u503c\u5c55\u73b0\u65b9\u5f0f")));return a};this.getCardsOperatingPrompt=
function(l){return new Ra(null,null,null)};this.smartChangeModel=function(l,r,z){throw Error("Override me.");};this.smartDropField=function(l,r,z,D){};this.rowColReverse=function(l,r){r.compositeStart(ua.get("rowColReverse","\u884c\u5217\u7f6e\u6362"));d.protectedRowColReverseImpl(l,r);r.compositeEnd()};this.isFieldValid=function(l,r,z){};this.isCellMeasurable=function(l){return!1};this.getSuggestedSize=function(l,r){throw Error("Override me.");};this.createJsonCellParser=function(){throw Error("Override me.");
};this.exhibit=function(l,r,z,D,I,J,Z){throw Error("Override me.");};this.isRowColReverseEnable=function(l){var r=l.getRowAnalyticalFieldSet();l=l.getColumnAnalyticalFieldSet();return 0<r.getCount()||0<l.getCount()};this.protectedRowColReverseImpl=function(l,r){var z=l.getRowAnalyticalFieldSet();l=l.getColumnAnalyticalFieldSet();for(var D=[],I=[],J=0;J<z.getCount();J++)D.push(z.get(J));for(J=0;J<l.getCount();J++)I.push(l.get(J));for(J=0;J<z.getCount();J++){var Z=new Fa(z);Z.setValue(z.get(J));r.perform(Z)}for(J=
0;J<l.getCount();J++)Z=new Fa(l),Z.setValue(l.get(J)),r.perform(Z);for(J=0;J<D.length;J++)Z=new Aa(l),Z.setValue(D[J]),r.perform(Z);for(J=0;J<I.length;J++)Z=new Aa(z),Z.setValue(I[J]),r.perform(Z)};var e=function(l){return l.getMarkFieldSet()},f=function(l,r,z,D,I){for(var J=0,Z=r.getCount();J<Z;J++){var ia=r.get(J);if(r instanceof ca){var Ta=r.getFieldMatchingMarkType(J);for(var cb=!1,jb=0;jb<z.length;jb++){var ya=z[jb][1];if(z[jb][0]==Ta&&ya==ia.getRole()){cb=!0;break}}cb||(Ta=null)}ia.isDimension()?
D.push(new Ba(ia,Ta)):ia.isMeasure()&&I.push(new Ba(ia,Ta));cb=new Fa(r);cb.setValue(ia);l.perform(cb)}},h=function(l,r,z,D){for(var I=0;I<r.length;I++){var J=r[I];if(J instanceof Ba){var Z=J.getField();var ia=J.getExtendInfo()}else Z=J;if(!D||Z.getMetaField().getDataType()==D){J=l;for(var Ta=ia,cb=!1,jb=0;jb<J.length;jb++){var ya=J[jb].getField();if(ya.getMetaField()==Z.getMetaField()&&ya.getRole()==Z.getRole())if(ya.isMeasure()){if(ya.getAggregation()==Z.getAggregation()){cb=!0;break}}else{cb=!0;
break}}cb?J=!1:(J.push(new Ba(Z,Ta)),J=!0);if(z&&J){r.splice(I,1);break}}}},k=function(l,r){for(var z=0;z<l.length;z++)if(l[z].getExtendInfo()==r)return z;return-1};this.protectedMethod={setText:function(l){b=l},setIconFileName:function(l){c=l},getCommonClickListener:function(l,r,z){return function(D,I,J){r.toggleMenu(D,I)&&z.setMouseStateLocked(!0);D=l.getJsonForDetailSearching(J);r.setDetailSearchingParam(D)}},getCommonTooltipsListener:function(l,r,z){var D=function(){z.setMouseStateLocked(!1)};
return function(I,J,Z){if(I&&l){r.setPosition(I,J);I=l.getDisplayShedTitle();J=[];for(var ia=0;ia<I.length;ia++){var Ta=I[ia];J.push({key:Ta.key,value:Ta.value})}J=J.concat(Z);r.setContent(J);r.hookHideAnnouncer(D)}else r.hide()}},getMarkFieldSet:e,setCardsTitle:function(l,r,z){var D=d.getCardsDynamicInfo();l&&D.getColumnCardInfo().setTitle(l);r&&D.getRowCardInfo().setTitle(r);z&&D.getMarkCardInfo().setTitle(z)},isMeasureExist:function(l){for(var r=l.getCount()-1;0<=r;r--){var z=l.get(r);if(z.isMeasure()&&
!z.getInvalidPrompt())return!0}return!1},lookupMeasures:function(l,r){for(var z=0;z<l.getCount();z++){var D=l.get(z);D.isMeasure()&&r(D)}},lookupMarks:function(l,r,z){for(var D=0;D<l.getCount();D++){var I=l.get(D);l.getFieldMatchingMarkType(D)==r&&z(I)}},isMarkExist:function(l,r){for(var z=0;z<l.getCount();z++)if(l.getFieldMatchingMarkType(z)==r)return!0;return!1},setFieldInvalid:function(l,r){var z=new oa.InvalidPrompt;z.setLevel(ab.InvalidPrompt_LEVEL_POSITION_WRONG,r?!0:!1);z.setPromptText(r);
l.setInvalidPrompt(z)},washFields:function(l,r,z){var D=[],I=[];f(l,r.getRowAnalyticalFieldSet(),z,D,I);var J=[],Z=[];f(l,r.getColumnAnalyticalFieldSet(),z,J,Z);var ia=[],Ta=[];f(l,e(r),z,ia,Ta);l=new ja;l.setWashedFields(D,I,J,Z,ia,Ta);return l},mergeAllNoDuplicated:function(l,r){h(l,r,!1)},mergeOnlyOneNoDuplicated:function(l,r,z){h(l,r,!0,z)},searchMark:function(l,r){r=k(l,r);return 0<=r?l[r]:null},pickupMark:function(l,r){r=k(l,r);if(0<=r){var z=l[r];l.splice(r,1);return z}return null},patchMark:function(l,
r,z){for(var D=0;D<l.length;D++){var I=l[D];if(!I.getExtendInfo()&&(I.setExtendInfo(r),z))break}},appendFields:function(l,r,z){for(var D=0;D<r.length;D++){var I=r[D],J=I.getField(),Z=new Aa(z);Z.setValue(J);l.perform(Z);z instanceof ca&&(I=I.getExtendInfo(),Z=new ka(z),Z.setValue(J,I),l.perform(Z))}}}}function Sa(){this.isRowColReverseEnable=function(n){var d=n.getRowAnalyticalFieldSet();n=n.getColumnAnalyticalFieldSet();for(var b=[],c=[],a=0;a<d.getCount();a++){var e=d.get(a);e.isDimension()&&b.push(e)}for(a=
0;a<n.getCount();a++)e=n.get(a),e.isDimension()&&c.push(e);return 0<b.length||1<c.length};this.protectedRowColReverseImpl=function(n,d){var b=n.getRowAnalyticalFieldSet();n=n.getColumnAnalyticalFieldSet();for(var c=[],a=[],e=0;e<b.getCount();e++){var f=b.get(e);f.isDimension()&&c.push(f)}for(e=0;e<n.getCount();e++)f=n.get(e),f.isDimension()&&a.push(f);0<a.length&&a.pop();for(e=0;e<c.length;e++)f=new Fa(b),f.setValue(c[e]),d.perform(f);for(e=0;e<a.length;e++)f=new Fa(n),f.setValue(a[e]),d.perform(f);
for(e=c.length-1;0<=e;e--)f=new Aa(n),f.setValue(c[e],0),d.perform(f);for(e=a.length-1;0<=e;e--)f=new Aa(b),f.setValue(a[e],0),d.perform(f)}}function Ba(n,d){var b=d;this.getField=function(){return n};this.getExtendInfo=function(){return b};this.setExtendInfo=function(c){b=c}}function ja(){var n,d,b,c,a,e;this.setWashedFields=function(f,h,k,l,r,z){n=f;d=h;b=k;c=l;a=r;e=z};this.getRowDimensionWrap=function(){return n};this.getRowMesaureWrap=function(){return d};this.getColumnDimensionWrap=function(){return b};
this.getColumnMesaureWrap=function(){return c};this.getMarkDimensionWrap=function(){return a};this.getMarkMesaureWrap=function(){return e}}function ta(){var n=this,d,b,c,a,e=-1,f=-1,h=-1,k=null,l=null;this.getMinWidth=function(){return d};this.getMaxWidth=function(){return b};this.getMinHeight=function(){return c};this.getMaxHeight=function(){return a};this.setSize=function(r,z){n.setMinSize(r,z);n.setMaxSize(r,z)};this.setMinSize=function(r,z){d=r;c=z};this.setMaxSize=function(r,z){b=r;a=z};this.getWidthHeightRatio=
function(){return e};this.setWidthHeightRatio=function(r){e=r};this.getLeftAxisColumnWidth=function(){return f};this.setLeftAxisColumnWidth=function(r){f=r};this.getTopAxisRowHeight=function(){return h};this.setTopAxisRowHeight=function(r){h=r};this.isLeftAsNumberAxis=function(){return k};this.setLeftAsNumberAxis=function(r){k=r};this.isTopAsNumberAxis=function(){return l};this.setTopAsNumberAxis=function(r){l=r}}function Ra(n,d,b){this.getColumnCardPrompt=function(){return n};this.getRowCardPrompt=
function(){return d};this.getMarkCardPrompt=function(){return b}}function ib(){function n(){var a;this.setTitle=function(e){a=e};this.getTitle=function(){return a}}var d=new n,b=new n,c=new n;this.getColumnCardInfo=function(){return d};this.getRowCardInfo=function(){return b};this.getMarkCardInfo=function(){return c}}function eb(){var n=this,d;this.parseCommonCell=function(b){d=null;b&&(d=n.parseExhibitModel(b))};this.getCommonModel=function(){return d};this.parseAxisModel=function(b){throw Error("Override me.");
};this.parseExhibitModel=function(b){throw Error("Override me.");}}function x(){eb.call(this);var n=this;this.parseAxisModel=function(b){var c=b.title,a=new lb(b.axis);c&&a.setDisplayName(c);switch(b.dir){case "top":a.setDirection(lb.DIR_TOP);break;case "bottom":a.setDirection(lb.DIR_BOTTOM);break;case "left":a.setDirection(lb.DIR_LEFT);break;case "right":a.setDirection(lb.DIR_RIGHT)}return a};this.parseExhibitModel=function(b){return d(b?b.chart:null)};var d=function(b){b?b=Na.createFromJson(b):
(b=new Na,b.setCategories([]),b.setSeries([]));var c=b,a=n.getCommonModel();a&&c.merge(a);return b};this.protectedMethod={parseChartModelImpl:d}}function ha(){eb.call(this);this.parseExhibitModel=function(n){return[U.createFromJson(n?n.tree:{root:[]}),n]}}function X(){function n(){eb.call(this);var b=this;this.parseExhibitModel=function(c){if(c){var a=b.getCommonModel();if(a){var e=a.colorTitle;e&&(c.colorTitle=e);(a=a.title)&&(c.title=a)}}return c}}sa.call(this,Oa.CHARTTYPE_TABLE);var d=this.protectedMethod;
d.setIconFileName("chart_table");d.setText(ua.get("table","\u8868\u683c"));d.setCardsTitle(null,null,ua.get("markCardTitleForTable","\u6570\u503c\u533a\u57df"));this.getSuppliedMarks=function(){return[ca.TYPE_LABEL,ca.TYPE_COLOR]};this.smartDropField=function(b,c,a,e){var f=d.getMarkFieldSet(b);c==f?(!a.isMeasure()&&a.getMetaField().isCanAsMeasure()&&(b=a.getMetaField().getDataType()==Ka.DT_NUMBER,c=new gb(a),c.setValue(b?oa.AGGREGATION_SUM:oa.AGGREGATION_COUNT),e.perform(c),b=new qa(a),b.setValue(null),
e.perform(b)),f=new ka(f),f.setValue(a,ca.TYPE_LABEL),e.perform(f)):c!=b.getColumnAnalyticalFieldSet()&&c!=b.getRowAnalyticalFieldSet()||a.isDimension()||!a.getMetaField().isCanAsDimension()||(c=new gb(a),c.setValue(oa.ROLE_DIMENSION),e.perform(c),a.getMetaField().getDataType()!=Ka.DT_DATE||a.getPartValue()||(b=new qa(a),b.setValue(oa.PARTVALUE_DATE_YEAR),e.perform(b)))};this.smartChangeModel=function(b,c,a){var e=d.washFields(c,b,[[ca.TYPE_LABEL,oa.ROLE_MEASURE],[ca.TYPE_COLOR,oa.ROLE_MEASURE]]),
f=e.getRowDimensionWrap(),h=e.getRowMesaureWrap(),k=e.getColumnDimensionWrap(),l=e.getColumnMesaureWrap(),r=e.getMarkDimensionWrap();e=e.getMarkMesaureWrap();var z=a.getDimensionSelecteds();a=a.getMeasureSelecteds();1<f.length+r.length+z.length&&(0==k.length&&d.mergeOnlyOneNoDuplicated(k,r),0==k.length&&d.mergeOnlyOneNoDuplicated(k,z));d.mergeAllNoDuplicated(f,r);d.mergeAllNoDuplicated(f,z);d.mergeAllNoDuplicated(e,h);d.mergeAllNoDuplicated(e,l);d.mergeAllNoDuplicated(e,a);d.patchMark(e,ca.TYPE_LABEL);
d.appendFields(c,f,b.getRowAnalyticalFieldSet());d.appendFields(c,k,b.getColumnAnalyticalFieldSet());d.appendFields(c,e,d.getMarkFieldSet(b))};this.getCardsOperatingPrompt=function(b){var c=null,a=null,e=null;0==b.getRowAnalyticalFieldSet().getCount()+b.getColumnAnalyticalFieldSet().getCount()&&(c=a=ua.get("tryDragTextField","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==d.getMarkFieldSet(b).getCount()&&(e=ua.get("dragNumField","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));
return new Ra(a,c,e)};this.isFieldValid=function(b,c,a){if(c==b.getRowAnalyticalFieldSet()||c==b.getColumnAnalyticalFieldSet()){if(null!=a&&a.isMeasure())return d.setFieldInvalid(a,ua.get("tableRowColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u201c\u8868\u683c\u201d\uff0c\u884c/\u5217\u4e0a\u4e0d\u80fd\u6709\u5ea6\u91cf\u3002")),!1}else if(c==d.getMarkFieldSet(b)){b=!0;for(var e=a=0;e<c.getCount();e++){var f=c.get(e),h=c.getFieldMatchingMarkType(f);f.isDimension()?(d.setFieldInvalid(f,ua.get("tableMarkCardPrompt",
"\u6570\u503c\u533a\u57df\u4e2d\u4e0d\u80fd\u6709\u7ef4\u5ea6\uff0c\u5c1d\u8bd5\u62d6\u5230\u884c/\u5217\u4e0a\u3002")),b=!1):h==ca.TYPE_COLOR&&(a++,1==a?d.setFieldInvalid(f,null):(d.setFieldInvalid(f,ua.get("onlyOneFieldForColor","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u989c\u8272\u3002")),b=!1))}return b}return!0};this.isCellMeasurable=function(b){return!0};this.getSuggestedSize=function(b,c){b=new ta;b.setSize(120,24);return b};this.createJsonCellParser=function(){return new n};
this.exhibit=function(b,c,a,e,f,h,k){e&&(b.onmousemove=function(l){k.setPosition(l.clientX,l.clientY);l=[];for(var r=h.getDisplayShedTitle(),z=0;z<r.length;z++){var D=r[z];l.push({key:D.key,value:D.value})}l.push({key:e.title,value:e.text});e.colorTitle&&e.colorText&&l.push({key:e.colorTitle,value:e.colorText});k.setContent(l);b.style.cursor="pointer"},$(b).on("mouseleave",function(l){k.hide()}),b.onclick=function(l){k.toggleMenu(l.clientX,l.clientY);l=h.getJsonForDetailSearching();k.setDetailSearchingParam(l)})}}
function P(){function n(){eb.call(this);var b=this;this.parseExhibitModel=function(c){if(c){var a=b.getCommonModel();if(a){var e=a.colorTitle;e&&(c.colorTitle=e);(a=a.sizeTitle)&&(c.sizeTitle=a)}}return c}}sa.call(this,Oa.CHARTTYPE_HEATMAP);var d=this.protectedMethod;d.setIconFileName("chart_heatmap");d.setText(ua.get("heatmap","\u70ed\u529b\u56fe"));this.getSuppliedMarks=function(){return[ca.TYPE_SIZE,ca.TYPE_COLOR]};this.smartDropField=function(b,c,a,e){b=d.getMarkFieldSet(b);c==b&&(a.isMeasure()?
(c=new ka(b),d.isMarkExist(b,ca.TYPE_SIZE)?d.isMarkExist(b,ca.TYPE_COLOR)?c.setValue(a,ca.TYPE_SIZE):c.setValue(a,ca.TYPE_COLOR):c.setValue(a,ca.TYPE_SIZE)):(c=new ka(b),c.setValue(a,ca.TYPE_SIZE)),e.perform(c))};this.smartChangeModel=function(b,c,a){var e=d.washFields(c,b,[[ca.TYPE_SIZE,oa.ROLE_MEASURE],[ca.TYPE_COLOR,oa.ROLE_MEASURE]]),f=e.getRowDimensionWrap(),h=e.getRowMesaureWrap(),k=e.getColumnDimensionWrap(),l=e.getColumnMesaureWrap(),r=e.getMarkDimensionWrap();e=e.getMarkMesaureWrap();var z=
a.getDimensionSelecteds();a=a.getMeasureSelecteds();1<f.length+r.length+z.length&&(0==k.length&&d.mergeOnlyOneNoDuplicated(k,r),0==k.length&&d.mergeOnlyOneNoDuplicated(k,z));d.mergeAllNoDuplicated(f,r);d.mergeAllNoDuplicated(f,z);d.mergeAllNoDuplicated(e,h);d.mergeAllNoDuplicated(e,l);d.mergeAllNoDuplicated(e,a);d.searchMark(e,ca.TYPE_SIZE)||d.patchMark(e,ca.TYPE_SIZE,!0);d.searchMark(e,ca.TYPE_COLOR)||d.patchMark(e,ca.TYPE_COLOR,!0);d.patchMark(e,ca.TYPE_SIZE);d.appendFields(c,f,b.getRowAnalyticalFieldSet());
d.appendFields(c,k,b.getColumnAnalyticalFieldSet());d.appendFields(c,e,d.getMarkFieldSet(b))};this.getCardsOperatingPrompt=function(b){var c=null,a=null,e=null;0==b.getRowAnalyticalFieldSet().getCount()+b.getColumnAnalyticalFieldSet().getCount()&&(c=a=ua.get("tryDragTextField","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==d.getMarkFieldSet(b).getCount()&&(e=ua.get("dragNumField","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return new Ra(a,c,e)};
this.isFieldValid=function(b,c,a){if(c==b.getRowAnalyticalFieldSet()||c==b.getColumnAnalyticalFieldSet()){if(null!=a&&a.isMeasure())return d.setFieldInvalid(a,ua.get("heatmapRowColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u201c\u70ed\u529b\u56fe\u201d\uff0c\u884c/\u5217\u4e0a\u4e0d\u80fd\u6709\u5ea6\u91cf\u3002")),!1}else if(c==d.getMarkFieldSet(b)){b=!0;for(var e=a=0,f=0;f<c.getCount();f++){var h=c.get(f),k=c.getFieldMatchingMarkType(h);h.isDimension()?(d.setFieldInvalid(h,ua.get("heatmapMarkCardPrompt",
"\u6570\u503c\u533a\u57df\u4e2d\u4e0d\u80fd\u6709\u7ef4\u5ea6\uff0c\u5c1d\u8bd5\u62d6\u5230\u884c/\u5217\u4e0a\u3002")),b=!1):k==ca.TYPE_COLOR?(a++,1==a?d.setFieldInvalid(h,null):(d.setFieldInvalid(h,ua.get("onlyOneFieldForColor","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u989c\u8272\u3002")),b=!1)):k==ca.TYPE_SIZE&&(e++,1==e?d.setFieldInvalid(h,null):(d.setFieldInvalid(h,ua.get("onlyOneFieldForSize","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u8868\u793a\u5927\u5c0f\u3002")),b=
!1))}return b}return!0};this.isCellMeasurable=function(b){return!0};this.getSuggestedSize=function(b,c){b=new ta;b.setSize(60,30);return b};this.createJsonCellParser=function(){return new n};this.exhibit=function(b,c,a,e,f,h,k){if(e){var l=new V;l.setColor(e.color);if("shape"==f.getSecondaryType()){var r=parseFloat(e.size);r=parseInt(.8*Math.min(c,a)*r);l.setDiameter(r);l.drawShape(b,c,a)}else"color"==f.getSecondaryType()&&l.drawColorRect(b,c,a);l.setClickListener(function(D,I,J){d.getCommonClickListener(h,
k,l)(D,I,null)});l.setTooltipsListener(function(D,I,J){if(D&&h){k.setPosition(D,I);D=h.getDisplayShedTitle();for(I=0;I<D.length;I++){var Z=D[I];J.push({key:Z.key,value:Z.value})}"shape"==f.getSecondaryType()&&J.push({key:e.sizeTitle,value:e.sizeText});e.colorTitle&&e.colorText&&J.push({key:e.colorTitle,value:e.colorText});k.setContent(J);b.style.cursor="pointer";k.hookHideAnnouncer(z)}else k.hide()});var z=function(){l.setMouseStateLocked(!1)}}}}function y(){function n(){x.call(this);var c=this.protectedMethod;
this.parseExhibitModel=function(a){return[c.parseChartModelImpl(a?a.pie:null),a]}}sa.call(this,Oa.CHARTTYPE_PIE);var d=this.protectedMethod;d.setIconFileName("chart_pie");d.setText(ua.get("chartPie","\u997c\u56fe"));this.getSuppliedMarks=function(){return[ca.TYPE_ANGLE,ca.TYPE_COLOR,ca.TYPE_SIZE]};this.smartDropField=function(c,a,e,f){c=d.getMarkFieldSet(c);a==c&&(a=new ka(c),e.isDimension()?a.setValue(e,ca.TYPE_COLOR):d.isMarkExist(c,ca.TYPE_ANGLE)?a.setValue(e,ca.TYPE_SIZE):a.setValue(e,ca.TYPE_ANGLE),
f.perform(a))};this.smartChangeModel=function(c,a,e){var f=d.washFields(a,c,[[ca.TYPE_COLOR,oa.ROLE_DIMENSION],[ca.TYPE_ANGLE,oa.ROLE_MEASURE],[ca.TYPE_SIZE,oa.ROLE_MEASURE]]),h=f.getRowDimensionWrap(),k=f.getRowMesaureWrap(),l=f.getColumnDimensionWrap(),r=f.getColumnMesaureWrap(),z=f.getMarkDimensionWrap();f=f.getMarkMesaureWrap();var D=e.getDimensionSelecteds();e=e.getMeasureSelecteds();var I=d.pickupMark(z,ca.TYPE_COLOR);I||(I=[],0==I.length&&d.mergeOnlyOneNoDuplicated(I,z),0==I.length&&d.mergeOnlyOneNoDuplicated(I,
D),0==I.length&&d.mergeOnlyOneNoDuplicated(I,h),0==I.length&&d.mergeOnlyOneNoDuplicated(I,l),I=0==I.length?null:new Ba(I[0].getField(),ca.TYPE_COLOR));1<h.length+z.length+D.length&&(0==l.length&&d.mergeOnlyOneNoDuplicated(l,z),0==l.length&&d.mergeOnlyOneNoDuplicated(l,D));d.mergeAllNoDuplicated(h,z);d.mergeAllNoDuplicated(h,D);d.mergeAllNoDuplicated(f,k);d.mergeAllNoDuplicated(f,r);d.mergeAllNoDuplicated(f,e);d.searchMark(f,ca.TYPE_ANGLE)||d.patchMark(f,ca.TYPE_ANGLE,!0);d.patchMark(f,ca.TYPE_SIZE);
d.searchMark(f,ca.TYPE_ANGLE)||(k=d.searchMark(f,ca.TYPE_SIZE))&&k.setExtendInfo(ca.TYPE_ANGLE);d.patchMark(z,ca.TYPE_COLOR);d.appendFields(a,h,c.getRowAnalyticalFieldSet());d.appendFields(a,l,c.getColumnAnalyticalFieldSet());I&&d.appendFields(a,[I],d.getMarkFieldSet(c));d.appendFields(a,f,d.getMarkFieldSet(c))};this.getCardsOperatingPrompt=function(c){var a=null;0==d.getMarkFieldSet(c).getCount()&&(a=ua.get("dragNumAndTextField","\u5c06\u4e00\u4e2a\u6570\u503c\u5b57\u6bb5\u548c\u4e00\u4e2a\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));
return new Ra(null,null,a)};this.isFieldValid=function(c,a,e){if(a==c.getRowAnalyticalFieldSet()||a==c.getColumnAnalyticalFieldSet()){if(null!=e&&e.isMeasure())return d.setFieldInvalid(e,ua.get("pieRowColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u997c\u56fe\uff0c\u884c/\u5217\u4e0a\u4e0d\u80fd\u6709\u5ea6\u91cf\u3002")),!1}else if(a==d.getMarkFieldSet(c)){c=!0;for(var f=0,h=0,k=0,l=0;l<a.getCount();l++){var r=a.get(l),z=a.getFieldMatchingMarkType(r),D=!0;r.isDimension()&&z!=ca.TYPE_COLOR?
D=!1:r.isMeasure()&&z!=ca.TYPE_ANGLE&&z!=ca.TYPE_SIZE&&(D=!1);D?z==ca.TYPE_COLOR?(f++,1==f?d.setFieldInvalid(r,null):(d.setFieldInvalid(r,ua.get("onlyOneFieldForColor","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u989c\u8272\u3002")),c=!1)):z==ca.TYPE_ANGLE?(h++,1==h?d.setFieldInvalid(r,null):(d.setFieldInvalid(r,ua.get("onlyOneFieldForAngle","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u4f5c\u4e3a\u89d2\u5ea6\u3002")),c=!1)):z==ca.TYPE_SIZE&&(k++,1==k?d.setFieldInvalid(r,null):(d.setFieldInvalid(r,
ua.get("onlyOneFieldForSize","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u8868\u793a\u5927\u5c0f\u3002")),c=!1)):(null!=e&&d.setFieldInvalid(e,ua.get("pieMarkCardPrompt","\u7528\u7ef4\u5ea6\u8868\u793a\u989c\u8272\uff0c\u7528\u5ea6\u91cf\u8868\u793a\u89d2\u5ea6\u3002")),c=!1)}return c}return!0};this.isCellMeasurable=function(c){c=d.getMarkFieldSet(c);return d.isMarkExist(c,ca.TYPE_SIZE)};this.getSuggestedSize=function(c,a){c=new ta;c.setSize(200,200);a.getRowAnalyticalFieldSet().hasAnyDimension()||
(a.getColumnAnalyticalFieldSet().hasAnyDimension()?c.setLeftAxisColumnWidth(50):(c.setLeftAxisColumnWidth(10),c.setTopAxisRowHeight(10)));return c};this.createJsonCellParser=function(){return new n};this.exhibit=function(c,a,e,f,h,k,l){var r=f[0],z=f[1];f=parseInt(.8*Math.min(a,e));var D=z?z.size:null;D&&(D=parseFloat(D),f=parseInt(f*D));D=h.getChartConfig();var I=new ra;I.setModel(r);I.getAttr().setShowDataLabel(h.isShowLabel());I.getAttr().setDataLabelType(b(D.getPieConfig().getLabelType()));I.setDiameter(f);
I.draw(c,a,e);I.setClickListener(function(Z,ia,Ta){var cb=d.getCommonClickListener(k,l,I);0<=Ta?(Ta=[I.getModel().getCategories()[Ta].getExecutableValue()],cb(Z,ia,Ta)):z&&z.sizeTitle&&cb(Z,ia,null)});I.setTooltipsListener(function(Z,ia,Ta){if(Z&&k){l.setPosition(Z,ia);Z=k.getDisplayShedTitle();ia=[];for(var cb=0;cb<Z.length;cb++){var jb=Z[cb];ia.push({key:jb.key,value:jb.value})}if(Ta&&0!=Ta.length)ia=ia.concat(Ta);else if(z&&z.sizeTitle)ia.push({key:z.sizeTitle,value:z.sizeText});else{l.hide();
return}l.setContent(ia);l.hookHideAnnouncer(J)}else l.hide()});var J=function(){I.setMouseStateLocked(!1)}};var b=function(c){var a=0;(c&fb.LABEL_NAME)==fb.LABEL_NAME&&(a|=K.SHOW_LABEL_NAME);(c&fb.LABEL_NUMBER)==fb.LABEL_NUMBER&&(a|=K.SHOW_LABEL_NUMBER);(c&fb.LABEL_PERCENT)==fb.LABEL_PERCENT&&(a|=K.SHOW_LABEL_PERCENT);return a}}function T(){sa.call(this,Oa.CHARTTYPE_LINE);Sa.call(this);var n=this.protectedMethod;n.setIconFileName("chart_line");n.setText(ua.get("chartLine","\u6298\u7ebf\u56fe"));n.setCardsTitle(ua.get("columnCardTitleWithAxis",
"\u5217\uff08\u6a2a\u8f74\uff09"),ua.get("rowCardTitleWithAxis","\u884c\uff08\u7eb5\u8f74\uff09")," ");this.getSuppliedMarks=function(){return[]};this.smartChangeModel=function(d,b,c){var a=n.washFields(b,d,[]),e=a.getRowDimensionWrap(),f=a.getRowMesaureWrap(),h=a.getColumnDimensionWrap(),k=a.getColumnMesaureWrap(),l=a.getMarkDimensionWrap();a=a.getMarkMesaureWrap();var r=c.getDimensionSelecteds();c=c.getMeasureSelecteds();0==h.length&&n.mergeOnlyOneNoDuplicated(h,l,Ka.DT_STRING);0==h.length&&n.mergeOnlyOneNoDuplicated(h,
r,Ka.DT_STRING);0==h.length&&n.mergeOnlyOneNoDuplicated(h,e,Ka.DT_STRING);var z=h.length;h.length==z&&n.mergeOnlyOneNoDuplicated(h,l,Ka.DT_DATE);h.length==z&&n.mergeOnlyOneNoDuplicated(h,r,Ka.DT_DATE);h.length==z&&n.mergeOnlyOneNoDuplicated(h,e,Ka.DT_DATE);n.mergeAllNoDuplicated(e,l);n.mergeAllNoDuplicated(e,r);n.mergeAllNoDuplicated(f,k);n.mergeAllNoDuplicated(f,a);n.mergeAllNoDuplicated(f,c);n.appendFields(b,e,d.getRowAnalyticalFieldSet());n.appendFields(b,f,d.getRowAnalyticalFieldSet());n.appendFields(b,
h,d.getColumnAnalyticalFieldSet())};this.getCardsOperatingPrompt=function(d){var b=null,c=null;0==d.getRowAnalyticalFieldSet().getCount()&&(b=ua.get("dragNumField","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==d.getColumnAnalyticalFieldSet().getCount()&&(c=ua.get("tryDragDateField","\u5c1d\u8bd5\u5c06\u65e5\u671f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return new Ra(c,b,null)};this.isFieldValid=function(d,b,c){if(null==c){var a=0,e=!0;b==d.getRowAnalyticalFieldSet()&&n.lookupMeasures(d.getRowAnalyticalFieldSet(),
function(f){a++;1==a?n.setFieldInvalid(f,null):(n.setFieldInvalid(f,ua.get("chartLineRowCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u6298\u7ebf\u56fe\uff0c\u884c\u4e0a\u53ea\u80fd\u6709\u4e00\u4e2a\u5ea6\u91cf\u3002")),e=!1)});return e}return b==d.getRowAnalyticalFieldSet()?(a=0,e=!0,c.isMeasure()&&n.lookupMeasures(d.getRowAnalyticalFieldSet(),function(f){a++;1==a?n.setFieldInvalid(f,null):(n.setFieldInvalid(f,ua.get("chartLineRowCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u6298\u7ebf\u56fe\uff0c\u884c\u4e0a\u53ea\u80fd\u6709\u4e00\u4e2a\u5ea6\u91cf\u3002")),
e=!1)}),e):b==d.getColumnAnalyticalFieldSet()&&c.isMeasure()?(n.setFieldInvalid(c,ua.get("chartLineColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u6298\u7ebf\u56fe\uff0c\u5217\u4e0a\u4e0d\u80fd\u6709\u5ea6\u91cf\u3002")),!1):!0};this.getSuggestedSize=function(d,b){d=new ta;d.setMinSize(120,80);d.setMaxSize(640,480);d.setLeftAsNumberAxis(!0);d.setLeftAxisColumnWidth(100);d.setTopAsNumberAxis(!1);d.setTopAxisRowHeight(-1);return d};this.createJsonCellParser=function(){return new x};this.exhibit=
function(d,b,c,a,e,f,h){var k=new da;k.setModel(a);k.getAttr().setShowDataLabel(e.isShowLabel());e.isForAxis()?(a=e.getAxisModel(),a.isNumberAxis()?(a=a.getDisplayName(),k.drawNumberAxis(d,b,c,a)):a.isContinueAxis()&&k.drawCategoryAxis(d,b,c)):(k.draw(d,b,c),k.setClickListener(function(l,r,z){0<=z&&(z=[k.getModel().getCategories()[z].getExecutableValue()],n.getCommonClickListener(f,h,k)(l,r,z))}),k.setTooltipsListener(n.getCommonTooltipsListener(f,h,k)))}}function aa(){sa.call(this,Oa.CHARTTYPE_MLINE);
Sa.call(this);var n=this.protectedMethod;n.setIconFileName("chart_mline");n.setText(ua.get("chartMLine","\u591a\u7cfb\u5217\u6298\u7ebf\u56fe"));n.setCardsTitle(ua.get("columnCardTitleWithAxis","\u5217\uff08\u6a2a\u8f74\uff09"),ua.get("rowCardTitleWithAxis","\u884c\uff08\u7eb5\u8f74\uff09"),null);this.getSuppliedMarks=function(){return[ca.TYPE_COLOR]};this.smartDropField=function(d,b,c,a){d=n.getMarkFieldSet(d);b==d&&(b=new ka(d),b.setValue(c,ca.TYPE_COLOR),a.perform(b))};this.smartChangeModel=function(d,
b,c){var a=n.washFields(b,d,[]),e=a.getRowDimensionWrap(),f=a.getRowMesaureWrap(),h=a.getColumnDimensionWrap(),k=a.getColumnMesaureWrap(),l=a.getMarkDimensionWrap(),r=a.getMarkMesaureWrap();a=c.getDimensionSelecteds();c=c.getMeasureSelecteds();0==h.length&&n.mergeOnlyOneNoDuplicated(h,l,Ka.DT_STRING);0==h.length&&n.mergeOnlyOneNoDuplicated(h,a,Ka.DT_STRING);0==h.length&&n.mergeOnlyOneNoDuplicated(h,e,Ka.DT_STRING);var z=h.length;h.length==z&&n.mergeOnlyOneNoDuplicated(h,l,Ka.DT_DATE);h.length==z&&
n.mergeOnlyOneNoDuplicated(h,a,Ka.DT_DATE);h.length==z&&n.mergeOnlyOneNoDuplicated(h,e,Ka.DT_DATE);n.mergeAllNoDuplicated(f,k);n.mergeAllNoDuplicated(f,r);n.mergeAllNoDuplicated(f,c);if(1==f.length){var D=n.pickupMark(l,ca.TYPE_COLOR);D||(k=[],0==k.length&&n.mergeOnlyOneNoDuplicated(k,l),0==k.length&&n.mergeOnlyOneNoDuplicated(k,a),0==k.length&&n.mergeOnlyOneNoDuplicated(k,e),0==k.length&&1<h.length&&n.mergeOnlyOneNoDuplicated(k,h,Ka.DT_STRING),D=0==k.length?null:new Ba(k[0].getField(),ca.TYPE_COLOR))}n.mergeAllNoDuplicated(e,
l);n.mergeAllNoDuplicated(e,a);n.appendFields(b,e,d.getRowAnalyticalFieldSet());n.appendFields(b,f,d.getRowAnalyticalFieldSet());n.appendFields(b,h,d.getColumnAnalyticalFieldSet());D&&n.appendFields(b,[D],n.getMarkFieldSet(d))};this.getCardsOperatingPrompt=function(d){var b=null,c=null,a=null;0==d.getRowAnalyticalFieldSet().getCount()&&(b=ua.get("dragNumField","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==d.getColumnAnalyticalFieldSet().getCount()&&(c=ua.get("tryDragDateField",
"\u5c1d\u8bd5\u5c06\u65e5\u671f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==n.getMarkFieldSet(d).getCount()&&(a=ua.get("tryDragTextFieldAsSeries","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u4f5c\u4e3a\u7cfb\u5217\u3002"));return new Ra(c,b,a)};this.isFieldValid=function(d,b,c){if(null==c)if(b==d.getRowAnalyticalFieldSet()){if(b=n.getMarkFieldSet(d),n.isMarkExist(b,ca.TYPE_COLOR)){var a=0;n.lookupMeasures(d.getRowAnalyticalFieldSet(),function(h){a++;1==a&&n.setFieldInvalid(h,
null)});if(1==a){var e=0;d=n.getMarkFieldSet(d);n.lookupMarks(d,ca.TYPE_COLOR,function(h){h.isDimension()&&(e++,1==e&&n.setFieldInvalid(h,null))})}}}else b==n.getMarkFieldSet(d)&&(e=0,n.lookupMarks(b,ca.TYPE_COLOR,function(h){h.isDimension()&&(e++,1==e&&n.setFieldInvalid(h,null))}),0==e&&n.lookupMeasures(d.getRowAnalyticalFieldSet(),function(h){n.setFieldInvalid(h,null)}));else{if(b==d.getRowAnalyticalFieldSet()){a=0;var f=!0;b=n.getMarkFieldSet(d);n.isMarkExist(b,ca.TYPE_COLOR)&&n.lookupMeasures(d.getRowAnalyticalFieldSet(),
function(h){a++;1==a?n.setFieldInvalid(h,null):(n.setFieldInvalid(h,ua.get("seriesConflictPrompt","\u5df2\u4f7f\u7528\u7ef4\u5ea6\u503c\u8868\u793a\u591a\u4e2a\u989c\u8272\uff08\u7cfb\u5217\uff09\uff0c\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u591a\u4e2a\u5ea6\u91cf\u3002")),f=!1)});return f}if(b==d.getColumnAnalyticalFieldSet()){if(c.isMeasure())return n.setFieldInvalid(c,ua.get("chartMLineColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u591a\u7cfb\u5217\u6298\u7ebf\u56fe\uff0c\u5217\u4e0a\u4e0d\u80fd\u6709\u5ea6\u91cf\u3002")),
!1}else if(b==n.getMarkFieldSet(d))return e=0,f=!0,n.lookupMarks(b,ca.TYPE_COLOR,function(h){h.isMeasure()?(n.setFieldInvalid(h,ua.get("useDimensionForColor","\u7528\u7ef4\u5ea6\u8868\u793a\u989c\u8272\u3002")),f=!1):(e++,1==e?n.setFieldInvalid(h,null):(n.setFieldInvalid(h,ua.get("onlyOneFieldForColor","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u989c\u8272\u3002")),f=!1))}),0<e&&(a=0,n.lookupMeasures(d.getRowAnalyticalFieldSet(),function(h){a++;1<a&&(n.setFieldInvalid(h,ua.get("seriesConflictPrompt",
"\u5df2\u4f7f\u7528\u7ef4\u5ea6\u503c\u8868\u793a\u591a\u4e2a\u989c\u8272\uff08\u7cfb\u5217\uff09\uff0c\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u591a\u4e2a\u5ea6\u91cf\u3002")),f=!1)})),f}return!0};this.getSuggestedSize=function(d,b){d=new ta;d.setMinSize(120,80);d.setMaxSize(640,480);d.setLeftAsNumberAxis(!0);d.setLeftAxisColumnWidth(100);d.setTopAsNumberAxis(!1);d.setTopAxisRowHeight(-1);return d};this.createJsonCellParser=function(){return new x};this.exhibit=function(d,b,c,a,e,f,h){var k=new da;k.setModel(a);
k.getAttr().setShowDataLabel(e.isShowLabel());e.isForAxis()?(a=e.getAxisModel(),a.isNumberAxis()?(a=a.getDisplayName(),k.drawNumberAxis(d,b,c,a)):a.isContinueAxis()&&k.drawCategoryAxis(d,b,c)):(k.draw(d,b,c),k.setClickListener(function(l,r,z){0<=z&&(z=[k.getModel().getCategories()[z].getExecutableValue()],n.getCommonClickListener(f,h,k)(l,r,z))}),k.setTooltipsListener(n.getCommonTooltipsListener(f,h,k)))}}function ea(){sa.call(this,Oa.CHARTTYPE_AREA);Sa.call(this);var n=this.protectedMethod;n.setIconFileName("chart_area");
n.setText(ua.get("chartArea","\u9762\u79ef\u56fe"));n.setCardsTitle(ua.get("columnCardTitleWithAxis","\u5217\uff08\u6a2a\u8f74\uff09"),ua.get("rowCardTitleWithAxis","\u884c\uff08\u7eb5\u8f74\uff09"),null);this.getSuppliedMarks=function(){return[ca.TYPE_COLOR]};this.smartDropField=function(d,b,c,a){d=n.getMarkFieldSet(d);b==d&&(b=new ka(d),b.setValue(c,ca.TYPE_COLOR),a.perform(b))};this.smartChangeModel=function(d,b,c){var a=n.washFields(b,d,[]),e=a.getRowDimensionWrap(),f=a.getRowMesaureWrap(),h=
a.getColumnDimensionWrap(),k=a.getColumnMesaureWrap(),l=a.getMarkDimensionWrap(),r=a.getMarkMesaureWrap();a=c.getDimensionSelecteds();c=c.getMeasureSelecteds();0==h.length&&n.mergeOnlyOneNoDuplicated(h,l,Ka.DT_STRING);0==h.length&&n.mergeOnlyOneNoDuplicated(h,a,Ka.DT_STRING);0==h.length&&n.mergeOnlyOneNoDuplicated(h,e,Ka.DT_STRING);var z=h.length;h.length==z&&n.mergeOnlyOneNoDuplicated(h,l,Ka.DT_DATE);h.length==z&&n.mergeOnlyOneNoDuplicated(h,a,Ka.DT_DATE);h.length==z&&n.mergeOnlyOneNoDuplicated(h,
e,Ka.DT_DATE);n.mergeAllNoDuplicated(f,k);n.mergeAllNoDuplicated(f,r);n.mergeAllNoDuplicated(f,c);k=n.pickupMark(l,ca.TYPE_COLOR);k||(k=[],0==k.length&&n.mergeOnlyOneNoDuplicated(k,l),0==k.length&&n.mergeOnlyOneNoDuplicated(k,a),0==k.length&&n.mergeOnlyOneNoDuplicated(k,e),0==k.length&&1<h.length&&n.mergeOnlyOneNoDuplicated(k,h,Ka.DT_STRING),k=0==k.length?null:new Ba(k[0].getField(),ca.TYPE_COLOR));n.mergeAllNoDuplicated(e,l);n.mergeAllNoDuplicated(e,a);n.appendFields(b,e,d.getRowAnalyticalFieldSet());
n.appendFields(b,f,d.getRowAnalyticalFieldSet());n.appendFields(b,h,d.getColumnAnalyticalFieldSet());k&&n.appendFields(b,[k],n.getMarkFieldSet(d))};this.getCardsOperatingPrompt=function(d){var b=null,c=null,a=null;0==d.getRowAnalyticalFieldSet().getCount()&&(b=ua.get("dragNumField","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==d.getColumnAnalyticalFieldSet().getCount()&&(c=ua.get("tryDragDateField","\u5c1d\u8bd5\u5c06\u65e5\u671f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));
0==n.getMarkFieldSet(d).getCount()&&(a=ua.get("tryDragTextFieldAsSeries","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u4f5c\u4e3a\u7cfb\u5217\u3002"));return new Ra(c,b,a)};this.isFieldValid=function(d,b,c){if(null==c){if(b==d.getRowAnalyticalFieldSet()){if(b=n.getMarkFieldSet(d),n.isMarkExist(b,ca.TYPE_COLOR)){var a=0;n.lookupMeasures(d.getRowAnalyticalFieldSet(),function(h){a++;1==a&&n.setFieldInvalid(h,null)});if(1==a){var e=0;d=n.getMarkFieldSet(d);n.lookupMarks(d,ca.TYPE_COLOR,
function(h){h.isDimension()&&(e++,1==e&&n.setFieldInvalid(h,null))})}}}else b==n.getMarkFieldSet(d)&&(e=0,n.lookupMarks(b,ca.TYPE_COLOR,function(h){h.isDimension()&&(e++,1==e&&n.setFieldInvalid(h,null))}),0==e&&n.lookupMeasures(d.getRowAnalyticalFieldSet(),function(h){n.setFieldInvalid(h,null)}));return!0}if(b==d.getRowAnalyticalFieldSet()){a=0;var f=!0;b=n.getMarkFieldSet(d);n.isMarkExist(b,ca.TYPE_COLOR)&&n.lookupMeasures(d.getRowAnalyticalFieldSet(),function(h){a++;1==a?n.setFieldInvalid(h,null):
(n.setFieldInvalid(h,ua.get("seriesConflictPrompt","\u5df2\u4f7f\u7528\u7ef4\u5ea6\u503c\u8868\u793a\u591a\u4e2a\u989c\u8272\uff08\u7cfb\u5217\uff09\uff0c\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u591a\u4e2a\u5ea6\u91cf\u3002")),f=!1)});return f}if(b==d.getColumnAnalyticalFieldSet())return c.isMeasure()?(n.setFieldInvalid(c,ua.get("chartAreaColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u9762\u79ef\u56fe\uff0c\u5217\u4e0a\u4e0d\u80fd\u6709\u5ea6\u91cf\u3002")),!1):!0;if(b==n.getMarkFieldSet(d))return e=
0,f=!0,n.lookupMarks(b,ca.TYPE_COLOR,function(h){h.isMeasure()?(n.setFieldInvalid(h,ua.get("useDimensionForColor","\u7528\u7ef4\u5ea6\u8868\u793a\u989c\u8272\u3002")),f=!1):(e++,1==e?n.setFieldInvalid(h,null):(n.setFieldInvalid(h,ua.get("onlyOneFieldForColor","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u989c\u8272\u3002")),f=!1))}),0<e&&(a=0,n.lookupMeasures(d.getRowAnalyticalFieldSet(),function(h){a++;1<a&&(n.setFieldInvalid(h,ua.get("seriesConflictPrompt","\u5df2\u4f7f\u7528\u7ef4\u5ea6\u503c\u8868\u793a\u591a\u4e2a\u989c\u8272\uff08\u7cfb\u5217\uff09\uff0c\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u591a\u4e2a\u5ea6\u91cf\u3002")),
f=!1)})),f};this.getSuggestedSize=function(d,b){d=new ta;d.setMinSize(120,90);d.setMaxSize(640,480);d.setLeftAsNumberAxis(!0);d.setLeftAxisColumnWidth(100);d.setTopAsNumberAxis(!1);d.setTopAxisRowHeight(-1);return d};this.createJsonCellParser=function(){return new x};this.exhibit=function(d,b,c,a,e,f,h){var k=new va;k.setModel(a);k.getAttr().setShowDataLabel(e.isShowLabel());e.isForAxis()?(a=e.getAxisModel(),a.isNumberAxis()?(a=a.getDisplayName(),k.drawNumberAxis(d,b,c,a)):a.isContinueAxis()&&k.drawCategoryAxis(d,
b,c)):(k.draw(d,b,c),k.setClickListener(function(l,r,z){0<=z&&(z=[k.getModel().getCategories()[z].getExecutableValue()],n.getCommonClickListener(f,h,k)(l,r,z))}),k.setTooltipsListener(n.getCommonTooltipsListener(f,h,k)))}}function wa(){sa.call(this,Oa.CHARTTYPE_BAR);var n=this.protectedMethod;n.setIconFileName("chart_bar");n.setText(ua.get("chartBar","\u67f1\u5f62\u56fe"));n.setCardsTitle(ua.get("columnCardTitleWithAxis","\u5217\uff08\u6a2a\u8f74\uff09"),ua.get("rowCardTitleWithAxis","\u884c\uff08\u7eb5\u8f74\uff09"),
" ");this.getSuppliedMarks=function(){return[]};this.smartChangeModel=function(d,b,c){var a=n.washFields(b,d,[]),e=a.getRowDimensionWrap(),f=a.getRowMesaureWrap(),h=a.getColumnDimensionWrap(),k=a.getColumnMesaureWrap(),l=a.getMarkDimensionWrap();a=a.getMarkMesaureWrap();var r=c.getDimensionSelecteds();c=c.getMeasureSelecteds();0==h.length&&n.mergeOnlyOneNoDuplicated(h,l);0==h.length&&n.mergeOnlyOneNoDuplicated(h,r);0==h.length&&n.mergeOnlyOneNoDuplicated(h,e);n.mergeAllNoDuplicated(e,l);n.mergeAllNoDuplicated(e,
r);n.mergeAllNoDuplicated(f,k);n.mergeAllNoDuplicated(f,a);n.mergeAllNoDuplicated(f,c);n.appendFields(b,e,d.getRowAnalyticalFieldSet());n.appendFields(b,f,d.getRowAnalyticalFieldSet());n.appendFields(b,h,d.getColumnAnalyticalFieldSet())};this.getCardsOperatingPrompt=function(d){var b=null,c=null;0==d.getRowAnalyticalFieldSet().getCount()&&(b=ua.get("dragNumField","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==d.getColumnAnalyticalFieldSet().getCount()&&(c=ua.get("tryDragTextField",
"\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return new Ra(c,b,null)};this.isFieldValid=function(d,b,c){var a=!0,e=n.isMeasureExist(d.getRowAnalyticalFieldSet());n.lookupMeasures(d.getColumnAnalyticalFieldSet(),function(f){f==c&&(a=!1);var h=e?ua.get("chartBarRowColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u67f1\u5f62\u56fe\uff0c\u5ea6\u91cf\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u5728\u884c\u3001\u5217\u4e0a\u3002"):null;n.setFieldInvalid(f,h)});return a};this.isCellMeasurable=
function(d){return!0};this.getSuggestedSize=function(d,b){b=new ta;d.isLandscape()?(b.setMinSize(20,100),b.setMaxSize(60,1E3),b.setLeftAsNumberAxis(!0),b.setLeftAxisColumnWidth(100),b.setTopAsNumberAxis(!1),b.setTopAxisRowHeight(60)):(b.setMinSize(140,24),b.setMaxSize(1E3,40),b.setTopAsNumberAxis(!0),b.setTopAxisRowHeight(30),b.setLeftAsNumberAxis(!1),b.setLeftAxisColumnWidth(120));return b};this.createJsonCellParser=function(){return new x};this.exhibit=function(d,b,c,a,e,f,h){var k=e.isLandscape()?
new M:new A;k.setModel(a);k.getAttr().setShowDataLabel(e.isShowLabel());e.isForAxis()?(a=e.getAxisModel().getDisplayName(),k.drawNumberAxis(d,b,c,a)):(k.draw(d,b,c),k.setClickListener(function(l,r,z){n.getCommonClickListener(f,h,k)(l,r,null)}),k.setTooltipsListener(n.getCommonTooltipsListener(f,h,k)))}}function O(){sa.call(this,Oa.CHARTTYPE_STACKBAR);var n=this.protectedMethod;n.setIconFileName("chart_stackbar");n.setText(ua.get("chartStackedBar","\u5806\u79ef\u67f1\u5f62\u56fe"));n.setCardsTitle(ua.get("columnCardTitleWithAxis",
"\u5217\uff08\u6a2a\u8f74\uff09"),ua.get("rowCardTitleWithAxis","\u884c\uff08\u7eb5\u8f74\uff09"),null);this.getSuppliedMarks=function(){return[ca.TYPE_COLOR]};this.smartDropField=function(d,b,c,a){d=n.getMarkFieldSet(d);b==d&&(b=new ka(d),b.setValue(c,ca.TYPE_COLOR),a.perform(b))};this.smartChangeModel=function(d,b,c){var a=n.washFields(b,d,[[ca.TYPE_COLOR,oa.ROLE_DIMENSION]]),e=a.getRowDimensionWrap(),f=a.getRowMesaureWrap(),h=a.getColumnDimensionWrap(),k=a.getColumnMesaureWrap(),l=a.getMarkDimensionWrap();
a=a.getMarkMesaureWrap();var r=c.getDimensionSelecteds();c=c.getMeasureSelecteds();var z=n.pickupMark(l,ca.TYPE_COLOR);z||(z=[],0==z.length&&n.mergeOnlyOneNoDuplicated(z,l),0==z.length&&n.mergeOnlyOneNoDuplicated(z,r),0==z.length&&n.mergeOnlyOneNoDuplicated(z,e),z=0==z.length?null:new Ba(z[0].getField(),ca.TYPE_COLOR));0==h.length&&n.mergeOnlyOneNoDuplicated(h,l);0==h.length&&n.mergeOnlyOneNoDuplicated(h,r);0==h.length&&n.mergeOnlyOneNoDuplicated(h,e);n.mergeAllNoDuplicated(e,l);n.mergeAllNoDuplicated(e,
r);n.mergeAllNoDuplicated(f,k);n.mergeAllNoDuplicated(f,a);n.mergeAllNoDuplicated(f,c);n.appendFields(b,e,d.getRowAnalyticalFieldSet());n.appendFields(b,f,d.getRowAnalyticalFieldSet());n.appendFields(b,h,d.getColumnAnalyticalFieldSet());z&&n.appendFields(b,[z],n.getMarkFieldSet(d))};this.getCardsOperatingPrompt=function(d){var b=null,c=null,a=null;0==d.getRowAnalyticalFieldSet().getCount()&&(b=ua.get("dragNumField","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==d.getColumnAnalyticalFieldSet().getCount()&&
(c=ua.get("tryDragTextField","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==n.getMarkFieldSet(d).getCount()&&(a=ua.get("dragTextField","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return new Ra(c,b,a)};this.isFieldValid=function(d,b,c){if(b==n.getMarkFieldSet(d)){var a=!0,e=0;n.lookupMarks(b,ca.TYPE_COLOR,function(h){h.isMeasure()?(n.setFieldInvalid(h,ua.get("useDimensionForColor","\u7528\u7ef4\u5ea6\u8868\u793a\u989c\u8272\u3002")),a=!1):(e++,
1==e?n.setFieldInvalid(h,null):(n.setFieldInvalid(h,ua.get("onlyOneFieldForColor","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u989c\u8272\u3002")),a=!1))})}else{a=!0;var f=n.isMeasureExist(d.getRowAnalyticalFieldSet());n.lookupMeasures(d.getColumnAnalyticalFieldSet(),function(h){h==c&&(a=!1);var k=f?ua.get("chartStackedBarRowColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u5806\u79ef\u67f1\u5f62\u56fe\uff0c\u5ea6\u91cf\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u5728\u884c\u3001\u5217\u4e0a\u3002"):
null;n.setFieldInvalid(h,k)})}return a};this.isCellMeasurable=function(d){return!0};this.getSuggestedSize=function(d,b){b=new ta;d.isLandscape()?(b.setMinSize(20,100),b.setMaxSize(60,1E3),b.setLeftAsNumberAxis(!0),b.setLeftAxisColumnWidth(100),b.setTopAsNumberAxis(!1),b.setTopAxisRowHeight(60)):(b.setMinSize(140,24),b.setMaxSize(1E3,40),b.setTopAsNumberAxis(!0),b.setTopAxisRowHeight(30),b.setLeftAsNumberAxis(!1),b.setLeftAxisColumnWidth(120));return b};this.createJsonCellParser=function(){return new x};
this.exhibit=function(d,b,c,a,e,f,h){var k=e.isLandscape()?new M:new A;k.setModel(a);k.getAttr().setShowDataLabel(e.isShowLabel());k.setStackMode(!0);e.isForAxis()?(a=e.getAxisModel().getDisplayName(),k.drawNumberAxis(d,b,c,a)):(k.draw(d,b,c),k.setClickListener(function(l,r,z){n.getCommonClickListener(f,h,k)(l,r,null)}),k.setTooltipsListener(n.getCommonTooltipsListener(f,h,k)))}}function fa(){sa.call(this,Oa.CHARTTYPE_TREEMAP);var n=this.protectedMethod;n.setIconFileName("chart_treemap");n.setText(ua.get("chartTreeMap",
"\u6811\u56fe"));this.getSuppliedMarks=function(){return[ca.TYPE_BLANK,ca.TYPE_COLOR,ca.TYPE_SIZE]};this.smartDropField=function(d,b,c,a){d=n.getMarkFieldSet(d);b==d&&(c.isDimension()?(b=new ka(d),n.isMarkExist(d,ca.TYPE_COLOR)?b.setValue(c,ca.TYPE_BLANK):b.setValue(c,ca.TYPE_COLOR),a.perform(b)):c.isMeasure()&&(b=new ka(d),n.isMarkExist(d,ca.TYPE_SIZE)?n.isMarkExist(d,ca.TYPE_COLOR)?b.setValue(c,ca.TYPE_SIZE):b.setValue(c,ca.TYPE_COLOR):b.setValue(c,ca.TYPE_SIZE),a.perform(b)))};this.smartChangeModel=
function(d,b,c){var a=n.washFields(b,d,[[ca.TYPE_COLOR,oa.ROLE_DIMENSION]]),e=a.getRowDimensionWrap(),f=a.getRowMesaureWrap(),h=a.getColumnDimensionWrap(),k=a.getColumnMesaureWrap(),l=a.getMarkDimensionWrap();a=a.getMarkMesaureWrap();var r=c.getDimensionSelecteds();c=c.getMeasureSelecteds();var z=n.pickupMark(a,ca.TYPE_SIZE);if(!z){var D=[];0==D.length&&n.mergeOnlyOneNoDuplicated(D,a);0==D.length&&n.mergeOnlyOneNoDuplicated(D,c);0==D.length&&n.mergeOnlyOneNoDuplicated(D,f);0==D.length&&n.mergeOnlyOneNoDuplicated(D,
k);z=0==D.length?null:new Ba(D[0].getField(),ca.TYPE_SIZE)}D=n.pickupMark(a,ca.TYPE_COLOR);D||(D=[],0==D.length&&n.mergeOnlyOneNoDuplicated(D,a),0==D.length&&n.mergeOnlyOneNoDuplicated(D,c),0==D.length&&n.mergeOnlyOneNoDuplicated(D,f),0==D.length&&n.mergeOnlyOneNoDuplicated(D,k),D=0==D.length?null:new Ba(D[0].getField(),ca.TYPE_COLOR));if(D){var I=n.searchMark(l,ca.TYPE_COLOR);I&&I.setExtendInfo(ca.TYPE_BLANK)}else D=n.pickupMark(l,ca.TYPE_COLOR),D||(D=[],0==D.length&&n.mergeOnlyOneNoDuplicated(D,
l),0==D.length&&n.mergeOnlyOneNoDuplicated(D,r),0==D.length&&n.mergeOnlyOneNoDuplicated(D,e),0==D.length&&n.mergeOnlyOneNoDuplicated(D,h),D=0==D.length?null:new Ba(D[0].getField(),ca.TYPE_COLOR));n.mergeAllNoDuplicated(l,r);n.mergeAllNoDuplicated(a,f);n.mergeAllNoDuplicated(a,k);n.mergeAllNoDuplicated(a,c);n.patchMark(l,ca.TYPE_BLANK);n.patchMark(a,ca.TYPE_SIZE);D&&n.appendFields(b,[D],n.getMarkFieldSet(d));n.appendFields(b,l,n.getMarkFieldSet(d));z&&n.appendFields(b,[z],n.getMarkFieldSet(d));n.appendFields(b,
a,n.getMarkFieldSet(d));n.appendFields(b,e,d.getRowAnalyticalFieldSet());n.appendFields(b,h,d.getColumnAnalyticalFieldSet())};this.getCardsOperatingPrompt=function(d){var b=null;0==n.getMarkFieldSet(d).getCount()&&(b=ua.get("dragNumAndTextField","\u5c06\u4e00\u4e2a\u6570\u503c\u5b57\u6bb5\u548c\u4e00\u4e2a\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return new Ra(null,null,b)};this.isFieldValid=function(d,b,c){if(b==d.getRowAnalyticalFieldSet()||b==d.getColumnAnalyticalFieldSet()){if(null!=
c&&c.isMeasure())return n.setFieldInvalid(c,ua.get("chartTreeMapRowColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u6811\u56fe\uff0c\u884c/\u5217\u4e0a\u4e0d\u80fd\u6709\u5ea6\u91cf\u3002")),!1}else if(b==n.getMarkFieldSet(d)){var a=!0,e=0;n.lookupMarks(b,ca.TYPE_COLOR,function(h){e++;1==e?n.setFieldInvalid(h,null):(n.setFieldInvalid(h,ua.get("onlyOneFieldForColor","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u989c\u8272\u3002")),a=!1)});var f=0;n.lookupMarks(b,ca.TYPE_SIZE,
function(h){h.isDimension()?(n.setFieldInvalid(h,ua.get("useMeasureForSize","\u7528\u5ea6\u91cf\u8868\u793a\u5927\u5c0f\u3002")),a=!1):(f++,1==f?n.setFieldInvalid(h,null):(n.setFieldInvalid(h,ua.get("oneOneFieldForSize","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u5927\u5c0f\u3002")),a=!1))});n.lookupMarks(b,ca.TYPE_BLANK,function(h){h.isMeasure()&&(n.setFieldInvalid(h,ua.get("useMeasureForSize","\u7528\u5ea6\u91cf\u8868\u793a\u5927\u5c0f\u3002")),a=!1)});return a}return!0};this.isCellMeasurable=
function(d){return!0};this.getSuggestedSize=function(d,b){d=new ta;d.setMinSize(120,90);d.setMaxSize(720,540);d.setWidthHeightRatio(4/3);b.getRowAnalyticalFieldSet().hasAnyDimension()||(b.getColumnAnalyticalFieldSet().hasAnyDimension()?d.setLeftAxisColumnWidth(50):(d.setLeftAxisColumnWidth(10),d.setTopAxisRowHeight(10)));return d};this.createJsonCellParser=function(){return new ha};this.exhibit=function(d,b,c,a,e,f,h){var k=a[0];a=(a=a[1])?a.size:null;var l=1;a&&(l*=parseFloat(a));b=Math.max(0,parseInt(b*
Math.sqrt(l))-4);c=Math.max(0,parseInt(c*Math.sqrt(l))-3);var r=new za;r.setModel(k);r.getAttr().setShowDataLabel(e.isShowLabel());r.getAttr().setIgnoreNegative(e.getChartConfig().getRectTreeConfig().isHideNegative());r.draw(d,b,c);r.setClickListener(function(z,D,I){if(I){for(var J=[],Z=k.getRoot(),ia=0;ia<I.length;ia++)Z=Z.getChild(I[ia]),J.push(Z.getExecutableValue());n.getCommonClickListener(f,h,r)(z,D,J)}});r.setTooltipsListener(n.getCommonTooltipsListener(f,h,r))}}function La(){sa.call(this,
Oa.CHARTTYPE_SCATTER);var n=this.protectedMethod;n.setIconFileName("chart_scatter");n.setText(ua.get("chartScatter","\u6563\u70b9/\u6c14\u6ce1\u56fe"));n.setCardsTitle(ua.get("columnCardTitleWithAxis","\u5217\uff08\u6a2a\u8f74\uff09"),ua.get("rowCardTitleWithAxis","\u884c\uff08\u7eb5\u8f74\uff09"),null);this.getSuppliedMarks=function(){return[ca.TYPE_BLANK,ca.TYPE_COLOR,ca.TYPE_SIZE]};this.smartDropField=function(b,c,a,e){b=n.getMarkFieldSet(b);c==b&&(a.isMeasure()?(c=new ka(b),c.setValue(a,ca.TYPE_SIZE)):
(c=new ka(b),n.isMarkExist(b,ca.TYPE_BLANK)?c.setValue(a,ca.TYPE_COLOR):c.setValue(a,ca.TYPE_BLANK)),e.perform(c))};this.smartChangeModel=function(b,c,a){var e=n.washFields(c,b,[[ca.TYPE_BLANK,oa.ROLE_DIMENSION],[ca.TYPE_COLOR,oa.ROLE_DIMENSION],[ca.TYPE_SIZE,oa.ROLE_MEASURE]]),f=e.getRowDimensionWrap(),h=e.getRowMesaureWrap(),k=e.getColumnDimensionWrap(),l=e.getColumnMesaureWrap(),r=e.getMarkDimensionWrap();e=e.getMarkMesaureWrap();var z=a.getDimensionSelecteds();a=a.getMeasureSelecteds();0==h.length&&
n.mergeOnlyOneNoDuplicated(h,a);0==l.length&&n.mergeOnlyOneNoDuplicated(l,a);0==h.length&&1<l.length&&n.mergeOnlyOneNoDuplicated(h,l);0==l.length&&1<h.length&&n.mergeOnlyOneNoDuplicated(l,h);0==h.length&&n.mergeOnlyOneNoDuplicated(h,e);for(0==l.length&&n.mergeOnlyOneNoDuplicated(l,e);1<h.length;)n.mergeOnlyOneNoDuplicated(e,h);for(;1<l.length;)n.mergeOnlyOneNoDuplicated(e,l);n.mergeAllNoDuplicated(e,a);n.patchMark(e,ca.TYPE_SIZE);2>r.length&&n.mergeOnlyOneNoDuplicated(r,z);2>r.length&&n.mergeOnlyOneNoDuplicated(r,
z);2>r.length&&n.mergeOnlyOneNoDuplicated(r,k);2>r.length&&n.mergeOnlyOneNoDuplicated(r,f);2>r.length&&n.mergeOnlyOneNoDuplicated(r,k);2>r.length&&n.mergeOnlyOneNoDuplicated(r,f);n.patchMark(r,ca.TYPE_BLANK,!0);n.patchMark(r,ca.TYPE_COLOR);n.mergeAllNoDuplicated(f,z);n.appendFields(c,f,b.getRowAnalyticalFieldSet());n.appendFields(c,h,b.getRowAnalyticalFieldSet());n.appendFields(c,k,b.getColumnAnalyticalFieldSet());n.appendFields(c,l,b.getColumnAnalyticalFieldSet());n.appendFields(c,r,n.getMarkFieldSet(b));
n.appendFields(c,e,n.getMarkFieldSet(b))};this.getCardsOperatingPrompt=function(b){var c=null,a=null,e=null;0==b.getRowAnalyticalFieldSet().getCount()&&(c=ua.get("dragNumField","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==b.getColumnAnalyticalFieldSet().getCount()&&(a=ua.get("dragNumField","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));0==n.getMarkFieldSet(b).getCount()&&(e=ua.get("dragTextField","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));
return new Ra(a,c,e)};this.isFieldValid=function(b,c,a){if(c==b.getRowAnalyticalFieldSet()||c==b.getColumnAnalyticalFieldSet()){var e=0,f=!0;(null==a||a.isMeasure())&&n.lookupMeasures(c,function(h){e++;1==e?n.setFieldInvalid(h,null):(n.setFieldInvalid(h,ua.get("chartScatterRowColCardPrompt","\u5f53\u56fe\u8868\u7c7b\u578b\u4e3a\u6563\u70b9\u56fe\uff0c\u8981\u6c42\u884c\u5217\u4e0a\u5404\u6709\u4e14\u53ea\u6709\u4e00\u4e2a\u5ea6\u91cf\u3002")),f=!1)});return f}return c==n.getMarkFieldSet(b)?(f=!0,
f=d(c,oa.ROLE_MEASURE,ca.TYPE_SIZE,ua.get("useMeasureForSize","\u7528\u5ea6\u91cf\u8868\u793a\u5927\u5c0f\u3002"),ua.get("oneOneFieldForSize","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u5927\u5c0f\u3002"))&&f,f=d(c,oa.ROLE_DIMENSION,ca.TYPE_BLANK,ua.get("useMeasureForSize","\u7528\u5ea6\u91cf\u8868\u793a\u5927\u5c0f\u3002"),ua.get("chartScatterMarkCardPrompt","\u53ea\u80fd\u6709\u4e00\u4e2a\u7ef4\u5ea6\u3002"))&&f,f=d(c,oa.ROLE_DIMENSION,ca.TYPE_COLOR,ua.get("useDimensionForColor",
"\u7528\u7ef4\u5ea6\u8868\u793a\u989c\u8272\u3002"),ua.get("onlyOneFieldForColor","\u53ea\u80fd\u6709\u4e00\u4e2a\u5b57\u6bb5\u5c55\u73b0\u4e3a\u989c\u8272\u3002"))&&f):!0};var d=function(b,c,a,e,f){var h=!0,k=0;n.lookupMarks(b,a,function(l){c==oa.ROLE_DIMENSION&&l.isMeasure()||c==oa.ROLE_MEASURE&&l.isDimension()?(n.setFieldInvalid(l,e),h=!1):(k++,1==k?n.setFieldInvalid(l,null):(n.setFieldInvalid(l,f),h=!1))});return h};this.getSuggestedSize=function(b,c){b=new ta;b.setMinSize(120,120);b.setMaxSize(640,
640);b.setLeftAsNumberAxis(!0);b.setLeftAxisColumnWidth(100);b.setTopAsNumberAxis(!0);b.setTopAxisRowHeight(30);return b};this.createJsonCellParser=function(){return new x};this.exhibit=function(b,c,a,e,f,h,k){var l=new Q;l.setModel(e);f.isForAxis()?(e=f.getAxisModel(),f=e.getDisplayName(),e.getDirection()==lb.DIR_TOP?l.drawXAxis(b,c,a,f):e.getDirection()==lb.DIR_LEFT&&l.drawYAxis(b,c,a,f)):(l.draw(b,c,a),l.setClickListener(function(r,z,D){var I=D[0],J=D[1];0>I||0>J||(D=[],I=l.getModel().getCategories()[I].getExecutableValue(),
void 0!==I&&D.push(I),I=l.getModel().getSeries()[J].getExecutableSeriesFieldValue(),void 0!==I&&D.push(I),n.getCommonClickListener(h,k,l)(r,z,D))}),l.setTooltipsListener(n.getCommonTooltipsListener(h,k,l)))}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.longer&&(com.kingdee.bos.qing.longer={});"undefined"==
typeof com.kingdee.bos.qing.longer.ui&&(com.kingdee.bos.qing.longer.ui={});var Ma=com.kingdee.bos.qing.longer.ui,ua,Ka,oa,Oa,ab,ca,fb,lb,gb,qa,Aa,Fa,ka,Na,U,K,V,M,A,ra,da,va,za,Q;(function(){var n=com.kingdee.bos.qing.framework.common;ua=n.MultilanguageManager.createPackageAccessor(Ma);n=com.kingdee.bos.qing.core.model;Ka=n.MetaField;oa=n.AbstractAnalyticalField;n=com.kingdee.bos.qing.longer.model;Oa=n.AnalyticalModel;ab=n.AnalyticalField;ca=n.MarkFieldSet;fb=n.PieChartConfig;lb=n.AxisModel;n=com.kingdee.bos.qing.core.controller;
gb=n.ActionChangeRole;qa=n.ActionChangePartValue;n=com.kingdee.bos.qing.longer.controller;Aa=n.ActionAddAnalyticalField;Fa=n.ActionRemoveAnalyticalField;ka=n.ActionSetMarkType;n=com.kingdee.bos.qing.chart.model;Na=n.NormalChartModel;U=n.TreeChartModel;K=n.PieAttr;n=com.kingdee.bos.qing.chart.longer;V=n.HeatMap;M=n.VerticalBar;A=n.HorizontalBar;ra=n.PieChart;da=n.LineChart;va=n.AreaChart;za=n.RectTreeChart;Q=n.ScatterChart})();Ma.ChartTypeFactory=new function(){var n,d={},b=function(){if(!n){var c=
[X,wa,O,T,aa,ea,y,P,fa,La];n=[];for(var a=0;a<c.length;a++){var e=new c[a];n[a]=e;d[e.getName()]=e}}};this.getInstance=function(c){b();c=d[c];if(!c)throw Error("Unknown display-type name.");return c};this.getAllInstance=function(){b();return n.slice(0)}}})();(function(){function sa(){var U,K,V;this.bindContext=function(d,b,c){U=d;K=b;V=c};this.createLittleBox=function(d,b,c,a){d=M(d,b);A(d,c.getSort(),a,!1);d.on("click",function(e){var f=c.getSort();f=f==ab.SORT_ASC?ab.SORT_DESC:f==ab.SORT_DESC?null:ab.SORT_ASC;var h=new Aa;h.setCaption(ea.get("sortField","\u4fee\u6539#1\u7684\u6392\u5e8f\u65b9\u5f0f\u4e3a\uff1a").replace("#1",c.getComplexText())+ab.sortToString(f));h.setMethod(c.getSort,c.setSort);h.setValue(f);var k=a?K.getColumnAnalyticalFieldSet():
K.getRowAnalyticalFieldSet(),l=a?K.getColumnsSortingLane:K.getRowsSortingLane,r=a?K.setColumnsSortingLane:K.setRowsSortingLane,z=l()?!0:!1;z&&0<k.getDimensionCount()&&n(z,k,c,f)&&(f=new Aa,f.setMethod(l,r),f.setValue(null),l=V.createCompositeAction(),l.setCaption(h.getCaption()),l.appendUnitAction(h),l.appendUnitAction(f),h=l);V.perform(h);e=$(e.currentTarget);A(e,c.getSort(),a,!0)});return d};this.showOperatingTips=function(d,b){d=d.find(".sa-exhibition-sort-box");b?d.addClass("sa-exhibition-sort-box_clickable"):
d.removeClass("sa-exhibition-sort-box_clickable");for(var c=0;c<d.length;c++){var a=$(d[c]),e=a.data("my-sortable-direction");e&&Ka.background(a,b?"icon_sortable-"+e:null)}};var M=function(d,b){var c=sa.BOX_LEN-2,a=$("<div>");a.attr("title",ea.get("sort","\u6392\u5e8f"));a.addClass("sa-exhibition-sort-box");a.css("left",d);a.css("top",b);a.css("width",c);a.css("height",c);return a},A=function(d,b,c,a){c=c?"h":"v";d.data("my-sortable-direction",b?null:c);var e=null;b==ab.SORT_ASC?e="icon_sort-asc-":
b==ab.SORT_DESC?e="icon_sort-desc-":a&&(e="icon_sortable-");Ka.background(d,e?e+c:null)};this.createRowsSortingLittleBox=function(d,b,c){var a=K.getRowsSortingLane();return ra(d,b,a,c)};this.showRowsSortingTips=function(d,b){var c=d.find(".sa-exhibition-sort-box");0==c.length&&(c=ra(d.width(),d.height(),null,b),Ka.background(c,"icon_sortable-v"),d.append(c));c.addClass("sa-exhibition-sort-box_clickable")};this.hideRowsSortingTips=function(d){d=d.find(".sa-exhibition-sort-box");d.removeClass("sa-exhibition-sort-box_clickable");
d.data("my-sortable-direction")&&d.remove()};var ra=function(d,b,c,a){var e=c?c.getOrder():null;d=M(d-sa.BOX_LEN-1,b-sa.BOX_LEN-1);d.addClass("sa-exhibition-sort-box-top");A(d,e,!1,!1);d.on("click",function(f){var h=Q(c,a),k=ab.sortToString(h?h.getOrder():null),l=new Aa;l.setCaption(ea.get("sortRows","\u884c\u6392\u5e8f\uff1a")+k);l.setMethod(K.getRowsSortingLane,K.setRowsSortingLane);l.setValue(h);za(l,null!=h,K.getRowAnalyticalFieldSet());h=(h=K.getRowsSortingLane())?h.getOrder():null;f=$(f.currentTarget);
A(f,h,!1,!0);va(f[0],"sa-exhibition-sort-box-top")});return d};this.createColumnsSortingLittleBox=function(d,b,c){var a=K.getColumnsSortingLane();return da(d,b,a,c)};this.showColumnsSortingLittleBox=function(d,b){var c=d.find(".sa-exhibition-sort-box");0==c.length&&(c=da(d.width(),d.height(),null,b),Ka.background(c,"icon_sortable-h"),d.append(c));c.addClass("sa-exhibition-sort-box_clickable")};this.hideColumnsSortingTips=function(d){d=d.find(".sa-exhibition-sort-box");d.removeClass("sa-exhibition-sort-box_clickable");
d.data("my-sortable-direction")&&d.remove()};var da=function(d,b,c,a){var e=c?c.getOrder():null;d=M(d-sa.BOX_LEN-1,b-sa.BOX_LEN>>1);d.addClass("sa-exhibition-sort-box-left");A(d,e,!0,!1);d.on("click",function(f){var h=Q(c,a),k=ab.sortToString(h?h.getOrder():null),l=new Aa;l.setCaption(ea.get("sortColumns","\u5217\u6392\u5e8f\uff1a")+k);l.setMethod(K.getColumnsSortingLane,K.setColumnsSortingLane);l.setValue(h);za(l,null!=h,K.getColumnAnalyticalFieldSet());h=(h=K.getColumnsSortingLane())?h.getOrder():
null;f=$(f.currentTarget);A(f,h,!0,!0);va(f[0],"sa-exhibition-sort-box-left")});return d},va=function(d,b){b=U.find("."+b);for(var c=0;c<b.length;c++)d!=b[c]&&$(b[c]).remove()},za=function(d,b,c){b&&0<c.getDimensionCount()&&n(b,c)&&(c=c.get(c.getDimensionCount()-1),b=new Aa,b.setMethod(c.getSort,c.setSort),b.setValue(null),c=V.createCompositeAction(),c.setCaption(d.getCaption()),c.appendUnitAction(d),c.appendUnitAction(b),d=c);V.perform(d)},Q=function(d,b){if(d)if(d=d.getOrder(),d==ab.SORT_ASC){var c=
new lb;c.setOrder(ab.SORT_DESC)}else d==ab.SORT_DESC&&(c=null);else c=new lb,c.setOrder(ab.SORT_ASC);if(c){d=[];for(var a=0;a<b.getExecutableValueItemCount();a++)d.push(b.getItemExecutableValue(a));c.setHeadValue(d);b=b.getMeasureIndex();0<=b&&c.setMeasureIndex(b)}return c},n=function(d,b,c,a){for(var e=!1,f=0,h=b.getDimensionCount();f<h;f++){var k=b.get(f);if(!(f<h-1)||k.isShowSubtotal())if(k==c?!a:!k.getSort()){e=!0;break}}return!e&&d}}function Sa(U){var K=this,V,M;this.getType=function(){return U};
this.setJsonModel=function(A){V=A.title;M=K.protectedParseJson(A)};this.protectedParseJson=function(A){throw Error("Override me.");};this.getModel=function(){return M};this.askHeight=function(){throw Error("Override me.");};this.draw=function(A){throw Error("Override me.");};this.getTitle=function(){return V};this.protectedMethod={createCanvas:function(A,ra,da){var va=aa.createCanvas(),za=$(va);T.layoutCtrl(za,0,0,ra,da);za.appendTo(A);return aa.createContext2d(va,ra,da)}}}function Ba(){Sa.call(this,
Sa.TYPE_SIZE);var U=this.protectedMethod,K,V,M,A;this.setBaseDiameter=function(da){K=da;A&&(A.empty(),ra())};this.protectedParseJson=function(da){V=da.ratios;M=da.texts;return[V,M]};this.askHeight=function(){return 1+20*V.length};this.draw=function(da){A=da;return ra()};var ra=function(){var da=A.innerWidth(),va=A.innerHeight();va=U.createCanvas(A,da,va);(new La).draw(va,K,da,V,M)}}function ja(){Sa.call(this,Sa.TYPE_CONTINUOUS_COLOR);var U=this.protectedMethod,K=this;this.protectedParseJson=function(V){return oa.parseContontinuousColorLegendModel(V)};
this.askHeight=function(){return 40};this.draw=function(V){var M=V.innerWidth(),A=V.innerHeight();V=U.createCanvas(V,M,A);(new Ma).draw(V,M,K.getModel())}}function ta(){Sa.call(this,Sa.TYPE_DISCRETE_COLOR);var U=this.protectedMethod,K=this;this.protectedParseJson=function(V){var M=V.colors,A=V.texts,ra=V.captions;V=V.othersInfo;null!=V&&(M=M.slice(),A=A.slice(),M.push("rgba(0,0,0,0)"),A.push(V),ra&&(ra=ra.slice(),ra.push("")));V=new fa;V.prepare(M,A,ra,0);return V};this.askHeight=function(){return 20*
K.getModel().getItemCount()};this.draw=function(V){var M=K.getModel(),A=V.innerWidth(),ra=V.innerHeight();V=U.createCanvas(V,A,ra);(new ua).draw(V,M)}}function Ra(){var U,K;this.setShedTitleModel=function(V){U=V};this.getShedTitleModel=function(){return U};this.setBizRowIdx=function(V){K=V};this.getBizRowIdx=function(){return K}}function ib(){var U=[],K=[],V=[],M=-1;this.addItem=function(A,ra,da,va){U.push(A);K.push(ra);if(da){var za=new ca;za.asStringValue(da)}else va&&(za=new ca,za.fromJsonObject(va));
V.push(za)};this.addItemForSubtotal=function(){var A=new ca;A.asSubtotal();V.push(A)};this.getItemCount=function(){return U.length};this.getItemTitle=function(A){return U[A]};this.getItemValue=function(A){return K[A]};this.getExecutableValueItemCount=function(){return V.length};this.getItemExecutableValue=function(A){var ra=V[A];ra||(ra=new ca,ra.asStringValue(K[A]));return ra};this.getMeasureIndex=function(){return M};this.setMeasureIndex=function(A){M=A}}function eb(){var U,K;this.combine=function(A,
ra){U=A;K=ra};this.getJsonForDetailSearching=function(A){var ra=V(U),da=V(K);ra={row:ra,column:da};if(A){da=[];for(var va=0;va<A.length;va++){var za=A[va];void 0!==za&&(""===za?(za=new ca,za.asNull(),za=za.toJsonObject()):za={complex:za},da.push(za))}ra.others=da}return ra};var V=function(A){for(var ra=[],da=0,va=A.getItemCount();da<va;da++){var za=A.getItemExecutableValue(da);ra.push(za.toJsonObject())}return ra};this.getDisplayShedTitle=function(){var A={},ra=[];U&&M(U,ra,A);K&&M(K,ra,A);return ra};
var M=function(A,ra,da){for(var va=0,za=A.getItemCount();va<za;va++){var Q=A.getItemTitle(va),n=A.getItemValue(va);da[Q]!==n&&(da[Q]=n,ra.push({key:Q,value:n}))}}}function x(){var U,K,V,M;this.setLeftHeight=function(A){U=A};this.getLeftHeight=function(){return U};this.setLeftWidth=function(A){K=A};this.getLeftWidth=function(){return K};this.setTopHeight=function(A){V=A};this.getTopHeight=function(){return V};this.setTopWidth=function(A){M=A};this.getTopWidth=function(){return M}}function ha(){var U=
!1,K=[],V=!1;this.setHorizontal=function(M){U=M};this.isHorizontal=function(){return U};this.addKey=function(M){K.push(M)};this.setKeys=function(M){K=M};this.getKeys=function(){return K};this.isSameKey=function(M){if(U!=M.isHorizontal())return!1;M=M.getKeys();if(K.length!=M.length)return!1;for(var A=0;A<K.length;A++)if(K[A]!=M[A])return!1;return!0};this.setExpanded=function(M){V=M};this.isExpanded=function(){return V};this.fromJsonObject=function(M){U=M.horizontal?!0:!1;V=M.expanded?!0:!1;(M=M.keys)&&
(K=M.split(ha.SEPARATER))};this.toJsonObject=function(){var M={};U&&(M.horizontal=!0);V&&(M.expanded=!0);M.keys=K.join(ha.SEPARATER);return M}}function X(){var U,K,V,M,A,ra;this.setContent=function(da){throw Error("Override");};this.setPosition=function(da,va){throw Error("Override");};this.hide=function(da){throw Error("Override");};this.toggleMenu=function(da,va){};this.destroy=function(){};this.setDetailSearchingParam=function(da){U=da};this.setDetailShowedImpl=function(da,va){K=da;V=va};this.setLinkageImpl=
function(da,va){M=da;A=va};this.hookHideAnnouncer=function(da){ra&&ra!=da&&ra();ra=da};this.protectedMethod={checkShowDetailAllowed:function(da){K?K(function(va){da(va)}):da(!0)},showDetail:function(){V(U)},checkLinkageAllowed:function(){return M()},jumpToBizUi:function(){A(U)},fireHideAnnouncer:function(){ra&&ra();ra=null}}}function P(){X.call(this);var U=this,K=this.protectedMethod,V,M,A,ra,da,va,za,Q=!1,n=!1;this.destroy=function(){V&&V.remove()};this.setPosition=function(k,l){V||d();c(!0);var r=
!0;e()&&(f(k,l)?r=!1:a(!1));if(r){var z=V.width();r=V.height();var D=document.body.clientHeight;k+15+z+25<document.body.clientWidth?(Q=!1,k+=15):(Q=!0,k=k-15-z);l+15+r+25<D?(n=!1,l+=15):(n=!0,l=l-15-r);V.css({left:k,top:l})}};this.hide=function(k){!V||!k&&e()||(c(!1),a(!1))};this.setContent=function(k){if(!e()){for(var l={},r=$(document.createDocumentFragment()),z=0;z<k.length;z++){var D=k[z],I=D.key,J=D.value,Z=D.color;if(!l[I]){l[I]=!0;var ia=$("<tr>");ia.appendTo(r);var Ta=$("<td>");D=$("<td>");
Ta.appendTo(ia);D.appendTo(ia);Z?(ia=$("<span>"),ia.css({display:"inline-block",position:"relative",width:"8px",height:"8px","margin-right":"4px","background-color":Z}),ia.appendTo(Ta),Z=$("<span style='color:#787878'>"),Z.text(I)):(Z=$("<span style='color:#787878'>"),Z.text(I+": "));Z.appendTo(Ta);I=$("<span style='font-size:12px; color:#333; font-weight:bold;'>");I.text(J);I.appendTo(D)}}A.empty();A.append(r)}};this.toggleMenu=function(k,l){if(!A||!A.is(":visible"))return!1;if(e())return a(!1),
!1;a(!0);va=k;za=l;var r=function(z){e()&&f(z.clientX,z.clientY)||(U.hide(!0),$(document.body).off("mousemove",r))};$(document.body).on("mousemove",r);return!0};var d=function(){V=$("<div>");V.addClass("sa-tooltips");V.appendTo($(document.body));V.mouseleave(function(k){a(!1);c(!1)});ra=b("icon_data_detail",ea.get("viewData","\u67e5\u770b\u6570\u636e"),function(){K.showDetail()});da=b("icon_bill_linkage",ea.get("linkage","\u5355\u636e\u8054\u67e5"),function(){K.jumpToBizUi()});M=$("<div>");M.addClass("sa-tooltips-menu");
M.append(ra);M.append(da);M.appendTo(V);A=$("<table style='margin:6px'>");A.addClass("sa-tooltips-content");A.appendTo(V)},b=function(k,l,r){var z=$("<div>");z.addClass("sa-tooltips-menu-button");z.css("display","none");z.attr("title",l);z.on("click",function(D){r()});l=$("<div>");l.appendTo(z);Ka.background(l,k);T.layoutCtrlCenterAlign(l,12);T.layoutCtrlMiddleAlign(l,12);return z},c=function(k){V.css("display",k?"block":"none");!k&&K.fireHideAnnouncer()},a=function(k){var l=e();k?l||(M.animate({height:"toggle",
opacity:"toggle"},325),h()):l&&M.css("display","none")},e=function(){return M.is(":visible")},f=function(k,l){if(Q){var r=V.offset().left;var z=va+10}else r=va-10,z=V.offset().left+V.width();if(n){var D=V.offset().top;var I=za+10}else D=za-10,I=V.offset().top+V.height();return r<k&&k<z&&D<l&&l<I},h=function(){K.checkShowDetailAllowed(function(l){ra.css("display",l?"":"none")});var k=Oa.isRuntimeSupported()&&K.checkLinkageAllowed();da.css("display",k?"":"none")}}"undefined"==typeof com&&(com={});"undefined"==
typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.longer&&(com.kingdee.bos.qing.longer={});"undefined"==typeof com.kingdee.bos.qing.longer.ui&&(com.kingdee.bos.qing.longer.ui={});var y=com.kingdee.bos.qing.longer.ui;y.AbstractLegendUi=Sa;y.Exhibition=function(){function U(){KTableUIDraggableAdjustingHandler.CustomExpendor.call(this);this.isColumnDraggable=
function(L,R){return R<L.getColumnsCount()-Ha};this.rowDraggedAction=function(L,R,pa){var Da,Wa=!1;if(R<ia){L=Da=R;var Pa=v().getColumnAnalyticalFieldSet();R=R<Pa.getCount()?Pa.get(R):null;Pa=Xb(R);R=Pa.setTopHeight;Pa=Pa.getTopHeight()}else Da=ia,L=L.getRowsCount()-1,Wa=G(),Pa=Xb(Wa),R=Pa.setLeftHeight,Pa=Pa.getLeftHeight(),Wa=!0;var Ea=new K;Ea.setValue(R,Da,L,pa,Pa);Ca.getCommandManager().perform(Ea);Wa&&g()};this.columnDraggedAction=function(L,R,pa){var Da,Wa=!1;if(R<Z){L=Da=R;var Pa=v().getRowAnalyticalFieldSet();
R=R<Pa.getCount()?Pa.get(R):null;Pa=Xb(R);R=Pa.setLeftWidth;Pa=Pa.getLeftWidth()}else Da=Z,L=L.getColumnsCount()-1-Ha,Wa=ma(),Pa=Xb(Wa),R=Pa.setTopWidth,Pa=Pa.getTopWidth(),Wa=!0;var Ea=new V;Ea.setValue(R,Da,L,pa,Pa);Ca.getCommandManager().perform(Ea);Wa&&g();Fb()}}function K(){qa.call(this);var L,R,pa,Da,Wa;this.getCaption=function(){return ea.get("dragRowHeight","\u8c03\u6574\u884c\u9ad8")};this.setValue=function(Ea,Ja,Ua,kb,vb){L=Ea;R=Ja;pa=Ua;Da=kb;Wa=vb};this.perform=function(){var Ea=Pa();
L(Ea);Da=-Da};this.unperform=function(){Pa();L(Wa);Da=-Da};var Pa=function(){var Ea=c.isSyncUIWhenModelChanged();c.setSyncUIWhenModelChanged(!1);for(var Ja=R;Ja<=pa;Ja++){var Ua=c.getRow(Ja);var kb=Ua.getHeight();kb=Math.max(0,kb+Da);Ua.setHeight(kb)}c.setSyncUIWhenModelChanged(Ea);c.updateUI(!0);return kb}}function V(){qa.call(this);var L,R,pa,Da,Wa;this.getCaption=function(){return ea.get("dragColumnWidth","\u8c03\u6574\u5217\u5bbd")};this.setValue=function(Ea,Ja,Ua,kb,vb){L=Ea;R=Ja;pa=Ua;Da=kb;
Wa=vb};this.perform=function(){var Ea=Pa();L(Ea);Da=-Da};this.unperform=function(){Pa();L(Wa);Da=-Da};var Pa=function(){var Ea=c.isSyncUIWhenModelChanged();c.setSyncUIWhenModelChanged(!1);for(var Ja=R;Ja<=pa;Ja++){var Ua=c.getColumn(Ja);var kb=Ua.getWidth();kb=Math.max(0,kb+Da);Ua.setWidth(kb)}c.setSyncUIWhenModelChanged(Ea);c.updateUI(!0);return kb}}function M(){qa.call(this);var L=this,R,pa,Da={};this.setMethod=function(Wa,Pa){R=Wa;pa=Pa};this.perform=function(){var Wa=R();pa(Da);Da=Wa};this.unperform=
function(){L.perform()}}function A(){qa.call(this);var L;this.perform=function(){L=zb;zb=[]};this.unperform=function(){zb=L}}function ra(){qa.call(this);var L,R,pa,Da,Wa;this.getCaption=function(){return ea.get("expandOrCollapse","\u5c55\u5f00/\u6536\u8d77")};this.setValue=function(Pa){L=Pa};this.perform=function(){R=null;pa=-1;for(var Pa=zb.length-1;0<=Pa;Pa--)if(zb[Pa].isSameKey(L)){pa=Pa;R=zb.splice(Pa,1)[0];break}Da=!1;L.isExpanded()&&(Da=!0,zb.push(L));Wa=null;128<zb.length&&(Wa=zb.splice(0,
1)[0]);v().announceTreeExpanding()};this.unperform=function(){Wa&&zb.unshift(Wa);Da&&zb.pop();R&&zb.splice(pa,0,R);v().announceTreeExpanding()}}function da(L){KTDefaultCellRender.call(this,L);var R=this,pa=this.paintCellUI;this.paintCellUI=function(Ea,Ja){var Ua=Ja?Ja:Ea,kb=R.getCurrentRowIdx(),vb=R.getCurrentColIdx();if(kb<ia||vb<Z){var Gb=R.getCell();if(Gb&&!Gb.getValue()){var Jb=Gb.getUserObject();if(Jb&&"axis"==Jb.type){Ja=R.getTextAreaWidth();Jb=R.getTextAreaHeight();var Db=d.getCommonModel();
Gb=Gb.getUserObject();Gb=d.parseAxisModel(Gb);var Rb=u();Rb.setAxisModel(Gb);D.exhibit(Ua,Ja,Jb,Db,Rb,null,null);Wa(Ea,kb,vb);return}}pa(Ea,Ja);Wa(Ea,kb,vb)}else t()?(pa(Ua),Ea=(Ea=R.getCell())?Ea.getUserObject():null,Ea=d.parseExhibitModel(Ea),kb=Da(),D.exhibit(Ua,0,0,Ea,null,kb,a)):(vb=R.getCell(),Ea=R.getTextAreaWidth(),kb=R.getTextAreaHeight(),vb=vb?vb.getUserObject():null,vb=d.parseExhibitModel(vb),Ja=u(),Jb=Da(),D.exhibit(Ua,Ea,kb,vb,Ja,Jb,a))};var Da=function(){var Ea=R.getCurrentRow().getUserObject();
Ea=Ea instanceof Ra?Ea.getShedTitleModel():Ea;var Ja=R.getCurrentCol().getUserObject(),Ua=new eb;Ua.combine(Ea,Ja);return Ua},Wa=function(Ea,Ja,Ua){ya&&Ja<ia&&Ua<Z?(Ea=$(Ea),Ja=v().getRowAnalyticalFieldSet(),Ua=R.getCurrentColIdx(),Ua>=Ja.getCount()||(Ja=Ja.get(Ua),Ua=R.getCellHeight()-sa.BOX_LEN-1,Ja=wb.createLittleBox(1,Ua,Ja,!1),Ea.append(Ja))):D.isCellMeasurable(v())&&(v().getRowAnalyticalFieldSet().hasAnyDimension()&&Ja==ia-1?(Ja=R.getCurrentCol().getUserObject(),Ua=v().getRowsSortingLane(),
Pa(Ja,Ua)&&wb.createRowsSortingLittleBox(R.getCellWidth(),R.getCellHeight(),Ja).appendTo($(Ea))):v().getColumnAnalyticalFieldSet().hasAnyDimension()&&Ua==Z-1&&(Ja=R.getCurrentRow().getUserObject(),Ja=Ja instanceof Ra?Ja.getShedTitleModel():Ja,Ua=v().getColumnsSortingLane(),Pa(Ja,Ua)&&wb.createColumnsSortingLittleBox(R.getCellWidth(),R.getCellHeight(),Ja).appendTo($(Ea))))},Pa=function(Ea,Ja){if(!Ja||!Ea)return!1;var Ua=Ja.getHeadValue();if(Ua.length!=Ea.getExecutableValueItemCount())return!1;for(var kb=
0;kb<Ua.length;kb++)if(!Ua[kb].isTheSame(Ea.getItemExecutableValue(kb)))return!1;return Ea.getMeasureIndex()!=Ja.getMeasureIndex()?!1:!0}}function va(){KTDiagonalRender.call(this);var L,R=this.create;this.create=function(pa,Da,Wa,Pa,Ea,Ja){pa=R(pa,Da,Wa,Pa,Ea,Ja);T.layoutCtrl($(pa),0,0,Ea,Ja);L=$("<div>");L.width(Ea);L.height(Ja);Ea=L[0];Ea.appendChild(pa);Ja=L;var Ua=[0];for(pa=0;pa<Z;pa++)Ua[pa+1]=Ua[pa]+c.getColumn(pa).getWidth();Da=[1];for(pa=0;pa<ia;pa++)Da[pa+1]=Da[pa]+c.getRow(pa).getHeight();
Pa=Da[Da.length-1]-sa.BOX_LEN-2;var kb=v().getRowAnalyticalFieldSet();for(pa=0;pa<cb;pa++){var vb=kb.get(pa);vb&&(Wa=Ua[pa]+1,vb=wb.createLittleBox(Wa,Pa,vb,!1),Ja.append(vb))}Wa=Ua[Ua.length-1]-sa.BOX_LEN-1;Ua=v().getColumnAnalyticalFieldSet();for(pa=0;pa<jb;pa++)if(vb=Ua.get(pa))Pa=Da[pa],vb=wb.createLittleBox(Wa,Pa,vb,!0),Ja.append(vb);return Ea}}var za=120,Q=this,n,d,b,c,a,e=!0,f=!0,h,k,l=!1,r,z=!1,D,I,J,Z,ia,Ta,cb,jb,ya,Ha=0,bb,ob,xa,Ya,Ca,mb,tb,yb,Bb,Eb,cc,Yb,Vb,Zb,Wb,$b,Lb,Nb,ac,Sb,na,Xa,$a,
hb,nb=10,rb=10,ub=0,Ab=0,Hb,Mb,Ib,wb=new sa,Ob={},dc,ec,Kb,zb=[],fc,Tb=-1,kc=-1,hc=-1,Ub;this.getJqUi=function(){b||(b=$("<div>"),b.css("cursor","default"),b.on("contextmenu",function(L){return!1}));return b};this.resize=function(L){l||(n&&(L=n,n=null,B(L)),c&&(c.relayoutViews(),Fb()))};this.setFakeClipboardSupported=function(L){e=L};this.setRowColumnDraggable=function(L){f=L};this.setScrollerVisible=function(L,R){h=L;k=R};this.keepCalm=function(L){l!=L&&((l=L)||Q.resize())};this.destroy=function(){a.destroy()};
this.setTooltipsWidgetInstance=function(L){a=L};var ba=function(L,R,pa){Ub(fc,L,-1,R,-1,pa)},m=function(L,R,pa,Da){Ub(fc,L,R,-1,pa,Da)},p=function(L){a.hide(!0);bb&&bb("");c=null;l=z=!1;wb.bindContext(b,v(),Ca.getCommandManager());Ib=Mb=null;b.is(":visible")?B(L):n=L};this.reset=function(){Ob={};zb=[];jb=cb=ia=Z=0;l=!0;r=null};this.repaint=function(L){L?p(L):c&&(c.updateUI(!0),xb())};this.setPromptListener=function(L){bb=L};this.setLegendsNeededListener=function(L){ob=L};this.setPreUpdateListener=
function(L){xa=L};this.setExhibitionChangedListener=function(L){Ya=L};this.showNoDataPrompt=function(L,R){b.empty();var pa=$("<div>");pa.addClass("sa-exhibition-nodata-prompt");pa.css({position:"relative",padding:"40px"});pa.appendTo(b);pa.text(L);R&&R(b)};this.clearHeightWidthCacheAction=function(){var L=new M;L.setMethod(function(){return Ob},function(R){Ob=R});Ca.getCommandManager().perform(L)};this.clearTreeExpandState=function(){var L=new A;Ca.getCommandManager().perform(L)};this.collectStatus=
function(L){var R=L.setHeights;a:{var pa=S(-1,-1);var Da=Va(-1);pa[pa.length-1]=Da;for(Da=0;Da<pa.length;Da++)if(-1!=pa[Da])break a;pa=null}R.call(L,pa);R=L.setWidths;a:{pa=H(-1,-1);Da=db(-1);pa[pa.length-1]=Da;for(Da=0;Da<pa.length;Da++)if(-1!=pa[Da])break a;pa=null}R.call(L,pa);R=S(N(),Ab);pa=Va(rb);R[R.length-1]=pa;pa=H(za,ub);Da=db(nb);pa[pa.length-1]=Da;L.collectPaintableStatus(R,pa);R=[];if(0<zb.length)for(pa=0;pa<zb.length;pa++)Da=zb[pa].toJsonObject(),R.push(Da);L.setJsonTreeExpandStates(R)};
this.applyStatus=function(L){Ob={};var R=L.getHeights(),pa=L.getWidths();if(R){for(var Da=v().getColumnAnalyticalFieldSet(),Wa=Da.getCount(),Pa=R.length-1,Ea=0;Ea<Pa;Ea++){var Ja=R[Ea];if(-1!=Ja){var Ua=Ea<Wa?Da.get(Ea):null;Xb(Ua).setTopHeight(Ja)}}R=R[R.length-1];-1!=R&&(Da=G(),Xb(Da).setLeftHeight(R))}if(pa){R=v().getRowAnalyticalFieldSet();Da=R.getCount();Wa=pa.length-1;for(Pa=0;Pa<Wa;Pa++)Ea=pa[Pa],-1!=Ea&&(Ja=Pa<Da?R.get(Pa):null,Xb(Ja).setLeftWidth(Ea));pa=pa[pa.length-1];-1!=pa&&(R=ma(),Xb(R).setTopWidth(pa))}if(L=
L.getJsonTreeExpandStates())for(pa=0;pa<L.length;pa++)R=L[pa],Da=new ha,Da.fromJsonObject(R),zb.push(Da)};this.keepScrollStatus=function(L){r=L&&c?c.keepScrollStatus():null};this.setContextGetter=function(L){Ca=L};this.isExportable=function(){return z};var v=function(){return Ca.getAnalyticalModel()};this.protectedMethod={initTooltipsWidget:function(L,R,pa,Da){a||(a=new P);a.setDetailShowedImpl(L,R);a.setLinkageImpl(pa,Da)},setCacheLoader:function(L){Ub=L},createFacade:function(L,R,pa){return Ca.createFacade(L,
R,pa)},getBlockingJqUi:function(){return Ca.getBlockingJqUi()},setExecutedModel:p};var q=function(){for(var L=v().getRowAnalyticalFieldSet(),R=0;R<L.getCount();R++)if(L.get(R).getMetaField().isParentChildDimension())return!0;return!1},t=function(){return D.getName()==fb.CHARTTYPE_TABLE},u=function(){Mb||(Mb=new gb,J==ka.LANDSCAPE?Mb.setLandscape(!0):J==ka.PORTRAIT&&Mb.setLandscape(!1),Mb.setSecondaryType(I));Mb.setChatConfig(Ca.getPreferences().getChartConfig());Mb.setAxisModel(null);return Mb},B=
function(L){if(L){var R=q();mb=new KTStyle;mb.setVerticalAlign("middle");mb.setFontSize(wa.getFontSize());mb.setFontUnit("px");mb.setFontName(wa.getFontName());mb.setTextAlign("right");tb=new KTStyle;tb.setTextAlign("center");tb.setColor(Fa.TOP_HEAD_COLOR);tb.setBackgroundColor(Fa.TOP_HEAD_BACKGROUND);yb=new KTStyle;yb.setTextAlign("right");yb.setColor(Fa.TOP_HEAD_COLOR);yb.setBackgroundColor(Fa.TOP_HEAD_BACKGROUND);Bb=new KTStyle;Bb.setTextAlign("left");Bb.setBackgroundColor(Fa.LEFT_HEAD_BACKGROUND);
Eb=new KTStyle;Eb.setTextAlign("left");cc=new KTStyle;cc.setBold(!0);Yb=new KTStyle;Yb.setBackgroundColor(R?Fa.LEFT_HEAD_BACKGROUND:Fa.ROW_BACKGROUND_ODD);Zb=Yb.copy();Zb.setBold(!0);Vb=new KTStyle;Vb.setBackgroundColor(R?Fa.LEFT_HEAD_BACKGROUND:Fa.ROW_BACKGROUND_EVEN);Wb=Vb.copy();Wb.setBold(!0);$b=new KTStyle;$b.setBold(!1);R?(Lb=new KTBorderStyle,Lb.setBorderWidth(1),Lb.setBorderPen("solid"),Lb.setBorderColor(Fa.BORDER_COLOR)):Lb=null;ac=new KTBorderStyle;ac.setLeftBorderWidth(1);ac.setLeftBorderPen("solid");
ac.setLeftBorderColor(Fa.BORDER_COLOR);Sb=new KTBorderStyle;Sb.setRightBorderWidth(1);Sb.setRightBorderPen("solid");Sb.setRightBorderColor(Fa.BORDER_COLOR);na=new KTBorderStyle;na.setLeftBorderWidth(1);na.setLeftBorderPen("solid");na.setLeftBorderColor(Fa.BORDER_COLOR);na.setRightBorderWidth(1);na.setRightBorderPen("solid");na.setRightBorderColor(Fa.BORDER_COLOR);Nb=new KTBorderStyle;Nb.setBottomBorderWidth(1);Nb.setBottomBorderPen("solid");Nb.setBottomBorderColor(Fa.BORDER_COLOR);Xa=new KTBorderStyle;
Xa.setTopBorderWidth(1);Xa.setTopBorderPen("solid");Xa.setTopBorderColor(Fa.BORDER_COLOR);$a=new KTBorderStyle;$a.setLeftBorderWidth(1);$a.setLeftBorderPen("solid");$a.setLeftBorderColor(Fa.BORDER_COLOR);hb=new KTBorderStyle;hb.setRightBorderWidth(1);hb.setRightBorderPen("solid");hb.setRightBorderColor(Fa.BORDER_COLOR);hb.setBottomBorderWidth(1);hb.setBottomBorderPen("solid");hb.setBottomBorderColor(Fa.BORDER_COLOR);ya=(R=(R=L.leftTopHead)?R.plane:null)&&0<R.length?!0:!1;var pa=L.topHead;ia=0==pa.length?
ya?1:0:pa[0].length;var Da=L.leftHead;Z=0==Da.length?ya?R.length:0:Da[0].length;za=1!=Z||ya?120:160;R=0==ia&&0==Z;z=!R;var Wa=L.draw,Pa=Wa.type;I=Wa.secondaryType;J=Wa.direction;Wa=L.commonCell;D=y.ChartTypeFactory.getInstance(Pa);d=D.createJsonCellParser();d.parseCommonCell(Wa);var Ea=L.legends;Kb=ec=dc=null;if(Ea){Pa=Ea.size;Wa=Ea.continuousColor;Ea=Ea.discreteColor;if(Wa){var Ja=new ja;Ja.setJsonModel(Wa);dc=Ja}Ea&&(Ja=new ta,Ja.setJsonModel(Ea),ec=Ja);Pa&&(Ja=new Ba,Ja.setJsonModel(Pa),Kb=Ja)}Da=
Da.length;pa=pa.length;Pa=[dc,ec,Kb];xa&&xa(Da,pa,Pa);b.empty();R?(Q.showNoDataPrompt(ea.get("incompleteTemplate","\u5b9a\u4e49\u4e0d\u5b8c\u6574\uff0c\u65e0\u53ef\u89c6\u5316\u5185\u5bb9\u3002")),ob([null,null,null])):(R=r,W(L),g(),ob([dc,ec,Kb]),R&&c.restoreScrollStatus(R));c&&xb()}else b.empty();Ya&&Ya()},g=function(){if(Kb){var L=Math.min(Va(rb),db(nb));L=parseInt(.8*L);Kb.setBaseDiameter(L)}},C=function(L,R){L?(fc=L.cacheKey,Tb=L.nextPartRowStart,kc=L.everyPartRows,(L=L.totalRows)&&(hc=L),t()&&
void 0!==Tb&&(0<=Tb?(L=ea.get("promptLazyLoading","\u5171#1\u884c\uff0c\u5df2\u52a0\u8f7d#2\u884c\u3002"),L=L.replace("#1",hc).replace("#2",Tb),bb&&bb(L)):(L=ea.get("promptAllRowsLoaded","\u5171#1\u884c\uff0c\u5df2\u5168\u90e8\u52a0\u8f7d\u3002"),L=L.replace("#1",hc),bb&&bb(L)))):(fc=null,kc=Tb=-1,hc=R,t()&&(L=ea.get("promptAllRowsLoaded","\u5171#1\u884c\uff0c\u5df2\u5168\u90e8\u52a0\u8f7d\u3002"),L=L.replace("#1",hc),bb&&bb(L)))},W=function(L){var R=[];C(L.exhibitionCache,L.leftHead.length);c=new KTable;
c.setCrossFrozenRenderMode(KTCrossFrozenRenderMode.STUPID_LIGHT);c.setSyncUIWhenModelChanged(!1);c.setMergeBlockTextVisibleAlways(!0);c.setDraggableAdjusting(f,ia,Z,new U);c.setCellAcrossListener(oc);c.setMultiTreeSupported(!0,ia,Z);c.addCellClickListener(Pb);c.setLargeDataMode(!0,!1);Ca.getMeta().isMdOfSrcMode()?c.addTreeExpandListener(Cb):(c.setSyncMergeBlockWhenModelChanged(!1),fc&&void 0===Tb&&(c.addTreeExpandListener(Za),c.addTreeStateChangedListener(function(Ja,Ua){Ja=Ua.getCell().getTreeModel();
Ja.isHorizontal()||Ja.isLazyLoaded()||!Ja.isExpanded()||Ua.preventDefault()})),fc&&void 0!==Tb&&c.addScrollToBottomListener(function(Ja,Ua){0<=Tb&&ba(Tb,kc,function(kb){C(kb.exhibitionCache);c.lazyAppendData(!0);w(kb.leftHead,kb.cells,R);c.lazyAppendData(!1)})}));h&&k&&c.setScrollerVisible(h,k);c.setStyle(mb);Lb&&c.setBorder(Lb);var pa=new da(c);pa.setOutsideVisible(!1);c.setCellRender(pa);var Da=L.shedTitle.atColumn;Ta=L.shedTitle.atRow;jb=Da.length;cb=Ta.length;pa=ic();var Wa=L.rowsIdx,Pa=null;
Wa&&(Pa=function(Ja,Ua){var kb=new Ra;kb.setShedTitleModel(Ua);kb.setBizRowIdx(Wa[Ja]);Ja=c.addRow();Ja.setUserObject(kb);return Ja});var Ea=L.warning;Ea&&Ga(Ea);sb(L.cells);F(L.topHead,Da,pa);w(L.leftHead,L.cells,R,Pa);pb(L.mergeBlocks);c.setUICustomStyleMap({"background-color":Fa.TABLE_CONTAINER_BACKGROUND});Da=$(c.getUI());Da.appendTo(b);Da.addClass("sa-exhibition-table");0<c.getRowsCount()&&0<c.getColumnsCount()&&(Ia(L.leftTopHead),c.updateUI(!0,r));r=null;c.setSyncUIWhenModelChanged(!0);qc(pa)},
Ia=function(L){var R=L.diagonal;L=L.plane;if(R){L=R.crossRows;var pa=R.crossColumns,Da=R.titles;R=new KTDiagonalModel;R.setCrossRows(L);R.setCrossColumns(pa);for(var Wa=[],Pa=[],Ea=0;Ea<L;Ea++)Ea<L-1&&(Wa[Ea]=1),R.setText(Da[Ea],Ea),R.setLean(!0,Ea);for(Ea=0;Ea<pa;Ea++){Ea<pa-1&&(Pa[Ea]=1);var Ja=pa+L-Ea-1;R.setText(Da[Ja],Ja);R.setLean(0<Ea,Ja)}R.setLinkToRows(Wa);R.setLinkToColumns(Pa);L=c.getRow(0).getCell(0);L.setValue(R);L.setBorder(hb);L.setStyle(tb);c.setDiagonalRender(new va)}else if(L)for(pa=
0;pa<L.length;pa++)R=c.getRow(0).getCell(pa),R.setValue(L[pa]),R.setBorder(Nb),R.setStyle(tb)},N=function(){return parseInt(10*((ya?.5:Z/(0==ia?1:ia))-.5)+30)},S=function(L,R){for(var pa=[],Da=0,Wa=v().getColumnAnalyticalFieldSet(),Pa=Wa.getCount(),Ea=0;Ea<ia;Ea++){if(Ea<Pa){var Ja=Wa.get(Ea);var Ua=sc(Ja,!0);!Ua&&Ja.getMetaField().isParentChildDimension()&&(Ua=50)}else Ua=sc(null,!0);pa[Ea]=Ua?Ua:Ea==ia-1?R:L;Da+=pa[Ea]}pa[ia]=Da;return pa},H=function(L,R){for(var pa=[],Da=0,Wa=v().getRowAnalyticalFieldSet(),
Pa=Wa.getCount(),Ea=0;Ea<Z;Ea++){if(Ea<Pa){var Ja=Wa.get(Ea);Ja=tc(Ja,!0)}else Ja=tc(null,!0);pa[Ea]=Ja?Ja:Ea==Z-1?R:L;Da+=pa[Ea]}pa[Z]=Da;return pa},G=function(){var L=v().getRowAnalyticalFieldSet();return 0<L.getCount()?L.get(L.getCount()-1):null},ma=function(){var L=v().getColumnAnalyticalFieldSet();return 0<L.getCount()?L.get(L.getCount()-1):null},Va=function(L){var R=G();return(R=sc(R,!1))?R:L},db=function(L){var R=ma();return(R=tc(R,!1))?R:L},sb=function(L){var R=0,pa=0;L&&0<L.length&&(R=L.length,
(L=L[0])&&0<L.length&&(pa=L.length));L=u();var Da=D.getSuggestedSize(L,v());Hb=Da;var Wa=Da.getMinWidth(),Pa=Da.getMinHeight(),Ea=Da.getMaxWidth(),Ja=Da.getMaxHeight();L=Da.getWidthHeightRatio();var Ua=za;ub=Da.getLeftAxisColumnWidth();ub=0<ub?ub:Ua;Ua=H(Ua,ub);Ua=Ua[Ua.length-1];var kb=N();Ab=Da.getTopAxisRowHeight();Ab=0<Ab?Ab:kb;Da=S(kb,Ab);Da=Da[Da.length-1];Ea>Wa?(kb=b.innerWidth()-30,pa=parseInt((kb-Ua)/(0==pa?10:pa))+1,nb=pa<Wa?Wa:pa>Ea?Ea:pa):nb=Wa;Ja>Pa?(pa=b.innerHeight()-30,R=parseInt((pa-
Da)/(0==R?10:R))+1,rb=R<Pa?Pa:R>Ja?Ja:R):rb=Pa;0<L&&(R=parseInt(rb*L),R<nb?nb=R:R>nb&&(rb=parseInt(nb/L)))},Ga=function(L){var R=$("<div>");R.text(L);R.appendTo(b);R.addClass("sa-exhibition-warning");L=new O;L.setText("X");L.addActionListener(function(){R.remove()});L.getJqUi().addClass("sa-exhibition-warning-close");L.getJqUi().appendTo(R)},F=function(L,R,pa){var Da=t(),Wa=L.length,Pa=!1;256<Wa&&(Pa=!0,Wa=256,Ga(ea.get("tooMuchColumns","\u5217\u6570\u592a\u591a\u4e0d\u80fd\u663e\u793a\u5b8c\u6574\uff0c\u5c1d\u8bd5\u628a\u6570\u636e\u591a\u7684\u5b57\u6bb5\u653e\u5230\u884c\u4e0a\u3002")));
for(var Ea=H(za,ub),Ja=0;Ja<Z;Ja++){var Ua=c.addColumn();Ua.setWidth(Ea[Ja]);Ja==Z-1?(Ua.setStyle(Eb),0==Ja?Ua.setBorder(Sb):Ua.setBorder(na)):(Ua.setStyle(Bb),Ua.setBorder($a))}Ea=db(nb);Ha=!q()&&Da||Pa?1:0;var kb=Wa+Ha;for(Ja=0;Ja<kb;Ja++)Ua=c.addColumn(),Ua.setUserObject(new ib),Ua.setWidth(Ja<Wa?Ea:4),0==Ja&&Ua.setBorder($a);Ea=S(N(),Ab);kb=[];var vb=[];for(Ja=0;Ja<ia;Ja++){var Gb=c.addRow();Gb.setHeight(Ea[Ja]);Ja==ia-1&&Gb.setBorder(Nb);(Ua=Ja<ia-1||!Da)||(Ua=v().getColumnAnalyticalFieldSet(),
Ua=0<Ua.getCount()?Ua.get(Ua.getCount()-1).getMetaField().isParentChildDimension():!1);Ua?Gb.setStyle(tb):Gb.setStyle(yb);for(var Jb,Db=null,Rb=!0,bc=!1,vc=65535,lc=0;lc<Wa;lc++){var rc=Z+lc;Ua=c.getColumn(rc);var nc=Ua.getUserObject(),pc=la(L[lc][Ja],nc,Ja<R.length?R[Ja]:null);nc=pc[0];var wc=pc[1],xc=pc[2];pc=pc[3];var mc=null,jc=null;0<pa.length&&(jc=vb[lc],jc||(jc=new ha,jc.setHorizontal(!0),vb[lc]=jc));nc||wc?(mc=Gb.getCell(rc),mc.setValue(nc),mc.setUserObject(wc),!pc&&mc.setStyle($b),xc?((Rb=
Qa(Rb,Db,mc,xc,!0,pa,jc))?Db=bc:(Db=!0,bc=mc.getTreeModel(),bc.getLevel()<=vc&&(Db=!1,vc=bc.isExpanded()?65535:bc.getLevel()),bc=Db),kb[lc]=kb[lc]||Db):(jc&&jc.addKey(nc),Rb=Rb?Db?Db.getValue()==nc:!0:!1)):(jc&&jc.addKey(null),Rb=!1);pc&&Ua.setStyle(cc);Ja<ia-1&&(nc!=Jb&&Ua.setBorder($a),Jb=nc);kb[lc]&&Ua.setHide(!0);Db=mc}}!Da&&0<ia&&!1===Hb.isTopAsNumberAxis()&&(L=c.getRow(ia-1),R=L.getStyle(),R=R.copy(),R.setWrapText(!0),R.setVerticalAlign("top"),L.setStyle(R));if(Pa&&0<ia)for(rc=c.getColumnsCount()-
1,c.getColumn(rc).setWidth(40),Ja=0;Ja<ia;Ja++)Gb=c.getRow(Ja),mc=Gb.getCell(rc),mc.setValue("...")},w=function(L,R,pa,Da){Da||(Da=function(Rb,bc){Rb=c.addRow();Rb.setUserObject(bc);return Rb});for(var Wa=t(),Pa=c.getColumnsCount()-Z-Ha,Ea=Va(rb),Ja=Vb,Ua=!1,kb=null,vb=0;vb<L.length;vb++){Wa&&(Ja=Ua?Yb:Vb);var Gb=L[vb],Jb=new ib,Db=Da(vb,Jb);Db.setHeight(Ea);Db.setStyle(Ja);E(pa,Gb,Db,kb,Jb,Ua);(kb=R[vb])&&0<kb.length&&Y(Pa,kb,Db,Wa);Wa&&(Ua=!Ua);kb=Db}},E=function(L,R,pa,Da,Wa,Pa){for(var Ea=!0,
Ja=0;Ja<R.length;Ja++){var Ua=la(R[Ja],Wa,Ja<Ta.length?Ta[Ja]:null),kb=Ua[0],vb=Ua[1],Gb=Ua[2];Ua=Ua[3];if(kb||vb){var Jb=Da?Da.getCell(Ja):null,Db=pa.getCell(Ja);Db.setValue(kb);Db.setUserObject(vb);!Ua&&Db.setStyle($b);Ea=Gb?Qa(Ea,Jb,Db,Gb,!1,null,null):Ea?Jb?Jb.getValue()==kb:!0:!1}else Ea=!1;Ua&&pa.setStyle(Pa?Zb:Wb);Ja<Z-1&&(kb!=L[Ja]&&pa.setBorder(Xa),L[Ja]=kb)}},Y=function(L,R,pa,Da){for(var Wa=0;Wa<L;Wa++){var Pa=R[Wa];if(Pa){var Ea=pa.getCell(Wa+Z);Ea.setUserObject(Pa);if(Da){var Ja=Pa.text;
Ja&&(Ea.setValue(Ja),Pa=Pa.color)&&(Ja=new KTStyle,Ja.setColor(" "+Pa),Ea.setStyle(Ja))}}}},la=function(L,R,pa){var Da=null,Wa=null,Pa=null,Ea=!1,Ja=!1;if("string"==typeof L)Da=L,Ea=!0;else if(L)switch(L.type){case "ns":Da=L.text;var Ua=L.value;Ea=!0;break;case "axis":Pa=L;break;case "subtotal":Da=L.text;Ja=!0;break;case "measure":Da=L.text;R.setMeasureIndex(L.index);break;case "tree":Da=L.text;var kb=L;Ea=!0;Wa=L.id;break;default:throw Error("Unknown HeadCell type.");}R&&pa&&(Ea?R.addItem(pa,Da,
Wa,Ua):Ja&&R.addItemForSubtotal());return[Da,Pa,kb,Ja]},Qa=function(L,R,pa,Da,Wa,Pa,Ea){var Ja=Da.id;Ea&&Ea.addKey(Ja);var Ua;if(R){var kb=R.getUserObject();(L=L?Ja==kb:!1)&&(Ua=R.getTreeModel())}else L=!1;if(!Ua){R=Da.level;kb=Da.last;var vb=Da.asParent?!0:!1;Da=Da.expanded?!0:!1;Ua=new KTCellTreeModel(R,Wa);(kb||0===kb)&&Ua.setLastChildLevel(kb);Ua.setHaveHandlerAlways(vb);if(Wa){if(Ea){Da=0>R;a:{if(0<Pa.length)for(Wa=0;Wa<Pa.length;Wa++)if(R=Pa[Wa],R.isSameKey(Ea)){Pa.splice(Wa,1);Pa=R;break a}Pa=
null}Pa&&(Da=Pa.isExpanded())}}else vb&&Ua.setLazyLoaded(Da);Ua.setExpanded(Da)}pa.setTreeModel(Ua);pa.setUserObject(Ja);return L},pb=function(L){for(var R=c.getColumnsCount()-Ha,pa=[],Da=0;Da<L.length;Da++){var Wa=L[Da],Pa=Wa[2];Pa<R&&pa.push(new KTMergeBlock(Wa[0],Wa[1],Pa,Wa[3]<R?Wa[3]:R-1))}c.addMergeBlocks(pa)},xb=function(){u().getChartConfig().getTableConfig().isFrozenTop()?c.setFrozenRows(ia):c.setFrozenRows(0);Fb()},Fb=function(){if(u().getChartConfig().getTableConfig().isFrozenLeft()){for(var L=
b.innerWidth(),R=0,pa=0,Da=Math.min(Z+1,c.getColumnsCount());pa<Da;pa++)R+=c.getColumn(pa).getWidth();c.setFrozenColumns(R>L?0:Z)}else c.setFrozenColumns(0)},Pb=function(L,R){e&&R.isLeftButton()&&(L=(L=R.getCell())?L.getValue():"",Na.fakeCopy("string"==typeof L?L:""))},oc=function(L,R,pa){var Da=!0,Wa=!0;if(L){var Pa=R<ia||pa<Z;if((Wa=pa>=c.getColumnsCount()-Ha)||!t()&&!Pa)Da=!1}Pa=L&&0<L.length?L[0]:null;if(Ib!=Pa){if(Ib){var Ea=Ib["qing-bg"];delete Ib["qing-bg"];Ea&&$(Ib).css("background-color",
Ea);Ib["qing-left-top-header"]?wb.showOperatingTips($(Ib),!1):Ib["qing-sorting-top-header"]?wb.hideRowsSortingTips($(Ib)):Ib["qing-sorting-left-header"]&&wb.hideColumnsSortingTips($(Ib))}Pa&&(Da&&(Pa["qing-bg"]=L.css("background-color"),L.css("background-color",Fa.CELL_ACROSS_COLOR)),ya&&0==R&&pa<Z||!ya&&0==R&&0==pa?(wb.showOperatingTips(L,!0),Pa["qing-left-top-header"]=!0):D.isCellMeasurable(v())&&(!Wa&&(v().getRowAnalyticalFieldSet().hasAnyDimension()&&R==ia-1||ya&&0==R&&pa>=Z)?(R=c.getColumn(pa).getUserObject(),
wb.showRowsSortingTips(L,R),Pa["qing-sorting-top-header"]=!0):v().getColumnAnalyticalFieldSet().hasAnyDimension()&&pa==Z-1&&(R=c.getRow(R).getUserObject(),R=R instanceof Ra?R.getShedTitleModel():R,wb.showColumnsSortingLittleBox(L,R),Pa["qing-sorting-left-header"]=!0)));Ib=Pa}},gc=function(L,R,pa,Da){var Wa=new ha;Wa.setExpanded(L);Wa.setHorizontal(R);L=function(Ea){Ea=Ea.getTreeModel()?Ea.getUserObject():Ea.getValue();Wa.addKey(Ea)};if(R)for(R=0;R<=pa;R++){var Pa=c.getRow(R).getCell(Da);L(Pa)}else for(pa=
c.getRow(pa),R=0;R<=Da;R++)Pa=pa.getCell(R),L(Pa);return Wa},Cb=function(L,R){L=R.isExpanded();var pa=R.getCell().getTreeModel().isHorizontal(),Da=R.getRowIdx();R=R.getColIdx();R=gc(L,pa,Da,R);L=new ra;L.setValue(R);Ca.getCommandManager().perform(L)},Za=function(L,R){var pa=R.isExpanded(),Da=R.getCell().getTreeModel(),Wa=Da.isHorizontal();L=R.getRowIdx();var Pa=R.getColIdx();R=gc(pa,Wa,L,Pa);Qb(R,Da.getLevel());if(!Wa&&pa&&!Da.isLazyLoaded()){Da.setLazyLoaded(!0);R=c.searchMergeBlock(L,Pa);var Ea=
(R?R.getRowIdxTo():L)+1,Ja=!1;L=c.getRow(L).getUserObject().getBizRowIdx();m(L,Pa,Ea,function(Ua){var kb=Ua.leftHead,vb=Ua.cells,Gb=Ua.rowsIdx;Ua=Ua.mergeBlocks;Ja=0<Ua.length;var Jb=c.isSyncUIWhenModelChanged();c.setSyncUIWhenModelChanged(!1);w(kb,vb,[],function(Db,Rb){var bc=new Ra;bc.setShedTitleModel(Rb);bc.setBizRowIdx(Gb[Db]);Db=c.insertRow(Ea);Db.setUserObject(bc);Ja=qb(Ea,Pa)||Ja;Ea++;return Db});pb(Ua);Ja&&c.bucketingMergeBlocks(!0);c.setSyncUIWhenModelChanged(Jb);c.updateUI(!0)})}},qb=function(L,
R){var pa=[],Da=!1;c.visitAllMergeBlocks(function(Ea){L<=Ea.getRowIdxFrom()?(Ea.setRowIdxFrom(Ea.getRowIdxFrom()+1),Ea.setRowIdxTo(Ea.getRowIdxTo()+1),Da=!0):L<=Ea.getRowIdxTo()?(Ea.setRowIdxTo(Ea.getRowIdxTo()+1),Da=!0):L-1==Ea.getRowIdxTo()&&Ea.getColIdxTo()<R&&(Ea.setRowIdxTo(Ea.getRowIdxTo()+1),Da=!0,pa[Ea.getColIdxTo()]=!0)});for(var Wa=[],Pa=0;Pa<R;Pa++)pa[Pa]||Wa.push(new KTMergeBlock(L-1,L,Pa,Pa));0<Wa.length&&c.addMergeBlocks(Wa);return Da},Qb=function(L,R){for(var pa=zb.length-1;0<=pa;pa--)if(zb[pa].isSameKey(L)){zb.splice(pa,
1);break}L.isExpanded()!=0>R&&(zb.push(L),128<zb.length&&zb.splice(0,1))},ic=function(){for(var L=[],R=0;R<zb.length;R++){var pa=zb[R];pa.isHorizontal()&&L.push(pa)}return L},qc=function(L){for(var R=0;R<L.length;R++)for(var pa=L[R],Da=0;Da<zb.length;Da++)if(zb[Da].isSameKey(pa)){zb.splice(Da,1);break}},Xb=function(L){L=uc(L);var R=Ob[L];R||(R=new x,Ob[L]=R);return R},uc=function(L){if(L){var R=L.getMetaField().getFullName();L=L.getPartValue();return R+(L?"~"+L:"")}return"qing-system-non-field"},
sc=function(L,R){L=uc(L);L=Ob[L];var pa;L&&(pa=R?L.getTopHeight():L.getLeftHeight());return pa},tc=function(L,R){L=uc(L);L=Ob[L];var pa;L&&(pa=R?L.getLeftWidth():L.getTopWidth());return pa}};y.AbstractTooltipsWidget=X;var T,aa,ea,wa,O,fa,La,Ma,ua,Ka,oa,Oa,ab,ca,fb,lb,gb,qa,Aa;(function(){var U=com.kingdee.bos.qing.common;T=U.DomUtil;aa=U.CanvasUtil;U=com.kingdee.bos.qing.framework.common;ea=U.MultilanguageManager.createPackageAccessor(y);wa=U.GlobalFont;U=com.kingdee.bos.qing.ui.component;O=U.WorkButton;
U=com.kingdee.bos.qing.core;Ka=U.Icons;oa=U.CommonJsonParser;Oa=U.LinkageRegister;U=com.kingdee.bos.qing.core.model;ab=U.AbstractAnalyticalField;ca=U.ExecutableValue;U=com.kingdee.bos.qing.longer.model;fb=U.AnalyticalModel;lb=U.SortingLane;gb=U.ChartContext;U=com.kingdee.bos.qing.chart.model;fa=U.DiscreteColorLegendModel;U=com.kingdee.bos.qing.chart.render;La=U.SizeLegendRender;Ma=U.ContinuousColorLegendRender;ua=U.DiscreteColorLegendRender;U=com.kingdee.bos.qing.core.controller;qa=U.AbstractAction;
Aa=U.ActionChangeProperty})();var Fa={BORDER_COLOR:"#d7e2e2",TOP_HEAD_COLOR:"#333",TOP_HEAD_BACKGROUND:"#f4f4f4",LEFT_HEAD_BACKGROUND:"#fff",ROW_BACKGROUND_EVEN:"#fff",ROW_BACKGROUND_ODD:"#f0f4fa",TABLE_CONTAINER_BACKGROUND:"#e9ecf1",CELL_ACROSS_COLOR:"#D6E6F8"},ka=new function(){this.PORTRAIT="PORTRAIT";this.LANDSCAPE="LANDSCAPE"};sa.BOX_LEN=15;Sa.TYPE_SIZE="size";Sa.TYPE_CONTINUOUS_COLOR="continuousColor";Sa.TYPE_DISCRETE_COLOR="discreteColor";ha.SEPARATER="_|_";var Na=new function(){var U;this.fakeCopy=
function(K){U||(U=$("<div>"),U.appendTo($(document.body)),U.css({position:"absolute",left:-1E3,top:-1E3}));U.text(K);var V=document.createRange();V.setStart(U[0],0);V.setEnd(U[0],0==K.length?0:1);K=window.getSelection();K.removeAllRanges();K.addRange(V)}}})();(function(){function sa(){function oa(){var D,I,J,Z;this.setStart=function(ia){I=ia};this.getStart=function(){return I};this.setEnd=function(ia){J=ia};this.getEnd=function(){return J};this.setRowNums=function(ia){D=ia};this.getRowNums=function(){return D};this.setContinuousRows=function(ia){Z=ia};this.isContinuousRows=function(){return Z};this.getRowsCount=function(){return Z?J:D.length};this.getRowNum=function(ia){return Z?ia:D[ia-1]};this.toJsonObject=function(){var ia={};ia.continuousRows=Z;ia.rowNumbers=
D;ia.start=I;ia.end=J;return ia};this.fromJsonObject=function(ia){Z=ia.continuousRows;D=ia.rowNumbers;I=ia.start;J=ia.end}}function Oa(){var D={},I={};this.collect=function(J){var Z=J.getDisplayName(),ia=D[Z];ia||(ia=[],D[Z]=ia);ia.push(J);I[J.getFullName()]=J};this.getDisplayName=function(J){var Z=J.getDisplayName(),ia=D[Z];return ia&&1<ia.length?(J=J.getFullDisplayName(),J=Ka.decodeFullName(J)[0],Z+"("+J+")"):Z};this.getVisibleMetaField=function(J){return I[J]}}eb.call(this);var ab=this,ca=this.protectedMethod,
fb=new O,lb,gb,qa,Aa,Fa,ka,Na,U,K,V,M=!1,A=1,ra,da;this.setContext=function(D,I,J,Z,ia){Fa=D;ka=I;Na=J;Aa=Z;qa=ia};this.setEncodedCoordinate=function(D){U=D};var va=this.showDialog;this.showDialog=function(){var D=$(document.body),I=D.prop("clientWidth");D=D.prop("clientHeight");var J=Math.min(1,Math.max(.8,1.16-2E-4*I)),Z=parseInt(J*I);I=parseInt(J*D);ab.setSize(Z,I);ca.setTitle(Ra.get("viewData","\u67e5\u770b\u6570\u636e"));ca.setSelectable(!0);ca.getDialogCtrl().setFullScreenEnabled();ca.getDialogCtrl().setResizeEnabled();
ca.getDialogCtrl().addResizeListener(function(){fb.resize()});ca.setFooterPaneCreator(null);ca.setContentPaneCreator(function(){return za(Z)});ca.setClosingAction(function(ia){});l();fb.setLoader(b);va();d(!1)};var za=function(D){var I=fb.getJqUi();lb=new x;lb.setChecked(!1);lb.setText(Ra.get("showAllFields","\u663e\u793a\u6240\u6709\u5b57\u6bb5"));lb.addCheckedListener(n);var J=$("<div>");J.append(I);J.append(lb.getJqUi());qa(function(Z){Z&&(gb=new ha,gb.addActionListener(a),gb.getJqUi().appendTo(J),
Q(!1));400>D&&gb?(ta.layoutCtrlWithLRTB(I,0,0,null,30,10,null),ta.layoutCtrlWithLRTB(gb.getJqUi(),null,0,100,0,null,23),ta.layoutCtrlWithLRTB(lb.getJqUi(),0,null,100,0,null,23)):(ta.layoutCtrlWithLRTB(I,0,0,null,0,10,null),Z=0,gb&&(ta.layoutCtrlWithLRTB(gb.getJqUi(),null,Z,100,0,null,23),Z+=120),ta.layoutCtrlWithLRTB(lb.getJqUi(),null,Z,100,0,null,23))});return J},Q=function(D){D?(gb.setText(Ra.get("exporting","\u6b63\u5728\u5bfc\u51fa...")),gb.setEnabled(!1)):(gb.setText(Ra.get("exportToExcel","\u5bfc\u51fa\u5230Excel")),
gb.setEnabled(!0))},n=function(D,I){1==A&&lb.isChecked()?(A=2,d(!0)):(k(),f(!0))},d=function(D){var I=Aa(function(Z){V=new oa;V.fromJsonObject(Z.dataRowInfo);K=Z.dataSourceCacheKey;2==A&&(A=3);fb.reset();fb.setTotalRowsCount(V.getRowsCount());0<V.getRowsCount()&&fb.loadRows()},function(Z,ia){A=1}),J=ka.createDependentMeta(Fa);I.setBlockingJqUi($(document.body));I.getDetailRowNums(J,ka,Na,U,D)},b=function(D,I){var J=new oa;J.setContinuousRows(V.isContinuousRows());V.isContinuousRows()?(J.setStart(D),
J.setEnd(I)):J.setRowNums(V.getRowNums().slice(D-1,I-D+1));D=Aa(c);D.setBlockingJqUi($(document.body));D.getDetailRowData(K,Fa,ka,J)},c=function(D){var I=D.dataSegment;D=D.columnInfos;3==A?(A=4,ra=k(D),e(D),f(),h(I,!0)):M?h(I,!1):(M=!0,da=k(),e(D),f(),h(I,!0))},a=function(D){if(0!=V.getRowsCount()){D=!lb.isChecked();var I=Aa(function(J){Q(!1);var Z=ja.formatDate("yyyyMMdd_HHmmss");ib.downloadFile("Qing-"+Z+".xlsx",J)},function(J,Z){Q(!1);return Ba.ExportHelper.facadeErrorHandler(J,Z)});I.setShowBlocking(!1);
Q(!0);I.exportDetailRowData(Fa,ka,K,D,V)}},e=function(D){fb.setupColumns(D.length,function(I){return Fa.searchMetaField(D[I])})},f=function(D){var I=lb.isChecked()?ra:da;fb.updateColumnsVisible(function(J){return I.getVisibleMetaField(J)?!0:!1},function(J){J=I.getVisibleMetaField(J);return I.getDisplayName(J)},D?!0:!1)},h=function(D,I){I?fb.appendRows(D.length,function(J,Z){return D[J][Z]}):fb.lazyAppendRows(D.length,function(J,Z){return D[J][Z]})},k=function(D){var I=new Oa;if(D)for(var J=0;J<D.length;J++){var Z=
Fa.searchMetaField(D[J]);I.collect(Z)}else for(D=ka.getUsingMetaFields(),J=0;J<D.length;J++)I.collect(D[J]);return I},l=function(){fb.hookOperation(function(){});ea.isRuntimeSupported()&&ka.getLinkTargets()&&r(function(D){fb.hookOperation(function(I,J){var Z=$("<div>");wa.background(Z,"icon_bill_linkage");ta.layoutCtrlCenterAlign(Z,12);ta.layoutCtrlMiddleAlign(Z,12);Z.css("cursor","pointer");Z.attr("title",Ra.get("linkage","\u5355\u636e\u8054\u67e5"));Z.appendTo(I);Z.on("click",function(ia){ia=V.getRowNum(J);
ia=z(ia,D);var Ta=fb.getJqUi().parent(),cb=[12,16];cb=ta.upwardCoordinate(Z[0],cb,Ta[0]);ia.show(Ta,cb[0],cb[1],Z,!0,[0,-20])})})})},r=function(D){var I=ka.getLinkTargets().copy().getUsefulItems();if(0!=I.length){for(var J=[],Z=0;Z<I.length;Z++)J.push(I[Z].getBizUiId());ea.lookupBizMeta(J,function(ia){for(var Ta=I.length-1;0<=Ta;Ta--){var cb=ia[Ta];cb?I[Ta].setUsableDisplayName(cb):I.splice(Ta,1)}0<I.length&&D(I)},!0)}},z=function(D,I){var J=new T,Z=y.createActionMenuItem(fa.makeDetailDataLinkageCaption(D));
Z.setEnabled(!1);J.addItemModel(Z);for(var ia=function(jb){return y.createActionMenuItem(cb,function(ya){fa.jumpToEditUi(jb,Aa,K,D,function(Ha,bb){!1===bb?ca.getMessageCurtain().showPrompt(Ha,-1):ca.getMessageCurtain().showSuccess(Ha)})})},Ta=0;Ta<I.length;Ta++){Z=I[Ta];var cb=fa.makeItemDisplay(Z);Z=ia(Z);J.addItemModel(Z)}I=new y;I.setModel(J);return I}}function Sa(){function oa(){eb.call(this);var U=this.protectedMethod,K,V;(function(){U.setTitle(Ra.get("linkage","\u5355\u636e\u8054\u67e5"));U.getDialogCtrl().setResizeEnabled();
U.setFooterPaneCreator(null);U.setContentPaneCreator(function(){return K=$("<div>")});U.setClosingAction(function(M){V&&V(M)})})();this.setClosingAction=function(M){V=M};this.setContent=function(M){ta.layoutCtrlWithLRTB(M,0,0,null,0,0,null);K.empty();K.append(M)};this.closeDialog=function(){U.destroy()}}var Oa,ab,ca,fb,lb,gb;this.setContext=function(U,K,V,M,A){Oa=U;ab=K;ca=V;fb=M;lb=A};this.jumping=function(){var U=ca.getLinkTargets().getRunnableItems();1<U.length?Aa(U,function(K){K&&qa(K)}):qa(U[0])};
var qa=function(U){var K=ca.createDependentMeta(ab,[U.getForeignKey()]),V=fa.makeJsonLongerClickedContext(lb);fa.jumpToListUi(U,V,Oa,K,ca,fb,function(M,A){ka(M,!1===A?8E3:5E3)},function(M,A){Fa(M,function(){A(!1)})})},Aa=function(U,K){var V=0,M=$("<div>");M.css("overflow","auto");for(var A=0;A<U.length;A++){var ra=U[A],da=fa.makeItemDisplay(ra),va=new ha;va.setText(da);va.setUserObject(ra);va.addActionListener(function(za){K(za.getUserObject())});va.getJqUi().appendTo(M);ta.layoutCtrlWithLRTB(va.getJqUi(),
0,0,null,V,null,30);V+=40}Na(400,80+V).setContent(M)},Fa=function(U,K){var V=new P(U);V.setAlign(P.ALIGN_CENTER);var M=new X(Ra.get("buttonConfirm","\u6211\u77e5\u9053\u4e86"));M.addActionListener(function(A){K()});U=$("<div>");U.append(V.getJqUi());U.append(M.getJqUi());ta.layoutCtrlWithLRTB(V.getJqUi(),0,0,null,0,50,null);ta.layoutCtrlWithLRTB(M.getJqUi(),null,null,null,null,10,26);ta.layoutCtrlCenterAlign(M.getJqUi(),100);V=Na(400,200);V.setContent(U);V.setClosingAction(function(A){K()})},ka=function(U,
K){U=new P(U);U.setAlign(P.ALIGN_CENTER);var V=$("<div>");V.append(U.getJqUi());ta.layoutCtrlWithLRTB(U.getJqUi(),0,0,null,0,20,null);var M=Na(400,200);M.setContent(V);setTimeout(function(){M.closeDialog()},K)},Na=function(U,K){gb||(gb=new oa,gb.setSize(U,K),gb.showDialog());return gb}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==
typeof com.kingdee.bos.qing.longer&&(com.kingdee.bos.qing.longer={});"undefined"==typeof com.kingdee.bos.qing.longer.ui&&(com.kingdee.bos.qing.longer.ui={});var Ba=com.kingdee.bos.qing.longer.ui;Ba.ExecutableExhibition=function(){Ba.Exhibition.call(this);var oa=this.protectedMethod,Oa,ab,ca,fb;this.setRenderingInterceptor=function(ka){ca=ka};this.setExecutedListener=function(ka){Oa=ka};this.setExcutedModelChangedListener=function(ka){ab=ka};this.initCacheLoader=function(){var ka=0;oa.setCacheLoader(function(Na,
U,K,V,M,A){var ra=(new Date).getTime();oa.createFacade(function(da){da.timestamp<ka||A(da.tableView)}).easter(ra,Na,U,K,V,M);ka=ra})};this.initTooltipsWidget=function(ka,Na,U,K,V){oa.initTooltipsWidget(ka,function(M){var A=U(),ra=K(),da=V(),va=new sa;va.setContext(A,ra,da,oa.createFacade,Na);va.setEncodedCoordinate(JSON.stringify(M));va.showDialog()},function(){return K().getLinkTargets()?!0:!1},function(M){var A=U(),ra=K(),da=V(),va=new Sa;va.setContext(oa.createFacade,A,ra,da,M);va.jumping()})};
this.clearExecuted=function(){qa(null)};this.execute=function(ka,Na,U,K){var V=oa.createFacade(function(A){Oa&&Oa(!0,void 0,void 0);var ra=A.tableView;A=A.filterPreparedValues;Aa(Na.getFilterFieldSet(),A,-1);qa(ra)},function(A,ra,da){A=[A,ra,da];Oa&&Oa(!1,A,V);return!0},function(){M.hideWaiting()});V.setCancelable(!0);V.setShowBlocking(!1);V.setProgressListener(function(A){M.hookProgressDisplayer(Ma.makeUiCreator(A))});ka=V.execute(ka,Na,U,K);var M=lb(ka)};this.filteringExecute=function(ka,Na,U,K,
V){var M=oa.createFacade(function(ra){Oa&&Oa(!0,void 0,void 0);var da=ra.tableView;ra=ra.filterPreparedValues;Aa(Na.getFilterFieldSet(),ra,V);qa(da)},function(ra,da,va){ra=[ra,da,va];Oa&&Oa(!1,ra,M);return!0},function(){A.hideWaiting()});M.setCancelable(!0);M.setShowBlocking(!1);M.setProgressListener(function(ra){A.hookProgressDisplayer(Ma.makeUiCreator(ra))});ka=M.filteringExecute(ka,Na,U,K,V);var A=lb(ka)};this.christmasExecute=function(ka,Na,U,K,V,M){V&&ea.isRuntimeSupported()&&Fa(Na);var A=oa.createFacade(function(da){if(A.getUserObject()==
fb){var va=function(){Oa&&Oa(!0,void 0,void 0);var za=da.tableView,Q=da.filterPreparedValues,n=da.filterSelectedValues,d=Na.getFilterFieldSet();if(0<d.getCount()){for(var b=0;b<d.getCount();b++){var c=Q[b],a=d.getFilter(b);c=ua.create(c);a.setPreparedModel(c);n&&!a.isFullValue()&&(c=n[b])&&a.applySelectedValues(c)}M&&M(d)}qa(za)};ca?(ca(va),ca=null):va()}},function(da,va,za){if(A.getUserObject()==fb){var Q=function(){var n=[da,va,za];Oa&&Oa(!1,n,A)};ca?(ca(Q),ca=null):Q()}return!0},function(){ra.hideWaiting()});
gb(A);A.setCancelable(!0);A.setShowBlocking(!1);A.setProgressListener(function(da){ra.hookProgressDisplayer(Ma.makeUiCreator(da))});ka=A.christmasExecute(ka,Na,U,K,V);var ra=lb(ka)};var lb=function(ka){var Na=new La;Na.setIconVisible(!0);Na.hookOwner(oa.getBlockingJqUi(),null);Na.showWaiting(Ma.getWaitingText(),ka);return Na},gb=function(ka){fb=(new Date).getTime();ka.setUserObject(fb)},qa=function(ka){oa.setExecutedModel(ka);ab&&ab(ka)},Aa=function(ka,Na,U){for(var K=0;K<Na.length;K++){var V=Na[K];
K!=U&&V&&ka.getFilter(K).updatePreparedModel(V)}},Fa=function(ka){if(ka=ka.getLinkTargets()){var Na=ka.getUsefulItems();if(0<Na.length){ka=[];for(var U=0;U<Na.length;U++)ka.push(Na[U].getBizUiId());ea.lookupBizMeta(ka,function(K){for(var V=0;V<Na.length;V++){var M=Na[V],A=K[V];A?(M.setRuntimeValid(!0),M.setUsableDisplayName(A)):M.setRuntimeValid(!1)}})}}}};Ba.ExportHelper=new function(){this.facadeErrorHandler=function(oa,Oa){return 800800==oa?(oa=new aa,oa.setOptionType(aa.OPTION_OK),oa.setMessage(Oa),
oa.showDialog(),!0):!1}};var ja,ta,Ra,ib,eb,x,ha,X,P,y,T,aa,ea,wa,O,fa,La,Ma,ua,Ka;(function(){var oa=com.kingdee.bos.qing.common;ja=oa.Util;ta=oa.DomUtil;oa=com.kingdee.bos.qing.framework.common;Ra=oa.MultilanguageManager.createPackageAccessor(Ba);ib=oa.RemoteFramework;oa=com.kingdee.bos.qing.ui.component;eb=oa.AbstractModalDialog;x=oa.CheckBox;ha=oa.WorkButton;X=oa.Button;P=oa.Label;y=oa.Menu;T=oa.MenuModel;aa=oa.MessageDialog;oa=com.kingdee.bos.qing.core;wa=oa.Icons;ea=oa.LinkageRegister;oa=com.kingdee.bos.qing.core.commonui;
O=oa.DataDetailTable;fa=oa.LinkageHelper;La=oa.LongtimeWaitingMask;Ma=oa.ExecutingProgressParser;oa=com.kingdee.bos.qing.core.model;ua=oa.AbstractFilterPreparedModel;Ka=oa.NameUtil})()})();(function(){function sa(){var m=this,p=[],v=[];this.append=function(q,t){p.push(q);v.push(t)};this.isContainKey=function(q){for(var t=0;t<p.length;t++)if(q==p[t])return!0;return!1};this.isContainKeys=function(q){for(var t=0;t<q.length;t++)if(m.isContainKey(q[t]))return!0;return!1};this.isContainItemModelSet=function(q){for(var t=0;t<v.length;t++)if(v[t]&&q==v[t].getItemModelSet())return!0;return!1};this.getTargetItemModels=function(q,t){for(var u=0;u<p.length;u++)if(t==p[u]&&v[u]&&q==v[u].getItemModelSet())return v[u].getItemModels();
return null};this.isContainChartPropertyKey=function(){for(var q=0;q<p.length;q++)if(p[q].substring(0,2)==ba.Prefix)return!0;return!1};this.isRepaintNeeded=function(){for(var q=0;q<p.length;q++){var t=p[q];if(t.substring(t.length-4)==ba.NeedRepaint)return!0}return!1};this.isExecuteNeeded=function(){for(var q=0;q<p.length;q++){var t=p[q];if(t.substring(t.length-4)==ba.NeedExecute)return!0}return!1};this.toString=function(){return p.join(";")+" <---\x3e "+v.join(";")}}function Sa(m,p){var v;this.getItemModelSet=
function(){return m};this.getItemModels=function(){return p};this.setSubEventTarget=function(q){v=q};this.getSubEventTarget=function(){return v};this.toString=function(){return m.constructor.name+(v?"-"+v.toString():"")};this.getSubEventMetaField=function(){return v?v.getSubEventMetaField():null}}function Ba(m){this.getSubEventMetaField=function(){return null};this.toString=function(){return m.constructor.name+m.getSquareField().getComplexText()}}function ja(){Ib.call(this);var m=this,p=this.protectedMethod,
v=new Xa,q,t,u,B;this.getBriefOutputableFieldsModel=function(){var H=m.getChart().getBriefOutputableDimensionsAndMeasures(),G=new kc;G.setDimensionFields(H[0]);G.setMeasureFields(H[1]);return G};this.addModelChangedListener=function(H){v.addListener(H)};this.removeModelChangedListener=function(H){v.removeListener(H)};var g=function(H){m.checkAllFields();v.fireEvent(function(G){G(H)})},C=function(H,G){p.isListenerDumb()||(t||(t=new sa),t.append(G,H),H&&H.getSubEventMetaField()?(q&&clearTimeout(q),
q=setTimeout(function(){g(t);t=null},50)):(g(t),t=null))};this.getFilterSet=function(){u||(u=new ib,u.setItemCountMin(0),u.setItemCountMax(65535),u.addChangedListener(C));return u};this.getChart=function(){B||m.setChart(new ya);return B};this.setChart=function(H){B&&(B.setChangedListener(null),B.awake(!1));if(B=H)B.setChangedListener(C),B.awake(!0);m.checkAllFields();C(null,ja.KEY_CHART_TYPE)};this.getChartTypeName=function(){return m.getChart().getChartTypeName()};this.isExecutableContentEmpty=function(){return m.getChart().isExecutableContentEmpty()};
this.getUsingMetaFields=function(H){var G=Hb.createSearchingUsingMetaFieldsTool(H);H=function(ma){G.checkField(ma.getMetaField())};B.lookupAllItemModelSet(H,!0);m.getFilterSet().traversalItems(H);return G.getUsingMetaFields()};this.createDependentMeta=function(H,G){var ma=H.getEliminationKeyMetaFields(),Va=H.getDimensionNecessityMetaFields();ma=ma.concat(Va);G=W(H,G,ma);return H.createExecutingCopy(G)};var W=function(H,G,ma){var Va=Hb.createSearchingUsingMetaFieldsTool(H),db=function(Ga){Va.checkField(Ga.getMetaField())};
B.lookupAllItemModelSet(db);m.getFilterSet().traversalItems(db);B.getChartProperty().lookupAllMetaFieldBinding(function(Ga){(Ga=H.searchMetaField(Ga))&&Va.checkField(Ga)});if(G)for(db=0;db<G.length;db++){var sb=H.searchMetaField(G[db]);sb&&Va.checkField(sb)}if(ma)for(db=0;db<ma.length;db++)sb=ma[db],Va.checkField(sb);return Va.getUsingMetaFields()};this.isAnyCalculatedFieldUsed=function(H){var G=!1,ma=function(Va){Va=Va.getMetaField();return!Va.getFormula()||H&&H!=Va.getFullName()?!1:G=!0};B.lookupAllItemModelSet(ma);
!G&&m.getFilterSet().traversalItems(ma);return G};this.howManyCalculatedFieldsUsed=function(){var H=0,G=function(ma){ma.getMetaField().getFormula()&&H++};B.lookupAllItemModelSet(G);m.getFilterSet().traversalItems(G);return H};this.checkAllFields=function(){B.lookupAllItemModelSet(Ia);m.getFilterSet().traversalItems(Ia);B.checkAllFieldsProblem()};var Ia=function(H){var G=H.getSquareField();H=H.getMetaField();var ma=H.getTable(),Va=ma&&ma.searchMetaField(H.getPureName())?!1:!0;ma=new wb.InvalidPrompt;
ma.setLevel(wb.InvalidPrompt.LEVEL_META_LOST,Va);G.setInvalidPrompt(ma);Va=H.isInvalid()?!0:!1;ma=new wb.InvalidPrompt;ma.setLevel(wb.InvalidPrompt.LEVEL_META_INVALID,Va);G.setInvalidPrompt(ma);ma=H.isRelativeAggregation();Va=G.getAggregation()==wb.AGGREGATION_AGG;H=wb.isAggregationFittedDataType(G.getAggregation(),H.getDataType());H=G.isMeasure()&&(ma&&!Va||!ma&&Va||!H);ma=new wb.InvalidPrompt;ma.setLevel(wb.InvalidPrompt.LEVEL_AGG,H);G.setInvalidPrompt(ma)},N=function(H){var G={},ma=[],Va=function(F){F=
F.getSquareField();var w=H?null:F.getId();w?G[w]=!0:ma.push(F)};m.getChart().lookupAllItemModelSet(Va);m.getFilterSet().traversalItems(Va);Va=1;for(var db=0;db<ma.length;db++){var sb=ma[db],Ga=null;do Ga="field"+Va++;while(G[Ga]);sb.setId(Ga);G[Ga]=!0}};this.toJsonObject=function(){N(!0);var H={};H.filters=u.toJsonObject(!0);var G=B.toJsonObject();G.chartType=B.getChartTypeName();H.chart=G;p.sharedToJsonObject(H);return H};this.fromJsonObject=function(H,G){var ma=H.filters;ma&&m.getFilterSet().fromJsonObject(x,
ma,G,!0);ma=H.chart;var Va=S(ma.chartType);Va.fromJsonObject(ma,G);m.setChart(Va);N(!1);p.sharedFromJsonObject(H)};var S=function(H){switch(H){case ja.ChartType_KPI:return new r;case ja.ChartType_Pie:return new D;case ja.ChartType_Ring:return new I;case ja.ChartType_Rose:return new J;case ja.ChartType_Column:return new ya;case ja.ChartType_StackedColumn:return new Ha;case ja.ChartType_PercentStackedColumn:return new bb;case ja.ChartType_Bar:return new Ta;case ja.ChartType_StackedBar:return new cb;
case ja.ChartType_PercentStackedBar:return new jb;case ja.ChartType_Line:return new ob;case ja.ChartType_Area:return new xa;case ja.ChartType_PercentArea:return new Ya;case ja.ChartType_Map:return new Ca;case ja.ChartType_GIS:return new mb;case ja.ChartType_Radar:return new tb;case ja.ChartType_ProgressBar:return new Bb;case ja.ChartType_ProgressColumn:return new Eb;case ja.ChartType_ProgressCircle:return new cc;case ja.ChartType_Dial:return new Yb;case ja.ChartType_Composite:return new Vb;case ja.ChartType_Grid:return new Zb;
case ja.ChartType_CustomList:return new Wb;case ja.ChartType_Waterfall:return new $b;case ja.ChartType_Funnel:return new Lb;case ja.ChartType_Scatter:return new Nb;case ja.ChartType_RectTree:return new ac;case ja.ChartType_Sunburst:return new Sb;default:throw Error("Modify here.");}}}function ta(){eb.call(this);wb.call(this);var m=this,p=this.protectedMethod;this.getSquareField=function(){return m};this.protectedCreateInstance=function(){return new ta};this.bindMetaEvent=function(){p.bindMetaEvent()};
this.setDiscreteColor=function(v){p.innerSetDiscreteColor(v)}}function Ra(){var m=this,p=0,v=1,q=[],t=new Xa;this.setItemCountMin=function(g){p=g};this.getItemCountMin=function(){return p};this.setItemCountMax=function(g){v=g};this.getItemCountMax=function(){return v};this.addChangedListener=function(g){t.addListener(g)};this.removeChangedListener=function(g){t.removeListener(g)};var u=function(g,C){t.fireEvent(function(W){W(g,C)})};this.getItemModelCount=function(){return q.length};this.getItemModel=
function(g){return q[g]};this.goodbyeItemModel=function(g){(g=q[g])&&g.clearListener();return g};this.getItemModelIndex=function(g){for(var C=0;C<q.length;C++)if(q[C]==g)return C;return-1};this.traversalItems=function(g){for(var C=!1,W=0;W<q.length&&!(C=g(q[W]));W++);return C};this.awake=function(g,C){C.removePropertyChangeListener(B);g&&C.addPropertyChangeListener(B)};this.addItemModel=function(g){q.push(g);g.addPropertyChangeListener(B);g.bindMetaEvent();u(new Sa(m,[g]),Ra.KEY_ADD)};this.insertItemModel=
function(g,C){q.splice(C,0,g);g.addPropertyChangeListener(B);g.bindMetaEvent();u(new Sa(m,[g]),Ra.KEY_ADD)};this.appendItemModels=function(g){for(var C=0;C<g.length;C++){var W=g[C];q.push(W);W.addPropertyChangeListener(B);W.bindMetaEvent()}u(new Sa(m,g),Ra.KEY_ADD)};this.removeItemModels=function(g){for(var C=0;C<g.length;C++){var W=g[C];W.clearListener();W=m.getItemModelIndex(W);q.splice(W,1)}u(new Sa(m,g),Ra.KEY_REMOVE)};this.removeItemModel=function(g){g.clearListener();var C=m.getItemModelIndex(g);
q.splice(C,1);u(new Sa(m,[g]),Ra.KEY_REMOVE)};this.moveItemModel=function(g,C){if(C>g){--C;var W=g}else W=g+1;g=q.splice(g,1)[0];q.splice(C,0,g);u(new Sa(m,[g]),Ra.KEY_MOVE);return[C,W]};var B=function(g,C){var W=new Sa(m);W.setSubEventTarget(g);u(W,C)};this.getInitialDateHierachyForField=function(g,C){if(g.getMetaField().getDataType()!=Mb.DT_DATE||g.getPartValue())return null;var W=[wb.PARTVALUE_DATE_YEAR,wb.PARTVALUE_DATE_QUARTER,wb.PARTVALUE_DATE_MONTH,wb.PARTVALUE_DATE_DAY];for(--C;0<=C;C--){var Ia=
q[C];if(Ia.getMetaField()==g.getMetaField()){Ia=Ia.getPartValue();for(var N=W.length-2;0<=N;N--)if(W[N]==Ia)return W[N+1]}}return wb.PARTVALUE_DATE_YEAR};this.toJsonObject=function(g){for(var C=[],W=0;W<q.length;W++)C.push(q[W].toJsonObject());return g?C:{fields:C}};this.fromJsonObject=function(g,C,W,Ia){C=C?Ia?C:C.fields:[];q=[];for(Ia=0;Ia<C.length;Ia++){var N=C[Ia],S=new g;S.fromJsonObject(N,W);S.bindMetaEvent();S.addPropertyChangeListener(B);q.push(S)}}}function ib(){Ra.call(this);var m=this;
this.copyFiltersForSetting=function(){for(var p=[],v=0;v<m.getItemModelCount();v++){var q=m.getItemModel(v);q.isOutsideAllowed()&&(q=q.getUsableFilter().copyForSetting(),p.push(q))}return p};this.applyFiltersFromSetting=function(p){for(var v=0,q=0;q<m.getItemModelCount();q++){var t=m.getItemModel(q);if(t.isOutsideAllowed()){t=t.getUsableFilter();var u=p[v++];t.applyFromSetting(u)}}};this.toInsteadJson=function(p){for(var v=0,q=[],t=0;t<m.getItemModelCount();t++){var u=m.getItemModel(t);if(u.isOutsideAllowed()){var B=
p[v++];q.push(u.toInsteadJson(B))}else q.push(u.toJsonObject())}return q}}function eb(){this.getMetaField=function(){throw Error("Override me.");};this.getSquareField=function(){throw Error("Override me.");};this.addPropertyChangeListener=function(m){throw Error("Override me.");};this.removePropertyChangeListener=function(m){throw Error("Override me.");};this.clearListener=function(){throw Error("Override me.");};this.toJsonObject=function(){throw Error("Override me.");};this.fromJsonObject=function(m,
p){throw Error("Override me.");};this.bindMetaEvent=function(){throw Error("Override me.");}}function x(){eb.call(this);var m=this,p=new Xa,v,q,t=!1;this.getMetaField=function(){return v.getMetaField()};this.setSquareField=function(g){v=g};this.getSquareField=function(){return v};this.setFilter=function(g){q&&q.removeValueChangedListener(B);(q=g)&&q.addValueChangedListener(B)};this.getFilter=function(){return q};this.getUsableFilter=function(){q.setAssociatedField(v);return q};this.setOutsideAllowed=
function(g){t=g};this.isOutsideAllowed=function(){return t};this.addPropertyChangeListener=function(g){p.addListener(g)};this.removePropertyChangeListener=function(g){p.removeListener(g)};this.clearListener=function(){p.removeAllListener()};var u=function(g){var C=new Ba(m);p.fireEvent(function(W){W(C,g)})},B=function(g){u(x.KEY_FILTER_VALUE)};this.toInsteadJson=function(g){var C=m.toJsonObject();C.filter=g.toJsonObject();return C};this.toJsonObject=function(){var g={};g.field=v.toJsonObject();g.filter=
q.toJsonObject();t&&(g.outsideAllowed=!0);return g};this.fromJsonObject=function(g,C){var W=g.field,Ia=new ta;Ia.fromJsonObject(W,C);m.setSquareField(Ia);C=g.filter;switch(C.name){case Ob.FILTER_NAME:q=new Ob;break;case dc.FILTER_NAME:q=new dc;break;case ec.FILTER_NAME:q=new ec;break;default:throw Error("Unknown filter name.");}q.fromJsonObject(C);q.addValueChangedListener(B);t=g.outsideAllowed?!0:!1};this.bindMetaEvent=function(){}}function ha(){var m,p,v=!1;this.addOneLevel=function(q,t){m&&p||
(m=[],p=[]);m.push(q);p.push(t)};this.setValueCount=function(q){0<=q&&q<m.length&&(m.length=q,p.length=q)};this.getValueCount=function(){return m?m.length:0};this.getValueByIndex=function(q){return m[q]};this.getTextByIndex=function(q){return p[q]};this.isPcdNextLevel=function(){return v};this.setPcdNextLevel=function(q){v=q};this.toJsonObject=function(){var q={};q.values=m;q.texts=p;q.pcdNextLevel=v;return q};this.fromJsonObject=function(q){m=q.values;p=q.texts;v=q.pcdNextLevel?!0:!1}}function X(){var m=
this,p=[],v=0,q=!1,t=new Xa;this.addStateChangedListener=function(B){t.addListener(B)};this.removeStateChangedListener=function(B){t.removeListener(B)};var u=function(){t.fireEvent(function(B){B(m)})};this.updateItemCountLimited=function(B){q=!1;for(var g=0,C=0,W=B.getItemModelCount();C<W;C++){if(B.getItemModel(C).isInvalid()){q=!0;break}g++}v=g};this.getCurrentRollInFieldCount=function(){var B=p.length;0<B&&p[B-1].isPcdNextLevel()&&B--;return B};this.isRollInNextFieldEnabled=function(){return m.getCurrentRollInFieldCount()<
v};this.isRollOutEnabled=function(){return 0<p.length&&!q};this.getItemCount=function(){return p.length};this.getItem=function(B){return p[B]};this.updateItems=function(B){var g=p;p=B;return g};this.backupItems=function(){for(var B=[],g=0;g<p.length;g++){for(var C=new ha,W=p[g],Ia=0;Ia<W.getValueCount();Ia++)C.addOneLevel(W.getValueByIndex(Ia),W.getTextByIndex(Ia)),C.setPcdNextLevel(W.isPcdNextLevel());B.push(C)}return B};this.restoreItems=function(B){p=B;u()};this.rollIn=function(B){for(var g=0;g<
B.length;g++){var C=B[g];C.isPcdNextLevel()?p.push(C):m.isRollInNextFieldEnabled()&&p.push(C)}u()};this.rollOut=function(B,g){if(0<g){var C=p[B];C.setValueCount(g);C.setPcdNextLevel(!0);p.length=B+1}else p.length=B;u()}}function P(){var m=320,p=190,v=20,q=20,t=40,u=20;this.isFullArea=function(){return 0>=m||0>=p};this.getWidth=function(){return m};this.getHeight=function(){return p};this.getPaddingLeft=function(){return v};this.getPaddingRight=function(){return q};this.getPaddingTop=function(){return t};
this.getPaddingBottom=function(){return u};this.toJsonObject=function(){var B={};B.width=m;B.height=p;B.paddingLeft=v;B.paddingRight=q;B.paddingTop=t;B.paddingBottom=u;return B};this.fromJsonObject=function(B){m=B.width;p=B.height;v=B.paddingLeft;q=B.paddingRight;t=B.paddingTop;u=B.paddingBottom}}function y(){var m=this,p=new Xa,v,q=!1,t=!1,u,B=y.ShowLegend_Right,g=y.ShowDataEmptyTips_Auto,C,W,Ia,N,S=!0;this.addChangedListener=function(G){p.addListener(G)};this.removeChangedListener=function(G){p.removeListener(G)};
var H=function(G,ma){p.fireEvent(function(Va){Va(G,ma)})};this.lookupAllMetaFieldBinding=function(G){};this.setTitle=function(G){v=G;H(y.KEY_TITLE,v)};this.getTitle=function(){return v};this.setShowLabel=function(G){q=G;H(y.KEY_SHOW_LABEL,q)};this.isShowLabel=function(){return q};this.setDataLabelOverlappable=function(G){t=G;H(y.KEY_LABEL_OVERLAPPABLE,t)};this.isDataLabelOverlappable=function(){return t};this.setLabelFormat=function(G){u=G;H(y.KEY_LABEL_FORMAT,u)};this.getLabelFormat=function(){return u};
this.setShowLegend=function(G){B=G;H(y.KEY_SHOW_LEGEND,B)};this.getShowLegend=function(){return B};this.setShowDataEmptyTips=function(G){g=G;H(y.KEY_SHOW_DATA_EMPTY_TIPS,g)};this.getShowDataEmptyTips=function(){return g};this.setDescription=function(G){C=G;H(y.KEY_DESCRIPTION,C)};this.getDescription=function(){return C};this.setLinkTargets=function(G){W=G;H(y.KEY_LINKAGE,W)};this.getLinkTargets=function(){return W};this.setStyleScripts=function(G){Ia=G;H(y.KEY_STYLE_SCRIPTS,Ia)};this.getStyleScripts=
function(){return Ia};this.setPalette=function(G){N=G;H(y.KEY_PALETTE,N)};this.getPalette=function(){return N};this.setAnimation=function(G){S=G;H(y.KEY_ANIMATION,S)};this.isAnimation=function(){return S};this.moveOut=function(G){G.title=v;G.labelOverlappable=t;G.labelFormat=u;G.showDataEmptyTips=g;G.description=C;G.linkTargets=W;G.palette=N;G.animation=S;var ma=m.protectedCustomMovingKey();G[ma[0]?ma[0]:"showLabel"]=q;G[ma[1]?ma[1]:"showLegend"]=B;m.protectedMoveOut(G)};this.moveIn=function(G){v=
G.title;t=G.labelOverlappable;u=G.labelFormat;g=G.showDataEmptyTips;C=G.description;S=G.animation;var ma=G.linkTargets;ma&&(W=ma);(ma=G.palette)&&(N=ma);ma=m.protectedCustomMovingKey();var Va=G[ma[0]?ma[0]:"showLabel"];void 0!==Va&&(q=Va);ma=G[ma[1]?ma[1]:"showLegend"];void 0!==ma&&(B=ma);m.protectedMoveIn(G)};this.protectedCustomMovingKey=function(){return["showLabel","showLegend"]};this.protectedMoveOut=function(G){throw Error("Override me");};this.protectedMoveIn=function(G){throw Error("Override me");
};this.toJsonObject=function(G){var ma={};ma.type=m.protectedGetTypeForJson();ma.title=v;q&&(ma.showLabel=!0);t&&(ma.labelOverlappable=!0);S&&(ma.animation=!0);ma.labelFormat=u;ma.showLegend=B;ma.showDataEmptyTips=g;ma.description=C;ma.styleScripts=Ia;N&&(ma.palette=N.toJsonObject());W&&G.isLinkageSupported()&&(ma.linkTargets=W.toJsonObject());m.protectedToJsonObject(ma,G);return ma};this.fromJsonObject=function(G,ma){v=G.title;q=G.showLabel?!0:!1;t=G.labelOverlappable?!0:!1;S=G.animation?!0:!1;u=
G.labelFormat;B=G.showLegend;g=G.showDataEmptyTips;C=G.description;Ia=G.styleScripts;N=null;var Va=G.palette;Va&&(N=new zb,N.fromJsonObject(Va));W=null;(Va=G.linkTargets)&&ma.isLinkageSupported()&&(W=new hc,W.fromJsonObject(Va));m.protectedFromJsonObject(G,ma)};this.protectedGetTypeForJson=function(){throw Error("Override me");};this.protectedToJsonObject=function(G,ma){throw Error("Override me");};this.protectedFromJsonObject=function(G,ma){throw Error("Override me");};this.toRenderAttr=function(G){G.setShowDataLabel(q);
G.setDataLabelOverlappable(t);G.setDataLabelFormat(u);G.setAnimation(S);switch(B){case y.ShowLegend_Right:var ma=hb.ShowLegend_Right;break;case y.ShowLegend_Bottom:ma=hb.ShowLegend_Bottom;break;default:ma=hb.ShowLegend_Non}G.setShowLegend(ma);m.protectedToRenderAttr(G)};this.protectedToRenderAttr=function(G){throw Error("Override me");};this.protectedMethod={fireChangedEvent:H,toRenderAttrForRulerScale:function(G){switch(G){case y.RulerScale_Linear:G=hb.RulerScale_Linear;break;case y.RulerScale_Log:G=
hb.RulerScale_Log;break;default:G=hb.RulerScale_Auto}return G},toRenderAttrForRulerStart:function(G){return G==y.RulerStart_Nonzero?hb.RulerStart_Nonzero:hb.RulerStart_Zero}}}function T(){var m=this.protectedMethod,p,v=null;this.setLegendFormat=function(q){p=q;m.fireChangedEvent(y.KEY_LEGEND_FORMAT,p)};this.getLegendFormat=function(){return p};this.setContinuousColor=function(q){v=q;m.fireChangedEvent(y.KEY_CONTINUOUS_COLOR,v)};this.getContinuousColor=function(){return v};m.moveInWithMixColorMode=
function(q){var t=q.legendFormat;t&&(p=t);v=q.continuousColor};m.moveOutWithMixColorMode=function(q){q.legendFormat=p;q.continuousColor=v};m.toJsonObjectWithMixColorMode=function(q,t){p&&(q.legendFormat=p);v&&(q.continuousColor=v.toJsonObject())};m.fromJsonObjectWithMixColorMode=function(q,t){p=q.legendFormat;v=null;if(q=q.continuousColor)v=new fc,v.fromJsonObject(q)}}function aa(){var m=this.protectedMethod,p=null;this.setTooltipsAutoDisplay=function(v){p=v;m.fireChangedEvent(y.KEY_TOOLTIPS_AUTO_DISPLAY,
p)};this.getTooltipsAutoDisplay=function(){return p};m.moveOutWithTooltipsAutoDisplay=function(v){v.tooltipsAutoDisplay=p};m.moveInWithTooltipsAutoDisplay=function(v){p=v.tooltipsAutoDisplay};m.toJsonObjectWithTooltipsAutoDisplay=function(v){p&&(v.tooltipsAutoDisplay=p.toJsonObject())};m.fromJsonObjectWithTooltipsAutoDisplay=function(v){p=null;if(v=v.tooltipsAutoDisplay)p=new ea,p.fromJsonObject(v)};m.toRenderAttrWithTooltipsAutoDisplay=function(v){v.setTooltipsSelfDrivingDuration(p?p.getDuration():
-1)}}function ea(){var m=2;this.setDuration=function(p){m=p};this.getDuration=function(){return m};this.toJsonObject=function(){var p={};p.duration=m;return p};this.fromJsonObject=function(p){m=p.duration}}function wa(){var m,p=!1,v=!1,q=null,t=!1,u=-1,B=!1;this.setChangedListener=function(g){m=g};this.setOrder=function(g,C){p=g;v=C;m()};this.isOrderByMeasure=function(){return p};this.isAsc=function(){return v};this.setSortAccording=function(g){q=g;m()};this.getSortAccording=function(){return q};
this.setTopnSwitch=function(g){(t=g)&&-1==u&&(u=8);m()};this.isTopnSwitch=function(){return t};this.setTopnItems=function(g){u=g;t=0>=u?!1:!0;m()};this.getTopnItems=function(){return u};this.setOthersAsAnItem=function(g){B=g;m()};this.isOthersAsAnItem=function(){return B};this.toJsonObject=function(){var g={};g.order=p?v?"ASC":"DESC":"NUL";g.according=q?q.toJsonObject():null;g.topN=t?u:-1;g.others=B;return g};this.fromJsonObject=function(g){var C=g.order;p="ASC"==C||"DESC"==C?!0:!1;v="ASC"==C?!0:
!1;q=null;if(C=g.according)q=new O,q.fromJsonObject(C);u=(C=g.topN)?C:-1;t=0>=u?!1:!0;B=g.others?!0:!1}}function O(){var m=this,p,v,q;this.setupMeasureIndexMode=function(t){p=t;q=v=null};this.setupAnyFieldMode=function(t,u){p=-1;v=t;q=u};this.isMeasureIndexMode=function(){return"number"==typeof p&&0<=p};this.isAnyFieldMode=function(){return v&&q};this.getMeasureIndex=function(){return p};this.getMetaFieldFullName=function(){return v};this.getAggregation=function(){return q};this.toJsonObject=function(){var t=
{};m.isMeasureIndexMode()&&(t.measure=p);m.isAnyFieldMode()&&(t.metaField=v,t.aggregation=q);return t};this.fromJsonObject=function(t){var u=t.measure;p=u||0===u?u:-1;v=t.metaField;q=t.aggregation}}function fa(){function m(){var g,C,W,Ia;this.isLoading=function(){return g?!1:!0};this.parseJson=function(N){g=N?N.content:"";C=(N=N?N.backImage:null)?N.url:null;W=N?N.pageWidth:0;Ia=N?N.pageHeight:0};this.getContent=function(){return g};this.getBackImageUrl=function(){return C};this.getPageWidth=function(){return W};
this.getPageHeight=function(){return Ia}}y.call(this);aa.call(this);T.call(this);var p=this,v=this.protectedMethod,q,t,u=null,B;this.setOutsideReference=function(g){u=null;q=g;v.fireChangedEvent(fa.KEY_TEMPLATE_REF,q)};this.getOutsideReference=function(){return q};this.setDimensionToRegion=function(g){!t&&(t=new La);t.setDimensionToRegion(g);v.fireChangedEvent(fa.KEY_REGION_MAPPING,t)};this.getDimensionToRegion=function(){!t&&(t=new La);return t.getDimensionToRegion()};this.rtTemplateLoaded=function(g){u=
new m;u.parseJson(g);g&&(B(),B=null)};this.askRtTemplateNeedReload=function(g){var C=u?!1:!0;C&&(B=g);return C};this.askRtTemplateLoading=function(g){var C=u&&u.isLoading();C&&(B=g);return C};this.protectedMoveOut=function(g){g.mapOutsideReference=q;g.mapRegionMapping=t;g.mapRtTemplate=u;v.moveOutWithTooltipsAutoDisplay(g);v.moveOutWithMixColorMode(g)};this.protectedMoveIn=function(g){var C=g.mapOutsideReference;C&&(q=C);(C=g.mapRegionMapping)&&(t=C);(C=g.mapRtTemplate)&&(u=C);v.moveInWithTooltipsAutoDisplay(g);
v.moveInWithMixColorMode(g)};this.protectedGetTypeForJson=function(){return"Map"};this.protectedToJsonObject=function(g,C){q&&(g.reference=q.toJsonObject());if(t){var W={};t.toJsonObject(W);g.regionMapping=W}v.toJsonObjectWithTooltipsAutoDisplay(g);v.toJsonObjectWithMixColorMode(g,C)};this.protectedFromJsonObject=function(g,C){q=null;var W=g.reference;W&&(q=new Tb,q.fromJsonObject(W));t=null;if(W=g.regionMapping)t=new La,t.fromJsonObject(W);u=null;v.fromJsonObjectWithTooltipsAutoDisplay(g);v.fromJsonObjectWithMixColorMode(g,
C)};this.protectedToRenderAttr=function(g){p.rtTemplateToRenderAttr(g);g.setRegionMapping(t);v.toRenderAttrWithTooltipsAutoDisplay(g)};this.rtTemplateToRenderAttr=function(g){g.setTemplateContent(u?u.getContent():"");g.setBackImageUrl(u?u.getBackImageUrl():null);g.setPageSize(u?u.getPageWidth():0,u?u.getPageHeight():0)}}function La(){var m,p;this.setDimensionToRegion=function(v){m=v};this.getDimensionToRegion=function(){return m};this.toJsonObject=function(v){m&&(v.mapping=m);if(p){var q={},t;for(t in p){var u=
{};p[t].toJsonObject(u);q[t]=u}v.subLevels=q}};this.fromJsonObject=function(v){m=v.mapping;v=v.subLevels;for(var q in v){var t=v[q],u=new La;u.fromJsonObject(t);!p&&(p={});p[q]=u}}}function Ma(){y.call(this);var m=this.protectedMethod,p=Ma.USAGE_MARKER,v,q=108.9535,t=34.2657,u=4,B;this.setUsage=function(g){p=g;m.fireChangedEvent(Ma.KEY_USAGE,p)};this.getUsage=function(){return p};this.setThird=function(g){v=g;m.fireChangedEvent(Ma.KEY_THIRD,v)};this.getThird=function(){return v};this.setCustomScript=
function(g){B=g;m.fireChangedEvent(Ma.KEY_SCRIPT,B)};this.getCustomScript=function(){return B};this.setInitialContext=function(g,C,W){q=g;t=C;u=W};this.getInitialLongitude=function(){return q};this.getInitialLatitude=function(){return t};this.getInitialZoom=function(){return u};this.protectedMoveOut=function(g){g.gisUsage=p;g.gisThird=v;g.gisCustomScript=B;g.gisInitialContext=[q,t,u]};this.protectedMoveIn=function(g){var C=g.gisUsage;C&&(p=C);(C=g.gisThird)&&(v=C);(C=g.gisCustomScript)&&(B=C);if(g=
g.gisInitialContext)q=g[0],t=g[1],u=g[2]};this.protectedGetTypeForJson=function(){return"GIS"};this.protectedToJsonObject=function(g){g.usage=p;g.third=v;g.longitude=1E-6*parseInt(1E6*q+.5);g.latitude=1E-6*parseInt(1E6*t+.5);g.zoom=u;g.customScript=B};this.protectedFromJsonObject=function(g){p=g.usage;v=g.third;q=parseFloat(g.longitude);t=parseFloat(g.latitude);u=g.zoom;B=g.customScript};this.protectedToRenderAttr=function(g){g.setPropertyDirty(!0);g.setLongitude(q);g.setLatitude(t);g.setZoom(u);
g.setUsage(p);g.setCustomScript(B)}}function ua(){y.call(this);var m=this,p=this.protectedMethod,v,q,t,u=0,B;this.setCaption=function(g){v=g;p.fireChangedEvent(ua.KEY_CAPTION,v)};this.getCaption=function(){return v};this.setPrimaryString=function(g){q=g;p.fireChangedEvent(ua.KEY_P_DISPLAY,q)};this.getPrimaryString=function(){return q};this.setSecondaryString=function(g){t=g;p.fireChangedEvent(ua.KEY_S_DISPLAY,t)};this.getSecondaryString=function(){return t};this.setDataEmptyInstead=function(g){u=
g;p.fireChangedEvent(ua.KEY_P_DATA_EMPTY_INSTEAD,u)};this.getDataEmptyInstead=function(){return u};this.setCustomStyles=function(g){B=g;p.fireChangedEvent(ua.KEY_P_CUSTOM_STYLES,B)};this.getCustomStyles=function(){return B};this.getPrimaryPostfix=function(){if(q){var g=q.indexOf("${0}$");return 0>g?q:q.substring(g+5)}return""};this.setPrimaryPostfix=function(g){m.setPrimaryString("${0}$"+(g?g:""))};this.getSecondaryPrefix=function(){if(t){var g=t.indexOf("${0}$");return 0>g?"":t.substring(0,g)}return""};
this.setSecondaryPrefix=function(g){m.setSecondaryString((g?g:"")+"${0}$"+m.getSecondaryPostfix())};this.getSecondaryPostfix=function(){if(t){var g=t.indexOf("${0}$");return 0>g?t:t.substring(g+5)}return""};this.setSecondaryPostfix=function(g){m.setSecondaryString(m.getSecondaryPrefix()+"${0}$"+(g?g:""))};this.protectedMoveOut=function(g){g.caption=v;g.primaryString=q;g.secondaryString=t;g.dataEmptyInstead=u;g.kpiCustomStyles=B;g.kpiStyleScripts=m.getStyleScripts()};this.protectedMoveIn=function(g){var C=
g.caption;C&&(v=C);(C=g.primaryString)&&(q=C);(C=g.secondaryString)&&(t=C);C=g.dataEmptyInstead;void 0!==C&&(u=C);(C=g.kpiCustomStyles)&&(B=C);g.kpiStyleScripts&&m.setStyleScripts(g.kpiStyleScripts)};this.protectedGetTypeForJson=function(){return"KPI"};this.protectedToJsonObject=function(g){v&&(g.caption=v);q&&(g.primaryString=q);t&&(g.secondaryString=t);B&&(g.customStyles=B.toJsonObject());g.primaryInstead=u};this.protectedFromJsonObject=function(g){v=g.caption;q=g.primaryString;t=g.secondaryString;
var C=parseFloat(g.primaryInstead);!isNaN(C)&&(u=C);B=null;if(g=g.customStyles)B=new Ka,B.fromJsonObject(g)};this.protectedToRenderAttr=function(g){}}function Ka(){var m=this,p=new Ub,v=new Ub,q=new Ub,t=new Ub,u=new Ub;this.getCaptionStyleItem=function(){return p};this.getPrimaryValueStyleItem=function(){return v};this.getPrimaryTextStyleItem=function(){return q};this.getSecondaryValueStyleItem=function(){return t};this.getSecondaryTextStyleItem=function(){return u};this.copy=function(){var W=new Ka;
W.fromJsonObject(m.toJsonObject());return W};this.isColorEmpty=function(){return B("getColor")};this.separateColor=function(){return g("setColor","getColor")};this.mergeColorFrom=function(W){C(W,"setColor","getColor")};this.isFontEmpty=function(){return B("getFontSize")};this.separateFont=function(){return g("setFontSize","getFontSize")};this.mergeFontFrom=function(W){C(W,"setFontSize","getFontSize")};this.isAlignEmpty=function(){return B("getAlign")};this.separateAlign=function(){return g("setAlign",
"getAlign")};this.mergeAlignFrom=function(W){C(W,"setAlign","getAlign")};var B=function(W){return p[W]()||v[W]()||q[W]()||t[W]()||u[W]()?!1:!0},g=function(W,Ia){if(B(Ia))return null;var N=new Ka;N.getCaptionStyleItem()[W](p[Ia]());N.getPrimaryValueStyleItem()[W](v[Ia]());N.getPrimaryTextStyleItem()[W](q[Ia]());N.getSecondaryValueStyleItem()[W](t[Ia]());N.getSecondaryTextStyleItem()[W](u[Ia]());return N},C=function(W,Ia,N){p[Ia](W?W.getCaptionStyleItem()[N]():null);v[Ia](W?W.getPrimaryValueStyleItem()[N]():
null);q[Ia](W?W.getPrimaryTextStyleItem()[N]():null);t[Ia](W?W.getSecondaryValueStyleItem()[N]():null);u[Ia](W?W.getSecondaryTextStyleItem()[N]():null)};this.toJsonObject=function(){var W={};W.c=p.toJsonObject();W.pv=v.toJsonObject();W.pt=q.toJsonObject();W.sv=t.toJsonObject();W.st=u.toJsonObject();return W};this.fromJsonObject=function(W){p.fromJsonObject(W.c);v.fromJsonObject(W.pv);q.fromJsonObject(W.pt);t.fromJsonObject(W.sv);u.fromJsonObject(W.st)}}function oa(){y.call(this);var m=this.protectedMethod,
p=this,v=!0,q,t=!1,u,B=y.RulerScale_Linear,g,C,W=y.RulerStart_Zero,Ia,N;this.lookupAllMetaFieldBinding=function(S){if(v&&N&&N.getSortAccording()){var H=N.getSortAccording().getMetaFieldFullName();H&&S(H)}};this.setSortSupported=function(S){v=S};this.setXUnitText=function(S){q=S;m.fireChangedEvent(Oa.KEY_X_UNIT_TEXT,q)};this.getXUnitText=function(){return q};this.setXShowAssistantLine=function(S){t=S;m.fireChangedEvent(Oa.KEY_X_ASSISTANT_LINE,t)};this.isXShowAssistantLine=function(){return t};this.setYUnitText=
function(S){u=S;m.fireChangedEvent(Oa.KEY_Y_UNIT_TEXT,u)};this.getYUnitText=function(){return u};this.setYRulerScale=function(S){B=S;m.fireChangedEvent(Oa.KEY_Y_RULER_SCALE,B)};this.getYRulerScale=function(){return B};this.setYRulerScope=function(S){g=S[0];C=S[1];W=S[2];m.fireChangedEvent(Oa.KEY_Y_RULER_START,W)};this.getYRulerScope=function(){return[g,C,W]};this.setReflines=function(S){Ia=S;m.fireChangedEvent(Oa.KEY_REFLINES,Ia)};this.getReflines=function(){return Ia};this.getSort=function(){N||
(N=new wa,N.setChangedListener(function(){m.fireChangedEvent(Oa.KEY_SORT,N)}));return N};this.protectedMoveOut=function(S){S.cAxisUnitText=q;S.cAxisAssistantLine=t;S.pAxisUnitText=u;S.pAxisRulerScale=B;S.pAxisRulerMin=g;S.pAxisRulerMax=C;S.pAxisRulerStart=W;S.pAxisReflines=Ia;v&&N&&(S.sort=N.toJsonObject());S.styleScripts=p.getStyleScripts()};this.protectedMoveIn=function(S){var H=S.cAxisUnitText;H&&(q=H);H=S.cAxisAssistantLine;void 0!==H&&(t=H);(H=S.pAxisUnitText)&&(u=H);(H=S.pAxisRulerScale)&&(B=
H);(H=S.pAxisRulerMin)&&(g=H);(H=S.pAxisRulerMax)&&(C=H);(H=S.pAxisRulerStart)&&(W=H);(H=S.pAxisReflines)&&(Ia=H);H=S.sort;v&&H&&p.getSort().fromJsonObject(H);(S=S.styleScripts)&&p.setStyleScripts(S)};this.protectedGetTypeForJson=function(){return"XSYN"};this.protectedToJsonObject=function(S){q&&(S.xUnitText=q);t&&(S.xShowAssistantLine=t);u&&(S.yUnitText=u);B&&(S.yRulerScale=B);g&&(S.yRulerMin=g);C&&(S.yRulerMax=C);W&&(S.yRulerStart=W);if(Ia){for(var H=[],G=0;G<Ia.length;G++)H.push(Ia[G].toJsonObject());
S.reflines=H}v&&N&&(S.sort=N.toJsonObject())};this.protectedFromJsonObject=function(S){q=S.xUnitText;t=S.xShowAssistantLine?!0:!1;u=S.yUnitText;B=(B=S.yRulerScale)?B:y.RulerScale_Linear;g=S.yRulerMin;C=S.yRulerMax;W=(W=S.yRulerStart)?W:y.RulerStart_Zero;var H=S.reflines;if(H){Ia=[];for(var G=0;G<H.length;G++){var ma=H[G],Va=new Kb;Va.fromJsonObject(ma);Ia.push(Va)}}S=S.sort;v&&S&&p.getSort().fromJsonObject(S)};this.protectedToRenderAttr=function(S){S.setXUnitText(q);S.setXShowAssistantLine(t);S.setYUnitText(u);
S.setYRulerScale(m.toRenderAttrForRulerScale(B));S.setYRulerMin(g?parseFloat(g):null);S.setYRulerMax(C?parseFloat(C):null);S.setYRulerStart(m.toRenderAttrForRulerStart(W))}}function Oa(){oa.call(this);var m=this.protectedMethod,p="#,##0";this.setYFormat=function(g){p=g;m.fireChangedEvent(Oa.KEY_Y_FORMAT,p)};this.getYFormat=function(){return p};var v=this.protectedMoveOut;this.protectedMoveOut=function(g){v(g);g.pAxisFormat=p};var q=this.protectedMoveIn;this.protectedMoveIn=function(g){q(g);g=g.pAxisFormat;
void 0!==g&&(p=g)};var t=this.protectedToJsonObject;this.protectedToJsonObject=function(g){t(g);p&&(g.yFormat=p)};var u=this.protectedFromJsonObject;this.protectedFromJsonObject=function(g){u(g);p=g.yFormat};var B=this.protectedToRenderAttr;this.protectedToRenderAttr=function(g){B(g);g.setYFormat(p)}}function ab(){oa.call(this);var m=this.protectedMethod,p="{-2}0.00%";this.setYFormat=function(g){p=g;m.fireChangedEvent(Oa.KEY_Y_FORMAT,p)};this.getYFormat=function(){return p};var v=this.protectedMoveOut;
this.protectedMoveOut=function(g){v(g);g.pAxisFormatForPercent=p};var q=this.protectedMoveIn;this.protectedMoveIn=function(g){q(g);g=g.pAxisFormatForPercent;void 0!==g&&(p=g)};var t=this.protectedToJsonObject;this.protectedToJsonObject=function(g){t(g);p&&(g.yFormat=p)};var u=this.protectedFromJsonObject;this.protectedFromJsonObject=function(g){u(g);p=g.yFormat};var B=this.protectedToRenderAttr;this.protectedToRenderAttr=function(g){B(g);g.setYFormat(p)}}function ca(){var m=this.protectedMethod,p=
!1,v=!1,q=ca.CONNECT_NULL_AS_DIRECT;this.setSmooth=function(t){p=t;m.fireChangedEvent(ca.KEY_SMOOTH,p)};this.isSmooth=function(){return p};this.setPaintingPoint=function(t){v=t;m.fireChangedEvent(ca.KEY_PAINT_POINT,v)};this.isPaintingPoint=function(){return v};this.setZeroInsteadNull=function(t){q=t?ca.CONNECT_NULL_AS_ZERO:ca.CONNECT_NULL_AS_DIRECTION;m.fireChangedEvent(ca.KEY_CONNECT_NULL_AS,t)};this.isZeroInsteadNull=function(){return q==ca.CONNECT_NULL_AS_ZERO};m.lineMoveOut=function(t){t.lineChart=
[p,v,q]};m.lineMoveIn=function(t){if(t=t.lineChart)p=t[0],v=t[1],q=t[2]};m.lineToJsonObject=function(t){t.smooth=p;t.paintPoint=v;t.connectNullAs=q==ca.CONNECT_NULL_AS_ZERO?"ZERO":null};m.lineFromJsonObject=function(t){p=t.smooth;v=t.paintPoint;q="ZERO"==t.connectNullAs?ca.CONNECT_NULL_AS_ZERO:ca.CONNECT_NULL_AS_DIRECTION};m.lineToRenderAttr=function(t){t.setSmooth(p);t.setPaintingPoint(v);t.setZeroInsteadNull(q==ca.CONNECT_NULL_AS_ZERO)}}function fb(){Oa.call(this);ca.call(this);var m=this.protectedMethod,
p=!1;this.setTooltipsSorted=function(g){p=g;m.fireChangedEvent(fb.KEY_TOOLTIPS_SORTED,p)};this.isTooltipsSorted=function(){return p};var v=this.protectedMoveOut;this.protectedMoveOut=function(g){v(g);m.lineMoveOut(g);g.tooltipsSorted=p};var q=this.protectedMoveIn;this.protectedMoveIn=function(g){q(g);m.lineMoveIn(g);g=g.tooltipsSorted;void 0!==g&&(p=g)};this.protectedGetTypeForJson=function(){return"Line"};var t=this.protectedToJsonObject;this.protectedToJsonObject=function(g){t(g);m.lineToJsonObject(g);
g.tooltipsSorted=p};var u=this.protectedFromJsonObject;this.protectedFromJsonObject=function(g){u(g);m.lineFromJsonObject(g);p=g.tooltipsSorted};var B=this.protectedToRenderAttr;this.protectedToRenderAttr=function(g){B(g);m.lineToRenderAttr(g);g.setTooltipsSorted(p)}}function lb(){y.call(this);var m=this.protectedMethod,p=this,v=!0,q,t,u=y.RulerScale_Linear,B,g,C=y.RulerStart_Zero,W,Ia;this.lookupAllMetaFieldBinding=function(N){if(v&&Ia&&Ia.getSortAccording()){var S=Ia.getSortAccording().getMetaFieldFullName();
S&&N(S)}};this.setSortSupported=function(N){v=N};this.setYUnitText=function(N){q=N;m.fireChangedEvent(gb.KEY_Y_UNIT_TEXT,q)};this.getYUnitText=function(){return q};this.setXUnitText=function(N){t=N;m.fireChangedEvent(gb.KEY_X_UNIT_TEXT,t)};this.getXUnitText=function(){return t};this.setXRulerScale=function(N){u=N;m.fireChangedEvent(gb.KEY_X_RULER_SCALE,u)};this.getXRulerScale=function(){return u};this.setXRulerScope=function(N){B=N[0];g=N[1];C=N[2];m.fireChangedEvent(gb.KEY_X_RULER_START,C)};this.getXRulerScope=
function(){return[B,g,C]};this.setReflines=function(N){W=N;m.fireChangedEvent(gb.KEY_REFLINES,W)};this.getReflines=function(){return W};this.getSort=function(){Ia||(Ia=new wa,Ia.setChangedListener(function(){m.fireChangedEvent(gb.KEY_SORT,Ia)}));return Ia};this.protectedMoveOut=function(N){N.cAxisUnitText=q;N.pAxisUnitText=t;N.pAxisRulerScale=u;N.pAxisRulerMin=B;N.pAxisRulerMax=g;N.pAxisRulerStart=C;N.pAxisReflines=W;v&&Ia&&(N.sort=Ia.toJsonObject());N.styleScripts=p.getStyleScripts()};this.protectedMoveIn=
function(N){var S=N.cAxisUnitText;S&&(q=S);(S=N.pAxisUnitText)&&(t=S);(S=N.pAxisRulerScale)&&(u=S);(S=N.pAxisRulerMin)&&(B=S);(S=N.pAxisRulerMax)&&(g=S);(S=N.pAxisRulerStart)&&(C=S);(S=N.pAxisReflines)&&(W=S);S=N.sort;v&&S&&p.getSort().fromJsonObject(S);(N=N.styleScripts)&&p.setStyleScripts(N)};this.protectedGetTypeForJson=function(){return"YSXN"};this.protectedToJsonObject=function(N){q&&(N.yUnitText=q);t&&(N.xUnitText=t);u&&(N.xRulerScale=u);B&&(N.xRulerMin=B);g&&(N.xRulerMax=g);C&&(N.xRulerStart=
C);if(W){for(var S=[],H=0;H<W.length;H++)S.push(W[H].toJsonObject());N.reflines=S}v&&Ia&&(N.sort=Ia.toJsonObject())};this.protectedFromJsonObject=function(N){q=N.yUnitText;t=N.xUnitText;u=(u=N.xRulerScale)?u:y.RulerScale_Linear;B=N.xRulerMin;g=N.xRulerMax;C=(C=N.xRulerStart)?C:y.RulerStart_Zero;var S=N.reflines;if(S){W=[];for(var H=0;H<S.length;H++){var G=S[H],ma=new Kb;ma.fromJsonObject(G);W.push(ma)}}N=N.sort;v&&N&&p.getSort().fromJsonObject(N)};this.protectedToRenderAttr=function(N){N.setYUnitText(q);
N.setXUnitText(t);N.setXRulerScale(m.toRenderAttrForRulerScale(u));N.setXRulerMin(B?parseFloat(B):null);N.setXRulerMax(g?parseFloat(g):null);N.setXRulerStart(m.toRenderAttrForRulerStart(C))}}function gb(){lb.call(this);var m=this.protectedMethod,p="#,##0";this.setXFormat=function(g){p=g;m.fireChangedEvent(gb.KEY_X_FORMAT,p)};this.getXFormat=function(){return p};var v=this.protectedMoveOut;this.protectedMoveOut=function(g){v(g);g.pAxisFormat=p};var q=this.protectedMoveIn;this.protectedMoveIn=function(g){q(g);
g=g.pAxisFormat;void 0!==g&&(p=g)};var t=this.protectedToJsonObject;this.protectedToJsonObject=function(g){t(g);p&&(g.xFormat=p)};var u=this.protectedFromJsonObject;this.protectedFromJsonObject=function(g){u(g);p=g.xFormat};var B=this.protectedToRenderAttr;this.protectedToRenderAttr=function(g){B(g);g.setXFormat(p)}}function qa(){lb.call(this);var m=this.protectedMethod,p="{-2}0.00%";this.setXFormat=function(g){p=g;m.fireChangedEvent(gb.KEY_X_FORMAT,p)};this.getXFormat=function(){return p};var v=
this.protectedMoveOut;this.protectedMoveOut=function(g){v(g);g.pAxisFormatForPercent=p};var q=this.protectedMoveIn;this.protectedMoveIn=function(g){q(g);g=g.pAxisFormatForPercent;void 0!==g&&(p=g)};var t=this.protectedToJsonObject;this.protectedToJsonObject=function(g){t(g);p&&(g.xFormat=p)};var u=this.protectedFromJsonObject;this.protectedFromJsonObject=function(g){u(g);p=g.xFormat};var B=this.protectedToRenderAttr;this.protectedToRenderAttr=function(g){B(g);g.setXFormat(p)}}function Aa(){y.call(this);
var m=this.protectedMethod,p=-1,v=Aa.SHOW_LABEL_PERCENT,q=!1,t=Aa.LegendOrderMode_AUTO;this.setTopN=function(u){p=u;m.fireChangedEvent(Aa.KEY_TOPN,p)};this.getTopN=function(){return p};this.setLabelType=function(u){v=u;m.fireChangedEvent(Aa.KEY_LABEL_TYPE,v)};this.getLabelType=function(){return v};this.setIgnoreNegative=function(u){q=u;m.fireChangedEvent(y.KEY_NEGATIVE,q)};this.isIgnoreNegative=function(){return q};this.setLegendOrderMode=function(u){t=u;m.fireChangedEvent(Aa.KEY_LEGEND_ORDER_MODE,
t)};this.getLegendOrderMode=function(){return t};this.protectedMoveOut=function(u){u.topN=p;u.labelType=v;u.ignoreNegative=q;u.legendOrderMode=t};this.protectedMoveIn=function(u){var B=u.topN;B&&(p=B);(B=u.labelType)&&(v=B);B=u.ignoreNegative;!0!==B&&!1!==B||(q=B);(u=u.legendOrderMode)&&(t=u)};this.protectedToJsonObject=function(u){0<=p&&(u.topN=p);u.labelType=v;q&&(u.hideNegative=q);u.legendOrderMode=t};this.protectedFromJsonObject=function(u){p=(p=u.topN)?p:-1;v=u.labelType;q=u.hideNegative?!0:
!1;t=u.legendOrderMode};this.protectedToRenderAttr=function(u){var B=0;(v&Aa.SHOW_LABEL_NAME)==Aa.SHOW_LABEL_NAME&&(B|=nb.SHOW_LABEL_NAME);(v&Aa.SHOW_LABEL_NUMBER)==Aa.SHOW_LABEL_NUMBER&&(B|=nb.SHOW_LABEL_NUMBER);(v&Aa.SHOW_LABEL_PERCENT)==Aa.SHOW_LABEL_PERCENT&&(B|=nb.SHOW_LABEL_PERCENT);u.setDataLabelType(B);u.setIgnoreNegative(q)}}function Fa(){Aa.call(this);this.protectedGetTypeForJson=function(){return"Pie"}}function ka(){Aa.call(this);var m=this.protectedMethod,p=!0;this.setShowTotal=function(g){p=
g;m.fireChangedEvent(ka.KEY_SHOW_TOTAL,p)};this.isShowTotal=function(){return p};var v=this.protectedMoveOut;this.protectedMoveOut=function(g){v(g);g.showTotal=p};var q=this.protectedMoveIn;this.protectedMoveIn=function(g){q(g);g=g.showTotal;!0!==g&&!1!==g||(p=g)};this.protectedGetTypeForJson=function(){return"Ring"};var t=this.protectedToJsonObject;this.protectedToJsonObject=function(g){t(g);p&&(g.showTotal=p)};var u=this.protectedFromJsonObject;this.protectedFromJsonObject=function(g){u(g);p=g.showTotal?
!0:!1};var B=this.protectedToRenderAttr;this.protectedToRenderAttr=function(g){B(g);g.setHollow(!0);g.setShowTotalWhenHollow(p)}}function Na(){Aa.call(this);var m=this.protectedMethod,p=!1;this.setAverageAngle=function(g){p=g;m.fireChangedEvent(Na.KEY_AVERAGE_ANGLE,p)};this.isAverageAngle=function(){return p};var v=this.protectedMoveOut;this.protectedMoveOut=function(g){v(g);g.averageAngle=p};var q=this.protectedMoveIn;this.protectedMoveIn=function(g){q(g);g=g.averageAngle;!0!==g&&!1!==g||(p=g)};
this.protectedGetTypeForJson=function(){return"Rose"};var t=this.protectedToJsonObject;this.protectedToJsonObject=function(g){t(g);p&&(g.averageAngle=p)};var u=this.protectedFromJsonObject;this.protectedFromJsonObject=function(g){u(g);p=g.averageAngle?!0:!1};var B=this.protectedToRenderAttr;this.protectedToRenderAttr=function(g){B(g);g.setPresentByRadius(!0);g.setPresentByAngle(!p)}}function U(){y.call(this);var m=this.protectedMethod,p="#,##0",v=U.OUTER_CIRCLE_DIMENSION,q=!0,t=!0;this.setRadarFormat=
function(u){p=u;m.fireChangedEvent(U.KEY_RADAR_FORMAT,p)};this.getRadarFormat=function(){return p};this.setOuterCircle=function(u){v=u;m.fireChangedEvent(U.KEY_OUTER_CIRCLE,v)};this.getOuterCircle=function(){return v};this.setShowRulerMarkLabel=function(u){q=u;m.fireChangedEvent(U.KEY_SHOW_RULER_MARK_LABEL,q)};this.isShowRulerMarkLabel=function(){return q};this.setFillColor=function(u){t=u;m.fireChangedEvent(U.KEY_FILL_COLOR,t)};this.isFillColor=function(){return t};this.protectedMoveOut=function(u){u.pAxisFormat=
p;u.radarOuterCircle=v;u.radarShowRulerMarkLabel=q;u.radarFillColor=t};this.protectedMoveIn=function(u){var B=u.pAxisFormat;void 0!==B&&(p=B);(B=u.radarOuterCircle)&&(v=B);((B=u.radarShowRulerMarkLabel)||!1===B)&&(q=B?!0:!1);((u=u.radarFillColor)||!1===u)&&(t=u?!0:!1)};this.protectedGetTypeForJson=function(){return"Radar"};this.protectedToJsonObject=function(u){u.axisFormat=p;u.outerCircle=v;q&&(u.showRulerMarkLabel=!0);t&&(u.fillColor=!0)};this.protectedFromJsonObject=function(u){p=u.axisFormat;
v=u.outerCircle;q=u.showRulerMarkLabel?!0:!1;t=u.fillColor?!0:!1};this.protectedToRenderAttr=function(u){u.setRadarFormat(p);u.setShowRulerMarkLabel(q);u.setDimensionOutside(v==U.OUTER_CIRCLE_DIMENSION);u.setFillColor(t)}}function K(){var m=this.protectedMethod,p=K.SHOW_LABEL_NUMBER,v;this.setLabelType=function(q){p=q;m.fireChangedEvent(K.KEY_LABEL_TYPE,p)};this.getLabelType=function(){return p};this.setThicknessPercent=function(q){v=q;m.fireChangedEvent(K.KEY_THICKNESS_PERCENT,v)};this.getThicknessPercent=
function(){return v?v:100};m.progressMoveOut=function(q){q.progressThicknessPercent=v};m.progressMoveIn=function(q){q=q.progressThicknessPercent;void 0!==q&&(v=q)};m.progressToJsonObject=function(q){100!=v&&(q.thicknessPercent=v)};m.progressFromJsonObject=function(q){v=q.thicknessPercent};m.progressToRenderAttr=function(q){q.setOverlapShrinkingPercent(v)}}function V(){K.multiExtends(gb,this);var m=this,p=this.protectedMethod,v=this.protectedMoveOut;this.protectedMoveOut=function(g){v(g);p.progressMoveOut(g);
g.progressLabelType=m.getLabelType()};var q=this.protectedMoveIn;this.protectedMoveIn=function(g){q(g);p.progressMoveIn(g);g=g.progressLabelType;void 0!==g&&m.setLabelType(g)};var t=this.protectedToJsonObject;this.protectedToJsonObject=function(g){t(g);p.progressToJsonObject(g);var C=m.getLabelType();C&&(g.labelType=C)};var u=this.protectedFromJsonObject;this.protectedFromJsonObject=function(g){u(g);p.progressFromJsonObject(g);m.setLabelType(g.labelType)};this.protectedGetTypeForJson=function(){return"ProgressBar"};
var B=this.protectedToRenderAttr;this.protectedToRenderAttr=function(g){B(g);p.progressToRenderAttr(g);g.setLabelType(m.getLabelType())}}function M(){K.multiExtends(Oa,this);var m=this,p=this.protectedMethod,v=this.protectedMoveOut;this.protectedMoveOut=function(g){v(g);p.progressMoveOut(g);g.progressLabelType=m.getLabelType()};var q=this.protectedMoveIn;this.protectedMoveIn=function(g){q(g);p.progressMoveIn(g);g=g.progressLabelType;void 0!==g&&m.setLabelType(g)};var t=this.protectedToJsonObject;
this.protectedToJsonObject=function(g){t(g);p.progressToJsonObject(g);var C=m.getLabelType();C&&(g.labelType=C)};var u=this.protectedFromJsonObject;this.protectedFromJsonObject=function(g){u(g);p.progressFromJsonObject(g);m.setLabelType(g.labelType)};this.protectedGetTypeForJson=function(){return"ProgressColumn"};var B=this.protectedToRenderAttr;this.protectedToRenderAttr=function(g){B(g);p.progressToRenderAttr(g);g.setLabelType(m.getLabelType())}}function A(){K.multiExtends(y,this);var m=this.protectedMethod,
p=0,v=!0,q=0,t=$a.get("progressCompletedRate","\u5b8c\u6210\u7387"),u="#,##0";this.protectedCustomMovingKey=function(){return[null,"progressCircleShowLegend"]};this.setPercentageDecimalDigit=function(B){p=B;m.fireChangedEvent(A.KEY_PERCENTAGE_DIGIT,p)};this.getPercentageDecimalDigit=function(){return p};this.setPercentageCeiling=function(B){v=B;m.fireChangedEvent(A.KEY_PERCENTAGE_CEILING,v)};this.isPercentageCeiling=function(){return v};this.setDataEmptyPercentageInstead=function(B){q=B;m.fireChangedEvent(A.KEY_PERCENTAGE_INSTEAD,
q)};this.getDataEmptyPercentageInstead=function(){return q};this.setLabelDesc=function(B){t=B;m.fireChangedEvent(A.KEY_LABEL_DESC,t)};this.getLabelDesc=function(){return t};this.setLegendFormat=function(B){u=B;m.fireChangedEvent(A.KEY_LEGEND_FORMAT,u)};this.getLegendFormat=function(){return u};this.protectedMoveOut=function(B){m.progressMoveOut(B);B.progressPercentageDigit=p;B.progressPercentageCeiling=v;B.progressPercentageInstead=q;B.progressLabelDesc=t;B.pAxisFormat=u};this.protectedMoveIn=function(B){m.progressMoveIn(B);
var g=B.progressPercentageDigit;void 0!==g&&(p=g);g=B.progressPercentageCeiling;void 0!==g&&(v=g);g=B.progressPercentageInstead;void 0!==g&&(q=g);g=B.progressLabelDesc;void 0!==g&&(t=g);B=B.pAxisFormat;void 0!==B&&(u=B)};this.protectedToJsonObject=function(B){m.progressToJsonObject(B);B.percentageDecimalDigit=p;B.percentageCeiling=v;B.percentageInstead=q;t&&(B.labelDesc=t);u&&(B.legendFormat=u)};this.protectedFromJsonObject=function(B){m.progressFromJsonObject(B);p=B.percentageDecimalDigit;v=B.percentageCeiling;
q=B.percentageInstead;t=B.labelDesc;u=B.legendFormat};this.protectedGetTypeForJson=function(){return"ProgressCircle"};this.protectedToRenderAttr=function(B){m.progressToRenderAttr(B);B.setPercentageDecimalDigit(p);B.setPercentageCeiling(v);B.setDataEmptyPercentageInstead(q);B.setLabelDesc(t)}}function ra(){function m(){var G=this,ma,Va,db,sb,Ga;this.setEndValue=function(F){return ma=F};this.getEndValue=function(){return ma};this.setLabel=function(F){Va=F};this.getLabel=function(){return Va};this.setColor=
function(F){db=F};this.getColor=function(){return db};this.isBoundField=function(){return sb&&Ga};this.bindField=function(F,w){sb=F;Ga=w};this.getMetaFieldFullName=function(){return sb};this.getAggregation=function(){return Ga};this.copyToEdit=function(){var F=new m;F.fromJsonObject(G.toJsonObject());return F};this.toJsonObject=function(){var F={};F.endValue=ma;F.label=Va;F.color=db;F.metaField=sb;F.aggregation=Ga;return F};this.fromJsonObject=function(F){ma=F.endValue;Va=F.label;db=F.color;sb=F.metaField;
Ga=F.aggregation}}y.call(this);var p=this.protectedMethod,v=ra.PAN_STYLE_WITH_TRACK,q=240,t=0,u=!0,B="#,##0",g=!0,C=!0,W=!1,Ia,N="#,##0",S=0,H=null;this.protectedGetTypeForJson=function(){return"Dial"};this.lookupAllMetaFieldBinding=function(G){if(H)for(var ma=0;ma<H.length;ma++){var Va=H[ma].getMetaFieldFullName();Va&&G(Va)}};this.setPanStyle=function(G){v=G;p.fireChangedEvent(ra.KEY_PAN_STYLE,v)};this.getPanStyle=function(){return v};this.setArcDegree=function(G){q=G;p.fireChangedEvent(ra.KEY_ARC_DEGREE,
q)};this.getArcDegree=function(){return q};this.setRotateDegree=function(G){t=G;p.fireChangedEvent(ra.KEY_ROTATE_DEGREE,t)};this.getRotateDegree=function(){return t};this.setShowRulerMarkLabel=function(G){u=G;p.fireChangedEvent(ra.KEY_SHOW_RULER_MARK_LABEL,u)};this.isShowRulerMarkLabel=function(){return u};this.setRulerMarkLabelFormat=function(G){B=G;p.fireChangedEvent(ra.KEY_RULER_MARK_FORMAT,B)};this.getRulerMarkLabelFormat=function(){return B};this.setShowPointerLabel=function(G){g=G[0];C=G[1];
W=G[2];p.fireChangedEvent(ra.KEY_SHOW_POINTER_LABEL,G)};this.getShowPointerLabel=function(){return[g,C,W]};this.isShowPointerName=function(){return g};this.isShowPointerNumber=function(){return C};this.setPointerName=function(G){Ia=G;p.fireChangedEvent(ra.KEY_POINTER_NAME,Ia)};this.getPointerName=function(){return Ia};this.setPointerNumberFormat=function(G){N=G;p.fireChangedEvent(ra.KEY_POINTER_NUMBER_FORMAT,N)};this.getPointerNumberFormat=function(){return N};this.setDataEmptyInstead=function(G){S=
G;p.fireChangedEvent(ra.KEY_DATA_EMPTY_INSTEAD,S)};this.getDataEmptyInstead=function(){return S};this.setSections=function(G){H=G;p.fireChangedEvent(ra.KEY_SECTIONS,S)};this.getSections=function(){return H};this.protectedMoveOut=function(G){G.dial=[v,q,t,u,B,g,C,W,Ia,N,S,H]};this.protectedMoveIn=function(G){if(G=G.dial){var ma=0;v=G[ma++];q=G[ma++];t=G[ma++];u=G[ma++];B=G[ma++];g=G[ma++];C=G[ma++];W=G[ma++];Ia=G[ma++];N=G[ma++];S=G[ma++];H=G[ma]}};this.protectedToJsonObject=function(G){G.panStyle=
v==ra.PAN_STYLE_ONLY_MARK?"OnlyMark":"WithTrack";G.arcDegree=q;0!=t&&(G.rotateDegree=t);G.showRulerLabel=u;G.rulerLabelFormat=B;G.showPointerName=g;G.showPointerNumber=C;G.showPointerPercent=W;G.pointerName=Ia;G.pointerNumberFormat=N;G.dataEmptyInstead=S;if(H){for(var ma=[],Va=0;Va<H.length;Va++)ma.push(H[Va].toJsonObject());G.sections=ma}};this.protectedFromJsonObject=function(G){v="OnlyMark"==G.panStyle?ra.PAN_STYLE_ONLY_MARK:ra.PAN_STYLE_WITH_TRACK;q=G.arcDegree;t=G.rotateDegree?G.rotateDegree:
0;u=G.showRulerLabel;B=G.rulerLabelFormat;g=G.showPointerName;C=G.showPointerNumber;W=G.showPointerPercent;Ia=G.pointerName;N=G.pointerNumberFormat;S=parseFloat(G.dataEmptyInstead);H=null;if((G=G.sections)&&0<G.length){H=[];for(var ma=0;ma<G.length;ma++){var Va=G[ma],db=new m;db.fromJsonObject(Va);H.push(db)}}};this.protectedToRenderAttr=function(G){var ma=0;g&&(ma|=rb.SHOW_LABEL_NAME);C&&(ma|=rb.SHOW_LABEL_NUMBER);W&&(ma|=rb.SHOW_LABEL_PERCENT);G.setPanStyle(v==ra.PAN_STYLE_ONLY_MARK?rb.PAN_STYLE_ONLY_MARK:
rb.PAN_STYLE_WITH_TRACK);G.setArcDegree(q);G.setRotate(t);G.setShowRulerMarkLabel(u);G.setRulerMarkLabelFormat(B);G.setPointerLabelType(ma);G.setPointerName(Ia);G.setPointerNumberFormat(N)};this.createSection=function(){return new m}}function da(){y.call(this);ca.call(this);var m=this,p=this.protectedMethod,v=!1,q=!1,t="#,##0",u,B=y.RulerScale_Linear,g,C,W=y.RulerStart_Zero,Ia,N="#,##0",S,H=y.RulerScale_Linear,G,ma,Va=y.RulerStart_Zero,db,sb;this.lookupAllMetaFieldBinding=function(Ga){if(sb&&sb.getSortAccording()){var F=
sb.getSortAccording().getMetaFieldFullName();F&&Ga(F)}};this.protectedGetTypeForJson=function(){return"Composite"};this.setShowLabel=function(Ga){v=16==(Ga&16);q=1==(Ga&1);p.fireChangedEvent(y.KEY_SHOW_LABEL,Ga)};this.getShowLabel=function(){return(v?16:0)|(q?1:0)};this.isShowLabel=function(){return 0!=m.getShowLabel()};this.setLeftYUnitText=function(Ga){u=Ga;p.fireChangedEvent(da.KEY_LY_UNIT_TEXT,u)};this.getLeftYUnitText=function(){return u};this.setLeftYRulerScale=function(Ga){B=Ga;p.fireChangedEvent(da.KEY_LY_RULER_SCALE,
B)};this.getLeftYRulerScale=function(){return B};this.setLeftYRulerScope=function(Ga){g=Ga[0];C=Ga[1];W=Ga[2];p.fireChangedEvent(da.KEY_LY_RULER_START,W)};this.getLeftYRulerScope=function(){return[g,C,W]};this.setLeftYFormat=function(Ga){t=Ga;p.fireChangedEvent(da.KEY_LY_FORMAT,t)};this.getLeftYFormat=function(){return t};this.setLeftReflines=function(Ga){Ia=Ga;p.fireChangedEvent(da.KEY_LEFT_REFLINES,Ia)};this.getLeftReflines=function(){return Ia};this.setRightYUnitText=function(Ga){S=Ga;p.fireChangedEvent(da.KEY_RY_UNIT_TEXT,
S)};this.getRightYUnitText=function(){return S};this.setRightYRulerScale=function(Ga){H=Ga;p.fireChangedEvent(da.KEY_RY_RULER_SCALE,H)};this.getRightYRulerScale=function(){return H};this.setRightYRulerScope=function(Ga){G=Ga[0];ma=Ga[1];Va=Ga[2];p.fireChangedEvent(da.KEY_RY_RULER_START,Va)};this.getRightYRulerScope=function(){return[G,ma,Va]};this.setRightYFormat=function(Ga){N=Ga;p.fireChangedEvent(da.KEY_RY_FORMAT,N)};this.getRightYFormat=function(){return N};this.setRightReflines=function(Ga){db=
Ga;p.fireChangedEvent(da.KEY_RIGHT_REFLINES,db)};this.getRightReflines=function(){return db};this.getSort=function(){sb||(sb=new wa,sb.setChangedListener(function(){p.fireChangedEvent(da.KEY_SORT,sb)}));return sb};this.protectedMoveIn=function(Ga){p.lineMoveIn(Ga);var F=Ga.showLabel1;void 0!==F&&(v=F);F=Ga.showLabel2;void 0!==F&&(q=F);(F=Ga.pAxisUnitText)&&(u=F);(F=Ga.pAxisRulerScale)&&(B=F);(F=Ga.pAxisRulerMin)&&(g=F);(F=Ga.pAxisRulerMax)&&(C=F);(F=Ga.pAxisRulerStart)&&(W=F);(F=Ga.pAxisFormat)&&
(t=F);(F=Ga.pAxisReflines)&&(Ia=F);(F=Ga.sAxisUnitText)&&(S=F);(F=Ga.sAxisRulerScale)&&(H=F);(F=Ga.sAxisRulerMin)&&(G=F);(F=Ga.sAxisRulerMax)&&(ma=F);(F=Ga.sAxisRulerStart)&&(Va=F);(F=Ga.sAxisFormat)&&(N=F);(F=Ga.sAxisReflines)&&(db=F);(F=Ga.styleScripts)&&m.setStyleScripts(F);(Ga=Ga.compositeSort)&&m.getSort().fromJsonObject(Ga)};this.protectedMoveOut=function(Ga){p.lineMoveOut(Ga);Ga.showLabel1=v;Ga.showLabel2=q;Ga.pAxisUnitText=u;Ga.pAxisRulerScale=B;Ga.pAxisRulerMin=g;Ga.pAxisRulerMax=C;Ga.pAxisRulerStart=
W;Ga.pAxisFormat=t;Ga.pAxisReflines=Ia;Ga.sAxisUnitText=S;Ga.sAxisRulerScale=H;Ga.sAxisRulerMin=G;Ga.sAxisRulerMax=ma;Ga.sAxisRulerStart=Va;Ga.sAxisFormat=N;Ga.sAxisReflines=db;Ga.styleScripts=m.getStyleScripts();sb&&(Ga.compositeSort=sb.toJsonObject())};this.protectedToRenderAttr=function(Ga){p.lineToRenderAttr(Ga);Ga.setShowDataLabel(v,q);Ga.setPYUnitText(u);Ga.setPYFormat(t);Ga.setPYRulerScale(B);Ga.setPYRulerMin(g?parseFloat(g):null);Ga.setPYRulerMax(C?parseFloat(C):null);Ga.setPYRulerStart(W);
Ga.setSYUnitText(S);Ga.setSYFormat(N);Ga.setSYRulerScale(H);Ga.setSYRulerMin(G?parseFloat(G):null);Ga.setSYRulerMax(ma?parseFloat(ma):null);Ga.setSYRulerStart(Va)};this.protectedToJsonObject=function(Ga){p.lineToJsonObject(Ga);Ga.showLabelForLeft=v;Ga.showLabelForRight=q;u&&(Ga.leftYUnitText=u);B&&(Ga.leftYRulerScale=B);g&&(Ga.leftYRulerMin=g);C&&(Ga.leftYRulerMax=C);W&&(Ga.leftYRulerStart=W);t&&(Ga.leftYFormat=t);if(Ia){for(var F=[],w=0;w<Ia.length;w++){var E=Ia[w];F.push(E.toJsonObject())}Ga.leftReflines=
F}S&&(Ga.rightYUnitText=S);H&&(Ga.rightYRulerScale=H);G&&(Ga.rightYRulerMin=G);ma&&(Ga.rightYRulerMax=ma);Va&&(Ga.rightYRulerStart=Va);N&&(Ga.rightYFormat=N);if(db){F=[];for(w=0;w<db.length;w++)E=db[w],F.push(E.toJsonObject());Ga.rightReflines=F}sb&&(Ga.sort=sb.toJsonObject())};this.protectedFromJsonObject=function(Ga){p.lineFromJsonObject(Ga);v=Ga.showLabelForLeft;q=Ga.showLabelForRight;u=Ga.leftYUnitText;B=(B=Ga.leftYRulerScale)?B:y.RulerScale_Linear;g=Ga.leftYRulerMin;C=Ga.leftYRulerMax;W=(W=Ga.leftYRulerStart)?
W:y.RulerStart_Zero;t=Ga.leftYFormat;var F=Ga.leftReflines;if(F){Ia=[];for(var w=0;w<F.length;w++){var E=F[w],Y=new Kb;Y.fromJsonObject(E);Ia.push(Y)}}S=Ga.rightYUnitText;H=(H=Ga.rightYRulerScale)?H:y.RulerScale_Linear;G=Ga.rightYRulerMin;ma=Ga.rightYRulerMax;Va=(Va=Ga.rightYRulerStart)?Va:y.RulerStart_Zero;N=Ga.rightYFormat;if(F=Ga.rightReflines)for(db=[],w=0;w<F.length;w++)E=F[w],Y=new Kb,Y.fromJsonObject(E),db.push(Y);(Ga=Ga.sort)&&m.getSort().fromJsonObject(Ga)}}function va(){y.call(this);var m=
this,p=this.protectedMethod,v=!1,q=-1,t=va.DESCEND_SORT,u,B=!0,g=!1,C=-1,W,Ia=this.setLinkTargets;this.setLinkTargets=function(N){Ia(N);p.fireChangedEvent(y.KEY_LINKAGE+ba.NeedExecute,N)};this.setTopnSwitch=function(N){(v=N)&&-1==q&&(q=20);p.fireChangedEvent(va.KEY_TOP_N,q)};this.isTopnSwitch=function(){return v};this.setTopnItems=function(N){q=N;v=0>=q?!1:!0;p.fireChangedEvent(va.KEY_TOP_N,q)};this.getTopnItems=function(){return q};this.setSortord=function(N){t=N;p.fireChangedEvent(va.KEY_SORTORD,
t)};this.getSortord=function(){return t};this.setSortField=function(N){u=N;p.fireChangedEvent(va.KEY_SORT_FIELD,u)};this.getSortField=function(){return u};this.setAutoScroll=function(N){B=N;p.fireChangedEvent(va.KEY_AUTO_SCROLL,B)};this.isAutoScroll=function(){return B};this.setStickNRow=function(N){(g=N)&&-1==C&&(C=3);p.fireChangedEvent(va.KEY_STICK_ROWS,C)};this.isStickNRow=function(){return g};this.setStickRows=function(N){C=N;g=0>=C?!1:!0;p.fireChangedEvent(va.KEY_STICK_ROWS,C)};this.getStickRows=
function(){return C};this.setAffectionSrcField=function(N){W=N;p.fireChangedEvent(va.KEY_AFFECTIOM_SRC_FIELD,W)};this.getAffectionSrcField=function(){return W};p.listMoveIn=function(N){var S=N.listTopnSwitch;void 0!==S&&(v=S);S=N.listTopnItem;void 0!==S&&(q=S);S=N.listSortord;void 0!==S&&(t=S);S=N.listSortField;void 0!==S&&(u=S);S=N.listAutoScroll;void 0!==S&&(B=S);S=N.listStickNRow;void 0!==S&&(g=S);S=N.listStickRows;void 0!==S&&(C=S);(S=N.listStyleScripts)&&m.setStyleScripts(S);N=N.listAffectionSrcField;
void 0!==N&&(W=N)};p.listMoveOut=function(N){N.listTopnSwitch=v;N.listTopnItem=q;N.listSortord=t;N.listSortField=u;N.listAutoScroll=B;N.listStickNRow=g;N.listStickRows=C;N.listStyleScripts=m.getStyleScripts();N.listAffectionSrcField=W};p.listToRenderAttr=function(N){N.setAutoScroll(B);N.setStickRows(B&&g?C:0)};p.listToJsonObject=function(N,S){N.topN=v?q:-1;N.autoScroll=B;N.stickRows=g?C:-1;if(u&&u.isMeasure())for(var H=0;H<S.getItemModelCount();H++){var G=S.getItemModel(H);if(G==u){N.sortFields=[H];
N.sortords=[t];break}}if(W&&W.isDimension())for(H=0;H<S.getItemModelCount();H++)if(G=S.getItemModel(H),G==W){N.affectionSrcFields=[H];break}};p.listFromJsonObject=function(N,S){var H=N.topN;q=H?H:-1;v=0>=q?!1:!0;B=N.autoScroll;C=(H=N.stickRows)?H:-1;g=0>=C?!1:!0;H=N.sortFields;var G=N.sortords;H&&0<H.length&&(u=S.getItemModel(H[0]),(H=G[0])&&(t=H));(N=N.affectionSrcFields)&&0<N.length&&(W=S.getItemModel(N[0]))}}function za(){va.call(this);var m=this.protectedMethod,p=!1,v="No.",q=!0;this.setShowRowNum=
function(t){p=t;m.fireChangedEvent(za.KEY_SHOW_ROWNUM,p)};this.isShowRowNum=function(){return p};this.setTitleOfRowNum=function(t){v=t;m.fireChangedEvent(za.KEY_ROWNUM_TITLE,v)};this.getTitleOfRowNum=function(){return v};this.setShowHeader=function(t){q=t;m.fireChangedEvent(za.KEY_SHOW_HEADER,q)};this.isShowHeader=function(){return q};this.protectedGetTypeForJson=function(){return"Grid"};this.protectedMoveIn=function(t){m.listMoveIn(t);var u=t.gridShowHeader;void 0!==u&&(q=u);u=t.gridShowRowNum;void 0!==
u&&(p=u);t=t.gridTitleOfRowNum;void 0!==t&&(v=t)};this.protectedMoveOut=function(t){m.listMoveOut(t);t.gridShowHeader=q;t.gridShowRowNum=p;t.gridTitleOfRowNum=v};this.protectedToRenderAttr=function(t){m.listToRenderAttr(t);t.setShowHeader(q);t.setShowRowNum(p)};this.protectedToJsonObject=function(t,u){m.listToJsonObject(t,u.getColumnSet());t.showHeader=q;t.showRowNum=p;t.titleOfRowNum=v};this.protectedFromJsonObject=function(t,u){m.listFromJsonObject(t,u.getColumnSet());q=t.showHeader?!0:!1;p=t.showRowNum?
!0:!1;v=t.titleOfRowNum}}function Q(){va.call(this);var m=this.protectedMethod,p=360,v,q,t=new n,u,B,g;this.getDesigningWidth=function(){return p};this.setCustomDesign=function(C,W,Ia){q=C;t=W;u=Ia;m.fireChangedEvent(Q.KEY_CUSTOM_CONTENT,t)};this.getCustomHead=function(){return q};this.getCustomContent=function(){return t};this.getCustomTail=function(){return u};this.setSplitLineColor=function(C){v=C;m.fireChangedEvent(Q.KEY_SPLITLINE_COLOR,v)};this.getSplitLineColor=function(){return v};this.setBodyVerticalAlign=
function(C){B=C;m.fireChangedEvent(Q.KEY_BODY_V_ALIGN,B)};this.getBodyVerticalAlign=function(){return B};this.setBodyShareToRow=function(C){g=C;m.fireChangedEvent(Q.KEY_BODY_SHARE_TO_ROW,g)};this.getBodyShareToRow=function(){return g};this.protectedGetTypeForJson=function(){return"CustomList"};this.protectedMoveIn=function(C){m.listMoveIn(C);var W=C.customListSplitLine;void 0!==W&&(v=W);W=C.customListContent;void 0!==W&&(t=W);W=C.customListHead;void 0!==W&&(q=W);W=C.customListTail;void 0!==W&&(u=
W);W=C.customListBodyVAlign;void 0!==W&&(B=W);C=C.customListBodyShareToRow;void 0!==C&&(g=C)};this.protectedMoveOut=function(C){m.listMoveOut(C);C.customListSplitLine=v;C.customListContent=t;C.customListHead=q;C.customListTail=u;C.customListBodyVAlign=B;C.customListBodyShareToRow=g};this.protectedToRenderAttr=function(C){m.listToRenderAttr(C);C.setSplitLineColor(v);var W=q?q.getRowHeight():0,Ia=u?u.getRowHeight():0;C.setDesigntimeRowSize(p,t.getRowHeight(),W,Ia);W=t.getContentAreas();for(Ia=0;Ia<
W.length;Ia++){var N=W[Ia];C.addDesigntimeRect(N.getX(),N.getY(),N.getWidth(),N.getHeight())}if(null!=q)for(C.setHeaderBackgroundColor(q.getBackgroundColor()),W=q.getContentAreas(),Ia=0;Ia<W.length;Ia++)N=W[Ia],C.addDesigntimeHeaderRect(N.getX(),N.getY(),N.getWidth(),N.getHeight());if(null!=u)for(C.setFooterBackgroundColor(u.getBackgroundColor()),W=u.getContentAreas(),Ia=0;Ia<W.length;Ia++)N=W[Ia],C.addDesigntimeFooterRect(N.getX(),N.getY(),N.getWidth(),N.getHeight());C.setBodyMiddleAlign(B==Q.BODY_VALIGN_MIDDLE);
C.setDynamicRowHeightMode(g==Q.BODY_SHARE_TO_ROW_REDUCABLE?Ab.DynamicRowHeight_Reduced:g==Q.BODY_SHARE_TO_ROW_INCREASABLE?Ab.DynamicRowHeight_Increased:g==Q.BODY_SHARE_TO_ROW_ADJUSTABLE?Ab.DynamicRowHeight_Both:Ab.DynamicRowHeight_None)};this.protectedToJsonObject=function(C,W){m.listToJsonObject(C,W.getFieldSet());C.width=p;v&&(C.splitLineColor=v);C.content=t.toJsonObject();q&&(C.head=q.toJsonObject());u&&(C.tail=u.toJsonObject());B&&(C.bodyVAlign=B);g&&(C.bodyShareToRow=g)};this.protectedFromJsonObject=
function(C,W){m.listFromJsonObject(C,W.getFieldSet());p=C.width;v=C.splitLineColor;W=C.content;t=new n;t.fromJsonObject(W);q=null;if(W=C.head)q=new n,q.fromJsonObject(W);u=null;if(W=C.tail)u=new n,u.fromJsonObject(W);B=C.bodyVAlign;g=C.bodyShareToRow}}function n(){var m=this,p=40,v=[],q;this.setRowHeight=function(t){p=t};this.getRowHeight=function(){return p};this.setContentAreas=function(t){v=t};this.getContentAreas=function(){return v};this.setBackgroundColor=function(t){q=t};this.getBackgroundColor=
function(){return q};this.copyToEdit=function(){var t=new n;t.fromJsonObject(m.toJsonObject());return t};this.toJsonObject=function(){var t={};t.rowHeight=p;for(var u=[],B=0;B<v.length;B++)u.push(v[B].toJsonObject());t.areas=u;q&&(t.backgroundColor=q);return t};this.fromJsonObject=function(t){p=t.rowHeight;v=[];for(var u=t.areas,B=0;B<u.length;B++){var g=u[B],C=new d;C.fromJsonObject(g);v.push(C)}q=t.backgroundColor}}function d(){var m,p,v,q,t,u,B,g=new Ub;this.setRectangle=function(C,W,Ia,N){m=C;
p=W;v=Ia;q=N};this.getX=function(){return m};this.getY=function(){return p};this.getWidth=function(){return v};this.getHeight=function(){return q};this.setFieldIndex=function(C){t=C;u=null};this.getFieldIndex=function(){return t};this.setCustomText=function(C){t=-1;u=C};this.getCustomText=function(){return u};this.setColorBar=function(C){B=C};this.getColorBar=function(){return B};this.setCustomStyle=function(C){g=C};this.getCustomStyle=function(){return g};this.toJsonObject=function(){var C={};C.x=
m;C.y=p;C.width=v;C.height=q;0<=t&&(C.field=t);u&&(C.text=u);B&&(C.colorBar=B.toJsonObject());C.style=g.toJsonObject();return C};this.fromJsonObject=function(C){m=C.x;p=C.y;v=C.width;q=C.height;var W=C.field;t=W||0===W?W:-1;u=(W=C.text)?W:null;B=(W=C.colorBar)?b.from(W):null;g=new Ub;g.fromJsonObject(C.style)}}function b(){var m,p,v,q,t;this.setMin=function(u){m=u};this.getMin=function(){return m};this.setMax=function(u){p=u};this.getMax=function(){return p};this.setNormalColor=function(u){v=u};this.getNormalColor=
function(){return v};this.setNegativeColor=function(u){q=u};this.getNegativeColor=function(){return q};this.setAxisColor=function(u){t=u};this.getAxisColor=function(){return t};this.toJsonObject=function(){var u={};m&&(u.min=m);p&&(u.max=p);v&&(u.color=v);q&&(u.negativeColor=q);t&&(u.axisColor=t);return u};this.fromJsonObject=function(u){m=u.min;p=u.max;v=u.color;q=u.negativeColor;t=u.axisColor}}function c(){y.call(this);var m=this.protectedMethod,p=!1,v=!1,q=!1,t=!1,u=-1,B=-1,g=!1,C=!1,W,Ia="#,##0";
this.isSortByName=function(){return p};this.setSortByName=function(N){p=N;m.fireChangedEvent(c.KEY_SORT_BY_NAME,p)};this.isNegativeAsc=function(){return q};this.setNegativeAsc=function(N){q=N;m.fireChangedEvent(c.KEY_NEGATIVE_ASC,q)};this.getNegativeTopN=function(){return u};this.setNegativeTopN=function(N){u=N;m.fireChangedEvent(c.KEY_NEGATIVE_TOP_N,u)};this.getPositiveTopN=function(){return B};this.setPositiveTopN=function(N){B=N;m.fireChangedEvent(c.KEY_POSITIVE_TOP_N,B)};this.isWithoutTotal=function(){return g};
this.setWithoutTotal=function(N){g=N;m.fireChangedEvent(c.KEY_WITHOUT_TOTAL,g)};this.isStartFromStage=function(){return C};this.setStartFromStage=function(N){C=N;m.fireChangedEvent(c.KEY_START_FROM_STAGE,C)};this.getYUnitText=function(){return W};this.setYUnitText=function(N){W=N;m.fireChangedEvent(c.KEY_Y_UNIT_TEXT,W)};this.getYFormat=function(){return Ia};this.setYFormat=function(N){Ia=N;m.fireChangedEvent(c.KEY_Y_FORMAT,Ia)};this.protectedGetTypeForJson=function(){return"Waterfall"};this.protectedMoveIn=
function(N){var S=N.waterfall;S&&(p=S[0],v=S[1],q=S[2],t=S[3],u=S[4],B=S[5],g=S[6],C=S[7]);(S=N.pAxisUnitText)&&(W=S);N=N.pAxisFormat;void 0!==N&&(Ia=N)};this.protectedMoveOut=function(N){N.waterfall=[p,v,q,t,u,B,g,C];N.pAxisUnitText=W;N.pAxisFormat=Ia};this.protectedToRenderAttr=function(N){N.setYUnitText(W);N.setYFormat(Ia)};this.protectedToJsonObject=function(N,S){p&&(N.sortByName=p);v&&(N.negativeAhead=v);q&&(N.negativeAsc=q);t&&(N.positiveAsc=t);0<u&&(N.negativeTopN=u);0<B&&(N.positiveTopN=B);
g&&(N.withoutTotal=g);C&&(N.startFromStage=C);W&&(N.yUnitText=W);Ia&&(N.yFormat=Ia)};this.protectedFromJsonObject=function(N,S){p=N.sortByName?!0:!1;v=N.negativeAhead?!0:!1;q=N.negativeAsc?!0:!1;t=N.positiveAsc?!0:!1;u=(S=N.negativeTopN)?S:-1;B=(S=N.positiveTopN)?S:-1;g=N.withoutTotal?!0:!1;C=N.startFromStage?!0:!1;W=N.yUnitText;Ia=N.yFormat}}function a(){y.call(this);var m=this.protectedMethod,p=!1,v=!1,q=a.RATIO_BY_STEP,t=a.LADDER_PERFECT,u,B=a.LABEL_POSITION_LEFT,g=a.LABEL_POSITION_HIDE,C=a.LABEL_POSITION_RIGHT;
this.protectedCustomMovingKey=function(){return[null,"funnelShowLegend"]};this.isSortByName=function(){return p};this.setSortByName=function(S){p=S;m.fireChangedEvent(a.KEY_SORT_BY_NAME,p)};this.setIgnoreNegative=function(S){v=S;m.fireChangedEvent(y.KEY_NEGATIVE,v)};this.isIgnoreNegative=function(){return v};this.setRatioBy=function(S){q=S;m.fireChangedEvent(a.KEY_RATIOBY,q)};this.getRatioBy=function(){return q};this.setLadder=function(S){t=S;m.fireChangedEvent(a.KEY_LADDER,t)};this.getLadder=function(){return t};
this.setRatioFormat=function(S){u=S;m.fireChangedEvent(a.KEY_RATIO_FORMAT,u)};this.getRatioFormat=function(){return u};this.setNameLabelPosition=function(S){B=S;m.fireChangedEvent(a.KEY_LABEL_NAME,B)};this.getNameLabelPosition=function(){return B};this.setValueLabelPosition=function(S){g=S;m.fireChangedEvent(a.KEY_LABEL_VALUE,g)};this.getValueLabelPosition=function(){return g};this.setRatioLabelPosition=function(S){C=S;m.fireChangedEvent(a.KEY_LABEL_RATIO,C)};this.getRatioLabelPosition=function(){return C};
this.isShowLabel=function(){return B!=a.LABEL_POSITION_HIDE||g!=a.LABEL_POSITION_HIDE||C!=a.LABEL_POSITION_HIDE};this.protectedMoveIn=function(S){var H=S.funnel;H&&(p=H[0],q=H[1],t=H[2],B=H[3],g=H[4],C=H[5],u=H[6]);S=S.ignoreNegative;!0!==S&&!1!==S||(v=S)};this.protectedMoveOut=function(S){S.funnel=[p,q,t,B,g,C,u];S.ignoreNegative=v};this.protectedToRenderAttr=function(S){S.setLadderPerfect(t==a.LADDER_PERFECT);S.setPercentageFormat(u);q==a.RATIO_BY_STEP&&S.markRatioByStep();q==a.RATIO_BY_START&&
S.markRatioByStart();q==a.RATIO_BY_TOTAL&&S.markRatioByTotal();S.setLabelNamePosition(W(B));S.setLabelValuePosition(W(g));S.setLabelPercentPosition(W(C))};var W=function(S){return S==a.LABEL_POSITION_LEFT?ub.LABEL_LEFT:S==a.LABEL_POSITION_RIGHT?ub.LABEL_RIGHT:S==a.LABEL_POSITION_CENTER?ub.LABEL_CENTER:ub.LABEL_NONE};this.protectedGetTypeForJson=function(){return"Funnel"};this.protectedToJsonObject=function(S,H){p&&(S.sortByName=!0);v&&(S.hideNegative=!0);S.ratioBy=q==a.RATIO_BY_STEP?"STEP":q==a.RATIO_BY_START?
"START":q==a.RATIO_BY_TOTAL?"TOTAL":null;S.ladder=t==a.LADDER_PERFECT?"PERFECT":t==a.LADDER_ACTUAL?"ACTUAL":null;S.nameLabel=Ia(B);S.valueLabel=Ia(g);S.ratioLabel=Ia(C);S.ratioFormat=u};var Ia=function(S){return S==a.LABEL_POSITION_LEFT?"LEFT":S==a.LABEL_POSITION_CENTER?"CENTER":S==a.LABEL_POSITION_RIGHT?"RIGHT":null};this.protectedFromJsonObject=function(S,H){p=S.sortByName?!0:!1;v=S.hideNegative?!0:!1;H=S.ratioBy;q="START"==H?a.RATIO_BY_START:"TOTAL"==H?a.RATIO_BY_TOTAL:a.RATIO_BY_STEP;t="ACTUAL"==
S.ladder?a.LADDER_ACTUAL:a.LADDER_PERFECT;B=N(S.nameLabel);g=N(S.valueLabel);C=N(S.ratioLabel);u=S.ratioFormat};var N=function(S){return"LEFT"==S?a.LABEL_POSITION_LEFT:"CENTER"==S?a.LABEL_POSITION_CENTER:"RIGHT"==S?a.LABEL_POSITION_RIGHT:a.LABEL_POSITION_HIDE}}function e(){y.call(this);var m=this.protectedMethod,p="#,##0",v,q,t,u=y.RulerStart_Zero,B,g="#,##0",C,W,Ia,N=y.RulerStart_Zero,S;this.setXFormat=function(H){p=H;m.fireChangedEvent(e.KEY_X_FORMAT,p)};this.getXFormat=function(){return p};this.setXUnitText=
function(H){v=H;m.fireChangedEvent(e.KEY_X_UNIT_TEXT,v)};this.getXUnitText=function(){return v};this.setXRulerScope=function(H){q=H[0];t=H[1];u=H[2];m.fireChangedEvent(e.KEY_X_RULER_START,u)};this.getXRulerScope=function(){return[q,t,u]};this.setXReflines=function(H){B=H;m.fireChangedEvent(e.KEY_X_REFLINES,B)};this.getXReflines=function(){return B};this.setYFormat=function(H){g=H;m.fireChangedEvent(e.KEY_Y_FORMAT,g)};this.getYFormat=function(){return g};this.setYUnitText=function(H){C=H;m.fireChangedEvent(e.KEY_Y_UNIT_TEXT,
C)};this.getYUnitText=function(){return C};this.setYRulerScope=function(H){W=H[0];Ia=H[1];N=H[2];m.fireChangedEvent(e.KEY_Y_RULER_START,N)};this.getYRulerScope=function(){return[W,Ia,N]};this.setYReflines=function(H){S=H;m.fireChangedEvent(e.KEY_Y_REFLINES,S)};this.getYReflines=function(){return S};this.protectedMoveIn=function(H){var G=H.sAxisFormat;void 0!==G&&(p=G);(G=H.sAxisUnitText)&&(v=G);(G=H.sAxisRulerMin)&&(q=G);(G=H.sAxisRulerMax)&&(t=G);(G=H.sAxisRulerStart)&&(u=G);(G=H.sAxisReflines)&&
(B=G);G=H.pAxisFormat;void 0!==G&&(g=G);(G=H.pAxisUnitText)&&(C=G);(G=H.pAxisRulerMin)&&(W=G);(G=H.pAxisRulerMax)&&(Ia=G);(G=H.pAxisRulerStart)&&(N=G);(H=H.pAxisReflines)&&(S=H)};this.protectedMoveOut=function(H){H.sAxisFormat=p;H.sAxisUnitText=v;H.sAxisRulerMin=q;H.sAxisRulerMax=t;H.sAxisRulerStart=u;H.sAxisReflines=B;H.pAxisFormat=g;H.pAxisUnitText=C;H.pAxisRulerMin=W;H.pAxisRulerMax=Ia;H.pAxisRulerStart=N;H.pAxisReflines=S};this.protectedToRenderAttr=function(H){H.setXFormat(p);H.setXUnitText(v);
H.setXRulerStart(m.toRenderAttrForRulerStart(u));H.setXRulerMin(q?parseFloat(q):null);H.setXRulerMax(t?parseFloat(t):null);H.setYFormat(g);H.setYUnitText(C);H.setYRulerStart(m.toRenderAttrForRulerStart(N));H.setYRulerMin(W?parseFloat(W):null);H.setYRulerMax(Ia?parseFloat(Ia):null)};this.protectedGetTypeForJson=function(){return"Scatter"};this.protectedToJsonObject=function(H,G){p&&(H.xFormat=p);v&&(H.xUnitText=v);q&&(H.xRulerMin=q);t&&(H.xRulerMax=t);u&&(H.xRulerStart=u);if(B){G=[];for(var ma=0;ma<
B.length;ma++){var Va=B[ma];G.push(Va.toJsonObject())}H.xReflines=G}g&&(H.yFormat=g);C&&(H.yUnitText=C);W&&(H.yRulerMin=W);Ia&&(H.yRulerMax=Ia);N&&(H.yRulerStart=N);if(S){G=[];for(ma=0;ma<S.length;ma++)Va=S[ma],G.push(Va.toJsonObject());H.yReflines=G}};this.protectedFromJsonObject=function(H,G){p=H.xFormat;v=H.xUnitText;q=H.xRulerMin;t=H.xRulerMax;u=(u=H.xRulerStart)?u:y.RulerStart_Zero;if(G=H.xReflines){B=[];for(var ma=0;ma<G.length;ma++){var Va=G[ma],db=new Kb;db.fromJsonObject(Va);B.push(db)}}g=
H.yFormat;C=H.yUnitText;W=H.yRulerMin;Ia=H.yRulerMax;N=(N=H.yRulerStart)?N:y.RulerStart_Zero;if(G=H.yReflines)for(S=[],ma=0;ma<G.length;ma++)Va=G[ma],db=new Kb,db.fromJsonObject(Va),S.push(db)}}function f(){y.call(this);T.call(this);var m=this.protectedMethod,p=!1;this.setIgnoreNegative=function(v){p=v;m.fireChangedEvent(y.KEY_NEGATIVE,p)};this.isIgnoreNegative=function(){return p};this.protectedMoveIn=function(v){var q=v.ignoreNegative;!0!==q&&!1!==q||(p=q);m.moveInWithMixColorMode(v)};this.protectedMoveOut=
function(v){v.ignoreNegative=p;m.moveOutWithMixColorMode(v)};this.protectedToRenderAttr=function(v){v.setIgnoreNegative(p)};this.protectedGetTypeForJson=function(){return"RectTree"};this.protectedToJsonObject=function(v,q){p&&(v.hideNegative=!0);m.toJsonObjectWithMixColorMode(v,q)};this.protectedFromJsonObject=function(v,q){p=v.hideNegative?!0:!1;m.fromJsonObjectWithMixColorMode(v,q)}}function h(){y.call(this);var m=this.protectedMethod,p=!1,v=Aa.LegendOrderMode_AUTO;this.protectedCustomMovingKey=
function(){return["sunburstShowLabel","sunburstShowLegend"]};this.setIgnoreNegative=function(q){p=q;m.fireChangedEvent(y.KEY_NEGATIVE,p)};this.isIgnoreNegative=function(){return p};this.setLegendOrderMode=function(q){v=q;m.fireChangedEvent(Aa.KEY_LEGEND_ORDER_MODE,v)};this.getLegendOrderMode=function(){return v};this.protectedMoveIn=function(q){var t=q.ignoreNegative;!0!==t&&!1!==t||(p=t);(q=q.legendOrderMode)&&(v=q)};this.protectedMoveOut=function(q){q.ignoreNegative=p;q.legendOrderMode=v};this.protectedToRenderAttr=
function(q){q.setIgnoreNegative(p)};this.protectedGetTypeForJson=function(){return"Sunburst"};this.protectedToJsonObject=function(q,t){p&&(q.hideNegative=!0);q.legendOrderMode=v};this.protectedFromJsonObject=function(q,t){p=q.hideNegative?!0:!1;v=q.legendOrderMode}}function k(){var m=this,p,v,q,t,u,B={};this.getChartTypeName=function(){throw Error("Override me.");};this.getRollSet=function(){q||(q=Ia(!0));return q};this.getRollInState=function(){t||(t=new X,t.updateItemCountLimited(m.getRollSet()),
t.addStateChangedListener(W));return t};this.getBeRolledSet=function(){return null};this.isRollInSupported=function(){return m.getBeRolledSet()?!0:!1};this.isRollInFieldSupported=function(){return m.getBeRolledSet()?!0:!1};this.lookupRolledInField=function(H){if(0==H){H=m.getBeRolledSet();for(var G=0;G<H.getItemModelCount();G++){var ma=H.getItemModel(G);if(!ma.getInvalidPrompt())return ma}}else{var Va=H-1,db=0;H=m.getRollSet();for(G=0;G<H.getItemModelCount();G++)if(ma=H.getItemModel(G),!ma.getInvalidPrompt()){if(db==
Va)return ma;db++}}return null};this.isLinkageSupported=function(){return!1};this.getChartProperty=function(){u||(u=m.protectedCreateChartProperty(),u.addChangedListener(C));return u};this.protectedCreateChartProperty=function(){throw Error("Override me.");};this.getGarbageProperties=function(){m.getChartProperty().moveOut(B);return B};this.setGarbageProperties=function(H){B=H;m.getChartProperty().moveIn(B)};this.getGarbageFields=function(){return v};this.setGarbageFields=function(H){v=H};this.setChangedListener=
function(H){p=H};var g=function(H,G){p&&p(H,G)},C=function(H,G){p&&p(null,H)},W=function(){p&&p(null,X.KEY_STATE_CHANGED)},Ia=function(H,G){var ma=new Ra;ma.setItemCountMin(G?1:0);ma.setItemCountMax(H?65535:1);ma.addChangedListener(g);return ma};this.awake=function(H){for(var G=N(),ma=0;ma<G.length;ma++){var Va=G[ma];Va.traversalItems(function(db){Va.awake(H,db)})}};this.isExecutableContentEmpty=function(){for(var H=N(),G=0;G<H.length;G++)if(0<H[G].getItemModelCount())return!1;return!0};this.getBriefOutputableDimensionsAndMeasures=
function(){var H=[],G=[];m.lookupAllItemModelSet(function(ma){ma=ma.getSquareField();(ma.isDimension()?H:G).push(ma)},!0);return[H,G]};this.lookupAllItemModelSet=function(H,G){for(var ma=!1,Va=m.protectedGetAllItemModelSet(),db=0;db<Va.length&&!(ma=Va[db].traversalItems(H));db++);!ma&&!G&&q&&q.traversalItems(H)};var N=function(){var H=m.protectedGetAllItemModelSet();q&&H.push(q);return H};this.protectedGetAllItemModelSet=function(){throw Error("Override me.");};this.checkAllFieldsProblem=function(){m.protectedCheckAllFieldsProblemImpl();
q&&S(q);for(var H=N(),G=0;G<H.length;G++)for(var ma=H[G],Va=0;Va<ma.getItemModelCount();Va++){var db=ma.getItemModel(Va),sb=db.getSquareField();db=db.getMetaField();if(!sb.getInvalidPrompt()||sb.getInvalidPrompt().getLevel()==ta.InvalidPrompt_LEVEL_BAD_USAGE)if(sb.isMeasure()&&!db.isCanAsMeasure()||sb.isDimension()&&!db.isCanAsDimension())db=new wb.InvalidPrompt,db.setLevel(ta.InvalidPrompt_LEVEL_BAD_USAGE,!0),db.setPromptText($a.get("invalidRole","\u7ef4\u5ea6/\u5ea6\u91cf\u7528\u6cd5\u4e0d\u6b63\u786e")),
sb.setInvalidPrompt(db)}H=N();for(G=0;G<H.length;G++)for(ma=H[G],Va=1,sb=0;sb<ma.getItemModelCount();sb++)if(db=ma.getItemModel(sb).getSquareField(),!db.getInvalidPrompt()||db.getInvalidPrompt().getLevel()==ta.InvalidPrompt_LEVEL_TOO_MANY){var Ga=Va>ma.getItemCountMax(),F=new wb.InvalidPrompt;F.setLevel(ta.InvalidPrompt_LEVEL_TOO_MANY,Ga);db.setInvalidPrompt(F);Va++}};this.protectedCheckAllFieldsProblemImpl=function(){throw Error("Override me.");};var S=function(H){H.traversalItems(function(G){G=
G.getSquareField();var ma=!1,Va=null;G.isDimension()||(ma=!0,Va=$a.get("onlyDimensionAllowed","\u6b64\u5904\u53ea\u80fd\u51fa\u73b0\u7ef4\u5ea6\u3002"));var db=new wb.InvalidPrompt;db.setLevel(ta.InvalidPrompt_LEVEL_BAD_USAGE,ma);db.setPromptText(Va);G.setInvalidPrompt(db)})};this.toJsonObject=function(H){H={};m.protectedToJsonObject(H);if(q){var G=H,ma={};ma.fields=m.getRollSet().toJsonObject(!0);var Va=m.getRollInState(),db=Va.getItemCount();if(0<db){for(var sb=[],Ga=0;Ga<db;Ga++){var F=Va.getItem(Ga);
sb.push(F.toJsonObject())}ma.state=sb}G.roll=ma}H.chartProperty=m.getChartProperty().toJsonObject(m);return H};this.fromJsonObject=function(H,G){m.protectedFromJsonObject(H,G);var ma=H.roll;if(ma){var Va=ma.fields;ma=ma.state;m.getRollSet().fromJsonObject(ta,Va,G,!0);if(ma){G=[];for(Va=0;Va<ma.length;Va++){var db=ma[Va],sb=new ha;sb.fromJsonObject(db);G.push(sb)}m.getRollInState().updateItems(G)}}m.getChartProperty().fromJsonObject(H.chartProperty,m)};this.protectedToJsonObject=function(H){throw Error("Override me.");
};this.protectedFromJsonObject=function(H,G){throw Error("Override me.");};this.protectedMethod={createItemModelSet:Ia,checkProblemWithOnlyDimensionAllowed:S,checkProblemWithOnlyMeasureAllowed:function(H){H.traversalItems(function(G){G=G.getSquareField();var ma=!1,Va=null;G.isMeasure()||(ma=!0,Va=$a.get("onlyMeasureAllowed","\u6b64\u5904\u53ea\u80fd\u51fa\u73b0\u5ea6\u91cf\u3002"));var db=new wb.InvalidPrompt;db.setLevel(ta.InvalidPrompt_LEVEL_BAD_USAGE,ma);db.setPromptText(Va);G.setInvalidPrompt(db)})},
checkProblemAboutMultiSeriesMeasureSet:function(H,G){H=0<H.getItemModelCount();for(var ma=!1,Va=0;Va<G.getItemModelCount();Va++){var db=G.getItemModel(Va).getSquareField(),sb=!1,Ga=null;db.isMeasure()?(H&&ma&&(sb=!0,Ga=$a.get("seriesConflictPrompt","\u5df2\u4f7f\u7528\u7ef4\u5ea6\u503c\u8868\u793a\u591a\u4e2a\u7cfb\u5217\uff0c\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u591a\u4e2a\u5ea6\u91cf\u3002")),ma=!0):(sb=!0,Ga=$a.get("onlyMeasureAllowed","\u6b64\u5904\u53ea\u80fd\u51fa\u73b0\u5ea6\u91cf\u3002"));
var F=new wb.InvalidPrompt;F.setLevel(ta.InvalidPrompt_LEVEL_BAD_USAGE,sb);F.setPromptText(Ga);db.setInvalidPrompt(F)}}}}function l(){this.isLinkageSupported=function(){return!0}}function r(){k.call(this);l.call(this);var m=this,p=this.protectedMethod,v,q;this.getChartTypeName=function(){return ja.ChartType_KPI};this.getPrimarySet=function(){v||(v=p.createItemModelSet());return v};this.getSecondarySet=function(){q||(q=p.createItemModelSet());return q};this.protectedCreateChartProperty=function(){return new ua};
this.protectedCheckAllFieldsProblemImpl=function(){p.checkProblemWithOnlyMeasureAllowed(m.getPrimarySet());p.checkProblemWithOnlyMeasureAllowed(m.getSecondarySet())};this.protectedGetAllItemModelSet=function(){return[m.getPrimarySet(),m.getSecondarySet()]};this.protectedToJsonObject=function(t){t.primary=m.getPrimarySet().toJsonObject();t.secondary=m.getSecondarySet().toJsonObject()};this.protectedFromJsonObject=function(t,u){m.getPrimarySet().fromJsonObject(ta,t.primary,u);m.getSecondarySet().fromJsonObject(ta,
t.secondary,u)}}function z(){k.call(this);l.call(this);var m=this,p=this.protectedMethod,v,q;this.getBeRolledSet=function(){return m.getColorSet()};this.getAngleSet=function(){v||(v=p.createItemModelSet(!1,!0));return v};this.getColorSet=function(){q||(q=p.createItemModelSet());return q};this.protectedCheckAllFieldsProblemImpl=function(){p.checkProblemWithOnlyDimensionAllowed(m.getColorSet());p.checkProblemWithOnlyMeasureAllowed(m.getAngleSet())};this.protectedGetAllItemModelSet=function(){return[m.getAngleSet(),
m.getColorSet()]};this.protectedToJsonObject=function(t){t.angle=m.getAngleSet().toJsonObject();t.color=m.getColorSet().toJsonObject()};this.protectedFromJsonObject=function(t,u){m.getAngleSet().fromJsonObject(ta,t.angle,u);m.getColorSet().fromJsonObject(ta,t.color,u)}}function D(){z.call(this);this.getChartTypeName=function(){return ja.ChartType_Pie};this.protectedCreateChartProperty=function(){return new Fa}}function I(){z.call(this);this.getChartTypeName=function(){return ja.ChartType_Ring};this.protectedCreateChartProperty=
function(){return new ka}}function J(){z.call(this);this.getChartTypeName=function(){return ja.ChartType_Rose};this.protectedCreateChartProperty=function(){return new Na}}function Z(){k.call(this);var m=this,p=this.protectedMethod,v,q,t;this.getBeRolledSet=function(){return m.getXAxis()};this.getXAxis=function(){v||(v=p.createItemModelSet());return v};this.getYAxis=function(){q||(q=p.createItemModelSet(!0,!0));return q};this.getSeries=function(){t||(t=p.createItemModelSet());return t};this.protectedCreateChartProperty=
function(){return new Oa};this.protectedCheckAllFieldsProblemImpl=function(){p.checkProblemWithOnlyDimensionAllowed(m.getXAxis());p.checkProblemWithOnlyDimensionAllowed(m.getSeries());p.checkProblemAboutMultiSeriesMeasureSet(m.getSeries(),m.getYAxis())};this.protectedGetAllItemModelSet=function(){return[m.getXAxis(),m.getYAxis(),m.getSeries()]};this.protectedToJsonObject=function(u){u.xAxis=m.getXAxis().toJsonObject();u.yAxis=m.getYAxis().toJsonObject();u.series=m.getSeries().toJsonObject()};this.protectedFromJsonObject=
function(u,B){m.getXAxis().fromJsonObject(ta,u.xAxis,B);m.getYAxis().fromJsonObject(ta,u.yAxis,B);m.getSeries().fromJsonObject(ta,u.series,B)}}function ia(){k.call(this);var m=this,p=this.protectedMethod,v,q,t;this.getBeRolledSet=function(){return m.getYAxis()};this.getXAxis=function(){v||(v=p.createItemModelSet(!0,!0));return v};this.getYAxis=function(){q||(q=p.createItemModelSet());return q};this.getSeries=function(){t||(t=p.createItemModelSet());return t};this.protectedCreateChartProperty=function(){return new gb};
this.protectedCheckAllFieldsProblemImpl=function(){p.checkProblemWithOnlyDimensionAllowed(m.getYAxis());p.checkProblemWithOnlyDimensionAllowed(m.getSeries());p.checkProblemAboutMultiSeriesMeasureSet(m.getSeries(),m.getXAxis())};this.protectedGetAllItemModelSet=function(){return[m.getXAxis(),m.getYAxis(),m.getSeries()]};this.protectedToJsonObject=function(u){u.xAxis=m.getXAxis().toJsonObject();u.yAxis=m.getYAxis().toJsonObject();u.series=m.getSeries().toJsonObject()};this.protectedFromJsonObject=function(u,
B){m.getXAxis().fromJsonObject(ta,u.xAxis,B);m.getYAxis().fromJsonObject(ta,u.yAxis,B);m.getSeries().fromJsonObject(ta,u.series,B)}}function Ta(){ia.call(this);l.call(this);this.getChartTypeName=function(){return ja.ChartType_Bar}}function cb(){ia.call(this);l.call(this);this.getChartTypeName=function(){return ja.ChartType_StackedBar}}function jb(){ia.call(this);l.call(this);this.getChartTypeName=function(){return ja.ChartType_PercentStackedBar};this.protectedCreateChartProperty=function(){return new qa}}
function ya(){Z.call(this);l.call(this);this.getChartTypeName=function(){return ja.ChartType_Column}}function Ha(){Z.call(this);l.call(this);this.getChartTypeName=function(){return ja.ChartType_StackedColumn}}function bb(){Z.call(this);l.call(this);this.getChartTypeName=function(){return ja.ChartType_PercentStackedColumn};this.protectedCreateChartProperty=function(){return new ab}}function ob(){Z.call(this);l.call(this);this.getChartTypeName=function(){return ja.ChartType_Line};this.protectedCreateChartProperty=
function(){return new fb}}function xa(){Z.call(this);l.call(this);this.getChartTypeName=function(){return ja.ChartType_Area};this.protectedCreateChartProperty=function(){var m=new Oa;m.setSortSupported(!1);return m}}function Ya(){Z.call(this);l.call(this);this.getChartTypeName=function(){return ja.ChartType_PercentArea};this.protectedCreateChartProperty=function(){var m=new ab;m.setSortSupported(!1);return m}}function Ca(){k.call(this);var m=this,p=this.protectedMethod,v,q,t;this.getChartTypeName=
function(){return ja.ChartType_Map};this.getDimensionSet=function(){v||(v=p.createItemModelSet());return v};this.getMeasureSet=function(){q||(q=p.createItemModelSet());return q};this.getInfomationSet=function(){t||(t=p.createItemModelSet(!0),t.setItemCountMax(8));return t};this.getBriefOutputableDimensionsAndMeasures=function(){var u=[],B=[],g=function(C){C=C.getSquareField();(C.isDimension()?u:B).push(C)};m.getDimensionSet().traversalItems(g);m.getMeasureSet().traversalItems(g);return[u,B]};this.protectedCreateChartProperty=
function(){return new fa};this.protectedCheckAllFieldsProblemImpl=function(){p.checkProblemWithOnlyDimensionAllowed(m.getDimensionSet());p.checkProblemWithOnlyMeasureAllowed(m.getMeasureSet())};this.protectedGetAllItemModelSet=function(){return[m.getDimensionSet(),m.getMeasureSet(),m.getInfomationSet()]};this.protectedToJsonObject=function(u){u.dimension=m.getDimensionSet().toJsonObject();u.measure=m.getMeasureSet().toJsonObject();u.infomation=m.getInfomationSet().toJsonObject()};this.protectedFromJsonObject=
function(u,B){m.getDimensionSet().fromJsonObject(ta,u.dimension,B);m.getMeasureSet().fromJsonObject(ta,u.measure,B);m.getInfomationSet().fromJsonObject(ta,u.infomation,B)}}function mb(){k.call(this);var m=this,p=this.protectedMethod,v,q,t,u,B;this.getChartTypeName=function(){return ja.ChartType_GIS};this.getCoordinateSet=function(){v||(v=p.createItemModelSet(),v.setItemCountMin(2),v.setItemCountMax(2));return v};this.getColorSet=function(){q||(q=p.createItemModelSet(!1,!1));return q};this.getSizeSet=
function(){t||(t=p.createItemModelSet(!1,!1));return t};this.getCaptionSet=function(){u||(u=p.createItemModelSet(!1,!1));return u};this.getInfomationSet=function(){B||(B=p.createItemModelSet(!0),B.setItemCountMax(8));return B};this.getBriefOutputableDimensionsAndMeasures=function(){var g=[],C=[],W=function(Ia){Ia=Ia.getSquareField();(Ia.isDimension()?g:C).push(Ia)};m.getCoordinateSet().traversalItems(W);m.getSizeSet().traversalItems(W);return[g,C]};this.protectedCreateChartProperty=function(){return new Ma};
this.protectedCheckAllFieldsProblemImpl=function(){p.checkProblemWithOnlyDimensionAllowed(m.getCoordinateSet());p.checkProblemWithOnlyDimensionAllowed(m.getColorSet());p.checkProblemWithOnlyDimensionAllowed(m.getCaptionSet());p.checkProblemWithOnlyMeasureAllowed(m.getSizeSet())};this.protectedGetAllItemModelSet=function(){return[m.getCoordinateSet(),m.getColorSet(),m.getSizeSet(),m.getCaptionSet(),m.getInfomationSet()]};this.protectedToJsonObject=function(g){g.coordinate=m.getCoordinateSet().toJsonObject();
g.color=m.getColorSet().toJsonObject();g.size=m.getSizeSet().toJsonObject();g.caption=m.getCaptionSet().toJsonObject();g.infomation=m.getInfomationSet().toJsonObject()};this.protectedFromJsonObject=function(g,C){m.getCoordinateSet().fromJsonObject(ta,g.coordinate,C);m.getColorSet().fromJsonObject(ta,g.color,C);m.getSizeSet().fromJsonObject(ta,g.size,C);m.getCaptionSet().fromJsonObject(ta,g.caption,C);m.getInfomationSet().fromJsonObject(ta,g.infomation,C)}}function tb(){k.call(this);var m=this,p=this.protectedMethod,
v,q;this.getChartTypeName=function(){return ja.ChartType_Radar};this.protectedCreateChartProperty=function(){return new U};this.getDimensionSet=function(){var t=m.getChartProperty().getOuterCircle()==U.OUTER_CIRCLE_MEASURE;v||(v=p.createItemModelSet(!0,!0));v.setItemCountMin(t?0:1);return v};this.getMeasureSet=function(){q||(q=p.createItemModelSet(!0,!0));return q};this.protectedCheckAllFieldsProblemImpl=function(){for(var t=m.getDimensionSet(),u=m.getMeasureSet(),B=m.getChartProperty().getOuterCircle()==
U.OUTER_CIRCLE_DIMENSION,g=1<t.getItemModelCount(),C=!1,W=0;W<u.getItemModelCount();W++){var Ia=u.getItemModel(W);Ia=Ia.getSquareField();var N=!1,S=null;Ia.isMeasure()?(B&&g&&C&&(N=!0,S=$a.get("seriesConflictPrompt","\u5df2\u4f7f\u7528\u7ef4\u5ea6\u503c\u8868\u793a\u591a\u4e2a\u7cfb\u5217\uff0c\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u591a\u4e2a\u5ea6\u91cf\u3002")),C=!0):(N=!0,S=$a.get("onlyMeasureAllowed","\u6b64\u5904\u53ea\u80fd\u51fa\u73b0\u5ea6\u91cf\u3002"));var H=new wb.InvalidPrompt;H.setLevel(ta.InvalidPrompt_LEVEL_BAD_USAGE,
N);H.setPromptText(S);Ia.setInvalidPrompt(H)}u=B?2:1;for(W=0;W<t.getItemModelCount();W++)Ia=t.getItemModel(W),Ia=Ia.getSquareField(),N=!1,S=null,Ia.isMeasure()?(N=!0,S=$a.get("onlyDimensionAllowed","\u6b64\u5904\u53ea\u80fd\u51fa\u73b0\u7ef4\u5ea6\u3002")):(0>=u&&(S=$a.get("exceedCountLimit","\u8d85\u51fa\u4e2a\u6570\u9650\u5236"),N=!0),u--),H=new wb.InvalidPrompt,H.setLevel(ta.InvalidPrompt_LEVEL_BAD_USAGE,N),H.setPromptText(S),Ia.setInvalidPrompt(H)};this.protectedGetAllItemModelSet=function(){return[m.getDimensionSet(),
m.getMeasureSet()]};this.protectedToJsonObject=function(t){t.dimension=m.getDimensionSet().toJsonObject();t.measure=m.getMeasureSet().toJsonObject()};this.protectedFromJsonObject=function(t,u){m.getDimensionSet().fromJsonObject(ta,t.dimension,u);m.getMeasureSet().fromJsonObject(ta,t.measure,u)}}function yb(){k.call(this);var m=this.protectedMethod,p=this,v,q,t;this.getDimension=function(){t||(t=m.createItemModelSet(!1,!1));return t};this.getDesired=function(){v||(v=m.createItemModelSet(!1,!0));return v};
this.getCompleted=function(){q||(q=m.createItemModelSet(!1,!0));return q};this.protectedCheckAllFieldsProblemImpl=function(){m.checkProblemWithOnlyMeasureAllowed(p.getDesired());m.checkProblemWithOnlyMeasureAllowed(p.getCompleted());m.checkProblemWithOnlyDimensionAllowed(p.getDimension())};this.protectedToJsonObject=function(u){u.desired=p.getDesired().toJsonObject();u.completed=p.getCompleted().toJsonObject();u.dimension=p.getDimension().toJsonObject()};this.protectedFromJsonObject=function(u,B){p.getDimension().fromJsonObject(ta,
u.dimension,B);p.getDesired().fromJsonObject(ta,u.desired,B);p.getCompleted().fromJsonObject(ta,u.completed,B)};this.protectedGetAllItemModelSet=function(){return[p.getDimension(),p.getDesired(),p.getCompleted()]}}function Bb(){yb.call(this);l.call(this);var m=this;this.getChartTypeName=function(){return ja.ChartType_ProgressBar};this.protectedCreateChartProperty=function(){return new V};this.getBeRolledSet=function(){return m.getDimension()};this.getXAxis=function(){var p=new Ra,v=m.getCompleted().getItemModel(0),
q=m.getDesired().getItemModel(0);q&&p.addItemModel(q);v&&p.addItemModel(v);return p}}function Eb(){yb.call(this);l.call(this);var m=this;this.getChartTypeName=function(){return ja.ChartType_ProgressColumn};this.protectedCreateChartProperty=function(){return new M};this.getBeRolledSet=function(){return m.getDimension()};this.getYAxis=function(){var p=new Ra,v=m.getCompleted().getItemModel(0),q=m.getDesired().getItemModel(0);q&&p.addItemModel(q);v&&p.addItemModel(v);return p}}function cc(){yb.call(this);
l.call(this);this.getChartTypeName=function(){return ja.ChartType_ProgressCircle};this.protectedCreateChartProperty=function(){var m=new A;m.setShowLegend(y.ShowLegend_Bottom);return m}}function Yb(){k.call(this);l.call(this);var m=this,p=this.protectedMethod,v;this.getChartTypeName=function(){return ja.ChartType_Dial};this.protectedCreateChartProperty=function(){return new ra};this.getMeasureSet=function(){v||(v=p.createItemModelSet(!1,!0));return v};this.protectedCheckAllFieldsProblemImpl=function(){p.checkProblemWithOnlyMeasureAllowed(m.getMeasureSet())};
this.protectedGetAllItemModelSet=function(){return[m.getMeasureSet()]};this.protectedToJsonObject=function(q){q.measure=m.getMeasureSet().toJsonObject()};this.protectedFromJsonObject=function(q,t){m.getMeasureSet().fromJsonObject(ta,q.measure,t)}}function Vb(){k.call(this);l.call(this);var m=this,p=this.protectedMethod,v,q,t,u,B;this.getChartTypeName=function(){return ja.ChartType_Composite};this.getBeRolledSet=function(){return m.getXAxis()};this.protectedCreateChartProperty=function(){return new da};
this.getXAxis=function(){v||(v=p.createItemModelSet(!1,!1));return v};this.getLeftYAxis=function(){q||(q=p.createItemModelSet(!0,!0));return q};this.getRightYAxis=function(){t||(t=p.createItemModelSet(!0,!0));return t};this.getLeftSeries=function(){u||(u=p.createItemModelSet(!1,!1));return u};this.getRightSeries=function(){B||(B=p.createItemModelSet(!1,!1));return B};this.protectedGetAllItemModelSet=function(){return[m.getXAxis(),m.getLeftYAxis(),m.getRightYAxis(),m.getLeftSeries(),m.getRightSeries()]};
this.protectedCheckAllFieldsProblemImpl=function(){p.checkProblemWithOnlyDimensionAllowed(m.getXAxis());p.checkProblemWithOnlyMeasureAllowed(m.getLeftYAxis());p.checkProblemWithOnlyMeasureAllowed(m.getRightYAxis());p.checkProblemWithOnlyDimensionAllowed(m.getLeftSeries());p.checkProblemWithOnlyDimensionAllowed(m.getRightSeries());p.checkProblemAboutMultiSeriesMeasureSet(m.getLeftSeries(),m.getLeftYAxis());p.checkProblemAboutMultiSeriesMeasureSet(m.getRightSeries(),m.getRightYAxis())};this.protectedToJsonObject=
function(g){g.xAxis=m.getXAxis().toJsonObject();g.leftYAxis=m.getLeftYAxis().toJsonObject();g.leftSeries=m.getLeftSeries().toJsonObject();g.rightYAxis=m.getRightYAxis().toJsonObject();g.rightSeries=m.getRightSeries().toJsonObject()};this.protectedFromJsonObject=function(g,C){m.getXAxis().fromJsonObject(ta,g.xAxis,C);m.getLeftYAxis().fromJsonObject(ta,g.leftYAxis,C);m.getLeftSeries().fromJsonObject(ta,g.leftSeries,C);m.getRightYAxis().fromJsonObject(ta,g.rightYAxis,C);m.getRightSeries().fromJsonObject(ta,
g.rightSeries,C)}}function Zb(){k.call(this);l.call(this);var m=this,p=this.protectedMethod,v;this.getChartTypeName=function(){return ja.ChartType_Grid};this.protectedCreateChartProperty=function(){return new za};this.getColumnSet=function(){v||(v=p.createItemModelSet(!0,!0),v.setItemCountMax(20));return v};this.protectedGetAllItemModelSet=function(){return[m.getColumnSet()]};this.protectedCheckAllFieldsProblemImpl=function(){for(var q=m.getColumnSet(),t=0;t<q.getItemModelCount();t++){var u=new wb.InvalidPrompt;
u.setLevel(ta.InvalidPrompt_LEVEL_BAD_USAGE,!1);q.getItemModel(t).setInvalidPrompt(u)}};this.protectedToJsonObject=function(q){q.columnSet=m.getColumnSet().toJsonObject()};this.protectedFromJsonObject=function(q,t){m.getColumnSet().fromJsonObject(ta,q.columnSet,t)}}function Wb(){k.call(this);l.call(this);var m=this,p=this.protectedMethod,v;this.getChartTypeName=function(){return ja.ChartType_CustomList};this.protectedCreateChartProperty=function(){var q=new Q,t=q.getDesigningWidth(),u=4,B=4,g=t-8,
C=new d;C.setRectangle(u,B,g,20);C.setFieldIndex(0);C.getCustomStyle().setFontSize(14);C.getCustomStyle().setBold(!0);B=B+20+0;var W=Math.round(.6*t);g=new d;g.setRectangle(u,B,W,20);g.setFieldIndex(1);g.getCustomStyle().setFontSize(12);u=u+W+4;W=t-4-u;t=new d;t.setRectangle(u,B,W,20);t.setFieldIndex(2);t.getCustomStyle().setAlign("right");t.getCustomStyle().setFontSize(12);u=B+20+4;B=new n;B.setRowHeight(u);B.setContentAreas([C,g,t]);q.setCustomDesign(null,B,null);return q};this.getFieldSet=function(){v||
(v=p.createItemModelSet(!0,!0),v.setItemCountMax(20));return v};this.protectedGetAllItemModelSet=function(){return[m.getFieldSet()]};this.protectedCheckAllFieldsProblemImpl=function(){for(var q=m.getFieldSet(),t=0;t<q.getItemModelCount();t++){var u=new wb.InvalidPrompt;u.setLevel(ta.InvalidPrompt_LEVEL_BAD_USAGE,!1);q.getItemModel(t).setInvalidPrompt(u)}};this.protectedToJsonObject=function(q){q.fieldSet=m.getFieldSet().toJsonObject()};this.protectedFromJsonObject=function(q,t){m.getFieldSet().fromJsonObject(ta,
q.fieldSet,t)}}function $b(){k.call(this);var m=this,p=this.protectedMethod,v,q,t;this.getChartTypeName=function(){return ja.ChartType_Waterfall};this.getStageSet=function(){v||(v=p.createItemModelSet(!1,!1));return v};this.getClauseSet=function(){q||(q=p.createItemModelSet(!1,!0));return q};this.getMeasureSet=function(){t||(t=p.createItemModelSet(!1,!0));return t};this.protectedCreateChartProperty=function(){return new c};this.protectedCheckAllFieldsProblemImpl=function(){p.checkProblemWithOnlyDimensionAllowed(m.getStageSet());
p.checkProblemWithOnlyDimensionAllowed(m.getClauseSet());p.checkProblemWithOnlyMeasureAllowed(m.getMeasureSet())};this.protectedGetAllItemModelSet=function(){return[m.getStageSet(),m.getClauseSet(),m.getMeasureSet()]};this.protectedToJsonObject=function(u){u.stage=m.getStageSet().toJsonObject();u.clause=m.getClauseSet().toJsonObject();u.measure=m.getMeasureSet().toJsonObject()};this.protectedFromJsonObject=function(u,B){m.getStageSet().fromJsonObject(ta,u.stage,B);m.getClauseSet().fromJsonObject(ta,
u.clause,B);m.getMeasureSet().fromJsonObject(ta,u.measure,B)}}function Lb(){k.call(this);l.call(this);var m=this,p=this.protectedMethod,v,q;this.getChartTypeName=function(){return ja.ChartType_Funnel};this.getDimensionSet=function(){v||(v=p.createItemModelSet(!1,!1));return v};this.getMeasureSet=function(){q||(q=p.createItemModelSet(!0,!0),q.setItemCountMax(10));return q};this.protectedCreateChartProperty=function(){var t=new a;t.setShowLegend(y.ShowLegend_Non);return t};this.protectedCheckAllFieldsProblemImpl=
function(){p.checkProblemWithOnlyDimensionAllowed(m.getDimensionSet());p.checkProblemWithOnlyMeasureAllowed(m.getMeasureSet());p.checkProblemAboutMultiSeriesMeasureSet(m.getDimensionSet(),m.getMeasureSet())};this.protectedGetAllItemModelSet=function(){return[m.getDimensionSet(),m.getMeasureSet()]};this.protectedToJsonObject=function(t){t.dimension=m.getDimensionSet().toJsonObject();t.measure=m.getMeasureSet().toJsonObject()};this.protectedFromJsonObject=function(t,u){m.getDimensionSet().fromJsonObject(ta,
t.dimension,u);m.getMeasureSet().fromJsonObject(ta,t.measure,u)}}function Nb(){k.call(this);var m=this,p=this.protectedMethod,v,q,t,u,B;this.getChartTypeName=function(){return ja.ChartType_Scatter};this.getXAxisFieldSet=function(){!v&&(v=p.createItemModelSet(!1,!1));return v};this.getYAxisFieldSet=function(){!q&&(q=p.createItemModelSet(!1,!1));return q};this.getZAxisFieldSet=function(){!t&&(t=p.createItemModelSet(!1,!1));return t};this.getCategoryFieldSet=function(){!u&&(u=p.createItemModelSet(!1,
!1));return u};this.getSeriesFieldSet=function(){!B&&(B=p.createItemModelSet(!1,!1));return B};this.protectedCreateChartProperty=function(){return new e};this.protectedCheckAllFieldsProblemImpl=function(){p.checkProblemWithOnlyMeasureAllowed(m.getXAxisFieldSet());p.checkProblemWithOnlyMeasureAllowed(m.getYAxisFieldSet());p.checkProblemWithOnlyMeasureAllowed(m.getZAxisFieldSet());p.checkProblemWithOnlyDimensionAllowed(m.getCategoryFieldSet());p.checkProblemWithOnlyDimensionAllowed(m.getSeriesFieldSet())};
this.protectedGetAllItemModelSet=function(){return[m.getXAxisFieldSet(),m.getYAxisFieldSet(),m.getZAxisFieldSet(),m.getCategoryFieldSet(),m.getSeriesFieldSet()]};this.protectedToJsonObject=function(g){g.xAxis=m.getXAxisFieldSet().toJsonObject();g.yAxis=m.getYAxisFieldSet().toJsonObject();g.zAxis=m.getZAxisFieldSet().toJsonObject();g.category=m.getCategoryFieldSet().toJsonObject();g.series=m.getSeriesFieldSet().toJsonObject()};this.protectedFromJsonObject=function(g,C){m.getXAxisFieldSet().fromJsonObject(ta,
g.xAxis,C);m.getYAxisFieldSet().fromJsonObject(ta,g.yAxis,C);m.getZAxisFieldSet().fromJsonObject(ta,g.zAxis,C);m.getCategoryFieldSet().fromJsonObject(ta,g.category,C);m.getSeriesFieldSet().fromJsonObject(ta,g.series,C)}}function ac(){k.call(this);var m=this,p=this.protectedMethod,v,q,t;this.getChartTypeName=function(){return ja.ChartType_RectTree};this.getSizeSet=function(){!v&&(v=p.createItemModelSet(!1,!0));return v};this.getDimensionSet=function(){q||(q=p.createItemModelSet(!0,!1),q.setItemCountMax(5));
return q};this.getColorSet=function(){!t&&(t=p.createItemModelSet(!1,!1));return t};this.protectedCreateChartProperty=function(){return new f};this.protectedCheckAllFieldsProblemImpl=function(){p.checkProblemWithOnlyMeasureAllowed(m.getSizeSet());p.checkProblemWithOnlyDimensionAllowed(m.getDimensionSet())};this.protectedGetAllItemModelSet=function(){return[m.getSizeSet(),m.getDimensionSet(),m.getColorSet()]};this.protectedToJsonObject=function(u){u.measure=m.getSizeSet().toJsonObject();u.dimension=
m.getDimensionSet().toJsonObject();u.color=m.getColorSet().toJsonObject()};this.protectedFromJsonObject=function(u,B){m.getSizeSet().fromJsonObject(ta,u.measure,B);m.getDimensionSet().fromJsonObject(ta,u.dimension,B);m.getColorSet().fromJsonObject(ta,u.color,B)}}function Sb(){k.call(this);var m=this,p=this.protectedMethod,v,q;this.getChartTypeName=function(){return ja.ChartType_Sunburst};this.getSizeSet=function(){!v&&(v=p.createItemModelSet(!1,!0));return v};this.getDimensionSet=function(){q||(q=
p.createItemModelSet(!0,!0),q.setItemCountMin(2),q.setItemCountMax(5));return q};this.protectedCreateChartProperty=function(){var t=new h;t.setShowLegend(y.ShowLegend_Non);t.setShowLabel(!0);return t};this.protectedCheckAllFieldsProblemImpl=function(){p.checkProblemWithOnlyMeasureAllowed(m.getSizeSet());p.checkProblemWithOnlyDimensionAllowed(m.getDimensionSet())};this.protectedGetAllItemModelSet=function(){return[m.getSizeSet(),m.getDimensionSet()]};this.protectedToJsonObject=function(t){t.measure=
m.getSizeSet().toJsonObject();t.dimension=m.getDimensionSet().toJsonObject()};this.protectedFromJsonObject=function(t,u){m.getSizeSet().fromJsonObject(ta,t.measure,u);m.getDimensionSet().fromJsonObject(ta,t.dimension,u)}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.square&&(com.kingdee.bos.qing.square=
{});"undefined"==typeof com.kingdee.bos.qing.square.model&&(com.kingdee.bos.qing.square.model={});var na=com.kingdee.bos.qing.square.model;na.SquarePreferences=function(){var m=new P,p=new Xa;this.getPreviewSetup=function(){return m};this.setPreviewSetup=function(q){m=q;v(m)};this.addPreviewSetupChangedListener=function(q){p.addListener(q)};this.removePreviewSetupChangedListener=function(q){p.removeListener(q)};var v=function(q){p.fireEvent(function(t){t(q)})};this.toJsonObject=function(){var q={};
q.previewSetup=m.toJsonObject();return q};this.fromJsonObject=function(q){(q=q.previewSetup)&&m.fromJsonObject(q)}};na.PreviewSetupItem=function(m,p,v,q,t,u){var B=this,g;this.getDisplayText=function(){var C=m,W=B.getPreviewSetup();W.isFullArea()||(C=C+" ("+W.getWidth(),C=C+"*"+W.getHeight(),C+=")");return C};this.getPreviewSetup=function(){g||(g=new P,g.fromJsonObject({width:p,height:v,paddingLeft:u,paddingRight:u,paddingTop:q,paddingBottom:t}));return g}};na.SquareModel=ja;na.SquareField=ta;na.FilterItemModel=
x;na.ItemModelSet=Ra;na.RollInStateItem=ha;na.AbstractChartProperty=y;na.AbstractPieChartProperty=Aa;na.AbstractLineChartProperty=ca;na.PieChartProperty=Fa;na.RingChartProperty=ka;na.RoseChartProperty=Na;na.XSYNChartProperty=Oa;na.YSXNChartProperty=gb;na.LineChartProperty=fb;na.KPIChartProperty=ua;na.MapChartProperty=fa;na.GISChartProperty=Ma;na.RadarChartProperty=U;na.AbstractProgressChartProperty=K;na.ProgressBarChartProperty=V;na.ProgressColumnChartProperty=M;na.ProgressCircleChartProperty=A;na.CompositeChartProperty=
da;na.AbstractListChartProperty=va;na.GridChartProperty=za;na.CustomListChartProperty=Q;na.WaterfallChartProperty=c;na.FunnelChartProperty=a;na.ScatterChartProperty=e;na.DialChartProperty=ra;na.RectTreeChartProperty=f;na.SunburstChartProperty=h;na.SortAccording=O;na.KPICustomStyles=Ka;na.TooltipsAutoDisplay=ea;na.ChartKPI=r;na.ChartPie=D;na.ChartRing=I;na.ChartRose=J;na.ChartColumn=ya;na.ChartStackColumn=Ha;na.ChartPercentStackColumn=bb;na.ChartBar=Ta;na.ChartStackBar=cb;na.ChartPercentStackBar=jb;
na.ChartLine=ob;na.ChartArea=xa;na.ChartPercentArea=Ya;na.ChartMap=Ca;na.ChartGIS=mb;na.ChartRadar=tb;na.ChartProgressBar=Bb;na.ChartProgressColumn=Eb;na.ChartProgressCircle=cc;na.ChartComposite=Vb;na.ChartGrid=Zb;na.ChartCustomList=Wb;na.ChartWaterfall=$b;na.ChartFunnel=Lb;na.ChartScatter=Nb;na.ChartDial=Yb;na.ChartRectTree=ac;na.ChartSunburst=Sb;var Xa,$a,hb,nb,rb,ub,Ab,Hb,Mb,Ib,wb,Ob,dc,ec,Kb,zb,fc,Tb,kc,hc,Ub;(function(){var m=com.kingdee.bos.qing.common;Xa=m.EventListenerList;m=com.kingdee.bos.qing.framework.common;
$a=m.MultilanguageManager.createPackageAccessor(na);m=com.kingdee.bos.qing.chart.model;hb=m.AbstractAttr;nb=m.PieAttr;rb=m.DialAttr;ub=m.FunnelAttr;Ab=m.CustomListAttr;m=com.kingdee.bos.qing.core.model;Hb=m.Meta;Mb=m.MetaField;Ib=m.AbstractQingModel;wb=m.AbstractAnalyticalField;Ob=m.DiscreteFilter;dc=m.ContinuousFilter;ec=m.ContinuousDateFilter;Kb=m.Refline;zb=m.Palette;fc=m.ContinuousColor;Tb=m.OutsideReference;kc=m.BriefOutputableFields;hc=m.LinkTargets;Ub=m.CommonStyle})();ja.KEY_CHART_TYPE="chartModelInstance";
ja.ChartType_KPI="KPI";ja.ChartType_Pie="Pie";ja.ChartType_Ring="Ring";ja.ChartType_Rose="Rose";ja.ChartType_Column="Column";ja.ChartType_StackedColumn="StackedColumn";ja.ChartType_PercentStackedColumn="PercentStackedColumn";ja.ChartType_Bar="Bar";ja.ChartType_StackedBar="StackedBar";ja.ChartType_PercentStackedBar="PercentStackedBar";ja.ChartType_Line="Line";ja.ChartType_Area="Area";ja.ChartType_PercentArea="PercentArea";ja.ChartType_Map="Map";ja.ChartType_GIS="GIS";ja.ChartType_Radar="Radar";ja.ChartType_ProgressBar=
"ProgressBar";ja.ChartType_ProgressColumn="ProgressColumn";ja.ChartType_ProgressCircle="ProgressCircle";ja.ChartType_Composite="Composite";ja.ChartType_Grid="Grid";ja.ChartType_CustomList="CustomList";ja.ChartType_Waterfall="Waterfall";ja.ChartType_Funnel="Funnel";ja.ChartType_Scatter="Scatter";ja.ChartType_Dial="Dial";ja.ChartType_RectTree="RectTree";ja.ChartType_Sunburst="Sunburst";ta.InvalidPrompt_LEVEL_BAD_USAGE=100;ta.InvalidPrompt_LEVEL_TOO_MANY=101;Ra.KEY_ADD="ItemModelSet.add";Ra.KEY_REMOVE=
"ItemModelSet.remove";Ra.KEY_MOVE="ItemModelSet.move";x.KEY_FILTER_VALUE="filterValue";X.KEY_STATE_CHANGED="rollInStateChanged";var ba={Prefix:"P_",NeedRepaint:"_REP",NeedExecute:"_EXE"};y.KEY_TITLE=ba.Prefix+"title";y.KEY_SHOW_LABEL=ba.Prefix+"showLabel"+ba.NeedRepaint;y.KEY_LABEL_OVERLAPPABLE=ba.Prefix+"labelOverlappable"+ba.NeedRepaint;y.KEY_LABEL_FORMAT=ba.Prefix+"labelFormat"+ba.NeedRepaint;y.KEY_SHOW_LEGEND=ba.Prefix+"showLegend"+ba.NeedExecute;y.KEY_SHOW_DATA_EMPTY_TIPS=ba.Prefix+"showDataEmptyTips"+
ba.NeedExecute;y.KEY_DESCRIPTION=ba.Prefix+"description";y.KEY_LINKAGE=ba.Prefix+"linkage";y.KEY_STYLE_SCRIPTS=ba.Prefix+"styleScripts"+ba.NeedExecute;y.KEY_PALETTE=ba.Prefix+"palette"+ba.NeedExecute;y.KEY_ANIMATION=ba.Prefix+"animation"+ba.NeedRepaint;y.KEY_TOOLTIPS_AUTO_DISPLAY=ba.Prefix+"tooltipsAutoDisplay"+ba.NeedRepaint;y.KEY_NEGATIVE=ba.Prefix+"negative"+ba.NeedExecute;y.KEY_LEGEND_FORMAT=ba.Prefix+"legendFormat"+ba.NeedExecute;y.KEY_CONTINUOUS_COLOR=ba.Prefix+"continuousColor"+ba.NeedExecute;
y.ShowLegend_Non="NON";y.ShowLegend_Right="RIGHT";y.ShowLegend_Bottom="BOTTOM";y.RulerScale_Auto="AUTO";y.RulerScale_Linear="LINEAR";y.RulerScale_Log="LOG";y.RulerStart_Zero="ZERO";y.RulerStart_Nonzero="NONZERO";y.ShowDataEmptyTips_Auto="AUTO";y.ShowDataEmptyTips_Yes="YES";y.ShowDataEmptyTips_No="NO";fa.KEY_TEMPLATE_REF=ba.Prefix+"mapOutsideReference"+ba.NeedRepaint;fa.KEY_REGION_MAPPING=ba.Prefix+"mapRegionMapping"+ba.NeedRepaint;Ma.KEY_USAGE=ba.Prefix+"gisUsage"+ba.NeedExecute;Ma.KEY_THIRD=ba.Prefix+
"gisThird"+ba.NeedRepaint;Ma.KEY_SCRIPT=ba.Prefix+"gisScript"+ba.NeedRepaint;Ma.USAGE_MARKER="MARKER";Ma.USAGE_BUBBLE="BUBBLE";ua.KEY_CAPTION=ba.Prefix+"caption"+ba.NeedExecute;ua.KEY_P_DISPLAY=ba.Prefix+"primaryString"+ba.NeedExecute;ua.KEY_S_DISPLAY=ba.Prefix+"secondaryString"+ba.NeedExecute;ua.KEY_P_DATA_EMPTY_INSTEAD=ba.Prefix+"dataEmptyInstead"+ba.NeedExecute;ua.KEY_P_CUSTOM_STYLES=ba.Prefix+"customStyles"+ba.NeedExecute;Oa.KEY_X_UNIT_TEXT=ba.Prefix+"xUnitText"+ba.NeedRepaint;Oa.KEY_X_ASSISTANT_LINE=
ba.Prefix+"xAssistantLine"+ba.NeedRepaint;Oa.KEY_Y_UNIT_TEXT=ba.Prefix+"yUnitText"+ba.NeedRepaint;Oa.KEY_Y_FORMAT=ba.Prefix+"yFormat"+ba.NeedRepaint;Oa.KEY_Y_RULER_SCALE=ba.Prefix+"yRulerScale"+ba.NeedRepaint;Oa.KEY_Y_RULER_START=ba.Prefix+"yRulerStart"+ba.NeedRepaint;Oa.KEY_REFLINES=ba.Prefix+"reflines"+ba.NeedExecute;Oa.KEY_SORT=ba.Prefix+"sort"+ba.NeedExecute;ca.KEY_SMOOTH=ba.Prefix+"smooth"+ba.NeedRepaint;ca.KEY_PAINT_POINT=ba.Prefix+"paintPoint"+ba.NeedRepaint;ca.KEY_CONNECT_NULL_AS=ba.Prefix+
"connectNullAs"+ba.NeedRepaint;ca.CONNECT_NULL_AS_DIRECTION=0;ca.CONNECT_NULL_AS_ZERO=1;fb.KEY_TOOLTIPS_SORTED=ba.Prefix+"tooltipsSorted"+ba.NeedRepaint;gb.KEY_Y_UNIT_TEXT=ba.Prefix+"yUnitText"+ba.NeedRepaint;gb.KEY_X_UNIT_TEXT=ba.Prefix+"xUnitText"+ba.NeedRepaint;gb.KEY_X_FORMAT=ba.Prefix+"xFormat"+ba.NeedRepaint;gb.KEY_X_RULER_SCALE=ba.Prefix+"xRulerScale"+ba.NeedRepaint;gb.KEY_X_RULER_START=ba.Prefix+"xRulerStart"+ba.NeedRepaint;gb.KEY_REFLINES=ba.Prefix+"reflines"+ba.NeedExecute;gb.KEY_SORT=ba.Prefix+
"sort"+ba.NeedExecute;Aa.KEY_TOPN=ba.Prefix+"topN"+ba.NeedExecute;Aa.KEY_LABEL_TYPE=ba.Prefix+"labelType"+ba.NeedRepaint;Aa.KEY_LEGEND_ORDER_MODE=ba.Prefix+"legendOrderMode"+ba.NeedExecute;Aa.SHOW_LABEL_NAME=1;Aa.SHOW_LABEL_NUMBER=2;Aa.SHOW_LABEL_PERCENT=4;Aa.LegendOrderMode_AUTO="AUTO";Aa.LegendOrderMode_VALUE="VALUE";Aa.LegendOrderMode_NAME="NAME";ka.KEY_SHOW_TOTAL=ba.Prefix+"ringShowTotal"+ba.NeedRepaint;Na.KEY_AVERAGE_ANGLE=ba.Prefix+"roseAverageAngle"+ba.NeedRepaint;U.KEY_RADAR_FORMAT=ba.Prefix+
"radarAxisFormat"+ba.NeedExecute;U.KEY_OUTER_CIRCLE=ba.Prefix+"radarOuterCircle"+ba.NeedExecute;U.KEY_SHOW_RULER_MARK_LABEL=ba.Prefix+"radarShowRulerMarkLabel"+ba.NeedRepaint;U.KEY_FILL_COLOR=ba.Prefix+"radarFillColor"+ba.NeedRepaint;U.OUTER_CIRCLE_DIMENSION="dimension";U.OUTER_CIRCLE_MEASURE="measure";K.multiExtends=function(m,p){m.call(p);K.call(p)};K.KEY_LABEL_TYPE=ba.Prefix+"labelType"+ba.NeedRepaint;K.KEY_THICKNESS_PERCENT=ba.Prefix+"thicknessPercent"+ba.NeedRepaint;K.SHOW_LABEL_NUMBER=1;K.SHOW_LABEL_PERCENT=
2;A.KEY_PERCENTAGE_DIGIT=ba.Prefix+"progressPercentageDigit"+ba.NeedRepaint;A.KEY_PERCENTAGE_CEILING=ba.Prefix+"progressPercentageCeiling"+ba.NeedRepaint;A.KEY_PERCENTAGE_INSTEAD=ba.Prefix+"progressPercentageInstead"+ba.NeedRepaint;A.KEY_LABEL_DESC=ba.Prefix+"progressLabel"+ba.NeedRepaint;A.KEY_LEGEND_FORMAT=ba.Prefix+"progressLegendFormat"+ba.NeedExecute;ra.KEY_PAN_STYLE=ba.Prefix+"dialPanStyle"+ba.NeedRepaint;ra.KEY_ARC_DEGREE=ba.Prefix+"dialArcDegree"+ba.NeedRepaint;ra.KEY_ROTATE_DEGREE=ba.Prefix+
"dialRotateDegree"+ba.NeedRepaint;ra.KEY_SHOW_RULER_MARK_LABEL=ba.Prefix+"dialShowRulerMarkLabel"+ba.NeedRepaint;ra.KEY_RULER_MARK_FORMAT=ba.Prefix+"dialRulerMarkFormat"+ba.NeedRepaint;ra.KEY_SHOW_POINTER_LABEL=ba.Prefix+"dialShowPointerLabel"+ba.NeedRepaint;ra.KEY_POINTER_NAME=ba.Prefix+"dialPointerName"+ba.NeedRepaint;ra.KEY_POINTER_NUMBER_FORMAT=ba.Prefix+"dialPointerNumberFormat"+ba.NeedRepaint;ra.KEY_DATA_EMPTY_INSTEAD=ba.Prefix+"dialDataEmptyInstead"+ba.NeedExecute;ra.KEY_SECTIONS=ba.Prefix+
"dialSections"+ba.NeedExecute;ra.PAN_STYLE_ONLY_MARK=1;ra.PAN_STYLE_WITH_TRACK=2;da.KEY_LY_UNIT_TEXT=ba.Prefix+"leftYUnitText"+ba.NeedRepaint;da.KEY_LY_FORMAT=ba.Prefix+"leftYFormat"+ba.NeedExecute;da.KEY_LY_RULER_SCALE=ba.Prefix+"leftYRulerScale"+ba.NeedRepaint;da.KEY_LY_RULER_START=ba.Prefix+"leftYRulerStart"+ba.NeedRepaint;da.KEY_LEFT_REFLINES=ba.Prefix+"leftReflines"+ba.NeedExecute;da.KEY_RY_UNIT_TEXT=ba.Prefix+"rightYUnitText"+ba.NeedRepaint;da.KEY_RY_FORMAT=ba.Prefix+"rightYFormat"+ba.NeedExecute;
da.KEY_RY_RULER_SCALE=ba.Prefix+"rightYRulerScale"+ba.NeedRepaint;da.KEY_RY_RULER_START=ba.Prefix+"rightYRulerStart"+ba.NeedRepaint;da.KEY_RIGHT_REFLINES=ba.Prefix+"rightReflines"+ba.NeedExecute;da.KEY_SORT=ba.Prefix+"compositeSort"+ba.NeedExecute;va.KEY_TOP_N=ba.Prefix+"listTopN"+ba.NeedExecute;va.KEY_SORT_FIELD=ba.Prefix+"listSortField"+ba.NeedExecute;va.KEY_SORTORD=ba.Prefix+"listSortord"+ba.NeedExecute;va.KEY_AUTO_SCROLL=ba.Prefix+"listAutoScroll"+ba.NeedRepaint;va.KEY_STICK_ROWS=ba.Prefix+"listStickRows"+
ba.NeedRepaint;va.KEY_AFFECTIOM_SRC_FIELD=ba.Prefix+"listAffctionSrcField";va.ASCEND_SORT="ascend";va.DESCEND_SORT="descend";za.KEY_SHOW_HEADER=ba.Prefix+"gridShowHeader"+ba.NeedRepaint;za.KEY_SHOW_ROWNUM=ba.Prefix+"gridShowRowNum"+ba.NeedExecute;za.KEY_ROWNUM_TITLE=ba.Prefix+"gridIdxColTitle"+ba.NeedExecute;Q.KEY_CUSTOM_CONTENT=ba.Prefix+"customListContent"+ba.NeedExecute;Q.KEY_SPLITLINE_COLOR=ba.Prefix+"customListSplitLineColor"+ba.NeedRepaint;Q.KEY_BODY_V_ALIGN=ba.Prefix+"customListBodyVAlign"+
ba.NeedRepaint;Q.KEY_BODY_SHARE_TO_ROW=ba.Prefix+"customListBodyShareToRow"+ba.NeedRepaint;Q.BODY_VALIGN_TOP="top";Q.BODY_VALIGN_MIDDLE="middle";Q.BODY_SHARE_TO_ROW_REDUCABLE="reducable";Q.BODY_SHARE_TO_ROW_INCREASABLE="increasable";Q.BODY_SHARE_TO_ROW_ADJUSTABLE="adjustable";Q.createContentPanelModel=function(m){var p=new n;m&&p.setRowHeight(m);return p};Q.createContentAreaModel=function(){return new d};Q.createColorBarModel=function(){return new b};b.from=function(m){var p=new b;p.fromJsonObject(m);
return p};c.KEY_SORT_BY_NAME=ba.Prefix+"waterfallSortByName"+ba.NeedExecute;c.KEY_NEGATIVE_ASC=ba.Prefix+"waterfallNegativeAsc"+ba.NeedExecute;c.KEY_NEGATIVE_TOP_N=ba.Prefix+"waterfallNegativeTopN"+ba.NeedExecute;c.KEY_POSITIVE_TOP_N=ba.Prefix+"waterfallPositiveTopN"+ba.NeedExecute;c.KEY_START_FROM_STAGE=ba.Prefix+"waterfallStartFromStage"+ba.NeedExecute;c.KEY_WITHOUT_TOTAL=ba.Prefix+"waterfallWithoutTotal"+ba.NeedExecute;c.KEY_Y_UNIT_TEXT=ba.Prefix+"yUnitText"+ba.NeedRepaint;c.KEY_Y_FORMAT=ba.Prefix+
"yFormat"+ba.NeedRepaint;a.KEY_SORT_BY_NAME=ba.Prefix+"funnelSortByName"+ba.NeedExecute;a.KEY_RATIOBY=ba.Prefix+"funnelRatioBy"+ba.NeedRepaint;a.KEY_LADDER=ba.Prefix+"funnelLadder"+ba.NeedRepaint;a.KEY_LABEL_NAME=ba.Prefix+"labelNamePosition"+ba.NeedRepaint;a.KEY_LABEL_VALUE=ba.Prefix+"labelValuePosition"+ba.NeedRepaint;a.KEY_LABEL_RATIO=ba.Prefix+"labelRatioPosition"+ba.NeedRepaint;a.KEY_RATIO_FORMAT=ba.Prefix+"ratioFormat"+ba.NeedRepaint;a.RATIO_BY_STEP=1;a.RATIO_BY_START=2;a.RATIO_BY_TOTAL=3;a.LADDER_PERFECT=
1;a.LADDER_ACTUAL=2;a.LABEL_POSITION_HIDE=0;a.LABEL_POSITION_LEFT=1;a.LABEL_POSITION_CENTER=2;a.LABEL_POSITION_RIGHT=3;e.KEY_X_FORMAT=ba.Prefix+"xFormat"+ba.NeedRepaint;e.KEY_X_UNIT_TEXT=ba.Prefix+"xUnitText"+ba.NeedRepaint;e.KEY_X_RULER_START=ba.Prefix+"xRulerStart"+ba.NeedRepaint;e.KEY_X_REFLINES=ba.Prefix+"xReflines"+ba.NeedExecute;e.KEY_Y_FORMAT=ba.Prefix+"yFormat"+ba.NeedRepaint;e.KEY_Y_UNIT_TEXT=ba.Prefix+"yUnitText"+ba.NeedRepaint;e.KEY_Y_RULER_START=ba.Prefix+"yRulerStart"+ba.NeedRepaint;
e.KEY_Y_REFLINES=ba.Prefix+"yReflines"+ba.NeedExecute})();(function(){"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.square&&(com.kingdee.bos.qing.square={});"undefined"==typeof com.kingdee.bos.qing.square.controller&&(com.kingdee.bos.qing.square.controller={});var sa=com.kingdee.bos.qing.square.controller;sa.ActionAddItem=function(){Ba.call(this);var x,
ha,X,P,y,T,aa,ea;this.getCaption=function(){return x};this.setValue=function(O,fa,La,Ma,ua){ha=O;X=fa;P=La;y=ha.getItemModelIndex(X);(T=0<=y)?(x=Sa.get("moveItem","\u5728#1\u4e2d\u79fb\u52a8#2"),x=x.replace("#1",Ma),x=x.replace("#2",X.getSquareField().getComplexText())):(x=Sa.get("appendItem","\u6dfb\u52a0#1\u5230#2"),x=x.replace("#1",X.getSquareField().getComplexText()),x=x.replace("#2",Ma));aa=ua};this.perform=function(){aa&&(ea=aa.updateItems([]));T?wa():ha.insertItemModel(X,P)};this.unperform=
function(){aa&&aa.updateItems(ea);T?wa():ha.removeItemModel(X)};var wa=function(){var O=ha.moveItemModel(y,P);y=O[0];P=O[1]}};sa.ActionRemoveItem=function(){Ba.call(this);var x,ha,X,P,y,T;this.getCaption=function(){return x};this.setValue=function(aa,ea,wa,O){ha=aa;X=ea;wa&&(x=Sa.get("removeItem","\u4ece#1\u5220\u9664#2"),x=x.replace("#1",wa),x=x.replace("#2",X.getSquareField().getComplexText()));y=O};this.perform=function(){y&&(T=y.updateItems([]));P=ha.getItemModelIndex(X);ha.removeItemModel(X)};
this.unperform=function(){y&&y.updateItems(T);ha.insertItemModel(X,P)}};sa.ActionClearAll=function(){Ba.call(this);var x=this,ha,X,P;this.getCaption=function(){return ha};this.setValue=function(y,T,aa){ha=aa;X=y;aa=new ta;y=T(aa.getChartTypeName());aa=y.willTransform(aa);y=X.getChart();y=T(y.getChartTypeName());P=y.transform(aa)};this.perform=function(){var y=X.getChart();X.setChart(P);P=y};this.unperform=function(){x.perform()}};sa.ActionRollIn=function(){Ba.call(this);var x,ha,X,P,y,T;this.getCaption=
function(){return x};this.setValue=function(aa,ea,wa,O,fa){x=Sa.get("rollInTo","\u4e0b\u94bb#1\u5230\uff1a#2");x=x.replace("#1",aa?aa.getComplexText():"");x=x.replace("#2",O?O:Sa.get("rollInToNext","\u4e0b\u4e00\u5c42"));ha=ea;P=wa;y=O;X=fa};this.perform=function(){T=ha.backupItems();var aa=0<ha.getItemCount()?ha.getItem(ha.getItemCount()-1):null,ea=[];aa&&aa.isPcdNextLevel()||(aa=new Ra,ea=[aa]);aa.setPcdNextLevel(X);aa.addOneLevel(P,y);ha.rollIn(ea)};this.unperform=function(){ha.restoreItems(T);
T=null}};sa.ActionRollOut=function(){Ba.call(this);var x,ha,X,P,y;this.getCaption=function(){return x};this.setValue=function(T,aa,ea,wa){x=Sa.get("rollOutTo","\u4e0a\u5377\u56de#1");x=x.replace("#1",T?T.getComplexText():0==ea?Sa.get("rollOutToTop","\u9876\u5c42"):"");ha=aa;X=ea;P=wa};this.perform=function(){y=ha.backupItems();ha.rollOut(X,P)};this.unperform=function(){ha.restoreItems(y);y=null}};sa.ActionAppendAllNecessaryDimensions=function(){ja.call(this);var x=this.protectedMethod,ha,X;this.setValue=
function(P,y){ha=y.getFilterSet();X=[];y=y.getUsingMetaFields(P);x.visitMissingNecessaryDimensions(P,y,function(T){var aa=new ib,ea=new eb;ea.setSquareField(aa);ea.setFilter(T);X.push(ea);return aa})};this.perform=function(){ha.appendItemModels(X)};this.unperform=function(){ha.removeItemModels(X)}};var Sa,Ba,ja,ta,Ra,ib,eb;(function(){var x=com.kingdee.bos.qing.framework.common;Sa=x.MultilanguageManager.createPackageAccessor(sa);x=com.kingdee.bos.qing.core.controller;Ba=x.AbstractAction;ja=x.AbstractActionAppendAllNecessaryDimensions;
x=com.kingdee.bos.qing.square.model;ta=x.ChartColumn;Ra=x.RollInStateItem;ib=x.SquareField;eb=x.FilterItemModel})()})();(function(){function sa(){var F=this,w,E,Y;this.isReleased=function(){return!0};this.getName=function(){return w};this.getText=function(){return E};this.getIconFileName=function(){return Y};this.createFieldCards=function(la,Qa){throw Error("Override me.");};this.smartCreateSquareFieldFromMetaField=function(la,Qa){return null};this.createPropertyPane=function(){throw Error("Override me.");};this.willTransform=function(la){var Qa=new ta;F.protectedWillTransformImpl(la,Qa);Qa.collectRoll(la.getRollSet());
Qa.collectOthers(la.getGarbageFields());return Qa};this.protectedWillTransformImpl=function(la,Qa){throw Error("Override me.");};this.transform=function(la){var Qa=[];la.popRollField(Qa);var pb=F.protectedTransformImpl(la);la.setupItemModelSet(pb.getRollSet(),Qa);pb.setGarbageFields(la.recycle());return pb};this.protectedTransformImpl=function(){throw Error("Override me.");};this.parseJsonChartModel=function(la){la=tb.createFromJson(la);var Qa=la.getCategories();return Qa&&0!=Qa.length?la:null};this.createChartCtrl=
function(la,Qa){Qa=F.protectedCreateChartCtrlImpl(la,Qa);Qa.setModel(la);return Qa};this.protectedCreateChartCtrlImpl=function(la,Qa){throw Error("Override me.");};this.transformToDrillTarget=function(la,Qa){return 0<=la?new function(pb){this.getValue=function(){return pb.getExecutableValue()};this.getText=function(){return pb.getLabel()};this.isAsParent=function(){return pb.isAsParent()}}(Qa.getModel().getCategories()[la]):null};this.transformToJumpTarget=function(la,Qa,pb){return 0<=la?(la=Qa.getModel().getCategories()[la],
Qa=null,pb.isRollInSupported()&&(Qa=pb.lookupRolledInField(pb.getRollInState().getCurrentRollInFieldCount())),new function(xb,Fb){this.getItemCount=function(){return xb?1:0};this.getField=function(Pb){return xb};this.getMember=function(Pb){return Fb}}(Qa,la.getExecutableValue())):null};this.customLoading=function(la,Qa,pb,xb){xb()};this.protectedMethod={setName:function(la){w=la},setText:function(la){E=la},setIconFileName:function(la){Y=la}}}function Sa(){this.select=function(F,w){0>F?w.getSelectionModel().deselectCategories():
(F=w.getModel().getCategories()[F],w.getSelectionModel().toggleSelectCategory(F))};this.isSelected=function(F,w){if(0>F)return!1;F=w.getModel().getCategories()[F];return w.getSelectionModel().isSelected(F,null)}}function Ba(){this.select=function(F,w){"string"==typeof F?w.getSelectionModel().toggleSelect(F):w.getSelectionModel().deselect()};this.isSelected=function(F,w){return"string"==typeof F?w.getSelectionModel().isSelected(F):!1}}function ja(){this.select=function(F,w){0>F?w.getSelectionModel().deselect():
(F=w.getModel().getRow(F),w.getSelectionModel().toggleSelect(F))};this.isSelected=function(F,w){if(0>F)return!1;F=w.getModel().getRow(F);return w.getSelectionModel().isSelected(F)}}function ta(){var F=this,w=[],E=[],Y=[],la=[],Qa=[],pb=[],xb=[],Fb=[],Pb=[],oc=[],gc=function(Za,qb){for(var Qb=0,ic=Za.getItemModelCount();Qb<ic;Qb++)qb.push(Za.goodbyeItemModel(Qb))},Cb=function(Za,qb,Qb,ic){for(var qc=0;qc<Za.length&&!(ic&&Qb.length>=ic);){var Xb=Za[qc];qb&&Xb.isDimension()||!qb&&Xb.isMeasure()?(Qb.push(Xb),
Za.splice(qc,1)):qc++}};this.getRemainDimensionCount=function(){var Za=0,qb=function(Qb){for(var ic=0;ic<Qb.length;ic++)Qb[ic].isDimension()&&Za++};qb(w);qb(E);qb(Y);qb(la);qb(Qa);qb(pb);qb(xb);qb(Fb);qb(Pb);qb(oc);return Za};this.collectXAxis=function(Za){gc(Za,w)};this.popXAxisDimension=function(Za,qb){Cb(w,!0,Za,qb)};this.popXAxisMeasure=function(Za,qb){Cb(w,!1,Za,qb)};this.collectYAxis=function(Za){gc(Za,E)};this.popYAxisDimension=function(Za,qb){Cb(E,!0,Za,qb)};this.popYAxisMeasure=function(Za,
qb){Cb(E,!1,Za,qb)};this.collectSeries=function(Za){gc(Za,Y)};this.popSeriesDimension=function(Za,qb){Cb(Y,!0,Za,qb)};this.popSeriesMeasure=function(Za,qb){Cb(Y,!1,Za,qb)};this.collectColorField=function(Za){gc(Za,la)};this.popDiscreteColorField=function(Za,qb){Cb(la,!0,Za,qb);Cb(Y,!0,Za,qb)};this.popGradualColorField=function(Za,qb){Cb(la,!1,Za,qb)};this.collectSizeField=function(Za){gc(Za,Qa)};this.popSizeField=function(Za,qb){Cb(Qa,!1,Za,qb)};this.collectAngleField=function(Za){gc(Za,pb)};this.popAngleField=
function(Za,qb){Cb(pb,!1,Za,qb)};this.collectRoll=function(Za){gc(Za,xb)};this.popRollField=function(Za){Cb(xb,!0,Za)};this.collectInformationField=function(Za){gc(Za,Fb)};this.popInformationField=function(Za){Cb(Fb,!0,Za);Cb(Fb,!1,Za)};this.popAnyDimension=function(Za,qb){Cb(w,!0,Za,qb);Cb(E,!0,Za,qb);Cb(Y,!0,Za,qb);F.popDiscreteColorField(Za,qb);Cb(xb,!0,Za,qb);Cb(Fb,!0,Za,qb);Cb(Pb,!0,Za,qb);Cb(oc,!0,Za,qb)};this.popAnyMeasure=function(Za,qb){Cb(w,!1,Za,qb);Cb(E,!1,Za,qb);Cb(Y,!1,Za,qb);F.popGradualColorField(Za,
qb);F.popSizeField(Za,qb);F.popAngleField(Za,qb);Cb(xb,!1,Za,qb);Cb(Fb,!1,Za,qb);Cb(Pb,!1,Za,qb);Cb(oc,!1,Za,qb)};this.collectOthers=function(Za){Za&&0<Za.length&&(Pb=Pb.concat(Za))};this.collectNewSelecteds=function(Za){Za&&0<Za.length&&(oc=oc.concat(Za))};this.recycle=function(){var Za=[];Za=Za.concat(w);Za=Za.concat(E);Za=Za.concat(Y);Za=Za.concat(la);Za=Za.concat(Qa);Za=Za.concat(pb);Za=Za.concat(xb);Za=Za.concat(Fb);return Za=Za.concat(Pb)};this.setupItemModelSet=function(Za,qb){for(var Qb=0;Qb<
qb.length;Qb++)Za.addItemModel(qb[Qb])}}function Ra(){sa.call(this);var F=this;this.createFieldCards=function(w,E){var Y=new w;Y.setTitle(A.get("xAxis","\u6a2a\u8f74"));Y.setItemModelSet(E.getXAxis());Y.setOperatingPrompt(A.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var la=new w;la.setTitle(A.get("yAxis","\u7eb5\u8f74"));la.setItemModelSet(E.getYAxis());la.setOperatingPrompt(A.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));
var Qa=new w;Qa.setTitle(A.get("series","\u7cfb\u5217"));Qa.setItemModelSet(E.getSeries());Qa.setOperatingPrompt(A.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));w=new w;w.setTitle(A.get("roll","\u94bb\u53d6\u5230"));w.setItemModelSet(E.getRollSet());w.setOperatingPrompt(A.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return[Y,la,Qa,w]};this.protectedWillTransformImpl=function(w,E){E.collectXAxis(w.getXAxis());
E.collectYAxis(w.getYAxis());E.collectSeries(w.getSeries())};this.protectedTransformImpl=function(w){var E=[],Y=[],la=[];w.popYAxisMeasure(Y);w.popXAxisDimension(E,1);w.popSeriesDimension(la,1);w.popAnyMeasure(Y);1!=w.getRemainDimensionCount()&&1>la.length&&w.popDiscreteColorField(la,1);1>E.length&&w.popAnyDimension(E,1);1>la.length&&w.popAnyDimension(la,1);var Qa=F.protectedCreateChartModelImpl();w.setupItemModelSet(Qa.getXAxis(),E);w.setupItemModelSet(Qa.getYAxis(),Y);w.setupItemModelSet(Qa.getSeries(),
la);return Qa};this.protectedCreateChartModelImpl=function(){throw Error("Override me");}}function ib(){sa.call(this);var F=this;this.createFieldCards=function(w,E){var Y=new w;Y.setTitle(A.get("xAxis","\u6a2a\u8f74"));Y.setItemModelSet(E.getXAxis());Y.setOperatingPrompt(A.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var la=new w;la.setTitle(A.get("yAxis","\u7eb5\u8f74"));la.setItemModelSet(E.getYAxis());la.setOperatingPrompt(A.get("dragTextFieldHere",
"\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var Qa=new w;Qa.setTitle(A.get("series","\u7cfb\u5217"));Qa.setItemModelSet(E.getSeries());Qa.setOperatingPrompt(A.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));w=new w;w.setTitle(A.get("roll","\u94bb\u53d6\u5230"));w.setItemModelSet(E.getRollSet());w.setOperatingPrompt(A.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return[Y,
la,Qa,w]};this.protectedWillTransformImpl=function(w,E){E.collectXAxis(w.getXAxis());E.collectYAxis(w.getYAxis());E.collectSeries(w.getSeries())};this.protectedTransformImpl=function(w){var E=[],Y=[],la=[];w.popXAxisMeasure(E);w.popYAxisDimension(Y,1);w.popSeriesDimension(la,1);w.popAnyMeasure(E);1!=w.getRemainDimensionCount()&&1>la.length&&w.popDiscreteColorField(la,1);1>Y.length&&w.popAnyDimension(Y,1);1>la.length&&w.popAnyDimension(la,1);var Qa=F.protectedCreateChartModelImpl();w.setupItemModelSet(Qa.getXAxis(),
E);w.setupItemModelSet(Qa.getYAxis(),Y);w.setupItemModelSet(Qa.getSeries(),la);return Qa};this.protectedCreateChartModelImpl=function(){throw Error("Override me");}}function eb(){Ra.call(this);Sa.call(this);var F=this.protectedMethod;F.setName(va.ChartType_Column);F.setIconFileName("chart_msbar");F.setText(A.get("chartColumn","\u591a\u7cfb\u5217\u67f1\u5f62\u56fe"));this.createPropertyPane=function(){return new zb};this.protectedCreateChartModelImpl=function(){return new a};this.protectedCreateChartCtrlImpl=
function(w,E){return new Yb}}function x(){Ra.call(this);Sa.call(this);var F=this.protectedMethod;F.setName(va.ChartType_StackedColumn);F.setIconFileName("chart_stackbar");F.setText(A.get("chartStackColumn","\u5806\u79ef\u67f1\u5f62\u56fe"));var w=this.createFieldCards;this.createFieldCards=function(E,Y){E=w(E,Y);E[2].setTitle(A.get("stack","\u5806\u79ef"));return E};this.createPropertyPane=function(){return new Tb};this.protectedCreateChartModelImpl=function(){return new e};this.protectedCreateChartCtrlImpl=
function(E,Y){return new Zb}}function ha(){Ra.call(this);Sa.call(this);var F=this.protectedMethod;F.setName(va.ChartType_PercentStackedColumn);F.setIconFileName("chart_percentbar");F.setText(A.get("chartPercentStackColumn","\u767e\u5206\u6bd4\u5806\u79ef\u67f1\u5f62\u56fe"));var w=this.createFieldCards;this.createFieldCards=function(E,Y){E=w(E,Y);E[2].setTitle(A.get("stack","\u5806\u79ef"));return E};this.createPropertyPane=function(){return new kc};this.protectedCreateChartModelImpl=function(){return new f};
this.protectedCreateChartCtrlImpl=function(E,Y){return new Wb}}function X(){ib.call(this);Sa.call(this);var F=this.protectedMethod;F.setName(va.ChartType_Bar);F.setIconFileName("chart_horizontalmsbar");F.setText(A.get("chartBar","\u591a\u7cfb\u5217\u6761\u5f62\u56fe"));this.createPropertyPane=function(){return new fc};this.protectedCreateChartModelImpl=function(){return new h};this.protectedCreateChartCtrlImpl=function(w,E){return new Vb}}function P(){ib.call(this);Sa.call(this);var F=this.protectedMethod;
F.setName(va.ChartType_StackedBar);F.setIconFileName("chart_horizontalstackbar");F.setText(A.get("chartStackBar","\u5806\u79ef\u6761\u5f62\u56fe"));var w=this.createFieldCards;this.createFieldCards=function(E,Y){E=w(E,Y);E[2].setTitle(A.get("stack","\u5806\u79ef"));return E};this.createPropertyPane=function(){return new hc};this.protectedCreateChartModelImpl=function(){return new k};this.protectedCreateChartCtrlImpl=function(E,Y){return new $b}}function y(){ib.call(this);Sa.call(this);var F=this.protectedMethod;
F.setName(va.ChartType_PercentStackedBar);F.setIconFileName("chart_horizontalpercentbar");F.setText(A.get("chartPercentStackBar","\u767e\u5206\u6bd4\u5806\u79ef\u6761\u5f62\u56fe"));var w=this.createFieldCards;this.createFieldCards=function(E,Y){E=w(E,Y);E[2].setTitle(A.get("stack","\u5806\u79ef"));return E};this.createPropertyPane=function(){return new Ub};this.protectedCreateChartModelImpl=function(){return new l};this.protectedCreateChartCtrlImpl=function(E,Y){return new Lb}}function T(){Ra.call(this);
var F=this.protectedMethod;F.setName(va.ChartType_Line);F.setIconFileName("chart_mline");F.setText(A.get("chartLine","\u6298\u7ebf\u56fe"));var w=this.createFieldCards;this.createFieldCards=function(E,Y){E=w(E,Y);E[0].setOperatingPrompt(A.get("dragDateFieldHere","\u5c06\u65e5\u671f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));E[3].setOperatingPrompt(A.get("tryDragDateFieldHere","\u5c1d\u8bd5\u5c06\u65e5\u671f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return E};this.createPropertyPane=function(){return new ba};
this.protectedCreateChartModelImpl=function(){return new r};this.protectedCreateChartCtrlImpl=function(E,Y){return new Nb}}function aa(){Ra.call(this);var F=this.protectedMethod;F.setName(va.ChartType_Area);F.setIconFileName("chart_area");F.setText(A.get("chartArea","\u9762\u79ef\u56fe"));var w=this.createFieldCards;this.createFieldCards=function(E,Y){E=w(E,Y);E[0].setOperatingPrompt(A.get("dragDateFieldHere","\u5c06\u65e5\u671f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));E[3].setOperatingPrompt(A.get("tryDragDateFieldHere",
"\u5c1d\u8bd5\u5c06\u65e5\u671f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return E};this.createPropertyPane=function(){return new m};this.protectedCreateChartModelImpl=function(){return new z};this.protectedCreateChartCtrlImpl=function(E,Y){return new ac}}function ea(){aa.call(this);var F=this.protectedMethod;F.setName(va.ChartType_PercentArea);F.setIconFileName("chart_percentarea");F.setText(A.get("chartPercentArea","\u767e\u5206\u6bd4\u9762\u79ef\u56fe"));this.createPropertyPane=function(){return new kc};
this.protectedCreateChartModelImpl=function(){return new D};this.protectedCreateChartCtrlImpl=function(w,E){return new Sb}}function wa(){sa.call(this);Sa.call(this);var F=this;this.createFieldCards=function(w,E){var Y=new w;Y.setItemModelSet(E.getAngleSet());Y.setOperatingPrompt(A.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var la=new w;la.setTitle(A.get("color","\u989c\u8272"));la.setItemModelSet(E.getColorSet());la.setOperatingPrompt(A.get("dragTextFieldHere",
"\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));w=new w;w.setTitle(A.get("roll","\u94bb\u53d6\u5230"));w.setItemModelSet(E.getRollSet());w.setOperatingPrompt(A.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));F.protectedInitFieldCards(Y,la,w);return[Y,la,w]};this.protectedInitFieldCards=function(w,E,Y){w.setTitle(A.get("angle","\u89d2\u5ea6"))};this.protectedWillTransformImpl=function(w,E){E.collectAngleField(w.getAngleSet());
E.collectColorField(w.getColorSet())};this.protectedTransformImpl=function(w){var E=[],Y=[];w.popAngleField(E,1);w.popDiscreteColorField(Y,1);1>E.length&&w.popAnyMeasure(E,1);1>Y.length&&w.popAnyDimension(Y,1);var la=F.protectedCreateModel();w.setupItemModelSet(la.getAngleSet(),E);w.setupItemModelSet(la.getColorSet(),Y);return la};this.protectedCreateModel=function(){throw Error("Override");};this.protectedCreateChartCtrlImpl=function(w,E){return new cc}}function O(){wa.call(this);var F=this.protectedMethod;
F.setName(va.ChartType_Pie);F.setIconFileName("chart_pie");F.setText(A.get("chartPie","\u997c\u56fe"));this.createPropertyPane=function(){return new p};this.protectedCreateModel=function(){return new d}}function fa(){wa.call(this);var F=this.protectedMethod;F.setName(va.ChartType_Ring);F.setIconFileName("chart_ring");F.setText(A.get("chartRing","\u73af\u5f62\u56fe"));this.createPropertyPane=function(){return new v};this.protectedCreateModel=function(){return new b}}function La(){wa.call(this);var F=
this.protectedMethod;F.setName(va.ChartType_Rose);F.setIconFileName("chart_rose");F.setText(A.get("chartRose","\u73ab\u7470\u56fe"));this.protectedInitFieldCards=function(w,E,Y){w.setTitle(A.get("radius","\u534a\u5f84"))};this.createPropertyPane=function(){return new q};this.protectedCreateModel=function(){return new c}}function Ma(){sa.call(this);var F=this.protectedMethod;F.setName(va.ChartType_KPI);F.setIconFileName("chart_kpi");F.setText(A.get("chartKpi","\u4e1a\u52a1\u6307\u6807"));this.createFieldCards=
function(w,E){var Y=new w;Y.setTitle(A.get("primaryKpi","\u4e3b\u6307\u6807"));Y.setItemModelSet(E.getPrimarySet());Y.setOperatingPrompt(A.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));w=new w;w.setTitle(A.get("secondaryKpi","\u526f\u6307\u6807"));w.setItemModelSet(E.getSecondarySet());w.setOperatingPrompt(A.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return[Y,w]};this.createPropertyPane=function(){return new t};
this.protectedWillTransformImpl=function(w,E){E.collectXAxis(w.getPrimarySet());E.collectXAxis(w.getSecondarySet())};this.protectedTransformImpl=function(w){var E=[],Y=[];w.popAnyMeasure(E,1);w.popAnyMeasure(Y);var la=new n;w.setupItemModelSet(la.getPrimarySet(),E);w.setupItemModelSet(la.getSecondarySet(),Y);return la};this.protectedCreateChartCtrlImpl=function(w,E){w=new Eb;w.setClickableChecker(function(){return E.getChartProperty().getLinkTargets()?!0:!1});return w}}function ua(){sa.call(this);
Ba.call(this);var F=this.protectedMethod;F.setName(va.ChartType_Map);F.setIconFileName("chart_map");F.setText(A.get("chartMap","\u5730\u56fe"));this.createFieldCards=function(E,Y){var la=new E;la.setTitle(A.get("dimensionForMap","\u5730\u57df"));la.setItemModelSet(Y.getDimensionSet());la.setOperatingPrompt(A.get("dragGeographicFieldHere","\u5c06\u8868\u793a\u5730\u57df\u7684\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));la.setPerfectHeight(100);var Qa=new E;Qa.setTitle(A.get("measureForMap","\u6570\u503c\uff08\u989c\u8272\uff09"));
Qa.setItemModelSet(Y.getMeasureSet());Qa.setOperatingPrompt(A.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));Qa.setPerfectHeight(100);E=new E;E.setTitle(A.get("infomation","\u8be6\u7ec6\u4fe1\u606f"));E.setItemModelSet(Y.getInfomationSet());E.setPerfectHeight(180);return[la,Qa,E]};this.createPropertyPane=function(){return new u};this.protectedWillTransformImpl=function(E,Y){Y.collectXAxis(E.getDimensionSet());Y.collectColorField(E.getMeasureSet());Y.collectInformationField(E.getInfomationSet())};
this.protectedTransformImpl=function(E){var Y=[],la=[];E.popAnyDimension(Y,1);E.popAnyMeasure(la,1);var Qa=[];E.popAnyDimension(Qa);E.popAnyMeasure(Qa);var pb=new I;E.setupItemModelSet(pb.getDimensionSet(),Y);E.setupItemModelSet(pb.getMeasureSet(),la);E.setupItemModelSet(pb.getInfomationSet(),Qa);return pb};this.protectedCreateChartCtrlImpl=function(E,Y){return new na};this.transformToDrillTarget=function(E,Y){return"string"==typeof E?new function(la){this.getValue=function(){return la};this.getText=
function(){return la};this.isAsParent=function(){return!1}}(E):null};this.transformToJumpTarget=function(E,Y,la){return null};this.customLoading=function(E,Y,la,Qa){var pb=E.getChartProperty();E=function(xb,Fb,Pb){return function(){xb.rtTemplateToRenderAttr(Fb);Pb()}}(pb,la.getAttr(),Qa);pb.askRtTemplateNeedReload(E)?(pb.rtTemplateLoaded(null),(Qa=pb.getOutsideReference())?(Y=Y(function(xb){pb.rtTemplateLoaded(xb)},function(xb,Fb){var Pb={};Pb.content=w(xb+" "+Fb);pb.rtTemplateLoaded(Pb);return!0}),
Y.setShowBlocking(!1),Y.loadMapTemplate(Qa)):(Y={},Y.content=w(A.get("chartmapTemplateNeeded","\u672a\u8bbe\u7f6e\u5730\u56fe\u6a21\u677f\u3002")),pb.rtTemplateLoaded(Y))):pb.askRtTemplateLoading(E)||Qa()};var w=function(E){var Y=$("<div>"),la=$("<div>");la.css("color","#ccc");la.text(E);la.appendTo(Y);return Y.html()}}function Ka(){sa.call(this);Ba.call(this);var F=this.protectedMethod;F.setName(va.ChartType_GIS);F.setIconFileName("chart_gis");F.setText(A.get("chartGis","GIS\u5730\u56fe"));this.createFieldCards=
function(E,Y){var la=w(E,Y.getCoordinateSet(),A.get("longitudeLatitude","\u7ecf\u7eac\u5ea6"),A.get("dragLongitudeLatitudeFieldHere","\u5c06\u8868\u793a\u7ecf\u5ea6\u548c\u7eac\u5ea6\u7684\u4e24\u4e2a\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));la.setPerfectHeight(100);var Qa=w(E,Y.getCaptionSet(),A.get("caption","\u540d\u79f0"),A.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002")),pb=w(E,Y.getColorSet(),A.get("color","\u989c\u8272"),A.get("tryDragTextFieldHere",
"\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002")),xb=w(E,Y.getSizeSet(),A.get("size","\u5927\u5c0f"),A.get("tryDragNumberFieldHere","\u5c1d\u8bd5\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));E=w(E,Y.getInfomationSet(),A.get("infomation","\u8be6\u7ec6\u4fe1\u606f"),null);E.setPerfectHeight(180);return[la,Qa,pb,xb,E]};var w=function(E,Y,la,Qa){E=new E;E.setTitle(la);E.setItemModelSet(Y);E.setOperatingPrompt(Qa);E.setPerfectHeight(72);return E};this.smartCreateSquareFieldFromMetaField=
function(E,Y,la){return la==Y.getCoordinateSet()&&E.getDataType()==ra.DT_NUMBER?(Y=new za,Y.setMetaField(E),Y.setRole(da.ROLE_DIMENSION),Y.setContinuous(!1),Y):null};this.createPropertyPane=function(){return new B};this.protectedWillTransformImpl=function(E,Y){if(1<E.getCoordinateSet().getItemModelCount()){var la=new Q;la.addItemModel(E.getCoordinateSet().goodbyeItemModel(1));Y.collectYAxis(la)}0<E.getCoordinateSet().getItemModelCount()&&(la=new Q,la.addItemModel(E.getCoordinateSet().goodbyeItemModel(0)),
Y.collectXAxis(la));Y.collectSizeField(E.getSizeSet());Y.collectColorField(E.getColorSet());Y.collectInformationField(E.getCaptionSet());Y.collectInformationField(E.getInfomationSet())};this.protectedTransformImpl=function(E){var Y=[];E.popXAxisDimension(Y,1);E.popYAxisDimension(Y,1);2>Y.length&&E.popAnyDimension(Y,2);var la=[];E.popDiscreteColorField(la);var Qa=[];E.popSizeField(Qa);var pb=[];E.popAnyDimension(pb,1);var xb=[];E.popAnyDimension(xb);E.popAnyMeasure(xb);var Fb=new J;E.setupItemModelSet(Fb.getCoordinateSet(),
Y);E.setupItemModelSet(Fb.getColorSet(),la);E.setupItemModelSet(Fb.getSizeSet(),Qa);E.setupItemModelSet(Fb.getCaptionSet(),pb);E.setupItemModelSet(Fb.getInfomationSet(),xb);return Fb};this.protectedCreateChartCtrlImpl=function(E,Y){E=new Xa;E.setDesigntimeInitializationChangedListener(function(la,Qa,pb){Y.getChartProperty().setInitialContext(la,Qa,pb)});return E};this.customLoading=function(E,Y,la,Qa){Kb.isServerConfigLoaded()?Qa():(E=Y(function(pb){Kb.setServerConfig(pb.host,pb.path);Qa()}),E.setShowBlocking(!1),
E.getGisServerConfig())}}function oa(){sa.call(this);var F=this.protectedMethod;F.setName(va.ChartType_Radar);F.setIconFileName("chart_radar");F.setText(A.get("chartRadar","\u96f7\u8fbe\u56fe"));this.protectedCreateChartCtrlImpl=function(w,E){return new $a};this.protectedWillTransformImpl=function(w,E){E.collectYAxis(w.getMeasureSet());E.collectXAxis(w.getDimensionSet())};this.protectedTransformImpl=function(w){var E=[],Y=[];w.popAnyMeasure(Y);w.popAnyDimension(E,1<Y.length?1:2);var la=new Z;w.setupItemModelSet(la.getDimensionSet(),
E);w.setupItemModelSet(la.getMeasureSet(),Y);return la};this.createFieldCards=function(w,E){var Y=new w;Y.setTitle(A.get("dimensionForRadar","\u7ef4\u5ea6"));Y.setItemModelSet(E.getDimensionSet());Y.setOperatingPrompt(A.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));w=new w;w.setTitle(A.get("measureForRadar","\u5ea6\u91cf"));w.setItemModelSet(E.getMeasureSet());w.setOperatingPrompt(A.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));
return[Y,w]};this.createPropertyPane=function(){return new g}}function Oa(){sa.call(this);this.protectedCreateProgressFieldCards=function(F,w,E){var Y=[],la=new F;la.setTitle(A.get("desiredProgress","\u76ee\u6807\u503c"));la.setItemModelSet(w.getDesired());la.setOperatingPrompt(A.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));Y.push(la);la=new F;la.setTitle(A.get("completedProgress","\u5b9e\u9645\u503c"));la.setItemModelSet(w.getCompleted());la.setOperatingPrompt(A.get("dragNumberFieldHere",
"\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));Y.push(la);if(E!=Oa.CIRCLE){switch(E){case Oa.BAR:var Qa=A.get("yAxis","\u7eb5\u8f74");break;case Oa.COLUMN:Qa=A.get("xAxis","\u6a2a\u8f74")}E=new F;E.setTitle(Qa);E.setItemModelSet(w.getDimension());E.setOperatingPrompt(A.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));Y.unshift(E);F=new F;F.setTitle(A.get("roll","\u94bb\u53d6\u5230"));F.setItemModelSet(w.getRollSet());F.setOperatingPrompt(A.get("tryDragTextFieldHere",
"\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));Y.push(F)}return Y};this.protectedWillTransformImpl=function(F,w){F instanceof cb||w.collectXAxis(F.getDimension());w.collectYAxis(F.getDesired());w.collectYAxis(F.getCompleted())};this.protectedProgressTransformImpl=function(F,w){var E=w instanceof cb,Y=[],la=[],Qa=[];!E&&F.popAnyDimension(Y,1);F.popAnyMeasure(la,1);F.popAnyMeasure(Qa,1);!E&&F.setupItemModelSet(w.getDimension(),Y);F.setupItemModelSet(w.getDesired(),la);
F.setupItemModelSet(w.getCompleted(),Qa);return w}}function ab(){Oa.call(this);Sa.call(this);var F=this.protectedMethod,w=this;F.setName(va.ChartType_ProgressBar);F.setIconFileName("chart_progresshbar");F.setText(A.get("chartProgressBar","\u6761\u5f62\u8fdb\u5ea6\u56fe"));this.protectedCreateChartCtrlImpl=function(E,Y){return new hb};this.createFieldCards=function(E,Y){return w.protectedCreateProgressFieldCards(E,Y,Oa.BAR)};this.createPropertyPane=function(){return new C};this.protectedTransformImpl=
function(E){return w.protectedProgressTransformImpl(E,new ia)}}function ca(){Oa.call(this);Sa.call(this);var F=this.protectedMethod,w=this;F.setName(va.ChartType_ProgressColumn);F.setIconFileName("chart_progressvbar");F.setText(A.get("chartProgressColumn","\u67f1\u5f62\u8fdb\u5ea6\u56fe"));this.protectedCreateChartCtrlImpl=function(E,Y){return new nb};this.createFieldCards=function(E,Y){return w.protectedCreateProgressFieldCards(E,Y,Oa.COLUMN)};this.createPropertyPane=function(){return new W};this.protectedTransformImpl=
function(E){return w.protectedProgressTransformImpl(E,new Ta)}}function fb(){Oa.call(this);var F=this.protectedMethod,w=this;F.setName(va.ChartType_ProgressCircle);F.setIconFileName("chart_progresscircle");F.setText(A.get("chartProgressCircle","\u73af\u5f62\u8fdb\u5ea6\u56fe"));this.protectedCreateChartCtrlImpl=function(E,Y){return new rb};this.createFieldCards=function(E,Y){return w.protectedCreateProgressFieldCards(E,Y,Oa.CIRCLE)};this.createPropertyPane=function(){return new Ia};this.protectedTransformImpl=
function(E){return w.protectedProgressTransformImpl(E,new cb)}}function lb(){sa.call(this);var F=this.protectedMethod;F.setName(va.ChartType_Dial);F.setIconFileName("chart_dial");F.setText(A.get("chartDial","\u4eea\u8868\u56fe"));this.protectedCreateChartCtrlImpl=function(w,E){return new Ob};this.protectedWillTransformImpl=function(w,E){E.collectYAxis(w.getMeasureSet())};this.protectedTransformImpl=function(w){var E=[];w.popAnyMeasure(E,1);var Y=new Ya;w.setupItemModelSet(Y.getMeasureSet(),E);return Y};
this.createFieldCards=function(w,E){w=new w;w.setTitle(A.get("pointerValue","\u6307\u9488\u503c"));w.setItemModelSet(E.getMeasureSet());w.setOperatingPrompt(A.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return[w]};this.createPropertyPane=function(){return new db}}function gb(){sa.call(this);Sa.call(this);var F=this.protectedMethod;F.setName(va.ChartType_Composite);F.setIconFileName("chart_composite");F.setText(A.get("chartComposite","\u7ec4\u5408\u56fe"));
this.protectedCreateChartCtrlImpl=function(w,E){return new ub};this.protectedWillTransformImpl=function(w,E){E.collectXAxis(w.getXAxis());E.collectYAxis(w.getLeftYAxis());E.collectYAxis(w.getRightYAxis());E.collectSeries(w.getLeftSeries());E.collectSeries(w.getRightSeries())};this.protectedTransformImpl=function(w){var E=new jb,Y=[],la=[],Qa=[];w.popYAxisMeasure(la);w.popXAxisDimension(Y,1);w.popSeriesDimension(Qa,1);w.popAnyMeasure(la);1!=w.getRemainDimensionCount()&&1>Qa.length&&w.popDiscreteColorField(Qa,
1);1>Y.length&&w.popAnyDimension(Y,1);1>Qa.length&&w.popAnyDimension(Qa,1);w.setupItemModelSet(E.getXAxis(),Y);1<la.length&&(Y=la.slice(1),la=[la[0]],w.setupItemModelSet(E.getRightYAxis(),Y));w.setupItemModelSet(E.getLeftYAxis(),la);w.setupItemModelSet(E.getLeftSeries(),Qa);return E};this.createFieldCards=function(w,E){var Y=new w;Y.setTitle(A.get("xAxis","\u6a2a\u8f74"));Y.setItemModelSet(E.getXAxis());Y.setOperatingPrompt(A.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));
var la=new w;la.setTitle(A.get("leftYAxis","\u5de6\u8f74"));la.setItemModelSet(E.getLeftYAxis());la.setOperatingPrompt(A.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var Qa=new w;Qa.setTitle(A.get("leftSeries","\u7cfb\u5217\uff08\u5de6\uff09"));Qa.setItemModelSet(E.getLeftSeries());Qa.setOperatingPrompt(A.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var pb=new w;pb.setTitle(A.get("rightYAxis",
"\u53f3\u8f74"));pb.setItemModelSet(E.getRightYAxis());pb.setOperatingPrompt(A.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var xb=new w;xb.setTitle(A.get("rightSeries","\u7cfb\u5217\uff08\u53f3\uff09"));xb.setItemModelSet(E.getRightSeries());xb.setOperatingPrompt(A.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));w=new w;w.setTitle(A.get("roll","\u94bb\u53d6\u5230"));w.setItemModelSet(E.getRollSet());
w.setOperatingPrompt(A.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return[Y,la,Qa,pb,w]};this.createPropertyPane=function(){return new N}}function qa(){sa.call(this);ja.call(this);this.transformToDrillTarget=function(F,w){return null};this.transformToJumpTarget=function(F,w,E){if(0<=F){F=w.getModel().getRow(F).getLinkageKeywordValues();var Y=[];E.lookupAllItemModelSet(function(la){la=la.getSquareField();la.isDimension()&&!la.isInvalid()&&
Y.push(la)});return new function(la,Qa){this.getItemCount=function(){return la.length};this.getField=function(pb){return la[pb]};this.getMember=function(pb){return Qa[pb]}}(Y,F)}return null}}function Aa(){qa.call(this);var F=this.protectedMethod;F.setName(va.ChartType_Grid);F.setIconFileName("chart_grid");F.setText(A.get("chartGrid","\u5217\u8868"));this.protectedCreateChartCtrlImpl=function(w,E){return new Ab};this.createFieldCards=function(w,E){w=new w;w.setTitle(A.get("gridColumnSet","\u5217"));
w.setItemModelSet(E.getColumnSet());w.setOperatingPrompt(A.get("dragAnyFieldHere","\u5c06\u4efb\u610f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));w.setPerfectHeight(180);return[w]};this.createPropertyPane=function(){return new S};this.protectedWillTransformImpl=function(w,E){E.collectXAxis(w.getColumnSet())};this.protectedTransformImpl=function(w){var E=[],Y=[];w.popAnyMeasure(E);w.popAnyDimension(Y);var la=new ya;w.setupItemModelSet(la.getColumnSet(),Y.concat(E));return la};this.parseJsonChartModel=
function(w){w=yb.createFromJson(w);return 0==w.getColumnCount()?null:w}}function Fa(){qa.call(this);var F=this.protectedMethod;F.setName(va.ChartType_CustomList);F.setIconFileName("chart_customlist");F.setText(A.get("chartCustomList","\u81ea\u5b9a\u4e49\u5217\u8868"));this.protectedCreateChartCtrlImpl=function(w,E){return new Hb};this.createFieldCards=function(w,E){w=new w;w.setTitle(A.get("customListFieldSet","\u5b57\u6bb5"));w.setItemModelSet(E.getFieldSet());w.setOperatingPrompt(A.get("dragAnyFieldHere",
"\u5c06\u4efb\u610f\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));w.setPerfectHeight(180);return[w]};this.createPropertyPane=function(){return new H};this.protectedWillTransformImpl=function(w,E){E.collectXAxis(w.getFieldSet())};this.protectedTransformImpl=function(w){var E=[],Y=[];w.popAnyMeasure(E);w.popAnyDimension(Y);var la=new Ha;w.setupItemModelSet(la.getFieldSet(),Y.concat(E));return la};this.parseJsonChartModel=function(w){return yb.createFromJson(w)}}function ka(){sa.call(this);var F=this.protectedMethod;
F.setName(va.ChartType_Waterfall);F.setIconFileName("chart_waterfall");F.setText(A.get("chartWaterfall","\u7011\u5e03\u56fe"));this.protectedCreateChartCtrlImpl=function(w,E){return new Mb};this.createFieldCards=function(w,E){var Y=new w;Y.setTitle(A.get("waterfallMeasure","\u5ea6\u91cf"));Y.setItemModelSet(E.getMeasureSet());Y.setOperatingPrompt(A.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var la=new w;la.setTitle(A.get("waterfallClause","\u6761\u76ee"));
la.setItemModelSet(E.getClauseSet());la.setOperatingPrompt(A.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));w=new w;w.setTitle(A.get("waterfallStage","\u9636\u6bb5"));w.setItemModelSet(E.getStageSet());w.setOperatingPrompt(A.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return[Y,la,w]};this.createPropertyPane=function(){return new G};this.protectedWillTransformImpl=function(w,E){E.collectYAxis(w.getMeasureSet());
E.collectXAxis(w.getClauseSet());E.collectSeries(w.getStageSet())};this.protectedTransformImpl=function(w){var E=[],Y=[],la=[];w.popAnyMeasure(E,1);w.popAnyDimension(Y,1);w.popAnyDimension(la,1);var Qa=new bb;w.setupItemModelSet(Qa.getMeasureSet(),E);w.setupItemModelSet(Qa.getClauseSet(),Y);w.setupItemModelSet(Qa.getStageSet(),la);return Qa}}function Na(){sa.call(this);Sa.call(this);var F=this.protectedMethod;F.setName(va.ChartType_Funnel);F.setIconFileName("chart_funnel");F.setText(A.get("chartFunnel",
"\u6f0f\u6597\u56fe"));this.protectedCreateChartCtrlImpl=function(w,E){return new Ib};this.createFieldCards=function(w,E){var Y=new w;Y.setTitle(A.get("measure","\u5ea6\u91cf"));Y.setItemModelSet(E.getMeasureSet());Y.setOperatingPrompt(A.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));w=new w;w.setTitle(A.get("dimension","\u7ef4\u5ea6"));w.setItemModelSet(E.getDimensionSet());w.setOperatingPrompt(A.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));
return[w,Y]};this.createPropertyPane=function(){return new ma};this.protectedWillTransformImpl=function(w,E){E.collectSizeField(w.getMeasureSet());E.collectColorField(w.getDimensionSet())};this.protectedTransformImpl=function(w){var E=[],Y=[];w.popSizeField(E);w.popAnyMeasure(E);w.popDiscreteColorField(Y,1);1>Y.length&&w.popAnyDimension(Y,1);var la=new ob;w.setupItemModelSet(la.getMeasureSet(),E);w.setupItemModelSet(la.getDimensionSet(),Y);return la}}function U(){sa.call(this);var F=this.protectedMethod;
F.setName(va.ChartType_Scatter);F.setIconFileName("chart_scatter");F.setText(A.get("chartScatter","\u6563\u70b9/\u6c14\u6ce1\u56fe"));this.protectedCreateChartCtrlImpl=function(w,E){return new wb};this.createFieldCards=function(w,E){var Y=new w;Y.setTitle(A.get("xAxis","\u6a2a\u8f74"));Y.setItemModelSet(E.getXAxisFieldSet());Y.setOperatingPrompt(A.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var la=new w;la.setTitle(A.get("yAxis","\u7eb5\u8f74"));la.setItemModelSet(E.getYAxisFieldSet());
la.setOperatingPrompt(A.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var Qa=new w;Qa.setTitle(A.get("size","\u5927\u5c0f"));Qa.setItemModelSet(E.getZAxisFieldSet());Qa.setOperatingPrompt(A.get("tryDragNumberFieldHere","\u5c1d\u8bd5\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));var pb=new w;pb.setTitle(A.get("detail","\u7ec6\u5206"));pb.setItemModelSet(E.getCategoryFieldSet());pb.setOperatingPrompt(A.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));
w=new w;w.setTitle(A.get("color","\u989c\u8272"));w.setItemModelSet(E.getSeriesFieldSet());w.setOperatingPrompt(A.get("tryDragTextFieldHere","\u5c1d\u8bd5\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));return[Y,la,pb,w,Qa]};this.createPropertyPane=function(){return new Va};this.protectedWillTransformImpl=function(w,E){E.collectXAxis(w.getXAxisFieldSet());E.collectYAxis(w.getYAxisFieldSet());E.collectSizeField(w.getZAxisFieldSet());E.collectColorField(w.getSeriesFieldSet());E.collectXAxis(w.getCategoryFieldSet())};
this.protectedTransformImpl=function(w){var E=[],Y=[],la=[],Qa=[],pb=[];w.popSizeField(la,1);w.popAnyMeasure(E,1);w.popAnyMeasure(Y,1);0==la.length&&w.popAnyMeasure(la,1);w.popDiscreteColorField(Qa,1);w.popAnyDimension(pb,1);0==Qa.length&&w.popAnyDimension(Qa,1);var xb=new xa;w.setupItemModelSet(xb.getXAxisFieldSet(),E);w.setupItemModelSet(xb.getYAxisFieldSet(),Y);w.setupItemModelSet(xb.getZAxisFieldSet(),la);w.setupItemModelSet(xb.getCategoryFieldSet(),pb);w.setupItemModelSet(xb.getSeriesFieldSet(),
Qa);return xb}}function K(){sa.call(this);var F=this.protectedMethod;F.setName(va.ChartType_RectTree);F.setIconFileName("chart_treemap");F.setText(A.get("chartRectTree","\u6811\u56fe"));this.protectedCreateChartCtrlImpl=function(w,E){return new dc};this.createFieldCards=function(w,E){var Y=new w;Y.setTitle(A.get("size","\u5927\u5c0f"));Y.setItemModelSet(E.getSizeSet());Y.setOperatingPrompt(A.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));Y.setPerfectHeight(88);
var la=new w;la.setTitle(A.get("detail","\u7ec6\u5206"));la.setItemModelSet(E.getDimensionSet());la.setOperatingPrompt(A.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));la.setPerfectHeight(160);w=new w;w.setTitle(A.get("color","\u989c\u8272"));w.setItemModelSet(E.getColorSet());w.setPerfectHeight(88);return[Y,la,w]};this.createPropertyPane=function(){return new sb};this.protectedWillTransformImpl=function(w,E){E.collectXAxis(w.getDimensionSet());E.collectSizeField(w.getSizeSet());
E.collectColorField(w.getColorSet())};this.protectedTransformImpl=function(w){var E=[],Y=[],la=[];w.popSizeField(E,1);0==E.length&&w.popAnyMeasure(E,1);w.popGradualColorField(Y,1);0==Y.length&&w.popDiscreteColorField(Y,1);w.popAnyDimension(la);var Qa=new Ca;w.setupItemModelSet(Qa.getDimensionSet(),la);w.setupItemModelSet(Qa.getSizeSet(),E);w.setupItemModelSet(Qa.getColorSet(),Y);return Qa};this.parseJsonChartModel=function(w){return Bb.createFromJson(w)};this.transformToDrillTarget=function(w,E){return null};
this.transformToJumpTarget=function(w,E,Y){return null}}function V(){sa.call(this);var F=this.protectedMethod;F.setName(va.ChartType_Sunburst);F.setIconFileName("chart_sunburst");F.setText(A.get("chartSunburst","\u65ed\u65e5\u56fe"));this.protectedCreateChartCtrlImpl=function(w,E){return new ec};this.createFieldCards=function(w,E){var Y=new w;Y.setTitle(A.get("size","\u5927\u5c0f"));Y.setItemModelSet(E.getSizeSet());Y.setOperatingPrompt(A.get("dragNumberFieldHere","\u5c06\u6570\u503c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));
Y.setPerfectHeight(88);w=new w;w.setTitle(A.get("detail","\u7ec6\u5206"));w.setItemModelSet(E.getDimensionSet());w.setOperatingPrompt(A.get("dragTextFieldHere","\u5c06\u6587\u672c\u5b57\u6bb5\u62d6\u5230\u8fd9\u91cc\u3002"));w.setPerfectHeight(160);return[Y,w]};this.createPropertyPane=function(){return new Ga};this.protectedWillTransformImpl=function(w,E){for(var Y=new Q,la=new Q,Qa=0;Qa<w.getDimensionSet().getItemModelCount();Qa++)(0==Qa?Y:la).addItemModel(w.getDimensionSet().goodbyeItemModel(Qa));
E.collectColorField(Y);E.collectXAxis(la);E.collectSizeField(w.getSizeSet())};this.protectedTransformImpl=function(w){var E=[];w.popSizeField(E,1);0==E.length&&w.popAnyMeasure(E,1);var Y=[];w.popDiscreteColorField(Y,1);w.popAnyDimension(Y);var la=new mb;w.setupItemModelSet(la.getDimensionSet(),Y);w.setupItemModelSet(la.getSizeSet(),E);return la};this.parseJsonChartModel=function(w){return Bb.createFromJson(w)};this.transformToDrillTarget=function(w,E){return null};this.transformToJumpTarget=function(w,
E,Y){return null}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.square&&(com.kingdee.bos.qing.square={});"undefined"==typeof com.kingdee.bos.qing.square.ui&&(com.kingdee.bos.qing.square.ui={});var M=com.kingdee.bos.qing.square.ui,A,ra,da,va,za,Q,n,d,b,c,a,e,f,h,k,l,r,z,D,I,J,Z,ia,Ta,cb,jb,ya,Ha,
bb,ob,xa,Ya,Ca,mb,tb,yb,Bb,Eb,cc,Yb,Vb,Zb,Wb,$b,Lb,Nb,ac,Sb,na,Xa,$a,hb,nb,rb,ub,Ab,Hb,Mb,Ib,wb,Ob,dc,ec,Kb,zb=M.XSYNPropertyPane,fc=M.YSXNPropertyPane,Tb=M.XSYNPropertyPaneForStacked,kc=M.XSYNPropertyPaneForPercentStacked,hc=M.YSXNPropertyPaneForStacked,Ub=M.YSXNPropertyPaneForPercentStacked,ba=M.LineChartPropertyPane,m=M.AreaChartPropertyPane,p=M.PieChartPropertyPane,v=M.RingChartPropertyPane,q=M.RoseChartPropertyPane,t=M.KPIChartPropertyPane,u=M.MapChartPropertyPane,B=M.GISChartPropertyPane,g=
M.RadarChartPropertyPane,C=M.ProgressBarChartPropertyPane,W=M.ProgressColumnChartPropertyPane,Ia=M.ProgressCirclePropertyPane,N=M.CompositeChartPropertyPane,S=M.GridChartPropertyPane,H=M.CustomListChartPropertyPane,G=M.WaterfallChartPropertyPane,ma=M.FunnelChartPropertyPane,Va=M.ScatterChartPropertyPane,db=M.DialChartPropertyPane,sb=M.RectTreeChartPropertyPane,Ga=M.SunburstChartPropertyPane;(function(){var F=com.kingdee.bos.qing.framework.common;A=F.MultilanguageManager.createPackageAccessor(M);F=
com.kingdee.bos.qing.core.model;ra=F.MetaField;da=F.AbstractAnalyticalField;F=com.kingdee.bos.qing.square.model;va=F.SquareModel;za=F.SquareField;Q=F.ItemModelSet;n=F.ChartKPI;d=F.ChartPie;b=F.ChartRing;c=F.ChartRose;a=F.ChartColumn;e=F.ChartStackColumn;f=F.ChartPercentStackColumn;h=F.ChartBar;k=F.ChartStackBar;l=F.ChartPercentStackBar;r=F.ChartLine;z=F.ChartArea;D=F.ChartPercentArea;I=F.ChartMap;J=F.ChartGIS;Z=F.ChartRadar;ia=F.ChartProgressBar;Ta=F.ChartProgressColumn;cb=F.ChartProgressCircle;jb=
F.ChartComposite;ya=F.ChartGrid;Ha=F.ChartCustomList;bb=F.ChartWaterfall;ob=F.ChartFunnel;xa=F.ChartScatter;Ya=F.ChartDial;Ca=F.ChartRectTree;mb=F.ChartSunburst;F=com.kingdee.bos.qing.chart.model;tb=F.NormalChartModel;yb=F.GridChartModel;Bb=F.TreeChartModel;F=com.kingdee.bos.qing.chart.square;Eb=F.KPICardChart;cc=F.PieChart;Yb=F.ColumnChart;Vb=F.BarChart;Zb=F.StackedColumnChart;Wb=F.PercentStackedColumnChart;$b=F.StackedBarChart;Lb=F.PercentStackedBarChart;Nb=F.LineChart;ac=F.AreaChart;Sb=F.PercentAreaChart;
na=F.MapChart;Xa=F.GISChart;$a=F.RadarChart;hb=F.ProgressBarChart;nb=F.ProgressColumnChart;rb=F.ProgressCircleChart;ub=F.CompositeChart;Ab=F.GridChart;Hb=F.CustomListChart;Mb=F.WaterfallChart;Ib=F.FunnelChart;wb=F.ScatterChart;Ob=F.DialChart;dc=F.RectTreeChart;ec=F.SunburstChart;F=com.kingdee.bos.qing.chart.gis;Kb=F.GISChartGlobal})();M.ChartTypeFactory=new function(){var F,w={},E=function(){if(!F){var Y=[Aa,Fa,Ma,eb,x,ha,X,P,y,T,aa,ea,ca,ab,fb,gb,ka,Na,O,fa,La,V,K,lb,oa,ua,Ka,U];F=[];for(var la=
0;la<Y.length;la++){var Qa=new Y[la];F[la]=Qa;w[Qa.getName()]=Qa}}};this.getInstance=function(Y){E();Y=w[Y];if(!Y)throw Error("Unknown chart type.");return Y};this.getAllInstance=function(){E();return F.slice(0)}};Oa.BAR="bar";Oa.COLUMN="column";Oa.CIRCLE="circle"})();(function(){function sa(Q,n){this.getChartTypeName=function(){return Q};this.getLegendModel=function(){return n}}function Sa(){var Q=this,n,d,b,c,a,e,f,h,k,l,r,z,D,I,J,Z,ia,Ta,cb;this.destroy=function(){Q.setRollOutHandler(null);f=e=I=z=r=null};this.setAppointedSize=function(na,Xa){J=na;Z=Xa};this.setTooltipsWidget=function(na){k=na};var jb=function(){k||(k=za);return k},ya=function(){l||(l=new eb);return l};this.setPredrawListener=function(na){r=na};this.setSelectionListener=function(na){z=na};var Ha=
function(na,Xa,$a){z&&z(na,Xa,$a)};this.setRollOutHandler=function(na){var Xa={getRollInState:function(){return a}};Xa.lookupRolledInField=tb;Xa.getCommandManager=Q.getCommandManager;Xa.getOperatingMenu=Eb;Xa.decorateCrumb=Ya;D&&D.bindDependence(null);(D=na)&&D.bindDependence(Xa)};var bb=function(){D||Q.setRollOutHandler(new ha);return D};this.setCosmeticHandler=function(na){I=na};this.setCommandManager=function(na){e=na};this.getCommandManager=function(){null==e&&(e=new A);return e};this.setContextApi=
function(na){f=na};this.setModel=function(na,Xa){c=Xa;a=c.getRollInState();cb=b=d=null;if(na){Xa=na.chartType;var $a=na.chart,hb=na.legends,nb=na.dataEmpty?!0:!1,rb=na.basicInsights;b=na.warning;na=null;if(hb){var ub=hb.discreteColor;if(ub){var Ab=ub.colors,Hb=ub.texts,Mb=ub.captions;ub=ub.others;na=new ka;na.prepare(Ab,Hb,Mb,ub);na.setAdditionalText(Ka.get("itemsAndSoOn","\u5176\u5b83#1\u9879"))}(hb=hb.continuousColor)&&(na=lb.parseContontinuousColorLegendModel(hb))}hb=na;n=va.getInstance(Xa);if($a=
n.parseJsonChartModel($a))d=n.createChartCtrl($a,c),d.setLegendModel(hb),d.setTooltipsListener(Ca),nb||(qa.isRuntimeSupported()&&ob(),d.setClickListener(Vb),d.isSelectionSupported()&&d.setSelectionListener(Ha)),d.getAttr().setDataEmpty(nb);Q.reset(c.getChartProperty());rb&&(cb=new ea,cb.basicFromJsonObject(rb));return new sa(Xa,hb)}return null};this.createChartInfoUi=function(na,Xa,$a,hb,nb){return{createJqUi:function(){var rb=new P;rb.setTitle(Ka.get("chartInfo","\u56fe\u8868\u4fe1\u606f"));rb.setClosingActor(Xa);
$a&&rb.setSizeSuggester(hb,nb,$a);return rb.createJqUi(f.getSquareModel(),na)}}};this.createInsightUi=function(na,Xa,$a,hb){return{createJqUi:function(){var nb=new y;nb.setTitle(Ka.get("insight","\u6d1e\u5bdf"));nb.setClosingActor(na);Xa&&nb.setSizeSuggester($a,hb,Xa);return nb.createJqUi(Q,cb)}}};this.createInsightContentMaker=function(){return cb?new aa(Q,cb):null};this.reset=function(na){d&&na.toRenderAttr(d.getAttr());ia=I?I(d):null};this.drawChart=function(na,Xa){if(f){jb().hide();for(var $a=
!1,hb=na.children(),nb=0;nb<hb.length;nb++){var rb=hb.eq(nb);h&&h[0]==rb[0]?$a=!0:rb.remove()}$a||(h=$("<div>"),h.appendTo(na),O.layoutCtrlWithLRTB(h,0,0,null,0,0,null));d?(d.isErasingWhenRedraw()&&h.empty(),n.customLoading(c,f.createFacade,d,function(){r&&r(d);d.setMouseStateLocked(!1);d.getAttr().setReserveRollOutSpace(bb().isRollOutEnabled());var ub=J?J:h.innerWidth(),Ab=Z?Z:h.innerHeight();d.draw(h[0],ub,Ab)})):(h.empty(),$a=$("<div>"),$a.addClass("square-exhibition-nothing"),$a.text(Xa),$a.appendTo(na));
b&&xa(na,b);bb().paint(na);Eb().abandon();Eb().setJqParent(na);Eb().setBeforeSlideListener(function(){d.setMouseStateLocked(!0);jb().hide()});Eb().setAfterSlideListener(function(){d.setMouseStateLocked(!1)})}};var ob=function(){var na=c.getChartProperty().getLinkTargets();if(na){var Xa=na.getUsefulItems();if(0<Xa.length){na=[];for(var $a=0;$a<Xa.length;$a++)na.push(Xa[$a].getBizUiId());qa.lookupBizMeta(na,function(hb){for(var nb=0;nb<Xa.length;nb++){var rb=Xa[nb],ub=hb[nb];ub?(rb.setRuntimeValid(!0),
rb.setUsableDisplayName(ub)):rb.setRuntimeValid(!1)}})}}},xa=function(na,Xa){var $a=$("<div>");$a.text(Xa);$a.attr("title",Xa);$a.css("z-index","65535");$a.addClass("square-exhibition-nodata");Ya($a,Sa.STYLE_PROMPTLABEL_COLOR,null,Sa.STYLE_PROMPTLABEL_FONTSIZE_ENHANCED);$a.appendTo(na)},Ya=function(na,Xa,$a,hb){Xa=ia?ia[Xa]:null;!Xa&&(Xa=$a);Xa&&na.css("color",Xa);($a=ia?ia[hb]:null)&&na.css("fontSize",100+10*parseInt($a)+"%")},Ca=function(na,Xa,$a,hb){hb?$a?($a=mb($a),ya().bindAssociatedChart(h,
d),ya().setContent($a),ya().show(na,Xa)):ya().hide():$a?($a=mb($a),jb().bindAssociatedChart(h,d),jb().setContent($a),jb().show(na,Xa)):jb().hide()},mb=function(na){var Xa;if(a)for(var $a=a.getItemCount()-1;0<=$a;$a--){var hb=tb($a);if(hb){var nb=a.getItem($a);if(!nb.isPcdNextLevel()){var rb={};rb.key=hb.getTextForExhibition();rb.value=nb.getTextByIndex(nb.getValueCount()-1);!Xa&&(Xa=na.slice(0));Xa.splice(0,0,rb)}}}!Xa&&(Xa=na);return Xa},tb=function(na){return c.lookupRolledInField(na)},yb=function(na){return na?
(na=tb(a.getCurrentRollInFieldCount()))&&na.getMetaField().isParentChildDimension():!1},Bb=function(na){return(na=c.getChartProperty().getLinkTargets())&&0<na.getRunnableItems().length},Eb=function(){Ta||(Ta=new ta);return Ta},cc=function(na,Xa,$a){Eb().slide(Xa,function(hb){switch(hb){case 1:na.confirmDrilling();break;case 2:na.confirmSelecting();Eb().abandon();break;case 3:na.confirmJumping();break;default:return}$a()})},Yb=function(){var na=c.getChartProperty().getLinkTargets().getRunnableItems();
return[Nb(na),3]},Vb=function(na,Xa,$a){var hb=(na=n.transformToDrillTarget($a,d))?!0:!1;Xa=hb&&yb(na.isAsParent());var nb=c.isRollInFieldSupported()&&a.isRollInNextFieldEnabled(),rb=n.transformToJumpTarget($a,d,c)?!0:!1;hb=hb&&c.isRollInSupported()&&(nb||Xa);rb=rb&&c.isLinkageSupported()&&qa.isRuntimeSupported()&&Bb();var ub=d.isSelectionSupported()&&d.isSelectable()&&!nb,Ab=(hb?1:0)+(rb?1:0)+(ub?1:0),Hb=new ja;1<Ab?(Ab=[],hb&&Ab.push([Wb(Xa,nb,na),1]),ub&&Ab.push([n.isSelected($a,d)?Ka.get("affectionCancel",
"\u53d6\u6d88\u8054\u52a8"):Ka.get("affectionConfirm","\u8054\u52a8"),2]),rb&&Ab.push(Yb()),cc(Hb,Ab,function(){Zb(Hb,$a)})):(hb&&Hb.confirmDrilling(),ub&&Hb.confirmSelecting(),rb&&Hb.confirmJumping(),Zb(Hb,$a))},Zb=function(na,Xa){if(na.isDrillingConfirmed())na=n.transformToDrillTarget(Xa,d),$b(na);else if(na.isSelectingConfirmed())n.select(Xa,d),Aa.occur(Aa.SQUARE_AFFECTION,1);else if(na.isJumpingConfirmed()){na=new Ba;Xa=n.transformToJumpTarget(Xa,d,c);for(var $a=Xa.getItemCount(),hb=0;hb<$a;hb++){var nb=
Xa.getField(hb),rb=Xa.getMember(hb);na.addItem(nb,rb)}ac(na)}},Wb=function(na,Xa,$a){if(na&&Xa)return Ka.get("drillDown","\u5411\u4e0b\u94bb\u53d6")+"...";if(na)return na=tb(a.getCurrentRollInFieldCount()),Xa=Ka.get("drillDownPcd","\u94bb\u53d6\u5230#1\u201c#2\u201d\u7684\u4e0b\u4e00\u5c42\u7ea7"),Xa=Xa.replace("#1",na.getComplexText()),Xa=Xa.replace("#2",$a.getText());if(Xa)return na=tb(a.getCurrentRollInFieldCount()+1),$a=Ka.get("drillDownField","\u94bb\u53d6\u5230#1"),$a=$a.replace("#1",na.getComplexText());
throw Error("Impossible");},$b=function(na){var Xa=na.getValue(),$a=na.getText(),hb=na.isAsParent(),nb=yb(hb);hb=c.isRollInFieldSupported()&&a.isRollInNextFieldEnabled();var rb=tb(a.getCurrentRollInFieldCount());nb&&hb?(nb=Wb(nb,!1,na),na=Wb(!1,hb,na),na=[[nb,1],[na,2]],Eb().slide(na,function(ub){switch(ub){case 1:Lb(rb,Xa,$a,!0);break;case 2:Lb(rb,Xa,$a,!1)}})):Lb(rb,Xa,$a,nb)},Lb=function(na,Xa,$a,hb){var nb=new ra;nb.setValue(na,a,Xa,$a,hb);Q.getCommandManager().perform(nb);Aa.occur(Aa.SQUARE_DRILLDOWN,
1)},Nb=function(na,Xa){if(void 0===Xa){if(1<na.length)return Ka.get("linkageJumper","\u8054\u67e5")+"...";Xa=0}return Fa.makeItemDisplay(na[Xa])},ac=function(na){var Xa=c.getChartProperty().getLinkTargets().getRunnableItems();if(1<Xa.length){for(var $a=[],hb=0;hb<Xa.length;hb++){var nb=Nb(Xa,hb);$a.push([nb,hb])}Eb().slide($a,function(rb){null!==rb&&Sb(Xa[rb],na)})}else Sb(Xa[0],na)},Sb=function(na,Xa){Eb().sayGoodbye(Ka.get("linkageJumper","\u8054\u67e5")+"...",6E4);var $a=f.getDependentMeta([na.getForeignKey()]),
hb=f.getSquareModel(),nb=f.getJsonAdditionalFilters();Xa=Fa.makeJsonSquareClickedContext(Xa);Fa.jumpToListUi(na,Xa,f.createFacade,$a,hb,nb,function(rb,ub){Eb().sayGoodbye(rb,!1===ub?8E3:5E3)},function(rb,ub){var Ab=new Oa;Ab.setText(rb);Ab.setConfirmedListener(function(Hb){ub(!1)});Ab.setSecondRelatedYGetter(function(Hb){return parseInt(.1*Hb.outerHeight())});Ab.show(h,!0)});Aa.occur(Aa.SQUARE_NAVIGATETO,na.getUsableDisplayName())};this.makeBasicInsight=function(na){var Xa=f.getDependentMeta(),$a=
f.getSquareModel(),hb=f.getJsonAdditionalFilters();f.createFacade(function(nb){cb.basicFromJsonObject(nb);na()},function(nb,rb,ub){cb.basicFromJsonObject({});na(nb,rb)}).makeBasicInsight(Xa,$a,null,hb)};this.makeAdvancedInsight=function(na){var Xa=f.getDependentMeta(),$a=f.getSquareModel(),hb=f.getJsonAdditionalFilters();f.createFacade(function(nb){cb.advancedFromJsonObject(nb);na()},function(nb,rb,ub){cb.advancedFromJsonObject({});na(nb,rb)}).makeAdvancedInsight(Xa,$a,null,hb)}}function Ba(){function Q(d,
b){var c=d.getMetaField().getFullName(),a=d.getPartValue();this.toJsonObject=function(){var e={};e.fieldName=c;e.partValue=a;e.value=b;return e}}var n=[];this.addItem=function(d,b){n.push(new Q(d,b))};this.toJsonObject=function(){for(var d=[],b=0;b<n.length;b++)d.push(n[b].toJsonObject());b={};b.items=d;return b}}function ja(){var Q=!1,n=!1,d=!1;this.confirmDrilling=function(){Q=!0};this.isDrillingConfirmed=function(){return Q};this.confirmSelecting=function(){n=!0};this.isSelectingConfirmed=function(){return n};
this.confirmJumping=function(){d=!0};this.isJumpingConfirmed=function(){return d}}function ta(){var Q=this,n,d,b,c,a,e,f;this.setJqParent=function(z){n=z};this.setBeforeSlideListener=function(z){a=z};this.setAfterSlideListener=function(z){e=z};this.slide=function(z,D){a&&a();b&&h(b);z=b=l(z,D);D=n.prop("clientWidth");var I=n.prop("clientHeight"),J=Math.min(240,parseInt(.9*D)),Z=parseInt(.9*I);O.layoutCtrl(z,0,0,J,0);z.appendTo(k());for(var ia=J=0,Ta=c.children(),cb=0;cb<Ta.length;cb++){var jb=$(Ta[cb]),
ya=jb.width();jb=jb.outerWidth(!0);J=Math.max(J,ya);ia=Math.max(ia,jb)}z.css("width",ia);for(cb=0;cb<Ta.length;cb++){jb=$(Ta[cb]);jb.css("width",J);var Ha=jb.prop("offsetTop")+jb.prop("offsetHeight")}Ha=Math.min(Z,c.prop("offsetTop")+Ha+8);Z=parseInt(.5*(D-ia));I=parseInt(.5*(I-Ha));O.layoutCtrl(z,D,I,ia,Ha);z.animate({left:Z},250)};this.abandon=function(){d&&d.remove();b=d=null};this.sayGoodbye=function(z,D){b&&h(b);clearTimeout(f);var I=n.find(".square-exhibition-menu-bye");if(0==I.length){var J=
n.prop("clientWidth");I=$("<div>");I.addClass("square-exhibition-menu-bye");O.layoutCtrl(I,J,"40%","100%",20);I.appendTo(k());I.animate({left:0},500)}I.text(z);f=setTimeout(Q.abandon,D?D:5E3)};var h=function(z,D){var I=0-z.prop("offsetWidth");z.animate({left:I},250,function(){z.remove();D&&D()})},k=function(){d||(d=$("<div>"),d.css("background-color","rgba(0,0,0,0.001)"),d.appendTo(n),O.layoutCtrlWithLRTB(d,0,0,null,0,0,null));return d},l=function(z,D){var I=$("<div>");I.css("z-index",8);I.addClass("square-exhibition-menu");
var J=$("<div>");J.text("\u00d7");J.addClass("square-exhibition-menu-close");J.on("click",function(cb){h(I,Q.abandon);r(null,D,null)()});J.appendTo(I);O.layoutCtrlWithLRTB(J,null,0,20,0,null,20);c=$("<div>");c.css({"overflow-x":"hidden","overflow-y":"auto"});c.appendTo(I);O.layoutCtrlWithLRTB(c,0,0,null,16,8,null);for(J=0;J<z.length;J++){var Z=z[J][0],ia=z[J][1],Ta=$("<div>");Ta.css({position:"relative",display:"inline-block"});Ta.addClass("square-exhibition-menu-item");Ta.text(Z);Ta.on("click",r(Ta,
D,ia));Ta.appendTo(c)}return I},r=function(z,D,I){return function(J){z&&z.addClass("square-exhibition-menu-item_selected");e&&e();D(I)}}}function Ra(){this.bindAssociatedChart=function(Q,n){};this.setContent=function(Q){throw Error("Override");};this.show=function(Q,n){throw Error("Override");};this.hide=function(){throw Error("Override");}}function ib(){Ra.call(this);var Q=this,n,d=null,b=!1,c=function(){n||(n=$("<div>"),n.addClass("square-tooltips"),n.css("display","none"),Q.protectedInitUi(n))};
this.protectedInitUi=function(f){throw Error("Implement");};this.protectedGetJqOwner=function(){throw Error("Implement");};this.protectedTransformXY=function(f,h){return[f,h]};this.show=function(f,h){c();var k=Q.protectedTransformXY(f,h);f=k[0];h=k[1];k=Q.protectedGetJqOwner();var l=k.prop("clientWidth"),r=k.prop("clientHeight");n.css("max-width",.8*l);n.css("max-height",.8*r);var z=n.outerWidth(),D=n.outerHeight();k=f+15;var I=h+10,J=-1,Z=-1,ia=-1,Ta=-1;I+D>r&&(Ta=I+D-r,Z=r-D,h=h-10-D,0>h?(h=-h,
h<Ta&&(Ta=h,Z=0)):(Ta=-1,Z=h));k+z>l&&(ia=k+z-l,J=l-z,f=f-15-z,0>f?(f=-f,f<ia&&(ia=f,J=0)):(ia=-1,J=f));0<ia&&0<Ta?.5*ia>Ta?(k=J,I=0==Z?-Ta:Z+Ta):(k=0==J?-ia:J+ia,I=Z):(k=0>J?k:J,I=0>Z?I:Z);"block"==n.css("display")?(d=[k,I],e()):(n.css("left",k),n.css("top",I),n.css("display","block"))};this.hide=function(){d=null;n&&n.css("display","none")};this.setContent=function(f){c();n.empty();var h=$("<table>");h.css("margin",6);for(var k=0;k<f.length;k++){var l=f[k],r=l.key,z=l.value,D=l.ratio,I=l.color,
J=l.lineIconStyle;l=$("<tr>");var Z=$("<td>");Z.addClass("square-tooltips-title");if(I){if(J){J=document.createElement("canvas");J.width=8;J.height=8;var ia=$(J);ia.addClass("square-tooltips-title-color");ia.appendTo(Z);J=J.getContext("2d");J.fillStyle=I;J.strokeStyle=I;J.lineWidth=2;J.beginPath();J.moveTo(0,4);J.lineTo(8,4);J.stroke();J.arc(4,4,2.2,0,2*Math.PI);J.fill()}else J=$("<span>"),J.addClass("square-tooltips-title-color"),J.css("background-color",I),J.appendTo(Z);J=$("<span>");J.addClass("square-tooltips-title-text");
J.text(r);J.appendTo(Z)}else Z.text(r+(r?":":""));l.append(Z);r=$("<td>");r.addClass("square-tooltips-value");I&&r.css("text-align","right");r.text(z);l.append(r);D?(z=$("<td>"),z.addClass("square-tooltips-value"),z.css("padding-left","4px"),z.css("text-align","right"),z.text(D),l.append(z)):r.attr("colspan",2);h.append(l)}h.appendTo(n)};var a=function(){var f=null;d&&(f=d,d=null);return f},e=function(){if(!b){var f=a();f&&(b=!0,n.stop(),n.animate({left:f[0],top:f[1]},150,function(){b=!1;e()}))}}}
function eb(){ib.call(this);var Q,n;this.bindAssociatedChart=function(d,b){n=d;Q&&!O.isInDomTree(Q[0])&&Q.appendTo(n)};this.protectedInitUi=function(d){Q=d;Q.appendTo(n)};this.protectedGetJqOwner=function(){return n};this.protectedTransformXY=function(d,b){var c=O.upwardCoordinate(n[0],[0,0],document.body);return[d-c[0],b-c[1]]}}function x(){var Q;this.paint=function(b){};this.bindDependence=function(b){Q=b};var n=function(){return Q.getRollInState()},d=function(b){return Q.lookupRolledInField(b)};
this.isRollOutEnabled=function(){var b=n();return b?b.isRollOutEnabled():!1};this.protectedMethod={performRollOutAction:function(b,c){var a=n();"undefined"==typeof b&&(b=a.getItemCount()-1);"undefined"==typeof c&&(c=a.getItem(a.getItemCount()-1).getValueCount()-1);var e=d(b),f=new da;f.setValue(e,a,b,c);Q.getCommandManager().perform(f)},getRollInState:n,lookupRolledInField:d,getOperatingMenu:function(){return Q.getOperatingMenu()},decorateCrumb:function(b,c,a,e){Q.decorateCrumb(b,c,a,e)}}}function ha(){x.call(this);
var Q=this,n=this.protectedMethod,d,b,c,a=!1,e,f;this.paint=function(I){if(Q.isRollOutEnabled()){var J=Ma.createCanvas();d=Ma.createContext2d(J,32,32);J=$(J);O.layoutCtrl(J,0,0,32,32);J.appendTo(I);b=$("<div>");b.css({"line-height":"18px",overflow:"hidden"});n.decorateCrumb(b,Sa.STYLE_CRUMB_COLOR,"#999",Sa.STYLE_CRUMB_FONTSIZE_ENHANCED);e=b.css("color");f=ua.isTheSame(e,"#999")?null:e;O.layoutCtrlWithLRTB(b,28,0,null,0,null,18);b.appendTo(I);c=[];I="";for(var Z=n.getRollInState(),ia=0;ia<Z.getItemCount();ia++){0<
ia&&(I+=" > ");for(var Ta=Z.getItem(ia),cb=0;cb<Ta.getValueCount();cb++){0<cb&&(I+=" > ");var jb=Ta.getTextByIndex(cb);if(!jb){jb=(jb=n.lookupRolledInField(ia+1))?jb.getComplexText():"";var ya=0<cb?Ta.getTextByIndex(cb-1):"";jb+=ya}I+=jb;c.push([jb,ia,cb])}}for(ia=c.length-1;0<=ia;ia--)Z=c[ia],Ta=0==ia?Ka.get("drillUpToTop","\u8fd4\u56de\u5230\u9876\u5c42"):c[ia-1][0],Z[0]=Ta;ia=$("<span>");ia.text(I);ia.css({"white-space":"nowrap"});ia.appendTo(b);I=ia.parent().prop("clientWidth");jb=ia.prop("offsetWidth");
if(jb>I){Z=ia.text();Ta=Z.length;cb=Math.ceil(Z.length*I/jb);do cb--,jb="..."+Z.substring(Ta-cb),ia.text(jb),jb=ia.prop("offsetWidth");while(jb>I&&0<=cb)}h(J);h(ia);z()}};var h=function(I){I.css({cursor:"pointer"});I.attr("title",Ka.get("drillUp","\u8fd4\u56de"));I.on("click",k);I.on("mouseenter",l);I.on("mouseleave",r)},k=function(I){D(d,"rgba(120,180,240,0.5)","#f09040");b.css("color","#f09040");if(1==c.length)setTimeout(function(){n.performRollOutAction()},175);else{a=!0;setTimeout(function(){a=
!1;z()},225);I=[];for(var J=0;J<c.length;J++)I.push([c[J][0],J]);n.getOperatingMenu().slide(I,function(Z){"number"==typeof Z&&(Z=c[Z],n.performRollOutAction(Z[1],Z[2]));n.getOperatingMenu().abandon()})}},l=function(I){D(d,"rgba(120,180,240,0.25)","#00a0d1");b.css("color","#00a0d1")},r=function(I){!a&&z()},z=function(){D(d,"rgba(120,180,240,0.15)",f||"rgba(64,128,240,0.6)");b.css("color",e)},D=function(I,J,Z){I.clearRect(0,0,I.canvas.width,I.canvas.height);I.fillStyle=J;I.beginPath();I.moveTo(0,0);
I.arc(0,0,32,0,.5*Math.PI);I.closePath();I.fill();I.fillStyle=Z;I.beginPath();I.moveTo(13,4);I.lineTo(3,13);I.lineTo(9,13);I.lineTo(9,20);I.lineTo(17,20);I.lineTo(17,13);I.lineTo(23,13);I.closePath();I.fill()}}function X(){var Q,n,d,b;this.setTitle=function(a){Q=a};this.setSizeSuggester=function(a,e,f){n=[a,e,f]};this.setClosingActor=function(a){d=a};var c=function(){var a=$("<div>");a.css({"border-left":"1px solid #808080","transform-origin":"left top",transform:"rotate(-45deg)"});O.layoutCtrlWithLRTB(a,
0,null,"141%",0,null,"141%");var e=$("<div>");e.css({"border-right":"1px solid #808080","transform-origin":"right top",transform:"rotate(45deg)"});O.layoutCtrlWithLRTB(e,null,0,"141%",0,null,"141%");var f=$("<div>");f.css({overflow:"hidden"});f.append(a);f.append(e);O.layoutCtrlCenterAlign(f,12);O.layoutCtrlMiddleAlign(f,12);a=$("<div>");a.css({cursor:"pointer"});a.append(f);return a};this.protectedMethod={createSimilarDialog:function(a){b=function(){a.appendTo(h);O.layoutCtrlWithLRTB(a,10,4,null,
32,4,null);return[14,36]};var e=$("<div>");e.css({"font-size":"16px","font-weight":"bold","line-height":"24px"});e.text(Q);var f=c();f.on("click",function(k){d()});var h=$("<div>");h.append(e);h.append(f);O.layoutCtrlWithLRTB(e,10,10,null,4,null,28);O.layoutCtrlWithLRTB(f,null,6,16,6,null,16);b();return h},appendAction:function(a,e,f,h){var k=6+30*(a.children(".q-sys-action").length+1),l=$("<div>");gb.background(l,e);O.layoutCtrlCenterAlign(l,12);O.layoutCtrlMiddleAlign(l,12);e=$("<div>");e.addClass("q-sys-action");
e.css({cursor:"pointer"});e.attr("title",f);e.on("click",function(r){h($(r.target))});O.layoutCtrlWithLRTB(e,null,k,16,6,null,16);e.append(l);a.append(e)},resize:function(a){if(n){var e=n[0],f=n[1],h=n[2],k=a.prop("scrollTop");a.appendTo($(document.body));a.css({"max-width":e+"px","max-height":f+"px"});O.layoutCtrlWithLRTB(a,-1E4,"","auto",-1E4,"","auto");e=a.prop("offsetWidth");f=a.prop("offsetHeight");var l=b();k&&a.prop("scrollTop",k);h(e+l[0],f+l[1])}},createTitle:function(a,e,f){var h=$("<div>");
h.text(e);h.css({position:"relative","margin-top":"4px","font-weight":"bold","line-height":"24px"});f&&h.css(f);a.append(h);return h},createLine:function(a,e){var f=$("<div>");f.css({position:"relative","margin-bottom":"4px","padding-left":"12px","line-height":"24px"});e&&f.css(e);a.append(f);return f},createListLine:function(a,e){var f=$("<li>");f.css({position:"relative","padding-left":"4px","line-height":"24px"});e&&f.css(e);a.append(f);return f},createSpan:function(a,e,f){var h=$("<span>");h.text(e);
f&&h.css(f);a.append(h);return h}}}function P(){function Q(){var e,f;this.setTitle=function(h){e=h};this.getTitle=function(){return e};this.setItemModelSet=function(h){f=h};this.getItemModelSet=function(){return f};this.setOperatingPrompt=function(){};this.setPerfectHeight=function(){}}X.call(this);var n=this.protectedMethod,d;this.createJqUi=function(e,f){var h=$("<div>");h.css({overflow:"auto",color:"#333","font-size":"14px"});for(var k=va.getInstance(e.getChartTypeName()).createFieldCards(Q,e.getChart()),
l=0;l<k.length;l++){var r=k[l],z=r.getTitle();r=r.getItemModelSet();var D=0==r.getItemModelCount();if(!D||0!=r.getItemCountMin()){n.createTitle(h,z);var I=n.createLine(h);D?n.createSpan(I,""):r.traversalItems(function(J){J=J.getSquareField();n.createSpan(I,J.getTextTooltips(),{"margin-right":"8px"})})}}e=e.getFilterSet();0!=e.getItemModelCount()&&(n.createTitle(h,Ka.get("filterCardTitle","\u7b5b\u9009\u5668")),e.traversalItems(function(J){var Z=J.getSquareField(),ia=J.getUsableFilter(),Ta=n.createLine(h);
J.isOutsideAllowed()&&(J=n.createSpan(Ta,""),O.layoutCtrl(J,0,6,12,12),gb.background(J,"icon_extra_filter"));n.createSpan(Ta,Z.getTextTooltips());n.createSpan(Ta,b(ia,Z.getPartValue()),{"margin-left":"16px"})}));f&&(I=n.createLine(h,{padding:"10px",cursor:"pointer",color:"#39f"}),I.text(Ka.get("chartInfoMoreFilters","\u66f4\u591a\u5916\u90e8\u7b5b\u9009\u5668")+"..."),I.on("click",function(J){$(J.currentTarget).remove();J=$(document.createDocumentFragment());n.createTitle(J,Ka.get("chartInfoAffectionFilters",
"\u8054\u52a8\u7b5b\u9009\u5668"));for(var Z=0;Z<f.length;Z++){var ia=f[Z],Ta=n.createLine(J),cb=n,jb=cb.createSpan,ya=Ta,Ha=ia.key;Ha=ia.isMetaFieldBound?"["+Ha+"]":Ka.get("chartInfoAffectionParam","\u53c2\u6570")+'"'+Ha+'"';jb.call(cb,ya,Ha);cb=n;jb=cb.createSpan;ya=ia.selectedValue;ia.valueDataType==V.DT_DATE&&ia.isMetaFieldBound?(ya=JSON.parse(ya).dateRange,ia=ya.containNull,ya=a(ya.dateFrom,ya.dateTo),ia&&(ya=c(ya)),ia=ya):ia=ya;jb.call(cb,Ta,ia,{"margin-left":"16px"})}h.append(J);n.resize(h)}));
e=n.createSimilarDialog(h);n.resize(h);return e};var b=function(e,f){if(e.isFullValue())return Ka.get("fullValue","\u5168\u90e8");if(e instanceof Na){var h=e.isExclude()?"("+Ka.get("excludeValue","\u6392\u9664")+")":"";e=e.toJsonObject().selected;if(f==M.PARTVALUE_DATE_MONTH||f==M.PARTVALUE_DATE_YM||f==M.PARTVALUE_DATE_YMD)for(var k=0;k<e.length;k++){var l=e[k];if(l){var r=parseInt(l);switch(f){case M.PARTVALUE_DATE_MONTH:case M.PARTVALUE_DATE_YM:l=r+1;break;case M.PARTVALUE_DATE_YMD:l=r+100}e[k]=
l}}return h+=e.join(", ")}if(e instanceof U){f=e.getFloor();k=e.getCeiling();if(h=e.getFormatString())k=new fa,k.setFormatString(h),f=k.format(e.getFloor()),k=k.format(e.getCeiling());h=f+"~"+k;e.isContainNull()&&(h=c(h));return h}return e instanceof K?(h=(f=e.getRelativePeriodModel())?fb.modelToDisplayText(f,!0):a(e.getFromDateMs(),e.getToDateMs()),e.isContainNull()&&(h=c(h)),h):"???"},c=function(e){return e+" ("+Ka.get("includeNull","\u5305\u542b\u7a7a\u503c")+")"},a=function(e,f){!d&&(d=new La);
d.setFormatString("yyyy-M-d HH:mm:ss");e=d.format(e);f=d.format(f);return e+" ~ "+f}}function y(){X.call(this);T.call(this);var Q=this.protectedMethod,n,d,b,c=!0;this.createJqUi=function(k,l){var r=$("<div>");r.css({overflow:"auto",color:"#333","font-size":"14px"});l&&(n=function(){k.makeAdvancedInsight(function(D,I){"number"==typeof D?(D=D+"\n"+I,r.empty(),I=Q.createLine(r),Q.createSpan(I,D)):h(r,l)})},d=function(){k.makeBasicInsight(function(D,I){"number"==typeof D?(D=D+"\n"+I,r.empty(),I=Q.createLine(r),
Q.createSpan(I,D)):(f(r,l),Q.resize(r))})},f(r,l));var z=Q.createSimilarDialog(r);Q.resize(r);Q.appendAction(z,"icon_extra_level",Ka.get("insightLevel","\u7ea7\u522b"),function(D){a(D,z,r,l)});return z};var a=function(k,l,r,z){if(b&&b.isShowing())b.hide(),b=null;else{var D=new ab;D.addItemModel(ca.createRadio(Ka.get("insightLevelBasic","\u7b80\u8981"),"level",c,function(I){c=!0;f(r,z);Q.resize(r)}));D.addItemModel(ca.createRadio(Ka.get("insightLevelAdvanced","\u8be6\u7ec6"),"level",!c,function(I){c=
!1;z.getBasicState()||(z.isAdvancedLoaded()?h(r,z):n())}));b=new ca;b.setModel(D);b.setHideListener(function(){b=null});D=[0,18];D=O.upwardCoordinate(k[0],D,l[0]);b.show(l,D[0],D[1],k,!0)}},e=function(k,l){k=Q.createLine(k,{"margin-top":"10px"});Q.createSpan(k,l)},f=function(k,l){var r=$(document.createDocumentFragment());l.getBasicState()==ea.STATE_DATA_EMPTY?e(r,Ka.get("insightNoData","\u6ca1\u6709\u6570\u636e\u3002")):l.getBasicState()==ea.STATE_MISSING_MEASURE?e(r,Ka.get("insightNoMeasure","\u6ca1\u6709\u5ea6\u91cf\u5b57\u6bb5\u3002")):
l.getBasicState()==ea.STATE_BLOATED_DIMENSION?(e(r,Ka.get("waiting","\u8bf7\u7a0d\u5019")+"..."),d()):(l=l.getBasicGroups(),Q.createInsightsUi(r,l));k.empty();k.append(r)},h=function(k,l){var r=$(document.createDocumentFragment());l=l.getUsableAdvancedGroups();Q.createInsightsUi(r,l);k.empty();k.append(r);Q.resize(k)};this.protectedCreateJqInsightSubtitle=function(k,l){return Q.createTitle(k,l)};this.protectedCreateJqInsightLine=function(k){return Q.createListLine(k)}}function T(){var Q=this;this.protectedCreateJqInsightSubtitle=
function(b,c){throw Error("Implement");};this.protectedCreateJqInsightLine=function(b){throw Error("Implement");};var n=function(b,c){var a=$("<span>");a.text(c);b.append(a);return a},d=function(b,c,a){if(0>a)return[b];for(var e=c.getVariate(a),f="${"+e.getName()+"}$",h=f.length,k=[],l=b;l;){var r=l.indexOf(f);0>r?(k.push(l),l=null):(b=l.substring(0,r),l=l.substring(r+h),k.push(b),k.push(e),l=0<l.length?l:null)}e=[];for(f=0;f<k.length;f++)h=k[f],"string"==typeof h?0<h.length&&(h=d(h,c,a-1),e=e.concat(h)):
e.push(h);return e};!this.protectedMethod&&(this.protectedMethod={});this.protectedMethod.createInsightsUi=function(b,c){for(var a=0;a<c.length;a++){var e=c[a];Q.protectedCreateJqInsightSubtitle(b,e.getTitle());for(var f=0;f<e.getSentenceCount();f++){for(var h=Q.protectedCreateJqInsightLine(b),k=e.getSentence(f),l=d(k.getText(),k,k.getVariateCount()-1),r=0;r<l.length;r++){var z=l[r];if("string"==typeof z)n(h,z);else{var D=z,I=(z=D.getTips())?!0:!1;D=n(h,D.getValue());I&&D.css("text-decoration","underline");
I&&D.attr("title",z)}}k.setReadableText(h.text())}}}}function aa(Q,n){T.call(this);var d=this,b=this.protectedMethod;this.hookJqInsightSubtitleCreator=function(e){d.protectedCreateJqInsightSubtitle=function(f,h){var k=e();k.text(h);f.append(k);return k}};this.hookJqInsightLineCreator=function(e){d.protectedCreateJqInsightLine=function(f){var h=e();f.append(h);return h}};this.requestJqContent=function(e){var f=$("<div>");f.text("");c(f,n,function(h){f.append(h);e(f)})};var c=function(e,f,h){var k=
$(document.createDocumentFragment());if(f.getBasicState()!=ea.STATE_DATA_EMPTY&&f.getBasicState()!=ea.STATE_MISSING_MEASURE){if(f.getBasicState()==ea.STATE_BLOATED_DIMENSION){Q.makeBasicInsight(function(r,z){"number"==typeof r?(a(e,r+" "+z),h(k)):c(e,f,h)});return}if(f.getBasicState()==ea.STATE_NO_ADVANCED){var l=f.getBasicGroups();b.createInsightsUi(k,l)}else if(!f.getBasicState()){Q.makeAdvancedInsight(function(r,z){"number"==typeof r?a(e,r+" "+z):(r=f.getUsableAdvancedGroups(),b.createInsightsUi(k,
r));h(k)});return}}h(k)},a=function(e,f){var h=$("<span>");h.text(f);e.append(h);return h}}function ea(){function Q(){var k,l;this.fromJsonObject=function(r){l=[];k=r.title;if(r=r.sentences)for(var z=0;z<r.length;z++){var D=r[z],I=new n;I.fromJsonObject(D);l.push(I)}};this.getTitle=function(){return k};this.getSentenceCount=function(){return l?l.length:0};this.getSentence=function(r){return l[r]};this.mergeFrom=function(r){k=r.getTitle();!l&&(l=[]);for(var z=0;z<r.getSentenceCount();z++)l.push(r.getSentence(z))}}
function n(){var k,l,r;this.fromJsonObject=function(z){k=z.text;l=[];if(z=z.variates)for(var D=0;D<z.length;D++){var I=z[D],J=new d;J.fromJsonObject(I);l.push(J)}};this.getText=function(){return k};this.getVariateCount=function(){return l.length};this.getVariate=function(z){return l[z]};this.setReadableText=function(z){r=z};this.getReadableText=function(){return r}}function d(){var k,l,r;this.fromJsonObject=function(z){k=z.name;l=z.value;r=z.tips};this.getName=function(){return k};this.getValue=function(){return l};
this.getTips=function(){return r}}var b=this,c,a,e,f;this.basicFromJsonObject=function(k){a=[];c=k.state;h(k,a)};this.advancedFromJsonObject=function(k){f=[];e=k.state;h(k,f)};this.getBasicState=function(){return c};this.getBasicGroups=function(){return a};this.getAdvancedState=function(){return e};this.isAdvancedLoaded=function(){return f?!0:!1};this.getUsableAdvancedGroups=function(){for(var k={},l=0;l<f.length;l++){var r=f[l];k[r.getTitle()]=r}var z=[];for(l=0;l<a.length;l++){r=a[l];var D=new Q;
D.mergeFrom(r);z.push(D);(r=k[r.getTitle()])&&D.mergeFrom(r)}return z};this.getReadableTextGroups=function(){for(var k=b.isAdvancedLoaded()?b.getUsableAdvancedGroups():a,l=[],r=0;r<k.length;r++){for(var z=[],D=k[r],I=0;I<D.getSentenceCount();I++){var J=D.getSentence(I);z.push(J.getReadableText())}l.push(z)}return l};var h=function(k,l){if(k=k.groups)for(var r=0;r<k.length;r++){var z=k[r],D=new Q;D.fromJsonObject(z);l.push(D)}}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee=
{});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.square&&(com.kingdee.bos.qing.square={});"undefined"==typeof com.kingdee.bos.qing.square.ui&&(com.kingdee.bos.qing.square.ui={});var wa=com.kingdee.bos.qing.square.ui;wa.Exhibition=function(){var Q=new Sa,n,d,b,c;var a=$("<div>");a.addClass("square-exhibition-card");var e=$("<div>");e.addClass("square-exhibition-card-titlebar");
e.appendTo(a);var f=$("<div>");f.addClass("square-exhibition-card-titlebar-text");f.appendTo(e);var h=$("<div>");h.css("overflow","hidden");h.appendTo(a);this.destroy=function(){Q.destroy()};this.setCommandManagerGetter=function(r){n=r};this.setContextApi=function(r){Q.setContextApi(r)};this.getJqUi=function(){return a};this.resize=function(){d&&(d.isFullArea()||l(),clearTimeout(b),b=setTimeout(k,250))};this.showSuspendedRunningMask=function(){if(0==a.find(".sa-exhibition-suspend-mask").length){var r=
$("<div>");r.addClass("sa-exhibition-suspend-mask");r.appendTo(a)}};this.setPreviewSetup=function(r){d=r;var z=r.getPaddingLeft(),D=r.getPaddingRight(),I=r.getPaddingTop(),J=r.getPaddingBottom();O.layoutCtrlWithLRTB(h,z,D,null,I,J,null);r.isFullArea()?(e.css("display","none"),a.addClass("square-exhibition-card_fullarea"),a.removeClass("square-exhibition-card_notfull")):(e.css("display","block"),a.addClass("square-exhibition-card_notfull"),a.removeClass("square-exhibition-card_fullarea"));l();k()};
this.setTitle=function(r,z){f.text(r);e.find(".square-exhibition-card-titlebar-tips").remove();z&&(r=new oa,r.setIconType(oa.ICON_TYPE_QUESTION),r.setTipsText(z),r.setContainer(a),z=r.getJqUi(),z.addClass("square-exhibition-card-titlebar-tips"),z.appendTo(e))};this.setModel=function(r,z,D){if(n){var I=n();Q.setCommandManager(I)}c=D;Q.setModel(r,z);k()};this.repaint=function(r){r&&Q.reset(r);k()};var k=function(){Q.drawChart(h,c)},l=function(){var r="",z="",D="",I="";d.isFullArea()||(r=a.parent().innerWidth(),
z=a.parent().innerHeight(),D=d.getWidth(),I=d.getHeight(),r=(r>D?r-D>>1:0)+"px",z=(z>I?z-I>>1:0)+"px",D+="px",I+="px");a.css({left:r,top:z,width:D,height:I})}};wa.ExhibitionContent=Sa;wa.AbstractTooltipsWidget=Ra;wa.AbstractRollOutHandler=x;var O,fa,La,Ma,ua,Ka,oa,Oa,ab,ca,fb,lb,gb,qa,Aa,Fa,ka,Na,U,K,V,M,A,ra,da,va=wa.ChartTypeFactory;(function(){var Q=com.kingdee.bos.qing.common;O=Q.DomUtil;fa=Q.NumberFormater;La=Q.DateFormater;Ma=Q.CanvasUtil;ua=Q.ColorUtil;Q=com.kingdee.bos.qing.framework.common;
Ka=Q.MultilanguageManager.createPackageAccessor(wa);Q=com.kingdee.bos.qing.ui.component;oa=Q.HelpIcon;Oa=Q.SimpleConfirmer;ab=Q.MenuModel;ca=Q.Menu;Q=com.kingdee.bos.qing.common.ui;fb=Q.RelativePeriodPanel;Q=com.kingdee.bos.qing.core;lb=Q.CommonJsonParser;gb=Q.Icons;qa=Q.LinkageRegister;Aa=Q.UserOperationReporter;Q=com.kingdee.bos.qing.core.commonui;Fa=Q.LinkageHelper;Q=com.kingdee.bos.qing.chart.model;ka=Q.DiscreteColorLegendModel;Q=com.kingdee.bos.qing.core.model;Na=Q.DiscreteFilter;U=Q.ContinuousFilter;
K=Q.ContinuousDateFilter;V=Q.MetaField;M=Q.AbstractAnalyticalField;Q=com.kingdee.bos.qing.core.controller;A=Q.CommandManager;Q=com.kingdee.bos.qing.square.controller;ra=Q.ActionRollIn;da=Q.ActionRollOut})();Sa.STYLE_PROMPTLABEL_COLOR="promptLabelColor";Sa.STYLE_PROMPTLABEL_FONTSIZE_ENHANCED="promptLabelFontSizeEnhanced";Sa.STYLE_CRUMB_COLOR="crumbColor";Sa.STYLE_CRUMB_FONTSIZE_ENHANCED="crumbFontSizeEnhanced";var za=new function(){ib.call(this);var Q=this,n,d,b;this.bindAssociatedChart=function(f,
h){d=f;b=h};this.protectedInitUi=function(f){f.on("mousemove",c);f.on("mouseleave",a);n=$(document.body);n.append(f)};this.protectedGetJqOwner=function(){return n};var c=function(f){(f=e(f))&&Q.show(f[0],f[1])},a=function(f){e(f)},e=function(f){if(!d.is(":visible"))return null;var h=Q.protectedGetJqOwner()[0],k=O.getCurrentTargetPosition(f);var l=h.clientLeft;var r=h.clientTop;for(f=f.target;f!=h;){if(f==document.body)throw Error("Not immediate family.");var z=f.parentNode;l+=z.clientLeft+f.offsetLeft;
r+=z.clientTop+f.offsetTop;f=z;for(z=f.nodeName.toLowerCase();"td"==z||"tr"==z||"tbody"==z;)f=f.parentNode,z=f.nodeName.toLowerCase()}l=[l+k[0],r+k[1]];k=l[0];l=l[1];h=O.upwardCoordinate(d[0],[0,0],h);r=l-h[1];return k-h[0]>d.prop("clientWidth")||r>d.prop("clientHeight")?(Q.hide(),b.clearMouseState(),null):[k,l]}};ea.STATE_DATA_EMPTY=1;ea.STATE_MISSING_MEASURE=2;ea.STATE_BLOATED_DIMENSION=3;ea.STATE_NO_ADVANCED=4})();
//qingVersionTag: 20250415