!function(t){function e(e){for(var r,i,s=e[0],l=e[1],u=e[2],c=0,p=[];ci;)$(t,n=r[i++],e[n]);return t},K=function(t){var e=z.call(this,t=w(t,!0));return!(this===G&&i(V,t)&&!i(F,t))&&(!(e||!i(this,t)||!i(V,t)||i(this,R)&&this[R][t])||e)},Q=function(t,e){if(t=_(t),e=w(e,!0),t!==G||!i(V,e)||i(F,e)){var n=T(t,e);return!n||!i(V,e)||i(t,R)&&t[R][e]||(n.enumerable=!0),n}},J=function(t){for(var e,n=P(_(t)),r=[],o=0;n.length>o;)i(V,e=n[o++])||e==R||e==l||r.push(e);return r},tt=function(t){for(var e,n=t===G,r=P(n?F:_(t)),o=[],a=0;r.length>a;)!i(V,e=r[a++])||n&&!i(G,e)||o.push(V[e]);return o};H||(s((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(F,n),i(this,R)&&i(this[R],t)&&(this[R][t]=!1),Y(this,t,S(1,n))};return o&&U&&Y(G,t,{configurable:!0,set:e}),q(t)}).prototype,"toString",(function(){return this._k})),C.f=Q,k.f=$,n("6abf").f=O.f=J,n("355d").f=K,I.f=tt,o&&!n("b8e3")&&s(G,"propertyIsEnumerable",K,!0),d.f=function(t){return q(f(t))}),a(a.G+a.W+a.F*!H,{Symbol:L});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)f(et[nt++]);for(var rt=A(f.store),it=0;rt.length>it;)g(rt[it++]);a(a.S+a.F*!H,"Symbol",{for:function(t){return i(B,t+="")?B[t]:B[t]=L(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in B)if(B[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!H,"Object",{create:function(t,e){return void 0===e?M(t):Z(M(t),e)},defineProperty:$,defineProperties:Z,getOwnPropertyDescriptor:Q,getOwnPropertyNames:J,getOwnPropertySymbols:tt});var ot=u((function(){I.f(1)}));a(a.S+a.F*ot,"Object",{getOwnPropertySymbols:function(t){return I.f(x(t))}}),j&&a(a.S+a.F*(!H||u((function(){var t=L();return"[null]"!=E([t])||"{}"!=E({a:t})||"{}"!=E(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!X(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,E.apply(j,r)}}),L.prototype[N]||n("35e8")(L.prototype,N,L.prototype.valueOf),h(L,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},"0395":function(t,e,n){var r=n("36c3"),i=n("6abf").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(r(t))}},"04fb":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("7037")),o=r(n("970b"));n("0ca1");var a=r(n("9886")),s=n("5557"),l=n("a736"),u=function t(e){if((0,o.default)(this,t),!e)return console.error("Charts Missing parameters!"),!1;var n=e.clientWidth,r=e.clientHeight,i=document.createElement("canvas");i.setAttribute("width",n),i.setAttribute("height",r),e.appendChild(i);var s={container:e,canvas:i,render:new a.default(i),option:null};Object.assign(this,s)};e.default=u,u.prototype.setOption=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t||"object"!==(0,i.default)(t))return console.error("setOption Missing parameters!"),!1;e&&this.render.graphs.forEach((function(t){return t.animationEnd()}));var n=(0,s.deepClone)(t,!0);(0,l.mergeColor)(this,n),(0,l.grid)(this,n),(0,l.axis)(this,n),(0,l.radarAxis)(this,n),(0,l.title)(this,n),(0,l.bar)(this,n),(0,l.line)(this,n),(0,l.pie)(this,n),(0,l.radar)(this,n),(0,l.gauge)(this,n),(0,l.legend)(this,n),this.option=t,this.render.launchAnimation()},u.prototype.resize=function(){var t=this.container,e=this.canvas,n=this.render,r=this.option,i=t.clientWidth,o=t.clientHeight;e.setAttribute("width",i),e.setAttribute("height",o),n.area=[i,o],this.setOption(r)}},"050c":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"bezierCurveToPolyline",{enumerable:!0,get:function(){return i.bezierCurveToPolyline}}),Object.defineProperty(e,"getBezierCurveLength",{enumerable:!0,get:function(){return i.getBezierCurveLength}}),Object.defineProperty(e,"polylineToBezierCurve",{enumerable:!0,get:function(){return o.default}}),e.default=void 0;var i=n("2db9"),o=r(n("ae10")),a={bezierCurveToPolyline:i.bezierCurveToPolyline,getBezierCurveLength:i.getBezierCurveLength,polylineToBezierCurve:o.default};e.default=a},"065a":function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t&&(e=t,n="componentOptions",hasOwnProperty.call(e,n));var e,n}function i(t){return"[object Object]"===Object.prototype.toString.call(t)}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},"0676":function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},"0680":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.axis=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.xAxis,r=e.yAxis,i=e.series,o=[];n&&r&&i&&(o=k(o=I(o=C(o=O(o=M(o=x(o=b(o=(o=m(o=y(n,r))).filter((function(t){return t.show}))),i)),t),t),t),t));(0,l.doUpdate)({chart:t,series:o,key:"axisLine",getGraphConfig:A}),(0,l.doUpdate)({chart:t,series:o,key:"axisTick",getGraphConfig:P}),(0,l.doUpdate)({chart:t,series:o,key:"axisLabel",getGraphConfig:L}),(0,l.doUpdate)({chart:t,series:o,key:"axisName",getGraphConfig:E}),(0,l.doUpdate)({chart:t,series:o,key:"splitLine",getGraphConfig:z}),t.axisData=o};var i=r(n("7037")),o=r(n("278c")),a=r(n("9523")),s=r(n("448a")),l=n("18ad"),u=n("9d85"),c=n("becb"),h=n("5557");function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e1&&(u=parseInt(u.toString().replace(/\d$/,"0")));0===u&&(u=1);return"number"==typeof i&&uo?o:u}(a,l,t),p=t.axisLabel.formatter,v=[];return v=(v=a<0&&l>0?function(t,e,n){var r=[],i=[],o=0,a=0;do{r.push(o-=n)}while(o>t);do{i.push(a+=n)}while(a0?s:0,c,h,!p);var f=(0,l.getCircleRadianPoint)(i,a,u,h).map((function(t){return parseInt(t)+.5})),d=(0,l.getCircleRadianPoint)(i,a,s,c).map((function(t){return parseInt(t)+.5}));n.lineTo.apply(n,(0,o.default)(f)),n.arc(i,a,u>0?u:0,h,c,p),n.lineTo.apply(n,(0,o.default)(d)),n.closePath(),n.stroke(),n.fill()}},d={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,gradientStartAngle:null,gradientEndAngle:null},validator:function(t){var e=t.shape;return!["rx","ry","r","startAngle","endAngle"].find((function(t){return"number"!=typeof e[t]}))||(console.error("AgArc shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=e.style.gradient;1===(i=i.map((function(t){return(0,u.getColorFromRgbValue)(t)}))).length&&(i=[i[0],i[0]]);var o=i.length-1,a=r.gradientStartAngle,s=r.gradientEndAngle,h=r.startAngle,p=r.endAngle,f=r.r,d=r.rx,g=r.ry;null===a&&(a=h),null===s&&(s=p);var v=(s-a)/o;v===2*Math.PI&&(v=2*Math.PI-.001);for(var y=0;yp&&(w=p,S=!0),n.arc(d,g,f,_,w),n.strokeStyle=x,n.stroke(),S)break}}},g={shape:{number:[],content:"",position:[0,0],toFixed:0,rowGap:0,formatter:null},validator:function(t){var e=t.shape,n=e.number,r=e.content,i=e.position;return n instanceof Array&&"string"==typeof r&&i instanceof Array||(console.error("NumberText shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=r.number,o=r.content,a=r.toFixed,l=r.rowGap,u=r.formatter,c=o.split("{nt}"),h="";c.forEach((function(t,e){var n=i[e];"number"!=typeof n&&(n=""),"number"==typeof n&&(n=n.toFixed(a),"function"==typeof u&&(n=u(n))),h+=t+(n||"")})),s.text.draw({ctx:n},{shape:p(p({},r),{},{content:h,rowGap:l})})}},v={shape:{x:0,y:0,w:0,h:0},validator:function(t){var e=t.shape,n=e.x,r=e.y,i=e.w,o=e.h;return"number"==typeof n&&"number"==typeof r&&"number"==typeof i&&"number"==typeof o||(console.error("lineIcon shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.x,o=r.y,a=r.w,s=r.h/2;n.strokeStyle=n.fillStyle,n.moveTo(i,o+s),n.lineTo(i+a,o+s),n.lineWidth=1,n.stroke(),n.beginPath();var l=s-10;l<=0&&(l=3),n.arc(i+a/2,o+s,l,0,2*Math.PI),n.lineWidth=5,n.stroke(),n.fillStyle="#fff",n.fill()},hoverCheck:function(t,e){var n=e.shape,r=n.x,i=n.y,o=n.w,a=n.h;return(0,l.checkPointIsInRect)(t,r,i,o,a)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.x,o=n.y,a=n.w,s=n.h;r.graphCenter=[i+a/2,o+s/2]}};(0,a.extendNewGraph)("pie",f),(0,a.extendNewGraph)("agArc",d),(0,a.extendNewGraph)("numberText",g),(0,a.extendNewGraph)("lineIcon",v)},"0cd4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.radarAxisConfig=void 0;var r={show:!0,center:["50%","50%"],radius:"65%",startAngle:-Math.PI/2,splitNum:5,polygon:!1,axisLabel:{show:!0,labelGap:15,color:[],style:{fill:"#333"}},axisLine:{show:!0,color:[],style:{stroke:"#999",lineWidth:1}},splitLine:{show:!0,color:[],style:{stroke:"#d4d4d4",lineWidth:1}},splitArea:{show:!1,color:["#f5f5f5","#e6e6e6"],style:{}},rLevel:-10,animationCurve:"easeOutCubic",animationFrane:50};e.radarAxisConfig=r},"0e15":function(t,e,n){var r=n("597f");t.exports=function(t,e,n){return void 0===n?r(t,e,!1):r(t,n,!1!==e)}},"0f06":function(t,e,n){},"0fc9":function(t,e,n){var r=n("3a38"),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},1098:function(t,e,n){"use strict";e.__esModule=!0;var r=a(n("17ed")),i=a(n("f893")),o="function"==typeof i.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":typeof t};function a(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof i.default&&"symbol"===o(r.default)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":void 0===t?"undefined":o(t)}},"11b0":function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},1654:function(t,e,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"17ed":function(t,e,n){t.exports={default:n("d8d6"),__esModule:!0}},"18ad":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.doUpdate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.chart,n=t.series,r=t.key,i=t.getGraphConfig,o=t.getStartGraphConfig,a=t.beforeChange,l=t.beforeUpdate,u=t.afterAddGraph;e[r]?e[r].update(n):e[r]=new s({chart:e,key:r,getGraphConfig:i,getStartGraphConfig:o,beforeChange:a,beforeUpdate:l,afterAddGraph:u},n)},e.Updater=void 0;var i=r(n("448a")),o=r(n("7037")),a=r(n("970b")),s=function t(e,n){(0,a.default)(this,t);var r=e.chart,i=e.key;"function"==typeof e.getGraphConfig?(r[i]||(this.graphs=r[i]=[]),Object.assign(this,e),this.update(n)):console.warn("Updater need function getGraphConfig!")};function l(t,e){Object.keys(e).forEach((function(n){"shape"===n||"style"===n?t.animation(n,e[n],!0):t[n]=e[n]}))}e.Updater=s,s.prototype.update=function(t){var e=this,n=this.graphs,r=this.beforeUpdate;if(function(t,e){var n=t.graphs,r=t.chart.render,i=n.length,o=e.length;if(i>o){n.splice(o).forEach((function(t){return t.forEach((function(t){return r.delGraph(t)}))}))}}(this,t),t.length){var a=(0,o.default)(r);t.forEach((function(t,o){"function"===a&&r(n,t,o,e);var s=n[o];s?function(t,e,n,r){var o=r.getGraphConfig,a=r.chart.render,s=r.beforeChange,u=o(e,r);(function(t,e,n){var r=t.length,o=e.length;if(o>r){var a=t.slice(-1)[0],s=new Array(o-r).fill(0).map((function(t){return n.clone(a)}));t.push.apply(t,(0,i.default)(s))}else if(o1&&void 0!==arguments[1]?arguments[1]:{},n=e.series;n||(n=[]);var r=(0,h.initNeedSeries)(n,u.gaugeConfig,"gauge");r=M(r=S(r=w(r=_(r=x(r=b(r=m(r=y(r=v(r=g(r,t),t),t),t),t),t),t),t),t),t),(0,l.doUpdate)({chart:t,series:r,key:"gaugeAxisTick",getGraphConfig:O}),(0,l.doUpdate)({chart:t,series:r,key:"gaugeAxisLabel",getGraphConfig:k}),(0,l.doUpdate)({chart:t,series:r,key:"gaugeBackgroundArc",getGraphConfig:D,getStartGraphConfig:j}),(0,l.doUpdate)({chart:t,series:r,key:"gaugeArc",getGraphConfig:E,getStartGraphConfig:z,beforeChange:B}),(0,l.doUpdate)({chart:t,series:r,key:"gaugePointer",getGraphConfig:V,getStartGraphConfig:H}),(0,l.doUpdate)({chart:t,series:r,key:"gaugeDetails",getGraphConfig:W})};var i=r(n("9523")),o=r(n("7037")),a=r(n("278c")),s=r(n("448a")),l=n("18ad"),u=n("cc6d"),c=n("5557"),h=n("becb"),p=n("a870");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;ee[0]?"right":"left",textBaseline:i>e[1]?"bottom":"top"}}));t.labelPosition=o,t.labelAlign=l})),t}function w(t,e){return t.forEach((function(t){var e=t.axisLabel,n=t.min,r=t.max,i=t.splitNum,a=e.data,s=e.formatter,l=(r-n)/(i-1),u=new Array(i).fill(0).map((function(t,e){return parseInt(n+l*e)})),c=(0,o.default)(s);a=(0,h.deepMerge)(u,a).map((function(t,e){var n=t;return"string"===c&&(n=s.replace("{value}",t)),"function"===c&&(n=s({value:t,index:e})),n})),e.data=a})),t}function S(t,e){return t.forEach((function(t){var e=t.data,n=t.details,r=t.center,i=n.position,o=n.offset,l=e.map((function(t){var e,n,l,u,h,p,f,d,g=t.startAngle,v=t.endAngle,y=t.radius,m=null;return"center"===i?m=r:"start"===i?m=c.getCircleRadianPoint.apply(void 0,(0,s.default)(r).concat([y,g])):"end"===i&&(m=c.getCircleRadianPoint.apply(void 0,(0,s.default)(r).concat([y,v]))),e=m,n=o,l=(0,a.default)(e,2),u=l[0],h=l[1],p=(0,a.default)(n,2),f=p[0],d=p[1],[u+f,h+d]}));t.detailsPosition=l})),t}function M(t,e){return t.forEach((function(t){var e=t.data,n=t.details.formatter,r=(0,o.default)(n),i=e.map((function(t){var e=t.value;return"string"===r&&(e=(e=n.replace("{value}","{nt}")).replace("{name}",t.name)),"function"===r&&(e=n(t)),e.toString()}));t.detailsContent=i})),t}function O(t){var e=t.tickPosition,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"polyline",index:i,visible:t.axisTick.show,animationCurve:n,animationFrame:r,shape:C(t,o),style:I(t,o)}}))}function C(t,e){return{points:t.tickPosition[e]}}function I(t,e){return t.axisTick.style}function k(t){var e=t.labelPosition,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"text",index:i,visible:t.axisLabel.show,animationCurve:n,animationFrame:r,shape:A(t,o),style:T(t,o)}}))}function A(t,e){var n=t.labelPosition;return{content:t.axisLabel.data[e].toString(),position:n[e]}}function T(t,e){var n=t.labelAlign,r=t.axisLabel.style;return(0,h.deepMerge)(d({},n[e]),r)}function D(t){var e=t.animationCurve,n=t.animationFrame;return[{name:"arc",index:t.rLevel,visible:t.backgroundArc.show,animationCurve:e,animationFrame:n,shape:P(t),style:L(t)}]}function P(t){var e=t.startAngle,n=t.endAngle,r=t.center,i=t.radius;return{rx:r[0],ry:r[1],r:i,startAngle:e,endAngle:n}}function L(t){var e=t.backgroundArc,n=t.arcLineWidth,r=e.style;return(0,h.deepMerge)({lineWidth:n},r)}function j(t){var e=D(t)[0],n=d({},e.shape);return n.endAngle=e.shape.startAngle,e.shape=n,[e]}function E(t){var e=t.data,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"agArc",index:i,animationCurve:n,animationFrame:r,shape:R(t,o),style:N(t,o)}}))}function R(t,e){var n=t.data,r=t.center,i=t.endAngle,o=n[e],a=o.radius,s=o.startAngle,l=o.endAngle;return o.localGradient&&(i=l),{rx:r[0],ry:r[1],r:a,startAngle:s,endAngle:l,gradientEndAngle:i}}function N(t,e){var n=t.data,r=t.dataItemStyle,i=n[e],o=i.lineWidth,a=i.gradient;return a=a.map((function(t){return(0,p.getRgbaValue)(t)})),(0,h.deepMerge)({lineWidth:o,gradient:a},r)}function z(t){var e=E(t);return e.map((function(t){var e=d({},t.shape);e.endAngle=t.shape.startAngle,t.shape=e})),e}function B(t,e){var n=t.style.gradient,r=n.length,i=e.style.gradient.length;if(r>i)n.splice(i);else{var o=n.slice(-1)[0];n.push.apply(n,(0,s.default)(new Array(i-r).fill(0).map((function(t){return(0,s.default)(o)}))))}}function V(t){var e=t.animationCurve,n=t.animationFrame,r=t.center;return[{name:"polyline",index:t.rLevel,visible:t.pointer.show,animationCurve:e,animationFrame:n,shape:F(t),style:G(t),setGraphCenter:function(t,e){e.style.graphCenter=r}}]}function F(t){var e,n,r,i,o,s,l,u,c=t.center;return{points:(e=c,n=(0,a.default)(e,2),r=n[0],i=n[1],o=[r,i-40],s=[r+5,i],l=[r,i+10],u=[r-5,i],[o,s,l,u]),close:!0}}function G(t){var e=t.startAngle,n=t.endAngle,r=t.min,i=t.max,o=t.data,a=t.pointer,s=t.center,l=a.valueIndex,u=a.style,c=((o[l]?o[l].value:0)-r)/(i-r)*(n-e)+e+Math.PI/2;return(0,h.deepMerge)({rotate:(0,h.radianToAngle)(c),scale:[1,1],graphCenter:s},u)}function H(t){var e=t.startAngle,n=V(t)[0];return n.style.rotate=(0,h.radianToAngle)(e+Math.PI/2),[n]}function W(t){var e=t.detailsPosition,n=t.animationCurve,r=t.animationFrame,i=t.rLevel,o=t.details.show;return e.map((function(e,a){return{name:"numberText",index:i,visible:o,animationCurve:n,animationFrame:r,shape:U(t,a),style:Y(t,a)}}))}function U(t,e){var n=t.detailsPosition,r=t.detailsContent,i=t.data,o=t.details,a=n[e],s=r[e];return{number:[i[e].value],content:s,position:a,toFixed:o.valueToFixed}}function Y(t,e){var n=t.details,r=t.data,i=n.style,o=r[e].color;return(0,h.deepMerge)({fill:o},i)}},"1fb5":function(t,e,n){"use strict";e.byteLength=function(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=u(t),a=r[0],s=r[1],l=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),c=0,h=s>0?a-4:a;for(n=0;n>16&255,l[c++]=e>>8&255,l[c++]=255&e;2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[c++]=255&e);1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e);return l},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var i,o,a=[],s=e;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"204e":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.bar=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.xAxis,r=e.yAxis,i=e.series,o=[];n&&r&&i&&(o=v(o=g(o=d(o=(0,h.initNeedSeries)(i,u.barConfig,"bar"),t),t),t));(0,l.doUpdate)({chart:t,series:o.slice(-1),key:"backgroundBar",getGraphConfig:m}),o.reverse(),(0,l.doUpdate)({chart:t,series:o,key:"bar",getGraphConfig:b,getStartGraphConfig:S,beforeUpdate:M}),(0,l.doUpdate)({chart:t,series:o,key:"barLabel",getGraphConfig:O})};var i=r(n("7037")),o=r(n("9523")),a=r(n("278c")),s=r(n("448a")),l=n("18ad"),u=n("9d85"),c=n("5557"),h=n("becb");function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;ei&&(n.splice(i),r.splice(i))})),t}(t=function(t){return t.map((function(t){var e=t.barLabelAxisPos;return t.data.forEach((function(t,n){"number"!=typeof t&&(e[n]=null)})),f(f({},t),{},{barLabelAxisPos:e.filter((function(t){return null!==t}))})}))}(t=function(t){return t.map((function(t){var e=t.labelAxis,n=t.barAllWidthAndGap,r=t.barGap,i=t.barWidth,o=t.barIndex,a=e.tickGap,s=e.tickPosition,l="x"===e.axis?0:1,u=s.map((function(t,e){return s[e][l]-a/2+(a-n)/2+(o+.5)*i+o*r}));return f(f({},t),{},{barLabelAxisPos:u})}))}(t=function(t){return t.map((function(e){var n=(0,h.mergeSameStackData)(e,t);n=function(t,e){var n=t.data;return e.map((function(t,e){return"number"==typeof n[e]?t:null})).filter((function(t){return null!==t}))}(e,n);var r=e.valueAxis,i=r.axis,o=r.minValue,a=r.maxValue,s=r.linePosition,l=y(o,a,o<0?0:o,s,i),u=n.map((function(t){return y(o,a,t,s,i)})).map((function(t){return[l,t]}));return f(f({},e),{},{barValueAxisPos:u})}))}(t))))}function y(t,e,n,r,i){if("number"!=typeof n)return null;var o=e-t,a="x"===i?0:1,s=(n-t)/o;return 0===o&&(s=0),s*(r[1][a]-r[0][a])+r[0][a]}function m(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=function(t){var e=t.labelAxis,n=t.valueAxis,r=e.tickPosition,i=n.axis,o=n.linePosition,a=function(t){var e=t.barAllWidthAndGap,n=t.barCategoryWidth,r=t.backgroundBar.width;return"number"==typeof r?r:"auto"===r?e:parseInt(r)/100*n}(t),s=a/2,l="x"===i?0:1,u=r.map((function(t){return t[1-l]})),c=[o[0][l],o[1][l]],h=c[0],p=c[1];return u.map((function(t){return"x"===i?{x:h,y:t-s,w:p-h,h:a}:{x:t-s,y:p,w:a,h:h-p}}))}(t),o=function(t){return t.backgroundBar.style}(t);return i.map((function(i){return{name:"rect",index:r,visible:t.backgroundBar.show,animationCurve:e,animationFrame:n,shape:i,style:o}}))}function b(t){var e=t.barLabelAxisPos,n=t.animationCurve,r=t.animationFrame,i=t.rLevel,o=x(t);return e.map((function(e,a){return{name:o,index:i,animationCurve:n,animationFrame:r,shape:_(t,a),style:w(t,a)}}))}function x(t){var e=t.shapeType;return"leftEchelon"===e||"rightEchelon"===e?"polyline":"rect"}function _(t,e){var n=t.shapeType;return"leftEchelon"===n?function(t,e){var n=t.barValueAxisPos,r=t.barLabelAxisPos,i=t.barWidth,o=t.echelonOffset,s=(0,a.default)(n[e],2),l=s[0],u=s[1],c=r[e],h=i/2,p=t.valueAxis.axis,f=[];"x"===p?(f[0]=[u,c-h],f[1]=[u,c+h],f[2]=[l,c+h],f[3]=[l+o,c-h],u-l18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,i),e.a=i},"241e":function(t,e,n){var r=n("25eb");t.exports=function(t){return Object(r(t))}},"252f":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.line=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.xAxis,r=e.yAxis,i=e.series,o=[];n&&r&&i&&(o=v(o=(0,h.initNeedSeries)(i,u.lineConfig,"line"),t));(0,l.doUpdate)({chart:t,series:o,key:"lineArea",getGraphConfig:y,getStartGraphConfig:_,beforeUpdate:w,beforeChange:S}),(0,l.doUpdate)({chart:t,series:o,key:"line",getGraphConfig:M,getStartGraphConfig:I,beforeUpdate:w,beforeChange:S}),(0,l.doUpdate)({chart:t,series:o,key:"linePoint",getGraphConfig:k,getStartGraphConfig:A}),(0,l.doUpdate)({chart:t,series:o,key:"lineLabel",getGraphConfig:T})};var i=r(n("7037")),o=r(n("278c")),a=r(n("448a")),s=r(n("9523")),l=n("18ad"),u=n("9d85"),c=r(n("050c")),h=n("becb");function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e=l||"number"!=typeof t)return null;var n=[t,s[e][1-u]];return 0===u||n.reverse(),n}))}(r,i),a=function(t){var e=t.find((function(t){return"value"===t.data})),n=e.axis,r=e.linePosition,i=e.minValue,o=e.maxValue,a="x"===n?0:1,s=r[0][a];if(i<0&&o>0){var l=o-i,u=Math.abs(r[0][a]-r[1][a]),c=Math.abs(i)/l*u;"y"===n&&(c*=-1),s+=c}return{changeIndex:a,changeValue:s}}(i);return f(f({},e),{},{linePosition:o.filter((function(t){return t})),lineFillBottomPos:a})}))}function y(t){var e=t.animationCurve,n=t.animationFrame,r=t.lineFillBottomPos,i=t.rLevel;return[{name:O(t),index:i,animationCurve:e,animationFrame:n,visible:t.lineArea.show,lineFillBottomPos:r,shape:m(t),style:b(t),drawed:x}]}function m(t){return{points:t.linePosition}}function b(t){var e=t.lineArea,n=t.color,r=e.gradient,i=e.style,o=[i.fill||n],s=(0,h.deepMerge)(o,r);1===s.length&&s.push(s[0]);var l=function(t){var e=t.lineFillBottomPos,n=t.linePosition,r=e.changeIndex,i=e.changeValue,o=n.map((function(t){return t[r]})),s=Math.max.apply(Math,(0,a.default)(o)),l=Math.min.apply(Math,(0,a.default)(o)),u=s;1===r&&(u=l);return 1===r?[0,u,0,i]:[u,0,i,0]}(t);return i=f(f({},i),{},{stroke:"rgba(0, 0, 0, 0)"}),(0,h.deepMerge)({gradientColor:s,gradientParams:l,gradientType:"linear",gradientWith:"fill"},i)}function x(t,e){var n=t.lineFillBottomPos,r=t.shape,i=e.ctx,o=r.points,s=n.changeIndex,l=n.changeValue,u=(0,a.default)(o[o.length-1]),c=(0,a.default)(o[0]);u[s]=l,c[s]=l,i.lineTo.apply(i,(0,a.default)(u)),i.lineTo.apply(i,(0,a.default)(c)),i.closePath(),i.fill()}function _(t){var e=y(t)[0],n=f({},e.style);return n.opacity=0,e.style=n,[e]}function w(t,e,n,r){var i=t[n];if(i){var o=O(e),a=r.chart.render;o!==i[0].name&&(i.forEach((function(t){return a.delGraph(t)})),t[n]=null)}}function S(t,e){var n=e.shape.points,r=t.shape.points,i=r.length,o=n.length;if(o>i){var s=r.slice(-1)[0],l=new Array(o-i).fill(0).map((function(t){return(0,a.default)(s)}));r.push.apply(r,(0,a.default)(l))}else o1&&void 0!==arguments[1]&&arguments[1];if(!e)return(0,h.getPolylineLength)(t);var n=d(t);return g(n)}(t.linePosition,r);return(0,h.deepMerge)({stroke:n,lineDash:[i,0]},e)}function I(t){var e=t.lineStyle.lineDash,n=M(t)[0],r=n.style.lineDash;return r=e?[0,0]:(0,a.default)(r).reverse(),n.style.lineDash=r,[n]}function k(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=function(t){var e=t.linePosition,n=t.linePoint.radius;return e.map((function(t){var e=(0,o.default)(t,2),r=e[0],i=e[1];return{r:n,rx:r,ry:i}}))}(t),a=function(t){var e=t.color,n=t.linePoint.style;return(0,h.deepMerge)({stroke:e},n)}(t);return i.map((function(i){return{name:"circle",index:r+2,visible:t.linePoint.show,animationCurve:e,animationFrame:n,shape:i,style:a}}))}function A(t){var e=k(t);return e.forEach((function(t){t.shape.r=.1})),e}function T(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,s=function(t){var e=function(t){var e=t.data,n=t.label.formatter;if(e=e.filter((function(t){return"number"==typeof t})).map((function(t){return t.toString()})),!n)return e;var r=(0,i.default)(n);return"string"===r?e.map((function(t){return n.replace("{value}",t)})):"function"===r?e.map((function(t,e){return n({value:t,index:e})})):e}(t),n=function(t){var e=t.linePosition,n=t.lineFillBottomPos,r=t.label,i=r.position,s=r.offset,l=n.changeIndex,u=n.changeValue;return e.map((function(t){if("bottom"===i&&((t=(0,a.default)(t))[l]=u),"center"===i){var e=(0,a.default)(t);e[l]=u,n=t,r=e,c=(0,o.default)(n,2),h=c[0],p=c[1],f=(0,o.default)(r,2),d=f[0],g=f[1],t=[(h+d)/2,(p+g)/2]}var n,r,c,h,p,f,d,g,v,y,m,b,x,_,w,S;return v=t,y=s,m=(0,o.default)(v,2),b=m[0],x=m[1],_=(0,o.default)(y,2),w=_[0],S=_[1],[b+w,x+S]}))}(t);return e.map((function(t,e){return{content:t,position:n[e]}}))}(t),l=function(t){var e=t.color,n=t.label.style;return(0,h.deepMerge)({fill:e},n)}(t);return s.map((function(i,o){return{name:"text",index:r+3,visible:t.label.show,animationCurve:e,animationFrame:n,shape:i,style:l}}))}},"25eb":function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},"278c":function(t,e,n){var r=n("c135"),i=n("9b42"),o=n("6613"),a=n("c240");t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"2b0e":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"EffectScope",(function(){return xe})),n.d(e,"computed",(function(){return ue})),n.d(e,"customRef",(function(){return te})),n.d(e,"default",(function(){return ti})),n.d(e,"defineAsyncComponent",(function(){return Pn})),n.d(e,"defineComponent",(function(){return Xn})),n.d(e,"del",(function(){return Wt})),n.d(e,"effectScope",(function(){return _e})),n.d(e,"getCurrentInstance",(function(){return ht})),n.d(e,"getCurrentScope",(function(){return we})),n.d(e,"h",(function(){return gn})),n.d(e,"inject",(function(){return Ce})),n.d(e,"isProxy",(function(){return Pt})),n.d(e,"isReactive",(function(){return At})),n.d(e,"isReadonly",(function(){return Dt})),n.d(e,"isRef",(function(){return Yt})),n.d(e,"isShallow",(function(){return Tt})),n.d(e,"markRaw",(function(){return jt})),n.d(e,"mergeDefaults",(function(){return cn})),n.d(e,"nextTick",(function(){return An})),n.d(e,"onActivated",(function(){return Vn})),n.d(e,"onBeforeMount",(function(){return jn})),n.d(e,"onBeforeUnmount",(function(){return zn})),n.d(e,"onBeforeUpdate",(function(){return Rn})),n.d(e,"onDeactivated",(function(){return Fn})),n.d(e,"onErrorCaptured",(function(){return Yn})),n.d(e,"onMounted",(function(){return En})),n.d(e,"onRenderTracked",(function(){return Hn})),n.d(e,"onRenderTriggered",(function(){return Wn})),n.d(e,"onScopeDispose",(function(){return Se})),n.d(e,"onServerPrefetch",(function(){return Gn})),n.d(e,"onUnmounted",(function(){return Bn})),n.d(e,"onUpdated",(function(){return Nn})),n.d(e,"provide",(function(){return Me})),n.d(e,"proxyRefs",(function(){return Qt})),n.d(e,"reactive",(function(){return Ct})),n.d(e,"readonly",(function(){return oe})),n.d(e,"ref",(function(){return qt})),n.d(e,"set",(function(){return Ht})),n.d(e,"shallowReactive",(function(){return It})),n.d(e,"shallowReadonly",(function(){return le})),n.d(e,"shallowRef",(function(){return Xt})),n.d(e,"toRaw",(function(){return Lt})),n.d(e,"toRef",(function(){return ne})),n.d(e,"toRefs",(function(){return ee})),n.d(e,"triggerRef",(function(){return Zt})),n.d(e,"unref",(function(){return Kt})),n.d(e,"useAttrs",(function(){return sn})),n.d(e,"useCssModule",(function(){return Tn})),n.d(e,"useCssVars",(function(){return Dn})),n.d(e,"useListeners",(function(){return ln})),n.d(e,"useSlots",(function(){return an})),n.d(e,"version",(function(){return qn})),n.d(e,"watch",(function(){return me})),n.d(e,"watchEffect",(function(){return fe})),n.d(e,"watchPostEffect",(function(){return de})),n.d(e,"watchSyncEffect",(function(){return ge})); /*! * Vue.js v2.7.13 * (c) 2014-2022 Evan You * Released under the MIT License. */ var r=Object.freeze({}),i=Array.isArray;function o(t){return null==t}function a(t){return null!=t}function s(t){return!0===t}function l(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function u(t){return"function"==typeof t}function c(t){return null!==t&&"object"==typeof t}var h=Object.prototype.toString;function p(t){return"[object Object]"===h.call(t)}function f(t){return"[object RegExp]"===h.call(t)}function d(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function g(t){return a(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function v(t){return null==t?"":Array.isArray(t)||p(t)&&t.toString===h?JSON.stringify(t,null,2):String(t)}function y(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(r,1)}}var _=Object.prototype.hasOwnProperty;function w(t,e){return _.call(t,e)}function S(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var M=/-(\w)/g,O=S((function(t){return t.replace(M,(function(t,e){return e?e.toUpperCase():""}))})),C=S((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),I=/\B([A-Z])/g,k=S((function(t){return t.replace(I,"-$1").toLowerCase()}));var A=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function T(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function D(t,e){for(var n in e)t[n]=e[n];return t}function P(t){for(var e={},n=0;n0,Q=$&&$.indexOf("edge/")>0;$&&$.indexOf("android");var J=$&&/iphone|ipad|ipod|ios/.test($);$&&/chrome\/\d+/.test($),$&&/phantomjs/.test($);var tt,et=$&&$.match(/firefox\/(\d+)/),nt={}.watch,rt=!1;if(X)try{var it={};Object.defineProperty(it,"passive",{get:function(){rt=!0}}),window.addEventListener("test-passive",null,it)}catch(t){}var ot=function(){return void 0===tt&&(tt=!X&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),tt},at=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function st(t){return"function"==typeof t&&/native code/.test(t.toString())}var lt,ut="undefined"!=typeof Symbol&&st(Symbol)&&"undefined"!=typeof Reflect&&st(Reflect.ownKeys);lt="undefined"!=typeof Set&&st(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ct=null;function ht(){return ct&&{proxy:ct}}function pt(t){void 0===t&&(t=null),t||ct&&ct._scope.off(),ct=t,t&&t._scope.on()}var ft=function(){function t(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),dt=function(t){void 0===t&&(t="");var e=new ft;return e.text=t,e.isComment=!0,e};function gt(t){return new ft(void 0,void 0,void 0,String(t))}function vt(t){var e=new ft(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var yt=0,mt=[],bt=function(){function t(){this._pending=!1,this.id=yt++,this.subs=[]}return t.prototype.addSub=function(t){this.subs.push(t)},t.prototype.removeSub=function(t){this.subs[this.subs.indexOf(t)]=null,this._pending||(this._pending=!0,mt.push(this))},t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(t){var e=this.subs.filter((function(t){return t}));for(var n=0,r=e.length;n1)return n&&u(e)?e.call(r):e}else 0}var Ie=S((function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}}));function ke(t,e){function n(){var t=n.fns;if(!i(t))return yn(t,null,arguments,e,"v-on handler");for(var r=t.slice(),o=0;o0&&(Le((u=t(u,"".concat(n||"","_").concat(r)))[0])&&Le(h)&&(p[c]=gt(h.text+u[0].text),u.shift()),p.push.apply(p,u)):l(u)?Le(h)?p[c]=gt(h.text+u):""!==u&&p.push(gt(u)):Le(u)&&Le(h)?p[c]=gt(h.text+u.text):(s(e._isVList)&&a(u.tag)&&o(u.key)&&a(n)&&(u.key="__vlist".concat(n,"_").concat(r,"__")),p.push(u)));return p}(t):void 0}function Le(t){return a(t)&&a(t.text)&&!1===t.isComment}function je(t,e){var n,r,o,s,l=null;if(i(t)||"string"==typeof t)for(l=new Array(t.length),n=0,r=t.length;n0,s=e?!!e.$stable:!a,l=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&i&&i!==r&&l===i.$key&&!a&&!i.$hasNormal)return i;for(var u in o={},e)e[u]&&"$"!==u[0]&&(o[u]=Je(t,n,u,e[u]))}else o={};for(var c in n)c in o||(o[c]=tn(n,c));return e&&Object.isExtensible(e)&&(e._normalized=o),U(o,"$stable",s),U(o,"$key",l),U(o,"$hasNormal",a),o}function Je(t,e,n,r){var o=function(){var e=ct;pt(t);var n=arguments.length?r.apply(null,arguments):r({}),o=(n=n&&"object"==typeof n&&!i(n)?[n]:Pe(n))&&n[0];return pt(e),n&&(!o||1===n.length&&o.isComment&&!Ke(o))?void 0:n};return r.proxy&&Object.defineProperty(e,n,{get:o,enumerable:!0,configurable:!0}),o}function tn(t,e){return function(){return t[e]}}function en(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};U(e,"_v_attr_proxy",!0),nn(e,t.$attrs,r,t,"$attrs")}return t._attrsProxy},get listeners(){t._listenersProxy||nn(t._listenersProxy={},t.$listeners,r,t,"$listeners");return t._listenersProxy},get slots(){return function(t){t._slotsProxy||on(t._slotsProxy={},t.$scopedSlots);return t._slotsProxy}(t)},emit:A(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach((function(n){return Jt(t,e,n)}))}}}function nn(t,e,n,r,i){var o=!1;for(var a in e)a in t?e[a]!==n[a]&&(o=!0):(o=!0,rn(t,a,r,i));for(var a in t)a in e||(o=!0,delete t[a]);return o}function rn(t,e,n,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[r][e]}})}function on(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}function an(){return un().slots}function sn(){return un().attrs}function ln(){return un().listeners}function un(){var t=ct;return t._setupContext||(t._setupContext=en(t))}function cn(t,e){var n=i(t)?t.reduce((function(t,e){return t[e]={},t}),{}):t;for(var r in e){var o=n[r];o?i(o)||u(o)?n[r]={type:o,default:e[r]}:o.default=e[r]:null===o&&(n[r]={default:e[r]})}return n}var hn=null;function pn(t,e){return(t.__esModule||ut&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function fn(t){if(i(t))for(var e=0;edocument.createEvent("Event").timeStamp&&(vr=function(){return yr.now()})}var mr=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function br(){var t,e;for(gr=vr(),fr=!0,ur.sort(mr),dr=0;drdr&&ur[n].id>t.id;)n--;ur.splice(n+1,0,t)}else ur.push(t);pr||(pr=!0,An(br))}}function _r(t,e){if(t){for(var n=Object.create(null),r=ut?Reflect.ownKeys(t):Object.keys(t),i=0;i-1)if(o&&!w(i,"default"))a=!1;else if(""===a||a===k(t)){var l=Hr(String,i.type);(l<0||s-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function ii(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!e(s)&&oi(n,o,r,i)}}}function oi(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,x(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Qr++,e._isVue=!0,e.__v_skip=!0,e._scope=new xe(!0),e._scope._vm=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Nr(Jr(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._provided=n?n._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&rr(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=$e(e._renderChildren,i),t.$scopedSlots=n?Qe(t.$parent,n.data.scopedSlots,t.$slots):r,t._c=function(e,n,r,i){return dn(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return dn(t,e,n,r,i,!0)};var o=n&&n.data;Gt(t,"$attrs",o&&o.attrs||r,null,!0),Gt(t,"$listeners",e._parentListeners||r,null,!0)}(e),lr(e,"beforeCreate",void 0,!1),function(t){var e=_r(t.$options.inject,t);e&&(zt(!1),Object.keys(e).forEach((function(n){Gt(t,n,e[n])})),zt(!0))}(e),Yr(e),function(t){var e=t.$options.provide;if(e){var n=u(e)?e.call(t):e;if(!c(n))return;for(var r=Oe(t),i=ut?Reflect.ownKeys(n):Object.keys(n),o=0;o1?T(n):n;for(var r=T(arguments,1),i='event handler for "'.concat(t,'"'),o=0,a=n.length;oparseInt(this.max)&&oi(t,e[0],e,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)oi(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){ii(t,(function(t){return ri(e,t)}))})),this.$watch("exclude",(function(e){ii(t,(function(t){return!ri(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=fn(t),n=e&&e.componentOptions;if(n){var r=ni(n),i=this.include,o=this.exclude;if(i&&(!r||!ri(i,r))||o&&r&&ri(o,r))return e;var a=this.cache,s=this.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;a[l]?(e.componentInstance=a[l].componentInstance,x(s,l),s.push(l)):(this.vnodeToCache=e,this.keyToCache=l),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return G}};Object.defineProperty(t,"config",e),t.util={warn:Tr,extend:D,mergeOptions:Nr,defineReactive:Gt},t.set=Ht,t.delete=Wt,t.nextTick=An,t.observable=function(t){return Ft(t),t},t.options=Object.create(null),V.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,D(t.options.components,si),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=T(arguments,1);return n.unshift(this),u(t.install)?t.install.apply(t,n):u(t)&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Nr(this.options,t),this}}(t),ei(t),function(t){V.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&p(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&u(n)&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(ti),Object.defineProperty(ti.prototype,"$isServer",{get:ot}),Object.defineProperty(ti.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(ti,"FunctionalRenderContext",{value:wr}),ti.version=qn;var li=m("style,class"),ui=m("input,textarea,option,select,progress"),ci=m("contenteditable,draggable,spellcheck"),hi=m("events,caret,typing,plaintext-only"),pi=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),fi="http://www.w3.org/1999/xlink",di=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},gi=function(t){return di(t)?t.slice(6,t.length):""},vi=function(t){return null==t||!1===t};function yi(t){for(var e=t.data,n=t,r=t;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=mi(r.data,e));for(;a(n=n.parent);)n&&n.data&&(e=mi(e,n.data));return function(t,e){if(a(t)||a(e))return bi(t,xi(e));return""}(e.staticClass,e.class)}function mi(t,e){return{staticClass:bi(t.staticClass,e.staticClass),class:a(t.class)?[t.class,e.class]:e.class}}function bi(t,e){return t?e?t+" "+e:t:e||""}function xi(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r-1?Wi(t,e,n):pi(e)?vi(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):ci(e)?t.setAttribute(e,function(t,e){return vi(e)||"false"===e?"false":"contenteditable"===t&&hi(e)?e:"true"}(e,n)):di(e)?vi(n)?t.removeAttributeNS(fi,gi(e)):t.setAttributeNS(fi,e,n):Wi(t,e,n)}function Wi(t,e,n){if(vi(n))t.removeAttribute(e);else{if(Z&&!K&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Ui={create:Gi,update:Gi};function Yi(t,e){var n=e.elm,r=e.data,i=t.data;if(!(o(r.staticClass)&&o(r.class)&&(o(i)||o(i.staticClass)&&o(i.class)))){var s=yi(e),l=n._transitionClasses;a(l)&&(s=bi(s,xi(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var qi,Xi={create:Yi,update:Yi};function $i(t,e,n){var r=qi;return function i(){var o=e.apply(null,arguments);null!==o&&Qi(t,i,n,r)}}var Zi=_n&&!(et&&Number(et[1])<=53);function Ki(t,e,n,r){if(Zi){var i=gr,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}qi.addEventListener(t,e,rt?{capture:n,passive:r}:n)}function Qi(t,e,n,r){(r||qi).removeEventListener(t,e._wrapper||e,n)}function Ji(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},r=t.data.on||{};qi=e.elm||t.elm,function(t){if(a(t.__r)){var e=Z?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}a(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),Ae(n,r,Ki,Qi,$i,e.context),qi=void 0}}var to,eo={create:Ji,update:Ji,destroy:function(t){return Ji(t,Di)}};function no(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,r,i=e.elm,l=t.data.domProps||{},u=e.data.domProps||{};for(n in(a(u.__ob__)||s(u._v_attr_proxy))&&(u=e.data.domProps=D({},u)),l)n in u||(i[n]="");for(n in u){if(r=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===l[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var c=o(r)?"":String(r);ro(i,c)&&(i.value=c)}else if("innerHTML"===n&&Si(i.tagName)&&o(i.innerHTML)){(to=to||document.createElement("div")).innerHTML="".concat(r,"");for(var h=to.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;h.firstChild;)i.appendChild(h.firstChild)}else if(r!==l[n])try{i[n]=r}catch(t){}}}}function ro(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(a(r)){if(r.number)return y(n)!==y(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var io={create:no,update:no},oo=S((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function ao(t){var e=so(t.style);return t.staticStyle?D(t.staticStyle,e):e}function so(t){return Array.isArray(t)?P(t):"string"==typeof t?oo(t):t}var lo,uo=/^--/,co=/\s*!important$/,ho=function(t,e,n){if(uo.test(e))t.style.setProperty(e,n);else if(co.test(n))t.style.setProperty(k(e),n.replace(co,""),"important");else{var r=fo(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(yo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" ".concat(t.getAttribute("class")||""," ");n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function bo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(yo).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" ".concat(t.getAttribute("class")||""," "),r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function xo(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&D(e,_o(t.name||"v")),D(e,t),e}return"string"==typeof t?_o(t):void 0}}var _o=S((function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}})),wo=X&&!K,So="transition",Mo="transitionend",Oo="animation",Co="animationend";wo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(So="WebkitTransition",Mo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Oo="WebkitAnimation",Co="webkitAnimationEnd"));var Io=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function ko(t){Io((function(){Io(t)}))}function Ao(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),mo(t,e))}function To(t,e){t._transitionClasses&&x(t._transitionClasses,e),bo(t,e)}function Do(t,e,n){var r=Lo(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s="transition"===i?Mo:Co,l=0,u=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++l>=a&&u()};setTimeout((function(){l0&&(n="transition",c=a,h=o.length):"animation"===e?u>0&&(n="animation",c=u,h=l.length):h=(n=(c=Math.max(a,u))>0?a>u?"transition":"animation":null)?"transition"===n?o.length:l.length:0,{type:n,timeout:c,propCount:h,hasTransform:"transition"===n&&Po.test(r[So+"Property"])}}function jo(t,e){for(;t.length1}function Vo(t,e){!0!==e.data.show&&Ro(e)}var Fo=function(t){var e,n,r={},u=t.modules,c=t.nodeOps;for(e=0;ed?x(t,o(n[y+1])?null:n[y+1].elm,n,f,y,r):f>y&&w(e,h,d)}(h,g,y,n,u):a(y)?(a(t.text)&&c.setTextContent(h,""),x(h,null,y,0,y.length-1,n)):a(g)?w(g,0,g.length-1):a(t.text)&&c.setTextContent(h,""):t.text!==e.text&&c.setTextContent(h,e.text),a(d)&&a(f=d.hook)&&a(f=f.postpatch)&&f(t,e)}}}function C(t,e,n){if(s(n)&&a(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(R(Yo(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Uo(t,e){return e.every((function(e){return!R(e,t)}))}function Yo(t){return"_value"in t?t._value:t.value}function qo(t){t.target.composing=!0}function Xo(t){t.target.composing&&(t.target.composing=!1,$o(t.target,"input"))}function $o(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Zo(t){return!t.componentInstance||t.data&&t.data.transition?t:Zo(t.componentInstance._vnode)}var Ko={model:Go,show:{bind:function(t,e,n){var r=e.value,i=(n=Zo(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Ro(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Zo(n)).data&&n.data.transition?(n.data.show=!0,r?Ro(n,(function(){t.style.display=t.__vOriginalDisplay})):No(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},Qo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Jo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Jo(fn(e.children)):t}function ta(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var r in i)e[O(r)]=i[r];return e}function ea(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var na=function(t){return t.tag||Ke(t)},ra=function(t){return"show"===t.name},ia={name:"transition",props:Qo,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(na)).length){0;var r=this.mode;0;var i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=Jo(i);if(!o)return i;if(this._leaving)return ea(t,i);var a="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?a+"comment":a+o.tag:l(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=ta(this),u=this._vnode,c=Jo(u);if(o.data.directives&&o.data.directives.some(ra)&&(o.data.show=!0),c&&c.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,c)&&!Ke(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var h=c.data.transition=D({},s);if("out-in"===r)return this._leaving=!0,Te(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ea(t,i);if("in-out"===r){if(Ke(o))return u;var p,f=function(){p()};Te(s,"afterEnter",f),Te(s,"enterCancelled",f),Te(h,"delayLeave",(function(t){p=t}))}}return i}}},oa=D({tag:String,moveClass:String},Qo);function aa(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function sa(t){t.data.newPos=t.elm.getBoundingClientRect()}function la(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate(".concat(r,"px,").concat(i,"px)"),o.transitionDuration="0s"}}delete oa.mode;var ua={Transition:ia,TransitionGroup:{props:oa,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=or(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=ta(this),s=0;s-1?Oi[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Oi[t]=/HTMLUnknownElement/.test(e.toString())},D(ti.options.directives,Ko),D(ti.options.components,ua),ti.prototype.__patch__=X?Fo:L,ti.prototype.$mount=function(t,e){return function(t,e,n){var r;t.$el=e,t.$options.render||(t.$options.render=dt),lr(t,"beforeMount"),r=function(){t._update(t._render(),n)},new Jn(t,r,L,{before:function(){t._isMounted&&!t._isDestroyed&&lr(t,"beforeUpdate")}},!0),n=!1;var i=t._preWatchers;if(i)for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:5;if(!t)return console.error("getBezierCurveLength: Missing parameters!"),!1;if(!(t instanceof Array))return console.error("getBezierCurveLength: Parameter bezierCurve must be an array!"),!1;if("number"!=typeof e)return console.error("getBezierCurveLength: Parameter precision must be a number!"),!1;var n=c(t,e),r=n.segmentPoints,i=f([r])[0],o=p(i);return o},e.default=void 0;var i=r(n("278c")),o=r(n("448a")),a=Math.sqrt,s=Math.pow,l=Math.ceil,u=Math.abs;function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=t.length-1,r=t[0],i=t[n][2],a=t.slice(1),s=a.map((function(t,e){var n=0===e?r:a[e-1][2];return h.apply(void 0,[n].concat((0,o.default)(t)))})),l=new Array(n).fill(50),u=d(s,l),c=g(u,s,a,e);return c.segmentPoints.push(i),c}function h(t,e,n,r){return function(i){var o=1-i,a=s(o,3),l=s(o,2),u=s(i,3),c=s(i,2);return[t[0]*a+3*e[0]*i*l+3*n[0]*c*o+r[0]*u,t[1]*a+3*e[1]*i*l+3*n[1]*c*o+r[1]*u]}}function p(t){return t.reduce((function(t,e){return t+e}),0)}function f(t){return t.map((function(t,e){return new Array(t.length-1).fill(0).map((function(e,n){return r=t[n],o=t[n+1],l=(0,i.default)(r,2),u=l[0],c=l[1],h=(0,i.default)(o,2),p=h[0],f=h[1],a(s(u-p,2)+s(c-f,2));var r,o,l,u,c,h,p,f}))}))}function d(t,e){return t.map((function(t,n){var r=1/e[n];return new Array(e[n]).fill("").map((function(e,n){return t(n*r)}))}))}function g(t,e,n,r){var i=4,o=1,a=function(){var a=t.reduce((function(t,e){return t+e.length}),0);t.forEach((function(t,e){return t.push(n[e][2])}));var s=f(t),c=s.reduce((function(t,e){return t+e.length}),0),h=s.map((function(t){return p(t)})),g=p(h),v=g/c;if(function(t,e){return t.map((function(t){return t.map((function(t){return u(t-e)}))})).map((function(t){return p(t)})).reduce((function(t,e){return t+e}),0)}(s,v)<=r)return"break";a=l(v/r*a*1.1);var y=h.map((function(t){return l(t/g*a)}));t=d(e,y),a=t.reduce((function(t,e){return t+e.length}),0);var m=JSON.parse(JSON.stringify(t));m.forEach((function(t,e){return t.push(n[e][2])})),c=(s=f(m)).reduce((function(t,e){return t+e.length}),0),h=s.map((function(t){return p(t)})),g=p(h),v=g/c;var b=1/a/10;e.forEach((function(e,n){for(var r=y[n],o=new Array(r).fill("").map((function(t,e){return e/y[n]})),a=0;a1&&(o[u]=1),o[u]<0&&(o[u]=0),t[n][u]=e(o[u])}})),i*=4,o++};do{if("break"===a())break}while(i<=1025);return{segmentPoints:t=t.reduce((function(t,e){return t.concat(e)}),[]),cycles:o,rounds:i}}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!t)return console.error("bezierCurveToPolyline: Missing parameters!"),!1;if(!(t instanceof Array))return console.error("bezierCurveToPolyline: Parameter bezierCurve must be an array!"),!1;if("number"!=typeof e)return console.error("bezierCurveToPolyline: Parameter precision must be a number!"),!1;var n=c(t,e),r=n.segmentPoints;return r}var y=v;e.default=y},"2f62":function(t,e,n){"use strict";(function(t){var n=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var n,i=(n=function(e){return e.original===t},e.filter(n)[0]);if(i)return i.copy;var o=Array.isArray(t)?[]:{};return e.push({original:t,copy:o}),Object.keys(t).forEach((function(n){o[n]=r(t[n],e)})),o}function i(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function o(t){return null!==t&&"object"==typeof t}var a=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},s={namespaced:{configurable:!0}};s.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(t,e){this._children[t]=e},a.prototype.removeChild=function(t){delete this._children[t]},a.prototype.getChild=function(t){return this._children[t]},a.prototype.hasChild=function(t){return t in this._children},a.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},a.prototype.forEachChild=function(t){i(this._children,t)},a.prototype.forEachGetter=function(t){this._rawModule.getters&&i(this._rawModule.getters,t)},a.prototype.forEachAction=function(t){this._rawModule.actions&&i(this._rawModule.actions,t)},a.prototype.forEachMutation=function(t){this._rawModule.mutations&&i(this._rawModule.mutations,t)},Object.defineProperties(a.prototype,s);var l=function(t){this.register([],t,!1)};l.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},l.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")}),"")},l.prototype.update=function(t){!function t(e,n,r){0;if(n.update(r),r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;t(e.concat(i),n.getChild(i),r.modules[i])}}([],this.root,t)},l.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=new a(e,n);0===t.length?this.root=o:this.get(t.slice(0,-1)).addChild(t[t.length-1],o);e.modules&&i(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},l.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},l.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var u;var c=function(t){var e=this;void 0===t&&(t={}),!u&&"undefined"!=typeof window&&window.Vue&&m(window.Vue);var r=t.plugins;void 0===r&&(r=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(t,e){return a.call(o,t,e)},this.commit=function(t,e,n){return s.call(o,t,e,n)},this.strict=i;var c=this._modules.root.state;g(this,c,[],this._modules.root),d(this,c),r.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:u.config.devtools)&&function(t){n&&(t._devtoolHook=n,n.emit("vuex:init",t),n.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){n.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){n.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},h={state:{configurable:!0}};function p(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function f(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;g(t,n,[],t._modules.root,!0),d(t,n,e)}function d(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,a={};i(o,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=u.config.silent;u.config.silent=!0,t._vm=new u({data:{$$state:e},computed:a}),u.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),u.nextTick((function(){return r.$destroy()})))}function g(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!o&&!i){var s=v(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit((function(){u.set(s,l,r.state)}))}var c=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=y(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=e+l),t.dispatch(l,a)},commit:r?t.commit:function(n,r,i){var o=y(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l),t.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return v(t.state,n)}}}),i}(t,a,n);r.forEachMutation((function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){n.call(t,r.state,e)}))}(t,a+n,e,c)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push((function(e){var i,o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return(i=o)&&"function"==typeof i.then||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}(t,r,i,c)})),r.forEachGetter((function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,a+n,e,c)})),r.forEachChild((function(r,o){g(t,e,n.concat(o),r,i)}))}function v(t,e){return e.reduce((function(t,e){return t[e]}),t)}function y(t,e,n){return o(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function m(t){u&&t===u|| /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(u=t)}h.state.get=function(){return this._vm._data.$$state},h.state.set=function(t){0},c.prototype.commit=function(t,e,n){var r=this,i=y(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},c.prototype.dispatch=function(t,e){var n=this,r=y(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(t){0}var l=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){l.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(t){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(t){0}e(t)}))}))}},c.prototype.subscribe=function(t,e){return p(t,this._subscribers,e)},c.prototype.subscribeAction=function(t,e){return p("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},c.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},c.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},c.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),g(this,this.state,t,this._modules.get(t),n.preserveState),d(this,this.state)},c.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=v(e.state,t.slice(0,-1));u.delete(n,t[t.length-1])})),f(this)},c.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},c.prototype.hotUpdate=function(t){this._modules.update(t),f(this,!0)},c.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(c.prototype,h);var b=M((function(t,e){var n={};return S(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=O(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),x=M((function(t,e){var n={};return S(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=O(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),_=M((function(t,e){var n={};return S(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||O(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),w=M((function(t,e){var n={};return S(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=O(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n}));function S(t){return function(t){return Array.isArray(t)||o(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function M(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function O(t,e,n){return t._modulesNamespaceMap[n]}function C(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(n){t.log(e)}}function I(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function k(){var t=new Date;return" @ "+A(t.getHours(),2)+":"+A(t.getMinutes(),2)+":"+A(t.getSeconds(),2)+"."+A(t.getMilliseconds(),3)}function A(t,e){return n="0",r=e-t.toString().length,new Array(r+1).join(n)+t;var n,r}var T={Store:c,install:m,version:"3.6.2",mapState:b,mapMutations:x,mapGetters:_,mapActions:w,createNamespacedHelpers:function(t){return{mapState:b.bind(null,t),mapGetters:_.bind(null,t),mapMutations:x.bind(null,t),mapActions:w.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var i=t.transformer;void 0===i&&(i=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var l=t.logMutations;void 0===l&&(l=!0);var u=t.logActions;void 0===u&&(u=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var h=r(t.state);void 0!==c&&(l&&t.subscribe((function(t,a){var s=r(a);if(n(t,h,s)){var l=k(),u=o(t),p="mutation "+t.type+l;C(c,p,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",i(h)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",i(s)),I(c)}h=s})),u&&t.subscribeAction((function(t,n){if(a(t,n)){var r=k(),i=s(t),o="action "+t.type+r;C(c,o,e),c.log("%c action","color: #03A9F4; font-weight: bold",i),I(c)}})))}}};e.a=T}).call(this,n("c8ba"))},"30f1":function(t,e,n){"use strict";var r=n("b8e3"),i=n("63b6"),o=n("9138"),a=n("35e8"),s=n("481b"),l=n("8f60"),u=n("45f2"),c=n("53e2"),h=n("5168")("iterator"),p=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,n,d,g,v,y){l(n,e,d);var m,b,x,_=function(t){if(!p&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",S="values"==g,M=!1,O=t.prototype,C=O[h]||O["@@iterator"]||g&&O[g],I=C||_(g),k=g?S?_("entries"):I:void 0,A="Array"==e&&O.entries||C;if(A&&(x=c(A.call(new t)))!==Object.prototype&&x.next&&(u(x,w,!0),r||"function"==typeof x[h]||a(x,h,f)),S&&C&&"values"!==C.name&&(M=!0,I=function(){return C.call(this)}),r&&!y||!p&&!M&&O[h]||a(O,h,I),s[e]=I,s[w]=f,g)if(m={values:S?I:_("values"),keys:v?I:_("keys"),entries:k},y)for(b in m)b in O||o(O,b,m[b]);else i(i.P+i.F*(p||M),e,m);return m}},"313e":function(t,e,n){"use strict";n.d(e,"c",(function(){return Cg})),n.d(e,"d",(function(){return Ng})),n.d(e,"a",(function(){return zg})),n.d(e,"b",(function(){return i}));var r={};n.r(r),n.d(r,"updateProps",(function(){return Ta})),n.d(r,"initProps",(function(){return Da})),n.d(r,"removeElement",(function(){return La})),n.d(r,"removeElementWithFadeOut",(function(){return Ea})),n.d(r,"isElementRemoved",(function(){return Pa})),n.d(r,"extendShape",(function(){return mp})),n.d(r,"extendPath",(function(){return xp})),n.d(r,"registerShape",(function(){return _p})),n.d(r,"getShapeClass",(function(){return wp})),n.d(r,"makePath",(function(){return Sp})),n.d(r,"makeImage",(function(){return Mp})),n.d(r,"mergePath",(function(){return Cp})),n.d(r,"resizePath",(function(){return Ip})),n.d(r,"subPixelOptimizeLine",(function(){return kp})),n.d(r,"subPixelOptimizeRect",(function(){return Ap})),n.d(r,"subPixelOptimize",(function(){return Tp})),n.d(r,"getTransform",(function(){return Dp})),n.d(r,"applyTransform",(function(){return Pp})),n.d(r,"transformDirection",(function(){return Lp})),n.d(r,"groupTransition",(function(){return Ep})),n.d(r,"clipPointsByRect",(function(){return Rp})),n.d(r,"clipRectByRect",(function(){return Np})),n.d(r,"createIcon",(function(){return zp})),n.d(r,"linePolygonIntersect",(function(){return Bp})),n.d(r,"lineLineIntersect",(function(){return Vp})),n.d(r,"setTooltipConfig",(function(){return Gp})),n.d(r,"traverseElements",(function(){return Wp})),n.d(r,"Group",(function(){return Mn})),n.d(r,"Image",(function(){return so})),n.d(r,"Text",(function(){return Po})),n.d(r,"Circle",(function(){return yh})),n.d(r,"Ellipse",(function(){return xh})),n.d(r,"Sector",(function(){return Eh})),n.d(r,"Ring",(function(){return zh})),n.d(r,"Polygon",(function(){return Gh})),n.d(r,"Polyline",(function(){return Uh})),n.d(r,"Rect",(function(){return vo})),n.d(r,"Line",(function(){return $h})),n.d(r,"BezierCurve",(function(){return tp})),n.d(r,"Arc",(function(){return rp})),n.d(r,"IncrementalDisplayable",(function(){return dp})),n.d(r,"CompoundPath",(function(){return ip})),n.d(r,"LinearGradient",(function(){return ap})),n.d(r,"RadialGradient",(function(){return sp})),n.d(r,"BoundingRect",(function(){return ft})),n.d(r,"OrientedBoundingRect",(function(){return pp})),n.d(r,"Point",(function(){return it})),n.d(r,"Path",(function(){return to}));var i={};n.r(i),n.d(i,"extendShape",(function(){return mp})),n.d(i,"extendPath",(function(){return xp})),n.d(i,"makePath",(function(){return Sp})),n.d(i,"makeImage",(function(){return Mp})),n.d(i,"mergePath",(function(){return Cp})),n.d(i,"resizePath",(function(){return Ip})),n.d(i,"createIcon",(function(){return zp})),n.d(i,"updateProps",(function(){return Ta})),n.d(i,"initProps",(function(){return Da})),n.d(i,"getTransform",(function(){return Dp})),n.d(i,"clipPointsByRect",(function(){return Rp})),n.d(i,"clipRectByRect",(function(){return Np})),n.d(i,"registerShape",(function(){return _p})),n.d(i,"getShapeClass",(function(){return wp})),n.d(i,"Group",(function(){return Mn})),n.d(i,"Image",(function(){return so})),n.d(i,"Text",(function(){return Po})),n.d(i,"Circle",(function(){return yh})),n.d(i,"Ellipse",(function(){return xh})),n.d(i,"Sector",(function(){return Eh})),n.d(i,"Ring",(function(){return zh})),n.d(i,"Polygon",(function(){return Gh})),n.d(i,"Polyline",(function(){return Uh})),n.d(i,"Rect",(function(){return vo})),n.d(i,"Line",(function(){return $h})),n.d(i,"BezierCurve",(function(){return tp})),n.d(i,"Arc",(function(){return rp})),n.d(i,"IncrementalDisplayable",(function(){return dp})),n.d(i,"CompoundPath",(function(){return ip})),n.d(i,"LinearGradient",(function(){return ap})),n.d(i,"RadialGradient",(function(){return sp})),n.d(i,"BoundingRect",(function(){return ft})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var s=n("22d1"),l=n("6d8b");function u(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function c(t,e){return t[0]=e[0],t[1]=e[1],t}function h(t){return[t[0],t[1]]}function p(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function f(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function d(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function g(t){return Math.sqrt(v(t))}function v(t){return t[0]*t[0]+t[1]*t[1]}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function m(t,e){var n=g(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function b(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var x=b;var _=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function w(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function S(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function M(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function O(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var C=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},I=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new C(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new C(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new C(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new C(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new C(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new C(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),k=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),o,i);if(a)return a(t,n,r),!0}return!1}function j(t){return"CANVAS"===t.nodeName.toUpperCase()}var E=/([&<>"'])/g,R={"&":"&","<":"<",">":">",'"':""","'":"'"};function N(t){return null==t?"":(t+"").replace(E,(function(t,e){return R[e]}))}var z=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,B=[],V=s.a.browser.firefox&&+s.a.browser.version.split(".")[0]<39;function F(t,e,n,r){return n=n||{},r?G(t,e,n):V&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):G(t,e,n),n}function G(t,e,n){if(s.a.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(j(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(L(B,t,r,i))return n.zrX=B[0],void(n.zrY=B[1])}n.zrX=n.zrY=0}function H(t){return t||window.event}function W(t,e,n){if(null!=(e=H(e)).zrX)return e;var r=e.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];i&&F(t,i,e,n)}else{F(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&z.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function U(t,e,n,r){t.addEventListener(e,n,r)}var Y=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function q(t){return 2===t.which||3===t.which}var X=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o1&&i&&i.length>1){var a=$(i)/$(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function K(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Q(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function J(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function tt(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function et(t,e,n){var r=e[0],i=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=r*c+a*u,t[1]=-r*u+a*c,t[2]=i*c+s*u,t[3]=-i*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function nt(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function rt(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}var it=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),ot=Math.min,at=Math.max,st=new it,lt=new it,ut=new it,ct=new it,ht=new it,pt=new it,ft=function(){function t(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=ot(t.x,this.x),n=ot(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=at(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=at(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,i=[1,0,0,1,0,0];return tt(i,i,[-e.x,-e.y]),nt(i,i,[n,r]),tt(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,p=!(od&&(d=b,gd&&(d=x,y=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}st.x=ut.x=n.x,st.y=ct.y=n.y,lt.x=ct.x=n.x+n.width,lt.y=ut.y=n.y+n.height,st.transform(r),ct.transform(r),lt.transform(r),ut.transform(r),e.x=ot(st.x,lt.x,ut.x,ct.x),e.y=ot(st.y,lt.y,ut.y,ct.y);var l=at(st.x,lt.x,ut.x,ct.x),u=at(st.y,lt.y,ut.y,ct.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}();function dt(){Y(this.event)}var gt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return a(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(k),vt=function(t,e){this.x=t,this.y=e},yt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],mt=new ft(0,0,0,0),bt=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new vt(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new gt,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new I(a),a}return a(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(l.k(yt,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=wt(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new vt(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new vt(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var r=(t=t||{}).target;if(!r||!r.silent){for(var i="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:dt}}(e,t,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new vt(t,e);if(_t(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new ft(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(mt.copy(c.getBoundingRect()),c.transform&&mt.applyTransform(c.transform),mt.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,p=2*Math.PI,f=0;f=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=xt(a,n,r))&&(!e.topTarget&&(e.topTarget=a),"silent"!==s)){e.target=a;break}}}function wt(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}l.k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){bt.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=wt(this,i,o);if("mouseup"===t&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||x(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var St=bt;function Mt(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;i=0;)i++;return i-e}function Ot(t,e,n,r,i){for(r===e&&r++;r>>1])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Ct(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){for(s=r-i;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function It(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function kt(t,e){var n,r,i,o=7,a=0;n=t.length;var s=[];function l(n){var l=r[n],u=i[n],c=r[n+1],h=i[n+1];i[n]=u+h,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var p=It(t[c],t,l,u,0,e);l+=p,0!==(u-=p)&&0!==(h=Ct(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,r,i,a){var l=0;for(l=0;l=7||f>=7);if(d)break;g<0&&(g=0),g+=2}if((o=g)<1&&(o=1),1===r){for(l=0;l=0;l--)t[f+l]=t[p+l];return void(t[h]=s[c])}var d=o;for(;;){var g=0,v=0,y=!1;do{if(e(s[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0==--r){y=!0;break}}else if(t[h--]=s[c--],v++,g=0,1==--a){y=!0;break}}while((g|v)=0;l--)t[f+l]=t[p+l];if(0===r){y=!0;break}}if(t[h--]=s[c--],1==--a){y=!0;break}if(0!==(v=a-Ct(t[u],s,0,a,a-1,e))){for(a-=v,f=(h-=v)+1,p=(c-=v)+1,l=0;l=7||v>=7);if(y)break;d<0&&(d=0),d+=2}(o=d)<1&&(o=1);if(1===a){for(f=(h-=r)+1,p=(u-=r)+1,l=r-1;l>=0;l--)t[f+l]=t[p+l];t[h]=s[c]}else{if(0===a)throw new Error;for(p=h-(a-1),l=0;l1;){var t=a-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;l(t)}},forceMergeRuns:function(){for(;a>1;){var t=a-2;t>0&&i[t-1]=32;)e|=1&t,t>>=1;return t+e}(i);do{if((o=Mt(t,n,r,e))s&&(l=s),Ot(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}}var Tt=!1;function Dt(){Tt||(Tt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Pt(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Lt=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Pt}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(Dt(),u.z=0),isNaN(u.z2)&&(Dt(),u.z2=0),isNaN(u.zlevel)&&(Dt(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),jt=s.a.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Et={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Et.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Et.bounceIn(2*t):.5*Et.bounceOut(2*t-1)+.5}},Rt=Et,Nt=Math.pow,zt=Math.sqrt,Bt=zt(3),Vt=u(),Ft=u(),Gt=u();function Ht(t){return t>-1e-8&&t<1e-8}function Wt(t){return t>1e-8||t<-1e-8}function Ut(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function Yt(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function qt(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,h=s*l-9*a*u,p=l*l-3*s*u,f=0;if(Ht(c)&&Ht(h)){if(Ht(s))o[0]=0;else(M=-l/s)>=0&&M<=1&&(o[f++]=M)}else{var d=h*h-4*c*p;if(Ht(d)){var g=h/c,v=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[f++]=M),v>=0&&v<=1&&(o[f++]=v)}else if(d>0){var y=zt(d),m=c*s+1.5*a*(-h+y),b=c*s+1.5*a*(-h-y);(M=(-s-((m=m<0?-Nt(-m,1/3):Nt(m,1/3))+(b=b<0?-Nt(-b,1/3):Nt(b,1/3))))/(3*a))>=0&&M<=1&&(o[f++]=M)}else{var x=(2*c*s-3*a*h)/(2*zt(c*c*c)),_=Math.acos(x)/3,w=zt(c),S=Math.cos(_),M=(-s-2*w*S)/(3*a),O=(v=(-s+w*(S+Bt*Math.sin(_)))/(3*a),(-s+w*(S-Bt*Math.sin(_)))/(3*a));M>=0&&M<=1&&(o[f++]=M),v>=0&&v<=1&&(o[f++]=v),O>=0&&O<=1&&(o[f++]=O)}}return f}function Xt(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(Ht(a)){if(Wt(o))(c=-s/o)>=0&&c<=1&&(i[l++]=c)}else{var u=o*o-4*a*s;if(Ht(u))i[0]=-o/(2*a);else if(u>0){var c,h=zt(u),p=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(i[l++]=c),p>=0&&p<=1&&(i[l++]=p)}}return l}function $t(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function Zt(t,e,n,r,i,o,a,s,l,u,c){var h,p,f,d,g,v=.005,y=1/0;Vt[0]=l,Vt[1]=u;for(var m=0;m<1;m+=.05)Ft[0]=Ut(t,n,i,a,m),Ft[1]=Ut(e,r,o,s,m),(d=_(Vt,Ft))=0&&d=0&&v=1?1:qt(0,r,o,1,t,s)&&Ut(0,i,a,1,s[0])}}}var ae=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||l.L,this.ondestroy=t.ondestroy||l.L,this.onrestart=t.onrestart||l.L,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(l.w)(t)?t:Rt[t]||oe(t)},t}(),se=n("41ef"),le=n("7a29"),ue=Array.prototype.slice;function ce(t,e,n){return(e-t)*n+t}function he(t,e,n,r){for(var i=e.length,o=0;or?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)r.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=6,s=e;if(Object(l.u)(e)){var u=function(t){return Object(l.u)(t&&t[0])?2:1}(e);a=u,(1===u&&!Object(l.z)(e[0])||2===u&&!Object(l.z)(e[0][0]))&&(o=!0)}else if(Object(l.z)(e)&&!Object(l.l)(e))a=0;else if(Object(l.C)(e))if(isNaN(+e)){var c=se.g(e);c&&(s=c,a=3)}else a=0;else if(Object(l.x)(e)){var h=Object(l.m)({},s);h.colorStops=Object(l.H)(e.colorStops,(function(t){return{offset:t.offset,color:se.g(t.color)}})),Object(le.m)(e)?a=4:Object(le.o)(e)&&(a=5),s=h}0===i?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var p={time:t,value:s,rawValue:e,percent:0};return n&&(p.easing=n,p.easingFunc=Object(l.w)(n)?n:Rt[n]||oe(n)),r.push(p),p},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=be(r),l=me(r),u=0;u=0&&!(u[n].percent<=e);n--);n=d(n,c-2)}else{for(n=f;ne);n++);n=d(n-1,c-2)}i=u[n+1],r=u[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var g=i.percent-r.percent,v=0===g?1:d((e-r.percent)/g,1);i.easingFunc&&(v=i.easingFunc(v));var y=o?this._additiveValue:p?xe:t[h];if(!be(s)&&!p||y||(y=this._additiveValue=[]),this.discrete)t[h]=v<1?r.rawValue:i.rawValue;else if(be(s))1===s?he(y,r[a],i[a],v):function(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a0&&s.addKeyframe(0,ve(l),r),this._trackKeys.push(a)}s.addKeyframe(t,ve(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();function Se(){return(new Date).getTime()}var Me,Oe,Ce=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return a(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=Se()-this._pausedTime,n=e-this._time,r=this._head;r;){var i=r.next;r.step(e,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,jt((function e(){t._running&&(jt(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=Se(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Se(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Se()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new we(t,e.loop);return this.addAnimator(n),n},e}(k),Ie=s.a.domSupported,ke=(Oe={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Me=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:l.H(Me,(function(t){var e=t.replace("mouse","pointer");return Oe.hasOwnProperty(e)?e:t}))}),Ae=["mousemove","mouseup"],Te=["pointermove","pointerup"],De=!1;function Pe(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Le(t){t&&(t.zrByTouch=!0)}function je(t,e){for(var n=e,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var Ee=function(t,e){this.stopPropagation=l.L,this.stopImmediatePropagation=l.L,this.preventDefault=l.L,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Re={mousedown:function(t){t=W(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=W(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=W(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){je(this,(t=W(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){De=!0,t=W(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){De||(t=W(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Le(t=W(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Re.mousemove.call(this,t),Re.mousedown.call(this,t)},touchmove:function(t){Le(t=W(this.dom,t)),this.handler.processGesture(t,"change"),Re.mousemove.call(this,t)},touchend:function(t){Le(t=W(this.dom,t)),this.handler.processGesture(t,"end"),Re.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Re.click.call(this,t)},pointerdown:function(t){Re.mousedown.call(this,t)},pointermove:function(t){Pe(t)||Re.mousemove.call(this,t)},pointerup:function(t){Re.mouseup.call(this,t)},pointerout:function(t){Pe(t)||Re.mouseout.call(this,t)}};l.k(["click","dblclick","contextmenu"],(function(t){Re[t]=function(e){e=W(this.dom,e),this.trigger(t,e)}}));var Ne={pointermove:function(t){Pe(t)||Ne.mousemove.call(this,t)},pointerup:function(t){Ne.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function ze(t,e){var n=e.domHandlers;s.a.pointerEventsSupported?l.k(ke.pointer,(function(r){Ve(e,r,(function(e){n[r].call(t,e)}))})):(s.a.touchEventsSupported&&l.k(ke.touch,(function(r){Ve(e,r,(function(i){n[r].call(t,i),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),l.k(ke.mouse,(function(r){Ve(e,r,(function(i){i=H(i),e.touching||n[r].call(t,i)}))})))}function Be(t,e){function n(n){Ve(e,n,(function(r){r=H(r),je(t,r.target)||(r=function(t,e){return W(t.dom,new Ee(t,e),!0)}(t,r),e.domHandlers[n].call(t,r))}),{capture:!0})}s.a.pointerEventsSupported?l.k(Te,n):s.a.touchEventsSupported||l.k(Ae,n)}function Ve(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,U(t.domTarget,e,n,r)}function Fe(t){var e,n,r,i,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,n=a,r=o[a],i=t.listenerOpts[a],e.removeEventListener(n,r,i));t.mounted={}}var Ge=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},He=function(t){function e(e,n){var r=t.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=n,r._localHandlerScope=new Ge(e,Re),Ie&&(r._globalHandlerScope=new Ge(document,Ne)),ze(r,r._localHandlerScope),r}return a(e,t),e.prototype.dispose=function(){Fe(this._localHandlerScope),Ie&&Fe(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Ie&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Be(this,e):Fe(e)}},e}(k),We=1;s.a.hasGlobalWindow&&(We=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ue=We,Ye=K;function qe(t){return t>5e-5||t<-5e-5}var Xe=[],$e=[],Ze=[1,0,0,1,0,0],Ke=Math.abs,Qe=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return qe(this.rotation)||qe(this.x)||qe(this.y)||qe(this.scaleX-1)||qe(this.scaleY-1)||qe(this.skewX)||qe(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):Ye(n),t&&(e?J(n,t,n):Q(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Ye(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Xe);var n=Xe[0]<0?-1:1,r=Xe[1]<0?-1:1,i=((Xe[0]-n)*e+n)/Xe[0]||0,o=((Xe[1]-r)*e+r)/Xe[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],rt(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(J($e,t.invTransform,e),e=$e);var n=this.originX,r=this.originY;(n||r)&&(Ze[4]=n,Ze[5]=r,J($e,e,Ze),$e[4]-=n,$e[5]-=r,e=$e),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&S(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&S(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Ke(t[0]-1)>1e-10&&Ke(t[3]-1)>1e-10?Math.sqrt(Ke(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){tn(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var f=n+a,d=r+s;e[4]=-f*i-h*d*o,e[5]=-d*o-p*f*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=p*i,e[2]=h*o,l&&et(e,e,l),e[4]+=n+u,e[5]+=r+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),Je=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function tn(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function fn(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=pn(r[0],n.width),u+=pn(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var dn=Je.concat(["ignore"]),gn=Object(l.N)(Je,(function(t,e){return t[e]=!0,t}),{ignore:!1}),vn={},yn=new ft(0,0,0,0),mn=function(){function t(t){this.id=Object(l.p)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var u=yn;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(vn,n,u):fn(vn,n,u),i.x=vn.x,i.y=vn.y,o=vn.align,a=vn.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,p=void 0;"center"===c?(h=.5*u.width,p=.5*u.height):(h=pn(c[0],u.width),p=pn(c[1],u.height)),l=!0,i.originX=-i.x+h+(r?0:u.x),i.originY=-i.y+p+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var f=n.offset;f&&(i.x+=f[0],i.y+=f[1],l||(i.originX=-f[0],i.originY=-f[1]));var d=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(v),m=!0)),(v=v||"#000")===g.fill&&y===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?"#ccc":"#333"},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Object(se.g)(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(se.h)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(l.m)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(Object(l.A)(t))for(var n=t,r=Object(l.F)(n),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState("__zr_normal__",!1,t)},t.prototype.useState=function(t,e,n,r){var i="__zr_normal__"===t;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(Object(l.r)(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||i){i||this.saveCurrentToNormalState(s);var u=!!(s&&s.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,u),h&&h.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}Object(l.G)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s0,f);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=Object(l.r)(r,t),o=Object(l.r)(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o0||o.force&&!s.length){var M,O=void 0,C=void 0,I=void 0;if(u){C={},d&&(O={});for(w=0;w<_;w++){b=y[w];C[b]=r[b],d?O[b]=i[b]:r[b]=i[b]}}else if(d){I={};for(w=0;w<_;w++){b=y[w];I[b]=ve(r[b]),_n(r,i,b)}}(M=new we(r,!1,!1,f?Object(l.n)(v,(function(t){return t.targetName===n})):null)).targetName=n,o.scope&&(M.scope=o.scope),d&&O&&M.whenWithKeys(0,O,y),I&&M.whenWithKeys(0,I,y),M.whenWithKeys(null==h?500:h,u?C:i,y).delay(p||0),e.addAnimator(M,n),s.push(M)}}(t,"",t,e,n=n||{},r,o,i);var a=o.length,s=!1,u=n.done,c=n.aborted,h=function(){s=!0,--a<=0&&(s?u&&u():c&&c())},p=function(){--a<=0&&(s?u&&u():c&&c())};a||u&&u(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var f=0;f=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=l.r(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=l.r(n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function Tn(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return l.C(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function Dn(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function Pn(t){return t.sort((function(t,e){return t-e})),t}function Ln(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return function(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}(t)}function jn(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function En(t,e){var n=l.N(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var r=Math.pow(10,e),i=l.H(t,(function(t){return(isNaN(t)?0:t)/n*r*100})),o=100*r,a=l.H(i,(function(t){return Math.floor(t)})),s=l.N(a,(function(t,e){return t+e}),0),u=l.H(i,(function(t,e){return t-a[e]}));sc&&(c=u[p],h=p);++a[h],u[h]=0,++s}return l.H(a,(function(t){return t/r}))}function Rn(t,e){var n=Math.max(Ln(t),Ln(e)),r=t+e;return n>20?r:Dn(r,n)}function Nn(t){var e=2*Math.PI;return(t%e+e)%e}function zn(t){return t>-1e-4&&t<1e-4}var Bn=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Vn(t){if(t instanceof Date)return t;if(l.C(t)){var e=Bn.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function Fn(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Gn(t,e){var n=Fn(t),r=Math.pow(10,n),i=t/r;return t=(e?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+t.toFixed(n<0?-n:0):t}function Hn(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function Wn(t){t.sort((function(t,e){return function t(e,n,r){return e.interval[r]=0||i&&l.r(i,s)<0)){var u=n.getShallow(s,e);null!=u&&(o[t[a][0]]=u)}}return o}}var Ir=Cr([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),kr=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Ir(this,t,e)},t}(),Ar=new nn.a(50);function Tr(t){if("string"==typeof t){var e=Ar.get(t);return e&&e.image}return t}function Dr(t,e,n,r,i){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Ar.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?!Lr(e=o.image)&&o.pending.push(a):((e=rn.d.loadImage(t,Pr,Pr)).__zrImageSrc=t,Ar.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Pr(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;u++)s-=a;var c=an(n,e);return c>s&&(n="",c=0),s=t-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=t,i}function Nr(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=an(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?zr(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;o=an(t=t.substr(0,s),r)}return""===t&&(t=e.placeholder),t}function zr(t,e,n,r){for(var i=0,o=0,a=t.length;o0&&d+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=d}else{var g=Ur(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v=33&&e<=383}(t)||!!Hr[t]}function Ur(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;hn:i+c+f>n)?c?(s||l)&&(d?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=p,s="",c=u+=f):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=f)):d?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f)):(c+=f,d?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var Yr="__zr_style_"+Math.round(10*Math.random()),qr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Xr={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};qr[Yr]=!0;var $r=["z","z2","invisible"],Zr=["invisible"],Kr=function(t){function e(e){return t.call(this,e)||this}var n;return a(e,t),e.prototype._init=function(e){for(var n=Object(l.F)(e),r=0;r1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(ai[0]=ii(i)*n+t,ai[1]=ri(i)*r+e,si[0]=ii(o)*n+t,si[1]=ri(o)*r+e,u(s,ai,si),c(l,ai,si),(i%=oi)<0&&(i+=oi),(o%=oi)<0&&(o+=oi),i>o&&!a?o+=oi:ii&&(li[0]=ii(f)*n+t,li[1]=ri(f)*r+e,u(s,li,s),c(l,li,l))}var vi={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},yi=[],mi=[],bi=[],xi=[],_i=[],wi=[],Si=Math.min,Mi=Math.max,Oi=Math.cos,Ci=Math.sin,Ii=Math.abs,ki=Math.PI,Ai=2*ki,Ti="undefined"!=typeof Float32Array,Di=[];function Pi(t){return Math.round(t/ki*1e8)/1e8%2*ki}function Li(t,e){var n=Pi(t[0]);n<0&&(n+=Ai);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=Ai?i=n+Ai:e&&n-i>=Ai?i=n-Ai:!e&&n>i?i=n+(Ai-Pi(n-i)):e&&n0&&(this._ux=Ii(n/Ue/t)||0,this._uy=Ii(n/Ue/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(vi.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Ii(t-this._xi),r=Ii(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(vi.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(vi.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(vi.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),Di[0]=r,Di[1]=i,Li(Di,o),r=Di[0];var a=(i=Di[1])-r;return this.addData(vi.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=Oi(i)*n+t,this._yi=Ci(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(vi.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(vi.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Ti||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){bi[0]=bi[1]=_i[0]=_i[1]=Number.MAX_VALUE,xi[0]=xi[1]=wi[0]=wi[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;tn||Ii(v)>r||h===e-1)&&(d=Math.sqrt(A*A+v*v),i=g,o=b);break;case vi.C:var y=t[h++],m=t[h++],b=(g=t[h++],t[h++]),x=t[h++],_=t[h++];d=Kt(i,o,y,m,g,b,x,_,10),i=x,o=_;break;case vi.Q:d=re(i,o,y=t[h++],m=t[h++],g=t[h++],b=t[h++],10),i=g,o=b;break;case vi.A:var w=t[h++],S=t[h++],M=t[h++],O=t[h++],C=t[h++],I=t[h++],k=I+C;h+=1;t[h++];f&&(a=Oi(C)*M+w,s=Ci(C)*O+S),d=Mi(M,O)*Si(Ai,Math.abs(I)),i=Oi(k)*M+w,o=Ci(k)*O+S;break;case vi.R:a=i=t[h++],s=o=t[h++],d=2*t[h++]+2*t[h++];break;case vi.Z:var A=a-i;v=s-o;d=Math.sqrt(A*A+v*v),i=a,o=s}d>=0&&(l[c++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,h,p=this.data,f=this._ux,d=this._uy,g=this._len,v=e<1,y=0,m=0,b=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var x=0;x0&&(t.lineTo(c,h),b=0),_){case vi.M:n=i=p[x++],r=o=p[x++],t.moveTo(i,o);break;case vi.L:a=p[x++],s=p[x++];var S=Ii(a-i),M=Ii(s-o);if(S>f||M>d){if(v){if(y+(X=l[m++])>u){var O=(u-y)/X;t.lineTo(i*(1-O)+a*O,o*(1-O)+s*O);break t}y+=X}t.lineTo(a,s),i=a,o=s,b=0}else{var C=S*S+M*M;C>b&&(c=a,h=s,b=C)}break;case vi.C:var I=p[x++],k=p[x++],A=p[x++],T=p[x++],D=p[x++],P=p[x++];if(v){if(y+(X=l[m++])>u){$t(i,I,A,D,O=(u-y)/X,yi),$t(o,k,T,P,O,mi),t.bezierCurveTo(yi[1],mi[1],yi[2],mi[2],yi[3],mi[3]);break t}y+=X}t.bezierCurveTo(I,k,A,T,D,P),i=D,o=P;break;case vi.Q:I=p[x++],k=p[x++],A=p[x++],T=p[x++];if(v){if(y+(X=l[m++])>u){ee(i,I,A,O=(u-y)/X,yi),ee(o,k,T,O,mi),t.quadraticCurveTo(yi[1],mi[1],yi[2],mi[2]);break t}y+=X}t.quadraticCurveTo(I,k,A,T),i=A,o=T;break;case vi.A:var L=p[x++],j=p[x++],E=p[x++],R=p[x++],N=p[x++],z=p[x++],B=p[x++],V=!p[x++],F=E>R?E:R,G=Ii(E-R)>.001,H=N+z,W=!1;if(v)y+(X=l[m++])>u&&(H=N+z*(u-y)/X,W=!0),y+=X;if(G&&t.ellipse?t.ellipse(L,j,E,R,B,N,H,V):t.arc(L,j,F,N,H,V),W)break t;w&&(n=Oi(N)*E+L,r=Ci(N)*R+j),i=Oi(H)*E+L,o=Ci(H)*R+j;break;case vi.R:n=i=p[x],r=o=p[x+1],a=p[x++],s=p[x++];var U=p[x++],Y=p[x++];if(v){if(y+(X=l[m++])>u){var q=u-y;t.moveTo(a,s),t.lineTo(a+Si(q,U),s),(q-=U)>0&&t.lineTo(a+U,s+Si(q,Y)),(q-=Y)>0&&t.lineTo(a+Mi(U-q,0),s+Y),(q-=U)>0&&t.lineTo(a,s+Mi(Y-q,0));break t}y+=X}t.rect(a,s,U,Y);break;case vi.Z:if(v){var X;if(y+(X=l[m++])>u){O=(u-y)/X;t.lineTo(i*(1-O)+n*O,o*(1-O)+r*O);break t}y+=X}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=vi,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();function Ei(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0;if(a>e+s&&a>r+s||at+s&&o>n+s||oe+h&&c>r+h&&c>o+h&&c>s+h||ct+h&&u>n+h&&u>i+h&&u>a+h||ue+u&&l>r+u&&l>o+u||lt+u&&s>n+u&&s>i+u||sn||c+ui&&(i+=Vi);var p=Math.atan2(l,s);return p<0&&(p+=Vi),p>=r&&p<=i||p+Vi>=r&&p+Vi<=i}function Gi(t,e,n,r,i,o){if(o>e&&o>r||oi?s:0}var Hi=ji.CMD,Wi=2*Math.PI;var Ui=[-1,-1,-1],Yi=[-1,-1];function qi(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||u1&&(c=void 0,c=Yi[0],Yi[0]=Yi[1],Yi[1]=c),d=Ut(e,r,o,s,Yi[0]),f>1&&(g=Ut(e,r,o,s,Yi[1]))),2===f?ye&&s>r&&s>o||s=0&&c<=1&&(i[l++]=c)}else{var u=a*a-4*o*s;if(Ht(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,h=zt(u),p=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(i[l++]=c),p>=0&&p<=1&&(i[l++]=p)}}return l}(e,r,o,s,Ui);if(0===l)return 0;var u=te(e,r,o);if(u>=0&&u<=1){for(var c=0,h=Qt(e,r,o,u),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ui[0]=-l,Ui[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Wi-1e-4){r=0,i=Wi;var c=o?1:-1;return a>=Ui[0]+t&&a<=Ui[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Wi,i+=Wi);for(var p=0,f=0;f<2;f++){var d=Ui[f];if(d+t>a){var g=Math.atan2(s,d);c=o?1:-1;g<0&&(g=Wi+g),(g>=r&&g<=i||g+Wi>=r&&g+Wi<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),p+=c)}}return p}function Zi(t,e,n,r,i){for(var o,a,s,l,u=t.data,c=t.len(),h=0,p=0,f=0,d=0,g=0,v=0;v1&&(n||(h+=Gi(p,f,d,g,r,i))),m&&(d=p=u[v],g=f=u[v+1]),y){case Hi.M:p=d=u[v++],f=g=u[v++];break;case Hi.L:if(n){if(Ei(p,f,u[v],u[v+1],e,r,i))return!0}else h+=Gi(p,f,u[v],u[v+1],r,i)||0;p=u[v++],f=u[v++];break;case Hi.C:if(n){if(Ri(p,f,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],e,r,i))return!0}else h+=qi(p,f,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],r,i)||0;p=u[v++],f=u[v++];break;case Hi.Q:if(n){if(Ni(p,f,u[v++],u[v++],u[v],u[v+1],e,r,i))return!0}else h+=Xi(p,f,u[v++],u[v++],u[v],u[v+1],r,i)||0;p=u[v++],f=u[v++];break;case Hi.A:var b=u[v++],x=u[v++],_=u[v++],w=u[v++],S=u[v++],M=u[v++];v+=1;var O=!!(1-u[v++]);o=Math.cos(S)*_+b,a=Math.sin(S)*w+x,m?(d=o,g=a):h+=Gi(p,f,o,a,r,i);var C=(r-b)*w/_+b;if(n){if(Fi(b,x,w,S,S+M,O,e,C,i))return!0}else h+=$i(b,x,w,S,S+M,O,C,i);p=Math.cos(S+M)*_+b,f=Math.sin(S+M)*w+x;break;case Hi.R:if(d=p=u[v++],g=f=u[v++],o=d+u[v++],a=g+u[v++],n){if(Ei(d,g,o,g,e,r,i)||Ei(o,g,o,a,e,r,i)||Ei(o,a,d,a,e,r,i)||Ei(d,a,d,g,e,r,i))return!0}else h+=Gi(o,g,o,a,r,i),h+=Gi(d,a,d,g,r,i);break;case Hi.Z:if(n){if(Ei(p,f,d,g,e,r,i))return!0}else h+=Gi(p,f,d,g,r,i);p=d,f=g}}return n||(s=f,l=g,Math.abs(s-l)<1e-4)||(h+=Gi(p,f,d,g,r,i)||0),0!==h}var Ki=Object(l.i)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},qr),Qi={style:Object(l.i)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Xr.style)},Ji=Je.concat(["invisible","culling","z","z2","zlevel","parent"]),to=function(t){function e(e){return t.call(this,e)||this}var n;return a(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?"#333":e>.2?"#eee":"#ccc"}if(t)return"#ccc"}return"#333"},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(l.C)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Object(se.d)(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new ji(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||4&this.__dirty)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,r){return Zi(t,e,!0,n,r)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return Zi(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:Object(l.m)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return Object(l.g)(Ki,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(l.m)({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,u=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(l.m)({},r.shape),Object(l.m)(s,n.shape)):(s=Object(l.m)({},i?this.shape:r.shape),Object(l.m)(s,n.shape)):u&&(s=r.shape),s)if(o){this.shape=Object(l.m)({},this.shape);for(var c={},h=Object(l.F)(s),p=0;p0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Object(l.g)(eo,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=ln(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(ti);no.prototype.type="tspan";var ro=no,io=Object(l.i)({x:0,y:0},qr),oo={style:Object(l.i)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Xr.style)};var ao=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.createStyle=function(t){return Object(l.g)(io,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r,i=(r=e.image)&&"string"!=typeof r&&r.width&&r.height?e.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?i[t]:i[t]/i[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return oo},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ft(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ti);ao.prototype.type="image";var so=ao;var lo=Math.round;function uo(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(lo(2*r)===lo(2*i)&&(t.x1=t.x2=ho(r,s,!0)),lo(2*o)===lo(2*a)&&(t.y1=t.y2=ho(o,s,!0)),t):t}}function co(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=ho(r,s,!0),t.y=ho(i,s,!0),t.width=Math.max(ho(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(ho(i+a,s,!1)-t.y,0===a?0:1),t):t}}function ho(t,e,n){if(!e)return t;var r=lo(2*t);return(r+lo(e))%2==0?r/2:(r+(n?1:-1))/2}var po=function(){this.x=0,this.y=0,this.width=0,this.height=0},fo={},go=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultShape=function(){return new po},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=co(fo,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?function(t,e){var n,r,i,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(to);go.prototype.type="rect";var vo=go,yo={fill:"#000"},mo={style:Object(l.i)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Xr.style)},bo=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=yo,n.attr(e),n}return a(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;ed&&h){var g=Math.floor(d/u);n=n.slice(0,g)}if(t&&a&&null!=p)for(var v=Rr(p,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;y0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),I=r.calculatedLineHeight,k=0;ku&&Gr(n,t.substring(u,c),e,s),Gr(n,r[2],e,s,r[1]),u=jr.lastIndex}uo){w>0?(b.tokens=b.tokens.slice(0,w),y(b,_,x),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break t}var k=S.width,A=null==k||"auto"===k;if("string"==typeof k&&"%"===k.charAt(k.length-1))L.percentWidth=k,h.push(L),L.contentWidth=an(L.text,C);else{if(A){var T=S.backgroundColor,D=T&&T.image;D&&Lr(D=Tr(D))&&(L.width=Math.max(L.width,D.width*I/D.height))}var P=g&&null!=i?i-_:null;null!=P&&P=0&&"right"===(k=x[I]).align;)this._placeToken(k,t,w,g,C,"right",y),S-=k.width,C-=k.width,I--;for(O+=(n-(O-d)-(v-C)-S)/2;M<=I;)k=x[M],this._placeToken(k,t,w,g,O+k.width/2,"center",y),O+=k.width,M++;g+=w}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var u=t.verticalAlign,c=r+n/2;"top"===u?c=r+t.height/2:"bottom"===u&&(c=r+n-t.height/2),!t.isLineHolder&&Do(s)&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,c-t.height/2,t.width,t.height);var h=!!s.backgroundColor,p=t.textPadding;p&&(i=Ao(i,o,p),c-=t.height/2-p[0]-t.innerHeight/2);var f=this._getOrCreateChild(ro),d=f.createStyle();f.useStyle(d);var g=this._defaultStyle,v=!1,y=0,m=ko("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,g.fill)),b=Io("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!v?null:(y=2,g.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=i,d.y=c,x&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||rn.a,d.opacity=Object(l.Q)(s.opacity,e.opacity,1),Mo(d,s),b&&(d.lineWidth=Object(l.Q)(s.lineWidth,e.lineWidth,y),d.lineDash=Object(l.P)(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=b),m&&(d.fill=m);var _=t.contentWidth,w=t.contentHeight;f.setBoundingRect(new ft(un(d.x,_,d.textAlign),cn(d.y,w,d.textBaseline),_,w))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,u,c=t.backgroundColor,h=t.borderWidth,p=t.borderColor,f=c&&c.image,d=c&&!f,g=t.borderRadius,v=this;if(d||t.lineHeight||h&&p){(a=this._getOrCreateChild(vo)).useStyle(a.createStyle()),a.style.fill=null;var y=a.shape;y.x=n,y.y=r,y.width=i,y.height=o,y.r=g,a.dirtyShape()}if(d)(u=a.style).fill=c||null,u.fillOpacity=Object(l.P)(t.fillOpacity,1);else if(f){(s=this._getOrCreateChild(so)).onload=function(){v.dirtyStyle()};var m=s.style;m.image=c.image,m.x=n,m.y=r,m.width=i,m.height=o}h&&p&&((u=a.style).lineWidth=h,u.stroke=p,u.strokeOpacity=Object(l.P)(t.strokeOpacity,1),u.lineDash=t.borderDash,u.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(u.strokeFirst=!0,u.lineWidth*=2));var b=(a||s).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=Object(l.Q)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return Oo(t)&&(e=[t.fontStyle,t.fontWeight,So(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(l.T)(e)||t.textFont||t.font},e}(ti),xo={left:!0,right:1,center:1},_o={top:1,bottom:1,middle:1},wo=["fontStyle","fontWeight","fontSize","fontFamily"];function So(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?rn.c+"px":t+"px":t}function Mo(t,e){for(var n=0;n=0,o=!1;if(t instanceof to){var a=No(t),s=i&&a.selectFill||a.normalFill,u=i&&a.selectStroke||a.normalStroke;if(Fo(s)||Fo(u)){var c=(r=r||{}).style||{};"inherit"===c.fill?(o=!0,r=Object(l.m)({},r),(c=Object(l.m)({},c)).fill=s):!Fo(c.fill)&&Fo(s)?(o=!0,r=Object(l.m)({},r),(c=Object(l.m)({},c)).fill=Ho(s)):!Fo(c.stroke)&&Fo(u)&&(o||(r=Object(l.m)({},r),c=Object(l.m)({},c)),c.stroke=Ho(u)),r.style=c}}if(r&&null==r.z2){o||(r=Object(l.m)({},r));var h=t.z2EmphasisLift;r.z2=t.z2+(null!=h?h:10)}return r}(this,0,e,n);if("blur"===t)return function(t,e,n){var r=Object(l.r)(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:function(t,e,n,r){for(var i=t.style,o={},a=0;a0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function ya(t,e,n){Sa(t,!0),Qo(t,ea),ba(t,e,n)}function ma(t,e,n,r){r?function(t){Sa(t,!1)}(t):ya(t,e,n)}function ba(t,e,n){var r=Lo(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var xa=["emphasis","blur","select"],_a={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function wa(t,e,n,r){n=n||"itemStyle";for(var i=0;i0){var p={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!c,scope:t,during:a};u?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!u&&e.attr(n),a&&a(1),o&&o()}function Ta(t,e,n,r,i,o){Aa("update",t,e,n,r,i,o)}function Da(t,e,n,r,i,o){Aa("enter",t,e,n,r,i,o)}function Pa(t){if(!t.__zr)return!0;for(var e=0;e-1?"ZH":"EN";function ms(t,e){t=t.toUpperCase(),vs[t]=new hs(e),gs[t]=e}function bs(t){return vs[t]}ms("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),ms("ZH",{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var xs={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},_s={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+xs.hour,minute:"{yyyy}-{MM}-{dd} "+xs.minute,second:"{yyyy}-{MM}-{dd} "+xs.second,millisecond:xs.none},ws=["year","month","day","hour","minute","second","millisecond"],Ss=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ms(t,e){return"0000".substr(0,e-(t+="").length)+t}function Os(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Cs(t,e,n,r){var i=Vn(t),o=i[As(n)](),a=i[Ts(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[Ds(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Ps(n)](),h=(c-1)%12+1,p=i[Ls(n)](),f=i[js(n)](),d=i[Es(n)](),g=(r instanceof hs?r:bs(r||ys)||vs.EN).getModel("time"),v=g.get("month"),y=g.get("monthAbbr"),m=g.get("dayOfWeek"),b=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,Ms(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Ms(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,m[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ms(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ms(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Ms(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Ms(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,Ms(d,3)).replace(/{S}/g,d+"")}function Is(t,e){var n=Vn(t),r=n[Ts(e)]()+1,i=n[Ds(e)](),o=n[Ps(e)](),a=n[Ls(e)](),s=n[js(e)](),l=0===n[Es(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,p=h&&1===i;return p&&1===r?"year":p?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function ks(t,e,n){var r=l.z(t)?Vn(t):t;switch(e=e||Is(t,n)){case"year":return r[As(n)]();case"half-year":return r[Ts(n)]()>=6?1:0;case"quarter":return Math.floor((r[Ts(n)]()+1)/4);case"month":return r[Ts(n)]();case"day":return r[Ds(n)]();case"half-day":return r[Ps(n)]()/24;case"hour":return r[Ps(n)]();case"minute":return r[Ls(n)]();case"second":return r[js(n)]();case"millisecond":return r[Es(n)]()}}function As(t){return t?"getUTCFullYear":"getFullYear"}function Ts(t){return t?"getUTCMonth":"getMonth"}function Ds(t){return t?"getUTCDate":"getDate"}function Ps(t){return t?"getUTCHours":"getHours"}function Ls(t){return t?"getUTCMinutes":"getMinutes"}function js(t){return t?"getUTCSeconds":"getSeconds"}function Es(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Rs(t){return t?"setUTCFullYear":"setFullYear"}function Ns(t){return t?"setUTCMonth":"setMonth"}function zs(t){return t?"setUTCDate":"setDate"}function Bs(t){return t?"setUTCHours":"setHours"}function Vs(t){return t?"setUTCMinutes":"setMinutes"}function Fs(t){return t?"setUTCSeconds":"setSeconds"}function Gs(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Hs(t){if(!Yn(t))return l.C(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Ws(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Us=l.M;function Ys(t,e,n){function r(t){return t&&l.T(t)?t:"-"}function i(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Vn(t):t;if(!isNaN(+s))return Cs(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return l.D(t)?r(t):l.z(t)&&i(t)?t+"":"-";var u=Un(t);return i(u)?Hs(u):l.D(t)?r(t):"boolean"==typeof t?t+"":"-"}var qs=["a","b","c","d","e","f","g"],Xs=function(t,e){return"{"+t+(null==e?"":e)+"}"};function $s(t,e,n){l.t(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;or||l.newline?(o=0,c=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(d?-d.y+p.y:0);(h=a+v)>i||l.newline?(o+=s+n,a=0,h=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var nl=el;l.h(el,"vertical"),l.h(el,"horizontal");function rl(t,e,n){n=Us(n||0);var r=e.width,i=e.height,o=Tn(t.left,r),a=Tn(t.top,i),s=Tn(t.right,r),l=Tn(t.bottom,i),u=Tn(t.width,r),c=Tn(t.height,i),h=n[2]+n[0],p=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=r-s-p-o),isNaN(c)&&(c=i-l-h-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=r-s-u-p),isNaN(a)&&(a=i-l-c-h),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-p}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h}o=o||0,a=a||0,isNaN(u)&&(u=r-p-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var d=new ft(o+n[3],a+n[0],u,c);return d.margin=n,d}function il(t,e,n,r,i,o){var a,s=!i||!i.hv||i.hv[0],u=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!u)return!1;if("raw"===c)a="group"===t.type?new ft(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(a=a.clone()).applyTransform(h)}var p=rl(l.i({width:a.width,height:a.height},e),n,r),f=s?p.x-a.x:0,d=u?p.y-a.y:0;return"raw"===c?(o.x=f,o.y=d):(o.x+=f,o.y+=d),o===t&&t.markRedraw(),!0}function ol(t){var e=t.layoutMode||t.constructor.layoutMode;return l.A(e)?e:e?{type:e}:null}function al(t,e,n){var r=n&&n.ignoreSize;!l.t(r)&&(r=[r,r]);var i=a(tl[0],0),o=a(tl[1],1);function a(n,i){var o={},a=0,l={},c=0;if(Qs(n,(function(e){l[e]=t[e]})),Qs(n,(function(t){s(e,t)&&(o[t]=l[t]=e[t]),u(o,t)&&a++,u(l,t)&&c++})),r[i])return u(e,n[1])?l[n[2]]=null:u(e,n[2])&&(l[n[1]]=null),l;if(2!==c&&a){if(a>=2)return o;for(var h=0;h=0;a--)o=l.I(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return dr(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(hs);_r(cl,hs),Or(cl),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=br(t);e[r.main]=n},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=br(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}(cl),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,r,i,o){if(t.length){var a=function(t){var r={},i=[];return l.k(t,(function(o){var a=n(r,o),s=function(t,e){var n=[];return l.k(t,(function(t){l.r(e,t)>=0&&n.push(t)})),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&i.push(o),l.k(s,(function(t){l.r(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(r,t);l.r(e.successor,t)<0&&e.successor.push(o)}))})),{graph:r,noEntryList:i}}(r),s=a.graph,u=a.noEntryList,c={};for(l.k(t,(function(t){c[t]=!0}));u.length;){var h=u.pop(),p=s[h],f=!!c[h];f&&(i.call(o,h,p.originalDeps.slice()),delete c[h]),l.k(p.successor,f?g:d)}l.k(c,(function(){throw new Error("")}))}function d(t){s[t].entryCount--,0===s[t].entryCount&&u.push(t)}function g(t){c[t]=!0,d(t)}}}(cl,(function(t){var e=[];l.k(cl.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=l.H(e,(function(t){return br(t).main})),"dataset"!==t&&l.r(e,"dataset")<=0&&e.unshift("dataset");return e}));var hl=cl,pl="";"undefined"!=typeof navigator&&(pl=navigator.platform||"");var fl="rgba(0, 0, 0, 0.2)",dl={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:fl,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fl,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fl,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fl,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fl,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fl,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:pl.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},gl=Object(l.f)(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),vl=1,yl=2,ml=3,bl=lr();function xl(t,e,n){var r={},i=wl(e);if(!i||!t)return r;var o,a,s=[],u=[],c=e.ecModel,h=bl(c).datasetMap,p=i.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(l.k)(t,(function(e,n){var i=Object(l.A)(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=g(i)),r[i.name]=[]}));var f=h.get(p)||h.set(p,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var r=0;re)return t[r];return t[n-1]}(r,a):n;if((c=c||n)&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}var Dl,Pl,Ll;"undefined"!=typeof console&&console.warn&&console.log;function jl(t){0}function El(t){throw new Error(t)}var Rl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new hs(r),this._locale=new hs(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=Bl(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Bl(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Ll(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&Object(l.k)(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Object(l.f)(),s=e&&e.replaceMergeMainTypeMap;bl(this).datasetMap=Object(l.f)(),Object(l.k)(t,(function(t,e){null!=t&&(hl.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(l.d)(t):Object(l.I)(n[e],t,!0))})),s&&s.each((function(t,e){hl.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),hl.topologicalTravel(o,hl.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var r=Ol.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}(this,e,Zn(t[e])),a=r.get(e),u=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",c=er(a,o,u);(function(t,e,n){Object(l.k)(t,(function(t){var r=t.newOption;Object(l.A)(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,r){return e.type?e.type:n?n.subType:r.determineSubType(t,e)}(e,r,t.existing,n))}))})(c,e,hl),n[e]=null,r.set(e,null),i.set(e,0);var h,p=[],f=[],d=0;Object(l.k)(c,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=hl.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(h)return void 0;h=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Object(l.m)({componentIndex:n},t.keyInfo);r=new a(i,this,this,s),Object(l.m)(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(p.push(r.option),f.push(r),d++):(p.push(void 0),f.push(void 0))}),this),n[e]=p,r.set(e,f),i.set(e,d),"series"===e&&Dl(this)}),this),this._seriesIndices||Dl(this)},e.prototype.getOption=function(){var t=Object(l.d)(this.option);return Object(l.k)(t,(function(e,n){if(hl.hasClass(n)){for(var r=Zn(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!ar(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t["\0_ec_inner"],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i=e:"max"===n?t<=e:t===e})(r[a],t,o)||(i=!1)}})),i}var ql=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Object(l.k)(Zn(t.series),(function(t){t&&t.data&&Object(l.E)(t.data)&&Object(l.R)(t.data)})),Object(l.k)(Zn(t.dataset),(function(t){t&&t.source&&Object(l.E)(t.source)&&Object(l.R)(t.source)}))),t=Object(l.d)(t);var r=this._optionBackup,i=function(t,e,n){var r,i,o=[],a=t.baseOption,s=t.timeline,u=t.options,c=t.media,h=!!t.media,p=!!(u||s||a&&a.timeline);a?(i=a).timeline||(i.timeline=s):((p||h)&&(t.options=t.media=null),i=t);h&&Object(l.t)(c)&&Object(l.k)(c,(function(t){t&&t.option&&(t.query?o.push(t):r||(r=t))}));function f(t){Object(l.k)(e,(function(e){e(t,n)}))}return f(i),Object(l.k)(u,(function(t){return f(t)})),Object(l.k)(o,(function(t){return f(t.option)})),{baseOption:i,timelineOptions:u||[],mediaDefault:r,mediaList:o}}(t,e,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Object(l.d)(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=Object(l.d)(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],u=[];if(!o.length&&!a)return u;for(var c=0,h=o.length;c=0;g--){var v=t[g];if(s||(p=v.data.rawIndexOf(v.stackedByDimension,h)),p>=0){var y=v.data.getByRawIndex(v.stackResultDimension,p);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&f>=0&&y>0||"samesign"===l&&f<=0&&y<0){f=Rn(f,y),d=y;break}}}return r[0]=f,r[1]=d,r}))}))}var du,gu,vu,yu,mu,bu=function(t){this.data=t.data||("keyedColumns"===t.sourceFormat?{}:[]),this.sourceFormat=t.sourceFormat||"unknown",this.seriesLayoutBy=t.seriesLayoutBy||"column",this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nu&&(u=f)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e=0&&(s=o.interpolatedValue[u])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return zu(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function Fu(t){var e,n;return l.A(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Gu(t){return new Hu(t)}var Hu=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=h(this._modBy),s=this._modDataCount||0,u=h(t&&t.modBy),c=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}a===u&&s===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=u,this._modDataCount=c;var p=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,d=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(o||f1&&r>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},$u=function(){function t(t,e){if(!Object(l.z)(e)){0,El("")}this._opFn=Xu[t],this._rvalFloat=Un(e)}return t.prototype.evaluate=function(t){return Object(l.z)(t)?this._opFn(t,this._rvalFloat):this._opFn(Un(t),this._rvalFloat)},t}(),Zu=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(l.z)(t)?t:Un(t),r=Object(l.z)(e)?e:Un(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=Object(l.C)(t),s=Object(l.C)(e);a&&(n=s?t:0),s&&(r=a?e:0)}return nr?-this._resultLT:0},t}(),Ku=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Un(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Un(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function Qu(t,e){return"eq"===t||"ne"===t?new Ku("eq"===t,e):Object(l.q)(Xu,t)?new $u(t,e):null}var Ju=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Uu(t,e)},t}();function tc(t){if(!ac(t.sourceFormat)){0,El("")}return t.data}function ec(t){var e=t.sourceFormat,n=t.data;if(!ac(e)){0,El("")}if("arrayRows"===e){for(var r=[],i=0,o=n.length;i65535?lc:uc}function dc(t,e,n,r,i){var o=pc[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;ug[1]&&(g[1]=d)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,u=Object(l.H)(o,(function(t){return t.property})),c=0;cy[1]&&(y[1]=v)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks[t],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l=0&&a<0)&&(o=h,a=c,s=0),c===a&&(i[s++]=l))}return i.length=s,i},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i=c&&x<=h||isNaN(x))&&(a[s++]=d),d++}f=!0}else if(2===i){g=p[r[0]];var y=p[r[1]],m=t[r[1]][0],b=t[r[1]][1];for(v=0;v=c&&x<=h||isNaN(x))&&(_>=m&&_<=b||isNaN(_))&&(a[s++]=d),d++}f=!0}}if(!f)if(1===i)for(v=0;v=c&&x<=h||isNaN(x))&&(a[s++]=w)}else for(v=0;vt[O][1])&&(S=!1)}S&&(a[s++]=e.getRawIndex(v))}return sv[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(fc(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var p=1;pn&&(n=r,i=O)}M>0&&Mu-f&&(s=u-f,a.length=s);for(var d=0;dc[1]&&(c[1]=v),h[p++]=y}return i._count=p,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();ia&&(a=l)}return r=[o,a],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return Uu(t[r],this._dimensions[r])}sc={arrayRows:t,objectRows:function(t,e,n,r){return Uu(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return Uu(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),vc=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(mc(n)){var o=n,a=void 0,s=void 0,u=void 0;if(i){var c=r[0];c.prepareSource(),a=(u=c.getSource()).data,s=u.sourceFormat,e=[c._getVersionSign()]}else a=o.get("data",!0),s=Object(l.E)(a)?"typedArray":"original",e=[];var h=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},f=Object(l.P)(h.seriesLayoutBy,p.seriesLayoutBy)||null,d=Object(l.P)(h.sourceHeader,p.sourceHeader),g=Object(l.P)(h.dimensions,p.dimensions);t=f!==p.seriesLayoutBy||!!d!=!!p.sourceHeader||g?[_u(a,{seriesLayoutBy:f,sourceHeader:d,dimensions:g},s)]:[]}else{var v=n;if(i){var y=this._applyTransform(r);t=y.sourceList,e=y.upstreamSignList}else{t=[_u(v.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){1!==t.length&&bc("")}var o,a=[],s=[];return Object(l.k)(t,(function(t){t.prepareSource();var e=t.getSource(i||0);null==i||e||bc(""),a.push(e),s.push(t._getVersionSign())})),r?e=function(t,e,n){var r=Zn(t),i=r.length;i||El("");for(var o=0,a=i;o1||r>0&&!e.noHeader;return Object(l.k)(e.blocks,(function(e){var r=t(e);r>=n&&(n=r+ +(i&&(!r||Mc(e)&&!e.noHeader)))})),n}return 0}(e),{html:_c[i],richText:wc[i]}),s=[],u=e.blocks||[];Object(l.b)(!u||Object(l.t)(u)),u=u||[];var c=t.orderMode;if(e.sortBlocks&&c){u=u.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(Object(l.q)(h,c)){var p=new Zu(h[c],null);u.sort((function(t,e){return p.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===c&&u.reverse()}Object(l.k)(u,(function(n,i){var o=e.valueFormatter,u=Oc(n)(o?Object(l.m)(Object(l.m)({},t),{valueFormatter:o}):t,n,i>0?a.html:0,r);null!=u&&s.push(u)}));var f="richText"===t.renderMode?s.join(a.richText):Ac(s.join(""),o?n:a.html);if(o)return f;var d=Ys(e.header,"ordinal",t.useUTC),g=xc(r,t.renderMode).nameStyle;return"richText"===t.renderMode?Tc(t,d,g)+a.richText+f:Ac('
'+N(d)+"
"+f,n)}function Ic(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,u=e.name,c=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return t=Object(l.t)(t)?t:[t],Object(l.H)(t,(function(t,e){return Ys(t,Object(l.t)(d)?d[e]:d,c)}))};if(!o||!a){var p=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),f=o?"":Ys(u,"ordinal",c),d=e.valueType,g=a?[]:h(e.value),v=!s||!o,y=!s&&o,m=xc(r,i),b=m.nameStyle,x=m.valueStyle;return"richText"===i?(s?"":p)+(o?"":Tc(t,f,b))+(a?"":function(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(l.t)(e)?e.join(" "):e,o)}(t,g,v,y,x)):Ac((s?"":p)+(o?"":function(t,e,n){return''+N(t)+""}(f,!s,b))+(a?"":function(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=Object(l.t)(t)?t:[t],''+Object(l.H)(t,(function(t){return N(t)})).join("  ")+""}(g,v,y,x)),n)}}function kc(t,e,n,r,i,o){if(t)return Oc(t)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Ac(t,e){return'
'+t+'
'}function Tc(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Dc(t,e){return Zs(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Pc(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Lc=function(){function t(){this.richTextStyles={},this._nextStyleNameId=qn()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=function(t,e){var n=l.C(t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var o=n.renderMode||"html";return r?"html"===o?"subItem"===i?'':'':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}({color:e,type:t,renderMode:n,markerId:r});return Object(l.C)(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(l.t)(e)?Object(l.k)(e,(function(t){return Object(l.m)(n,t)})):Object(l.m)(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function jc(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,u=o.getData(),c=u.mapDimensionsAll("defaultedTooltip"),h=c.length,p=o.getRawValue(a),f=Object(l.t)(p),d=Dc(o,a);if(h>1||f&&!h){var g=function(t,e,n,r,i){var o=e.getData(),a=Object(l.N)(t,(function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],u=[],c=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?c.push(Sc("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),u.push(n.type)))}return r.length?Object(l.k)(r,(function(t){h(zu(o,n,t),t)})):Object(l.k)(t,h),{inlineValues:s,inlineValueTypes:u,blocks:c}}(p,o,a,c,d);e=g.inlineValues,n=g.inlineValueTypes,r=g.blocks,i=g.inlineValues[0]}else if(h){var v=u.getDimensionInfo(c[0]);i=e=zu(u,a,c[0]),n=v.type}else i=e=f?p[0]:p;var y=or(o),m=y&&o.name||"",b=u.getName(a),x=s?m:b;return Sc("section",{header:m,noHeader:s||!y,sortParam:i,blocks:[Sc("nameValue",{markerType:"item",markerColor:d,name:x,noName:!Object(l.T)(x),value:e,valueType:n})].concat(r||[])})}var Ec=lr();function Rc(t,e){return t.getName(e)||t.getId(e)}var Nc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return a(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Gu({count:Bc,reset:Vc}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Ec(this).sourceManager=new vc(this)).prepareSource();var r=this.getInitialData(t,n);Gc(r,this),this.dataTask.context.data=r,Ec(this).dataBeforeProcessed=r,zc(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=ol(this),r=n?sl(t):{},i=this.subType;hl.hasClass(i)&&(i+="Series"),l.I(t,e.getTheme().get(this.subType)),l.I(t,this.getDefaultOption()),Kn(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&al(t,r,n)},e.prototype.mergeOption=function(t,e){t=l.I(this.option,t,!0),this.fillDataTextStyle(t.data);var n=ol(this);n&&al(this.option,t,n);var r=Ec(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Gc(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Ec(this).dataBeforeProcessed=i,zc(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!l.E(t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=kl.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[Rc(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){l.A(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,u=0;u0&&this._innerSelect(t,e)}},e.registerClass=function(t){return hl.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(hl);function zc(t){var e=t.name;or(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return l.k(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}(t)||e)}function Bc(t){return t.model.getRawData().count()}function Vc(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Fc}function Fc(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Gc(t,e){l.k(l.e(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,l.h(Hc,e))}))}function Hc(t,e){var n=Wc(t);return n&&n.setOutputEnd((e||this).count()),e}function Wc(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}l.K(Nc,Vu),l.K(Nc,kl),_r(Nc,hl);var Uc=Nc,Yc=function(){function t(){this.group=new Mn,this.uid=fs("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();xr(Yc),Or(Yc);var qc=Yc;function Xc(){var t=lr();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var $c=ji.CMD,Zc=[[],[],[]],Kc=Math.sqrt,Qc=Math.atan2;function Jc(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=$c.M,h=$c.C,p=$c.L,f=$c.R,d=$c.A,g=$c.Q;for(i=0,o=0;i1&&(a*=th(d),s*=th(d));var g=(i===o?-1:1)*th((a*a*(s*s)-a*a*(f*f)-s*s*(p*p))/(a*a*(f*f)+s*s*(p*p)))||0,v=g*a*f/s,y=g*-s*p/a,m=(t+n)/2+nh(h)*v-eh(h)*y,b=(e+r)/2+eh(h)*v+nh(h)*y,x=ah([1,0],[(p-v)/a,(f-y)/s]),_=[(p-v)/a,(f-y)/s],w=[(-1*p-v)/a,(-1*f-y)/s],S=ah(_,w);if(oh(_,w)<=-1&&(S=rh),oh(_,w)>=1&&(S=0),S<0){var M=Math.round(S/rh*1e6)/1e6;S=2*rh+M%2*rh}c.addData(u,m,b,a,s,x,S,h,o)}var lh=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,uh=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var ch=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.applyTransform=function(t){},e}(to);function hh(t){return null!=t.setData}function ph(t,e){var n=function(t){var e=new ji;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=ji.CMD,l=t.match(lh);if(!l)return e;for(var u=0;uT*T+D*D&&(M=C,O=I),{cx:M,cy:O,x0:-c,y0:-h,x1:M*(i/_-1),y1:O*(i/_-1)}}function Ph(t,e){var n,r=Ah(e.r,0),i=Ah(e.r0||0,0),o=r>0;if(o||i>0){if(o||(r=i,i=0),i>r){var a=r;r=i,i=a}var s=e.startAngle,u=e.endAngle;if(!isNaN(s)&&!isNaN(u)){var c=e.cx,h=e.cy,p=!!e.clockwise,f=Ih(u-s),d=f>wh&&f%wh;if(d>1e-4&&(f=d),r>1e-4)if(f>wh-1e-4)t.moveTo(c+r*Mh(s),h+r*Sh(s)),t.arc(c,h,r,s,u,!p),i>1e-4&&(t.moveTo(c+i*Mh(u),h+i*Sh(u)),t.arc(c,h,i,u,s,p));else{var g=void 0,v=void 0,y=void 0,m=void 0,b=void 0,x=void 0,_=void 0,w=void 0,S=void 0,M=void 0,O=void 0,C=void 0,I=void 0,k=void 0,A=void 0,T=void 0,D=r*Mh(s),P=r*Sh(s),L=i*Mh(u),j=i*Sh(u),E=f>1e-4;if(E){var R=e.cornerRadius;R&&(g=(n=function(t){var e;if(Object(l.t)(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(R))[0],v=n[1],y=n[2],m=n[3]);var N=Ih(r-i)/2;if(b=Th(N,y),x=Th(N,m),_=Th(N,g),w=Th(N,v),O=S=Ah(b,x),C=M=Ah(_,w),(S>1e-4||M>1e-4)&&(I=r*Mh(u),k=r*Sh(u),A=i*Mh(s),T=i*Sh(s),f<_h)){var z=function(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,p=h*l-c*u;if(!(p*p<1e-4))return[t+(p=(c*(e-o)-h*(t-i))/p)*l,e+p*u]}(D,P,A,T,I,k,L,j);if(z){var B=D-z[0],V=P-z[1],F=I-z[0],G=k-z[1],H=1/Sh(Oh((B*F+V*G)/(kh(B*B+V*V)*kh(F*F+G*G)))/2),W=kh(z[0]*z[0]+z[1]*z[1]);O=Th(S,(r-W)/(H+1)),C=Th(M,(i-W)/(H-1))}}}if(E)if(O>1e-4){var U=Th(y,O),Y=Th(m,O),q=Dh(A,T,D,P,r,U,p),X=Dh(I,k,L,j,r,Y,p);t.moveTo(c+q.cx+q.x0,h+q.cy+q.y0),O0&&t.arc(c+q.cx,h+q.cy,U,Ch(q.y0,q.x0),Ch(q.y1,q.x1),!p),t.arc(c,h,r,Ch(q.cy+q.y1,q.cx+q.x1),Ch(X.cy+X.y1,X.cx+X.x1),!p),Y>0&&t.arc(c+X.cx,h+X.cy,Y,Ch(X.y1,X.x1),Ch(X.y0,X.x0),!p))}else t.moveTo(c+D,h+P),t.arc(c,h,r,s,u,!p);else t.moveTo(c+D,h+P);if(i>1e-4&&E)if(C>1e-4){U=Th(g,C),q=Dh(L,j,I,k,i,-(Y=Th(v,C)),p),X=Dh(D,P,A,T,i,-U,p);t.lineTo(c+q.cx+q.x0,h+q.cy+q.y0),C0&&t.arc(c+q.cx,h+q.cy,Y,Ch(q.y0,q.x0),Ch(q.y1,q.x1),!p),t.arc(c,h,i,Ch(q.cy+q.y1,q.cx+q.x1),Ch(X.cy+X.y1,X.cx+X.x1),p),U>0&&t.arc(c+X.cx,h+X.cy,U,Ch(X.y1,X.x1),Ch(X.y0,X.x0),!p))}else t.lineTo(c+L,h+j),t.arc(c,h,i,u,s,p);else t.lineTo(c+L,h+j)}else t.moveTo(c,h);t.closePath()}}}var Lh=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},jh=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultShape=function(){return new Lh},e.prototype.buildPath=function(t,e){Ph(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(to);jh.prototype.type="sector";var Eh=jh,Rh=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Nh=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultShape=function(){return new Rh},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(to);Nh.prototype.type="ring";var zh=Nh;function Bh(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=function(t,e,n,r){var i,o,a,s,l=[],u=[],c=[],f=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var g=0,v=t.length;gup[1]){if(a=!1,i)return a;var u=Math.abs(up[0]-lp[1]),c=Math.abs(lp[0]-up[1]);Math.min(u,c)>r.len()&&(uMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function jp(t){return!t.isGroup}function Ep(t,e,n){if(t&&e){var r,i=(r={},t.traverse((function(t){jp(t)&&t.anid&&(r[t.anid]=t)})),r);e.traverse((function(t){if(jp(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),Ta(t,r,n,Lo(t).dataIndex)}}}))}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=Object(l.m)({},t.shape)),e}}function Rp(t,e){return Object(l.H)(t,(function(t){var n=t[0];n=gp(n,e.x),n=vp(n,e.x+e.width);var r=t[1];return r=gp(r,e.y),[n,r=vp(r,e.y+e.height)]}))}function Np(t,e){var n=gp(t.x,e.x),r=vp(t.x+t.width,e.x+e.width),i=gp(t.y,e.y),o=vp(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function zp(t,e,n){var r=Object(l.m)({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Object(l.i)(i,n),new so(r)):Sp(t.replace("path://",""),r,n,"center")}function Bp(t,e,n,r,i){for(var o=0,a=i[i.length-1];o=-1e-6)return!1;var d=t-i,g=e-o,v=Fp(d,g,u,c)/f;if(v<0||v>1)return!1;var y=Fp(d,g,h,p)/f;return!(y<0||y>1)}function Fp(t,e,n,r){return t*r-n*e}function Gp(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Object(l.C)(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var u=t.formatterParamsExtra;u&&Object(l.k)(Object(l.F)(u),(function(t){Object(l.q)(s,t)||(s[t]=u[t],s.$vars.push(t))}));var c=Lo(t.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:r,option:Object(l.i)({content:r,formatterParams:s},i)}}function Hp(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Wp(t,e){if(t)if(Object(l.t)(t))for(var n=0;n=0?h():c=setTimeout(h,-i),l=r};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){s=t},p}function rf(t,e,n,r){var i=t[e];if(i){var o=i[tf]||i,a=i["\0__throttleType"];if(i[ef]!==n||a!==r){if(null==n||!r)return t[e]=o;(i=t[e]=nf(o,n,"debounce"===r))[tf]=o,i["\0__throttleType"]=r,i[ef]=n}return i}}function of(t,e){var n=t[e];n&&n[tf]&&(n.clear&&n.clear(),t[e]=n[tf])}var af=lr(),sf={itemStyle:Cr(ss,!0),lineStyle:Cr(is,!0)},lf={lineStyle:"stroke",itemStyle:"fill"};function uf(t,e){var n=t.visualStyleMapper||sf[e];return n||(console.warn("Unkown style type '"+e+"'."),sf.itemStyle)}function cf(t,e){var n=t.visualDrawType||lf[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}var hf={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=uf(t,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=cf(t,r),u=o[s],c=Object(l.w)(u)?u:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[s]||c||h){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=p,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Object(l.w)(o.fill)?p:o.fill,o.stroke="auto"===o.stroke||Object(l.w)(o.stroke)?p:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=Object(l.m)({},o);i[s]=c(r),e.setItemVisual(n,"style",i)}}}},pf=new hs,ff={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=uf(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){pf.option=n[r];var a=i(pf),s=t.ensureUniqueItemVisual(e,"style");Object(l.m)(s,a),pf.option.decal&&(t.setItemVisual(e,"decal",pf.option.decal),pf.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},df={performRawSeries:!0,overallReset:function(t){var e=Object(l.f)();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),af(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=af(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=cf(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}}))}}))}},gf=Math.PI;var vf=function(){function t(t,e,n,r){this._stageTaskMap=Object(l.f)(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData().count(),i=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(l.f)();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(l.k)(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{});Object(l.b)(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(l.k)(t,(function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,p=c.agentStubMap;p.each((function(t){a(r,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var f=o.getPerformArgs(c,r.block);p.each((function(t){t.perform(f)})),c.perform(f)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(l.f)(),s=t.seriesType,u=t.getTargetSeries;function c(e){var s=e.uid,l=a.set(s,o&&o.get(s)||Gu({plan:_f,reset:wf,count:Of}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(c):s?n.eachRawSeriesByType(s,c):u&&u(n,r).each(c)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||Gu({reset:yf});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Object(l.f)(),u=t.seriesType,c=t.getTargetSeries,h=!0,p=!1;function f(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(p=!0,Gu({reset:mf,onDirty:xf})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,i._pipe(t,n)}Object(l.b)(!t.createOnAllSeries,""),u?n.eachRawSeriesByType(u,f):c?c(n,r).each(f):(h=!1,Object(l.k)(n.getSeries(),f)),p&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Object(l.w)(t)&&(t={overallReset:t,seriesType:Cf(t)}),t.uid=fs("stageHandler"),e&&(t.visualType=e),t},t}();function yf(t){t.overallReset(t.ecModel,t.api,t.payload)}function mf(t){return t.overallProgress&&bf}function bf(){this.agent.dirty(),this.getDownstream().dirty()}function xf(){this.agent&&this.agent.dirty()}function _f(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function wf(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Zn(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(l.H)(e,(function(t,e){return Mf(e)})):Sf}var Sf=Mf(0);function Mf(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),zf=["symbol","symbolSize","symbolRotate","symbolOffset"],Bf=zf.concat(["symbolKeepAspect"]),Vf={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a=0&&ud(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=ud(r)?r:0,i=ud(i)?i:1,o=ud(o)?o:0,a=ud(a)?a:0,t.createLinearGradient(r,o,i,a)}(t,e,n),i=e.colorStops,o=0;o0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:Object(l.z)(e)?[e]:Object(l.t)(e)?e:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(i=Object(l.H)(i,(function(t){return t/a})),o/=a)}return[i,o]}var dd=new ji(!0);function gd(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function vd(t){return"string"==typeof t&&"none"!==t}function yd(t){var e=t.fill;return null!=e&&"none"!==e}function md(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function bd(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function xd(t,e,n){var r=Dr(e.image,e.__image,n);if(Lr(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*l.a),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}var _d=["shadowBlur","shadowOffsetX","shadowOffsetY"],wd=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Sd(t,e,n,r,i){var o=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){Cd(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?qr.opacity:a}(r||e.blend!==n.blend)&&(o||(Cd(t,i),o=!0),t.globalCompositeOperation=e.blend||qr.blend);for(var s=0;s<_d.length;s++){var l=_d[s];(r||e[l]!==n[l])&&(o||(Cd(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(Cd(t,i),o=!0),t.shadowColor=e.shadowColor||qr.shadowColor),o}function Md(t,e,n,r,i){var o=Id(e,i.inHover),a=r?null:n&&Id(n,i.inHover)||{};if(o===a)return!1;var s=Sd(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(Cd(t,i),s=!0),vd(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(Cd(t,i),s=!0),vd(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(Cd(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(Cd(t,i),s=!0),t.lineWidth=l)}for(var u=0;u0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this.__flagInMainProcess)if(this._disposed)dg(this.id);else{var r,i,o;if(Object(l.A)(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var a=new ql(this._api),s=this._theme,u=this._model=new Vl;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},mg);var c={seriesTransition:o,optionChanged:!0};if(n)this[Vd]={silent:r,updateParams:c},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{Ud(this),Xd.update.call(this,null,c)}catch(t){throw this[Vd]=null,this.__flagInMainProcess=!1,t}this._ssr||this._zr.flush(),this[Vd]=null,this.__flagInMainProcess=!1,Qd.call(this,r),Jd.call(this,r)}}},e.prototype.setTheme=function(){jl()},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||zd&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(s.a.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(l.k)(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,r=[],i=this;Object(l.k)(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(l.k)(r,(function(t){t.group.ignore=!1})),o}dg(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max;if(Sg[n]){var o=1/0,a=1/0,s=-1/0,u=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Object(l.k)(wg,(function(h,p){if(h.group===n){var f=e?h.getZr().painter.getSvgDom().innerHTML:h.renderToCanvas(Object(l.d)(t)),d=h.getDom().getBoundingClientRect();o=r(d.left,o),a=r(d.top,a),s=i(d.right,s),u=i(d.bottom,u),c.push({dom:f,left:d.left,top:d.top})}}));var p=(s*=h)-(o*=h),f=(u*=h)-(a*=h),d=rn.d.createCanvas(),g=kn(d,{renderer:e?"svg":"canvas"});if(g.resize({width:p,height:f}),e){var v="";return Object(l.k)(c,(function(t){var e=t.left-o,n=t.top-a;v+=''+t.dom+""})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new vo({shape:{x:0,y:0,width:p,height:f},style:{fill:t.connectedBackgroundColor}})),Object(l.k)(c,(function(t){var e=new so({style:{x:t.left*h-o,y:t.top*h-a,image:t.dom}});g.add(e)})),g.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}dg(this.id)},e.prototype.convertToPixel=function(t,e){return $d(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return $d(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=cr(this._model,t);return Object(l.k)(r,(function(t,r){r.indexOf("Models")>=0&&Object(l.k)(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}dg(this.id)},e.prototype.getVisual=function(t,e){var n=cr(this._model,t,{defaultMainType:"series"});var r=n.seriesModel.getData(),i=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=i?Gf(r,i,e):Hf(r,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n,r=this;Object(l.k)(fg,(function(t){var e=function(e){var n,i=r.getModel(),o=e.target;if("globalout"===t?n={}:o&&qf(o,(function(t){var e=Lo(t);if(e&&null!=e.dataIndex){var r=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return n=r&&r.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return n=Object(l.m)({},e.eventData),!0}),!0),n){var a=n.componentType,s=n.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=n.seriesIndex);var u=a&&null!=s&&i.getComponent(a,s),c=u&&r["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,n.event=e,n.type=t,r._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:c},r.trigger(t,n)}};e.zrEventfulCallAtLast=!0,r._zr.on(t,e,r)})),Object(l.k)(vg,(function(t,e){r._messageCenter.on(e,(function(t){this.trigger(e,t)}),r)})),Object(l.k)(["selectchanged"],(function(t){r._messageCenter.on(t,(function(e){this.trigger(t,e)}),r)})),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",(function(t){var r=n.getModel();t.isFromClick?(Yf("map","selectchanged",e,r,t),Yf("pie","selectchanged",e,r,t)):"select"===t.fromAction?(Yf("map","selected",e,r,t),Yf("pie","selected",e,r,t)):"unselect"===t.fromAction&&(Yf("map","unselected",e,r,t),Yf("pie","unselected",e,r,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?dg(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)dg(this.id);else{this._disposed=!0,this.getDom()&&gr(this.getDom(),Og,"");var t=this._api,e=this._model;Object(l.k)(this._componentsViews,(function(n){n.dispose(e,t)})),Object(l.k)(this._chartsViews,(function(n){n.dispose(e,t)})),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete wg[this.id]}},e.prototype.resize=function(t){if(!this.__flagInMainProcess)if(this._disposed)dg(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[Vd]&&(null==r&&(r=this[Vd].silent),n=!0,this[Vd]=null),this.__flagInMainProcess=!0;try{n&&Ud(this),Xd.update.call(this,{type:"resize",animation:Object(l.m)({duration:0},t&&t.animation)})}catch(t){throw this.__flagInMainProcess=!1,t}this.__flagInMainProcess=!1,Qd.call(this,r),Jd.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)dg(this.id);else if(Object(l.A)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),_g[t]){var n=_g[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?dg(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(l.m)({},t);return e.type=vg[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)dg(this.id);else if(Object(l.A)(e)||(e={silent:!!e}),gg[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var n=e.silent;Kd.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&s.a.browser.weChat&&this._throttledZrFlush(),Qd.call(this,n),Jd.call(this,n)}},e.prototype.updateLabelLayout=function(){Ed.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)dg(this.id);else{var e=t.seriesIndex;0,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],n=t.currentStates,r=0;r0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(Pa(t))return;if(t instanceof to&&function(t){var e=No(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}Ud=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Yd(t,!0),Yd(t,!1),e.plan()},Yd=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;le.get("hoverLayerThreshold")&&!s.a.node&&!s.a.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),Ed.trigger("series:afterupdate",e,o,u)},sg=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},lg=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse((function(t){Pa(t)||e(t)})),t.__needsUpdateStatus=!1)},og=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return a(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){ia(e,n),sg(t)},n.prototype.leaveEmphasis=function(e,n){oa(e,n),sg(t)},n.prototype.enterBlur=function(e){aa(e),sg(t)},n.prototype.leaveBlur=function(e){sa(e),sg(t)},n.prototype.enterSelect=function(e){la(e),sg(t)},n.prototype.leaveSelect=function(e){ua(e),sg(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(Gl))(t)},ag=function(t){function e(t,e){for(var n=0;n=0)){jg.push(n);var o=Df.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function Rg(t,e){_g[t]=e}function Ng(t,e,n){var r=Nd("registerMap");r&&r(t,e,n)}function zg(t){var e=Nd("getMap");return e&&e(t)}var Bg=function(t){var e=(t=Object(l.d)(t)).type;e||El("");var n=e.split(":");2!==n.length&&El("");var r=!1;"echarts"===n[0]&&(e=n[1],r=!0),t.__isBuiltIn=r,ic.set(e,t)};Lg(2e3,hf),Lg(4500,ff),Lg(4500,df),Lg(2e3,Vf),Lg(4500,Ff),Lg(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(t){var n=r.getItemVisual(t,"decal");n&&(r.ensureUniqueItemVisual(t,"style").decal=Ld(n,e))}));var i=r.getVisual("decal");if(i)r.getVisual("style").decal=Ld(i,e)}}))})),Ag(pu),Tg(900,(function(t){var e=Object(l.f)();t.eachSeries((function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),e.each(fu)})),Rg("default",(function(t,e){e=e||{},l.i(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Mn,r=new vo({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new Po({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new vo({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((i=new rp({shape:{startAngle:-gf/2,endAngle:-gf/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*gf/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*gf/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),Pg({type:"highlight",event:"highlight",update:"highlight"},l.L),Pg({type:"downplay",event:"downplay",update:"downplay"},l.L),Pg({type:"select",event:"select",update:"select"},l.L),Pg({type:"unselect",event:"unselect",update:"unselect"},l.L),Pg({type:"toggleSelect",event:"toggleSelect",update:"toggleSelect"},l.L),kg("light",Lf),kg("dark",Rf);var Vg=[],Fg={registerPreprocessor:Ag,registerProcessor:Tg,registerPostInit:function(t){Dg("afterinit",t)},registerPostUpdate:function(t){Dg("afterupdate",t)},registerUpdateLifecycle:Dg,registerAction:Pg,registerCoordinateSystem:function(t,e){Wl.register(t,e)},registerLayout:function(t,e){Eg(bg,t,e,1e3,"layout")},registerVisual:Lg,registerTransform:Bg,registerLoading:Rg,registerMap:Ng,registerImpl:function(t,e){Rd[t]=e},PRIORITY:Bd,ComponentModel:hl,ComponentView:qc,SeriesModel:Uc,ChartView:Jp,registerComponentModel:function(t){hl.registerClass(t)},registerComponentView:function(t){qc.registerClass(t)},registerSeriesModel:function(t){Uc.registerClass(t)},registerChartView:function(t){Jp.registerClass(t)},registerSubTypeDefaulter:function(t,e){hl.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var n;n=e,On[t]=n}};function Gg(t){Object(l.t)(t)?Object(l.k)(t,(function(t){Gg(t)})):Object(l.r)(Vg,t)>=0||(Vg.push(t),Object(l.w)(t)&&(t={install:t}),t.install(Fg))}var Hg=2*Math.PI,Wg=ji.CMD,Ug=["top","right","bottom","left"];function Yg(t,e,n,r,i){var o=n.width,a=n.height;switch(t){case"top":r.set(n.x+o/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+e,n.y+a/2),i.set(1,0)}}function qg(t,e,n,r,i,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),c=(a/=u)*n+t,h=(s/=u)*n+e;if(Math.abs(r-i)%Hg<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var p=r;r=Bi(i),i=Bi(p)}else r=Bi(r),i=Bi(i);r>i&&(i+=Hg);var f=Math.atan2(s,a);if(f<0&&(f+=Hg),f>=r&&f<=i||f+Hg>=r&&f+Hg<=i)return l[0]=c,l[1]=h,u-n;var d=n*Math.cos(r)+t,g=n*Math.sin(r)+e,v=n*Math.cos(i)+t,y=n*Math.sin(i)+e,m=(d-a)*(d-a)+(g-s)*(g-s),b=(v-a)*(v-a)+(y-s)*(y-s);return m0){e=e/180*Math.PI,Jg.fromArray(t[0]),tv.fromArray(t[1]),ev.fromArray(t[2]),it.sub(nv,Jg,tv),it.sub(rv,ev,tv);var n=nv.len(),r=rv.len();if(!(n<.001||r<.001)){nv.scale(1/n),rv.scale(1/r);var i=nv.dot(rv);if(Math.cos(e)1&&it.copy(av,ev),av.toArray(t[1])}}}}function lv(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,Jg.fromArray(t[0]),tv.fromArray(t[1]),ev.fromArray(t[2]),it.sub(nv,tv,Jg),it.sub(rv,ev,tv);var r=nv.len(),i=rv.len();if(!(r<.001||i<.001))if(nv.scale(1/r),rv.scale(1/i),nv.dot(e)=a)it.copy(av,ev);else{av.scaleAndAdd(rv,o/Math.tan(Math.PI/2-s));var l=ev.x!==tv.x?(av.x-tv.x)/(ev.x-tv.x):(av.y-tv.y)/(ev.y-tv.y);if(isNaN(l))return;l<0?it.copy(av,tv):l>1&&it.copy(av,ev)}av.toArray(t[1])}}}function uv(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function cv(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=x(r[0],r[1]),o=x(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=w([],r[1],r[0],a/i),l=w([],r[1],r[2],a/o),u=w([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&o&&w(-h/a,0,a);var v,y,m=t[0],b=t[a-1];return x(),v<0&&S(-v,.8),y<0&&S(y,.8),x(),_(v,y,1),_(y,v,-1),x(),v<0&&M(-v),y<0&&M(y),u}function x(){v=m.rect[e]-r,y=i-b.rect[e]-b.rect[n]}function _(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){w(r*n,0,a);var i=r+t;i<0&&S(-i*n,1)}else S(-t*n,1)}}function w(n,r,i){0!==n&&(u=!0);for(var o=r;o0)for(l=0;l0;l--){w(-(o[l-1]*h),l,a)}}}function M(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r0?w(n,0,r+1):w(-n,a-r-1,a),(t-=n)<=0)return}}function gv(t,e,n,r){return dv(t,"y","height",e,n,r)}function vv(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new ft(0,0,0,0);function r(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var i=0;i=0&&n.attr(d.oldLayoutSelect),Object(l.r)(c,"emphasis")>=0&&n.attr(d.oldLayoutEmphasis)),Ta(n,s,e,a)}else if(n.attr(s),!$a(n).valueAnimation){var h=Object(l.P)(n.style.opacity,1);n.style.opacity=0,Da(n,{style:{opacity:h}},e,a)}if(d.oldLayout=s,n.states.select){var p=d.oldLayoutSelect={};Sv(p,s,Mv),Sv(p,n.states.select,Mv)}if(n.states.emphasis){var f=d.oldLayoutEmphasis={};Sv(f,s,Mv),Sv(f,n.states.emphasis,Mv)}Ka(n,a,u,e,e)}if(r&&!r.ignore&&!r.invisible){i=(d=wv(r)).oldLayout;var d,g={points:r.shape.points};i?(r.attr({shape:i}),Ta(r,{shape:g},e)):(r.setShape(g),r.style.strokePercent=0,Da(r,{style:{strokePercent:1}},e)),d.oldLayout=g}},t}(),Cv=lr();function Iv(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=Cv(e).labelManager;r||(r=Cv(e).labelManager=new Ov),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=Cv(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}function kv(t,e,n){var r=rn.d.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}Gg(Iv);var Av=function(t){function e(e,n,r){var i,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||Ue,"string"==typeof e?i=kv(e,n,r):l.A(e)&&(e=(i=e).id),o.id=e,o.dom=i;var a=i.style;return a&&(l.j(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return a(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=kv("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new ft(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new ft(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,r=1/0,i=0,u=0;u=a)}}for(var c=this.__startIndex;c15)break}n.prevElClipPaths&&u.restore()};if(c)if(0===c.length)s=l.__endIndex;else for(var x=d.dpr,_=0;_0&&t>r[0]){for(s=0;st);s++);a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r0?.01:0),this._needsManuallyCompositing),c.__builtin__||l.G("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==i&&(c.__dirty=!0),c.__startIndex=i,c.incremental?c.__drawIndex=-1:c.__drawIndex=i,e(i),o=c),1&s.__dirty&&!s.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=i))}e(i),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,l.k(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?l.I(n[t],e,!0):n[t]=e;for(var r=0;r=jv:-l>=jv),p=l>0?l%jv:l%jv+jv,f=!1;f=!!h||!Object(le.j)(c)&&p>=Lv==!!u;var d=t+n*Pv(o),g=e+r*Dv(o);this._start&&this._add("M",d,g);var v=Math.round(i*Ev);if(h){var y=1/this._p,m=(u?1:-1)*(jv-y);this._add("A",n,r,v,1,+u,t+n*Pv(o+m),e+r*Dv(o+m)),y>.01&&this._add("A",n,r,v,0,+u,d,g)}else{var b=t+n*Pv(a),x=e+r*Dv(a);this._add("A",n,r,v,+f,+u,b,x)}},t.prototype.rect=function(t,e,n,r){this._add("M",t,e),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,r,i,o,a,s,l){for(var u=[],c=this._p,h=1;h"}(i,e.attrs)+N(e.text)+(r?""+n+Object(l.H)(r,(function(e){return t(e)})).join(n)+n:"")+("")}(t)}function Uv(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Yv(t,e,n,r){return Hv("svg","root",{width:t,height:e,xmlns:Vv,"xmlns:xlink":Fv,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+t+" "+e},n)}var qv={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"};function Xv(t,e,n){var r=Object(l.m)({},t.shape);Object(l.m)(r,e),t.buildPath(n,r);var i=new Rv;return i.reset(Object(le.f)(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function $v(t,e){var n=e.originX,r=e.originY;(n||r)&&(t["transform-origin"]=n+"px "+r+"px")}var Zv={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Kv(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function Qv(t){return Object(l.C)(t)?qv[t]?"cubic-bezier("+qv[t]+")":oe(t)?t:"":""}function Jv(t,e,n,r){var i=t.animators,o=i.length,a=[];if(t instanceof ip){if(y=function(t,e,n){var r,i,o=t.shape.paths,a={};if(Object(l.k)(o,(function(t){var e=Uv(n.zrId);e.animation=!0,Jv(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,u=Object(l.F)(o),c=u.length;if(c){var h=o[i=u[c-1]];for(var p in h){var f=h[p];a[p]=a[p]||{d:""},a[p].d+=f.d||""}for(var d in s){var g=s[d].animation;g.indexOf(i)>=0&&(r=g)}}})),r){e.d=!1;var s=Kv(a,n);return r.replace(i,s)}}(t,e,n))a.push(y);else if(!o)return}else if(!o)return;for(var s={},u=0;u0})).length)return Kv(h,n)+" "+i[0]+" both"}for(var v in s){var y;(y=g(s[v]))&&a.push(y)}if(a.length){var m=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+m]={animation:a.join(",")},e.class=m}}var ty=Math.round;function ey(t){return t&&Object(l.C)(t.src)}function ny(t){return t&&Object(l.w)(t.toDataURL)}function ry(t,e,n,r){!function(t,e,n,r){var i=null==e.opacity?1:e.opacity;if(n instanceof so)t("opacity",i);else{if(function(t){var e=t.fill;return null!=e&&"none"!==e}(e)){var o=Object(le.p)(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*i:o.opacity*i;(r||a<1)&&t("fill-opacity",a)}else t("fill","none");if(function(t){var e=t.stroke;return null!=e&&"none"!==e}(e)){var s=Object(le.p)(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*i:s.opacity*i,h=e.strokeFirst;if((r||1!==u)&&t("stroke-width",u),(r||h)&&t("paint-order",h?"stroke":"fill"),(r||c<1)&&t("stroke-opacity",c),e.lineDash){var p=fd(n),f=p[0],d=p[1];f&&(d=Nv(d||0),t("stroke-dasharray",f.join(",")),(d||r)&&t("stroke-dashoffset",d))}else r&&t("stroke-dasharray","none");for(var g=0;gl?Iy(t,null==n[h+1]?null:n[h+1].elm,n,s,h):ky(t,e,a,l))}(n,r,i):Sy(i)?(Sy(t.text)&&xy(n,""),Iy(n,null,i,0,i.length-1)):Sy(r)?ky(n,r,0,r.length-1):Sy(t.text)&&xy(n,""):t.text!==e.text&&(Sy(r)&&ky(n,r,0,r.length-1),xy(n,e.text)))}var Dy=0;var Py=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=e,this._opts=n=Object(l.m)({},n),this.root=t,this._id="zr"+Dy++,this._oldVNode=Yv(n.width,n.height),t&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Gv("svg");Ay(null,this._oldVNode),r.appendChild(i),t.appendChild(r)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(Oy(t,e))Ty(t,e);else{var n=t.elm,r=my(n);Cy(e),null!==r&&(gy(r,e.elm,by(n)),ky(r,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return py(t,Uv(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._backgroundColor,r=this._width,i=this._height,o=Uv(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress;var a=[];if(n&&"none"!==n){var s=Object(le.p)(n),u=s.color,c=s.opacity;this._bgVNode=Hv("rect","bg",{width:r,height:i,x:"0",y:"0",id:"0",fill:u,"fill-opacity":c}),a.push(this._bgVNode)}else this._bgVNode=null;var h=t.compress?null:this._mainVNode=Hv("g","main",{},[]);this._paintList(e,o,h?h.children:a),h&&a.push(h);var p=Object(l.H)(Object(l.F)(o.defs),(function(t){return o.defs[t]}));if(p.length&&a.push(Hv("defs","defs",{},p)),t.animation){var f=function(t,e,n){var r=(n=n||{}).newline?"\n":"",i=" {"+r,o=r+"}",a=Object(l.H)(Object(l.F)(t),(function(e){return e+i+Object(l.H)(Object(l.F)(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(r)+o})).join(r),s=Object(l.H)(Object(l.F)(e),(function(t){return"@keyframes "+t+i+Object(l.H)(Object(l.F)(e[t]),(function(n){return n+i+Object(l.H)(Object(l.F)(e[t][n]),(function(r){var i=e[t][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(r)+o})).join(r)+o})).join(r);return a||s?[""].join(r):""}(o.cssNodes,o.cssAnims,{newline:!0});if(f){var d=Hv("style","stl",{},[],f);a.push(d)}}return Yv(r,i,a,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},Wv(this.renderToVNode({animation:Object(l.P)(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(l.P)(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var n=Object(le.p)(t),r=n.color,i=n.opacity;e.elm.setAttribute("fill",r),i<1&&e.elm.setAttribute("fill-opacity",i)}},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var r,i,o=t.length,a=[],s=0,l=0,u=0;u=0&&(!h||!i||h[d]!==i[d]);d--);for(var g=f-1;g>d;g--)r=a[--s-1];for(var v=d+1;v1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),r[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var p=0;p1)for(var a=0;a30}var qy,Xy,$y,Zy,Ky,Qy,Jy,tm=l.A,em=l.H,nm="undefined"==typeof Int32Array?Array:Int32Array,rm=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],im=["_approximateExtent"],om=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;Hy(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,u={},c=0;c=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if("original"===n.getSource().sourceFormat&&!n.pure)for(var o=[],a=t;a0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),l.t(i)?i=i.slice():tm(i)&&(i=l.m({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,tm(e)?l.m(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){tm(t)?l.m(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?l.m(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;jo(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){l.k(this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:em(this.dimensions,this._getDimInfo,this),this.hostModel)),Ky(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];l.w(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(l.S(arguments)))})},t.internalField=(qy=function(t){var e=t._invertedIndicesMap;l.k(e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new nm(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),r[e]=s}})),t}();function am(t,e){xu(t)||(t=wu(t));var n=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Object(l.f)(),o=[],a=function(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Object(l.k)(e,(function(t){var e;Object(l.A)(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Yy(a),u=r===t.dimensionsDefine,c=u?Uy(t):Wy(r),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(t,a));for(var p=Object(l.f)(h),f=new cc(a),d=0;d0&&(r.name=i+(o-1)),o++,e.set(i,o)}}(o),new Gy({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function sm(t,e,n){var r=e.data;if(n||r.hasOwnProperty(t)){for(var i=0;r.hasOwnProperty(t+i);)i++;t+=i}return e.set(t,!0),t}var lm=function(t){this.coordSysDims=[],this.axisMap=Object(l.f)(),this.categoryAxisMap=Object(l.f)(),this.coordSysName=t};var um={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",pr).models[0],o=t.getReferringComponents("yAxis",pr).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),cm(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),cm(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",pr).models[0];e.coordSysDims=["single"],n.set("single",i),cm(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",pr).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),cm(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),cm(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Object(l.k)(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),cm(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function cm(t){return"category"===t.get("type")}function hm(t,e,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!Hy(t.schema)}(e)?(i=e.schema,r=i.dimensions,o=e.store):r=e;var u,c,h,p,f=!(!t||!t.get("stack"));if(Object(l.k)(r,(function(t,e){Object(l.C)(t)&&(r[e]=t={name:t}),f&&!t.isExtraCoord&&(a||u||!t.ordinalMeta||(u=t),c||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(c=t))})),!c||a||u||(a=!0),c){h="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,g=c.type,v=0;Object(l.k)(r,(function(t){t.coordDim===d&&v++}));var y={name:h,coordDim:d,coordDimIndex:v,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},m={name:p,coordDim:p,coordDimIndex:v+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(y.storeDimIndex=o.ensureCalculationDimension(p,g),m.storeDimIndex=o.ensureCalculationDimension(h,g)),i.appendCalculationDimension(y),i.appendCalculationDimension(m)):(r.push(y),r.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:p,stackResultDimension:h}}function pm(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function fm(t,e){return pm(t,e)?t.getCalculationInfo("stackResultDimension"):e}var dm=function(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=wu(t)):o="original"===(r=i.getSource()).sourceFormat;var a=function(t){var e=t.get("coordinateSystem"),n=new lm(e),r=um[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,r=t.get("coordinateSystem"),i=Wl.get(r);return e&&e.coordSysDims&&(n=l.H(e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=zy(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(e,a),u=n.useEncodeDefaulter,c=l.w(u)?u:u?l.h(xl,s,e):null,h=am(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o}),p=function(t,e,n){var r,i;return n&&l.k(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==r||(t[r].otherDims.itemName=0),r}(h.dimensions,n.createInvertedIndices,a),f=o?null:i.getSharedDataStore(h),d=hm(e,{schema:h,store:f}),g=new om(h,e);g.setCalculationInfo(d);var v=null!=p&&function(t){if("original"===t.sourceFormat){var e=function(t){var e=0;for(;e-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Uc);function vm(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=zu(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a=0&&r.push(e[o])}return r.join(" ")}function mm(t,e){this.parent.drift(t,e)}var bm=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return a(e,t),e.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=ad(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=mm,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ia(this.childAt(0))},e.prototype.downplay=function(){oa(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{(p=this.childAt(0)).silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?p.attr(h):Ta(p,h,a,n),Ra(p)}if(this._updateCommon(t,n,s,r,i),l){var p=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,Da(p,h,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,u,c,h,p,f,d,g=this.childAt(0),v=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,u=r.focus,c=r.blurScope,p=r.labelStatesModels,f=r.hoverScale,d=r.cursorStyle,h=r.emphasisDisabled),!r||t.hasItemOption){var y=r&&r.itemModel?r.itemModel:t.getItemModel(e),m=y.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),a=y.getModel(["blur","itemStyle"]).getItemStyle(),u=m.get("focus"),c=m.get("blurScope"),h=m.get("disabled"),p=Fa(y),f=m.getShallow("scale"),d=y.getShallow("cursor")}var b=t.getItemVisual(e,"symbolRotate");g.attr("rotation",(b||0)*Math.PI/180||0);var x=ld(t.getItemVisual(e,"symbolOffset"),n);x&&(g.x=x[0],g.y=x[1]),d&&g.attr("cursor",d);var _=t.getItemVisual(e,"style"),w=_.fill;if(g instanceof so){var S=g.style;g.useStyle(Object(l.m)({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},_))}else g.__isEmptyBrush?g.useStyle(Object(l.m)({},_)):g.useStyle(_),g.style.decal=null,g.setColor(w,i&&i.symbolInnerColor),g.style.strokeNoScale=!0;var M=t.getItemVisual(e,"liftZ"),O=this._z2;null!=M?null==O&&(this._z2=g.z2,g.z2+=M):null!=O&&(g.z2=O,this._z2=null);var C=i&&i.useNameLabel;Va(g,p,{labelFetcher:v,labelDataIndex:e,defaultText:function(e){return C?t.getName(e):vm(t,e)},inheritColor:w,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=g.ensureState("emphasis");I.style=o,g.ensureState("select").style=s,g.ensureState("blur").style=a;var k=null==f||!0===f?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;I.scaleX=this._sizeX*k,I.scaleY=this._sizeY*k,this.setSymbolScale(1),ma(this,u,c,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=Lo(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&La(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();La(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return sd(t.getItemVisual(e,"symbolSize"))},e}(Mn);function xm(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function _m(t){return null==t||Object(l.A)(t)||(t={isIgnore:t}),t||{}}function wm(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Fa(e),cursorStyle:e.get("cursor")}}var Sm=function(){function t(t){this.group=new Mn,this._SymbolCtor=t||bm}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=_m(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=wm(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add((function(r){var i=u(r);if(xm(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,h){var p=i.getItemGraphicEl(h),f=u(c);if(xm(t,f,c,e)){var d=t.getItemVisual(c,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==d)n.remove(p),(p=new o(t,c,s,l)).setPosition(f);else{p.updateData(t,c,s,l);var v={x:f[0],y:f[1]};a?p.attr(v):Ta(p,v,r)}n.add(p),t.setItemGraphicEl(c,p)}else n.remove(p)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=wm(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=_m(n);for(var i=t.start;i0?n=r[0]:r[1]<0&&(n=r[1]);return n}(i,n),a=r.dim,s=i.dim,u=e.mapDimension(s),c=e.mapDimension(a),h="x"===s||"radius"===s?1:0,p=Object(l.H)(t.dimensions,(function(t){return e.mapDimension(t)})),f=!1,d=e.getCalculationInfo("stackResultDimension");return pm(e,p[0])&&(f=!0,p[0]=d),pm(e,p[1])&&(f=!0,p[1]=d),{dataDimsForPoint:p,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!f,valueDim:u,baseDim:c,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Om(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}var Cm="undefined"!=typeof Float32Array,Im=Cm?Float32Array:Array;function km(t){return Object(l.t)(t)?Cm?new Float32Array(t):t:new Im(t)}var Am=Math.min,Tm=Math.max;function Dm(t,e){return isNaN(t)||isNaN(e)}function Pm(t,e,n,r,i,o,a,s,l){for(var u,c,h,p,f,d,g=n,v=0;v=i||g<0)break;if(Dm(y,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,m),h=y,p=m;else{var b=y-u,x=m-c;if(b*b+x*x<.5){g+=o;continue}if(a>0){for(var _=g+o,w=e[2*_],S=e[2*_+1];w===y&&S===m&&v=r||Dm(w,S))f=y,d=m;else{C=w-u,I=S-c;var T=y-u,D=w-y,P=m-c,L=S-m,j=void 0,E=void 0;if("x"===s){var R=C>0?1:-1;f=y-R*(j=Math.abs(T))*a,d=m,k=y+R*(E=Math.abs(D))*a,A=m}else if("y"===s){var N=I>0?1:-1;f=y,d=m-N*(j=Math.abs(P))*a,k=y,A=m+N*(E=Math.abs(L))*a}else j=Math.sqrt(T*T+P*P),f=y-C*a*(1-(O=(E=Math.sqrt(D*D+L*L))/(E+j))),d=m-I*a*(1-O),A=m+I*a*O,k=Am(k=y+C*a*O,Tm(w,y)),A=Am(A,Tm(S,m)),k=Tm(k,Am(w,y)),d=m-(I=(A=Tm(A,Am(S,m)))-m)*j/E,f=Am(f=y-(C=k-y)*j/E,Tm(u,y)),d=Am(d,Tm(c,m)),k=y+(C=y-(f=Tm(f,Am(u,y))))*E/j,A=m+(I=m-(d=Tm(d,Am(c,m))))*E/j}t.bezierCurveTo(h,p,f,d,y,m),h=k,p=A}else t.lineTo(y,m)}u=y,c=m,g+=o}return v}var Lm=function(){this.smooth=0,this.smoothConstraint=!0},jm=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return a(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Lm},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0&&Dm(n[2*i-2],n[2*i-1]);i--);for(;r=0){var v=a?(c-r)*g+r:(u-n)*g+n;return a?[t,v]:[v,t]}n=u,r=c;break;case o.C:u=i[l++],c=i[l++],h=i[l++],p=i[l++],f=i[l++],d=i[l++];var y=a?qt(n,u,h,f,t,s):qt(r,c,p,d,t,s);if(y>0)for(var m=0;m=0){v=a?Ut(r,c,p,d,b):Ut(n,u,h,f,b);return a?[t,v]:[v,t]}}n=f,r=d}}},e}(to),Em=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e}(Lm),Rm=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return a(e,t),e.prototype.getDefaultShape=function(){return new Em},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Dm(n[2*o-2],n[2*o-1]);o--);for(;i=0;a--){var s=t.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(o){var u=e.getAxis(i),c=l.H(o.stops,(function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}})),h=c.length,p=o.outerColors.slice();h&&c[0].coord>c[h-1].coord&&(c.reverse(),p.reverse());var f=function(t,e){var n,r,i=[],o=t.length;function a(t,e,n){var r=t.coord,i=(n-r)/(e.coord-r);return{coord:n,color:Object(se.b)(i,[t.color,e.color])}}for(var s=0;se){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}(c,"x"===i?n.getWidth():n.getHeight()),d=f.length;if(!d&&h)return c[0].coord<0?p[1]?p[1]:c[h-1].color:p[0]?p[0]:c[0].color;var g=f[0].coord-10,v=f[d-1].coord+10,y=v-g;if(y<.001)return"transparent";l.k(f,(function(t){t.offset=(t.coord-g)/y})),f.push({offset:d?f[d-1].offset:.5,color:p[1]||"transparent"}),f.unshift({offset:d?f[0].offset:.5,color:p[0]||"transparent"});var m=new ap(0,0,0,0,f,!0);return m[i]=g,m[i+"2"]=v,m}}}function qm(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!function(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;ar)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return l.k(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function Xm(t,e){return[t[2*e],t[2*e+1]]}function $m(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1);Lo(d).seriesIndex=t.seriesIndex,ma(d,D,P,L);var j=Wm(t.get("smooth")),E=t.get("smoothMonotone");if(d.setShape({smooth:j,smoothMonotone:E,connectNulls:S}),g){var R=a.getCalculationInfo("stackedOnSeries"),N=0;g.useStyle(l.i(u.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),R&&(N=Wm(R.get("smooth"))),g.setShape({smooth:j,stackedOnSmooth:N,smoothMonotone:E,connectNulls:S}),wa(g,t,"areaStyle"),Lo(g).seriesIndex=t.seriesIndex,ma(g,D,P,L)}var z=function(t){r._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=i,this._stackedOnPoints=_,this._points=c,this._step=I,this._valueOrigin=b,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,e){Lo(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=sr(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new bm(i,o)).x=l,s.y=u,s.setZ(c,h);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=h,p.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Jp.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=sr(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Jp.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;Jo(this._polyline,t),e&&Jo(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new jm({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Rm({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,u=s.get("animationDuration");l.w(u)&&(u=u(null));var c=s.get("animationDelay")||0,h=l.w(c)?c(null):c;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var p=[t.x,t.y],f=void 0,d=void 0,g=void 0;if(n)if(i){var v=n,y=e.pointToCoord(p);r?(f=v.startAngle,d=v.endAngle,g=-y[1]/180*Math.PI):(f=v.r0,d=v.r,g=y[0])}else{var m=n;r?(f=m.x,d=m.x+m.width,g=t.x):(f=m.y+m.height,d=m.y,g=t.y)}var b=d===f?0:(g-f)/(d-f);a&&(b=1-b);var x=l.w(c)?c(o):u*b+h,_=s.getSymbolPath(),w=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if($m(t)){var i=t.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Po({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,r=t.length/2;r>0&&(e=t[2*r-2],n=t[2*r-1],isNaN(e)||isNaN(n));r--);return r-1}(a);l>=0&&(Va(o,Fa(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?ym(i,n):vm(i,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(r,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),p=o.get("precision"),f=o.get("distance")||0,d=a.getBaseAxis(),g=d.isHorizontal(),v=d.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,b=(g?f:0)*(v?-1:1),x=(g?0:-f)*(v?-1:1),_=g?"x":"y",w=function(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=e||r>=e&&i<=e){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}(u,m,_),S=w.range,M=S[1]-S[0],O=void 0;if(M>=1){if(M>1&&!h){var C=Xm(u,S[0]);s.attr({x:C[0]+b,y:C[1]+x}),i&&(O=c.getRawValue(S[0]))}else{(C=l.getPointOn(m,_))&&s.attr({x:C[0]+b,y:C[1]+x});var I=c.getRawValue(S[0]),k=c.getRawValue(S[1]);i&&(O=yr(n,p,I,k,w.t))}r.lastFrameIndex=S[0]}else{var A=1===t||r.lastFrameIndex>0?S[0]:0;C=Xm(u,A);i&&(O=c.getRawValue(A)),s.attr({x:C[0]+b,y:C[1]+x})}i&&$a(s).setLabelText(O)}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,r,i,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),u=[],c=[],h=[],p=[],f=[],d=[],g=[],v=Mm(i,e,a),y=t.getLayout("points")||[],m=e.getLayout("points")||[],b=0;b3e3||l&&Hm(p,d)>3e3)return s.stopAnimation(),s.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:d})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:f}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),Ta(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:p}),l.stopAnimation(),Ta(l,{shape:{stackedOnPoints:d}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=c.status,m=0;me&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),u=o.getOtherAxis(s),c=s.getExtent(),h=n.getDevicePixelRatio(),p=Math.abs(c[1]-c[0])*(h||1),f=Math.round(a/p);if(isFinite(f)&&f>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(u.dim),1/f));var d=void 0;Object(l.C)(i)?d=Jm[i]:Object(l.w)(i)&&(d=i),d&&t.setData(r.downSample(r.mapDimension(u.dim),1/f,d,tb))}}}}}function nb(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function rb(t){return t.dim+t.index}function ib(t,e){var n=[];return e.eachSeriesByType(t,(function(t){ub(t)&&n.push(t)})),n}function ob(t){var e=function(t){var e={};Object(l.k)(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,l=a.count();s0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(t),n=[];return Object(l.k)(t,(function(t){var r,i=t.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var a=i.dim+"_"+i.index,s=e[a],l=Math.abs(o[1]-o[0]),u=i.scale.getExtent(),c=Math.abs(u[1]-u[0]);r=s?l/c*s:l}else{var h=t.getData();r=Math.abs(o[1]-o[0])/h.count()}var p=Tn(t.get("barWidth"),r),f=Tn(t.get("barMaxWidth"),r),d=Tn(t.get("barMinWidth")||(cb(t)?.5:1),r),g=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:p,barMaxWidth:f,barMinWidth:d,barGap:g,barCategoryGap:v,axisKey:rb(i),stackId:nb(t)})})),ab(n)}function ab(t){var e={};Object(l.k)(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var p=t.barCategoryGap;null!=p&&(o.categoryGap=p)}));var n={};return Object(l.k)(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=Object(l.F)(r).length;o=Math.max(35-4*a,15)+"%"}var s=Tn(o,i),u=Tn(t.gap,1),c=t.remainedWidth,h=t.autoWidthCount,p=(c-s)/(h+(h-1)*u);p=Math.max(p,0),Object(l.k)(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,c-=r+u*r,h--}else{var r=p;e&&er&&(r=n),r!==p&&(t.width=r,c-=r+u*r,h--)}})),p=(c-s)/(h+(h-1)*u),p=Math.max(p,0);var f,d=0;Object(l.k)(r,(function(t,e){t.width||(t.width=p),f=t,d+=t.width*(1+u)})),f&&(d-=f.width*u);var g=-d/2;Object(l.k)(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:g,width:t.width},g+=t.width*(1+u)}))})),n}function sb(t,e){var n=ib(t,e),r=ob(n);Object(l.k)(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),i=nb(t),o=r[rb(n)][i],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function lb(t){return{seriesType:t,plan:Xc(),reset:function(t){if(ub(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=e.getDimensionIndex(e.mapDimension(i.dim)),a=e.getDimensionIndex(e.mapDimension(r.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),c=pm(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),p=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,i),f=cb(t),d=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(t,e){for(var r,i=t.count,l=f&&km(3*i),u=f&&s&&km(3*i),m=f&&km(i),b=n.master.getRect(),x=h?b.width:b.height,_=e.getStore(),w=0;null!=(r=t.next());){var S=_.get(c?g:o,r),M=_.get(a,r),O=p,C=void 0;c&&(C=+S-_.get(o,r));var I=void 0,k=void 0,A=void 0,T=void 0;if(h){var D=n.dataToPoint([S,M]);if(c)O=n.dataToPoint([C,M])[0];I=O,k=D[1]+y,A=D[0]-O,T=v,Math.abs(A)t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ds(pb.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(pb),db=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},gb=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return a(e,t),e.prototype.getDefaultShape=function(){return new db},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,p=c?u-lo)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){Ea(e,t,Lo(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Jp),_b={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=mb(e.x,t.x),s=bb(e.x+e.width,i),l=mb(e.y,t.y),u=bb(e.y+e.height,o),c=si?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=bb(e.r,t.r),o=mb(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){r=e.r;e.r=e.r0,e.r0=r}return a}},wb={cartesian2d:function(t,e,n,r,i,o,a,s,u){var c=new vo({shape:Object(l.m)({},r),z2:1});(c.__dataIndex=n,c.name="item",o)&&(c.shape[i?"height":"width"]=0);return c},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?gb:Eh,c=new u({shape:r,z2:1});c.name="item";var h,p,f=Ab(i);if(c.calculateTextPosition=(h=f,p=({isRoundCap:u===gb}||{}).isRoundCap,function(t,e,n){var r=e.position;if(!r||r instanceof Array)return fn(t,e,n);var i=h(r),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,f=(u+c)/2,d=a.startAngle,g=a.endAngle,v=(d+g)/2,y=p?Math.abs(u-c)/2:0,m=Math.cos,b=Math.sin,x=s+u*m(d),_=l+u*b(d),w="left",S="top";switch(i){case"startArc":x=s+(c-o)*m(v),_=l+(c-o)*b(v),w="center",S="top";break;case"insideStartArc":x=s+(c+o)*m(v),_=l+(c+o)*b(v),w="center",S="bottom";break;case"startAngle":x=s+f*m(d)+vb(d,o+y,!1),_=l+f*b(d)+yb(d,o+y,!1),w="right",S="middle";break;case"insideStartAngle":x=s+f*m(d)+vb(d,-o+y,!1),_=l+f*b(d)+yb(d,-o+y,!1),w="left",S="middle";break;case"middle":x=s+f*m(v),_=l+f*b(v),w="center",S="middle";break;case"endArc":x=s+(u+o)*m(v),_=l+(u+o)*b(v),w="center",S="bottom";break;case"insideEndArc":x=s+(u-o)*m(v),_=l+(u-o)*b(v),w="center",S="top";break;case"endAngle":x=s+f*m(g)+vb(g,o+y,!0),_=l+f*b(g)+yb(g,o+y,!0),w="left",S="middle";break;case"insideEndAngle":x=s+f*m(g)+vb(g,-o+y,!0),_=l+f*b(g)+yb(g,-o+y,!0),w="right",S="middle";break;default:return fn(t,e,n)}return(t=t||{}).x=x,t.y=_,t.align=w,t.verticalAlign=S,t}),o){var d=i?"r":"endAngle",g={};c.shape[d]=i?0:r.startAngle,g[d]=r[d],(s?Ta:Da)(c,{shape:g},o)}return c}};function Sb(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?Ta:Da)(n,{shape:l},e,i,null),(a?Ta:Da)(n,{shape:u},e?t.baseAxis.model:null,i)}function Mb(t,e){for(var n=0;n0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function Ab(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function Tb(t,e,n,r,i,o,a,s){var u=e.getItemVisual(n,"style");s||t.setShape("r",r.get(["itemStyle","borderRadius"])||0),t.useStyle(u);var c=r.getShallow("cursor");c&&t.attr("cursor",c);var h=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=Fa(r);Va(t,p,{labelFetcher:o,labelDataIndex:n,defaultText:vm(o.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:h});var f=t.getTextContent();if(s&&f){var d=r.get(["label","position"]);t.textConfig.inside="middle"===d||null,function(t,e,n,r){if(Object(l.z)(r))t.setTextConfig({rotation:r});else if(Object(l.t)(e))t.setTextConfig({rotation:0});else{var i,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,u=(a+s)/2,c=n(e);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=u;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-i;"middle"===c&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}}(t,"outside"===d?h:d,Ab(a),r.get(["label","rotate"]))}Za(f,p,o.getRawValue(n),(function(t){return ym(e,t)}));var g=r.getModel(["emphasis"]);ma(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),wa(t,r),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(i)&&(t.style.fill="none",t.style.stroke="none",Object(l.k)(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var Db=function(){},Pb=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return a(e,t),e.prototype.getDefaultShape=function(){return new Db},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY);Lo(this).dataIndex=e>=0?e:null}),30,!1);function Eb(t,e,n){if(Vm(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}var o=e;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}var Rb=xb;var Nb=2*Math.PI,zb=Math.PI/180;function Bb(t,e){return rl(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Vb(t,e){var n=Bb(t,e),r=t.get("center"),i=t.get("radius");l.t(i)||(i=[0,i]),l.t(r)||(r=[r,r]);var o,a,s=Tn(n.width,e.getWidth()),u=Tn(n.height,e.getHeight()),c=Math.min(s,u),h=Tn(i[0],c/2),p=Tn(i[1],c/2),f=t.coordinateSystem;if(f){var d=f.dataToPoint(r);o=d[0]||0,a=d[1]||0}else o=Tn(r[0],s)+n.x,a=Tn(r[1],u)+n.y;return{cx:o,cy:a,r0:h,r:p}}function Fb(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),r=e.mapDimension("value"),i=Bb(t,n),o=Vb(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*zb,h=t.get("minAngle")*zb,p=0;e.each(r,(function(t){!isNaN(t)&&p++}));var f=e.getSum(r),d=Math.PI/(f||p)*2,g=t.get("clockwise"),v=t.get("roseType"),y=t.get("stillShowZeroSum"),m=e.getDataExtent(r);m[0]=0;var b=Nb,x=0,_=c,w=g?1:-1;if(e.setLayout({viewRect:i,r:l}),e.each(r,(function(t,n){var r;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:v?NaN:l});else{(r="area"!==v?0===f&&y?d:t*d:Nb/p)n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*i,p=r+l.len,d=Math.abs(h)t.unconstrainedWidth?null:f:null;r.setStyle("width",d)}var g=r.getBoundingRect();o.width=g.width;var v=(r.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function Yb(t){return"center"===t.position}function qb(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*Hb,s=r.getLayout("viewRect"),u=r.getLayout("r"),c=s.width,h=s.x,p=s.y,f=s.height;function d(t){t.ignore=!0}r.each((function(t){var s=r.getItemGraphicEl(t),p=s.shape,f=s.getTextContent(),g=s.getTextGuideLine(),v=r.getItemModel(t),y=v.getModel("label"),m=y.get("position")||v.get(["emphasis","label","position"]),b=y.get("distanceToLabelLine"),x=y.get("alignTo"),_=Tn(y.get("edgeDistance"),c),w=y.get("bleedMargin"),S=v.getModel("labelLine"),M=S.get("length");M=Tn(M,c);var O=S.get("length2");if(O=Tn(O,c),Math.abs(p.endAngle-p.startAngle)0?"right":"left":D>0?"left":"right"}var B=Math.PI,V=0,F=y.get("rotate");if(Object(l.z)(F))V=F*(B/180);else if("center"===m)V=0;else if("radial"===F||!0===F){V=D<0?-T+B:-T}else if("tangential"===F&&"outside"!==m&&"outer"!==m){var G=Math.atan2(D,P);G<0&&(G=2*B+G),P>0&&(G=B+G),V=G-B}if(o=!!V,f.x=C,f.y=I,f.rotation=V,f.setStyle({verticalAlign:"middle"}),L){f.setStyle({align:A});var H=f.states.select;H&&(H.x+=f.x,H.y+=f.y)}else{var W=f.getBoundingRect().clone();W.applyTransform(f.getComputedTransform());var U=(f.style.margin||0)+2.1;W.y-=U/2,W.height+=U,i.push({label:f,labelLine:g,position:m,len:M,len2:O,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new it(D,P),linePoints:k,textAlign:A,labelDistance:b,labelAlignTo:x,edgeDistance:_,bleedMargin:w,rect:W,unconstrainedWidth:W.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:L})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u=n.r0}},e.type="pie",e}(Jp);function Kb(t,e,n){e=Object(l.t)(e)&&{coordDimensions:e}||Object(l.m)({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=am(r,e).dimensions,o=new om(i,t);return o.initData(r,n),o}var Qb=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),Jb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Qb(l.c(this.getData,this),l.c(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){var t=Kb(this,{coordDimensions:["value"],encodeDefaulter:l.h(_l,this)}),e=[];return t.each(t.mapDimension("value"),(function(t){e.push(t)})),this.seats=En(e,t.hostModel.get("percentPrecision")),t},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.call(this,e);return n.percent=this.seats[e],n.$vars.push("percent"),n},e.prototype._defaultLabelLine=function(t){Kn(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Uc);var tx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return a(e,t),e.prototype.getInitialData=function(t,e){return dm(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Uc),ex=function(){},nx=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return a(e,t),e.prototype.getDefaultShape=function(){return new ex},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,r=e.points,i=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&i[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n=0;s--){var l=2*s,u=r[l]-o/2,c=r[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return t=n[0],e=n[1],r.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,r=e.size,i=r[0],o=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),ix=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=Qm("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,r=e.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new rx:new Sm,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Jp),ox=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(hl),ax=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),sx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",pr).models[0]},e.type="cartesian2dAxis",e}(hl);l.K(sx,ax);var lx={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},ux=l.I({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},lx),cx=l.I({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},lx),hx={category:ux,value:cx,time:l.I({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},cx),log:l.i({logBase:10},cx)},px=0;function fx(t){return Object(l.A)(t)&&null!=t.value?t.value:t+""}var dx=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++px}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&Object(l.H)(r,fx);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(l.C)(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return null==(e=r.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(l.f)(this.categories))},t}(),gx={value:1,category:1,time:1,log:1};function vx(t,e,n,r){Object(l.k)(gx,(function(i,o){var s=Object(l.I)(Object(l.I)({},hx[o],!0),r,!0),u=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return a(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=ol(this),r=n?sl(t):{},i=e.getTheme();Object(l.I)(t,i.get(o+"Axis")),Object(l.I)(t,this.getDefaultOption()),t.type=yx(t),n&&al(t,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=dx.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=s,n}(n);t.registerComponentModel(u)})),t.registerSubTypeDefaulter(e+"Axis",yx)}function yx(t){return t.type||(t.data?"category":"value")}var mx=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Or(mx);var bx=mx;function xx(t){return"interval"===t.type||"log"===t.type}function _x(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=Gn(o/e,!0);null!=n&&ar&&(a=i.interval=r);var s=i.intervalPrecision=Sx(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Mx(t,0,e),Mx(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(i.niceTickExtent=[Dn(Math.ceil(t[0]/a)*a,s),Dn(Math.floor(t[1]/a)*a,s)],t),i}function wx(t){var e=Math.pow(10,Fn(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Dn(n*e)}function Sx(t){return Ln(t)+2}function Mx(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Ox(t,e){return t>=e[0]&&t<=e[1]}function Cx(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Ix(t,e){return t*(e[1]-e[0])+e[0]}var kx=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new dx({})),Object(l.t)(r)&&(r=new dx({categories:Object(l.H)(r,(function(t){return Object(l.A)(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return a(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(l.C)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Ox(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return Cx(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(Ix(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(bx);bx.registerClass(kx);var Ax=kx,Tx=Dn,Dx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return a(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ox(t,this._extent)},e.prototype.normalize=function(t){return Cx(t,this._extent)},e.prototype.scale=function(t){return Ix(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Sx(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;n[0]1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(t?o.push({value:Tx(s+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;ir[0]&&c0)for(var s=0;s=0;--s)if(u[c]){o=u[c];break}o=o||a.none}if(l.t(o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[h=Math.min(h,o.length-1)]}}return Cs(new Date(t.value),o,i,r)}(t,e,n,this.getSetting("locale"),r)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var r=this.getSetting("useUTC"),i=function(t,e,n,r){var i=Ss,o=0;function a(t,e,n,i,o,a,s){for(var l=new Date(e),u=e,c=l[i]();u1&&0===u&&o.unshift({value:o[0].value-p})}}for(u=0;u=r[0]&&m<=r[1]&&h++)}var b=(r[1]-r[0])/e;if(h>1.5*b&&p>b/1.5)break;if(u.push(v),h>b||t===i[f])break}c=[]}}}var x;0;var _=Object(l.n)(Object(l.H)(u,(function(t){return Object(l.n)(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),w=[],S=_.length-1;for(f=0;f<_.length;++f)for(var M=_[f],O=0;On&&(this._approxInterval=n);var o=jx.length,a=Math.min(function(t,e,n,r){for(;n>>1;t[i][1]16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Rx(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function Nx(t){return(t/=36e5)>12?12:t>6?6:t>3.5?4:t>2?2:1}function zx(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Bx(t){return Gn(t,!0)}function Vx(t,e,n){var r=new Date(t);switch(Os(e)){case"year":case"month":r[Ns(n)](0);case"day":r[zs(n)](1);case"hour":r[Bs(n)](0);case"minute":r[Vs(n)](0);case"second":r[Fs(n)](0),r[Gs(n)](0)}return r.getTime()}bx.registerClass(Lx);var Fx=Lx,Gx=bx.prototype,Hx=Px.prototype,Wx=Dn,Ux=Math.floor,Yx=Math.ceil,qx=Math.pow,Xx=Math.log,$x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Px,e._interval=0,e}return a(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),i=Hx.getTicks.call(this,t);return l.H(i,(function(t){var e=t.value,i=Dn(qx(this.base,e));return i=e===n[0]&&this._fixMin?Kx(i,r[0]):i,{value:i=e===n[1]&&this._fixMax?Kx(i,r[1]):i}}),this)},e.prototype.setExtent=function(t,e){var n=Xx(this.base);t=Xx(Math.max(0,t))/n,e=Xx(Math.max(0,e))/n,Hx.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=Gx.getExtent.call(this);e[0]=qx(t,e[0]),e[1]=qx(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=Kx(e[0],n[0])),this._fixMax&&(e[1]=Kx(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=Xx(t[0])/Xx(e),t[1]=Xx(t[1])/Xx(e),Gx.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var r,i=(r=n,Math.pow(10,Fn(r)));for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[Dn(Yx(e[0]/i)*i),Dn(Ux(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){Hx.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ox(t=Xx(t)/Xx(this.base),this._extent)},e.prototype.normalize=function(t){return Cx(t=Xx(t)/Xx(this.base),this._extent)},e.prototype.scale=function(t){return t=Ix(t,this._extent),qx(this.base,t)},e.type="log",e}(bx),Zx=$x.prototype;function Kx(t,e){return Wx(t,Ln(e))}Zx.getMinorTicks=Hx.getMinorTicks,Zx.getLabel=Hx.getLabel,bx.registerClass($x);var Qx=$x,Jx=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!u&&(a=0),a<0&&s<0&&!c&&(s=0));var p=this._determinedMin,f=this._determinedMax;return null!=p&&(a=p,u=!0),null!=f&&(s=f,c=!0),{min:a,max:s,minFixed:u,maxFixed:c,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[e_[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[t_[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),t_={min:"_determinedMin",max:"_determinedMax"},e_={min:"_dataMin",max:"_dataMax"};function n_(t,e,n){var r=t.rawExtentInfo;return r||(r=new Jx(t,e,n),t.rawExtentInfo=r,r)}function r_(t,e){return null==e?null:Object(l.l)(e)?NaN:t.parse(e)}function i_(t,e){var n=t.type,r=n_(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=ib("bar",a),u=!1;if(l.k(s,(function(t){u=u||t.getBaseAxis()===e.axis})),u){var c=ob(s),h=function(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=function(t,e,n){if(t&&e){var r=t[rb(e)];return null!=r&&null!=n?r[nb(n)]:r}}(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;l.k(a,(function(t){s=Math.min(t.offset,s)}));var u=-1/0;l.k(a,(function(t){u=Math.max(t.offset+t.width,u)})),s=Math.abs(s),u=Math.abs(u);var c=s+u,h=e-t,p=h/(1-(s+u)/o)-h;return{min:t-=p*(s/c),max:e+=p*(u/c)}}(i,o,e,c);i=h.min,o=h.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function o_(t,e){var n=e,r=i_(t,n),i=r.extent,o=n.get("splitNumber");t instanceof Qx&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function a_(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Ax({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Fx({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(bx.getClass(e)||Px)}}function s_(t){var e,n,r=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=r,function(e,r){return t.scale.getFormattedLabel(e,r,n)}):l.C(r)?function(e){return function(n){var r=t.scale.getLabel(n);return e.replace("{value}",null!=r?r:"")}}(r):l.w(r)?(e=r,function(n,r){return null!=i&&(r=n.value-i),e(l_(t,n),r,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function l_(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function u_(t){var e=t.get("interval");return null==e?"auto":e}function c_(t){return"category"===t.type&&0===u_(t.getLabelModel())}function h_(t,e){var n={};return l.k(t.mapDimensionsAll(e),(function(e){n[fm(t,e)]=!0})),l.F(n)}var p_=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return l.H(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),l.n(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),f_=["x","y"];function d_(t){return"interval"===t.type||"time"===t.type}var g_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=f_,e}return a(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(d_(t)&&d_(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,h=i[1]-r[0]*u,p=this._transform=[l,0,0,u,c,h];this._invTransform=rt([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),r=this.dataToPoint(e),i=this.getArea(),o=new ft(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return S(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return S(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),r=Math.min(e[0],e[1]),i=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-r;return new ft(n,r,i,o)},e}(p_),v_=lr();function y_(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=b_(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=s_(t);return{labels:l.H(e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function m_(t,e){return"category"===t.type?function(t,e){var n,r,i=x_(t,"ticks"),o=u_(e),a=__(i,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(l.w(o))n=M_(t,o,!0);else if("auto"===o){var s=b_(t,t.getLabelModel());r=s.labelCategoryInterval,n=l.H(s.labels,(function(t){return t.tickValue}))}else n=S_(t,r=o,!0);return w_(i,o,{ticks:n,tickCategoryInterval:r})}(t,e):{ticks:l.H(t.scale.getTicks(),(function(t){return t.value}))}}function b_(t,e){var n,r,i=x_(t,"labels"),o=u_(e),a=__(i,o);return a||(l.w(o)?n=M_(t,o):(r="auto"===o?function(t){var e=v_(t).autoInterval;return null!=e?e:v_(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=S_(t,r)),w_(i,o,{labels:n,labelCategoryInterval:r}))}function x_(t,e){return v_(t)[e]||(v_(t)[e]=[])}function __(t,e){for(var n=0;n1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=c_(t),p=a.get("showMinLabel")||h,f=a.get("showMaxLabel")||h;p&&u!==o[0]&&g(o[0]);for(var d=u;d<=o[1];d+=l)g(d);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return f&&d-l!==o[1]&&g(o[1]),s}function M_(t,e,n){var r=t.scale,i=s_(t),o=[];return l.k(r.getTicks(),(function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),o}var O_=[0,1];function C_(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var I_=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return jn(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&C_(n=n.slice(),r.count()),An(t,O_,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&C_(n=n.slice(),r.count());var i=An(t,n,O_,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=m_(this,e).ticks,r=Object(l.H)(n,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,r){var i=e.length;if(!t.onBand||n||!i)return;var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var u=e[i-1].tickValue-e[0].tickValue,c=(e[i-1].coord-e[0].coord)/u;Object(l.k)(e,(function(t){t.coord-=c/2}));var h=t.scale.getExtent();a=1+h[1]-e[i-1].tickValue,o={coord:e[i-1].coord+c*a},e.push(o)}var p=s[0]>s[1];f(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift());r&&f(s[0],e[0].coord)&&e.unshift({coord:s[0]});f(s[1],o.coord)&&(r?o.coord=s[1]:e.pop());r&&f(o.coord,s[1])&&e.push({coord:s[1]});function f(t,e){return t=Dn(t),e=Dn(e),p?t>e:t0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return Object(l.H)(e,(function(t){return Object(l.H)(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return y_(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=s_(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),p=0,f=0;l<=o[1];l+=s){var d,g,v=ln(n({value:l}),e.font,"center","top");d=1.3*v.width,g=1.3*v.height,p=Math.max(p,d,7),f=Math.max(f,g,7)}var y=p/c,m=f/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var b=Math.max(0,Math.floor(Math.min(y,m))),x=v_(t.model),_=t.getExtent(),w=x.lastAutoInterval,S=x.lastTickCount;return null!=w&&null!=S&&Math.abs(w-b)<=1&&Math.abs(S-a)<=1&&w>b&&x.axisExtent0===_[0]&&x.axisExtent1===_[1]?b=w:(x.lastTickCount=a,x.lastAutoInterval=b,x.axisExtent0=_[0],x.axisExtent1=_[1]),b}(this)},t}(),k_=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return a(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(I_);function A_(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,u=a?"onZero":s,c=i.dim,h=r.getRect(),p=[h.x,h.x+h.width,h.y,h.y+h.height],f={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,g="x"===c?[p[2]-d,p[3]+d]:[p[0]-d,p[1]+d];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));g[f.onZero]=Math.max(Math.min(v,g[1]),g[0])}o.position=["y"===c?g[f[u]]:p[0],"x"===c?g[f[u]]:p[3]],o.rotation=Math.PI/2*("x"===c?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?g[f[s]]-g[f.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),l.O(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===u?-y:y,o.z2=1,o}function T_(t){return"cartesian2d"===t.get("coordinateSystem")}function D_(t){var e={xAxisModel:null,yAxisModel:null};return l.k(e,(function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,pr).models[0];e[r]=o})),e}var P_=Math.log;function L_(t,e,n){var r=Px.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=i_(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var p=P_(t.base);u=[P_(u[0])/p,P_(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var f=r.getExtent.call(t);c&&(u[0]=f[0]),h&&(u[1]=f[1]);var d=r.getInterval.call(t),g=u[0],v=u[1];if(c&&h)d=(v-g)/a;else if(c)for(v=u[0]+d*a;vu[0]&&isFinite(g)&&isFinite(u[0]);)d=wx(d),g=u[1]-d*a;else{t.getTicks().length-1>a&&(d=wx(d));var y=d*a;(g=Dn((v=Math.ceil(u[1]/d)*d)-y))<0&&u[0]>=0?(g=0,v=Dn(y)):v>0&&u[1]<=0&&(v=0,g=-Dn(y))}var m=(i[0].value-o[0].value)/s,b=(i[a].value-o[a].value)/s;r.setExtent.call(t,g+d*m,v+d*b),r.setInterval.call(t,d),(m||b)&&r.setNiceExtent.call(t,g+d,v-d)}function j_(t,e){return t.getCoordSysModel()===e}function E_(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)R_(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&R_(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(t){return t.dim+"_"+t.index}}function R_(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}(t)}var N_=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=f_,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=Object(l.F)(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=t[+n[o]],s=a.model,u=a.scale;xx(u)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(o_(u,s),xx(u)&&(e=a))}i.length&&(e||o_((e=i.pop()).scale,e.model),Object(l.k)(i,(function(t){L_(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};Object(l.k)(n.x,(function(t){E_(n,"y",t,i)})),Object(l.k)(n.y,(function(t){E_(n,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=rl(r,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(l.k)(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),function(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}(t,e?o.x:o.y)}))}s(),i&&(Object(l.k)(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();i=n instanceof Ax?n.count():(r=n.getTicks()).length;var a,s,l,u,c,h,p,f,d=t.getLabelModel(),g=s_(t),v=1;i>40&&(v=Math.ceil(i/40));for(var y=0;y0?"top":"bottom",r="center"):zn(o-z_)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),V_={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],u=[o[1],0],c=s[0]>u[0];a&&(S(s,s,a),S(u,u,a));var h=Object(l.m)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new $h({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:h,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});kp(p.shape,p.style.lineWidth),p.anid="line",n.add(p);var f=e.get(["axisLine","symbol"]);if(null!=f){var d=e.get(["axisLine","symbolSize"]);Object(l.C)(f)&&(f=[f,f]),(Object(l.C)(d)||Object(l.z)(d))&&(d=[d,d]);var g=ld(e.get(["axisLine","symbolOffset"])||0,d),v=d[0],y=d[1];Object(l.k)([{rotate:t.rotation+Math.PI/2,offset:g[0],r:0},{rotate:t.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],(function(e,r){if("none"!==f[r]&&null!=f[r]){var i=ad(f[r],-v/2,-y/2,v,y,h.stroke,!0),o=e.r+e.offset,a=c?u:s;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=function(t,e,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick"));if(!a||i.scale.isBlank())return;for(var s=o.getModel("lineStyle"),u=r.tickDirection*o.get("length"),c=W_(i.getTicksCoords(),e.transform,u,Object(l.i)(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;hp[1]?-1:1,d=["start"===s?p[0]-f*h:"end"===s?p[1]+f*h:(p[0]+p[1])/2,H_(s)?t.labelOffset+u*h:0],g=e.get("nameRotate");null!=g&&(g=g*z_/180),H_(s)?o=B_.innerTextLayout(t.rotation,null!=g?g:t.rotation,u):(o=function(t,e,n,r){var i,o,a=Nn(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;zn(a-z_/2)?(o=l?"bottom":"top",i="center"):zn(a-1.5*z_)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*z_&&a>z_/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(t.rotation,s,g||0,p),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var v=c.getFont(),y=e.get("nameTruncate",!0)||{},m=y.ellipsis,b=Object(l.O)(t.nameTruncateMaxWidth,y.maxWidth,a),x=new Po({x:d[0],y:d[1],rotation:o.rotation,silent:B_.isLabelSilent(e),style:Ga(c,{text:i,font:v,overflow:"truncate",width:b,ellipsis:m,fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:c.get("align")||o.textAlign,verticalAlign:c.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Gp({el:x,componentModel:e,itemName:i}),x.__fullText=i,x.anid="name",e.get("triggerEvent")){var _=B_.makeAxisEventDataBase(e);_.targetType="axisName",_.name=i,Lo(x).eventData=_}r.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function F_(t){t&&(t.ignore=!0)}function G_(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=K([]);return et(i,i,-t.rotation),n.applyTransform(J([],i,t.getLocalTransform())),r.applyTransform(J([],i,e.getLocalTransform())),n.intersect(r)}}function H_(t){return"middle"===t||"center"===t}function W_(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l=0||t===e}function X_(t){var e=$_(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=Z_(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var f=a;null!=p.color&&(f=l.i({color:p.color},a));var d=l.I(l.d(p),{boundaryGap:t,splitNumber:e,scale:n,axisLine:r,axisTick:i,axisLabel:o,name:p.text,showName:s,nameLocation:"end",nameGap:c,nameTextStyle:f,triggerEvent:h},!1);if(l.C(u)){var g=d.name;d.name=u.replace("{value}",null!=g?g:"")}else l.w(u)&&(d.name=u(d.name,d));var v=new hs(d,null,this.ecModel);return l.K(v,ax.prototype),v.mainType="radar",v.componentIndex=this.componentIndex,v}),this);this._indicatorModels=p},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:l.I({lineStyle:{color:"#bbb"}},mw.axisLine),axisLabel:bw(mw.axisLabel,!1),axisTick:bw(mw.axisTick,!1),splitLine:bw(mw.splitLine,!0),splitArea:bw(mw.splitArea,!0),indicator:[]},e}(hl),_w=["axisLine","axisTickLabel","axisName"],ww=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),r=l.H(n,(function(t){var n=t.model.get("showName")?t.name:"";return new U_(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));l.k(r,(function(t){l.k(_w,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var r=t.get("shape"),i=t.getModel("splitLine"),o=t.getModel("splitArea"),a=i.getModel("lineStyle"),s=o.getModel("areaStyle"),u=i.get("show"),c=o.get("show"),h=a.get("color"),p=s.get("color"),f=l.t(h)?h:[h],d=l.t(p)?p:[p],g=[],v=[];if("circle"===r)for(var y=n[0].getTicksCoords(),m=e.cx,b=e.cy,x=0;x3?1.4:i>1?1.2:1.1;Aw(this,"zoom","zoomOnMouseWheel",t,{scale:r>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(r);Aw(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(r>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){Iw(this._zr,"globalPan")||Aw(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(k);function Lw(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function jw(t,e,n,r){var i=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Ew,Rw={axisPointer:1,tooltip:1,brush:1};function Nw(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!Rw.hasOwnProperty(r.mainType)&&i&&i.model!==n}function zw(t){Object(l.C)(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var Bw={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Vw=Object(l.F)(Bw),Fw={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Gw=Object(l.F)(Fw),Hw=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=zw(t);this._defsUsePending=[];var r=new Mn;this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),$w(n,r,null,!0,!1);for(var l,u,c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(function(t,e){for(var n=0;n=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=iS(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var p=r;(r=new Mn).add(p),p.scaleX=p.scaleY=u.scale,p.x=u.x,p.y=u.y}return e.ignoreRootClip||null==a||null==s||r.setClipPath(new vo({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},t.prototype._parseNode=function(t,e,n,r,i,o){var a,s=t.nodeName.toLowerCase(),u=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!i){var c=Ew[s];if(c&&Object(l.q)(Ew,s)){a=c.call(this,t,e);var h=t.getAttribute("name");if(h){var p={name:h,namedFrom:null,svgNodeTagLower:s,el:a};n.push(p),"g"===s&&(u=p)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});e.add(a)}}var f=Ww[s];if(f&&Object(l.q)(Ww,s)){var d=f.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=d)}}if(a&&a.isGroup)for(var v=t.firstChild;v;)1===v.nodeType?this._parseNode(v,a,n,u,i,o):3===v.nodeType&&o&&this._parseText(v,a),v=v.nextSibling},t.prototype._parseText=function(t,e){var n=new ro({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});qw(e,n),$w(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",t.style.textBaseline=i}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(Ew={g:function(t,e){var n=new Mn;return qw(e,n),$w(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new vo;return qw(e,n),$w(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new yh;return qw(e,n),$w(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new $h;return qw(e,n),$w(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new xh;return qw(e,n),$w(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,r=t.getAttribute("points");r&&(n=Xw(r));var i=new Gh({shape:{points:n||[]},silent:!0});return qw(e,i),$w(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=Xw(r));var i=new Uh({shape:{points:n||[]},silent:!0});return qw(e,i),$w(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new so;return qw(e,n),$w(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new Mn;return qw(e,a),$w(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new Mn;return qw(e,a),$w(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(t,e){var n=fh(t.getAttribute("d")||"");return qw(e,n),$w(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),Ww={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new ap(e,n,r,i);return Uw(t,o),Yw(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new sp(e,n,r);return Uw(t,i),Yw(t,i),i}};function Uw(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function Yw(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};rS(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function qw(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(l.i)(e.__inheritedStyle,t.__inheritedStyle))}function Xw(t){for(var e=Jw(t),n=[],r=0;r0;o-=2){var a=r[o],s=r[o-1],l=Jw(a);switch(i=i||[1,0,0,1,0,0],s){case"translate":tt(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":nt(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":et(i,i,-parseFloat(l[0])*eS);break;case"skewX":var u=Math.tan(parseFloat(l[0])*eS);J(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*eS);J(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5])}}e.setLocalTransform(i)}}(t,e),rS(t,a,s),r||function(t,e,n){for(var r=0;rn&&(t=i,n=a)}if(t)return function(t){for(var e=0,n=0,r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s>1^-(1&s),l=l>>1^-(1&l),i=s+=i,o=l+=o,r.push([s/n,l/n])}return r}function bS(t,e){return t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var r=e.features;return l.k(r,(function(t){var e=t.geometry,r=e.encodeOffsets,i=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=mS(i,r,n);break;case"Polygon":case"MultiLineString":yS(i,r,n);break;case"MultiPolygon":l.k(i,(function(t,e){return yS(t,r[e],n)}))}})),e.UTF8Encoding=!1,e}(t),l.H(l.n(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new hS(o[0],o.slice(1)));break;case"MultiPolygon":l.k(r.coordinates,(function(t){t[0]&&i.push(new hS(t[0],t.slice(1)))}));break;case"LineString":i.push(new pS([r.coordinates]));break;case"MultiLineString":i.push(new pS(r.coordinates))}var a=new fS(n[e||"name"],i,n.cp);return a.properties=n,a}))}for(var xS=[126,25],_S=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],wS=0;wS<_S.length;wS++)for(var SS=0;SS<_S[wS].length;SS++)_S[wS][SS][0]/=10.5,_S[wS][SS][1]/=-14,_S[wS][SS][0]+=xS[0],_S[wS][SS][1]+=xS[1];var MS={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var OS=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var CS=function(){function t(t,e,n){var r;this.type="geoJSON",this._parsedMap=Object(l.f)(),this._mapName=t,this._specialAreas=n,this._geoJSON=(r=e,Object(l.C)(r)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r)}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var r=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:r,boundingRect:IS(r)})}var i=Object(l.f)(),o=[];return Object(l.k)(n.regions,(function(e){var n=e.name;t&&Object(l.q)(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),i.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new ft(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,r=this._geoJSON;try{e=r?bS(r,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return function(t,e){if("china"===t){for(var n=0;n=0)&&(p=i);var f=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Va(e,Fa(r),{labelFetcher:p,labelDataIndex:h,defaultText:n},f);var d=e.getTextContent();if(d&&(NS(d).ignore=d.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function GS(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):Lo(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function HS(t,e,n,r,i){t.data||Gp({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function WS(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return ma(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var r=Lo(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}(e,i,n),a}function US(t,e,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&r.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),l.k(t,(function(t){s.lineStart();for(var e=0;e0,d={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(d):"geoSVG"===s.resourceType&&this._buildSVG(d),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,r)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=l.f(),n=l.f(),r=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,u=s&&s.stream;function c(t,e){return e&&(t=e(t)),t&&[t[0]*i.scaleX+i.x,t[1]*i.scaleY+i.y]}function h(t){for(var e=[],n=!u&&s&&s.project,r=0;r-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Uc);function $S(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),r=n?"o"+n.id:"i"+t.getMapType();(e[r]=e[r]||[]).push(t)})),l.k(e,(function(t,e){for(var n,r,i,o=(n=l.H(t,(function(t){return t.getData()})),r=t[0].get("mapValueCalculation"),i={},l.k(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var r="ec-"+t.getName(n);i[r]=i[r]||[],isNaN(e)||i[r].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var o,a="ec-"+n[0].getName(e),s=0,l=1/0,u=-1/0,c=i[a].length,h=0;h1?(f.width=p,f.height=p/b):(f.height=p,f.width=p*b),f.y=h[1]-f.height/2,f.x=h[0]-f.width/2;else{var _=t.getBoxLayoutParams();_.aspect=b,f=rl(_,{width:y,height:m})}this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}var aM=new(function(){function t(){this.dimensions=eM}return t.prototype.create=function(t,e){var n=[];function r(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,i){var o=t.get("map"),a=new iM(o+i,o,l.m({nameMap:t.get("nameMap")},r(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=oM,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var i={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}})),l.k(i,(function(t,i){var o=l.H(t,(function(t){return t.get("nameMap")})),a=new iM(i,i,l.m({nameMap:l.J(o)},r(t[0])));a.zoomLimit=l.O.apply(null,l.H(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=oM,a.resize(t[0],e),l.k(t,(function(t){t.coordinateSystem=a,function(t,e){l.k(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,r){for(var i=(t||[]).slice(),o=l.f(),a=0;a=0;){var o=e[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=function(t,e,n,r){if(e){for(var i=t,o=t,a=o.parentNode.children[0],s=e,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=yM(s),o=mM(o),s&&o;){i=yM(i),a=mM(a),i.hierNode.ancestor=t;var p=s.hierNode.prelim+h-o.hierNode.prelim-u+r(s,o);p>0&&(xM(bM(s,t,n),t,p),u+=p,l+=p),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!yM(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),o&&!mM(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function dM(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function gM(t){return arguments.length?t:_M}function vM(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function yM(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function mM(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function bM(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function xM(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function _M(t,e){return t.parentNode===e.parentNode?1:2}var wM=function(){this.parentPoint=[],this.childPoints=[]},SM=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new wM},e.prototype.buildPath=function(t,e){var n=e.childPoints,r=n.length,i=e.parentPoint,o=n[0],a=n[r-1];if(1===r)return t.moveTo(i[0],i[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Tn(e.forkPosition,1),h=[];h[l]=i[l],h[u]=i[u]+(a[u]-i[u])*c,t.moveTo(i[0],i[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var p=1;pb.x)||(_-=Math.PI);var M=w?"left":"right",O=s.getModel("label"),C=O.get("rotate"),I=C*(Math.PI/180),k=y.getTextContent();k&&(y.setTextConfig({position:O.get("position")||M,rotation:null==C?-_:I,origin:"center"}),k.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),T="relative"===A?l.e(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():null;T&&(Lo(n).focus=T),function(t,e,n,r,i,o,a,s){var u=e.getModel(),c=t.get("edgeShape"),h=t.get("layout"),p=t.getOrient(),f=t.get(["lineStyle","curveness"]),d=t.get("edgeForkPosition"),g=u.getModel("lineStyle").getLineStyle(),v=r.__edge;if("curve"===c)e.parentNode&&e.parentNode!==n&&(v||(v=r.__edge=new tp({shape:AM(h,p,f,i,i)})),Ta(v,{shape:AM(h,p,f,o,a)},t));else if("polyline"===c)if("orthogonal"===h){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,m=[],b=0;be&&(e=r.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,r=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var r=n.getData().tree.root,i=t.targetNode;if(l.C(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=t.targetNodeId;if(null!=o&&(i=r.getNodeById(o)))return{node:i}}}function HM(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function WM(t,e){var n=HM(t);return l.r(n,e)>=0}function UM(t,e){for(var n=[];t;){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}var YM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return a(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},r=new hs(n,this,this.ecModel),i=FM.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=r),t}))}));var o=0;i.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return i.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a})),i.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var r=this.getData().tree,i=r.root.children[0],o=r.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==i;)s=o.parentNode.name+"."+s,o=o.parentNode;return Sc("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=UM(r,this),n.collapsed=!r.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Uc);function qM(t,e){for(var n,r=[t];n=r.pop();)if(e(n),n.isExpand){var i=n.children;if(i.length)for(var o=i.length-1;o>=0;o--)r.push(i[o])}}function XM(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=function(t,e){return rl(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var r=t.get("layout"),i=0,o=0,a=null;"radial"===r?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=gM((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(i=n.width,o=n.height,a=gM());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,r,i=[e];n=i.pop();)if(r=n.children,n.isExpand&&r.length)for(var o=r.length-1;o>=0;o--){var a=r[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}}(s),function(t,e,n){for(var r,i=[t],o=[];r=i.pop();)if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;sc.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)}));var p=u===c?1:a(u,c)/2,f=p-u.getLayout().x,d=0,g=0,v=0,y=0;if("radial"===r)d=i/(c.getLayout().x+p+f),g=o/(h.depth-1||1),qM(l,(function(t){v=(t.getLayout().x+f)*d,y=(t.depth-1)*g;var e=vM(v,y);t.setLayout({x:e.x,y:e.y,rawX:v,rawY:y},!0)}));else{var m=t.getOrient();"RL"===m||"LR"===m?(g=o/(c.getLayout().x+p+f),d=i/(h.depth-1||1),qM(l,(function(t){y=(t.getLayout().x+f)*g,v="LR"===m?(t.depth-1)*d:i-(t.depth-1)*d,t.setLayout({x:v,y:y},!0)}))):"TB"!==m&&"BT"!==m||(d=i/(c.getLayout().x+p+f),g=o/(h.depth-1||1),qM(l,(function(t){v=(t.getLayout().x+f)*d,y="TB"===m?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:v,y:y},!0)})))}}}(t,e)}))}function $M(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle(),r=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(l.m)(r,n)}))}))}var ZM=["treemapZoomToNode","treemapRender","treemapMove"];function KM(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var r=e;r&&r.depth>1;)r=r.parentNode;var i=Al(t.ecModel,r.name||r.dataIndex+"",n);e.setVisual("decal",i)}))}var QM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return a(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;l.k(e.children,(function(e){t(e);var r=e.value;l.t(r)&&(r=r[0]),n+=r}));var r=e.value;l.t(r)&&(r=r[0]);(null==r||isNaN(r))&&(r=n);r<0&&(r=0);l.t(e.value)?e.value[0]=r:e.value=r}(n);var r=t.levels||[],i=this.designatedVisualItemStyle={},o=new hs({itemStyle:i},this,e);r=t.levels=function(t,e){var n,r,i=Zn(e.get("color")),o=Zn(e.get(["aria","decal","decals"]));if(!i)return;t=t||[],l.k(t,(function(t){var e=new hs(t),i=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||i&&"none"!==i)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(r=!0)}));var a=t[0]||(t[0]={});n||(a.color=i.slice());!r&&o&&(a.decal=o.slice());return t}(r,e);var a=l.H(r||[],(function(t){return new hs(t,o,e)}),this),s=FM.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),r=n?a[n.depth]:null;return t.parentModel=r||o,t}))}));return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t);return Sc("nameValue",{name:r.getName(t),value:i})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=UM(r,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},l.m(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=l.f(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){KM(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Uc);function JM(t,e,n,r,i,o){var a=[[i?t:t-5,e],[t+n,e],[t+n,e+r],[i?t:t-5,e+r]];return!o&&a.splice(2,0,[t+n+5,e+r/2]),!i&&a.push([t,e+r/2]),a}function tO(t,e,n){Lo(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&UM(n,e)}}var eO=function(){function t(t){this.group=new Mn,t.add(this.group)}return t.prototype.render=function(t,e,n,r){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&n){var a=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(t,c,a,s,l,u,r),il(o,c.pos,c.box)}},t.prototype._prepare=function(t,e,n){for(var r=t;r;r=r.parentNode){var i=ir(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:r,text:i,width:a})}},t.prototype._renderContent=function(t,e,n,r,i,o,a){for(var s,u,c,h,p,f,d,g,v,y=0,m=e.emptyItemWidth,b=t.get(["breadcrumb","height"]),x=(s=e.pos,u=e.box,h=u.width,p=u.height,f=Tn(s.left,h),d=Tn(s.top,p),g=Tn(s.right,h),v=Tn(s.bottom,p),(isNaN(f)||isNaN(parseFloat(s.left)))&&(f=0),(isNaN(g)||isNaN(parseFloat(s.right)))&&(g=h),(isNaN(d)||isNaN(parseFloat(s.top)))&&(d=0),(isNaN(v)||isNaN(parseFloat(s.bottom)))&&(v=p),c=Us(c||0),{width:Math.max(g-f-c[1]-c[3],0),height:Math.max(v-d-c[0]-c[2],0)}),_=e.totalWidth,w=e.renderList,S=r.getModel("itemStyle").getItemStyle(),M=w.length-1;M>=0;M--){var O=w[M],C=O.node,I=O.width,k=O.text;_>x.width&&(_-=I-m,I=m,k=null);var A=new Gh({shape:{points:JM(y,0,I,b,M===w.length-1,0===M)},style:Object(l.i)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Po({style:Ga(i,{text:k})}),textConfig:{position:"inside"},z2:1e5,onclick:Object(l.h)(a,C)});A.disableLabelAnimation=!0,A.getTextContent().ensureState("emphasis").style=Ga(o,{text:k}),A.ensureState("emphasis").style=S,ma(A,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(A),tO(A,t,C),y+=I+8}},t.prototype.remove=function(){this.group.removeAll()},t}(),nO=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,r,i){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:r,easing:i}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},r=0,i=this._storage.length;r3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;var o=new ft(i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];tt(s,s,[-(e-=a.x),-(n-=a.y)]),nt(s,s,[t.scale,t.scale]),tt(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var r=e.findTarget(t.offsetX,t.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)e._rootToNode(r);else if("zoomToNode"===n)e._zoomToNode(r);else if("link"===n){var o=i.hostTree.data.getItemModel(i.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Ks(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var r=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new eO(this.group))).render(t,e,n.node,(function(e){"animating"!==r._state&&(WM(t.getViewRoot(),e)?r._rootToNode({node:e}):r._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var o=i.transformCoordToLocal(t,e),a=i.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:r,offsetX:o[0],offsetY:o[1]}}}),this),n},e.type="treemap",e}(Jp),uO=l.k,cO=l.A,hO=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=l.d(e);this.type=r,this.mappingMethod=n,this._normalizeData=_O[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(pO(i),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,l.k(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(i)):"category"===n?i.categories?function(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(uO(e,(function(t,e){n[t]=e})),!l.t(r)){var i=[];l.A(r)?uO(r,(function(t,e){var r=n[e];i[null!=r?r:-1]=t})):i[-1]=r,r=xO(t,i)}for(var o=e.length-1;o>=0;o--)null==r[o]&&(delete n[e[o]],e.pop())}(i):pO(i,!0):(l.b("linear"!==n||i.dataExtent),pO(i))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return l.c(this._normalizeData,this)},t.listVisualTypes=function(){return l.F(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){l.A(t)?l.k(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,r){var i,o=l.t(e)?[]:l.A(e)?{}:(i=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(r,t,e);i?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,r={};return e&&uO(t.visualHandlers,(function(t,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)})),n?r:null},t.prepareVisualTypes=function(t){if(l.t(t))t=t.slice();else{if(!cO(t))return[];var e=[];uO(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var r,i=1/0,o=0,a=e.length;ou[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var p=new SO(h);return MO(p).drColorMappingBy=c,p}(0,o,a,0,h,g);Object(l.k)(g,(function(e,n){if(e.depth>=r.length||e===r[e.depth]){var a=function(t,e,n,r,i,o){var a=Object(l.m)({},e);if(i){var s=i.type,u="color"===s&&MO(i).drColorMappingBy,c="index"===u?r:"id"===u?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=i.mapValueToVisual(c)}return a}(o,h,e,n,v,i);t(e,a,r,i)}}))}else u=CO(h),p.fill=u}(e,{},t.getViewRoot().getAncestors(),t)}};function CO(t){var e=IO(t,"color");if(e){var n=IO(t,"colorAlpha"),r=IO(t,"colorSaturation");return r&&(e=Object(se.f)(e,null,null,r)),n&&(e=Object(se.e)(e,n)),e}}function IO(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function kO(t,e){var n=t.get(e);return Object(l.t)(n)&&n.length?{name:e,range:n}:null}var AO=Math.max,TO=Math.min,DO=l.O,PO=l.k,LO=["itemStyle","borderWidth"],jO=["itemStyle","gapWidth"],EO=["upperLabel","show"],RO=["upperLabel","height"],NO={seriesType:"treemap",reset:function(t,e,n,r){var i=n.getWidth(),o=n.getHeight(),a=t.option,s=rl(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),u=a.size||[],c=Tn(DO(s.width,u[0]),i),h=Tn(DO(s.height,u[1]),o),p=r&&r.type,f=GM(r,["treemapZoomToNode","treemapRootToNode"],t),d="treemapRender"===p||"treemapMove"===p?r.rootRect:null,g=t.getViewRoot(),v=HM(g);if("treemapMove"!==p){var y="treemapZoomToNode"===p?function(t,e,n,r,i){var o,a=(e||{}).node,s=[r,i];if(!a||a===n)return s;var l=r*i,u=l*t.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var c=0,h=o.children,p=0,f=h.length;p9007199254740991&&(u=9007199254740991),a=o}ua[1]&&(a[1]=e)}))):a=[NaN,NaN];return{sum:r,dataExtent:a}}(e,a,s);if(0===c.sum)return t.viewChildren=[];if(c.sum=function(t,e,n,r,i){if(!r)return n;for(var o=t.get("visibleMin"),a=i.length,s=a,l=a-1;l>=0;l--){var u=i["asc"===r?a-l-1:l].getValue();u/n*er&&(r=a));var l=t.area*t.area,u=e*e*n;return l?AO(u*r/l,l/(u*i)):1/0}function BO(t,e,n,r,i){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(i||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,p=t.length;hr&&(r=e);var o=r%2?r+2:r+3;i=[];for(var a=0;a0&&(b[0]=-b[0],b[1]=-b[1]);var _=y[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var w=-Math.atan2(y[1],y[0]);l[0].8?"left":u[0]<-.8?"right":"center",h=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":n.x=-u[0]*f+s[0],n.y=-u[1]*g+s[1],c=u[0]>.8?"right":u[0]<-.8?"left":"center",h=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=f*_+s[0],n.y=s[1]+S,c=y[0]<0?"right":"left",n.originX=-f*_,n.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=x[0],n.y=x[1]+S,c="center",n.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-f*_+l[0],n.y=l[1]+S,c=y[0]>=0?"right":"left",n.originX=f*_,n.originY=-S}n.scaleX=n.scaleY=r,n.setStyle({verticalAlign:n.__verticalAlign||h,align:n.__align||c})}}}function M(t,e){var n=t.__specifiedRotation;if(null==n){var r=o.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else t.attr("rotation",n)}},e}(Mn);function _C(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Fa(e)}}function wC(t){return isNaN(t[0])||isNaN(t[1])}function SC(t){return t&&!wC(t[0])&&!wC(t[1])}var MC=function(){function t(t){this.group=new Mn,this._LineCtor=t||xC}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this.group,r=this._lineData;this._lineData=t,r||n.removeAll();var i=_C(t);t.diff(r).add((function(n){e._doAdd(t,n,i)})).update((function(n,o){e._doUpdate(r,t,o,n,i)})).remove((function(t){n.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=_C(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=t.start;r=0?r+=u:r-=u:d>=0?r-=u:r+=u}return r}function PC(t,e){var n=[],r=ee,i=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),p=t.getVisual("toSymbol");l.__original||(l.__original=[h(l[0]),h(l[1])],l[2]&&l.__original.push(h(l[2])));var g=l.__original;if(null!=l[2]){if(c(i[0],g[0]),c(i[1],g[2]),c(i[2],g[1]),u&&"none"!==u){var v=eC(t.node1),y=DC(i,g[0],v*e);r(i[0][0],i[1][0],i[2][0],y,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],y,n),i[0][1]=n[3],i[1][1]=n[4]}if(p&&"none"!==p){v=eC(t.node2),y=DC(i,g[1],v*e);r(i[0][0],i[1][0],i[2][0],y,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],y,n),i[1][1]=n[1],i[2][1]=n[2]}c(l[0],i[0]),c(l[1],i[2]),c(l[2],i[1])}else{if(c(o[0],g[0]),c(o[1],g[1]),d(a,o[1],o[0]),m(a,a),u&&"none"!==u){v=eC(t.node1);f(o[0],o[0],a,v*e)}if(p&&"none"!==p){v=eC(t.node2);f(o[1],o[1],a,-v*e)}c(l[0],o[0]),c(l[1],o[1])}}))}function LC(t){return"view"===t.type}var jC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(t,e){var n=new Sm,r=new MC,i=this.group;this._controller=new Pw(e.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(LC(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):Ta(s,l,t)}PC(t.getGraph(),tC(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var f=t.get("layout");u.graph.eachNode((function(e){var n=e.dataIndex,i=e.getGraphicEl(),o=e.getModel();if(i){i.off("drag").off("dragend");var a=o.get("draggable");a&&i.on("drag",(function(o){switch(f){case"force":h.warmUp(),!r._layouting&&r._startForceLayoutIteration(h,p),h.setFixed(n),u.setItemLayout(n,[i.x,i.y]);break;case"circular":u.setItemLayout(n,[i.x,i.y]),e.setLayout({fixed:!0},!0),iC(t,"symbolSize",e,[o.offsetX,o.offsetY]),r.updateLayout(t);break;case"none":default:u.setItemLayout(n,[i.x,i.y]),QO(t.getGraph(),t),r.updateLayout(t)}})).on("dragend",(function(){h&&h.setUnfixed(n)})),i.setDraggable(a&&!!h,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(Lo(i).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Lo(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var d="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),v=u.getLayout("cy");u.graph.eachNode((function(t){aC(t,d,g,v)})),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;!function r(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(r,16):r())}))}()},e.prototype._updateController=function(t,e,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(e,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!Nw(e,n,t)})),LC(t.coordinateSystem)?(i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){Lw(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){jw(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),r._updateNodeAndLinkScale(),PC(t.getGraph(),tC(t)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=tC(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){PC(t.getGraph(),tC(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Jp);function EC(t){return"_EC_"+t}var RC=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[EC(t)]){var r=new NC(t,e);return r.hostGraph=this,this.nodes.push(r),n[EC(t)]=r,r}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[EC(t)]},t.prototype.addEdge=function(t,e,n){var r=this._nodesMap,i=this._edgesMap;if(l.z(t)&&(t=this.nodes[t]),l.z(e)&&(e=this.nodes[e]),t instanceof NC||(t=r[EC(t)]),e instanceof NC||(e=r[EC(e)]),t&&e){var o=t.id+"-"+e.id,a=new zC(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),i[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof NC&&(t=t.id),e instanceof NC&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,r=n.length,i=0;i=0&&t.call(e,n[i],i)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,r=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},t.prototype.breadthFirstTraverse=function(t,e,n,r){if(e instanceof NC||(e=this._nodesMap[EC(e)]),e){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}l.K(NC,BC("hostGraph","data")),l.K(zC,BC("hostGraph","edgeData"));var VC=RC;function FC(t,e,n,r,i){for(var o=new VC(r),a=0;a "+f)),c++)}var d,g=n.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)d=dm(t,n);else{var v=Wl.get(g),y=v&&v.dimensions||[];l.r(y,"value")<0&&y.concat(["value"]);var m=am(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;(d=new om(m,n)).initData(t)}var b=new om(["value"],n);return b.initData(u,s),i&&i(d,b),BM({mainData:d,struct:o,structAttr:"graph",datas:{node:d,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var GC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return a(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new Qb(r,r),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Kn(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,r=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&r){UO(n=this)&&(n.__curvenessList=[],n.__edgeMap={},YO(n));var a=FC(i,r,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=hs.prototype.getModel;function r(t,e){var r=n.call(this,t,e);return r.resolveParentPath=i,r}function i(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=i,t.getModel=r,t}))}));return l.k(a.edges,(function(t){!function(t,e,n,r){if(UO(n)){var i=qO(t,e,n),o=n.__edgeMap,a=o[XO(i)];o[i]&&!a?o[i].isForward=!0:a&&o[i]&&(a.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(r)}}(t.node1,t.node2,this,t.dataIndex)}),this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(t,n),o=r.graph.getEdgeByIndex(t),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Sc("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}return jc({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=l.H(this.option.categories||[],(function(t){return null!=t.value?t:l.m({value:0},t)})),e=new om(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Uc),HC={type:"graphRoam",event:"graphRoam",update:"none"};var WC=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},UC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return a(e,t),e.prototype.getDefaultShape=function(){return new WC},e.prototype.buildPath=function(t,e){var n=Math.cos,r=Math.sin,i=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=i/3?1:2),l=e.y-r(a)*o*(o>=i/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+r(a)*o),t.lineTo(e.x+n(e.angle)*i,e.y+r(e.angle)*i),t.lineTo(e.x-n(a)*o,e.y-r(a)*o),t.lineTo(s,l)},e}(to);function YC(t,e){var n=null==t?"":t+"";return e&&(Object(l.C)(e)?n=e.replace("{value}",n):Object(l.w)(e)&&(n=e(t))),n}var qC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var r=t.get(["axisLine","lineStyle","color"]),i=function(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i);return{cx:Tn(n[0],e.getWidth()),cy:Tn(n[1],e.getHeight()),r:Tn(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,r,i),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,r,i){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap")?gb:Eh,h=u.get("show"),p=u.getModel("lineStyle"),f=p.get("width"),d=[s,l];Li(d,!a);for(var g=(l=d[1])-(s=d[0]),v=s,y=0;h&&y=t&&(0===e?0:r[e-1][0])Math.PI/2&&(B+=Math.PI):"tangential"===z?B=-O-Math.PI/2:Object(l.z)(z)&&(B=z*Math.PI/180),0===B?p.add(new Po({style:Ga(x,{text:j,x:R,y:N,verticalAlign:h<-.8?"top":h>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:E}),silent:!0})):p.add(new Po({style:Ga(x,{text:j,x:R,y:N,verticalAlign:"middle",align:"center"},{inheritColor:E}),silent:!0,originX:R,originY:N,rotation:B}))}if(b.get("show")&&D!==_){L=(L=b.get("distance"))?L+u:u;for(var V=0;V<=w;V++){c=Math.cos(O),h=Math.sin(O);var F=new $h({shape:{x1:c*(g-L)+f,y1:h*(g-L)+d,x2:c*(g-M-L)+f,y2:h*(g-M-L)+d},silent:!0,style:A});"auto"===A.stroke&&F.setStyle({stroke:r((D+V/w)/_)}),p.add(F),O+=I}O-=I}else O+=C}},e.prototype._renderPointer=function(t,e,n,r,i,o,a,s,u){var c=this.group,h=this._data,p=this._progressEls,f=[],d=t.get(["pointer","show"]),g=t.getModel("progress"),v=g.get("show"),y=t.getData(),m=y.mapDimension("value"),b=+t.get("min"),x=+t.get("max"),_=[b,x],w=[o,a];function S(e,n){var r,o=y.getItemModel(e).getModel("pointer"),a=Tn(o.get("width"),i.r),s=Tn(o.get("length"),i.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),c=Tn(u[0],i.r),h=Tn(u[1],i.r),p=o.get("keepAspect");return(r=l?ad(l,c-a/2,h-s,a,s,null,p):new UC({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:h}})).rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function M(t,e){var n=g.get("roundCap")?gb:Eh,r=g.get("overlap"),a=r?g.get("width"):u/y.count(),l=r?i.r-a:i.r-(t+1)*a,c=r?i.r:i.r-t*a,h=new n({shape:{startAngle:o,endAngle:e,cx:i.cx,cy:i.cy,clockwise:s,r0:l,r:c}});return r&&(h.z2=x-y.get(m,t)%x),h}(v||d)&&(y.diff(h).add((function(e){var n=y.get(m,e);if(d){var r=S(e,o);Da(r,{rotation:-((isNaN(+n)?w[0]:An(n,_,w,!0))+Math.PI/2)},t),c.add(r),y.setItemGraphicEl(e,r)}if(v){var i=M(e,o),a=g.get("clip");Da(i,{shape:{endAngle:An(n,_,w,a)}},t),c.add(i),jo(t.seriesIndex,y.dataType,e,i),f[e]=i}})).update((function(e,n){var r=y.get(m,e);if(d){var i=h.getItemGraphicEl(n),a=i?i.rotation:o,s=S(e,a);s.rotation=a,Ta(s,{rotation:-((isNaN(+r)?w[0]:An(r,_,w,!0))+Math.PI/2)},t),c.add(s),y.setItemGraphicEl(e,s)}if(v){var l=p[n],u=M(e,l?l.shape.endAngle:o),b=g.get("clip");Ta(u,{shape:{endAngle:An(r,_,w,b)}},t),c.add(u),jo(t.seriesIndex,y.dataType,e,u),f[e]=u}})).execute(),y.each((function(t){var e=y.getItemModel(t),n=e.getModel("emphasis"),i=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(d){var s=y.getItemGraphicEl(t),u=y.getItemVisual(t,"style"),c=u.fill;if(s instanceof so){var h=s.style;s.useStyle(Object(l.m)({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},u))}else s.useStyle(u),"pointer"!==s.type&&s.setColor(c);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r(An(y.get(m,t),_,[0,1],!0))),s.z2EmphasisLift=0,wa(s,e),ma(s,i,o,a)}if(v){var p=f[t];p.useStyle(y.getItemVisual(t,"style")),p.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),p.z2EmphasisLift=0,wa(p,e),ma(p,i,o,a)}})),this._progressEls=f)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var r=n.get("size"),i=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=ad(i,e.cx-r/2+Tn(o[0],e.r),e.cy-r/2+Tn(o[1],e.r),r,r,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,r,i){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new Mn,h=[],p=[],f=t.isAnimationEnabled(),d=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new Po({silent:!0}),p[t]=new Po({silent:!0})})).update((function(t,e){h[t]=o._titleEls[e],p[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new Mn,v=r(An(o,[l,u],[0,1],!0)),y=n.getModel("title");if(y.get("show")){var m=y.get("offsetCenter"),b=i.cx+Tn(m[0],i.r),x=i.cy+Tn(m[1],i.r);(k=h[e]).attr({z2:d?0:2,style:Ga(y,{x:b,y:x,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:v})}),g.add(k)}var _=n.getModel("detail");if(_.get("show")){var w=_.get("offsetCenter"),S=i.cx+Tn(w[0],i.r),M=i.cy+Tn(w[1],i.r),O=Tn(_.get("width"),i.r),C=Tn(_.get("height"),i.r),I=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:v,k=p[e],A=_.get("formatter");k.attr({z2:d?0:2,style:Ga(_,{x:S,y:M,text:YC(o,A),width:isNaN(O)?null:O,height:isNaN(C)?null:C,align:"center",verticalAlign:"middle"},{inheritColor:I})}),Za(k,{normal:_},o,(function(t){return YC(t,A)})),f&&Ka(k,e,a,t,{getFormattedLabel:function(t,e,n,r,i,a){return YC(a?a.interpolatedValue:o,A)}}),g.add(k)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(Jp),XC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return a(e,t),e.prototype.getInitialData=function(t,e){return Kb(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Uc);var $C=["itemStyle","opacity"],ZC=function(t){function e(e,n){var r=t.call(this)||this,i=r,o=new Uh,a=new Po;return i.setTextContent(a),r.setTextGuideLine(o),r.updateData(e,n,!0),r}return a(e,t),e.prototype.updateData=function(t,e,n){var r=t.hostModel,i=t.getItemModel(e),o=t.getItemLayout(e),a=i.getModel("emphasis"),s=i.get($C);s=null==s?1:s,n||Ra(this),this.useStyle(t.getItemVisual(e,"style")),this.style.lineJoin="round",n?(this.setShape({points:o.points}),this.style.opacity=0,Da(this,{style:{opacity:s}},r,e)):Ta(this,{style:{opacity:s},shape:{points:o.points}},r,e),wa(this,i),this._updateLabel(t,e),ma(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this.getTextGuideLine(),r=this.getTextContent(),i=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,"style"),l=s.fill;Va(r,Fa(o),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:s.opacity,defaultText:t.getName(e)},{normal:{align:a.textAlign,verticalAlign:a.verticalAlign}}),this.setTextConfig({local:!0,inside:!!a.inside,insideStroke:l,outsideFill:l});var u=a.linePoints;n.setShape({points:u}),this.textGuideLineConfig={anchor:u?new it(u[0][0],u[0][1]):null},Ta(r,{style:{x:a.x,y:a.y}},i,e),r.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),hv(this,pv(o),{stroke:l})},e}(Gh),KC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return a(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._data,o=this.group;r.diff(i).add((function(t){var e=new ZC(r,t);r.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=i.getItemGraphicEl(e);n.updateData(r,t),o.add(n),r.setItemGraphicEl(t,n)})).remove((function(e){Ea(i.getItemGraphicEl(e),t,e)})).execute(),this._data=r},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Jp),QC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Qb(l.c(this.getData,this),l.c(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return Kb(this,{coordDimensions:["value"],encodeDefaulter:l.h(_l,this)})},e.prototype._defaultLabelLine=function(t){Kn(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),r=t.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),o=n.getSum(i);return r.percent=o?+(n.get(i,e)/o*100).toFixed(2):0,r.$vars.push("percent"),r},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Uc);function JC(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),r=n.mapDimension("value"),i=t.get("sort"),o=function(t,e){return rl(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,u=o.height,c=function(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,(function(t){return t})),i=[],o="ascending"===e,a=0,s=t.count();a5)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&pI(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function pI(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var fI=cI,dI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&l.I(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){l.k(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=l.n(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);l.k(n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(hl),gI=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.type=i||"value",a.axisIndex=o,a}return a(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(I_);function vI(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0];if(null!=i&&(i=mI(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(e[1]-e[0]);s=mI(s,[0,a]),i=o=mI(s,[i,o]),r=0}e[0]=mI(e[0],n),e[1]=mI(e[1],n);var l=yI(e,r);e[r]+=t;var u,c=i||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[r]=mI(e[r],h),u=yI(e,r),null!=i&&(u.sign!==l.sign||u.spano&&(e[1-r]=e[r]+u.sign*o),e}function yI(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function mI(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var bI=l.k,xI=Math.min,_I=Math.max,wI=Math.floor,SI=Math.ceil,MI=Dn,OI=Math.PI;function CI(t,e){return xI(_I(t,e[0]),e[1])}function II(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function kI(t,e){var n,r,i=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t=n&&o<=n+e.axisLength&&a>=r&&a<=r+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var r=n.getData();bI(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(r,r.mapDimension(t)),o_(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=rl(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],l=[0,s],u=this.dimensions.length,c=CI(e.get("axisExpandWidth"),l),h=CI(e.get("axisExpandCount")||0,[0,u]),p=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,f=e.get("axisExpandWindow");f?(t=CI(f[1]-f[0],l),f[1]=f[0]+t):(t=CI(c*(h-1),l),(f=[c*(e.get("axisExpandCenter")||wI(u/2))-t/2])[1]=f[0]+t);var d=(s-t)/(u-h);d<3&&(d=0);var g=[wI(MI(f[0]/c,1))+1,SI(MI(f[1]/c,1))-1],v=d/c*f[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:p,axisExpandWidth:c,axisCollapseWidth:d,axisExpandWindow:f,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:v}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;e.each((function(t){var e=[0,r.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),bI(n,(function(e,n){var o=(r.axisExpandable?kI:II)(n,r),a={horizontal:{x:o.position,y:r.axisLength},vertical:{x:0,y:o.position}},s={horizontal:OI/2,vertical:0},l=[a[i].x+t.x,a[i].y+t.y],u=s[i],c=[1,0,0,1,0,0];et(c,c,u),tt(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,r){null==n&&(n=0),null==r&&(r=t.count());var i=this._axesMap,o=this.dimensions,a=[],s=[];l.k(o,(function(e){a.push(t.mapDimension(e)),s.push(i.get(e).model)}));for(var u=this.hasAxisBrushed(),c=n;ci*(1-c[0])?(l="jump",a=s-i*(1-c[2])):(a=s-i*c[1])>=0&&(a=s-i*(1-c[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?vI(a,r,o,"all"):l="none";else{var p=r[1]-r[0];(r=[_I(0,o[1]*s/p-p/2)])[1]=xI(o[1],r[0]+p),r[0]=r[1]-p}return{axisExpandWindow:r,behavior:l}},t}();var TI={create:function(t,e){var n=[];return t.eachComponent("parallel",(function(r,i){var o=new AI(r,t,e);o.name="parallel_"+i,o.resize(r,e),r.coordinateSystem=o,o.model=r,n.push(o)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",pr).models[0];t.coordinateSystem=e.coordinateSystem}})),n}},DI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return a(e,t),e.prototype.getAreaSelectStyle=function(){return Cr([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=l.d(t);if(e)for(var n=e.length-1;n>=0;n--)Pn(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var r=0,i=e.length;r6}(t)||o){if(a&&!o){"single"===s.brushMode&&$I(t);var u=Object(l.d)(s);u.brushType=pk(u.brushType,a),u.panelId=!0===a?null:a.panelId,o=t._creatingCover=FI(t,u),t._covers.push(o)}if(o){var c=gk[pk(t._brushType,a)];o.__brushOption.range=c.getCreatingRange(lk(t,o,t._track)),r&&(GI(t,o),c.updateCommon(t,o)),HI(t,o),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&qI(t,e,n)&&$I(t)&&(i={isEnd:r,removeOnClick:!0});return i}function pk(t,e){return"auto"===t?e.defaultBrushType:t}var fk={mousedown:function(t){if(this._dragging)dk(this,t);else if(!t.target||!t.target.draggable){uk(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=qI(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}(t,e.offsetX,e.offsetY)){var r=t._zr,i=t._covers,o=qI(t,e,n);if(!t._dragging)for(var a=0;a=0&&(o[i[a].depth]=new hs(i[a],this,e));if(r&&n)return FC(r,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getData().getItemLayout(e);if(r){var i=r.depth,o=n.levelModels[i];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(r){var i=r.depth,o=n.levelModels[i];o&&(t.parentModel=o)}return t}))})).data},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function r(t){return isNaN(t)||null==t}if("edge"===n){var i=this.getDataParams(t,n),o=i.data,a=i.value;return Sc("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:r(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return Sc("nameValue",{name:null!=l?l+"":null,value:s,noValue:r(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var r=t.prototype.getDataParams.call(this,e,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(e).getLayout().value;r.value=i}return r},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Uc);function Dk(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),r=t.get("nodeGap"),i=function(t,e){return rl(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=i;var o=i.width,a=i.height,s=t.getGraph(),u=s.nodes,c=s.edges;!function(t){l.k(t,(function(t){var e=Fk(t.outEdges,Vk),n=Fk(t.inEdges,Vk),r=t.getValue()||0,i=Math.max(e,n,r);t.setLayout({value:i},!0)}))}(u),function(t,e,n,r,i,o,a,s,u){(function(t,e,n,r,i,o,a){for(var s=[],u=[],c=[],h=[],p=0,f=0;f=0;m&&y.depth>d&&(d=y.depth),v.setLayout({depth:m?y.depth:p},!0),"vertical"===o?v.setLayout({dy:n},!0):v.setLayout({dx:n},!0);for(var b=0;bp-1?d:p-1;a&&"left"!==a&&function(t,e,n,r){if("right"===e){for(var i=[],o=t,a=0;o.length;){for(var s=0;s0;o--)jk(s,u*=.99,a),Lk(s,i,n,r,a),Gk(s,u,a),Lk(s,i,n,r,a)}(t,e,o,i,r,a,s),function(t,e){var n="vertical"===e?"x":"y";l.k(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),l.k(t,(function(t){var e=0,n=0;l.k(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),l.k(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,s)}(u,c,n,r,o,a,0!==l.n(u,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function Pk(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function Lk(t,e,n,r,i){var o="vertical"===i?"x":"y";l.k(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,c=t.length,h="vertical"===i?"dx":"dy",p=0;p0&&(a=s.getLayout()[o]+l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;if((l=u-e-("vertical"===i?r:n))>0){a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(p=c-2;p>=0;--p)(l=(s=t[p]).getLayout()[o]+s.getLayout()[h]+e-u)>0&&(a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function jk(t,e,n){l.k(t.slice().reverse(),(function(t){l.k(t,(function(t){if(t.outEdges.length){var r=Fk(t.outEdges,Ek,n)/Fk(t.outEdges,Vk);if(isNaN(r)){var i=t.outEdges.length;r=i?Fk(t.outEdges,Rk,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-Bk(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-Bk(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function Ek(t,e){return Bk(t.node2,e)*t.getValue()}function Rk(t,e){return Bk(t.node2,e)}function Nk(t,e){return Bk(t.node1,e)*t.getValue()}function zk(t,e){return Bk(t.node1,e)}function Bk(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Vk(t){return t.getValue()}function Fk(t,e,n){for(var r=0,i=t.length,o=-1;++or&&(r=e)})),l.k(e,(function(e){var i=new SO({type:"color",mappingMethod:"linear",dataExtent:[n,r],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),o=e.getModel().get(["itemStyle","color"]);null!=o?(e.setVisual("color",o),e.setVisual("style",{fill:o})):(e.setVisual("color",i),e.setVisual("style",{fill:i}))}))}}))}var Wk=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,r,i=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=i.getOrdinalMeta(),r=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),r=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c="horizontal"===t.layout?0:1,h=this._baseAxisDim=u[c],p=u[1-c],f=[i,o],d=f[c].get("type"),g=f[1-c].get("type"),v=t.data;if(v&&r){var y=[];l.k(v,(function(t,e){var n;l.t(t)?(n=t.slice(),t.unshift(e)):l.t(t.value)?((n=l.m({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,y.push(n)})),t.data=y}var m=this.defaultValueDimensions,b=[{name:h,type:zy(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:p,type:zy(g),dimsDef:m.slice()}];return Kb(this,{coordDimensions:b,dimensionsCount:m.length+1,encodeDefaulter:l.h(xl,b,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),Uk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return a(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Uc);Object(l.K)(Uk,Wk,!0);var Yk=Uk,qk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===t.get("layout")?1:0;r.diff(o).add((function(t){if(r.hasValue(t)){var e=Zk(r.getItemLayout(t),r,t,a,!0);r.setItemGraphicEl(t,e),i.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var s=r.getItemLayout(t);n?(Ra(n),Kk(s,n,r,t)):n=Zk(s,r,t,a),i.add(n),r.setItemGraphicEl(t,n)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=r},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(Jp),Xk=function(){},$k=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return a(e,t),e.prototype.getDefaultShape=function(){return new Xk},e.prototype.buildPath=function(t,e){var n=e.points,r=0;for(t.moveTo(n[r][0],n[r][1]),r++;r<4;r++)t.lineTo(n[r][0],n[r][1]);for(t.closePath();rv){var _=[m,x];r.push(_)}}}return{boxData:n,outliers:r}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};var iA=["color","borderColor"],oA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){Wp(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,r=this.group,i=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||r.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&uA(s,a))return;var l=lA(a,n,!0);Da(l,{shape:{points:a.ends}},t,n),cA(l,e,n,i),r.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&uA(s,c)?r.remove(u):(u?(Ta(u,{shape:{points:c.ends}},t,a),Ra(u)):u=lA(c,a),cA(u,e,a,i),r.add(u),e.setItemGraphicEl(a,u))}else r.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),dA(t,this.group);var e=t.get("clip",!0)?Bm(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,r=e.getData(),i=r.getLayout("isSimpleBox");null!=(n=t.next());){var o=lA(r.getItemLayout(n),n);cA(o,r,n,i),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){dA(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Jp),aA=function(){},sA=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return a(e,t),e.prototype.getDefaultShape=function(){return new aA},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(to);function lA(t,e,n){var r=t.ends;return new sA({shape:{points:n?hA(r,t):r},z2:100})}function uA(t,e){for(var n=!0,r=0;r0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(iA);e.useStyle(o),e.style.fill=null,e.style.stroke=i}var vA=oA,yA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return a(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var r=e.getItemLayout(t);return r&&n.rect(r.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Uc);Object(l.K)(yA,Wk,!0);var mA=yA;function bA(t){t&&l.t(t.series)&&l.k(t.series,(function(t){l.A(t)&&"k"===t.type&&(t.type="candlestick")}))}var xA=["itemStyle","borderColor"],_A=["itemStyle","borderColor0"],wA=["itemStyle","color"],SA=["itemStyle","color0"],MA={seriesType:"candlestick",plan:Xc(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?wA:SA)}function r(t,e){return e.get(t>0?xA:_A)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var i;null!=(i=t.next());){var o=e.getItemModel(i),a=e.getItemLayout(i).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=r(a,o)||s.fill;var u=e.ensureUniqueItemVisual(i,"style");Object(l.m)(u,s)}}}}};function OA(t,e,n,r,i){return n>r?-1:n0?t.get(i,e-1)<=r?1:-1:1}var CA={seriesType:"candlestick",plan:Xc(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=function(t,e){var n,r=t.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=Tn(Object(l.P)(t.get("barMaxWidth"),i),i),a=Tn(Object(l.P)(t.get("barMinWidth"),1),i),s=t.get("barWidth");return null!=s?Tn(s,i):Math.max(Math.min(i/2,o),a)}(t,n),i=["x","y"],o=n.getDimensionIndex(n.mapDimension(i[0])),a=Object(l.H)(n.mapDimensionsAll(i[1]),n.getDimensionIndex,n),s=a[0],u=a[1],c=a[2],h=a[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(o<0||a.length<4))return{progress:t.pipelineContext.large?function(t,n){var r,i,a=km(4*t.count),l=0,p=[],f=[],d=n.getStore();for(;null!=(i=t.next());){var g=d.get(o,i),v=d.get(s,i),y=d.get(u,i),m=d.get(c,i),b=d.get(h,i);isNaN(g)||isNaN(m)||isNaN(b)?(a[l++]=NaN,l+=3):(a[l++]=OA(d,i,v,y,u),p[0]=g,p[1]=m,r=e.dataToPoint(p,null,f),a[l++]=r?r[0]:NaN,a[l++]=r?r[1]:NaN,p[1]=b,r=e.dataToPoint(p,null,f),a[l++]=r?r[1]:NaN)}n.setLayout("largePoints",a)}:function(t,n){var i,a=n.getStore();for(;null!=(i=t.next());){var l=a.get(o,i),p=a.get(s,i),f=a.get(u,i),d=a.get(c,i),g=a.get(h,i),v=Math.min(p,f),y=Math.max(p,f),m=S(v,l),b=S(y,l),x=S(d,l),_=S(g,l),w=[];M(w,b,0),M(w,m,1),w.push(C(_),C(b),C(x),C(m)),n.setItemLayout(i,{sign:OA(a,i,p,f,u),initBaseline:p>f?b[1]:m[1],ends:w,brushRect:O(d,g,l)})}function S(t,n){var r=[];return r[0]=n,r[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(r)}function M(t,e,n){var i=e.slice(),o=e.slice();i[0]=Tp(i[0]+r/2,1,!1),o[0]=Tp(o[0]-r/2,1,!0),n?t.push(i,o):t.push(o,i)}function O(t,e,n){var i=S(t,n),o=S(e,n);return i[0]-=r/2,o[0]-=r/2,{x:i[0],y:i[1],width:r,height:o[1]-i[1]}}function C(t){return t[0]=Tp(t[0],1),t}}}}};function IA(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var kA=function(t){function e(e,n){var r=t.call(this)||this,i=new bm(e,n),o=new Mn;return r.add(i),r.add(o),r.updateData(e,n),r}return a(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,r=t.rippleNumber,i=this.childAt(1),o=0;o0&&(o=this._getLineLength(r)/u*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){r.stopAnimation();var h=void 0;h=l.w(c)?c(n):c,r.__t>0&&(h=-o*r.__t),this._animateSymbol(r,o,h,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,r,i){if(e>0){t.__t=0;var o=this,a=t.animate("",r).when(i?2*e:e,{__t:i?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));r||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return x(t.__p1,t.__cp1)+x(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,r=t.__cp1,i=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=Qt,l=Jt;o[0]=s(e[0],r[0],n[0],i),o[1]=s(e[1],r[1],n[1],i);var u=t.__t<1?l(e[0],r[0],n[0],i):l(n[0],r[0],e[0],1-i),c=t.__t<1?l(e[1],r[1],n[1],i):l(n[1],r[1],e[1],1-i);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT=0&&!(r[o]<=e);o--);o=Math.min(o,i-2)}else{for(o=a;oe);o++);o=Math.min(o-1,i-2)}var s=(e-r[o])/(r[o+1]-r[o]),l=n[o],u=n[o+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var c=t.__t<1?u[0]-l[0]:l[0]-u[0],h=t.__t<1?u[1]-l[1]:l[1]-u[1];t.rotation=-Math.atan2(h,c)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(DA),jA=function(){this.polyline=!1,this.curveness=0,this.segs=[]},EA=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return a(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new jA},e.prototype.buildPath=function(t,e){var n,r=e.segs,i=e.curveness;if(e.polyline)for(n=this._off;n0){t.moveTo(r[n++],r[n++]);for(var a=1;a0){var h=(s+u)/2-(l-c)*i,p=(l+c)/2-(u-s)*i;t.quadraticCurveTo(h,p,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,r=n.segs,i=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=r[s++],c=r[s++],h=1;h0){if(Ni(u,c,(u+p)/2-(c-f)*i,(c+f)/2-(p-u)*i,p,f,o,t,e))return a}else if(Ei(u,c,p,f,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return t=n[0],e=n[1],r.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,r=1/0,i=-1/0,o=-1/0,a=0;a0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),NA={seriesType:"lines",plan:Xc(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),i.updateData(r);var u=t.get("clip",!0)&&Bm(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData();this._updateLineDraw(r,t).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var r=t.getData(),i=t.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=NA.reset(t,e,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,r=this._showEffect(e),i=!!e.get("polyline"),o=e.pipelineContext.large;return n&&r===this._hasEffet&&i===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new RA:new MC(i?r?LA:PA:r?DA:xC),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(Jp),BA="undefined"==typeof Uint32Array?Array:Uint32Array,VA="undefined"==typeof Float64Array?Array:Float64Array;function FA(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(l.H)(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),Object(l.J)([e,t[0],t[1]])})))}var GA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return a(e,t),e.prototype.init=function(e){e.data=e.data||[],FA(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(FA(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(l.e)(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(l.e)(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],r=this._flatCoordsOffset[2*t+1],i=0;i ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Uc);function HA(t){return t instanceof Array||(t=[t,t]),t}var WA={seriesType:"lines",reset:function(t){var e=HA(t.get("symbol")),n=HA(t.get("symbolSize")),r=t.getData();return r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?function(t,e){var n=t.getItemModel(e),r=HA(n.getShallow("symbol",!0)),i=HA(n.getShallow("symbolSize",!0));r[0]&&t.setItemVisual(e,"fromSymbol",r[0]),r[1]&&t.setItemVisual(e,"toSymbol",r[1]),i[0]&&t.setItemVisual(e,"fromSymbolSize",i[0]),i[1]&&t.setItemVisual(e,"toSymbolSize",i[1])}:null}}};var UA=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=rn.d.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,r,i,o){var a=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),p=t.length;c.width=e,c.height=n;for(var f=0;f0){var O=o(y)?s:l;y>0&&(y=y*S+w),b[x++]=O[M],b[x++]=O[M+1],b[x++]=O[M+2],b[x++]=O[M+3]*y*256}else x+=4}return h.putImageData(m,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=rn.d.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var r=t.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-e,e,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,r=n[e]||(n[e]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,i),r[o++]=i[0],r[o++]=i[1],r[o++]=i[2],r[o++]=i[3];return r},t}();function YA(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var qA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){var r;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(r=e)}))})),this._progressiveEls=null,this.group.removeAll();var i=t.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):YA(i)&&this._renderOnGeo(i,t,r,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,r){var i=e.coordinateSystem;i&&(YA(i)?this.render(e,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,r,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Wp(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,r,i){var o,a,s,l,u=t.coordinateSystem,c=Vm(u,"cartesian2d");if(c){var h=u.getAxis("x"),p=u.getAxis("y");0,o=h.getBandWidth()+.5,a=p.getBandWidth()+.5,s=h.scale.getExtent(),l=p.scale.getExtent()}for(var f=this.group,d=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),v=t.getModel(["blur","itemStyle"]).getItemStyle(),y=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),b=Fa(t),x=t.getModel("emphasis"),_=x.get("focus"),w=x.get("blurScope"),S=x.get("disabled"),M=c?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],O=n;Os[1]||Al[1])continue;var T=u.dataToPoint([k,A]);C=new vo({shape:{x:T[0]-o/2,y:T[1]-a/2,width:o,height:a},style:I})}else{if(isNaN(d.get(M[1],O)))continue;C=new vo({z2:1,shape:u.dataToRect([d.get(M[0],O)]).contentShape,style:I})}if(d.hasItemOption){var D=d.getItemModel(O),P=D.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),v=D.getModel(["blur","itemStyle"]).getItemStyle(),y=D.getModel(["select","itemStyle"]).getItemStyle(),m=D.get(["itemStyle","borderRadius"]),_=P.get("focus"),w=P.get("blurScope"),S=P.get("disabled"),b=Fa(D)}C.shape.r=m;var L=t.getRawValue(O),j="-";L&&null!=L[2]&&(j=L[2]+""),Va(C,b,{labelFetcher:t,labelDataIndex:O,defaultOpacity:I.opacity,defaultText:j}),C.ensureState("emphasis").style=g,C.ensureState("blur").style=v,C.ensureState("select").style=y,ma(C,_,w,S),C.incremental=i,i&&(C.states.emphasis.hoverLayer=!0),f.add(C),d.setItemGraphicEl(O,C),this._progressiveEls&&this._progressiveEls.push(C)}},e.prototype._renderOnGeo=function(t,e,n,r){var i=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new UA;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var u=t.getViewRect().clone(),c=t.getRoamTransform();u.applyTransform(c);var h=Math.max(u.x,0),p=Math.max(u.y,0),f=Math.min(u.width+u.x,r.getWidth()),d=Math.min(u.height+u.y,r.getHeight()),g=f-h,v=d-p,y=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],m=a.mapArray(y,(function(e,n,r){var i=t.dataToPoint([e,n]);return i[0]-=h,i[1]-=p,i.push(r),i})),b=n.getExtent(),x="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(b,n.option.range):function(t,e,n){var r=t[1]-t[0],i=(e=l.H(e,(function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}}))).length,o=0;return function(t){var r;for(r=o;r=0;r--){var a;if((a=e[r].interval)[0]<=t&&t<=a[1]){o=r;break}}return r>=0&&r0?1:-1}(n,o,i,r,p),function(t,e,n,r,i,o,a,s,u,c){var h,p=u.valueDim,f=u.categoryDim,d=Math.abs(n[f.wh]),g=t.getItemVisual(e,"symbolSize");h=l.t(g)?g.slice():null==g?["100%","100%"]:[g,g];h[f.index]=Tn(h[f.index],d),h[p.index]=Tn(h[p.index],r?d:Math.abs(o)),c.symbolSize=h,(c.symbolScale=[h[0]/s,h[1]/s])[p.index]*=(u.isHorizontal?-1:1)*a}(t,e,i,o,0,p.boundingLength,p.pxSign,c,r,p),function(t,e,n,r,i){var o=t.get($A)||0;o&&(KA.attr({scaleX:e[0],scaleY:e[1],rotation:n}),KA.updateTransform(),o/=KA.getLineScale(),o*=e[r.valueDim.index]);i.valueLineWidth=o||0}(n,p.symbolScale,u,r,p);var f=p.symbolSize,d=ld(n.get("symbolOffset"),f);return function(t,e,n,r,i,o,a,s,u,c,h,p){var f=h.categoryDim,d=h.valueDim,g=p.pxSign,v=Math.max(e[d.index]+s,0),y=v;if(r){var m=Math.abs(u),b=l.O(t.get("symbolMargin"),"15%")+"",x=!1;b.lastIndexOf("!")===b.length-1&&(x=!0,b=b.slice(0,b.length-1));var _=Tn(b,e[d.index]),w=Math.max(v+2*_,0),S=x?0:2*_,M=Yn(r),O=M?r:dT((m+S)/w);_=(m-O*v)/2/(x?O:Math.max(O-1,1)),w=v+2*_,S=x?0:2*_,M||"fixed"===r||(O=c?dT((Math.abs(c)+S)/w):0),y=O*w-S,p.repeatTimes=O,p.symbolMargin=_}var C=g*(y/2),I=p.pathPosition=[];I[f.index]=n[f.wh]/2,I[d.index]="start"===a?C:"end"===a?u-C:u/2,o&&(I[0]+=o[0],I[1]+=o[1]);var k=p.bundlePosition=[];k[f.index]=n[f.xy],k[d.index]=n[d.xy];var A=p.barRectShape=l.m({},n);A[d.wh]=g*Math.max(Math.abs(n[d.wh]),Math.abs(I[d.index]+C)),A[f.wh]=n[f.wh];var T=p.clipShape={};T[f.xy]=-n[f.xy],T[f.wh]=h.ecSize[f.wh],T[d.xy]=0,T[d.wh]=n[d.wh]}(n,f,i,o,0,d,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,r,p),p}function JA(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function tT(t){var e=t.symbolPatternSize,n=ad(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function eT(t,e,n,r){var i=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(hT(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c0:r<0)&&(i=u-1-t),e[l.index]=h*(i-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function nT(t,e,n,r){var i=t.__pictorialBundle,o=t.__pictorialMainPath;o?pT(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=t.__pictorialMainPath=tT(n),i.add(o),pT(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function rT(t,e,n){var r=l.m({},e.barRectShape),i=t.__pictorialBarRect;i?pT(i,null,{shape:r},e,n):((i=t.__pictorialBarRect=new vo({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(i))}function iT(t,e,n,i){if(n.symbolClip){var o=t.__pictorialClipPath,a=l.m({},n.clipShape),s=e.valueDim,u=n.animationModel,c=n.dataIndex;if(o)Ta(o,{shape:a},u,c);else{a[s.wh]=0,o=new vo({shape:a}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var h={};h[s.wh]=n.clipShape[s.wh],r[i?"updateProps":"initProps"](o,{shape:h},u,c)}}}function oT(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=aT,n.isAnimationEnabled=sT,n}function aT(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function sT(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function lT(t,e,n,r){var i=new Mn,o=new Mn;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?eT(i,e,n):nT(i,0,n),rT(i,n,r),iT(i,e,n,r),i.__pictorialShapeStr=cT(t,n),i.__pictorialSymbolMeta=n,i}function uT(t,e,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];hT(r,(function(t){o.push(t)})),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),l.k(o,(function(t){La(t,{scaleX:0,scaleY:0},n,e,(function(){r.parent&&r.parent.remove(r)}))})),t.setItemGraphicEl(e,null)}function cT(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function hT(t,e,n){l.k(t.__pictorialBundle.children(),(function(r){r!==t.__pictorialBarRect&&e.call(n,r)}))}function pT(t,e,n,i,o,a){e&&t.attr(e),i.symbolClip&&!o?n&&t.attr(n):n&&r[o?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,a)}function fT(t,e,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),u=i.getModel(["select","itemStyle"]).getItemStyle(),c=i.getShallow("cursor"),h=o.get("focus"),p=o.get("blurScope"),f=o.get("scale");hT(t,(function(t){if(t instanceof so){var e=t.style;t.useStyle(l.m({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var r=t.ensureState("emphasis");r.style=a,f&&(r.scaleX=1.1*t.scaleX,r.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=u,c&&(t.cursor=c),t.z2=n.z2}));var d=e.valueDim.posDesc[+(n.boundingLength>0)];Va(t.__pictorialBarRect,Fa(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:vm(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:d}),ma(t,h,p,o.get("disabled"))}function dT(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var gT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){var r=this.group,i=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:ZA[+s],categoryDim:ZA[1-+s]};return i.diff(o).add((function(t){if(i.hasValue(t)){var e=oT(i,t),n=QA(i,t,e,u),o=lT(i,u,n);i.setItemGraphicEl(t,o),r.add(o),fT(o,u,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var a=oT(i,t),s=QA(i,t,a,u),l=cT(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var r=n.animationModel,i=n.dataIndex;Ta(t.__pictorialBundle,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?eT(t,e,n,!0):nT(t,e,n,!0);rT(t,n,!0),iT(t,e,n,!0)}(n,u,s):n=lT(i,u,s,!0),i.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,r.add(n),fT(n,u,s)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&uT(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=i,this.group},e.prototype.remove=function(t,e){var n=this.group,r=this._data;t.get("animation")?r&&r.eachItemGraphicEl((function(e){uT(r,Lo(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(Jp),vT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return a(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=ds(pb.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(pb);var yT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return a(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this,o=this.group,a=t.getLayerSeries(),s=r.getLayout("layoutInfo"),u=s.rect,c=s.boundaryGap;function h(t){return t.name}o.x=0,o.y=u.y+c[0];var p=new Ey(this._layersSeries||[],a,h,h),f=[];function d(e,n,s){var l=i._layers;if("remove"!==e){for(var u,c,h=[],p=[],d=a[n].indices,g=0;go&&(o=s),r.push(s)}for(var u=0;uo&&(o=h)}return{y0:i,max:o}}(u),h=c.y0,p=n/c.max,f=o.length,d=o[0].indices.length,g=0;gMath.PI/2?"right":"left"):M&&"center"!==M?"left"===M?(b=i.r0+S,a>Math.PI/2&&(M="right")):"right"===M&&(b=i.r-S,a>Math.PI/2&&(M="left")):(b=o===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,M="center"),v.style.align=M,v.style.verticalAlign=g(f,"verticalAlign")||"middle",v.x=b*s+i.cx,v.y=b*u+i.cy;var O=g(f,"rotate"),C=0;"radial"===O?(C=-a)<-Math.PI/2&&(C+=Math.PI):"tangential"===O?(C=Math.PI/2-a)>Math.PI/2?C-=Math.PI:C<-Math.PI/2&&(C+=Math.PI):l.z(O)&&(C=O*Math.PI/180),v.rotation=C})),h.dirtyStyle()},e}(Eh);var wT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n,r){var i=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),u=this.group,c=t.get("renderLabelForZeroData"),h=[];s.eachNode((function(t){h.push(t)}));var p=this._oldChildren||[];!function(r,i){if(0===r.length&&0===i.length)return;function s(t){return t.getId()}function h(s,l){!function(r,i){c||!r||r.getValue()||(r=null);if(r!==a&&i!==a)if(i&&i.piece)r?(i.piece.updateData(!1,r,t,e,n),o.setItemGraphicEl(r.dataIndex,i.piece)):function(t){if(!t)return;t.piece&&(u.remove(t.piece),t.piece=null)}(i);else if(r){var s=new _T(r,t,e,n);u.add(s),o.setItemGraphicEl(r.dataIndex,s)}}(null==s?null:r[s],null==l?null:i[l])}new Ey(i,r,s,s).add(h).update(h).remove(l.h(h,null)).execute()}(h,p),function(r,o){o.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,t,e,n):(i.virtualPiece=new _T(r,t,e,n),u.add(i.virtualPiece)),o.piece.off("click"),i.virtualPiece.on("click",(function(t){i._rootToNode(o.parentNode)}))):i.virtualPiece&&(u.remove(i.virtualPiece),i.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=h},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(r){if(!n&&r.piece&&r.piece===e.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)t._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a)Ks(a,o.get("target",!0)||"_blank")}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var r=t[0]-n.cx,i=t[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(Jp);var ST=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return a(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;l.k(e.children,(function(e){t(e);var r=e.value;l.t(r)&&(r=r[0]),n+=r}));var r=e.value;l.t(r)&&(r=r[0]);(null==r||isNaN(r))&&(r=n);r<0&&(r=0);l.t(e.value)?e.value[0]=r:e.value=r}(n);var r=this._levelModels=l.H(t.levels||[],(function(t){return new hs(t,this,e)}),this),i=FM.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e),o=r[n.depth];return o&&(t.parentModel=o),t}))}));return i.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=UM(r,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){KM(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Uc),MT=Math.PI/180;function OT(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),r=t.get("radius");l.t(r)||(r=[0,r]),l.t(e)||(e=[e,e]);var i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o),s=Tn(e[0],i),u=Tn(e[1],o),c=Tn(r[0],a/2),h=Tn(r[1],a/2),p=-t.get("startAngle")*MT,f=t.get("minAngle")*MT,d=t.getData().tree.root,g=t.getViewRoot(),v=g.depth,y=t.get("sort");null!=y&&function t(e,n){var r=e.children||[];e.children=function(t,e){if(l.w(e)){var n=l.H(t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),l.H(n,(function(e){return t[e.index]}))}var r="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(r?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(r?-1:1):n}))}(r,n),r.length&&l.k(e.children,(function(e){t(e,n)}))}(g,y);var m=0;l.k(g.children,(function(t){!isNaN(t.getValue())&&m++}));var b=g.getValue(),x=Math.PI/(b||m)*2,_=g.depth>0,w=g.height-(_?-1:1),S=(h-c)/(w||1),M=t.get("clockwise"),O=t.get("stillShowZeroSum"),C=M?1:-1,I=function(e,n){if(e){var r=n;if(e!==d){var i=e.getValue(),o=0===b&&O?x:i*x;o1;)i=i.parentNode;var o=n.getColorFromPalette(i.name||i.dataIndex+"",e);return t.depth>1&&Object(l.C)(o)&&(o=Object(se.c)(o,(t.depth-1)/(r-1)*.5)),o}(i,t,r.root.height));var a=n.ensureUniqueItemVisual(i.dataIndex,"style");Object(l.m)(a,o)}))}))}var IT={color:"fill",borderColor:"stroke"},kT={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},AT=lr(),TT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return dm(null,this)},e.prototype.getDataParams=function(e,n,r){var i=t.prototype.getDataParams.call(this,e,n);return r&&(i.info=AT(r).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Uc);function DT(t,e){return e=e||[0,0],l.H(["x","y"],(function(n,r){var i=this.getAxis(n),o=e[r],a=t[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))}),this)}function PT(t,e){return e=e||[0,0],l.H([0,1],(function(n){var r=e[n],i=t[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function LT(t,e){var n=this.getAxis(),r=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function jT(t,e){return e=e||[0,0],l.H(["Radius","Angle"],(function(n,r){var i=this["get"+n+"Axis"](),o=e[r],a=t[r]/2,s="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}function ET(t,e,n,r){return t&&(t.legacy||!1!==t.legacy&&!n&&!r&&"tspan"!==e&&("text"===e||Object(l.q)(t,"text")))}function RT(t,e,n){var r,i,o,a=t;if("text"===e)o=a;else{o={},Object(l.q)(a,"text")&&(o.text=a.text),Object(l.q)(a,"rich")&&(o.rich=a.rich),Object(l.q)(a,"textFill")&&(o.fill=a.textFill),Object(l.q)(a,"textStroke")&&(o.stroke=a.textStroke),Object(l.q)(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(l.q)(a,"fontSize")&&(o.fontSize=a.fontSize),Object(l.q)(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(l.q)(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},r={};var s=Object(l.q)(a,"textPosition");n?r.position=s?a.textPosition:"inside":s&&(r.position=a.textPosition),Object(l.q)(a,"textPosition")&&(r.position=a.textPosition),Object(l.q)(a,"textOffset")&&(r.offset=a.textOffset),Object(l.q)(a,"textRotation")&&(r.rotation=a.textRotation),Object(l.q)(a,"textDistance")&&(r.distance=a.textDistance)}return NT(o,t),Object(l.k)(o.rich,(function(t){NT(t,t)})),{textConfig:r,textContent:i}}function NT(t,e){e&&(e.font=e.textFont||e.font,Object(l.q)(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(l.q)(e,"textAlign")&&(t.align=e.textAlign),Object(l.q)(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(l.q)(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(l.q)(e,"textWidth")&&(t.width=e.textWidth),Object(l.q)(e,"textHeight")&&(t.height=e.textHeight),Object(l.q)(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(l.q)(e,"textPadding")&&(t.padding=e.textPadding),Object(l.q)(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(l.q)(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(l.q)(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(l.q)(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(l.q)(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(l.q)(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(l.q)(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function zT(t,e,n){var r=t;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=t.fill||"#000";BT(r,e);var a=null==r.textFill;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(a&&(r.textFill=t.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=e.text,r.rich=e.rich,Object(l.k)(e.rich,(function(t){BT(t,t)})),r}function BT(t,e){e&&(Object(l.q)(e,"fill")&&(t.textFill=e.fill),Object(l.q)(e,"stroke")&&(t.textStroke=e.fill),Object(l.q)(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(l.q)(e,"font")&&(t.font=e.font),Object(l.q)(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(l.q)(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(l.q)(e,"fontSize")&&(t.fontSize=e.fontSize),Object(l.q)(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(l.q)(e,"align")&&(t.textAlign=e.align),Object(l.q)(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(l.q)(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(l.q)(e,"width")&&(t.textWidth=e.width),Object(l.q)(e,"height")&&(t.textHeight=e.height),Object(l.q)(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(l.q)(e,"padding")&&(t.textPadding=e.padding),Object(l.q)(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(l.q)(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(l.q)(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(l.q)(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(l.q)(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(l.q)(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(l.q)(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(l.q)(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(l.q)(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(l.q)(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(l.q)(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var VT={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},FT=Object(l.F)(VT),GT=(Object(l.N)(Je,(function(t,e){return t[e]=1,t}),{}),Je.join(", "),["","style","shape","extra"]),HT=lr();function WT(t,e,n,r,i){var o=t+"Animation",a=ka(t,r,i)||{},s=HT(e).userDuring;return a.duration>0&&(a.during=s?Object(l.c)(KT,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),Object(l.m)(a,n[o]),a}function UT(t,e,n,r){var i=(r=r||{}).dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),u=HT(t),c=e.style;u.userDuring=e.during;var h={},p={};if(function(t,e,n){for(var r=0;r=0)){var f=t.getAnimationStyleProps(),d=f?f.style:null;if(d){!i&&(i=r.style={});var g=Object(l.F)(n);for(c=0;c0&&t.animateFrom(f,d)}else!function(t,e,n,r,i){if(i){var o=WT("update",t,e,r,n);o.duration>0&&t.animateFrom(i,o)}}(t,e,i||0,n,h);YT(t,e),c?t.dirty():t.markRedraw()}function YT(t,e){for(var n=HT(t).leaveToProps,r=0;r=0){!o&&(o=r[t]={});var f=Object(l.F)(a);for(h=0;hr[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=e.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=t.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a},size:l.c(jT,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function hD(t){return t instanceof to}function pD(t){return t instanceof ti}var fD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._data,o=t.getData(),a=this.group,s=mD(t,o,e,n);i||a.removeAll(),o.diff(i).add((function(e){xD(n,null,e,s(e,r),t,a,o)})).remove((function(e){var n=i.getItemGraphicEl(e);n&&qT(n,AT(n).option,t)})).update((function(e,l){var u=i.getItemGraphicEl(l);xD(n,u,e,s(e,r),t,a,o)})).execute();var l=t.get("clip",!0)?Bm(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,r,i){var o=e.getData(),a=mD(e,o,n,r),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u=0?e.getStore().get(i,n):void 0}var o=e.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,r){0;null==r&&(r=s);var i=b(r,"emphasis").getItemStyle(),o=x(r,"emphasis"),a=Ga(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(l.Q)(t.getFormattedLabel(r,"emphasis"),t.getFormattedLabel(r,"normal"),vm(e,r)):null;var u=Ha(o,null,!0);return w(n,i),i=zT(i,a,u),n&&_(i,n),i.legacy=!0,i},visual:function(t,n){if(null==n&&(n=s),Object(l.q)(IT,t)){var r=e.getItemVisual(n,"style");return r?r[IT[t]]:null}if(Object(l.q)(kT,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return function(t){var e=[],n=t.axis;if("category"===n.type){for(var r=n.getBandWidth(),i=0;i=h;d--){var g=e.childAt(d);CD(e,g,i)}}(t,p,n,r,i),a>=0?o.replaceAt(p,a):o.add(p),p}function wD(t,e,n){var r,i=AT(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==i.customGraphicType||"path"===o&&((r=a)&&(Object(l.q)(r,"pathData")||Object(l.q)(r,"d")))&&TD(a)!==i.customPathData||"image"===o&&Object(l.q)(s,"image")&&s.image!==i.customImagePath}function SD(t,e,n){var r=e?MD(t,e):t,i=e?OD(t,r,"emphasis"):t.style,o=t.type,a=r?r.textConfig:null,s=t.textContent,l=s?e?MD(s,e):s:null;if(i&&(n.isLegacy||ET(i,o,!!a,!!l))){n.isLegacy=!0;var u=RT(i,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?n[e]:n.normal;h.cfg=a,h.conOpt=l}function MD(t,e){return e?t?t[e]:null:t}function OD(t,e,n){var r=e&&e.style;return null==r&&"emphasis"===n&&t&&(r=t.styleEmphasis),r}function CD(t,e,n){e&&qT(e,AT(t).option,n)}function ID(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function kD(t,e){var n=this.context,r=null!=t?n.newChildren[t]:null,i=null!=e?n.oldChildren[e]:null;_D(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function AD(t){var e=this.context,n=e.oldChildren[t];n&&qT(n,AT(n).option,e.seriesModel)}function TD(t){return t&&(t.pathData||t.d)}var DD=lr(),PD=l.d,LD=l.c;function jD(t,e,n,r){(function t(e,n){if(l.A(e)&&l.A(n)){var r=!0;return l.k(n,(function(n,i){r=r&&t(e[i],n)})),!!r}return e===n})(DD(n).lastProp,r)||(DD(n).lastProp=r,e?Ta(n,r,t):(n.stopAnimation(),n.attr(r)))}function ED(t,e){t[e.get(["label","show"])?"show":"hide"]()}function RD(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function ND(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}var zD=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,r){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var u={};this.makeElOption(u,i,t,e,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var p=l.h(jD,e,h);this.updatePointerEl(a,u,p),this.updateLabelEl(a,u,p,e)}else a=this._group=new Mn,this.createPointerEl(a,u,t,e),this.createLabelEl(a,u,t,e),n.getZr().add(a);ND(a,e,!0),this._renderHandle(i)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),r=t.axis,i="category"===r.type,o=e.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=$_(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;if(o){var a=DD(t).pointerEl=new r[o.type](PD(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=DD(t).labelEl=new Po(PD(e.label));t.add(i),ED(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=DD(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=DD(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),ED(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=zp(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Y(t.event)},onmousedown:LD(this._onHandleDragMove,this,0,0),drift:LD(this._onHandleDragMove,this),ondragend:LD(this._onHandleDragEnd,this)}),r.add(i)),ND(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");l.t(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,rf(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){jD(this._axisPointerModel,!e&&this._moveAnimation,this._handle,RD(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(RD(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(RD(r)),DD(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),of(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function BD(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle()).fill=null:"shadow"===n&&((e=r.getAreaStyle()).stroke=null),e}function VD(t,e,n,r,i){var o=FD(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Us(a.get("padding")||0),l=a.getFont(),u=ln(o,l),c=i.position,h=u.width+s[1]+s[3],p=u.height+s[0]+s[2],f=i.align;"right"===f&&(c[0]-=h),"center"===f&&(c[0]-=h/2);var d=i.verticalAlign;"bottom"===d&&(c[1]-=p),"middle"===d&&(c[1]-=p/2),function(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,p,r);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Ga(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function FD(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:l_(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};l.k(r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)})),l.C(a)?o=a.replace("{value}",o):l.w(a)&&(o=a(s))}return o}function GD(t,e,n){var r=[1,0,0,1,0,0];return et(r,r,n.rotation),tt(r,r,n.position),Pp([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function HD(t,e,n,r,i,o){var a=U_.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),VD(e,r,i,o,{position:GD(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function WD(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function UD(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function YD(t,e,n,r,i,o){return{cx:t,cy:e,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}var qD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=XD(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=BD(r),h=$D[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}HD(e,t,A_(a.model,n),n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=A_(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=GD(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=XD(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(zD);function XD(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var $D={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:WD([e,n[0]],[e,n[1]],ZD(t))}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:UD([e-r/2,n[0]],[r,i],ZD(t))}}};function ZD(t){return"x"===t.dim?0:1}var KD=qD,QD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(hl),JD=lr(),tP=l.k;function eP(t,e,n){if(!s.a.node){var r=e.getZr();JD(r).records||(JD(r).records={}),function(t,e){if(JD(t).initialized)return;function n(n,r){t.on(n,(function(n){var i=function(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}(e);tP(JD(t).records,(function(t){t&&r(t,n,i.dispatchAction)})),function(t,e){var n,r=t.showTip.length,i=t.hideTip.length;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(i.pendings,e)}))}JD(t).initialized=!0,n("click",l.h(rP,"click")),n("mousemove",l.h(rP,"mousemove")),n("globalout",nP)}(r,e),(JD(r).records[t]||(JD(r).records[t]={})).handler=n}}function nP(t,e,n){t.handler("leave",null,n)}function rP(t,e,n,r){e.handler(t,n,r)}function iP(t,e){if(!s.a.node){var n=e.getZr();(JD(n).records||{})[t]&&(JD(n).records[t]=null)}}var oP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";eP("axisPointer",n,(function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){iP("axisPointer",e)},e.prototype.dispose=function(t,e){iP("axisPointer",e)},e.type="axisPointer",e}(qc);function aP(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=sr(o,t);if(null==a||a<0||l.t(a))return{point:[]};var s=o.getItemGraphicEl(a),u=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(u&&u.dataToPoint)if(t.isStacked){var c=u.getBaseAxis(),h=u.getOtherAxis(c).dim,p=c.dim,f="x"===h||"radius"===h?1:0,d=o.mapDimension(p),g=[];g[f]=o.get(d,a),g[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=u.dataToPoint(g)||[]}else r=u.dataToPoint(o.getValues(l.H(u.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var sP=lr();function lP(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||Object(l.c)(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){fP(i)&&(i=aP({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var u=fP(i),c=o.axesInfo,h=s.axesInfo,p="leave"===r||fP(i),f={},d={},g={list:[],map:{}},v={showPointer:Object(l.h)(cP,d),showTooltip:Object(l.h)(hP,g)};Object(l.k)(s.coordSysMap,(function(t,e){var n=u||t.containPoint(i);Object(l.k)(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}(c,t);if(!p&&n&&(!c||o)){var a=o&&o.value;null!=a||u||(a=r.pointToData(i)),null!=a&&uP(t,a,v,!1,f)}}))}));var y={};return Object(l.k)(h,(function(t,e){var n=t.linkGroup;n&&!d[e]&&Object(l.k)(n.axesInfo,(function(e,r){var i=d[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,pP(e),pP(t)))),y[t.key]=o}}))})),Object(l.k)(y,(function(t,e){uP(h[e],t,v,!0,f)})),function(t,e,n){var r=n.axesInfo=[];Object(l.k)(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}(d,h,f),function(t,e,n,r){if(fP(e)||!t.list.length)return void r({type:"hideTip"});var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}(g,i,t,a),function(t,e,n){var r=n.getZr(),i=sP(r).axisPointerLastHighlights||{},o=sP(r).axisPointerLastHighlights={};Object(l.k)(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&Object(l.k)(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t}))}));var a=[],s=[];Object(l.k)(i,(function(t,e){!o[e]&&s.push(t)})),Object(l.k)(o,(function(t,e){!i[e]&&a.push(t)})),s.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),a.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}(h,0,n),f}}function uP(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return Object(l.k)(e.seriesModels,(function(e,u){var c,h,p=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(p,t,n);h=f.dataIndices,c=f.nestestValue}else{if(!(h=e.getData().indicesOfNearest(p[0],t,"category"===n.type?.5:null)).length)return;c=e.getData().get(p[0],h[0])}if(null!=c&&isFinite(c)){var d=t-c,g=Math.abs(d);g<=a&&((g=0&&s<0)&&(a=g,s=d,i=c,o.length=0),Object(l.k)(h,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}(e,t),s=a.payloadBatch,u=a.snapToValue;s[0]&&null==i.seriesIndex&&Object(l.m)(i,s[0]),!r&&t.snap&&o.containData(u)&&null!=u&&(e=u),n.showPointer(t,e,s),n.showTooltip(t,a,u)}else n.showPointer(t,e)}function cP(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function hP(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=K_(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function pP(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function fP(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function dP(t){J_.registerAxisPointerClass("CartesianAxisPointer",KD),t.registerComponentModel(QD),t.registerComponentView(oP),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(l.t)(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Y_(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},lP)}var gP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(e),u=r.get("type");if(u&&"none"!==u){var c=BD(r),h=vP[u](o,a,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var p=function(t,e,n,r,i){var o=e.axis,a=o.dataToCoord(t),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=r.getRadiusAxis().getExtent();if("radius"===o.dim){var p=[1,0,0,1,0,0];et(p,p,s),tt(p,p,[r.cx,r.cy]),l=Pp([a,-i],p);var f=e.getModel("axisLabel").get("rotate")||0,d=U_.innerTextLayout(s,f*Math.PI/180,-1);u=d.textAlign,c=d.textVerticalAlign}else{var g=h[1];l=r.coordToPoint([g+i,a]);var v=r.cx,y=r.cy;u=Math.abs(l[0]-v)/g<.3?"center":l[0]>v?"left":"right",c=Math.abs(l[1]-y)/g<.3?"middle":l[1]>y?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(e,n,0,a,r.get(["label","margin"]));VD(t,n,r,i,p)},e}(zD);var vP={line:function(t,e,n,r){return"angle"===t.dim?{type:"Line",shape:WD(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r){var i=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:YD(e.cx,e.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:YD(e.cx,e.cy,n-i/2,n+i/2,0,2*Math.PI)}}},yP=gP,mP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(hl),bP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",pr).models[0]},e.type="polarAxis",e}(hl);l.K(bP,ax);var xP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="angleAxis",e}(bP),_P=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="radiusAxis",e}(bP),wP=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return a(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(I_);wP.prototype.dataToRadius=I_.prototype.dataToCoord,wP.prototype.radiusToData=I_.prototype.coordToData;var SP=wP,MP=lr(),OP=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return a(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this.getLabelModel(),e=this.scale,n=e.getExtent(),r=e.count();if(n[1]-n[0]<1)return 0;var i=n[0],o=this.dataToCoord(i+1)-this.dataToCoord(i),a=Math.abs(o),s=ln(null==i?"":i+"",t.getFont(),"center","top"),l=Math.max(s.height,7)/a;isNaN(l)&&(l=1/0);var u=Math.max(0,Math.floor(l)),c=MP(this.model),h=c.lastAutoInterval,p=c.lastTickCount;return null!=h&&null!=p&&Math.abs(h-u)<=1&&Math.abs(p-r)<=1&&h>u?u=h:(c.lastTickCount=r,c.lastAutoInterval=u),u},e}(I_);OP.prototype.dataToAngle=I_.prototype.dataToCoord,OP.prototype.angleToData=I_.prototype.coordToData;var CP=OP,IP=["radius","angle"];function kP(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var AP=function(){function t(t){this.dimensions=IP,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new SP,this._angleAxis=new CP,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===t&&e.push(n),r.scale.type===t&&e.push(r),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=la;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,r=e-this.cy,i=n*n+r*r-1e-4,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return kP(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return kP(e)===this?this.pointToData(n):null},t}();function TP(t,e){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();l.k(h_(e,"radius"),(function(t){i.scale.unionExtentFromData(e,t)})),l.k(h_(e,"angle"),(function(t){r.scale.unionExtentFromData(e,t)}))}})),o_(r.scale,r.model),o_(i.scale,i.model),"category"===r.type&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function DP(t,e){if(t.type=e.get("type"),t.scale=a_(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var PP={dimensions:IP,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,r){var i=new AP(r+"");i.update=TP;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),u=t.findAxisModel("angleAxis");DP(o,s),DP(a,u),function(t,e,n){var r=e.get("center"),i=n.getWidth(),o=n.getHeight();t.cx=Tn(r[0],i),t.cy=Tn(r[1],o);var a=t.getRadiusAxis(),s=Math.min(i,o)/2,u=e.get("radius");null==u?u=[0,"100%"]:l.t(u)||(u=[0,u]);var c=[Tn(u[0],s),Tn(u[1],s)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}(i,t,e),n.push(i),t.coordinateSystem=i,i.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",pr).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},LP=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function jP(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var r=t.coordToPoint([e[0],n]),i=t.coordToPoint([e[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function EP(t){return t.getRadiusAxis().inverse?0:1}function RP(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var NP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return a(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=l.H(n.getViewLabels(),(function(t){t=l.d(t);var e=n.scale,r="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(r),t}));RP(s),RP(o),l.k(LP,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||zP[e](this.group,t,r,o,a,i,s)}),this)}},e.type="angleAxis",e}(J_),zP={axisLine:function(t,e,n,r,i,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=EP(n),u=l?0:1;(a=0===o[u]?new yh({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new zh({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,r,i,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),u=o[EP(n)],c=l.H(r,(function(t){return new $h({shape:jP(n,[u,u+s],t.coord)})}));t.add(Cp(c,{style:l.i(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),u=(a.get("inside")?-1:1)*s.get("length"),c=o[EP(n)],h=[],p=0;pg?"left":"right",m=Math.abs(d[1]-v)/f<.3?"middle":d[1]>v?"top":"bottom";if(s&&s[p]){var b=s[p];l.A(b)&&b.textStyle&&(a=new hs(b.textStyle,u,u.ecModel))}var x=new Po({silent:U_.isLabelSilent(e),style:Ga(a,{x:d[0],y:d[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:y,verticalAlign:m})});if(t.add(x),h){var _=U_.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=r.rawLabel,Lo(x).eventData=_}}),this)},splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),u=0;s=s instanceof Array?s:[s];for(var c=[],h=0;h=0?"p":"n",C=x;m&&(r[s][M]||(r[s][M]={p:x,n:x}),C=r[s][M][O]);var I=void 0,k=void 0,A=void 0,T=void 0;if("radius"===h.dim){var D=h.dataToCoord(S)-x,P=o.dataToCoord(M);Math.abs(D)=T})}}}))},XP={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},$P={splitNumber:5},ZP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="polar",e}(qc);function KP(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,i={},o=r.position,a=r.orient,s=n.getRect(),u=[s.x,s.x+s.width,s.y,s.y+s.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};i.position=["vertical"===a?c.vertical[o]:u[0],"horizontal"===a?c.horizontal[o]:u[3]];i.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),l.O(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var h=e.rotate;return null==h&&(h=t.get(["axisLabel","rotate"])),i.labelRotation="top"===o?-h:h,i.z2=1,i}var QP=["axisLine","axisTickLabel","axisName"],JP=["splitArea","splitLine"],tL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return a(e,t),e.prototype.render=function(e,n,r,i){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new Mn;var s=KP(e),u=new U_(e,s);l.k(QP,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),l.k(JP,(function(t){e.get([t,"show"])&&eL[t](this,this.group,this._axisGroup,e)}),this),Ep(a,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)},e.prototype.remove=function(){nw(this)},e.type="singleAxis",e}(J_),eL={splitLine:function(t,e,n,r){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var u=a.get("width"),c=r.coordinateSystem.getRect(),h=i.isHorizontal(),p=[],f=0,d=i.getTicksCoords({tickModel:o}),g=[],v=[],y=0;y=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),r[i]=e.toGlobalCoord(e.dataToCoord(+t)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},t.prototype.convertToPixel=function(t,e,n){return sL(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return sL(e)===this?this.pointToData(n):null},t}();var uL={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(r,i){var o=new lL(r,t,e);o.name="single_"+i,o.resize(r,e),r.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",pr).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n},dimensions:aL},cL=["x","y"],hL=["width","height"],pL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.coordinateSystem,s=gL(a,1-dL(o)),l=a.dataToPoint(e)[0],u=r.get("type");if(u&&"none"!==u){var c=BD(r),h=fL[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}HD(e,t,KP(n),n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=KP(e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=GD(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.coordinateSystem,a=dL(i),s=gL(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=gL(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(zD),fL={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:WD([e,n[0]],[e,n[1]],dL(t))}},shadow:function(t,e,n){var r=t.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:UD([e-r/2,n[0]],[r,i],dL(t))}}};function dL(t){return t.isHorizontal()?0:1}function gL(t,e){var n=t.getRect();return[n[cL[e]],n[cL[e]]+n[hL[e]]]}var vL=pL,yL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="single",e}(qc);function mL(t,e){var n,r=t.cellSize;1===(n=l.t(r)?r:t.cellSize=[r,r]).length&&(n[1]=n[0]);var i=l.H([0,1],(function(t){return function(t,e){return null!=t[tl[e][0]]||null!=t[tl[e][1]]&&null!=t[tl[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));al(t,e,{type:"box",ignoreSize:i})}var bL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(e,n,r){var i=sl(e);t.prototype.init.apply(this,arguments),mL(e,i)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),mL(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(hl),xL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){var r=this.group;r.removeAll();var i=t.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,r),this._renderLines(t,o,a,r),this._renderYearText(t,o,a,r),this._renderMonthText(t,s,a,r),this._renderWeekText(t,s,o,a,r)},e.prototype._renderDayRect=function(t,e,n){for(var r=t.coordinateSystem,i=t.getModel("itemStyle").getItemStyle(),o=r.getCellWidth(),a=r.getCellHeight(),s=e.start.time;s<=e.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,u=new vo({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:i});n.add(u)}},e.prototype._renderLines=function(t,e,n,r){var i=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){p(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function p(e){i._firstDayOfMonth.push(o.getDateInfo(e)),i._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=i._getLinePointsOfOneWeek(t,e,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,a,r)}p(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),a,r)},e.prototype._getEdgesPoints=function(t,e,n){var r=[t[0].slice(),t[t.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-e/2,r[1][i]=r[1][i]+e/2,r},e.prototype._drawSplitline=function(t,e,n){var r=new Uh({z2:20,shape:{points:t},style:e});n.add(r)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var r=t.coordinateSystem,i=r.getDateInfo(e),o=[],a=0;a<7;a++){var s=r.getNextNDay(i.time,a),l=r.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return Object(l.C)(t)&&t?(n=t,r=e,l.k(r,(function(t,e){n=n.replace("{"+e+"}",i?N(t):t)})),n):Object(l.w)(t)?t(e):e.nameMap;var n,r,i},e.prototype._yearTextPositionControl=function(t,e,n,r,i){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===r?(a+=i,s=["center","top"]):"left"===r?o-=i:"right"===r?(o+=i,s=["center","top"]):a-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,r){var i=t.getModel("yearLabel");if(i.get("show")){var o=i.get("margin"),a=i.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var f=i.get("formatter"),d={start:e.start.y,end:e.end.y,nameMap:p},g=this._formatterLabel(f,d),v=new Po({z2:30,style:Ga(i,{text:g})});v.attr(this._yearTextPositionControl(v,h[a],n,a,o)),r.add(v)}},e.prototype._monthTextPositionControl=function(t,e,n,r,i){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=i,e&&(o="center"),"start"===r&&(a="bottom")):(s+=i,e&&(a="middle"),"start"===r&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,r){var i=t.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),a=i.get("margin"),s=i.get("position"),u=i.get("align"),c=[this._tlpoints,this._blpoints];o&&!Object(l.C)(o)||(o&&(e=bs(o)||e),o=e.get(["time","monthAbbr"])||[]);var h="start"===s?0:1,p="horizontal"===n?0:1;a="start"===s?-a:a;for(var f="center"===u,d=0;d=r.start.time&&n.timea.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var r=Math.floor(n[1].time/864e5)-Math.floor(n[0].time/864e5)+1,i=new Date(n[0].time),o=i.getDate(),a=n[1].date.getDate();i.setDate(o+r-1);var s=i.getDate();if(s!==a)for(var l=i.getTime()-n[1].time>0?1:-1;(s=i.getDate())!==a&&(i.getTime()-n[1].time)*l>0;)r-=l,i.setDate(s-l);var u=Math.floor((r+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var r=this._getRangeInfo(n);if(t>r.weeks||0===t&&er.lweek)return null;var i=7*(t-1)-r.fweek+e,o=new Date(r.start.time);return o.setDate(+r.start.d+i),this.getDateInfo(o)},t.create=function(e,n){var r=[];return e.eachComponent("calendar",(function(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("calendarIndex")||0])})),r},t.dimensions=["time","value"],t}();function SL(t,e){var n;return l.k(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var ML=["transition","enterFrom","leaveTo"],OL=ML.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function CL(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var r=n?ML:OL,i=0;i=0;u--){var f,d,g;if(g=null!=(d=ir((f=n[u]).id,null))?i.get(d):null){var v=g.parent,y=(p=AL(v),{}),m=il(g,f,v===r?{width:o,height:a}:{width:p.width,height:p.height},null,{hv:f.hv,boundingMode:f.bounding},y);if(!AL(g).isNew&&m){for(var b=f.transition,x={},_=0;_=0)?x[w]=S:g[w]=S}Ta(g,x,t,0)}else g.attr(y)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){LL(n,AL(n).option,e,t._lastGraphicModel)})),this._elMap=l.f()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(qc);function DL(t){var e=new(l.q(kL,t)?kL[t]:wp(t))({});return AL(e).type=t,e}function PL(t,e,n,r){var i=DL(n);return e.add(i),r.set(t,i),AL(i).id=t,AL(i).isNew=!0,i}function LL(t,e,n,r){t&&t.parent&&("group"===t.type&&t.traverse((function(t){LL(t,e,n,r)})),qT(t,e,r),n.removeKey(AL(t).id))}function jL(t,e,n,r){t.isGroup||l.k([["cursor",ti.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];l.q(e,r)?t[r]=l.P(e[r],n[1]):null==t[r]&&(t[r]=n[1])})),l.k(l.F(e),(function(n){if(0===n.indexOf("on")){var r=e[n];t[n]=l.w(r)?r:null}})),l.q(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var EL=["x","y","radius","angle","single"],RL=["cartesian2d","polar","singleAxis"];function NL(t){return t+"Axis"}function zL(t,e){var n,r=Object(l.f)(),i=[],o=Object(l.f)();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,n){var i=r.get(t);i&&i[n]&&(e=!0)})),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),i.push(t),t.eachTargetAxis((function(t,e){(r.get(t)||r.set(t,[]))[e]=!0}))}return i}function BL(t){var e=t.ecModel,n={infoList:[],infoMap:Object(l.f)()};return t.eachTargetAxis((function(t,r){var i=e.getComponent(NL(t),r);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(i)}}})),n}var VL=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}();function FL(t){var e={};return Object(l.k)(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var GL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return a(e,t),e.prototype.init=function(t,e,n){var r=FL(t);this.settledOption=r,this.mergeDefaultAndTheme(t,n),this._doInit(r)},e.prototype.mergeOption=function(t){var e=FL(t);Object(l.I)(this.option,t,!0),Object(l.I)(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Object(l.k)([["start","startValue"],["end","endValue"]],(function(t,r){"value"===this._rangePropMode[r]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(l.f)();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(l.k)(EL,(function(n){var r=this.getReferringComponents(NL(n),fr);if(r.specified){e=!0;var i=new VL;Object(l.k)(r.models,(function(t){i.add(t.componentIndex)})),t.set(n,i)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,r=!0;if(r){var i="vertical"===e?"y":"x";o(n.findComponents({mainType:i+"Axis"}),i)}r&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single");function o(e,n){var i=e[0];if(i){var o=new VL;if(o.add(i.componentIndex),t.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",pr).models[0];a&&Object(l.k)(e,(function(t){i.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",pr).models[0]&&o.add(t.componentIndex)}))}}}r&&Object(l.k)(EL,(function(e){if(r){var i=n.findComponents({mainType:NL(e),filter:function(t){return"category"===t.get("type",!0)}});if(i[0]){var o=new VL;o.add(i[0].componentIndex),t.set(e,o),r=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(l.k)([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=t[r[0]],a=null!=t[r[1]];o&&!a?e[i]="percent":!o&&a?e[i]="value":n?e[i]=n[i]:o&&(e[i]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(NL(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,r){Object(l.k)(n.indexList,(function(n){t.call(e,r,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(NL(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(l.k)([["start","startValue"],["end","endValue"]],(function(r){null==t[r[0]]&&null==t[r[1]]||(e[r[0]]=n[r[0]]=t[r[0]],e[r[1]]=n[r[1]]=t[r[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(l.k)(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),r=0;r=0}(e)){var n=NL(this._dimName),r=e.getReferringComponents(n,pr).models[0];r&&this._axisIndex===r.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return l.d(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,r=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];YL(["start","end"],(function(l,u){var c=t[l],h=t[l+"Value"];"percent"===i[u]?(null==c&&(c=o[u]),h=r.parse(An(c,o,n))):(e=!0,c=An(h=null==h?n[u]:r.parse(h),n,o)),s[u]=h,a[u]=c})),qL(s),qL(a);var l=this._minMaxSpan;function u(t,e,n,i,o){var a=o?"Span":"ValueSpan";vI(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=An(t[s],n,i,!0),o&&(e[s]=r.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var r=[1/0,-1/0];YL(n,(function(t){!function(t,e,n){e&&l.k(h_(e,n),(function(n){var r=e.getApproximateExtent(n);r[0]t[1]&&(t[1]=r[1])}))}(r,t.getData(),e)}));var i=t.getAxisModel(),o=n_(i.axis.scale,i,r).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;"none"!==i&&YL(r,(function(t){var e=t.getData(),r=e.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var a=e.getStore(),s=l.H(r,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,i,l=0;lo[1];if(c&&!h&&!p)return!0;c&&(i=!0),h&&(e=!0),p&&(n=!0)}return i&&e&&n}))}else YL(r,(function(n){if("empty"===i)t.setData(e=e.map(n,(function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN})));else{var r={};r[n]=o,e.selectRange(r)}}));YL(r,(function(t){e.setApproximateExtent(o,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;YL(["min","max"],(function(r){var i=e.get(r+"Span"),o=e.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=An(n[0]+o,n,[0,100],!0):null!=i&&(o=An(i,[0,100],n,!0)-n[0]),t[r+"Span"]=i,t[r+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var r=jn(n,[0,500]);r=Math.min(r,20);var i=t.axis.scale.rawExtentInfo;0!==e[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==e[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},t}(),$L={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=t.getComponent(NL(r),i);e(r,i,o,n)}))}))}e((function(t,e,n,r){n.__dzAxisProxy=null}));var n=[];e((function(e,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new XL(e,r,o,t),n.push(i.__dzAxisProxy))}));var r=Object(l.f)();return Object(l.k)(n,(function(t){Object(l.k)(t.getTargetSeriesModels(),(function(t){r.set(t.uid,t)}))})),r},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,r){t.getAxisProxy(n,r).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),r=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}};var ZL=!1;function KL(t){ZL||(ZL=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,$L),function(t){t.registerAction("dataZoom",(function(t,e){var n=zL(e,t);Object(l.k)(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function QL(t){t.registerComponentModel(HL),t.registerComponentView(UL),KL(t)}var JL=function(){},tj={};function ej(t,e){tj[t]=e}function nj(t){return tj[t]}var rj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;l.k(this.option.feature,(function(t,n){var r=nj(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(e)),l.I(t,r.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(hl);function ij(t,e){var n=Us(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new vo({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1})}var oj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(t,e,n,r){var i=this.group;if(i.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},u=this._features||(this._features={}),c=[];l.k(s,(function(t,e){c.push(e)})),new Ey(this._featureNames||[],c).add(h).update(h).remove(l.h(h,null)).execute(),this._featureNames=c,function(t,e,n){var r=e.getBoxLayoutParams(),i=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=rl(r,o,i);nl(e.get("orient"),t,e.get("itemGap"),a.width,a.height),il(t,r,o,i)}(i,t,n),i.add(ij(i.getBoundingRect(),t)),a||i.eachChild((function(t){var e=t.__title,r=t.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=t.getTextContent(),u=s&&s.ensureState("emphasis");if(u&&!l.w(u)&&e){var c=u.style||(u.style={}),h=ln(e,Po.makeFont(c)),p=t.x+i.x,f=!1;t.y+i.y+o+h.height>n.getHeight()&&(a.position="top",f=!0);var d=f?-5-h.height:o+10;p+h.width/2>n.getWidth()?(a.position=["100%",d],c.align="right"):p-h.width/2<0&&(a.position=[0,d],c.align="left")}}))}function h(h,p){var f,d=c[h],g=c[p],v=s[d],y=new hs(v,t,t.ecModel);if(r&&null!=r.newTitle&&r.featureName===d&&(v.title=r.newTitle),d&&!g){if(function(t){return 0===t.indexOf("my")}(d))f={onclick:y.option.onclick,featureName:d};else{var m=nj(d);if(!m)return;f=new m}u[d]=f}else if(!(f=u[g]))return;f.uid=fs("toolbox-feature"),f.model=y,f.ecModel=e,f.api=n;var b=f instanceof JL;d||!g?!y.get("show")||b&&f.unusable?b&&f.remove&&f.remove(e,n):(!function(r,s,u){var c,h,p=r.getModel("iconStyle"),f=r.getModel(["emphasis","iconStyle"]),d=s instanceof JL&&s.getIcons?s.getIcons():r.get("icon"),g=r.get("title")||{};l.C(d)?(c={})[u]=d:c=d;l.C(g)?(h={})[u]=g:h=g;var v=r.iconPaths={};l.k(c,(function(u,c){var d=zp(u,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(p.getItemStyle()),d.ensureState("emphasis").style=f.getItemStyle();var g=new Po({style:{text:h[c],align:f.get("textAlign"),borderRadius:f.get("textBorderRadius"),padding:f.get("textPadding"),fill:null},ignore:!0});d.setTextContent(g),Gp({el:d,componentModel:t,itemName:c,formatterParamsExtra:{title:h[c]}}),d.__title=h[c],d.on("mouseover",(function(){var e=f.getItemStyle(),r=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";g.setStyle({fill:f.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:f.get("textBackgroundColor")}),d.setTextConfig({position:f.get("textPosition")||r}),g.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",c])&&n.leaveEmphasis(this),g.hide()})),("emphasis"===r.get(["iconStatus",c])?ia:oa)(d),i.add(d),d.on("click",l.c(s.onclick,s,e,n,c)),v[c]=d}))}(y,f,d),y.setIconStatus=function(t,e){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,r[t]&&("emphasis"===e?ia:oa)(r[t])},f instanceof JL&&f.render&&f.render(y,e,n,r)):b&&f.dispose&&f.dispose(e,n)}},e.prototype.updateView=function(t,e,n,r){l.k(this._features,(function(t){t instanceof JL&&t.updateView&&t.updateView(t.model,e,n,r)}))},e.prototype.remove=function(t,e){l.k(this._features,(function(n){n instanceof JL&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){l.k(this._features,(function(n){n instanceof JL&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(qc),aj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.onclick=function(t,e){var n=this.model,r=n.get("name")||t.get("title.0.text")||"echarts",i="svg"===e.getZr().painter.getType(),o=i?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=s.a.browser;if(Object(l.w)(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=r+"."+o,c.target="_blank",c.href=a;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||i){var p=a.split(","),f=p[0].indexOf("base64")>-1,d=i?decodeURIComponent(p[1]):p[1];f&&(d=window.atob(d));var g=r+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var v=d.length,y=new Uint8Array(v);v--;)y[v]=d.charCodeAt(v);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,g)}else{var b=document.createElement("iframe");document.body.appendChild(b);var x=b.contentWindow,_=x.document;_.open("image/svg+xml","replace"),_.write(d),_.close(),x.focus(),_.execCommand("SaveAs",!0,g),document.body.removeChild(b)}}else{var w=n.get("lang"),S='',M=window.open();M.document.write(S),M.document.title=r}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(JL),sj=[["line","bar"],["stack"]],lj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return l.k(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var r=this.model,i=r.get(["seriesIndex",n]);if(uj[n]){var o,a={series:[]};l.k(sj,(function(t){l.r(t,n)>=0&&l.k(t,(function(t){r.setIconStatus(t,"normal")}))})),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},(function(t){var e=t.subType,i=t.id,o=uj[n](e,i,t,r);o&&(l.i(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var u=s.getAxesByScale("ordinal")[0];if(u){var c=u.dim+"Axis",h=t.getReferringComponents(c,pr).models[0].componentIndex;a[c]=a[c]||[];for(var p=0;p<=h;p++)a[c][h]=a[c][h]||{};a[c][h].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=l.I({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},e}(JL),uj={line:function(t,e,n,r){if("bar"===t)return l.I({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(t,e,n,r){if("line"===t)return l.I({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(t,e,n,r){var i="__ec_magicType_stack__"===n.get("stack");if("line"===t||"bar"===t)return r.setIconStatus("stack",i?"normal":"emphasis"),l.I({id:e,stack:i?"":"__ec_magicType_stack__"},r.get(["option","stack"])||{},!0)}};Pg({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var cj=lj,hj=new Array(60).join("-");function pj(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var fj=new RegExp("[\t]+","g");function dj(t,e){var n=t.split(new RegExp("\n*"+hj+"\n*","g")),r={series:[]};return l.k(n,(function(t,n){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf("\t")>=0)return!0}(t)){var i=function(t){for(var e=t.split(/\n+/g),n=pj(e.shift()).split(fj),r=[],i=l.H(n,(function(t){return{name:t,data:[]}})),o=0;o=0)&&t(i,r._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var r=Tj[t.brushType](0,n,e);t.__rangeOffset={offset:Pj[t.brushType](r.values,t.range,[1,1]),xyMinMax:r.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Object(l.k)(t,(function(t){var r=this.findTargetInfo(t,e);r&&!0!==r&&Object(l.k)(r.coordSyses,(function(r){var i=Tj[t.brushType](1,r,t.range,!0);n(t,i.values,r,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(l.k)(t,(function(t){var n,r,i,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=Tj[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?Pj[t.brushType](l.values,u.offset,(n=l.xyMinMax,r=u.xyMinMax,i=jj(n),o=jj(r),a=[i[0]/o[0],i[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(l.H)(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:mk(r),isTargetByCursor:xk(r,t,n.coordSysModel),getLinearBrushOtherExtent:bk(r)}}))},t.prototype.controlSeries=function(t,e,n){var r=this.findTargetInfo(t,n);return!0===r||r&&Object(l.r)(r.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,r=Cj(e,t),i=0;it[1]&&t.reverse(),t}function Cj(t,e){return cr(t,e,{includeMainTypes:Sj})}var Ij={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,i=t.gridModels,o=Object(l.f)(),a={},s={};(n||r||i)&&(Object(l.k)(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),Object(l.k)(r,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),Object(l.k)(i,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var i=t.coordinateSystem,o=[];Object(l.k)(i.getCartesians(),(function(t,e){(Object(l.r)(n,t.getAxis("x").model)>=0||Object(l.r)(r,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:Aj.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){Object(l.k)(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:Aj.geo})}))}},kj=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,i=t.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],Aj={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Dp(t)),e}},Tj={lineX:Object(l.h)(Dj,0),lineY:Object(l.h)(Dj,1),rect:function(t,e,n,r){var i=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),o=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),a=[Oj([i[0],o[0]]),Oj([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:Object(l.H)(n,(function(n){var o=t?e.pointToData(n,r):e.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o})),xyMinMax:i}}};function Dj(t,e,n,r){var i=n.getAxis(["x","y"][t]),o=Oj(Object(l.H)([0,1],(function(t){return e?i.coordToData(i.toLocalCoord(r[t]),!0):i.toGlobalCoord(i.dataToCoord(r[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var Pj={lineX:Object(l.h)(Lj,0),lineY:Object(l.h)(Lj,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(l.H)(t,(function(t,r){return[t[0]-n[0]*e[r][0],t[1]-n[1]*e[r][1]]}))}};function Lj(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function jj(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var Ej,Rj,Nj=Mj,zj=l.k,Bj="\0_ec_\0"+"toolbox-dataZoom_",Vj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(t,e,n,r){this._brushController||(this._brushController=new yk(n.getZr()),this._brushController.on("brush",l.c(this._onBrush,this)).mount()),function(t,e,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive);n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new Nj(Gj(t),e,{include:["grid"]}).makePanelOpts(i,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,r,n),function(t,e){t.setIconStatus("back",function(t){return xj(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){Fj[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new Nj(Gj(this.model),r,{include:["grid"]}).matchOutputRanges(e,r,(function(t,e,n){if("cartesian2d"===n.type){var r=t.brushType;"rect"===r?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[r],n,e)}})),function(t,e){var n=xj(t);mj(e,(function(e,r){for(var i=n.length-1;i>=0;i--){if(n[i][r])break}if(i<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var a=o.getPercentRange();n[0][r]={dataZoomId:r,start:a[0],end:a[1]}}}})),n.push(e)}(r,n),this._dispatchZoomAction(n)}function i(t,e,i){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(r=n)})),r}(t,a,r),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(i=vI(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];zj(t,(function(t,n){e.push(l.d(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(JL),Fj={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=xj(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return mj(n,(function(t,n){for(var i=e.length-1;i>=0;i--)if(t=e[i][n]){r[n]=t;break}})),r}(this.ecModel))}};function Gj(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}Ej="dataZoom",Rj=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var r=e.getModel(n),i=[],o=cr(t,Gj(r));return zj(o.xAxisModels,(function(t){return a(t,"xAxis","xAxisIndex")})),zj(o.yAxisModels,(function(t){return a(t,"yAxis","yAxisIndex")})),i}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:Bj+e+o};a[n]=o,i.push(a)}},Object(l.b)(null==Ol.get(Ej)&&Rj),Ol.set(Ej,Rj);var Hj=Vj;var Wj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(hl);function Uj(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function Yj(t){if(s.a.domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n-1?(c+="top:50%",h+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(c+="left:50%",h+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var p=a*Math.PI/180,f=u+i,d=f*Math.abs(Math.cos(p))+f*Math.abs(Math.sin(p)),g=e+" solid "+i+"px;";return'
'}(n,r,i)),Object(l.C)(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(l.t)(t)||(t=[t]);for(var s=0;s=0;o--){var a=t[o];a&&(a instanceof hs&&(a=a.get("tooltip",!0)),Object(l.C)(a)&&(a={formatter:a}),a&&(r=new hs(a,r,i)))}return r}function lE(t,e){return t.dispatchAction||Object(l.c)(e.dispatchAction,e)}function uE(t){return"center"===t||"middle"===t}var cE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(t,e){if(!s.a.node&&e.getDom()){var n,r=t.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?s.a.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new oE(e):new eE(e.getDom(),e,{appendToBody:r.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!s.a.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?rf(this,"_updatePosition",50,"fixRate"):of(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");eP("itemTooltip",this._api,Object(l.c)((function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!s.a.node&&n.getDom()){var i=lE(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(t,e,n){var r=hr(t).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var o,a=dr(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(!a)return;if(n.getViewOfComponentModel(a).group.traverse((function(e){var n=Lo(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0})),o)return{componentMainType:i,componentIndex:a.componentIndex,el:o}}(r,e,n);if(a){var l=a.el.getBoundingRect().clone();l.applyTransform(a.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var u=aE;u.x=r.x,u.y=r.y,u.update(),Lo(u).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:u},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var c=aP(r,e),h=c.point[0],p=c.point[1];null!=h&&null!=p&&this._tryShow({offsetX:h,offsetY:p,target:c.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(lE(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s)if("axis"===sE([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var i,o;this._lastDataByCoordSys=null,qf(n,(function(t){return null!=Lo(t).dataIndex?(i=t,!0):null!=Lo(t).tooltipConfig?(o=t,!0):void 0}),!0),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(l.c)(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=sE([e.tooltipOption],r),a=this._renderMode,s=[],u=Sc("section",{blocks:[],noHeader:!0}),c=[],h=new Lc;Object(l.k)(t,(function(t){Object(l.k)(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=FD(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),p=Sc("section",{header:o,noHeader:!Object(l.T)(o),sortBlocks:!0,blocks:[]});u.blocks.push(p),Object(l.k)(t.seriesDataIndices,(function(u){var f=n.getSeriesByIndex(u.seriesIndex),d=u.dataIndexInside,g=f.getDataParams(d);if(!(g.dataIndex<0)){g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=l_(e.axis,{value:i}),g.axisValueLabel=o,g.marker=h.makeTooltipMarker("item",Zs(g.color),a);var v=Fu(f.formatTooltip(d,!0,null)),y=v.frag;if(y){var m=sE([f],r).get("valueFormatter");p.blocks.push(m?Object(l.m)({valueFormatter:m},y):y)}v.text&&c.push(v.text),s.push(g)}}))}}))})),u.blocks.reverse(),c.reverse();var p=e.position,f=o.get("order"),d=kc(u,h,a,f,n.get("useUTC"),o.get("textStyle"));d&&c.unshift(d);var g="richText"===a?"\n\n":"
",v=c.join(g);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,p,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,v,s,Math.random()+"",i[0],i[1],p,null,h)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=Lo(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,u=i.dataIndex,c=i.dataType,h=s.getData(c),p=this._renderMode,f=t.positionDefault,d=sE([h.getItemModel(u),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),g=d.get("trigger");if(null==g||"item"===g){var v=s.getDataParams(u,c),y=new Lc;v.marker=y.makeTooltipMarker("item",Zs(v.color),p);var m=Fu(s.formatTooltip(u,!1,c)),b=d.get("order"),x=d.get("valueFormatter"),_=m.frag,w=_?kc(x?Object(l.m)({valueFormatter:x},_):_,y,p,b,r.get("useUTC"),d.get("textStyle")):m.text,S="item_"+s.name+"_"+u;this._showOrMove(d,(function(){this._showTooltipContent(d,w,v,S,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:u,dataIndex:h.getRawIndex(u),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r=Lo(e),i=r.tooltipConfig.option||{};if(Object(l.C)(i)){i={content:i,formatter:i}}var o=[i],a=this._ecModel.getComponent(r.componentMainType,r.componentIndex);a&&o.push(a),o.push({formatter:i.content});var s=t.positionDefault,u=sE(o,this._tooltipModel,s?{position:s}:null),c=u.get("content"),h=Math.random()+"",p=new Lc;this._showOrMove(u,(function(){var n=Object(l.d)(u.get("formatterParams")||{});this._showTooltipContent(u,c,n,h,t.offsetX,t.offsetY,t.position,e,p)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var p=e,f=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")).color;if(h)if(Object(l.C)(h)){var d=t.ecModel.get("useUTC"),g=Object(l.t)(n)?n[0]:n;p=h,g&&g.axisType&&g.axisType.indexOf("time")>=0&&(p=Cs(g.axisValue,p,d)),p=$s(p,n,!0)}else if(Object(l.w)(h)){var v=Object(l.c)((function(e,r){e===this._ticket&&(c.setContent(r,u,t,f,a),this._updatePosition(t,a,i,o,c,n,s))}),this);this._ticket=r,p=h(n,r,v)}else p=h;c.setContent(p,u,t,f,a),c.show(t,f),this._updatePosition(t,a,i,o,c,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||Object(l.t)(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(l.t)(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),u=this._api.getHeight();e=e||t.get("position");var c=i.getSize(),h=t.get("align"),p=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),Object(l.w)(e)&&(e=e([n,r],o,i.el,f,{viewSize:[s,u],contentSize:c.slice()})),Object(l.t)(e))n=Tn(e[0],s),r=Tn(e[1],u);else if(Object(l.A)(e)){var d=e;d.width=c[0],d.height=c[1];var g=rl(d,{width:s,height:u});n=g.x,r=g.y,h=null,p=null}else if(Object(l.C)(e)&&a){var v=function(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,f,c,t.get("borderWidth"));n=v[0],r=v[1]}else{v=function(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(t+l+o+2>r?t-=l+o:t+=o);null!=a&&(e+u+a>i?e-=u+a:e+=a);return[t,e]}(n,r,i,s,u,h?null:20,p?null:20);n=v[0],r=v[1]}if(h&&(n-=uE(h)?c[0]/2:"right"===h?c[0]:0),p&&(r-=uE(p)?c[1]/2:"bottom"===p?c[1]:0),Uj(t)){v=function(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,r,i,s,u);n=v[0],r=v[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&Object(l.k)(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&Object(l.k)(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],u=o.seriesDataIndices||[];(i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===u.length)&&Object(l.k)(a,(function(t,e){var n=u[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&Object(l.k)(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!s.a.node&&e.getDom()&&(of(this,"_updatePosition"),this._tooltipContent.dispose(),iP("itemTooltip",e))},e.type="tooltip",e}(qc);var hE=["rect","polygon","keep","clear"];function pE(t,e){var n=Zn(t?t.brush:[]);if(n.length){var r=[];l.k(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(r=r.concat(e))}));var i=t&&t.toolbox;l.t(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var o,a,s=i.feature||(i.feature={}),u=s.brush||(s.brush={}),c=u.type||(u.type=[]);c.push.apply(c,r),o=c,a={},l.k(o,(function(t){a[t]=1})),o.length=0,l.k(a,(function(t,e){o.push(e)})),e&&!c.length&&c.push.apply(c,hE)}}var fE=l.k;function dE(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function gE(t,e,n){var r={};return fE(e,(function(e){var i,o=r[e]=((i=function(){}).prototype.__hidden=i.prototype,new i);fE(t[e],(function(t,r){if(SO.isValidType(r)){var i={type:r,visual:t};n&&n(i,e),o[r]=new SO(i),"opacity"===r&&((i=l.d(i)).type="colorAlpha",o.__hidden.__alphaForOpacity=new SO(i))}}))})),r}function vE(t,e,n){var r;l.k(n,(function(t){e.hasOwnProperty(t)&&dE(e[t])&&(r=!0)})),r&&l.k(n,(function(n){e.hasOwnProperty(n)&&dE(e[n])?t[n]=l.d(e[n]):delete t[n]}))}var yE={lineX:mE(0),lineY:mE(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&aS(n.range,t[0],t[1])},rect:function(t,e,n){var r=n.range;if(!t||r.length<=1)return!1;var i=t.x,o=t.y,a=t.width,s=t.height,l=r[0];return!!(aS(r,i,o)||aS(r,i+a,o)||aS(r,i,o+s)||aS(r,i+a,o+s)||ft.create(t).contain(l[0],l[1])||Bp(i,o,i+a,o,r)||Bp(i,o,i,o+s,r)||Bp(i+a,o,i+a,o+s,r)||Bp(i,o+s,i+a,o+s,r))||void 0}}};function mE(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,r){if(e){var i=r.range;return bE(e[t],i)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[e[t]],r[e[t]]+r[n[t]]];return s[1]e[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&CE(e)}};function CE(t){return new ft(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var IE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new yk(e.getZr())).on("brush",l.c(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,r){this.model=t,this._updateController(t,e,n,r)},e.prototype.updateTransform=function(t,e,n,r){_E(e),this._updateController(t,e,n,r)},e.prototype.updateVisual=function(t,e,n,r){this.updateTransform(t,e,n,r)},e.prototype.updateView=function(t,e,n,r){this._updateController(t,e,n,r)},e.prototype._updateController=function(t,e,n,r){(!r||r.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:l.d(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:l.d(n),$from:e})},e.type="brush",e}(qc);function kE(t,e){return l.I({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new hs(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var AE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return a(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&vE(n,t,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},r.hasOwnProperty("liftZ")||(r.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=l.H(t,(function(t){return kE(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=kE(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(hl),TE=["rect","polygon","lineX","lineY","keep","clear"],DE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(t,e,n){var r,i,o;e.eachComponent({mainType:"brush"},(function(t){r=t.brushType,i=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=r,this._brushMode=i,l.k(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===i:"clear"===e?o:e===r)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return l.k(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var r=this._brushType,i=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},e.getDefaultOption=function(t){return{show:!0,type:TE.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(JL);var PE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return a(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(hl),LE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,i=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=l.P(t.get("textBaseline"),t.get("textVerticalAlign")),u=new Po({style:Ga(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),c=u.getBoundingRect(),h=t.get("subtext"),p=new Po({style:Ga(o,{text:h,fill:o.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);u.silent=!f&&!g,p.silent=!d&&!g,f&&u.on("click",(function(){Ks(f,"_"+t.get("target"))})),d&&p.on("click",(function(){Ks(d,"_"+t.get("subtarget"))})),Lo(u).eventData=Lo(p).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(u),h&&r.add(p);var v=r.getBoundingRect(),y=t.getBoxLayoutParams();y.width=v.width,y.height=v.height;var m=rl(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),r.x=m.x,r.y=m.y,r.markRedraw();var b={align:a,verticalAlign:s};u.setStyle(b),p.setStyle(b),v=r.getBoundingRect();var x=m.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var w=new vo({shape:{x:v.x-x[3],y:v.y-x[0],width:v.width+x[1]+x[3],height:v.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});r.add(w)}},e.type="title",e}(qc);var jE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return a(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],r=e.axisType,i=this._names=[];"category"===r?(t=[],Object(l.k)(n,(function(e,n){var r,o=ir(Jn(e),"");Object(l.A)(e)?(r=Object(l.d)(e)).value=n:r=n,t.push(r),i.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[r]||"number";(this._data=new om([{name:"value",type:o}],this)).initData(t,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(hl),EE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="timeline.slider",e.defaultOption=ds(jE.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(jE);Object(l.K)(EE,Vu.prototype);var RE=EE,NE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="timeline",e}(qc),zE=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.type=i||"value",o}return a(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(I_),BE=Math.PI,VE=lr();function FE(t,e,n,r,i,o){var a=e.get("color");i?(i.setColor(a),n.add(i),o&&o.onUpdate(i)):((i=ad(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(i),o&&o.onCreate(i));var s=e.getItemStyle(["color"]);i.setStyle(s),r=Object(l.I)({rectHover:!0,z2:100},r,!0);var u=sd(t.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=ld(t.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var h=t.get("symbolRotate");return r.rotation=(h||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function GE(t,e,n,r,i,o){if(!t.dragging){var a=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var HE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),i=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return Sc("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},Object(l.k)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](r,i,a,t)}),this),this._renderAxisLabel(r,o,a,t),this._position(r,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,r,i,o,a=t.get(["label","position"]),s=t.get("orient"),u=function(t,e){return rl(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),c={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?u.y+u.height/2=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},p={horizontal:0,vertical:BE/2},f="vertical"===s?u.height:u.width,d=t.getModel("controlStyle"),g=d.get("show",!0),v=g?d.get("itemSize"):0,y=g?d.get("itemGap"):0,m=v+y,b=t.get(["label","rotate"])||0;b=b*BE/180;var x=d.get("position",!0),_=g&&d.get("showPlayBtn",!0),w=g&&d.get("showPrevBtn",!0),S=g&&d.get("showNextBtn",!0),M=0,O=f;"left"===x||"bottom"===x?(_&&(r=[0,0],M+=m),w&&(i=[M,0],M+=m),S&&(o=[O-v,0],O-=m)):(_&&(r=[O-v,0],O-=m),w&&(i=[0,0],M+=m),S&&(o=[O-v,0],O-=m));var C=[M,O];return t.get("inverse")&&C.reverse(),{viewRect:u,mainLength:f,orient:s,rotation:p[s],labelRotation:b,labelPosOpt:n,labelAlign:t.get(["label","align"])||c[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||h[s],playPosition:r,prevBtnPosition:i,nextBtnPosition:o,axisExtent:C,controlSize:v,controlGap:y}},e.prototype._position=function(t,e){var n=this._mainGroup,r=this._labelGroup,i=t.viewRect;if("vertical"===t.orient){var o=[1,0,0,1,0,0],a=i.x,s=i.y+i.height;tt(o,o,[-a,-s]),et(o,o,-BE/2),tt(o,o,[a,s]),(i=i.clone()).applyTransform(o)}var u=y(i),c=y(n.getBoundingRect()),h=y(r.getBoundingRect()),p=[n.x,n.y],f=[r.x,r.y];f[0]=p[0]=u[0][0];var d,g=t.labelPosOpt;null==g||Object(l.C)(g)?(m(p,c,u,1,d="+"===g?0:1),m(f,h,u,1,1-d)):(m(p,c,u,1,d=g>=0?0:1),f[1]=p[1]+g);function v(t){t.originX=u[0][0]-t.x,t.originY=u[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function m(t,e,n,r,i){t[r]+=n[r][i]-e[r][i]}n.setPosition(p),r.setPosition(f),n.rotation=r.rotation=t.rotation,v(n),v(r)},e.prototype._createAxis=function(t,e){var n=e.getData(),r=e.get("axisType"),i=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Ax({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new Fx({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Px}}(e,r);i.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.calcNiceTicks();var a=new zE("value",i,t.axisExtent,r);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new Mn;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var o=new $h({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Object(l.m)({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new $h({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Object(l.i)({lineCap:"round",lineWidth:o.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,r){var i=this,o=r.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(l.k)(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),u=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),h=s.getModel(["progress","itemStyle"]),p={x:a,y:0,onclick:Object(l.c)(i._changeTimeline,i,t.value)},f=FE(s,u,e,p);f.ensureState("emphasis").style=c.getItemStyle(),f.ensureState("progress").style=h.getItemStyle(),ya(f);var d=Lo(f);s.get("tooltip")?(d.dataIndex=t.value,d.dataModel=r):d.dataIndex=d.dataModel=null,i._tickSymbols.push(f)}))},e.prototype._renderAxisLabel=function(t,e,n,r){var i=this;if(n.getLabelModel().get("show")){var o=r.getData(),a=n.getViewLabels();this._tickLabels=[],Object(l.k)(a,(function(r){var a=r.tickValue,s=o.getItemModel(a),u=s.getModel("label"),c=s.getModel(["emphasis","label"]),h=s.getModel(["progress","label"]),p=n.dataToCoord(r.tickValue),f=new Po({x:p,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(l.c)(i._changeTimeline,i,a),silent:!1,style:Ga(u,{text:r.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});f.ensureState("emphasis").style=Ga(c),f.ensureState("progress").style=Ga(h),e.add(f),ya(f),VE(f).dataIndex=a,i._tickLabels.push(f)}))}},e.prototype._renderControl=function(t,e,n,r){var i=t.controlSize,o=t.rotation,a=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),u=r.getPlayState(),c=r.get("inverse",!0);function h(t,n,u,c){if(t){var h=pn(Object(l.P)(r.get(["controlStyle",n+"BtnSize"]),i),i),p=function(t,e,n,r){var i=r.style,o=zp(t.get(["controlStyle",e]),r||{},new ft(n[0],n[1],n[2],n[3]));i&&o.setStyle(i);return o}(r,n+"Icon",[0,-h/2,h,h],{x:t[0],y:t[1],originX:i/2,originY:0,rotation:c?-o:0,rectHover:!0,style:a,onclick:u});p.ensureState("emphasis").style=s,e.add(p),ya(p)}}h(t.nextBtnPosition,"next",Object(l.c)(this._changeTimeline,this,c?"-":"+")),h(t.prevBtnPosition,"prev",Object(l.c)(this._changeTimeline,this,c?"+":"-")),h(t.playPosition,u?"stop":"play",Object(l.c)(this._handlePlayClick,this,!u),!0)},e.prototype._renderCurrentPointer=function(t,e,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,u={onCreate:function(t){t.draggable=!0,t.drift=Object(l.c)(s._handlePointerDrag,s),t.ondragend=Object(l.c)(s._handlePointerDragend,s),GE(t,s._progressLine,o,n,r,!0)},onUpdate:function(t){GE(t,s._progressLine,o,n,r)}};this._currentPointer=FE(a,a,this._mainGroup,{},this._currentPointer,u)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],r=Pn(this._axis.getExtent().slice());n>r[1]&&(n=r[1]),n=0&&(a[o]=+a[o].toFixed(h)),[a,c]}var eR={min:Object(l.h)(tR,"min"),max:Object(l.h)(tR,"max"),average:Object(l.h)(tR,"average"),median:Object(l.h)(tR,"median")};function nR(t,e){var n=t.getData(),r=t.coordinateSystem;if(e&&!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!Object(l.t)(e.coord)&&r){var i=r.dimensions,o=rR(e,n,r,t);if((e=Object(l.d)(e)).type&&eR[e.type]&&o.baseAxis&&o.valueAxis){var a=Object(l.r)(i,o.baseAxis.dim),s=Object(l.r)(i,o.valueAxis.dim),u=eR[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=u[0],e.value=u[1]}else{for(var c=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],h=0;h<2;h++)eR[c[h]]&&(c[h]=aR(n,n.mapDimension(i[h]),c[h]));e.coord=c}}return e}function rR(t,e,n,r){var i={};return null!=t.valueIndex||null!=t.valueDim?(i.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function iR(t,e){return!(t&&t.containData&&e.coord&&!JE(e))||t.containData(e.coord)}function oR(t,e){return t?function(t,n,r,i){return Uu(i<2?t.coord&&t.coord[i]:t.value,e[i])}:function(t,n,r,i){return Uu(t.value,e[i])}}function aR(t,e,n){if("average"===n){var r=0,i=0;return t.each(e,(function(t,e){isNaN(t)||(r+=t,i++)})),r/i}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var sR=lr(),lR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.init=function(){this.markerGroupMap=Object(l.f)()},e.prototype.render=function(t,e,n){var r=this,i=this.markerGroupMap;i.each((function(t){sR(t).keep=!1})),e.eachSeries((function(t){var i=KE.getMarkerModelFromSeries(t,r.type);i&&r.renderSeries(t,i,e,n)})),i.each((function(t){!sR(t).keep&&r.group.remove(t.group)}))},e.prototype.markKeep=function(t){sR(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(l.k)(t,(function(t){var r=KE.getMarkerModelFromSeries(t,n.type);r&&r.getData().eachItemGraphicEl((function(t){t&&(e?aa(t):sa(t))}))}))},e.type="marker",e}(qc);function uR(t,e,n){var r=e.coordinateSystem;t.each((function(i){var o,a=t.getItemModel(i),s=Tn(a.get("x"),n.getWidth()),l=Tn(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(r){var u=t.get(r.dimensions[0],i),c=t.get(r.dimensions[1],i);o=r.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(i,o)}))}var cR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=KE.getMarkerModelFromSeries(t,"markPoint");e&&(uR(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,u=s.get(o)||s.set(o,new Sm),c=function(t,e,n){var r;r=t?Object(l.H)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(l.m)(Object(l.m)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new om(r,n),o=Object(l.H)(n.get("data"),Object(l.h)(nR,e));t&&(o=Object(l.n)(o,Object(l.h)(iR,t)));var a=oR(!!t,r);return i.initData(o,null,a),i}(i,t,e);e.setData(c),uR(e.getData(),t,r),c.each((function(t){var n=c.getItemModel(t),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),u=n.getShallow("symbolKeepAspect");if(Object(l.w)(r)||Object(l.w)(i)||Object(l.w)(o)||Object(l.w)(s)){var h=e.getRawValue(t),p=e.getDataParams(t);Object(l.w)(r)&&(r=r(h,p)),Object(l.w)(i)&&(i=i(h,p)),Object(l.w)(o)&&(o=o(h,p)),Object(l.w)(s)&&(s=s(h,p))}var f=n.getModel("itemStyle").getItemStyle(),d=Hf(a,"color");f.fill||(f.fill=d),c.setItemVisual(t,{symbol:r,symbolSize:i,symbolRotate:o,symbolOffset:s,symbolKeepAspect:u,style:f})})),u.updateData(c),this.group.add(u.group),c.eachItemGraphicEl((function(t){t.traverse((function(t){Lo(t).dataModel=e}))})),this.markKeep(u),u.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(lR);var hR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(KE),pR=lr(),fR=function(t,e,n,r){var i,o=t.getData();if(Object(l.t)(r))i=r;else{var a=r.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=r.xAxis||null!=r.yAxis){var s=void 0,u=void 0;if(null!=r.yAxis||null!=r.xAxis)s=e.getAxis(null!=r.yAxis?"y":"x"),u=Object(l.O)(r.yAxis,r.xAxis);else{var c=rR(r,o,e,t);s=c.valueAxis,u=aR(o,fm(o,c.valueDataDim),a)}var h="x"===s.dim?0:1,p=1-h,f=Object(l.d)(r),d={coord:[]};f.type=null,f.coord=[],f.coord[p]=-1/0,d.coord[p]=1/0;var g=n.get("precision");g>=0&&Object(l.z)(u)&&(u=+u.toFixed(Math.min(g,20))),f.coord[h]=d.coord[h]=u,i=[f,d,{type:a,valueIndex:r.valueIndex,value:u}]}else i=[]}var v=[nR(t,i[0]),nR(t,i[1]),Object(l.m)({},i[2])];return v[2].type=v[2].type||null,Object(l.I)(v[2],v[0]),Object(l.I)(v[2],v[1]),v};function dR(t){return!isNaN(t)&&!isFinite(t)}function gR(t,e,n,r){var i=1-t,o=r.dimensions[t];return dR(e[i])&&dR(n[i])&&e[t]===n[t]&&r.getAxis(o).containData(e[t])}function vR(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(gR(1,n,r,t)||gR(0,n,r,t)))return!0}return iR(t,e[0])&&iR(t,e[1])}function yR(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=Tn(s.get("x"),i.getWidth()),u=Tn(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,h=t.get(c[0],e),p=t.get(c[1],e);o=a.dataToPoint([h,p])}if(Vm(a,"cartesian2d")){var f=a.getAxis("x"),d=a.getAxis("y");c=a.dimensions;dR(t.get(c[0],e))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):dR(t.get(c[1],e))&&(o[1]=d.toGlobalCoord(d.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var mR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=KE.getMarkerModelFromSeries(t,"markLine");if(e){var r=e.getData(),i=pR(e).from,o=pR(e).to;i.each((function(e){yR(i,e,!0,t,n),yR(o,e,!1,t,n)})),r.each((function(t){r.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,u=s.get(o)||s.set(o,new MC);this.group.add(u.group);var c=function(t,e,n){var r;r=t?Object(l.H)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(l.m)(Object(l.m)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new om(r,n),o=new om(r,n),a=new om([],n),s=Object(l.H)(n.get("data"),Object(l.h)(fR,e,t,n));t&&(s=Object(l.n)(s,Object(l.h)(vR,t)));var u=oR(!!t,r);return i.initData(Object(l.H)(s,(function(t){return t[0]})),null,u),o.initData(Object(l.H)(s,(function(t){return t[1]})),null,u),a.initData(Object(l.H)(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:i,to:o,line:a}}(i,t,e),h=c.from,p=c.to,f=c.line;pR(e).from=h,pR(e).to=p,e.setData(f);var d=e.get("symbol"),g=e.get("symbolSize"),v=e.get("symbolRotate"),y=e.get("symbolOffset");function m(e,n,i){var o=e.getItemModel(n);yR(e,n,i,t,r);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Hf(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(l.P)(o.get("symbolOffset",!0),y[i?0:1]),symbolRotate:Object(l.P)(o.get("symbolRotate",!0),v[i?0:1]),symbolSize:Object(l.P)(o.get("symbolSize"),g[i?0:1]),symbol:Object(l.P)(o.get("symbol",!0),d[i?0:1]),style:s})}Object(l.t)(d)||(d=[d,d]),Object(l.t)(g)||(g=[g,g]),Object(l.t)(v)||(v=[v,v]),Object(l.t)(y)||(y=[y,y]),c.from.each((function(t){m(h,t,!0),m(p,t,!1)})),f.each((function(t){var e=f.getItemModel(t).getModel("lineStyle").getLineStyle();f.setItemLayout(t,[h.getItemLayout(t),p.getItemLayout(t)]),null==e.stroke&&(e.stroke=h.getItemVisual(t,"style").fill),f.setItemVisual(t,{fromSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(t,"symbolOffset"),fromSymbolRotate:h.getItemVisual(t,"symbolRotate"),fromSymbolSize:h.getItemVisual(t,"symbolSize"),fromSymbol:h.getItemVisual(t,"symbol"),toSymbolKeepAspect:p.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(t,"symbolOffset"),toSymbolRotate:p.getItemVisual(t,"symbolRotate"),toSymbolSize:p.getItemVisual(t,"symbolSize"),toSymbol:p.getItemVisual(t,"symbol"),style:e})})),u.updateData(f),c.line.eachItemGraphicEl((function(t){Lo(t).dataModel=e,t.traverse((function(t){Lo(t).dataModel=e}))})),this.markKeep(u),u.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(lR);var bR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(KE),xR=lr(),_R=function(t,e,n,r){var i=nR(t,r[0]),o=nR(t,r[1]),a=i.coord,s=o.coord;a[0]=Object(l.O)(a[0],-1/0),a[1]=Object(l.O)(a[1],-1/0),s[0]=Object(l.O)(s[0],1/0),s[1]=Object(l.O)(s[1],1/0);var u=Object(l.J)([{},i,o]);return u.coord=[i.coord,o.coord],u.x0=i.x,u.y0=i.y,u.x1=o.x,u.y1=o.y,u};function wR(t){return!isNaN(t)&&!isFinite(t)}function SR(t,e,n,r){var i=1-t;return wR(e[i])&&wR(n[i])}function MR(t,e){var n=e.coord[0],r=e.coord[1],i={coord:n,x:e.x0,y:e.y0},o={coord:r,x:e.x1,y:e.y1};return Vm(t,"cartesian2d")?!(!n||!r||!SR(1,n,r)&&!SR(0,n,r))||function(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!JE(e)&&!JE(n))||t.containZone(e.coord,n.coord)}(t,i,o):iR(t,i)||iR(t,o)}function OR(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=Tn(s.get(n[0]),i.getWidth()),u=Tn(s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(t.getValues(n,e));else{var c=[f=t.get(n[0],e),d=t.get(n[1],e)];a.clampData&&a.clampData(c,c),o=a.dataToPoint(c,!0)}if(Vm(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),f=t.get(n[0],e),d=t.get(n[1],e);wR(f)?o[0]=h.toGlobalCoord(h.getExtent()["x0"===n[0]?0:1]):wR(d)&&(o[1]=p.toGlobalCoord(p.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var CR=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];var IR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=KE.getMarkerModelFromSeries(t,"markArea");if(e){var r=e.getData();r.each((function(e){var i=Object(l.H)(CR,(function(i){return OR(r,e,i,t,n)}));r.setItemLayout(e,i),r.getItemGraphicEl(e).setShape("points",i)}))}}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,u=s.get(o)||s.set(o,{group:new Mn});this.group.add(u.group),this.markKeep(u);var c=function(t,e,n){var r,i;if(t){var o=Object(l.H)(t&&t.dimensions,(function(t){var n=e.getData(),r=n.getDimensionInfo(n.mapDimension(t))||{};return Object(l.m)(Object(l.m)({},r),{name:t,ordinalMeta:null})}));i=Object(l.H)(["x0","y0","x1","y1"],(function(t,e){return{name:t,type:o[e%2].type}})),r=new om(i,n)}else r=new om(i=[{name:"value",type:"float"}],n);var a=Object(l.H)(n.get("data"),Object(l.h)(_R,e,t,n));t&&(a=Object(l.n)(a,Object(l.h)(MR,t)));var s=t?function(t,e,n,r){return Uu(t.coord[Math.floor(r/2)][r%2],i[r])}:function(t,e,n,r){return Uu(t.value,i[r])};return r.initData(a,null,s),r.hasItemOption=!0,r}(i,t,e);e.setData(c),c.each((function(e){var n=Object(l.H)(CR,(function(n){return OR(c,e,n,t,r)})),o=i.getAxis("x").scale,s=i.getAxis("y").scale,u=o.getExtent(),h=s.getExtent(),p=[o.parse(c.get("x0",e)),o.parse(c.get("x1",e))],f=[s.parse(c.get("y0",e)),s.parse(c.get("y1",e))];Pn(p),Pn(f);var d=!!(u[0]>p[1]||u[1]f[1]||h[1]=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(hl),AR=l.h,TR=l.k,DR=Mn;function PR(t,e,n,r){ER(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),jR(t,e,n,r)}function LR(t){for(var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;r0?2:0),TR(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?Ld(h,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]);"inherit"===u.stroke&&(u.stroke=r[c]);"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity);s(u,r);var p=e.getModel("lineStyle"),f=p.getLineStyle();if(s(f,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===f.stroke&&(f.stroke=r.fill),!o){var d=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===d?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),f.stroke=p.get("inactiveColor"),f.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}(u=m||u||"roundRect",r,a,s,p,g,h),x=new DR,_=r.getModel("textStyle");if(!l.w(t.getLegendIcon)||m&&"inherit"!==m){var w="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===v?t.getData().getVisual("symbolRotate"):v:0;x.add(function(t){var e=t.icon||"roundRect",n=ad(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:f,itemHeight:d,icon:u,iconRotate:w,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}else x.add(t.getLegendIcon({itemWidth:f,itemHeight:d,icon:u,iconRotate:v,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));var S="left"===o?f+5:-5,M=o,O=i.get("formatter"),C=e;l.C(O)&&O?C=O.replace("{name}",null!=e?e:""):l.w(O)&&(C=O(e));var I=r.get("inactiveColor");x.add(new Po({style:Ga(_,{text:C,x:S,y:d/2,fill:g?_.getTextColor():I,align:M,verticalAlign:"middle"})}));var k=new vo({shape:x.getBoundingRect(),invisible:!0}),A=r.getModel("tooltip");return A.get("show")&&Gp({el:k,componentModel:i,itemName:e,itemTooltipOption:A.option}),x.add(k),x.eachChild((function(t){t.silent=!0})),k.silent=!c,this.getContentGroup().add(x),ya(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();nl(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){nl("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],p=t.get("selectorButtonGap",!0),f=t.getOrient().index,d=0===f?"width":"height",g=0===f?"height":"width",v=0===f?"y":"x";"end"===o?h[f]+=l[d]+p:u[f]+=c[d]+p,h[1-f]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[d]=l[d]+p+c[d],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-f]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(qc);function NR(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;nn[i],g=[-p.x,-p.y];e||(g[r]=u[s]);var v=[0,0],y=[-f.x,-f.y],m=l.P(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?y[r]+=n[i]-f[i]:v[r]+=f[i]+m);y[1-r]+=p[o]/2-f[o]/2,u.setPosition(g),c.setPosition(v),h.setPosition(y);var b={x:0,y:0};if(b[i]=d?n[i]:p[i],b[o]=Math.max(p[o],f[o]),b[a]=Math.min(0,f[a]+y[1-r]),c.__rectSize=n[i],d){var x={x:0,y:0};x[i]=Math.max(n[i]-f[i]-m,0),x[o]=b[o],c.setClipPath(new vo({shape:x})),c.__rectSize=x[i]}else h.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(t);return null!=_.pageIndex&&Ta(u,{x:_.contentPosition[0],y:_.contentPosition[1]},d?t:null),this._updatePageInfoView(t,_),b},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;l.k(["pagePrev","pageNext"],(function(r){var i=null!=e[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",l.C(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=HR[i],a=WR[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,p={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var f=m(u);p.contentPosition[i]=-f.s;for(var d=s+1,g=f,v=f,y=null;d<=c;++d)(!(y=m(l[d]))&&v.e>g.s+r||y&&!b(y,g.s))&&(g=v.i>g.i?v:y)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),v=y;for(d=s-1,g=f,v=f,y=null;d>=-1;--d)(y=m(l[d]))&&b(v,y.s)||!(g.i=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(RR);function YR(t){Gg(BR),t.registerComponentModel(FR),t.registerComponentView(UR),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}(t)}var qR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="dataZoom.inside",e.defaultOption=ds(GL.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(GL),XR=lr();function $R(t,e,n){XR(t).coordSysRecordMap.each((function(t){var r=t.dataZoomInfoMap.get(e.uid);r&&(r.getRange=n)}))}function ZR(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function KR(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function QR(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function JR(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=XR(e),r=n.coordSysRecordMap||(n.coordSysRecordMap=Object(l.f)());r.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=BL(t);Object(l.k)(n.infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,function(t,e){var n={model:e,containsPoint:Object(l.h)(QR,e),dispatchAction:Object(l.h)(KR,t),dataZoomInfoMap:null,controller:null},r=n.controller=new Pw(t.getZr());return Object(l.k)(["pan","zoom","scrollMove"],(function(t){r.on(t,(function(e){var r=[];n.dataZoomInfoMap.each((function(i){if(e.isAvailableBehavior(i.model.option)){var o=(i.getRange||{})[t],a=o&&o(i.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!i.model.get("disabled",!0)&&a&&r.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}})),r.length&&n.dispatchAction(r)}))})),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(l.f)())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),r.each((function(t){var e,n=t.controller,i=t.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(e=i.get(o))}if(e){var a=function(t){var e,n={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each((function(t){var i=t.model,o=!i.get("disabled",!0)&&(!i.get("zoomLock",!0)||"move");n["type_"+o]>n["type_"+e]&&(e=o),r=r&&i.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(i);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),rf(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else ZR(r,t)}))}))}var tN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return a(e,t),e.prototype.render=function(e,n,r){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),$R(r,e,{pan:Object(l.c)(eN.pan,this),zoom:Object(l.c)(eN.zoom,this),scrollMove:Object(l.c)(eN.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=XR(t).coordSysRecordMap,r=n.keys(),i=0;i0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return vI(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:nN((function(t,e,n,r,i,o){var a=rN[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:nN((function(t,e,n,r,i,o){return rN[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,n).signal*(t[1]-t[0])*o.scrollDelta}))};function nN(t){return function(e,n,r,i){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return vI(t(a,s,e,n,r,i),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var rN={grid:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},iN=tN;function oN(t){KL(t),t.registerComponentModel(qR),t.registerComponentView(iN),JR(t)}var aN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=ds(GL.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(GL),sN=vo,lN=["line","bar","candlestick","scatter"],uN={easing:"cubicOut",duration:100,delay:0};function cN(t){return"vertical"===t?"ns-resize":"ew-resize"}var hN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return a(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(l.c)(this._onBrush,this),this._onBrushEnd=Object(l.c)(this._onBrushEnd,this)},e.prototype.render=function(e,n,r,i){if(t.prototype.render.apply(this,arguments),rf(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){of(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new Mn;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,r=this._findCoordRect(),i={width:e.getWidth(),height:e.getHeight()},o="horizontal"===this._orient?{right:i.width-r.x-r.width,top:i.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height},a=sl(t.option);Object(l.k)(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=o[t])}));var s=rl(a,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],"vertical"===this._orient&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr("horizontal"!==n||i?"horizontal"===n&&i?{scaleY:a?1:-1,scaleX:-1}:"vertical"!==n||i?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,r=t.get("brushSelect");n.add(new sN({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var i=new sN({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(l.c)(this._onClickPanel,this)}),o=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],r=t.series,i=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),a=o&&i.getDimensionInfo(o)?r.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=i.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var h,p=[0,e[1]],f=[0,e[0]],d=[[e[0],0],[0,0]],g=[],v=f[1]/(i.count()-1),y=0,m=Math.round(i.count()/e[0]);i.each([a],(function(t,e){if(m>0&&e%m)y+=v;else{var n=null==t||isNaN(t)||""===t,r=n?0:An(t,u,p,!0);n&&!h&&e?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(d.push([y,0]),g.push([y,0])),d.push([y,r]),g.push([y,r]),y+=v,h=n}})),s=this._shadowPolygonPts=d,l=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var b=this.dataZoomModel,x=0;x<3;x++){var _=w(1===x);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}function w(t){var e=b.getModel(t?"selectedDataBackground":"dataBackground"),n=new Mn,r=new Gh({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Uh({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,r=this.ecModel;return t.eachTargetAxis((function(i,o){var a=t.getAxisProxy(i,o).getTargetSeriesModels();Object(l.k)(a,(function(t){if(!(n||!0!==e&&Object(l.r)(lN,t.get("type"))<0)){var a,s=r.getComponent(NL(i),o).axis,u={x:"y",y:"x",radius:"angle",angle:"radius"}[i],c=t.coordinateSystem;null!=u&&c.getOtherAxis&&(a=c.getOtherAxis(s).inverse),u=t.getData().mapDimension(u),n={thisAxis:s,series:t,thisDim:i,otherDim:u,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],r=e.handleLabels=[null,null],i=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,u=a.get("borderRadius")||0,c=a.get("brushSelect"),h=e.filler=new sN({silent:c,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(h),i.add(new sN({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:u},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),Object(l.k)([0,1],(function(e){var o=a.get("handleIcon");!rd[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=ad(o,-1,0,2,2,null,!0);s.attr({cursor:cN(this._orient),draggable:!0,drift:Object(l.c)(this._onDragMove,this,e),ondragend:Object(l.c)(this._onDragEnd,this),onmouseover:Object(l.c)(this._showDataInfo,this,!0),onmouseout:Object(l.c)(this._showDataInfo,this,!1),z2:5});var u=s.getBoundingRect(),c=a.get("handleSize");this._handleHeight=Tn(c,this._size[1]),this._handleWidth=u.width/u.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),ya(s);var h=a.get("handleColor");null!=h&&(s.style.fill=h),i.add(n[e]=s);var p=a.getModel("textStyle");t.add(r[e]=new Po({silent:!0,invisible:!0,style:Ga(p,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:p.getTextColor(),font:p.getFont()}),z2:10}))}),this);var p=h;if(c){var f=Tn(a.get("moveHandleSize"),o[1]),d=e.moveHandle=new vo({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:f}}),g=.8*f,v=e.moveHandleIcon=ad(a.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);v.silent=!0,v.y=o[1]+f/2-.5,d.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(f,10));(p=e.moveZone=new vo({invisible:!0,shape:{y:o[1]-y,height:f+y}})).on("mouseover",(function(){s.enterEmphasis(d)})).on("mouseout",(function(){s.leaveEmphasis(d)})),i.add(d),i.add(v),i.add(p)}p.attr({draggable:!0,cursor:cN(this._orient),drift:Object(l.c)(this._onDragMove,this,"all"),ondragstart:Object(l.c)(this._showDataInfo,this,!0),ondragend:Object(l.c)(this._onDragEnd,this),onmouseover:Object(l.c)(this._showDataInfo,this,!0),onmouseout:Object(l.c)(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[An(t[0],[0,100],e,!0),An(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];vI(e,r,i,n.get("zoomLock")?"all":t,null!=o.minSpan?An(o.minSpan,a,i,!0):null,null!=o.maxSpan?An(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=Pn([An(r[0],i,a,!0),An(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,r=Pn(n.slice()),i=this._size;Object(l.k)([0,1],(function(t){var r=e.handles[t],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:i[1]/2-o/2})}),this),e.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,r[0],r[1],i[0]],u=0;ue[0]||n[1]<0||n[1]>e[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new it(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=Pn([An(n.x,r,i,!0),An(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Y(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new sN({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?uN:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=BL(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var r=this.api.getWidth(),i=this.api.getHeight();t={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return t},e.type="dataZoom.slider",e}(WL);function pN(t){t.registerComponentModel(aN),t.registerComponentView(hN),KL(t)}var fN={get:function(t,e,n){var r=l.d((dN[t]||{})[e]);return n&&l.t(r)?r[r.length-1]:r}},dN={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},gN=fN,vN=SO.mapVisual,yN=SO.eachVisual,mN=l.t,bN=l.k,xN=Pn,_N=An,wN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return a(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&vE(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=l.c(t,this),this.controllerVisuals=gE(this.option.controller,e,t),this.targetVisuals=gE(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=Zn(t),e},e.prototype.eachTargetSeries=function(t,e){l.k(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&t.call(e,r)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],l.t(t)&&(t=t.slice(),r=!0);var u=e?t:r?[c(t[0]),c(t[1])]:c(t);return l.C(s)?s.replace("{value}",r?u[0]:u).replace("{value2}",r?u[1]:u):l.w(s)?r?s(t[0],t[1]):s(t):r?t[0]===a[0]?n[0]+" "+u[1]:t[1]===a[1]?n[1]+" "+u[0]:u[0]+" - "+u[1]:u;function c(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=xN([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=t.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},r=e.target||(e.target={}),i=e.controller||(e.controller={});l.I(r,n),l.I(i,n);var o=this.isCategory();function a(n){mN(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,r),a.call(this,i),function(t,e,n){var r=t[e],i=t[n];r&&!i&&(i=t[n]={},bN(r,(function(t,e){if(SO.isValidType(e)){var n=gN.get(e,"inactive",o);null!=n&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}.call(this,r,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol()||"roundRect";bN(this.stateList,(function(a){var s=this.itemSize,u=t[a];u||(u=t[a]={color:o?r:[r]}),null==u.symbol&&(u.symbol=e&&l.d(e)||(o?i:[i])),null==u.symbolSize&&(u.symbolSize=n&&l.d(n)||(o?s[0]:[s[0],s[0]])),u.symbol=vN(u.symbol,(function(t){return"none"===t?i:t}));var c=u.symbolSize;if(null!=c){var h=-1/0;yN(c,(function(t){t>h&&(h=t)})),u.symbolSize=vN(c,(function(t){return _N(t,[0,h],[0,s[0]],!0)}))}}),this)}.call(this,i)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(hl),SN=[20,140];function MN(t,e,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,i=n[0],o=[],a=0;a<=200&&ie[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),l.k(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=Pn((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(e,n){t[0]<=e&&e<=t[1]&&r.push(n)}),this),e.push({seriesId:n.id,dataIndex:r})}),this),e},e.prototype.getVisualMeta=function(t){var e=MN(this,"outOfRange",this.getExtent()),n=MN(this,"inRange",this.option.range.slice()),r=[];function i(e,n){r.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:i/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Mn("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent();DN([0,1],(function(l){var u=i[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=TN(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var p=Pp(n.handleLabelPoints[l],Dp(u,this.group));o[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(t,"symbolSize"),p=TN(t,o,s,!0),f=a[0]-h/2,d={x:u.x,y:u.y};u.y=p,u.x=f;var g=Pp(l.indicatorLabelPoint,Dp(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),m="horizontal"===this._orient;v.setStyle({text:(n||"")+i.formatValueText(e),verticalAlign:m?y:"middle",align:m?"center":y});var b={x:f,y:p,style:{fill:c}},x={style:{x:g[0],y:g[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var _={duration:100,easing:"cubicInOut",additive:!0};u.x=d.x,u.y=d.y,u.animateTo(b,_),v.animateTo(x,_)}else u.attr(b),v.attr(x);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;Si[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||EN(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var p=function(t,e){var n={},r={};return i(t||[],n),i(e||[],r,n),[o(n),o(r)];function i(t,e,n){for(var r=0,i=t.length;r=0&&(i.dimension=o,r.push(i))}})),t.getData().setVisual("visualMeta",r)}}];function FN(t,e,n,r){for(var i=e.targetVisuals[r],o=SO.prepareVisualTypes(i),a={color:Hf(t.getData(),"color")},s=0,l=o.length;s0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(zN,BN),Object(l.k)(VN,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(HN))}function qN(t){t.registerComponentModel(ON),t.registerComponentView(NN),YN(t)}var XN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return a(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],$N[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual((function(t,e){"categories"===r?(t.mappingMethod="category",t.categories=l.d(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=l.H(this._pieceList,(function(t){return t=l.d(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},r=SO.listVisualTypes(),i=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}l.k(e.pieces,(function(t){l.k(r,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),l.k(n,(function(t,n){var r=!1;l.k(this.stateList,(function(t){r=r||o(e,t,n)||o(e.target,t,n)}),this),!r&&l.k(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=gN.get(n,"inRange"===t?"active":"inactive",i)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,r=this._pieceList,i=(e?n:t).selected||{};if(n.selected=i,l.k(r,(function(t,e){var n=this.getSelectedMapKey(t);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;l.k(r,(function(t,e){var n=this.getSelectedMapKey(t);i[n]&&(o?i[n]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=l.d(t)},e.prototype.getValueState=function(t){var e=SO.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(e,r){SO.findPieceIndex(e,n)===t&&i.push(r)}),this),e.push({seriesId:r.id,dataIndex:i})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),(o=i[i.length-1].interval[1])!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return l.k(i,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=t(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:e.push({value:i[0],color:s},{value:i[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=ds(wN.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(wN),$N={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function ZN(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var KN=XN,QN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return a(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=e.itemSize,u=this._getViewData(),c=u.endsText,h=l.O(e.get("showLabel",!0),!c);c&&this._renderEndsText(t,c[0],s,h,a),l.k(u.viewPieceList,(function(r){var u=r.piece,c=new Mn;c.onclick=l.c(this._onItemClick,this,u),this._enableHoverLink(c,r.indexInModelPieceList);var p=e.getRepresentValue(u);if(this._createItemSymbol(c,p,[0,0,s[0],s[1]]),h){var f=this.visualMapModel.getValueState(p);c.add(new Po({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:u.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===f?.5:1}}))}t.add(c)}),this),c&&this._renderEndsText(t,c[1],s,h,a),nl(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(t){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:t,batch:AN(r.findTargetDataIndices(e),r)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return kN(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,r,i){if(e){var o=new Mn,a=this.visualMapModel.textStyleModel;o.add(new Po({style:Ga(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=l.H(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),r=t.get("orient"),i=t.get("inverse");return("horizontal"===r?i:!i)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(ad(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,r=n.selectedMode;if(r){var i=l.d(n.selected),o=e.getSelectedMapKey(t);"single"===r||!0===r?(i[o]=!0,l.k(i,(function(t,e){i[e]=e===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},e.type="visualMap.piecewise",e}(CN);function JN(t){t.registerComponentModel(KN),t.registerComponentView(QN),YN(t)}var tz={label:{enabled:!0},decal:{show:!1}},ez=lr(),nz={};function rz(t,e){var n=t.getModel("aria");if(n.get("enabled")){var r=l.d(tz);l.I(r.label,t.getLocaleModel().get("aria"),!1),l.I(n.option,r,!1),function(){if(n.getModel("decal").get("show")){var e=l.f();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),ez(t).scope=n}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(l.w(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var r=Al(e.ecModel,e.name,nz,t.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",c(i,r))}else{var o=e.getRawData(),a={},s=ez(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var u=o.count();o.each((function(t){var r=a[t],i=o.getName(t)||t+"",l=Al(e.ecModel,i,s,u),h=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",c(h,l))}))}}function c(t,e){var n=t?l.m(l.m({},e),t):e;return n.dirty=!0,n}}))}}(),function(){var r=t.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=l.i(o.option,r),!o.get("enabled"))return;var a=e.getZr().dom;if(o.get("description"))return void a.setAttribute("aria-label",o.get("description"));var s,u=t.getSeriesCount(),c=o.get(["data","maxCount"])||10,h=o.get(["series","maxCount"])||10,p=Math.min(u,h);if(u<1)return;var f=function(){var e=t.get("title");e&&e.length&&(e=e[0]);return e&&e.text}();if(f){var d=o.get(["general","withTitle"]);s=i(d,{title:f})}else s=o.get(["general","withoutTitle"]);var g=[],v=u>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]);s+=i(v,{seriesCount:u}),t.eachSeries((function(e,n){if(n1?o.get(["series","multiple",a]):o.get(["series","single",a]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(b=e.subType,t.getLocaleModel().get(["series","typeNames"])[b]||"自定义图")});var s=e.getData();if(s.count()>c)r+=i(o.get(["data","partialData"]),{displayCnt:c});else r+=o.get(["data","allData"]);for(var l=o.get(["data","separator","middle"]),h=o.get(["data","separator","end"]),f=[],d=0;d":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},az=function(){function t(t){if(null==(this._condVal=Object(l.C)(t)?new RegExp(t):Object(l.B)(t)?t:null)){0,El("")}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(l.C)(e)?this._condVal.test(t):!!Object(l.z)(e)&&this._condVal.test(t+"")},t}(),sz=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),lz=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&l.push(e),e=[t,n]}function d(t,n,r,i){_z(t,r)&&_z(n,i)||e.push(t,n,r,i,r,i)}function g(t,n,r,i,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=nM:I2&&l.push(e),l}function Sz(t,e,n,r,i,o,a,s,l,u){if(_z(t,n)&&_z(e,r)&&_z(i,a)&&_z(o,s))l.push(a,s);else{var c=2/u,h=c*c,p=a-t,f=s-e,d=Math.sqrt(p*p+f*f);p/=d,f/=d;var g=n-t,v=r-e,y=i-a,m=o-s,b=g*g+v*v,x=y*y+m*m;if(b=0&&x-w*w=0)l.push(a,s);else{var S=[],M=[];$t(t,n,i,a,.5,S),$t(e,r,o,s,.5,M),Sz(S[0],M[0],S[1],M[1],S[2],M[2],S[3],M[3],l,u),Sz(S[4],M[4],S[5],M[5],S[6],M[6],S[7],M[7],l,u)}}}}function Mz(t,e,n){var r=t[e],i=t[1-e],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u0)for(u=0;uMath.abs(u),h=Mz([l,u],c?0:1,e),p=(c?s:u)/h.length,f=0;f1?null:new it(f*l+t,f*u+e)}function kz(t,e,n){var r=new it;it.sub(r,n,e),r.normalize();var i=new it;return it.sub(i,t,e),i.dot(r)}function Az(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function Tz(t){var e=t.points,n=[],r=[];ui(e,n,r);var i=new ft(n[0],n[1],r[0]-n[0],r[1]-n[1]),o=i.width,a=i.height,s=i.x,l=i.y,u=new it,c=new it;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),function(t,e,n){for(var r=t.length,i=[],o=0;oi,a=Mz([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,p=0;p0)for(var _=r/n,w=-r/2;w<=r/2;w+=_){var S=Math.sin(w),M=Math.cos(w),O=0;for(b=0;b0;l/=2){var u=0,c=0;(t&l)>0&&(u=1),(e&l)>0&&(c=1),s+=l*l*(3*u^c),0===c&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function Yz(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,o=Object(l.H)(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]}));return Object(l.H)(o,(function(o,a){return{cp:o,z:Uz(o[0],o[1],e,n,r,i),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function qz(t){return Lz(t.path,t.count)}function Xz(t){return Object(l.t)(t[0])}function $z(t,e){for(var n=[],r=t.length,i=0;i=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var Zz={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r0){var s,u,c=r.getModel("universalTransition").get("delay"),h=Object.assign({setToFinal:!0},a);Xz(t)&&(s=t,u=e),Xz(e)&&(s=e,u=t);for(var p=s?s===t:t.length>e.length,f=s?$z(u,s):$z(p?e:t,[p?t:e]),d=0,g=0;g1e4))for(var r=n.getIndices(),i=function(t){for(var e=t.dimensions,n=0;n0&&r.group.traverse((function(t){t instanceof to&&!t.animators.length&&t.animateFrom({style:{opacity:0}},i)}))}))}function aB(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function sB(t){return Object(l.t)(t)?t.sort().join(","):t}function lB(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function uB(t,e){for(var n=0;n=0&&i.push({data:e.oldData[n],divide:lB(e.oldData[n]),dim:t.dimension})})),Object(l.k)(Zn(t.to),(function(t){var e=uB(n.updatedSeries,t);if(e>=0){var r=n.updatedSeries[e].getData();o.push({data:r,divide:lB(r),dim:t.dimension})}})),i.length>0&&o.length>0&&oB(i,o,r)}(t,r,n,e)}));else{var o=function(t,e){var n=Object(l.f)(),r=Object(l.f)(),i=Object(l.f)();return Object(l.k)(t.oldSeries,(function(e,n){var o=t.oldData[n],a=aB(e),s=sB(a);r.set(s,o),Object(l.t)(a)&&Object(l.k)(a,(function(t){i.set(t,{data:o,key:s})}))})),Object(l.k)(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.getData(),o=aB(t),a=sB(o),s=r.get(a);if(s)n.set(a,{oldSeries:[{divide:lB(s),data:s}],newSeries:[{divide:lB(e),data:e}]});else if(Object(l.t)(o)){0;var u=[];Object(l.k)(o,(function(t){var e=r.get(t);e&&u.push({divide:lB(e),data:e})})),u.length&&n.set(a,{oldSeries:u,newSeries:[{data:e,divide:lB(e)}]})}else{var c=i.get(o);if(c){var h=n.get(c.key);h||(h={oldSeries:[{data:c.data,divide:lB(c.data)}],newSeries:[]},n.set(c.key,h)),h.newSeries.push({data:e,divide:lB(e)})}}}})),n}(r,n);Object(l.k)(o.keys(),(function(t){var n=o.get(t);oB(n.oldSeries,n.newSeries,e)}))}Object(l.k)(n.updatedSeries,(function(t){t.__universalTransitionEnabled&&(t.__universalTransitionEnabled=!1)}))}for(var a=t.getSeries(),s=r.oldSeries=[],u=r.oldData=[],c=0;c0?r:n)(t)}},"3c4e":function(t,e,n){"use strict";var r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===i}(t)}(t)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(t,e){var n;return e&&!0===e.clone&&r(t)?s((n=t,Array.isArray(n)?[]:{}),t,e):t}function a(t,e,n){var i=t.slice();return e.forEach((function(e,a){void 0===i[a]?i[a]=o(e,n):r(e)?i[a]=s(t[a],e,n):-1===t.indexOf(e)&&i.push(o(e,n))})),i}function s(t,e,n){var i=Array.isArray(e);return i===Array.isArray(t)?i?((n||{arrayMerge:a}).arrayMerge||a)(t,e,n):function(t,e,n){var i={};return r(t)&&Object.keys(t).forEach((function(e){i[e]=o(t[e],n)})),Object.keys(e).forEach((function(a){r(e[a])&&t[a]?i[a]=s(t[a],e[a],n):i[a]=o(e[a],n)})),i}(t,e,n):o(e,n)}s.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,n){return s(t,n,e)}))};var l=s;t.exports=l},"3f6b":function(t,e,n){t.exports={default:n("51b6"),__esModule:!0}},"41b2":function(t,e,n){"use strict";e.__esModule=!0;var r,i=n("3f6b"),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default||function(t){for(var e=1;e255?255:t}function a(t){return t<0?0:t>1?1:t}function s(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100):a(parseFloat(e))}function u(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function c(t,e,n){return t+(e-t)*n}function h(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new r.a(20),d=null;function g(t,e){d&&p(d,e),d=f.put(t,d||e.slice())}function v(t,e){if(t){e=e||[];var n=f.get(t);if(n)return p(e,n);var r=(t+="").replace(/ /g,"").toLowerCase();if(r in i)return p(e,i[r]),g(t,e),e;var o,a=r.length;if("#"===r.charAt(0))return 4===a||5===a?(o=parseInt(r.slice(1,4),16))>=0&&o<=4095?(h(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===a?parseInt(r.slice(4),16)/15:1),g(t,e),e):void h(e,0,0,0,1):7===a||9===a?(o=parseInt(r.slice(1,7),16))>=0&&o<=16777215?(h(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===a?parseInt(r.slice(7),16)/255:1),g(t,e),e):void h(e,0,0,0,1):void 0;var u=r.indexOf("("),c=r.indexOf(")");if(-1!==u&&c+1===a){var d=r.substr(0,u),v=r.substr(u+1,c-(u+1)).split(","),m=1;switch(d){case"rgba":if(4!==v.length)return 3===v.length?h(e,+v[0],+v[1],+v[2],1):h(e,0,0,0,1);m=l(v.pop());case"rgb":return v.length>=3?(h(e,s(v[0]),s(v[1]),s(v[2]),3===v.length?m:l(v[3])),g(t,e),e):void h(e,0,0,0,1);case"hsla":return 4!==v.length?void h(e,0,0,0,1):(v[3]=l(v[3]),y(v,e),g(t,e),e);case"hsl":return 3!==v.length?void h(e,0,0,0,1):(y(v,e),g(t,e),e);default:return}}h(e,0,0,0,1)}}function y(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=l(t[1]),i=l(t[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return h(e=e||[],o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function m(t,e){var n=v(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return S(n,4===n.length?"rgba":"rgb")}}function b(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),s=Math.ceil(r),l=e[i],u=e[s],h=r-i;return n[0]=o(c(l[0],u[0],h)),n[1]=o(c(l[1],u[1],h)),n[2]=o(c(l[2],u[2],h)),n[3]=a(c(l[3],u[3],h)),n}}function x(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),s=Math.ceil(r),l=v(e[i]),u=v(e[s]),h=r-i,p=S([o(c(l[0],u[0],h)),o(c(l[1],u[1],h)),o(c(l[2],u[2],h)),a(c(l[3],u[3],h))],"rgba");return n?{color:p,leftIndex:i,rightIndex:s,value:r}:p}}function _(t,e,n,r){var i,o=v(t);if(t)return o=function(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,p=((s-o)/6+l/2)/l;r===s?e=p-h:i===s?e=1/3+c-p:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}(o),null!=e&&(o[0]=(i=e,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(o[1]=l(n)),null!=r&&(o[2]=l(r)),S(y(o),"rgba")}function w(t,e){var n=v(t);if(n&&null!=e)return n[3]=a(e),S(n,"rgba")}function S(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function M(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}},"448a":function(t,e,n){var r=n("2236"),i=n("11b0"),o=n("6613"),a=n("0676");t.exports=function(t){return r(t)||i(t)||o(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},"45f2":function(t,e,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},"46bb":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.grid=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.grid;n=(0,u.deepMerge)((0,s.deepClone)(l.gridConfig,!0),n||{}),(0,a.doUpdate)({chart:t,series:[n],key:"grid",getGraphConfig:h})};var i=r(n("278c")),o=r(n("9523")),a=n("18ad"),s=n("5557"),l=n("9d85"),u=n("becb");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t,e){var n=t.animationCurve,r=t.animationFrame,a=t.rLevel,s=function(t,e){var n=(0,i.default)(e.chart.render.area,2),r=n[0],o=n[1],a=p(t.left,r),s=p(t.right,r),l=p(t.top,o),u=p(t.bottom,o);return{x:a,y:l,w:r-a-s,h:o-l-u}}(t,e),l=function(t){return t.style}(t);return e.chart.gridArea=function(t){for(var e=1;eu;)l.call(t,a=s[u++])&&e.push(a);return e}},"481b":function(t,e){t.exports={}},"49bc":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.gridConfig=void 0;e.gridConfig={left:"10%",right:"10%",top:60,bottom:60,style:{fill:"rgba(0, 0, 0, 0)"},rLevel:-30,animationCurve:"easeOutCubic",animationFrame:30}},"4ea4":function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},"4eb1":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.radar=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.series;n||(n=[]);var r=(0,p.initNeedSeries)(n,u.radarConfig,"radar");r=v(r=g(r=d(r,t),t),t),(0,l.doUpdate)({chart:t,series:r,key:"radar",getGraphConfig:y,getStartGraphConfig:m,beforeChange:_}),(0,l.doUpdate)({chart:t,series:r,key:"radarPoint",getGraphConfig:w,getStartGraphConfig:S}),(0,l.doUpdate)({chart:t,series:r,key:"radarLabel",getGraphConfig:C})};var i=r(n("9523")),o=r(n("7037")),a=r(n("278c")),s=r(n("448a")),l=n("18ad"),u=n("9d85"),c=n("5557"),h=n("a870"),p=n("becb");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t,e){var n=e.radarAxis;if(!n)return[];var r=n.indicator,i=n.axisLineAngles,o=n.radius,a=n.centerPos;return t.forEach((function(t){var e=t.data;t.dataRadius=[],t.radarPosition=r.map((function(n,r){var l=n.max,u=n.min,h=e[r];"number"!=typeof l&&(l=h),"number"!=typeof u&&(u=0),"number"!=typeof h&&(h=u);var p=(h-u)/(l-u)*o;return t.dataRadius[r]=p,c.getCircleRadianPoint.apply(void 0,(0,s.default)(a).concat([p,i[r]]))}))})),t}function g(t,e){var n=e.radarAxis;if(!n)return[];var r=n.centerPos,i=n.axisLineAngles;return t.forEach((function(t){var e=t.dataRadius,n=t.label.labelGap;t.labelPosition=e.map((function(t,e){return c.getCircleRadianPoint.apply(void 0,(0,s.default)(r).concat([t+n,i[e]]))}))})),t}function v(t,e){var n=e.radarAxis;if(!n)return[];var r=(0,a.default)(n.centerPos,2),i=r[0],o=r[1];return t.forEach((function(t){var e=t.labelPosition.map((function(t){var e=(0,a.default)(t,2),n=e[0],r=e[1];return{textAlign:n>i?"left":"right",textBaseline:r>o?"top":"bottom"}}));t.labelAlign=e})),t}function y(t){var e=t.animationCurve,n=t.animationFrame;return[{name:"polyline",index:t.rLevel,animationCurve:e,animationFrame:n,shape:b(t),style:x(t)}]}function m(t,e){var n=e.chart.radarAxis.centerPos,r=y(t)[0],i=r.shape.points.length,o=new Array(i).fill(0).map((function(t){return(0,s.default)(n)}));return r.shape.points=o,[r]}function b(t){return{points:t.radarPosition,close:!0}}function x(t){var e=t.radarStyle,n=t.color,r=(0,h.getRgbaValue)(n);r[3]=.5;var i={stroke:n,fill:(0,h.getColorFromRgbValue)(r)};return(0,p.deepMerge)(i,e)}function _(t,e){var n=e.shape,r=t.shape.points,i=r.length,o=n.points.length;if(o>i){var a=r.slice(-1)[0],l=new Array(o-i).fill(0).map((function(t){return(0,s.default)(a)}));r.push.apply(r,(0,s.default)(l))}else oe+r)&&!(l>n+i)))},e.getRotatePointPos=w,e.getScalePointPos=S,e.getTranslatePointPos=M,e.getDistanceBetweenPointAndLine=O,e.getCircleRadianPoint=C,e.getRegularPolygonPoints=I,e.default=void 0;var i=r(n("448a")),o=r(n("278c")),a=r(n("7037")),s=Math.abs,l=Math.sqrt,u=Math.sin,c=Math.cos,h=Math.max,p=Math.min,f=Math.PI;function d(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return t;var n=JSON.parse,r=JSON.stringify;if(!e)return n(r(t));var i=t instanceof Array?[]:{};if(t&&"object"===(0,a.default)(t))for(var o in t)t.hasOwnProperty(o)&&(t[o]&&"object"===(0,a.default)(t[o])?i[o]=d(t[o],!0):i[o]=t[o]);return i}function g(t){return t.map((function(t){var e=(0,o.default)(t,2),n=e[0],r=e[1];return[parseInt(n)+.5,parseInt(r)+.5]}))}function v(t,e,n,r){return y(t,[e,n])<=r}function y(t,e){var n=(0,o.default)(t,2),r=n[0],i=n[1],a=(0,o.default)(e,2),u=a[0],c=a[1],h=s(r-u),p=s(i-c);return l(h*h+p*p)}function m(t,e){for(var n=0,r=(0,o.default)(t,2),i=r[0],a=r[1],s=e.length,l=1,u=e[0];l<=s;l++){var c=e[l%s];if(i>p(u[0],c[0])&&i<=h(u[0],c[0])&&a<=h(u[1],c[1])&&u[0]!==c[0]){var f=(i-u[0])*(c[1]-u[1])/(c[0]-u[0])+u[1];(u[1]===c[1]||a<=f)&&n++}u=c}return n%2==1}function b(t,e,n,r,i,a,s){if(!t)return!1;if(y(t,[e,n])>r)return!1;if(!s){var l=d([a,i]),u=(0,o.default)(l,2);i=u[0],a=u[1]}var c=i>a;if(c){var h=[a,i];i=h[0],a=h[1]}var p=a-i;if(p>=2*f)return!0;var g=(0,o.default)(t,2),v=g[0],m=g[1],b=C(e,n,r,i),_=(0,o.default)(b,2),w=_[0],S=_[1],M=C(e,n,r,a),O=(0,o.default)(M,2),I=[v-e,m-n],k=[w-e,S-n],A=[O[0]-e,O[1]-n],T=p>f;if(T){var D=d([A,k]),P=(0,o.default)(D,2);k=P[0],A=P[1]}var L=x(k,I)&&!x(A,I);return T&&(L=!L),c&&(L=!L),L}function x(t,e){var n=(0,o.default)(t,2),r=n[0],i=n[1],a=(0,o.default)(e,2);return-i*a[0]+r*a[1]>0}function _(t,e,n){var r=n/2,a=e.map((function(t){var e=(0,o.default)(t,2);return[e[0],e[1]-r]})),s=e.map((function(t){var e=(0,o.default)(t,2);return[e[0],e[1]+r]}));return m(t,[].concat((0,i.default)(a),(0,i.default)(s.reverse())))}function w(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!e)return!1;if(t%360==0)return e;var r=(0,o.default)(e,2),i=r[0],a=r[1],s=(0,o.default)(n,2),l=s[0],h=s[1];return[(i-l)*c(t*=f/180)-(a-h)*u(t)+l,(i-l)*u(t)+(a-h)*c(t)+h]}function S(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[1,1],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!e)return!1;if(1===t)return e;var r=(0,o.default)(e,2),i=r[0],a=r[1],s=(0,o.default)(n,2),l=s[0],u=s[1],c=(0,o.default)(t,2),h=c[0],p=c[1],f=i-l,d=a-u;return[f*h+l,d*p+u]}function M(t,e){if(!t||!e)return!1;var n=(0,o.default)(e,2),r=n[0],i=n[1],a=(0,o.default)(t,2);return[r+a[0],i+a[1]]}function O(t,e,n){if(!t||!e||!n)return!1;var r=(0,o.default)(t,2),i=r[0],a=r[1],u=(0,o.default)(e,2),c=u[0],h=u[1],p=(0,o.default)(n,2),f=p[0],d=p[1],g=d-h,v=c-f;return s(g*i+v*a+(h*(f-c)-c*(d-h)))/l(g*g+v*v)}function C(t,e,n,r){return[t+c(r)*n,e+u(r)*n]}function I(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-.5*f,o=2*f/r,a=new Array(r).fill("").map((function(t,e){return e*o+i}));return a.map((function(r){return C(t,e,n,r)}))}var k={deepClone:d,eliminateBlur:g,checkPointIsInCircle:v,checkPointIsInPolygon:m,checkPointIsInSector:b,checkPointIsNearPolyline:_,getTwoPointDistance:y,getRotatePointPos:w,getScalePointPos:S,getTranslatePointPos:M,getCircleRadianPoint:C,getRegularPolygonPoints:I,getDistanceBetweenPointAndLine:O};e.default=k},5559:function(t,e,n){var r=n("dbdb")("keys"),i=n("62a0");t.exports=function(t){return r[t]||(r[t]=i(t))}},"56d7":function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"montionFilter",(function(){return k}));var i=n("2b0e"),o=(n("e118"),n("2877")),a=Object(o.a)({},(function(){var t=this._self._c;return t("div",{attrs:{id:"app"}},[t("router-view")],1)}),[],!1,null,"b2ea6534",null).exports,s=n("a18c"),l=n("2f62");i.default.use(l.a);const u=n("c653"),c=u.keys().reduce((t,e)=>{const n=e.replace(/^\.\/(.*)\.\w+$/,"$1"),r=u(e);return t[n]=r.default,t[n].namespaced=!0,t},{});var h=new l.a.Store({modules:c,state:{},mutations:{setCollapsed(t,e){}},actions:{getUserdata({commit:t}){}}}),p=n("6c29"),f=n("5c96"),d=n("313e"),g={name:"echart",props:{className:{type:String,default:"chart"},id:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},options:{type:Object,default:()=>({})}},data:()=>({chart:null}),watch:{options:{handler(t){this.chart.setOption(t,!0)},deep:!0}},mounted(){this.initChart()},beforeDestroy(){this.chart.dispose(),this.chart=null},methods:{initChart(){this.chart=d.c(this.$el),this.chart.setOption(this.options,!0)}}},v=Object(o.a)(g,(function(){return(0,this._self._c)("div",{class:this.className,style:{height:this.height,width:this.width},attrs:{id:this.id}})}),[],!1,null,null,null).exports,y={data:()=>({}),props:{title:{type:String,default:()=>""}},created(){},mounted(){},methods:{}},m=(n("9e6a"),Object(o.a)(y,(function(){var t=this._self._c;return t("dv-border-box-13",{staticClass:"lr_titles"},[""!==this.title?t("div",{staticClass:"item_title"},[t("div",{staticClass:"zuo"}),t("span",{staticClass:"title-inner"},[this._v("   "+this._s(this.title)+"   ")]),t("div",{staticClass:"you"})]):this._e(),t("div",{class:""!==this.title?"item_title_content":"item_title_content_def"},[this._t("default")],2)])}),[],!1,null,"0234f859",null).exports),b={data:()=>({visible:!1,text:"",type:"warning"}),props:{},created(){},mounted(){},methods:{init(t){clearTimeout(this.timer),this.visible=!0,this.text=t.text||"",this.type=t.type||"success",this.timer=setTimeout(()=>{this.visible=!1,clearTimeout(this.timer)},2e3)}}},x=(n("370c"),Object(o.a)(b,(function(){var t=this._self._c;return this.visible?t("div",{staticClass:"messages"},[t("svg",{staticClass:"message-icon",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"}},["warning"==this.type?t("path",{attrs:{fill:"currentColor",d:"M15 8A7 7 0 101 8a7 7 0 0014 0zM8.5 4v5.5h-1V4h1zm-1.1 7h1.2v1.2H7.4V11z","fill-opacity":"0.9"}}):this._e()]),this._v(" "+this._s(this.text)+" ")]):this._e()}),[],!1,null,"7b063040",null).exports),_={components:{},props:{lineHeight:{type:String,default:"200px"}},data:()=>({}),computed:{},methods:{init(){},getData(t){this.$emit("onclick",t)}},created(){},mounted(){},beforeDestroy(){}},w=(n("a5ee"),Object(o.a)(_,(function(){var t=this._self._c;return t("div",{staticClass:"reacquire flex justify-center blocks cursor-pointer",style:{lineHeight:this.lineHeight},on:{click:this.getData}},[t("span",[this._v(" 重新获取 ")])])}),[],!1,null,"c5e1cb54",null).exports),S=n("065a");let M,O=i.default.extend(x);var C=function(t){if(!i.default.prototype.$isServer)return M||(M=new O({data:{...t}}),M.$mount()),M.destroy=()=>(document.body.removeChild(M.$el),M&&M.$destroy(),M=null,null),M.init(t),document.body.appendChild(M.$el),M};["success","warning","info","error"].forEach(t=>{C[t]=e=>Object(S.a)(e)&&!Object(S.b)(e)?C({...e,type:t}):C({type:t,text:e})});var I=C;n("a0f0"),n("9eee"),n("9536");function k(t){return t?Number(t).toFixed(2):"--"}n("95233"),i.default.config.productionTip=!1,i.default.component("Echart",v),i.default.component("ItemWrap",m),i.default.component("Message",x),i.default.component("Reacquire",w),i.default.prototype.$Message=I,i.default.use(f.Radio),i.default.use(f.Button),i.default.use(f.RadioGroup),i.default.use(p.e),i.default.use(p.a),i.default.use(p.b),i.default.use(p.d),i.default.use(p.c),Object.keys(r).forEach(t=>i.default.filter(t,r[t])),new i.default({router:s.a,store:h,render:t=>t(a)}).$mount("#app")},"584a":function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"597f":function(t,e){t.exports=function(t,e,n,r){var i,o=0;return"boolean"!=typeof e&&(r=n,n=e,e=void 0),function(){var a=this,s=Number(new Date)-o,l=arguments;function u(){o=Number(new Date),n.apply(a,l)}function c(){i=void 0}r&&!i&&u(),i&&clearTimeout(i),void 0===r&&s>t?u():!0!==e&&(i=setTimeout(r?c:u,void 0===r?t-s:t))}}},"5a43":function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);nc;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},"60f1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.legendConfig=void 0;e.legendConfig={show:!0,orient:"horizontal",left:"auto",right:"auto",top:"auto",bottom:"auto",itemGap:10,iconWidth:25,iconHeight:10,selectAble:!0,data:[],textStyle:{fontFamily:"Arial",fontSize:13,fill:"#000"},iconStyle:{},textUnselectedStyle:{fontFamily:"Arial",fontSize:13,fill:"#999"},iconUnselectedStyle:{fill:"#999"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50}},"60f7":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.legend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.legend;n=n?[n=d(n=f(n=p(n=h(n=(0,c.deepMerge)((0,l.deepClone)(u.legendConfig,!0),n)),e,t),t),t)]:[];(0,s.doUpdate)({chart:t,series:n,key:"legendIcon",getGraphConfig:y}),(0,s.doUpdate)({chart:t,series:n,key:"legendText",getGraphConfig:x})};var i=r(n("9523")),o=r(n("278c")),a=r(n("7037")),s=n("18ad"),l=n("5557"),u=n("9d85"),c=n("becb");function h(t){var e=t.data;return t.data=e.map((function(t){var e=(0,a.default)(t);return"string"===e?{name:t}:"object"===e?t:{name:""}})),t}function p(t,e,n){var r=e.series,i=n.legendStatus,o=t.data.filter((function(t){var e=t.name,n=r.find((function(t){var n=t.name;return e===n}));return!!n&&(t.color||(t.color=n.color),t.icon||(t.icon=n.type),t)}));return i&&i.length===t.data.length||(i=new Array(t.data.length).fill(!0)),o.forEach((function(t,e){return t.status=i[e]})),t.data=o,n.legendStatus=i,t}function f(t,e){var n=e.render.ctx,r=t.data,i=t.textStyle,o=t.textUnselectedStyle;return r.forEach((function(t){var e=t.status,r=t.name;t.textWidth=function(t,e,n){return t.font=function(t){var e=t.fontFamily,n=t.fontSize;return"".concat(n,"px ").concat(e)}(n),t.measureText(e).width}(n,r,e?i:o)})),t}function d(t,e){return"vertical"===t.orient?function(t,e){var n=function(t,e){var n=t.left,r=t.right,i=e.render.area[0],o=[n,r].findIndex((function(t){return"auto"!==t}));if(-1===o)return[!0,i-10];var a=[n,r][o];return"number"!=typeof a&&(a=parseInt(a)/100*i),[Boolean(o),a]}(t,e),r=(0,o.default)(n,2),i=r[0],a=r[1],s=function(t,e){var n=t.iconHeight,r=t.itemGap,i=t.data,o=t.top,a=t.bottom,s=e.render.area[1],l=i.length,u=l*n+(l-1)*r,c=[o,a].findIndex((function(t){return"auto"!==t}));if(-1===c)return(s-u)/2;var h=[o,a][c];return"number"!=typeof h&&(h=parseInt(h)/100*s),1===c&&(h=s-h-u),h}(t,e);!function(t,e){var n=t.data,r=t.iconWidth,i=t.iconHeight,o=t.itemGap,a=i/2;n.forEach((function(t,n){var s=t.textWidth,l=(i+o)*n+a,u=e?0-r:0,c=e?u-5-s:r+5;t.iconPosition=[u,l],t.textPosition=[c,l]}))}(t,i);var l={textAlign:"left",textBaseline:"middle"};t.data.forEach((function(t){var e=t.textPosition,n=t.iconPosition;t.textPosition=v(e,[a,s]),t.iconPosition=v(n,[a,s]),t.align=l}))}(t,e):function(t,e){var n=t.iconHeight,r=t.itemGap,i=function(t,e){var n=t.data,r=t.iconWidth,i=e.render.area[0],o=0,a=[[]];return n.forEach((function(e,n){var s=g(o,n,t);s+r+5+e.textWidth>=i&&(s=g(o=n,n,t),a.push([])),e.iconPosition=[s,0],e.textPosition=[s+r+5,0],a.slice(-1)[0].push(e)})),a}(t,e),o=i.map((function(n){return function(t,e,n){var r=e.left,i=e.right,o=e.iconWidth,a=e.itemGap,s=n.render.area[0],l=t.length,u=(0,c.mulAdd)(t.map((function(t){return t.textWidth})))+l*(5+o)+(l-1)*a,h=[r,i].findIndex((function(t){return"auto"!==t}));return-1===h?(s-u)/2:0===h?"number"==typeof r?r:parseInt(r)/100*s:("number"!=typeof i&&(i=parseInt(i)/100*s),s-(u+i))}(n,t,e)})),a=function(t,e){var n=t.top,r=t.bottom,i=t.iconHeight,o=e.render.area[1],a=[n,r].findIndex((function(t){return"auto"!==t})),s=i/2;if(-1===a){var l=e.gridArea,u=l.y,c=l.h;return u+c+45-s}return 0===a?"number"==typeof n?n-s:parseInt(n)/100*o-s:("number"!=typeof r&&(r=parseInt(r)/100*o),o-r-s)}(t,e),s={textAlign:"left",textBaseline:"middle"};i.forEach((function(t,e){return t.forEach((function(t){var i=t.iconPosition,l=t.textPosition,u=o[e],c=a+e*(r+n);t.iconPosition=v(i,[u,c]),t.textPosition=v(l,[u,c]),t.align=s}))}))}(t,e),t}function g(t,e,n){var r=n.data,i=n.iconWidth,o=n.itemGap,a=r.slice(t,e);return(0,c.mulAdd)(a.map((function(t){return t.textWidth})))+(e-t)*(o+5+i)}function v(t,e){var n=(0,o.default)(t,2),r=n[0],i=n[1],a=(0,o.default)(e,2);return[r+a[0],i+a[1]]}function y(t,e){var n=t.data,r=t.selectAble,o=t.animationCurve,a=t.animationFrame,s=t.rLevel;return n.map((function(n,l){return(0,i.default)({name:"line"===n.icon?"lineIcon":"rect",index:s,visible:t.show,hover:r,click:r,animationCurve:o,animationFrame:a,shape:m(t,l),style:b(t,l)},"click",M(t,l,e))}))}function m(t,e){var n=t.data,r=t.iconWidth,i=t.iconHeight,a=(0,o.default)(n[e].iconPosition,2);return{x:a[0],y:a[1]-i/2,w:r,h:i}}function b(t,e){var n=t.data,r=t.iconStyle,i=t.iconUnselectedStyle,o=n[e],a=o.status,s=o.color,l=a?r:i;return(0,c.deepMerge)({fill:s},l)}function x(t,e){var n=t.data,r=t.selectAble,i=t.animationCurve,o=t.animationFrame,a=t.rLevel;return n.map((function(n,s){return{name:"text",index:a,visible:t.show,hover:r,animationCurve:i,animationFrame:o,hoverRect:S(t,s),shape:_(t,s),style:w(t,s),click:M(t,s,e)}}))}function _(t,e){var n=t.data[e],r=n.textPosition;return{content:n.name,position:r}}function w(t,e){var n=t.textStyle,r=t.textUnselectedStyle,i=t.data[e],o=i.status,a=i.align,s=o?n:r;return(0,c.deepMerge)((0,l.deepClone)(s,!0),a)}function S(t,e){var n=t.textStyle,r=t.textUnselectedStyle,i=t.data[e],a=i.status,s=(0,o.default)(i.textPosition,2),l=s[0],u=s[1],c=i.textWidth,h=(a?n:r).fontSize;return[l,u-h/2,c,h]}function M(t,e,n){var r=t.data[e].name;return function(){var t=n.chart,i=t.legendStatus,o=t.option,a=!i[e];o.series.find((function(t){return t.name===r})).show=a,i[e]=a,n.chart.setOption(o)}}},"62a0":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"63b6":function(t,e,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),l=function(t,e,n){var u,c,h,p=t&l.F,f=t&l.G,d=t&l.S,g=t&l.P,v=t&l.B,y=t&l.W,m=f?i:i[e]||(i[e]={}),b=m.prototype,x=f?r:d?r[e]:(r[e]||{}).prototype;for(u in f&&(n=e),n)(c=!p&&x&&void 0!==x[u])&&s(m,u)||(h=c?x[u]:n[u],m[u]=f&&"function"!=typeof x[u]?n[u]:v&&c?o(h,r):y&&x[u]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((m.virtual||(m.virtual={}))[u]=h,t&l.R&&b&&!b[u]&&a(b,u,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},6613:function(t,e,n){var r=n("5a43");t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},6718:function(t,e,n){var r=n("e53d"),i=n("584a"),o=n("b8e3"),a=n("ccb9"),s=n("d9f6").f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},"69d3":function(t,e,n){n("6718")("asyncIterator")},"6abf":function(t,e,n){var r=n("e6f3"),i=n("1691").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6c02":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"changeDefaultConfig",{enumerable:!0,get:function(){return o.changeDefaultConfig}}),e.default=void 0;var i=r(n("04fb")),o=n("9d85"),a=i.default;e.default=a},"6c1c":function(t,e,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;a.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),u=function(t,e){for(var n=0,r=Object.keys(e);n0},t}(),_="undefined"!=typeof WeakMap?new WeakMap:new n,w=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new x(e,n,this);_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){w.prototype[t]=function(){var e;return(e=_.get(this))[t].apply(e,arguments)}}));var S=void 0!==i.ResizeObserver?i.ResizeObserver:w;e.default=S}.call(this,n("c8ba"))},"6eb9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lineConfig=void 0;e.lineConfig={show:!0,name:"",stack:"",smooth:!1,xAxisIndex:0,yAxisIndex:0,data:[],lineStyle:{lineWidth:1},linePoint:{show:!0,radius:2,style:{fill:"#fff",lineWidth:1}},lineArea:{show:!1,gradient:[],style:{opacity:.5}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50}},7037:function(t,e){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},"71c1":function(t,e,n){var r=n("3a38"),i=n("25eb");t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),l=r(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},"726e":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return u})),n.d(e,"e",(function(){return c}));var r=12,i="sans-serif",o=r+"px "+i;var a,s,l=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)h=c*t.length;else for(var p=0;p1&&void 0!==arguments[1]?arguments[1]:{},n=e.series;n||(n=[]);var r=(0,h.initNeedSeries)(n,u.pieConfig,"pie");r=w(r=_(r=x(r=b(r=y(r=v(r=d(r=f(r,t),t),t)))))),(0,l.doUpdate)({chart:t,series:r,key:"pie",getGraphConfig:I,getStartGraphConfig:k,beforeChange:A}),(0,l.doUpdate)({chart:t,series:r,key:"pieInsideLabel",getGraphConfig:P}),(0,l.doUpdate)({chart:t,series:r,key:"pieOutsideLabelLine",getGraphConfig:E,getStartGraphConfig:R}),(0,l.doUpdate)({chart:t,series:r,key:"pieOutsideLabel",getGraphConfig:B,getStartGraphConfig:V})};var i=r(n("9523")),o=r(n("7037")),a=r(n("278c")),s=r(n("448a")),l=n("18ad"),u=n("222a"),c=n("5557"),h=n("becb");function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t,e){var n=e.render.area;return t.forEach((function(t){var e=t.center;e=e.map((function(t,e){return"number"==typeof t?t:parseInt(t)/100*n[e]})),t.center=e})),t}function d(t,e){var n=Math.min.apply(Math,(0,s.default)(e.render.area))/2;return t.forEach((function(t){var e=t.radius,r=t.data;e=g(e,n),r.forEach((function(t){var r=t.radius;r||(r=e),r=g(r,n),t.radius=r})),t.radius=e})),t}function g(t,e){return t instanceof Array||(t=[0,t]),t=t.map((function(t){return"number"==typeof t?t:parseInt(t)/100*e}))}function v(t,e){return t.filter((function(t){return t.roseType})).forEach((function(t){var e=t.radius,n=t.data,r=t.roseSort,i=function(t){var e=t.radius,n=t.roseIncrement;if("number"==typeof n)return n;if("auto"===n){var r=t.data,i=r.reduce((function(t,e){var n=e.radius;return[].concat((0,s.default)(t),(0,s.default)(n))}),[]),o=Math.min.apply(Math,(0,s.default)(i));return.6*(Math.max.apply(Math,(0,s.default)(i))-o)/(r.length-1||1)}return parseInt(n)/100*e[1]}(t),o=(0,s.default)(n);(n=function(t){return t.sort((function(t,e){var n=t.value,r=e.value;return n===r?0:n>r?-1:n1&&void 0!==arguments[1]?arguments[1]:0,n=t.toString(),r=n.split("."),i=r[1]||"0",o=i.slice(0,e);return r[1]=o,parseFloat(r.join("."))}function b(t){return t.forEach((function(t){var e=t.startAngle,n=t.data;n.forEach((function(t,r){var i=function(t,e){var n=2*Math.PI,r=t.slice(0,e+1),i=(0,h.mulAdd)(r.map((function(t){return t.percent}))),o=t[e].percent;return[n*(i-o)/100,n*i/100]}(n,r),o=(0,a.default)(i,2),s=o[0],l=o[1];t.startAngle=e+s,t.endAngle=e+l}))})),t}function x(t){return t.forEach((function(t){t.data.forEach((function(e){e.insideLabelPos=function(t,e){var n=t.center,r=e.startAngle,i=e.endAngle,o=(0,a.default)(e.radius,2),l=o[0],u=o[1],h=(l+u)/2,p=(r+i)/2;return c.getCircleRadianPoint.apply(void 0,(0,s.default)(n).concat([h,p]))}(t,e)}))})),t}function _(t){return t.forEach((function(t){var e=t.data,n=t.center;e.forEach((function(t){var e=t.startAngle,r=t.endAngle,i=t.radius,o=(e+r)/2,a=c.getCircleRadianPoint.apply(void 0,(0,s.default)(n).concat([i[1],o]));t.edgeCenterPos=a}))})),t}function w(t){return t.forEach((function(t){var e=M(t),n=M(t,!1);e=O(e),n=O(n),C(e,t),C(n,t,!1)})),t}function S(t){var e=t.outsideLabel.labelLineBendGap,n=function(t){var e=t.data.map((function(t){var e=(0,a.default)(t.radius,2);e[0];return e[1]}));return Math.max.apply(Math,(0,s.default)(e))}(t);return"number"!=typeof e&&(e=parseInt(e)/100*n),e+n}function M(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.data,r=t.center,i=r[0];return n.filter((function(t){var n=t.edgeCenterPos[0];return e?n<=i:n>i}))}function O(t){return t.sort((function(t,e){var n=(0,a.default)(t.edgeCenterPos,2),r=(n[0],n[1]),i=(0,a.default)(e.edgeCenterPos,2),o=(i[0],i[1]);return r>o?1:r2&&void 0!==arguments[2])||arguments[2],r=e.center,i=e.outsideLabel,o=S(e);t.forEach((function(t){var e=t.edgeCenterPos,a=t.startAngle,l=t.endAngle,u=i.labelLineEndLength,p=(a+l)/2,f=c.getCircleRadianPoint.apply(void 0,(0,s.default)(r).concat([o,p])),d=(0,s.default)(f);d[0]+=u*(n?-1:1),t.labelLine=[e,f,d],t.labelLineLength=(0,h.getPolylineLength)(t.labelLine),t.align={textAlign:"left",textBaseline:"middle"},n&&(t.align.textAlign="right")}))}function I(t){var e=t.data,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"pie",index:i,animationCurve:n,animationFrame:r,shape:T(t,o),style:D(t,o)}}))}function k(t){var e=t.animationDelayGap,n=t.startAnimationCurve,r=I(t);return r.forEach((function(t,r){t.animationCurve=n,t.animationDelay=r*e,t.shape.or=t.shape.ir})),r}function A(t){t.animationDelay=0}function T(t,e){var n=t.center,r=t.data[e],i=r.radius;return{startAngle:r.startAngle,endAngle:r.endAngle,ir:i[0],or:i[1],rx:n[0],ry:n[1]}}function D(t,e){var n=t.pieStyle,r=t.data[e].color;return(0,h.deepMerge)({fill:r},n)}function P(t){var e=t.animationCurve,n=t.animationFrame,r=t.data,i=t.rLevel;return r.map((function(r,o){return{name:"text",index:i,visible:t.insideLabel.show,animationCurve:e,animationFrame:n,shape:L(t,o),style:j(t,o)}}))}function L(t,e){var n=t.insideLabel,r=t.data,i=n.formatter,a=r[e],s=(0,o.default)(i),l="";return"string"===s&&(l=(l=(l=i.replace("{name}",a.name)).replace("{percent}",a.percentForLabel)).replace("{value}",a.value)),"function"===s&&(l=i(a)),{content:l,position:a.insideLabelPos}}function j(t,e){return t.insideLabel.style}function E(t){var e=t.animationCurve,n=t.animationFrame,r=t.data,i=t.rLevel;return r.map((function(r,o){return{name:"polyline",index:i,visible:t.outsideLabel.show,animationCurve:e,animationFrame:n,shape:N(t,o),style:z(t,o)}}))}function R(t){var e=t.data,n=E(t);return n.forEach((function(t,n){t.style.lineDash=[0,e[n].labelLineLength]})),n}function N(t,e){return{points:t.data[e].labelLine}}function z(t,e){var n=t.outsideLabel,r=t.data,i=n.labelLineStyle,o=r[e].color;return(0,h.deepMerge)({stroke:o,lineDash:[r[e].labelLineLength,0]},i)}function B(t){var e=t.animationCurve,n=t.animationFrame,r=t.data,i=t.rLevel;return r.map((function(r,o){return{name:"text",index:i,visible:t.outsideLabel.show,animationCurve:e,animationFrame:n,shape:F(t,o),style:G(t,o)}}))}function V(t){var e=t.data,n=B(t);return n.forEach((function(t,n){t.shape.position=e[n].labelLine[1]})),n}function F(t,e){var n=t.outsideLabel,r=t.data,i=n.formatter,a=r[e],s=a.labelLine,l=a.name,u=a.percentForLabel,c=a.value,h=(0,o.default)(i),p="";return"string"===h&&(p=(p=(p=i.replace("{name}",l)).replace("{percent}",u)).replace("{value}",c)),"function"===h&&(p=i(r[e])),{content:p,position:s[2]}}function G(t,e){var n=t.outsideLabel,r=t.data[e],o=r.color,a=r.align,s=n.style;return(0,h.deepMerge)(function(t){for(var e=1;e-1){var n=Object(i.g)(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function l(t){return t<1e-4&&t>-1e-4}function u(t){return a(1e3*t)/1e3}function c(t){return a(1e4*t)/1e4}function h(t){return"matrix("+u(t[0])+","+u(t[1])+","+u(t[2])+","+u(t[3])+","+c(t[4])+","+c(t[5])+")"}var p={left:"start",right:"end",center:"middle",middle:"middle"};function f(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function d(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function g(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function v(t){return t&&!!t.image}function y(t){return v(t)||function(t){return t&&!!t.svgElement}(t)}function m(t){return"linear"===t.type}function b(t){return"radial"===t.type}function x(t){return t&&("linear"===t.type||"radial"===t.type)}function _(t){return"url(#"+t+")"}function w(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function S(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*r.a,o=Object(r.P)(t.scaleX,1),s=Object(r.P)(t.scaleY,1),l=t.skewX||0,u=t.skewY||0,c=[];return(e||n)&&c.push("translate("+e+"px,"+n+"px)"),i&&c.push("rotate("+i+")"),1===o&&1===s||c.push("scale("+o+","+s+")"),(l||u)&&c.push("skew("+a(l*r.a)+"deg, "+a(u*r.a)+"deg)"),c.join(" ")}var M=o.a.hasGlobalWindow&&Object(r.w)(window.btoa)?function(t){return window.btoa(unescape(t))}:void 0!==t?function(e){return t.from(e).toString("base64")}:function(t){return null}}).call(this,n("b639").Buffer)},"7b3e":function(t,e,n){"use strict";var r,i=n("a3de");i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")) /** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @param {?boolean} capture Check if the capture phase is supported. * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */,t.exports=function(t,e){if(!i.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===t&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}},"7e90":function(t,e,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,l=0;s>l;)r.f(t,n=a[l++],e[n]);return t}},"7ec2":function(t,e,n){var r=n("7037").default;function i(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var e,n={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",h=l.toStringTag||"@@toStringTag";function p(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(e){p=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,o=Object.create(i.prototype),a=new P(r||[]);return s(o,"_invoke",{value:k(t,n,a)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var g="suspendedStart",v="executing",y="completed",m={};function b(){}function x(){}function _(){}var w={};p(w,u,(function(){return this}));var S=Object.getPrototypeOf,M=S&&S(S(L([])));M&&M!==o&&a.call(M,u)&&(w=M);var O=_.prototype=b.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){function n(i,o,s,l){var u=d(t[i],t,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==r(h)&&a.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}))}l(u.arg)}var i;s(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function k(t,n,r){var i=g;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===g)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var u=d(t,n,r);if("normal"===u.type){if(i=r.done?y:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=y,r.method="throw",r.arg=u.arg)}}}function A(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(t){if(t||""===t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(l&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),D(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;D(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},n}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},8436:function(t,e){t.exports=function(){}},"85c4":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("9523")),o=r(n("448a")),a=r(n("970b")),s=r(n("a870")),l=r(n("050c")),u=n("5557"),c=r(n("b06d")),h=r(n("eb53"));function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var f=function t(e){if((0,a.default)(this,t),e){var n=e.getContext("2d"),r=e.clientWidth,i=e.clientHeight,o=[r,i];e.setAttribute("width",r),e.setAttribute("height",i),this.ctx=n,this.area=o,this.animationStatus=!1,this.graphs=[],this.color=s.default,this.bezierCurve=l.default,e.addEventListener("mousedown",g.bind(this)),e.addEventListener("mousemove",v.bind(this)),e.addEventListener("mouseup",y.bind(this))}else console.error("CRender Missing parameters!")};function d(t,e){var n=this.graphs;!function(t){return t.find((function(t){return!t.animationPause&&t.animationFrameState.length}))}(n)?t():(n.forEach((function(t){return t.turnNextAnimationFrame(e)})),this.drawAllGraph(),requestAnimationFrame(d.bind(this,t,e)))}function g(t){var e=this.graphs.find((function(t){return"hover"===t.status}));e&&(e.status="active")}function v(t){var e=[t.offsetX,t.offsetY],n=this.graphs,r=n.find((function(t){return"active"===t.status||"drag"===t.status}));if(r){if(!r.drag)return;return"function"!=typeof r.move?void console.error("No move method is provided, cannot be dragged!"):(r.moveProcessor(t),void(r.status="drag"))}var i=n.find((function(t){return"hover"===t.status})),o=n.filter((function(t){return t.hover&&("function"==typeof t.hoverCheck||t.hoverRect)})).find((function(t){return t.hoverCheckProcessor(e,t)}));document.body.style.cursor=o?o.style.hoverCursor:"default";var a=!1,s=!1;if(i&&(a="function"==typeof i.mouseOuter),o&&(s="function"==typeof o.mouseEnter),o||i){if(!o&&i)return a&&i.mouseOuter(t,i),void(i.status="static");if(!o||o!==i)return o&&!i?(s&&o.mouseEnter(t,o),void(o.status="hover")):void(o&&i&&o!==i&&(a&&i.mouseOuter(t,i),i.status="static",s&&o.mouseEnter(t,o),o.status="hover"))}}function y(t){var e=this.graphs,n=e.find((function(t){return"active"===t.status})),r=e.find((function(t){return"drag"===t.status}));n&&"function"==typeof n.click&&n.click(t,n),e.forEach((function(t){return t&&(t.status="static")})),n&&(n.status="hover"),r&&(r.status="hover")}e.default=f,f.prototype.clearArea=function(){var t,e=this.area;(t=this.ctx).clearRect.apply(t,[0,0].concat((0,o.default)(e)))},f.prototype.add=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.name;if(e){var n=c.default.get(e);if(n){var r=new h.default(n,t);if(r.validator(r))return r.render=this,this.graphs.push(r),this.sortGraphsByIndex(),this.drawAllGraph(),r}else console.warn("No corresponding graph configuration found!")}else console.error("add Missing parameters!")},f.prototype.sortGraphsByIndex=function(){this.graphs.sort((function(t,e){return t.index>e.index?1:t.index===e.index?0:t.index1&&void 0!==arguments[1]?arguments[1]:{},n=[];e.title&&(n[0]=(0,l.deepMerge)((0,a.deepClone)(s.titleConfig,!0),e.title));(0,o.doUpdate)({chart:t,series:n,key:"title",getGraphConfig:u})};var i=r(n("278c")),o=n("18ad"),a=n("5557"),s=n("9d85"),l=n("becb");function u(t,e){var n=s.titleConfig.animationCurve,r=s.titleConfig.animationFrame,o=s.titleConfig.rLevel,a=function(t,e){var n=t.offset,r=t.text,o=e.chart.gridArea,a=o.x,s=o.y,l=o.w,u=(0,i.default)(n,2),c=u[0],h=u[1];return{content:r,position:[a+l/2+c,s+h]}}(t,e),l=function(t){return t.style}(t);return[{name:"text",index:o,visible:t.show,animationCurve:n,animationFrame:r,shape:a,style:l}]}},"887c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.titleConfig=void 0;e.titleConfig={show:!0,text:"",offset:[0,-20],style:{fill:"#333",fontSize:17,fontWeight:"bold",textAlign:"center",textBaseline:"bottom"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50}},"8a1d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeColor=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,i.deepClone)(r.colorConfig,!0),a=e.color,s=e.series;s||(s=[]);a||(a=[]);if(e.color=a=(0,o.deepMerge)(n,a),!s.length)return;var l=a.length;s.forEach((function(t,e){t.color||(t.color=a[e%l])}));var u=s.filter((function(t){return"pie"===t.type}));u.forEach((function(t){return t.data.forEach((function(t,e){return t.color=a[e%l]}))}));var c=s.filter((function(t){return"gauge"===t.type}));c.forEach((function(t){return t.data.forEach((function(t,e){return t.color=a[e%l]}))}));var h=s.filter((function(t){var e=t.type,n=t.independentColor;return"bar"===e&&n}));h.forEach((function(t){t.independentColors||(t.independentColors=a)}))};var r=n("9d85"),i=n("5557"),o=n("becb")},"8e60":function(t,e,n){t.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8eb7":function(t,e){var n,r,i,o,a,s,l,u,c,h,p,f,d,g,v,y=!1;function m(){if(!y){y=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),m=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(f=/\b(iPhone|iP[ao]d)/.exec(t),d=/\b(iP[ao]d)/.exec(t),h=/Android/i.exec(t),g=/FBAN\/\w+;/i.exec(t),v=/Mobile/i.exec(t),p=!!/Win64/.exec(t),e){(n=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(t);s=b?parseFloat(b[1])+4:n,r=e[2]?parseFloat(e[2]):NaN,i=e[3]?parseFloat(e[3]):NaN,(o=e[4]?parseFloat(e[4]):NaN)?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),a=e&&e[1]?parseFloat(e[1]):NaN):a=NaN}else n=r=i=a=o=NaN;if(m){if(m[1]){var x=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);l=!x||parseFloat(x[1].replace("_","."))}else l=!1;u=!!m[2],c=!!m[3]}else l=u=c=!1}}var b={ie:function(){return m()||n},ieCompatibilityMode:function(){return m()||s>n},ie64:function(){return b.ie()&&p},firefox:function(){return m()||r},opera:function(){return m()||i},webkit:function(){return m()||o},safari:function(){return b.webkit()},chrome:function(){return m()||a},windows:function(){return m()||u},osx:function(){return m()||l},linux:function(){return m()||c},iphone:function(){return m()||f},mobile:function(){return m()||f||d||h||v},nativeApp:function(){return m()||g},android:function(){return m()||h},ipad:function(){return m()||d}};t.exports=b},"8f47":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.transition=s,e.injectNewCurve=function(t,e){if(!t||!e)return void console.error("InjectNewCurve Missing Parameters!");a.default.set(t,e)},e.default=void 0;var i=r(n("278c")),o=r(n("7037")),a=r(n("df83"));function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!l.apply(void 0,arguments))return!1;try{var o=u(t),a=c(o,r);return i&&"number"!=typeof n?f(e,n,a):h(e,n,a)}catch(t){return console.warn("Transition parameter may be abnormal!"),[n]}}function l(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30;if(!t||!1===e||!1===n||!r)return console.error("transition: Missing Parameters!"),!1;if((0,o.default)(e)!==(0,o.default)(n))return console.error("transition: Inconsistent Status Types!"),!1;var i=(0,o.default)(n);return"string"!==i&&"boolean"!==i&&t.length?(a.default.has(t)||t instanceof Array||console.warn("transition: Transition curve not found, default curve will be used!"),!0):(console.error("transition: Unsupported Data Type of State!"),!1)}function u(t){return a.default.has(t)?a.default.get(t):t instanceof Array?t:a.default.get("linear")}function c(t,e){var n=1/(e-1);return new Array(e).fill(0).map((function(t,e){return e*n})).map((function(e){return function(t,e){var n=function(t,e){var n=t.length-1,r="",i="";t.findIndex((function(o,a){if(a!==n){r=o,i=t[a+1];var s=r[0][0],l=i[0][0];return e>=s&&e */ e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,h=n?i-1:0,p=n?-1:1,f=t[e+h];for(h+=p,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=u}return(f?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?p/l:p*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=d,s/=256,i-=8);for(a=a<0;t[n+f]=255&a,f+=d,a/=256,u-=8);t[n+f-d]|=128*g}},"92fa":function(t,e){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,e){var i,o,a,s,l;for(a in e)if(i=t[a],o=e[a],i&&n.test(a))if("class"===a&&("string"==typeof i&&(l=i,t[a]=i={},i[l]=!0),"string"==typeof o&&(l=o,e[a]=o={},o[l]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)i[s]=r(i[s],o[s]);else if(Array.isArray(i))t[a]=i.concat(o);else if(Array.isArray(o))t[a]=[i].concat(o);else for(s in o)i[s]=o[s];else t[a]=e[a];return t}),{})}},9306:function(t,e,n){"use strict";var r=n("8e60"),i=n("c3a1"),o=n("9aa9"),a=n("355d"),s=n("241e"),l=n("335c"),u=Object.assign;t.exports=!u||n("294c")((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r}))?function(t,e){for(var n=s(t),u=arguments.length,c=1,h=o.f,p=a.f;u>c;)for(var f,d=l(arguments[c++]),g=h?i(d).concat(h(d)):i(d),v=g.length,y=0;v>y;)f=g[y++],r&&!p.call(d,f)||(n[f]=d[f]);return n}:u},9523:function(t,e,n){var r=n("a395");t.exports=function(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},95233:function(t,e,n){"use strict";n.r(e);var r=n("96eb"),i=n.n(r);i.a.setup({timeout:"200-600"});i.a.Random;i.a.mock(new RegExp("countUserNum"),"get",(function(){const t=i.a.mock({success:!0,data:{offlineNum:"@integer(1, 100)",lockNum:"@integer(1, 10)",totalNum:218}});return t.data.onlineNum=t.data.totalNum-t.data.offlineNum-t.data.lockNum,t})),i.a.mock(new RegExp("countDeviceNum"),"get",(function(){const t=i.a.mock({success:!0,data:{alarmNum:"@integer(100, 1000)",offlineNum:"@integer(0, 50)",totalNum:698}});return t.data.onlineNum=t.data.totalNum-t.data.offlineNum,t})),i.a.mock(new RegExp("sbtx"),"get",(function(){return i.a.mock({success:!0,data:{"list|20":[{provinceName:"@province()",cityName:"@city()",countyName:"@county()",createTime:"@datetime('yyyy-MM-dd HH:mm:ss')",deviceId:"6c512d754bbcd6d7cd86abce0e0cac58","gatewayno|+1":1e4,"onlineState|1":[0,1]}]}})})),i.a.mock(new RegExp("centermap"),"get",(function(t){let e=function(t){var e={};if(/\?/.test(t)){for(var n=t.substring(t.indexOf("?")+1).split("&"),r=0;r{!n[t.name]&&e.length<8&&(n[t.name]=!0,e.push(t))}),{success:!0,data:e.sort((t,e)=>e.value-t.value)}}))},9536:function(t,e,n){},9619:function(t,e,n){var r=n("597f"),i=n("0e15");t.exports={throttle:r,debounce:i}},"96eb":function(module,exports,__webpack_require__){var factory;factory=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){var r,i=n(1),o=n(3),a=n(5),s=n(20),l=n(23),u=n(25);"undefined"!=typeof window&&(r=n(27) /*! Mock - 模拟请求 & 模拟数据 https://github.com/nuysoft/Mock 墨智 mozhi.gyy@taobao.com nuysoft@gmail.com */);var c={Handler:i,Random:a,Util:o,XHR:r,RE:s,toJSONSchema:l,valid:u,heredoc:o.heredoc,setup:function(t){return r.setup(t)},_mocked:{},version:"1.0.1-beta3"};r&&(r.Mock=c),c.mock=function(t,e,n){return 1===arguments.length?i.gen(t):(2===arguments.length&&(n=e,e=void 0),r&&(window.XMLHttpRequest=r),c._mocked[t+(e||"")]={rurl:t,rtype:e,template:n},c)},t.exports=c},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend,gen:function(t,e,n){e=null==e?"":e+"",n={path:(n=n||{}).path||[Constant.GUID],templatePath:n.templatePath||[Constant.GUID++],currentContext:n.currentContext,templateCurrentContext:n.templateCurrentContext||t,root:n.root||n.currentContext,templateRoot:n.templateRoot||n.templateCurrentContext||t};var r,i=Parser.parse(e),o=Util.type(t);return Handler[o]?(r=Handler[o]({type:o,template:t,name:e,parsedName:e?e.replace(Constant.RE_KEY,"$1"):e,rule:i,context:n}),n.root||(n.root=r),r):t}};Handler.extend({array:function(t){var e,n,r=[];if(0===t.template.length)return r;if(t.rule.parameters)if(1===t.rule.min&&void 0===t.rule.max)t.context.path.push(t.name),t.context.templatePath.push(t.name),r=Random.pick(Handler.gen(t.template,void 0,{path:t.context.path,templatePath:t.context.templatePath,currentContext:r,templateCurrentContext:t.template,root:t.context.root||r,templateRoot:t.context.templateRoot||t.template})),t.context.path.pop(),t.context.templatePath.pop();else if(t.rule.parameters[2])t.template.__order_index=t.template.__order_index||0,t.context.path.push(t.name),t.context.templatePath.push(t.name),r=Handler.gen(t.template,void 0,{path:t.context.path,templatePath:t.context.templatePath,currentContext:r,templateCurrentContext:t.template,root:t.context.root||r,templateRoot:t.context.templateRoot||t.template})[t.template.__order_index%t.template.length],t.template.__order_index+=+t.rule.parameters[2],t.context.path.pop(),t.context.templatePath.pop();else for(e=0;e1)return this.getValueByKeyPath(key,options);if(templateContext&&"object"==typeof templateContext&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i1&&((i=e.context.path.slice(0)).pop(),i=this.normalizePath(i.concat(r)));try{t=r[r.length-1];for(var o=e.context.root,a=e.context.templateRoot,s=1;s1/(t+e)*t?!n:n):Math.random()>=.5},bool:function(t,e,n){return this.boolean(t,e,n)},natural:function(t,e){return t=void 0!==t?parseInt(t,10):0,e=void 0!==e?parseInt(e,10):9007199254740992,Math.round(Math.random()*(e-t))+t},integer:function(t,e){return t=void 0!==t?parseInt(t,10):-9007199254740992,e=void 0!==e?parseInt(e,10):9007199254740992,Math.round(Math.random()*(e-t))+t},int:function(t,e){return this.integer(t,e)},float:function(t,e,n,r){n=void 0===n?0:n,n=Math.max(Math.min(n,17),0),r=void 0===r?17:r,r=Math.max(Math.min(r,17),0);for(var i=this.integer(t,e)+".",o=0,a=this.natural(n,r);o1&&r--,o=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,i[u]=255*o;return i},hsl2hsv:function(t){var e=t[0],n=t[1]/100,r=t[2]/100;return[e,2*(n*=(r*=2)<=1?r:2-r)/(r+n)*100,(r+n)/2*100]},hsv2rgb:function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},hsv2hsl:function(t){var e,n,r=t[0],i=t[1]/100,o=t[2]/100;return e=i*o,[r,100*(e/=(n=(2-i)*o)<=1?n:2-n),100*(n/=2)]},rgb2hex:function(t,e,n){return"#"+((256+t<<8|e)<<8|n).toString(16).slice(1)},hex2rgb:function(t){return[(t="0x"+t.slice(1).replace(t.length>4?t:/./g,"$&$&")|0)>>16,t>>8&255,255&t]}}},function(t,e){t.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function(t,e,n){var r=n(6),i=n(14);function o(t,e,n,i){return void 0===n?r.natural(t,e):void 0===i?n:r.natural(parseInt(n,10),parseInt(i,10))}t.exports={paragraph:function(t,e){for(var n=o(3,7,t,e),r=[],i=0;i1&&(e=[].slice.call(arguments,0));var n=t.options,r=n.context.templatePath.join("."),i=t.cache[r]=t.cache[r]||{index:0,array:e};return i.array[i.index++%i.array.length]}}},function(t,e){t.exports={first:function(){var t=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(t)},last:function(){return this.pick(["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"])},name:function(t){return this.first()+" "+(t?this.first()+" ":"")+this.last()},cfirst:function(){var t="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(t)},clast:function(){var t="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(t)},cname:function(){return this.cfirst()+this.clast()}}},function(t,e){t.exports={url:function(t,e){return(t||this.protocol())+"://"+(e||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(t){return this.word()+"."+(t||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(t){return this.character("lower")+"."+this.word()+"@"+(t||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(t,e,n){var r=n(18),i=["东北","华北","华东","华中","华南","西南","西北"];t.exports={region:function(){return this.pick(i)},province:function(){return this.pick(r).name},city:function(t){var e=this.pick(r),n=this.pick(e.children);return t?[e.name,n.name].join(" "):n.name},county:function(t){var e=this.pick(r),n=this.pick(e.children),i=this.pick(n.children)||{name:"-"};return t?[e.name,n.name,i.name].join(" "):i.name},zip:function(t){for(var e="",n=0;n<(t||6);n++)e+=this.natural(0,9);return e}}},function(t,e){var n={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"},r=function(){var t=[];for(var e in n){var r="0000"===e.slice(2,6)?void 0:"00"==e.slice(4,6)?e.slice(0,2)+"0000":e.slice(0,4)+"00";t.push({id:e,pid:r,name:n[e]})}return function(t){for(var e,n={},r=0;rt&&(tr=0,er={line:1,column:1,seenCR:!1}),function(t,n,r){var i,o;for(i=n;r>i;i++)"\n"===(o=e.charAt(i))?(t.seenCR||t.line++,t.column=1,t.seenCR=!1):"\r"===o||"\u2028"===o||"\u2029"===o?(t.line++,t.column=1,t.seenCR=!0):(t.column++,t.seenCR=!1)}(er,tr,t),tr=t),er}function x(t){nr>Qn||(Qn>nr&&(nr=Qn,rr=[]),rr.push(t))}function _(t){var e=0;for(t.sort();eQn?(r=e.charAt(Qn),Qn++):(r=null,0===ir&&x(Dn)),null!==r?(Jn=t,null===(n=Pn(r))?(Qn=t,t=n):t=n):(Qn=t,t=St)):(Qn=t,t=St),t}function ft(){var t,n,r;return t=Qn,92===e.charCodeAt(Qn)?(n=Ln,Qn++):(n=null,0===ir&&x(jn)),null!==n?(En.test(e.charAt(Qn))?(r=e.charAt(Qn),Qn++):(r=null,0===ir&&x(Rn)),null!==r?(Jn=t,null===(n=Nn(r))?(Qn=t,t=n):t=n):(Qn=t,t=St)):(Qn=t,t=St),t}function dt(){var t,n,r,i;if(t=Qn,e.substr(Qn,2)===zn?(n=zn,Qn+=2):(n=null,0===ir&&x(Bn)),null!==n){if(r=[],Vn.test(e.charAt(Qn))?(i=e.charAt(Qn),Qn++):(i=null,0===ir&&x(Fn)),null!==i)for(;null!==i;)r.push(i),Vn.test(e.charAt(Qn))?(i=e.charAt(Qn),Qn++):(i=null,0===ir&&x(Fn));else r=St;null!==r?(Jn=t,null===(n=Gn(r))?(Qn=t,t=n):t=n):(Qn=t,t=St)}else Qn=t,t=St;return t}function gt(){var t,n,r,i;if(t=Qn,e.substr(Qn,2)===Hn?(n=Hn,Qn+=2):(n=null,0===ir&&x(Wn)),null!==n){if(r=[],Un.test(e.charAt(Qn))?(i=e.charAt(Qn),Qn++):(i=null,0===ir&&x(Yn)),null!==i)for(;null!==i;)r.push(i),Un.test(e.charAt(Qn))?(i=e.charAt(Qn),Qn++):(i=null,0===ir&&x(Yn));else r=St;null!==r?(Jn=t,null===(n=qn(r))?(Qn=t,t=n):t=n):(Qn=t,t=St)}else Qn=t,t=St;return t}function vt(){var t,n,r,i;if(t=Qn,e.substr(Qn,2)===Xn?(n=Xn,Qn+=2):(n=null,0===ir&&x($n)),null!==n){if(r=[],Un.test(e.charAt(Qn))?(i=e.charAt(Qn),Qn++):(i=null,0===ir&&x(Yn)),null!==i)for(;null!==i;)r.push(i),Un.test(e.charAt(Qn))?(i=e.charAt(Qn),Qn++):(i=null,0===ir&&x(Yn));else r=St;null!==r?(Jn=t,null===(n=Zn(r))?(Qn=t,t=n):t=n):(Qn=t,t=St)}else Qn=t,t=St;return t}function yt(){var t,n;return t=Qn,e.substr(Qn,2)===zn?(n=zn,Qn+=2):(n=null,0===ir&&x(Bn)),null!==n&&(Jn=t,n=Kn()),null===n?(Qn=t,t=n):t=n,t}function mt(){var t,n,r;return t=Qn,92===e.charCodeAt(Qn)?(n=Ln,Qn++):(n=null,0===ir&&x(jn)),null!==n?(e.length>Qn?(r=e.charAt(Qn),Qn++):(r=null,0===ir&&x(Dn)),null!==r?(Jn=t,null===(n=Ee(r))?(Qn=t,t=n):t=n):(Qn=t,t=St)):(Qn=t,t=St),t}var bt,xt=arguments.length>1?arguments[1]:{},_t={regexp:w},wt=w,St=null,Mt="",Ot="|",Ct='"|"',It=function(t,e){return e?new r(t,e[1]):t},kt=function(t,e,n){return new i([t].concat(e).concat([n]))},At="^",Tt='"^"',Dt=function(){return new n("start")},Pt="$",Lt='"$"',jt=function(){return new n("end")},Et=function(t,e){return new s(t,e)},Rt="Quantifier",Nt=function(t,e){return e&&(t.greedy=!1),t},zt="{",Bt='"{"',Vt=",",Ft='","',Gt="}",Ht='"}"',Wt=function(t,e){return new l(t,e)},Ut=",}",Yt='",}"',qt=function(t){return new l(t,1/0)},Xt=function(t){return new l(t,t)},$t="+",Zt='"+"',Kt=function(){return new l(1,1/0)},Qt="*",Jt='"*"',te=function(){return new l(0,1/0)},ee="?",ne='"?"',re=function(){return new l(0,1)},ie=/^[0-9]/,oe="[0-9]",ae=function(t){return+t.join("")},se="(",le='"("',ue=")",ce='")"',he=function(t){return t},pe=function(t){return new a(t)},fe="?:",de='"?:"',ge=function(t){return new o("non-capture-group",t)},ve="?=",ye='"?="',me=function(t){return new o("positive-lookahead",t)},be="?!",xe='"?!"',_e=function(t){return new o("negative-lookahead",t)},we="CharacterSet",Se="[",Me='"["',Oe="]",Ce='"]"',Ie=function(t,e){return new u(!!t,e)},ke="CharacterRange",Ae="-",Te='"-"',De=function(t,e){return new c(t,e)},Pe="Character",Le=/^[^\\\]]/,je="[^\\\\\\]]",Ee=function(t){return new h(t)},Re=".",Ne='"."',ze=function(){return new n("any-character")},Be="Literal",Ve=/^[^|\\\/.[()?+*$\^]/,Fe="[^|\\\\\\/.[()?+*$\\^]",Ge="\\b",He='"\\\\b"',We=function(){return new n("backspace")},Ue=function(){return new n("word-boundary")},Ye="\\B",qe='"\\\\B"',Xe=function(){return new n("non-word-boundary")},$e="\\d",Ze='"\\\\d"',Ke=function(){return new n("digit")},Qe="\\D",Je='"\\\\D"',tn=function(){return new n("non-digit")},en="\\f",nn='"\\\\f"',rn=function(){return new n("form-feed")},on="\\n",an='"\\\\n"',sn=function(){return new n("line-feed")},ln="\\r",un='"\\\\r"',cn=function(){return new n("carriage-return")},hn="\\s",pn='"\\\\s"',fn=function(){return new n("white-space")},dn="\\S",gn='"\\\\S"',vn=function(){return new n("non-white-space")},yn="\\t",mn='"\\\\t"',bn=function(){return new n("tab")},xn="\\v",_n='"\\\\v"',wn=function(){return new n("vertical-tab")},Sn="\\w",Mn='"\\\\w"',On=function(){return new n("word")},Cn="\\W",In='"\\\\W"',kn=function(){return new n("non-word")},An="\\c",Tn='"\\\\c"',Dn="any character",Pn=function(t){return new v(t)},Ln="\\",jn='"\\\\"',En=/^[1-9]/,Rn="[1-9]",Nn=function(t){return new g(t)},zn="\\0",Bn='"\\\\0"',Vn=/^[0-7]/,Fn="[0-7]",Gn=function(t){return new d(t.join(""))},Hn="\\x",Wn='"\\\\x"',Un=/^[0-9a-fA-F]/,Yn="[0-9a-fA-F]",qn=function(t){return new f(t.join(""))},Xn="\\u",$n='"\\\\u"',Zn=function(t){return new p(t.join(""))},Kn=function(){return new n("null-character")},Qn=0,Jn=0,tr=0,er={line:1,column:1,seenCR:!1},nr=0,rr=[],ir=0;if("startRule"in xt){if(!(xt.startRule in _t))throw new Error("Can't start parsing from rule \""+xt.startRule+'".');wt=_t[xt.startRule]}if(n.offset=m,n.text=y,null!==(bt=wt())&&Qn===e.length)return bt;throw _(rr),Jn=Math.max(Qn,nr),new t(rr,Jnr)return!0;var a={path:e,type:t,actual:n,expected:r,action:"is greater than",message:o};return a.message=l.message(a),i.push(a),!1},lessThan:function(t,e,n,r,i,o){if(n=r)return!0;var a={path:e,type:t,actual:n,expected:r,action:"is greater than or equal to",message:o};return a.message=l.message(a),i.push(a),!1},lessThanOrEqualTo:function(t,e,n,r,i,o){if(n<=r)return!0;var a={path:e,type:t,actual:n,expected:r,action:"is less than or equal to",message:o};return a.message=l.message(a),i.push(a),!1}};a.Diff=s,a.Assert=l,t.exports=a},function(t,e,n){t.exports=n(28)},function(t,e,n){var r=n(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch(t){window.Event=function(t,e,n,r){var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e,n,r),i}}var i={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o="readystatechange loadstart progress abort error load timeout loadend".split(" "),a="timeout withCredentials".split(" "),s="readyState responseURL status statusText responseType response responseText responseXML".split(" "),l="OK";function u(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}u._settings={timeout:"10-100"},u.setup=function(t){return r.extend(u._settings,t),u._settings},r.extend(u,i),r.extend(u.prototype,i),u.prototype.mock=!0,u.prototype.match=!1,r.extend(u.prototype,{open:function(t,e,n,i,l){var c=this;r.extend(this.custom,{method:t,url:e,async:"boolean"!=typeof n||n,username:i,password:l,options:{url:e,type:t}}),this.custom.timeout=function(t){if("number"==typeof t)return t;if("string"==typeof t&&!~t.indexOf("-"))return parseInt(t,10);if("string"==typeof t&&~t.indexOf("-")){var e=t.split("-"),n=parseInt(e[0],10),r=parseInt(e[1],10);return Math.round(Math.random()*(r-n))+n}}(u._settings.timeout);var h=function(t){for(var e in u.Mock._mocked){var n=u.Mock._mocked[e];if((!n.rurl||i(n.rurl,t.url))&&(!n.rtype||i(n.rtype,t.type.toLowerCase())))return n}function i(t,e){return"string"===r.type(t)?t===e:"regexp"===r.type(t)?t.test(e):void 0}}(this.custom.options);function p(t){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:{},n=e.radar,r=[];n&&(r=[r=m(r=y(r=v(r=g(r=d(r=f(n),t),t))))]);var i=r;r.length&&!r[0].show&&(i=[]);(0,s.doUpdate)({chart:t,series:i,key:"radarAxisSplitArea",getGraphConfig:b,beforeUpdate:w,beforeChange:S}),(0,s.doUpdate)({chart:t,series:i,key:"radarAxisSplitLine",getGraphConfig:M,beforeUpdate:I,beforeChange:k}),(0,s.doUpdate)({chart:t,series:i,key:"radarAxisLine",getGraphConfig:A}),(0,s.doUpdate)({chart:t,series:i,key:"radarAxisLable",getGraphConfig:P}),t.radarAxis=r[0]};var i=r(n("278c")),o=r(n("9523")),a=r(n("448a")),s=n("18ad"),l=n("9d85"),u=n("5557"),c=n("becb");function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;eo?"left":"right",f=h[1]>a?"top":"bottom";if(u=(0,c.deepMerge)({textAlign:p,textBaseline:f},u),!l.length)return u;var d=l.length;return(0,c.deepMerge)(u,{fill:l[e%d]})}},a159:function(t,e,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},l=function(){var t,e=n("1ec9")("iframe"),r=o.length;for(e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("