(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-healthCheck-healthCheck"],{"00c5":function(t,e,a){var n=a("4f0a");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("4f06").default;r("344bab92",n,!0,{sourceMap:!1,shadowMode:!1})},"01b8":function(t,e,a){"use strict";a.r(e);var n=a("3843"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},"0538":function(t,e,a){"use strict";var n=a("1c0b"),r=a("861d"),i=[].slice,o={},s=function(t,e,a){if(!(e in o)){for(var n=[],r=0;r3)){if(d)return!0;if(f)return f<603;var t,e,a,n,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:a=3;break;case 68:case 71:a=4;break;default:a=2}for(n=0;n<47;n++)p.push({k:e+n,v:a})}for(p.sort((function(t,e){return e.v-t.v})),n=0;nString(a)?1:-1}};n({target:"Array",proto:!0,forced:b},{sort:function(t){void 0!==t&&r(t);var e=i(this);if(y)return void 0===t?g.call(e):g.call(e,t);var a,n,s=[],c=o(e.length);for(n=0;nt.length)&&(e=t.length);for(var a=0,n=new Array(e);a0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,a=new Array(e>1?e-1:0),n=1;n=1&&n<=9&&(n="0"+n),r>=0&&r<=9&&(r="0"+r);var i=a+e+n+e+r;return i}function d(t,e){var a=!1;return function(){var n=arguments,r=this;clearTimeout(a),a&&clearTimeout(a),a=setTimeout((function(){a=!1,t.apply(r,n)}),e)}}var h={name:"qiun-data-charts",mixins:[t.mixinDatacom],props:{type:{type:String,default:null},canvasId:{type:String,default:"uchartsid"},canvas2d:{type:Boolean,default:!1},background:{type:String,default:"none"},animation:{type:Boolean,default:!0},chartData:{type:Object,default:function(){return{categories:[],series:[]}}},opts:{type:Object,default:function(){return{}}},eopts:{type:Object,default:function(){return{}}},loadingType:{type:Number,default:2},errorShow:{type:Boolean,default:!0},errorReload:{type:Boolean,default:!0},errorMessage:{type:String,default:null},inScrollView:{type:Boolean,default:!1},reshow:{type:Boolean,default:!1},reload:{type:Boolean,default:!1},disableScroll:{type:Boolean,default:!1},ontap:{type:Boolean,default:!0},ontouch:{type:Boolean,default:!1},onmouse:{type:Boolean,default:!0},onmovetip:{type:Boolean,default:!1},echartsH5:{type:Boolean,default:!1},echartsApp:{type:Boolean,default:!1},tooltipShow:{type:Boolean,default:!0},tooltipFormat:{type:String,default:void 0},tooltipCustom:{type:Object,default:void 0},startDate:{type:String,default:void 0},endDate:{type:String,default:void 0},textEnum:{type:Array,default:function(){return[]}},groupEnum:{type:Array,default:function(){return[]}},pageScrollTop:{type:Number,default:0},directory:{type:String,default:"/"},tapLegend:{type:Boolean,default:!0}},data:function(){return{cid:"uchartsid",inWx:!1,inAli:!1,inTt:!1,inBd:!1,inH5:!1,inApp:!1,inWin:!1,type2d:!0,disScroll:!1,openmouse:!1,pixel:1,cWidth:375,cHeight:250,showchart:!1,echarts:!1,echartsResize:!1,uchartsOpts:{},echartsOpts:{},drawData:{},lastDrawTime:null}},created:function(){if(this.cid=this.canvasId,"uchartsid"==this.canvasId||""==this.canvasId){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length,a="",n=0;n<32;n++)a+=t.charAt(Math.floor(Math.random()*e));this.cid=a}var r=uni.getSystemInfoSync();"windows"===r.platform&&(this.inWin=!0),this.type2d=!1,this.disScroll=this.disableScroll},mounted:function(){var t=this;this.inH5=!0,!0===this.inWin&&(this.openmouse=this.onmouse),!0===this.echartsH5&&(this.echarts=!0),this.$nextTick((function(){t.beforeInit()}));var e=this.inH5?500:200,a=this;uni.onWindowResize(d((function(t){if(1!=a.mixinDatacomLoading){var e=a.mixinDatacomErrorMessage;null!==e&&"null"!==e&&""!==e||(a.echarts?a.echartsResize=!a.echartsResize:a.resizeHandler())}}),e))},destroyed:function(){!0===this.echarts?(delete s.default.option[this.cid],delete s.default.instance[this.cid]):(delete o.default.option[this.cid],delete o.default.instance[this.cid]),uni.offWindowResize((function(){}))},watch:{chartDataProps:{handler:function(t,e){"object"===(0,i.default)(t)?JSON.stringify(t)!==JSON.stringify(e)&&(t.series&&t.series.length>0?this.beforeInit():(this.mixinDatacomLoading=!0,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage=null)):(this.mixinDatacomLoading=!1,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage="参数错误:chartData数据类型错误")},immediate:!1,deep:!0},localdata:{handler:function(t,e){JSON.stringify(t)!==JSON.stringify(e)&&(t.length>0?this.beforeInit():(this.mixinDatacomLoading=!0,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage=null))},immediate:!1,deep:!0},optsProps:{handler:function(t,e){"object"===(0,i.default)(t)?JSON.stringify(t)!==JSON.stringify(e)&&!1===this.echarts&&this.checkData(this.drawData):(this.mixinDatacomLoading=!1,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage="参数错误:opts数据类型错误")},immediate:!1,deep:!0},eoptsProps:{handler:function(t,e){"object"===(0,i.default)(t)?JSON.stringify(t)!==JSON.stringify(e)&&!0===this.echarts&&this.checkData(this.drawData):(this.mixinDatacomLoading=!1,this.showchart=!1,this.mixinDatacomErrorMessage="参数错误:eopts数据类型错误")},immediate:!1,deep:!0},reshow:function(t,e){var a=this;!0===t&&!1===this.mixinDatacomLoading&&setTimeout((function(){a.mixinDatacomErrorMessage=null,a.echartsResize=!a.echartsResize,a.checkData(a.drawData)}),200)},reload:function(t,e){!0===t&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,this.reloading())},mixinDatacomErrorMessage:function(t,e){t&&(this.emitMsg({name:"error",params:{type:"error",errorShow:this.errorShow,msg:t,id:this.cid}}),this.errorShow&&n.log("[秋云图表组件]"+t))},errorMessage:function(t,e){t&&this.errorShow&&null!==t&&"null"!==t&&""!==t?(this.showchart=!1,this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=t):(this.showchart=!1,this.mixinDatacomErrorMessage=null,this.reloading())}},computed:{optsProps:function(){return JSON.parse(JSON.stringify(this.opts))},eoptsProps:function(){return JSON.parse(JSON.stringify(this.eopts))},chartDataProps:function(){return JSON.parse(JSON.stringify(this.chartData))}},methods:{beforeInit:function(){this.mixinDatacomErrorMessage=null,"object"===(0,i.default)(this.chartData)&&null!=this.chartData&&void 0!==this.chartData.series&&this.chartData.series.length>0?(this.drawData=l({},this.chartData),this.mixinDatacomLoading=!1,this.showchart=!0,this.checkData(this.chartData)):this.localdata.length>0?(this.mixinDatacomLoading=!1,this.showchart=!0,this.localdataInit(this.localdata)):""!==this.collection?(this.mixinDatacomLoading=!1,this.getCloudData()):this.mixinDatacomLoading=!0},localdataInit:function(t){if(this.groupEnum.length>0)for(var e=0;e0)for(var n=0;n0)d=this.chartData.categories;else if(this.startDate&&this.endDate){var f=new Date(this.startDate),p=new Date(this.endDate);while(f<=p)d.push(u(f)),f=f.setDate(f.getDate()+1),f=new Date(f)}else{var g={};t.map((function(t,e){void 0==t.text||g[t.text]||(d.push(t.text),g[t.text]=!0)}))}c.categories=d}var x={};if(t.map((function(t,e){void 0==t.group||x[t.group]||(h.push({name:t.group,data:[]}),x[t.group]=!0)})),0==h.length)if(h=[{name:"默认分组",data:[]}],!0===i)for(var m=0;m0)for(var k=0;k0&&(this.mixinDatacomErrorMessage=null,!0===this.echarts?(s.default.option[a].chartData=n,this.$nextTick((function(){e.init()}))):(o.default.option[a].categories=n.categories,o.default.option[a].series=n.series,this.$nextTick((function(){e.init()}))))},resizeHandler:function(){var t=this,e=Date.now(),a=this.lastDrawTime?this.lastDrawTime:e-3e3,n=e-a;if(!(n<1e3))uni.createSelectorQuery().in(this).select("#ChartBoxId"+this.cid).boundingClientRect((function(e){t.showchart=!0,e.width>0&&e.height>0&&(e.width===t.cWidth&&e.height===t.cHeight||t.checkData(t.drawData))})).exec()},getCloudData:function(){var t=this;1!=this.mixinDatacomLoading&&(this.mixinDatacomLoading=!0,this.mixinDatacomGet().then((function(e){t.mixinDatacomResData=e.result.data,t.localdataInit(t.mixinDatacomResData)})).catch((function(e){t.mixinDatacomLoading=!1,t.showchart=!1,t.mixinDatacomErrorMessage="请求错误:"+e})))},onMixinDatacomPropsChange:function(t,e){1==t&&""!==this.collection&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,this._clearChart(),this.getCloudData())},_clearChart:function(){var t=this.cid;if(!0!==this.echrts){var e=uni.createCanvasContext(t,this);e.clearRect(0,0,this.cWidth,this.cHeight),e.draw()}},init:function(){var t=this,e=this.cid;uni.createSelectorQuery().in(this).select("#ChartBoxId"+e).boundingClientRect((function(a){a.width>0&&a.height>0?(t.mixinDatacomLoading=!1,t.showchart=!0,t.lastDrawTime=Date.now(),t.cWidth=a.width,t.cHeight=a.height,!0!==t.echarts&&(o.default.option[e].background="none"==t.background?"#FFFFFF":t.background,o.default.option[e].canvas2d=t.type2d,o.default.option[e].pixelRatio=t.pixel,o.default.option[e].animation=t.animation,o.default.option[e].width=a.width*t.pixel,o.default.option[e].height=a.height*t.pixel,o.default.option[e].ontap=t.ontap,o.default.option[e].ontouch=t.ontouch,o.default.option[e].onmouse=t.openmouse,o.default.option[e].onmovetip=t.onmovetip,o.default.option[e].tooltipShow=t.tooltipShow,o.default.option[e].tooltipFormat=t.tooltipFormat,o.default.option[e].tooltipCustom=t.tooltipCustom,o.default.option[e].inScrollView=t.inScrollView,o.default.option[e].lastDrawTime=t.lastDrawTime,o.default.option[e].tapLegend=t.tapLegend),t.inH5||t.inApp?1==t.echarts?(s.default.option[e].ontap=t.ontap,s.default.option[e].onmouse=t.openmouse,s.default.option[e].tooltipShow=t.tooltipShow,s.default.option[e].tooltipFormat=t.tooltipFormat,s.default.option[e].tooltipCustom=t.tooltipCustom,s.default.option[e].lastDrawTime=t.lastDrawTime,t.echartsOpts=l({},s.default.option[e])):(o.default.option[e].rotateLock=o.default.option[e].rotate,t.uchartsOpts=l({},o.default.option[e])):(o.default.option[e]=c(o.default.option[e],o.default.formatter),t.mixinDatacomErrorMessage=null,t.mixinDatacomLoading=!1,t.showchart=!0,t.$nextTick((function(){if(!0===t.type2d){var n=uni.createSelectorQuery().in(t);n.select("#"+e).fields({node:!0,size:!0}).exec((function(n){if(n[0]){var r=n[0].node,i=r.getContext("2d");o.default.option[e].context=i,r.width=a.width*t.pixel,r.height=a.height*t.pixel,r._width=a.width*t.pixel,r._height=a.height*t.pixel,o.default.option[e].rotateLock=o.default.option[e].rotate,o.default.instance[e]&&o.default.option[e]&&!0===o.default.option[e].update?t._updataUChart(e):setTimeout((function(){o.default.option[e].context.restore(),o.default.option[e].context.save(),t._newChart(e)}),100)}else t.showchart=!1,t.mixinDatacomErrorMessage="参数错误:开启2d模式后,未获取到dom节点,canvas-id:"+e}))}else t.inAli&&(o.default.option[e].rotateLock=o.default.option[e].rotate),o.default.option[e].context=uni.createCanvasContext(e,t),o.default.instance[e]&&o.default.option[e]&&!0===o.default.option[e].update?t._updataUChart(e):setTimeout((function(){o.default.option[e].context.restore(),o.default.option[e].context.save(),t._newChart(e)}),100)})))):(t.mixinDatacomLoading=!1,t.showchart=!1,1==t.reshow&&(t.mixinDatacomErrorMessage="布局错误:未获取到父元素宽高尺寸!canvas-id:"+e))})).exec()},saveImage:function(){var t=this;uni.canvasToTempFilePath({canvasId:this.cid,success:function(e){var a=document.createElement("a");a.href=e.tempFilePath,a.download=t.cid,a.target="_blank",a.click()}},this)},_error:function(t){this.mixinDatacomErrorMessage=t.detail.errMsg},emitMsg:function(t){this.$emit(t.name,t.params)},getRenderType:function(){!0===this.echarts&&!1===this.mixinDatacomLoading&&this.beforeInit()},toJSON:function(){return this}}};e.default=h}).call(this,a("a9ff")["default"],a("5a52")["default"])},"64b9":function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"u-collapse"},[t._t("default")],2)},i=[]},"64e5":function(t,e,a){"use strict";var n=a("d039"),r=a("0ccb").start,i=Math.abs,o=Date.prototype,s=o.getTime,l=o.toISOString;t.exports=n((function(){return"0385-07-25T07:06:39.999Z"!=l.call(new Date(-50000000000001))}))||!n((function(){l.call(new Date(NaN))}))?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),a=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+r(i(e),n?6:4,0)+"-"+r(t.getUTCMonth()+1,2,0)+"-"+r(t.getUTCDate(),2,0)+"T"+r(t.getUTCHours(),2,0)+":"+r(t.getUTCMinutes(),2,0)+":"+r(t.getUTCSeconds(),2,0)+"."+r(a,3,0)+"Z"}:l},6566:function(t,e,a){"use strict";var n=a("9bf2").f,r=a("7c73"),i=a("e2cc"),o=a("0366"),s=a("19aa"),l=a("2266"),c=a("7dd0"),u=a("2626"),d=a("83ab"),h=a("f183").fastKey,f=a("69f3"),p=f.set,g=f.getterFor;t.exports={getConstructor:function(t,e,a,c){var u=t((function(t,n){s(t,u,e),p(t,{type:e,index:r(null),first:void 0,last:void 0,size:0}),d||(t.size=0),void 0!=n&&l(n,t[c],{that:t,AS_ENTRIES:a})})),f=g(e),x=function(t,e,a){var n,r,i=f(t),o=m(t,e);return o?o.value=a:(i.last=o={index:r=h(e,!0),key:e,value:a,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=o),n&&(n.next=o),d?i.size++:t.size++,"F"!==r&&(i.index[r]=o)),t},m=function(t,e){var a,n=f(t),r=h(e);if("F"!==r)return n.index[r];for(a=n.first;a;a=a.next)if(a.key==e)return a};return i(u.prototype,{clear:function(){var t=this,e=f(t),a=e.index,n=e.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete a[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:t.size=0},delete:function(t){var e=this,a=f(e),n=m(e,t);if(n){var r=n.next,i=n.previous;delete a.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),a.first==n&&(a.first=r),a.last==n&&(a.last=i),d?a.size--:e.size--}return!!n},forEach:function(t){var e,a=f(this),n=o(t,arguments.length>1?arguments[1]:void 0,3);while(e=e?e.next:a.first){n(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!m(this,t)}}),i(u.prototype,a?{get:function(t){var e=m(this,t);return e&&e.value},set:function(t,e){return x(this,0===t?0:t,e)}}:{add:function(t){return x(this,t=0===t?0:t,t)}}),d&&n(u.prototype,"size",{get:function(){return f(this).size}}),u},setStrong:function(t,e,a){var n=e+" Iterator",r=g(e),i=g(n);c(t,e,(function(t,e){p(this,{type:n,target:t,state:r(t),kind:e,last:void 0})}),(function(){var t=i(this),e=t.kind,a=t.last;while(a&&a.removed)a=a.previous;return t.target&&(t.last=a=a?a.next:t.state.first)?"keys"==e?{value:a.key,done:!1}:"values"==e?{value:a.value,done:!1}:{value:[a.key,a.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),a?"entries":"values",!a,!0),u(e)}}},6613:function(t,e,a){a("fb6a"),a("d3b7"),a("a630"),a("3ca3");var n=a("5a43");function r(t,e){if(t){if("string"===typeof t)return n(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(t,e):void 0}}t.exports=r},6863:function(t,e,a){"use strict";var n=a("c5af"),r=a.n(n);r.a},"68bf0":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("4160"),a("159b"),a("a15b");var n={name:"u-collapse",props:{accordion:{type:Boolean,default:!0},headStyle:{type:Object,default:function(){return{}}},bodyStyle:{type:Object,default:function(){return{}}},itemStyle:{type:Object,default:function(){return{}}},arrow:{type:Boolean,default:!0},arrowColor:{type:String,default:"#909399"},hoverClass:{type:String,default:"u-hover-class"}},created:function(){this.childrens=[]},data:function(){return{}},methods:{init:function(){this.childrens.forEach((function(t,e){t.init()}))},onChange:function(){var t=[];this.childrens.forEach((function(e,a){e.isShow&&t.push(e.nameSync)})),this.accordion&&(t=t.join("")),this.$emit("change",t)}}};e.default=n},"6a05":function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,'.chartsview[data-v-28d798ac]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.charts-font[data-v-28d798ac]{font-size:14px;color:#ccc;margin-top:10px}.charts-error[data-v-28d798ac]{width:128px;height:128px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAUz0lEQVR4Xu1de3Bc1X3+zmp3jYVWfkPAgCWwY8zLEglNQCSW0yT9o2SQaDKdNulUykwfM+k09p+J3ImYIPJXi9yZzDSZZiwyaZuZBCwnNG1DMogEmUAAy7xs/MAyNhCMjWWtsK1deU/n23OvtLu6j3Pv3t29d71nxjOSde455/5+3/m9z7kCjRY4BR7eK7fkcmhrasLT37hbTAY+QYADigDHagwFYGhc7gZwHMAUgG4hMPzNe8RoWInTAECAnHl4r+yREt0DXWIbhx3cJ5fHP8TYjntFR4DTBDqUIwBmMrJDCtyPHDoQw0Q8jkeXinCLtECp43Gwh56R22IxTBbu+KFxOTbQJbo9DlW17rYASGdlNySeKl2JADpbkmKiait0mWhoXHZkmzE52CkocmvavvOsbMvl8MhAl+jlQrg2CQzu6BI9NV2Yw+T2AJiVo+DuL2kSeLQ1KfrC8kLcYbkYBv/pbjEWhjUNjUvSpk9KSAicm2tGXxjAaUcbewBkJAm6xeLBp1PJ2os06ttcDl8H0CEEaGnvGegSg2EAQZTW4B0AEntSS2ov0mhgJc5jmwT6IDEWi2E0zNZ2WEFhC4CZjCRxH7GwAfpbkmIkLC9EFQBg20BXeOySsNBGZx2OXkB6Vg5CgAbMZgD7BTDSkhTDOgM3+kSDAr7iANNz8n4hQRdxojUu9kTjVRurtKKAJwBIKZfPZPOuYWFgY6wlgV4hau+GNVjsnQKeAJDOSIp/Wt6lbSKeQG8jSOSdAbV+wisA7FxDSGAqBmwNS5DIiGIucyNwKiGedutTz3/3BgCb4JBJoGqDIJ2VW4REmxRog0S3lGgT/NlfY3RzCgJjQmJSCkxeDuDwBgCb8HAhvQkCIdCbSgQfmSPDmWGDzHsm1UqwjBEUAMbqERCeAEBGz2RknwR2uW0yAZQdL6DR+WEW90syXLmjtW8So0Jg9MoE9tSD4esZANUAAd1M5NAjGOULaaOkAzCKGEaj7Ar7AoBHEGxrSYqdOnxMZ+W3ZA59ZehxnWkC7yMlJkUMIy1x7IyaVPANAAMEHTlgTACO1rYERlqTot+J8nbp58C5VcEBDftnOEpAKAsAgYPAPgNZQbYFP3QeCAybJ/Bg2CVC2QDwCoJUAtudiJKuExCQLoZbPKirAoOHovuIThVByuXii2jE/C9I2TaXBYsfmThyahMtCWy1A4ERbj7rvvRI9aCa3F7pINm3n5XdXgtjFgHAYCQrW4v8bBo6MYFep5cwmEefuSwQpDNSRoq9+osdrqRaGBqXMhfDVi8gWASAdEbuswuyGCKNSLatBygXBHUqAQohMmHESAKrqzSro4TIS2yOq10dVQQAuyKQUoC7BXnIxHQWwwL4ay/qIM/8DHaFJuijv7M99QzaNmAx6hzQFsvhKSmxvakJo7oHUooA4MUA0wHBTDYfQnVUB6bFnLc1JHqiFgPwxPnSzhKjLUn0B+UpsDoqFkOfLvO5HN8AMN5lOJUU2+2IMD0ne0QOtCcq0k7OANe1VGToag7qaBRXeiFFAJjOyBENsV20Jqcgj2FQHgvyJWYvAQfPAJuvAv7198ADm4DMHJBKAmuag5ypemPpGNiVWk2pDcCDDDQCPTU7EOgmjrxMRgA8dgBYmwJOXwBuWgH87m3gz26OLgDy6q9G9RSLvIAymFZUGsaCjJzE7qB1+vvngXRGQebG5QB/P30eaF2iQBHllk8wxdDfGq/eYVLLQJBfEOQNOpk3/Bg86hbA8iAZwt2/a78asX8zsKRJ/fzYQeDttFIHUbcJqi0JnM4FaOX9g2Sw7lgHTgPTs0DHRxTjT5wDtqzTfTr8/aoJArfTwX055P1519q6apGV4v8/XlU6nzv/vo8CvzwK3L0W2LS6Wquo/DzVAoFrMiivyzVSvpUnycIMVAUU///2kgIC9b+pDqq5jirMVXEX0RUAfMkwgoDrMoFQBUbUcoqxVFJsrdQCtAAQZhBUijChGlfiwdSSypx81gaAAQLLA6OhIlaNF2MGqriMm1cFqJoEtlai0lobAIzqZbPYF7RrV2N+BT79L99c8Eh+dzI474RGYSqB9qDyBuaLawMgnZE8Exjau24C56TPAZ8+vsD0594GPrHW50DWjwVuD2gBwDgm/q1AX6VOB/v5YeDWNerlXnsf+MKGYF/ULQvrdTZXAFQioeN1kVHqTxuAgSo2xiWCdk+DVgWuAEjPyt31XqARJYAZa92ZSqq7CMttjgCoh1r9cgkU1ueDuq7PEQDTs/JY0Nm8sBI0gusKxCCMZDIogsyqzJIDiA3YAqCx+yvDs4BHLVsKBFoPEPDLNYbToUCZUsASAFHY/SfTCxWtq5qBK4ziEB2a1VmfsqTAIgBUupLXL/Evshj0NNCaBM7NAr89sTDSp64HOj/id+ToP1eOR7AYAD4qg6tBwufeARhabV8BfPJaFWxZEgeSMWDTmstaApD8vuMCRQAI47Gs37wFrG4GrksBR882mG212VhW3rpEtPvZiL6OhvmZyOszFPm7D6qqX+76L6xfGIH/l7mkVMGNKy773Z8njIyh1081cfHBkJAEfgqZv2kV8Cmj4HP/H4ADZ1RBqNmYbfvEtV7hVX/9/X7HYR4AYUr6PPmmYjSZ/7kblRT47yOK8Uyu8DxA6xXqHADVw2XsARQhuSWBFV7rBeYBoHsyuNJ7582zwBNHgNVLgb+8TTH/8YOq/o+7ffPVCwynpAiC+W+cUfOcnwOuvlIdO4ti86MG5gGQdrkFtFoE2fUykJ4F+u4AknHgx6+pnf/ZduCW1QD9f3oDPA/A5tcFpA3x8ingxXcVuPJ61Dgt27MRuKG1Wm8c6DyevYE8AMJk/f/nq8BNK5VeN10/k8mvnwZ+ZRw1pfjnYdCOq1VZuJd2/Bzwv0cXGL9hpdr1PGNIgMUF8Oe3AquWehk1FH0nUknR6WUleQCENe37vZeUFOi/AyhUDbQL/JwE5q4ngI4YNxBxl7NiZ5kBoCePAb9/R4mBq64EejcGX9DhhTl++sYTaPdya7sCgPoySM1LvujzM8Dzd3cuMNy08ikZeBqYqoE7njv1t28p3c3f/+hapSLs2jszAI1Luo40JMn4j64s7v3PzympQNeSgLtnLfDxiHkYXkvGFAA0r2Yjsf3sPF0km/r/H+9aEP8P8ORPEhh5ecErIPNpGLJxF7/3oWLcfesV80rboQ+UyDf7f3HTYuPx+XeAX00Ct68BPn0D8O8TasyvbgZakrpvEIp+nuyAPACmM/KsW7k3b+N4/ABA5lSq8cIH0/o39f9f3KoYQYab0uDnR4BjZ4Gv3LYAgB+9qiQB+xe2X0+q4kw22hL8V9roTXz3BTXP1z6mVAJzDfxHqUIDNELN02f9hI7/T6v7zSklbml8MfFCXzzoRp1Pv57n/Wj5M/RrJnn2/QG4rlVJIPM4+DfvWVjB9/YpFfFJIzBEZv7iMHAirUT+59qBO2zcu7zuf1ftfrOKtxAUVElBF3cGTTtzPBaNtiaFhRy0nlHoGIDc/a+fUlez0Dq/ZY26kiXoRoCR0G5WvRkoMnf0/xwFXnwPiAFINgE3LAOmLwKnjPEoKejfW7Xj0+q0Mef92seLVQNLvF95H/iTm4CNJfZC0O8e5HheAkJCNwBkHsv++zuDXKq/sSgd/uu1xf47gfnWOR5mVeNe1Qx8adOClW8l+n8woQzDL9682Cik7fDTg8D1KaD3Zn9rrdRTlHA0mmmvLJJOHopERFg8AK+EIgiomo6dAy7OKdXwNx3AiRngRy8DOQl0XgN8Zp19tJDMJZMLRX/pOh7eqwhMNRCmZtpkVreiePEECADLj0SH6WWd1kIgPP6G2sVty4Av36pE/+43gDMX1K6+b8NiEJhGHqXEV263Bwm9AY731Q6gJVF7qnDnT7ynbCS6zDx8QpXJgNi8JPBwmljouoC1f3X7FdDHH30DmMsBG1YosU+m0Vg8exG4pkV5B2begCFg5htIMCf7gDOadsCXbgGusbEjqkkbMp+iv7QR5POG+eUGADL/rWmgSQBzEui4CvjT9cBUBnjikPqbCYJzF4EfGBdNMW5g5xmYBKY3cOgMsGEVcClXTVY7z+WkArxUCIkoFIA6keLXx4DXTiuDb2ubihdkcsCnDZ+fDPzZIRX+pYvJRBPF6GfbVPRQt124FE4AULJZBOe0YwFUAZG9mv2Fd4G9J4tdOEb0fnNCVQxtuQHoug4gCH5yADgxrdjtZPRZeQqvnFISgEmiMDV6ZjbueP0DgBm9PYes9Tizhr84mr98Ol9Qwps66OszZOyF+WS2GSQKiw2gCcD6BkBMABT9DNLY6XFKgicnVWCIuQR6BMwb0Ojz0hhipg3x5dsilR6ubwA0xwGCgDvaLsJHJtPPP/yBKvQg862SQG5gYByArZI5ELc1+Pi7PgCmM5JfuArNRZBuL0uGMkdg5dsXPktwcPfS4PMq9s1xzDAxS9KZlYxQ0wdAlOIAFOPU5Wxm1s6KKfTzqbvLYT7HNWMANCZZixihVp8AYHSPlrxdWpcMMiN8/Pmua1QW0E+LajbQeNf6A4BZ1MGw5z98bDFLybAnDqvYPptOkMcJGBGuB+BraReFRCYU/OPXgVMfWjOW+p4Gn1nu5RbedZMIHOe7L6pevJa+EqlvtzWU9XdPoeCQ1AM6vbCp+0t3P3c96wJZzMHG6l4WdJR7VuCR54ELc6q4xEu0sCymBfiwp2ygbj1AgOvzPBQjcU8dL9bpNPQops1dT7sgCGYxScSxGURa2+rubXh+mWo84KkeICu7IcFbQEPb6Pqx6mdpXBV9HvlgoRiktLS7nJcw9X4ipuIM9CJWXqHSxVFqXkrDRZgOhdgROZsDvv8ScMnMWgiV9uWOXxfACR6qErp8BJpVY7KF2UW3UrUwgEQC51qTQrtiU1UFz8pJIRDqj67MzAGPva5EPsO7zPkHwXyO98NX1IeomE4myFgnQHAxysiQMkPBLIZlsWoEmrYLyHfxdC6g1i/PxfJkD9O/bOWIf/OaGep7Nur8eEwBoNCFpHQw6wb/9s7yDcwq0FDbBVwAQAQ8gULCUVSPn1y4J4BlX+uWqfIv85iXFaHN4g7uaJ4INr84wtLzrAReeFs99Ve3Fx8O/ZfnVd3hXdeqbxOFuXnxAOYBENaLoZwITWnA3ct6APN0L/tTbFOEXxFXP3OnT11UI5HxhY2HPnjYhCqFpeY8+8BWGGnk89/fB9AOYWPRCXMLYW1eDMB5APCHqBaGEAisDWCI+PDZ4ttDSplEYKxfody79uUKKOapI55J4Glg2gIsJqF6IYAIMvZh/2MGQG5bA3ymLXgI0IATAj3ml0G8VmxLieOtS4SnlYXufoByydoUUwdHeUhkdk6dLqbzwCNndO8KG5nO8DGZblYHs2bwJweLgWQGmFgbyDgBG08OXx+AB1K0IAv/3ctHPP1cExO6G0LKBYDu82Q+q4a52ynSWTlUGEFkKpht+ZJiu4L/T8/g8+1Ac6JY/ejObdcvlRSWRWc8vSUlRt3S9mXdEKJzRrDcFwzL86ynZ7qYzW+tAA3Knx5Qhaa0GcotrHQ706f16T6J0ZYk+r3cE1SEuHRGTgDYHBZGVWIdhcz3WhlcuJ7CdDGDUn/crozJcprbDtYCAeDpY5PFAIiYO+iV2Nz15udcyk0Xc+7CqiPeKPLAxvJAoPO5WOOr7KMugTttEBQBoJ7VQCHzGS9wqiX0AiyCwKxBqBYIjPA9v9LuJK0n4gn0ul0XE5m7gr0wpbSveYqmnDF0nw3qWhm3gI4OCHQkyiIA6NwXoEuMsPSjH8/IX2ausiuiIcjawXJtAXOVgYBAYjKVRKedYWj3vYDQJ4cqy8rwjO4GAq502uWGdyfjsvHFkPDw2n4lAoOphHjQaalOIHACkSUAqF/SWUy6BR6iQLt6WaMERlqTot8rCBheTiTQYWcM2h539BKCrBcih/09dEBAvuWAYW5eMh8x9JnXyBu5hS359xQYa4ljp+N51ygUioSdaUGvjyBIJbDdLdpHKV7YxyqxxNyBIwDq0SMImiE1Gk870GOuz+oEGN1E1xPvUTo6ViNm1GpaTyCwC/O7AoChRwnsq9VbNuZ1pIA2CCy9BIk9rgDg9OmMHAbw9QYzQkkBLRAYkcNRAMoIBPYLoE8LAAYI6j5TGEr26i3KUyFo4ZDaANBMReott9ErUAq41RI4TaYNAA4ShWNkgVI2QoPZVRO5vYItAIbGZYcQWJZZiv2DncIoh8x/XCLSN4u6ESSqfw8UAEPjeaOvj1+kBLCuqQmd37hb8Gfz+0Juueio0jGS6/ZTDGq+6CIJMLhPLk+cx9lYDO1k+kPPyBEhMDnQJQbNh1g4ks1iopErqDhe9scT6JnLYBgC91vN5hbrd1vhIgB851nZlsvhWLYZKyj6DWmAgS6xrXCwhlHoRtry/s4a/1QSHWY4l6FcKbCtcNOxT0ygpyUp6KH5apY2gLHrt1AFCIHOWAwdpgoonKURKvZFc9eHuKtjQHcpY/Mle3NoQw7dsgkTfr4VXDq5rRH48F7Zk8uhrakJo1bMNwdqZA1d+empgx3zPQ3iobMnN9Bu3AYIPFDcoWu1mc+lBAIADsQDpshhpGEY+gNDLZgfCADoNSQvqPLkTSuxfuNq7IwJhODTCv4YUYunsjkc3f8+Bo7M4v8KYy5cixmPKVxXaWymnDWXLQGGxiVjAmaCoZy1XPbPSon9O+4VHSYhaIdJid2lhJESUzvu1f80nBNhywYA3cY5oOhI8uqlaLk+hfWXPUc1CHAijSOnL2CGXePAZKHBzd0PgEG50jZR6pZrTGXZpWwA+J248Vw4KNAAQDj4ULNVBA6Abz8ru8Ul9SVyITCVbUY/DRsjxLxLSmhdYSYEHh3oEiMch2rm0iXssqHSxI57xfZKU/ChZ+QjAOb1c6XnM+g3T4NKzRc4AIbGZR8TSeaCYzH0Ua8ZIeY8QzXbSBEAcvlSZyvwBKYPndb10LjkBQ1a4NV8P51u8zTQ6eynT+AA8LOIxjO1o0ADALWjfShmjhwACgNPoaCgsnWOO+VLwrJOq3VEDgCGLrbMjdeK0EEGZqr9DpEDgFXgqdpEK50vlsPUQJf/nHwt1///89bqDjCPWPAAAAAASUVORK5CYII=");background-position:50%}',""]),t.exports=e},"6c57":function(t,e,a){var n=a("23e7"),r=a("da84");n({global:!0},{globalThis:r})},"6e10":function(t,e,a){"use strict";var n=a("da36"),r=a.n(n);r.a},"72b3":function(t,e,a){"use strict";a.r(e);var n=a("64a1"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},"76e8":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading1",data:function(){return{}}};e.default=n},7763:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"qiun-error",props:{errorMessage:{type:String,default:null}},data:function(){return{}}};e.default=n},"79ec":function(t,e,a){"use strict";a.r(e);var n=a("f681"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},"7e84":function(t,e,a){"use strict";function n(t){return e.default=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,a("131a"),a("3410")},"7fb9":function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("caad"),a("2532");var r=n(a("53ca")),i=n(a("ad83")),o=n(a("a09a")),s=n(a("ff72")),l={},c=null;function u(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,a=new Array(e>1?e-1:0),n=1;ns&&(d=i-c-30),h+u>l&&(h=o-u-30),[d,h]}},ucinit:function(t,e,a,n){var r=this;if(JSON.stringify(t)!=JSON.stringify(e)){var i=JSON.parse(JSON.stringify(t.canvasId));this.rid=i,l[i]=this.$ownerInstance,o.default.option[i]=JSON.parse(JSON.stringify(t)),o.default.option[i]=d(o.default.option[i],o.default.formatter);var s=document.getElementById(i);s&&s.children[0]&&(o.default.option[i].context=s.children[0].getContext("2d"),o.default.instance[i]&&o.default.option[i]&&!0===o.default.option[i].update?this.updataUChart():setTimeout((function(){o.default.option[i].context.restore(),o.default.option[i].context.save(),r.newUChart()}),100))}},newUChart:function(){var t=this.rid;o.default.instance[t]=new i.default(o.default.option[t]),o.default.instance[t].addEventListener("renderComplete",(function(){l[t].callMethod("emitMsg",{name:"complete",params:{type:"complete",complete:!0,id:t}}),o.default.instance[t].delEventListener("renderComplete")})),o.default.instance[t].addEventListener("scrollLeft",(function(){l[t].callMethod("emitMsg",{name:"scrollLeft",params:{type:"scrollLeft",scrollLeft:!0,id:t}})})),o.default.instance[t].addEventListener("scrollRight",(function(){l[t].callMethod("emitMsg",{name:"scrollRight",params:{type:"scrollRight",scrollRight:!0,id:t}})}))},updataUChart:function(){var t=this.rid;o.default.instance[t].updateData(o.default.option[t])},tooltipDefault:function(t,e,a,n){if(e){var i=t.data;return"object"===(0,r.default)(t.data)&&(i=t.data.value),e+" "+t.name+":"+i}return t.properties&&t.properties.name?t.properties.name:t.name+":"+t.data},showTooltip:function(t,e){var a=this,n=o.default.option[e].tooltipCustom;if(n&&void 0!==n&&null!==n){var r=void 0;n.x>=0&&n.y>=0&&(r={x:n.x,y:n.y+10}),o.default.instance[e].showToolTip(t,{index:n.index,offset:r,textList:n.textList,formatter:function(t,n,r,i){return"string"===typeof o.default.option[e].tooltipFormat&&o.default.formatter[o.default.option[e].tooltipFormat]?o.default.formatter[o.default.option[e].tooltipFormat](t,n,r,i):a.tooltipDefault(t,n,r,i)}})}else o.default.instance[e].showToolTip(t,{formatter:function(t,n,r,i){return"string"===typeof o.default.option[e].tooltipFormat&&o.default.formatter[o.default.option[e].tooltipFormat]?o.default.formatter[o.default.option[e].tooltipFormat](t,n,r,i):a.tooltipDefault(t,n,r,i)}})},tap:function(t){var e=this.rid,a=o.default.option[e].ontap,n=o.default.option[e].tooltipShow,r=o.default.option[e].tapLegend;if(0!=a){var i=null,s=null,u=document.getElementById("UC"+e).getBoundingClientRect(),d={};d=t.detail.x?{x:t.detail.x-u.left,y:t.detail.y-u.top+c.top}:{x:t.clientX-u.left,y:t.clientY-u.top+c.top},t.changedTouches.unshift(d),i=o.default.instance[e].getCurrentDataIndex(t),s=o.default.instance[e].getLegendDataIndex(t),!0===r&&o.default.instance[e].touchLegend(t),1==n&&this.showTooltip(t,e),l[e].callMethod("emitMsg",{name:"getIndex",params:{type:"getIndex",event:d,currentIndex:i,legendIndex:s,id:e,opts:o.default.instance[e].opts}})}},touchStart:function(t){var e=this.rid,a=o.default.option[e].ontouch;0!=a&&(o.default.instance[e].scrollStart(t),l[e].callMethod("emitMsg",{name:"getTouchStart",params:{type:"touchStart",event:t.changedTouches[0],id:e}}))},touchMove:function(t){var e=this.rid,a=o.default.option[e].ontouch;if(0!=a&&(o.default.instance[e].scroll(t),l[e].callMethod("emitMsg",{name:"getTouchMove",params:{type:"touchMove",event:t.changedTouches[0],id:e}}),!0===o.default.option[e].ontap&&!1===o.default.option[e].enableScroll&&!0===o.default.option[e].onmovetip)){var n=document.getElementById("UC"+e).getBoundingClientRect(),r={x:t.changedTouches[0].clientX-n.left,y:t.changedTouches[0].clientY-n.top+c.top};t.changedTouches.unshift(r),!0===o.default.option[e].tooltipShow&&this.showTooltip(t,e)}},touchEnd:function(t){var e=this.rid,a=o.default.option[e].ontouch;0!=a&&(o.default.instance[e].scrollEnd(t),l[e].callMethod("emitMsg",{name:"getTouchEnd",params:{type:"touchEnd",event:t.changedTouches[0],id:e}}))},mouseDown:function(t){var e=this.rid,a=o.default.option[e].onmouse;if(0!=a){var n=document.getElementById("UC"+e).getBoundingClientRect(),r={};r={x:t.clientX-n.left,y:t.clientY-n.top+c.top},t.changedTouches.unshift(r),o.default.instance[e].scrollStart(t),o.default.option[e].mousedown=!0,l[e].callMethod("emitMsg",{name:"getTouchStart",params:{type:"mouseDown",event:r,id:e}})}},mouseMove:function(t){var e=this.rid,a=o.default.option[e].onmouse,n=o.default.option[e].tooltipShow;if(0!=a){var r=document.getElementById("UC"+e).getBoundingClientRect(),i={};i={x:t.clientX-r.left,y:t.clientY-r.top+c.top},t.changedTouches.unshift(i),o.default.option[e].mousedown?(o.default.instance[e].scroll(t),l[e].callMethod("emitMsg",{name:"getTouchMove",params:{type:"mouseMove",event:i,id:e}})):o.default.instance[e]&&1==n&&this.showTooltip(t,e)}},mouseUp:function(t){var e=this.rid,a=o.default.option[e].onmouse;if(0!=a){var n=document.getElementById("UC"+e).getBoundingClientRect(),r={};r={x:t.clientX-n.left,y:t.clientY-n.top+c.top},t.changedTouches.unshift(r),o.default.instance[e].scrollEnd(t),o.default.option[e].mousedown=!1,l[e].callMethod("emitMsg",{name:"getTouchEnd",params:{type:"mouseUp",event:r,id:e}})}}}};e.default=h},8366:function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */.u-swiper-wrap[data-v-4bb3f8d0]{overflow:visible!important}.u-swiper-wrap uni-swiper[data-v-4bb3f8d0]{border-radius:%?20?%;overflow:hidden;-webkit-transform:translateY(0);transform:translateY(0);box-shadow:%?0?% %?40?% %?40?% %?-30?% grey}.u-swiper-wrap .u-swiper-indicator[data-v-4bb3f8d0]{bottom:%?-23?%!important}.u-swiper-wrap .u-swiper-indicator .u-indicator-item-rect[data-v-4bb3f8d0]{border-radius:%?2?%;height:%?4?%;width:%?20?%}.u-swiper-wrap .u-swiper-indicator .u-indicator-item-rect.u-indicator-item-rect-active[data-v-4bb3f8d0]{width:%?50?%;background:#be0000}.u-input__textarea[data-v-4bb3f8d0]{padding:%?0?%!important}.u-list-item[data-v-4bb3f8d0]{margin-left:%?0?%!important;width:%?100?%!important;height:%?100?%!important}.u-add-tips[data-v-4bb3f8d0]{margin-top:%?0?%!important}.custom-list-item[data-v-4bb3f8d0]{padding:%?0?% %?30?%}\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.u-collapse-head[data-v-4bb3f8d0]{position:relative;\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\n-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:#303133;font-size:%?30?%;line-height:1;padding:%?24?% 0;text-align:left}.u-collapse-title[data-v-4bb3f8d0]{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:hidden}.u-arrow-down-icon[data-v-4bb3f8d0]{-webkit-transition:all .3s;transition:all .3s;margin-right:%?20?%;margin-left:%?14?%}.u-arrow-down-icon-active[data-v-4bb3f8d0]{-webkit-transform:rotate(180deg);transform:rotate(180deg);-webkit-transform-origin:center center;transform-origin:center center}.u-collapse-body[data-v-4bb3f8d0]{overflow:hidden;-webkit-transition:all .3s;transition:all .3s}.u-collapse-content[data-v-4bb3f8d0]{overflow:hidden;font-size:%?28?%;color:#909399;text-align:left}',""]),t.exports=e},8405:function(t,e,a){"use strict";a.r(e);var n=a("3b13"),r=a("55d2");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);a("6863");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"e14678f8",null,!1,n["a"],o);e["default"]=l.exports},9072:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=l,a("4ec9"),a("d3b7"),a("3ca3"),a("ddb0");var n=s(a("7e84")),r=s(a("b380")),i=s(a("fa95")),o=s(a("4478"));function s(t){return t&&t.__esModule?t:{default:t}}function l(t){var a="function"===typeof Map?new Map:void 0;return e.default=l=function(t){if(null===t||!(0,i.default)(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof a){if(a.has(t))return a.get(t);a.set(t,e)}function e(){return(0,o.default)(t,arguments,(0,n.default)(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),(0,r.default)(e,t)},l(t)}},"92dc":function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,".container[data-v-fe25cc46]{width:30px;height:30px;position:relative}.container.loading3[data-v-fe25cc46]{-webkit-animation:rotation 1s infinite;animation:rotation 1s infinite}.container.loading3 .shape1[data-v-fe25cc46]{border-top-left-radius:10px}.container.loading3 .shape2[data-v-fe25cc46]{border-top-right-radius:10px}.container.loading3 .shape3[data-v-fe25cc46]{border-bottom-left-radius:10px}.container.loading3 .shape4[data-v-fe25cc46]{border-bottom-right-radius:10px}.container .shape[data-v-fe25cc46]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-fe25cc46]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-fe25cc46]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-fe25cc46]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-fe25cc46]{bottom:0;right:0;background-color:#e66}.loading3 .shape1[data-v-fe25cc46]{-webkit-animation:animation3shape1-data-v-fe25cc46 .5s ease 0s infinite alternate;animation:animation3shape1-data-v-fe25cc46 .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape1-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,5px);transform:translate(5px,5px)}}@keyframes animation3shape1-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,5px);transform:translate(5px,5px)}}.loading3 .shape2[data-v-fe25cc46]{-webkit-animation:animation3shape2-data-v-fe25cc46 .5s ease 0s infinite alternate;animation:animation3shape2-data-v-fe25cc46 .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape2-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,5px);transform:translate(-5px,5px)}}@keyframes animation3shape2-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,5px);transform:translate(-5px,5px)}}.loading3 .shape3[data-v-fe25cc46]{-webkit-animation:animation3shape3-data-v-fe25cc46 .5s ease 0s infinite alternate;animation:animation3shape3-data-v-fe25cc46 .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape3-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,-5px);transform:translate(5px,-5px)}}@keyframes animation3shape3-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,-5px);transform:translate(5px,-5px)}}.loading3 .shape4[data-v-fe25cc46]{-webkit-animation:animation3shape4-data-v-fe25cc46 .5s ease 0s infinite alternate;animation:animation3shape4-data-v-fe25cc46 .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape4-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,-5px);transform:translate(-5px,-5px)}}@keyframes animation3shape4-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,-5px);transform:translate(-5px,-5px)}}",""]),t.exports=e},9687:function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,".chartsview[data-v-1b108cc9]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}",""]),t.exports=e},"99de":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var n=i(a("53ca")),r=i(a("257e"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){return!e||"object"!==(0,n.default)(e)&&"function"!==typeof e?(0,r.default)(t):e}},"9b42":function(t,e,a){function n(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var a=[],n=!0,r=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(a.push(o.value),e&&a.length===e)break}catch(l){r=!0,i=l}finally{try{n||null==s["return"]||s["return"]()}finally{if(r)throw i}}return a}}a("a4d3"),a("e01a"),a("d3b7"),a("d28b"),a("3ca3"),a("ddb0"),t.exports=n},"9cb7":function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[1==t.loadingType?a("Loading1"):t._e(),2==t.loadingType?a("Loading2"):t._e(),3==t.loadingType?a("Loading3"):t._e(),4==t.loadingType?a("Loading4"):t._e(),5==t.loadingType?a("Loading5"):t._e()],1)},i=[]},"9ce6":function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3");var r=n(a("5751")),i=n(a("8405")),o=n(a("264a")),s=n(a("fec0")),l=n(a("0993")),c={components:{Loading1:r.default,Loading2:i.default,Loading3:o.default,Loading4:s.default,Loading5:l.default},name:"qiun-loading",props:{loadingType:{type:Number,default:2}},data:function(){return{}}};e.default=c},"9e9a":function(t,e,a){"use strict";a.r(e);var n=a("64b9"),r=a("bd37");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);a("be16");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"688f25e7",null,!1,n["a"],o);e["default"]=l.exports},a09a:function(t,e,a){a("b680");var n=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],r=function(t,e){var a=new Date;a.setTime(1e3*t);var n=a.getFullYear(),r=a.getMonth()+1;r=r<10?"0"+r:r;var i=a.getDate();i=i<10?"0"+i:i;var o=a.getHours();o=o<10?"0"+o:o;var s=a.getMinutes(),l=a.getSeconds();return s=s<10?"0"+s:s,l=l<10?"0"+l:l,"full"==e?n+"-"+r+"-"+i+" "+o+":"+s+":"+l:"y-m-d"==e?n+"-"+r+"-"+i:"h:m"==e?o+":"+s:"h:m:s"==e?o+":"+s+":"+l:[n,r,i,o,s,l]};t.exports={type:["pie","ring","rose","word","funnel","map","arcbar","line","column","bar","area","radar","gauge","candle","mix","tline","tarea","scatter","bubble","demotype"],range:["饼状图","圆环图","玫瑰图","词云图","漏斗图","地图","圆弧进度条","折线图","柱状图","条状图","区域图","雷达图","仪表盘","K线图","混合图","时间轴折线","时间轴区域","散点图","气泡图","自定义类型"],categories:["line","column","bar","area","radar","gauge","candle","mix","demotype"],instance:{},option:{},formatter:{yAxisDemo1:function(t){return t+"元"},yAxisDemo2:function(t){return t.toFixed(2)},xAxisDemo1:function(t){return t+"年"},xAxisDemo2:function(t){return r(t,"h:m")},seriesDemo1:function(t){return t+"元"},tooltipDemo1:function(t,e,a,n){return 0==a?"随便用"+t.data+"年":"其他我没改"+t.data+"天"},pieDemo:function(t,e,a){if(void 0!==e)return a[e].name+":"+a[e].data+"元"}},demotype:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"curve",width:2}}},pie:{type:"pie",color:n,padding:[5,5,5,5],extra:{pie:{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},ring:{type:"ring",color:n,padding:[5,5,5,5],rotate:!1,dataLabel:!0,legend:{show:!0,position:"right",lineHeight:25},title:{name:"收益率",fontSize:15,color:"#666666"},subtitle:{name:"70%",fontSize:25,color:"#7cb5ec"},extra:{ring:{ringWidth:30,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},rose:{type:"rose",color:n,padding:[5,5,5,5],legend:{show:!0,position:"left",lineHeight:25},extra:{rose:{type:"area",minRadius:50,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF"}}},word:{type:"word",color:n,extra:{word:{type:"normal",autoColors:!1}}},funnel:{type:"funnel",color:n,padding:[15,15,0,15],extra:{funnel:{activeOpacity:.3,activeWidth:10,border:!0,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"}}},map:{type:"map",color:n,padding:[0,0,0,0],dataLabel:!0,extra:{map:{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#F04864",activeFillColor:"#FACC14",activeFillOpacity:1}}},arcbar:{type:"arcbar",color:n,title:{name:"百分比",fontSize:25,color:"#00FF00"},subtitle:{name:"默认标题",fontSize:15,color:"#666666"},extra:{arcbar:{type:"default",width:12,backgroundColor:"#E9E9E9",startAngle:.75,endAngle:.25,gap:2}}},line:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"straight",width:2}}},tline:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!1,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{line:{type:"curve",width:2}}},tarea:{type:"area",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{area:{type:"curve",opacity:.2,addLine:!0,width:2,gradient:!0}}},column:{type:"column",color:n,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{column:{type:"group",width:30,meterBorde:1,meterFillColor:"#FFFFFF",activeBgColor:"#000000",activeBgOpacity:.08}}},bar:{type:"bar",color:n,padding:[15,30,0,5],xAxis:{boundaryGap:"justify",disableGrid:!1,min:0,axisLine:!1},yAxis:{},legend:{},extra:{bar:{type:"group",width:30,meterBorde:1,meterFillColor:"#FFFFFF",activeBgColor:"#000000",activeBgOpacity:.08}}},area:{type:"area",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{area:{type:"straight",opacity:.2,addLine:!0,width:2,gradient:!1}}},radar:{type:"radar",color:n,padding:[5,5,5,5],dataLabel:!1,legend:{show:!0,position:"right",lineHeight:25},extra:{radar:{gridType:"radar",gridColor:"#CCCCCC",gridCount:3,opacity:.2,max:200}}},gauge:{type:"gauge",color:n,title:{name:"66Km/H",fontSize:25,color:"#2fc25b",offsetY:50},subtitle:{name:"实时速度",fontSize:15,color:"#1890ff",offsetY:-50},extra:{gauge:{type:"default",width:30,labelColor:"#666666",startAngle:.75,endAngle:.25,startNumber:0,endNumber:100,labelFormat:"",splitLine:{fixRadius:0,splitNumber:10,width:30,color:"#FFFFFF",childNumber:5,childWidth:12},pointer:{width:24,color:"auto"}}}},candle:{type:"candle",color:n,padding:[15,15,0,15],enableScroll:!0,enableMarkLine:!0,dataLabel:!1,xAxis:{labelCount:4,itemCount:40,disableGrid:!0,gridColor:"#CCCCCC",gridType:"solid",dashLength:4,scrollShow:!0,scrollAlign:"left",scrollColor:"#A6A6A6",scrollBackgroundColor:"#EFEBEF"},yAxis:{},legend:{},extra:{candle:{color:{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},average:{show:!0,name:["MA5","MA10","MA30"],day:[5,10,20],color:["#1890ff","#2fc25b","#facc14"]}},markLine:{type:"dash",dashLength:5,data:[{value:2150,lineColor:"#f04864",showLabel:!0},{value:2350,lineColor:"#f04864",showLabel:!0}]}}},mix:{type:"mix",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{disabled:!1,disableGrid:!1,splitNumber:5,gridType:"dash",dashLength:4,gridColor:"#CCCCCC",padding:10,showTitle:!0,data:[]},legend:{},extra:{mix:{column:{width:20}}}},scatter:{type:"scatter",color:n,padding:[15,15,0,15],dataLabel:!1,xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0},yAxis:{disableGrid:!1,gridType:"dash"},legend:{},extra:{scatter:{}}},bubble:{type:"bubble",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0,max:250},yAxis:{disableGrid:!1,gridType:"dash",data:[{min:0,max:150}]},legend:{},extra:{bubble:{border:2,opacity:.5}}}}},a0d5:function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var n={qiunLoading:a("e438").default,qiunError:a("52eb").default},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"chartsview",attrs:{id:"ChartBoxId"+t.cid}},[t.mixinDatacomLoading?a("v-uni-view",[a("qiun-loading",{attrs:{loadingType:t.loadingType}})],1):t._e(),t.mixinDatacomErrorMessage&&t.errorShow?a("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.reloading.apply(void 0,arguments)}}},[a("qiun-error",{attrs:{errorMessage:t.errorMessage}})],1):t._e(),t.echarts?[a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.showchart,expression:"showchart"}],wxsProps:{"change:resize":"echartsResize","change:prop":"echartsOpts"},staticStyle:{width:"100%",height:"100%"},style:{background:t.background},attrs:{"data-directory":t.directory,id:"EC"+t.cid,prop:t.echartsOpts,"change:prop":t.rdcharts.ecinit,resize:t.echartsResize,"change:resize":t.rdcharts.ecresize}})]:[a("v-uni-view",{wxsProps:{"change:prop":"uchartsOpts"},attrs:{id:"UC"+t.cid,prop:t.uchartsOpts,"change:prop":t.rdcharts.ucinit},on:{mousemove:function(e){e=t.$handleWxsEvent(e),t.rdcharts.mouseMove(e,t.$getComponentDescriptor())},mousedown:function(e){e=t.$handleWxsEvent(e),t.rdcharts.mouseDown(e,t.$getComponentDescriptor())},mouseup:function(e){e=t.$handleWxsEvent(e),t.rdcharts.mouseUp(e,t.$getComponentDescriptor())},touchstart:function(e){e=t.$handleWxsEvent(e),t.rdcharts.touchStart(e,t.$getComponentDescriptor())},touchmove:function(e){e=t.$handleWxsEvent(e),t.rdcharts.touchMove(e,t.$getComponentDescriptor())},touchend:function(e){e=t.$handleWxsEvent(e),t.rdcharts.touchEnd(e,t.$getComponentDescriptor())},click:function(e){e=t.$handleWxsEvent(e),t.rdcharts.tap(e,t.$getComponentDescriptor())}}},[a("v-uni-canvas",{directives:[{name:"show",rawName:"v-show",value:t.showchart,expression:"showchart"}],style:{width:t.cWidth+"px",height:t.cHeight+"px",background:t.background},attrs:{id:t.cid,canvasId:t.cid,"disable-scroll":t.disableScroll},on:{error:function(e){arguments[0]=e=t.$handleEvent(e),t._error.apply(void 0,arguments)}}})],1)]],2)},i=[]},a5a5:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading6",data:function(){return{}}};e.default=n},a7af:function(t,e,a){"use strict";var n=a("3710"),r=a.n(n);r.a},a896:function(t,e,a){"use strict";a.r(e);var n=a("1cda"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},a9ff:function(t,e,a){"use strict";(function(t,n,r){var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var o=i(a("53ca")),s=i(a("1da1")),l=i(a("5530")),c=i(a("2909")),u=i(a("b85c")),d=i(a("bee2")),h=i(a("ade3")),f=i(a("257e")),p=i(a("d4ec")),g=i(a("262e")),x=i(a("2caf8")),m=i(a("9072"));a("6c57"),a("d3b7"),a("25f0"),a("fb6a"),a("a15b"),a("e25e"),a("99af"),a("a434"),a("4160"),a("159b"),a("b64b"),a("c975"),a("13d5"),a("26e9"),a("4e82"),a("d81d"),a("ddb0"),a("caad"),a("ac1f"),a("841c"),a("a9e3"),a("4d63"),a("5319"),a("466d"),a("a4d3"),a("e01a"),a("5377"),a("accc"),a("1276"),a("baa5"),a("7db0"),a("f4b3"),a("bf19"),a("4de4"),a("a630"),a("3ca3"),a("498a");var v=a("78b5");function y(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function b(t,e,a){return t(a={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&a.path)}},a.exports),a.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t||"undefined"!=typeof self&&self;var w=b((function(t,e){var a;t.exports=(a=a||function(t,e){var a=Object.create||function(){function t(){}return function(e){var a;return t.prototype=e,a=new t,t.prototype=null,a}}(),n={},r=n.lib={},i=r.Base={extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},o=r.WordArray=i.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,a=t.words,n=this.sigBytes,r=t.sigBytes;if(this.clamp(),n%4)for(var i=0;i>>2]>>>24-i%4*8&255;e[n+i>>>2]|=o<<24-(n+i)%4*8}else for(i=0;i>>2]=a[i>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,a=this.sigBytes;e[a>>>2]&=4294967295<<32-a%4*8,e.length=t.ceil(a/4)},clone:function(){var t=i.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var a,n=[],r=function(e){e=e;var a=987654321,n=4294967295;return function(){var r=((a=36969*(65535&a)+(a>>16)&n)<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n;return r/=4294967296,(r+=.5)*(t.random()>.5?1:-1)}},i=0;i>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,a=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new o.init(a,e/2)}},c=s.Latin1={stringify:function(t){for(var e=t.words,a=t.sigBytes,n=[],r=0;r>>2]>>>24-r%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(t){for(var e=t.length,a=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new o.init(a,e)}},u=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},d=r.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=u.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var a=this._data,n=a.words,r=a.sigBytes,i=this.blockSize,s=r/(4*i),l=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*i,c=t.min(4*l,r);if(l){for(var u=0;u>>24)|4278255360&(r<<24|r>>>8)}var i=this._hash.words,o=t[e+0],l=t[e+1],f=t[e+2],p=t[e+3],g=t[e+4],x=t[e+5],m=t[e+6],v=t[e+7],y=t[e+8],b=t[e+9],w=t[e+10],k=t[e+11],S=t[e+12],A=t[e+13],T=t[e+14],P=t[e+15],C=i[0],_=i[1],D=i[2],M=i[3];C=c(C,_,D,M,o,7,s[0]),M=c(M,C,_,D,l,12,s[1]),D=c(D,M,C,_,f,17,s[2]),_=c(_,D,M,C,p,22,s[3]),C=c(C,_,D,M,g,7,s[4]),M=c(M,C,_,D,x,12,s[5]),D=c(D,M,C,_,m,17,s[6]),_=c(_,D,M,C,v,22,s[7]),C=c(C,_,D,M,y,7,s[8]),M=c(M,C,_,D,b,12,s[9]),D=c(D,M,C,_,w,17,s[10]),_=c(_,D,M,C,k,22,s[11]),C=c(C,_,D,M,S,7,s[12]),M=c(M,C,_,D,A,12,s[13]),D=c(D,M,C,_,T,17,s[14]),C=u(C,_=c(_,D,M,C,P,22,s[15]),D,M,l,5,s[16]),M=u(M,C,_,D,m,9,s[17]),D=u(D,M,C,_,k,14,s[18]),_=u(_,D,M,C,o,20,s[19]),C=u(C,_,D,M,x,5,s[20]),M=u(M,C,_,D,w,9,s[21]),D=u(D,M,C,_,P,14,s[22]),_=u(_,D,M,C,g,20,s[23]),C=u(C,_,D,M,b,5,s[24]),M=u(M,C,_,D,T,9,s[25]),D=u(D,M,C,_,p,14,s[26]),_=u(_,D,M,C,y,20,s[27]),C=u(C,_,D,M,A,5,s[28]),M=u(M,C,_,D,f,9,s[29]),D=u(D,M,C,_,v,14,s[30]),C=d(C,_=u(_,D,M,C,S,20,s[31]),D,M,x,4,s[32]),M=d(M,C,_,D,y,11,s[33]),D=d(D,M,C,_,k,16,s[34]),_=d(_,D,M,C,T,23,s[35]),C=d(C,_,D,M,l,4,s[36]),M=d(M,C,_,D,g,11,s[37]),D=d(D,M,C,_,v,16,s[38]),_=d(_,D,M,C,w,23,s[39]),C=d(C,_,D,M,A,4,s[40]),M=d(M,C,_,D,o,11,s[41]),D=d(D,M,C,_,p,16,s[42]),_=d(_,D,M,C,m,23,s[43]),C=d(C,_,D,M,b,4,s[44]),M=d(M,C,_,D,S,11,s[45]),D=d(D,M,C,_,P,16,s[46]),C=h(C,_=d(_,D,M,C,f,23,s[47]),D,M,o,6,s[48]),M=h(M,C,_,D,v,10,s[49]),D=h(D,M,C,_,T,15,s[50]),_=h(_,D,M,C,x,21,s[51]),C=h(C,_,D,M,S,6,s[52]),M=h(M,C,_,D,p,10,s[53]),D=h(D,M,C,_,w,15,s[54]),_=h(_,D,M,C,l,21,s[55]),C=h(C,_,D,M,y,6,s[56]),M=h(M,C,_,D,P,10,s[57]),D=h(D,M,C,_,m,15,s[58]),_=h(_,D,M,C,A,21,s[59]),C=h(C,_,D,M,g,6,s[60]),M=h(M,C,_,D,k,10,s[61]),D=h(D,M,C,_,f,15,s[62]),_=h(_,D,M,C,b,21,s[63]),i[0]=i[0]+C|0,i[1]=i[1]+_|0,i[2]=i[2]+D|0,i[3]=i[3]+M|0},_doFinalize:function(){var e=this._data,a=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;a[r>>>5]|=128<<24-r%32;var i=t.floor(n/4294967296),o=n;a[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a[14+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(a.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,a,n,r,i,o){var s=t+(e&a|~e&n)+r+o;return(s<>>32-i)+e}function u(t,e,a,n,r,i,o){var s=t+(e&n|a&~n)+r+o;return(s<>>32-i)+e}function d(t,e,a,n,r,i,o){var s=t+(e^a^n)+r+o;return(s<>>32-i)+e}function h(t,e,a,n,r,i,o){var s=t+(a^(e|~n))+r+o;return(s<>>32-i)+e}e.MD5=i._createHelper(l),e.HmacMD5=i._createHmacHelper(l)}(Math),a.MD5)})),b((function(t,e){var a,n,r;t.exports=(n=(a=w).lib.Base,r=a.enc.Utf8,void(a.algo.HMAC=n.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=r.parse(e));var a=t.blockSize,n=4*a;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var i=this._oKey=e.clone(),o=this._iKey=e.clone(),s=i.words,l=o.words,c=0;c1&&void 0!==arguments[1]?arguments[1]:{};return e=L,a=t,Object.prototype.hasOwnProperty.call(e,a)||(L[t]=n),L[t]}"app-plus"===_&&(L=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={});var O=["invoke","success","fail","complete"],E=I("_globalUniCloudInterceptor");function R(t,e){E[t]||(E[t]={}),A(e)&&Object.keys(e).forEach((function(a){O.indexOf(a)>-1&&function(t,e,a){var n=E[t][e];n||(n=E[t][e]=[]),-1===n.indexOf(a)&&"function"==typeof a&&n.push(a)}(t,a,e[a])}))}function B(t,e){E[t]||(E[t]={}),A(e)?Object.keys(e).forEach((function(a){O.indexOf(a)>-1&&function(t,e,a){var n=E[t][e];if(n){var r=n.indexOf(a);r>-1&&n.splice(r,1)}}(t,a,e[a])})):delete E[t]}function z(t,e){return t&&0!==t.length?t.reduce((function(t,a){return t.then((function(){return a(e)}))}),Promise.resolve()):Promise.resolve()}function U(t,e){return E[t]&&E[t][e]||[]}function N(t,e){return e?function(a){var n,r=this,i="callFunction"===e&&"DCloud-clientDB"===(a&&a.name);n=this.isReady?Promise.resolve():this.initUniCloud,a=a||{};var o=n.then((function(){return i?Promise.resolve():z(U(e,"invoke"),a)})).then((function(){return t.call(r,a)})).then((function(t){return i?Promise.resolve(t):z(U(e,"success"),t).then((function(){return z(U(e,"complete"),t)})).then((function(){return Promise.resolve(t)}))}),(function(t){return i?Promise.reject(t):z(U(e,"fail"),t).then((function(){return z(U(e,"complete"),t)})).then((function(){return Promise.reject(t)}))}));if(!(a.success||a.fail||a.complete))return o;o.then((function(t){a.success&&a.success(t),a.complete&&a.complete(t)})).catch((function(t){a.fail&&a.fail(t),a.complete&&a.complete(t)}))}:function(e){if(!((e=e||{}).success||e.fail||e.complete))return t.call(this,e);t.call(this,e).then((function(t){e.success&&e.success(t),e.complete&&e.complete(t)}),(function(t){e.fail&&e.fail(t),e.complete&&e.complete(t)}))}}var W,j,q,H=function(t){(0,g.default)(a,t);var e=(0,x.default)(a);function a(t){var n;return(0,p.default)(this,a),n=e.call(this,t.message),n.errMsg=t.message||"",Object.defineProperties((0,f.default)(n),{code:{get:function(){return t.code}},requestId:{get:function(){return t.requestId}},message:{get:function(){return this.errMsg},set:function(t){this.errMsg=t}}}),n}return a}((0,m.default)(Error)),Y=(0,v.initVueI18n)({"zh-Hans":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},"zh-Hant":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},en:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},fr:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},es:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"}},"zh-Hans"),G=Y.t,J=(Y.setLocale,Y.getLocale);try{W=a("ecd6").default||a("ecd6")}catch(Le){W={appid:""}}function K(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,e="";e.length=400)return r(new H({code:"SYS_ERR",message:t.errMsg||"request:fail",requestId:e}));var i=t.data;if(i.error)return r(new H({code:i.error.code,message:i.error.message,requestId:e}));i.result=i.data,i.requestId=e,delete i.data,a(i)}}))}))}},tt={request:function(t){return uni.request(t)},uploadFile:function(t){return uni.uploadFile(t)},setStorageSync:function(t,e){return uni.setStorageSync(t,e)},getStorageSync:function(t){return uni.getStorageSync(t)},removeStorageSync:function(t){return uni.removeStorageSync(t)},clearStorageSync:function(){return uni.clearStorageSync()}},et=function(){function t(e){(0,p.default)(this,t),["spaceId","clientSecret"].forEach((function(t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(G("uniCloud.init.paramRequired",{param:t}))})),this.config=Object.assign({},{endpoint:"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=tt,this._getAccessTokenPromise=null,this._getAccessTokenPromiseStatus=null}return(0,d.default)(t,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(t){this.accessToken=t}},{key:"requestWrapped",value:function(t){return $.wrappedRequest(t,this.adapter.request)}},{key:"requestAuth",value:function(t){return this.requestWrapped(t)}},{key:"request",value:function(t,e){var a=this;return Promise.resolve().then((function(){return a.hasAccessToken?e?a.requestWrapped(t):a.requestWrapped(t).catch((function(e){return new Promise((function(t,a){!e||"GATEWAY_INVALID_TOKEN"!==e.code&&"InvalidParameter.InvalidToken"!==e.code?a(e):t()})).then((function(){return a.getAccessToken()})).then((function(){var e=a.rebuildRequest(t);return a.request(e,!0)}))})):a.getAccessToken().then((function(){var e=a.rebuildRequest(t);return a.request(e,!0)}))}))}},{key:"rebuildRequest",value:function(t){var e=Object.assign({},t);return e.data.token=this.accessToken,e.header["x-basement-token"]=this.accessToken,e.header["x-serverless-sign"]=$.sign(e.data,this.config.clientSecret),e}},{key:"setupRequest",value:function(t,e){var a=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};return"auth"!==e&&(a.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=$.sign(a,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:a,dataType:"json",header:n}}},{key:"getAccessToken",value:function(){var t=this;return"pending"===this._getAccessTokenPromiseStatus||(this._getAccessTokenPromiseStatus="pending",this._getAccessTokenPromise=this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){return new Promise((function(a,n){e.result&&e.result.accessToken?(t.setAccessToken(e.result.accessToken),t._getAccessTokenPromiseStatus="fulfilled",a(t.accessToken)):(t._getAccessTokenPromiseStatus="rejected",n(new H({code:"AUTH_FAILED",message:"获取accessToken失败"})))}))}),(function(e){return t._getAccessTokenPromiseStatus="rejected",Promise.reject(e)}))),this._getAccessTokenPromise}},{key:"authorize",value:function(){this.getAccessToken()}},{key:"callFunction",value:function(t){var e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:t.name,functionArgs:t.data||{}})};return this.request(this.setupRequest(e))}},{key:"getOSSUploadOptionsFromPath",value:function(t){var e={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}},{key:"uploadFileToOSS",value:function(t){var e=this,a=t.url,n=t.formData,r=t.name,i=t.filePath,o=t.fileType,s=t.onUploadProgress;return new Promise((function(t,l){var c=e.adapter.uploadFile({url:a,formData:n,name:r,filePath:i,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(e){e&&e.statusCode<400?t(e):l(new H({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(t){l(new H({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(t){s({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(t){var e={method:"serverless.file.resource.report",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}},{key:"uploadFile",value:function(t){var e=this,a=t.filePath,n=t.cloudPath,r=t.fileType,i=void 0===r?"image":r,o=t.onUploadProgress,s=t.config;if(!n)throw new H({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});var l,c,u=s&&s.envType||this.config.envType;return this.getOSSUploadOptionsFromPath({env:u,filename:n}).then((function(t){var n=t.result;l=n.id,c="https://"+n.cdnDomain+"/"+n.ossPath;var r={url:"https://"+n.host,formData:{"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:n.accessKeyId,Signature:n.signature,host:n.host,id:l,key:n.ossPath,policy:n.policy,success_action_status:200},fileName:"file",name:"file",filePath:a,fileType:i};return e.uploadFileToOSS(Object.assign({},r,{onUploadProgress:o}))})).then((function(){return e.reportOSSUpload({id:l})})).then((function(t){return new Promise((function(e,n){t.success?e({success:!0,filePath:a,fileID:c}):n(new H({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(t){var e=t.fileList,a={method:"serverless.file.resource.delete",params:JSON.stringify({id:e[0]})};return this.request(this.setupRequest(a))}},{key:"getTempFileURL",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.fileList;return new Promise((function(t,a){Array.isArray(e)&&0!==e.length||a(new H({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((function(t){return{fileID:t,tempFileURL:t}}))})}))}}]),t}(),at={init:function(t){var e=new et(t),a={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return a},e.customAuth=e.auth,e}},nt="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:",rt="//tcb-api.tencentcloudapi.com/web";!function(t){t.local="local",t.none="none",t.session="session"}(Z||(Z={}));var it,ot=function(){},st=function(){var t;if(!Promise){t=function(){},t.promise={};var e=function(){throw new Error('Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.')};return Object.defineProperty(t.promise,"then",{get:e}),Object.defineProperty(t.promise,"catch",{get:e}),t}var a=new Promise((function(e,a){t=function(t,n){return t?a(t):e(n)}}));return t.promise=a,t};function lt(t){return void 0===t}function ct(t){return"[object Null]"===Object.prototype.toString.call(t)}function ut(t){var e,a,n=(e=t,"[object Array]"===Object.prototype.toString.call(e)?t:[t]),r=(0,u.default)(n);try{for(r.s();!(a=r.n()).done;){var i=a.value,o=i.isMatch,s=i.genAdapter,l=i.runtime;if(o())return{adapter:s(),runtime:l}}}catch(c){r.e(c)}finally{r.f()}}!function(t){t.WEB="web",t.WX_MP="wx_mp"}(it||(it={}));var dt={adapter:null,runtime:void 0},ht=["anonymousUuidKey"],ft=function(t){(0,g.default)(a,t);var e=(0,x.default)(a);function a(){var t;return(0,p.default)(this,a),t=e.call(this),dt.adapter.root.tcbObject||(dt.adapter.root.tcbObject={}),t}return(0,d.default)(a,[{key:"setItem",value:function(t,e){dt.adapter.root.tcbObject[t]=e}},{key:"getItem",value:function(t){return dt.adapter.root.tcbObject[t]}},{key:"removeItem",value:function(t){delete dt.adapter.root.tcbObject[t]}},{key:"clear",value:function(){delete dt.adapter.root.tcbObject}}]),a}(ot);function pt(t,e){switch(t){case"local":return e.localStorage||new ft;case"none":return new ft;default:return e.sessionStorage||new ft}}var gt=function(){function t(e){if((0,p.default)(this,t),!this._storage){this._persistence=dt.adapter.primaryStorage||e.persistence,this._storage=pt(this._persistence,dt.adapter);var a="access_token_"+e.env,n="access_token_expire_"+e.env,r="refresh_token_"+e.env,i="anonymous_uuid_"+e.env,o="login_type_"+e.env,s="user_info_"+e.env;this.keys={accessTokenKey:a,accessTokenExpireKey:n,refreshTokenKey:r,anonymousUuidKey:i,loginTypeKey:o,userInfoKey:s}}}return(0,d.default)(t,[{key:"updatePersistence",value:function(t){if(t!==this._persistence){var e="local"===this._persistence;this._persistence=t;var a=pt(t,dt.adapter);for(var n in this.keys){var r=this.keys[n];if(!e||!ht.includes(n)){var i=this._storage.getItem(r);lt(i)||ct(i)||(a.setItem(r,i),this._storage.removeItem(r))}}this._storage=a}}},{key:"setStore",value:function(t,e,a){if(this._storage){var n={version:a||"localCachev1",content:e},r=JSON.stringify(n);try{this._storage.setItem(t,r)}catch(t){throw t}}}},{key:"getStore",value:function(t,e){try{if(!this._storage)return}catch(t){return""}e=e||"localCachev1";var a=this._storage.getItem(t);return a&&a.indexOf(e)>=0?JSON.parse(a).content:""}},{key:"removeStore",value:function(t){this._storage.removeItem(t)}}]),t}(),xt={},mt={};function vt(t){return xt[t]}var yt=function t(e,a){(0,p.default)(this,t),this.data=a||null,this.name=e},bt=function(t){(0,g.default)(a,t);var e=(0,x.default)(a);function a(t,n){var r;return(0,p.default)(this,a),r=e.call(this,"error",{error:t,data:n}),r.error=t,r}return a}(yt),wt=new(function(){function t(){(0,p.default)(this,t),this._listeners={}}return(0,d.default)(t,[{key:"on",value:function(t,e){return function(t,e,a){a[t]=a[t]||[],a[t].push(e)}(t,e,this._listeners),this}},{key:"off",value:function(t,e){return function(t,e,a){if(a&&a[t]){var n=a[t].indexOf(e);-1!==n&&a[t].splice(n,1)}}(t,e,this._listeners),this}},{key:"fire",value:function(t,e){if(t instanceof bt)return n.error(t.error),this;var a="string"==typeof t?new yt(t,e||{}):t,r=a.name;if(this._listens(r)){a.target=this;var i,o=this._listeners[r]?(0,c.default)(this._listeners[r]):[],s=(0,u.default)(o);try{for(s.s();!(i=s.n()).done;){var l=i.value;l.call(this,a)}}catch(d){s.e(d)}finally{s.f()}}return this}},{key:"_listens",value:function(t){return this._listeners[t]&&this._listeners[t].length>0}}]),t}());function kt(t,e){wt.on(t,e)}function St(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};wt.fire(t,e)}function At(t,e){wt.off(t,e)}var Tt,Pt="loginStateChanged",Ct="loginStateExpire",_t="loginTypeChanged",Dt="anonymousConverted",Mt="refreshAccessToken";!function(t){t.ANONYMOUS="ANONYMOUS",t.WECHAT="WECHAT",t.WECHAT_PUBLIC="WECHAT-PUBLIC",t.WECHAT_OPEN="WECHAT-OPEN",t.CUSTOM="CUSTOM",t.EMAIL="EMAIL",t.USERNAME="USERNAME",t.NULL="NULL"}(Tt||(Tt={}));var Ft=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Lt={"X-SDK-Version":"1.3.5"};function It(t,e,a){var n=t[e];t[e]=function(e){var r={},i={};a.forEach((function(a){var n=a.call(t,e),o=n.data,s=n.headers;Object.assign(r,o),Object.assign(i,s)}));var o=e.data;return o&&function(){var t;if(t=o,"[object FormData]"!==Object.prototype.toString.call(t))e.data=(0,l.default)((0,l.default)({},o),r);else for(var a in r)o.append(a,r[a])}(),e.headers=(0,l.default)((0,l.default)({},e.headers||{}),i),n.call(t,e)}}function Ot(){var t=Math.random().toString(16).slice(2);return{data:{seqId:t},headers:(0,l.default)((0,l.default)({},Lt),{},{"x-seqid":t})}}var Et=function(){function t(){var e,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,p.default)(this,t),this.config=a,this._reqClass=new dt.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=vt(this.config.env),this._localCache=(e=this.config.env,mt[e]),It(this._reqClass,"post",[Ot]),It(this._reqClass,"upload",[Ot]),It(this._reqClass,"download",[Ot])}return(0,d.default)(t,[{key:"post",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.post(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"upload",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.upload(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"download",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.download(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"refreshAccessToken",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),t.prev=1,t.next=4,this._refreshAccessTokenPromise;case 4:e=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),a=t.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!a){t.next=12;break}throw a;case 12:return t.abrupt("return",e);case 13:case"end":return t.stop()}}),t,this,[[1,7]])})));function e(){return t.apply(this,arguments)}return e}()},{key:"_refreshAccessToken",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){var e,a,n,r,i,o,s,l,c,u,d,h,f;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this._cache.keys,a=e.accessTokenKey,n=e.accessTokenExpireKey,r=e.refreshTokenKey,i=e.loginTypeKey,o=e.anonymousUuidKey,this._cache.removeStore(a),this._cache.removeStore(n),s=this._cache.getStore(r),s){t.next=5;break}throw new Error("未登录CloudBase");case 5:return l={refresh_token:s},t.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",l);case 8:if(c=t.sent,!c.data.code){t.next=21;break}if(u=c.data.code,"SIGN_PARAM_INVALID"!==u&&"REFRESH_TOKEN_EXPIRED"!==u&&"INVALID_REFRESH_TOKEN"!==u){t.next=20;break}if(this._cache.getStore(i)!==Tt.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==u){t.next=19;break}return d=this._cache.getStore(o),h=this._cache.getStore(r),t.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:d,refresh_token:h});case 17:return f=t.sent,t.abrupt("return",(this.setRefreshToken(f.refresh_token),this._refreshAccessToken()));case 19:St(Ct),this._cache.removeStore(r);case 20:throw new Error("刷新access token失败:"+c.data.code);case 21:if(!c.data.access_token){t.next=23;break}return t.abrupt("return",(St(Mt),this._cache.setStore(a,c.data.access_token),this._cache.setStore(n,c.data.access_token_expire+Date.now()),{accessToken:c.data.access_token,accessTokenExpire:c.data.access_token_expire}));case 23:c.data.refresh_token&&(this._cache.removeStore(r),this._cache.setStore(r,c.data.refresh_token),this._refreshAccessToken());case 24:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getAccessToken",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){var e,a,n,r,i,o,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this._cache.keys,a=e.accessTokenKey,n=e.accessTokenExpireKey,r=e.refreshTokenKey,this._cache.getStore(r)){t.next=3;break}throw new Error("refresh token不存在,登录状态异常");case 3:if(i=this._cache.getStore(a),o=this._cache.getStore(n),s=!0,t.t0=this._shouldRefreshAccessTokenHook,!t.t0){t.next=9;break}return t.next=8,this._shouldRefreshAccessTokenHook(i,o);case 8:t.t0=!t.sent;case 9:if(t.t1=t.t0,!t.t1){t.next=12;break}s=!1;case 12:return t.abrupt("return",(!i||!o||o2&&void 0!==arguments[2]?arguments[2]:{},n=/\?/.test(e),r="";for(var i in a)""===r?!n&&(e+="?"):r+="&",r+="".concat(i,"=").concat(encodeURIComponent(a[i]));return/^http(s)?\:\/\//.test(e+=r)?e:"".concat(t).concat(e)}(nt,rt,m),x&&(v+=x),t.next=22,this.post((0,l.default)({url:v,data:c},h));case 22:if(y=t.sent,b=y.header&&y.header["x-tcb-trace"],b&&this._localCache.setStore(r,b),(200===Number(y.status)||200===Number(y.statusCode))&&y.data){t.next=26;break}throw new Error("network request error");case 26:return t.abrupt("return",y);case 27:case"end":return t.stop()}}),t,this)})));function e(e,a,n){return t.apply(this,arguments)}return e}()},{key:"send",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){var a,n,r,i=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=i.length>1&&void 0!==i[1]?i[1]:{},t.next=3,this.request(e,a,{onUploadProgress:a.onUploadProgress});case 3:if(n=t.sent,"ACCESS_TOKEN_EXPIRED"!==n.data.code||-1!==Ft.indexOf(e)){t.next=13;break}return t.next=7,this.refreshAccessToken();case 7:return t.next=9,this.request(e,a,{onUploadProgress:a.onUploadProgress});case 9:if(r=t.sent,!r.data.code){t.next=12;break}throw new Error("[".concat(r.data.code,"] ").concat(r.data.message));case 12:return t.abrupt("return",r.data);case 13:if(!n.data.code){t.next=15;break}throw new Error("[".concat(n.data.code,"] ").concat(n.data.message));case 15:return t.abrupt("return",n.data);case 16:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"setRefreshToken",value:function(t){var e=this._cache.keys,a=e.accessTokenKey,n=e.accessTokenExpireKey,r=e.refreshTokenKey;this._cache.removeStore(a),this._cache.removeStore(n),this._cache.setStore(r,t)}}]),t}(),Rt={};function Bt(t){return Rt[t]}var zt=function(){function t(e){(0,p.default)(this,t),this.config=e,this._cache=vt(e.env),this._request=Bt(e.env)}return(0,d.default)(t,[{key:"setRefreshToken",value:function(t){var e=this._cache.keys,a=e.accessTokenKey,n=e.accessTokenExpireKey,r=e.refreshTokenKey;this._cache.removeStore(a),this._cache.removeStore(n),this._cache.setStore(r,t)}},{key:"setAccessToken",value:function(t,e){var a=this._cache.keys,n=a.accessTokenKey,r=a.accessTokenExpireKey;this._cache.setStore(n,t),this._cache.setStore(r,e)}},{key:"refreshUserInfo",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.send("auth.getUserInfo",{});case 2:return e=t.sent,a=e.data,t.abrupt("return",(this.setLocalUserInfo(a),a));case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"setLocalUserInfo",value:function(t){var e=this._cache.keys.userInfoKey;this._cache.setStore(e,t)}}]),t}(),Ut=function(){function t(e){if((0,p.default)(this,t),!e)throw new Error("envId is not defined");this._envId=e,this._cache=vt(this._envId),this._request=Bt(this._envId),this.setUserInfo()}return(0,d.default)(t,[{key:"linkWithTicket",value:function(t){if("string"!=typeof t)throw new Error("ticket must be string");return this._request.send("auth.linkWithTicket",{ticket:t})}},{key:"linkWithRedirect",value:function(t){t.signInWithRedirect()}},{key:"updatePassword",value:function(t,e){return this._request.send("auth.updatePassword",{oldPassword:e,newPassword:t})}},{key:"updateEmail",value:function(t){return this._request.send("auth.updateEmail",{newEmail:t})}},{key:"updateUsername",value:function(t){if("string"!=typeof t)throw new Error("username must be a string");return this._request.send("auth.updateUsername",{username:t})}},{key:"getLinkedUidList",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){var e,a,n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return e=t.sent,a=e.data,n=!1,r=a.users,t.abrupt("return",(r.forEach((function(t){t.wxOpenId&&t.wxPublicId&&(n=!0)})),{users:r,hasPrimaryUid:n}));case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"setPrimaryUid",value:function(t){return this._request.send("auth.setPrimaryUid",{uid:t})}},{key:"unlink",value:function(t){return this._request.send("auth.unlink",{platform:t})}},{key:"update",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){var a,n,r,i,o,s,l,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.nickName,n=e.gender,r=e.avatarUrl,i=e.province,o=e.country,s=e.city,t.next=8,this._request.send("auth.updateUserInfo",{nickName:a,gender:n,avatarUrl:r,province:i,country:o,city:s});case 8:l=t.sent,c=l.data,this.setLocalUserInfo(c);case 11:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"refresh",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.send("auth.getUserInfo",{});case 2:return e=t.sent,a=e.data,t.abrupt("return",(this.setLocalUserInfo(a),a));case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"setUserInfo",value:function(){var t=this,e=this._cache.keys.userInfoKey,a=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(e){t[e]=a[e]})),this.location={country:a.country,province:a.province,city:a.city}}},{key:"setLocalUserInfo",value:function(t){var e=this._cache.keys.userInfoKey;this._cache.setStore(e,t),this.setUserInfo()}}]),t}(),Nt=function(){function t(e){if((0,p.default)(this,t),!e)throw new Error("envId is not defined");this._cache=vt(e);var a=this._cache.keys,n=a.refreshTokenKey,r=a.accessTokenKey,i=a.accessTokenExpireKey,o=this._cache.getStore(n),s=this._cache.getStore(r),l=this._cache.getStore(i);this.credential={refreshToken:o,accessToken:s,accessTokenExpire:l},this.user=new Ut(e)}return(0,d.default)(t,[{key:"isAnonymousAuth",get:function(){return this.loginType===Tt.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===Tt.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===Tt.WECHAT||this.loginType===Tt.WECHAT_OPEN||this.loginType===Tt.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),t}(),Wt=function(t){(0,g.default)(a,t);var e=(0,x.default)(a);function a(){return(0,p.default)(this,a),e.apply(this,arguments)}return(0,d.default)(a,[{key:"signIn",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){var e,a,n,r,i,o,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._cache.updatePersistence("local"),e=this._cache.keys,a=e.anonymousUuidKey,n=e.refreshTokenKey,r=this._cache.getStore(a)||void 0,i=this._cache.getStore(n)||void 0,t.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:r,refresh_token:i});case 8:if(o=t.sent,!o.uuid||!o.refresh_token){t.next=20;break}return this._setAnonymousUUID(o.uuid),this.setRefreshToken(o.refresh_token),t.next=14,this._request.refreshAccessToken();case 14:return St(Pt),St(_t,{env:this.config.env,loginType:Tt.ANONYMOUS,persistence:"local"}),s=new Nt(this.config.env),t.next=19,s.user.refresh();case 19:return t.abrupt("return",s);case 20:throw new Error("匿名登录失败");case 21:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){var a,n,r,i,o,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=this._cache.keys,n=a.anonymousUuidKey,r=a.refreshTokenKey,i=this._cache.getStore(n),o=this._cache.getStore(r),t.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:i,refresh_token:o,ticket:e});case 7:if(s=t.sent,!s.refresh_token){t.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(s.refresh_token),t.next=13,this._request.refreshAccessToken();case 13:return St(Dt,{env:this.config.env}),St(_t,{loginType:Tt.CUSTOM,persistence:"local"}),t.abrupt("return",{credential:{refreshToken:s.refresh_token}});case 16:throw new Error("匿名转化失败");case 17:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"_setAnonymousUUID",value:function(t){var e=this._cache.keys,a=e.anonymousUuidKey,n=e.loginTypeKey;this._cache.removeStore(a),this._cache.setStore(a,t),this._cache.setStore(n,Tt.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),a}(zt),jt=function(t){(0,g.default)(a,t);var e=(0,x.default)(a);function a(){return(0,p.default)(this,a),e.apply(this,arguments)}return(0,d.default)(a,[{key:"signIn",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new Error("ticket must be a string");case 2:return a=this._cache.keys.refreshTokenKey,t.next=5,this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(a)||""});case 5:if(n=t.sent,!n.refresh_token){t.next=15;break}return this.setRefreshToken(n.refresh_token),t.next=10,this._request.refreshAccessToken();case 10:return St(Pt),St(_t,{env:this.config.env,loginType:Tt.CUSTOM,persistence:this.config.persistence}),t.next=14,this.refreshUserInfo();case 14:return t.abrupt("return",new Nt(this.config.env));case 15:throw new Error("自定义登录失败");case 16:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()}]),a}(zt),qt=function(t){(0,g.default)(a,t);var e=(0,x.default)(a);function a(){return(0,p.default)(this,a),e.apply(this,arguments)}return(0,d.default)(a,[{key:"signIn",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e,a){var n,r,i,o,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new Error("email must be a string");case 2:return n=this._cache.keys.refreshTokenKey,t.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:a,refresh_token:this._cache.getStore(n)||""});case 5:if(r=t.sent,i=r.refresh_token,o=r.access_token,s=r.access_token_expire,!i){t.next=22;break}if(this.setRefreshToken(i),!o||!s){t.next=15;break}this.setAccessToken(o,s),t.next=17;break;case 15:return t.next=17,this._request.refreshAccessToken();case 17:return t.next=19,this.refreshUserInfo();case 19:return St(Pt),St(_t,{env:this.config.env,loginType:Tt.EMAIL,persistence:this.config.persistence}),t.abrupt("return",new Nt(this.config.env));case 22:throw r.code?new Error("邮箱登录失败: [".concat(r.code,"] ").concat(r.message)):new Error("邮箱登录失败");case 23:case"end":return t.stop()}}),t,this)})));function e(e,a){return t.apply(this,arguments)}return e}()},{key:"activate",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.activateEndUserMail",{token:e}));case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"resetPasswordWithToken",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e,a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:a}));case 1:case"end":return t.stop()}}),t,this)})));function e(e,a){return t.apply(this,arguments)}return e}()}]),a}(zt),Ht=function(t){(0,g.default)(a,t);var e=(0,x.default)(a);function a(){return(0,p.default)(this,a),e.apply(this,arguments)}return(0,d.default)(a,[{key:"signIn",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e,a){var r,i,o,s,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new Error("username must be a string");case 2:return"string"!=typeof a&&(a="",n.warn("password is empty")),r=this._cache.keys.refreshTokenKey,t.next=6,this._request.send("auth.signIn",{loginType:Tt.USERNAME,username:e,password:a,refresh_token:this._cache.getStore(r)||""});case 6:if(i=t.sent,o=i.refresh_token,s=i.access_token_expire,l=i.access_token,!o){t.next=23;break}if(this.setRefreshToken(o),!l||!s){t.next=16;break}this.setAccessToken(l,s),t.next=18;break;case 16:return t.next=18,this._request.refreshAccessToken();case 18:return t.next=20,this.refreshUserInfo();case 20:return St(Pt),St(_t,{env:this.config.env,loginType:Tt.USERNAME,persistence:this.config.persistence}),t.abrupt("return",new Nt(this.config.env));case 23:throw i.code?new Error("用户名密码登录失败: [".concat(i.code,"] ").concat(i.message)):new Error("用户名密码登录失败");case 24:case"end":return t.stop()}}),t,this)})));function e(e,a){return t.apply(this,arguments)}return e}()}]),a}(zt),Yt=function(){function t(e){(0,p.default)(this,t),this.config=e,this._cache=vt(e.env),this._request=Bt(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),kt(_t,this._onLoginTypeChanged)}return(0,d.default)(t,[{key:"currentUser",get:function(){var t=this.hasLoginState();return t&&t.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new Wt(this.config)}},{key:"customAuthProvider",value:function(){return new jt(this.config)}},{key:"emailAuthProvider",value:function(){return new qt(this.config)}},{key:"usernameAuthProvider",value:function(){return new Ht(this.config)}},{key:"signInAnonymously",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Wt(this.config).signIn());case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"signInWithEmailAndPassword",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e,a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new qt(this.config).signIn(e,a));case 1:case"end":return t.stop()}}),t,this)})));function e(e,a){return t.apply(this,arguments)}return e}()},{key:"signInWithUsernameAndPassword",value:function(t,e){return new Ht(this.config).signIn(t,e)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Wt(this.config)),kt(Dt,this._onAnonymousConverted),t.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"signOut",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){var e,a,n,r,i,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.loginType!==Tt.ANONYMOUS){t.next=2;break}throw new Error("匿名用户不支持登出操作");case 2:if(e=this._cache.keys,a=e.refreshTokenKey,n=e.accessTokenKey,r=e.accessTokenExpireKey,i=this._cache.getStore(a),i){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,this._request.send("auth.logout",{refresh_token:i});case 7:return o=t.sent,t.abrupt("return",(this._cache.removeStore(a),this._cache.removeStore(n),this._cache.removeStore(r),St(Pt),St(_t,{env:this.config.env,loginType:Tt.NULL,persistence:this.config.persistence}),o));case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"signUpWithEmailAndPassword",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e,a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:a}));case 1:case"end":return t.stop()}}),t,this)})));function e(e,a){return t.apply(this,arguments)}return e}()},{key:"sendPasswordResetEmail",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:e}));case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"onLoginStateChanged",value:function(t){var e=this;kt(Pt,(function(){var a=e.hasLoginState();t.call(e,a)}));var a=this.hasLoginState();t.call(this,a)}},{key:"onLoginStateExpired",value:function(t){kt(Ct,t.bind(this))}},{key:"onAccessTokenRefreshed",value:function(t){kt(Mt,t.bind(this))}},{key:"onAnonymousConverted",value:function(t){kt(Dt,t.bind(this))}},{key:"onLoginTypeChanged",value:function(t){var e=this;kt(_t,(function(){var a=e.hasLoginState();t.call(e,a)}))}},{key:"getAccessToken",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.getAccessToken();case 2:return t.t0=t.sent.accessToken,t.t1=this.config.env,t.abrupt("return",{accessToken:t.t0,env:t.t1});case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"hasLoginState",value:function(){var t=this._cache.keys.refreshTokenKey;return this._cache.getStore(t)?new Nt(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new Error("username must be a string");case 2:return t.next=4,this._request.send("auth.isUsernameRegistered",{username:e});case 4:return a=t.sent,n=a.data,t.abrupt("return",n&&n.isRegistered);case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new jt(this.config).signIn(e));case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"shouldRefreshAccessToken",value:function(t){this._request._shouldRefreshAccessTokenHook=t.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(t){return t.code?t:(0,l.default)((0,l.default)({},t.data),{},{requestId:t.seqId})}))}},{key:"getAuthHeader",value:function(){var t=this._cache.keys,e=t.refreshTokenKey,a=t.accessTokenKey,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(a)+"/@@/"+n}}},{key:"_onAnonymousConverted",value:function(t){var e=t.data.env;e===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(t){var e=t.data,a=e.loginType,n=e.persistence,r=e.env;r===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,a))}}]),t}(),Gt=function(t,e){e=e||st();var a=Bt(this.config.env),n=t.cloudPath,r=t.filePath,i=t.onUploadProgress,o=t.fileType,s=void 0===o?"image":o;return a.send("storage.getUploadMetadata",{path:n}).then((function(t){var o=t.data,l=o.url,c=o.authorization,u=o.token,d=o.fileId,h=o.cosFileId,f=t.requestId,p={key:n,signature:c,"x-cos-meta-fileid":h,success_action_status:"201","x-cos-security-token":u};a.upload({url:l,data:p,file:r,name:n,fileType:s,onUploadProgress:i}).then((function(t){201===t.statusCode?e(null,{fileID:d,requestId:f}):e(new Error("STORAGE_REQUEST_FAIL: "+t.data))})).catch((function(t){e(t)}))})).catch((function(t){e(t)})),e.promise},Jt=function(t,e){e=e||st();var a=Bt(this.config.env),n=t.cloudPath;return a.send("storage.getUploadMetadata",{path:n}).then((function(t){e(null,t)})).catch((function(t){e(t)})),e.promise},Kt=function(t,e){var a=t.fileList;if(e=e||st(),!a||!Array.isArray(a))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var n,r=(0,u.default)(a);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!i||"string"!=typeof i)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){r.e(s)}finally{r.f()}var o={fileid_list:a};return Bt(this.config.env).send("storage.batchDeleteFile",o).then((function(t){t.code?e(null,t):e(null,{fileList:t.data.delete_list,requestId:t.requestId})})).catch((function(t){e(t)})),e.promise},Xt=function(t,e){var a=t.fileList;e=e||st(),a&&Array.isArray(a)||e(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var n,r=[],i=(0,u.default)(a);try{for(i.s();!(n=i.n()).done;){var s=n.value;"object"==(0,o.default)(s)?(s.hasOwnProperty("fileID")&&s.hasOwnProperty("maxAge")||e(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),r.push({fileid:s.fileID,max_age:s.maxAge})):"string"==typeof s?r.push({fileid:s}):e(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(c){i.e(c)}finally{i.f()}var l={file_list:r};return Bt(this.config.env).send("storage.batchGetDownloadUrl",l).then((function(t){t.code?e(null,t):e(null,{fileList:t.data.download_list,requestId:t.requestId})})).catch((function(t){e(t)})),e.promise},Qt=function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e,a){var n,r,i,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.fileID,t.next=3,Xt.call(this,{fileList:[{fileID:n,maxAge:600}]});case 3:if(r=t.sent.fileList[0],"SUCCESS"===r.code){t.next=6;break}return t.abrupt("return",a?a(r):new Promise((function(t){t(r)})));case 6:if(i=Bt(this.config.env),o=r.download_url,o=encodeURI(o),a){t.next=10;break}return t.abrupt("return",i.download({url:o}));case 10:return t.t0=a,t.next=13,i.download({url:o});case 13:t.t1=t.sent,(0,t.t0)(t.t1);case 15:case"end":return t.stop()}}),t,this)})));return function(e,a){return t.apply(this,arguments)}}(),Vt=function(t,e){var a,n=t.name,r=t.data,i=t.query,o=t.parse,s=t.search,l=e||st();try{a=r?JSON.stringify(r):""}catch(n){return Promise.reject(n)}if(!n)return Promise.reject(new Error("函数名不能为空"));var c={inQuery:i,parse:o,search:s,function_name:n,request_data:a};return Bt(this.config.env).send("functions.invokeFunction",c).then((function(t){if(t.code)l(null,t);else{var e=t.data.response_data;if(o)l(null,{result:e,requestId:t.requestId});else try{e=JSON.parse(t.data.response_data),l(null,{result:e,requestId:t.requestId})}catch(t){l(new Error("response data must be json"))}}return l.promise})).catch((function(t){l(t)})),l.promise},Zt={timeout:15e3,persistence:"session"},$t={},te=function(){function t(e){(0,p.default)(this,t),this.config=e||this.config,this.authObj=void 0}return(0,d.default)(t,[{key:"init",value:function(e){switch(dt.adapter||(this.requestClient=new dt.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:"请求在".concat((e.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=(0,l.default)((0,l.default)({},Zt),e),!0){case this.config.timeout>6e5:n.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:n.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new t(this.config)}},{key:"auth",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.persistence;if(this.authObj)return this.authObj;var a,n=e||dt.adapter.primaryStorage||Zt.persistence;return n!==this.config.persistence&&(this.config.persistence=n),function(t){var e=t.env;xt[e]=new gt(t),mt[e]=new gt((0,l.default)((0,l.default)({},t),{},{persistence:"local"}))}(this.config),a=this.config,Rt[a.env]=new Et(a),this.authObj=new Yt(this.config),this.authObj}},{key:"on",value:function(t,e){return kt.apply(this,[t,e])}},{key:"off",value:function(t,e){return At.apply(this,[t,e])}},{key:"callFunction",value:function(t,e){return Vt.apply(this,[t,e])}},{key:"deleteFile",value:function(t,e){return Kt.apply(this,[t,e])}},{key:"getTempFileURL",value:function(t,e){return Xt.apply(this,[t,e])}},{key:"downloadFile",value:function(t,e){return Qt.apply(this,[t,e])}},{key:"uploadFile",value:function(t,e){return Gt.apply(this,[t,e])}},{key:"getUploadMetadata",value:function(t,e){return Jt.apply(this,[t,e])}},{key:"registerExtension",value:function(t){$t[t.name]=t}},{key:"invokeExtension",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e,a){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=$t[e],n){t.next=3;break}throw Error("扩展".concat(e," 必须先注册"));case 3:return t.next=5,n.invoke(a,this);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)})));function e(e,a){return t.apply(this,arguments)}return e}()},{key:"useAdapters",value:function(t){var e=ut(t)||{},a=e.adapter,n=e.runtime;a&&(dt.adapter=a),n&&(dt.runtime=n)}}]),t}(),ee=new te;function ae(t,e,a){void 0===a&&(a={});var n=/\?/.test(e),r="";for(var i in a)""===r?!n&&(e+="?"):r+="&",r+=i+"="+encodeURIComponent(a[i]);return/^http(s)?:\/\//.test(e+=r)?e:""+t+e}var ne=function(){function t(){(0,p.default)(this,t)}return(0,d.default)(t,[{key:"post",value:function(t){var e=t.url,a=t.data,n=t.headers;return new Promise((function(t,r){tt.request({url:ae("https:",e),data:a,method:"POST",header:n,success:function(e){t(e)},fail:function(t){r(t)}})}))}},{key:"upload",value:function(t){return new Promise((function(e,a){var r=t.url,i=t.file,o=t.data,s=t.headers,l=t.fileType,c=tt.uploadFile({url:ae("https:",r),name:"file",formData:Object.assign({},o),filePath:i,fileType:l,header:s,success:function(t){var a={statusCode:t.statusCode,data:t.data||{}};200===t.statusCode&&o.success_action_status&&(a.statusCode=parseInt(o.success_action_status,10)),e(a)},fail:function(t){C&&"mp-alipay"===_&&n.warn("支付宝小程序开发工具上传腾讯云时无法准确判断是否上传成功,请使用真机测试"),a(new Error(t.errMsg||"uploadFile:fail"))}});"function"==typeof t.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(e){t.onUploadProgress({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}}]),t}(),re={setItem:function(t,e){tt.setStorageSync(t,e)},getItem:function(t){return tt.getStorageSync(t)},removeItem:function(t){tt.removeStorageSync(t)},clear:function(){tt.clearStorageSync()}},ie={genAdapter:function(){return{root:{},reqClass:ne,localStorage:re,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};ee.useAdapters(ie);var oe=ee,se=oe.init;oe.init=function(t){t.env=t.spaceId;var e=se.call(this,t);e.config.provider="tencent",e.config.spaceId=t.spaceId;var a=e.auth;return e.auth=function(t){var e=a.call(this,t);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(t){e[t]=N(e[t]).bind(e)})),e},e.customAuth=e.auth,e};var le,ce,ue=function(t){(0,g.default)(a,t);var e=(0,x.default)(a);function a(){return(0,p.default)(this,a),e.apply(this,arguments)}return(0,d.default)(a,[{key:"getAccessToken",value:function(){var t=this;return new Promise((function(e,a){t.setAccessToken("Anonymous_Access_token"),e("Anonymous_Access_token")}))}},{key:"setupRequest",value:function(t,e){var a=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};"auth"!==e&&(a.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=$.sign(a,this.config.clientSecret);var r=X(),i=r.APPID,o=r.PLATFORM,s=r.DEVICEID,l=r.CLIENT_SDK_VERSION;return n["x-client-platform"]=o,n["x-client-appid"]=i,n["x-client-device-id"]=s,n["x-client-version"]=l,n["x-client-token"]=tt.getStorageSync("uni_id_token"),{url:this.config.requestUrl,method:"POST",data:a,dataType:"json",header:JSON.parse(JSON.stringify(n))}}},{key:"uploadFileToOSS",value:function(t){var e=this,a=t.url,n=t.formData,r=t.name,i=t.filePath,o=t.fileType,s=t.onUploadProgress;return new Promise((function(t,l){var c=e.adapter.uploadFile({url:a,formData:n,name:r,filePath:i,fileType:o,success:function(e){e&&e.statusCode<400?t(e):l(new H({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(t){l(new H({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(t){s({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(t){var e,a=this,n=t.filePath,r=t.cloudPath,i=t.fileType,o=void 0===i?"image":i,s=t.onUploadProgress;if(!r)throw new H({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getOSSUploadOptionsFromPath({cloudPath:r}).then((function(t){var r=t.result,i=r.url,l=r.formData,c=r.name,u=r.fileUrl;e=u;var d={url:i,formData:l,name:c,filePath:n,fileType:o};return a.uploadFileToOSS(Object.assign({},d,{onUploadProgress:s}))})).then((function(){return a.reportOSSUpload({cloudPath:r})})).then((function(t){return new Promise((function(a,r){t.success?a({success:!0,filePath:n,fileID:e}):r(new H({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}}]),a}(et),de={init:function(t){var e=new ue(t),a={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return a},e.customAuth=e.auth,e}};function he(t){var e=t.name,a=t.data,n=t.spaceId,r=t.provider;le||(le=X(),ce={ak:W.appid,p:"android"===q?"a":"i",ut:V(),uuid:Q()});var i=JSON.parse(JSON.stringify(a||{})),o=e,s=n,l={tencent:"t",aliyun:"a"}[r],c=Object.assign({},ce,{fn:o,sid:s,pvd:l});Object.assign(i,{clientInfo:le,uniCloudClientInfo:encodeURIComponent(JSON.stringify(c))});var u=uni.getSystemInfoSync(),d=u.deviceId;if(i.uniCloudDeviceId=d,!i.uniIdToken){var h=tt.getStorageSync("uni_id_token")||tt.getStorageSync("uniIdToken");h&&(i.uniIdToken=h)}return i}function fe(t){var e=this,a=t.name,r=t.data,i=this.localAddress,o=this.localPort,s={aliyun:"aliyun",tencent:"tcb"}[this.config.provider],l=this.config.spaceId,c="http://".concat(i,":").concat(o,"/system/check-function"),u="http://".concat(i,":").concat(o,"/cloudfunctions/").concat(a);return new Promise((function(t,e){tt.request({method:"POST",url:c,data:{name:a,platform:_,provider:s,spaceId:l},timeout:3e3,success:function(e){t(e)},fail:function(){t({data:{code:"NETWORK_ERROR",message:"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"}})}})})).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,a=e||{},n=a.code,r=a.message;return{code:0===n?0:n||"SYS_ERR",message:r||"SYS_ERR"}})).then((function(t){var i=t.code,o=t.message;if(0!==i){switch(i){case"MODULE_ENCRYPTED":n.error("此云函数(".concat(a,")依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数"));break;case"FUNCTION_ENCRYPTED":n.error("此云函数(".concat(a,")已加密不可本地调试,自动切换为云端已部署的云函数"));break;case"ACTION_ENCRYPTED":n.error(o||"需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case"NETWORK_ERROR":var c="连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";throw n.error(c),new Error(c);case"SWITCH_TO_CLOUD":break;default:var d="检测本地调试服务出现错误:".concat(o,",请检查网络环境或重启客户端再试");throw n.error(d),new Error(d)}return e._originCallFunction({name:a,data:r})}return new Promise((function(t,n){var i=he({name:a,data:r,provider:e.config.provider,spaceId:l});tt.request({method:"POST",url:u,data:{provider:s,platform:_,param:i},success:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.statusCode,r=e.data;return!a||a>=400?n(new H({code:r.code||"SYS_ERR",message:r.message||"request:fail"})):t({result:r})},fail:function(t){n(new H({code:t.code||t.errCode||"SYS_ERR",message:t.message||t.errMsg||"request:fail"}))}})}))}))}var pe=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],ge=/[\\^$.*+?()[\]{}|]/g,xe=RegExp(ge.source);function me(t,e,a){return t.replace(new RegExp((n=e)&&xe.test(n)?n.replace(ge,"\\$&"):n,"g"),a);var n}function ve(t){var e=t.functionName,a=t.result,r=t.logPvd;if(this.config.useDebugFunction&&a&&a.requestId){var i=JSON.stringify({spaceId:this.config.spaceId,functionName:e,requestId:a.requestId});n.log("[".concat(r,"-request]").concat(i,"[/").concat(r,"-request]"))}}function ye(t){var e=t.callFunction,a=function(t){var a=this,n=t.name;t.data=he({name:n,data:t.data,provider:this.config.provider,spaceId:this.config.spaceId});var r={aliyun:"aliyun",tencent:"tcb"}[this.config.provider];return e.call(this,t).then((function(t){return ve.call(a,{functionName:n,result:t,logPvd:r}),Promise.resolve(t)}),(function(e){return ve.call(a,{functionName:n,result:e,logPvd:r}),e&&e.message&&(e.message=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.message,a=void 0===e?"":e,n=t.extraInfo,r=void 0===n?{}:n,i=t.formatter,o=void 0===i?[]:i,s=0;s2&&void 0!==arguments[2]?arguments[2]:5,n=arguments.length>3?arguments[3]:void 0;(e=Object.assign({},e)).errMsg="chooseAndUploadFile:ok";var r=e.tempFiles,i=r.length,o=0;return new Promise((function(s){for(;o=i)!r.find((function(t){return!t.url&&!t.errMsg}))&&s(e);else{var c=r[a];t.uploadFile({filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,onUploadProgress:function(t){t.index=a,t.tempFile=c,t.tempFilePath=c.path,n&&n(t)}}).then((function(t){c.url=t.fileID,a0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===e.type?r(t,function(t){var e=t.count,r=t.sizeType,i=t.sourceType,o=void 0===i?["album","camera"]:i,s=t.extension;return new Promise((function(t,i){uni.chooseImage({count:e,sizeType:r,sourceType:o,extension:s,success:function(e){t(n(e,"image"))},fail:function(t){i({errMsg:t.errMsg.replace("chooseImage:fail",a)})}})}))}(e),e):"video"===e.type?r(t,function(t){var e=t.camera,r=t.compressed,i=t.maxDuration,o=t.sourceType,s=void 0===o?["album","camera"]:o,l=t.extension;return new Promise((function(t,o){uni.chooseVideo({camera:e,compressed:r,maxDuration:i,sourceType:s,extension:l,success:function(e){var a=e.tempFilePath,r=e.duration,i=e.size,o=e.height,s=e.width;t(n({errMsg:"chooseVideo:ok",tempFilePaths:[a],tempFiles:[{name:e.tempFile&&e.tempFile.name||"",path:a,size:i,type:e.tempFile&&e.tempFile.type||"",width:s,height:o,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(t){o({errMsg:t.errMsg.replace("chooseVideo:fail",a)})}})}))}(e),e):r(t,function(t){var e=t.count,r=t.extension;return new Promise((function(t,i){var o=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return i({errMsg:a+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:e,extension:r,success:function(e){t(n(e))},fail:function(t){i({errMsg:t.errMsg.replace("chooseFile:fail",a)})}})}))}(e),e)}}}))),Te="manual";function Pe(t){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},collection:{type:String,default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}},created:function(){var t=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(a){e.push(t[a])})),e}),(function(e,a){if(t.loadtime!==Te){for(var n=!1,r=[],i=2;i0&&void 0!==arguments[0]?arguments[0]:{},a=e.getone,n=void 0!==a&&a,r=e.success,i=e.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((function(e){t.mixinDatacomLoading=!1;var a=e.result,i=a.data,o=a.count;t.getcount&&(t.mixinDatacomPage.count=o),t.mixinDatacomHasMore=i.length0&&void 0!==arguments[0]?arguments[0]:{},a=t.database(),n=e.action||this.action;n&&(a=a.action(n));var r=e.collection||this.collection;a=a.collection(r);var i=e.where||this.where;i&&Object.keys(i).length&&(a=a.where(i));var o=e.field||this.field;o&&(a=a.field(o));var s=e.foreignKey||this.foreignKey;s&&(a=a.foreignKey(s));var l=e.groupby||this.groupby;l&&(a=a.groupBy(l));var c=e.groupField||this.groupField;c&&(a=a.groupField(c)),!0===(void 0!==e.distinct?e.distinct:this.distinct)&&(a=a.distinct());var u=e.orderby||this.orderby;u&&(a=a.orderBy(u));var d=void 0!==e.pageCurrent?e.pageCurrent:this.mixinDatacomPage.current,h=void 0!==e.pageSize?e.pageSize:this.mixinDatacomPage.size,f=void 0!==e.getcount?e.getcount:this.getcount,p=void 0!==e.gettree?e.gettree:this.gettree,g=void 0!==e.gettreepath?e.gettreepath:this.gettreepath,x={getCount:f},m={limitLevel:void 0!==e.limitlevel?e.limitlevel:this.limitlevel,startWith:void 0!==e.startwith?e.startwith:this.startwith};return p&&(x.getTree=m),g&&(x.getTreePath=m),a=a.skip(h*(d-1)).limit(h).get(x),a}}}}function Ce(t,e){return _e.apply(this,arguments)}function _e(){return _e=(0,s.default)(regeneratorRuntime.mark((function t(e,a){var n,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n="http://".concat(e,":").concat(a,"/system/ping"),t.prev=1,t.next=4,i={url:n,timeout:500},new Promise((function(t,e){tt.request((0,l.default)((0,l.default)({},i),{},{success:function(e){t(e)},fail:function(t){e(t)}}))}));case 4:return r=t.sent,t.abrupt("return",!(!r.data||0!==r.data.code));case 8:return t.prev=8,t.t0=t["catch"](1),t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t,null,[[1,8]])}))),_e.apply(this,arguments)}var De=new(function(){function t(){(0,p.default)(this,t)}return(0,d.default)(t,[{key:"init",value:function(t){var e={},a=!1!==t.debugFunction&&C&&("h5"===_&&navigator.userAgent.indexOf("HBuilderX")>0||"app-plus"===_);switch(t.provider){case"tencent":e=oe.init(Object.assign(t,{useDebugFunction:a}));break;case"aliyun":e=at.init(Object.assign(t,{useDebugFunction:a}));break;case"private":e=de.init(Object.assign(t,{useDebugFunction:a}));break;default:throw new Error("未提供正确的provider参数")}var r=D;C&&r&&!r.code&&(e.debugInfo=r);var i,o=Promise.resolve();i=1,o=new Promise((function(t,e){setTimeout((function(){t()}),i)})),e.isReady=!1,e.isDefault=!1;var l=e.auth();return e.initUniCloud=o.then((function(){return l.getLoginState()})).then((function(t){return t?Promise.resolve():l.signInAnonymously()})).then((function(){if(C&&e.debugInfo){var t=e.debugInfo,a=t.address,n=t.servePort;return function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e,a){var n,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:r=0;case 1:if(!(r0&&void 0!==arguments[0]?arguments[0]:{},a=t.address,r=t.port;if(!C)return Promise.resolve();if(a)e.localAddress=a,e.localPort=r;else if(e.debugInfo){var i=n["app-plus"===_?"error":"warn"];"remote"===e.debugInfo.initialLaunchType?(e.debugInfo.forceRemote=!0,i("当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs")):i("无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs")}})).then((function(){return function(){C&&"h5"===_&&uni.getStorageSync("__LAST_DCLOUD_APPID")!==W.appid&&(uni.setStorageSync("__LAST_DCLOUD_APPID",W.appid),uni.removeStorageSync("uni_id_token")&&(n.warn("检测到当前项目与上次运行到此端口的项目不一致,自动清理uni-id保存的token信息(仅开发调试时生效)"),uni.removeStorageSync("uni_id_token"),uni.removeStorageSync("uni_id_token_expired")))}(),new Promise((function(t){"quickapp-native"===_?(q="android",uni.getStorage({key:"__DC_CLOUD_UUID",success:function(e){j=e.data?e.data:K(32),t()}})):setTimeout((function(){q=uni.getSystemInfoSync().platform,j=uni.getStorageSync("__DC_CLOUD_UUID")||K(32),t()}),0)}))})).then((function(){e.isReady=!0})),ye(e),function(t){var e=t.uploadFile;t.uploadFile=function(t){var a,n=this;return a=this.isReady?Promise.resolve():this.initUniCloud,a.then((function(){return e.call(n,t)}))}}(e),function(t){t.database=function(){if(this._database)return this._database;var e={},a={};function r(r){var i=r.action,o=r.command,s=r.multiCommand;return z(U("database","invoke")).then((function(){return t.callFunction({name:"DCloud-clientDB",data:{action:i,command:o,multiCommand:s}})})).then((function(t){var r=t.result,i=r.code,o=r.message,s=r.token,l=r.tokenExpired,c=r.systemInfo,u=void 0===c?[]:c;if(u)for(var d=0;d-1}function l(t,e){return we(new i(t,e),{get:function(t,e){var a="db";return t&&t.content&&(a=t.content.$method),s(a,e)?l({$method:e},t):function(){return l({$method:e,$param:ke(Array.from(arguments))},t)}},set:function(t,e,a){t[e]=a}})}function u(t){var e=t.path,a=t.method;return function(){function t(){(0,p.default)(this,t),this.param=Array.from(arguments)}return(0,d.default)(t,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,c.default)(e.map((function(t){return{$method:t}}))),[{$method:a,$param:this.param}])}}}]),t}()}var h={auth:{on:function(t,a){e[t]=e[t]||[],e[t].indexOf(a)>-1||e[t].push(a)},off:function(t,a){e[t]=e[t]||[];var n=e[t].indexOf(a);-1!==n&&e[t].splice(n,1)}},on:function(t,e){a[t]=a[t]||[],a[t].indexOf(e)>-1||a[t].push(e)},off:function(t,e){a[t]=a[t]||[];var n=a[t].indexOf(e);-1!==n&&a[t].splice(n,1)},env:we({},{get:function(t,e){return{$env:e}}}),Geo:we({},{get:function(t,e){return u({path:["Geo"],method:e})}}),getCloudEnv:function(t){if("string"!=typeof t||!t.trim())throw new Error("getCloudEnv参数错误");return{$env:t.replace("$cloudEnv_","")}},multiSend:function(){var t=Array.from(arguments);return r({multiCommand:t.map((function(t){var e=t.getAction(),a=t.getCommand();if("getTemp"!==a.$db[a.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:e,command:a}}))}).then((function(e){for(var a=0;a0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":F?"应用未关联服务空间,请在uniCloud目录右键关联服务空间":"uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间",r.forEach((function(t){De[t]=function(){return n.error(a),Promise.reject(new H({code:"SYS_ERR",message:a}))}}))}Object.assign(De,{get mixinDatacom(){return Pe(De)}}),De.addInterceptor=R,De.removeInterceptor=B,C&&"h5"===_&&(window.uniCloud=De)})();var Me=De,Fe=Me;e.default=Fe}).call(this,a("c8ba"),a("5a52")["default"],a("4362"))},accc:function(t,e,a){var n=a("23e7"),r=a("64e5");n({target:"Date",proto:!0,forced:Date.prototype.toISOString!==r},{toISOString:r})},ad54:function(t,e,a){"use strict";a.r(e);var n=a("a5a5"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},ad83:function(t,e,a){"use strict";(function(t,e){var n=a("278c"),r=a("7037");a("d3b7"),a("25f0"),a("4160"),a("159b"),a("b680"),a("ac1f"),a("5319"),a("e25e"),a("c975"),a("1276"),a("13d5"),a("99af"),a("d81d"),a("4de4"),a("fb6a"),a("4e82"),a("26e9"),a("cb29");var i={version:"v2.3.3-20210706",yAxisWidth:15,yAxisSplit:5,xAxisHeight:22,xAxisLineHeight:22,legendHeight:15,yAxisTitleWidth:15,padding:[10,10,10,10],pixelRatio:1,rotate:!1,columePadding:3,fontSize:13,fontColor:"#666666",dataPointShape:["circle","circle","circle","circle"],color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],linearColor:["#0EE2F8","#2BDCA8","#FA7D8D","#EB88E2","#2AE3A0","#0EE2F8","#EB88E2","#6773E3","#F78A85"],pieChartLinePadding:15,pieChartTextPadding:5,xAxisTextPadding:3,titleColor:"#333333",titleFontSize:20,subtitleColor:"#999999",subtitleFontSize:15,toolTipPadding:3,toolTipBackground:"#000000",toolTipOpacity:.7,toolTipLineHeight:20,radarLabelTextMargin:13,gaugeLabelTextMargin:13},o=function(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),n=1;nt.end.x||e.end.xt.start.y||e.start.y=0?(s=0,t.uevent.trigger("scrollLeft"),t.scrollOption.position="left",r.xAxis.scrollPosition="left"):Math.abs(e)>=o-i?(s=i-o,t.uevent.trigger("scrollRight"),t.scrollOption.position="right",r.xAxis.scrollPosition="right"):(t.scrollOption.position=e,r.xAxis.scrollPosition=e),s}function f(t,e,a){function n(t){while(t<0)t+=2*Math.PI;while(t>2*Math.PI)t-=2*Math.PI;return t}return t=n(t),e=n(e),a=n(a),e>a&&(a+=2*Math.PI,t=e&&t<=a}function p(t,e,a){var n=t,r=a-e,i=n+(a-r-n)/Math.sqrt(2);i*=-1;var o=(a-r)*(Math.sqrt(2)-1)-(a-r-n)/Math.sqrt(2);return{transX:i,transY:o}}function g(t,e){function a(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].y>=Math.max(t[e-1].y,t[e+1].y)||t[e].y<=Math.min(t[e-1].y,t[e+1].y))}function n(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].x>=Math.max(t[e-1].x,t[e+1].x)||t[e].x<=Math.min(t[e-1].x,t[e+1].x))}var r=.2,i=.2,o=null,s=null,l=null,c=null;if(e<1?(o=t[0].x+(t[1].x-t[0].x)*r,s=t[0].y+(t[1].y-t[0].y)*r):(o=t[e].x+(t[e+1].x-t[e-1].x)*r,s=t[e].y+(t[e+1].y-t[e-1].y)*r),e>t.length-3){var u=t.length-1;l=t[u].x-(t[u].x-t[u-1].x)*i,c=t[u].y-(t[u].y-t[u-1].y)*i}else l=t[e+1].x-(t[e+2].x-t[e].x)*i,c=t[e+1].y-(t[e+2].y-t[e].y)*i;return a(t,e+1)&&(c=t[e+1].y),a(t,e)&&(s=t[e].y),n(t,e+1)&&(l=t[e+1].x),n(t,e)&&(o=t[e].x),(s>=Math.max(t[e].y,t[e+1].y)||s<=Math.min(t[e].y,t[e+1].y))&&(s=t[e].y),(c>=Math.max(t[e].y,t[e+1].y)||c<=Math.min(t[e].y,t[e+1].y))&&(c=t[e+1].y),(o>=Math.max(t[e].x,t[e+1].x)||o<=Math.min(t[e].x,t[e+1].x))&&(o=t[e].x),(l>=Math.max(t[e].x,t[e+1].x)||l<=Math.min(t[e].x,t[e+1].x))&&(l=t[e+1].x),{ctrA:{x:o,y:s},ctrB:{x:l,y:c}}}function x(t,e,a){return{x:a.x+t,y:a.y-e}}function m(t,e){if(e)while(s.isCollision(t,e))t.start.x>0?t.start.y--:t.start.x<0||t.start.y>0?t.start.y++:t.start.y--;return t}function v(t,e,a){var n=[];if(t.length>0&&t[0].data.constructor.toString().indexOf("Array")>-1){e._pieSeries_=t;for(var r=t[0].data,i=0;i=1e4?1e3:n>=1e3?100:n>=100?10:n>=10?5:n>=1?1:n>=.1?.1:n>=.01?.01:n>=.001?.001:n>=1e-4?1e-4:n>=1e-5?1e-5:1e-6,{minRange:u(t,"lower",a),maxRange:u(e,"upper",a)}}function k(t,e,a){var n=0;if(t=String(t),!1!==a&&void 0!==a&&a.setFontSize&&a.measureText)return a.setFontSize(e),a.measureText(t).width;t=t.split("");for(var r=0;r-1;if(i)for(var o=L(t),s=0;s5&&void 0!==arguments[5]?arguments[5]:{},o=e.chartData.calPoints?e.chartData.calPoints:[],s={};if(n.length>0){for(var l=[],c=0;c0&&(n=r[a]),{text:i.formatter?i.formatter(t,n,a,e):t.name+": "+t.data,color:t.color}})),d={x:Math.round(s.x),y:Math.round(s.y)};return{textList:u,offset:d}}function M(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=e.chartData.xAxisPoints[a]+e.chartData.eachSpacing/2,o=t.map((function(t){return{text:r.formatter?r.formatter(t,n[a],a,e):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));o=o.filter((function(t){if(!0!==t.disableLegend)return t}));var s={x:Math.round(i),y:0};return{textList:o,offset:s}}function F(t,e,a,n,r,i){var o=a.chartData.calPoints,s=i.color.upFill,l=i.color.downFill,c=[s,s,l,s],u=[];e.map((function(e){0==n?e.data[1]-e.data[0]<0?c[1]=l:c[1]=s:(e.data[0]t[n-1][1]&&(c[2]=s),e.data[3]4&&void 0!==arguments[4]?arguments[4]:0,i={index:-1,group:[]},o=a.chartData.eachSpacing/2,s=[];if(e&&e.length>0){if(a.categories){for(var l=1;le&&(i.index=a)}));else{for(var c=Array(e.length),u=0;u4&&void 0!==arguments[4]?arguments[4]:0,i={index:-1,group:[]},o=a.chartData.eachSpacing/2,s=a.chartData.yAxisPoints;return e&&e.length>0&&B(t,a,n)&&s.forEach((function(e,a){t.y+r+o>e&&(i.index=a)})),i}function E(t,e,a){var n=-1,r=0;if(R(t,e.area)){for(var i=e.points,o=-1,s=0,l=i.length;sd[0]-r&&t.xd[1]-r&&t.ye.start.x&&t.xe.start.y&&t.y=e.area[3]-10&&t.y>=e.area[0]&&t.y<=e.height-e.area[2]}function z(t,e,a){var n=2*Math.PI/a,r=-1;if(H(t,e.center,e.radius)){var i=function(t){return t<0&&(t+=2*Math.PI),t>2*Math.PI&&(t-=2*Math.PI),t},o=Math.atan2(e.center.y-t.y,t.x-e.center.x);o*=-1,o<0&&(o+=2*Math.PI);var s=e.angleList.map((function(t){return t=i(-1*t),t}));s.forEach((function(t,e){var a=i(t-n/2),s=i(t+n/2);s=a&&o<=s||o+2*Math.PI>=a&&o+2*Math.PI<=s)&&(r=e)}))}return r}function U(t,e){for(var a=-1,n=0,r=e.series.length;ni.funnelArea[0]&&t.xi.funnelArea[1]&&t.yi.area[0]&&t.xi.area[1]&&t.ye.width-e.area[1]-e.area[3]?(h.push(g),p.push(f-e.legend.itemGap*e.pix),f=v,g=[m]):(f+=v,g.push(m))}if(g.length){h.push(g),p.push(f-e.legend.itemGap*e.pix),i.widthArr=p;var y=Math.max.apply(null,p);switch(e.legend.float){case"left":i.area.start.x=e.area[3],i.area.end.x=e.area[3]+y+2*o;break;case"right":i.area.start.x=e.width-e.area[1]-y-2*o,i.area.end.x=e.width-e.area[1];break;default:i.area.start.x=(e.width-y)/2-o,i.area.end.x=(e.width+y)/2+o}i.area.width=y+2*o,i.area.wholeWidth=y+2*o,i.area.height=h.length*d+2*o,i.area.wholeHeight=h.length*d+2*o+2*s,i.points=h}}else{var b=t.length,w=e.height-e.area[0]-e.area[2]-2*s-2*o,S=Math.min(Math.floor(w/d),b);switch(i.area.height=S*d+2*o,i.area.wholeHeight=S*d+2*o,e.legend.float){case"top":i.area.start.y=e.area[0]+s,i.area.end.y=e.area[0]+s+i.area.height;break;case"bottom":i.area.start.y=e.height-e.area[2]-s-i.area.height,i.area.end.y=e.height-e.area[2]-s;break;default:i.area.start.y=(e.height-i.area.height)/2,i.area.end.y=(e.height+i.area.height)/2}for(var A=b%S===0?b/S:Math.floor(b/S+1),T=[],P=0;PM&&(M=L)}i.widthArr.push(M),i.heightArr.push(D.length*d+2*o)}for(var I=0,O=0;On&&(i.angle=45*Math.PI/180,i.xAxisHeight=2*a.xAxisTextPadding+s*Math.sin(i.angle)),i}function K(t,e,a,n){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;i="stack"==n?A(t,e.categories.length):S(t);var s=[];i=i.filter((function(t){return"object"===r(t)&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),i.map((function(t){"object"===r(t)?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){s.push(t)})):s.push(t[0]):s.push(t.value):s.push(t)}));var l=0,c=0;if(s.length>0&&(l=Math.min.apply(this,s),c=Math.max.apply(this,s)),o>-1?("number"===typeof e.xAxis.data[o].min&&(l=Math.min(e.xAxis.data[o].min,l)),"number"===typeof e.xAxis.data[o].max&&(c=Math.max(e.xAxis.data[o].max,c))):("number"===typeof e.xAxis.min&&(l=Math.min(e.xAxis.min,l)),"number"===typeof e.xAxis.max&&(c=Math.max(e.xAxis.max,c))),l===c){var u=c||10;c+=u}for(var d=l,h=c,f=[],p=(h-d)/e.xAxis.splitNumber,g=0;g<=e.xAxis.splitNumber;g++)f.push(d+p*g);return f}function X(t,e,a,n){var r=o({},{type:""},e.extra.bar),i={angle:0,xAxisHeight:a.xAxisHeight};i.ranges=K(t,e,a,r.type),i.rangesFormat=i.ranges.map((function(t){return t=s.toFixed(t,2),t}));var l=i.ranges.map((function(t){return t=s.toFixed(t,2),t}));i=Object.assign(i,ct(l,e,a));var c=i.eachSpacing,u=l.map((function(t){return k(t,e.xAxis.fontSize*e.pix||a.fontSize,n)})),d=Math.max.apply(this,u);return d+2*a.xAxisTextPadding>c&&(i.angle=45*Math.PI/180,i.xAxisHeight=2*a.xAxisTextPadding+d*Math.sin(i.angle)),!0===e.xAxis.disabled&&(i.xAxisHeight=0),i}function Q(t,e,a,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=r.extra.radar||{};o.max=o.max||0;for(var s=Math.max(o.max,Math.max.apply(null,S(n))),l=[],c=function(r){var o=n[r],c={};c.color=o.color,c.legendShape=o.legendShape,c.pointShape=o.pointShape,c.data=[],o.data.forEach((function(n,r){var o={};o.angle=t[r],o.proportion=n/s,o.value=n,o.position=x(a*o.proportion*i*Math.cos(o.angle),a*o.proportion*i*Math.sin(o.angle),e),c.data.push(o)})),l.push(c)},u=0;u2&&void 0!==arguments[2]?arguments[2]:1,n=0,r=0,i=0;i4&&void 0!==arguments[4]?arguments[4]:1;t=t.sort((function(t,e){return parseInt(e.data)-parseInt(t.data)}));for(var i=0;i4&&void 0!==arguments[4]?arguments[4]:1,i=0,o=0,s=[],l=0;l2&&void 0!==arguments[2]?arguments[2]:1;1==a&&(a=.999999);for(var n=0;n=2&&(r._proportion_=r._proportion_%2)}return t}function et(t,e,a){for(var n=e-a+1,r=e,i=0;i=2&&(t[i]._endAngle_=t[i]._endAngle_%2),r=t[i]._endAngle_;return t}function at(t,e,a){for(var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=0;r=a.oldData?i._proportion_=(i._endAngle_-i._oldAngle_)*n+a.oldAngle:i._proportion_=i._oldAngle_-(i._oldAngle_-i._endAngle_)*n,i._proportion_>=2&&(i._proportion_=i._proportion_%2)}return t}function nt(t,e,a,n){t=V(t);for(var r=0,i=0;i0&&(t.width=Math.min(t.width,+i.extra.mix.column.width*i.pix)),i.extra.column&&i.extra.column.width&&+i.extra.column.width>0&&(t.width=Math.min(t.width,+i.extra.column.width*i.pix)),t.width<=0&&(t.width=1),t.x+=(n+.5-a/2)*(t.width+r),t}))}function it(t,e,a,n,r,i){return t.map((function(t){if(null===t)return null;var r=0,o=0;return r=i.extra.bar.seriesGap*i.pix||0,o=i.extra.bar.categoryGap*i.pix||0,r=Math.min(r,e/a),o=Math.min(o,e/a),t.width=Math.ceil((e-2*o-r*(a-1))/a),i.extra.bar&&i.extra.bar.width&&+i.extra.bar.width>0&&(t.width=Math.min(t.width,+i.extra.bar.width*i.pix)),t.width<=0&&(t.width=1),t.y+=(n+.5-a/2)*(t.width+r),t}))}function ot(t,e,a,n,r,i,o){var s=i.extra.column.categoryGap*i.pix||0;return t.map((function(t){return null===t?null:(t.width=Math.ceil(e-2*s),i.extra.column&&i.extra.column.width&&+i.extra.column.width>0&&(t.width=Math.min(t.width,+i.extra.column.width*i.pix)),n>0&&(t.width-=2*o),t)}))}function st(t,e,a,n,r,i,o){var s=i.extra.column.categoryGap*i.pix||0;return t.map((function(t,a){return null===t?null:(t.width=Math.ceil(e-2*s),i.extra.column&&i.extra.column.width&&+i.extra.column.width>0&&(t.width=Math.min(t.width,+i.extra.column.width*i.pix)),t.width<=0&&(t.width=1),t)}))}function lt(t,e,a,n,r,i,o){var s=i.extra.bar.categoryGap*i.pix||0;return t.map((function(t,a){return null===t?null:(t.width=Math.ceil(e-2*s),i.extra.bar&&i.extra.bar.width&&+i.extra.bar.width>0&&(t.width=Math.min(t.width,+i.extra.bar.width*i.pix)),t.width<=0&&(t.width=1),t)}))}function ct(t,e,a){var n=e.width-e.area[1]-e.area[3],r=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type||"scatter"==e.type||"bubble"==e.type||"bar"==e.type)&&r>1&&"justify"==e.xAxis.boundaryGap&&(r-=1);var i=n/r,o=[],s=e.area[3],l=e.width-e.area[1];return t.forEach((function(t,e){o.push(s+e*i)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?o.push(s+t.length*i):o.push(l)),{xAxisPoints:o,startX:s,endX:l,eachSpacing:i}}function ut(t,e,a,n,r,i,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=i.height-i.area[0]-i.area[2];return t.forEach((function(t,o){if(null===t)l.push(null);else{var u=[];t.forEach((function(t,l){var d={};d.x=n[o]+Math.round(r/2);var h=t.value||t,f=c*(h-e)/(a-e);f*=s,d.y=i.height-Math.round(f)-i.area[2],u.push(d)})),l.push(u)}})),l}function dt(t,e,a,n,i,o,s){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c="center";"line"!=o.type&&"area"!=o.type&&"scatter"!=o.type&&"bubble"!=o.type||(c=o.xAxis.boundaryGap);var u=[],d=o.height-o.area[0]-o.area[2],h=o.width-o.area[1]-o.area[3];return t.forEach((function(t,s){if(null===t)u.push(null);else{var f={};f.color=t.color,f.x=n[s];var p,g,x,m=t;if("object"===r(t)&&null!==t)if(t.constructor.toString().indexOf("Array")>-1)p=[].concat(o.chartData.xAxisData.ranges),g=p.shift(),x=p.pop(),m=t[1],f.x=o.area[3]+h*(t[0]-g)/(x-g),"bubble"==o.type&&(f.r=t[2],f.t=t[3]);else m=t.value;"center"==c&&(f.x+=i/2);var v=d*(m-e)/(a-e);v*=l,f.y=o.height-v-o.area[2],u.push(f)}})),u}function ht(t,e,a,n,i,o,s){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c=[],u=(o.height,o.area[0],o.area[2],o.width-o.area[1]-o.area[3]);return t.forEach((function(t,i){if(null===t)c.push(null);else{var s={};s.color=t.color,s.y=n[i];var d=t;"object"===r(t)&&null!==t&&(d=t.value);var h=u*(d-e)/(a-e);h*=l,s.height=h,s.value=d,s.x=h+o.area[3],c.push(s)}})),c}function ft(t,e,a,n,r,i,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,u=[],d=i.height-i.area[0]-i.area[2];return t.forEach((function(t,o){if(null===t)u.push(null);else{var h={};if(h.color=t.color,h.x=n[o]+Math.round(r/2),s>0){for(var f=0,p=0;p<=s;p++)f+=l[p].data[o];var g=f-t,x=d*(f-e)/(a-e),m=d*(g-e)/(a-e)}else f=t,x=d*(f-e)/(a-e),m=0;var v=m;x*=c,v*=c,h.y=i.height-Math.round(x)-i.area[2],h.y0=i.height-Math.round(v)-i.area[2],u.push(h)}})),u}function pt(t,e,a,n,r,i,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,u=[],d=i.width-i.area[1]-i.area[3];return t.forEach((function(t,r){if(null===t)u.push(null);else{var o={};if(o.color=t.color,o.y=n[r],s>0){for(var h=0,f=0;f<=s;f++)h+=l[f].data[r];var p=h-t,g=d*(h-e)/(a-e),x=d*(p-e)/(a-e)}else h=t,g=d*(h-e)/(a-e),x=0;var m=x;g*=c,m*=c,o.height=g-m,o.x=i.area[3]+g,o.x0=i.area[3]+m,u.push(o)}})),u}function gt(t,e,a,n,i){var o;o="stack"==n?A(t,e.categories.length):S(t);var s=[];o=o.filter((function(t){return"object"===r(t)&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),o.map((function(t){"object"===r(t)?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){s.push(t)})):s.push(t[1]):s.push(t.value):s.push(t)}));var l=i.min||0,c=i.max||0;if(s.length>0&&(l=Math.min.apply(this,s),c=Math.max.apply(this,s)),l===c){var u=c||10;c+=u}for(var d=w(l,c),h=void 0===i.min||null===i.min?d.minRange:i.min,f=void 0===i.max||null===i.min?d.maxRange:i.max,p=[],g=(f-h)/e.yAxis.splitNumber,x=0;x<=e.yAxis.splitNumber;x++)p.push(h+g*x);return p.reverse()}function xt(t,e,a,n){var r=o({},{type:""},e.extra.column),i=e.yAxis.data.length,s=new Array(i);if(i>0){for(var l=0;l-1?o[l][1]:o[l].value);var d=e.formatter?e.formatter(u,l):u;n.setTextAlign("center"),n.fillText(String(d),t.x,t.y-4+s*i.pix),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function St(t,e,a,n,i){var o=e.data;e.textOffset&&e.textOffset;t.forEach((function(t,s){if(null!==t){n.beginPath();var l=e.textSize?e.textSize*i.pix:a.fontSize;n.setFontSize(l),n.setFillStyle(e.textColor||i.fontColor);var c=o[s];"object"===r(o[s])&&null!==o[s]&&(c=o[s].value);var u=e.formatter?e.formatter(c,s):c;n.setTextAlign("left"),n.fillText(String(u),t.x+4*i.pix,t.y+l/2-3),n.closePath(),n.stroke()}}))}function At(t,e,a,n,r,i){e-=t.width/2+t.labelOffset*n.pix;for(var o=t.startAngle-t.endAngle+1,s=o/t.splitLine.splitNumber,l=t.endNumber-t.startNumber,c=l/t.splitLine.splitNumber,u=t.startAngle,d=t.startNumber,h=0;h=2&&(u%=2),d+=c}}function Tt(t,e,a,n,r,i){var o=n.extra.radar||{};e+=r.radarLabelTextMargin*n.pix,t.forEach((function(t,l){var c={x:e*Math.cos(t),y:e*Math.sin(t)},u=x(c.x,c.y,a),d=u.x,h=u.y;s.approximatelyEqual(c.x,0)?d-=k(n.categories[l]||"",r.fontSize,i)/2:c.x<0&&(d-=k(n.categories[l]||"",r.fontSize,i)),i.beginPath(),i.setFontSize(r.fontSize),i.setFillStyle(o.labelColor||n.fontColor),i.fillText(n.categories[l]||"",d,h+r.fontSize/2),i.closePath(),i.stroke()}))}function Pt(t,e,a,n,r,i){for(var o=a.pieChartLinePadding,l=[],c=null,u=t.map((function(t,e,a){var n=t.formatter?t.formatter(t,e,a):s.toFixed(100*t._proportion_.toFixed(4))+"%",r=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2);t._rose_proportion_&&(r=2*Math.PI-(t._start_+2*Math.PI*t._rose_proportion_/2));var i=t.color,o=t._radius_;return{arc:r,text:n,color:i,radius:o,textColor:t.textColor,textSize:t.textSize}})),d=0;d=0?f+a.pieChartTextPadding:f-a.pieChartTextPadding,b=p,w=k(h.text,h.textSize*e.pix||a.fontSize,n),S=b;c&&s.isSameXCoordinateArea(c.start,{x:y})&&(S=y>0?Math.min(b,c.start.y):f<0||b>0?Math.max(b,c.start.y):Math.min(b,c.start.y)),y<0&&(y-=w);var A={lineStart:{x:g,y:v},lineEnd:{x:f,y:p},start:{x:y,y:S},width:w,height:a.fontSize,text:h.text,color:h.color,textColor:h.textColor,textSize:h.textSize};c=m(A,c),l.push(c)}for(var T=0;Ta.width&&(f=!0),x+e.y>a.height&&(e.y=a.height-x),r.beginPath(),r.setFillStyle(c(l.bgColor||n.toolTipBackground,l.bgOpacity||n.toolTipOpacity)),r.setLineWidth(l.borderWidth*a.pix),r.setStrokeStyle(c(l.borderColor,l.borderOpacity));var m=l.borderRadius;f?(l.showArrow&&(r.moveTo(e.x,e.y+10*a.pix),r.lineTo(e.x-h,e.y+10*a.pix+5*a.pix)),r.arc(e.x-h-m,e.y+x-m,m,0,Math.PI/2,!1),r.arc(e.x-h-Math.round(g)+m,e.y+x-m,m,Math.PI/2,Math.PI,!1),r.arc(e.x-h-Math.round(g)+m,e.y+m,m,-Math.PI,-Math.PI/2,!1),r.arc(e.x-h-m,e.y+m,m,-Math.PI/2,0,!1),l.showArrow&&(r.lineTo(e.x-h,e.y+10*a.pix-5*a.pix),r.lineTo(e.x,e.y+10*a.pix))):(l.showArrow&&(r.moveTo(e.x,e.y+10*a.pix),r.lineTo(e.x+h,e.y+10*a.pix-5*a.pix)),r.arc(e.x+h+m,e.y+m,m,-Math.PI,-Math.PI/2,!1),r.arc(e.x+h+Math.round(g)-m,e.y+m,m,-Math.PI/2,0,!1),r.arc(e.x+h+Math.round(g)-m,e.y+x-m,m,0,Math.PI/2,!1),r.arc(e.x+h+m,e.y+x-m,m,Math.PI/2,Math.PI,!1),l.showArrow&&(r.lineTo(e.x+h,e.y+10*a.pix+5*a.pix),r.lineTo(e.x,e.y+10*a.pix))),r.closePath(),r.fill(),l.borderWidth>0&&r.stroke(),t.forEach((function(t,a){if(null!==t.color){r.beginPath(),r.setFillStyle(t.color);var i=e.x+h+2*n.toolTipPadding,o=e.y+(n.toolTipLineHeight-n.fontSize)/2+n.toolTipLineHeight*a+n.toolTipPadding+1;f&&(i=e.x-g-h+2*n.toolTipPadding),r.fillRect(i,o,u,n.fontSize),r.closePath()}})),t.forEach((function(t,a){var i=e.x+h+2*n.toolTipPadding+u+d;f&&(i=e.x-g-h+2*n.toolTipPadding+ +u+d);var o=e.y+(n.toolTipLineHeight-n.fontSize)/2+n.toolTipLineHeight*a+n.toolTipPadding;r.beginPath(),r.setFontSize(n.fontSize),r.setFillStyle(l.fontColor),r.fillText(t.text,i,o+n.fontSize),r.closePath(),r.stroke()}))}}function It(t,e,a,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=e.chartData.xAxisData,l=s.xAxisPoints,u=s.eachSpacing,d=o({},{type:"group",width:u/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.column),h=[];r.save();var f=-2,p=l.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),f=Math.floor(-e._scrollDistance_/u)-2,p=f+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===i&&Mt(e.tooltip.offset.x,e,a,r,u),d.customColor=b(d.linearType,d.customColor,t,a),t.forEach((function(o,s){var g,x,m;g=[].concat(e.chartData.yAxisData.ranges[o.index]),x=g.pop(),m=g.shift();var v=o.data;switch(d.type){case"group":var y=dt(v,x,m,l,u,e,a,i),b=ft(v,x,m,l,u,e,a,s,t,i);h.push(b),y=rt(y,u,t.length,s,a,e);for(var w=0;wf&&wB?B:I,O=O>B?B:O,E=E>B?B:E,R=R>B?B:R,I=I<0?0:I,O=O<0?0:O,E=E<0?0:E,R=R<0?0:R,r.arc(_+I,D+I,I,-Math.PI,-Math.PI/2),r.arc(_+M-O,D+O,O,-Math.PI/2,0),r.arc(_+M-E,D+F-E,E,0,Math.PI/2),r.arc(_+R,D+F-R,R,Math.PI/2,Math.PI)}else r.moveTo(S,k.y),r.lineTo(S+k.width-2,k.y),r.lineTo(S+k.width-2,e.height-e.area[2]),r.lineTo(S,e.height-e.area[2]),r.lineTo(S,k.y),r.setLineWidth(1),r.setStrokeStyle(P);r.setFillStyle(T),r.closePath(),r.fill()}}break;case"stack":y=ft(v,x,m,l,u,e,a,s,t,i);h.push(y),y=st(y,u,t.length,s,a,e,t);for(var z=0;zf&&z0&&(A-=N),r.setFillStyle(T),r.moveTo(S,U.y),r.fillRect(S,U.y,U.width-2,A),r.closePath(),r.fill()}}break;case"meter":y=dt(v,x,m,l,u,e,a,i);if(h.push(y),y=ot(y,u,t.length,s,a,e,d.meterBorder),0==s)for(var W=0;Wf&&WA&&(q=A),r.moveTo(S+d.meterBorder,e.height-e.area[2]),r.lineTo(S+d.meterBorder,j.y+q),r.arc(S+j.width/2,j.y+q,q,-Math.PI,0),r.lineTo(S+j.width-d.meterBorder,e.height-e.area[2]),r.lineTo(S,e.height-e.area[2]),r.fill()}else r.moveTo(S,j.y),r.fillRect(S,j.y,j.width,A),r.closePath(),r.fill();if(d.meterBorder>0){if(r.beginPath(),r.setStrokeStyle(o.color),r.setLineWidth(d.meterBorder*e.pix),d.barBorderCircle){q=(j.width-d.meterBorder)/2;q>A&&(q=A),r.moveTo(S+.5*d.meterBorder,e.height-e.area[2]),r.lineTo(S+.5*d.meterBorder,j.y+q),r.arc(S+j.width/2,j.y+q-.5*d.meterBorder,q,-Math.PI,0),r.lineTo(S+j.width-.5*d.meterBorder,e.height-e.area[2])}else r.moveTo(S+.5*d.meterBorder,j.y+A),r.lineTo(S+.5*d.meterBorder,j.y+.5*d.meterBorder),r.lineTo(S+j.width-.5*d.meterBorder,j.y+.5*d.meterBorder),r.lineTo(S+j.width-.5*d.meterBorder,j.y+A);r.stroke()}}}else for(var H=0;Hf&&HA&&(q=A),r.moveTo(S,e.height-e.area[2]),r.arc(S+q,Y.y+q,q,-Math.PI,-Math.PI/2),r.arc(S+Y.width-q,Y.y+q,q,-Math.PI/2,0),r.lineTo(S+Y.width,e.height-e.area[2]),r.lineTo(S,e.height-e.area[2]),r.fill()}else r.moveTo(S,Y.y),r.fillRect(S,Y.y,Y.width,A),r.closePath(),r.fill()}}break}})),!1!==e.dataLabel&&1===i&&t.forEach((function(n,o){var s,c,h;s=[].concat(e.chartData.yAxisData.ranges[n.index]),c=s.pop(),h=s.shift();var f=n.data;switch(d.type){case"group":var p=dt(f,c,h,l,u,e,a,i);p=rt(p,u,t.length,o,a,e),kt(p,n,a,r,e);break;case"stack":p=ft(f,c,h,l,u,e,a,o,t,i);kt(p,n,a,r,e);break;case"meter":p=dt(f,c,h,l,u,e,a,i);kt(p,n,a,r,e);break}})),r.restore(),{xAxisPoints:l,calPoints:h,eachSpacing:u}}function Ot(t,e,a,r){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=[],l=(e.height-e.area[0]-e.area[2])/e.categories.length,u=0;uf&&wF&&(I=F,E=0,O=F,R=0),I+E>D/2&&(I=D/2,O=D/2,E=0,R=0),I=I<0?0:I,O=O<0?0:O,E=E<0?0:E,R=R<0?0:R,r.arc(_+R,M+R,R,-Math.PI,-Math.PI/2),r.arc(k.x-I,M+I,I,-Math.PI/2,0),r.arc(k.x-O,M+D-O,O,0,Math.PI/2),r.arc(_+E,M+D-E,E,Math.PI/2,Math.PI)}else r.moveTo(S,A),r.lineTo(k.x,A),r.lineTo(k.x,A+k.width-2),r.lineTo(S,A+k.width-2),r.lineTo(S,A),r.setLineWidth(1),r.setStrokeStyle(P);r.setFillStyle(T),r.closePath(),r.fill()}}break;case"stack":y=pt(v,x,m,s,l,e,a,u,t,i);h.push(y),y=lt(y,l,t.length,u,a,e,t);for(var B=0;Bf&&B5&&void 0!==arguments[5]?arguments[5]:1,s=o({},{color:{},average:{}},a.extra.candle);s.color=o({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},s.color),s.average=o({},{show:!1,name:[],day:[],color:n.color},s.average),a.extra.candle=s;var l=a.chartData.xAxisData,c=l.xAxisPoints,u=l.eachSpacing,d=[];r.save();var h=-2,f=c.length+2,p=0,x=a.width+u;return a._scrollDistance_&&0!==a._scrollDistance_&&!0===a.enableScroll&&(r.translate(a._scrollDistance_,0),h=Math.floor(-a._scrollDistance_/u)-2,f=h+a.xAxis.itemCount+4,p=-a._scrollDistance_-2*u+a.area[3],x=p+(a.xAxis.itemCount+4)*u),(s.average.show||e)&&e.forEach((function(t,e){var o,s,l;o=[].concat(a.chartData.yAxisData.ranges[t.index]),s=o.pop(),l=o.shift();for(var d=t.data,h=dt(d,s,l,c,u,a,n,i),f=Y(h,t),m=0;mp&&(r.moveTo(w.x,w.y),y=1),b>0&&w.x>p&&w.xh&&v0?(r.setStrokeStyle(s.color.upLine),r.setFillStyle(s.color.upFill),r.setLineWidth(1*a.pix),r.moveTo(y[3].x,y[3].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[1].x-u/4,y[1].y),r.lineTo(y[0].x-u/4,y[0].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[2].x,y[2].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[0].x+u/4,y[0].y),r.lineTo(y[1].x+u/4,y[1].y),r.lineTo(y[1].x,y[1].y),r.moveTo(y[3].x,y[3].y)):(r.setStrokeStyle(s.color.downLine),r.setFillStyle(s.color.downFill),r.setLineWidth(1*a.pix),r.moveTo(y[3].x,y[3].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[0].x-u/4,y[0].y),r.lineTo(y[1].x-u/4,y[1].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[2].x,y[2].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[1].x+u/4,y[1].y),r.lineTo(y[0].x+u/4,y[0].y),r.lineTo(y[0].x,y[0].y),r.moveTo(y[3].x,y[3].y)),r.closePath(),r.fill(),r.stroke()}})),r.restore(),{xAxisPoints:c,calPoints:d,eachSpacing:u}}function Rt(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=o({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),s=e.chartData.xAxisData,l=s.xAxisPoints,u=s.eachSpacing,d=e.height-e.area[2],h=[];n.save();var f=0,p=e.width+u;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),f=-e._scrollDistance_-2*u+e.area[3],p=f+(e.xAxis.itemCount+4)*u),t.forEach((function(t,o){var s,x,m;s=[].concat(e.chartData.yAxisData.ranges[t.index]),x=s.pop(),m=s.shift();var v=t.data,y=dt(v,x,m,l,u,e,a,r);h.push(y);for(var b=Y(y,t),w=0;w1){var A=k[0],T=k[k.length-1];n.moveTo(A.x,A.y);var P=0;if("curve"===i.type)for(var C=0;Cf&&(n.moveTo(_.x,_.y),P=1),C>0&&_.x>f&&_.xf&&(n.moveTo(F.x,F.y),P=1),M>0&&F.x>f&&F.xf&&(n.moveTo(I.x,I.y),P=1),L>0&&I.x>f&&I.xf&&(n.moveTo(z.x,z.y),R=1),B>0&&z.x>f&&z.xf&&(n.moveTo(W.x,W.y),R=1),N>0&&W.x>f&&W.xf&&(n.moveTo(q.x,q.y),R=1),j>0&&q.x>f&&q.x4&&void 0!==arguments[4]?arguments[4]:1,i=(o({},{type:"circle"},e.extra.scatter),e.chartData.xAxisData),s=i.xAxisPoints,l=i.eachSpacing,c=[];n.save();var u=0;e.width;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),u=-e._scrollDistance_-2*l+e.area[3],u+(e.xAxis.itemCount+4)*l),t.forEach((function(t,i){var o,c,u;o=[].concat(e.chartData.yAxisData.ranges[t.index]),c=o.pop(),u=o.shift();var d=t.data,h=dt(d,c,u,s,l,e,a,r);n.beginPath(),n.setStrokeStyle(t.color),n.setFillStyle(t.color),n.setLineWidth(1*e.pix);var f=t.pointShape;if("diamond"===f)h.forEach((function(t,e){null!==t&&(n.moveTo(t.x,t.y-4.5),n.lineTo(t.x-4.5,t.y),n.lineTo(t.x,t.y+4.5),n.lineTo(t.x+4.5,t.y),n.lineTo(t.x,t.y-4.5))}));else if("circle"===f)h.forEach((function(t,a){null!==t&&(n.moveTo(t.x+2.5*e.pix,t.y),n.arc(t.x,t.y,3*e.pix,0,2*Math.PI,!1))}));else if("square"===f)h.forEach((function(t,e){null!==t&&(n.moveTo(t.x-3.5,t.y-3.5),n.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===f)h.forEach((function(t,e){null!==t&&(n.moveTo(t.x,t.y-4.5),n.lineTo(t.x-4.5,t.y+4.5),n.lineTo(t.x+4.5,t.y+4.5),n.lineTo(t.x,t.y-4.5))}));else if("triangle"===f)return;n.closePath(),n.fill(),n.stroke()})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,i){var o,c,u;o=[].concat(e.chartData.yAxisData.ranges[t.index]),c=o.pop(),u=o.shift();var d=t.data,h=dt(d,c,u,s,l,e,a,r);kt(h,t,a,n,e)})),n.restore(),{xAxisPoints:s,calPoints:c,eachSpacing:l}}function zt(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=o({},{opacity:1,border:2},e.extra.bubble),s=e.chartData.xAxisData,l=s.xAxisPoints,u=s.eachSpacing,d=[];n.save();var h=0;e.width;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),h=-e._scrollDistance_-2*u+e.area[3],h+(e.xAxis.itemCount+4)*u),t.forEach((function(o,s){var d,h,f;d=[].concat(e.chartData.yAxisData.ranges[o.index]),h=d.pop(),f=d.shift();var p=o.data,g=dt(p,h,f,l,u,e,a,r);n.beginPath(),n.setStrokeStyle(o.color),n.setLineWidth(i.border*e.pix),n.setFillStyle(c(o.color,i.opacity)),g.forEach((function(t,a){n.moveTo(t.x+t.r,t.y),n.arc(t.x,t.y,t.r*e.pix,0,2*Math.PI,!1)})),n.closePath(),n.fill(),n.stroke(),!1!==e.dataLabel&&1===r&&g.forEach((function(r,i){n.beginPath();var o=t.textSize*e.pix||a.fontSize;n.setFontSize(o),n.setFillStyle(t.textColor||"#FFFFFF"),n.setTextAlign("center"),n.fillText(String(r.t),r.x,r.y+o/2),n.closePath(),n.stroke(),n.setTextAlign("left")}))})),n.restore(),{xAxisPoints:l,calPoints:d,eachSpacing:u}}function Ut(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=o({},{type:"straight",width:2},e.extra.line);i.width*=e.pix;var s=e.chartData.xAxisData,l=s.xAxisPoints,c=s.eachSpacing,u=[];n.save();var d=0,h=e.width+c;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),d=-e._scrollDistance_-2*c+e.area[3],h=d+(e.xAxis.itemCount+4)*c),t.forEach((function(t,o){var s,f,p;s=[].concat(e.chartData.yAxisData.ranges[t.index]),f=s.pop(),p=s.shift();var x=t.data,m=dt(x,f,p,l,c,e,a,r);u.push(m);var v=Y(m,t);if("dash"==t.lineType){var y=t.dashLength?t.dashLength:8;y*=e.pix,n.setLineDash([y,y])}n.beginPath(),n.setStrokeStyle(t.color),n.setLineWidth(i.width),v.forEach((function(t,e){if(1===t.length)n.moveTo(t[0].x,t[0].y),n.arc(t[0].x,t[0].y,1,0,2*Math.PI);else{n.moveTo(t[0].x,t[0].y);var a=0;if("curve"===i.type)for(var r=0;rd&&(n.moveTo(o.x,o.y),a=1),r>0&&o.x>d&&o.xd&&(n.moveTo(c.x,c.y),a=1),l>0&&c.x>d&&c.xd&&(n.moveTo(f.x,f.y),a=1),u>0&&f.x>d&&f.x4&&void 0!==arguments[4]?arguments[4]:1,s=o({},{width:d/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.mix.column),l=e.chartData.xAxisData,u=l.xAxisPoints,d=l.eachSpacing,h=e.height-e.area[2],f=[],p=0,x=0;t.forEach((function(t,e){"column"==t.type&&(x+=1)})),r.save();var m=-2,v=u.length+2,y=0,w=e.width+d;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),m=Math.floor(-e._scrollDistance_/d)-2,v=m+e.xAxis.itemCount+4,y=-e._scrollDistance_-2*d+e.area[3],w=y+(e.xAxis.itemCount+4)*d),s.customColor=b(s.linearType,s.customColor,t,a),t.forEach((function(t,o){var l,b,k;l=[].concat(e.chartData.yAxisData.ranges[t.index]),b=l.pop(),k=l.shift();var S=t.data,A=dt(S,b,k,u,d,e,a,i);if(f.push(A),"column"==t.type){A=rt(A,d,x,p,a,e);for(var T=0;Tm&&TN?N:R,B=B>N?N:B,z=z>N?N:z,U=U>N?N:U,R=R<0?0:R,B=B<0?0:B,z=z<0?0:z,U=U<0?0:U,r.arc(F+R,L+R,R,-Math.PI,-Math.PI/2),r.arc(F+I-B,L+B,B,-Math.PI/2,0),r.arc(F+I-z,L+O-z,z,0,Math.PI/2),r.arc(F+U,L+O-U,U,Math.PI/2,Math.PI)}else r.moveTo(C,P.y),r.lineTo(C+P.width-2,P.y),r.lineTo(C+P.width-2,e.height-e.area[2]),r.lineTo(C,e.height-e.area[2]),r.lineTo(C,P.y),r.setLineWidth(1),r.setStrokeStyle(D);r.setFillStyle(_),r.closePath(),r.fill()}}p+=1}if("area"==t.type)for(var W=Y(A,t),j=0;j1){var H=q[0],G=q[q.length-1];r.moveTo(H.x,H.y);var J=0;if("curve"===t.style)for(var K=0;Ky&&(r.moveTo(X.x,X.y),J=1),K>0&&X.x>y&&X.xy&&(r.moveTo(Z.x,Z.y),J=1),V>0&&Z.x>y&&Z.xy&&(r.moveTo(l.x,l.y),o=1),s>0&&l.x>y&&l.xy&&(r.moveTo(d.x,d.y),o=1),u>0&&d.x>y&&d.x0&&(n.beginPath(),n.moveTo(t-l/2,u),n.lineTo(t-l/2,u+3*e.pix),n.closePath(),n.stroke())}))),!0!==e.xAxis.disableGrid&&(n.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),n.setLineCap("butt"),n.setLineWidth(1*e.pix),"dash"==e.xAxis.gridType&&n.setLineDash([e.xAxis.dashLength*e.pix,e.xAxis.dashLength*e.pix]),e.xAxis.gridEval=e.xAxis.gridEval||1,i.forEach((function(t,a){a%e.xAxis.gridEval==0&&(n.beginPath(),n.moveTo(t,u),n.lineTo(t,d),n.stroke())})),n.setLineDash([])),!0!==e.xAxis.disabled){var v=t.length;e.xAxis.labelCount&&(v=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,v-=1);for(var y=Math.ceil(t.length/v),b=[],w=t.length,S=0;S4&&void 0!==arguments[4]?arguments[4]:1,i=o({},{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,ringWidth:30,customRadius:0,border:!1,borderWidth:2,borderColor:"#FFFFFF",centerColor:"#FFFFFF",linearType:"none",customColor:[]},"pie"==e.type?e.extra.pie:e.extra.ring),s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2};0==a.pieChartLinePadding&&(a.pieChartLinePadding=i.activeRadius*e.pix);var l=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding);i.customRadius>0&&(l=i.customRadius*e.pix),t=V(t,l,r);var u=i.activeRadius*e.pix;if(i.customColor=b(i.linearType,i.customColor,t,a),t=t.map((function(t){return t._start_+=i.offsetAngle*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(n.beginPath(),n.setFillStyle(c(t.color,i.activeOpacity||.5)),n.moveTo(s.x,s.y),n.arc(s.x,s.y,t._radius_+u,t._start_,t._start_+2*t._proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(i.borderWidth*e.pix),n.lineJoin="round",n.setStrokeStyle(i.borderColor);var r,o=t.color;"custom"==i.linearType&&(r=n.createCircularGradient?n.createCircularGradient(s.x,s.y,t._radius_):n.createRadialGradient(s.x,s.y,0,s.x,s.y,t._radius_),r.addColorStop(0,c(i.customColor[t.linearIndex],1)),r.addColorStop(1,c(t.color,1)),o=r);n.setFillStyle(o),n.moveTo(s.x,s.y),n.arc(s.x,s.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),n.closePath(),n.fill(),1==i.border&&n.stroke()})),"ring"===e.type){var d=.6*l;"number"===typeof i.ringWidth&&i.ringWidth>0&&(d=Math.max(0,l-i.ringWidth*e.pix)),n.beginPath(),n.setFillStyle(i.centerColor),n.moveTo(s.x,s.y),n.arc(s.x,s.y,d,0,2*Math.PI),n.closePath(),n.fill()}if(!1!==e.dataLabel&&1===r){for(var h=!1,f=0,p=t.length;f0){h=!0;break}h&&Pt(t,e,a,n,l,s)}return 1===r&&"ring"===e.type&&wt(e,a,n,s),{center:s,radius:l,series:t}}function Jt(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=o({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},e.extra.rose);0==a.pieChartLinePadding&&(a.pieChartLinePadding=i.activeRadius*e.pix);var s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},l=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding),u=i.minRadius||.5*l;t=$(t,i.type,u,l,r);var d=i.activeRadius*e.pix;if(i.customColor=b(i.linearType,i.customColor,t,a),t=t.map((function(t){return t._start_+=(i.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(n.beginPath(),n.setFillStyle(c(t.color,i.activeOpacity||.5)),n.moveTo(s.x,s.y),n.arc(s.x,s.y,d+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(i.borderWidth*e.pix),n.lineJoin="round",n.setStrokeStyle(i.borderColor);var r,o=t.color;"custom"==i.linearType&&(r=n.createCircularGradient?n.createCircularGradient(s.x,s.y,t._radius_):n.createRadialGradient(s.x,s.y,0,s.x,s.y,t._radius_),r.addColorStop(0,c(i.customColor[t.linearIndex],1)),r.addColorStop(1,c(t.color,1)),o=r);n.setFillStyle(o),n.moveTo(s.x,s.y),n.arc(s.x,s.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),n.closePath(),n.fill(),1==i.border&&n.stroke()})),!1!==e.dataLabel&&1===r){for(var h=!1,f=0,p=t.length;f0){h=!0;break}h&&Pt(t,e,a,n,l,s)}return{center:s,radius:l,series:t}}function Kt(t,e,a,n){var r,i,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=o({},{startAngle:.75,endAngle:.25,type:"default",width:12,gap:2,linearType:"none",customColor:[]},e.extra.arcbar);t=tt(t,l,s),r=l.centerX||l.centerY?{x:l.centerX?l.centerX:e.width/2,y:l.centerY?l.centerY:e.height/2}:{x:e.width/2,y:e.height/2},l.radius?i=l.radius:(i=Math.min(r.x,r.y),i-=5*e.pix,i-=l.width/2),l.customColor=b(l.linearType,l.customColor,t,a);for(var u=0;u5&&void 0!==arguments[5]?arguments[5]:1,s=o({},{type:"default",startAngle:.75,endAngle:.25,width:15,labelOffset:13,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},a.extra.gauge);void 0==s.oldAngle&&(s.oldAngle=s.startAngle),void 0==s.oldData&&(s.oldData=0),t=et(t,s.startAngle,s.endAngle);var l={x:a.width/2,y:a.height/2},u=Math.min(l.x,l.y);u-=5*a.pix,u-=s.width/2;var d=u-s.width,h=0;if("progress"==s.type){var f=u-3*s.width;r.beginPath();var p=r.createLinearGradient(l.x,l.y-f,l.x,l.y+f);p.addColorStop("0",c(e[0].color,.3)),p.addColorStop("1.0",c("#FFFFFF",.1)),r.setFillStyle(p),r.arc(l.x,l.y,f,0,2*Math.PI,!1),r.fill(),r.setLineWidth(s.width),r.setStrokeStyle(c(e[0].color,.3)),r.setLineCap("round"),r.beginPath(),r.arc(l.x,l.y,d,s.startAngle*Math.PI,s.endAngle*Math.PI,!1),r.stroke(),h=s.startAngle-s.endAngle+1;s.splitLine.splitNumber;var g=h/s.splitLine.splitNumber/s.splitLine.childNumber,x=-u-.5*s.width-s.splitLine.fixRadius,m=-u-s.width-s.splitLine.fixRadius+s.splitLine.width;r.save(),r.translate(l.x,l.y),r.rotate((s.startAngle-1)*Math.PI);for(var v=s.splitLine.splitNumber*s.splitLine.childNumber+1,y=e[0].data*i,b=0;bb/v?r.setStrokeStyle(c(e[0].color,1)):r.setStrokeStyle(c(e[0].color,.3)),r.setLineWidth(3*a.pix),r.moveTo(x,0),r.lineTo(m,0),r.stroke(),r.rotate(g*Math.PI);r.restore(),e=tt(e,s,i),r.setLineWidth(s.width),r.setStrokeStyle(e[0].color),r.setLineCap("round"),r.beginPath(),r.arc(l.x,l.y,d,s.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),r.stroke();var w=u-2.5*s.width;r.save(),r.translate(l.x,l.y),r.rotate((e[0]._proportion_-1)*Math.PI),r.beginPath(),r.setLineWidth(s.width/3);var k=r.createLinearGradient(0,.6*-w,0,.6*w);k.addColorStop("0",c("#FFFFFF",0)),k.addColorStop("0.5",c(e[0].color,1)),k.addColorStop("1.0",c("#FFFFFF",0)),r.setStrokeStyle(k),r.arc(0,0,w,.85*Math.PI,1.15*Math.PI,!1),r.stroke(),r.beginPath(),r.setLineWidth(1),r.setStrokeStyle(e[0].color),r.setFillStyle(e[0].color),r.moveTo(-w-s.width/3/2,-4),r.lineTo(-w-s.width/3/2-4,0),r.lineTo(-w-s.width/3/2,4),r.lineTo(-w-s.width/3/2,-4),r.stroke(),r.fill(),r.restore()}else{r.setLineWidth(s.width),r.setLineCap("butt");for(var S=0;S4&&void 0!==arguments[4]?arguments[4]:1,i=o({},{gridColor:"#cccccc",gridType:"radar",opacity:.2,gridCount:3,border:!1,borderWidth:2},e.extra.radar),s=_(e.categories.length),l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},u=(e.width-e.area[1]-e.area[3])/2,d=(e.height-e.area[0]-e.area[2])/2,h=Math.min(u-(C(e.categories,a.fontSize,n)+a.radarLabelTextMargin),d-a.radarLabelTextMargin);h-=a.radarLabelTextMargin*e.pix,n.beginPath(),n.setLineWidth(1*e.pix),n.setStrokeStyle(i.gridColor),s.forEach((function(t){var e=x(h*Math.cos(t),h*Math.sin(t),l);n.moveTo(l.x,l.y),n.lineTo(e.x,e.y)})),n.stroke(),n.closePath();for(var f=function(t){var a={};if(n.beginPath(),n.setLineWidth(1*e.pix),n.setStrokeStyle(i.gridColor),"radar"==i.gridType)s.forEach((function(e,r){var o=x(h/i.gridCount*t*Math.cos(e),h/i.gridCount*t*Math.sin(e),l);0===r?(a=o,n.moveTo(o.x,o.y)):n.lineTo(o.x,o.y)})),n.lineTo(a.x,a.y);else{var r=x(h/i.gridCount*t*Math.cos(1.5),h/i.gridCount*t*Math.sin(1.5),l);n.arc(l.x,l.y,l.y-r.y,0,2*Math.PI,!1)}n.stroke(),n.closePath()},p=1;p<=i.gridCount;p++)f(p);var g=Q(s,l,h,t,e,r);return g.forEach((function(t,a){if(n.beginPath(),n.setLineWidth(i.borderWidth*e.pix),n.setStrokeStyle(t.color),n.setFillStyle(c(t.color,i.opacity)),t.data.forEach((function(t,e){0===e?n.moveTo(t.position.x,t.position.y):n.lineTo(t.position.x,t.position.y)})),n.closePath(),n.fill(),!0===i.border&&n.stroke(),n.closePath(),!1!==e.dataPointShape){var r=t.data.map((function(t){return t.position}));bt(r,t.color,t.pointShape,n,e)}})),Tt(s,h,l,e,a,n),!1!==e.dataLabel&&1===r&&(g.forEach((function(t,r){n.beginPath();var i=t.textSize*e.pix||a.fontSize;n.setFontSize(i),n.setFillStyle(t.textColor||e.fontColor),t.data.forEach((function(t,e){Math.abs(t.position.x-l.x)<2?t.position.ye[i].area[2]||t[1]>e[i].area[3]||t[2]a||t[3]>n){r=!0;break}r=!1}return r}function $t(t){var e,a={};a.xMin=180,a.xMax=0,a.yMin=90,a.yMax=0;for(var n=0;nc.x?a.xMax:c.x,a.yMin=a.yMinc.y?a.yMax:c.y}}return a}function te(t,e,a,n,r,i){return{x:(e-a.xMin)*n+r,y:(a.yMax-t)*n+i}}function ee(t,e,a,n,r,i){return{x:(e-r)/n+a.xMin,y:a.yMax-(t-i)/n}}function ae(t,e,a){if(e[1]==a[1])return!1;if(e[1]>t[1]&&a[1]>t[1])return!1;if(e[1]t[1])return!1;if(a[1]==t[1]&&e[1]>t[1])return!1;if(e[0].7},p=0;p4&&void 0!==arguments[4]?arguments[4]:1,i=o({},{type:"normal",autoColors:!0},e.extra.word);e.chartData.wordCloudData||(e.chartData.wordCloudData=ie(e,i.type,n)),n.beginPath(),n.setFillStyle(e.background),n.rect(0,0,e.width,e.height),n.fill(),n.save();var s=e.chartData.wordCloudData;n.translate(e.width/2,e.height/2);for(var l=0;l0&&(e.tooltip&&e.tooltip.index==l?n.strokeText(c,(s[l].areav[0]+5-e.width/2)*r-d*(1-r)/2,(s[l].areav[1]+5+u-e.height/2)*r):n.fillText(c,(s[l].areav[0]+5-e.width/2)*r-d*(1-r)/2,(s[l].areav[1]+5+u-e.height/2)*r)):s[l].area[0]>0&&(e.tooltip&&e.tooltip.index==l?n.strokeText(c,(s[l].area[0]+5-e.width/2)*r-d*(1-r)/2,(s[l].area[1]+5+u-e.height/2)*r):n.fillText(c,(s[l].area[0]+5-e.width/2)*r-d*(1-r)/2,(s[l].area[1]+5+u-e.height/2)*r)),n.stroke(),n.restore()}n.restore()}function se(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=o({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right",linearType:"none",customColor:[]},e.extra.funnel),s=(e.height-e.area[0]-e.area[2])/t.length,l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},u=i.activeWidth*e.pix,d=Math.min((e.width-e.area[1]-e.area[3])/2-u,(e.height-e.area[0]-e.area[2])/2-u);if(t=Z(t,d,i.type,s,r),n.save(),n.translate(l.x,l.y),i.customColor=b(i.linearType,i.customColor,t,a),"pyramid"==i.type)for(var h=0;h0?m[A].width+e.yAxis.padding*e.pix:m[A].width,S+=1):"right"==m[A].position&&(e.area[1]+=k>0?m[A].width+e.yAxis.padding*e.pix:m[A].width,k+=1)}else a.yAxisWidth=m;if(e.chartData.yAxisData=x,e.categories&&e.categories.length&&"radar"!==e.type&&"gauge"!==e.type&&"bar"!==e.type){e.chartData.xAxisData=ct(e.categories,e,a);var T=J(e.categories,e,a,e.chartData.xAxisData.eachSpacing,n),P=T.xAxisHeight,C=T.angle;a.xAxisHeight=P,a._xAxisTextAngle_=C,e.area[2]+=P,e.chartData.categoriesData=T}else if("line"===e.type||"area"===e.type||"scatter"===e.type||"bubble"===e.type||"bar"===e.type){e.chartData.xAxisData=X(i,e,a,n),s=e.chartData.xAxisData.rangesFormat;var _=J(s,e,a,e.chartData.xAxisData.eachSpacing,n),D=_.xAxisHeight,M=_.angle;a.xAxisHeight=D,a._xAxisTextAngle_=M,e.area[2]+=D,e.chartData.categoriesData=_}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var F=0,I=e.chartData.xAxisData.xAxisPoints,O=e.chartData.xAxisData.startX,E=e.chartData.xAxisData.endX,R=e.chartData.xAxisData.eachSpacing,B=R*(I.length-1),z=E-O;F=z-B,r.scrollOption={currentOffset:F,startTouchX:F,distance:0,lastMoveTime:0},e._scrollDistance_=F}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(a._pieTextMaxLength_=!1===e.dataLabel?0:nt(c,a,n,e)),t){case"word":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),oe(i,e,a,n,t),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"map":n.clearRect(0,0,e.width,e.height),re(i,e,a,n);break;case"funnel":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),e.chartData.funnelData=se(i,e,a,n,t),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"line":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),qt(s,e,a,n),jt(s,e,a,n);var r=Ut(i,e,a,n,t),o=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ht(i,e,a,n),!1!==e.enableMarkLine&&1===t&&_t(e,a,n),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t,c,o),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"scatter":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),qt(s,e,a,n),jt(s,e,a,n);var r=Bt(i,e,a,n,t),o=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ht(i,e,a,n),!1!==e.enableMarkLine&&1===t&&_t(e,a,n),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t,c,o),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),qt(s,e,a,n),jt(s,e,a,n);var r=zt(i,e,a,n,t),o=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ht(i,e,a,n),!1!==e.enableMarkLine&&1===t&&_t(e,a,n),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t,c,o),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),qt(s,e,a,n),jt(s,e,a,n);var r=Nt(i,e,a,n,t),o=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ht(i,e,a,n),!1!==e.enableMarkLine&&1===t&&_t(e,a,n),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t,c,o),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"column":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),qt(s,e,a,n),jt(s,e,a,n);var r=It(i,e,a,n,t),o=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ht(i,e,a,n),!1!==e.enableMarkLine&&1===t&&_t(e,a,n),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t,c,o),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),jt(s,e,a,n);var r=Ot(i,e,a,n,t),o=r.yAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.yAxisPoints=o,e.chartData.xAxisPoints=e.chartData.xAxisData.xAxisPoints,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ht(i,e,a,n),!1!==e.enableMarkLine&&1===t&&_t(e,a,n),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t,c,o),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"area":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),qt(s,e,a,n),jt(s,e,a,n);var r=Rt(i,e,a,n,t),o=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ht(i,e,a,n),!1!==e.enableMarkLine&&1===t&&_t(e,a,n),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t,c,o),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),e.chartData.pieData=Gt(i,e,a,n,t),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"rose":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),e.chartData.pieData=Jt(i,e,a,n,t),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"radar":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),e.chartData.radarData=Qt(i,e,a,n,t),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),e.chartData.arcbarData=Kt(i,e,a,n,t),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),e.chartData.gaugeData=Xt(s,i,e,a,n,t),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"candle":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),qt(s,e,a,n),jt(s,e,a,n);var r=Et(i,c,e,a,n,t),o=r.xAxisPoints,l=r.calPoints,u=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=u,Ht(i,e,a,n),!1!==e.enableMarkLine&&1===t&&_t(e,a,n),Yt(c||e.series,e,a,n,e.chartData),Wt(e,a,n,t,u,o),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break}}function fe(){this.events={}}de.prototype.stop=function(){this.isStop=!0},fe.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},fe.prototype.delEventListener=function(t){this.events[t]=[]},fe.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),a=0;a0&&void 0!==arguments[0]?arguments[0]:{};this.opts=o({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){case"current":break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var a=xt(this.opts.series,this.opts,this.config,this.context),n=a.yAxisWidth;this.config.yAxisWidth=n;var r=0,i=ct(this.opts.categories,this.opts,this.config),s=i.xAxisPoints,l=i.startX,c=i.endX,u=i.eachSpacing,d=u*(s.length-1),h=c-l;r=h-d,this.scrollOption={currentOffset:r,startTouchX:r,distance:0,lastMoveTime:0},this.opts._scrollDistance_=r;break}he.call(this,this.opts.type,this.opts,this.config,this.context)},pe.prototype.zoom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var a=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=e.itemCount;var n=xt(this.opts.series,this.opts,this.config,this.context),r=n.yAxisWidth;this.config.yAxisWidth=r;var i=0,o=ct(this.opts.categories,this.opts,this.config),s=o.xAxisPoints,l=o.startX,c=o.endX,u=o.eachSpacing,d=u*a,h=c-l,f=h-u*(s.length-1);i=h/2-d,i>0&&(i=0),i1&&void 0!==arguments[1]?arguments[1]:{},a=null;if(a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],a){T(a,this.opts,t);var n=this.getLegendDataIndex(t);n>=0&&("candle"==this.opts.type?this.opts.seriesMA[n].show=!this.opts.seriesMA[n].show:this.opts.series[n].show=!this.opts.series[n].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,he.call(this,this.opts.type,this.opts,this.config,this.context))}},pe.prototype.showToolTip=function(e){var a=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;r=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],r||t.log("[uCharts] 未获取到event坐标信息");var i=T(r,this.opts,e),s=this.scrollOption.currentOffset,l=o({},this.opts,{_scrollDistance_:s,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type||"scatter"===this.opts.type||"bubble"===this.opts.type){var c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1||u.length>0){var d=P(this.opts.series,u,c.group);if(0!==d.length){var h=D(d,this.opts,u,c.group,this.opts.categories,n),f=h.textList,p=h.offset;p.y=i.y,l.tooltip={textList:void 0!==n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}he.call(this,l.type,l,this.config,this.context)}if("bar"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1||u.length>0){d=P(this.opts.series,u,c.group);if(0!==d.length){h=D(d,this.opts,u,c.group,this.opts.categories,n),f=h.textList,p=h.offset;p.x=i.x,l.tooltip={textList:void 0!==n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}he.call(this,l.type,l,this.config,this.context)}if("mix"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1){s=this.scrollOption.currentOffset,l=o({},this.opts,{_scrollDistance_:s,animation:!1}),d=P(this.opts.series,u);if(0!==d.length){var g=M(d,this.opts,u,this.opts.categories,n);f=g.textList,p=g.offset;p.y=i.y,l.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}he.call(this,l.type,l,this.config,this.context)}if("candle"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1){s=this.scrollOption.currentOffset,l=o({},this.opts,{_scrollDistance_:s,animation:!1}),d=P(this.opts.series,u);if(0!==d.length){h=F(this.opts.series[0].data,d,this.opts,u,this.opts.categories,this.opts.extra.candle,n),f=h.textList,p=h.offset;p.y=i.y,l.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}he.call(this,l.type,l,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){l=o({},this.opts,{animation:!1}),d=o({},l._series_[u]),f=[{text:n.formatter?n.formatter(d,void 0,u,l):d.name+": "+d.data,color:d.color}],p={x:i.x,y:i.y};l.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}he.call(this,l.type,l,this.config,this.context)}if("map"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){l=o({},this.opts,{animation:!1}),d=o({},this.opts.series[u]);d.name=d.properties.name;f=[{text:n.formatter?n.formatter(d,void 0,u,this.opts):d.name,color:d.color}],p={x:i.x,y:i.y};l.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}l.updateData=!1,he.call(this,l.type,l,this.config,this.context)}if("word"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){l=o({},this.opts,{animation:!1}),d=o({},this.opts.series[u]),f=[{text:n.formatter?n.formatter(d,void 0,u,this.opts):d.name,color:d.color}],p={x:i.x,y:i.y};l.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}l.updateData=!1,he.call(this,l.type,l,this.config,this.context)}if("radar"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){l=o({},this.opts,{animation:!1}),d=P(this.opts.series,u);if(0!==d.length){f=d.map((function(t){return{text:n.formatter?n.formatter(t,a.opts.categories[u],u,a.opts):t.name+": "+t.data,color:t.color}})),p={x:i.x,y:i.y};l.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}he.call(this,l.type,l,this.config,this.context)}},pe.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=o({},this.opts,{_scrollDistance_:t,animation:!1});he.call(this,this.opts.type,e,this.config,this.context)},pe.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var a=T(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=a.x)},pe.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.touchMoveLimit||60,a=Date.now(),n=a-this.scrollOption.lastMoveTime;if(!(n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==a["return"]||a["return"]()}finally{if(l)throw o}}}}},baa5:function(t,e,a){var n=a("23e7"),r=a("e58c");n({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},bd37:function(t,e,a){"use strict";a.r(e);var n=a("68bf0"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},be16:function(t,e,a){"use strict";var n=a("42d4"),r=a.n(n);r.a},be39:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container loading1"},[a("v-uni-view",{staticClass:"shape shape1"}),a("v-uni-view",{staticClass:"shape shape2"}),a("v-uni-view",{staticClass:"shape shape3"}),a("v-uni-view",{staticClass:"shape shape4"})],1)},i=[]},bf19:function(t,e,a){"use strict";var n=a("23e7");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},c135:function(t,e){function a(t){if(Array.isArray(t))return t}t.exports=a},c240:function(t,e){function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.exports=a},c5af:function(t,e,a){var n=a("cff9");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("4f06").default;r("0a33839e",n,!0,{sourceMap:!1,shadowMode:!1})},cb29:function(t,e,a){var n=a("23e7"),r=a("81d5"),i=a("44d2");n({target:"Array",proto:!0},{fill:r}),i("fill")},cf48:function(t,e,a){"use strict";var n=a("23c1"),r=a.n(n);r.a},cff9:function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,".container[data-v-e14678f8]{width:30px;height:30px;position:relative}.container.loading2[data-v-e14678f8]{-webkit-transform:rotate(10deg);transform:rotate(10deg)}.container.loading2 .shape[data-v-e14678f8]{border-radius:5px}.container.loading2[data-v-e14678f8]{-webkit-animation:rotation 1s infinite;animation:rotation 1s infinite}.container .shape[data-v-e14678f8]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-e14678f8]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-e14678f8]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-e14678f8]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-e14678f8]{bottom:0;right:0;background-color:#e66}.loading2 .shape1[data-v-e14678f8]{-webkit-animation:animation2shape1-data-v-e14678f8 .5s ease 0s infinite alternate;animation:animation2shape1-data-v-e14678f8 .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape1-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,20px);transform:translate(20px,20px)}}@keyframes animation2shape1-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,20px);transform:translate(20px,20px)}}.loading2 .shape2[data-v-e14678f8]{-webkit-animation:animation2shape2-data-v-e14678f8 .5s ease 0s infinite alternate;animation:animation2shape2-data-v-e14678f8 .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape2-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,20px);transform:translate(-20px,20px)}}@keyframes animation2shape2-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,20px);transform:translate(-20px,20px)}}.loading2 .shape3[data-v-e14678f8]{-webkit-animation:animation2shape3-data-v-e14678f8 .5s ease 0s infinite alternate;animation:animation2shape3-data-v-e14678f8 .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape3-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,-20px);transform:translate(20px,-20px)}}@keyframes animation2shape3-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,-20px);transform:translate(20px,-20px)}}.loading2 .shape4[data-v-e14678f8]{-webkit-animation:animation2shape4-data-v-e14678f8 .5s ease 0s infinite alternate;animation:animation2shape4-data-v-e14678f8 .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape4-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,-20px);transform:translate(-20px,-20px)}}@keyframes animation2shape4-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,-20px);transform:translate(-20px,-20px)}}",""]),t.exports=e},d00f:function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,".container[data-v-44c31eef]{width:30px;height:30px;position:relative}.container.loading5 .shape[data-v-44c31eef]{width:15px;height:15px}.container .shape[data-v-44c31eef]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-44c31eef]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-44c31eef]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-44c31eef]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-44c31eef]{bottom:0;right:0;background-color:#e66}.loading5 .shape1[data-v-44c31eef]{animation:animation5shape1-data-v-44c31eef 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape1-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(15px);transform:translateY(15px)}50%{-webkit-transform:translate(15px,15px);transform:translate(15px,15px)}75%{-webkit-transform:translate(15px);transform:translate(15px)}}@keyframes animation5shape1-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(15px);transform:translateY(15px)}50%{-webkit-transform:translate(15px,15px);transform:translate(15px,15px)}75%{-webkit-transform:translate(15px);transform:translate(15px)}}.loading5 .shape2[data-v-44c31eef]{animation:animation5shape2-data-v-44c31eef 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape2-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(-15px);transform:translate(-15px)}50%{-webkit-transform:translate(-15px,15px);transform:translate(-15px,15px)}75%{-webkit-transform:translateY(15px);transform:translateY(15px)}}@keyframes animation5shape2-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(-15px);transform:translate(-15px)}50%{-webkit-transform:translate(-15px,15px);transform:translate(-15px,15px)}75%{-webkit-transform:translateY(15px);transform:translateY(15px)}}.loading5 .shape3[data-v-44c31eef]{animation:animation5shape3-data-v-44c31eef 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape3-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(15px);transform:translate(15px)}50%{-webkit-transform:translate(15px,-15px);transform:translate(15px,-15px)}75%{-webkit-transform:translateY(-15px);transform:translateY(-15px)}}@keyframes animation5shape3-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(15px);transform:translate(15px)}50%{-webkit-transform:translate(15px,-15px);transform:translate(15px,-15px)}75%{-webkit-transform:translateY(-15px);transform:translateY(-15px)}}.loading5 .shape4[data-v-44c31eef]{animation:animation5shape4-data-v-44c31eef 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape4-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(-15px);transform:translateY(-15px)}50%{-webkit-transform:translate(-15px,-15px);transform:translate(-15px,-15px)}75%{-webkit-transform:translate(-15px);transform:translate(-15px)}}@keyframes animation5shape4-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(-15px);transform:translateY(-15px)}50%{-webkit-transform:translate(-15px,-15px);transform:translate(-15px,-15px)}75%{-webkit-transform:translate(-15px);transform:translate(-15px)}}",""]),t.exports=e},d90c:function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */.u-swiper-wrap[data-v-8ef7071a]{overflow:visible!important}.u-swiper-wrap uni-swiper[data-v-8ef7071a]{border-radius:%?20?%;overflow:hidden;-webkit-transform:translateY(0);transform:translateY(0);box-shadow:%?0?% %?40?% %?40?% %?-30?% grey}.u-swiper-wrap .u-swiper-indicator[data-v-8ef7071a]{bottom:%?-23?%!important}.u-swiper-wrap .u-swiper-indicator .u-indicator-item-rect[data-v-8ef7071a]{border-radius:%?2?%;height:%?4?%;width:%?20?%}.u-swiper-wrap .u-swiper-indicator .u-indicator-item-rect.u-indicator-item-rect-active[data-v-8ef7071a]{width:%?50?%;background:#be0000}.u-input__textarea[data-v-8ef7071a]{padding:%?0?%!important}.u-list-item[data-v-8ef7071a]{margin-left:%?0?%!important;width:%?100?%!important;height:%?100?%!important}.u-add-tips[data-v-8ef7071a]{margin-top:%?0?%!important}.custom-list-item[data-v-8ef7071a]{padding:%?0?% %?30?%}\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.page[data-v-8ef7071a]{padding:%?30?% %?0?%;padding-bottom:%?200?%}.radar-chart-view[data-v-8ef7071a]{height:%?600?%}',""]),t.exports=e},d919:function(t,e,a){var n=a("6a05");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("4f06").default;r("1843e290",n,!0,{sourceMap:!1,shadowMode:!1})},d967:function(t,e,a){"use strict";function n(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,a("4ae1"),a("d3b7")},da36:function(t,e,a){var n=a("92dc");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("4f06").default;r("7d11d290",n,!0,{sourceMap:!1,shadowMode:!1})},dde0:function(t,e,a){var n=a("d00f");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("4f06").default;r("1910049e",n,!0,{sourceMap:!1,shadowMode:!1})},e00a:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container loading3"},[a("v-uni-view",{staticClass:"shape shape1"}),a("v-uni-view",{staticClass:"shape shape2"}),a("v-uni-view",{staticClass:"shape shape3"}),a("v-uni-view",{staticClass:"shape shape4"})],1)},i=[]},e438:function(t,e,a){"use strict";a.r(e);var n=a("9cb7"),r=a("b6de");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);var o,s=a("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"6dfcfdcc",null,!1,n["a"],o);e["default"]=l.exports},e5ed:function(t,e,a){"use strict";var n=a("00c5"),r=a.n(n);r.a},e7b3:function(t,e,a){var n=a("9687");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("4f06").default;r("1d1cd571",n,!0,{sourceMap:!1,shadowMode:!1})},eab1:function(t,e,a){"use strict";a.r(e);var n=a("1e10"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},ecd6:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={appid:""};e.default=n},ed8a:function(t,e,a){"use strict";a.r(e);var n=a("a0d5"),r=a("53fc");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);var o=a("72b3");for(var i in o)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(i);a("100a");var s=a("f0c5");r["default"].__module="rdcharts";var l=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"1b108cc9",null,!1,n["a"],r["default"]);e["default"]=l.exports},f4b3:function(t,e,a){"use strict";var n=a("23e7"),r=a("d039"),i=a("7b0b"),o=a("c04e"),s=r((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));n({target:"Date",proto:!0,forced:s},{toJSON:function(t){var e=i(this),a=o(e);return"number"!=typeof a||isFinite(a)?e.toISOString():null}})},f681:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading5",data:function(){return{}}};e.default=n},f6e7:function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,".container[data-v-38a0d81e]{width:30px;height:30px;position:relative}.container.loading6[data-v-38a0d81e]{-webkit-animation:rotation 1s infinite;animation:rotation 1s infinite}.container.loading6 .shape[data-v-38a0d81e]{width:12px;height:12px;border-radius:2px}.container .shape[data-v-38a0d81e]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-38a0d81e]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-38a0d81e]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-38a0d81e]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-38a0d81e]{bottom:0;right:0;background-color:#e66}.loading6 .shape1[data-v-38a0d81e]{-webkit-animation:animation6shape1-data-v-38a0d81e 2s linear 0s infinite normal;animation:animation6shape1-data-v-38a0d81e 2s linear 0s infinite normal}@-webkit-keyframes animation6shape1-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(18px);transform:translateY(18px)}50%{-webkit-transform:translate(18px,18px);transform:translate(18px,18px)}75%{-webkit-transform:translate(18px);transform:translate(18px)}}@keyframes animation6shape1-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(18px);transform:translateY(18px)}50%{-webkit-transform:translate(18px,18px);transform:translate(18px,18px)}75%{-webkit-transform:translate(18px);transform:translate(18px)}}.loading6 .shape2[data-v-38a0d81e]{-webkit-animation:animation6shape2-data-v-38a0d81e 2s linear 0s infinite normal;animation:animation6shape2-data-v-38a0d81e 2s linear 0s infinite normal}@-webkit-keyframes animation6shape2-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(-18px);transform:translate(-18px)}50%{-webkit-transform:translate(-18px,18px);transform:translate(-18px,18px)}75%{-webkit-transform:translateY(18px);transform:translateY(18px)}}@keyframes animation6shape2-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(-18px);transform:translate(-18px)}50%{-webkit-transform:translate(-18px,18px);transform:translate(-18px,18px)}75%{-webkit-transform:translateY(18px);transform:translateY(18px)}}.loading6 .shape3[data-v-38a0d81e]{-webkit-animation:animation6shape3-data-v-38a0d81e 2s linear 0s infinite normal;animation:animation6shape3-data-v-38a0d81e 2s linear 0s infinite normal}@-webkit-keyframes animation6shape3-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(18px);transform:translate(18px)}50%{-webkit-transform:translate(18px,-18px);transform:translate(18px,-18px)}75%{-webkit-transform:translateY(-18px);transform:translateY(-18px)}}@keyframes animation6shape3-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(18px);transform:translate(18px)}50%{-webkit-transform:translate(18px,-18px);transform:translate(18px,-18px)}75%{-webkit-transform:translateY(-18px);transform:translateY(-18px)}}.loading6 .shape4[data-v-38a0d81e]{-webkit-animation:animation6shape4-data-v-38a0d81e 2s linear 0s infinite normal;animation:animation6shape4-data-v-38a0d81e 2s linear 0s infinite normal}@-webkit-keyframes animation6shape4-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(-18px);transform:translateY(-18px)}50%{-webkit-transform:translate(-18px,-18px);transform:translate(-18px,-18px)}75%{-webkit-transform:translate(-18px);transform:translate(-18px)}}@keyframes animation6shape4-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(-18px);transform:translateY(-18px)}50%{-webkit-transform:translate(-18px,-18px);transform:translate(-18px,-18px)}75%{-webkit-transform:translate(-18px);transform:translate(-18px)}}",""]),t.exports=e},f88e:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"chartsview"},[a("v-uni-view",{staticClass:"charts-error"}),a("v-uni-view",{staticClass:"charts-font"},[t._v(t._s(null==t.errorMessage?"请点击重试":t.errorMessage))])],1)},i=[]},fa95:function(t,e,a){"use strict";function n(t){return-1!==Function.toString.call(t).indexOf("[native code]")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,a("c975"),a("d3b7"),a("25f0")},fdc7:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container loading6"},[a("v-uni-view",{staticClass:"shape shape1"}),a("v-uni-view",{staticClass:"shape shape2"}),a("v-uni-view",{staticClass:"shape shape3"}),a("v-uni-view",{staticClass:"shape shape4"})],1)},i=[]},fec0:function(t,e,a){"use strict";a.r(e);var n=a("2ae4"),r=a("79ec");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);a("4cfe");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"44c31eef",null,!1,n["a"],o);e["default"]=l.exports},ff72:function(t,e){var a=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"];t.exports={type:["pie","ring","rose","funnel","line","column","area","radar","gauge","candle","demotype"],categories:["line","column","area","radar","gauge","candle","demotype"],instance:{},option:{},formatter:{tooltipDemo1:function(t){var e="";for(var a in t){0==a&&(e+=t[a].axisValueLabel+"年销售额");var n="--";null!==t[a].data&&(n=t[a].data),e+="\n"+t[a].seriesName+":"+n+" 万元"}return e},legendFormat:function(t){return"自定义图例+"+t},yAxisFormatDemo:function(t,e){return t+"元"},seriesFormatDemo:function(t){return t.name+"年"+t.value+"元"}},demotype:{color:a},column:{color:a,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"bar",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},line:{color:a,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},area:{color:a,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],areaStyle:{},label:{show:!0,color:"#666666",position:"top"}}},pie:{color:a,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:"50%",label:{show:!0,color:"#666666",position:"top"}}},ring:{color:a,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:["40%","70%"],avoidLabelOverlap:!1,label:{show:!0,color:"#666666",position:"top"},labelLine:{show:!0}}},rose:{color:a,title:{text:""},tooltip:{trigger:"item"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"pie",data:[],radius:"55%",center:["50%","50%"],rosetype:"area"}},funnel:{color:a,title:{text:""},tooltip:{trigger:"item",formatter:"{b} : {c}%"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"funnel",left:"10%",top:60,bottom:60,width:"80%",min:0,max:100,minSize:"0%",maxSize:"100%",sort:"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{bordercolor:"#fff",borderwidth:1},emphasis:{label:{fontSize:20}},data:[]}},gauge:{color:a,tooltip:{formatter:"{a}
{b} : {c}%"},seriesTemplate:{name:"业务指标",type:"gauge",detail:{formatter:"{value}%"},data:[{value:50,name:"完成率"}]}},candle:{xAxis:{data:[]},yAxis:{},color:a,title:{text:""},dataZoom:[{type:"inside",xAxisIndex:[0,1],start:10,end:100},{show:!0,xAxisIndex:[0,1],type:"slider",bottom:10,start:10,end:100}],seriesTemplate:{name:"",type:"k",data:[]}}}}}]);