amis-reports
Version:
爱速搭报表,基于 ECharts 实现的图表功能组件,旨在为用户提供简单和快捷的可视化报表能力,帮助用户在爱速搭平台上快速设计常见的数据报表页和大屏报表效果页。
2 lines • 673 kB
JavaScript
/*! For license information please see index.js.LICENSE.txt */
!function(e,a){"object"==typeof exports&&"object"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof exports?exports.amisReports=a():e.amisReports=a()}(this,(function(){return function(){var e={747:function(e,a,t){"use strict";t.d(a,{H3:function(){return f},bt:function(){return d},jr:function(){return b},pE:function(){return o},sZ:function(){return l},t:function(){return i},tS:function(){return r},vQ:function(){return c}});var n={},i=[{label:"计数",value:"COUNT"},{label:"去重计数",value:"COUNT_DISTINCT"}],c=[{label:"求和",value:"SUM"},{label:"均值",value:"AVG"},{label:"最大值",value:"MAX"},{label:"最小值",value:"MIN"}],r={text:"text",textarea:"text",int:"number",float:"number",date:"date",datetime:"datetime","date-range":"",enum:"select",boolean:"boolean",password:"text",ciphertext:"text",attachement:"",image:"file",address:"text",location:"text","serial-number":"text",user:"user",department:"dep",owner:"user","owner-department":"dep",mpath:"",json:"",money:"number",parent:""};function l(e){var a,t={},i=(null==(a=window.store)||null==(a=a.page)?void 0:a.id)||"";e.forEach((function(e){e.children.forEach((function(e){t[e.value]=e.form||e}))})),n[i]=t}function d(e){var a,t,i=[],c=(null==(a=window.store)||null==(a=a.page)?void 0:a.id)||"";return e&&c&&n[c]&&(i=(null==(t=n[c][e])?void 0:t.fields)||[]),i}function o(e){var a,t,i=[],c=(null==(a=window.store)||null==(a=a.page)?void 0:a.id)||"";return e&&c&&n[c]&&(i=(null==(t=n[c][e])?void 0:t.relationFields)||[]),i}function f(e){var a=e[0],t=e[1],n=e[2];return!n||a||t||(a=d(n),t=o(n)),a.concat((t||[]).filter((function(e){var a;return"n"!==(null==(a=e.relationMode)?void 0:a.split(":")[1])&&!e.joinColumnAtTarget&&"relation"!==e.type}))).filter((function(e){return!e.isForeignKey&&"deletedAt"!==e.name&&"deletedAt"!==e.key}))}function b(e){return e.split(":")[0]}},721:function(e,a,t){"use strict";t.d(a,{Gx:function(){return f},IR:function(){return l},Jv:function(){return c},fd:function(){return r},ol:function(){return i},p3:function(){return b},vu:function(){return o},y_:function(){return d}});var n=t(747);function i(e){var a={};if("saas"===e.reportMode){var t,n,i=e.webServerRootPath||"",c=window.store||{},r=c.app||{},l=e.companyKey||(null==(t=c.company)?void 0:t.key),d=e.appKey||r.key+("latest"!==r.env?"-"+r.env:""),o=e.pageKey||(null==(n=c.page)?void 0:n.id);l&&d&&(a={sourceOptionsAll:i+"/api/company/"+l+"/app/"+d+"/source/optionsAll?withRelationFields=true&withSystemFields=true",datasetOptionsAll:i+"/api/company/"+l+"/app/"+d+"/dataset/selectOptions"},o&&(a=Object.assign(a,{jsonqlApi:i+"/api/company/"+l+"/app/"+d+"/page/"+o+"/jsonql",expressions:i+"/api/company/"+l+"/app/"+d+"/page/"+o+"/reportFields/expressions?model=${model}&dataSet=${dataSet}",groups:i+"/api/company/"+l+"/app/"+d+"/page/"+o+"/reportFields/groups?model=${model}&dataSet=${dataSet}",dataBuckets:i+"/api/company/"+l+"/app/"+d+"/page/"+o+"/reportFields/dataBuckets?model=${model}&dataSet=${dataSet}"})))}window.DefaultReportConfig=Object.assign(window.DefaultReportConfig,a,e||{})}function c(e){return e?window.DefaultReportConfig[e]:window.DefaultReportConfig}function r(e){if("jssdk"===window.DefaultReportConfig.reportMode&&e){var a,t=(0,n.jr)(e);return null==(a=window.DefaultReportConfig.jsonqlApi)?void 0:a.replaceAll("${dsKey}",t)}var i=window.store||{};if("saas"===window.DefaultReportConfig.reportMode&&i.page){var c,r,l=window.DefaultReportConfig.webServerRootPath||"",d=(null==(c=i.company)?void 0:c.key)||"xxCompany",o=i.app||{};return l+"/api/company/"+d+"/app/"+(o.key+("latest"!==o.env?"-"+o.env:"")||"xxApp")+"/page/"+((null==(r=i.page)?void 0:r.id)||"xxPage")+"/jsonql"}return window.DefaultReportConfig.jsonqlApi}function l(e){return e?"/api/jsonql/"+e+"/query":window.DefaultReportConfig.jsonqlQuery}function d(){var e=window.store||{};if("saas"===window.DefaultReportConfig.reportMode&&e.app){var a,t=window.DefaultReportConfig.webServerRootPath||"",n=(null==(a=e.company)?void 0:a.key)||"xxCompany",i=e.app||{};return t+"/api/company/"+n+"/app/"+(i.key+("latest"!==i.env?"-"+i.env:"")||"xxApp")+"/source/optionsAll?withRelationFields=true&withSystemFields=true"}return window.DefaultReportConfig.sourceOptionsAll}function o(){var e=window.store||{};if("saas"===window.DefaultReportConfig.reportMode&&e.app){var a,t=window.DefaultReportConfig.webServerRootPath||"",n=(null==(a=e.company)?void 0:a.key)||"xxCompany",i=e.app||{};return t+"/api/company/"+n+"/app/"+(i.key+("latest"!==i.env?"-"+i.env:"")||"xxApp")+"/dataset/selectOptions"}return window.DefaultReportConfig.datasetOptionsAll}function f(e){var a=window.DefaultReportConfig[e],t=window.store||{};if("saas"===window.DefaultReportConfig.reportMode&&t.page){var n,i,c=window.DefaultReportConfig.webServerRootPath||"",r=(null==(n=t.company)?void 0:n.key)||"xxCompany",l=t.app||{};a=c+"/api/company/"+r+"/app/"+(l.key+("latest"!==l.env?"-"+l.env:"")||"xxApp")+"/page/"+((null==(i=t.page)?void 0:i.id)||"xxPage")+"/reportFields/"+e+"?model=${model}&dataSet=${dataSet}"}return a}function b(e){return f(e)+"&dataId=${id}"}window.DefaultReportConfig={reportMode:"static",useDataModelSource:!1,useDataSetSource:!1,useReportDesignConfig:!0,sourceOptionsAll:"/design/source/optionsAll?withRelationFields=true&withSystemFields=true",jsonqlApi:"/resource/source/${dsKey}/jsonql",jsonqlQuery:"/api/jsonql/${dslKey}/query",datasetOptionsAll:"/api/company/xxCompany/app/xxApp/dataset/selectOptions",expressions:"/resource/reportFields/expressions?model=${model}&dataSet=${dataSet}",groups:"/resource/reportFields/groups?model=${model}&dataSet=${dataSet}",dataBuckets:"/resource/reportFields/dataBuckets?model=${model}&dataSet=${dataSet}",DEFAULT_COLOR:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"]}},796:function(e,a,t){"use strict";t.d(a,{F0:function(){return u},YX:function(){return h},aI:function(){return C},gU:function(){return v},kB:function(){return x},rq:function(){return m}});var n=t(547),i=t.n(n),c=t(999),r=t.n(c),l=t(133),d=t.n(l),o=t(170),f=t(436),b=t(230),s=t(747);function h(e,a){var t,n,i,c=e.model,r=e.__modelFields,l=e.__relationModelFields,o=e.dimensions,f=e.measures,h=e.measures2,u=e.doubleYAxis,p=e.whereConditionRaw,m=e.havingConditionRaw,g=e.limit,v=e.dataSet,C=e.dataSourceType,_=e.groupField,L=e.bubbleField,F=r||[],z=l||[];if(c||v){F||z||(F=(0,s.bt)(c||v),z=(0,s.pE)(c||v));var D=L||[],A=null==T?void 0:T.groups,M=null==T?void 0:T.dataBuckets,O=null==T?void 0:T.expressions;o=o||[],f=u?(f||[]).concat(h||[]):f||[];var N=[],k=[],B={},P={statement:"SELECT",many:a},V={},R=o.concat(f).concat(D).map((function(e,a){var t=d()(F,(function(a){return a.name===e.field||a.key===e.field}));if("modelField"===e.fieldType){var n=d()(z,(function(a){return a.name===e.field}));if(!t&&!n)return{};B={as:e.as},t&&"dataModel"===C?B.column=t.name:n&&"dataModel"===C?(B.column=n.key,B.table=n.targetKey):t&&"dataSet"===C&&(B.column=t.key,B.table=t.table),e.statisticsFunction&&(B.func=e.statisticsFunction),e.statisticsFunction&&!(0,b.m7)(e.statisticsFunction)||!B.column||V[B.column]||(V[B.column]=B.column,k.push({name:B.column}))}else if("expression"===e.fieldType){if(!O)return{};var i=d()(O,(function(a){return a.id===e.field}));if(!i)return{};var c=i.expressionStr;B={exp:""+c,as:e.as}}else if("group"===e.fieldType){var r;if(!A)return{};var l=d()(A,(function(a){return a.id===e.field}));if(!l)return{};var o=l.dimensionGroups;B={case:[],else:l.else||"其他",as:e.as};var f={column:l.dimensionField};"dataSet"===C&&(f={column:l.dimensionField,table:l.model||l.table});var s=null==(r=z)?void 0:r.find((function(e){return e.name===l.dimensionField}));s&&(f={column:s.key,table:s.targetKey}),B.case=null==o?void 0:o.map((function(e){return{when:{operator:"and",children:[{left:f,op:"in",right:e.groupValues.split(",")}]},then:e.groupName}})),B.as&&!V[B.as]&&(V[B.as]=B.as,k.push({name:B.as}))}else if("dataBucket"===e.fieldType){if(!M)return{};var h=d()(M,(function(a){return a.id===e.field}));if(!h)return{};var u=h.buckets;(B={case:[],as:e.as,else:h.else||"其他"}).case=u.map((function(e){return{when:y(e.filterCondition,z),then:e.bucketName}})),B.as&&!V[B.as]&&(V[B.as]=B.as,k.push({name:B.as}))}return e.orderBy&&N.push({name:B.as,sort:e.orderBy}),B})).filter((function(e){return e&&e.as})),j=f[0]||{},W=j.totalField;if("totalToPercent"===j.formatter&&W){var E=d()(F,(function(e){return e.name===W||e.key===W})),$=d()(z,(function(e){return e.name===W}));if(E||$){var U={as:j.totalFieldAs};j.totalFieldFunc&&(U.func=j.totalFieldFunc),E&&"dataModel"===C?U.column=E.name:$&&"dataModel"===C?(U.column=$.key,U.table=$.targetKey):E&&"dataSet"===C&&(U.column=E.key,U.table=E.table),R.push(U)}}if(_){var I=d()(F,(function(e){return e.name===_||e.key===_}));I&&"dataModel"===C?(R.push({column:_}),k.push({name:_})):I&&"dataSet"===C&&(R.push({column:I.key,as:_,table:I.table}),k.push({name:_}))}P.select=R;var q=[];if("dataModel"===C&&c){var H=c.split(":"),J=H[0],Y=H[1];P.from=J+"."+Y,q=x(0,z,Y)}else"dataSet"===C&&(P.fromDataSet=v);return null!=(t=q)&&t.length&&(P.join=q),k.length&&(P.groupBy=k),N.length&&(P.orderBy=N),null!=p&&null!=(n=p.children)&&n.length&&(P.where=y(p,z,F)),null!=m&&null!=(i=m.children)&&i.length&&(P.having=function(e,a){return{operator:e.conjunction,children:e.children.map((function(e){var t,n;if(null!=(t=e.children)&&t.length)return y(e,a);var i={left:{name:null==(n=e.left)?void 0:n.field},op:S[e.op]||e.op};return e.right&&(i.right="between"===e.op?[e.right[0]&&w(e.right[0],e.op),e.right[1]&&w(e.right[1],e.op)]:w(e.right,e.op)),i}))}}(m,R)),g&&(P.limit=g),P}}function u(e,a){var t=e;if(e&&r()(e))try{var n=JSON.parse(e);n.where=p(n.where,a),n.having=p(n.having,a),t=JSON.stringify(n)}catch(a){return console.warn("当前JSONQL字符串解析错误:"+e),t}return t}function p(e,a){return e&&i()(e.children)&&(e.children=e.children.filter((function(e){if(e.children){var t=p({children:e.children},a);e.children=null==t?void 0:t.children}else if((0,o.isExpression)(e.right)){var n=o.FormulaExec.formula(e.right,a);(0,f.W6)(n)&&!(0,f.I4)(e.op)&&(e.deleted=!0)}else(0,f.W6)(e.right)&&!(0,f.I4)(e.op)&&(e.deleted=!0);return!e.deleted}))),e}function m(e,a){var t={};if(e&&r()(e))try{t=JSON.parse(e)}catch(a){return console.warn("当前JSONQL字符串解析错误:"+e),{}}else e&&(t=e);return t.where&&a&&(t.where=g(t.where,a)),t.having&&a&&(t.having=g(t.having,a)),t}function g(e,a){return e&&i()(e.children)&&(e.children=e.children.filter((function(e){if(e.children){var t=p({children:e.children},a);e.children=null==t?void 0:t.children}else(0,o.isExpression)(e.right)?(e.right=o.FormulaExec.formula(e.right,a),(0,f.W6)(e.right)&&!(0,f.I4)(e.op)&&(e.deleted=!0)):(0,f.W6)(e.right)&&!(0,f.I4)(e.op)&&(e.deleted=!0);return!e.deleted}))),e}var v=["model","dataSet","dataSourceType","dimensions","measures","measures2","doubleYAxis","whereConditionRaw","havingConditionRaw","limit","bubbleField","groupField"];function y(e,a,t){var n={operator:e.conjunction,children:[]};return e.children&&e.children.length>0&&e.children.forEach((function(e){var i,c,r;if(null!=(i=e.children)&&i.length){var l=y(e,a,t);n.children.push(l)}else{var d={left:{column:null==(c=e.left)?void 0:c.field},op:S[e.op]||e.op};e.right&&(d.right="between"===e.op?[e.right[0]&&w(e.right[0],e.op),e.right[1]&&w(e.right[1],e.op)]:w(e.right,e.op));var o=null==a?void 0:a.find((function(a){var t;return a.name===(null==(t=e.left)?void 0:t.field)}));if(o&&(d.left={column:o.key,table:o.targetKey}),0===(null==(r=e.left)?void 0:r.field.indexOf("dataset."))){var f,b=null==(f=e.left)?void 0:f.field.split("."),s=(b[0],b[1]),h=b[2];d.left={column:h,table:s}}n.children.push(d)}})),n}function x(e,a,t){var n=[],i=[];return null!=a&&a.length&&a.filter((function(e){return e.parentKey===t&&"1:n"!==e.relationMode&&"n:n"!==e.relationMode&&!e.joinColumnAtTarget&&"relation"!==e.type&&e.isPrimaryKey})).forEach((function(e){var a=e.targetKey;-1===n.indexOf(a)&&(n.push(a),i.push({table:a,joinType:"LEFT JOIN",on:{operator:"and",children:[{left:{column:e.parentForeignKey||a+"Id"},op:"=",right:{column:e.key,table:a}}]}}))})),i}var S={is_not_empty:"IS NOT NULL",is_empty:"IS NULL",equal:"=",not_equal:"<>",less:"<",less_or_equal:"<=",greater:">",greater_or_equal:">=",not_between:"NOT BETWEEN",between:"BETWEEN",like:"LIKE",not_like:"NOT LIKE",starts_with:"LIKE",ends_with:"LIKE",select_equals:"=",select_not_equals:"<>",select_any_in:"IN",select_not_any_in:"NOT IN",user_equal:"",user_not_equal:"",user_belong_deps:"",user_not_belong_deps:"",user_belong_roles:"",user_not_belong_roles:"",dep_equal:"",dep_not_equa:"",dep_belong:"",dep_not_belong:""};function w(e,a){return e?("like"!==a&&"not_like"!==a||(e="%"+e+"%"),"starts_with"===a&&(e+="%"),"ends_with"===a&&(e="%"+e),e):""}var T={expressions:[],groups:[],dataBuckets:[]};function C(e,a){T[e]=a}},306:function(e,a,t){"use strict";t.d(a,{tf:function(){return d},wA:function(){return l}});var n=t(31),i={"河北":"hebei","山西":"shanxi","内蒙古":"neimenggu","辽宁":"liaoning","吉林":"jilin","黑龙江":"heilongjiang","江苏":"jiangsu","浙江":"zhejiang","安徽":"anhui","福建":"fujian","江西":"jiangxi","山东":"shandong","河南":"henan","湖北":"hubei","湖南":"hunan","广东":"guangdong","广西":"guangxi","海南":"hainan","四川":"sichuan","贵州":"guizhou","云南":"yunnan","西藏":"xizang","陕西":"shanxi1","甘肃":"gansu","青海":"qinghai","宁夏":"ningxia","新疆":"xinjiang","台湾":"taiwan"},c=t.n(n)()({},i,{"澳门":"aomen","北京":"beijing","重庆":"chongqing","上海":"shanghai","天津":"tianjin","香港":"xianggang"},{"石家庄":"hebei_shijiazhuang","唐山":"hebei_tangshan","秦皇岛":"hebei_qinhuangdao","邯郸":"hebei_handan","邢台":"hebei_xingtai","保定":"hebei_baoding","张家口":"hebei_zhangjiakou","承德":"hebei_chengde","沧州":"hebei_cangzhou","廊坊":"hebei_langfang","衡水":"hebei_hengshui","太原":"shanxi_taiyuan","大同":"shanxi_datong","阳泉":"shanxi_yangquan","长治":"shanxi_changzhi","晋城":"shanxi_jincheng","朔州":"shanxi_shuozhou","晋中":"shanxi_jinzhong","运城":"shanxi_yuncheng","忻州":"shanxi_xinzhou","临汾":"shanxi_linfen","吕梁":"shanxi_lvliang","呼和浩特":"neimenggu_huhehaote","包头":"neimenggu_baotou","乌海":"neimenggu_wuhai","赤峰":"neimenggu_chifeng","通辽":"neimenggu_tongliao","鄂尔多斯":"neimenggu_eerduosi","呼伦贝尔":"neimenggu_hulunbeier","巴彦淖尔":"neimenggu_bayannaoer","乌兰察布":"neimenggu_wulanchabu","兴安盟":"neimenggu_xinganmeng","锡林郭勒盟":"neimenggu_xilinguolemeng","阿拉善盟":"neimenggu_alashanmeng","沈阳":"liaoning_shenyang","大连":"liaoning_dalian","鞍山":"liaoning_anshan","抚顺":"liaoning_fushun","本溪":"liaoning_benxi","丹东":"liaoning_dandong","锦州":"liaoning_jinzhou","营口":"liaoning_yingkou","阜新":"liaoning_fuxin","辽阳":"liaoning_liaoyang","盘锦":"liaoning_panjin","铁岭":"liaoning_tieling","朝阳":"liaoning_chaoyang","葫芦岛":"liaoning_huludao","长春":"jilin_changchun","吉林":"jilin_jilin","四平":"jilin_siping","辽源":"jilin_liaoyuan","通化":"jilin_tonghua","白山":"jilin_baishan","松原":"jilin_songyuan","白城":"jilin_baicheng","延边朝鲜族自治州":"jilin_yanbianchaoxianzuzizhizhou","哈尔滨":"heilongjiang_haerbin","齐齐哈尔":"heilongjiang_qiqihaer","鸡西":"heilongjiang_jixi","鹤岗":"heilongjiang_hegang","双鸭山":"heilongjiang_shuangyashan","大庆":"heilongjiang_daqing","伊春":"heilongjiang_yichun","佳木斯":"heilongjiang_jiamusi","七台河":"heilongjiang_qitaihe","牡丹江":"heilongjiang_mudanjiang","黑河":"heilongjiang_heihe","绥化":"heilongjiang_suihua","大兴安岭地区":"heilongjiang_daxinganlingdiqu","南京":"jiangsu_nanjing","无锡":"jiangsu_wuxi","徐州":"jiangsu_xuzhou","常州":"jiangsu_changzhou","苏州":"jiangsu_suzhou","南通":"jiangsu_nantong","连云港":"jiangsu_lianyungang","淮安":"jiangsu_huaian","盐城":"jiangsu_yancheng","扬州":"jiangsu_yangzhou","镇江":"jiangsu_zhenjiang","泰州":"jiangsu_taizhou","宿迁":"jiangsu_suqian","杭州":"zhejiang_hangzhou","宁波":"zhejiang_ningbo","温州":"zhejiang_wenzhou","嘉兴":"zhejiang_jiaxing","湖州":"zhejiang_huzhou","绍兴":"zhejiang_shaoxing","金华":"zhejiang_jinhua","衢州":"zhejiang_quzhou","舟山":"zhejiang_zhoushan","台州":"zhejiang_taizhou","丽水":"zhejiang_lishui","合肥":"anhui_hefei","芜湖":"anhui_wuhu","蚌埠":"anhui_bengbu","淮南":"anhui_huainan","马鞍山":"anhui_maanshan","淮北":"anhui_huaibei","铜陵":"anhui_tongling","安庆":"anhui_anqing","黄山":"anhui_huangshan","滁州":"anhui_chuzhou","阜阳":"anhui_fuyang","宿州":"anhui_suzhou","六安":"anhui_liuan","亳州":"anhui_bozhou","池州":"anhui_chizhou","宣城":"anhui_xuancheng","福州":"fujian_fuzhou","厦门":"fujian_xiamen","莆田":"fujian_putian","三明":"fujian_sanming","泉州":"fujian_quanzhou","漳州":"fujian_zhangzhou","南平":"fujian_nanping","龙岩":"fujian_longyan","宁德":"fujian_ningde","南昌":"jiangxi_nanchang","景德镇":"jiangxi_jingdezhen","萍乡":"jiangxi_pingxiang","九江":"jiangxi_jiujiang","新余":"jiangxi_xinyu","鹰潭":"jiangxi_yingtan","赣州":"jiangxi_ganzhou","吉安":"jiangxi_jian","宜春":"jiangxi_yichun","抚州":"jiangxi_fuzhou","上饶":"jiangxi_shangrao","济南":"shandong_jinan","青岛":"shandong_qingdao","淄博":"shandong_zibo","枣庄":"shandong_zaozhuang","东营":"shandong_dongying","烟台":"shandong_yantai","潍坊":"shandong_weifang","济宁":"shandong_jining","泰安":"shandong_taian","威海":"shandong_weihai","日照":"shandong_rizhao","临沂":"shandong_linyi","德州":"shandong_dezhou","聊城":"shandong_liaocheng","滨州":"shandong_binzhou","菏泽":"shandong_heze","郑州":"henan_zhengzhou","开封":"henan_kaifeng","洛阳":"henan_luoyang","平顶山":"henan_pingdingshan","安阳":"henan_anyang","鹤壁":"henan_hebi","新乡":"henan_xinxiang","焦作":"henan_jiaozuo","濮阳":"henan_puyang","许昌":"henan_xuchang","漯河":"henan_luohe","三门峡":"henan_sanmenxia","南阳":"henan_nanyang","商丘":"henan_shangqiu","信阳":"henan_xinyang","周口":"henan_zhoukou","驻马店":"henan_zhumadian","济源":"henan_jiyuan","武汉":"hubei_wuhan","黄石":"hubei_huangshi","十堰":"hubei_shiyan","宜昌":"hubei_yichang","襄阳":"hubei_xiangyang","鄂州":"hubei_ezhou","荆门":"hubei_jingmen","孝感":"hubei_xiaogan","荆州":"hubei_jingzhou","黄冈":"hubei_huanggang","咸宁":"hubei_xianning","随州":"hubei_suizhou","恩施土家族苗族自治州":"hubei_enshitujiazumiaozuzizhizhou","仙桃":"hubei_xiantao","潜江":"hubei_qianjiang","天门":"hubei_tianmen","神农架林区":"hubei_shennongjialinqu","长沙":"hunan_changsha","株洲":"hunan_zhuzhou","湘潭":"hunan_xiangtan","衡阳":"hunan_hengyang","邵阳":"hunan_shaoyang","岳阳":"hunan_yueyang","常德":"hunan_changde","张家界":"hunan_zhangjiajie","益阳":"hunan_yiyang","郴州":"hunan_chenzhou","永州":"hunan_yongzhou","怀化":"hunan_huaihua","娄底":"hunan_loudi","湘西土家族苗族自治州":"hunan_xiangxitujiazumiaozuzizhizhou","广州":"guangdong_guangzhou","韶关":"guangdong_shaoguan","深圳":"guangdong_shenzhen","珠海":"guangdong_zhuhai","汕头":"guangdong_shantou","佛山":"guangdong_foshan","江门":"guangdong_jiangmen","湛江":"guangdong_zhanjiang","茂名":"guangdong_maoming","肇庆":"guangdong_zhaoqing","惠州":"guangdong_huizhou","梅州":"guangdong_meizhou","汕尾":"guangdong_shanwei","河源":"guangdong_heyuan","阳江":"guangdong_yangjiang","清远":"guangdong_qingyuan","东莞":"guangdong_dongguan","中山":"guangdong_zhongshan","潮州":"guangdong_chaozhou","揭阳":"guangdong_jieyang","云浮":"guangdong_yunfu","南宁":"guangxi_nanning","柳州":"guangxi_liuzhou","桂林":"guangxi_guilin","梧州":"guangxi_wuzhou","北海":"guangxi_beihai","防城港":"guangxi_fangchenggang","钦州":"guangxi_qinzhou","贵港":"guangxi_guigang","玉林":"guangxi_yulin","百色":"guangxi_baise","贺州":"guangxi_hezhou","河池":"guangxi_hechi","来宾":"guangxi_laibin","崇左":"guangxi_chongzuo","海口":"hainan_haikou","三亚":"hainan_sanya","三沙":"hainan_sansha","儋州":"hainan_danzhou","五指山":"hainan_wuzhishan","琼海":"hainan_qionghai","文昌":"hainan_wenchang","万宁":"hainan_wanning","东方":"hainan_dongfang","定安县":"hainan_dinganxian","屯昌县":"hainan_tunchangxian","澄迈县":"hainan_chengmaixian","临高县":"hainan_lingaoxian","白沙黎族自治县":"hainan_baishalizuzizhixian","昌江黎族自治县":"hainan_changjianglizuzizhixian","乐东黎族自治县":"hainan_ledonglizuzizhixian","陵水黎族自治县":"hainan_lingshuilizuzizhixian","保亭黎族苗族自治县":"hainan_baotinglizumiaozuzizhixian","琼中黎族苗族自治县":"hainan_qiongzhonglizumiaozuzizhixian","重庆":"chongqing","成都":"sichuan_chengdu","自贡":"sichuan_zigong","攀枝花":"sichuan_panzhihua","泸州":"sichuan_luzhou","德阳":"sichuan_deyang","绵阳":"sichuan_mianyang","广元":"sichuan_guangyuan","遂宁":"sichuan_suining","内江":"sichuan_neijiang","乐山":"sichuan_leshan","南充":"sichuan_nanchong","眉山":"sichuan_meishan","宜宾":"sichuan_yibin","广安":"sichuan_guangan","达州":"sichuan_dazhou","雅安":"sichuan_yaan","巴中":"sichuan_bazhong","资阳":"sichuan_ziyang","阿坝藏族羌族自治州":"sichuan_abazangzuqiangzuzizhizhou","甘孜藏族自治州":"sichuan_ganzizangzuzizhizhou","凉山彝族自治州":"sichuan_liangshanyizuzizhizhou","贵阳":"guizhou_guiyang","六盘水":"guizhou_liupanshui","遵义":"guizhou_zunyi","安顺":"guizhou_anshun","毕节":"guizhou_bijie","铜仁":"guizhou_tongren","黔西南布依族苗族自治州":"guizhou_qianxinanbuyizumiaozuzizhizhou","黔东南苗族侗族自治州":"guizhou_qiandongnanmiaozudongzuzizhizhou","黔南布依族苗族自治州":"guizhou_qiannanbuyizumiaozuzizhizhou","昆明":"yunnan_kunming","曲靖":"yunnan_qujing","玉溪":"yunnan_yuxi","保山":"yunnan_baoshan","昭通":"yunnan_zhaotong","丽江":"yunnan_lijiang","普洱":"yunnan_puer","临沧":"yunnan_lincang","楚雄彝族自治州":"yunnan_chuxiongyizuzizhizhou","红河哈尼族彝族自治州":"yunnan_honghehanizuyizuzizhizhou","文山壮族苗族自治州":"yunnan_wenshanzhuangzumiaozuzizhizhou","西双版纳傣族自治州":"yunnan_xishuangbannadaizuzizhizhou","大理白族自治州":"yunnan_dalibaizuzizhizhou","德宏傣族景颇族自治州":"yunnan_dehongdaizujingpozuzizhizhou","怒江傈僳族自治州":"yunnan_nujianglisuzuzizhizhou","迪庆藏族自治州":"yunnan_diqingcangzuzizhizhou","拉萨":"xizang_lasa","日喀则":"xizang_rikaze","昌都":"xizang_changdu","林芝":"xizang_linzhi","山南":"xizang_shannan","那曲":"xizang_naqudiqu","那曲地区":"xizang_naqudiqu","阿里地区":"xizang_alidiqu","西安":"shanxi1_xian","铜川":"shanxi1_tongchuan","宝鸡":"shanxi1_baoji","咸阳":"shanxi1_xianyang","渭南":"shanxi1_weinan","延安":"shanxi1_yanan","汉中":"shanxi1_hanzhong","榆林":"shanxi1_yulin","安康":"shanxi1_ankang","商洛":"shanxi1_shangluo","兰州":"gansu_lanzhou","嘉峪关":"gansu_jiayuguan","金昌":"gansu_jinchang","白银":"gansu_baiyin","天水":"gansu_tianshui","武威":"gansu_wuwei","张掖":"gansu_zhangye","平凉":"gansu_pingliang","酒泉":"gansu_jiuquan","庆阳":"gansu_qingyang","定西":"gansu_dingxi","陇南":"gansu_longnan","临夏回族自治州":"gansu_linxiahuizuzizhizhou","甘南藏族自治州":"gansu_gannanzangzuzizhizhou","西宁":"qinghai_xining","海东":"qinghai_haidong","海北藏族自治州":"qinghai_haibeizangzuzizhizhou","黄南藏族自治州":"qinghai_huangnanzangzuzizhizhou","海南藏族自治州":"qinghai_hainanzangzuzizhizhou","果洛藏族自治州":"qinghai_guoluozangzuzizhizhou","玉树藏族自治州":"qinghai_yushuzangzuzizhizhou","海西蒙古族藏族自治州":"qinghai_haiximengguzuzangzuzizhizhou","银川":"ningxia_yinchuan","石嘴山":"ningxia_shizuishan","吴忠":"ningxia_wuzhong","固原":"ningxia_guyuan","中卫":"ningxia_zhongwei","乌鲁木齐":"xinjiang_wulumuqi","克拉玛依":"xinjiang_kelamayi","吐鲁番":"xinjiang_tulufan","哈密":"xinjiang_hami","昌吉回族自治州":"xinjiang_changjihuizuzizhizhou","博尔塔拉蒙古自治州":"xinjiang_boertalamengguzizhizhou","巴音郭楞蒙古自治州":"xinjiang_bayinguolengmengguzizhizhou","阿克苏地区":"xinjiang_akesudiqu","克孜勒苏柯尔克孜自治州":"xinjiang_kezilesukeerkezizizhizhou","喀什地区":"xinjiang_kashidiqu","和田地区":"xinjiang_hetiandiqu","伊犁哈萨克自治州":"xinjiang_yilihasakezizhizhou","塔城地区":"xinjiang_tachengdiqu","阿勒泰地区":"xinjiang_aletaidiqu","石河子":"xinjiang_shihezi","阿拉尔":"xinjiang_alaer","图木舒克":"xinjiang_tumushuke","五家渠":"xinjiang_wujiaqu","北屯":"xinjiang_beitun","铁门关":"xinjiang_tiemenguan","双河":"xinjiang_shuanghe","可克达拉":"xinjiang_kekedala","昆玉":"xinjiang_kunyu","胡杨河":"xinjiang_huyanghe"}),r=["hebei","shanxi","neimenggu","liaoning","jilin","heilongjiang","jiangsu","zhejiang","anhui","fujian","jiangxi","shandong","henan","hubei","hunan","guangdong","guangxi","hainan","sichuan","guizhou","yunnan","xizang","shanxi1","gansu","qinghai","ningxia","xinjiang","taiwan"];function l(e){return i[e]||r.indexOf(e)>-1}function d(e){var a=e;return!(a=l(e)?i[e]:c[e])&&e&&(e.endsWith("市")||e.endsWith("县")||e.endsWith("区"))&&(a=c[e.substring(0,e.length-1)]),a}},436:function(e,a,t){"use strict";function n(e){var a={};return e?(e.forEach((function(e){a[e.key]=e.val})),a):{}}function i(e){var a=!1;return null==e&&(a=!0),a}function c(e){var a=!1;return"is_empty"!==e&&"is_not_empty"!==e&&"IS NULL"!==e&&"IS NOT NULL"!==e||(a=!0),a}function r(e){return/^http[s]?:\/\/.*/.test(e)||/^api:\/\/.*/.test(e)}t.d(a,{I4:function(){return c},W6:function(){return i},mv:function(){return r},xp:function(){return n}}),t(31)},333:function(e,a,t){"use strict";t.d(a,{J:function(){return n},d:function(){return i}});var n={color:{brand:"--colors-brand-5",text:"--colors-neutral-text-2",subText:"--colors-neutral-text-4",descText:"--colors-neutral-text-5",fill:"--colors-neutral-fill-10",line:"--colors-neutral-line-6",dividerLine:"--colors-neutral-line-8",background:"--colors-neutral-text-11"},border:{color:"--colors-neutral-line-4"},shadows:{value:"--shadows-shadow-normal"}},i={color:{brand:"#2468f2",text:"#151B26",subText:"#5C5F66",descText:"#84878C",fill:"#F7F8FA",line:"#E8E9EB",dividerLine:"#E8E9EB",background:"#FFFFFF"},border:{color:"#E8E9EB"},shadows:{value:"0px 1px 2px 0px rgba(0, 0, 0, 0.05)"},report:{negativeDataColor:"#389e0d",positiveDataColor:"#f5222d"}}},786:function(e,a,t){"use strict";t.d(a,{C6:function(){return y},EA:function(){return u},nv:function(){return S},x7:function(){return x}});var n=t(31),i=t.n(n),c=t(947),r=t.n(c),l=t(999),d=t.n(l),o=t(333);function f(e,a){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,a){if(e){if("string"==typeof e)return b(e,a);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?b(e,a):void 0}}(e))||a&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=Array(a);t<a;t++)n[t]=e[t];return n}var s=["color","width","fontStyle","fontWeight","fontFamily","font-family","fontSize","lineHeight","shadowColor","top-left-border-radius","top-right-border-radius","bottom-left-border-radius","bottom-right-border-radius","InRangeMinColor","InRangeMaxColor","borderColor"],h=["lineShadowColor","dataTitleColor","dataDetailColor","progressColor","axisLineColor","splitLineColor","axisTickColor","axisLabelColor","pointerColor","columnBorderColor","columnShadowColor","tooltipColor","tooltipBackgroundColor","tooltipBorderColor","fontColor","markPointBackground","markLineAvarageColor","markLineBaseColor","labelColor","legendColor","visualMapInRangeMin","visualMapInRangeMax","mapBorderColor","mapAreaColor","titleColor","titleBackgroundColor","backgroundColor","borderColor","shadowColor","negativeLabelColor","positiveDataColor","negativeDataColor"],u=["titleTextStyle","legendTextStyle","labelTextStyle","tooltipTextStyle","subTitleStyle","yAxisLabelStyle","yAxis2LabelStyle","xAxisLabelStyle","xAxisLineStyle","dataTitleStyle","dataDetailStyle","axisLabelStyle","axisTickStyle","xAxisNameStyle","chartItemStyle","columnBorderRadius","axisLineStyle","splitLineStyle","chartStyle","bubbleStyle","visualMap"],p=["yAxisNameConfig","calendar"],m=["nameTextStyle","itemStyle","splitLine"];function g(e,a){var t=a||document.documentElement,n=null==e?void 0:e.replace("var","").replace("(","").replace(")","");try{return getComputedStyle(t).getPropertyValue(n)}catch(e){return""}}function v(e){return!(!e||!d()(e))&&/^var\(.+\)$/.test(e)}function y(e,a){for(var t,n={},c=f(h);!(t=c()).done;){var l=t.value;v(e[l])&&(n[l]=g(e[l],a))}for(var d,o=f(u);!(d=o()).done;){var b=d.value;if(e[b]){n[b]||(n[b]=i()({},e[b]||{}));for(var y,x=f(s);!(y=x()).done;){var S=y.value;e[b][S]&&(v(e[b][S])?n[b][S]=g(e[b][S],a):n[b][S]=e[b][S])}}}for(var w,T=f(p);!(w=T()).done;){var C=w.value;if(e[C]){n[C]||(n[C]=r()(e[C],m));for(var _,L=f(m);!(_=L()).done;){var F=_.value;if(e[C][F]){n[C][F]||(n[C][F]=i()({},e[C][F]||{}));for(var z,D=f(s);!(z=D()).done;){var A=z.value;e[C][F][A]&&(v(e[C][F][A])?n[C][F][A]=g(e[C][F][A],a):n[C][F][A]=e[C][F][A])}}}}}return i()({},e,n)}function x(e,a){if(!e||!a)return"";var t=e.split(".")||[],n=o.J[t[0]][t[1]],i=o.d[t[0]][t[1]];return g(n,a)||i}function S(e){if(!e)return"";var a=e.split(".")||[],t=o.J[a[0]][a[1]],n=o.d[a[0]][a[1]];return t||n}},230:function(e,a,t){"use strict";t.d(a,{$g:function(){return Ce},BG:function(){return Ke},Bn:function(){return pa},DC:function(){return ra},Ez:function(){return la},FQ:function(){return R},Fd:function(){return he},GU:function(){return Ne},Gd:function(){return ce},Gl:function(){return Ze},I:function(){return ve},JK:function(){return ea},Kb:function(){return Ae},Kr:function(){return Q},L3:function(){return qe},LD:function(){return _e},LV:function(){return se},N3:function(){return Ee},OB:function(){return Te},OJ:function(){return aa},QB:function(){return ta},TQ:function(){return M},Th:function(){return te},Ty:function(){return Ie},Uw:function(){return ya},VG:function(){return Je},Vf:function(){return N},WO:function(){return na},X0:function(){return Oe},XU:function(){return Qe},ZY:function(){return We},Zm:function(){return ia},_W:function(){return ca},_X:function(){return De},bH:function(){return da},cd:function(){return Ue},dq:function(){return Be},g6:function(){return me},iU:function(){return Se},kT:function(){return $e},l_:function(){return Me},lg:function(){return He},m7:function(){return xa},nu:function(){return V},oS:function(){return ye},pB:function(){return B},pI:function(){return va},qN:function(){return sa},rH:function(){return Pe},rU:function(){return ua},sc:function(){return Ve},tB:function(){return Ge},ty:function(){return xe},uV:function(){return P},vM:function(){return Xe},w4:function(){return ke},wd:function(){return je},wv:function(){return ze},x_:function(){return ha},xi:function(){return ne},yh:function(){return Re},yi:function(){return fa}});var n=t(31),i=t.n(n),c=t(564),r=t.n(c),l=t(738),d=t.n(l),o=t(751),f=t.n(o),b=t(40),s=t.n(b),h=(t(133),t(601)),u=t.n(h),p=t(547),m=t.n(p),g=t(999),v=t.n(g),y=t(894),x=t.n(y),S=t(170),w=t(306),T=t(436),C=t(796),_=t(786),L=t(721);function F(e,a){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,a){if(e){if("string"==typeof e)return z(e,a);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?z(e,a):void 0}}(e))||a&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function z(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=Array(a);t<a;t++)n[t]=e[t];return n}var D=["gradientStatus","gradientMode","gradientAlpha"],A=["tooltipShow","tooltipContent","tooltipFontSize","tooltipColor","tooltipBackgroundColor","tooltipBorderWidth","tooltipBorderColor","tooltipPadding"],M=["centerHorizontal","centerVertical","innerRadius","radius"],O=["pieChartType","pieChartRoseType"],N=["gridTop","gridLeft","gridRight","gridBottom"],k=["xAxisShow","xAxisInverse","xAxisLineShow","xAxisLineShow","xAxisLabelShowOverlap","xAxisLabelRotate","xAxisFontSize","xAxisName","xAxisNameRotate","columnChartType","xyFlip","xAxisNameGap","xAxisNameLocation","xAxisMin","xAxisMax","xAxisSplitLineShow","xAxisSplitAreaShow"],B=["columnChartType","xyFlip","yAxisShow","yAxisMinAsDataMinAndMaxAsDataMax","yAxisSplitLineShow","yAxisSplitAreaShow","doubleYAxis","doubleYAxisAlign","yAxisLabelFontSize","yAxisMin","yAxisMax","yAxisLabelRotate","yAxisPreUnit","yAxisAfterUnit","yAxisName","yAxisFormatter","formatterToFixed","formatterClearZero","yAxisLabelStyle","yAxisNameConfig"],P=["doubleYAxis","doubleYAxisAlign","yAxisLabelFontSize2","yAxisMin2","yAxisMax2","yAxisLabelRotate2","yAxisPreUnit2","yAxisAfterUnit2","yAxisName2","yAxisFormatter2","yAxis2LabelStyle","yAxis2NameConfig"],V=["markPointMax","markPointMin","markPointBackground","markPointSymbol","markPointSymbolSize","markPointSymboloffsetX","markPointSymboloffsetY","markPointSymbolRotate"],R=["markLineAvarage","markLineAvarageColor","markLineSymbolLeft","markLineSymbolRight","markLineBase","markLineBaseValue","markLineBaseColor"],j=["labelShow","labelFontSize","labelColor","labelLineHeight","labelOverflow","labelPosition","labelFontWeight","labelContent","negativeLabelPosition"],W=["symbolSize","symbol"],E=["fontSize","fontColor","fontWeight","alignClass"],$=["dataTitleShow","dataTitleOffsetX","dataTitleOffsetY","dataTitleColor","dataTitleFontSize","dataTitleFontWeight"],U=["dataDetailShow","dataDetailOffsetX","dataDetailOffsetY","dataDetailColor","dataDetailFontSize","dataDetailFontWeight"],I=["progressShow","progressWidth","progressColor"],q=["progressWidth","axisLineShow","axisLineColor"],H=["splitLineShow","splitLineLength","splitLineDistance","splitLineColor","splitLineWidth"],J=["axisTickShow","axisTickSplitNumber","axisTickLength","axisTickDistance","axisTickColor","axisTickWidth"],Y=["axisLabelShow","axisLabelDistance","axisLabelRotate","axisLabelColor","axisLabelFontSize","axisLabelFontWeight"],G=["pointerShow","pointerColor"],X=["legendShow","legendType","legendColor","legendFontSize","legendAlign","legendOrient","legendPosition","legendWidth","legendHeight","legendTop","legendRight","legendBottom","legendLeft","legendDataShow","legendDataFormat"],Z=["backgroundColor","borderRadius","borderWidth","borderStyle","borderColor","shadowWidth","shadowOffset","shadowColor"],K=["titleShow","titleText","titleAlignment","titleBackgroundColor","titleLink"],Q=["animationDurationUpdate","animationThreshold","animationDuration"],ee=["funnelOrient"],ae=["columnBarWidth","columnBarMaxWidth","columnBarMinWidth","columnBarGap","columnBarMinHeight","positiveDataColor","negativeDataColor"],te=["columnBorderWidth","columnBorderColor","columnBorderType","columnShadowBlur","columnShadowColor","columnShadowOffsetX","columnShadowOffsetY"],ne=["lineWidth","lineCap","lineSymbol","lineJoin","lineShadowBlur","lineShadowColor","lineShadowOffsetX","lineShadowOffsetY","lineOpacity"],ie=["stackedLineChart","columnLineMix","doubleYAxis","doubleYAxisAlign"],ce=["padding","paddingTop","paddingRight","paddingBottom","paddingLeft"],re=["shape","sizeRangeBegin","sizeRangeEnd","rotationRangeBegin","rotationRangeEnd","gridSize"],le=["mapZoom","mapRoam","mapBorderColor","mapBorderWidth","mapAreaColor"],de=["visualMapShow","visualMapMin","visualMapMax","visualMapItemWidth","visualMapItemHeight","visualMapHoverLink","visualMapOrient","visualMapInverse","visualMapCalculable","visualMapRealtime","visualMapTextMax","visualMapTextMin","visualMapInRangeMin","visualMapInRangeMax"],oe=["nodeWidth","nodeGap","nodeAlign","orient"],fe=[].concat(_.EA,["measures","style","yAxisNameConfig","bubbleField","groupField","waveletStyle","visualMap","calendar"]),be={SUM:"求和",AVG:"均值",MAX:"最大值",MIN:"最小值",COUNT:"计数",COUNT_DISTINCT:"去重计数"};function se(e){var a=be[e];return a?"["+a+"]":""}function he(e){return ue.apply(this,arguments)}function ue(){return(ue=r()(d().mark((function e(a){var t,n,i,c,r,l,o,b,s,h,u,p,m,g,v,y,x,w,T,_,F,z,D,A,M,O,N,k;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.data,n=a.env,i=a.dsl,c=a.dataSourceType,r=a.whereConditionRaw,l=a.havingConditionRaw,o=a.contextData,b=a.dataApi,s=a.staticJson,h=a.inPreviewPanel,"context"!==c){e.next=5;break}return u=o&&o[0]?o[0]:{},p=ia(u.data,t),e.abrupt("return",{data:p});case 5:if("api"!==c||!b){e.next=20;break}if(m=[],!(0,S.isEffectiveApi)(b,t)){e.next=19;break}return g={},e.prev=9,e.next=12,n.fetcher(b,t);case 12:g=e.sent,e.next=18;break;case 15:e.prev=15,e.t0=e.catch(9),console.warn("["+b.url+"]接口请求异常:",e.t0);case 18:g.data&&(g.data.data||g.data.items)?m=g.data.data||g.data.items:!g.data&&!g.items||g.data.errcode||g.data.stack||(m=g.data||g.items);case 19:return e.abrupt("return",{data:m});case 20:if("staticJson"!==c){e.next=22;break}return e.abrupt("return",{data:s});case 22:if(v=pe(r,[]),y=pe(l,[]),x=f()(t,v.concat(y)),"dataModel"===c||"dataSet"===c){e.next=27;break}return e.abrupt("return",{data:[]});case 27:if(w=i&&~(null==i?void 0:i.indexOf("jsonql://")),T=i&&~(null==i?void 0:i.indexOf("preview://")),_=(0,L.IR)(i),F="",z={},w?(D=a.model,_=(0,L.fd)(D),z=(0,C.rq)(i.split("jsonql://")[1],x)):T?((A=i.split("|"))[0],M=A[1],O=A[2],_=M,F=(0,C.F0)(O,x)):h&&(N=a.previewUrl,_=N,F=(0,C.F0)(i.split("jsonql://")[1],x),T=!0),!w){e.next=39;break}return e.next=36,n.fetcher(_,z,{method:"post"});case 36:k=e.sent,e.next=48;break;case 39:if(!T){e.next=45;break}return e.next=42,n.fetcher(_,{jsonqlstr:F,queryParams:x},{method:"post"});case 42:k=e.sent,e.next=48;break;case 45:return e.next=47,n.fetcher(_,{queryParams:x},{method:"post"});case 47:k=e.sent;case 48:return e.abrupt("return",k);case 49:case"end":return e.stop()}}),e,null,[[9,15]])})))).apply(this,arguments)}function pe(e,a){var t;if(!e)return[];if(null!=(t=e.children)&&t.length)e.children.forEach((function(e){pe(e,a)}));else if(e.right)if("between"===e.op)for(var n,i=(0,S.collectVariables)(e.right[0]),c=(0,S.collectVariables)(e.right[1]),r=F(i.concat(c));!(n=r()).done;){var l=n.value;a.push(l)}else for(var d,o=F(e.right&&"string"==typeof e.right?(0,S.collectVariables)(e.right):[]);!(d=o()).done;){var f=d.value;a.push(f)}return a}function me(e,a){return ge.apply(this,arguments)}function ge(){return(ge=r()(d().mark((function e(a,t){var n,i,c,r,l,o,f,b,s,h,u,p,m,g,v,y,w,T,C,_,L,z,D,A;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(n=t||{}).data,c=n.dataApi,r=n.dimensions,l=n.measures,o=n.measures2,f=n.staticJson,b=a.data,s=a.whereConditionRaw,h=a.havingConditionRaw,u=a.dataSourceType,p=a.contextData,m=a.dataApi,g=a.dimensions,v=a.measures,y=a.measures2,w=a.staticJson,"context"!==u){e.next=7;break}return T=p&&p[0]?p[0]:{},C=ia(T.data,b),e.abrupt("return",{data:C});case 7:if("api"!==u||x()(m,c)&&!(0,S.isApiOutdated)(c,m,i,b)&&!ga(null==c?void 0:c.data,null==m?void 0:m.data,i,b)&&x()(g,r)&&x()(v,l)&&x()(y,o)){e.next=11;break}return e.next=10,he(a);case 10:return e.abrupt("return",e.sent);case 11:if("staticJson"!==u||x()(w,f)&&x()(g,r)&&x()(v,l)&&x()(y,o)){e.next=15;break}return e.next=14,he(a);case 14:return e.abrupt("return",e.sent);case 15:if(n.dsl===a.dsl){e.next=19;break}return e.next=18,he(a);case 18:return e.abrupt("return",e.sent);case 19:_=pe(s,[]),L=pe(h,[]),z=F(_.concat(L));case 22:if((D=z()).done){e.next=30;break}if(A=D.value,(b||{})[A]===(i||{})[A]){e.next=28;break}return e.next=27,he(a);case 27:return e.abrupt("return",e.sent);case 28:e.next=22;break;case 30:return e.abrupt("return",!1);case 31:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ve(e,a){for(var t,n=a||{},i=n.colorTheme,c=n.color,r=n.colorBy,l=n.areaStyle,d=n.axisTickStyle,o=n.xAxisNameStyle,b=e.colorTheme,s=e.color,h=e.areaStyle,u=e.axisTickStyle,p=e.xAxisNameStyle,m=e.colorBy,g={},v=F(fe);!(t=v()).done;){var y=t.value;if(!x()(e[y],a[y]))return g[y]=e[y],g}for(var S,w=F(D);!(S=w()).done;){var T=S.value;if(a[T]!==e[T])return!0}if("chart-map"===e.type||"chart-scatter-map"===e.type){if(a.mapChartType!==e.mapChartType)return g.mapChartType=e.mapChartType,g;if(a.mapName!==e.mapName)return g.mapName=e.mapName,g.mapURL=e.mapURL,g;for(var C,_=F(le);!(C=_()).done;){var L=C.value;if(a[L]!==e[L])return!0}for(var z,ce=F(de);!(z=ce()).done;){var be=z.value;if(a[be]!==e[be])return!0}}if("chart-sankey"===e.type)for(var se,he=F(oe);!(se=he()).done;){var ue=se.value;if(a[ue]!==e[ue])return!0}if(b!==i||m!==r||!x()(s,c))return!0;for(var pe,me=F(K);!(pe=me()).done;){var ge=pe.value;if(a[ge]!==e[ge])return!0}for(var ve,ye=F(X);!(ve=ye()).done;){var xe=ve.value;if(a[xe]!==e[xe])return!0}for(var Se,we=F(j);!(Se=we()).done;){var Te=Se.value;if(a[Te]!==e[Te])return!0}for(var Ce,_e=F(Q);!(Ce=_e()).done;){var Le=Ce.value;if(a[Le]!==e[Le])return!0}for(var Fe,ze=F(N);!(Fe=ze()).done;){var De,Ae=Fe.value;if(a[Ae]!==e[Ae])return g.grid=((De={})[Ae]=e[Ae],De),g}if("chart-pie"===e.type)for(var Me,Oe=F(O);!(Me=Oe()).done;){var Ne=Me.value;if(a[Ne]!==e[Ne])return"rose"===e.pieChartType?g.roseType=e.pieChartRoseType:g.roseType="",g}if(a.dataType!==e.dataType)return g.dataType=e.dataType,g;if(a.showTotolData!==e.showTotolData)return g.showTotolData=e.showTotolData,g;if(g.__notEChartsDiff={},"chart-percent"===e.type){for(var ke,Be=F(I);!(ke=Be()).done;){var Pe=ke.value;if(a[Pe]!==e[Pe])return!0}for(var Ve,Re=F(q);!(Ve=Re()).done;){var je=Ve.value;if(a[je]!==e[je])return!0}for(var We,Ee=F(H);!(We=Ee()).done;){var $e=We.value;if(a[$e]!==e[$e])return!0}for(var Ue,Ie=F(J);!(Ue=Ie()).done;){var qe=Ue.value;if(a[qe]!==e[qe])return!0}for(var He,Je=F(Y);!(He=Je()).done;){var Ye=He.value;if(a[Ye]!==e[Ye])return!0}for(var Xe,Ze=F(G);!(Xe=Ze()).done;){var Ke=Xe.value;if(a[Ke]!==e[Ke])return!0}for(var Qe,ea=F($);!(Qe=ea()).done;){var aa=Qe.value;if(a[aa]!==e[aa])return!0}for(var ta,na=F(U);!(ta=na()).done;){var ia=ta.value;if(a[ia]!==e[ia])return!0}if(a.progressStartAngle!==e.progressStartAngle)return!0;if(a.progressEndAngle!==e.progressEndAngle)return!0}if("chart-pie"===e.type||"chart-radar"===e.type||"chart-percent"===e.type){if(a.areaShow!==e.areaShow)return!0;if(!x()(h,l))return!0;for(var ca,ra=F(M);!(ca=ra()).done;){var la=ca.value;if(a[la]!==e[la])return!0}}if("chart-line"===e.type){for(var da,oa=F(ie);!(da=oa()).done;){var fa=da.value;if(a[fa]!==e[fa])return g.__notEChartsDiff[fa]=e[fa],g}for(var ba,sa=F(ne);!(ba=sa()).done;){var ha=ba.value;if(a[ha]!==e[ha])return!0}for(var ua=0,pa=["lineType","lineStepPosition","markLine","markPoint","cateAxis","lineChartLineDiff","columnBarMinHeight","columnItemStyle"];ua<pa.length;ua++){var ma=pa[ua];if(a[ma]!==e[ma])return!0}}for(var ga,va=F(A);!(ga=va()).done;){var ya=ga.value;if(a[ya]!==e[ya])return!0}for(var xa,Sa=F(Z);!(xa=Sa()).done;){var wa=xa.value;if(a[wa]!==e[wa])return!0}if("target-number"===e.type)for(var Ta,Ca=F(E);!(Ta=Ca()).done;){var _a=Ta.value;if(a[_a]!==e[_a])return!0}if("chart-scatter"===e.type||"chart-bubble"===e.type)for(var La,Fa=F(W);!(La=Fa()).done;){var za=La.value;if(a[za]!==e[za])return!0}if("chart-column"===e.type||"chart-waterfall"===e.type||"chart-line"===e.type||"chart-scatter"===e.type||"chart-bubble"===e.type){if(a.columnChartType!==e.columnChartType)return g.__notEChartsDiff.columnChartType=e.columnChartType,g;for(var Da,Aa=F(k);!(Da=Aa()).done;){var Ma=Da.value;if(a[Ma]!==e[Ma])return!0}for(var Oa,Na=F(B);!(Oa=Na()).done;){var ka=Oa.value;if(a[ka]!==e[ka])return g.__notEChartsDiff.valueAxis=Ge(f()(e,B)),g}for(var Ba,Pa=F(P);!(Ba=Pa()).done;){var Va=Ba.value;if(a[Va]!==e[Va])return g.__notEChartsDiff.valueAxis2=Ge(f()(e,P)),g}for(var Ra,ja=F(V);!(Ra=ja()).done;){var Wa=Ra.value;if(a[Wa]!==e[Wa])return!0}for(var Ea,$a=F(R);!(Ea=$a()).done;){var Ua=Ea.value;if(a[Ua]!==e[Ua])return!0}if(!x()(u,d))return g.axisTickStyle=u,g;if(!x()(p,o))return g.xAxisNameStyle=p,g}if("chart-funnel"===e.type)for(var Ia,qa=F(ee);!(Ia=qa()).done;){var Ha=Ia.value;if(a[Ha]!==e[Ha])return!0}if("chart-column"===e.type||"chart-waterfall"===e.type||"chart-line"===e.type&&e.columnLineMix){for(var Ja,Ya=F(ae);!(Ja=Ya()).done;){var Ga=Ja.value;if(a[Ga]!==e[Ga])return!0}for(var Xa,Za=F(te);!(Xa=Za()).done;){var Ka=Xa.value;if(a[Ka]!==e[Ka])return!0}}if("chart-word-cloud"===e.type)for(var Qa,et=F(re);!(Qa=et()).done;){var at=Qa.value;if(a[at]!==e[at])return!0}return Object.keys(g.__notEChartsDiff).length||delete g.__notEChartsDiff,!!Object.keys(g).length&&g}var ye={default:function(e){return e},centToYuan:function(e){return isNaN(e)||0===e||"-"===e?e:e/100},precision:function(e,a){var t=a||{},n=t.formatterToFixed;if(t.formatterClearZero,isNaN(e)||"-"===e)return e;var i=n>0?n:0;return(0,S.numberFormatter)(e,i)},pureNumber:function(e){return""+e},thousandSeparatorNumber:function(e,a){var t=a||{},n=t.formatterToFixed;if(t.formatterClearZero,isNaN(e)||0===e||"-"===e)return e;if(e.toString().indexOf(",")>-1)return e;var i=n>0?n:0;return(0,S.numberFormatter)(e,i)},numberAddPercentTag:function(e){return isNaN(e)||0===e||"-"===e?e:e+"%"},numberToPercent:function(e,a){if(0===e||"-"===e)return e;var t=a||{},n=t.formatterToFixed,i=t.formatterClearZero,c=Number(e);return isNaN(c)?0:(void 0!==n?c=(100*c).toFixed(n>0?n:0):c*=100,i&&(c=parseFloat(c)),c+"%")},numberToMillionBillion:function(e,a){if(isNaN(e)||0===e||"-"===e)return e;var t=(a||{}).formatterToFixed,n=t>0?t:2;return e>=1e8||e<=-1e8?s()(e/1e8,n)+"亿":e>=1e4||e<=-1e4?s()(e/1e4,n)+"万":e},secondToHMS:function(e){if(isNaN(e)||0===e||"-"===e)return e;var a=e,t=0,n=0;return a>60&&(t=Math.trunc(a/60),a%=60),t>60&&(n=Math.trunc(t/60),t%=60),n+" 时 "+t+"分 "+a+" 秒"},secondToDHMS:function(e){if(isNaN(e)||0===e||"-"===e)return e;var a=e,t=0,n=0,i=0;return a>60&&(t=Math.trunc(a/60),a%=60),t>60&&(n=Math.trunc(t/60),t%=60),n>24&&(i=Math.trunc(n/24),n%=24),i+"天 "+n+" 时 "+t+"分 "+a+" 秒"},byteToMGB:function(e){if(isNaN(e)||0===e||"-"===e)return e;var a=e,t=1024;return a<t?a+"B":a<Math.pow(t,2)?(a/t).toFixed(2)+"KB":a<Math.pow(t,3)?(a/Math.pow(t,2)).toFixed(2)+"MB":a<Math.pow(t,4)?(a/Math.pow(t,3)).toFixed(2)+"G":(a/Math.pow(t,4)).toFixed(2)+"T"},byteToMbps:function(e){if(isNaN(e)||0===e||"-"===e)return e;var a=8*e,t=1024;return a<t?a+"bps":a<Math.pow(t,2)?(a/t).toFixed(2)+"Kbps":a<Math.pow(t,3)?(a/Math.pow(t,2)).toFixed(2)+"Mbps":a<Math.pow(t,4)?(a/Math.pow(t,3)).toFixed(2)+"Gbps":(a/Math.pow(t,4)).toFixed(2)+"Tbps"}};function xe(e,a){var t=e.titleShow,n=e.titleText,c=e.titleAlignment,r=e.titleColor,l=e.titleBackgroundColor,d=e.titleFontSize,o=e.titleLink,f=e.titleTextStyle,b=f||{},s=b.color,h=b.fontSize,u=b.fontStyle,p=b.fontWeight,m=b.fontFamily,g=b.lineHeight,v=m||(f||{})["font-family"];return{show:null==t||t,text:n,left:c||"left",textStyle:i()({},f,{color:s||r||(0,_.x7)("color.text",a),fontSize:h||d||12,fontStyle:u,fontWeight:p,fontFamily:v,lineHeight:g}),backgroundColor:l||"none",link:o}}function Se(e,a,t,n){var c=e[a||"chartStyle"],r=c||{},l=r.color,d=r.fontSize,o=r.fontStyle,f=r.fontWeight,b=r.fontFamily,s=r.lineHeight,h=r.backgroundColor,u=b||(c||{})["font-family"],p=t||{},m=p.color,g=p.fontSize;return i()({},c,{color:l||m||(0,_.x7)("color.subText",n),fontSize:d||g||16,fontStyle:o,fontWeight:f,fontFamily:u,lineHeight:s,backgroundColor:h||"none"})}function we(e,a,t){var n=e[a||"xAxisLineStyle"]||{},i=n.color,c=n.width;return{color:i||(0,_.x7)("border.color",t),width:c}}function Te(e,a,t){var n=e[a||"lineStyle"]||{},i=n.color,c=n.width;return{color:i||(0,_.x7)("color.line",t),width:c}}function Ce(e){var a=e.centerHorizontal,t=e.centerVertical,n=e.radius,i=e.innerRadius,c={};return c.center=[a||"50%",t||"50%"],c.radius=n||"70%",i&&(c.radius=[i,c.radius]),c}function _e(e,a){var t=e.gridLeft,n=e.gridTop,i=e.gridBottom,c=e.gridRight,r=a||{},l=r.notNeedDefaultVal,d=r.defaultGridLeft,o=r.defaultGridTop,f=r.defaultGridBottom,b=r.defaultGridRight,s={left:Le(t,null!=d?d:"7%"),right:Le(c,null!=b?b:"7%"),top:Le(n,null!=o?o:"60"),bottom:Le(i,null!=f?f:"60"),containLabel:!0};return l&&!t&&0!==t&&delete s.left,l&&!c&&0!==c&&delete s.right,l&&!n&&0!==n&&delete s.top,l&&!i&&0!==i&&delete s.bottom,s}function Le(e,a){return 0===e||"0"===e?e:e||a}var Fe={SUM:function(e){for(var a=0,t=0,n=e.length;t<n;t++)a+=e[t];return a},AVG:function(e){return s()(Fe.SUM(e)/e.length,2)},MAX:function(e){return Math.max.apply(Math,e)},MIN:function(e){return Math.min.apply(Math,e)}};function ze(e,a,t){var n=e.type,c=e.legendType,r=e.legendShow,l=e.legendColor,d=e.legendFontSize,o=e.legendAlign,f=e.legendOrient,b=e.legendPosition,s=e.legendWidth,h=e.legendHeight,u=e.legendTop,p=e.legendRight,m=e.legendBottom,g=e.legendLeft,v=e.legendTextStyle,y=e.legendDataShow,x=e.legendDataFormat,S=e.groupField,w=v||{},T=w.color,C=w.fontSize,L=w.fontStyle,F=w.fontWeight,z=w.fontFamily,D=w.lineHeight,A=z||(v||{})["font-family"],M=e.dimensions||[],O=e.measures||[],N=!1;"chart-column"!==n&&"chart-line"!==n&&"chart-radar"!==n&&"chart-scatter"!==n&&"chart-bubble"!==n||(N=!0);var k={left:"auto",right:"auto",top:"auto",bottom:"auto"};return"left"===b?(k.left=g||"left",k.top="center"):"right"===b?(k.right=p||"right",k.top="center"):"bottom"===b?(k.bottom=m||"bottom",k.left="center"):"leftTop"===b?(k.left=g||"left",k.top=u||"top"):"rightTop"===b?(k.right=p||"right",k.top=u||"top"):"leftBottom"===b?(k.left=g||"left",k.bottom=m||"bottom"):"rightBottom"===b?(k.right=p||"right",k.bottom=m||"bottom"):(k.top=u||"top",k.left="center"),i()({type:null!=c?c:"plain",show:null==r||r,textStyle:{color:T||l||(0,_.x7)("color.text",t),fontSize:C||d||12,fontStyle:L,fontWeight:F,fontFamily:A,lineHeight:D},align:o||"auto",orient:f||"horizontal",width:"horizontal"===f?s:"auto",height:"vertical"===f?h:"auto",formatter:function(e){var t=e;if("chart-scatter"===n||"chart-bubble"===n){var i=M[0]||{},c=i.label||i.as,r=O[0]||{},l=r.label||r.as;t=O&&1===O.length&&S?e+"("+c+"/"+l+")":c+"/"+e}var d=(a||[]).find((function(a){return a.name===e}));return d&&y?N?t+" "+Fe[x||"AVG"](d.data||d.value):t+" "+(d.value||d.data):t}},k)}function De(e,a){var t=e.progressShow;return{show:null==t||t,width:e.progressWidth||20,itemStyle:{color:e.progressColor||(0,_.x7)("color.brand",a)}}}function Ae(e,a){var t=e.dataTitleShow,n=e.dataTitleOffsetX,c=e.dataTitleOffsetY,r=e.dataTitleColor,l=e.dataTitleFontSize,d=e.dataTitleFontWeight,o=i()({color:r,fontSize:l,fontWeight:d},Se(e,"dataTitleStyle",{fontSize:12,color:r||(0,_.x7)("color.text",a)},a)||{});return i()({show:null==t||t,offsetCenter:[n||0,c||0]},o)}function Me(e,a,t){var n=e.dataDetailShow,c=e.dataDetailOffsetX,r=e.dataDetailOffsetY,l=e.dataDetailColor,d=e.dataDetailFontSize,o=e.dataDetailFontWeight,f=i()({color:l||(0,_.x7)("color.text",t),fontSize:d,fontWeight:o},Se(e,"dataDetailStyle",{fontSize:28},t)||{}),b=i()({show:null==n||n,offsetCenter:[c||0,r||0]},f);if(null!=a&&a.formatter){var s="totalToPercent"===a.formatter?"precision":"default",h=ye[a.formatter]||ye[s];b.formatter=function(e){return h(e,a)}}return b}function Oe(e,a){var t=e.axisLineShow,n=e.axisLineColor,i=e.progressWidth;return{show:null==t||t,lineStyle:{color:[[1,n||(0,_.x7)("color.fill",a)]],width:i}}}function Ne(e,a){var t=e.axisTickShow,n=e.axisTickSplitNumber,i=e.axisTickLength,c=e.axisTickDistance,r=e.axisTickColor,l=e.axisTickWidth;return{show:null!=t&&t,splitNumber:n||5,length:i||