1/*! For license information please see 1373.dbaa05e0.chunk.js.LICENSE.txt */ 2(self.webpackChunkmarketingauto=self.webpackChunkmarketingauto||[]).push([[1373],{14281:function(t,e,n){"use strict";var r=n(64836);e.Z=void 0;var i=r(n(45045)),o=n(46417),a=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6zm0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20z"}),"AccountCircle");e.Z=a},4613:function(t,e,n){"use strict";var r=n(64836);e.Z=void 0;var i=r(n(45045)),o=n(46417),a=(0,i.default)((0,o.jsx)("path",{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1z"}),"CallOutlined");e.Z=a},66944:function(t,e,n){"use strict";var r=n(64836);e.Z=void 0;var i=r(n(45045)),o=n(46417),a=(0,i.default)((0,o.jsx)("path",{d:"M22 3H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm3.85-4h1.64L21 16l-1.99 1.99c-1.31-.98-2.28-2.38-2.73-3.99-.18-.64-.28-1.31-.28-2s.1-1.36.28-2c.45-1.62 1.42-3.01 2.73-3.99L21 8l-1.51 2h-1.64c-.22.63-.35 1.3-.35 2s.13 1.37.35 2z"}),"ContactPhone");e.Z=a},11689:function(t,e,n){"use strict";var r=n(64836);e.Z=void 0;var i=r(n(45045)),o=n(46417),a=(0,i.default)((0,o.jsx)("path",{d:"M3 11h8V3H3v8zm2-6h4v4H5V5zm8-2v8h8V3h-8zm6 6h-4V5h4v4zM3 21h8v-8H3v8zm2-6h4v4H5v-4zm13-2h-2v3h-3v2h3v3h2v-3h3v-2h-3z"}),"DashboardCustomizeOutlined");e.Z=a},12608:function(t,e,n){"use strict";var r=n(64836);e.Z=void 0;var i=r(n(45045)),o=n(46417),a=(0,i.default)((0,o.jsx)("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"}),"DescriptionOutlined");e.Z=a},62146:function(t,e,n){"use strict";var r=n(64836);e.Z=void 0;var i=r(n(45045)),o=n(46417),a=(0,i.default)([(0,o.jsx)("path",{d:"M2.5 17.97c-.48.28-.64.89-.37 1.37s.89.64 1.37.37c.48-.28.64-.89.37-1.37s-.89-.65-1.37-.37zm19 0c-.48-.28-1.09-.11-1.37.37s-.11 1.09.37 1.37 1.09.11 1.37-.37.11-1.1-.37-1.37z",opacity:".3"},"0"),(0,o.jsx)("circle",{cx:"12",cy:"4",r:"1",opacity:".3"},"1"),(0,o.jsx)("path",{d:"m10.1 15.9 1.42-1.42C8.79 12.05 7 10.41 7 8.85 7 7.8 7.8 7 8.85 7c1.11 0 1.54.65 2.68 2h.93c1.12-1.31 1.53-2 2.68-2 .87 0 1.55.54 1.77 1.32.35-.04.68-.06 1-.06.36 0 .7.03 1.03.08C18.7 6.43 17.13 5 15.15 5c-.12 0-.23.03-.35.04.12-.33.2-.67.2-1.04 0-1.66-1.34-3-3-3S9 2.34 9 4c0 .37.08.71.2 1.04-.12-.01-.23-.04-.35-.04C6.69 5 5 6.69 5 8.85c0 2.42 2.04 4.31 5.1 7.05zM12 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"2"),(0,o.jsx)("path",{d:"M22.5 16.24c-.32-.18-.66-.29-1-.35.07-.1.15-.18.21-.28 1.08-1.87.46-4.18-1.41-5.26-2.09-1.21-4.76-.39-8.65.9l.52 1.94c3.47-1.14 5.79-1.88 7.14-1.1.91.53 1.2 1.61.68 2.53-.56.96-1.33 1-3.07 1.32l-.47.81c.58 1.62.97 2.33.39 3.32-.53.91-1.61 1.2-2.53.68-.06-.03-.11-.09-.17-.13-.3.67-.64 1.24-1.03 1.73.07.04.13.09.2.14 1.87 1.08 4.18.46 5.26-1.41.06-.1.09-.21.14-.32.22.27.48.51.8.69 1.43.83 3.27.34 4.1-1.1s.32-3.29-1.11-4.11zm-.63 3.09c-.28.48-.89.64-1.37.37-.48-.28-.64-.89-.37-1.37s.89-.64 1.37-.37c.48.28.64.9.37 1.37z"},"3"),(0,o.jsx)("path",{d:"M12.32 14.01c-.74 3.58-1.27 5.95-2.62 6.73-.91.53-2 .24-2.53-.68-.56-.96-.2-1.66.39-3.32l-.46-.81c-1.7-.31-2.5-.33-3.07-1.32-.53-.91-.24-2 .68-2.53.09-.05.19-.08.29-.11-.35-.56-.64-1.17-.82-1.85-.16.07-.32.14-.48.23-1.87 1.08-2.49 3.39-1.41 5.26.06.1.14.18.21.28-.34.06-.68.17-1 .35-1.43.83-1.93 2.66-1.1 4.1s2.66 1.93 4.1 1.1c.32-.18.58-.42.8-.69.05.11.08.22.14.32 1.08 1.87 3.39 2.49 5.26 1.41 2.09-1.21 2.71-3.93 3.55-7.94l-1.93-.53zM3.5 19.7c-.48.28-1.09.11-1.37-.37s-.11-1.09.37-1.37 1.09-.11 1.37.37.11 1.09-.37 1.37z"},"4")],"Diversity2TwoTone");e.Z=a},29428:function(t,e,n){"use strict";var r=n(64836);e.Z=void 0;var i=r(n(45045)),o=n(46417),a=(0,i.default)((0,o.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");e.Z=a},3665:function(t,e,n){"use strict";var r=n(64836);e.Z=void 0;var i=r(n(45045)),o=n(46417),a=(0,i.default)((0,o.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58
2L18 14l-6-6-6 6z"}),"KeyboardArrowUp");e.Z=a},5842:function(t,e,n){"use strict";var r=n(64836);e.Z=void 0;var i=r(n(45045)),o=n(46417),a=(0,i.default)((0,o.jsx)("path",{d:"M7.5 21H2V9h5.5v12zm7.25-18h-5.5v18h5.5V3zM22 11h-5.5v10H22V11z"}),"Leaderboard");e.Z=a},38398:function(t,e,n){"use strict";var r=n(64836);e.Z=void 0;var i=r(n(45045)),o=n(46417),a=(0,i.default)((0,o.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHorizOutlined");e.Z=a},51604:function(t,e,n){"use strict";var r=n(64836);e.Z=void 0;var i=r(n(45045)),o=n(46417),a=(0,i.default)((0,o.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11zm-9.18-6.95L7.4 14.46 10.94 18l5.66-5.66-1.41-1.41-4.24 4.24-2.13-2.12z"}),"TaskOutlined");e.Z=a},74268:function(t,e,n){"use strict";n.d(e,{Z:function(){return P}});var r=n(4942),i=n(63366),o=n(87462),a=n(47313),s=n(94146),l=n(21921),u=n(17551),c=n(97423),h=n(77342),p=n(54750),f=n(46417),d=(0,p.Z)((0,f.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),g=(0,p.Z)((0,f.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),y=n(17592),v=(0,y.ZP)("span")({position:"relative",display:"flex"}),m=(0,y.ZP)(d)({transform:"scale(1)"}),x=(0,y.ZP)(g)((function(t){var e=t.theme,n=t.ownerState;return(0,o.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},n.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})}));var b=function(t){var e=t.checked,n=void 0!==e&&e,r=t.classes,i=void 0===r?{}:r,a=t.fontSize,s=(0,o.Z)({},t,{checked:n});return(0,f.jsxs)(v,{className:i.root,ownerState:s,children:[(0,f.jsx)(m,{fontSize:a,className:i.background,ownerState:s}),(0,f.jsx)(x,{fontSize:a,className:i.dot,ownerState:s})]})},_=n(91615),w=n(85038),S=n(64987);var M=n(77430),I=n(32298);function T(t){return(0,I.Z)("MuiRadio",t)}var A=(0,M.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),C=["checked","checkedIcon","color","icon","name","onChange","size","className"],k=(0,y.ZP)(c.Z,{shouldForwardProp:function(t){return(0,y.FO)(t)||"classes"===t},name:"MuiRadio",slot:"Root",overridesResolver:function(t,e){var n=t.ownerState;return[e.root,e["color".concat((0,_.Z)(n.color))]]}})((function(t){var e=t.theme,n=t.ownerState;return(0,o.Z)({color:(e.vars||e).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:e.vars?"rgba(".concat("default"===n.color?e.vars.palette.action.activeChannel:e.vars.palette[n.color].mainChannel," / ").concat(e.vars.palette.action.hoverOpacity,")"):(0,u.Fq)("default"===n.color?e.palette.action.active:e.palette[n.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&(0,r.Z)({},"&.".concat(A.checked),{color:(e.vars||e).palette[n.color].main}),(0,r.Z)({},"&.".concat(A.disabled),{color:(e.vars||e).palette.action.disabled}))}));var O=(0,f.jsx)(b,{checked:!0}),D=(0,f.jsx)(b,{}),P=a.forwardRef((function(t,e){var n,r,u,c,p=(0,h.Z)({props:t,name:"MuiRadio"}),d=p.checked,g=p.checkedIcon,y=void 0===g?O:g,v=p.color,m=void 0===v?"primary":v,x=p.icon,b=void 0===x?D:x,M=p.name,I=p.onChange,A=p.size,P=void 0===A?"medium":A,L=p.className,E=(0,i.Z)(p,C),N=(0,o.Z)({},p,{color:m,size:P}),R=function(t){var e=t.classes,n=t.color,r=t.size,i={root:["root","color".concat((0,_.Z)(n)),"medium"!==r&&"size".concat((0,_.Z)(r))]};return(0,o.Z)({},e,(0,l.Z)(i,T,e))}(N),z=a.useContext(S.Z),j=d,B=(0,w.Z)(I,z&&z.onChange),V=M;return z&&("undefined"===typeof j&&(u=z.value,j="object"===typeof(c=
2p.value)&&null!==c?u===c:String(u)===String(c)),"undefined"===typeof V&&(V=z.name)),(0,f.jsx)(k,(0,o.Z)({type:"radio",icon:a.cloneElement(b,{fontSize:null!=(n=D.props.fontSize)?n:P}),checkedIcon:a.cloneElement(y,{fontSize:null!=(r=O.props.fontSize)?r:P}),ownerState:N,classes:R,name:V,checked:j,onChange:B,ref:e,className:(0,s.Z)(R.root,L)},E))}))},55685:function(t,e,n){"use strict";n.d(e,{Z:function(){return I}});var r=n(29439),i=n(87462),o=n(63366),a=n(47313),s=n(94146),l=n(21921),u=n(17592),c=n(77342),h=n(77430),p=n(32298);function f(t){return(0,p.Z)("MuiFormGroup",t)}(0,h.Z)("MuiFormGroup",["root","row","error"]);var d=n(99008),g=n(80300),y=n(46417),v=["className","row"],m=(0,u.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:function(t,e){var n=t.ownerState;return[e.root,n.row&&e.row]}})((function(t){var e=t.ownerState;return(0,i.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})})),x=a.forwardRef((function(t,e){var n=(0,c.Z)({props:t,name:"MuiFormGroup"}),r=n.className,a=n.row,u=void 0!==a&&a,h=(0,o.Z)(n,v),p=(0,d.Z)(),x=(0,g.Z)({props:n,muiFormControl:p,states:["error"]}),b=(0,i.Z)({},n,{row:u,error:x.error}),_=function(t){var e=t.classes,n={root:["root",t.row&&"row",t.error&&"error"]};return(0,l.Z)(n,f,e)}(b);return(0,y.jsx)(m,(0,i.Z)({className:(0,s.Z)(_.root,r),ownerState:b,ref:e},h))})),b=n(86983),_=n(53800),w=n(64987),S=n(17677),M=["actions","children","defaultValue","name","onChange","value"],I=a.forwardRef((function(t,e){var n=t.actions,s=t.children,l=t.defaultValue,u=t.name,c=t.onChange,h=t.value,p=(0,o.Z)(t,M),f=a.useRef(null),d=(0,_.Z)({controlled:h,default:l,name:"RadioGroup"}),g=(0,r.Z)(d,2),v=g[0],m=g[1];a.useImperativeHandle(n,(function(){return{focus:function(){var t=f.current.querySelector("input:not(:disabled):checked");t||(t=f.current.querySelector("input:not(:disabled)")),t&&t.focus()}}}),[]);var I=(0,b.Z)(e,f),T=(0,S.Z)(u),A=a.useMemo((function(){return{name:T,onChange:function(t){m(t.target.value),c&&c(t,t.target.value)},value:v}}),[T,c,m,v]);return(0,y.jsx)(w.Z.Provider,{value:A,children:(0,y.jsx)(x,(0,i.Z)({role:"radiogroup",ref:I},p,{children:s}))})}))},64987:function(t,e,n){"use strict";var r=n(47313).createContext(void 0);e.Z=r},86258:function(t){var e={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};t.exports=function(t,n,r,i){if(!e.hasOwnProperty(r))throw new Error("Cannot convert to "+r);if(!e[r].hasOwnProperty(n))throw new Error("Cannot convert from "+n+" to "+r);var o=e[r][n]*t;return!1!==i?(i=Math.pow(10,parseInt(i)||5),Math.round(o*i)/i):o}},61759:function(t,e,n){var r;!function(i){"use strict";var o,a=1e9,s={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},l=!0,u="[DecimalError] ",c=u+"Invalid argument: ",h=u+"Exponent out of range: ",p=Math.floor,f=Math.pow,d=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,g=1e7,y=7,v=9007199254740991,m=p(v/y),x={};function b(t,e){var n,r,i,o,a,s,u,c,h=t.constructor,p=h.precision;if(!t.s||!e.s)return e.s||(e=new h(t)),l?O(e,p):e;if(u=t.d,c=e.d,a=t.e,i=e.e,u=u.slice(),o=a-i){for(o<0?(r=u,o=-o,s=c.length):(r=c,i=a,s=u.length),o>(s=(a=Math.ceil(p/y))>s?a+1:s+1)&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((s=u.length)-(o=c.length)<0&&(o=s,r=c,c=u,u=r),n=0;o;)n=(u[--o]=u[o]+c[o]+n)/g|0,u[o]%=g;for(n&&(u.unshift(n),++i),s=u.length;0==u[--s];)u.pop();return e.d=u,e.e=i,l?O(e,p):e}function _(t,e,n){if(t!==~~t||t<e||t>n)throw Error(c+t)}function w(t){var e,n,r,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)r=t[e]+"",(n=y-r.length)&&(o+=A(n)),o+=r;a=t[e],(n=y-(r=a+"").length)&&(o+=A(n))}else if(0===a)return"0";for(;a%10===0;)a/=10;return o+a}x.absoluteValue=x.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},x.comparedTo=x.cmp=function(t){var e,n,r,i,o=this;if(t=new o.constructor(t),o.s!==t.s)return o.s||-t.s;if(o.e!==t.e)return o.e>t.e^o.s<0?1:-1;for(e=0,n=(r=o.d.length)<(i=t.d.length)?r:i;e<n;++e)if(o.d[e]!==t.d[e])return o.d[e]>t.d[e]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},x.decimalPlaces=x.dp=function(){var t=this,e=t.d.length-1,n=(e-t.e)*y;if(e=t.d[e])for(;e%10==0;e/=10)n--;return n<0?0:n},x.dividedBy=x.div=function(t){return S(this,new this.constructor(t))},x.dividedToIntegerBy=x.idiv=function(t){var e=this.constructor;return O(S(this,new e(t),0,1),e.precision)},x.equals=x.eq=function(t){return!this.cmp(t)},x.exponent=function(){return I(this)},x.greaterThan=x.gt=function(t){return this.cmp(t)>0},x.greaterThanOrEqualTo=x.gte=function(t){return this.cmp(t)>=0},x.isInteger=x.isint=function(){return this.e>this.d.length-2},x.isNegative=x.isneg=function(){return this.s<0},x.isPositive=x.ispos=function(){return this.s>0},x.isZero=function(){return 0===this.s},x.lessThan=x.lt=function(t){return this.cmp(t)<0},x.lessThanOrEqualTo=x.lte=function(t){return this.cmp(t)<1},x.logarithm=x.log=function(t){var e,n=this,r=n.constructor,i=r.precision,a=i+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(o))throw Error(u+"NaN");if(n.s<1)throw Error(u+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(l=!1,e=S(C(n,a),C(t,a),a),l=!0,O(e,i))},x.minus=x.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?D(e,t):b(e,(t.s=-t.s,t))},x.modulo=x.mod=function(t){var e,n=this,r=n.constructor,i=r.precision;if(!(t=new r(t)).s)throw Error(u+"NaN");return n.s?(l=!1,e=S(n,t,0,1).times(t),l=!0,n.minus(e)):O(new r(n),i)},x.naturalExponential=x.exp=function(){return M(this)},x.naturalLogarithm=x.ln=function(){return C(this)},x.negated=x.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},x.plus=x.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?b(e,t):D(e,(t.s=-t.s,t))},x.precision=x.sd=function(t){var e,n,r,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(c+t);
vendor: 12,522 bytes, line 2
2if(e=I(i)+1,n=(r=i.d.length-1)*y+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},x.squareRoot=x.sqrt=function(){var t,e,n,r,i,o,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(u+"NaN")}for(t=I(s),l=!1,0==(i=Math.sqrt(+s))||i==1/0?(((e=w(s.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=p((t+1)/2)-(t<0||t%2),r=new c(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):r=new c(i.toString()),i=a=(n=c.precision)+3;;)if(r=(o=r).plus(S(s,o,a+2)).times(.5),w(o.d).slice(0,a)===(e=w(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(O(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if("9999"!=e)break;a+=4}return l=!0,O(r,n)},x.times=x.mul=function(t){var e,n,r,i,o,a,s,u,c,h=this,p=h.constructor,f=h.d,d=(t=new p(t)).d;if(!h.s||!t.s)return new p(0);for(t.s*=h.s,n=h.e+t.e,(u=f.length)<(c=d.length)&&(o=f,f=d,d=o,a=u,u=c,c=a),o=[],r=a=u+c;r--;)o.push(0);for(r=c;--r>=0;){for(e=0,i=u+r;i>r;)s=o[i]+d[r]*f[i-r-1]+e,o[i--]=s%g|0,e=s/g|0;o[i]=(o[i]+e)%g|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=n,l?O(t,p.precision):t},x.toDecimalPlaces=x.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(_(t,0,a),void 0===e?e=r.rounding:_(e,0,8),O(n,t+I(n)+1,e))},x.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=P(r,!0):(_(t,0,a),void 0===e?e=i.rounding:_(e,0,8),n=P(r=O(new i(r),t+1,e),!0,t+1)),n},x.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?P(i):(_(t,0,a),void 0===e?e=o.rounding:_(e,0,8),n=P((r=O(new o(i),t+I(i)+1,e)).abs(),!1,t+I(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},x.toInteger=x.toint=function(){var t=this,e=t.constructor;return O(new e(t),I(t)+1,e.rounding)},x.toNumber=function(){return+this},x.toPower=x.pow=function(t){var e,n,r,i,a,s,c=this,h=c.constructor,f=+(t=new h(t));if(!t.s)return new h(o);if(!(c=new h(c)).s){if(t.s<1)throw Error(u+"Infinity");return c}if(c.eq(o))return c;if(r=h.precision,t.eq(o))return O(c,r);if(s=(e=t.e)>=(n=t.d.length-1),a=c.s,s){if((n=f<0?-f:f)<=v){for(i=new h(o),e=Math.ceil(r/y+4),l=!1;n%2&&L((i=i.times(c)).d,e),0!==(n=p(n/2));)L((c=c.times(c)).d,e);return l=!0,t.s<0?new h(o).div(i):O(i,r)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&t.d[Math.max(e,n)]?-1:1,c.s=1,l=!1,i=t.times(C(c,r+12)),l=!0,(i=M(i)).s=a,i},x.toPrecision=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?r=P(i,(n=I(i))<=o.toExpNeg||n>=o.toExpPos):(_(t,1,a),void 0===e?e=o.rounding:_(e,0,8),r=P(i=O(new o(i),t,e),t<=(n=I(i))||n<=o.toExpNeg,t)),r},x.toSignificantDigits=x.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(_(t,1,a),void 0===e?e=n.rounding:_(e,0,8)),O(new n(this),t,e)},x.toString=x.valueOf=x.val=x.toJSON=function(){var t=this,e=I(t),n=t.constructor;return P(t,e<=n.toExpNeg||e>=n.toExpPos)};var S=function(){function t(t,e){var n,r=0,i=t.length;for(t=t.slice();i--;)n=t[i]*e+r,t[i]=n%g|0,r=n/g|0;return r&&t.unshift(r),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*g+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,i,o,a){var s,l,c,h,p,f,d,v,m,x,b,_,w,S,M,T,A,C,k=r.constructor,D=r.s==i.s?1:-1,P=r.d,L=i.d;if(!r.s)return new k(r);if(!i.s)throw Error(u+"Division by zero");for(l=r.e-i.e,A=L.length,M=P.length,v=(d=new k(D)).d=[],c=0;L[c]==(P[c]||0);)++c;if(L[c]>(P[c]||0)&&--l,(_=null==o?o=k.precision:a?o+(I(r)-I(i))+1:o)<0)return new k(0);if(_=_/y+2|0,c=0,1==A)for(h=0,L=L[0],_++;(c<M||h)&&_--;c++)w=h*g+(P[c]||0),v[c]=w/L|0,h=w%L|0;else{for((h=g/(L[0]+1)|0)>1&&(L=t(L,h),P=t(P,h),A=L.length,M=P.length),S=A,x=(m=P.slice(0,A)).length;x<A;)m[x++]=0;(C=L.slice()).unshift(0),T=L[0],L[1]>=g/2&&++T;do{h=0,(s=e(L,m,A,x))<0?(b=m[0],A!=x&&(b=b*g+(m[1]||0)),(h=b/T|0)>1?(h>=g&&(h=g-1),1==(s=e(p=t(L,h),m,f=p.length,x=m.length))&&(h--,n(p,A<f?C:L,f))):(0==h&&(s=h=1),p=L.slice()),(f=p.length)<x&&p.unshift(0),n(m,p,x),-1==s&&(s=e(L,m,A,x=m.length))<1&&(h++,n(m,A<x?C:L,x)),x=m.length):0===s&&(h++,m=[0]),v[c++]=h,s&&m[0]?m[x++]=P[S]||0:(m=[P[S]],x=1)}while((S++<M||void 0!==m[0])&&_--)}return v[0]||v.shift(),d.e=l,O(d,a?o+I(d)+1:o)}}();function M(t,e){var n,r,i,a,s,u=0,c=0,p=t.constructor,d=p.precision;if(I(t)>16)throw Error(h+I(t));if(!t.s)return new p(o);for(null==e?(l=!1,s=d):s=e,a=new p(.03125);t.abs().gte(.1);)t=t.times(a),c+=5;for(s+=Math.log(f(2,c))/Math.LN10*2+5|0,n=r=i=new p(o),p.precision=s;;){if(r=O(r.times(t),s),n=n.times(++u),w((a=i.plus(S(r,n,s))).d).slice(0,s)===w(i.d).slice(0,s)){for(;c--;)i=O(i.times(i),s);return p.precision=d,null==e?(l=!0,O(i,d)):i}i=a}}function I(t){for(var e=t.e*y,n=t.d[0];n>=10;n/=10)e++;return e}function T(t,e,n){if(e>t.LN10.sd())throw l=!0,n&&(t.precision=n),Error(u+"LN10 precision limit exceeded");return O(new t(t.LN10),e)}function A(t){for(var e="";t--;)e+="0";return e}function C(t,e){var n,r,i,a,s,c,h,p,f,d=1,g=t,y=g.d,v=g.constructor,m=v.precision;if(g.s<1)throw Error(u+(g.s?"NaN":"-Infinity"));if(g.eq(o))return new v(0);if(null==e?(l=!1,p=m):p=e,g.eq(10))return null==e&&(l=!0),T(v,p);if(p+=10,v.precision=p,r=(n=w(y)).charAt(0),a=I(g),!(Math.abs(a)<15e14))return h=T(v,p+2,m).times(a+""),g=C(new v(r+"."+n.slice(1)),p-10).plus(h),v.precision=m,null==e?(l=!0,O(g,m)):g;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=w((g=g.times(t)).d)).charAt(0),d++;for(a=I(g),r>1?(g=new v("0."+n),a++):g=new v(r+"."+n.slice(1)),c=s=g=S(g.minus(o),g.plus(o),p),f=O(g.times(g),p),i=3;;){if(s=O(s.times(f),p),w((h=c.plus(S(s,new v(i),p))).d).slice(0,p)===w(c.d).slice(0,p))return c=c.times(2),0!==a&&(c=c.plus(T(v,p+2,m).times(a+""))),c=S(c,new v(d),p),v.precision=m,null==e?(l=!0,O(c,m)):c;c=h,i+=2}}function k(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(r,i)){if(i-=r,n=n-r-1,t.e=p(n/y),t.d=[],r=(n+1)%y,n<0&&(r+=y),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=y;r<i;)t.d.push(+e.slice(r,r+=y));e=e.slice(r),r=y-e.length}else r-=i;for(;r--;)e+="0";if(t.d.push(+e),l&&(t.e>m||t.e<-m))throw Error(h+n)}else t.s=0,t.e=0,t.d=[0];return t}function O(t,e,n){var r,i,o,a,s,u,c,d,v=t.d;for(a=1,o=v[0];o>=10;o/=10)a++;if((r=e-a)<0)r+=y,i=e,c=v[d=0];else{if((d=Math.ceil((r+1)/y))>=(o=v.length))return t;for(c=o=v[d],a=1;o>=10;o/=10)a++;i=(r%=y)-y+a}if(void 0!==n&&(s=c/(o=f(10,a-i-1))%10|0,u=e<0||void 0!==v[d+1]||c%o,u=n<4?(s||u)&&(0==n||n==(t.s<0?3:2)):s>5||5==s&&(4==n||u||6==n&&(r>0?i>0?c/f(10,a-i):0:v[d-1])%10&1||n==(t.s<0?8:7))),e<1||!v[0])return u?(o=I(t),v.length=1,e=e-o-1,v[0]=f(10,(y-e%y)%y),t.e=p(-e/y)||0):(v.length=1,v[0]=t.e=t.s=0),t;if(0==r?(v.length=d,o=1,d--):(v.length=d+1,o=f(10,y-r),v[d]=i>0?(c/f(10,a-i)%f(10,i)|0)*o:0),u)for(;;){if(0==d){(v[0]+=o)==g&&(v[0]=1,++t.e);break}if(v[d]+=o,v[d]!=g)break;v[d--]=0,o=1}for(r=v.length;0===v[--r];)v.pop();if(l&&(t.e>m||t.e<-m))throw Error(h+I(t));return t}function D(t,e){var n,r,i,o,a,s,u,c,h,p,f=t.constructor,d=f.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new f(t),l?O(e,d):e;if(u=t.d,p=e.d,r=e.e,c=t.e,u=u.slice(),a=c-r){for((h=a<0)?(n=u,a=-a,s=p.length):(n=p,r=c,s=u.length),a>(i=Math.max(Math.ceil(d/y),s)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((h=(i=u.length)<(s=p.length))&&(s=i),i=0;i<s;i++)if(u[i]!=p[i]){h=u[i]<p[i];break}a=0}for(h&&(n=u,u=p,p=n,e.s=-e.s),s=u.length,i=p.length-s;i>0;--i)u[s++]=0;for(i=p.length;i>a;){if(u[--i]<p[i]){for(o=i;o&&0===u[--o];)u[o]=g-1;--u[o],u[i]+=g}u[i]-=p[i]}for(;0===u[--s];)u.pop();for(;0===u[0];u.shift())--r;return u[0]?(e.d=u,e.e=r,l?O(e,d):e):new f(0)}function P(t,e,n){var r,i=I(t),o=w(t.d),a=o.length;return e?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+A(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+A(-i-1)+o,n&&(r=n-a)>0&&(o+=A(r))):i>=a?(o+=A(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+A(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=A(r))),t.s<0?"-"+o:o}function L(t,e){if(t.length>e)return t.length=e,!0}function E(t){if(!t||"object"!==typeof t)throw Error(u+"Object expected");var e,n,r,i=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if(void 0!==(r=t[n=i[e]])){if(!(p(r)===r&&r>=i[e+1]&&r<=i[e+2]))throw Error(c+n+": "+r);this[n]=r}if(void 0!==(r=t[n="LN10"])){if(r!=Math.LN10)throw Error(c+n+": "+r);this[n]=new this(r)}return this}s=function t(e){var n,r,i;function o(t){var e=this;if(!(e instanceof o))return new o(t);if(e.constructor=o,t instanceof o)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"===typeof t){if(0*t!==0)throw Error(c+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):k(e,t.toString())}if("string"!==typeof t)throw Error(c+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!d.test(t))throw Error(c+t);k(e,t)}if(o.prototype=x,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=E,void 0===e&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)e.hasOwnProperty(r=i[n++])||(e[r]=this[r]);return o.config(e),o}(s),s.default=s.Decimal=s,o=new s(1),void 0===(r=function(){return s}.call(e,n,e,t))||(t.exports=r)}()},387:function(t,e,n){"use strict";n.d(e,{Z:function(){return AY}});var r={};n.r(r),n.d(r,{HashMap:function(){return Dt},RADIAN_TO_DEGREE:function(){return jt},assert:function(){return Mt},bind:function(){return it},clone:function(){return G},concatArray:function(){return Lt},createCanvas:function(){return Y},createHashMap:function(){return Pt},createObject:function(){return Et},curry:function(){return ot},defaults:function(){return Z},disableUserSelect:function(){return Nt},each:function(){return J},eqNaN:function(){return mt},extend:function(){return U},filter:function(){return et},find:function(){return nt},guid:function(){return V},hasOwn:function(){return Rt},indexOf:function(){return X},inherits:function(){return q},isArray:function(){return at},isArrayLike:function(){return $},isBuiltInObject:function(){return pt},isDom:function(){return dt},isFunction:function(){return st},isGradientObject:function(){return gt},isImagePatternObject:function(){return yt},isNumber:function(){return ct},isObject:function(){return ht},isPrimitive:function(){return Ct},isRegExp:function(){return vt},isString:function(){return lt},isStringSafe:function(){return ut},isTypedArray:function(){return ft},keys:function(){return rt},logError:function(){return F},map:function(){return Q},merge:function(){return H},mergeAll:function(){return W},mixin:function(){return K},noop:function(){return zt},normalizeCssArray:function(){return St},reduce:function(){return tt},retrieve:function(){return xt},retrieve2:function(){return bt},retrieve3:function(){return _t},setAsPrimitive:function(){return At},slice:function(){return wt},trim:function(){return It}});var i={};n.r(i),n.d(i,{add:function(){return Ut},applyTransform:function(){return ue},clone:function(){return Ht},copy:function(){return Gt},create:function(){return Ft},dist:function(){return ie},distSquare:function(){return ae},distance:function(){return re},distanceSquare:function(){return oe},div:function(){return Qt},dot:function(){return te},len:function(){return Xt},lenSquare:function(){return Kt},length:function(){return qt},lengthSquare:function(){return $t},lerp:function(){return le},max:function(){return he},min:function(){return ce},mul:function(){return Jt},negate:function(){return se},normalize:function(){return ne},scale:function(){return ee},scaleAndAdd:function(){return Zt},set:function(){return Wt},sub:function(){return Yt}});var o={};n.r(o),n.d(o,{clone:function(){return Xe},copy:function(){return Ge},create:function(){return Ve},identity:function(){return Fe},invert:function(){return Ye},mul:function(){return He},rotate:function(){return Ue},scale:function(){return Ze},translate:function(){return We}});var a={};n.r(a),n.d(a,{fastLerp:function(){return Or},fastMapToColor:function(){return Dr},lerp:function(){return Pr},lift:function(){return Cr},lum:function(){return zr},mapToColor:function(){return Lr},modifyAlpha:function(){return Nr},modifyHSL:function(){return Er},parse:function(){return Tr},random:function(){return jr},stringify:function(){return Rr}
2,toHex:function(){return kr}});var s={};n.r(s),n.d(s,{dispose:function(){return Mo},disposeAll:function(){return Io},getInstance:function(){return To},init:function(){return So},registerPainter:function(){return Ao},version:function(){return Co}});var l={};n.r(l),n.d(l,{Arc:function(){return ry},BezierCurve:function(){return ty},BoundingRect:function(){return sn},Circle:function(){return yg},CompoundPath:function(){return oy},Ellipse:function(){return xg},Group:function(){return xo},Image:function(){return wl},IncrementalDisplayable:function(){return vy},Line:function(){return qg},LinearGradient:function(){return sy},OrientedBoundingRect:function(){return dy},Path:function(){return gl},Point:function(){return Ke},Polygon:function(){return Gg},Polyline:function(){return Ug},RadialGradient:function(){return ly},Rect:function(){return Ol},Ring:function(){return jg},Sector:function(){return Ng},Text:function(){return Zl},applyTransform:function(){return Ny},clipPointsByRect:function(){return By},clipRectByRect:function(){return Vy},createIcon:function(){return Fy},extendPath:function(){return Sy},extendShape:function(){return _y},getShapeClass:function(){return Iy},getTransform:function(){return Ey},groupTransition:function(){return jy},initProps:function(){return ec},isElementRemoved:function(){return nc},lineLineIntersect:function(){return Hy},linePolygonIntersect:function(){return Gy},makeImage:function(){return Ay},makePath:function(){return Ty},mergePath:function(){return ky},registerShape:function(){return My},removeElement:function(){return rc},removeElementWithFadeOut:function(){return oc},resizePath:function(){return Oy},setTooltipConfig:function(){return Uy},subPixelOptimize:function(){return Ly},subPixelOptimizeLine:function(){return Dy},subPixelOptimizeRect:function(){return Py},transformDirection:function(){return Ry},traverseElements:function(){return Yy},updateProps:function(){return tc}});var u={};n.r(u),n.d(u,{createDimensions:function(){return Jb},createList:function(){return bw},createScale:function(){return ww},createSymbol:function(){return hm},createTextStyle:function(){return Mw},dataStack:function(){return _w},enableHoverEmphasis:function(){return Fu},getECData:function(){return Yl},getLayoutRect:function(){return Bh},mixinAxisModelCommonMethods:function(){return Sw}});var c={};n.r(c),n.d(c,{MAX_SAFE_INTEGER:function(){return Fo},asc:function(){return Eo},getPercentWithPrecision:function(){return jo},getPixelPrecision:function(){return zo},getPrecision:function(){return No},getPrecisionSafe:function(){return Ro},isNumeric:function(){return Jo},isRadianAroundZero:function(){return Ho},linearMap:function(){return Do},nice:function(){return Xo},numericToNumber:function(){return $o},parseDate:function(){return Uo},quantile:function(){return qo},quantity:function(){return Zo},quantityExponent:function(){return Yo},reformIntervals:function(){return Ko},remRadian:function(){return Go},round:function(){return Lo}});var h={};n.r(h),n.d(h,{format:function(){return oh},parse:function(){return Uo}});var p={};n.r(p),n.d(p,{Arc:function(){return ry},BezierCurve:function(){return ty},BoundingRect:function(){return sn},Circle:function(){return yg},CompoundPath:function(){return oy},Ellipse:function(){return xg},Group:function(){return xo},Image:function(){return wl},IncrementalDisplayable:function(){return vy},Line:function(){return qg},LinearGradient:function(){return sy},Polygon:function(){return Gg},Polyline:function(){return Ug},RadialGradient:function(){return ly},Rect:function(){return Ol},Ring:function(){return jg},Sector:function(){return Ng},Text:function(){return Zl},clipPointsByRect:function(){return By},clipRectByRect:function(){return Vy},createIcon:function(){return Fy},extendPath:function(){return Sy},extendShape:function(){return _y},getShapeClass:function(){return Iy},getTransform:function(){return Ey},initProps:function(){return ec},makeImage:function(){return Ay},makePath:function(){return Ty},mergePath:function(){return ky},registerShape:function(){return My},resizePath:function(){return Oy},updateProps:function(){return tc}});var f={};n.r(f),n.d(f,{addCommas:function(){return wh}
2,capitalFirst:function(){return Dh},encodeHTML:function(){return Te},formatTime:function(){return Oh},formatTpl:function(){return Ch},getTextRect:function(){return Bw},getTooltipMarker:function(){return kh},normalizeCssArray:function(){return Mh},toCamelCase:function(){return Sh},truncateText:function(){return Za}});var d={};n.r(d),n.d(d,{bind:function(){return it},clone:function(){return G},curry:function(){return ot},defaults:function(){return Z},each:function(){return J},extend:function(){return U},filter:function(){return et},indexOf:function(){return X},inherits:function(){return q},isArray:function(){return at},isFunction:function(){return st},isObject:function(){return ht},isString:function(){return lt},map:function(){return Q},merge:function(){return H},reduce:function(){return tt}});var g={};n.r(g),n.d(g,{Axis:function(){return Jw},ChartView:function(){return nv},ComponentModel:function(){return Yh},ComponentView:function(){return Zd},List:function(){return $b},Model:function(){return Ec},PRIORITY:function(){return nx},SeriesModel:function(){return Wd},color:function(){return a},connect:function(){return qx},dataTool:function(){return xb},dependencies:function(){return Km},disConnect:function(){return $x},disconnect:function(){return Kx},dispose:function(){return Jx},env:function(){return _},extendChartView:function(){return nS},extendComponentModel:function(){return Qw},extendComponentView:function(){return tS},extendSeriesModel:function(){return eS},format:function(){return f},getCoordinateSystemDimensions:function(){return ub},getInstanceByDom:function(){return Qx},getInstanceById:function(){return tb},getMap:function(){return vb},graphic:function(){return p},helper:function(){return u},init:function(){return Xx},innerDrawElementOnCanvas:function(){return zm},matrix:function(){return o},number:function(){return c},parseGeoJSON:function(){return jw},parseGeoJson:function(){return jw},registerAction:function(){return sb},registerCoordinateSystem:function(){return lb},registerLayout:function(){return cb},registerLoading:function(){return db},registerLocale:function(){return Wc},registerMap:function(){return yb},registerPostInit:function(){return ib},registerPostUpdate:function(){return ob},registerPreprocessor:function(){return nb},registerProcessor:function(){return rb},registerTheme:function(){return eb},registerTransform:function(){return mb},registerUpdateLifecycle:function(){return ab},registerVisual:function(){return hb},setCanvasCreator:function(){return gb},setPlatformAPI:function(){return A},throttle:function(){return av},time:function(){return h},use:function(){return wb},util:function(){return d},vector:function(){return i},version:function(){return qm},zrUtil:function(){return r},zrender:function(){return s}});var y=n(95330),v=function(t,e){return v=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])},v(t,e)};function m(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}v(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var x=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},b=new function(){this.browser=new x,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?(b.wxa=!0,b.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?b.worker=!0:"undefined"===typeof navigator?(b.node=!0,b.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,b);var _=b,w=12,S="sans-serif",M=w+"px "+S;var I=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}
2("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),T={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var i=T.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==r&&(e=t.font=r||M),t.measureText(n);n=n||"";var o=/(\d+)px/.exec(r=r||M),a=o&&+o[1]||w,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=I[n[l]];s+=null==u?a:u*a}return{width:s}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function A(t){for(var e in T)t[e]&&(T[e]=t[e])}var C=tt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),k=tt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),O=Object.prototype.toString,D=Array.prototype,P=D.forEach,L=D.filter,E=D.slice,N=D.map,R=function(){}.constructor,z=R?R.prototype:null,j="__proto__",B=2311;function V(){return B++}function F(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!==typeof console&&console.error.apply(console,t)}function G(t){if(null==t||"object"!==typeof t)return t;var e=t,n=O.call(t);if("[object Array]"===n){if(!Ct(t)){e=[];for(var r=0,i=t.length;r<i;r++)e[r]=G(t[r])}}else if(k[n]){if(!Ct(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(r=0,i=t.length;r<i;r++)e[r]=t[r]}}}else if(!C[n]&&!Ct(t)&&!dt(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==j&&(e[a]=G(t[a]));return e}function H(t,e,n){if(!ht(e)||!ht(t))return n?G(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==j){var i=t[r],o=e[r];!ht(o)||!ht(i)||at(o)||at(i)||dt(o)||dt(i)||pt(o)||pt(i)||Ct(o)||Ct(i)?!n&&r in t||(t[r]=G(e[r])):H(i,o,n)}return t}function W(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=H(n,t[r],e);return n}function U(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==j&&(t[n]=e[n]);return t}function Z(t,e,n){for(var r=rt(e),i=0;i<r.length;i++){var o=r[i];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var Y=T.createCanvas;function X(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 q(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 K(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 Z(t,e,n)}function $(t){return!!t&&("string"!==typeof t&&"number"===typeof t.length)}function J(t,e,n){if(t&&e)if(t.forEach&&t.forEach===P)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 Q(t,e,n){if(!t)return[];if(!e)return wt(t);if(t.map&&t.map===N)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 tt(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 et(t,e,n){if(!t)return[];if(!e)return wt(t);if(t.filter&&t.filter===L)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 nt(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 rt(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 it=z&&st(z.bind)?z.call.bind(z.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(E.call(arguments)))}};function ot(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(E.call(arguments)))}}function at(t){return Array.isArray?Array.isArray(t):"[object Array]"===O.call(t)}function st(t){return"function"===typeof t}function lt(t){return"string"===typeof t}function ut(t){return"[object String]"===O.call(t)}function ct(t){return"number"===typeof t}function ht(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function pt(t){return!!C[O.call(t)]}function ft(t){return!!k[O.call(t)]}function dt(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function gt(t){return null!=t.colorStops}function yt(t){return null!=t.image}function vt(t){return"[object RegExp]"===O.call(t)}function mt(t){return t!==t}
vendor: 19,346 bytes, line 2
2function xt(){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 bt(t,e){return null!=t?t:e}function _t(t,e,n){return null!=t?t:null!=e?e:n}function wt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return E.apply(t,e)}function St(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 Mt(t,e){if(!t)throw new Error(e)}function It(t){return null==t?null:"function"===typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Tt="__ec_primitive__";function At(t){t[Tt]=!0}function Ct(t){return t[Tt]}var kt=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return rt(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),Ot="function"===typeof Map;var Dt=function(){function t(e){var n=at(e);this.data=Ot?new Map:new kt;var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&J(e,i)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,r){t.call(e,n,r)}))},t.prototype.keys=function(){var t=this.data.keys();return Ot?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function Pt(t){return new Dt(t)}function Lt(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 Et(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&U(n,e),n}function Nt(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Rt(t,e){return t.hasOwnProperty(e)}function zt(){}var jt=180/Math.PI,Bt=function(t,e){return Bt=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])},Bt(t,e)};function Vt(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}Bt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;function Ft(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function Gt(t,e){return t[0]=e[0],t[1]=e[1],t}function Ht(t){return[t[0],t[1]]}function Wt(t,e,n){return t[0]=e,t[1]=n,t}function Ut(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Zt(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function Yt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Xt(t){return Math.sqrt(Kt(t))}var qt=Xt;function Kt(t){return t[0]*t[0]+t[1]*t[1]}var $t=Kt;function Jt(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function Qt(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function te(t,e){return t[0]*e[0]+t[1]*e[1]}function ee(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function ne(t,e){var n=Xt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function re(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var ie=re;function oe(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var ae=oe;function se(t,e){return t[0]=-e[0],t[1]=-e[1],t}function le(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 ue(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 ce(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function he(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var pe=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},fe=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 pe(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 pe(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 pe(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new pe(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new pe(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new pe(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),de=fe,ge=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}(),ye=ge,ve=Math.log(2);function me(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)/ve);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]*me(t,e-1,c,u,i|d,o),f++)}return o[a]=h,h}function xe(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=me(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)*me(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 be="___zrEVENTSAVED",_e=[];function we(t,e,n,r,i){if(e.getBoundingClientRect&&_.domSupported&&!Se(e)){var o=e[be]||(e[be]={}),a=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=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[s]+":0",i[l]+":0",r[1-s]+":auto",i[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),s=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?xe(s,a):xe(a,s))}(a,o,i);if(s)return s(t,n,r),!0}return!1}function Se(t){return"CANVAS"===t.nodeName.toUpperCase()}var Me=/([&<>"'])/g,Ie={"&":"&","<":"<",">":">",'"':""","'":"'"};function Te(t){return null==t?"":(t+"").replace(Me,(function(t,e){return Ie[e]}))}var Ae=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ce=[],ke=_.browser.firefox&&+_.browser.version.split(".")[0]<39;function Oe(t,e,n,r){return n=n||{},r?De(t,e,n):ke&&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):De(t,e,n),n}function De(t,e,n){if(_.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(Se(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(we(Ce,t,r,i))return n.zrX=Ce[0],void(n.zrY=Ce[1])}n.zrX=n.zrY=0}function Pe(t){return t||window.event}function Le(t,e,n){if(null!=(e=Pe(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&&Oe(t,i,e,n)}else{Oe(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&&Ae.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function Ee(t,e,n,r){t.addEventListener(e,n,r)}var Ne=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Re(t){return 2===t.which||3===t.which}var ze=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=Oe(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 Be)if(Be.hasOwnProperty(e)){var n=Be[e](this._track,t);if(n)return n}},t}();function je(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var Be={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=je(i)/je(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 Ve(){return[1,0,0,1,0,0]}function Fe(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ge(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 He(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 We(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 Ue(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 Ze(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 Ye(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}function Xe(t){var e=[1,0,0,1,0,0];return Ge(e,t),e}var qe=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}(),Ke=qe,$e=Math.min,Je=Math.max,Qe=new Ke,tn=new Ke,en=new Ke,nn=new Ke,rn=new Ke,on=new Ke,an=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=$e(t.x,this.x),n=$e(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Je(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Je(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 We(i,i,[-e.x,-e.y]),Ze(i,i,[n,r]),We(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),y=Math.abs(u-i),v=Math.abs(s-c),m=Math.abs(h-a),x=Math.min(g,y),b=Math.min(v,m);o<l||u<i?x>d&&(d=x,g<y?Ke.set(on,-g,0):Ke.set(on,y,0)):x<f&&(f=x,g<y?Ke.set(rn,g,0):Ke.set(rn,-y,0)),s<c||h<a?b>d&&(d=b,v<m?Ke.set(on,0,-v):Ke.set(on,0,m)):x<f&&(f=x,v<m?Ke.set(rn,0,v):Ke.set(rn,0,-m))}return n&&Ke.copy(n,p?rn:on),p},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.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))}Qe.x=en.x=n.x,Qe.y=nn.y=n.y,tn.x=nn.x=n.x+n.width,tn.y=en.y=n.y+n.height,Qe.transform(r),nn.transform(r),tn.transform(r),en.transform(r),e.x=$e(Qe.x,tn.x,en.x,nn.x),e.y=$e(Qe.y,tn.y,en.y,nn.y);var l=Je(Qe.x,tn.x,en.x,nn.x),u=Je(Qe.y,tn.y,en.y,nn.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),sn=an,ln="silent";function un(){Ne(this.event)}var cn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return Vt(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ye),hn=function(t,e){this.x=t,this.y=e},pn=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fn=new sn(0,0,0,0),dn=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new hn(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new cn,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new de(a),a}return Vt(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(J(pn,(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=vn(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 hn(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 hn(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:un}}(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 hn(t,e);if(yn(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=ne
vendor: 4,306 bytes, line 2
2w sn(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||(fn.copy(c.getBoundingRect()),c.transform&&fn.applyTransform(c.transform),fn.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(yn(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 ze);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 hn;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(ye);function gn(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||ln}return!1}function yn(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=gn(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==ln)){e.target=a;break}}}function vn(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}J(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){dn.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=vn(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||ie(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var mn=dn,xn=32,bn=7;function _n(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 wn(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 Sn(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 Mn(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 In(t,e){var n,r,i,o=bn,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=Mn(t[c],t,l,u,0,e);l+=p,0!==(u-=p)&&0!==(h=Sn(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=Mn(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=Sn(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>=bn||f>=bn);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,y=0,v=!1;do{if(e(s[c],t[u])<0){if(t[h--]=t[u--],g++,y=0,0===--r){v=!0;break}}else if(t[h--]=s[c--],y++,g=0,1===--a){v=!0;break}}while((g|y)<d);if(v)break;
vendor: 56,414 bytes, line 2
2do{if(0!==(g=r-Mn(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){v=!0;break}}if(t[h--]=s[c--],1===--a){v=!0;break}if(0!==(y=a-Sn(t[u],s,0,a,a-1,e))){for(a-=y,f=(h-=y)+1,p=(c-=y)+1,l=0;l<y;l++)t[f+l]=s[p+l];if(a<=1){v=!0;break}}if(t[h--]=t[u--],0===--r){v=!0;break}d--}while(g>=bn||y>=bn);if(v)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 Tn(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<xn)wn(t,n,r,n+(o=_n(t,n,r,e)),e);else{var a=In(t,e),s=function(t){for(var e=0;t>=xn;)e|=1&t,t>>=1;return t+e}(i);do{if((o=_n(t,n,r,e))<s){var l=i;l>s&&(l=s),wn(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 An=1,Cn=4,kn=!1;function On(){kn||(kn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Dn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Pn=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Dn}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,Tn(n,Dn)},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|=An),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)&&(On(),u.z=0),isNaN(u.z2)&&(On(),u.z2=0),isNaN(u.zlevel)&&(On(),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=X(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}(),Ln=Pn,En=_.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Nn={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-Nn.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*Nn.bounceIn(2*t):.5*Nn.bounceOut(2*t-1)+.5}},Rn=Nn,zn=Math.pow,jn=Math.sqrt,Bn=1e-8,Vn=1e-4,Fn=jn(3),Gn=1/3,Hn=Ft(),Wn=Ft(),Un=Ft();function Zn(t){return t>-Bn&&t<Bn}function Yn(t){return t>Bn||t<-Bn}function Xn(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 qn(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function Kn(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(Zn(c)&&Zn(h)){if(Zn(s))o[0]=0;else(M=-l/s)>=0&&M<=1&&(o[f++]=M)}else{var d=h*h-4*c*p;if(Zn(d)){var g=h/c,y=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[f++]=M),y>=0&&y<=1&&(o[f++]=y)}else if(d>0){var v=jn(d),m=c*s+1.5*a*(-h+v),x=c*s+1.5*a*(-h-v);(M=(-s-((m=m<0?-zn(-m,Gn):zn(m,Gn))+(x=x<0?-zn(-x,Gn):zn(x,Gn))))/(3*a))>=0&&M<=1&&(o[f++]=M)}else{var b=(2*c*s-3*a*h)/(2*jn(c*c*c)),_=Math.acos(b)/3,w=jn(c),S=Math.cos(_),M=(-s-2*w*S)/(3*a),I=(y=(-s+w*(S+Fn*Math.sin(_)))/(3*a),(-s+w*(S-Fn*Math.sin(_)))/(3*a));M>=0&&M<=1&&(o[f++]=M),y>=0&&y<=1&&(o[f++]=y),I>=0&&I<=1&&(o[f++]=I)}}return f}function $n(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(Zn(a)){if(Yn(o))(c=-s/o)>=0&&c<=1&&(i[l++]=c)}else{var u=o*o-4*a*s;if(Zn(u))i[0]=-o/(2*a);else if(u>0){var c,h=jn(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 Jn(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 Qn(t,e,n,r,i,o,a,s,l,u,c){var h,p,f,d,g,y=.005,v=1/0;Hn[0]=l,Hn[1]=u;for(var m=0;m<1;m+=.05)Wn[0]=Xn(t,n,i,a,m),Wn[1]=Xn(e,r,o,s,m),(d=ae(Hn,Wn))<v&&(h=m,v=d);v=1/0;for(var x=0;x<32&&!(y<Vn);x++)p=h-y,f=h+y,Wn[0]=Xn(t,n,i,a,p),Wn[1]=Xn(e,r,o,s,p),d=ae(Wn,Hn),p>=0&&d<v?(h=p,v=d):(Un[0]=Xn(t,n,i,a,f),Un[1]=Xn(e,r,o,s,f),g=ae(Un,Hn),f<=1&&g<v?(h=f,v=g):y*=.5);return c&&(c[0]=Xn(t,n,i,a,h),c[1]=Xn(e,r,o,s,h)),jn(v)}function tr(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=Xn(t,n,i,a,d),y=Xn(e,r,o,s,d),v=g-u,m=y-c;h+=Math.sqrt(v*v+m*m),u=g,c=y}return h}function er(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function nr(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function rr(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function ir(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 or(t,e,n,r,i,o,a,s,l){var u,c=.005,h=1/0;Hn[0]=a,Hn[1]=s;for(var p=0;p<1;p+=.05){Wn[0]=er(t,n,i,p),Wn[1]=er(e,r,o,p),(y=ae(Hn,Wn))<h&&(u=p,h=y)}h=1/0;for(var f=0;f<32&&!(c<Vn);f++){var d=u-c,g=u+c;Wn[0]=er(t,n,i,d),Wn[1]=er(e,r,o,d);var y=ae(Wn,Hn);if(d>=0&&y<h)u=d,h=y;else{Un[0]=er(t,n,i,g),Un[1]=er(e,r,o,g);var v=ae(Un,Hn);g<=1&&v<h?(u=g,h=v):c*=.5}}return l&&(l[0]=er(t,n,i,u),l[1]=er(e,r,o,u)),jn(h)}function ar(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=er(t,n,i,p),d=er(e,r,o,p),g=f-s,y=d-l;u+=Math.sqrt(g*g+y*y),s=f,l=d}return u}var sr=/cubic-bezier\(([0-9,\.e ]+)\)/;function lr(t){var e=t&&sr.exec(t);if(e){var n=e[1].split(","),r=+It(n[0]),i=+It(n[1]),o=+It(n[2]),a=+It(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:Kn(0,r,o,1,t,s)&&Xn(0,i,a,1,s[0])}}}var ur=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||zt,this.ondestroy=t.ondestroy||zt,this.onrestart=t.onrestart||zt,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=st(t)?t:Rn[t]||lr(t)},t}(),cr=function(t){this.value=t},hr=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new cr(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}(),pr=function(){function t(t){this._list=new hr,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,i=null;if(null==r[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new cr(e),a.key=t,n.insertEntry(a),r[t]=a}return i},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}(),fr=pr,dr={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 gr(t){return(t=Math.round(t))<0?0:t>255?255:t}function yr(t){return t<0?0:t>1?1:t}function vr(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?gr(parseFloat(e)/100*255):gr(parseInt(e,10))}function mr(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?yr(parseFloat(e)/100):yr(parseFloat(e))}function xr(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 br(t,e,n){return t+(e-t)*n}function _r(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function wr(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Sr=new fr(20),Mr=null;function Ir(t,e){Mr&&wr(Mr,e),Mr=Sr.put(t,Mr||e.slice())}function Tr(t,e){if(t){e=e||[];var n=Sr.get(t);if(n)return wr(e,n);var r=(t+="").replace(/ /g,"").toLowerCase();if(r in dr)return wr(e,dr[r]),Ir(t,e),e;var i,o=r.length;if("#"===r.charAt(0))return 4===o||5===o?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(_r(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===o?parseInt(r.slice(4),16)/15:1),Ir(t,e),e):void _r(e,0,0,0,1):7===o||9===o?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(_r(e,(16711680&i)>>16,(65280&i)>>8,255&i,9===o?parseInt(r.slice(7),16)/255:1),Ir(t,e),e):void _r(e,0,0,0,1):void 0;var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?_r(e,+u[0],+u[1],+u[2],1):_r(e,0,0,0,1);c=mr(u.pop());case"rgb":return u.length>=3?(_r(e,vr(u[0]),vr(u[1]),vr(u[2]),3===u.length?c:mr(u[3])),Ir(t,e),e):void _r(e,0,0,0,1);case"hsla":return 4!==u.length?void _r(e,0,0,0,1):(u[3]=mr(u[3]),Ar(u,e),Ir(t,e),e);case"hsl":return 3!==u.length?void _r(e,0,0,0,1):(Ar(u,e),Ir(t,e),e);default:return}}_r(e,0,0,0,1)}}function Ar(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=mr(t[1]),i=mr(t[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return _r(e=e||[],gr(255*xr(a,o,n+1/3)),gr(255*xr(a,o,n)),gr(255*xr(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Cr(t,e){var n=Tr(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 Rr(n,4===n.length?"rgba":"rgb")}}function kr(t){var e=Tr(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Or(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=e[i],s=e[o],l=r-i;return n[0]=gr(br(a[0],s[0],l)),n[1]=gr(br(a[1],s[1],l)),n[2]=gr(br(a[2],s[2],l)),n[3]=yr(br(a[3],s[3],l)),n}}var Dr=Or;function Pr(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=Tr(e[i]),s=Tr(e[o]),l=r-i,u=Rr([gr(br(a[0],s[0],l)),gr(br(a[1],s[1],l)),gr(br(a[2],s[2],l)),yr(br(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}var Lr=Pr;function Er(t,e,n,r){var i=Tr(t);if(t)return i=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}}(i),null!=e&&(i[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(i[1]=mr(n)),null!=r&&(i[2]=mr(r)),Rr(Ar(i),"rgba")}function Nr(t,e){var n=Tr(t);if(n&&null!=e)return n[3]=yr(e),Rr(n,"rgba")}function Rr(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 zr(t,e){var n=Tr(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function jr(){return Rr([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var Br=Math.round;function Vr(t){var e;if(t&&"transparent"!==t){if("string"===typeof t&&t.indexOf("rgba")>-1){var n=Tr(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var Fr=1e-4;function Gr(t){return t<Fr&&t>-Fr}function Hr(t){return Br(1e3*t)/1e3}function Wr(t){return Br(1e4*t)/1e4}var Ur={left:"start",right:"end",center:"middle",middle:"middle"};function Zr(t){return t&&!!t.image}function Yr(t){return Zr(t)||function(t){return t&&!!t.svgElement}(t)}function Xr(t){return"linear"===t.type}function qr(t){return"radial"===t.type}function Kr(t){return t&&("linear"===t.type||"radial"===t.type)}function $r(t){return"url(#"+t+")"}function Jr(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 Qr(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*jt,i=bt(t.scaleX,1),o=bt(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),1===i&&1===o||l.push("scale("+i+","+o+")"),(a||s)&&l.push("skew("+Br(a*jt)+"deg, "+Br(s*jt)+"deg)"),l.join(" ")}var ti=_.hasGlobalWindow&&st(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!==typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},ei=Array.prototype.slice;function ni(t,e,n){return(e-t)*n+t}function ri(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=ni(e[o],n[o],r);return t}function ii(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function oi(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 ai(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 si(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]:ei.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 li(t){if($(t)){var e=t.length;if($(t[0])){for(var n=[],r=0;r<e;r++)n.push(ei.call(t[r]));return n}return ei.call(t)}return t}function ui(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 ci(t){return 4===t||5===t}function hi(t){return 1===t||2===t}var pi=[0,0,0,0],fi=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($(e)){var l=function(t){return $(t&&t[0])?2:1}(e);a=l,(1===l&&!ct(e[0])||2===l&&!ct(e[0][0]))&&(o=!0)}else if(ct(e)&&!mt(e))a=0;else if(lt(e))if(isNaN(+e)){var u=Tr(e);u&&(s=u,a=3)}else a=0;else if(gt(e)){var c=U({},s);c.colorStops=Q(e.colorStops,(function(t){return{offset:t.offset,color:Tr(t.color)}})),Xr(e)?a=4:qr(e)&&(a=5),s=c}0===i?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=st(n)?n:Rn[n]||lr(n)),r.push(h),h},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=hi(r),l=ci(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?si(h,p,r):l&&ai(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=ii([],n[u].value,f,-1):hi(r)&&(n[u].additiveValue=1===r?ii([],n[u].value,f,-1):oi([],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,l=this.keyframes,u=l.length,c=this.propName,h=3===s,p=this._lastFr,f=Math.min;if(1===u)r=i=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=f(p+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=f(n,u-2)}else{for(n=p;n<u&&!(l[n].percent>e);n++);n=f(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var d=i.percent-r.percent,g=0===d?1:f((e-r.percent)/d,1);i.easingFunc&&(g=i.easingFunc(g));var y=o?this._additiveValue:h?pi:t[c];if(!hi(s)&&!h||y||(y=this._additiveValue=[]),this.discrete)t[c]=g<1?r.rawValue:i.rawValue;else if(hi(s))1===s?ri(y,r[a],i[a],g):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]=ni(e[a][s],n[a][s],r)}}(y,r[a],i[a],g);else if(ci(s)){var v=r[a],m=i[a],x=4===s;t[c]={type:x?"linear":"radial",x:ni(v.x,m.x,g),y:ni(v.y,m.y,g),colorStops:Q(v.colorStops,(function(t,e){var n=m.colorStops[e];return{offset:ni(t.offset,n.offset,g),color:ui(ri([],t.color,n.color,g))}})),global:m.global},x?(t[c].x2=ni(v.x2,m.x2,g),t[c].y2=ni(v.y2,m.y2,g)):t[c].r=ni(v.r,m.r,g)}else if(h)ri(y,r[a],i[a],g),o||(t[c]=ui(y));else{var b=ni(r[a],i[a],g);o?this._additiveValue=b:t[c]=b}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?(Tr(t[n],pi),ii(pi,pi,r,1),t[n]=ui(pi)):1===e?ii(t[n],t[n],r,1):2===e&&oi(t[n],t[n],r,1)},t}(),di=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?F("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,rt(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 fi(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=ui(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,li(l),r),this._trackKeys.push(a)}s.addKeyframe(t,li(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 ur({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 Q(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]=li(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||rt(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}(),gi=di;function yi(){return(new Date).getTime()}var vi=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 Vt(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=yi()-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,En((function e(){t._running&&(En(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=yi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=yi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=yi()-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 gi(t,e.loop);return this.addAnimator(n),n},e}(ye),mi=vi,xi=_.domSupported,bi=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:t,touch:["touchstart","touchend","touchmove"],pointer:Q(t,(function(t){var n=t.replace("mouse","pointer");return e.hasOwnProperty(n)?n:t}))}}(),_i=["mousemove","mouseup"],wi=["pointermove","pointerup"],Si=!1;function Mi(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Ii(t){t&&(t.zrByTouch=!0)}function Ti(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 Ai=function(t,e){this.stopPropagation=zt,this.stopImmediatePropagation=zt,this.preventDefault=zt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Ci={mousedown:function(t){t=Le(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Le(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=Le(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Ti(this,(t=Le(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Si=!0,t=Le(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Si||(t=Le(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Ii(t=Le(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ci.mousemove.call(this,t),Ci.mousedown.call(this,t)},touchmove:function(t){Ii(t=Le(this.dom,t)),this.handler.processGesture(t,"change"),Ci.mousemove.call(this,t)},touchend:function(t){Ii(t=Le(this.dom,t)),this.handler.processGesture(t,"end"),Ci.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Ci.click.call(this,t)},pointerdown:function(t){Ci.mousedown.call(this,t)},pointermove:function(t){Mi(t)||Ci.mousemove.call(this,t)},pointerup:function(t){Ci.mouseup.call(this,t)},pointerout:function(t){Mi(t)||Ci.mouseout.call(this,t)}};J(["click","dblclick","contextmenu"],(function(t){Ci[t]=function(e){e=Le(this.dom,e),this.trigger(t,e)}}));var ki={pointermove:function(t){Mi(t)||ki.mousemove.call(this,t)},pointerup:function(t){ki.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 Oi(t,e){var n=e.domHandlers;_.pointerEventsSupported?J(bi.pointer,(function(r){Pi(e,r,(function(e){n[r].call(t,e)}))})):(_.touchEventsSupported&&J(bi.touch,(function(r){Pi(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)}))})),J(bi.mouse,(function(r){Pi(e,r,(function(i){i=Pe(i),e.touching||n[r].call(t,i)}))})))}function Di(t,e){function n(n){Pi(e,n,(function(r){r=Pe(r),Ti(t,r.target)||(r=function(t,e){return Le(t.dom,new Ai(t,e),!0)}(t,r),e.domHandlers[n].call(t,r))}),{capture:!0})}_.pointerEventsSupported?J(wi,n):_.touchEventsSupported||J(_i,n)}function Pi(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,Ee(t.domTarget,e,n,r)}function Li(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 Ei=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Ni=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 Ei(e,Ci),xi&&(r._globalHandlerScope=new Ei(document,ki)),Oi(r,r._localHandlerScope),r}return Vt(e,t),e.prototype.dispose=function(){Li(this._localHandlerScope),xi&&Li(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,xi&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Di(this,e):Li(e)}},e}(ye),Ri=1;_.hasGlobalWindow&&(Ri=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var zi=Ri,ji="#333",Bi="#ccc",Vi=Fe,Fi=5e-5;function Gi(t){return t>Fi||t<-5e-5}var Hi=[],Wi=[],Ui=[1,0,0,1,0,0],Zi=Math.abs,Yi=function(){function t(){}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 Gi(this.rotation)||Gi(this.x)||Gi(this.y)||Gi(this.scaleX-1)||Gi(this.scaleY-1)||Gi(this.skewX)||Gi(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):Vi(n),t&&(e?He(n,t,n):Ge(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Vi(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Hi);var n=Hi[0]<0?-1:1,r=Hi[1]<0?-1:1,i=((Hi[0]-n)*e+n)/Hi[0]||0,o=((Hi[1]-r)*e+r)/Hi[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Ye(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&&(He(Wi,t.invTransform,e),e=Wi);var n=this.originX,r=this.originY;(n||r)&&(Ui[4]=n,Ui[5]=r,He(Wi,e,Ui),Wi[4]-=n,Wi[5]-=r,e=Wi),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&&ue(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&ue(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Zi(t[0]-1)>1e-10&&Zi(t[3]-1)>1e-10?Math.sqrt(Zi(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){qi(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&&Ue(e,e,l),e[4]+=n+u,e[5]+=r+c,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Xi=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function qi(t,e){for(var n=0;n<Xi.length;n++){var r=Xi[n];t[r]=e[r]}}var Ki=Yi,$i={};function Ji(t,e){var n=$i[e=e||M];n||(n=$i[e]=new fr(500));var r=n.get(t);return null==r&&(r=T.measureText(t,e).width,n.put(t,r)),r}function Qi(t,e,n,r){var i=Ji(t,e),o=ro(e),a=eo(0,i,n),s=no(0,o,r);return new sn(a,s,i,o)}function to(t,e,n,r){var i=((t||"")+"").split("\n");if(1===i.length)return Qi(i[0],e,n,r);for(var o=new sn(0,0,0,0),a=0;a<i.length;a++){var s=Qi(i[a],e,n,r);0===a?o.copy(s):o.union(s)}return o}function eo(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function no(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function ro(t){return Ji("\u56fd",t)}function io(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function oo(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+=io(r[0],n.width),u+=io(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 ao="__zr_normal__",so=Xi.concat(["ignore"]),lo=tt(Xi,(function(t,e){return t[e]=!0,t}),{ignore:!1}),uo={},co=new sn(0,0,0,0),ho=function(){function t(t){this.id=V(),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=co;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(uo,n,u):oo(uo,n,u),i.x=uo.x,i.y=uo.y,o=uo.align,a=uo.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=io(c[0],u.width),p=io(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={}),y=void 0,v=void 0,m=void 0;d&&this.canBeInsideText()?(y=n.insideFill,v=n.insideStroke,null!=y&&"auto"!==y||(y=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(y),m=!0)):(y=n.outsideFill,v=n.outsideStroke,null!=y&&"auto"!==y||(y=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(y),m=!0)),(y=y||"#000")===g.fill&&v===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=y,g.stroke=v,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=An,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()?Bi:ji},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Tr(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,Rr(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||{},U(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(ht(t))for(var n=rt(t),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,t[i])}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&&i!==ao)){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,so)},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(ao,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===ao;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(X(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 l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,n,l),c&&c.useState(t,e,n,l),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~An),s}F("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&=~An)}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=X(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=X(r,t),o=X(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];U(n,i),i.textConfig&&U(e=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=U({},r?this.textConfig:n.textConfig),U(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<so.length;u++){var c=so[u],h=i&&lo[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var p=this.animators[u],f=p.targetName;p.getLoop()||p.__changeFinalValue(f?(e||n)[f]:e||n)}l&&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 Ki,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),U(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|=An;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 gi(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=X(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){po(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){po(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=po(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=An;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 po(t,e,n,r,i){var o=[];yo(t,"",t,e,n=n||{},r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var p=0;p<o.length;p++){var f=o[p];c&&f.done(c),h&&f.aborted(h),n.force&&f.duration(n.duration),f.start(n.easing)}return o}function fo(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function go(t,e,n){if($(e[n]))if($(t[n])||(t[n]=[]),ft(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),fo(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if($(i[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?fo(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else fo(o,i,a);o.length=i.length}else t[n]=e[n]}function yo(t,e,n,r,i,o,a,s){for(var l=rt(r),u=i.duration,c=i.delay,h=i.additive,p=i.setToFinal,f=!ht(o),d=t.animators,g=[],y=0;y<l.length;y++){var v=l[y],m=r[v];if(null!=m&&null!=n[v]&&(f||o[v]))if(!ht(m)||$(m)||gt(m))g.push(v);else{if(e){s||(n[v]=m,t.updateDuringAnimation(e));continue}yo(t,v,n[v],m,i,o&&o[v],a,s)}else s||(n[v]=m,t.updateDuringAnimation(e),g.push(v))}var x=g.length;if(!h&&x)for(var b=0;b<d.length;b++){if((w=d[b]).targetName===e)if(w.stopTracks(g)){var _=X(d,w);d.splice(_,1)}}if(i.force||(g=et(g,(function(t){return e=r[t],i=n[t],!(e===i||$(e)&&$(i)&&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,i));var e,i})),x=g.length),x>0||i.force&&!a.length){var w,S=void 0,M=void 0,I=void 0;if(s){M={},p&&(S={});for(b=0;b<x;b++){M[v=g[b]]=n[v],p?S[v]=r[v]:n[v]=r[v]}}else if(p){I={};for(b=0;b<x;b++){I[v=g[b]]=li(n[v]),go(n,r,v)}}(w=new gi(n,!1,!1,h?et(d,(function(t){return t.targetName===e})):null)).targetName=e,i.scope&&(w.scope=i.scope),p&&S&&w.whenWithKeys(0,S,g),I&&w.whenWithKeys(0,I,g),w.whenWithKeys(null==u?500:u,s?M:r,g).delay(c||0),t.addAnimator(w,e),a.push(w)}}K(ho,ye),K(ho,Ki);var vo=ho,mo=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return Vt(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=X(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=X(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 sn(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?(sn.applyTransform(e,s,l),(i=i||e.clone()).union(e)):(i=i||s.clone()).union(s)}}return i||e},e}(vo);mo.prototype.type="group";var xo=mo,bo={},_o={};var wo=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 Ln,o=n.renderer||"canvas";bo[o]||(o=rt(bo)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new bo[o](e,i,n,t),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l,u=_.node||_.worker||s?null:new Ni(a.getViewportRoot(),a.root),c=n.useCoarsePointer;(null==c||"auto"===c?_.touchEventsSupported:!!c)&&(l=bt(n.pointerSize,44)),this.handler=new mn(i,a,u,a.root,l),this.animation=new mi({stage:{update:s?null:function(){return r._flush(!0)}}}),s||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()}
2,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 zr(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=zr(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=yi();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=yi();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 xo&&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 _o[t]},t}();function So(t,e){var n=new wo(V(),t,e);return _o[n.id]=n,n}function Mo(t){t.dispose()}function Io(){for(var t in _o)_o.hasOwnProperty(t)&&_o[t].dispose();_o={}}function To(t){return _o[t]}function Ao(t,e){bo[t]=e}var Co="5.4.4",ko=1e-4,Oo=20;function Do(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 Po(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 lt(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function Lo(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Oo),t=(+t).toFixed(e),n?t:+t}function Eo(t){return t.sort((function(t,e){return t-e})),t}function No(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 Ro(t)}function Ro(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)}function zo(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 jo(t,e,n){return t[e]&&Bo(t,n)[e]||0}function Bo(t,e){var n=tt(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var r=Math.pow(10,e),i=Q(t,(function(t){return(isNaN(t)?0:t)/n*r*100})),o=100*r,a=Q(i,(function(t){return Math.floor(t)})),s=tt(a,(function(t,e){return t+e}),0),l=Q(i,(function(t,e){return t-a[e]}));s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,p=l.length;h<p;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return Q(a,(function(t){return t/r}))}function Vo(t,e){var n=Math.max(No(t),No(e)),r=t+e;return n>Oo?r:Lo(r,n)}var Fo=9007199254740991;function Go(t){var e=2*Math.PI;return(t%e+e)%e}function Ho(t){return t>-ko&&t<ko}var Wo=/^(?:(\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 Uo(t){if(t instanceof Date)return t;if(lt(t)){var e=Wo.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 Zo(t){return Math.pow(10,Yo(t))}function Yo(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 Xo(t,e){var n=Yo(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,
vendor: 7,959 bytes, line 2
2n>=-20?+t.toFixed(n<0?-n:0):t}function qo(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 Ko(t){t.sort((function(t,e){return s(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 s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]===(n?-1:1)||!n&&s(t,e,1))}}function $o(t){var e=parseFloat(t);return e==t&&(0!==e||!lt(t)||t.indexOf("x")<=0)?e:NaN}function Jo(t){return!isNaN($o(t))}function Qo(){return Math.round(9*Math.random())}function ta(t,e){return 0===e?t:ta(e,t%e)}function ea(t,e){return null==t?e:null==e?t:t*e/ta(t,e)}function na(t,e,n){return(e-t)*n+t}var ra="series\0",ia="\0_ec_\0";function oa(t){return t instanceof Array?t:null==t?[]:[t]}function aa(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 sa=["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 la(t){return!ht(t)||at(t)||t instanceof Date?t:t.value}function ua(t){return ht(t)&&!(t instanceof Array)}function ca(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Pt();J(e,(function(t,n){ht(t)||(e[n]=null)}));var s=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||ga(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(t,a,n);return(r||i)&&function(t,e,n,r){J(r,(function(i,o){if(i&&null!=i.id){var a=pa(i.id),s=n.get(a);if(null!=s){var l=t[s];Mt(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}}))}(s,t,a,e),r&&function(t,e){J(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)&&!ga(n)&&!ga(o)&&ha("name",o,n))return t[i].newOption=n,void(e[r]=null)}}))}(s,e),r||i?function(t,e,n){J(e,(function(e){if(e){for(var r,i=0;(r=t[i])&&(r.newOption||ga(r.existing)||r.existing&&null!=e.id&&!ha("id",e,r.existing));)i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}}))}(s,e,i):o&&function(t,e){J(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(s,e),function(t){var e=Pt();J(t,(function(t){var n=t.existing;n&&e.set(n.id,t)})),J(t,(function(t){var n=t.newOption;Mt(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),J(t,(function(t,n){var r=t.existing,i=t.newOption,o=t.keyInfo;if(ht(i)){if(o.name=null!=i.name?pa(i.name):r?r.name:ra+n,r)o.id=pa(r.id);else if(null!=i.id)o.id=pa(i.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}}))}(s),s}function ha(t,e,n){var r=fa(e[t],null),i=fa(n[t],null);return null!=r&&null!=i&&r===i}function pa(t){return fa(t,"")}function fa(t,e){return null==t?e:lt(t)?t:ct(t)||ut(t)?t+"":e}function da(t){var e=t.name;return!(!e||!e.indexOf(ra))}function ga(t){return t&&null!=t.id&&0===pa(t.id).indexOf(ia)}function ya(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?at(e.dataIndex)?Q(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?at(e.name)?Q(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function va(){var t="__ec_inner_"+ma++;return function(e){return e[t]||(e[t]={})}}var ma=Qo();function xa(t,e,n){var r=ba(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=Sa(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 ba(t,e){var n;if(lt(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=Pt(),o={},a=!1;return J(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&X(e.includeMainTypes,s)<0))a=a||!!s,(i.get(s)||i.set(s,{}))[l]=t}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var _a={useDefault:!0,enableAll:!1,enableNone:!1},wa={useDefault:!1,enableAll:!0,enableNone:!0};function Sa(t,e,n,r){r=r||_a;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===i||!1===i?(Mt(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(Mt(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 Ma(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Ia(t,e){var n=Pt(),r=[];return J(t,(function(t){var i=e(t);(n.get(i)||(r.push(i),n.set(i,[]))).push(t)})),{keys:r,buckets:n}}function Ta(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(ct(r))return Lo(d=na(n||0,r,i),o?Math.max(No(n||0),No(r)):e);if(lt(r))return i<1?n:r;for(var a=[],s=n,l=r,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h=t.getDimensionInfo(c);if(h&&"ordinal"===h.type)a[c]=(i<1&&s?s:l)[c];else{var p=s&&s[c]?s[c]:0,f=l[c],d=na(p,f,i);a[c]=Lo(d,o?Math.max(No(p),No(f)):e)}}return a}var Aa=".",Ca="___EC__COMPONENT__CONTAINER___",ka="___EC__EXTENDED_CLASS___";function Oa(t){var e={main:"",sub:""};if(t){var n=t.split(Aa);e.main=n[0]||"",e.sub=n[1]||""}return e}function Da(t,e){t.$constructor=t,t.extend=function(t){var e,n,r=this;return st(n=r)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return m(e,t),e}(r):(e=function(){(t.$constructor||r).apply(this,arguments)},q(e,this)),U(e.prototype,t),e[ka]=!0,e.extend=this.extend,e.superCall=Ea,e.superApply=Na,e.superClass=r,e}}function Pa(t,e){t.extend=e.extend}var La=Math.round(10*Math.random());function Ea(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 Na(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Ra(t){var e={};t.registerClass=function(t){var n,r=t.type||t.prototype.type;if(r){Mt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),t.prototype.type=r;var i=Oa(r);if(i.sub){if(i.sub!==Ca){var o=function(t){var n=e[t.main];n&&n[Ca]||((n=e[t.main]={})[Ca]=!0);return n}(i);o[i.sub]=t}}else e[i.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[Ca]&&(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=Oa(t),r=[],i=e[n.main];return i&&i[Ca]?J(i,(function(t,e){e!==Ca&&r.push(t)})):r.push(i),r},t.hasClass=function(t){var n=Oa(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return J(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=Oa(t),r=e[n.main];return r&&r[Ca]}}function za(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&&X(r,s)>=0||i&&X(i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var ja=za([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["o
2pacity"],["shadowColor"]]),Ba=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return ja(this,t,e)},t}(),Va=new fr(50);function Fa(t){if("string"===typeof t){var e=Va.get(t);return e&&e.image}return t}function Ga(t,e,n,r,i){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Va.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?!Wa(e=o.image)&&o.pending.push(a):((e=T.loadImage(t,Ha,Ha)).__zrImageSrc=t,Va.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Ha(){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 Wa(t){return t&&t.width&&t.height}var Ua=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Za(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=Ya(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=Xa(o[a],i);return o.join("\n")}function Ya(t,e,n,r){var i=U({},r=r||{});i.font=e,n=bt(n,"..."),i.maxIterations=bt(r.maxIterations,2);var o=i.minChar=bt(r.minChar,0);i.cnCharWidth=Ji("\u56fd",e);var a=i.ascCharWidth=Ji("a",e);i.placeholder=bt(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=Ji(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function Xa(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=Ji(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?qa(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;o=Ji(t=t.substr(0,s),r)}return""===t&&(t=e.placeholder),t}function qa(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 Ka=function(){},$a=function(t){this.tokens=[],t&&(this.tokens=t)},Ja=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function Qa(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=io(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=ns(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 y=0;y<o.length;y++){var v=o[y],m=new Ka;if(m.styleName=i,m.text=v,m.isLineHolder=!v&&!s,"number"===typeof l.width?m.width=l.width:m.width=a?a[y]:Ji(v,c),y||h)u.push(new $a([m]));else{var x=(u[u.length-1]||(u[0]=new $a)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=m:(v||!b||s)&&x.push(m)}}}var ts=tt(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function es(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!ts[t]}function ns(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=Ji(p,e),d=!r&&!es(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 rs="__zr_style_"+Math.round(10*Math.random()),is={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},os={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};is[rs]=!0;var as=["z","z2","invisible"],ss=["invisible"],ls=function(t){function e(e){return t.call(this,e)||this}return Vt(e,t),e.prototype._init=function(e){for(var n=rt(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){us.c
vendor: 13,840 bytes, line 2
2opy(t.getBoundingRect()),t.transform&&us.applyTransform(t.transform);return cs.width=e,cs.height=n,!us.intersect(cs)}(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 sn(0,0,0,0)),e?sn.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 sn(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:U(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 Et(is,t)},e.prototype.useStyle=function(t){t[rs]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[rs]},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,as)},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(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)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=rt(u),h=0;h<c.length;h++){(f=c[h])in s&&(s[f]=s[f],this.style[f]=u[f])}var p=rt(s);for(h=0;h<p.length;h++){var f=p[h];this.style[f]=this.style[f]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var d=this.__inHover?ss:as;for(h=0;h<d.length;h++){f=d[h];n&&null!=n[f]?this[f]=n[f]:l&&null!=r[f]&&(this[f]=r[f])}},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 U(t,e),t},e.prototype.getAnimationStyleProps=function(){return os},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=2|An}(),e}(vo),us=new sn(0,0,0,0),cs=new sn(0,0,0,0);var hs=ls,ps=Math.min,fs=Math.max,ds=Math.sin,gs=Math.cos,ys=2*Math.PI,vs=Ft(),ms=Ft(),xs=Ft();function bs(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=ps(i,r[0]),o=fs(o,r[0]),a=ps(a,r[1]),s=fs(s,r[1]);e[0]=i,e[1]=a,n[0]=o,n[1]=s}}function _s(t,e,n,r,i,o){i[0]=ps(t,n),i[1]=ps(e,r),o[0]=fs(t,n),o[1]=fs(e,r)}var ws=[],Ss=[];function Ms(t,e,n,r,i,o,a,s,l,u){var c=$n,h=Xn,p=c(t,n,i,a,ws);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,ws[f]);l[0]=ps(d,l[0]),u[0]=fs(d,u[0])}p=c(e,r,o,s,Ss);for(f=0;f<p;f++){var g=h(e,r,o,s,Ss[f]);l[1]=ps(g,l[1]),u[1]=fs(g,u[1])}l[0]=ps(t,l[0]),u[0]=fs(t,u[0]),l[0]=ps(a,l[0]),u[0]=fs(a,u[0]),l[1]=ps(e,l[1]),u[1]=fs(e,u[1]),l[1]=ps(s,l[1]),u[1]=fs(s,u[1])}function Is(t,e,n,r,i,o,a,s){var l=rr,u=er,c=fs(ps(l(t,n,i),1),0),h=fs(ps(l(e,r,o),1),0),p=u(t,n,i,c),f=u(e,r,o,h);a[0]=ps(t,i,p),a[1]=ps(e,o,f),s[0]=fs(t,i,p),s[1]=fs(e,o,f)}function Ts(t,e,n,r,i,o,a,s,l){var u=ce,c=he,h=Math.abs(i-o);if(h%ys<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(vs[0]=gs(i)*n+t,vs[1]=ds(i)*r+e,ms[0]=gs(o)*n+t,ms[1]=ds(o)*r+e,u(s,vs,ms),c(l,vs,ms),(i%=ys)<0&&(i+=ys),(o%=ys)<0&&(o+=ys),i>o&&!a?o+=ys:i<o&&a&&(i+=ys),a){var p=o;o=i,i=p}for(var f=0;f<o;f+=Math.PI/2)f>i&&(xs[0]=gs(f)*n+t,xs[1]=ds(f)*r+e,u(s,xs,s),c(l,xs,l))}var As={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Cs=[],ks=[],Os=[],Ds=[],Ps=[],Ls=[],Es=Math.min,Ns=Math.max,Rs=Math.cos,zs=Math.sin,js=Math.abs,Bs=Math.PI,Vs=2*Bs,Fs="undefined"!==typeof Float32Array,Gs=[];function Hs(t){return Math.round(t/Bs*1e8)/1e8%2*Bs}function Ws(t,e){var n=Hs(t[0]);n<0&&(n+=Vs);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=Vs?i=n+Vs:e&&n-i>=Vs?i=n-Vs:!e&&n>i?i=n+(Vs-Hs(n-i)):e&&n<i&&(i=n-(Vs-Hs(i-n))),t[0]=n,t[1]=i}var Us=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=[])}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=js(n/zi/t)||0,this._uy=js(n/zi/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(As.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=js(t-this._xi),r=js(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(As.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(As.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(As.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(),Gs[0]=r,Gs[1]=i,Ws(Gs,o),r=Gs[0];var a=(i=Gs[1])-r;return this.addData(As.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=Rs(i)*n+t,this._yi=zs(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(As.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(As.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||!Fs||(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();Fs&&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,Fs&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Os[0]=Os[1]=Ps[0]=Ps[1]=Number.MAX_VALUE,Ds[0]=Ds[1]=Ls[0]=Ls[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 As.M:n=i=e[t++],r=o=e[t++],Ps[0]=i,Ps[1]=o,Ls[0]=i,Ls[1]=o;break;case As.L:_s(n,r,e[t],e[t+1],Ps,Ls),n=e[t++],r=e[t++];break;case As.C:Ms(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Ps,Ls),n=e[t++],r=e[t++];break;case As.Q:Is(n,r,e[t++],e[t++],e[t],e[t+1],Ps,Ls),n=e[t++],r=e[t++];break;case As.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=Rs(p)*c+l,o=zs(p)*h+u),Ts(l,u,c,h,p,f,d,Ps,Ls),n=Rs(f)*c+l,r=zs(f)*h+u;break;case As.R:_s(i=n=e[t++],o=r=e[t++],i+e[t++],o+e[t++],Ps,Ls);break;case As.Z:n=i,r=o}ce(Os,Os,Ps),he(Ds,Ds,Ls)}return 0===t&&(Os[0]=Os[1]=Ds[0]=Ds[1]=0),new sn(Os[0],Os[1],Ds[0]-Os[0],Ds[1]-Os[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 As.M:i=a=t[h++],o=s=t[h++];break;case As.L:var g=t[h++],y=(x=t[h++])-o;(js(k=g-i)>n||js(y)>r||h===e-1)&&(d=Math.sqrt(k*k+y*y),i=g,o=x);break;case As.C:var v=t[h++],m=t[h++],x=(g=t[h++],t[h++]),b=t[h++],_=t[h++];d=tr(i,o,v,m,g,x,b,_,10),i=b,o=_;break;case As.Q:d=ar(i,o,v=t[h++],m=t[h++],g=t[h++],x=t[h++],10),i=g,o=x;break;case As.A:var w=t[h++],S=t[h++],M=t[h++],I=t[h++],T=t[h++],A=t[h++],C=A+T;h+=1;t[h++];f&&(a=Rs(T)*M+w,s=zs(T)*I+S),d=Ns(M,I)*Es(Vs,Math.abs(A)),i=Rs(C)*M+w,o=zs(C)*I+S;break;case As.R:a=i=t[h++],s=o=t[h++],d=2*t[h++]+2*t[h++];break;case As.Z:var k=a-i;y=s-o;d=Math.sqrt(k*k+y*y),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,y=e<1,v=0,m=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var b=0;b<g;){var _=p[b++],w=1===b;switch(w&&(n=i=p[b],r=o=p[b+1]),_!==As.L&&x>0&&(t.lineTo(c,h),x=0),_){case As.M:n=i=p[b++],r=o=p[b++],t.moveTo(i,o);break;case As.L:a=p[b++],s=p[b++];var S=js(a-i),M=js(s-o);if(S>f||M>d){if(y){if(v+(X=l[m++])>u){var I=(u-v)/X;t.lineTo(i*(1-I)+a*I,o*(1-I)+s*I);break t}v+=X}t.lineTo(a,s),i=a,o=s,x=0}else{var T=S*S+M*M;T>x&&(c=a,h=s,x=T)}break;case As.C:var A=p[b++],C=p[b++],k=p[b++],O=p[b++],D=p[b++],P=p[b++];if(y){if(v+(X=l[m++])>u){Jn(i,A,k,D,I=(u-v)/X,Cs),Jn(o,C,O,P,I,ks),t.bezierCurveTo(Cs[1],ks[1],Cs[2],ks[2],Cs[3],ks[3]);break t}v+=X}t.bezierCurveTo(A,C,k,O,D,P),i=D,o=P;break;case As.Q:A=p[b++],C=p[b++],k=p[b++],O=p[b++];if(y){if(v+(X=l[m++])>u){ir(i,A,k,I=(u-v)/X,Cs),ir(o,C,O,I,ks),t.quadraticCurveTo(Cs[1],ks[1],Cs[2],ks[2]);break t}v+=X}t.quadraticCurveTo(A,C,k,O),i=k,o=O;break;case As.A:var L=p[b++],E=p[b++],N=p[b++],R=p[b++],z=p[b++],j=p[b++],B=p[b++],V=!p[b++],F=N>R?N:R,G=js(N-R)>.001,H=z+j,W=!1;if(y)v+(X=l[m++])>u&&(H=z+j*(u-v)/X,W=!0),v+=X;if(G&&t.ellipse?t.ellipse(L,E,N,R,B,z,H,V):t.arc(L,E,F,z,H,V),W)break t;w&&(n=Rs(z)*N+L,r=zs(z)*R+E),i=Rs(H)*N+L,o=zs(H)*R+E;break;case As.R:n=i=p[b],r=o=p[b+1],a=p[b++],s=p[b++];var U=p[b++],Z=p[b++];if(y){if(v+(X=l[m++])>u){var Y=u-v;t.moveTo(a,s),t.lineTo(a+Es(Y,U),s),(Y-=U)>0&&t.lineTo(a+U,s+Es(Y,Z)),(Y-=Z)>0&&t.lineTo(a+Ns(U-Y,0),s+Z),(Y-=U)>0&&t.lineTo(a,s+Ns(Z-Y,0));break t}v+=X}t.rect(a,s,U,Z);break;case As.Z:if(y){var X;if(v+(X=l[m++])>u){I=(u-v)/X;t.lineTo(i*(1-I)+n*I,o*(1-I)+r*I);break t}v+=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=As,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Zs=Us;function Ys(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 Xs(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)&&Qn(t,e,n,r,i,o,a,s,u,c,null)<=h/2}function qs(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)&&or(t,e,n,r,i,o,s,l,null)<=u/2}var Ks=2*Math.PI;function $s(t){return(t%=Ks)<0&&(t+=Ks),t}var Js=2*Math.PI;function Qs(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)%Js<1e-4)return!0;
vendor: 5,696 bytes, line 2
2if(o){var h=r;r=$s(i),i=$s(h)}else r=$s(r),i=$s(i);r>i&&(i+=Js);var p=Math.atan2(l,s);return p<0&&(p+=Js),p>=r&&p<=i||p+Js>=r&&p+Js<=i}function tl(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 el=Zs.CMD,nl=2*Math.PI,rl=1e-4;var il=[-1,-1,-1],ol=[-1,-1];function al(){var t=ol[0];ol[0]=ol[1],ol[1]=t}function sl(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=Kn(e,r,o,s,u,il);if(0===c)return 0;for(var h=0,p=-1,f=void 0,d=void 0,g=0;g<c;g++){var y=il[g],v=0===y||1===y?.5:1;Xn(t,n,i,a,y)<l||(p<0&&(p=$n(e,r,o,s,ol),ol[1]<ol[0]&&p>1&&al(),f=Xn(e,r,o,s,ol[0]),p>1&&(d=Xn(e,r,o,s,ol[1]))),2===p?y<ol[0]?h+=f<e?v:-v:y<ol[1]?h+=d<f?v:-v:h+=s<d?v:-v:y<ol[0]?h+=f<e?v:-v:h+=s<f?v:-v)}return h}function ll(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(Zn(o))Yn(a)&&(c=-s/a)>=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(Zn(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,h=jn(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,il);if(0===l)return 0;var u=rr(e,r,o);if(u>=0&&u<=1){for(var c=0,h=er(e,r,o,u),p=0;p<l;p++){var f=0===il[p]||1===il[p]?.5:1;er(t,n,i,il[p])<a||(il[p]<u?c+=h<e?f:-f:c+=o<h?f:-f)}return c}f=0===il[0]||1===il[0]?.5:1;return er(t,n,i,il[0])<a?0:o<e?f:-f}function ul(t,e,n,r,i,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);il[0]=-l,il[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=nl-1e-4){r=0,i=nl;var c=o?1:-1;return a>=il[0]+t&&a<=il[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=nl,i+=nl);for(var p=0,f=0;f<2;f++){var d=il[f];if(d+t>a){var g=Math.atan2(s,d);c=o?1:-1;g<0&&(g=nl+g),(g>=r&&g<=i||g+nl>=r&&g+nl<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),p+=c)}}return p}function cl(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,y=0;y<c;){var v=u[y++],m=1===y;switch(v===el.M&&y>1&&(n||(h+=tl(p,f,d,g,r,i))),m&&(d=p=u[y],g=f=u[y+1]),v){case el.M:p=d=u[y++],f=g=u[y++];break;case el.L:if(n){if(Ys(p,f,u[y],u[y+1],e,r,i))return!0}else h+=tl(p,f,u[y],u[y+1],r,i)||0;p=u[y++],f=u[y++];break;case el.C:if(n){if(Xs(p,f,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],e,r,i))return!0}else h+=sl(p,f,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],r,i)||0;p=u[y++],f=u[y++];break;case el.Q:if(n){if(qs(p,f,u[y++],u[y++],u[y],u[y+1],e,r,i))return!0}else h+=ll(p,f,u[y++],u[y++],u[y],u[y+1],r,i)||0;p=u[y++],f=u[y++];break;case el.A:var x=u[y++],b=u[y++],_=u[y++],w=u[y++],S=u[y++],M=u[y++];y+=1;var I=!!(1-u[y++]);o=Math.cos(S)*_+x,a=Math.sin(S)*w+b,m?(d=o,g=a):h+=tl(p,f,o,a,r,i);var T=(r-x)*w/_+x;if(n){if(Qs(x,b,w,S,S+M,I,e,T,i))return!0}else h+=ul(x,b,w,S,S+M,I,T,i);p=Math.cos(S+M)*_+x,f=Math.sin(S+M)*w+b;break;case el.R:if(d=p=u[y++],g=f=u[y++],o=d+u[y++],a=g+u[y++],n){if(Ys(d,g,o,g,e,r,i)||Ys(o,g,o,a,e,r,i)||Ys(o,a,d,a,e,r,i)||Ys(d,a,d,g,e,r,i))return!0}else h+=tl(o,g,o,a,r,i),h+=tl(d,a,d,g,r,i);break;case el.Z:if(n){if(Ys(p,f,d,g,e,r,i))return!0}else h+=tl(p,f,d,g,r,i);p=d,f=g}}return n||(s=f,l=g,Math.abs(s-l)<rl)||(h+=tl(p,f,d,g,r,i)||0),0!==h}var hl=Z({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},is),pl={style:Z({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},os.style)},fl=Xi.concat(["invisible","culling","z","z2","zlevel","parent"]),dl=function(t){function e(e){return t.call(this,e)||this}return Vt(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<fl.length;++s)i[fl[s]]=this[fl[s]];i.__dirty|=An}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=rt(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?U(this.style,a):this.useStyle(a):"shape"===o?U(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(lt(t)){var e=zr(t,0);return e>.5?ji:e>.2?"#eee":Bi}if(t)return Bi}return ji},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(lt(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===zr(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Cn},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 Zs(!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||this.__dirty&Cn)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect
vendor: 4,743 bytes, line 2
2()}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 cl(t,e,!0,n,r)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return cl(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Cn,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:U(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Cn)},e.prototype.createStyle=function(t){return Et(hl,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=U({},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,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=U({},r.shape),U(s,n.shape)):(s=U({},i?this.shape:r.shape),U(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=U({},this.shape);for(var u={},c=rt(s),h=0;h<c.length;h++){var p=c[h];"object"===typeof s[p]?this.shape[p]=s[p]:u[p]=s[p]}this._transitionState(e,{shape:u},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 pl},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 Vt(n,e),n.prototype.getDefaultStyle=function(){return G(t.style)},n.prototype.getDefaultShape=function(){return G(t.shape)},n}(e);for(var r in t)"function"===typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=2|An|Cn}(),e}(hs),gl=dl,yl=Z({strokeFirst:!0,font:M,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},hl),vl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vt(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 Et(yl,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=to(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}(hs);vl.prototype.type="tspan";var ml=vl,xl=Z({x:0,y:0},is),bl={style:Z({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},os.style)};var _l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vt(e,t),e.prototype.createStyle=function(t){return Et(xl,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 bl},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new sn(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(hs);_l.prototype.type="image";var wl=_l;var Sl=Math.round;
vendor: 1,481 bytes, line 2
2function Ml(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?(Sl(2*r)===Sl(2*i)&&(t.x1=t.x2=Tl(r,s,!0)),Sl(2*o)===Sl(2*a)&&(t.y1=t.y2=Tl(o,s,!0)),t):t}}function Il(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=Tl(r,s,!0),t.y=Tl(i,s,!0),t.width=Math.max(Tl(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Tl(i+a,s,!1)-t.y,0===a?0:1),t):t}}function Tl(t,e,n){if(!e)return t;var r=Sl(2*t);return(r+Sl(e))%2===0?r/2:(r+(n?1:-1))/2}var Al=function(){this.x=0,this.y=0,this.width=0,this.height=0},Cl={},kl=function(t){function e(e){return t.call(this,e)||this}return Vt(e,t),e.prototype.getDefaultShape=function(){return new Al},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=Il(Cl,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
vendor: 24,459 bytes, line 2
2+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}(gl);kl.prototype.type="rect";var Ol=kl,Dl={fill:"#000"},Pl={style:Z({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},os.style)},Ll=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Dl,n.attr(e),n}return Vt(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,Vl(t=this.style),J(t.rich,Vl),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 sn(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||Dl},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 U(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=rt(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},U(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return Pl},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||M,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=ro(o),l=bt(e.lineHeight,s),u=!!e.backgroundColor,c="truncate"===e.lineOverflow,h=e.width,p=(n=null==h||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?ns(t,e.font,h,"breakAll"===r,0).lines:[]).length*l,f=bt(e.height,p);if(p>f&&c){var d=Math.floor(f/l);n=n.slice(0,d)}if(t&&a&&null!=h)for(var g=Ya(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;y<n.length;y++)n[y]=Xa(n[y],g);var v=f,m=0;for(y=0;y<n.length;y++)m=Math.max(Ji(n[y],o),m);null==h&&(h=m);var x=m;return i&&(v+=i[0]+i[2],x+=i[1]+i[3],h+=i[1]+i[3]),u&&(x=h),{lines:n,height:f,outerWidth:x,outerHeight:v,lineHeight:l,calculatedLineHeight:s,contentWidth:m,contentHeight:p,width:h}}(Wl(t),t),i=Ul(t),o=!!t.backgroundColor,a=r.outerHeight,s=r.outerWidth,l=r.contentWidth,u=r.lines,c=r.lineHeight,h=this._defaultStyle,p=t.x||0,f=t.y||0,d=t.align||h.align||"left",g=t.verticalAlign||h.verticalAlign||"top",y=p,v=no(f,r.contentHeight,g);if(i||n){var m=eo(p,s,d),x=no(f,a,g);i&&this._renderBackground(t,t,m,x,s,a)}v+=c/2,n&&(y=Hl(p,d,n),"top"===g?v+=n[0]:"bottom"===g&&(v-=n[2]));for(var b=0,_=!1,w=(Gl("fill"in t?t.fill:(_=!0,h.fill))),S=(Fl("stroke"in t?t.stroke:o||h.autoStroke&&!_?null:(b=2,h.stroke))),I=t.textShadowBlur>0,T=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),A=r.calculatedLineHeight,C=0;C<u.length;C++){var k=this._getOrCreateChild(ml),O=k.createStyle();k.useStyle(O),O.text=u[C],O.x=y,O.y=v,d&&(O.textAlign=d),O.textBaseline="middle",O.opacity=t.opacity,O.strokeFirst=!0,I&&(O.shadowBlur=t.textShadowBlur||0,O.shadowColor=t.textShadowColor||"transparent",O.shadowOffsetX=t.textShadowOffsetX||0,O.shadowOffsetY=t.textShadowOffsetY||0),O.stroke=S,O.fill=w,S&&(O.lineWidth=t.lineWidth||b,O.lineDash=t.lineDash,O.lineDashOffset=t.lineDashOffset||0),O.font=e,jl(O,t),v+=c,T&&k.setBoundingRect(new sn(eo(O.x,t.width,O.textAlign),no(O.y,A,O.textBaseline),l,A))}},e.prototype._updateRichTexts=function(){var t=this.style,e=function(t,e){var n=new Ja;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},l=Ua.lastIndex=0;null!=(r=Ua.exec(t));){var u=r.index;u>l&&Qa(n,t.substring(l,u),e,s),Qa(n,r[2],e,s,r[1]),l=Ua.lastIndex}l<t.length&&Qa(n,t.substring(l,t.length),e,s);var c=[],h=0,p=0,f=e.padding,d="truncate"===a,g="truncate"===e.lineOverflow;function y(t,e,n){t.width=e,t.lineHeight=n,h+=n,p=Math.max(p,e)}t:for(var v=0;v<n.lines.length;v++){for(var m=n.lines[v],x=0,b=0,_=0;_<m.tokens.length;_++){var w=(P=m.tokens[_]).styleName&&e.rich[P.styleName]||{},S=P.textPadding=w.padding,M=S?S[1]+S[3]:0,I=P.font=w.font||e.font;P.contentHeight=ro(I);var T=bt(w.height,P.contentHeight);if(P.innerHeight=T,S&&(T+=S[0]+S[2]),P.height=T,P.lineHeight=_t(w.lineHeight,e.lineHeight,T),P.align=w&&w.align||e.align,P.verticalAlign=w&&w.verticalAlign||"middle",g&&null!=o&&h+P.lineHeight>o){_>0?(m.tokens=m.tokens.slice(0,_),y(m,b,x),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break t}var A=w.width,C=null==A||"auto"===A;if("string"===typeof A&&"%"===A.charAt(A.length-1))P.percentWidth=A,c.push(P),P.contentWidth=Ji(P.text,I);else{if(C){var k=w.backgroundColor,O=k&&k.image;O&&Wa(O=Fa(O))&&(P.width=Math.max(P.width,O.width*T/O.height))}var D=d&&null!=i?i-b:null;null!=D&&D<P.width?!C||D<M?(P.text="",P.width=P.contentWidth=0):(P.text=Za(P.text,D-M,I,e.ellipsis,{minChar:e.truncateMinChar}),P.width=P.contentWidth=Ji(P.text,I)):P.contentWidth=Ji(P.text,I)}P.width+=M,b+=P.width,w&&(x=Math.max(x,P.lineHeight))}y(m,b,x)}for(n.outerWidth=n.width=bt(i,p),n.outerHeight=n.height=bt(o,h),n.contentHeight=h,n.contentWidth=p,f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]),v=0;v<c.length;v++){var P,L=(P=c[v]).percentWidth;P.width=parseInt(L,10)/100*n.width}return n}(Wl(t),t),n=e.width,r=e.outerWidth,i=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,c=t.verticalAlign||l.verticalAlign,h=eo(a,r,u),p=no(s,i,c),f=h,d=p;o&&(f+=o[3],d+=o[0]);var g=f+n;Ul(t)&&this._renderBackground(t,t,h,p,r,i);for(var y=!!t.backgroundColor,v=0;v<e.lines.length;v++){for(var m=e.lines[v],x=m.tokens,b=x.length,_=m.lineHeight,w=m.width,S=0,M=f,I=g,T=b-1,A=void 0;S<b&&(!(A=x[S]).align||"left"===A.align);)this._placeToken(A,t,_,d,M,"left",y),w-=A.width,M+=A.width,S++;for(;T>=0&&"right"===(A=x[T]).align;)this._placeToken(A,t,_,d,I,"right",y),w-=A.width,I-=A.width,T--;for(M+=(n-(M-f)-(g-I)-w)/2;S<=T;)A=x[S],this._placeToken(A,t,_,d,M+A.width/2,"center",y),M+=A.width,S++;d+=_}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2),!t.isLineHolder&&Ul(s)&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(i=Hl(i,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var p=this._getOrCreateChild(ml),f=p.createStyle();p.useStyle(f);var d=this._defaultStyle,g=!1,y=0,v=Gl("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,d.fill)),m=Fl("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||d.autoStroke&&!g?null:(y=2,d.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=i,f.y=u,x&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||M,f.opacity=_t(s.opacity,e.opacity,1),jl(f,s),m&&(f.lineWidth=_t(s.lineWidth,e.lineWidth,y),f.lineDash=bt(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=m),v&&(f.fill=v);var b=t.contentWidth,_=t.contentHeight;p.setBoundingRect(new sn(eo(f.x,b,f.textAlign),no(f.y,_,f.textBaseline),b,_))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,p=u&&u.image,f=u&&!p,d=t.borderRadius,g=this;if(f||t.lineHeight||c&&h){(a=this._getOrCreateChild(Ol)).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=d,a.dirtyShape()}if(f)(l=a.style).fill=u||null,l.fillOpacity=bt(t.fillOpacity,1);else if(p){(s=this._getOrCreateChild(wl)).onload=function(){g.dirtyStyle()};var v=s.style;v.image=u.image,v.x=n,v.y=r,v.width=i,v.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=bt(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=_t(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return Bl(t)&&(e=[t.fontStyle,t.fontWeight,zl(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&It(e)||t.textFont||t.font},e}(hs),El={left:!0,right:1,center:1},Nl={top:1,bottom:1,middle:1},Rl=["fontStyle","fontWeight","fontSize","fontFamily"];function zl(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?w+"px":t+"px":t}function jl(t,e){for(var n=0;n<Rl.length;n++){var r=Rl[n],i=e[r];null!=i&&(t[r]=i)}}function Bl(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Vl(t){if(t){t.font=Ll.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||El[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||Nl[n]?n:"top",t.padding&&(t.padding=St(t.padding))}}function Fl(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Gl(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Hl(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Wl(t){var e=t.text;return null!=e&&(e+=""),e}function Ul(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Zl=Ll,Yl=va(),Xl=function(t,e,n,r){if(r){var i=Yl(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,"group"===r.type&&r.traverse((function(r){var i=Yl(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e}))}},ql=1,Kl={},$l=va(),Jl=va(),Ql=0,tu=1,eu=2,nu=["emphasis","blur","select"],ru=["normal","emphasis","blur","select"],iu=10,ou=9,au="highlight",su="downplay",lu="select",uu="unselect",cu="toggleSelect";function hu(t){return null!=t&&"none"!==t}var pu=new fr(100);function fu(t){if(lt(t)){var e=pu.get(t);return e||(e=Cr(t,-.1),pu.put(t,e)),e}if(gt(t)){var n=U({},t);return n.colorStops=Q(t.colorStops,(function(t){return{offset:t.offset,color:Cr(t.color,-.1)}})),n}return t}function du(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function gu(t){du(t,"emphasis",eu)}function yu(t){t.hoverState===eu&&du(t,"normal",Ql)}function vu(t){du(t,"blur",tu)}function mu(t){t.hoverState===tu&&du(t,"normal",Ql)}function xu(t){t.selected=!0}function bu(t){t.selected=!1}function _u(t,e,n){e(t,n)}function wu(t,e,n){_u(t,e,n),t.isGroup&&t.traverse((function(t){_u(t,e,n)}))}function Su(t,e){switch(e){case"emphasis":t.hoverState=eu;break;case"normal":t.hoverState=Ql;break;case"blur":t.hoverState=tu;break;case"select":t.selected=!0}}function Mu(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,r){var i=n&&X(n,"select")>=0,o=!1;if(t instanceof gl){var a=$l(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(hu(s)||hu(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(o=!0,r=U({},r),(u=U({},u)).fill=s):!hu(u.fill)&&hu(s)?(o=!0,r=U({},r),(u=U({},u)).fill=fu(s)):!hu(u.stroke)&&hu(l)&&(o||(r=U({},r),u=U({},u)),u.stroke=fu(l)),r.style=u}}if(r&&null==r.z2){o||(r=U({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:iu)}return r}(this,0,e,n);if("blur"===t)return function(t,e,n){var r=X(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=U({},n),a=U({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=U({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:ou)}return n}(this,0,n)}return n}function Iu(t){t.stateProxy=Mu;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Mu),n&&(n.stateProxy=Mu)}function Tu(t,e){!Eu(t,e)&&!t.__highByOuter&&wu(t,gu)}function Au(t,e){!Eu(t,e)&&!t.__highByOuter&&wu(t,yu)}function Cu(t,e){t.__highByOuter|=1<<(e||0),wu(t,gu)}function ku(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&wu(t,yu)}function Ou(t){wu(t,vu)}function Du(t){wu(t,mu)}function Pu(t){wu(t,xu)}function Lu(t){wu(t,bu)}function Eu(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Nu(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=Jl(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){mu(t)})),a&&n.push(i)),o.isBlured=!1})),J(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Ru(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&&Du(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 l=[];i.eachSeries((function(t){var i=a===t,u=t.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!i||"coordinateSystem"===n&&!(u&&s?u===s:i)||"series"===e&&i)){if(r.getViewOfSeriesModel(t).group.traverse((function(t){t.__highByOuter&&i&&"self"===e||vu(t)})),$(e))o(t.getData(),e);else if(ht(e))for(var c=rt(e),h=0;h<c.length;h++)o(t.getData(c[h]),e[c[h]]);l.push(t),Jl(t).isBlured=!0}})),i.eachComponent((function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}}))}}function zu(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){Jl(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(t){vu(t)}))}}}function ju(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"===Yl(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function Bu(t){J(t.getAllData(),(function(e){var n=e.data,r=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,r)?Pu(e):Lu(e)}))}))}function Vu(t){var e=[];return t.eachSeries((function(t){J(t.getAllData(),(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 Fu(t,e,n){Yu(t,!0),wu(t,Iu),Hu(t,e,n)}function Gu(t,e,n,r){r?function(t){Yu(t,!1)}(t):Fu(t,e,n)}function Hu(t,e,n){var r=Yl(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var Wu=["emphasis","blur","select"],Uu={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Zu(t,e,n,r){n=n||"itemStyle";for(var i=0;i<Wu.length;i++){var o=Wu[i],a=e.getModel([o,n]);t.ensureState(o).style=r?r(a):a[Uu[n]]()}}function Yu(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 Xu(t){return!(!t||!t.__highDownDispatcher)}function qu(t){var e=t.type;return e===lu||e===uu||e===cu}function Ku(t){var e=t.type;return e===au||e===su}var $u=va();function Ju(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 l=void 0,u=void 0,c=void 0;return r?(l=bt(r.duration,200),u=bt(r.easing,"cubicOut"),c=0):(l=e.getShallow(s?"animationDurationUpdate":"animationDuration"),u=e.getShallow(s?"animationEasingUpdate":"animationEasing"),c=e.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),st(c)&&(c=c(n,i)),st(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}function Qu(t,e,n,r,i,o,a){var s,l=!1;st(i)?(a=o,o=i,i=null):ht(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=Ju(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var h={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,h):e.animateTo(n,h)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function tc(t,e,n,r,i,o){Qu("update",t,e,n,r,i,o)}function ec(t,e,n,r,i,o){Qu("enter",t,e,n,r,i,o)}function nc(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 rc(t,e,n,r,i,o){nc(t)||Qu("leave",t,e,n,r,i,o)}function ic(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),rc(t,{style:{opacity:0}},e,n,r)}function oc(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||ic(t,e,n,r)})):ic(t,e,n,r)}function ac(t){$u(t).oldStyle=t.style}var sc={};function lc(t,e){for(var n=0;n<nu.length;n++){var r=nu[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 uc(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=st(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:r},u=0;u<nu.length;u++){var c=nu[u],h=e[c];l[c]=bt(i?i.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,r)}return l}function cc(t,e,n,r){n=n||sc;for(var i=t instanceof Zl,o=!1,a=0;a<ru.length;a++){if((p=e[ru[a]])&&p.getShallow("show")){o=!0;break}}var s=i?t:t.getTextContent();if(o){i||(s||(s=new Zl,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=uc(n,e),u=e.normal,c=!!u.getShallow("show"),h=pc(u,r&&r.normal,n,!1,!i);h.text=l.normal,i||t.setTextConfig(fc(u,n,!1));for(a=0;a<nu.length;a++){var p,f=nu[a];if(p=e[f]){var d=s.ensureState(f),g=!!bt(p.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=pc(p,r&&r[f],n,!0,!i),d.style.text=l[f],!i)t.ensureState(f).textConfig=fc(p,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),n.enableTextSetter&&(xc(s).setLabelText=function(t){var r=uc(n,e,t);lc(s,r)})}else s&&(s.ignore=!0);t.dirty()}function hc(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<nu.length;r++){var i=nu[r];n[i]=t.getModel([i,e])}return n}function pc(t,e,n,r,i){var o={};return function(t,e,n,r,i){n=n||sc;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||sc).rich;if(n){e=e||{};for(var r=rt(n),i=0;i<r.length;i++){e[r[i]]=1}}t=t.parentModel}return e}(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);vc(o[u]={},c,s,n,r,i,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var p=e.get("minMargin");null!=p&&(t.margin=p);vc(t,e,s,n,r,i,!0,!1)}(o,t,n,r,i),e&&U(o,e),o}function fc(t,e,n){e=e||{};var r,i={},o=t.getShallow("rotate"),a=bt(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 dc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],gc=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],yc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function vc(t,e,n,r,i,o,a,s){n=!i&&n||sc;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=bt(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c);var p=bt(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var f=bt(e.getShallow("textBorderType"),n.textBorderType);null!=f&&(t.lineDash=f);var d=bt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=d&&(t.lineDashOffset=d),i||null!=h||s||(h=r&&r.defaultOpacity),null!=h&&(t.opacity=h),i||o||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var g=0;g<dc.length;g++){var y=dc[g];null!=(m=bt(e.getShallow(y),n[y]))&&(t[y]=m)}for(g=0;g<gc.length;g++){y=gc[g];null!=(m=e.getShallow(y))&&(t[y]=m)}if(null==t.verticalAlign){var v=e.getShallow("baseline");null!=v&&(t.verticalAlign=v)}if(!a||!r.disableBox){for(g=0;g<yc.length;g++){var m;y=yc[g];null!=(m=e.getShallow(y))&&(t[y]=m)}var x=e.getShallow("borderType");null!=x&&(t.borderDash=x),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function mc(t,e){var n=e&&e.getModel("textStyle");return It([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 xc=va();function bc(t,e,n,r){if(t){var i=xc(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 _c(t,e,n,r,i){var o=xc(t);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=bt(o.interpolatedValue,o.prevValue),l=o.value;t.percent=0,(null==o.prevValue?ec:tc)(t,{percent:1},r,e,null,(function(r){var u=Ta(n,o.precision,s,l,r);o.interpolatedValue=1===r?null:u;var c=uc({labelDataIndex:e,labelFetcher:i,defaultText:a?a(u):u+""},o.statesModels,u);lc(t,c)}))}}var wc=["textStyle","color"],Sc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Mc=new Zl,Ic=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(wc):null)},t.prototype.getFont=function(){return mc({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.get
2Shallow("baseline")},n=0;n<Sc.length;n++)e[Sc[n]]=this.getShallow(Sc[n]);return Mc.useStyle(e),Mc.update(),Mc.getBoundingRect()},t}(),Tc=Ic,Ac=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Cc=za(Ac),kc=function(){function t(){}return t.prototype.getLineStyle=function(t){return Cc(this,t)},t}(),Oc=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Dc=za(Oc),Pc=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Dc(this,t,e)},t}(),Lc=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){H(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)(G(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(!_.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}();Da(Lc),function(t){var e=["__\0is_clz",La++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}(Lc),K(Lc,kc),K(Lc,Pc),K(Lc,Ba),K(Lc,Tc);var Ec=Lc,Nc=Math.round(10*Math.random());function Rc(t){return[t||"",Nc++].join("_")}function zc(t,e){return H(H({},t,!0),e,!0)}var jc="ZH",Bc="EN",Vc=Bc,Fc={},Gc={},Hc=_.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(jc)>-1?jc:Vc;function Wc(t,e){t=t.toUpperCase(),Gc[t]=new Ec(e),Fc[t]=e}function Uc(t){return Gc[t]}Wc(Bc,{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:". "}}}}),Wc(jc,{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u
2661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var Zc=1e3,Yc=60*Zc,Xc=60*Yc,qc=24*Xc,Kc=365*qc,$c={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}"},Jc="{yyyy}-{MM}-{dd}",Qc={year:"{yyyy}",month:"{yyyy}-{MM}",day:Jc,hour:Jc+" "+$c.hour,minute:Jc+" "+$c.minute,second:Jc+" "+$c.second,millisecond:$c.none},th=["year","month","day","hour","minute","second","millisecond"],eh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function nh(t,e){return"0000".substr(0,e-(t+="").length)+t}function rh(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 ih(t){return t===rh(t)}function oh(t,e,n,r){var i=Uo(t),o=i[lh(n)](),a=i[uh(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[ch(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[hh(n)](),h=(c-1)%12+1,p=i[ph(n)](),f=i[fh(n)](),d=i[dh(n)](),g=(r instanceof Ec?r:Uc(r||Hc)||Gc[Vc]).getModel("time"),y=g.get("month"),v=g.get("monthAbbr"),m=g.get("dayOfWeek"),x=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,nh(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,v[a-1]).replace(/{MM}/g,nh(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,nh(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,m[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,nh(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,nh(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,nh(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,nh(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,nh(d,3)).replace(/{S}/g,d+"")}function ah(t,e){var n=Uo(t),r=n[uh(e)]()+1,i=n[ch(e)](),o=n[hh(e)](),a=n[ph(e)](),s=n[fh(e)](),l=0===n[dh(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 sh(t,e,n){var r=ct(t)?Uo(t):t;switch(e=e||ah(t,n)){case"year":return r[lh(n)]();case"half-year":return r[uh(n)]()>=6?1:0;case"quarter":return Math.floor((r[uh(n)]()+1)/4);case"month":return r[uh(n)]();case"day":return r[ch(n)]();case"half-day":return r[hh(n)]()/24;case"hour":return r[hh(n)]();case"minute":return r[ph(n)]();case"second":return r[fh(n)]();case"millisecond":return r[dh(n)]()}}function lh(t){return t?"getUTCFullYear":"getFullYear"}function uh(t){return t?"getUTCMonth":"getMonth"}function ch(t){return t?"getUTCDate":"getDate"}function hh(t){return t?"getUTCHours":"getHours"}function ph(t){return t?"getUTCMinutes":"getMinutes"}function fh(t){return t?"getUTCSeconds":"getSeconds"}function dh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function gh(t){return t?"setUTCFullYear":"setFullYear"}function yh(t){return t?"setUTCMonth":"setMonth"}function vh(t){return t?"setUTCDate":"setDate"}function mh(t){return t?"setUTCHours":"setHours"}function xh(t){return t?"setUTCMinutes":"setMinutes"}function bh(t){return t?"setUTCSeconds":"setSeconds"}function _h(t){return t?"setUTCMilliseconds":"setMilliseconds"}function wh(t){if(!Jo(t))return lt(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Sh(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 Mh=St;function Ih(t,e,n){function r(t){return t&&It(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?Uo(t):t;if(!isNaN(+s))return oh(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return ut(t)?r(t):ct(t)&&i(t)?t+"":"-";var l=$o(t);return i(l)?wh(l):ut(t)?r(t):"boolean"===typeof t?t+"":"-"}var Th=["a","b","c","d","e","f","g"],Ah=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Ch(t,e,n){at(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=Th[o];t=t.replace(Ah(a),Ah(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(Ah(Th[l],s),n?Te(u):u)}return t}function kh(t,e){var n=lt(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:'+Te(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Te(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}}:""}function Oh(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=Uo(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),h=r[i+"Milliseconds"]();return t=t.replace("MM",nh(a,2)).replace("M",a).replace("yyyy",o).replace("yy",nh(o%100+"",2)).replace("dd",nh(s,2)).replace("d",s).replace("hh",nh(l,2)).replace("h",l).replace("mm",nh(u,2)).replace("m",u).replace("ss",nh(c,2)).replace("s",c).replace("SSS",nh(h,3))}function Dh(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Ph(t,e){return e=e||"transparent",lt(t)?t:ht(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Lh(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Eh=J,Nh=["left","right","top","bottom","width","height"],Rh=[["width","left","right"],["height","top","bottom"]];function zh(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;
vendor: 4,924 bytes, line 2
2e.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 y=p.height+(d?-d.y+p.y:0);(h=a+y)>i||l.newline?(o+=s+n,a=0,h=y,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 jh=zh;ot(zh,"vertical"),ot(zh,"horizontal");function Bh(t,e,n){n=Mh(n||0);var r=e.width,i=e.height,o=Po(t.left,r),a=Po(t.top,i),s=Po(t.right,r),l=Po(t.bottom,i),u=Po(t.width,r),c=Po(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 sn(o+n[3],a+n[0],u,c);return d.margin=n,d}function Vh(t,e,n,r,i,o){var a,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new sn(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();(a=a.clone()).applyTransform(c)}var h=Bh(Z({width:a.width,height:a.height},e),n,r),p=s?h.x-a.x:0,f=l?h.y-a.y:0;return"raw"===u?(o.x=p,o.y=f):(o.x+=p,o.y+=f),o===t&&t.markRedraw(),!0}function Fh(t){var e=t.layoutMode||t.constructor.layoutMode;return ht(e)?e:e?{type:e}:null}function Gh(t,e,n){var r=n&&n.ignoreSize;!at(r)&&(r=[r,r]);var i=a(Rh[0],0),o=a(Rh[1],1);function a(n,i){var o={},a=0,u={},c=0;if(Eh(n,(function(e){u[e]=t[e]})),Eh(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),r[i])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;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 u}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){Eh(t,(function(t){e[t]=n[t]}))}u(Rh[0],t,i),u(Rh[1],t,o)}function Hh(t){return Wh({},t)}function Wh(t,e){return e&&t&&Eh(Nh,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var Uh=va(),Zh=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=Rc("ec_cpt_model"),i}return m(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Fh(this),r=n?Hh(t):{};H(t,e.getTheme().get(this.mainType)),H(t,this.getDefaultOption()),n&&Gh(t,r,n)},e.prototype.mergeOption=function(t,e){H(this.option,t,!0);var n=Fh(this);n&&Gh(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t[ka])}(t))return t.defaultOption;var e=Uh(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=H(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return Sa(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Ec);Pa(Zh,Ec),Ra(Zh),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=Oa(t);e[r.main]=n},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=Oa(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}(Zh),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 J(t,(function(o){var a=n(r,o),s=function(t,e){var n=[];return J(t,(function(t){X(e,t)>=0&&n.push(t)})),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&i.push(o),J(s,(function(t){X(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(r,t);X(e.successor,t)<0&&e.successor.push(o)}))})),{graph:r,noEntryList:i}}(r),s=a.graph,l=a.noEntryList,u={};for(J(t,(function(t){u[t]=!0}));l.length;){var c=l.pop(),h=s[c],p=!!u[c];p&&(i.call(o,c,h.originalDeps.slice()),delete u[c]),J(h.successor,p?d:f)}J(u,(function(){throw new Error("")}))}function f(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function d(t){u[t]=!0,f(t)}}}(Zh,(function(t){var e=[];J(Zh.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.depen
2dencies||[])})),e=Q(e,(function(t){return Oa(t).main})),"dataset"!==t&&X(e,"dataset")<=0&&e.unshift("dataset");return e}));var Yh=Zh,Xh="";"undefined"!==typeof navigator&&(Xh=navigator.platform||"");var qh="rgba(0, 0, 0, 0.2)",Kh={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:qh,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:qh,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:qh,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:qh,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:qh,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:qh,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Xh.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},$h=Pt(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Jh="original",Qh="arrayRows",tp="objectRows",ep="keyedColumns",np="typedArray",rp="unknown",ip="column",op="row",ap={Must:1,Might:2,Not:3},sp=va();function lp(t,e,n){var r={},i=cp(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=sp(u).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;J(t=t.slice(),(function(e,n){var i=ht(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=d(i)),r[i.name]=[]}));var p=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function f(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function d(t){var e=t.dimsDef;return e?e.length:1}return J(t,(function(t,e){var n=t.name,i=d(t);if(null==o){var a=p.valueWayDim;f(r[n],a,i),f(l,a,i),p.valueWayDim+=i}else if(o===e)f(r[n],0,i),f(s,0,i);else{a=p.categoryWayDim;f(r[n],a,i),f(l,a,i),p.categoryWayDim+=i}})),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function up(t,e,n){var r={};if(!cp(t))return r;var i,o=e.sourceFormat,a=e.dimensionsDefine;o!==tp&&o!==ep||J(a,(function(t,e){"name"===(ht(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=pp(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(c);var h=c===ap.Not;if(h&&null==t.v&&l!==i&&(t.v=l),(null==t.n||t.n===t.v||!h&&s[t.n]===ap.Not)&&(t.n=l),p(t)&&s[t.n]!==ap.Not)return t;h||(c===ap.Might&&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 l=null!=i?i:s.n;r.itemName=[l],r.seriesName=[l]}return r}function cp(t){if(!t.get("data",!0))return Sa(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},_a).models[0]}function hp(t,e){return pp(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function pp(t,e,n,r,i,o){var a,s,l;if(ft(t))return ap.Not;if(r){var u=r[o];ht(u)?(s=u.name,l=u.type):lt(u)&&(s=u)}if(null!=l)return"ordinal"===l?ap.Must:ap.Not;if(e===Qh){var c=t;if(n===op){for(var h=c[o],p=0;p<(h||[]).length&&p<5;p++)if(null!=(a=x(h[i+p])))return a}else for(p=0;p<c.length&&p<5;p++){var f=c[i+p];if(f&&null!=(a=x(f[o])))return a}}else if(e===tp){var d=t;if(!s)return ap.Not;for(p=0;p<d.length&&p<5;p++){if((v=d[p])&&null!=(a=x(v[s])))return a}}else if(e===ep){var g=t;if(!s)return ap.Not;if(!(h=g[s])||ft(h))return ap.Not;for(p=0;p<h.length&&p<5;p++)if(null!=(a=x(h[p])))return a}else if(e===Jh){var y=t;for(p=0;p<y.length&&p<5;p++){var v,m=la(v=y[p]);if(!at(m))return ap.Not;if(null!=(a=x(m[o])))return a}}function x(t){var e=lt(t);return null!=t&&isFinite(t)&&""!==t?e?ap.Might:ap.Not:e&&"-"!==t?ap.Must:void 0}return ap.Not}var fp=Pt();var dp,gp,yp,vp=va(),mp=va(),xp=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=oa(this.get("color",!0)),i=this.get("colorLayer",!0);return _p(this,vp,r,i,t,e,n)},t.prototype.clearColorPalette=function(){!function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,vp)},t}();function bp(t,e,n,r){var i=oa(t.get(["aria","decal","decals"]));return _p(t,mp,i,null,e,n,r)}function _p(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;
vendor: 9,214 bytes, line 2
2if((c=c||n)&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}var wp="\0_ec_inner";var Sp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new Ec(r),this._locale=new Ec(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=Tp(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Tp(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)):yp(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&&J(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=Pt(),s=e&&e.replaceMergeMainTypeMap;sp(this).datasetMap=Pt(),J(t,(function(t,e){null!=t&&(Yh.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?G(t):H(n[e],t,!0))})),s&&s.each((function(t,e){Yh.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),Yh.topologicalTravel(o,Yh.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var r=fp.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}(this,e,oa(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=ca(a,o,l);(function(t,e,n){J(t,(function(t){var r=t.newOption;ht(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))}))})(u,e,Yh),n[e]=null,r.set(e,null),i.set(e,0);var c,h=[],p=[],f=0;J(u,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=Yh.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(c)return void 0;c=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=U({componentIndex:n},t.keyInfo);U(r=new a(i,this,this,s),s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),p.push(r),f++):(h.push(void 0),p.push(void 0))}),this),n[e]=h,r.set(e,p),i.set(e,f),"series"===e&&dp(this)}),this),this._seriesIndices||dp(this)},e.prototype.getOption=function(){var t=G(this.option);return J(t,(function(e,n){if(Yh.hasClass(n)){for(var r=oa(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!ga(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t[wp],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=[],J(oa(r),(function(t){a[t]&&n.push(a[t])}))):n=null!=i?Mp("id",i,a):null!=o?Mp("name",o,a):et(a,(function(t){return!!t})),Ip(n,t)):[]},e.prototype.findComponents=function(t){var e,n=t.query,r=t.mainType,i=function(t){var e=r+"Index",n=r+"Id",i=r+"Name";return!t||null==t[e]&&null==t[n]&&null==t[i]?null:{mainType:r,index:t[e],id:t[n],name:t[i]}}(n),o=i?this.queryComponents(i):et(this._componentsMap.get(r),(function(t){return!!t}));return e=Ip(o,t),t.filter?et(e,t.filter):e},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(st(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=lt(t)?r.get(t):ht(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=fa(t,null);return et(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 et(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return et(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){gp(this),J(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)}),this)},e.prototype.eachRawSeries=function(t,e){J(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){gp(this),J(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 J(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return gp(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){gp(this);var n=[];J(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=Pt(n)},e.prototype.restoreData=function(t){dp(this);var e=this._componentsMap,n=[];e.each((function(t,e){Yh.hasClass(e)&&n.push(e)})),Yh.topologicalTravel(n,Yh.getAllClassMainTypes(),(function(n){J(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=(dp=function(t){var e=t._seriesIndices=[];J(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Pt(e)},gp=function(t){},void(yp=function(t,e){t.option={},t.option[wp]=1,t._componentsMap=Pt({series:[]}),t._componentsCount=Pt();var n=e.aria;ht(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;J(e,(function(e,r){"colorLayer"===r&&n||Yh.hasClass(r)||("object"===typeof e?t[r]=t[r]?H(t[r],e,!1):G(e):null==t[r]&&(t[r]=e))}))}(e,t._theme.option),H(e,Kh,!1),t._mergeOption(e,null)})),e}(Ec);function Mp(t,e,n){if(at(e)){var r=Pt();return J(e,(function(t){null!=t&&(null!=fa(t,null)&&r.set(t,!0))})),et(n,(function(e){return e&&r.get(e[t])}))}var i=fa(e,null);return et(n,(function(e){return e&&null!=i&&e[t]===i}))}function Ip(t,e){return e.hasOwnProperty("subType")?et(t,(function(t){return t&&t.subType===e.subType})):t}function Tp(t){var e=Pt();return t&&J(oa(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}K(Sp,xp);var Ap=Sp,Cp=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],kp=function(t){J(Cp,(function(e){this[e]=it(t[e],t)}),this)},Op={},Dp=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];J(Op,(function(r,i){var o=r.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){J(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){Op[t]=e},t.get=function(t){return Op[t]},t}(),Pp=Dp,Lp=/^(min|max)?(.+)$/,Ep=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(J(oa(t.series),(function(t){t&&t.data&&ft(t.data)&&At(t.data)})),J(oa(t.dataset),(function(t){t&&t.source&&ft(t.source)&&At(t.source)}))),t=G(t);var r=this._optionBackup,i=function(t,e,n){var r,i,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);a?(i=a).timeline||(i.timeline=s):((h||c)&&(t.options=t.media=null),i=t);c&&at(u)&&J(u,(function(t){t&&t.option&&(t.query?o.push(t):r||(r=t))}));function p(t){J(e,(function(e){e(t,n)}))}return p(i),J(l,(function(t){return p(t)})),J(o,(function(t){return p(t.option)})),{baseOption:i,timelineOptions:l||[],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=[],G(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");
vendor: 4,732 bytes, line 2
2r&&(e=G(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=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)Np(o[u].query,r,i)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=Q(s,(function(t){return G(-1===t?a.option:o[t].option)}))),this._currentMediaIndices=s,l},t}();function Np(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return J(t,(function(t,e){var n=e.match(Lp);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 Rp=Ep,zp=J,jp=ht,Bp=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Vp(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=Bp.length;n<r;n++){var i=Bp[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?H(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?H(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function Fp(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,Z(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 Gp(t){Fp(t,"itemStyle"),Fp(t,"lineStyle"),Fp(t,"areaStyle"),Fp(t,"label"),Fp(t,"labelLine"),Fp(t,"upperLabel"),Fp(t,"edgeLabel")}function Hp(t,e){var n=jp(t)&&t[e],r=jp(n)&&n.textStyle;if(r){0;for(var i=0,o=sa.length;i<o;i++){var a=sa[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function Wp(t){t&&(Gp(t),Hp(t,"label"),t.emphasis&&Hp(t.emphasis,"label"))}function Up(t){return at(t)?t:t?[t]:[]}function Zp(t){return(at(t)?t[0]:t)||{}}function Yp(t,e){zp(Up(t.series),(function(t){jp(t)&&function(t){if(jp(t)){Vp(t),Gp(t),Hp(t,"label"),Hp(t,"upperLabel"),Hp(t,"edgeLabel"),t.emphasis&&(Hp(t.emphasis,"label"),Hp(t.emphasis,"upperLabel"),Hp(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Vp(e),Wp(e));var n=t.markLine;n&&(Vp(n),Wp(n));var r=t.markArea;r&&Wp(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!ft(o))for(var a=0;a<o.length;a++)Wp(o[a]);J(t.categories,(function(t){Gp(t)}))}if(i&&!ft(i))for(a=0;a<i.length;a++)Wp(i[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)Wp(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)at(l[a])?(Wp(l[a][0]),Wp(l[a][1])):Wp(l[a])}"gauge"===t.type?(Hp(t,"axisLabel"),Hp(t,"title"),Hp(t,"detail")):"treemap"===t.type?(Fp(t.breadcrumb,"itemStyle"),J(t.levels,(function(t){Gp(t)}))):"tree"===t.type&&Gp(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),zp(n,(function(e){zp(Up(t[e]),(function(t){t&&(Hp(t,"axisLabel"),Hp(t.axisPointer,"label"))}))})),zp(Up(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;Hp(e,"axisLabel"),Hp(e&&e.axisPointer,"label")})),zp(Up(t.calendar),(function(t){Fp(t,"itemStyle"),Hp(t,"dayLabel"),Hp(t,"monthLabel"),Hp(t,"yearLabel")})),zp(Up(t.radar),(function(t){Hp(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)})),zp(Up(t.geo),(function(t){jp(t)&&(Wp(t),zp(Up(t.regions),(function(t){Wp(t)})))})),zp(Up(t.timeline),(function(t){Wp(t),Fp(t,"label"),Fp(t,"itemStyle"),Fp(t,"controlStyle",!0);var e=t.data;at(e)&&J(e,(function(t){ht(t)&&(Fp(t,"label"),Fp(t,"itemStyle"))}))})),zp(Up(t.toolbox),(function(t){Fp(t,"iconStyle"),zp(t.feature,(function(t){Fp(t,"iconStyle")}))})),Hp(Zp(t.axisPointer),"label"),Hp(Zp(t.tooltip).axisPointer,"label")}function Xp(t){t&&J(qp,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var qp=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Kp=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],$p=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Jp(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<$p.length;n++){var r=$p[n][1],i=$p[n][0];null!=e[r]&&(e[i]=e[r])}}function Qp(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function tf(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function ef(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&ef(t[n].children,e)}function nf(t,e){Yp(t,e),t.series=oa(t.series),J(t.series,(function(t){if(ht(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),Q
vendor: 2,117 bytes, line 2
2p(t.label),(i=t.data)&&!ft(i))for(var n=0;n<i.length;n++)Qp(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(Jp(t),Jp(t.backgroundStyle),Jp(t.emphasis),(i=t.data)&&!ft(i))for(n=0;n<i.length;n++)"object"===typeof i[n]&&(Jp(i[n]),Jp(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)),tf(t),ef(t.data,tf)}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&&Z(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),Xp(t)}})),t.dataRange&&(t.visualMap=t.dataRange),J(Kp,(function(e){var n=t[e];n&&(at(n)||(n=[n]),J(n,(function(t){Xp(t)})))}))}function rf(t){J(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 y=t[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var v=y.data.getByRawIndex(y.stackResultDimension,p);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&f>=0&&v>0||"samesign"===l&&f<=0&&v<0){f=Vo(f,v),d=v;break}}}return r[0]=f,r[1]=d,r}))}))}var of,af,sf,lf,uf,cf=function(t){this.data=t.data||(t.sourceFormat===ep?{}:[]),this.sourceFormat=t.sourceFormat||rp,this.seriesLayoutBy=t.seriesLayoutBy||ip,this.startIndex=t.startIndex||
20,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&&hp(this,n)===ap.Must&&(r.type="ordinal")}};function hf(t){return t instanceof cf}function pf(t,e,n){n=n||df(t);var r=e.seriesLayoutBy,i=function(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:gf(i),startIndex:a,dimensionsDetectedCount:o};if(e===Qh){var s=t;"auto"===r||null==r?yf((function(t){null!=t&&"-"!==t&&(lt(t)?null==a&&(a=1):a=0)}),n,s,10):a=ct(r)?r:r?1:0,i||1!==a||(i=[],yf((function(t,e){i[e]=null!=t?t+"":""}),n,s,1/0)),o=i?i.length:n===op?s.length:s[0]?s[0].length:null}else if(e===tp)i||(i=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return rt(e)}(t));else if(e===ep)i||(i=[],J(t,(function(t,e){i.push(e)})));else if(e===Jh){var l=la(t[0]);o=at(l)&&l.length||1}return{startIndex:a,dimensionsDefine:gf(i),dimensionsDetectedCount:o}}(t,n,r,e.sourceHeader,e.dimensions);return new cf({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:G(e)})}function ff(t){return new cf({data:t,sourceFormat:ft(t)?np:Jh})}function df(t){var e=rp;if(ft(t))e=np;else if(at(t)){0===t.length&&(e=Qh);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(at(i)){e=Qh;break}if(ht(i)){e=tp;break}}}}else if(ht(t))for(var o in t)if(Rt(t,o)&&$(t[o])){e=ep;break}return e}function gf(t){if(t){var e=Pt();return Q(t,(function(t,n){var r={name:(t=ht(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 yf(t,e,n,r){if(e===op)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 vf(t){var e=t.sourceFormat;return e===tp||e===ep}var mf=function(){function t(t,e){var n=hf(t)?t:ff(t);this._source=n;var r=this._data=n.data;n.sourceFormat===np&&(this._offset=0,this._dimSize=e,this._data=r),uf(this,r,n)}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=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;uf=function(t,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;if(U(t,lf[Cf(a,s)]),a===np)t.getItem=e,t.count=r,t.fillStorage=n;else{var c=_f(a,s);t.getItem=it(c,null,i,l,u);var h=Mf(a,s);t.count=it(h,null,i,l,u)}};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={})[Qh+"_"+ip]={pure:!0,appendData:i},t[Qh+"_"+op]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[tp]={pure:!0,appendData:i},t[ep]={pure:!0,appendData:function(t){var e=this._data;J(t,(function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])}))}},t[Jh]={appendData:i},t[np]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},lf=t}(),t}(),xf=function(t,e,n,r){return t[r]},bf=((of={})[Qh+"_"+ip]=function(t,e,n,r){return t[r+e]},of[Qh+"_"+op]=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},of[tp]=xf,of[ep]=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},of[Jh]=xf,of);function _f(t,e){return bf[Cf(t,e)]}var wf=function(t,e,n){return t.length},Sf=((af={}
vendor: 8,403 bytes, line 2
2)[Qh+"_"+ip]=function(t,e,n){return Math.max(0,t.length-e)},af[Qh+"_"+op]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},af[tp]=wf,af[ep]=function(t,e,n){var r=t[n[0].name];return r?r.length:0},af[Jh]=wf,af);function Mf(t,e){return Sf[Cf(t,e)]}var If=function(t,e,n){return t[e]},Tf=((sf={})[Qh]=If,sf[tp]=function(t,e,n){return t[n]},sf[ep]=If,sf[Jh]=function(t,e,n){var r=la(t);return r instanceof Array?r[e]:r},sf[np]=If,sf);function Af(t){return Tf[t]}function Cf(t,e){return t===Qh?t+"_"+e:t}function kf(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 Af(o)(r,a,s)}var l=r;return o===Jh&&(l=la(r)),l}}}var Of=/\{@(.+?)\}/g,Df=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&&at(s.value)&&(s.value=s.value[r]),i)||(i=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return st(i)?(s.status=e,s.dimensionIndex=r,i(s)):lt(i)?Ch(i,s).replace(Of,(function(e,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=kf(a,t,i);if(o&&at(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return kf(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function Pf(t){var e,n;return ht(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Lf(t){return new Ef(t)}var Ef=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=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||p<f)){var d=this._progress;if(at(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],p,f,l,u);else this._doProgress(d,p,f,l,u)}this._dueIndex=f;var y=null!=this._settedOutputEnd?this._settedOutputEnd:f;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){Nf.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Nf.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),at(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}(),Nf=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}}();"undefined"!==typeof console&&console.warn&&console.log;function Rf(t){0}function zf(t){throw new Error(t)}function jf(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||ct(t)||null==t||"-"===t||(t=+Uo(t)),null==t||""===t?NaN:+t)}var Bf=Pt({number:function(t){return parseFloat(t)},time:function(t){return+Uo(t)},trim:function(t){return lt(t)?It(t):t}});function Vf(t){return Bf.get(t)}var Ff={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}},Gf=function(){function t(t,e){if(!ct(e)){0,zf("")}this._opFn=Ff[t],this._rvalFloat=$o(e)}return t.prototype.evaluate=function(t){return ct(t)?this._opFn(t,this._rvalFloat):this._opFn($o(t),this._rvalFloat)},t}(),Hf=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=ct(t)?t:$o(t),r=ct(e)?e:$o(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=lt(t),s=lt(e);a&&(n=s?t:0),s&&(r=a?e:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},t}(),Wf=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=$o(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=$o(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function Uf(t,e){return"eq"===t||"ne"===t?new Wf("eq"===t,e):Rt(Ff,t)?new Gf(t,e):null}var Zf=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 jf(t,e)},t}();function Yf(t){if(!Qf(t.sourceFormat)){0,zf("")}return t.data}function Xf(t){var e=t.sourceFormat,n=t.data;if(!Qf(e)){0,zf("")}if(e===Qh){for(var r=[],i=0,o=n.length;i<o;i++)r.push(n[i].slice());return r}if(e===tp){for(r=[],i=0,o=n.length;i<o;i++)r.push(U({},n[i]));return r}}function qf(t,e,n){if(null!=n)return ct(n)||!isNaN(n)&&!Rt(e,n)?t[n]:Rt(e,n)?e[n]:void 0}function Kf(t){return G(t)}var $f=Pt();function Jf(t,e,n,r){e.length||zf(""),ht(t)||zf("");var i=t.type,o=$f.get(i);o||zf("");var a=Q(e,(function(t){return function(t,e){var n=new Zf,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==ip&&zf("");var a=[],s={},l=t.dimensionsDefine;if(l)J(l,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};a.push(r),null!=n&&(Rt(s,n)&&zf(""),s[n]=r)}));else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var c=_f(i,ip);e.__isBuiltIn&&(n.getRawDataItem=function(t){return c(r,o,a,t)},n.getRawData=it(Yf,null,t)),n.cloneRawData=it(Xf,null,t);var h=Mf(i,ip);n.count=it(h,null,r,o,a);var p=Af(i);n.retrieveValue=function(t,e){var n=c(r,o,a,t);return f(n,e)};var f=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];return n?p(t,e,n.name):void 0}};return n.getDimensionInfo=it(qf,null,a,s),n.cloneAllDimensionInfo=it(Kf,null,a),n}(t,o)}));return Q(oa(o.transform({upstream:a[0],upstreamList:a,config:G(t.config)})),(function(t,n){var r;ht(t)||zf(""),t.data||zf(""),Qf(df(t.data))||zf("");var i=e[0];if(i&&0===n&&!t.dimensions){var o=i.startIndex;
vendor: 29,163 bytes, line 2
2o&&(t.data=i.data.slice(0,o).concat(t.data)),r={seriesLayoutBy:ip,sourceHeader:o,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:ip,sourceHeader:0,dimensions:t.dimensions};return pf(t.data,r,null)}))}function Qf(t){return t===Qh||t===tp}var td,ed="undefined",nd=typeof Uint32Array===ed?Array:Uint32Array,rd=typeof Uint16Array===ed?Array:Uint16Array,id=typeof Int32Array===ed?Array:Int32Array,od=typeof Float64Array===ed?Array:Float64Array,ad={float:od,int:id,ordinal:Array,number:Array,time:od};function sd(t){return t>65535?nd:rd}function ld(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function ud(t,e,n,r,i){var o=ad[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 cd=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Pt()}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=td[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];vf(r);this._dimensions=Q(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 ad[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++){ud(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=td.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,l=Q(o,(function(t){return t.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=[1/0,-1/0]),ud(i,u,c.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var h=[],p=t;p<e;p++){h=r.getItem(p,h);for(var f=0;f<a;f++){var d=i[f],g=this._dimValueGetter(h,l[f],p,f);d[p]=g;var y=s[f];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!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=sd(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(sd(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=rt(t),i=r.length;if(!i)return this;var o=e.count(),a=new(sd(e._rawCount))(o),s=0,l=r[0],u=t[l][0],c=t[l][1],h=e._chunks,p=!1;if(!e._indices){var f=0;if(1===i){for(var d=h[r[0]],g=0;g<n;g++){((x=d[g])>=u&&x<=c||isNaN(x))&&(a[s++]=f),f++}p=!0}else if(2===i){d=h[r[0]];var y=h[r[1]],v=t[r[1]][0],m=t[r[1]][1];for(g=0;g<n;g++){var x=d[g],b=y[g];(x>=u&&x<=c||isNaN(x))&&(b>=v&&b<=m||isNaN(b))&&(a[s++]=f),f++}p=!0}}if(!p)if(1===i)for(g=0;g<o;g++){var _=e.getRawIndex(g);((x=h[r[0]][_])>=u&&x<=c||isNaN(x))&&(a[s++]=_)}else for(g=0;g<o;g++){for(var w=!0,S=(_=e.getRawIndex(g),0);S<i;S++){var M=r[S];((x=h[M][_])<t[M][0]||x>t[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}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],y=l[d],v=r[d];v&&(v[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[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(sd(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,y=0,v=f;v<d;v++){var m=a[I=this.getRawIndex(v)];isNaN(m)||(y+=m)}y/=d-f;var x=p,b=Math.min(p+u,s),_=p-1,w=a[c];n=-1,i=x;var S=-1,M=0;for(v=x;v<b;v++){var I;m=a[I=this.getRawIndex(v)];isNaN(m)?(M++,S<0&&(S=I)):(r=Math.abs((_-g)*(m-w)-(_-v)*(y-w)))>n&&(n=r,i=I)}M>0&&M<b-x&&(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(sd(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 y=n(a),v=this.getRawIndex(Math.min(f+r(a,y)||0,u-1));l[v]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[p++]=v}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=new t,i=this._chunks,o=e&&tt(e,(function(t,e){return t[e]=!0,t}),{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?ld(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=G(this._extent),t._rawExtent=G(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 jf(t[r],this._dimensions[r])}td={arrayRows:t,objectRows:function(t,e,n,r){return jf(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return jf(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),hd=cd,pd=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(dd(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=ft(a=o.get("data",!0))?np:Jh,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},p=bt(c.seriesLayoutBy,h.seriesLayoutBy)||null,f=bt(c.sourceHeader,h.sourceHeader),d=bt(c.dimensions,h.dimensions);t=p!==h.seriesLayoutBy||!!f!==!!h.sourceHeader||d?[pf(a,{seriesLayoutBy:p,sourceHeader:f,dimensions:d},s)]:[]}else{var g=n;if(i){var y=this._applyTransform(r);t=y.sourceList,e=y.upstreamSignList}else{t=[pf(g.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&&gd("")}var o,a=[],s=[];return J(t,(function(t){t.prepareSource();var e=t.getSource(i||0);null==i||e||gd(""),a.push(e),s.push(t._getVersionSign())})),r?e=function(t,e,n){var r=oa(t),i=r.length;i||zf("");for(var o=0,a=i;o<a;o++)e=Jf(r[o],e),o!==a-1&&(e.length=Math.max(e.length,1));return e}(r,a,n.componentIndex):null!=i&&(e=[(o=a[0],new cf({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:G(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];dd(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new hd).initData(new mf(e,t.length),t),i[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(dd(t)){var e=cp(t);return e?[e.getSourceManager()]:[]}return Q(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Sa(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},_a).models:[]}(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(dd(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 fd(t){t.option.transform&&At(t.option.transform)}function dd(t){return"series"===t.mainType}function gd(t){throw new Error(t)}var yd="line-height:1";function vd(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:"+Te(r+"")+"px;color:"+Te(n)+";font-weight:"+Te(i+""),valueStyle:"font-size:"+Te(a+"")+"px;color:"+Te(o)+";font-weight:"+Te(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var md=[0,10,20,30],xd=["","\n","\n\n","\n\n\n"];function bd(t,e){return e.type=t,e}function _d(t){return"section"===t.type}function wd(t){return _d(t)?Md:Id}function Sd(t){if(_d(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return J(t.blocks,(function(t){var n=Sd(t);n>=e&&(e=n+ +(r&&(!n||_d(t)&&!t.noHeader)))})),e}return 0}function Md(t,e,n,r){var i,o=e.noHeader,a=(i=Sd(e),{html:md[i],richText:xd[i]}),s=[],l=e.blocks||[];Mt(!l||at(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Rt(c,u)){var h=new Hf(c[u],null);l.sort((function(t,e){return h.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}J(l,(function(n,i){var o=e.valueFormatter,l=wd(n)(o?U(U({},t),{valueFormatter:o}):t,n,i>0?a.html:0,r);null!=l&&s.push(l)}));var p="richText"===t.renderMode?s.join(a.richText):Ad(s.join(""),o?n:a.html);if(o)return p;var f=Ih(e.header,"ordinal",t.useUTC),d=vd(r,t.renderMode).nameStyle;return"richText"===t.renderMode?Cd(t,f,d)+a.richText+p:Ad('<div style="'+d+";"+yd+';">'+Te(f)+"</div>"+p,n)}function Id(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return Q(t=at(t)?t:[t],(function(t,e){return Ih(t,at(f)?f[e]:f,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),p=o?"":Ih(l,"ordinal",u),f=e.valueType,d=a?[]:c(e.value),g=!s||!o,y=!s&&o,v=vd(r,i),m=v.nameStyle,x=v.valueStyle;return"richText"===i?(s?"":h)+(o?"":Cd(t,p,m))+(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(at(e)?e.join(" "):e,o)}(t,d,g,y,x)):Ad((s?"":h)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+Te(t)+"</span>"}(p,!s,m))+(a?"":function(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=at(t)?t:[t],'<span style="'+o+";"+r+'">'+Q(t,(function(t){return Te(t)})).join(" ")+"</span>"}(d,g,y,x)),n)}}function Td(t,e,n,r,i,o){if(t)return wd(t)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Ad(t,e){return'<div style="'+("margin: "+e+"px 0 0")+";"+yd+';">'+t+'<div style="clear:both"></div></div>'}function Cd(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function kd(t,e){return Ph(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Od(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Dd=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Qo()}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=kh({color:e,type:t,renderMode:n,markerId:r});return lt(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};at(e)?J(e,(function(t){return U(n,t)})):U(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function Pd(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),p=at(h),f=kd(o,a);if(c>1||p&&!c){var d=function(t,e,n,r,i){var o=e.getData(),a=tt(t,(function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(bd("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?J(r,(function(t){c(kf(o,n,t),t)})):J(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,f);e=d.inlineValues,n=d.inlineValueTypes,r=d.blocks,i=d.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=kf(l,a,u[0]),n=g.type}else i=e=p?h[0]:h;var y=da(o),v=y&&o.name||"",m=l.getName(a),x=s?v:m;return bd("section",{header:v,noHeader:s||!y,sortParam:i,blocks:[bd("nameValue",{markerType:"item",markerColor:f,name:x,noName:!It(x),value:e,valueType:n})].concat(r||[])})}var Ld=va();function Ed(t,e){return t.getName(e)||t.getId(e)}var Nd="__universalTransitionEnabled",Rd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return m(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Lf({count:jd,reset:Bd}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Ld(this).sourceManager=new pd(this)).prepareSource();var r=this.getInitialData(t,n);Fd(r,this),this.dataTask.context.data=r,Ld(this).dataBeforeProcessed=r,zd(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Fh(this),r=n?Hh(t):{},i=this.subType;Yh.hasClass(i)&&(i+="Series"),H(t,e.getTheme().get(this.subType)),H(t,this.getDefaultOption()),aa(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Gh(t,r,n)},e.prototype.mergeOption=function(t,e){t=H(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Fh(this);n&&Gh(this.option,t,n);var r=Ld(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Fd(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Ld(this).dataBeforeProcessed=i,zd(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!ft(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&aa(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=Hd(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return Ld(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=Hd(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Ld(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Pt(t)},e.prototype.getSourceManager=function(){return Ld(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Ld(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 Pd({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(_.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=xp.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=Ed(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=rt(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[Ed(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Nd])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){ht(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=e[l];s[h=Ed(t,u)]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=Ed(t,c);i.selectedMap=((n={})[h]=!0,n),this._selectedDataIndicesMap=((r={})[h]=t.getRawIndex(c),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 Yh.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(Yh);function zd(t){var e=t.name;da(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return J(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}(t)||e)}function jd(t){return t.model.getRawData().count()}function Bd(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Vd}function Vd(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Fd(t,e){J(Lt(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,ot(Gd,e))}))}function Gd(t,e){var n=Hd(t);return n&&n.setOutputEnd((e||this).count()),e}function Hd(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}}K(Rd,Df),K(Rd,xp),Pa(Rd,Yh);var Wd=Rd,Ud=function(){function t(){this.group=new xo,this.uid=Rc("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}();Da(Ud),Ra(Ud);var Zd=Ud;function Yd(){var t=va();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 Xd=Zs.CMD,qd=[[],[],[]],Kd=Math.sqrt,$d=Math.atan2;function Jd(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=Xd.M,h=Xd.C,p=Xd.L,f=Xd.R,d=Xd.A,g=Xd.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 y=e[4],v=e[5],m=Kd(e[0]*e[0]+e[1]*e[1]),x=Kd(e[2]*e[2]+e[3]*e[3]),b=$d(-e[1]/x,e[0]/m);l[i]*=m,l[i++]+=y,l[i]*=x,l[i++]+=v,l[i++]*=m,l[i++]*=x,l[i++]+=b,l[i++]+=b,o=i+=2;break;case f:s[0]=l[i++],s[1]=l[i++],ue(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],ue(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var _=qd[a];_[0]=l[i++],_[1]=l[i++],ue(_,_,e),l[o++]=_[0],l[o++]=_[1]}}t.increaseVersion()}}var Qd=Math.sqrt,tg=Math.sin,eg=Math.cos,ng=Math.PI;function rg(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ig(t,e){return(t[0]*e[0]+t[1]*e[1])/(rg(t)*rg(e))}function og(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ig(t,e))}function ag(t,e,n,r,i,o,a,s,l,u,c){var h=l*(ng/180),p=eg(h)*(t-n)/2+tg(h)*(e-r)/2,f=-1*tg(h)*(t-n)/2+eg(h)*(e-r)/2,d=p*p/(a*a)+f*f/(s*s);d>1&&(a*=Qd(d),s*=Qd(d));var g=(i===o?-1:1)*Qd((a*a*(s*s)-a*a*(f*f)-s*s*(p*p))/(a*a*(f*f)+s*s*(p*p)))||0,y=g*a*f/s,v=g*-s*p/a,m=(t+n)/2+eg(h)*y-tg(h)*v,x=(e+r)/2+tg(h)*y+eg(h)*v,b=og([1,0],[(p-y)/a,(f-v)/s]),_=[(p-y)/a,(f-v)/s],w=[(-1*p-y)/a,(-1*f-v)/s],S=og(_,w);if(ig(_,w)<=-1&&(S=ng),ig(_,w)>=1&&(S=0),S<0){var M=Math.round(S/ng*1e6)/1e6;S=2*ng+M%2*ng}c.addData(u,m,x,a,s,b,S,h,o)}var sg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,lg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var ug=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vt(e,t),e.prototype.applyTransform=function(t){},e}(gl);function cg(t){return null!=t.setData}function hg(t,e){var n=function(t){var e=new Zs;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Zs.CMD,l=t.match(sg);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(lg)||[],d=f.length,g=0;g<d;g++)f[g]=parseFloat(f[g]);for(var y=0;y<d;){var v=void 0,m=void 0,x=void 0,b=void 0,_=void 0,w=void 0,S=void 0,M=r,I=i,T=void 0,A=void 0;switch(h){case"l":r+=f[y++],i+=f[y++],p=s.L,e.addData(p,r,i);break;case"L":r=f[y++],i=f[y++],p=s.L,e.addData(p,r,i);break;case"m":r+=f[y++],i+=f[y++],p=s.M,e.addData(p,r,i),o=r,a=i,h="l";break;case"M":r=f[y++],i=f[y++],p=s.M,e.addData(p,r,i),o=r,a=i,h="L";break;case"h":r+=f[y++],p=s.L,e.addData(p,r,i);break;case"H":r=f[y++],p=s.L,e.addData(p,r,i);break;case"v":i+=f[y++],p=s.L,e.addData(p,r,i);break;case"V":i=f[y++],p=s.L,e.addData(p,r,i);break;case"C":p=s.C,e.addData(p,f[y++],f[y++],f[y++],f[y++],f[y++],f[y++]),r=f[y-2],i=f[y-1];break;case"c":p=s.C,e.addData(p,f[y++]+r,f[y++]+i,f[y++]+r,f[y++]+i,f[y++]+r,f[y++]+i),r+=f[y-2],i+=f[y-1];break;case"S":v=r,m=i,T=e.len(),A=e.data,n===s.C&&(v+=r-A[T-4],m+=i-A[T-3]),p=s.C,M=f[y++],I=f[y++],r=f[y++],i=f[y++],e.addData(p,v,m,M,I,r,i);break;case"s":v=r,m=i,T=e.len(),A=e.data,n===s.C&&(v+=r-A[T-4],m+=i-A[T-3]),p=s.C,M=r+f[y++],I=i+f[y++],r+=f[y++],i+=f[y++],e.addData(p,v,m,M,I,r,i);break;case"Q":M=f[y++],I=f[y++],r=f[y++],i=f[y++],p=s.Q,e.addData(p,M,I,r,i);break;case"q":M=f[y++]+r,I=f[y++]+i,r+=f[y++],i+=f[y++],p=s.Q,e.addData(p,M,I,r,i);break;case"T":v=r,m=i,T=e.len(),A=e.data,n===s.Q&&(v+=r-A[T-4],m+=i-A[T-3]),r=f[y++],i=f[y++],p=s.Q,e.addData(p,v,m,r,i);break;case"t":v=r,m=i,T=e.len(),A=e.data,n===s.Q&&(v+=r-A[T-4],m+=i-A[T-3]),r+=f[y++],i+=f[y++],p=s.Q,e.addData(p,v,m,r,i);break;case"A":x=f[y++],b=f[y++],_=f[y++],w=f[y++],S=f[y++],ag(M=r,I=i,r=f[y++],i=f[y++],w,S,x,b,_,p=s.A,e);break;case"a":x=f[y++],b=f[y++],_=f[y++],w=f[y++],S=f[y++],ag(M=r,I=i,r+=f[y++],i+=f[y++],w,S,x,b,_,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=U({},e);return r.buildPath=function(t){if(cg(t)){t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){Jd(n,t),this.dirtyShape()},r}function pg(t,e){return new ug(hg(t,e))}function fg(t,e){e=e||{};var n=new gl;
vendor: 5,273 bytes, line 2
2return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?Jd(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 dg=function(){this.cx=0,this.cy=0,this.r=0},gg=function(t){function e(e){return t.call(this,e)||this}return Vt(e,t),e.prototype.getDefaultShape=function(){return new dg},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}(gl);gg.prototype.type="circle";var yg=gg,vg=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},mg=function(t){function e(e){return t.call(this,e)||this}return Vt(e,t),e.prototype.getDefaultShape=function(){return new vg},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}(gl);mg.prototype.type="ellipse";var xg=mg,bg=Math.PI,_g=2*bg,wg=Math.sin,Sg=Math.cos,Mg=Math.acos,Ig=Math.atan2,Tg=Math.abs,Ag=Math.sqrt,Cg=Math.max,kg=Math.min,Og=1e-4;function Dg(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/Ag(s*s+l*l),c=u*l,h=-u*s,p=t+c,f=e+h,d=n+c,g=r+h,y=(p+d)/2,v=(f+g)/2,m=d-p,x=g-f,b=m*m+x*x,_=i-o,w=p*g-d*f,S=(x<0?-1:1)*Ag(Cg(0,_*_*b-w*w)),M=(w*x-m*S)/b,I=(-w*m-x*S)/b,T=(w*x+m*S)/b,A=(-w*m+x*S)/b,C=M-y,k=I-v,O=T-y,D=A-v;return C*C+k*k>O*O+D*D&&(M=T,I=A),{cx:M,cy:I,x0:-c,y0:-h,x1:M*(i/_-1),y1:I*(i/_-1)}}function Pg(t,e){var n,r=Cg(e.r,0),i=Cg(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,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,h=!!e.clockwise,p=Tg(l-s),f=p>_g&&p%_g;if(f>Og&&(p=f),r>Og)if(p>_g-Og)t.moveTo(u+r*Sg(s),c+r*wg(s)),t.arc(u,c,r,s,l,!h),i>Og&&(t.moveTo(u+i*Sg(l),c+i*wg(l)),t.arc(u,c,i,l,s,h));else{var d=void 0,g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,b=void 0,_=void 0,w=void 0,S=void 0,M=void 0,I=void 0,T=void 0,A=void 0,C=void 0,k=void 0,O=r*Sg(s),D=r*wg(s),P=i*Sg(l),L=i*wg(l),E=p>Og;if(E){var N=e.cornerRadius;N&&(n=function(t){var e;if(at(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}(N),d=n[0],g=n[1],y=n[2],v=n[3]);var R=Tg(r-i)/2;if(m=kg(R,y),x=kg(R,v),b=kg(R,d),_=kg(R,g),M=w=Cg(m,x),I=S=Cg(b,_),(w>Og||S>Og)&&(T=r*Sg(l),A=r*wg(l),C=i*Sg(s),k=i*wg(s),p<bg)){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<Og))return[t+(p=(c*(e-o)-h*(t-i))/p)*l,e+p*u]}(O,D,C,k,T,A,P,L);if(z){var j=O-z[0],B=D-z[1],V=T-z[0],F=A-z[1],G=1/wg(Mg((j*V+B*F)/(Ag(j*j+B*B)*Ag(V*V+F*F)))/2),H=Ag(z[0]*z[0]+z[1]*z[1]);M=kg(w,(r-H)/(G+1)),I=kg(S,(i-H)/(G-1))}}}if(E)if(M>Og){var W=kg(y,M),U=kg(v,M),Z=Dg(C,k,O,D,r,W,h),Y=Dg(T,A,P,L,r,U,h);t.moveTo(u+Z.cx+Z.x0,c+Z.cy+Z.y0),M<w&&W===U?t.arc(u+Z.cx,c+Z.cy,M,Ig(Z.y0,Z.x0),Ig(Y.y0,Y.x0),!h):(W>0&&t.arc(u+Z.cx,c+Z.cy,W,Ig(Z.y0,Z.x0),Ig(Z.y1,Z.x1),!h),t.arc(u,c,r,Ig(Z.cy+Z.y1,Z.cx+Z.x1),Ig(Y.cy+Y.y1,Y.cx+Y.x1),!h),U>0&&t.arc(u+Y.cx,c+Y.cy,U,Ig(Y.y1,Y.x1),Ig(Y.y0,Y.x0),!h))}else t.moveTo(u+O,c+D),t.arc(u,c,r,s,l,!h);else t.moveTo(u+O,c+D);if(i>Og&&E)if(I>Og){W=kg(d,I),Z=Dg(P,L,T,A,i,-(U=kg(g,I)),h),Y=Dg(O,D,C,k,i,-W,h);t.lineTo(u+Z.cx+Z.x0,c+Z.cy+Z.y0),I<S&&W===U?t.arc(u+Z.cx,c+Z.cy,I,Ig(Z.y0,Z.x0),Ig(Y.y0,Y.x0),!h):(U>0&&t.arc(u+Z.cx,c+Z.cy,U,Ig(Z.y0,Z.x0),Ig(Z.y1,Z.x1),!h),t.arc(u,c,i,Ig(Z.cy+Z.y1,Z.cx+Z.x1),Ig(Y.cy+Y.y1,Y.cx+Y.x1),h),W>0&&t.arc(u+Y.cx,c+Y.cy,W,Ig(Y.y1,Y.x1),Ig(Y.y0,Y.x0),!h))}else t.lineTo(u+P,c+L),t.arc(u,c,i,l,s,h);else t.lineTo(u+P,c+L)}else t.moveTo(u,c);t.closePath()}}}var Lg=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},Eg=function(t){function e(e){return t.call(this,e)||this}return Vt(e,t),e.prototype.getDefaultShape=function(){return new Lg},e.prototype.buildPath=function(t,e){Pg(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(gl);Eg.prototype.type="sector";var Ng=Eg,Rg=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},zg=function(t){function e(e){return t.call(this,e)||this}return Vt(e,t),e.prototype.getDefaultShape=function(){return new Rg},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}(gl);zg.prototype.type="ring";var jg=zg;function Bg(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=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,f=t.length;p<f;p++)ce(a,a,t[p]),he(s,s,t[p]);ce(a,a,r[0]),he(s,s,r[1])}for(p=0,f=t.length;p<f;p++){var d=t[p];if(n)i=t[p?p-1:f-1],o=t[(p+1)%f];else{if(0===p||p===f-1){l.push(Ht(t[p]));continue}i=t[p-1],o=t[p+1]}Yt(u,o,i),ee(u,u,e);var g=re(d,i),y=re(d,o),v=g+y;0!==v&&(g/=v,y/=v),ee(c,u,-g),ee(h,u,y);var m=Ut([],d,c),x=Ut([],d,h);r&&(he(m,m,a),ce(m,m,s),he(x,x,a),ce(x,x,s)),l.push(m),l.push(x)}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];
vendor: 4,642 bytes, line 2
2t.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 h=i.length;s<h;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}var Vg=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Fg=function(t){function e(e){return t.call(this,e)||this}return Vt(e,t),e.prototype.getDefaultShape=function(){return new Vg},e.prototype.buildPath=function(t,e){Bg(t,e,!0)},e}(gl);Fg.prototype.type="polygon";var Gg=Fg,Hg=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Wg=function(t){function e(e){return t.call(this,e)||this}return Vt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Hg},e.prototype.buildPath=function(t,e){Bg(t,e,!1)},e}(gl);Wg.prototype.type="polyline";var Ug=Wg,Zg={},Yg=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Xg=function(t){function e(e){return t.call(this,e)||this}return Vt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Yg},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=Ml(Zg,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}(gl);Xg.prototype.type="line";var qg=Xg,Kg=[],$g=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Jg(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?qn:Xn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?qn:Xn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?nr:er)(t.x1,t.cpx1,t.x2,e),(n?nr:er)(t.y1,t.cpy1,t.y2,e)]}var Qg=function(t){function e(e){return t.call(this,e)||this}return Vt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new $g},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&&(ir(n,a,i,c,Kg),a=Kg[1],i=Kg[2],ir(r,s,o,c,Kg),s=Kg[1],o=Kg[2]),t.quadraticCurveTo(a,s,i,o)):(c<1&&(Jn(n,a,l,i,c,Kg),a=Kg[1],l=Kg[2],i=Kg[3],Jn(r,s,u,o,c,Kg),s=Kg[1],u=Kg[2],o=Kg[3]),t.bezierCurveTo(a,s,l,u,i,o)))},e.prototype.pointAt=function(t){return Jg(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Jg(this.shape,t,!0);return ne(e,e)},e}(gl);Qg.prototype.type="bezier-curve";var ty=Qg,ey=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},ny=function(t){function e(e){return t.call(this,e)||this}return Vt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ey},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}(gl);ny.prototype.type="arc";var ry=ny,iy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return Vt(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),gl.prototype.getBoundingRect.call(this)},e}(gl),oy=iy,ay=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),sy=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 Vt(e,t),e}(ay),ly=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 Vt(e,t),e}(ay),uy=[0,0],cy=[0,0],hy=new Ke,py=new Ke,fy=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ke;for(n=0;n<2;n++)this._axes[n]=new Ke;
vendor: 3,046 bytes, line 2
2t&&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);Ke.sub(r[0],n[1],n[0]),Ke.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 hy.set(1/0,1/0),py.set(0,0),!this._intersectCheckOneSide(this,t,hy,py,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,hy,py,r,-1)&&(n=!1,r)||r||Ke.copy(e,n?hy:py),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,uy),this._getProjMinMaxOnAxis(s,e._corners,cy),uy[1]<cy[0]||uy[0]>cy[1]){if(a=!1,i)return a;var u=Math.abs(cy[0]-uy[1]),c=Math.abs(uy[0]-cy[1]);Math.min(u,c)>r.len()&&(u<c?Ke.scale(r,l,-u*o):Ke.scale(r,l,c*o))}else if(n){u=Math.abs(cy[0]-uy[1]),c=Math.abs(uy[0]-cy[1]);Math.min(u,c)<n.len()&&(u<c?Ke.scale(n,l,u*o):Ke.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}(),dy=fy,gy=[],yy=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 Vt(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 sn(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();
vendor: 9,696 bytes, line 2
2n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(gy)),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}(hs),vy=yy,my=Math.max,xy=Math.min,by={};function _y(t){return gl.extend(t)}var wy=function(t,e){var n=hg(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 Vt(e,t),e}(ug)};function Sy(t,e){return wy(t,e)}function My(t,e){by[t]=e}function Iy(t){if(by.hasOwnProperty(t))return by[t]}function Ty(t,e,n,r){var i=pg(t,e);return n&&("center"===r&&(n=Cy(n,i.getBoundingRect())),Oy(i,n)),i}function Ay(t,e,n){var r=new wl({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(Cy(e,i))}}});return r}function Cy(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 ky=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 gl(e);return a.createPathProxy(),a.buildPath=function(t){if(cg(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function Oy(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function Dy(t,e){return Ml(t,t,{lineWidth:e}),t}function Py(t){return Il(t.shape,t.shape,t.style),t}var Ly=Tl;function Ey(t,e){for(var n=Fe([]);t&&t!==e;)He(n,t.getLocalTransform(),n),t=t.parent;return n}function Ny(t,e,n){return e&&!$(e)&&(e=Ki.getLocalTransform(e)),n&&(e=Ye([],e)),ue([],t,e)}function Ry(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=Ny(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function zy(t){return!t.isGroup}function jy(t,e,n){if(t&&e){var r=function(t){var e={};return t.traverse((function(t){zy(t)&&t.anid&&(e[t.anid]=t)})),e}(t);e.traverse((function(t){if(zy(t)&&t.anid){var e=r[t.anid];if(e){var o=i(t);t.attr(i(e)),tc(t,o,n,Yl(t).dataIndex)}}}))}function i(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=U({},t.shape)),e}}function By(t,e){return Q(t,(function(t){var n=t[0];n=my(n,e.x),n=xy(n,e.x+e.width);var r=t[1];return r=my(r,e.y),[n,r=xy(r,e.y+e.height)]}))}function Vy(t,e){var n=my(t.x,e.x),r=xy(t.x+t.width,e.x+e.width),i=my(t.y,e.y),o=xy(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 Fy(t,e,n){var r=U({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),Z(i,n),new wl(r)):Ty(t.replace("path://",""),r,n,"center")}function Gy(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Hy(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Hy(t,e,n,r,i,o,a,s){var l,u=n-t,c=r-e,h=a-i,p=s-o,f=Wy(h,p,u,c);if((l=f)<=1e-6&&l>=-1e-6)return!1;var d=t-i,g=e-o,y=Wy(d,g,u,c)/f;if(y<0||y>1)return!1;var v=Wy(d,g,h,p)/f;return!(v<0||v>1)}function Wy(t,e,n,r){return t*r-n*e}function Uy(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=lt(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&J(rt(l),(function(t){Rt(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Yl(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Z({content:r,formatterParams:s},i)}}function Zy(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Yy(t,e){if(t)if(at(t))for(var n=0;n<t.length;n++)Zy(t[n],e);else Zy(t,e)}My("circle",yg),My("ellipse",xg),My("sector",Ng),My("ring",jg),My("polygon",Gg),My("polyline",Ug),My("rect",Ol),My("line",qg),My("bezierCurve",ty),My("arc",ry);var Xy=va(),qy=Yd(),Ky=function(){function t(){this.group=new xo,this.uid=Rc("viewChart"),this.renderTask=Lf({plan:Qy,reset:tv}),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&&Jy(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&Jy(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){Yy(this.group,t)},t.markUpdateMethod=function(t,e){Xy(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function $y(t,e,n){t&&Xu(t)&&("emphasis"===e?Cu:ku)(t,n)}function Jy(t,e,n){var r=ya(t,e),i=e&&null!=e.highlightKey?function(t){var e=Kl[t];return null==e&&ql<=32&&(e=Kl[t]=ql++),e}(e.highlightKey):null;null!=r?J(oa(r),(function(e){$y(t.getItemGraphicEl(e),n,i)})):t.eachItemGraphicEl((function(t){$y(t,n,i)}))}function Qy(t){return qy(t.model)}function tv(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&Xy(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),ev[l]}Da(Ky),Ra(Ky);var ev={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)}}},nv=Ky,rv="\0__throttleOriginMethod",iv="\0__throttleRate",ov="\0__throttleType";function av(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 sv(t,e,n,r){var i=t[e];if(i){var o=i[rv]||i,a=i[ov];if(i[iv]!==n||a!==r){if(null==n||!r)return t[e]=o;(i=t[e]=av(o,n,"debounce"===r))[rv]=o,i[ov]=r,i[iv]=n}return i}}function lv(t,e){var n=t[e];n&&n[rv]&&(n.clear&&n.clear(),t[e]=n[rv])}var uv=va(),cv={itemStyle:za(Oc,!0),lineStyle:za(Ac,!0)},hv={lineStyle:"stroke",itemStyle:"fill"};function pv(t,e){var n=t.visualStyleMapper||cv[e];return n||(console.warn("Unknown style type '"+e+"'."),cv.itemStyle)}function fv(t,e){var n=t.visualDrawType||hv[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var dv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=pv(t,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=fv(t,r),l=o[s],u=st(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||st(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||st(o.stroke)?h:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=U({},o);i[s]=u(r),e.setItemVisual(n,"style",i)}}}},gv=new Ec,yv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=pv(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){gv.option=n[r];var a=i(gv);U(t.ensureUniqueItemVisual(e,"style"),a),gv.option.decal&&(t.setItemVisual(e,"decal",gv.option.decal),gv.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},vv={performRawSeries:!0,overallReset:function(t){var e=Pt();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)),uv(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=uv(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=fv(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)}}))}}))}},mv=Math.PI;var xv=function(){function t(t,e,n,r){this._stageTaskMap=Pt(),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;
vendor: 4,820 bytes, line 2
2t.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Pt();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;J(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{});Mt(!(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))}J(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=Pt(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||Lf({plan:Mv,reset:Iv,count:Cv}));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(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||Lf({reset:bv});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Pt(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1;function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,Lf({reset:_v,onDirty:Sv})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,i._pipe(t,n)}Mt(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,p):u?u(n,r).each(p):(c=!1,J(n.getSeries(),p)),h&&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 st(t)&&(t={overallReset:t,seriesType:kv(t)}),t.uid=Rc("stageHandler"),e&&(t.visualType=e),t},t}();function bv(t){t.overallReset(t.ecModel,t.api,t.payload)}function _v(t){return t.overallProgress&&wv}function wv(){this.agent.dirty(),this.getDownstream().dirty()}function Sv(){this.agent&&this.agent.dirty()}function Mv(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Iv(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=oa(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Q(e,(function(t,e){return Av(e)})):Tv}var Tv=Av(0);function Av(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 Cv(t){return t.data.count()}function kv(t){Ov=null;try{t(Dv,Pv)}catch(Og){}return Ov}var Ov,Dv={},Pv={};function Lv(t,e){for(var n in e.prototype)t[n]=zt}Lv(Dv,Ap),Lv(Pv,kp),Dv.eachSeriesByType=Dv.eachRawSeriesByType=function(t){Ov=t},Dv.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Ov=t.subType)};var Ev=xv,Nv=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Rv={color:Nv,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Nv]}
vendor: 19,530 bytes, line 2
2,zv="#B9B8CE",jv="#100C2A",Bv=function(){return{axisLine:{lineStyle:{color:zv}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Vv=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Fv={darkMode:!0,color:Vv,backgroundColor:jv,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:zv}},textStyle:{color:zv},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:zv}},dataZoom:{borderColor:"#71708A",textStyle:{color:zv},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:zv}},timeline:{lineStyle:{color:zv},label:{color:zv},controlStyle:{color:zv,borderColor:zv}},calendar:{itemStyle:{color:jv},dayLabel:{color:zv},monthLabel:{color:zv},yearLabel:{color:zv}},timeAxis:Bv(),logAxis:Bv(),valueAxis:Bv(),categoryAxis:Bv(),line:{symbol:"circle"},graph:{color:Vv},gauge:{title:{color:zv},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:zv},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Fv.categoryAxis.splitLine.show=!1;var Gv=Fv,Hv=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(lt(t)){var i=Oa(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};J(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}(),Wv=["symbol","symbolSize","symbolRotate","symbolOffset"],Uv=Wv.concat(["symbolKeepAspect"]),Zv={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<Wv.length;a++){var s=Wv[a],l=t.get(s);st(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(U({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var u=rt(i);return{dataEach:o?function(e,n){for(var r=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,i[s](r,o))}}:null}}}}},Yv={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<Uv.length;r++){var i=Uv[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}:null}}};function Xv(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)}}function qv(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)}}function Kv(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)}}function $v(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){r.push(t.seriesIndex)})),r}J([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,r,i){e=U({},e),i.dispatchAction(U(e,{type:t[1],seriesIndex:n(r,e)}))}))}))}function Jv(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 l=t.getData(),u=ya(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:at(u)?l.getName(u[0]):l.getName(u),selected:lt(r)?r:U({},r)})}}))}function Qv(t,e,n){for(var r;t&&(!e(t)||(r=t,!n));)t=t.__hostTarget||t.parent;return r}var tm=Math.round(9*Math.random()),em="function"===typeof Object.defineProperty,nm=function(){function t(){this._id="__ec_inner_"+tm++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return em?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}(),rm=gl.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()}}),im=gl.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()}}),om=gl.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()}}),am=gl.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()}}),sm={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}},lm={};J({line:qg,rect:Ol,roundRect:Ol,square:Ol,circle:yg,diamond:im,pin:om,arrow:am,triangle:rm},(function(t,e){lm[e]=new t}));var um=gl.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=oo(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=lm[r];i||(i=lm[r="rect"]),sm[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function cm(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 hm(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://")?Ay(t.slice(8),new sn(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?Ty(t.slice(7),{},new sn(e,n,r,i),a?"center":"cover"):new um({shape:{symbolType:t,x:e,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=cm,o&&s.setColor(o),s}function pm(t){return at(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function fm(t,e){if(null!=t)return at(t)||(t=[t,t]),[Po(t[0],e[0])||0,Po(bt(t[1],t[0]),e[1])||0]}function dm(t){return isFinite(t)}function gm(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=dm(a)?a:.5,s=dm(s)?s:.5,l=l>=0&&dm(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=dm(r)?r:0,i=dm(i)?i:1,o=dm(o)?o:0,a=dm(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 ym(t){return parseInt(t,10)}function vm(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]||ym(s[r])||ym(t.style[r]))-(ym(s[o])||0)-(ym(s[a])||0)|0}function mm(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]:ct(e)?[e]:at(e)?e:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(i=Q(i,(function(t){return t/a})),o/=a)}return[i,o]}var xm=new Zs(!0);function bm(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function _m(t){return"string"===typeof t&&"none"!==t}function wm(t){var e=t.fill;return null!=e&&"none"!==e}function Sm(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 Mm(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 Im(t,e,n){var r=Ga(e.image,e.__image,n);if(Wa(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)*jt),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}var Tm=["shadowBlur","shadowOffsetX","shadowOffsetY"],Am=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Cm(t,e,n,r,i){var o=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){Nm(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?is.opacity:a}(r||e.blend!==n.blend)&&(o||(Nm(t,i),o=!0),t.globalCompositeOperation=e.blend||is.blend);for(var s=0;s<Tm.length;s++){var l=Tm[s];(r||e[l]!==n[l])&&(o||(Nm(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(Nm(t,i),o=!0),t.shadowColor=e.shadowColor||is.shadowColor),o}function km(t,e,n,r,i){var o=Rm(e,i.inHover),a=r?null:n&&Rm(n,i.inHover)||{};if(o===a)return!1;var s=Cm(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(Nm(t,i),s=!0),_m(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(Nm(t,i),s=!0),_m(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(Nm(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||(Nm(t,i),s=!0),t.lineWidth=l)}for(var u=0;u<Am.length;u++){var c=Am[u],h=c[0];(r||o[h]!==a[h])&&(s||(Nm(t,i),s=!0),t[h]=o[h]||c[1])}return s}function Om(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)}var Dm=1,Pm=2,Lm=3,Em=4;function Nm(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Rm(t,e){return e&&t.__hoverStyle||t.style}function zm(t,e){jm(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function jm(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~An,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&&(Nm(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Nm(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(),Om(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 gl&&e.autoBatch&&function(t){var e=wm(t),n=bm(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)?(Nm(t,n),Om(t,e)):p||Nm(t,n);var f=Rm(e,n.inHover);e instanceof gl?(n.lastDrawType!==Dm&&(l=!0,n.lastDrawType=Dm),km(t,e,u,l,n),p&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,r){var i,o=bm(n),a=wm(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||xm,h=e.__dirty;if(!r){var p=n.fill,f=n.stroke,d=a&&!!p.colorStops,g=o&&!!f.colorStops,y=a&&!!p.image,v=o&&!!f.image,m=void 0,x=void 0,b=void 0,_=void 0,w=void 0;(d||g)&&(w=e.getBoundingRect()),d&&(m=h?gm(t,p,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(x=h?gm(t,f,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),y&&(b=h||!e.__canvasFillPattern?Im(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=b),v&&(_=h||!e.__canvasStrokePattern?Im(t,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),d?t.fillStyle=m:y&&(b?t.fillStyle=b:a=!1),g?t.strokeStyle=x:v&&(_?t.strokeStyle=_:o=!1)}var S,M,I=e.getGlobalScale();c.setScale(I[0],I[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(S=(i=mm(e))[0],M=i[1]);var T=!0;(u||h&Cn)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),T=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),T&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=M),r||(n.strokeFirst?(o&&Mm(t,n),a&&Sm(t,n)):(a&&Sm(t,n),o&&Mm(t,n))),S&&t.setLineDash([])}(t,e,f,p),p&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof ml?(n.lastDrawType!==Lm&&(l=!0,n.lastDrawType=Lm),km(t,e,u,l,n),function(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||M,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(r=mm(e))[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(bm(n)&&t.strokeText(i,n.x,n.y),wm(n)&&t.fillText(i,n.x,n.y)):(wm(n)&&t.fillText(i,n.x,n.y),bm(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}(t,e,f)):e instanceof wl?(n.lastDrawType!==Pm&&(l=!0,n.lastDrawType=Pm),function(t,e,n,r,i){Cm(t,Rm(e,i.inHover),n&&Rm(n,i.inHover),r,i)}(t,e,u,l,n),function(t,e,n){var r=e.__image=Ga(n.image,e.__image,e,e.onload);if(r&&Wa(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&&(n.lastDrawType!==Em&&(l=!0,n.lastDrawType=Em),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(),jm(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(),jm(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&&Nm(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var Bm=new nm,Vm=new fr(100),Fm=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Gm(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&Bm.delete(t);var o=Bm.get(t);if(o)return o;var a=Z(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,l=0;l<Fm.length;++l){var u=a[Fm[l]];if(null!=u&&!at(u)&&!lt(u)&&!ct(u)&&"boolean"!==typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(i?"-svg":"");var c=Vm.get(e);c&&(i?t.svgElement=c:t.image=c)}var h,p=Wm(a.dashArrayX),f=function(t){if(!t||"object"===typeof t&&0===t.length)return[0,0];if(ct(t)){var e=Math.ceil(t);return[e,e]}var n=Q(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}(a.dashArrayY),d=Hm(a.symbol),g=(b=p,Q(b,(function(t){return Um(t)}))),y=Um(f),v=!i&&T.createCanvas(),m=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=ea(t,g[e]);var r=1;for(e=0,n=d.length;e<n;++e)r=ea(r,d[e].length);t*=r;var i=y*g.length*d.length;0;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();var b;v&&(v.width=x.width*n,v.height=x.height*n,h=v.getContext("2d"));(function(){h&&(h.clearRect(0,0,v.width,v.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,v.width,v.height)));for(var t=0,e=0;e<f.length;++e)t+=f[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%d.length,g=0,b=0,_=0;g<2*x.width;){var w=0;for(e=0;e<p[u].length;++e)w+=p[u][e];if(w<=0)break;if(b%2===0){var S=.5*(1-a.symbolSize),M=g+p[u][b]*S,I=o+f[s]*S,T=p[u][b]*a.symbolSize,A=f[s]*a.symbolSize,C=_/2%d[c].length;k(M,I,T,A,d[c][C])}g+=p[u][b],++_,++b===p[u].length&&(b=0)}++u===p.length&&(u=0)}o+=f[s],++l,++s===f.length&&(s=0)}function k(t,e,o,s,l){var u=i?1:n,c=hm(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var p=r.painter.renderOneToVNode(c);p&&m.children.push(p)}else zm(h,c)}})(),s&&Vm.put(e,v||m);t.image=v,t.svgElement=m,t.svgWidth=x.width,t.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,Bm.set(t,s),t.dirty=!1,s}function Hm(t){if(!t||0===t.length)return[["rect"]];if(lt(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!lt(t[n])){e=!1;break}if(e)return Hm([t]);var r=[];for(n=0;n<t.length;
2++n)lt(t[n])?r.push([t[n]]):r.push(t[n]);return r}function Wm(t){if(!t||0===t.length)return[[0,0]];if(ct(t))return[[i=Math.ceil(t),i]];for(var e=!0,n=0;n<t.length;++n)if(!ct(t[n])){e=!1;break}if(e)return Wm([t]);var r=[];for(n=0;n<t.length;++n)if(ct(t[n])){var i=Math.ceil(t[n]);r.push([i,i])}else{(i=Q(t[n],(function(t){return Math.ceil(t)}))).length%2===1?r.push(i.concat(i)):r.push(i)}return r}function Um(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?2*e:e}var Zm=new ye,Ym={};function Xm(t){return Ym[t]}var qm="5.4.3",Km={zrender:"5.4.4"},$m=2e3,Jm=1e3,Qm=2e3,tx=3e3,ex=4500,nx={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:Jm,PROGRESSIVE_LAYOUT:1100,GLOBAL:Qm,CHART:tx,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:ex,ARIA:6e3,DECAL:7e3}},rx="__flagInMainProcess",ix="__pendingUpdate",ox="__needsUpdateStatus",ax=/^[a-zA-Z0-9_]+$/,sx="__connectUpdateStatus";function lx(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return cx(this,t,e);Nx(this.id)}}function ux(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return cx(this,t,e)}}function cx(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),ye.prototype[e].apply(t,n)}var hx,px,fx,dx,gx,yx,vx,mx,xx,bx,_x,Sx,Mx,Ix,Tx,Ax,Cx,kx,Ox=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(ye),Dx=Ox.prototype;Dx.on=ux("on"),Dx.off=ux("off");var Px=function(t){function e(e,n,r){var i=t.call(this,new Hv)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},lt(n)&&(n=Fx[n]),i._dom=e;var o=i._zr=So(e,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:bt(r.useDirtyRect,!1),useCoarsePointer:bt(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=av(it(o.flush,o),17),(n=G(n))&&nf(n,!0),i._theme=n,i._locale=function(t){if(lt(t)){var e=Fc[t.toUpperCase()]||{};return t===jc||t===Bc?G(e):H(G(e),G(Fc[Vc]),!1)}return H(G(t),G(Fc[Vc]),!1)}(r.locale||Hc),i._coordSysMgr=new Pp;var a=i._api=Tx(i);function s(t,e){return t.__prio-e.__prio}
vendor: 21,744 bytes, line 2
2return Tn(Vx,s),Tn(jx,s),i._scheduler=new Ev(i,a,jx,Vx),i._messageCenter=new Ox,i._initEvents(),i.resize=it(i.resize,i),o.animation.on("frame",i._onframe,i),bx(o,i),_x(o,i),At(i),i}return m(e,t),e.prototype._onframe=function(){if(!this._disposed){kx(this);var t=this._scheduler;if(this[ix]){var e=this[ix].silent;this[rx]=!0;try{hx(this),dx.update.call(this,null,this[ix].updateParams)}catch(Og){throw this[rx]=!1,this[ix]=null,Og}this._zr.flush(),this[rx]=!1,this[ix]=null,mx.call(this,e),xx.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),yx(this,r),t.performVisualTasks(r),Ix(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[rx])if(this._disposed)Nx(this.id);else{var r,i,o;if(ht(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[rx]=!0,!this._model||e){var a=new Rp(this._api),s=this._theme,l=this._model=new Ap;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},Bx);var u={seriesTransition:o,optionChanged:!0};if(n)this[ix]={silent:r,updateParams:u},this[rx]=!1,this.getZr().wakeUp();else{try{hx(this),dx.update.call(this,null,u)}catch(Og){throw this[ix]=null,this[rx]=!1,Og}this._ssr||this._zr.flush(),this[ix]=null,this[rx]=!1,mx.call(this,r),xx.call(this,r)}}},e.prototype.setTheme=function(){Rf()},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||_.hasGlobalWindow&&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(_.svgSupported){var t=this._zr;return J(t.storage.getDisplayList(),(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;J(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 J(r,(function(t){t.group.ignore=!1})),o}Nx(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(Wx[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();J(Hx,(function(o,h){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(G(t)),f=o.getDom().getBoundingClientRect();a=r(f.left,a),s=r(f.top,s),l=i(f.right,l),u=i(f.bottom,u),c.push({dom:p,left:f.left,top:f.top})}}));var p=(l*=h)-(a*=h),f=(u*=h)-(s*=h),d=T.createCanvas(),g=So(d,{renderer:e?"svg":"canvas"});if(g.resize({width:p,height:f}),e){var y="";return J(c,(function(t){var e=t.left-a,n=t.top-s;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new Ol({shape:{x:0,y:0,width:p,height:f},style:{fill:t.connectedBackgroundColor}})),J(c,(function(t){var e=new wl({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}Nx(this.id)},e.prototype.convertToPixel=function(t,e){return gx(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return gx(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return J(xa(this._model,t),(function(t,r){r.indexOf("Models")>=0&&J(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;Nx(this.id)},e.prototype.getVisual=function(t,e){var n=xa(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?Xv(r,i,e):qv(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;J(Ex,(function(t){var e=function(e){var n,i=r.getModel(),o=e.target;if("globalout"===t?n={}:o&&Qv(o,(function(t){var e=Yl(t);if(e&&null!=e.dataIndex){var r=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return n=r&&r.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return n=U({},e.eventData),!0}),!0),n){var a=n.componentType,s=n.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=n.seriesIndex);var l=a&&null!=s&&i.getComponent(a,s),u=l&&r["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];0,n.event=e,n.type=t,r._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:u},r.trigger(t,n)}};e.zrEventfulCallAtLast=!0,r._zr.on(t,e,r)})),J(zx,(function(t,e){r._messageCenter.on(e,(function(t){this.trigger(e,t)}),r)})),J(["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?(Jv("map","selectchanged",e,r,t),Jv("pie","selectchanged",e,r,t)):"select"===t.fromAction?(Jv("map","selected",e,r,t),Jv("pie","selected",e,r,t)):"unselect"===t.fromAction&&(Jv("map","unselected",e,r,t),Jv("pie","unselected",e,r,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?Nx(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)Nx(this.id);else{this._disposed=!0,this.getDom()&&Ma(this.getDom(),Yx,"");var t=this,e=t._api,n=t._model;J(t._componentsViews,(function(t){t.dispose(n,e)})),J(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Hx[t.id]}},e.prototype.resize=function(t){if(!this[rx])if(this._disposed)Nx(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[ix]&&(null==r&&(r=this[ix].silent),n=!0,this[ix]=null),this[rx]=!0;try{n&&hx(this),dx.update.call(this,{type:"resize",animation:U({duration:0},t&&t.animation)})}catch(Og){throw this[rx]=!1,Og}this[rx]=!1,mx.call(this,r),xx.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)Nx(this.id);else if(ht(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Gx[t]){var n=Gx[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?Nx(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=U({},t);return e.type=zx[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)Nx(this.id);else if(ht(e)||(e={silent:!!e}),Rx[t.type]&&this._model)if(this[rx])this._pendingActions.push(t);else{var n=e.silent;vx.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&_.browser.weChat&&this._throttledZrFlush(),mx.call(this,n),xx.call(this,n)}},e.prototype.updateLabelLayout=function(){Zm.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)Nx(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"),t.hoverState===eu&&t.states.emphasis?e.push("emphasis"):t.hoverState===tu&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return r(t,n,i,-1/0),!0}))}}function r(t,e,n,i){var o=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(r(s[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(o&&(o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function i(t,e){e.eachRendered((function(t){if(!nc(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 o(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(nc(t))return;if(t instanceof gl&&function(t){var e=$l(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)}}))}hx=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),px(t,!0),px(t,!1),e.plan()},px=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=Oa(t.type);0,(c=new(e?Zd.getClass(h.main,h.sub):nv.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)}},fx=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 l,u=n.excludeSeriesId;null!=u&&(l=Pt(),J(oa(u),(function(t){var e=fa(t,null);null!=e&&l.set(e,!0)}))),o&&o.eachComponent(s,(function(e){if(!(l&&null!=l.get(e.id)))if(Ku(n))if(e instanceof Wd)n.type!==au||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var o=ya(i,e);o=(at(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=Yl(a);Ru(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&Ru(r,c,h,n)}}}(e,n,t._api);else{var r=ju(e.mainType,e.componentIndex,n.name,t._api),i=r.focusSelf,o=r.dispatchers;n.type===au&&i&&!n.notBlur&&zu(e.mainType,e.componentIndex,t._api),o&&J(o,(function(t){n.type===au?Cu(t):ku(t)}))}else qu(n)&&e instanceof Wd&&(!function(t,e,n){if(qu(e)){var r=e.dataType,i=ya(t.getData(r),e);at(i)||(i=[i]),t[e.type===cu?"toggleSelect":e.type===lu?"select":"unselect"](i,r)}}(e,n,t._api),Bu(e),Cx(t))}),t),o&&o.eachComponent(s,(function(e){l&&null!=l.get(e.id)||c(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else J([].concat(t._componentsViews).concat(t._chartsViews),c);function c(r){r&&r.__alive&&r[e]&&r[e](r.__model,o,t._api,n)}},dx={prepareAndUpdate:function(t){hx(this),dx.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),yx(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e),Sx(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),Zm.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=Pt();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}),Ix(this,r,i,e,{},a),Zm.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),nv.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),Sx(this,n,this._api,e,{}),Zm.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()})),nv.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)})),Zm.trigger("afterupdate",r,this._api))},updateLayout:function(t){dx.update.call(this,t)}},gx=function(t,e,n,r){if(t._disposed)Nx(t.id);else{for(var i,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=xa(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}},yx=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries((function(t){r.updateStreamModes(t,n[t.__viewId])}))},vx=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=Rx[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&Oa(l[0]);this[rx]=!0;var h=[t],p=!1;t.batch&&(p=!0,h=Q(t.batch,(function(e){return(e=Z(U({},e),t)).batch=null,e})));var f,d=[],g=qu(t),y=Ku(t);if(y&&Nu(this._api),J(h,(function(e){if((f=(f=a.action(e,n._model,n._api))||U({},e)).type=s.event||f.type,d.push(f),y){var r=ba(t),i=r.queryOptionMap,o=r.mainTypeSpecified?i.keys()[0]:"series";fx(n,u,e,o),Cx(n)}else g?(fx(n,u,e,"series"),Cx(n)):c&&fx(n,u,e,c.main,c.sub)})),"none"!==u&&!y&&!g&&!c)try{this[ix]?(hx(this),dx.update.call(this,t),this[ix]=null):dx[u].call(this,t)}catch(Og){throw this[rx]=!1,Og}if(f=p?{type:s.event||i,escapeConnect:o,batch:d}:d[0],this[rx]=!1,!e){var v=this._messageCenter;if(v.trigger(f.type,f),g){var m={type:"selectchanged",escapeConnect:o,selected:Vu(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};v.trigger(m.type,m)}}},mx=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();vx.call(this,n,t)}},xx=function(t){!t&&this.trigger("updated")},bx=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[ix]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},_x=function(t,e){t.on("mouseover",(function(t){var n=Qv(t.target,Xu);n&&(!function(t,e,n){var r=Yl(t),i=ju(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&zu(r.componentMainType,r.componentIndex,n),J(o,(function(t){return Tu(t,e)}))):(Ru(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&zu(r.componentMainType,r.componentIndex,n),Tu(t,e))}(n,t,e._api),Cx(e))})).on("mouseout",(function(t){var n=Qv(t.target,Xu);n&&(!function(t,e,n){Nu(n);var r=Yl(t),i=ju(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?J(i,(function(t){return Au(t,e)})):Au(t,e)}(n,t,e._api),Cx(e))})).on("click",(function(t){var n=Qv(t.target,(function(t){return null!=Yl(t).dataIndex}),!0);if(n){var r=n.selected?"unselect":"select",i=Yl(n);e._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}}))},Sx=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);Tn(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),J(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),Mx(t,e,n,r,i),J(t._chartsViews,(function(t){t.__alive=!1})),Ix(t,e,n,r,i),J(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},Mx=function(t,e,r,a,s,l){J(l||t._componentsViews,(function(t){var s=t.__model;i(s,t),t.render(s,e,r,a),n(s,t),o(s,t)}))},Ix=function(t,e,r,a,s,l){var u=t._scheduler;s=U(s||{},{updatedSeries:e.getSeries()}),Zm.trigger("series:beforeupdate",e,r,s);var c=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,a),i(e,n),l&&l.get(e.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(c=!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),Bu(e)})),u.unfinished=c||u.unfinished,Zm.trigger("series:layoutlabels",e,r,s),Zm.trigger("series:transition",e,r,s),e.eachSeries((function(e){var r=t._chartsMap[e.__viewId];n(e,r),o(e,r)})),function(t,e){var n=t._zr,r=n.storage,i=0;r.traverse((function(t){t.isGroup||i++})),i>e.get("hoverLayerThreshold")&&!_.node&&!_.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),Zm.trigger("series:afterupdate",e,r,s)},Cx=function(t){t[ox]=!0,t.getZr().wakeUp()},kx=function(t){t[ox]&&(t.getZr().storage.traverse((function(t){nc(t)||e(t)})),t[ox]=!1)},Tx=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return m(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){Cu(e,n),Cx(t)},n.prototype.leaveEmphasis=function(e,n){ku(e,n),Cx(t)},n.prototype.enterBlur=function(e){Ou(e),Cx(t)},n.prototype.leaveBlur=function(e){Du(e),Cx(t)},n.prototype.enterSelect=function(e){Pu(e),Cx(t)},n.prototype.leaveSelect=function(e){Lu(e),Cx(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}(kp))(t)},Ax=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n][sx]=e}}J(zx,(function(n,r){t._messageCenter.on(r,(function(n){if(Wx[t.group]&&0!==t[sx]){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];J(Hx,(function(e){e!==t&&e.group===t.group&&i.push(e)})),e(i,0),J(i,(function(t){1!==t[sx]&&t.dispatchAction(r)})),e(i,2)}}))}))}}(),e}(ye),Lx=Px.prototype;Lx.on=lx("on"),Lx.off=lx("off"),Lx.one=function(t,e,n){var r=this;Rf(),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 Ex=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Nx(t){0}var Rx={},zx={},jx=[],Bx=[],Vx=[],Fx={},Gx={},Hx={},Wx={},Ux=+new Date-0,Zx=+new Date-0,Yx="_echarts_instance_";function Xx(t,e,n){var r=!(n&&n.ssr);if(r){0;var i=Qx(t);if(i)return i;0}var o=new Px(t,e,n);return o.id="ec_"+Ux++,Hx[o.id]=o,r&&Ma(t,Yx,o.id),Ax(o),Zm.trigger("afterinit",o),o}function qx(t){if(at(t)){var e=t;t=null,J(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+Zx++,J(e,(function(e){e.group=t}))}return Wx[t]=!0,t}function Kx(t){Wx[t]=!1}var $x=Kx;function Jx(t){lt(t)?t=Hx[t]:t instanceof Px||(t=Qx(t)),t instanceof Px&&!t.isDisposed()&&t.dispose()}function Qx(t){return Hx[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,Yx)]}function tb(t){return Hx[t]}function eb(t,e){Fx[t]=e}function nb(t){X(Bx,t)<0&&Bx.push(t)}function rb(t,e){fb(jx,t,e,$m)}function ib(t){ab("afterinit",t)}function ob(t){ab("afterupdate",t)}function ab(t,e){Zm.on(t,e)}
2function sb(t,e,n){st(e)&&(n=e,e="");var r=ht(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,zx[e]||(Mt(ax.test(r)&&ax.test(e)),Rx[r]||(Rx[r]={action:n,actionInfo:t}),zx[e]=r)}function lb(t,e){Pp.register(t,e)}function ub(t){var e=Pp.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function cb(t,e){fb(Vx,t,e,Jm,"layout")}function hb(t,e){fb(Vx,t,e,tx,"visual")}var pb=[];function fb(t,e,n,r,i){if((st(e)||ht(e))&&(n=e,e=r),!(X(pb,n)>=0)){pb.push(n);var o=Ev.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function db(t,e){Gx[t]=e}function gb(t){A({createCanvas:t})}function yb(t,e,n){var r=Xm("registerMap");r&&r(t,e,n)}function vb(t){var e=Xm("getMap");return e&&e(t)}var mb=function(t){var e=(t=G(t)).type;e||zf("");var n=e.split(":");2!==n.length&&zf("");var r=!1;"echarts"===n[0]&&(e=n[1],r=!0),t.__isBuiltIn=r,$f.set(e,t)};hb(Qm,dv),hb(ex,yv),hb(ex,vv),hb(Qm,Zv),hb(ex,Yv),hb(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=Gm(n,e))}));var i=r.getVisual("decal");if(i)r.getVisual("style").decal=Gm(i,e)}}))})),nb(nf),rb(900,(function(t){var e=Pt();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(rf)})),db("default",(function(t,e){Z(e=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",
vendor: 54,328 bytes, line 2
2spinnerRadius:10,lineWidth:5,zlevel:0});var n=new xo,r=new Ol({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new Zl({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 Ol({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((i=new ry({shape:{startAngle:-mv/2,endAngle:-mv/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*mv/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*mv/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})),sb({type:au,event:au,update:au},zt),sb({type:su,event:su,update:su},zt),sb({type:lu,event:lu,update:lu},zt),sb({type:uu,event:uu,update:uu},zt),sb({type:cu,event:cu,update:cu},zt),eb("light",Rv),eb("dark",Gv);var xb={},bb=[],_b={registerPreprocessor:nb,registerProcessor:rb,registerPostInit:ib,registerPostUpdate:ob,registerUpdateLifecycle:ab,registerAction:sb,registerCoordinateSystem:lb,registerLayout:cb,registerVisual:hb,registerTransform:mb,registerLoading:db,registerMap:yb,registerImpl:function(t,e){Ym[t]=e},PRIORITY:nx,ComponentModel:Yh,ComponentView:Zd,SeriesModel:Wd,ChartView:nv,registerComponentModel:function(t){Yh.registerClass(t)},registerComponentView:function(t){Zd.registerClass(t)},registerSeriesModel:function(t){Wd.registerClass(t)},registerChartView:function(t){nv.registerClass(t)},registerSubTypeDefaulter:function(t,e){Yh.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ao(t,e)}};function wb(t){at(t)?J(t,(function(t){wb(t)})):X(bb,t)>=0||(bb.push(t),st(t)&&(t={install:t}),t.install(_b))}function Sb(t){return null==t?0:t.length||1}function Mb(t){return t}var Ib=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Mb,this._newKeyGetter=r||Mb,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=Sb(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=Sb(l),h=Sb(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=Sb(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=Sb(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),Tb=Ib,Ab=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 Cb(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function kb(t){return"category"===t?"ordinal":"time"===t?"time":"float"}var Ob=function(t){this.otherDims={},null!=t&&U(this,t)},Db=va(),Pb={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Lb=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=Rb(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return bt(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=vf(this.source),n=!zb(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+=Pb[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 Eb(t){return t instanceof Lb}function Nb(t){for(var e=Pt(),n=0;n<(t||[]).length;n++){var r=t[n],i=ht(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function Rb(t){var e=Db(t);return e.dimNameMap||(e.dimNameMap=Nb(t.dimensionsDefine))}function zb(t){return t>30}var jb,Bb,Vb,Fb,Gb,Hb,Wb,Ub=ht,Zb=Q,Yb="undefined"===typeof Int32Array?Array:Int32Array,Xb=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],qb=["_approximateExtent"],Kb=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;Eb(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,l={},u=0;u<n.length;u++){var c=n[u],h=lt(c)?new Ob({name:c}):c instanceof Ob?c:new Ob(c),p=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=p,h.coordDimIndex=0);var f=h.otherDims=h.otherDims||{};o.push(p),i[p]=h,null!=l[p]&&(s=!0),h.createInvertedIndices&&(a[p]=[]),0===f.itemName&&(this._nameDimIdx=u),0===f.itemId&&(this._idDimIdx=u),r&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var d=this._dimIdxToName=Pt();J(o,(function(t){d.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(ct(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 hd&&(r=t),!r){var o=this.dimensions,a=hf(t)||$(t)?new mf(t,o.length):t;r=new hd;var s=Zb(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=Pt(),o=[],a=[],s={};J(t.dimensions,(function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){var c=l.coordDimIndex;Cb(r,u)[c]=e,l.isExtraCoord||(i.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),Cb(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}$h.each((function(t,e){var n=Cb(r,e),i=l.otherDims[e];null!=i&&!1!==i&&(n[i]=l.name)}))}));var l=[],u={};i.each((function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Q(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var h=r.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new Ab(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&&Wb(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&&t.getSource().sourceFormat!==np&&!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(n.getSource().sourceFormat===Jh&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&ua(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[a]&&null!=l&&(r[a]=fa(l,null));var u=s.id;null==i[a]&&null!=u&&(i[a]=fa(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)Wb(this,a);jb(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){Ub(t)?U(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=Vb(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 Bb(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 at(t)?r.getValues(Zb(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){st(t)&&(n=e,e=t,t=[]);var r=n||this,i=Zb(Fb(t),this._getStoreDimIndex,this);this._store.each(i,r?it(e,r):e)},t.prototype.filterSelf=function(t,e,n){st(t)&&(n=e,e=t,t=[]);var r=n||this,i=Zb(Fb(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?it(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={},r=rt(t),i=[];return J(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){st(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=Zb(Fb(t),this._getStoreDimIndex,this),a=Hb(this);return a._store=this._store.map(o,i?it(e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=n||r||this;var o=Zb(Fb(t),this._getStoreDimIndex,this);this._store.modify(o,i?it(e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=Hb(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.lttbDownSample=function(t,e){var n=Hb(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 Ec(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new Tb(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return Bb(t,e)}),(function(t){return Bb(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||{},Ub(t)?U(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&&(at(i=this.getVisual(e))?i=i.slice():Ub(i)&&(i=U({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,Ub(e)?U(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){Ub(t)?U(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?U(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;Xl(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){J(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:Zb(this.dimensions,this._getDimInfo,this),this.hostModel)),Gb(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];st(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(wt(arguments)))})},t.internalField=(jb=function(t){var e=t._invertedIndicesMap;J(e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new Yb(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}}))},Vb=function(t,e,n){return fa(t._getCategory(e,n),null)},Bb=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=Vb(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},Fb=function(t){return at(t)||(t=null!=t?[t]:[]),t},Hb=function(e){var n=new t(e._schema?e._schema:Zb(e.dimensions,e._getDimInfo,e),e.hostModel);return Gb(n,e),n},Gb=function(t,e){J(Xb.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,J(qb,(function(n){t[n]=G(e[n])})),t._calculationInfo=U({},e._calculationInfo)},void(Wb=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=Vb(t,i,e)),null==s&&null!=o&&(r[e]=s=Vb(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}(),$b=Kb;function Jb(t,e){return Qb(t,e).dimensions}function Qb(t,e){hf(t)||(t=ff(t));var n=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Pt(),o=[],a=function(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return J(e,(function(t){var e;ht(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&zb(a),l=r===t.dimensionsDefine,u=l?Rb(t):Nb(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=Pt(c),p=new id(a),f=0;f<p.length;f++)p[f]=-1;function d(t){var e=p[t];if(e<0){var n=r[t],i=ht(n)?n:{name:n},a=new Ob,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return p[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(f=0;f<a;f++)d(f);h.each((function(t,e){var n=oa(t).slice();if(1===n.length&&!lt(n[0])&&n[0]<0)h.set(e,!1);else{var r=h.set(e,[]);J(n,(function(t,n){var i=lt(t)?u.get(t):t;null!=i&&i<a&&(r[n]=i,y(d(i),e,n))}))}}));var g=0;function y(t,e,n){null!=$h.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,i.set(e,!0))}J(n,(function(t){var e,n,r,i;if(lt(t))e=t,i={};else{e=(i=t).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=U({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=h.get(e);if(!1!==s){if(!(s=oa(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=d(g).coordDim;)g++;g<a&&s.push(g++)}J(s,(function(t,o){var a=d(t);if(l&&null!=i.type&&(a.type=i.type),y(Z(a,i),e,o),null==a.name&&n){var s=n[o];!ht(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&Z(a.otherDims,r)}))}}));var v=e.generateCoord,m=e.generateCoordCount,x=null!=m;m=v?m||1:0;var b=v||"value";function _(t){null==t.name&&(t.name=t.coordDim)}if(s)J(o,(function(t){_(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var w=0;w<a;w++){var S=d(w);null==S.coordDim&&(S.coordDim=t_(b,i,x),S.coordDimIndex=0,(!v||m<=0)&&(S.isExtraCoord=!0),m--),_(S),null!=S.type||hp(t,w)!==ap.Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(t){for(var e=Pt(),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 Lb({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function t_(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}var e_=function(t){this.coordSysDims=[],this.axisMap=Pt(),this.categoryAxisMap=Pt(),this.coordSysName=t};var n_={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",_a).models[0],o=t.getReferringComponents("yAxis",_a).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),r_(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),r_(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",_a).models[0];e.coordSysDims=["single"],n.set("single",i),r_(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",_a).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),r_(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),r_(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();J(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),r_(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function r_(t){return"category"===t.get("type")}function i_(t,e,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!Eb(t.schema)}(e)?(i=e.schema,r=i.dimensions,o=e.store):r=e;var l,u,c,h,p=!(!t||!t.get("stack"));if(J(r,(function(t,e){lt(t)&&(r[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,d=u.type,g=0;J(r,(function(t){t.coordDim===f&&g++}));var y={name:c,coordDim:f,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},v={name:h,coordDim:h,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(y.storeDimIndex=o.ensureCalculationDimension(h,d),v.storeDimIndex=o.ensureCalculationDimension(c,d)),i.appendCalculationDimension(y),i.appendCalculationDimension(v)):(r.push(y),r.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function o_(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function a_(t,e){return o_(t,e)?t.getCalculationInfo("stackResultDimension"):e}var s_=function(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=ff(t)):o=(r=i.getSource()).sourceFormat===Jh;var a=function(t){var e=t.get("coordinateSystem"),n=new e_(e),r=n_[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,r=t.get("coordinateSystem"),i=Pp.get(r);return e&&e.coordSysDims&&(n=Q(e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=kb(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=st(l)?l:l?ot(lp,s,e):null,c=Qb(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(t,e,n){var r,i;return n&&J(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}(c.dimensions,n.createInvertedIndices,a),p=o?null:i.getSharedDataStore(c),f=i_(e,{schema:c,store:p}),d=new $b(c,e);d.setCalculationInfo(f);var g=null!=h&&function(t){if(t.sourceFormat===Jh){var e=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!at(la(e))}}(r)?function(t,e,n,r){return r===h?n:this.defaultDimValueGetter(t,e,n,r)}:null;return d.hasItemOption=!1,d.initData(o?r:p,null,g),d},l_=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}();Ra(l_);var u_=l_,c_=0;function h_(t){return ht(t)&&null!=t.value?t.value:t+""}var p_=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++c_}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&Q(r,h_);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(!lt(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=Pt(this.categories))},t}();function f_(t){return"interval"===t.type||"log"===t.type}function d_(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=Xo(o/e,!0);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=y_(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),v_(t,0,e),v_(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(i.niceTickExtent=[Lo(Math.ceil(t[0]/a)*a,s),Lo(Math.floor(t[1]/a)*a,s)],t),i}function g_(t){var e=Math.pow(10,Yo(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Lo(n*e)}function y_(t){return No(t)+2}function v_(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function m_(t,e){return t>=e[0]&&t<=e[1]}function x_(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function b_(t,e){return t*(e[1]-e[0])+e[0]}var __=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new p_({})),at(r)&&(r=new p_({categories:Q(r,(function(t){return ht(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return m(e,t),e.prototype.parse=function(t){return null==t?NaN:lt(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return m_(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return x_(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(b_(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}(u_);u_.registerClass(__);var w_=__,S_=Lo,M_=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 m(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return m_(t,this._extent)},e.prototype.normalize=function(t){return x_(t,this._extent)},e.prototype.scale=function(t){return b_(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=y_(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:S_(r[0]-e,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=S_(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:S_(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=S_(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=No(t.value)||0:"auto"===n&&(n=this._intervalPrecision),wh(S_(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=d_(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]=S_(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=S_(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(u_);u_.registerClass(M_);var I_=M_,T_="undefined"!==typeof Float32Array,A_=T_?Float32Array:Array;function C_(t){return at(t)?T_?new Float32Array(t):t:new A_(t)}var k_="__ec_stack_";function O_(t){return t.get("stack")||k_+t.seriesIndex}function D_(t){return t.dim+t.index}function P_(t,e){var n=[];return e.eachSeriesByType(t,(function(t){z_(t)&&n.push(t)})),n}function L_(t){var e=function(t){var e={};J(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 J(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=Po(t.get("barWidth"),r),f=Po(t.get("barMaxWidth"),r),d=Po(t.get("barMinWidth")||(j_(t)?.5:1),r),g=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:p,barMaxWidth:f,barMinWidth:d,barGap:g,barCategoryGap:y,axisKey:D_(i),stackId:O_(t)})})),E_(n)}function E_(t){var e={};J(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 J(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=rt(r).length;o=Math.max(35-4*a,15)+"%"}var s=Po(o,i),l=Po(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),J(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,u-=r+l*r,c--}else{var r=h;e&&e<r&&(r=Math.min(e,u)),n&&n>r&&(r=n),r!==h&&(t.width=r,u-=r+l*r,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var p,f=0;J(r,(function(t,e){t.width||(t.width=h),p=t,f+=t.width*(1+l)})),p&&(f-=p.width*l);var d=-f/2;J(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:d,width:t.width},d+=t.width*(1+l)}))})),n}function N_(t,e){var n=P_(t,e),r=L_(n);J(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),i=O_(t),o=r[D_(n)][i],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function R_(t){return{seriesType:t,plan:Yd(),reset:function(t){if(z_(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=o_(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=j_(t),d=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),y=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){for(var r,i=t.count,l=f&&C_(3*i),u=f&&s&&C_(3*i),m=f&&C_(i),x=n.master.getRect(),b=h?x.width:x.height,_=e.getStore(),w=0;null!=(r=t.next());){var S=_.get(c?g:o,r),M=_.get(a,r),I=p,T=void 0;c&&(T=+S-_.get(o,r));var A=void 0,C=void 0,k=void 0,O=void 0;if(h){var D=n.dataToPoint([S,M]);if(c)I=n.dataToPoint([T,M])[0];A=I,C=D[1]+v,k=D[0]-I,O=y,Math.abs(k)<d&&(k=(k<0?-1:1)*d)}else{D=n.dataToPoint([M,S]);if(c)I=n.dataToPoint([M,T])[1];A=D[0]+v,C=I,k=y,O=D[1]-I,Math.abs(O)<d&&(O=(O<=0?-1:1)*d)}f?(l[w]=A,l[w+1]=C,l[w+2]=h?k:O,u&&(u[w]=h?x.x:A,u[w+1]=h?C:x.y,u[w+2]=b),m[r]=r):e.setItemLayout(r,{x:A,y:C,width:k,height:O}),w+=3}f&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}function z_(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function j_(t){return t.pipelineContext&&t.pipelineContext.large}var B_=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return m(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return oh(t.value,Qc[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(rh(this._minLevelUnit))]||Qc.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(lt(n))o=n;else if(st(n))o=n(t.value,e,{level:t.level});else{var a=U({},$c);if(t.level>0)for(var s=0;s<th.length;++s)a[th[s]]="{primary|"+a[th[s]]+"}";var l=n?!1===n.inherit?n:Z(n,a):a,u=ah(t.value,i);if(l[u])o=l[u];else if(l.inherit){for(s=eh.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(at(o)){var c=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[c=Math.min(c,o.length-1)]}}return oh(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=1e4,o=eh,a=0;function s(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 l(t,i,o){var a=[],l=!i.length;if(!function(t,e,n,r){var i=Uo(e),o=Uo(n),a=function(t){return sh(i,t,r)===sh(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")},f=function(){return p()&&a("millisecond")};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 f()}}(rh(t),r[0],r[1],n)){l&&(i=[{value:Z_(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,g=!1;switch(t){case"year":p=Math.max(1,Math.round(e/qc/365)),f=lh(n),d=gh(n);break;case"half-year":case"quarter":case"month":p=G_(e),f=uh(n),d=yh(n);break;case"week":case"half-week":case"day":p=F_(e,31),f=ch(n),d=vh(n),g=!0;break;case"half-day":case"quarter-day":case"hour":p=H_(e),f=hh(n),d=mh(n);break;case"minute":p=W_(e,!0),f=ph(n),d=xh(n);break;case"second":p=W_(e,!1),f=fh(n),d=bh(n);break;case"millisecond":p=U_(e),f=dh(n),d=_h(n)}s(p,c,h,f,d,g,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-p})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],h=0,p=0,f=0;f<o.length&&a++<i;++f){var d=rh(o[f]);if(ih(o[f]))if(l(o[f],u[u.length-1]||[],c),d!==(o[f+1]?rh(o[f+1]):null)){if(c.length){p=h,c.sort((function(t,e){return t.value-e.value}));for(var g=[],y=0;y<c.length;++y){var v=c[y].value;0!==y&&c[y-1].value===v||(g.push(c[y]),v>=r[0]&&v<=r[1]&&h++)}var m=(r[1]-r[0])/e;if(h>1.5*m&&p>m/1.5)break;if(u.push(g),h>m||t===o[f])break}c=[]}}0;var x=et(Q(u,(function(t){return et(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),b=[],_=x.length-1;for(f=0;f<x.length;++f)for(var w=x[f],S=0;S<w.length;++S)b.push({value:w[S].value,level:_-f});b.sort((function(t,e){return t.value-e.value}));var M=[];for(f=0;f<b.length;++f)0!==f&&b[f].value===b[f-1].value||M.push(b[f]);return M}(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]-=qc,e[1]+=qc),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]-qc}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=V_.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}(V_,this._approxInterval,0,o),o-1);this._interval=V_[a][1],this._minLevelUnit=V_[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return ct(t)?t:+Uo(t)},e.prototype.contain=function(t){return m_(this.parse(t),this._extent)},e.prototype.normalize=function(t){return x_(this.parse(t),this._extent)},e.prototype.scale=function(t){return b_(t,this._extent)},e.type="time",e}(I_),V_=[["second",Zc],["minute",Yc],["hour",Xc],["quarter-day",6*Xc],["half-day",12*Xc],["day",1.2*qc],["half-week",3.5*qc],["week",7*qc],["month",31*qc],["quarter",95*qc],["half-year",Kc/2],["year",Kc]];function F_(t,e){return(t/=qc)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function G_(t){return(t/=30*qc)>6?6:t>3?3:t>2?2:1}function H_(t){return(t/=Xc)>12?12:t>6?6:t>3.5?4:t>2?2:1}function W_(t,e){return(t/=e?Yc:Zc)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function U_(t){return Xo(t,!0)}function Z_(t,e,n){var r=new Date(t);switch(rh(e)){case"year":case"month":r[yh(n)](0);case"day":r[vh(n)](1);case"hour":r[mh(n)](0);case"minute":r[xh(n)](0);case"second":r[bh(n)](0),r[_h(n)](0)}return r.getTime()}u_.registerClass(B_);var Y_=B_,X_=u_.prototype,q_=I_.prototype,K_=Lo,$_=Math.floor,J_=Math.ceil,Q_=Math.pow,tw=Math.log,ew=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new I_,e._interval=0,e}return m(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent();return Q(q_.getTicks.call(this,t),(function(t){var e=t.value,i=Lo(Q_(this.base,e));return i=e===n[0]&&this._fixMin?rw(i,r[0]):i,{value:i=e===n[1]&&this._fixMax?rw(i,r[1]):i}}),this)},e.prototype.setExtent=function(t,e){var n=tw(this.base);t=tw(Math.max(0,t))/n,e=tw(Math.max(0,e))/n,q_.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=X_.getExtent.call(this);e[0]=Q_(t,e[0]),e[1]=Q_(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=rw(e[0],n[0])),this._fixMax&&(e[1]=rw(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=tw(t[0])/tw(e),t[1]=tw(t[1])/tw(e),X_.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=Zo(n);for(t/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[Lo(J_(e[0]/r)*r),Lo($_(e[1]/r)*r)];this._interval=r,this._niceExtent=i}},e.prototype.calcNiceExtent=function(t){q_.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 m_(t=tw(t)/tw(this.base),this._extent)},e.prototype.normalize=function(t){return x_(t=tw(t)/tw(this.base),this._extent)},e.prototype.scale=function(t){return t=b_(t,this._extent),Q_(this.base,t)},e.type="log",e}(u_),nw=ew.prototype;function rw(t,e){return K_(t,No(e))}nw.getMinorTicks=q_.getMinorTicks,nw.getLabel=q_.getLabel,u_.registerClass(ew);var iw=ew,ow=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);st(i)?this._modelMinNum=uw(t,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=uw(t,i));var o=this._modelMaxRaw=e.get("max",!0);if(st(o)?this._modelMaxNum=uw(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=uw(t,o)),r)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=at(a)?a:[a||0,a||0];"boolean"===typeof s[0]||"boolean"===typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[io(s[0],1),io(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,l=null!=a,u=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 c=mt(a)||mt(s)||t&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,p=this._determinedMax;return null!=h&&(a=h,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[sw[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[aw[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),aw={min:"_determinedMin",max:"_determinedMax"},sw={min:"_dataMin",max:"_dataMax"};function lw(t,e,n){var r=t.rawExtentInfo;return r||(r=new ow(t,e,n),t.rawExtentInfo=r,r)}function uw(t,e){return null==e?null:mt(e)?NaN:t.parse(e)}function cw(t,e){var n=t.type,r=lw(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=P_("bar",a),l=!1;if(J(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=L_(s),c=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[D_(e)];return null!=r&&null!=n?r[O_(n)]:r}}(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;J(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;J(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return e+=h*(l/u),t-=h*(s/u),{min:t,max:e}}(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function hw(t,e){var n=e,r=cw(t,n),i=r.extent,o=n.get("splitNumber");t instanceof iw&&(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 pw(t,e){if(e=e||t.get("type"))switch(e){case"category":return new w_({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Y_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(u_.getClass(e)||I_)}}function fw(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)}):lt(r)?function(e){return function(n){var r=t.scale.getLabel(n);return e.replace("{value}",null!=r?r:"")}}(r):st(r)?(e=r,function(n,r){return null!=i&&(r=n.value-i),e(dw(t,n),r,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function dw(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function gw(t,e){var n=e*Math.PI/180,r=t.width,i=t.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new sn(t.x,t.y,o,a)}function yw(t){var e=t.get("interval");return null==e?"auto":e}function vw(t){return"category"===t.type&&0===yw(t.getLabelModel())}function mw(t,e){var n={};return J(t.mapDimensionsAll(e),(function(e){n[a_(t,e)]=!0})),rt(n)}var xw=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}();function bw(t){return s_(null,t)}var _w={isDimensionStacked:o_,enableDataStack:i_,getStackedDimension:a_};function ww(t,e){var n=e;e instanceof Ec||(n=new Ec(e));var r=pw(n);return r.setExtent(t[0],t[1]),hw(r,n),r}function Sw(t){K(t,xw)}function Mw(t,e){return pc(t,null,null,"normal"!==(e=e||{}).state)}var Iw=1e-8;function Tw(t,e){return Math.abs(t-e)<Iw}function Aw(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+=tl(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return Tw(i[0],s[0])&&Tw(i[1],s[1])||(r+=tl(i[0],i[1],s[0],s[1],e,n)),0!==r}var Cw=[];function kw(t,e){for(var n=0;n<t.length;n++)ue(t[n],t[n],e)}function Ow(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])&&(ce(e,e,o),he(n,n,o))}}var Dw=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}(),Pw=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},Lw=function(t){this.type="linestring",this.points=t},Ew=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 m(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];return J(this.geometries,(function(e){"polygon"===e.type?Ow(e.exterior,n,r,t):J(e.points,(function(e){Ow(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 sn(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(Aw(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(Aw(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 sn(t,e,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(kw(c.exterior,s),J(c.interiors,(function(t){kw(t,s)}))):J(c.points,(function(t){kw(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}(Dw),Nw=function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return m(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=Fe(Cw),i=t;i&&!i.isGeoSVGGraphicRoot;)He(r,i.getLocalTransform(),r),i=i.parent;return Ye(r,r),ue(n,n,r),n},e}(Dw);function Rw(t,e,n){for(var r=0;r<t.length;r++)t[r]=zw(t[r],e[r],n)}function zw(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 jw(t,e){return Q(et((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;return null==n&&(n=1024),J(e.features,(function(t){var e=t.geometry,r=e.encodeOffsets,i=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=zw(i,r,n);break;case"Polygon":case"MultiLineString":Rw(i,r,n);break;case"MultiPolygon":J(i,(function(t,e){return Rw(t,r[e],n)}))}})),e.UTF8Encoding=!1,e}(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 Pw(o[0],o.slice(1)));break;case"MultiPolygon":J(r.coordinates,(function(t){t[0]&&i.push(new Pw(t[0],t.slice(1)))}));break;case"LineString":i.push(new Lw([r.coordinates]));break;case"MultiLineString":i.push(new Lw(r.coordinates))}var a=new Ew(n[e||"name"],i,n.cp);return a.properties=n,a}))}function Bw(t,e,n,r,i,o,a,s){return new Zl({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}var Vw=va();function Fw(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=Hw(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=fw(t);return{labels:Q(e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function Gw(t,e){return"category"===t.type?function(t,e){var n,r,i=Ww(t,"ticks"),o=yw(e),a=Uw(i,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(st(o))n=Xw(t,o,!0);else if("auto"===o){var s=Hw(t,t.getLabelModel());r=s.labelCategoryInterval,n=Q(s.labels,(function(t){return t.tickValue}))}else n=Yw(t,r=o,!0);return Zw(i,o,{ticks:n,tickCategoryInterval:r})}(t,e):{ticks:Q(t.scale.getTicks(),(function(t){return t.value}))}}function Hw(t,e){var n,r,i=Ww(t,"labels"),o=yw(e),a=Uw(i,o);return a||(st(o)?n=Xw(t,o):(r="auto"===o?function(t){var e=Vw(t).autoInterval;return null!=e?e:Vw(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=Yw(t,r)),Zw(i,o,{labels:n,labelCategoryInterval:r}))}function Ww(t,e){return Vw(t)[e]||(Vw(t)[e]=[])}function Uw(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function Zw(t,e,n){return t.push({key:e,value:n}),n}function Yw(t,e,n){var r=fw(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=vw(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 Xw(t,e,n){var r=t.scale,i=fw(t),o=[];return J(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})}
vendor: 8,429 bytes, line 2
2)),o}var qw=[0,1],Kw=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 zo(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&&$w(n=n.slice(),r.count()),Do(t,qw,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&$w(n=n.slice(),r.count());var i=Do(t,n,qw,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=Q(Gw(this,e).ticks,(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[1]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;J(e,(function(t){t.coord-=u/2})),a=1+t.scale.getExtent()[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*a},e.push(o)}var c=s[0]>s[1];h(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift());r&&h(s[0],e[0].coord)&&e.unshift({coord:s[0]});h(s[1],o.coord)&&(r?o.coord=s[1]:e.pop());r&&h(o.coord,s[1])&&e.push({coord:s[1]});function h(t,e){return t=Lo(t),e=Lo(e),c?t>e:t<e}}(this,n,e.get("alignWithLabel"),t.clamp),n},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),Q(this.scale.getMinorTicks(t),(function(t){return Q(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return Fw(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=fw(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,y=to(n({value:l}),e.font,"center","top");d=1.3*y.width,g=1.3*y.height,p=Math.max(p,d,7),f=Math.max(f,g,7)}var v=p/c,m=f/h;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(v,m))),b=Vw(t.model),_=t.getExtent(),w=b.lastAutoInterval,S=b.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&b.axisExtent0===_[0]&&b.axisExtent1===_[1]?x=w:(b.lastTickCount=a,b.lastAutoInterval=x,b.axisExtent0=_[0],b.axisExtent1=_[1]),x}(this)},t}();function $w(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var Jw=Kw;function Qw(t){var e=Yh.extend(t);return Yh.registerClass(e),e}function tS(t){var e=Zd.extend(t);return Zd.registerClass(e),e}function eS(t){var e=Wd.extend(t);return Wd.registerClass(e),e}function nS(t){var e=nv.extend(t);return nv.registerClass(e),e}var rS=2*Math.PI,iS=Zs.CMD,oS=["top","right","bottom","left"];function aS(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 sS(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)%rS<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var p=r;r=$s(i),i=$s(p)}else r=$s(r),i=$s(i);r>i&&(i+=rS);var f=Math.atan2(s,a);if(f<0&&(f+=rS),f>=r&&f<=i||f+rS>=r&&f+rS<=i)return l[0]=c,l[1]=h,u-n;var d=n*Math.cos(r)+t,g=n*Math.sin(r)+e,y=n*Math.cos(i)+t,v=n*Math.sin(i)+e,m=(d-a)*(d-a)+(g-s)*(g-s),x=(y-a)*(y-a)+(v-s)*(v-s);return m<x?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=y,l[1]=v,Math.sqrt(x))}function lS(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 uS(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 cS=[];function hS(t,e,n){var r=uS(e.x,e.y,e.width,e.height,t.x,t.y,cS);return n.set(cS[0],cS[1]),r}function pS(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 iS.M:o=s=c[f++],a=l=c[f++];break;case iS.L:g=lS(o,a,c[f],c[f+1],h,p,cS,!0),o=c[f++],a=c[f++];break;case iS.C:g=Qn(o,a,c[f++],c[f++],c[f++],c[f++],c[f],c[f+1],h,p,cS),o=c[f++],a=c[f++];break;case iS.Q:g=or(o,a,c[f++],c[f++],c[f],c[f+1],h,p,cS),o=c[f++],a=c[f++];break;case iS.A:var y=c[f++],v=c[f++],m=c[f++],x=c[f++],b=c[f++],_=c[f++];f+=1;var w=!!(1-c[f++]);r=Math.cos(b)*m+y,i=Math.sin(b)*x+v,f<=1&&(s=r,l=i),g=sS(y,v,x,b,b+_,w,(h-y)*x/m+y,p,cS),o=Math.cos(b+_)*m+y,a=Math.sin(b+_)*x+v;break;case iS.R:g=uS(s=o=c[f++],l=a=c[f++],c[f++],c[f++],h,p,cS);break;case iS.Z:g=lS(o,a,s,l,h,p,cS,!0),o=s,a=l}g<u&&(u=g,n.set(cS[0],cS[1]))}return u}var fS=new Ke,dS=new Ke,gS=new Ke,yS=new Ke,vS=new Ke;function mS(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||oS,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=t.getComputedTransform(),h=c&&Ye([],c),p=e.get("length2")||0;u&&gS.copy(u);for(var f=0;f<a.length;f++){aS(a[f],0,s,fS,yS),Ke.scaleAndAdd(dS,fS,yS,p),dS.transform(h);var d=t.getBoundingRect(),g=u?u.distance(dS):t instanceof gl?pS(dS,t.path,gS):hS(dS,d,gS);g<l&&(l=g,dS.transform(c),gS.transform(c),gS.toArray(o[0]),dS.toArray(o[1]),fS.toArray(o[2]))}_S(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var xS=[],bS=new Ke;function _S(t,e){if(e<=180&&e>0){e=e/180*Math.PI,fS.fromArray(t[0]),dS.fromArray(t[1]),gS.fromArray(t[2]),Ke.sub(yS,fS,dS),Ke.sub(vS,gS,dS);var n=yS.len(),r=vS.len();if(!(n<.001||r<.001)){yS.scale(1/n),vS.scale(1/r);var i=yS.dot(vS);if(Math.cos(e)<i){var o=lS(dS.x,dS.y,gS.x,gS.y,fS.x,fS.y,xS,!1);bS.fromArray(xS),bS.scaleAndAdd(vS,o/Math.tan(Math.PI-e));var a=gS.x!==dS.x?(bS.x-dS.x)/(gS.x-dS.x):(bS.y-dS.y)/(gS.y-dS.y);if(isNaN(a))return;a<0?Ke.copy(bS,dS):a>1&&Ke.copy(bS,gS),bS.toArray(t[1])}}}}function wS(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,fS.fromArray(t[0]),dS.fromArray(t[1]),gS.fromArray(t[2]),Ke.sub(yS,dS,fS),Ke.sub(vS,gS,dS);var r=yS.len(),i=vS.len();if(!(r<.001||i<.001))if(yS.scale(1/r),vS.scale(1/i),yS.dot(e)<Math.cos(n)){var o=lS(dS.x,dS.y,gS.x,gS.y,fS.x,fS.y,xS,!1);bS.fromArray(xS);var a=Math.PI/2,s=a+Math.acos(vS.dot(e))-n;if(s>=a)Ke.copy(bS,gS);else{bS.scaleAndAdd(vS,o/Math.tan(Math.PI/2-s));var l=gS.x!==dS.x?(bS.x-dS.x)/(gS.x-dS.x):(bS.y-dS.y)/(gS.y-dS.y);if(isNaN(l))return;l<0?Ke.copy(bS,dS):l>1&&Ke.copy(bS,gS)}bS.toArray(t[1])}}}function SS(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 MS(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=ie(r[0],r[1]),o=ie(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=le([],r[1],r[0],a/i),l=le([],r[1],r[2],a/o),u=le([],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 IS(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();
vendor: 36,319 bytes, line 2
2if(i){for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<ru.length;l++){var u=ru[l],c=e[u],h="normal"===u;if(c){var p=c.get("show");if((h?s:bt(i.states[u]&&i.states[u].ignore,s))||!bt(p,a)){var f=h?r:r&&r.states[u];f&&(f.ignore=!0);continue}r||(r=new Ug,t.setTextGuideLine(r),h||!s&&a||SS(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),SS(r,!1,u,c)}}if(r){Z(r.style,n),r.style.fill=null;var d=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=d||!1,r.buildPath=MS}}else r&&t.removeTextGuideLine()}function TS(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<nu.length;r++){var i=nu[r];n[i]=t.getModel([i,e])}return n}function AS(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 dy(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 CS(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 y,v,m=t[0],x=t[a-1];return b(),y<0&&S(-y,.8),v<0&&S(v,.8),b(),_(y,v,1),_(v,y,-1),b(),y<0&&M(-y),v<0&&M(v),u}function b(){y=m.rect[e]-r,v=i-x.rect[e]-x.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 kS(t,e,n,r){return CS(t,"y","height",e,n,r)}function OS(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new sn(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 dy(d.localRect,d.transform)),h||(h=new dy(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 DS(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function PS(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:DS(r&&r.shape.points)}}var LS=["align","verticalAlign","width","height","fontSize"],ES=new Ki,NS=va(),RS=va();function zS(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null!=e[i]&&(t[i]=e[i])}}var jS=["x","y","rotation"],BS=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();sn.applyTransform(l,l,s),s?ES.setLocalTransform(s):(ES.x=ES.y=ES.rotation=ES.originX=ES.originY=0,ES.scaleX=ES.scaleY=1),ES.rotation=$s(ES.rotation);var u,c=r.__hostTarget;if(c){u=c.getBoundingRect().plain();var h=c.getComputedTransform();sn.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:ES.x,y:ES.y,scaleX:ES.scaleX,scaleY:ES.scaleY,rotation:ES.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");(st(r)||rt(r).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var i=t.getTextContent(),o=Yl(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(){mS(t,e)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=(u=st(o.layoutOption)?o.layoutOption(PS(o,s)):o.layoutOption)||{},o.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var h=!1;if(null!=u.x?(a.x=Po(u.x,e),a.setStyle("x",0),h=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=Po(u.y,n),a.setStyle("y",0),h=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var p=s.getTextGuideLine();p&&(p.setShape({points:u.labelLinePoints}),h=!1)}NS(a).needsUpdateLabelLine=h,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var f=0;f<LS.length;f++){var d=LS[f];a.setStyle(d,null!=u[d]?u[d]:l.style[d])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var g=o.seriesModel;if(null!=o.dataIndex)g=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);a.on("drag",r(s,g.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},t.prototype.layout=function(t){var e,n=t.getWidth(),r=t.getHeight(),i=AS(this._labelList),o=et(i,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),a=et(i,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));CS(o,"x","width",0,n,e),kS(a,0,r),OS(et(i,(function(t){return t.layoutOption.hideOverlap})))},t.prototype.processLabelsOverall=function(){var t=this;J(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=NS(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),i&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),r=Yl(t),i=r.dataIndex;if(n&&null!=i){var o=e.getData(r.dataType),a=o.getItemModel(i),s={},l=o.getItemVisual(i,"style");if(l){var u=o.getVisual("drawType");s.stroke=l[u]}var c=a.getModel("labelLine");IS(t,TS(a),s),mS(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&&!nc(t))){var i=(f=NS(n)).oldLayout,o=Yl(t),a=o.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},l=e.getData(o.dataType);if(i){n.attr(i);var u=t.prevStates;u&&(X(u,"select")>=0&&n.attr(f.oldLayoutSelect),X(u,"emphasis")>=0&&n.attr(f.oldLayoutEmphasis)),tc(n,s,e,a)}else if(n.attr(s),!xc(n).valueAnimation){var c=bt(n.style.opacity,1);n.style.opacity=0,ec(n,{style:{opacity:c}},e,a)}if(f.oldLayout=s,n.states.select){var h=f.oldLayoutSelect={};zS(h,s,jS),zS(h,n.states.select,jS)}if(n.states.emphasis){var p=f.oldLayoutEmphasis={};zS(p,s,jS),zS(p,n.states.emphasis,jS)}_c(n,a,l,e,e)}if(r&&!r.ignore&&!r.invisible){i=(f=RS(r)).oldLayout;var f,d={points:r.shape.points};i?(r.attr({shape:i}),tc(r,{shape:d},e)):(r.setShape(d),r.style.strokePercent=0,ec(r,{style:{strokePercent:1}},e)),f.oldLayout=d}},t}(),VS=BS,FS=va();function GS(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=FS(e).labelManager;r||(r=FS(e).labelManager=new VS),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=FS(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}function HS(t,e,n){var r=T.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}wb(GS);var WS=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||zi,"string"===typeof e?i=HS(e,n,r):ht(e)&&(e=(i=e).id),o.id=e,o.dom=i;var a=i.style;return a&&(Nt(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return Vt(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=HS("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 sn(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new sn(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 sn(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 sn(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&&(f.__dirty&An||!h)?f.getPrevPaintRect():null)&&u(d);var p=h&&(f.__dirty&An||!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,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var h=this.domBack;function p(t,n,r,o){if(i.clearRect(t,n,r,o),e&&"transparent"!==e){var a=void 0;if(gt(e))a=(e.global||e.__width===r&&e.__height===o)&&e.__canvasGradient||gm(i,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=a,e.__width=r,e.__height=o;else yt(e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=Im(i,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}}));i.save(),i.fillStyle=a||e,i.fillRect(t,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(h,t,n,r,o),i.restore())}!n||s?p(0,0,o,a):n.length&&J(n,(function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(ye),US=WS,ZS=1e5,YS=314159,XS=.01;var qS=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=U({},n||{}),this.dpr=n.devicePixelRatio||zi,this._singleCanvas=i,this.root=t,t.style&&(Nt(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=t,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new US(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=YS,o.push(YS),this._domRoot=t}else{this._width=vm(t,0,n),this._height=vm(t,1,n);var h=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(h)}}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(ZS)),r||(r=n.ctx).save(),jm(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(ZS)},t.prototype.paintOne=function(t,e){zm(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;En((function(){s._paintList(t,e,n,r)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(YS).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 s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=i[a],h=l.ctx,f=o&&l.createRepaintRects(t,e,p._width,p._height),d=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,y=g&&Date.now(),v=l.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,f);else if(d===l.__startIndex){var m=t[d];m.incremental&&m.notClear&&!n||l.clear(!1,v,f)}-1===d&&(console.error("For some unknown reason. drawIndex is -1"),d=l.__startIndex);var x=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=d;s<l.__endIndex;s++){var i=t[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,e,n,s===l.__endIndex-1),g)if(Date.now()-y>15)break}n.prevElClipPaths&&h.restore()};if(f)if(0===f.length)s=l.__endIndex;else for(var b=p.dpr,_=0;_<f.length;++_){var w=f[_];h.save(),h.beginPath(),h.rect(w.x*b,w.y*b,w.width*b,w.height*b),h.clip(),x(w),h.restore()}else h.save(),x(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},p=this,f=0;f<i.length;f++)h(f);return _.wxa&&J(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},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))&&(jm(a,t,i,o),t.setPrevPaintRect(s))}else jm(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=YS);var n=this._layers[t];return n||((n=new US("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?H(n,this._layerConfig[t],!0):this._layerConfig[t-XS]&&H(n,this._layerConfig[t-XS],!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,l=(s=t[i]).zlevel,u=void 0;r!==l&&(r=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?XS:0),this._needsManuallyCompositing),u.__builtin__||F("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,e(i),o=u),s.__dirty&An&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__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,J(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?H(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+XS)H(this._layers[i],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(X(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=vm(i,0,r),e=vm(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(YS).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 US("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];jm(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),KS=qS;var $S=Math.sin,JS=Math.cos,QS=Math.PI,tM=2*Math.PI,eM=180/QS,nM=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=Gr(c-tM)||(u?l>=tM:-l>=tM),p=l>0?l%tM:l%tM+tM,f=!1;f=!!h||!Gr(c)&&p>=QS===!!u;var d=t+n*JS(o),g=e+r*$S(o);this._start&&this._add("M",d,g);var y=Math.round(i*eM);if(h){var v=1/this._p,m=(u?1:-1)*(tM-v);this._add("A",n,r,y,1,+u,t+n*JS(o+m),e+r*$S(o+m)),v>.01&&this._add("A",n,r,y,0,+u,d,g)}else{var x=t+n*JS(a),b=e+r*$S(a);this._add("A",n,r,y,+f,+u,x,b)}},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}(),rM=nM,iM="none",oM=Math.round;var aM=["lineCap","miterLimit","lineJoin"],sM=Q(aM,(function(t){return"stroke-"+t.toLowerCase()}));function lM(t,e,n,r){var i=null==e.opacity?1:e.opacity;if(n instanceof wl)t("opacity",i);else{if(function(t){var e=t.fill;return null!=e&&e!==iM}(e)){var o=Vr(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",iM);if(function(t){var e=t.stroke;return null!=e&&e!==iM}(e)){var s=Vr(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=mm(n),f=p[0],d=p[1];f&&(d=oM(d||0),t("stroke-dasharray",f.join(",")),(d||r)&&t("stroke-dashoffset",d))}else r&&t("stroke-dasharray",iM);for(var g=0;g<aM.length;g++){var y=aM[g];if(r||e[y]!==hl[y]){var v=e[y]||hl[y];v&&t(sM[g],v)}}}else r&&t("stroke",iM)}}var uM="http://www.w3.org/2000/svg",cM="http://www.w3.org/1999/xlink",hM="http://www.w3.org/2000/xmlns/",pM="http://www.w3.org/XML/1998/namespace";function fM(t){return document.createElementNS(uM,t)}function dM(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function gM(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var r=e.children,i=e.tag,o=e.attrs,a=e.text;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,o)+("style"!==i?Te(a):a||"")+(r?""+n+Q(r,(function(e){return t(e)})).join(n)+n:"")+("</"+i+">")}(t)}function yM(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function vM(t,e,n,r){return dM("svg","root",{width:t,height:e,xmlns:uM,"xmlns:xlink":cM,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+t+" "+e},n)}var mM={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"},xM="transform-origin";function bM(t,e,n){var r=U({},t.shape);U(r,e),t.buildPath(n,r);var i=new rM;return i.reset(Jr(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function _M(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[xM]=n+"px "+r+"px")}var wM={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function SM(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function MM(t){return lt(t)?mM[t]?"cubic-bezier("+mM[t]+")":lr(t)?t:"":""}function IM(t,e,n,r){var i=t.animators,o=i.length,a=[];if(t instanceof oy){var s=function(t,e,n){var r,i,o=t.shape.paths,a={};if(J(o,(function(t){var e=yM(n.zrId);e.animation=!0,IM(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=rt(o),u=l.length;if(u){var c=o[i=l[u-1]];for(var h in c){var p=c[h];a[h]=a[h]||{d:""},a[h].d+=p.d||""}for(var f in s){var d=s[f].animation;d.indexOf(i)>=0&&(r=d)}}})),r){e.d=!1;var s=SM(a,n);return r.replace(i,s)}}(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=i[u],h=[c.getMaxTime()/1e3+"s"],p=MM(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(" ");l[d]=l[d]||[d,[]],l[d][1].push(c)}function g(i){var o,a=i[1],s=a.length,l={},u={},c={},h="animation-timing-function";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,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],p=Math.round(c.time/i*100)+"%",f=MM(c.easing),d=c.rawValue;(lt(d)||ct(d))&&(e[p]=e[p]||{},e[p][l]=c.rawValue,f&&(e[p][h]=f))}}}}for(var f=0;f<s;f++){(S=(w=a[f]).targetName)?"shape"===S&&p(w,u):!r&&p(w,l)}for(var d in l){var g={};qi(g,t),U(g,l[d]);var y=Qr(g),v=l[d][h];c[d]=y?{transform:y}:{},_M(c[d],g),v&&(c[d][h]=v)}var m=!0;for(var d in u){c[d]=c[d]||{};var x=!o;v=u[d][h];x&&(o=new Zs);var b=o.len();o.reset(),c[d].d=bM(t,u[d],o);var _=o.len();if(!x&&b!==_){m=!1;break}v&&(c[d][h]=v)}if(!m)for(var d in c)delete c[d].d;if(!r)for(f=0;f<s;f++){var w,S;"style"===(S=(w=a[f]).targetName)&&p(w,c,(function(t){return wM[t]}))}var M,I=rt(c),T=!0;for(f=1;f<I.length;f++){var A=I[f-1],C=I[f];if(c[A][xM]!==c[C][xM]){T=!1;break}M=c[A][xM]}if(T&&M){for(var d in c)c[d][xM]&&delete c[d][xM];e[xM]=M}if(et(I,(function(t){return rt(c[t]).length>0})).length)return SM(c,n)+" "+i[0]+" both"}for(var y in l){(s=g(l[y]))&&a.push(s)}if(a.length){var v=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+v]={animation:a.join(",")},e.class=v}}var TM=Math.round;function AM(t){return t&<(t.src)}function CM(t){return t&&st(t.toDataURL)}function kM(t,e,n,r){lM((function(i,o){var a="fill"===i||"stroke"===i;a&&Kr(o)?zM(e,t,i,r):a&&Yr(o)?jM(n,t,i,r):t[i]=o}),e,n,!1),function(t,e,n){var r=t.style;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(r)){var i=function(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(",")}(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=Vr(r.shadowColor),d=f.opacity,g=f.color,y=p/2/l+" "+p/2/u;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=dM("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[dM("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:y,"flood-color":g,"flood-opacity":d})]),o[i]=a}e.filter=$r(a)}}(n,t,r)}function OM(t){return Gr(t[0]-1)&&Gr(t[1])&&Gr(t[2])&&Gr(t[3]-1)}function DM(t,e,n){if(e&&(!function(t){return Gr(t[4])&&Gr(t[5])}(e)||!OM(e))){var r=n?10:1e4;t.transform=OM(e)?"translate("+TM(e[4]*r)/r+" "+TM(e[5]*r)/r+")":function(t){return"matrix("+Hr(t[0])+","+Hr(t[1])+","+Hr(t[2])+","+Hr(t[3])+","+Wr(t[4])+","+Wr(t[5])+")"}(e)}}function PM(t,e,n){for(var r=t.points,i=[],o=0;o<r.length;o++)i.push(TM(r[o][0]*n)/n),i.push(TM(r[o][1]*n)/n);e.points=i.join(" ")}function LM(t){return!t.smooth}var EM={circle:[function(t){var e=Q(t,(function(t){return"string"===typeof t?[t,t]:t}));return function(t,n,r){for(var i=0;i<e.length;i++){var o=e[i],a=t[o[0]];null!=a&&(n[o[1]]=TM(a*r)/r)}}}(["cx","cy","r"])],polyline:[PM,LM],polygon:[PM,LM]};function NM(t,e){var n=t.style,r=t.shape,i=EM[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&Jr(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){var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var h=t.path;c&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated());var p=h.getVersion(),f=t,d=f.__svgPathBuilder;f.__svgPathVersion===p&&d&&l===f.__svgPathStrokePercent||(d||(d=f.__svgPathBuilder=new rM),d.reset(u),h.rebuildPath(d,l),d.generateStr(),f.__svgPathVersion=p,f.__svgPathStrokePercent=l),o.d=d.getStr()}else{s=t.type;var g=Math.pow(10,u);i[0](r,o,g)}return DM(o,t.transform),kM(o,n,t,e),e.animation&&IM(t,o,e),dM(s,t.id+"",o)}function RM(t,e){return t instanceof gl?NM(t,e):t instanceof wl?function(t,e){var n=t.style,r=n.image;if(r&&!lt(r)&&(AM(r)?r=r.src:CM(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),DM(a,t.transform),kM(a,n,t,e),e.animation&&IM(t,a,e),dM("image",t.id+"",a)}}(t,e):t instanceof ml?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||M,o=n.x||0,a=function(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}(n.y||0,ro(i),n.textBaseline),s={"dominant-baseline":"central","text-anchor":Ur[n.textAlign]||n.textAlign};if(Bl(n)){var l="",u=n.fontStyle,c=zl(n.fontSize);if(!parseFloat(c))return;var h=n.fontFamily||S,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),DM(s,t.transform),kM(s,n,t,e),e.animation&&IM(t,s,e),dM("text",t.id+"",s,void 0,r)}}(t,e):void 0}function zM(t,e,n,r){var i,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(Xr(o))i="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!qr(o))return void 0;i="radialGradient",a.cx=bt(o.x,.5),a.cy=bt(o.y,.5),a.r=bt(o.r,.5)}for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=100*Wr(s[u].offset)+"%",p=Vr(s[u].color),f=p.color,d=p.opacity,g={offset:h};g["stop-color"]=f,d<1&&(g["stop-opacity"]=d),l.push(dM("stop",u+"",g))}var y=gM(dM(i,"",a,l)),v=r.gradientCache,m=v[y];m||(m=r.zrId+"-g"+r.gradientIdx++,v[y]=m,a.id=m,r.defs[m]=dM(i,m,a,l)),e[n]=$r(m)}function jM(t,e,n,r){var i,o=t.style[n],a=t.getBoundingRect(),s={},l=o.repeat,u="no-repeat"===l,c="repeat-x"===l,h="repeat-y"===l;if(Zr(o)){var p=o.imageWidth,f=o.imageHeight,d=void 0,g=o.image;if(lt(g)?d=g:AM(g)?d=g.src:CM(g)&&(d=g.toDataURL()),"undefined"===typeof Image){var y="Image width/height must been given explictly in svg-ssr renderer.";Mt(p,y),Mt(f,y)}else if(null==p||null==f){var v=function(t,e){if(t){var n=t.elm,r=p||e.width,i=f||e.height;"pattern"===t.tag&&(c?(i=1,r/=a.width):h&&(r=1,i/=a.height)),t.attrs.width=r,t.attrs.height=i,n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},m=Ga(d,null,t,(function(t){u||v(w,t),v(i,t)}));m&&m.width&&m.height&&(p=p||m.width,f=f||m.height)}i=dM("image","img",{href:d,width:p,height:f}),s.width=p,s.height=f}else o.svgElement&&(i=G(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(i){var x,b;u?x=b=1:c?(b=1,x=s.width/a.width):h?(x=1,b=s.height/a.height):s.patternUnits="userSpaceOnUse",null==x||isNaN(x)||(s.width=x),null==b||isNaN(b)||(s.height=b);var _=Qr(o);_&&(s.patternTransform=_);var w=dM("pattern","",s,[i]),S=gM(w),M=r.patternCache,I=M[S];I||(I=r.zrId+"-p"+r.patternIdx++,M[S]=I,s.id=I,w=r.defs[I]=dM("pattern",I,s,[i])),e[n]=$r(I)}}function BM(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]=dM("clipPath",o,a,[NM(t,n)])}e["clip-path"]=$r(o)}function VM(t){return document.createTextNode(t)}function FM(t,e,n){t.insertBefore(e,n)}function GM(t,e){t.removeChild(e)}function HM(t,e){t.appendChild(e)}function WM(t){return t.parentNode}function UM(t){return t.nextSibling}function ZM(t,e){t.textContent=e}var YM=58,XM=120,qM=dM("","");function KM(t){return void 0===t}function $M(t){return void 0!==t}function JM(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 QM(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function tI(t){var e,n=t.children,r=t.tag;if($M(r)){var i=t.elm=fM(r);if(rI(qM,t),at(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&HM(i,tI(o))}else $M(t.text)&&!ht(t.text)&&HM(i,VM(t.text))}else t.elm=VM(t.text);return t.elm}function eI(t,e,n,r,i){for(;r<=i;++r){var o=n[r];null!=o&&FM(t,tI(o),e)}}function nI(t,e,n,r){for(;n<=r;++n){var i=e[n];if(null!=i)if($M(i.tag))GM(WM(i.elm),i.elm);else GM(t,i.elm)}}function rI(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):n.charCodeAt(0)!==XM?r.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS(hM,n,a):n.charCodeAt(3)===YM?r.setAttributeNS(pM,n,a):n.charCodeAt(5)===YM?r.setAttributeNS(cM,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function iI(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(rI(t,e),KM(e.text)?$M(r)&&$M(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]:QM(u,p)?(iI(u,p),u=e[++a],p=n[++s]):QM(c,f)?(iI(c,f),c=e[--l],f=n[--h]):QM(u,f)?(iI(u,f),FM(t,u.elm,UM(c.elm)),u=e[++a],f=n[--h]):QM(c,p)?(iI(c,p),FM(t,c.elm,u.elm),c=e[--l],p=n[++s]):(KM(r)&&(r=JM(e,a,l)),KM(i=r[p.key])||(o=e[i]).tag!==p.tag?FM(t,tI(p),u.elm):(iI(o,p),e[i]=void 0,FM(t,o.elm,u.elm)),p=n[++s]);(a<=l||s<=h)&&(a>l?eI(t,null==n[h+1]?null:n[h+1].elm,n,s,h):nI(t,e,a,l))}(n,r,i):$M(i)?($M(t.text)&&ZM(n,""),eI(n,null,i,0,i.length-1)):$M(r)?nI(n,r,0,r.length-1):$M(t.text)&&ZM(n,""):t.text!==e.text&&($M(r)&&nI(n,r,0,r.length-1),ZM(n,e.text)))}var oI=0,aI=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=e,this._opts=n=U({},n),this.root=t,this._id="zr"+oI++,this._oldVNode=vM(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=fM("svg");rI(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;
2left:0;top:0;user-select:none",function(t,e){if(QM(t,e))iI(t,e);else{var n=t.elm,r=WM(n);tI(e),null!==r&&(FM(r,e.elm,UM(n)),nI(r,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return RM(t,yM(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=yM(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress;var o=[],a=this._bgVNode=function(t,e,n,r){var i;if(n&&"none"!==n)if(i=dM("rect","bg",{width:t,height:e,x:"0",y:"0",id:"0"}),Kr(n))zM({fill:n},i.attrs,"fill",r);else if(Yr(n))jM({style:{fill:n},dirty:zt,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",r);else{var o=Vr(n),a=o.color,s=o.opacity;i.attrs.fill=a,s<1&&(i.attrs["fill-opacity"]=s)}return i}(n,r,this._backgroundColor,i);a&&o.push(a);var s=t.compress?null:this._mainVNode=dM("g","main",{},[]);this._paintList(e,i,s?s.children:o),s&&o.push(s);var l=Q(rt(i.defs),(function(t){return i.defs[t]}));if(l.length&&o.push(dM("defs","defs",{},l)),t.animation){var u=function(t,e,n){var r=(n=n||{}).newline?"\n":"",i=" {"+r,o=r+"}",a=Q(rt(t),(function(e){return e+i+Q(rt(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(r)+o})).join(r),s=Q(rt(e),(function(t){return"@keyframes "+t+i+Q(rt(e[t]),(function(n){return n+i+Q(rt(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):""}(i.cssNodes,i.cssAnims,{newline:!0});if(u){var c=dM("style","stl",{},[],u);o.push(c)}}return vM(n,r,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},gM(this.renderToVNode({animation:bt(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:bt(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},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 y=d+1;y<p;y++){var v={};BM(h[y],v,e);var m=dM("g","clip-g-"+l++,v,[]);(r?r.children:n).push(m),a[s++]=m,r=m}i=h;var x=RM(c,e);x&&(r?r.children:n).push(x)}}},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=vm(r,0,n),e=vm(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"}if(Yr(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.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=this.renderToString(),n="data:image/svg+xml;";return t?(e=ti(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},t}();var sI=aI;var lI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.getInitialData=function(t){return s_(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new xo,n=hm("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=hm(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}(Wd),uI=lI;function cI(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=kf(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(kf(t,e,n[a]));return o.join(" ")}}function hI(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!at(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(" ")}var pI=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return m(e,t),e.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=hm(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=fI,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(){Cu(this.childAt(0))},e.prototype.downplay=function(){ku(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):tc(p,h,a,n),ac(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,ec(p,h,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,c,h,p,f,d=this.childAt(0),g=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,h=r.labelStatesModels,p=r.hoverScale,f=r.cursorStyle,c=r.emphasisDisabled),!r||t.hasItemOption){var y=r&&r.itemModel?r.itemModel:t.getItemModel(e),v=y.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),a=y.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),c=v.get("disabled"),h=hc(y),p=v.getShallow("scale"),f=y.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");d.attr("rotation",(m||0)*Math.PI/180||0);var x=fm(t.getItemVisual(e,"symbolOffset"),n);x&&(d.x=x[0],d.y=x[1]),f&&d.attr("cursor",f);var b=t.getItemVisual(e,"style"),_=b.fill;if(d instanceof wl){var w=d.style;d.useStyle(U({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},b))}else d.__isEmptyBrush?d.useStyle(U({}
vendor: 40,720 bytes, line 2
2,b)):d.useStyle(b),d.style.decal=null,d.setColor(_,i&&i.symbolInnerColor),d.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=d.z2,d.z2+=S):null!=M&&(d.z2=M,this._z2=null);var I=i&&i.useNameLabel;cc(d,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return I?t.getName(e):cI(t,e)},inheritColor:_,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=d.ensureState("emphasis");T.style=o,d.ensureState("select").style=s,d.ensureState("blur").style=a;var A=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;T.scaleX=this._sizeX*A,T.scaleY=this._sizeY*A,this.setSymbolScale(1),Gu(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=Yl(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&rc(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();rc(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return pm(t.getItemVisual(e,"symbolSize"))},e}(xo);function fI(t,e){this.parent.drift(t,e)}var dI=pI;function gI(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 yI(t){return null==t||ht(t)||(t={isIgnore:t}),t||{}}function vI(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:hc(e),cursorStyle:e.get("cursor")}}var mI=function(){function t(t){this.group=new xo,this._SymbolCtor=t||dI}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=yI(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=vI(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(gI(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(gI(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 y={x:f[0],y:f[1]};a?p.attr(y):tc(p,y,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=vI(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=yI(n);for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(gI(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){Yy(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 xI(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]:ct(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,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=Q(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,f=e.getCalculationInfo("stackResultDimension");return o_(e,h[0])&&(p=!0,h[0]=f),o_(e,h[1])&&(p=!0,h[1]=f),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function bI(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 _I=Math.min,wI=Math.max;function SI(t,e){return isNaN(t)||isNaN(e)}function MI(t,e,n,r,i,o,a,s,l){for(var u,c,h,p,f,d,g=n,y=0;y<r;y++){var v=e[2*g],m=e[2*g+1];if(g>=i||g<0)break;if(SI(v,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,m),h=v,p=m;else{var x=v-u,b=m-c;if(x*x+b*b<.5){g+=o;continue}if(a>0){for(var _=g+o,w=e[2*_],S=e[2*_+1];w===v&&S===m&&y<r;)y++,g+=o,w=e[2*(_+=o)],S=e[2*_+1],x=(v=e[2*g])-u,b=(m=e[2*g+1])-c;var M=y+1;if(l)for(;SI(w,S)&&M<r;)M++,w=e[2*(_+=o)],S=e[2*_+1];var I=.5,T=0,A=0,C=void 0,k=void 0;if(M>=r||SI(w,S))f=v,d=m;else{T=w-u,A=S-c;var O=v-u,D=w-v,P=m-c,L=S-m,E=void 0,N=void 0;if("x"===s){var R=T>0?1:-1;f=v-R*(E=Math.abs(O))*a,d=m,C=v+R*(N=Math.abs(D))*a,k=m}else if("y"===s){var z=A>0?1:-1;f=v,d=m-z*(E=Math.abs(P))*a,C=v,k=m+z*(N=Math.abs(L))*a}else E=Math.sqrt(O*O+P*P),f=v-T*a*(1-(I=(N=Math.sqrt(D*D+L*L))/(N+E))),d=m-A*a*(1-I),k=m+A*a*I,C=_I(C=v+T*a*I,wI(w,v)),k=_I(k,wI(S,m)),C=wI(C,_I(w,v)),d=m-(A=(k=wI(k,_I(S,m)))-m)*E/N,f=_I(f=v-(T=C-v)*E/N,wI(u,v)),d=_I(d,wI(c,m)),C=v+(T=v-(f=wI(f,_I(u,v))))*N/E,k=m+(A=m-(d=wI(d,_I(c,m))))*N/E}t.bezierCurveTo(h,p,f,d,v,m),h=C,p=k}else t.lineTo(v,m)}u=v,c=m,g+=o}return y}var II=function(){this.smooth=0,this.smoothConstraint=!0},TI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new II},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0&&SI(n[2*i-2],n[2*i-1]);i--);for(;r<i&&SI(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=MI(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=Zs.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 y=a?(c-r)*g+r:(u-n)*g+n;return a?[t,y]:[y,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 v=a?Kn(n,u,h,f,t,s):Kn(r,c,p,d,t,s);if(v>0)for(var m=0;m<v;m++){var x=s[m];if(x<=1&&x>=0){y=a?Xn(r,c,p,d,x):Xn(n,u,h,f,x);return a?[t,y]:[y,t]}}n=f,r=d}}},e}(gl),AI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(II),CI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return m(e,t),e.prototype.getDefaultShape=function(){return new AI},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&&SI(n[2*o-2],n[2*o-1]);o--);for(;i<o&&SI(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=MI(t,n,i,o,o,1,e.smooth,a,e.connectNulls);MI(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}},e}(gl);function kI(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var h=new Ol({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),f=p.isHorizontal(),d=p.inverse;f?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var g=st(i)?function(t){i(t,h)}:null;ec(h,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return h}function OI(t,e,n){var r=t.getArea(),i=Lo(r.r0,1),o=Lo(r.r,1),a=new Ng({shape:{cx:Lo(t.cx,1),cy:Lo(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,ec(a,{shape:{endAngle:r.endAngle,r:o}},n));return a}function DI(t,e,n,r,i){return t?"polar"===t.type?OI(t,e,n):"cartesian2d"===t.type?kI(t,e,n,r,i):null:null}function PI(t,e){return t.type===e}function LI(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function EI(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 NI(t,e){var n=EI(t),r=n[0],i=n[1],o=EI(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 RI(t){return ct(t)?t:t?.5:0}function zI(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 jI(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 l=e.getAxis(i),u=Q(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var p=function(t,e){var n,r,i=[],o=t.length;function a(t,e,n){var r=t.coord;return{coord:n,color:Pr((n-r)/(e.coord-r),[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}(u,"x"===i?n.getWidth():n.getHeight()),f=p.length;if(!f&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var d=p[0].coord-10,g=p[f-1].coord+10,y=g-d;if(y<.001)return"transparent";J(p,(function(t){t.offset=(t.coord-d)/y})),p.push({offset:f?p[f-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:f?p[0].offset:.5,color:h[0]||"transparent"});var v=new sy(0,0,0,0,p,!0);return v[i]=d,v[i+"2"]=g,v}}}function BI(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*dI.getSymbolSize(e,a)[t.isHorizontal()?1:0]>r)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return J(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function VI(t,e){return[t[2*e],t[2*e+1]]}function FI(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<nu.length;e++)if(t.get([nu[e],"endLabel","show"]))return!0;return!1}function GI(t,e,n,r){if(PI(e,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=FI(r)?function(n,r){t._endLabelOnDuring(n,r,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=kI(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 OI(e,n,r)}var HI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.init=function(){var t=new xo,e=new mI;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"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,h=this._coordSys,p=this._symbolDraw,f=this._polyline,d=this._polygon,g=this._lineGroup,y=!e.ssr&&t.isAnimationEnabled(),v=!l.isEmpty(),m=l.get("origin"),x=xI(i,a,m),b=v&&function(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=C_(2*r),o=0;o<r;o++){var a=bI(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(i,a,x),_=t.get("showSymbol"),w=t.get("connectNulls"),S=_&&!c&&BI(t,a,i),M=this._data;M&&M.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),M.setItemGraphicEl(e,null))})),_||p.remove(),o.add(g);var I,T=!c&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(I=i.getArea()).width?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var A=jI(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(f&&h.type===i.type&&T===this._step){v&&!d?d=this._newPolygon(u,b):d&&!v&&(g.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,Ph(A));var C=g.getClipPath();if(C)ec(C,{shape:GI(this,i,!1,t).shape},t);else g.setClipPath(GI(this,i,!0,t));_&&p.updateData(a,{isIgnore:S,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),LI(this._stackedOnPoints,b)&&LI(this._points,u)||(y?this._doUpdateAnimation(a,b,i,n,T,m,w):(T&&(u=zI(u,i,T,w),b&&(b=zI(b,i,T,w))),f.setShape({points:u}),d&&d.setShape({points:u,stackedOnPoints:b})))}else _&&p.updateData(a,{isIgnore:S,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),y&&this._initSymbolLabelAnimation(a,i,I),T&&(u=zI(u,i,T,w),b&&(b=zI(b,i,T,w))),f=this._newPolyline(u),v?d=this._newPolygon(u,b):d&&(g.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,Ph(A)),g.setClipPath(GI(this,i,!0,t));var k=t.getModel("emphasis"),O=k.get("focus"),D=k.get("blurScope"),P=k.get("disabled");(f.useStyle(Z(s.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),Zu(f,t,"lineStyle"),f.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(f.getState("emphasis").style.lineWidth=+f.style.lineWidth+1);Yl(f).seriesIndex=t.seriesIndex,Gu(f,O,D,P);var L=RI(t.get("smooth")),E=t.get("smoothMonotone");if(f.setShape({smooth:L,smoothMonotone:E,connectNulls:w}),d){var N=a.getCalculationInfo("stackedOnSeries"),R=0;d.useStyle(Z(l.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),N&&(R=RI(N.get("smooth"))),d.setShape({smooth:L,stackedOnSmooth:R,smoothMonotone:E,connectNulls:w}),Zu(d,t,"areaStyle"),Yl(d).seriesIndex=t.seriesIndex,Gu(d,O,D,P)}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=b,this._points=u,this._step=T,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,f),d&&this.packEventData(t,d))},e.prototype.packEventData=function(t,e){Yl(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=ya(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 dI(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 nv.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=ya(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 nv.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;Su(this._polyline,t),e&&Su(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new TI({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 CI({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,l=s.get("animationDuration");st(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=st(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],p=void 0,f=void 0,d=void 0;if(n)if(i){var g=n,y=e.pointToCoord(h);r?(p=g.startAngle,f=g.endAngle,d=-y[1]/180*Math.PI):(p=g.r0,f=g.r,d=y[0])}else{var v=n;r?(p=v.x,f=v.x+v.width,d=t.x):(p=v.y+v.height,f=v.y,d=t.y)}var m=f===p?0:(d-p)/(f-p);a&&(m=1-m);var x=st(u)?u(o):l*m+c,b=s.getSymbolPath(),_=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:x}),b.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(FI(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 Zl({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&&(cc(o,hc(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?hI(i,n):cI(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(),y=d.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?f:0)*(y?-1:1),b=(g?0:-f)*(y?-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],I=void 0;if(M>=1){if(M>1&&!h){var T=VI(u,S[0]);s.attr({x:T[0]+x,y:T[1]+b}),i&&(I=c.getRawValue(S[0]))}else{(T=l.getPointOn(m,_))&&s.attr({x:T[0]+x,y:T[1]+b});var A=c.getRawValue(S[0]),C=c.getRawValue(S[1]);i&&(I=Ta(n,p,A,C,w.t))}r.lastFrameIndex=S[0]}else{var k=1===t||r.lastFrameIndex>0?S[0]:0;T=VI(u,k);i&&(I=c.getRawValue(k)),s.attr({x:T[0]+x,y:T[1]+b})}if(i){var O=xc(s);"function"===typeof O.setLabelText&&O.setLabelText(I)}}},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=[],y=xI(i,e,a),v=t.getLayout("points")||[],m=e.getLayout("points")||[],x=0;x<l.length;x++){var b=l[x],_=!0,w=void 0,S=void 0;switch(b.cmd){case"=":w=2*b.idx,S=2*b.idx1;var M=v[w],I=v[w+1],T=m[S],A=m[S+1];(isNaN(M)||isNaN(I))&&(M=T,I=A),u.push(M,I),c.push(T,A),h.push(n[w],n[w+1]),p.push(r[S],r[S+1]),g.push(e.getRawIndex(b.idx1));break;case"+":var C=b.idx,k=y.dataDimsForPoint,O=i.dataToPoint([e.get(k[0],C),e.get(k[1],C)]);S=2*C,u.push(O[0],O[1]),c.push(m[S],m[S+1]);var D=bI(y,i,e,C);h.push(D[0],D[1]),p.push(r[S],r[S+1]),g.push(e.getRawIndex(C));break;case"-":_=!1}_&&(f.push(b),d.push(d.length))}d.sort((function(t,e){return g[t]-g[e]}));var P=u.length,L=C_(P),E=C_(P),N=C_(P),R=C_(P),z=[];for(x=0;x<d.length;x++){var j=d[x],B=2*x,V=2*j;L[B]=u[V],L[B+1]=u[V+1],E[B]=c[V],E[B+1]=c[V+1],N[B]=h[V],N[B+1]=h[V+1],R[B]=p[V],R[B+1]=p[V+1],z[x]=f[j]}return{current:L,next:E,stackedOnCurrent:N,stackedOnNext:R,status:z}}(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=zI(c.current,n,i,a),p=zI(c.stackedOnCurrent,n,i,a),f=zI(c.next,n,i,a),d=zI(c.stackedOnNext,n,i,a)),NI(h,f)>3e3||l&&NI(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(),tc(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:p}),l.stopAnimation(),tc(l,{shape:{stackedOnPoints:d}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=c.status,m=0;m<v.length;m++){if("="===v[m].cmd){var x=t.getItemGraphicEl(v[m].idx1);x&&y.push({el:x,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<y.length;e++){var n=y[e].el,r=2*y[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}(nv),WI=HI;function UI(t,e){return{seriesType:t,plan:Yd(),reset:function(t){var n=t.getData(),r=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(r){var a=Q(r.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");o_(n,a[0])&&(a[0]=l),o_(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),h=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,i=o&&C_(n*s),a=[],l=[],p=t.start,f=0;p<t.end;p++){var d=void 0;if(1===s){var g=u.get(c,p);d=r.dataToPoint(g,null,l)}else a[0]=u.get(c,p),a[1]=u.get(h,p),d=r.dataToPoint(a,null,l);o?(i[f++]=d[0],i[f++]=d[1]):e.setItemLayout(p,d.slice())}o&&e.setLayout("points",i)}}}}}}var ZI={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]}},YI=function(t){return Math.round(t.length/2)};function XI(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(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),p=Math.round(a/h);if(isFinite(p)&&p>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/p));var f=void 0;lt(i)?f=ZI[i]:st(i)&&(f=i),f&&t.setData(r.downSample(r.mapDimension(l.dim),1/p,f,YI))}}}}}var qI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.getInitialData=function(t,e){return s_(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(t),o=r.dataToPoint(i);if(n)J(r.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var r=t.getTicksCoords(),a=i[n],s="x1"===e[n]||"y1"===e[n];if(s&&(a+=1),r.length<2)return;if(2===r.length)return void(o[n]=t.toGlobalCoord(t.getExtent()[s?1:0]));for(var l=void 0,u=void 0,c=1,h=0;h<r.length;h++){var p=r[h].coord,f=h===r.length-1?r[h-1].tickValue+c:r[h].tickValue;if(f===a){u=p;break}if(f<a)l=p;else if(null!=l&&f>a){u=(p+l)/2;break}1===h&&(c=f-r[0].tickValue)}null==u&&(l?l&&(u=r[r.length-1].coord):u=r[0].coord),o[n]=t.toGlobalCoord(u)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=r.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}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}(Wd);Wd.registerClass(qI);var KI=qI,$I=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.getInitialData=function(){return s_(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=zc(KI.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}(KI),JI=$I,QI=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},tT=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return m(e,t),e.prototype.getDefaultShape=function(){return new QI},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),y=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,y*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&t.arc(n,r,i,u,l,c)},e}(gl),eT=tT;function nT(t,e,n){return e*Math.sin(t)*(n?-1:1)}function rT(t,e,n){return e*Math.cos(t)*(n?1:-1)}function iT(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;at(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Q(r,(function(t){return io(t,i)}))}}var oT=Math.max,aT=Math.min;var sT=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return m(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){Yy(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(PI(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),y=t.getModel("backgroundStyle"),v=y.get("borderRadius")||0,m=[],x=this._backgroundEls,b=r&&r.isInitSort,_=r&&"changeAxisOrder"===r.type;function w(t){var e=gT[l.type](a,t),n=function(t,e,n){var r="polar"===t.type?Ng:Ol;return new r({shape:wT(e,n,t),silent:!0,z2:0})}(l,i,e);return n.useStyle(y.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),m[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),r=gT[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&dT[l.type](r)){var s=!1;p&&(s=lT[l.type](f,r));var y=uT[l.type](t,a,e,r,i,c,u.model,!1,d);h&&(y.forceLabelAnimation=!0),vT(y,a,e,n,r,t,i,"polar"===l.type),b?y.attr({shape:r}):h?cT(h,c,y,r,e,i,!1,!1):ec(y,{shape:r},t,e),a.setItemGraphicEl(e,y),o.add(y),y.ignore=s}})).update((function(e,n){var r=a.getItemModel(e),S=gT[l.type](a,e,r);if(g){var M=void 0;0===x.length?M=w(n):((M=x[n]).useStyle(y.getItemStyle()),"cartesian2d"===l.type?M.setShape("r",v):M.setShape("cornerRadius",v),m[e]=M);var I=gT[l.type](a,e);tc(M,{shape:wT(i,I,l)},c,e)}var T=s.getItemGraphicEl(n);if(a.hasValue(e)&&dT[l.type](S)){var A=!1;if(p&&(A=lT[l.type](f,S))&&o.remove(T),T?ac(T):T=uT[l.type](t,a,e,S,i,c,u.model,!!T,d),h&&(T.forceLabelAnimation=!0),_){var C=T.getTextContent();if(C){var k=xc(C);null!=k.prevValue&&(k.prevValue=k.value)}}else vT(T,a,e,r,S,t,i,"polar"===l.type);b?T.attr({shape:S}):h?cT(h,c,T,S,e,i,!0,_):tc(T,{shape:S},t,e,null),a.setItemGraphicEl(e,T),T.ignore=A,o.add(T)}else o.remove(T)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&oc(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new xo);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(),bT(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),bT(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&DI(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:Q(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){oc(e,t,Yl(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}(nv),lT={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=oT(e.x,t.x),s=aT(e.x+e.width,i),l=oT(e.y,t.y),u=aT(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=aT(e.r,t.r),o=oT(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}},uT={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new Ol({shape:U({},r),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[i?"height":"width"]=0);return u},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?eT:Ng,c=new u({shape:r,z2:1});c.name="item";var h=yT(i);if(c.calculateTextPosition=function(t,e){var n=(e=e||{}).isRoundCap;return function(e,r,i){var o=r.position;if(!o||o instanceof Array)return oo(e,r,i);var a=t(o),s=null!=r.distance?r.distance:5,l=this.shape,u=l.cx,c=l.cy,h=l.r,p=l.r0,f=(h+p)/2,d=l.startAngle,g=l.endAngle,y=(d+g)/2,v=n?Math.abs(h-p)/2:0,m=Math.cos,x=Math.sin,b=u+h*m(d),_=c+h*x(d),w="left",S="top";switch(a){case"startArc":b=u+(p-s)*m(y),_=c+(p-s)*x(y),w="center",S="top";break;case"insideStartArc":b=u+(p+s)*m(y),_=c+(p+s)*x(y),w="center",S="bottom";break;case"startAngle":b=u+f*m(d)+nT(d,s+v,!1),_=c+f*x(d)+rT(d,s+v,!1),w="right",S="middle";break;case"insideStartAngle":b=u+f*m(d)+nT(d,-s+v,!1),_=c+f*x(d)+rT(d,-s+v,!1),w="left",S="middle";break;case"middle":b=u+f*m(y),_=c+f*x(y),w="center",S="middle";break;case"endArc":b=u+(h+s)*m(y),_=c+(h+s)*x(y),w="center",S="bottom";break;case"insideEndArc":b=u+(h-s)*m(y),_=c+(h-s)*x(y),w="center",S="top";break;case"endAngle":b=u+f*m(g)+nT(g,s+v,!0),_=c+f*x(g)+rT(g,s+v,!0),w="left",S="middle";break;case"insideEndAngle":b=u+f*m(g)+nT(g,-s+v,!0),_=c+f*x(g)+rT(g,-s+v,!0),w="right",S="middle";break;default:return oo(e,r,i)}return(e=e||{}).x=b,e.y=_,e.align=w,e.verticalAlign=S,e}}(h,{isRoundCap:u===eT}),o){var p=i?"r":"endAngle",f={};c.shape[p]=i?r.r0:r.startAngle,f[p]=r[p],(s?tc:ec)(c,{shape:f},o)}return c}};function cT(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?tc:ec)(n,{shape:l},e,i,null),(a?tc:ec)(n,{shape:u},e?t.baseAxis.model:null,i)}function hT(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var pT=["x","y","width","height"],fT=["cx","cy","r","startAngle","endAngle"],dT={cartesian2d:function(t){return!hT(t,pT)},polar:function(t){return!hT(t,fT)}},gT={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 yT(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 vT(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape;U(u,iT(r.getModel("itemStyle"),u,!0)),t.setShape(u)}}else{var c=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(l);var h=r.getShallow("cursor");h&&t.attr("cursor",h);var p=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",f=hc(r);cc(t,f,{labelFetcher:o,labelDataIndex:n,defaultText:cI(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var d=t.getTextContent();if(s&&d){var g=r.get(["label","position"]);t.textConfig.inside="middle"===g||null,function(t,e,n,r){if(ct(r))t.setTextConfig({rotation:r});else if(at(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,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}(t,"outside"===g?p:g,yT(a),r.get(["label","rotate"]))}bc(d,f,o.getRawValue(n),(function(t){return hI(e,t)}));var y=r.getModel(["emphasis"]);Gu(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),Zu(t,r),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(i)&&(t.style.fill="none",t.style.stroke="none",J(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var mT=function(){},xT=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return m(e,t),e.prototype.getDefaultShape=function(){return new mT},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}(gl);function bT(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 xT({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 xT({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")),Yl(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",_T),h.on("mousemove",_T)),n&&n.push(h)}var _T=av((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);Yl(this).dataIndex=e>=0?e:null}),30,!1);function wT(t,e,n){if(PI(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 ST=sT;var MT=2*Math.PI,IT=Math.PI/180;function TT(t,e){return Bh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function AT(t,e){var n=TT(t,e),r=t.get("center"),i=t.get("radius");at(i)||(i=[0,i]);var o,a,s=Po(n.width,e.getWidth()),l=Po(n.height,e.getHeight()),u=Math.min(s,l),c=Po(i[0],u/2),h=Po(i[1],u/2),p=t.coordinateSystem;if(p){var f=p.dataToPoint(r);o=f[0]||0,a=f[1]||0}else at(r)||(r=[r,r]),o=Po(r[0],s)+n.x,a=Po(r[1],l)+n.y;return{cx:o,cy:a,r0:c,r:h}}function CT(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),r=e.mapDimension("value"),i=TT(t,n),o=AT(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*IT,h=t.get("minA
2ngle")*IT,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"),y=t.get("roseType"),v=t.get("stillShowZeroSum"),m=e.getDataExtent(r);m[0]=0;var x=MT,b=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:y?NaN:l});else{(r="area"!==y?0===f&&v?d:t*d:MT/p)<h?(r=h,x-=h):b+=t;var i=_+w*r;e.setItemLayout(n,{angle:r,startAngle:_,endAngle:i,clockwise:g,cx:a,cy:s,r0:u,r:y?Do(t,m,[u,l]):l}),_=i}})),x<MT&&p)if(x<=.001){var S=MT/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=x/b,_=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 kT(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 OT=Math.PI/180;function DT(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}kS(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;PT(l,l.targetTextWidth-d*i,!0),l.label.x=f}}}function PT(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 y=(r.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-h)/2}}}function LT(t){return"center"===t.position}function ET(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*OT,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,h=s.y,p=s.height;function f(t){t.ignore=!0}r.each((function(t){var s=r.getItemGraphicEl(t),h=s.shape,p=s.getTextContent(),d=s.getTextGuideLine(),g=r.getItemModel(t),y=g.getModel("label"),v=y.get("position")||g.get(["emphasis","label","position"]),m=y.get("distanceToLabelLine"),x=y.get("alignTo"),b=Po(y.get("edgeDistance"),u),_=y.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=Po(S,u);var M=w.get("length2");if(M=Po(M,u),Math.abs(h.endAngle-h.startAngle)<a)return J(p.states,f),p.ignore=!0,void(d&&(J(d.states,f),d.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}(p)){var I,T,A,C,k=(h.startAngle+h.endAngle)/2,O=Math.cos(k),D=Math.sin(k);e=h.cx,n=h.cy;var P="inside"===v||"inner"===v;if("center"===v)I=h.cx,T=h.cy,C="center";else{var L=(P?(h.r+h.r0)/2*O:h.r*O)+e,E=(P?(h.r+h.r0)/2*D:h.r*D)+n;if(I=L+3*O,T=E+3*D,!P){var N=L+O*(S+l-h.r),R=E+D*(S+l-h.r),z=N+(O<0?-1:1)*M;I="edge"===x?O<0?c+b:c+u-b:z+(O<0?-m:m),T=R,A=[[L,E],[N,R],[z,R]]}C=P?"center":"edge"===x?O>0?"right":"left":O>0?"left":"right"}var j=Math.PI,B=0,V=y.get("rotate");if(ct(V))B=V*(j/180);else if("center"===v)B=0;else if("radial"===V||!0===V){B=O<0?-k+j:-k}else if("tangential"===V&&"outside"!==v&&"outer"!==v){var F=Math.atan2(O,D);F<0&&(F=2*j+F),D>0&&(F=j+F),B=F-j}if(o=!!B,p.x=I,p.y=T,p.rotation=B,p.setStyle({verticalAlign:"middle"}),P){p.setStyle({align:C});var G=p.states.select;G&&(G.x+=p.x,G.y+=p.y)}
vendor: 33,834 bytes, line 2
2else{var H=p.getBoundingRect().clone();H.applyTransform(p.getComputedTransform());var W=(p.style.margin||0)+2.1;H.y-=W/2,H.height+=W,i.push({label:p,labelLine:d,position:v,len:S,len2:M,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new Ke(O,D),linePoints:A,textAlign:C,labelDistance:m,labelAlignTo:x,edgeDistance:b,bleedMargin:_,rect:H,unconstrainedWidth:H.width,labelStyleWidth:p.style.width})}s.setTextConfig({inside:P})}})),!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;LT(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(!LT(y=t[p])&&y.linePoints){if(null!=y.labelStyleWidth)continue;f=y.label;var d=y.linePoints,g=void 0;g="edge"===y.labelAlignTo?f.x<e?d[2][0]-y.labelDistance-a-y.edgeDistance:a+i-y.edgeDistance-d[2][0]-y.labelDistance:"labelLine"===y.labelAlignTo?f.x<e?c-a-y.bleedMargin:a+i-h-y.bleedMargin:f.x<e?f.x-a-y.bleedMargin:a+i-f.x-y.bleedMargin,y.targetTextWidth=g,PT(y,g)}for(DT(u,e,n,r,1,0,o,0,s,h),DT(l,e,n,r,-1,0,o,0,s,c),p=0;p<t.length;p++){var y;if(!LT(y=t[p])&&y.linePoints){f=y.label,d=y.linePoints;var v="edge"===y.labelAlignTo,m=f.style.padding,x=m?m[1]+m[3]:0,b=f.style.backgroundColor?0:x,_=y.rect.width+b,w=d[1][0]-d[2][0];v?f.x<e?d[2][0]=a+y.edgeDistance+_+y.labelDistance:d[2][0]=a+i-y.edgeDistance-_-y.labelDistance:(f.x<e?d[2][0]=f.x+y.labelDistance:d[2][0]=f.x-y.labelDistance,d[1][0]=d[2][0]+w),d[1][1]=d[2][1]=f.y}}}(i,e,n,l,u,p,c,h);for(var d=0;d<i.length;d++){var g=i[d],y=g.label,v=g.labelLine,m=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),m&&(J(y.states,f),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(v){var b=g.linePoints;m||!b?(J(v.states,f),v.ignore=!0):(_S(b,g.minTurnAngle),wS(b,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new Ke(b[0][0],b[0][1])})}}}var NT=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new Zl;return i.setTextContent(o),i.updateData(e,n,r,!0),i}return m(e,t),e.prototype.updateData=function(t,e,n,r){var i=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=U(iT(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))i.setShape(u);else{if(r){i.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(ec(i,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,ec(i,{shape:{r:l.r}},o,e)):null!=n?(i.setShape({startAngle:n,endAngle:n}),ec(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(i.shape.endAngle=l.startAngle,tc(i,{shape:{endAngle:l.endAngle}},o,e))}else ac(i),tc(i,{shape:u},o,e);i.useStyle(t.getItemVisual(e,"style")),Zu(i,a);var h=(l.startAngle+l.endAngle)/2,p=o.get("selectedOffset"),f=Math.cos(h)*p,d=Math.sin(h)*p,g=a.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(o,t,e),i.ensureState("emphasis").shape=U({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},iT(s.getModel("itemStyle"),l)),U(i.ensureState("select"),{x:f,y:d,shape:iT(a.getModel(["select","itemStyle"]),l)}),U(i.ensureState("blur"),{shape:iT(a.getModel(["blur","itemStyle"]),l)});var y=i.getTextGuideLine(),v=i.getTextContent();y&&U(y.ensureState("select"),{x:f,y:d}),U(v.ensureState("select"),{x:f,y:d}),Gu(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var r=this,i=e.getItemModel(n),o=i.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;cc(r,hc(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Ug,this.setTextGuideLine(h)),IS(this,TS(i),{stroke:s,opacity:_t(o.get(["lineStyle","opacity"]),l,1)})}},e}(Ng),RT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return m(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 Ng({shape:AT(t,n)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add((function(t){var e=new NT(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){oc(a.getItemGraphicEl(e),t,e)})).execute(),ET(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}(nv),zT=RT;function jT(t,e,n){e=at(e)&&{coordDimensions:e}||U({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=Qb(r,e).dimensions,o=new $b(i,t);return o.initData(r,n),o}var BT=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}(),VT=BT,FT=va(),GT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new VT(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return jT(this,{coordDimensions:["value"],encodeDefaulter:ot(up,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),r=FT(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),i=r.seats=Bo(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=i[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){aa(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}(Wd),HT=GT;var WT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){return s_(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}(Wd),UT=WT,ZT=function(){},YT=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return m(e,t),e.prototype.getDefaultShape=function(){return new ZT},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 sn(a-i/2,s-o/2,l-a+i,u-s+o)}return t},e}(gl),XT=function(){function t(){this.group=new xo}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 YT({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=hm(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=Yl(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}(),qT=XT,KT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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=UI("").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 qT:new mI,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}(nv),$T=KT,JT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(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}(Yh),QT=JT,tA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",_a).models[0]},e.type="cartesian2dAxis",e}(Yh);K(tA,xw);var eA={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)"]}}},nA=H({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},eA),rA=H({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}}},eA),iA={category:nA,value:rA,time:H({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},rA),log:Z({logBase:10},rA)},oA={value:1,category:1,time:1,log:1};function aA(t,e,n,r){J(oA,(function(i,o){var a=H(H({},iA[o],!0),r,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return m(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Fh(this),r=n?Hh(t):{};H(t,e.getTheme().get(o+"Axis")),H(t,this.getDefaultOption()),t.type=sA(t),n&&Gh(t,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=p_.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=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",sA)}function sA(t){return t.type||(t.data?"category":"value")}var lA=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 Q(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),et(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}(),uA=["x","y"];function cA(t){return"interval"===t.type||"time"===t.type}var hA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=uA,e}return m(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(cA(t)&&cA(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=Ye([],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 sn(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 ue(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 ue(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 sn(n,r,i,o)},e}(lA),pA=hA,fA=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 m(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}(Jw),dA=fA;function gA(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,d="x"===u?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));d[p.onZero]=Math.max(Math.min(g,d[1]),d[0])}o.position=["y"===u?d[p[l]]:h[0],"x"===u?d[p[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?d[p[s]]-d[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),xt(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function yA(t){return"cartesian2d"===t.get("coordinateSystem")}function vA(t){var e={xAxisModel:null,yAxisModel:null};return J(e,(function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,_a).models[0];e[r]=o})),e}var mA=Math.log;function xA(t,e,n){var r=I_.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=cw(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var p=mA(t.base);u=[mA(u[0])/p,mA(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],y=u[1];if(c&&h)d=(y-g)/a;else if(c)for(y=u[0]+d*a;y<u[1]&&isFinite(y)&&isFinite(u[1]);)d=g_(d),y=u[0]+d*a;else if(h)for(g=u[1]-d*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)d=g_(d),g=u[1]-d*a;else{t.getTicks().length-1>a&&(d=g_(d));var v=d*a;(g=Lo((y=Math.ceil(u[1]/d)*d)-v))<0&&u[0]>=0?(g=0,y=Lo(v)):y>0&&u[1]<=0&&(y=0,g=-Lo(v))}var m=(i[0].value-o[0].value)/s,x=(i[a].value-o[a].value)/s;r.setExtent.call(t,g+d*m,y+d*x),r.setInterval.call(t,d),(m||x)&&r.setNiceExtent.call(t,g+d,y-d)}var bA=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=uA,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=rt(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;f_(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(hw(l,s),f_(l)&&(e=a))}i.length&&(e||hw((e=i.pop()).scale,e.model),J(i,(function(t){xA(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};J(n.x,(function(t){wA(n,"y",t,i)})),J(n.y,(function(t){wA(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=Bh(r,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){J(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&&(J(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 w_?n.count():(r=n.getTicks()).length;var a,s=t.getLabelModel(),l=fw(t),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var h=l(r?r[c]:{value:o[0]+c},c),p=gw(s.getTextRect(h),s.get("rotate")||0);a?a.union(p):a=p}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()),J(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]}ht(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",_a).models[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis",_a).models[0],a=t.gridModel,s=this._coordsList;if(r)X(s,e=r.coordinateSystem)<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",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,r){if(_A(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 dA(e,pw(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,J(a.x,(function(e,n){J(a.y,(function(i,o){var a="x"+n+"y"+o,s=new pA(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){J(mw(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}J(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(yA(t)){var r=vA(t),i=r.xAxisModel,o=r.yAxisModel;if(!_A(i,e)||!_A(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 J(this.getCartesians(),(function(r){var i=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis(),o=r.getOtherAxis(i);X(e,i)<0&&e.push(i),X(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(yA(t)){var e=vA(t),n=e.xAxisModel,r=e.yAxisModel;0;var i=n.getCoordSysModel().coordinateSystem;t.coordinateSystem=i.getCartesian(n.componentIndex,r.componentIndex)}})),r},t.dimensions=uA,t}();function _A(t,e){return t.getCoordSysModel()===e}function wA(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)SA(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&SA(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(t){return t.dim+"_"+t.index}}function SA(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 MA=bA,IA=Math.PI,TA=function(){function t(t,e){this.group=new xo,this.opt=e,this.axisModel=t,Z(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new xo({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!AA[t]},t.prototype.add=function(t){AA[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=Go(e-t);return Ho(o)?(i=n>0?"top":"bottom",r="center"):Ho(o-IA)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<IA?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}(),AA={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],l=[o[1],0],u=s[0]>l[0];a&&(ue(s,s,a),ue(l,l,a));var c=U({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new qg({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Dy(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var p=e.get(["axisLine","symbol"]);if(null!=p){var f=e.get(["axisLine","symbolSize"]);lt(p)&&(p=[p,p]),(lt(f)||ct(f))&&(f=[f,f]);var d=fm(e.get(["axisLine","symbolOffset"])||0,f),g=f[0],y=f[1];J([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,r){if("none"!==p[r]&&null!=p[r]){var i=hm(p[r],-g/2,-y/2,g,y,c.stroke,!0),o=e.r+e.offset,a=u?l: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"),l=r.tickDirection*o.get("length"),u=DA(i.getTicksCoords(),e.transform,l,Z(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)t.add(u[c]);return u}(n,r,e,t),o=function(t,e,n,r){var i=n.axis,o=xt(r.axisLabelShow,n.get(["axisLabel","show"]));if(!o||i.scale.isBlank())return;var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(xt(r.labelRotate,a.get("rotate"))||0)*IA/180,c=TA.innerTextLayout(r.rotation,u,r.labelDirection),h=n.getCategories&&n.getCategories(!0),p=[],f=TA.isLabelSilent(n),d=n.get("triggerEvent");return J(l,(function(o,l){var u="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,g=o.formattedLabel,y=o.rawLabel,v=a;if(h&&h[u]){var m=h[u];ht(m)&&m.textStyle&&(v=new Ec(m.textStyle,a,n.ecModel))}var x=v.getTextColor()||n.get(["axisLine","lineStyle","color"]),b=i.dataToCoord(u),_=new Zl({x:b,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:f,z2:10+(o.level||0),style:pc(v,{text:g,align:v.getShallow("align",!0)||c.textAlign,verticalAlign:v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||c.textVerticalAlign,fill:st(x)?x("category"===i.type?y:"value"===i.type?u+"":u,l):x})});if(_.anid="label_"+u,d){var w=TA.makeAxisEventDataBase(n);w.targetType="axisLabel",w.value=y,w.tickIndex=l,"category"===i.type&&(w.dataIndex=u),Yl(_).eventData=w}e.add(_),_.updateTransform(),p.push(_),t.add(_),_.decomposeTransform()})),p}(n,r,e,t);(function(t,e,n){if(vw(t.axis))return;var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=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?(CA(o),CA(u)):kA(o,a)&&(r?(CA(a),CA(c)):(CA(o),CA(u)));!1===i?(CA(s),CA(h)):kA(l,s)&&(i?(CA(l),CA(p)):(CA(s),CA(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"),l=r*o.get("length"),u=Z(s.getLineStyle(),Z(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=DA(a[c],e.transform,l,u,"minorticks_"+c),p=0;p<h.length;p++)t.add(h[p])}(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"]))&&OS(AS(Q(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}}))))},axisName:function(t,e,n,r){var i=xt(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),p=h[0]>h[1]?-1:1,f=["start"===s?h[0]-p*c:"end"===s?h[1]+p*c:(h[0]+h[1])/2,OA(s)?t.labelOffset+l*c:0],d=e.get("nameRotate");null!=d&&(d=d*IA/180),OA(s)?o=TA.innerTextLayout(t.rotation,null!=d?d:t.rotation,l):(o=function(t,e,n,r){var i,o,a=Go(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;Ho(a-IA/2)?(o=l?"bottom":"top",i="center"):Ho(a-1.5*IA)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*IA&&a>IA/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(t.rotation,s,d||0,h),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),y=e.get("nameTruncate",!0)||{},v=y.ellipsis,m=xt(t.nameTruncateMaxWidth,y.maxWidth,a),x=new Zl({x:f[0],y:f[1],rotation:o.rotation,silent:TA.isLabelSilent(e),style:pc(u,{text:i,font:g,overflow:"truncate",width:m,ellipsis:v,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Uy({el:x,componentModel:e,itemName:i}),x.__fullText=i,x.anid="name",e.get("triggerEvent")){var b=TA.makeAxisEventDataBase(e);b.targetType="axisName",b.name=i,Yl(x).eventData=b}r.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function CA(t){t&&(t.ignore=!0)}
vendor: 4,588 bytes, line 2
2function kA(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=Fe([]);return Ue(i,i,-t.rotation),n.applyTransform(He([],i,t.getLocalTransform())),r.applyTransform(He([],i,e.getLocalTransform())),n.intersect(r)}}function OA(t){return"middle"===t||"center"===t}function DA(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&&(ue(a,a,e),ue(s,s,e));var c=new qg({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Dy(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,o.push(c)}return o}var PA=TA;function LA(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=[];J(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=zA(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",r);if(J(n.getAxes(),ot(f,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),p=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&J(p.baseAxes,ot(f,!h||"cross",c)),h&&J(p.otherAxes,ot(f,"cross",!1))}}function f(r,s,c){var h=c.model.getModel("axisPointer",i),p=h.get("show");if(p&&("auto"!==p||r||RA(h))){null==s&&(s=h.get("triggerTooltip")),h=r?function(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s={};J(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=G(a.get(t))})),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&Z(l,c.textStyle)}}return t.model.getModel("axisPointer",new Ec(s,n,r))}(c,u,i,e,r,s):h;var f=h.get("snap"),d=h.get("triggerEmphasis"),g=zA(c.model),y=s||f||"category"===c.type,v=t.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:d,involveSeries:y,snap:f,useHandle:RA(h),seriesModels:[],linkGroup:null};l[g]=v,t.seriesInvolved=t.seriesInvolved||y;var m=function(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(EA(o[r+"AxisId"],n.id)||EA(o[r+"AxisIndex"],n.componentIndex)||EA(o[r+"AxisName"],n.name))return i}}(o,c);if(null!=m){var x=a[m]||(a[m]={axesInfo:{}});x.axesInfo[g]=v,x.mapper=o[m].mapper,v.linkGroup=x}}}}))}(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)&&J(t.coordSysAxesInfo[zA(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 EA(t,e){return"all"===t||at(t)&&X(t,e)>=0||t===e}function NA(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[zA(t)]}function RA(t){return!!t.get(["handle","show"])}function zA(t){return t.type+"||"+t.id}var jA={},BA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(e,n,r,i){this.axisPointerClass&&function(t){var e=NA(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=RA(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")}}(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=NA(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){jA[t]=e},e.getAxisPointerClass=function(t){return t&&jA[t]}
vendor: 13,699 bytes, line 2
2,e.type="axis",e}(Zd),VA=BA,FA=va();function GA(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"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,h=FA(t).splitAreaColors,p=Pt(),f=0;if(h)for(var d=0;d<u.length;d++){var g=h.get(u[d].tickValue);if(null!=g){f=(g+(c-1)*d)%c;break}}var y=i.toGlobalCoord(u[0].coord),v=a.getAreaStyle();s=at(s)?s:[s];for(d=1;d<u.length;d++){var m=i.toGlobalCoord(u[d].coord),x=void 0,b=void 0,_=void 0,w=void 0;i.isHorizontal()?(x=y,b=l.y,_=m-x,w=l.height,y=x+_):(x=l.x,b=y,_=l.width,y=b+(w=m-b));var S=u[d-1].tickValue;null!=S&&p.set(S,f),e.add(new Ol({anid:null!=S?"area_"+S:null,shape:{x:x,y:b,width:_,height:w},style:Z({fill:s[f]},v),autoBatch:!0,silent:!0})),f=(f+1)%c}FA(t).splitAreaColors=p}}}function HA(t){FA(t).splitAreaColors=null}var WA=["axisLine","axisTickLabel","axisName"],UA=["splitArea","splitLine","minorSplitLine"],ZA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return m(e,t),e.prototype.render=function(e,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new xo,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=gA(a,e),l=new PA(e,U({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(f_(n[r].getOtherAxis(e.axis).scale))return!0;return!1}},s));J(WA,l.add,l),this._axisGroup.add(l.getGroup()),J(UA,(function(t){e.get([t,"show"])&&YA[t](this,this._axisGroup,e,a)}),this),i&&"changeAxisOrder"===i.type&&i.isInitSort||jy(o,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)}},e.prototype.remove=function(){HA(this)},e.type="cartesianAxis",e}(VA),YA={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=at(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,h=i.getTicksCoords({tickModel:o}),p=[],f=[],d=a.getLineStyle(),g=0;g<h.length;g++){var y=i.toGlobalCoord(h[g].coord);u?(p[0]=y,p[1]=l.y,f[0]=y,f[1]=l.y+l.height):(p[0]=l.x,p[1]=y,f[0]=l.x+l.width,f[1]=y);var v=c++%s.length,m=h[g].tickValue,x=new qg({anid:null!=m?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:f[0],y2:f[1]},style:Z({stroke:s[v]},d),silent:!0});Dy(x.shape,d.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 qg({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});Dy(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,n,r){GA(t,e,n,r)}},XA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="xAxis",e}(ZA),qA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=XA.type,e}return m(e,t),e.type="yAxis",e}(ZA),KA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return m(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Ol({shape:t.coordinateSystem.getRect(),style:Z({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Zd),$A={offset:0};function JA(t){t.registerComponentView(KA),t.registerComponentModel(QT),t.registerCoordinateSystem("cartesian2d",MA),aA(t,"x",tA,$A),aA(t,"y",tA,$A),t.registerComponentView(XA),t.registerComponentView(qA),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function QA(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],r=t.coordinateSystem;if(r){var i=r.getIndicatorAxes();J(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]=tC(i)?i:eC(r)}))})),e.each((function(t){var i=nt(n[t],(function(t){return tC(t)}))||eC(r);n[t].push(i.slice()),e.setItemLayout(t,n[t])}))}}))}function tC(t){return!isNaN(t[0])&&!isNaN(t[1])}function eC(t){return[t.cx,t.cy]}function nC(t){var e=t.polar;if(e){at(e)||(e=[e]);var n=[];J(e,(function(e,r){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],at(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}J(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var rC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var r=t.coordinateSystem,i=this.group,o=t.getData(),a=this._data;function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var r=pm(t.getItemVisual(e,"symbolSize")),i=hm(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 u(e,n,r,i,o,a){r.removeAll();for(var u=0;u<n.length-1;u++){var c=s(i,o);c&&(c.__dimIdx=u,e[u]?(c.setPosition(e[u]),l[a?"initProps":"updateProps"](c,{x:n[u][0],y:n[u][1]},t,o)):c.setPosition(n[u]),r.add(c))}}function c(t){return Q(t,(function(t){return[r.cx,r.cy]}))}o.diff(a).add((function(e){var n=o.getItemLayout(e);if(n){var r=new Gg,i=new Ug,a={shape:{points:n}};r.shape.points=c(n),i.shape.points=c(n),ec(r,a,t,e),ec(i,a,t,e);var s=new xo,l=new xo;s.add(i),s.add(r),s.add(l),u(i.shape.points,n,l,o,e,!0),o.setItemGraphicEl(e,s)}})).update((function(e,n){var r=a.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),l=r.childAt(2),c={shape:{points:o.getItemLayout(e)}};c.shape.points&&(u(i.shape.points,c.shape.points,l,o,e,!1),ac(s),ac(i),tc(i,c,t),tc(s,c,t),o.setItemGraphicEl(e,r))})).remove((function(t){i.remove(a.getItemGraphicEl(t))})).execute(),o.eachItemGraphicEl((function(t,e){var n=o.getItemModel(e),r=t.childAt(0),a=t.childAt(1),s=t.childAt(2),l=o.getItemVisual(e,"style"),u=l.fill;i.add(t),r.useStyle(Z(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),Zu(r,n,"lineStyle"),Zu(a,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=h,J(["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),r=e.isEmpty()&&e.parentModel.isEmpty();a.ensureState(t).ignore=r&&h})),a.useStyle(Z(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var p=n.getModel("emphasis"),f=p.getModel("itemStyle").getItemStyle();s.eachChild((function(t){if(t instanceof wl){var r=t.style;t.useStyle(U({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},l))}else t.useStyle(l),t.setColor(u),t.style.strokeNoScale=!0;t.ensureState("emphasis").style=G(f);var i=o.getStore().get(o.getDimensionIndex(t.__dimIdx),e);(null==i||isNaN(i))&&(i=""),cc(t,hc(n),{labelFetcher:o.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:i,inheritColor:u,defaultOpacity:l.opacity})})),Gu(t,p.get("focus"),p.get("blurScope"),p.get("disabled"))})),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(nv),iC=rC,oC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new VT(it(this.getData,this),it(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return jT(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=kd(this,t);return bd("section",{header:a,sortBlocks:!0,blocks:Q(i,(function(e){var n=r.get(r.mapDimension(e.dim),t);return bd("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(Q(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}(Wd),aC=oC,sC=iA.value;function lC(t,e){return Z({show:e},t)}var uC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),h=Q(this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var p=a;null!=h.color&&(p=Z({color:h.color},a));var f=H(G(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:r,axisTick:i,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:p,triggerEvent:c},!1);if(lt(l)){var d=f.name;f.name=l.replace("{value}",null!=d?d:"")}else st(l)&&(f.name=l(f.name,f));var g=new Ec(f,null,this.ecModel);return K(g,xw.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},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:H({lineStyle:{color:"#bbb"}},sC.axisLine),axisLabel:lC(sC.axisLabel,!1),axisTick:lC(sC.axisTick,!1),splitLine:lC(sC.splitLine,!0),splitArea:lC(sC.splitArea,!0),indicator:[]},e}(Yh),cC=uC,hC=["axisLine","axisTickLabel","axisName"],pC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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;J(Q(e.getIndicatorAxes(),(function(t){var n=t.model.get("showName")?t.name:"";return new PA(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})})),(function(t){J(hC,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"),l=i.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),p=at(c)?c:[c],f=at(h)?h:[h],d=[],g=[];if("circle"===r)for(var y=n[0].getTicksCoords(),v=e.cx,m=e.cy,x=0;x<y.length;x++){if(l)d[A(d,p,x)].push(new yg({shape:{cx:v,cy:m,r:y[x].coord}}));if(u&&x<y.length-1)g[A(g,f,x)].push(new jg({shape:{cx:v,cy:m,r0:y[x].coord,r:y[x+1].coord}}))}else{var b,_=Q(n,(function(t,n){var r=t.getTicksCoords();return b=null==b?r.length-1:Math.min(r.length-1,b),Q(r,(function(t){return e.coordToPoint(t.coord,n)}))})),w=[];for(x=0;x<=b;x++){for(var S=[],M=0;M<n.length;M++)S.push(_[M][x]);if(S[0]&&S.push(S[0].slice()),l)d[A(d,p,x)].push(new Ug({shape:{points:S}}));if(u&&w)g[A(g,f,x-1)].push(new Gg({shape:{points:S.concat(w)}}));w=S.slice().reverse()}}var I=a.getLineStyle(),T=s.getAreaStyle();J(g,(function(t,e){this.group.add(ky(t,{style:Z({stroke:"none",fill:f[e%f.length]},T),silent:!0}))}),this),J(d,(function(t,e){this.group.add(ky(t,{style:Z({fill:"none",stroke:p[e%p.length]},I),silent:!0}))}),this)}function A(t,e,n){var r=n%e.length;return t[r]=t[r]||[],r}},e.type="radar",e}(Zd),fC=pC,dC=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 m(e,t),e}(Jw),gC=dC,yC=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Q(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,r=new gC(n,new I_);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=Po(n[0],r),this.cy=Po(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");(lt(a)||ct(a))&&(a=[0,a]),this.r0=Po(a[0],o),this.r=Po(a[1],o),J(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;J(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,i){if("radar"===e.get("
2coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===r){var o=e.getData();J(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var i=r.get("splitNumber"),o=new I_;o.setExtent(0,i),o.setInterval(1),J(n,(function(t,e){xA(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}(),vC=yC;function mC(t){t.registerCoordinateSystem("radar",vC),t.registerComponentModel(cC),t.registerComponentView(fC),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 xC="\0_ec_interaction_mutex";function bC(t,e){return!!_C(t)[e]}function _C(t){return t[xC]||(t[xC]={})}sb({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},zt);var wC=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var r=it(n._mousedownHandler,n),i=it(n._mousemoveHandler,n),o=it(n._mouseupHandler,n),a=it(n._mousewheelHandler,n),s=it(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=Z(G(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 m(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(!Re(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&&IC("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!bC(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&&Ne(t.event),MC(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:r,oldY:i,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Re(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=IC("zoomOnMouseWheel",t,this._opt),n=IC("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;SC(this,"zoom","zoomOnMouseWheel",t,{scale:r>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(r);SC(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){bC(this._zr,"globalPan")||SC(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(ye);function SC(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(Ne(r.event),MC(t,e,n,r,i))}function MC(t,e,n,r,i){i.isAvailableBehavior=it(IC,null,n,r),t.trigger(e,i)}function IC(t,e,n){var r=n[t];return!t||r&&(!lt(r)||e.event[r+"Key"])}var TC=wC;function AC(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function CC(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 kC,OC={axisPointer:1,tooltip:1,brush:1};function DC(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!OC.hasOwnProperty(r.mainType)&&i&&i.model!==n}function PC(t){lt(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);
vendor: 4,314 bytes, line 2
2"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var LC={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"},EC=rt(LC),NC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},RC=rt(NC),zC=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=PC(t);this._defsUsePending=[];var r=new xo;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),HC(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=YC(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=JC(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var p=r;(r=new xo).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 Ol({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(),l=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!i){var u=kC[s];if(u&&Rt(kC,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});e.add(a)}}var p=jC[s];if(p&&Rt(jC,s)){var f=p.call(this,t),d=t.getAttribute("id");d&&(this._defs[d]=f)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,i,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new ml({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});FC(e,n),HC(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(kC={g:function(t,e){var n=new xo;return FC(e,n),HC(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Ol;return FC(e,n),HC(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 yg;return FC(e,n),HC(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 qg;return FC(e,n),HC(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 xg;return FC(e,n),HC(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}
vendor: 102,926 bytes, line 2
2,polygon:function(t,e){var n,r=t.getAttribute("points");r&&(n=GC(r));var i=new Gg({shape:{points:n||[]},silent:!0});return FC(e,i),HC(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=GC(r));var i=new Ug({shape:{points:n||[]},silent:!0});return FC(e,i),HC(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new wl;return FC(e,n),HC(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 xo;return FC(e,a),HC(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 xo;return FC(e,a),HC(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(t,e){var n=pg(t.getAttribute("d")||"");return FC(e,n),HC(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),jC={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 sy(e,n,r,i);return BC(t,o),VC(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 ly(e,n,r);return BC(t,i),VC(t,i),i}};function BC(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function VC(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={};$C(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function FC(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Z(e.__inheritedStyle,t.__inheritedStyle))}function GC(t){for(var e=YC(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 HC(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(XC,(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=YC(a);switch(i=i||[1,0,0,1,0,0],s){case"translate":We(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Ze(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ue(i,i,-parseFloat(l[0])*qC);break;case"skewX":He(i,[1,0,Math.tan(parseFloat(l[0])*qC),1,0,0],i);break;case"skewY":He(i,[1,Math.tan(parseFloat(l[0])*qC),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),$C(t,a,s),r||function(t,e,n){for(var r=0;r<EC.length;r++){var i=EC[r];null!=(o=t.getAttribute(i))&&(e[LC[i]]=o)}for(r=0;r<RC.length;r++){var o;i=RC[r];null!=(o=t.getAttribute(i))&&(n[NC[i]]=o)}}(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=UC(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=UC(o,"stroke",a.stroke,n)),J(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),J(["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=Q(YC(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var WC=/^url\(\s*#(.*?)\)/;function UC(t,e,n,r){var i=n&&n.match(WC);if(!i)return"none"===n&&(n=null),n;var o=It(i[1]);r.push([t,e,o])}var ZC=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function YC(t){return t.match(ZC)||[]}var XC=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,qC=Math.PI/180;var KC=/([^\s:;]+)\s*:\s*([^:;]+)/g;function $C(t,e,n){var r,i=t.getAttribute("style");if(i)for(KC.lastIndex=0;null!=(r=KC.exec(i));){var o=r[1],a=Rt(LC,o)?LC[o]:null;a&&(e[a]=r[2]);var s=Rt(NC,o)?NC[o]:null;s&&(n[s]=r[2])}}function JC(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)}}var QC=Pt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),tk=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Pt(),this._freedGraphics=[],this._mapName=t,this._parsedXML=PC(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=Pt();return J(t,(function(t){if(null==t.namedFrom){var r=new Nw(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{Mt(null!=(n=(e=t&&(r=t,i={ignoreViewBox:!0,ignoreRootClip:!0},(new zC).parse(r,i))||{}).root))}catch(Og){throw new Error("Invalid svg format\n"+Og.message)}var o=new xo;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=e.width,s=e.height,l=e.viewBoxRect,u=this._boundingRect;if(!u){var c=void 0,h=void 0,p=void 0,f=void 0;if(null!=a?(c=0,p=a):l&&(c=l.x,p=l.width),null!=s?(h=0,f=s):l&&(h=l.y,f=l.height),null==c||null==h){var d=n.getBoundingRect();null==c&&(c=d.x,p=d.width),null==h&&(h=d.y,f=d.height)}u=this._boundingRect=new sn(c,h,p,f)}if(l){var g=JC(l,u);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}o.setClipPath(new Ol({shape:u.plain()}));var y=[];return J(e.named,(function(t){var e;null!=QC.get(t.svgNodeTagLower)&&(y.push(t),(e=t.el).silent=!1,e.isGroup&&e.traverse((function(t){t.silent=!1})))})),{root:o,boundingRect:u,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}();for(var ek=[126,25],nk="\u5357\u6d77\u8bf8\u5c9b",rk=[[[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]]],ik=0;ik<rk.length;ik++)for(var ok=0;ok<rk[ik].length;ok++)rk[ik][ok][0]/=10.5,rk[ik][ok][1]/=-14,rk[ik][ok][0]+=ek[0],rk[ik][ok][1]+=ek[1];var ak={"\u5357\u6d77\u8bf8\u5c9b":[32,80],"\u5e7f\u4e1c":[0,-10],"\u9999\u6e2f":[10,5],"\u6fb3\u95e8":[-10,10],"\u5929\u6d25":[5,5]};var sk=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var lk=function(){function t(t,e,n){var r;this.type="geoJSON",this._parsedMap=Pt(),this._mapName=t,this._specialAreas=n,this._geoJSON=lt(r=e)?"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:uk(r)})}var i=Pt(),o=[];return J(n.regions,(function(e){var n=e.name;t&&Rt(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),i.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new sn(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,r=this._geoJSON;try{e=r?jw(r,t):[]}catch(Og){throw new Error("Invalid geoJson format\n"+Og.message)}return function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===nk)return;e.push(new Ew(nk,Q(rk,(function(t){return{type:"polygon",exterior:t}})),ek))}}(n,e),J(e,(function(t){var e=t.name;!function(t,e){if("china"===t){var n=ak[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&&"\u53f0\u6e7e"===e.name&&e.geometries.push({type:"polygon",exterior:sk[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 uk(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();(e=e||r.clone()).union(r)}return e}var ck=Pt(),hk={registerMap:function(t,e,n){if(e.svg){var r=new tk(t,e.svg);ck.set(t,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?n=e.specialAreas:i=e;r=new lk(t,i,n);ck.set(t,r)}},getGeoResource:function(t){return ck.get(t)},getMapForUser:function(t){var e=ck.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var r=ck.get(t);if(r)return r.load(e,n)}},pk=["rect","circle","line","ellipse","polygon","polyline","path"],fk=Pt(pk),dk=Pt(pk.concat(["g"])),gk=Pt(pk.concat(["g"])),yk=va();function vk(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function mk(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var xk=function(){function t(t){var e=new xo;this.uid=Rc("ec_map_draw"),this._controller=new TC(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new xo),e.add(this._svgGroup=new xo)}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()):tc(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=Pt(),n=Pt(),r=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*i.scaleX+i.x,t[1]*i.scaleY+i.y]}function c(t){for(var e=[],n=!l&&s&&s.project,r=0;r<t.length;++r){var i=u(t[r],n);i&&e.push(i)}return e}function h(t){return{shape:{points:c(t)}}}r.removeAll(),J(t.geo.regions,(function(i){var c=i.name,p=e.get(c),f=n.get(c)||{},d=f.dataIdx,g=f.regionModel;p||(p=e.set(c,new xo),r.add(p),d=a?a.indexOfName(c):null,g=t.isGeo?o.getRegionModel(c):a?a.getItemModel(d):null,n.set(c,{dataIdx:d,regionModel:g}));var y=[],v=[];J(i.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=Ik(e,l)),J(e,(function(t){y.push(new Gg(h(t)))}))}else{var n=t.points;l&&(n=Ik(n,l,!0)),J(n,(function(t){v.push(new Ug(h(t)))}))}}));var m=u(i.getCenter(),s&&s.project);function x(e,n){if(e.length){var r=new oy({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});p.add(r),bk(t,r,d,g),_k(t,r,c,g,o,d,m),n&&(mk(r),J(r.states,mk))}}x(y),x(v,!0)})),e.each((function(e,r){var i=n.get(r),a=i.dataIdx,s=i.regionModel;wk(t,e,r,s,o,a),Sk(t,e,r,s,o),Mk(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=Pt(),i=!1;J(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!=fk.get(s)&&l instanceof hs&&bk(t,l,u,c),l instanceof hs&&(l.culling=!0),l.z2EmphasisLift=0,e.namedFrom)||(null!=gk.get(s)&&_k(t,l,n,c,o,u,null),wk(t,l,n,c,o,u),Sk(t,l,n,c,o),null!=dk.get(s)&&("self"===Mk(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){Iu(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=hk.getGeoResource(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=hk.getGeoResource(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,AC(o,t.dx,t.dy),n.dispatchAction(U(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),i.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,CC(o,t.scale,t.originX,t.originY),n.dispatchAction(U(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])&&!DC(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=yk(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}();function bk(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=vk(i),u=vk(o),c=vk(s),h=vk(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=Gm(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,Iu(e)}function _k(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;cc(e,hc(r),{labelFetcher:p,labelDataIndex:h,defaultText:n},f);var d=e.getTextContent();if(d&&(yk(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 wk(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):Yl(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function Sk(t,e,n,r,i){t.data||Uy({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function Mk(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Gu(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var r=Yl(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}(e,i,n),a}function Ik(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(),J(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 Tk=xk,Ak=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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 Tk(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 yg({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:iu+1)});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);cc(l,hc(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){Su(l,t)}}i.add(l)}}}))},e.type="map",e}(nv),Ck=Ak,kk=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 m(e,t),e.prototype.getInitialData=function(t){for(var e=jT(this,{coordDimensions:["value"],encodeDefaulter:ot(up,this)}),n=Pt(),r=[],i=0,o=e.count();i<o;i++){var a=e.getName(i);n.set(a,!0)}return J(hk.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).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 bd("section",{header:s.join(", "),noHeader:!s.length,blocks:[bd("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=hm(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}(Wd),Ok=kk;function Dk(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)})),J(e,(function(t,e){for(var n=function(t,e){var n={};return J(t,(function(t){t.each(t.mapDimension("value"),(function(e,r){var i="ec-"+t.getName(r);n[i]=n[i]||[],isNaN(e)||n[i].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(r,i){for(var o="ec-"+t[0].getName(i),a=0,s=1/0,l=-1/0,u=n[o].length,c=0;c<u;c++)s=Math.min(s,n[o][c]),l=Math.max(l,n[o][c]),a+=n[o][c];return 0===u?NaN:"min"===e?s:"max"===e?l:"average"===e?a/u:a}))}(Q(t,(function(t){return t.getData()})),t[0].get("mapValueCalculation")),r=0;r<t.length;r++)t[r].originalData=t[r].getData();for(r=0;r<t.length;r++)t[r].seriesGroup=t,t[r].needsDrawMap=0===r&&!t[r].getHostGeoModel(),t[r].setData(n.cloneShallow()),t[r].mainSeries=t[0]}))}function Pk(t){var e={};t.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!e[r]){var i={};J(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 Lk=ue,Ek=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Ki,n._rawTransformable=new Ki,n.name=e,n}return m(e,t),e.prototype.setBoundingRect=function(t,e,n,r){return this._rect=new sn(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 sn(t,e,n,r)},e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new sn(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=[Po(t[0],e.getWidth()),Po(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=ue([],r,t),n=ue([],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(),Ge(this.transform||(this.transform=[]),e.transform||[1,0,0,1,0,0]),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Ye(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new Ki;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?Lk(n,t,r):Gt(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?Lk([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var r=Nk(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=Nk(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}(Ki);function Nk(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var Rk=Ek,zk={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},jk=["lng","lat"],Bk=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.dimensions=jk,i.type="geo",i._nameCoordMap=Pt(),i.map=n;var o,a=r.projection,s=hk.load(n,r.nameMap,r.nameProperty),l=hk.getGeoResource(n),u=(i.resourceType=l?l.type:null,i.regions=s.regions),c=zk[l.type];if(i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=a,a)for(var h=0;h<u.length;h++){var p=u[h].getBoundingRect(a);(o=o||p.clone()).union(p)}else o=s.boundingRect;return i.setBoundingRect(o.x,o.y,o.width,o.height),i.aspectScale=a?1:bt(r.aspectScale,c.aspectScale),i._invertLongitute=!a&&c.invertLongitute,i}return m(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 sn(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(lt(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=Vk(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=Vk(e);return r===this?r.pointToData(n):null},e}(Rk);function Vk(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",_a).models[0]||{}).coordinateSystem:null}K(Bk,Rk);var Fk=Bk;function Gk(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]);ce(r,r,h),he(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"),y=t.get("layoutSize"),v=e.getWidth(),m=e.getHeight(),x=d.width/d.height*this.aspectScale,b=!1;if(g&&y&&(h=[Po(g[0],v),Po(g[1],m)],p=Po(y,Math.min(v,m)),isNaN(h[0])||isNaN(h[1])||isNaN(p)||(b=!0)),b)f={},x>1?(f.width=p,f.height=p/x):(f.height=p,f.width=p*x),f.y=h[1]-f.height/2,f.x=h[0]-f.width/2;else{var _=t.getBoxLayoutParams();_.aspect=x,f=Bh(_,{width:v,height:m})}this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}var Hk=function(){function t(){this.dimensions=jk}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 Fk(o+i,o,U({nameMap:t.get("nameMap")},r(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=Gk,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)}})),J(i,(function(t,i){var o=Q(t,(function(t){return t.get("nameMap")})),a=new Fk(i,i,U({nameMap:W(o)},r(t[0])));a.zoomLimit=xt.apply(null,Q(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=Gk,a.resize(t[0],e),J(t,(function(t){t.coordinateSystem=a,function(t,e){J(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=Pt(),a=0;a<i.length;a++)o.set(i[a].name,i[a]);return J(hk.load(e,n,r).regions,(function(t){var e=t.name;!o.get(e)&&i.push({name:e})})),i},t}(),Wk=new Hk,Uk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e,n){var r=hk.getGeoResource(t.map);if(r&&"geoJSON"===r.type){var i=t.itemStyle=t.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(t,n),aa(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=Wk.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=tt(e.regions||[],(function(e,r){var i=r.name;return i&&(e.set(i,new Ec(r,t,t.ecModel)),r.selected&&(n[i]=!0)),e}),Pt()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Ec(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 st(r)?(i.status=e,r(i)):lt(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}(Yh),Zk=Uk;function Yk(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function Xk(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(Yk(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(Yk(t,s),r),t.setZoom(a*i)}return{center:t.getCenter(),zoom:t.getZoom()}}var qk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return m(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 Tk(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;Qv(t.target,(function(t){return null!=(e=Yl(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=Yl(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}(Zd),Kk=qk;function $k(t,e,n){hk.registerMap(t,e,n)}function Jk(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),J(n.coordinateSystem.regions,(function(t){r[t.name]=n.isSelected(t.name)||!1}));var o=[];J(r,(function(t,e){r[e]&&o.push(e)})),i.push({geoIndex:n.componentIndex,name:o})})),{selected:r,allSelected:i,name:t.name}}))}t.registerCoordinateSystem("geo",Wk),t.registerComponentModel(Zk),t.registerComponentView(Kk),t.registerImpl("registerMap",$k),t.registerImpl("getMap",(function(t){return hk.getMapForUser(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=Xk(i,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===r&&J(e.seriesGroup,(function(t){t.setCenter(o.center),t.setZoom(o.zoom)}))}}))}))}function Qk(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=rO(s),o=iO(o),s&&o;){i=rO(i),a=iO(a),i.hierNode.ancestor=t;var p=s.hierNode.prelim+h-o.hierNode.prelim-u+r(s,o);p>0&&(aO(oO(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&&!rO(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),o&&!iO(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function tO(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function eO(t){return arguments.length?t:sO}function nO(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function rO(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function iO(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function oO(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function aO(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 sO(t,e){return t.parentNode===e.parentNode?1:2}var lO=function(){this.parentPoint=[],this.childPoints=[]},uO=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lO},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=Po(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}(gl),cO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new xo,n}return m(e,t),e.prototype.init=function(t,e){this._controller=new TC(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){hO(r,e)&&pO(r,e,null,o,t)})).update((function(e,n){var i=a.getItemGraphicEl(n);hO(r,e)?pO(r,e,i,o,t):i&&gO(a,n,i,o,t)})).remove((function(e){var n=a.getItemGraphicEl(e);n&&gO(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=[];bs(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 Rk;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)&&!DC(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){AC(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){CC(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}(nv);function hO(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function pO(t,e,n,r,i){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=t.tree.root,h=a.parentNode===c?a:a.parentNode||a,p=t.getItemGraphicEl(h.dataIndex),f=h.getLayout(),d=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:f,g=a.getLayout();o?((n=new dI(t,e,null,{symbolInnerColor:u,useNameLabel:!0})).x=d.x,n.y=d.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,r.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,tc(n,{x:g.x,y:g.y},i);var y=n.getSymbolPath();if("radial"===i.get("layout")){var v=c.children[0],m=v.getLayout(),x=v.children.length,b=void 0,_=void 0;if(g.x===m.x&&!0===a.isExpand&&v.children.length){var w={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};(b=Math.atan2(w.y-m.y,w.x-m.x))<0&&(b=2*Math.PI+b),(_=w.x<m.x)&&(b-=Math.PI)}else(b=Math.atan2(g.y-m.y,g.x-m.x))<0&&(b=2*Math.PI+b),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(_=g.x<m.x)&&(b-=Math.PI):(_=g.x>m.x)||(b-=Math.PI);var S=_?"left":"right",M=s.getModel("label"),I=M.get("rotate"),T=I*(Math.PI/180),A=y.getTextContent();A&&(y.setTextConfig({position:M.get("position")||S,rotation:null==I?-b:T,origin:"center"}),A.setStyle("verticalAlign","middle"))}var C=s.get(["emphasis","focus"]),k="relative"===C?Lt(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===C?a.getAncestorsIndices():"descendant"===C?a.getDescendantIndices():null;k&&(Yl(n).focus=k),function(t,e,n,r,i,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),p=t.get(["lineStyle","curveness"]),f=t.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=r.__edge=new ty({shape:yO(c,h,p,i,i)})),tc(g,{shape:yO(c,h,p,o,a)},t));else if("polyline"===u)if("orthogonal"===c){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,v=[],m=0;m<y.length;m++){var x=y[m].getLayout();v.push([x.x,x.y])}g||(g=r.__edge=new uO({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:f}})),tc(g,{shape:{parentPoint:[a.x,a.y],childPoints:v}},t)}}else 0;g&&("polyline"!==u||e.isExpand)&&(g.useStyle(Z({strokeNoScale:!0,fill:null},d)),Zu(g,l,"lineStyle"),Iu(g),s.add(g))}(i,a,c,n,d,f,g,r),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var r=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);r&&r.hoverState===tu||Su(n.__edge,e)}})}function fO(t,e,n,r,i){var o=dO(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?rc(c,{shape:yO(p,f,d,s,s),style:{opacity:0}},r,{cb:function(){n.remove(c)},removeOpt:i}):"polyline"===h&&"orthogonal"===r.get("layout")&&rc(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},r,{cb:function(){n.remove(c)},removeOpt:i}))}}function dO(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 gO(t,e,n,r,i){var o=t.tree.getNodeByDataIndex(e),a=dO(t.tree.root,o).sourceLayout,s={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};rc(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){fO(e,t,r,i,s)})),fO(o,t,r,i,s)}function yO(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=nO(u,h),d=nO(u,h+(p-h)*n),g=nO(c,p+(h-p)*n),y=nO(c,p);return{x1:f.x||0,y1:f.y||0,x2:y.x||0,y2:y.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 vO=cO,mO=va();function xO(t,e){if(mO(r=this).mainData===r){var n=U({},mO(this).datas);n[this.dataType]=e,MO(e,n,t)}else IO(e,this.dataType,mO(this).mainData,t);var r;return e}function bO(t,e){return t.struct&&t.struct.update(),e}function _O(t,e){return J(mO(e).datas,(function(n,r){n!==e&&IO(n.cloneShallow(),r,e,t)})),e}function wO(t){var e=mO(this).mainData;return null==t||null==e?e:mO(e).datas[t]}function SO(){var t=mO(this).mainData;return null==t?[{data:t}]:Q(rt(mO(t).datas),(function(e){return{type:e,data:mO(t).datas[e]}}))}function MO(t,e,n){mO(t).datas={},J(e,(function(e,r){IO(e,r,t,n)}))}function IO(t,e,n,r){mO(n).datas[e]=t,mO(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=wO,t.getLinkedDataAll=SO}var TO=function(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,MO(e,n,t),J(n,(function(n){J(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,ot(xO,t))}))})),e.wrapMethod("cloneShallow",ot(_O,t)),J(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,ot(bO,t))})),Mt(n[e.dataType]===e)},AO=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){st(t)&&(n=e,e=t,t=null),lt(t=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}(),CO=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,at(r)?r.length:1),o.push(e);var s=new AO(fa(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 l=e.children;if(l)for(var u=0;u<l.length;u++)t(l[u],s)}(e),i.root.updateDepthAndHeight(0);var s=Qb(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,l=new $b(s,n);return l.initData(o),r&&r(l),TO({mainData:l,struct:i,structAttr:"tree"}),i.update(),i},t}();var kO=CO;function OO(t,e,n){if(t&&X(e,t.type)>=0){var r=n.getData().tree.root,i=t.targetNode;if(lt(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 DO(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function PO(t,e){return X(DO(t),e)>=0}function LO(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 EO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return m(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},r=new Ec(n,this,this.ecModel),i=kO.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 bd("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=LO(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}(Wd),NO=EO;function RO(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 zO(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=function(t,e){return Bh(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=eO((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(i=n.width,o=n.height,a=eO());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,Qk,a),s.hierNode.modifier=-l.hierNode.prelim,RO(l,tO);var u=l,c=l,h=l;RO(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,y=0,v=0;if("radial"===r)d=i/(c.getLayout().x+p+f),g=o/(h.depth-1||1),RO(l,(function(t){y=(t.getLayout().x+f)*d,v=(t.depth-1)*g;var e=nO(y,v);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:v},!0)}));else{var m=t.getOrient();"RL"===m||"LR"===m?(g=o/(c.getLayout().x+p+f),d=i/(h.depth-1||1),RO(l,(function(t){v=(t.getLayout().x+f)*g,y="LR"===m?(t.depth-1)*d:i-(t.depth-1)*d,t.setLayout({x:y,y:v},!0)}))):"TB"!==m&&"BT"!==m||(d=i/(c.getLayout().x+p+f),g=o/(h.depth-1||1),RO(l,(function(t){y=(t.getLayout().x+f)*d,v="TB"===m?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:y,y:v},!0)})))}}}(t,e)}))}function jO(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();U(e.ensureUniqueItemVisual(t.dataIndex,"style"),n)}))}))}var BO=["treemapZoomToNode","treemapRender","treemapMove"];function VO(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var r=e;r&&r.depth>1;)r=r.parentNode;var i=bp(t.ecModel,r.name||r.dataIndex+"",n);e.setVisual("decal",i)}))}var FO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};GO(n);var r=t.levels||[],i=this.designatedVisualItemStyle={},o=new Ec({itemStyle:i},this,e);r=t.levels=function(t,e){var n,r,i=oa(e.get("color")),o=oa(e.get(["aria","decal","decals"]));if(!i)return;t=t||[],J(t,(function(t){var e=new Ec(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=Q(r||[],(function(t){return new Ec(t,o,e)}),this),s=kO.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 bd("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=LO(r,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},U(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=Pt(),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(){VO(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:"\u25b6",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}(Wd);function GO(t){var e=0;J(t.children,(function(t){GO(t);var n=t.value;at(n)&&(n=n[0]),e+=n}));var n=t.value;at(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),at(t.value)?t.value[0]=n:t.value=n}var HO=FO,WO=function(){function t(t){this.group=new xo,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),Vh(o,c.pos,c.box)}},t.prototype._prepare=function(t,e,n){for(var r=t;r;r=r.parentNode){var i=fa(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=0,l=e.emptyItemWidth,u=t.get(["breadcrumb","height"]),c=function(t,e,n){var r=e.width,i=e.height,o=Po(t.left,r),a=Po(t.top,i),s=Po(t.right,r),l=Po(t.bottom,i);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=r),(isNaN(a)||isNaN(parseFloat(t.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=i),n=Mh(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}(e.pos,e.box),h=e.totalWidth,p=e.renderList,f=r.getModel("itemStyle").getItemStyle(),d=p.length-1;d>=0;d--){var g=p[d],y=g.node,v=g.width,m=g.text;h>c.width&&(h-=v-l,v=l,m=null);var x=new Gg({shape:{points:UO(s,0,v,u,d===p.length-1,0===d)},style:Z(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Zl({style:pc(i,{text:m})}),textConfig:{position:"inside"},z2:1e4*iu,onclick:ot(a,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=pc(o,{text:m}),x.ensureState("emphasis").style=f,Gu(x,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(x),ZO(x,t,y),s+=v+8}},t.prototype.remove=function(){this.group.removeAll()},t}();function UO(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 ZO(t,e,n){Yl(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&&LO(n,e)}}var YO=WO,XO=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 qO=xo,KO=Ol,$O="label",JO="upperLabel",QO=10*iu,tD=2*iu,eD=3*iu,nD=za([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),rD=function(t){var e=nD(t);return e.stroke=e.fill=e.lineWidth=null,e},iD=va(),oD=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 m(e,t),e.prototype.render=function(t,e,n,r){if(!(X(e.findComponents({mainType:"series",subType:"treemap",query:r}),t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var i=OO(r,["treemapZoomToNode","treemapRootToNode"],t),o=r&&r.type,a=t.layoutInfo,s=!this._oldTree,l=this._storage,u="treemapRootToNode"===o&&i&&l?{rootNodeGroup:l.nodeGroup[i.node.getRawIndex()],direction:r.direction}:null,c=this._giveContainerGroup(a),h=t.get("animation"),p=this._doRender(c,t,u);!h||s||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?p.renderFinally():this._doAnimation(c,p,t,u),this._resetController(n),this._renderBreadcrumb(t,n,i)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new qO,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,l=[];function u(t,r,i,u){return function(t,e,n,r,i,o,a,s,l,u){if(!a)return;var c=a.getLayout(),h=t.getData(),p=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),!c||!c.isInView)return;var f=c.width,d=c.height,g=c.borderWidth,y=c.invisible,v=a.getRawIndex(),m=s&&s.getRawIndex(),x=a.viewChildren,b=c.upperHeight,_=x&&x.length,w=p.getModel("itemStyle"),S=p.getModel(["emphasis","itemStyle"]),M=p.getModel(["blur","itemStyle"]),I=p.getModel(["select","itemStyle"]),T=w.get("borderRadius")||0,A=V("nodeGroup",qO);if(!A)return;if(l.add(A),A.x=c.x||0,A.y=c.y||0,A.markRedraw(),iD(A).nodeWidth=f,iD(A).nodeHeight=d,c.isAboveViewRoot)return A;var C=V("background",KO,u,tD);C&&N(A,C,_&&c.upperLabelHeight);var k=p.getModel("emphasis"),O=k.get("focus"),D=k.get("blurScope"),P=k.get("disabled"),L="ancestor"===O?a.getAncestorsIndices():"descendant"===O?a.getDescendantIndices():O;if(_)Xu(A)&&Yu(A,!1),C&&(Yu(C,!P),h.setItemGraphicEl(a.dataIndex,C),Hu(C,L,D));else{var E=V("content",KO,u,eD);E&&R(A,E),C.disableMorphing=!0,C&&Xu(C)&&Yu(C,!1),Yu(A,!P),h.setItemGraphicEl(a.dataIndex,A),Hu(A,L,D)}return A;function N(e,n,r){var i=Yl(n);if(i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:f,height:d,r:T}),y)z(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=rD(w);l.fill=s;var u=nD(S);u.fill=S.get("borderColor");var c=nD(M);c.fill=M.get("borderColor");var h=nD(I);if(h.fill=I.get("borderColor"),r){var p=f-2*g;j(n,s,o.opacity,{x:g,y:0,width:p,height:b})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,Iu(n)}e.add(n)}function R(e,n){var r=Yl(n);r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex;var i=Math.max(f-2*g,0),o=Math.max(d-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:i,height:o,r:T}),y)z(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=rD(w);u.fill=l,u.decal=s.decal;var c=nD(S),h=nD(M),p=nD(I);j(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=p,Iu(n)}e.add(n)}function z(t){!t.invisible&&o.push(t)}function j(e,n,r,i){var o=p.getModel(i?JO:$O),s=fa(p.get("name"),null),l=o.getShallow("show");cc(e,hc(p,i?JO:$O),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var h=u.style,f=St(h.padding||0);i&&(e.setTextConfig({layoutRect:i}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((i?i.width:e.shape.width)-f[1]-f[3],0),n=Math.max((i?i.height:e.shape.height)-f[0]-f[2],0);h.width===t&&h.height===n||u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",B(h,i,c);var d=u.getState("emphasis");B(d?d.style:null,i,c)}}function B(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 V(t,r,o,a){var s=null!=m&&n[t][m],l=i[t];return s?(n[t][m]=null,F(l,s)):y||((s=new r)instanceof hs&&(s.z2=function(t,e){return t*QO+e}(o,a)),G(l,s)),e[t][v]=s}function F(t,e){var n=t[v]={};e instanceof qO?(n.oldX=e.x,n.oldY=e.y):n.oldShape=U({},e.shape)}function G(t,e){var n=t[v]={},o=a.parentNode,s=e instanceof xo;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}}(e,a,s,n,o,l,t,r,i,u)}!function t(e,n,r,i,o){i?(n=e,J(e,(function(t,e){!t.isRemoved()&&s(e,e)}))):new Tb(n,e,a,a).add(s).update(s).remove(ot(s,null)).execute();function a(t){return t.getId()}function s(a,s){var l=null!=a?e[a]:null,c=null!=s?n[s]:null,h=u(l,c,r,o);h&&t(l&&l.viewChildren||[],c&&c.viewChildren||[],h,i,o+1)}}(r.root?[r.root]:[],i&&i.root?[i.root]:[],t,r===i||!i,0);var c=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&J(t,(function(t,n){var r=e[n];J(t,(function(t){t&&(r.push(t),iD(t).willDelete=!0)}))})),e}(s);return this._oldTree=r,this._storage=a,{lastsForAnimation:o,willDeleteEls:c,renderFinally:function(){J(c,(function(t){J(t,(function(t){t.parent&&t.parent.remove(t)}))})),J(l,(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=(st(i)?0:i)||0,s=(st(o)?null:o)||"cubicOut",l=new XO;J(e.willDeleteEls,(function(t,e){J(t,(function(t,n){if(!t.invisible){var i,o=t.parent,u=iD(o);if(r&&"drillDown"===r.direction)i=o===r.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.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&&l.add(t,i,a,0,s)}}))})),J(this._storage,(function(t,n){J(t,(function(t,r){var i=e.lastsForAnimation[n][r],o={};i&&(t instanceof xo?null!=i.oldX&&(o.x=t.x,o.y=t.y,t.x=i.oldX,t.y=i.oldY):(i.oldShape&&(o.shape=U({},t.shape),t.setShape(i.oldShape)),i.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))}))}),this),this._state="animating",l.finished(it((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller;e||((e=this._controller=new TC(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",it(this._onPan,this)),e.on("zoom",it(this._onZoom,this)));var n=new sn(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 sn(i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];We(s,s,[-(e-=a.x),-(n-=a.y)]),Ze(s,s,[t.scale,t.scale]),We(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&&Lh(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 YO(this.group))).render(t,e,n.node,(function(e){"animating"!==r._state&&(PO(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}(nv);var aD=oD,sD=J,lD=ht,uD=-1,cD=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=G(e);this.type=r,this.mappingMethod=n,this._normalizeData=bD[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(hD(i),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,J(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(sD(e,(function(t,e){n[t]=e})),!at(r)){var i=[];ht(r)?sD(r,(function(t,e){var r=n[e];i[null!=r?r:uD]=t})):i[uD]=r,r=xD(t,i)}for(var o=e.length-1;o>=0;o--)null==r[o]&&(delete n[e[o]],e.pop())}(i):hD(i,!0):(Mt("linear"!==n||i.dataExtent),hD(i))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return it(this._normalizeData,this)},t.listVisualTypes=function(){return rt(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){ht(t)?J(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,r){var i,o=at(e)?[]:ht(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&&sD(t.visualHandlers,(function(t,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)})),n?r:null},t.prepareVisualTypes=function(t){if(at(t))t=t.slice();else{if(!lD(t))return[];var e=[];sD(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||lt(s)&&s===t+"")return o;n&&h(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(_D(c[1],t,u[1]))return o}else if(u[1]===1/0){if(_D(c[0],u[0],t))return o}else if(_D(c[0],u[0],t)&&_D(c[1],t,u[1]))return o;n&&h(u[0],o),n&&h(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:r;function h(e,n){var o=Math.abs(e-t);o<i&&(i=o,r=n)}},t.visualHandlers={color:{applyVisual:dD("color"),getColorMapper:function(){var t=this.option;return it("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),gD.call(this,t)}:function(e,n,r){var i=!!r;return!n&&(e=this._normalizeData(e)),r=Or(e,t.parsedVisual,r),i?r:Rr(r,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Rr(Or(t,this.option.parsedVisual),"rgba")},category:gD,piecewise:function(t,e){var n=mD.call(this,e);return null==n&&(n=Rr(Or(t,this.option.parsedVisual),"rgba")),n},fixed:yD}},colorHue:pD((function(t,e){return Er(t,e)})),colorSaturation:pD((function(t,e){return Er(t,null,e)})),colorLightness:pD((function(t,e){return Er(t,null,null,e)})),colorAlpha:pD((function(t,e){return Nr(t,e)})),decal:{applyVisual:dD("decal"),_normalizedToVisual:{linear:null,category:gD,piecewise:null,fixed:null}},opacity:{applyVisual:dD("opacity"),_normalizedToVisual:vD([0,1])},liftZ:{applyVisual:dD("liftZ"),_normalizedToVisual:{linear:yD,category:yD,piecewise:yD,fixed:yD}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:fD,category:gD,piecewise:function(t,e){var n=mD.call(this,e);return null==n&&(n=fD.call(this,t)),n},fixed:yD}},symbolSize:{applyVisual:dD("symbolSize"),_normalizedToVisual:vD([0,1])}},t}();function hD(t,e){var n=t.visual,r=[];ht(n)?sD(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]),xD(t,r)}function pD(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:vD([0,1])}}function fD(t){var e=this.option.visual;return e[Math.round(Do(t,[0,1],[0,e.length-1],!0))]||{}}function dD(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function gD(t){var e=this.option.visual;return e[this.option.loop&&t!==uD?t%e.length:t]}function yD(){return this.option.visual[0]}function vD(t){return{linear:function(e){return Do(e,t,this.option.visual,!0)},category:gD,piecewise:function(e,n){var r=mD.call(this,n);return null==r&&(r=Do(e,t,this.option.visual,!0)),r},fixed:yD}}function mD(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=n[cD.findPieceIndex(t,n)];if(r&&r.visual)return r.visual[this.type]}}function xD(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=Q(e,(function(t){var e=Tr(t);return e||[0,0,0,1]}))),e}var bD={linear:function(t){return Do(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=cD.findPieceIndex(t,e,!0);if(null!=n)return Do(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?uD:e},fixed:zt};function _D(t,e,n){return t?e<=n:e<n}var wD=cD,SD=va(),MD={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||ID(e,{},t.getViewRoot().getAncestors(),t)}};function ID(t,e,n,r){var i=t.getModel(),o=t.getLayout(),a=t.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=i.getModel("itemStyle"),u=function(t,e,n){var r=U({},e),i=n.designatedVisualItemStyle;return J(["color","colorAlpha","colorSaturation"],(function(n){i[n]=e[n];var o=t.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}(l,e,r),c=a.ensureUniqueItemVisual(t.dataIndex,"style"),h=l.get("borderColor"),p=l.get("borderColorSaturation");null!=p&&(h=function(t,e){return null!=e?Er(e,null,null,t):null}(p,s=TD(u))),c.stroke=h;var f=t.viewChildren;if(f&&f.length){var d=function(t,e,n,r,i,o){if(!o||!o.length)return;var a=CD(e,"color")||null!=i.color&&"none"!==i.color&&(CD(e,"colorAlpha")||CD(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 wD(h);return SD(p).drColorMappingBy=c,p}(0,i,o,0,u,f);J(f,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,r,i,o){var a=U({},e);if(i){var s=i.type,l="color"===s&&SD(i).drColorMappingBy,u="index"===l?r:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}(i,u,t,e,d,r);ID(t,o,n,r)}}))}else s=TD(u),c.fill=s}}function TD(t){var e=AD(t,"color");if(e){var n=AD(t,"colorAlpha"),r=AD(t,"colorSaturation");return r&&(e=Er(e,null,null,r)),n&&(e=Nr(e,n)),e}}function AD(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function CD(t,e){var n=t.get(e);return at(n)&&n.length?{name:e,range:n}:null}var kD=Math.max,OD=Math.min,DD=xt,PD=J,LD=["itemStyle","borderWidth"],ED=["itemStyle","gapWidth"],ND=["upperLabel","show"],RD=["upperLabel","height"],zD={seriesType:"treemap",reset:function(t,e,n,r){var i=n.getWidth(),o=n.getHeight(),a=t.option,s=Bh(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Po(DD(s.width,l[0]),i),c=Po(DD(s.height,l[1]),o),h=r&&r.type,p=OO(r,["treemapZoomToNode","treemapRootToNode"],t),f="treemapRender"===h||"treemapMove"===h?r.rootRect:null,d=t.getViewRoot(),g=DO(d);if("treemapMove"!==h){var y="treemapZoomToNode"===h?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(),y=g.get(LD);(u+=4*y*y+(3*y+Math.max(y,GD(g)))*Math.pow(u,.5))>Fo&&(u=Fo),a=o}u<l&&(u=l);var v=Math.pow(u/l,.5);return[r*v,i*v]}(t,p,d,u,c):f?[f.width,f.height]:[u,c],v=a.sort;v&&"asc"!==v&&"desc"!==v&&(v="desc");var m={squareRatio:a.squareRatio,sort:v,leafDepth:a.leafDepth};d.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(x),jD(d,m,!1,0),x=d.getLayout(),PD(g,(function(t,e){var n=(g[e+1]||d).getValue();t.setLayout(U({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var b=t.getData().tree.root;b.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,f,p),!0),t.setLayoutInfo(s),FD(b,new sn(-s.x,-s.y,i,o),g,d,0)}};function jD(t,e,n,r){var i,o;if(!t.isRemoved()){var a=t.getLayout();i=a.width,o=a.height;var s=t.getModel(),l=s.get(LD),u=s.get(ED)/2,c=GD(s),h=Math.max(l,c),p=l-u,f=h-u;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0);var d=(i=kD(i-2*p,0))*(o=kD(o-p-f,0)),g=function(t,e,n,r,i,o){var a=t.children||[],s=r.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=r.leafDepth&&r.leafDepth<=o;if(i&&!l)return t.viewChildren=[];a=et(a,(function(t){return!t.isRemoved()})),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,s);var u=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],PD(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===u.sum)return t.viewChildren=[];if(u.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,u.sum,s,a),0===u.sum)return t.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var p=a[c].getValue()/u.sum*n;a[c].setLayout({area:p})}l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0);return t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}(t,s,d,e,n,r);if(g.length){var y={x:p,y:f,width:i,height:o},v=OD(i,o),m=1/0,x=[];x.area=0;for(var b=0,_=g.length;b<_;){var w=g[b];x.push(w),x.area+=w.getLayout().area;var S=BD(x,v,e.squareRatio);S<=m?(b++,m=S):(x.area-=x.pop().getLayout().area,VD(x,v,y,u,!1),v=OD(y.width,y.height),x.length=x.area=0,m=1/0)}if(x.length&&VD(x,v,y,u,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&d<M&&(n=!0)}for(b=0,_=g.length;b<_;b++)jD(g[b],e,n,r+1)}}}function BD(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?kD(u*r/l,l/(u*i)):1/0}function VD(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,y=d[l[a]]=kD(c-2*r,0),v=n[s[o]]+n[l[o]]-u,m=h===p-1||v<g?v:g,x=d[l[o]]=kD(m-2*r,0);d[s[a]]=n[s[a]]+OD(r,y/2),d[s[o]]=u+OD(r,x/2),u+=m,f.setLayout(d,!0)}n[s[a]]+=c,n[l[a]]-=c}function FD(t,e,n,r,i){var o=t.getLayout(),a=n[i],s=a&&a===t;if(!(a&&!s||i===n.length&&t!==r)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new sn(e.x-o.x,e.y-o.y,e.width,e.height);PD(t.viewChildren||[],(function(t){FD(t,l,n,r,i+1)}))}}function GD(t){return t.get(ND)?t.get(RD):0}function HD(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){ct(n)&&(n=i[n]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(n))return!1}return!0}))}))}function WD(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){lt(e)&&(e=i["ec-"+e]);var o=n.getItemVisual(e,"style");U(r.ensureUniqueItemVisual(t,"style"),o);for(var a=["symbol","symbolSize","symbolKeepAspect"],s=0;s<a.length;s++)r.setItemVisual(t,a[s],n.getItemVisual(e,a[s]))}}))}))}function UD(t){return t instanceof Array||(t=[t,t]),t}function ZD(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),r=UD(t.get("edgeSymbol")),i=UD(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=UD(r.getShallow("symbol",!0)),a=UD(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch(U(l,s),l.stroke){case"source":var u=i.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=i.node2.getVisual("style");l.stroke=u&&u.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 YD="--\x3e",XD=function(t){return t.get("autoCurveness")||null},qD=function(t,e){var n=XD(t),r=20,i=[];if(ct(n))r=n;else if(at(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},KD=function(t,e,n){var r=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[n.uid,r,i].join(YD)},$D=function(t){var e=t.split(YD);return[e[0],e[2],e[1]].join(YD)},JD=function(t,e){var n=KD(t.node1,t.node2,e);return e.__edgeMap[n]},QD=function(t,e){return tP(KD(t.node1,t.node2,e),e)+tP(KD(t.node2,t.node1,e),e)},tP=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function eP(t,e,n,r){var i=XD(e),o=at(i);if(!i)return null;var a=JD(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=QD(t,e);qD(e,u),t.lineStyle=t.lineStyle||{};var c=KD(t.node1,t.node2,e),h=e.__curvenessList,p=o||u%2?0:1;if(a.isForward)return h[p+s];var f=$D(c),d=tP(f,e),g=h[s+d+p];return r?o?i&&0===i[0]?(d+p)%2?g:-g:((d%2?0:1)+p)%2?g:-g:(d+p)%2?g:-g:h[s+d+p]}function nP(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")])})),rP(n,t)}}function rP(t,e){t.eachEdge((function(t,n){var r=_t(t.getModel().get(["lineStyle","curveness"]),-eP(t,e,n,!0),0),i=Ht(t.node1.getLayout()),o=Ht(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 iP(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=[];J(n.dimensions,(function(t){i=i.concat(r.mapDimensionsAll(t))}));for(var o=0;o<r.count();o++){for(var a=[],s=!1,l=0;l<i.length;l++){var u=r.get(i[l],o);isNaN(u)||(s=!0),a.push(u)}s?r.setItemLayout(o,n.dataToPoint(a)):r.setItemLayout(o,[NaN,NaN])}rP(r.graph,t)}else e&&"none"!==e||nP(t)}))}function oP(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 aP(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var sP=Math.PI,lP=[];function uP(t,e,n,r){var i=t.coordinateSystem;if(!i||"view"===i.type){var o=i.getBoundingRect(),a=t.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,h=a.count();if(a.setLayout({cx:l,cy:u}),h){if(n){var p=i.pointToData(r),f=p[0],d=p[1],g=[f-l,d-u];ne(g,g),ee(g,g,c),n.setLayout([l+g[0],u+g[1]],!0),hP(n,t.get(["circular","rotateLabel"]),l,u)}cP[e](t,s,a,c,l,u,h),s.eachEdge((function(e,n){var r,i=_t(e.getModel().get(["lineStyle","curveness"]),eP(e,t,n),0),o=Ht(e.node1.getLayout()),a=Ht(e.node2.getLayout()),s=(o[0]+a[0])/2,c=(o[1]+a[1])/2;+i&&(r=[l*(i*=3)+s*(1-i),u*i+c*(1-i)]),e.setLayout([o,a,r])}))}}}var cP={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;lP.length=a;var l=oP(t);e.eachNode((function(t){var e=aP(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/r);isNaN(n)&&(n=sP/2),lP[t.dataIndex]=n,s+=2*n}));var u=(2*sP-s)/a/2,c=0;e.eachNode((function(t){var e=u+lP[t.dataIndex];c+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+o]),c+=e}))}};function hP(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(),l=Math.atan2(s[1]-r,s[0]-n);l<0&&(l=2*Math.PI+l);var u=s[0]<n;u&&(l-=Math.PI);var c=u?"left":"right";a.setTextConfig({rotation:-l,position:c,origin:"center"});var h=a.ensureState("emphasis");U(h.textConfig||(h.textConfig={}),{position:c})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function pP(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&uP(t,"symbolSize")}))}var fP=Zt;function dP(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&&uP(t,"value"):nP(t);var l=i.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),h=a.get("edgeLength"),p=at(c)?c:[c,c],f=at(h)?h:[h,h];f=[f[1],f[0]];var d=i.mapArray("value",(function(t,e){var n=i.getItemLayout(e),r=Do(t,l,p);return isNaN(r)&&(r=(p[0]+p[1])/2),{w:r,rep:r,fixed:i.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(e,n){var i=r.getEdgeByIndex(n),o=Do(e,u,f);isNaN(o)&&(o=(f[0]+f[1])/2);var a=i.getModel(),s=_t(i.getModel().get(["lineStyle","curveness"]),-eP(i,t,n,!0),0);return{n1:d[i.node1.dataIndex],n2:d[i.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),y=e.getBoundingRect(),v=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],u=null==n.gravity?.1:n.gravity,c=0;c<r.length;c++){var h=r[c];h.p||(h.p=Ft(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=Ht(h.p),h.edges=null}var p,f,d=null==n.friction?.6:n.friction,g=d;return{warmUp:function(){g=.8*d},setFixed:function(t){r[t].fixed=!0},setUnfixed:function(t){r[t].fixed=!1},beforeStep:function(t){p=t},afterStep:function(t){f=t},step:function(t){p&&p(r,i);for(var e=[],n=r.length,o=0;o<i.length;o++){var a=i[o];if(!a.ignoreForceLayout){var s=a.n1;Yt(e,(y=a.n2).p,s.p);var c=Xt(e)-a.d,h=y.w/(s.w+y.w);isNaN(h)&&(h=0),ne(e,e),!s.fixed&&fP(s.p,s.p,e,h*c*g),!y.fixed&&fP(y.p,y.p,e,-(1-h)*c*g)}}for(o=0;o<n;o++)(x=r[o]).fixed||(Yt(e,l,x.p),fP(x.p,x.p,e,u*g));for(o=0;o<n;o++){s=r[o];for(var d=o+1;d<n;d++){var y;Yt(e,(y=r[d]).p,s.p),0===(c=Xt(e))&&(Wt(e,Math.random()-.5,Math.random()-.5),c=1);var v=(s.rep+y.rep)/c/c;!s.fixed&&fP(s.pp,s.pp,e,v),!y.fixed&&fP(y.pp,y.pp,e,-v)}}var m=[];for(o=0;o<n;o++){var x;(x=r[o]).fixed||(Yt(m,x.p,x.pp),fP(x.p,x.p,m,g),Gt(x.pp,x.p))}var b=(g*=.992)<.01;f&&f(r,i,b),t&&t(b)}}}(d,g,{rect:y,gravity:a.get("gravity"),friction:a.get("friction")});v.beforeStep((function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].fixed&&Gt(t[n].p,r.getNodeByIndex(n).getLayout())})),v.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),c=l.n1.p,h=l.n2.p,p=u.getLayout();(p=p?p.slice():[])[0]=p[0]||[],p[1]=p[1]||[],Gt(p[0],c),Gt(p[1],h),+l.curveness&&(p[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(p)}})),t.forceLayout=v,t.preservedPoints=n,v.step()}else t.forceLayout=null}))}function gP(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=[];bs(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]),l=function(t,e,n){return Bh(U(t.getBoxLayoutParams(),{aspect:n}),{width:e.getWidth(),height:e.getHeight()})}(t,e,s);isNaN(s)&&(o=[l.x,l.y],a=[l.x+l.width,l.y+l.height]);var u=a[0]-o[0],c=a[1]-o[1],h=l.width,p=l.height,f=t.coordinateSystem=new Rk;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(o[0],o[1],u,c),f.setViewRect(l.x,l.y,h,p),f.setCenter(t.get("center"),e),f.setZoom(t.get("zoom")),n.push(f)}})),n}var yP=qg.prototype,vP=ty.prototype,mP=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}m(e,t)}(mP);function xP(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var bP=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mP},e.prototype.buildPath=function(t,e){xP(e)?yP.buildPath.call(this,t,e):vP.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return xP(this.shape)?yP.pointAt.call(this,t):vP.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=xP(e)?[e.x2-e.x1,e.y2-e.y1]:vP.tangentAt.call(this,t);return ne(n,n)},e}(gl),_P=["fromSymbol","toSymbol"];function wP(t){return"_"+t+"Type"}function SP(t,e,n){var r=e.getItemVisual(n,t);if(!r||"none"===r)return 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=pm(i);return r+l+fm(a||0,l)+(o||"")+(s||"")}function MP(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=pm(i),u=fm(a||0,l),c=hm(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 IP(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 TP=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createLine(e,n,r),i}return m(e,t),e.prototype._createLine=function(t,e,n){var r=t.hostModel,i=function(t){var e=new bP({name:"line",subPixelOptimize:!0});return IP(e.shape,t),e}(t.getItemLayout(e));i.shape.percent=0,ec(i,{shape:{percent:1}},r,e),this.add(i),J(_P,(function(n){var r=MP(n,t,e);this.add(r),this[wP(n)]=SP(n,t,e)}),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:{}};IP(a.shape,o),tc(i,a,r,e),J(_P,(function(n){var r=SP(n,t,e),i=wP(n);if(this[i]!==r){this.remove(this.childOfName(n));var o=MP(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,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var p=t.getItemModel(e),f=p.getModel("emphasis");o=f.getModel("lineStyle").getLineStyle(),a=p.getModel(["blur","lineStyle"]).getLineStyle(),s=p.getModel(["select","lineStyle"]).getLineStyle(),u=f.get("disabled"),c=f.get("focus"),h=f.get("blurScope"),l=hc(p)}var d=t.getItemVisual(e,"style"),g=d.stroke;i.useStyle(d),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,i.ensureState("blur").style=a,i.ensureState("select").style=s,J(_P,(function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=d.opacity;for(var n=0;n<nu.length;n++){var r=nu[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);cc(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return r.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||"#000",defaultOpacity:d.opacity,defaultText:(null==y?t.getName(e):isFinite(y)?Lo(y):y)+""});var v=this.getTextContent();if(v){var m=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=m.get("position")||"middle";var x=m.get("distance");at(x)||(x=[x,x]),v.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Gu(this,c,h,u)},e.prototype.highlight=function(){Cu(this)},e.prototype.downplay=function(){ku(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");IP(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),r=t.getTextContent();if(e||n||r&&!r.ignore){for(var i=1,o=this.parent;o;)o.scaleX&&(i/=o.scaleX),o=o.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=Yt([],u,l);if(ne(c,c),e&&(e.setPosition(l),S(e,0),e.scaleX=e.scaleY=i*s,e.markRedraw()),n&&(n.setPosition(u),S(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var h=void 0,p=void 0,f=r.__labelDistance,d=f[0]*i,g=f[1]*i,y=s/2,v=a.tangentAt(y),m=[v[1],-v[0]],x=a.pointAt(y);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var b=v[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var _=-Math.atan2(v[1],v[0]);u[0]<l[0]&&(_=Math.PI+_),r.rotation=_}var w=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,p="top";break;default:w=0,p="middle"}switch(r.__position){case"end":r.x=c[0]*d+u[0],r.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",p=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*d+l[0],r.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",p=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=d*b+l[0],r.y=l[1]+w,h=v[0]<0?"right":"left",r.originX=-d*b,r.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=x[0],r.y=x[1]+w,h="center",r.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-d*b+u[0],r.y=u[1]+w,h=v[0]>=0?"right":"left",r.originX=d*b,r.originY=-w}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||h})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var r=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else t.attr("rotation",n)}},e}(xo),AP=TP;function CP(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:hc(e)}}function kP(t){return isNaN(t[0])||isNaN(t[1])}function OP(t){return t&&!kP(t[0])&&!kP(t[1])}var DP=function(){function t(t){this.group=new xo,this._LineCtor=t||AP}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=t,i||r.removeAll();var o=CP(t);t.diff(i).add((function(n){e._doAdd(t,n,o)})).update((function(n,r){e._doUpdate(i,t,r,n,o)})).remove((function(t){r.remove(i.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=CP(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(OP(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){Yy(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(OP(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);OP(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}(),PP=[],LP=[],EP=[],NP=er,RP=ae,zP=Math.abs;function jP(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){PP[0]=NP(i[0],o[0],a[0],c),PP[1]=NP(i[1],o[1],a[1],c),(f=zP(RP(PP,e)-l))<s&&(s=f,r=c)}for(var h=0;h<32;h++){var p=r+u;LP[0]=NP(i[0],o[0],a[0],r),LP[1]=NP(i[1],o[1],a[1],r),EP[0]=NP(i[0],o[0],a[0],p),EP[1]=NP(i[1],o[1],a[1],p);var f=RP(LP,e)-l;if(zP(f)<.01)break;var d=RP(EP,e)-l;u/=2,f<0?d>=0?r+=u:r-=u:d>=0?r-=u:r+=u}return r}function BP(t,e){var n=[],r=ir,i=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[Ht(l[0]),Ht(l[1])],l[2]&&l.__original.push(Ht(l[2])));var h=l.__original;if(null!=l[2]){if(Gt(i[0],h[0]),Gt(i[1],h[2]),Gt(i[2],h[1]),u&&"none"!==u){var p=aP(t.node1),f=jP(i,h[0],p*e);r(i[0][0],i[1][0],i[2][0],f,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],f,n),i[0][1]=n[3],i[1][1]=n[4]}if(c&&"none"!==c){p=aP(t.node2),f=jP(i,h[1],p*e);r(i[0][0],i[1][0],i[2][0],f,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],f,n),i[1][1]=n[1],i[2][1]=n[2]}Gt(l[0],i[0]),Gt(l[1],i[2]),Gt(l[2],i[1])}else{if(Gt(o[0],h[0]),Gt(o[1],h[1]),Yt(a,o[1],o[0]),ne(a,a),u&&"none"!==u){p=aP(t.node1);Zt(o[0],o[0],a,p*e)}if(c&&"none"!==c){p=aP(t.node2);Zt(o[1],o[1],a,-p*e)}Gt(l[0],o[0]),Gt(l[1],o[1])}}))}function VP(t){return"view"===t.type}var FP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){var n=new mI,r=new DP,i=this.group;this._controller=new TC(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(VP(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):tc(s,l,t)}BP(t.getGraph(),oP(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),uP(t,"symbolSize",e,[o.offsetX,o.offsetY]),r.updateLayout(t);break;default:u.setItemLayout(n,[i.x,i.y]),rP(t.getGraph(),t),r.updateLayout(t)}})).on("dragend",(function(){h&&h.setUnfixed(n)})),i.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emp
2hasis","focus"])&&(Yl(i).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Yl(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"),y=u.getLayout("cy");u.graph.eachNode((function(t){hP(t,d,g,y)})),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)&&!DC(e,n,t)})),VP(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){AC(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){CC(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(),BP(t.getGraph(),oP(t)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=oP(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){BP(t.getGraph(),oP(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}(nv),GP=FP;function HP(t){return"_EC_"+t}var WP=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[HP(t)]){var r=new UP(t,e);return r.hostGraph=this,this.nodes.push(r),n[HP(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[HP(t)]},t.prototype.addEdge=function(t,e,n){var r=this._nodesMap,i=this._edgesMap;if(ct(t)&&(t=this.nodes[t]),ct(e)&&(e=this.nodes[e]),t instanceof UP||(t=r[HP(t)]),e instanceof UP||(e=r[HP(e)]),t&&e){var o=t.id+"-"+e.id,a=new ZP(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 UP&&(t=t.id),e instanceof UP&&(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 UP||(e=this._nodesMap[HP(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}(),UP=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];
vendor: 4,896 bytes, line 2
2n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=Pt(),e=Pt(),n=0;n<this.edges.length;n++){var r=this.edges[n];if(!(r.dataIndex<0)){t.set(r.dataIndex,!0);for(var i=[r.node1],o=[r.node2],a=0;a<i.length;){var s=i[a];a++,e.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)t.set(s.inEdges[l].dataIndex,!0),i.push(s.inEdges[l].node1)}for(a=0;a<o.length;){var u=o[a];a++,e.set(u.dataIndex,!0);for(l=0;l<u.outEdges.length;l++)t.set(u.outEdges[l].dataIndex,!0),o.push(u.outEdges[l].node2)}}}return{edge:t.keys(),node:e.keys()}},t}(),ZP=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.prototype.getTrajectoryDataIndices=function(){var t=Pt(),e=Pt();t.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i<n.length;){var o=n[i];i++,e.set(o.dataIndex,!0);for(var a=0;a<o.inEdges.length;a++)t.set(o.inEdges[a].dataIndex,!0),n.push(o.inEdges[a].node1)}for(i=0;i<r.length;){var s=r[i];i++,e.set(s.dataIndex,!0);for(a=0;a<s.outEdges.length;a++)t.set(s.outEdges[a].dataIndex,!0),r.push(s.outEdges[a].node2)}return{edge:t.keys(),node:e.keys()}},t}();function YP(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)}}}K(UP,YP("hostGraph","data")),K(ZP,YP("hostGraph","edgeData"));var XP=WP;function qP(t,e,n,r,i){for(var o=new XP(r),a=0;a<t.length;a++)o.addNode(xt(t[a].id,t[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<e.length;a++){var c=e[a],h=c.source,p=c.target;o.addEdge(h,p,u)&&(l.push(c),s.push(xt(fa(c.id,null),h+" > "+p)),u++)}var f,d=n.get("coordinateSystem");if("cartesian2d"===d||"polar"===d)f=s_(t,n);else{var g=Pp.get(d),y=g&&g.dimensions||[];X(y,"value")<0&&y.concat(["value"]);var v=Qb(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;(f=new $b(v,n)).initData(t)}var m=new $b(["value"],n);return m.initData(l,s),i&&i(f,m),TO({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var KP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new VT(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),aa(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){XD(n=this)&&(n.__curvenessList=[],n.__edgeMap={},qD(n));var a=qP(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=Ec.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 J(a.edges,(function(t){!function(t,e,n,r){if(XD(n)){var i=KD(t,e,n),o=n.__edgeMap,a=o[$D(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),bd("nameValue",{name:l.join(" >
2 "),value:i.value,noValue:null==i.value})}return Pd({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=Q(this.option.categories||[],(function(t){return null!=t.value?t:U({value:0},t)})),e=new $b(["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}(Wd),$P=KP,JP={type:"graphRoam",event:"graphRoam",update:"none"};var QP=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},tL=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return m(e,t),e.prototype.getDefaultShape=function(){return new QP},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}(gl),eL=tL;function nL(t,e){var n=null==t?"":t+"";return e&&(lt(e)?n=e.replace("{value}",n):st(e)&&(n=e(t))),n}var rL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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:Po(n[0],e.getWidth()),cy:Po(n[1],e.getHeight()),r:Po(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")?eT:Ng,h=u.get("show"),p=u.getModel("lineStyle"),f=p.get("width"),d=[s,l];Ws(d,!a);for(var g=(l=d[1])-(s=d[0]),y=s,v=[],m=0;h&&m<r.length;m++){var x=new c({shape:{startAngle:y,endAngle:l=s+g*Math.min(Math.max(r[m][0],0),1),cx:i.cx,cy:i.cy,clockwise:a,r0:i.r-f,r:i.r},silent:!0});x.setStyle({fill:r[m][1]}),x.setStyle(p.getLineStyle(["color","width"])),v.push(x),y=l}v.reverse(),J(v,(function(t){return o.add(t)}));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,l){for(var u,c,h=this.group,p=i.cx,f=i.cy,d=i.r,g=+t.get("min"),y=+t.get("max"),v=t.getModel("splitLine"),m=t.getModel("axisTick"),x=t.getModel("axisLabel"),b=t.get("splitNumber"),_=m.get("splitNumber"),w=Po(v.get("length"),d),S=Po(m.get("length"),d),M=o,I=(a-o)/b,T=I/_,A=v.getModel("lineStyle").getLineStyle(),C=m.getModel("lineStyle").getLineStyle(),k=v.get("distance"),O=0;O<=b;O++){if(u=Math.cos(M),c=Math.sin(M),v.get("show")){var D=new qg({shape:{x1:u*(d-(P=k?k+l:l))+p,y1:c*(d-P)+f,x2:u*(d-w-P)+p,y2:c*(d-w-P)+f},style:A,silent:!0});"auto"===A.stroke&&D.setStyle({stroke:r(O/b)}),h.add(D)}if(x.get("show")){var P=x.get("distance")+k,L=nL(Lo(O/b*(y-g)+g),x.get("formatter")),E=r(O/b),N=u*(d-w-P)+p,R=c*(d-w-P)+f,z=x.get("rotate"),j=0;"radial"===z?(j=-M+2*Math.PI)>Math.PI/2&&(j+=Math.PI):"tangential"===z?j=-M-Math.PI/2:ct(z)&&(j=z*Math.PI/180),0===j?h.add(new Zl({style:pc(x,{text:L,x:N,y:R,verticalAlign:c<-.8?"top":c>
vendor: 38,774 bytes, line 2
2.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:E}),silent:!0})):h.add(new Zl({style:pc(x,{text:L,x:N,y:R,verticalAlign:"middle",align:"center"},{inheritColor:E}),silent:!0,originX:N,originY:R,rotation:j}))}if(m.get("show")&&O!==b){P=(P=m.get("distance"))?P+l:l;for(var B=0;B<=_;B++){u=Math.cos(M),c=Math.sin(M);var V=new qg({shape:{x1:u*(d-P)+p,y1:c*(d-P)+f,x2:u*(d-S-P)+p,y2:c*(d-S-P)+f},silent:!0,style:C});"auto"===C.stroke&&V.setStyle({stroke:r((O+B/_)/b)}),h.add(V),M+=T}M-=T}else M+=I}},e.prototype._renderPointer=function(t,e,n,r,i,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,p=[],f=t.get(["pointer","show"]),d=t.getModel("progress"),g=d.get("show"),y=t.getData(),v=y.mapDimension("value"),m=+t.get("min"),x=+t.get("max"),b=[m,x],_=[o,a];function w(e,n){var r,o=y.getItemModel(e).getModel("pointer"),a=Po(o.get("width"),i.r),s=Po(o.get("length"),i.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),c=Po(u[0],i.r),h=Po(u[1],i.r),p=o.get("keepAspect");return(r=l?hm(l,c-a/2,h-s,a,s,null,p):new eL({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 S(t,e){var n=d.get("roundCap")?eT:Ng,r=d.get("overlap"),a=r?d.get("width"):l/y.count(),u=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:u,r:c}});return r&&(h.z2=x-y.get(v,t)%x),h}(g||f)&&(y.diff(c).add((function(e){var n=y.get(v,e);if(f){var r=w(e,o);ec(r,{rotation:-((isNaN(+n)?_[0]:Do(n,b,_,!0))+Math.PI/2)},t),u.add(r),y.setItemGraphicEl(e,r)}if(g){var i=S(e,o),a=d.get("clip");ec(i,{shape:{endAngle:Do(n,b,_,a)}},t),u.add(i),Xl(t.seriesIndex,y.dataType,e,i),p[e]=i}})).update((function(e,n){var r=y.get(v,e);if(f){var i=c.getItemGraphicEl(n),a=i?i.rotation:o,s=w(e,a);s.rotation=a,tc(s,{rotation:-((isNaN(+r)?_[0]:Do(r,b,_,!0))+Math.PI/2)},t),u.add(s),y.setItemGraphicEl(e,s)}if(g){var l=h[n],m=S(e,l?l.shape.endAngle:o),x=d.get("clip");tc(m,{shape:{endAngle:Do(r,b,_,x)}},t),u.add(m),Xl(t.seriesIndex,y.dataType,e,m),p[e]=m}})).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(f){var s=y.getItemGraphicEl(t),l=y.getItemVisual(t,"style"),u=l.fill;if(s instanceof wl){var c=s.style;s.useStyle(U({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r(Do(y.get(v,t),b,[0,1],!0))),s.z2EmphasisLift=0,Zu(s,e),Gu(s,i,o,a)}if(g){var h=p[t];h.useStyle(y.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,Zu(h,e),Gu(h,i,o,a)}})),this._progressEls=p)},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=hm(i,e.cx-r/2+Po(o[0],e.r),e.cy-r/2+Po(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 xo,h=[],p=[],f=t.isAnimationEnabled(),d=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new Zl({silent:!0}),p[t]=new Zl({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 xo,y=r(Do(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var m=v.get("offsetCenter"),x=i.cx+Po(m[0],i.r),b=i.cy+Po(m[1],i.r);(C=h[e]).attr({z2:d?0:2,style:pc(v,{x:x,y:b,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:y})}),g.add(C)}var _=n.getModel("detail");if(_.get("show")){var w=_.get("offsetCenter"),S=i.cx+Po(w[0],i.r),M=i.cy+Po(w[1],i.r),I=Po(_.get("width"),i.r),T=Po(_.get("height"),i.r),A=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:y,C=p[e],k=_.get("formatter");C.attr({z2:d?0:2,style:pc(_,{x:S,y:M,text:nL(o,k),width:isNaN(I)?null:I,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:A})}),bc(C,{normal:_},o,(function(t){return nL(t,k)})),f&&_c(C,e,a,t,{getFormattedLabel:function(t,e,n,r,i,a){return nL(a?a.interpolatedValue:o,k)}}),g.add(C)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(nv),iL=rL,oL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return m(e,t),e.prototype.getInitialData=function(t,e){return jT(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}(Wd),aL=oL;var sL=["itemStyle","opacity"],lL=function(t){function e(e,n){var r=t.call(this)||this,i=r,o=new Ug,a=new Zl;return i.setTextContent(a),r.setTextGuideLine(o),r.updateData(e,n,!0),r}return m(e,t),e.prototype.updateData=function(t,e,n){var r=this,i=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(sL);l=null==l?1:l,n||ac(r),r.useStyle(t.getItemVisual(e,"style")),r.style.lineJoin="round",n?(r.setShape({points:a.points}),r.style.opacity=0,ec(r,{style:{opacity:l}},i,e)):tc(r,{style:{opacity:l},shape:{points:a.points}},i,e),Zu(r,o),this._updateLabel(t,e),Gu(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),u=l.fill;cc(i,hc(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var c=s.linePoints;r.setShape({points:c}),n.textGuideLineConfig={anchor:c?new Ke(c[0][0],c[0][1]):null},tc(i,{style:{x:s.x,y:s.y}},o,e),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),IS(n,TS(a),{stroke:u})},e}(Gg),uL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return m(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 lL(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){oc(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}(nv),cL=uL,hL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new VT(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return jT(this,{coordDimensions:["value"],encodeDefaulter:ot(up,this)})},e.prototype._defaultLabelLine=function(t){aa(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}(Wd),pL=hL;function fL(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),r=n.mapDimension("value"),i=t.get("sort"),o=function(t,e){return Bh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,u=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 st(e)?i.sort(e):"none"!==e&&i.sort((function(t,e){return o?r[t]-r[e]:r[e]-r[t]})),i}(n,i),c=o.x,h=o.y,p="horizontal"===a?[Po(t.get("minSize"),l),Po(t.get("maxSize"),l)]:[Po(t.get("minSize"),s),Po(t.get("maxSize"),s)],f=n.getDataExtent(r),d=t.get("min"),g=t.get("max");null==d&&(d=Math.min(f[0],0)),null==g&&(g=f[1]);var y=t.get("funnelAlign"),v=t.get("gap"),m=(("horizontal"===a?s:l)-v*(n.count()-1))/n.count(),x=function(t,e){if("horizontal"===a){var i=Do(n.get(r,t)||0,[d,g],p,!0),o=void 0;switch(y){case"top":o=h;break;case"center":o=h+(l-i)/2;break;case"bottom":o=h+(l-i)}return[[e,o],[e,o+i]]}var u,f=Do(n.get(r,t)||0,[d,g],p,!0);switch(y){case"left":u=c;break;case"center":u=c+(s-f)/2;break;case"right":u=c+s-f}return[[u,e],[u+f,e]]};"ascending"===i&&(m=-m,v=-v,"horizontal"===a?c+=s:h+=l,u=u.reverse());for(var b=0;b<u.length;b++){var _=u[b],w=u[b+1],S=n.getItemModel(_);if("horizontal"===a){var M=S.get(["itemStyle","width"]);null==M?M=m:(M=Po(M,s),"ascending"===i&&(M=-M));var I=x(_,c),T=x(w,c+M);c+=M+v,n.setItemLayout(_,{points:I.concat(T.slice().reverse())})}else{var A=S.get(["itemStyle","height"]);null==A?A=m:(A=Po(A,l),"ascending"===i&&(A=-A));I=x(_,h),T=x(w,h+A);h+=A+v,n.setItemLayout(_,{points:I.concat(T.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,y=void 0,v=u.get("length");"left"===l?(f=(h[3][0]+h[0][0])/2,d=(h[3][1]+h[0][1])/2,i=(g=f-v)-5,r="right"):"right"===l?(f=(h[1][0]+h[2][0])/2,d=(h[1][1]+h[2][1])/2,i=(g=f+v)+5,r="left"):"top"===l?(f=(h[3][0]+h[0][0])/2,o=(y=(d=(h[3][1]+h[0][1])/2)-v)-5,r="center"):"bottom"===l?(f=(h[1][0]+h[2][0])/2,o=(y=(d=(h[1][1]+h[2][1])/2)+v)+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=(y=d-v)-5,r="center"):(i=(g=f+v)+5,r="top")):"rightBottom"===l?(f=h[2][0],d=h[2][1],"horizontal"===e?(o=(y=d+v)+5,r="center"):(i=(g=f+v)+5,r="bottom")):"leftTop"===l?(f=h[0][0],d="horizontal"===e?h[0][1]:h[1][1],"horizontal"===e?(o=(y=d-v)-5,r="center"):(i=(g=f-v)-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=(y=d+v)+5,r="center"):(i=(g=f-v)-5,r="right")):(f=(h[1][0]+h[2][0])/2,d=(h[1][1]+h[2][1])/2,"horizontal"===e?(o=(y=d+v)+5,r="center"):(i=(g=f+v)+5,r="left")),"horizontal"===e?i=g=f:o=y=d,a=[[f,d],[g,y]]}c.label={linePoints:a,x:i,y:o,verticalAlign:"middle",textAlign:r,inside:p}}))}(n)}))}var dL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new xo,n._initialized=!1,n}return m(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=vL(t);if(o.diff(a).add((function(t){mL(yL(o,i,t,l,s),o,t,u)})).update((function(e,n){var r=a.getItemGraphicEl(n),i=gL(o,e,l,s);o.setItemGraphicEl(e,r),tc(r,{shape:{points:i}},t,e),ac(r),mL(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 Ol({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),ec(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=vL(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=yL(r,this._dataGroup,l,o,i);u.incremental=!0,mL(u,r,l,a),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(nv);function gL(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 yL(t,e,n,r,i){var o=gL(t,n,r,i),a=new Ug({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function vL(t){var e=t.get("smooth",!0);return!0===e&&(e=.3),mt(e=$o(e))&&(e=0),{smooth:e}}function mL(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");Zu(t,i,"lineStyle"),Gu(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}var xL=dL,bL=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 m(e,t),e.prototype.getInitialData=function(t,e){return s_(null,this,{useEncodeDefaulter:it(_L,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}(Wd);function _L(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return J(e.dimensions,(function(t){var e=+t.replace("dim","");n[t]=e})),n}}var wL=bL,SL=["lineStyle","opacity"],ML={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(SL,!0);null!=o&&(i=o)}e.ensureUniqueItemVisual(n,"style").opacity=i}),t.start,t.end)}}}};function IL(t){!function(t){if(t.parallel)return;var e=!1;J(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}(t),function(t){var e=oa(t.parallelAxis);J(e,(function(e){if(ht(e)){var n=e.parallelIndex||0,r=oa(t.parallel)[n];r&&r.parallelAxisDefault&&H(e,r.parallelAxisDefault,!1)}}))}(t)}var TL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},J(AL,(function(t,e){n.getZr().on(e,this._handlers[e]=it(t,this))}),this)),sv(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){lv(this,"_throttledDispatchExpand"),J(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(U({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Zd),AL={mousedown:function(t){CL(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(CL(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&&CL(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 CL(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var kL=TL,OL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&H(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){J(["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=[];J(et(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this),(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}(Yh),DL=OL,PL=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 m(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(Jw),LL=PL;function EL(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0];if(null!=i&&(i=RL(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(e[1]-e[0]);s=RL(s,[0,a]),i=o=RL(s,[i,o]),r=0}e[0]=RL(e[0],n),e[1]=RL(e[1],n);var l=NL(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]=RL(e[r],h),u=NL(e,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(e[1-r]=e[r]+l.sign*i),u=NL(e,r),null!=o&&u.span>o&&(e[1-r]=e[r]+u.sign*o),e}function NL(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 RL(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var zL=J,jL=Math.min,BL=Math.max,VL=Math.floor,FL=Math.ceil,GL=Lo,HL=Math.PI,WL=function(){function t(t,e,n){this.type="parallel",this._axesMap=Pt(),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;zL(r,(function(t,n){var r=i[n],o=e.getComponent("parallelAxis",r),a=this._axesMap.set(t,new LL(t,pw(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();zL(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(r,r.mapDimension(t)),hw(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Bh(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=UL(e.get("axisExpandWidth"),l),h=UL(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=UL(f[1]-f[0],l),f[1]=f[0]+t):(t=UL(c*(h-1),l),(f=[c*(e.get("axisExpandCenter")||VL(u/2))-t/2])[1]=f[0]+t);var d=(s-t)/(u-h);d<3&&(d=0);var g=[VL(GL(f[0]/c,1))+1,FL(GL(f[1]/c,1))-1],y=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:y}},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])})),zL(n,(function(e,n){var o=(r.axisExpandable?YL:ZL)(n,r),a={horizontal:{x:o.position,y:r.axisLength},vertical:{x:0,y:o.position}},s={horizontal:HL/2,vertical:0},l=[a[i].x+t.x,a[i].y+t.y],u=s[i],c=[1,0,0,1,0,0];Ue(c,c,u),We(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=[];J(o,(function(e){a.push(t.mapDimension(e)),s.push(i.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;u<r;u++){var c=void 0;if(l){c="active";for(var h=t.getValues(a,u),p=0,f=o.length;p<f;p++){if("inactive"===s[p].getActiveState(h[p])){c="inactive";break}}}else c="normal";e(c,u)}},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 Ny([t,0],this._axesLayout[e].transform)},t.prototype.getAxisLayout=function(t){return G(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)?EL(a,r,o,"all"):l="none";else{var p=r[1]-r[0];(r=[BL(0,o[1]*s/p-p/2)])[1]=jL(o[1],r[0]+p),r[0]=r[1]-p}return{axisExpandWindow:r,behavior:l}},t}();function UL(t,e){return jL(BL(t,e[0]),e[1])}function ZL(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function YL(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 XL=WL;var qL={create:function(t,e){var n=[];return t.eachComponent("parallel",(function(r,i){var o=new XL(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",_a).models[0];t.coordinateSystem=e.coordinateSystem}})),n}},KL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return m(e,t),e.prototype.getAreaSelectStyle=function(){return za([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=G(t);if(e)for(var n=e.length-1;n>=0;n--)Eo(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}(Yh);K(KL,xw);var $L=KL,JL=!0,QL=Math.min,tE=Math.max,eE=Math.pow,nE=1e4,rE=6,iE=6,oE="globalPan",aE={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},sE={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},lE={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},uE=0,cE=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new xo,n._uid="brushController_"+uE++,J(zE,(function(t,e){this._handlers[e]=it(t,this)}),n),n}return m(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){_C(t)[e]=n}(e,oE,this._uid),J(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=H(G(lE),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;!function(t,e,n){var r=_C(t);r[e]===n&&(r[e]=null)}(t,oE,this._uid),J(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={};J(t,(function(t){e[t.panelId]=G(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=Q(t,(function(t){return H(G(lE),t,!0)}));var e="\0-brush-index-",n=this._covers,r=this._covers=[],i=this,o=this._creatingCover;return new Tb(n,t,(function(t,e){return a(t.__brushOption,e)}),a).add(s).update(s).remove((function(t){n[t]!==o&&i.group.remove(n[t])})).execute(),this;function a(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function s(e,a){var s=t[e];if(null!=a&&n[a]===o)r[e]=n[a];else{var l=r[e]=null!=a?(n[a].__brushOption=s,n[a]):pE(i,hE(i,s));gE(i,l)}}},e.prototype.unmount=function(){return this.enableBrush(!1),xE(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(ye);function hE(t,e){var n=BE[e.brushType].createCover(t,e);return n.__brushOption=e,dE(n,e),t.group.add(n),n}function pE(t,e){var n=yE(e);return n.endCreating&&(n.endCreating(t,e),dE(e,e.__brushOption)),e}function fE(t,e){var n=e.__brushOption;yE(e).updateCoverShape(t,e,n.range,n)}function dE(t,e){var n=e.z;null==n&&(n=nE),t.traverse((function(t){t.z=n,t.z2=n}))}function gE(t,e){yE(e).updateCommon(t,e),fE(t,e)}function yE(t){return BE[t.__brushOption.brushType]}function vE(t,e,n){var r,i=t._panels;if(!i)return JL;var o=t._transform;return J(i,(function(t){t.isTargetByCursor(e,n,o)&&(r=t)})),r}function mE(t,e){var n=t._panels;if(!n)return JL;var r=e.__brushOption.panelId;return null!=r?n[r]:JL}function xE(t){var e=t._covers,n=e.length;return J(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function bE(t,e){var n=Q(t._covers,(function(t){var e=t.__brushOption,n=G(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function _E(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function wE(t,e,n,r){var i=new xo;return i.add(new Ol({name:"main",style:TE(n),silent:!0,draggable:!0,cursor:"move",drift:ot(kE,t,e,i,["n","s","w","e"]),ondragend:ot(bE,e,{isEnd:!0})})),J(r,(function(n){i.add(new Ol({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ot(kE,t,e,i,n),ondragend:ot(bE,e,{isEnd:!0})}))})),i}function SE(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=tE(i,iE),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,y=d+i,v=g+i;IE(t,e,"main",a,s,d,g),r.transformable&&(IE(t,e,"w",l,u,o,v),IE(t,e,"e",p,u,o,v),IE(t,e,"n",l,u,y,o),IE(t,e,"s",l,f,y,o),IE(t,e,"nw",l,u,o,o),IE(t,e,"ne",p,u,o,o),IE(t,e,"sw",l,f,o,o),IE(t,e,"se",p,f,o,o))}function ME(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(TE(n)),i.attr({silent:!r,cursor:r?"move":"default"}),J([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=e.childOfName(n.join("")),o=1===n.length?CE(t,n[0]):function(t,e){var n=[CE(t,e[0]),CE(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?sE[o]+"-resize":null})}))}function IE(t,e,n,r,i,o,a){var s=e.childOfName(n);s&&s.setShape(function(t){var e=QL(t[0][0],t[1][0]),n=QL(t[0][1],t[1][1]),r=tE(t[0][0],t[1][0]),i=tE(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:i-n}}(PE(t,e,[[r,i],[r+o,i+a]])))}function TE(t){return Z({strokeNoScale:!0},t.brushStyle)}function AE(t,e,n,r){var i=[QL(t,n),QL(e,r)],o=[tE(t,n),tE(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function CE(t,e){var n=Ry({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return Ey(t.group)}(t));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function kE(t,e,n,r,i,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=DE(e,i,o);J(r,(function(t){var e=aE[t];s[e[0]][e[1]]+=l[e[0]]})),a.range=t.fromRectRange(AE(s[0][0],s[1][0],s[0][1],s[1][1])),gE(e,n),bE(e,{isEnd:!1})}function OE(t,e,n,r){var i=e.__brushOption.range,o=DE(t,n,r);J(i,(function(t){t[0]+=o[0],t[1]+=o[1]})),gE(t,e),bE(t,{isEnd:!1})}function DE(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 PE(t,e,n){var r=mE(t,e);return r&&r!==JL?r.clipPath(n,t._transform):G(n)}function LE(t){var e=t.event;e.preventDefault&&e.preventDefault()}function EE(t,e,n){return t.childOfName("main").contain(e,n)}function NE(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 eE(i*i+o*o,.5)>rE}(t)||o){if(a&&!o){"single"===s.brushMode&&xE(t);var l=G(s);l.brushType=RE(l.brushType,a),l.panelId=a===JL?null:a.panelId,o=t._creatingCover=hE(t,l),t._covers.push(o)}if(o){var u=BE[RE(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(PE(t,o,t._track)),r&&(pE(t,o),u.updateCommon(t,o)),fE(t,o),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&vE(t,e,n)&&xE(t)&&(i={isEnd:r,removeOnClick:!0});return i}function RE(t,e){return"auto"===t?e.defaultBrushType:t}var zE={mousedown:function(t){if(this._dragging)jE(this,t);else if(!t.target||!t.target.draggable){LE(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=vE(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=vE(t,e,n);if(!t._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===JL||s.panelId===o.panelId)&&BE[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}(this,t,r),this._dragging){LE(t);var i=NE(this,t,r,!1);i&&bE(this,i)}},mouseup:function(t){jE(this,t)}};function jE(t,e){if(t._dragging){LE(e);var n=e.offsetX,r=e.offsetY,i=t.group.transformCoordToLocal(n,r),o=NE(t,e,i,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&bE(t,o)}}var BE={lineX:VE(0),lineY:VE(1),rect:{createCover:function(t,e){function n(t){return t}return wE({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=_E(t);return AE(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){SE(t,e,n,r)},updateCommon:ME,contain:EE},polygon:{createCover:function(t,e){var n=new xo;return n.add(new Ug({name:"main",style:TE(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Gg({name:"main",draggable:!0,drift:ot(OE,t,e),ondragend:ot(bE,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:PE(t,e,n)})},updateCommon:ME,contain:EE}};function VE(t){return{createCover:function(e,n){return wE({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=_E(e);return[QL(n[0][t],n[1][t]),tE(n[0][t],n[1][t])]},updateCoverShape:function(e,n,r,i){var o,a=mE(e,n);if(a!==JL&&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(),SE(e,n,l,i)},updateCommon:ME,contain:EE}}var FE=cE;function GE(t){return t=UE(t),function(e){return By(e,t)}}function HE(t,e){return t=UE(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 WE(t,e,n){var r=UE(t);return function(t,i){return r.contain(i[0],i[1])&&!DC(t,e,n)}}function UE(t){return sn.create(t)}var ZE=["axisLine","axisTickLabel","axisName"],YE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new FE(n.getZr())).on("brush",it(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 xo,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(),l=s.width,u=t.axis.dim,c=U({strokeContainThreshold:l},a.getAxisLayout(u)),h=new PA(t,c);J(ZE,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(c,s,t,o,l,n),jy(i,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,r,i,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=sn.create({x:a[0],y:-i/2,width:s,height:i});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:GE(u),isTargetByCursor:WE(u,o,r),getLinearBrushOtherExtent:HE(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(function(t){var e=t.axis;return Q(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=Q(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}(Zd);var XE=YE,qE={type:"axisAreaSelect",event:"axisAreaSelected"};var KE={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function $E(t){t.registerComponentView(kL),t.registerComponentModel(DL),t.registerCoordinateSystem("parallel",qL),t.registerPreprocessor(IL),t.registerComponentModel($L),t.registerComponentView(XE),aA(t,"parallel",$L,KE),function(t){t.registerAction(qE,(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 JE=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},QE=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultShape=function(){return new JE},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(){Cu(this)},e.prototype.downplay=function(){ku(this)},e}(gl),tN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return m(e,t),e.prototype.render=function(t,e,n){var r=this,i=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,u=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,i.eachEdge((function(e){var n=new QE,r=Yl(n);r.dataIndex=e.dataIndex,r.seriesIndex=t.seriesIndex,r.dataType="edge";var i,a,u,p,f,d,g,y,v=e.getModel(),m=v.getModel("lineStyle"),x=m.get("
2curveness"),b=e.node1.getLayout(),_=e.node1.getModel(),w=_.get("localX"),S=_.get("localY"),M=e.node2.getLayout(),I=e.node2.getModel(),T=I.get("localX"),A=I.get("localY"),C=e.getLayout();n.shape.extent=Math.max(1,C.dy),n.shape.orient=h,"vertical"===h?(i=(null!=w?w*s:b.x)+C.sy,a=(null!=S?S*l:b.y)+b.dy,u=(null!=T?T*s:M.x)+C.ty,f=i,d=a*(1-x)+(p=null!=A?A*l:M.y)*x,g=u,y=a*x+p*(1-x)):(i=(null!=w?w*s:b.x)+b.dx,a=(null!=S?S*l:b.y)+C.sy,f=i*(1-x)+(u=null!=T?T*s:M.x)*x,d=a,g=i*x+u*(1-x),y=p=(null!=A?A*l:M.y)+C.ty),n.setShape({x1:i,y1:a,x2:u,y2:p,cpx1:f,cpy1:d,cpx2:g,cpy2:y}),n.useStyle(m.getItemStyle()),eN(n.style,h,e);var k=""+v.get("value"),O=hc(v,"edgeLabel");cc(n,O,{labelFetcher:{getFormattedLabel:function(e,n,r,i,o,a){return t.getFormattedLabel(e,n,"edge",i,_t(o,O.normal&&O.normal.get("formatter"),k),a)}},labelDataIndex:e.dataIndex,defaultText:k}),n.setTextConfig({position:"inside"});var D=v.getModel("emphasis");Zu(n,v,"lineStyle",(function(t){var n=t.getItemStyle();return eN(n,h,e),n})),o.add(n),c.setItemGraphicEl(e.dataIndex,n);var P=D.get("focus");Gu(n,"adjacency"===P?e.getAdjacentDataIndices():"trajectory"===P?e.getTrajectoryDataIndices():P,D.get("blurScope"),D.get("disabled"))})),i.eachNode((function(e){var n=e.getLayout(),r=e.getModel(),i=r.get("localX"),a=r.get("localY"),c=r.getModel("emphasis"),h=new Ol({shape:{x:null!=i?i*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle(),z2:10});cc(h,hc(r),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),h.disableLabelAnimation=!0,h.setStyle("fill",e.getVisual("color")),h.setStyle("decal",e.getVisual("style").decal),Zu(h,r),o.add(h),u.setItemGraphicEl(e.dataIndex,h),Yl(h).dataType="node";var p=c.get("focus");Gu(h,"adjacency"===p?e.getAdjacentDataIndices():"trajectory"===p?e.getTrajectoryDataIndices():p,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(e,i){u.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:u.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/l})},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 Ol({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return ec(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}(nv);function eN(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");
vendor: 48,839 bytes, line 2
2lt(r)&<(i)&&(t.fill=new sy(0,0,+("horizontal"===e),+("vertical"===e),[{color:r,offset:0},{color:i,offset:1}]))}}var nN=tN,rN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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 Ec(i[a],this,e));if(r&&n){var s=qP(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}))}));return s.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 bd("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 bd("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},edgeLabel:{show:!1,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}(Wd),iN=rN;function oN(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),r=t.get("nodeGap"),i=function(t,e){return Bh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=i;var o=i.width,a=i.height,s=t.getGraph(),l=s.nodes,u=s.edges;!function(t){J(t,(function(t){var e=gN(t.outEdges,dN),n=gN(t.inEdges,dN),r=t.getValue()||0,i=Math.max(e,n,r);t.setLayout({value:i},!0)}))}(l),function(t,e,n,r,i,o,a,s,l){(function(t,e,n,r,i,o,a){for(var s=[],l=[],u=[],c=[],h=0,p=0;p<e.length;p++)s[p]=1;for(p=0;p<t.length;p++)l[p]=t[p].inEdges.length,0===l[p]&&u.push(t[p]);var f=-1;for(;u.length;){for(var d=0;d<u.length;d++){var g=u[d],y=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=y.depth&&y.depth>=0;v&&y.depth>f&&(f=y.depth),g.setLayout({depth:v?y.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;m<g.outEdges.length;m++){var x=g.outEdges[m];s[e.indexOf(x)]=0;var b=x.node2;0===--l[t.indexOf(b)]&&c.indexOf(b)<0&&c.push(b)}}++h,u=c,c=[]}for(p=0;p<s.length;p++)if(1===s[p])throw new Error("Sankey is a DAG, the original data has cycle!");var _=f>h-1?f:h-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 l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}o=i,i=[],++a}J(t,(function(t){aN(t)||t.setLayout({depth:Math.max(0,r-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&function(t,e){J(t,(function(t){aN(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}(t,r)}(t,a,0,_);var w="vertical"===o?(i-n)/_:(r-n)/_;!function(t,e,n){J(t,(function(t){var r=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:r},!0):t.setLayout({x:r},!0)}))}(t,w,o)})(t,e,n,i,o,s,l),function(t,e,n,r,i,o,a){var s=function(t,e){var n=[],r="vertical"===e?"y":"x",i=Ia(t,(function(t){return t.getLayout()[r]}));return i.keys.sort((function(t,e){return t-e})),J(i.keys,(function(t){n.push(i.buckets.get(t))})),n}(t,a);(function(t,e,n,r,i,o){var a=1/0;J(t,(function(t){var e=t.length,s=0;J(t,(function(t){s+=t.getLayout().value}));var l="vertical"===o?(r-(e-1)*i)/s:(n-(e-1)*i)/s;l<a&&(a=l)})),J(t,(function(t){J(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))}))})),J(e,(function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)}))})(s,e,n,r,i,a),sN(s,i,n,r,a);for(var l=1;o>0;o--)lN(s,l*=.99,a),sN(s,i,n,r,a),yN(s,l,a),sN(s,i,n,r,a)}(t,e,o,i,r,a,s),function(t,e){var n="vertical"===e?"x":"y";J(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]}))})),J(t,(function(t){var e=0,n=0;J(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),J(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,s)}(l,u,n,r,o,a,0!==et(l,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function aN(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function sN(t,e,n,r,i){var o="vertical"===i?"x":"y";J(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 lN(t,e,n){J(t.slice().reverse(),(function(t){J(t,(function(t){if(t.outEdges.length){var r=gN(t.outEdges,uN,n)/gN(t.outEdges,dN);if(isNaN(r)){var i=t.outEdges.length;r=i?gN(t.outEdges,cN,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-fN(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-fN(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function uN(t,e){return fN(t.node2,e)*t.getValue()}function cN(t,e){return fN(t.node2,e)}function hN(t,e){return fN(t.node1,e)*t.getValue()}function pN(t,e){return fN(t.node1,e)}function fN(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function dN(t){return t.getValue()}function gN(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 yN(t,e,n){J(t,(function(t){J(t,(function(t){if(t.inEdges.length){var r=gN(t.inEdges,hN,n)/gN(t.inEdges,dN);if(isNaN(r)){var i=t.inEdges.length;r=i?gN(t.inEdges,pN,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-fN(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-fN(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function vN(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes,r=e.edges;if(n.length){var i=1/0,o=-1/0;J(n,(function(t){var e=t.getLayout().value;e<i&&(i=e),e>o&&(o=e)})),J(n,(function(e){var n=new wD({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),r=e.getModel().get(["itemStyle","color"]);null!=r?(e.setVisual("color",r),e.setVisual("style",{fill:r})):(e.setVisual("color",n),e.setVisual("style",{fill:n}))}))}r.length&&J(r,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}var mN=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 l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],p=[i,o],f=p[u].get("type"),d=p[1-u].get("type"),g=t.data;if(g&&r){var y=[];J(g,(function(t,e){var n;at(t)?(n=t.slice(),t.unshift(e)):at(t.value)?((n=U({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,y.push(n)})),t.data=y}var v=this.defaultValueDimensions,m=[{name:c,type:kb(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:kb(d),dimsDef:v.slice()}];return jT(this,{coordDimensions:m,dimensionsCount:v.length+1,encodeDefaulter:ot(lp,m,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),xN=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 m(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}(Wd);K(xN,mN,!0);var bN=xN,_N=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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=MN(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?(ac(n),IN(s,n,r,t)):n=MN(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}(nv),wN=function(){},SN=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return m(e,t),e.prototype.getDefaultShape=function(){return new wN},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}(gl);function MN(t,e,n,r,i){var o=t.ends,a=new SN({shape:{points:i?TN(o,r,t):o}});return IN(t,a,e,n,i),a}function IN(t,e,n,r,i){var o=n.hostModel;(0,l[i?"initProps":"updateProps"])(e,{shape:{points:t.ends}},o,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var a=n.getItemModel(r),s=a.getModel("emphasis");Zu(e,a),Gu(e,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function TN(t,e,n){return Q(t,(function(t){return(t=t.slice())[e]=n.initBaseline,t}))}var AN=_N,CN=J;function kN(t){var e=function(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var r=t.getBaseAxis(),i=X(n,r);i<0&&(i=n.length,n[i]=r,e[i]={axis:r,seriesModels:[]}),e[i].seriesModels.push(t)})),e}(t);CN(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 l=0;CN(r,(function(t){l=Math.max(l,t.getData().count())}));var u=n.getExtent();e=Math.abs(u[1]-u[0])/l}CN(r,(function(t){var n=t.get("boxWidth");at(n)||(n=[n,n]),s.push([Po(n[0],e)||0,Po(n[1],e)||0])}));var c=.8*e-2,h=c/i*.3,p=(c-h*(i-1))/i,f=p/2-c/2;CN(r,(function(t,e){a.push(f),f+=h+p,o.push(Math.min(Math.max(p,s[e][0]),s[e][1]))}))}(t),CN(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=x(p,c[2],h),d=x(p,c[0],h),g=x(p,c[1],h),y=x(p,c[3],h),v=x(p,c[4],h),m=[];b(m,g,!1),b(m,y,!0),m.push(d,g,v,y),_(m,d),_(m,v),_(m,f),i.setItemLayout(h,{initBaseline:f[s],ends:m})}function x(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 b(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 ON={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Qh){0,zf("")}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=Eo(t[a].slice()),l=qo(s,.25),u=qo(s,.5),c=qo(s,.75),h=s[0],p=s[s.length-1],f=(null==i?1.5:i)*(c-l),d=o?h:Math.max(h,l-f),g=o?p:Math.min(p,c+f),y=e.itemNameFormatter,v=st(y)?y({value:a}):lt(y)?y.replace("{value}",a+""):a+"";n.push([v,d,l,u,c,g]);for(var m=0;m<s.length;m++){var x=s[m];if(x<d||x>g){var b=[v,x];r.push(b)}}}return{boxData:n,outliers:r}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};var DN=["color","borderColor"],PN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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){Yy(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&&RN(s,a))return;var l=NN(a,n,!0);ec(l,{shape:{points:a.ends}},t,n),zN(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&&RN(s,c)?r.remove(u):(u?(tc(u,{shape:{points:c.ends}},t,a),ac(u)):u=NN(c,a),zN(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(),FN(t,this.group);var e=t.get("clip",!0)?DI(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=NN(r.getItemLayout(n),n);zN(o,r,n,i),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){FN(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}(nv),LN=function(){},EN=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return m(e,t),e.prototype.getDefaultShape=function(){return new LN},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}(gl);function NN(t,e,n){var r=t.ends;return new EN({shape:{points:n?jN(r,t):r},z2:100})}function RN(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 zN(t,e,n,r){var i=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,Zu(t,i)}function jN(t,e){return Q(t,(function(t){return(t=t.slice())[1]=e.initBaseline,t}))}var BN=function(){},VN=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return m(e,t),e.prototype.getDefaultShape=function(){return new BN},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}(gl);function FN(t,e,n,r){var i=t.getData(),o=i.getLayout("largePoints"),a=new VN({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new VN({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new VN({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(l),GN(1,a,t,i),GN(-1,s,t,i),GN(0,l,t,i),r&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function GN(t,e,n,r){var i=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(i=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(DN);e.useStyle(o),e.style.fill=null,e.style.stroke=i}var HN=PN,WN=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 m(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",borderColorDoji:null,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}(Wd);K(WN,mN,!0);var UN=WN;function ZN(t){t&&at(t.series)&&J(t.series,(function(t){ht(t)&&"k"===t.type&&(t.type="candlestick")}))}var YN=["itemStyle","borderColor"],XN=["itemStyle","borderColor0"],qN=["itemStyle","borderColorDoji"],KN=["itemStyle","color"],$N=["itemStyle","color0"],JN={seriesType:"candlestick",plan:Yd(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?KN:$N)}function r(t,e){return e.get(0===t?qN:t>0?YN:XN)}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,U(e.ensureUniqueItemVisual(i,"style"),s)}}}}},QN={seriesType:"candlestick",plan:Yd(),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=Po(bt(t.get("barMaxWidth"),i),i),a=Po(bt(t.get("barMinWidth"),1),i),s=t.get("barWidth");return null!=s?Po(s,i):Math.max(Math.min(i/2,o),a)}(t,n),i=["x","y"],o=n.getDimensionIndex(n.mapDimension(i[0])),a=Q(n.mapDimensionsAll(i[1]),n.getDimensionIndex,n),s=a[0],l=a[1],u=a[2],c=a[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(o<0||a.length<4))return{progress:t.pipelineContext.large?function(n,r){var i,a,h=C_(4*n.count),p=0,f=[],d=[],g=r.getStore(),y=!!t.get(["itemStyle","borderColorDoji"]);for(;null!=(a=n.next());){var v=g.get(o,a),m=g.get(s,a),x=g.get(l,a),b=g.get(u,a),_=g.get(c,a);isNaN(v)||isNaN(b)||isNaN(_)?(h[p++]=NaN,p+=3):(h[p++]=tR(g,a,m,x,l,y),f[0]=v,f[1]=b,i=e.dataToPoint(f,null,d),h[p++]=i?i[0]:NaN,h[p++]=i?i[1]:NaN,f[1]=_,i=e.dataToPoint(f,null,d),h[p++]=i?i[1]:NaN)}r.setLayout("largePoints",h)}:function(t,n){var i,a=n.getStore();for(;null!=(i=t.next());){var h=a.get(o,i),p=a.get(s,i),f=a.get(l,i),d=a.get(u,i),g=a.get(c,i),y=Math.min(p,f),v=Math.max(p,f),m=M(y,h),x=M(v,h),b=M(d,h),_=M(g,h),w=[];I(w,x,0),I(w,m,1),w.push(A(_),A(x),A(b),A(m));var S=!!n.getItemModel(i).get(["itemStyle","borderColorDoji"]);n.setItemLayout(i,{sign:tR(a,i,p,f,l,S),initBaseline:p>f?x[1]:m[1],ends:w,brushRect:T(d,g,h)})}function M(t,n){var r=[];return r[0]=n,r[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(r)}function I(t,e,n){var i=e.slice(),o=e.slice();i[0]=Ly(i[0]+r/2,1,!1),o[0]=Ly(o[0]-r/2,1,!0),n?t.push(i,o):t.push(o,i)}function T(t,e,n){var i=M(t,n),o=M(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 A(t){return t[0]=Ly(t[0],1),t}}}}};function tR(t,e,n,r,i,o){return n>r?-1:n<r?1:o?0:e>0?t.get(i,e-1)<=r?1:-1:1}var eR=QN;function nR(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 rR=function(t){function e(e,n){var r=t.call(this)||this,i=new dI(e,n),o=new xo;return r.add(i),r.add(o),r.updateData(e,n),r}return m(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=hm(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)}nR(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)}nR(n,t)},e.prototype.highlight=function(){Cu(this)},e.prototype.downplay=function(){ku(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=pm(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=fm(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,Gu(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(xo),iR=rR,oR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(){this._symbolDraw=new mI(iR)},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=UI("").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=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=Xe(e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(nv),aR=oR,sR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){return s_(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}(Wd),lR=sR;var uR=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 m(e,t),e.prototype.createLine=function(t,e,n){return new AP(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),r=n.get("symbolSize"),i=n.get("symbol");at(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=hm(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"),l=e.get("constantSpeed"),u=xt(e.get("delay"),(function(e){return e/t.count()*o/3}));if(r.ignore=!0,this._updateAnimationPoints(r,i),l>0&&(o=this._getLineLength(r)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){r.stopAnimation();var c=void 0;c=st(u)?u(n):u,r.__t>0&&(c=-o*r.__t),this._animateSymbol(r,o,c,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 ie(t.__p1,t.__cp1)+ie(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=er,l=nr;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*ie(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*ie(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}(xo),cR=uR,hR=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createPolyline(e,n,r),i}return m(e,t),e.prototype._createPolyline=function(t,e,n){var r=t.getItemLayout(e),i=new Ug({shape:{points:r}});this.add(i),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel;tc(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,Gu(this,a,s,l)},e.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},e}(xo),pR=hR,fR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return m(e,t),e.prototype.createLine=function(t,e,n){return new pR(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+=ie(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}(cR),dR=fR,gR=function(){this.polyline=!1,this.curveness=0,this.segs=[]},yR=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return m(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 gR},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(Ys(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(qs(u,c,(u+p)/2-(c-f)*i,(c+f)/2-(p-u)*i,p,f,o,t,e))return a}else if(Ys(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 sn(n,r,i,o)}return t},e}(gl),vR=function(){function t(){this.group=new xo}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 yR({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=Yl(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}(),mR={seriesType:"lines",plan:Yd(),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),y=(f=t.getLineCoords(c,a),[]);if(n)for(var v=0;v<f;v++)y.push(e.dataToPoint(a[v]));else{y[0]=e.dataToPoint(a[0]),y[1]=e.dataToPoint(a[1]);var m=g.get(["lineStyle","curveness"]);+m&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*m,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*m])}o.setItemLayout(c,y)}}}}}},xR=mR,bR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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)&&DI(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=xR.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 vR:new DP(i?r?dR:pR:r?cR:AP),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}(nv),_R=bR,wR="undefined"===typeof Uint32Array?Array:Uint32Array,SR="undefined"===typeof Float64Array?Array:Float64Array;function MR(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Q(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),W([e,t[0],t[1]])})))}var IR=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 m(e,t),e.prototype.init=function(e){e.data=e.data||[],MR(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(MR(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=Lt(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Lt(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),ct(t[0])){for(var n=t.length,r=new wR(n),i=new SR(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=t[l++];r[a++]=o+e,r[a++]=u;for(var c=0;c<u;c++){var h=t[l++],p=t[l++];i[o++]=h,i[o++]=p}}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 $b(["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),bd("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}(Wd),TR=IR;function AR(t){return t instanceof Array||(t=[t,t]),t}var CR={seriesType:"lines",reset:function(t){var e=AR(t.get("symbol")),n=AR(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=AR(n.getShallow("symbol",!0)),i=AR(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 kR=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=T.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],y=d[1],v=r(d[2]);h.globalAlpha=v,h.drawImage(a,g-u,y-u)}if(!c.width||!c.height)return c;for(var m=h.getImageData(0,0,c.width,c.height),x=m.data,b=0,_=x.length,w=this.minOpacity,S=this.maxOpacity-w;b<_;){v=x[b+3]/256;var M=4*Math.floor(255*v);if(v>0){var I=o(v)?s:l;v>0&&(v=v*S+w),x[b++]=I[M],x[b++]=I[M+1],x[b++]=I[M+2],x[b++]=I[M+3]*v*256}else b+=4}return h.putImageData(m,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=T.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}(),OR=kR;function DR(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var PR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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()):DR(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&&(DR(i)?this.render(e,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,r,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Yy(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,r,i){var o,a,s,l,u=t.coordinateSystem,c=PI(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(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),x=hc(t),b=t.getModel("emphasis"),_=b.get("focus"),w=b.get("blurScope"),S=b.get("disabled"),M=c?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],I=n;I<r;I++){var T=void 0,A=d.getItemVisual(I,"style");if(c){var C=d.get(M[0],I),k=d.get(M[1],I);if(isNaN(d.get(M[2],I))||isNaN(C)||isNaN(k)||C<s[0]||C>s[1]||k<l[0]||k>l[1])continue;var O=u.dataToPoint([C,k]);T=new Ol({shape:{x:O[0]-o/2,y:O[1]-a/2,width:o,height:a},style:A})}else{if(isNaN(d.get(M[1],I)))continue;T=new Ol({z2:1,shape:u.dataToRect([d.get(M[0],I)]).contentShape,style:A})}if(d.hasItemOption){var D=d.getItemModel(I),P=D.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=D.getModel(["blur","itemStyle"]).getItemStyle(),v=D.getModel(["select","itemStyle"]).getItemStyle(),m=D.get(["itemStyle","borderRadius"]),_=P.get("focus"),w=P.get("blurScope"),S=P.get("disabled"),x=hc(D)}T.shape.r=m;var L=t.getRawValue(I),E="-";L&&null!=L[2]&&(E=L[2]+""),cc(T,x,{labelFetcher:t,labelDataIndex:I,defaultOpacity:A.opacity,defaultText:E}),T.ensureState("emphasis").style=g,T.ensureState("blur").style=y,T.ensureState("select").style=v,Gu(T,_,w,S),T.incremental=i,i&&(T.states.emphasis.hoverLayer=!0),f.add(T),d.setItemGraphicEl(I,T),this._progressiveEls&&this._progressiveEls.push(T)}},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 OR;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),p=Math.min(l.width+l.x,r.getWidth()),f=Math.min(l.height+l.y,r.getHeight()),d=p-c,g=f-h,y=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(y,(function(e,n,r){var i=t.dataToPoint([e,n]);return i[0]-=c,i[1]-=h,i.push(r),i})),m=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]}}(m,n.option.range):function(t,e,n){var r=t[1]-t[0],i=(e=Q(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]}}(m,n.getPieceList(),n.option.selected);s.update(v,d,g,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var b=new wl({style:{width:d,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e}(nv),LR=PR,ER=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.getInitialData=function(t,e){return s_(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Pp.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}(Wd),NR=ER;var RR=["itemStyle","borderWidth"],zR=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],jR=new yg,BR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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:zR[+s],categoryDim:zR[1-+s]};return i.diff(o).add((function(t){if(i.hasValue(t)){var e=YR(i,t),n=VR(i,t,e,u),o=KR(i,u,n);i.setItemGraphicEl(t,o),r.add(o),ez(o,u,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var a=YR(i,t),s=VR(i,t,a,u),l=JR(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,o=t.__pictorialBundle;tc(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?HR(t,e,n,!0):WR(t,e,n,!0);UR(t,n,!0),ZR(t,e,n,!0)}(n,u,s):n=KR(i,u,s,!0),i.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,r.add(n),ez(n,u,s)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&$R(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){$R(r,Yl(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(nv);function VR(t,e,n,r){var i=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,c=n.isAnimationEnabled(),h={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:u,rotation:l,animationModel:c?n:null,hoverScale:c&&n.get(["emp
2hasis","scale"]),z2:n.getShallow("z",!0)||0};!function(t,e,n,r,i){var o,a=r.valueDim,s=t.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(at(s)){var h=[FR(l,s[0])-u,FR(l,s[1])-u];h[1]<h[0]&&h.reverse(),o=h[c]}else o=null!=s?FR(l,s)-u:e?r.coordSysExtent[a.index][c]-u:n[a.wh];i.boundingLength=o,e&&(i.repeatCutLength=n[a.wh]);i.pxSign=o>0?1:-1}(n,o,i,r,h),function(t,e,n,r,i,o,a,s,l,u){var c,h=l.valueDim,p=l.categoryDim,f=Math.abs(n[p.wh]),d=t.getItemVisual(e,"symbolSize");c=at(d)?d.slice():null==d?["100%","100%"]:[d,d];c[p.index]=Po(c[p.index],f),c[h.index]=Po(c[h.index],r?f:Math.abs(o)),u.symbolSize=c;var g=u.symbolScale=[c[0]/s,c[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*a}(t,e,i,o,0,h.boundingLength,h.pxSign,u,r,h),function(t,e,n,r,i){var o=t.get(RR)||0;o&&(jR.attr({scaleX:e[0],scaleY:e[1],rotation:n}),jR.updateTransform(),o/=jR.getLineScale(),o*=e[r.valueDim.index]);i.valueLineWidth=o||0}(n,h.symbolScale,l,r,h);var p=h.symbolSize,f=fm(n.get("symbolOffset"),p);return function(t,e,n,r,i,o,a,s,l,u,c,h){var p=c.categoryDim,f=c.valueDim,d=h.pxSign,g=Math.max(e[f.index]+s,0),y=g;if(r){var v=Math.abs(l),m=xt(t.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var b=Po(m,e[f.index]),_=Math.max(g+2*b,0),w=x?0:2*b,S=Jo(r),M=S?r:nz((v+w)/_);_=g+2*(b=(v-M*g)/2/(x?M:Math.max(M-1,1))),w=x?0:2*b,S||"fixed"===r||(M=u?nz((Math.abs(u)+w)/_):0),y=M*_-w,h.repeatTimes=M,h.symbolMargin=b}var I=d*(y/2),T=h.pathPosition=[];T[p.index]=n[p.wh]/2,T[f.index]="start"===a?I:"end"===a?l-I:l/2,o&&(T[0]+=o[0],T[1]+=o[1]);var A=h.bundlePosition=[];A[p.index]=n[p.xy],A[f.index]=n[f.xy];var C=h.barRectShape=U({},n);C[f.wh]=d*Math.max(Math.abs(n[f.wh]),Math.abs(T[f.index]+I)),C[p.wh]=n[p.wh];var k=h.clipShape={};k[p.xy]=-n[p.xy],k[p.wh]=c.ecSize[p.wh],k[f.xy]=0,k[f.wh]=n[f.wh]}(n,p,i,o,0,f,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,r,h),h}function FR(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function GR(t){var e=t.symbolPatternSize,n=hm(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function HR(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(QR(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?tz(t,null,d(c),n,r):tz(t,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(t)})),c++}));c<u;c++){var p=GR(n);p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,i.add(p);var f=d(c);tz(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>
vendor: 10,510 bytes, line 2
20: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 WR(t,e,n,r){var i=t.__pictorialBundle,o=t.__pictorialMainPath;o?tz(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=GR(n),i.add(o),tz(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 UR(t,e,n){var r=U({},e.barRectShape),i=t.__pictorialBarRect;i?tz(i,null,{shape:r},e,n):((i=t.__pictorialBarRect=new Ol({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(i))}function ZR(t,e,n,r){if(n.symbolClip){var i=t.__pictorialClipPath,o=U({},n.clipShape),a=e.valueDim,s=n.animationModel,u=n.dataIndex;if(i)tc(i,{shape:o},s,u);else{o[a.wh]=0,i=new Ol({shape:o}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var c={};c[a.wh]=n.clipShape[a.wh],l[r?"updateProps":"initProps"](i,{shape:c},s,u)}}}function YR(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=XR,n.isAnimationEnabled=qR,n}function XR(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function qR(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function KR(t,e,n,r){var i=new xo,o=new xo;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?HR(i,e,n):WR(i,0,n),UR(i,n,r),ZR(i,e,n,r),i.__pictorialShapeStr=JR(t,n),i.__pictorialSymbolMeta=n,i}function $R(t,e,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];QR(r,(function(t){o.push(t)})),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),J(o,(function(t){rc(t,{scaleX:0,scaleY:0},n,e,(function(){r.parent&&r.parent.remove(r)}))})),t.setItemGraphicEl(e,null)}function JR(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function QR(t,e,n){J(t.__pictorialBundle.children(),(function(r){r!==t.__pictorialBarRect&&e.call(n,r)}))}function tz(t,e,n,r,i,o){e&&t.attr(e),r.symbolClip&&!i?n&&t.attr(n):n&&l[i?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,o)}function ez(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(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),p=o.get("scale");QR(t,(function(t){if(t instanceof wl){var e=t.style;t.useStyle(U({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,p&&(r.scaleX=1.1*t.scaleX,r.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var f=e.valueDim.posDesc[+(n.boundingLength>0)];cc(t.__pictorialBarRect,hc(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:cI(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),Gu(t,c,h,o.get("disabled"))}function nz(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var rz=BR,iz=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 m(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=zc(KI.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}(KI),oz=iz;var az=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return m(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"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+u[0];var h=new Tb(this._layersSeries||[],a,c,c),p=[];function f(e,n,s){var l=i._layers;if("remove"!==e){for(var u,c,h=[],f=[],d=a[n].indices,g=0;g<d.length;g++){var y=r.getItemLayout(d[g]),v=y.x,m=y.y0,x=y.y;h.push(v,m),f.push(v,m+x),u=r.getItemVisual(d[g],"style")}var b=r.getItemLayout(d[0]),_=t.getModel("label").get("margin"),w=t.getModel("emphasis");if("add"===e){var S=p[n]=new xo;c=new CI({shape:{points:h,stackedOnPoints:f,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 Ol({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return ec(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),p[n]=S,tc(c,{shape:{points:h,stackedOnPoints:f}},t),ac(c)}cc(c,hc(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=b.x-_,M.y=b.y0+b.y/2),c.useStyle(u),r.setItemGraphicEl(n,c),Zu(c,t),Gu(c,w.get("focus"),w.get("blurScope"),w.get("disabled"))}else o.remove(l[n])}h.add(it(f,this,"add")).update(it(f,this,"update")).remove(it(f,this,"remove")).execute(),this._layersSeries=a,this._layers=p},e.type="themeRiver",e}(nv);var sz=az,lz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new VT(it(this.getData,this),it(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},r=Ia(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",_a).models[0].get("type"),r=et(t.data,(function(t){return void 0!==t[2]})),i=this.fixData(r||[]),o=[],a=this.nameMap=Pt(),s=0,l=0;l<i.length;++l)o.push(i[l][2]),a.get(i[l][2])||(a.set(i[l][2],s),s++);var u=Qb(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:kb(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,c=new $b(u,this);return c.initData(i),c},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=Ia(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){at(t)||(t=t?[t]:[]);for(var r,i=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=o[l].indices.length,p=0;p<h;++p){var f=i.get(t[0],o[l].indices[p]),d=Math.abs(f-e);d<=u&&(r=f,u=d,c=o[l].indices[p])}a.push(c)}return{dataIndices:a,nestestValue:r}},e.prototype.formatTooltip=function(t,e,n){var r=this.getData();return bd("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}(Wd),uz=lz;function cz(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]=Po(o[0],i.height),o[1]=Po(o[1],i.height),hz(e,t,i.height-o[0]-o[1])):(o[0]=Po(o[0],i.width),o[1]=Po(o[1],i.width),hz(e,t,i.width-o[0]-o[1]));e.setLayout("layoutInfo",r)}))}function hz(t,e,n){if(t.count())for(var r,i=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=Q(o,(function(e){return Q(e.indices,(function(e){var n=i.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n}))})),u=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}}(l),c=u.y0,h=n/u.max,p=o.length,f=o[0].indices.length,d=0;d<f;++d){r=c[d]*h,t.setItemLayout(o[0].indices[d],{layerIndex:0,x:l[0][d][0],y0:r,y:l[0][d][1]*h});for(var g=1;g<p;++g)r+=l[g-1][d][1]*h,t.setItemLayout(o[g].indices[d],{layerIndex:g,x:l[g][d][0],y0:r,y:l[g][d][1]*h})}}var pz=function(t){function e(e,n,r,i){var o=t.call(this)||this;o.z2=2,o.textConfig={inside:!0},Yl(o).seriesIndex=n.seriesIndex;var a=new Zl({z2:4,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,r,i),o}return m(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;Yl(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),u=U({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var h=e.getVisual("decal");h&&(c.decal=Gm(h,i));var p=iT(a.getModel("itemStyle"),u,!0);U(u,p),J(nu,(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var r=iT(n,u);r&&(e.shape=r)})),t?(o.setShape(u),o.shape.r=l.r0,ec(o,{shape:{r:l.r}},n,e.dataIndex)):(tc(o,{shape:u},n),ac(o)),o.useStyle(c),this._updateLabel(n);var f=a.getShallow("cursor");f&&o.attr("cursor",f),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var d=s.get("focus");Gu(this,"ancestor"===d?e.getAncestorsIndices():"descendant"===d?e.getDescendantIndices():d,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),l=Math.sin(a),u=this,c=u.getTextContent(),h=this.node.dataIndex,p=r.get("minA
2ngle")/180*Math.PI,f=r.get("show")&&!(null!=p&&Math.abs(o)<p);function d(t,e){var n=t.get(e);return null==n?r.get(e):n}c.ignore=!f,J(ru,(function(r){var p="normal"===r?n.getModel("label"):n.getModel([r,"label"]),f="normal"===r,g=f?c:c.ensureState(r),y=t.getFormattedLabel(h,r);f&&(y=y||e.node.name),g.style=pc(p,{},null,"normal"!==r,!0),y&&(g.style.text=y);var v=p.get("show");null==v||f||(g.ignore=!v);var m,x=d(p,"position"),b=f?u:u.states[r],_=b.style.fill;b.textConfig={outsideFill:"inherit"===p.get("color")?_:null,inside:"outside"!==x};var w=d(p,"distance")||0,S=d(p,"align");"outside"===x?(m=i.r+w,S=a>Math.PI/2?"right":"left"):S&&"center"!==S?"left"===S?(m=i.r0+w,a>Math.PI/2&&(S="right")):"right"===S&&(m=i.r-w,a>Math.PI/2&&(S="left")):(m=o===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=d(p,"verticalAlign")||"middle",g.x=m*s+i.cx,g.y=m*l+i.cy;var M=d(p,"rotate"),I=0;"radial"===M?(I=$s(-a))>Math.PI/2&&I<1.5*Math.PI&&(I+=Math.PI):"tangential"===M?(I=Math.PI/2-a)>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI):ct(M)&&(I=M*Math.PI/180),g.rotation=$s(I)})),c.dirtyStyle()},e}(Ng),fz=pz,dz="sunburstRootToNode",gz="sunburstHighlight",yz="sunburstUnhighlight";var vz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var h=this._oldChildren||[];!function(r,i){if(0===r.length&&0===i.length)return;function s(t){return t.getId()}function c(s,c){!function(r,i){u||!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&&(l.remove(t.piece),t.piece=null)}(i);else if(r){var s=new fz(r,t,e,n);l.add(s),o.setItemGraphicEl(r.dataIndex,s)}}(null==s?null:r[s],null==c?null:i[c])}new Tb(i,r,s,s).add(c).update(c).remove(ot(c,null)).execute()}(c,h),function(r,o){o.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,t,e,n):(i.virtualPiece=new fz(r,t,e,n),l.add(i.virtualPiece)),o.piece.off("click"),i.virtualPiece.on("click",(function(t){i._rootToNode(o.parentNode)}))):i.virtualPiece&&(l.remove(i.virtualPiece),i.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=c},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)Lh(a,o.get("target",!0)||"_blank")}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:dz,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}(nv),mz=vz,xz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};bz(n);var r=this._levelModels=Q(t.levels||[],(function(t){return new Ec(t,this,e)}),this),i=kO.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=LO(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(){VO(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}}
vendor: 5,273 bytes, line 2
2,animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Wd);function bz(t){var e=0;J(t.children,(function(t){bz(t);var n=t.value;at(n)&&(n=n[0]),e+=n}));var n=t.value;at(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),at(t.value)?t.value[0]=n:t.value=n}var _z=xz,wz=Math.PI/180;function Sz(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),r=t.get("radius");at(r)||(r=[0,r]),at(e)||(e=[e,e]);var i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o),s=Po(e[0],i),l=Po(e[1],o),u=Po(r[0],a/2),c=Po(r[1],a/2),h=-t.get("startAngle")*wz,p=t.get("minAngle")*wz,f=t.getData().tree.root,d=t.getViewRoot(),g=d.depth,y=t.get("sort");null!=y&&Mz(d,y);var v=0;J(d.children,(function(t){!isNaN(t.getValue())&&v++}));var m=d.getValue(),x=Math.PI/(m||v)*2,b=d.depth>0,_=d.height-(b?-1:1),w=(c-u)/(_||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),I=S?1:-1;if(b){var T=u,A=u+w,C=2*Math.PI;f.setLayout({angle:C,startAngle:h,endAngle:h+C,clockwise:S,cx:s,cy:l,r0:T,r:A})}!function e(n,r){if(n){var i=r;if(n!==f){var o=n.getValue(),c=0===m&&M?x:o*x;c<p&&(c=p),i=r+I*c;var h=n.depth-g-(b?-1:1),d=u+w*h,y=u+w*(h+1),v=t.getLevelModel(n);if(v){var _=v.get("r0",!0),T=v.get("r",!0),A=v.get("radius",!0);null!=A&&(_=A[0],T=A[1]),null!=_&&(d=Po(_,a/2)),null!=T&&(y=Po(T,a/2))}n.setLayout({angle:c,startAngle:r,endAngle:i,clockwise:S,cx:s,cy:l,r0:d,r:y})}if(n.children&&n.children.length){var C=0;J(n.children,(function(t){C+=e(t,r+C)}))}return i-r}}(d,h)}))}function Mz(t,e){var n=t.children||[];t.children=function(t,e){if(st(e)){var n=Q(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)})),Q(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}))}(n,e),n.length&&J(t.children,(function(t){Mz(t,e)}))}function Iz(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&<(o)&&(o=Cr(o,(t.depth-1)/(r-1)*.5)),o}(i,t,r.root.height)),U(n.ensureUniqueItemVisual(i.dataIndex,"style"),o)}))}))}var Tz={color:"fill",borderColor:"stroke"},Az={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Cz=va(),kz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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 s_(null,this)},e.prototype.getDataParams=function(e,n,r){var i=t.prototype.getDataParams.call(this,e,n);return r&&(i.info=Cz(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}(Wd),Oz=kz;function Dz(t,e){return e=e||[0,0],Q(["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 Pz(t,e){return e=e||[0,0],Q([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 Lz(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 Ez(t,e){return e=e||[0,0],Q(["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 Nz(t,e,n,r){return t&&(t.legacy||!1!==t.legacy&&!n&&!r&&"tspan"!==e&&("text"===e||Rt(t,"text")))}function Rz(t,e,n){var r,i,o,a=t;if("text"===e)o=a;else{o={},Rt(a,"text")&&(o.text=a.text),Rt(a,"rich")&&(o.rich=a.rich),Rt(a,"textFill")&&(o.fill=a.textFill),Rt(a,"textStroke")&&(o.stroke=a.textStroke),Rt(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Rt(a,"fontSize")&&(o.fontSize=a.fontSize),Rt(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Rt(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},r={};var s=Rt(a,"textPosition");n?r.position=s?a.textPosition:"inside":s&&(r.position=a.textPosition),Rt(a,"textPosition")&&(r.position=a.textPosition),Rt(a,"textOffset")&&(r.offset=a.textOffset),Rt(a,"textRotation")&&(r.rotation=a.textRotation),Rt(a,"textDistance")&&(r.distance=a.textDistance)}return zz(o,t),J(o.rich,(function(t){zz(t,t)})),{textConfig:r,textContent:i}}function zz(t,e){e&&(e.font=e.textFont||e.font,Rt(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Rt(e,"textAlign")&&(t.align=e.textAlign),Rt(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Rt(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Rt(e,"textWidth")&&(t.width=e.textWidth),Rt(e,"textHeight")&&(t.height=e.textHeight),Rt(e,"textBackgroun
2dColor")&&(t.backgroundColor=e.textBackgroundColor),Rt(e,"textPadding")&&(t.padding=e.textPadding),Rt(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Rt(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Rt(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Rt(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Rt(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Rt(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Rt(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function jz(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";Bz(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,J(e.rich,(function(t){Bz(t,t)})),r}function Bz(t,e){e&&(Rt(e,"fill")&&(t.textFill=e.fill),Rt(e,"stroke")&&(t.textStroke=e.fill),Rt(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Rt(e,"font")&&(t.font=e.font),Rt(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Rt(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Rt(e,"fontSize")&&(t.fontSize=e.fontSize),Rt(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Rt(e,"align")&&(t.textAlign=e.align),Rt(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Rt(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Rt(e,"width")&&(t.textWidth=e.width),Rt(e,"height")&&(t.textHeight=e.height),Rt(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Rt(e,"padding")&&(t.textPadding=e.padding),Rt(e,"borderColor")&&(t.textBorderColor=e.borderColor),Rt(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Rt(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Rt(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Rt(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Rt(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Rt(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Rt(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Rt(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Rt(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Rt(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var Vz={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Fz=rt(Vz),Gz=(tt(Xi,(function(t,e){return t[e]=1,t}),{}),Xi.join(", "),["","style","shape","extra"]),Hz=va();function Wz(t,e,n,r,i){var o=t+"Animation",a=Ju(t,r,i)||{},s=Hz(e).userDuring;return a.duration>0&&(a.during=s?it($z,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),U(a,n[o]),a}function Uz(t,e,n,r){var i=(r=r||{}).dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=Hz(t),u=e.style;l.userDuring=e.during;var c={},h={};if(function(t,e,n){for(var r=0;r<Fz.length;r++){var i=Fz[r],o=Vz[i],a=e[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(r=0;r<Xi.length;r++){var s=Xi[r];null!=e[s]&&(n[s]=e[s])}}(0,e,h),Qz("shape",e,h),Qz("extra",e,h),!o&&s&&(function(t,e,n){for(var r=e.transition,i=Xz(r)?Xi:oa(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,c),Jz("shape",t,e,c),Jz("extra",t,e,c),function(t,e,n,r){if(!n)return;var i,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!Xz(a)){var l=oa(a);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var c=o[d=l[u]];i[d]=c}}else if(t.getAnimationStyleProps&&(Xz(s)||Xz(a)||X(s,"style")>=0)){var h=t.getAnimationStyleProps(),p=h?h.style:null;if(p){!i&&(i=r.style={});var f=rt(n);for(u=0;u<f.length;u++){var d;if(p[d=f[u]]){c=o[d];i[d]=c}}}}}}(t,e,u,c)),h.style=u,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,h,a),function(t,e){Rt(e,"silent")&&(t.silent=e.silent),Rt(e,"
2ignore")&&(t.ignore=e.ignore),t instanceof hs&&Rt(e,"invisible")&&(t.invisible=e.invisible);t instanceof gl&&Rt(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),s)if(o){var p={};J(Gz,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(p[t]=p[t]||{}),U(t?p[t]:p,n.enterFrom))}));var f=Wz("enter",t,e,n,i);f.duration>0&&t.animateFrom(p,f)}else!function(t,e,n,r,i){if(i){var o=Wz("update",t,e,r,n);o.duration>0&&t.animateFrom(i,o)}}(t,e,i||0,n,c);Zz(t,e),u?t.dirty():t.markRedraw()}function Zz(t,e){for(var n=Hz(t).leaveToProps,r=0;r<Gz.length;r++){var i=Gz[r],o=i?e[i]:e;o&&o.leaveTo&&(n||(n=Hz(t).leaveToProps={}),i&&(n[i]=n[i]||{}),U(i?n[i]:n,o.leaveTo))}}function Yz(t,e,n,r){if(t){var i=t.parent,o=Hz(t).leaveToProps;if(o){var a=Wz("update",t,e,n,0);a.done=function(){i.remove(t),r&&r()},t.animateTo(o,a)}else i.remove(t),r&&r()}}function Xz(t){return"all"===t}var qz={},Kz={setTransform:function(t,e){return qz.el[t]=e,this},getTransform:function(t){return qz.el[t]},setShape:function(t,e){var n=qz.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=qz.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=qz.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=qz.el.style;if(e)return e[t]},setExtra:function(t,e){return(qz.el.extra||(qz.el.extra={}))[t]=e,this},getExtra:function(t){var e=qz.el.extra;if(e)return e[t]}};function $z(){var t=this,e=t.el;if(e){var n=Hz(e).userDuring,r=t.userDuring;n===r?(qz.el=e,r(Kz)):t.el=t.userDuring=null}}function Jz(t,e,n,r){var i=n[t];if(i){var o,a=e[t];if(a){var s=n.transition,l=i.transition;if(l)if(!o&&(o=r[t]={}),Xz(l))U(o,a);else for(var u=oa(l),c=0;c<u.length;c++){var h=a[f=u[c]];o[f]=h}else if(Xz(s)||X(s,t)>=0){!o&&(o=r[t]={});var p=rt(a);for(c=0;c<p.length;c++){var f;h=a[f=p[c]];tj(i[f],h)&&(o[f]=h)}}}}}function Qz(t,e,n){var r=e[t];if(r)for(var i=n[t]={},o=rt(r),a=0;a<o.length;a++){var s=o[a];i[s]=li(r[s])}}function tj(t,e){return $(t)?t!==e:null!=t&&isFinite(t)}var ej=va(),nj=["percent","easing","shape","style","extra"];function rj(t){t.stopAnimation("keyframe"),t.attr(ej(t))}function ij(t,e,n){if(n.isAnimationEnabled()&&e)if(at(e))J(e,(function(e){ij(t,e,n)}));else{var r=e.keyframes,i=e.duration;if(n&&null==i){var o=Ju("enter",n,0);i=o&&o.duration}if(r&&i){var a=ej(t);J(Gz,(function(n){if(!n||t[n]){var o;r.sort((function(t,e){return t.percent-e.percent})),J(r,(function(r){var s=t.animators,l=n?r[n]:r;if(l){var u=rt(l);if(n||(u=et(u,(function(t){return X(nj,t)<0}))),u.length){o||((o=t.animate(n,e.loop,!0)).scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var h=n?a[n]:a;J(u,(function(e){h[e]=((n?t[n]:t)||{})[e]})),o.whenWithKeys(i*r.percent,l,u,r.easing)}}})),o&&o.delay(e.delay||0).duration(i).start(e.easing)}}))}}}var oj="emphasis",aj="normal",sj="blur",lj="select",uj=[aj,oj,sj,lj],cj={normal:["itemStyle"],emphasis:[oj,"itemStyle"],blur:[sj,"itemStyle"],select:[lj,"itemStyle"]},hj={normal:["label"],emphasis:[oj,"label"],blur:[sj,"label"],select:[lj,"label"]},pj=["x","y"],fj="e\0\0",dj={normal:{},emphasis:{},blur:{},select:{}},gj={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:it(Dz,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:it(Pz,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:it(Lz,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:it(Ez,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 yj(t){return t instanceof gl}function vj(t){return t instanceof hs}var mj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._data,o=t.getData(),a=this.group,s=Mj(t,o,e,n);i||a.removeAll(),o.diff(i).add((function(e){Tj(n,null,e,s(e,r),t,a,o)})).remove((function(e){var n=i.getItemGraphicEl(e);n&&Yz(n,Cz(n).option,t)})).update((function(e,l){var u=i.getItemGraphicEl(l);Tj(n,u,e,s(e,r),t,a,o)})).execute();var l=t.get("clip",!0)?DI(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=Mj(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=Tj(null,null,u,a(u,i),e,this.group,o);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){Yy(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}(nv),xj=mj;function bj(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=Rj(r);e=Ty(o,null,i,r.layout||"center"),Cz(e).customPathData=o}else if("image"===n)e=new wl({}),Cz(e).customImagePath=t.style.image;else if("text"===n)e=new Zl({});else if("group"===n)e=new xo;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=Iy(n);if(!a){0,zf("")}e=new a}return Cz(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function _j(t,e,n,r,i,o,a){rj(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),r&&null==r.transition&&(r.transition=pj);var l=r&&r.style;if(l){if("text"===e.type){var u=l;Rt(u,"textFill")&&(u.fill=u.textFill),Rt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=yj(e)?l.decal:null;t&&h&&(h.dirty=!0,c=Gm(h,t)),l.__decalPattern=c}vj(e)&&(l&&(c=l.__decalPattern)&&(l.decal=c));Uz(e,r,o,{dataIndex:n,isInit:a,clearStyle:!0}),ij(e,r.keyframeAnimation,o)}function wj(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),Iu(o)}}function Sj(t,e,n){var r=n===aj,i=r?e:Oj(e,n),o=i?i.z2:null;null!=o&&((r?t:t.ensureState(n)).z2=o||0)}function Mj(t,e,n,r){var i=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):gj[o.type](o));for(var s,l,u=Z({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,l=m(r,aj).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:lt(o)?o:"#000"},c=x(r,aj),h=pc(c,null,u,!1,!0);h.text=c.getShallow("show")?bt(t.getFormattedLabel(r,aj),cI(e,r)):null;var p=fc(c,u,!1);return _(n,l),l=jz(l,h,p),n&&b(l,n),l.legacy=!0,l},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=m(r,oj).getItemStyle(),o=x(r,oj),a=pc(o,null,null,!0,!0);a.text=o.getShallow("show")?_t(t.getFormattedLabel(r,oj),t.getFormattedLabel(r,aj),cI(e,r)):null;var l=fc(o,null,!0);return _(n,i),i=jz(i,a,l),n&&b(i,n),i.legacy=!0,i},visual:function(t,n){if(null==n&&(n=s),Rt(Tz,t)){var r=e.getItemVisual(n,"style");return r?r[Tz[t]]:null}if(Rt(Az,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===o.type){return function(t){var e=[],n=t.axis,r="axis0";if("category"===n.type){for(var i=n.getBandWidth(),o=0;o<t.count;
vendor: 14,654 bytes, line 2
2o++)e.push(Z({bandWidth:i,axisKey:r,stackId:k_+o},t));var a=E_(e),s=[];for(o=0;o<t.count;o++){var l=a[r][k_+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}(Z({axis:o.getBaseAxis()},t))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return mc(t,n)}},a.api||{}),c={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:Ij(t.getData())},h={},p={},f={},d={},g=0;g<uj.length;g++){var y=uj[g];f[y]=t.getModel(cj[y]),d[y]=t.getModel(hj[y])}function v(t){return t===s?l||(l=e.getItemModel(t)):e.getItemModel(t)}function m(t,n){return e.hasItemOption?t===s?h[n]||(h[n]=v(t).getModel(cj[n])):v(t).getModel(cj[n]):f[n]}function x(t,n){return e.hasItemOption?t===s?p[n]||(p[n]=v(t).getModel(hj[n])):v(t).getModel(hj[n]):d[n]}return function(t,n){return s=t,l=null,h={},p={},i&&i(Z({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},c),u)};function b(t,e){for(var n in e)Rt(e,n)&&(t[n]=e[n])}function _(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function Ij(t){var e={};return J(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 Tj(t,e,n,r,i,o,a){if(r){var s=Aj(t,e,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&Gu(s,r.focus,r.blurScope,r.emphasisDisabled),s}o.remove(e)}function Aj(t,e,n,r,i,o){var a=-1,s=e;e&&Cj(e,r,i)&&(a=X(o.childrenRef(),e),e=null);var l,u,c=!e,h=e;h?h.clearStates():(h=bj(r),s&&(l=s,(u=h).copyTransform(l),vj(u)&&vj(l)&&(u.setStyle(l.style),u.z=l.z,u.z2=l.z2,u.zlevel=l.zlevel,u.invisible=l.invisible,u.ignore=l.ignore,yj(u)&&yj(l)&&u.setShape(l.shape)))),!1===r.morph?h.disableMorphing=!0:h.disableMorphing&&(h.disableMorphing=!1),dj.normal.cfg=dj.normal.conOpt=dj.emphasis.cfg=dj.emphasis.conOpt=dj.blur.cfg=dj.blur.conOpt=dj.select.cfg=dj.select.conOpt=null,dj.isLegacy=!1,function(t,e,n,r,i,o){if(t.isGroup)return;kj(n,null,o),kj(n,oj,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=bj(a),t.setTextContent(c)),_j(null,c,e,a,null,r,i);for(var h=a&&a.style,p=0;p<uj.length;p++){var f=uj[p];if(f!==aj){var d=o[f].conOpt;wj(f,c,0,Dj(a,d,f),null)}}h?c.dirty():c.markRedraw()}}}(h,n,r,i,c,dj),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&&Cj(a,o,r)&&(a=null),a||(a=bj(o),t.setClipPath(a)),_j(null,a,e,o,null,r,i)}}(h,n,r,i,c),_j(t,h,n,r,dj,i,c),Rt(r,"info")&&(Cz(h).info=r.info);for(var p=0;p<uj.length;p++){var f=uj[p];if(f!==aj){var d=Oj(r,f);wj(f,h,0,Dj(r,d,f),dj)}}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<uj.length;s++)Sj(r,e,uj[s])}}(h,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 Tb(c.oldChildren,c.newChildren,Lj,Lj,c).add(Ej).update(Ej).remove(Nj).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),Aj(t,f,n,p,i,e)):f.ignore=!0}for(var d=e.childCount()-1;d>=h;d--){var g=e.childAt(d);Pj(e,g,i)}}(t,h,n,r,i),a>=0?o.replaceAt(h,a):o.add(h),h}function Cj(t,e,n){var r,i=Cz(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==i.customGraphicType||"path"===o&&((r=a)&&(Rt(r,"pathData")||Rt(r,"d")))&&Rj(a)!==i.customPathData||"image"===o&&Rt(s,"image")&&s.image!==i.customImagePath}function kj(t,e,n){var r=e?Oj(t,e):t,i=e?Dj(t,r,oj):t.style,o=t.type,a=r?r.textConfig:null,s=t.textContent,l=s?e?Oj(s,e):s:null;if(i&&(n.isLegacy||Nz(i,o,!!a,!!l))){n.isLegacy=!0;var u=Rz(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 Oj(t,e){return e?t?t[e]:null:t}function Dj(t,e,n){var r=e&&e.style;return null==r&&n===oj&&t&&(r=t.styleEmphasis),r}function Pj(t,e,n){e&&Yz(e,Cz(t).option,n)}function Lj(t,e){var n=t&&t.name;return null!=n?n:fj+e}function Ej(t,e){var n=this.context,r=null!=t?n.newChildren[t]:null,i=null!=e?n.oldChildren[e]:null;Aj(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function Nj(t){var e=this.context,n=e.oldChildren[t];n&&Yz(n,Cz(n).option,e.seriesModel)}function Rj(t){return t&&(t.pathData||t.d)}var zj=va(),jj=G,Bj=it,Vj=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 l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=ot(Fj,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new xo,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);Uj(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=NA(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,r){var i=e.pointer;if(i){var o=zj(t).pointerEl=new l[i.type](jj(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=zj(t).labelEl=new Zl(jj(e.label));t.add(i),Hj(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=zj(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=zj(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),Hj(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=Fy(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Ne(t.event)},onmousedown:Bj(this._onHandleDragMove,this,0,0),drift:Bj(this._onHandleDragMove,this),ondragend:Bj(this._onHandleDragEnd,this)}),r.add(i)),Uj(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");at(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,sv(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){Fj(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Wj(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(Wj(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(Wj(r)),zj(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),lv(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 Fj(t,e,n,r){Gj(zj(n).lastProp,r)||(zj(n).lastProp=r,e?tc(n,r,t):(n.stopAnimation(),n.attr(r)))}function Gj(t,e){if(ht(t)&&ht(e)){var n=!0;return J(e,(function(e,r){n=n&&Gj(t[r],e)})),!!n}return t===e}function Hj(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Wj(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Uj(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 Zj=Vj;function Yj(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 Xj(t,e,n,r,i){var o=qj(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=Mh(a.get("padding")||0),l=a.getFont(),u=to(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:pc(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function qj(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:dw(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};J(r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)})),lt(a)?o=a.replace("{value}",o):st(a)&&(o=a(s))}return o}function Kj(t,e,n){var r=[1,0,0,1,0,0];return Ue(r,r,n.rotation),We(r,r,n.position),Ny([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function $j(t,e,n,r,i,o){var a=PA.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),Xj(e,r,i,o,{position:Kj(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function Jj(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function Qj(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function tB(t,e,n,r,i,o){return{cx:t,cy:e,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}var eB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=nB(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=Yj(r),h=rB[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}$j(e,t,gA(a.model,n),n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=gA(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=Kj(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=nB(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}(Zj);function nB(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var rB={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:Jj([e,n[0]],[e,n[1]],iB(t))}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:Qj([e-r/2,n[0]],[r,i],iB(t))}}};function iB(t){return"x"===t.dim?0:1}var oB=eB,aB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!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}(Yh),sB=aB,lB=va(),uB=J;function cB(t,e,n){if(!_.node){var r=e.getZr();lB(r).records||(lB(r).records={}),function(t,e){if(lB(t).initialized)return;function n(n,r){t.on(n,(function(n){var i=function(t){var e={showTip:[],hideTip:[]},n=function n(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}(e);uB(lB(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)}))}lB(t).initialized=!0,n("click",ot(pB,"click")),n("mousemove",ot(pB,"mousemove")),n("globalout",hB)}(r,e),(lB(r).records[t]||(lB(r).records[t]={})).handler=n}}function hB(t,e,n){t.handler("leave",null,n)}function pB(t,e,n,r){e.handler(t,n,r)}function fB(t,e){if(!_.node){var n=e.getZr();(lB(n).records||{})[t]&&(lB(n).records[t]=null)}}var dB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";cB("axisPointer",n,(function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>
vendor: 4,207 bytes, line 2
2=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){fB("axisPointer",e)},e.prototype.dispose=function(t,e){fB("axisPointer",e)},e.type="axisPointer",e}(Zd),gB=dB;function yB(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=ya(o,t);if(null==a||a<0||at(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,p="x"===c||"radius"===c?1:0,f=o.mapDimension(h),d=[];d[p]=o.get(f,a),d[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(d)||[]}else r=l.dataToPoint(o.getValues(Q(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var vB=va();function mB(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||it(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){SB(i)&&(i=yB({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=SB(i),u=o.axesInfo,c=s.axesInfo,h="leave"===r||SB(i),p={},f={},d={list:[],map:{}},g={showPointer:ot(bB,f),showTooltip:ot(_B,d)};J(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);J(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}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&xB(t,a,g,!1,p)}}))}));var y={};return J(c,(function(t,e){var n=t.linkGroup;n&&!f[e]&&J(n.axesInfo,(function(e,r){var i=f[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,wB(e),wB(t)))),y[t.key]=o}}))})),J(y,(function(t,e){xB(c[e],t,g,!0,p)})),function(t,e,n){var r=n.axesInfo=[];J(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})}))}(f,c,p),function(t,e,n,r){if(SB(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})}(d,i,t,a),function(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=vB(r)[i]||{},a=vB(r)[i]={};J(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&J(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];J(o,(function(t,e){!a[e]&&l.push(t)})),J(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),p}}function xB(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 J(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(h,t,n);c=p.dataIndices,u=p.nestestValue}else{if(!(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var f=t-u,d=Math.abs(f);d<=a&&((d<a||f>=0&&s<0)&&(a=d,s=f,i=u,o.length=0),J(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&U(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function bB(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function _B(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;
vendor: 12,443 bytes, line 2
2if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=zA(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 wB(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 SB(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function MB(t){VA.registerAxisPointerClass("CartesianAxisPointer",oB),t.registerComponentModel(sB),t.registerComponentView(gB),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!at(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=LA(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},mB)}var IB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(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=Yj(r),h=TB[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];Ue(p,p,s),We(p,p,[r.cx,r.cy]),l=Ny([a,-i],p);var f=e.getModel("axisLabel").get("rotate")||0,d=PA.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 y=r.cx,v=r.cy;u=Math.abs(l[0]-y)/g<.3?"center":l[0]>y?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(e,n,0,a,r.get(["label","margin"]));Xj(t,n,r,i,p)},e}(Zj);var TB={line:function(t,e,n,r){return"angle"===t.dim?{type:"Line",shape:Jj(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:tB(e.cx,e.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:tB(e.cx,e.cy,n-i/2,n+i/2,0,2*Math.PI)}}},AB=IB,CB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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}(Yh),kB=CB,OB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",_a).models[0]},e.type="polarAxis",e}(Yh);K(OB,xw);var DB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="angleAxis",e}(OB),PB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="radiusAxis",e}(OB),LB=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return m(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(Jw);LB.prototype.dataToRadius=Jw.prototype.dataToCoord,LB.prototype.radiusToData=Jw.prototype.coordToData;var EB=LB,NB=va(),RB=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return m(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,e=t.getLabelModel(),n=t.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var o=r[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=to(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),h=NB(t.model),p=h.lastAutoInterval,f=h.lastTickCount;return null!=p&&null!=f&&Math.abs(p-c)<=1&&Math.abs(f-i)<=1&&p>c?c=p:(h.lastTickCount=i,h.lastAutoInterval=c),c},e}(Jw);RB.prototype.dataToAngle=Jw.prototype.dataToCoord,RB.prototype.angleToData=Jw.prototype.coordToData;var zB=RB,jB=["radius","angle"],BB=function(){function t(t){this.dimensions=jB,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new EB,this._angleAxis=new zB,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 VB(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return VB(e)===this?this.pointToData(n):null},t}();function VB(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var FB=BB;function GB(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();J(mw(e,"radius"),(function(t){i.scale.unionExtentFromData(e,t)})),J(mw(e,"angle"),(function(t){r.scale.unionExtentFromData(e,t)}))}})),hw(r.scale,r.model),hw(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 HB(t,e){if(t.type=e.get("type"),t.scale=pw(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 WB={dimensions:jB,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,r){var i=new FB(r+"");i.update=GB;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");HB(o,s),HB(a,l),function(t,e,n){var r=e.get("center"),i=n.getWidth(),o=n.getHeight();t.cx=Po(r[0],i),t.cy=Po(r[1],o);var a=t.getRadiusAxis(),s=Math.min(i,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:at(l)||(l=[0,l]);var u=[Po(l[0],s),Po(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[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",_a).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},UB=WB,ZB=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function YB(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 XB(t){return t.getRadiusAxis().inverse?0:1}function qB(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 KB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return m(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=Q(n.getViewLabels(),(function(t){t=G(t);var e=n.scale,r="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(r),t}));qB(s),qB(o),J(ZB,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||$B[e](this.group,t,r,o,a,i,s)}),this)}},e.type="angleAxis",e}(VA),$B={axisLine:function(t,e,n,r,i,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=XB(n),u=l?0:1;(a=0===o[u]?new yg({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new jg({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"),l=o[XB(n)],u=Q(r,(function(t){return new qg({shape:YB(n,[l,l+s],t.coord)})}));t.add(ky(u,{style:Z(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"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[XB(n)],c=[],h=0;h<i.length;h++)for(var p=0;p<i[h].length;p++)c.push(new qg({shape:YB(n,[u,u+l],i[h][p].coord)}));t.add(ky(c,{style:Z(s.getModel("lineStyle").getLineStyle(),Z(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,r,i,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");J(a,(function(r,i){var a=l,h=r.tickValue,p=o[XB(n)],f=n.coordToPoint([p+u,r.coord]),d=n.cx,g=n.cy,y=Math.abs(f[0]-d)/p<.3?"center":f[0]>d?"left":"right",v=Math.abs(f[1]-g)/p<.3?"middle":f[1]>g?"top":"bottom";if(s&&s[h]){var m=s[h];ht(m)&&m.textStyle&&(a=new Ec(m.textStyle,l,l.ecModel))}var x=new Zl({silent:PA.isLabelSilent(e),style:pc(a,{x:f[0],y:f[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:y,verticalAlign:v})});if(t.add(x),c){var b=PA.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=r.rawLabel,Yl(x).eventData=b}}),this)},splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<r.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new qg({shape:YB(n,o,r[c].coord)}))}for(c=0;c<u.length;c++)t.add(ky(u[c],{style:Z({stroke:s[c%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 qg({shape:YB(n,o,i[l][u].coord)}));t.add(ky(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"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=Math.PI/180,h=-r[0].coord*c,p=Math.min(o[0],o[1]),f=Math.max(o[0],o[1]),d=e.get("
2clockwise"),g=1,y=r.length;g<=y;g++){var v=g===y?r[0].coord:r[g].coord,m=l++%s.length;u[m]=u[m]||[],u[m].push(new Ng({shape:{cx:n.cx,cy:n.cy,r0:p,r:f,startAngle:h,endAngle:-v*c,clockwise:d},silent:!0})),h=-v*c}for(g=0;g<u.length;g++)t.add(ky(u[g],{style:Z({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}},JB=KB,QB=["axisLine","axisTickLabel","axisName"],tV=["splitLine","splitArea","minorSplitLine"],eV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return m(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,r=this._axisGroup=new xo;this.group.add(r);var i=t.axis,o=i.polar,a=o.getAngleAxis(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=a.getExtent()[0],c=i.getExtent(),h=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,u),p=new PA(t,h);J(QB,p.add,p),r.add(p.getGroup()),jy(n,r,t),J(tV,(function(e){t.get([e,"show"])&&!i.scale.isBlank()&&nV[e](this.group,t,o,u,c,s,l)}),this)}},e.type="radiusAxis",e}(VA),nV={splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<o.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new yg({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[c].coord,0)}}))}for(c=0;c<u.length;c++)t.add(ky(u[c],{style:Z({stroke:s[c%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"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new yg({shape:{cx:n.cx,cy:n.cy,r:a[u][c].coord}}));t.add(ky(l,{style:Z({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"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=o[0].coord,h=1;h<o.length;h++){var p=l++%s.length;u[p]=u[p]||[],u[p].push(new Ng({shape:{cx:n.cx,cy:n.cy,r0:c,r:o[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=o[h].coord}for(h=0;h<u.length;h++)t.add(ky(u[h],{style:Z({fill:s[h%s.length]},a.getAreaStyle()),silent:!0}))}}};var rV=eV;function iV(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function oV(t,e){return e.dim+t.model.componentIndex}var aV=function(t,e,n){var r={},i=function(t){var e={};J(t,(function(t,n){var r=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=oV(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=iV(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var p=Po(t.get("barWidth"),l),f=Po(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 J(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=Po(t.categoryGap,i),a=Po(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),J(r,(function(t,e){var n=t.maxWidth;n&&n<u&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,h=0;J(r,(function(t,e){t.width||(t.width=u),c=t,h+=t.width*(1+a)})),c&&(h-=c.width*a);var p=-h/2;J(r,(function(t,r){n[e][r]=n[e][r]||{offset:p,width:t.width},p+=t.width*(1+a)}))})),n}(et(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=oV(n,o),s=iV(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 y=e.mapDimension(h.dim),v=e.mapDimension(o.dim),m=o_(e,y),x="radius"!==o.dim||!t.get("roundCap",!0),b=h.dataToCoord(0),_=0,w=e.count();_<w;_++){var S=e.get(y,_),M=e.get(v,_),I=S>=0?"p":"n",T=b;m&&(r[s][M]||(r[s][M]={p:b,n:b}),T=r[s][M][I]);var A=void 0,C=void 0,k=void 0,O=void 0;if("radius"===h.dim){var D=h.dataToCoord(S)-b,P=o.dataToCoord(M);Math.abs(D)<d&&(D=(D<0?-1:1)*d),A=T,C=T+D,O=(k=P-u)-c,m&&(r[s][M][I]=C)}else{var L=h.dataToCoord(S,x)-b,E=o.dataToCoord(M);Math.abs(L)<g&&(L=(L<0?-1:1)*g),C=(A=E+u)+c,k=T,O=T+L,m&&(r[s][M][I]=O)}e.setItemLayout(_,{cx:p,cy:f,r0:A,r:C,startAngle:-k*Math.PI/180,endAngle:-O*Math.PI/180,clockwise:k>=O})}}}))},sV={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},lV={splitNumber:5},uV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="polar",e}(Zd);function cV(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,i={},o=r.position,a=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]
vendor: 17,951 bytes, line 2
2];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),xt(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var c=e.rotate;return null==c&&(c=t.get(["axisLabel","rotate"])),i.labelRotation="top"===o?-c:c,i.z2=1,i}var hV=["axisLine","axisTickLabel","axisName"],pV=["splitArea","splitLine"],fV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return m(e,t),e.prototype.render=function(e,n,r,i){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new xo;var s=cV(e),l=new PA(e,s);J(hV,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),J(pV,(function(t){e.get([t,"show"])&&dV[t](this,this.group,this._axisGroup,e)}),this),jy(a,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)},e.prototype.remove=function(){HA(this)},e.type="singleAxis",e}(VA),dV={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 l=a.get("width"),u=r.coordinateSystem.getRect(),c=i.isHorizontal(),h=[],p=0,f=i.getTicksCoords({tickModel:o}),d=[],g=[],y=0;y<f.length;++y){var v=i.toGlobalCoord(f[y].coord);c?(d[0]=v,d[1]=u.y,g[0]=v,g[1]=u.y+u.height):(d[0]=u.x,d[1]=v,g[0]=u.x+u.width,g[1]=v);var m=new qg({shape:{x1:d[0],y1:d[1],x2:g[0],y2:g[1]},silent:!0});Dy(m.shape,l);var x=p++%s.length;h[x]=h[x]||[],h[x].push(m)}var b=a.getLineStyle(["color"]);for(y=0;y<h.length;++y)e.add(ky(h[y],{style:Z({stroke:s[y%s.length]},b),silent:!0}))}},splitArea:function(t,e,n,r){GA(t,n,r,r)}},gV=fV,yV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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}(Yh);K(yV,xw.prototype);var vV=yV,mV=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 m(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}(Jw),xV=mV,bV=["single"],_V=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=bV,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 xV(r,pw(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();J(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),hw(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=Bh({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 wV(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return wV(e)===this?this.pointToData(n):null},t}();function wV(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var SV=_V;var MV={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(r,i){var o=new SV(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",_a).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n},dimensions:bV},IV=["x","y"],TV=["width","height"],AV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.coordinateSystem,s=OV(a,1-kV(o)),l=a.dataToPoint(e)[0],u=r.get("type");if(u&&"none"!==u){var c=Yj(r),h=CV[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}$j(e,t,cV(n),n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=cV(e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=Kj(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=kV(i),s=OV(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=OV(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}(Zj),CV={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:Jj([e,n[0]],[e,n[1]],kV(t))}},shadow:function(t,e,n){var r=t.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:Qj([e-r/2,n[0]],[r,i],kV(t))}}};function kV(t){return t.isHorizontal()?0:1}function OV(t,e){var n=t.getRect();return[n[IV[e]],n[IV[e]]+n[TV[e]]]}var DV=AV,PV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="single",e}(Zd);var LV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(e,n,r){var i=Hh(e);t.prototype.init.apply(this,arguments),EV(e,i)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),EV(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}(Yh);function EV(t,e){var n,r=t.cellSize;1===(n=at(r)?r:t.cellSize=[r,r]).length&&(n[1]=n[0]);var i=Q([0,1],(function(t){return function(t,e){return null!=t[Rh[e][0]]||null!=t[Rh[e][1]]&&null!=t[Rh[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));Gh(t,e,{type:"box",ignoreSize:i})}var NV=LV,RV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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 Ol({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 Ug({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 lt(t)&&t?(n=t,J(e,(function(t,e){n=n.replace("{"+e+"}",r?Te(t):t)})),n):st(t)?t(e):e.nameMap;var n,r},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),y=new Zl({z2:30,style:pc(i,{text:g})});y.attr(this._yearTextPositionControl(y,h[a],n,a,o)),r.add(y)}},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"),l=i.get("align"),u=[this._tlpoints,this._blpoints];o&&!lt(o)||(o&&(e=Uc(o)||e),o=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;a="start"===s?-a:a;for(var p="center"===l,f=0;f<u[c].length-1;f++){var d=u[c][f].slice(),g=this._firstDayOfMonth[f];if(p){var y=this._firstDayPoints[f];d[h]=(y[h]+u[0][f+1][h])/2}var v=i.get("formatter"),m=o[+g.m-1],x={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:m},b=this._formatterLabel(v,x),_=new Zl({z2:30,style:U(pc(i,{text:b}),this._monthTextPositionControl(d,p,n,s,a))});r.add(_)}}},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"),l=o.get("nameMap"),u=o.get("margin"),c=a.getFirstDayOfWeek();if(!l||lt(l))l&&(e=Uc(l)||e),l=e.get(["time","dayOfWeekShort"])||Q(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}));var h=a.getNextNDay(n.end.time,7-n.lweek).time,p=[a.getCellWidth(),a.getCellHeight()];u=Po(u,Math.min(p[1],p[0])),"start"===s&&(h=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var f=0;f<7;f++){var d,g=a.getNextNDay(h,f),y=a.dataToRect([g.time],!1).center;d=Math.abs((f+c)%7);var v=new Zl({z2:30,style:U(pc(o,{text:l[d]}),this._weekTextPositionControl(y,r,s,u,p))});i.add(v)}}},e.type="calendar",e}(Zd),zV=RV,jV=864e5,BV=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=Uo(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];J([0,1],(function(t){u(i,t)&&(o[r[t]]=i[t]*a[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=Bh(o,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}J([0,1],(function(t){u(i,t)||(i[t]=l[r[t]]/a[t])})),this._sw=i[0],this._sh=i[1]},t.prototype.dataToPoint=function(t,e){at(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+jV))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=VV(e);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=VV(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(at(e)&&1===e.length&&(e=e[0]),at(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/jV)-Math.floor(n[0].time/jV)+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("
2calendarIndex")||0])})),r},t.dimensions=["time","value"],t}();function VV(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}var FV=BV;function GV(t,e){var n;return J(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var HV=["transition","enterFrom","leaveTo"],WV=HV.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function UV(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var r=n?HV:WV,i=0;i<r.length;i++){var o=r[i];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}var ZV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return m(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=ca(i,o,"normalMerge"),s=this._elOptionsToUpdate=[];J(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=U({},n),i=t[e],o=n.$action||"merge";"merge"===o?i?(H(i,r,!0),Gh(i,r,{ignoreSize:!0}),Wh(n,i),UV(n,i),UV(n,i,"shape"),UV(n,i,"style"),UV(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=[GV(e,["left","right"]),GV(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=et(i,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){J(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}(Yh),YV={path:null,compoundPath:null,group:xo,image:wl,text:Zl},XV=va(),qV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(){this._elMap=Pt()},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");J(e,(function(e){var a=fa(e.id,null),s=null!=a?n.get(a):null,l=fa(e.parentId,null),u=null!=l?n.get(l):r,c=e.type,h=e.style;"text"===c&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var p=e.textContent,f=e.textConfig;if(h&&Nz(h,c,!!f,!!p)){var d=Rz(h,c,!0);!f&&d.textConfig&&(f=e.textConfig=d.textConfig),!p&&d.textContent&&(p=d.textContent)}var g=function(t){return t=U({},t),J(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Nh),(function(e){delete t[e]})),t}(e);var y=e.$action||"merge",v="merge"===y,m="replace"===y;if(v){var x=s;(T=!s)?x=$V(a,u,e.type,n):(x&&(XV(x).isNew=!1),rj(x)),x&&(Uz(x,g,t,{isInit:T}),QV(x,e,i,o))}else if(m){JV(s,e,n,t);var b=$V(a,u,e.type,n);b&&(Uz(b,g,t,{isInit:!0}),QV(b,e,i,o))}else"remove"===y&&(Zz(s,e),JV(s,e,n,t));var _=n.get(a);if(_&&p)if(v){var w=_.getTextContent();w?w.attr(p):_.setTextContent(new Zl(p))}else m&&_.setTextContent(new Zl(p));if(_){var S=e.clipPath;if(S){var M=S.type,I=void 0,T=!1;if(v){var A=_.getClipPath();I=(T=!A||XV(A).type!==M)?KV(M):A}else m&&(T=!0,I=KV(M));_.setClipPath(I),Uz(I,S,t,{isInit:T}),ij(I,S.keyframeAnimation,t)}var C=XV(_);_.setTextConfig(f),C.option=e,function(t,e,n){var r=Yl(t).eventData;t.silent||t.ignore||r||(r=Yl(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name});r&&(r.info=n.info)}(_,t,e),Uy({el:_,componentModel:t,itemName:_.name,itemTooltipOption:e.tooltip}),ij(_,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"],l=0;l<n.length;l++){if((d=null!=(f=fa((p=n[l]).id,null))?i.get(f):null)&&d.isGroup){var u=(g=d.parent)===r,c=XV(d),h=XV(g);c.width=Po(c.option.width,u?o:h.width)||0,c.height=Po(c.option.height,u?a:h.height)||0}}for(l=n.length-1;l>=0;l--){var p,f,d;if(d=null!=(f=fa((p=n[l]).id,null))?i.get(f):null){var g=d.parent,y=(h=XV(g),{}),v=Vh(d,p,g===r?{width:o,height:a}:{width:h.width,height:h.height},null,{hv:p.hv,boundingMode:p.bounding},y);if(!XV(d).isNew&&v){for(var m=p.transition,x={},b=0;b<s.length;b++){var _=s[b],w=y[_];m&&(Xz(m)||X(m,_)>=0)?x[_]=w:d[_]=w}tc(d,x,t,0)}else d.attr(y)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){JV(n,XV(n).option,e,t._lastGraphicModel)})),this._elMap=Pt()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Zd);function KV(t){var e=new(Rt(YV,t)?YV[t]:Iy(t))({});return XV(e).type=t,e}function $V(t,e,n,r){var i=KV(n);return e.add(i),r.set(t,i),XV(i).id=t,XV(i).isNew=!0,i}function JV(t,e,n,r){t&&t.parent&&("group"===t.type&&t.traverse((function(t){JV(t,e,n,r)})),Yz(t,e,r),n.removeKey(XV(t).id))}function QV(t,e,n,r){t.isGroup||J([["cursor",hs.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];Rt(e,r)?t[r]=bt(e[r],n[1]):null==t[r]&&(t[r]=n[1])})),J(rt(e),(function(n){if(0===n.indexOf("on")){var r=e[n];t[n]=st(r)?r:null}})),Rt(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&
vendor: 14,455 bytes, line 2
2(t.id=e.id)}var tF=["x","y","radius","angle","single"],eF=["cartesian2d","polar","singleAxis"];function nF(t){return t+"Axis"}function rF(t,e){var n,r=Pt(),i=[],o=Pt();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 iF(t){var e=t.ecModel,n={infoList:[],infoMap:Pt()};return t.eachTargetAxis((function(t,r){var i=e.getComponent(nF(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 oF=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}(),aF=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 m(e,t),e.prototype.init=function(t,e,n){var r=sF(t);this.settledOption=r,this.mergeDefaultAndTheme(t,n),this._doInit(r)},e.prototype.mergeOption=function(t){var e=sF(t);H(this.option,t,!0),H(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;J([["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=Pt();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 J(tF,(function(n){var r=this.getReferringComponents(nF(n),wa);if(r.specified){e=!0;var i=new oF;J(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 oF;if(o.add(i.componentIndex),t.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",_a).models[0];a&&J(e,(function(t){i.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",_a).models[0]&&o.add(t.componentIndex)}))}}}r&&J(tF,(function(e){if(r){var i=n.findComponents({mainType:nF(e),filter:function(t){return"category"===t.get("type",!0)}});if(i[0]){var o=new oF;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");J([["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(nF(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,r){J(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(nF(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;J([["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;J(["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}(Yh);function sF(t){var e={};return J(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var lF=aF,uF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="dataZoom.select",e}(lF),cF=uF,hF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n,r){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(Zd),pF=hF,fF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="dataZoom.select",e}(pF),dF=fF,gF=J,yF=Eo,vF=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 X(eF,e)>=0}(e)){var n=nF(this._dimName),r=e.getReferringComponents(n,_a).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 G(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=[];gF(["start","end"],(function(l,u){var c=t[l],h=t[l+"Value"];"percent"===i[u]?(null==c&&(c=o[u]),h=r.parse(Do(c,o,n))):(e=!0,c=Do(h=null==h?n[u]:r.parse(h),n,o)),s[u]=null==h||isNaN(h)?n[u]:h,a[u]=null==c||isNaN(c)?o[u]:c})),yF(s),yF(a);var l=this._minMaxSpan;function u(t,e,n,i,o){var a=o?"Span":"ValueSpan";EL(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=Do(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];gF(n,(function(t){!function(t,e,n){e&&J(mw(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=lw(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&&gF(r,(function(t){var e=t.getData(),r=e.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var a=e.getStore(),s=Q(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 gF(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)}}));gF(r,(function(t){e.setApproximateExtent(o,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;gF(["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=Do(n[0]+o,n,[0,100],!0):null!=i&&(o=Do(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=zo(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}();var mF=vF,xF={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=t.getComponent(nF(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 mF(e,r,o,t),n.push(i.__dzAxisProxy))}));var r=Pt();return J(n,(function(t){J(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 bF=!1;function _F(t){bF||(bF=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,xF),function(t){t.registerAction("dataZoom",(function(t,e){J(rF(e,t),(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function wF(t){t.registerComponentModel(cF),t.registerComponentView(dF),_F(t)}var SF=function(){},MF={};function IF(t,e){MF[t]=e}function TF(t){return MF[t]}var AF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;J(this.option.feature,(function(t,n){var r=TF(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(e)),H(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}(Yh),CF=AF;function kF(t,e){var n=Mh(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new Ol({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 OF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(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")||{},l=this._features||(this._features={}),u=[];J(s,(function(t,e){u.push(e)})),new Tb(this._featureNames||[],u).add(c).update(c).remove(ot(c,null)).execute(),this._featureNames=u,function(t,e,n){var r=e.getBoxLayoutParams(),i=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Bh(r,o,i);jh(e.get("orient"),t,e.get("itemGap"),a.width,a.height),Vh(t,r,o,i)}(i,t,n),i.add(kF(i.getBoundingRect(),t)),a||i.eachChild((function(t){var e=t.__title,r=t.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!st(l)&&e){var u=l.style||(l.style={}),c=to(e,Zl.makeFont(u)),h=t.x+i.x,p=!1;t.y+i.y+o+c.height>n.getHeight()&&(a.position="top",p=!0);var f=p?-5-c.height:o+10;h+c.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):h-c.width/2<0&&(a.position=[0,f],u.align="left")}}))}function c(c,h){var p,f=u[c],d=u[h],g=s[f],y=new Ec(g,t,t.ecModel);if(r&&null!=r.newTitle&&r.featureName===f&&(g.title=r.newTitle),f&&!d){if(function(t){return 0===t.indexOf("my")}(f))p={onclick:y.option.onclick,featureName:f};else{var v=TF(f);if(!v)return;p=new v}l[f]=p}else if(!(p=l[d]))return;p.uid=Rc("toolbox-feature"),p.model=y,p.ecModel=e,p.api=n;var m=p instanceof SF;f||!d?!y.get("show")||m&&p.unusable?m&&p.remove&&p.remove(e,n):(!function(r,s,l){var u,c,h=r.getModel("iconStyle"),p=r.getModel(["emphasis","iconStyle"]),f=s instanceof SF&&s.getIcons?s.getIcons():r.get("icon"),d=r.get("title")||{};lt(f)?(u={})[l]=f:u=f;lt(d)?(c={})[l]=d:c=d;var g=r.iconPaths={};J(u,(function(l,u){var f=Fy(l,{},{x:-o/2,y:-o/2,width:o,height:o});f.setStyle(h.getItemStyle()),f.ensureState("emphasis").style=p.getItemStyle();var d=new Zl({style:{text:c[u],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null},ignore:!0});f.setTextContent(d),Uy({el:f,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),f.__title=c[u],f.on("mouseover",(function(){var e=p.getItemStyle(),r=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";d.setStyle({fill:p.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:p.get("textBackgroun
2dColor")}),f.setTextConfig({position:p.get("textPosition")||r}),d.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),d.hide()})),("emphasis"===r.get(["iconStatus",u])?Cu:ku)(f),i.add(f),f.on("click",it(s.onclick,s,e,n,u)),g[u]=f}))}(y,p,f),y.setIconStatus=function(t,e){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,r[t]&&("emphasis"===e?Cu:ku)(r[t])},p instanceof SF&&p.render&&p.render(y,e,n,r)):m&&p.dispose&&p.dispose(e,n)}},e.prototype.updateView=function(t,e,n,r){J(this._features,(function(t){t instanceof SF&&t.updateView&&t.updateView(t.model,e,n,r)}))},e.prototype.remove=function(t,e){J(this._features,(function(n){n instanceof SF&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){J(this._features,(function(n){n instanceof SF&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(Zd);var DF=OF,PF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(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")}),s=_.browser;if(st(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=r+"."+o,l.target="_blank",l.href=a;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||i){var c=a.split(","),h=c[0].indexOf("base64")>-1,p=i?decodeURIComponent(c[1]):c[1];h&&(p=window.atob(p));var f=r+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var d=p.length,g=new Uint8Array(d);d--;)g[d]=p.charCodeAt(d);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,f)}else{var v=document.createElement("iframe");document.body.appendChild(v);var m=v.contentWindow,x=m.document;x.open("image/svg+xml","replace"),x.write(p),x.close(),m.focus(),x.execCommand("SaveAs",!0,f),document.body.removeChild(v)}}else{var b=n.get("lang"),w='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',S=window.open();S.document.write(w),S.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",n
vendor: 22,333 bytes, line 2
2ame:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(SF),LF=PF,EF="__ec_magicType_stack__",NF=[["line","bar"],["stack"]],RF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return J(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(zF[n]){var o,a={series:[]};J(NF,(function(t){X(t,n)>=0&&J(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=zF[n](e,i,t,r);o&&(Z(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=t.getReferringComponents(u,_a).models[0].componentIndex;a[u]=a[u]||[];for(var h=0;h<=c;h++)a[u][c]=a[u][c]||{};a[u][c].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=H({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}(SF),zF={line:function(t,e,n,r){if("bar"===t)return H({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 H({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=n.get("stack")===EF;if("line"===t||"bar"===t)return r.setIconStatus("stack",i?"normal":"emphasis"),H({id:e,stack:i?"":EF},r.get(["option","stack"])||{},!0)}};sb({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var jF=RF,BF=new Array(60).join("-"),VF="\t";function FF(t){var e=[];return J(t,(function(t,n){var r=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(Q(t.series,(function(t){return t.name}))),a=[r.model.getCategories()];J(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(VF)],l=0;l<a[0].length;l++){for(var u=[],c=0;c<a.length;c++)u.push(a[c][l]);s.push(u.join(VF))}e.push(s.join("\n"))})),e.join("\n\n"+BF+"\n\n")}function GF(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var HF=new RegExp("["+VF+"]+","g");function WF(t,e){var n=t.split(new RegExp("\n*"+BF+"\n*","g")),r={series:[]};return J(n,(function(t,n){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf(VF)>=0)return!0}(t)){var i=function(t){for(var e=t.split(/\n+/g),n=[],r=Q(GF(e.shift()).split(HF),(function(t){return{name:t,data:[]}})),i=0;i<e.length;i++){var o=GF(e[i]).split(HF);n.push(o.shift());for(var a=0;a<o.length;a++)r[a]&&(r[a].data[i]=o[a])}return{series:r,categories:n}}(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=GF(e.shift()),r=[],i=0;i<e.length;i++){var o=GF(e[i]);if(o){var a=o.split(HF),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 UF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(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"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=r.get("optionToContent"),c=r.get("contentToOption"),h=function(t){var e,n=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:et([FF(n.seriesGroupByCategoryAxis),(e=n.other,Q(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+VF:"")+r.join(VF))})),n.join("\n")})).join("\n\n"+BF+"\n\n"))],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+BF+"\n\n"),meta:n.meta}}(t);if(st(u)){var p=u(e.getOption());lt(p)?s.innerHTML=p:dt(p)&&s.appendChild(p)}else{l.readOnly=r.get("readOnly");var f=l.style;f.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",f.color=r.get("textColor"),f.borderColor=r.get("textareaBorderColor"),f.backgroundColor=r.get("textareaColor"),l.value=h.value,s.appendChild(l)}var d=h.meta,g=document.createElement("div");g.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",v=document.createElement("div"),m=document.createElement("div");y+=";background-color:"+r.get("buttonColor"),y+=";color:"+r.get("buttonTextColor");var x=this;function b(){n.removeChild(i),x._dom=null}Ee(v,"click",b),Ee(m,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)b();else{var t;try{t=st(c)?c(s,e.getOption()):WF(l.value,d)}catch(Og){throw b(),new Error("Data view format error "+Og)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),b()}})),v.innerHTML=a[1],m.innerHTML=a[2],m.style.cssText=v.style.cssText=y,!r.get("readOnly")&&g.appendChild(m),g.appendChild(v),i.appendChild(o),i.appendChild(s),i.appendChild(g),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}(SF);function ZF(t,e){return Q(t,(function(t,n){var r=e&&e[n];if(ht(r)&&!at(r)){ht(t)&&!at(t)||(t={value:t});var i=null!=r.name&&null==t.name;return t=Z(t,r),i&&delete t.name,t}return t}))}sb({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];J(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:ZF(t.data,i)})}else n.push(U({type:"scatter"},t))})),e.mergeOption(Z({series:n},t.newOption))}));var YF=UF,XF=J,qF=va();function KF(t){var e=qF(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var $F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.onclick=function(t,e){!function(t){qF(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}(SF);sb({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var JF=$F,QF=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],tG=function(){function t(t,e,n){var r=this;this._targetInfoList=[];var i=nG(e,t);J(rG,(function(t,e){(!n||!n.include||X(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=aG[t.brushType](0,n,e);t.__rangeOffset={offset:lG[t.brushType](r.values,t.range,[1,1]),xyMinMax:r.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){J(t,(function(t){var r=this.findTargetInfo(t,e);r&&!0!==r&&J(r.coordSyses,(function(r){var i=aG[t.brushType](1,r,t.range,!0);n(t,i.values,r,e)}))}),this)},t.prototype.setInputRanges=function(t,e){J(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var r=aG[t.brushType](0,n.coordSys,t.coordRange),i=t.__rangeOffset;t.range=i?lG[t.brushType](r.values,i.offset,function(t,e){var n=cG(t),r=cG(e),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}(r.xyMinMax,i.xyMinMax)):r.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Q(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:GE(r),isTargetByCursor:WE(r,t,n.coordSysModel),getLinearBrushOtherExtent:HE(r)}}))},t.prototype.controlSeries=function(t,e,n){var r=this.findTargetInfo(t,n);return!0===r||r&&X(r.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,r=nG(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<iG.length;s++)if(iG[s](r,o))return o}return!0},t}();function eG(t){return t[0]>t[1]&&t.reverse(),t}function nG(t,e){return xa(t,e,{includeMainTypes:QF})}var rG={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,i=t.gridModels,o=Pt(),a={},s={};(n||r||i)&&(J(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),J(r,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),J(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=[];J(i.getCartesians(),(function(t,e){(X(n,t.getAxis("x").model)>=0||X(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:oG.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){J(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:oG.geo})}))}},iG=[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}],oG={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Ey(t)),e}},aG={lineX:ot(sG,0),lineY:ot(sG,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=[eG([i[0],o[0]]),eG([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:Q(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 sG(t,e,n,r){var i=n.getAxis(["x","y"][t]),o=eG(Q([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 lG={lineX:ot(uG,0),lineY:ot(uG,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 Q(t,(function(t,r){return[t[0]-n[0]*e[r][0],t[1]-n[1]*e[r][1]]}))}};function uG(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function cG(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var hG,pG,fG=tG,dG=J,gG=ia+"toolbox-dataZoom_",yG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,n,r){this._brushController||(this._brushController=new FE(n.getZr()),this._brushController.on("brush",it(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 fG(mG(t),e,{include:["grid"]}),s=a.makePanelOpts(i,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,r,n),function(t,e){t.setIconStatus("back",function(t){return KF(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){vG[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 fG(mG(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=KF(t);XF(e,(function(e,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);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=EL(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=[];dG(t,(function(t,n){e.push(G(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}(SF),vG={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=KF(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return XF(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 mG(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}hG="dataZoom",pG=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var r=e.getModel(n),i=[],o=xa(t,mG(r));return dG(o.xAxisModels,(function(t){return a(t,"xAxis","xAxisIndex")})),dG(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:gG+e+o};a[n]=o,i.push(a)}},Mt(null==fp.get(hG)&&pG),fp.set(hG,pG);var xG=yG;var bG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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}(Yh),_G=bG;function wG(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function SG(t){if(_.domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}var MG=SG(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function IG(t,e){if(!t)return e;e=Sh(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var TG=IG(SG(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),AG=IG(MG,"transform"),CG="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(_.transform3dSupported?"will-change:transform;":"");function kG(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!_.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=_.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+AG+":"+a+";":[["top",0],["left",0],[MG,a]]}function OG(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=Od(t,"html"),p=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+p),e&&i&&r.push(function(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=_.transformSupported?","+AG+r:",left"+r+",top"+r),TG+":"+i}(i,n)),o&&r.push("background-color:"+o),J(["width","color","radius"],(function(e){var n="border-"+e,i=Sh(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),J(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}(c)),null!=h&&r.push("padding:"+Mh(h).join("px ")+"px"),r.join(";")+";"}function DG(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,r,i){we(_e,e,r,i,!0)&&we(t,n,_e[0],_e[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 PG=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,_.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;DG(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;Le(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=this._container,n=function(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,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=CG+OG(t,!this._firstShow,this._longHide)+kG(i[0],i[1],!0)+"border-color:"+Ph(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(lt(i)&&"item"===n.get("trigger")&&!wG(n)&&(a=function(t,e,n){if(!lt(n)||"inside"===n)return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=Ph(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(i),6),u="",c=AG+":";X(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left
2:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var h=a*Math.PI/180,p=l+i,f=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h)),d=e+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-p)/2))/100+"px")+";"+c+";","border-bottom:"+d,"border-right:"+d,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),lt(t))o.innerHTML=t+a;else if(t){o.innerHTML="",at(t)||(t=[t]);for(var s=0;s<t.length;s++)dt(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}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(DG(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style;J(kG(n[0],n[1]),(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",_.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||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(it(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),LG=PG;function EG(t){return Math.max(0,t)}function NG(t){var e=EG(t.shadowBlur||0),n=EG(t.shadowOffsetX||0),r=EG(t.shadowOffsetY||0);return{left:EG(e-n),right:EG(e+n),top:EG(e-r),bottom:EG(e+r)}}function RG(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var zG=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),RG(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},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;ht(t)&&zf(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Zl({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Od(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),J(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),J(["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=NG(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;RG(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=EG(i.borderWidth||0),a=NG(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||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(it(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}(),jG=new Ol({shape:{x:-1,y:-1,width:2,height:2}}),BG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){if(!_.node&&e.getDom()){var n,r=t.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?_.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new zG(e):new LG(e.getDom(),e,{appendToBody:r.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!_.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?sv(this,"_updatePosition",50,"fixRate"):lv(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");cB("itemTooltip",this._api,it((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&&!_.node&&n.getDom()){var i=FG(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(t,e,n){var r=ba(t).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var o=Sa(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(!a)return;var s,l=n.getViewOfComponentModel(a);if(l.group.traverse((function(e){var n=Yl(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}(r,e,n);
vendor: 68,968 bytes, line 2
2if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=jG;l.x=r.x,l.y=r.y,l.update(),Yl(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},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 u=yB(r,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.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._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(FG(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"===VG([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,Qv(n,(function(t){return null!=Yl(t).dataIndex?(i=t,!0):null!=Yl(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=it(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=VG([e.tooltipOption],r),a=this._renderMode,s=[],l=bd("section",{blocks:[],noHeader:!0}),u=[],c=new Dd;J(t,(function(t){J(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=qj(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=bd("section",{header:o,noHeader:!It(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),J(t.seriesDataIndices,(function(l){var p=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,d=p.getDataParams(f);if(!(d.dataIndex<0)){d.axisDim=t.axisDim,d.axisIndex=t.axisIndex,d.axisType=t.axisType,d.axisId=t.axisId,d.axisValue=dw(e.axis,{value:i}),d.axisValueLabel=o,d.marker=c.makeTooltipMarker("item",Ph(d.color),a);var g=Pf(p.formatTooltip(f,!0,null)),y=g.frag;if(y){var v=VG([p],r).get("valueFormatter");h.blocks.push(v?U({valueFormatter:v},y):y)}g.text&&u.push(g.text),s.push(d)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,p=o.get("order"),f=Td(l,c,a,p,n.get("useUTC"),o.get("textStyle"));f&&u.unshift(f);var d="richText"===a?"\n\n":"<br/>",g=u.join(d);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=Yl(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),h=this._renderMode,p=t.positionDefault,f=VG([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),d=f.get("trigger");if(null==d||"item"===d){var g=s.getDataParams(l,u),y=new Dd;g.marker=y.makeTooltipMarker("item",Ph(g.color),h);var v=Pf(s.formatTooltip(l,!1,u)),m=f.get("order"),x=f.get("valueFormatter"),b=v.frag,_=b?Td(x?U({valueFormatter:x},b):b,y,h,m,r.get("useUTC"),f.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(f,(function(){this._showTooltipContent(f,_,g,w,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r=Yl(e),i=r.tooltipConfig.option||{};if(lt(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,l=VG(o,this._tooltipModel,s?{position:s}:null),u=l.get("content"),c=Math.random()+"",h=new Dd;this._showOrMove(l,(function(){var n=G(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,c,t.offsetX,t.offsetY,t.position,e,h)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,p=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")).color;if(c)if(lt(c)){var f=t.ecModel.get("useUTC"),d=at(n)?n[0]:n;h=c,d&&d.axisType&&d.axisType.indexOf("time")>=0&&(h=oh(d.axisValue,h,f)),h=Ch(h,n,!0)}else if(st(c)){var g=it((function(e,r){e===this._ticket&&(u.setContent(r,l,t,p,a),this._updatePosition(t,a,i,o,u,n,s))}),this);this._ticket=r,h=c(n,r,g)}else h=c;u.setContent(h,l,t,p,a),u.show(t,p),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||at(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:at(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(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),h=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),st(e)&&(e=e([n,r],o,i.el,p,{viewSize:[s,l],contentSize:u.slice()})),at(e))n=Po(e[0],s),r=Po(e[1],l);else if(ht(e)){var f=e;f.width=u[0],f.height=u[1];var d=Bh(f,{width:s,height:l});n=d.x,r=d.y,c=null,h=null}else if(lt(e)&&a){var g=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,p,u,t.get("borderWidth"));n=g[0],r=g[1]}else{g=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,l,c?null:20,h?null:20);n=g[0],r=g[1]}if(c&&(n-=GG(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=GG(h)?u[1]/2:"bottom"===h?u[1]:0),wG(t)){g=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,l);n=g[0],r=g[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&&J(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&J(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&J(a,(function(t,e){var n=l[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&J(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){!_.node&&e.getDom()&&(lv(this,"_updatePosition"),this._tooltipContent.dispose(),fB("itemTooltip",e))},e.type="tooltip",e}(Zd);function VG(t,e,n){var r,i=e.ecModel;n?(r=new Ec(n,i,i),r=new Ec(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Ec&&(a=a.get("tooltip",!0)),lt(a)&&(a={formatter:a}),a&&(r=new Ec(a,r,i)))}return r}function FG(t,e){return t.dispatchAction||it(e.dispatchAction,e)}function GG(t){return"center"===t||"middle"===t}var HG=BG;var WG=["rect","polygon","keep","clear"];function UG(t,e){var n=oa(t?t.brush:[]);if(n.length){var r=[];J(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(r=r.concat(e))}));var i=t&&t.toolbox;at(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),function(t){var e={};J(t,(function(t){e[t]=1})),t.length=0,J(e,(function(e,n){t.push(n)}))}(s),e&&!s.length&&s.push.apply(s,WG)}}var ZG=J;function YG(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function XG(t,e,n){var r={};return ZG(e,(function(e){var i=r[e]=function(){var t=function(){};return t.prototype.__hidden=t.prototype,new t}();ZG(t[e],(function(t,r){if(wD.isValidType(r)){var o={type:r,visual:t};n&&n(o,e),i[r]=new wD(o),"opacity"===r&&((o=G(o)).type="colorAlpha",i.__hidden.__alphaForOpacity=new wD(o))}}))})),r}function qG(t,e,n){var r;J(n,(function(t){e.hasOwnProperty(t)&&YG(e[t])&&(r=!0)})),r&&J(n,(function(n){e.hasOwnProperty(n)&&YG(e[n])?t[n]=G(e[n]):delete t[n]}))}var KG={lineX:$G(0),lineY:$G(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])&&Aw(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!!(Aw(r,i,o)||Aw(r,i+a,o)||Aw(r,i,o+s)||Aw(r,i+a,o+s)||sn.create(t).contain(l[0],l[1])||Gy(i,o,i+a,o,r)||Gy(i,o,i,o+s,r)||Gy(i+a,o,i+a,o+s,r)||Gy(i,o+s,i+a,o+s,r))||void 0}}};function $G(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,r){if(e){var i=r.range;return JG(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(),JG(s[0],a)||JG(s[1],a)||JG(a[0],s)||JG(a[1],s)}}}}function JG(t,e){return e[0]<=t&&t<=e[1]}var QG=["inBrush","outOfBrush"],tH="__ecBrushSelect",eH="__ecInBrushSelectEvent";function nH(t){t.eachComponent({mainType:"brush"},(function(e){(e.brushTargetManager=new fG(e.option,t)).setInputRanges(e.areas,t)}))}function rH(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})})),nH(t),t.eachComponent({mainType:"brush"},(function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:G(e.areas),selected:[]};o.push(a);var s=e.option,l=s.brushLink,u=[],c=[],h=[],p=!1;n||(r=s.throttleType,i=s.throttleDelay);var f=Q(e.areas,(function(t){var e=aH[t.brushType],n=Z({boundingRect:e?e(t):void 0},t);return n.selectors=function(t){var e=t.brushType,n={point:function(r){return KG[e].point(r,n,t)},rect:function(r){return KG[e].rect(r,n,t)}};return n}(n),n})),d=XG(e.option,QG,(function(t){t.mappingMethod="fixed"}));function g(t){return"all"===l||!!u[t]}function y(t){return!!t.length}at(l)&&J(l,(function(t){u[t]=1})),t.eachSeries((function(n,r){var i=h[r]=[];"parallel"===n.subType?function(t,e){var n=t.coordinateSystem;p=p||n.hasAxisBrushed(),g(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(c[e]=1)}))}(n,r):function(n,r,i){if(!n.brushSelector||function(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(at(n)?X(n,e)<0:e!==n)}(e,r))return;if(J(f,(function(r){e.brushTargetManager.controlSeries(r,n,t)&&i.push(r),p=p||y(i)})),g(r)&&y(i)){var o=n.getData();o.each((function(t){oH(n,i,o,t)&&(c[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=h[e],i=t.getData(),o=g(e)?function(t){return c[t]?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return oH(t,r,i,e)?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?p:y(r))&&function(t,e,n,r,i,o){var a,s={};function l(t){return Xv(n,a,t)}function u(t,e){Kv(n,a,t,e)}function c(t,c){a=null==o?t:c;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,y=d.length;g<y;g++){var v=d[g];f[v]&&f[v].applyVisual(t,l,u)}}J(t,(function(t){var n=wD.prepareVisualTypes(e[t]);s[t]=n})),null==o?n.each(c):n.each([o],c)}(QG,d,i,o)}))})),function(t,e,n,r,i){if(!i)return;var o=t.getZr();if(o[eH])return;o[tH]||(o[tH]=iH);var a=sv(o,tH,n,e);a(t,r)}(e,r,i,o,n)}function iH(t,e){if(!t.isDisposed()){var n=t.getZr();n[eH]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[eH]=!1}}function oH(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 aH={rect:function(t){return sH(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&&sH(e)}};function sH(t){return new sn(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var lH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new FE(e.getZr())).on("brush",it(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){nH(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:G(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:G(n),$from:e})},e.type="brush",e}(Zd),uH=lH,cH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return m(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&qG(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=Q(t,(function(t){return hH(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=hH(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}(Yh);function hH(t,e){return H({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Ec(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var pH=cH,fH=["rect","polygon","lineX","lineY","keep","clear"],dH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(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,J(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 J(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:fH.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}(SF),gH=dH;var yH=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 m(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}(Yh),vH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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=bt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Zl({style:pc(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new Zl({style:pc(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),f=t.get("sublink"),d=t.get("triggerEvent",!0);l.silent=!p&&!d,h.silent=!f&&!d,p&&l.on("click",(function(){Lh(p,"_"+t.get("target"))})),f&&h.on("click",(function(){Lh(f,"_"+t.get("subtarget"))})),Yl(l).eventData=Yl(h).eventData=d?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(l),c&&r.add(h);var g=r.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var v=Bh(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),r.x=v.x,r.y=v.y,r.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),h.setStyle(m),g=r.getBoundingRect();var x=v.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var _=new Ol({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});r.add(_)}},e.type="title",e}(Zd);var mH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return m(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=[],J(n,(function(e,n){var r,o=fa(la(e),"");ht(e)?(r=G(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 $b([{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}(Yh),xH=mH,bH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="timeline.slider",e.defaultOption=zc(xH.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}(xH);K(bH,Df.prototype);var _H=bH,wH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="timeline",e}(Zd),SH=wH,MH=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.type=i||"value",o}return m(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(Jw),IH=MH,TH=Math.PI,AH=va(),CH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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 bd("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},J(["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"),l=function(t,e){return Bh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2<e.getHeight()/2?"-":"+":l.x+l.width/2<e.getWidth()/2?"+":"-":lt(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:TH/2},p="vertical"===s?l.height:l.width,f=t.getModel("controlStyle"),d=f.get("show",!0),g=d?f.get("itemSize"):0,y=d?f.get("itemGap"):0,v=g+y,m=t.get(["label","rotate"])||0;m=m*TH/180;var x=f.get("position",!0),b=d&&f.get("showPlayBtn",!0),_=d&&f.get("showPrevBtn",!0),w=d&&f.get("showNextBtn",!0),S=0,M=p;"left"===x||"bottom"===x?(b&&(r=[0,0],S+=v),_&&(i=[S,0],S+=v),w&&(o=[M-g,0],M-=v)):(b&&(r=[M-g,0],M-=v),_&&(i=[0,0],S+=v),w&&(o=[M-g,0],M-=v));var I=[S,M];return t.get("inverse")&&I.reverse(),{viewRect:l,mainLength:p,orient:s,rotation:h[s],labelRotation:m,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[s],playPosition:r,prevBtnPosition:i,nextBtnPosition:o,axisExtent:I,controlSize:g,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;We(o,o,[-a,-s]),Ue(o,o,-TH/2),We(o,o,[a,s]),(i=i.clone()).applyTransform(o)}var l=y(i),u=y(n.getBoundingRect()),c=y(r.getBoundingRect()),h=[n.x,n.y],p=[r.x,r.y];p[0]=h[0]=l[0][0];var f,d=t.labelPosOpt;null==d||lt(d)?(v(h,u,l,1,f="+"===d?0:1),v(p,c,l,1,1-f)):(v(h,u,l,1,f=d>=0?0:1),p[1]=h[1]+d);function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,r,i){t[r]+=n[r][i]-e[r][i]}n.setPosition(h),r.setPosition(p),n.rotation=r.rotation=t.rotation,g(n),g(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"),e)switch(e){case"category":return new w_({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new Y_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new I_}}(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 IH("value",i,t.axisExtent,r);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new xo;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 qg({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:U({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new qg({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Z({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=[],J(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:it(i._changeTimeline,i,t.value)},p=kH(s,l,e,h);p.ensureState("emphasis").style=u.getItemStyle(),p.ensureState("progress").style=c.getItemStyle(),Fu(p);var f=Yl(p);s.get("tooltip")?(f.dataIndex=t.value,f.dataModel=r):f.dataIndex=f.dataModel=null,i._tickSymbols.push(p)}))},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=[],J(a,(function(r){var a=r.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(r.tickValue),p=new Zl({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:it(i._changeTimeline,i,a),silent:!1,style:pc(l,{text:r.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});p.ensureState("emphasis").style=pc(u),p.ensureState("progress").style=pc(c),e.add(p),Fu(p),AH(p).dataIndex=a,i._tickLabels.push(p)}))}},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(),l=r.getPlayState(),u=r.get("inverse",!0);function c(t,n,l,u){if(t){var c=io(bt(r.get(["controlStyle",n+"BtnSize"]),i),i),h=function(t,e,n,r){var i=r.style,o=Fy(t.get(["controlStyle",e]),r||{},new sn(n[0],n[1],n[2],n[3]));i&&o.setStyle(i);return o}(r,n+"Icon",[0,-c/2,c,c],{x:t[0],y:t[1],originX:i/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,e.add(h),Fu(h)}}c(t.nextBtnPosition,"next",it(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",it(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",it(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=it(s._handlePointerDrag,s),t.ondragend=it(s._handlePointerDragend,s),OH(t,s._progressLine,o,n,r,!0)},onUpdate:function(t){OH(t,s._progressLine,o,n,r)}};this._currentPointer=kH(a,a,this._mainGroup,{},this._currentPointer,l)},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=Eo(this._axis.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var i=this._progressLine;i&&(i.shape.x2=n,i.dirty());var o=this._findNearestTick(n),a=this.model;(e||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},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 Ny(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",AH(n[r]).dataIndex<=t)},e.type="timeline.slider",e}(SH);function kH(t,e,n,r,i,o){var a=e.get("color");i?(i.setColor(a),n.add(i),o&&o.onUpdate(i)):((i=hm(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=H({rectHover:!0,z2:100},r,!0);var l=pm(t.get("symbolSize"));r.scaleX=l[0]/2,r.scaleY=l[1]/2;var u=fm(t.get("symbolOffset"),l);u&&(r.x=(r.x||0)+u[0],r.y=(r.y||0)+u[1]);var c=t.get("symbolRotate");return r.rotation=(c||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function OH(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 DH=CH;function PH(t){var e=t&&t.timeline;at(e)||(e=e?[e]:[]),J(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(LH(t),EH(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});EH(r,"position")||(r.position=t.controlPosition),"none"!==r.position||EH(r,"show")||(r.show=!1,delete r.position),delete t.controlPosition}J(t.data||[],(function(t){ht(t)&&!at(t)&&(!EH(t,"value")&&EH(t,"name")&&(t.value=t.name),LH(t))}))}(t)}))}function LH(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};J(r,(function(t,e){o[e]||EH(i,e)||(i[e]=t)})),n.label&&!EH(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function EH(t,e){return t.hasOwnProperty(e)}function NH(t,e){if(!t)return!1;for(var n=at(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}function RH(t){aa(t,"label",["show"])}var zH=va(),jH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return m(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(_.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=zH(t)[i];n&&n.data?(o?o._mergeOption(n,e,!0):(r&&RH(n),J(n.data,(function(t){t instanceof Array?(RH(t[0]),RH(t[1])):RH(t)})),U(o=this.createMarkerModelFromSeries(n,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),zH(t)[i]=o):zH(t)[i]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),o=r.getName(t);return bd("section",{header:this.name,blocks:[bd("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 zH(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Yh);K(jH,Df.prototype);var BH=jH,VH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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}(BH),FH=VH;function GH(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function HH(t,e,n,r,i,o){var a=[],s=o_(e,r)?e.getCalculationInfo("stackResultDimension"):r,l=qH(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=No(e.get(r,u));return(h=Math.min(h,20))>=0&&(a[o]=+a[o].toFixed(h)),[a,c]}var WH={min:ot(HH,"min"),max:ot(HH,"max"),average:ot(HH,"average"),median:ot(HH,"median")};function UH(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,i=r&&r.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!at(e.coord)&&at(i)){var o=ZH(e,n,r,t);if((e=G(e)).type&&WH[e.type]&&o.baseAxis&&o.valueAxis){var a=X(i,o.baseAxis.dim),s=X(i,o.valueAxis.dim),l=WH[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&at(i))for(var u=e.coord,c=0;c<2;c++)WH[u[c]]&&(u[c]=qH(n,n.mapDimension(i[c]),u[c]));else e.coord=[];return e}}function ZH(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 YH(t,e){return!(t&&t.containData&&e.coord&&!GH(e))||t.containData(e.coord)}function XH(t,e){return t?function(t,n,r,i){return jf(i<2?t.coord&&t.coord[i]:t.value,e[i])}:function(t,n,r,i){return jf(t.value,e[i])}}function qH(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 KH=va(),$H=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(){this.markerGroupMap=Pt()},e.prototype.render=function(t,e,n){var r=this,i=this.markerGroupMap;i.each((function(t){KH(t).keep=!1})),e.eachSeries((function(t){var i=BH.getMarkerModelFromSeries(t,r.type);i&&r.renderSeries(t,i,e,n)})),i.each((function(t){!KH(t).keep&&r.group.remove(t.group)}))},e.prototype.markKeep=function(t){KH(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;J(t,(function(t){var r=BH.getMarkerModelFromSeries(t,n.type);r&&r.getData().eachItemGraphicEl((function(t){t&&(e?Ou(t):Du(t))}))}))},e.type="marker",e}(Zd),JH=$H;function QH(t,e,n){var r=e.coordinateSystem;t.each((function(i){var o,a=t.getItemModel(i),s=Po(a.get("x"),n.getWidth()),l=Po(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 tW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=BH.getMarkerModelFromSeries(t,"markPoint");e&&(QH(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,l=s.get(o)||s.set(o,new mI),u=function(t,e,n){var r;r=t?Q(t&&t.dimensions,(function(t){return U(U({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new $b(r,n),o=Q(n.get("data"),ot(UH,e));t&&(o=et(o,ot(YH,t)));var a=XH(!!t,r);return i.initData(o,null,a),i}(i,t,e);e.setData(u),QH(e.getData(),t,r),u.each((function(t){var n=u.getItemModel(t),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(st(r)||st(i)||st(o)||st(s)){var c=e.getRawValue(t),h=e.getDataParams(t);st(r)&&(r=r(c,h)),st(i)&&(i=i(c,h)),st(o)&&(o=o(c,h)),st(s)&&(s=s(c,h))}var p=n.getModel("itemStyle").getItemStyle(),f=qv(a,"color");p.fill||(p.fill=f),u.setItemVisual(t,{symbol:r,symbolSize:i,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:p})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){Yl(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(JH);var eW=tW;var nW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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}(BH),rW=nW,iW=va(),oW=function(t,e,n,r){var i,o=t.getData();if(at(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,l=void 0;if(null!=r.yAxis||null!=r.xAxis)s=e.getAxis(null!=r.yAxis?"y":"x"),l=xt(r.yAxis,r.xAxis);else{var u=ZH(r,o,e,t);s=u.valueAxis,l=qH(o,a_(o,u.valueDataDim),a)}var c="x"===s.dim?0:1,h=1-c,p=G(r),f={coord:[]};p.type=null,p.coord=[],p.coord[h]=-1/0,f.coord[h]=1/0;var d=n.get("precision");d>=0&&ct(l)&&(l=+l.toFixed(Math.min(d,20))),p.coord[c]=f.coord[c]=l,i=[p,f,{type:a,valueIndex:r.valueIndex,value:l}]}else i=[]}var g=[UH(t,i[0]),UH(t,i[1]),U({},i[2])];return g[2].type=g[2].type||null,H(g[2],g[0]),H(g[2],g[1]),g};function aW(t){return!isNaN(t)&&!isFinite(t)}function sW(t,e,n,r){var i=1-t,o=r.dimensions[t];return aW(e[i])&&aW(n[i])&&e[t]===n[t]&&r.getAxis(o).containData(e[t])}function lW(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(sW(1,n,r,t)||sW(0,n,r,t)))return!0}return YH(t,e[0])&&YH(t,e[1])}function uW(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=Po(s.get("x"),i.getWidth()),u=Po(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(PI(a,"cartesian2d")){var f=a.getAxis("x"),d=a.getAxis("y");c=a.dimensions;aW(t.get(c[0],e))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):aW(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 cW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=BH.getMarkerModelFromSeries(t,"markLine");if(e){var r=e.getData(),i=iW(e).from,o=iW(e).to;i.each((function(e){uW(i,e,!0,t,n),uW(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,l=s.get(o)||s.set(o,new DP);this.group.add(l.group);var u=function(t,e,n){var r;r=t?Q(t&&t.dimensions,(function(t){return U(U({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new $b(r,n),o=new $b(r,n),a=new $b([],n),s=Q(n.get("data"),ot(oW,e,t,n));t&&(s=et(s,ot(lW,t)));var l=XH(!!t,r);return i.initData(Q(s,(function(t){return t[0]})),null,l),o.initData(Q(s,(function(t){return t[1]})),null,l),a.initData(Q(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:i,to:o,line:a}}(i,t,e),c=u.from,h=u.to,p=u.line;iW(e).from=c,iW(e).to=h,e.setData(p);var f=e.get("symbol"),d=e.get("symbolSize"),g=e.get("symbolRotate"),y=e.get("symbolOffset");function v(e,n,i){var o=e.getItemModel(n);uW(e,n,i,t,r);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=qv(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:bt(o.get("symbolOffset",!0),y[i?0:1]),symbolRotate:bt(o.get("symbolRotate",!0),g[i?0:1]),symbolSize:bt(o.get("symbolSize"),d[i?0:1]),symbol:bt(o.get("symbol",!0),f[i?0:1]),style:s})}at(f)||(f=[f,f]),at(d)||(d=[d,d]),at(g)||(g=[g,g]),at(y)||(y=[y,y]),u.from.each((function(t){v(c,t,!0),v(h,t,!1)})),p.each((function(t){var e=p.getItemModel(t).getModel("lineStyle").getLineStyle();p.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),p.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})})),l.updateData(p),u.line.eachItemGraphicEl((function(t){Yl(t).dataModel=e,t.traverse((function(t){Yl(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(JH);var hW=cW;var pW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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}(BH),fW=pW,dW=va(),gW=function(t,e,n,r){var i=r[0],o=r[1];if(i&&o){var a=UH(t,i),s=UH(t,o),l=a.coord,u=s.coord;l[0]=xt(l[0],-1/0),l[1]=xt(l[1],-1/0),u[0]=xt(u[0],1/0),u[1]=xt(u[1],1/0);var c=W([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function yW(t){return!isNaN(t)&&!isFinite(t)}function vW(t,e,n,r){var i=1-t;return yW(e[i])&&yW(n[i])}function mW(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 PI(t,"cartesian2d")?!(!n||!r||!vW(1,n,r)&&!vW(0,n,r))||function(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!GH(e)&&!GH(n))||t.containZone(e.coord,n.coord)}(t,i,o):YH(t,i)||YH(t,o)}function xW(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=Po(s.get(n[0]),i.getWidth()),u=Po(s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition){var c=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),p=a.clampData(c),f=a.clampData(h),d=[];"x0"===n[0]?d[0]=p[0]>f[0]?h[0]:c[0]:d[0]=p[0]>f[0]?c[0]:h[0],"y0"===n[1]?d[1]=p[1]>f[1]?h[1]:c[1]:d[1]=p[1]>f[1]?c[1]:h[1],o=r.getMarkerPosition(d,n,!0)}else{var g=[m=t.get(n[0],e),x=t.get(n[1],e)];a.clampData&&a.clampData(g,g),o=a.dataToPoint(g,!0)}if(PI(a,"cartesian2d")){var y=a.getAxis("x"),v=a.getAxis("y"),m=t.get(n[0],e),x=t.get(n[1],e);yW(m)?o[0]=y.toGlobalCoord(y.getExtent()["x0"===n[0]?0:1]):yW(x)&&(o[1]=v.toGlobalCoord(v.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var bW=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],_W=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=BH.getMarkerModelFromSeries(t,"markArea");if(e){var r=e.getData();r.each((function(e){var i=Q(bW,(function(i){return xW(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,l=s.get(o)||s.set(o,{group:new xo});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){var r,i,o=["x0","y0","x1","y1"];if(t){var a=Q(t&&t.dimensions,(function(t){var n=e.getData();return U(U({},n.getDimensionInfo(n.mapDimension(t))||{}),{name:t,ordinalMeta:null})}));i=Q(o,(function(t,e){return{name:t,type:a[e%2].type}})),r=new $b(i,n)}else r=new $b(i=[{name:"value",type:"float"}],n);var s=Q(n.get("data"),ot(gW,e,t,n));t&&(s=et(s,ot(mW,t)));var l=t?function(t,e,n,r){return jf(t.coord[Math.floor(r/2)][r%2],i[r])}:function(t,e,n,r){return jf(t.value,i[r])};return r.initData(s,null,l),r.hasItemOption=!0,r}(i,t,e);e.setData(u),u.each((function(e){var n=Q(bW,(function(n){return xW(u,e,n,t,r)})),o=i.getAxis("x").scale,s=i.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],p=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];Eo(h),Eo(p);var f=!!(l[0]>h[1]||l[1]<h[0]||c[0]>p[1]||c[1]<p[0]);u.setItemLayout(e,{points:n,allClipped:f});var d=u.getItemModel(e).getModel("itemStyle").getItemStyle(),g=qv(a,"color");d.fill||(d.fill=g,lt(d.fill)&&(d.fill=Nr(d.fill,.4))),d.stroke||(d.stroke=g),u.setItemVisual(e,"style",d)})),u.diff(dW(l).data).add((function(t){var e=u.getItemLayout(t);if(!e.allClipped){var n=new Gg({shape:{points:e.points}});u.setItemGraphicEl(t,n),l.group.add(n)}})).update((function(t,n){var r=dW(l).data.getItemGraphicEl(n),i=u.getItemLayout(t);i.allClipped?r&&l.group.remove(r):(r?tc(r,{shape:{points:i.points}},e,t):r=new Gg({shape:{points:i.points}}),u.setItemGraphicEl(t,r),l.group.add(r))})).remove((function(t){var e=dW(l).data.getItemGraphicEl(t);l.group.remove(e)})).execute(),u.eachItemGraphicEl((function(t,n){var r=u.getItemModel(n),i=u.getItemVisual(n,"style");t.useStyle(u.getItemVisual(n,"style")),cc(t,hc(r),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:lt(i.fill)?Nr(i.fill,1):"#000"}),Zu(t,r),Gu(t,null,null,r.get(["emphasis","disabled"])),Yl(t).dataModel=e})),dW(l).data=u,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(JH);var wW=_W;var SW=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 m(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"]),at(e)&&J(e,(function(t,r){lt(t)&&(t={type:t}),e[r]=H(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&&da(r)&&e.push(r.name)})),this._availableNames=n;var r=this.get("data")||e,i=Pt(),o=Q(r,(function(t){return(lt(t)||ct(t))&&(t={name:t}),i.get(t.name)?null:(i.set(t.name,!0),new Ec(t,this,this.ecModel))}),this);this._data=et(o,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&J(this._data,(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;J(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;J(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])&&X(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}(Yh),MW=SW,IW=ot,TW=J,AW=xo,CW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return m(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new AW),this.group.add(this._selectorGroup=new AW),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 l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=Bh(l,u,c),p=this.layoutInner(t,i,h,r,a,s),f=Bh(Z({width:p.width,height:p.height},l),u,c);this.group.x=f.x-p.x,this.group.y=f.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=kF(p,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(),l=Pt(),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),TW(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new AW;return h.newline=!0,void s.add(h)}var p=n.getSeriesByName(a)[0];if(!l.get(a)){if(p){var f=p.getData(),d=f.getVisual("legendLineStyle")||{},g=f.getVisual("legendIcon"),y=f.getVisual("style");this._createItem(p,a,o,i,e,t,d,y,g,u,r).on("click",IW(kW,a,null,r,c)).on("mouseover",IW(DW,p.name,null,r,c)).on("mouseout",IW(PW,p.name,null,r,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),p=s.getItemVisual(h,"style"),f=s.getItemVisual(h,"legendIcon"),d=Tr(p.fill);d&&0===d[3]&&(d[3]=.2,p=U(U({},p),{fill:Rr(d,"rgba")})),this._createItem(n,a,o,i,e,t,{},p,f,u,r).on("click",IW(kW,null,a,r,c)).on("mouseover",IW(DW,null,a,r,c)).on("mouseout",IW(PW,null,a,r,c)),l.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();TW(t,(function(t){var r=t.type,i=new Zl({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i),cc(i,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Fu(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u,c){var h=t.visualDrawType,p=i.get("itemWidth"),f=i.get("itemHeight"),d=i.isSelected(e),g=r.get("symbolRotate"),y=r.get("symbolKeepAspect"),v=r.get("icon"),m=function(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),TW(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?Gm(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}}(l=v||l||"roundRect",r,a,s,h,d,c),x=new AW,b=r.getModel("textStyle");if(!st(t.getLegendIcon)||v&&"inherit"!==v){var _="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;x.add(function(t){var e=t.icon||"roundRect",n=hm(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:p,itemHeight:f,icon:l,iconRotate:_,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}))}else x.add(t.getLegendIcon({itemWidth:p,itemHeight:f,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}));var w="left"===o?p+5:-5,S=o,M=i.get("formatter"),I=e;lt(M)&&M?I=M.replace("{name}",null!=e?e:""):st(M)&&(I=M(e));var T=d?b.getTextColor():r.get("inactiveColor");x.add(new Zl({style:pc(b,{text:I,x:w,y:f/2,fill:T,align:S,verticalAlign:"middle"},{inheritColor:T})}));var A=new Ol({shape:x.getBoundingRect(),invisible:!0}),C=r.getModel("tooltip");return C.get("show")&&Uy({el:A,componentModel:i,itemName:e,itemTooltipOption:C.option}),x.add(A),x.eachChild((function(t){t.silent=!0})),A.silent=!u,this.getContentGroup().add(x),Fu(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();jh(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){jh("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",y=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 v={x:0,y:0};return v[d]=l[d]+p+c[d],v[g]=Math.max(l[g],c[g]),v[y]=Math.min(0,c[y]+h[1-f]),v}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}(Zd);function kW(t,e,n,r){PW(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),DW(t,e,n,r)}function OW(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 DW(t,e,n,r){OW(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function PW(t,e,n,r){OW(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}var LW=CW;function EW(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 NW(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)),J(n.getData(),(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 RW(t){t.registerComponentModel(MW),t.registerComponentView(LW),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,EW),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(t){t.registerAction("legendToggleSelect","legendselectchanged",ot(NW,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",ot(NW,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",ot(NW,"inverseSelect")),t.registerAction("legendSelect","legendselected",ot(NW,"select")),t.registerAction("legendUnSelect","legendunselected",ot(NW,"unSelect"))}(t)}var zW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=Hh(e);t.prototype.init.call(this,e,n,r),jW(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),jW(this,this.option,e)},e.type="legend.scroll",e.defaultOption=zc(MW.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}(MW);function jW(t,e,n){var r=[1,1];r[t.getOrient().index]=0,Gh(e,n,{type:"box",ignoreSize:!!r})}var BW=zW,VW=xo,FW=["width","height"],GW=["x","y"],HW=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 m(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new VW),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new VW)},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 l=this;t.prototype.renderInner.call(this,e,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=at(c)?c:[c,c];f("pagePrev",0);var p=n.getModel("pageTextStyle");function f(t,e){var r=t+"DataIndex",o=Fy(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:it(l._pageGo,l,r,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=t,u.add(o)}u.add(new Zl({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1)},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=FW[s],u=GW[s],c=FW[1-s],h=GW[1-s];i&&jh("horizontal",a,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),f=a.getBoundingRect(),d=[-f.x,-f.y],g=G(n);i&&(g[l]=n[l]-f[l]-p);var y=this._layoutContentAndController(t,r,g,s,l,c,h,u);if(i){if("end"===o)d[s]+=y[l]+p;else{var v=f[l]+p;d[s]-=v,y[u]-=v}y[l]+=f[l]+p,d[1-s]+=y[h]+y[c]/2-f[c]/2,y[c]=Math.max(y[c],f[c]),y[h]=Math.min(y[h],f[h]+d[1-s]),a.x=d[0],a.y=d[1],a.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,e,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;jh(t.get("orient"),l,t.get("itemGap"),r?n.width:null,r?null:n.height),jh("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),p=c.getBoundingRect(),f=this._showController=h[i]>n[i],d=[-h.x,-h.y];e||(d[r]=l[s]);var g=[0,0],y=[-p.x,-p.y],v=bt(t.get("pageButtonGap",!0),t.get("itemGap",!0));f&&("end"===t.get("pageButtonPosition",!0)?y[r]+=n[i]-p[i]:g[r]+=p[i]+v);y[1-r]+=h[o]/2-p[o]/2,l.setPosition(d),u.setPosition(g),c.setPosition(y);var m={x:0,y:0};if(m[i]=f?n[i]:h[i],m[o]=Math.max(h[o],p[o]),m[a]=Math.min(0,p[a]+y[1-r]),u.__rectSize=n[i],f){var x={x:0,y:0};x[i]=Math.max(n[i]-p[i]-v,0),x[o]=m[o],u.setClipPath(new Ol({shape:x})),u.__rectSize=x[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var b=this._getPageInfo(t);return null!=b.pageIndex&&tc(l,{x:b.contentPosition[0],y:b.contentPosition[1]},f?t:null),this._updatePageInfoView(t,b),m},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;J(["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",lt(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=FW[i],a=GW[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,y=f,v=null;d<=c;++d)(!(v=m(l[d]))&&y.e>g.s+r||v&&!x(v,g.s))&&(g=y.i>g.i?y:v)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),y=v;for(d=s-1,g=f,y=f,v=null;d>=-1;--d)(v=m(l[d]))&&x(y,v.s)||!(g.i<y.i)||(y=g,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=v;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 x(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}(LW),WW=HW;function UW(t){wb(RW),t.registerComponentModel(BW),t.registerComponentView(WW),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 ZW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="dataZoom.inside",e.defaultOption=zc(lF.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(lF),YW=ZW,XW=va();function qW(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function KW(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function $W(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function JW(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=XW(e),r=n.coordSysRecordMap||(n.coordSysRecordMap=Pt());r.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){J(iF(t).infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,function(t,e){var n={model:e,containsPoint:ot($W,e),dispatchAction:ot(KW,t),dataZoomInfoMap:null,controller:null},r=n.controller=new TC(t.getZr());return J(["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)}))}
vendor: 1,971 bytes, line 2
2)),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=Pt())).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_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return t.each((function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");r[n+a]>r[n+e]&&(e=a),i=i&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}(i);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),sv(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else qW(r,t)}))}))}var QW=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return m(e,t),e.prototype.render=function(e,n,r){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(t,e,n){XW(t).coordSysRecordMap.each((function(t){var r=t.dataZoomInfoMap.get(e.uid);r&&(r.getRange=n)}))}(r,e,{pan:it(tU.pan,this),zoom:it(tU.zoom,this),scrollMove:it(tU.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=XW(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||qW(n,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(pF),tU={zoom:function(t,e,n,r){var i=this.range,o=i.slice(),a=t.axisModels[0];if(a){var s=nU[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();
vendor: 28,431 bytes, line 2
2return EL(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:eU((function(t,e,n,r,i,o){var a=nU[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:eU((function(t,e,n,r,i,o){return nU[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,n).signal*(t[1]-t[0])*o.scrollDelta}))};function eU(t){return function(e,n,r,i){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return EL(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 nU={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}},rU=QW;function iU(t){_F(t),t.registerComponentModel(YW),t.registerComponentView(rU),JW(t)}var oU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=zc(lF.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}(lF),aU=oU,sU=Ol,lU="horizontal",uU="vertical",cU=["line","bar","candlestick","scatter"],hU={easing:"cubicOut",duration:100,delay:0},pU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return m(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=it(this._onBrush,this),this._onBrushEnd=it(this._onBrushEnd,this)},e.prototype.render=function(e,n,r,i){if(t.prototype.render.apply(this,arguments),sv(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(){lv(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 xo;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=this._orient===lU?{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=Hh(t.option);J(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=o[t])}));var s=Bh(a,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===uU&&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(n!==lU||i?n===lU&&i?{scaleY:a?1:-1,scaleX:-1}:n!==uU||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 sU({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var i=new sU({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:it(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=[],y=f[1]/(i.count()-1),v=0,m=Math.round(i.count()/e[0]);i.each([a],(function(t,e){if(m>0&&e%m)v+=y;else{var n=null==t||isNaN(t)||""===t,r=n?0:Do(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([v,0]),g.push([v,0])),d.push([v,r]),g.push([v,r]),v+=y,h=n}})),s=this._shadowPolygonPts=d,l=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var x=this.dataZoomModel,b=0;b<3;b++){var _=w(1===b);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}function w(t){var e=x.getModel(t?"selectedDataBackground":"dataBackground"),n=new xo,r=new Gg({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Ug({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){J(t.getAxisProxy(i,o).getTargetSeriesModels(),(function(t){if(!n&&!(!0!==e&&X(cU,t.get("type"))<0)){var a,s=r.getComponent(nF(i),o).axis,l=function(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}(i),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:i,otherDim:l,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,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new sU({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new sU({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),J([0,1],(function(e){var o=a.get("handleIcon");!lm[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=hm(o,-1,0,2,2,null,!0);s.attr({cursor:fU(this._orient),draggable:!0,drift:it(this._onDragMove,this,e),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Po(u,this._size[1]),this._handleWidth=l.width/l.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(),Fu(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[e]=s);var h=a.getModel("textStyle");t.add(r[e]=new Zl({silent:!0,invisible:!0,style:pc(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var p=Po(a.get("moveHandleSize"),o[1]),f=e.moveHandle=new Ol({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),d=.8*p,g=e.moveHandleIcon=hm(a.get("moveHandleIcon"),-d/2,-d/2,d,d,"#fff",!0);g.silent=!0,g.y=o[1]+p/2-.5,f.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(p,10));(h=e.moveZone=new Ol({invisible:!0,shape:{y:o[1]-y,height:p+y}})).on("mouseover",(function(){s.enterEmphasis(f)})).on("mouseout",(function(){s.leaveEmphasis(f)})),i.add(f),i.add(g),i.add(h)}h.attr({draggable:!0,cursor:fU(this._orient),drift:it(this._onDragMove,this,"all"),ondragstart:it(this._showDataInfo,this,!0),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Do(t[0],[0,100],e,!0),Do(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];EL(e,r,i,n.get("zoomLock")?"all":t,null!=o.minSpan?Do(o.minSpan,a,i,!0):null,null!=o.maxSpan?Do(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=Eo([Do(r[0],i,a,!0),Do(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=Eo(n.slice()),i=this._size;J([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]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new Ol,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],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=Eo(this._handleEnds.slice());function h(t){var e=Ey(n.handles[t].parent,this.group),a=Ry(0===t?"right":"left",e),s=this._handleWidth/2+5,l=Ny([c[t]+(0===t?-s:s),this._size[1]/2],e);r[t].setStyle({x:l[0],y:l[1],verticalAlign:i===lU?"middle":a,align:i===lU?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 st(r)?r(t,o):lt(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,Ne(r.event);var i=Ny([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 Ke(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=Eo([Do(n.x,r,i,!0),Do(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&&(Ne(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 sU({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?hU:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=iF(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}(pF);function fU(t){return"vertical"===t?"ns-resize":"ew-resize"}var dU=pU;function gU(t){t.registerComponentModel(aU),t.registerComponentView(dU),_F(t)}var yU={get:function(t,e,n){var r=G((vU[t]||{})[e]);return n&&at(r)?r[r.length-1]:r}},vU={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]}},mU=yU,xU=wD.mapVisual,bU=wD.eachVisual,_U=at,wU=J,SU=Eo,MU=Do,IU=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 m(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&qG(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=it(t,this),this.controllerVisuals=XG(this.option.controller,e,t),this.targetVisuals=XG(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=oa(t),e},e.prototype.eachTargetSeries=function(t,e){J(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||["<",">"],at(t)&&(t=t.slice(),r=!0);var l=e?t:r?[u(t[0]),u(t[1])]:u(t);return lt(s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):st(s)?r?s(t[0],t[1]):s(t):r?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(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=SU([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={});H(r,n),H(i,n);var o=this.isCategory();function a(n){_U(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]={},wU(r,(function(t,e){if(wD.isValidType(e)){var n=mU.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";wU(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?r:[r]}),null==l.symbol&&(l.symbol=e&&G(e)||(o?i:[i])),null==l.symbolSize&&(l.symbolSize=n&&G(n)||(o?s[0]:[s[0],s[0]])),l.symbol=xU(l.symbol,(function(t){return"none"===t?i:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;bU(u,(function(t){t>c&&(c=t)})),l.symbolSize=xU(u,(function(t){return MU(t,[0,c],[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}(Yh),TU=IU,AU=[20,140],CU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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]=AU[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=AU[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):at(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),J(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=Eo((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=kU(this,"outOfRange",this.getExtent()),n=kU(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=zc(TU.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}(TU);function kU(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 OU=CU,DU=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 m(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=Mh(e.get("padding")||0),r=t.getBoundingRect();t.add(new Ol({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 l(t,e){o[t]=e}var u=i.controllerVisuals[r||i.getValueState(t)];return J(wD.prepareVisualTypes(u),(function(r){var i=u[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=u.__alphaForOpacity),wD.dependsOn(r,e)&&i&&i.applyVisual(t,s,l)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;Vh(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,r){},e.type="visualMap",e}(Zd),PU=DU,LU=[["left","right","width"],["top","bottom","height"]];function EU(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=LU[a],l=[0,null,10],u={},c=0;c<3;c++)u[LU[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=Bh(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 NU(t,e){return J(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var RU=Do,zU=J,jU=Math.min,BU=Math.max,VU=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 m(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 Zl({style:pc(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=EU(e,this.api,r),s=n.mainGroup=this._createBarGroup(a),l=new xo;s.add(l),l.add(n.outOfRange=FU()),l.add(n.inRange=FU(null,o?HU(this._orient):null,it(this._dragHandle,this,"all",!1),it(this._dragHandle,this,"all",!0))),l.setClipPath(new Ol({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var u=e.textStyleModel.getTextRect("\u56fd"),c=BU(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,r,c,i),this._createHandle(e,s,1,r,c,i)),this._createIndicator(e,s,r,c,i),t.add(s)},e.prototype._createHandle=function(t,e,n,r,i,o){var a=it(this._dragHandle,this,n,!1),s=it(this._dragHandle,this,n,!0),l=io(t.get("handleSize"),r[0]),u=hm(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=HU(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){Ne(t.event)}}),u.x=r[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Yu(u,!0),e.add(u);var h=this.visualMapModel.textStyleModel,p=new Zl({cursor:c,draggable:!0,drift:a,onmousemove:function(t){Ne(t.event)},ondragend:s,style:pc(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var f=[l,0],d=this._shapes;d.handleThumbs[n]=u,d.handleLabelPoints[n]=f,d.handleLabels[n]=p},e.prototype._createIndicator=function(t,e,n,r,i){var o=io(t.get("indicatorSize"),n[0]),a=hm(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 wl){var l=a.style;a.useStyle(U({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);e.add(a);var u=this.visualMapModel.textStyleModel,c=new Zl({silent:!0,invisible:!0,style:pc(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===i?r/2:6)+n[0]/2,0],p=this._shapes;p.indicator=a,p.indicatorLabel=c,p.indicatorLabelPoint=h,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);
vendor: 1,418 bytes, line 2
2this._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():GU(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=[RU(e[0],n,r,!0),RU(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]];EL(e,r,i,t,0);var o=n.getExtent();this._dataInterval=[RU(r[0],i,o,!0),RU(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);
vendor: 22,854 bytes, line 2
2return{barColor:new sy(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 xo("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();zU([0,1],(function(l){var u=i[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=RU(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=Ny(n.handleLabelPoints[l],Ey(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=RU(t,o,s,!0),f=a[0]-h/2,d={x:u.x,y:u.y};u.y=p,u.x=f;var g=Ny(l.indicatorLabelPoint,Ey(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),m="horizontal"===this._orient;y.setStyle({text:(n||"")+i.formatValueText(e),verticalAlign:m?v:"middle",align:m?"center":v});var x={x:f,y:p,style:{fill:c}},b={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(x,_),y.animateTo(b,_)}else u.attr(x),y.attr(b);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]=jU(BU(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=jU(BU(i[0],t),i[1]);var a=function(t,e,n){var r=6,i=t.get("hoverLinkDataSize");i&&(r=RU(i,e,n,!0)/2);return r}(n,o,i),s=[t-a,t+a],l=RU(t,i,o,!0),u=[RU(s[0],i,o,!0),RU(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,"\u2248 ",a));var c=this._hoverLinkDataIndices,h=[];(e||GU(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=fa(t[r].seriesId,null);if(null==o)return;for(var a=oa(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",NU(p[0],n)),this._dispatchHighDown("highlight",NU(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(Qv(t.target,(function(t){var n=Yl(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",NU(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=Ey(e,r?null:this.group);return at(t)?Ny(t,i,n):Ry(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}(PU);function FU(t,e,n,r){return new Gg({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Ne(t.event)},ondragend:r})}function GU(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function HU(t){return"vertical"===t?"ns-resize":"ew-resize"}var WU=VU,UU={type:"selectDataRange",event:"dataRangeSelected",update:"update"},ZU=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},YU=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var r=t.pipelineContext;!e.isTargetSeries(t)||r&&r.large||n.push(function(t,e,n,r){var i={};return J(t,(function(t){var n=wD.prepareVisualTypes(e[t]);i[t]=n})),{progress:function(t,o){var a,s;function l(t){return Xv(o,s,t)}function u(t,e){Kv(o,s,t,e)}null!=r&&(a=o.getDimensionIndex(r));for(var c=o.getStore();null!=(s=t.next());){var h=o.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var p=null!=r?c.get(a,s):s,f=n(p),d=e[f],g=i[f],y=0,v=g.length;y<v;y++){var m=g[y];d[m]&&d[m].applyVisual(p,l,u)}}}}}(e.stateList,e.targetVisuals,it(e.getValueState,e),e.getDataDimensionIndex(t.getData())))})),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(it(XU,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}})),t.getData().setVisual("visualMeta",r)}}];function XU(t,e,n,r){for(var i=e.targetVisuals[r],o=wD.prepareVisualTypes(i),a={color:qv(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 qU=J;function KU(t){var e=t&&t.visualMap;at(e)||(e=e?[e]:[]),qU(e,(function(t){if(t){$U(t,"splitList")&&!$U(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&at(e)&&qU(e,(function(t){ht(t)&&($U(t,"start")&&!$U(t,"min")&&(t.min=t.start),$U(t,"end")&&!$U(t,"max")&&(t.max=t.end))}))}}))}function $U(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var JU=!1;function QU(t){JU||(JU=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(UU,ZU),J(YU,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(KU))}function tZ(t){t.registerComponentModel(OU),t.registerComponentView(WU),QU(t)}var eZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return m(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],nZ[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=G(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=Q(this._pieceList,(function(t){return t=G(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},r=wD.listVisualTypes(),i=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}J(e.pieces,(function(t){J(r,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),J(n,(function(t,n){var r=!1;J(this.stateList,(function(t){r=r||o(e,t,n)||o(e.target,t,n)}),this),!r&&J(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=mU.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,J(r,(function(t,e){var n=this.getSelectedMapKey(t);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;J(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=G(t)},e.prototype.getValueState=function(t){var e=wD.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){wD.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 J(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=zc(TU.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}(TU),nZ={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 l=a===i-1?r[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),Ko(t),J(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;J(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),rZ(e,t)},pieces:function(t){var e=this.option;J(e.pieces,(function(e,n){ht(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],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],p=0;p<3&&null==o[c];p++)o[c]=e[h[p]],a[c]=s[p],u[c]=2===p;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(r.value=o[0])}r.visual=wD.retrieveVisuals(e),t.push(r)}),this),rZ(e,t),Ko(t),J(t,(function(t){var e=t.close,n=[["<","\u2264"][e[1]],[">","\u2265"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function rZ(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var iZ=eZ,oZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(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,l=this._getViewData(),u=l.endsText,c=xt(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),J(l.viewPieceList,(function(r){var l=r.piece,u=new xo;u.onclick=it(this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var p=this.visualMapModel.getValueState(h);u.add(new Zl({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===p?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),jh(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:NU(r.findTargetDataIndices(e),r)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return EU(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 xo,a=this.visualMapModel.textStyleModel;o.add(new Zl({style:pc(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=Q(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(hm(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=G(n.selected),o=e.getSelectedMapKey(t);"single"===r||!0===r?(i[o]=!0,J(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}(PU),aZ=oZ;function sZ(t){t.registerComponentModel(iZ),t.registerComponentView(aZ),QU(t)}var lZ={label:{enabled:!0},decal:{show:!1}},uZ=va(),cZ={};function hZ(t,e){var n=t.getModel("aria");if(n.get("enabled")){var r=G(lZ);H(r.label,t.getLocaleModel().get("aria"),!1),H(n.option,r,!1),function(){if(n.getModel("decal").get("show")){var e=Pt();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),uZ(t).scope=n}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(st(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var r=bp(e.ecModel,e.name,cZ,t.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",u(i,r))}else{var o=e.getRawData(),a={},s=uZ(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var l=o.count();o.each((function(t){var r=a[t],i=o.getName(t)||t+"",c=bp(e.ecModel,i,s,l),h=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",u(h,c))}))}}function u(t,e){var n=t?U(U({},e),t):e;return n.dirty=!0,n}}))}}(),function(){var r=t.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=Z(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,l=t.getSeriesCount(),u=o.get(["data","maxCount"])||10,c=o.get(["series","maxCount"])||10,h=Math.min(l,c);if(l<1)return;var p=function(){var e=t.get("title");e&&e.length&&(e=e[0]);return e&&e.text}();s=p?i(o.get(["general","withTitle"]),{title:p}):o.get(["general","withoutTitle"]);var f=[];s+=i(l>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]),{seriesCount:l}),t.eachSeries((function(e,n){if(n<h){var r=void 0,a=e.get("name")?"withName":"withoutName";r=i(r=l>1?o.get(["series","multiple",a]):o.get(["series","single",a]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(x=e.subType,t.getLocaleModel().get(["series","typeNames"])[x]||"\u81ea\u5b9a\u4e49\u56fe")});var s=e.getData();if(s.count()>u)r+=i(o.get(["data","partialData"]),{displayCnt:u});else r+=o.get(["data","allData"]);for(var c=o.get(["data","separator","middle"]),p=o.get(["data","separator","end"]),d=[],g=0;g<s.count();g++)if(g<u){var y=s.getName(g),v=s.getValues(g),m=o.get(["data",y?"withName":"withoutName"]);d.push(i(m,{name:y,value:v.join(c)}))}r+=d.join(c)+p,f.push(r)}var x}));var d=o.getModel(["series","multiple","separator"]),g=d.get("middle"),y=d.get("end");s+=f.join(g)+y,a.setAttribute("aria-label",s)}()}function i(t,e){if(!lt(t))return t;var n=t;return J(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}}function pZ(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},J(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}var fZ={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},dZ=function(){function t(t){if(null==(this._condVal=lt(t)?new RegExp(t):vt(t)?t:null)){0,zf("")}}return t.prototype.evaluate=function(t){var e=typeof t;return lt(e)?this._condVal.test(t):!!ct(e)&&this._condVal.test(t+"")},t}(),gZ=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),yZ=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}(),vZ=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}(),mZ=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),xZ=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 bZ(t,e){if(!0===t||!1===t){var n=new gZ;return n.value=t,n}return wZ(t)||zf(""),t.and?_Z("and",t,e):t.or?_Z("or",t,e):t.not?function(t,e){var n=t.not,r="";0;wZ(n)||zf(r);var i=new mZ;i.child=bZ(n,e),i.child||zf(r);return i}(t,e):function(t,e){for(var n="",r=e.prepareGetValue(t),i=[],o=rt(t),a=t.parser,s=a?Vf(a):null,l=0;l<o.length;l++){var u=o[l];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var c=Rt(fZ,u)?fZ[u]:u,h=t[u],p=s?s(h):h,f=Uf(c,p)||"reg"===c&&new dZ(p);f||zf(n),i.push(f)}}i.length||zf(n);var d=new xZ;return d.valueGetterParam=r,d.valueParser=s,d.getValue=e.getValue,d.subCondList=i,d}(t,e)}function _Z(t,e,n){var r=e[t];at(r)||zf(""),r.length||zf("");var i="and"===t?new yZ:new vZ;return i.children=Q(r,(function(t){return bZ(t,n)})),i.children.length||zf(""),i}function wZ(t){return ht(t)&&!$(t)}var SZ=function(){function t(t,e){this._cond=bZ(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();var MZ={type:"echarts:filter",transform:function(t){for(var e,n,r,i=t.upstream,o=(n=t.config,r={valueGetterAttrMap:Pt({dimension:!0}),prepareGetValue:function(t){var e=t.dimension;Rt(t,"dimension")||zf("");var n=i.getDimensionInfo(e);return n||zf(""),{dimIdx:n.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new SZ(n,r)),a=[],s=0,l=i.count();s<l;s++)e=i.getRawDataItem(s),o.evaluate()&&a.push(e);return{data:a}}};var IZ={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r="",i=oa(n);i.length||zf(r);var o=[];J(i,(function(t){var n=t.dimension,i=t.order,a=t.parser,s=t.incomparable;if(null==n&&zf(r),"asc"!==i&&"desc"!==i&&zf(r),s&&"min"!==s&&"max"!==s){0,zf("")}if("asc"!==i&&"desc"!==i){0,zf("")}var l=e.getDimensionInfo(n);l||zf(r);var u=a?Vf(a):null;a&&!u&&zf(r),o.push({dimIdx:l.index,parser:u,comparator:new Hf(i,s)})}));var a=e.sourceFormat;a!==Qh&&a!==tp&&zf(r);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var r=0;r<o.length;r++){var i=o[r],a=e.retrieveValueFromItem(t,i.dimIdx),s=e.retrieveValueFromItem(n,i.dimIdx);i.parser&&(a=i.parser(a),s=i.parser(s));var l=i.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};var TZ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return m(e,t),e.prototype.init=function(e,n,r){t.prototype.init.call(this,e,n,r),this._sourceManager=new pd(this),fd(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),fd(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:ip},e}(Yh),AZ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return m(e,t),e.type="dataset",e}(Zd);var CZ=Zs.CMD;function kZ(t,e){return Math.abs(t-e)<1e-5}function OZ(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){kZ(t,r)&&kZ(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,y=p*o+r,v=f*a+i,m=o*l*u,x=a*l*u;e.push(d-m*h,g+x*c,y+m*f,v-x*p,y,v)}for(var y=0;y<s;){var v=a[y++],m=1===y;
vendor: 1,102 bytes, line 2
2switch(m&&(h=u=a[y],p=c=a[y+1],v!==CZ.L&&v!==CZ.C&&v!==CZ.Q||(e=[h,p])),v){case CZ.M:u=h=a[y++],c=p=a[y++],f(h,p);break;case CZ.L:d(u,c,n=a[y++],r=a[y++]),u=n,c=r;break;case CZ.C:e.push(a[y++],a[y++],a[y++],a[y++],u=a[y++],c=a[y++]);break;case CZ.Q:n=a[y++],r=a[y++],i=a[y++],o=a[y++],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 CZ.A:var x=a[y++],b=a[y++],_=a[y++],w=a[y++],S=a[y++],M=a[y++]+S;y+=1;var I=!a[y++];n=Math.cos(S)*_+x,r=Math.sin(S)*w+b,m?f(h=n,p=r):d(u,c,n,r),u=Math.cos(M)*_+x,c=Math.sin(M)*w+b;for(var T=(I?-1:1)*Math.PI/2,A=S;I?A>M:A<M;A+=T){g(A,I?Math.max(A+T,M):Math.min(A+T,M),x,b,_,w)}break;case CZ.R:h=u=a[y++],p=c=a[y++],n=h+a[y++],r=p+a[y++],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 CZ.Z:e&&d(u,c,h,p),u=h,c=p}}return e&&e.length>2&&l.push(e),l}function DZ(t,e,n,r,i,o,a,s,l,u){if(kZ(t,n)&&kZ(e,r)&&kZ(i,a)&&kZ(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,y=r-e,v=i-a,m=o-s,x=g*g+y*y,b=v*v+m*m;if(x<h&&b<h)l.push(a,s);else{var _=p*g+f*y,w=-p*v-f*m;if(x-_*_<h&&_>=0&&b-w*w<h&&w>
vendor: 27,242 bytes, line 2
2=0)l.push(a,s);else{var S=[],M=[];Jn(t,n,i,a,.5,S),Jn(e,r,o,s,.5,M),DZ(S[0],M[0],S[1],M[1],S[2],M[2],S[3],M[3],l,u),DZ(S[4],M[4],S[5],M[5],S[6],M[6],S[7],M[7],l,u)}}}}function PZ(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 LZ(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=PZ([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 y={};c?(y.startAngle=o+p*f,y.endAngle=o+p*(f+1),y.r0=r+d*g,y.r=r+d*(g+1)):(y.startAngle=o+d*g,y.endAngle=o+d*(g+1),y.r0=r+p*f,y.r=r+p*(f+1)),y.clockwise=t.clockwise,y.cx=t.cx,y.cy=t.cy,n.push(y)}}function EZ(t,e,n,r){return t*r-n*e}function NZ(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,p=EZ(c,h,l,u);if(Math.abs(p)<1e-6)return null;var f=EZ(t-i,e-o,c,h)/p;return f<0||f>1?null:new Ke(f*l+t,f*u+e)}function RZ(t,e,n){var r=new Ke;Ke.sub(r,n,e),r.normalize();var i=new Ke;return Ke.sub(i,t,e),i.dot(r)}function zZ(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function jZ(t){var e=t.points,n=[],r=[];bs(e,n,r);var i=new sn(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 Ke,c=new Ke;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=NZ(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&i.push({projPt:RZ(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++)zZ(d,t[o].slice());for(zZ(d,f),zZ(d,p),o=c.idx+1;o<=u.idx+r;o++)zZ(g,t[o%r].slice());return zZ(g,p),zZ(g,f),[{points:d},{points:g}]}(e,u,c)}function BZ(t,e,n,r){if(1===n)r.push(e);else{var i=Math.floor(n/2),o=t(e);BZ(t,o[0],i,r),BZ(t,o[1],n-i,r)}return r}function VZ(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=PZ([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=Ol;break;case"sector":LZ(i,e,r),n=Ng;break;case"circle":LZ({r0:0,r:i.r,startAngle:0,endAngle:2*Math.PI,cx:i.cx,cy:i.cy},e,r),n=Ng;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=Q(function(t,e){var n=OZ(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++];DZ(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)})),l=s.length;if(0===l)BZ(jZ,{points:s[0]},e,r);else if(l===e)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,h=Q(s,(function(t){var e=[],n=[];bs(t,e,n);var r=(n[1]-e[1])*(n[0]-e[0]);return c+=r,{poly:t,area:r}}));h.sort((function(t,e){return e.area-t.area}));var p=e;for(u=0;u<l;u++){var f=h[u];if(p<=0)break;var d=u===l-1?p:Math.ceil(f.area/c*e);d<0||(BZ(jZ,{points:f.poly},d,r),p-=d)}}n=Gg}if(!n)return function(t,e){for(var n=[],r=0;r<e;r++)n.push(fg(t));return n}(t,e);var g,y,v=[];for(u=0;u<r.length;u++){var m=new n;m.setShape(r[u]),g=t,(y=m).setStyle(g.style),y.z=g.z,y.z2=g.z2,y.zlevel=g.zlevel,v.push(m)}return v}function FZ(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],y=a[f++],v=a[f++],m=a[f++],x=a[f++],b=a[f++],_=a[f++];if(p<=0)h.push(y,v,m,x,b,_);else{for(var w=Math.min(p,c-1)+1,S=1;S<=w;S++){var M=S/w;Jn(d,y,m,b,M,i),Jn(g,v,x,_,M,o),d=i[3],g=o[3],h.push(i[1],o[1],i[2],o[2],d,g),y=i[5],v=o[5],m=i[6],x=o[6]}p-=w-1}}return a===t?[h,e]:[t,h]}function GZ(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 HZ(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 WZ(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],y=e[p]-r[0]-d,v=e[p+1]-r[1]-g;h+=y*y+v*v}h<o&&(o=h,a=u)}return a}function UZ(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 ZZ(t){return t.__isCombineMorphing}var YZ="__mOriginal_";function XZ(t,e,n){var r=YZ+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 qZ(t,e){var n=YZ+e;t[n]&&(t[e]=t[n],t[n]=null)}function KZ(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 $Z(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=FZ(l,u))[0],i=h=n[1]):(h=GZ(i||l,l),c=l):(c=GZ(r||u,u),h=u),o.push(c),a.push(h)}return[o,a]}(OZ(n),OZ(r)),o=i[0],a=i[1],s=t.getComputedTransform(),l=e.getComputedTransform();s&&KZ(o,s),l&&KZ(a,l),XZ(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=HZ(s),c=HZ(l);null==i&&(i=u[2]<0!==c[2]<0);var h=[],p=[],f=0,d=1/0,g=[],y=s.length;i&&(s=UZ(s));for(var v=6*WZ(s,l,u,c),m=y-2,x=0;x<m;x+=2){var b=(v+x)%m+2;h[x+2]=s[b]-u[0],h[x+3]=s[b+1]-u[1]}if(h[0]=s[v]-u[0],h[1]=s[v+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),I=0;for(x=0;x<s.length;x+=2){var T=h[x],A=h[x+1],C=l[x]-c[0],k=l[x+1]-c[1],O=C*M-k*S,D=C*S+k*M;g[x]=O,g[x+1]=D;var P=O-T,L=D-A;I+=P*P+L*L}if(I<d){d=I,f=w;for(var E=0;E<g.length;E++)p[E]=g[E]}}else for(var N=0;N<y;N+=2)p[N]=l[N]-c[0],p[N+1]=l[N+1]-c[1];o.push({from:h,to:p,fromCp:u,toCp:c,rotation:-f})}return o}(o,a,10,Math.PI),c=[];XZ(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);le(i,p,f,n);for(var y=0;y<s.length;y+=2){var v=s[y],m=s[y+1],x=v*r+(S=l[y])*n,b=m*r+(M=l[y+1])*n;c[y]=x*g-b*d+i[0],c[y+1]=x*d+b*g+i[1]}var _=c[0],w=c[1];t.moveTo(_,w);for(y=2;y<s.length;){var S=c[y++],M=c[y++],I=c[y++],T=c[y++],A=c[y++],C=c[y++];_===S&&w===M&&I===A&&T===C?t.lineTo(A,C):t.bezierCurveTo(S,M,I,T,A,C),_=A,w=C}}}})}function JZ(t,e,n){if(!t||!e)return e;var r=n.done,i=n.during;return $Z(t,e),e.__morphT=0,e.animateTo({__morphT:1},Z({during:function(t){e.dirtyShape(),i&&i(t)},done:function(){qZ(e,"buildPath"),qZ(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),r&&r()}},n)),e}function QZ(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 tY(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,o=Q(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 Q(o,(function(o,a){return{cp:o,z:QZ(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 eY(t){return VZ(t.path,t.count)}function nY(t){return at(t[0])}function rY(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 iY={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=fg(t.path);i.setStyle("opacity",n),e.push(i)}return e},split:null};function oY(t,e,n,r,i,o){if(t.length&&e.length){var a=Ju("update",r,i);if(a&&a.duration>0){var s,l,u=r.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);nY(t)&&(s=t,l=e),nY(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,p=s?rY(l,s):rY(h?e:t,[h?t:e]),f=0,d=0;d<p.length;d++)f+=p[d].many.length;var g=0;for(d=0;d<p.length;d++)y(p[d],h,g,f),g+=p[d].many.length}}function y(t,e,r,i,a){var s=t.many,l=t.one;if(1!==s.length||a)for(var h=Z({dividePath:iY[n],individualDelay:u&&function(t,e,n,o){return u(t+r,i)}},c),p=e?function(t,e,n){var r=[];!function t(e){for(var n=0;n<e.length;n++){var i=e[n];ZZ(i)?t(i.childrenRef()):i instanceof gl&&r.push(i)}}(t);var i=r.length;if(!i)return{fromIndividuals:[],toIndividuals:[],count:0};var o=(n.dividePath||eY)({path:e,count:i});if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};r=tY(r),o=tY(o);for(var a=n.done,s=n.during,l=n.individualDelay,u=new Ki,c=0;c<i;c++){var h=r[c],p=o[c];p.parent=e,p.copyTransform(u),l||$Z(h,p)}function f(t){for(var e=0;e<o.length;e++)o[e].addSelfToZr(t)}function d(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,qZ(e,"addSelfToZr"),qZ(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return o},XZ(e,"addSelfToZr",{after:function(t){f(t)}}),XZ(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<o.length;e++)o[e].removeSelfFromZr(t)}});var g=o.length;if(l){var y=g,v=function(){0===--y&&(d(),a&&a())};for(c=0;c<g;c++){var m=l?Z({delay:(n.delay||0)+l(c,g,r[c],o[c]),done:v},n):n;JZ(r[c],o[c],m)}}else e.__morphT=0,e.animateTo({__morphT:1},Z({during:function(t){for(var n=0;n<g;n++){var r=o[n];r.__morphT=e.__morphT,r.dirtyShape()}s&&s(t)},done:function(){d();for(var e=0;e<t.length;e++)qZ(t[e],"updateTransform");a&&a()}},n));return e.__zr&&f(e.__zr),{fromIndividuals:r,toIndividuals:o,count:g}}(s,l,h):function(t,e,n){var r=e.length,i=[],o=n.dividePath||eY;if(ZZ(t)){!function t(e){for(var n=0;n<e.length;n++){var r=e[n];ZZ(r)?t(r.childrenRef()):r instanceof gl&&i.push(r)}}(t.childrenRef());var a=i.length;if(a<r)for(var s=0,l=a;l<r;l++)i.push(fg(i[s++%a]));i.length=r}else{i=o({path:t,count:r});var u=t.getComputedTransform();for(l=0;l<i.length;l++)i[l].setLocalTransform(u);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}i=tY(i),e=tY(e);var c=n.individualDelay;for(l=0;l<r;l++){var h=c?Z({delay:(n.delay||0)+c(l,r,i[l],e[l])},n):n;JZ(i[l],e[l],h)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}(l,s,h),f=p.fromIndividuals,d=p.toIndividuals,g=f.length,v=0;v<g;v++){m=u?Z({delay:u(v,g)},c):c;o(f[v],d[v],e?s[v]:t.one,e?t.one:s[v],m)}else{var m,x=e?s[0]:l,b=e?l:s[0];if(ZZ(x))y({many:[x],one:b},!0,r,i,!0);else JZ(x,b,m=u?Z({delay:u(r,i)},c):c),o(x,b,x,b,m)}}}function aY(t){if(!t)return[];if(at(t)){for(var e=[],n=0;n<t.length;n++)e.push(aY(t[n]));return e}var r=[];return t.traverse((function(t){t instanceof gl&&!t.disableMorphing&&!t.invisible&&!t.ignore&&r.push(t)})),r}var sY=1e4,lY=va();function uY(t){var e=[];return J(t,(function(t){var n=t.data;if(!(n.count()>sY))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({dataGroupId:t.dataGroupId,data:n,dim:t.dim||i,divide:t.divide,dataIndex:o})})),e}function cY(t,e,n){t.traverse((function(t){t instanceof gl&&ec(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function hY(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function pY(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function fY(t,e,n){var r=Ju("update",n,e);r&&t.traverse((function(t){if(t instanceof hs){var e=function(t){return $u(t).oldStyle}(t);e&&t.animateFrom({style:e},r)}}))}function dY(t,e,n){var r=uY(t),i=uY(e);function o(t,e,n,r,i){(n||t)&&e.animateFrom({style:n&&n!==t?U(U({},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),l=a(i),u=!1;function c(t,e){return function(n){var r=n.data,i=n.dataIndex;if(e)return r.getId(i);var o=n.dataGroupId,a=t?s||l:l||s,u=a&&r.getDimensionInfo(a),c=u&&u.ordinalMeta;if(u){var h=r.get(u.name,i);return c&&c.categories[h]||h+""}var p=r.getRawDataItem(i);return p&&p.groupId?p.groupId+"":o||r.getId(i)}}var h=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),p={};if(!h)for(var f=0;f<i.length;f++){var d=i[f],g=d.data.getItemGraphicEl(d.dataIndex);g&&(p[g.id]=!0)}function y(t,e){var n=r[e],a=i[t],s=a.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),c=a.data.getItemGraphicEl(a.dataIndex);l!==c?l&&p[l.id]||c&&(pY(c),l?(pY(l),hY(l),u=!0,oY(aY(l),aY(c),a.divide,s,t,o)):cY(c,s,t)):c&&fY(c,a.dataIndex,s)}new Tb(r,i,c(!0,h),c(!1,h),null,"multiple").update(y).updateManyToOne((function(t,e){var n=i[t],a=n.data,s=a.hostModel,l=a.getItemGraphicEl(n.dataIndex),c=et(Q(e,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==l&&!p[t.id]}));l&&(pY(l),c.length?(J(c,(function(t){pY(t),hY(t)})),u=!0,oY(aY(c),aY(l),n.divide,s,t,o)):cY(l,s,n.dataIndex))})).updateOneToMany((function(t,e){var n=r[e],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!p[a.id]){var s=et(Q(t,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==a})),l=i[t[0]].data.hostModel;s.length&&(J(s,(function(t){return pY(t)})),a?(pY(a),hY(a),u=!0,oY(aY(a),aY(s),n.divide,l,t[0],o)):J(s,(function(e){return cY(e,l,t[0])})))}})).updateManyToMany((function(t,e){new Tb(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(),u&&J(e,(function(t){var e=t.data.hostModel,r=e&&n.getViewOfSeriesModel(e),i=Ju("update",e,0);r&&e.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse((function(t){t instanceof gl&&!t.animators.length&&t.animateFrom({style:{opacity:0}},i)}))}))}function gY(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function yY(t){return at(t)?t.sort().join(","):t}function vY(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function mY(t,e){var n=Pt(),r=Pt(),i=Pt();return J(t.oldSeries,(function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=gY(e),l=yY(s);r.set(l,{dataGroupId:o,data:a}),at(s)&&J(s,(function(t){i.set(t,{key:l,dataGroupId:o,data:a})}))})),J(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=gY(t),s=yY(a),l=r.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:vY(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:vY(o),data:o}]});else if(at(a)){0;var u=[];J(a,(function(t){var e=r.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:vY(e.data),data:e.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:e,data:o,divide:vY(o)}]})}else{var c=i.get(a);if(c){var h=n.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:vY(c.data)}],newSeries:[]},n.set(c.key,h)),h.newSeries.push({dataGroupId:e,data:o,divide:vY(o)})}}}})),n}function xY(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}}wb([function(t){t.registerPainter("canvas",KS)}]),wb([function(t){t.registerPainter("svg",sI)}]),wb([function(t){t.registerChartView(WI),t.registerSeriesModel(uI),t.registerLayout(UI("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,XI("line"))},function(t){t.registerChartView(ST),t.registerSeriesModel(JI),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,ot(N_,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,R_("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,XI("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(zT),t.registerSeriesModel(HT),$v("pie",t.registerAction),t.registerLayout(ot(CT,"pie")),t.registerProcessor(kT("pie")),t.registerProcessor(function(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!(ct(r)&&!isNaN(r)&&r<0)}))}}}("pie"))},function(t){wb(JA),t.registerSeriesModel(UT),t.registerChartView($T),t.registerLayout(UI("scatter"))},function(t){wb(mC),t.registerChartView(iC),t.registerSeriesModel(aC),t.registerLayout(QA),t.registerProcessor(kT("radar")),t.registerPreprocessor(nC)},function(t){wb(Jk),t.registerChartView(Ck),t.registerSeriesModel(Ok),t.registerLayout(Pk),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Dk),$v("map",t.registerAction)},function(t){t.registerChartView(vO),t.registerSeriesModel(NO),t.registerLayout(zO),t.registerVisual(jO),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=Xk(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}(t)},function(t){t.registerSeriesModel(HO),t.registerChartView(aD),t.registerVisual(MD),t.registerLayout(zD),function(t){for(var e=0;e<BO.length;e++)t.registerAction({type:BO[e],update:"updateView"},zt);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},(function(e,n){var r=OO(t,["treemapZoomToNode","treemapRootToNode"],e);if(r){var i=e.getViewRoot();i&&(t.direction=PO(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}))}))}(t)},function(t){t.registerChartView(GP),t.registerSeriesModel($P),t.registerProcessor(HD),t.registerVisual(WD),t.registerVisual(ZD),t.registerLayout(iP),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,pP),t.registerLayout(dP),t.registerCoordinateSystem("graphView",{dimensions:Rk.dimensions,create:gP}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},zt),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},zt),t.registerAction(JP,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var r=Xk(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))},function(t){t.registerChartView(iL),t.registerSeriesModel(aL)},function(t){t.registerChartView(cL),t.registerSeriesModel(pL),t.registerLayout(fL),t.registerProcessor(kT("funnel"))},function(t){wb($E),t.registerChartView(xL),t.registerSeriesModel(wL),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,ML)},function(t){t.registerChartView(nN),t.registerSeriesModel(iN),t.registerLayout(oN),t.registerVisual(vN),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(bN),t.registerChartView(AN),t.registerLayout(kN),t.registerTransform(ON)},function(t){t.registerChartView(HN),t.registerSeriesModel(UN),t.registerPreprocessor(ZN),t.registerVisual(JN),t.registerLayout(eR)},function(t){t.registerChartView(aR),t.registerSeriesModel(lR),t.registerLayout(UI("effectScatter"))},function(t){t.registerChartView(_R),t.registerSeriesModel(TR),t.registerLayout(xR),t.registerVisual(CR)},function(t){t.registerChartView(LR),t.registerSeriesModel(NR)},function(t){t.registerChartView(rz),t.registerSeriesModel(oz),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,ot(N_,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,R_("pictorialBar"))},function(t){t.registerChartView(sz),t.registerSeriesModel(uz),t.registerLayout(cz),t.registerProcessor(kT("themeRiver"))},function(t){t.registerChartView(mz),t.registerSeriesModel(_z),t.registerLayout(ot(Sz,"sunburst")),t.registerProcessor(ot(kT,"sunburst")),t.registerVisual(Iz),function(t){t.registerAction({type:dz,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var r=OO(t,[dz],e);if(r){var i=e.getViewRoot();i&&(t.direction=PO(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}))})),t.registerAction({type:gz,update:"none"},(function(t,e,n){t=U({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e){var n=OO(t,[gz],e);n&&(t.dataIndex=n.node.dataIndex)})),n.dispatchAction(U(t,{type:"highlight"}))})),t.registerAction({type:yz,update:"updateView"},(function(t,e,n){t=U({},t),n.dispatchAction(U(t,{type:"downplay"}))}))}(t)},function(t){t.registerChartView(xj),t.registerSeriesModel(Oz)}]),wb((function(t){wb(JA),wb(MB)})),wb((function(t){wb(MB),VA.registerAxisPointerClass("PolarAxisPointer",AB),t.registerCoordinateSystem("polar",UB),t.registerComponentModel(kB),t.registerComponentView(uV),aA(t,"angle",DB,sV),aA(t,"radius",PB,lV),t.registerComponentView(JB),t.registerComponentView(rV),t.registerLayout(ot(aV,"bar"))})),wb(Jk),wb((function(t){wb(MB),VA.registerAxisPointerClass("SingleAxisPointer",DV),t.registerComponentView(PV),t.registerComponentView(gV),t.registerComponentModel(vV),aA(t,"single",vV,vV.defaultOption),t.registerCoordinateSystem("single",MV)})),wb($E),wb((function(t){t.registerComponentModel(NV),t.registerComponentView(zV),t.registerCoordinateSystem("calendar",FV)})),wb((function(t){t.registerComponentModel(ZV),t.registerComponentView(qV),t.registerPreprocessor((function(t){var e=t.graphic;at(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))})),wb((function(t){t.registerComponentModel(CF),t.registerComponentView(DF),IF("saveAsImage",LF),IF("magicType",jF),IF("dataView",YF),IF("dataZoom",xG),IF("restore",JF),wb(wF)})),wb((function(t){wb(MB),t.registerComponentModel(_G),t.registerComponentView(HG),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},zt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},zt)})),wb(MB),wb((function(t){t.registerComponentView(uH),t.registerComponentModel(pH),t.registerPreprocessor(UG),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,rH),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"},zt),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},zt),IF("brush",gH)})),wb((function(t){t.registerComponentModel(yH),t.registerComponentView(vH)})),wb((function(t){t.registerComponentModel(_H),t.registerComponentView(DH),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)}),Z({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(PH)})),wb((function(t){t.registerComponentModel(FH),t.registerComponentView(eW),t.registerPreprocessor((function(t){NH(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))})),wb((function(t){t.registerComponentModel(rW),t.registerComponentView(hW),t.registerPreprocessor((function(t){NH(t.series,"markLine")&&(t.markLine=t.markLine||{})}))})),wb((function(t){t.registerComponentModel(fW),t.registerComponentView(wW),t.registerPreprocessor((function(t){NH(t.series,"markArea")&&(t.markArea=t.markArea||{})}))})),wb((function(t){wb(RW),wb(UW)})),wb((function(t){wb(iU),wb(gU)})),wb(iU),wb(gU),wb((function(t){wb(tZ),wb(sZ)})),wb(tZ),wb(sZ),wb((function(t){t.registerPreprocessor(pZ),t.registerVisual(t.PRIORITY.VISUAL.ARIA,hZ)})),wb((function(t){t.registerTransform(MZ),t.registerTransform(IZ)})),wb((function(t){t.registerComponentModel(TZ),t.registerComponentView(AZ)})),wb((function(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){J(oa(n.seriesTransition),(function(t){J(oa(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][Nd]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var r=lY(e);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)J(oa(i),(function(t){!function(t,e,n,r){var i=[],o=[];J(oa(t.from),(function(t){var n=xY(e.oldSeries,t);n>=0&&i.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:vY(e.oldData[n]),dim:t.dimension})})),J(oa(t.to),(function(t){var r=xY(n.updatedSeries,t);if(r>=0){var i=n.updatedSeries[r].getData();o.push({dataGroupId:e.oldDataGroupIds[r],data:i,divide:vY(i),dim:t.dimension})}})),i.length>0&&o.length>0&&dY(i,o,r)}(t,r,n,e)}));else{var o=mY(r,n);J(o.keys(),(function(t){var n=o.get(t);dY(n.oldSeries,n.newSeries,e)}))}J(n.updatedSeries,(function(t){t[Nd]&&(t[Nd]=!1)}))}for(var a=t.getSeries(),s=r.oldSeries=[],l=r.oldDataGroupIds=[],u=r.oldData=[],c=0;c<a.length;c++){var h=a[c].getData();h.count()<sY&&(s.push(a[c]),l.push(a[c].get("dataGroupId")),u.push(h))}}))})),wb(GS);var bY=n(47313),_Y=n(17302);function wY(t,e){var n={};return e.forEach((function(e){n[e]=t[e]})),n}function SY(t){return"function"===typeof t}var MY=n(89806),IY=n.n(MY),TY=function(t){function e(e){var n=t.call(this,e)||this;return n.echarts=e.echarts,n.ele=null,n.isInitialResize=!0,n}return(0,y.ZT)(e,t),e.prototype.componentDidMount=function(){this.renderNewEch
2arts()},e.prototype.componentDidUpdate=function(t){var e=this.props.shouldSetOption;if(!SY(e)||e(t,this.props)){if(!IY()(t.theme,this.props.theme)||!IY()(t.opts,this.props.opts)||!IY()(t.onEvents,this.props.onEvents))return this.dispose(),void this.renderNewEcharts();var n=["option","notMerge","lazyUpdate","showLoading","loadingOption"];IY()(wY(this.props,n),wY(t,n))||this.updateEChartsOption(),IY()(t.style,this.props.style)&&IY()(t.className,this.props.className)||this.resize()}},e.prototype.componentWillUnmount=function(){this.dispose()},e.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)||this.echarts.init(this.ele,this.props.theme,this.props.opts)},e.prototype.dispose=function(){if(this.ele){try{(0,_Y.ZH)(this.ele)}catch(Og){console.warn(Og)}this.echarts.dispose(this.ele)}},e.prototype.renderNewEcharts=function(){var t=this,e=this.props,n=e.onEvents,r=e.onChartReady,i=this.updateEChartsOption();this.bindEvents(i,n||{}),SY(r)&&r(i),this.ele&&(0,_Y.ak)(this.ele,(function(){t.resize()}))},e.prototype.bindEvents=function(t,e){function n(e,n){"string"===typeof e&&SY(n)&&t.on(e,(function(e){n(e,t)}))}for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n(r,e[r])},e.prototype.updateEChartsOption=function(){var t=this.props,e=t.option,n=t.notMerge,r=void 0!==n&&n,i=t.lazyUpdate,o=void 0!==i&&i,a=t.showLoading,s=t.loadingOption,l=void 0===s?null:s,u=this.getEchartsInstance();return u.setOption(e,r,o),a?u.showLoading(l):u.hideLoading(),u},e.prototype.resize=function(){var t=this.getEchartsInstance();if(!this.isInitialResize)try{t.resize()}catch(Og){console.warn(Og)}this.isInitialResize=!1},e.prototype.render=function(){var t=this,e=this.props,n=e.style,r=e.className,i=void 0===r?"":r,o=(0,y.pi)({height:300},n);return bY.createElement("div",{ref:function(e){t.ele=e},style:o,className:"echarts-for-react "+i})},e}(bY.PureComponent),AY=function(t){function e(e){var n=t.call(this,e)||this;return n.echarts=g,n}return(0,y.ZT)(e,t),e}(TY)},20548:function(t){"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(t,e,r,o,a){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||t,a),l=n?n+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],s]:t._events[l].push(s):(t._events[l]=s,t._eventsCount++),t}function a(t,e){0===--t._eventsCount?t._events=new r:delete t._events[e]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},s.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},s.prototype.emit=function(t,e,r,i,o,a){var s=n?n+t:t;if(!this._events[s])return!1;var l,u,c=this._events[s],h=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),h){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,r),!0;case 4:return c.fn.call(c.context,e,r,i),!0;case 5:return c.fn.call(c.context,e,r,i,o),!0;case 6:return c.fn.call(c.context,e,r,i,o,a),!0}for(u=1,l=new Array(h-1);u<h;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var p,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),h){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,r);break;case 4:c[u].fn.call(c[u].context,e,r,i);break;default:if(!l)for(p=1,l=new Array(h-1);p<h;p++)l[p-1]=arguments[p];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(t,e,n){return o(this,t,e,n,!1)},s.prototype.once=function(t,e,n){return o(this,t,e,n,!0)},s.prototype.removeListener=function(t,e,r,i){var o=n?n+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==e||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==e||i&&!s[l].once||r&&s[l].context!==r)&&u.push(s[l]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&a(this,e)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,t.exp
2orts=s},89806:function(t){"use strict";t.exports=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(i=r;0!==i--;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var a=o[i];if(!t(e[a],n[a]))return!1}return!0}return e!==e&&n!==n}},81725:function(t,e,n){var r=n(70781)(n(7289),"DataView");t.exports=r},59946:function(t,e,n){var r=n(70781)(n(7289),"Promise");t.exports=r},4199:function(t,e,n){var r=n(70781)(n(7289),"Set");t.exports=r},44526:function(t,e,n){var r=n(13109),i=n(85845),o=n(35544);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},17016:function(t,e,n){var r=n(95745),i=n(23653),o=n(43359),a=n(92571),s=n(31698),l=n(85883);function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,t.exports=u},6759:function(t,e,n){var r=n(7289).Uint8Array;t.exports=r},13289:function(t,e,n){var r=n(70781)(n(7289),"WeakMap");t.exports=r},81686:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},93514:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}},74951:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},34405:function(t,e,n){var r=n(99038);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},86722:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},83200:function(t,e,n){var r=n(94499),i=n(52794),o=n(95585),a=n(70667),s=n(30674),l=n(53153),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),c=!n&&i(t),h=!n&&!c&&a(t),p=!n&&!c&&!h&&l(t),f=n||c||h||p,d=f?r(t.length,String):[],g=d.length;for(var y in t)!e&&!u.call(t,y)||f&&("length"==y||h&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,g))||d.push(y);return d}},45349:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},29330:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},61044:function(t){t.exports=function(t){return t.split("")}},46351:function(t,e,n){var r=n(31438);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},2785:function(t,e,n){var r=n(35705),i=n(36428)(r);t.exports=i},84754:function(t,e,n){var r=n(2785);t.exports=function(t,e){var n=!0;return r(t,(function(t,r,i){return n=!!e(t,r,i)})),n}},67022:function(t,e,n){var r=n(72060);t.exports=function(t,e,n){for(var i=-1,o=t.length;++i<o;){var a=t[i],s=e(a);if(null!=s&&(void 0===l?s===s&&!r(s):n(s,l)))var l=s,u=a}return u}},93527:function(t){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},23255:function(t,e,n){var r=n(45349),i=n(99798);t.exports=function t(e,n,o,a,s){var l=-1,u=e.length;for(o||(o=i),s||(s=[]);++l<u;){var c=e[l];n>0&&o(c)?n>1?t(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},15461:function(t,e,n){var r=n(62550)();t.exports=r},35705:function(t,e,n){var r=n(15461),i=n(56385);t.exports=function(t,e){return t&&r(t,e,i)}},92606:function(t,e,n){var r=n(45349),i=n(95585);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},62174:function(t){t.exports=function(t,e){return t>e}},21966:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},99038:function(t,e,n){var r=n(93527),i=n(57700),o=n(13245);t.exports=function(t,e,n){return e===e?o(t,e,n):r(t,i,n)}},51276:function(t,e,n){var r=n(18665),i=n(89752);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},7081:function(t,e,n){var r=n(89110),i=n(89752);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!==e&&n!==n:r(e,n,o,a,t,s))}},89110:function(t,e,n){var r=n(17016),i=n(94132),o=n(89820),a=n(6353),s=n(68466),l=n(95585),u=n(70667),c=n(53153),h="[object Arguments]",p="[object Array]",f="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,g,y,v){var m=l(t),x=l(e),b=m?p:s(t),_=x?p:s(e),w=(b=b==h?f:b)==f,S=(_=_==h?f:_)==f,M=b==_;if(M&&u(t)){if(!u(e))return!1;m=!0,w=!1}if(M&&!w)return v||(v=new r),m||c(t)?i(t,e,n,g,y,v):o(t,e,b,n,g,y,v);if(!(1&n)){var I=w&&d.call(t,"__wrapped__"),T=S&&d.call(e,"__wrapped__");
2if(I||T){var A=I?t.value():t,C=T?e.value():e;return v||(v=new r),y(A,C,n,g,v)}}return!!M&&(v||(v=new r),a(t,e,n,g,y,v))}},19280:function(t,e,n){var r=n(17016),i=n(7081);t.exports=function(t,e,n,o){var a=n.length,s=a,l=!o;if(null==t)return!s;for(t=Object(t);a--;){var u=n[a];if(l&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++a<s;){var c=(u=n[a])[0],h=t[c],p=u[1];if(l&&u[2]){if(void 0===h&&!(c in t))return!1}else{var f=new r;if(o)var d=o(h,p,c,t,e,f);if(!(void 0===d?i(p,h,3,o,f):d))return!1}}return!0}},57700:function(t){t.exports=function(t){return t!==t}},77499:function(t,e,n){var r=n(18665),i=n(44276),o=n(89752),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},81186:function(t,e,n){var r=n(85662),i=n(98768),o=n(19908),a=n(95585),s=n(34445);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},23409:function(t,e,n){var r=n(46132),i=n(8723),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},43225:function(t){t.exports=function(t,e){return t<e}},71839:function(t,e,n){var r=n(2785),i=n(2114);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},85662:function(t,e,n){var r=n(19280),i=n(95113),o=n(22093);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},98768:function(t,e,n){var r=n(7081),i=n(69706),o=n(89775),a=n(98939),s=n(99253),l=n(22093),u=n(60925);t.exports=function(t,e){return a(t)&&s(e)?l(u(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},89318:function(t,e,n){var r=n(95434),i=n(30207),o=n(81186),a=n(71839),s=n(40078),l=n(36902),u=n(49674),c=n(19908),h=n(95585);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return h(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[c];var p=-1;e=r(e,l(o));var f=a(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++p,value:t}}));return s(f,(function(t,e){return u(t,e,n)}))}},61125:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},80171:function(t,e,n){var r=n(30207);t.exports=function(t){return function(e){return r(e,t)}}},2948:function(t){var e=Math.ceil,n=Math.max;t.exports=function(t,r,i,o){for(var a=-1,s=n(e((r-t)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=t,t+=i;return l}},44409:function(t,e,n){var r=n(19908),i=n(25313),o=n(13457);t.exports=function(t,e){return o(i(t,e,r),t+"")}},43145:function(t,e,n){var r=n(83194),i=n(31438),o=n(19908),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},64339:function(t){t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}},23268:function(t,e,n){var r=n(2785);t.exports=function(t,e){var n;return r(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}},40078:function(t){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},94499:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},36902:function(t){t.exports=function(t){return function(e){return t(e)}}},7579:function(t,e,n){var r=n(44526),i=n(34405),o=n(86722),a=n(88905),s=n(56946),l=n(73671);t.exports=function(t,e,n){var u=-1,c=i,h=t.length,p=!0,f=[],d=f;if(n)p=!1,c=o;else if(h>=200){var g=e?null:s(t);if(g)return l(g);p=!1,c=a,d=new r}else d=e?[]:f;t:for(;++u<h;){var y=t[u],v=e?e(y):y;if(y=n||0!==y?y:0,p&&v===v){for(var m=d.length;m--;)if(d[m]===v)continue t;e&&d.push(v),f.push(y)}else c(d,v,n)||(d!==f&&d.push(v),f.push(y))}return f}},88905:function(t){t.exports=function(t,e){return t.has(e)}},73325:function(t,e,n){var r=n(64339);t.exports=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:r(t,e,n)}},85445:function(t,e,n){var r=n(72060);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t===t,a=r(t),s=void 0!==e,l=null===e,u=e===e,c=r(e);
vendor: 4,537 bytes, line 2
2if(!l&&!c&&!a&&t>e||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&t<e||c&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!u)return-1}return 0}},49674:function(t,e,n){var r=n(85445);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,a=e.criteria,s=o.length,l=n.length;++i<s;){var u=r(o[i],a[i]);if(u)return i>=l?u:u*("desc"==n[i]?-1:1)}return t.index-e.index}},36428:function(t,e,n){var r=n(2114);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},62550:function(t){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[t?s:++i];if(!1===n(o[l],l,o))break}return e}}},62797:function(t,e,n){var r=n(73325),i=n(65101),o=n(14817),a=n(11822);t.exports=function(t){return function(e){e=a(e);var n=i(e)?o(e):void 0,s=n?n[0]:e.charAt(0),l=n?r(n,1).join(""):e.slice(1);return s[t]()+l}}},21392:function(t,e,n){var r=n(81186),i=n(2114),o=n(56385);t.exports=function(t){return function(e,n,a){var s=Object(e);if(!i(e)){var l=r(n,3);e=o(e),n=function(t){return l(s[t],t,s)}}var u=t(e,n,a);return u>-1?s[l?e[u]:u]:void 0}}},53934:function(t,e,n){var r=n(2948),i=n(73271),o=n(89103);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?e<n?1:-1:o(a),r(e,n,a,t)}}},56946:function(t,e,n){var r=n(4199),i=n(8568),o=n(73671),a=r&&1/o(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=a},31438:function(t,e,n){var r=n(70781),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=i},94132:function(t,e,n){var r=n(44526),i=n(29330),o=n(88905);t.exports=function(t,e,n,a,s,l){var u=1&n,c=t.length,h=e.length;if(c!=h&&!(u&&h>c))return!1;var p=l.get(t),f=l.get(e);if(p&&f)return p==e&&f==t;var d=-1,g=!0,y=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++d<c;){var v=t[d],m=e[d];if(a)var x=u?a(m,v,d,e,t,l):a(v,m,d,t,e,l);if(void 0!==x){if(x)continue;g=!1;break}if(y){if(!i(e,(function(t,e){if(!o(y,e)&&(v===t||s(v,t,n,a,l)))return y.push(e)}))){g=!1;break}}else if(v!==m&&!s(v,m,n,a,l)){g=!1;break}}return l.delete(t),l.delete(e),g}},89820:function(t,e,n){var r=n(68624),i=n(6759),o=n(83666),a=n(94132),s=n(258),l=n(73671),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;t.exports=function(t,e,n,r,u,h,p){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!h(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var f=s;case"[object Set]":var d=1&r;if(f||(f=l),t.size!=e.size&&!d)return!1;var g=p.get(t);if(g)return g==e;r|=2,p.set(t,e);var y=a(f(t),f(e),r,u,h,p);return p.delete(t),y;case"[object Symbol]":if(c)return c.call(t)==c.call(e)}return!1}},6353:function(t,e,n){var r=n(87253),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var l=1&n,u=r(t),c=u.length;if(c!=r(e).length&&!l)return!1;for(var h=c;h--;){var p=u[h];if(!(l?p in e:i.call(e,p)))return!1}var f=s.get(t),d=s.get(e);if(f&&d)return f==e&&d==t;var g=!0;s.set(t,e),s.set(e,t);for(var y=l;++h<c;){var v=t[p=u[h]],m=e[p];if(o)var x=l?o(m,v,p,e,t,s):o(v,m,p,t,e,s);if(!(void 0===x?v===m||a(v,m,n,o,s):x)){g=!1;break}y||(y="constructor"==p)}if(g&&!y){var b=t.constructor,_=e.constructor;b==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(g=!1)}return s.delete(t),s.delete(e),g}},87253:function(t,e,n){var r=n(92606),i=n(66504),o=n(56385);t.exports=function(t){return r(t,o,i)}},95113:function(t,e,n){var r=n(99253),i=n(56385);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},66504:function(t,e,n){var r=n(74951),i=n(72554),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},68466:function(t,e,n){var r=n(81725),i=n(18579),o=n(59946),a=n(4199),s=n(13289),l=n(18665),u=n(92043),c="[object Map]",h="[object Promise]",p="[object Set]",f="[object WeakMap]",d="[object DataView]",g=u(r),y=u(i),v=u(o),m=u(a),x=u(s),b=l;(r&&b(new r(new ArrayBuffer(1)))!=d||i&&b(new i)!=c||o&&b(o.resolve())!=h||a&&b(ne
vendor: 8,155 bytes, line 2
2w a)!=p||s&&b(new s)!=f)&&(b=function(t){var e=l(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return d;case y:return c;case v:return h;case m:return p;case x:return f}return e}),t.exports=b},81898:function(t,e,n){var r=n(14534),i=n(52794),o=n(95585),a=n(30674),s=n(44276),l=n(60925);t.exports=function(t,e,n){for(var u=-1,c=(e=r(e,t)).length,h=!1;++u<c;){var p=l(e[u]);if(!(h=null!=t&&n(t,p)))break;t=t[p]}return h||++u!=c?h:!!(c=null==t?0:t.length)&&s(c)&&a(p,c)&&(o(t)||i(t))}},65101:function(t){var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},99798:function(t,e,n){var r=n(68624),i=n(52794),o=n(95585),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},30674:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},73271:function(t,e,n){var r=n(83666),i=n(2114),o=n(30674),a=n(91845);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&o(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},46132:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},99253:function(t,e,n){var r=n(91845);t.exports=function(t){return t===t&&!r(t)}},258:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},22093:function(t){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},8723:function(t,e,n){var r=n(9698)(Object.keys,Object);t.exports=r},47785:function(t,e,n){t=n.nmd(t);var r=n(32692),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(e){}}();t.exports=s},9698:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},25313:function(t,e,n){var r=n(81686),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),l=Array(s);++a<s;)l[a]=o[e+a];a=-1;for(var u=Array(e+1);++a<e;)u[a]=o[a];return u[e]=n(l),r(t,this,u)}}},85845:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},35544:function(t){t.exports=function(t){return this.__data__.has(t)}},73671:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},13457:function(t,e,n){var r=n(43145),i=n(71639)(r);t.exports=i},71639:function(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},23653:function(t,e,n){var r=n(95745);t.exports=function(){this.__data__=new r,this.size=0}},43359:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},92571:function(t){t.exports=function(t){return this.__data__.get(t)}},31698:function(t){t.exports=function(t){return this.__data__.has(t)}},85883:function(t,e,n){var r=n(95745),i=n(18579),o=n(13109);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},13245:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},14817:function(t,e,n){var r=n(61044),i=n(65101),o=n(10694);t.exports=function(t){return i(t)?o(t):r(t)}},10694:function(t){var e="\\ud800-\\udfff",n="["+e+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?",c=u+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+u+l+")*"),h="(?:"+[o+r+"?",r,a,s,n].join("|")+")",p=RegExp(i+"(?="+i+")|"+h+c,"g");t.exports=function(t){return t.match(p)||[]}},83194:function(t){t.exports=function(t){return function(){return t}}},85499:function(t,e,n){var r=n(93514),i=n(84754),o=n(81186),a=n(95585),s=n(73271);t.exports=function(t,e,n){var l=a(t)?r:i;return n&&s(t,e,n)&&(e=void 0),l(t,o(e,3))}},23709:function(t,e,n){var r=n(21392)(n(54353));t.exports=r},54353:function(t,e,n){var r=n(93527),i=n(81186),o=n(27260),a=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(t,i(e,3),l)}},73752:function(t,e,n){var r=n(23255),i=n(93428);t.exports=function(t,e){return r(i(t,e),1)}},89775:function(t,e,n){var r=n(21966),i=n(81898);t.exports=function(t,e){return null!=t&&i(t,e,r)}},19908:function(t){t.exports=function(t){return t}},52794:function(t,e,n){var r=n(51276),i=n(89752),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=l},2114:function(t,e,n){var r=n(50375),i=n(44276);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},79877:function(t,e,n){var r=n(18665),i=n(89752);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==r(t)}},70667:function(t,e,n){t=n.nmd(t);var r=n(7289),i=n(95535),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;t.exports=l},48756:function(t,e,n){var r=n(7081);t.exports=function(t,e){return r(t,e)}},44276:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},56783:function(t,e,n){var r=n(79714);t.exports=function(t){return r(t)&&t!=+t}},31450:function(t){t.exports=function(t){return null==t}},79714:function(t,e,n){var r=n(18665),i=n(89752);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},65406:function(t,e,n){var r=n(18665),i=n(95585),o=n(89752);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},53153:function(t,e,n){var r=n(77499),i=n(36902),o=n(47785),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},56385:function(t,e,n){var r=n(83200),i=n(23409),o=n(2114);t.exports=function(t){return o(t)?r(t):i(t)}},12699:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},93428:function(t,e,n){var r=n(95434),i=n(81186),o=n(71839),a=n(95585);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},28463:function(t,e,n){var r=n(46351),i=n(35705),o=n(81186);t.exports=function(t,e){var n={};return e=o(e,3),i(t,(function(t,i,o){r(n,i,e(t,i,o))})),n}},34402:function(t,e,n){var r=n(67022),i=n(62174),o=n(19908);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},51198:function(t,e,n){var r=n(67022),i=n(62174),o=n(81186);t.exports=function(t,e){return t&&t.length?r(t,o(e,2),i):void 0}},82507:function(t,e,n){var r=n(67022),i=n(43225),o=n(19908);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},46873:function(t,e,n){var r=n(67022),i=n(81186),o=n(43225);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},8568:function(t){t.exports=function(){}},34445:function(t,e,n){var r=n(61125),i=n(80171),o=n(98939),a=n(60925);t.exports=function(t){return o(t)?r(a(t)):i(t)}},43575:function(t,e,n){var r=n(53934)();t.exports=r},6366:function(t,e,n){var r=n(29330),i=n(81186),o=n(23268),a=n(95585),s=n(73271);t.exports=function(t,e,n){var l=a(t)?r:o;return n&&s(t,e,n)&&(e=void 0),l(t,i(e,3))}},70163:function(t,e,n){var r=n(23255),i=n(89318),o=n(44409),a=n(73271),s=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},72554:function(t){t.exports=function(){return[]}},95535:function(t){t.exports=function(){return!1}},89103:function(t,e,n){var r=n(57923),i=1/0;t.exports=function(t){return t?(t=r(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t===t?t:0:0===t?t:0}},27260:function(t,e,n){var r=n(89103);t.exports=function(t){var e=r(t),n=e%1;return e===e?n?e-n:e:0}},35487:function(t,e,n){var r=n(81186),i=n(7579);
2t.exports=function(t,e){return t&&t.length?i(t,r(e,2)):[]}},24569:function(t,e,n){var r=n(62797)("toUpperCase");t.exports=r},85486:function(t,e,n){"use strict";n.d(e,{ZP:function(){return ae},bO:function(){return et}});var r=n(47313),i=n(75192),o=n.n(i),a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty;function u(t,e){return function(n,r,i){return t(n,r,i)&&e(n,r,i)}}function c(t){return function(e,n,r){if(!e||!n||"object"!==typeof e||"object"!==typeof n)return t(e,n,r);var i=r.cache,o=i.get(e),a=i.get(n);if(o&&a)return o===n&&a===e;i.set(e,n),i.set(n,e);var s=t(e,n,r);return i.delete(e),i.delete(n),s}}function h(t){return a(t).concat(s(t))}var p=Object.hasOwn||function(t,e){return l.call(t,e)};function f(t,e){return t||e?t===e:t===e||t!==t&&e!==e}var d="_owner",g=Object.getOwnPropertyDescriptor,y=Object.keys;function v(t,e,n){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function m(t,e){return f(t.getTime(),e.getTime())}function x(t,e,n){if(t.size!==e.size)return!1;for(var r,i,o={},a=t.entries(),s=0;(r=a.next())&&!r.done;){for(var l=e.entries(),u=!1,c=0;(i=l.next())&&!i.done;){var h=r.value,p=h[0],f=h[1],d=i.value,g=d[0],y=d[1];u||o[c]||!(u=n.equals(p,g,s,c,t,e,n)&&n.equals(f,y,p,g,t,e,n))||(o[c]=!0),c++}if(!u)return!1;s++}return!0}function b(t,e,n){var r,i=y(t),o=i.length;if(y(e).length!==o)return!1;for(;o-- >0;){if((r=i[o])===d&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!p(e,r)||!n.equals(t[r],e[r],r,r,t,e,n))return!1}return!0}function _(t,e,n){var r,i,o,a=h(t),s=a.length;if(h(e).length!==s)return!1;for(;s-- >0;){if((r=a[s])===d&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!p(e,r))return!1;if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;if(i=g(t,r),o=g(e,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function w(t,e){return f(t.valueOf(),e.valueOf())}function S(t,e){return t.source===e.source&&t.flags===e.flags}function M(t,e,n){if(t.size!==e.size)return!1;for(var r,i,o={},a=t.values();(r=a.next())&&!r.done;){for(var s=e.values(),l=!1,u=0;(i=s.next())&&!i.done;)l||o[u]||!(l=n.equals(r.value,i.value,r.value,i.value,t,e,n))||(o[u]=!0),u++;if(!l)return!1}return!0}function I(t,e){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}var T="[object Arguments]",A="[object Boolean]",C="[object Date]",k="[object Map]",O="[object Number]",D="[object Object]",P="[object RegExp]",L="[object Set]",E="[object String]",N=Array.isArray,R="function"===typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,z=Object.assign,j=Object.prototype.toString.call.bind(Object.prototype.toString);var B=V();V({strict:!0}),V({circular:!0}),V({circular:!0,strict:!0}),V({createInternalComparator:function(){return f}}),V({strict:!0,createInternalComparator:function(){return f}}),V({circular:!0,createInternalComparator:function(){return f}}),V({circular:!0,createInternalComparator:function(){return f},strict:!0});function V(t){void 0===t&&(t={});var e,n=t.circular,r=void 0!==n&&n,i=t.createInternalComparator,o=t.createState,a=t.strict,s=void 0!==a&&a,l=function(t){var e=t.circular,n=t.createCustomConfig,r=t.strict,i={areArraysEqual:r?_:v,areDatesEqual:m,areMapsEqual:r?u(x,_):x,areObjectsEqual:r?_:b,arePrimitiveWrappersEqual:w,areRegExpsEqual:S,areSetsEqual:r?u(M,_):M,areTypedArraysEqual:r?_:I};if(n&&(i=z({},i,n(i))),e){var o=c(i.areArraysEqual),a=c(i.areMapsEqual),s=c(i.areObjectsEqual),l=c(i.areSetsEqual);i=z({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return i}(t),h=function(t){var e=t.areArraysEqual,n=t.areDatesEqual,r=t.areMapsEqual,i=t.areObjectsEqual,o=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,s=t.areSetsEqual,l=t.areTypedArraysEqual;return function(t,u,c){if(t===u)return!0;if(null==t||null==u||"object"!==typeof t||"object"!==typeof u)return t!==t&&u!==u;var h=t.constructor;if(h!==u.constructor)return!1;if(h===Object)return i(t,u,c);if(N(t))return e(t,u,c);if(null!=R&&R(t))return l(t,u,c);if(h===Date)return n(t,u,c);if(h===RegExp)return a(t,u,c);if(h===Map)return r(t,u,c);if(h===Set)return s(t,u,c);var p=j(t);return p===C?n(t,u,c):p===P?a(t,u,c):p===k?r(t,u,c):p===L?s(t,u,c):p===D?"function"!==typeof t.then&&"function"!==typeof u.then&&i(t,u,c):p===T?i(t,u,c):(p===A||p===O||p===E)&&o(t,u,c)}}(l);return function(t){var e=t.circular,n=t.comparator,r=t.createState,i=t.equals,o=t.strict;if(r)return function(t,a){var s=r(),l=s.cache,u=void 0===l?e?new WeakMap:void 0:l,c=s.meta;return n(t,a,{cache:u,equals:i,meta:c,strict:o})};if(e)return function(t,e){return n(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return n(t,e,a)}}({circular:r,comparator:h,createState:o,equals:i?i(h):(e=h,function(t,n,r,i,o,a,s){return e(t,n,s)}),strict:s})}function F(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame((function r(i){n<0&&(n=i),i-n>e?(t(i),n=-1):requestAnimationFrame(r)}))}function G(t){return G="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},G(t)}function H(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return W(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W(t,e)}
2(t)||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.")}()}function W(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}function U(){var t=function(){return null},e=!1,n=function n(r){if(!e){if(Array.isArray(r)){if(!r.length)return;var i=H(r),o=i[0],a=i.slice(1);return"number"===typeof o?void F(n.bind(null,a),o):(n(o),void F(n.bind(null,a)))}"object"===G(r)&&t(r),"function"===typeof r&&r()}};return{stop:function(){e=!0},start:function(t){e=!1,n(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function Z(t){return Z="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},Z(t)}function Y(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 X(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(n),!0).forEach((function(e){q(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function q(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Z(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Z(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var K=["Webkit","Moz","O","ms"],$=["-webkit-","-moz-","-o-","-ms-"],J=["transform","transformOrigin","transition"],Q=function(t){return t},tt=function(t,e){return Object.keys(e).reduce((function(n,r){return X(X({},n),{},q({},r,t(r,e[r])))}),{})},et=function(t){return Object.keys(t).reduce((function(t,e){return X(X({},t),function(t,e){if(-1===J.indexOf(t))return q({},t,Number.isNaN(e)?0:e);var n="transition"===t,r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),i=e;return K.reduce((function(t,o,a){return n&&(i=e.replace(/(transform|transform-origin)/gim,"".concat($[a],"$1"))),X(X({},t),{},q({},o+r,i))}),{})}(e,t[e]))}),t)},nt=function(t,e,n){return t.map((function(t){return"".concat((r=t,r.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(n);var r})).join(",")};function rt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||ot(t,e)||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.")}()}function it(t){return function(t){if(Array.isArray(t))return at(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ot(t)||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.")}()}function ot(t,e){if(t){if("string"===typeof t)return at(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)?at(t,e):void 0}}function at(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}var st=1e-4,lt=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},ut=function(t,e){return t.map((function(t,n){return t*Math.pow(e,n)})).reduce((function(t,e){return t+e}))},ct=function(t,e){return function(n){var r=lt(t,e);return ut(r,n)}},ht=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],i=e[1],o=e[2],a=e[3];
2if(1===e.length)switch(e[0]){case"linear":r=0,i=0,o=1,a=1;break;case"ease":r=.25,i=.1,o=.25,a=1;break;case"ease-in":r=.42,i=0,o=1,a=1;break;case"ease-out":r=.42,i=0,o=.58,a=1;break;case"ease-in-out":r=0,i=0,o=.58,a=1;break;default:var s=e[0].split("(");if("cubic-bezier"===s[0]&&4===s[1].split(")")[0].split(",").length){var l=rt(s[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),4);r=l[0],i=l[1],o=l[2],a=l[3]}}[r,o,i,a].every((function(t){return"number"===typeof t&&t>=0&&t<=1}));var u,c,h=ct(r,o),p=ct(i,a),f=(u=r,c=o,function(t){var e=lt(u,c),n=[].concat(it(e.map((function(t,e){return t*e})).slice(1)),[0]);return ut(n,t)}),d=function(t){for(var e,n=t>1?1:t,r=n,i=0;i<8;++i){var o=h(r)-n,a=f(r);if(Math.abs(o-n)<st||a<st)return p(r);r=(e=r-o/a)>1?1:e<0?0:e}return p(r)};return d.isStepper=!1,d},pt=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0];if("string"===typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ht(r);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,i=void 0===r?8:r,o=t.dt,a=void 0===o?17:o,s=function(t,e,r){var o=r+(-(t-e)*n-r*i)*a/1e3,s=r*a/1e3+t;return Math.abs(s-e)<st&&Math.abs(o)<st?[e,0]:[s,o]};return s.isStepper=!0,s.dt=a,s}();default:if("cubic-bezier"===r.split("(")[0])return ht(r)}return"function"===typeof r?r:null};function ft(t){return ft="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},ft(t)}function dt(t){return function(t){if(Array.isArray(t))return bt(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||xt(t)||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.")}()}function gt(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 yt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gt(Object(n),!0).forEach((function(e){vt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vt(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==ft(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ft(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||xt(t,e)||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.")}()}function xt(t,e){if(t){if("string"===typeof t)return bt(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)?bt(t,e):void 0}}function bt(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}var _t=function(t,e,n){return t+(e-t)*n},wt=function(t){return t.from!==t.to},St=function t(e,n,r){var i=tt((function(t,n){if(wt(n)){var r=mt(e(n.from,n.to,n.velocity),2),i=r[0],o=r[1];return yt(yt({},n),{},{from:i,velocity:o})}return n}),n);return r<1?tt((function(t,e){return wt(e)?yt(yt({},e),{},{velocity:_t(e.velocity,i[t].velocity,r),from:_t(e.from,i[t].from,r)}):e}),n):t(e,i,r-1)},Mt=function(t,e,n,r,i){var o,a,s,l,u=(o=t,a=e,[Object.keys(o),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),c=u.reduce((function(n,r){return yt(yt({},n),{},vt({},r,[t[r],e[r]]))}),{}),h=u.reduce((function(n,r){return yt(yt({},n),{},vt({},r,{from:t[r],velocity:0,to:e[r]}))}),{}),p=-1,f=function(){return null};return f=n.isStepper?function(r){s||(s=r);var o=(r-s)/n.dt;h=St(n,h,o),i(yt(yt(yt({},t),e),tt((function(t,e){return e.from}),h))),s=r,Object.values(h).filter(wt).length&&(p=requestAnimationFrame(f))}:function(o){l||(l=o);var a=(o-l)/r,s=tt((function(t,e){return _t.apply(void 0,dt(e).concat([n(a)]))}),c);if(i(yt(yt(yt({},t),e),s)),a<1)p=requestAnimationFrame(f);else{var u=tt((function(t,e){return _t.apply(void 0,dt(e).concat([n(1)])
2)}),c);i(yt(yt(yt({},t),e),u))}},function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(p)}}};function It(t){return It="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},It(t)}var Tt=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function At(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Ct(t){return function(t){if(Array.isArray(t))return kt(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return kt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kt(t,e)}(t)||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.")}()}function kt(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}function Ot(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 Dt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ot(Object(n),!0).forEach((function(e){Pt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Pt(t,e,n){return(e=Et(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Et(r.key),r)}}function Et(t){var e=function(t,e){if("object"!==It(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==It(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===It(e)?e:String(e)}function Nt(t,e){return Nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nt(t,e)}function Rt(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Bt(t);if(e){var i=Bt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return zt(this,n)}}function zt(t,e){if(e&&("object"===It(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return jt(t)}function jt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bt(t){return Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Bt(t)}var Vt=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nt(t,e)}(a,t);var e,n,i,o=Rt(a);function a(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);var r=(n=o.call(this,t,e)).props,i=r.isActive,s=r.attributeName,l=r.from,u=r.to,c=r.steps,h=r.children,p=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind(jt(n)),n.changeStyle=n.changeStyle.bind(jt(n)),!i||p<=0)return n.state={style:{}},"function"===typeof h&&(n.state={style:u}),zt(n);if(c&&c.length)n.state={style:c[0].style};else if(l){if("function"===typeof h)return n.state={style:l},zt(n);n.state={style:s?Pt({},s,l):l}}else n.state={style:{}};return n}return e=a,(n=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,n=t.canBegin;this.mounted=!0,e&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.isActive,r=e.canBegin,i=e.attributeName,o=e.shouldReAnimate,a=e.to,s=e.from,l=this.state.style;if(r)if(n){if(!(B(t.to,a)&&t.canBegin&&t.isActive)){var u=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var c=u||o?s:t.to;if(this.state&&l){var h={style:i?Pt({},i,c):c};(i&&[i]!==c||!i&&l!==c)&&this.setState(h)}
2this.runAnimation(Dt(Dt({},this.props),{},{from:c,begin:0}))}}else{var p={style:i?Pt({},i,a):a};this.state&&l&&(i&&l[i]!==a||!i&&l!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,n=t.from,r=t.to,i=t.duration,o=t.easing,a=t.begin,s=t.onAnimationEnd,l=t.onAnimationStart,u=Mt(n,r,pt(o),i,this.changeStyle);this.manager.start([l,a,function(){e.stopJSAnimation=u()},i,s])}},{key:"runStepAnimation",value:function(t){var e=this,n=t.steps,r=t.begin,i=t.onAnimationStart,o=n[0],a=o.style,s=o.duration,l=void 0===s?0:s;return this.manager.start([i].concat(Ct(n.reduce((function(t,r,i){if(0===i)return t;var o=r.duration,a=r.easing,s=void 0===a?"ease":a,l=r.style,u=r.properties,c=r.onAnimationEnd,h=i>0?n[i-1]:r,p=u||Object.keys(l);if("function"===typeof s||"spring"===s)return[].concat(Ct(t),[e.runJSAnimation.bind(e,{from:h.style,to:l,duration:o,easing:s}),o]);var f=nt(p,o,s),d=Dt(Dt(Dt({},h.style),l),{},{transition:f});return[].concat(Ct(t),[d,o,c]).filter(Q)}),[a,Math.max(l,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=U());var e=t.begin,n=t.duration,r=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,s=t.onAnimationEnd,l=t.steps,u=t.children,c=this.manager;if(this.unSubscribe=c.subscribe(this.handleStyleChange),"function"!==typeof o&&"function"!==typeof u&&"spring"!==o)if(l.length>1)this.runStepAnimation(t);else{var h=r?Pt({},r,i):i,p=nt(Object.keys(h),n,o);c.start([a,e,Dt(Dt({},h),{},{transition:p}),n,s])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children,n=(t.begin,t.duration),i=(t.attributeName,t.easing,t.isActive),o=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,At(t,Tt)),a=r.Children.count(e),s=et(this.state.style);if("function"===typeof e)return e(s);if(!i||0===a||n<=0)return e;var l=function(t){var e=t.props,n=e.style,i=void 0===n?{}:n,a=e.className;return(0,r.cloneElement)(t,Dt(Dt({},o),{},{style:Dt(Dt({},i),s),className:a}))};return 1===a?l(r.Children.only(e)):r.createElement("div",null,r.Children.map(e,(function(t){return l(t)})))}}])&&Lt(e.prototype,n),i&&Lt(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(r.PureComponent);Vt.displayName="Animate",Vt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},Vt.propTypes={from:o().oneOfType([o().object,o().string]),to:o().oneOfType([o().object,o().string]),attributeName:o().string,duration:o().number,begin:o().number,easing:o().oneOfType([o().string,o().func]),steps:o().arrayOf(o().shape({duration:o().number.isRequired,style:o().object.isRequired,easing:o().oneOfType([o().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),o().func]),properties:o().arrayOf("string"),onAnimationEnd:o().func})),children:o().oneOfType([o().node,o().func]),isActive:o().bool,canBegin:o().bool,onAnimationEnd:o().func,shouldReAnimate:o().bool,onAnimationStart:o().func,onAnimationReStart:o().func};var Ft=Vt,Gt=n(7558),Ht=["children","appearOptions","enterOptions","leaveOptions"];function Wt(t){return Wt="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},Wt(t)}function Ut(){return Ut=Object.assign?Object.assign.bind():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},Ut.apply(this,arguments)}function Zt(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Yt(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 Xt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
2e%2?Yt(Object(n),!0).forEach((function(e){te(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function qt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ee(r.key),r)}}function Kt(t,e){return Kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Kt(t,e)}function $t(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Qt(t);if(e){var i=Qt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Wt(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Jt(t)}(this,n)}}function Jt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qt(t){return Qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qt(t)}function te(t,e,n){return(e=ee(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ee(t){var e=function(t,e){if("object"!==Wt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Wt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Wt(e)?e:String(e)}void 0===Number.isFinite&&(Number.isFinite=function(t){return"number"===typeof t&&isFinite(t)});var ne=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,n=t.duration;return e&&e.length?e.reduce((function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)}),0):Number.isFinite(n)?n:0},re=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Kt(t,e)}(a,t);var e,n,i,o=$t(a);function a(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),te(Jt(t=o.call(this)),"handleEnter",(function(e,n){var r=t.props,i=r.appearOptions,o=r.enterOptions;t.handleStyleActive(n?i:o)})),te(Jt(t),"handleExit",(function(){var e=t.props.leaveOptions;t.handleStyleActive(e)})),t.state={isActive:!1},t}return e=a,(n=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(Xt(Xt({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,n=t.enterOptions,r=t.leaveOptions;return ne(e)+ne(n)+ne(r)}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,i=(e.appearOptions,e.enterOptions,e.leaveOptions,Zt(e,Ht));return r.createElement(Gt.Transition,Ut({},i,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return r.createElement(Ft,t.state,r.Children.only(n))}))}}])&&qt(e.prototype,n),i&&qt(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(r.Component);re.propTypes={appearOptions:o().object,enterOptions:o().object,leaveOptions:o().object,children:o().element};var ie=re;function oe(t){var e=t.component,n=t.children,i=t.appear,o=t.enter,a=t.leave;return r.createElement(Gt.TransitionGroup,{component:e},r.Children.map(n,(function(t,e){return r.createElement(ie,{appearOptions:i,enterOptions:o,leaveOptions:a,key:"child-".concat(e)},t)})))}oe.propTypes={appear:o().object,enter:o().object,leave:o().object,children:o().oneOfType([o().array,o().element]),component:o().any},oe.defaultProps={component:"span"};var ae=Ft},94223:function(t,e,n){"use strict";var r=n(64836);
2e.__esModule=!0,e.default=function(t,e){t.classList?t.classList.add(e):(0,i.default)(t,e)||("string"===typeof t.className?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))};var i=r(n(94965));t.exports=e.default},94965:function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")},t.exports=e.default},35106:function(t){"use strict";function e(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}t.exports=function(t,n){t.classList?t.classList.remove(n):"string"===typeof t.className?t.className=e(t.className,n):t.setAttribute("class",e(t.className&&t.className.baseVal||"",n))}},47528:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;!function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}e.default=t}(n(75192));var r=s(n(94223)),i=s(n(35106)),o=s(n(47313)),a=s(n(14495));n(689);function s(t){return t&&t.__esModule?t:{default:t}}function l(){return l=Object.assign||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},l.apply(this,arguments)}var u=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,r.default)(t,e)}))},c=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,i.default)(t,e)}))},h=function(t){var e,n;function r(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).onEnter=function(t,n){var r=e.getClassNames(n?"appear":"enter").className;e.removeClasses(t,"exit"),u(t,r),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.getClassNames(n?"appear":"enter").activeClassName;e.reflowAndAddClass(t,r),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.getClassNames("appear").doneClassName,i=e.getClassNames("enter").doneClassName,o=n?r+" "+i:i;
2e.removeClasses(t,n?"appear":"enter"),u(t,o),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.getClassNames("exit").className;e.removeClasses(t,"appear"),e.removeClasses(t,"enter"),u(t,n),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.getClassNames("exit").activeClassName;e.reflowAndAddClass(t,n),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.getClassNames("exit").doneClassName;e.removeClasses(t,"exit"),u(t,n),e.props.onExited&&e.props.onExited(t)},e.getClassNames=function(t){var n=e.props.classNames,r="string"===typeof n,i=r?(r&&n?n+"-":"")+t:n[t];return{className:i,activeClassName:r?i+"-active":n[t+"Active"],doneClassName:r?i+"-done":n[t+"Done"]}},e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.removeClasses=function(t,e){var n=this.getClassNames(e),r=n.className,i=n.activeClassName,o=n.doneClassName;r&&c(t,r),i&&c(t,i),o&&c(t,o)},i.reflowAndAddClass=function(t,e){e&&(t&&t.scrollTop,u(t,e))},i.render=function(){var t=l({},this.props);return delete t.classNames,o.default.createElement(a.default,l({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(o.default.Component);h.defaultProps={classNames:""},h.propTypes={};var p=h;e.default=p,t.exports=e.default},92285:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;a(n(75192));var r=a(n(47313)),i=n(1168),o=a(n(79881));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){var e,n;function a(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).handleEnter=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEnter",0,n)},e.handleEntering=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntering",0,n)},e.handleEntered=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntered",0,n)},e.handleExit=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExit",1,n)},e.handleExiting=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExiting",1,n)},e.handleExited=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExited",1,n)},e}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=a.prototype;return s.handleLifecycle=function(t,e,n){var o,a=this.props.children,s=r.default.Children.toArray(a)[e];s.props[t]&&(o=s.props)[t].apply(o,n),this.props[t]&&this.props[t]((0,i.findDOMNode)(this))},s.render=function(){var t=this.props,e=t.children,n=t.in,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,["children","in"]),a=r.default.Children.toArray(e),s=a[0],l=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,r.default.createElement(o.default,i,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);s.propTypes={};var l=s;e.default=l,t.exports=e.default},14495:function(t,e,n){"use strict";e.__esModule=!0,e.default=e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(75192)),i=s(n(47313)),o=s(n(1168)),a=n(65886);n(689);function s(t){return t&&t.__esModule?t:{default:t}}var l="unmounted";e.UNMOUNTED=l;var u="exited";e.EXITED=u;var c="entering";e.ENTERING=c;var h="entered";e.ENTERED=h;var p="exiting";e.EXITING=p;var f=function(t){var e,n;function r(e,n){var r;r=t.call(this,e,n)||this;var i,o=n.transitionGroup,a=o&&!o.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(i=u,r.appearStatus=c):i=h:i=e.unmountOnExit||e.mountOnEnter?l:u,r.state={status:i},r.nextCallback=null,r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(t,e){return t.in&&e.status===l?{status:u}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==c&&n!==h&&(e=c):n!==c&&n!==h||(e=p)}this.updateStatus(!1,e)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!==typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},a.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var n=o.default.findDOMNode(this);e===c?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:l})},a.performEnter=function(t,e){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,o=this.getTimeouts(),a=i?o.appear:o.enter;e||r?(this.props.onEnter(t,i),this.safeSetState({status:c},(function(){n.props.onEntering(t,i),n.onTransitionEnd(t,a,(function(){n.safeSetState({status:h},(function(){n.props.onEntered(t,i)}
2))}))}))):this.safeSetState({status:h},(function(){n.props.onEntered(t)}))},a.performExit=function(t){var e=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(t),this.safeSetState({status:p},(function(){e.props.onExiting(t),e.onTransitionEnd(t,r.exit,(function(){e.safeSetState({status:u},(function(){e.props.onExited(t)}))}))}))):this.safeSetState({status:u},(function(){e.props.onExited(t)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},a.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(t,e,n){this.setNextCallback(n);var r=null==e&&!this.props.addEndListener;t&&!r?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},a.render=function(){var t=this.state.status;if(t===l)return null;var e=this.props,n=e.children,r=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(e,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(t,r);var o=i.default.Children.only(n);return i.default.cloneElement(o,r)},r}(i.default.Component);function d(){}f.contextTypes={transitionGroup:r.object},f.childContextTypes={transitionGroup:function(){}},f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},f.UNMOUNTED=0,f.EXITED=1,f.ENTERING=2,f.ENTERED=3,f.EXITING=4;var g=(0,a.polyfill)(f);e.default=g},79881:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=s(n(75192)),i=s(n(47313)),o=n(65886),a=n(90549);function s(t){return t&&t.__esModule?t:{default:t}}function l(){return l=Object.assign||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},l.apply(this,arguments)}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var c=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},h=function(t){var e,n;function r(e,n){var r,i=(r=t.call(this,e,n)||this).handleExited.bind(u(u(r)));return r.state={handleExited:i,firstRender:!0},r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},o.componentDidMount=function(){this.appeared=!0,this.mounted=!0},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(t,e){var n=e.children,r=e.handleExited;return{children:e.firstRender?(0,a.getInitialChildMapping)(t,r):(0,a.getNextChildMapping)(t,n,r),firstRender:!1}},o.handleExited=function(t,e){var n=(0,a.getChildMapping)(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var n=l({},e.children);return delete n[t.key],{children:n}})))},o.render=function(){var t=this.props,e=t.component,n=t.childFactory,r=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,["component","childFactory"]),o=c(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===e?o:i.default.createElement(e,r,o)},r}(i.default.Component);h.childContextTypes={transitionGroup:r.default.object.isRequired},h.propTypes={},h.defaultProps={component:"div",childFactory:function(t){return t}};var p=(0,o.polyfill)(h);e.default=p,t.exports=e.default},7558:function(t,e,n){"use strict";var r=s(n(47528)),i=s(n(92285)),o=s(n(79881)),a=s(n(14495));function s(t){return t&&t.__esModule?t:{default:t}}t.exports={Transition:a.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:r.default}},90549:function(t,e,n){"use strict";
2e.__esModule=!0,e.getChildMapping=i,e.mergeChildMappings=o,e.getInitialChildMapping=function(t,e){return i(t.children,(function(n){return(0,r.cloneElement)(n,{onExited:e.bind(null,n),in:!0,appear:a(n,"appear",t),enter:a(n,"enter",t),exit:a(n,"exit",t)})}))},e.getNextChildMapping=function(t,e,n){var s=i(t.children),l=o(e,s);return Object.keys(l).forEach((function(i){var o=l[i];if((0,r.isValidElement)(o)){var u=i in e,c=i in s,h=e[i],p=(0,r.isValidElement)(h)&&!h.props.in;!c||u&&!p?c||!u||p?c&&u&&(0,r.isValidElement)(h)&&(l[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:h.props.in,exit:a(o,"exit",t),enter:a(o,"enter",t)})):l[i]=(0,r.cloneElement)(o,{in:!1}):l[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:a(o,"exit",t),enter:a(o,"enter",t)})}})),l};var r=n(47313);function i(t,e){var n=Object.create(null);return t&&r.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&(0,r.isValidElement)(t)?e(t):t}(t)})),n}function o(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,i=Object.create(null),o=[];for(var a in t)a in e?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in e){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}function a(t,e,n){return null!=n[e]?n[e]:t.props[e]}},689:function(t,e,n){"use strict";e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0;var r;(r=n(75192))&&r.__esModule;
2e.timeoutsShape=null;e.classNamesShape=null},62978:function(t,e,n){"use strict";n.d(e,{B:function(){return yi}});var r=n(85499),i=n.n(r),o=n(23709),a=n.n(o),s=n(50375),l=n.n(s),u=n(91909),c=n.n(u),h=n(70163),p=n.n(h),f=n(69706),d=n.n(f),g=n(43575),y=n.n(g),v=n(31450),m=n.n(v),x=n(79877),b=n.n(x),_=n(95585),w=n.n(_),S=n(47313),M=n(46123),I=n.n(M),T=n(70582),A=n(62440),C=n(27068);function k(t,e,n){if(e<1)return[];if(1===e&&void 0===n)return t;for(var r=[],i=0;i<t.length;i+=e){if(void 0!==n&&!0!==n(t[i]))return;r.push(t[i])}return r}var O=n(28463),D=n.n(O);function P(t){return P="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},P(t)}function L(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,z(r.key),r)}}function E(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 N(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?E(Object(n),!0).forEach((function(e){R(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function R(t,e,n){return(e=z(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function z(t){var e=function(t,e){if("object"!==P(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===P(e)?e:String(e)}var j=function(t,e){var n=t.x,r=t.y,i=e.x,o=e.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},B=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}var e,n,r;return e=t,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=e.position;if(void 0!==t){if(r)switch(r){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),n=e[0],r=e[e.length-1];return n<=r?t>=n&&t<=r:t>=r&&t<=n}}],r=[{key:"create",value:function(e){return new t(e)}}],n&&L(e.prototype,n),r&&L(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();R(B,"EPS",1e-4);var V=function(t){var e=Object.keys(t).reduce((function(e,n){return N(N({},e),{},R({},n,B.create(t[n])))}),{});return N(N({},e),{},{apply:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return D()(t,(function(t,n){return e[n].apply(t,{bandAware:r,position:i})}))},isInRange:function(t){return i()(t,(function(t,n){return e[n].isInRange(t)}))}})};var F=function(t){var e=t.width,n=t.height,r=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=r*Math.PI/180,o=Math.atan(n/e),a=i>o&&i<Math.PI-o?n/Math.sin(i):e/Math.cos(i);return Math.abs(a)};function G(t){return G="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},G(t)}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 W(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
2e%2?H(Object(n),!0).forEach((function(e){U(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 U(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==G(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==G(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===G(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Z(t,e,n){var r={width:t.width+e.width,height:t.height+e.height};return F(r,n)}function Y(t,e){var n,r,i=t.angle,o=t.ticks,a=t.tickFormatter,s=t.viewBox,u=t.orientation,c=t.minTickGap,h=t.unit,p=t.fontSize,f=t.letterSpacing,d=s.x,g=s.y,y=s.width,v=s.height,m="top"===u||"bottom"===u?"width":"height",x=(o||[]).slice(),b=h&&"width"===m?(0,A.xE)(h,{fontSize:p,letterSpacing:f}):{width:0,height:0},_=x.length,w=_>=2?(0,T.uY)(x[1].coordinate-x[0].coordinate):1;if(1===w?(n="width"===m?d:g,r="width"===m?d+y:g+v):(n="width"===m?d+y:g+v,r="width"===m?d:g),e){var S=o[_-1],M=l()(a)?a(S.value,_-1):S.value,I="width"===m?Z((0,A.xE)(M,{fontSize:p,letterSpacing:f}),b,i):(0,A.xE)(M,{fontSize:p,letterSpacing:f})[m],C=w*(S.coordinate+w*I/2-r);x[_-1]=S=W(W({},S),{},{tickCoord:C>0?S.coordinate-C*w:S.coordinate}),w*(S.tickCoord-w*I/2-n)>=0&&w*(S.tickCoord+w*I/2-r)<=0&&(r=S.tickCoord-w*(I/2+c),x[_-1]=W(W({},S),{},{isShow:!0}))}for(var k=e?_-1:_,O=0;O<k;O++){var D=x[O],P=l()(a)?a(D.value,O):D.value,L="width"===m?Z((0,A.xE)(P,{fontSize:p,letterSpacing:f}),b,i):(0,A.xE)(P,{fontSize:p,letterSpacing:f})[m];if(0===O){var E=w*(D.coordinate-w*L/2-n);x[O]=D=W(W({},D),{},{tickCoord:E<0?D.coordinate-E*w:D.coordinate})}else x[O]=D=W(W({},D),{},{tickCoord:D.coordinate});w*(D.tickCoord-w*L/2-n)>=0&&w*(D.tickCoord+w*L/2-r)<=0&&(n=D.tickCoord+w*(L/2+c),x[O]=W(W({},D),{},{isShow:!0}))}return x}function X(t,e,n){var r=t.tick,i=t.ticks,o=t.viewBox,a=t.minTickGap,s=t.orientation,u=t.interval,c=t.tickFormatter,h=t.unit,p=t.angle;if(!i||!i.length||!r)return[];if((0,T.hj)(u)||C.x.isSsr)return function(t,e){return k(t,e+1)}(i,"number"===typeof u&&(0,T.hj)(u)?u:0);var f=[];return"equidistantPreserveStart"===u?function(t){for(var e=1,n=k(t,e,(function(t){return t.isShow}));e<=t.length;){if(void 0!==n)return n;n=k(t,++e,(function(t){return t.isShow}))}return t.slice(0,1)}(f=Y({angle:p,ticks:i,tickFormatter:c,viewBox:o,orientation:s,minTickGap:a,unit:h,fontSize:e,letterSpacing:n})):(f="preserveStart"===u||"preserveStartEnd"===u?Y({angle:p,ticks:i,tickFormatter:c,viewBox:o,orientation:s,minTickGap:a,unit:h,fontSize:e,letterSpacing:n},"preserveStartEnd"===u):function(t){var e,n,r=t.angle,i=t.ticks,o=t.tickFormatter,a=t.viewBox,s=t.orientation,u=t.minTickGap,c=t.unit,h=t.fontSize,p=t.letterSpacing,f=a.x,d=a.y,g=a.width,y=a.height,v="top"===s||"bottom"===s?"width":"height",m=c&&"width"===v?(0,A.xE)(c,{fontSize:h,letterSpacing:p}):{width:0,height:0},x=(i||[]).slice(),b=x.length,_=b>=2?(0,T.uY)(x[1].coordinate-x[0].coordinate):1;1===_?(e="width"===v?f:d,n="width"===v?f+g:d+y):(e="width"===v?f+g:d+y,n="width"===v?f:d);for(var w=b-1;w>=0;w--){var S=x[w],M=l()(o)?o(S.value,b-w-1):S.value,I="width"===v?Z((0,A.xE)(M,{fontSize:h,letterSpacing:p}),m,r):(0,A.xE)(M,{fontSize:h,letterSpacing:p})[v];if(w===b-1){var C=_*(S.coordinate+_*I/2-n);x[w]=S=W(W({},S),{},{tickCoord:C>0?S.coordinate-C*_:S.coordinate})}else x[w]=S=W(W({},S),{},{tickCoord:S.coordinate});_*(S.tickCoord-_*I/2-e)>=0&&_*(S.tickCoord+_*I/2-n)<=0&&(n=S.tickCoord-_*(I/2+u),x[w]=W(W({},S),{},{isShow:!0}))}return x}({angle:p,ticks:i,tickFormatter:c,viewBox:o,orientation:s,minTickGap:a,unit:h,fontSize:e,letterSpacing:n}),f.filter((function(t){return t.isShow})))}var q=n(39283),K=n(93018),$=n(35487),J=n.n($),Q=n(85486);function tt(t){return tt="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},tt(t)}function et(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}
2finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return nt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nt(t,e)}(t,e)||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.")}()}function nt(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}function rt(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 it(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rt(Object(n),!0).forEach((function(e){ot(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ot(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==tt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==tt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===tt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function at(t){return w()(t)&&(0,T.P2)(t[0])&&(0,T.P2)(t[1])?t.join(" ~ "):t}var st=function(t){var e=t.separator,n=void 0===e?" : ":e,r=t.contentStyle,i=void 0===r?{}:r,o=t.itemStyle,a=void 0===o?{}:o,s=t.labelStyle,l=void 0===s?{}:s,u=t.payload,c=t.formatter,h=t.itemSorter,f=t.wrapperClassName,d=t.labelClassName,g=t.label,y=t.labelFormatter,v=it({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),x=it({margin:0},l),b=!m()(g),_=b?g:"",w=I()("recharts-default-tooltip",f),M=I()("recharts-tooltip-label",d);return b&&y&&void 0!==u&&null!==u&&(_=y(g,u)),S.createElement("div",{className:w,style:v},S.createElement("p",{className:M,style:x},S.isValidElement(_)?_:"".concat(_)),function(){if(u&&u.length){var t=(h?p()(u,h):u).map((function(t,e){if("none"===t.type)return null;var r=it({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),i=t.formatter||c||at,o=t.value,s=t.name,l=o,h=s;if(i&&null!=l&&null!=h){var p=i(o,s,t,e,u);if(Array.isArray(p)){var f=et(p,2);l=f[0],h=f[1]}else l=p}return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:r},(0,T.P2)(h)?S.createElement("span",{className:"recharts-tooltip-item-name"},h):null,(0,T.P2)(h)?S.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,S.createElement("span",{className:"recharts-tooltip-item-value"},l),S.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return S.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function lt(t){return lt="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},lt(t)}function ut(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 ct(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ut(Object(n),!0).forEach((function(e){yt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ht(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,vt(r.key),r)}}function pt(t,e){return pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pt(t,e)}function ft(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=gt(t);if(e){var i=gt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===lt(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return dt(t)}(this,n)}}function dt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gt(t){return gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gt(t)}function yt(t,e,n){return(e=vt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vt(t){var e=function(t,e){if("object"!==lt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==lt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===lt(e)?e:String(e)}var mt="recharts-tooltip-wrapper";function xt(t){return t.dataKey}var bt=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pt(t,e)}(o,t);var e,n,r,i=ft(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return yt(dt(t=i.call.apply(i,[this].concat(n))),"state",{boxWidth:-1,boxHeight:-1,dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),yt(dt(t),"handleKeyDown",(function(e){"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:ct(ct({},t.state.dismissedAtCoordinate),{},{x:t.props.coordinate.x,y:t.props.coordinate.y})})})),yt(dt(t),"getTranslate",(function(e){var n=e.key,r=e.tooltipDimension,i=e.viewBoxDimension,o=t.props,a=o.allowEscapeViewBox,s=o.reverseDirection,l=o.coordinate,u=o.offset,c=o.position,h=o.viewBox;if(c&&(0,T.hj)(c[n]))return c[n];var p=l[n]-r-u,f=l[n]+u;return a[n]?s[n]?p:f:s[n]?p<h[n]?Math.max(f,h[n]):Math.max(p,h[n]):f+r>h[n]+i?Math.max(p,h[n]):Math.max(f,h[n])})),t}return e=o,(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight;if(t.dismissed?(document.removeEventListener("keydown",this.handleKeyDown),this.props.coordinate.x===this.state.dismissedAtCoordinate.x&&this.props.coordinate.y===this.state.dismissedAtCoordinate.y||this.setState({dismissed:!1})):document.addEventListener("keydown",this.handleKeyDown),this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-e)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===e&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var t,e,n,r=this,i=this.props,o=i.payload,a=i.isAnimationActive,s=i.animationDuration,u=i.animationEasing,c=i.filterNull,h=function(t,e){return!0===t?J()(e,xt):l()(t)?J()(e,t):e}(i.payloadUniqBy,c&&o&&o.length?o.filter((function(t){return!m()(t.value)})):o),p=h&&h.length,f=this.props,d=f.content,g=f.viewBox,y=f.coordinate,v=f.position,x=f.active,b=f.wrapperStyle,_=ct({pointerEvents:"none",visibility:!this.state.dismissed&&x&&p?"visible":"hidden",position:"absolute",top:0,left:0},b);if(v&&(0,T.hj)(v.x)&&(0,T.hj)(v.y))e=v.x,n=v.y;else{var w=this.state,M=w.boxWidth,A=w.boxHeight;M>0&&A>0&&y?(e=this.getTranslate({key:"x",tooltipDimension:M,viewBoxDimension:g.width}),n=this.getTranslate({key:"y",tooltipDimension:A,viewBoxDimension:g.height})):_.visibility="hidden"}_=ct(ct({},(0,Q.bO)({transform:this.props.useTranslate3d?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")})),_),a&&x&&(_=ct(ct({},(0,Q.bO)({transition:"transform ".concat(s,"ms ").concat(u)})),_));var C=I()(mt,(yt(t={},"".concat(mt,"-right"),(0,T.hj)(e)&&y&&(0,T.hj)(y.x)&&e>=y.x),yt(t,"".concat(mt,"-left"),(0,T.hj)(e)&&y&&(0,T.hj)(y.x)&&e<y.x),yt(t,"".concat(mt,"-bottom"),(0,T.hj)(n)&&y&&(0,T.hj)(y.y)&&n>=y.y),yt(t,"".concat(mt,"-top"),(0,T.hj)(n)&&y&&(0,T.hj)(y.y)&&n<y.y),t));return S.createElement("div",{tabIndex:-1,role:"dialog",className:C,style:_,ref:function(t){r.wrapperNode=t}},function(t,e){return S.isValidElement(t)?S.cloneElement(t,e):l()(t)?S.createElement(t,e):S.createElement(st,e)}(d,ct(ct({},this.props),{},{payload:h})))}}])&&ht(e.prototype,n),r&&ht(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(S.PureComponent);yt(bt,"displayName","Tooltip"),yt(bt,"defaultProps",{active:!1,allowEscapeViewBox:{x:!1,y:!1},reverseDirection:{x:!1,y:!1},offset:10,viewBox:{x:0,y:0,height:0,width:0},coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},contentStyle:{},itemStyle:{},labelStyle:{},cursor:!0,trigger:"hover",isAnimationActive:!C.x.isSsr,animationEasing:"ease",animationDuration:400,filterNull:!0,useTranslate3d:!1});var _t=n(87483),wt=n(24569),St=n.n(wt);function Mt(){}function It(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Tt(t){this._context=t}function At(t){this._context=t}function Ct(t){this._context=t}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:It(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:It(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},At.prototype={areaStart:Mt,areaEnd:Mt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:It(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ct.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:It(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var kt=n(15671),Ot=n(43144),Dt=function(){function t(e,n){(0,kt.Z)(this,t),this._context=e,this._x=n}return(0,Ot.Z)(t,[{key:"areaStart",value:function(){this._line=0}},{key:"areaEnd",value:function(){this._line=NaN}},{key:"lineStart",value:function(){this._point=0}},{key:"lineEnd",value:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}},{key:"point",value:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}]),t}();function Pt(t){this._context=t}function Lt(t){this._context=t}function Et(t){return new Lt(t)}function Nt(t){return t<0?-1:1}function Rt(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);
vendor: 4,199 bytes, line 2
2return(Nt(o)+Nt(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function zt(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function jt(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function Bt(t){this._context=t}function Vt(t){this._context=new Ft(t)}function Ft(t){this._context=t}function Gt(t){this._context=t}function Ht(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function Wt(t,e){this._context=t,this._t=e}Pt.prototype={areaStart:Mt,areaEnd:Mt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Lt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},Bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:jt(this,this._t0,zt(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,jt(this,zt(this,n=Rt(this,t,e)),n);break;default:jt(this,this._t0,n=Rt(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Vt.prototype=Object.create(Bt.prototype)).point=function(t,e){Bt.prototype.point.call(this,e,t)},Ft.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},Gt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Ht(t),i=Ht(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var Ut=n(11852),Zt=n(90372),Yt=n(38289);function Xt(t){return t[0]}function qt(t){return t[1]}function Kt(t,e){var n=(0,Zt.Z)(!0),r=null,i=Et,o=null,a=(0,Yt.d)(s);function s(s){var l,u,c,h=(s=(0,Ut.Z)(s)).length,p=!1;for(null==r&&(o=i(c=a())),l=0;l<=h;
2++l)!(l<h&&n(u=s[l],l,s))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+t(u,l,s),+e(u,l,s));if(c)return o=null,c+""||null}return t="function"===typeof t?t:void 0===t?Xt:(0,Zt.Z)(t),e="function"===typeof e?e:void 0===e?qt:(0,Zt.Z)(e),s.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,Zt.Z)(+e),s):t},s.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,Zt.Z)(+t),s):e},s.defined=function(t){return arguments.length?(n="function"===typeof t?t:(0,Zt.Z)(!!t),s):n},s.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),s):i},s.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),s):r},s}function $t(t,e,n){var r=null,i=(0,Zt.Z)(!0),o=null,a=Et,s=null,l=(0,Yt.d)(u);function u(u){var c,h,p,f,d,g=(u=(0,Ut.Z)(u)).length,y=!1,v=new Array(g),m=new Array(g);for(null==o&&(s=a(d=l())),c=0;c<=g;++c){if(!(c<g&&i(f=u[c],c,u))===y)if(y=!y)h=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=c-1;p>=h;--p)s.point(v[p],m[p]);s.lineEnd(),s.areaEnd()}y&&(v[c]=+t(f,c,u),m[c]=+e(f,c,u),s.point(r?+r(f,c,u):v[c],n?+n(f,c,u):m[c]))}if(d)return s=null,d+""||null}function c(){return Kt().defined(i).curve(a).context(o)}return t="function"===typeof t?t:void 0===t?Xt:(0,Zt.Z)(+t),e="function"===typeof e?e:void 0===e?(0,Zt.Z)(0):(0,Zt.Z)(+e),n="function"===typeof n?n:void 0===n?qt:(0,Zt.Z)(+n),u.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,Zt.Z)(+e),r=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:(0,Zt.Z)(+e),u):t},u.x1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:(0,Zt.Z)(+t),u):r},u.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,Zt.Z)(+t),n=null,u):e},u.y0=function(t){return arguments.length?(e="function"===typeof t?t:(0,Zt.Z)(+t),u):e},u.y1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:(0,Zt.Z)(+t),u):n},u.lineX0=u.lineY0=function(){return c().x(t).y(e)},u.lineY1=function(){return c().x(t).y(n)},u.lineX1=function(){return c().x(r).y(e)},u.defined=function(t){return arguments.length?(i="function"===typeof t?t:(0,Zt.Z)(!!t),u):i},u.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),u):a},u.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),u):o},u}var Jt=n(5196),Qt=n(60181);function te(t){return te="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},te(t)}function ee(){return ee=Object.assign?Object.assign.bind():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},ee.apply(this,arguments)}function ne(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 re(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ne(Object(n),!0).forEach((function(e){ie(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ie(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==te(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===te(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var oe={curveBasisClosed:function(t){return new At(t)},curveBasisOpen:function(t){return new Ct(t)},curveBasis:function(t){return new Tt(t)},curveBumpX:function(t){return new Dt(t,!0)},curveBumpY:function(t){return new Dt(t,!1)},curveLinearClosed:function(t){return new Pt(t)},curveLinear:Et,curveMonotoneX:function(t){return new Bt(t)},curveMonotoneY:function(t){return new Vt(t)},curveNatural:function(t){return new Gt(t)},curveStep:function(t){return new Wt(t,.5)},curveStepAfter:function(t){return new Wt(t,1)},curveStepBefore:function(t){return new Wt(t,0)}},ae=function(t){return t.x===+t.x&&t.y===+t.y},se=function(t){return t.x},le=function(t){return t.y},ue=function(t){var e,n=t.type,r=void 0===n?"linear":n,i=t.points,o=void 0===i?[]:i,a=t.baseLine,s=t.layout,u=t.connectNulls,c=void 0!==u&&u,h=function(t,e){if(l()(t))return t;var n="curve".concat(St()(t));return"curveMonotone"!==n&&"curveBump"!==n||!e?oe[n]||Et:oe["".concat(n).concat("vertical"===e?"Y":"X")]}(r,s),p=c?o.filter((function(t){return ae(t)})):o;if(w()(a)){var f=c?a.filter((function(t){return ae(t)})):a,d=p.map((function(t,e){return re(re({},t),{},{base:f[e]})}));return(e="vertical"===s?$t().y(le).x1(se).x0((function(t){return t.base.x})):$t().x(se).y1(le).y0((function(t){return t.base.y}))).defined(ae).curve(h),e(d)}return(e="vertical"===s&&(0,T.hj)(a)?$t().y(le).x1(se).x0(a):(0,T.hj)(a)?$t().x(se).y1(le).y0(a):Kt().x(se).y(le)).defined(ae).curve(h),e(p)},ce=function(t){var e=t.className,n=t.points,r=t.path,i=t.pathRef;if((!n||!n.length)&&!r)return null;var o=n&&n.length?ue(t):r;return S.createElement("path",ee({},(0,Qt.L6)(t),(0,Jt.Ym)(t),{className:I()("recharts-curve",e),d:o,ref:i}))};function he(t){return he="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},he(t)}var pe=["x","y","top","left","width","height","className"];function fe(){return fe=Object.assign?Object.assign.bind():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},fe.apply(this,arguments)}function de(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 ge(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==he(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===he(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ye(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var ve=function(t,e,n,r,i,o){return"M".concat(t,",").concat(i,"v").concat(r,"M").concat(o,",").concat(e,"h").concat(n)},me=function(t){var e=t.x,n=void 0===e?0:e,r=t.y,i=void 0===r?0:r,o=t.top,a=void 0===o?0:o,s=t.left,l=void 0===s?0:s,u=t.width,c=void 0===u?0:u,h=t.height,p=void 0===h?0:h,f=t.className,d=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?de(Object(n),!0).forEach((function(e){ge(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({x:n,y:i,top:a,left:l,width:c,height:p},ye(t,pe));return(0,T.hj)(n)&&(0,T.hj)(i)&&(0,T.hj)(c)&&(0,T.hj)(p)&&(0,T.hj)(a)&&(0,T.hj)(l)?S.createElement("path",fe({},(0,Qt.L6)(d,!0),{className:I()("recharts-cross",f),d:ve(n,i,c,p,a,l)})):null},xe=n(57542);function be(){return be=Object.assign?Object.assign.bind():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},be.apply(this,arguments)}var _e=function(t){var e=t.cx,n=t.cy,r=t.r,i=t.className,o=I()("recharts-dot",i);return e===+e&&n===+n&&r===+r?S.createElement("circle",be({},(0,Qt.L6)(t),(0,Jt.Ym)(t),{className:o,cx:e,cy:n,r:r})):null};function we(t){return we="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},we(t)}function Se(){return Se=Object.assign?Object.assign.bind():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},Se.apply(this,arguments)}function Me(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return Ie(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ie(t,e)}(t,e)||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.")}()}function Ie(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}function Te(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 Ae(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Te(Object(n),!0).forEach((function(e){Ce(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ce(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==we(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==we(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===we(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ke=function(t,e,n,r,i){var o,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,l=n>=0?1:-1,u=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var c=[0,0,0,0],h=0;h<4;h++)c[h]=i[h]>a?a:i[h];o="M".concat(t,",").concat(e+s*c[0]),c[0]>0&&(o+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(t+l*c[0],",").concat(e)),o+="L ".concat(t+n-l*c[1],",").concat(e),c[1]>0&&(o+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,",\n ").concat(t+n,",").concat(e+s*c[1])),o+="L ".concat(t+n,",").concat(e+r-s*c[2]),c[2]>0&&(o+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,",\n ").concat(t+n-l*c[2],",").concat(e+r)),o+="L ".concat(t+l*c[3],",").concat(e+r),c[3]>0&&(o+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,",\n ").concat(t,",").concat(e+r-s*c[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(t,",").concat(e+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+l*p,",").concat(e,"\n L ").concat(t+n-l*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+n,",").concat(e+s*p,"\n L ").concat(t+n,",").concat(e+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+n-l*p,",").concat(e+r,"\n L ").concat(t+l*p,",").concat(e+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t,",").concat(e+r-s*p," Z")}else o="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},Oe=function(t,e){if(!t||!e)return!1;var n=t.x,r=t.y,i=e.x,o=e.y,a=e.width,s=e.height;if(Math.abs(a)>0&&Math.abs(s)>0){var l=Math.min(i,i+a),u=Math.max(i,i+a),c=Math.min(o,o+s),h=Math.max(o,o+s);return n>=l&&n<=u&&r>=c&&r<=h}return!1},De={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Pe=function(t){var e=Ae(Ae({},De),t),n=(0,S.useRef)(),r=Me((0,S.useState)(-1),2),i=r[0],o=r[1];(0,S.useEffect)((function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&o(t)}catch(e){}}),[]);var a=e.x,s=e.y,l=e.width,u=e.height,c=e.radius,h=e.className,p=e.animationEasing,f=e.animationDuration,d=e.animationBegin,g=e.isAnimationActive,y=e.isUpdateAnimationActive;if(a!==+a||s!==+s||l!==+l||u!==+u||0===l||0===u)return null;var v=I()("recharts-rectangle",h);return y?S.createElement(Q.ZP,{canBegin:i>0,from:{width:l,height:u,x:a,y:s},to:{width:l,height:u,x:a,y:s},duration:f,animationEasing:p,isActive:y},(function(t){var r=t.width,o=t.height,a=t.x,s=t.y;return S.createElement(Q.ZP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:f,isActive:g,easing:p},S.createElement("path",Se({},(0,Qt.L6)(e,!0),{className:v,d:ke(a,s,r,o,c),ref:n})))})):S.createElement("path",Se({},(0,Qt.L6)(e,!0),{className:v,d:ke(a,s,l,u,c)}))},Le=n(68268),Ee=n(23991),Ne=n(15432),Re=["viewBox"],ze=["viewBox"],je=["ticks"];function Be(t){return Be="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},Be(t)}function Ve(){return Ve=Object.assign?Object.assign.bind():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},Ve.apply(this,arguments)}function Fe(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 Ge(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fe(Object(n),!0).forEach((function(e){Xe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEac
2h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function He(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function We(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,qe(r.key),r)}}function Ue(t,e){return Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ue(t,e)}function Ze(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ye(t);if(e){var i=Ye(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Be(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Ye(t){return Ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ye(t)}function Xe(t,e,n){return(e=qe(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qe(t){var e=function(t,e){if("object"!==Be(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Be(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Be(e)?e:String(e)}var Ke=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ue(t,e)}(o,t);var e,n,r,i=Ze(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this,t)).state={fontSize:"",letterSpacing:""},e}return e=o,n=[{key:"shouldComponentUpdate",value:function(t,e){var n=t.viewBox,r=He(t,Re),i=this.props,o=i.viewBox,a=He(i,ze);return!(0,Le.w)(n,o)||!(0,Le.w)(r,a)||!(0,Le.w)(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,n,r,i,o,a,s=this.props,l=s.x,u=s.y,c=s.width,h=s.height,p=s.orientation,f=s.tickSize,d=s.mirror,g=s.tickMargin,y=d?-1:1,v=t.tickSize||f,m=(0,T.hj)(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=n=t.coordinate,a=(r=(i=u+ +!d*h)-y*v)-y*g,o=m;break;case"left":r=i=t.coordinate,o=(e=(n=l+ +!d*c)-y*v)-y*g,a=m;break;case"right":r=i=t.coordinate,o=(e=(n=l+ +d*c)+y*v)+y*g,a=m;break;default:e=n=t.coordinate,a=(r=(i=u+ +d*h)+y*v)+y*g,o=m}return{line:{x1:e,y1:r,x2:n,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,n=e.orientation,r=e.mirror;switch(n){case"left":t=r?"start":"end";break;case"right":t=r?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,n=t.mirror,r="end";switch(e){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.orientation,a=t.mirror,s=t.axisLine,l=Ge(Ge(Ge({},(0,Qt.L6)(this.props)),(0,Qt.L6)(s)),{},{fill:"none"});if("top"===o||"bottom"===o){var u=+("top"===o&&!a||"bottom"===o&&a);l=Ge(Ge({},l),{},{x1:e,y1:n+u*i,x2:e+r,y2:n+u*i})}else{var c=+("left"===o&&!a||"right"===o&&a);l=Ge(Ge({},l),{},{x1:e+c*r,y1:n,x2:e+c*r,y2:n+i})}return S.createElement("line",Ve({},l,{className:I()("recharts-cartesian-axis-line",d()(s,"className"))}))}},{key:"renderTicks",value:function(t,e,n){var r=this,i=this.props,a=i.tickLine,s=i.stroke,u=i.tick,c=i.tickFormatter,h=i.unit,p=X(Ge(Ge({},this.props),{},{ticks:t}),e,n),f=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),y=(0,Qt.L6)(this.props),v=(0,Qt.L6)(u),m=Ge(Ge({},y),{},{fill:"none"}
2,(0,Qt.L6)(a)),x=p.map((function(t,e){var n=r.getTickLineCoord(t),i=n.line,x=n.tick,b=Ge(Ge(Ge(Ge({textAnchor:f,verticalAnchor:g},y),{},{stroke:"none",fill:s},v),x),{},{index:e,payload:t,visibleTicksCount:p.length,tickFormatter:c});return S.createElement(K.m,Ve({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e)},(0,Jt.bw)(r.props,t,e)),a&&S.createElement("line",Ve({},m,i,{className:I()("recharts-cartesian-axis-tick-line",d()(a,"className"))})),u&&o.renderTickItem(u,b,"".concat(l()(c)?c(t.value,e):t.value).concat(h||"")))}));return S.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var t=this,e=this.props,n=e.axisLine,r=e.width,i=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var s=this.props,u=s.ticks,c=He(s,je),h=u;return l()(o)&&(h=u&&u.length>0?o(this.props):o(c)),r<=0||i<=0||!h||!h.length?null:S.createElement(K.m,{className:I()("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(h,this.state.fontSize,this.state.letterSpacing),Ne._.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(t,e,n){return S.isValidElement(t)?S.cloneElement(t,e):l()(t)?t(e):S.createElement(Ee.x,Ve({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&We(e.prototype,n),r&&We(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(S.Component);Xe(Ke,"displayName","CartesianAxis"),Xe(Ke,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var $e=n(34042),Je=n(5918);function Qe(t){return Qe="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},Qe(t)}function tn(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 en(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tn(Object(n),!0).forEach((function(e){nn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Qe(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Qe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Qe(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var rn=["Webkit","Moz","O","ms"];function on(t){return on="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},on(t)}function an(){return an=Object.assign?Object.assign.bind():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},an.apply(this,arguments)}function sn(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 ln(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sn(Object(n),!0).forEach((function(e){dn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function un(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,gn(r.key),r)}}
2function cn(t,e){return cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cn(t,e)}function hn(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=fn(t);if(e){var i=fn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===on(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return pn(t)}(this,n)}}function pn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fn(t){return fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fn(t)}function dn(t,e,n){return(e=gn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gn(t){var e=function(t,e){if("object"!==on(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==on(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===on(e)?e:String(e)}var yn=function(t){return t.changedTouches&&!!t.changedTouches.length},vn=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cn(t,e)}(o,t);var e,n,r,i=hn(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),dn(pn(e=i.call(this,t)),"handleDrag",(function(t){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null),e.state.isTravellerMoving?e.handleTravellerMove(t):e.state.isSlideMoving&&e.handleSlideDrag(t)})),dn(pn(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])})),dn(pn(e),"handleDragEnd",(function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1}),e.detachDragEndListener()})),dn(pn(e),"handleLeaveWrapper",(function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))})),dn(pn(e),"handleEnterSlideOrTraveller",(function(){e.setState({isTextActive:!0})})),dn(pn(e),"handleLeaveSlideOrTraveller",(function(){e.setState({isTextActive:!1})})),dn(pn(e),"handleSlideDragStart",(function(t){var n=yn(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),e.attachDragEndListener()})),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(pn(e),"startX"),endX:e.handleTravellerDragStart.bind(pn(e),"endX")},e.state={},e}return e=o,r=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.stroke,a=Math.floor(n+i/2)-1;return S.createElement(S.Fragment,null,S.createElement("rect",{x:e,y:n,width:r,height:i,fill:o,stroke:"none"}),S.createElement("line",{x1:e+1,y1:a,x2:e+r-1,y2:a,fill:"none",stroke:"#fff"}),S.createElement("line",{x1:e+1,y1:a+2,x2:e+r-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return S.isValidElement(t)?S.cloneElement(t,e):l()(t)?t(e):o.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var n=t.data,r=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,s=t.startIndex,l=t.endIndex;if(n!==e.prevData||a!==e.prevUpdateId)return ln({prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r},n&&n.length?function(t){var e=t.data,n=t.startIndex,r=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var s=e.length,l=(0,$e.x)().domain(y()(0,s)).range([i,i+o-a]),u=l.domain().map((function(t){return l(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(r),scale:l,scaleValues:u}}({data:n,width:r,x:i,travellerWidth:o,startIndex:s,endIndex:l}):{scale:null,scaleValues:null});if(e.scale&&(r!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+r-o]);var u=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(t,e){for(var n=0,r=t.length-1;r-n>1;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i}return e>=t[r]?r:n}}],(n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,n=t.endX,r=this.state.scaleValues,i=this.props,a=i.gap,s=i.data.length-1,l=Math.min(e,n),u=Math.max(e,n),c=o.getIndexInRange(r,l),h=o.getIndexInRange(r,u);return{startIndex:c-c%a,endIndex:h===s?s:h-h%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,n=e.data,r=e.tickFormatter,i=e.dataKey,o=(0,Je.F$)(n[t],i,t);return l()(r)?r(o,t):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,n=e.slideMoveStartX,r=e.startX,i=e.endX,o=this.props,a=o.x,s=o.width,l=o.travellerWidth,u=o.startIndex,c=o.endIndex,h=o.onChange,p=t.pageX-n;p>0?p=Math.min(p,a+s-l-i,a+s-l-r):p<0&&(p=Math.max(p,a-r,a-i));var f=this.getIndex({startX:r+p,endX:i+p});f.startIndex===u&&f.endIndex===c||!h||h(f),this.setState({startX:r+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var n=yn(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e,n=this.state,r=n.brushMoveStartX,i=n.movingTravellerId,o=n.endX,a=n.startX,s=this.state[i],l=this.props,u=l.x,c=l.width,h=l.travellerWidth,p=l.onChange,f
2=l.gap,d=l.data,g={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,u+c-h-s):y<0&&(y=Math.max(y,u-s)),g[i]=s+y;var v=this.getIndex(g),m=v.startIndex,x=v.endIndex;this.setState((dn(e={},i,s+y),dn(e,"brushMoveStartX",t.pageX),e),(function(){p&&function(){var t=d.length-1;return"startX"===i&&(o>a?m%f===0:x%f===0)||o<a&&x===t||"endX"===i&&(o>a?x%f===0:m%f===0)||o>a&&x===t}()&&p(v)}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var n=this,r=this.state,i=r.scaleValues,o=r.startX,a=r.endX,s=this.state[e],l=i.indexOf(s);if(-1!==l){var u=l+t;if(!(-1===u||u>=i.length)){var c=i[u];"startX"===e&&c>=a||"endX"===e&&c<=o||this.setState(dn({},e,c),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.fill,a=t.stroke;return S.createElement("rect",{stroke:a,fill:o,x:e,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.data,a=t.children,s=t.padding,l=S.Children.only(a);return l?S.cloneElement(l,{x:e,y:n,width:r,height:i,margin:s,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,e){var n=this,r=this.props,i=r.y,a=r.travellerWidth,s=r.height,l=r.traveller,u=Math.max(t,this.props.x),c=ln(ln({},(0,Qt.L6)(this.props)),{},{x:u,y:i,width:a,height:s});return S.createElement(K.m,{tabIndex:0,role:"slider",className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},o.renderTraveller(l,c))}},{key:"renderSlide",value:function(t,e){var n=this.props,r=n.y,i=n.height,o=n.stroke,a=n.travellerWidth,s=Math.min(t,e)+a,l=Math.max(Math.abs(e-t)-a,0);return S.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:s,y:r,width:l,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,r=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,s=this.state,l=s.startX,u=s.endX,c={pointerEvents:"none",fill:a};return S.createElement(K.m,{className:"recharts-brush-texts"},S.createElement(Ee.x,an({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:r+i/2},c),this.getTextOfTick(e)),S.createElement(Ee.x,an({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+o+5,y:r+i/2},c),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,r=t.children,i=t.x,o=t.y,a=t.width,s=t.height,l=t.alwaysShowText,u=this.state,c=u.startX,h=u.endX,p=u.isTextActive,f=u.isSlideMoving,d=u.isTravellerMoving,g=u.isTravellerFocused;if(!e||!e.length||!(0,T.hj)(i)||!(0,T.hj)(o)||!(0,T.hj)(a)||!(0,T.hj)(s)||a<=0||s<=0)return null;var y=I()("recharts-brush",n),v=1===S.Children.count(r),m=function(t,e){if(!t)return null;var n=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),r=rn.reduce((function(t,r){return en(en({},t),{},nn({},r+n,e))}),{});return r[t]=e,r}("userSelect","none");return S.createElement(K.m,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(c,h),this.renderTravellerLayer(c,"startX"),this.renderTravellerLayer(h,"endX"),(p||f||d||g||l)&&this.renderText())}}])&&un(e.prototype,n),r&&un(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(S.PureComponent);dn(vn,"displayName","Brush"),dn(vn,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var mn=function(t,e){var n=t.alwaysShow,r=t.ifOverflow;return n&&(r="extendDomain"),r===e},xn=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i]};function bn(t){return bn="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},bn(t)}function _n(){return _n=Object.assign?Object.assign.bind():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},_n.apply(this,arguments)}function wn(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 Sn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
2e%2?wn(Object(n),!0).forEach((function(e){Mn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Mn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==bn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==bn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===bn(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function In(t){var e=t.x,n=t.y,r=t.r,i=t.alwaysShow,o=t.clipPathId,a=(0,T.P2)(e),s=(0,T.P2)(n);if(xn(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!s)return null;var l=function(t){var e=t.x,n=t.y,r=t.xAxis,i=t.yAxis,o=V({x:r.scale,y:i.scale}),a=o.apply({x:e,y:n},{bandAware:!0});return mn(t,"discard")&&!o.isInRange(a)?null:a}(t);if(!l)return null;var u=l.x,c=l.y,h=t.shape,p=t.className,f=Sn(Sn({clipPath:mn(t,"hidden")?"url(#".concat(o,")"):void 0},(0,Qt.L6)(t,!0)),{},{cx:u,cy:c});return S.createElement(K.m,{className:I()("recharts-reference-dot",p)},In.renderDot(h,f),Ne._.renderCallByParent(t,{x:u-r,y:c-r,width:2*r,height:2*r}))}In.displayName="ReferenceDot",In.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},In.renderDot=function(t,e){return S.isValidElement(t)?S.cloneElement(t,e):l()(t)?t(e):S.createElement(_e,_n({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};var Tn=n(6366),An=n.n(Tn);function Cn(t){return Cn="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},Cn(t)}function kn(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 On(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kn(Object(n),!0).forEach((function(e){Dn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Dn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Cn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Cn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Cn(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return Ln(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ln(t,e)}(t,e)||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.")}()}function Ln(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}function En(){return En=Object.assign?Object.assign.bind():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},En.apply(this,arguments)}function Nn(t){var e=t.x,n=t.y,r=t.segment,i=t.xAxis,o=t.yAxis,a=t.shape,s=t.className,u=t.alwaysShow,c=t.clipPathId;xn(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=function(t,e,n,r,i){var o=i.viewBox,a=o.x,s=o.y,l=o.width,u=o.height,c=i.position;if(n){var h=i.y,p=i.yAxis.orientation,f=t.y.apply(h,{position:c});if(mn(i,"discard")&&!t.y.isInRange(f))return null;var d=[{x:a+l,y:f},{x:a,y:f}];return"left"===p?d.reverse():d}if(e){var g=i.x,y=i.xAxis.orientation,v=t.x.apply(g,{position:c});if(mn(i,"discard")&&!t.x.isInRange(v))return null;var m=[{x:v,y:s+u},{x:v,y:s}];return"top"===y?m.reverse():m}if(r){var x=i.segment.map((function(e){return t.apply(e,{position:c})}
2));return mn(i,"discard")&&An()(x,(function(e){return!t.isInRange(e)}))?null:x}return null}(V({x:i.scale,y:o.scale}),(0,T.P2)(e),(0,T.P2)(n),r&&2===r.length,t);if(!h)return null;var p=Pn(h,2),f=p[0],d=f.x,g=f.y,y=p[1],v=y.x,m=y.y,x=On(On({clipPath:mn(t,"hidden")?"url(#".concat(c,")"):void 0},(0,Qt.L6)(t,!0)),{},{x1:d,y1:g,x2:v,y2:m});return S.createElement(K.m,{className:I()("recharts-reference-line",s)},function(t,e){return S.isValidElement(t)?S.cloneElement(t,e):l()(t)?t(e):S.createElement("line",En({},e,{className:"recharts-reference-line-line"}))}(a,x),Ne._.renderCallByParent(t,function(t){var e=t.x1,n=t.y1,r=t.x2,i=t.y2;return j({x:e,y:n},{x:r,y:i})}({x1:d,y1:g,x2:v,y2:m})))}function Rn(t){return Rn="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},Rn(t)}function zn(){return zn=Object.assign?Object.assign.bind():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},zn.apply(this,arguments)}function jn(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 Bn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jn(Object(n),!0).forEach((function(e){Vn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Rn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Rn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Rn(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Nn.displayName="ReferenceLine",Nn.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function Fn(t){var e=t.x1,n=t.x2,r=t.y1,i=t.y2,o=t.className,a=t.alwaysShow,s=t.clipPathId;xn(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=(0,T.P2)(e),u=(0,T.P2)(n),c=(0,T.P2)(r),h=(0,T.P2)(i),p=t.shape;if(!l&&!u&&!c&&!h&&!p)return null;var f=function(t,e,n,r,i){var o=i.x1,a=i.x2,s=i.y1,l=i.y2,u=i.xAxis,c=i.yAxis;if(!u||!c)return null;var h=V({x:u.scale,y:c.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(s,{position:"start"}):h.y.rangeMin},f={x:e?h.x.apply(a,{position:"end"}):h.x.rangeMax,y:r?h.y.apply(l,{position:"end"}):h.y.rangeMax};return!mn(i,"discard")||h.isInRange(p)&&h.isInRange(f)?j(p,f):null}(l,u,c,h,t);if(!f&&!p)return null;var d=mn(t,"hidden")?"url(#".concat(s,")"):void 0;return S.createElement(K.m,{className:I()("recharts-reference-area",o)},Fn.renderRect(p,Bn(Bn({clipPath:d},(0,Qt.L6)(t,!0)),f)),Ne._.renderCallByParent(t,f))}function Gn(t){return function(t){if(Array.isArray(t))return Hn(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return Hn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hn(t,e)}(t)||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.")}()}function Hn(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}Fn.displayName="ReferenceArea",Fn.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},Fn.renderRect=function(t,e){return S.isValidElement(t)?S.cloneElement(t,e):l()(t)?t(e):S.createElement(Pe,zn({},e,{className:"recharts-reference-area-rect"}))};var Wn=function(t,e,n,r,i){var o=(0,Qt.NN)(t,Nn),a=(0,Qt.NN)(t,In),s=[].concat(Gn(o),Gn(a)),l=(0,Qt.NN)(t,Fn),u="".concat(r,"Id"),c=r[0],h=e;if(s.length&&(h=s.reduce((function(t,e){if(e.props[u]===n&&mn(e.props,"extendDomain")&&(0,T.hj)(e.props[c])){var r=e.props[c];return[Math.min(t[0],r),Math.max(t[1],r)]}return t}),h)),l.length){var p="".concat(c,"1"),f="".concat(c,"2");h=l.reduce((function(t,e){if(e.props[u]===n&&mn(e.props,"extendDomain")&&(0,T.hj)(e.props[p])&&(0,T.hj)(e.props[f])){var r=e.props[p],i=e.props[f];return[Math.min(t[0],r,i),Math.max(t[1],r,i)]}return t}),h)}return i&&i.length&&(h=i.reduce((function(t,e){return(0,T.hj)(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),h)),h},Un=n(15601),Zn=n(20548),Yn=new(n.n(Zn)());Yn.setMaxListeners&&Yn.setMaxListeners(10);var Xn="recharts.syncMouseEvents";function qn(t){return qn="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},qn(t)}function Kn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Jn(r.key),r)}}function $n(t,e,n){return(e=Jn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jn(t){var e=function(t,e){if("object"!==qn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==qn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===qn(e)?e:String(e)}var Qn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),$n(this,"activeIndex",0),$n(this,"coordinateList",[]),$n(this,"layout","horizontal")}var e,n,r;return e=t,(n=[{key:"setDetails",value:function(t){var e=t.coordinateList,n=void 0===e?[]:e,r=t.container,i=void 0===r?null:r,o=t.layout,a=void 0===o?null:o,s=t.offset,l=void 0===s?null:s,u=t.mouseHandlerCallback,c=void 0===u?null:u;this.coordinateList=null!==n&&void 0!==n?n:this.coordinateList,this.container=null!==i&&void 0!==i?i:this.container,this.layout=null!==a&&void 0!==a?a:this.layout,this.offset=null!==l&&void 0!==l?l:this.offset,this.mouseHandlerCallback=null!==c&&void 0!==c?c:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"spoofMouse",value:function(){if("horizontal"===this.layout&&0!==this.coordinateList.length){var t=this.container.getBoundingClientRect(),e=t.x,n=t.y,r=t.height,i=e+this.coordinateList[this.activeIndex].coordinate,o=n+this.offset.top+r/2;this.mouseHandlerCallback({pageX:i,pageY:o})}}}])&&Kn(e.prototype,n),r&&Kn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),tr=["item"],er=["children","className","width","height","style","compact","title","desc"];function nr(t){return nr="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},nr(t)}function rr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||pr(t,e)||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.")}()}function ir(){return ir=Object.assign?Object.assign.bind():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},ir.apply(this,arguments)}function or(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function ar(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,vr(r.key),r)}}function sr(t,e){return sr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},sr(t,e)}function lr(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=cr(t);if(e){var i=cr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===nr(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ur(t)}(this,n)}}function ur(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function cr(t){return cr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cr(t)}function hr(t){return function(t){if(Array.isArray(t))return fr(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||pr(t)||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.")}()}function pr(t,e){if(t){if("string"===typeof t)return fr(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)?fr(t,e):void 0}}function fr(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}function dr(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 gr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
2e%2?dr(Object(n),!0).forEach((function(e){yr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function yr(t,e,n){return(e=vr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vr(t){var e=function(t,e){if("object"!==nr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==nr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===nr(e)?e:String(e)}var mr={xAxis:["bottom","top"],yAxis:["left","right"]},xr={x:0,y:0},br=Number.isFinite?Number.isFinite:isFinite,_r="function"===typeof requestAnimationFrame?requestAnimationFrame:"function"===typeof setImmediate?setImmediate:setTimeout,wr="function"===typeof cancelAnimationFrame?cancelAnimationFrame:"function"===typeof clearImmediate?clearImmediate:clearTimeout,Sr=function(t,e,n){var r=e.graphicalItems,i=e.dataStartIndex,o=e.dataEndIndex,a=(r||[]).reduce((function(t,e){var n=e.props.data;return n&&n.length?[].concat(hr(t),hr(n)):t}),[]);return a&&a.length>0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:t&&t.length&&(0,T.hj)(i)&&(0,T.hj)(o)?t.slice(i,o+1):[]};function Mr(t){return"number"===t?[0,"auto"]:void 0}var Ir=function(t,e,n,r){var i=t.graphicalItems,o=t.tooltipAxis,a=Sr(e,t);return n<0||!i||!i.length||n>=a.length?null:i.reduce((function(t,e){if(e.props.hide)return t;var i,s=e.props.data;if(o.dataKey&&!o.allowDuplicatedCategory){var l=void 0===s?a:s;i=(0,T.Ap)(l,o.dataKey,r)}else i=s&&s[n]||a[n];return i?[].concat(hr(t),[(0,Je.Qo)(e,i)]):t}),[])},Tr=function(t,e,n,r){var i=r||{x:t.chartX,y:t.chartY},o=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(i,n),a=t.orderedTooltipTicks,s=t.tooltipAxis,l=t.tooltipTicks,u=(0,Je.VO)(o,a,l,s);if(u>=0&&l){var c=l[u]&&l[u].value,h=Ir(t,e,u,c),p=function(t,e,n,r){var i=e.find((function(t){return t&&t.index===n}));if(i){if("horizontal"===t)return{x:i.coordinate,y:r.y};if("vertical"===t)return{x:r.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=r.radius;return gr(gr(gr({},r),(0,Un.op)(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var s=i.coordinate,l=r.angle;return gr(gr(gr({},r),(0,Un.op)(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return xr}(n,a,u,i);return{activeTooltipIndex:u,activeLabel:c,activePayload:h,activeCoordinate:p}}return null},Ar=function(t,e){var n=e.axes,r=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,s=e.dataStartIndex,l=e.dataEndIndex,u=t.layout,c=t.children,h=t.stackOffset,p=(0,Je.NA)(u,i);return n.reduce((function(e,n){var f,d=n.props,g=d.type,v=d.dataKey,x=d.allowDataOverflow,b=d.allowDuplicatedCategory,_=d.scale,w=d.ticks,S=d.includeHidden,M=n.props[o];if(e[M])return e;var I,A,C,k=Sr(t.data,{graphicalItems:r.filter((function(t){return t.props[o]===M})),dataStartIndex:s,dataEndIndex:l}),O=k.length;(function(t,e,n){if("number"===n&&!0===e&&Array.isArray(t)){var r=null===t||void 0===t?void 0:t[0],i=null===t||void 0===t?void 0:t[1];if(r&&i&&(0,T.hj)(r)&&(0,T.hj)(i))return!0}return!1})(n.props.domain,x,g)&&(I=(0,Je.LG)(n.props.domain,null,x),!p||"number"!==g&&"auto"===_||(C=(0,Je.gF)(k,v,"category")));var D=Mr(g);if(!I||0===I.length){var P,L=null!==(P=n.props.domain)&&void 0!==P?P:D;if(v){if(I=(0,Je.gF)(k,v,g),"category"===g&&p){var E=(0,T.bv)(I);b&&E?(A=I,I=y()(0,O)):b||(I=(0,Je.ko)(L,I,n).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(hr(t),[e])}),[]))}else if("category"===g)I=b?I.filter((function(t){return""!==t&&!m()(t)})):(0,Je.ko)(L,I,n).reduce((function(t,e){return t.indexOf(e)>=0||""===e||m()(e)?t:[].concat(hr(t),[e])}),[]);else if("number"===g){var N=(0,Je.ZI)(k,r.filter((function(t){return t.props[o]===M&&(S||!t.props.hide)})),v,i,u);N&&(I=N)}!p||"number"!==g&&"auto"===_||(C=(0,Je.gF)(k,v,"category"))}else I=p?y()(0,O):a&&a[M]&&a[M].hasStack&&"number"===g?"expand"===h?[0,1]:(0,Je.EB)(a[M].stackGroups,s,l):(0,Je.s6)(k,r.filter((function(t){return t.props[o]===M&&(S||!t.props.hide)})),g,u,!0);if("number"===g)I=Wn(c,I,M,i,w),L&&(I=(0,Je.LG)(L,I,x));else if("category"===g&&L){var R=L;I.every((function(t){return R.indexOf(t)>=0}))&&(I=R)}}return gr(gr({},e),{},yr({},M,gr(gr({},n.props),{}
2,{axisType:i,domain:I,categoricalDomain:C,duplicateDomain:A,originalDomain:null!==(f=n.props.domain)&&void 0!==f?f:D,isCategorical:p,layout:u})))}),{})},Cr=function(t,e){var n=e.axisType,r=void 0===n?"xAxis":n,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,s=e.dataStartIndex,l=e.dataEndIndex,u=t.children,c="".concat(r,"Id"),h=(0,Qt.NN)(u,i),p={};return h&&h.length?p=Ar(t,{axes:h,graphicalItems:o,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:s,dataEndIndex:l}):o&&o.length&&(p=function(t,e){var n=e.graphicalItems,r=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,s=e.dataStartIndex,l=e.dataEndIndex,u=t.layout,c=t.children,h=Sr(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),p=h.length,f=(0,Je.NA)(u,i),g=-1;return n.reduce((function(t,e){var v,m=e.props[o],x=Mr("number");return t[m]?t:(g++,f?v=y()(0,p):a&&a[m]&&a[m].hasStack?(v=(0,Je.EB)(a[m].stackGroups,s,l),v=Wn(c,v,m,i)):(v=(0,Je.LG)(x,(0,Je.s6)(h,n.filter((function(t){return t.props[o]===m&&!t.props.hide})),"number",u),r.defaultProps.allowDataOverflow),v=Wn(c,v,m,i)),gr(gr({},t),{},yr({},m,gr(gr({axisType:i},r.defaultProps),{},{hide:!0,orientation:d()(mr,"".concat(i,".").concat(g%2),null),domain:v,originalDomain:x,isCategorical:f,layout:u}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:s,dataEndIndex:l})),p},kr=function(t){var e,n,r=t.children,i=t.defaultShowTooltip,o=(0,Qt.sP)(r,vn);return{chartX:0,chartY:0,dataStartIndex:o&&o.props&&o.props.startIndex||
20,dataEndIndex:void 0!==(null===o||void 0===o||null===(e=o.props)||void 0===e?void 0:e.endIndex)?null===o||void 0===o||null===(n=o.props)||void 0===n?void 0:n.endIndex:t.data&&t.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!m()(i)&&i}},Or=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Dr=["points","className","baseLinePoints","connectNulls"];function Pr(){return Pr=Object.assign?Object.assign.bind():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},Pr.apply(this,arguments)}function Lr(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Er(t){return function(t){if(Array.isArray(t))return Nr(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return Nr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nr(t,e)}(t)||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.")}()}function Nr(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}var Rr=function(t){return t&&t.x===+t.x&&t.y===+t.y},zr=function(t,e){var n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[[]];return t.forEach((function(t){Rr(t)?e[e.length-1].push(t):e[e.length-1].length>0&&e.push([])})),Rr(t[0])&&e[e.length-1].push(t[0]),e[e.length-1].length<=0&&(e=e.slice(0,-1)),e}(t);e&&(n=[n.reduce((function(t,e){return[].concat(Er(t),Er(e))}),[])]);var r=n.map((function(t){return t.reduce((function(t,e,n){return"".concat(t).concat(0===n?"M":"L").concat(e.x,",").concat(e.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},jr=function(t){var e=t.points,n=t.className,r=t.baseLinePoints,i=t.connectNulls,o=Lr(t,Dr);if(!e||!e.length)return null;var a=I()("recharts-polygon",n);if(r&&r.length){var s=o.stroke&&"none"!==o.stroke,l=function(t,e,n){var r=zr(t,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(zr(e.reverse(),n).slice(1))}(e,r,i);return S.createElement("g",{className:a},S.createElement("path",Pr({},(0,Qt.L6)(o,!0),{fill:"Z"===l.slice(-1)?o.fill:"none",stroke:"none",d:l})),s?S.createElement("path",Pr({},(0,Qt.L6)(o,!0),{fill:"none",d:zr(e,i)})):null,s?S.createElement("path",Pr({},(0,Qt.L6)(o,!0),{fill:"none",d:zr(r,i)})):null)}var u=zr(e,i);return S.createElement("path",Pr({},(0,Qt.L6)(o,!0),{fill:"Z"===u.slice(-1)?o.fill:"none",className:a,d:u}))};function Br(t){return Br="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},Br(t)}function Vr(){return Vr=Object.assign?Object.assign.bind():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},Vr.apply(this,arguments)}function Fr(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 Gr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
2e%2?Fr(Object(n),!0).forEach((function(e){Yr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Hr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Xr(r.key),r)}}function Wr(t,e){return Wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Wr(t,e)}function Ur(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Zr(t);if(e){var i=Zr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Br(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Zr(t){return Zr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zr(t)}function Yr(t,e,n){return(e=Xr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xr(t){var e=function(t,e){if("object"!==Br(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Br(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Br(e)?e:String(e)}var qr=Math.PI/180,Kr=1e-5,$r=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wr(t,e)}(o,t);var e,n,r,i=Ur(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,r=[{key:"renderTickItem",value:function(t,e,n){return S.isValidElement(t)?S.cloneElement(t,e):l()(t)?t(e):S.createElement(Ee.x,Vr({},e,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],(n=[{key:"getTickLineCoord",value:function(t){var e=this.props,n=e.cx,r=e.cy,i=e.radius,o=e.orientation,a=e.tickSize||8,s=(0,Un.op)(n,r,i,t.coordinate),l=(0,Un.op)(n,r,i+("inner"===o?-1:1)*a,t.coordinate);return{x1:s.x,y1:s.y,x2:l.x,y2:l.y}}},{key:"getTickTextAnchor",value:function(t){var e=this.props.orientation,n=Math.cos(-t.coordinate*qr);return n>Kr?"outer"===e?"start":"end":n<-Kr?"outer"===e?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.radius,i=t.axisLine,o=t.axisLineType,a=Gr(Gr({},(0,Qt.L6)(this.props)),{},{fill:"none"},(0,Qt.L6)(i));if("circle"===o)return S.createElement(_e,Vr({className:"recharts-polar-angle-axis-line"},a,{cx:e,cy:n,r:r}));var s=this.props.ticks.map((function(t){return(0,Un.op)(e,n,r,t.coordinate)}));return S.createElement(jr,Vr({className:"recharts-polar-angle-axis-line"},a,{points:s}))}},{key:"renderTicks",value:function(){var t=this,e=this.props,n=e.ticks,r=e.tick,i=e.tickLine,a=e.tickFormatter,s=e.stroke,l=(0,Qt.L6)(this.props),u=(0,Qt.L6)(r),c=Gr(Gr({},l),{},{fill:"none"},(0,Qt.L6)(i)),h=n.map((function(e,n){var h=t.getTickLineCoord(e),p=Gr(Gr(Gr({textAnchor:t.getTickTextAnchor(e)},l),{},{stroke:"none",fill:s},u),{},{index:n,payload:e,x:h.x2,y:h.y2});return S.createElement(K.m,Vr({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},(0,Jt.bw)(t.props,e,n)),i&&S.createElement("line",Vr({className:"recharts-polar-angle-axis-tick-line"},c,h)),r&&o.renderTickItem(r,p,a?a(e.value,n):e.value))}));return S.createElement(K.m,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var t=this.props,e=t.ticks,n=t.radius,r=t.axisLine;return n<=0||!e||!e.length?null:S.createElement(K.m,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}])&&Hr(e.prototype,n),r&&Hr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(S.PureComponent);Yr($r,"displayName","PolarAngleAxis"),Yr($r,"axisType","angleAxis"),Yr($r,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine
2:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Jr=n(46873),Qr=n.n(Jr),ti=n(51198),ei=n.n(ti),ni=["cx","cy","angle","ticks","axisLine"],ri=["ticks","tick","angle","tickFormatter","stroke"];function ii(t){return ii="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},ii(t)}function oi(){return oi=Object.assign?Object.assign.bind():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},oi.apply(this,arguments)}function ai(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 si(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ai(Object(n),!0).forEach((function(e){fi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ai(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function li(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function ui(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,di(r.key),r)}}function ci(t,e){return ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ci(t,e)}function hi(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=pi(t);if(e){var i=pi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===ii(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function pi(t){return pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pi(t)}function fi(t,e,n){return(e=di(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function di(t){var e=function(t,e){if("object"!==ii(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==ii(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ii(e)?e:String(e)}var gi=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ci(t,e)}(o,t);var e,n,r,i=hi(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,r=[{key:"renderTickItem",value:function(t,e,n){return S.isValidElement(t)?S.cloneElement(t,e):l()(t)?t(e):S.createElement(Ee.x,oi({},e,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],(n=[{key:"getTickValueCoord",value:function(t){var e=t.coordinate,n=this.props,r=n.angle,i=n.cx,o=n.cy;return(0,Un.op)(i,o,e,r)}},{key:"getTickTextAnchor",value:function(){var t;switch(this.props.orientation){case"left":t="end";break;case"right":t="start";break;default:t="middle"}return t}},{key:"getViewBox",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.angle,i=t.ticks,o=ei()(i,(function(t){return t.coordinate||0}));return{cx:e,cy:n,startAngle:r,endAngle:r,innerRadius:Qr()(i,(function(t){return t.coordinate||0})).coordinate||0,outerRadius:o.coordinate||0}}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.angle,i=t.ticks,o=t.axisLine,a=li(t,ni),s=i.reduce((function(t,e){return[Math.min(t[0],e.coordinate),Math.max(t[1],e.coordinate)]}),[1/0,-1/0]),l=(0,Un.op)(e,n,s[0],r),u=(0,Un.op)(e,n,s[1],r),c=si(si(si({},(0,Qt.L6)(a)),{},{fill:"none"},(0,Qt.L6)(o)),{},{x1:l.x,y1:l.y,x2:u.x,y2:u.y});return S.createElement("line",oi({className:"recharts-polar-radius-axis-line"},c))}},{key:"renderTicks",value:function(){var t=this,e=this.props,n=e.ticks,r=e.tick,i=e.angle,a=e.tickFormatter,s=e.stroke,l=li(e,ri),u=this.getTickTextAnchor(),c=(0,Qt.L6)(l),h=(0,Qt.L6)(r),p=n.map((function(e,n){var l=t.getTickValueCoord(e),p=si(si(si(si({textAnchor:u,transform:"rotate(".concat(90-i,", ").concat(l.x,", ").concat(l.y,")")},c),{},{stroke:"none",fill:s},h),{},{index:n},l),{},{payload:e});return S.createElement(K.m,oi({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(n)},(0,Jt.bw)(t.props,e,n)),o.renderTickItem(r,p,a?a(e.value,n):e.value))}));return S.createElement(K.m,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var t=this.props,e=t.ticks,n=t.axisLine,r=t.tick;return e&&e.length?S.createElement(K.m,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),r&&this.renderTicks(),Ne._.renderCallByParent(this.props,this.getViewBox())):null}}])&&ui(e.prototype,n),r&&ui(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(S.PureComponent);fi(gi,"displayName","PolarRadiusAxis"),fi(gi,"axisType","radiusAxis"),fi(gi,"defaultProps",{type:"number",radiu
2sAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var yi=function(t){var e,n=t.chartName,r=t.GraphicalChild,o=t.defaultTooltipEventType,s=void 0===o?"axis":o,u=t.validateTooltipEventTypes,h=void 0===u?["axis"]:u,f=t.axisComponents,g=t.legendContent,y=t.formatAxisMap,v=t.defaultProps,x=function(t,e){var n=e.graphicalItems,r=e.stackGroups,i=e.offset,o=e.updateId,a=e.dataStartIndex,s=e.dataEndIndex,l=t.barSize,u=t.layout,c=t.barGap,h=t.barCategoryGap,p=t.maxBarSize,d=Or(u),g=d.numericAxisName,y=d.cateAxisName,v=function(t){return!(!t||!t.length)&&t.some((function(t){var e=(0,Qt.Gf)(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(n),x=v&&(0,Je.pt)({barSize:l,stackGroups:r}),b=[];return n.forEach((function(n,l){var d=Sr(t.data,{dataStartIndex:a,dataEndIndex:s},n),v=n.props,_=v.dataKey,w=v.maxBarSize,S=n.props["".concat(g,"Id")],M=n.props["".concat(y,"Id")],I=f.reduce((function(t,r){var i,o=e["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=o&&o[a];return gr(gr({},t),{},(yr(i={},r.axisType,s),yr(i,"".concat(r.axisType,"Ticks"),(0,Je.uY)(s)),i))}),{}),T=I[y],A=I["".concat(y,"Ticks")],C=r&&r[S]&&r[S].hasStack&&(0,Je.O3)(n,r[S].stackGroups),k=(0,Qt.Gf)(n.type).indexOf("Bar")>=0,O=(0,Je.zT)(T,A),D=[];if(k){var P,L,E=m()(w)?p:w,N=null!==(P=null!==(L=(0,Je.zT)(T,A,!0))&&void 0!==L?L:E)&&void 0!==P?P:0;D=(0,Je.qz)({barGap:c,barCategoryGap:h,bandSize:N!==O?N:O,sizeList:x[M],maxBarSize:E}),N!==O&&(D=D.map((function(t){return gr(gr({},t),{},{position:gr(gr({},t.position),{},{offset:t.position.offset-N/2})})})))}var R,z=n&&n.type&&n.type.getComposedData;z&&b.push({props:gr(gr({},z(gr(gr({},I),{},{displayedData:d,props:t,dataKey:_,item:n,bandSize:O,barPosition:D,offset:i,stackedData:C,layout:u,dataStartIndex:a,dataEndIndex:s}))),{},(R={key:n.key||"item-".concat(l)},yr(R,g,I[g]),yr(R,y,I[y]),yr(R,"animationId",o),R)),childIndex:(0,Qt.$R)(n,t.children),item:n})})),b},_=function(t,e){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,s=t.updateId;if(!(0,Qt.TT)({props:i}))return null;var l=i.children,u=i.layout,c=i.stackOffset,h=i.data,g=i.reverseStackOrder,v=Or(u),m=v.numericAxisName,b=v.cateAxisName,_=(0,Qt.NN)(l,r),w=(0,Je.wh)(h,_,"".concat(m,"Id"),"".concat(b,"Id"),c,g),S=f.reduce((function(t,e){var n="".concat(e.axisType,"Map");return gr(gr({},t),{},yr({},n,Cr(i,gr(gr({},e),{},{graphicalItems:_,stackGroups:e.axisType===m&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),M=function(t,e){var n=t.props,r=t.graphicalItems,i=t.xAxisMap,o=void 0===i?{}:i,a=t.yAxisMap,s=void 0===a?{}:a,l=n.width,u=n.height,c=n.children,h=n.margin||{},p=(0,Qt.sP)(c,vn),f=(0,Qt.sP)(c,_t.D),g=Object.keys(s).reduce((function(t,e){var n=s[e],r=n.orientation;return n.mirror||n.hide?t:gr(gr({},t),{},yr({},r,t[r]+n.width))}),{left:h.left||0,right:h.right||0}),y=Object.keys(o).reduce((function(t,e){var n=o[e],r=n.orientation;return n.mirror||n.hide?t:gr(gr({},t),{},yr({},r,d()(t,"".concat(r))+n.height))}),{top:h.top||0,bottom:h.bottom||0}),v=gr(gr({},y),g),m=v.bottom;return p&&(v.bottom+=p.props.height||vn.defaultProps.height),f&&e&&(v=(0,Je.By)(v,r,n,e)),gr(gr({brushBottom:m},v),{},{width:l-v.left-v.right,height:u-v.top-v.bottom})}(gr(gr({},S),{},{props:i,graphicalItems:_}),null===e||void 0===e?void 0:e.legendBBox);Object.keys(S).forEach((function(t){S[t]=y(i,S[t],M,t.replace("Map",""),n)}));var I=function(t){var e=(0,T.Kt)(t),n=(0,Je.uY)(e,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:p()(n,(function(t){return t.coordinate})),tooltipAxis:e,tooltipAxisBandSize:(0,Je.zT)(e,n)}}(S["".concat(b,"Map")]),A=x(i,gr(gr({},S),{},{dataStartIndex:o,dataEndIndex:a,updateId:s,graphicalItems:_,stackGroups:w,offset:M}));return gr(gr({formattedGraphicalItems:A,graphicalItems:_,offset:M,stackGroups:w},I),S)};return e=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sr(t,e)}(p,t);var e,r,o,u=lr(p);function p(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),yr(ur(e=u.call(this,t)),"accessibilityManager",new Qn),yr(ur(e),"clearDeferId",(function(){!m()(e.deferId)&&wr&&wr(e.deferId),e.deferId=null})),yr(ur(e),"handleLegendBBoxUpdate",(function(t){if(t){var n=e.state,r=n.dataStartIndex,i=n.dataEndIndex,o=n.updateId;e.setState(gr({legendBBox:t},_({props:e.props,dataStartIndex:r,dataEndIndex:i,updateId:o},gr(gr({},e.state),{},{legendBBox:t}))))}})),yr(ur(e),"handleReceiveSyncEvent",(function(t,n,r){e.props.syncId===t&&n!==e.uniqueChartId&&(e.clearDeferId(),e.deferId=_r&&_r(e.applySyncEvent.bind(ur(e),r)))})),yr(ur(e),"handleBrushChange",(function(t){var n=t.startIndex,r=t.endIndex;if(n!==e.state.dataStartIndex||r!==e.state.dataEndIndex){var i=e.state.updateId;e.setState((function(){return gr({dataStartIndex:n,dataEndIndex:r},_({props:e.props,dataStartIndex:n,dataEndIndex:r,updateId:i},e.state))})),e.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}})),yr(ur(e),"handleMouseEnter",(function(t){var n=e.props.onMouseEnter,r=e.getMouseInfo(t);if(r){var i=gr(gr({},r),{},{isTooltipActive:!0});e.setState(i),e.triggerSyncEvent(i),l()(n)&&n(i,t)}})),yr(ur(e),"triggeredAfterMouseMove",(function(t){var n=e.props.onMouseMove,r=e.getMouseInfo(t),i=r?gr(gr({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};e.setState(i),e.triggerSyncEvent(i),l()(n)&&n(i,t)})),yr(ur(e),"handleItemMouseEnter",(function(t){e.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),yr(ur(e),"handleItemMouseLeave",(function(){e.setState((function(){return{isTooltipActive:!1}}))})),yr(ur(e),"handleMouseMove",(function(t){t&&l()(t.persist)&&t.persist(),e.triggeredAfterMouseMove(t)})),yr(ur(e),"handleMouseLeave",(function(t){var n=e.props.onMouseLeave,r={isTooltipActive:!1};e.setState(r),e.triggerSyncEvent(r),l()(n)&&n(r,t),e.cancelThrottledTriggerAfterMouseMove()}
2)),yr(ur(e),"handleOuterEvent",(function(t){var n=(0,Qt.Bh)(t),r=d()(e.props,"".concat(n));n&&l()(r)&&r(/.*touch.*/i.test(n)?e.getMouseInfo(t.changedTouches[0]):e.getMouseInfo(t),t)})),yr(ur(e),"handleClick",(function(t){var n=e.props.onClick,r=e.getMouseInfo(t);if(r){var i=gr(gr({},r),{},{isTooltipActive:!0});e.setState(i),e.triggerSyncEvent(i),l()(n)&&n(i,t)}})),yr(ur(e),"handleMouseDown",(function(t){var n=e.props.onMouseDown;l()(n)&&n(e.getMouseInfo(t),t)})),yr(ur(e),"handleMouseUp",(function(t){var n=e.props.onMouseUp;l()(n)&&n(e.getMouseInfo(t),t)})),yr(ur(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseMove(t.changedTouches[0])})),yr(ur(e),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseDown(t.changedTouches[0])})),yr(ur(e),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseUp(t.changedTouches[0])})),yr(ur(e),"verticalCoordinatesGenerator",(function(t){var e=t.xAxis,n=t.width,r=t.height,i=t.offset;return(0,Je.Rf)(X(gr(gr(gr({},Ke.defaultProps),e),{},{ticks:(0,Je.uY)(e,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)})),yr(ur(e),"horizontalCoordinatesGenerator",(function(t){var e=t.yAxis,n=t.width,r=t.height,i=t.offset;return(0,Je.Rf)(X(gr(gr(gr({},Ke.defaultProps),e),{},{ticks:(0,Je.uY)(e,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)})),yr(ur(e),"axesTicksGenerator",(function(t){return(0,Je.uY)(t,!0)})),yr(ur(e),"renderCursor",(function(t){var r=e.state,i=r.isTooltipActive,o=r.activeCoordinate,a=r.activePayload,s=r.offset,l=r.activeTooltipIndex,u=e.getTooltipEventType();if(!t||!t.props.cursor||!i||!o||"ScatterChart"!==n&&"axis"!==u)return null;var c,h=e.props.layout,p=ce;if("ScatterChart"===n)c=o,p=me;else if("BarChart"===n)c=e.getCursorRectangle(),p=Pe;else if("radial"===h){var f=e.getCursorPoints(),d=f.cx,g=f.cy,y=f.radius;c={cx:d,cy:g,startAngle:f.startAngle,endAngle:f.endAngle,innerRadius:y,outerRadius:y},p=xe.L}else c={points:e.getCursorPoints()},p=ce;var v=t.key||"_recharts-cursor",m=gr(gr(gr(gr({stroke:"#ccc",pointerEvents:"none"},s),c),(0,Qt.L6)(t.props.cursor)),{},{payload:a,payloadIndex:l,key:v,className:"recharts-tooltip-cursor"});return(0,S.isValidElement)(t.props.cursor)?(0,S.cloneElement)(t.props.cursor,m):(0,S.createElement)(p,m)})),yr(ur(e),"renderPolarAxis",(function(t,n,r){var i=d()(t,"type.axisType"),o=d()(e.state,"".concat(i,"Map")),a=o&&o[t.props["".concat(i,"Id")]];return(0,S.cloneElement)(t,gr(gr({},a),{},{className:i,key:t.key||"".concat(n,"-").concat(r),ticks:(0,Je.uY)(a,!0)}))})),yr(ur(e),"renderXAxis",(function(t,n,r){var i=e.state.xAxisMap[t.props.xAxisId];return e.renderAxis(i,t,n,r)})),yr(ur(e),"renderYAxis",(function(t,n,r){var i=e.state.yAxisMap[t.props.yAxisId];return e.renderAxis(i,t,n,r)})),yr(ur(e),"renderGrid",(function(t){var n=e.state,r=n.xAxisMap,o=n.yAxisMap,s=n.offset,l=e.props,u=l.width,c=l.height,h=(0,T.Kt)(r),p=a()(o,(function(t){return i()(t.domain,br)}))||(0,T.Kt)(o),f=t.props||{};return(0,S.cloneElement)(t,{key:t.key||"grid",x:(0,T.hj)(f.x)?f.x:s.left,y:(0,T.hj)(f.y)?f.y:s.top,width:(0,T.hj)(f.width)?f.width:s.width,height:(0,T.hj)(f.height)?f.height:s.height,xAxis:h,yAxis:p,offset:s,chartWidth:u,chartHeight:c,verticalCoordinatesGenerator:f.verticalCoordinatesGenerator||e.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:f.horizontalCoordinatesGenerator||e.horizontalCoordinatesGenerator})})),yr(ur(e),"renderPolarGrid",(function(t){var n=t.props,r=n.radialLines,i=n.polarAngles,o=n.polarRadius,a=e.state,s=a.radiusAxisMap,l=a.angleAxisMap,u=(0,T.Kt)(s),c=(0,T.Kt)(l),h=c.cx,p=c.cy,f=c.innerRadius,d=c.outerRadius;return(0,S.cloneElement)(t,{polarAngles:w()(i)?i:(0,Je.uY)(c,!0).map((function(t){return t.coordinate})),polarRadius:w()(o)?o:(0,Je.uY)(u,!0).map((function(t){return t.coordinate})),cx:h,cy:p,innerRadius:f,outerRadius:d,key:t.key||"polar-grid",radialLines:r})})),yr(ur(e),"renderLegend",(function(){var t=e.state.formattedGraphicalItems,n=e.props,r=n.children,i=n.width,o=n.height,a=e.props.margin||{},s=i-(a.left||0)-(a.right||0),l=(0,Je.zp)({children:r,formattedGraphicalItems:t,legendWidth:s,legendContent:g});if(!l)return null;var u=l.item,c=or(l,tr);return(0,S.cloneElement)(u,gr(gr({},c),{}
2,{chartWidth:i,chartHeight:o,margin:a,ref:function(t){e.legendInstance=t},onBBoxUpdate:e.handleLegendBBoxUpdate}))})),yr(ur(e),"renderTooltip",(function(){var t=e.props.children,n=(0,Qt.sP)(t,bt);if(!n)return null;var r=e.state,i=r.isTooltipActive,o=r.activeCoordinate,a=r.activePayload,s=r.activeLabel,l=r.offset;return(0,S.cloneElement)(n,{viewBox:gr(gr({},l),{},{x:l.left,y:l.top}),active:i,label:s,payload:i?a:[],coordinate:o})})),yr(ur(e),"renderBrush",(function(t){var n=e.props,r=n.margin,i=n.data,o=e.state,a=o.offset,s=o.dataStartIndex,l=o.dataEndIndex,u=o.updateId;return(0,S.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:(0,Je.DO)(e.handleBrushChange,null,t.props.onChange),data:i,x:(0,T.hj)(t.props.x)?t.props.x:a.left,y:(0,T.hj)(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:(0,T.hj)(t.props.width)?t.props.width:a.width,startIndex:s,endIndex:l,updateId:"brush-".concat(u)})})),yr(ur(e),"renderReferenceElement",(function(t,n,r){if(!t)return null;var i=ur(e).clipPathId,o=e.state,a=o.xAxisMap,s=o.yAxisMap,l=o.offset,u=t.props,c=u.xAxisId,h=u.yAxisId;return(0,S.cloneElement)(t,{key:t.key||"".concat(n,"-").concat(r),xAxis:a[c],yAxis:s[h],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:i})})),yr(ur(e),"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,r=t.basePoint,i=t.childIndex,o=t.isRange,a=[],s=e.props.key,l=e.item.props,u=l.activeDot,c=gr(gr({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:(0,Je.fk)(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(i)},(0,Qt.L6)(u)),(0,Jt.Ym)(u));return a.push(p.renderActiveDot(u,c)),r?a.push(p.renderActiveDot(u,gr(gr({},c),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(i)}))):o&&a.push(null),a})),yr(ur(e),"renderGraphicChild",(function(t,n,r){var i=e.filterFormatItem(t,n,r);if(!i)return null;var o=e.getTooltipEventType(),a=e.state,s=a.isTooltipActive,l=a.tooltipAxis,u=a.activeTooltipIndex,c=a.activeLabel,h=e.props.children,p=(0,Qt.sP)(h,bt),f=i.props,d=f.points,g=f.isRange,y=f.baseLine,v=i.item.props,x=v.activeDot,b=!v.hide&&s&&p&&x&&u>=0,_={};"axis"!==o&&p&&"click"===p.props.trigger?_={onClick:(0,Je.DO)(e.handleItemMouseEnter,null,t.props.onCLick)}:"axis"!==o&&(_={onMouseLeave:(0,Je.DO)(e.handleItemMouseLeave,null,t.props.onMouseLeave),onMouseEnter:(0,Je.DO)(e.handleItemMouseEnter,null,t.props.onMouseEnter)});var w=(0,S.cloneElement)(t,gr(gr({},i.props),_));if(b){var M,I;if(l.dataKey&&!l.allowDuplicatedCategory){var A="function"===typeof l.dataKey?function(t){return"function"===typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());M=(0,T.Ap)(d,A,c),I=g&&y&&(0,T.Ap)(y,A,c)}else M=d[u],I=g&&y&&y[u];if(!m()(M))return[w].concat(hr(e.renderActivePoints({item:i,activePoint:M,basePoint:I,childIndex:u,isRange:g})))}return g?[w,null,null]:[w,null]})),yr(ur(e),"renderCustomized",(function(t,n,r){return(0,S.cloneElement)(t,gr(gr({key:"recharts-customized-".concat(r)},e.props),e.state))})),e.uniqueChartId=m()(t.id)?(0,T.EL)("recharts"):t.id,e.clipPathId="".concat(e.uniqueChartId,"-clip"),t.throttleDelay&&(e.triggeredAfterMouseMove=c()(e.triggeredAfterMouseMove,t.throttleDelay)),e.state={},e}return e=p,(r=[{key:"componentDidMount",value:function(){var t,e;m()(this.props.syncId)||this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.handleMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(t){m()(t.syncId)&&!m()(this.props.syncId)&&this.addListener(),!m()(t.syncId)&&m()(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),m()(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"===typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=(0,Qt.sP)(this.props.children,bt);if(t&&b()(t.props.shared)){var e=t.props.shared?"axis":"item";return h.indexOf(e)>=0?e:s}return s}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=(0,A.os)(this.container),n=(0,A.IR)(t,e),r=this.inRange(n.chartX,n.chartY);if(!r)return null;var i=this.state,o=i.xAxisMap,a=i.yAxisMap;if("axis"!==this.getTooltipEventType()&&o&&a){var s=(0,T.Kt)(o).scale,l=(0,T.Kt)(a).scale,u=s&&s.invert?s.invert(n.chartX):null,c=l&&l.invert?l.invert(n.chartY):null;return gr(gr({},n),{},{xValue:u,yValue:c})}var h=Tr(this.state,this.props.data,this.props.layout,r);return h?gr(gr({},n),h):null}},{key:"getCursorRectangle",value:function(){var t=this.props.layout,e=this.state,n=e.activeCoordinate,r=e.offset,i=e.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?n.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:n.y-o,width:"horizontal"===t?i:r.width-1,height:"horizontal"===t?r.height-1:i}}},{key:"getCursorPoints",value:function(){var t,e,n,r,i=this.props.layout,o=this.state,a=o.activeCoordinate,
2s=o.offset;if("horizontal"===i)n=t=a.x,e=s.top,r=s.top+s.height;else if("vertical"===i)r=e=a.y,t=s.left,n=s.left+s.width;else if(!m()(a.cx)||!m()(a.cy)){if("centric"!==i){var l=a.cx,u=a.cy,c=a.radius,h=a.startAngle,p=a.endAngle;return{points:[(0,Un.op)(l,u,c,h),(0,Un.op)(l,u,c,p)],cx:l,cy:u,radius:c,startAngle:h,endAngle:p}}var f=a.cx,d=a.cy,g=a.innerRadius,y=a.outerRadius,v=a.angle,x=(0,Un.op)(f,d,g,v),b=(0,Un.op)(f,d,y,v);t=x.x,e=x.y,n=b.x,r=b.y}return[{x:t,y:e},{x:n,y:r}]}},{key:"inRange",value:function(t,e){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return t>=r.left&&t<=r.left+r.width&&e>=r.top&&e<=r.top+r.height?{x:t,y:e}:null}var i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var s=(0,T.Kt)(o);return(0,Un.z3)({x:t,y:e},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),n=(0,Qt.sP)(t,bt),r={};return n&&"axis"===e&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),gr(gr({},(0,Jt.Ym)(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){Yn.on(Xn,this.handleReceiveSyncEvent),Yn.setMaxListeners&&Yn._maxListeners&&Yn.setMaxListeners(Yn._maxListeners+1)}},{key:"removeListener",value:function(){Yn.removeListener(Xn,this.handleReceiveSyncEvent),Yn.setMaxListeners&&Yn._maxListeners&&Yn.setMaxListeners(Yn._maxListeners-1)}},{key:"triggerSyncEvent",value:function(t){var e=this.props.syncId;
2m()(e)||Yn.emit(Xn,e,this.uniqueChartId,t)}},{key:"applySyncEvent",value:function(t){var e=this.props,n=e.layout,r=e.syncMethod,i=this.state.updateId,o=t.dataStartIndex,a=t.dataEndIndex;if(m()(t.dataStartIndex)&&m()(t.dataEndIndex))if(m()(t.activeTooltipIndex))this.setState(t);else{var s=t.chartX,l=t.chartY,u=t.activeTooltipIndex,c=this.state,h=c.offset,p=c.tooltipTicks;if(!h)return;if("function"===typeof r)u=r(p,t);else if("value"===r){u=-1;for(var f=0;f<p.length;f++)if(p[f].value===t.activeLabel){u=f;break}}var d=gr(gr({},h),{},{x:h.left,y:h.top}),g=Math.min(s,d.x+d.width),y=Math.min(l,d.y+d.height),v=p[u]&&p[u].value,x=Ir(this.state,this.props.data,u),b=p[u]?{x:"horizontal"===n?p[u].coordinate:g,y:"horizontal"===n?y:p[u].coordinate}:xr;this.setState(gr(gr({},t),{},{activeLabel:v,activeCoordinate:b,activePayload:x,activeTooltipIndex:u}))}else this.setState(gr({dataStartIndex:o,dataEndIndex:a},_({props:this.props,dataStartIndex:o,dataEndIndex:a,updateId:i},this.state)))}},{key:"filterFormatItem",value:function(t,e,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;i<o;i++){var a=r[i];if(a.item===t||a.props.key===t.key||e===(0,Qt.Gf)(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(t,e,n,r){var i=this.props,o=i.width,a=i.height;return S.createElement(Ke,ir({},t,{className:I()("recharts-".concat(t.axisType," ").concat(t.axisType),t.className),key:e.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:o,height:a},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,n=e.left,r=e.top,i=e.height,o=e.width;return S.createElement("defs",null,S.createElement("clipPath",{id:t},S.createElement("rect",{x:n,y:r,height:i,width:o})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var n=rr(e,2),r=n[0],i=n[1];return gr(gr({},t),{},yr({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var n=rr(e,2),r=n[0],i=n[1];return gr(gr({},t),{},yr({},r,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e,n;return null===(e=this.state.xAxisMap)||void 0===e||null===(n=e[t])||void 0===n?void 0:n.scale}},{key:"getYScaleByAxisId",value:function(t){var e,n;return null===(e=this.state.yAxisMap)||void 0===e||null===(n=e[t])||void 0===n?void 0:n.scale}},{key:"getItemByXY",value:function(t){var e=this.state.formattedGraphicalItems;if(e&&e.length)for(var n=0,r=e.length;n<r;n++){var i=e[n],o=i.props,a=i.item,s=(0,Qt.Gf)(a.type);if("Bar"===s){var l=(o.data||[]).find((function(e){return Oe(t,e)}));if(l)return{graphicalItem:i,payload:l}}else if("RadialBar"===s){var u=(o.data||[]).find((function(e){return(0,Un.z3)(t,e)}));if(u)return{graphicalItem:i,payload:u}}}return null}},{key:"render",value:function(){var t=this;if(!(0,Qt.TT)(this))return null;var e=this.props,n=e.children,r=e.className,i=e.width,o=e.height,a=e.style,s=e.compact,l=e.title,u=e.desc,c=or(e,er),h=(0,Qt.L6)(c),p={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(s)return S.createElement(q.T,ir({},h,{width:i,height:o,title:l,desc:u}),this.renderClipPath(),(0,Qt.eu)(n,p));this.props.accessibilityLayer&&(h.tabIndex=0,h.role="img",h.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},h.onFocus=function(){t.accessibilityManager.focus()});var f=this.parseEventsOfWrapper();return S.createElement("div",ir({className:I()("recharts-wrapper",r),style:gr({position:"relative",curs
2or:"default",width:i,height:o},a)},f,{ref:function(e){t.container=e},role:"region"}),S.createElement(q.T,ir({},h,{width:i,height:o,title:l,desc:u}),this.renderClipPath(),(0,Qt.eu)(n,p)),this.renderLegend(),this.renderTooltip())}}])&&ar(e.prototype,r),o&&ar(e,o),Object.defineProperty(e,"prototype",{writable:!1}),p}(S.Component),yr(e,"displayName",n),yr(e,"defaultProps",gr({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},v)),yr(e,"getDerivedStateFromProps",(function(t,e){var n=t.data,r=t.children,i=t.width,o=t.height,a=t.layout,s=t.stackOffset,l=t.margin;if(m()(e.updateId)){var u=kr(t);return gr(gr(gr({},u),{},{updateId:0},_(gr(gr({props:t},u),{},{updateId:0}),e)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:s,prevMargin:l,prevChildren:r})}if(n!==e.prevData||i!==e.prevWidth||o!==e.prevHeight||a!==e.prevLayout||s!==e.prevStackOffset||!(0,Le.w)(l,e.prevMargin)){var c=kr(t),h={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},p=gr(gr({},Tr(e,n,a)),{},{updateId:e.updateId+1}),f=gr(gr(gr({},c),h),p);return gr(gr(gr({},f),_(gr({props:t},f),e)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:s,prevMargin:l,prevChildren:r})}if(!(0,Qt.rL)(r,e.prevChildren)){var d=!m()(n)?e.updateId:e.updateId+1;return gr(gr({updateId:d},_(gr(gr({props:t},e),{},{updateId:d}),e)),{},{prevChildren:r})}return null})),yr(e,"renderActiveDot",(function(t,e){var n;return n=(0,S.isValidElement)(t)?(0,S.cloneElement)(t,e):l()(t)?t(e):S.createElement(_e,e),S.createElement(K.m,{className:"recharts-active-dot",key:e.key},n)})),e}({chartName:"RadialBarChart",GraphicalChild:n(50609).G,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:$r},{axisType:"radiusAxis",AxisComp:gi}],formatAxisMap:Un.t9,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}})},15432:function(t,e,n){"use strict";n.d(e,{_:function(){return O}});var r=n(91845),i=n.n(r),o=n(50375),a=n.n(o),s=n(31450),l=n.n(s),u=n(47313),c=n(46123),h=n.n(c),p=n(23991),f=n(60181),d=n(70582),g=n(15601);function y(t){return y="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},y(t)}var v=["offset"];function m(t){return function(t){if(Array.isArray(t))return x(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(t,e)}(t)||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.")}()}function x(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}function b(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function _(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 w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){S(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEac
2h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function S(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==y(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===y(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function M(){return M=Object.assign?Object.assign.bind():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},M.apply(this,arguments)}var I=function(t){var e=t.value,n=t.formatter,r=l()(t.children)?e:t.children;return a()(n)?n(r):r},T=function(t,e,n){var r,i,o=t.position,a=t.viewBox,s=t.offset,c=t.className,p=a,f=p.cx,y=p.cy,v=p.innerRadius,m=p.outerRadius,x=p.startAngle,b=p.endAngle,_=p.clockWise,w=(v+m)/2,S=function(t,e){return(0,d.uY)(e-t)*Math.min(Math.abs(e-t),360)}(x,b),I=S>=0?1:-1;"insideStart"===o?(r=x+I*s,i=_):"insideEnd"===o?(r=b-I*s,i=!_):"end"===o&&(r=b+I*s,i=_),i=S<=0?i:!i;var T=(0,g.op)(f,y,w,r),A=(0,g.op)(f,y,w,r+359*(i?1:-1)),C="M".concat(T.x,",").concat(T.y,"\n A").concat(w,",").concat(w,",0,1,").concat(i?0:1,",\n ").concat(A.x,",").concat(A.y),k=l()(t.id)?(0,d.EL)("recharts-radial-line-"):t.id;return u.createElement("text",M({},n,{dominantBaseline:"central",className:h()("recharts-radial-bar-label",c)}),u.createElement("defs",null,u.createElement("path",{id:k,d:C})),u.createElement("textPath",{xlinkHref:"#".concat(k)},e))},A=function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e,o=i.cx,a=i.cy,s=i.innerRadius,l=i.outerRadius,u=(i.startAngle+i.endAngle)/2;if("outside"===r){var c=(0,g.op)(o,a,l+n,u),h=c.x;return{x:h,y:c.y,textAnchor:h>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=(s+l)/2,f=(0,g.op)(o,a,p,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},C=function(t){var e=t.viewBox,n=t.parentViewBox,r=t.offset,o=t.position,a=e,s=a.x,l=a.y,u=a.width,c=a.height,h=c>=0?1:-1,p=h*r,f=h>0?"end":"start",g=h>0?"start":"end",y=u>=0?1:-1,v=y*r,m=y>0?"end":"start",x=y>0?"start":"end";if("top"===o)return w(w({},{x:s+u/2,y:l-h*r,textAnchor:"middle",verticalAnchor:f}),n?{height:Math.max(l-n.y,0),width:u}:{});if("bottom"===o)return w(w({},{x:s+u/2,y:l+c+p,textAnchor:"middle",verticalAnchor:g}),n?{height:Math.max(n.y+n.height-(l+c),0),width:u}:{});if("left"===o){var b={x:s-v,y:l+c/2,textAnchor:m,verticalAnchor:"middle"};return w(w({},b),n?{width:Math.max(b.x-n.x,0),height:c}:{})}if("right"===o){var _={x:s+u+v,y:l+c/2,textAnchor:x,verticalAnchor:"middle"};return w(w({},_),n?{width:Math.max(n.x+n.width-_.x,0),height:c}:{})}var S=n?{width:u,height:c}:{};return"insideLeft"===o?w({x:s+v,y:l+c/2,textAnchor:x,verticalAnchor:"middle"},S):"insideRight"===o?w({x:s+u-v,y:l+c/2,textAnchor:m,verticalAnchor:"middle"},S):"insideTop"===o?w({x:s+u/2,y:l+p,textAnchor:"middle",verticalAnchor:g},S):"insideBottom"===o?w({x:s+u/2,y:l+c-p,textAnchor:"middle",verticalAnchor:f},S):"insideTopLeft"===o?w({x:s+v,y:l+p,textAnchor:x,verticalAnchor:g},S):"insideTopRight"===o?w({x:s+u-v,y:l+p,textAnchor:m,verticalAnchor:g},S):"insideBottomLeft"===o?w({x:s+v,y:l+c-p,textAnchor:x,verticalAnchor:f},S):"insideBottomRight"===o?w({x:s+u-v,y:l+c-p,textAnchor:m,verticalAnchor:f},S):i()(o)&&((0,d.hj)(o.x)||(0,d.hU)(o.x))&&((0,d.hj)(o.y)||(0,d.hU)(o.y))?w({x:s+(0,d.h1)(o.x,u),y:l+(0,d.h1)(o.y,c),textAnchor:"end",verticalAnchor:"end"},S):w({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},S)},k=function(t){return"cx"in t&&(0,d.hj)(t.cx)};function O(t){var e,n=t.offset,r=w({offset:void 0===n?5:n},b(t,v)),i=r.viewBox,o=r.position,s=r.value,c=r.children,d=r.content,g=r.className,y=void 0===g?"":g,m=r.textBreakAll;if(!i||l()(s)&&l()(c)&&!(0,u.isValidElement)(d)&&!a()(d))return null;if((0,u.isValidElement)(d))return(0,u.cloneElement)(d,r);if(a()(d)){if(e=(0,u.createElement)(d,r),(0,u.isValidElement)(e))return e}
2else e=I(r);var x=k(i),_=(0,f.L6)(r,!0);if(x&&("insideStart"===o||"insideEnd"===o||"end"===o))return T(r,e,_);var S=x?A(r):C(r);return u.createElement(p.x,M({className:h()("recharts-label",y)},_,S,{breakAll:m}),e)}O.displayName="Label";var D=function(t){var e=t.cx,n=t.cy,r=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,s=t.radius,l=t.innerRadius,u=t.outerRadius,c=t.x,h=t.y,p=t.top,f=t.left,g=t.width,y=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if((0,d.hj)(g)&&(0,d.hj)(y)){if((0,d.hj)(c)&&(0,d.hj)(h))return{x:c,y:h,width:g,height:y};if((0,d.hj)(p)&&(0,d.hj)(f))return{x:p,y:f,width:g,height:y}}return(0,d.hj)(c)&&(0,d.hj)(h)?{x:c,y:h,width:0,height:0}:(0,d.hj)(e)&&(0,d.hj)(n)?{cx:e,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:l||0,outerRadius:u||s||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};O.parseViewBox=D,O.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=t.children,o=D(t),s=(0,f.NN)(r,O).map((function(t,n){return(0,u.cloneElement)(t,{viewBox:e||o,key:"label-".concat(n)})}));if(!n)return s;var l=function(t,e){return t?!0===t?u.createElement(O,{key:"label-implicit",viewBox:e}):(0,d.P2)(t)?u.createElement(O,{key:"label-implicit",viewBox:e,value:t}):(0,u.isValidElement)(t)?t.type===O?(0,u.cloneElement)(t,{key:"label-implicit",viewBox:e}):u.createElement(O,{key:"label-implicit",content:t,viewBox:e}):a()(t)?u.createElement(O,{key:"label-implicit",content:t,viewBox:e}):i()(t)?u.createElement(O,M({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||o);return[l].concat(m(s))}},87483:function(t,e,n){"use strict";n.d(e,{D:function(){return _t}});var r=n(50375),i=n.n(r),o=n(35487),a=n.n(o),s=n(47313),l=n(46123),u=n.n(l),c=n(39283),h=n(24569),p=n.n(h),f=(Math.abs,Math.atan2,Math.cos),d=(Math.max,Math.min,Math.sin),g=Math.sqrt,y=Math.PI,v=2*y;var m={draw:function(t,e){var n=g(e/y);t.moveTo(n,0),t.arc(0,0,n,0,v)}},x={draw:function(t,e){var n=g(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},b=g(1/3),_=2*b,w={draw:function(t,e){var n=g(e/_),r=n*b;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},S={draw:function(t,e){var n=g(e),r=-n/2;t.rect(r,r,n,n)}},M=d(y/10)/d(7*y/10),I=d(v/10)*M,T=-f(v/10)*M,A={draw:function(t,e){var n=g(.8908130915292852*e),r=I*n,i=T*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=v*o/5,s=f(a),l=d(a);t.lineTo(l*n,-s*n),t.lineTo(s*r-l*i,l*r+s*i)}t.closePath()}},C=g(3),k={draw:function(t,e){var n=-g(e/(3*C));t.moveTo(0,2*n),t.lineTo(-C*n,-n),t.lineTo(C*n,-n),t.closePath()}},O=-.5,D=g(3)/2,P=1/g(12),L=3*(P/2+1),E={draw:function(t,e){var n=g(e/L),r=n/2,i=n*P,o=r,a=n*P+n,s=-o,l=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,l),t.lineTo(O*r-D*i,D*r+O*i),t.lineTo(O*o-D*a,D*o+O*a),t.lineTo(O*s-D*l,D*s+O*l),t.lineTo(O*r+D*i,O*i-D*r),t.lineTo(O*o+D*a,O*a-D*o),t.lineTo(O*s+D*l,O*l-D*s),t.closePath()}},N=n(90372),R=n(38289);g(3),g(3);var z=n(60181);function j(t){return j="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},j(t)}var B=["type","size","sizeType"];function V(){return V=Object.assign?Object.assign.bind():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},V.apply(this,arguments)}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 G(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){H(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 H(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==j(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===j(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function W(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var U={symbolCircle:m,symbolCross:x,symbolDiamond:w,symbolSquare:S,symbolStar:A,symbolTriangle:k,symbolWye:E},Z=Math.PI/180,Y=function(t){var e=t.type,n=void 0===e?"circle":e,r=t.size,i=void 0===r?64:r,o=t.sizeType,a=void 0===o?"area":o,l=G(G({},W(t,B)),{},{type:n,size:i,sizeType:a}),c=l.className,h=l.cx,f=l.cy,d=(0,z.L6)(l,!0);return h===+h&&f===+f&&i===+i?s.createElement("path",V({},d,{className:u()("recharts-symbols",c),transform:"translate(".concat(h,", ").concat(f,")"),d:function(){var t=function(t){var e="symbol".concat(p()(t));return U[e]||m}(n),e=function(t,e){var n=null,r=(0,R.d)(i);function i(){var i;if(n||(n=i=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),i)return n=null,i+""||null}return t="function"===typeof t?t:(0,N.Z)(t||m),e="function"===typeof e?e:(0,N.Z)(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"===typeof e?e:(0,N.Z)(e),i):t},i.size=function(t){return arguments.length?(e="function"===typeof t?t:(0,N.Z)(+t),i):e},i.context=function(t){return arguments.length?(n=null==t?null:t,i):n},i}().type(t).size(function(t,e,n){if("area"===e)return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var r=18*Z;return 1.25*t*t*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(i,a,n));return e()}()})):null};Y.registerSymbol=function(t,e){U["symbol".concat(p()(t))]=e};var X=n(5196);function q(t){return q="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},q(t)}function K(){return K=Object.assign?Object.assign.bind():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},K.apply(this,arguments)}function $(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 J(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,rt(r.key),r)}}function Q(t,e){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Q(t,e)}function tt(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=et(t);if(e){var i=et(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===q(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function et(t){return et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},et(t)}function nt(t,e,n){return(e=rt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rt(t){var e=function(t,e){if("object"!==q(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===q(e)?e:String(e)}var it=32,ot=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Q(t,e)}(o,t);var e,n,r,i=tt(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,n=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,n=16,r=it/6,i=it/3,o=t.inactive?e:t.color;if("plainline"===t.type)return s.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:n,x2:it,y2:n,className:"recharts-legend-icon"});if("line"===t.type)return s.createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(n,"h").concat(i,"\n A").concat(r,",").concat(r,",0,1,1,").concat(2*i,",").concat(n,"\n H").concat(it,"M").concat(2*i,",").concat(n,"\n A").concat(r,",").concat(r,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===t.type)return s.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(4,"h").concat(it,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(s.isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$(Object(n),!0).forEach((function(e){nt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t);return delete a.legendIcon,s.cloneElement(t.legendIcon,a)}return s.createElement(Y,{fill:o,cx:n,cy:n,size:it,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,n=e.payload,r=e.iconSize,i=e.layout,o=e.formatter,a=e.inactiveColor,l={x:0,y:0,width:it,height:it},h={display:"horizontal"===i?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(e,n){var i,f=e.formatter||o,d=u()((nt(i={"recharts-legend-item":!0},"legend-item-".concat(n),!0),nt(i,"inactive",e.inactive),i));if("none"===e.type)return null;var g=e.inactive?a:e.color;return s.createElement("li",K({className:d,style:h,key:"legend-item-".concat(n)},(0,X.bw)(t.props,e,n)),s.createElement(c.T,{width:r,height:r,viewBox:l,style:p},t.renderIcon(e)),s.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},f?f(e.value,e,n):e.value))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,n=t.layout,r=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return s.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],n&&J(e.prototype,n),r&&J(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(s.PureComponent);nt(ot,"displayName","Legend"),nt(ot,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var at=n(70582);function st(t){return st="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},st(t)}var lt=["ref"];function ut(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 ct(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ut(Object(n),!0).forEach((function(e){yt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ht(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,vt(r.key),r)}}function pt(t,e){return pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pt(t,e)}function ft(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=gt(t);if(e){var i=gt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===st(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return dt(t)}(this,n)}}function dt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gt(t){return gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gt(t)}function yt(t,e,n){return(e=vt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vt(t){var e=function(t,e){if("object"!==st(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==st(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===st(e)?e:String(e)}function mt(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function xt(t){return t.value}function bt(t,e){return!0===t?a()(e,xt):i()(t)?a()(e,t):e}var _t=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pt(t,e)}(a,t);var e,n,r,o=ft(a);function a(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return yt(dt(t=o.call.apply(o,[this].concat(n))),"state",{boxWidth:-1,boxHeight:-1}),t}return e=a,r=[{key:"getWithHeight",value:function(t,e){var n=t.props.layout;return"vertical"===n&&(0,at.hj)(t.props.height)?{height:t.props.height}:"horizontal"===n?{width:t.props.width||e}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"getBBoxSnapshot",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight;return e>=0&&n>=0?{width:e,height:n}:null}},{key:"getDefaultPosition",value:function(t){var e,n,r=this.props,i=r.layout,o=r.align,a=r.verticalAlign,s=r.margin,l=r.chartWidth,u=r.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((l||0)-(this.getBBoxSnapshot()||{width:0}).width)/2}:"right"===o?{right:s&&s.right||0}:{left:s&&s.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(n="middle"===a?{top:((u||0)-(this.getBBoxSnapshot()||{height:0}).height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),ct(ct({},e),n)}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-e)>1||Math.abs(i.height-n)>1)&&this.setState({boxWidth:i.width,boxHeight:i.height},(function(){r&&r(i)}))}else-1===e&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,r=e.width,o=e.height,a=e.wrapperStyle,l=e.payloadUniqBy,u=e.payload,c=ct(ct({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(a)),a);return s.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(e){t.wrapperNode=e}},function(t,e){if(s.isValidElement(t))return s.cloneElement(t,e);if(i()(t))return s.createElement(t,e);e.ref;var n=mt(e,lt);return s.createElement(ot,n)}(n,ct(ct({},this.props),{},{payload:bt(l,u)})))}}])&&ht(e.prototype,n),r&&ht(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(s.PureComponent);yt(_t,"displayName","Legend"),yt(_t,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},23991:function(t,e,n){"use strict";n.d(e,{x:function(){return I}});var r=n(31450),i=n.n(r),o=n(47313),a=n(70017),s=n.n(a),l=n(46123),u=n.n(l),c=n(70582),h=n(27068),p=n(60181),f=n(62440),d=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],g=["dx","dy","angle","className","breakAll"];function y(){return y=Object.assign?Object.assign.bind():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},y.apply(this,arguments)}function v(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}
2finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(t,e)}(t,e)||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.")}()}function x(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}var b=/[ \f\n\r\t\v\u2028\u2029]+/,_=function(t){var e=t.children,n=t.breakAll,r=t.style;try{var o=[];return i()(e)||(o=n?e.toString().split(""):e.toString().split(b)),{wordsWithComputedWidth:o.map((function(t){return{word:t,width:(0,f.xE)(t,r).width}})),spaceWidth:n?0:(0,f.xE)("\xa0",r).width}}catch(a){return null}},w=function(t){return[{words:i()(t)?[]:t.toString().split(b)}]},S=function(t){var e=t.width,n=t.scaleToFit,r=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||n)&&!h.x.isSsr){var s=_({breakAll:o,children:r,style:i});return s?function(t,e,n,r,i){var o=t.maxLines,a=t.children,s=t.style,l=t.breakAll,u=(0,c.hj)(o),h=a,p=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var o=e.word,a=e.width,s=t[t.length-1];if(s&&(null==r||i||s.width+a+n<Number(r)))s.words.push(o),s.width+=a+n;else{var l={words:[o],width:a};t.push(l)}return t}),[])},f=p(e);if(!u)return f;for(var d,g=function(t){var e=h.slice(0,t),n=_({breakAll:l,style:s,children:e+"\u2026"}).wordsWithComputedWidth,i=p(n),a=i.length>o||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(i).width>Number(r);return[a,i]},y=0,v=h.length-1,x=0;y<=v&&x<=h.length-1;){var b=Math.floor((y+v)/2),w=m(g(b-1),2),S=w[0],M=w[1],I=m(g(b),1)[0];if(S||I||(y=b+1),S&&I&&(v=b-1),!S&&I){d=M;break}x++}return d||f}({breakAll:o,children:r,maxLines:a,style:i},s.wordsWithComputedWidth,s.spaceWidth,e,n):w(r)}return w(r)},M="#808080",I=function(t){var e=t.x,n=void 0===e?0:e,r=t.y,i=void 0===r?0:r,a=t.lineHeight,l=void 0===a?"1em":a,h=t.capHeight,f=void 0===h?"0.71em":h,m=t.scaleToFit,x=void 0!==m&&m,b=t.textAnchor,_=void 0===b?"start":b,w=t.verticalAnchor,I=void 0===w?"end":w,T=t.fill,A=void 0===T?M:T,C=v(t,d),k=(0,o.useMemo)((function(){return S({breakAll:C.breakAll,children:C.children,maxLines:C.maxLines,scaleToFit:x,style:C.style,width:C.width})}),[C.breakAll,C.children,C.maxLines,x,C.style,C.width]),O=C.dx,D=C.dy,P=C.angle,L=C.className,E=C.breakAll,N=v(C,g);if(!(0,c.P2)(n)||!(0,c.P2)(i))return null;var R,z=n+((0,c.hj)(O)?O:0),j=i+((0,c.hj)(D)?D:0);switch(I){case"start":R=s()("calc(".concat(f,")"));break;case"middle":R=s()("calc(".concat((k.length-1)/2," * -").concat(l," + (").concat(f," / 2))"));break;default:R=s()("calc(".concat(k.length-1," * -").concat(l,")"))}var B=[];if(x){var V=k[0].width,F=C.width;B.push("scale(".concat(((0,c.hj)(F)?F/V:1)/V,")"))}return P&&B.push("rotate(".concat(P,", ").concat(z,", ").concat(j,")")),B.length&&(N.transform=B.join(" ")),o.createElement("text",y({},(0,p.L6)(N,!0),{x:z,y:j,className:u()("recharts-text",L),textAnchor:_,fill:A.includes("url")?M:A}),k.map((function(t,e){return o.createElement("tspan",{x:z,dy:0===e?R:l,key:e},t.words.join(E?"":" "))})))}},93018:function(t,e,n){"use strict";n.d(e,{m:function(){return c}});var r=n(47313),i=n(46123),o=n.n(i),a=n(60181),s=["children","className"];function l(){return l=Object.assign?Object.assign.bind():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},l.apply(this,arguments)}function u(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var c=r.forwardRef((function(t,e){var n=t.children,i=t.className,c=u(t,s),h=o()("recharts-layer",i);return r.createElement("g",l({className:h},(0,a.L6)(c,!0),{ref:e}),n)}))},39283:function(t,e,n){"use strict";n.d(e,{T:function(){return c}});var r=n(47313),i=n(46123),o=n.n(i),a=n(60181),s=["children","width","height","viewBox","className","style"];function l(){return l=Object.assign?Object.assign.bind():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}
2,l.apply(this,arguments)}function u(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function c(t){var e=t.children,n=t.width,i=t.height,c=t.viewBox,h=t.className,p=t.style,f=u(t,s),d=c||{width:n,height:i,x:0,y:0},g=o()("recharts-surface",h);return r.createElement("svg",l({},(0,a.L6)(f,!0,"svg"),{className:g,width:n,height:i,style:p,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),r.createElement("title",null,t.title),r.createElement("desc",null,t.desc),e)}},50609:function(t,e,n){"use strict";n.d(e,{G:function(){return tt}});var r=n(48756),i=n.n(r),o=n(50375),a=n.n(o),s=n(95585),l=n.n(s),u=n(47313),c=n(46123),h=n.n(c),p=n(85486),f=n(57542),d=n(93018),g=n(60181),y=n(27068),v=n(91845),m=n.n(v),x=n(31450),b=n.n(x),_=n(12699),w=n.n(_),S=n(15432),M=n(5918);function I(t){return I="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},I(t)}var T=["valueAccessor"],A=["data","dataKey","clockWise","id","textBreakAll"];function C(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return k(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(t,e)}(t)||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.")}()}function k(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}function O(){return O=Object.assign?Object.assign.bind():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},O.apply(this,arguments)}function D(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?D(Object(n),!0).forEach((function(e){L(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function L(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==I(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===I(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var N=function(t){return l()(t.value)?w()(t.value):t.value};function R(t){var e=t.valueAccessor,n=void 0===e?N:e,r=E(t,T),i=r.data,o=r.dataKey,a=r.clockWise,s=r.id,l=r.textBreakAll,c=E(r,A);return i&&i.length?u.createElement(d.m,{className:"recharts-label-list"},i.map((function(t,e){var r=b()(o)?n(t,e):(0,M.F$)(t&&t.payload,o),i=b()(s)?{}:{id:"".concat(s,"-").concat(e)};return u.createElement(S._,O({},(0,g.L6)(t,!0),c,i,{parentViewBox:t.parentViewBox,index:e,value:r,textBreakAll:l,viewBox:S._.parseViewBox(b()(a)?t:P(P({},t),{},{clockWise:a}
2)),key:"label-".concat(e)}))}))):null}R.displayName="LabelList",R.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=t.children,i=(0,g.NN)(r,R).map((function(t,n){return(0,u.cloneElement)(t,{data:e,key:"labelList-".concat(n)})}));return n?[function(t,e){return t?!0===t?u.createElement(R,{key:"labelList-implicit",data:e}):u.isValidElement(t)||a()(t)?u.createElement(R,{key:"labelList-implicit",data:e,content:t}):m()(t)?u.createElement(R,O({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(C(i)):i};var z=function(t){return null};z.displayName="Cell";var j=n(70582),B=n(5196),V=n(15601),F=["shape","activeShape","activeIndex","cornerRadius"],G=["value","background"];function H(t){return H="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},H(t)}function W(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 U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?W(Object(n),!0).forEach((function(e){J(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Z(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Q(r.key),r)}}function X(t,e){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},X(t,e)}function q(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$(t);if(e){var i=$(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===H(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return K(t)}(this,n)}}function K(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $(t){return $=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$(t)}function J(t,e,n){return(e=Q(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Q(t){var e=function(t,e){if("object"!==H(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==H(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===H(e)?e:String(e)}var tt=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&X(t,e)}(s,t);var e,n,r,o=q(s);function s(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return J(K(t=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),J(K(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),a()(e)&&e()})),J(K(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),a()(e)&&e()})),t}return e=s,r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}},{key:"renderSectorShape",value:function(t,e){return u.isValidElement(t)?u.cloneElement(t,e):a()(t)?t(e):u.createElement(f.L,e)}}],(n=[{key:"getDeltaAngle",value:function(){var t=this.props,e=t.startAngle,n=t.endAngle;return(0,j.uY)(n-e)*Math.min(Math.abs(n-e),360)}},{key:"renderSectorsStatically",value:function(t){var e=this,n=this.props,r=n.shape,i=n.activeShape,o=n.activeIndex,a=n.cornerRadius,l=Z(n,F),u=(0,g.L6)(l);return t.map((function(t,n){var c=U(U(U(U({},u),{},{cornerRadius:a},t),(0,B.bw)(e.props,t,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector ".concat(t.className),forceCornerRadius:l.forceCornerRadius,cornerIsExternal:l.cornerIsExternal});return s.renderSectorShape(n===o?i:r,c)}))}},{key:"renderSectorsWithAnimation",value:function(){var t=this,e=this.props,n=e.data,r=e.isAnimationActive,i=e.animationBegin,o=e.animationDuration,a=e.animationEasing,s=e.animationId,l=this.state.prevData;return u.createElement(p.ZP,{begin:i,duration:o,isActive:r,easing:a,from:{t:0},to:{t:1},key:"radialBar-".concat(s),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(e){var r=e.t,i=n.map((function(t,e){var n=l&&l[e];if(n){var i=(0,j.k4)(n.startAngle,t.startAngle),o=(0,j.k4)(n.endAngle,t.endAngle);return U(U({},t),{},{startAngle:i(r),endAngle:o(r)})}var a=t.endAngle,s=t.startAngle,u=(0,j.k4)(s,a);return U(U({},t),{},{endAngle:u(r)})}));return u.createElement(d.m,null,t.renderSectorsStatically(i))}))}},{key:"renderSectors",value:function(){var t=this.props,e=t.data,n=t.isAnimationActive,r=this.state.prevData;return!(n&&e&&e.length)||r&&i()(r,e)?this.renderSectorsStatically(e):this.renderSectorsWithAnimation()}}
2,{key:"renderBackground",value:function(t){var e=this,n=this.props.cornerRadius,r=(0,g.L6)(this.props.background);return t.map((function(t,i){t.value;var o=t.background,a=Z(t,G);if(!o)return null;var l=U(U(U(U(U({cornerRadius:n},a),{},{fill:"#eee"},o),r),(0,B.bw)(e.props,t,i)),{},{index:i,key:"sector-".concat(i),className:"recharts-radial-bar-background-sector"});return s.renderSectorShape(o,l)}))}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,r=t.className,i=t.background,o=t.isAnimationActive;if(e||!n||!n.length)return null;var a=this.state.isAnimationFinished,s=h()("recharts-area",r);return u.createElement(d.m,{className:s},i&&u.createElement(d.m,{className:"recharts-radial-bar-background"},this.renderBackground(n)),u.createElement(d.m,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!o||a)&&R.renderCallByParent(U({},this.props),n))}}])&&Y(e.prototype,n),r&&Y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(u.PureComponent);J(tt,"displayName","RadialBar"),J(tt,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!y.x.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),J(tt,"getComposedData",(function(t){var e=t.item,n=t.props,r=t.radiusAxis,i=t.radiusAxisTicks,o=t.angleAxis,a=t.angleAxisTicks,s=t.displayedData,u=t.dataKey,c=t.stackedData,h=t.barPosition,p=t.bandSize,f=t.dataStartIndex,d=(0,M.Bu)(h,e);if(!d)return null;var y=o.cx,v=o.cy,m=n.layout,x=e.props,b=x.children,_=x.minPointSize,w="radial"===m?o:r,S=c?w.scale.domain():null,I=(0,M.Yj)({numericAxis:w}),T=(0,g.NN)(b,z);return{data:s.map((function(t,s){var h,g,x,b,w,A;if(c?h=(0,M.Vv)(c[f+s],S):(h=(0,M.F$)(t,u),l()(h)||(h=[I,h])),"radial"===m){g=(0,M.Fy)({axis:r,ticks:i,bandSize:p,offset:d.offset,entry:t,index:s}),w=o.scale(h[1]),b=o.scale(h[0]),x=g+d.size;var C=w-b;if(Math.abs(_)>0&&Math.abs(C)<Math.abs(_))w+=(0,j.uY)(C||_)*(Math.abs(_)-Math.abs(C));A={background:{cx:y,cy:v,innerRadius:g,outerRadius:x,startAngle:n.startAngle,endAngle:n.endAngle}}}else{g=r.scale(h[0]),x=r.scale(h[1]),w=(b=(0,M.Fy)({axis:o,ticks:a,bandSize:p,offset:d.offset,entry:t,index:s}))+d.size;var k=x-g;if(Math.abs(_)>0&&Math.abs(k)<Math.abs(_))x+=(0,j.uY)(k||_)*(Math.abs(_)-Math.abs(k))}return U(U(U(U({},t),A),{},{payload:t,value:c?h:h[1],cx:y,cy:v,innerRadius:g,outerRadius:x,startAngle:b,endAngle:w},T&&T[s]&&T[s].props),{},{tooltipPayload:[(0,M.Qo)(e,t)],tooltipPosition:(0,V.op)(y,v,(g+x)/2,(b+w)/2)})})),layout:m}}))},57542:function(t,e,n){"use strict";n.d(e,{L:function(){return v}});var r=n(47313),i=n(46123),o=n.n(i),a=n(60181),s=n(15601),l=n(70582);function u(t){return u="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},u(t)}function c(){return c=Object.assign?Object.assign.bind():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},c.apply(this,arguments)}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){f(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,e,n){return(e=function(t){var e=function(t,e){if("object"!==u(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===u(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=function(t){var e=t.cx,n=t.cy,r=t.radius,i=t.angle,o=t.sign,a=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,c=l*(a?1:-1)+r,h=Math.asin(l/c)/s.Wk,p=u?i:i+o*h,f=u?i-o*h:i;return{center:(0,s.op)(e,n,c,p),circleTangency:(0,s.op)(e,n,r,p),lineTangency:(0,s.op)(e,n,c*Math.cos(h*s.Wk),f),theta:h}},g=function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.startAngle,a=function(t,e){return(0,l.uY)(e-t)*Math.min(Math.abs(e-t),359.999)}(o,t.endAngle),u=o+a,c=(0,s.op)(e,n,i,o),h=(0,s.op)(e,n,i,u),p="M ".concat(c.x,",").concat(c.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>u),",\n ").concat(h.x,",").concat(h.y,"\n ");if(r>0){var f=(0,s.op)(e,n,r,o),d=(0,s.op)(e,n,r,u);p+="L ".concat(d.x,",").concat(d.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=u),",\n ").concat(f.x,",").concat(f.y," Z")}else p+="L ".concat(e,",").concat(n," Z");return p},y={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},v=function(t){var e=p(p({},y),t),n=e.cx,i=e.cy,s=e.innerRadius,u=e.outerRadius,h=e.cornerRadius,f=e.forceCornerRadius,v=e.cornerIsExternal,m=e.startAngle,x=e.endAngle,b=e.className;if(u<s||m===x)return null;var _,w=o()("recharts-sector",b),S=u-s,M=(0,l.h1)(h,S,0,!0);return _=M>0&&Math.abs(m-x)<360?function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,s=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,h=(0,l.uY)(c-u),p=d({cx:e,cy:n,radius:i,angle:u,sign:h,cornerRadius:o,cornerIsExternal:s}),f=p.circleTangency,y=p.lineTangency,v=p.theta,m=d({cx:e,cy:n,radius:i,angle:c,sign:-h,cornerRadius:o,cornerIsExternal:s}),x=m.circleTangency,b=m.lineTangency,_=m.theta,w=s?Math.abs(u-c):Math.abs(u-c)-v-_;if(w<0)return a?"M ".concat(y.x,",").concat(y.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):g({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:c});var S="M ".concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(f.x,",").concat(f.y,"\n A").concat(i,",").concat(i,",0,").concat(+(w>180),",").concat(+(h<0),",").concat(x.x,",").concat(x.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(b.x,",").concat(b.y,"\n ");if(r>0){var M=d({cx:e,cy:n,radius:r,angle:u,sign:h,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),I=M.circleTangency,T=M.lineTangency,A=M.theta,C=d({cx:e,cy:n,radius:r,angle:c,sign:-h,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),k=C.circleTangency,O=C.lineTangency,D=C.theta,P=s?Math.abs(u-c):Math.abs(u-c)-A-D;if(P<0&&0===o)return"".concat(S,"L").concat(e,",").concat(n,"Z");S+="L".concat(O.x,",").concat(O.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(P>180),",").concat(+(h>0),",").concat(I.x,",").concat(I.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(T.x,",").concat(T.y,"Z")}else S+="L".concat(e,",").concat(n,"Z");return S}({cx:n,cy:i,innerRadius:s,outerRadius:u,cornerRadius:Math.min(M,S/2),forceCornerRadius:f,cornerIsExternal:v,startAngle:m,endAngle:x}):g({cx:n,cy:i,innerRadius:s,outerRadius:u,startAngle:m,endAngle:x}),r.createElement("path",c({},(0,a.L6)(e,!0),{className:w,d:_,role:"img"}))}},5918:function(t,e,n){"use strict";n.d(e,{By:function(){return Vo},VO:function(){return No},zF:function(){return Ko},DO:function(){return Yo},Bu:function(){return $o},zT:function(){return ca},qz:function(){return Bo},pt:function(){return jo},Yj:function(){return ia},Fy:function(){return ra},Rf:function(){return Uo},gF:function(){return Eo},s6:function(){return Ho},EB:function(){return aa},zp:function(){return zo},fk:function(){return Ro},wh:function(){return ea},O3:function(){return oa},uY:function(){return Zo},g$:function(){return na},Qo:function(){return pa},F$:function(){return Lo},NA:function(){return Wo},ko:function(){return ha},ZI:function(){return Go},Hq:function(){return Xo},LG:function(){return ua},Vv:function(){return Jo}});var r={};n.r(r),n.d(r,{scaleBand:function(){return C.Z},scaleDiverging:function(){return Pi},scaleDivergingLog:function(){return Li}
2,scaleDivergingPow:function(){return Ni},scaleDivergingSqrt:function(){return Ri},scaleDivergingSymlog:function(){return Ei},scaleIdentity:function(){return be},scaleImplicit:function(){return Ee.O},scaleLinear:function(){return xe},scaleLog:function(){return ke},scaleOrdinal:function(){return Ee.Z},scalePoint:function(){return C.x},scalePow:function(){return Be},scaleQuantile:function(){return $e},scaleQuantize:function(){return Je},scaleRadial:function(){return Ge},scaleSequential:function(){return Ii},scaleSequentialLog:function(){return Ti},scaleSequentialPow:function(){return Ci},scaleSequentialQuantile:function(){return Oi},scaleSequentialSqrt:function(){return ki},scaleSequentialSymlog:function(){return Ai},scaleSqrt:function(){return Ve},scaleSymlog:function(){return Le},scaleThreshold:function(){return Qe},scaleTime:function(){return _i},scaleUtc:function(){return wi},tickFormat:function(){return ve}});var i=n(48756),o=n.n(i),a=n(70163),s=n.n(a),l=n(24569),u=n.n(l),c=n(65406),h=n.n(c),p=n(56783),f=n.n(p),d=n(95585),g=n.n(d),y=n(34402),v=n.n(y),m=n(82507),x=n.n(m),b=n(73752),_=n.n(b),w=n(50375),S=n.n(w),M=n(69706),I=n.n(M),T=n(31450),A=n.n(T),C=n(34042),k=n(29439),O=Math.sqrt(50),D=Math.sqrt(10),P=Math.sqrt(2);function L(t,e,n){var r,i,o,a=(e-t)/Math.max(0,n),s=Math.floor(Math.log10(a)),l=a/Math.pow(10,s),u=l>=O?10:l>=D?5:l>=P?2:1;return s<0?(o=Math.pow(10,-s)/u,(r=Math.round(t*o))/o<t&&++r,(i=Math.round(e*o))/o>e&&--i,o=-o):(o=Math.pow(10,s)*u,(r=Math.round(t/o))*o<t&&++r,(i=Math.round(e/o))*o>e&&--i),i<r&&.5<=n&&n<2?L(t,e,2*n):[r,i,o]}function E(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];var r=e<t,i=r?L(e,t,n):L(t,e,n),o=(0,k.Z)(i,3),a=o[0],s=o[1],l=o[2];if(!(s>=a))return[];var u=s-a+1,c=new Array(u);if(r)if(l<0)for(var h=0;h<u;++h)c[h]=(s-h)/-l;else for(var p=0;p<u;++p)c[p]=(s-p)*l;else if(l<0)for(var f=0;f<u;++f)c[f]=(a+f)/-l;else for(var d=0;d<u;++d)c[d]=(a+d)*l;return c}function N(t,e,n){return L(t=+t,e=+e,n=+n)[2]}function R(t,e,n){n=+n;var r=(e=+e)<(t=+t),i=r?N(e,t,n):N(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function z(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function j(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function B(t){var e,n,r;function i(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(i<o){if(0!==e(r,r))return o;do{var a=i+o>>>1;n(t[a],r)<0?i=a+1:o=a}while(i<o)}return i}return 2!==t.length?(e=z,n=function(e,n){return z(t(e),n)},r=function(e,n){return t(e)-n}):(e=t===z||t===j?t:V,n=t,r=t),{left:i,center:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=i(t,e,n,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length)-1);return o>n&&r(t[o-1],e)>-r(t[o],e)?o-1:o},right:function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(i<o){if(0!==e(r,r))return o;do{var a=i+o>>>1;n(t[a],r)<=0?i=a+1:o=a}while(i<o)}return i}}}function V(){return 0}var F=n(74165),G=n(37762),H=(0,F.Z)().mark(U);function W(t){return null===t?NaN:+t}function U(t,e){var n,r,i,o,a,s,l;return(0,F.Z)().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(void 0!==e){u.next=21;break}n=(0,G.Z)(t),u.prev=2,n.s();case 4:if((r=n.n()).done){u.next=11;break}if(!(null!=(i=r.value)&&(i=+i)>=i)){u.next=9;break}return u.next=9,i;case 9:u.next=4;break;case 11:u.next=16;break;case 13:u.prev=13,u.t0=u.catch(2),n.e(u.t0);case 16:return u.prev=16,n.f(),u.finish(16);case 19:u.next=40;break;case 21:o=-1,a=(0,G.Z)(t),u.prev=23,a.s();case 25:if((s=a.n()).done){u.next=32;break}if(l=s.value,!(null!=(l=e(l,++o,t))&&(l=+l)>=l)){u.next=30;break}return u.next=30,l;case 30:u.next=25;break;case 32:u.next=37;break;case 34:u.prev=34,u.t1=u.catch(23),a.e(u.t1);case 37:return u.prev=37,a.f(),u.finish(37);case 40:case"end":return u.stop()}}),H,null,[[2,13,16,19],[23,34,37,40]])}var Z=B(z),Y=Z.right,X=(Z.left,B(W).center,Y);function q(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function K(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function $(){}var J=.7,Q=1/J,tt="\\s*([+-]?\\d+)\\s*",et="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rt=/^#([0-9a-f]{3,8})$/,it=new RegExp("^rgb\\(".concat(tt,",").concat(tt,",").concat(tt,"\\)$")),ot=new RegExp("^rgb\\(".concat(nt,",").concat(nt,",").concat(nt,"\\)$")),at=new RegExp("^rgba\\(".concat(tt,",").concat(tt,",").concat(tt,",").concat(et,"\\)$")),st=new RegExp("^rgba\\(".concat(nt,",").concat(nt,",").concat(nt,",").concat(et,"\\)$")),lt=new RegExp("^hsl\\(".concat(et,",").concat(nt,",").concat(nt,"\\)$")),ut=new RegExp("^hsla\\(".concat(et,",").concat(nt,",").concat(nt,",").concat(et,"\\)$")),ct={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ht(){return this.rgb().formatHex()}function pt(){return this.rgb().formatRgb()}function ft(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=rt.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?dt(e):3===n?
2new vt(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?gt(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?gt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=it.exec(t))?new vt(e[1],e[2],e[3],1):(e=ot.exec(t))?new vt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=at.exec(t))?gt(e[1],e[2],e[3],e[4]):(e=st.exec(t))?gt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=lt.exec(t))?St(e[1],e[2]/100,e[3]/100,1):(e=ut.exec(t))?St(e[1],e[2]/100,e[3]/100,e[4]):ct.hasOwnProperty(t)?dt(ct[t]):"transparent"===t?new vt(NaN,NaN,NaN,0):null}function dt(t){return new vt(t>>16&255,t>>8&255,255&t,1)}function gt(t,e,n,r){return r<=0&&(t=e=n=NaN),new vt(t,e,n,r)}function yt(t,e,n,r){return 1===arguments.length?((i=t)instanceof $||(i=ft(i)),i?new vt((i=i.rgb()).r,i.g,i.b,i.opacity):new vt):new vt(t,e,n,null==r?1:r);var i}function vt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function mt(){return"#".concat(wt(this.r)).concat(wt(this.g)).concat(wt(this.b))}function xt(){var t=bt(this.opacity);return"".concat(1===t?"rgb(":"rgba(").concat(_t(this.r),", ").concat(_t(this.g),", ").concat(_t(this.b)).concat(1===t?")":", ".concat(t,")"))}function bt(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function _t(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function wt(t){return((t=_t(t))<16?"0":"")+t.toString(16)}function St(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new It(t,e,n,r)}function Mt(t){if(t instanceof It)return new It(t.h,t.s,t.l,t.opacity);if(t instanceof $||(t=ft(t)),!t)return new It;if(t instanceof It)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new It(a,s,l,t.opacity)}function It(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Tt(t){return(t=(t||0)%360)<0?t+360:t}function At(t){return Math.max(0,Math.min(1,t||0))}function Ct(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function kt(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}q($,ft,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:ht,formatHex:ht,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Mt(this).formatHsl()},formatRgb:pt,toString:pt}),q(vt,yt,K($,{brighter:function(t){return t=null==t?Q:Math.pow(Q,t),new vt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?J:Math.pow(J,t),new vt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new vt(_t(this.r),_t(this.g),_t(this.b),bt(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:mt,formatHex:mt,formatHex8:function(){return"#".concat(wt(this.r)).concat(wt(this.g)).concat(wt(this.b)).concat(wt(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:xt,toString:xt})),q(It,(function(t,e,n,r){return 1===arguments.length?Mt(t):new It(t,e,n,null==r?1:r)}),K($,{brighter:function(t){return t=null==t?Q:Math.pow(Q,t),new It(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?J:Math.pow(J,t),new It(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new vt(Ct(t>=240?t-240:t+120,i,r),Ct(t,i,r),Ct(t<120?t+240:t-120,i,r),this.opacity)},clamp:function(){return new It(Tt(this.h),At(this.s),At(this.l),bt(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=bt(this.opacity);return"".concat(1===t?"hsl(":"hsla(").concat(Tt(this.h),", ").concat(100*At(this.s),"%, ").concat(100*At(this.l),"%").concat(1===t?")":", ".concat(t,")"))}}));var Ot=function(t){return function(){return t}};function Dt(t,e){return function(n){return t+n*e}}function Pt(t){return 1===(t=+t)?Lt:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Ot(isNaN(e)?n:e)}}function Lt(t,e){var n=e-t;return n?Dt(t,n):Ot(isNaN(t)?e:t)}var Et=function t(e){var n=Pt(e);function r(t,e){var r=n((t=yt(t)).r,(e=yt(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Lt(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Nt(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=yt(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}Nt((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return kt((n-r/e)*e,a,i,o,s)}})),Nt((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return kt((n-r/e)*e,i,o,a,s)}}));function Rt(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Wt(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function zt(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function jt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Bt(t,e){var n,r={},i={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?r[n]=Wt(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var Vt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ft=new RegExp(Vt.source,"g");function Gt(t,e){var n,r,i,o=Vt.lastIndex=Ft.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=Vt.exec(t))&&(r=Ft.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:jt(n,r)})),o=Ft.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function Ht(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function Wt(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?Ot(e):("number"===i?jt:"string"===i?(n=ft(e))?(e=n,Et):Gt:e instanceof ft?Et:e instanceof Date?zt:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?Rt:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?Bt:jt:Ht))(t,e)}function Ut(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Zt(t){return+t}var Yt=[0,1];function Xt(t){return t}function qt(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function Kt(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=qt(i,r),o=n(a,o)):(r=qt(r,i),o=n(o,a)),function(t){return o(r(t))}}function $t(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=qt(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=X(t,e,1,r)-1;return o[n](i[n](e))}}function Jt(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Qt(){var t,e,n,r,i,o,a=Yt,s=Yt,l=Wt,u=Xt;function c(){var t=Math.min(a.length,s.length);return u!==Xt&&(u=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(a[0],a[t-1])),r=t>2?$t:Kt,i=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,l)))(t(u(e)))}return h.invert=function(n){return u(e((o||(o=r(s,a.map(t),jt)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Zt),c()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),c()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),l=Ut,c()},h.clamp=function(t){return arguments.length?(u=!!t||Xt,c()):u!==Xt},h.interpolate=function(t){return arguments.length?(l=t,c()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,c()}}function te(){return Qt()(Xt,Xt)}var ee,ne=n(87799),re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ie(t){if(!(e=re.exec(t)))throw new Error("invalid format: "+t);var e;return new oe({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function oe(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.
vendor: 5,234 bytes, line 2
2width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function ae(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function se(t){return(t=ae(Math.abs(t)))?t[1]:NaN}function le(t,e){var n=ae(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}ie.prototype=oe.prototype,oe.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ue={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return le(100*t,e)},r:le,s:function(t,e){var n=ae(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(ee=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ae(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function ce(t){return t}var he,pe,fe,de=Array.prototype.map,ge=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function ye(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?ce:(e=de.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?ce:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(de.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"\u2212":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=ie(t)).fill,n=t.align,h=t.sign,p=t.symbol,f=t.zero,d=t.width,g=t.comma,y=t.precision,v=t.trim,m=t.type;"n"===m?(g=!0,m="g"):ue[m]||(void 0===y&&(y=12),v=!0,m="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var x="$"===p?i:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",b="$"===p?o:/[%p]/.test(m)?l:"",_=ue[m],w=/[defgprs%]/.test(m);function S(t){var i,o,l,p=x,S=b;if("c"===m)S=_(t)+S,t="";else{var M=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:_(Math.abs(t),y),v&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),M&&0===+t&&"+"!==h&&(M=!1),p=(M?"("===h?h:u:"-"===h||"("===h?"":h)+p,S=("s"===m?ge[8+ee/3]:"")+S+(M&&"("===h?")":""),w)for(i=-1,o=t.length;++i<o;)if(48>(l=t.charCodeAt(i))||l>57){S=(46===l?a+t.slice(i+1):t.slice(i))+S,t=t.slice(0,i);break}}g&&!f&&(t=r(t,1/0));var I=p.length+t.length+S.length,T=I<d?new Array(d-I+1).join(e):"";switch(g&&f&&(t=r(T+t,T.length?d-S.length:1/0),T=""),n){case"<":t=p+t+S+T;break;case"=":t=p+T+t+S;break;case"^":t=T.slice(0,I=T.length>>1)+p+t+S+T.slice(I);break;default:t=T+p+t+S}return s(t)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),S.toString=function(){return t+""},S}return{format:h,formatPrefix:function(t,e){var n=h(((t=ie(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(se(e)/3))),i=Math.pow(10,-r),o=ge[8+r/3];return function(t){return n(i*t)+o}}}}function ve(t,e,n,r){var i,o=R(t,e,n);switch((r=ie(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(se(e)/3)))-se(Math.abs(t)))}(o,a))||(r.precision=i),fe(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,se(e)-se(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-se(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return pe(r)}function me(t){var e=t.domain;return t.ticks=function(t){var n=e();return E(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return ve(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,s=o.length-1,l=o[a],u=o[s],c=10;for(u<l&&(i=l,l=u,u=i,i=a,a=s,s=i);c-- >0;){if((i=N(l,u,n))===r)return o[a]=l,o[s]=u,e(o);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i}r=i}return t},t}function xe(){var t=te();return t.copy=function(){return Jt(t,xe())},ne.o.apply(t,arguments),me(t)}
vendor: 1,038 bytes, line 2
2function be(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,Zt),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return be(t).unknown(e)},t=arguments.length?Array.from(t,Zt):[0,1],me(n)}function _e(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}function we(t){return Math.log(t)}function Se(t){return Math.exp(t)}function Me(t){return-Math.log(-t)}function Ie(t){return-Math.exp(-t)}function Te(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Ae(t){return function(e,n){return-t(-e,n)}}function Ce(t){var e,n,r=t(we,Se),i=r.domain,o=10;function a(){return e=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(o),n=function(t){return 10===t?Te:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(o),i()[0]<0?(e=Ae(e),n=Ae(n),t(Me,Ie)):t(we,Se),r}
2return r.base=function(t){return arguments.length?(o=+t,a()):o},r.domain=function(t){return arguments.length?(i(t),a()):i()},r.ticks=function(t){var r=i(),a=r[0],s=r[r.length-1],l=s<a;if(l){var u=[s,a];a=u[0],s=u[1]}var c,h,p=e(a),f=e(s),d=null==t?10:+t,g=[];if(!(o%1)&&f-p<d){if(p=Math.floor(p),f=Math.ceil(f),a>0){for(;p<=f;++p)for(c=1;c<o;++c)if(!((h=p<0?c/n(-p):c*n(p))<a)){if(h>s)break;g.push(h)}}else for(;p<=f;++p)for(c=o-1;c>=1;--c)if(!((h=p>0?c/n(-p):c*n(p))<a)){if(h>s)break;g.push(h)}2*g.length<d&&(g=E(a,s,d))}else g=E(p,f,Math.min(f-p,d)).map(n);return l?g.reverse():g},r.tickFormat=function(t,i){if(null==t&&(t=10),null==i&&(i=10===o?"s":","),"function"!==typeof i&&(o%1||null!=(i=ie(i)).precision||(i.trim=!0),i=pe(i)),t===1/0)return i;var a=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*o<o-.5&&(r*=o),r<=a?i(t):""}},r.nice=function(){return i(_e(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function ke(){var t=Ce(Qt()).domain([1,10]);return t.copy=function(){return Jt(t,ke()).base(t.base())},ne.o.apply(t,arguments),t}function Oe(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function De(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Pe(t){var e=1,n=t(Oe(e),De(e));return n.constant=function(n){return arguments.length?t(Oe(e=+n),De(e)):e},me(n)}function Le(){var t=Pe(Qt());return t.copy=function(){return Jt(t,Le()).constant(t.constant())},ne.o.apply(t,arguments)}he=ye({thousands:",",grouping:[3],currency:["$",""]}),pe=he.format,fe=he.formatPrefix;var Ee=n(14414);function Ne(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Re(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function ze(t){return t<0?-t*t:t*t}function je(t){var e=t(Xt,Xt),n=1;return e.exponent=function(e){return arguments.length?1===(n=+e)?t(Xt,Xt):.5===n?t(Re,ze):t(Ne(n),Ne(1/n)):n},me(e)}function Be(){var t=je(Qt());return t.copy=function(){return Jt(t,Be()).exponent(t.exponent())},ne.o.apply(t,arguments),t}function Ve(){return Be.apply(null,arguments).exponent(.5)}function Fe(t){return Math.sign(t)*t*t}function Ge(){var t,e=te(),n=[0,1],r=!1;function i(n){var i=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(n));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return e.invert(Fe(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(t){return arguments.length?(e.range((n=Array.from(t,Zt)).map(Fe)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return Ge(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},ne.o.apply(i,arguments),me(i)}function He(t,e){var n;if(void 0===e){var r,i=(0,G.Z)(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;null!=o&&(n<o||void 0===n&&o>=o)&&(n=o)}}catch(c){i.e(c)}finally{i.f()}}else{var a,s=-1,l=(0,G.Z)(t);try{for(l.s();!(a=l.n()).done;){var u=a.value;null!=(u=e(u,++s,t))&&(n<u||void 0===n&&u>=u)&&(n=u)}}catch(c){l.e(c)}finally{l.f()}}return n}function We(t,e){var n;if(void 0===e){var r,i=(0,G.Z)(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;null!=o&&(n>o||void 0===n&&o>=o)&&(n=o)}}catch(c){i.e(c)}finally{i.f()}}else{var a,s=-1,l=(0,G.Z)(t);try{for(l.s();!(a=l.n()).done;){var u=a.value;null!=(u=e(u,++s,t))&&(n>u||void 0===n&&u>=u)&&(n=u)}}catch(c){l.e(c)}finally{l.f()}}return n}function Ue(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z;if(t===z)return Ze;if("function"!==typeof t)throw new TypeError("compare is not a function");return function(e,n){var r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}function Ze(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function Ye(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4?arguments[4]:void 0;if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=void 0===i?Ze:Ue(i);r>n;){if(r-n>600){var o=r-n+1,a=e-n+1,s=Math.log(o),l=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*l*(o-l)/o)*(a-o/2<0?-1:1);Ye(t,e,Math.max(n,Math.floor(e-a*l/o+u)),Math.min(r,Math.floor(e+(o-a)*l/o+u)),i)}var c=t[e],h=n,p=r;for(Xe(t,n,e),i(t[r],c)>0&&Xe(t,n,r);h<p;){for(Xe(t,h,p),++h,--p;i(t[h],c)<0;)++h;for(;i(t[p],c)>0;)--p}0===i(t[n],c)?Xe(t,n,p):Xe(t,++p,r),p<=e&&(n=p+1),e<=p&&(r=p-1)}return t}function Xe(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function qe(t,e,n){if((r=(t=Float64Array.from(U(t,n))).length)&&!isNaN(e=+e)){if(e<=0||r<2)return We(t);if(e>=1)return He(t);var r,i=(r-1)*e,o=Math.floor(i),a=He(Ye(t,o).subarray(0,o+1));return a+(We(t.subarray(o+1))-a)*(i-o)}}function Ke(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:W;if((r=t.length)&&!isNaN(e=+e)){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function $e(){var t,e=[],n=[],r=[];function i(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t<i;)r[t-1]=Ke(e,t/i);return o}function o(e){return null==e||isNaN(e=+e)?t:n[X(r,e)]}return o.invertExtent=function(t){var i=n.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:e[0],i<r.length?r[i]:e[e.length-1]]},o.domain=function(t){if(!arguments.length)return e.slice();e=[];var n,r=(0,G.Z)(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;null==o||isNaN(o=+o)||e.push(o)}}catch(a){r.e(a)}finally{r.f()}return e.sort(z),i()},o.range=function(t){return arguments.length?(n=Array.from(t),i()):n.slice()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.quantiles=function(){return r.slice()},o.copy=function(){return $e().domain(e).range(n).unknown(t)},ne.o.apply(o,arguments)}function Je(){var t,e=0,n=1,r=1,i=[.5],o=[0,1];function a(e){return null!=e&&e<=e?o[X(i,e,0,r)]:t}function s(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*n-(t-r)*e)/(r+1);return a}return a.domain=function(t){var r;return arguments.length?(r=(0,k.Z)(t,2),e=r[0],n=r[1],e=+e,n=+n,s()):[e,n]},a.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,s()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,i[0]]:a>=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Je().domain([e,n]).range(o).unknown(t)},ne.o.apply(me(a),arguments)}function Qe(){var t,e=[.5],n=[0,1],r=1;function i(i){return null!=i&&i<=i?n[X(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=Array.from(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t}
2,i.copy=function(){return Qe().domain(e).range(n).unknown(t)},ne.o.apply(i,arguments)}var tn=1e3,en=6e4,nn=36e5,rn=864e5,on=6048e5,an=2592e6,sn=31536e6,ln=new Date,un=new Date;function cn(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<r);return s},i.filter=function(n){return cn((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return ln.setTime(+e),un.setTime(+r),t(ln),t(un),Math.floor(n(ln,un))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t===0}:function(e){return i.count(0,e)%t===0}):i:null}),i}var hn=cn((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));hn.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?cn((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):hn:null};hn.range;var pn=cn((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*tn)}),(function(t,e){return(e-t)/tn}),(function(t){return t.getUTCSeconds()})),fn=(pn.range,cn((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*tn)}),(function(t,e){t.setTime(+t+e*en)}),(function(t,e){return(e-t)/en}),(function(t){return t.getMinutes()}))),dn=(fn.range,cn((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*en)}),(function(t,e){return(e-t)/en}),(function(t){return t.getUTCMinutes()}))),gn=(dn.range,cn((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*tn-t.getMinutes()*en)}),(function(t,e){t.setTime(+t+e*nn)}),(function(t,e){return(e-t)/nn}),(function(t){return t.getHours()}))),yn=(gn.range,cn((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*nn)}),(function(t,e){return(e-t)/nn}),(function(t){return t.getUTCHours()}))),vn=(yn.range,cn((function(t){return t.setHours(0,0,0,0)}),(function(t,e){return t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*en)/rn}),(function(t){return t.getDate()-1}))),mn=(vn.range,cn((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/rn}),(function(t){return t.getUTCDate()-1}))),xn=(mn.range,cn((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/rn}),(function(t){return Math.floor(t/rn)})));xn.range;function bn(t){return cn((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*en)/on}))}var _n=bn(0),wn=bn(1),Sn=bn(2),Mn=bn(3),In=bn(4),Tn=bn(5),An=bn(6);_n.range,wn.range,Sn.range,Mn.range,In.range,Tn.range,An.range;function Cn(t){return cn((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/on}))}var kn=Cn(0),On=Cn(1),Dn=Cn(2),Pn=Cn(3),Ln=Cn(4),En=Cn(5),Nn=Cn(6),Rn=(kn.range,On.range,Dn.range,Pn.range,Ln.range,En.range,Nn.range,cn((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),zn=(Rn.range,cn((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),jn=(zn.range,cn((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));jn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?cn((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};jn.range;var Bn=cn((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Bn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?cn((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};Bn.range;function Vn(t,e,n,r,i,o){var a=[[pn,1,tn],[pn,5,5e3],[pn,15,15e3],[pn,30,3e4],[o,1,en],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,nn],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,rn],[r,2,1728e5],[n,1,on],[e,1,an],[e,3,7776e6],[t,1,sn]];function s(e,n,r){var i=Math.abs(n-e)/r,o=B((function(t){return(0,k.Z)(t,3)[2]})).right(a,i);if(o===a.length)return t.every(R(e/sn,n/sn,r));if(0===o)return hn.every(Math.max(R(e,n,r),1));var s=(0,k.Z)(a[i/a[o-1][2]<a[o][2]/i?o-1:o],2),l=s[0],u=s[1];return l.every(u)}return[function(t,e,n){var r=e<t;if(r){var i=[e,t];t=i[0],e=i[1]}var o=n&&"function"===typeof n.range?n:s(t,e,n),a=o?o.range(t,+e+1):[];return r?a.reverse():a},s]}var Fn=Vn(Bn,zn,kn,xn,yn,dn),Gn=(0,k.Z)(Fn,2),Hn=Gn[0],Wn=Gn[1],Un=Vn(jn,Rn,_n,vn,gn,fn),Zn=(0,k.Z)(Un,2),Yn=Zn[0],Xn=Zn[1];function qn(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Kn(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function $n(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Jn,Qn,tr,er={"-":"",_:" ",0:"0"},nr=/^\s*\d+/,rr=/^%/,ir=/[\\^$*+?|[\]().{}]/g;function or(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function ar(t){return t.replace(ir,"\\$&")}function sr(t){return new RegExp("^(?:"+t.map(ar).join("|")+")","i")}function lr(t){return new Map(t.map((function(t,e){return[t.toLowerCase(),e]})))}function ur(t,e,n){var r=nr.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function cr(t,e,n){var r=nr.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function hr(t,e,n){var r=nr.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function pr(t,e,n){var r=nr.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function fr(t,e,n){var r=nr.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function dr(t,e,n){var r=nr.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function gr(t,e,n){var r=nr.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}
vendor: 2,460 bytes, line 2
2function yr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function vr(t,e,n){var r=nr.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function mr(t,e,n){var r=nr.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function xr(t,e,n){var r=nr.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function br(t,e,n){var r=nr.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function _r(t,e,n){var r=nr.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=nr.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Sr(t,e,n){var r=nr.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Mr(t,e,n){var r=nr.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=nr.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Tr(t,e,n){var r=rr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Ar(t,e,n){var r=nr.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=nr.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function kr(t,e){return or(t.getDate(),e,2)}function Or(t,e){return or(t.getHours(),e,2)}function Dr(t,e){return or(t.getHours()%12||12,e,2)}function Pr(t,e){return or(1+vn.count(jn(t),t),e,3)}function Lr(t,e){return or(t.getMilliseconds(),e,3)}function Er(t,e){return Lr(t,e)+"000"}function Nr(t,e){return or(t.getMonth()+1,e,2)}function Rr(t,e){return or(t.getMinutes(),e,2)}function zr(t,e){return or(t.getSeconds(),e,2)}function jr(t){var e=t.getDay();return 0===e?7:e}function Br(t,e){return or(_n.count(jn(t)-1,t),e,2)}function Vr(t){var e=t.getDay();return e>=4||0===e?In(t):In.ceil(t)}function Fr(t,e){return t=Vr(t),or(In.count(jn(t),t)+(4===jn(t).getDay()),e,2)}function Gr(t){return t.getDay()}function Hr(t,e){return or(wn.count(jn(t)-1,t),e,2)}function Wr(t,e){return or(t.getFullYear()%100,e,2)}function Ur(t,e){return or((t=Vr(t)).getFullYear()%100,e,2)}function Zr(t,e){return or(t.getFullYear()%1e4,e,4)}function Yr(t,e){var n=t.getDay();return or((t=n>=4||0===n?In(t):In.ceil(t)).getFullYear()%1e4,e,4)}function Xr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+or(e/60|0,"0",2)+or(e%60,"0",2)}function qr(t,e){return or(t.getUTCDate(),e,2)}function Kr(t,e){return or(t.getUTCHours(),e,2)}function $r(t,e){return or(t.getUTCHours()%12||12,e,2)}
2function Jr(t,e){return or(1+mn.count(Bn(t),t),e,3)}function Qr(t,e){return or(t.getUTCMilliseconds(),e,3)}function ti(t,e){return Qr(t,e)+"000"}function ei(t,e){return or(t.getUTCMonth()+1,e,2)}function ni(t,e){return or(t.getUTCMinutes(),e,2)}function ri(t,e){return or(t.getUTCSeconds(),e,2)}function ii(t){var e=t.getUTCDay();return 0===e?7:e}function oi(t,e){return or(kn.count(Bn(t)-1,t),e,2)}function ai(t){var e=t.getUTCDay();return e>=4||0===e?Ln(t):Ln.ceil(t)}function si(t,e){return t=ai(t),or(Ln.count(Bn(t),t)+(4===Bn(t).getUTCDay()),e,2)}function li(t){return t.getUTCDay()}function ui(t,e){return or(On.count(Bn(t)-1,t),e,2)}function ci(t,e){return or(t.getUTCFullYear()%100,e,2)}function hi(t,e){return or((t=ai(t)).getUTCFullYear()%100,e,2)}function pi(t,e){return or(t.getUTCFullYear()%1e4,e,4)}function fi(t,e){var n=t.getUTCDay();return or((t=n>=4||0===n?Ln(t):Ln.ceil(t)).getUTCFullYear()%1e4,e,4)}function di(){return"+0000"}function gi(){return"%"}function yi(t){return+t}function vi(t){return Math.floor(+t/1e3)}function mi(t){return new Date(t)}function xi(t){return t instanceof Date?+t:+new Date(+t)}function bi(t,e,n,r,i,o,a,s,l,u){var c=te(),h=c.invert,p=c.domain,f=u(".%L"),d=u(":%S"),g=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),m=u("%b %d"),x=u("%B"),b=u("%Y");function _(t){return(l(t)<t?f:s(t)<t?d:a(t)<t?g:o(t)<t?y:r(t)<t?i(t)<t?v:m:n(t)<t?x:b)(t)}return c.invert=function(t){return new Date(h(t))},c.domain=function(t){return arguments.length?p(Array.from(t,xi)):p().map(mi)},c.ticks=function(e){var n=p();return t(n[0],n[n.length-1],null==e?10:e)},c.tickFormat=function(t,e){return null==e?_:u(e)},c.nice=function(t){var n=p();return t&&"function"===typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?p(_e(n,t)):c},c.copy=function(){return Jt(c,bi(t,e,n,r,i,o,a,s,l,u))},c}function _i(){return ne.o.apply(bi(Yn,Xn,jn,Rn,_n,vn,gn,fn,pn,Qn).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function wi(){return ne.o.apply(bi(Hn,Wn,Bn,zn,kn,mn,yn,dn,pn,tr).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Si(){var t,e,n,r,i,o=0,a=1,s=Xt,l=!1;function u(e){return null==e||isNaN(e=+e)?i:s(0===n?.5:(e=(r(e)-t)*n,l?Math.max(0,Math.min(1,e)):e))}function c(t){return function(e){var n,r,i;return arguments.length?(r=(n=(0,k.Z)(e,2))[0],i=n[1],s=t(r,i),u):[s(0),s(1)]}}return u.domain=function(i){var s;return arguments.length?(s=(0,k.Z)(i,2),o=s[0],a=s[1],t=r(o=+o),e=r(a=+a),n=t===e?0:1/(e-t),u):[o,a]},u.clamp=function(t){return arguments.length?(l=!!t,u):l},u.interpolator=function(t){return arguments.length?(s=t,u):s},u.range=c(Wt),u.rangeRound=c(Ut),u.unknown=function(t){return arguments.length?(i=t,u):i},function(i){return r=i,t=i(o),e=i(a),n=t===e?0:1/(e-t),u}}function Mi(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Ii(){var t=me(Si()(Xt));return t.copy=function(){return Mi(t,Ii())},ne.O.apply(t,arguments)}function Ti(){var t=Ce(Si()).domain([1,10]);return t.copy=function(){return Mi(t,Ti()).base(t.base())},ne.O.apply(t,arguments)}function Ai(){var t=Pe(Si());return t.copy=function(){return Mi(t,Ai()).constant(t.constant())},ne.O.apply(t,arguments)}function Ci(){var t=je(Si());return t.copy=function(){return Mi(t,Ci()).exponent(t.exponent())},ne.O.apply(t,arguments)}function ki(){return Ci.apply(null,arguments).exponent(.5)}function Oi(){var t=[],e=Xt;
2function n(n){if(null!=n&&!isNaN(n=+n))return e((X(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];var r,i=(0,G.Z)(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;null==o||isNaN(o=+o)||t.push(o)}}catch(a){i.e(a)}finally{i.f()}return t.sort(z),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map((function(n,r){return e(r/(t.length-1))}))},n.quantiles=function(e){return Array.from({length:e+1},(function(n,r){return qe(t,r/e)}))},n.copy=function(){return Oi(e).domain(t)},ne.O.apply(n,arguments)}function Di(){var t,e,n,r,i,o,a,s=0,l=.5,u=1,c=1,h=Xt,p=!1;function f(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(c*t<c*e?r:i),h(p?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var n,r,i,o;return arguments.length?(r=(n=(0,k.Z)(e,3))[0],i=n[1],o=n[2],h=function(t,e){void 0===e&&(e=t,t=Wt);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[e](t-e)}}(t,[r,i,o]),f):[h(0),h(.5),h(1)]}}return f.domain=function(a){var h;return arguments.length?(h=(0,k.Z)(a,3),s=h[0],l=h[1],u=h[2],t=o(s=+s),e=o(l=+l),n=o(u=+u),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),c=e<t?-1:1,f):[s,l,u]},f.clamp=function(t){return arguments.length?(p=!!t,f):p},f.interpolator=function(t){return arguments.length?(h=t,f):h},f.range=d(Wt),f.rangeRound=d(Ut),f.unknown=function(t){return arguments.length?(a=t,f):a},function(a){return o=a,t=a(s),e=a(l),n=a(u),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),c=e<t?-1:1,f}}
vendor: 4,441 bytes, line 2
2function Pi(){var t=me(Di()(Xt));return t.copy=function(){return Mi(t,Pi())},ne.O.apply(t,arguments)}function Li(){var t=Ce(Di()).domain([.1,1,10]);return t.copy=function(){return Mi(t,Li()).base(t.base())},ne.O.apply(t,arguments)}function Ei(){var t=Pe(Di());return t.copy=function(){return Mi(t,Ei()).constant(t.constant())},ne.O.apply(t,arguments)}function Ni(){var t=je(Di());return t.copy=function(){return Mi(t,Ni()).exponent(t.exponent())},ne.O.apply(t,arguments)}function Ri(){return Ni.apply(null,arguments).exponent(.5)}function zi(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}!function(t){Jn=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,u=sr(i),c=lr(i),h=sr(o),p=lr(o),f=sr(a),d=lr(a),g=sr(s),y=lr(s),v=sr(l),m=lr(l),x={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:kr,e:kr,f:Er,g:Ur,G:Yr,H:Or,I:Dr,j:Pr,L:Lr,m:Nr,M:Rr,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:yi,s:vi,S:zr,u:jr,U:Br,V:Fr,w:Gr,W:Hr,x:null,X:null,y:Wr,Y:Zr,Z:Xr,"%":gi},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:qr,e:qr,f:ti,g:hi,G:fi,H:Kr,I:$r,j:Jr,L:Qr,m:ei,M:ni,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:yi,s:vi,S:ri,u:ii,U:oi,V:si,w:li,W:ui,x:null,X:null,y:ci,Y:pi,Z:di,"%":gi},_={a:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return M(t,e,n,r)},d:xr,e:xr,f:Ir,g:gr,G:dr,H:_r,I:_r,j:br,L:Mr,m:mr,M:wr,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:vr,Q:Ar,s:Cr,S:Sr,u:cr,U:hr,V:pr,w:ur,W:fr,x:function(t,e,r){return M(t,n,e,r)},X:function(t,e,n){return M(t,r,e,n)},y:gr,Y:dr,Z:yr,"%":Tr};function w(t,e){return function(n){var r,i,o,a=[],s=-1,l=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(i=er[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function S(t,e){return function(n){var r,i,o=$n(1900,void 0,1);if(M(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Kn($n(o.y,0,1))).getUTCDay(),r=i>4||0===i?On.ceil(r):On(r),r=mn.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=qn($n(o.y,0,1))).getDay(),r=i>4||0===i?wn.ceil(r):wn(r),r=vn.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Kn($n(o.y,0,1)).getUTCDay():qn($n(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Kn(o)):qn(o)}}function M(t,e,n,r){for(var i,o,a=0,s=e.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=_[i in er?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return x.x=w(n,x),x.X=w(r,x),x.c=w(e,x),b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),{format:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}(t),Qn=Jn.format,Jn.parse,tr=Jn.utcFormat,Jn.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var ji=n(11852),Bi=n(90372);function Vi(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function Fi(t,e){return t[e]}function Gi(t){var e=[];return e.key=t,e}var Hi=n(61759),Wi=n.n(Hi);function Ui(t){return function(t){if(Array.isArray(t))return Zi(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return Zi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zi(t,e)}(t)||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.")}()}function Zi(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}var Yi=function(t){return t},Xi={"@@functional/placeholder":!0},qi=function(t){return t===Xi},Ki=function(t){return function e(){return 0===arguments.length||1===arguments.length&&qi(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},$i=function t(e,n){return 1===e?n:Ki((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter((function(t){return t!==Xi})).length;return a>=e?n.apply(void 0,i):t(e-a,Ki((function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var o=i.map((function(t){return qi(t)?e.shift():t}));return n.apply(void 0,Ui(o).concat(e))})))}))},Ji=function(t){return $i(t.length,t)},Qi=function(t,e){for(var n=[],r=t;r<e;++r)n[r-t]=r;return n},to=Ji((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),eo=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)return Yi;var r=e.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce((function(t,e){return e(t)}),i.apply(void 0,arguments))}},no=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},ro=function(t){var e=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e&&i.every((function(t,n){return t===e[n]}))?n:(e=i,n=t.apply(void 0,i))}};var io={rangeStep:function(t,e,n){for(var r=new(Wi())(t),i=0,o=[];r.lt(e)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o},getDigitCount:function(t){return 0===t?1:Math.floor(new(Wi())(t).abs().log(10).toNumber())+1},interpolateNumber:Ji((function(t,e,n){var r=+t;return r+n*(+e-r)})),uninterpolateNumber:Ji((function(t,e,n){var r=e-+t;return(n-t)/(r=r||1/0)})),uninterpolateTruncation:Ji((function(t,e,n){var r=e-+t;return r=r||1/0,Math.max(0,Math.min(1,(n-t)/r))}))};function oo(t){return function(t){if(Array.isArray(t))return lo(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||so(t)||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.")}()}function ao(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||so(t,e)||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.")}()}function so(t,e){if(t){if("string"===typeof t)return lo(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)?lo(t,e):void 0}}function lo(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}function uo(t){var e=ao(t,2),n=e[0],r=e[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function co(t,e,n){if(t.lte(0))return new(Wi())(0);var r=io.getDigitCount(t.toNumber()),i=new(Wi())(10).pow(r),o=t.div(i),a=1!==r?.05:.1,s=new(Wi())(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return e?s:new(Wi())(Math.ceil(s))}function ho(t,e,n){var r=1,i=new(Wi())(t);if(!i.isint()&&n){var o=Math.abs(t);o<1?(r=new(Wi())(10).pow(io.getDigitCount(t)-1),i=new(Wi())(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new(Wi())(Math.floor(t)))}else 0===t?i=new(Wi())(Math.floor((e-1)/2)):n||(i=new(Wi())(Math.floor(t)));var a=Math.floor((e-1)/2);return eo(to((function(t){return i.add(new(Wi())(t-a).mul(r)).toNumber()})),Qi)(0,e)}function po(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(n-1)))return{step:new(Wi())(0),tickMin:new(Wi())(0),tickMax:new(Wi())(0)};var o,a=co(new(Wi())(e).sub(t).div(n-1),r,i);o=t<=0&&e>=0?new(Wi())(0):(o=new(Wi())(t).add(e).div(2)).sub(new(Wi())(o).mod(a));
2var s=Math.ceil(o.sub(t).div(a).toNumber()),l=Math.ceil(new(Wi())(e).sub(o).div(a).toNumber()),u=s+l+1;return u>n?po(t,e,n,r,i+1):(u<n&&(l=e>0?l+(n-u):l,s=e>0?s:s+(n-u)),{step:a,tickMin:o.sub(new(Wi())(s).mul(a)),tickMax:o.add(new(Wi())(l).mul(a))})}var fo=ro((function(t){var e=ao(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),s=ao(uo([n,r]),2),l=s[0],u=s[1];if(l===-1/0||u===1/0){var c=u===1/0?[l].concat(oo(Qi(0,i-1).map((function(){return 1/0})))):[].concat(oo(Qi(0,i-1).map((function(){return-1/0}))),[u]);return n>r?no(c):c}if(l===u)return ho(l,i,o);var h=po(l,u,a,o),p=h.step,f=h.tickMin,d=h.tickMax,g=io.rangeStep(f,d.add(new(Wi())(.1).mul(p)),p);return n>r?no(g):g})),go=(ro((function(t){var e=ao(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),s=ao(uo([n,r]),2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,r];if(l===u)return ho(l,i,o);var c=co(new(Wi())(u).sub(l).div(a-1),o,0),h=eo(to((function(t){return new(Wi())(l).add(new(Wi())(t).mul(c)).toNumber()})),Qi)(0,a).filter((function(t){return t>=l&&t<=u}));return n>r?no(h):h})),ro((function(t,e){var n=ao(t,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=ao(uo([r,i]),2),s=a[0],l=a[1];if(s===-1/0||l===1/0)return[r,i];if(s===l)return[s];var u=Math.max(e,2),c=co(new(Wi())(l).sub(s).div(u-1),o,0),h=[].concat(oo(io.rangeStep(new(Wi())(s),new(Wi())(l).sub(new(Wi())(.99).mul(c)),c)),[l]);return r>i?no(h):h}))),yo=n(47313),vo=n(93018),mo=n(60181),xo=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function bo(){return bo=Object.assign?Object.assign.bind():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},bo.apply(this,arguments)}function _o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return wo(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wo(t,e)}(t,e)||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.")}()}function wo(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}function So(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Mo(t){var e=t.offset,n=t.layout,r=t.width,i=t.dataKey,o=t.data,a=t.dataPointFormatter,s=t.xAxis,l=t.yAxis,u=So(t,xo),c=(0,mo.L6)(u),h=o.map((function(t,o){var u=a(t,i),h=u.x,p=u.y,f=u.value,d=u.errorVal;if(!d)return null;var g,y,v=[];if(Array.isArray(d)){var m=_o(d,2);g=m[0],y=m[1]}else g=y=d;if("vertical"===n){var x=s.scale,b=p+e,_=b+r,w=b-r,S=x(f-g),M=x(f+y);v.push({x1:M,y1:_,x2:M,y2:w}),v.push({x1:S,y1:b,x2:M,y2:b}),v.push({x1:S,y1:_,x2:S,y2:w})}else if("horizontal"===n){var I=l.scale,T=h+e,A=T-r,C=T+r,k=I(f-g),O=I(f+y);v.push({x1:A,y1:O,x2:C,y2:O}),v.push({x1:T,y1:k,x2:T,y2:O}),v.push({x1:A,y1:k,x2:C,y2:k})}return yo.createElement(vo.m,bo({className:"recharts-errorBar",key:"bar-".concat(o)},c),v.map((function(t,e){return yo.createElement("line",bo({},t,{key:"line-".concat(e)}))})))}));return yo.createElement(vo.m,{className:"recharts-errorBars"},h)}Mo.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},Mo.displayName="ErrorBar";var Io=n(87483),To=n(70582);function Ao(t){return Ao="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},Ao(t)}function Co(t){return function(t){if(Array.isArray(t))return ko(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return ko(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ko(t,e)}(t)||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.")}()}function ko(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}function Oo(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 Do(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
2e%2?Oo(Object(n),!0).forEach((function(e){Po(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Po(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Ao(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ao(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ao(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lo(t,e,n){return A()(t)||A()(e)?n:(0,To.P2)(e)?I()(t,e,n):S()(e)?e(t):n}function Eo(t,e,n,r){var i=_()(t,(function(t){return Lo(t,e)}));if("number"===n){var o=i.filter((function(t){return(0,To.hj)(t)||parseFloat(t)}));return o.length?[x()(o),v()(o)]:[1/0,-1/0]}return(r?i.filter((function(t){return!A()(t)})):i).map((function(t){return(0,To.P2)(t)||t instanceof Date?t:""}))}var No=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null===n||void 0===n?void 0:n.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var s=i.range,l=0;l<a;l++){var u=l>0?r[l-1].coordinate:r[a-1].coordinate,c=r[l].coordinate,h=l>=a-1?r[0].coordinate:r[l+1].coordinate,p=void 0;if((0,To.uY)(c-u)!==(0,To.uY)(h-c)){var f=[];if((0,To.uY)(h-c)===(0,To.uY)(s[1]-s[0])){p=h;var d=c+s[1]-s[0];f[0]=Math.min(d,(d+u)/2),f[1]=Math.max(d,(d+u)/2)}else{p=u;var g=h+s[1]-s[0];f[0]=Math.min(c,(g+c)/2),f[1]=Math.max(c,(g+c)/2)}var y=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>y[0]&&t<=y[1]||t>=f[0]&&t<=f[1]){o=r[l].index;break}}else{var v=Math.min(u,h),m=Math.max(u,h);if(t>(v+c)/2&&t<=(m+c)/2){o=r[l].index;break}}}else for(var x=0;x<a;x++)if(0===x&&t<=(n[x].coordinate+n[x+1].coordinate)/2||x>0&&x<a-1&&t>(n[x].coordinate+n[x-1].coordinate)/2&&t<=(n[x].coordinate+n[x+1].coordinate)/2||x===a-1&&t>(n[x].coordinate+n[x-1].coordinate)/2){o=n[x].index;break}return o},Ro=function(t){var e,n=t.type.displayName,r=t.props,i=r.stroke,o=r.fill;switch(n){case"Line":e=i;break;case"Area":case"Radar":e=i&&"none"!==i?i:o;break;default:e=o}return e},zo=function(t){var e,n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=(0,mo.sP)(n,Io.D);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(r||[]).reduce((function(t,e){var n=e.item,r=e.props,i=r.sectors||r.data||[];return t.concat(i.map((function(t){return{type:a.props.iconType||n.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(r||[]).map((function(t){var e=t.item,n=e.props,r=n.dataKey,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||o||"square",color:Ro(e),value:i||r,payload:e.props}})),Do(Do(Do({},a.props),Io.D.getWithHeight(a,i)),{},{payload:e,item:a})):null},jo=function(t){var e=t.barSize,n=t.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,s=o.length;a<s;a++)for(var l=r[o[a]].stackGroups,u=Object.keys(l),c=0,h=u.length;c<h;c++){var p=l[u[c]],f=p.items,d=p.cateAxisId,g=f.filter((function(t){return(0,mo.Gf)(t.type).indexOf("Bar")>=0}));if(g&&g.length){var y=g[0].props.barSize,v=g[0].props[d];i[v]||(i[v]=[]),i[v].push({item:g[0],stackList:g.slice(1),barSize:A()(y)?e:y})}}return i},Bo=function(t){var e=t.barGap,n=t.barCategoryGap,r=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,s=o.length;if(s<1)return null;var l,u=(0,To.h1)(e,r,0,!0);if(o[0].barSize===+o[0].barSize){var c=!1,h=r/s,p=o.reduce((function(t,e){return t+e.barSize||0}),0);(p+=(s-1)*u)>=r&&(p-=(s-1)*u,u=0),p>=r&&h>0&&(c=!0,p=s*(h*=.9));var f={offset:((r-p)/2>>0)-u,size:0};l=o.reduce((function(t,e){var n=[].concat(Co(t),[{item:e.item,position:{offset:f.offset+f.size+u,size:c?h:e.barSize}}]);return f=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:f})})),n}),[])}else{var d=(0,To.h1)(n,r,0,!0);r-2*d-(s-1)*u<=0&&(u=0);var g=(r-2*d-(s-1)*u)/s;g>1&&(g>>=0);var y=a===+a?Math.min(g,a):g;
2l=o.reduce((function(t,e,n){var r=[].concat(Co(t),[{item:e.item,position:{offset:d+(g+u)*n+(g-y)/2,size:y}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:r[r.length-1].position})})),r}),[])}return l},Vo=function(t,e,n,r){var i=n.children,o=n.width,a=n.margin,s=o-(a.left||0)-(a.right||0),l=zo({children:i,legendWidth:s}),u=t;if(l){var c=r||{},h=l.align,p=l.verticalAlign,f=l.layout;("vertical"===f||"horizontal"===f&&"middle"===p)&&(0,To.hj)(t[h])&&(u=Do(Do({},t),{},Po({},h,u[h]+(c.width||0)))),("horizontal"===f||"vertical"===f&&"center"===h)&&(0,To.hj)(t[p])&&(u=Do(Do({},t),{},Po({},p,u[p]+(c.height||0))))}return u},Fo=function(t,e,n,r,i){var o=e.props.children,a=(0,mo.NN)(o,Mo).filter((function(t){return function(t,e,n){return!!A()(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===n?"xAxis"===e:"y"!==n||"yAxis"===e)}(r,i,t.props.direction)}));if(a&&a.length){var s=a.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var r=Lo(e,n,0),i=g()(r)?[x()(r),v()(r)]:[r,r],o=s.reduce((function(t,n){var r=Lo(e,n,0),o=i[0]-Math.abs(g()(r)?r[0]:r),a=i[1]+Math.abs(g()(r)?r[1]:r);return[Math.min(o,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]}),[1/0,-1/0])}return null},Go=function(t,e,n,r,i){var o=e.map((function(e){return Fo(t,e,n,i,r)})).filter((function(t){return!A()(t)}));return o&&o.length?o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null},Ho=function(t,e,n,r,i){var o=e.map((function(e){var o=e.props.dataKey;return"number"===n&&o&&Fo(t,e,o,r)||Eo(t,o,n,i)}));if("number"===n)return o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return o.reduce((function(t,e){for(var n=0,r=e.length;n<r;n++)a[e[n]]||(a[e[n]]=!0,t.push(e[n]));return t}),[])},Wo=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},Uo=function(t,e,n){var r,i,o=t.map((function(t){return t.coordinate===e&&(r=!0),t.coordinate===n&&(i=!0),t.coordinate}));return r||o.push(e),i||o.push(n),o},Zo=function(t,e,n){if(!t)return null;var r=t.scale,i=t.duplicateDomain,o=t.type,a=t.range,s="scaleBand"===t.realScaleType?r.bandwidth()/2:2,l=(e||n)&&"category"===o&&r.bandwidth?r.bandwidth()/s:0;return l="angleAxis"===t.axisType&&(null===a||void 0===a?void 0:a.length)>=2?2*(0,To.uY)(a[0]-a[1])*l:l,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=i?i.indexOf(t):t;return{coordinate:r(e)+l,value:t,offset:l}})).filter((function(t){return!f()(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:r(t)+l,value:t,index:e,offset:l}})):r.ticks&&!n?r.ticks(t.tickCount).map((function(t){return{coordinate:r(t)+l,value:t,offset:l}})):r.domain().map((function(t,e){return{coordinate:r(t)+l,value:i?i[t]:t,index:e,offset:l}}))},Yo=function(t,e,n){var r;return S()(n)?r=n:S()(e)&&(r=e),S()(t)||r?function(e,n,i,o){S()(t)&&t(e,n,i,o),S()(r)&&r(e,n,i,o)}:null},Xo=function(t,e,n){var i=t.scale,o=t.type,a=t.layout,s=t.axisType;if("auto"===i)return"radial"===a&&"radiusAxis"===s?{scale:C.Z(),realScaleType:"band"}:"radial"===a&&"angleAxis"===s?{scale:xe(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>
2=0||e.indexOf("ComposedChart")>=0&&!n)?{scale:C.x(),realScaleType:"point"}:"category"===o?{scale:C.Z(),realScaleType:"band"}:{scale:xe(),realScaleType:"linear"};if(h()(i)){var l="scale".concat(u()(i));return{scale:(r[l]||C.x)(),realScaleType:r[l]?l:"point"}}return S()(i)?{scale:i}:{scale:C.x(),realScaleType:"point"}},qo=1e-4,Ko=function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),i=Math.min(r[0],r[1])-qo,o=Math.max(r[0],r[1])+qo,a=t(e[0]),s=t(e[n-1]);(a<i||a>o||s<i||s>o)&&t.domain([e[0],e[n-1]])}},$o=function(t,e){if(!t)return null;for(var n=0,r=t.length;n<r;n++)if(t[n].item===e)return t[n].position;return null},Jo=function(t,e){if(!e||2!==e.length||!(0,To.hj)(e[0])||!(0,To.hj)(e[1]))return t;var n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!(0,To.hj)(t[0])||t[0]<n)&&(i[0]=n),(!(0,To.hj)(t[1])||t[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},Qo={sign:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n<r;++n)for(var i=0,o=0,a=0;a<e;++a){var s=f()(t[a][n][1])?t[a][n][0]:t[a][n][1];s>=0?(t[a][n][0]=i,t[a][n][1]=i+s,i=t[a][n][1]):(t[a][n][0]=o,t[a][n][1]=o+s,o=t[a][n][1])}},expand:function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}zi(t,e)}},none:zi,silhouette:function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=t[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}zi(t,e)}},wiggle:function(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,l=0,u=0;s<i;++s){for(var c=t[e[s]],h=c[a][1]||0,p=(h-(c[a-1][1]||0))/2,f=0;f<s;++f){var d=t[e[f]];p+=(d[a][1]||0)-(d[a-1][1]||0)}l+=h,u+=p*h}n[a-1][1]+=n[a-1][0]=o,l&&(o-=u/l)}n[a-1][1]+=n[a-1][0]=o,zi(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n<r;++n)for(var i=0,o=0;o<e;++o){var a=f()(t[o][n][1])?t[o][n][0]:t[o][n][1];a>=0?(t[o][n][0]=i,t[o][n][1]=i+a,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}}},ta=function(t,e,n){var r=e.map((function(t){return t.props.dataKey})),i=function(){var t=(0,Bi.Z)([]),e=Vi,n=zi,r=Fi;function i(i){var o,a,s,l=Array.from(t.apply(this,arguments),Gi),u=l.length,c=-1,h=(0,G.Z)(i);try{for(h.s();!(s=h.n()).done;){var p=s.value;for(o=0,++c;o<u;++o)(l[o][c]=[0,+r(p,l[o].key,c,i)]).data=p}}catch(f){h.e(f)}finally{h.f()}for(o=0,a=(0,ji.Z)(e(l));o<u;++o)l[a[o]].index=o;return n(l,a),l}return i.keys=function(e){return arguments.length?(t="function"===typeof e?e:(0,Bi.Z)(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:(0,Bi.Z)(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?Vi:"function"===typeof t?t:(0,Bi.Z)(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?zi:t,i):n},i}().keys(r).value((function(t,e){return+Lo(t,e,0)})).order(Vi).offset(Qo[n]);return i(t)},ea=function(t,e,n,r,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce((function(t,e){var i=e.props,o=i.stackId;if(i.hide)return t;var a=e.props[n],s=t[a]||{hasStack:!1,stackGroups:{}};if((0,To.P2)(o)){var l=s.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};l.items.push(e),s.hasStack=!0,s.stackGroups[o]=l}else s.stackGroups[(0,To.EL)("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[e]};return Do(Do({},t),{},Po({},a,s))}),{});return Object.keys(a).reduce((function(e,o){var s=a[o];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(e,o){var a=s.stackGroups[o];return Do(Do({},e),{},Po({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:ta(t,a.items,i)}))}),{})),Do(Do({},e),{},Po({},o,s))}),{})},na=function(t,e){var n=e.realScaleType,r=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,s=n||e.scale;if("auto"!==s&&"linear"!==s)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var l=t.domain();if(!l.length)return null;var u=fo(l,i,a);return t.domain([x()(u),v()(u)]),{niceTicks:u}}if(i&&"number"===r){var c=t.domain();return{niceTicks:go(c,i,a)}}return null}
2,ra=function(t){var e=t.axis,n=t.ticks,r=t.offset,i=t.bandSize,o=t.entry,a=t.index;if("category"===e.type)return n[a]?n[a].coordinate+r:null;var s=Lo(o,e.dataKey,e.domain[a]);return A()(s)?null:e.scale(s)-i/2+r},ia=function(t){var e=t.numericAxis,n=e.scale.domain();if("number"===e.type){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},oa=function(t,e){var n=t.props.stackId;if((0,To.P2)(n)){var r=e[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o<a;o++)if(r.items[o]===t){i=o;break}return i>=0?r.stackedData[i]:null}}return null},aa=function(t,e,n){return Object.keys(t).reduce((function(r,i){var o=t[i].stackedData.reduce((function(t,r){var i=r.slice(e,n+1).reduce((function(t,e){return[x()(e.concat([t[0]]).filter(To.hj)),v()(e.concat([t[1]]).filter(To.hj))]}),[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},sa=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,la=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ua=function(t,e,n){if(S()(t))return t(e,n);if(!g()(t))return e;var r=[];if((0,To.hj)(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(sa.test(t[0])){var i=+sa.exec(t[0])[1];r[0]=e[0]-i}else S()(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if((0,To.hj)(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if(la.test(t[1])){var o=+la.exec(t[1])[1];r[1]=e[1]+o}else S()(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},ca=function(t,e,n){if(t&&t.scale&&t.scale.bandwidth){var r=t.scale.bandwidth();if(!n||r>0)return r}if(t&&e&&e.length>=2){for(var i=s()(e,(function(t){return t.coordinate})),o=1/0,a=1,l=i.length;a<l;a++){var u=i[a],c=i[a-1];o=Math.min((u.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},ha=function(t,e,n){return t&&t.length?o()(t,I()(n,"type.defaultProps.domain"))?e:t:e},pa=function(t,e){var n=t.props,r=n.dataKey,i=n.name,o=n.unit,a=n.formatter,s=n.tooltipType,l=n.chartType;return Do(Do({},(0,mo.L6)(t)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:Ro(t),value:Lo(e,r),type:s,payload:e,chartType:l})}},62440:function(t,e,n){"use strict";n.d(e,{IR:function(){return v},os:function(){return y},xE:function(){return g}});var r=n(27068);function i(t){return i="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},i(t)}function o(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 a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||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.")}()}function u(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}var c={widthCache:{}
2,cacheCount:0},h={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},p=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],f="recharts_measurement_span";var d=function(t){return Object.keys(t).reduce((function(e,n){return"".concat(e).concat((o=n,o.split("").reduce((function(t,e){return e===e.toUpperCase()?[].concat(l(t),["-",e.toLowerCase()]):[].concat(l(t),[e])}),[]).join("")),":").concat((r=n,i=t[n],p.indexOf(r)>=0&&i===+i?"".concat(i,"px"):i),";");var r,i,o}),"")},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===t||null===t||r.x.isSsr)return{width:0,height:0};var n="".concat(t),i=d(e),o="".concat(n,"-").concat(i);if(c.widthCache[o])return c.widthCache[o];try{var s=document.getElementById(f);s||((s=document.createElement("span")).setAttribute("id",f),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var l=a(a({},h),e);Object.keys(l).map((function(t){return s.style[t]=l[t],t})),s.textContent=n;var u=s.getBoundingClientRect(),p={width:u.width,height:u.height};return c.widthCache[o]=p,++c.cacheCount>2e3&&(c.cacheCount=0,c.widthCache={}),p}catch(g){return{width:0,height:0}}},y=function(t){var e=t.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!==typeof t.getBoundingClientRect&&(n=t.getBoundingClientRect()),{top:n.top+window.pageYOffset-e.clientTop,left:n.left+window.pageXOffset-e.clientLeft}},v=function(t,e){return{chartX:Math.round(t.pageX-e.left),chartY:Math.round(t.pageY-e.top)}}},70582:function(t,e,n){"use strict";n.d(e,{Ap:function(){return S},EL:function(){return m},Kt:function(){return b},P2:function(){return y},bv:function(){return _},h1:function(){return x},hU:function(){return d},hj:function(){return g},k4:function(){return w},uY:function(){return f}});var r=n(69706),i=n.n(r),o=n(95585),a=n.n(o),s=n(56783),l=n.n(s),u=n(79714),c=n.n(u),h=n(65406),p=n.n(h),f=function(t){return 0===t?0:t>0?1:-1},d=function(t){return p()(t)&&t.indexOf("%")===t.length-1},g=function(t){return c()(t)&&!l()(t)},y=function(t){return g(t)||p()(t)},v=0,m=function(t){var e=++v;return"".concat(t||"").concat(e)},x=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!g(t)&&!p()(t))return r;if(d(t)){var o=t.indexOf("%");n=e*parseFloat(t.slice(0,o))/100}else n=+t;return l()(n)&&(n=r),i&&n>e&&(n=e),n},b=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},_=function(t){if(!a()(t))return!1;for(var e=t.length,n={},r=0;r<e;r++){if(n[t[r]])return!0;n[t[r]]=!0}return!1},w=function(t,e){return g(t)&&g(e)?function(n){return t+n*(e-t)}:function(){return e}};function S(t,e,n){return t&&t.length?t.find((function(t){return t&&("function"===typeof e?e(t):i()(t,e))===n})):null}},27068:function(t,e,n){"use strict";n.d(e,{x:function(){return r}});var r={isSsr:!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return r[t]},set:function(t,e){if("string"===typeof t)r[t]=e;else{var n=Object.keys(t);n&&n.length&&n.forEach((function(e){r[e]=t[e]}))}}}},15601:function(t,e,n){"use strict";n.d(e,{Wk:function(){return f},op:function(){return g},t9:function(){return y},z3:function(){return x}});var r=n(31450),i=n.n(r),o=n(70582),a=n(5918);function s(t){return s="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},s(t)}function l(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 u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEac
2h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t,e)||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.")}()}function p(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}var f=Math.PI/180,d=function(t){return 180*t/Math.PI},g=function(t,e,n,r){return{x:t+Math.cos(-f*r)*n,y:e+Math.sin(-f*r)*n}},y=function(t,e,n,r,s){var l=t.width,p=t.height,f=t.startAngle,d=t.endAngle,g=(0,o.h1)(t.cx,l,l/2),y=(0,o.h1)(t.cy,p,p/2),v=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(e-(n.top||0)-(n.bottom||0)))/2}(l,p,n),m=(0,o.h1)(t.innerRadius,v,0),x=(0,o.h1)(t.outerRadius,v,.8*v);return Object.keys(e).reduce((function(t,n){var o,l=e[n],p=l.domain,v=l.reversed;if(i()(l.range))"angleAxis"===r?o=[f,d]:"radiusAxis"===r&&(o=[m,x]),v&&(o=[o[1],o[0]]);else{var b=h(o=l.range,2);f=b[0],d=b[1]}var _=(0,a.Hq)(l,s),w=_.realScaleType,S=_.scale;S.domain(p).range(o),(0,a.zF)(S);var M=(0,a.g$)(S,u(u({},l),{},{realScaleType:w})),I=u(u(u({},l),M),{},{range:o,radius:x,realScaleType:w,scale:S,cx:g,cy:y,innerRadius:m,outerRadius:x,startAngle:f,endAngle:d});return u(u({},t),{},c({},n,I))}),{})},v=function(t,e){var n=t.x,r=t.y,i=e.cx,o=e.cy,a=function(t,e){var n=t.x,r=t.y,i=e.x,o=e.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))}({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var s=(n-i)/a,l=Math.acos(s);return r>o&&(l=2*Math.PI-l),{radius:a,angle:d(l),angleInRadian:l}},m=function(t,e){var n=e.startAngle,r=e.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return t+360*Math.min(i,o)},x=function(t,e){var n=t.x,r=t.y,i=v({x:n,y:r},e),o=i.radius,a=i.angle,s=e.innerRadius,l=e.outerRadius;if(o<s||o>l)return!1;if(0===o)return!0;var c,h=function(t){var e=t.startAngle,n=t.endAngle,r=Math.floor(e/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:e-360*o,endAngle:n-360*o}}(e),p=h.startAngle,f=h.endAngle,d=a;if(p<=f){for(;d>f;)d-=360;for(;d<p;)d+=360;c=d>=p&&d<=f}else{for(;d>p;)d-=360;for(;d<f;)d+=360;c=d>=f&&d<=p}return c?u(u({},e),{},{radius:o,angle:m(d,e)}):null}},60181:function(t,e,n){"use strict";n.d(e,{$R:function(){return j},Bh:function(){return z},Gf:function(){return M},L6:function(){return L},NN:function(){return C},TT:function(){return O},eu:function(){return R},rL:function(){return E},sP:function(){return k}});var r=n(91845),i=n.n(r),o=n(50375),a=n.n(o),s=n(65406),l=n.n(s),u=n(69706),c=n.n(u),h=n(31450),p=n.n(h),f=n(95585),d=n.n(f),g=n(47313),y=n(96214),v=n(70582),m=n(68268),x=n(5196),b=["children"],_=["children"];function w(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var S={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"}
2,M=function(t){return"string"===typeof t?t:t?t.displayName||t.name||"Component":""},I=null,T=null,A=function t(e){if(e===I&&d()(T))return T;var n=[];return g.Children.forEach(e,(function(e){p()(e)||((0,y.isFragment)(e)?n=n.concat(t(e.props.children)):n.push(e))})),T=n,I=e,n};function C(t,e){var n=[],r=[];return r=d()(e)?e.map((function(t){return M(t)})):[M(e)],A(t).forEach((function(t){var e=c()(t,"type.displayName")||c()(t,"type.name");-1!==r.indexOf(e)&&n.push(t)})),n}function k(t,e){var n=C(t,e);return n&&n[0]}var O=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!(!(0,v.hj)(n)||n<=0||!(0,v.hj)(r)||r<=0)},D=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],P=function(t){return t&&t.type&&l()(t.type)&&D.indexOf(t.type)>=0},L=function(t,e,n){if(!t||"function"===typeof t||"boolean"===typeof t)return null;var r=t;if((0,g.isValidElement)(t)&&(r=t.props),!i()(r))return null;var o={};return Object.keys(r).forEach((function(t){var i;(function(t,e,n,r){var i,o=null!==(i=null===x.ry||void 0===x.ry?void 0:x.ry[r])&&void 0!==i?i:[];return!a()(t)&&(r&&o.includes(e)||x.Yh.includes(e))||n&&x.nv.includes(e)})(null===(i=r)||void 0===i?void 0:i[t],t,e,n)&&(o[t]=r[t])})),o},E=function t(e,n){if(e===n)return!0;var r=g.Children.count(e);if(r!==g.Children.count(n))return!1;if(0===r)return!0;if(1===r)return N(d()(e)?e[0]:e,d()(n)?n[0]:n);for(var i=0;i<r;i++){var o=e[i],a=n[i];if(d()(o)||d()(a)){if(!t(o,a))return!1}else if(!N(o,a))return!1}return!0},N=function(t,e){if(p()(t)&&p()(e))return!0;if(!p()(t)&&!p()(e)){var n=t.props||{},r=n.children,i=w(n,b),o=e.props||{},a=o.children,s=w(o,_);return r&&a?(0,m.w)(i,s)&&E(r,a):!r&&!a&&(0,m.w)(i,s)}return!1},R=function(t,e){var n=[],r={};return A(t).forEach((function(t,i){if(P(t))n.push(t);else if(t){var o=M(t.type),a=e[o]||{},s=a.handler,l=a.once;if(s&&(!l||!r[o])){var u=s(t,o,i);n.push(u),r[o]=!0}}})),n},z=function(t){var e=t&&t.type;return e&&S[e]?S[e]:null},j=function(t,e){return A(e).indexOf(t)}},68268:function(t,e,n){"use strict";function r(t,e){for(var n in t)if({}.hasOwnProperty.call(t,n)&&(!{}.hasOwnProperty.call(e,n)||t[n]!==e[n]))return!1;for(var r in e)if({}.hasOwnProperty.call(e,r)&&!{}.hasOwnProperty.call(t,r))return!1;return!0}n.d(e,{w:function(){return r}})},5196:function(t,e,n){"use strict";n.d(e,{Yh:function(){return s},Ym:function(){return h},bw:function(){return p},nv:function(){return c},ry:function(){return u}});var r=n(91845),i=n.n(r),o=n(47313);function a(t){return a="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},a(t)}var s=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
2dering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],l=["points","pathLength"],u={svg:["viewBox","children"],polygon:l,polyline:l},c=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDrag
2Capture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],h=function(t,e){if(!t||"function"===typeof t||"boolean"===typeof t)return null;var n=t;if((0,o.isValidElement)(t)&&(n=t.props),!i()(n))return null;var r={};return Object.keys(n).forEach((function(t){c.includes(t)&&(r[t]=e||function(e){return n[t](n,e)})})),r},p=function(t,e,n){if(!i()(t)||"object"!==a(t))return null;var r=null;return Object.keys(t).forEach((function(i){var o=t[i];c.includes(i)&&"function"===typeof o&&(r||(r={}),r[i]=function(t,e,n){return function(r){return t(e,n,r),null}}(o,e,n))})),r}},70017:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(39126)),i=n(89899),o=s(n(38922)),a=s(n(87861));function s(t){return t&&t.__esModule?t:{default:t}}var l=/((?:\-[a-z]+\-)?calc)/;e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,r.default)(t).walk((function(t){if("function"===t.type&&l.test(t.value)){var n=r.default.stringify(t.nodes);if(!(n.indexOf("constant")>=0||n.indexOf("env")>=0)){var s=i.parser.parse(n),u=(0,o.default)(s,e);t.type="word",t.value=(0,a.default)(t.value,u,e)}}}),!0).toString()},t.exports=e.default},33925:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(86258),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t,e,n){switch(t.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(t,e,n){e.type===t.type&&(e={type:t.type,value:(0,o.default)(e.value,e.unit,t.unit,n),unit:t.unit});return{left:t,right:e}}(t,e,n);default:return{left:t,right:e}}},t.exports=e.default},38922:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.flip=u;var r,i=n(33925),o=(r=i)&&r.__esModule?r:{default:r};function a(t,e){return"MathExpression"===t.type?function(t,e){switch(t=function(t,e){var n=(0,o.default)(t.left,t.right,e),r=a(n.left,e),i=a(n.right,e);"MathExpression"===r.type&&"MathExpression"===i.type&&("/"===r.operator&&"*"===i.operator||"-"===r.operator&&"+"===i.operator||"*"===r.operator&&"/"===i.operator||"+"===r.operator&&"-"===i.operator)&&(s(r.right,i.right)?n=(0,o.default)(r.left,i.left,e):s(r.right,i.left)&&(n=(0,o.default)(r.left,i.right,e)),r=a(n.left,e),i=a(n.right,e));return t.left=r,t.right=i,t}(t,e),t.operator){case"+":case"-":return function(t,e){var n=t,r=n.left,i=n.right,o=n.operator;if("CssVariable"===r.type||"CssVariable"===i.type)return t;if(0===i.value)return r;if(0===r.value&&"+"===o)return i;if(0===r.value&&"-"===o)return c(i);r.type===i.type&&l(r.type)&&((t=Object.assign({},r)).value="+"===o?r.value+i.value:r.value-i.value);if(l(r.type)&&("+"===i.operator||"-"===i.operator)&&"MathExpression"===i.type){if(r.type===i.left.type)return(t=Object.assign({},t)).left=a({type:"MathExpression",operator:o,left:r,right:i.left},e),t.right=i.right,t.operator="-"===o?u(i.operator):i.operator,a(t,e);if(r.type===i.right.type)return(t=Object.assign({},t)).left=a({type:"MathExpression",operator:"-"===o?u(i.operator):i.operator,left:r,right:i.right},e),t.right=i.left,a(t,e)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&l(i.type)){if(i.type===r.left.type)return(t=Object.assign({},r)).left=a({type:"MathExpression",operator:o,left:r.left,right:i},e),a(t,e);if(i.type===r.right.type)return t=Object.assign({},r),"-"===r.operator?(t.right=a({type:"MathExpression",operator:"-"===o?"+":"-",left:i,right:r.right},e),t.operator="-"===o?"-":"+"):t.right=a({type:"MathExpression",operator:o,left:r.right,right:i},e),t.right.value<0&&(t.right.value*=-1,t.operator="-"===t.operator?"+":"-"),a(t,e)}return t}(t,e);case"/":return function(t,e){if(!l(t.right.type))return t;if("Value"!==t.right.type)throw new Error('Cannot divide by "'+t.right.unit+'", number expected');if(0===t.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===t.left.type)return l(t.left.left.type)&&l(t.left.right.type)?(t.left.left.value/=t.right.value,t.left.right.value/=t.right.value,a(t.left,e)):t;if(l(t.left.type))return t.left.value/=t.right.value,t.left;return t}(t,e);case"*":return function(t){if("MathExpression"===t.left.type&&"Value"===t.right.type){if(l(t.left.left.type)&&l(t.left.right.type))return t.left.left.value*=t.right.value,t.left.right.value*=t.right.value,t.left}else{if(l(t.left.type)&&"Value"===t.right.type)return t.left.value*=t.right.value,t.left;if("Value"===t.left.type&&"MathExpression"===t.right.type){if(l(t.right.left.type)&&l(t.right.right.type))return t.right.left.value*=t.left.value,t.right.right.value*=t.left.value,t.right}
2else if("Value"===t.left.type&&l(t.right.type))return t.right.value*=t.left.value,t.right}return t}(t)}return t}(t,e):"Calc"===t.type?a(t.value,e):t}function s(t,e){return t.type===e.type&&t.value===e.value}function l(t){switch(t){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function u(t){return"+"===t?"-":"+"}function c(t){return l(t.type)?t.value=-t.value:"MathExpression"==t.type&&(t.left=c(t.left),t.right=c(t.right)),t}e.default=a},87861:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r=a(e,n);return"MathExpression"===e.type&&(r=t+"("+r+")"),r};var r=n(38922),i={"*":0,"/":0,"+":1,"-":1};function o(t,e){if(!1!==e){var n=Math.pow(10,e);return Math.round(t*n)/n}return t}function a(t,e){switch(t.type){case"MathExpression":var n=t.left,s=t.right,l=t.operator,u="";return"MathExpression"===n.type&&i[l]<i[n.operator]?u+="("+a(n,e)+")":u+=a(n,e),u+=" "+t.operator+" ","MathExpression"===s.type&&i[l]<i[s.operator]?u+="("+a(s,e)+")":"MathExpression"===s.type&&"-"===l&&["+","-"].includes(s.operator)?(s.operator=(0,r.flip)(s.operator),u+=a(s,e)):u+=a(s,e),u;case"Value":return o(t.value,e);case"CssVariable":return t.fallback?"var("+t.value+", "+a(t.fallback,e)+")":"var("+t.value+")";case"Calc":return t.prefix?"-"+t.prefix+"-calc("+a(t.value,e)+")":"calc("+a(t.value,e)+")";default:return o(t.value,e)+t.unit}}t.exports=e.default},89899:function(t,e){var n=function(){function t(t,e){var n;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonParserError"}),null==t&&(t="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:t}),this.hash=e,e&&e.exception instanceof Error){var r=e.exception;this.message=r.message||t,n=r.stack}n||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):n=new Error(t).stack),n&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:n})}function e(t,e,n){n=n||0;for(var r=0;r<e;r++)this.push(t),t+=n}function n(t,e){for(e+=t=this.length-t;t<e;t++)this.push(this[t])}function r(t){for(var e=[],n=0,r=t.length;n<r;n++){var i=t[n];"function"===typeof i?(n++,i.apply(e,t[n])):e.push(i)}return e}"function"===typeof Object.setPrototypeOf?Object.setPrototypeOf(t.prototype,Error.prototype):t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.name="JisonParserError";var i={trace:function(){},JisonParserError:t,yy:{},options:{type:"lalr",hasPartialLrUpgradeOnConflict:!0,errorRecoveryTokenDiscardCount:3},symbols_:{$accept:0,$end:1,ADD:3,ANGLE:16,CHS:22,COMMA:14,CSS_CPROP:13,CSS_VAR:12,DIV:6,EMS:20,EOF:1,EXS:21,FREQ:18,LENGTH:15,LPAREN:7,MUL:5,NESTED_CALC:9,NUMBER:11,PERCENTAGE:28,PREFIX:10,REMS:23,RES:19,RPAREN:8,SUB:4,TIME:17,VHS:24,VMAXS:27,VMINS:26,VWS:25,css_value:33,css_variable:32,error:2,expression:29,math_expression:30,value:31},terminals_:{1:"EOF",2:"error",3:"ADD",4:"SUB",5:"MUL",6:"DIV",7:"LPAREN",8:"RPAREN",9:"NESTED_CALC",10:"PREFIX",11:"NUMBER",12:"CSS_VAR",13:"CSS_CPROP",14:"COMMA",15:"LENGTH",16:"ANGLE",17:"TIME",18:"FREQ",19:"RES",20:"EMS",21:"EXS",22:"CHS",23:"REMS",24:"VHS",25:"VWS",26:"VMINS",27:"VMAXS",28:"PERCENTAGE"},TERROR:2,EOF:1,originalQuoteName:null,originalParseError:null,cleanupAfterParse:null,constructParseErrorInfo:null,yyMergeLocationInfo:null,__reentrant_call_depth:0,__error_infos:[],__error_recovery_infos:[],quoteName:function(t){return'"'+t+'"'},getSymbolName:function(t){if(this.terminals_[t])return this.terminals_[t];var e=this.symbols_;for(var n in e)if(e[n]===t)return n;return null},describeSymbol:function(t){if(t!==this.EOF&&this.terminal_descriptions_&&this.terminal_descriptions_[t])return this.terminal_descriptions_[t];if(t===this.EOF)return"end of input";var e=this.getSymbolName(t);return e?this.quoteName(e):null},collect_expected_token_set:function(t,e){var n=this.TERROR,r=[],i={};if(!e&&this.state_descriptions_&&this.state_descriptions_[t])return[this.state_descriptions_[t]];for(var o in this.table[t])if((o=+o)!==n){var a=e?o:this.describeSymbol(o);a&&!i[a]&&(r.push(a),i[a]=!0)}return r},productions_:function(t){for(var e=[],n=t.pop,r=t.rule,i=0,o=n.length;i<o;i++)e.push([n[i],r[i]]);return e}({pop:r([29,e,[30,10],31,31,32,32,e,[33,15]]),rule:r([2,e,[3,5],4,7,e,[1,4],2,4,6,e,[1,14],2])}),performAction:function(t,e,n){var r=this.yy;r.parser,r.lexer;switch(t){case 0:case 6:this.$=n[e-1];break;case 1:return this.$=n[e-1],n[e-1];case 2:case 3:case 4:case 5:this.$={type:"MathExpression",operator:n[e-1],left
2:n[e-2],right:n[e]};break;case 7:this.$={type:"Calc",value:n[e-1]};break;case 8:this.$={type:"Calc",value:n[e-1],prefix:n[e-5]};break;case 9:case 10:case 11:this.$=n[e];break;case 12:this.$={type:"Value",value:parseFloat(n[e])};break;case 13:this.$={type:"Value",value:-1*parseFloat(n[e])};break;case 14:this.$={type:"CssVariable",value:n[e-1]};break;case 15:this.$={type:"CssVariable",value:n[e-3],fallback:n[e-1]};break;case 16:this.$={type:"LengthValue",value:parseFloat(n[e]),unit:/[a-z]+/.exec(n[e])[0]};break;case 17:this.$={type:"AngleValue",value:parseFloat(n[e]),unit:/[a-z]+/.exec(n[e])[0]};break;case 18:this.$={type:"TimeValue",value:parseFloat(n[e]),unit:/[a-z]+/.exec(n[e])[0]};break;case 19:this.$={type:"FrequencyValue",value:parseFloat(n[e]),unit:/[a-z]+/.exec(n[e])[0]};break;case 20:this.$={type:"ResolutionValue",value:parseFloat(n[e]),unit:/[a-z]+/.exec(n[e])[0]};break;case 21:this.$={type:"EmValue",value:parseFloat(n[e]),unit:"em"};break;case 22:this.$={type:"ExValue",value:parseFloat(n[e]),unit:"ex"};break;case 23:this.$={type:"ChValue",value:parseFloat(n[e]),unit:"ch"};break;case 24:this.$={type:"RemValue",value:parseFloat(n[e]),unit:"rem"};break;case 25:this.$={type:"VhValue",value:parseFloat(n[e]),unit:"vh"};break;case 26:this.$={type:"VwValue",value:parseFloat(n[e]),unit:"vw"};break;case 27:this.$={type:"VminValue",value:parseFloat(n[e]),unit:"vmin"};break;case 28:this.$={type:"VmaxValue",value:parseFloat(n[e]),unit:"vmax"};break;case 29:this.$={type:"PercentageValue",value:parseFloat(n[e]),unit:"%"};break;case 30:var i=n[e];i.value*=-1,this.$=i}},table:function(t){for(var e=[],n=t.len,r=t.symbol,i=t.type,o=t.state,a=t.mode,s=t.goto,l=0,u=n.length;l<u;l++){for(var c=n[l],h={},p=0;p<c;p++){var f=r.shift();switch(i.shift()){case 2:h[f]=[a.shift(),s.shift()];break;case 0:h[f]=o.shift();break;default:h[f]=[3]}}e.push(h)}return e}({len:r([24,1,5,23,1,18,e,[0,3],1,e,[0,16],e,[23,4],n,[28,3],0,0,16,1,6,6,e,[0,3],5,1,2,n,[37,3],n,[20,3],5,0,0]),symbol:r([4,7,9,11,12,e,[15,19,1],1,1,e,[3,4,1],n,[30,19],n,[29,4],7,4,10,11,n,[22,14],n,[19,3],n,[43,22],n,[23,69],n,[139,4],8,n,[51,24],4,n,[138,15],13,n,[186,5],8,n,[6,6],n,[5,5],9,8,14,n,[159,47],n,[60,10]]),type:r([e,[2,19],e,[0,5],1,e,[2,24],e,[0,4],n,[22,19],n,[43,42],n,[23,70],n,[28,25],n,[45,25],n,[113,54]]),state:r([1,2,8,6,7,30,n,[4,3],33,37,n,[5,3],38,n,[4,3],39,n,[4,3],40,n,[4,3],42,n,[21,4],50,n,[5,3],51,n,[4,3]]),mode:r([e,[1,179],e,[2,3],n,[5,5],n,[6,4],e,[1,57]]),goto:r([5,3,4,24,e,[9,15,1],e,[25,5,1],n,[24,19],31,35,32,34,n,[18,14],36,n,[38,19],n,[19,57],n,[118,4],41,n,[24,19],43,35,n,[16,14],44,e,[2,3],28,29,2,e,[3,3],28,29,3,n,[53,4],e,[45,5,1],n,[100,42],52,n,[5,4],53])}),defaultActions:function(t){for(var e={},n=t.idx,r=t.goto,i=0,o=n.length;i<o;i++){e[n[i]]=r[i]}return e}({idx:r([6,7,8,e,[10,16,1],33,34,39,40,41,45,47,52,53]),goto:r([9,10,11,e,[16,14,1],12,1,30,13,e,[4,4,1],14,15,8])}),parseError:function(t,e,n){if(!e.recoverable)throw"function"===typeof this.trace&&this.trace(t),n||(n=this.JisonParserError),new n(t,e);"function"===typeof this.trace&&this.trace(t),e.destroy()},parse:function(t){var e,n=this,r=new Array(128),i=new Array(128),o=new Array(128),a=this.table,s=0,l=0,u=(this.TERROR,this.EOF),c=(this.options.errorRecoveryTokenDiscardCount,[0,54]);e=this.__lexer__?this.__lexer__:this.__lexer__=Object.create(this.lexer);var h={parseError:void 0,quoteName:void 0,lexer:void 0,parser:void 0,pre_parse:void 0,post_parse:void 0,pre_lex:void 0,post_lex:void 0};function p(){var t=e.fastLex();return"number"!==typeof t&&(t=n.symbols_[t]||t),t||u}"function"!==typeof assert||assert,this.yyGetSharedState=function(){return h},function(t,e){for(var n in e)"undefined"===typeof t[n]&&Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}(h,this.yy),h.lexer=e,h.parser=this,"function"===typeof h.parseError?this.parseError=function(t,e,n){return n||(n=this.JisonParserError),h.parseError.call(this,t,e,n)}:this.parseError=this.originalParseError,"function"===typeof h.quoteName?this.quoteName=function(t){return h.quoteName.call(this,t)}:this.quoteName=this.originalQuoteName,this.cleanupAfterParse=function(t,n,a){var l,u;n&&((h.post_parse||this.post_parse)&&(u=this.constructParseErrorInfo(null,null,null,!1)),h.post_parse&&"undefined"!==typeof(l=h.post_parse.call(this,h,t,u))&&(t=l),this.post_parse&&"undefined"!==typeof(l=this.post_parse.call(this,h,t,u))&&(t=l),u&&u.destroy&&u.destroy());if(this.__reentrant_call_depth>
21)return t;if(e.cleanupAfterLex&&e.cleanupAfterLex(a),h&&(h.lexer=void 0,h.parser=void 0,e.yy===h&&(e.yy=void 0)),h=void 0,this.parseError=this.originalParseError,this.quoteName=this.originalQuoteName,r.length=0,i.length=0,o.length=0,s=0,!a){for(var c=this.__error_infos.length-1;c>=0;c--){var p=this.__error_infos[c];p&&"function"===typeof p.destroy&&p.destroy()}this.__error_infos.length=0}return t},this.constructParseErrorInfo=function(t,n,a,u){var c={errStr:t,exception:n,text:e.match,value:e.yytext,token:this.describeSymbol(l)||l,token_id:l,line:e.yylineno,expected:a,recoverable:u,state:f,action:d,new_state:b,symbol_stack:r,state_stack:i,value_stack:o,stack_pointer:s,yy:h,lexer:e,parser:this,destroy:function(){var t=!!this.recoverable;for(var e in this)this.hasOwnProperty(e)&&"object"===typeof e&&(this[e]=void 0);this.recoverable=t}};return this.__error_infos.push(c),c};var f,d,g,y,v,m,x,b,_=function(){var t=e.lex();return"number"!==typeof t&&(t=n.symbols_[t]||t),t||u},w={$:!0,_$:void 0,yy:h},S=!1;try{if(this.__reentrant_call_depth++,e.setInput(t,h),"function"===typeof e.canIUse)e.canIUse().fastLex&&(_=p);for(o[s]=null,i[s]=0,r[s]=0,++s,this.pre_parse&&this.pre_parse.call(this,h),h.pre_parse&&h.pre_parse.call(this,h),b=i[s-1];;){if(f=b,this.defaultActions[f])d=2,b=this.defaultActions[f];else if(l||(l=_()),y=a[f]&&a[f][l]||c,b=y[1],!(d=y[0])){var M,I=this.describeSymbol(l)||l,T=this.collect_expected_token_set(f);M="number"===typeof e.yylineno?"Parse error on line "+(e.yylineno+1)+": ":"Parse error: ","function"===typeof e.showPosition&&(M+="\n"+e.showPosition(69,10)+"\n"),T.length?M+="Expecting "+T.join(", ")+", got unexpected "+I:M+="Unexpected "+I,v=this.constructParseErrorInfo(M,null,T,!1),"undefined"!==typeof(g=this.parseError(v.errStr,v,this.JisonParserError))&&(S=g);break}switch(d){default:if(d instanceof Array){v=this.constructParseErrorInfo("Parse Error: multiple actions possible at state: "+f+", token: "+l,null,null,!1),"undefined"!==typeof(g=this.parseError(v.errStr,v,this.JisonParserError))&&(S=g);break}v=this.constructParseErrorInfo("Parsing halted. No viable error recovery approach available due to internal system failure.",null,null,!1),"undefined"!==typeof(g=this.parseError(v.errStr,v,this.JisonParserError))&&(S=g);break;case 1:r[s]=l,o[s]=e.yytext,i[s]=b,++s,l=0;continue;case 2:if(m=(x=this.productions_[b-1])[1],"undefined"!==typeof(g=this.performAction.call(w,b,s-1,o))){S=g;break}s-=m;var A=x[0];r[s]=A,o[s]=w.$,b=a[i[s-1]][A],i[s]=b,++s;continue;case 3:-2!==s&&(S=!0,s--,"undefined"!==typeof o[s]&&(S=o[s]))}break}}catch(C){if(C instanceof this.JisonParserError)throw C;if(e&&"function"===typeof e.JisonLexerError&&C instanceof e.JisonLexerError)throw C;v=this.constructParseErrorInfo("Parsing aborted due to exception.",C,null,!1),S=!1,"undefined"!==typeof(g=this.parseError(v.errStr,v,this.JisonParserError))&&(S=g)}finally{S=this.cleanupAfterParse(S,!0,!0),this.__reentrant_call_depth--}return S}};i.originalParseError=i.parseError,i.originalQuoteName=i.quoteName;var o=function(){function t(t,e){var n;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonLexerError"}),null==t&&(t="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:t}),this.hash=e,e&&e.exception instanceof Error){var r=e.exception;this.message=r.message||t,n=r.stack}n||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):n=new Error(t).stack),n&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:n})}"function"===typeof Object.setPrototypeOf?Object.setPrototypeOf(t.prototype,Error.prototype):t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.name="JisonLexerError";var e={EOF:1,ERROR:2,__currentRuleSet__:null,__error_infos:[],__decompressed:!1,done:!1,_backtrack:!1,_input:"",_more:!1,_signaled_error_token:!1,conditionStack:[],match:"",matched:"",matches:!1,yytext:"",offset:0,yyleng:0,yylineno:0,yylloc:null,constructLexErrorInfo:function(t,e,n){if(t=""+t,void 0==n&&(n=!(t.indexOf("\n")>0&&t.indexOf("^")>0)),this.yylloc&&n)if("function"===typeof this.prettyPrintRange){this.prettyPrintRange(this.yylloc);/\n\s*$/.test(t)||(t+="\n"),t+="\n Erroneous area:\n"+this.prettyPrintRange(this.yylloc)}else if("function"===typeof this.showPosition){var r=this.showPosition();r&&(t.length&&"\n"!==t[t.length-1]&&"\n"!==r[0]?t+="\n"+r:t+=r)}var i={errStr:t,recoverable:!!e,text:this.match,token:null,line:this.yylineno,loc:this.yylloc,yy:this.yy,lexer:this,destroy:function(){var t=!!this.recoverable;for(var e in this)this.hasOwnProperty(e)&&"object"===typeof e&&(this[e]=void 0);this.recoverable=t}};return this.__error_infos.push(i),i},parseError:function(t,e,n){if(n||(n=this.JisonLexerError),this.yy){if(this.yy.parser&&"function"===typeof this.yy.parser.parseError)return this.yy.parser.parseError.call(this,t,e,n)||this.ERROR;if("function"===typeof this.yy.parseError)return this.yy.parseError.call(this,t,e,n)||this.ERROR}throw new n(t,e)},yyerror:function(t){var e="";this.yylloc&&(e=" on line "+(this.yylineno+1));var n=this.constructLexErrorInfo("Lexical error"+e+": "+t,this.options.lexerErrorsAreRecoverable),r=Array.prototype.slice.call(arguments,1
2);return r.length&&(n.extra_error_attributes=r),this.parseError(n.errStr,n,this.JisonLexerError)||this.ERROR},cleanupAfterLex:function(t){if(this.setInput("",{}),!t){for(var e=this.__error_infos.length-1;e>=0;e--){var n=this.__error_infos[e];n&&"function"===typeof n.destroy&&n.destroy()}this.__error_infos.length=0}return this},clear:function(){this.yytext="",this.yyleng=0,this.match="",this.matches=!1,this._more=!1,this._backtrack=!1;var t=this.yylloc?this.yylloc.last_column:0;this.yylloc={first_line:this.yylineno+1,first_column:t,last_line:this.yylineno+1,last_column:t,range:[this.offset,this.offset]}},setInput:function(t,e){if(this.yy=e||this.yy||{},!this.__decompressed){for(var n=this.rules,r=0,i=n.length;r<i;r++){"number"===typeof(p=n[r])&&(n[r]=n[p])}var o=this.conditions;for(var a in o){var s=o[a],l=s.rules,u=(i=l.length,new Array(i+1)),c=new Array(i+1);for(r=0;r<i;r++){var h=l[r],p=n[h];u[r+1]=p,c[r+1]=h}s.rules=c,s.__rule_regexes=u,s.__rule_count=i}this.__decompressed=!0}return this._input=t||"",this.clear(),this._signaled_error_token=!1,this.done=!1,this.yylineno=0,this.matched="",this.conditionStack=["INITIAL"],this.__currentRuleSet__=null,this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]},this.offset=0,this},editRemainingInput:function(t,e){var n=t.call(this,this._input,e);return"string"!==typeof n?n&&(this._input=""+n):this._input=n,this},input:function(){if(!this._input)return null;var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=1,n=!1;if("\n"===t)n=!0;else if("\r"===t){n=!0;var r=this._input[1];"\n"===r&&(e++,t+=r,this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r,this.yylloc.range[1]++)}return n?(this.yylineno++,this.yylloc.last_line++,this.yylloc.last_column=0):this.yylloc.last_column++,this.yylloc.range[1]++,this._input=this._input.slice(e),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);if(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.yyleng=this.yytext.length,this.offset-=e,this.match=this.match.substr(0,this.match.length-e),this.matched=this.matched.substr(0,this.matched.length-e),n.length>1){this.yylineno-=n.length-1,this.yylloc.last_line=this.yylineno+1;var r=this.match,i=r.split(/(?:\r\n?|\n)/g);1===i.length&&(i=(r=this.matched).split(/(?:\r\n?|\n)/g)),this.yylloc.last_column=i[i.length-1].length}else this.yylloc.last_column-=e;return this.yylloc.range[1]=this.yylloc.range[0]+this.yyleng,this.done=!1,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else{var t="";this.yylloc&&(t=" on line "+(this.yylineno+1));var e=this.constructLexErrorInfo("Lexical error"+t+": You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).",!1);this._signaled_error_token=this.parseError(e.errStr,e,this.JisonLexerError)||this.ERROR}return this},less:function(t){return this.unput(this.match.slice(t))},pastInput:function(t,e){var n=this.matched.substring(0,this.matched.length-this.match.length);t<0?t=n.length:t||(t=20),e<0?e=n.length:e||(e=1);var r=(n=n.substr(2*-t-2)).replace(/\r\n|\r/g,"\n").split("\n");return(n=(r=r.slice(-e)).join("\n")).length>t&&(n="..."+n.substr(-t)),n},upcomingInput:function(t,e){var n=this.match;t<0?t=n.length+this._input.length:t||(t=20),e<0?e=t:e||(e=1),n.length<2*t+2&&(n+=this._input.substring(0,2*t+2));var r=n.replace(/\r\n|\r/g,"\n").split("\n");return(n=(r=r.slice(0,e)).join("\n")).length>t&&(n=n.substring(0,t)+"..."),n},showPosition:function(t,e){var n=this.pastInput(t).replace(/\s/g," "),r=new Array(n.length+1).join("-");return n+this.upcomingInput(e).replace(/\s/g," ")+"\n"+r+"^"},deriveLocationInfo:function(t,e,n,r){var i={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]};return t&&(i.first_line=0|t.first_line,i.last_line=0|t.last_line,i.first_column=0|t.first_column,i.last_column=0|t.last_column,t.range&&(i.range[0]=0|t.range[0],i.range[1]=0|t.range[1])),(i.first_line<=0||i.last_line<i.first_line)&&(i.first_line<=0&&e&&(i.first_line=0|e.last_line,i.first_column=0|e.last_column,e.range&&(i.range[0]=0|t.range[1])),(i.last_line<=0||i.last_line<i.first_line)&&n&&(i.last_line=0|n.first_line,i.last_column=0|n.first_column,n.range&&(i.range[1]=0|t.range[0])),i.first_line<=0&&r&&(i.last_line<=0||r.last_line<=i.last_line)&&(i.first_line=0|r.first_line,i.first_column=0|r.first_column,r.range&&(i.range[0]=0|r.range[0])),i.last_line<=0&&r&&(i.first_line<=0||r.first_line>=i.first_line)&&(i.last_line=0|r.last_line,i.last_column=0|r.last_column,r.range&&(i.range[1]=0|r.range[1]))),i.last_line<=0&&(i.first_line<=0?(i.first_line=this.yylloc.first_line,i.last_line=this.yylloc.last_line,i.first_column=this.yylloc.first_column,i.last_column=this.yylloc.last_column,i.range[0]=this.yylloc.range[0],i.range[1]=this.yylloc.range[1]):(i.last_line=this.yylloc.last_line,i.last_column=this.yylloc.last_column,i.range[1]=this.yylloc.range[1])),i.first_line<=0&&(i.first_line=i.last_line,i.first_column=0,i.range[1]=i.range[0]),i.first_column<0&&(i.first_column=0),i.last_column<0&&(i.last_column=i.first_column>0?i.first_column:80),i},prettyPrintRange:function(t,e,n){t=this.deriveLocationInfo(t,e,n);var r=(this.matched+this._input).split("\n"),i=Math.max(1,e?e.first_line:t.first_line-3),o=Math.max(1,n?n.last_line:t.last_line+1),a=1+Math.log10(1|o)|0,s=new Array(a).join(" "),l=[],u=r.slice(i-1,o+1).map((function(e,n){var r=n+i,o=(s+r).substr(-a)+": "+e,u=new Array(a+1).join("^"),c=3,h=0;(r===t.first_line?(c+=t.first_column,h=Math.max(2,(r===t.last_line?t.last_column:e.length)-t.first_column+1)):r===t.last_line?h=Math.max(2,t.last_column+1):r>t.first_line&&r<t.last_line&&(h=Math.max(2,e.length+1)),h)&&(o+="\n"+u+new Array(c).join(".")+new Array(h).join("^"),e.trim().length>0&&l.push(n));return o=o.replace(/\t/g," ")}));if(l.length>4){var c=l[1]+1,h=l[l.length-2]-1,p=new Array(a+1).join(" ")+" (...continued...)";p+="\n"+new Array(a+1).join("-")+" (---------------)",u.splice(c,h-c+1,p)}return u.join("\n")},describeYYLLOC:function(t,e){var n,r=t.first_line,i=t.last_line,o=t.first_column,a=t.last_column;if(0===i-r?(n="line "+r+", ",n+=a-o<=1?"column "+o:"columns "+o+" .. "+a):n="lines "+r+"(column "+o+") .. "+i+"(column "+a+")",t.range&&e){var s=t.range[0],l=t.range[1]-1;n+=l<=s?" {String Offset: "+s+"}":" {String Offset range: "+s+" .. "+l+"}"}return n},test_match:function(t,e){var n,r,i,o,a;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.yylloc.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column,range:this.yylloc.range.slice(0)},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done}),a=(o=t[0]).length,(r=o.split(/(?:\r\n?|\n)/g)).length>1?(this.yylineno+=r.length-1,this.yylloc.last_line=this.yylineno+1,this.yylloc.last_column=r[r.length-1].length):this.yylloc.last_column+=a,this.yytext+=o,this.match+=o,this.matched+=o,this.matches=t,this.yyleng=this.yytext.length,this.yylloc.range[1]+=a,this.offset+=a,this._more=!1,this._backtrack=!1,this._input=this._input.slice(a),n=this.performAction.call(this,this.yy,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in i)this[s]=i[s];return this.__currentRuleSet__=null,!1}return!!this._signaled_error_token&&(n=this._signaled_error_token,this._signaled_error_token=!1,n)},next:function(){if(this.done)return this.clear(),this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||this.clear();var i=this.__currentRuleSet__;if(!i&&(!(i=this.__currentRuleSet__=this._currentRules())||!i.rules)){var o="";this.options.trackPosition&&(o=" on line "+(this.yylineno+1));var a=this.constructLexErrorInfo("Internal lexer engine error"+o+': The lex grammar programmer pushed a non-existing condition name "'+this.topState()+'"; this is a fatal error and should be reported to the application programmer team!',!1);return this.parseError(a.errStr,a,this.JisonLexerError)||this.ERROR}for(var s=i.rules,l=i.__rule_regexes,u=i.__rule_count,c=1;c<=u;c++)if((n=this._input.match(l[c]))&&(!e||n[0].length>e[0].length)){if(e=n,r=c,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,s[c])))return t;if(this._backtrack){e=void 0;continue}return!1}if(!this.options.flex)break}if(e)return!1!==(t=this.test_match(e,s[r]))&&t;if(this._input){o="";this.options.trackPosition&&(o=" on line "+(this.yylineno+1));a=this.constructLexErrorInfo("Lexical error"+o+": Unrecognized text.",this.options.lexerErrorsAreRecoverable);var h=this._input,p=this.topState(),f=this.conditionStack.length;return(t=this.parseError(a.errStr,a,this.JisonLexerError)||this.ERROR)===this.ERROR&&(this.matches||h!==this._input||p!==this.topState()||f!==this.conditionStack.length||this.input()),t}return this.done=!0,this.clear(),this.EOF},lex:function(){var t;for("function"===typeof this.pre_lex&&(t=this.pre_lex.call(this,0)),"function"===typeof this.options.pre_lex&&(t=this.options.pre_lex.call(this,t)||t),this.yy&&"function"===typeof this.yy.pre_lex&&(t=this.yy.pre_lex.call(this,t)||t);!t;)t=this.next();return this.yy&&"function"===typeof this.yy.post_lex&&(t=this.yy.post_lex.call(this,t)||t),"function"===typeof this.options.post_lex&&(t=this.options.post_lex.call(this,t)||t),"function"===typeof this.post_lex&&(t=this.post_lex.call(this,t)||t),t},fastLex:function(){for(var t;!t;)t=this.next();return t},canIUse:function(){return{fastLex:!("function"===typeof this.pre_lex||"function"===typeof this.options.pre_lex||this.yy&&"function"===typeof this.yy.pre_lex||this.yy&&"function"===typeof this.yy.post_lex||"function"===typeof this.options.post_lex||"function"===typeof this.post_lex)&&"function"===typeof this.fastLex}},begin:function(t){return this.pushState(t)},pushState:function(t){return this.conditionStack.push(t),this.__currentRuleSet__=null,this},popState:function(){return this.conditionStack.length-1>0?(this.__currentRuleSet__=null,this.conditionStack.pop()):this.conditionStack[0]},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL},stateStackSize:function(){return this.conditionStack.length},options:{trackPosition:!0},JisonLexerError:t,performAction:function(t,e,n){if(1!==e)return this.simpleCaseActionClusters[e]},simpleCaseActionClusters:{0:13,2:5,3:6,4:3,5:4,6:15,7:15,8:15,9:15,10:15,11:15,12:16,13:16,14:16,15:16,16:17,17:17,18:18,19:18,20:19,21:19,22:19,23:20,24:21,25:22,26:23,27:25,28:24,29:26,30:27,31:28,32:11,33:9,34:12,35:10,36:7,37:8,38:14,39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return e}();function a(){this.yy={}}return i.lexer=o,a.prototype=i,i.Parser=a,new a}();e.parser=n,e.Parser=n.Parser,e.parse=function(){return n.parse.apply(n,arguments)}},39126:function(t,e,n){var r=n(30293),i=n(29465),o=n(33859);function a(t){return this instanceof a?(this.nodes=r(t),this):new a(t)}a.prototype.toString=function(){return Array.isArray(this.nodes)?o(this.nodes):""},a.prototype.walk=function(t,e){return i(this.nodes,t,e),this},a.unit=n(33685),a.walk=i,a.stringify=o,t.exports=a},30293:function(t){var e="(".charCodeAt(0),n=")".charCodeAt(0),r="'".charCodeAt(0),i='"'.charCodeAt(0),o="\\".charCodeAt(0),a="/".charCodeAt(0),s=",".charCodeAt(0),l=":".charCodeAt(0),u="*".charCodeAt(0);t.exports=function(t){for(var c,h,p,f,d,g,y,v,m=[],x=t,b=0,_=x.charCo
2deAt(b),w=x.length,S=[{nodes:m}],M=0,I="",T="",A="";b<w;)if(_<=32){c=b;do{c+=1,_=x.charCodeAt(c)}while(_<=32);f=x.slice(b,c),p=m[m.length-1],_===n&&M?A=f:p&&"div"===p.type?p.after=f:_===s||_===l||_===a&&x.charCodeAt(c+1)!==u?T=f:m.push({type:"space",sourceIndex:b,value:f}),b=c}else if(_===r||_===i){c=b,f={type:"string",sourceIndex:b,quote:h=_===r?"'":'"'};do{if(d=!1,~(c=x.indexOf(h,c+1)))for(g=c;x.charCodeAt(g-1)===o;)g-=1,d=!d;else c=(x+=h).length-1,f.unclosed=!0}while(d);f.value=x.slice(b+1,c),m.push(f),b=c+1,_=x.charCodeAt(b)}else if(_===a&&x.charCodeAt(b+1)===u)f={type:"comment",sourceIndex:b},-1===(c=x.indexOf("*/",b))&&(f.unclosed=!0,c=x.length),f.value=x.slice(b+2,c),m.push(f),b=c+2,_=x.charCodeAt(b);else if(_===a||_===s||_===l)f=x[b],m.push({type:"div",sourceIndex:b-T.length,value:f,before:T,after:""}),T="",b+=1,_=x.charCodeAt(b);else if(e===_){c=b;do{c+=1,_=x.charCodeAt(c)}while(_<=32);if(f={type:"function",sourceIndex:b-I.length,value:I,before:x.slice(b+1,c)},b=c,"url"===I&&_!==r&&_!==i){c-=1;do{if(d=!1,~(c=x.indexOf(")",c+1)))for(g=c;x.charCodeAt(g-1)===o;)g-=1,d=!d;else c=(x+=")").length-1,f.unclosed=!0}while(d);y=c;do{y-=1,_=x.charCodeAt(y)}while(_<=32);f.nodes=b!==y+1?[{type:"word",sourceIndex:b,value:x.slice(b,y+1)}]:[],f.unclosed&&y+1!==c?(f.after="",f.nodes.push({type:"space",sourceIndex:y+1,value:x.slice(y+1,c)})):f.after=x.slice(y+1,c),b=c+1,_=x.charCodeAt(b),m.push(f)}else M+=1,f.after="",m.push(f),S.push(f),m=f.nodes=[],v=f;I=""}else if(n===_&&M)b+=1,_=x.charCodeAt(b),v.after=A,A="",M-=1,S.pop(),m=(v=S[M]).nodes;else{c=b;do{_===o&&(c+=1),c+=1,_=x.charCodeAt(c)}while(c<w&&!(_<=32||_===r||_===i||_===s||_===l||_===a||_===e||_===n&&M));f=x.slice(b,c),e===_?I=f:m.push({type:"word",sourceIndex:b,value:f}),b=c}for(b=S.length-1;b;b-=1)S[b].unclosed=!0;return S[0].nodes}},33859:function(t){function e(t,e){var r,i,o=t.type,a=t.value;return e&&void 0!==(i=e(t))?i:"word"===o||"space"===o?a:"string"===o?(r=t.quote||"")+a+(t.unclosed?"":r):"comment"===o?"/*"+a+(t.unclosed?"":"*/"):"div"===o?(t.before||"")+a+(t.after||""):Array.isArray(t.nodes)?(r=n(t.nodes),"function"!==o?r:a+"("+(t.before||"")+r+(t.after||"")+(t.unclosed?"":")")):a}function n(t,n){var r,i;if(Array.isArray(t)){for(r="",i=t.length-1;~i;i-=1)r=e(t[i],n)+r;return r}return e(t,n)}t.exports=n},33685:function(t){var e="-".charCodeAt(0),n="+".charCodeAt(0),r=".".charCodeAt(0),i="e".charCodeAt(0),o="E".charCodeAt(0);t.exports=function(t){for(var a,s=0,l=t.length,u=!1,c=-1,h=!1;s<l;){if((a=t.charCodeAt(s))>=48&&a<=57)h=!0;else if(a===i||a===o){if(c>-1)break;c=s}else if(a===r){if(u)break;u=!0}else{if(a!==n&&a!==e)break;if(0!==s)break}s+=1}return c+1===s&&s--,!!h&&{number:t.slice(0,s),unit:t.slice(s)}}},29465:function(t){t.exports=function t(e,n,r){var i,o,a,s;for(i=0,o=e.length;i<o;i+=1)a=e[i],r||(s=n(a,i,e)),!1!==s&&"function"===a.type&&Array.isArray(a.nodes)&&t(a.nodes,n,r),r&&n(a,i,e)}},13846:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeSensorId=e.SensorTabIndex=e.SensorClassName=void 0;e.SizeSensorId="size-sensor-id";e.SensorClassName="size-sensor-object";e.SensorTabIndex="-1"},97992:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){t.apply(r,o)}),e)}}},13012:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=1;e.default=function(){return"".concat(n++)}},17302:function(t,e,n){"use strict";e.ZH=e.ak=void 0;var r=n(19547);e.ak=function(t,e){var n=(0,r.getSensor)(t);return n.bind(e),function(){n.unbind(e)}};e.ZH=function(t){var e=(0,r.getSensor)(t);(0,r.removeSensor)(e)}},19547:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=e.Sensors=void 0;var r,i=(r=n(13012))&&r.__esModule?r:{default:r},o=n(15242),a=n(13846);var s={};function l(t){t&&s[t]&&delete s[t]}e.Sensors=s;e.getSensor=function(t){var e=t.getAttribute(a.SizeSensorId);if(e&&s[e])return s[e];var n=(0,i.default)();t.setAttribute(a.SizeSensorId,n);var r=(0,o.createSensor)(t,(function(){return l(n)}));return s[n]=r,r};e.removeSensor=function(t){var e=t.element.getAttribute(a.SizeSensorId);t.destroy(),l(e)}},15242:function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r=n(85896),i=n(81653),o="undefined"!==typeof ResizeObserver?i.createSensor:r.createSensor;e.createSensor=o},85896:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r,i=(r=n(97992))&&r.__esModule?r:{default:r},o=n(13846);e.createSensor=function(t,e){var n=void 0,r=[],a=(0,i.default)((function(){r.forEach((function(e){e(t)}))})),s=function(){n&&n.parentNode&&(n.contentDocument&&n.contentDocument.defaultView.removeEventListener("resize",a),n.parentNode.removeChild(n),t.removeAttribute(o.SizeSensorId),n=void 0,r=[],e&&e())};return{element:t,bind:function(e){n||(n=function(){"static"===getComputedStyle(t).position&&(t.style.position="relative");var e=document.createElement("object");return e.onload=function(){e.contentDocument.defaultView.addEventListener("resize",a),a()},e.style.display="block",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height="100%",e.style.width="100%",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.zIndex="-1",e.style.opacity="0",e.setAttribute("class",o.SensorClassName),e.setAttribute("tabindex",o.SensorTabIndex),e.type="text/html",t.appendChild(e),e.data="about:blank",e}()),-1===r.indexOf(e)&&r.push(e)},destroy:s,unbind:function(t){var e=r.indexOf(t);-1!==e&&r.splice(e,1),0===r.length&&n&&s()}}}},81653:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r,i=n(13846),o=(r=n(97992))&&r.__esModule?r:{default:r};e.createSensor=function(t,e){var n=void 0,r=[],a=(0,o.default)((function(){r.forEach((function(e){e(t)}))})),s=function(){n.disconnect(),r=[],n=void 0,t.removeAttribute(i.SizeSensorId),e&&e()};return{element:t,bind:function(e){n||(n=function(){var e=new ResizeObserver(a);return e.observe(t),a(),e}()),-1===r.indexOf(e)&&r.push(e)},destroy:s,unbind:function(t){var e=r.indexOf(t);-1!==e&&r.splice(e,1),0===r.length&&n&&s()}}}},36459:function(t,e,n){"use strict";function r(t){if(null==t)throw new TypeError("Cannot destructure "+t)}n.d(e,{Z:function(){return r}})},34042:function(t,e,n){"use strict";n.d(e,{Z:function(){return a},x:function(){return l}});var r=n(29439);var i=n(87799),o=n(14414);function a(){var t,e,n=(0,o.Z)().unknown(void 0),s=n.domain,l=n.range,u=0,c=1,h=!1,p=0,f=0,d=.5;function g(){var n=s().length,r=c<u,i=r?c:u,o=r?u:c;t=(o-i)/Math.max(1,n-p+2*f),h&&(t=Math.floor(t)),i+=(o-i-t*(n-p))*d,e=t*(1-p),h&&(i=Math.round(i),e=Math.round(e));var a=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}(n).map((function(e){return i+t*e}));return l(r?a.reverse():a)}return delete n.unknown,n.domain=function(t){return arguments.length?(s(t),g()):s()},n.range=function(t){var e;return arguments.length?(e=(0,r.Z)(t,2),u=e[0],c=e[1],u=+u,c=+c,g()):[u,c]},n.rangeRound=function(t){var e;return e=(0,r.Z)(t,2),u=e[0],c=e[1],u=+u,c=+c,h=!0,g()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(h=!!t,g()):h},n.padding=function(t){return arguments.length?(p=Math.min(1,f=+t),g()):p},n.paddingInner=function(t){return arguments.length?(p=Math.min(1,t),g()):p},n.paddingOuter=function(t){return arguments.length?(f=+t,g()):f},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),g()):d},n.copy=function(){return a(s(),[u,c]).round(h).paddingInner(p).paddingOuter(f).align(d)},i.o.apply(g(),arguments)}function s(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return s(e())},t}function l(){return s(a.apply(null,arguments).paddingInner(1))}},87799:function(t,e,n){"use strict";function r(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function i(t,e){switch(arguments.length){case 0:break;case 1:"function"===typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"===typeof e?this.interpolator(e):this.range(e)}return this}n.d(e,{O:function(){return i},o:function(){return r}})},14414:function(t,e,n){"use strict";n.d(e,{Z:function(){return x},O:function(){return m}});var r=n(37762),i=n(29439),o=n(15671),a=n(43144),s=n(97326),l=n(11752),u=n(61120),c=n(60136),h=n(29388),p=function(t){(0,c.Z)(n,t);var e=(0,h.Z)(n);function n(t){var a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y;
2if((0,o.Z)(this,n),a=e.call(this),Object.defineProperties((0,s.Z)(a),{_intern:{value:new Map},_key:{value:l}}),null!=t){var u,c=(0,r.Z)(t);try{for(c.s();!(u=c.n()).done;){var h=(0,i.Z)(u.value,2),p=h[0],f=h[1];a.set(p,f)}}catch(d){c.e(d)}finally{c.f()}}return a}return(0,a.Z)(n,[{key:"get",value:function(t){return(0,l.Z)((0,u.Z)(n.prototype),"get",this).call(this,f(this,t))}},{key:"has",value:function(t){return(0,l.Z)((0,u.Z)(n.prototype),"has",this).call(this,f(this,t))}},{key:"set",value:function(t,e){return(0,l.Z)((0,u.Z)(n.prototype),"set",this).call(this,d(this,t),e)}},{key:"delete",value:function(t){return(0,l.Z)((0,u.Z)(n.prototype),"delete",this).call(this,g(this,t))}}]),n}((0,n(98737).Z)(Map));function f(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)?n.get(r):e}function d(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)?n.get(r):(n.set(r,e),e)}function g(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)&&(e=n.get(r),n.delete(r)),e}function y(t){return null!==t&&"object"===typeof t?t.valueOf():t}var v=n(87799),m=Symbol("implicit");function x(){var t=new p,e=[],n=[],i=m;function o(r){var o=t.get(r);if(void 0===o){if(i!==m)return i;t.set(r,o=e.push(r)-1)}return n[o%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new p;var i,a=(0,r.Z)(n);try{for(a.s();!(i=a.n()).done;){var s=i.value;t.has(s)||t.set(s,e.push(s)-1)}}catch(l){a.e(l)}finally{a.f()}return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return x(e,n).unknown(i)},v.o.apply(o,arguments),o}},11852:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});Array.prototype.slice;function r(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}},90372:function(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{Z:function(){return r}})},38289:function(t,e,n){"use strict";n.d(e,{d:function(){return T}});var r,i,o,a,s,l,u,c,h,p,f,d,g,y,v=n(30168),m=n(15671),x=n(43144),b=Math.PI,_=2*b,w=1e-6,S=_-w;function M(t){this._+=t[0];for(var e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}var I=function(){function t(e){(0,m.Z)(this,t),this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?M:function(t){var e=Math.floor(t);if(!(e>=0))throw new Error("invalid digits: ".concat(t));if(e>15)return M;var n=Math.pow(10,e);return function(t){this._+=t[0];for(var e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(e)}return(0,x.Z)(t,[{key:"moveTo",value:function(t,e){this._append(r||(r=(0,v.Z)(["M",",",""])),this._x0=this._x1=+t,this._y0=this._y1=+e)}},{key:"closePath",value:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append(i||(i=(0,v.Z)(["Z"]))))}},{key:"lineTo",value:function(t,e){this._append(o||(o=(0,v.Z)(["L",",",""])),this._x1=+t,this._y1=+e)}},{key:"quadraticCurveTo",value:function(t,e,n,r){this._append(a||(a=(0,v.Z)(["Q",",",",",",",""])),+t,+e,this._x1=+n,this._y1=+r)}},{key:"bezierCurveTo",value:function(t,e,n,r,i,o){this._append(s||(s=(0,v.Z)(["C",",",",",",",",",",",""])),+t,+e,+n,+r,this._x1=+i,this._y1=+o)}},{key:"arcTo",value:function(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error("negative radius: ".concat(i));var o=this._x1,a=this._y1,s=n-t,p=r-e,f=o-t,d=a-e,g=f*f+d*d;if(null===this._x1)this._append(l||(l=(0,v.Z)(["M",",",""])),this._x1=t,this._y1=e);else if(g>w)if(Math.abs(d*s-p*f)>w&&i){var y=n-o,m=r-a,x=s*s+p*p,_=y*y+m*m,S=Math.sqrt(x),M=Math.sqrt(g),I=i*Math.tan((b-Math.acos((x+g-_)/(2*S*M)))/2),T=I/M,A=I/S;Math.abs(T-1)>w&&this._append(c||(c=(0,v.Z)(["L",",",""])),t+T*f,e+T*d),this._append(h||(h=(0,v.Z)(["A",",",",0,0,",",",",",""])),i,i,+(d*y>f*m),this._x1=t+A*s,this._y1=e+A*p)}else this._append(u||(u=(0,v.Z)(["L",",",""])),this._x1=t,this._y1=e);else;}},{key:"arc",value:function(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error("negative radius: ".concat(n));var a=n*Math.cos(r),s=n*Math.sin(r),l=t+a,u=e+s,c=1^o,h=o?r-i:i-r;null===this._x1?this._append(p||(p=(0,v.Z)(["M",",",""])),l,u):(Math.abs(this._x1-l)>w||Math.abs(this._y1-u)>w)&&this._append(f||(f=(0,v.Z)(["L",",",""])),l,u),n&&(h<0&&(h=h%_+_),h>S?this._append(d||(d=(0,v.Z)(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),n,n,c,t-a,e-s,n,n,c,this._x1=l,this._y1=u):h>w&&this._append(g||(g=(0,v.Z)(["A",",",",0,",",",",",",",""])),n,n,+(h>
2=b),c,this._x1=t+n*Math.cos(i),this._y1=e+n*Math.sin(i)))}},{key:"rect",value:function(t,e,n,r){this._append(y||(y=(0,v.Z)(["M",",","h","v","h","Z"])),this._x0=this._x1=+t,this._y0=this._y1=+e,n=+n,+r,-n)}},{key:"toString",value:function(){return this._}}]),t}();function T(t){var e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{var r=Math.floor(n);if(!(r>=0))throw new RangeError("invalid digits: ".concat(n));e=r}return t},function(){return new I(e)}}I.prototype}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.