| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- !function(t){function e(e){for(var r,i,s=e[0],l=e[1],u=e[2],c=0,p=[];c<s.length;c++)i=s[c],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(t[r]=l[r]);for(h&&h(e);p.length;)p.shift()();return a.push.apply(a,u||[]),n()}function n(){for(var t,e=0;e<a.length;e++){for(var n=a[e],r=!0,i=1;i<n.length;i++){var l=n[i];0!==o[l]&&(r=!1)}r&&(a.splice(e--,1),t=s(s.s=n[0]))}return t}var r={},i={app:0},o={app:0},a=[];function s(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.e=function(t){var e=[];i[t]?e.push(i[t]):0!==i[t]&&{"LSD.bighome":1}[t]&&e.push(i[t]=new Promise((function(e,n){for(var r="static/css/"+({"vendors~LSD.bighome":"vendors~LSD.bighome","LSD.bighome":"LSD.bighome"}[t]||t)+"."+{"vendors~LSD.bighome":"31d6cfe0","LSD.bighome":"e3d34ce7"}[t]+".css",o=s.p+r,a=document.getElementsByTagName("link"),l=0;l<a.length;l++){var u=(h=a[l]).getAttribute("data-href")||h.getAttribute("href");if("stylesheet"===h.rel&&(u===r||u===o))return e()}var c=document.getElementsByTagName("style");for(l=0;l<c.length;l++){var h;if((u=(h=c[l]).getAttribute("data-href"))===r||u===o)return e()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=e,p.onerror=function(e){var r=e&&e.target&&e.target.src||o,a=new Error("Loading CSS chunk "+t+" failed.\n("+r+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=r,delete i[t],p.parentNode.removeChild(p),n(a)},p.href=o,document.getElementsByTagName("head")[0].appendChild(p)})).then((function(){i[t]=0})));var n=o[t];if(0!==n)if(n)e.push(n[2]);else{var r=new Promise((function(e,r){n=o[t]=[e,r]}));e.push(n[2]=r);var a,l=document.createElement("script");l.charset="utf-8",l.timeout=120,s.nc&&l.setAttribute("nonce",s.nc),l.src=function(t){return s.p+"static/js/"+({"vendors~LSD.bighome":"vendors~LSD.bighome","LSD.bighome":"LSD.bighome"}[t]||t)+".f466c3371ec3ad4aabb3.js"}(t);var u=new Error;a=function(e){l.onerror=l.onload=null,clearTimeout(c);var n=o[t];if(0!==n){if(n){var r=e&&("load"===e.type?"missing":e.type),i=e&&e.target&&e.target.src;u.message="Loading chunk "+t+" failed.\n("+r+": "+i+")",u.name="ChunkLoadError",u.type=r,u.request=i,n[1](u)}o[t]=void 0}};var c=setTimeout((function(){a({type:"timeout",target:l})}),12e4);l.onerror=l.onload=a,document.head.appendChild(l)}return Promise.all(e)},s.m=t,s.c=r,s.d=function(t,e,n){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)s.d(n,r,function(e){return t[e]}.bind(null,r));return n},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s.oe=function(t){throw console.error(t),t};var l=window.webpackJsonp=window.webpackJsonp||[],u=l.push.bind(l);l.push=e,l=l.slice();for(var c=0;c<l.length;c++)e(l[c]);var h=u;a.push([0,"chunk-datav","chunk-element-ui"]),n()}({0:function(t,e,n){t.exports=n("56d7")},"014b":function(t,e,n){"use strict";var r=n("e53d"),i=n("07e3"),o=n("8e60"),a=n("63b6"),s=n("9138"),l=n("ebfd").KEY,u=n("294c"),c=n("dbdb"),h=n("45f2"),p=n("62a0"),f=n("5168"),d=n("ccb9"),g=n("6718"),v=n("47ee"),y=n("9003"),m=n("e4ae"),b=n("f772"),x=n("241e"),_=n("36c3"),w=n("1bc3"),S=n("aebd"),M=n("a159"),O=n("0395"),C=n("bf0b"),I=n("9aa9"),k=n("d9f6"),A=n("c3a1"),T=C.f,D=k.f,P=O.f,L=r.Symbol,j=r.JSON,E=j&&j.stringify,R=f("_hidden"),N=f("toPrimitive"),z={}.propertyIsEnumerable,B=c("symbol-registry"),V=c("symbols"),F=c("op-symbols"),G=Object.prototype,H="function"==typeof L&&!!I.f,W=r.QObject,U=!W||!W.prototype||!W.prototype.findChild,Y=o&&u((function(){return 7!=M(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=T(G,e);r&&delete G[e],D(t,e,n),r&&t!==G&&D(G,e,r)}:D,q=function(t){var e=V[t]=M(L.prototype);return e._k=t,e},X=H&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},$=function(t,e,n){return t===G&&$(F,e,n),m(t),e=w(e,!0),m(n),i(V,e)?(n.enumerable?(i(t,R)&&t[R][e]&&(t[R][e]=!1),n=M(n,{enumerable:S(0,!1)})):(i(t,R)||D(t,R,S(1,{})),t[R][e]=!0),Y(t,e,n)):D(t,e,n)},Z=function(t,e){m(t);for(var n,r=v(e=_(e)),i=0,o=r.length;o>i;)$(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;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){(0,a.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var d={xAxisConfig:u.xAxisConfig,yAxisConfig:u.yAxisConfig},g=(Math.min,Math.max,Math.abs),v=Math.pow;function y(t,e){var n,r,i=[],o=[];t instanceof Array?(n=i).push.apply(n,(0,s.default)(t)):i.push(t);e instanceof Array?(r=o).push.apply(r,(0,s.default)(e)):o.push(e);return i.splice(2),o.splice(2),i=i.map((function(t,e){return f(f({},t),{},{index:e,axis:"x"})})),o=o.map((function(t,e){return f(f({},t),{},{index:e,axis:"y"})})),[].concat((0,s.default)(i),(0,s.default)(o))}function m(t){var e=t.filter((function(t){return"x"===t.axis})),n=t.filter((function(t){return"y"===t.axis}));return e=e.map((function(t){return(0,c.deepMerge)((0,h.deepClone)(u.xAxisConfig),t)})),n=n.map((function(t){return(0,c.deepMerge)((0,h.deepClone)(u.yAxisConfig),t)})),[].concat((0,s.default)(e),(0,s.default)(n))}function b(t){var e=t.filter((function(t){return"value"===t.data})),n=t.filter((function(t){return"value"!==t.data}));return e.forEach((function(t){"boolean"!=typeof t.boundaryGap&&(t.boundaryGap=!1)})),n.forEach((function(t){"boolean"!=typeof t.boundaryGap&&(t.boundaryGap=!0)})),[].concat((0,s.default)(e),(0,s.default)(n))}function x(t,e){var n=t.filter((function(t){return"value"===t.data})),r=t.filter((function(t){return t.data instanceof Array}));return n=function(t,e){return t.map((function(t){var n=function(t,e){var n=t.min,r=t.max,a=t.axis,s=(0,o.default)(e,2),l=s[0],u=s[1],c=(0,i.default)(n),h=(0,i.default)(r);w(n)||(n=d[a+"AxisConfig"].min,c="string");w(r)||(r=d[a+"AxisConfig"].max,h="string");if("string"===c){var p=_(n=parseInt(l-g(l*parseFloat(n)/100)));n=parseFloat((n/p-.1).toFixed(1))*p}if("string"===h){var f=_(r=parseInt(u+g(u*parseFloat(r)/100)));r=parseFloat((r/f+.1).toFixed(1))*f}return[n,r]}(t,function(t,e){if(0===(e=e.filter((function(t){var e=t.show,n=t.type;return!1!==e&&"pie"!==n}))).length)return[0,0];var n=t.index,r=t.axis;e=function(t){var e=(0,h.deepClone)(t,!0);return t.forEach((function(n,r){var i=(0,c.mergeSameStackData)(n,t);e[r].data=i})),e}(e);var i=r+"Axis",o=e.filter((function(t){return t[i]===n}));o.length||(o=e);return function(t){if(!t)return;var e=Math.min.apply(Math,(0,s.default)(t.map((function(t){var e=t.data;return Math.min.apply(Math,(0,s.default)((0,c.filterNonNumber)(e)))})))),n=Math.max.apply(Math,(0,s.default)(t.map((function(t){var e=t.data;return Math.max.apply(Math,(0,s.default)((0,c.filterNonNumber)(e)))}))));return[e,n]}(o)}(t,e)),r=(0,o.default)(n,2),a=r[0],l=r[1],u=function(t,e,n){var r=n.interval,i=n.minInterval,o=n.maxInterval,a=n.splitNumber,s=n.axis,l=d[s+"AxisConfig"];"number"!=typeof r&&(r=l.interval);"number"!=typeof i&&(i=l.minInterval);"number"!=typeof o&&(o=l.maxInterval);"number"!=typeof a&&(a=l.splitNumber);if("number"==typeof r)return r;var u=parseInt((e-t)/(a-1));u.toString().length>1&&(u=parseInt(u.toString().replace(/\d$/,"0")));0===u&&(u=1);return"number"==typeof i&&u<i?i:"number"==typeof o&&u>o?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(a<e);return[].concat((0,s.default)(r.reverse()),[0],(0,s.default)(i))}(a,l,u):function(t,e,n){var r=[t],i=t;do{r.push(i+=n)}while(i<e);return r}(a,l,u)).map((function(t){return parseFloat(t.toFixed(2))})),f(f({},t),{},{maxValue:v.slice(-1)[0],minValue:v[0],label:S(v,p)})}))}(n,e),r=function(t){return t.map((function(t){var e=t.data,n=t.axisLabel.formatter;return f(f({},t),{},{label:S(e,n)})}))}(r),[].concat((0,s.default)(n),(0,s.default)(r))}function _(t){var e=g(t).toString(),n=e.length,r=e.replace(/0*$/g,"").indexOf("0"),i=n-1;return-1!==r&&(i-=r),v(10,i)}function w(t){var e=(0,i.default)(t);return"string"===e&&/^\d+%$/.test(t)||"number"===e}function S(t,e){return e?("string"==typeof e&&(t=t.map((function(t){return e.replace("{value}",t)}))),"function"==typeof e&&(t=t.map((function(t,n){return e({value:t,index:n})}))),t):t}function M(t){var e=t.filter((function(t){return"x"===t.axis})),n=t.filter((function(t){return"y"===t.axis}));return e[0]&&!e[0].position&&(e[0].position=u.xAxisConfig.position),e[1]&&!e[1].position&&(e[1].position="bottom"===e[0].position?"top":"bottom"),n[0]&&!n[0].position&&(n[0].position=u.yAxisConfig.position),n[1]&&!n[1].position&&(n[1].position="left"===n[0].position?"right":"left"),[].concat((0,s.default)(e),(0,s.default)(n))}function O(t,e){var n=e.gridArea,r=n.x,i=n.y,o=n.w,a=n.h;return t=t.map((function(t){var e=t.position,n=[];return"left"===e?n=[[r,i],[r,i+a]].reverse():"right"===e?n=[[r+o,i],[r+o,i+a]].reverse():"top"===e?n=[[r,i],[r+o,i]]:"bottom"===e&&(n=[[r,i+a],[r+o,i+a]]),f(f({},t),{},{linePosition:n})}))}function C(t,e){return t.map((function(t){var e=t.axis,n=t.linePosition,r=t.position,i=t.label,a=t.boundaryGap;"boolean"!=typeof a&&(a=d[e+"AxisConfig"].boundaryGap);var s=i.length,l=(0,o.default)(n,2),u=(0,o.default)(l[0],2),c=u[0],p=u[1],g=(0,o.default)(l[1],2),v=g[0],y=g[1],m=("x"===e?v-c:y-p)/(a?s:s-1),b=new Array(s).fill(0).map((function(t,n){return"x"===e?[c+m*(a?n+.5:n),p]:[c,p+m*(a?n+.5:n)]})),x=function(t,e,n,r,i){var a="x"===t?1:0,s=5;"x"===t&&"top"===n&&(s=-5);"y"===t&&"left"===n&&(s=-5);var l=r.map((function(t){var e=(0,h.deepClone)(t);return e[a]+=s,[(0,h.deepClone)(t),e]}));return e?(a="x"===t?0:1,s=i/2,l.forEach((function(t){var e=(0,o.default)(t,2),n=e[0],r=e[1];n[a]+=s,r[a]+=s})),l):l}(e,a,r,b,m);return f(f({},t),{},{tickPosition:b,tickLinePosition:x,tickGap:m})}))}function I(t,e){return t.map((function(t){var e=t.nameGap,n=t.nameLocation,r=t.position,i=t.linePosition,a=(0,o.default)(i,2),l=a[0],u=a[1],c=(0,s.default)(l);"end"===n&&(c=(0,s.default)(u)),"center"===n&&(c[0]=(l[0]+u[0])/2,c[1]=(l[1]+u[1])/2);var h=0;"top"===r&&"center"===n&&(h=1),"bottom"===r&&"center"===n&&(h=1),"left"===r&&"center"!==n&&(h=1),"right"===r&&"center"!==n&&(h=1);var p=e;return"top"===r&&"end"!==n&&(p*=-1),"left"===r&&"start"!==n&&(p*=-1),"bottom"===r&&"start"===n&&(p*=-1),"right"===r&&"end"===n&&(p*=-1),c[h]+=p,f(f({},t),{},{namePosition:c})}))}function k(t,e){var n=e.gridArea,r=n.w,i=n.h;return t.map((function(t){var e=t.tickLinePosition,n=t.position,a=t.boundaryGap,l=0,u=r;"top"!==n&&"bottom"!==n||(l=1),"top"!==n&&"bottom"!==n||(u=i),"right"!==n&&"bottom"!==n||(u*=-1);var c=e.map((function(t){var e=(0,o.default)(t,1)[0],n=(0,s.default)(e);return n[l]+=u,[(0,s.default)(e),n]}));return a||c.shift(),f(f({},t),{},{splitLinePosition:c})}))}function A(t){var e=t.animationCurve,n=t.animationFrame;return[{name:"polyline",index:t.rLevel,visible:t.axisLine.show,animationCurve:e,animationFrame:n,shape:T(t),style:D(t)}]}function T(t){return{points:t.linePosition}}function D(t){return t.axisLine.style}function P(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=function(t){return t.tickLinePosition.map((function(t){return{points:t}}))}(t),o=function(t){return t.axisTick.style}(t);return i.map((function(i){return{name:"polyline",index:r,visible:t.axisTick.show,animationCurve:e,animationFrame:n,shape:i,style:o}}))}function L(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=function(t){var e=t.label,n=t.tickPosition,r=t.position;return n.map((function(t,n){return{position:j(t,r),content:e[n].toString()}}))}(t),o=function(t,e){var n=t.position,r=t.axisLabel.style,i=function(t){if("left"===t)return{textAlign:"right",textBaseline:"middle"};if("right"===t)return{textAlign:"left",textBaseline:"middle"};if("top"===t)return{textAlign:"center",textBaseline:"bottom"};if("bottom"===t)return{textAlign:"center",textBaseline:"top"}}(n);return r=(0,c.deepMerge)(i,r),e.map((function(t){var e=t.position;return f(f({},r),{},{graphCenter:e})}))}(t,i);return i.map((function(i,a){return{name:"text",index:r,visible:t.axisLabel.show,animationCurve:e,animationFrame:n,shape:i,style:o[a],setGraphCenter:function(){}}}))}function j(t,e){var n=0,r=10;return"top"!==e&&"bottom"!==e||(n=1),"top"!==e&&"left"!==e||(r=-10),(t=(0,h.deepClone)(t))[n]+=r,t}function E(t){var e=t.animationCurve,n=t.animationFrame;return[{name:"text",index:t.rLevel,animationCurve:e,animationFrame:n,shape:R(t),style:N(t)}]}function R(t){return{content:t.name,position:t.namePosition}}function N(t){var e=t.nameLocation,n=t.position,r=t.nameTextStyle,i=function(t,e){if("top"===t&&"start"===e||"bottom"===t&&"start"===e||"left"===t&&"center"===e)return{textAlign:"right",textBaseline:"middle"};if("top"===t&&"end"===e||"bottom"===t&&"end"===e||"right"===t&&"center"===e)return{textAlign:"left",textBaseline:"middle"};if("top"===t&&"center"===e||"left"===t&&"end"===e||"right"===t&&"end"===e)return{textAlign:"center",textBaseline:"bottom"};if("bottom"===t&&"center"===e||"left"===t&&"start"===e||"right"===t&&"start"===e)return{textAlign:"center",textBaseline:"top"}}(n,e);return(0,c.deepMerge)(i,r)}function z(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=function(t){return t.splitLinePosition.map((function(t){return{points:t}}))}(t),o=function(t){return t.splitLine.style}(t);return i.map((function(i){return{name:"polyline",index:r,visible:t.splitLine.show,animationCurve:e,animationFrame:n,shape:i,style:o}}))}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"07ed":function(t,e,n){},"0999":function(t,e,n){},"0ca1":function(t,e,n){"use strict";var r=n("4ea4"),i=r(n("9523")),o=r(n("448a")),a=n("9886"),s=n("b06d"),l=n("5557"),u=n("53b8"),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;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f={shape:{rx:0,ry:0,ir:0,or:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(t){var e=t.shape;return!["rx","ry","ir","or","startAngle","endAngle"].find((function(t){return"number"!=typeof e[t]}))||(console.error("Pie shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.rx,a=r.ry,s=r.ir,u=r.or,c=r.startAngle,h=r.endAngle,p=r.clockWise;i=parseInt(i)+.5,a=parseInt(a)+.5,n.arc(i,a,s>0?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;y<o;y++){n.beginPath();var m=(0,l.getCircleRadianPoint)(d,g,f,h+v*y),b=(0,l.getCircleRadianPoint)(d,g,f,h+v*(y+1)),x=(0,c.getLinearGradientColor)(n,m,b,[i[y],i[y+1]]),_=h+v*y,w=h+v*(y+1),S=!1;if(w>p&&(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(o<r){t.splice(o).forEach((function(t){return n.delGraph(t)}))}})(t,u,a),t.forEach((function(t,e){var n=u[e];"function"==typeof s&&s(t,n),l(t,n)}))}(s,t,0,e):function(t,e,n,r){var i=r.getGraphConfig,o=r.getStartGraphConfig,a=r.chart.render,s=null;"function"==typeof o&&(s=o(e,r));var u=i(e,r);if(!u.length)return;s?(t[n]=s.map((function(t){return a.add(t)})),t[n].forEach((function(t,e){l(t,u[e])}))):t[n]=u.map((function(t){return a.add(t)}));var c=r.afterAddGraph;"function"==typeof c&&c(t[n])}(n,t,o,e)}))}}},"1bc3":function(t,e,n){var r=n("f772");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,n){var r=n("f772"),i=n("e53d").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"1f55":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.gauge=function(t){var e=arguments.length>1&&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("53b8");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;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(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 v(t,e){var n=e.render.area,r=Math.min.apply(Math,(0,s.default)(n))/2;return t.forEach((function(t){var e=t.radius;"number"!=typeof e&&(e=parseInt(e)/100*r),t.radius=e})),t}function y(t,e){var n=e.render.area,r=Math.min.apply(Math,(0,s.default)(n))/2;return t.forEach((function(t){var e=t.radius,n=t.data,i=t.arcLineWidth;n.forEach((function(t){var n=t.radius,o=t.lineWidth;n||(n=e),"number"!=typeof n&&(n=parseInt(n)/100*r),t.radius=n,o||(o=i),t.lineWidth=o}))})),t}function m(t,e){return t.forEach((function(t){var e=t.startAngle,n=t.endAngle,r=t.data,i=t.min,o=t.max,a=n-e,s=o-i;r.forEach((function(t){var n=t.value,r=Math.abs((n-i)/s*a);t.startAngle=e,t.endAngle=e+r}))})),t}function b(t,e){return t.forEach((function(t){t.data.forEach((function(t){var e=t.color,n=t.gradient;n&&n.length||(n=e),n instanceof Array||(n=[n]),t.gradient=n}))})),t}function x(t,e){return t.forEach((function(t){var e=t.startAngle,n=t.endAngle,r=t.splitNum,i=t.center,o=t.radius,a=t.arcLineWidth,l=t.axisTick,u=l.tickLength,h=l.style.lineWidth,p=n-e,f=o-a/2,d=f-u,g=p/(r-1),v=2*Math.PI*o*p/(2*Math.PI),y=Math.ceil(h/2)/v*p;t.tickAngles=[],t.tickInnerRadius=[],t.tickPosition=new Array(r).fill(0).map((function(n,o){var a=e+g*o;return 0===o&&(a+=y),o===r-1&&(a-=y),t.tickAngles[o]=a,t.tickInnerRadius[o]=d,[c.getCircleRadianPoint.apply(void 0,(0,s.default)(i).concat([f,a])),c.getCircleRadianPoint.apply(void 0,(0,s.default)(i).concat([d,a]))]}))})),t}function _(t,e){return t.forEach((function(t){var e=t.center,n=t.tickInnerRadius,r=t.tickAngles,i=t.axisLabel.labelGap,o=r.map((function(t,o){return c.getCircleRadianPoint.apply(void 0,(0,s.default)(e).concat([n[o]-i,r[o]]))})),l=o.map((function(t){var n=(0,a.default)(t,2),r=n[0],i=n[1];return{textAlign:r>e[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<h;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],l[c++]=e>>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;a<s;a+=16383)o.push(c(t,a,a+16383>s?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;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)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<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(r[(o=i)>>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;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e){var n=e.axisData;return t.forEach((function(t){var e=t.xAxisIndex,r=t.yAxisIndex;"number"!=typeof e&&(e=0),"number"!=typeof r&&(r=0);var i=[n.find((function(t){var n=t.axis,r=t.index;return"".concat(n).concat(r)==="x".concat(e)})),n.find((function(t){var e=t.axis,n=t.index;return"".concat(e).concat(n)==="y".concat(r)}))],o=i.findIndex((function(t){return"value"===t.data}));t.valueAxis=i[o],t.labelAxis=i[1-o]})),t}function g(t,e){return function(t){var e=t.map((function(t){var e=t.labelAxis;return e.axis+e.index}));return(e=(0,s.default)(new Set(e))).map((function(e){return t.filter((function(t){var n=t.labelAxis;return n.axis+n.index===e}))}))}(t).forEach((function(t){!function(t){var e=function(t){var e=[];return t.forEach((function(t){var n=t.stack;n&&e.push(n)})),(0,s.default)(new Set(e))}(t);e=e.map((function(t){return{stack:t,index:-1}}));var n=0;t.forEach((function(t){var r=t.stack;if(r){var i=e.find((function(t){return t.stack===r}));-1===i.index&&(i.index=n,n++),t.barIndex=i.index}else t.barIndex=n,n++}))}(t),function(t){var e=(0,s.default)(new Set(t.map((function(t){return t.barIndex})))).length;t.forEach((function(t){return t.barNum=e}))}(t),function(t){var e=t.slice(-1)[0],n=e.barCategoryGap,r=e.labelAxis.tickGap,i=0;i="number"==typeof n?n:(1-parseInt(n)/100)*r;t.forEach((function(t){return t.barCategoryWidth=i}))}(t),function(t){var e=t.slice(-1)[0],n=e.barCategoryWidth,r=e.barWidth,i=e.barGap,o=e.barNum,s=[];"number"==typeof r||"auto"!==r?s=function(t,e,n){var r=0,i=0;r="number"==typeof e?e:parseInt(e)/100*t;i="number"==typeof n?n:parseInt(n)/100*r;return[r,i]}(n,r,i):"auto"===r&&(s=function(t,e,n,r){var i=0,o=0,a=t/r;if("number"==typeof n)i=a-(o=n);else{var s=10+parseInt(n)/10;o=0===s?-(i=2*a):a-(i=a/s*10)}return[i,o]}(n,0,i,o));var l=s,u=(0,a.default)(l,2),c=u[0],h=u[1];t.forEach((function(t){t.barWidth=c,t.barGap=h}))}(t),function(t){var e=t.slice(-1)[0],n=e.barGap,r=e.barWidth,i=e.barNum,o=(n+r)*i-n;t.forEach((function(t){return t.barAllWidthAndGap=o}))}(t)})),t}function v(t,e){return t=function(t){return t.forEach((function(t){var e=t.data,n=t.barLabelAxisPos,r=t.barValueAxisPos,i=e.filter((function(t){return"number"==typeof t})).length;n.length>i&&(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-l<o&&f.splice(3,1)):(f[0]=[c-h,u],f[1]=[c+h,u],f[2]=[c+h,l],f[3]=[c-h,l-o],l-u<o&&f.splice(3,1));return{points:f,close:!0}}(t,e):"rightEchelon"===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-l<o&&f.splice(2,1)):(f[0]=[c+h,u],f[1]=[c-h,u],f[2]=[c-h,l],f[3]=[c+h,l-o],l-u<o&&f.splice(2,1));return{points:f,close:!0}}(t,e):function(t,e){var n=t.barValueAxisPos,r=t.barLabelAxisPos,i=t.barWidth,o=(0,a.default)(n[e],2),s=o[0],l=o[1],u=r[e],c=t.valueAxis.axis,h={};"x"===c?(h.x=s,h.y=u-i/2,h.w=l-s,h.h=i):(h.x=u-i/2,h.y=l,h.w=i,h.h=s-l);return h}(t,e)}function w(t,e){var n=t.barStyle,r=t.gradient,i=t.color,o=t.independentColor,s=t.independentColors,l=[n.fill||i],u=(0,h.deepMerge)(l,r.color);if(o){var c=s[e%s.length];u=c instanceof Array?c:[c]}1===u.length&&u.push(u[0]);var p=function(t,e){var n=t.barValueAxisPos,r=t.barLabelAxisPos,i=t.data,o=t.valueAxis,s=o.linePosition,l=o.axis,u=(0,a.default)(n[e],2),c=u[0],h=u[1],p=r[e],f=i[e],d=(0,a.default)(s,2),g=d[0],v=d[1],y="x"===l?0:1,m=h;t.gradient.local||(m=f<0?g[y]:v[y]);return"y"===l?[p,m,p,c]:[m,p,c,p]}(t,e);return(0,h.deepMerge)({gradientColor:u,gradientParams:p,gradientType:"linear",gradientWith:"fill"},n)}function S(t){var e=b(t),n=t.shapeType;return e.forEach((function(e){var r=e.shape;r="leftEchelon"===n?function(t,e){var n=e.valueAxis.axis,r=(t=(0,c.deepClone)(t)).points,i="x"===n?0:1,o=r[2][i];return r.forEach((function(t){return t[i]=o})),t}(r,t):"rightEchelon"===n?function(t,e){var n=e.valueAxis.axis,r=(t=(0,c.deepClone)(t)).points,i="x"===n?0:1,o=r[2][i];return r.forEach((function(t){return t[i]=o})),t}(r,t):function(t,e){var n=e.valueAxis.axis,r=t.x,i=t.y,o=t.w,a=t.h;"x"===n?o=0:(i+=a,a=0);return{x:r,y:i,w:o,h:a}}(r,t),e.shape=r})),e}function M(t,e,n,r){var i=r.chart.render,o=x(e);t[n]&&t[n][0].name!==o&&(t[n].forEach((function(t){return i.delGraph(t)})),t[n]=null)}function O(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,o=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);return function(t){var e=t.label,n=t.barValueAxisPos,r=t.barLabelAxisPos,i=e.position,o=e.offset,s=t.valueAxis.axis;return n.map((function(t,e){var n,l,u,c,h,p,f,d,g=(0,a.default)(t,2),v=g[0],y=g[1],m=r[e],b=[y,m];return"bottom"===i&&(b=[v,m]),"center"===i&&(b=[(v+y)/2,m]),"y"===s&&b.reverse(),n=b,l=o,u=(0,a.default)(n,2),c=u[0],h=u[1],p=(0,a.default)(l,2),f=p[0],d=p[1],[c+f,h+d]}))}(t).map((function(t,n){return{position:t,content:e[n]}}))}(t),s=function(t){var e=t.color,n=t.label.style,r=t.gradient.color;r.length&&(e=r[0]);return n=(0,h.deepMerge)({fill:e},n)}(t);return o.map((function(i){return{name:"text",index:r,visible:t.label.show,animationCurve:e,animationFrame:n,shape:i,style:s}}))}},"222a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieConfig=void 0;var r={show:!0,name:"",radius:"50%",center:["50%","50%"],startAngle:-Math.PI/2,roseType:!1,roseSort:!0,roseIncrement:"auto",data:[],insideLabel:{show:!1,formatter:"{percent}%",style:{fontSize:10,fill:"#fff",textAlign:"center",textBaseline:"middle"}},outsideLabel:{show:!0,formatter:"{name}",style:{fontSize:11},labelLineBendGap:"20%",labelLineEndLength:50,labelLineStyle:{lineWidth:1}},pieStyle:{},percentToFixed:0,rLevel:10,animationDelayGap:60,animationCurve:"easeOutCubic",startAnimationCurve:"easeOutBack",animationFrame:50};e.pieConfig=r},2236:function(t,e,n){var r=n("5a43");t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.__esModule=!0,t.exports.default=t.exports},"22d1":function(t,e,n){"use strict";var r=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},i=new function(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(i.wxa=!0,i.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?i.worker=!0:"undefined"==typeof navigator?(i.node=!0,i.svgSupported=!0):function(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);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<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){(0,s.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var d=c.default.polylineToBezierCurve,g=c.default.getBezierCurveLength;function v(t,e){var n=e.axisData;return t.map((function(e){var r=(0,h.mergeSameStackData)(e,t);r=function(t,e){var n=t.data;return e.map((function(t,e){return"number"==typeof n[e]?t:null}))}(e,r);var i=function(t,e){var n=t.xAxisIndex,r=t.yAxisIndex,i=e.find((function(t){var e=t.axis,r=t.index;return"x"===e&&r===n})),o=e.find((function(t){var e=t.axis,n=t.index;return"y"===e&&n===r}));return[i,o]}(e,n),o=function(t,e){var n=e.findIndex((function(t){return"value"===t.data})),r=e[n],i=e[1-n],o=r.linePosition,a=r.axis,s=i.tickPosition,l=s.length,u="x"===a?0:1,c=o[0][u],h=o[1][u]-c,p=r.maxValue,f=r.minValue,d=p-f;return new Array(l).fill(0).map((function(e,n){var r=t[n];if("number"!=typeof r)return null;var i=(r-f)/d;return 0===d&&(i=0),i*h+c})).map((function(t,e){if(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 o<i&&r.splice(o)}function M(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel;return[{name:O(t),index:r+1,animationCurve:e,animationFrame:n,shape:m(t),style:C(t)}]}function O(t){return t.smooth?"smoothline":"polyline"}function C(t){var e=t.lineStyle,n=t.color,r=t.smooth,i=function(t){var e=arguments.length>1&&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<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}m("slot,component",!0);var b=m("key,ref,slot,slot-scope,is");function x(t,e){var n=t.length;if(n){if(e===t[n-1])return void(t.length=n-1);var r=t.indexOf(e);if(r>-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;n<t.length;n++)t[n]&&D(e,t[n]);return e}function L(t,e,n){}var j=function(t,e,n){return!1},E=function(t){return t};function R(t,e){if(t===e)return!0;var n=c(t),r=c(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return R(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return R(t[n],e[n])}))}catch(t){return!1}}function N(t,e){for(var n=0;n<t.length;n++)if(R(t[n],e))return n;return-1}function z(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function B(t,e){return t===e?0===t&&1/t!=1/e:t==t||e==e}var V=["component","directive","filter"],F=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],G={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:j,isReservedAttr:j,isUnknownElement:j,getTagNamespace:L,parsePlatformTagName:E,mustUseProp:j,async:!0,_lifecycleHooks:F},H=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function W(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function U(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var Y=new RegExp("[^".concat(H.source,".$_\\d]"));var q="__proto__"in{},X="undefined"!=typeof window,$=X&&window.navigator.userAgent.toLowerCase(),Z=$&&/msie|trident/.test($),K=$&&$.indexOf("msie 9.0")>0,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;n<r;n++){0,e[n].update()}},t}();bt.target=null;var xt=[];function _t(t){xt.push(t),bt.target=t}function wt(){xt.pop(),bt.target=xt[xt.length-1]}var St=Array.prototype,Mt=Object.create(St);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=St[t];U(Mt,t,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o}))}));var Ot=new WeakMap;function Ct(t){return kt(t,!1),t}function It(t){return kt(t,!0),U(t,"__v_isShallow",!0),t}function kt(t,e){if(!Dt(t)){Ft(t,e,ot());0}}function At(t){return Dt(t)?At(t.__v_raw):!(!t||!t.__ob__)}function Tt(t){return!(!t||!t.__v_isShallow)}function Dt(t){return!(!t||!t.__v_isReadonly)}function Pt(t){return At(t)||Dt(t)}function Lt(t){var e=t&&t.__v_raw;return e?Lt(e):t}function jt(t){return c(t)&&Ot.set(t,!0),t}var Et=Object.getOwnPropertyNames(Mt),Rt={},Nt=!0;function zt(t){Nt=t}var Bt={notify:L,depend:L,addSub:L,removeSub:L},Vt=function(){function t(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!1),this.value=t,this.shallow=e,this.mock=n,this.dep=n?Bt:new bt,this.vmCount=0,U(t,"__ob__",this),i(t)){if(!n)if(q)t.__proto__=Mt;else for(var r=0,o=Et.length;r<o;r++){U(t,s=Et[r],Mt[s])}e||this.observeArray(t)}else{var a=Object.keys(t);for(r=0;r<a.length;r++){var s;Gt(t,s=a[r],Rt,void 0,e,n)}}}return t.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Ft(t[e],!1,this.mock)},t}();function Ft(t,e,n){return t&&w(t,"__ob__")&&t.__ob__ instanceof Vt?t.__ob__:!Nt||!n&&ot()||!i(t)&&!p(t)||!Object.isExtensible(t)||t.__v_skip||Ot.has(t)||Yt(t)||t instanceof ft?void 0:new Vt(t,e,n)}function Gt(t,e,n,r,o,a){var s=new bt,l=Object.getOwnPropertyDescriptor(t,e);if(!l||!1!==l.configurable){var u=l&&l.get,c=l&&l.set;u&&!c||n!==Rt&&2!==arguments.length||(n=t[e]);var h=!o&&Ft(n,!1,a);return Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=u?u.call(t):n;return bt.target&&(s.depend(),h&&(h.dep.depend(),i(e)&&Ut(e))),Yt(e)&&!o?e.value:e},set:function(e){var r=u?u.call(t):n;if(B(r,e)){if(c)c.call(t,e);else{if(u)return;if(!o&&Yt(r)&&!Yt(e))return void(r.value=e);n=e}h=!o&&Ft(e,!1,a),s.notify()}}}),s}}function Ht(t,e,n){if(!Dt(t)){var r=t.__ob__;return i(t)&&d(e)?(t.length=Math.max(t.length,e),t.splice(e,1,n),r&&!r.shallow&&r.mock&&Ft(n,!1,!0),n):e in t&&!(e in Object.prototype)?(t[e]=n,n):t._isVue||r&&r.vmCount?n:r?(Gt(r.value,e,n,void 0,r.shallow,r.mock),r.dep.notify(),n):(t[e]=n,n)}}function Wt(t,e){if(i(t)&&d(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||Dt(t)||w(t,e)&&(delete t[e],n&&n.dep.notify())}}function Ut(t){for(var e=void 0,n=0,r=t.length;n<r;n++)(e=t[n])&&e.__ob__&&e.__ob__.dep.depend(),i(e)&&Ut(e)}function Yt(t){return!(!t||!0!==t.__v_isRef)}function qt(t){return $t(t,!1)}function Xt(t){return $t(t,!0)}function $t(t,e){if(Yt(t))return t;var n={};return U(n,"__v_isRef",!0),U(n,"__v_isShallow",e),U(n,"dep",Gt(n,"value",t,null,e,ot())),n}function Zt(t){t.dep&&t.dep.notify()}function Kt(t){return Yt(t)?t.value:t}function Qt(t){if(At(t))return t;for(var e={},n=Object.keys(t),r=0;r<n.length;r++)Jt(e,t,n[r]);return e}function Jt(t,e,n){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var t=e[n];if(Yt(t))return t.value;var r=t&&t.__ob__;return r&&r.dep.depend(),t},set:function(t){var r=e[n];Yt(r)&&!Yt(t)?r.value=t:e[n]=t}})}function te(t){var e=new bt,n=t((function(){e.depend()}),(function(){e.notify()})),r=n.get,i=n.set,o={get value(){return r()},set value(t){i(t)}};return U(o,"__v_isRef",!0),o}function ee(t){var e=i(t)?new Array(t.length):{};for(var n in t)e[n]=ne(t,n);return e}function ne(t,e,n){var r=t[e];if(Yt(r))return r;var i={get value(){var r=t[e];return void 0===r?n:r},set value(n){t[e]=n}};return U(i,"__v_isRef",!0),i}var re=new WeakMap,ie=new WeakMap;function oe(t){return ae(t,!1)}function ae(t,e){if(!p(t))return t;if(Dt(t))return t;var n=e?ie:re,r=n.get(t);if(r)return r;var i=Object.create(Object.getPrototypeOf(t));n.set(t,i),U(i,"__v_isReadonly",!0),U(i,"__v_raw",t),Yt(t)&&U(i,"__v_isRef",!0),(e||Tt(t))&&U(i,"__v_isShallow",!0);for(var o=Object.keys(t),a=0;a<o.length;a++)se(i,t,o[a],e);return i}function se(t,e,n,r){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var t=e[n];return r||!p(t)?t:oe(t)},set:function(){}})}function le(t){return ae(t,!0)}function ue(t,e){var n,r,i=u(t);i?(n=t,r=L):(n=t.get,r=t.set);var o=ot()?null:new Jn(ct,n,L,{lazy:!0});var a={effect:o,get value(){return o?(o.dirty&&o.evaluate(),bt.target&&o.depend(),o.value):n()},set value(t){r(t)}};return U(a,"__v_isRef",!0),U(a,"__v_isReadonly",i),a}var ce="".concat("watcher"," callback"),he="".concat("watcher"," getter"),pe="".concat("watcher"," cleanup");function fe(t,e){return be(t,null,e)}function de(t,e){return be(t,null,{flush:"post"})}function ge(t,e){return be(t,null,{flush:"sync"})}var ve,ye={};function me(t,e,n){return be(t,e,n)}function be(t,e,n){var o=void 0===n?r:n,a=o.immediate,s=o.deep,l=o.flush,c=void 0===l?"pre":l;o.onTrack,o.onTrigger;var h,p,f=ct,d=function(t,e,n){return void 0===n&&(n=null),yn(t,null,n,f,e)},g=!1,v=!1;if(Yt(t)?(h=function(){return t.value},g=Tt(t)):At(t)?(h=function(){return t.__ob__.dep.depend(),t},s=!0):i(t)?(v=!0,g=t.some((function(t){return At(t)||Tt(t)})),h=function(){return t.map((function(t){return Yt(t)?t.value:At(t)?Zn(t):u(t)?d(t,he):void 0}))}):h=u(t)?e?function(){return d(t,he)}:function(){if(!f||!f._isDestroyed)return p&&p(),d(t,"watcher",[m])}:L,e&&s){var y=h;h=function(){return Zn(y())}}var m=function(t){p=b.onStop=function(){d(t,pe)}};if(ot())return m=L,e?a&&d(e,ce,[h(),v?[]:void 0,m]):h(),L;var b=new Jn(ct,h,L,{lazy:!0});b.noRecurse=!e;var x=v?[]:ye;return b.run=function(){if(b.active)if(e){var t=b.get();(s||g||(v?t.some((function(t,e){return B(t,x[e])})):B(t,x)))&&(p&&p(),d(e,ce,[t,x===ye?void 0:x,m]),x=t)}else b.get()},"sync"===c?b.update=b.run:"post"===c?(b.post=!0,b.update=function(){return xr(b)}):b.update=function(){if(f&&f===ct&&!f._isMounted){var t=f._preWatchers||(f._preWatchers=[]);t.indexOf(b)<0&&t.push(b)}else xr(b)},e?a?b.run():x=b.get():"post"===c&&f?f.$once("hook:mounted",(function(){return b.get()})):b.get(),function(){b.teardown()}}var xe=function(){function t(t){void 0===t&&(t=!1),this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=ve,!t&&ve&&(this.index=(ve.scopes||(ve.scopes=[])).push(this)-1)}return t.prototype.run=function(t){if(this.active){var e=ve;try{return ve=this,t()}finally{ve=e}}else 0},t.prototype.on=function(){ve=this},t.prototype.off=function(){ve=this.parent},t.prototype.stop=function(t){if(this.active){var e=void 0,n=void 0;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].teardown();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this.active=!1}},t}();function _e(t){return new xe(t)}function we(){return ve}function Se(t){ve&&ve.cleanups.push(t)}function Me(t,e){ct&&(Oe(ct)[t]=e)}function Oe(t){var e=t._provided,n=t.$parent&&t.$parent._provided;return n===e?t._provided=Object.create(n):e}function Ce(t,e,n){void 0===n&&(n=!1);var r=ct;if(r){var i=r.$parent&&r.$parent._provided;if(i&&t in i)return i[t];if(arguments.length>1)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;o<r.length;o++)yn(r[o],null,arguments,e,"v-on handler")}return n.fns=t,n}function Ae(t,e,n,r,i,a){var l,u,c,h;for(l in t)u=t[l],c=e[l],h=Ie(l),o(u)||(o(c)?(o(u.fns)&&(u=t[l]=ke(u,a)),s(h.once)&&(u=t[l]=i(h.name,u,h.capture)),n(h.name,u,h.capture,h.passive,h.params)):u!==c&&(c.fns=u,t[l]=c));for(l in e)o(t[l])&&r((h=Ie(l)).name,e[l],h.capture)}function Te(t,e,n){var r;t instanceof ft&&(t=t.data.hook||(t.data.hook={}));var i=t[e];function l(){n.apply(this,arguments),x(r.fns,l)}o(i)?r=ke([l]):a(i.fns)&&s(i.merged)?(r=i).fns.push(l):r=ke([i,l]),r.merged=!0,t[e]=r}function De(t,e,n,r,i){if(a(e)){if(w(e,n))return t[n]=e[n],i||delete e[n],!0;if(w(e,r))return t[n]=e[r],i||delete e[r],!0}return!1}function Pe(t){return l(t)?[gt(t)]:i(t)?function t(e,n){var r,u,c,h,p=[];for(r=0;r<e.length;r++)o(u=e[r])||"boolean"==typeof u||(c=p.length-1,h=p[c],i(u)?u.length>0&&(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;n<r;n++)l[n]=e(t[n],n);else if("number"==typeof t)for(l=new Array(t),n=0;n<t;n++)l[n]=e(n+1,n);else if(c(t))if(ut&&t[Symbol.iterator]){l=[];for(var u=t[Symbol.iterator](),h=u.next();!h.done;)l.push(e(h.value,l.length)),h=u.next()}else for(o=Object.keys(t),l=new Array(o.length),n=0,r=o.length;n<r;n++)s=o[n],l[n]=e(t[s],s,n);return a(l)||(l=[]),l._isVList=!0,l}function Ee(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=D(D({},r),n)),i=o(n)||(u(e)?e():e)):i=this.$slots[t]||(u(e)?e():e);var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function Re(t){return zr(this.$options,"filters",t,!0)||E}function Ne(t,e){return i(t)?-1===t.indexOf(e):t!==e}function ze(t,e,n,r,i){var o=G.keyCodes[e]||n;return i&&r&&!G.keyCodes[e]?Ne(i,r):o?Ne(o,t):r?k(r)!==e:void 0===t}function Be(t,e,n,r,o){if(n)if(c(n)){i(n)&&(n=P(n));var a=void 0,s=function(i){if("class"===i||"style"===i||b(i))a=t;else{var s=t.attrs&&t.attrs.type;a=r||G.mustUseProp(e,s,i)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=O(i),u=k(i);l in a||u in a||(a[i]=n[i],o&&((t.on||(t.on={}))["update:".concat(i)]=function(t){n[i]=t}))};for(var l in n)s(l)}else;return t}function Ve(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||Ge(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,this._c,this),"__static__".concat(t),!1),r}function Fe(t,e,n){return Ge(t,"__once__".concat(e).concat(n?"_".concat(n):""),!0),t}function Ge(t,e,n){if(i(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&He(t[r],"".concat(e,"_").concat(r),n);else He(t,e,n)}function He(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function We(t,e){if(e)if(p(e)){var n=t.on=t.on?D({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function Ue(t,e,n,r){e=e||{$stable:!n};for(var o=0;o<t.length;o++){var a=t[o];i(a)?Ue(a,e,n):a&&(a.proxy&&(a.fn.proxy=!0),e[a.key]=a.fn)}return r&&(e.$key=r),e}function Ye(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"==typeof r&&r&&(t[e[n]]=e[n+1])}return t}function qe(t,e){return"string"==typeof t?e+t:t}function Xe(t){t._o=Fe,t._n=y,t._s=v,t._l=je,t._t=Ee,t._q=R,t._i=N,t._m=Ve,t._f=Re,t._k=ze,t._b=Be,t._v=gt,t._e=dt,t._u=Ue,t._g=We,t._d=Ye,t._p=qe}function $e(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,l=n[s]||(n[s]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var u in n)n[u].every(Ze)&&delete n[u];return n}function Ze(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Ke(t){return t.isComment&&t.asyncFactory}function Qe(t,e,n,i){var o,a=Object.keys(n).length>0,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;e<t.length;e++){var n=t[e];if(a(n)&&(a(n.componentOptions)||Ke(n)))return n}}function dn(t,e,n,r,h,p){return(i(n)||l(n))&&(h=r,r=n,n=void 0),s(p)&&(h=2),function(t,e,n,r,l){if(a(n)&&a(n.__ob__))return dt();a(n)&&a(n.is)&&(e=n.is);if(!e)return dt();0;i(r)&&u(r[0])&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);2===l?r=Pe(r):1===l&&(r=function(t){for(var e=0;e<t.length;e++)if(i(t[e]))return Array.prototype.concat.apply([],t);return t}(r));var h,p;if("string"==typeof e){var f=void 0;p=t.$vnode&&t.$vnode.ns||G.getTagNamespace(e),h=G.isReservedTag(e)?new ft(G.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!a(f=zr(t.$options,"components",e))?new ft(e,n,r,void 0,void 0,t):kr(f,n,t,r,e)}else h=kr(e,n,t,r);return i(h)?h:a(h)?(a(p)&&function t(e,n,r){e.ns=n,"foreignObject"===e.tag&&(n=void 0,r=!0);if(a(e.children))for(var i=0,l=e.children.length;i<l;i++){var u=e.children[i];a(u.tag)&&(o(u.ns)||s(r)&&"svg"!==u.tag)&&t(u,n,r)}}(h,p),a(n)&&function(t){c(t.style)&&Zn(t.style);c(t.class)&&Zn(t.class)}(n),h):dt()}(t,e,n,r,h)}function gn(t,e,n){return dn(ct,t,e,n,2,!0)}function vn(t,e,n){_t();try{if(e)for(var r=e;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,t,e,n))return}catch(t){mn(t,r,"errorCaptured hook")}}mn(t,e,n)}finally{wt()}}function yn(t,e,n,r,i){var o;try{(o=n?t.apply(e,n):t.call(e))&&!o._isVue&&g(o)&&!o._handled&&(o.catch((function(t){return vn(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(t){vn(t,r,i)}return o}function mn(t,e,n){if(G.errorHandler)try{return G.errorHandler.call(null,t,e,n)}catch(e){e!==t&&bn(e,null,"config.errorHandler")}bn(t,e,n)}function bn(t,e,n){if(!X||"undefined"==typeof console)throw t;console.error(t)}var xn,_n=!1,wn=[],Sn=!1;function Mn(){Sn=!1;var t=wn.slice(0);wn.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&st(Promise)){var On=Promise.resolve();xn=function(){On.then(Mn),J&&setTimeout(L)},_n=!0}else if(Z||"undefined"==typeof MutationObserver||!st(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())xn="undefined"!=typeof setImmediate&&st(setImmediate)?function(){setImmediate(Mn)}:function(){setTimeout(Mn,0)};else{var Cn=1,In=new MutationObserver(Mn),kn=document.createTextNode(String(Cn));In.observe(kn,{characterData:!0}),xn=function(){Cn=(Cn+1)%2,kn.data=String(Cn)},_n=!0}function An(t,e){var n;if(wn.push((function(){if(t)try{t.call(e)}catch(t){vn(t,e,"nextTick")}else n&&n(e)})),Sn||(Sn=!0,xn()),!t&&"undefined"!=typeof Promise)return new Promise((function(t){n=t}))}function Tn(t){if(void 0===t&&(t="$style"),!ct)return r;var e=ct[t];return e||r}function Dn(t){if(X){var e=ct;e&&de((function(){var n=e.$el,r=t(e,e._setupProxy);if(n&&1===n.nodeType){var i=n.style;for(var o in r)i.setProperty("--".concat(o),r[o])}}))}}function Pn(t){u(t)&&(t={loader:t});var e=t.loader,n=t.loadingComponent,r=t.errorComponent,i=t.delay,o=void 0===i?200:i,a=t.timeout,s=(t.suspensible,t.onError);var l=null,c=0,h=function(){var t;return l||(t=l=e().catch((function(t){if(t=t instanceof Error?t:new Error(String(t)),s)return new Promise((function(e,n){s(t,(function(){return e((c++,l=null,h()))}),(function(){return n(t)}),c+1)}));throw t})).then((function(e){return t!==l&&l?l:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),e)})))};return function(){return{component:h(),delay:o,timeout:a,error:r,loading:n}}}function Ln(t){return function(e,n){if(void 0===n&&(n=ct),n)return function(t,e,n){var r=t.$options;r[e]=jr(r[e],n)}(n,t,e)}}var jn=Ln("beforeMount"),En=Ln("mounted"),Rn=Ln("beforeUpdate"),Nn=Ln("updated"),zn=Ln("beforeDestroy"),Bn=Ln("destroyed"),Vn=Ln("activated"),Fn=Ln("deactivated"),Gn=Ln("serverPrefetch"),Hn=Ln("renderTracked"),Wn=Ln("renderTriggered"),Un=Ln("errorCaptured");function Yn(t,e){void 0===e&&(e=ct),Un(t,e)}var qn="2.7.13";function Xn(t){return t}var $n=new lt;function Zn(t){return function t(e,n){var r,o,a=i(e);if(!a&&!c(e)||e.__v_skip||Object.isFrozen(e)||e instanceof ft)return;if(e.__ob__){var s=e.__ob__.dep.id;if(n.has(s))return;n.add(s)}if(a)for(r=e.length;r--;)t(e[r],n);else if(Yt(e))t(e.value,n);else for(o=Object.keys(e),r=o.length;r--;)t(e[o[r]],n)}(t,$n),$n.clear(),t}var Kn,Qn=0,Jn=function(){function t(t,e,n,r,i){var o,a;o=this,void 0===(a=ve&&!ve._vm?ve:t?t._scope:void 0)&&(a=ve),a&&a.active&&a.effects.push(o),(this.vm=t)&&i&&(t._watcher=this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Qn,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new lt,this.newDepIds=new lt,this.expression="",u(e)?this.getter=e:(this.getter=function(t){if(!Y.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()}return t.prototype.get=function(){var t;_t(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;vn(t,e,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&Zn(t),wt(),this.cleanupDeps()}return t},t.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},t.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},t.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():xr(this)},t.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'.concat(this.expression,'"');yn(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},t.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},t.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},t.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&x(this.vm._scope.effects,this),this.active){for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},t}();function tr(t,e){Kn.$on(t,e)}function er(t,e){Kn.$off(t,e)}function nr(t,e){var n=Kn;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function rr(t,e,n){Kn=t,Ae(e,n||{},tr,er,nr,t),Kn=void 0}var ir=null;function or(t){var e=ir;return ir=t,function(){ir=e}}function ar(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function sr(t,e){if(e){if(t._directInactive=!1,ar(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)sr(t.$children[n]);lr(t,"activated")}}function lr(t,e,n,r){void 0===r&&(r=!0),_t();var i=ct;r&&pt(t);var o=t.$options[e],a="".concat(e," hook");if(o)for(var s=0,l=o.length;s<l;s++)yn(o[s],t,n||null,t,a);t._hasHookEvent&&t.$emit("hook:"+e),r&&pt(i),wt()}var ur=[],cr=[],hr={},pr=!1,fr=!1,dr=0;var gr=0,vr=Date.now;if(X&&!Z){var yr=window.performance;yr&&"function"==typeof yr.now&&vr()>document.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;dr<ur.length;dr++)(t=ur[dr]).before&&t.before(),e=t.id,hr[e]=null,t.run();var n=cr.slice(),r=ur.slice();dr=ur.length=cr.length=0,hr={},pr=fr=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,sr(t[e],!0)}(n),function(t){var e=t.length;for(;e--;){var n=t[e],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&lr(r,"updated")}}(r),function(){for(var t=0;t<mt.length;t++){var e=mt[t];e.subs=e.subs.filter((function(t){return t})),e._pending=!1}mt.length=0}(),at&&G.devtools&&at.emit("flush")}function xr(t){var e=t.id;if(null==hr[e]&&(t!==bt.target||!t.noRecurse)){if(hr[e]=!0,fr){for(var n=ur.length-1;n>dr&&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<r.length;i++){var o=r[i];if("__ob__"!==o){var a=t[o].from;if(a in e._provided)n[o]=e._provided[a];else if("default"in t[o]){var s=t[o].default;n[o]=u(s)?s.call(e):s}else 0}}return n}}function wr(t,e,n,o,a){var l,u=this,c=a.options;w(o,"_uid")?(l=Object.create(o))._original=o:(l=o,o=o._original);var h=s(c._compiled),p=!h;this.data=t,this.props=e,this.children=n,this.parent=o,this.listeners=t.on||r,this.injections=_r(c.inject,o),this.slots=function(){return u.$slots||Qe(o,t.scopedSlots,u.$slots=$e(n,o)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Qe(o,t.scopedSlots,this.slots())}}),h&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=Qe(o,t.scopedSlots,this.$slots)),c._scopeId?this._c=function(t,e,n,r){var a=dn(l,t,e,n,r,p);return a&&!i(a)&&(a.fnScopeId=c._scopeId,a.fnContext=o),a}:this._c=function(t,e,n,r){return dn(l,t,e,n,r,p)}}function Sr(t,e,n,r,i){var o=vt(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function Mr(t,e){for(var n in e)t[O(n)]=e[n]}function Or(t){return t.name||t.__name||t._componentTag}Xe(wr.prototype);var Cr={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;Cr.prepatch(n,n)}else{(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;a(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,ir)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,i,o){var a=i.data.scopedSlots,s=t.$scopedSlots,l=!!(a&&!a.$stable||s!==r&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key||!a&&t.$scopedSlots.$key),u=!!(o||t.$options._renderChildren||l),c=t.$vnode;t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=o;var h=i.data.attrs||r;t._attrsProxy&&nn(t._attrsProxy,h,c.data&&c.data.attrs||r,t,"$attrs")&&(u=!0),t.$attrs=h,n=n||r;var p=t.$options._parentListeners;if(t._listenersProxy&&nn(t._listenersProxy,n,p||r,t,"$listeners"),t.$listeners=t.$options._parentListeners=n,rr(t,n,p),e&&t.$options.props){zt(!1);for(var f=t._props,d=t.$options._propKeys||[],g=0;g<d.length;g++){var v=d[g],y=t.$options.props;f[v]=Br(v,y,e,t)}zt(!0),t.$options.propsData=e}u&&(t.$slots=$e(o,i.context),t.$forceUpdate())}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e,n=t.context,r=t.componentInstance;r._isMounted||(r._isMounted=!0,lr(r,"mounted")),t.data.keepAlive&&(n._isMounted?((e=r)._inactive=!1,cr.push(e)):sr(r,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,n){if(!(n&&(e._directInactive=!0,ar(e))||e._inactive)){e._inactive=!0;for(var r=0;r<e.$children.length;r++)t(e.$children[r]);lr(e,"deactivated")}}(e,!0):e.$destroy())}},Ir=Object.keys(Cr);function kr(t,e,n,l,u){if(!o(t)){var h=n.$options._base;if(c(t)&&(t=h.extend(t)),"function"==typeof t){var p;if(o(t.cid)&&void 0===(t=function(t,e){if(s(t.error)&&a(t.errorComp))return t.errorComp;if(a(t.resolved))return t.resolved;var n=hn;if(n&&a(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),s(t.loading)&&a(t.loadingComp))return t.loadingComp;if(n&&!a(t.owners)){var r=t.owners=[n],i=!0,l=null,u=null;n.$on("hook:destroyed",(function(){return x(r,n)}));var h=function(t){for(var e=0,n=r.length;e<n;e++)r[e].$forceUpdate();t&&(r.length=0,null!==l&&(clearTimeout(l),l=null),null!==u&&(clearTimeout(u),u=null))},p=z((function(n){t.resolved=pn(n,e),i?r.length=0:h(!0)})),f=z((function(e){a(t.errorComp)&&(t.error=!0,h(!0))})),d=t(p,f);return c(d)&&(g(d)?o(t.resolved)&&d.then(p,f):g(d.component)&&(d.component.then(p,f),a(d.error)&&(t.errorComp=pn(d.error,e)),a(d.loading)&&(t.loadingComp=pn(d.loading,e),0===d.delay?t.loading=!0:l=setTimeout((function(){l=null,o(t.resolved)&&o(t.error)&&(t.loading=!0,h(!1))}),d.delay||200)),a(d.timeout)&&(u=setTimeout((function(){u=null,o(t.resolved)&&f(null)}),d.timeout)))),i=!1,t.loading?t.loadingComp:t.resolved}}(p=t,h)))return function(t,e,n,r,i){var o=dt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}(p,e,n,l,u);e=e||{},Jr(t),a(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),s=o[r],l=e.model.callback;a(s)?(i(s)?-1===s.indexOf(l):s!==l)&&(o[r]=[l].concat(s)):o[r]=l}(t.options,e);var f=function(t,e,n){var r=e.options.props;if(!o(r)){var i={},s=t.attrs,l=t.props;if(a(s)||a(l))for(var u in r){var c=k(u);De(i,l,u,c,!0)||De(i,s,u,c,!1)}return i}}(e,t);if(s(t.options.functional))return function(t,e,n,o,s){var l=t.options,u={},c=l.props;if(a(c))for(var h in c)u[h]=Br(h,c,e||r);else a(n.attrs)&&Mr(u,n.attrs),a(n.props)&&Mr(u,n.props);var p=new wr(n,u,s,o,t),f=l.render.call(null,p._c,p);if(f instanceof ft)return Sr(f,n,p.parent,l,p);if(i(f)){for(var d=Pe(f)||[],g=new Array(d.length),v=0;v<d.length;v++)g[v]=Sr(d[v],n,p.parent,l,p);return g}}(t,f,e,n,l);var d=e.on;if(e.on=e.nativeOn,s(t.options.abstract)){var v=e.slot;e={},v&&(e.slot=v)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<Ir.length;n++){var r=Ir[n],i=e[r],o=Cr[r];i===o||i&&i._merged||(e[r]=i?Ar(o,i):o)}}(e);var y=Or(t.options)||u;return new ft("vue-component-".concat(t.cid).concat(y?"-".concat(y):""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:f,listeners:d,tag:u,children:l},p)}}}function Ar(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}var Tr=L,Dr=G.optionMergeStrategies;function Pr(t,e){if(!e)return t;for(var n,r,i,o=ut?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=t[n],i=e[n],w(t,n)?r!==i&&p(r)&&p(i)&&Pr(r,i):Ht(t,n,i));return t}function Lr(t,e,n){return n?function(){var r=u(e)?e.call(n,n):e,i=u(t)?t.call(n,n):t;return r?Pr(r,i):i}:e?t?function(){return Pr(u(e)?e.call(this,this):e,u(t)?t.call(this,this):t)}:e:t}function jr(t,e){var n=e?t?t.concat(e):i(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function Er(t,e,n,r){var i=Object.create(t||null);return e?D(i,e):i}Dr.data=function(t,e,n){return n?Lr(t,e,n):e&&"function"!=typeof e?t:Lr(t,e)},F.forEach((function(t){Dr[t]=jr})),V.forEach((function(t){Dr[t+"s"]=Er})),Dr.watch=function(t,e,n,r){if(t===nt&&(t=void 0),e===nt&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var o={};for(var a in D(o,t),e){var s=o[a],l=e[a];s&&!i(s)&&(s=[s]),o[a]=s?s.concat(l):i(l)?l:[l]}return o},Dr.props=Dr.methods=Dr.inject=Dr.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return D(i,t),e&&D(i,e),i},Dr.provide=Lr;var Rr=function(t,e){return void 0===e?t:e};function Nr(t,e,n){if(u(e)&&(e=e.options),function(t,e){var n=t.props;if(n){var r,o,a={};if(i(n))for(r=n.length;r--;)"string"==typeof(o=n[r])&&(a[O(o)]={type:null});else if(p(n))for(var s in n)o=n[s],a[O(s)]=p(o)?o:{type:o};else 0;t.props=a}}(e),function(t,e){var n=t.inject;if(n){var r=t.inject={};if(i(n))for(var o=0;o<n.length;o++)r[n[o]]={from:n[o]};else if(p(n))for(var a in n){var s=n[a];r[a]=p(s)?D({from:a},s):{from:s}}else 0}}(e),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];u(r)&&(e[n]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=Nr(t,e.extends,n)),e.mixins))for(var r=0,o=e.mixins.length;r<o;r++)t=Nr(t,e.mixins[r],n);var a,s={};for(a in t)l(a);for(a in e)w(t,a)||l(a);function l(r){var i=Dr[r]||Rr;s[r]=i(t[r],e[r],n,r)}return s}function zr(t,e,n,r){if("string"==typeof n){var i=t[e];if(w(i,n))return i[n];var o=O(n);if(w(i,o))return i[o];var a=C(o);return w(i,a)?i[a]:i[n]||i[o]||i[a]}}function Br(t,e,n,r){var i=e[t],o=!w(n,t),a=n[t],s=Hr(Boolean,i.type);if(s>-1)if(o&&!w(i,"default"))a=!1;else if(""===a||a===k(t)){var l=Hr(String,i.type);(l<0||s<l)&&(a=!0)}if(void 0===a){a=function(t,e,n){if(!w(e,"default"))return;var r=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return u(r)&&"Function"!==Fr(e.type)?r.call(t):r}(r,i,t);var c=Nt;zt(!0),Ft(a),zt(c)}return a}var Vr=/^\s*function (\w+)/;function Fr(t){var e=t&&t.toString().match(Vr);return e?e[1]:""}function Gr(t,e){return Fr(t)===Fr(e)}function Hr(t,e){if(!i(e))return Gr(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Gr(e[n],t))return n;return-1}var Wr={enumerable:!0,configurable:!0,get:L,set:L};function Ur(t,e,n){Wr.get=function(){return this[e][n]},Wr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Wr)}function Yr(t){var e=t.$options;if(e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props=It({}),i=t.$options._propKeys=[];t.$parent&&zt(!1);var o=function(o){i.push(o);var a=Br(o,e,n,t);Gt(r,o,a),o in t||Ur(t,"_props",o)};for(var a in e)o(a);zt(!0)}(t,e.props),function(t){var e=t.$options,n=e.setup;if(n){var r=t._setupContext=en(t);pt(t),_t();var i=yn(n,null,[t._props||It({}),r],t,"setup");if(wt(),pt(),u(i))e.render=i;else if(c(i))if(t._setupState=i,i.__sfc){var o=t._setupProxy={};for(var a in i)"__sfc"!==a&&Jt(o,i,a)}else for(var a in i)W(a)||Jt(t,i,a);else 0}}(t),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?L:A(e[n],t)}(t,e.methods),e.data)!function(t){var e=t.$options.data;p(e=t._data=u(e)?function(t,e){_t();try{return t.call(e,e)}catch(t){return vn(t,e,"data()"),{}}finally{wt()}}(e,t):e||{})||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&w(r,o)||W(o)||Ur(t,"_data",o)}var a=Ft(e);a&&a.vmCount++}(t);else{var n=Ft(t._data={});n&&n.vmCount++}e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=ot();for(var i in e){var o=e[i],a=u(o)?o:o.get;0,r||(n[i]=new Jn(t,a||L,L,qr)),i in t||Xr(t,i,o)}}(t,e.computed),e.watch&&e.watch!==nt&&function(t,e){for(var n in e){var r=e[n];if(i(r))for(var o=0;o<r.length;o++)Kr(t,n,r[o]);else Kr(t,n,r)}}(t,e.watch)}var qr={lazy:!0};function Xr(t,e,n){var r=!ot();u(n)?(Wr.get=r?$r(e):Zr(n),Wr.set=L):(Wr.get=n.get?r&&!1!==n.cache?$r(e):Zr(n.get):L,Wr.set=n.set||L),Object.defineProperty(t,e,Wr)}function $r(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),bt.target&&e.depend(),e.value}}function Zr(t){return function(){return t.call(this,this)}}function Kr(t,e,n,r){return p(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var Qr=0;function Jr(t){var e=t.options;if(t.super){var n=Jr(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&D(t.extendOptions,r),(e=t.options=Nr(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function ti(t){this._init(t)}function ei(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=Or(t)||Or(n.options);var a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=Nr(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)Ur(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)Xr(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,V.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=D({},a.options),i[r]=a,a}}function ni(t){return t&&(Or(t.Ctor.options)||t.tag)}function ri(t,e){return i(t)?t.indexOf(e)>-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;o<i.length;o++){var a=i[o];Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(n,a))}}}(e),lr(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(ti),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Ht,t.prototype.$delete=Wt,t.prototype.$watch=function(t,e,n){if(p(e))return Kr(this,t,e,n);(n=n||{}).user=!0;var r=new Jn(this,t,e,n);if(n.immediate){var i='callback for immediate watcher "'.concat(r.expression,'"');_t(),yn(e,this,[r.value],this,i),wt()}return function(){r.teardown()}}}(ti),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(i(t))for(var o=0,a=t.length;o<a;o++)r.$on(t[o],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(i(t)){for(var r=0,o=t.length;r<o;r++)n.$off(t[r],e);return n}var a,s=n._events[t];if(!s)return n;if(!e)return n._events[t]=null,n;for(var l=s.length;l--;)if((a=s[l])===e||a.fn===e){s.splice(l,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?T(n):n;for(var r=T(arguments,1),i='event handler for "'.concat(t,'"'),o=0,a=n.length;o<a;o++)yn(n[o],e,r,e,i)}return e}}(ti),function(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=or(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);for(var a=n;a&&a.$vnode&&a.$parent&&a.$vnode===a.$parent._vnode;)a.$parent.$el=a.$el,a=a.$parent},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){lr(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||x(e.$children,t),t._scope.stop(),t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),lr(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(ti),function(t){Xe(t.prototype),t.prototype.$nextTick=function(t){return An(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,o=n._parentVnode;o&&e._isMounted&&(e.$scopedSlots=Qe(e.$parent,o.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&on(e._slotsProxy,e.$scopedSlots)),e.$vnode=o;try{pt(e),hn=e,t=r.call(e._renderProxy,e.$createElement)}catch(n){vn(n,e,"render"),t=e._vnode}finally{hn=null,pt()}return i(t)&&1===t.length&&(t=t[0]),t instanceof ft||(t=dt()),t.parent=o,t}}(ti);var ai=[String,RegExp,Array],si={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:ai,exclude:ai,max:[String,Number]},methods:{cacheVNode:function(){var t=this.cache,e=this.keys,n=this.vnodeToCache,r=this.keyToCache;if(n){var i=n.tag,o=n.componentInstance,a=n.componentOptions;t[r]={name:ni(a),tag:i,componentInstance:o},e.push(r),this.max&&e.length>parseInt(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<i;r++)a(e=xi(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):c(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var _i={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},wi=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Si=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Mi=function(t){return wi(t)||Si(t)};var Oi=Object.create(null);var Ci=m("text,number,password,search,email,tel,url");var Ii=Object.freeze({__proto__:null,createElement:function(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(t,e){return document.createElementNS(_i[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),ki={create:function(t,e){Ai(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Ai(t,!0),Ai(e))},destroy:function(t){Ai(t,!0)}};function Ai(t,e){var n=t.data.ref;if(a(n)){var r=t.context,o=t.componentInstance||t.elm,s=e?null:o,l=e?void 0:o;if(u(n))yn(n,r,[s],r,"template ref function");else{var c=t.data.refInFor,h="string"==typeof n||"number"==typeof n,p=Yt(n),f=r.$refs;if(h||p)if(c){var d=h?f[n]:n.value;e?i(d)&&x(d,o):i(d)?d.includes(o)||d.push(o):h?(f[n]=[o],Ti(r,n,f[n])):n.value=[o]}else if(h){if(e&&f[n]!==o)return;f[n]=l,Ti(r,n,s)}else if(p){if(e&&n.value!==o)return;n.value=s}else 0}}}function Ti(t,e,n){var r=t._setupState;r&&w(r,e)&&(Yt(r[e])?r[e].value=n:r[e]=n)}var Di=new ft("",{},[]),Pi=["create","activate","update","remove","destroy"];function Li(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&a(t.data)===a(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,r=a(n=t.data)&&a(n=n.attrs)&&n.type,i=a(n=e.data)&&a(n=n.attrs)&&n.type;return r===i||Ci(r)&&Ci(i)}(t,e)||s(t.isAsyncPlaceholder)&&o(e.asyncFactory.error))}function ji(t,e,n){var r,i,o={};for(r=e;r<=n;++r)a(i=t[r].key)&&(o[i]=r);return o}var Ei={create:Ri,update:Ri,destroy:function(t){Ri(t,Di)}};function Ri(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,r,i,o=t===Di,a=e===Di,s=zi(t.data.directives,t.context),l=zi(e.data.directives,e.context),u=[],c=[];for(n in l)r=s[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Vi(i,"update",e,t),i.def&&i.def.componentUpdated&&c.push(i)):(Vi(i,"bind",e,t),i.def&&i.def.inserted&&u.push(i));if(u.length){var h=function(){for(var n=0;n<u.length;n++)Vi(u[n],"inserted",e,t)};o?Te(e,"insert",h):h()}c.length&&Te(e,"postpatch",(function(){for(var n=0;n<c.length;n++)Vi(c[n],"componentUpdated",e,t)}));if(!o)for(n in s)l[n]||Vi(s[n],"unbind",t,t,a)}(t,e)}var Ni=Object.create(null);function zi(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++){if((r=t[n]).modifiers||(r.modifiers=Ni),i[Bi(r)]=r,e._setupState&&e._setupState.__sfc){var o=r.def||zr(e,"_setupState","v-"+r.name);r.def="function"==typeof o?{bind:o,update:o}:o}r.def=r.def||zr(e.$options,"directives",r.name)}return i}function Bi(t){return t.rawName||"".concat(t.name,".").concat(Object.keys(t.modifiers||{}).join("."))}function Vi(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(r){vn(r,n.context,"directive ".concat(t.name," ").concat(e," hook"))}}var Fi=[ki,Ei];function Gi(t,e){var n=e.componentOptions;if(!(a(n)&&!1===n.Ctor.options.inheritAttrs||o(t.data.attrs)&&o(e.data.attrs))){var r,i,l=e.elm,u=t.data.attrs||{},c=e.data.attrs||{};for(r in(a(c.__ob__)||s(c._v_attr_proxy))&&(c=e.data.attrs=D({},c)),c)i=c[r],u[r]!==i&&Hi(l,r,i,e.data.pre);for(r in(Z||Q)&&c.value!==u.value&&Hi(l,"value",c.value),u)o(c[r])&&(di(r)?l.removeAttributeNS(fi,gi(r)):ci(r)||l.removeAttribute(r))}}function Hi(t,e,n,r){r||t.tagName.indexOf("-")>-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="<svg>".concat(r,"</svg>");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<o;i++)t.style[r]=n[i];else t.style[r]=n}},po=["Webkit","Moz","ms"],fo=S((function(t){if(lo=lo||document.createElement("div").style,"filter"!==(t=O(t))&&t in lo)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<po.length;n++){var r=po[n]+e;if(r in lo)return r}}));function go(t,e){var n=e.data,r=t.data;if(!(o(n.staticStyle)&&o(n.style)&&o(r.staticStyle)&&o(r.style))){var i,s,l=e.elm,u=r.staticStyle,c=r.normalizedStyle||r.style||{},h=u||c,p=so(e.data.style)||{};e.data.normalizedStyle=a(p.__ob__)?D({},p):p;var f=function(t,e){var n,r={};if(e)for(var i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=ao(i.data))&&D(r,n);(n=ao(t.data))&&D(r,n);for(var o=t;o=o.parent;)o.data&&(n=ao(o.data))&&D(r,n);return r}(e,!0);for(s in h)o(f[s])&&ho(l,s,"");for(s in f)(i=f[s])!==h[s]&&ho(l,s,null==i?"":i)}}var vo={create:go,update:go},yo=/\s+/;function mo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-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(){l<a&&u()}),o+1),t.addEventListener(s,c)}var Po=/\b(transform|all)(,|$)/;function Lo(t,e){var n,r=window.getComputedStyle(t),i=(r[So+"Delay"]||"").split(", "),o=(r[So+"Duration"]||"").split(", "),a=jo(i,o),s=(r[Oo+"Delay"]||"").split(", "),l=(r[Oo+"Duration"]||"").split(", "),u=jo(s,l),c=0,h=0;return"transition"===e?a>0&&(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.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return Eo(e)+Eo(t[n])})))}function Eo(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function Ro(t,e){var n=t.elm;a(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=xo(t.data.transition);if(!o(r)&&!a(n._enterCb)&&1===n.nodeType){for(var i=r.css,s=r.type,l=r.enterClass,h=r.enterToClass,p=r.enterActiveClass,f=r.appearClass,d=r.appearToClass,g=r.appearActiveClass,v=r.beforeEnter,m=r.enter,b=r.afterEnter,x=r.enterCancelled,_=r.beforeAppear,w=r.appear,S=r.afterAppear,M=r.appearCancelled,O=r.duration,C=ir,I=ir.$vnode;I&&I.parent;)C=I.context,I=I.parent;var k=!C._isMounted||!t.isRootInsert;if(!k||w||""===w){var A=k&&f?f:l,T=k&&g?g:p,D=k&&d?d:h,P=k&&_||v,L=k&&u(w)?w:m,j=k&&S||b,E=k&&M||x,R=y(c(O)?O.enter:O);0;var N=!1!==i&&!K,B=Bo(L),V=n._enterCb=z((function(){N&&(To(n,D),To(n,T)),V.cancelled?(N&&To(n,A),E&&E(n)):j&&j(n),n._enterCb=null}));t.data.show||Te(t,"insert",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),L&&L(n,V)})),P&&P(n),N&&(Ao(n,A),Ao(n,T),ko((function(){To(n,A),V.cancelled||(Ao(n,D),B||(zo(R)?setTimeout(V,R):Do(n,s,V)))}))),t.data.show&&(e&&e(),L&&L(n,V)),N||B||V()}}}function No(t,e){var n=t.elm;a(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=xo(t.data.transition);if(o(r)||1!==n.nodeType)return e();if(!a(n._leaveCb)){var i=r.css,s=r.type,l=r.leaveClass,u=r.leaveToClass,h=r.leaveActiveClass,p=r.beforeLeave,f=r.leave,d=r.afterLeave,g=r.leaveCancelled,v=r.delayLeave,m=r.duration,b=!1!==i&&!K,x=Bo(f),_=y(c(m)?m.leave:m);0;var w=n._leaveCb=z((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),b&&(To(n,u),To(n,h)),w.cancelled?(b&&To(n,l),g&&g(n)):(e(),d&&d(n)),n._leaveCb=null}));v?v(S):S()}function S(){w.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),p&&p(n),b&&(Ao(n,l),Ao(n,h),ko((function(){To(n,l),w.cancelled||(Ao(n,u),x||(zo(_)?setTimeout(w,_):Do(n,s,w)))}))),f&&f(n,w),b||x||w())}}function zo(t){return"number"==typeof t&&!isNaN(t)}function Bo(t){if(o(t))return!1;var e=t.fns;return a(e)?Bo(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}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;e<Pi.length;++e)for(r[Pi[e]]=[],n=0;n<u.length;++n)a(u[n][Pi[e]])&&r[Pi[e]].push(u[n][Pi[e]]);function h(t){var e=c.parentNode(t);a(e)&&c.removeChild(e,t)}function p(t,e,n,i,o,l,u){if(a(t.elm)&&a(l)&&(t=l[u]=vt(t)),t.isRootInsert=!o,!function(t,e,n,i){var o=t.data;if(a(o)){var l=a(t.componentInstance)&&o.keepAlive;if(a(o=o.hook)&&a(o=o.init)&&o(t,!1),a(t.componentInstance))return f(t,e),d(n,t.elm,i),s(l)&&function(t,e,n,i){var o,s=t;for(;s.componentInstance;)if(s=s.componentInstance._vnode,a(o=s.data)&&a(o=o.transition)){for(o=0;o<r.activate.length;++o)r.activate[o](Di,s);e.push(s);break}d(n,t.elm,i)}(t,e,n,i),!0}}(t,e,n,i)){var h=t.data,p=t.children,v=t.tag;a(v)?(t.elm=t.ns?c.createElementNS(t.ns,v):c.createElement(v,t),b(t),g(t,p,e),a(h)&&y(t,e),d(n,t.elm,i)):s(t.isComment)?(t.elm=c.createComment(t.text),d(n,t.elm,i)):(t.elm=c.createTextNode(t.text),d(n,t.elm,i))}}function f(t,e){a(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,v(t)?(y(t,e),b(t)):(Ai(t),e.push(t))}function d(t,e,n){a(t)&&(a(n)?c.parentNode(n)===t&&c.insertBefore(t,e,n):c.appendChild(t,e))}function g(t,e,n){if(i(e)){0;for(var r=0;r<e.length;++r)p(e[r],n,t.elm,null,!0,e,r)}else l(t.text)&&c.appendChild(t.elm,c.createTextNode(String(t.text)))}function v(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return a(t.tag)}function y(t,n){for(var i=0;i<r.create.length;++i)r.create[i](Di,t);a(e=t.data.hook)&&(a(e.create)&&e.create(Di,t),a(e.insert)&&n.push(t))}function b(t){var e;if(a(e=t.fnScopeId))c.setStyleScope(t.elm,e);else for(var n=t;n;)a(e=n.context)&&a(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e),n=n.parent;a(e=ir)&&e!==t.context&&e!==t.fnContext&&a(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e)}function x(t,e,n,r,i,o){for(;r<=i;++r)p(n[r],o,t,e,!1,n,r)}function _(t){var e,n,i=t.data;if(a(i))for(a(e=i.hook)&&a(e=e.destroy)&&e(t),e=0;e<r.destroy.length;++e)r.destroy[e](t);if(a(e=t.children))for(n=0;n<t.children.length;++n)_(t.children[n])}function w(t,e,n){for(;e<=n;++e){var r=t[e];a(r)&&(a(r.tag)?(S(r),_(r)):h(r.elm))}}function S(t,e){if(a(e)||a(t.data)){var n,i=r.remove.length+1;for(a(e)?e.listeners+=i:e=function(t,e){function n(){0==--n.listeners&&h(t)}return n.listeners=e,n}(t.elm,i),a(n=t.componentInstance)&&a(n=n._vnode)&&a(n.data)&&S(n,e),n=0;n<r.remove.length;++n)r.remove[n](t,e);a(n=t.data.hook)&&a(n=n.remove)?n(t,e):e()}else h(t.elm)}function M(t,e,n,r){for(var i=n;i<r;i++){var o=e[i];if(a(o)&&Li(t,o))return i}}function O(t,e,n,i,l,u){if(t!==e){a(e.elm)&&a(i)&&(e=i[l]=vt(e));var h=e.elm=t.elm;if(s(t.isAsyncPlaceholder))a(e.asyncFactory.resolved)?k(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(s(e.isStatic)&&s(t.isStatic)&&e.key===t.key&&(s(e.isCloned)||s(e.isOnce)))e.componentInstance=t.componentInstance;else{var f,d=e.data;a(d)&&a(f=d.hook)&&a(f=f.prepatch)&&f(t,e);var g=t.children,y=e.children;if(a(d)&&v(e)){for(f=0;f<r.update.length;++f)r.update[f](t,e);a(f=d.hook)&&a(f=f.update)&&f(t,e)}o(e.text)?a(g)&&a(y)?g!==y&&function(t,e,n,r,i){var s,l,u,h=0,f=0,d=e.length-1,g=e[0],v=e[d],y=n.length-1,m=n[0],b=n[y],_=!i;for(0;h<=d&&f<=y;)o(g)?g=e[++h]:o(v)?v=e[--d]:Li(g,m)?(O(g,m,r,n,f),g=e[++h],m=n[++f]):Li(v,b)?(O(v,b,r,n,y),v=e[--d],b=n[--y]):Li(g,b)?(O(g,b,r,n,y),_&&c.insertBefore(t,g.elm,c.nextSibling(v.elm)),g=e[++h],b=n[--y]):Li(v,m)?(O(v,m,r,n,f),_&&c.insertBefore(t,v.elm,g.elm),v=e[--d],m=n[++f]):(o(s)&&(s=ji(e,h,d)),o(l=a(m.key)?s[m.key]:M(m,e,h,d))?p(m,r,t,g.elm,!1,n,f):Li(u=e[l],m)?(O(u,m,r,n,f),e[l]=void 0,_&&c.insertBefore(t,u.elm,g.elm)):p(m,r,t,g.elm,!1,n,f),m=n[++f]);h>d?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<e.length;++r)e[r].data.hook.insert(e[r])}var I=m("attrs,class,staticClass,staticStyle,key");function k(t,e,n,r){var i,o=e.tag,l=e.data,u=e.children;if(r=r||l&&l.pre,e.elm=t,s(e.isComment)&&a(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(a(l)&&(a(i=l.hook)&&a(i=i.init)&&i(e,!0),a(i=e.componentInstance)))return f(e,n),!0;if(a(o)){if(a(u))if(t.hasChildNodes())if(a(i=l)&&a(i=i.domProps)&&a(i=i.innerHTML)){if(i!==t.innerHTML)return!1}else{for(var c=!0,h=t.firstChild,p=0;p<u.length;p++){if(!h||!k(h,u[p],n,r)){c=!1;break}h=h.nextSibling}if(!c||h)return!1}else g(e,u,n);if(a(l)){var d=!1;for(var v in l)if(!I(v)){d=!0,y(e,n);break}!d&&l.class&&Zn(l.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,i){if(!o(e)){var l,u=!1,h=[];if(o(t))u=!0,p(e,h);else{var f=a(t.nodeType);if(!f&&Li(t,e))O(t,e,h,null,null,i);else{if(f){if(1===t.nodeType&&t.hasAttribute("data-server-rendered")&&(t.removeAttribute("data-server-rendered"),n=!0),s(n)&&k(t,e,h))return C(e,h,!0),t;l=t,t=new ft(c.tagName(l).toLowerCase(),{},[],void 0,l)}var d=t.elm,g=c.parentNode(d);if(p(e,h,d._leaveCb?null:g,c.nextSibling(d)),a(e.parent))for(var y=e.parent,m=v(e);y;){for(var b=0;b<r.destroy.length;++b)r.destroy[b](y);if(y.elm=e.elm,m){for(var x=0;x<r.create.length;++x)r.create[x](Di,y);var S=y.data.hook.insert;if(S.merged)for(var M=1;M<S.fns.length;M++)S.fns[M]()}else Ai(y);y=y.parent}a(g)?w([t],0,0):a(t.tag)&&_(t)}}return C(e,h,u),e.elm}a(t)&&_(t)}}({nodeOps:Ii,modules:[Ui,Xi,eo,io,vo,X?{create:Vo,activate:Vo,remove:function(t,e){!0!==t.data.show?No(t,e):e()}}:{}].concat(Fi)});K&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&$o(t,"input")}));var Go={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?Te(n,"postpatch",(function(){Go.componentUpdated(t,e,n)})):Ho(t,e,n.context),t._vOptions=[].map.call(t.options,Yo)):("textarea"===n.tag||Ci(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",qo),t.addEventListener("compositionend",Xo),t.addEventListener("change",Xo),K&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Ho(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,Yo);if(i.some((function(t,e){return!R(t,r[e])})))(t.multiple?e.value.some((function(t){return Uo(t,i)})):e.value!==e.oldValue&&Uo(e.value,i))&&$o(t,"change")}}};function Ho(t,e,n){Wo(t,e,n),(Z||Q)&&setTimeout((function(){Wo(t,e,n)}),0)}function Wo(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=t.options.length;s<l;s++)if(a=t.options[s],i)o=N(r,Yo(a))>-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<i.length;s++){if((c=i[s]).tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(r){var l=[],u=[];for(s=0;s<r.length;s++){var c;(c=r[s]).data.transition=a,c.data.pos=c.elm.getBoundingClientRect(),n[c.key]?l.push(c):u.push(c)}this.kept=t(e,null,l),this.removed=u}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(aa),t.forEach(sa),t.forEach(la),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;Ao(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Mo,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Mo,t),n._moveCb=null,To(n,e))})}})))},methods:{hasMove:function(t,e){if(!wo)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){bo(n,t)})),mo(n,e),n.style.display="none",this.$el.appendChild(n);var r=Lo(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};ti.config.mustUseProp=function(t,e,n){return"value"===n&&ui(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},ti.config.isReservedTag=Mi,ti.config.isReservedAttr=li,ti.config.getTagNamespace=function(t){return Si(t)?"svg":"math"===t?"math":void 0},ti.config.isUnknownElement=function(t){if(!X)return!0;if(Mi(t))return!1;if(t=t.toLowerCase(),null!=Oi[t])return Oi[t];var e=document.createElement(t);return t.indexOf("-")>-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;o<i.length;o++)i[o].run();return null==t.$vnode&&(t._isMounted=!0,lr(t,"mounted")),t}(this,t=t&&X?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}(t):void 0,e)},X&&setTimeout((function(){G.devtools&&at&&at.emit("init",ti)}),0)}.call(this,n("c8ba"))},"2db9":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.bezierCurveToPolyline=v,e.getBezierCurveLength=function(t){var e=arguments.length>1&&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;a<i;a++)for(var s=f([t[n]])[0].map((function(t){return t-v})),l=0,u=0;u<r;u++){if(0===u)return;l+=s[u-1],o[u]-=b*l,o[u]>1&&(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<i[t].length;a++)if(i[t][a].h===n)return this;var s={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[t].length-1,u=i[t][l];return u&&u.callAtLast?i[t].splice(l,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=e[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}(),A=Math.log(2);function T(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~i)/A);return t[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var h=0,p=0,f=0;p<s;p++){var d=1<<p;d&i||(h+=(f%2?-1:1)*t[n][p]*T(t,e-1,c,u,i|d,o),f++)}return o[a]=h,h}function D(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=T(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*T(n,7,0===a?1:0,1<<a,1<<s,r)/i*e[a];return function(t,e,n){var r=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/r,t[1]=(e*o[3]+n*o[4]+o[5])/r}}}var P=[];function L(t,e,n,r,i){if(e.getBoundingClientRect&&s.a.domSupported&&!j(e)){var o=e.___zrEVENTSAVED||(e.___zrEVENTSAVED={}),a=function(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,p=c.left,f=c.top;a.push(p,f),l=l&&o&&p===o[h]&&f===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?D(s,a):D(a,s))}(function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>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;o<a;o++){var s=r[o],l=F(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in Z)if(Z.hasOwnProperty(e)){var n=Z[e](this._track,t);if(n)return n}},t}();function $(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var Z={pinch:function(t,e){var n=t.length;if(n){var r,i=(t[n-1]||{}).points,o=(t[n-2]||{}).points||i;if(o&&o.length>1&&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=!(o<l||u<i||s<c||h<a);if(n){var f=1/0,d=0,g=Math.abs(o-l),v=Math.abs(u-i),y=Math.abs(s-c),m=Math.abs(h-a),b=Math.min(g,v),x=Math.min(y,m);o<l||u<i?b>d&&(d=b,g<v?it.set(pt,-g,0):it.set(pt,v,0)):b<f&&(f=b,g<v?it.set(ht,g,0):it.set(ht,-v,0)),s<c||h<a?x>d&&(d=x,y<m?it.set(pt,0,-y):it.set(pt,0,m)):b<f&&(f=b,y<m?it.set(ht,0,y):it.set(ht,0,-m))}return n&&it.copy(n,p?ht:pt),p},t.prototype.contain=function(t,e){return t>=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<s;f+=4)for(var d=0;d<p;d+=h){if(_t(o,i,t+f*Math.cos(d),e+f*Math.sin(d),n),i.target)return i}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new X);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new vt;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(k);function xt(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return!i||"silent"}return!1}function _t(t,e,n,r,i){for(var o=t.length-1;o>=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<n&&r(t[i],t[i-1])<0;)i++;!function(t,e,n){n--;for(;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}(t,e,i)}else for(;i<n&&r(t[i],t[i-1])>=0;)i++;return i-e}function Ot(t,e,n,r,i){for(r===e&&r++;r<n;r++){for(var o,a=t[r],s=e,l=r;s<l;)i(a,t[o=s+l>>>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;l<s&&o(t,e[n+i+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(t,e[n+i-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-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;l<s&&o(t,e[n+i-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(t,e[n+i+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-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<r;l++)s[l]=t[n+l];var u=0,c=i,h=n;if(t[h++]=t[c++],0==--a){for(l=0;l<r;l++)t[h+l]=s[u+l];return}if(1===r){for(l=0;l<a;l++)t[h+l]=t[c+l];return void(t[h+a]=s[u])}var p,f,d,g=o;for(;;){p=0,f=0,d=!1;do{if(e(t[c],s[u])<0){if(t[h++]=t[c++],f++,p=0,0==--a){d=!0;break}}else if(t[h++]=s[u++],p++,f=0,1==--r){d=!0;break}}while((p|f)<g);if(d)break;do{if(0!==(p=It(t[c],s,u,r,0,e))){for(l=0;l<p;l++)t[h+l]=s[u+l];if(h+=p,u+=p,(r-=p)<=1){d=!0;break}}if(t[h++]=t[c++],0==--a){d=!0;break}if(0!==(f=Ct(s[u],t,c,a,0,e))){for(l=0;l<f;l++)t[h+l]=t[c+l];if(h+=f,c+=f,0===(a-=f)){d=!0;break}}if(t[h++]=s[u++],1==--r){d=!0;break}g--}while(p>=7||f>=7);if(d)break;g<0&&(g=0),g+=2}if((o=g)<1&&(o=1),1===r){for(l=0;l<a;l++)t[h+l]=t[c+l];t[h+a]=s[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)t[h+l]=s[u+l]}}(l,u,c,h):function(n,r,i,a){var l=0;for(l=0;l<a;l++)s[l]=t[i+l];var u=n+r-1,c=a-1,h=i+a-1,p=0,f=0;if(t[h--]=t[u--],0==--r){for(p=h-(a-1),l=0;l<a;l++)t[p+l]=s[l];return}if(1===a){for(f=(h-=r)+1,p=(u-=r)+1,l=r-1;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)<d);if(y)break;do{if(0!==(g=r-It(s[c],t,n,r,r-1,e))){for(r-=g,f=(h-=g)+1,p=(u-=g)+1,l=g-1;l>=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<v;l++)t[f+l]=s[p+l];if(a<=1){y=!0;break}}if(t[h--]=t[u--],0==--r){y=!0;break}d--}while(g>=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;l<a;l++)t[p+l]=s[l]}}(l,u,c,h))}return n<120?5:n<1542?10:n<119151?19:40,r=[],i=[],{mergeRuns:function(){for(;a>1;){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]&&t--;else if(i[t]>i[t+1])break;l(t)}},forceMergeRuns:function(){for(;a>1;){var t=a-2;t>0&&i[t-1]<i[t+1]&&t--,l(t)}},pushRun:function(t,e){r[a]=t,i[a]=e,a+=1}}}function At(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<32)Ot(t,n,r,n+(o=Mt(t,n,r,e)),e);else{var a=kt(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(i);do{if((o=Mt(t,n,r,e))<s){var l=i;l>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;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,i=e.length;r<i;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,At(n,Pt)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];for(var i=r,o=t;i;)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(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<n;e++)this.delRoot(t[e]);else{var r=l.r(this._roots,t);r>=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))<y&&(h=m,y=d);y=1/0;for(var b=0;b<32&&!(v<1e-4);b++)p=h-v,f=h+v,Ft[0]=Ut(t,n,i,a,p),Ft[1]=Ut(e,r,o,s,p),d=_(Ft,Vt),p>=0&&d<y?(h=p,y=d):(Gt[0]=Ut(t,n,i,a,f),Gt[1]=Ut(e,r,o,s,f),g=_(Gt,Vt),f<=1&&g<y?(h=f,y=g):v*=.5);return c&&(c[0]=Ut(t,n,i,a,h),c[1]=Ut(e,r,o,s,h)),zt(y)}function Kt(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,h=0,p=1/l,f=1;f<=l;f++){var d=f*p,g=Ut(t,n,i,a,d),v=Ut(e,r,o,s,d),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function Qt(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function Jt(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function te(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function ee(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function ne(t,e,n,r,i,o,a,s,l){var u,c=.005,h=1/0;Vt[0]=a,Vt[1]=s;for(var p=0;p<1;p+=.05){Ft[0]=Qt(t,n,i,p),Ft[1]=Qt(e,r,o,p),(v=_(Vt,Ft))<h&&(u=p,h=v)}h=1/0;for(var f=0;f<32&&!(c<1e-4);f++){var d=u-c,g=u+c;Ft[0]=Qt(t,n,i,d),Ft[1]=Qt(e,r,o,d);var v=_(Ft,Vt);if(d>=0&&v<h)u=d,h=v;else{Gt[0]=Qt(t,n,i,g),Gt[1]=Qt(e,r,o,g);var y=_(Gt,Vt);g<=1&&y<h?(u=g,h=y):c*=.5}}return l&&(l[0]=Qt(t,n,i,u),l[1]=Qt(e,r,o,u)),zt(h)}function re(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var p=h*c,f=Qt(t,n,i,p),d=Qt(e,r,o,p),g=f-s,v=d-l;u+=Math.sqrt(g*g+v*v),s=f,l=d}return u}var ie=/cubic-bezier\(([0-9,\.e ]+)\)/;function oe(t){var e=t&&ie.exec(t);if(e){var n=e[1].split(","),r=+Object(l.T)(n[0]),i=+Object(l.T)(n[1]),o=+Object(l.T)(n[2]),a=+Object(l.T)(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return t<=0?0:t>=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;o<i;o++)t[o]=ce(e[o],n[o],r);return t}function pe(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function fe(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function de(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function ge(t,e,n){var r=t,i=e;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a)if(o>a)r.length=a;else for(var s=o;s<a;s++)r.push(1===n?i[s]:ue.call(i[s]));var l=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var u=0;u<l;u++)isNaN(r[s][u])&&(r[s][u]=i[s][u])}}function ve(t){if(Object(l.u)(t)){var e=t.length;if(Object(l.u)(t[0])){for(var n=[],r=0;r<e;r++)n.push(ue.call(t[r]));return n}return ue.call(t)}return t}function ye(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function me(t){return 4===t||5===t}function be(t){return 1===t||2===t}var xe=[0,0,0,0],_e=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=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<i;u++){var c=n[u],h=c.value,p=o.value;c.percent=c.time/t,a||(s&&u!==i-1?ge(h,p,r):l&&de(h.colorStops,p.colorStops))}if(!a&&5!==r&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var f=n[0].value;for(u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-f:3===r?n[u].additiveValue=pe([],n[u].value,f,-1):be(r)&&(n[u].additiveValue=1===r?pe([],n[u].value,f,-1):fe([],n[u].value,f,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,u=this.keyframes,c=u.length,h=this.propName,p=3===s,f=this._lastFr,d=Math.min;if(1===c)r=i=u[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=d(f+1,c-1);n>=0&&!(u[n].percent<=e);n--);n=d(n,c-2)}else{for(n=f;n<c&&!(u[n].percent>e);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;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=ce(e[a][s],n[a][s],r)}}(y,r[a],i[a],v);else if(me(s)){var m=r[a],b=i[a],x=4===s;t[h]={type:x?"linear":"radial",x:ce(m.x,b.x,v),y:ce(m.y,b.y,v),colorStops:Object(l.H)(m.colorStops,(function(t,e){var n=b.colorStops[e];return{offset:ce(t.offset,n.offset,v),color:ye(he([],t.color,n.color,v))}})),global:b.global},x?(t[h].x2=ce(m.x2,b.x2,v),t[h].y2=ce(m.y2,b.y2,v)):t[h].r=ce(m.r,b.r,v)}else if(p)he(y,r[a],i[a],v),o||(t[h]=ye(y));else{var _=ce(r[a],i[a],v);o?this._additiveValue=_:t[h]=_}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;0===e?t[n]=t[n]+r:3===e?(se.g(t[n],xe),pe(xe,xe,r,1),t[n]=ye(xe)):1===e?pe(t[n],t[n],r,1):2===e&&fe(t[n],t[n],r,1)},t}(),we=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Object(l.G)("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(l.F)(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new _e(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=ye(l))}else l=this._target[a];if(null==l)continue;t>0&&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;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new ae({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var r=e._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Object(l.H)(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[i]=ve(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Object(l.F)(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){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<Je.length;n++){var r=Je[n];t[r]=e[r]}}var en=Qe,nn=n("d51b"),rn=n("726e"),on={};function an(t,e){e=e||rn.a;var n=on[e];n||(n=on[e]=new nn.a(500));var r=n.get(t);return null==r&&(r=rn.d.measureText(t,e).width,n.put(t,r)),r}function sn(t,e,n,r){var i=an(t,e),o=hn(e),a=un(0,i,n),s=cn(0,o,r);return new ft(a,s,i,o)}function ln(t,e,n,r){var i=((t||"")+"").split("\n");if(1===i.length)return sn(i[0],e,n,r);for(var o=new ft(0,0,0,0),a=0;a<i.length;a++){var s=sn(i[a],e,n,r);0===a?o.copy(s):o.union(s)}return o}function un(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function cn(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function hn(t){return an("国",t)}function pn(t,e){return"string"==typeof t?t.lastIndexOf("%")>=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;i<r.length;i++){var o=r[i];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&"__zr_normal__"!==i)){var o=r.targetName,a=o?e[o]:e;r.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,dn)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},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;s<o;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(r),f=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,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<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=Object(l.r)(this.currentStates,t);if(e>=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<t.length;r++){var i=t[r];Object(l.m)(n,i),i.textConfig&&(e=e||{},Object(l.m)(e,i.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){var a=!(e&&r);e&&e.textConfig?(this.textConfig=Object(l.m)({},r?this.textConfig:n.textConfig),Object(l.m)(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},u=!1,c=0;c<dn.length;c++){var h=dn[c],p=i&&gn[h];e&&null!=e[h]?p?(u=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(p?(u=!0,s[h]=n[h]):this[h]=n[h])}if(!i)for(c=0;c<this.animators.length;c++){var f=this.animators[c],d=f.targetName;f.getLoop()||f.__changeFinalValue(d?(e||n)[d]:e||n)}u&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new en,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Object(l.m)(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var r=t?this[t]:this;var i=new we(r,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},t.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during((function(){r.updateDuringAnimation(e)})).done((function(){var e=r.animators,n=Object(l.r)(e,t);n>=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;o<r;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){bn(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){bn(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=bn(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1;function n(t,n,r,i){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(e,t,{get:function(){this[n]||o(this,this[n]=[]);return this[n]},set:function(t){this[r]=t[0],this[i]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function bn(t,e,n,r,i){var o=[];!function t(e,n,r,i,o,a,s,u){for(var c=Object(l.F)(i),h=o.duration,p=o.delay,f=o.additive,d=o.setToFinal,g=!Object(l.A)(a),v=e.animators,y=[],m=0;m<c.length;m++){var b=c[m],x=i[b];if(null!=x&&null!=r[b]&&(g||a[b]))if(!Object(l.A)(x)||Object(l.u)(x)||Object(l.x)(x))y.push(b);else{if(n){u||(r[b]=x,e.updateDuringAnimation(n));continue}t(e,b,r[b],x,o,a&&a[b],s,u)}else u||(r[b]=x,e.updateDuringAnimation(n),y.push(b))}var _=y.length;if(!f&&_)for(var w=0;w<v.length;w++){if((M=v[w]).targetName===n)if(M.stopTracks(y)){var S=Object(l.r)(v,M);v.splice(S,1)}}o.force||(y=Object(l.n)(y,(function(t){return e=i[t],n=r[t],!(e===n||Object(l.u)(e)&&Object(l.u)(n)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}(e,n));var e,n})),_=y.length);if(_>0||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<o.length;f++){var d=o[f];h&&d.done(h),p&&d.aborted(p),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function xn(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function _n(t,e,n){if(Object(l.u)(e[n]))if(Object(l.u)(t[n])||(t[n]=[]),Object(l.E)(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),xn(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(c=i,Object(l.u)(c[0]))for(var s=i[0].length,u=0;u<a;u++)o[u]?xn(o[u],i[u],s):o[u]=Array.prototype.slice.call(i[u]);else xn(o,i,a);o.length=i.length}else t[n]=e[n];var c}Object(l.K)(mn,k),Object(l.K)(mn,en);var wn=mn,Sn=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return a(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=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;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new ft(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(ft.applyTransform(e,s,l),(i=i||e.clone()).union(e)):(i=i||s.clone()).union(s)}}return i||e},e}(wn);Sn.prototype.type="group";var Mn=Sn,On={},Cn={};
- /*!
- * ZRender, a high performance 2d drawing library.
- *
- * Copyright (c) 2013, Baidu Inc.
- * All rights reserved.
- *
- * LICENSE
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
- */var In=function(){function t(t,e,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new Lt,o=n.renderer||"canvas";On[o]||(o=l.F(On)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new On[o](e,i,n,t),u=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var c,h=s.a.node||s.a.worker||u?null:new He(a.getViewportRoot(),a.root),p=n.useCoarsePointer;(null==p||"auto"===p?s.a.touchEventsSupported:!!p)&&(c=l.P(n.pointerSize,44)),this.handler=new St(i,a,h,a.root,c),this.animation=new Ce({stage:{update:u?null:function(){return r._flush(!0)}}}),u||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return Object(se.d)(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=Object(se.d)(e[i].color,1);return(n/=r)<.4}return!1}(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,n=Se();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=Se();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(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;e<t.length;e++)t[e]instanceof Mn&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete Cn[t]},t}();function kn(t,e){var n=new In(l.p(),t,e);return Cn[n.id]=n,n}function An(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){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]}));s<o;){for(var c=Number.NEGATIVE_INFINITY,h=null,p=0,f=u.length;p<f;++p)u[p]>c&&(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]<n.interval[r]||e.interval[r]===n.interval[r]&&(e.close[r]-n.close[r]==(r?-1:1)||!r&&t(e,n,1))}(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,o=t[r].close,a=0;a<2;a++)i[a]<=e&&(i[a]=e,o[a]=a?1:1-n),e=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!=1?t.splice(r,1):r++}return t}function Un(t){var e=parseFloat(t);return e==t&&(0!==e||!l.C(t)||t.indexOf("x")<=0)?e:NaN}function Yn(t){return!isNaN(Un(t))}function qn(){return Math.round(9*Math.random())}function Xn(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}function $n(t,e,n){return(e-t)*n+t}function Zn(t){return t instanceof Array?t:null==t?[]:[t]}function Kn(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var Qn=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Jn(t){return!Object(l.A)(t)||Object(l.t)(t)||t instanceof Date?t:t.value}function tr(t){return Object(l.A)(t)&&!(t instanceof Array)}function er(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Object(l.f)();Object(l.k)(e,(function(t,n){Object(l.A)(t)||(e[n]=null)}));var s,u,c=function(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||ar(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(t,a,n);return(r||i)&&function(t,e,n,r){Object(l.k)(r,(function(i,o){if(i&&null!=i.id){var a=rr(i.id),s=n.get(a);if(null!=s){var u=t[s];Object(l.b)(!u.newOption,'Duplicated option on id "'+a+'".'),u.newOption=i,u.existing=e[s],r[o]=null}}}))}(c,t,a,e),r&&function(t,e){Object(l.k)(e,(function(n,r){if(n&&null!=n.name)for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(null==o.id||null==n.id)&&!ar(n)&&!ar(o)&&nr("name",o,n))return t[i].newOption=n,void(e[r]=null)}}))}(c,e),r||i?function(t,e,n){Object(l.k)(e,(function(e){if(e){for(var r,i=0;(r=t[i])&&(r.newOption||ar(r.existing)||r.existing&&null!=e.id&&!nr("id",e,r.existing));)i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}}))}(c,e,i):o&&function(t,e){Object(l.k)(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(c,e),s=c,u=Object(l.f)(),Object(l.k)(s,(function(t){var e=t.existing;e&&u.set(e.id,t)})),Object(l.k)(s,(function(t){var e=t.newOption;Object(l.b)(!e||null==e.id||!u.get(e.id)||u.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&u.set(e.id,t),!t.keyInfo&&(t.keyInfo={})})),Object(l.k)(s,(function(t,e){var n=t.existing,r=t.newOption,i=t.keyInfo;if(Object(l.A)(r)){if(i.name=null!=r.name?rr(r.name):n?n.name:"series\0"+e,n)i.id=rr(n.id);else if(null!=r.id)i.id=rr(r.id);else{var o=0;do{i.id="\0"+i.name+"\0"+o++}while(u.get(i.id))}u.set(i.id,t)}})),c}function nr(t,e,n){var r=ir(e[t],null),i=ir(n[t],null);return null!=r&&null!=i&&r===i}function rr(t){return ir(t,"")}function ir(t,e){return null==t?e:Object(l.C)(t)?t:Object(l.z)(t)||Object(l.D)(t)?t+"":e}function or(t){var e=t.name;return!(!e||!e.indexOf("series\0"))}function ar(t){return t&&null!=t.id&&0===rr(t.id).indexOf("\0_ec_\0")}function sr(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Object(l.t)(e.dataIndex)?Object(l.H)(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Object(l.t)(e.name)?Object(l.H)(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function lr(){var t="__ec_inner_"+ur++;return function(e){return e[t]||(e[t]={})}}var ur=qn();function cr(t,e,n){var r=hr(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each((function(e,r){var i=dr(t,r,e,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]})),a}function hr(t,e){var n;if(Object(l.C)(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=Object(l.f)(),o={},a=!1;return Object(l.k)(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],u=(r[2]||"").toLowerCase();if(s&&u&&!(e&&e.includeMainTypes&&Object(l.r)(e.includeMainTypes,s)<0))a=a||!!s,(i.get(s)||i.set(s,{}))[u]=t}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var pr={useDefault:!0,enableAll:!1,enableNone:!1},fr={useDefault:!1,enableAll:!0,enableNone:!0};function dr(t,e,n,r){r=r||pr;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var u=void 0;return s.models=r.useDefault&&(u=t.getComponent(e))?[u]:[],s}return"none"===i||!1===i?(Object(l.b)(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(Object(l.b)(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s)}function gr(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function vr(t,e){var n=Object(l.f)(),r=[];return Object(l.k)(t,(function(t){var i=e(t);(n.get(i)||(r.push(i),n.set(i,[]))).push(t)})),{keys:r,buckets:n}}function yr(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(Object(l.z)(r))return Dn(g=$n(n||0,r,i),o?Math.max(Ln(n||0),Ln(r)):e);if(Object(l.C)(r))return i<1?n:r;for(var a=[],s=n,u=r,c=Math.max(s?s.length:0,u.length),h=0;h<c;++h){var p=t.getDimensionInfo(h);if(p&&"ordinal"===p.type)a[h]=(i<1&&s?s:u)[h];else{var f=s&&s[h]?s[h]:0,d=u[h],g=$n(f,d,i);a[h]=Dn(g,o?Math.max(Ln(f),Ln(d)):e)}}return a}var mr="___EC__COMPONENT__CONTAINER___";function br(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function xr(t,e){t.$constructor=t,t.extend=function(t){var e,n,r=this;return n=r,l.w(n)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e}(r):(e=function(){(t.$constructor||r).apply(this,arguments)},l.s(e,this)),l.m(e.prototype,t),e.___EC__EXTENDED_CLASS___=!0,e.extend=this.extend,e.superCall=Sr,e.superApply=Mr,e.superClass=r,e}}function _r(t,e){t.extend=e.extend}var wr=Math.round(10*Math.random());function Sr(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function Mr(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Or(t){var e={};t.registerClass=function(t){var n,r=t.type||t.prototype.type;if(r){n=r,l.b(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),t.prototype.type=r;var i=br(r);if(i.sub){if(i.sub!==mr){(function(t){var n=e[t.main];n&&n[mr]||((n=e[t.main]={})[mr]=!0);return n}(i))[i.sub]=t}}else e[i.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[mr]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var n=br(t),r=[],i=e[n.main];return i&&i[mr]?l.k(i,(function(t,e){e!==mr&&r.push(t)})):r.push(i),r},t.hasClass=function(t){var n=br(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return l.k(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=br(t),r=e[n.main];return r&&r[mr]}}function Cr(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(r&&l.r(r,s)>=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<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Lr(t){return t&&t.width&&t.height}var jr=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Er(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=Rr(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=Nr(o[a],i);return o.join("\n")}function Rr(t,e,n,r){r=r||{};var i=Object(l.m)({},r);i.font=e,n=Object(l.P)(n,"..."),i.maxIterations=Object(l.P)(r.maxIterations,2);var o=i.minChar=Object(l.P)(r.minChar,0);i.cnCharWidth=an("国",e);var a=i.ascCharWidth=an("a",e);i.placeholder=Object(l.P)(r.placeholder,"");for(var s=t=Math.max(0,t-1),u=0;u<o&&s>=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;o<a&&i<e;o++){var s=t.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}var Br=function(){},Vr=function(t){this.tokens=[],t&&(this.tokens=t)},Fr=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function Gr(t,e,n,r,i){var o,a,s=""===e,l=i&&n.rich[i]||{},u=t.lines,c=l.font||n.font,h=!1;if(r){var p=l.padding,f=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var d=pn(l.width,r.width)+f;u.length>0&&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<o.length;v++){var y=o[v],m=new Br;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!s,"number"==typeof l.width?m.width=l.width:m.width=a?a[v]:an(y,c),v||h)u.push(new Vr([m]));else{var b=(u[u.length-1]||(u[0]=new Vr)).tokens,x=b.length;1===x&&b[0].isLineHolder?b[0]=m:(y||!x||s)&&b.push(m)}}}var Hr=Object(l.N)(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Wr(t){return!function(t){var e=t.charCodeAt(0);return e>=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;h<t.length;h++){var p=t.charAt(h);if("\n"!==p){var f=an(p,e),d=!r&&!Wr(p);(o.length?c+f>n: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;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){Qr.copy(t.getBoundingRect()),t.transform&&Qr.applyTransform(t.transform);return Jr.width=e,Jr.height=n,!Qr.intersect(Jr)}(this,t,e)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ft(0,0,0,0)),e?ft.applyTransform(t,n,e):t.copy(n),(i||o||a)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(a),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+a-i));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new ft(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:Object(l.m)(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return Object(l.g)(qr,t)},e.prototype.useStyle=function(t){t[Yr]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Yr]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,$r)},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.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):u&&(s=r.style),s)if(o){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var h=Object(l.F)(c),p=0;p<h.length;p++){(d=h[p])in s&&(s[d]=s[d],this.style[d]=c[d])}var f=Object(l.F)(s);for(p=0;p<f.length;p++){var d=f[p];this.style[d]=this.style[d]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var g=this.__inHover?Zr:$r;for(p=0;p<g.length;p++){d=g[p];n&&null!=n[d]?this[d]=n[d]:u&&null!=r[d]&&(this[d]=r[d])}},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},e.prototype._mergeStyle=function(t,e){return Object(l.m)(t,e),t},e.prototype.getAnimationStyleProps=function(){return Xr},e.initDefaultProps=((n=e.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=3)),e}(wn),Qr=new ft(0,0,0,0),Jr=new ft(0,0,0,0);var ti=Kr,ei=Math.min,ni=Math.max,ri=Math.sin,ii=Math.cos,oi=2*Math.PI,ai=u(),si=u(),li=u();function ui(t,e,n){if(0!==t.length){for(var r=t[0],i=r[0],o=r[0],a=r[1],s=r[1],l=1;l<t.length;l++)r=t[l],i=ei(i,r[0]),o=ni(o,r[0]),a=ei(a,r[1]),s=ni(s,r[1]);e[0]=i,e[1]=a,n[0]=o,n[1]=s}}function ci(t,e,n,r,i,o){i[0]=ei(t,n),i[1]=ei(e,r),o[0]=ni(t,n),o[1]=ni(e,r)}var hi=[],pi=[];function fi(t,e,n,r,i,o,a,s,l,u){var c=Xt,h=Ut,p=c(t,n,i,a,hi);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;f<p;f++){var d=h(t,n,i,a,hi[f]);l[0]=ei(d,l[0]),u[0]=ni(d,u[0])}p=c(e,r,o,s,pi);for(f=0;f<p;f++){var g=h(e,r,o,s,pi[f]);l[1]=ei(g,l[1]),u[1]=ni(g,u[1])}l[0]=ei(t,l[0]),u[0]=ni(t,u[0]),l[0]=ei(a,l[0]),u[0]=ni(a,u[0]),l[1]=ei(e,l[1]),u[1]=ni(e,u[1]),l[1]=ei(s,l[1]),u[1]=ni(s,u[1])}function di(t,e,n,r,i,o,a,s){var l=te,u=Qt,c=ni(ei(l(t,n,i),1),0),h=ni(ei(l(e,r,o),1),0),p=u(t,n,i,c),f=u(e,r,o,h);a[0]=ei(t,i,p),a[1]=ei(e,o,f),s[0]=ni(t,i,p),s[1]=ni(e,o,f)}function gi(t,e,n,r,i,o,a,s,l){var u=M,c=O,h=Math.abs(i-o);if(h%oi<1e-4&&h>1e-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:i<o&&a&&(i+=oi),a){var p=o;o=i,i=p}for(var f=0;f<o;f+=Math.PI/2)f>i&&(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&&n<i&&(i=n-(Ai-Pi(i-n))),t[0]=n,t[1]=i}var ji=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(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;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();Ti&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<e;i++)for(var o=t[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},t.prototype.addData=function(t,e,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(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;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Ti&&this._len>11&&(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;t<this._len;){var a=e[t++],s=1===t;switch(s&&(i=n=e[t],o=r=e[t+1]),a){case vi.M:n=i=e[t++],r=o=e[t++],_i[0]=i,_i[1]=o,wi[0]=i,wi[1]=o;break;case vi.L:ci(n,r,e[t],e[t+1],_i,wi),n=e[t++],r=e[t++];break;case vi.C:fi(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],_i,wi),n=e[t++],r=e[t++];break;case vi.Q:di(n,r,e[t++],e[t++],e[t],e[t+1],_i,wi),n=e[t++],r=e[t++];break;case vi.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],p=e[t++],f=e[t++]+p;t+=1;var d=!e[t++];s&&(i=Oi(p)*c+l,o=Ci(p)*h+u),gi(l,u,c,h,p,f,d,_i,wi),n=Oi(f)*c+l,r=Ci(f)*h+u;break;case vi.R:ci(i=n=e[t++],o=r=e[t++],i+e[t++],o+e[t++],_i,wi);break;case vi.Z:n=i,r=o}M(bi,bi,_i),O(xi,xi,wi)}return 0===t&&(bi[0]=bi[1]=xi[0]=xi[1]=0),new ft(bi[0],bi[1],xi[0]-bi[0],xi[1]-bi[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var p=t[h++],f=1===h;f&&(a=i=t[h],s=o=t[h+1]);var d=-1;switch(p){case vi.M:i=a=t[h++],o=s=t[h++];break;case vi.L:var g=t[h++],v=(b=t[h++])-o;(Ii(A=g-i)>n||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;x<g;){var _=p[x++],w=1===x;switch(w&&(n=i=p[x],r=o=p[x+1]),_!==vi.L&&b>0&&(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||a<e-s&&a<r-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;var u=(l=(e-r)/(t-n))*o-a+(t*r-n*e)/(t-n);return u*u/(l*l+1)<=s/2*s/2}function Ri(t,e,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var h=l;return!(c>e+h&&c>r+h&&c>o+h&&c>s+h||c<e-h&&c<r-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>i+h&&u>a+h||u<t-h&&u<n-h&&u<i-h&&u<a-h)&&Zt(t,e,n,r,i,o,a,s,u,c,null)<=h/2}function Ni(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;return!(l>e+u&&l>r+u&&l>o+u||l<e-u&&l<r-u&&l<o-u||s>t+u&&s>n+u&&s>i+u||s<t-u&&s<n-u&&s<i-u)&&ne(t,e,n,r,i,o,s,l,null)<=u/2}var zi=2*Math.PI;function Bi(t){return(t%=zi)<0&&(t+=zi),t}var Vi=2*Math.PI;function Fi(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%Vi<1e-4)return!0;if(o){var h=r;r=Bi(i),i=Bi(h)}else r=Bi(r),i=Bi(i);r>i&&(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||o<e&&o<r)return 0;if(r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;1!==a&&0!==a||(s=r<e?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?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||u<e&&u<r&&u<o&&u<s)return 0;var c,h=qt(e,r,o,s,u,Ui);if(0===h)return 0;for(var p=0,f=-1,d=void 0,g=void 0,v=0;v<h;v++){var y=Ui[v],m=0===y||1===y?.5:1;Ut(t,n,i,a,y)<l||(f<0&&(f=Xt(e,r,o,s,Yi),Yi[1]<Yi[0]&&f>1&&(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?y<Yi[0]?p+=d<e?m:-m:y<Yi[1]?p+=g<d?m:-m:p+=s<g?m:-m:y<Yi[0]?p+=d<e?m:-m:p+=s<d?m:-m)}return p}function Xi(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=function(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(Ht(o)){if(Wt(a))(c=-s/a)>=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;p<l;p++){var f=0===Ui[p]||1===Ui[p]?.5:1;Qt(t,n,i,Ui[p])<a||(Ui[p]<u?c+=h<e?f:-f:c+=o<h?f:-f)}return c}f=0===Ui[0]||1===Ui[0]?.5:1;return Qt(t,n,i,Ui[0])<a?0:o<e?f:-f}function $i(t,e,n,r,i,o,a,s){if((s-=e)>n||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;v<c;){var y=u[v++],m=1===v;switch(y===Hi.M&&v>1&&(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<Ji.length;++s)i[Ji[s]]=this[Ji[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Object(l.F)(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?Object(l.m)(this.style,a):this.useStyle(a):"shape"===o?Object(l.m)(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Object(l.C)(t)){var e=Object(se.d)(t,0);return e>.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;p<h.length;p++){var f=h[p];"object"==typeof s[f]?this.shape[f]=s[f]:c[f]=s[f]}this._transitionState(e,{shape:c},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},e.prototype.getAnimationStyleProps=function(){return Qi},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}return a(n,e),n.prototype.getDefaultStyle=function(){return Object(l.d)(t.style)},n.prototype.getDefaultShape=function(){return Object(l.d)(t.shape)},n}(e);for(var r in t)"function"==typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),e}(ti),eo=Object(l.i)({strokeFirst:!0,font:rn.a,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ki),no=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),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.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;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,Co(t=this.style),Object(l.k)(t.rich,Co),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new ft(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(r=r||t.clone()).union(t)):(r=r||a.clone()).union(a)}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||yo},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return Object(l.m)(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,e){for(var n=Object(l.F)(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},Object(l.m)(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return mo},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||rn.a,n=t.padding,r=function(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,o=e.font,a="truncate"===r,s=hn(o),u=Object(l.P)(e.lineHeight,s),c=!!e.backgroundColor,h="truncate"===e.lineOverflow,p=e.width,f=(n=null==p||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?Ur(t,e.font,p,"breakAll"===r,0).lines:[]).length*u,d=Object(l.P)(e.height,f);if(f>d&&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;y<n.length;y++)n[y]=Nr(n[y],v);var m=d,b=0;for(y=0;y<n.length;y++)b=Math.max(an(n[y],o),b);null==p&&(p=b);var x=b;return i&&(m+=i[0]+i[2],x+=i[1]+i[3],p+=i[1]+i[3]),c&&(x=p),{lines:n,height:d,outerWidth:x,outerHeight:m,lineHeight:u,calculatedLineHeight:s,contentWidth:b,contentHeight:f,width:p}}(To(t),t),i=Do(t),o=!!t.backgroundColor,a=r.outerHeight,s=r.outerWidth,u=r.contentWidth,c=r.lines,h=r.lineHeight,p=this._defaultStyle,f=t.x||0,d=t.y||0,g=t.align||p.align||"left",v=t.verticalAlign||p.verticalAlign||"top",y=f,m=cn(d,r.contentHeight,v);if(i||n){var b=un(f,s,g),x=cn(d,a,v);i&&this._renderBackground(t,t,b,x,s,a)}m+=h/2,n&&(y=Ao(f,g,n),"top"===v?m+=n[0]:"bottom"===v&&(m-=n[2]));for(var _=0,w=!1,S=(ko("fill"in t?t.fill:(w=!0,p.fill))),M=(Io("stroke"in t?t.stroke:o||p.autoStroke&&!w?null:(_=2,p.stroke))),O=t.textShadowBlur>0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),I=r.calculatedLineHeight,k=0;k<c.length;k++){var A=this._getOrCreateChild(ro),T=A.createStyle();A.useStyle(T),T.text=c[k],T.x=y,T.y=m,g&&(T.textAlign=g),T.textBaseline="middle",T.opacity=t.opacity,T.strokeFirst=!0,O&&(T.shadowBlur=t.textShadowBlur||0,T.shadowColor=t.textShadowColor||"transparent",T.shadowOffsetX=t.textShadowOffsetX||0,T.shadowOffsetY=t.textShadowOffsetY||0),T.stroke=M,T.fill=S,M&&(T.lineWidth=t.lineWidth||_,T.lineDash=t.lineDash,T.lineDashOffset=t.lineDashOffset||0),T.font=e,Mo(T,t),m+=h,C&&A.setBoundingRect(new ft(un(T.x,t.width,T.textAlign),cn(T.y,I,T.textBaseline),u,I))}},e.prototype._updateRichTexts=function(){var t=this.style,e=function(t,e){var n=new Fr;if(null!=t&&(t+=""),!t)return n;for(var r,i=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},u=jr.lastIndex=0;null!=(r=jr.exec(t));){var c=r.index;c>u&&Gr(n,t.substring(u,c),e,s),Gr(n,r[2],e,s,r[1]),u=jr.lastIndex}u<t.length&&Gr(n,t.substring(u,t.length),e,s);var h=[],p=0,f=0,d=e.padding,g="truncate"===a,v="truncate"===e.lineOverflow;function y(t,e,n){t.width=e,t.lineHeight=n,p+=n,f=Math.max(f,e)}t:for(var m=0;m<n.lines.length;m++){for(var b=n.lines[m],x=0,_=0,w=0;w<b.tokens.length;w++){var S=(L=b.tokens[w]).styleName&&e.rich[L.styleName]||{},M=L.textPadding=S.padding,O=M?M[1]+M[3]:0,C=L.font=S.font||e.font;L.contentHeight=hn(C);var I=Object(l.P)(S.height,L.contentHeight);if(L.innerHeight=I,M&&(I+=M[0]+M[2]),L.height=I,L.lineHeight=Object(l.Q)(S.lineHeight,e.lineHeight,I),L.align=S&&S.align||e.align,L.verticalAlign=S&&S.verticalAlign||"middle",v&&null!=o&&p+L.lineHeight>o){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<L.width?!A||P<O?(L.text="",L.width=L.contentWidth=0):(L.text=Er(L.text,P-O,C,e.ellipsis,{minChar:e.truncateMinChar}),L.width=L.contentWidth=an(L.text,C)):L.contentWidth=an(L.text,C)}L.width+=O,_+=L.width,S&&(x=Math.max(x,L.lineHeight))}y(b,_,x)}for(n.outerWidth=n.width=Object(l.P)(i,f),n.outerHeight=n.height=Object(l.P)(o,p),n.contentHeight=p,n.contentWidth=f,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]),m=0;m<h.length;m++){var L,j=(L=h[m]).percentWidth;L.width=parseInt(j,10)/100*n.width}return n}(To(t),t),n=e.width,r=e.outerWidth,i=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,u=this._defaultStyle,c=t.align||u.align,h=t.verticalAlign||u.verticalAlign,p=un(a,r,c),f=cn(s,i,h),d=p,g=f;o&&(d+=o[3],g+=o[0]);var v=d+n;Do(t)&&this._renderBackground(t,t,p,f,r,i);for(var y=!!t.backgroundColor,m=0;m<e.lines.length;m++){for(var b=e.lines[m],x=b.tokens,_=x.length,w=b.lineHeight,S=b.width,M=0,O=d,C=v,I=_-1,k=void 0;M<_&&(!(k=x[M]).align||"left"===k.align);)this._placeToken(k,t,w,g,O,"left",y),S-=k.width,O+=k.width,M++;for(;I>=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<wo.length;n++){var r=wo[n],i=e[r];null!=i&&(t[r]=i)}}function Oo(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Co(t){if(t){t.font=bo.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||xo[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||_o[n]?n:"top",t.padding&&(t.padding=Object(l.M)(t.padding))}}function Io(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function ko(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ao(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function To(t){var e=t.text;return null!=e&&(e+=""),e}function Do(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Po=bo,Lo=lr(),jo=function(t,e,n,r){if(r){var i=Lo(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,"group"===r.type&&r.traverse((function(r){var i=Lo(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e}))}},Eo=1,Ro={},No=lr(),zo=lr(),Bo=["emphasis","blur","select"],Vo=["normal","emphasis","blur","select"];function Fo(t){return null!=t&&"none"!==t}var Go=new nn.a(100);function Ho(t){if(Object(l.C)(t)){var e=Go.get(t);return e||(e=se.c(t,-.1),Go.put(t,e)),e}if(Object(l.x)(t)){var n=Object(l.m)({},t);return n.colorStops=Object(l.H)(t.colorStops,(function(t){return{offset:t.offset,color:se.c(t.color,-.1)}})),n}return t}function Wo(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Uo(t){Wo(t,"emphasis",2)}function Yo(t){2===t.hoverState&&Wo(t,"normal",0)}function qo(t){Wo(t,"blur",1)}function Xo(t){1===t.hoverState&&Wo(t,"normal",0)}function $o(t){t.selected=!0}function Zo(t){t.selected=!1}function Ko(t,e,n){e(t,n)}function Qo(t,e,n){Ko(t,e,n),t.isGroup&&t.traverse((function(t){Ko(t,e,n)}))}function Jo(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function ta(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,r){var i=n&&Object(l.r)(n,"select")>=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;a<e.length;a++){var s=e[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=Object(l.m)({},n),a=Object(l.m)({opacity:r?i:.1*o.opacity},a),n.style=a),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=Object(l.m)({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:9)}return n}(this,0,n)}return n}function ea(t){t.stateProxy=ta;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=ta),n&&(n.stateProxy=ta)}function na(t,e){!ca(t,e)&&!t.__highByOuter&&Qo(t,Uo)}function ra(t,e){!ca(t,e)&&!t.__highByOuter&&Qo(t,Yo)}function ia(t,e){t.__highByOuter|=1<<(e||0),Qo(t,Uo)}function oa(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Qo(t,Yo)}function aa(t){Qo(t,qo)}function sa(t){Qo(t,Xo)}function la(t){Qo(t,$o)}function ua(t){Qo(t,Zo)}function ca(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ha(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=zo(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){Xo(t)})),a&&n.push(i)),o.isBlured=!1})),Object(l.k)(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function pa(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&sa(r)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=i.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var u=[];i.eachSeries((function(t){var i=a===t,c=t.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===n&&!i||"coordinateSystem"===n&&!(c&&s?c===s:i)||"series"===e&&i)){if(r.getViewOfSeriesModel(t).group.traverse((function(t){qo(t)})),Object(l.u)(e))o(t.getData(),e);else if(Object(l.A)(e))for(var h=Object(l.F)(e),p=0;p<h.length;p++)o(t.getData(h[p]),e[h[p]]);u.push(t),zo(t).isBlured=!0}})),i.eachComponent((function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(u,!0,i)}}))}}function fa(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){zo(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(t){qo(t)}))}}}function da(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===Lo(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function ga(t){var e=t.getAllData();Object(l.k)(e,(function(e){var n=e.data,r=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,r)?la(e):ua(e)}))}))}function va(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();Object(l.k)(n,(function(n){n.data;var r=n.type,i=t.getSelectedDataIndices();if(i.length>0){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;i<xa.length;i++){var o=xa[i],a=e.getModel([o,n]);t.ensureState(o).style=r?r(a):a[_a[n]]()}}function Sa(t,e){var n=!1===e,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Ma(t){return!(!t||!t.__highDownDispatcher)}function Oa(t){var e=t.type;return"select"===e||"unselect"===e||"toggleSelect"===e}function Ca(t){var e=t.type;return"highlight"===e||"downplay"===e}var Ia=lr();function ka(t,e,n,r,i){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===t;if(e&&e.isAnimationEnabled()){var u=void 0,c=void 0,h=void 0;return r?(u=Object(l.P)(r.duration,200),c=Object(l.P)(r.easing,"cubicOut"),h=0):(u=e.getShallow(s?"animationDurationUpdate":"animationDuration"),c=e.getShallow(s?"animationEasingUpdate":"animationEasing"),h=e.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(c=o.easing),null!=o.delay&&(h=o.delay)),Object(l.w)(h)&&(h=h(n,i)),Object(l.w)(u)&&(u=u(n)),{duration:u||0,delay:h,easing:c}}return null}function Aa(t,e,n,r,i,o,a){var s,u=!1;Object(l.w)(i)?(a=o,o=i,i=null):Object(l.A)(i)&&(o=i.cb,a=i.during,u=i.isFrom,s=i.removeOpt,i=i.dataIndex);var c="leave"===t;c||e.stopAnimation("leave");var h=ka(t,r,i,c?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(h&&h.duration>0){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<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function La(t,e,n,r,i,o){Pa(t)||Aa("leave",t,e,n,r,i,o)}function ja(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),La(t,{style:{opacity:0}},e,n,r)}function Ea(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||ja(t,e,n,r)})):ja(t,e,n,r)}function Ra(t){Ia(t).oldStyle=t.style}var Na={};function za(t,e){for(var n=0;n<Bo.length;n++){var r=Bo[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function Ba(t,e,n){var r,i=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Object(l.w)(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var u={normal:r},c=0;c<Bo.length;c++){var h=Bo[c],p=e[h];u[h]=Object(l.P)(i?i.getFormattedLabel(o,h,null,a,p&&p.get("formatter")):null,r)}return u}function Va(t,e,n,r){n=n||Na;for(var i=t instanceof Po,o=!1,a=0;a<Vo.length;a++){if((f=e[Vo[a]])&&f.getShallow("show")){o=!0;break}}var s=i?t:t.getTextContent();if(o){i||(s||(s=new Po,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var u=Ba(n,e),c=e.normal,h=!!c.getShallow("show"),p=Ga(c,r&&r.normal,n,!1,!i);p.text=u.normal,i||t.setTextConfig(Ha(c,n,!1));for(a=0;a<Bo.length;a++){var f,d=Bo[a];if(f=e[d]){var g=s.ensureState(d),v=!!Object(l.P)(f.getShallow("show"),h);if(v!==h&&(g.ignore=!v),g.style=Ga(f,r&&r[d],n,!0,!i),g.style.text=u[d],!i)t.ensureState(d).textConfig=Ha(f,n,!0)}}s.silent=!!c.getShallow("silent"),null!=s.style.x&&(p.x=s.style.x),null!=s.style.y&&(p.y=s.style.y),s.ignore=!h,s.useStyle(p),s.dirty(),n.enableTextSetter&&($a(s).setLabelText=function(t){var r=Ba(n,e,t);za(s,r)})}else s&&(s.ignore=!0);t.dirty()}function Fa(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Bo.length;r++){var i=Bo[r];n[i]=t.getModel([i,e])}return n}function Ga(t,e,n,r,i){var o={};return function(t,e,n,r,i){n=n||Na;var o,a=e.ecModel,s=a&&a.option.textStyle,u=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||Na).rich;if(n){e=e||{};for(var r=Object(l.F)(n),i=0;i<r.length;i++){var o=r[i];e[o]=1}}t=t.parentModel}return e}(e);if(u)for(var c in o={},u)if(u.hasOwnProperty(c)){var h=e.getModel(["rich",c]);qa(o[c]={},h,s,n,r,i,!1,!0)}o&&(t.rich=o);var p=e.get("overflow");p&&(t.overflow=p);var f=e.get("minMargin");null!=f&&(t.margin=f);qa(t,e,s,n,r,i,!0,!1)}(o,t,n,r,i),e&&Object(l.m)(o,e),o}function Ha(t,e,n){e=e||{};var r,i={},o=t.getShallow("rotate"),a=Object(l.P)(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(r=t.getShallow("position")||(n?null:"inside"))&&(r=e.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}var Wa=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Ua=["align","lineHeight","width","height","tag","verticalAlign"],Ya=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function qa(t,e,n,r,i,o,a,s){n=!i&&n||Na;var u=r&&r.inheritColor,c=e.getShallow("color"),h=e.getShallow("textBorderColor"),p=Object(l.P)(e.getShallow("opacity"),n.opacity);"inherit"!==c&&"auto"!==c||(c=u||null),"inherit"!==h&&"auto"!==h||(h=u||null),o||(c=c||n.color,h=h||n.textBorderColor),null!=c&&(t.fill=c),null!=h&&(t.stroke=h);var f=Object(l.P)(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var d=Object(l.P)(e.getShallow("textBorderType"),n.textBorderType);null!=d&&(t.lineDash=d);var g=Object(l.P)(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=g&&(t.lineDashOffset=g),i||null!=p||s||(p=r&&r.defaultOpacity),null!=p&&(t.opacity=p),i||o||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var v=0;v<Wa.length;v++){var y=Wa[v];null!=(b=Object(l.P)(e.getShallow(y),n[y]))&&(t[y]=b)}for(v=0;v<Ua.length;v++){y=Ua[v];null!=(b=e.getShallow(y))&&(t[y]=b)}if(null==t.verticalAlign){var m=e.getShallow("baseline");null!=m&&(t.verticalAlign=m)}if(!a||!r.disableBox){for(v=0;v<Ya.length;v++){var b;y=Ya[v];null!=(b=e.getShallow(y))&&(t[y]=b)}var x=e.getShallow("borderType");null!=x&&(t.borderDash=x),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!u||(t.backgroundColor=u),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!u||(t.borderColor=u)}}function Xa(t,e){var n=e&&e.getModel("textStyle");return Object(l.T)([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var $a=lr();function Za(t,e,n,r){if(t){var i=$a(t);i.prevValue=i.value,i.value=n;var o=e.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}function Ka(t,e,n,r,i){var o=$a(t);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=Object(l.P)(o.interpolatedValue,o.prevValue),u=o.value;t.percent=0,(null==o.prevValue?Da:Ta)(t,{percent:1},r,e,null,(function(r){var l=yr(n,o.precision,s,u,r);o.interpolatedValue=1===r?null:l;var c=Ba({labelDataIndex:e,labelFetcher:i,defaultText:a?a(l):l+""},o.statesModels,l);za(t,c)}))}}var Qa,Ja,ts=["textStyle","color"],es=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ns=new Po,rs=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(ts):null)},t.prototype.getFont=function(){return Xa({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<es.length;n++)e[es[n]]=this.getShallow(es[n]);return ns.useStyle(e),ns.update(),ns.getBoundingRect()},t}(),is=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],os=Cr(is),as=function(){function t(){}return t.prototype.getLineStyle=function(t){return os(this,t)},t}(),ss=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ls=Cr(ss),us=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return ls(this,t,e)},t}(),cs=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},t.prototype.mergeOption=function(t,e){Object(l.I)(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null;return new t(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(Object(l.d)(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!s.a.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length&&(!t[r]||null!=(n=n&&"object"==typeof n?n[t[r]]:null));r++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();xr(cs),Qa=cs,Ja=["__\0is_clz",wr++].join("_"),Qa.prototype[Ja]=!0,Qa.isInstance=function(t){return!(!t||!t[Ja])},Object(l.K)(cs,as),Object(l.K)(cs,us),Object(l.K)(cs,kr),Object(l.K)(cs,rs);var hs=cs,ps=Math.round(10*Math.random());function fs(t){return[t||"",ps++].join("_")}function ds(t,e){return l.I(l.I({},t,!0),e,!0)}var gs={},vs={},ys=s.a.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf("ZH")>-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;o<i.length;o++){var a=qs[o];t=t.replace(Xs(a),Xs(a,0))}for(var s=0;s<r;s++)for(var u=0;u<i.length;u++){var c=e[s][i[u]];t=t.replace(Xs(qs[u],s),n?N(c):c)}return t}function Zs(t,e){return e=e||"transparent",l.C(t)?t:l.A(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Ks(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Qs=l.k,Js=["left","right","top","bottom","width","height"],tl=[["width","left","right"],["height","top","bottom"]];function el(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,u){var c,h,p=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect();if("horizontal"===t){var g=p.width+(d?-d.x+p.x:0);(c=o+g)>r||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<n.length;h++){var p=n[h];if(!s(o,p)&&s(t,p)){o[p]=t[p];break}}return o}return l}function s(t,e){return t.hasOwnProperty(e)}function u(t,e){return null!=t[e]&&"auto"!==t[e]}function c(t,e,n){Qs(t,(function(t){e[t]=n[t]}))}c(tl[0],t,i),c(tl[1],t,o)}function sl(t){return ll({},t)}function ll(t,e){return e&&t&&Qs(Js,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var ul=lr(),cl=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=fs("ec_cpt_model"),i}var n;return a(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=ol(this),r=n?sl(t):{},i=e.getTheme();l.I(t,i.get(this.mainType)),l.I(t,this.getDefaultOption()),n&&al(t,r,n)},e.prototype.mergeOption=function(t,e){l.I(this.option,t,!0);var n=ol(this);n&&al(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t.___EC__EXTENDED_CLASS___)}(t))return t.defaultOption;var e=ul(this);if(!e.defaultOption){for(var n=[],r=t;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=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;r<n;r++)t.push(e+r)}function g(t){var e=t.dimsDef;return e?e.length:1}return Object(l.k)(t,(function(t,e){var n=t.name,i=g(t);if(null==o){var a=f.valueWayDim;d(r[n],a,i),d(u,a,i),f.valueWayDim+=i}else if(o===e)d(r[n],0,i),d(s,0,i);else{a=f.categoryWayDim;d(r[n],a,i),d(u,a,i),f.categoryWayDim+=i}})),s.length&&(r.itemName=s),u.length&&(r.seriesName=u),r}function _l(t,e,n){var r={};if(!wl(t))return r;var i,o=e.sourceFormat,a=e.dimensionsDefine;"objectRows"!==o&&"keyedColumns"!==o||Object(l.k)(a,(function(t,e){"name"===(Object(l.A)(t)?t.name:t)&&(i=e)}));var s=function(){for(var t={},r={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=Ml(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(c);var h=c===ml;if(h&&null==t.v&&l!==i&&(t.v=l),(null==t.n||t.n===t.v||!h&&s[t.n]===ml)&&(t.n=l),p(t)&&s[t.n]!==ml)return t;h||(c===yl&&null==r.v&&l!==i&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function p(t){return null!=t.v&&null!=t.n}return p(t)?t:p(r)?r:null}();if(s){r.value=[s.v];var u=null!=i?i:s.n;r.itemName=[u],r.seriesName=[u]}return r}function wl(t){if(!t.get("data",!0))return dr(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},pr).models[0]}function Sl(t,e){return Ml(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Ml(t,e,n,r,i,o){var a,s,u;if(Object(l.E)(t))return ml;if(r){var c=r[o];Object(l.A)(c)?(s=c.name,u=c.type):Object(l.C)(c)&&(s=c)}if(null!=u)return"ordinal"===u?vl:ml;if("arrayRows"===e){var h=t;if("row"===n){for(var p=h[o],f=0;f<(p||[]).length&&f<5;f++)if(null!=(a=b(p[i+f])))return a}else for(f=0;f<h.length&&f<5;f++){var d=h[i+f];if(d&&null!=(a=b(d[o])))return a}}else if("objectRows"===e){var g=t;if(!s)return ml;for(f=0;f<g.length&&f<5;f++){if((y=g[f])&&null!=(a=b(y[s])))return a}}else if("keyedColumns"===e){if(!s)return ml;if(!(p=t[s])||Object(l.E)(p))return ml;for(f=0;f<p.length&&f<5;f++)if(null!=(a=b(p[f])))return a}else if("original"===e){var v=t;for(f=0;f<v.length&&f<5;f++){var y,m=Jn(y=v[f]);if(!Object(l.t)(m))return ml;if(null!=(a=b(m[o])))return a}}function b(t){var e=Object(l.C)(t);return null!=t&&isFinite(t)&&""!==t?e?yl:ml:e&&"-"!==t?vl:void 0}return ml}var Ol=Object(l.f)();var Cl=lr(),Il=lr(),kl=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=Zn(this.get("color",!0)),i=this.get("colorLayer",!0);return Tl(this,Cl,r,i,t,e,n)},t.prototype.clearColorPalette=function(){var t,e;(e=Cl)(t=this).paletteIdx=0,e(t).paletteNameMap={}},t}();function Al(t,e,n,r){var i=Zn(t.get(["aria","decal","decals"]));return Tl(t,Il,i,null,e,n,r)}function Tl(t,e,n,r,i,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?function(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)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<n.length;i++)if(n[i])return n[i]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,r=t.index,i=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=r?(n=[],Object(l.k)(Zn(r),(function(t){a[t]&&n.push(a[t])}))):n=null!=i?Nl("id",i,a):null!=o?Nl("name",o,a):Object(l.n)(a,(function(t){return!!t})),zl(n,t)):[]},e.prototype.findComponents=function(t){var e,n,r,i,o,a=t.query,s=t.mainType,u=(n=s+"Index",r=s+"Id",i=s+"Name",!(e=a)||null==e[n]&&null==e[r]&&null==e[i]?null:{mainType:s,index:e[n],id:e[r],name:e[i]}),c=u?this.queryComponents(u):Object(l.n)(this._componentsMap.get(s),(function(t){return!!t}));return o=zl(c,t),t.filter?Object(l.n)(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(Object(l.w)(t)){var i=e,o=t;r.each((function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&o.call(i,e,r,r.componentIndex)}}))}else for(var a=Object(l.C)(t)?r.get(t):Object(l.A)(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var u=a[s];u&&e.call(n,u,u.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=ir(t,null);return Object(l.n)(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Object(l.n)(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return Object(l.n)(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Pl(this),Object(l.k)(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)}),this)},e.prototype.eachRawSeries=function(t,e){Object(l.k)(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){Pl(this),Object(l.k)(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Object(l.k)(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return Pl(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Pl(this);var n=[];Object(l.k)(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(l.f)(n)},e.prototype.restoreData=function(t){Dl(this);var e=this._componentsMap,n=[];e.each((function(t,e){hl.hasClass(e)&&n.push(e)})),hl.topologicalTravel(n,hl.getAllClassMainTypes(),(function(n){Object(l.k)(e.get(n),(function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}(e,t)||e.restoreData()}))}))},e.internalField=(Dl=function(t){var e=t._seriesIndices=[];Object(l.k)(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Object(l.f)(e)},Pl=function(t){},void(Ll=function(t,e){t.option={},t.option["\0_ec_inner"]=1,t._componentsMap=Object(l.f)({series:[]}),t._componentsCount=Object(l.f)();var n,r,i,o=e.aria;Object(l.A)(o)&&null==o.enabled&&(o.enabled=!0),n=e,r=t._theme.option,i=n.color&&!n.colorLayer,Object(l.k)(r,(function(t,e){"colorLayer"===e&&i||hl.hasClass(e)||("object"==typeof t?n[e]=n[e]?Object(l.I)(n[e],t,!1):Object(l.d)(t):null==n[e]&&(n[e]=t))})),Object(l.I)(e,dl,!1),t._mergeOption(e,null)})),e}(hs);function Nl(t,e,n){if(Object(l.t)(e)){var r=Object(l.f)();return Object(l.k)(e,(function(t){null!=t&&(null!=ir(t,null)&&r.set(t,!0))})),Object(l.n)(n,(function(e){return e&&r.get(e[t])}))}var i=ir(e,null);return Object(l.n)(n,(function(e){return e&&null!=i&&e[t]===i}))}function zl(t,e){return e.hasOwnProperty("subType")?Object(l.n)(t,(function(t){return t&&t.subType===e.subType})):t}function Bl(t){var e=Object(l.f)();return t&&Object(l.k)(Zn(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Object(l.K)(Rl,kl);var Vl=Rl,Fl=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Gl=function(t){l.k(Fl,(function(e){this[e]=l.c(t[e],t)}),this)},Hl={},Wl=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];l.k(Hl,(function(r,i){var o=r.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){l.k(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){Hl[t]=e},t.get=function(t){return Hl[t]},t}(),Ul=/^(min|max)?(.+)$/;function Yl(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return Object(l.k)(t,(function(t,e){var n=e.match(Ul);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=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<h;c++)Yl(o[c].query,r,i)&&s.push(c);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(u=Object(l.H)(s,(function(t){return Object(l.d)(-1===t?a.option:o[t].option)}))),this._currentMediaIndices=s,u},t}(),Xl=l.k,$l=l.A,Zl=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Kl(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=Zl.length;n<r;n++){var i=Zl[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?l.I(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?l.I(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function Ql(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,l.i(t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Jl(t){Ql(t,"itemStyle"),Ql(t,"lineStyle"),Ql(t,"areaStyle"),Ql(t,"label"),Ql(t,"labelLine"),Ql(t,"upperLabel"),Ql(t,"edgeLabel")}function tu(t,e){var n=$l(t)&&t[e],r=$l(n)&&n.textStyle;if(r){0;for(var i=0,o=Qn.length;i<o;i++){var a=Qn[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function eu(t){t&&(Jl(t),tu(t,"label"),t.emphasis&&tu(t.emphasis,"label"))}function nu(t){return l.t(t)?t:t?[t]:[]}function ru(t){return(l.t(t)?t[0]:t)||{}}function iu(t,e){Xl(nu(t.series),(function(t){$l(t)&&function(t){if($l(t)){Kl(t),Jl(t),tu(t,"label"),tu(t,"upperLabel"),tu(t,"edgeLabel"),t.emphasis&&(tu(t.emphasis,"label"),tu(t.emphasis,"upperLabel"),tu(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Kl(e),eu(e));var n=t.markLine;n&&(Kl(n),eu(n));var r=t.markArea;r&&eu(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!l.E(o))for(var a=0;a<o.length;a++)eu(o[a]);l.k(t.categories,(function(t){Jl(t)}))}if(i&&!l.E(i))for(a=0;a<i.length;a++)eu(i[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)eu(s[a])}if((n=t.markLine)&&n.data){var u=n.data;for(a=0;a<u.length;a++)l.t(u[a])?(eu(u[a][0]),eu(u[a][1])):eu(u[a])}"gauge"===t.type?(tu(t,"axisLabel"),tu(t,"title"),tu(t,"detail")):"treemap"===t.type?(Ql(t.breadcrumb,"itemStyle"),l.k(t.levels,(function(t){Jl(t)}))):"tree"===t.type&&Jl(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Xl(n,(function(e){Xl(nu(t[e]),(function(t){t&&(tu(t,"axisLabel"),tu(t.axisPointer,"label"))}))})),Xl(nu(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;tu(e,"axisLabel"),tu(e&&e.axisPointer,"label")})),Xl(nu(t.calendar),(function(t){Ql(t,"itemStyle"),tu(t,"dayLabel"),tu(t,"monthLabel"),tu(t,"yearLabel")})),Xl(nu(t.radar),(function(t){tu(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),Xl(nu(t.geo),(function(t){$l(t)&&(eu(t),Xl(nu(t.regions),(function(t){eu(t)})))})),Xl(nu(t.timeline),(function(t){eu(t),Ql(t,"label"),Ql(t,"itemStyle"),Ql(t,"controlStyle",!0);var e=t.data;l.t(e)&&l.k(e,(function(t){l.A(t)&&(Ql(t,"label"),Ql(t,"itemStyle"))}))})),Xl(nu(t.toolbox),(function(t){Ql(t,"iconStyle"),Xl(t.feature,(function(t){Ql(t,"iconStyle")}))})),tu(ru(t.axisPointer),"label"),tu(ru(t.tooltip).axisPointer,"label")}function ou(t){t&&Object(l.k)(au,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var au=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],su=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],lu=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function uu(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<lu.length;n++){var r=lu[n][1],i=lu[n][0];null!=e[r]&&(e[i]=e[r])}}function cu(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function hu(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function pu(t,e){iu(t,e),t.series=Zn(t.series),Object(l.k)(t.series,(function(t){if(Object(l.A)(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise),cu(t.label),(i=t.data)&&!Object(l.E)(i))for(var n=0;n<i.length;n++)cu(i[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=function(t,e){for(var n=e.split(","),r=t,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(t,"pointer.color");null!=r&&function(t,e,n,r){for(var i,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[i=o[s]]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}(t,"itemStyle.color",r)}else if("bar"===e){var i;if(uu(t),uu(t.backgroundStyle),uu(t.emphasis),(i=t.data)&&!Object(l.E)(i))for(n=0;n<i.length;n++)"object"==typeof i[n]&&(uu(i[n]),uu(i[n]&&i[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),hu(t),function t(e,n){if(e)for(var r=0;r<e.length;r++)n(e[r]),e[r]&&t(e[r].children,n)}(t.data,hu)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Object(l.i)(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),ou(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Object(l.k)(su,(function(e){var n=t[e];n&&(Object(l.t)(n)||(n=[n]),Object(l.k)(n,(function(t){ou(t)})))}))}function fu(t){Object(l.k)(t,(function(e,n){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var h,p,f=a.get(e.stackedDimension,c);if(isNaN(f))return i;s?p=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var d=NaN,g=n-1;g>=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;n<e.length;n++){var r=e[n];null==r.type&&Sl(this,n)===vl&&(r.type="ordinal")}};function xu(t){return t instanceof bu}function _u(t,e,n){n=n||Su(t);var r=e.seriesLayoutBy,i=function(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:Mu(i),startIndex:a,dimensionsDetectedCount:o};if("arrayRows"===e){var s=t;"auto"===r||null==r?Ou((function(t){null!=t&&"-"!==t&&(Object(l.C)(t)?null==a&&(a=1):a=0)}),n,s,10):a=Object(l.z)(r)?r:r?1:0,i||1!==a||(i=[],Ou((function(t,e){i[e]=null!=t?t+"":""}),n,s,1/0)),o=i?i.length:"row"===n?s.length:s[0]?s[0].length:null}else if("objectRows"===e)i||(i=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e){var r=[];return Object(l.k)(e,(function(t,e){r.push(e)})),r}}(t));else if("keyedColumns"===e)i||(i=[],Object(l.k)(t,(function(t,e){i.push(e)})));else if("original"===e){var u=Jn(t[0]);o=Object(l.t)(u)&&u.length||1}return{startIndex:a,dimensionsDefine:Mu(i),dimensionsDetectedCount:o}}(t,n,r,e.sourceHeader,e.dimensions);return new bu({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Object(l.d)(e)})}function wu(t){return new bu({data:t,sourceFormat:Object(l.E)(t)?"typedArray":"original"})}function Su(t){var e="unknown";if(Object(l.E)(t))e="typedArray";else if(Object(l.t)(t)){0===t.length&&(e="arrayRows");for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(Object(l.t)(i)){e="arrayRows";break}if(Object(l.A)(i)){e="objectRows";break}}}}else if(Object(l.A)(t))for(var o in t)if(Object(l.q)(t,o)&&Object(l.u)(t[o])){e="keyedColumns";break}return e}function Mu(t){if(t){var e=Object(l.f)();return Object(l.H)(t,(function(t,n){var r={name:(t=Object(l.A)(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=e.get(r.name);return i?r.name+="-"+i.count++:e.set(r.name,{count:1}),r}))}}function Ou(t,e,n,r){if("row"===e)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)t(o[i],i)}}function Cu(t){var e=t.sourceFormat;return"objectRows"===e||"keyedColumns"===e}var Iu=function(){function t(t,e){var n=xu(t)?t:wu(t);this._source=n;var r=this._data=n.data;"typedArray"===n.sourceFormat&&(this._offset=0,this._dimSize=e,this._data=r),mu(this,r,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;mu=function(t,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,u=o.startIndex,c=o.dimensionsDefine,h=yu[Nu(a,s)];if(Object(l.m)(t,h),"typedArray"===a)t.getItem=e,t.count=r,t.fillStorage=n;else{var p=Tu(a,s);t.getItem=Object(l.c)(p,null,i,u,c);var f=Lu(a,s);t.count=Object(l.c)(f,null,i,u,c)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;o<r;o++)e[o]=n[i+o];return e},n=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],p=0;p<c;p++){var f=i[p*o+a];h[t+p]=f,f<l&&(l=f),f>u&&(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<t.length;e++)this._data.push(t[e])}(t={}).arrayRows_column={pure:!0,appendData:i},t.arrayRows_row={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t.objectRows={pure:!0,appendData:i},t.keyedColumns={pure:!0,appendData:function(t){var e=this._data;Object(l.k)(t,(function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])}))}},t.original={appendData:i},t.typedArray={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},yu=t}(),t}(),ku=function(t,e,n,r){return t[r]},Au=((du={}).arrayRows_column=function(t,e,n,r){return t[r+e]},du.arrayRows_row=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},du.objectRows=ku,du.keyedColumns=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){0;var s=t[n[a].name];o[a]=s?s[r]:null}return o},du.original=ku,du);function Tu(t,e){return Au[Nu(t,e)]}var Du=function(t,e,n){return t.length},Pu=((gu={}).arrayRows_column=function(t,e,n){return Math.max(0,t.length-e)},gu.arrayRows_row=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},gu.objectRows=Du,gu.keyedColumns=function(t,e,n){var r=t[n[0].name];return r?r.length:0},gu.original=Du,gu);function Lu(t,e){return Pu[Nu(t,e)]}var ju=function(t,e,n){return t[e]},Eu=((vu={}).arrayRows=ju,vu.objectRows=function(t,e,n){return t[n]},vu.keyedColumns=ju,vu.original=function(t,e,n){var r=Jn(t);return r instanceof Array?r[e]:r},vu.typedArray=ju,vu);function Ru(t){return Eu[t]}function Nu(t,e){return"arrayRows"===t?t+"_"+e:t}function zu(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return Ru(o)(r,a,s)}var l=r;return"original"===o&&(l=Jn(r)),l}}}var Bu=/\{@(.+?)\}/g,Vu=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,p=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:l,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,r,i,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);(o&&(s.value=o.interpolatedValue),null!=r&&l.t(s.value)&&(s.value=s.value[r]),i)||(i=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return l.w(i)?(s.status=e,s.dimensionIndex=r,i(s)):l.C(i)?$s(i,s).replace(Bu,(function(e,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=zu(a,t,i);if(o&&l.t(o.interpolatedValue)){var u=a.getDimensionIndex(i);u>=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||f<d)){var g=this._progress;if(Object(l.t)(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],f,d,u,c);else this._doProgress(g,f,d,u,c)}this._dueIndex=d;var y=null!=this._settedOutputEnd?this._settedOutputEnd:d;0,this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){Wu.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Wu.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Object(l.t)(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),Wu=function(){var t,e,n,r,i,o={reset:function(l,u,c,h){e=l,t=u,n=c,r=h,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%i*n+Math.ceil(e/i),a=e>=t?null:o<r?o:e;return e++,a}}();function Uu(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Object(l.z)(t)||null==t||"-"===t||(t=+Vn(t)),null==t||""===t?NaN:+t)}var Yu=Object(l.f)({number:function(t){return parseFloat(t)},time:function(t){return+Vn(t)},trim:function(t){return Object(l.C)(t)?Object(l.T)(t):t}});function qu(t){return Yu.get(t)}var Xu={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},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 n<r?this._resultLT:n>r?-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;i<o;i++)r.push(n[i].slice());return r}if("objectRows"===e){for(r=[],i=0,o=n.length;i<o;i++)r.push(Object(l.m)({},n[i]));return r}}function nc(t,e,n){if(null!=n)return Object(l.z)(n)||!isNaN(n)&&!Object(l.q)(e,n)?t[n]:Object(l.q)(e,n)?e[n]:void 0}function rc(t){return Object(l.d)(t)}var ic=Object(l.f)();function oc(t,e,n,r){e.length||El(""),Object(l.A)(t)||El("");var i=t.type,o=ic.get(i);o||El("");var a=Object(l.H)(e,(function(t){return function(t,e){var n=new Ju,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex;"column"!==t.seriesLayoutBy&&El("");var a=[],s={},u=t.dimensionsDefine;if(u)Object(l.k)(u,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(a.push(r),null!=n){Object(l.q)(s,n)&&El(""),s[n]=r}}));else for(var c=0;c<t.dimensionsDetectedCount;c++)a.push({index:c});var h=Tu(i,"column");e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(r,o,a,t)},n.getRawData=Object(l.c)(tc,null,t)),n.cloneRawData=Object(l.c)(ec,null,t);var p=Lu(i,"column");n.count=Object(l.c)(p,null,r,o,a);var f=Ru(i);n.retrieveValue=function(t,e){var n=h(r,o,a,t);return d(n,e)};var d=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];return n?f(t,e,n.name):void 0}};return n.getDimensionInfo=Object(l.c)(nc,null,a,s),n.cloneAllDimensionInfo=Object(l.c)(rc,null,a),n}(t,o)})),s=Zn(o.transform({upstream:a[0],upstreamList:a,config:Object(l.d)(t.config)}));return Object(l.H)(s,(function(t,n){var r;Object(l.A)(t)||El(""),t.data||El(""),ac(Su(t.data))||El("");var i=e[0];if(i&&0===n&&!t.dimensions){var o=i.startIndex;o&&(t.data=i.data.slice(0,o).concat(t.data)),r={seriesLayoutBy:"column",sourceHeader:o,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:"column",sourceHeader:0,dimensions:t.dimensions};return _u(t.data,r,null)}))}function ac(t){return"arrayRows"===t||"objectRows"===t}var sc,lc="undefined"==typeof Uint32Array?Array:Uint32Array,uc="undefined"==typeof Uint16Array?Array:Uint16Array,cc="undefined"==typeof Int32Array?Array:Int32Array,hc="undefined"==typeof Float64Array?Array:Float64Array,pc={float:hc,int:cc,ordinal:Array,number:Array,time:hc};function fc(t){return t>65535?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;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}var gc=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(l.f)()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=sc[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];Cu(r);this._dimensions=Object(l.H)(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new pc[e||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=[1/0,-1/0]);for(var s=i[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<i;l++){dc(n,l,(f=r[l]).type,s,!0)}for(var u=[],c=a;c<s;c++)for(var h=c-a,p=0;p<i;p++){var f=r[p],d=sc.arrayRows.call(this,t[h]||u,f.property,h,p);n[p][c]=d;var g=o[p];d<g[0]&&(g[0]=d),d>g[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;c<a;c++){var h=o[c];s[c]||(s[c]=[1/0,-1/0]),dc(i,c,h.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var p=[],f=t;f<e;f++){p=r.getItem(f,p);for(var d=0;d<a;d++){var g=i[d],v=this._dimValueGetter(p,u[d],f,d);g[f]=v;var y=s[d];v<y[0]&&(y[0]=v),v>y[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<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,r=this.count();n<r;n++){var i=this.get(t,n);isNaN(i)||(e+=i)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))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<u;l++){var c=e-r[this.getRawIndex(l)],h=Math.abs(c);h<=n&&((h<o||h===o&&c>=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<r;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{t=new(n=fc(this._rawCount))(this.count());for(i=0;i<t.length;i++)t[i]=i}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(fc(n._rawCount))(r),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<r;c++){var h=void 0,p=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a){h=e(u[l][p],c)}else{for(var f=0;f<a;f++)o[f]=u[t[f]][p];o[f]=c,h=e.apply(null,o)}h&&(i[s++]=p)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=Object(l.F)(t),i=r.length;if(!i)return this;var o=e.count(),a=new(fc(e._rawCount))(o),s=0,u=r[0],c=t[u][0],h=t[u][1],p=e._chunks,f=!1;if(!e._indices){var d=0;if(1===i){for(var g=p[r[0]],v=0;v<n;v++){((x=g[v])>=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<n;v++){var x=g[v],_=y[v];(x>=c&&x<=h||isNaN(x))&&(_>=m&&_<=b||isNaN(_))&&(a[s++]=d),d++}f=!0}}if(!f)if(1===i)for(v=0;v<o;v++){var w=e.getRawIndex(v);((x=p[r[0]][w])>=c&&x<=h||isNaN(x))&&(a[s++]=w)}else for(v=0;v<o;v++){for(var S=!0,M=(w=e.getRawIndex(v),0);M<i;M++){var O=r[M];((x=p[O][w])<t[O][0]||x>t[O][1])&&(S=!1)}S&&(a[s++]=e.getRawIndex(v))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),p=0;p<o;p++)s[p]=r[e[p]][h];s[o]=c;var f=n&&n.apply(null,s);if(null!=f){"object"!=typeof f&&(i[0]=f,f=i);for(u=0;u<f.length;u++){var d=e[u],g=f[u],v=l[d],y=r[d];y&&(y[h]=g),g<v[0]&&(v[0]=g),g>v[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;p<s-1;p+=u){for(var f=Math.min(p+u,s-1),d=Math.min(p+2*u,s),g=(d+f)/2,v=0,y=f;y<d;y++){var m=a[O=this.getRawIndex(y)];isNaN(m)||(v+=m)}v/=d-f;var b=p,x=Math.min(p+u,s),_=p-1,w=a[c];n=-1,i=b;var S=-1,M=0;for(y=b;y<x;y++){var O;m=a[O=this.getRawIndex(y)];isNaN(m)?(M++,S<0&&(S=O)):(r=Math.abs((_-g)*(m-w)-(_-y)*(v-w)))>n&&(n=r,i=O)}M>0&&M<x-b&&(h[l++]=Math.min(S,i),i=Math.max(S,i)),h[l++]=i,c=i}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=i._rawExtent[t]=[1/0,-1/0],h=new(fc(this._rawCount))(Math.ceil(u/s)),p=0,f=0;f<u;f+=s){s>u-f&&(s=u-f,a.length=s);for(var d=0;d<s;d++){var g=this.getRawIndex(f+d);a[d]=l[g]}var v=n(a),y=this.getRawIndex(Math.min(f+r(a,v)||0,u-1));l[y]=v,v<c[0]&&(c[0]=v),v>c[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();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(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<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r,i,o=new t,a=this._chunks,s=e&&Object(l.N)(e,(function(t,e){return t[e]=!0,t}),{});if(s)for(var u=0;u<a.length;u++)o._chunks[u]=s[u]?(r=a[u],i=void 0,(i=r.constructor)===Array?r.slice():new i(r)):a[u];else o._chunks=a;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Object(l.d)(this._extent),t._rawExtent=Object(l.d)(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=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;o<a;o++){e=oc(r[o],e,n,1===i?null:o),o!==a-1&&(e.length=Math.max(e.length,1))}return e}(r,a,{datasetIndex:n.componentIndex}):null!=i&&(e=[(o=a[0],new bu({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:Object(l.d)(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];mc(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new gc).initData(new Iu(e,t.length),t),i[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(mc(t)){var e=wl(t);return e?[e.getSourceManager()]:[]}return Object(l.H)(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?dr(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},pr).models:[]}(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(mc(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function yc(t){t.option.transform&&Object(l.R)(t.option.transform)}function mc(t){return"series"===t.mainType}function bc(t){throw new Error(t)}function xc(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,i=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+N(r+"")+"px;color:"+N(n)+";font-weight:"+N(i+""),valueStyle:"font-size:"+N(a+"")+"px;color:"+N(o)+";font-weight:"+N(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var _c=[0,10,20,30],wc=["","\n","\n\n","\n\n\n"];function Sc(t,e){return e.type=t,e}function Mc(t){return"section"===t.type}function Oc(t){return Mc(t)?Cc:Ic}function Cc(t,e,n,r){var i,o=e.noHeader,a=(i=function t(e){if(Mc(e)){var n=0,r=e.blocks.length,i=r>1||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('<div style="'+g+';line-height:1;">'+N(d)+"</div>"+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'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+N(t)+"</span>"}(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],'<span style="'+o+";"+r+'">'+Object(l.H)(t,(function(t){return N(t)})).join(" ")+"</span>"}(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'<div style="'+("margin: "+e+"px 0 0")+';line-height:1;">'+t+'<div style="clear:both"></div></div>'}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?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+N(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+N(r)+";"+(e||"")+'"></span>':{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;n<t.length;n++)t[n]&&t[n].label&&Kn(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=Wc(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return Ec(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=Wc(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Ec(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return l.f(t)},e.prototype.getSourceManager=function(){return Ec(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Ec(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return jc({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(s.a.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.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<t.length;o++){var a=Rc(i,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=l.F(t),n=[],r=0;r<e.length;r++){var i=t[e[r]];i>=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;u<a;u++){var c=e[u];s[p=Rc(t,c)]=!0,this._selectedDataIndicesMap[p]=t.getRawIndex(c)}}else if("single"===o||!0===o){var h=e[a-1],p=Rc(t,h);i.selectedMap=((n={})[p]=!0,n),this._selectedDataIndicesMap=((r={})[p]=t.getRawIndex(h),r)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)})),e.length>0&&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;i<u;){switch(n=l[i++],o=i,r=0,n){case c:case p:r=1;break;case h:r=3;break;case g:r=2;break;case d:var v=e[4],y=e[5],m=Kc(e[0]*e[0]+e[1]*e[1]),b=Kc(e[2]*e[2]+e[3]*e[3]),x=Qc(-e[1]/b,e[0]/m);l[i]*=m,l[i++]+=v,l[i]*=b,l[i++]+=y,l[i++]*=m,l[i++]*=b,l[i++]+=x,l[i++]+=x,o=i+=2;break;case f:s[0]=l[i++],s[1]=l[i++],S(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],S(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var _=Zc[a];_[0]=l[i++],_[1]=l[i++],S(_,_,e),l[o++]=_[0],l[o++]=_[1]}}t.increaseVersion()}}var th=Math.sqrt,eh=Math.sin,nh=Math.cos,rh=Math.PI;function ih(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function oh(t,e){return(t[0]*e[0]+t[1]*e[1])/(ih(t)*ih(e))}function ah(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(oh(t,e))}function sh(t,e,n,r,i,o,a,s,l,u,c){var h=l*(rh/180),p=nh(h)*(t-n)/2+eh(h)*(e-r)/2,f=-1*eh(h)*(t-n)/2+nh(h)*(e-r)/2,d=p*p/(a*a)+f*f/(s*s);d>1&&(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;u<l.length;u++){for(var c=l[u],h=c.charAt(0),p=void 0,f=c.match(uh)||[],d=f.length,g=0;g<d;g++)f[g]=parseFloat(f[g]);for(var v=0;v<d;){var y=void 0,m=void 0,b=void 0,x=void 0,_=void 0,w=void 0,S=void 0,M=r,O=i,C=void 0,I=void 0;switch(h){case"l":r+=f[v++],i+=f[v++],p=s.L,e.addData(p,r,i);break;case"L":r=f[v++],i=f[v++],p=s.L,e.addData(p,r,i);break;case"m":r+=f[v++],i+=f[v++],p=s.M,e.addData(p,r,i),o=r,a=i,h="l";break;case"M":r=f[v++],i=f[v++],p=s.M,e.addData(p,r,i),o=r,a=i,h="L";break;case"h":r+=f[v++],p=s.L,e.addData(p,r,i);break;case"H":r=f[v++],p=s.L,e.addData(p,r,i);break;case"v":i+=f[v++],p=s.L,e.addData(p,r,i);break;case"V":i=f[v++],p=s.L,e.addData(p,r,i);break;case"C":p=s.C,e.addData(p,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),r=f[v-2],i=f[v-1];break;case"c":p=s.C,e.addData(p,f[v++]+r,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r,f[v++]+i),r+=f[v-2],i+=f[v-1];break;case"S":y=r,m=i,C=e.len(),I=e.data,n===s.C&&(y+=r-I[C-4],m+=i-I[C-3]),p=s.C,M=f[v++],O=f[v++],r=f[v++],i=f[v++],e.addData(p,y,m,M,O,r,i);break;case"s":y=r,m=i,C=e.len(),I=e.data,n===s.C&&(y+=r-I[C-4],m+=i-I[C-3]),p=s.C,M=r+f[v++],O=i+f[v++],r+=f[v++],i+=f[v++],e.addData(p,y,m,M,O,r,i);break;case"Q":M=f[v++],O=f[v++],r=f[v++],i=f[v++],p=s.Q,e.addData(p,M,O,r,i);break;case"q":M=f[v++]+r,O=f[v++]+i,r+=f[v++],i+=f[v++],p=s.Q,e.addData(p,M,O,r,i);break;case"T":y=r,m=i,C=e.len(),I=e.data,n===s.Q&&(y+=r-I[C-4],m+=i-I[C-3]),r=f[v++],i=f[v++],p=s.Q,e.addData(p,y,m,r,i);break;case"t":y=r,m=i,C=e.len(),I=e.data,n===s.Q&&(y+=r-I[C-4],m+=i-I[C-3]),r+=f[v++],i+=f[v++],p=s.Q,e.addData(p,y,m,r,i);break;case"A":b=f[v++],x=f[v++],_=f[v++],w=f[v++],S=f[v++],sh(M=r,O=i,r=f[v++],i=f[v++],w,S,b,x,_,p=s.A,e);break;case"a":b=f[v++],x=f[v++],_=f[v++],w=f[v++],S=f[v++],sh(M=r,O=i,r+=f[v++],i+=f[v++],w,S,b,x,_,p=s.A,e)}}"z"!==h&&"Z"!==h||(p=s.Z,e.addData(p),r=o,i=a),n=p}return e.toStatic(),e}(t),r=Object(l.m)({},e);return r.buildPath=function(t){if(hh(t)){t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){Jc(n,t),this.dirtyShape()},r}function fh(t,e){return new ch(ph(t,e))}function dh(t,e){e=e||{};var n=new to;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?Jc(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var gh=function(){this.cx=0,this.cy=0,this.r=0},vh=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultShape=function(){return new gh},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(to);vh.prototype.type="circle";var yh=vh,mh=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},bh=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultShape=function(){return new mh},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),t.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),t.closePath()},e}(to);bh.prototype.type="ellipse";var xh=bh,_h=Math.PI,wh=2*_h,Sh=Math.sin,Mh=Math.cos,Oh=Math.acos,Ch=Math.atan2,Ih=Math.abs,kh=Math.sqrt,Ah=Math.max,Th=Math.min;function Dh(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/kh(s*s+l*l),c=u*l,h=-u*s,p=t+c,f=e+h,d=n+c,g=r+h,v=(p+d)/2,y=(f+g)/2,m=d-p,b=g-f,x=m*m+b*b,_=i-o,w=p*g-d*f,S=(b<0?-1:1)*kh(Ah(0,_*_*x-w*w)),M=(w*b-m*S)/x,O=(-w*m-b*S)/x,C=(w*b+m*S)/x,I=(-w*m+b*S)/x,k=M-v,A=O-y,T=C-v,D=I-y;return k*k+A*A>T*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),O<S&&U===Y?t.arc(c+q.cx,h+q.cy,O,Ch(q.y0,q.x0),Ch(X.y0,X.x0),!p):(U>0&&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),C<M&&U===Y?t.arc(c+q.cx,h+q.cy,C,Ch(q.y0,q.x0),Ch(X.y0,X.x0),!p):(Y>0&&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;g<v;g++)M(a,a,t[g]),O(s,s,t[g]);M(a,a,r[0]),O(s,s,r[1])}for(g=0,v=t.length;g<v;g++){var m=t[g];if(n)i=t[g?g-1:v-1],o=t[(g+1)%v];else{if(0===g||g===v-1){l.push(h(t[g]));continue}i=t[g-1],o=t[g+1]}d(u,o,i),y(u,u,e);var x=b(m,i),_=b(m,o),w=x+_;0!==w&&(x/=w,_/=w),y(c,u,-x),y(f,u,_);var S=p([],m,c),C=p([],m,f);r&&(O(S,S,a),M(S,S,s),O(C,C,a),M(C,C,s)),l.push(S),l.push(C)}return n&&l.push(l.shift()),l}(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var f=i.length;s<f;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}var Vh=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Fh=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultShape=function(){return new Vh},e.prototype.buildPath=function(t,e){Bh(t,e,!0)},e}(to);Fh.prototype.type="polygon";var Gh=Fh,Hh=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Wh=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 Hh},e.prototype.buildPath=function(t,e){Bh(t,e,!1)},e}(to);Wh.prototype.type="polyline";var Uh=Wh,Yh={},qh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Xh=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 qh},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=uo(Yh,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineTo(i,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(to);Xh.prototype.type="line";var $h=Xh,Zh=[],Kh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Qh(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?Yt:Ut)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Yt:Ut)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Jt:Qt)(t.x1,t.cpx1,t.x2,e),(n?Jt:Qt)(t.y1,t.cpy1,t.y2,e)]}var Jh=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 Kh},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,r),null==l||null==u?(c<1&&(ee(n,a,i,c,Zh),a=Zh[1],i=Zh[2],ee(r,s,o,c,Zh),s=Zh[1],o=Zh[2]),t.quadraticCurveTo(a,s,i,o)):(c<1&&($t(n,a,l,i,c,Zh),a=Zh[1],l=Zh[2],i=Zh[3],$t(r,s,u,o,c,Zh),s=Zh[1],u=Zh[2],o=Zh[3]),t.bezierCurveTo(a,s,l,u,i,o)))},e.prototype.pointAt=function(t){return Qh(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Qh(this.shape,t,!0);return m(e,e)},e}(to);Jh.prototype.type="bezier-curve";var tp=Jh,ep=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},np=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 ep},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},e}(to);np.prototype.type="arc";var rp=np,ip=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return a(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),to.prototype.getBoundingRect.call(this)},e}(to),op=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),ap=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return a(e,t),e}(op),sp=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return a(e,t),e}(op),lp=[0,0],up=[0,0],cp=new it,hp=new it,pp=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new it;for(n=0;n<2;n++)this._axes[n]=new it;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;l<4;l++)n[l].transform(e);it.sub(r[0],n[1],n[0]),it.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return cp.set(1/0,1/0),hp.set(0,0),!this._intersectCheckOneSide(this,t,cp,hp,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,cp,hp,r,-1)&&(n=!1,r)||r||it.copy(e,n?cp:hp),n},t.prototype._intersectCheckOneSide=function(t,e,n,r,i,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,lp),this._getProjMinMaxOnAxis(s,e._corners,up),lp[1]<up[0]||lp[0]>up[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()&&(u<c?it.scale(r,l,-u*o):it.scale(r,l,c*o))}else if(n){u=Math.abs(up[0]-lp[1]),c=Math.abs(lp[0]-up[1]);Math.min(u,c)<n.len()&&(u<c?it.scale(n,l,u*o):it.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),fp=[],dp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return a(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new ft(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(fp)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(t,e))return!0}return!1},e}(ti),gp=Math.max,vp=Math.min,yp={};function mp(t){return to.extend(t)}var bp=function(t,e){var n=ph(t,e);return function(t){function e(e){var r=t.call(this,e)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return a(e,t),e}(ch)};function xp(t,e){return bp(t,e)}function _p(t,e){yp[t]=e}function wp(t){if(yp.hasOwnProperty(t))return yp[t]}function Sp(t,e,n,r){var i=fh(t,e);return n&&("center"===r&&(n=Op(n,i.getBoundingRect())),Ip(i,n)),i}function Mp(t,e,n){var r=new so({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(Op(e,i))}}});return r}function Op(t,e){var n,r=e.width/e.height,i=t.height*r;return n=i<=t.width?t.height:(i=t.width)/r,{x:t.x+t.width/2-i/2,y:t.y+t.height/2-n/2,width:i,height:n}}var Cp=function(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new to(e);return a.createPathProxy(),a.buildPath=function(t){if(hh(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function Ip(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function kp(t,e){return uo(t,t,{lineWidth:e}),t}function Ap(t){return co(t.shape,t.shape,t.style),t}var Tp=ho;function Dp(t,e){for(var n=K([]);t&&t!==e;)J(n,t.getLocalTransform(),n),t=t.parent;return n}function Pp(t,e,n){return e&&!Object(l.u)(e)&&(e=en.getLocalTransform(e)),n&&(e=rt([],e)),S([],t,e)}function Lp(t,e,n){var r=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-r:"right"===t?r:0,"top"===t?-i:"bottom"===t?i:0];return o=Pp(o,e,n),Math.abs(o[0])>Math.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<i.length;o++){var s=i[o];if(Vp(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Vp(t,e,n,r,i,o,a,s){var l,u=n-t,c=r-e,h=a-i,p=s-o,f=Fp(h,p,u,c);if((l=f)<=1e-6&&l>=-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<t.length;n++)Hp(t[n],e);else Hp(t,e)}_p("circle",yh),_p("ellipse",xh),_p("sector",Eh),_p("ring",zh),_p("polygon",Gh),_p("polyline",Uh),_p("rect",vo),_p("line",$h),_p("bezierCurve",tp),_p("arc",rp);var Up=lr(),Yp=Xc(),qp=function(){function t(){this.group=new Mn,this.uid=fs("viewChart"),this.renderTask=Gu({plan:Zp,reset:Kp}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){0},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&$p(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&$p(i,r,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){Wp(this.group,t)},t.markUpdateMethod=function(t,e){Up(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function Xp(t,e,n){t&&Ma(t)&&("emphasis"===e?ia:oa)(t,n)}function $p(t,e,n){var r=sr(t,e),i=e&&null!=e.highlightKey?function(t){var e=Ro[t];return null==e&&Eo<=32&&(e=Ro[t]=Eo++),e}(e.highlightKey):null;null!=r?Object(l.k)(Zn(r),(function(e){Xp(t.getItemGraphicEl(e),n,i)})):t.eachItemGraphicEl((function(t){Xp(t,n,i)}))}function Zp(t){return Yp(t.model)}function Kp(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&Up(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),Qp[l]}xr(qp),Or(qp);var Qp={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Jp=qp,tf="\0__throttleOriginMethod",ef="\0__throttleRate";function nf(t,e,n){var r,i,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var p=function(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];r=(new Date).getTime(),o=this,a=t;var f=s||e,d=s||n;s=null,i=r-(d?l:u)-f,clearTimeout(c),d?c=setTimeout(h,f):i>=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;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function Of(t){return t.data.count()}function Cf(t){If=null;try{t(kf,Af)}catch(t){}return If}var If,kf={},Af={};function Tf(t,e){for(var n in e.prototype)t[n]=l.L}Tf(kf,Vl),Tf(Af,Gl),kf.eachSeriesByType=kf.eachRawSeriesByType=function(t){If=t},kf.eachComponent=function(t){"series"===t.mainType&&t.subType&&(If=t.subType)};var Df=vf,Pf=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Lf={color:Pf,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Pf]},jf=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Ef={darkMode:!0,color:jf,backgroundColor:"#100C2A",axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:"#B9B8CE"}},textStyle:{color:"#B9B8CE"},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:"#B9B8CE"}},dataZoom:{borderColor:"#71708A",textStyle:{color:"#B9B8CE"},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:"#B9B8CE"}},timeline:{lineStyle:{color:"#B9B8CE"},label:{color:"#B9B8CE"},controlStyle:{color:"#B9B8CE",borderColor:"#B9B8CE"}},calendar:{itemStyle:{color:"#100C2A"},dayLabel:{color:"#B9B8CE"},monthLabel:{color:"#B9B8CE"},yearLabel:{color:"#B9B8CE"}},timeAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},logAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},valueAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},categoryAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},line:{symbol:"circle"},graph:{color:jf},gauge:{title:{color:"#B9B8CE"},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:"#B9B8CE"},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Ef.categoryAxis.splitLine.show=!1;var Rf=Ef,Nf=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(l.C(t)){var i=br(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};l.k(t,(function(t,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&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<zf.length;a++){var s=zf[a],u=t.get(s);Object(l.w)(u)?(o=!0,i[s]=u):r[s]=u}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(Object(l.m)({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var c=Object(l.F)(i);return{dataEach:o?function(e,n){for(var r=t.getRawValue(n),o=t.getDataParams(n),a=0;a<c.length;a++){var s=c[a];e.setItemVisual(n,s,i[s](r,o))}}:null}}}}},Ff={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),r=0;r<Bf.length;r++){var i=Bf[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}:null}}};function Gf(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function Hf(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function Wf(t,e,n,r){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r);break;default:0}}function Uf(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){r.push(t.seriesIndex)})),r}Object(l.k)([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,r,i){e=Object(l.m)({},e),i.dispatchAction(Object(l.m)(e,{type:t[1],seriesIndex:n(r,e)}))}))}))}function Yf(t,e,n,r,i){var o=t+e;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var u=t.getData(),c=sr(u,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:Object(l.t)(c)?u.getName(c[0]):u.getName(c),selected:Object(l.C)(r)?r:Object(l.m)({},r)})}}))}function qf(t,e,n){for(var r;t&&(!e(t)||(r=t,!n));)t=t.__hostTarget||t.parent;return r}var Xf=Math.round(9*Math.random()),$f="function"==typeof Object.defineProperty,Zf=function(){function t(){this._id="__ec_inner_"+Xf++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return $f?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),Kf=to.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),Qf=to.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),Jf=to.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),p=Math.cos(u),f=.6*a,d=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*f,l+s+p*f,n,r-d,n,r),t.bezierCurveTo(n,r-d,n-c+h*f,l+s+p*f,n-c,l+s),t.closePath()}}),td=to.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),ed={line:$h,rect:vo,roundRect:vo,square:vo,circle:yh,diamond:Qf,pin:Jf,arrow:td,triangle:Kf},nd={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},rd={};Object(l.k)(ed,(function(t,e){rd[e]=new t}));var id=to.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=fn(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=rd[r];i||(i=rd[r="rect"]),nd[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function od(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function ad(t,e,n,r,i,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?Mp(t.slice(8),new ft(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?Sp(t.slice(7),{},new ft(e,n,r,i),a?"center":"cover"):new id({shape:{symbolType:t,x:e,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=od,o&&s.setColor(o),s}function sd(t){return Object(l.t)(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function ld(t,e){if(null!=t)return Object(l.t)(t)||(t=[t,t]),[Tn(t[0],e[0])||0,Tn(Object(l.P)(t[1],t[0]),e[1])||0]}function ud(t){return isFinite(t)}function cd(t,e,n){for(var r="radial"===e.type?function(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=ud(a)?a:.5,s=ud(s)?s:.5,l=l>=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;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function hd(t){return parseInt(t,10)}function pd(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||hd(s[r])||hd(t.style[r]))-(hd(s[o])||0)-(hd(s[a])||0)|0}function fd(t){var e,n,r=t.style,i=r.lineDash&&r.lineWidth>0&&(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;u<wd.length;u++){var c=wd[u],h=c[0];(r||o[h]!==a[h])&&(s||(Cd(t,i),s=!0),t[h]=o[h]||c[1])}return s}function Od(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function Cd(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Id(t,e){return e&&t.__hoverStyle||t.style}function kd(t,e){Ad(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ad(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(o,a)||(a&&a.length&&(Cd(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Cd(t,n),t.save(),function(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),Od(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,h,p=e instanceof to&&e.autoBatch&&function(t){var e=yd(t),n=gd(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);s||(c=i,h=u.transform,c&&h?c[0]!==h[0]||c[1]!==h[1]||c[2]!==h[2]||c[3]!==h[3]||c[4]!==h[4]||c[5]!==h[5]:c||h)?(Cd(t,n),Od(t,e)):p||Cd(t,n);var f=Id(e,n.inHover);e instanceof to?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),Md(t,e,u,l,n),p&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,r){var i,o=gd(n),a=yd(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||dd,h=e.__dirty;if(!r){var p=n.fill,f=n.stroke,d=a&&!!p.colorStops,g=o&&!!f.colorStops,v=a&&!!p.image,y=o&&!!f.image,m=void 0,b=void 0,x=void 0,_=void 0,w=void 0;(d||g)&&(w=e.getBoundingRect()),d&&(m=h?cd(t,p,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(b=h?cd(t,f,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),v&&(x=h||!e.__canvasFillPattern?xd(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=x),y&&(_=h||!e.__canvasStrokePattern?xd(t,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),d?t.fillStyle=m:v&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=b:y&&(_?t.strokeStyle=_:o=!1)}var S,M,O=e.getGlobalScale();c.setScale(O[0],O[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(S=(i=fd(e))[0],M=i[1]);var C=!0;(u||4&h)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),C=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),C&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=M),r||(n.strokeFirst?(o&&bd(t,n),a&&md(t,n)):(a&&md(t,n),o&&bd(t,n))),S&&t.setLineDash([])}(t,e,f,p),p&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof ro?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),Md(t,e,u,l,n),function(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||rn.a,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(r=fd(e))[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(gd(n)&&t.strokeText(i,n.x,n.y),yd(n)&&t.fillText(i,n.x,n.y)):(yd(n)&&t.fillText(i,n.x,n.y),gd(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}(t,e,f)):e instanceof so?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(t,e,n,r,i){Sd(t,Id(e,i.inHover),n&&Id(n,i.inHover),r,i)}(t,e,u,l,n),function(t,e,n){var r=e.__image=Dr(n.image,e.__image,e,e.onload);if(r&&Lr(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var h=a-(u=n.sx),p=s-(c=n.sy);t.drawImage(r,u,c,h,p,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}(t,e,f)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=r.length;o<a;o++){(c=r[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Ad(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c;(c=i[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Ad(t,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),p&&r&&Cd(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var Td=new Zf,Dd=new nn.a(100),Pd=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ld(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&Td.delete(t);var o=Td.get(t);if(o)return o;var a=Object(l.i)(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o=[n],s=!0,u=0;u<Pd.length;++u){var c=a[Pd[u]];if(null!=c&&!Object(l.t)(c)&&!Object(l.C)(c)&&!Object(l.z)(c)&&"boolean"!=typeof c){s=!1;break}o.push(c)}if(s){e=o.join(",")+(i?"-svg":"");var h=Dd.get(e);h&&(i?t.svgElement=h:t.image=h)}var p,f=function t(e){if(!e||0===e.length)return[[0,0]];if(Object(l.z)(e)){return[[o=Math.ceil(e),o]]}for(var n=!0,r=0;r<e.length;++r)if(!Object(l.z)(e[r])){n=!1;break}if(n)return t([e]);var i=[];for(r=0;r<e.length;++r)if(Object(l.z)(e[r])){var o=Math.ceil(e[r]);i.push([o,o])}else{(o=Object(l.H)(e[r],(function(t){return Math.ceil(t)}))).length%2==1?i.push(o.concat(o)):i.push(o)}return i}(a.dashArrayX),d=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(Object(l.z)(t)){var e=Math.ceil(t);return[e,e]}var n=Object(l.H)(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}(a.dashArrayY),g=function t(e){if(!e||0===e.length)return[["rect"]];if(Object(l.C)(e))return[[e]];for(var n=!0,r=0;r<e.length;++r)if(!Object(l.C)(e[r])){n=!1;break}if(n)return t([e]);var i=[];for(r=0;r<e.length;++r)Object(l.C)(e[r])?i.push([e[r]]):i.push(e[r]);return i}(a.symbol),v=(_=f,Object(l.H)(_,(function(t){return jd(t)}))),y=jd(d),m=!i&&rn.d.createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,n=v.length;e<n;++e)t=Xn(t,v[e]);var r=1;for(e=0,n=g.length;e<n;++e)r=Xn(r,g[e].length);t*=r;var i=y*v.length*g.length;0;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();var _;m&&(m.width=x.width*n,m.height=x.height*n,p=m.getContext("2d"));(function(){p&&(p.clearRect(0,0,m.width,m.height),a.backgroundColor&&(p.fillStyle=a.backgroundColor,p.fillRect(0,0,m.width,m.height)));for(var t=0,e=0;e<d.length;++e)t+=d[e];if(t<=0)return;var o=-y,s=0,l=0,u=0;for(;o<x.height;){if(s%2==0){for(var c=l/2%g.length,h=0,v=0,_=0;h<2*x.width;){var w=0;for(e=0;e<f[u].length;++e)w+=f[u][e];if(w<=0)break;if(v%2==0){var S=.5*(1-a.symbolSize),M=h+f[u][v]*S,O=o+d[s]*S,C=f[u][v]*a.symbolSize,I=d[s]*a.symbolSize,k=_/2%g[c].length;A(M,O,C,I,g[c][k])}h+=f[u][v],++_,++v===f[u].length&&(v=0)}++u===f.length&&(u=0)}o+=d[s],++l,++s===d.length&&(s=0)}function A(t,e,o,s,l){var u=i?1:n,c=ad(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var h=r.painter.renderOneToVNode(c);h&&b.children.push(h)}else kd(p,c)}})(),s&&Dd.put(e,m||b);t.image=m,t.svgElement=b,t.svgWidth=x.width,t.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,Td.set(t,s),t.dirty=!1,s}function jd(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var Ed=new k,Rd={};function Nd(t){return Rd[t]}var zd="undefined"!=typeof window,Bd={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},Vd="__pendingUpdate",Fd=/^[a-zA-Z0-9_]+$/;function Gd(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return Wd(this,t,e);dg(this.id)}}function Hd(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Wd(this,t,e)}}function Wd(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),k.prototype[e].apply(t,n)}var Ud,Yd,qd,Xd,$d,Zd,Kd,Qd,Jd,tg,eg,ng,rg,ig,og,ag,sg,lg,ug=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e}(k),cg=ug.prototype;cg.on=Hd("on"),cg.off=Hd("off");var hg=function(t){function e(e,n,r){var i=t.call(this,new Nf)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},Object(l.C)(n)&&(n=xg[n]),i._dom=e;var o=i._zr=kn(e,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Object(l.P)(r.useDirtyRect,!1),useCoarsePointer:Object(l.P)(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=nf(Object(l.c)(o.flush,o),17),(n=Object(l.d)(n))&&pu(n,!0),i._theme=n,i._locale=function(t){if(Object(l.C)(t)){var e=gs[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?Object(l.d)(e):Object(l.I)(Object(l.d)(e),Object(l.d)(gs.EN),!1)}return Object(l.I)(Object(l.d)(t),Object(l.d)(gs.EN),!1)}(r.locale||ys),i._coordSysMgr=new Wl;var a=i._api=og(i);function s(t,e){return t.__prio-e.__prio}return At(bg,s),At(yg,s),i._scheduler=new Df(i,a,yg,bg),i._messageCenter=new ug,i._initEvents(),i.resize=Object(l.c)(i.resize,i),o.animation.on("frame",i._onframe,i),tg(o,i),eg(o,i),Object(l.R)(i),i}return a(e,t),e.prototype._onframe=function(){if(!this._disposed){lg(this);var t=this._scheduler;if(this[Vd]){var e=this[Vd].silent;this.__flagInMainProcess=!0;try{Ud(this),Xd.update.call(this,null,this[Vd].updateParams)}catch(t){throw this.__flagInMainProcess=!1,this[Vd]=null,t}this._zr.flush(),this.__flagInMainProcess=!1,this[Vd]=null,Qd.call(this,e),Jd.call(this,e)}else if(t.unfinished){var n=1,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),Zd(this,r),t.performVisualTasks(r),ig(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&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+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),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;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&e.push(i)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered((function(t){return function t(e,n,r,i){var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)i=Math.max(t(s[l],n,r,i),i);else e.z=n,e.zlevel=r,i=Math.max(e.z2,i);o&&(o.z=n,o.zlevel=r,isFinite(i)&&(o.z2=i+2));if(a){var u=e.textGuideLineConfig;a.z=n,a.zlevel=r,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}(t,n,r,-1/0),!0}))}}function r(t,e){e.eachRendered((function(t){if(!Pa(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function i(t,n){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=r.get("duration"),a=o>0?{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;l<i.length;l++)i[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=br(t.type);0,(c=new(e?qc.getClass(h.main,h.sub):Jp.getClass(h.sub))).init(n,s),o[u]=c,i.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},qd=function(t,e,n,r,i){var o=t._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var u,c=n.excludeSeriesId;null!=c&&(u=Object(l.f)(),Object(l.k)(Zn(c),(function(t){var e=ir(t,null);null!=e&&u.set(e,!0)}))),o&&o.eachComponent(s,(function(e){if(!(u&&null!==u.get(e.id)))if(Ca(n))if(e instanceof Uc)"highlight"!==n.type||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var o=sr(i,e);o=(Object(l.t)(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),u=0;!a&&u<s;)a=i.getItemGraphicEl(u++);if(a){var c=Lo(a);pa(r,c.focus,c.blurScope,n)}else{var h=t.get(["emphasis","focus"]),p=t.get(["emphasis","blurScope"]);null!=h&&pa(r,h,p,n)}}}(e,n,t._api);else{var r=da(e.mainType,e.componentIndex,n.name,t._api),i=r.focusSelf,o=r.dispatchers;"highlight"===n.type&&i&&!n.notBlur&&fa(e.mainType,e.componentIndex,t._api),o&&Object(l.k)(o,(function(t){"highlight"===n.type?ia(t):oa(t)}))}else Oa(n)&&e instanceof Uc&&(!function(t,e,n){if(Oa(e)){var r=e.dataType,i=sr(t.getData(r),e);Object(l.t)(i)||(i=[i]),t["toggleSelect"===e.type?"toggleSelect":"select"===e.type?"select":"unselect"](i,r)}}(e,n,t._api),ga(e),sg(t))}),t),o&&o.eachComponent(s,(function(e){u&&null!==u.get(e.id)||h(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else Object(l.k)([].concat(t._componentsViews).concat(t._chartsViews),h);function h(r){r&&r.__alive&&r[e]&&r[e](r.__model,o,t._api,n)}},Xd={prepareAndUpdate:function(t){Ud(this),Xd.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,e),Zd(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e),ng(this,r,i,e,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),Ed.trigger("afterupdate",r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var o=[];r.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=Object(l.f)();r.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,r,i,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:a}),ig(this,r,i,e,{},a),Ed.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Jp.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),ng(this,n,this._api,e,{}),Ed.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries((function(t){t.getData().clearAllVisual()})),Jp.markUpdateMethod(e,"updateVisual"),t(r),this._scheduler.performVisualTasks(r,e,{visualType:"visual",setDirty:!0}),r.eachComponent((function(t,i){if("series"!==t){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,e)}})),r.eachSeries((function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)})),Ed.trigger("afterupdate",r,this._api))},updateLayout:function(t){Xd.update.call(this,t)}},$d=function(t,e,n,r){if(t._disposed)dg(t.id);else{for(var i,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=cr(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(i=u[e](o,s,r)))return i}0}},Zd=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries((function(t){r.updateStreamModes(t,n[t.__viewId])}))},Kd=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=gg[i],s=a.actionInfo,u=(s.update||"update").split(":"),c=u.pop(),h=null!=u[0]&&br(u[0]);this.__flagInMainProcess=!0;var p=[t],f=!1;t.batch&&(f=!0,p=Object(l.H)(t.batch,(function(e){return(e=Object(l.i)(Object(l.m)({},e),t)).batch=null,e})));var d,g=[],v=Oa(t),y=Ca(t);if(y&&ha(this._api),Object(l.k)(p,(function(e){if((d=(d=a.action(e,n._model,n._api))||Object(l.m)({},e)).type=s.event||d.type,g.push(d),y){var r=hr(t),i=r.queryOptionMap,o=r.mainTypeSpecified?i.keys()[0]:"series";qd(n,c,e,o),sg(n)}else v?(qd(n,c,e,"series"),sg(n)):h&&qd(n,c,e,h.main,h.sub)})),"none"!==c&&!y&&!v&&!h)try{this[Vd]?(Ud(this),Xd.update.call(this,t),this[Vd]=null):Xd[c].call(this,t)}catch(t){throw this.__flagInMainProcess=!1,t}if(d=f?{type:s.event||i,escapeConnect:o,batch:g}:g[0],this.__flagInMainProcess=!1,!e){var m=this._messageCenter;if(m.trigger(d.type,d),v){var b={type:"selectchanged",escapeConnect:o,selected:va(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};m.trigger(b.type,b)}}},Qd=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Kd.call(this,n,t)}},Jd=function(t){!t&&this.trigger("updated")},tg=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Vd]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},eg=function(t,e){t.on("mouseover",(function(t){var n=qf(t.target,Ma);n&&(!function(t,e,n){var r=Lo(t),i=da(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&fa(r.componentMainType,r.componentIndex,n),Object(l.k)(o,(function(t){return na(t,e)}))):(pa(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&fa(r.componentMainType,r.componentIndex,n),na(t,e))}(n,t,e._api),sg(e))})).on("mouseout",(function(t){var n=qf(t.target,Ma);n&&(!function(t,e,n){ha(n);var r=Lo(t),i=da(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?Object(l.k)(i,(function(t){return ra(t,e)})):ra(t,e)}(n,t,e._api),sg(e))})).on("click",(function(t){var n=qf(t.target,(function(t){return null!=Lo(t).dataIndex}),!0);if(n){var r=n.selected?"unselect":"select",i=Lo(n);e._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}}))},ng=function(t,e,n,r,i){!function(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})})),r){var i,o,a=e.concat(n);At(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(l.k)(a,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}(e),rg(t,e,n,r,i),Object(l.k)(t._chartsViews,(function(t){t.__alive=!1})),ig(t,e,n,r,i),Object(l.k)(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},rg=function(t,e,o,a,s,u){Object(l.k)(u||t._componentsViews,(function(t){var s=t.__model;r(s,t),t.render(s,e,o,a),n(s,t),i(s,t)}))},ig=function(t,e,o,a,u,c){var h=t._scheduler;u=Object(l.m)(u||{},{updatedSeries:e.getSeries()}),Ed.trigger("series:beforeupdate",e,o,u);var p=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;h.updatePayload(i,a),r(e,n),c&&c.get(e.uid)&&i.dirty(),i.perform(h.getPerformArgs(i))&&(p=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}(e,n),ga(e)})),h.unfinished=p||h.unfinished,Ed.trigger("series:layoutlabels",e,o,u),Ed.trigger("series:transition",e,o,u),e.eachSeries((function(e){var r=t._chartsMap[e.__viewId];n(e,r),i(e,r)})),function(t,e){var n=t._zr.storage,r=0;n.traverse((function(t){t.isGroup||r++})),r>e.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<t.length;n++){t[n].__connectUpdateStatus=e}}Object(l.k)(vg,(function(n,r){t._messageCenter.on(r,(function(n){if(Sg[t.group]&&0!==t.__connectUpdateStatus){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];Object(l.k)(wg,(function(e){e!==t&&e.group===t.group&&i.push(e)})),e(i,0),Object(l.k)(i,(function(t){1!==t.__connectUpdateStatus&&t.dispatchAction(r)})),e(i,2)}}))}))}}(),e}(k),pg=hg.prototype;pg.on=Gd("on"),pg.off=Gd("off"),pg.one=function(t,e,n){var r=this;jl(),this.on.call(this,t,(function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,n)}),n)};var fg=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function dg(t){0}var gg={},vg={},yg=[],mg=[],bg=[],xg={},_g={},wg={},Sg={},Mg=+new Date-0,Og=(new Date,"_echarts_instance_");function Cg(t,e,n){var r=!(n&&n.ssr);if(r){0;var i=Ig(t);if(i)return i;0}var o=new hg(t,e,n);return o.id="ec_"+Mg++,wg[o.id]=o,r&&gr(t,Og,o.id),ag(o),Ed.trigger("afterinit",o),o}function Ig(t){return wg[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,Og)]}function kg(t,e){xg[t]=e}function Ag(t){Object(l.r)(mg,t)<0&&mg.push(t)}function Tg(t,e){Eg(yg,t,e,2e3)}function Dg(t,e){Ed.on(t,e)}function Pg(t,e,n){Object(l.w)(e)&&(n=e,e="");var r=Object(l.A)(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,vg[e]||(Object(l.b)(Fd.test(r)&&Fd.test(e)),gg[r]||(gg[r]={action:n,actionInfo:t}),vg[e]=r)}function Lg(t,e){Eg(bg,t,e,3e3,"visual")}var jg=[];function Eg(t,e,n,r,i){if((Object(l.w)(e)||Object(l.A)(e))&&(n=e,e=r),!(Object(l.r)(jg,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 m<b?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(b))}function Xg(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,h=r-e,p=Math.sqrt(c*c+h*h),f=(l*(c/=p)+u*(h/=p))/p;s&&(f=Math.min(Math.max(f,0),1)),f*=p;var d=a[0]=t+f*c,g=a[1]=e+f*h;return Math.sqrt((d-i)*(d-i)+(g-o)*(g-o))}function $g(t,e,n,r,i,o,a){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r);var s=t+n,l=e+r,u=a[0]=Math.min(Math.max(i,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}var Zg=[];function Kg(t,e,n){var r=$g(e.x,e.y,e.width,e.height,t.x,t.y,Zg);return n.set(Zg[0],Zg[1]),r}function Qg(t,e,n){for(var r,i,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,p=t.y,f=0;f<c.length;){var d=c[f++];1===f&&(s=o=c[f],l=a=c[f+1]);var g=u;switch(d){case Wg.M:o=s=c[f++],a=l=c[f++];break;case Wg.L:g=Xg(o,a,c[f],c[f+1],h,p,Zg,!0),o=c[f++],a=c[f++];break;case Wg.C:g=Zt(o,a,c[f++],c[f++],c[f++],c[f++],c[f],c[f+1],h,p,Zg),o=c[f++],a=c[f++];break;case Wg.Q:g=ne(o,a,c[f++],c[f++],c[f],c[f+1],h,p,Zg),o=c[f++],a=c[f++];break;case Wg.A:var v=c[f++],y=c[f++],m=c[f++],b=c[f++],x=c[f++],_=c[f++];f+=1;var w=!!(1-c[f++]);r=Math.cos(x)*m+v,i=Math.sin(x)*b+y,f<=1&&(s=r,l=i),g=qg(v,y,b,x,x+_,w,(h-v)*b/m+v,p,Zg),o=Math.cos(x+_)*m+v,a=Math.sin(x+_)*b+y;break;case Wg.R:g=$g(s=o=c[f++],l=a=c[f++],c[f++],c[f++],h,p,Zg);break;case Wg.Z:g=Xg(o,a,s,l,h,p,Zg,!0),o=s,a=l}g<u&&(u=g,n.set(Zg[0],Zg[1]))}return u}var Jg=new it,tv=new it,ev=new it,nv=new it,rv=new it;function iv(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var i=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||Ug,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=t.getComputedTransform(),h=c&&rt([],c),p=e.get("length2")||0;u&&ev.copy(u);for(var f=0;f<a.length;f++){Yg(a[f],0,s,Jg,nv),it.scaleAndAdd(tv,Jg,nv,p),tv.transform(h);var d=t.getBoundingRect(),g=u?u.distance(tv):t instanceof to?Qg(tv,t.path,ev):Kg(tv,d,ev);g<l&&(l=g,tv.transform(c),ev.transform(c),ev.toArray(o[0]),tv.toArray(o[1]),Jg.toArray(o[2]))}sv(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var ov=[],av=new it;function sv(t,e){if(e<=180&&e>0){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)<i){var o=Xg(tv.x,tv.y,ev.x,ev.y,Jg.x,Jg.y,ov,!1);av.fromArray(ov),av.scaleAndAdd(rv,o/Math.tan(Math.PI-e));var a=ev.x!==tv.x?(av.x-tv.x)/(ev.x-tv.x):(av.y-tv.y)/(ev.y-tv.y);if(isNaN(a))return;a<0?it.copy(av,tv):a>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)<Math.cos(n)){var o=Xg(tv.x,tv.y,ev.x,ev.y,Jg.x,Jg.y,ov,!1);av.fromArray(ov);var a=Math.PI/2,s=a+Math.acos(rv.dot(e))-n;if(s>=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;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}function hv(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var o=e.normal,a=o.get("show"),s=i.ignore,u=0;u<Vo.length;u++){var c=Vo[u],h=e[c],p="normal"===c;if(h){var f=h.get("show");if((p?s:Object(l.P)(i.states[c]&&i.states[c].ignore,s))||!Object(l.P)(f,a)){var d=p?r:r&&r.states[c];d&&(d.ignore=!0);continue}r||(r=new Uh,t.setTextGuideLine(r),p||!s&&a||uv(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),uv(r,!1,c,h)}}if(r){Object(l.i)(r.style,n),r.style.fill=null;var g=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=g||!1,r.buildPath=cv}}else r&&t.removeTextGuideLine()}function pv(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Bo.length;r++){var i=Bo[r];n[i]=t.getModel([i,e])}return n}function fv(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new pp(a,o):null;e.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return e}function dv(t,e,n,r,i,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,c=[],h=0,p=0;p<a;p++){var f=t[p],d=f.rect;(s=d[e]-l)<0&&(d[e]-=s,f.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=d[e]+d[n]}h>0&&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;o<i;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function S(r,i){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<a-1;l++){w(o[l]*h,0,l+1)}else for(l=a-1;l>0;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;r<a-1;r++)if(e>0?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<t.length;i++){var o=t[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,p=!1,f=0;f<e.length;f++){var d=e[f];if(n.intersect(d.rect)){if(a&&d.axisAligned){p=!0;break}if(d.obb||(d.obb=new pp(d.localRect,d.transform)),h||(h=new pp(s,l)),h.intersect(d.obb)){p=!0;break}}}p?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function yv(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function mv(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:yv(r&&r.shape.points)}}var bv=["align","verticalAlign","width","height","fontSize"],xv=new en,_v=lr(),wv=lr();function Sv(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null!=e[i]&&(t[i]=e[i])}}var Mv=["x","y","rotation"],Ov=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,r,i){var o=r.style,a=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),l=r.getBoundingRect().plain();ft.applyTransform(l,l,s),s?xv.setLocalTransform(s):(xv.x=xv.y=xv.rotation=xv.originX=xv.originY=0,xv.scaleX=xv.scaleY=1);var u,c=r.__hostTarget;if(c){u=c.getBoundingRect().plain();var h=c.getComputedTransform();ft.applyTransform(u,u,h)}var p=u&&c.getTextGuideLine();this._labelList.push({label:r,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:l,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:p&&p.ignore,x:xv.x,y:xv.y,scaleX:xv.scaleX,scaleY:xv.scaleY,rotation:xv.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:a.position,attachedRot:a.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,r=n.get("labelLayout");(Object(l.w)(r)||Object(l.F)(r).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var i=t.getTextContent(),o=Lo(t);i&&!i.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,i,r)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function r(t,e){return function(){iv(t,e)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],a=o.label,s=a.__hostTarget,u=o.defaultAttr,c=void 0;c=(c=Object(l.w)(o.layoutOption)?o.layoutOption(mv(o,s)):o.layoutOption)||{},o.computedLayoutOption=c;var h=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=c.x||null!=c.y?null:u.attachedPos,rotation:null!=c.rotate?c.rotate*h:u.attachedRot,offset:[c.dx||0,c.dy||0]});var p=!1;if(null!=c.x?(a.x=Tn(c.x,e),a.setStyle("x",0),p=!0):(a.x=u.x,a.setStyle("x",u.style.x)),null!=c.y?(a.y=Tn(c.y,n),a.setStyle("y",0),p=!0):(a.y=u.y,a.setStyle("y",u.style.y)),c.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:c.labelLinePoints}),p=!1)}_v(a).needsUpdateLabelLine=p,a.rotation=null!=c.rotate?c.rotate*h:u.rotation,a.scaleX=u.scaleX,a.scaleY=u.scaleY;for(var d=0;d<bv.length;d++){var g=bv[d];a.setStyle(g,null!=c[g]?c[g]:u.style[g])}if(c.draggable){if(a.draggable=!0,a.cursor="move",s){var v=o.seriesModel;if(null!=o.dataIndex)v=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);a.on("drag",r(s,v.getModel("labelLine")))}}else a.off("drag"),a.cursor=u.cursor}},t.prototype.layout=function(t){var e,n=t.getWidth(),r=t.getHeight(),i=fv(this._labelList),o=Object(l.n)(i,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),a=Object(l.n)(i,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));dv(o,"x","width",0,n,e),gv(a,0,r),vv(Object(l.n)(i,(function(t){return t.layoutOption.hideOverlap})))},t.prototype.processLabelsOverall=function(){var t=this;Object(l.k)(this._chartViewList,(function(e){var n=e.__model,r=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!r,a=e.getTextContent();!o&&a&&(o=_v(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),i&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),r=Lo(t),i=r.dataIndex;if(n&&null!=i){var o=e.getData(r.dataType),a=o.getItemModel(i),s={},l=o.getItemVisual(i,"style"),u=o.getVisual("drawType");s.stroke=l[u];var c=a.getModel("labelLine");hv(t,pv(a),s),iv(t,c)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),r=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Pa(t))){var i=(d=_v(n)).oldLayout,o=Lo(t),a=o.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(o.dataType);if(i){n.attr(i);var c=t.prevStates;c&&(Object(l.r)(c,"select")>=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<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new ft(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var p=t.width*t.height,f=c.width*c.height,d=l.width*l.height-p-f;d<r&&(r=d,i=u)}}if(s&&(o[i].union(t),n=!0),!n)(e=new ft(0,0,0,0)).copy(t),o.push(e);s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){if(f=t[c]){var h=f.shouldBePainted(n,r,!0,!0);(d=f.__isRendered&&(1&f.__dirty||!h)?f.getPrevPaintRect():null)&&u(d);var p=h&&(1&f.__dirty||!f.__isRendered)?f.getPaintRect():null;p&&u(p)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var f,d;h=(f=e[c]).shouldBePainted(n,r,!0,!0);if(f&&(!h||!f.__zr)&&f.__isRendered)(d=f.getPrevPaintRect())&&u(d)}do{i=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;e=e||this.clearColor;var s=this.motionBlur&&!t,u=this.lastFrameAlpha,c=this.dpr,h=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/c,a/c));var p=this.domBack;function f(t,n,r,o){if(i.clearRect(t,n,r,o),e&&"transparent"!==e){var a=void 0;l.x(e)?(a=e.__canvasGradient||cd(i,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=a):l.y(e)&&(e.scaleX=e.scaleX||c,e.scaleY=e.scaleY||c,a=xd(i,e,{dirty:function(){h.setUnpainted(),h.__painter.refresh()}})),i.save(),i.fillStyle=a||e,i.fillRect(t,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=u,i.drawImage(p,t,n,r,o),i.restore())}!n||s?f(0,0,o,a):n.length&&l.k(n,(function(t){f(t.x*c,t.y*c,t.width*c,t.height*c)}))},e}(k);var Tv=function(){function t(t,e,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=l.m({},n||{}),this.dpr=n.devicePixelRatio||Ue,this._singleCanvas=i,this.root=t,t.style&&(l.j(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=t,u=s.width,c=s.height;null!=n.width&&(u=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,s.width=u*this.dpr,s.height=c*this.dpr,this._width=u,this._height=c;var h=new Av(s,this,this.dpr);h.__builtin__=!0,h.initContext(),a[314159]=h,h.zlevel=314159,o.push(314159),this._domRoot=t}else{this._width=pd(t,0,n),this._height=pd(t,1,n);var p=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(p)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(1e5)),r||(r=n.ctx).save(),Ad(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(t,e){kd(t,e)},t.prototype._paintList=function(t,e,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;jt((function(){s._paintList(t,e,n,r)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(314159).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var u=this._zlevelList[a],c=this._layers[u];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||n)&&i.push(c)}for(var h=!0,p=!1,f=function(a){var s,l=i[a],u=l.ctx,c=o&&l.createRepaintRects(t,e,d._width,d._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),y=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,c);else if(f===l.__startIndex){var m=t[f];m.incremental&&m.notClear&&!n||l.clear(!1,y,c)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var b=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=t[s];if(i.__inHover&&(p=!0),r._doPaintEl(i,l,o,e,n,s===l.__endIndex-1),g)if(Date.now()-v>15)break}n.prevElClipPaths&&u.restore()};if(c)if(0===c.length)s=l.__endIndex;else for(var x=d.dpr,_=0;_<c.length;++_){var w=c[_];u.save(),u.beginPath(),u.rect(w.x*x,w.y*x,w.width*x,w.height*x),u.clip(),b(w),u.restore()}else u.save(),b(),u.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(h=!1)},d=this,g=0;g<i.length;g++)f(g);return s.a.wxa&&l.k(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:h,needsRefreshHover:p}},t.prototype._doPaintEl=function(t,e,n,r,i,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!r||s&&s.intersect(r))&&(Ad(a,t,i,o),t.setPrevPaintRect(s))}else Ad(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=314159);var n=this._layers[t];return n||((n=new Av("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?l.I(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&l.I(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(i>0&&t>r[0]){for(s=0;s<i-1&&!(r[s]<t&&r[s+1]>t);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;r<n.length;r++){var i=n[r];t.call(e,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var r,i,o=null,a=0;for(i=0;i<t.length;i++){var s,u=(s=t[i]).zlevel,c=void 0;r!==u&&(r=u,a=0),s.incremental?((c=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,a=1):c=this.getLayer(u+(a>0?.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<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===t||i===t+.01){var o=this._layers[i];l.I(o,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],n.splice(l.r(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=pd(i,0,r),e=pd(i,1,r),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(314159).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new Av("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,i=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];Ad(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();var Dv=Math.sin,Pv=Math.cos,Lv=Math.PI,jv=2*Math.PI,Ev=180/Lv,Rv=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){this._add("C",t,e,n,r,i,o)},t.prototype.quadraticCurveTo=function(t,e,n,r){this._add("Q",t,e,n,r)},t.prototype.arc=function(t,e,n,r,i,o){this.ellipse(t,e,n,n,0,r,i,o)},t.prototype.ellipse=function(t,e,n,r,i,o,a,s){var l=a-o,u=!s,c=Math.abs(l),h=Object(le.j)(c-jv)||(u?l>=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<arguments.length;h++){var p=arguments[h];if(isNaN(p))return void(this._invalid=!0);u.push(Math.round(p*c)/c)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),Nv=Math.round;var zv=["lineCap","miterLimit","lineJoin"],Bv=Object(l.H)(zv,(function(t){return"stroke-"+t.toLowerCase()}));var Vv="http://www.w3.org/2000/svg",Fv="http://www.w3.org/1999/xlink";function Gv(t){return document.createElementNS(Vv,t)}function Hv(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function Wv(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var r=e.children,i=e.tag;return function(t,e){var n=[];if(e)for(var r in e){var i=e[r],o=r;!1!==i&&(!0!==i&&null!=i&&(o+='="'+i+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(i,e.attrs)+N(e.text)+(r?""+n+Object(l.H)(r,(function(e){return t(e)})).join(n)+n:"")+("</"+i+">")}(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;u<o;u++){var c=i[u],h=[c.getMaxTime()/1e3+"s"],p=Qv(c.getClip().easing),f=c.getDelay();p?h.push(p):h.push("linear"),f&&h.push(f/1e3+"s"),c.getLoop()&&h.push("infinite");var d=h.join(" ");s[d]=s[d]||[d,[]],s[d][1].push(c)}function g(i){var o,a=i[1],s=a.length,u={},c={},h={};function p(t,e,n){for(var r=t.getTracks(),i=t.getMaxTime(),o=0;o<r.length;o++){var a=r[o];if(a.needsAnimate()){var s=a.keyframes,u=a.propName;if(n&&(u=n(u)),u)for(var c=0;c<s.length;c++){var h=s[c],p=Math.round(h.time/i*100)+"%",f=Qv(h.easing),d=h.rawValue;(Object(l.C)(d)||Object(l.z)(d))&&(e[p]=e[p]||{},e[p][u]=h.rawValue,f&&(e[p]["animation-timing-function"]=f))}}}}for(var f=0;f<s;f++){(S=(w=a[f]).targetName)?"shape"===S&&p(w,c):!r&&p(w,u)}for(var d in u){var g={};tn(g,t),Object(l.m)(g,u[d]);var v=Object(le.g)(g),y=u[d]["animation-timing-function"];h[d]=v?{transform:v}:{},$v(h[d],g),y&&(h[d]["animation-timing-function"]=y)}var m=!0;for(var d in c){h[d]=h[d]||{};var b=!o;y=c[d]["animation-timing-function"];b&&(o=new ji);var x=o.len();o.reset(),h[d].d=Xv(t,c[d],o);var _=o.len();if(!b&&x!==_){m=!1;break}y&&(h[d]["animation-timing-function"]=y)}if(!m)for(var d in h)delete h[d].d;if(!r)for(f=0;f<s;f++){var w,S;"style"===(S=(w=a[f]).targetName)&&p(w,h,(function(t){return Zv[t]}))}var M,O=Object(l.F)(h),C=!0;for(f=1;f<O.length;f++){var I=O[f-1],k=O[f];if(h[I]["transform-origin"]!==h[k]["transform-origin"]){C=!1;break}M=h[I]["transform-origin"]}if(C&&M){for(var d in h)h[d]["transform-origin"]&&delete h[d]["transform-origin"];e["transform-origin"]=M}if(Object(l.n)(O,(function(t){return Object(l.F)(h[t]).length>0})).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;g<zv.length;g++){var v=zv[g];if(r||e[v]!==Ki[v]){var y=e[v]||Ki[v];y&&t(Bv[g],y)}}}else r&&t("stroke","none")}}((function(i,o){var a="fill"===i||"stroke"===i;a&&Object(le.k)(o)?function(t,e,n,r){var i,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(le.m)(o))i="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!Object(le.o)(o))return void 0;i="radialGradient",a.cx=Object(l.P)(o.x,.5),a.cy=Object(l.P)(o.y,.5),a.r=Object(l.P)(o.r,.5)}for(var s=o.colorStops,u=[],c=0,h=s.length;c<h;++c){var p=100*Object(le.q)(s[c].offset)+"%",f=s[c].color,d=Object(le.p)(f),g=d.color,v=d.opacity,y={offset:p};y["stop-color"]=g,v<1&&(y["stop-opacity"]=v),u.push(Hv("stop",c+"",y))}var m=Wv(Hv(i,"",a,u)),b=r.gradientCache,x=b[m];x||(x=r.zrId+"-g"+r.gradientIdx++,b[m]=x,a.id=x,r.defs[x]=Hv(i,x,a,u));e[n]=Object(le.d)(x)}(e,t,i,r):a&&Object(le.n)(o)?function(t,e,n,r){var i,o=t.style[n],a={patternUnits:"userSpaceOnUse"};if(Object(le.l)(o)){var s=o.imageWidth,u=o.imageHeight,c=void 0,h=o.image;if(Object(l.C)(h)?c=h:ey(h)?c=h.src:ny(h)&&(c=h.toDataURL()),"undefined"==typeof Image){var p="Image width/height must been given explictly in svg-ssr renderer.";Object(l.b)(s,p),Object(l.b)(u,p)}else if(null==s||null==u){var f=function(t,e){if(t){var n=t.elm,r=t.attrs.width=s||e.width,i=t.attrs.height=u||e.height;n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},d=Dr(c,null,t,(function(t){f(g,t),f(i,t)}));d&&d.width&&d.height&&(s=s||d.width,u=u||d.height)}i=Hv("image","img",{href:c,width:s,height:u}),a.width=s,a.height=u}else o.svgElement&&(i=Object(l.d)(o.svgElement),a.width=o.svgWidth,a.height=o.svgHeight);if(!i)return;a.patternTransform=Object(le.g)(o);var g=Hv("pattern","",a,[i]),v=Wv(g),y=r.patternCache,m=y[v];m||(m=r.zrId+"-p"+r.patternIdx++,y[v]=m,a.id=m,g=r.defs[m]=Hv("pattern",m,a,[i]));e[n]=Object(le.d)(m)}(n,t,i,r):t[i]=o}),e,n,!1),function(t,e,n){var r=t.style;if(Object(le.i)(r)){var i=Object(le.h)(t),o=n.shadowCache,a=o[i];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,h=r.shadowOffsetY||0,p=r.shadowBlur,f=Object(le.p)(r.shadowColor),d=f.opacity,g=f.color,v=p/2/l+" "+p/2/u;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=Hv("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Hv("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:v,"flood-color":g,"flood-opacity":d})]),o[i]=a}e.filter=Object(le.d)(a)}}(n,t,r)}function iy(t){return Object(le.j)(t[0]-1)&&Object(le.j)(t[1])&&Object(le.j)(t[2])&&Object(le.j)(t[3]-1)}function oy(t,e,n){if(e&&(!function(t){return Object(le.j)(t[4])&&Object(le.j)(t[5])}(e)||!iy(e))){var r=n?10:1e4;t.transform=iy(e)?"translate("+ty(e[4]*r)/r+" "+ty(e[5]*r)/r+")":Object(le.e)(e)}}function ay(t,e,n){for(var r=t.points,i=[],o=0;o<r.length;o++)i.push(ty(r[o][0]*n)/n),i.push(ty(r[o][1]*n)/n);e.points=i.join(" ")}function sy(t){return!t.smooth}var ly,uy,cy={circle:[(ly=["cx","cy","r"],uy=Object(l.H)(ly,(function(t){return"string"==typeof t?[t,t]:t})),function(t,e,n){for(var r=0;r<uy.length;r++){var i=uy[r],o=t[i[0]];null!=o&&(e[i[1]]=ty(o*n)/n)}})],polyline:[ay,sy],polygon:[ay,sy]};function hy(t,e){var n=t.style,r=t.shape,i=cy[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&Object(le.f)(t)||4;if(!i||e.willUpdate||i[1]&&!i[1](r)||a&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}(t)||l<1){t.path||t.createPathProxy();var c=t.path;t.shapeChanged()&&(c.beginPath(),t.buildPath(c,t.shape),t.pathUpdated());var h=c.getVersion(),p=t,f=p.__svgPathBuilder;p.__svgPathVersion===h&&f&&l===p.__svgPathStrokePercent||(f||(f=p.__svgPathBuilder=new Rv),f.reset(u),c.rebuildPath(f,l),f.generateStr(),p.__svgPathVersion=h,p.__svgPathStrokePercent=l),o.d=f.getStr()}else{s=t.type;var d=Math.pow(10,u);i[0](r,o,d)}return oy(o,t.transform),ry(o,n,t,e),e.animation&&Jv(t,o,e),Hv(s,t.id+"",o)}function py(t,e){return t instanceof to?hy(t,e):t instanceof so?function(t,e){var n=t.style,r=n.image;if(r&&!Object(l.C)(r)&&(ey(r)?r=r.src:ny(r)&&(r=r.toDataURL())),r){var i=n.x||0,o=n.y||0,a={href:r,width:n.width,height:n.height};return i&&(a.x=i),o&&(a.y=o),oy(a,t.transform),ry(a,n,t,e),e.animation&&Jv(t,a,e),Hv("image",t.id+"",a)}}(t,e):t instanceof ro?function(t,e){var n=t.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||rn.a,o=n.x||0,a=Object(le.b)(n.y||0,hn(i),n.textBaseline),s={"dominant-baseline":"central","text-anchor":le.a[n.textAlign]||n.textAlign};if(Oo(n)){var l="",u=n.fontStyle,c=So(n.fontSize);if(!parseFloat(c))return;var h=n.fontFamily||rn.b,p=n.fontWeight;l+="font-size:"+c+";font-family:"+h+";",u&&"normal"!==u&&(l+="font-style:"+u+";"),p&&"normal"!==p&&(l+="font-weight:"+p+";"),s.style=l}else s.style="font: "+i;return r.match(/\s/)&&(s["xml:space"]="preserve"),o&&(s.x=o),a&&(s.y=a),oy(s,t.transform),ry(s,n,t,e),e.animation&&Jv(t,s,e),Hv("text",t.id+"",s,void 0,r)}}(t,e):void 0}function fy(t,e,n){var r=n.clipPathCache,i=n.defs,o=r[t.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};r[t.id]=o,i[o]=Hv("clipPath",o,a,[hy(t,n)])}e["clip-path"]=Object(le.d)(o)}function dy(t){return document.createTextNode(t)}function gy(t,e,n){t.insertBefore(e,n)}function vy(t,e){t.removeChild(e)}function yy(t,e){t.appendChild(e)}function my(t){return t.parentNode}function by(t){return t.nextSibling}function xy(t,e){t.textContent=e}var _y=Hv("","");function wy(t){return void 0===t}function Sy(t){return void 0!==t}function My(t,e,n){for(var r={},i=e;i<=n;++i){var o=t[i].key;void 0!==o&&(r[o]=i)}return r}function Oy(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function Cy(t){var e,n=t.children,r=t.tag;if(Sy(r)){var i=t.elm=Gv(r);if(Ay(_y,t),Object(l.t)(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&yy(i,Cy(o))}else Sy(t.text)&&!Object(l.A)(t.text)&&yy(i,dy(t.text))}else t.elm=dy(t.text);return t.elm}function Iy(t,e,n,r,i){for(;r<=i;++r){var o=n[r];null!=o&&gy(t,Cy(o),e)}}function ky(t,e,n,r){for(;n<=r;++n){var i=e[n];if(null!=i)if(Sy(i.tag))vy(my(i.elm),i.elm);else vy(t,i.elm)}}function Ay(t,e){var n,r=e.elm,i=t&&t.attrs||{},o=e.attrs||{};if(i!==o){for(n in o){var a=o[n];i[n]!==a&&(!0===a?r.setAttribute(n,""):!1===a?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS("http://www.w3.org/2000/xmlns/",n,a):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?r.setAttributeNS(Fv,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function Ty(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(Ay(t,e),wy(e.text)?Sy(r)&&Sy(i)?r!==i&&function(t,e,n){for(var r,i,o,a=0,s=0,l=e.length-1,u=e[0],c=e[l],h=n.length-1,p=n[0],f=n[h];a<=l&&s<=h;)null==u?u=e[++a]:null==c?c=e[--l]:null==p?p=n[++s]:null==f?f=n[--h]:Oy(u,p)?(Ty(u,p),u=e[++a],p=n[++s]):Oy(c,f)?(Ty(c,f),c=e[--l],f=n[--h]):Oy(u,f)?(Ty(u,f),gy(t,u.elm,by(c.elm)),u=e[++a],f=n[--h]):Oy(c,p)?(Ty(c,p),gy(t,c.elm,u.elm),c=e[--l],p=n[++s]):(wy(r)&&(r=My(e,a,l)),wy(i=r[p.key])||(o=e[i]).tag!==p.tag?gy(t,Cy(p),u.elm):(Ty(o,p),e[i]=void 0,gy(t,o.elm,u.elm)),p=n[++s]);(a<=l||s<=h)&&(a>l?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?["<![CDATA[",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<o;u++){var c=t[u];if(!c.invisible){var h=c.__clipPaths,p=h&&h.length||0,f=i&&i.length||0,d=void 0;for(d=Math.max(p-1,f-1);d>=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;v<p;v++){var y={};fy(h[v],y,e);var m=Hv("g","clip-g-"+l++,y,[]);(r?r.children:n).push(m),a[s++]=m,r=m}i=h;var b=py(c,e);b&&(r?r.children:n).push(b)}}},t.prototype.resize=function(t,e){var n=this._opts,r=this.root,i=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),r&&i&&(i.style.display="none",t=pd(r,0,n),e=pd(r,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e))}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=encodeURIComponent(this.renderToString()),n="data:image/svg+xml;";return t?(e=Object(le.c)(e))&&n+"base64,"+e:n+"charset=UTF-8,"+e},t}();function Ly(t){return null==t?0:t.length||1}function jy(t){return t}var Ey=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||jy,this._newKeyGetter=r||jy,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=r[o],s=n[a],l=Ly(s);if(l>1){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;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=Ly(l),h=Ly(u);if(c>1&&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;p<c;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],o=Ly(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[r](t[o],o);if(i||(n[o]=a),e){var s=e[a],l=Ly(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),Ry=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function Ny(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function zy(t){return"category"===t?"ordinal":"time"===t?"time":"float"}var By=function(t){this.otherDims={},null!=t&&l.m(this,t)},Vy=lr(),Fy={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Gy=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Uy(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(l.P)(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Cu(this.source),n=!Yy(t),r="",i=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=Fy[l]||"f",u&&(r+=u.uid),r+="$"}var p=this.source;return{dimensions:i,hash:[p.seriesLayoutBy,p.startIndex,r].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(e);o&&(r=o.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function Hy(t){return t instanceof Gy}function Wy(t){for(var e=Object(l.f)(),n=0;n<(t||[]).length;n++){var r=t[n],i=Object(l.A)(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function Uy(t){var e=Vy(t);return e.dimNameMap||(e.dimNameMap=Wy(t.dimensionsDefine))}function Yy(t){return t>30}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<n.length;c++){var h=n[c],p=l.C(h)?new By({name:h}):h instanceof By?h:new By(h),f=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=f,p.coordDimIndex=0);var d=p.otherDims=p.otherDims||{};o.push(f),i[f]=p,null!=u[f]&&(s=!0),p.createInvertedIndices&&(a[f]=[]),0===d.itemName&&(this._nameDimIdx=c),0===d.itemId&&(this._idDimIdx=c),r&&(p.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=l.f();l.k(o,(function(t){g.set(i[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(l.z(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i=this;if(t instanceof gc&&(r=t),!r){var o=this.dimensions,a=xu(t)||l.u(t)?new Iu(t,o.length):t;r=new gc;var s=em(o,(function(t){return{type:i._dimInfos[t].type,property:t}}));r.initData(a,s,n)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(t,e){var n={},r=n.encode={},i=Object(l.f)(),o=[],a=[],s={};Object(l.k)(t.dimensions,(function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){0;var c=l.coordDimIndex;Ny(r,u)[c]=e,l.isExtraCoord||(i.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),Ny(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}gl.each((function(t,e){var n=Ny(r,e),i=l.otherDims[e];null!=i&&!1!==i&&(n[i]=l.name)}))}));var u=[],c={};i.each((function(t,e){var n=r[e];c[e]=n[0],u=u.concat(n)})),n.dataDimsOnCoord=u,n.dataDimIndicesOnCoord=Object(l.H)(u,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=c;var h=r.label;h&&h.length&&(o=h.slice());var p=r.tooltip;return p&&p.length?a=p.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new Ry(s,e),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=e[s],o&&Jy(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&"typedArray"!==t.getSource().sourceFormat&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=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;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&tr(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[a]&&null!=l&&(r[a]=ir(l,null));var u=s.id;null==i[a]&&null!=u&&(i[a]=ir(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)Jy(this,a);qy(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){tm(t)?l.m(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=$y(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return Xy(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return l.t(t)?r.getValues(em(t,(function(t){return n._getStoreDimIndex(t)})),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=(t&&this._invertedIndicesMap[t])[e];return null==n||isNaN(n)?-1:n},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){l.w(t)&&(n=e,e=t,t=[]);var r=n||this,i=em(Zy(t),this._getStoreDimIndex,this);this._store.each(i,r?l.c(e,r):e)},t.prototype.filterSelf=function(t,e,n){l.w(t)&&(n=e,e=t,t=[]);var r=n||this,i=em(Zy(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?l.c(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={},r=l.F(t),i=[];return l.k(r,(function(r){var o=e._getStoreDimIndex(r);n[o]=t[r],i.push(o)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){l.w(t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=em(Zy(t),this._getStoreDimIndex,this),a=Qy(this);return a._store=this._store.map(o,i?l.c(e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=n||r||this;var o=em(Zy(t),this._getStoreDimIndex,this);this._store.modify(o,i?l.c(e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=Qy(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.lttbDownSample=function(t,e){var n=Qy(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new hs(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new Ey(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return Xy(t,e)}),(function(t){return Xy(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},tm(t)?l.m(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},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;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},$y=function(t,e,n){return ir(t._getCategory(e,n),null)},Xy=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=$y(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},Zy=function(t){return l.t(t)||(t=null!=t?[t]:[]),t},Qy=function(e){var n=new t(e._schema?e._schema:em(e.dimensions,e._getDimInfo,e),e.hostModel);return Ky(n,e),n},Ky=function(t,e){l.k(rm.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,l.k(im,(function(n){t[n]=l.d(e[n])})),t._calculationInfo=l.m({},e._calculationInfo)},void(Jy=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=r[e];if(null==a&&null!=i&&(n[e]=a=$y(t,i,e)),null==s&&null!=o&&(r[e]=s=$y(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(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;d<f.length;d++)f[d]=-1;function g(t){var e=f[t];if(e<0){var n=r[t],i=Object(l.A)(n)?n:{name:n},a=new By,s=i.name;null!=s&&null!=c.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var u=o.length;return f[t]=u,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(d=0;d<a;d++)g(d);p.each((function(t,e){var n=Zn(t).slice();if(1===n.length&&!Object(l.C)(n[0])&&n[0]<0)p.set(e,!1);else{var r=p.set(e,[]);Object(l.k)(n,(function(t,n){var i=Object(l.C)(t)?c.get(t):t;null!=i&&i<a&&(r[n]=i,y(g(i),e,n))}))}}));var v=0;function y(t,e,n){null!=gl.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,i.set(e,!0))}Object(l.k)(n,(function(t){var e,n,r,i;if(Object(l.C)(t))e=t,i={};else{e=(i=t).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=Object(l.m)({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=p.get(e);if(!1!==s){if(!(s=Zn(s)).length)for(var c=0;c<(n&&n.length||1);c++){for(;v<a&&null!=g(v).coordDim;)v++;v<a&&s.push(v++)}Object(l.k)(s,(function(t,o){var a=g(t);if(u&&null!=i.type&&(a.type=i.type),y(Object(l.i)(a,i),e,o),null==a.name&&n){var s=n[o];!Object(l.A)(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&Object(l.i)(a.otherDims,r)}))}}));var m=e.generateCoord,b=e.generateCoordCount,x=null!=b;b=m?b||1:0;var _=m||"value";function w(t){null==t.name&&(t.name=t.coordDim)}if(s)Object(l.k)(o,(function(t){w(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var S=0;S<a;S++){var M=g(S);null==M.coordDim&&(M.coordDim=sm(_,i,x),M.coordDimIndex=0,(!m||b<=0)&&(M.isExtraCoord=!0),b--),w(M),null!=M.type||Sl(t,S)!==vl&&(!M.isExtraCoord||null==M.otherDims.itemName&&null==M.otherDims.seriesName)||(M.type="ordinal")}return function(t){for(var e=Object(l.f)(),n=0;n<t.length;n++){var r=t[n],i=r.name,o=e.get(i)||0;o>0&&(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<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!l.t(Jn(e))}}(r)?function(t,e,n,r){return r===p?n:this.defaultDimValueGetter(t,e,n,r)}:null;return g.hasItemOption=!1,g.initData(o?r:f,null,v),g},gm=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){return dm(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Mn,n=ad("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*t.itemHeight,s=ad(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?i:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-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<n.length;a++)o.push(zu(t,e,n[a]));return o.join(" ")}}function ym(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Object(l.t)(e))return e+"";for(var r=[],i=0;i<n.length;i++){var o=t.getDimensionIndex(n[i]);o>=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;i<t.end;i++){var o=e.getItemLayout(i);if(xm(e,o,i,n)){var a=new this._SymbolCtor(e,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){Wp(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}();function Mm(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),o=function(t,e){var n=0,r=t.scale.getExtent();"start"===e?n=r[0]:"end"===e?n=r[1]:Object(l.z)(e)&&!isNaN(e)?n=e:r[0]>0?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<r;v++){var y=e[2*g],m=e[2*g+1];if(g>=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;)v++,g+=o,w=e[2*(_+=o)],S=e[2*_+1],b=(y=e[2*g])-u,x=(m=e[2*g+1])-c;var M=v+1;if(l)for(;Dm(w,S)&&M<r;)M++,w=e[2*(_+=o)],S=e[2*_+1];var O=.5,C=0,I=0,k=void 0,A=void 0;if(M>=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<i&&Dm(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=Pm(t,n,r,i,i,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=ji.CMD,a="x"===e,s=[],l=0;l<i.length;){var u=void 0,c=void 0,h=void 0,p=void 0,f=void 0,d=void 0,g=void 0;switch(i[l++]){case o.M:n=i[l++],r=i[l++];break;case o.L:if(u=i[l++],c=i[l++],(g=a?(t-n)/(u-n):(t-r)/(c-r))<=1&&g>=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<y;m++){var b=s[m];if(b<=1&&b>=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<o&&Dm(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=Pm(t,n,i,o,o,1,e.smooth,a,e.connectNulls);Pm(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}},e}(to);function Nm(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,u=o.width,c=o.height,h=n.get(["lineStyle","width"])||2;a-=h/2,s-=h/2,u+=h,c+=h,a=Math.floor(a),u=Math.round(u);var p=new vo({shape:{x:a,y:s,width:u,height:c}});if(e){var f=t.getBaseAxis(),d=f.isHorizontal(),g=f.inverse;d?(g&&(p.shape.x+=u),p.shape.width=0):(g||(p.shape.y+=c),p.shape.height=0);var v=Object(l.w)(i)?function(t){i(t,p)}:null;Da(p,{shape:{width:u,height:c,x:a,y:s}},n,null,r,v)}return p}function zm(t,e,n){var r=t.getArea(),i=Dn(r.r0,1),o=Dn(r.r,1),a=new Eh({shape:{cx:Dn(t.cx,1),cy:Dn(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,Da(a,{shape:{endAngle:r.endAngle,r:o}},n));return a}function Bm(t,e,n,r,i){return t?"polar"===t.type?zm(t,e,n):"cartesian2d"===t.type?Nm(t,e,n,r,i):null:null}function Vm(t,e){return t.type===e}function Fm(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function Gm(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[e,n],[r,i]]}function Hm(t,e){var n=Gm(t),r=n[0],i=n[1],o=Gm(e),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Wm(t){return l.z(t)?t:t?.5:0}function Um(t,e,n,r){var i=e.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],c=[],h=[];if(r){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||h.push(t[s],t[s+1]);t=h}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var p=(u[o]+c[o])/2,f=[];l[o]=f[o]=p,l[1-o]=u[1-o],f[1-o]=c[1-o],a.push(l[0],l[1]),a.push(f[0],f[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function Ym(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count()&&"cartesian2d"===e.type){for(var i,o,a=r.length-1;a>=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;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){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;a<i;a+=o)if(1.5*bm.getSymbolSize(e,a)[t.isHorizontal()?1:0]>r)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;e<Bo.length;e++)if(t.get([Bo[e],"endLabel","show"]))return!0;return!1}function Zm(t,e,n,r){if(Vm(e,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=$m(r)?function(n,r){t._endLabelOnDuring(n,r,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=Nm(e,n,r,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!r.get("clip",!0)){var h=c.shape,p=Math.max(h.width,h.height);u?(h.y-=p,h.height+=2*p):(h.x-=p,h.width+=2*p)}return l&&l(1,c),c}return zm(e,n,r)}var Km=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(){var t=new Mn,e=new Sm;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=a.getLayout("points")||[],h="polar"===i.type,p=this._coordSys,f=this._symbolDraw,d=this._polyline,g=this._polygon,v=this._lineGroup,y=t.get("animation"),m=!u.isEmpty(),b=u.get("origin"),x=Mm(i,a,b),_=m&&function(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=km(2*r),o=0;o<r;o++){var a=Om(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(i,a,x),w=t.get("showSymbol"),S=t.get("connectNulls"),M=w&&!h&&qm(t,a,i),O=this._data;O&&O.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),O.setItemGraphicEl(e,null))})),w||f.remove(),o.add(v);var C,I=!h&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(C=i.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var k=Ym(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&p.type===i.type&&I===this._step){m&&!g?g=this._newPolygon(c,_):g&&!m&&(v.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,i,Zs(k));var A=v.getClipPath();if(A)Da(A,{shape:Zm(this,i,!1,t).shape},t);else v.setClipPath(Zm(this,i,!0,t));w&&f.updateData(a,{isIgnore:M,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),Fm(this._stackedOnPoints,_)&&Fm(this._points,c)||(y?this._doUpdateAnimation(a,_,i,n,I,b,S):(I&&(c=Um(c,i,I,S),_&&(_=Um(_,i,I,S))),d.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:_})))}else w&&f.updateData(a,{isIgnore:M,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),y&&this._initSymbolLabelAnimation(a,i,C),I&&(c=Um(c,i,I,S),_&&(_=Um(_,i,I,S))),d=this._newPolyline(c),m?g=this._newPolygon(c,_):g&&(v.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,i,Zs(k)),v.setClipPath(Zm(this,i,!0,t));var T=t.getModel("emphasis"),D=T.get("focus"),P=T.get("blurScope"),L=T.get("disabled");(d.useStyle(l.i(s.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),wa(d,t,"lineStyle"),d.style.lineWidth>0&&"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<o;u++)if(i=t[2*u+a],!isNaN(i)&&!isNaN(t[2*u+1-a]))if(0!==u){if(r<=e&&i>=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;b<l.length;b++){var x=l[b],_=!0,w=void 0,S=void 0;switch(x.cmd){case"=":w=2*x.idx,S=2*x.idx1;var M=y[w],O=y[w+1],C=m[S],I=m[S+1];(isNaN(M)||isNaN(O))&&(M=C,O=I),u.push(M,O),c.push(C,I),h.push(n[w],n[w+1]),p.push(r[S],r[S+1]),g.push(e.getRawIndex(x.idx1));break;case"+":var k=x.idx,A=v.dataDimsForPoint,T=i.dataToPoint([e.get(A[0],k),e.get(A[1],k)]);S=2*k,u.push(T[0],T[1]),c.push(m[S],m[S+1]);var D=Om(v,i,e,k);h.push(D[0],D[1]),p.push(r[S],r[S+1]),g.push(e.getRawIndex(k));break;case"-":_=!1}_&&(f.push(x),d.push(d.length))}d.sort((function(t,e){return g[t]-g[e]}));var P=u.length,L=km(P),j=km(P),E=km(P),R=km(P),N=[];for(b=0;b<d.length;b++){var z=d[b],B=2*b,V=2*z;L[B]=u[V],L[B+1]=u[V+1],j[B]=c[V],j[B+1]=c[V+1],E[B]=h[V],E[B+1]=h[V+1],R[B]=p[V],R[B+1]=p[V+1],N[b]=f[z]}return{current:L,next:j,stackedOnCurrent:E,stackedOnNext:R,status:N}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,p=c.stackedOnCurrent,f=c.next,d=c.stackedOnNext;if(i&&(h=Um(c.current,n,i,a),p=Um(c.stackedOnCurrent,n,i,a),f=Um(c.next,n,i,a),d=Um(c.stackedOnNext,n,i,a)),Hm(h,f)>3e3||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;m<y.length;m++){if("="===y[m].cmd){var b=t.getItemGraphicEl(y[m].idx1);b&&v.push({el:b,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<v.length;e++){var n=v[e].el,r=2*v[e].ptIdx;n.x=t[r],n.y=t[r+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,r){t.__temp&&(e.remove(t),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Jp);function Qm(t,e){return{seriesType:t,plan:Xc(),reset:function(t){var n=t.getData(),r=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(r){var a=Object(l.H)(r.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,u=n.getCalculationInfo("stackResultDimension");pm(n,a[0])&&(a[0]=u),pm(n,a[1])&&(a[1]=u);var c=n.getStore(),h=n.getDimensionIndex(a[0]),p=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,i=o&&km(n*s),a=[],l=[],u=t.start,f=0;u<t.end;u++){var d=void 0;if(1===s){var g=c.get(h,u);d=r.dataToPoint(g,null,l)}else a[0]=c.get(h,u),a[1]=c.get(p,u),d=r.dataToPoint(a,null,l);o?(i[f++]=d[0],i[f++]=d[1]):e.setItemLayout(u,d.slice())}o&&e.setLayout("points",i)}}}}}}var Jm={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},tb=function(t){return Math.round(t.length/2)};function eb(t){return{seriesType:t,reset:function(t,e,n){var r=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,a=r.count();if(a>10&&"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();s<l;++s){var u=a.get(o,s);e[i]?e[i].push(u):e[i]=[u]}}));var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort((function(t,e){return t-e}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(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&&e<r&&(r=Math.min(e,c)),n&&n>r&&(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)<d&&(A=(A<0?-1:1)*d)}else{D=n.dataToPoint([M,S]);if(c)O=n.dataToPoint([M,C])[1];I=D[0]+y,k=O,A=v,T=D[1]-O,Math.abs(T)<d&&(T=(T<=0?-1:1)*d)}f?(l[w]=I,l[w+1]=k,l[w+2]=h?A:T,u&&(u[w]=h?b.x:I,u[w+1]=h?k:b.y,u[w+2]=x),m[r]=r):e.setItemLayout(r,{x:I,y:k,width:A,height:T}),w+=3}f&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}function ub(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function cb(t){return t.pipelineContext&&t.pipelineContext.large}var hb=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.getInitialData=function(t,e){return dm(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e&&e.clampData){var n=e.dataToPoint(e.clampData(t)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=i+o/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Uc);Uc.registerClass(hb);var pb=hb,fb=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.getInitialData=function(){return dm(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>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-l<h:l-u<h;p||(l=u-(c?h:-h));var f=Math.cos(l),d=Math.sin(l),g=Math.cos(u),v=Math.sin(u);p?(t.moveTo(f*i+n,d*i+r),t.arc(f*s+n,d*s+r,a,-Math.PI+l,l,!c)):t.moveTo(f*o+n,d*o+r),t.arc(n,r,o,l,u,!c),t.arc(g*s+n,v*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&t.arc(n,r,i,u,l,c)},e}(to);function vb(t,e,n){return e*Math.sin(t)*(n?-1:1)}function yb(t,e,n){return e*Math.cos(t)*(n?1:-1)}var mb=Math.max,bb=Math.min;var xb=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return a(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(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,e,n,r){var i,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=function(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();0;if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}(t,l);h&&this._enableRealtimeSort(h,a,n);var p=t.get("clip",!0)||h,f=function(t,e){var n=t.getArea&&t.getArea();if(Vm(t,"cartesian2d")){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(l,a);o.removeClipPath();var d=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),y=v.get("borderRadius")||0,m=[],b=this._backgroundEls,x=r&&r.isInitSort,_=r&&"changeAxisOrder"===r.type;function w(t){var e=kb[l.type](a,t),n=function(t,e,n){return new("polar"===t.type?Eh:vo)({shape:Eb(e,n,t),silent:!0,z2:0})}(l,i,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",y),m[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),r=kb[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&Ib[l.type](r)){var s=!1;p&&(s=_b[l.type](f,r));var v=wb[l.type](t,a,e,r,i,c,u.model,!1,d);h&&(v.forceLabelAnimation=!0),Tb(v,a,e,n,r,t,i,"polar"===l.type),x?v.attr({shape:r}):h?Sb(h,c,v,r,e,i,!1,!1):Da(v,{shape:r},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}})).update((function(e,n){var r=a.getItemModel(e),S=kb[l.type](a,e,r);if(g){var M=void 0;0===b.length?M=w(n):((M=b[n]).useStyle(v.getItemStyle()),"cartesian2d"===l.type&&M.setShape("r",y),m[e]=M);var O=kb[l.type](a,e);Ta(M,{shape:Eb(i,O,l)},c,e)}var C=s.getItemGraphicEl(n);if(a.hasValue(e)&&Ib[l.type](S)){var I=!1;if(p&&(I=_b[l.type](f,S))&&o.remove(C),C?Ra(C):C=wb[l.type](t,a,e,S,i,c,u.model,!!C,d),h&&(C.forceLabelAnimation=!0),_){var k=C.getTextContent();if(k){var A=$a(k);null!=A.prevValue&&(A.prevValue=A.value)}}else Tb(C,a,e,r,S,t,i,"polar"===l.type);x?C.attr({shape:S}):h?Sb(h,c,C,S,e,i,!0,_):Ta(C,{shape:S},t,e,null),a.setItemGraphicEl(e,C),C.ignore=I,o.add(C)}else o.remove(C)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&Ea(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Mn);S.removeAll();for(var M=0;M<m.length;++M)S.add(m[M]);o.add(S),this._backgroundEls=m,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),Lb(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),Lb(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&Bm(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var r=this;if(e.count()){var i=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var r=[];return t.each(t.mapDimension(e.dim),(function(t,e){var i=n(e);i=null==i?NaN:i,r.push({dataIndex:e,mappedValue:i,ordinalNumber:t})})),r.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:Object(l.H)(r,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var r=n.scale,i=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)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=s<a,h=u<l;return e.x=c&&a>i?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;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var Ob=["x","y","width","height"],Cb=["cx","cy","r","startAngle","endAngle"],Ib={cartesian2d:function(t){return!Mb(t,Ob)},polar:function(t){return!Mb(t,Cb)}},kb={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),i=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}(n,r):0,o=r.width>0?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<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],t.rect(o[0],o[1],a[0],a[1])},e}(to);function Lb(t,e,n,r){var i=t.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new Pb({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var h=new Pb({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),Lo(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",jb),h.on("mousemove",jb)),n&&n.push(h)}var jb=nf((function(t){var e=function(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=o.length/3;c<h;c++){var p=3*c;if(l[r]=u,l[i]=o[p+2],s[r]=o[p+r],s[i]=o[p+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=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)<h?(r=h,b-=h):x+=t;var i=_+w*r;e.setItemLayout(n,{angle:r,startAngle:_,endAngle:i,clockwise:g,cx:a,cy:s,r0:u,r:v?An(t,m,[u,l]):l}),_=i}})),b<Nb&&p)if(b<=.001){var S=Nb/p;e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n);r.angle=S,r.startAngle=c+w*n*S,r.endAngle=c+w*(n+1)*S}}))}else d=b/x,_=c,e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n),i=r.angle===h?h:t*d;r.startAngle=_,r.endAngle=_+w*i,_+=w*i}}))}))}function Gb(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var r=t.getData();r.filterSelf((function(t){for(var e=r.getName(t),i=0;i<n.length;i++)if(!n[i].isSelected(e))return!1;return!0}))}}}}var Hb=Math.PI/180;function Wb(t,e,n,r,i,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var p=t[h].label.x-u;t[h].linePoints[1][0]+=p,t[h].label.x=u}gv(t,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>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)<p?Math.sqrt(c*c/(1-h*h/p/p)):p;u.rB=d,u.maxY=c}u.list.push(l)}f(o),f(a)}(t)}function f(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=r+l.len,h=c*c,p=Math.sqrt((1-Math.abs(u*u/a))*h),f=e+(p+l.len2)*i,d=f-l.label.x;Ub(l,l.targetTextWidth-d*i,!0),l.label.x=f}}}function Ub(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(e<c||n){var h=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var p=r.getBoundingRect();r.setStyle("width",Math.ceil(p.width)),r.setStyle("backgroundColor",a)}else{var f=e-l,d=e<c?f:n?f>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)<a)return Object(l.k)(f.states,d),Object(l.k)(g.states,d),void(f.ignore=g.ignore=!0);if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(f)){var C,I,k,A,T=(p.startAngle+p.endAngle)/2,D=Math.cos(T),P=Math.sin(T);e=p.cx,n=p.cy;var L="inside"===m||"inner"===m;if("center"===m)C=p.cx,I=p.cy,A="center";else{var j=(L?(p.r+p.r0)/2*D:p.r*D)+e,E=(L?(p.r+p.r0)/2*P:p.r*P)+n;if(C=j+3*D,I=E+3*P,!L){var R=j+D*(M+u-p.r),N=E+P*(M+u-p.r),z=R+(D<0?-1:1)*O;C="edge"===x?D<0?h+_:h+c-_:z+(D<0?-b:b),I=N,k=[[j,E],[R,N],[z,N]]}A=L?"center":"edge"===x?D>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;p<t.length;p++){var f=t[p].label;Yb(t[p])||(f.x<e?(c=Math.min(c,f.x),l.push(t[p])):(h=Math.max(h,f.x),u.push(t[p])))}for(p=0;p<t.length;p++){if(!Yb(v=t[p])&&v.linePoints){if(null!=v.labelStyleWidth)continue;f=v.label;var d=v.linePoints,g=void 0;g="edge"===v.labelAlignTo?f.x<e?d[2][0]-v.labelDistance-a-v.edgeDistance:a+i-v.edgeDistance-d[2][0]-v.labelDistance:"labelLine"===v.labelAlignTo?f.x<e?c-a-v.bleedMargin:a+i-h-v.bleedMargin:f.x<e?f.x-a-v.bleedMargin:a+i-f.x-v.bleedMargin,v.targetTextWidth=g,Ub(v,g)}}for(Wb(u,e,n,r,1,0,o,0,s,h),Wb(l,e,n,r,-1,0,o,0,s,c),p=0;p<t.length;p++){var v;if(!Yb(v=t[p])&&v.linePoints){f=v.label,d=v.linePoints;var y="edge"===v.labelAlignTo,m=f.style.padding,b=m?m[1]+m[3]:0,x=f.style.backgroundColor?0:b,_=v.rect.width+x,w=d[1][0]-d[2][0];y?f.x<e?d[2][0]=a+v.edgeDistance+_+v.labelDistance:d[2][0]=a+i-v.edgeDistance-_-v.labelDistance:(f.x<e?d[2][0]=f.x+v.labelDistance:d[2][0]=f.x-v.labelDistance,d[1][0]=d[2][0]+w),d[1][1]=d[2][1]=f.y}}}(i,e,n,u,c,f,h,p);for(var g=0;g<i.length;g++){var v=i[g],y=v.label,m=v.labelLine,b=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),b&&(Object(l.k)(y.states,d),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(m){var _=v.linePoints;b||!_?(Object(l.k)(m.states,d),m.ignore=!0):(sv(_,v.minTurnAngle),lv(_,v.surfaceNormal,v.maxSurfaceAngle),m.setShape({points:_}),y.__hostTarget.textGuideLineConfig={anchor:new it(_[0][0],_[0][1])})}}}function Xb(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Object(l.t)(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(l.H)(r,(function(t){return pn(t,i)}))}}var $b=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new Po;return i.setTextContent(o),i.updateData(e,n,r,!0),i}return a(e,t),e.prototype.updateData=function(t,e,n,r){var i=t.hostModel,o=t.getItemModel(e),a=o.getModel("emphasis"),s=t.getItemLayout(e),u=Object(l.m)(Xb(o.getModel("itemStyle"),s,!0),s);if(isNaN(u.startAngle))this.setShape(u);else{if(r){this.setShape(u);var c=i.getShallow("animationType");i.ecModel.ssr?(Da(this,{scaleX:0,scaleY:0},i,{dataIndex:e,isFrom:!0}),this.originX=u.cx,this.originY=u.cy):"scale"===c?(this.shape.r=s.r0,Da(this,{shape:{r:s.r}},i,e)):null!=n?(this.setShape({startAngle:n,endAngle:n}),Da(this,{shape:{startAngle:s.startAngle,endAngle:s.endAngle}},i,e)):(this.shape.endAngle=s.startAngle,Ta(this,{shape:{endAngle:s.endAngle}},i,e))}else Ra(this),Ta(this,{shape:u},i,e);this.useStyle(t.getItemVisual(e,"style")),wa(this,o);var h=(s.startAngle+s.endAngle)/2,p=i.get("selectedOffset"),f=Math.cos(h)*p,d=Math.sin(h)*p,g=o.getShallow("cursor");g&&this.attr("cursor",g),this._updateLabel(i,t,e),this.ensureState("emphasis").shape=Object(l.m)({r:s.r+(a.get("scale")&&a.get("scaleSize")||0)},Xb(a.getModel("itemStyle"),s)),Object(l.m)(this.ensureState("select"),{x:f,y:d,shape:Xb(o.getModel(["select","itemStyle"]),s)}),Object(l.m)(this.ensureState("blur"),{shape:Xb(o.getModel(["blur","itemStyle"]),s)});var v=this.getTextGuideLine(),y=this.getTextContent();v&&Object(l.m)(v.ensureState("select"),{x:f,y:d}),Object(l.m)(y.ensureState("select"),{x:f,y:d}),ma(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var r=e.getItemModel(n),i=r.getModel("labelLine"),o=e.getItemVisual(n,"style"),a=o&&o.fill,s=o&&o.opacity;Va(this,Fa(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:s,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=this.getTextContent();this.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)this.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Uh,this.setTextGuideLine(h)),hv(this,pv(r),{stroke:a,opacity:Object(l.Q)(i.get(["lineStyle","opacity"]),s,1)})}},e}(Eh),Zb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return a(e,t),e.prototype.render=function(t,e,n,r){var i,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=new Eh({shape:Vb(t,n)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add((function(t){var e=new $b(o,t,i);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,i),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){Ea(a.getItemGraphicEl(e),t,e)})).execute(),qb(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},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="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<r.length;){var c=r[n++],h=r[n++];isNaN(c)||isNaN(h)||(u&&!u.contain(c,h)||(a.x=c-i[0]/2,a.y=h-i[1]/2,a.width=i[0],a.height=i[1],o.buildPath(t,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,r=e.size,i=this._ctx,o=this.softClipShape;if(i){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||i.fillRect(a-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=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<n.length;){var h=n[c++],p=n[c++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(p,s),u=Math.max(p,u)}t=this._rect=new ft(a-i/2,s-o/2,l-a+i,u-s+o)}return t},e}(to),rx=function(){function t(){this.group=new Mn}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),r=4*t.startIndex*2;e=new Float32Array(e.buffer,r,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var r=this._newAdded[0],i=e.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.endIndex=t.end,r.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new nx({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=ad(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=Lo(t);l.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=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[0]&&(e[0]=t[0]),t[1]>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&&a<n&&(a=i.interval=n),null!=r&&a>r&&(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<a;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=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[0]&&(e[0]=t[0]),t[1]>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]<r[0]&&(t?o.push({value:Tx(r[0]-e,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=Tx(a+e,i))!==o[o.length-1].value);)if(o.length>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;i<e.length;i++){for(var o=e[i],a=e[i-1],s=0,l=[],u=(o.value-a.value)/t;s<t-1;){var c=Tx(a.value+(s+1)*u);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Ln(t.value)||0:"auto"===n&&(n=this._intervalPrecision),Hs(Tx(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=_x(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var r=e[1]-e[0];isFinite(r)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=Tx(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=Tx(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(bx);bx.registerClass(Dx);var Px=Dx,Lx=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return a(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Cs(t.value,_s[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Os(this._minLevelUnit))]||_s.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC");return function(t,e,n,r,i){var o=null;if(l.C(n))o=n;else if(l.w(n))o=n(t.value,e,{level:t.level});else{var a=l.m({},xs);if(t.level>0)for(var s=0;s<ws.length;++s)a[ws[s]]="{primary|"+a[ws[s]]+"}";var u=n?!1===n.inherit?n:l.i(n,a):a,c=Is(t.value,i);if(u[c])o=u[c];else if(u.inherit){for(s=Ss.indexOf(c)-1;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]();u<n&&u<=r[1];)s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function s(t,i,o){var s=[],l=!i.length;if(!function(t,e,n,r){var i=Vn(e),o=Vn(n),a=function(t){return ks(i,t,r)===ks(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},p=function(){return h()&&a("second")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return p();case"millisecond":return p()&&a("millisecond")}}(Os(t),r[0],r[1],n)){l&&(i=[{value:Vx(new Date(r[0]),t,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,h=i[u+1].value;if(c!==h){var p=void 0,f=void 0,d=void 0;switch(t){case"year":p=Math.max(1,Math.round(e/864e5/365)),f=As(n),d=Rs(n);break;case"half-year":case"quarter":case"month":p=Rx(e),f=Ts(n),d=Ns(n);break;case"week":case"half-week":case"day":p=Ex(e,31),f=Ds(n),d=zs(n),!0;break;case"half-day":case"quarter-day":case"hour":p=Nx(e),f=Ps(n),d=Bs(n);break;case"minute":p=zx(e,!0),f=Ls(n),d=Vs(n);break;case"second":p=zx(e,!1),f=js(n),d=Fs(n);break;case"millisecond":p=Bx(e),f=Es(n),d=Gs(n)}a(p,c,h,f,d,0,s),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-p})}}for(u=0;u<s.length;u++)o.push(s[u]);return s}}for(var u=[],c=[],h=0,p=0,f=0;f<i.length&&o++<1e4;++f){var d=Os(i[f]);if((x=i[f])===Os(x)){s(i[f],u[u.length-1]||[],c);var g=i[f+1]?Os(i[f+1]):null;if(d!==g){if(c.length){p=h,c.sort((function(t,e){return t.value-e.value}));for(var v=[],y=0;y<c.length;++y){var m=c[y].value;0!==y&&c[y-1].value===m||(v.push(c[y]),m>=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;O<M.length;++O)w.push({value:M[O].value,level:S-f});w.sort((function(t,e){return t.value-e.value}));var C=[];for(f=0;f<w.length;++f)0!==f&&w[f].value===w[f-1].value||C.push(w[f]);return C}(this._minLevelUnit,this._approxInterval,r,e);return(n=n.concat(i)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=864e5,e[1]+=864e5),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-864e5}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=jx.length,a=Math.min(function(t,e,n,r){for(;n<r;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n}(jx,this._approxInterval,0,o),o-1);this._interval=jx[a][1],this._minLevelUnit=jx[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(l.z)(t)?t:+Vn(t)},e.prototype.contain=function(t){return Ox(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Cx(this.parse(t),this._extent)},e.prototype.scale=function(t){return Ix(t,this._extent)},e.type="time",e}(Px),jx=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function Ex(t,e){return(t/=864e5)>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]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=this._modelMinRaw=e.get("min",!0);Object(l.w)(i)?this._modelMinNum=r_(t,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=r_(t,i));var o=this._modelMaxRaw=e.get("max",!0);if(Object(l.w)(o)?this._modelMaxNum=r_(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=r_(t,o)),r)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=Object(l.t)(a)?a:[a||0,a||0];"boolean"==typeof s[0]||"boolean"==typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[pn(s[0],1),pn(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=a,c=null!=s;null==a&&(a=t?r?0:NaN:e-i[0]*o),null==s&&(s=t?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var h=Object(l.l)(a)||Object(l.l)(s)||t&&!r;this._needCrossZero&&(a>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;n<t.length;n++)if(t[n].key===e)return t[n].value}function w_(t,e,n){return t.push({key:e,value:n}),n}function S_(t,e,n){var r=s_(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&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:t<e}}(this,r,e.get("alignWithLabel"),t.clamp),r},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t>0&&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;v<u[1]&&isFinite(v)&&isFinite(u[1]);)d=wx(d),v=u[0]+d*a;else if(h)for(g=u[1]-d*a;g>u[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;y<i;y+=v){var m=g(r?r[y]:{value:o[0]+y},y),b=d.getTextRect(m),x=(s=b,l=d.get("rotate")||0,u=void 0,c=void 0,h=void 0,p=void 0,f=void 0,void 0,u=l*Math.PI/180,c=s.width,h=s.height,p=c*Math.abs(Math.cos(u))+Math.abs(h*Math.sin(u)),f=c*Math.abs(Math.sin(u))+Math.abs(h*Math.cos(u)),new ft(s.x,s.y,p,f));a?a.union(x):a=x}return a}}(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+r,"top"===t.position?o.y+=e.height+r:"left"===t.position&&(o.x+=e.width+r)}}})),s()),Object(l.k)(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(l.A)(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===t||i[r].getAxis("y").index===e)return i[r]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",pr).models[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis",pr).models[0],a=t.gridModel,s=this._coordsList;if(r)e=r.coordinateSystem,Object(l.r)(s,e)<0&&(e=null);else if(i&&o)e=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function u(e){return function(n,r){if(j_(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new k_(e,a_(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[e][r]=u,s[e]++}}}this._axesMap=a,Object(l.k)(a.x,(function(e,n){Object(l.k)(a.y,(function(i,o){var a="x"+n+"y"+o,s=new g_(a);s.master=r,s.model=t,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(e),s.addAxis(i)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){Object(l.k)(h_(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}Object(l.k)(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(T_(t)){var r=D_(t),i=r.xAxisModel,o=r.yAxisModel;if(!j_(i,e)||!j_(o,e))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Object(l.k)(this.getCartesians(),(function(r){var i=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis(),o=r.getOtherAxis(i);Object(l.r)(e,i)<0&&e.push(i),Object(l.r)(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var r=[];return e.eachComponent("grid",(function(i,o){var a=new t(i,e,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)})),e.eachSeries((function(t){if(T_(t)){var e=D_(t),n=e.xAxisModel,r=e.yAxisModel;0;var i=n.getCoordSysModel().coordinateSystem;t.coordinateSystem=i.getCartesian(n.componentIndex,r.componentIndex)}})),r},t.dimensions=f_,t}(),z_=Math.PI,B_=function(){function t(t,e){this.group=new Mn,this.opt=e,this.axisModel=t,Object(l.i)(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Mn({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!V_[t]},t.prototype.add=function(t){V_[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var r,i,o=Nn(e-t);return zn(o)?(i=n>0?"top":"bottom",r="center"):zn(o-z_)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<z_?n>0?"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;h<c.length;h++)t.add(c[h]);return c}(n,r,e,t),o=function(t,e,n,r){var i=n.axis;if(!Object(l.O)(r.axisLabelShow,n.get(["axisLabel","show"]))||i.scale.isBlank())return;var o=n.getModel("axisLabel"),a=o.get("margin"),s=i.getViewLabels(),u=(Object(l.O)(r.labelRotate,o.get("rotate"))||0)*z_/180,c=B_.innerTextLayout(r.rotation,u,r.labelDirection),h=n.getCategories&&n.getCategories(!0),p=[],f=B_.isLabelSilent(n),d=n.get("triggerEvent");return Object(l.k)(s,(function(s,u){var g="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,v=s.formattedLabel,y=s.rawLabel,m=o;if(h&&h[g]){var b=h[g];Object(l.A)(b)&&b.textStyle&&(m=new hs(b.textStyle,o,n.ecModel))}var x=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),_=i.dataToCoord(g),w=new Po({x:_,y:r.labelOffset+r.labelDirection*a,rotation:c.rotation,silent:f,z2:10+(s.level||0),style:Ga(m,{text:v,align:m.getShallow("align",!0)||c.textAlign,verticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||c.textVerticalAlign,fill:Object(l.w)(x)?x("category"===i.type?y:"value"===i.type?g+"":g,u):x})});if(w.anid="label_"+g,d){var S=B_.makeAxisEventDataBase(n);S.targetType="axisLabel",S.value=y,S.tickIndex=u,"category"===i.type&&(S.dataIndex=g),Lo(w).eventData=S}e.add(w),w.updateTransform(),p.push(w),t.add(w),w.decomposeTransform()})),p}(n,r,e,t);(function(t,e,n){if(c_(t.axis))return;var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);n=n||[];var o=(e=e||[])[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],p=n[n.length-2];!1===r?(F_(o),F_(u)):G_(o,a)&&(r?(F_(a),F_(c)):(F_(o),F_(u)));!1===i?(F_(s),F_(h)):G_(l,s)&&(i?(F_(l),F_(p)):(F_(s),F_(h)))}(e,o,i),function(t,e,n,r){var i=n.axis,o=n.getModel("minorTick");if(!o.get("show")||i.scale.isBlank())return;var a=i.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),u=r*o.get("length"),c=Object(l.i)(s.getLineStyle(),Object(l.i)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<a.length;h++)for(var p=W_(a[h],e.transform,u,c,"minorticks_"+h),f=0;f<p.length;f++)t.add(p[f])}(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"]))&&vv(fv(Object(l.H)(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}}))))},axisName:function(t,e,n,r){var i=Object(l.O)(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),u=t.nameDirection,c=e.getModel("nameTextStyle"),h=e.get("nameGap")||0,p=e.axis.getExtent(),f=p[0]>p[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<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(S(a,a,e),S(s,s,e));var c=new $h({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});kp(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,o.push(c)}return o}var U_=B_;function Y_(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Object(l.k)(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=K_(n.model),u=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var c=n.model.getModel("tooltip",r);if(Object(l.k)(n.getAxes(),Object(l.h)(d,!1,null)),n.getTooltipAxes&&r&&c.get("show")){var h="axis"===c.get("trigger"),p="cross"===c.get(["axisPointer","type"]),f=n.getTooltipAxes(c.get(["axisPointer","axis"]));(h||p)&&Object(l.k)(f.baseAxes,Object(l.h)(d,!p||"cross",h)),p&&Object(l.k)(f.otherAxes,Object(l.h)(d,"cross",!1))}}function d(r,s,h){var p=h.model.getModel("axisPointer",i),f=p.get("show");if(f&&("auto"!==f||r||Z_(p))){null==s&&(s=p.get("triggerTooltip"));var d=(p=r?function(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s={};Object(l.k)(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=Object(l.d)(a.get(t))})),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var u=s.label||(s.label={});if(null==u.show&&(u.show=!1),"cross"===i){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var h=s.lineStyle=a.get("crossStyle");h&&Object(l.i)(u,h.textStyle)}}return t.model.getModel("axisPointer",new hs(s,n,r))}(h,c,i,e,r,s):p).get("snap"),g=K_(h.model),v=s||d||"category"===h.type,y=t.axesInfo[g]={key:g,axis:h,coordSys:n,axisPointerModel:p,triggerTooltip:s,involveSeries:v,snap:d,useHandle:Z_(p),seriesModels:[],linkGroup:null};u[g]=y,t.seriesInvolved=t.seriesInvolved||v;var m=function(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(q_(o[r+"AxisId"],n.id)||q_(o[r+"AxisIndex"],n.componentIndex)||q_(o[r+"AxisName"],n.name))return i}}(o,h);if(null!=m){var b=a[m]||(a[m]={axesInfo:{}});b.axesInfo[g]=y,b.mapper=o[m].mapper,y.linkGroup=b}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&Object(l.k)(t.coordSysAxesInfo[K_(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}(n,t),n}function q_(t,e){return"all"===t||Object(l.t)(t)&&Object(l.r)(t,e)>=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]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function $_(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[K_(t)]}function Z_(t){return!!t.get(["handle","show"])}function K_(t){return t.type+"||"+t.id}var Q_={},J_=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(e,n,r,i){this.axisPointerClass&&X_(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},e.prototype.updateAxisPointer=function(t,e,n,r){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,r){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=function(t){var e=$_(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,r):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){Q_[t]=e},e.getAxisPointerClass=function(t){return t&&Q_[t]},e.type="axis",e}(qc),tw=lr();function ew(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),u=r.coordinateSystem.getRect(),c=i.getTicksCoords({tickModel:o,clamp:!0});if(c.length){var h=s.length,p=tw(t).splitAreaColors,f=l.f(),d=0;if(p)for(var g=0;g<c.length;g++){var v=p.get(c[g].tickValue);if(null!=v){d=(v+(h-1)*g)%h;break}}var y=i.toGlobalCoord(c[0].coord),m=a.getAreaStyle();s=l.t(s)?s:[s];for(g=1;g<c.length;g++){var b=i.toGlobalCoord(c[g].coord),x=void 0,_=void 0,w=void 0,S=void 0;i.isHorizontal()?(x=y,_=u.y,w=b-x,S=u.height,y=x+w):(x=u.x,_=y,w=u.width,y=_+(S=b-_));var M=c[g-1].tickValue;null!=M&&f.set(M,d),e.add(new vo({anid:null!=M?"area_"+M:null,shape:{x:x,y:_,width:w,height:S},style:l.i({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%h}tw(t).splitAreaColors=f}}}function nw(t){tw(t).splitAreaColors=null}var rw=["axisLine","axisTickLabel","axisName"],iw=["splitArea","splitLine","minorSplitLine"],ow=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return a(e,t),e.prototype.render=function(e,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Mn,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=A_(a,e),u=new U_(e,l.m({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(xx(n[r].getOtherAxis(e.axis).scale))return!0;return!1}},s));l.k(rw,u.add,u),this._axisGroup.add(u.getGroup()),l.k(iw,(function(t){e.get([t,"show"])&&aw[t](this,this._axisGroup,e,a)}),this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Ep(o,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)}},e.prototype.remove=function(){nw(this)},e.type="cartesianAxis",e}(J_),aw={splitLine:function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=l.t(s)?s:[s];for(var u=r.coordinateSystem.getRect(),c=i.isHorizontal(),h=0,p=i.getTicksCoords({tickModel:o}),f=[],d=[],g=a.getLineStyle(),v=0;v<p.length;v++){var y=i.toGlobalCoord(p[v].coord);c?(f[0]=y,f[1]=u.y,d[0]=y,d[1]=u.y+u.height):(f[0]=u.x,f[1]=y,d[0]=u.x+u.width,d[1]=y);var m=h++%s.length,b=p[v].tickValue,x=new $h({anid:null!=b?"line_"+p[v].tickValue:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:l.i({stroke:s[m]},g),silent:!0});kp(x.shape,g.lineWidth),e.add(x)}}},minorSplitLine:function(t,e,n,r){var i=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=r.coordinateSystem.getRect(),s=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=o.getLineStyle(),p=0;p<l.length;p++)for(var f=0;f<l[p].length;f++){var d=i.toGlobalCoord(l[p][f].coord);s?(u[0]=d,u[1]=a.y,c[0]=d,c[1]=a.y+a.height):(u[0]=a.x,u[1]=d,c[0]=a.x+a.width,c[1]=d);var g=new $h({anid:"minor_line_"+l[p][f].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0});kp(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,n,r){ew(t,e,n,r)}},sw=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="xAxis",e}(ow),lw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=sw.type,e}return a(e,t),e.type="yAxis",e}(ow),uw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return a(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new vo({shape:t.coordinateSystem.getRect(),style:Object(l.i)({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(qc),cw={offset:0};function hw(t){t.registerComponentView(uw),t.registerComponentModel(ox),t.registerCoordinateSystem("cartesian2d",N_),vx(t,"x",sx,cw),vx(t,"y",sx,cw),t.registerComponentView(sw),t.registerComponentView(lw),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function pw(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],r=t.coordinateSystem;if(r){var i=r.getIndicatorAxes();l.k(i,(function(t,o){e.each(e.mapDimension(i[o].dim),(function(t,e){n[e]=n[e]||[];var i=r.dataToPoint(t,o);n[e][o]=fw(i)?i:dw(r)}))})),e.each((function(t){var i=l.o(n[t],(function(t){return fw(t)}))||dw(r);n[t].push(i.slice()),e.setItemLayout(t,n[t])}))}}))}function fw(t){return!isNaN(t[0])&&!isNaN(t[1])}function dw(t){return[t.cx,t.cy]}function gw(t){var e=t.polar;if(e){l.t(e)||(e=[e]);var n=[];l.k(e,(function(e,r){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],l.t(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}l.k(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var vw=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 i=t.coordinateSystem,o=this.group,a=t.getData(),s=this._data;function u(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var r=sd(t.getItemVisual(e,"symbolSize")),i=ad(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:o*Math.PI/180||0}),i}}function c(e,n,i,o,a,s){i.removeAll();for(var l=0;l<n.length-1;l++){var c=u(o,a);c&&(c.__dimIdx=l,e[l]?(c.setPosition(e[l]),r[s?"initProps":"updateProps"](c,{x:n[l][0],y:n[l][1]},t,a)):c.setPosition(n[l]),i.add(c))}}function h(t){return l.H(t,(function(t){return[i.cx,i.cy]}))}a.diff(s).add((function(e){var n=a.getItemLayout(e);if(n){var r=new Gh,i=new Uh,o={shape:{points:n}};r.shape.points=h(n),i.shape.points=h(n),Da(r,o,t,e),Da(i,o,t,e);var s=new Mn,l=new Mn;s.add(i),s.add(r),s.add(l),c(i.shape.points,n,l,a,e,!0),a.setItemGraphicEl(e,s)}})).update((function(e,n){var r=s.getItemGraphicEl(n),i=r.childAt(0),o=r.childAt(1),l=r.childAt(2),u={shape:{points:a.getItemLayout(e)}};u.shape.points&&(c(i.shape.points,u.shape.points,l,a,e,!1),Ra(o),Ra(i),Ta(i,u,t),Ta(o,u,t),a.setItemGraphicEl(e,r))})).remove((function(t){o.remove(s.getItemGraphicEl(t))})).execute(),a.eachItemGraphicEl((function(t,e){var n=a.getItemModel(e),r=t.childAt(0),i=t.childAt(1),s=t.childAt(2),u=a.getItemVisual(e,"style"),c=u.fill;o.add(t),r.useStyle(l.i(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),wa(r,n,"lineStyle"),wa(i,n,"areaStyle");var h=n.getModel("areaStyle"),p=h.isEmpty()&&h.parentModel.isEmpty();i.ignore=p,l.k(["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),r=e.isEmpty()&&e.parentModel.isEmpty();i.ensureState(t).ignore=r&&p})),i.useStyle(l.i(h.getAreaStyle(),{fill:c,opacity:.7,decal:u.decal}));var f=n.getModel("emphasis"),d=f.getModel("itemStyle").getItemStyle();s.eachChild((function(t){if(t instanceof so){var r=t.style;t.useStyle(l.m({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},u))}else t.useStyle(u),t.setColor(c),t.style.strokeNoScale=!0;t.ensureState("emphasis").style=l.d(d);var i=a.getStore().get(a.getDimensionIndex(t.__dimIdx),e);(null==i||isNaN(i))&&(i=""),Va(t,Fa(n),{labelFetcher:a.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:i,inheritColor:c,defaultOpacity:u.opacity})})),ma(t,f.get("focus"),f.get("blurScope"),f.get("disabled"))})),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Jp),yw=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),this.legendVisualProvider=new Qb(l.c(this.getData,this),l.c(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return Kb(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(t),a=""===o?this.name:o,s=Dc(this,t);return Sc("section",{header:a,sortBlocks:!0,blocks:l.H(i,(function(e){var n=r.get(r.mapDimension(e.dim),t);return Sc("nameValue",{markerType:"subItem",markerColor:s,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,r=e.getValues(l.H(n.dimensions,(function(t){return e.mapDimension(t)})),t),i=0,o=r.length;i<o;i++)if(!isNaN(r[i])){var a=n.getIndicatorAxes();return n.coordToPoint(a[i].dataToCoord(r[i]),i)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Uc),mw=hx.value;function bw(t,e){return l.i({show:e},t)}var xw=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(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),i=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),u=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),p=l.H(this.get("indicator")||[],(function(p){null!=p.max&&p.max>0&&!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;x<y.length;x++){if(u)g[k(g,f,x)].push(new yh({shape:{cx:m,cy:b,r:y[x].coord}}));if(c&&x<y.length-1)v[k(v,d,x)].push(new zh({shape:{cx:m,cy:b,r0:y[x].coord,r:y[x+1].coord}}))}else{var _,w=l.H(n,(function(t,n){var r=t.getTicksCoords();return _=null==_?r.length-1:Math.min(r.length-1,_),l.H(r,(function(t){return e.coordToPoint(t.coord,n)}))})),S=[];for(x=0;x<=_;x++){for(var M=[],O=0;O<n.length;O++)M.push(w[O][x]);if(M[0]&&M.push(M[0].slice()),u)g[k(g,f,x)].push(new Uh({shape:{points:M}}));if(c&&S)v[k(v,d,x-1)].push(new Gh({shape:{points:M.concat(S)}}));S=M.slice().reverse()}}var C=a.getLineStyle(),I=s.getAreaStyle();l.k(v,(function(t,e){this.group.add(Cp(t,{style:l.i({stroke:"none",fill:d[e%d.length]},I),silent:!0}))}),this),l.k(g,(function(t,e){this.group.add(Cp(t,{style:l.i({fill:"none",stroke:f[e%f.length]},C),silent:!0}))}),this)}function k(t,e,n){var r=n%e.length;return t[r]=t[r]||[],r}},e.type="radar",e}(qc),Sw=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return a(e,t),e}(I_),Mw=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Object(l.H)(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,r=new Sw(n,new Px);return r.name=t.get("name"),r.model=t,t.axis=r,this.dimensions.push(n),r}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=Math.sqrt(e*e+n*n);e/=r,n/=r;for(var i,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(i=u,s=l,a=c)}return[s,+(i&&i.coordToData(r))]},t.prototype.resize=function(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i)/2;this.cx=Tn(n[0],r),this.cy=Tn(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");(Object(l.C)(a)||Object(l.z)(a))&&(a=[0,a]),this.r0=Tn(a[0],o),this.r=Tn(a[1],o),Object(l.k)(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,r=this._model;Object(l.k)(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,i){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===r){var o=e.getData();Object(l.k)(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var i=r.get("splitNumber"),o=new Px;o.setExtent(0,i),o.setInterval(1),Object(l.k)(n,(function(t,e){L_(t.scale,t.model,o)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var r=[];return e.eachComponent("radar",(function(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("radarIndex")||0])})),r},t.dimensions=[],t}();function Ow(t){t.registerCoordinateSystem("radar",Mw),t.registerComponentModel(xw),t.registerComponentView(ww),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}var Cw="\0_ec_interaction_mutex";function Iw(t,e){return!!kw(t)[e]}function kw(t){return t[Cw]||(t[Cw]={})}function Aw(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(Y(r.event),Tw(t,e,n,r,i))}function Tw(t,e,n,r,i){i.isAvailableBehavior=Object(l.c)(Dw,null,n,r),t.trigger(e,i)}function Dw(t,e,n){var r=n[t];return!t||r&&(!Object(l.C)(r)||e.event[r+"Key"])}Pg({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},l.L);var Pw=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var r=Object(l.c)(n._mousedownHandler,n),i=Object(l.c)(n._mousemoveHandler,n),o=Object(l.c)(n._mouseupHandler,n),a=Object(l.c)(n._mousewheelHandler,n),s=Object(l.c)(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=Object(l.i)(Object(l.d)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",r),e.on("mousemove",i),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",r),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return a(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!q(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,r=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&Dw("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!Iw(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,r=this._x,i=this._y,o=e-r,a=n-i;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&Y(t.event),Tw(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:r,oldY:i,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){q(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=Dw("zoomOnMouseWheel",t,this._opt),n=Dw("moveOnMouseWheel",t,this._opt),r=t.wheelDelta,i=Math.abs(r),o=t.offsetX,a=t.offsetY;if(0!==r&&(e||n)){if(e){var s=i>3?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<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=Jw(o);h.length>=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;r<e.length;r+=2){var i=parseFloat(e[r]),o=parseFloat(e[r+1]);n.push([i,o])}return n}function $w(t,e,n,r,i){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(tS,(function(t,e,n){return r.push(e,n),""}));for(var o=r.length-1;o>0;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;r<Vw.length;r++){var i=Vw[r];null!=(o=t.getAttribute(i))&&(e[Bw[i]]=o)}for(r=0;r<Gw.length;r++){var o;i=Gw[r];null!=(o=t.getAttribute(i))&&(n[Fw[i]]=o)}}(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=Kw(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=Kw(o,"stroke",a.stroke,n)),Object(l.k)(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),Object(l.k)(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=Object(l.H)(Jw(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var Zw=/^url\(\s*#(.*?)\)/;function Kw(t,e,n,r){var i=n&&n.match(Zw);if(!i)return"none"===n&&(n=null),n;var o=Object(l.T)(i[1]);r.push([t,e,o])}var Qw=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Jw(t){return t.match(Qw)||[]}var tS=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,eS=Math.PI/180;var nS=/([^\s:;]+)\s*:\s*([^:;]+)/g;function rS(t,e,n){var r,i=t.getAttribute("style");if(i)for(nS.lastIndex=0;null!=(r=nS.exec(i));){var o=r[1],a=Object(l.q)(Bw,o)?Bw[o]:null;a&&(e[a]=r[2]);var s=Object(l.q)(Fw,o)?Fw[o]:null;s&&(n[s]=r[2])}}function iS(t,e){var n=e.width/t.width,r=e.height/t.height,i=Math.min(n,r);return{scale:i,x:-(t.x+t.width/2)*i+(e.x+e.width/2),y:-(t.y+t.height/2)*i+(e.y+e.height/2)}}function oS(t,e){return Math.abs(t-e)<1e-8}function aS(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var o=1;o<t.length;o++){var a=t[o];r+=Gi(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return oS(i[0],s[0])&&oS(i[1],s[1])||(r+=Gi(i[0],i[1],s[0],s[1],e,n)),0!==r}var sS=[];function lS(t,e){for(var n=0;n<t.length;n++)S(t[n],t[n],e)}function uS(t,e,n,r){for(var i=0;i<t.length;i++){var o=t[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(M(e,e,o),O(n,n,o))}}var cS=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),hS=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},pS=function(t){this.type="linestring",this.points=t},fS=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return a(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,r=0;r<e.length;r++){var i=e[r],o=i.exterior,a=o&&o.length;a>n&&(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<i;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Object(l.k)(i,(function(e){"polygon"===e.type?uS(e.exterior,n,r,t):Object(l.k)(e.points,(function(e){uS(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new ft(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(aS(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(aS(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new ft(t,e,n,r),s=i.calculateTransform(a),u=this.geometries,c=0;c<u.length;c++){var h=u[c];"polygon"===h.type?(lS(h.exterior,s),Object(l.k)(h.interiors,(function(t){lS(t,s)}))):Object(l.k)(h.points,(function(t){lS(t,s)}))}(i=this._rect).copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(cS),dS=function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return a(e,t),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],r=K(sS),i=t;i&&!i.isGeoSVGGraphicRoot;)J(r,i.getLocalTransform(),r),i=i.parent;return rt(r,r),S(n,n,r),n},e}(cS),gS=Object(l.f)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),vS=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Object(l.f)(),this._freedGraphics=[],this._mapName=t,this._parsedXML=zw(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=function(t){var e=[],n=Object(l.f)();return Object(l.k)(t,(function(t){if(null==t.namedFrom){var r=new dS(t.name,t.el);e.push(r),n.set(t.name,r)}})),{regions:e,regionsMap:n}}(t.named),n=e.regions,r=e.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n,r,i;try{n=(e=t&&(r=t,i={ignoreViewBox:!0,ignoreRootClip:!0},(new Hw).parse(r,i))||{}).root,Object(l.b)(null!=n)}catch(t){throw new Error("Invalid svg format\n"+t.message)}var o=new Mn;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=e.width,s=e.height,u=e.viewBoxRect,c=this._boundingRect;if(!c){var h=void 0,p=void 0,f=void 0,d=void 0;if(null!=a?(h=0,f=a):u&&(h=u.x,f=u.width),null!=s?(p=0,d=s):u&&(p=u.y,d=u.height),null==h||null==p){var g=n.getBoundingRect();null==h&&(h=g.x,f=g.width),null==p&&(p=g.y,d=g.height)}c=this._boundingRect=new ft(h,p,f,d)}if(u){var v=iS(u,c);n.scaleX=n.scaleY=v.scale,n.x=v.x,n.y=v.y}o.setClipPath(new vo({shape:c.plain()}));var y=[];return Object(l.k)(e.named,(function(t){var e;null!=gS.get(t.svgNodeTagLower)&&(y.push(t),(e=t.el).silent=!1,e.isGroup&&e.traverse((function(t){t.silent=!1})))})),{root:o,boundingRect:c,named:y}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();function yS(t,e,n){for(var r=0;r<t.length;r++)t[r]=mS(t[r],e[r],n)}function mS(t,e,n){for(var r=[],i=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=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<e.length;n++)if("南海诸岛"===e[n].name)return;e.push(new fS("南海诸岛",l.H(_S,(function(t){return{type:"polygon",exterior:t}})),xS))}}(n,e),Object(l.k)(e,(function(t){var e=t.name;!function(t,e){if("china"===t){var n=MS[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,e.setCenter(r)}}}(n,t),function(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:OS[0]})}(n,t);var r=this._specialAreas&&this._specialAreas[e];r&&t.transformTo(r.left,r.top,r.width,r.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function IS(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();(e=e||r.clone()).union(r)}return e}var kS=Object(l.f)(),AS=function(t,e,n){if(e.svg){var r=new vS(t,e.svg);kS.set(t,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?n=e.specialAreas:i=e;r=new CS(t,i,n);kS.set(t,r)}},TS=function(t){return kS.get(t)},DS=function(t){var e=kS.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},PS=function(t,e,n){var r=kS.get(t);if(r)return r.load(e,n)},LS=["rect","circle","line","ellipse","polygon","polyline","path"],jS=l.f(LS),ES=l.f(LS.concat(["g"])),RS=l.f(LS.concat(["g"])),NS=lr();function zS(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function BS(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}function VS(t,e,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=zS(i),u=zS(o),c=zS(s),h=zS(a),p=t.data;if(p){var f=p.getItemVisual(n,"style"),d=p.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),d&&(l.decal=Ld(d,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,ea(e)}function FS(t,e,n,r,i,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,p=void 0;(!s||o>=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;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),i}var YS=function(){function t(t){var e=new Mn;this.uid=fs("ec_map_draw"),this._controller=new Pw(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new Mn),e.add(this._svgGroup=new Mn)}return t.prototype.draw=function(t,e,n,r,i){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,p=c.roam;!l.childAt(0)||i?(u.x=p.x,u.y=p.y,u.scaleX=p.scaleX,u.scaleY=p.scaleY,u.dirty()):Ta(u,p,t);var f=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,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<t.length;++r){var i=c(t[r],n);i&&e.push(i)}return e}function p(t){return{shape:{points:h(t)}}}r.removeAll(),l.k(t.geo.regions,(function(i){var h=i.name,f=e.get(h),d=n.get(h)||{},g=d.dataIdx,v=d.regionModel;f||(f=e.set(h,new Mn),r.add(f),g=a?a.indexOfName(h):null,v=t.isGeo?o.getRegionModel(h):a?a.getItemModel(g):null,n.set(h,{dataIdx:g,regionModel:v}));var y=[],m=[];l.k(i.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);u&&(e=US(e,u)),l.k(e,(function(t){y.push(new Gh(p(t)))}))}else{var n=t.points;u&&(n=US(n,u,!0)),l.k(n,(function(t){m.push(new Uh(p(t)))}))}}));var b=c(i.getCenter(),s&&s.project);function x(e,n){if(e.length){var r=new ip({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});f.add(r),VS(t,r,g,v),FS(t,r,h,v,o,g,b),n&&(BS(r),l.k(r.states,BS))}}x(y),x(m,!0)})),e.each((function(e,r){var i=n.get(r),a=i.dataIdx,s=i.regionModel;GS(t,e,r,s,o,a),HS(t,e,r,s,o),WS(t,e,r,s,o)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var r=this._svgDispatcherMap=l.f(),i=!1;l.k(this._svgGraphicRecord.named,(function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);(null!=jS.get(s)&&l instanceof ti&&VS(t,l,u,c),l instanceof ti&&(l.culling=!0),l.z2EmphasisLift=0,e.namedFrom)||(null!=RS.get(s)&&FS(t,l,n,c,o,u,null),GS(t,l,n,c,o,u),HS(t,l,n,c,o),null!=ES.get(s)&&("self"===WS(t,l,n,c,o)&&(i=!0),(r.get(n)||r.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(i,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){ea(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(t);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=TS(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=TS(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var r=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=r.getZoom(),i.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}i.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,Lw(o,t.dx,t.dy),n.dispatchAction(l.m(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),i.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,jw(o,t.scale,t.originX,t.originY),n.dispatchAction(l.m(s(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),i.setPointerChecker((function(e,i,o){return r.containPoint([i,o])&&!Nw(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=NS(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,r){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){i._mouseDownFlag=!0})),e.on("click",(function(t){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},t}(),qS=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){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id)(o=this._mapDraw)&&i.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new YS(n);i.add(o.group),o.draw(t,e,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var r=t.originalData,i=this.group;r.each(r.mapDimension("value"),(function(e,n){if(!isNaN(e)){var o=r.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new yh({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var u=t.mainSeries.getData(),c=r.getName(n),h=u.indexOfName(c),p=r.getItemModel(n),f=p.getModel("label"),d=u.getItemGraphicEl(h);Va(l,Fa(p),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,f.get("position")||l.setTextConfig({position:"bottom"}),d.onHoverStateChange=function(t){Jo(l,t)}}i.add(l)}}}))},e.type="map",e}(Jp),XS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,r=n.getRegion(e);return r&&n.dataToPoint(r.getCenter())}},n}return a(e,t),e.prototype.getInitialData=function(t){for(var e=Kb(this,{coordDimensions:["value"],encodeDefaulter:l.h(_l,this)}),n=l.f(),r=[],i=0,o=e.count();i<o;i++){var a=e.getName(i);n.set(a,!0)}var s=PS(this.getMapType(),this.option.nameMap,this.option.nameProperty);return l.k(s.regions,(function(t){var e=t.name;n.get(e)||r.push(e)})),e.appendValues([],r),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var r=this.getData(),i=this.getRawValue(t),o=r.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=r.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return Sc("section",{header:s.join(", "),noHeader:!s.length,blocks:[Sc("nameValue",{name:o,value:i})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=ad(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-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;h<c;h++)l=Math.min(l,i[a][h]),u=Math.max(u,i[a][h]),s+=i[a][h];return o="min"===r?l:"max"===r?u:"average"===r?s/c:s,0===c?NaN:o}))),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=0===a&&!t[a].getHostGeoModel(),t[a].setData(o.cloneShallow()),t[a].mainSeries=t[0]}))}function ZS(t){var e={};t.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!e[r]){var i={};l.k(n.seriesGroup,(function(e){var n=e.coordinateSystem,r=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&r.each(r.mapDimension("value"),(function(t,e){var o=r.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=i[o]||0,l=n.dataToPoint(a.getCenter());i[o]=s+1,r.setItemLayout(e,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!i[e],o.setItemLayout(t,n)})),e[r]=!0}}))}var KS=S;function QS(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var JS=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new en,n._rawTransformable=new en,n.name=e,n}return a(e,t),e.prototype.setBoundingRect=function(t,e,n,r){return this._rect=new ft(t,e,n,r),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,r){this._transformTo(t,e,n,r),this._viewRect=new ft(t,e,n,r)},e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new ft(t,e,n,r));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[Tn(t[0],e.getWidth()),Tn(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=S([],r,t),n=S([],n,t),e.originX=r[0],e.originY=r[1],e.x=n[0]-r[0],e.y=n[1]-r[1],e.scaleX=e.scaleY=i,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),Q(this.transform||(this.transform=[]),e.transform||[1,0,0,1,0,0]),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],rt(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new en;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var r=e?this._rawTransform:this.transform;return n=n||[],r?KS(n,t,r):c(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?KS([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var r=QS(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=QS(e);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(en),tM={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},eM=["lng","lat"],nM=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.dimensions=eM,i.type="geo",i._nameCoordMap=l.f(),i.map=n;var o,a=r.projection,s=PS(n,r.nameMap,r.nameProperty),u=TS(n),c=(i.resourceType=u?u.type:null,i.regions=s.regions),h=tM[u.type];if(i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=a,a)for(var p=0;p<c.length;p++){var f=c[p].getBoundingRect(a);(o=o||f.clone()).union(f)}else o=s.boundingRect;return i.setBoundingRect(o.x,o.y,o.width,o.height),i.aspectScale=a?1:l.P(r.aspectScale,h.aspectScale),i._invertLongitute=!a&&h.invertLongitute,i}return a(e,t),e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._invertLongitute;i=i.clone(),o&&(i.y=-i.y-i.height);var a=this._rawTransformable;a.transform=i.calculateTransform(new ft(t,e,n,r));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var r=e[n];if("geoJSON"===r.type&&r.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(l.C(t)&&(t=this.getGeoCoord(t)),t){var r=this.projection;return r&&(t=r.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,r){return t.prototype.dataToPoint.call(this,e,n,r)},e.prototype.convertToPixel=function(t,e,n){var r=rM(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=rM(e);return r===this?r.pointToData(n):null},e}(JS);function rM(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",pr).models[0]||{}).coordinateSystem:null}l.K(nM,JS);var iM=nM;function oM(t,e){var n=t.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(t,e,n,a){for(var s=n-t,l=a-e,u=0;u<=100;u++){var c=u/100,h=o.project([t+s*c,e+l*c]);M(r,r,h),O(i,i,h)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else 0}var h,p,f,d=this.getBoundingRect(),g=t.get("layoutCenter"),v=t.get("layoutSize"),y=e.getWidth(),m=e.getHeight(),b=d.width/d.height*this.aspectScale,x=!1;if(g&&v&&(h=[Tn(g[0],y),Tn(g[1],m)],p=Tn(v,Math.min(y,m)),isNaN(h[0])||isNaN(h[1])||isNaN(p)||(x=!0)),x)f={},b>1?(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<i.length;a++)o.set(i[a].name,i[a]);var s=PS(e,n,r);return l.k(s.regions,(function(t){var e=t.name;!o.get(e)&&i.push({name:e})})),i},t}()),sM=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,n){var r=TS(t.map);if(r&&"geoJSON"===r.type){var i=t.itemStyle=t.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(t,n),Kn(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=aM.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=l.N(e.regions||[],(function(e,r){var i=r.name;return i&&(e.set(i,new hs(r,t,t.ecModel)),r.selected&&(n[i]=!0)),e}),l.f()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new hs(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),r="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:t};return l.w(r)?(i.status=e,r(i)):l.C(r)?r.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(hl);function lM(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function uM(t,e,n,r){var i=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(lM(t,s),r)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(i*a,u),l)/i}t.scaleX*=a,t.scaleY*=a;var c=(e.originX-t.x)*(a-1),h=(e.originY-t.y)*(a-1);t.x-=c,t.y-=h,t.updateTransform(),t.setCenter(lM(t,s),r),t.setZoom(a*i)}return{center:t.getCenter(),zoom:t.getZoom()}}var cM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return a(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,r){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new YS(n));var i=this._mapDraw;i.draw(t,e,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=t.get("silent"),this.group.add(i.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;qf(t.target,(function(t){return null!=(e=Lo(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var r=this;this._mapDraw.group.traverse((function(t){var e=Lo(t).eventData;if(e)return r._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(qc);function hM(t,e,n){AS(t,e,n)}function pM(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var o=n.coordinateSystem;Object(l.k)(o.regions,(function(t){r[t.name]=n.isSelected(t.name)||!1}));var a=[];Object(l.k)(r,(function(t,e){r[e]&&a.push(e)})),i.push({geoIndex:n.componentIndex,name:a})})),{selected:r,allSelected:i,name:t.name}}))}t.registerCoordinateSystem("geo",aM),t.registerComponentModel(sM),t.registerComponentView(cM),t.registerImpl("registerMap",hM),t.registerImpl("getMap",(function(t){return DS(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var r=t.componentType||"series";e.eachComponent({mainType:r,query:t},(function(e){var i=e.coordinateSystem;if("geo"===i.type){var o=uM(i,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===r&&Object(l.k)(e.seriesGroup,(function(t){t.setCenter(o.center),t.setZoom(o.zoom)}))}}))}))}function fM(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,i=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){!function(t){var e=t.children,n=e.length,r=0,i=0;for(;--n>=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;p<r-1;p++){var f=n[p];t.moveTo(f[0],f[1]),h[l]=f[l],t.lineTo(h[0],h[1])}},e}(to);function MM(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function OM(t,e,n,r,i){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),u=a.getVisual("style").fill,c=!1===a.isExpand&&0!==a.children.length?u:"#fff",h=t.tree.root,p=a.parentNode===h?a:a.parentNode||a,f=t.getItemGraphicEl(p.dataIndex),d=p.getLayout(),g=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:d,v=a.getLayout();o?((n=new bm(t,e,null,{symbolInnerColor:c,useNameLabel:!0})).x=g.x,n.y=g.y):n.updateData(t,e,null,{symbolInnerColor:c,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=v.rawX,n.__radialRawY=v.rawY,r.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,Ta(n,{x:v.x,y:v.y},i);var y=n.getSymbolPath();if("radial"===i.get("layout")){var m=h.children[0],b=m.getLayout(),x=m.children.length,_=void 0,w=void 0;if(v.x===b.x&&!0===a.isExpand&&m.children.length){var S={x:(m.children[0].getLayout().x+m.children[x-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[x-1].getLayout().y)/2};(_=Math.atan2(S.y-b.y,S.x-b.x))<0&&(_=2*Math.PI+_),(w=S.x<b.x)&&(_-=Math.PI)}else(_=Math.atan2(v.y-b.y,v.x-b.x))<0&&(_=2*Math.PI+_),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(w=v.x<b.x)&&(_-=Math.PI):(w=v.x>b.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;b<y.length;b++){var x=y[b].getLayout();m.push([x.x,x.y])}v||(v=r.__edge=new SM({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:p,forkPosition:d}})),Ta(v,{shape:{parentPoint:[a.x,a.y],childPoints:m}},t)}}else 0;v&&("polyline"!==c||e.isExpand)&&(v.useStyle(l.i({strokeNoScale:!0,fill:null},g)),wa(v,u,"lineStyle"),ea(v),s.add(v))}(i,a,h,n,g,d,v,r),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var r=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);r&&1===r.hoverState||Jo(n.__edge,e)}})}function CM(t,e,n,r,i){var o=IM(e.tree.root,t),a=o.source,s=o.sourceLayout,l=e.getItemGraphicEl(t.dataIndex);if(l){var u=e.getItemGraphicEl(a.dataIndex).__edge,c=l.__edge||(!1===a.isExpand||1===a.children.length?u:void 0),h=r.get("edgeShape"),p=r.get("layout"),f=r.get("orient"),d=r.get(["lineStyle","curveness"]);c&&("curve"===h?La(c,{shape:AM(p,f,d,s,s),style:{opacity:0}},r,{cb:function(){n.remove(c)},removeOpt:i}):"polyline"===h&&"orthogonal"===r.get("layout")&&La(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},r,{cb:function(){n.remove(c)},removeOpt:i}))}}function IM(t,e){for(var n,r=e.parentNode===t?e:e.parentNode||e;null==(n=r.getLayout());)r=r.parentNode===t?r:r.parentNode||r;return{source:r,sourceLayout:n}}function kM(t,e,n,r,i){var o=t.tree.getNodeByDataIndex(e),a=IM(t.tree.root,o).sourceLayout,s={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};La(n,{x:a.x+1,y:a.y+1},i,{cb:function(){r.remove(n),t.setItemGraphicEl(e,null)},removeOpt:s}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach((function(e){CM(e,t,r,i,s)})),CM(o,t,r,i,s)}function AM(t,e,n,r,i){var o,a,s,l,u,c,h,p;if("radial"===t){u=r.rawX,h=r.rawY,c=i.rawX,p=i.rawY;var f=vM(u,h),d=vM(u,h+(p-h)*n),g=vM(c,p+(h-p)*n),v=vM(c,p);return{x1:f.x||0,y1:f.y||0,x2:v.x||0,y2:v.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=r.x,h=r.y,c=i.x,p=i.y,"LR"!==e&&"RL"!==e||(o=u+(c-u)*n,a=h,s=c+(u-c)*n,l=p),"TB"!==e&&"BT"!==e||(o=u,a=h+(p-h)*n,s=c,l=p+(h-p)*n),{x1:u,y1:h,x2:c,y2:p,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var TM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new Mn,n}return a(e,t),e.prototype.init=function(t,e){this._controller=new Pw(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var r=t.getData(),i=t.layoutInfo,o=this._mainGroup;"radial"===t.get("layout")?(o.x=i.x+i.width/2,o.y=i.y+i.height/2):(o.x=i.x,o.y=i.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var a=this._data;r.diff(a).add((function(e){MM(r,e)&&OM(r,e,null,o,t)})).update((function(e,n){var i=a.getItemGraphicEl(n);MM(r,e)?OM(r,e,i,o,t):i&&kM(a,n,i,o,t)})).remove((function(e){var n=a.getItemGraphicEl(e);n&&kM(a,e,n,o,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&r.eachItemGraphicEl((function(e,r){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:r})}))})),this._data=r},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),r=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||r.push([+e.x,+e.y])}));var i=[],o=[];ui(r,i,o);var a=this._min,s=this._max;o[0]-i[0]==0&&(i[0]=a?a[0]:i[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-i[1]==0&&(i[1]=a?a[1]:i[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new JS;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=i,this._max=o},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)})),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:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){jw(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),r._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,r=e.scaleX||1;return((e.getZoom()-1)*n+1)/r},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(Jp),DM=lr();function PM(t,e){if(DM(r=this).mainData===r){var n=Object(l.m)({},DM(this).datas);n[this.dataType]=e,NM(e,n,t)}else zM(e,this.dataType,DM(this).mainData,t);var r;return e}function LM(t,e){return t.struct&&t.struct.update(),e}function jM(t,e){return Object(l.k)(DM(e).datas,(function(n,r){n!==e&&zM(n.cloneShallow(),r,e,t)})),e}function EM(t){var e=DM(this).mainData;return null==t||null==e?e:DM(e).datas[t]}function RM(){var t=DM(this).mainData;return null==t?[{data:t}]:Object(l.H)(Object(l.F)(DM(t).datas),(function(e){return{type:e,data:DM(t).datas[e]}}))}function NM(t,e,n){DM(t).datas={},Object(l.k)(e,(function(e,r){zM(e,r,t,n)}))}function zM(t,e,n,r){DM(n).datas[e]=t,DM(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=EM,t.getLinkedDataAll=RM}var BM=function(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,NM(e,n,t),Object(l.k)(n,(function(n){Object(l.k)(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,Object(l.h)(PM,t))}))})),e.wrapMethod("cloneShallow",Object(l.h)(jM,t)),Object(l.k)(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,Object(l.h)(LM,t))})),Object(l.b)(n[e.dataType]===e)},VM=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){l.w(t)&&(n=e,e=t,t=null),t=t||{},l.C(t)&&(t={order:t});var r,i=t.order||"preorder",o=this[t.attr||"children"];"preorder"===i&&(r=e.call(n,this));for(var a=0;!r&&a<o.length;a++)o[a].eachNode(t,e,n);"postorder"===i&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(t+1),r.height>e&&(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<r;e++){var i=n[e].getNodeById(t);if(i)return i}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,r=n.length;e<r;e++){var i=n[e].contains(t);if(i)return i}},t.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=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<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}();var FM=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,r=e.length;n<r;n++)e[n].dataIndex=-1;for(n=0,r=t.count();n<r;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,r){var i=new t(n),o=[],a=1;!function t(e,n){var r=e.value;a=Math.max(a,l.t(r)?r.length:1),o.push(e);var s=new VM(ir(e.name,""),i);n?function(t,e){var n=e.children;if(t.parentNode===e)return;n.push(t),t.parentNode=e}(s,n):i.root=s,i._nodes.push(s);var u=e.children;if(u)for(var c=0;c<u.length;c++)t(u[c],s)}(e),i.root.updateDepthAndHeight(0);var s=am(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new om(s,n);return u.initData(o),r&&r(u),BM({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},t}();function GM(t,e,n){if(t&&l.r(e,t.type)>=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;s<a.length;s++)i.push(a[s])}for(;r=o.pop();)e(r,n)}(l,fM,a),s.hierNode.modifier=-l.hierNode.prelim,qM(l,dM);var u=l,c=l,h=l;qM(l,(function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>c.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;r<i;r++){var o=this._storage[r];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();var rO=Mn,iO=vo,oO=Cr([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),aO=function(t){var e=oO(t);return e.stroke=e.fill=e.lineWidth=null,e},sO=lr();var lO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return a(e,t),e.prototype.render=function(t,e,n,r){var i=e.findComponents({mainType:"series",subType:"treemap",query:r});if(!(Object(l.r)(i,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=GM(r,["treemapZoomToNode","treemapRootToNode"],t),a=r&&r.type,s=t.layoutInfo,u=!this._oldTree,c=this._storage,h="treemapRootToNode"===a&&o&&c?{rootNodeGroup:c.nodeGroup[o.node.getRawIndex()],direction:r.direction}:null,p=this._giveContainerGroup(s),f=t.get("animation"),d=this._doRender(p,t,h);!f||u||a&&"treemapZoomToNode"!==a&&"treemapRootToNode"!==a?d.renderFinally():this._doAnimation(p,d,t,h),this._resetController(n),this._renderBreadcrumb(t,n,o)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new rO,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var r=e.getData().tree,i=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,u=[];function c(t,r,i,c){return function(t,e,n,r,i,o,a,s,u,c){if(!a)return;var h=a.getLayout(),p=t.getData(),f=a.getModel();if(p.setItemGraphicEl(a.dataIndex,null),!h||!h.isInView)return;var d=h.width,g=h.height,v=h.borderWidth,y=h.invisible,m=a.getRawIndex(),b=s&&s.getRawIndex(),x=a.viewChildren,_=h.upperHeight,w=x&&x.length,S=f.getModel("itemStyle"),M=f.getModel(["emphasis","itemStyle"]),O=f.getModel(["blur","itemStyle"]),C=f.getModel(["select","itemStyle"]),I=S.get("borderRadius")||0,k=B("nodeGroup",rO);if(!k)return;if(u.add(k),k.x=h.x||0,k.y=h.y||0,k.markRedraw(),sO(k).nodeWidth=d,sO(k).nodeHeight=g,h.isAboveViewRoot)return k;var A=B("background",iO,c,20);A&&function(e,n,r){var i=Lo(n);if(i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:d,height:g,r:I}),y)R(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=aO(S);l.fill=s;var u=oO(M);u.fill=M.get("borderColor");var c=oO(O);c.fill=O.get("borderColor");var h=oO(C);if(h.fill=C.get("borderColor"),r){var p=d-2*v;N(n,s,o.opacity,{x:v,y:0,width:p,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,ea(n)}e.add(n)}(k,A,w&&h.upperLabelHeight);var T=f.getModel("emphasis"),D=T.get("focus"),P=T.get("blurScope"),L=T.get("disabled"),j="ancestor"===D?a.getAncestorsIndices():"descendant"===D?a.getDescendantIndices():D;if(w)Ma(k)&&Sa(k,!1),A&&(Sa(A,!L),p.setItemGraphicEl(a.dataIndex,A),ba(A,j,P));else{var E=B("content",iO,c,30);E&&function(e,n){var r=Lo(n);r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex;var i=Math.max(d-2*v,0),o=Math.max(g-2*v,0);if(n.culling=!0,n.setShape({x:v,y:v,width:i,height:o,r:I}),y)R(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=aO(S);u.fill=l,u.decal=s.decal;var c=oO(M),h=oO(O),p=oO(C);N(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=p,ea(n)}e.add(n)}(k,E),A.disableMorphing=!0,A&&Ma(A)&&Sa(A,!1),Sa(k,!L),p.setItemGraphicEl(a.dataIndex,k),ba(k,j,P)}return k;function R(t){!t.invisible&&o.push(t)}function N(e,n,r,i){var o=f.getModel(i?"upperLabel":"label"),s=ir(f.get("name"),null),u=o.getShallow("show");Va(e,Fa(f,i?"upperLabel":"label"),{defaultText:u?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:t,labelDataIndex:a.dataIndex});var c=e.getTextContent();if(c){var p=c.style,d=Object(l.M)(p.padding||0);i&&(e.setTextConfig({layoutRect:i}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var t=Math.max((i?i.width:e.shape.width)-d[1]-d[3],0),n=Math.max((i?i.height:e.shape.height)-d[0]-d[2],0);p.width===t&&p.height===n||c.setStyle({width:t,height:n})},p.truncateMinChar=2,p.lineOverflow="truncate",z(p,i,h);var g=c.getState("emphasis");z(g?g.style:null,i,h)}}function z(e,n,r){var i=e?e.text:null;if(!n&&r.isLeafRoot&&null!=i){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+i:i}}function B(t,o,s,u){var c=null!=b&&n[t][b],h=i[t];return c?(n[t][b]=null,function(t,e){var n=t[m]={};e instanceof rO?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Object(l.m)({},e.shape)}(h,c)):y||((c=new o)instanceof ti&&(c.z2=function(t,e){return 100*t+e}(s,u)),function(t,e){var n=t[m]={},o=a.parentNode,s=e instanceof Mn;if(o&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=i.background[o.getRawIndex()];!r&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}(h,c)),e[t][m]=c}}(e,a,s,n,o,u,t,r,i,c)}!function t(e,n,r,i,o){i?(n=e,Object(l.k)(e,(function(t,e){!t.isRemoved()&&s(e,e)}))):new Ey(n,e,a,a).add(s).update(s).remove(Object(l.h)(s,null)).execute();function a(t){return t.getId()}function s(a,s){var l=null!=a?e[a]:null,u=null!=s?n[s]:null,h=c(l,u,r,o);h&&t(l&&l.viewChildren||[],u&&u.viewChildren||[],h,i,o+1)}}(r.root?[r.root]:[],i&&i.root?[i.root]:[],t,r===i||!i,0);var h=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&Object(l.k)(t,(function(t,n){var r=e[n];Object(l.k)(t,(function(t){t&&(r.push(t),sO(t).willDelete=!0)}))})),e}(s);return this._oldTree=r,this._storage=a,{lastsForAnimation:o,willDeleteEls:h,renderFinally:function(){Object(l.k)(h,(function(t){Object(l.k)(t,(function(t){t.parent&&t.parent.remove(t)}))})),Object(l.k)(u,(function(t){t.invisible=!0,t.dirty()}))}}},e.prototype._doAnimation=function(t,e,n,r){var i=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(Object(l.w)(i)?0:i)||0,s=(Object(l.w)(o)?null:o)||"cubicOut",u=new nO;Object(l.k)(e.willDeleteEls,(function(t,e){Object(l.k)(t,(function(t,n){if(!t.invisible){var i,o=t.parent,l=sO(o);if(r&&"drillDown"===r.direction)i=o===r.rootNodeGroup?{shape:{x:0,y:0,width:l.nodeWidth,height:l.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;l.willDelete||(c=l.nodeWidth/2,h=l.nodeHeight/2),i="nodeGroup"===e?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}i&&u.add(t,i,a,0,s)}}))})),Object(l.k)(this._storage,(function(t,n){Object(l.k)(t,(function(t,r){var i=e.lastsForAnimation[n][r],o={};i&&(t instanceof Mn?null!=i.oldX&&(o.x=t.x,o.y=t.y,t.x=i.oldX,t.y=i.oldY):(i.oldShape&&(o.shape=Object(l.m)({},t.shape),t.setShape(i.oldShape)),i.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),u.add(t,o,a,0,s))}))}),this),this._state="animating",u.finished(Object(l.c)((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller;e||((e=this._controller=new Pw(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",Object(l.c)(this._onPan,this)),e.on("zoom",Object(l.c)(this._onZoom,this)));var n=new ft(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,r){return n.contain(e,r)}))},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||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;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||l.C(s)&&s===t+"")return o;n&&p(s,o)}}for(o=0,a=e.length;o<a;o++){var u=e[o],c=u.interval,h=u.close;if(c){if(c[0]===-1/0){if(wO(h[1],t,c[1]))return o}else if(c[1]===1/0){if(wO(h[0],c[0],t))return o}else if(wO(h[0],c[0],t)&&wO(h[1],t,c[1]))return o;n&&p(c[0],o),n&&p(c[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:r;function p(e,n){var o=Math.abs(e-t);o<i&&(i=o,r=n)}},t.visualHandlers={color:{applyVisual:gO("color"),getColorMapper:function(){var t=this.option;return l.c("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),vO.call(this,t)}:function(e,n,r){var i=!!r;return!n&&(e=this._normalizeData(e)),r=se.a(e,t.parsedVisual,r),i?r:se.h(r,"rgba")},this)},_normalizedToVisual:{linear:function(t){return se.h(se.a(t,this.option.parsedVisual),"rgba")},category:vO,piecewise:function(t,e){var n=bO.call(this,e);return null==n&&(n=se.h(se.a(t,this.option.parsedVisual),"rgba")),n},fixed:yO}},colorHue:fO((function(t,e){return se.f(t,e)})),colorSaturation:fO((function(t,e){return se.f(t,null,e)})),colorLightness:fO((function(t,e){return se.f(t,null,null,e)})),colorAlpha:fO((function(t,e){return se.e(t,e)})),decal:{applyVisual:gO("decal"),_normalizedToVisual:{linear:null,category:vO,piecewise:null,fixed:null}},opacity:{applyVisual:gO("opacity"),_normalizedToVisual:mO([0,1])},liftZ:{applyVisual:gO("liftZ"),_normalizedToVisual:{linear:yO,category:yO,piecewise:yO,fixed:yO}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:dO,category:vO,piecewise:function(t,e){var n=bO.call(this,e);return null==n&&(n=dO.call(this,t)),n},fixed:yO}},symbolSize:{applyVisual:gO("symbolSize"),_normalizedToVisual:mO([0,1])}},t}();function pO(t,e){var n=t.visual,r=[];l.A(n)?uO(n,(function(t){r.push(t)})):null!=n&&r.push(n);e||1!==r.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(r[1]=r[0]),xO(t,r)}function fO(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:mO([0,1])}}function dO(t){var e=this.option.visual;return e[Math.round(An(t,[0,1],[0,e.length-1],!0))]||{}}function gO(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function vO(t){var e=this.option.visual;return e[this.option.loop&&-1!==t?t%e.length:t]}function yO(){return this.option.visual[0]}function mO(t){return{linear:function(e){return An(e,t,this.option.visual,!0)},category:vO,piecewise:function(e,n){var r=bO.call(this,n);return null==r&&(r=An(e,t,this.option.visual,!0)),r},fixed:yO}}function bO(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=n[hO.findPieceIndex(t,n)];if(r&&r.visual)return r.visual[this.type]}}function xO(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=l.H(e,(function(t){var e=se.g(t);return e||[0,0,0,1]}))),e}var _O={linear:function(t){return An(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=hO.findPieceIndex(t,e,!0);if(null!=n)return An(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?-1:e},fixed:l.L};function wO(t,e,n){return t?e<=n:e<n}var SO=hO,MO=lr(),OO={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||function t(e,n,r,i){var o=e.getModel(),a=e.getLayout(),s=e.hostTree.data;if(!a||a.invisible||!a.isInView)return;var u,c=o.getModel("itemStyle"),h=function(t,e,n){var r=Object(l.m)({},e),i=n.designatedVisualItemStyle;return Object(l.k)(["color","colorAlpha","colorSaturation"],(function(n){i[n]=e[n];var o=t.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}(c,n,i),p=s.ensureUniqueItemVisual(e.dataIndex,"style"),f=c.get("borderColor"),d=c.get("borderColorSaturation");null!=d&&(u=CO(h),f=function(t,e){return null!=e?Object(se.f)(e,null,null,t):null}(d,u));p.stroke=f;var g=e.viewChildren;if(g&&g.length){var v=function(t,e,n,r,i,o){if(!o||!o.length)return;var a=kO(e,"color")||null!=i.color&&"none"!==i.color&&(kO(e,"colorAlpha")||kO(e,"colorSaturation"));if(!a)return;var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[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;p<f;p++)c+=h[p].getValue();var d=a.getValue();if(0===d)return s;u*=c/d;var g=o.getModel(),v=g.get(LO),y=Math.max(v,VO(g));(u+=4*v*v+(3*v+y)*Math.pow(u,.5))>9007199254740991&&(u=9007199254740991),a=o}u<l&&(u=l);var m=Math.pow(u/l,.5);return[r*m,i*m]}(t,f,g,c,h):d?[d.width,d.height]:[c,h],m=a.sort;m&&"asc"!==m&&"desc"!==m&&(m="desc");var b={squareRatio:a.squareRatio,sort:m,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(x),function t(e,n,r,i){var o,a;if(e.isRemoved())return;var s=e.getLayout();o=s.width,a=s.height;var u=e.getModel(),c=u.get(LO),h=u.get(jO)/2,p=VO(u),f=Math.max(c,p),d=c-h,g=f-h;e.setLayout({borderWidth:c,upperHeight:f,upperLabelHeight:p},!0),o=AO(o-2*d,0),a=AO(a-d-g,0);var v=o*a,y=function(t,e,n,r,i,o){var a=t.children||[],s=r.sort;"asc"!==s&&"desc"!==s&&(s=null);var u=null!=r.leafDepth&&r.leafDepth<=o;if(i&&!u)return t.viewChildren=[];!function(t,e){e&&t.sort((function(t,n){var r="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===r?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:r}))}(a=l.n(a,(function(t){return!t.isRemoved()})),s);var c=function(t,e,n){for(var r=0,i=0,o=e.length;i<o;i++)r+=e[i].getValue();var a,s=t.get("visualDimension");e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],PO(e,(function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[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*e<o&&(s=l,n-=u)}return"asc"===r?i.splice(0,a-s):i.splice(s,a-s),n}(e,n,c.sum,s,a),0===c.sum)return t.viewChildren=[];for(var h=0,p=a.length;h<p;h++){var f=a[h].getValue()/c.sum*n;a[h].setLayout({area:f})}u&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0);return t.viewChildren=a,t.setLayout({dataExtent:c.dataExtent},!0),a}(e,u,v,n,r,i);if(!y.length)return;var m={x:d,y:g,width:o,height:a},b=TO(o,a),x=1/0,_=[];_.area=0;for(var w=0,S=y.length;w<S;){var M=y[w];_.push(M),_.area+=M.getLayout().area;var O=zO(_,b,n.squareRatio);O<=x?(w++,x=O):(_.area-=_.pop().getLayout().area,BO(_,b,m,h,!1),b=TO(m.width,m.height),_.length=_.area=0,x=1/0)}_.length&&BO(_,b,m,h,!0);if(!r){var C=u.get("childrenVisibleMin");null!=C&&v<C&&(r=!0)}for(w=0,S=y.length;w<S;w++)t(y[w],n,r,i+1)}(g,b,!1,0),x=g.getLayout(),PO(v,(function(t,e){var n=(v[e+1]||g).getValue();t.setLayout(l.m({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var _=t.getData().tree.root;_.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!n)return r;var i=n.node,o=i.getLayout();if(!o)return r;var a=[o.width/2,o.height/2],s=i;for(;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}(s,d,f),!0),t.setLayoutInfo(s),function t(e,n,r,i,o){var a=e.getLayout(),s=r[o],l=s&&s===e;if(s&&!l||o===r.length&&e!==i)return;e.setLayout({isInView:!0,invisible:!l&&!n.intersect(a),isAboveViewRoot:l},!0);var u=new ft(n.x-a.x,n.y-a.y,n.width,n.height);PO(e.viewChildren||[],(function(e){t(e,u,r,i,o+1)}))}(_,new ft(-s.x,-s.y,i,o),v,g,0)}};function zO(t,e,n){for(var r=0,i=1/0,o=0,a=void 0,s=t.length;o<s;o++)(a=t[o].getLayout().area)&&(a<i&&(i=a),a>r&&(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;h<p;h++){var f=t[h],d={},g=c?f.getLayout().area/c:0,v=d[l[a]]=AO(c-2*r,0),y=n[s[o]]+n[l[o]]-u,m=h===p-1||y<g?y:g,b=d[l[o]]=AO(m-2*r,0);d[s[a]]=n[s[a]]+TO(r,v/2),d[s[o]]=u+TO(r,b/2),u+=m,f.setLayout(d,!0)}n[s[a]]+=c,n[l[a]]-=c}function VO(t){return t.get(EO)?t.get(RO):0}function FO(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),r=t.getGraph().data,i=n.mapArray(n.getName);r.filterSelf((function(t){var n=r.getItemModel(t).getShallow("category");if(null!=n){Object(l.z)(n)&&(n=i[n]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(n))return!1}return!0}))}))}function GO(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),r=t.getData(),i={};n.each((function(r){var o=n.getName(r);i["ec-"+o]=r;var a=n.getItemModel(r),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),n.setItemVisual(r,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(r,l[u],c)}})),n.count()&&r.each((function(t){var e=r.getItemModel(t).getShallow("category");if(null!=e){Object(l.C)(e)&&(e=i["ec-"+e]);var o=n.getItemVisual(e,"style"),a=r.ensureUniqueItemVisual(t,"style");Object(l.m)(a,o);for(var s=["symbol","symbolSize","symbolKeepAspect"],u=0;u<s.length;u++)r.setItemVisual(t,s[u],n.getItemVisual(e,s[u]))}}))}))}function HO(t){return t instanceof Array||(t=[t,t]),t}function WO(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),r=HO(t.get("edgeSymbol")),i=HO(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var r=n.getItemModel(t),i=e.getEdgeByIndex(t),o=HO(r.getShallow("symbol",!0)),a=HO(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),u=n.ensureUniqueItemVisual(t,"style");switch(Object(l.m)(u,s),u.stroke){case"source":var c=i.node1.getVisual("style");u.stroke=c&&c.fill;break;case"target":c=i.node2.getVisual("style");u.stroke=c&&c.fill}o[0]&&i.setVisual("fromSymbol",o[0]),o[1]&&i.setVisual("toSymbol",o[1]),a[0]&&i.setVisual("fromSymbolSize",a[0]),a[1]&&i.setVisual("toSymbolSize",a[1])}))}))}var UO=function(t){return t.get("autoCurveness")||null},YO=function(t,e){var n=UO(t),r=20,i=[];if(l.z(n))r=n;else if(l.t(n))return void(t.__curvenessList=n);e>r&&(r=e);var o=r%2?r+2:r+3;i=[];for(var a=0;a<o;a++)i.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=i},qO=function(t,e,n){var r=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[n.uid,r,i].join("--\x3e")},XO=function(t){var e=t.split("--\x3e");return[e[0],e[2],e[1]].join("--\x3e")},$O=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function ZO(t,e,n,r){var i=UO(e),o=l.t(i);if(!i)return null;var a=function(t,e){var n=qO(t.node1,t.node2,e);return e.__edgeMap[n]}(t,e);if(!a)return null;for(var s=-1,u=0;u<a.length;u++)if(a[u]===n){s=u;break}var c=function(t,e){return $O(qO(t.node1,t.node2,e),e)+$O(qO(t.node2,t.node1,e),e)}(t,e);YO(e,c),t.lineStyle=t.lineStyle||{};var h=qO(t.node1,t.node2,e),p=e.__curvenessList,f=o||c%2?0:1;if(a.isForward)return p[f+s];var d=XO(h),g=$O(d,e),v=p[s+g+f];return r?o?i&&0===i[0]?(g+f)%2?v:-v:((g%2?0:1)+f)%2?v:-v:(g+f)%2?v:-v:p[s+g+f]}function KO(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),QO(n,t)}}function QO(t,e){t.eachEdge((function(t,n){var r=l.Q(t.getModel().get(["lineStyle","curveness"]),-ZO(t,e,n,!0),0),i=h(t.node1.getLayout()),o=h(t.node2.getLayout()),a=[i,o];+r&&a.push([(i[0]+o[0])/2-(i[1]-o[1])*r,(i[1]+o[1])/2-(o[0]-i[0])*r]),t.setLayout(a)}))}function JO(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var r=t.getData(),i=[];Object(l.k)(n.dimensions,(function(t){i=i.concat(r.mapDimensionsAll(t))}));for(var o=0;o<r.count();o++){for(var a=[],s=!1,u=0;u<i.length;u++){var c=r.get(i[u],o);isNaN(c)||(s=!0),a.push(c)}s?r.setItemLayout(o,n.dataToPoint(a)):r.setItemLayout(o,[NaN,NaN])}QO(r.graph,t)}else e&&"none"!==e||KO(t)}))}function tC(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,r=e.scaleX;return((e.getZoom()-1)*n+1)/r}function eC(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var nC=Math.PI,rC=[];function iC(t,e,n,r){var i=t.coordinateSystem;if(!i||"view"===i.type){var o=i.getBoundingRect(),a=t.getData(),s=a.graph,u=o.width/2+o.x,c=o.height/2+o.y,p=Math.min(o.width,o.height)/2,f=a.count();if(a.setLayout({cx:u,cy:c}),f){if(n){var d=i.pointToData(r),g=d[0],v=d[1],b=[g-u,v-c];m(b,b),y(b,b,p),n.setLayout([u+b[0],c+b[1]],!0),aC(n,t.get(["circular","rotateLabel"]),u,c)}oC[e](t,s,a,p,u,c,f),s.eachEdge((function(e,n){var r,i=l.Q(e.getModel().get(["lineStyle","curveness"]),ZO(e,t,n),0),o=h(e.node1.getLayout()),a=h(e.node2.getLayout()),s=(o[0]+a[0])/2,p=(o[1]+a[1])/2;+i&&(r=[u*(i*=3)+s*(1-i),c*i+p*(1-i)]),e.setLayout([o,a,r])}))}}}var oC={value:function(t,e,n,r,i,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=n}))},symbolSize:function(t,e,n,r,i,o,a){var s=0;rC.length=a;var l=tC(t);e.eachNode((function(t){var e=eC(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/r);isNaN(n)&&(n=nC/2),rC[t.dataIndex]=n,s+=2*n}));var u=(2*nC-s)/a/2,c=0;e.eachNode((function(t){var e=u+rC[t.dataIndex];c+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+o]),c+=e}))}};function aC(t,e,n,r){var i=t.getGraphicEl();if(i){var o=t.getModel().get(["label","rotate"])||0,a=i.getSymbolPath();if(e){var s=t.getLayout(),u=Math.atan2(s[1]-r,s[0]-n);u<0&&(u=2*Math.PI+u);var c=s[0]<n;c&&(u-=Math.PI);var h=c?"left":"right";a.setTextConfig({rotation:-u,position:h,origin:"center"});var p=a.ensureState("emphasis");l.m(p.textConfig||(p.textConfig={}),{position:h})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function sC(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&iC(t,"symbolSize")}))}var lC=f;function uC(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},r=t.getGraph(),i=r.data,o=r.edgeData,a=t.getModel("force"),s=a.get("initLayout");t.preservedPoints?i.each((function(t){var e=i.getId(t);i.setItemLayout(t,n[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&iC(t,"value"):KO(t);var p=i.getDataExtent("value"),f=o.getDataExtent("value"),v=a.get("repulsion"),y=a.get("edgeLength"),b=l.t(v)?v:[v,v],x=l.t(y)?y:[y,y];x=[x[1],x[0]];var _=i.mapArray("value",(function(t,e){var n=i.getItemLayout(e),r=An(t,p,b);return isNaN(r)&&(r=(b[0]+b[1])/2),{w:r,rep:r,fixed:i.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),w=o.mapArray("value",(function(e,n){var i=r.getEdgeByIndex(n),o=An(e,f,x);isNaN(o)&&(o=(x[0]+x[1])/2);var a=i.getModel(),s=l.Q(i.getModel().get(["lineStyle","curveness"]),-ZO(i,t,n,!0),0);return{n1:_[i.node1.dataIndex],n2:_[i.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),S=e.getBoundingRect(),M=function(t,e,n){for(var r=t,i=e,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],p=null==n.gravity?.1:n.gravity,f=0;f<r.length;f++){var v=r[f];v.p||(v.p=u(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),v.pp=h(v.p),v.edges=null}var y,b,x=null==n.friction?.6:n.friction,_=x;return{warmUp:function(){_=.8*x},setFixed:function(t){r[t].fixed=!0},setUnfixed:function(t){r[t].fixed=!1},beforeStep:function(t){y=t},afterStep:function(t){b=t},step:function(t){y&&y(r,i);for(var e,n,o,a=[],s=r.length,u=0;u<i.length;u++){var h=i[u];if(!h.ignoreForceLayout){var f=h.n1;d(a,(S=h.n2).p,f.p);var v=g(a)-h.d,x=S.w/(f.w+S.w);isNaN(x)&&(x=0),m(a,a),!f.fixed&&lC(f.p,f.p,a,x*v*_),!S.fixed&&lC(S.p,S.p,a,-(1-x)*v*_)}}for(u=0;u<s;u++){(C=r[u]).fixed||(d(a,l,C.p),lC(C.p,C.p,a,p*_))}for(u=0;u<s;u++){f=r[u];for(var w=u+1;w<s;w++){var S;d(a,(S=r[w]).p,f.p),0===(v=g(a))&&(e=a,n=Math.random()-.5,o=Math.random()-.5,e[0]=n,e[1]=o,v=1);var M=(f.rep+S.rep)/v/v;!f.fixed&&lC(f.pp,f.pp,a,M),!S.fixed&&lC(S.pp,S.pp,a,-M)}}var O=[];for(u=0;u<s;u++){var C;(C=r[u]).fixed||(d(O,C.p,C.pp),lC(C.p,C.p,O,_),c(C.pp,C.p))}var I=(_*=.992)<.01;b&&b(r,i,I),t&&t(I)}}}(_,w,{rect:S,gravity:a.get("gravity"),friction:a.get("friction")});M.beforeStep((function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].fixed&&c(t[n].p,r.getNodeByIndex(n).getLayout())})),M.afterStep((function(t,e,o){for(var a=0,s=t.length;a<s;a++)t[a].fixed||r.getNodeByIndex(a).setLayout(t[a].p),n[i.getId(a)]=t[a].p;for(a=0,s=e.length;a<s;a++){var l=e[a],u=r.getEdgeByIndex(a),h=l.n1.p,p=l.n2.p,f=u.getLayout();(f=f?f.slice():[])[0]=f[0]||[],f[1]=f[1]||[],c(f[0],h),c(f[1],p),+l.curveness&&(f[2]=[(h[0]+p[0])/2-(h[1]-p[1])*l.curveness,(h[1]+p[1])/2-(p[0]-h[0])*l.curveness]),u.setLayout(f)}})),t.forceLayout=M,t.preservedPoints=n,M.step()}else t.forceLayout=null}))}function cC(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var r=t.get("coordinateSystem");if(!r||"view"===r){var i=t.getData(),o=[],a=[];ui(i.mapArray((function(t){var e=i.getItemModel(t);return[+e.get("x"),+e.get("y")]})),o,a),a[0]-o[0]==0&&(a[0]+=1,o[0]-=1),a[1]-o[1]==0&&(a[1]+=1,o[1]-=1);var s=(a[0]-o[0])/(a[1]-o[1]),u=function(t,e,n){return rl(Object(l.m)(t.getBoxLayoutParams(),{aspect:n}),{width:e.getWidth(),height:e.getHeight()})}(t,e,s);isNaN(s)&&(o=[u.x,u.y],a=[u.x+u.width,u.y+u.height]);var c=a[0]-o[0],h=a[1]-o[1],p=u.width,f=u.height,d=t.coordinateSystem=new JS;d.zoomLimit=t.get("scaleLimit"),d.setBoundingRect(o[0],o[1],c,h),d.setViewRect(u.x,u.y,p,f),d.setCenter(t.get("center"),e),d.setZoom(t.get("zoom")),n.push(d)}})),n}var hC=$h.prototype,pC=tp.prototype,fC=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}a(e,t)}(fC);function dC(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var gC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return a(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fC},e.prototype.buildPath=function(t,e){dC(e)?hC.buildPath.call(this,t,e):pC.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return dC(this.shape)?hC.pointAt.call(this,t):pC.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=dC(e)?[e.x2-e.x1,e.y2-e.y1]:pC.tangentAt.call(this,t);return m(n,n)},e}(to),vC=["fromSymbol","toSymbol"];function yC(t){return"_"+t+"Type"}function mC(t,e,n){var r=e.getItemVisual(n,t);if(r&&"none"!==r){var i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=sd(i),u=ld(a||0,l),c=ad(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=t,c}}function bC(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var xC=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createLine(e,n,r),i}return a(e,t),e.prototype._createLine=function(t,e,n){var r=t.hostModel,i=function(t){var e=new gC({name:"line",subPixelOptimize:!0});return bC(e.shape,t),e}(t.getItemLayout(e));i.shape.percent=0,Da(i,{shape:{percent:1}},r,e),this.add(i),Object(l.k)(vC,(function(n){var r=mC(n,t,e);this.add(r),this[yC(n)]=t.getItemVisual(e,n)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel,i=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};bC(a.shape,o),Ta(i,a,r,e),Object(l.k)(vC,(function(n){var r=t.getItemVisual(e,n),i=yC(n);if(this[i]!==r){this.remove(this.childOfName(n));var o=mC(n,t,e);this.add(o)}this[i]=r}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var r=t.hostModel,i=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,u=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,h=n&&n.focus,p=n&&n.blurScope;if(!n||t.hasItemOption){var f=t.getItemModel(e),d=f.getModel("emphasis");o=d.getModel("lineStyle").getLineStyle(),a=f.getModel(["blur","lineStyle"]).getLineStyle(),s=f.getModel(["select","lineStyle"]).getLineStyle(),c=d.get("disabled"),h=d.get("focus"),p=d.get("blurScope"),u=Fa(f)}var g=t.getItemVisual(e,"style"),v=g.stroke;i.useStyle(g),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,i.ensureState("blur").style=a,i.ensureState("select").style=s,Object(l.k)(vC,(function(t){var e=this.childOfName(t);if(e){e.setColor(v),e.style.opacity=g.opacity;for(var n=0;n<Bo.length;n++){var r=Bo[n],o=i.getState(r);if(o){var a=o.style||{},s=e.ensureState(r),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}}),this);var y=r.getRawValue(e);Va(this,u,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return r.getFormattedLabel(e,n,t.dataType)}},inheritColor:v||"#000",defaultOpacity:g.opacity,defaultText:(null==y?t.getName(e):isFinite(y)?Dn(y):y)+""});var m=this.getTextContent();if(m){var b=u.normal;m.__align=m.style.align,m.__verticalAlign=m.style.verticalAlign,m.__position=b.get("position")||"middle";var x=b.get("distance");Object(l.t)(x)||(x=[x,x]),m.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),ma(this,h,p,c)},e.prototype.highlight=function(){ia(this)},e.prototype.downplay=function(){oa(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");bC(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.getTextContent();if(t||e||n&&!n.ignore){for(var r=1,i=this.parent;i;)i.scaleX&&(r/=i.scaleX),i=i.parent;var o=this.childOfName("line");if(this.__dirty||o.__dirty){var a=o.shape.percent,s=o.pointAt(0),l=o.pointAt(a),u=d([],l,s);if(m(u,u),t&&(t.setPosition(s),M(t,0),t.scaleX=t.scaleY=r*a,t.markRedraw()),e&&(e.setPosition(l),M(e,1),e.scaleX=e.scaleY=r*a,e.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var c=void 0,h=void 0,p=n.__labelDistance,f=p[0]*r,g=p[1]*r,v=a/2,y=o.tangentAt(v),b=[y[1],-y[0]],x=o.pointAt(v);b[1]>0&&(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]<s[0]&&(w=Math.PI+w),n.rotation=w}var S=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-g,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=g,h="top";break;default:S=0,h="middle"}switch(n.__position){case"end":n.x=u[0]*f+l[0],n.y=u[1]*g+l[1],c=u[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<t.end;r++){if(SC(e.getItemLayout(r))){var i=new this._LineCtor(e,r,this._seriesScope);i.traverse(n),this.group.add(i),e.setItemGraphicEl(r,i),this._progressiveEls.push(i)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){Wp(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(SC(t.getItemLayout(e))){var r=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,r),this.group.add(r)}},t.prototype._doUpdate=function(t,e,n,r,i){var o=t.getItemGraphicEl(n);SC(e.getItemLayout(r))?(o?o.updateData(e,r,i):o=new this._LineCtor(e,r,i),e.setItemGraphicEl(r,o),this.group.add(o)):this.group.remove(o)},t}(),OC=[],CC=[],IC=[],kC=Qt,AC=_,TC=Math.abs;function DC(t,e,n){for(var r,i=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){OC[0]=kC(i[0],o[0],a[0],c),OC[1]=kC(i[1],o[1],a[1],c),(f=TC(AC(OC,e)-l))<s&&(s=f,r=c)}for(var h=0;h<32;h++){var p=r+u;CC[0]=kC(i[0],o[0],a[0],r),CC[1]=kC(i[1],o[1],a[1],r),IC[0]=kC(i[0],o[0],a[0],p),IC[1]=kC(i[1],o[1],a[1],p);var f=AC(CC,e)-l;if(TC(f)<.01)break;var d=AC(IC,e)-l;u/=2,f<0?d>=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<r;i++)n[i].dataIndex>=0&&t.call(e,n[i],i)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=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<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(r,e,null))for(var a=[e];a.length;){var s=a.shift(),l=s[i];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(t.call(r,c,s))return;a.push(c),c.__visited=!0}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,r=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;e.filterSelf((function(t){var n=r[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(i=0,o=e.count();i<o;i++)r[e.getRawIndex(i)].dataIndex=i},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)e.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var o=r[i];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),NC=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t}(),zC=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t}();function BC(t,e){return{getValue:function(n){var r=this[t][e];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=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<t.length;a++)o.addNode(l.O(t[a].id,t[a].name,a),a);var s=[],u=[],c=0;for(a=0;a<e.length;a++){var h=e[a],p=h.source,f=h.target;o.addEdge(p,f,c)&&(u.push(h),s.push(l.O(ir(h.id,null),p+" > "+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<r.length;y++){var m=new c({shape:{startAngle:v,endAngle:l=s+g*Math.min(Math.max(r[y][0],0),1),cx:i.cx,cy:i.cy,clockwise:a,r0:i.r-f,r:i.r},silent:!0});m.setStyle({fill:r[y][1]}),m.setStyle(p.getLineStyle(["color","width"])),o.add(m),v=l}var b=function(t){if(t<=0)return r[0][1];var e;for(e=0;e<r.length;e++)if(r[e][0]>=t&&(0===e?0:r[e-1][0])<t)return r[e][1];return r[e-1][1]};this._renderTicks(t,e,n,b,i,s,l,a,f),this._renderTitleAndDetail(t,e,n,b,i),this._renderAnchor(t,i),this._renderPointer(t,e,n,b,i,s,l,a,f)},e.prototype._renderTicks=function(t,e,n,r,i,o,a,s,u){for(var c,h,p=this.group,f=i.cx,d=i.cy,g=i.r,v=+t.get("min"),y=+t.get("max"),m=t.getModel("splitLine"),b=t.getModel("axisTick"),x=t.getModel("axisLabel"),_=t.get("splitNumber"),w=b.get("splitNumber"),S=Tn(m.get("length"),g),M=Tn(b.get("length"),g),O=o,C=(a-o)/_,I=C/w,k=m.getModel("lineStyle").getLineStyle(),A=b.getModel("lineStyle").getLineStyle(),T=m.get("distance"),D=0;D<=_;D++){if(c=Math.cos(O),h=Math.sin(O),m.get("show")){var P=new $h({shape:{x1:c*(g-(L=T?T+u:u))+f,y1:h*(g-L)+d,x2:c*(g-S-L)+f,y2:h*(g-S-L)+d},style:k,silent:!0});"auto"===k.stroke&&P.setStyle({stroke:r(D/_)}),p.add(P)}if(x.get("show")){var L=x.get("distance")+T,j=YC(Dn(D/_*(y-v)+v),x.get("formatter")),E=r(D/_),R=c*(g-S-L)+f,N=h*(g-S-L)+d,z=x.get("rotate"),B=0;"radial"===z?(B=-O+2*Math.PI)>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();a<s;a++)i[a]=a;return Object(l.w)(e)?i.sort(e):"none"!==e&&i.sort((function(t,e){return o?r[t]-r[e]:r[e]-r[t]})),i}(n,i),h=o.x,p=o.y,f="horizontal"===a?[Tn(t.get("minSize"),u),Tn(t.get("maxSize"),u)]:[Tn(t.get("minSize"),s),Tn(t.get("maxSize"),s)],d=n.getDataExtent(r),g=t.get("min"),v=t.get("max");null==g&&(g=Math.min(d[0],0)),null==v&&(v=d[1]);var y=t.get("funnelAlign"),m=t.get("gap"),b=(("horizontal"===a?s:u)-m*(n.count()-1))/n.count(),x=function(t,e){if("horizontal"===a){var i=An(n.get(r,t)||0,[g,v],f,!0),o=void 0;switch(y){case"top":o=p;break;case"center":o=p+(u-i)/2;break;case"bottom":o=p+(u-i)}return[[e,o],[e,o+i]]}var l,c=An(n.get(r,t)||0,[g,v],f,!0);switch(y){case"left":l=h;break;case"center":l=h+(s-c)/2;break;case"right":l=h+s-c}return[[l,e],[l+c,e]]};"ascending"===i&&(b=-b,m=-m,"horizontal"===a?h+=s:p+=u,c=c.reverse());for(var _=0;_<c.length;_++){var w=c[_],S=c[_+1],M=n.getItemModel(w);if("horizontal"===a){var O=M.get(["itemStyle","width"]);null==O?O=b:(O=Tn(O,s),"ascending"===i&&(O=-O));var C=x(w,h),I=x(S,h+O);h+=O+m,n.setItemLayout(w,{points:C.concat(I.slice().reverse())})}else{var k=M.get(["itemStyle","height"]);null==k?k=b:(k=Tn(k,u),"ascending"===i&&(k=-k));C=x(w,p),I=x(S,p+k);p+=k+m,n.setItemLayout(w,{points:C.concat(I.slice().reverse())})}}!function(t){var e=t.hostModel.get("orient");t.each((function(n){var r,i,o,a,s=t.getItemModel(n),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),c=t.getItemLayout(n),h=c.points,p="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(p)"insideLeft"===l?(i=(h[0][0]+h[3][0])/2+5,o=(h[0][1]+h[3][1])/2,r="left"):"insideRight"===l?(i=(h[1][0]+h[2][0])/2-5,o=(h[1][1]+h[2][1])/2,r="right"):(i=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,o=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,r="center"),a=[[i,o],[i,o]];else{var f=void 0,d=void 0,g=void 0,v=void 0,y=u.get("length");0,"left"===l?(f=(h[3][0]+h[0][0])/2,d=(h[3][1]+h[0][1])/2,i=(g=f-y)-5,r="right"):"right"===l?(f=(h[1][0]+h[2][0])/2,d=(h[1][1]+h[2][1])/2,i=(g=f+y)+5,r="left"):"top"===l?(f=(h[3][0]+h[0][0])/2,o=(v=(d=(h[3][1]+h[0][1])/2)-y)-5,r="center"):"bottom"===l?(f=(h[1][0]+h[2][0])/2,o=(v=(d=(h[1][1]+h[2][1])/2)+y)+5,r="center"):"rightTop"===l?(f="horizontal"===e?h[3][0]:h[1][0],d="horizontal"===e?h[3][1]:h[1][1],"horizontal"===e?(o=(v=d-y)-5,r="center"):(i=(g=f+y)+5,r="top")):"rightBottom"===l?(f=h[2][0],d=h[2][1],"horizontal"===e?(o=(v=d+y)+5,r="center"):(i=(g=f+y)+5,r="bottom")):"leftTop"===l?(f=h[0][0],d="horizontal"===e?h[0][1]:h[1][1],"horizontal"===e?(o=(v=d-y)-5,r="center"):(i=(g=f-y)-5,r="right")):"leftBottom"===l?(f="horizontal"===e?h[1][0]:h[3][0],d="horizontal"===e?h[1][1]:h[2][1],"horizontal"===e?(o=(v=d+y)+5,r="center"):(i=(g=f-y)-5,r="right")):(f=(h[1][0]+h[2][0])/2,d=(h[1][1]+h[2][1])/2,"horizontal"===e?(o=(v=d+y)+5,r="center"):(i=(g=f+y)+5,r="left")),"horizontal"===e?i=g=f:o=v=d,a=[[f,d],[g,v]]}c.label={linePoints:a,x:i,y:o,verticalAlign:"middle",textAlign:r,inside:p}}))}(n)}))}function tI(t,e,n,r){for(var i,o=[],a=0;a<n.length;a++){var s=n[a],l=t.get(t.mapDimension(s),e);i=l,("category"===r.getAxis(s).type?null==i:null==i||isNaN(i))||o.push(r.dataToPoint(l,s))}return o}function eI(t,e,n,r,i){var o=tI(t,n,r,i),a=new Uh({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function nI(t){var e=t.get("smooth",!0);return!0===e&&(e=.3),e=Un(e),Object(l.l)(e)&&(e=0),{smooth:e}}function rI(t,e,n,r){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",r.smooth);var i=e.getItemModel(n),o=i.getModel("emphasis");wa(t,i,"lineStyle"),ma(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}var iI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new Mn,n._initialized=!1,n}return a(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,u=nI(t);if(o.diff(a).add((function(t){rI(eI(o,i,t,l,s),o,t,u)})).update((function(e,n){var r=a.getItemGraphicEl(n),i=tI(o,e,l,s);o.setItemGraphicEl(e,r),Ta(r,{shape:{points:i}},t,e),Ra(r),rI(r,o,e,u)})).remove((function(t){var e=a.getItemGraphicEl(t);i.remove(e)})).execute(),!this._initialized){this._initialized=!0;var c=function(t,e,n){var r=t.model,i=t.getRect(),o=new vo({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a="horizontal"===r.get("layout")?"width":"height";return o.setShape(a,0),Da(o,{shape:{width:i.width,height:i.height}},e,n),o}(s,t,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(c)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var r=e.getData(),i=e.coordinateSystem,o=i.dimensions,a=nI(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=eI(r,this._dataGroup,l,o,i);u.incremental=!0,rI(u,r,l,a),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(Jp);function oI(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return Object(l.k)(e.dimensions,(function(t){var e=+t.replace("dim","");n[t]=e})),n}}var aI=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.getInitialData=function(t,e){return dm(null,this,{useEncodeDefaulter:Object(l.c)(oI,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),r=[];return e.eachActiveState(n,(function(e,i){t===e&&r.push(n.getRawIndex(i))})),r},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Uc),sI=["lineStyle","opacity"],lI={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,r={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var i=r[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(n).get(sI,!0);null!=o&&(i=o)}e.ensureUniqueItemVisual(n,"style").opacity=i}),t.start,t.end)}}}};function uI(t){!function(t){if(t.parallel)return;var e=!1;l.k(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}(t),function(t){var e=Zn(t.parallelAxis);l.k(e,(function(e){if(l.A(e)){var n=e.parallelIndex||0,r=Zn(t.parallel)[n];r&&r.parallelAxisDefault&&l.I(e,r.parallelAxisDefault,!1)}}))}(t)}var cI=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._model=t,this._api=n,this._handlers||(this._handlers={},Object(l.k)(hI,(function(t,e){n.getZr().on(e,this._handlers[e]=Object(l.c)(t,this))}),this)),rf(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){of(this,"_throttledDispatchExpand"),Object(l.k)(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Object(l.m)({type:"parallelAxisExpand"},t))},e.type="parallel",e}(qc),hI={mousedown:function(t){pI(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(pI(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2)>5)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.span<i)&&(e[1-r]=e[r]+l.sign*i),u=yI(e,r),null!=o&&u.span>o&&(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<l[0]?(n=t*s,r=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,c=!0):(n=i-(a-1-t)*s,r=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:r}}var AI=function(){function t(t,e,n){this.type="parallel",this._axesMap=l.f(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=t.dimensions,i=t.parallelAxisIndex;bI(r,(function(t,n){var r=i[n],o=e.getComponent("parallelAxis",r),a=this._axesMap.set(t,new gI(t,a_(o),[0,0],o.get("type"),r)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,r=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],a=t[i];return o>=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;c<r;c++){var h=void 0;if(u){h="active";for(var p=t.getValues(a,c),f=0,d=o.length;f<d;f++){if("inactive"===s[f].getActiveState(p[f])){h="inactive";break}}}else h="normal";e(h,c)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,r=0,i=t.length;r<i;r++)"normal"!==e.get(t[r]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){return Pp([t,0],this._axesLayout[e].transform)},t.prototype.getAxisLayout=function(t){return l.d(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,r=e.axisExpandWindow.slice(),i=r[1]-r[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:r};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<i*c[0]?(l="jump",a=s-i*c[2]):h&&u&&s>i*(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;r<i;r++)if(e[r][0]<=t&&t<=e[r][1])return"active";return"inactive"},e}(hl);l.K(DI,ax);var PI=DI,LI=Math.min,jI=Math.max,EI=Math.pow,RI={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},NI={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},zI={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},BI=0,VI=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new Mn,n._uid="brushController_"+BI++,Object(l.k)(fk,(function(t,e){this._handlers[e]=Object(l.c)(t,this)}),n),n}return a(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||function(t,e,n){kw(t)[e]=n}(e,"globalPan",this._uid),Object(l.k)(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=Object(l.I)(Object(l.d)(zI),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;!function(t,e,n){var r=kw(t);r[e]===n&&(r[e]=null)}(t,"globalPan",this._uid),Object(l.k)(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Object(l.k)(t,(function(t){e[t.panelId]=Object(l.d)(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=Object(l.H)(t,(function(t){return Object(l.I)(Object(l.d)(zI),t,!0)}));var e=this._covers,n=this._covers=[],r=this,i=this._creatingCover;return new Ey(e,t,(function(t,e){return o(t.__brushOption,e)}),o).add(a).update(a).remove((function(t){e[t]!==i&&r.group.remove(e[t])})).execute(),this;function o(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function a(o,a){var s=t[o];if(null!=a&&e[a]===i)n[o]=e[a];else{var l=n[o]=null!=a?(e[a].__brushOption=s,e[a]):GI(r,FI(r,s));UI(r,l)}}},e.prototype.unmount=function(){return this.enableBrush(!1),$I(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(k);function FI(t,e){var n=gk[e.brushType].createCover(t,e);return n.__brushOption=e,WI(n,e),t.group.add(n),n}function GI(t,e){var n=YI(e);return n.endCreating&&(n.endCreating(t,e),WI(e,e.__brushOption)),e}function HI(t,e){var n=e.__brushOption;YI(e).updateCoverShape(t,e,n.range,n)}function WI(t,e){var n=e.z;null==n&&(n=1e4),t.traverse((function(t){t.z=n,t.z2=n}))}function UI(t,e){YI(e).updateCommon(t,e),HI(t,e)}function YI(t){return gk[t.__brushOption.brushType]}function qI(t,e,n){var r,i=t._panels;if(!i)return!0;var o=t._transform;return Object(l.k)(i,(function(t){t.isTargetByCursor(e,n,o)&&(r=t)})),r}function XI(t,e){var n=t._panels;if(!n)return!0;var r=e.__brushOption.panelId;return null==r||n[r]}function $I(t){var e=t._covers,n=e.length;return Object(l.k)(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function ZI(t,e){var n=Object(l.H)(t._covers,(function(t){var e=t.__brushOption,n=Object(l.d)(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function KI(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function QI(t,e,n,r){var i=new Mn;return i.add(new vo({name:"main",style:nk(n),silent:!0,draggable:!0,cursor:"move",drift:Object(l.h)(ok,t,e,i,["n","s","w","e"]),ondragend:Object(l.h)(ZI,e,{isEnd:!0})})),Object(l.k)(r,(function(n){i.add(new vo({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(l.h)(ok,t,e,i,n),ondragend:Object(l.h)(ZI,e,{isEnd:!0})}))})),i}function JI(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=jI(i,6),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],h=n[1][1],p=c-o+i/2,f=h-o+i/2,d=c-a,g=h-s,v=d+i,y=g+i;ek(t,e,"main",a,s,d,g),r.transformable&&(ek(t,e,"w",l,u,o,y),ek(t,e,"e",p,u,o,y),ek(t,e,"n",l,u,v,o),ek(t,e,"s",l,f,v,o),ek(t,e,"nw",l,u,o,o),ek(t,e,"ne",p,u,o,o),ek(t,e,"sw",l,f,o,o),ek(t,e,"se",p,f,o,o))}function tk(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(nk(n)),i.attr({silent:!r,cursor:r?"move":"default"}),Object(l.k)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=e.childOfName(n.join("")),o=1===n.length?ik(t,n[0]):function(t,e){var n=[ik(t,e[0]),ik(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(t,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?NI[o]+"-resize":null})}))}function ek(t,e,n,r,i,o,a){var s,l,u,c,h,p=e.childOfName(n);p&&p.setShape((s=lk(t,e,[[r,i],[r+o,i+a]]),l=LI(s[0][0],s[1][0]),u=LI(s[0][1],s[1][1]),c=jI(s[0][0],s[1][0]),h=jI(s[0][1],s[1][1]),{x:l,y:u,width:c-l,height:h-u}))}function nk(t){return Object(l.i)({strokeNoScale:!0},t.brushStyle)}function rk(t,e,n,r){var i=[LI(t,n),LI(e,r)],o=[jI(t,n),jI(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function ik(t,e){return{left:"w",right:"e",top:"n",bottom:"s"}[Lp({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return Dp(t.group)}(t))]}function ok(t,e,n,r,i,o){var a=n.__brushOption,s=t.toRectRange(a.range),u=sk(e,i,o);Object(l.k)(r,(function(t){var e=RI[t];s[e[0]][e[1]]+=u[e[0]]})),a.range=t.fromRectRange(rk(s[0][0],s[1][0],s[0][1],s[1][1])),UI(e,n),ZI(e,{isEnd:!1})}function ak(t,e,n,r){var i=e.__brushOption.range,o=sk(t,n,r);Object(l.k)(i,(function(t){t[0]+=o[0],t[1]+=o[1]})),UI(t,e),ZI(t,{isEnd:!1})}function sk(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function lk(t,e,n){var r=XI(t,e);return r&&!0!==r?r.clipPath(n,t._transform):Object(l.d)(n)}function uk(t){var e=t.event;e.preventDefault&&e.preventDefault()}function ck(t,e,n){return t.childOfName("main").contain(e,n)}function hk(t,e,n,r){var i,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],i=n[0]-r[0],o=n[1]-r[1];return EI(i*i+o*o,.5)>6}(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<i.length;a++){var s=i[a].__brushOption;if(o&&(!0===o||s.panelId===o.panelId)&&gk[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}(this,t,r),this._dragging){uk(t);var i=hk(this,t,r,!1);i&&ZI(this,i)}},mouseup:function(t){dk(this,t)}};function dk(t,e){if(t._dragging){uk(e);var n=e.offsetX,r=e.offsetY,i=t.group.transformCoordToLocal(n,r),o=hk(t,e,i,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&ZI(t,o)}}var gk={lineX:vk(0),lineY:vk(1),rect:{createCover:function(t,e){function n(t){return t}return QI({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=KI(t);return rk(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){JI(t,e,n,r)},updateCommon:tk,contain:ck},polygon:{createCover:function(t,e){var n=new Mn;return n.add(new Uh({name:"main",style:nk(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Gh({name:"main",draggable:!0,drift:Object(l.h)(ak,t,e),ondragend:Object(l.h)(ZI,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:lk(t,e,n)})},updateCommon:tk,contain:ck}};function vk(t){return{createCover:function(e,n){return QI({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=KI(e);return[LI(n[0][t],n[1][t]),jI(n[0][t],n[1][t])]},updateCoverShape:function(e,n,r,i){var o,a=XI(e,n);if(!0!==a&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[r,o];t&&l.reverse(),JI(e,n,l,i)},updateCommon:tk,contain:ck}}var yk=VI;function mk(t){return t=_k(t),function(e){return Rp(e,t)}}function bk(t,e){return t=_k(t),function(n){var r=null!=e?e:n,i=r?t.width:t.height,o=r?t.x:t.y;return[o,o+(i||0)]}}function xk(t,e,n){var r=_k(t);return function(t,i){return r.contain(i[0],i[1])&&!Nw(t,e,n)}}function _k(t){return ft.create(t)}var wk=["axisLine","axisTickLabel","axisName"];var Sk=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){t.prototype.init.apply(this,arguments),(this._brushController=new yk(n.getZr())).on("brush",l.c(this._onBrush,this))},e.prototype.render=function(t,e,n,r){if(!function(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}(t,e,r)){this.axisModel=t,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new Mn,this.group.add(this._axisGroup),t.get("show")){var o=function(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),u=s.width,c=t.axis.dim,h=a.getAxisLayout(c),p=l.m({strokeContainThreshold:u},h),f=new U_(t,p);l.k(wk,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(p,s,t,o,u,n),Ep(i,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,r,i,o){var a=n.axis.getExtent(),s=a[1]-a[0],u=Math.min(30,.1*Math.abs(s)),c=ft.create({x:a[0],y:-i/2,width:s,height:i});c.x-=u,c.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:mk(c),isTargetByCursor:xk(c,o,r),getLinearBrushOtherExtent:bk(c,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(function(t){var e=t.axis;return l.H(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,r=n.axis,i=l.H(e,(function(t){return[r.coordToData(t.range[0],!0),r.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(qc),Mk={type:"axisAreaSelect",event:"axisAreaSelected"};var Ok={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Ck(t){t.registerComponentView(fI),t.registerComponentModel(dI),t.registerCoordinateSystem("parallel",TI),t.registerPreprocessor(uI),t.registerComponentModel(PI),t.registerComponentView(Sk),vx(t,"parallel",PI,Ok),function(t){t.registerAction(Mk,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}(t)}var Ik=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},kk=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.getDefaultShape=function(){return new Ik},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){ia(this)},e.prototype.downplay=function(){oa(this)},e}(to);var Ak=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return a(e,t),e.prototype.render=function(t,e,n){var r=this,i=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,u=a.height,c=t.getData(),h=t.getData("edge"),p=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,i.eachEdge((function(e){var n=new kk,r=Lo(n);r.dataIndex=e.dataIndex,r.seriesIndex=t.seriesIndex,r.dataType="edge";var i,a,c,f,d,g,v,y,m=e.getModel(),b=m.getModel("lineStyle"),x=b.get("curveness"),_=e.node1.getLayout(),w=e.node1.getModel(),S=w.get("localX"),M=w.get("localY"),O=e.node2.getLayout(),C=e.node2.getModel(),I=C.get("localX"),k=C.get("localY"),A=e.getLayout();switch(n.shape.extent=Math.max(1,A.dy),n.shape.orient=p,"vertical"===p?(i=(null!=S?S*s:_.x)+A.sy,a=(null!=M?M*u:_.y)+_.dy,c=(null!=I?I*s:O.x)+A.ty,d=i,g=a*(1-x)+(f=null!=k?k*u:O.y)*x,v=c,y=a*x+f*(1-x)):(i=(null!=S?S*s:_.x)+_.dx,a=(null!=M?M*u:_.y)+A.sy,d=i*(1-x)+(c=null!=I?I*s:O.x)*x,g=a,v=i*x+c*(1-x),y=f=(null!=k?k*u:O.y)+A.ty),n.setShape({x1:i,y1:a,x2:c,y2:f,cpx1:d,cpy1:g,cpx2:v,cpy2:y}),n.useStyle(b.getItemStyle()),n.style.fill){case"source":n.style.fill=e.node1.getVisual("color"),n.style.decal=e.node1.getVisual("style").decal;break;case"target":n.style.fill=e.node2.getVisual("color"),n.style.decal=e.node2.getVisual("style").decal;break;case"gradient":var T=e.node1.getVisual("color"),D=e.node2.getVisual("color");Object(l.C)(T)&&Object(l.C)(D)&&(n.style.fill=new ap(0,0,+("horizontal"===p),+("vertical"===p),[{color:T,offset:0},{color:D,offset:1}]))}var P=m.getModel("emphasis");wa(n,m,"lineStyle",(function(t){return t.getItemStyle()})),o.add(n),h.setItemGraphicEl(e.dataIndex,n);var L=P.get("focus");ma(n,"adjacency"===L?e.getAdjacentDataIndices():L,P.get("blurScope"),P.get("disabled")),Lo(n).dataType="edge"})),i.eachNode((function(e){var n=e.getLayout(),r=e.getModel(),i=r.get("localX"),a=r.get("localY"),l=r.getModel("emphasis"),h=new vo({shape:{x:null!=i?i*s:n.x,y:null!=a?a*u:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle(),z2:10});Va(h,Fa(r),{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id}),h.disableLabelAnimation=!0,h.setStyle("fill",e.getVisual("color")),h.setStyle("decal",e.getVisual("style").decal),wa(h,r),o.add(h),c.setItemGraphicEl(e.dataIndex,h),Lo(h).dataType="node";var p=l.get("focus");ma(h,"adjacency"===p?e.getAdjacentDataIndices():p,l.get("blurScope"),l.get("disabled"))})),c.eachItemGraphicEl((function(e,i){c.getItemModel(i).get("draggable")&&(e.drift=function(e,o){r._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/u})},e.ondragend=function(){r._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(function(t,e,n){var r=new vo({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Da(r,{shape:{width:t.width+20}},e,n),r}(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Jp),Tk=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.getInitialData=function(t,e){var n=t.edges||t.links,r=t.data||t.nodes,i=t.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<i.length;a++)null!=i[a].depth&&i[a].depth>=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<e.length;f++)s[f]=1;for(f=0;f<t.length;f++)u[f]=t[f].inEdges.length,0===u[f]&&c.push(t[f]);var d=-1;for(;c.length;){for(var g=0;g<c.length;g++){var v=c[g],y=v.hostGraph.data.getRawDataItem(v.dataIndex),m=null!=y.depth&&y.depth>=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;b<v.outEdges.length;b++){var x=v.outEdges[b],_=e.indexOf(x);s[_]=0;var w=x.node2,S=t.indexOf(w);0==--u[S]&&h.indexOf(w)<0&&h.push(w)}}++p,c=h,h=[]}for(f=0;f<s.length;f++)if(1===s[f])throw new Error("Sankey is a DAG, the original data has cycle!");var M=d>p-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;s<o.length;s++){var u=o[s];u.setLayout({skNodeHeight:a},!0);for(var c=0;c<u.inEdges.length;c++){var h=u.inEdges[c];i.indexOf(h.node1)<0&&i.push(h.node1)}}o=i,i=[],++a}l.k(t,(function(t){Pk(t)||t.setLayout({depth:Math.max(0,r-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&function(t,e){l.k(t,(function(t){Pk(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}(t,r)}(t,a,0,M);!function(t,e,n){l.k(t,(function(t){var r=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:r},!0):t.setLayout({x:r},!0)}))}(t,"vertical"===o?(i-n)/M:(r-n)/M,o)})(t,e,n,i,o,s,u),function(t,e,n,r,i,o,a){var s=function(t,e){var n=[],r="vertical"===e?"y":"x",i=vr(t,(function(t){return t.getLayout()[r]}));return i.keys.sort((function(t,e){return t-e})),l.k(i.keys,(function(t){n.push(i.buckets.get(t))})),n}(t,a);(function(t,e,n,r,i,o){var a=1/0;l.k(t,(function(t){var e=t.length,s=0;l.k(t,(function(t){s+=t.getLayout().value}));var u="vertical"===o?(r-(e-1)*i)/s:(n-(e-1)*i)/s;u<a&&(a=u)})),l.k(t,(function(t){l.k(t,(function(t,e){var n=t.getLayout().value*a;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),l.k(e,(function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)}))})(s,e,n,r,i,a),Lk(s,i,n,r,a);for(var u=1;o>0;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;p<c;p++)(l=u-(s=t[p]).getLayout()[o])>0&&(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;++o<i;){var a=+e(t[o],n);isNaN(a)||(r+=a)}return r}function Gk(t,e,n){l.k(t,(function(t){l.k(t,(function(t){if(t.inEdges.length){var r=Fk(t.inEdges,Nk,n)/Fk(t.inEdges,Vk);if(isNaN(r)){var i=t.inEdges.length;r=i?Fk(t.inEdges,zk,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 Hk(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph().nodes;if(e.length){var n=1/0,r=-1/0;l.k(e,(function(t){var e=t.getLayout().value;e<n&&(n=e),e>r&&(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();r<n.length;r++)t.moveTo(n[r][0],n[r][1]),r++,t.lineTo(n[r][0],n[r][1])},e}(to);function Zk(t,e,n,r,i){var o=t.ends,a=new $k({shape:{points:i?Qk(o,r,t):o}});return Kk(t,a,e,n,i),a}function Kk(t,e,n,i,o){var a=n.hostModel;(0,r[o?"initProps":"updateProps"])(e,{shape:{points:t.ends}},a,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=n.getItemModel(i),l=s.getModel("emphasis");wa(e,s),ma(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Qk(t,e,n){return l.H(t,(function(t){return(t=t.slice())[e]=n.initBaseline,t}))}var Jk=qk;function tA(t,e){}var eA=l.k;function nA(t){var e=function(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var r=t.getBaseAxis(),i=l.r(n,r);i<0&&(i=n.length,n[i]=r,e[i]={axis:r,seriesModels:[]}),e[i].seriesModels.push(t)})),e}(t);eA(e,(function(t){var e=t.seriesModels;e.length&&(!function(t){var e,n=t.axis,r=t.seriesModels,i=r.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];if("category"===n.type)e=n.getBandWidth();else{var u=0;eA(r,(function(t){u=Math.max(u,t.getData().count())}));var c=n.getExtent();e=Math.abs(c[1]-c[0])/u}eA(r,(function(t){var n=t.get("boxWidth");l.t(n)||(n=[n,n]),s.push([Tn(n[0],e)||0,Tn(n[1],e)||0])}));var h=.8*e-2,p=h/i*.3,f=(h-p*(i-1))/i,d=f/2-h/2;eA(r,(function(t,e){a.push(d),d+=p+f,o.push(Math.min(Math.max(f,s[e][0]),s[e][1]))}))}(t),eA(e,(function(e,n){!function(t,e,n){var r=t.coordinateSystem,i=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],u=i.mapDimension(l[a]),c=i.mapDimensionsAll(l[s]);if(null==u||c.length<5)return;for(var h=0;h<i.count();h++){var p=i.get(u,h),f=b(p,c[2],h),d=b(p,c[0],h),g=b(p,c[1],h),v=b(p,c[3],h),y=b(p,c[4],h),m=[];x(m,g,!1),x(m,v,!0),m.push(d,g,y,v),_(m,d),_(m,y),_(m,f),i.setItemLayout(h,{initBaseline:f[s],ends:m})}function b(t,n,o){var l,u=i.get(n,o),c=[];return c[a]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=r.dataToPoint(c))[a]+=e,l}function x(t,e,n){var r=e.slice(),i=e.slice();r[a]+=o,i[a]-=o,n?t.push(r,i):t.push(i,r)}function _(t,e){var n=e.slice(),r=e.slice();n[a]-=o,r[a]+=o,t.push(n,r)}}(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}var rA={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if("arrayRows"!==e.sourceFormat){0,El("")}var n=function(t,e){for(var n=[],r=[],i=(e=e||{}).boundIQR,o="none"===i||0===i,a=0;a<t.length;a++){var s=Pn(t[a].slice()),u=Hn(s,.25),c=Hn(s,.5),h=Hn(s,.75),p=s[0],f=s[s.length-1],d=(null==i?1.5:i)*(h-u),g=o?p:Math.max(p,u-d),v=o?f:Math.min(f,h+d),y=e.itemNameFormatter,m=Object(l.w)(y)?y({value:a}):Object(l.C)(y)?y.replace("{value}",a+""):a+"";n.push([m,g,u,c,h,v]);for(var b=0;b<s.length;b++){var x=s[b];if(x<g||x>v){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;r<e.ends.length;r++)if(t.contain(e.ends[r][0],e.ends[r][1])){n=!1;break}return n}function cA(t,e,n,r){var i=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,wa(t,i)}function hA(t,e){return l.H(t,(function(t){return(t=t.slice())[1]=e.initBaseline,t}))}var pA=function(){},fA=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return a(e,t),e.prototype.getDefaultShape=function(){return new pA},e.prototype.buildPath=function(t,e){for(var n=e.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];t.moveTo(i,n[r++]),t.lineTo(i,n[r++])}else r+=3},e}(to);function dA(t,e,n,r){var i=t.getData(),o=i.getLayout("largePoints"),a=new fA({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new fA({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s),gA(1,a,t,i),gA(-1,s,t,i),r&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function gA(t,e,n,r){var i=n.get(["itemStyle",t>0?"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:n<r?1:e>0?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;o<r;o++){var a=ad(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/r*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),i.add(a)}IA(i,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],i=0;i<r.length;i++){var o=r[i];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}IA(n,t)},e.prototype.highlight=function(){ia(this)},e.prototype.downplay=function(){oa(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,r=t.hostModel;this.childAt(0).updateData(t,e);var i=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=sd(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,c=o.getModel("emphasis");i.setScale(s),i.traverse((function(t){t.setStyle("fill",u)}));var h=ld(t.getItemVisual(e,"symbolOffset"),s);h&&(i.x=h[0],i.y=h[1]);var p=t.getItemVisual(e,"symbolRotate");i.rotation=(p||0)*Math.PI/180||0;var f={};f.showEffectOn=r.get("showEffectOn"),f.rippleScale=o.get(["rippleEffect","scale"]),f.brushType=o.get(["rippleEffect","brushType"]),f.period=1e3*o.get(["rippleEffect","period"]),f.effectOffset=e/t.count(),f.z=r.getShallow("z")||0,f.zlevel=r.getShallow("zlevel")||0,f.symbolType=a,f.color=u,f.rippleEffectColor=o.get(["rippleEffect","color"]),f.rippleNumber=o.get(["rippleEffect","number"]),"render"===f.showEffectOn?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==f.showEffectOn&&n.startEffectAnimation(f):"normal"===t&&"render"!==f.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=f,ma(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(Mn),AA=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._symbolDraw=new Sm(kA)},e.prototype.render=function(t,e,n){var r=t.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(t)}),this.group.add(i.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var r=t.getData();this.group.dirty();var i=Qm("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e,n,r=t.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=(e=r.getRoamTransform(),Q(n=[1,0,0,1,0,0],e),n),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(Jp),TA=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.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Uc);var DA=function(t){function e(e,n,r){var i=t.call(this)||this;return i.add(i.createLine(e,n,r)),i._updateEffectSymbol(e,n),i}return a(e,t),e.prototype.createLine=function(t,e,n){return new xC(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),r=n.get("symbolSize"),i=n.get("symbol");l.t(r)||(r=[r,r]);var o=t.getItemVisual(e,"style"),a=n.get("color")||o&&o.stroke,s=this.childAt(1);this._symbolType!==i&&(this.remove(s),(s=ad(i,-.5,-.5,1,1,a)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.scaleX=r[0],s.scaleY=r[1],s.setColor(a),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(t,n,e))},e.prototype._updateEffectAnimation=function(t,e,n){var r=this.childAt(1);if(r){var i=t.getItemLayout(n),o=1e3*e.get("period"),a=e.get("loop"),s=e.get("roundTrip"),u=e.get("constantSpeed"),c=l.O(e.get("delay"),(function(e){return e/t.count()*o/3}));if(r.ignore=!0,this._updateAnimationPoints(r,i),u>0&&(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<t.__t?(t.scaleY=1.05*x(a,o),1===i&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*x(e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(Mn),PA=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createPolyline(e,n,r),i}return a(e,t),e.prototype._createPolyline=function(t,e,n){var r=t.getItemLayout(e),i=new Uh({shape:{points:r}});this.add(i),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel;Ta(this.childAt(0),{shape:{points:t.getItemLayout(e)}},r,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var r=this.childAt(0),i=t.getItemModel(e),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var u=i.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,ma(this,a,s,l)},e.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},e}(Mn),LA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return a(e,t),e.prototype.createLine=function(t,e,n){return new PA(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],r=0,i=1;i<e.length;i++){var o=e[i-1],a=e[i];r+=x(o,a),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,r=this._offsets,i=n.length;if(r){var o,a=this._lastFrame;if(e<this._lastFramePercent){for(o=Math.min(a+1,i-1);o>=0&&!(r[o]<=e);o--);o=Math.min(o,i-2)}else{for(o=a;o<i&&!(r[o]>e);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;n<r.length;){var o=r[n++];if(o>0){t.moveTo(r[n++],r[n++]);for(var a=1;a<o;a++)t.lineTo(r[n++],r[n++])}}else for(n=this._off;n<r.length;){var s=r[n++],l=r[n++],u=r[n++],c=r[n++];if(t.moveTo(s,l),i>0){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;s<r.length;){var l=r[s++];if(l>0)for(var u=r[s++],c=r[s++],h=1;h<l;h++){if(Ei(u,c,p=r[s++],f=r[s++],o,t,e))return a}a++}else for(a=0,s=0;s<r.length;){u=r[s++],c=r[s++];var p=r[s++],f=r[s++];if(i>0){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;a<e.length;){var s=e[a++],l=e[a++];n=Math.min(s,n),i=Math.max(s,i),r=Math.min(l,r),o=Math.max(l,o)}t=this._rect=new ft(n,r,i,o)}return t},e}(to),RA=function(){function t(){this.group=new Mn}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],r=e.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,a=new Float32Array(o+r.length);a.set(i),a.set(r,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new EA({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;t.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),t.useStyle(r.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=Lo(t);o.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var n=t.hoverDataIdx;n>0&&(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;c<i.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,p=[];for(c=i.start;c<i.end;c++){var f=t.getLineCoords(c,a);n&&(s[h++]=f);for(var d=0;d<f;d++)p=e.dataToPoint(a[d],!1,p),s[h++]=p[0],s[h++]=p[1]}o.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var g=o.getItemModel(c),v=(f=t.getLineCoords(c,a),[]);if(n)for(var y=0;y<f;y++)v.push(e.dataToPoint(a[y]));else{v[0]=e.dataToPoint(a[0]),v[1]=e.dataToPoint(a[1]);var m=g.get(["lineStyle","curveness"]);+m&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*m,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*m])}o.setItemLayout(c,v)}}}}}},zA=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._updateLineDraw(r,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(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<r;i++)e[i]=e[i]||[],e[i][0]=this._flatCoords[n+2*i],e[i][1]=this._flatCoords[n+2*i+1];return r}var o=this._getCoordsFromItemModel(t);for(i=0;i<o.length;i++)e[i]=e[i]||[],e[i][0]=o[i][0],e[i][1]=o[i][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Object(l.z)(t[0])){for(var n=t.length,r=new BA(n),i=new VA(n),o=0,a=0,s=0,u=0;u<n;){s++;var c=t[u++];r[a++]=o+e,r[a++]=c;for(var h=0;h<c;h++){var p=t[u++],f=t[u++];i[o++]=p,i[o++]=f}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,a),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new om(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,r,i){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[i]:o:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var r=this.getData().getItemModel(t),i=r.get("name");if(i)return i;var o=r.get("fromName"),a=r.get("toName"),s=[];return null!=o&&s.push(o),null!=a&&s.push(a),Sc("nameValue",{name:s.join(" > ")})},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;f<p;++f){var d=t[f],g=d[0],v=d[1],y=r(d[2]);h.globalAlpha=y,h.drawImage(a,g-u,v-u)}if(!c.width||!c.height)return c;for(var m=h.getImageData(0,0,c.width,c.height),b=m.data,x=0,_=b.length,w=this.minOpacity,S=this.maxOpacity-w;x<_;){y=b[x+3]/256;var M=4*Math.floor(255*y);if(y>0){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;O<r;O++){var C=void 0,I=d.getItemVisual(O,"style");if(c){var k=d.get(M[0],O),A=d.get(M[1],O);if(isNaN(d.get(M[2],O))||k<s[0]||k>s[1]||A<l[0]||A>l[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<i;r++){if((a=e[r].interval)[0]<=t&&t<=a[1]){o=r;break}}if(r===i)for(r=o-1;r>=0;r--){var a;if((a=e[r].interval)[0]<=t&&t<=a[1]){o=r;break}}return r>=0&&r<i&&n[r]}}(b,n.getPieceList(),n.option.selected);s.update(m,g,v,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var _=new so({style:{width:g,height:v,x:h,y:p,image:s.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(Jp),XA=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.getInitialData=function(t,e){return dm(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Wl.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Uc);var $A=["itemStyle","borderWidth"],ZA=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],KA=new yh;function QA(t,e,n,r){var i=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",u=(n.get("symbolRotate")||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),p={dataIndex:e,layout:i,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(t,e,n,r,i){var o,a=r.valueDim,s=t.get("symbolBoundingData"),u=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),h=1-+(n[a.wh]<=0);if(l.t(s)){var p=[JA(u,s[0])-c,JA(u,s[1])-c];p[1]<p[0]&&p.reverse(),o=p[h]}else o=null!=s?JA(u,s)-c:e?r.coordSysExtent[a.index][h]-c:n[a.wh];i.boundingLength=o,e&&(i.repeatCutLength=n[a.wh]);i.pxSign=o>0?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,c<u?pT(t,null,d(c),n,r):pT(t,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(t)})),c++}));c<u;c++){var p=tT(n);p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,i.add(p);var f=d(c);pT(p,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},n,r)}function d(t){var e=s.slice(),r=n.pxSign,i=t;return("start"===n.symbolRepeatDirection?r>0: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;g<d.length;g++){var v=r.getItemLayout(d[g]),y=v.x,m=v.y0,b=v.y;h.push(y,m),p.push(y,m+b),u=r.getItemVisual(d[g],"style")}var x=r.getItemLayout(d[0]),_=t.getModel("label").get("margin"),w=t.getModel("emphasis");if("add"===e){var S=f[n]=new Mn;c=new Rm({shape:{points:h,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(c),o.add(S),t.isAnimationEnabled()&&c.setClipPath(function(t,e,n){var r=new vo({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Da(r,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),r}(c.getBoundingRect(),t,(function(){c.removeClipPath()})))}else{S=l[s];c=S.childAt(0),o.add(S),f[n]=S,Ta(c,{shape:{points:h,stackedOnPoints:p}},t),Ra(c)}Va(c,Fa(t),{labelDataIndex:d[g-1],defaultText:r.getName(d[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var M=c.getTextContent();M&&(M.x=x.x-_,M.y=x.y0+x.y/2),c.useStyle(u),r.setItemGraphicEl(n,c),wa(c,t),ma(c,w.get("focus"),w.get("blurScope"),w.get("disabled"))}else o.remove(l[n])}p.add(Object(l.c)(d,this,"add")).update(Object(l.c)(d,this,"update")).remove(Object(l.c)(d,this,"remove")).execute(),this._layersSeries=a,this._layers=f},e.type="themeRiver",e}(Jp),mT=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))},e.prototype.fixData=function(t){var e=t.length,n={},r=vr(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),i=[];r.buckets.each((function(t,e){i.push({name:e,dataList:t})}));for(var o=i.length,a=0;a<o;++a){for(var s=i[a].name,l=0;l<i[a].dataList.length;++l){var u=i[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[u,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",pr).models[0].get("type"),r=l.n(t.data,(function(t){return void 0!==t[2]})),i=this.fixData(r||[]),o=[],a=this.nameMap=l.f(),s=0,u=0;u<i.length;++u)o.push(i[u][2]),a.get(i[u][2])||(a.set(i[u][2],s),s++);var c=am(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:zy(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new om(c,this);return h.initData(i),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],r=0;r<e;++r)n[r]=r;var i=t.mapDimension("single"),o=vr(n,(function(e){return t.get("name",e)})),a=[];return o.buckets.each((function(e,n){e.sort((function(e,n){return t.get(i,e)-t.get(i,n)})),a.push({name:n,indices:e})})),a},e.prototype.getAxisTooltipData=function(t,e,n){l.t(t)||(t=t?[t]:[]);for(var r,i=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,u=0;u<s;++u){for(var c=Number.MAX_VALUE,h=-1,p=o[u].indices.length,f=0;f<p;++f){var d=i.get(t[0],o[u].indices[f]),g=Math.abs(d-e);g<=c&&(r=d,c=g,h=o[u].indices[f])}a.push(h)}return{dataIndices:a,nestestValue:r}},e.prototype.formatTooltip=function(t,e,n){var r=this.getData();return Sc("nameValue",{name:r.getName(t),value:r.get(r.mapDimension("value"),t)})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Uc);function bT(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,r={},i=n.getRect();r.rect=i;var o=t.get("boundaryGap"),a=n.getAxis();(r.boundaryGap=o,"horizontal"===a.orient)?(o[0]=Tn(o[0],i.height),o[1]=Tn(o[1],i.height),xT(e,t,i.height-o[0]-o[1])):(o[0]=Tn(o[0],i.width),o[1]=Tn(o[1],i.width),xT(e,t,i.width-o[0]-o[1]));e.setLayout("layoutInfo",r)}))}function xT(t,e,n){if(t.count())for(var r,i=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),u=l.H(o,(function(e){return l.H(e.indices,(function(e){var n=i.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n}))})),c=function(t){for(var e=t.length,n=t[0].length,r=[],i=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),r.push(s)}for(var u=0;u<n;++u)i[u]=(o-r[u])/2;o=0;for(var c=0;c<n;++c){var h=r[c]+i[c];h>o&&(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;g<d;++g){r=h[g]*p,t.setItemLayout(o[0].indices[g],{layerIndex:0,x:u[0][g][0],y0:r,y:u[0][g][1]*p});for(var v=1;v<f;++v)r+=u[v-1][g][1]*p,t.setItemLayout(o[v].indices[g],{layerIndex:v,x:u[v][g][0],y0:r,y:u[v][g][1]*p})}}var _T=function(t){function e(e,n,r,i){var o=t.call(this)||this;o.z2=2,o.textConfig={inside:!0},Lo(o).seriesIndex=n.seriesIndex;var a=new Po({z2:4,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,r,i),o}return a(e,t),e.prototype.updateData=function(t,e,n,r,i){this.node=e,e.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var o=this;Lo(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),u=e.getLayout(),c=l.m({},u);c.label=null;var h=e.getVisual("style");h.lineJoin="bevel";var p=e.getVisual("decal");p&&(h.decal=Ld(p,i));var f=Xb(a.getModel("itemStyle"),c,!0);l.m(c,f),l.k(Bo,(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var r=Xb(n,c);r&&(e.shape=r)})),t?(o.setShape(c),o.shape.r=u.r0,Ta(o,{shape:{r:u.r}},n,e.dataIndex)):(Ta(o,{shape:c},n),Ra(o)),o.useStyle(h),this._updateLabel(n);var d=a.getShallow("cursor");d&&o.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var g=s.get("focus");ma(this,"ancestor"===g?e.getAncestorsIndices():"descendant"===g?e.getDescendantIndices():g,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),o=i.endAngle-i.startAngle,a=(i.startAngle+i.endAngle)/2,s=Math.cos(a),u=Math.sin(a),c=this,h=c.getTextContent(),p=this.node.dataIndex,f=r.get("minAngle")/180*Math.PI,d=r.get("show")&&!(null!=f&&Math.abs(o)<f);function g(t,e){var n=t.get(e);return null==n?r.get(e):n}h.ignore=!d,l.k(Vo,(function(r){var f="normal"===r?n.getModel("label"):n.getModel([r,"label"]),d="normal"===r,v=d?h:h.ensureState(r),y=t.getFormattedLabel(p,r);d&&(y=y||e.node.name),v.style=Ga(f,{},null,"normal"!==r,!0),y&&(v.style.text=y);var m=f.get("show");null==m||d||(v.ignore=!m);var b,x=g(f,"position"),_=d?c:c.states[r],w=_.style.fill;_.textConfig={outsideFill:"inherit"===f.get("color")?w:null,inside:"outside"!==x};var S=g(f,"distance")||0,M=g(f,"align");"outside"===x?(b=i.r+S,M=a>Math.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;o<f&&(o=f),r=n+C*o;var h=e.depth-v-(_?-1:1),p=c+S*h,g=c+S*(h+1),y=t.getLevelModel(e);if(y){var m=y.get("r0",!0),w=y.get("r",!0),k=y.get("radius",!0);null!=k&&(m=k[0],w=k[1]),null!=m&&(p=Tn(m,a/2)),null!=w&&(g=Tn(w,a/2))}e.setLayout({angle:o,startAngle:n,endAngle:r,clockwise:M,cx:s,cy:u,r0:p,r:g})}if(e.children&&e.children.length){var A=0;l.k(e.children,(function(t){A+=I(t,n+A)}))}return r-n}};if(_){var k=c,A=c+S,T=2*Math.PI;d.setLayout({angle:T,startAngle:p,endAngle:p+T,clockwise:M,cx:s,cy:u,r0:k,r:A})}I(g,p)}))}function CT(t){var e={};t.eachSeriesByType("sunburst",(function(t){var n=t.getData(),r=n.tree;r.eachNode((function(i){var o=i.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(t,n,r){for(var i=t;i&&i.depth>1;)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<FT.length;r++){var i=FT[r],o=VT[i],a=e[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(r=0;r<Je.length;r++){var s=Je[r];null!=e[s]&&(n[s]=e[s])}}(0,e,p),JT("shape",e,p),JT("extra",e,p),!o&&s&&(function(t,e,n){for(var r=e.transition,i=XT(r)?Je:Zn(r||[]),o=0;o<i.length;o++){var a=i[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];0,n[a]=s}}}(t,e,h),QT("shape",t,e,h),QT("extra",t,e,h),function(t,e,n,r){if(!n)return;var i,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!XT(a)){var u=Zn(a);!i&&(i=r.style={});for(var c=0;c<u.length;c++){var h=u[c],p=o[h];i[h]=p}}else if(t.getAnimationStyleProps&&(XT(s)||XT(a)||Object(l.r)(s,"style")>=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;c<g.length;c++){h=g[c];if(d[h]){p=o[h];i[h]=p}}}}}}(t,e,c,h)),p.style=c,function(t,e,n){var r=e.style;if(!t.isGroup&&r){if(n){t.useStyle({});for(var i=t.animators,o=0;o<i.length;o++){var a=i[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(r)}e&&(e.style=null,e&&t.attr(e),e.style=r)}(t,p,a),function(t,e){Object(l.q)(e,"silent")&&(t.silent=e.silent),Object(l.q)(e,"ignore")&&(t.ignore=e.ignore),t instanceof ti&&Object(l.q)(e,"invisible")&&(t.invisible=e.invisible);t instanceof to&&Object(l.q)(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),s)if(o){var f={};Object(l.k)(GT,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(f[t]=f[t]||{}),Object(l.m)(t?f[t]:f,n.enterFrom))}));var d=WT("enter",t,e,n,i);d.duration>0&&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<GT.length;r++){var i=GT[r],o=i?e[i]:e;o&&o.leaveTo&&(n||(n=HT(t).leaveToProps={}),i&&(n[i]=n[i]||{}),Object(l.m)(i?n[i]:n,o.leaveTo))}}function qT(t,e,n,r){if(t){var i=t.parent,o=HT(t).leaveToProps;if(o){var a=WT("update",t,e,n,0);a.done=function(){i.remove(t),r&&r()},t.animateTo(o,a)}else i.remove(t),r&&r()}}function XT(t){return"all"===t}var $T={},ZT={setTransform:function(t,e){return $T.el[t]=e,this},getTransform:function(t){return $T.el[t]},setShape:function(t,e){var n=$T.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=$T.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=$T.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=$T.el.style;if(e)return e[t]},setExtra:function(t,e){return($T.el.extra||($T.el.extra={}))[t]=e,this},getExtra:function(t){var e=$T.el.extra;if(e)return e[t]}};function KT(){var t=this.el;if(t){var e=HT(t).userDuring,n=this.userDuring;e===n?($T.el=t,n(ZT)):this.el=this.userDuring=null}}function QT(t,e,n,r){var i=n[t];if(i){var o,a=e[t];if(a){var s=n.transition,u=i.transition;if(u)if(!o&&(o=r[t]={}),XT(u))Object(l.m)(o,a);else for(var c=Zn(u),h=0;h<c.length;h++){var p=a[d=c[h]];o[d]=p}else if(XT(s)||Object(l.r)(s,t)>=0){!o&&(o=r[t]={});var f=Object(l.F)(a);for(h=0;h<f.length;h++){var d;p=a[d=f[h]];tD(i[d],p)&&(o[d]=p)}}}}}function JT(t,e,n){var r=e[t];if(r)for(var i=n[t]={},o=Object(l.F)(r),a=0;a<o.length;a++){var s=o[a];i[s]=ve(r[s])}}function tD(t,e){return Object(l.u)(t)?t!==e:null!=t&&isFinite(t)}var eD=lr(),nD=["percent","easing","shape","style","extra"];function rD(t){t.stopAnimation("keyframe"),t.attr(eD(t))}function iD(t,e,n){if(n.isAnimationEnabled()&&e)if(Object(l.t)(e))Object(l.k)(e,(function(e){iD(t,e,n)}));else{var r=e.keyframes,i=e.duration;if(n&&null==i){var o=ka("enter",n,0);i=o&&o.duration}if(r&&i){var a=eD(t);Object(l.k)(GT,(function(n){if(!n||t[n]){var o;r.sort((function(t,e){return t.percent-e.percent})),Object(l.k)(r,(function(r){var s=t.animators,u=n?r[n]:r;if(u){var c=Object(l.F)(u);if(n||(c=Object(l.n)(c,(function(t){return Object(l.r)(nD,t)<0}))),c.length){o||((o=t.animate(n,e.loop,!0)).scope="keyframe");for(var h=0;h<s.length;h++)s[h]!==o&&s[h].targetName===o.targetName&&s[h].stopTracks(c);n&&(a[n]=a[n]||{});var p=n?a[n]:a;Object(l.k)(c,(function(e){p[e]=((n?t[n]:t)||{})[e]})),o.whenWithKeys(i*r.percent,u,c,r.easing)}}})),o&&o.delay(e.delay||0).duration(i).start(e.easing)}}))}}}var oD=["normal","emphasis","blur","select"],aD={normal:["itemStyle"],emphasis:["emphasis","itemStyle"],blur:["blur","itemStyle"],select:["select","itemStyle"]},sD={normal:["label"],emphasis:["emphasis","label"],blur:["blur","label"],select:["select","label"]},lD=["x","y"],uD={normal:{},emphasis:{},blur:{},select:{}},cD={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:l.c(DT,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:l.c(PT,t)}}},single:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Object(l.c)(LT,t)}}},polar:function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),r=e.getExtent();return r[0]>r[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<t.end;u++){var c=xD(null,null,u,a(u,i),e,this.group,o);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){Wp(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,r){var i=e.element;if(null==i||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},e.type="custom",e}(Jp);function dD(t){var e,n=t.type;if("path"===n){var r=t.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=TD(r);e=Sp(o,null,i,r.layout||"center"),AT(e).customPathData=o}else if("image"===n)e=new so({}),AT(e).customImagePath=t.style.image;else if("text"===n)e=new Po({});else if("group"===n)e=new Mn;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=wp(n);if(!a){0,El("")}e=new a}return AT(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function gD(t,e,n,r,i,o,a){rD(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),r&&null==r.transition&&(r.transition=lD);var u=r&&r.style;if(u){if("text"===e.type){var c=u;Object(l.q)(c,"textFill")&&(c.fill=c.textFill),Object(l.q)(c,"textStroke")&&(c.stroke=c.textStroke)}var h=void 0,p=hD(e)?u.decal:null;t&&p&&(p.dirty=!0,h=Ld(p,t)),u.__decalPattern=h}pD(e)&&(u&&(h=u.__decalPattern)&&(u.decal=h));UT(e,r,o,{dataIndex:n,isInit:a,clearStyle:!0}),iD(e,r.keyframeAnimation,o)}function vD(t,e,n,r,i){var o=e.isGroup?null:e,a=i&&i[t].cfg;if(o){var s=o.ensureState(t);if(!1===r){var l=o.getState(t);l&&(l.style=null)}else s.style=r||null;a&&(s.textConfig=a),ea(o)}}function yD(t,e,n){var r="normal"===n,i=r?e:MD(e,n),o=i?i.z2:null;null!=o&&((r?t:t.ensureState(n)).z2=o||0)}function mD(t,e,n,r){var i=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):cD[o.type](o));for(var s,u,c=Object(l.i)({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:function(t,n){return null==n&&(n=s),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,r){0;null==r&&(r=s);var i=e.getItemVisual(r,"style"),o=i&&i.fill,a=i&&i.opacity,u=b(r,"normal").getItemStyle();null!=o&&(u.fill=o),null!=a&&(u.opacity=a);var c={inheritColor:Object(l.C)(o)?o:"#000"},h=x(r,"normal"),p=Ga(h,null,c,!1,!0);p.text=h.getShallow("show")?Object(l.P)(t.getFormattedLabel(r,"normal"),vm(e,r)):null;var f=Ha(h,c,!1);return w(n,u),u=zT(u,p,f),n&&_(u,n),u.legacy=!0,u},ordinalRawValue:function(t,n){null==n&&(n=s),t=t||0;var r=e.getDimensionInfo(t);if(!r){var i=e.getDimensionIndex(t);return i>=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<t.count;i++)e.push(Object(l.i)({bandWidth:r,axisKey:"axis0",stackId:"__ec_stack_"+i},t));var o=ab(e),a=[];for(i=0;i<t.count;i++){var s=o.axis0["__ec_stack_"+i];s.offsetCenter=s.offset+s.width/2,a.push(s)}return a}}(Object(l.i)({axis:e},t))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return Xa(t,n)}},a.api||{}),h={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:bD(t.getData())},p={},f={},d={},g={},v=0;v<oD.length;v++){var y=oD[v];d[y]=t.getModel(aD[y]),g[y]=t.getModel(sD[y])}function m(t){return t===s?u||(u=e.getItemModel(t)):e.getItemModel(t)}function b(t,n){return e.hasItemOption?t===s?p[n]||(p[n]=m(t).getModel(aD[n])):m(t).getModel(aD[n]):d[n]}function x(t,n){return e.hasItemOption?t===s?f[n]||(f[n]=m(t).getModel(sD[n])):m(t).getModel(sD[n]):g[n]}return function(t,n){return s=t,u=null,p={},f={},i&&i(Object(l.i)({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},h),c)};function _(t,e){for(var n in e)Object(l.q)(e,n)&&(t[n]=e[n])}function w(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function bD(t){var e={};return Object(l.k)(t.dimensions,(function(n){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim;(e[i]=e[i]||[])[r.coordDimIndex]=t.getDimensionIndex(n)}})),e}function xD(t,e,n,r,i,o,a){if(r){var s=_D(t,e,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&ma(s,r.focus,r.blurScope,r.emphasisDisabled),s}o.remove(e)}function _D(t,e,n,r,i,o){var a=-1,s=e;e&&wD(e,r,i)&&(a=Object(l.r)(o.childrenRef(),e),e=null);var u,c,h=!e,p=e;p?p.clearStates():(p=dD(r),s&&(u=s,(c=p).copyTransform(u),pD(c)&&pD(u)&&(c.setStyle(u.style),c.z=u.z,c.z2=u.z2,c.zlevel=u.zlevel,c.invisible=u.invisible,c.ignore=u.ignore,hD(c)&&hD(u)&&c.setShape(u.shape)))),!1===r.morph?p.disableMorphing=!0:p.disableMorphing&&(p.disableMorphing=!1),uD.normal.cfg=uD.normal.conOpt=uD.emphasis.cfg=uD.emphasis.conOpt=uD.blur.cfg=uD.blur.conOpt=uD.select.cfg=uD.select.conOpt=null,uD.isLegacy=!1,function(t,e,n,r,i,o){if(t.isGroup)return;SD(n,null,o),SD(n,"emphasis",o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=dD(a),t.setTextContent(c)),gD(null,c,e,a,null,r,i);for(var h=a&&a.style,p=0;p<oD.length;p++){var f=oD[p];if("normal"!==f){var d=o[f].conOpt;vD(f,c,0,OD(a,d,f),null)}}h?c.dirty():c.markRedraw()}}}(p,n,r,i,h,uD),function(t,e,n,r,i){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&wD(a,o,r)&&(a=null),a||(a=dD(o),t.setClipPath(a)),gD(null,a,e,o,null,r,i)}}(p,n,r,i,h),gD(t,p,n,r,uD,i,h),Object(l.q)(r,"info")&&(AT(p).info=r.info);for(var f=0;f<oD.length;f++){var d=oD[f];if("normal"!==d){var g=MD(r,d);vD(d,p,0,OD(r,g,d),uD)}}return function(t,e,n){if(!t.isGroup){var r=t,i=n.currentZ,o=n.currentZLevel;r.z=i,r.zlevel=o;var a=e.z2;null!=a&&(r.z2=a||0);for(var s=0;s<oD.length;s++)yD(r,e,oD[s])}}(p,r,i),"group"===r.type&&function(t,e,n,r,i){var o=r.children,a=o?o.length:0,s=r.$mergeChildren,l="byName"===s||r.diffChildrenByName,u=!1===s;if(!a&&!l&&!u)return;if(l)return c={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:e},void new Ey(c.oldChildren,c.newChildren,ID,ID,c).add(kD).update(kD).remove(AD).execute();var c;u&&e.removeAll();for(var h=0;h<a;h++){var p=o[h],f=e.childAt(h);p?(null==p.ignore&&(p.ignore=!1),_D(t,f,n,p,i,e)):f.ignore=!0}for(var d=e.childCount()-1;d>=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<a||d>=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=l<o?1:-1;l<o||l>a;)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;p<i.length;p++)for(var f=0;f<i[p].length;f++)h.push(new $h({shape:jP(n,[c,c+u],i[p][f].coord)}));t.add(Cp(h,{style:l.i(s.getModel("lineStyle").getLineStyle(),l.i(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,r,i,o,a){var s=e.getCategories(!0),u=e.getModel("axisLabel"),c=u.get("margin"),h=e.get("triggerEvent");l.k(a,(function(r,i){var a=u,p=r.tickValue,f=o[EP(n)],d=n.coordToPoint([f+c,r.coord]),g=n.cx,v=n.cy,y=Math.abs(d[0]-g)/f<.3?"center":d[0]>g?"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<r.length;h++){var p=u++%s.length;c[p]=c[p]||[],c[p].push(new $h({shape:jP(n,o,r[h].coord)}))}for(h=0;h<c.length;h++)t.add(Cp(c[h],{style:l.i({stroke:s[h%s.length]},a.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<i.length;l++)for(var u=0;u<i[l].length;u++)s.push(new $h({shape:jP(n,o,i[l][u].coord)}));t.add(Cp(s,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,r,i,o){if(r.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),u=0;s=s instanceof Array?s:[s];for(var c=[],h=Math.PI/180,p=-r[0].coord*h,f=Math.min(o[0],o[1]),d=Math.max(o[0],o[1]),g=e.get("clockwise"),v=1,y=r.length;v<=y;v++){var m=v===y?r[0].coord:r[v].coord,b=u++%s.length;c[b]=c[b]||[],c[b].push(new Eh({shape:{cx:n.cx,cy:n.cy,r0:f,r:d,startAngle:p,endAngle:-m*h,clockwise:g},silent:!0})),p=-m*h}for(v=0;v<c.length;v++)t.add(Cp(c[v],{style:l.i({fill:s[v%s.length]},a.getAreaStyle()),silent:!0}))}}},BP=NP,VP=["axisLine","axisTickLabel","axisName"],FP=["splitLine","splitArea","minorSplitLine"],GP=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=this._axisGroup,r=this._axisGroup=new Mn;this.group.add(r);var i=t.axis,o=i.polar,a=o.getAngleAxis(),s=i.getTicksCoords(),u=i.getMinorTicksCoords(),c=a.getExtent()[0],h=i.getExtent(),p=function(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}(o,t,c),f=new U_(t,p);l.k(VP,f.add,f),r.add(f.getGroup()),Ep(n,r,t),l.k(FP,(function(e){t.get([e,"show"])&&!i.scale.isBlank()&&HP[e](this.group,t,o,c,h,s,u)}),this)}},e.type="radiusAxis",e}(J_),HP={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<o.length;h++){var p=u++%s.length;c[p]=c[p]||[],c[p].push(new yh({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[h].coord,0)}}))}for(h=0;h<c.length;h++)t.add(Cp(c[h],{style:l.i({stroke:s[h%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,r,i,o,a){if(a.length){for(var s=e.getModel("minorSplitLine").getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var h=0;h<a[c].length;h++)u.push(new yh({shape:{cx:n.cx,cy:n.cy,r:a[c][h].coord}}));t.add(Cp(u,{style:l.i({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,r,i,o){if(o.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),u=0;s=s instanceof Array?s:[s];for(var c=[],h=o[0].coord,p=1;p<o.length;p++){var f=u++%s.length;c[f]=c[f]||[],c[f].push(new Eh({shape:{cx:n.cx,cy:n.cy,r0:h,r:o[p].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=o[p].coord}for(p=0;p<c.length;p++)t.add(Cp(c[p],{style:l.i({fill:s[p%s.length]},a.getAreaStyle()),silent:!0}))}}};var WP=GP;function UP(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function YP(t,e){return e.dim+t.model.componentIndex}var qP=function(t,e,n){var r={},i=function(t){var e={};l.k(t,(function(t,n){var r=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=YP(i,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/r.count(),u=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;e[a]=u;var h=UP(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var p=Tn(t.get("barWidth"),l),f=Tn(t.get("barMaxWidth"),l),d=t.get("barGap"),g=t.get("barCategoryGap");p&&!c[h].width&&(p=Math.min(u.remainedWidth,p),c[h].width=p,u.remainedWidth-=p),f&&(c[h].maxWidth=f),null!=d&&(u.gap=d),null!=g&&(u.categoryGap=g)}));var n={};return l.k(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=Tn(t.categoryGap,i),a=Tn(t.gap,1),s=t.remainedWidth,u=t.autoWidthCount,c=(s-o)/(u+(u-1)*a);c=Math.max(c,0),l.k(r,(function(t,e){var n=t.maxWidth;n&&n<c&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,u--)})),c=(s-o)/(u+(u-1)*a),c=Math.max(c,0);var h,p=0;l.k(r,(function(t,e){t.width||(t.width=c),h=t,p+=t.width*(1+a)})),h&&(p-=h.width*a);var f=-p/2;l.k(r,(function(t,r){n[e][r]=n[e][r]||{offset:f,width:t.width},f+=t.width*(1+a)}))})),n}(l.n(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=YP(n,o),s=UP(t),l=i[a][s],u=l.offset,c=l.width,h=n.getOtherAxis(o),p=t.coordinateSystem.cx,f=t.coordinateSystem.cy,d=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;r[s]=r[s]||[];for(var v=e.mapDimension(h.dim),y=e.mapDimension(o.dim),m=pm(e,v),b="radius"!==o.dim||!t.get("roundCap",!0),x=h.dataToCoord(0),_=0,w=e.count();_<w;_++){var S=e.get(v,_),M=e.get(y,_),O=S>=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)<d&&(D=(D<0?-1:1)*d),I=C,k=C+D,T=(A=P-u)-c,m&&(r[s][M][O]=k)}else{var L=h.dataToCoord(S,b)-x,j=o.dataToCoord(M);Math.abs(L)<g&&(L=(L<0?-1:1)*g),k=(I=j+u)+c,A=C,T=C+L,m&&(r[s][M][O]=T)}e.setItemLayout(_,{cx:p,cy:f,r0:I,r:k,startAngle:-A*Math.PI/180,endAngle:-T*Math.PI/180,clockwise:A>=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<d.length;++y){var m=i.toGlobalCoord(d[y].coord);h?(g[0]=m,g[1]=c.y,v[0]=m,v[1]=c.y+c.height):(g[0]=c.x,g[1]=m,v[0]=c.x+c.width,v[1]=m);var b=new $h({shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},silent:!0});kp(b.shape,u);var x=f++%s.length;p[x]=p[x]||[],p[x].push(b)}var _=a.getLineStyle(["color"]);for(y=0;y<p.length;++y)e.add(Cp(p[y],{style:l.i({stroke:s[y%s.length]},_),silent:!0}))}},splitArea:function(t,e,n,r){ew(t,n,r,r)}},nL=tL,rL=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.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(hl);Object(l.K)(rL,ax.prototype);var iL=rL,oL=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return 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.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(I_),aL=["single"];function sL(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var lL=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=aL,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=this.dimension,i=new oL(r,a_(t),[0,0],t.get("type"),t.get("position")),o="category"===i.type;i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();Object(l.k)(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),o_(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=rl({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),r=n?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(r[i],r[1-i]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),r=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord=i?function(t){return t-e}:function(t){return r-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=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<c[h].length-1;d++){var g=c[h][d].slice(),v=this._firstDayOfMonth[d];if(f){var y=this._firstDayPoints[d];g[p]=(y[p]+c[0][d+1][p])/2}var m=i.get("formatter"),b=o[+v.m-1],x={yyyy:v.y,yy:(v.y+"").slice(2),MM:v.m,M:+v.m,nameMap:b},_=this._formatterLabel(m,x),w=new Po({z2:30,style:Object(l.m)(Ga(i,{text:_}),this._monthTextPositionControl(g,f,n,s,a))});r.add(w)}}},e.prototype._weekTextPositionControl=function(t,e,n,r,i){var o="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+r+(u?1:-1)*i[0]/2,o=u?"right":"left"):(l=l+r+(u?1:-1)*i[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,r,i){var o=t.getModel("dayLabel");if(o.get("show")){var a=t.coordinateSystem,s=o.get("position"),u=o.get("nameMap"),c=o.get("margin"),h=a.getFirstDayOfWeek();if(!u||Object(l.C)(u))u&&(e=bs(u)||e),u=e.get(["time","dayOfWeekShort"])||Object(l.H)(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}));var p=a.getNextNDay(n.end.time,7-n.lweek).time,f=[a.getCellWidth(),a.getCellHeight()];c=Tn(c,Math.min(f[1],f[0])),"start"===s&&(p=a.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var d=0;d<7;d++){var g,v=a.getNextNDay(p,d),y=a.dataToRect([v.time],!1).center;g=Math.abs((d+h)%7);var m=new Po({z2:30,style:Object(l.m)(Ga(o,{text:u[g]}),this._weekTextPositionControl(y,r,s,c,f))});i.add(m)}}},e.type="calendar",e}(qc);function _L(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}var wL=function(){function t(e,n,r){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){var e=(t=Vn(t)).getFullYear(),n=t.getMonth()+1,r=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,a=t.getDay();return{y:e+"",m:r,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+r+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},t.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];l.k([0,1],(function(t){c(i,t)&&(o[r[t]]=i[t]*a[t])}));var s={width:e.getWidth(),height:e.getHeight()},u=this._rect=rl(o,s);function c(t,e){return null!=t[e]&&"auto"!==t[e]}l.k([0,1],(function(t){c(i,t)||(i[t]=u[r[t]]/a[t])})),this._sw=i[0],this._sh=i[1]},t.prototype.dataToPoint=function(t,e){l.t(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),r=this._rangeInfo,i=n.formatedDate;if(e&&!(n.time>=r.start.time&&n.time<r.end.time+864e5))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([r.start.time,i]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,r):this._getDateByWeeksAndDay(e,n-1,r)},t.prototype.convertToPixel=function(t,e,n){var r=_L(e);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=_L(e);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(l.t(e)&&1===e.length&&(e=e[0]),l.t(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[r.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var a=this._getRangeInfo(t);return a.start.time>a.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&&e<r.fweek||t===r.weeks&&e>r.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<r.length;i++){var o=r[i];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}var IL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return a(e,t),e.prototype.mergeOption=function(e,n){var r=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=r},e.prototype.optionUpdated=function(t,e){var n=this.option,r=(e?n:t).elements,i=n.elements=e?[]:n.elements,o=[];this._flatten(r,o,null);var a=er(i,o,"normalMerge"),s=this._elOptionsToUpdate=[];l.k(a,(function(t,e){var n=t.newOption;n&&(s.push(n),function(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,n),function(t,e,n){var r=l.m({},n),i=t[e],o=n.$action||"merge";"merge"===o?i?(l.I(i,r,!0),al(i,r,{ignoreSize:!0}),ll(n,i),CL(n,i),CL(n,i,"shape"),CL(n,i,"style"),CL(n,i,"extra"),n.clipPath=i.clipPath):t[e]=r:"replace"===o?t[e]=r:"remove"===o&&i&&(t[e]=null)}(i,e,n),function(t,e){if(t&&(t.hv=e.hv=[SL(e,["left","right"]),SL(e,["top","bottom"])],"group"===t.type)){var n=t,r=e;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}(i[e],n))}),this),n.elements=l.n(i,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){l.k(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var r=t.children;r&&r.length&&this._flatten(r,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(hl),kL={path:null,compoundPath:null,group:Mn,image:so,text:Po},AL=lr(),TL=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._elMap=l.f()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,r=this.group,i=t.get("z"),o=t.get("zlevel");l.k(e,(function(e){var a=ir(e.id,null),s=null!=a?n.get(a):null,u=ir(e.parentId,null),c=null!=u?n.get(u):r,h=e.type,p=e.style;"text"===h&&p&&e.hv&&e.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var f=e.textContent,d=e.textConfig;if(p&&ET(p,h,!!d,!!f)){var g=RT(p,h,!0);!d&&g.textConfig&&(d=e.textConfig=g.textConfig),!f&&g.textContent&&(f=g.textContent)}var v=function(t){return t=l.m({},t),l.k(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Js),(function(e){delete t[e]})),t}(e);var y=e.$action||"merge",m="merge"===y,b="replace"===y;if(m){var x=s;(I=!s)?x=PL(a,c,e.type,n):(x&&(AL(x).isNew=!1),rD(x)),x&&(UT(x,v,t,{isInit:I}),jL(x,e,i,o))}else if(b){LL(s,e,n,t);var _=PL(a,c,e.type,n);_&&(UT(_,v,t,{isInit:!0}),jL(_,e,i,o))}else"remove"===y&&(YT(s,e),LL(s,e,n,t));var w=n.get(a);if(w&&f)if(m){var S=w.getTextContent();S?S.attr(f):w.setTextContent(new Po(f))}else b&&w.setTextContent(new Po(f));if(w){var M=e.clipPath;if(M){var O=M.type,C=void 0,I=!1;if(m){var k=w.getClipPath();C=(I=!k||AL(k).type!==O)?DL(O):k}else b&&(I=!0,C=DL(O));w.setClipPath(C),UT(C,M,t,{isInit:I}),iD(C,M.keyframeAnimation,t)}var A=AL(w);w.setTextConfig(d),A.option=e,function(t,e,n){var r=Lo(t).eventData;t.silent||t.ignore||r||(r=Lo(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name});r&&(r.info=n.info)}(w,t,e),Gp({el:w,componentModel:t,itemName:w.name,itemTooltipOption:e.tooltip}),iD(w,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,r=this.group,i=this._elMap,o=e.getWidth(),a=e.getHeight(),s=["x","y"],u=0;u<n.length;u++){if((g=null!=(d=ir((f=n[u]).id,null))?i.get(d):null)&&g.isGroup){var c=(v=g.parent)===r,h=AL(g),p=AL(v);h.width=Tn(h.option.width,c?o:p.width)||0,h.height=Tn(h.option.height,c?a:p.height)||0}}for(u=n.length-1;u>=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;_<s.length;_++){var w=s[_],S=y[w];b&&(XT(b)||l.r(b,w)>=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<n.length;r++)for(var i=n[r],o=this._targetAxisInfoMap.get(i),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(i,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(hl),HL=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.select",e}(GL),WL=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.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(qc),UL=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.select",e}(WL),YL=l.k,qL=Pn;var XL=function(){function t(t,e,n,r){this._dimName=t,this._axisIndex=e,this.ecModel=r,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(function(t){var e=t.get("coordinateSystem");return Object(l.r)(RL,e)>=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[0]&&(t[0]=r[0]),r[1]>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;l<r.length;l++){var u=a.get(s[l],t),c=!isNaN(u),h=u<o[0],p=u>o[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='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(w&&w[0]||"")+'" /></body>',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<e.length;o++){var a=pj(e[o]).split(fj);r.push(a.shift());for(var s=0;s<a.length;s++)i[s]&&(i[s].data[o]=a[s])}return{series:i,categories:r}}(t),o=e[n],a=o.axisDim+"Axis";o&&(r[a]=r[a]||[],r[a][o.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=function(t){for(var e=t.split(/\n+/g),n=pj(e.shift()),r=[],i=0;i<e.length;i++){var o=pj(e[i]);if(o){var a=o.split(fj),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}(t);r.series.push(i)}})),r}var gj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=r.get("lang")||[];o.innerHTML=a[0]||r.get("title"),o.style.cssText="margin:10px 20px",o.style.color=r.get("textColor");var s=document.createElement("div"),u=document.createElement("textarea");s.style.cssText="overflow:auto";var c=r.get("optionToContent"),h=r.get("contentToOption"),p=function(t){var e,n,r,i=function(t){var e={},n=[],r=[];return t.eachRawSeries((function(t){var i=t.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(t);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:r}}(t);return{value:l.n([(n=i.seriesGroupByCategoryAxis,r=[],l.k(n,(function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(l.H(t.series,(function(t){return t.name}))),a=[n.model.getCategories()];l.k(t.series,(function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(i),(function(t){return t})))}));for(var s=[o.join("\t")],u=0;u<a[0].length;u++){for(var c=[],h=0;h<a.length;h++)c.push(a[h][u]);s.push(c.join("\t"))}r.push(s.join("\n"))})),r.join("\n\n"+hj+"\n\n")),(e=i.other,l.H(e,(function(t){var e=t.getRawData(),n=[t.name],r=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,i=arguments[t-1],o=e.getName(i),a=0;a<t-1;a++)r[a]=arguments[a];n.push((o?o+"\t":"")+r.join("\t"))})),n.join("\n")})).join("\n\n"+hj+"\n\n"))],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+hj+"\n\n"),meta:i.meta}}(t);if(l.w(c)){var f=c(e.getOption());l.C(f)?s.innerHTML=f:l.v(f)&&s.appendChild(f)}else{u.readOnly=r.get("readOnly");var d=u.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=r.get("textColor"),d.borderColor=r.get("textareaBorderColor"),d.backgroundColor=r.get("textareaColor"),u.value=p.value,s.appendChild(u)}var g=p.meta,v=document.createElement("div");v.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),b=document.createElement("div");y+=";background-color:"+r.get("buttonColor"),y+=";color:"+r.get("buttonTextColor");var x=this;function _(){n.removeChild(i),x._dom=null}U(m,"click",_),U(b,"click",(function(){if(null==h&&null!=c||null!=h&&null==c)_();else{var t;try{t=l.w(h)?h(s,e.getOption()):dj(u.value,g)}catch(t){throw _(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),_()}})),m.innerHTML=a[1],b.innerHTML=a[2],b.style.cssText=m.style.cssText=y,!r.get("readOnly")&&v.appendChild(b),v.appendChild(m),i.appendChild(o),i.appendChild(s),i.appendChild(v),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},e}(JL);function vj(t,e){return l.H(t,(function(t,n){var r=e&&e[n];if(l.A(r)&&!l.t(r)){l.A(t)&&!l.t(t)||(t={value:t});var i=null!=r.name&&null==t.name;return t=l.i(t,r),i&&delete t.name,t}return t}))}Pg({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];l.k(t.newOption.series,(function(t){var r=e.getSeriesByName(t.name)[0];if(r){var i=r.get("data");n.push({name:t.name,data:vj(t.data,i)})}else n.push(l.m({type:"scatter"},t))})),e.mergeOption(l.i({series:n},t.newOption))}));var yj=gj,mj=l.k,bj=lr();function xj(t){var e=bj(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var _j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.onclick=function(t,e){!function(t){bj(t).snapshots=null}(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])}},e}(JL);Pg({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var wj=_j,Sj=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Mj=function(){function t(t,e,n){var r=this;this._targetInfoList=[];var i=Cj(e,t);Object(l.k)(Ij,(function(t,e){(!n||!n.include||Object(l.r)(n.include,e)>=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;i<n.length;i++){var o=n[i],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<kj.length;s++)if(kj[s](r,o))return o}return!0},t}();function Oj(t){return t[0]>t[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<r;n++)if(t[n]in e)return t[n]}var qj=Yj(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function Xj(t,e){if(!t)return e;e=Ws(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var $j=Xj(Yj(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),Zj=Xj(qj,"transform"),Kj="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(s.a.transform3dSupported?"will-change:transform;":"");function Qj(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!s.a.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=s.a.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+Zj+":"+a+";":[["top",0],["left",0],[qj,a]]}function Jj(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),u=t.get("shadowColor"),c=t.get("shadowOffsetX"),h=t.get("shadowOffsetY"),p=t.getModel("textStyle"),f=Pc(t,"html"),d=c+"px "+h+"px "+a+"px "+u;return r.push("box-shadow:"+d),e&&i&&r.push(function(t,e){var n=" "+t/2+"s cubic-bezier(0.23,1,0.32,1)",r="opacity"+n+",visibility"+n;return e||(n=" "+t+"s cubic-bezier(0.23,1,0.32,1)",r+=s.a.transformSupported?","+Zj+n:",left"+n+",top"+n),$j+":"+r}(i,n)),o&&r.push("background-color:"+o),Object(l.k)(["width","color","radius"],(function(e){var n="border-"+e,i=Ws(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(function(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),Object(l.k)(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}(p)),null!=f&&r.push("padding:"+Us(f).join("px ")+"px"),r.join(";")+";"}function tE(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,r,i){L(P,e,r,i,!0)&&L(t,n,P[0],P[1])}(t,a,document.body,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var eE=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,s.a.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;tE(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(r):t.appendChild(r),this._container=t;var a=this;r.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},r.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler;W(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},r.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e,n,r,i=this._container,o=(n="position",(r=(e=i).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?n?r[n]:r:null),a=i.style;"absolute"!==a.position&&"absolute"!==o&&(a.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=Kj+Jj(t,!this._firstShow,this._longHide)+Qj(i[0],i[1],!0)+"border-color:"+Zs(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(Object(l.C)(i)&&"item"===n.get("trigger")&&!Uj(n)&&(a=function(t,e,n){if(!Object(l.C)(n)||"inside"===n)return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=Zs(e);var o,a,s=o="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",u=Math.max(1.5*Math.round(i),6),c="",h=Zj+":";Object(l.r)(["left","right"],s)>-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'<div style="'+["position:absolute;width:"+u+"px;height:"+u+"px;",(c+=";"+s+":-"+Math.round(100*((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2))/100+"px")+";"+h+";","border-bottom:"+g,"border-right:"+g,"background-color:"+r+";"].join("")+'"></div>'}(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<t.length;s++)Object(l.v)(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=a,o.appendChild(u)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(tE(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style,i=Qj(n[0],n[1]);Object(l.k)(i,(function(t){r[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",s.a.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(l.c)(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}();function nE(t){return Math.max(0,t)}function rE(t){var e=nE(t.shadowBlur||0),n=nE(t.shadowOffsetX||0),r=nE(t.shadowOffsetY||0);return{left:nE(e-n),right:nE(e+n),top:nE(e-r),bottom:nE(e+r)}}function iE(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var oE=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),iE(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,r,i){var o=this;l.A(t)&&El(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Po({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Pc(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),l.k(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),l.k(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=rE(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var r=this._styleCoord;iE(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=nE(i.borderWidth||0),a=rE(i);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(l.c(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}(),aE=new vo({shape:{x:-1,y:-1,width:2,height:2}});function sE(t,e,n){var r,i=e.ecModel;n?(r=new hs(n,i,i),r=new hs(e.option,r,i)):r=e;for(var o=t.length-1;o>=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":"<br/>",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]<s[0]&&s.reverse(),bE(s[0],a)||bE(s[1],a)||bE(a[0],s)||bE(a[1],s)}}}}function bE(t,e){return e[0]<=t&&t<=e[1]}var xE=["inBrush","outOfBrush"];function _E(t){t.eachComponent({mainType:"brush"},(function(e){(e.brushTargetManager=new Nj(e.option,t)).setInputRanges(e.areas,t)}))}function wE(t,e,n){var r,i,o=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),_E(t),t.eachComponent({mainType:"brush"},(function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:l.d(e.areas),selected:[]};o.push(a);var s=e.option,u=s.brushLink,c=[],h=[],p=[],f=!1;n||(r=s.throttleType,i=s.throttleDelay);var d=l.H(e.areas,(function(t){var e=OE[t.brushType],n=l.i({boundingRect:e?e(t):void 0},t);return n.selectors=function(t){var e=t.brushType,n={point:function(r){return yE[e].point(r,n,t)},rect:function(r){return yE[e].rect(r,n,t)}};return n}(n),n})),g=gE(e.option,xE,(function(t){t.mappingMethod="fixed"}));function v(t){return"all"===u||!!c[t]}function y(t){return!!t.length}l.t(u)&&l.k(u,(function(t){c[t]=1})),t.eachSeries((function(n,r){var i=p[r]=[];"parallel"===n.subType?function(t,e){var n=t.coordinateSystem;f=f||n.hasAxisBrushed(),v(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(h[e]=1)}))}(n,r):function(n,r,i){if(!n.brushSelector||function(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(l.t(n)?l.r(n,e)<0:e!==n)}(e,r))return;if(l.k(d,(function(r){e.brushTargetManager.controlSeries(r,n,t)&&i.push(r),f=f||y(i)})),v(r)&&y(i)){var o=n.getData();o.each((function(t){ME(n,i,o,t)&&(h[t]=1)}))}}(n,r,i)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var r=p[e],i=t.getData(),o=v(e)?function(t){return h[t]?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return ME(t,r,i,e)?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"};(v(e)?f:y(r))&&function(t,e,n,r,i,o){var a,s={};function u(t){return Gf(n,a,t)}function c(t,e){Wf(n,a,t,e)}function h(t,l){a=null==o?t:l;var h=n.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var p=r.call(i,t),f=e[p],d=s[p],g=0,v=d.length;g<v;g++){var y=d[g];f[y]&&f[y].applyVisual(t,u,c)}}l.k(t,(function(t){var n=SO.prepareVisualTypes(e[t]);s[t]=n})),null==o?n.each(h):n.each([o],h)}(xE,g,i,o)}))})),function(t,e,n,r,i){if(!i)return;var o=t.getZr();if(o.__ecInBrushSelectEvent)return;o.__ecBrushSelect||(o.__ecBrushSelect=SE);rf(o,"__ecBrushSelect",n,e)(t,r)}(e,r,i,o,n)}function SE(t,e){if(!t.isDisposed()){var n=t.getZr();n.__ecInBrushSelectEvent=!0,t.dispatchAction({type:"brushSelect",batch:e}),n.__ecInBrushSelectEvent=!1}}function ME(t,e,n,r){for(var i=0,o=e.length;i<o;i++){var a=e[i];if(t.brushSelector(r,n,a.selectors,a))return!0}}var OE={rect:function(t){return CE(t.range)},polygon:function(t){for(var e,n=t.range,r=0,i=n.length;r<i;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),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<e.getHeight()/2?"-":"+":u.x+u.width/2<e.getWidth()/2?"+":"-":Object(l.C)(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=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<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var i=this._findNearestTick(n),o=this.model;(e||i!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(i)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){return Pp(t,this._mainGroup.getLocalTransform(),!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],(function(n,o){var a=i.dataToCoord(n),s=Math.abs(a-t);s<r&&(r=s,e=o)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var r=0;r<e.length;r++)e&&e[r]&&e[r].toggleState("progress",r<t);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",VE(n[r]).dataIndex<=t)},e.type="timeline.slider",e}(NE);function WE(t){var e=t&&t.timeline;l.t(e)||(e=e?[e]:[]),l.k(e,(function(t){t&&function(t){var e=t.type,n={number:"value",time:"time"};n[e]&&(t.axisType=n[e],delete t.type);if(UE(t),YE(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});YE(r,"position")||(r.position=t.controlPosition),"none"!==r.position||YE(r,"show")||(r.show=!1,delete r.position),delete t.controlPosition}l.k(t.data||[],(function(t){l.A(t)&&!l.t(t)&&(!YE(t,"value")&&YE(t,"name")&&(t.value=t.name),UE(t))}))}(t)}))}function UE(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},i=r.normal||(r.normal={}),o={normal:1,emphasis:1};l.k(r,(function(t,e){o[e]||YE(i,e)||(i[e]=t)})),n.label&&!YE(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function YE(t,e){return t.hasOwnProperty(e)}function qE(t,e){if(!t)return!1;for(var n=Object(l.t)(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}function XE(t){Kn(t,"label",["show"])}var $E=lr(),ZE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return a(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(s.a.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,r){var i=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),o=$E(t)[i];n&&n.data?(o?o._mergeOption(n,e,!0):(r&&XE(n),l.k(n.data,(function(t){t instanceof Array?(XE(t[0]),XE(t[1])):XE(t)})),o=this.createMarkerModelFromSeries(n,this,e),l.m(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),$E(t)[i]=o):$E(t)[i]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),o=r.getName(t);return Sc("section",{header:this.name,blocks:[Sc("nameValue",{name:o,value:i,noName:!o,noValue:null==i})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,e){return $E(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(hl);l.K(ZE,Vu.prototype);var KE=ZE,QE=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="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(KE);function JE(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function tR(t,e,n,r,i,o){var a=[],s=pm(e,r)?e.getCalculationInfo("stackResultDimension"):r,l=aR(e,s,t),u=e.indicesOfNearest(s,l)[0];a[i]=e.get(n,u),a[o]=e.get(s,u);var c=e.get(r,u),h=Ln(e.get(r,u));return(h=Math.min(h,20))>=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]<p[0]||h[0]>f[1]||h[1]<f[0]);c.setItemLayout(e,{points:n,allClipped:d});var g=c.getItemModel(e).getModel("itemStyle").getItemStyle(),v=Hf(a,"color");g.fill||(g.fill=v,Object(l.C)(g.fill)&&(g.fill=se.e(g.fill,.4))),g.stroke||(g.stroke=v),c.setItemVisual(e,"style",g)})),c.diff(xR(u).data).add((function(t){var e=c.getItemLayout(t);if(!e.allClipped){var n=new Gh({shape:{points:e.points}});c.setItemGraphicEl(t,n),u.group.add(n)}})).update((function(t,n){var r=xR(u).data.getItemGraphicEl(n),i=c.getItemLayout(t);i.allClipped?r&&u.group.remove(r):(r?Ta(r,{shape:{points:i.points}},e,t):r=new Gh({shape:{points:i.points}}),c.setItemGraphicEl(t,r),u.group.add(r))})).remove((function(t){var e=xR(u).data.getItemGraphicEl(t);u.group.remove(e)})).execute(),c.eachItemGraphicEl((function(t,n){var r=c.getItemModel(n),i=c.getItemVisual(n,"style");t.useStyle(c.getItemVisual(n,"style")),Va(t,Fa(r),{labelFetcher:e,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:Object(l.C)(i.fill)?se.e(i.fill,1):"#000"}),wa(t,r),ma(t,null,null,r.get(["emphasis","disabled"])),Lo(t).dataModel=e})),xR(u).data=c,u.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(lR);var kR=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.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),l.t(e)&&l.k(e,(function(t,r){l.C(t)&&(t={type:t}),e[r]=l.I(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var r=t[n].get("name");if(this.isSelected(r)){this.select(r),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(a)),a.length?e=e.concat(a):i=!0}else i=!0;i&&or(r)&&e.push(r.name)})),this._availableNames=n;var r=this.get("data")||e,i=l.H(r,(function(t){return(l.C(t)||l.z(t))&&(t={name:t}),new hs(t,this,this.ecModel)}),this);this._data=i},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;l.k(n,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;l.k(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;l.k(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&l.r(this._availableNames,t)>=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;r<i&&!(e=n[r].states.emphasis);)r++;return e&&e.hoverLayer}function jR(t,e,n,r){LR(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function ER(t,e,n,r){LR(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}var RR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return a(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new DR),this.group.add(this._selectorGroup=new DR),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var u=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),p=rl(u,c,h),f=this.layoutInner(t,i,p,r,a,s),d=rl(l.i({width:f.width,height:f.height},u),c,h);this.group.x=d.x-f.x,this.group.y=d.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=ij(f,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),u=l.f(),c=e.get("selectedMode"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),TR(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var p=new DR;return p.newline=!0,void s.add(p)}var f=n.getSeriesByName(a)[0];if(!u.get(a)){if(f){var d=f.getData(),g=d.getVisual("legendLineStyle")||{},v=d.getVisual("legendIcon"),y=d.getVisual("style");this._createItem(f,a,o,i,e,t,g,y,v,c,r).on("click",AR(PR,a,null,r,h)).on("mouseover",AR(jR,f.name,null,r,h)).on("mouseout",AR(ER,f.name,null,r,h)),u.set(a,!0)}else n.eachRawSeries((function(n){if(!u.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var p=s.indexOfName(a),f=s.getItemVisual(p,"style"),d=s.getItemVisual(p,"legendIcon"),g=Object(se.g)(f.fill);g&&0===g[3]&&(g[3]=.2,f=l.m(l.m({},f),{fill:Object(se.h)(g,"rgba")})),this._createItem(n,a,o,i,e,t,{},f,d,c,r).on("click",AR(PR,null,a,r,h)).on("mouseover",AR(jR,null,a,r,h)).on("mouseout",AR(ER,null,a,r,h)),u.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();TR(t,(function(t){var r=t.type,i=new Po({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i),Va(i,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),ya(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,u,c,h){var p=t.visualDrawType,f=i.get("itemWidth"),d=i.get("itemHeight"),g=i.isSelected(e),v=r.get("symbolRotate"),y=r.get("symbolKeepAspect"),m=r.get("icon"),b=function(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?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;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function zR(t,e,n){var r,i={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),r=n.isSelected(e.name));var a=n.getData();Object(l.k)(a,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var r=n.isSelected(e);i.hasOwnProperty(e)?i[e]=i[e]&&r:i[e]=r}}))})),"allSelect"===t||"inverseSelect"===t?{selected:i}:{name:e.name,selected:i}}function BR(t){t.registerComponentModel(kR),t.registerComponentView(RR),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,NR),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(t){t.registerAction("legendToggleSelect","legendselectchanged",Object(l.h)(zR,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(l.h)(zR,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(l.h)(zR,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(l.h)(zR,"select")),t.registerAction("legendUnSelect","legendunselected",Object(l.h)(zR,"unSelect"))}(t)}function VR(t,e,n){var r=[1,1];r[t.getOrient().index]=0,al(e,n,{type:"box",ignoreSize:!!r})}var FR=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.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=sl(e);t.prototype.init.call(this,e,n,r),VR(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),VR(this,this.option,e)},e.type="legend.scroll",e.defaultOption=ds(kR.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(kR),GR=Mn,HR=["width","height"],WR=["x","y"],UR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return a(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new GR),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new GR)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,r,i,o,a,s){var u=this;t.prototype.renderInner.call(this,e,n,r,i,o,a,s);var c=this._controllerGroup,h=n.get("pageIconSize",!0),p=l.t(h)?h:[h,h];d("pagePrev",0);var f=n.getModel("pageTextStyle");function d(t,e){var r=t+"DataIndex",o=zp(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:l.c(u._pageGo,u,r,n,i)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});o.name=t,c.add(o)}c.add(new Po({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getSelectorGroup(),s=t.getOrient().index,u=HR[s],c=WR[s],h=HR[1-s],p=WR[1-s];i&&nl("horizontal",a,t.get("selectorItemGap",!0));var f=t.get("selectorButtonGap",!0),d=a.getBoundingRect(),g=[-d.x,-d.y],v=l.d(n);i&&(v[u]=n[u]-d[u]-f);var y=this._layoutContentAndController(t,r,v,s,u,h,p,c);if(i){if("end"===o)g[s]+=y[u]+f;else{var m=d[u]+f;g[s]-=m,y[c]-=m}y[u]+=d[u]+f,g[1-s]+=y[p]+y[h]/2-d[h]/2,y[h]=Math.max(y[h],d[h]),y[p]=Math.min(y[p],d[p]+g[1-s]),a.x=g[0],a.y=g[1],a.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,e,n,r,i,o,a,s){var u=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;nl(t.get("orient"),u,t.get("itemGap"),r?n.width:null,r?null:n.height),nl("horizontal",h,t.get("pageButtonItemGap",!0));var p=u.getBoundingRect(),f=h.getBoundingRect(),d=this._showController=p[i]>n[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<v.i)||(v=g,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=y;return p;function m(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function b(t,e){return t.e>=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;i<r.length;i++){var o=r[i],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||ZR(n,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(WL),eN={zoom:function(t,e,n,r){var i=this.range,o=i.slice(),a=t.axisModels[0];if(a){var s=rN[e](null,[r.originX,r.originY],a,n,t),l=(s.signal>0?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;u<a.length;u++){var c=a[u],h=c.getClipPath();h||(h=new vo,c.setClipPath(h)),h.setShape({x:s[u],y:0,width:s[u+1]-s[u],height:i[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=Pn(this._handleEnds.slice());function h(t){var e=Dp(n.handles[t].parent,this.group),a=Lp(0===t?"right":"left",e),s=this._handleWidth/2+5,l=Pp([c[t]+(0===t?-s:s),this._size[1]/2],e);r[t].setStyle({x:l[0],y:l[1],verticalAlign:"horizontal"===i?"middle":a,align:"horizontal"===i?a:"center",text:o[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(i,20));return Object(l.w)(r)?r(t,o):Object(l.C)(r)?r.replace("{value}",o):o},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,r){this._dragging=!0,Y(r.event);var i=Pp([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(t,i[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[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&&i<n[1];a++)o.push(i),i+=r;return o.push(n[1]),o}var ON=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(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=SN[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=SN[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):l.t(e)&&(e[0]>e[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]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=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;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&i(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=0),i(e[a],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=ds(wN.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(wN),CN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return a(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,r){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,r):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=Us(e.get("padding")||0),r=t.getBoundingRect();t.add(new vo({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){var r=(n=n||{}).forceState,i=this.visualMapModel,o={};if("color"===e){var a=i.get("contentColor");o.color=a}function s(t){return o[t]}function u(t,e){o[t]=e}var c=i.controllerVisuals[r||i.getValueState(t)],h=SO.prepareVisualTypes(c);return l.k(h,(function(r){var i=c[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=c.__alphaForOpacity),SO.dependsOn(r,e)&&i&&i.applyVisual(t,s,u)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;il(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,r){},e.type="visualMap",e}(qc),IN=[["left","right","width"],["top","bottom","height"]];function kN(t,e,n){var r=t.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===r.orient?1:0,s=IN[a],l=[0,null,10],u={},c=0;c<3;c++)u[IN[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var h=[["x","width",3],["y","height",0]][a],p=rl(u,o,r.padding);return s[(p.margin[h[2]]||0)+p[h[0]]+.5*p[h[1]]<.5*o[h[1]]?0:1]}function AN(t,e){return l.k(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var TN=An,DN=l.k,PN=Math.min,LN=Math.max;function jN(t,e,n,r){return new Gh({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Y(t.event)},ondragend:r})}function EN(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function RN(t){return"vertical"===t?"ns-resize":"ew-resize"}var NN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return a(e,t),e.prototype.doRender=function(t,e,n,r){this._api=n,r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var r=e[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Po({style:Ga(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,r=e.itemSize,i=this._orient,o=this._useHandle,a=kN(e,this.api,r),s=n.mainGroup=this._createBarGroup(a),u=new Mn;s.add(u),u.add(n.outOfRange=jN()),u.add(n.inRange=jN(null,o?RN(this._orient):null,l.c(this._dragHandle,this,"all",!1),l.c(this._dragHandle,this,"all",!0))),u.setClipPath(new vo({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var c=e.textStyleModel.getTextRect("国"),h=LN(c.width,c.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,r,h,i),this._createHandle(e,s,1,r,h,i)),this._createIndicator(e,s,r,h,i),t.add(s)},e.prototype._createHandle=function(t,e,n,r,i,o){var a=l.c(this._dragHandle,this,n,!1),s=l.c(this._dragHandle,this,n,!0),u=pn(t.get("handleSize"),r[0]),c=ad(t.get("handleIcon"),-u/2,-u/2,u,u,null,!0),h=RN(this._orient);c.attr({cursor:h,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){Y(t.event)}}),c.x=r[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Sa(c,!0),e.add(c);var p=this.visualMapModel.textStyleModel,f=new Po({cursor:h,draggable:!0,drift:a,onmousemove:function(t){Y(t.event)},ondragend:s,style:Ga(p,{x:0,y:0,text:""})});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var d=[u,0],g=this._shapes;g.handleThumbs[n]=c,g.handleLabelPoints[n]=d,g.handleLabels[n]=f},e.prototype._createIndicator=function(t,e,n,r,i){var o=pn(t.get("indicatorSize"),n[0]),a=ad(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof so){var u=a.style;a.useStyle(l.m({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},s))}else a.useStyle(s);e.add(a);var c=this.visualMapModel.textStyleModel,h=new Po({silent:!0,invisible:!0,style:Ga(c,{x:0,y:0,text:""})});this.group.add(h);var p=[("horizontal"===i?r/2:6)+n[0]/2,0],f=this._shapes;f.indicator=a,f.indicatorLabel=h,f.indicatorLabelPoint=p,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,r){if(this._useHandle){if(this._dragging=!e,!e){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(t,i[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():EN(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),r=[0,t.itemSize[1]];this._handleEnds=[TN(e[0],n,r,!0),TN(e[1],n,r,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];vI(e,r,i,t,0);var o=n.getExtent();this._dataInterval=[TN(r[0],i,o,!0),TN(r[1],i,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),r=this._shapes,i=[0,e.itemSize[1]],o=t?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,r){var i={forceState:r,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,i),a=[this.getControllerVisual(t[0],"symbolSize",i),this.getControllerVisual(t[1],"symbolSize",i)],s=this._createBarPoints(n,a);return{barColor:new ap(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],r=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var i=1;i<100;i++){var o=t[0]+r*i;if(o>t[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;S<w.length;S++)this._api.enterBlur(w[S])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,r=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);r[1]=PN(LN(0,r[1]),n[1]),t._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();t=PN(LN(i[0],t),i[1]);var a=function(t,e,n){var r=6,i=t.get("hoverLinkDataSize");i&&(r=TN(i,e,n,!0)/2);return r}(n,o,i),s=[t-a,t+a],l=TN(t,i,o,!0),u=[TN(s[0],i,o,!0),TN(s[1],i,o,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[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<i;r++){var o=ir(t[r].seriesId,null);if(null==o)return;for(var a=Zn(t[r].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(e[o]||(e[o]={}))[c]=1}}}function o(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)n.push(+r);else{var i=o(t[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}(c,h);this._dispatchHighDown("downplay",AN(p[0],n)),this._dispatchHighDown("highlight",AN(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(qf(t.target,(function(t){var n=Lo(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(e.dataType),o=i.getStore().get(r.getDataDimensionIndex(i),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this._api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",AN(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,r){var i=Dp(e,r?null:this.group);return l.t(t)?Pp(t,i,n):Lp(t,i,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(CN),zN={type:"selectDataRange",event:"dataRangeSelected",update:"update"},BN=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},VN=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var r,i,o,a,s,u=t.pipelineContext;!e.isTargetSeries(t)||u&&u.large||n.push((r=e.stateList,i=e.targetVisuals,o=l.c(e.getValueState,e),a=e.getDataDimensionIndex(t.getData()),s={},l.k(r,(function(t){var e=SO.prepareVisualTypes(i[t]);s[t]=e})),{progress:function(t,e){var n,r;function l(t){return Gf(e,r,t)}function u(t,n){Wf(e,r,t,n)}null!=a&&(n=e.getDimensionIndex(a));for(var c=e.getStore();null!=(r=t.next());){var h=e.getRawDataItem(r);if(!h||!1!==h.visualMap)for(var p=null!=a?c.get(n,r):r,f=o(p),d=i[f],g=s[f],v=0,y=g.length;v<y;v++){var m=g[v];d[m]&&d[m].applyVisual(p,l,u)}}}}))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),r=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var i=e.getVisualMeta(l.c(FN,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=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;s<l;s++){var u=o[s],c=i["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,p)}return a.color;function h(t){return a[t]}function p(t,e){a[t]=e}}var GN=l.k;function HN(t){var e=t&&t.visualMap;l.t(e)||(e=e?[e]:[]),GN(e,(function(t){if(t){WN(t,"splitList")&&!WN(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&l.t(e)&&GN(e,(function(t){l.A(t)&&(WN(t,"start")&&!WN(t,"min")&&(t.min=t.start),WN(t,"end")&&!WN(t,"max")&&(t.max=t.end))}))}}))}function WN(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var UN=!1;function YN(t){UN||(UN=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0: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<i;s+=o,a++){var u=a===i-1?r[1]:s+o;t.push({interval:[s,u],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),Wn(t),l.k(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;l.k(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),ZN(e,t)},pieces:function(t){var e=this.option;l.k(e.pieces,(function(e,n){l.A(e)||(e={value:e});var r={text:"",index:n};if(null!=e.label&&(r.text=e.label),e.hasOwnProperty("value")){var i=r.value=e.value;r.interval=[i,i],r.close=[1,1]}else{for(var o=r.interval=[],a=r.close=[0,0],s=[1,0,1],u=[-1/0,1/0],c=[],h=0;h<2;h++){for(var p=[["gte","gt","min"],["lte","lt","max"]][h],f=0;f<3&&null==o[h];f++)o[h]=e[p[f]],a[h]=s[f],c[h]=2===f;null==o[h]&&(o[h]=u[h])}c[0]&&o[1]===1/0&&(a[0]=0),c[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(r.value=o[0])}r.visual=SO.retrieveVisuals(e),t.push(r)}),this),ZN(e,t),Wn(t),l.k(t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][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(n<p){var r=void 0,a=e.get("name")?"withName":"withoutName";r=i(r=u>1?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<s.count();d++)if(d<c){var v=s.getName(d),y=s.getValues(d),m=o.get(["data",v?"withName":"withoutName"]);f.push(i(m,{name:v,value:y.join(l)}))}r+=f.join(l)+h,g.push(r)}var b}));var y=o.getModel(["series","multiple","separator"]),m=y.get("middle"),b=y.get("end");s+=g.join(m)+b,a.setAttribute("aria-label",s)}()}function i(t,e){if(!l.C(t))return t;var n=t;return l.k(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}}function iz(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},l.k(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}var oz={value:"eq","<":"lt","<=":"lte",">":"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;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),uz=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),cz=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),hz=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(t?n:e))return!1;return!0},t}();function pz(t,e){if(!0===t||!1===t){var n=new sz;return n.value=t,n}return dz(t)||El(""),t.and?fz("and",t,e):t.or?fz("or",t,e):t.not?function(t,e){var n=t.not;0;dz(n)||El("");var r=new cz;r.child=pz(n,e),r.child||El("");return r}(t,e):function(t,e){for(var n=e.prepareGetValue(t),r=[],i=Object(l.F)(t),o=t.parser,a=o?qu(o):null,s=0;s<i.length;s++){var u=i[s];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var c=Object(l.q)(oz,u)?oz[u]:u,h=t[u],p=a?a(h):h,f=Qu(c,p)||"reg"===c&&new az(p);f||El(""),r.push(f)}}r.length||El("");var d=new hz;return d.valueGetterParam=n,d.valueParser=a,d.getValue=e.getValue,d.subCondList=r,d}(t,e)}function fz(t,e,n){var r=e[t];Object(l.t)(r)||El(""),r.length||El("");var i="and"===t?new lz:new uz;return i.children=Object(l.H)(r,(function(t){return pz(t,n)})),i.children.length||El(""),i}function dz(t){return Object(l.A)(t)&&!Object(l.u)(t)}var gz=function(){function t(t,e){this._cond=pz(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();var vz={type:"echarts:filter",transform:function(t){for(var e,n=t.upstream,r=function(t,e){return new gz(t,e)}(t.config,{valueGetterAttrMap:Object(l.f)({dimension:!0}),prepareGetValue:function(t){var e=t.dimension;Object(l.q)(t,"dimension")||El("");var r=n.getDimensionInfo(e);return r||El(""),{dimIdx:r.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}}),i=[],o=0,a=n.count();o<a;o++)e=n.getRawDataItem(o),r.evaluate()&&i.push(e);return{data:i}}};var yz={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r=Zn(n);r.length||El("");var i=[];Object(l.k)(r,(function(t){var n=t.dimension,r=t.order,o=t.parser,a=t.incomparable;if(null==n&&El(""),"asc"!==r&&"desc"!==r&&El(""),a&&"min"!==a&&"max"!==a){0,El("")}if("asc"!==r&&"desc"!==r){0,El("")}var s=e.getDimensionInfo(n);s||El("");var l=o?qu(o):null;o&&!l&&El(""),i.push({dimIdx:s.index,parser:l,comparator:new Zu(r,a)})}));var o=e.sourceFormat;"arrayRows"!==o&&"objectRows"!==o&&El("");for(var a=[],s=0,u=e.count();s<u;s++)a.push(e.getRawDataItem(s));return a.sort((function(t,n){for(var r=0;r<i.length;r++){var o=i[r],a=e.retrieveValueFromItem(t,o.dimIdx),s=e.retrieveValueFromItem(n,o.dimIdx);o.parser&&(a=o.parser(a),s=o.parser(s));var l=o.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:a}}};var mz=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return a(e,t),e.prototype.init=function(e,n,r){t.prototype.init.call(this,e,n,r),this._sourceManager=new vc(this),yc(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),yc(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:"column"},e}(hl),bz=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return a(e,t),e.type="dataset",e}(qc);var xz=ji.CMD;function _z(t,e){return Math.abs(t-e)<1e-5}function wz(t){var e,n,r,i,o,a=t.data,s=t.len(),l=[],u=0,c=0,h=0,p=0;function f(t,n){e&&e.length>2&&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=n<t?-1:1,c=Math.cos(t),h=Math.sin(t),p=Math.cos(n),f=Math.sin(n),d=c*o+r,g=h*a+i,v=p*o+r,y=f*a+i,m=o*l*u,b=a*l*u;e.push(d-m*h,g+b*c,v+m*f,y-b*p,v,y)}for(var v=0;v<s;){var y=a[v++],m=1===v;switch(m&&(h=u=a[v],p=c=a[v+1],y!==xz.L&&y!==xz.C&&y!==xz.Q||(e=[h,p])),y){case xz.M:u=h=a[v++],c=p=a[v++],f(h,p);break;case xz.L:d(u,c,n=a[v++],r=a[v++]),u=n,c=r;break;case xz.C:e.push(a[v++],a[v++],a[v++],a[v++],u=a[v++],c=a[v++]);break;case xz.Q:n=a[v++],r=a[v++],i=a[v++],o=a[v++],e.push(u+2/3*(n-u),c+2/3*(r-c),i+2/3*(n-i),o+2/3*(r-o),i,o),u=i,c=o;break;case xz.A:var b=a[v++],x=a[v++],_=a[v++],w=a[v++],S=a[v++],M=a[v++]+S;v+=1;var O=!a[v++];n=Math.cos(S)*_+b,r=Math.sin(S)*w+x,m?f(h=n,p=r):d(u,c,n,r),u=Math.cos(M)*_+b,c=Math.sin(M)*w+x;for(var C=(O?-1:1)*Math.PI/2,I=S;O?I>M:I<M;I+=C){g(I,O?Math.max(I+C,M):Math.min(I+C,M),b,x,_,w)}break;case xz.R:h=u=a[v++],p=c=a[v++],n=h+a[v++],r=p+a[v++],f(n,p),d(n,p,n,r),d(n,r,h,r),d(h,r,h,p),d(h,p,n,p);break;case xz.Z:e&&d(u,c,h,p),u=h,c=p}}return e&&e.length>2&&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<h&&x<h)l.push(a,s);else{var _=p*g+f*v,w=-p*y-f*m;if(b-_*_<h&&_>=0&&x-w*w<h&&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;u<a;u++)l.push(s);var c=n-a*s;if(c>0)for(u=0;u<c;u++)l[u%a]+=1;return l}function Oz(t,e,n){for(var r=t.r0,i=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),l=s*i,u=i-r,c=l>Math.abs(u),h=Mz([l,u],c?0:1,e),p=(c?s:u)/h.length,f=0;f<h.length;f++)for(var d=(c?u:s)/h[f],g=0;g<h[f];g++){var v={};c?(v.startAngle=o+p*f,v.endAngle=o+p*(f+1),v.r0=r+d*g,v.r=r+d*(g+1)):(v.startAngle=o+d*g,v.endAngle=o+d*(g+1),v.r0=r+p*f,v.r=r+p*(f+1)),v.clockwise=t.clockwise,v.cx=t.cx,v.cy=t.cy,n.push(v)}}function Cz(t,e,n,r){return t*r-n*e}function Iz(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,p=Cz(c,h,l,u);if(Math.abs(p)<1e-6)return null;var f=Cz(t-i,e-o,c,h)/p;return f<0||f>1?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;o<r;o++){var a=t[o],s=t[(o+1)%r],l=Iz(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&i.push({projPt:kz(l,e,n),pt:l,idx:o})}if(i.length<2)return[{points:t},{points:t}];i.sort((function(t,e){return t.projPt-e.projPt}));var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}var p=[u.pt.x,u.pt.y],f=[c.pt.x,c.pt.y],d=[p],g=[f];for(o=u.idx+1;o<=c.idx;o++)Az(d,t[o].slice());for(Az(d,f),Az(d,p),o=c.idx+1;o<=u.idx+r;o++)Az(g,t[o%r].slice());return Az(g,p),Az(g,f),[{points:d},{points:g}]}(e,u,c)}function Dz(t,e,n,r){if(1===n)r.push(e);else{var i=Math.floor(n/2),o=t(e);Dz(t,o[0],i,r),Dz(t,o[1],n-i,r)}return r}function Pz(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function Lz(t,e){var n,r=[],i=t.shape;switch(t.type){case"rect":!function(t,e,n){for(var r=t.width,i=t.height,o=r>i,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;p<a.length;p++)for(var f=t[l]/a[p],d=0;d<a[p];d++){var g={};g[u]=p*h,g[c]=d*f,g[s]=h,g[l]=f,g.x+=t.x,g.y+=t.y,n.push(g)}}(i,e,r),n=vo;break;case"sector":Oz(i,e,r),n=Eh;break;case"circle":Oz({r0:0,r:i.r,startAngle:0,endAngle:2*Math.PI,cx:i.cx,cy:i.cy},e,r),n=Eh;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=Object(l.H)(function(t,e){var n=wz(t),r=[];e=e||1;for(var i=0;i<n.length;i++){var o=n[i],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],h=o[u++],p=o[u++],f=o[u++],d=o[u++],g=o[u++];Sz(s,l,c,h,p,f,d,g,a,e),s=d,l=g}r.push(a)}return r}(t.getUpdatedPathProxy(),a),(function(t){return function(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}(t)})),u=s.length;if(0===u)Dz(Tz,{points:s[0]},e,r);else if(u===e)for(var c=0;c<u;c++)r.push({points:s[c]});else{var h=0,p=Object(l.H)(s,(function(t){var e=[],n=[];ui(t,e,n);var r=(n[1]-e[1])*(n[0]-e[0]);return h+=r,{poly:t,area:r}}));p.sort((function(t,e){return e.area-t.area}));var f=e;for(c=0;c<u;c++){var d=p[c];if(f<=0)break;var g=c===u-1?f:Math.ceil(d.area/h*e);g<0||(Dz(Tz,{points:d.poly},g,r),f-=g)}}n=Gh}if(!n)return function(t,e){for(var n=[],r=0;r<e;r++)n.push(dh(t));return n}(t,e);var v=[];for(c=0;c<r.length;c++){var y=new n;y.setShape(r[c]),Pz(t,y),v.push(y)}return v}function jz(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var i=[],o=[],a=n<r?t:e,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[a[0],a[1]],p=l,f=2;f<s;){var d=a[f-2],g=a[f-1],v=a[f++],y=a[f++],m=a[f++],b=a[f++],x=a[f++],_=a[f++];if(p<=0)h.push(v,y,m,b,x,_);else{for(var w=Math.min(p,c-1)+1,S=1;S<=w;S++){var M=S/w;$t(d,v,m,x,M,i),$t(g,y,b,_,M,o),d=i[3],g=o[3],h.push(i[1],o[1],i[2],o[2],d,g),v=i[5],y=o[5],m=i[6],b=o[6]}p-=w-1}}return a===t?[h,e]:[t,h]}function Ez(t,e){for(var n=t.length,r=t[n-2],i=t[n-1],o=[],a=0;a<e.length;)o[a++]=r,o[a++]=i;return o}function Rz(t){for(var e=0,n=0,r=0,i=t.length,o=0,a=i-2;o<i;a=o,o+=2){var s=t[a],l=t[a+1],u=t[o],c=t[o+1],h=s*c-u*l;e+=h,n+=(s+u)*h,r+=(l+c)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function Nz(t,e,n,r){for(var i=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,u=0;u<i;u++){for(var c=6*u,h=0,p=0;p<s;p+=2){var f=0===p?c:(c+p-2)%l+2,d=t[f]-n[0],g=t[f+1]-n[1],v=e[p]-r[0]-d,y=e[p+1]-r[1]-g;h+=v*v+y*y}h<o&&(o=h,a=u)}return a}function zz(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function Bz(t){return t.__isCombineMorphing}function Vz(t,e,n){var r="__mOriginal_"+e,i=t[r]||t[e];t[r]||(t[r]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):i.apply(this,e),a&&a.apply(this,e),t}}function Fz(t,e){var n="__mOriginal_"+e;t[n]&&(t[e]=t[n],t[n]=null)}function Gz(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;){var o=r[i],a=r[i+1];r[i++]=e[0]*o+e[2]*a+e[4],r[i++]=e[1]*o+e[3]*a+e[5]}}function Hz(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),i=function(t,e){for(var n,r,i,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,h=void 0;l?u?(r=c=(n=jz(l,u))[0],i=h=n[1]):(h=Ez(i||l,l),c=l):(c=Ez(r||u,u),h=u),o.push(c),a.push(h)}return[o,a]}(wz(n),wz(r)),o=i[0],a=i[1],s=t.getComputedTransform(),l=e.getComputedTransform();s&&Gz(o,s),l&&Gz(a,l),Vz(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var u=function(t,e,n,r){for(var i,o=[],a=0;a<t.length;a++){var s=t[a],l=e[a],u=Rz(s),c=Rz(l);null==i&&(i=u[2]<0!=c[2]<0);var h=[],p=[],f=0,d=1/0,g=[],v=s.length;i&&(s=zz(s));for(var y=6*Nz(s,l,u,c),m=v-2,b=0;b<m;b+=2){var x=(y+b)%m+2;h[b+2]=s[x]-u[0],h[b+3]=s[x+1]-u[1]}if(h[0]=s[y]-u[0],h[1]=s[y+1]-u[1],n>0)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;b<s.length;b+=2){var C=h[b],I=h[b+1],k=l[b]-c[0],A=l[b+1]-c[1],T=k*M-A*S,D=k*S+A*M;g[b]=T,g[b+1]=D;var P=T-C,L=D-I;O+=P*P+L*L}if(O<d){d=O,f=w;for(var j=0;j<g.length;j++)p[j]=g[j]}}else for(var E=0;E<v;E+=2)p[E]=l[E]-c[0],p[E+1]=l[E+1]-c[1];o.push({from:h,to:p,fromCp:u,toCp:c,rotation:-f})}return o}(o,a,10,Math.PI),c=[];Vz(e,"buildPath",{replace:function(t){for(var n=e.__morphT,r=1-n,i=[],o=0;o<u.length;o++){var a=u[o],s=a.from,l=a.to,h=a.rotation*n,p=a.fromCp,f=a.toCp,d=Math.sin(h),g=Math.cos(h);w(i,p,f,n);for(var v=0;v<s.length;v+=2){var y=s[v],m=s[v+1],b=y*r+(M=l[v])*n,x=m*r+(O=l[v+1])*n;c[v]=b*g-x*d+i[0],c[v+1]=b*d+x*g+i[1]}var _=c[0],S=c[1];t.moveTo(_,S);for(v=2;v<s.length;){var M=c[v++],O=c[v++],C=c[v++],I=c[v++],k=c[v++],A=c[v++];_===M&&S===O&&C===k&&I===A?t.lineTo(k,A):t.bezierCurveTo(M,O,C,I,k,A),_=k,S=A}}}})}function Wz(t,e,n){if(!t||!e)return e;var r=n.done,i=n.during;return Hz(t,e),e.__morphT=0,e.animateTo({__morphT:1},Object(l.i)({during:function(t){e.dirtyShape(),i&&i(t)},done:function(){Fz(e,"buildPath"),Fz(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),r&&r()}},n)),e}function Uz(t,e,n,r,i,o){t=i===n?0:Math.round(32767*(t-n)/(i-n)),e=o===r?0:Math.round(32767*(e-r)/(o-r));for(var a,s=0,l=32768;l>0;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<r;i++)n.push({one:t[i],many:[]});for(i=0;i<e.length;i++){var o=e[i].length,a=void 0;for(a=0;a<o;a++)n[a%r].many.push(e[i][a])}var s=0;for(i=r-1;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;r<t.count;r++){var i=dh(t.path);i.setStyle("opacity",n),e.push(i)}return e},split:null};function Kz(t,e,n,r,i,o){if(t.length&&e.length){var a=ka("update",r,i);if(a&&a.duration>0){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;g<f.length;g++)d+=f[g].many.length;var v=0;for(g=0;g<f.length;g++)y(f[g],p,v,d),v+=f[g].many.length}}function y(t,e,r,i,a){var s=t.many,u=t.one;if(1!==s.length||a)for(var p=Object(l.i)({dividePath:Zz[n],individualDelay:c&&function(t,e,n,o){return c(t+r,i)}},h),f=e?function(t,e,n){var r=[];!function t(e){for(var n=0;n<e.length;n++){var i=e[n];Bz(i)?t(i.childrenRef()):i instanceof to&&r.push(i)}}(t);var i=r.length;if(!i)return{fromIndividuals:[],toIndividuals:[],count:0};var o=(n.dividePath||qz)({path:e,count:i});if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};r=Yz(r),o=Yz(o);for(var a=n.done,s=n.during,u=n.individualDelay,c=new en,h=0;h<i;h++){var p=r[h],f=o[h];f.parent=e,f.copyTransform(c),u||Hz(p,f)}function d(t){for(var e=0;e<o.length;e++)o[e].addSelfToZr(t)}function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Fz(e,"addSelfToZr"),Fz(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return o},Vz(e,"addSelfToZr",{after:function(t){d(t)}}),Vz(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<o.length;e++)o[e].removeSelfFromZr(t)}});var v=o.length;if(u){var y=v,m=function(){0===--y&&(g(),a&&a())};for(h=0;h<v;h++){var b=u?Object(l.i)({delay:(n.delay||0)+u(h,v,r[h],o[h]),done:m},n):n;Wz(r[h],o[h],b)}}else e.__morphT=0,e.animateTo({__morphT:1},Object(l.i)({during:function(t){for(var n=0;n<v;n++){var r=o[n];r.__morphT=e.__morphT,r.dirtyShape()}s&&s(t)},done:function(){g();for(var e=0;e<t.length;e++)Fz(t[e],"updateTransform");a&&a()}},n));return e.__zr&&d(e.__zr),{fromIndividuals:r,toIndividuals:o,count:v}}(s,u,p):function(t,e,n){var r=e.length,i=[],o=n.dividePath||qz;if(Bz(t)){!function t(e){for(var n=0;n<e.length;n++){var r=e[n];Bz(r)?t(r.childrenRef()):r instanceof to&&i.push(r)}}(t.childrenRef());var a=i.length;if(a<r)for(var s=0,u=a;u<r;u++)i.push(dh(i[s++%a]));i.length=r}else{i=o({path:t,count:r});var c=t.getComputedTransform();for(u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}i=Yz(i),e=Yz(e);var h=n.individualDelay;for(u=0;u<r;u++){var p=h?Object(l.i)({delay:(n.delay||0)+h(u,r,i[u],e[u])},n):n;Wz(i[u],e[u],p)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}(u,s,p),d=f.fromIndividuals,g=f.toIndividuals,v=d.length,m=0;m<v;m++){b=c?Object(l.i)({delay:c(m,v)},h):h;o(d[m],g[m],e?s[m]:t.one,e?t.one:s[m],b)}else{var b,x=e?s[0]:u,_=e?u:s[0];if(Bz(x))y({many:[x],one:_},!0,r,i,!0);else Wz(x,_,b=c?Object(l.i)({delay:c(r,i)},h):h),o(x,_,x,_,b)}}}function Qz(t){if(!t)return[];if(Object(l.t)(t)){for(var e=[],n=0;n<t.length;n++)e.push(Qz(t[n]));return e}var r=[];return t.traverse((function(t){t instanceof to&&!t.disableMorphing&&!t.invisible&&!t.ignore&&r.push(t)})),r}var Jz=lr();function tB(t){var e=[];return Object(l.k)(t,(function(t){var n=t.data;if(!(n.count()>1e4))for(var r=n.getIndices(),i=function(t){for(var e=t.dimensions,n=0;n<e.length;n++){var r=t.getDimensionInfo(e[n]);if(r&&0===r.otherDims.itemGroupId)return e[n]}}(n),o=0;o<r.length;o++)e.push({data:n,dim:t.dim||i,divide:t.divide,dataIndex:o})})),e}function eB(t,e,n){t.traverse((function(t){t instanceof to&&Da(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function nB(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function rB(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function iB(t,e,n){var r=ka("update",n,e);r&&t.traverse((function(t){if(t instanceof ti){var e=function(t){return Ia(t).oldStyle}(t);e&&t.animateFrom({style:e},r)}}))}function oB(t,e,n){var r=tB(t),i=tB(e);function o(t,e,n,r,i){(n||t)&&e.animateFrom({style:n&&n!==t?Object(l.m)(Object(l.m)({},n.style),t.style):t.style},i)}function a(t){for(var e=0;e<t.length;e++)if(t[e].dim)return t[e].dim}var s=a(r),u=a(i),c=!1;function h(t,e){return function(n){var r=n.data,i=n.dataIndex;if(e)return r.getId(i);var o=r.hostModel&&r.hostModel.get("dataGroupId"),a=t?s||u:u||s,l=a&&r.getDimensionInfo(a),c=l&&l.ordinalMeta;if(l){var h=r.get(l.name,i);return c&&c.categories[h]||h+""}var p=r.getRawDataItem(i);return p&&p.groupId?p.groupId+"":o||r.getId(i)}}var p=function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var i=t[r],o=e[r];if(i.data.getId(i.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(r,i),f={};if(!p)for(var d=0;d<i.length;d++){var g=i[d],v=g.data.getItemGraphicEl(g.dataIndex);v&&(f[v.id]=!0)}function y(t,e){var n=r[e],a=i[t],s=a.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=a.data.getItemGraphicEl(a.dataIndex);l!==u?l&&f[l.id]||u&&(rB(u),l?(rB(l),nB(l),c=!0,Kz(Qz(l),Qz(u),a.divide,s,t,o)):eB(u,s,t)):u&&iB(u,a.dataIndex,s)}new Ey(r,i,h(!0,p),h(!1,p),null,"multiple").update(y).updateManyToOne((function(t,e){var n=i[t],a=n.data,s=a.hostModel,u=a.getItemGraphicEl(n.dataIndex),h=Object(l.n)(Object(l.H)(e,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==u&&!f[t.id]}));u&&(rB(u),h.length?(Object(l.k)(h,(function(t){rB(t),nB(t)})),c=!0,Kz(Qz(h),Qz(u),n.divide,s,t,o)):eB(u,s,n.dataIndex))})).updateOneToMany((function(t,e){var n=r[e],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!f[a.id]){var s=Object(l.n)(Object(l.H)(t,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==a})),u=i[t[0]].data.hostModel;s.length&&(Object(l.k)(s,(function(t){return rB(t)})),a?(rB(a),nB(a),c=!0,Kz(Qz(a),Qz(s),n.divide,u,t[0],o)):Object(l.k)(s,(function(e){return eB(e,u,t[0])})))}})).updateManyToMany((function(t,e){new Ey(e,t,(function(t){return r[t].data.getId(r[t].dataIndex)}),(function(t){return i[t].data.getId(i[t].dataIndex)})).update((function(n,r){y(t[n],e[r])})).execute()})).execute(),c&&Object(l.k)(e,(function(t){var e=t.data.hostModel,r=e&&n.getViewOfSeriesModel(e),i=ka("update",e,0);r&&e.isAnimationEnabled()&&i&&i.duration>0&&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<t.length;n++){if(null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id)return n}}Gg([function(t){t.registerPainter("canvas",Tv)}]),Gg([function(t){t.registerPainter("svg",Py)}]),Gg([function(t){t.registerChartView(Km),t.registerSeriesModel(gm),t.registerLayout(Qm("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,eb("line"))},function(t){t.registerChartView(Rb),t.registerSeriesModel(fb),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,l.h(sb,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,lb("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,eb("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))},function(t){t.registerChartView(Zb),t.registerSeriesModel(Jb),Uf("pie",t.registerAction),t.registerLayout(Object(l.h)(Fb,"pie")),t.registerProcessor(Gb("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!(Object(l.z)(r)&&!isNaN(r)&&r<0)}))}})},function(t){Gg(hw),t.registerSeriesModel(tx),t.registerChartView(ix),t.registerLayout(Qm("scatter"))},function(t){Gg(Ow),t.registerChartView(vw),t.registerSeriesModel(yw),t.registerLayout(pw),t.registerProcessor(Gb("radar")),t.registerPreprocessor(gw)},function(t){Gg(pM),t.registerChartView(qS),t.registerSeriesModel(XS),t.registerLayout(ZS),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,$S),Uf("map",t.registerAction)},function(t){t.registerChartView(TM),t.registerSeriesModel(YM),t.registerLayout(XM),t.registerVisual($M),function(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,r=e.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var r=uM(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}(t)},function(t){t.registerSeriesModel(QM),t.registerChartView(lO),t.registerVisual(OO),t.registerLayout(NO),function(t){for(var e=0;e<ZM.length;e++)t.registerAction({type:ZM[e],update:"updateView"},l.L);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},(function(e,n){var r=GM(t,["treemapZoomToNode","treemapRootToNode"],e);if(r){var i=e.getViewRoot();i&&(t.direction=WM(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}))}))}(t)},function(t){t.registerChartView(jC),t.registerSeriesModel(GC),t.registerProcessor(FO),t.registerVisual(GO),t.registerVisual(WO),t.registerLayout(JO),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,sC),t.registerLayout(uC),t.registerCoordinateSystem("graphView",{dimensions:JS.dimensions,create:cC}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},l.L),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},l.L),t.registerAction(HC,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var r=uM(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))},function(t){t.registerChartView(qC),t.registerSeriesModel(XC)},function(t){t.registerChartView(KC),t.registerSeriesModel(QC),t.registerLayout(JC),t.registerProcessor(Gb("funnel"))},function(t){Gg(Ck),t.registerChartView(iI),t.registerSeriesModel(aI),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,lI)},function(t){t.registerChartView(Ak),t.registerSeriesModel(Tk),t.registerLayout(Dk),t.registerVisual(Hk),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))},function(t){t.registerSeriesModel(Yk),t.registerChartView(Jk),t.registerVisual(tA),t.registerLayout(nA),t.registerTransform(rA)},function(t){t.registerChartView(vA),t.registerSeriesModel(mA),t.registerPreprocessor(bA),t.registerVisual(MA),t.registerLayout(CA)},function(t){t.registerChartView(AA),t.registerSeriesModel(TA),t.registerLayout(Qm("effectScatter"))},function(t){t.registerChartView(zA),t.registerSeriesModel(GA),t.registerLayout(NA),t.registerVisual(WA)},function(t){t.registerChartView(qA),t.registerSeriesModel(XA)},function(t){t.registerChartView(gT),t.registerSeriesModel(vT),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(l.h)(sb,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,lb("pictorialBar"))},function(t){t.registerChartView(yT),t.registerSeriesModel(mT),t.registerLayout(bT),t.registerProcessor(Gb("themeRiver"))},function(t){t.registerChartView(wT),t.registerSeriesModel(ST),t.registerLayout(Object(l.h)(OT,"sunburst")),t.registerProcessor(Object(l.h)(Gb,"sunburst")),t.registerVisual(CT),function(t){t.registerAction({type:"sunburstRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var r=GM(t,["sunburstRootToNode"],e);if(r){var i=e.getViewRoot();i&&(t.direction=WM(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}))})),t.registerAction({type:"sunburstHighlight",update:"none"},(function(t,e,n){t=Object(l.m)({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e){var n=GM(t,["sunburstHighlight"],e);n&&(t.dataIndex=n.node.dataIndex)})),n.dispatchAction(Object(l.m)(t,{type:"highlight"}))})),t.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(t,e,n){t=Object(l.m)({},t),n.dispatchAction(Object(l.m)(t,{type:"downplay"}))}))}(t)},function(t){t.registerChartView(fD),t.registerSeriesModel(TT)}]),Gg((function(t){Gg(hw),Gg(dP)})),Gg((function(t){Gg(dP),J_.registerAxisPointerClass("PolarAxisPointer",yP),t.registerCoordinateSystem("polar",PP),t.registerComponentModel(mP),t.registerComponentView(ZP),vx(t,"angle",xP,XP),vx(t,"radius",_P,$P),t.registerComponentView(BP),t.registerComponentView(WP),t.registerLayout(Object(l.h)(qP,"bar"))})),Gg(pM),Gg((function(t){Gg(dP),J_.registerAxisPointerClass("SingleAxisPointer",vL),t.registerComponentView(yL),t.registerComponentView(nL),t.registerComponentModel(iL),vx(t,"single",iL,iL.defaultOption),t.registerCoordinateSystem("single",uL)})),Gg(Ck),Gg((function(t){t.registerComponentModel(bL),t.registerComponentView(xL),t.registerCoordinateSystem("calendar",wL)})),Gg((function(t){t.registerComponentModel(IL),t.registerComponentView(TL),t.registerPreprocessor((function(t){var e=t.graphic;Object(l.t)(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))})),Gg((function(t){t.registerComponentModel(rj),t.registerComponentView(oj),ej("saveAsImage",aj),ej("magicType",cj),ej("dataView",yj),ej("dataZoom",Hj),ej("restore",wj),Gg(QL)})),Gg((function(t){Gg(dP),t.registerComponentModel(Wj),t.registerComponentView(cE),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},l.L),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},l.L)})),Gg(dP),Gg((function(t){t.registerComponentView(IE),t.registerComponentModel(AE),t.registerPreprocessor(pE),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,wE),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},l.L),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},l.L),ej("brush",DE)})),Gg((function(t){t.registerComponentModel(PE),t.registerComponentView(LE)})),Gg((function(t){t.registerComponentModel(RE),t.registerComponentView(HE),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),function(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var r=e.getComponent("timeline");return r&&null!=t.currentIndex&&(r.setCurrentIndex(t.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),Object(l.i)({currentIndex:r.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}(t),t.registerPreprocessor(WE)})),Gg((function(t){t.registerComponentModel(QE),t.registerComponentView(cR),t.registerPreprocessor((function(t){qE(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))})),Gg((function(t){t.registerComponentModel(hR),t.registerComponentView(mR),t.registerPreprocessor((function(t){qE(t.series,"markLine")&&(t.markLine=t.markLine||{})}))})),Gg((function(t){t.registerComponentModel(bR),t.registerComponentView(IR),t.registerPreprocessor((function(t){qE(t.series,"markArea")&&(t.markArea=t.markArea||{})}))})),Gg((function(t){Gg(BR),Gg(YR)})),Gg((function(t){Gg(oN),Gg(pN)})),Gg(oN),Gg(pN),Gg((function(t){Gg(qN),Gg(JN)})),Gg(qN),Gg(JN),Gg((function(t){t.registerPreprocessor(iz),t.registerVisual(t.PRIORITY.VISUAL.ARIA,rz)})),Gg((function(t){t.registerTransform(vz),t.registerTransform(yz)})),Gg((function(t){t.registerComponentModel(mz),t.registerComponentView(bz)})),Gg((function(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(l.k)(Zn(n.seriesTransition),(function(t){Object(l.k)(Zn(t.to),(function(t){for(var e=n.updatedSeries,r=0;r<e.length;r++)(null!=t.seriesIndex&&t.seriesIndex===e[r].seriesIndex||null!=t.seriesId&&t.seriesId===e[r].id)&&(e[r].__universalTransitionEnabled=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var r=Jz(e);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)Object(l.k)(Zn(i),(function(t){!function(t,e,n,r){var i=[],o=[];Object(l.k)(Zn(t.from),(function(t){var n=uB(e.oldSeries,t);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;c<a.length;c++){var h=a[c].getData();h.count()<1e4&&(s.push(a[c]),u.push(h))}}))})),Gg(Iv)},"32fc":function(t,e,n){var r=n("e53d").document;t.exports=r&&r.documentElement},"335c":function(t,e,n){var r=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,n){var r=n("d9f6"),i=n("aebd");t.exports=n("8e60")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"36c3":function(t,e,n){var r=n("335c"),i=n("25eb");t.exports=function(t){return r(i(t))}},"370c":function(t,e,n){"use strict";n("07ed")},3938:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.radarConfig=void 0;e.radarConfig={show:!0,name:"",data:[],radarStyle:{lineWidth:1},point:{show:!0,radius:2,style:{fill:"#fff"}},label:{show:!0,offset:[0,0],labelGap:5,formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrane:50}},"3a38":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?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;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},"41ef":function(t,e,n){"use strict";n.d(e,"g",(function(){return v})),n.d(e,"c",(function(){return m})),n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return x})),n.d(e,"f",(function(){return _})),n.d(e,"e",(function(){return w})),n.d(e,"h",(function(){return S})),n.d(e,"d",(function(){return M}));var r=n("d51b"),i={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function o(t){return(t=Math.round(t))<0?0:t>255?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;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},s),[{name:"rect",index:a,animationCurve:n,animationFrame:r,shape:s,style:l}]}function p(t,e){return"number"==typeof t?t:"string"!=typeof t?0:e*parseInt(t)/100}},"47ee":function(t,e,n){var r=n("c3a1"),i=n("9aa9"),o=n("355d");t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),l=o.f,u=0;s.length>u;)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("53b8"),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 o<i&&r.splice(o)}function w(t){var e=t.radarPosition,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"circle",index:i,animationCurve:n,animationFrame:r,visible:t.point.show,shape:M(t,o),style:O(t,o)}}))}function S(t){var e=w(t);return e.forEach((function(t){return t.shape.r=.01})),e}function M(t,e){var n=t.radarPosition,r=t.point.radius,i=n[e];return{rx:i[0],ry:i[1],r:r}}function O(t,e){var n=t.point,r=t.color,i=n.style;return(0,p.deepMerge)({stroke:r},i)}function C(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.label.show,animationCurve:n,animationFrame:r,shape:I(t,o),style:k(t,o)}}))}function I(t,e){var n,r,i,s,l,u,c,h,p=t.labelPosition,f=t.label,d=t.data,g=f.offset,v=f.formatter,y=(n=p[e],r=g,i=(0,a.default)(n,2),s=i[0],l=i[1],u=(0,a.default)(r,2),c=u[0],h=u[1],[s+c,l+h]),m=d[e]?d[e].toString():"0",b=(0,o.default)(v);return"string"===b&&(m=v.replace("{value}",m)),"function"===b&&(m=v(m)),{content:m,position:y}}function k(t,e){var n=t.label,r=t.color,o=t.labelAlign,a=n.style,s=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({fill:r},o[e]);return(0,p.deepMerge)(s,a)}},"50ed":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},5168:function(t,e,n){var r=n("dbdb")("wks"),i=n("62a0"),o=n("e53d").Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},"51b6":function(t,e,n){n("a3c3"),t.exports=n("584a").Object.assign},"53b8":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getRgbValue=c,e.getRgbaValue=h,e.getOpacity=p,e.toRgb=f,e.toHex=d,e.getColorFromRgbValue=g,e.darken=v,e.lighten=y,e.fade=m,e.default=void 0;var i=r(n("448a")),o=r(n("b7c2")),a=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,s=/^(rgb|rgba|RGB|RGBA)/,l=/^(rgba|RGBA)/;function u(t){var e=a.test(t),n=s.test(t);return e||n?t:(t=function(t){if(!t)return console.error("getColorByKeywords: Missing parameters!"),!1;return!!o.default.has(t)&&o.default.get(t)}(t))||(console.error("Color: Invalid color!"),!1)}function c(t){if(!t)return console.error("getRgbValue: Missing parameters!"),!1;if(!(t=u(t)))return!1;var e=a.test(t),n=s.test(t),r=t.toLowerCase();return e?function(t){3===(t=t.replace("#","")).length&&(t=Array.from(t).map((function(t){return t+t})).join(""));return t=t.split(""),new Array(3).fill(0).map((function(e,n){return parseInt("0x".concat(t[2*n]).concat(t[2*n+1]))}))}(r):n?function(t){return t.replace(/rgb\(|rgba\(|\)/g,"").split(",").slice(0,3).map((function(t){return parseInt(t)}))}(r):void 0}function h(t){if(!t)return console.error("getRgbaValue: Missing parameters!"),!1;var e=c(t);return!!e&&(e.push(p(t)),e)}function p(t){return t?!!(t=u(t))&&(l.test(t)?(t=t.toLowerCase(),Number(t.split(",").slice(-1)[0].replace(/[)|\s]/g,""))):1):(console.error("getOpacity: Missing parameters!"),!1)}function f(t,e){if(!t)return console.error("toRgb: Missing parameters!"),!1;var n=c(t);return!!n&&("number"==typeof e?"rgba("+n.join(",")+",".concat(e,")"):"rgb("+n.join(",")+")")}function d(t){return t?a.test(t)?t:!!(t=c(t))&&"#"+t.map((function(t){return Number(t).toString(16)})).map((function(t){return"0"===t?"00":t})).join(""):(console.error("toHex: Missing parameters!"),!1)}function g(t){if(!t)return console.error("getColorFromRgbValue: Missing parameters!"),!1;var e=t.length;if(3!==e&&4!==e)return console.error("getColorFromRgbValue: Value is illegal!"),!1;var n=3===e?"rgb(":"rgba(";return n+=t.join(",")+")"}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!t)return console.error("darken: Missing parameters!"),!1;var n=h(t);return!!n&&g(n=n.map((function(t,n){return 3===n?t:t-Math.ceil(2.55*e)})).map((function(t){return t<0?0:t})))}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!t)return console.error("lighten: Missing parameters!"),!1;var n=h(t);return!!n&&g(n=n.map((function(t,n){return 3===n?t:t+Math.ceil(2.55*e)})).map((function(t){return t>255?255:t})))}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;if(!t)return console.error("fade: Missing parameters!"),!1;var n=c(t);if(!n)return!1;var r=[].concat((0,i.default)(n),[e/100]);return g(r)}var b={fade:m,toHex:d,toRgb:f,darken:v,lighten:y,getOpacity:p,getRgbValue:c,getRgbaValue:h,getColorFromRgbValue:g};e.default=b},"53e2":function(t,e,n){var r=n("07e3"),i=n("241e"),o=n("5559")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},5557:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.deepClone=d,e.eliminateBlur=g,e.checkPointIsInCircle=v,e.getTwoPointDistance=y,e.checkPointIsInPolygon=m,e.checkPointIsInSector=b,e.checkPointIsNearPolyline=_,e.checkPointIsInRect=function(t,e,n,r,i){var a=(0,o.default)(t,2),s=a[0],l=a[1];return!(s<e)&&(!(l<n)&&(!(s>e+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=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports},"5b4e":function(t,e,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");t.exports=function(t){return function(e,n,a){var s,l=r(e),u=i(l.length),c=o(a,u);if(t&&n!=n){for(;u>c;)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=Object.prototype.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;l<s.length;l++){var u=s[l],c=r[u],h=c&&c.prototype;h&&!h[a]&&i(h,a,u),o[u]=o.Array}},"6d8b":function(t,e,n){"use strict";n.d(e,"p",(function(){return g})),n.d(e,"G",(function(){return v})),n.d(e,"d",(function(){return y})),n.d(e,"I",(function(){return m})),n.d(e,"J",(function(){return b})),n.d(e,"m",(function(){return x})),n.d(e,"i",(function(){return _})),n.d(e,"r",(function(){return w})),n.d(e,"s",(function(){return S})),n.d(e,"K",(function(){return M})),n.d(e,"u",(function(){return O})),n.d(e,"k",(function(){return C})),n.d(e,"H",(function(){return I})),n.d(e,"N",(function(){return k})),n.d(e,"n",(function(){return A})),n.d(e,"o",(function(){return T})),n.d(e,"F",(function(){return D})),n.d(e,"c",(function(){return P})),n.d(e,"h",(function(){return L})),n.d(e,"t",(function(){return j})),n.d(e,"w",(function(){return E})),n.d(e,"C",(function(){return R})),n.d(e,"D",(function(){return N})),n.d(e,"z",(function(){return z})),n.d(e,"A",(function(){return B})),n.d(e,"E",(function(){return F})),n.d(e,"v",(function(){return G})),n.d(e,"x",(function(){return H})),n.d(e,"y",(function(){return W})),n.d(e,"B",(function(){return U})),n.d(e,"l",(function(){return Y})),n.d(e,"O",(function(){return q})),n.d(e,"P",(function(){return X})),n.d(e,"Q",(function(){return $})),n.d(e,"S",(function(){return Z})),n.d(e,"M",(function(){return K})),n.d(e,"b",(function(){return Q})),n.d(e,"T",(function(){return J})),n.d(e,"R",(function(){return tt})),n.d(e,"f",(function(){return rt})),n.d(e,"e",(function(){return it})),n.d(e,"g",(function(){return ot})),n.d(e,"j",(function(){return at})),n.d(e,"q",(function(){return st})),n.d(e,"L",(function(){return lt})),n.d(e,"a",(function(){return ut}));var r=n("726e"),i=k(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=k(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,h=s.map,p=function(){}.constructor,f=p?p.prototype:null,d=2311;function g(){return d++}function v(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function y(t){if(null==t||"object"!=typeof t)return t;var e=t,n=a.call(t);if("[object Array]"===n){if(!et(t)){e=[];for(var r=0,s=t.length;r<s;r++)e[r]=y(t[r])}}else if(o[n]){if(!et(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(r=0,s=t.length;r<s;r++)e[r]=t[r]}}}else if(!i[n]&&!et(t)&&!G(t))for(var u in e={},t)t.hasOwnProperty(u)&&"__proto__"!==u&&(e[u]=y(t[u]));return e}function m(t,e,n){if(!B(e)||!B(t))return n?y(e):t;for(var r in e)if(e.hasOwnProperty(r)&&"__proto__"!==r){var i=t[r],o=e[r];!B(o)||!B(i)||j(o)||j(i)||G(o)||G(i)||V(o)||V(i)||et(o)||et(i)?!n&&r in t||(t[r]=y(e[r])):m(i,o,n)}return t}function b(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=m(n,t[r],e);return n}function x(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&"__proto__"!==n&&(t[n]=e[n]);return t}function _(t,e,n){for(var r=D(e),i=0;i<r.length;i++){var o=r[i];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}r.d.createCanvas;function w(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function S(t,e){var n=t.prototype;function r(){}for(var i in r.prototype=e.prototype,t.prototype=new r,n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}function M(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else _(t,e,n)}function O(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function C(t,e,n){if(t&&e)if(t.forEach&&t.forEach===l)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function I(t,e,n){if(!t)return[];if(!e)return Z(t);if(t.map&&t.map===h)return t.map(e,n);for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i,t));return r}function k(t,e,n,r){if(t&&e){for(var i=0,o=t.length;i<o;i++)n=e.call(r,n,t[i],i,t);return n}}function A(t,e,n){if(!t)return[];if(!e)return Z(t);if(t.filter&&t.filter===u)return t.filter(e,n);for(var r=[],i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function T(t,e,n){if(t&&e)for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return t[r]}function D(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var P=f&&E(f.bind)?f.call.bind(f.bind):function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(c.call(arguments)))}};function L(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(c.call(arguments)))}}function j(t){return Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)}function E(t){return"function"==typeof t}function R(t){return"string"==typeof t}function N(t){return"[object String]"===a.call(t)}function z(t){return"number"==typeof t}function B(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function V(t){return!!i[a.call(t)]}function F(t){return!!o[a.call(t)]}function G(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function H(t){return null!=t.colorStops}function W(t){return null!=t.image}function U(t){return"[object RegExp]"===a.call(t)}function Y(t){return t!=t}function q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(null!=t[n])return t[n]}function X(t,e){return null!=t?t:e}function $(t,e,n){return null!=t?t:null!=e?e:n}function Z(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return c.apply(t,e)}function K(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function Q(t,e){if(!t)throw new Error(e)}function J(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function tt(t){t.__ec_primitive__=!0}function et(t){return t.__ec_primitive__}var nt=function(){function t(e){this.data={};var n=j(e);this.data={};var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&C(e,i)}return t.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},t.prototype.set=function(t,e){return this.data[t]=e},t.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},t.prototype.keys=function(){return D(this.data)},t.prototype.removeKey=function(t){delete this.data[t]},t}();function rt(t){return new nt(t)}function it(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];var i=t.length;for(r=0;r<e.length;r++)n[r+i]=e[r];return n}function ot(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&x(n,e),n}function at(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function st(t,e){return t.hasOwnProperty(e)}function lt(){}var ut=180/Math.PI},"6dd8":function(t,e,n){"use strict";n.r(e),function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,l=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,i=0;function a(){n&&(n=!1,t()),r&&l()}function s(){o(a)}function l(){var t=Date.now();if(n){if(t-i<2)return;r=!0}else n=!0,r=!1,setTimeout(s,e);i=t}return l}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},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);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},c=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},h=y(0,0,0,0);function p(t){return parseFloat(t)||0}function f(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+p(t["border-"+n+"-width"])}),0)}function d(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return h;var r=c(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=t["padding-"+i];e[i]=p(o)}return e}(r),o=i.left+i.right,a=i.top+i.bottom,s=p(r.width),l=p(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=f(r,"left","right")+o),Math.round(l+a)!==n&&(l-=f(r,"top","bottom")+a)),!function(t){return t===c(t).document.documentElement}(t)){var u=Math.round(s+o)-e,d=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(d)&&(l-=d)}return y(i.left,i.top,s,l)}var g="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof c(t).SVGGraphicsElement}:function(t){return t instanceof c(t).SVGElement&&"function"==typeof t.getBBox};function v(t){return r?g(t)?function(t){var e=t.getBBox();return y(0,0,e.width,e.height)}(t):d(t):h}function y(t,e,n,r){return{x:t,y:e,width:n,height:r}}var m=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=v(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),b=function(t,e){var n,r,i,o,a,s,l,c=(r=(n=e).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),u(l,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),l);u(this,{target:t,contentRect:c})},x=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof c(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new m(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof c(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new b(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},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<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-20)/100;e[r]=i}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),u={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!a){var n=u.createCanvas();a=n&&n.getContext("2d")}if(a)return s!==e&&(s=a.font=e||o),a.measureText(t);t=t||"";var i=/^([0-9]*?)px$/.exec(e=e||o),c=+(i&&i[1])||r,h=0;if(e.indexOf("mono")>=0)h=c*t.length;else for(var p=0;p<t.length;p++){var f=l[t[p]];h+=null==f?c:f*c}return{width:h}},loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function c(t){for(var e in u)t[e]&&(u[e]=t[e])}},"729e":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.pie=function(t){var e=arguments.length>1&&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:n<r?1:void 0}))}(n)).forEach((function(t,n){t.radius[1]=e[1]-i*n})),r?n.reverse():t.data=o,t.roseIncrement=i})),t}function y(t){return t.forEach((function(t){var e=t.data,n=t.percentToFixed,r=function(t){return(0,h.mulAdd)(t.map((function(t){return t.value})))}(e);e.forEach((function(t){var e=t.value;t.percent=e/r*100,t.percentForLabel=m(e/r*100,n)}));var i=(0,h.mulAdd)(e.slice(0,-1).map((function(t){return t.percent})));e.slice(-1)[0].percent=100-i,e.slice(-1)[0].percentForLabel=m(100-i,n)})),t}function m(t){var e=arguments.length>1&&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:r<o?-1:r===o?0:void 0})),t}function C(t,e){var n=!(arguments.length>2&&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<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({fill:o},a),s)}},"75ee":function(t,e,n){},"765d":function(t,e,n){n("6718")("observable")},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"7a29":function(t,e,n){"use strict";(function(t){n.d(e,"p",(function(){return s})),n.d(e,"j",(function(){return l})),n.d(e,"q",(function(){return c})),n.d(e,"e",(function(){return h})),n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return f})),n.d(e,"i",(function(){return d})),n.d(e,"h",(function(){return g})),n.d(e,"l",(function(){return v})),n.d(e,"n",(function(){return y})),n.d(e,"m",(function(){return m})),n.d(e,"o",(function(){return b})),n.d(e,"k",(function(){return x})),n.d(e,"d",(function(){return _})),n.d(e,"f",(function(){return w})),n.d(e,"g",(function(){return S})),n.d(e,"c",(function(){return M}));var r=n("6d8b"),i=n("41ef"),o=n("22d1"),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-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 e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof d?e:d,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return k()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=p(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var f={};function d(){}function g(){}function v(){}var y={};c(y,s,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(I([])));b&&b!==n&&o.call(b,s)&&(y=b);var x=v.prototype=d.prototype=Object.create(y);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var n;this._invoke=function(i,a){function s(){return new e((function(n,s){!function n(i,a,s,l){var u=p(t[i],t,a);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==r(h)&&o.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)}(i,a,n,s)}))}return n=n?n.then(s,s):s()}}function S(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=p(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function M(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function I(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:k}}function k(){return{value:void 0,done:!0}}return g.prototype=v,c(x,"constructor",v),c(v,"constructor",g),g.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},_(w.prototype),c(w.prototype,l,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(h(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(x),c(x,u,"Generator"),c(x,s,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=I,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),f}},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;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}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("53b8")),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.index<e.index?-1:void 0}))},f.prototype.delGraph=function(t){"function"==typeof t.delProcessor&&(t.delProcessor(this),this.graphs=this.graphs.filter((function(t){return t})),this.drawAllGraph())},f.prototype.delAllGraph=function(){var t=this;this.graphs.forEach((function(e){return e.delProcessor(t)})),this.graphs=this.graphs.filter((function(t){return t})),this.drawAllGraph()},f.prototype.drawAllGraph=function(){var t=this;this.clearArea(),this.graphs.filter((function(t){return t&&t.visible})).forEach((function(e){return e.drawProcessor(t,e)}))},f.prototype.launchAnimation=function(){var t=this;if(!this.animationStatus)return this.animationStatus=!0,new Promise((function(e){d.call(t,(function(){t.animationStatus=!1,e()}),Date.now())}))},f.prototype.clone=function(t){var e=t.style.getStyle(),n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(n,!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t,{style:e});return delete n.render,n=(0,u.deepClone)(n,!0),this.add(n)}},"873c":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.title=function(t){var e=arguments.length>1&&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<l}}));var o=r[0],a=r[2]||r[0],s=i[1]||i[0],l=i[0];return[o,a,s,l]}(t,e),r=function(t,e){var n=t[0][0],r=t[3][0];return(e-n)/(r-n)}(n,e);return function(t,e){var n=(0,i.default)(t,4),r=(0,i.default)(n[0],2)[1],o=(0,i.default)(n[1],2)[1],a=(0,i.default)(n[2],2)[1],s=(0,i.default)(n[3],2)[1],l=Math.pow,u=1-e,c=r*l(u,3),h=3*o*e*l(u,2),p=3*a*l(e,2)*u,f=s*l(e,3);return 1-(c+h+p+f)}(n,r)}(t,e)}))}function h(t,e,n){var r="object";return"number"==typeof t&&(r="number"),t instanceof Array&&(r="array"),"number"===r?function(t,e,n){var r=e-t;return n.map((function(e){return t+r*e}))}(t,e,n):"array"===r?p(t,e,n):"object"===r?function(t,e,n){var r=Object.keys(e),i=r.map((function(e){return t[e]})),o=r.map((function(t){return e[t]}));return p(i,o,n).map((function(t){var e={};return t.forEach((function(t,n){return e[r[n]]=t})),e}))}(t,e,n):n.map((function(t){return e}))}function p(t,e,n){var r=e.map((function(e,n){return"number"==typeof e&&e-t[n]}));return n.map((function(n){return r.map((function(r,i){return!1===r?e[i]:t[i]+r*n}))}))}function f(t,e,n){var r=h(t,e,n),i=function(i){var a=t[i],s=e[i];if("object"!==(0,o.default)(s))return"continue";var l=f(a,s,n);r.forEach((function(t,e){return t[i]=l[e]}))};for(var a in e)i(a);return r}var d=s;e.default=d},"8f60":function(t,e,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},9003:function(t,e,n){var r=n("6b4c");t.exports=Array.isArray||function(t){return"Array"==r(t)}},9138:function(t,e,n){t.exports=n("35e8")},9152:function(t,e){
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
- e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>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<<u)-1,h=c>>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<<i|s,u+=i;u>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){t.exports=function(t,e,n){return 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.length;r++){var i=n[r].split("=");console.log(i),e[i[0]]=i[1]}return e}return{}}(t.url);if(e.regionCode&&"china"!=e.regionCode){return i.a.mock({success:!0,data:{"dataList|30":[{name:"@city()",value:"@integer(1, 1000)"}],regionCode:e.regionCode}})}return i.a.mock({success:!0,data:{"dataList|8":[{name:"@province()",value:"@integer(1, 1000)"}],regionCode:"china"}})})),i.a.mock(new RegExp("alarmNum"),"get",(function(){return i.a.mock({success:!0,data:{dateList:["2021-11","2021-12","2022-01","2022-02","2022-03","2022-04"],"numList|6":["@integer(0, 1000)"],"numList2|6":["@integer(0, 1000)"]}})})),i.a.mock(new RegExp("ssyj"),"get",(function(){return i.a.mock({success:!0,data:{"list|40":[{alertdetail:"@csentence(5,10)","alertname|1":["水浸告警","各种报警"],alertvalue:"@float(60, 200)",createtime:"2022-04-19 08:38:33",deviceid:null,"gatewayno|+1":1e4,phase:"A1",sbInfo:"@csentence(10,18)","terminalno|+1":100,provinceName:"@province()",cityName:"@city()",countyName:"@county()"}]}})})),i.a.mock(new RegExp("installationPlan"),"get",(function(){let t=(n=32-(e=26),r=Math.random(),e+Math.round(r*n));var e,n,r;const o=i.a.mock({["category|"+t]:["@city()"],["barData|"+t]:["@integer(10, 100)"]});let a=[],s=[];for(let e=0;e<t;e++){let t=i.a.mock("@integer(0, 100)")+o.barData[e];a.push(t);let n=o.barData[e]/t;s.push((100*n).toFixed(0))}return o.lineData=a,o.rateData=s,{success:!0,data:o}})),i.a.mock(new RegExp("ranking"),"get",(function(){let t=i.a.mock({"list|48":[{value:"@integer(50,1000)",name:"@city()"}]}).list,e=[],n={};return t.map(t=>{!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;e<t.rule.count;e++)for(n=0;n<t.template.length;n++)t.context.path.push(r.length),t.context.templatePath.push(n),r.push(Handler.gen(t.template[n],r.length,{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 for(e=0;e<t.template.length;e++)t.context.path.push(e),t.context.templatePath.push(e),r.push(Handler.gen(t.template[e],e,{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();return r},object:function(t){var e,n,r,i,o,a,s={};if(null!=t.rule.min)for(e=Util.keys(t.template),e=(e=Random.shuffle(e)).slice(0,t.rule.count),a=0;a<e.length;a++)i=(r=e[a]).replace(Constant.RE_KEY,"$1"),t.context.path.push(i),t.context.templatePath.push(r),s[i]=Handler.gen(t.template[r],r,{path:t.context.path,templatePath:t.context.templatePath,currentContext:s,templateCurrentContext:t.template,root:t.context.root||s,templateRoot:t.context.templateRoot||t.template}),t.context.path.pop(),t.context.templatePath.pop();else{for(r in e=[],n=[],t.template)("function"==typeof t.template[r]?n:e).push(r);for(e=e.concat(n),a=0;a<e.length;a++)i=(r=e[a]).replace(Constant.RE_KEY,"$1"),t.context.path.push(i),t.context.templatePath.push(r),s[i]=Handler.gen(t.template[r],r,{path:t.context.path,templatePath:t.context.templatePath,currentContext:s,templateCurrentContext:t.template,root:t.context.root||s,templateRoot:t.context.templateRoot||t.template}),t.context.path.pop(),t.context.templatePath.pop(),(o=r.match(Constant.RE_KEY))&&o[2]&&"number"===Util.type(t.template[r])&&(t.template[r]+=parseInt(o[2],10))}return s},number:function(t){var e,n;if(t.rule.decimal){for(t.template+="",(n=t.template.split("."))[0]=t.rule.range?t.rule.count:n[0],n[1]=(n[1]||"").slice(0,t.rule.dcount);n[1].length<t.rule.dcount;)n[1]+=n[1].length<t.rule.dcount-1?Random.character("number"):Random.character("123456789");e=parseFloat(n.join("."),10)}else e=t.rule.range&&!t.rule.parameters[2]?t.rule.count:t.template;return e},boolean:function(t){return t.rule.parameters?Random.bool(t.rule.min,t.rule.max,t.template):t.template},string:function(t){var e,n,r,i,o="";if(t.template.length){for(null==t.rule.count&&(o+=t.template),e=0;e<t.rule.count;e++)o+=t.template;for(n=o.match(Constant.RE_PLACEHOLDER)||[],e=0;e<n.length;e++)if(r=n[e],/^\\/.test(r))n.splice(e--,1);else{if(i=Handler.placeholder(r,t.context.currentContext,t.context.templateCurrentContext,t),1===n.length&&r===o&&typeof i!=typeof o){o=i;break}o=o.replace(r,i)}}else o=t.rule.range?Random.string(t.rule.count):t.template;return o},function:function(t){return t.template.call(t.context.currentContext,t)},regexp:function(t){var e="";null==t.rule.count&&(e+=t.template.source);for(var n=0;n<t.rule.count;n++)e+=t.template.source;return RE.Handler.gen(RE.Parser.parse(e))}}),Handler.extend({_all:function(){var t={};for(var e in Random)t[e.toLowerCase()]=e;return t},placeholder:function(placeholder,obj,templateContext,options){Constant.RE_PLACEHOLDER.exec("");var parts=Constant.RE_PLACEHOLDER.exec(placeholder),key=parts&&parts[1],lkey=key&&key.toLowerCase(),okey=this._all()[lkey],params=parts&&parts[2]||"",pathParts=this.splitPathToArray(key);try{params=eval("(function(){ return [].splice.call(arguments, 0 ) })("+params+")")}catch(t){params=parts[2].split(/,\s*/)}if(obj&&key in obj)return obj[key];if("/"===key.charAt(0)||pathParts.length>1)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;i<params.length;i++)Constant.RE_PLACEHOLDER.exec(""),Constant.RE_PLACEHOLDER.test(params[i])&&(params[i]=Handler.placeholder(params[i],obj,templateContext,options));var handle=Random[key]||Random[lkey]||Random[okey];switch(Util.type(handle)){case"array":return Random.pick(handle);case"function":handle.options=options;var re=handle.apply(Random,params);return void 0===re&&(re=""),delete handle.options,re}},getValueByKeyPath:function(t,e){var n=t,r=this.splitPathToArray(t),i=[];"/"===t.charAt(0)?i=[e.context.path[0]].concat(this.normalizePath(r)):r.length>1&&((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;s<i.length-1;s++)o=o[i[s]],a=a[i[s]];if(o&&t in o)return o[t];if(a&&"object"==typeof a&&t in a&&n!==a[t])return a[t]=Handler.gen(a[t],t,{currentContext:o,templateCurrentContext:a}),a[t]}catch(t){}return"@"+r.join("/")},normalizePath:function(t){for(var e=[],n=0;n<t.length;n++)switch(t[n]){case"..":e.pop();break;case".":break;default:e.push(t[n])}return e},splitPathToArray:function(t){var e=t.split(/\/+/);return e[e.length-1]||(e=e.slice(0,-1)),e[0]||(e=e.slice(1)),e}}),module.exports=Handler},function(t,e){t.exports={GUID:1,RE_KEY:/(.+)\|(?:\+(\d+)|([\+\-]?\d+-?[\+\-]?\d*)?(?:\.(\d+-?\d*))?)/,RE_RANGE:/([\+\-]?\d+)-?([\+\-]?\d+)?/,RE_PLACEHOLDER:/\\*@([^@#%&()\?\s]+)(?:\((.*?)\))?/g}},function(t,e){var n={extend:function(){var t,e,r,i,o,a=arguments[0]||{},s=1,l=arguments.length;for(1===l&&(a=this,s=0);s<l;s++)if(t=arguments[s])for(e in t)r=a[e],a!==(i=t[e])&&void 0!==i&&(n.isArray(i)||n.isObject(i)?(n.isArray(i)&&(o=r&&n.isArray(r)?r:[]),n.isObject(i)&&(o=r&&n.isObject(r)?r:{}),a[e]=n.extend(o,i)):a[e]=i);return a},each:function(t,e,n){var r,i;if("number"===this.type(t))for(r=0;r<t;r++)e(r,r);else if(t.length===+t.length)for(r=0;r<t.length&&!1!==e.call(n,t[r],r,t);r++);else for(i in t)if(!1===e.call(n,t[i],i,t))break},type:function(t){return null==t?String(t):Object.prototype.toString.call(t).match(/\[object (\w+)\]/)[1].toLowerCase()}};n.each("String Object Array RegExp Function".split(" "),(function(t){n["is"+t]=function(e){return n.type(e)===t.toLowerCase()}})),n.isObjectOrArray=function(t){return n.isObject(t)||n.isArray(t)},n.isNumeric=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},n.keys=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e},n.values=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e},n.heredoc=function(t){return t.toString().replace(/^[^\/]+\/\*!?/,"").replace(/\*\/[^\/]+$/,"").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")},n.noop=function(){},t.exports=n},function(t,e,n){var r=n(2),i=n(5);t.exports={parse:function(t){var e=((t=null==t?"":t+"")||"").match(r.RE_KEY),n=e&&e[3]&&e[3].match(r.RE_RANGE),o=n&&n[1]&&parseInt(n[1],10),a=n&&n[2]&&parseInt(n[2],10),s=n?n[2]?i.integer(o,a):parseInt(n[1],10):void 0,l=e&&e[4]&&e[4].match(r.RE_RANGE),u=l&&l[1]&&parseInt(l[1],10),c=l&&l[2]&&parseInt(l[2],10),h={parameters:e,range:n,min:o,max:a,count:s,decimal:l,dmin:u,dmax:c,dcount:l?!l[2]&&parseInt(l[1],10)||i.integer(u,c):void 0};for(var p in h)if(null!=h[p])return h;return{}}}},function(t,e,n){var r={extend:n(3).extend};r.extend(n(6)),r.extend(n(7)),r.extend(n(8)),r.extend(n(10)),r.extend(n(13)),r.extend(n(15)),r.extend(n(16)),r.extend(n(17)),r.extend(n(14)),r.extend(n(19)),t.exports=r},function(t,e){t.exports={boolean:function(t,e,n){return void 0!==n?(t=void 0===t||isNaN(t)?1:parseInt(t,10),e=void 0===e||isNaN(e)?1:parseInt(e,10),Math.random()>1/(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);o<a;o++)i+=o<a-1?this.character("number"):this.character("123456789");return parseFloat(i,10)},character:function(t){var e={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",symbol:"!@#$%^&*()[]"};return e.alpha=e.lower+e.upper,e[void 0]=e.lower+e.upper+e.number+e.symbol,(t=e[(""+t).toLowerCase()]||t).charAt(this.natural(0,t.length-1))},char:function(t){return this.character(t)},string:function(t,e,n){var r;switch(arguments.length){case 0:r=this.natural(3,7);break;case 1:r=t,t=void 0;break;case 2:"string"==typeof arguments[0]?r=e:(r=this.natural(t,e),t=void 0);break;case 3:r=this.natural(e,n)}for(var i="",o=0;o<r;o++)i+=this.character(t);return i},str:function(){return this.string.apply(this,arguments)},range:function(t,e,n){arguments.length<=1&&(e=t||0,t=0),t=+t,e=+e,n=+(n=arguments[2]||1);for(var r=Math.max(Math.ceil((e-t)/n),0),i=0,o=new Array(r);i<r;)o[i++]=t,t+=n;return o}}},function(t,e){var n={yyyy:"getFullYear",yy:function(t){return(""+t.getFullYear()).slice(2)},y:"yy",MM:function(t){var e=t.getMonth()+1;return e<10?"0"+e:e},M:function(t){return t.getMonth()+1},dd:function(t){var e=t.getDate();return e<10?"0"+e:e},d:"getDate",HH:function(t){var e=t.getHours();return e<10?"0"+e:e},H:"getHours",hh:function(t){var e=t.getHours()%12;return e<10?"0"+e:e},h:function(t){return t.getHours()%12},mm:function(t){var e=t.getMinutes();return e<10?"0"+e:e},m:"getMinutes",ss:function(t){var e=t.getSeconds();return e<10?"0"+e:e},s:"getSeconds",SS:function(t){var e=t.getMilliseconds();return e<10&&"00"+e||e<100&&"0"+e||e},S:"getMilliseconds",A:function(t){return t.getHours()<12?"AM":"PM"},a:function(t){return t.getHours()<12?"am":"pm"},T:"getTime"};t.exports={_patternLetters:n,_rformat:new RegExp(function(){var t=[];for(var e in n)t.push(e);return"("+t.join("|")+")"}(),"g"),_formatDate:function(t,e){return e.replace(this._rformat,(function e(r,i){return"function"==typeof n[i]?n[i](t):n[i]in n?e(r,n[i]):t[n[i]]()}))},_randomDate:function(t,e){return t=void 0===t?new Date(0):t,e=void 0===e?new Date:e,new Date(Math.random()*(e.getTime()-t.getTime()))},date:function(t){return t=t||"yyyy-MM-dd",this._formatDate(this._randomDate(),t)},time:function(t){return t=t||"HH:mm:ss",this._formatDate(this._randomDate(),t)},datetime:function(t){return t=t||"yyyy-MM-dd HH:mm:ss",this._formatDate(this._randomDate(),t)},now:function(t,e){1===arguments.length&&(/year|month|day|hour|minute|second|week/.test(t)||(e=t,t="")),t=(t||"").toLowerCase(),e=e||"yyyy-MM-dd HH:mm:ss";var n=new Date;switch(t){case"year":n.setMonth(0);case"month":n.setDate(1);case"week":case"day":n.setHours(0);case"hour":n.setMinutes(0);case"minute":n.setSeconds(0);case"second":n.setMilliseconds(0)}switch(t){case"week":n.setDate(n.getDate()-n.getDay())}return this._formatDate(n,e)}}},function(t,e,n){(function(t){t.exports={_adSize:["300x250","250x250","240x400","336x280","180x150","720x300","468x60","234x60","88x31","120x90","120x60","120x240","125x125","728x90","160x600","120x600","300x600"],_screenSize:["320x200","320x240","640x480","800x480","800x480","1024x600","1024x768","1280x800","1440x900","1920x1200","2560x1600"],_videoSize:["720x480","768x576","1280x720","1920x1080"],image:function(t,e,n,r,i){return 4===arguments.length&&(i=r,r=void 0),3===arguments.length&&(i=n,n=void 0),t||(t=this.pick(this._adSize)),e&&~e.indexOf("#")&&(e=e.slice(1)),n&&~n.indexOf("#")&&(n=n.slice(1)),"http://dummyimage.com/"+t+(e?"/"+e:"")+(n?"/"+n:"")+(r?"."+r:"")+(i?"&text="+i:"")},img:function(){return this.image.apply(this,arguments)},_brandColors:{"4ormat":"#fb0a2a","500px":"#02adea","About.me (blue)":"#00405d","About.me (yellow)":"#ffcc33",Addvocate:"#ff6138",Adobe:"#ff0000",Aim:"#fcd20b",Amazon:"#e47911",Android:"#a4c639","Angie's List":"#7fbb00",AOL:"#0060a3",Atlassian:"#003366",Behance:"#053eff","Big Cartel":"#97b538",bitly:"#ee6123",Blogger:"#fc4f08",Boeing:"#0039a6","Booking.com":"#003580",Carbonmade:"#613854",Cheddar:"#ff7243","Code School":"#3d4944",Delicious:"#205cc0",Dell:"#3287c1",Designmoo:"#e54a4f",Deviantart:"#4e6252","Designer News":"#2d72da",Devour:"#fd0001",DEWALT:"#febd17","Disqus (blue)":"#59a3fc","Disqus (orange)":"#db7132",Dribbble:"#ea4c89",Dropbox:"#3d9ae8",Drupal:"#0c76ab",Dunked:"#2a323a",eBay:"#89c507",Ember:"#f05e1b",Engadget:"#00bdf6",Envato:"#528036",Etsy:"#eb6d20",Evernote:"#5ba525","Fab.com":"#dd0017",Facebook:"#3b5998",Firefox:"#e66000","Flickr (blue)":"#0063dc","Flickr (pink)":"#ff0084",Forrst:"#5b9a68",Foursquare:"#25a0ca",Garmin:"#007cc3",GetGlue:"#2d75a2",Gimmebar:"#f70078",GitHub:"#171515","Google Blue":"#0140ca","Google Green":"#16a61e","Google Red":"#dd1812","Google Yellow":"#fcca03","Google+":"#dd4b39",Grooveshark:"#f77f00",Groupon:"#82b548","Hacker News":"#ff6600",HelloWallet:"#0085ca","Heroku (light)":"#c7c5e6","Heroku (dark)":"#6567a5",HootSuite:"#003366",Houzz:"#73ba37",HTML5:"#ec6231",IKEA:"#ffcc33",IMDb:"#f3ce13",Instagram:"#3f729b",Intel:"#0071c5",Intuit:"#365ebf",Kickstarter:"#76cc1e",kippt:"#e03500",Kodery:"#00af81",LastFM:"#c3000d",LinkedIn:"#0e76a8",Livestream:"#cf0005",Lumo:"#576396",Mixpanel:"#a086d3",Meetup:"#e51937",Nokia:"#183693",NVIDIA:"#76b900",Opera:"#cc0f16",Path:"#e41f11","PayPal (dark)":"#1e477a","PayPal (light)":"#3b7bbf",Pinboard:"#0000e6",Pinterest:"#c8232c",PlayStation:"#665cbe",Pocket:"#ee4056",Prezi:"#318bff",Pusha:"#0f71b4",Quora:"#a82400","QUOTE.fm":"#66ceff",Rdio:"#008fd5",Readability:"#9c0000","Red Hat":"#cc0000",Resource:"#7eb400",Rockpack:"#0ba6ab",Roon:"#62b0d9",RSS:"#ee802f",Salesforce:"#1798c1",Samsung:"#0c4da2",Shopify:"#96bf48",Skype:"#00aff0",Snagajob:"#f47a20",Softonic:"#008ace",SoundCloud:"#ff7700","Space Box":"#f86960",Spotify:"#81b71a",Sprint:"#fee100",Squarespace:"#121212",StackOverflow:"#ef8236",Staples:"#cc0000","Status Chart":"#d7584f",Stripe:"#008cdd",StudyBlue:"#00afe1",StumbleUpon:"#f74425","T-Mobile":"#ea0a8e",Technorati:"#40a800","The Next Web":"#ef4423",Treehouse:"#5cb868",Trulia:"#5eab1f",Tumblr:"#34526f","Twitch.tv":"#6441a5",Twitter:"#00acee",TYPO3:"#ff8700",Ubuntu:"#dd4814",Ustream:"#3388ff",Verizon:"#ef1d1d",Vimeo:"#86c9ef",Vine:"#00a478",Virb:"#06afd8","Virgin Media":"#cc0000",Wooga:"#5b009c","WordPress (blue)":"#21759b","WordPress (orange)":"#d54e21","WordPress (grey)":"#464646",Wunderlist:"#2b88d9",XBOX:"#9bc848",XING:"#126567","Yahoo!":"#720e9e",Yandex:"#ffcc00",Yelp:"#c41200",YouTube:"#c4302b",Zalongo:"#5498dc",Zendesk:"#78a300",Zerply:"#9dcc7a",Zootool:"#5e8b1d"},_brandNames:function(){var t=[];for(var e in this._brandColors)t.push(e);return t},dataImage:function(e,n){var r,i=(r="undefined"!=typeof document?document.createElement("canvas"):new(t.require("canvas")))&&r.getContext&&r.getContext("2d");if(!r||!i)return"";e||(e=this.pick(this._adSize)),n=void 0!==n?n:e,e=e.split("x");var o=parseInt(e[0],10),a=parseInt(e[1],10),s=this._brandColors[this.pick(this._brandNames())];return r.width=o,r.height=a,i.textAlign="center",i.textBaseline="middle",i.fillStyle=s,i.fillRect(0,0,o,a),i.fillStyle="#FFF",i.font="bold 14px sans-serif",i.fillText(n,o/2,a/2,o),r.toDataURL("image/png")}}}).call(e,n(9)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){var r=n(11),i=n(12);t.exports={color:function(t){return t||i[t]?i[t].nicer:this.hex()},hex:function(){var t=this._goldenRatioColor(),e=r.hsv2rgb(t);return r.rgb2hex(e[0],e[1],e[2])},rgb:function(){var t=this._goldenRatioColor(),e=r.hsv2rgb(t);return"rgb("+parseInt(e[0],10)+", "+parseInt(e[1],10)+", "+parseInt(e[2],10)+")"},rgba:function(){var t=this._goldenRatioColor(),e=r.hsv2rgb(t);return"rgba("+parseInt(e[0],10)+", "+parseInt(e[1],10)+", "+parseInt(e[2],10)+", "+Math.random().toFixed(2)+")"},hsl:function(){var t=this._goldenRatioColor(),e=r.hsv2hsl(t);return"hsl("+parseInt(e[0],10)+", "+parseInt(e[1],10)+", "+parseInt(e[2],10)+")"},_goldenRatioColor:function(t,e){return this._goldenRatio=.618033988749895,this._hue=this._hue||Math.random(),this._hue+=this._goldenRatio,this._hue%=1,"number"!=typeof t&&(t=.5),"number"!=typeof e&&(e=.95),[360*this._hue,100*t,100*e]}}},function(t,e){t.exports={rgb2hsl:function(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;return s==a?e=0:r==s?e=(i-o)/l:i==s?e=2+(o-r)/l:o==s&&(e=4+(r-i)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(a+s)/2,[e,100*(s==a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]},rgb2hsv:function(t){var e,n,r=t[0],i=t[1],o=t[2],a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a;return n=0===s?0:l/s*1e3/10,s==a?e=0:r==s?e=(i-o)/l:i==s?e=2+(o-r)/l:o==s&&(e=4+(r-i)/l),(e=Math.min(60*e,360))<0&&(e+=360),[e,n,s/255*1e3/10]},hsl2rgb:function(t){var e,n,r,i,o,a=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[o=255*l,o,o];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var u=0;u<3;u++)(r=a+1/3*-(u-1))<0&&r++,r>1&&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;i<n;i++)r.push(this.sentence());return r.join(" ")},cparagraph:function(t,e){for(var n=o(3,7,t,e),r=[],i=0;i<n;i++)r.push(this.csentence());return r.join("")},sentence:function(t,e){for(var n=o(12,18,t,e),r=[],a=0;a<n;a++)r.push(this.word());return i.capitalize(r.join(" "))+"."},csentence:function(t,e){for(var n=o(12,18,t,e),r=[],i=0;i<n;i++)r.push(this.cword());return r.join("")+"。"},word:function(t,e){for(var n=o(3,10,t,e),i="",a=0;a<n;a++)i+=r.character("lower");return i},cword:function(t,e,n){var r,i="的一是在不了有和人这中大为上个国我以要他时来用们生到作地于出就分对成会可主发年动同工也能下过子说产种面而方后多定行学法所民得经十三之进着等部度家电力里如水化高自二理起小物现实加量都两体制机当使点从业本去把性好应开它合还因由其些然前外天政四日那社义事平形相全表间样与关各重新线内数正心反你明看原又么利比或但质气第向道命此变条只没结解问意建月公无系军很情者最立代想已通并提直题党程展五果料象员革位入常文总次品式活设及管特件长求老头基资边流路级少图山统接知较将组见计别她手角期根论运农指几九区强放决西被干做必战先回则任取据处队南给色光门即保治北造百规热领七海口东导器压志世金增争济阶油思术极交受联什认六共权收证改清己美再采转更单风切打白教速花带安场身车例真务具万每目至达走积示议声报斗完类八离华名确才科张信马节话米整空元况今集温传土许步群广石记需段研界拉林律叫且究观越织装影算低持音众书布复容儿须际商非验连断深难近矿千周委素技备半办青省列习响约支般史感劳便团往酸历市克何除消构府称太准精值号率族维划选标写存候毛亲快效斯院查江型眼王按格养易置派层片始却专状育厂京识适属圆包火住调满县局照参红细引听该铁价严龙飞";switch(arguments.length){case 0:t=i,r=1;break;case 1:"string"==typeof arguments[0]?r=1:(r=t,t=i);break;case 2:"string"==typeof arguments[0]?r=e:(r=this.natural(t,e),t=i);break;case 3:r=this.natural(e,n)}for(var o="",a=0;a<r;a++)o+=t.charAt(this.natural(0,t.length-1));return o},title:function(t,e){for(var n=o(3,7,t,e),r=[],i=0;i<n;i++)r.push(this.capitalize(this.word()));return r.join(" ")},ctitle:function(t,e){for(var n=o(3,7,t,e),r=[],i=0;i<n;i++)r.push(this.cword());return r.join("")}}},function(t,e,n){var r=n(3);t.exports={capitalize:function(t){return(t+"").charAt(0).toUpperCase()+(t+"").substr(1)},upper:function(t){return(t+"").toUpperCase()},lower:function(t){return(t+"").toLowerCase()},pick:function(t,e,n){return r.isArray(t)?(void 0===e&&(e=1),void 0===n&&(n=e)):(t=[].slice.call(arguments),e=1,n=1),1===e&&1===n?t[this.natural(0,t.length-1)]:this.shuffle(t,e,n)},shuffle:function(t,e,n){for(var r=(t=t||[]).slice(0),i=[],o=0,a=r.length,s=0;s<a;s++)o=this.natural(0,r.length-1),i.push(r[o]),r.splice(o,1);switch(arguments.length){case 0:case 1:return i;case 2:n=e;case 3:return e=parseInt(e,10),n=parseInt(n,10),i.slice(0,this.natural(e,n))}},order:function t(e){t.cache=t.cache||{},arguments.length>1&&(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;r<t.length;r++)(e=t[r])&&e.id&&(n[e.id]=e);for(var i=[],o=0;o<t.length;o++)if(e=t[o])if(null!=e.pid||null!=e.parentId){var a=n[e.pid]||n[e.parentId];a&&(a.children||(a.children=[]),a.children.push(e))}else i.push(e);return i}(t)}();t.exports=r},function(t,e,n){var r,i=n(18);t.exports={d4:function(){return this.natural(1,4)},d6:function(){return this.natural(1,6)},d8:function(){return this.natural(1,8)},d12:function(){return this.natural(1,12)},d20:function(){return this.natural(1,20)},d100:function(){return this.natural(1,100)},guid:function(){var t="abcdefABCDEF1234567890";return this.string(t,8)+"-"+this.string(t,4)+"-"+this.string(t,4)+"-"+this.string(t,4)+"-"+this.string(t,12)},uuid:function(){return this.guid()},id:function(){var t,e=0,n=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"];t=this.pick(i).id+this.date("yyyyMMdd")+this.string("number",3);for(var r=0;r<t.length;r++)e+=t[r]*n[r];return t+=["1","0","X","9","8","7","6","5","4","3","2"][e%11]},increment:(r=0,function(t){return r+=+t||1}),inc:function(t){return this.increment(t)}}},function(t,e,n){var r=n(21),i=n(22);t.exports={Parser:r,Handler:i}},function(t,e){function n(t){this.type=t,this.offset=n.offset(),this.text=n.text()}function r(t,e){n.call(this,"alternate"),this.left=t,this.right=e}function i(t){n.call(this,"match"),this.body=t.filter(Boolean)}function o(t,e){n.call(this,t),this.body=e}function a(t){o.call(this,"capture-group"),this.index=b[this.offset]||(b[this.offset]=m++),this.body=t}function s(t,e){n.call(this,"quantified"),this.body=t,this.quantifier=e}function l(t,e){n.call(this,"quantifier"),this.min=t,this.max=e,this.greedy=!0}function u(t,e){n.call(this,"charset"),this.invert=t,this.body=e}function c(t,e){n.call(this,"range"),this.start=t,this.end=e}function h(t){n.call(this,"literal"),this.body=t,this.escaped=this.body!=this.text}function p(t){n.call(this,"unicode"),this.code=t.toUpperCase()}function f(t){n.call(this,"hex"),this.code=t.toUpperCase()}function d(t){n.call(this,"octal"),this.code=t.toUpperCase()}function g(t){n.call(this,"back-reference"),this.code=t.toUpperCase()}function v(t){n.call(this,"control-character"),this.code=t.toUpperCase()}var y=function(){function t(t,e,n,r,i){this.expected=t,this.found=e,this.offset=n,this.line=r,this.column=i,this.name="SyntaxError",this.message=function(t,e){var n;switch(t.length){case 0:n="end of input";break;case 1:n=t[0];break;default:n=t.slice(0,-1).join(", ")+" or "+t[t.length-1]}return"Expected "+n+" but "+(e?'"'+function(t){function e(t){return t.charCodeAt(0).toString(16).toUpperCase()}return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(t){return"\\x0"+e(t)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(t){return"\\x"+e(t)})).replace(/[\u0180-\u0FFF]/g,(function(t){return"\\u0"+e(t)})).replace(/[\u1080-\uFFFF]/g,(function(t){return"\\u"+e(t)}))}(e)+'"':"end of input")+" found."}(t,e)}return function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(t,Error),{SyntaxError:t,parse:function(e){function y(){return e.substring(Jn,Qn)}function m(){return Jn}function b(t){return tr!==t&&(tr>t&&(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();e<t.length;)t[e-1]===t[e]?t.splice(e,1):e++}function w(){var t,n,r,i,o;return t=Qn,null!==(n=S())?(r=Qn,124===e.charCodeAt(Qn)?(i=Ot,Qn++):(i=null,0===ir&&x(Ct)),null!==i&&null!==(o=w())?r=i=[i,o]:(Qn=r,r=St),null===r&&(r=Mt),null!==r?(Jn=t,null===(n=It(n,r))?(Qn=t,t=n):t=n):(Qn=t,t=St)):(Qn=t,t=St),t}function S(){var t,e,n,r,i;if(t=Qn,null===(e=O())&&(e=Mt),null!==e)if(n=Qn,ir++,r=k(),ir--,null===r?n=Mt:(Qn=n,n=St),null!==n){for(r=[],null===(i=I())&&(i=M());null!==i;)r.push(i),null===(i=I())&&(i=M());null!==r?(null===(i=C())&&(i=Mt),null!==i?(Jn=t,null===(e=kt(e,r,i))?(Qn=t,t=e):t=e):(Qn=t,t=St)):(Qn=t,t=St)}else Qn=t,t=St;else Qn=t,t=St;return t}function M(){var t;return null===(t=z())&&null===(t=H())&&(t=X()),t}function O(){var t,n;return t=Qn,94===e.charCodeAt(Qn)?(n=At,Qn++):(n=null,0===ir&&x(Tt)),null!==n&&(Jn=t,n=Dt()),null===n?(Qn=t,t=n):t=n,t}function C(){var t,n;return t=Qn,36===e.charCodeAt(Qn)?(n=Pt,Qn++):(n=null,0===ir&&x(Lt)),null!==n&&(Jn=t,n=jt()),null===n?(Qn=t,t=n):t=n,t}function I(){var t,e,n;return t=Qn,null!==(e=M())&&null!==(n=k())?(Jn=t,null===(e=Et(e,n))?(Qn=t,t=e):t=e):(Qn=t,t=St),t}function k(){var t,e,n;return ir++,t=Qn,null!==(e=A())?(null===(n=R())&&(n=Mt),null!==n?(Jn=t,null===(e=Nt(e,n))?(Qn=t,t=e):t=e):(Qn=t,t=St)):(Qn=t,t=St),ir--,null===t&&(e=null,0===ir&&x(Rt)),t}function A(){var t;return null===(t=T())&&null===(t=D())&&null===(t=P())&&null===(t=L())&&null===(t=j())&&(t=E()),t}function T(){var t,n,r,i,o,a;return t=Qn,123===e.charCodeAt(Qn)?(n=zt,Qn++):(n=null,0===ir&&x(Bt)),null!==n&&null!==(r=N())?(44===e.charCodeAt(Qn)?(i=Vt,Qn++):(i=null,0===ir&&x(Ft)),null!==i&&null!==(o=N())?(125===e.charCodeAt(Qn)?(a=Gt,Qn++):(a=null,0===ir&&x(Ht)),null!==a?(Jn=t,null===(n=Wt(r,o))?(Qn=t,t=n):t=n):(Qn=t,t=St)):(Qn=t,t=St)):(Qn=t,t=St),t}function D(){var t,n,r,i;return t=Qn,123===e.charCodeAt(Qn)?(n=zt,Qn++):(n=null,0===ir&&x(Bt)),null!==n&&null!==(r=N())?(e.substr(Qn,2)===Ut?(i=Ut,Qn+=2):(i=null,0===ir&&x(Yt)),null!==i?(Jn=t,null===(n=qt(r))?(Qn=t,t=n):t=n):(Qn=t,t=St)):(Qn=t,t=St),t}function P(){var t,n,r,i;return t=Qn,123===e.charCodeAt(Qn)?(n=zt,Qn++):(n=null,0===ir&&x(Bt)),null!==n&&null!==(r=N())?(125===e.charCodeAt(Qn)?(i=Gt,Qn++):(i=null,0===ir&&x(Ht)),null!==i?(Jn=t,null===(n=Xt(r))?(Qn=t,t=n):t=n):(Qn=t,t=St)):(Qn=t,t=St),t}function L(){var t,n;return t=Qn,43===e.charCodeAt(Qn)?(n=$t,Qn++):(n=null,0===ir&&x(Zt)),null!==n&&(Jn=t,n=Kt()),null===n?(Qn=t,t=n):t=n,t}function j(){var t,n;return t=Qn,42===e.charCodeAt(Qn)?(n=Qt,Qn++):(n=null,0===ir&&x(Jt)),null!==n&&(Jn=t,n=te()),null===n?(Qn=t,t=n):t=n,t}function E(){var t,n;return t=Qn,63===e.charCodeAt(Qn)?(n=ee,Qn++):(n=null,0===ir&&x(ne)),null!==n&&(Jn=t,n=re()),null===n?(Qn=t,t=n):t=n,t}function R(){var t;return 63===e.charCodeAt(Qn)?(t=ee,Qn++):(t=null,0===ir&&x(ne)),t}function N(){var t,n,r;if(t=Qn,n=[],ie.test(e.charAt(Qn))?(r=e.charAt(Qn),Qn++):(r=null,0===ir&&x(oe)),null!==r)for(;null!==r;)n.push(r),ie.test(e.charAt(Qn))?(r=e.charAt(Qn),Qn++):(r=null,0===ir&&x(oe));else n=St;return null!==n&&(Jn=t,n=ae(n)),null===n?(Qn=t,t=n):t=n,t}function z(){var t,n,r,i;return t=Qn,40===e.charCodeAt(Qn)?(n=se,Qn++):(n=null,0===ir&&x(le)),null!==n?(null===(r=F())&&null===(r=G())&&null===(r=V())&&(r=B()),null!==r?(41===e.charCodeAt(Qn)?(i=ue,Qn++):(i=null,0===ir&&x(ce)),null!==i?(Jn=t,null===(n=he(r))?(Qn=t,t=n):t=n):(Qn=t,t=St)):(Qn=t,t=St)):(Qn=t,t=St),t}function B(){var t,e;return t=Qn,null!==(e=w())&&(Jn=t,e=pe(e)),null===e?(Qn=t,t=e):t=e,t}function V(){var t,n,r;return t=Qn,e.substr(Qn,2)===fe?(n=fe,Qn+=2):(n=null,0===ir&&x(de)),null!==n&&null!==(r=w())?(Jn=t,null===(n=ge(r))?(Qn=t,t=n):t=n):(Qn=t,t=St),t}function F(){var t,n,r;return t=Qn,e.substr(Qn,2)===ve?(n=ve,Qn+=2):(n=null,0===ir&&x(ye)),null!==n&&null!==(r=w())?(Jn=t,null===(n=me(r))?(Qn=t,t=n):t=n):(Qn=t,t=St),t}function G(){var t,n,r;return t=Qn,e.substr(Qn,2)===be?(n=be,Qn+=2):(n=null,0===ir&&x(xe)),null!==n&&null!==(r=w())?(Jn=t,null===(n=_e(r))?(Qn=t,t=n):t=n):(Qn=t,t=St),t}function H(){var t,n,r,i,o;if(ir++,t=Qn,91===e.charCodeAt(Qn)?(n=Se,Qn++):(n=null,0===ir&&x(Me)),null!==n)if(94===e.charCodeAt(Qn)?(r=At,Qn++):(r=null,0===ir&&x(Tt)),null===r&&(r=Mt),null!==r){for(i=[],null===(o=W())&&(o=U());null!==o;)i.push(o),null===(o=W())&&(o=U());null!==i?(93===e.charCodeAt(Qn)?(o=Oe,Qn++):(o=null,0===ir&&x(Ce)),null!==o?(Jn=t,null===(n=Ie(r,i))?(Qn=t,t=n):t=n):(Qn=t,t=St)):(Qn=t,t=St)}else Qn=t,t=St;else Qn=t,t=St;return ir--,null===t&&(n=null,0===ir&&x(we)),t}function W(){var t,n,r,i;return ir++,t=Qn,null!==(n=U())?(45===e.charCodeAt(Qn)?(r=Ae,Qn++):(r=null,0===ir&&x(Te)),null!==r&&null!==(i=U())?(Jn=t,null===(n=De(n,i))?(Qn=t,t=n):t=n):(Qn=t,t=St)):(Qn=t,t=St),ir--,null===t&&(n=null,0===ir&&x(ke)),t}function U(){var t;return ir++,null===(t=q())&&(t=Y()),ir--,null===t&&0===ir&&x(Pe),t}function Y(){var t,n;return t=Qn,Le.test(e.charAt(Qn))?(n=e.charAt(Qn),Qn++):(n=null,0===ir&&x(je)),null!==n&&(Jn=t,n=Ee(n)),null===n?(Qn=t,t=n):t=n,t}function q(){var t;return null===(t=Q())&&null===(t=pt())&&null===(t=et())&&null===(t=nt())&&null===(t=rt())&&null===(t=it())&&null===(t=ot())&&null===(t=at())&&null===(t=st())&&null===(t=lt())&&null===(t=ut())&&null===(t=ct())&&null===(t=ht())&&null===(t=dt())&&null===(t=gt())&&null===(t=vt())&&null===(t=yt())&&(t=mt()),t}function X(){var t;return null===(t=$())&&null===(t=K())&&(t=Z()),t}function $(){var t,n;return t=Qn,46===e.charCodeAt(Qn)?(n=Re,Qn++):(n=null,0===ir&&x(Ne)),null!==n&&(Jn=t,n=ze()),null===n?(Qn=t,t=n):t=n,t}function Z(){var t,n;return ir++,t=Qn,Ve.test(e.charAt(Qn))?(n=e.charAt(Qn),Qn++):(n=null,0===ir&&x(Fe)),null!==n&&(Jn=t,n=Ee(n)),null===n?(Qn=t,t=n):t=n,ir--,null===t&&(n=null,0===ir&&x(Be)),t}function K(){var t;return null===(t=J())&&null===(t=tt())&&null===(t=pt())&&null===(t=et())&&null===(t=nt())&&null===(t=rt())&&null===(t=it())&&null===(t=ot())&&null===(t=at())&&null===(t=st())&&null===(t=lt())&&null===(t=ut())&&null===(t=ct())&&null===(t=ht())&&null===(t=ft())&&null===(t=dt())&&null===(t=gt())&&null===(t=vt())&&null===(t=yt())&&(t=mt()),t}function Q(){var t,n;return t=Qn,e.substr(Qn,2)===Ge?(n=Ge,Qn+=2):(n=null,0===ir&&x(He)),null!==n&&(Jn=t,n=We()),null===n?(Qn=t,t=n):t=n,t}function J(){var t,n;return t=Qn,e.substr(Qn,2)===Ge?(n=Ge,Qn+=2):(n=null,0===ir&&x(He)),null!==n&&(Jn=t,n=Ue()),null===n?(Qn=t,t=n):t=n,t}function tt(){var t,n;return t=Qn,e.substr(Qn,2)===Ye?(n=Ye,Qn+=2):(n=null,0===ir&&x(qe)),null!==n&&(Jn=t,n=Xe()),null===n?(Qn=t,t=n):t=n,t}function et(){var t,n;return t=Qn,e.substr(Qn,2)===$e?(n=$e,Qn+=2):(n=null,0===ir&&x(Ze)),null!==n&&(Jn=t,n=Ke()),null===n?(Qn=t,t=n):t=n,t}function nt(){var t,n;return t=Qn,e.substr(Qn,2)===Qe?(n=Qe,Qn+=2):(n=null,0===ir&&x(Je)),null!==n&&(Jn=t,n=tn()),null===n?(Qn=t,t=n):t=n,t}function rt(){var t,n;return t=Qn,e.substr(Qn,2)===en?(n=en,Qn+=2):(n=null,0===ir&&x(nn)),null!==n&&(Jn=t,n=rn()),null===n?(Qn=t,t=n):t=n,t}function it(){var t,n;return t=Qn,e.substr(Qn,2)===on?(n=on,Qn+=2):(n=null,0===ir&&x(an)),null!==n&&(Jn=t,n=sn()),null===n?(Qn=t,t=n):t=n,t}function ot(){var t,n;return t=Qn,e.substr(Qn,2)===ln?(n=ln,Qn+=2):(n=null,0===ir&&x(un)),null!==n&&(Jn=t,n=cn()),null===n?(Qn=t,t=n):t=n,t}function at(){var t,n;return t=Qn,e.substr(Qn,2)===hn?(n=hn,Qn+=2):(n=null,0===ir&&x(pn)),null!==n&&(Jn=t,n=fn()),null===n?(Qn=t,t=n):t=n,t}function st(){var t,n;return t=Qn,e.substr(Qn,2)===dn?(n=dn,Qn+=2):(n=null,0===ir&&x(gn)),null!==n&&(Jn=t,n=vn()),null===n?(Qn=t,t=n):t=n,t}function lt(){var t,n;return t=Qn,e.substr(Qn,2)===yn?(n=yn,Qn+=2):(n=null,0===ir&&x(mn)),null!==n&&(Jn=t,n=bn()),null===n?(Qn=t,t=n):t=n,t}function ut(){var t,n;return t=Qn,e.substr(Qn,2)===xn?(n=xn,Qn+=2):(n=null,0===ir&&x(_n)),null!==n&&(Jn=t,n=wn()),null===n?(Qn=t,t=n):t=n,t}function ct(){var t,n;return t=Qn,e.substr(Qn,2)===Sn?(n=Sn,Qn+=2):(n=null,0===ir&&x(Mn)),null!==n&&(Jn=t,n=On()),null===n?(Qn=t,t=n):t=n,t}function ht(){var t,n;return t=Qn,e.substr(Qn,2)===Cn?(n=Cn,Qn+=2):(n=null,0===ir&&x(In)),null!==n&&(Jn=t,n=kn()),null===n?(Qn=t,t=n):t=n,t}function pt(){var t,n,r;return t=Qn,e.substr(Qn,2)===An?(n=An,Qn+=2):(n=null,0===ir&&x(Tn)),null!==n?(e.length>Qn?(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,Jn<e.length?e.charAt(Jn):null,Jn,b(Jn).line,b(Jn).column)}}}(),m=1,b={};t.exports=y},function(t,e,n){var r=n(3),i=n(5),o={extend:r.extend},a=f(97,122),s=f(65,90),l=f(48,57),u=f(32,47)+f(58,64)+f(91,96)+f(123,126),c=f(32,126),h=" \f\n\r\t\v \u2028\u2029",p={"\\w":a+s+l+"_","\\W":u.replace("_",""),"\\s":h,"\\S":function(){for(var t=c,e=0;e<h.length;e++)t=t.replace(h[e],"");return t}(),"\\d":l,"\\D":a+s+u};function f(t,e){for(var n="",r=t;r<=e;r++)n+=String.fromCharCode(r);return n}o.gen=function(t,e,n){return n=n||{guid:1},o[t.type]?o[t.type](t,e,n):o.token(t,e,n)},o.extend({token:function(t,e,n){switch(t.type){case"start":case"end":return"";case"any-character":return i.character();case"backspace":case"word-boundary":return"";case"non-word-boundary":break;case"digit":return i.pick(l.split(""));case"non-digit":return i.pick((a+s+u).split(""));case"form-feed":break;case"line-feed":return t.body||t.text;case"carriage-return":break;case"white-space":return i.pick(h.split(""));case"non-white-space":return i.pick((a+s+l).split(""));case"tab":case"vertical-tab":break;case"word":return i.pick((a+s+l).split(""));case"non-word":return i.pick(u.replace("_","").split(""))}return t.body||t.text},alternate:function(t,e,n){return this.gen(i.boolean()?t.left:t.right,e,n)},match:function(t,e,n){e="";for(var r=0;r<t.body.length;r++)e+=this.gen(t.body[r],e,n);return e},"capture-group":function(t,e,n){return e=this.gen(t.body,e,n),n[n.guid++]=e,e},"non-capture-group":function(t,e,n){return this.gen(t.body,e,n)},"positive-lookahead":function(t,e,n){return this.gen(t.body,e,n)},"negative-lookahead":function(t,e,n){return""},quantified:function(t,e,n){e="";for(var r=this.quantifier(t.quantifier),i=0;i<r;i++)e+=this.gen(t.body,e,n);return e},quantifier:function(t,e,n){var r=Math.max(t.min,0),o=isFinite(t.max)?t.max:r+i.integer(3,7);return i.integer(r,o)},charset:function(t,e,n){if(t.invert)return this["invert-charset"](t,e,n);var r=i.pick(t.body);return this.gen(r,e,n)},"invert-charset":function(t,e,n){for(var r,o=c,a=0;a<t.body.length;a++)switch((r=t.body[a]).type){case"literal":o=o.replace(r.body,"");break;case"range":for(var s=this.gen(r.start,e,n).charCodeAt(),l=this.gen(r.end,e,n).charCodeAt(),u=s;u<=l;u++)o=o.replace(String.fromCharCode(u),"");default:var h=p[r.text];if(h)for(var f=0;f<=h.length;f++)o=o.replace(h[f],"")}return i.pick(o.split(""))},range:function(t,e,n){var r=this.gen(t.start,e,n).charCodeAt(),o=this.gen(t.end,e,n).charCodeAt();return String.fromCharCode(i.integer(r,o))},literal:function(t,e,n){return t.escaped?t.body:t.text},unicode:function(t,e,n){return String.fromCharCode(parseInt(t.code,16))},hex:function(t,e,n){return String.fromCharCode(parseInt(t.code,16))},octal:function(t,e,n){return String.fromCharCode(parseInt(t.code,8))},"back-reference":function(t,e,n){return n[t.code]||""},CONTROL_CHARACTER_MAP:function(){for(var t="@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _".split(" "),e="\0 \b \t \n \v \f \r ".split(" "),n={},r=0;r<t.length;r++)n[t[r]]=e[r];return n}(),"control-character":function(t,e,n){return this.CONTROL_CHARACTER_MAP[t.code]}}),t.exports=o},function(t,e,n){t.exports=n(24)},function(t,e,n){var r=n(2),i=n(3),o=n(4);t.exports=function t(e,n,a){a=a||[];var s={name:"string"==typeof n?n.replace(r.RE_KEY,"$1"):n,template:e,type:i.type(e),rule:o.parse(n)};switch(s.path=a.slice(0),s.path.push(void 0===n?"ROOT":s.name),s.type){case"array":s.items=[],i.each(e,(function(e,n){s.items.push(t(e,n,s.path))}));break;case"object":s.properties=[],i.each(e,(function(e,n){s.properties.push(t(e,n,s.path))}))}return s}},function(t,e,n){t.exports=n(26)},function(t,e,n){var r=n(2),i=n(3),o=n(23);function a(t,e){for(var n=o(t),r=s.diff(n,e),i=0;i<r.length;i++);return r}var s={diff:function(t,e,n){var r=[];return this.name(t,e,n,r)&&this.type(t,e,n,r)&&(this.value(t,e,n,r),this.properties(t,e,n,r),this.items(t,e,n,r)),r},name:function(t,e,n,r){var i=r.length;return l.equal("name",t.path,n+"",t.name+"",r),r.length===i},type:function(t,e,n,o){var a=o.length;switch(t.type){case"string":if(t.template.match(r.RE_PLACEHOLDER))return!0;break;case"array":if(t.rule.parameters){if(void 0!==t.rule.min&&void 0===t.rule.max&&1===t.rule.count)return!0;if(t.rule.parameters[2])return!0}break;case"function":return!0}return l.equal("type",t.path,i.type(e),t.type,o),o.length===a},value:function(t,e,n,i){var o,a=i.length,s=t.rule,u=t.type;if("object"===u||"array"===u||"function"===u)return!0;if(!s.parameters){switch(u){case"regexp":return l.match("value",t.path,e,t.template,i),i.length===a;case"string":if(t.template.match(r.RE_PLACEHOLDER))return i.length===a}return l.equal("value",t.path,e,t.template,i),i.length===a}switch(u){case"number":var c=(e+"").split(".");c[0]=+c[0],void 0!==s.min&&void 0!==s.max&&(l.greaterThanOrEqualTo("value",t.path,c[0],Math.min(s.min,s.max),i),l.lessThanOrEqualTo("value",t.path,c[0],Math.max(s.min,s.max),i)),void 0!==s.min&&void 0===s.max&&l.equal("value",t.path,c[0],s.min,i,"[value] "+n),s.decimal&&(void 0!==s.dmin&&void 0!==s.dmax&&(l.greaterThanOrEqualTo("value",t.path,c[1].length,s.dmin,i),l.lessThanOrEqualTo("value",t.path,c[1].length,s.dmax,i)),void 0!==s.dmin&&void 0===s.dmax&&l.equal("value",t.path,c[1].length,s.dmin,i));break;case"boolean":break;case"string":o=(o=e.match(new RegExp(t.template,"g")))?o.length:0,void 0!==s.min&&void 0!==s.max&&(l.greaterThanOrEqualTo("repeat count",t.path,o,s.min,i),l.lessThanOrEqualTo("repeat count",t.path,o,s.max,i)),void 0!==s.min&&void 0===s.max&&l.equal("repeat count",t.path,o,s.min,i);break;case"regexp":o=(o=e.match(new RegExp(t.template.source.replace(/^\^|\$$/g,""),"g")))?o.length:0,void 0!==s.min&&void 0!==s.max&&(l.greaterThanOrEqualTo("repeat count",t.path,o,s.min,i),l.lessThanOrEqualTo("repeat count",t.path,o,s.max,i)),void 0!==s.min&&void 0===s.max&&l.equal("repeat count",t.path,o,s.min,i)}return i.length===a},properties:function(t,e,n,r){var o=r.length,a=t.rule,s=i.keys(e);if(t.properties){if(t.rule.parameters?(void 0!==a.min&&void 0!==a.max&&(l.greaterThanOrEqualTo("properties length",t.path,s.length,Math.min(a.min,a.max),r),l.lessThanOrEqualTo("properties length",t.path,s.length,Math.max(a.min,a.max),r)),void 0!==a.min&&void 0===a.max&&1!==a.count&&l.equal("properties length",t.path,s.length,a.min,r)):l.equal("properties length",t.path,s.length,t.properties.length,r),r.length!==o)return!1;for(var u=0;u<s.length;u++)r.push.apply(r,this.diff(function(){var e;return i.each(t.properties,(function(t){t.name===s[u]&&(e=t)})),e||t.properties[u]}(),e[s[u]],s[u]));return r.length===o}},items:function(t,e,n,r){var i=r.length;if(t.items){var o=t.rule;if(t.rule.parameters){if(void 0!==o.min&&void 0!==o.max&&(l.greaterThanOrEqualTo("items",t.path,e.length,Math.min(o.min,o.max)*t.items.length,r,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),l.lessThanOrEqualTo("items",t.path,e.length,Math.max(o.min,o.max)*t.items.length,r,"[{utype}] array is too long: {path} must have at most {expected} elements but instance has {actual} elements")),void 0!==o.min&&void 0===o.max){if(1===o.count)return r.length===i;l.equal("items length",t.path,e.length,o.min*t.items.length,r)}if(o.parameters[2])return r.length===i}else l.equal("items length",t.path,e.length,t.items.length,r);if(r.length!==i)return!1;for(var a=0;a<e.length;a++)r.push.apply(r,this.diff(t.items[a%t.items.length],e[a],a%t.items.length));return r.length===i}}},l={message:function(t){return(t.message||"[{utype}] Expect {path}'{ltype} {action} {expected}, but is {actual}").replace("{utype}",t.type.toUpperCase()).replace("{ltype}",t.type.toLowerCase()).replace("{path}",i.isArray(t.path)&&t.path.join(".")||t.path).replace("{action}",t.action).replace("{expected}",t.expected).replace("{actual}",t.actual)},equal:function(t,e,n,r,i,o){if(n===r)return!0;switch(t){case"type":if("regexp"===r&&"string"===n)return!0}var a={path:e,type:t,actual:n,expected:r,action:"is equal to",message:o};return a.message=l.message(a),i.push(a),!1},match:function(t,e,n,r,i,o){if(r.test(n))return!0;var a={path:e,type:t,actual:n,expected:r,action:"matches",message:o};return a.message=l.message(a),i.push(a),!1},notEqual:function(t,e,n,r,i,o){if(n!==r)return!0;var a={path:e,type:t,actual:n,expected:r,action:"is not equal to",message:o};return a.message=l.message(a),i.push(a),!1},greaterThan: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",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 less to",message:o};return a.message=l.message(a),i.push(a),!1},greaterThanOrEqualTo: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;e<s.length;e++)try{c[s[e]]=f[s[e]]}catch(t){}c.dispatchEvent(new Event(t.type))}if(h)this.match=!0,this.custom.template=h,this.readyState=u.OPENED,this.dispatchEvent(new Event("readystatechange"));else{var f=function(){var t,e,n=(t=location.href,e=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/.exec(t.toLowerCase())||[],/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(e[1]));return window.ActiveXObject?!n&&r()||function(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}():r();function r(){try{return new window._XMLHttpRequest}catch(t){}}}();this.custom.xhr=f;for(var d=0;d<o.length;d++)f.addEventListener(o[d],p);i?f.open(t,e,n,i,l):f.open(t,e,n);for(var g=0;g<a.length;g++)try{f[a[g]]=c[a[g]]}catch(t){}}},setRequestHeader:function(t,e){if(this.match){var n=this.custom.requestHeaders;n[t]?n[t]+=","+e:n[t]=e}else this.custom.xhr.setRequestHeader(t,e)},timeout:0,withCredentials:!1,upload:{},send:function(t){var e=this;function n(){var t,n;e.readyState=u.HEADERS_RECEIVED,e.dispatchEvent(new Event("readystatechange")),e.readyState=u.LOADING,e.dispatchEvent(new Event("readystatechange")),e.status=200,e.statusText=l,e.response=e.responseText=JSON.stringify((t=e.custom.template,n=e.custom.options,r.isFunction(t.template)?t.template(n):u.Mock.mock(t.template)),null,4),e.readyState=u.DONE,e.dispatchEvent(new Event("readystatechange")),e.dispatchEvent(new Event("load")),e.dispatchEvent(new Event("loadend"))}this.custom.options.body=t,this.match?(this.setRequestHeader("X-Requested-With","MockXMLHttpRequest"),this.dispatchEvent(new Event("loadstart")),this.custom.async?setTimeout(n,this.custom.timeout):n()):this.custom.xhr.send(t)},abort:function(){this.match?(this.readyState=u.UNSENT,this.dispatchEvent(new Event("abort",!1,!1,this)),this.dispatchEvent(new Event("error",!1,!1,this))):this.custom.xhr.abort()}}),r.extend(u.prototype,{responseURL:"",status:u.UNSENT,statusText:"",getResponseHeader:function(t){return this.match?this.custom.responseHeaders[t.toLowerCase()]:this.custom.xhr.getResponseHeader(t)},getAllResponseHeaders:function(){if(!this.match)return this.custom.xhr.getAllResponseHeaders();var t=this.custom.responseHeaders,e="";for(var n in t)t.hasOwnProperty(n)&&(e+=n+": "+t[n]+"\r\n");return e},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),r.extend(u.prototype,{addEventListener:function(t,e){var n=this.custom.events;n[t]||(n[t]=[]),n[t].push(e)},removeEventListener:function(t,e){for(var n=this.custom.events[t]||[],r=0;r<n.length;r++)n[r]===e&&n.splice(r--,1)},dispatchEvent:function(t){for(var e=this.custom.events[t.type]||[],n=0;n<e.length;n++)e[n].call(this,t);var r="on"+t.type;this[r]&&this[r](t)}}),t.exports=u}])},module.exports=factory()},"970b":function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},9886:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"CRender",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"extendNewGraph",{enumerable:!0,get:function(){return o.extendNewGraph}}),e.default=void 0;var i=r(n("85c4")),o=n("b06d"),a=i.default;e.default=a},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b42":function(t,e){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}},t.exports.__esModule=!0,t.exports.default=t.exports},"9d85":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.changeDefaultConfig=function(t,e){if(!g["".concat(t,"Config")])return void console.warn("Change default config Error - Invalid key!");(0,d.deepMerge)(g["".concat(t,"Config")],e)},Object.defineProperty(e,"colorConfig",{enumerable:!0,get:function(){return r.colorConfig}}),Object.defineProperty(e,"gridConfig",{enumerable:!0,get:function(){return i.gridConfig}}),Object.defineProperty(e,"xAxisConfig",{enumerable:!0,get:function(){return o.xAxisConfig}}),Object.defineProperty(e,"yAxisConfig",{enumerable:!0,get:function(){return o.yAxisConfig}}),Object.defineProperty(e,"titleConfig",{enumerable:!0,get:function(){return a.titleConfig}}),Object.defineProperty(e,"lineConfig",{enumerable:!0,get:function(){return s.lineConfig}}),Object.defineProperty(e,"barConfig",{enumerable:!0,get:function(){return l.barConfig}}),Object.defineProperty(e,"pieConfig",{enumerable:!0,get:function(){return u.pieConfig}}),Object.defineProperty(e,"radarAxisConfig",{enumerable:!0,get:function(){return c.radarAxisConfig}}),Object.defineProperty(e,"radarConfig",{enumerable:!0,get:function(){return h.radarConfig}}),Object.defineProperty(e,"gaugeConfig",{enumerable:!0,get:function(){return p.gaugeConfig}}),Object.defineProperty(e,"legendConfig",{enumerable:!0,get:function(){return f.legendConfig}}),e.keys=void 0;var r=n("f3cb"),i=n("49bc"),o=n("c930"),a=n("887c"),s=n("6eb9"),l=n("f111"),u=n("222a"),c=n("0cd4"),h=n("3938"),p=n("cc6d"),f=n("60f1"),d=n("becb"),g={colorConfig:r.colorConfig,gridConfig:i.gridConfig,xAxisConfig:o.xAxisConfig,yAxisConfig:o.yAxisConfig,titleConfig:a.titleConfig,lineConfig:s.lineConfig,barConfig:l.barConfig,pieConfig:u.pieConfig,radarAxisConfig:c.radarAxisConfig,radarConfig:h.radarConfig,gaugeConfig:p.gaugeConfig,legendConfig:f.legendConfig};e.keys=["color","title","legend","xAxis","yAxis","grid","radarAxis","line","bar","pie","radar","gauge"]},"9e6a":function(t,e,n){"use strict";n("0f06")},"9eee":function(t,e,n){},a0f0:function(t,e,n){},a143:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.radarAxis=function(t){var e=arguments.length>1&&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;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t){return(0,c.deepMerge)((0,u.deepClone)(l.radarAxisConfig),t)}function d(t,e){var n=e.render.area,r=t.center;return t.centerPos=r.map((function(t,e){return"number"==typeof t?t:parseInt(t)/100*n[e]})),t}function g(t,e){var n=e.render.area,r=t.splitNum,i=t.radius,o=Math.min.apply(Math,(0,a.default)(n))/2;"number"!=typeof i&&(i=parseInt(i)/100*o);var s=i/r;return t.ringRadius=new Array(r).fill(0).map((function(t,e){return s*(e+1)})),t.radius=i,t}function v(t){var e=t.indicator,n=t.centerPos,r=t.radius,i=t.startAngle,o=2*Math.PI,s=e.length,l=o/s,c=new Array(s).fill(0).map((function(t,e){return l*e+i}));return t.axisLineAngles=c,t.axisLinePosition=c.map((function(t){return u.getCircleRadianPoint.apply(void 0,(0,a.default)(n).concat([r,t]))})),t}function y(t){var e=t.ringRadius,n=e[0]/2;return t.areaRadius=e.map((function(t){return t-n})),t}function m(t){var e=t.axisLineAngles,n=t.centerPos,r=t.radius,i=t.axisLabel;return r+=i.labelGap,t.axisLabelPosition=e.map((function(t){return u.getCircleRadianPoint.apply(void 0,(0,a.default)(n).concat([r,t]))})),t}function b(t){var e=t.areaRadius,n=t.polygon,r=t.animationCurve,i=t.animationFrame,o=t.rLevel,a=n?"regPolygon":"ring";return e.map((function(e,n){return{name:a,index:o,visible:t.splitArea.show,animationCurve:r,animationFrame:i,shape:x(t,n),style:_(t,n)}}))}function x(t,e){var n=t.polygon,r=t.areaRadius,i=t.indicator,o=t.centerPos,a=i.length,s={rx:o[0],ry:o[1],r:r[e]};return n&&(s.side=a),s}function _(t,e){var n=t.splitArea,r=t.ringRadius,i=t.axisLineAngles,o=t.polygon,s=t.centerPos,l=n.color,h=n.style;h=p({fill:"rgba(0, 0, 0, 0)"},h);var f=r[0]-0;if(o){var d=u.getCircleRadianPoint.apply(void 0,(0,a.default)(s).concat([r[0],i[0]])),g=u.getCircleRadianPoint.apply(void 0,(0,a.default)(s).concat([r[0],i[1]]));f=(0,c.getPointToLineDistance)(s,d,g)}if(h=(0,c.deepMerge)((0,u.deepClone)(h,!0),{lineWidth:f}),!l.length)return h;var v=l.length;return(0,c.deepMerge)(h,{stroke:l[e%v]})}function w(t,e,n,r){var i=t[n];if(i){var o=r.chart.render;(e.polygon?"regPolygon":"ring")!==i[0].name&&(i.forEach((function(t){return o.delGraph(t)})),t[n]=null)}}function S(t,e){var n=e.shape.side;"number"==typeof n&&(t.shape.side=n)}function M(t){var e=t.ringRadius,n=t.polygon,r=t.animationCurve,i=t.animationFrame,o=t.rLevel,a=n?"regPolygon":"ring";return e.map((function(e,n){return{name:a,index:o,animationCurve:r,animationFrame:i,visible:t.splitLine.show,shape:O(t,n),style:C(t,n)}}))}function O(t,e){var n=t.ringRadius,r=t.centerPos,i=t.indicator,o=t.polygon,a={rx:r[0],ry:r[1],r:n[e]},s=i.length;return o&&(a.side=s),a}function C(t,e){var n=t.splitLine,r=n.color,i=n.style;if(i=p({fill:"rgba(0, 0, 0, 0)"},i),!r.length)return i;var o=r.length;return(0,c.deepMerge)(i,{stroke:r[e%o]})}function I(t,e,n,r){var i=t[n];if(i){var o=r.chart.render;(e.polygon?"regPolygon":"ring")!==i[0].name&&(i.forEach((function(t){return o.delGraph(t)})),t[n]=null)}}function k(t,e){var n=e.shape.side;"number"==typeof n&&(t.shape.side=n)}function A(t){var e=t.axisLinePosition,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"polyline",index:i,visible:t.axisLine.show,animationCurve:n,animationFrame:r,shape:T(t,o),style:D(t,o)}}))}function T(t,e){return{points:[t.centerPos,t.axisLinePosition[e]]}}function D(t,e){var n=t.axisLine,r=n.color,i=n.style;if(!r.length)return i;var o=r.length;return(0,c.deepMerge)(i,{stroke:r[e%o]})}function P(t){var e=t.axisLabelPosition,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:L(t,o),style:j(t,o)}}))}function L(t,e){var n=t.axisLabelPosition;return{content:t.indicator[e].name,position:n[e]}}function j(t,e){var n=t.axisLabel,r=(0,i.default)(t.centerPos,2),o=r[0],a=r[1],s=t.axisLabelPosition,l=n.color,u=n.style,h=(0,i.default)(s[e],2),p=h[0]>o?"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("<script>document.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l.prototype[o[r]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=l(),void 0===e?n:i(n,e)}},a18c:function(t,e,n){"use strict";var r=n("2b0e");
- /*!
- * vue-router v3.6.5
- * (c) 2022 Evan You
- * @license MIT
- */function i(t,e){for(var n in e)t[n]=e[n];return t}var o=/[!'()*]/g,a=function(t){return"%"+t.charCodeAt(0).toString(16)},s=/%2C/g,l=function(t){return encodeURIComponent(t).replace(o,a).replace(s,",")};function u(t){try{return decodeURIComponent(t)}catch(t){0}return t}var c=function(t){return null==t||"object"==typeof t?t:String(t)};function h(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=u(n.shift()),i=n.length>0?u(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function p(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return l(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(l(e)):r.push(l(e)+"="+l(t)))})),r.join("&")}return l(e)+"="+l(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var f=/\/?$/;function d(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=g(o)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:m(e,i),matched:t?y(t):[]};return n&&(a.redirectedFrom=m(n,i)),Object.freeze(a)}function g(t){if(Array.isArray(t))return t.map(g);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=g(t[n]);return e}return t}var v=d(null,{path:"/"});function y(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function m(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||p)(r)+i}function b(t,e,n){return e===v?t===e:!!e&&(t.path&&e.path?t.path.replace(f,"")===e.path.replace(f,"")&&(n||t.hash===e.hash&&x(t.query,e.query)):!(!t.name||!e.name)&&(t.name===e.name&&(n||t.hash===e.hash&&x(t.query,e.query)&&x(t.params,e.params))))}function x(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((function(n,i){var o=t[n];if(r[i]!==n)return!1;var a=e[n];return null==o||null==a?o===a:"object"==typeof o&&"object"==typeof a?x(o,a):String(o)===String(a)}))}function _(t){for(var e=0;e<t.matched.length;e++){var n=t.matched[e];for(var r in n.instances){var i=n.instances[r],o=n.enteredCbs[r];if(i&&o){delete n.enteredCbs[r];for(var a=0;a<o.length;a++)i._isBeingDestroyed||o[a](i)}}}}var w={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,a=e.data;a.routerView=!0;for(var s=o.$createElement,l=n.name,u=o.$route,c=o._routerViewCache||(o._routerViewCache={}),h=0,p=!1;o&&o._routerRoot!==o;){var f=o.$vnode?o.$vnode.data:{};f.routerView&&h++,f.keepAlive&&o._directInactive&&o._inactive&&(p=!0),o=o.$parent}if(a.routerViewDepth=h,p){var d=c[l],g=d&&d.component;return g?(d.configProps&&S(g,a,d.route,d.configProps),s(g,a,r)):s()}var v=u.matched[h],y=v&&v.components[l];if(!v||!y)return c[l]=null,s();c[l]={component:y},a.registerRouteInstance=function(t,e){var n=v.instances[l];(e&&n!==t||!e&&n===t)&&(v.instances[l]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){v.instances[l]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==v.instances[l]&&(v.instances[l]=t.componentInstance),_(u)};var m=v.props&&v.props[l];return m&&(i(c[l],{route:u,configProps:m}),S(y,a,u,m)),s(y,a,r)}};function S(t,e,n,r){var o=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(n,r);if(o){o=e.props=i({},o);var a=e.attrs=e.attrs||{};for(var s in o)t.props&&s in t.props||(a[s]=o[s],delete o[s])}}function M(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),a=0;a<o.length;a++){var s=o[a];".."===s?i.pop():"."!==s&&i.push(s)}return""!==i[0]&&i.unshift(""),i.join("/")}function O(t){return t.replace(/\/(?:\s*\/)+/g,"/")}var C=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},I=F,k=L,A=function(t,e){return E(L(t,e),e)},T=E,D=V,P=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function L(t,e){for(var n,r=[],i=0,o=0,a="",s=e&&e.delimiter||"/";null!=(n=P.exec(t));){var l=n[0],u=n[1],c=n.index;if(a+=t.slice(o,c),o=c+l.length,u)a+=u[1];else{var h=t[o],p=n[2],f=n[3],d=n[4],g=n[5],v=n[6],y=n[7];a&&(r.push(a),a="");var m=null!=p&&null!=h&&h!==p,b="+"===v||"*"===v,x="?"===v||"*"===v,_=n[2]||s,w=d||g;r.push({name:f||i++,prefix:p||"",delimiter:_,optional:x,repeat:b,partial:m,asterisk:!!y,pattern:w?N(w):y?".*":"[^"+R(_)+"]+?"})}}return o<t.length&&(a+=t.substr(o)),a&&r.push(a),r}function j(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function E(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"==typeof t[r]&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",B(e)));return function(e,r){for(var i="",o=e||{},a=(r||{}).pretty?j:encodeURIComponent,s=0;s<t.length;s++){var l=t[s];if("string"!=typeof l){var u,c=o[l.name];if(null==c){if(l.optional){l.partial&&(i+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(C(c)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(c)+"`");if(0===c.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var h=0;h<c.length;h++){if(u=a(c[h]),!n[s].test(u))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(u)+"`");i+=(0===h?l.prefix:l.delimiter)+u}}else{if(u=l.asterisk?encodeURI(c).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):a(c),!n[s].test(u))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+u+'"');i+=l.prefix+u}}else i+=l}return i}}function R(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function N(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function z(t,e){return t.keys=e,t}function B(t){return t&&t.sensitive?"":"i"}function V(t,e,n){C(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,o="",a=0;a<t.length;a++){var s=t[a];if("string"==typeof s)o+=R(s);else{var l=R(s.prefix),u="(?:"+s.pattern+")";e.push(s),s.repeat&&(u+="(?:"+l+u+")*"),o+=u=s.optional?s.partial?l+"("+u+")?":"(?:"+l+"("+u+"))?":l+"("+u+")"}}var c=R(n.delimiter||"/"),h=o.slice(-c.length)===c;return r||(o=(h?o.slice(0,-c.length):o)+"(?:"+c+"(?=$))?"),o+=i?"$":r&&h?"":"(?="+c+"|$)",z(new RegExp("^"+o,B(n)),e)}function F(t,e,n){return C(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return z(t,e)}(t,e):C(t)?function(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(F(t[i],e,n).source);return z(new RegExp("(?:"+r.join("|")+")",B(n)),e)}(t,e,n):function(t,e,n){return V(L(t,n),e,n)}(t,e,n)}I.parse=k,I.compile=A,I.tokensToFunction=T,I.tokensToRegExp=D;var G=Object.create(null);function H(t,e,n){e=e||{};try{var r=G[t]||(G[t]=I.compile(t));return"string"==typeof e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(t){return""}finally{delete e[0]}}function W(t,e,n,r){var o="string"==typeof t?{path:t}:t;if(o._normalized)return o;if(o.name){var a=(o=i({},t)).params;return a&&"object"==typeof a&&(o.params=i({},a)),o}if(!o.path&&o.params&&e){(o=i({},o))._normalized=!0;var s=i(i({},e.params),o.params);if(e.name)o.name=e.name,o.params=s;else if(e.matched.length){var l=e.matched[e.matched.length-1].path;o.path=H(l,s,e.path)}else 0;return o}var u=function(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(o.path||""),p=e&&e.path||"/",f=u.path?M(u.path,p,n||o.append):p,d=function(t,e,n){void 0===e&&(e={});var r,i=n||h;try{r=i(t||"")}catch(t){r={}}for(var o in e){var a=e[o];r[o]=Array.isArray(a)?a.map(c):c(a)}return r}(u.query,o.query,r&&r.options.parseQuery),g=o.hash||u.hash;return g&&"#"!==g.charAt(0)&&(g="#"+g),{_normalized:!0,path:f,query:d,hash:g}}var U,Y=function(){},q={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),a=o.location,s=o.route,l=o.href,u={},c=n.options.linkActiveClass,h=n.options.linkExactActiveClass,p=null==c?"router-link-active":c,g=null==h?"router-link-exact-active":h,v=null==this.activeClass?p:this.activeClass,y=null==this.exactActiveClass?g:this.exactActiveClass,m=s.redirectedFrom?d(null,W(s.redirectedFrom),null,n):s;u[y]=b(r,m,this.exactPath),u[v]=this.exact||this.exactPath?u[y]:function(t,e){return 0===t.path.replace(f,"/").indexOf(e.path.replace(f,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,m);var x=u[y]?this.ariaCurrentValue:null,_=function(t){X(t)&&(e.replace?n.replace(a,Y):n.push(a,Y))},w={click:X};Array.isArray(this.event)?this.event.forEach((function(t){w[t]=_})):w[this.event]=_;var S={class:u},M=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:s,navigate:_,isActive:u[v],isExactActive:u[y]});if(M){if(1===M.length)return M[0];if(M.length>1||!M.length)return 0===M.length?t():t("span",{},M)}if("a"===this.tag)S.on=w,S.attrs={href:l,"aria-current":x};else{var O=function t(e){var n;if(e)for(var r=0;r<e.length;r++){if("a"===(n=e[r]).tag)return n;if(n.children&&(n=t(n.children)))return n}}(this.$slots.default);if(O){O.isStatic=!1;var C=O.data=i({},O.data);for(var I in C.on=C.on||{},C.on){var k=C.on[I];I in w&&(C.on[I]=Array.isArray(k)?k:[k])}for(var A in w)A in C.on?C.on[A].push(w[A]):C.on[A]=_;var T=O.data.attrs=i({},O.data.attrs);T.href=l,T["aria-current"]=x}else S.on=w}return t(this.tag,S,this.$slots.default)}};function X(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}var $="undefined"!=typeof window;function Z(t,e,n,r,i){var o=e||[],a=n||Object.create(null),s=r||Object.create(null);t.forEach((function(t){!function t(e,n,r,i,o,a){var s=i.path,l=i.name;0;var u=i.pathToRegexpOptions||{},c=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return O(e.path+"/"+t)}(s,o,u.strict);"boolean"==typeof i.caseSensitive&&(u.sensitive=i.caseSensitive);var h={path:c,regex:K(c,u),components:i.components||{default:i.component},alias:i.alias?"string"==typeof i.alias?[i.alias]:i.alias:[],instances:{},enteredCbs:{},name:l,parent:o,matchAs:a,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};i.children&&i.children.forEach((function(i){var o=a?O(a+"/"+i.path):void 0;t(e,n,r,i,h,o)}));n[h.path]||(e.push(h.path),n[h.path]=h);if(void 0!==i.alias)for(var p=Array.isArray(i.alias)?i.alias:[i.alias],f=0;f<p.length;++f){0;var d={path:p[f],children:i.children};t(e,n,r,d,o,h.path||"/")}l&&(r[l]||(r[l]=h))}(o,a,s,t,i)}));for(var l=0,u=o.length;l<u;l++)"*"===o[l]&&(o.push(o.splice(l,1)[0]),u--,l--);return{pathList:o,pathMap:a,nameMap:s}}function K(t,e){return I(t,[],e)}function Q(t,e){var n=Z(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(t,n,a){var s=W(t,n,!1,e),u=s.name;if(u){var c=o[u];if(!c)return l(null,s);var h=c.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!=typeof s.params&&(s.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in s.params)&&h.indexOf(p)>-1&&(s.params[p]=n.params[p]);return s.path=H(c.path,s.params),l(c,s,a)}if(s.path){s.params={};for(var f=0;f<r.length;f++){var d=r[f],g=i[d];if(J(g.regex,s.path,s.params))return l(g,s,a)}}return l(null,s)}function s(t,n){var r=t.redirect,i="function"==typeof r?r(d(t,n,null,e)):r;if("string"==typeof i&&(i={path:i}),!i||"object"!=typeof i)return l(null,n);var s=i,u=s.name,c=s.path,h=n.query,p=n.hash,f=n.params;if(h=s.hasOwnProperty("query")?s.query:h,p=s.hasOwnProperty("hash")?s.hash:p,f=s.hasOwnProperty("params")?s.params:f,u){o[u];return a({_normalized:!0,name:u,query:h,hash:p,params:f},void 0,n)}if(c){var g=function(t,e){return M(t,e.parent?e.parent.path:"/",!0)}(c,t);return a({_normalized:!0,path:H(g,f),query:h,hash:p},void 0,n)}return l(null,n)}function l(t,n,r){return t&&t.redirect?s(t,r||n):t&&t.matchAs?function(t,e,n){var r=a({_normalized:!0,path:H(n,e.params)});if(r){var i=r.matched,o=i[i.length-1];return e.params=r.params,l(o,e)}return l(null,e)}(0,n,t.matchAs):d(t,n,r,e)}return{match:a,addRoute:function(t,e){var n="object"!=typeof t?o[t]:void 0;Z([e||t],r,i,o,n),n&&n.alias.length&&Z(n.alias.map((function(t){return{path:t,children:[e]}})),r,i,o,n)},getRoutes:function(){return r.map((function(t){return i[t]}))},addRoutes:function(t){Z(t,r,i,o)}}}function J(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var a=t.keys[i-1];a&&(n[a.name||"pathMatch"]="string"==typeof r[i]?u(r[i]):r[i])}return!0}var tt=$&&window.performance&&window.performance.now?window.performance:Date;function et(){return tt.now().toFixed(3)}var nt=et();function rt(){return nt}function it(t){return nt=t}var ot=Object.create(null);function at(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),n=i({},window.history.state);return n.key=rt(),window.history.replaceState(n,"",e),window.addEventListener("popstate",ut),function(){window.removeEventListener("popstate",ut)}}function st(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick((function(){var o=function(){var t=rt();if(t)return ot[t]}(),a=i.call(t,e,n,r?o:null);a&&("function"==typeof a.then?a.then((function(t){dt(t,o)})).catch((function(t){0})):dt(a,o))}))}}function lt(){var t=rt();t&&(ot[t]={x:window.pageXOffset,y:window.pageYOffset})}function ut(t){lt(),t.state&&t.state.key&&it(t.state.key)}function ct(t){return pt(t.x)||pt(t.y)}function ht(t){return{x:pt(t.x)?t.x:window.pageXOffset,y:pt(t.y)?t.y:window.pageYOffset}}function pt(t){return"number"==typeof t}var ft=/^#\d/;function dt(t,e){var n,r="object"==typeof t;if(r&&"string"==typeof t.selector){var i=ft.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(i){var o=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}(i,o={x:pt((n=o).x)?n.x:0,y:pt(n.y)?n.y:0})}else ct(t)&&(e=ht(t))}else r&&ct(t)&&(e=ht(t));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:t.behavior}):window.scrollTo(e.x,e.y))}var gt,vt=$&&((-1===(gt=window.navigator.userAgent).indexOf("Android 2.")&&-1===gt.indexOf("Android 4.0")||-1===gt.indexOf("Mobile Safari")||-1!==gt.indexOf("Chrome")||-1!==gt.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState);function yt(t,e){lt();var n=window.history;try{if(e){var r=i({},n.state);r.key=rt(),n.replaceState(r,"",t)}else n.pushState({key:it(et())},"",t)}catch(n){window.location[e?"replace":"assign"](t)}}function mt(t){yt(t,!0)}var bt={redirected:2,aborted:4,cancelled:8,duplicated:16};function xt(t,e){return wt(t,e,bt.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return St.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function _t(t,e){return wt(t,e,bt.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function wt(t,e,n,r){var i=new Error(r);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var St=["params","query","hash"];function Mt(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Ot(t,e){return Mt(t)&&t._isRouter&&(null==e||t.type===e)}function Ct(t,e,n){var r=function(i){i>=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}function It(t){return function(e,n,r){var i=!1,o=0,a=null;kt(t,(function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var l,u=Dt((function(e){var i;((i=e).__esModule||Tt&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:U.extend(e),n.components[s]=e,--o<=0&&r()})),c=Dt((function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=Mt(t)?t:new Error(e),r(a))}));try{l=t(u,c)}catch(t){c(t)}if(l)if("function"==typeof l.then)l.then(u,c);else{var h=l.component;h&&"function"==typeof h.then&&h.then(u,c)}}})),i||r()}}function kt(t,e){return At(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function At(t){return Array.prototype.concat.apply([],t)}var Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Dt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Pt=function(t,e){this.router=t,this.base=function(t){if(!t)if($){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Lt(t,e,n,r){var i=kt(t,(function(t,r,i,o){var a=function(t,e){"function"!=typeof t&&(t=U.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,i,o)})):n(a,r,i,o)}));return At(r?i.reverse():i)}function jt(t,e){if(e)return function(){return t.apply(e,arguments)}}Pt.prototype.listen=function(t){this.cb=t},Pt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Pt.prototype.onError=function(t){this.errorCbs.push(t)},Pt.prototype.transitionTo=function(t,e,n){var r,i=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.router.afterHooks.forEach((function(t){t&&t(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!i.ready&&(Ot(t,bt.redirected)&&o===v||(i.ready=!0,i.readyErrorCbs.forEach((function(e){e(t)}))))}))},Pt.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current;this.pending=t;var o,a,s=function(t){!Ot(t)&&Mt(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},l=t.matched.length-1,u=i.matched.length-1;if(b(t,i)&&l===u&&t.matched[l]===i.matched[u])return this.ensureURL(),t.hash&&st(this.router,i,t,!1),s(((a=wt(o=i,t,bt.duplicated,'Avoided redundant navigation to current location: "'+o.fullPath+'".')).name="NavigationDuplicated",a));var c=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),h=c.updated,p=c.deactivated,f=c.activated,d=[].concat(function(t){return Lt(t,"beforeRouteLeave",jt,!0)}(p),this.router.beforeHooks,function(t){return Lt(t,"beforeRouteUpdate",jt)}(h),f.map((function(t){return t.beforeEnter})),It(f)),g=function(e,n){if(r.pending!==t)return s(_t(i,t));try{e(t,i,(function(e){!1===e?(r.ensureURL(!0),s(function(t,e){return wt(t,e,bt.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}(i,t))):Mt(e)?(r.ensureURL(!0),s(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(s(xt(i,t)),"object"==typeof e&&e.replace?r.replace(e):r.push(e)):n(e)}))}catch(t){s(t)}};Ct(d,g,(function(){Ct(function(t){return Lt(t,"beforeRouteEnter",(function(t,e,n,r){return function(t,e,n){return function(r,i,o){return t(r,i,(function(t){"function"==typeof t&&(e.enteredCbs[n]||(e.enteredCbs[n]=[]),e.enteredCbs[n].push(t)),o(t)}))}}(t,n,r)}))}(f).concat(r.router.resolveHooks),g,(function(){if(r.pending!==t)return s(_t(i,t));r.pending=null,e(t),r.router.app&&r.router.app.$nextTick((function(){_(t)}))}))}))},Pt.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},Pt.prototype.setupListeners=function(){},Pt.prototype.teardown=function(){this.listeners.forEach((function(t){t()})),this.listeners=[],this.current=v,this.pending=null};var Et=function(t){function e(e,n){t.call(this,e,n),this._startLocation=Rt(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=vt&&n;r&&this.listeners.push(at());var i=function(){var n=t.current,i=Rt(t.base);t.current===v&&i===t._startLocation||t.transitionTo(i,(function(t){r&&st(e,t,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){yt(O(r.base+t.fullPath)),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){mt(O(r.base+t.fullPath)),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(Rt(this.base)!==this.current.fullPath){var e=O(this.base+this.current.fullPath);t?yt(e):mt(e)}},e.prototype.getCurrentLocation=function(){return Rt(this.base)},e}(Pt);function Rt(t){var e=window.location.pathname,n=e.toLowerCase(),r=t.toLowerCase();return!t||n!==r&&0!==n.indexOf(O(r+"/"))||(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Nt=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=Rt(t);if(!/^\/#/.test(e))return window.location.replace(O(t+"/#"+e)),!0}(this.base)||zt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=vt&&e;n&&this.listeners.push(at());var r=function(){var e=t.current;zt()&&t.transitionTo(Bt(),(function(r){n&&st(t.router,r,e,!0),vt||Gt(r.fullPath)}))},i=vt?"popstate":"hashchange";window.addEventListener(i,r),this.listeners.push((function(){window.removeEventListener(i,r)}))}},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Ft(t.fullPath),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Gt(t.fullPath),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Bt()!==e&&(t?Ft(e):Gt(e))},e.prototype.getCurrentLocation=function(){return Bt()},e}(Pt);function zt(){var t=Bt();return"/"===t.charAt(0)||(Gt("/"+t),!1)}function Bt(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Vt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Ft(t){vt?yt(Vt(t)):window.location.hash=t}function Gt(t){vt?mt(Vt(t)):window.location.replace(Vt(t))}var Ht=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){Ot(t,bt.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Pt),Wt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Q(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!vt&&!1!==t.fallback,this.fallback&&(e="hash"),$||(e="abstract"),this.mode=e,e){case"history":this.history=new Et(this,t.base);break;case"hash":this.history=new Nt(this,t.base,this.fallback);break;case"abstract":this.history=new Ht(this,t.base);break;default:0}},Ut={currentRoute:{configurable:!0}};Wt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Ut.currentRoute.get=function(){return this.history&&this.history.current},Wt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof Et||n instanceof Nt){var r=function(t){n.setupListeners(),function(t){var r=n.current,i=e.options.scrollBehavior;vt&&i&&"fullPath"in t&&st(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Wt.prototype.beforeEach=function(t){return qt(this.beforeHooks,t)},Wt.prototype.beforeResolve=function(t){return qt(this.resolveHooks,t)},Wt.prototype.afterEach=function(t){return qt(this.afterHooks,t)},Wt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Wt.prototype.onError=function(t){this.history.onError(t)},Wt.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Wt.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Wt.prototype.go=function(t){this.history.go(t)},Wt.prototype.back=function(){this.go(-1)},Wt.prototype.forward=function(){this.go(1)},Wt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Wt.prototype.resolve=function(t,e,n){var r=W(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?O(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Wt.prototype.getRoutes=function(){return this.matcher.getRoutes()},Wt.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Wt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Wt.prototype,Ut);var Yt=Wt;function qt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Wt.install=function t(e){if(!t.installed||U!==e){t.installed=!0,U=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",w),e.component("RouterLink",q);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Wt.version="3.6.5",Wt.isNavigationFailure=Ot,Wt.NavigationFailureType=bt,Wt.START_LOCATION=v,$&&window.Vue&&window.Vue.use(Wt);r.default.use(Yt);const Xt=new Yt({mode:"hash",routes:[{path:"/",redirect:"/index"},{path:"/home",name:"home",component:()=>Promise.all([n.e("vendors~LSD.bighome"),n.e("LSD.bighome")]).then(n.bind(null,"6511")),children:[{path:"/index",name:"index",component:()=>Promise.all([n.e("vendors~LSD.bighome"),n.e("LSD.bighome")]).then(n.bind(null,"df5e"))}]}]});e.a=Xt},a34a:function(t,e,n){var r=n("7ec2")();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},a3c3:function(t,e,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},a3de:function(t,e,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=i},a5ee:function(t,e,n){"use strict";n("0999")},a736:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"mergeColor",{enumerable:!0,get:function(){return r.mergeColor}}),Object.defineProperty(e,"title",{enumerable:!0,get:function(){return i.title}}),Object.defineProperty(e,"grid",{enumerable:!0,get:function(){return o.grid}}),Object.defineProperty(e,"axis",{enumerable:!0,get:function(){return a.axis}}),Object.defineProperty(e,"line",{enumerable:!0,get:function(){return s.line}}),Object.defineProperty(e,"bar",{enumerable:!0,get:function(){return l.bar}}),Object.defineProperty(e,"pie",{enumerable:!0,get:function(){return u.pie}}),Object.defineProperty(e,"radarAxis",{enumerable:!0,get:function(){return c.radarAxis}}),Object.defineProperty(e,"radar",{enumerable:!0,get:function(){return h.radar}}),Object.defineProperty(e,"gauge",{enumerable:!0,get:function(){return p.gauge}}),Object.defineProperty(e,"legend",{enumerable:!0,get:function(){return f.legend}});var r=n("8a1d"),i=n("873c"),o=n("46bb"),a=n("0680"),s=n("252f"),l=n("204e"),u=n("729e"),c=n("a143"),h=n("4eb1"),p=n("1f55"),f=n("60f7")},ae10:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("278c")),o=r(n("448a"));function a(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.25,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.25,o=t.length;if(!(o<3||e>=o)){var a=e-1;a<0&&(a=n?o+a:0);var s=e+1;s>=o&&(s=n?s-o:o-1);var l=e+2;l>=o&&(l=n?l-o:o-1);var u=t[a],c=t[e],h=t[s],p=t[l];return[[c[0]+r*(h[0]-u[0]),c[1]+r*(h[1]-u[1])],[h[0]-i*(p[0]-c[0]),h[1]-i*(p[1]-c[1])]]}}function s(t,e){var n=t[0],r=t.slice(-1)[0];return t.push([l(r[1],r[2]),l(n[0],e),e]),t}function l(t,e){var n=(0,i.default)(t,2),r=n[0],o=n[1],a=(0,i.default)(e,2),s=a[0],l=a[1];return[s+(s-r),l+(l-o)]}var u=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.25,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.25;if(!(t instanceof Array))return console.error("polylineToBezierCurve: Parameter polyline must be an array!"),!1;if(t.length<=2)return console.error("polylineToBezierCurve: Converting to a curve requires at least 3 points!"),!1;var i=t[0],l=t.length-1,u=new Array(l).fill(0).map((function(i,s){return[].concat((0,o.default)(a(t,s,e,n,r)),[t[s+1]])}));return e&&s(u,i),u.unshift(t[0]),u};e.default=u},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b06d:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.extendNewGraph=function(t,e){if(!t||!e)return void console.error("ExtendNewGraph Missing Parameters!");if(!e.shape)return void console.error("Required attribute of shape to extendNewGraph!");if(!e.validator)return void console.error("Required function of validator to extendNewGraph!");if(!e.draw)return void console.error("Required function of draw to extendNewGraph!");w.set(t,e)},e.default=e.text=e.bezierCurve=e.smoothline=e.polyline=e.regPolygon=e.sector=e.arc=e.ring=e.rect=e.ellipse=e.circle=void 0;var i=r(n("448a")),o=r(n("278c")),a=r(n("050c")),s=n("5557"),l=n("e169"),u=a.default.polylineToBezierCurve,c=a.default.bezierCurveToPolyline,h={shape:{rx:0,ry:0,r:0},validator:function(t){var e=t.shape,n=e.rx,r=e.ry,i=e.r;return"number"==typeof n&&"number"==typeof r&&"number"==typeof i||(console.error("Circle shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.rx,o=r.ry,a=r.r;n.arc(i,o,a>0?a:.01,0,2*Math.PI),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(t,e){var n=e.shape,r=n.rx,i=n.ry,o=n.r;return(0,s.checkPointIsInCircle)(t,r,i,o)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};e.circle=h;var p={shape:{rx:0,ry:0,hr:0,vr:0},validator:function(t){var e=t.shape,n=e.rx,r=e.ry,i=e.hr,o=e.vr;return"number"==typeof n&&"number"==typeof r&&"number"==typeof i&&"number"==typeof o||(console.error("Ellipse shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.rx,o=r.ry,a=r.hr,s=r.vr;n.ellipse(i,o,a>0?a:.01,s>0?s:.01,0,0,2*Math.PI),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(t,e){var n=e.shape,r=n.rx,i=n.ry,o=n.hr,a=n.vr,l=Math.max(o,a),u=Math.min(o,a),c=Math.sqrt(l*l-u*u),h=[r-c,i],p=[r+c,i];return(0,s.getTwoPointDistance)(t,h)+(0,s.getTwoPointDistance)(t,p)<=2*l},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};e.ellipse=p;var f={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("Rect 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;n.rect(i,o,a,s),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(t,e){var n=e.shape,r=n.x,i=n.y,o=n.w,a=n.h;return(0,s.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]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape;this.attr("shape",{x:i.x+n,y:i.y+r})}};e.rect=f;var d={shape:{rx:0,ry:0,r:0},validator:function(t){var e=t.shape,n=e.rx,r=e.ry,i=e.r;return"number"==typeof n&&"number"==typeof r&&"number"==typeof i||(console.error("Ring shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.rx,o=r.ry,a=r.r;n.arc(i,o,a>0?a:.01,0,2*Math.PI),n.stroke(),n.closePath()},hoverCheck:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry,a=n.r,l=r.lineWidth/2,u=a-l,c=a+l,h=(0,s.getTwoPointDistance)(t,[i,o]);return h>=u&&h<=c},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};e.ring=d;var g={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(t){var e=t.shape;return!["rx","ry","r","startAngle","endAngle"].find((function(t){return"number"!=typeof e[t]}))||(console.error("Arc shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.rx,o=r.ry,a=r.r,s=r.startAngle,l=r.endAngle,u=r.clockWise;n.arc(i,o,a>0?a:.001,s,l,!u),n.stroke(),n.closePath()},hoverCheck:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry,a=n.r,l=n.startAngle,u=n.endAngle,c=n.clockWise,h=r.lineWidth/2,p=a-h,f=a+h;return!(0,s.checkPointIsInSector)(t,i,o,p,l,u,c)&&(0,s.checkPointIsInSector)(t,i,o,f,l,u,c)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};e.arc=g;var v={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(t){var e=t.shape;return!["rx","ry","r","startAngle","endAngle"].find((function(t){return"number"!=typeof e[t]}))||(console.error("Sector shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.rx,o=r.ry,a=r.r,s=r.startAngle,l=r.endAngle,u=r.clockWise;n.arc(i,o,a>0?a:.01,s,l,!u),n.lineTo(i,o),n.closePath(),n.stroke(),n.fill()},hoverCheck:function(t,e){var n=e.shape,r=n.rx,i=n.ry,o=n.r,a=n.startAngle,l=n.endAngle,u=n.clockWise;return(0,s.checkPointIsInSector)(t,r,i,o,a,l,u)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape,o=i.rx,a=i.ry;this.attr("shape",{rx:o+n,ry:a+r})}};e.sector=v;var y={shape:{rx:0,ry:0,r:0,side:0},validator:function(t){var e=t.shape,n=e.side;return["rx","ry","r","side"].find((function(t){return"number"!=typeof e[t]}))?(console.error("RegPolygon shape configuration is abnormal!"),!1):!(n<3)||(console.error("RegPolygon at least trigon!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=e.cache;n.beginPath();var o=r.rx,a=r.ry,u=r.r,c=r.side;if(!i.points||i.rx!==o||i.ry!==a||i.r!==u||i.side!==c){var h=(0,s.getRegularPolygonPoints)(o,a,u,c);Object.assign(i,{points:h,rx:o,ry:a,r:u,side:c})}var p=i.points;(0,l.drawPolylinePath)(n,p),n.closePath(),n.stroke(),n.fill()},hoverCheck:function(t,e){var n=e.cache.points;return(0,s.checkPointIsInPolygon)(t,n)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape,a=e.cache,s=i.rx,l=i.ry;a.rx+=n,a.ry+=r,this.attr("shape",{rx:s+n,ry:l+r}),a.points=a.points.map((function(t){var e=(0,o.default)(t,2),i=e[0],a=e[1];return[i+n,a+r]}))}};e.regPolygon=y;var m={shape:{points:[],close:!1},validator:function(t){return t.shape.points instanceof Array||(console.error("Polyline points should be an array!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=e.style.lineWidth;n.beginPath();var o=r.points,a=r.close;1===i&&(o=(0,s.eliminateBlur)(o)),(0,l.drawPolylinePath)(n,o),a?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(t,e){var n=e.shape,r=e.style,i=n.points,o=n.close,a=r.lineWidth;return o?(0,s.checkPointIsInPolygon)(t,i):(0,s.checkPointIsNearPolyline)(t,i,a)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.points;r.graphCenter=i[0]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape.points.map((function(t){var e=(0,o.default)(t,2),i=e[0],a=e[1];return[i+n,a+r]}));this.attr("shape",{points:i})}};e.polyline=m;var b={shape:{points:[],close:!1},validator:function(t){return t.shape.points instanceof Array||(console.error("Smoothline points should be an array!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=e.cache,o=r.points,a=r.close;if(!i.points||i.points.toString()!==o.toString()){var h=u(o,a),p=c(h);Object.assign(i,{points:(0,s.deepClone)(o,!0),bezierCurve:h,hoverPoints:p})}var f=i.bezierCurve;n.beginPath(),(0,l.drawBezierCurvePath)(n,f.slice(1),f[0]),a?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(t,e){var n=e.cache,r=e.shape,i=e.style,o=n.hoverPoints,a=r.close,l=i.lineWidth;return a?(0,s.checkPointIsInPolygon)(t,o):(0,s.checkPointIsNearPolyline)(t,o,l)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.points;r.graphCenter=i[0]},move:function(t,e){var n=t.movementX,r=t.movementY,a=e.shape,s=e.cache,l=a.points.map((function(t){var e=(0,o.default)(t,2),i=e[0],a=e[1];return[i+n,a+r]}));s.points=l;var u=(0,o.default)(s.bezierCurve[0],2),c=u[0],h=u[1],p=s.bezierCurve.slice(1);s.bezierCurve=[[c+n,h+r]].concat((0,i.default)(p.map((function(t){return t.map((function(t){var e=(0,o.default)(t,2),i=e[0],a=e[1];return[i+n,a+r]}))})))),s.hoverPoints=s.hoverPoints.map((function(t){var e=(0,o.default)(t,2),i=e[0],a=e[1];return[i+n,a+r]})),this.attr("shape",{points:l})}};e.smoothline=b;var x={shape:{points:[],close:!1},validator:function(t){return t.shape.points instanceof Array||(console.error("BezierCurve points should be an array!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=e.cache,o=r.points,a=r.close;if(!i.points||i.points.toString()!==o.toString()){var u=c(o,20);Object.assign(i,{points:(0,s.deepClone)(o,!0),hoverPoints:u})}n.beginPath(),(0,l.drawBezierCurvePath)(n,o.slice(1),o[0]),a?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(t,e){var n=e.cache,r=e.shape,i=e.style,o=n.hoverPoints,a=r.close,l=i.lineWidth;return a?(0,s.checkPointIsInPolygon)(t,o):(0,s.checkPointIsNearPolyline)(t,o,l)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.points;r.graphCenter=i[0]},move:function(t,e){var n=t.movementX,r=t.movementY,a=e.shape,s=e.cache,l=a.points,u=(0,o.default)(l[0],2),c=u[0],h=u[1],p=l.slice(1),f=[[c+n,h+r]].concat((0,i.default)(p.map((function(t){return t.map((function(t){var e=(0,o.default)(t,2),i=e[0],a=e[1];return[i+n,a+r]}))}))));s.points=f,s.hoverPoints=s.hoverPoints.map((function(t){var e=(0,o.default)(t,2),i=e[0],a=e[1];return[i+n,a+r]})),this.attr("shape",{points:f})}};e.bezierCurve=x;var _={shape:{content:"",position:[],maxWidth:void 0,rowGap:0},validator:function(t){var e=t.shape,n=e.content,r=e.position,i=e.rowGap;return"string"!=typeof n?(console.error("Text content should be a string!"),!1):r instanceof Array?"number"==typeof i||(console.error("Text rowGap should be a number!"),!1):(console.error("Text position should be an array!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,a=r.content,s=r.position,l=r.maxWidth,u=r.rowGap,c=n.textBaseline,h=n.font,p=parseInt(h.replace(/\D/g,"")),f=s,d=(0,o.default)(f,2),g=d[0],v=d[1],y=(a=a.split("\n")).length,m=p+u,b=y*m-u,x=0;"middle"===c&&(x=b/2,v+=p/2),"bottom"===c&&(x=b,v+=p),s=new Array(y).fill(0).map((function(t,e){return[g,v+e*m-x]})),n.beginPath(),a.forEach((function(t,e){n.fillText.apply(n,[t].concat((0,i.default)(s[e]),[l])),n.strokeText.apply(n,[t].concat((0,i.default)(s[e]),[l]))})),n.closePath()},hoverCheck:function(t,e){e.shape,e.style;return!1},setGraphCenter:function(t,e){var n=e.shape,r=e.style,o=n.position;r.graphCenter=(0,i.default)(o)},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape,a=(0,o.default)(i.position,2),s=a[0],l=a[1];this.attr("shape",{position:[s+n,l+r]})}};e.text=_;var w=new Map([["circle",h],["ellipse",p],["rect",f],["ring",d],["arc",g],["sector",v],["regPolygon",y],["polyline",m],["smoothline",b],["bezierCurve",x],["text",_]]),S=w;e.default=S},b447:function(t,e,n){var r=n("3a38"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},b639:function(t,e,n){"use strict";(function(t){
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <http://feross.org>
- * @license MIT
- */
- var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return u(this,t,e,n)}function u(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=p(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(e,n),i=(t=s(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(l.isBuffer(e)){var n=0|f(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?s(t,0):p(t,e);if("Buffer"===e.type&&o(e.data))return p(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(c(e),t=s(t,e<0?0:0|f(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function p(t,e){var n=e.length<0?0:0|f(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function f(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function d(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(t).length;default:if(r)return V(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return A(this,e,n);case"utf8":case"utf-8":return C(this,e,n);case"ascii":return I(this,e,n);case"latin1":case"binary":return k(this,e,n);case"base64":return O(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function v(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:m(t,e,n,r,i);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(t,o)===u(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var h=!0,p=0;p<l;p++)if(u(t,o+p)!==u(e,p)){h=!1;break}if(h)return o}return-1}function b(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function x(t,e,n,r){return G(V(e,t.length-n),t,n,r)}function _(t,e,n,r){return G(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function w(t,e,n,r){return _(t,e,n,r)}function S(t,e,n,r){return G(F(e),t,n,r)}function M(t,e,n,r){return G(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function O(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function C(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,l,u=t[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(o=t[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}e.Buffer=l,e.SlowBuffer=function(t){+t!=t&&(t=0);return l.alloc(+t)},e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return u(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return function(t,e,n,r){return c(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},l.allocUnsafe=function(t){return h(null,t)},l.allocUnsafeSlow=function(t){return h(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=l.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=d,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):g.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,n,r,i){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=t.slice(e,n),h=0;h<s;++h)if(u[h]!==c[h]){o=u[h],a=c[h];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},l.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":return _(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function k(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function A(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=B(t[o]);return i}function T(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function D(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,n,r,i,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function L(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function j(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function E(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(t,e,n,r,o){return o||E(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function N(t,e,n,r,o){return o||E(t,0,n,8),i.write(t,e,n,r,52,8),n+8}l.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=l.prototype;else{var i=e-t;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},l.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},l.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},l.prototype.readUInt8=function(t,e){return e||D(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||D(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||D(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||D(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||D(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||D(t,4,this.length),i.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||D(t,4,this.length),i.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||D(t,8,this.length),i.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||D(t,8,this.length),i.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||P(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},l.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||P(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);P(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);P(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return R(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return R(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return N(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return N(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},l.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=l.isBuffer(t)?t:V(new l(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function B(t){return t<16?"0"+t.toString(16):t.toString(16)}function V(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function F(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function G(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n("c8ba"))},b7c2:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=new Map([["transparent","rgba(0,0,0,0)"],["black","#000000"],["silver","#C0C0C0"],["gray","#808080"],["white","#FFFFFF"],["maroon","#800000"],["red","#FF0000"],["purple","#800080"],["fuchsia","#FF00FF"],["green","#008000"],["lime","#00FF00"],["olive","#808000"],["yellow","#FFFF00"],["navy","#000080"],["blue","#0000FF"],["teal","#008080"],["aqua","#00FFFF"],["aliceblue","#f0f8ff"],["antiquewhite","#faebd7"],["aquamarine","#7fffd4"],["azure","#f0ffff"],["beige","#f5f5dc"],["bisque","#ffe4c4"],["blanchedalmond","#ffebcd"],["blueviolet","#8a2be2"],["brown","#a52a2a"],["burlywood","#deb887"],["cadetblue","#5f9ea0"],["chartreuse","#7fff00"],["chocolate","#d2691e"],["coral","#ff7f50"],["cornflowerblue","#6495ed"],["cornsilk","#fff8dc"],["crimson","#dc143c"],["cyan","#00ffff"],["darkblue","#00008b"],["darkcyan","#008b8b"],["darkgoldenrod","#b8860b"],["darkgray","#a9a9a9"],["darkgreen","#006400"],["darkgrey","#a9a9a9"],["darkkhaki","#bdb76b"],["darkmagenta","#8b008b"],["darkolivegreen","#556b2f"],["darkorange","#ff8c00"],["darkorchid","#9932cc"],["darkred","#8b0000"],["darksalmon","#e9967a"],["darkseagreen","#8fbc8f"],["darkslateblue","#483d8b"],["darkslategray","#2f4f4f"],["darkslategrey","#2f4f4f"],["darkturquoise","#00ced1"],["darkviolet","#9400d3"],["deeppink","#ff1493"],["deepskyblue","#00bfff"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1e90ff"],["firebrick","#b22222"],["floralwhite","#fffaf0"],["forestgreen","#228b22"],["gainsboro","#dcdcdc"],["ghostwhite","#f8f8ff"],["gold","#ffd700"],["goldenrod","#daa520"],["greenyellow","#adff2f"],["grey","#808080"],["honeydew","#f0fff0"],["hotpink","#ff69b4"],["indianred","#cd5c5c"],["indigo","#4b0082"],["ivory","#fffff0"],["khaki","#f0e68c"],["lavender","#e6e6fa"],["lavenderblush","#fff0f5"],["lawngreen","#7cfc00"],["lemonchiffon","#fffacd"],["lightblue","#add8e6"],["lightcoral","#f08080"],["lightcyan","#e0ffff"],["lightgoldenrodyellow","#fafad2"],["lightgray","#d3d3d3"],["lightgreen","#90ee90"],["lightgrey","#d3d3d3"],["lightpink","#ffb6c1"],["lightsalmon","#ffa07a"],["lightseagreen","#20b2aa"],["lightskyblue","#87cefa"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#b0c4de"],["lightyellow","#ffffe0"],["limegreen","#32cd32"],["linen","#faf0e6"],["magenta","#ff00ff"],["mediumaquamarine","#66cdaa"],["mediumblue","#0000cd"],["mediumorchid","#ba55d3"],["mediumpurple","#9370db"],["mediumseagreen","#3cb371"],["mediumslateblue","#7b68ee"],["mediumspringgreen","#00fa9a"],["mediumturquoise","#48d1cc"],["mediumvioletred","#c71585"],["midnightblue","#191970"],["mintcream","#f5fffa"],["mistyrose","#ffe4e1"],["moccasin","#ffe4b5"],["navajowhite","#ffdead"],["oldlace","#fdf5e6"],["olivedrab","#6b8e23"],["orange","#ffa500"],["orangered","#ff4500"],["orchid","#da70d6"],["palegoldenrod","#eee8aa"],["palegreen","#98fb98"],["paleturquoise","#afeeee"],["palevioletred","#db7093"],["papayawhip","#ffefd5"],["peachpuff","#ffdab9"],["peru","#cd853f"],["pink","#ffc0cb"],["plum","#dda0dd"],["powderblue","#b0e0e6"],["rosybrown","#bc8f8f"],["royalblue","#4169e1"],["saddlebrown","#8b4513"],["salmon","#fa8072"],["sandybrown","#f4a460"],["seagreen","#2e8b57"],["seashell","#fff5ee"],["sienna","#a0522d"],["skyblue","#87ceeb"],["slateblue","#6a5acd"],["slategray","#708090"],["slategrey","#708090"],["snow","#fffafa"],["springgreen","#00ff7f"],["steelblue","#4682b4"],["tan","#d2b48c"],["thistle","#d8bfd8"],["tomato","#ff6347"],["turquoise","#40e0d0"],["violet","#ee82ee"],["wheat","#f5deb3"],["whitesmoke","#f5f5f5"],["yellowgreen","#9acd32"]]);e.default=r},b8e3:function(t,e){t.exports=!0},becb:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.filterNonNumber=s,e.deepMerge=l,e.mulAdd=u,e.mergeSameStackData=function(t,e){var n=t.stack;if(!n)return(0,i.default)(t.data);var r=e.filter((function(t){return t.stack===n})),o=r.findIndex((function(e){return e.data===t.data})),a=r.splice(0,o+1).map((function(t){return t.data})),s=a[0].length;return new Array(s).fill(0).map((function(t,e){return u(a.map((function(t){return t[e]})))}))},e.getTwoPointDistance=c,e.getLinearGradientColor=function(t,e,n,r){if(!(t&&e&&n&&r.length))return;var o=r;"string"==typeof o&&(o=[r,r]);var a=t.createLinearGradient.apply(t,(0,i.default)(e).concat((0,i.default)(n))),s=1/(o.length-1);return o.forEach((function(t,e){return a.addColorStop(s*e,t)})),a},e.getPolylineLength=function(t){return u(new Array(t.length-1).fill(0).map((function(e,n){return[t[n],t[n+1]]})).map((function(t){return c.apply(void 0,(0,i.default)(t))})))},e.getPointToLineDistance=function(t,e,n){var r=c(t,e),i=c(t,n),o=c(e,n);return.5*Math.sqrt((r+i+o)*(r+i-o)*(r+o-i)*(i+o-r))/o},e.initNeedSeries=function(t,e,n){return(t=(t=t.filter((function(t){return t.type===n}))).map((function(t){return l((0,a.deepClone)(e,!0),t)}))).filter((function(t){return t.show}))},e.radianToAngle=function(t){return t/Math.PI*180};var i=r(n("448a")),o=r(n("7037")),a=n("5557");function s(t){return t.filter((function(t){return"number"==typeof t}))}function l(t,e){for(var n in e)t[n]&&"object"===(0,o.default)(t[n])?l(t[n],e[n]):"object"!==(0,o.default)(e[n])?t[n]=e[n]:t[n]=(0,a.deepClone)(e[n],!0);return t}function u(t){return(t=s(t)).reduce((function(t,e){return t+e}),0)}function c(t,e){var n=Math.abs(t[0]-e[0]),r=Math.abs(t[1]-e[1]);return Math.sqrt(n*n+r*r)}},bf0b:function(t,e,n){var r=n("355d"),i=n("aebd"),o=n("36c3"),a=n("1bc3"),s=n("07e3"),l=n("794b"),u=Object.getOwnPropertyDescriptor;e.f=n("8e60")?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},c098:function(t,e,n){t.exports=n("d4af")},c135:function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},c207:function(t,e){},c240:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},c367:function(t,e,n){"use strict";var r=n("8436"),i=n("50ed"),o=n("481b"),a=n("36c3");t.exports=n("30f1")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},c3a1:function(t,e,n){var r=n("e6f3"),i=n("1691");t.exports=Object.keys||function(t){return r(t,i)}},c653:function(t,e,n){var r={"./setting.js":"dc56"};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id="c653"},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},c930:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.yAxisConfig=e.xAxisConfig=void 0;e.xAxisConfig={name:"",show:!0,position:"bottom",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!1,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50};e.yAxisConfig={name:"",show:!0,position:"left",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!0,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50}},c973:function(t,e){function n(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,l,"next",t)}function l(t){n(a,i,o,s,l,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},cc6d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.gaugeConfig=void 0;var r={show:!0,name:"",radius:"60%",center:["50%","50%"],startAngle:-Math.PI/4*5,endAngle:Math.PI/4,min:0,max:100,splitNum:5,arcLineWidth:15,data:[],dataItemStyle:{},axisTick:{show:!0,tickLength:6,style:{stroke:"#999",lineWidth:1}},axisLabel:{show:!0,data:[],formatter:null,labelGap:5,style:{}},pointer:{show:!0,valueIndex:0,style:{scale:[1,1],fill:"#fb7293"}},details:{show:!1,formatter:null,offset:[0,0],valueToFixed:0,position:"center",style:{fontSize:20,fontWeight:"bold",textAlign:"center",textBaseline:"middle"}},backgroundArc:{show:!0,style:{stroke:"#e0e0e0"}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50};e.gaugeConfig=r},ccb9:function(t,e,n){e.f=n("5168")},d0b5:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("448a")),o=r(n("970b")),a=n("53b8"),s=n("5557"),l=function t(e){(0,o.default)(this,t),this.colorProcessor(e);Object.assign(this,{fill:[0,0,0,1],stroke:[0,0,0,0],opacity:1,lineCap:null,lineJoin:null,lineDash:null,lineDashOffset:null,shadowBlur:0,shadowColor:[0,0,0,0],shadowOffsetX:0,shadowOffsetY:0,lineWidth:0,graphCenter:null,scale:null,rotate:null,translate:null,hoverCursor:"pointer",fontStyle:"normal",fontVarient:"normal",fontWeight:"normal",fontSize:10,fontFamily:"Arial",textAlign:"center",textBaseline:"middle",gradientColor:null,gradientType:"linear",gradientParams:null,gradientWith:"stroke",gradientStops:"auto",colors:null},e)};e.default=l,l.prototype.colorProcessor=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e?a.getColorFromRgbValue:a.getRgbaValue,r=["fill","stroke","shadowColor"],i=Object.keys(t),o=i.filter((function(t){return r.find((function(e){return e===t}))}));o.forEach((function(e){return t[e]=n(t[e])}));var s=t.gradientColor,l=t.colors;if(s&&(t.gradientColor=s.map((function(t){return n(t)}))),l){var u=Object.keys(l);u.forEach((function(t){return l[t]=n(l[t])}))}},l.prototype.initStyle=function(t){!function(t,e){t.save();var n=e.graphCenter,r=e.rotate,o=e.scale,a=e.translate;if(!(n instanceof Array))return;t.translate.apply(t,(0,i.default)(n)),r&&t.rotate(r*Math.PI/180);o instanceof Array&&t.scale.apply(t,(0,i.default)(o));a&&t.translate.apply(t,(0,i.default)(a));t.translate(-n[0],-n[1])}(t,this),function(t,e){var n=e.fill,r=e.stroke,o=e.shadowColor,s=e.opacity;u.forEach((function(n){(n||"number"==typeof n)&&(t[n]=e[n])})),n=(0,i.default)(n),r=(0,i.default)(r),o=(0,i.default)(o),n[3]*=s,r[3]*=s,o[3]*=s,t.fillStyle=(0,a.getColorFromRgbValue)(n),t.strokeStyle=(0,a.getColorFromRgbValue)(r),t.shadowColor=(0,a.getColorFromRgbValue)(o);var l=e.lineDash,c=e.shadowBlur;l&&(l=l.map((function(t){return t>=0?t:0})),t.setLineDash(l));"number"==typeof c&&(t.shadowBlur=c>0?c:.001);var h=e.fontStyle,p=e.fontVarient,f=e.fontWeight,d=e.fontSize,g=e.fontFamily;t.font=h+" "+p+" "+f+" "+d+"px "+g}(t,this),function(t,e){if(!function(t){var e=t.gradientColor,n=t.gradientParams,r=t.gradientType,i=t.gradientWith,o=t.gradientStops;if(!e||!n)return!1;if(1===e.length)return console.warn("The gradient needs to provide at least two colors"),!1;if("linear"!==r&&"radial"!==r)return console.warn("GradientType only supports linear or radial, current value is "+r),!1;var a=n.length;if("linear"===r&&4!==a||"radial"===r&&6!==a)return console.warn("The expected length of gradientParams is "+("linear"===r?"4":"6")),!1;if("fill"!==i&&"stroke"!==i)return console.warn("GradientWith only supports fill or stroke, current value is "+i),!1;if("auto"!==o&&!(o instanceof Array))return console.warn("gradientStops only supports 'auto' or Number Array ([0, .5, 1]), current value is "+o),!1;return!0}(e))return;var n=e.gradientColor,r=e.gradientParams,o=e.gradientType,s=e.gradientWith,l=e.gradientStops,u=e.opacity;n=(n=n.map((function(t){var e=t[3]*u,n=(0,i.default)(t);return n[3]=e,n}))).map((function(t){return(0,a.getColorFromRgbValue)(t)})),"auto"===l&&(c=n,h=1/(c.length-1),l=c.map((function(t,e){return h*e})));var c,h;var p=t["create".concat(o.slice(0,1).toUpperCase()+o.slice(1),"Gradient")].apply(t,(0,i.default)(r));l.forEach((function(t,e){return p.addColorStop(t,n[e])})),t["".concat(s,"Style")]=p}(t,this)};var u=["lineCap","lineJoin","lineDashOffset","shadowOffsetX","shadowOffsetY","lineWidth","textAlign","textBaseline"];l.prototype.restoreTransform=function(t){t.restore()},l.prototype.update=function(t){this.colorProcessor(t),Object.assign(this,t)},l.prototype.getStyle=function(){var t=(0,s.deepClone)(this,!0);return this.colorProcessor(t,!0),t}},d4af:function(t,e,n){"use strict";var r=n("8eb7"),i=n("7b3e");function o(t){var e=0,n=0,r=0,i=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=10*e,i=10*n,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||i)&&t.deltaMode&&(1==t.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!e&&(e=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:i}}o.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},t.exports=o},d51b:function(t,e,n){"use strict";var r=function(t){this.value=t},i=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){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=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new i,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,o=null;if(null==i[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e.a=o},d864:function(t,e,n){var r=n("79aa");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},d8d6:function(t,e,n){n("1654"),n("6c1c"),t.exports=n("ccb9").f("iterator")},d9f6:function(t,e,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),a=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},dbdb:function(t,e,n){var r=n("584a"),i=n("e53d"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},dc56:function(t,e,n){"use strict";n.r(e);var r=n("065a");e.default={state:()=>({sbtxSwiper:!0,ssyjSwiper:!0,isScale:!0,defaultOption:{step:4.4,hoverStop:!0,openWatch:!0,direction:1,limitMoveNum:4,singleHeight:0,singleWidth:0,waitTime:3e3},echartsAutoTime:3e6}),getters:{},mutations:{initSwipers(t){let e=JSON.parse(localStorage.getItem("settingData"));if(e&&Object(r.a)(e))for(const n in e)if(t.hasOwnProperty.call(e,n)&&e.hasOwnProperty.call(e,n)){const r=e[n];t[n]=r}},updateSwiper(t,{val:e,type:n}){t[n]=e,localStorage.setItem("settingData",JSON.stringify({sbtxSwiper:t.sbtxSwiper,ssyjSwiper:t.ssyjSwiper,aztpSwiper:t.aztpSwiper,isScale:t.isScale}))}},actions:{}}},df83:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.easeInOutBounce=e.easeOutBounce=e.easeInBounce=e.easeInOutElastic=e.easeOutElastic=e.easeInElastic=e.easeInOutBack=e.easeOutBack=e.easeInBack=e.easeInOutQuint=e.easeOutQuint=e.easeInQuint=e.easeInOutQuart=e.easeOutQuart=e.easeInQuart=e.easeInOutCubic=e.easeOutCubic=e.easeInCubic=e.easeInOutQuad=e.easeOutQuad=e.easeInQuad=e.easeInOutSine=e.easeOutSine=e.easeInSine=e.linear=void 0;var r=[[[0,1],"",[.33,.67]],[[1,0],[.67,.33]]];e.linear=r;var i=[[[0,1]],[[.538,.564],[.169,.912],[.88,.196]],[[1,0]]];e.easeInSine=i;var o=[[[0,1]],[[.444,.448],[.169,.736],[.718,.16]],[[1,0]]];e.easeOutSine=o;var a=[[[0,1]],[[.5,.5],[.2,1],[.8,0]],[[1,0]]];e.easeInOutSine=a;var s=[[[0,1]],[[.55,.584],[.231,.904],[.868,.264]],[[1,0]]];e.easeInQuad=s;var l=[[[0,1]],[[.413,.428],[.065,.816],[.76,.04]],[[1,0]]];e.easeOutQuad=l;var u=[[[0,1]],[[.5,.5],[.3,.9],[.7,.1]],[[1,0]]];e.easeInOutQuad=u;var c=[[[0,1]],[[.679,.688],[.366,.992],[.992,.384]],[[1,0]]];e.easeInCubic=c;var h=[[[0,1]],[[.321,.312],[.008,.616],[.634,.008]],[[1,0]]];e.easeOutCubic=h;var p=[[[0,1]],[[.5,.5],[.3,1],[.7,0]],[[1,0]]];e.easeInOutCubic=p;var f=[[[0,1]],[[.812,.74],[.611,.988],[1.013,.492]],[[1,0]]];e.easeInQuart=f;var d=[[[0,1]],[[.152,.244],[.001,.448],[.285,-.02]],[[1,0]]];e.easeOutQuart=d;var g=[[[0,1]],[[.5,.5],[.4,1],[.6,0]],[[1,0]]];e.easeInOutQuart=g;var v=[[[0,1]],[[.857,.856],[.714,1],[1,.712]],[[1,0]]];e.easeInQuint=v;var y=[[[0,1]],[[.108,.2],[.001,.4],[.214,-.012]],[[1,0]]];e.easeOutQuint=y;var m=[[[0,1]],[[.5,.5],[.5,1],[.5,0]],[[1,0]]];e.easeInOutQuint=m;var b=[[[0,1]],[[.667,.896],[.38,1.184],[.955,.616]],[[1,0]]];e.easeInBack=b;var x=[[[0,1]],[[.335,.028],[.061,.22],[.631,-.18]],[[1,0]]];e.easeOutBack=x;var _=[[[0,1]],[[.5,.5],[.4,1.4],[.6,-.4]],[[1,0]]];e.easeInOutBack=_;var w=[[[0,1]],[[.474,.964],[.382,.988],[.557,.952]],[[.619,1.076],[.565,1.088],[.669,1.08]],[[.77,.916],[.712,.924],[.847,.904]],[[.911,1.304],[.872,1.316],[.961,1.34]],[[1,0]]];e.easeInElastic=w;var S=[[[0,1]],[[.073,-.32],[.034,-.328],[.104,-.344]],[[.191,.092],[.11,.06],[.256,.08]],[[.31,-.076],[.26,-.068],[.357,-.076]],[[.432,.032],[.362,.028],[.683,-.004]],[[1,0]]];e.easeOutElastic=S;var M=[[[0,1]],[[.21,.94],[.167,.884],[.252,.98]],[[.299,1.104],[.256,1.092],[.347,1.108]],[[.5,.496],[.451,.672],[.548,.324]],[[.696,-.108],[.652,-.112],[.741,-.124]],[[.805,.064],[.756,.012],[.866,.096]],[[1,0]]];e.easeInOutElastic=M;var O=[[[0,1]],[[.148,1],[.075,.868],[.193,.848]],[[.326,1],[.276,.836],[.405,.712]],[[.6,1],[.511,.708],[.671,.348]],[[1,0]]];e.easeInBounce=O;var C=[[[0,1]],[[.357,.004],[.27,.592],[.376,.252]],[[.604,-.004],[.548,.312],[.669,.184]],[[.82,0],[.749,.184],[.905,.132]],[[1,0]]];e.easeOutBounce=C;var I=[[[0,1]],[[.102,1],[.05,.864],[.117,.86]],[[.216,.996],[.208,.844],[.227,.808]],[[.347,.996],[.343,.8],[.48,.292]],[[.635,.004],[.511,.676],[.656,.208]],[[.787,0],[.76,.2],[.795,.144]],[[.905,-.004],[.899,.164],[.944,.144]],[[1,0]]];e.easeInOutBounce=I;var k=new Map([["linear",r],["easeInSine",i],["easeOutSine",o],["easeInOutSine",a],["easeInQuad",s],["easeOutQuad",l],["easeInOutQuad",u],["easeInCubic",c],["easeOutCubic",h],["easeInOutCubic",p],["easeInQuart",f],["easeOutQuart",d],["easeInOutQuart",g],["easeInQuint",v],["easeOutQuint",y],["easeInOutQuint",m],["easeInBack",b],["easeOutBack",x],["easeInOutBack",_],["easeInElastic",w],["easeOutElastic",S],["easeInOutElastic",M],["easeInBounce",O],["easeOutBounce",C],["easeInOutBounce",I]]);e.default=k},e118:function(t,e,n){"use strict";n("75ee")},e169:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.drawPolylinePath=o,e.drawBezierCurvePath=a,e.default=void 0;var i=r(n("448a"));function o(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t||e.length<2)return!1;n&&t.beginPath(),e.forEach((function(e,n){return e&&(0===n?t.moveTo.apply(t,(0,i.default)(e)):t.lineTo.apply(t,(0,i.default)(e)))})),r&&t.closePath()}function a(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!t||!e)return!1;r&&t.beginPath(),n&&t.moveTo.apply(t,(0,i.default)(n)),e.forEach((function(e){return e&&t.bezierCurveTo.apply(t,(0,i.default)(e[0]).concat((0,i.default)(e[1]),(0,i.default)(e[2])))})),o&&t.closePath()}var s={drawPolylinePath:o,drawBezierCurvePath:a};e.default=s},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e4ae:function(t,e,n){var r=n("f772");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(t,e,n){var r=n("07e3"),i=n("36c3"),o=n("5b4e")(!1),a=n("5559")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>l;)r(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},eb53:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("a34a")),o=r(n("c973")),a=r(n("7037")),s=r(n("448a")),l=r(n("970b")),u=r(n("d0b5")),c=r(n("8f47")),h=n("5557"),p=function t(e,n){(0,l.default)(this,t);var r={visible:!0,drag:!1,hover:!1,index:1,animationDelay:0,animationFrame:30,animationCurve:"linear",animationPause:!1,hoverRect:null,mouseEnter:null,mouseOuter:null,click:null};(n=(0,h.deepClone)(n,!0)).shape||(n.shape={}),n.style||(n.style={});var i=Object.assign({},e.shape,n.shape);Object.assign(r,n,{status:"static",animationRoot:[],animationKeys:[],animationFrameState:[],cache:{}}),Object.assign(this,e,r),this.shape=i,this.style=new u.default(n.style),this.addedProcessor()};function f(t){return new Promise((function(e){setTimeout(e,t)}))}e.default=p,p.prototype.addedProcessor=function(){"function"==typeof this.setGraphCenter&&this.setGraphCenter(null,this),"function"==typeof this.added&&this.added(this)},p.prototype.drawProcessor=function(t,e){var n=t.ctx;e.style.initStyle(n),"function"==typeof this.beforeDraw&&this.beforeDraw(this,t),e.draw(t,e),"function"==typeof this.drawed&&this.drawed(this,t),e.style.restoreTransform(n)},p.prototype.hoverCheckProcessor=function(t,e){var n=e.hoverRect,r=e.style,i=e.hoverCheck,o=r.graphCenter,a=r.rotate,l=r.scale,u=r.translate;return o&&(a&&(t=(0,h.getRotatePointPos)(-a,t,o)),l&&(t=(0,h.getScalePointPos)(l.map((function(t){return 1/t})),t,o)),u&&(t=(0,h.getTranslatePointPos)(u.map((function(t){return-1*t})),t))),n?h.checkPointIsInRect.apply(void 0,[t].concat((0,s.default)(n))):i(t,this)},p.prototype.moveProcessor=function(t){this.move(t,this),"function"==typeof this.beforeMove&&this.beforeMove(t,this),"function"==typeof this.setGraphCenter&&this.setGraphCenter(t,this),"function"==typeof this.moved&&this.moved(t,this)},p.prototype.attr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!t||void 0===e)return!1;var n="object"===(0,a.default)(this[t]);n&&(e=(0,h.deepClone)(e,!0));var r=this.render;"style"===t?this.style.update(e):n?Object.assign(this[t],e):this[t]=e,"index"===t&&r.sortGraphsByIndex(),r.drawAllGraph()},p.prototype.animation=function(){var t=(0,o.default)(i.default.mark((function t(e,n){var r,a,s,l,u,p,d,g,v,y=arguments;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=y.length>2&&void 0!==y[2]&&y[2],"shape"===e||"style"===e){t.next=4;break}return console.error("Only supported shape and style animation!"),t.abrupt("return");case 4:if(n=(0,h.deepClone)(n,!0),"style"===e&&this.style.colorProcessor(n),a=this[e],s=Object.keys(n),l={},s.forEach((function(t){return l[t]=a[t]})),u=this.animationFrame,p=this.animationCurve,d=this.animationDelay,g=(0,c.default)(p,l,n,u,!0),this.animationRoot.push(a),this.animationKeys.push(s),this.animationFrameState.push(g),!r){t.next=17;break}return t.abrupt("return");case 17:if(!(d>0)){t.next=20;break}return t.next=20,f(d);case 20:return v=this.render,t.abrupt("return",new Promise(function(){var t=(0,o.default)(i.default.mark((function t(e){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v.launchAnimation();case 2:e();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 22:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}(),p.prototype.turnNextAnimationFrame=function(t){var e=this.animationDelay,n=this.animationRoot,r=this.animationKeys,i=this.animationFrameState;this.animationPause||Date.now()-t<e||(n.forEach((function(t,e){r[e].forEach((function(n){t[n]=i[e][0][n]}))})),i.forEach((function(t,e){t.shift();var i=0===t.length;i&&(n[e]=null),i&&(r[e]=null)})),this.animationFrameState=i.filter((function(t){return t.length})),this.animationRoot=n.filter((function(t){return t})),this.animationKeys=r.filter((function(t){return t})))},p.prototype.animationEnd=function(){var t=this.animationFrameState,e=this.animationKeys,n=this.animationRoot,r=this.render;return n.forEach((function(n,r){var i=e[r],o=t[r].pop();i.forEach((function(t){return n[t]=o[t]}))})),this.animationFrameState=[],this.animationKeys=[],this.animationRoot=[],r.drawAllGraph()},p.prototype.pauseAnimation=function(){this.attr("animationPause",!0)},p.prototype.playAnimation=function(){var t=this.render;return this.attr("animationPause",!1),new Promise(function(){var e=(0,o.default)(i.default.mark((function e(n){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.launchAnimation();case 2:n();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},p.prototype.delProcessor=function(t){var e=this,n=t.graphs,r=n.findIndex((function(t){return t===e}));-1!==r&&("function"==typeof this.beforeDelete&&this.beforeDelete(this),n.splice(r,1,null),"function"==typeof this.deleted&&this.deleted(this))}},ebfd:function(t,e,n){var r=n("62a0")("meta"),i=n("f772"),o=n("07e3"),a=n("d9f6").f,s=0,l=Object.isExtensible||function(){return!0},u=!n("294c")((function(){return l(Object.preventExtensions({}))})),c=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},h=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[r].w},onFreeze:function(t){return u&&h.NEED&&l(t)&&!o(t,r)&&c(t),t}}},f111:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.barConfig=void 0;e.barConfig={show:!0,name:"",stack:"",shapeType:"normal",echelonOffset:10,barWidth:"auto",barGap:"30%",barCategoryGap:"20%",xAxisIndex:0,yAxisIndex:0,data:[],backgroundBar:{show:!1,width:"auto",style:{fill:"rgba(200, 200, 200, .4)"}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},gradient:{color:[],local:!0},barStyle:{},independentColor:!1,independentColors:[],rLevel:0,animationCurve:"easeOutCubic",animationFrame:50}},f3cb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.colorConfig=void 0;e.colorConfig=["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293","#e062ae","#e690d1","#e7bcf3","#9d96f5","#8378ea","#96bfff"]},f772:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},f893:function(t,e,n){t.exports={default:n("f921"),__esModule:!0}},f921:function(t,e,n){n("014b"),n("c207"),n("69d3"),n("765d"),t.exports=n("584a").Symbol}});
|