@agions/taroviz 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -17
- package/dist/cjs/index.js +1 -1
- package/dist/esm/index.js +7154 -81030
- package/package.json +36 -6
- package/src/charts/index.ts +6 -1
- package/src/charts/sankey/index.tsx +18 -0
- package/src/charts/sunburst/index.tsx +18 -0
- package/src/charts/treemap/index.tsx +18 -0
- package/src/charts/types.ts +258 -0
- package/src/core/components/Annotation.tsx +346 -0
- package/src/core/components/ErrorBoundary.tsx +92 -397
- package/src/core/components/LazyChart.tsx +200 -0
- package/src/core/echarts.ts +24 -2
- package/src/core/themes/ThemeManager.ts +628 -0
- package/src/core/utils/export/ExportUtils.ts +385 -0
- package/src/index.ts +72 -4
package/dist/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var t={4063(t,e,n){n.d(e,{A:()=>Ut});var i=n(3651),r=n(137),o=n(8662),a=n(3215),s=n(8570),l=n(7264),u=n(8001),c=n(5483),h=n(2834),p=n(6440),d=n(6066),f=n(7881),g=Math.sin,v=Math.cos,y=Math.PI,m=2*Math.PI,_=180/y,x=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,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l=a-o,u=!s,h=Math.abs(l),p=(0,c.Cv)(h-m)||(u?l>=m:-l>=m),d=l>0?l%m:l%m+m,f=!1;f=!!p||!(0,c.Cv)(h)&&d>=y==!!u;var x=t+n*v(o),b=e+i*g(o);this._start&&this._add("M",x,b);var w=Math.round(r*_);if(p){var S=1/this._p,I=(u?1:-1)*(m-S);this._add("A",n,i,w,1,+u,t+n*v(o+I),e+i*g(o+I)),S>.01&&this._add("A",n,i,w,0,+u,x,b)}else{var M=t+n*v(a),T=e+i*g(a);this._add("A",n,i,w,+f,+u,M,T)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),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,i,r,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}();const b=x;var w=n(22),S=n(9774),I="none",M=Math.round;var T=["lineCap","miterLimit","lineJoin"],C=(0,S.Tj)(T,function(t){return"stroke-"+t.toLowerCase()});function A(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof p.Ay)t("opacity",r);else{if(function(t){var e=t.fill;return null!=e&&e!==I}(e)){var o=(0,c.$2)(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r;(i||a<1)&&t("fill-opacity",a)}else t("fill",I);if(function(t){var e=t.stroke;return null!=e&&e!==I}(e)){var s=(0,c.$2)(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,d=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*r:s.opacity*r,f=e.strokeFirst;if((i||1!==u)&&t("stroke-width",u),(i||f)&&t("paint-order",f?"stroke":"fill"),(i||d<1)&&t("stroke-opacity",d),e.lineDash){var g=(0,w.V)(n),v=g[0],y=g[1];v&&(y=M(y||0),t("stroke-dasharray",v.join(",")),(y||i)&&t("stroke-dashoffset",y))}else i&&t("stroke-dasharray",I);for(var m=0;m<T.length;m++){var _=T[m];if(i||e[_]!==h.MW[_]){var x=e[_]||h.MW[_];x&&t(C[m],x)}}}else i&&t("stroke",I)}}var D=n(3499),k="http://www.w3.org/2000/svg",P="http://www.w3.org/1999/xlink",L="ecmeta_";function O(t){return document.createElementNS(k,t)}function E(t,e,n,i,r){return{tag:t,attrs:n||{},children:i,text:r,key:e}}function R(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,r=e.tag,o=e.attrs,a=e.text;return function(t,e){var n=[];if(e)for(var i in e){var r=e[i],o=i;!1!==r&&(!0!==r&&null!=r&&(o+='="'+r+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(r,o)+("style"!==r?(0,D.Me)(a):a||"")+(i?""+n+(0,S.Tj)(i,function(e){return t(e)}).join(n)+n:"")+("</"+r+">")}(t)}function N(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function z(t,e,n,i){return E("svg","root",{width:t,height:e,xmlns:k,"xmlns:xlink":P,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var B=n(5027),V=n(128),F=n(8747),H=n(3859),W=n(1316),G=0;function X(){return G++}var U={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"},Y="transform-origin";function j(t,e,n){var i=(0,S.X$)({},t.shape);(0,S.X$)(i,e),t.buildPath(n,i);var r=new b;return r.reset((0,c.MD)(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function Z(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[Y]=n+"px "+i+"px")}var q={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function $(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function K(t){return(0,S.Kg)(t)?U[t]?"cubic-bezier("+U[t]+")":(0,W.w)(t)?t:"":""}function Q(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof H.A){var s=function(t,e,n){var i,r,o=t.shape.paths,a={};if((0,S.__)(o,function(t){var e=N(n.zrId);e.animation=!0,Q(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=(0,S.HP)(o),u=l.length;if(u){var c=o[r=l[u-1]];for(var h in c){var p=c[h];a[h]=a[h]||{d:""},a[h].d+=p.d||""}for(var d in s){var f=s[d].animation;f.indexOf(r)>=0&&(i=f)}}}),i){e.d=!1;var s=$(a,n);return i.replace(r,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 h=r[u],p=[h.getMaxTime()/1e3+"s"],d=K(h.getClip().easing),f=h.getDelay();d?p.push(d):p.push("linear"),f&&p.push(f/1e3+"s"),h.getLoop()&&p.push("infinite");var g=p.join(" ");l[g]=l[g]||[g,[]],l[g][1].push(h)}function v(r){var o,a=r[1],s=a.length,l={},u={},h={},p="animation-timing-function";function d(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),o=0;o<i.length;o++){var a=i[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],h=Math.round(c.time/r*100)+"%",d=K(c.easing),f=c.rawValue;((0,S.Kg)(f)||(0,S.Et)(f))&&(e[h]=e[h]||{},e[h][l]=c.rawValue,d&&(e[h][p]=d))}}}}for(var f=0;f<s;f++){(M=(I=a[f]).targetName)?"shape"===M&&d(I,u):!i&&d(I,l)}for(var g in l){var v={};(0,V.IT)(v,t),(0,S.X$)(v,l[g]);var y=(0,c.Z1)(v),m=l[g][p];h[g]=y?{transform:y}:{},Z(h[g],v),m&&(h[g][p]=m)}var _=!0;for(var g in u){h[g]=h[g]||{};var x=!o;m=u[g][p];x&&(o=new F.A);var b=o.len();o.reset(),h[g].d=j(t,u[g],o);var w=o.len();if(!x&&b!==w){_=!1;break}m&&(h[g][p]=m)}if(!_)for(var g in h)delete h[g].d;if(!i)for(f=0;f<s;f++){var I,M;"style"===(M=(I=a[f]).targetName)&&d(I,h,function(t){return q[t]})}var T,C=(0,S.HP)(h),A=!0;for(f=1;f<C.length;f++){var D=C[f-1],k=C[f];if(h[D][Y]!==h[k][Y]){A=!1;break}T=h[D][Y]}if(A&&T){for(var g in h)h[g][Y]&&delete h[g][Y];e[Y]=T}if((0,S.pb)(C,function(t){return(0,S.HP)(h[t]).length>0}).length)return $(h,n)+" "+r[0]+" both"}for(var y in l){(s=v(l[y]))&&a.push(s)}if(a.length){var m=n.zrId+"-cls-"+X();n.cssNodes["."+m]={animation:a.join(",")},e.class=m}}var J=n(2070),tt=n(145),et=n(9886);function nt(t,e,n,i){var r=JSON.stringify(t),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+X(),n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}var it=n(2023),rt=Math.round;function ot(t){return t&&(0,S.Kg)(t.src)}function at(t){return t&&(0,S.Tn)(t.toDataURL)}function st(t,e,n,i){A(function(r,o){var a="fill"===r||"stroke"===r;a&&(0,c.bn)(o)?mt(e,t,r,i):a&&(0,c.Pt)(o)?_t(n,t,r,i):t[r]=o,a&&i.ssr&&"none"===o&&(t["pointer-events"]="visible")},e,n,!1),function(t,e,n){var i=t.style;if((0,c.dX)(i)){var r=(0,c.si)(t),o=n.shadowCache,a=o[r];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var h=i.shadowOffsetX||0,p=i.shadowOffsetY||0,d=i.shadowBlur,f=(0,c.$2)(i.shadowColor),g=f.opacity,v=f.color,y=d/2/l+" "+d/2/u;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=E("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[E("feDropShadow","",{dx:h/l,dy:p/u,stdDeviation:y,"flood-color":v,"flood-opacity":g})]),o[r]=a}e.filter=(0,c.Xu)(a)}}(n,t,i)}function lt(t,e){var n=(0,it.N1)(e);n&&(n.each(function(e,n){null!=e&&(t[(L+n).toLowerCase()]=e+"")}),e.isSilent()&&(t[L+"silent"]="true"))}function ut(t){return(0,c.Cv)(t[0]-1)&&(0,c.Cv)(t[1])&&(0,c.Cv)(t[2])&&(0,c.Cv)(t[3]-1)}function ct(t,e,n){if(e&&(!function(t){return(0,c.Cv)(t[4])&&(0,c.Cv)(t[5])}(e)||!ut(e))){var i=n?10:1e4;t.transform=ut(e)?"translate("+rt(e[4]*i)/i+" "+rt(e[5]*i)/i+")":(0,c.nV)(e)}}function ht(t,e,n){for(var i=t.points,r=[],o=0;o<i.length;o++)r.push(rt(i[o][0]*n)/n),r.push(rt(i[o][1]*n)/n);e.points=r.join(" ")}function pt(t){return!t.smooth}var dt,ft,gt={circle:[(dt=["cx","cy","r"],ft=(0,S.Tj)(dt,function(t){return"string"==typeof t?[t,t]:t}),function(t,e,n){for(var i=0;i<ft.length;i++){var r=ft[i],o=t[r[0]];null!=o&&(e[r[1]]=rt(o*n)/n)}})],polyline:[ht,pt],polygon:[ht,pt]};function vt(t,e){var n=t.style,i=t.shape,r=gt[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&(0,c.MD)(t)||4;if(!r||e.willUpdate||r[1]&&!r[1](i)||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 h=!t.path||t.shapeChanged();t.path||t.createPathProxy();var p=t.path;h&&(p.beginPath(),t.buildPath(p,t.shape),t.pathUpdated());var d=p.getVersion(),f=t,g=f.__svgPathBuilder;f.__svgPathVersion===d&&g&&l===f.__svgPathStrokePercent||(g||(g=f.__svgPathBuilder=new b),g.reset(u),p.rebuildPath(g,l),g.generateStr(),f.__svgPathVersion=d,f.__svgPathStrokePercent=l),o.d=g.getStr()}else{s=t.type;var v=Math.pow(10,u);r[0](i,o,v)}return ct(o,t.transform),st(o,n,t,e),lt(o,t),e.animation&&Q(t,o,e),e.emphasis&&function(t,e,n){if(!t.ignore)if(t.isSilent())nt(u={"pointer-events":"none"},e,n,!0);else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},r=i.fill;if(!r){var o=t.style&&t.style.fill,a=t.states.select&&t.states.select.style&&t.states.select.style.fill,s=t.currentStates.indexOf("select")>=0&&a||o;s&&(r=(0,et.P)(s))}var l=i.lineWidth;l&&(l/=!i.strokeNoScale&&t.transform?t.transform[0]:1);var u={cursor:"pointer"};r&&(u.fill=r),i.stroke&&(u.stroke=i.stroke),l&&(u["stroke-width"]=l),nt(u,e,n,!0)}}(t,o,e),E(s,t.id+"",o)}function yt(t,e){return t instanceof h.Ay?vt(t,e):t instanceof p.Ay?function(t,e){var n=t.style,i=n.image;if(i&&!(0,S.Kg)(i)&&(ot(i)?i=i.src:at(i)&&(i=i.toDataURL())),i){var r=n.x||0,o=n.y||0,a={href:i,width:n.width,height:n.height};return r&&(a.x=r),o&&(a.y=o),ct(a,t.transform),st(a,n,t,e),lt(a,t),e.animation&&Q(t,a,e),E("image",t.id+"",a)}}(t,e):t instanceof f.A?function(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||tt.OH,o=n.x||0,a=(0,c.sZ)(n.y||0,(0,d.ks)(r),n.textBaseline),s={"dominant-baseline":"central","text-anchor":c.eQ[n.textAlign]||n.textAlign};if((0,J.XE)(n)){var l="",u=n.fontStyle,h=(0,J.I5)(n.fontSize);if(!parseFloat(h))return;var p=n.fontFamily||tt.zs,f=n.fontWeight;l+="font-size:"+h+";font-family:"+p+";",u&&"normal"!==u&&(l+="font-style:"+u+";"),f&&"normal"!==f&&(l+="font-weight:"+f+";"),s.style=l}else s.style="font: "+r;return i.match(/\s/)&&(s["xml:space"]="preserve"),o&&(s.x=o),a&&(s.y=a),ct(s,t.transform),st(s,n,t,e),lt(s,t),e.animation&&Q(t,s,e),E("text",t.id+"",s,void 0,i)}}(t,e):void 0}function mt(t,e,n,i){var r,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if((0,c.OS)(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!(0,c.OH)(o))return void 0;r="radialGradient",a.cx=(0,S.bZ)(o.x,.5),a.cy=(0,S.bZ)(o.y,.5),a.r=(0,S.bZ)(o.r,.5)}for(var s=o.colorStops,l=[],u=0,h=s.length;u<h;++u){var p=100*(0,c.XP)(s[u].offset)+"%",d=s[u].color,f=(0,c.$2)(d),g=f.color,v=f.opacity,y={offset:p};y["stop-color"]=g,v<1&&(y["stop-opacity"]=v),l.push(E("stop",u+"",y))}var m=R(E(r,"",a,l)),_=i.gradientCache,x=_[m];x||(x=i.zrId+"-g"+i.gradientIdx++,_[m]=x,a.id=x,i.defs[x]=E(r,x,a,l)),e[n]=(0,c.Xu)(x)}function _t(t,e,n,i){var r,o=t.style[n],a=t.getBoundingRect(),s={},l=o.repeat,u="no-repeat"===l,h="repeat-x"===l,p="repeat-y"===l;if((0,c.sL)(o)){var d=o.imageWidth,f=o.imageHeight,g=void 0,v=o.image;if((0,S.Kg)(v)?g=v:ot(v)?g=v.src:at(v)&&(g=v.toDataURL()),"undefined"==typeof Image){var y="Image width/height must been given explictly in svg-ssr renderer.";(0,S.vA)(d,y),(0,S.vA)(f,y)}else if(null==d||null==f){var m=function(t,e){if(t){var n=t.elm,i=d||e.width,r=f||e.height;"pattern"===t.tag&&(h?(r=1,i/=a.width):p&&(i=1,r/=a.height)),t.attrs.width=i,t.attrs.height=r,n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},_=(0,B.OD)(g,null,t,function(t){u||m(I,t),m(r,t)});_&&_.width&&_.height&&(d=d||_.width,f=f||_.height)}r=E("image","img",{href:g,width:d,height:f}),s.width=d,s.height=f}else o.svgElement&&(r=(0,S.o8)(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(r){var x,b;u?x=b=1:h?(b=1,x=s.width/a.width):p?(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 w=(0,c.Z1)(o);w&&(s.patternTransform=w);var I=E("pattern","",s,[r]),M=R(I),T=i.patternCache,C=T[M];C||(C=i.zrId+"-p"+i.patternIdx++,T[M]=C,s.id=C,I=i.defs[C]=E("pattern",C,s,[r])),e[n]=(0,c.Xu)(C)}}function xt(t,e,n){var i=n.clipPathCache,r=n.defs,o=i[t.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};i[t.id]=o,r[o]=E("clipPath",o,a,[vt(t,n)])}e["clip-path"]=(0,c.Xu)(o)}function bt(t){return document.createTextNode(t)}function wt(t,e,n){t.insertBefore(e,n)}function St(t,e){t.removeChild(e)}function It(t,e){t.appendChild(e)}function Mt(t){return t.parentNode}function Tt(t){return t.nextSibling}function Ct(t,e){t.textContent=e}var At=E("","");function Dt(t){return void 0===t}function kt(t){return void 0!==t}function Pt(t,e,n){for(var i={},r=e;r<=n;++r){var o=t[r].key;void 0!==o&&(i[o]=r)}return i}function Lt(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function Ot(t){var e,n=t.children,i=t.tag;if(kt(i)){var r=t.elm=O(i);if(Nt(At,t),(0,S.cy)(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&It(r,Ot(o))}else kt(t.text)&&!(0,S.Gv)(t.text)&&It(r,bt(t.text))}else t.elm=bt(t.text);return t.elm}function Et(t,e,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&wt(t,Ot(o),e)}}function Rt(t,e,n,i){for(;n<=i;++n){var r=e[n];if(null!=r)if(kt(r.tag))St(Mt(r.elm),r.elm);else St(t,r.elm)}}function Nt(t,e){var n,i=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(n in o){var a=o[n];r[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):"style"===n?i.style.cssText=a:120!==n.charCodeAt(0)?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS("http://www.w3.org/2000/xmlns/",n,a):58===n.charCodeAt(3)?i.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?i.setAttributeNS(P,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}function zt(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(Nt(t,e),Dt(e.text)?kt(i)&&kt(r)?i!==r&&function(t,e,n){for(var i,r,o,a=0,s=0,l=e.length-1,u=e[0],c=e[l],h=n.length-1,p=n[0],d=n[h];a<=l&&s<=h;)null==u?u=e[++a]:null==c?c=e[--l]:null==p?p=n[++s]:null==d?d=n[--h]:Lt(u,p)?(zt(u,p),u=e[++a],p=n[++s]):Lt(c,d)?(zt(c,d),c=e[--l],d=n[--h]):Lt(u,d)?(zt(u,d),wt(t,u.elm,Tt(c.elm)),u=e[++a],d=n[--h]):Lt(c,p)?(zt(c,p),wt(t,c.elm,u.elm),c=e[--l],p=n[++s]):(Dt(i)&&(i=Pt(e,a,l)),Dt(r=i[p.key])||(o=e[r]).tag!==p.tag?wt(t,Ot(p),u.elm):(zt(o,p),e[r]=void 0,wt(t,o.elm,u.elm)),p=n[++s]);(a<=l||s<=h)&&(a>l?Et(t,null==n[h+1]?null:n[h+1].elm,n,s,h):Rt(t,e,a,l))}(n,i,r):kt(r)?(kt(t.text)&&Ct(n,""),Et(n,null,r,0,r.length-1)):kt(i)?Rt(n,i,0,i.length-1):kt(t.text)&&Ct(n,""):t.text!==e.text&&(kt(i)&&Rt(n,i,0,i.length-1),Ct(n,e.text)))}var Bt=n(9291),Vt=0,Ft=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=e,this._opts=n=(0,S.X$)({},n),this.root=t,this._id="zr"+Vt++,this._oldVNode=z(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=O("svg");Nt(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(Lt(t,e))zt(t,e);else{var n=t.elm,i=Mt(n);Ot(e),null!==i&&(wt(i,e.elm,Tt(n)),Rt(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return yt(t,N(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=N(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress,r.emphasis=t.emphasis,r.ssr=this._opts.ssr;var o=[],a=this._bgVNode=function(t,e,n,i){var r;if(n&&"none"!==n)if(r=E("rect","bg",{width:t,height:e,x:"0",y:"0"}),(0,c.bn)(n))mt({fill:n},r.attrs,"fill",i);else if((0,c.Pt)(n))_t({style:{fill:n},dirty:S.lQ,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=(0,c.$2)(n),a=o.color,s=o.opacity;r.attrs.fill=a,s<1&&(r.attrs["fill-opacity"]=s)}return r}(n,i,this._backgroundColor,r);a&&o.push(a);var s=t.compress?null:this._mainVNode=E("g","main",{},[]);this._paintList(e,r,s?s.children:o),s&&o.push(s);var l=(0,S.Tj)((0,S.HP)(r.defs),function(t){return r.defs[t]});if(l.length&&o.push(E("defs","defs",{},l)),t.animation){var u=function(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=(0,S.Tj)((0,S.HP)(t),function(e){return e+r+(0,S.Tj)((0,S.HP)(t[e]),function(n){return n+":"+t[e][n]+";"}).join(i)+o}).join(i),s=(0,S.Tj)((0,S.HP)(e),function(t){return"@keyframes "+t+r+(0,S.Tj)((0,S.HP)(e[t]),function(n){return n+r+(0,S.Tj)((0,S.HP)(e[t][n]),function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"}).join(i)+o}).join(i)+o}).join(i);return a||s?["<![CDATA[",a,s,"]]>"].join(i):""}(r.cssNodes,r.cssAnims,{newline:!0});if(u){var h=E("style","stl",{},[],u);o.push(h)}}return z(n,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},R(this.renderToVNode({animation:(0,S.bZ)(t.cssAnimation,!0),emphasis:(0,S.bZ)(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:(0,S.bZ)(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 i,r,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,d=r&&r.length||0,f=void 0;for(f=Math.max(p-1,d-1);f>=0&&(!h||!r||h[f]!==r[f]);f--);for(var g=d-1;g>f;g--)i=a[--s-1];for(var v=f+1;v<p;v++){var y={};xt(h[v],y,e);var m=E("g","clip-g-"+l++,y,[]);(i?i.children:n).push(m),a[s++]=m,i=m}r=h;var _=yt(c,e);_&&(i?i.children:n).push(_)}}},t.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=(0,Bt.YC)(i,0,n),e=(0,Bt.YC)(i,1,n),r.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,r){var o=r.style;o.width=t+"px",o.height=e+"px"}if((0,c.Pt)(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=(0,c.WG)(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},t}();const Ht=Ft;var Wt=n(9206),Gt=function(){return Gt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Gt.apply(this,arguments)};s.Y([i.a,r.a,o.a,a.a,u.a,function(t){t.registerPainter("svg",Ht)}]);var Xt=function(){function t(t){this.instance=null,this.containerRef=null,this.options=t||{},this.containerRef=t.containerRef,this.canvasId=this.options.canvasId||"taroviz-echarts-canvas"}return t.create=function(e){return new t(e)},t.prototype.init=function(t){var e,n;if(this.instance)return this.instance;var i=(null===(e=this.containerRef)||void 0===e?void 0:e.current)||document.getElementById(this.canvasId);return i?(this.instance=l.Ts(i,this.options.theme,{useDirtyRect:!0,renderer:this.options.renderer||"canvas"}),this.instance&&this.instance.setOption({animation:!1!==(null===(n=this.options.option)||void 0===n?void 0:n.animation),animationDurationUpdate:300,animationEasingUpdate:"cubicOut",progressive:500,progressiveThreshold:1e3},!0),this.options.option&&this.instance&&this.instance.setOption(this.options.option,{notMerge:!1,lazyUpdate:!0}),this.options.onInit&&this.instance&&this.options.onInit(this.instance),this.instance):{}},t.prototype.getInstance=function(){return this.instance},t.prototype.setOption=function(t,e){this.instance?this.instance.setOption(t,Gt({lazyUpdate:!0},e)):this.options.option=t},t.prototype.setTheme=function(t){var e,n;this.options.theme=t,this.instance&&(null===(n=(e=this.instance).setTheme)||void 0===n||n.call(e,t))},t.prototype.getWidth=function(){var t;return(null===(t=this.instance)||void 0===t?void 0:t.getWidth())||0},t.prototype.getHeight=function(){var t;return(null===(t=this.instance)||void 0===t?void 0:t.getHeight())||0},t.prototype.getDom=function(){var t;return(null===(t=this.containerRef)||void 0===t?void 0:t.current)||null},t.prototype.convertToDataURL=function(t){var e;return null===(e=this.instance)||void 0===e?void 0:e.getDataURL(t)},t.prototype.clear=function(){this.instance&&this.instance.clear()},t.prototype.on=function(t,e){this.instance&&this.instance.on(t,e)},t.prototype.off=function(t,e){this.instance&&this.instance.off(t,e)},t.prototype.showLoading=function(t){this.instance&&this.instance.showLoading(t)},t.prototype.hideLoading=function(){this.instance&&this.instance.hideLoading()},t.prototype.setComponent=function(t){this.containerRef=t},t.prototype.render=function(){var t=this.options,e=t.width,n=void 0===e?"100%":e,i=t.height,r=void 0===i?"300px":i,o=t.style,a=void 0===o?{}:o,s=t.direction,l=void 0===s?"ltr":s;return Wt.createElement("div",{id:this.canvasId,ref:this.containerRef,style:Gt({width:n,height:r,direction:l},a)})},t.prototype.dispose=function(){this.instance&&(this.instance.dispose(),this.instance=null)},t.prototype.resize=function(t){this.instance&&this.instance.resize(t)},t.prototype.getName=function(){return"H5Adapter"},t.prototype.getVersion=function(){return"1.1.1"},t.prototype.getPlatformInfo=function(){return{platform:"h5",renderer:this.options.renderer||"canvas",userAgent:navigator.userAgent,devicePixelRatio:window.devicePixelRatio}},t}();const Ut=Xt},3382(t,e,n){n.d(e,{A:()=>a});var i=n(9206),r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r.apply(this,arguments)},o=function(){function t(t){this.chartInstance=null,this.component=null,this.config=t,this.component=t.component}return t.create=function(e){return new t(e)},t.prototype.getInstance=function(){return this.chartInstance},t.prototype.init=function(){var t=this.config,e=t.canvasId,n=t.width,i=t.height,r=t.theme,o=t.option;if(!this.component)return null;if(!e)return null;var a=this.component.createChart({id:e,width:n,height:i,theme:r});return o&&a.setOption(o),this.chartInstance=a,this.config.onInit&&this.config.onInit(a),a},t.prototype.setOption=function(t,e){this.chartInstance?this.chartInstance.setOption(t,e):this.config.option=t},t.prototype.setTheme=function(t){var e,n;this.config.theme=t,this.chartInstance&&(null===(n=(e=this.chartInstance).setTheme)||void 0===n||n.call(e,t))},t.prototype.getWidth=function(){return 0},t.prototype.getHeight=function(){return 0},t.prototype.getDom=function(){return null},t.prototype.convertToDataURL=function(t){var e;return null===(e=this.chartInstance)||void 0===e?void 0:e.getDataURL(t)},t.prototype.clear=function(){this.chartInstance&&this.chartInstance.clear()},t.prototype.on=function(t,e){this.chartInstance&&this.chartInstance.on(t,e)},t.prototype.off=function(t,e){this.chartInstance&&this.chartInstance.off(t,e)},t.prototype.showLoading=function(t){this.chartInstance&&this.chartInstance.showLoading(t)},t.prototype.hideLoading=function(){this.chartInstance&&this.chartInstance.hideLoading()},t.prototype.dispose=function(){this.chartInstance&&(this.chartInstance.dispose(),this.chartInstance=null)},t.prototype.resize=function(t){this.chartInstance&&this.chartInstance.resize(t)},t.prototype.setComponent=function(t){this.component=t},t.prototype.render=function(){var t=this.config,e=t.canvasId,n=void 0===e?"ec-canvas":e,o=t.width,a=void 0===o?"100%":o,s=t.height,l=void 0===s?"300px":s,u=t.style,c=void 0===u?{}:u;return i.createElement("view",{id:n,style:r({width:a,height:l},c)})},t.prototype.dispatchAction=function(t){this.chartInstance&&this.chartInstance.dispatchAction(t)},t.prototype.getDataURL=function(t){var e;return null===(e=this.chartInstance)||void 0===e?void 0:e.getDataURL(t)},t}();const a=o},6085(t,e,n){n.d(e,{A:()=>a});var i=n(9206),r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r.apply(this,arguments)},o=function(){function t(t){this.chartInstance=null,this.component=null,this.config=t,this.component=t.component}return t.create=function(e){return new t(e)},t.prototype.getInstance=function(){return this.chartInstance},t.prototype.init=function(){var t=this.config,e=t.canvasId,n=t.width,i=t.height,r=t.theme,o=t.option;if(!this.component)return null;if(!e)return null;var a=this.component.createChart({id:e,width:n,height:i,theme:r});return o&&a.setOption(o),this.chartInstance=a,this.config.onInit&&this.config.onInit(a),a},t.prototype.setOption=function(t,e){this.chartInstance?this.chartInstance.setOption(t,e):this.config.option=t},t.prototype.setTheme=function(t){var e,n;this.config.theme=t,this.chartInstance&&(null===(n=(e=this.chartInstance).setTheme)||void 0===n||n.call(e,t))},t.prototype.getWidth=function(){return 0},t.prototype.getHeight=function(){return 0},t.prototype.getDom=function(){return null},t.prototype.convertToDataURL=function(t){var e;return null===(e=this.chartInstance)||void 0===e?void 0:e.getDataURL(t)},t.prototype.clear=function(){this.chartInstance&&this.chartInstance.clear()},t.prototype.on=function(t,e){this.chartInstance&&this.chartInstance.on(t,e)},t.prototype.off=function(t,e){this.chartInstance&&this.chartInstance.off(t,e)},t.prototype.showLoading=function(t){this.chartInstance&&this.chartInstance.showLoading(t)},t.prototype.hideLoading=function(){this.chartInstance&&this.chartInstance.hideLoading()},t.prototype.dispose=function(){this.chartInstance&&(this.chartInstance.dispose(),this.chartInstance=null)},t.prototype.resize=function(t){this.chartInstance&&this.chartInstance.resize(t)},t.prototype.setComponent=function(t){this.component=t},t.prototype.render=function(){var t=this.config,e=t.canvasId,n=void 0===e?"ec-canvas":e,o=t.width,a=void 0===o?"100%":o,s=t.height,l=void 0===s?"300px":s,u=t.style,c=void 0===u?{}:u;return i.createElement("view",{id:n,style:r({width:a,height:l},c)})},t.prototype.dispatchAction=function(t){this.chartInstance&&this.chartInstance.dispatchAction(t)},t.prototype.getDataURL=function(t){var e;return null===(e=this.chartInstance)||void 0===e?void 0:e.getDataURL(t)},t}();const a=o},3280(t,e,n){n.d(e,{A:()=>a});var i=n(9206),r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r.apply(this,arguments)},o=function(){function t(t){this.chartInstance=null,this.component=null,this.config=t,this.component=t.component}return t.create=function(e){return new t(e)},t.prototype.getInstance=function(){return this.chartInstance},t.prototype.init=function(){var t=this.config,e=t.canvasId,n=t.width,i=t.height,r=t.theme,o=t.option;if(!this.component)return null;if(!e)return null;var a=this.component.createChart({id:e,width:n,height:i,theme:r});return o&&a.setOption(o),this.chartInstance=a,this.config.onInit&&this.config.onInit(a),a},t.prototype.setOption=function(t,e){this.chartInstance?this.chartInstance.setOption(t,e):this.config.option=t},t.prototype.setTheme=function(t){var e,n;this.config.theme=t,this.chartInstance&&(null===(n=(e=this.chartInstance).setTheme)||void 0===n||n.call(e,t))},t.prototype.getWidth=function(){return 0},t.prototype.getHeight=function(){return 0},t.prototype.getDom=function(){return null},t.prototype.convertToDataURL=function(t){var e;return null===(e=this.chartInstance)||void 0===e?void 0:e.getDataURL(t)},t.prototype.clear=function(){this.chartInstance&&this.chartInstance.clear()},t.prototype.on=function(t,e){this.chartInstance&&this.chartInstance.on(t,e)},t.prototype.off=function(t,e){this.chartInstance&&this.chartInstance.off(t,e)},t.prototype.showLoading=function(t){this.chartInstance&&this.chartInstance.showLoading(t)},t.prototype.hideLoading=function(){this.chartInstance&&this.chartInstance.hideLoading()},t.prototype.dispose=function(){this.chartInstance&&(this.chartInstance.dispose(),this.chartInstance=null)},t.prototype.resize=function(t){this.chartInstance&&this.chartInstance.resize(t)},t.prototype.setComponent=function(t){this.component=t},t.prototype.render=function(){var t=this.config,e=t.canvasId,n=void 0===e?"ec-canvas":e,o=t.width,a=void 0===o?"100%":o,s=t.height,l=void 0===s?"300px":s,u=t.style,c=void 0===u?{}:u;return i.createElement("view",{id:n,style:r({width:a,height:l},c)})},t.prototype.dispatchAction=function(t){this.chartInstance&&this.chartInstance.dispatchAction(t)},t.prototype.getDataURL=function(t){var e;return null===(e=this.chartInstance)||void 0===e?void 0:e.getDataURL(t)},t}();const a=o},9999(t,e,n){n.d(e,{A:()=>a});var i=n(9206),r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r.apply(this,arguments)},o=function(){function t(t){this.chartInstance=null,this.component=null,this.config=t,this.component=t.component}return t.create=function(e){return new t(e)},t.prototype.getInstance=function(){return this.chartInstance},t.prototype.init=function(){var t=this.config,e=t.canvasId,n=t.width,i=t.height,r=t.theme,o=t.option;if(!this.component)return null;if(!e)return null;var a=this.component.createChart({id:e,width:n,height:i,theme:r});return o&&a.setOption(o),this.chartInstance=a,this.config.onInit&&this.config.onInit(a),a},t.prototype.setOption=function(t,e){this.chartInstance?this.chartInstance.setOption(t,e):this.config.option=t},t.prototype.setTheme=function(t){var e,n;this.config.theme=t,this.chartInstance&&(null===(n=(e=this.chartInstance).setTheme)||void 0===n||n.call(e,t))},t.prototype.getWidth=function(){return 0},t.prototype.getHeight=function(){return 0},t.prototype.getDom=function(){return null},t.prototype.convertToDataURL=function(t){var e;return null===(e=this.chartInstance)||void 0===e?void 0:e.getDataURL(t)},t.prototype.clear=function(){this.chartInstance&&this.chartInstance.clear()},t.prototype.on=function(t,e){this.chartInstance&&this.chartInstance.on(t,e)},t.prototype.off=function(t,e){this.chartInstance&&this.chartInstance.off(t,e)},t.prototype.showLoading=function(t){this.chartInstance&&this.chartInstance.showLoading(t)},t.prototype.hideLoading=function(){this.chartInstance&&this.chartInstance.hideLoading()},t.prototype.dispose=function(){this.chartInstance&&(this.chartInstance.dispose(),this.chartInstance=null)},t.prototype.resize=function(t){this.chartInstance&&this.chartInstance.resize(t)},t.prototype.setComponent=function(t){this.component=t},t.prototype.render=function(){var t=this.config,e=t.canvasId,n=void 0===e?"ec-canvas":e,o=t.width,a=void 0===o?"100%":o,s=t.height,l=void 0===s?"300px":s,u=t.style,c=void 0===u?{}:u;return i.createElement("view",{id:n,style:r({width:a,height:l},c)})},t}();const a=o},4159(t,e,n){n.d(e,{LR:()=>l,LW:()=>s,Nz:()=>u,ap:()=>p,oi:()=>a,t5:()=>h});var i=n(9774),r=(0,n(9269).$r)();function o(t,e,n,r,o,a,s){var l,u=!1;(0,i.Tn)(o)?(s=a,a=o,o=null):(0,i.Gv)(o)&&(a=o.cb,s=o.during,u=o.isFrom,l=o.removeOpt,o=o.dataIndex);var c="leave"===t;c||e.stopAnimation("leave");var h=function(t,e,n,r,o){var a;if(e&&e.ecModel){var s=e.ecModel.getUpdatePayload();a=s&&s.animation}var l="update"===t;if(e&&e.isAnimationEnabled()){var u=void 0,c=void 0,h=void 0;return r?(u=(0,i.bZ)(r.duration,200),c=(0,i.bZ)(r.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(u=a.duration),null!=a.easing&&(c=a.easing),null!=a.delay&&(h=a.delay)),(0,i.Tn)(h)&&(h=h(n,o)),(0,i.Tn)(u)&&(u=u(n)),{duration:u||0,delay:h,easing:c}}return null}(t,r,o,c?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,o):null);if(h&&h.duration>0){var p={duration:h.duration,delay:h.delay||0,easing:h.easing,done:a,force:!!a||!!s,setToFinal:!c,scope:t,during:s};u?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!u&&e.attr(n),s&&s(1),a&&a()}function a(t,e,n,i,r,a){o("update",t,e,n,i,r,a)}function s(t,e,n,i,r,a){o("enter",t,e,n,i,r,a)}function l(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 u(t,e,n,i,r,a){l(t)||o("leave",t,e,n,i,r,a)}function c(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),u(t,{style:{opacity:0}},e,n,i)}function h(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||c(t,e,n,i)}):c(t,e,n,i)}function p(t){r(t).oldStyle=t.style}},6305(t,e,n){n.d(e,{A:()=>r});var i=n(9269);function r(){var t=(0,i.$r)();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}},2381(t,e,n){n.d(e,{A:()=>I});var i=n(9774),r=n(1551),o=n(7786),a=n(2070),s=n(8401),l=n(6295),u=n(7871),c=n(846),h=n(2551),p=n(4570),d=n(6239),f=n(4721),g=n(1458),v=n(262),y=Math.PI,m=function(){function t(t,e){this.group=new o.A,this.opt=e,this.axisModel=t,(0,i.NT)(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new o.A({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!_[t]},t.prototype.add=function(t){_[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=(0,h._7)(e-t);return(0,h.dh)(o)?(r=n>0?"top":"bottom",i="center"):(0,h.dh)(o-y)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<y?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},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}(),_={axisLine:function(t,e,n,o){var a=e.get(["axisLine","show"]);if("auto"===a&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),a){var l=e.axis.getExtent(),u=o.transform,c=[l[0],0],h=[l[1],0],d=c[0]>h[0];u&&((0,f.NW)(c,c,u),(0,f.NW)(h,h,u));var g=(0,i.X$)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),v=new s.A({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:g,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});r.subPixelOptimizeLine(v.shape,v.style.lineWidth),v.anid="line",n.add(v);var y=e.get(["axisLine","symbol"]);if(null!=y){var m=e.get(["axisLine","symbolSize"]);(0,i.Kg)(y)&&(y=[y,y]),((0,i.Kg)(m)||(0,i.Et)(m))&&(m=[m,m]);var _=(0,p.hV)(e.get(["axisLine","symbolOffset"])||0,m),x=m[0],b=m[1];(0,i.__)([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],function(e,i){if("none"!==y[i]&&null!=y[i]){var r=(0,p.v5)(y[i],-x/2,-b/2,x,b,g.stroke,!0),o=e.r+e.offset,a=d?h:c;r.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(r)}})}}},axisTickLabel:function(t,e,n,r){var o=function(t,e,n,r){var o=n.axis,a=n.getModel("axisTick"),s=a.get("show");"auto"===s&&r.handleAutoShown&&(s=r.handleAutoShown("axisTick"));if(!s||o.scale.isBlank())return;for(var l=a.getModel("lineStyle"),u=r.tickDirection*a.get("length"),c=S(o.getTicksCoords(),e.transform,u,(0,i.NT)(l.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)t.add(c[h]);return c}(n,r,e,t),s=function(t,e,n,r){var o=n.axis,s=(0,i.Je)(r.axisLabelShow,n.get(["axisLabel","show"]));if(!s||o.scale.isBlank())return;var h=n.getModel("axisLabel"),p=h.get("margin"),d=o.getViewLabels(),f=((0,i.Je)(r.labelRotate,h.get("rotate"))||0)*y/180,g=m.innerTextLayout(r.rotation,f,r.labelDirection),v=n.getCategories&&n.getCategories(!0),_=[],x=m.isLabelSilent(n),b=n.get("triggerEvent");return(0,i.__)(d,function(s,d){var f="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,y=s.formattedLabel,w=s.rawLabel,S=h;if(v&&v[f]){var I=v[f];(0,i.Gv)(I)&&I.textStyle&&(S=new c.A(I.textStyle,h,n.ecModel))}var M=S.getTextColor()||n.get(["axisLine","lineStyle","color"]),T=o.dataToCoord(f),C=new a.Ay({x:T,y:r.labelOffset+r.labelDirection*p,rotation:g.rotation,silent:x,z2:10+(s.level||0),style:(0,u.VB)(S,{text:y,align:S.getShallow("align",!0)||g.textAlign,verticalAlign:S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||g.textVerticalAlign,fill:(0,i.Tn)(M)?M("category"===o.type?w:"value"===o.type?f+"":f,d):M})});if(C.anid="label_"+f,b){var A=m.makeAxisEventDataBase(n);A.targetType="axisLabel",A.value=w,A.tickIndex=d,"category"===o.type&&(A.dataIndex=f),(0,l.z)(C).eventData=A}e.add(C),C.updateTransform(),_.push(C),t.add(C),C.decomposeTransform()}),_}(n,r,e,t);if(function(t,e,n){if((0,g.PJ)(t.axis))return;var i=t.get(["axisLabel","showMinLabel"]),r=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===i?(x(o),x(u)):b(o,a)&&(i?(x(a),x(c)):(x(o),x(u)));!1===r?(x(s),x(h)):b(l,s)&&(r?(x(l),x(p)):(x(s),x(h)))}(e,s,o),function(t,e,n,r){var o=n.axis,a=n.getModel("minorTick");if(!a.get("show")||o.scale.isBlank())return;var s=o.getMinorTicksCoords();if(!s.length)return;for(var l=a.getModel("lineStyle"),u=r*a.get("length"),c=(0,i.NT)(l.getLineStyle(),(0,i.NT)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var p=S(s[h],e.transform,u,c,"minorticks_"+h),d=0;d<p.length;d++)t.add(p[d])}(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var h=(0,v.os)((0,i.Tj)(s,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}}));(0,v.If)(h)}},axisName:function(t,e,n,o){var s=(0,i.Je)(t.axisName,e.get("name"));if(s){var c,p,d=e.get("nameLocation"),f=t.nameDirection,g=e.getModel("nameTextStyle"),v=e.get("nameGap")||0,_=e.axis.getExtent(),x=_[0]>_[1]?-1:1,b=["start"===d?_[0]-x*v:"end"===d?_[1]+x*v:(_[0]+_[1])/2,w(d)?t.labelOffset+f*v:0],S=e.get("nameRotate");null!=S&&(S=S*y/180),w(d)?c=m.innerTextLayout(t.rotation,null!=S?S:t.rotation,f):(c=function(t,e,n,i){var r,o,a=(0,h._7)(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;(0,h.dh)(a-y/2)?(o=l?"bottom":"top",r="center"):(0,h.dh)(a-1.5*y)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*y&&a>y/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,d,S||0,_),null!=(p=t.axisNameAvailableWidth)&&(p=Math.abs(p/Math.sin(c.rotation)),!isFinite(p)&&(p=null)));var I=g.getFont(),M=e.get("nameTruncate",!0)||{},T=M.ellipsis,C=(0,i.Je)(t.nameTruncateMaxWidth,M.maxWidth,p),A=new a.Ay({x:b[0],y:b[1],rotation:c.rotation,silent:m.isLabelSilent(e),style:(0,u.VB)(g,{text:s,font:I,overflow:"truncate",width:C,ellipsis:T,fill:g.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:g.get("align")||c.textAlign,verticalAlign:g.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(r.setTooltipConfig({el:A,componentModel:e,itemName:s}),A.__fullText=s,A.anid="name",e.get("triggerEvent")){var D=m.makeAxisEventDataBase(e);D.targetType="axisName",D.name=s,(0,l.z)(A).eventData=D}o.add(A),A.updateTransform(),n.add(A),A.decomposeTransform()}}};function x(t){t&&(t.ignore=!0)}function b(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=d.D_([]);return d.e$(r,r,-t.rotation),n.applyTransform(d.lK([],r,t.getLocalTransform())),i.applyTransform(d.lK([],r,e.getLocalTransform())),n.intersect(i)}}function w(t){return"middle"===t||"center"===t}function S(t,e,n,i,o){for(var a=[],l=[],u=[],c=0;c<t.length;c++){var h=t[c].coord;l[0]=h,l[1]=0,u[0]=h,u[1]=n,e&&((0,f.NW)(l,l,e),(0,f.NW)(u,u,e));var p=new s.A({shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:i,z2:2,autoBatch:!0,silent:!0});r.subPixelOptimizeLine(p.shape,p.style.lineWidth),p.anid=o+"_"+t[c].tickValue,a.push(p)}return a}const I=m},6281(t,e,n){n.d(e,{A:()=>l});var i=n(5482),r=n(7979),o=n(8686),a={},s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,i.C6)(e,t),e.prototype.render=function(e,n,i,o){this.axisPointerClass&&r.h_(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){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,i){var o=e.getAxisPointerClass(this.axisPointerClass);if(o){var a=r.mg(t);a?(this._axisPointer||(this._axisPointer=new o)).render(t,a,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){a[t]=e},e.getAxisPointerClass=function(t){return t&&a[t]},e.type="axis",e}(o.A);const l=s},5228(t,e,n){n.d(e,{A:()=>o});var i=n(9774),r=n(9269);function o(t,e){var n,o=[],a=t.seriesIndex;if(null==a||!(n=e.getSeriesByIndex(a)))return{point:[]};var s=n.getData(),l=r.le(s,t);if(null==l||l<0||i.cy(l))return{point:[]};var u=s.getItemGraphicEl(l),c=n.coordinateSystem;if(n.getTooltipPosition)o=n.getTooltipPosition(l)||[];else if(c&&c.dataToPoint)if(t.isStacked){var h=c.getBaseAxis(),p=c.getOtherAxis(h).dim,d=h.dim,f="x"===p||"radius"===p?1:0,g=s.mapDimension(d),v=[];v[f]=s.get(g,l),v[1-f]=s.get(s.getCalculationInfo("stackResultDimension"),l),o=c.dataToPoint(v)||[]}else o=c.dataToPoint(s.getValues(i.Tj(c.dimensions,function(t){return s.mapDimension(t)}),l))||[];else if(u){var y=u.getBoundingRect().clone();y.applyTransform(u.transform),o=[y.x+y.width/2,y.y+y.height/2]}return{point:o,el:u}}},1435(t,e,n){n.d(e,{h:()=>c,k:()=>s});var i=n(9774),r=n(8311),o=(0,n(9269).$r)(),a=i.__;function s(t,e,n){if(!r.A.node){var s=e.getZr();o(s).records||(o(s).records={}),function(t,e){if(o(t).initialized)return;function n(n,i){t.on(n,function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);a(o(t).records,function(t){t&&i(t,n,r.dispatchAction)}),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)})}o(t).initialized=!0,n("click",i.cF(u,"click")),n("mousemove",i.cF(u,"mousemove")),n("globalout",l)}(s,e),(o(s).records[t]||(o(s).records[t]={})).handler=n}}function l(t,e,n){t.handler("leave",null,n)}function u(t,e,n,i){e.handler(t,n,i)}function c(t,e){if(!r.A.node){var n=e.getZr();(o(n).records||{})[t]&&(o(n).records[t]=null)}}},7696(t,e,n){n.d(e,{a:()=>X});var i=n(6281),r=n(5482),o=n(9774),a=n(7786),s=n(1551),l=n(2070),u=n(4159),c=n(7979),h=n(1720),p=n(6070),d=n(9269),f=(0,d.$r)(),g=o.o8,v=o.oI,y=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),s=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==s){this._lastValue=r,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var c={};this.makeElOption(c,r,t,e,n);var h=c.graphicKey;h!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=h;var p=this._moveAnimation=this.determineAnimation(t,e);if(l){var d=o.cF(m,e,p);this.updatePointerEl(l,c,d),this.updateLabelEl(l,c,d,e)}else l=this._group=new a.A,this.createPointerEl(l,c,t,e),this.createLabelEl(l,c,t,e),n.getZr().add(l);w(l,e,!0),this._renderHandle(r)}},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"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=c.Yc(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=f(t).pointerEl=new s[r.type](g(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=f(t).labelEl=new l.Ay(g(e.label));t.add(r),x(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=f(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=f(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),x(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,a=n.getModel("handle"),l=n.get("status");if(!a.get("show")||!l||"hide"===l)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=s.createIcon(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){h.ds(t.event)},onmousedown:v(this._onHandleDragMove,this,0,0),drift:v(this._onHandleDragMove,this),ondragend:v(this._onHandleDragEnd,this)}),i.add(r)),w(r,n,!1),r.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");o.cy(u)||(u=[u,u]),r.scaleX=u[0]/2,r.scaleY=u[1]/2,p.N(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){m(this._axisPointerModel,!e&&this._moveAnimation,this._handle,b(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(b(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(b(i)),f(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,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),p.IU(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 m(t,e,n,i){_(f(n).lastProp,i)||(f(n).lastProp=i,e?u.oi(n,i,t):(n.stopAnimation(),n.attr(i)))}function _(t,e){if(o.Gv(t)&&o.Gv(e)){var n=!0;return o.__(e,function(e,i){n=n&&_(t[i],e)}),!!n}return t===e}function x(t,e){t[e.get(["label","show"])?"show":"hide"]()}function b(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function w(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}const S=y;var I=n(3985),M=n(8531),T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=C(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=I.bY(i),h=A[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}var p=M.Zp(a.model,n);I.DA(e,t,p,n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=M.Zp(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=I.Tc(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=C(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.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}(S);function C(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var A={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:I.MU([e,n[0]],[e,n[1]],D(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:I.cU([e-i/2,n[0]],[i,r],D(t))}}};function D(t){return"x"===t.dim?0:1}const k=T;var P=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.C6)(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}(n(4386).A);const L=P;var O=n(1435),E=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.C6)(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";O.k("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){O.h("axisPointer",e)},e.prototype.dispose=function(t,e){O.h("axisPointer",e)},e.type="axisPointer",e}(n(8686).A);const R=E;var N=n(5228),z=(0,d.$r)();function B(t,e,n){var i=t.currTrigger,r=[t.x,t.y],a=t,s=t.dispatchAction||(0,o.oI)(n.dispatchAction,n),l=e.getComponent("axisPointer").coordSysAxesInfo;if(l){G(r)&&(r=(0,N.A)({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var u=G(r),c=a.axesInfo,h=l.axesInfo,p="leave"===i||G(r),d={},f={},g={list:[],map:{}},v={showPointer:(0,o.cF)(F,f),showTooltip:(0,o.cF)(H,g)};(0,o.__)(l.coordSysMap,function(t,e){var n=u||t.containPoint(r);(0,o.__)(l.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(c,t);if(!p&&n&&(!c||o)){var a=o&&o.value;null!=a||u||(a=i.pointToData(r)),null!=a&&V(t,a,v,!1,d)}})});var y={};return(0,o.__)(h,function(t,e){var n=t.linkGroup;n&&!f[e]&&(0,o.__)(n.axesInfo,function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,W(e),W(t)))),y[t.key]=o}})}),(0,o.__)(y,function(t,e){V(h[e],t,v,!0,d)}),function(t,e,n){var i=n.axesInfo=[];(0,o.__)(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}(f,h,d),function(t,e,n,i){if(G(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(g,r,t,s),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",a=z(i)[r]||{},s=z(i)[r]={};(0,o.__)(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&(0,o.__)(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;s[e]=t})});var l=[],u=[];(0,o.__)(a,function(t,e){!s[e]&&u.push(t)}),(0,o.__)(s,function(t,e){!a[e]&&l.push(t)}),u.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}(h,0,n),d}}function V(t,e,n,i,r){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e))if(t.involveSeries){var s=function(t,e){var n=e.axis,i=n.dim,r=t,a=[],s=Number.MAX_VALUE,l=-1;return(0,o.__)(e.seriesModels,function(e,u){var c,h,p=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(p,t,n);h=d.dataIndices,c=d.nestestValue}else{if(!(h=e.getData().indicesOfNearest(p[0],t,"category"===n.type?.5:null)).length)return;c=e.getData().get(p[0],h[0])}if(null!=c&&isFinite(c)){var f=t-c,g=Math.abs(f);g<=s&&((g<s||f>=0&&l<0)&&(s=g,l=f,r=c,a.length=0),(0,o.__)(h,function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:a,snapToValue:r}}(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==r.seriesIndex&&(0,o.X$)(r,l[0]),!i&&t.snap&&a.containData(u)&&null!=u&&(e=u),n.showPointer(t,e,l),n.showTooltip(t,s,u)}else n.showPointer(t,e)}function F(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function H(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=c.og(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function W(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function G(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function X(t){i.A.registerAxisPointerClass("CartesianAxisPointer",k),t.registerComponentModel(L),t.registerComponentView(R),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!(0,o.cy)(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=(0,c.Fo)(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},B)}},7979(t,e,n){n.d(e,{Fo:()=>o,Yc:()=>l,h_:()=>s,mg:()=>u,og:()=>h});var i=n(846),r=n(9774);function o(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var o=e.getComponent("tooltip"),s=e.getComponent("axisPointer"),l=s.get("link",!0)||[],u=[];(0,r.__)(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var p=h(n.model),d=t.coordSysAxesInfo[p]={};t.coordSysMap[p]=n;var f=n.model.getModel("tooltip",o);if((0,r.__)(n.getAxes(),(0,r.cF)(m,!1,null)),n.getTooltipAxes&&o&&f.get("show")){var g="axis"===f.get("trigger"),v="cross"===f.get(["axisPointer","type"]),y=n.getTooltipAxes(f.get(["axisPointer","axis"]));(g||v)&&(0,r.__)(y.baseAxes,(0,r.cF)(m,!v||"cross",g)),v&&(0,r.__)(y.otherAxes,(0,r.cF)(m,"cross",!1))}}function m(o,p,g){var v=g.model.getModel("axisPointer",s),y=v.get("show");if(y&&("auto"!==y||o||c(v))){null==p&&(p=v.get("triggerTooltip")),v=o?function(t,e,n,o,a,s){var l=e.getModel("axisPointer"),u=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],c={};(0,r.__)(u,function(t){c[t]=(0,r.o8)(l.get(t))}),c.snap="category"!==t.type&&!!s,"cross"===l.get("type")&&(c.type="line");var h=c.label||(c.label={});if(null==h.show&&(h.show=!1),"cross"===a){var p=l.get(["label","show"]);if(h.show=null==p||p,!s){var d=c.lineStyle=l.get("crossStyle");d&&(0,r.NT)(h,d.textStyle)}}return t.model.getModel("axisPointer",new i.A(c,n,o))}(g,f,s,e,o,p):v;var m=v.get("snap"),_=v.get("triggerEmphasis"),x=h(g.model),b=p||m||"category"===g.type,w=t.axesInfo[x]={key:x,axis:g,coordSys:n,axisPointerModel:v,triggerTooltip:p,triggerEmphasis:_,involveSeries:b,snap:m,useHandle:c(v),seriesModels:[],linkGroup:null};d[x]=w,t.seriesInvolved=t.seriesInvolved||b;var S=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(a(o[i+"AxisId"],n.id)||a(o[i+"AxisIndex"],n.componentIndex)||a(o[i+"AxisName"],n.name))return r}}(l,g);if(null!=S){var I=u[S]||(u[S]={axesInfo:{}});I.axesInfo[x]=w,I.mapper=l[S].mapper,w.linkGroup=I}}}})}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),o=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==o&&!1!==e.get(["axisPointer","show"],!0)&&(0,r.__)(t.coordSysAxesInfo[h(n.model)],function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})})}(n,t),n}function a(t,e){return"all"===t||(0,r.cy)(t)&&(0,r.qh)(t,e)>=0||t===e}function s(t){var e=l(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=c(n);null==o&&(r.status=s?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==a||a>u[1])&&(a=u[1]),a<u[0]&&(a=u[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function l(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[h(t)]}function u(t){var e=l(t);return e&&e.axisPointerModel}function c(t){return!!t.get(["handle","show"])}function h(t){return t.type+"||"+t.id}},3985(t,e,n){n.d(e,{DA:()=>g,MU:()=>v,Tc:()=>f,_F:()=>d,bY:()=>h,cU:()=>y});var i=n(9774),r=n(1551),o=n(6066),a=n(8397),s=n(6239),l=n(1458),u=n(2381),c=n(7871);function h(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function p(t,e,n,i,r){var s=d(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),u=a.QX(l.get("padding")||0),h=l.getFont(),p=o.NO(s,h),f=r.position,g=p.width+u[1]+u[3],v=p.height+u[0]+u[2],y=r.align;"right"===y&&(f[0]-=g),"center"===y&&(f[0]-=g/2);var m=r.verticalAlign;"bottom"===m&&(f[1]-=v),"middle"===m&&(f[1]-=v/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(f,g,v,i);var _=l.get("backgroundColor");_&&"auto"!==_||(_=e.get(["axisLine","lineStyle","color"])),t.label={x:f[0],y:f[1],style:(0,c.VB)(l,{text:s,font:h,fill:l.getTextColor(),padding:u,backgroundColor:_}),z2:10}}function d(t,e,n,r,o){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:o.precision}),s=o.formatter;if(s){var u={value:l.Dt(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};i.__(r,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&u.seriesData.push(r)}),i.Kg(s)?a=s.replace("{value}",a):i.Tn(s)&&(a=s(u))}return a}function f(t,e,n){var i=s.vt();return s.e$(i,i,n.rotation),s.Tl(i,i,n.position),r.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function g(t,e,n,i,r,o){var a=u.A.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),p(e,i,r,o,{position:f(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function v(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function y(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}},3651(t,e,n){n.d(e,{a:()=>a});var i=n(3478),r=n(7696),o=n(8570);function a(t){(0,o.Y)(i.a),(0,o.Y)(r.a)}},3478(t,e,n){n.d(e,{a:()=>Q});var i=n(5482),r=n(8686),o=n(4386),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(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}(o.A);const s=a;var l=n(6078),u=n(9774),c=n(4457),h=n(9269),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",h.US).models[0]},e.type="cartesian2dAxis",e}(o.A);u.co(p,c.L);var d=n(5107),f=n(6196),g=n(5064),v={value:1,category:1,time:1,log:1};function y(t,e,n,r){(0,u.__)(v,function(o,a){var s=(0,u.h1)((0,u.h1)({},d.A[a],!0),r,!0),l=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+a,n}return(0,i.C6)(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=(0,f.ad)(this),i=n?(0,f.vs)(t):{},r=e.getTheme();(0,u.h1)(t,r.get(a+"Axis")),(0,u.h1)(t,this.getDefaultOption()),t.type=m(t),n&&(0,f.YA)(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=g.A.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."+a,n.defaultOption=s,n}(n);t.registerComponentModel(l)}),t.registerSubTypeDefaulter(e+"Axis",m)}function m(t){return t.type||(t.data?"category":"value")}var _=n(1458),x=n(7544);const b=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 u.Tj(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),u.pb(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}();var w=n(6239),S=n(4721),I=["x","y"];function M(t){return"interval"===t.type||"time"===t.type}var T=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=I,e}return(0,i.C6)(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(M(t)&&M(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,p=this._transform=[l,0,0,u,c,h];this._invTransform=(0,w.B8)([],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),i=this.dataToPoint(e),r=this.getArea(),o=new x.A(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return(0,S.NW)(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[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(0,S.NW)(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.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]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new x.A(n,i,r,o)},e}(b);const C=T;var A=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return(0,i.C6)(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}(n(7745).A);const D=A;var k=n(8531),P=n(7764),L=n(1845),O=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=I,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 i(t){var e,n=(0,u.HP)(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;(0,P.rf)(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):((0,_.af)(l,s),(0,P.rf)(l)&&(e=a))}r.length&&(e||(e=r.pop(),(0,_.af)(e.scale,e.model)),(0,u.__)(r,function(t){(0,L.m)(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};(0,u.__)(n.x,function(t){R(n,"y",t,r)}),(0,u.__)(n.y,function(t){R(n,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=(0,f.dV)(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){(0,u.__)(a,function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?o.x:o.y)})}s(),r&&((0,u.__)(a,function(t){if(!t.model.get(["axisLabel","inside"])){var e=(0,_.Og)(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i)}}}),s()),(0,u.__)(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]}(0,u.Gv)(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",h.US).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",h.US).models[0],a=t.gridModel,s=this._coordsList;if(i)e=i.coordinateSystem,(0,u.qh)(s,e)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.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 i=this,r=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,i){if(E(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 D(e,(0,_.f$)(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=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}this._axesMap=a,(0,u.__)(a.x,function(e,n){(0,u.__)(a.y,function(r,o){var a="x"+n+"y"+o,s=new C(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})},t.prototype._updateScale=function(t,e){function n(t,e){(0,u.__)((0,_.wq)(t,e.dim),function(n){e.scale.unionExtentFromData(t,n)})}(0,u.__)(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((0,k.gO)(t)){var i=(0,k.LR)(t),r=i.xAxisModel,o=i.yAxisModel;if(!E(r,e)||!E(o,e))return;var a=this.getCartesian(r.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(0,u.__)(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);(0,u.qh)(e,r)<0&&e.push(r),(0,u.qh)(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)}),e.eachSeries(function(t){if((0,k.gO)(t)){var e=(0,k.LR)(t),n=e.xAxisModel,i=e.yAxisModel;0;var r=n.getCoordSysModel().coordinateSystem;t.coordinateSystem=r.getCartesian(n.componentIndex,i.componentIndex)}}),i},t.dimensions=I,t}();function E(t,e){return t.getCoordSysModel()===e}function R(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)N(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&N(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function N(t){return t&&"category"!==t.type&&"time"!==t.type&&(0,_.JJ)(t)}const z=O;var B=n(7786),V=n(1551),F=n(8401),H=n(2381),W=n(6281),G=(0,h.$r)();var X=["axisLine","axisTickLabel","axisName"],U=["splitArea","splitLine","minorSplitLine"],Y=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return(0,i.C6)(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new B.A,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=k.Zp(a,e),l=new H.A(e,u.X$({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if((0,P.rf)(n[i].getOtherAxis(e.axis).scale))return!0;return!1}},s));u.__(X,l.add,l),this._axisGroup.add(l.getGroup()),u.__(U,function(t){e.get([t,"show"])&&j[t](this,this._axisGroup,e,a)},this),r&&"changeAxisOrder"===r.type&&r.isInitSort||V.groupTransition(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},e.prototype.remove=function(){G(this).splitAreaColors=null},e.type="cartesianAxis",e}(W.A),j={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=u.cy(s)?s:[s];for(var l=i.coordinateSystem.getRect(),c=r.isHorizontal(),h=0,p=r.getTicksCoords({tickModel:o}),d=[],f=[],g=a.getLineStyle(),v=0;v<p.length;v++){var y=r.toGlobalCoord(p[v].coord);c?(d[0]=y,d[1]=l.y,f[0]=y,f[1]=l.y+l.height):(d[0]=l.x,d[1]=y,f[0]=l.x+l.width,f[1]=y);var m=h++%s.length,_=p[v].tickValue,x=new F.A({anid:null!=_?"line_"+p[v].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:u.NT({stroke:s[m]},g),silent:!0});V.subPixelOptimizeLine(x.shape,g.lineWidth),e.add(x)}}},minorSplitLine:function(t,e,n,i){var r=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=o.getLineStyle(),p=0;p<l.length;p++)for(var d=0;d<l[p].length;d++){var f=r.toGlobalCoord(l[p][d].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f);var g=new F.A({anid:"minor_line_"+l[p][d].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0});V.subPixelOptimizeLine(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,n,i){!function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),c=i.coordinateSystem.getRect(),h=r.getTicksCoords({tickModel:o,clamp:!0});if(h.length){var p=s.length,d=G(t).splitAreaColors,f=u.nt(),g=0;if(d)for(var v=0;v<h.length;v++){var y=d.get(h[v].tickValue);if(null!=y){g=(y+(p-1)*v)%p;break}}var m=r.toGlobalCoord(h[0].coord),_=a.getAreaStyle();for(s=u.cy(s)?s:[s],v=1;v<h.length;v++){var x=r.toGlobalCoord(h[v].coord),b=void 0,w=void 0,S=void 0,I=void 0;r.isHorizontal()?(b=m,w=c.y,S=x-b,I=c.height,m=b+S):(b=c.x,w=m,S=c.width,m=w+(I=x-w));var M=h[v-1].tickValue;null!=M&&f.set(M,g),e.add(new l.A({anid:null!=M?"area_"+M:null,shape:{x:b,y:w,width:S,height:I},style:u.NT({fill:s[g]},_),autoBatch:!0,silent:!0})),g=(g+1)%p}G(t).splitAreaColors=f}}}(t,e,n,i)}},Z=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,i.C6)(e,t),e.type="xAxis",e}(Y),q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=Z.type,e}return(0,i.C6)(e,t),e.type="yAxis",e}(Y);var $=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return(0,i.C6)(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new l.A({shape:t.coordinateSystem.getRect(),style:(0,u.NT)({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(r.A),K={offset:0};function Q(t){t.registerComponentView($),t.registerComponentModel(s),t.registerCoordinateSystem("cartesian2d",z),y(t,"x",p,K),y(t,"y",p,K),t.registerComponentView(Z),t.registerComponentView(q),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}},3215(t,e,n){n.d(e,{a:()=>Y});var i=n(8570),r=n(5482),o=n(9774),a=n(846),s=n(9269),l=n(4386),u=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(0,r.C6)(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"]),o.cy(e)&&o.__(e,function(t,i){o.Kg(t)&&(t={type:t}),e[i]=o.h1(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 i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries(function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(a)),a.length?e=e.concat(a):r=!0}else r=!0;r&&(0,s.O0)(i)&&e.push(i.name)}),this._availableNames=n;var i=this.get("data")||e,r=o.nt(),l=o.Tj(i,function(t){return(o.Kg(t)||o.Et(t))&&(t={name:t}),r.get(t.name)?null:(r.set(t.name,!0),new a.A(t,this,this.ecModel))},this);this._data=o.pb(l,function(t){return!!t})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;o.__(n,function(t){e[t.get("name")]=!1})}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;o.__(t,function(t){e[t.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;o.__(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])&&o.qh(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}(l.A);const c=u;var h=n(9886),p=n(7786),d=n(2070),f=n(6078),g=n(1551),v=n(4156),y=n(7871),m=n(8397);var _=n(6196),x=n(8686),b=n(4570),w=n(2602),S=o.cF,I=o.__,M=p.A,T=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return(0,r.C6)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new M),this.group.add(this._selectorGroup=new M),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 i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),a=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===a?"right":"left");var s=t.get("selector",!0),l=t.get("selectorPosition",!0);!s||l&&"auto"!==l||(l="horizontal"===a?"end":"start"),this.renderInner(r,t,e,n,s,a,l);var u=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),p=_.dV(u,c,h),d=this.layoutInner(t,r,p,i,s,l),g=_.dV(o.NT({width:d.width,height:d.height},u),c,h);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function(t,e){var n=m.QX(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new f.A({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:i,silent:!0,z2:-1})}(d,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,i,r,a,s){var l=this.getContentGroup(),u=o.nt(),c=e.get("selectedMode"),p=[];n.eachRawSeries(function(t){!t.get("legendHoverLink")&&p.push(t.id)}),I(e.getData(),function(r,a){var s=r.get("name");if(!this.newlineDisabled&&(""===s||"\n"===s)){var d=new M;return d.newline=!0,void l.add(d)}var f=n.getSeriesByName(s)[0];if(!u.get(s)){if(f){var g=f.getData(),v=g.getVisual("legendLineStyle")||{},y=g.getVisual("legendIcon"),m=g.getVisual("style");this._createItem(f,s,a,r,e,t,v,m,y,c,i).on("click",S(C,s,null,i,p)).on("mouseover",S(D,f.name,null,i,p)).on("mouseout",S(k,f.name,null,i,p)),u.set(s,!0)}else n.eachRawSeries(function(n){if(!u.get(s)&&n.legendVisualProvider){var l=n.legendVisualProvider;if(!l.containName(s))return;var d=l.indexOfName(s),f=l.getItemVisual(d,"style"),g=l.getItemVisual(d,"legendIcon"),v=(0,h.qg)(f.fill);v&&0===v[3]&&(v[3]=.2,f=o.X$(o.X$({},f),{fill:(0,h.As)(v,"rgba")})),this._createItem(n,s,a,r,e,t,{},f,g,c,i).on("click",S(C,null,s,i,p)).on("mouseover",S(D,null,s,i,p)).on("mouseout",S(k,null,s,i,p)),u.set(s,!0)}},this);0}},this),r&&this._createSelector(r,e,i,a,s)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();I(t,function(t){var i=t.type,r=new d.Ay({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);(0,y.qM)(r,{normal:a,emphasis:s},{defaultText:t.title}),(0,v.iJ)(r)})},e.prototype._createItem=function(t,e,n,i,r,a,s,l,u,c,h){var p=t.visualDrawType,m=r.get("itemWidth"),_=r.get("itemHeight"),x=r.isSelected(e),S=i.get("symbolRotate"),T=i.get("symbolKeepAspect"),C=i.get("icon"),A=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),I(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}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?(0,w.w)(h,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]);"inherit"===u.stroke&&(u.stroke=i[c]);"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity);s(u,i);var p=e.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===d.stroke&&(d.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}(u=C||u||"roundRect",i,s,l,p,x,h),D=new M,k=i.getModel("textStyle");if(!o.Tn(t.getLegendIcon)||C&&"inherit"!==C){var P="inherit"===C&&t.getData().getVisual("symbol")?"inherit"===S?t.getData().getVisual("symbolRotate"):S:0;D.add(function(t){var e=t.icon||"roundRect",n=(0,b.v5)(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:m,itemHeight:_,icon:u,iconRotate:P,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:T}))}else D.add(t.getLegendIcon({itemWidth:m,itemHeight:_,icon:u,iconRotate:S,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:T}));var L="left"===a?m+5:-5,O=a,E=r.get("formatter"),R=e;o.Kg(E)&&E?R=E.replace("{name}",null!=e?e:""):o.Tn(E)&&(R=E(e));var N=x?k.getTextColor():i.get("inactiveColor");D.add(new d.Ay({style:(0,y.VB)(k,{text:R,x:L,y:_/2,fill:N,align:O,verticalAlign:"middle"},{inheritColor:N})}));var z=new f.A({shape:D.getBoundingRect(),invisible:!0}),B=i.getModel("tooltip");return B.get("show")&&g.setTooltipConfig({el:z,componentModel:r,itemName:e,itemTooltipOption:B.option}),D.add(z),D.eachChild(function(t){t.silent=!0}),z.silent=!c,this.getContentGroup().add(D),(0,v.iJ)(D),D.__legendDataIndex=n,D},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();_.aP(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(),r){_.aP("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,f=0===d?"width":"height",g=0===d?"height":"width",v=0===d?"y":"x";"end"===o?h[d]+=l[f]+p:u[d]+=c[f]+p,h[1-d]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[f]=l[f]+p+c[f],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-d]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(x.A);function C(t,e,n,i){k(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),D(t,e,n,i)}function A(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function D(t,e,n,i){A(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function k(t,e,n,i){A(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}const P=T;function L(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 O(t,e,n){var i,r={},a="toggleSelected"===t;return n.eachComponent("legend",function(n){a&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var s=n.getData();(0,o.__)(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&i:r[e]=i}})}),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function E(t){t.registerComponentModel(c),t.registerComponentView(P),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,L),t.registerSubTypeDefaulter("legend",function(){return"plain"}),function(t){t.registerAction("legendToggleSelect","legendselectchanged",(0,o.cF)(O,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",(0,o.cF)(O,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",(0,o.cF)(O,"inverseSelect")),t.registerAction("legendSelect","legendselected",(0,o.cF)(O,"select")),t.registerAction("legendUnSelect","legendunselected",(0,o.cF)(O,"unSelect"))}(t)}var R=n(2359),N=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.C6)(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=(0,_.vs)(e);t.prototype.init.call(this,e,n,i),z(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),z(this,this.option,e)},e.type="legend.scroll",e.defaultOption=(0,R.G_)(c.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}(c);function z(t,e,n){var i=[1,1];i[t.getOrient().index]=0,(0,_.YA)(e,n,{type:"box",ignoreSize:!!i})}const B=N;var V=n(4159),F=p.A,H=["width","height"],W=["x","y"],G=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(0,r.C6)(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new F),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new F)},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,i,r,a,s,l){var u=this;t.prototype.renderInner.call(this,e,n,i,r,a,s,l);var c=this._controllerGroup,h=n.get("pageIconSize",!0),p=o.cy(h)?h:[h,h];v("pagePrev",0);var f=n.getModel("pageTextStyle");function v(t,e){var i=t+"DataIndex",a=g.createIcon(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:o.oI(u._pageGo,u,i,n,r)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});a.name=t,c.add(a)}c.add(new d.Ay({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,a){var s=this.getSelectorGroup(),l=t.getOrient().index,u=H[l],c=W[l],h=H[1-l],p=W[1-l];r&&_.aP("horizontal",s,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),f=s.getBoundingRect(),g=[-f.x,-f.y],v=o.o8(n);r&&(v[u]=n[u]-f[u]-d);var y=this._layoutContentAndController(t,i,v,l,u,h,p,c);if(r){if("end"===a)g[l]+=y[u]+d;else{var m=f[u]+d;g[l]-=m,y[c]-=m}y[u]+=f[u]+d,g[1-l]+=y[p]+y[h]/2-f[h]/2,y[h]=Math.max(y[h],f[h]),y[p]=Math.min(y[p],f[p]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,e,n,i,r,a,s,l){var u=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;_.aP(t.get("orient"),u,t.get("itemGap"),i?n.width:null,i?null:n.height),_.aP("horizontal",h,t.get("pageButtonItemGap",!0));var p=u.getBoundingRect(),d=h.getBoundingRect(),g=this._showController=p[r]>n[r],v=[-p.x,-p.y];e||(v[i]=u[l]);var y=[0,0],m=[-d.x,-d.y],x=o.bZ(t.get("pageButtonGap",!0),t.get("itemGap",!0));g&&("end"===t.get("pageButtonPosition",!0)?m[i]+=n[r]-d[r]:y[i]+=d[r]+x);m[1-i]+=p[a]/2-d[a]/2,u.setPosition(v),c.setPosition(y),h.setPosition(m);var b={x:0,y:0};if(b[r]=g?n[r]:p[r],b[a]=Math.max(p[a],d[a]),b[s]=Math.min(0,d[s]+m[1-i]),c.__rectSize=n[r],g){var w={x:0,y:0};w[r]=Math.max(n[r]-d[r]-x,0),w[a]=b[a],c.setClipPath(new f.A({shape:w})),c.__rectSize=w[r]}else h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(t);return null!=S.pageIndex&&V.oi(u,{x:S.contentPosition[0],y:S.contentPosition[1]},g?t:null),this._updatePageInfoView(t,S),b},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;o.__(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),a=e.pageIndex,s=null!=a?a+1:0,l=e.pageCount;i&&r&&i.setStyle("text",o.Kg(r)?r.replace("{current}",null==s?"":s+"").replace("{total}",null==l?"":l+""):r({current:s,total:l}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=H[r],a=W[r],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 d=m(u);p.contentPosition[r]=-d.s;for(var f=s+1,g=d,v=d,y=null;f<=c;++f)(!(y=m(l[f]))&&v.e>g.s+i||y&&!_(y,g.s))&&(g=v.i>g.i?v:y)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),v=y;for(f=s-1,g=d,v=d,y=null;f>=-1;--f)(y=m(l[f]))&&_(v,y.s)||!(g.i<v.i)||(v=g,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=y;return p;function m(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)}),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(P);const X=G;function U(t){(0,i.Y)(E),t.registerComponentModel(B),t.registerComponentView(X),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)}function Y(t){(0,i.Y)(E),(0,i.Y)(U)}},8662(t,e,n){n.d(e,{a:()=>g});var i=n(5482),r=n(9774),o=n(2070),a=n(6078),s=n(6295),l=n(7871),u=n(6196),c=n(4386),h=n(8686),p=n(8397),d=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(0,i.C6)(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}(c.A),f=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,i.C6)(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,c=t.getModel("textStyle"),h=t.getModel("subtextStyle"),d=t.get("textAlign"),f=r.bZ(t.get("textBaseline"),t.get("textVerticalAlign")),g=new o.Ay({style:(0,l.VB)(c,{text:t.get("text"),fill:c.getTextColor()},{disableBox:!0}),z2:10}),v=g.getBoundingRect(),y=t.get("subtext"),m=new o.Ay({style:(0,l.VB)(h,{text:y,fill:h.getTextColor(),y:v.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),_=t.get("link"),x=t.get("sublink"),b=t.get("triggerEvent",!0);g.silent=!_&&!b,m.silent=!x&&!b,_&&g.on("click",function(){(0,p.JW)(_,"_"+t.get("target"))}),x&&m.on("click",function(){(0,p.JW)(x,"_"+t.get("subtarget"))}),(0,s.z)(g).eventData=(0,s.z)(m).eventData=b?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(g),y&&i.add(m);var w=i.getBoundingRect(),S=t.getBoxLayoutParams();S.width=w.width,S.height=w.height;var I=(0,u.dV)(S,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));d||("middle"===(d=t.get("left")||t.get("right"))&&(d="center"),"right"===d?I.x+=I.width:"center"===d&&(I.x+=I.width/2)),f||("center"===(f=t.get("top")||t.get("bottom"))&&(f="middle"),"bottom"===f?I.y+=I.height:"middle"===f&&(I.y+=I.height/2),f=f||"top"),i.x=I.x,i.y=I.y,i.markRedraw();var M={align:d,verticalAlign:f};g.setStyle(M),m.setStyle(M),w=i.getBoundingRect();var T=I.margin,C=t.getItemStyle(["color","opacity"]);C.fill=t.get("backgroundColor");var A=new a.A({shape:{x:w.x-T[3],y:w.y-T[0],width:w.width+T[1]+T[3],height:w.height+T[0]+T[2],r:t.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});i.add(A)}},e.type="title",e}(h.A);function g(t){t.registerComponentModel(d),t.registerComponentView(f)}},137(t,e,n){n.d(e,{a:()=>et});var i=n(7696),r=n(8570),o=n(5482),a=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,o.C6)(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}(n(4386).A);const s=a;var l=n(9774),u=n(8311),c=n(1720),h=n(3499),p=n(8397);function d(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function f(t){if(u.A.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var g=f(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),v=f(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function y(t,e){if(!t)return e;e=(0,p.Cb)(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var m=n(3496),_=y(v,"transition"),x=y(g,"transform"),b="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(u.A.transform3dSupported?"will-change:transform;":"");function w(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!u.A.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=u.A.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+x+":"+a+";":[["top",0],["left",0],[g,a]]}function S(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),c=t.get("shadowOffsetX"),h=t.get("shadowOffsetY"),d=t.getModel("textStyle"),f=(0,m.CO)(t,"html"),g=c+"px "+h+"px "+a+"px "+s;return i.push("box-shadow:"+g),e&&r&&i.push(function(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=u.A.transformSupported?","+x+i:",left"+i+",top"+i),_+":"+r}(r,n)),o&&i.push("background-color:"+o),(0,l.__)(["width","color","radius"],function(e){var n="border-"+e,r=(0,p.Cb)(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))}),i.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),(0,l.__)(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}(d)),null!=f&&i.push("padding:"+(0,p.QX)(f).join("px ")+"px"),i.join(";")+";"}function I(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&(0,h.lJ)(t,a,document.body,i,r)}else{t[0]=i,t[1]=r;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 M=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,u.A.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;I(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler,n=r.painter.getViewportRoot();(0,c.e0)(n,t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e,n,i,r=this._container,o=(n="position",(i=(e=r).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?n?i[n]:i:null),a=r.style;"absolute"!==a.position&&"absolute"!==o&&(a.position="relative");var s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=b+S(t,!this._firstShow,this._longHide)+w(r[0],r[1],!0)+"border-color:"+(0,p.he)(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if((0,l.Kg)(r)&&"item"===n.get("trigger")&&!d(n)&&(a=function(t,e,n){if(!(0,l.Kg)(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=(0,p.he)(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",u=Math.max(1.5*Math.round(r),6),c="",h=x+":";(0,l.qh)(["left","right"],s)>-1?(c+="top:50%",h+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(c+="left:50%",h+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var d=a*Math.PI/180,f=u+r,g=f*Math.abs(Math.cos(d))+f*Math.abs(Math.sin(d)),v=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+u+"px;height:"+u+"px;z-index:-1;",(c+=";"+s+":-"+Math.round(100*((g-Math.SQRT2*r)/2+Math.SQRT2*r-(g-f)/2))/100+"px")+";"+h+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),(0,l.Kg)(t))o.innerHTML=t+a;else if(t){o.innerHTML="",(0,l.cy)(t)||(t=[t]);for(var s=0;s<t.length;s++)(0,l.n_)(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=a,o.appendChild(u)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(I(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,r=w(n[0],n[1]);(0,l.__)(r,function(t){i[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",u.A.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout((0,l.oI)(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}();const T=M;var C=n(2070),A=n(2594),D=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),L(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,i,r){var o=this;l.Gv(t)&&(0,A.$8)(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new C.Ay({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:(0,m.CO)(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),l.__(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),l.__(["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=P(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 i=this._styleCoord;L(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=k(r.borderWidth||0),a=P(r);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(l.oI(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function k(t){return Math.max(0,t)}function P(t){var e=k(t.shadowBlur||0),n=k(t.shadowOffsetX||0),i=k(t.shadowOffsetY||0);return{left:k(e-n),right:k(e+n),top:k(e-i),bottom:k(e+i)}}function L(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const O=D;var E=n(2551),R=n(6078),N=n(5228),z=n(6196),B=n(846),V=n(1435),F=n(1458),H=n(3985),W=n(9269),G=n(8686),X=n(1867),U=n(6295),Y=n(5548),j=n(4772),Z=n(6070),q=new R.A({shape:{x:-1,y:-1,width:2,height:2}}),$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,o.C6)(e,t),e.prototype.init=function(t,e){if(!u.A.node&&e.getDom()){var n=t.getComponent("tooltip"),i=this._renderMode=(0,W.XJ)(n.get("renderMode"));this._tooltipContent="richText"===i?new O(e):new T(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!u.A.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?(0,Z.N)(this,"_updatePosition",50,"fixRate"):(0,Z.IU)(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");V.k("itemTooltip",this._api,(0,l.oI)(function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!u.A.node&&n.getDom()){var r=Q(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=(0,W.HB)(t).queryOptionMap,r=i.keys()[0];if(!r||"series"===r)return;var o=(0,W.JO)(e,r,i.get(r),{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=(0,U.z)(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0}),s)return{componentMainType:r,componentIndex:a.componentIndex,el:s}}(i,e,n);if(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:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=q;l.x=i.x,l.y=i.y,l.update(),(0,U.z)(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var c=(0,N.A)(i,e),h=c.point[0],p=c.point[1];null!=h&&null!=p&&this._tryShow({offsetX:h,offsetY:p,target:c.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Q(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s)if("axis"===K([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;this._lastDataByCoordSys=null,(0,j.R)(n,function(t){return null!=(0,U.z)(t).dataIndex?(r=t,!0):null!=(0,U.z)(t).tooltipConfig?(o=t,!0):void 0},!0),r?this._showSeriesItemTooltip(t,r,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=(0,l.oI)(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=K([e.tooltipOption],i),a=this._renderMode,s=[],u=(0,m.Qx)("section",{blocks:[],noHeader:!0}),c=[],h=new m.lb;(0,l.__)(t,function(t){(0,l.__)(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=H._F(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),d=(0,m.Qx)("section",{header:o,noHeader:!(0,l.Bq)(o),sortBlocks:!0,blocks:[]});u.blocks.push(d),(0,l.__)(t.seriesDataIndices,function(u){var f=n.getSeriesByIndex(u.seriesIndex),g=u.dataIndexInside,v=f.getDataParams(g);if(!(v.dataIndex<0)){v.axisDim=t.axisDim,v.axisIndex=t.axisIndex,v.axisType=t.axisType,v.axisId=t.axisId,v.axisValue=F.Dt(e.axis,{value:r}),v.axisValueLabel=o,v.marker=h.makeTooltipMarker("item",(0,p.he)(v.color),a);var y=(0,Y.L)(f.formatTooltip(g,!0,null)),m=y.frag;if(m){var _=K([f],i).get("valueFormatter");d.blocks.push(_?(0,l.X$)({valueFormatter:_},m):m)}y.text&&c.push(y.text),s.push(v)}})}})}),u.blocks.reverse(),c.reverse();var d=e.position,f=o.get("order"),g=(0,m.Yu)(u,h,a,f,n.get("useUTC"),o.get("textStyle"));g&&c.unshift(g);var v="richText"===a?"\n\n":"<br/>",y=c.join(v);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,d,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,y,s,Math.random()+"",r[0],r[1],d,null,h)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=(0,U.z)(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,u=r.dataIndex,c=r.dataType,h=s.getData(c),d=this._renderMode,f=t.positionDefault,g=K([h.getItemModel(u),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),v=g.get("trigger");if(null==v||"item"===v){var y=s.getDataParams(u,c),_=new m.lb;y.marker=_.makeTooltipMarker("item",(0,p.he)(y.color),d);var x=(0,Y.L)(s.formatTooltip(u,!1,c)),b=g.get("order"),w=g.get("valueFormatter"),S=x.frag,I=S?(0,m.Yu)(w?(0,l.X$)({valueFormatter:w},S):S,_,d,b,i.get("useUTC"),g.get("textStyle")):x.text,M="item_"+s.name+"_"+u;this._showOrMove(g,function(){this._showTooltipContent(g,I,y,M,t.offsetX,t.offsetY,t.position,t.target,_)}),n({type:"showTip",dataIndexInside:u,dataIndex:h.getRawIndex(u),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=(0,U.z)(e),r=i.tooltipConfig.option||{};if((0,l.Kg)(r)){r={content:r,formatter:r}}var o=[r],a=this._ecModel.getComponent(i.componentMainType,i.componentIndex);a&&o.push(a),o.push({formatter:r.content});var s=t.positionDefault,u=K(o,this._tooltipModel,s?{position:s}:null),c=u.get("content"),h=Math.random()+"",p=new m.lb;this._showOrMove(u,function(){var n=(0,l.o8)(u.get("formatterParams")||{});this._showTooltipContent(u,c,n,h,t.offsetX,t.offsetY,t.position,e,p)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var d=e,f=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(h)if((0,l.Kg)(h)){var g=t.ecModel.get("useUTC"),v=(0,l.cy)(n)?n[0]:n;d=h,v&&v.axisType&&v.axisType.indexOf("time")>=0&&(d=(0,X.GP)(v.axisValue,d,g)),d=(0,p.YK)(d,n,!0)}else if((0,l.Tn)(h)){var y=(0,l.oI)(function(e,i){e===this._ticket&&(c.setContent(i,u,t,f,a),this._updatePosition(t,a,r,o,c,n,s))},this);this._ticket=i,d=h(n,i,y)}else d=h;c.setContent(d,u,t,f,a),c.show(t,f),this._updatePosition(t,a,r,o,c,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||(0,l.cy)(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:(0,l.cy)(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),u=this._api.getHeight();e=e||t.get("position");var c=r.getSize(),h=t.get("align"),p=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),(0,l.Tn)(e)&&(e=e([n,i],o,r.el,f,{viewSize:[s,u],contentSize:c.slice()})),(0,l.cy)(e))n=(0,E.lo)(e[0],s),i=(0,E.lo)(e[1],u);else if((0,l.Gv)(e)){var g=e;g.width=c[0],g.height=c[1];var v=(0,z.dV)(g,{width:s,height:u});n=v.x,i=v.y,h=null,p=null}else if((0,l.Kg)(e)&&a){var y=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,f,c,t.get("borderWidth"));n=y[0],i=y[1]}else{y=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(t+l+o+2>i?t-=l+o:t+=o);null!=a&&(e+u+a>r?e-=u+a:e+=a);return[t,e]}(n,i,r,s,u,h?null:20,p?null:20);n=y[0],i=y[1]}if(h&&(n-=J(h)?c[0]/2:"right"===h?c[0]:0),p&&(i-=J(p)?c[1]/2:"bottom"===p?c[1]:0),d(t)){y=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,r,s,u);n=y[0],i=y[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&(0,l.__)(n,function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&(0,l.__)(a,function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],u=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===u.length)&&(0,l.__)(a,function(t,e){var n=u[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&(0,l.__)(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!u.A.node&&e.getDom()&&((0,Z.IU)(this,"_updatePosition"),this._tooltipContent.dispose(),V.h("itemTooltip",e))},e.type="tooltip",e}(G.A);function K(t,e,n){var i,r=e.ecModel;n?(i=new B.A(n,r,r),i=new B.A(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof B.A&&(a=a.get("tooltip",!0)),(0,l.Kg)(a)&&(a={formatter:a}),a&&(i=new B.A(a,i,r)))}return i}function Q(t,e){return t.dispatchAction||(0,l.oI)(e.dispatchAction,e)}function J(t){return"center"===t||"middle"===t}const tt=$;function et(t){(0,r.Y)(i.a),t.registerComponentModel(s),t.registerComponentView(tt),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},l.lQ),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},l.lQ)}},3496(t,e,n){n.d(e,{CO:()=>w,Qx:()=>p,Yu:()=>m,aw:()=>b,lb:()=>S});var i=n(8397),r=n(3499),o=n(9774),a=n(6212),s=n(2551),l="line-height:1";function u(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,o=t.fontWeight||"400",a=t.color||"#464646",s=t.fontSize||14,l=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+(0,r.Me)(i+"")+"px;color:"+(0,r.Me)(n)+";font-weight:"+(0,r.Me)(o+""),valueStyle:"font-size:"+(0,r.Me)(s+"")+"px;color:"+(0,r.Me)(a)+";font-weight:"+(0,r.Me)(l+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:s,fill:a,fontWeight:l}}}var c=[0,10,20,30],h=["","\n","\n\n","\n\n\n"];function p(t,e){return e.type=t,e}function d(t){return"section"===t.type}function f(t){return d(t)?v:y}function g(t){if(d(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return(0,o.__)(t.blocks,function(t){var n=g(t);n>=e&&(e=n+ +(i&&(!n||d(t)&&!t.noHeader)))}),e}return 0}function v(t,e,n,s){var p,d=e.noHeader,v=(p=g(e),{html:c[p],richText:h[p]}),y=[],m=e.blocks||[];(0,o.vA)(!m||(0,o.cy)(m)),m=m||[];var b=t.orderMode;if(e.sortBlocks&&b){m=m.slice();var w={valueAsc:"asc",valueDesc:"desc"};if((0,o.$3)(w,b)){var S=new a.Fl(w[b],null);m.sort(function(t,e){return S.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===b&&m.reverse()}(0,o.__)(m,function(n,i){var r=e.valueFormatter,a=f(n)(r?(0,o.X$)((0,o.X$)({},t),{valueFormatter:r}):t,n,i>0?v.html:0,s);null!=a&&y.push(a)});var I="richText"===t.renderMode?y.join(v.richText):_(y.join(""),d?n:v.html);if(d)return I;var M=(0,i.yC)(e.header,"ordinal",t.useUTC),T=u(s,t.renderMode).nameStyle;return"richText"===t.renderMode?x(t,M,T)+v.richText+I:_('<div style="'+T+";"+l+';">'+(0,r.Me)(M)+"</div>"+I,n)}function y(t,e,n,a){var s=t.renderMode,l=e.noName,c=e.noValue,h=!e.markerType,p=e.name,d=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return t=(0,o.cy)(t)?t:[t],(0,o.Tj)(t,function(t,e){return(0,i.yC)(t,(0,o.cy)(y)?y[e]:y,d)})};if(!l||!c){var g=h?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",s),v=l?"":(0,i.yC)(p,"ordinal",d),y=e.valueType,m=c?[]:f(e.value),b=!h||!l,w=!h&&l,S=u(a,s),I=S.nameStyle,M=S.valueStyle;return"richText"===s?(h?"":g)+(l?"":x(t,v,I))+(c?"":function(t,e,n,i,r){var a=[r],s=i?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle((0,o.cy)(e)?e.join(" "):e,a)}(t,m,b,w,M)):_((h?"":g)+(l?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+(0,r.Me)(t)+"</span>"}(v,!h,I))+(c?"":function(t,e,n,i){var a=n?"10px":"20px",s=e?"float:right;margin-left:"+a:"";return t=(0,o.cy)(t)?t:[t],'<span style="'+s+";"+i+'">'+(0,o.Tj)(t,function(t){return(0,r.Me)(t)}).join(" ")+"</span>"}(m,b,w,M)),n)}}function m(t,e,n,i,r,o){if(t)return f(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function _(t,e){return'<div style="'+("margin: "+e+"px 0 0")+";"+l+';">'+t+'<div style="clear:both"></div></div>'}function x(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function b(t,e){var n=t.getData().getItemVisual(e,"style")[t.visualDrawType];return(0,i.he)(n)}function w(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var S=function(){function t(){this.richTextStyles={},this._nextStyleNameId=(0,s.IH)()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,a=(0,i.qg)({color:e,type:t,renderMode:n,markerId:r});return(0,o.Kg)(a)?a:(this.richTextStyles[r]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};(0,o.cy)(e)?(0,o.__)(e,function(t){return(0,o.X$)(n,t)}):(0,o.X$)(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}()},7745(t,e,n){n.d(e,{A:()=>x});var i=n(9774),r=n(2551),o=n(6066),a=n(9269),s=n(1458),l=(0,a.$r)();function u(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=h(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=(0,s.ry)(t);return{labels:i.Tj(e,function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}(t)}function c(t,e){return"category"===t.type?function(t,e){var n,r,o=p(t,"ticks"),a=(0,s.j2)(e),l=d(o,a);if(l)return l;e.get("show")&&!t.scale.isBlank()||(n=[]);if(i.Tn(a))n=v(t,a,!0);else if("auto"===a){var u=h(t,t.getLabelModel());r=u.labelCategoryInterval,n=i.Tj(u.labels,function(t){return t.tickValue})}else n=g(t,r=a,!0);return f(o,a,{ticks:n,tickCategoryInterval:r})}(t,e):{ticks:i.Tj(t.scale.getTicks(),function(t){return t.value})}}function h(t,e){var n,r,o=p(t,"labels"),a=(0,s.j2)(e),u=d(o,a);return u||(i.Tn(a)?n=v(t,a):(r="auto"===a?function(t){var e=l(t).autoInterval;return null!=e?e:l(t).autoInterval=t.calculateCategoryInterval()}(t):a,n=g(t,r)),f(o,a,{labels:n,labelCategoryInterval:r}))}function p(t,e){return l(t)[e]||(l(t)[e]=[])}function d(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function f(t,e,n){return t.push({key:e,value:n}),n}function g(t,e,n){var i=(0,s.ry)(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),c=o[0],h=r.count();0!==c&&u>1&&h/u>2&&(c=Math.round(Math.ceil(c/u)*u));var p=(0,s.PJ)(t),d=a.get("showMinLabel")||p,f=a.get("showMaxLabel")||p;d&&c!==o[0]&&v(o[0]);for(var g=c;g<=o[1];g+=u)v(g);function v(t){var e={value:t};l.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return f&&g-u!==o[1]&&v(o[1]),l}function v(t,e,n){var r=t.scale,o=(0,s.ry)(t),a=[];return i.__(r.getTicks(),function(t){var i=r.getLabel(t),s=t.value;e(t.value,i)&&a.push(n?s:{formattedLabel:o(t),rawLabel:i,tickValue:s})}),a}var y=[0,1],m=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]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return(0,r.hb)(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,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&_(n=n.slice(),i.count()),(0,r.Cb)(t,y,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&_(n=n.slice(),i.count());var o=(0,r.Cb)(t,n,y,e);return this.scale.scale(o)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=c(this,e).ticks,o=(0,i.Tj)(n,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,o){var a=e.length;if(!t.onBand||n||!a)return;var s,l,u=t.getExtent();if(1===a)e[0].coord=u[0],s=e[1]={coord:u[1]};else{var c=e[a-1].tickValue-e[0].tickValue,h=(e[a-1].coord-e[0].coord)/c;(0,i.__)(e,function(t){t.coord-=h/2}),l=1+t.scale.getExtent()[1]-e[a-1].tickValue,s={coord:e[a-1].coord+h*l},e.push(s)}var p=u[0]>u[1];d(e[0].coord,u[0])&&(o?e[0].coord=u[0]:e.shift());o&&d(u[0],e[0].coord)&&e.unshift({coord:u[0]});d(u[1],s.coord)&&(o?s.coord=u[1]:e.pop());o&&d(s.coord,u[1])&&e.push({coord:u[1]});function d(t,e){return t=(0,r.LI)(t),e=(0,r.LI)(e),p?t>e:t<e}}(this,o,e.get("alignWithLabel"),t.clamp),o},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t>0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return(0,i.Tj)(e,function(t){return(0,i.Tj)(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(){return u(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 i=Math.abs(t[1]-t[0]);return Math.abs(i)/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=(0,s.ry)(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,a=r.getExtent(),u=r.count();if(a[1]-a[0]<1)return 0;var c=1;u>40&&(c=Math.max(1,Math.floor(u/40)));for(var h=a[0],p=t.dataToCoord(h+1)-t.dataToCoord(h),d=Math.abs(p*Math.cos(i)),f=Math.abs(p*Math.sin(i)),g=0,v=0;h<=a[1];h+=c){var y,m,_=o.NO(n({value:h}),e.font,"center","top");y=1.3*_.width,m=1.3*_.height,g=Math.max(g,y,7),v=Math.max(v,m,7)}var x=g/d,b=v/f;isNaN(x)&&(x=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(x,b))),S=l(t.model),I=t.getExtent(),M=S.lastAutoInterval,T=S.lastTickCount;return null!=M&&null!=T&&Math.abs(M-w)<=1&&Math.abs(T-u)<=1&&M>w&&S.axisExtent0===I[0]&&S.axisExtent1===I[1]?w=M:(S.lastTickCount=u,S.lastAutoInterval=w,S.axisExtent0=I[0],S.axisExtent1=I[1]),w}(this)},t}();function _(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}const x=m},1845(t,e,n){n.d(e,{m:()=>l});var i=n(2551),r=n(413),o=n(1458),a=n(7764),s=Math.log;function l(t,e,n){var l=r.A.prototype,u=l.getTicks.call(n),c=l.getTicks.call(n,!0),h=u.length-1,p=l.getInterval.call(n),d=(0,o.Rx)(t,e),f=d.extent,g=d.fixMin,v=d.fixMax;if("log"===t.type){var y=s(t.base);f=[s(f[0])/y,s(f[1])/y]}t.setExtent(f[0],f[1]),t.calcNiceExtent({splitNumber:h,fixMin:g,fixMax:v});var m=l.getExtent.call(t);g&&(f[0]=m[0]),v&&(f[1]=m[1]);var _=l.getInterval.call(t),x=f[0],b=f[1];if(g&&v)_=(b-x)/h;else if(g)for(b=f[0]+_*h;b<f[1]&&isFinite(b)&&isFinite(f[1]);)_=(0,a.kH)(_),b=f[0]+_*h;else if(v)for(x=f[1]-_*h;x>f[0]&&isFinite(x)&&isFinite(f[0]);)_=(0,a.kH)(_),x=f[1]-_*h;else{t.getTicks().length-1>h&&(_=(0,a.kH)(_));var w=_*h;b=Math.ceil(f[1]/_)*_,(x=(0,i.LI)(b-w))<0&&f[0]>=0?(x=0,b=(0,i.LI)(w)):b>0&&f[1]<=0&&(b=0,x=-(0,i.LI)(w))}var S=(u[0].value-c[0].value)/p,I=(u[h].value-c[h].value)/p;l.setExtent.call(t,x+_*S,b+_*I),l.setInterval.call(t,_),(S||I)&&l.setNiceExtent.call(t,x+_,b-_)}},5107(t,e,n){n.d(e,{A:()=>s});var i=n(9774),r={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)"]}}},o=i.h1({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},r),a=i.h1({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}}},r);const s={category:o,value:a,time:i.h1({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},a),log:i.NT({logBase:10},a)}},1458(t,e,n){n.d(e,{f$:()=>V,Og:()=>G,Dt:()=>W,wq:()=>j,j2:()=>U,Rx:()=>z,JJ:()=>F,ry:()=>H,af:()=>B,PJ:()=>Y,PN:()=>Z});var i=n(9774),r=n(5482),o=n(7776),a=n(5064),s=n(7764),l=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new a.A({})),(0,i.cy)(r)&&(r=new a.A({categories:(0,i.Tj)(r,function(t){return(0,i.Gv)(t)?t.value:t})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return(0,r.C6)(e,t),e.prototype.parse=function(t){return null==t?NaN:(0,i.Kg)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),s.lP(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),s.S8(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(s.hs(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=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}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}(o.A);o.A.registerClass(l);const u=l;var c=n(413),h=n(6343),p=n(7544),d=n(2551),f=n(1867),g=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return(0,r.C6)(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return(0,f.GP)(t.value,f.Lm[(0,f.$9)((0,f.ym)(this._minLevelUnit))]||f.Lm.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return(0,f.X_)(t,e,n,r,i)},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"),o=function(t,e,n,r){var o=1e4,a=f.F7,s=0;function l(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 u(t,i,o){var a=[],s=!i.length;if(!function(t,e,n,i){var r=d._U(e),o=d._U(n),a=function(t){return(0,f.g0)(r,t,i)===(0,f.g0)(o,t,i)},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")},g=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 g()}}((0,f.ym)(t),r[0],r[1],n)){s&&(i=[{value:w(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,g=void 0,v=void 0,S=!1;switch(t){case"year":p=Math.max(1,Math.round(e/f.CZ/365)),g=(0,f.hY)(n),v=(0,f.tM)(n);break;case"half-year":case"quarter":case"month":p=m(e),g=(0,f.jJ)(n),v=(0,f.xu)(n);break;case"week":case"half-week":case"day":p=y(e,31),g=(0,f.bP)(n),v=(0,f.ti)(n),S=!0;break;case"half-day":case"quarter-day":case"hour":p=_(e),g=(0,f.iC)(n),v=(0,f.Yd)(n);break;case"minute":p=x(e,!0),g=(0,f.yB)(n),v=(0,f.KF)(n);break;case"second":p=x(e,!1),g=(0,f.Wf)(n),v=(0,f.ww)(n);break;case"millisecond":p=b(e),g=(0,f.Zz)(n),v=(0,f.FP)(n)}l(p,c,h,g,v,S,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 c=[],h=[],p=0,g=0,v=0;v<a.length&&s++<o;++v){var S=(0,f.ym)(a[v]);if((0,f.ce)(a[v]))if(u(a[v],c[c.length-1]||[],h),S!==(a[v+1]?(0,f.ym)(a[v+1]):null)){if(h.length){g=p,h.sort(function(t,e){return t.value-e.value});for(var I=[],M=0;M<h.length;++M){var T=h[M].value;0!==M&&h[M-1].value===T||(I.push(h[M]),T>=r[0]&&T<=r[1]&&p++)}var C=(r[1]-r[0])/e;if(p>1.5*C&&g>C/1.5)break;if(c.push(I),p>C||t===a[v])break}h=[]}}0;var A=(0,i.pb)((0,i.Tj)(c,function(t){return(0,i.pb)(t,function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd})}),function(t){return t.length>0}),D=[],k=A.length-1;for(v=0;v<A.length;++v)for(var P=A[v],L=0;L<P.length;++L)D.push({value:P[L].value,level:k-v});D.sort(function(t,e){return t.value-e.value});var O=[];for(v=0;v<D.length;++v)0!==v&&D[v].value===D[v-1].value||O.push(D[v]);return O}(this._minLevelUnit,this._approxInterval,r,e);return(n=n.concat(o)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=f.CZ,e[1]+=f.CZ),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]-f.CZ}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/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,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}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(0,i.Et)(t)?t:+d._U(t)},e.prototype.contain=function(t){return s.lP(this.parse(t),this._extent)},e.prototype.normalize=function(t){return s.S8(this.parse(t),this._extent)},e.prototype.scale=function(t){return s.hs(t,this._extent)},e.type="time",e}(c.A),v=[["second",f.OY],["minute",f.iW],["hour",f.MA],["quarter-day",6*f.MA],["half-day",12*f.MA],["day",1.2*f.CZ],["half-week",3.5*f.CZ],["week",7*f.CZ],["month",31*f.CZ],["quarter",95*f.CZ],["half-year",f.$H/2],["year",f.$H]];function y(t,e){return(t/=f.CZ)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function m(t){return(t/=30*f.CZ)>6?6:t>3?3:t>2?2:1}function _(t){return(t/=f.MA)>12?12:t>6?6:t>3.5?4:t>2?2:1}function x(t,e){return(t/=e?f.iW:f.OY)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function b(t){return d.Cm(t,!0)}function w(t,e,n){var i=new Date(t);switch((0,f.ym)(e)){case"year":case"month":i[(0,f.xu)(n)](0);case"day":i[(0,f.ti)(n)](1);case"hour":i[(0,f.Yd)(n)](0);case"minute":i[(0,f.KF)(n)](0);case"second":i[(0,f.ww)(n)](0),i[(0,f.FP)(n)](0)}return i.getTime()}o.A.registerClass(g);const S=g;var I=o.A.prototype,M=c.A.prototype,T=d.LI,C=Math.floor,A=Math.ceil,D=Math.pow,k=Math.log,P=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new c.A,e._interval=0,e}return(0,r.C6)(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),o=M.getTicks.call(this,t);return i.Tj(o,function(t){var e=t.value,i=d.LI(D(this.base,e));return i=e===n[0]&&this._fixMin?O(i,r[0]):i,{value:i=e===n[1]&&this._fixMax?O(i,r[1]):i}},this)},e.prototype.setExtent=function(t,e){var n=k(this.base);t=k(Math.max(0,t))/n,e=k(Math.max(0,e))/n,M.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=I.getExtent.call(this);e[0]=D(t,e[0]),e[1]=D(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=O(e[0],n[0])),this._fixMax&&(e[1]=O(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=k(t[0])/k(e),t[1]=k(t[1])/k(e),I.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 i=d.au(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[d.LI(A(e[0]/i)*i),d.LI(C(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},e.prototype.calcNiceExtent=function(t){M.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 t=k(t)/k(this.base),s.lP(t,this._extent)},e.prototype.normalize=function(t){return t=k(t)/k(this.base),s.S8(t,this._extent)},e.prototype.scale=function(t){return t=s.hs(t,this._extent),D(this.base,t)},e.type="log",e}(o.A),L=P.prototype;function O(t,e){return T(t,d.XV(e))}L.getMinorTicks=M.getMinorTicks,L.getLabel=M.getLabel,o.A.registerClass(P);const E=P;var R=n(3441),N=n(5153);function z(t,e){var n=t.type,r=(0,N.Tc)(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var o=r.min,a=r.max,s=e.ecModel;if(s&&"time"===n){var l=(0,h.GL)("bar",s),u=!1;if(i.__(l,function(t){u=u||t.getBaseAxis()===e.axis}),u){var c=(0,h.vq)(l),p=function(t,e,n,r){var o=n.axis.getExtent(),a=o[1]-o[0],s=(0,h.VA)(r,n.axis);if(void 0===s)return{min:t,max:e};var l=1/0;i.__(s,function(t){l=Math.min(t.offset,l)});var u=-1/0;i.__(s,function(t){u=Math.max(t.offset+t.width,u)}),l=Math.abs(l),u=Math.abs(u);var c=l+u,p=e-t,d=p/(1-(l+u)/a)-p;return e+=d*(u/c),t-=d*(l/c),{min:t,max:e}}(o,a,e,c);o=p.min,a=p.max}}return{extent:[o,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function B(t,e){var n=e,i=z(t,n),r=i.extent,o=n.get("splitNumber");t instanceof E&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function V(t,e){if(e=e||t.get("type"))switch(e){case"category":return new u({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new S({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(o.A.getClass(e)||c.A)}}function F(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function H(t){var e,n,r=t.getLabelModel().get("formatter"),o="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=r,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):i.Kg(r)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(r):i.Tn(r)?(e=r,function(n,i){return null!=o&&(i=n.value-o),e(W(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function W(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function G(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();r=n instanceof u?n.count():(i=n.getTicks()).length;var a,s=t.getLabelModel(),l=H(t),c=1;r>40&&(c=Math.ceil(r/40));for(var h=0;h<r;h+=c){var p=l(i?i[h]:{value:o[0]+h},h),d=X(s.getTextRect(p),s.get("rotate")||0);a?a.union(d):a=d}return a}}function X(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new p.A(t.x,t.y,o,a)}function U(t){var e=t.get("interval");return e??"auto"}function Y(t){return"category"===t.type&&0===U(t.getLabelModel())}function j(t,e){var n={};return i.__(t.mapDimensionsAll(e),function(e){n[(0,R.me)(t,e)]=!0}),i.HP(n)}function Z(t,e,n){e&&i.__(j(e,n),function(n){var i=e.getApproximateExtent(n);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])})}},4457(t,e,n){n.d(e,{L:()=>i});var i=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}()},8531(t,e,n){n.d(e,{LR:()=>s,Zp:()=>o,gO:()=>a});var i=n(9774),r=n(9269);function o(t,e,n){n=n||{};var r=t.coordinateSystem,o=e.axis,a={},s=o.getAxesOnZeroOf()[0],l=o.position,u=s?"onZero":l,c=o.dim,h=r.getRect(),p=[h.x,h.x+h.width,h.y,h.y+h.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,g="x"===c?[p[2]-f,p[3]+f]:[p[0]-f,p[1]+f];if(s){var v=s.toGlobalCoord(s.dataToCoord(0));g[d.onZero]=Math.max(Math.min(v,g[1]),g[0])}a.position=["y"===c?g[d[u]]:p[0],"x"===c?g[d[u]]:p[3]],a.rotation=Math.PI/2*("x"===c?0:1);a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[l],a.labelOffset=s?g[d[l]]-g[d.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),i.Je(n.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=e.get(["axisLabel","rotate"]);return a.labelRotate="top"===u?-y:y,a.z2=1,a}function a(t){return"cartesian2d"===t.get("coordinateSystem")}function s(t){var e={xAxisModel:null,yAxisModel:null};return i.__(e,function(n,i){var o=i.replace(/Model$/,""),a=t.getReferringComponents(o,r.US).models[0];e[i]=a}),e}},5153(t,e,n){n.d(e,{Tc:()=>l});var i=n(9774),r=n(6066),o=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 o=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=this._modelMinRaw=e.get("min",!0);(0,i.Tn)(a)?this._modelMinNum=u(t,a({min:n[0],max:n[1]})):"dataMin"!==a&&(this._modelMinNum=u(t,a));var s=this._modelMaxRaw=e.get("max",!0);if((0,i.Tn)(s)?this._modelMaxNum=u(t,s({min:n[0],max:n[1]})):"dataMax"!==s&&(this._modelMaxNum=u(t,s)),o)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),c=(0,i.cy)(l)?l:[l||0,l||0];"boolean"==typeof c[0]||"boolean"==typeof c[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[(0,r.lo)(c[0],1),(0,r.lo)(c[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,o=this._boundaryGapInner,a=t?null:n-e||Math.abs(e),s="dataMin"===this._modelMinRaw?e:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=s,c=null!=l;null==s&&(s=t?r?0:NaN:e-o[0]*a),null==l&&(l=t?r?r-1:NaN:n+o[1]*a),(null==s||!isFinite(s))&&(s=NaN),(null==l||!isFinite(l))&&(l=NaN);var h=(0,i.Yp)(s)||(0,i.Yp)(l)||t&&!r;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var p=this._determinedMin,d=this._determinedMax;return null!=p&&(s=p,u=!0),null!=d&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[s[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[a[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),a={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};function l(t,e,n){var i=t.rawExtentInfo;return i||(i=new o(t,e,n),t.rawExtentInfo=i,i)}function u(t,e){return null==e?null:(0,i.Yp)(e)?NaN:t.parse(e)}},5776(t,e,n){n.d(e,{A:()=>o});var i=n(9774),r={};const o=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];i.__(r,function(i,r){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},t.prototype.update=function(t,e){i.__(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){r[t]=e},t.get=function(t){return r[t]},t}()},7264(t,e,n){n.d(e,{FQ:()=>me,Ts:()=>un,OH:()=>yn,pX:()=>mn,Oh:()=>_n,Ej:()=>Sn,mz:()=>In,cf:()=>fn,tb:()=>gn,lP:()=>pn,qg:()=>dn,iY:()=>Mn,xV:()=>vn,AF:()=>xn});var i=n(5482),r=n(2023),o=n(9774),a=n(8311),s=n(5874),l=n(1969),u=n(9269),c=n(846),h=n(4386),p="";"undefined"!=typeof navigator&&(p=navigator.platform||"");var d="rgba(0, 0, 0, 0.2)";const f={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:d,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:d,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:d,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:d,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:d,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:d,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:p.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};var g=n(520),v=(0,o.nt)();var y,m,_,x=n(7192),b="\0_ec_inner";var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new c.A(i),this._locale=new c.A(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=M(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,M(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):_(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=i.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,e))}if(!t||"recreate"===t||"media"===t){var s=i.getMediaOption(this);s.length&&(0,o.__)(s,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,i=this._componentsMap,r=this._componentsCount,a=[],s=(0,o.nt)(),l=e&&e.replaceMergeMainTypeMap;(0,g.ps)(this),(0,o.__)(t,function(t,e){null!=t&&(h.A.hasClass(e)?e&&(a.push(e),s.set(e,!0)):n[e]=null==n[e]?(0,o.o8)(t):(0,o.h1)(n[e],t,!0))}),l&&l.each(function(t,e){h.A.hasClass(e)&&!s.get(e)&&(a.push(e),s.set(e,!0))}),h.A.topologicalTravel(a,h.A.getAllClassMainTypes(),function(e){var a=function(t,e,n){var i=v.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,u.qB(t[e])),s=i.get(e),c=s?l&&l.get(e)?"replaceMerge":"normalMerge":"replaceAll",p=u.O2(s,a,c);u.GX(p,e,h.A),n[e]=null,i.set(e,null),r.set(e,0);var d,f=[],g=[],m=0;(0,o.__)(p,function(t,n){var i=t.existing,r=t.newOption;if(r){var a="series"===e,s=h.A.getClass(e,t.keyInfo.subType,!a);if(!s)return;if("tooltip"===e){if(d)return void 0;d=!0}if(i&&i.constructor===s)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var l=(0,o.X$)({componentIndex:n},t.keyInfo);i=new s(r,this,this,l),(0,o.X$)(i,l),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(f.push(i.option),g.push(i),m++):(f.push(void 0),g.push(void 0))},this),n[e]=f,i.set(e,g),r.set(e,m),"series"===e&&y(this)},this),this._seriesIndices||y(this)},e.prototype.getOption=function(){var t=(0,o.o8)(this.option);return(0,o.__)(t,function(e,n){if(h.A.hasClass(n)){for(var i=u.qB(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!u.oh(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[b],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 i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,a=t.name,s=this._componentsMap.get(e);return s&&s.length?(null!=i?(n=[],(0,o.__)(u.qB(i),function(t){s[t]&&n.push(s[t])})):n=null!=r?S("id",r,s):null!=a?S("name",a,s):(0,o.pb)(s,function(t){return!!t}),I(n,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,a,s=t.query,l=t.mainType,u=(n=l+"Index",i=l+"Id",r=l+"Name",!(e=s)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:l,index:e[n],id:e[i],name:e[r]}),c=u?this.queryComponents(u):(0,o.pb)(this._componentsMap.get(l),function(t){return!!t});return a=I(c,t),t.filter?(0,o.pb)(a,t.filter):a},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if((0,o.Tn)(t)){var r=e,a=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&a.call(r,e,i,i.componentIndex)}})}else for(var s=(0,o.Kg)(t)?i.get(t):(0,o.Gv)(t)?this.findComponents(t):null,l=0;s&&l<s.length;l++){var u=s[l];u&&e.call(n,u,u.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=u.vS(t,null);return(0,o.pb)(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(0,o.pb)(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return(0,o.pb)(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){m(this),(0,o.__)(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},e.prototype.eachRawSeries=function(t,e){(0,o.__)(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,n){m(this),(0,o.__)(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},e.prototype.eachRawSeriesByType=function(t,e,n){return(0,o.__)(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return m(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){m(this);var n=[];(0,o.__)(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=(0,o.nt)(n)},e.prototype.restoreData=function(t){y(this);var e=this._componentsMap,n=[];e.each(function(t,e){h.A.hasClass(e)&&n.push(e)}),h.A.topologicalTravel(n,h.A.getAllClassMainTypes(),function(n){(0,o.__)(e.get(n),function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t)||e.restoreData()})})},e.internalField=(y=function(t){var e=t._seriesIndices=[];(0,o.__)(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=(0,o.nt)(e)},m=function(t){},void(_=function(t,e){t.option={},t.option[b]=1,t._componentsMap=(0,o.nt)({series:[]}),t._componentsCount=(0,o.nt)();var n=e.aria;(0,o.Gv)(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;(0,o.__)(e,function(e,i){"colorLayer"===i&&n||h.A.hasClass(i)||("object"==typeof e?t[i]=t[i]?(0,o.h1)(t[i],e,!1):(0,o.o8)(e):null==t[i]&&(t[i]=e))})}(e,t._theme.option),(0,o.h1)(e,f,!1),t._mergeOption(e,null)})),e}(c.A);function S(t,e,n){if((0,o.cy)(e)){var i=(0,o.nt)();return(0,o.__)(e,function(t){null!=t&&(null!=u.vS(t,null)&&i.set(t,!0))}),(0,o.pb)(n,function(e){return e&&i.get(e[t])})}var r=u.vS(e,null);return(0,o.pb)(n,function(e){return e&&null!=r&&e[t]===r})}function I(t,e){return e.hasOwnProperty("subType")?(0,o.pb)(t,function(t){return t&&t.subType===e.subType}):t}function M(t){var e=(0,o.nt)();return t&&(0,o.__)(u.qB(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}(0,o.co)(w,x.X);const T=w;var C=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const A=function(t){o.__(C,function(e){this[e]=o.oI(t[e],t)},this)};var D=n(5776),k=/^(min|max)?(.+)$/,P=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&((0,o.__)((0,u.qB)(t.series),function(t){t&&t.data&&(0,o.iu)(t.data)&&(0,o.En)(t.data)}),(0,o.__)((0,u.qB)(t.dataset),function(t){t&&t.source&&(0,o.iu)(t.source)&&(0,o.En)(t.source)})),t=(0,o.o8)(t);var i=this._optionBackup,r=function(t,e,n){var i,r,a=[],s=t.baseOption,l=t.timeline,u=t.options,c=t.media,h=!!t.media,p=!!(u||l||s&&s.timeline);s?(r=s).timeline||(r.timeline=l):((p||h)&&(t.options=t.media=null),r=t);h&&(0,o.cy)(c)&&(0,o.__)(c,function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))});function d(t){(0,o.__)(e,function(e){e(t,n)})}return d(r),(0,o.__)(u,function(t){return d(t)}),(0,o.__)(a,function(t){return d(t.option)}),{baseOption:r,timelineOptions:u||[],mediaDefault:i,mediaList:a}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],(0,o.o8)(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=(0,o.o8)(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,s=this._mediaDefault,l=[],u=[];if(!a.length&&!s)return u;for(var c=0,h=a.length;c<h;c++)L(a[c].query,i,r)&&l.push(c);return!l.length&&s&&(l=[-1]),l.length&&(e=l,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(u=(0,o.Tj)(l,function(t){return(0,o.o8)(-1===t?s.option:a[t].option)})),this._currentMediaIndices=l,u},t}();function L(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return(0,o.__)(t,function(t,e){var n=e.match(k);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})(i[a],t,o)||(r=!1)}}),r}const O=P;var E=o.__,R=o.Gv,N=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function z(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=N.length;n<i;n++){var r=N[n],a=e.normal,s=e.emphasis;a&&a[r]&&(t[r]=t[r]||{},t[r].normal?o.h1(t[r].normal,a[r]):t[r].normal=a[r],a[r]=null),s&&s[r]&&(t[r]=t[r]||{},t[r].emphasis?o.h1(t[r].emphasis,s[r]):t[r].emphasis=s[r],s[r]=null)}}function B(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,o.NT(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function V(t){B(t,"itemStyle"),B(t,"lineStyle"),B(t,"areaStyle"),B(t,"label"),B(t,"labelLine"),B(t,"upperLabel"),B(t,"edgeLabel")}function F(t,e){var n=R(t)&&t[e],i=R(n)&&n.textStyle;if(i){0;for(var r=0,o=u.JS.length;r<o;r++){var a=u.JS[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function H(t){t&&(V(t),F(t,"label"),t.emphasis&&F(t.emphasis,"label"))}function W(t){return o.cy(t)?t:t?[t]:[]}function G(t){return(o.cy(t)?t[0]:t)||{}}function X(t,e){E(W(t.series),function(t){R(t)&&function(t){if(R(t)){z(t),V(t),F(t,"label"),F(t,"upperLabel"),F(t,"edgeLabel"),t.emphasis&&(F(t.emphasis,"label"),F(t.emphasis,"upperLabel"),F(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(z(e),H(e));var n=t.markLine;n&&(z(n),H(n));var i=t.markArea;i&&H(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var a=t.links||t.edges;if(a&&!o.iu(a))for(var s=0;s<a.length;s++)H(a[s]);o.__(t.categories,function(t){V(t)})}if(r&&!o.iu(r))for(s=0;s<r.length;s++)H(r[s]);if((e=t.markPoint)&&e.data){var l=e.data;for(s=0;s<l.length;s++)H(l[s])}if((n=t.markLine)&&n.data){var u=n.data;for(s=0;s<u.length;s++)o.cy(u[s])?(H(u[s][0]),H(u[s][1])):H(u[s])}"gauge"===t.type?(F(t,"axisLabel"),F(t,"title"),F(t,"detail")):"treemap"===t.type?(B(t.breadcrumb,"itemStyle"),o.__(t.levels,function(t){V(t)})):"tree"===t.type&&V(t.leaves)}}(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),E(n,function(e){E(W(t[e]),function(t){t&&(F(t,"axisLabel"),F(t.axisPointer,"label"))})}),E(W(t.parallel),function(t){var e=t&&t.parallelAxisDefault;F(e,"axisLabel"),F(e&&e.axisPointer,"label")}),E(W(t.calendar),function(t){B(t,"itemStyle"),F(t,"dayLabel"),F(t,"monthLabel"),F(t,"yearLabel")}),E(W(t.radar),function(t){F(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)}),E(W(t.geo),function(t){R(t)&&(H(t),E(W(t.regions),function(t){H(t)}))}),E(W(t.timeline),function(t){H(t),B(t,"label"),B(t,"itemStyle"),B(t,"controlStyle",!0);var e=t.data;o.cy(e)&&o.__(e,function(t){o.Gv(t)&&(B(t,"label"),B(t,"itemStyle"))})}),E(W(t.toolbox),function(t){B(t,"iconStyle"),E(t.feature,function(t){B(t,"iconStyle")})}),F(G(t.axisPointer),"label"),F(G(t.tooltip).axisPointer,"label")}function U(t){t&&(0,o.__)(Y,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var Y=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],j=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Z=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function q(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Z.length;n++){var i=Z[n][1],r=Z[n][0];null!=e[i]&&(e[r]=e[i])}}function $(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function K(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Q(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Q(t[n].children,e)}function J(t,e){X(t,e),t.series=(0,u.qB)(t.series),(0,o.__)(t.series,function(t){if((0,o.Gv)(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),$(t.label),(r=t.data)&&!(0,o.iu)(r))for(var n=0;n<r.length;n++)$(r[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");null!=i&&function(t,e,n,i){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[r=o[s]]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}(t,"itemStyle.color",i)}else if("bar"===e){var r;if(q(t),q(t.backgroundStyle),q(t.emphasis),(r=t.data)&&!(0,o.iu)(r))for(n=0;n<r.length;n++)"object"==typeof r[n]&&(q(r[n]),q(r[n]&&r[n].emphasis))}else if("sunburst"===e){var a=t.highlightPolicy;a&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),K(t),Q(t.data,K)}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&&(0,o.NT)(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),U(t)}}),t.dataRange&&(t.visualMap=t.dataRange),(0,o.__)(j,function(e){var n=t[e];n&&((0,o.cy)(n)||(n=[n]),(0,o.__)(n,function(t){U(t)}))})}var tt=n(2551);function et(t){(0,o.__)(t,function(e,n){var i=[],r=[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,d=a.get(e.stackedDimension,c);if(isNaN(d))return r;s?p=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var v=t[g];if(s||(p=v.data.rawIndexOf(v.stackedByDimension,h)),p>=0){var y=v.data.getByRawIndex(v.stackResultDimension,p);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&d>=0&&y>0||"samesign"===l&&d<=0&&y<0){d=(0,tt.Tr)(d,y),f=y;break}}}return i[0]=d,i[1]=f,i})})}var nt=n(3059),it=n(8686),rt=n(9669),ot=n(6078),at=n(6440),st=n(4159),lt=n(2834),ut=n(6295),ct=n(4156),ht=n(6070),pt=n(7029),dt=n(8283),ft=n(3944),gt=(0,u.$r)(),vt={itemStyle:(0,pt.A)(dt.L,!0),lineStyle:(0,pt.A)(ft.m,!0)},yt={lineStyle:"stroke",itemStyle:"fill"};function mt(t,e){var n=t.visualStyleMapper||vt[e];return n||vt.itemStyle}function _t(t,e){var n=t.visualDrawType||yt[e];return n||"fill"}var xt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),a=mt(t,i)(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=_t(t,i),u=a[l],c=(0,o.Tn)(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=p,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||(0,o.Tn)(a.fill)?p:a.fill,a.stroke="auto"===a.stroke||(0,o.Tn)(a.stroke)?p:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=(0,o.X$)({},a);r[l]=c(i),e.setItemVisual(n,"style",r)}}}},bt=new c.A,wt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=mt(t,i),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){bt.option=n[i];var s=r(bt),l=t.ensureUniqueItemVisual(e,"style");(0,o.X$)(l,s),bt.option.decal&&(t.setItemVisual(e,"decal",bt.option.decal),bt.option.decal.dirty=!0),a in s&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},St={performRawSeries:!0,overallReset:function(t){var e=(0,o.nt)();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),gt(t).scope=r}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=gt(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=_t(e,a);r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}})}})}},It=n(7786),Mt=n(2070),Tt=n(9987),Ct=Math.PI;var At=n(6898),Dt=n(2359),kt=function(){function t(t,e,n,i){this._stageTaskMap=(0,o.nt)(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}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),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):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),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=(0,o.nt)();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;(0,o.__)(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});(0,o.vA)(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},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,i){i=i||{};var r=!1,a=this;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}(0,o.__)(t,function(t,o){if(!i.visualType||i.visualType===t.visualType){var l=a._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,p=c.agentStubMap;p.each(function(t){s(i,t)&&(t.dirty(),h=!0)}),h&&c.dirty(),a.updatePayload(c,n);var d=a.getPerformArgs(c,i.block);p.each(function(t){t.perform(d)}),c.perform(d)&&(r=!0)}else u&&u.each(function(o,l){s(i,o)&&o.dirty();var u=a.getPerformArgs(o,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(o.context.model),a.updatePayload(o,n),o.perform(u)&&(r=!0)})}}),this.unfinished=r||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,i){var r=this,a=e.seriesTaskMap,s=e.seriesTaskMap=(0,o.nt)(),l=t.seriesType,u=t.getTargetSeries;function c(e){var o=e.uid,l=s.set(o,a&&a.get(o)||(0,At.U)({plan:Rt,reset:Nt,count:Vt}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,a=e.overallTask=e.overallTask||(0,At.U)({reset:Pt});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var s=a.agentStubMap,l=a.agentStubMap=(0,o.nt)(),u=t.seriesType,c=t.getTargetSeries,h=!0,p=!1;function d(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(p=!0,(0,At.U)({reset:Lt,onDirty:Et})));n.context={model:t,overallProgress:h},n.agent=a,n.__block=h,r._pipe(t,n)}(0,o.vA)(!t.createOnAllSeries,""),u?n.eachRawSeriesByType(u,d):c?c(n,i).each(d):(h=!1,(0,o.__)(n.getSeries(),d)),p&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return(0,o.Tn)(t)&&(t={overallReset:t,seriesType:Ft(t)}),t.uid=(0,Dt.$Q)("stageHandler"),e&&(t.visualType=e),t},t}();function Pt(t){t.overallReset(t.ecModel,t.api,t.payload)}function Lt(t){return t.overallProgress&&Ot}function Ot(){this.agent.dirty(),this.getDownstream().dirty()}function Et(){this.agent&&this.agent.dirty()}function Rt(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Nt(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=(0,u.qB)(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?(0,o.Tj)(e,function(t,e){return Bt(e)}):zt}var zt=Bt(0);function Bt(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function Vt(t){return t.data.count()}function Ft(t){Ht=null;try{t(Wt,Gt)}catch(t){}return Ht}var Ht,Wt={},Gt={};function Xt(t,e){for(var n in e.prototype)t[n]=o.lQ}Xt(Wt,T),Xt(Gt,A),Wt.eachSeriesByType=Wt.eachRawSeriesByType=function(t){Ht=t},Wt.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Ht=t.subType)};const Ut=kt;var Yt=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const jt={color:Yt,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Yt]};var Zt="#B9B8CE",qt="#100C2A",$t=function(){return{axisLine:{lineStyle:{color:Zt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Kt=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Qt={darkMode:!0,color:Kt,backgroundColor:qt,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Zt}},textStyle:{color:Zt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Zt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Zt},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:Zt}},timeline:{lineStyle:{color:Zt},label:{color:Zt},controlStyle:{color:Zt,borderColor:Zt}},calendar:{itemStyle:{color:qt},dayLabel:{color:Zt},monthLabel:{color:Zt},yearLabel:{color:Zt}},timeAxis:$t(),logAxis:$t(),valueAxis:$t(),categoryAxis:$t(),line:{symbol:"circle"},graph:{color:Kt},gauge:{title:{color:Zt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Zt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Qt.categoryAxis.splitLine.show=!1;const Jt=Qt;var te=n(7362),ee=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(o.Kg(t)){var r=(0,te.CC)(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};o.__(t,function(t,r){for(var o=!1,l=0;l<a.length;l++){var u=a[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,o=!0)}}s.hasOwnProperty(r)&&(n[r]=t,o=!0),o||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=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,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),ne=["symbol","symbolSize","symbolRotate","symbolOffset"],ie=ne.concat(["symbolKeepAspect"]),re={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},a=!1,s=0;s<ne.length;s++){var l=ne[s],u=t.get(l);(0,o.Tn)(u)?(a=!0,r[l]=u):i[l]=u}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual((0,o.X$)({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var c=(0,o.HP)(r);return{dataEach:a?function(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<c.length;a++){var s=c[a];e.setItemVisual(n,s,r[s](i,o))}}:null}}}}},oe={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),i=0;i<ie.length;i++){var r=ie[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}},ae=n(1790),se=n(2594),le=n(761),ue=n(53),ce=n(9186),he=n(4772),pe=n(2602);const de=new l.A;var fe=n(145),ge=n(3813),ve=2e3,ye=4500,me={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:ve,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:ye,ARIA:6e3,DECAL:7e3}},_e="__flagInMainProcess",xe="__pendingUpdate",be="__needsUpdateStatus",we=/^[a-zA-Z0-9_]+$/,Se="__connectUpdateStatus";function Ie(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return Te(this,t,e);$e(this.id)}}function Me(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Te(this,t,e)}}function Te(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),l.A.prototype[e].apply(t,n)}var Ce,Ae,De,ke,Pe,Le,Oe,Ee,Re,Ne,ze,Be,Ve,Fe,He,We,Ge,Xe,Ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e}(l.A),Ye=Ue.prototype;Ye.on=Me("on"),Ye.off=Me("off");var je=function(t){function e(e,n,i){var a=t.call(this,new ee)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},(0,o.Kg)(n)&&(n=nn[n]),a._dom=e;var l=a._zr=r.Ts(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:(0,o.bZ)(i.useDirtyRect,!1),useCoarsePointer:(0,o.bZ)(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=(0,ht.nF)((0,o.oI)(l.flush,l),17),(n=(0,o.o8)(n))&&J(n,!0),a._theme=n,a._locale=(0,ce.A$)(i.locale||ce.Lv),a._coordSysMgr=new D.A;var u=a._api=He(a);function c(t,e){return t.__prio-e.__prio}return(0,s.A)(en,c),(0,s.A)(Je,c),a._scheduler=new Ut(a,u,Je,en),a._messageCenter=new Ue,a._initEvents(),a.resize=(0,o.oI)(a.resize,a),l.animation.on("frame",a._onframe,a),Ne(l,a),ze(l,a),(0,o.En)(a),a}return(0,i.C6)(e,t),e.prototype._onframe=function(){if(!this._disposed){Xe(this);var t=this._scheduler;if(this[xe]){var e=this[xe].silent;this[_e]=!0;try{Ce(this),ke.update.call(this,null,this[xe].updateParams)}catch(t){throw this[_e]=!1,this[xe]=null,t}this._zr.flush(),this[_e]=!1,this[xe]=null,Ee.call(this,e),Re.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),Le(this,i),t.performVisualTasks(i),Fe(this,this._model,r,"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[_e])if(this._disposed)$e(this.id);else{var i,r,a;if((0,o.Gv)(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,a=e.transition,e=e.notMerge),this[_e]=!0,!this._model||e){var s=new O(this._api),l=this._theme,u=this._model=new T;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(t,{replaceMerge:r},tn);var c={seriesTransition:a,optionChanged:!0};if(n)this[xe]={silent:i,updateParams:c},this[_e]=!1,this.getZr().wakeUp();else{try{Ce(this),ke.update.call(this,null,c)}catch(t){throw this[xe]=null,this[_e]=!1,t}this._ssr||this._zr.flush(),this[xe]=null,this[_e]=!1,Ee.call(this,i),Re.call(this,i)}}},e.prototype.setTheme=function(){(0,se.aT)("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},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||a.A.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(a.A.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return(0,o.__)(e,function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;(0,o.__)(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return(0,o.__)(i,function(t){t.group.ignore=!1}),a}$e(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,a=Math.max,s=1/0;if(an[n]){var l=s,u=s,c=-1/0,h=-1/0,p=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();(0,o.__)(on,function(r,s){if(r.group===n){var d=e?r.getZr().painter.getSvgDom().innerHTML:r.renderToCanvas((0,o.o8)(t)),f=r.getDom().getBoundingClientRect();l=i(f.left,l),u=i(f.top,u),c=a(f.right,c),h=a(f.bottom,h),p.push({dom:d,left:f.left,top:f.top})}});var f=(c*=d)-(l*=d),g=(h*=d)-(u*=d),v=fe.yh.createCanvas(),y=r.Ts(v,{renderer:e?"svg":"canvas"});if(y.resize({width:f,height:g}),e){var m="";return(0,o.__)(p,function(t){var e=t.left-l,n=t.top-u;m+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new ot.A({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),(0,o.__)(p,function(t){var e=new at.Ay({style:{x:t.left*d-l,y:t.top*d-u,image:t.dom}});y.add(e)}),y.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}$e(this.id)},e.prototype.convertToPixel=function(t,e){return Pe(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Pe(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,r=u._e(i,t);return(0,o.__)(r,function(t,i){i.indexOf("Models")>=0&&(0,o.__)(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0},this)},this),!!n}$e(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,i=u._e(n,t,{defaultMainType:"series"});var r=i.seriesModel.getData(),o=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?r.indexOfRawIndex(i.dataIndex):null;return null!=o?(0,ae.Ez)(r,o,e):(0,ae.rI)(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=this;(0,o.__)(qe,function(e){var n=function(n){var i,r=t.getModel(),a=n.target;if("globalout"===e?i={}:a&&(0,he.R)(a,function(t){var e=(0,ut.z)(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,a)||{},!0}if(e.eventData)return i=(0,o.X$)({},e.eventData),!0},!0),i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:a,packedEvent:i,model:u,view:c},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)}),(0,o.__)(Qe,function(e,n){t._messageCenter.on(n,function(t){this.trigger(n,t)},t)}),(0,o.__)(["selectchanged"],function(e){t._messageCenter.on(e,function(t){this.trigger(e,t)},t)}),(0,le.l)(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?$e(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)$e(this.id);else{this._disposed=!0,this.getDom()&&u.Bq(this.getDom(),ln,"");var t=this,e=t._api,n=t._model;(0,o.__)(t._componentsViews,function(t){t.dispose(n,e)}),(0,o.__)(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 on[t.id]}},e.prototype.resize=function(t){if(!this[_e])if(this._disposed)$e(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[xe]&&(null==i&&(i=this[xe].silent),n=!0,this[xe]=null),this[_e]=!0;try{n&&Ce(this),ke.update.call(this,{type:"resize",animation:(0,o.X$)({duration:0},t&&t.animation)})}catch(t){throw this[_e]=!1,t}this[_e]=!1,Ee.call(this,i),Re.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)$e(this.id);else if((0,o.Gv)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),rn[t]){var n=rn[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?$e(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=(0,o.X$)({},t);return e.type=Qe[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)$e(this.id);else if((0,o.Gv)(e)||(e={silent:!!e}),Ke[t.type]&&this._model)if(this[_e])this._pendingActions.push(t);else{var n=e.silent;Oe.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&a.A.browser.weChat&&this._throttledZrFlush(),Ee.call(this,n),Re.call(this,n)}},e.prototype.updateLabelLayout=function(){de.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)$e(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,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===ct.e3&&t.states.emphasis?e.push("emphasis"):t.hoverState===ct.zX&&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 l(t,e){e.eachRendered(function(t){if(!st.LR(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 c(t,n){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis){if(st.LR(t))return;if(t instanceof lt.Ay&&(0,ct.fz)(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}})}Ce=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Ae(t,!0),Ae(t,!1),e.plan()},Ae=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[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=(0,te.CC)(t.type);0,(c=new(e?it.A.getClass(h.main,h.sub):rt.A.getClass(h.sub))).init(n,s),o[u]=c,r.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&&i.prepareView(c,t,n,s)}e?n.eachComponent(function(t,e){"series"!==t&&u(e)}):n.eachSeries(u);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},De=function(t,e,n,i,r){var a=t._model;if(a.setUpdatePayload(n),i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var c,h=n.excludeSeriesId;null!=h&&(c=(0,o.nt)(),(0,o.__)(u.qB(h),function(t){var e=u.vS(t,null);null!=e&&c.set(e,!0)})),a&&a.eachComponent(l,function(e){if(!(c&&null!=c.get(e.id)))if((0,ct.T$)(n))if(e instanceof nt.A)n.type!==ct.h5||n.notBlur||e.get(["emphasis","disabled"])||(0,ct.lV)(e,n,t._api);else{var i=(0,ct.Tl)(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,a=i.dispatchers;n.type===ct.h5&&r&&!n.notBlur&&(0,ct.Du)(e.mainType,e.componentIndex,t._api),a&&(0,o.__)(a,function(t){n.type===ct.h5?(0,ct.HY)(t):(0,ct.SD)(t)})}else(0,ct.Lx)(n)&&e instanceof nt.A&&((0,ct.t6)(e,n,t._api),(0,ct.jA)(e),Ge(t))},t),a&&a.eachComponent(l,function(e){c&&null!=c.get(e.id)||p(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)}else(0,o.__)([].concat(t._componentsViews).concat(t._chartsViews),p);function p(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}},ke={prepareAndUpdate:function(t){Ce(this),ke.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),Le(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e),Be(this,i,r,e,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),de.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var a=[];i.eachComponent(function(t,o){if("series"!==t){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,i,r,e);l&&l.update&&a.push(s)}else a.push(s)}});var s=(0,o.nt)();i.eachSeries(function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var a=o.updateTransform(t,i,r,e);a&&a.update&&s.set(t.uid,1)}else s.set(t.uid,1)}),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:s}),Fe(this,i,r,e,{},s),de.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),rt.A.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),Be(this,n,this._api,e,{}),de.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries(function(t){t.getData().clearAllVisual()}),rt.A.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent(function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}}),i.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)}),de.trigger("afterupdate",i,this._api))},updateLayout:function(t){ke.update.call(this,t)}},Pe=function(t,e,n,i){if(t._disposed)$e(t.id);else{for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=u._e(o,n),l=0;l<a.length;l++){var c=a[l];if(c[e]&&null!=(r=c[e](o,s,i)))return r}0}},Le=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},Oe=function(t,e){var n=this,i=this.getModel(),r=t.type,a=t.escapeConnect,s=Ke[r],l=s.actionInfo,c=(l.update||"update").split(":"),h=c.pop(),p=null!=c[0]&&(0,te.CC)(c[0]);this[_e]=!0;var d=[t],f=!1;t.batch&&(f=!0,d=(0,o.Tj)(t.batch,function(e){return(e=(0,o.NT)((0,o.X$)({},e),t)).batch=null,e}));var g,v=[],y=(0,ct.Lx)(t),m=(0,ct.T$)(t);if(m&&(0,ct.qR)(this._api),(0,o.__)(d,function(e){if((g=(g=s.action(e,n._model,n._api))||(0,o.X$)({},e)).type=l.event||g.type,v.push(g),m){var i=u.HB(t),r=i.queryOptionMap,a=i.mainTypeSpecified?r.keys()[0]:"series";De(n,h,e,a),Ge(n)}else y?(De(n,h,e,"series"),Ge(n)):p&&De(n,h,e,p.main,p.sub)}),"none"!==h&&!m&&!y&&!p)try{this[xe]?(Ce(this),ke.update.call(this,t),this[xe]=null):ke[h].call(this,t)}catch(t){throw this[_e]=!1,t}if(g=f?{type:l.event||r,escapeConnect:a,batch:v}:v[0],this[_e]=!1,!e){var _=this._messageCenter;if(_.trigger(g.type,g),y){var x={type:"selectchanged",escapeConnect:a,selected:(0,ct.mc)(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};_.trigger(x.type,x)}}},Ee=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Oe.call(this,n,t)}},Re=function(t){!t&&this.trigger("updated")},Ne=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[xe]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},ze=function(t,e){t.on("mouseover",function(t){var n=t.target,i=(0,he.R)(n,ct.u6);i&&((0,ct._m)(i,t,e._api),Ge(e))}).on("mouseout",function(t){var n=t.target,i=(0,he.R)(n,ct.u6);i&&((0,ct.Iz)(i,t,e._api),Ge(e))}).on("click",function(t){var n=t.target,i=(0,he.R)(n,function(t){return null!=(0,ut.z)(t).dataIndex},!0);if(i){var r=i.selected?"unselect":"select",o=(0,ut.z)(i);e._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}})},Be=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),i){var r,a,l=e.concat(n);(0,s.A)(l,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),(0,o.__)(l,function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,o=e.key;null!=r&&(i=Math.max(r,i)),o?(i===r&&o!==a&&i++,a=o):a&&(i===r&&i++,a=""),r=i,n.setZLevel(i)})}}(e),Ve(t,e,n,i,r),(0,o.__)(t._chartsViews,function(t){t.__alive=!1}),Fe(t,e,n,i,r),(0,o.__)(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},Ve=function(t,e,i,r,a,s){(0,o.__)(s||t._componentsViews,function(t){var o=t.__model;l(o,t),t.render(o,e,i,r),n(o,t),c(o,t)})},Fe=function(t,e,i,r,s,u){var h=t._scheduler;s=(0,o.X$)(s||{},{updatedSeries:e.getSeries()}),de.trigger("series:beforeupdate",e,i,s);var p=!1;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;h.updatePayload(i,r),l(e,n),u&&u.get(e.uid)&&i.dirty(),i.perform(h.getPerformArgs(i))&&(p=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=n)})}(e,n),(0,ct.jA)(e)}),h.unfinished=p||h.unfinished,de.trigger("series:layoutlabels",e,i,s),de.trigger("series:transition",e,i,s),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];n(e,i),c(e,i)}),function(t,e){var n=t._zr,i=n.storage,r=0;i.traverse(function(t){t.isGroup||r++}),r>e.get("hoverLayerThreshold")&&!a.A.node&&!a.A.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}(t,e),de.trigger("series:afterupdate",e,i,s)},Ge=function(t){t[be]=!0,t.getZr().wakeUp()},Xe=function(t){t[be]&&(t.getZr().storage.traverse(function(t){st.LR(t)||e(t)}),t[be]=!1)},He=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(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){(0,ct.HY)(e,n),Ge(t)},n.prototype.leaveEmphasis=function(e,n){(0,ct.SD)(e,n),Ge(t)},n.prototype.enterBlur=function(e){(0,ct.QX)(e),Ge(t)},n.prototype.leaveBlur=function(e){(0,ct.JC)(e),Ge(t)},n.prototype.enterSelect=function(e){(0,ct.JI)(e),Ge(t)},n.prototype.leaveSelect=function(e){(0,ct.gd)(e),Ge(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}(A))(t)},We=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n][Se]=e}}(0,o.__)(Qe,function(n,i){t._messageCenter.on(i,function(n){if(an[t.group]&&0!==t[Se]){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];(0,o.__)(on,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),(0,o.__)(r,function(t){1!==t[Se]&&t.dispatchAction(i)}),e(r,2)}})})}}(),e}(l.A),Ze=je.prototype;Ze.on=Ie("on"),Ze.off=Ie("off"),Ze.one=function(t,e,n){var i=this;(0,se.aT)("ECharts#one is deprecated."),this.on.call(this,t,function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)},n)};var qe=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function $e(t){0}var Ke={},Qe={},Je=[],tn=[],en=[],nn={},rn={},on={},an={},sn=+new Date-0,ln=(new Date,"_echarts_instance_");function un(t,e,n){var i=!(n&&n.ssr);if(i){0;var r=cn(t);if(r)return r;0}var o=new je(t,e,n);return o.id="ec_"+sn++,on[o.id]=o,i&&u.Bq(t,ln,o.id),We(o),de.trigger("afterinit",o),o}function cn(t){return on[u.D$(t,ln)]}function hn(t,e){nn[t]=e}function pn(t){(0,o.qh)(tn,t)<0&&tn.push(t)}function dn(t,e){wn(Je,t,e,2e3)}function fn(t){vn("afterinit",t)}function gn(t){vn("afterupdate",t)}function vn(t,e){de.on(t,e)}function yn(t,e,n){(0,o.Tn)(e)&&(n=e,e="");var i=(0,o.Gv)(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,Qe[e]||((0,o.vA)(we.test(i)&&we.test(e)),Ke[i]||(Ke[i]={action:n,actionInfo:t}),Qe[e]=i)}function mn(t,e){D.A.register(t,e)}function _n(t,e){wn(en,t,e,1e3,"layout")}function xn(t,e){wn(en,t,e,3e3,"visual")}var bn=[];function wn(t,e,n,i,r){if(((0,o.Tn)(e)||(0,o.Gv)(e))&&(n=e,e=i),!((0,o.qh)(bn,n)>=0)){bn.push(n);var a=Ut.wrapStageHandler(n,r);a.__prio=e,a.__raw=n,t.push(a)}}function Sn(t,e){rn[t]=e}function In(t,e,n){var i=(0,ge.v)("registerMap");i&&i(t,e,n)}var Mn=ue.v5;xn(ve,xt),xn(ye,wt),xn(ye,St),xn(ve,re),xn(ye,oe),xn(7e3,function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=(0,pe.w)(n,e))});var r=i.getVisual("decal");if(r)i.getVisual("style").decal=(0,pe.w)(r,e)}})}),pn(J),dn(900,function(t){var e=(0,o.nt)();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(et)}),Sn("default",function(t,e){e=e||{},o.NT(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new It.A,i=new ot.A({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,a=new Mt.Ay({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),s=new ot.A({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(s),e.showSpinner&&((r=new Tt.A({shape:{startAngle:-Ct/2,endAngle:-Ct/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*Ct/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Ct/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=a.getBoundingRect().width,o=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*o-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:o),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),s.setShape({x:l-o,y:u-o,width:2*o,height:2*o}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),yn({type:ct.h5,event:ct.h5,update:ct.h5},o.lQ),yn({type:ct.PW,event:ct.PW,update:ct.PW},o.lQ),yn({type:ct.Lv,event:ct.Lv,update:ct.Lv},o.lQ),yn({type:ct.U2,event:ct.U2,update:ct.U2},o.lQ),yn({type:ct.Q6,event:ct.Q6,update:ct.Q6},o.lQ),hn("light",jt),hn("dark",Jt)},3813(t,e,n){n.d(e,{m:()=>r,v:()=>o});var i={};function r(t,e){i[t]=e}function o(t){return i[t]}},9186(t,e,n){n.d(e,{Lv:()=>h,A$:()=>d,pr:()=>g,A4:()=>f});var i=n(846),r=n(8311);var o=n(9774),a="ZH",s="EN",l=s,u={},c={},h=r.A.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(a)>-1?a:l;function p(t,e){t=t.toUpperCase(),c[t]=new i.A(e),u[t]=e}function d(t){if((0,o.Kg)(t)){var e=u[t.toUpperCase()]||{};return t===a||t===s?(0,o.o8)(e):(0,o.h1)((0,o.o8)(e),(0,o.o8)(u[l]),!1)}return(0,o.h1)((0,o.o8)(t),(0,o.o8)(u[l]),!1)}function f(t){return c[t]}function g(){return c[l]}p(s,{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:". "}}}}),p(a,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}})},6898(t,e,n){n.d(e,{U:()=>r});var i=n(9774);function r(t){return new o(t)}var o=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 o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var a,s=h(this._modBy),l=this._modDataCount||0,u=h(t&&t.modBy),c=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}s===u&&l===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,a=this._doReset(r)),this._modBy=u,this._modDataCount=c;var p=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(a||d<f)){var g=this._progress;if((0,i.cy)(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],d,f,u,c);else this._doProgress(g,d,f,u,c)}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,i,r){a.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:a.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),(0,i.cy)(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}(),a=function(){var t,e,n,i,r,o={reset:function(l,u,c,h){e=l,t=u,n=c,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}()},5221(t,e,n){n.d(e,{A_:()=>c,Ay:()=>y});var i,r=n(9774),o=n(6212),a=n(7955),s="undefined",l=typeof Uint32Array===s?Array:Uint32Array,u=typeof Uint16Array===s?Array:Uint16Array,c=typeof Int32Array===s?Array:Int32Array,h=typeof Float64Array===s?Array:Float64Array,p={float:h,int:c,ordinal:Array,number:Array,time:h};function d(t){return t>65535?l:u}function f(){return[1/0,-1/0]}function g(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function v(t,e,n,i,r){var o=p[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}const y=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=(0,r.nt)()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=t.getSource(),s=this.defaultDimValueGetter=i[o.sourceFormat];this._dimValueGetter=n||s,this._rawExtent=[];(0,a.O0)(o);this._dimensions=(0,r.Tj)(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,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new p[e||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=[1/0,-1/0]);for(var s=r[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]))}i.ordinalMeta=e,i.ordinalOffset=a,i.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 i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,o=r.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<o;u++){v(n,u,(f=r[u]).type,l,!0)}for(var c=[],h=s;h<l;h++)for(var p=h-s,d=0;d<o;d++){var f=r[d],g=i.arrayRows.call(this,t[p]||c,f.property,p,d);n[d][h]=g;var y=a[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=(0,r.Tj)(a,function(t){return t.property}),c=0;c<s;c++){var h=a[c];l[c]||(l[c]=f()),v(o,c,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,o,l);else for(var p=[],d=t;d<e;d++){p=i.getItem(d,p);for(var g=0;g<s;g++){var y=o[g],m=this._dimValueGetter(p,u[g],d,g);y[d]=m;var _=l[g];m<_[0]&&(_[0]=m),m>_[1]&&(_[1]=m)}}!i.persistent&&i.clean&&i.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=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],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,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}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}),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/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 i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;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-i[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&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{t=new(n=d(this._rawCount))(this.count());for(r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(d(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<i;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&&(r[s++]=p)}return s<i&&(n._indices=r),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 i=(0,r.HP)(t),o=i.length;if(!o)return this;var a=e.count(),s=new(d(e._rawCount))(a),l=0,u=i[0],c=t[u][0],h=t[u][1],p=e._chunks,f=!1;if(!e._indices){var g=0;if(1===o){for(var v=p[i[0]],y=0;y<n;y++){((b=v[y])>=c&&b<=h||isNaN(b))&&(s[l++]=g),g++}f=!0}else if(2===o){v=p[i[0]];var m=p[i[1]],_=t[i[1]][0],x=t[i[1]][1];for(y=0;y<n;y++){var b=v[y],w=m[y];(b>=c&&b<=h||isNaN(b))&&(w>=_&&w<=x||isNaN(w))&&(s[l++]=g),g++}f=!0}}if(!f)if(1===o)for(y=0;y<a;y++){var S=e.getRawIndex(y);((b=p[i[0]][S])>=c&&b<=h||isNaN(b))&&(s[l++]=S)}else for(y=0;y<a;y++){for(var I=!0,M=(S=e.getRawIndex(y),0);M<o;M++){var T=i[M];((b=p[T][S])<t[T][0]||b>t[T][1])&&(I=!1)}I&&(s[l++]=e.getRawIndex(y))}return l<a&&(e._indices=s),e._count=l,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 i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=f();for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),p=0;p<o;p++)s[p]=i[e[p]][h];s[o]=c;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(r[0]=d,d=r);for(u=0;u<d.length;u++){var g=e[u],v=d[u],y=l[g],m=i[g];m&&(m[h]=v),v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,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(d(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),g=Math.min(p+2*u,s),v=(g+f)/2,y=0,m=f;m<g;m++){var _=a[T=this.getRawIndex(m)];isNaN(_)||(y+=_)}y/=g-f;var x=p,b=Math.min(p+u,s),w=p-1,S=a[c];n=-1,r=x;var I=-1,M=0;for(m=x;m<b;m++){var T;_=a[T=this.getRawIndex(m)];isNaN(_)?(M++,I<0&&(I=T)):(i=Math.abs((w-v)*(_-S)-(w-m)*(y-S)))>n&&(n=i,r=T)}M>0&&M<b-x&&(h[l++]=Math.min(I,r),r=Math.max(I,r)),h[l++]=r,c=r}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,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=r._rawExtent[t]=[1/0,-1/0],h=new(d(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 g=0;g<s;g++){var v=this.getRawIndex(f+g);a[g]=l[v]}var y=n(a),m=this.getRawIndex(Math.min(f+i(a,y)||0,u-1));l[m]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[p++]=m}return r._count=p,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i=new t,o=this._chunks,a=e&&(0,r.TS)(e,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<o.length;s++)i._chunks[s]=a[s]?g(o[s]):o[s];else i._chunks=o;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=(0,r.o8)(this._extent),t._rawExtent=(0,r.o8)(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 i=0;i<n;i++)e[i]=this._indices[i]}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,i){return(0,o.Pn)(t[i],this._dimensions[i])}i={arrayRows:t,objectRows:function(t,e,n,i){return(0,o.Pn)(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return(0,o.Pn)(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}()},5064(t,e,n){n.d(e,{A:()=>s});var i=n(9774),r=0,o=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++r}return t.createByAxisModel=function(e){var n=e.option,r=n.data,o=r&&(0,i.Tj)(r,a);return new t({categories:o,needCollect:!o,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(!(0,i.Kg)(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=(0,i.nt)(this.categories))},t}();function a(t){return(0,i.Gv)(t)&&null!=t.value?t.value:t+""}const s=o},7955(t,e,n){n.d(e,{AF:()=>c,BE:()=>h,O0:()=>g,gV:()=>u,tP:()=>l,wZ:()=>p});var i=n(9774),r=n(8125),o=n(9269),a=n(520),s=function(t){this.data=t.data||(t.sourceFormat===r.t1?{}:[]),this.sourceFormat=t.sourceFormat||r.vm,this.seriesLayoutBy=t.seriesLayoutBy||r.i_,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&(0,a.PU)(this,n)===a.sc.Must&&(i.type="ordinal")}};function l(t){return t instanceof s}function u(t,e,n){n=n||p(t);var a=e.seriesLayoutBy,l=function(t,e,n,a,s){var l,u;if(!t)return{dimensionsDefine:d(s),startIndex:u,dimensionsDetectedCount:l};if(e===r.Km){var c=t;"auto"===a||null==a?f(function(t){null!=t&&"-"!==t&&((0,i.Kg)(t)?null==u&&(u=1):u=0)},n,c,10):u=(0,i.Et)(a)?a:a?1:0,s||1!==u||(s=[],f(function(t,e){s[e]=null!=t?t+"":""},n,c,1/0)),l=s?s.length:n===r.oC?c.length:c[0]?c[0].length:null}else if(e===r.Wk)s||(s=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return(0,i.HP)(e)}(t));else if(e===r.t1)s||(s=[],(0,i.__)(t,function(t,e){s.push(e)}));else if(e===r.mK){var h=(0,o.vj)(t[0]);l=(0,i.cy)(h)&&h.length||1}else r.XO;return{startIndex:u,dimensionsDefine:d(s),dimensionsDetectedCount:l}}(t,n,a,e.sourceHeader,e.dimensions);return new s({data:t,sourceFormat:n,seriesLayoutBy:a,dimensionsDefine:l.dimensionsDefine,startIndex:l.startIndex,dimensionsDetectedCount:l.dimensionsDetectedCount,metaRawOption:(0,i.o8)(e)})}function c(t){return new s({data:t,sourceFormat:(0,i.iu)(t)?r.XO:r.mK})}function h(t){return new s({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:(0,i.o8)(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function p(t){var e=r.vm;if((0,i.iu)(t))e=r.XO;else if((0,i.cy)(t)){0===t.length&&(e=r.Km);for(var n=0,o=t.length;n<o;n++){var a=t[n];if(null!=a){if((0,i.cy)(a)){e=r.Km;break}if((0,i.Gv)(a)){e=r.Wk;break}}}}else if((0,i.Gv)(t))for(var s in t)if((0,i.$3)(t,s)&&(0,i.Xj)(t[s])){e=r.t1;break}return e}function d(t){if(t){var e=(0,i.nt)();return(0,i.Tj)(t,function(t,n){var r={name:(t=(0,i.Gv)(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 o=e.get(r.name);return o?r.name+="-"+o.count++:e.set(r.name,{count:1}),r})}}function f(t,e,n,i){if(e===r.oC)for(var o=0;o<n.length&&o<i;o++)t(n[o]?n[o][0]:null,o);else{var a=n[0]||[];for(o=0;o<a.length&&o<i;o++)t(a[o],o)}}function g(t){var e=t.sourceFormat;return e===r.Wk||e===r.t1}},6403(t,e,n){n.d(e,{Tc:()=>l,eS:()=>p,fg:()=>u,io:()=>c,j_:()=>h});var i=n(9774),r=n(9269),o=n(7955),a=(0,r.$r)(),s={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},l=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=h(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return(0,i.bZ)(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=(0,o.O0)(this.source),n=!p(t),i="",r=[],a=0,l=0;a<t;a++){var u=void 0,c=void 0,h=void 0,d=this.dimensions[l];if(d&&d.storeDimIndex===a)u=e?d.name:null,c=d.type,h=d.ordinalMeta,l++;else{var f=this.getSourceDimension(a);f&&(u=e?f.name:null,c=f.type)}r.push({property:u,type:c,ordinalMeta:h}),!e||null==u||d&&d.isCalculationCoord||(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=s[c]||"f",h&&(i+=h.uid),i+="$"}var g=this.source;return{dimensions:r,hash:[g.seriesLayoutBy,g.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function u(t){return t instanceof l}function c(t){for(var e=(0,i.nt)(),n=0;n<(t||[]).length;n++){var r=t[n],o=(0,i.Gv)(r)?r.name:r;null!=o&&null==e.get(o)&&e.set(o,n)}return e}function h(t){var e=a(t);return e.dimNameMap||(e.dimNameMap=c(t.dimensionsDefine))}function p(t){return t>30}},2180(t,e,n){n.d(e,{Kd:()=>m,QE:()=>S,d1:()=>p,sC:()=>g,uQ:()=>b});var i,r,o,a,s,l=n(9774),u=n(9269),c=n(7955),h=n(8125),p=function(){function t(t,e){var n=(0,c.tP)(t)?t:(0,c.AF)(t);this._source=n;var i=this._data=n.data;n.sourceFormat===h.XO&&(this._offset=0,this._dimSize=e,this._data=i),s(this,i,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;s=function(t,r,o){var s=o.sourceFormat,u=o.seriesLayoutBy,c=o.startIndex,p=o.dimensionsDefine,d=a[w(s,u)];if((0,l.X$)(t,d),s===h.XO)t.getItem=e,t.count=i,t.fillStorage=n;else{var f=g(s,u);t.getItem=(0,l.oI)(f,null,r,c,p);var v=m(s,u);t.count=(0,l.oI)(v,null,r,c,p)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[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 d=r[p*o+a];h[t+p]=d,d<l&&(l=d),d>u&&(u=d)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[h.Km+"_"+h.i_]={pure:!0,appendData:r},t[h.Km+"_"+h.oC]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[h.Wk]={pure:!0,appendData:r},t[h.t1]={pure:!0,appendData:function(t){var e=this._data;(0,l.__)(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},t[h.mK]={appendData:r},t[h.XO]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},a=t}(),t}(),d=function(t,e,n,i){return t[i]},f=((i={})[h.Km+"_"+h.i_]=function(t,e,n,i){return t[i+e]},i[h.Km+"_"+h.oC]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},i[h.Wk]=d,i[h.t1]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){0;var s=t[n[a].name];o[a]=s?s[i]:null}return o},i[h.mK]=d,i);function g(t,e){return f[w(t,e)]}var v=function(t,e,n){return t.length},y=((r={})[h.Km+"_"+h.i_]=function(t,e,n){return Math.max(0,t.length-e)},r[h.Km+"_"+h.oC]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},r[h.Wk]=v,r[h.t1]=function(t,e,n){var i=t[n[0].name];return i?i.length:0},r[h.mK]=v,r);function m(t,e){return y[w(t,e)]}var _=function(t,e,n){return t[e]},x=((o={})[h.Km]=_,o[h.Wk]=function(t,e,n){return t[n]},o[h.t1]=_,o[h.mK]=function(t,e,n){var i=(0,u.vj)(t);return i instanceof Array?i[e]:i},o[h.XO]=_,o);function b(t){return x[t]}function w(t,e){return t===h.Km?t+"_"+e:t}function S(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return b(o)(i,a,s)}var l=i;return o===h.mK&&(l=(0,u.vj)(i)),l}}}},3441(t,e,n){n.d(e,{iJ:()=>o,me:()=>s,sJ:()=>a});var i=n(9774),r=n(6403);function o(t,e,n){var o,a,s,l=(n=n||{}).byIndex,u=n.stackedCoordDimension;!function(t){return!(0,r.fg)(t.schema)}(e)?(a=e.schema,o=a.dimensions,s=e.store):o=e;var c,h,p,d,f=!(!t||!t.get("stack"));if((0,i.__)(o,function(t,e){(0,i.Kg)(t)&&(o[e]=t={name:t}),f&&!t.isExtraCoord&&(l||c||!t.ordinalMeta||(c=t),h||"ordinal"===t.type||"time"===t.type||u&&u!==t.coordDim||(h=t))}),!h||l||c||(l=!0),h){p="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var g=h.coordDim,v=h.type,y=0;(0,i.__)(o,function(t){t.coordDim===g&&y++});var m={name:p,coordDim:g,coordDimIndex:y,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},_={name:d,coordDim:d,coordDimIndex:y+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(m.storeDimIndex=s.ensureCalculationDimension(d,v),_.storeDimIndex=s.ensureCalculationDimension(p,v)),a.appendCalculationDimension(m),a.appendCalculationDimension(_)):(o.push(m),o.push(_))}return{stackedDimension:h&&h.name,stackedByDimension:c&&c.name,isStackedByIndex:l,stackedOverDimension:d,stackResultDimension:p}}function a(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function s(t,e){return a(t,e)?t.getCalculationInfo("stackResultDimension"):e}},6212(t,e,n){n.d(e,{Fl:()=>l,Pn:()=>a});var i=n(2551),r=n(9774),o=n(2594);function a(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||(0,r.Et)(t)||null==t||"-"===t||(t=+(0,i._U)(t)),null==t||""===t?NaN:+t)}(0,r.nt)({number:function(t){return parseFloat(t)},time:function(t){return+(0,i._U)(t)},trim:function(t){return(0,r.Kg)(t)?(0,r.Bq)(t):t}});var s={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}},l=(function(){function t(t,e){if(!(0,r.Et)(e)){0,(0,o.$8)("")}this._opFn=s[t],this._rvalFloat=(0,i.Sm)(e)}t.prototype.evaluate=function(t){return(0,r.Et)(t)?this._opFn(t,this._rvalFloat):this._opFn((0,i.Sm)(t),this._rvalFloat)}}(),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=(0,r.Et)(t)?t:(0,i.Sm)(t),o=(0,r.Et)(e)?e:(0,i.Sm)(e),a=isNaN(n),s=isNaN(o);if(a&&(n=this._incomparable),s&&(o=this._incomparable),a&&s){var l=(0,r.Kg)(t),u=(0,r.Kg)(e);l&&(n=u?t:0),u&&(o=l?e:0)}return n<o?this._resultLT:n>o?-this._resultLT:0},t}());!function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=(0,i.Sm)(e)}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=(0,i.Sm)(t)===this._rvalFloat)}return this._isEQ?e:!e}}()},520(t,e,n){n.d(e,{G9:()=>h,Gt:()=>p,OC:()=>u,PU:()=>d,ln:()=>c,ps:()=>l,sc:()=>a});var i=n(9269),r=n(9774),o=n(8125),a={Must:1,Might:2,Not:3},s=(0,i.$r)();function l(t){s(t).datasetMap=(0,r.nt)()}function u(t,e,n){var i={},o=h(e);if(!o||!t)return i;var a,l,u=[],c=[],p=e.ecModel,d=s(p).datasetMap,f=o.uid+"_"+n.seriesLayoutBy;t=t.slice(),(0,r.__)(t,function(e,n){var o=(0,r.Gv)(e)?e:t[n]={name:e};"ordinal"===o.type&&null==a&&(a=n,l=y(o)),i[o.name]=[]});var g=d.get(f)||d.set(f,{categoryWayDim:l,valueWayDim:0});function v(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function y(t){var e=t.dimsDef;return e?e.length:1}return(0,r.__)(t,function(t,e){var n=t.name,r=y(t);if(null==a){var o=g.valueWayDim;v(i[n],o,r),v(c,o,r),g.valueWayDim+=r}else if(a===e)v(i[n],0,r),v(u,0,r);else{o=g.categoryWayDim;v(i[n],o,r),v(c,o,r),g.categoryWayDim+=r}}),u.length&&(i.itemName=u),c.length&&(i.seriesName=c),i}function c(t,e,n){var i={};if(!h(t))return i;var s,l=e.sourceFormat,u=e.dimensionsDefine;l!==o.Wk&&l!==o.t1||(0,r.__)(u,function(t,e){"name"===((0,r.Gv)(t)?t.name:t)&&(s=e)});var c=function(){for(var t={},i={},r=[],o=0,c=Math.min(5,n);o<c;o++){var h=f(e.data,l,e.seriesLayoutBy,u,e.startIndex,o);r.push(h);var p=h===a.Not;if(p&&null==t.v&&o!==s&&(t.v=o),(null==t.n||t.n===t.v||!p&&r[t.n]===a.Not)&&(t.n=o),d(t)&&r[t.n]!==a.Not)return t;p||(h===a.Might&&null==i.v&&o!==s&&(i.v=o),null!=i.n&&i.n!==i.v||(i.n=o))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(i)?i:null}();if(c){i.value=[c.v];var p=null!=s?s:c.n;i.itemName=[p],i.seriesName=[p]}return i}function h(t){if(!t.get("data",!0))return(0,i.JO)(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},i.US).models[0]}function p(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?(0,i.JO)(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},i.US).models:[]}function d(t,e){return f(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function f(t,e,n,s,l,u){var c,h,p;if((0,r.iu)(t))return a.Not;if(s){var d=s[u];(0,r.Gv)(d)?(h=d.name,p=d.type):(0,r.Kg)(d)&&(h=d)}if(null!=p)return"ordinal"===p?a.Must:a.Not;if(e===o.Km){var f=t;if(n===o.oC){for(var g=f[u],v=0;v<(g||[]).length&&v<5;v++)if(null!=(c=S(g[l+v])))return c}else for(v=0;v<f.length&&v<5;v++){var y=f[l+v];if(y&&null!=(c=S(y[u])))return c}}else if(e===o.Wk){var m=t;if(!h)return a.Not;for(v=0;v<m.length&&v<5;v++){if((b=m[v])&&null!=(c=S(b[h])))return c}}else if(e===o.t1){var _=t;if(!h)return a.Not;if(!(g=_[h])||(0,r.iu)(g))return a.Not;for(v=0;v<g.length&&v<5;v++)if(null!=(c=S(g[v])))return c}else if(e===o.mK){var x=t;for(v=0;v<x.length&&v<5;v++){var b=x[v],w=(0,i.vj)(b);if(!(0,r.cy)(w))return a.Not;if(null!=(c=S(w[u])))return c}}function S(t){var e=(0,r.Kg)(t);return null!=t&&isFinite(t)&&""!==t?e?a.Might:a.Not:e&&"-"!==t?a.Must:void 0}return a.Not}},53(t,e,n){n.d(e,{py:()=>y,v5:()=>v});var i=n(8125),r=n(9269),o=n(9774),a=n(2180),s=n(6212),l=n(2594),u=n(7955),c=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(0,s.Pn)(t,e)},t}();function h(t){if(!_(t.sourceFormat)){0,(0,l.$8)("")}return t.data}function p(t){var e=t.sourceFormat,n=t.data;if(!_(e)){0,(0,l.$8)("")}if(e===i.Km){for(var r=[],a=0,s=n.length;a<s;a++)r.push(n[a].slice());return r}if(e===i.Wk){for(r=[],a=0,s=n.length;a<s;a++)r.push((0,o.X$)({},n[a]));return r}}function d(t,e,n){if(null!=n)return(0,o.Et)(n)||!isNaN(n)&&!(0,o.$3)(e,n)?t[n]:(0,o.$3)(e,n)?e[n]:void 0}function f(t){return(0,o.o8)(t)}var g=(0,o.nt)();function v(t){var e=(t=(0,o.o8)(t)).type;e||(0,l.$8)("");var n=e.split(":");2!==n.length&&(0,l.$8)("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,g.set(e,t)}function y(t,e,n){var i=(0,r.qB)(t),o=i.length;o||(0,l.$8)("");for(var a=0,s=o;a<s;a++){e=m(i[a],e,n,1===o?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function m(t,e,n,s){e.length||(0,l.$8)(""),(0,o.Gv)(t)||(0,l.$8)("");var v=t.type,y=g.get(v);y||(0,l.$8)("");var m=(0,o.Tj)(e,function(t){return function(t,e){var n=new c,r=t.data,s=n.sourceFormat=t.sourceFormat,u=t.startIndex;t.seriesLayoutBy!==i.i_&&(0,l.$8)("");var g=[],v={},y=t.dimensionsDefine;if(y)(0,o.__)(y,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};g.push(i),null!=n&&((0,o.$3)(v,n)&&(0,l.$8)(""),v[n]=i)});else for(var m=0;m<t.dimensionsDetectedCount;m++)g.push({index:m});var _=(0,a.sC)(s,i.i_);e.__isBuiltIn&&(n.getRawDataItem=function(t){return _(r,u,g,t)},n.getRawData=(0,o.oI)(h,null,t)),n.cloneRawData=(0,o.oI)(p,null,t);var x=(0,a.Kd)(s,i.i_);n.count=(0,o.oI)(x,null,r,u,g);var b=(0,a.uQ)(s);n.retrieveValue=function(t,e){var n=_(r,u,g,t);return w(n,e)};var w=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=g[e];return n?b(t,e,n.name):void 0}};return n.getDimensionInfo=(0,o.oI)(d,null,g,v),n.cloneAllDimensionInfo=(0,o.oI)(f,null,g),n}(t,y)}),x=(0,r.qB)(y.transform({upstream:m[0],upstreamList:m,config:(0,o.o8)(t.config)}));return(0,o.Tj)(x,function(t,n){var r;(0,o.Gv)(t)||(0,l.$8)(""),t.data||(0,l.$8)(""),_((0,u.wZ)(t.data))||(0,l.$8)("");var a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),r={seriesLayoutBy:i.i_,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else r={seriesLayoutBy:i.i_,sourceHeader:0,dimensions:t.dimensions};return(0,u.gV)(t.data,r,null)})}function _(t){return t===i.Km||t===i.Wk}},8570(t,e,n){n.d(e,{Y:()=>d});var i=n(7264),r=n(8686),o=n(9669),a=n(4386),s=n(3059),l=n(9774),u=n(3813),c=n(2023),h=[],p={registerPreprocessor:i.lP,registerProcessor:i.qg,registerPostInit:i.cf,registerPostUpdate:i.tb,registerUpdateLifecycle:i.xV,registerAction:i.OH,registerCoordinateSystem:i.pX,registerLayout:i.Oh,registerVisual:i.AF,registerTransform:i.iY,registerLoading:i.Ej,registerMap:i.mz,registerImpl:u.m,PRIORITY:i.FQ,ComponentModel:a.A,ComponentView:r.A,SeriesModel:s.A,ChartView:o.A,registerComponentModel:function(t){a.A.registerClass(t)},registerComponentView:function(t){r.A.registerClass(t)},registerSeriesModel:function(t){s.A.registerClass(t)},registerChartView:function(t){o.A.registerClass(t)},registerSubTypeDefaulter:function(t,e){a.A.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){(0,c.fI)(t,e)}};function d(t){(0,l.cy)(t)?(0,l.__)(t,function(t){d(t)}):(0,l.qh)(h,t)>=0||(h.push(t),(0,l.Tn)(t)&&(t={install:t}),t.install(p))}},262(t,e,n){n.d(e,{If:()=>l,Xe:()=>s,os:()=>o});var i=n(7544),r=n(4632);function o(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var o=i.label,a=o.getComputedTransform(),s=o.getBoundingRect(),l=!a||a[1]<1e-5&&a[2]<1e-5,u=o.style.margin||0,c=s.clone();c.applyTransform(a),c.x-=u/2,c.y-=u/2,c.width+=u,c.height+=u;var h=l?new r.A(s,a):null;e.push({label:o,labelLine:i.labelLine,rect:c,localRect:s,obb:h,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:l,transform:a})}}return e}function a(t,e,n,i,r,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 d=t[p],f=d.rect;(s=f[e]-l)<0&&(f[e]-=s,d.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=f[e]+f[n]}h>0&&o&&w(-h/a,0,a);var v,y,m=t[0],_=t[a-1];return x(),v<0&&S(-v,.8),y<0&&S(y,.8),x(),b(v,y,1),b(y,v,-1),x(),v<0&&I(-v),y<0&&I(y),u}function x(){v=m.rect[e]-i,y=r-_.rect[e]-_.rect[n]}function b(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,a);var r=i+t;r<0&&S(-r*n,1)}else S(-t*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;o<r;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function S(i,r){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(i)/s,r);if(i>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 I(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i<a-1;i++)if(e>0?w(n,0,i+1):w(-n,a-i-1,a),(t-=n)<=0)return}}function s(t,e,n,i){return a(t,"y","height",e,n,i)}function l(t){var e=[];t.sort(function(t,e){return e.priority-t.priority});var n=new i.A(0,0,0,0);function o(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var a=0;a<t.length;a++){var s=t[a],l=s.axisAligned,u=s.localRect,c=s.transform,h=s.label,p=s.labelLine;n.copy(s.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=s.obb,f=!1,g=0;g<e.length;g++){var v=e[g];if(n.intersect(v.rect)){if(l&&v.axisAligned){f=!0;break}if(v.obb||(v.obb=new r.A(v.localRect,v.transform)),d||(d=new r.A(u,c)),d.intersect(v.obb)){f=!0;break}}}f?(o(h),p&&o(p)):(h.attr("ignore",s.defaultAttr.ignore),p&&p.attr("ignore",s.defaultAttr.labelGuideIgnore),e.push(s))}}},7871(t,e,n){n.d(e,{Lu:()=>x,Oh:()=>b,VB:()=>d,c8:()=>_,lx:()=>p,qM:()=>h,xb:()=>w});var i=n(2070),r=n(9774),o=n(4156),a=n(9269),s=n(4159),l={};function u(t,e){for(var n=0;n<o.BV.length;n++){var i=o.BV[n],r=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=r}var s=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(s,!0)}function c(t,e,n){var i,a=t.labelFetcher,s=t.labelDataIndex,l=t.labelDimIndex,u=e.normal;a&&(i=a.getFormattedLabel(s,"normal",null,l,u&&u.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=(0,r.Tn)(t.defaultText)?t.defaultText(s,t,n):t.defaultText);for(var c={normal:i},h=0;h<o.BV.length;h++){var p=o.BV[h],d=e[p];c[p]=(0,r.bZ)(a?a.getFormattedLabel(s,p,null,l,d&&d.get("formatter")):null,i)}return c}function h(t,e,n,a){n=n||l;for(var s=t instanceof i.Ay,h=!1,p=0;p<o.wV.length;p++){if((b=e[o.wV[p]])&&b.getShallow("show")){h=!0;break}}var g=s?t:t.getTextContent();if(h){s||(g||(g=new i.Ay,t.setTextContent(g)),t.stateProxy&&(g.stateProxy=t.stateProxy));var v=c(n,e),y=e.normal,m=!!y.getShallow("show"),_=d(y,a&&a.normal,n,!1,!s);_.text=v.normal,s||t.setTextConfig(f(y,n,!1));for(p=0;p<o.BV.length;p++){var b,w=o.BV[p];if(b=e[w]){var S=g.ensureState(w),I=!!(0,r.bZ)(b.getShallow("show"),m);if(I!==m&&(S.ignore=!I),S.style=d(b,a&&a[w],n,!0,!s),S.style.text=v[w],!s)t.ensureState(w).textConfig=f(b,n,!0)}}g.silent=!!y.getShallow("silent"),null!=g.style.x&&(_.x=g.style.x),null!=g.style.y&&(_.y=g.style.y),g.ignore=!m,g.useStyle(_),g.dirty(),n.enableTextSetter&&(x(g).setLabelText=function(t){var i=c(n,e,t);u(g,i)})}else g&&(g.ignore=!0);t.dirty()}function p(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<o.BV.length;i++){var r=o.BV[i];n[r]=t.getModel([r,e])}return n}function d(t,e,n,i,o){var a={};return function(t,e,n,i,o){n=n||l;var a,s=e.ecModel,u=s&&s.option.textStyle,c=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||l).rich;if(n){e=e||{};for(var i=(0,r.HP)(n),o=0;o<i.length;o++){e[i[o]]=1}}t=t.parentModel}return e}(e);if(c)for(var h in a={},c)if(c.hasOwnProperty(h)){var p=e.getModel(["rich",h]);m(a[h]={},p,u,n,i,o,!1,!0)}a&&(t.rich=a);var d=e.get("overflow");d&&(t.overflow=d);var f=e.get("minMargin");null!=f&&(t.margin=f);m(t,e,u,n,i,o,!0,!1)}(a,t,n,i,o),e&&(0,r.X$)(a,e),a}function f(t,e,n){e=e||{};var i,o={},a=t.getShallow("rotate"),s=(0,r.bZ)(t.getShallow("distance"),n?null:5),l=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(o.position=i),null!=l&&(o.offset=l),null!=a&&(a*=Math.PI/180,o.rotation=a),null!=s&&(o.distance=s),o.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",o}var g=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],v=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],y=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function m(t,e,n,i,o,a,s,u){n=!o&&n||l;var c=i&&i.inheritColor,h=e.getShallow("color"),p=e.getShallow("textBorderColor"),d=(0,r.bZ)(e.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==p&&"auto"!==p||(p=c||null),a||(h=h||n.color,p=p||n.textBorderColor),null!=h&&(t.fill=h),null!=p&&(t.stroke=p);var f=(0,r.bZ)(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var m=(0,r.bZ)(e.getShallow("textBorderType"),n.textBorderType);null!=m&&(t.lineDash=m);var _=(0,r.bZ)(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=_&&(t.lineDashOffset=_),o||null!=d||u||(d=i&&i.defaultOpacity),null!=d&&(t.opacity=d),o||a||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var x=0;x<g.length;x++){var b=g[x];null!=(S=(0,r.bZ)(e.getShallow(b),n[b]))&&(t[b]=S)}for(x=0;x<v.length;x++){b=v[x];null!=(S=e.getShallow(b))&&(t[b]=S)}if(null==t.verticalAlign){var w=e.getShallow("baseline");null!=w&&(t.verticalAlign=w)}if(!s||!i.disableBox){for(x=0;x<y.length;x++){var S;b=y[x];null!=(S=e.getShallow(b))&&(t[b]=S)}var I=e.getShallow("borderType");null!=I&&(t.borderDash=I),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}function _(t,e){var n=e&&e.getModel("textStyle");return(0,r.Bq)([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 x=(0,a.$r)();function b(t,e,n,i){if(t){var r=x(t);r.prevValue=r.value,r.value=n;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}function w(t,e,n,i,o){var l=x(t);if(l.valueAnimation&&l.prevValue!==l.value){var h=l.defaultInterpolatedText,p=(0,r.bZ)(l.interpolatedValue,l.prevValue),d=l.value;t.percent=0,(null==l.prevValue?s.LW:s.oi)(t,{percent:1},i,e,null,function(i){var r=(0,a.Il)(n,l.precision,p,d,i);l.interpolatedValue=1===i?null:r;var s=c({labelDataIndex:e,labelFetcher:o,defaultText:h?h(r):r+""},l.statesModels,r);u(t,s)})}}},6343(t,e,n){n.d(e,{GL:()=>h,KF:()=>v,VA:()=>f,Zp:()=>g,vq:()=>p});var i=n(9774),r=n(2551),o=n(3441),a=n(6305),s=n(2984),l="__ec_stack_";function u(t){return t.get("stack")||l+t.seriesIndex}function c(t){return t.dim+t.index}function h(t,e){var n=[];return e.eachSeriesByType(t,function(t){y(t)&&n.push(t)}),n}function p(t){var e=function(t){var e={};(0,i.__)(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[r]?e[r].push(u):e[r]=[u]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(o){o.sort(function(t,e){return t-e});for(var a=null,s=1;s<o.length;++s){var l=o[s]-o[s-1];l>0&&(a=null===a?l:Math.min(a,l))}n[r]=a}}return n}(t),n=[];return(0,i.__)(t,function(t){var i,o=t.coordinateSystem.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],h=Math.abs(a[1]-a[0]),p=o.scale.getExtent(),d=Math.abs(p[1]-p[0]);i=l?h/d*l:h}else{var f=t.getData();i=Math.abs(a[1]-a[0])/f.count()}var g=(0,r.lo)(t.get("barWidth"),i),v=(0,r.lo)(t.get("barMaxWidth"),i),y=(0,r.lo)(t.get("barMinWidth")||(m(t)?.5:1),i),_=t.get("barGap"),x=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:g,barMaxWidth:v,barMinWidth:y,barGap:_,barCategoryGap:x,axisKey:c(o),stackId:u(t)})}),d(n)}function d(t){var e={};(0,i.__)(t,function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=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(0,i.__)(e,function(t,e){n[e]={};var o=t.stacks,a=t.bandWidth,s=t.categoryGap;if(null==s){var l=(0,i.HP)(o).length;s=Math.max(35-4*l,15)+"%"}var u=(0,r.lo)(s,a),c=(0,r.lo)(t.gap,1),h=t.remainedWidth,p=t.autoWidthCount,d=(h-u)/(p+(p-1)*c);d=Math.max(d,0),(0,i.__)(o,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,h-=i+c*i,p--}else{var i=d;e&&e<i&&(i=Math.min(e,h)),n&&n>i&&(i=n),i!==d&&(t.width=i,h-=i+c*i,p--)}}),d=(h-u)/(p+(p-1)*c),d=Math.max(d,0);var f,g=0;(0,i.__)(o,function(t,e){t.width||(t.width=d),f=t,g+=t.width*(1+c)}),f&&(g-=f.width*c);var v=-g/2;(0,i.__)(o,function(t,i){n[e][i]=n[e][i]||{bandWidth:a,offset:v,width:t.width},v+=t.width*(1+c)})}),n}function f(t,e,n){if(t&&e){var i=t[c(e)];return null!=i&&null!=n?i[u(n)]:i}}function g(t,e){var n=h(t,e),r=p(n);(0,i.__)(n,function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),i=u(t),o=r[c(n)][i],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})})}function v(t){return{seriesType:t,plan:(0,a.A)(),reset:function(t){if(y(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),a=e.getDimensionIndex(e.mapDimension(r.dim)),l=e.getDimensionIndex(e.mapDimension(i.dim)),u=t.get("showBackground",!0),c=e.mapDimension(r.dim),h=e.getCalculationInfo("stackResultDimension"),p=(0,o.sJ)(e,c)&&!!e.getCalculationInfo("stackedOnSeries"),d=r.isHorizontal(),f=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,r),g=m(t),v=t.get("barMinHeight")||0,_=h&&e.getDimensionIndex(h),x=e.getLayout("size"),b=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,o=g&&(0,s.J)(3*r),c=g&&u&&(0,s.J)(3*r),h=g&&(0,s.J)(r),y=n.master.getRect(),m=d?y.width:y.height,w=e.getStore(),S=0;null!=(i=t.next());){var I=w.get(p?_:a,i),M=w.get(l,i),T=f,C=void 0;p&&(C=+I-w.get(a,i));var A=void 0,D=void 0,k=void 0,P=void 0;if(d){var L=n.dataToPoint([I,M]);if(p)T=n.dataToPoint([C,M])[0];A=T,D=L[1]+b,k=L[0]-T,P=x,Math.abs(k)<v&&(k=(k<0?-1:1)*v)}else{L=n.dataToPoint([M,I]);if(p)T=n.dataToPoint([M,C])[1];A=L[0]+b,D=T,k=x,P=L[1]-T,Math.abs(P)<v&&(P=(P<=0?-1:1)*v)}g?(o[S]=A,o[S+1]=D,o[S+2]=d?k:P,c&&(c[S]=d?y.x:A,c[S+1]=d?D:y.y,c[S+2]=m),h[i]=i):e.setItemLayout(i,{x:A,y:D,width:k,height:P}),S+=3}g&&e.setLayout({largePoints:o,largeDataIndices:h,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function y(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function m(t){return t.pipelineContext&&t.pipelineContext.large}},761(t,e,n){n.d(e,{I:()=>o,l:()=>s});var i=n(9774),r=n(9269);function o(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},function(t){i.push(t.seriesIndex)}),i}(0,i.__)([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(t){e(t[0],function(e,r,o){e=(0,i.X$)({},e),o.dispatchAction((0,i.X$)(e,{type:t[1],seriesIndex:n(r,e)}))})})}function a(t,e,n,o,a){var s=t+e;n.isSilent(s)||o.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,o=t.option.selectedMap,l=a.selected,u=0;u<l.length;u++)if(l[u].seriesIndex===e){var c=t.getData(),h=(0,r.le)(c,a.fromActionPayload);n.trigger(s,{type:s,seriesId:t.id,name:(0,i.cy)(h)?c.getName(h[0]):c.getName(h),selected:(0,i.Kg)(o)?o:(0,i.X$)({},o)})}})}function s(t,e,n){t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(a("map","selectchanged",e,i,t),a("pie","selectchanged",e,i,t)):"select"===t.fromAction?(a("map","selected",e,i,t),a("pie","selected",e,i,t)):"unselect"===t.fromAction&&(a("map","unselected",e,i,t),a("pie","unselected",e,i,t))})}},4386(t,e,n){n.d(e,{A:()=>p});var i=n(5482),r=n(9774),o=n(846),a=n(2359),s=n(7362),l=n(9269),u=n(6196),c=(0,l.$r)(),h=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=a.$Q("ec_cpt_model"),r}var n;return(0,i.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=u.ad(this),i=n?u.vs(t):{},o=e.getTheme();r.h1(t,o.get(this.mainType)),r.h1(t,this.getDefaultOption()),n&&u.YA(t,i,n)},e.prototype.mergeOption=function(t,e){r.h1(this.option,t,!0);var n=u.ad(this);n&&u.YA(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!(0,s._E)(t))return t.defaultOption;var e=c(this);if(!e.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var a={},l=n.length-1;l>=0;l--)a=r.h1(a,n[l],!0);e.defaultOption=a}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return(0,l.JO)(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!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=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(o.A);(0,s.q7)(h,o.A),(0,s.tQ)(h),a.A6(h),a.vf(h,function(t){var e=[];r.__(h.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=r.Tj(e,function(t){return(0,s.CC)(t).main}),"dataset"!==t&&r.qh(e,"dataset")<=0&&e.unshift("dataset");return e});const p=h},846(t,e,n){n.d(e,{A:()=>y});var i=n(8311),r=n(7362),o=(0,n(7029).A)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),a=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return o(this,t,e)},t}(),s=n(7871),l=n(2070),u=["textStyle","color"],c=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],h=new l.Ay;const p=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(u):null)},t.prototype.getFont=function(){return(0,s.c8)({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<c.length;n++)e[c[n]]=this.getShallow(c[n]);return h.useStyle(e),h.update(),h.getBoundingRect()},t}();var d=n(3944),f=n(8283),g=n(9774),v=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 i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){(0,g.h1)(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,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)((0,g.o8)(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(!i.A.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();(0,r.gq)(v),(0,r.Od)(v),(0,g.co)(v,d.J),(0,g.co)(v,f.s),(0,g.co)(v,a),(0,g.co)(v,p);const y=v},3059(t,e,n){n.d(e,{A:()=>E});var i=n(5482),r=n(9774),o=n(8311),a=n(9269),s=n(4386),l=n(7192),u=n(5548),c=n(6196),h=n(6898),p=n(7362),d=n(7955),f=n(8125),g=n(520),v=n(53),y=n(5221),m=n(2180),_=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,i=this._getUpstreamSourceManagers(),o=!!i.length;if(x(n)){var a=n,s=void 0,l=void 0,u=void 0;if(o){var c=i[0];c.prepareSource(),s=(u=c.getSource()).data,l=u.sourceFormat,e=[c._getVersionSign()]}else s=a.get("data",!0),l=(0,r.iu)(s)?f.XO:f.mK,e=[];var h=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},g=(0,r.bZ)(h.seriesLayoutBy,p.seriesLayoutBy)||null,v=(0,r.bZ)(h.sourceHeader,p.sourceHeader),y=(0,r.bZ)(h.dimensions,p.dimensions);t=g!==p.seriesLayoutBy||!!v!=!!p.sourceHeader||y?[(0,d.gV)(s,{seriesLayoutBy:g,sourceHeader:v,dimensions:y},l)]:[]}else{var m=n;if(o){var _=this._applyTransform(i);t=_.sourceList,e=_.upstreamSignList}else{var b=m.get("source",!0);t=[(0,d.gV)(b,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),o=n.get("fromTransformResult",!0);if(null!=o){1!==t.length&&b("")}var a=[],s=[];return(0,r.__)(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||b(""),a.push(e),s.push(t._getVersionSign())}),i?e=(0,v.py)(i,a,{datasetIndex:n.componentIndex}):null!=o&&(e=[(0,d.BE)(a[0])]),{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 i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];x(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new y.Ay).initData(new m.d1(e,t.length),t),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(x(t)){var e=(0,g.G9)(t);return e?[e.getSourceManager()]:[]}return(0,r.Tj)((0,g.Gt)(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(x(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function x(t){return"series"===t.mainType}function b(t){throw new Error(t)}var w=n(3496);function S(t){var e,n,i,o,s=t.series,l=t.dataIndex,u=t.multipleSeries,c=s.getData(),h=c.mapDimensionsAll("defaultedTooltip"),p=h.length,d=s.getRawValue(l),f=(0,r.cy)(d),g=(0,w.aw)(s,l);if(p>1||f&&!p){var v=function(t,e,n,i,o){var a=e.getData(),s=(0,r.TS)(t,function(t,e,n){var i=a.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName},!1),l=[],u=[],c=[];function h(t,e){var n=a.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(s?c.push((0,w.Qx)("nameValue",{markerType:"subItem",markerColor:o,name:n.displayName,value:t,valueType:n.type})):(l.push(t),u.push(n.type)))}return i.length?(0,r.__)(i,function(t){h((0,m.QE)(a,n,t),t)}):(0,r.__)(t,h),{inlineValues:l,inlineValueTypes:u,blocks:c}}(d,s,l,h,g);e=v.inlineValues,n=v.inlineValueTypes,i=v.blocks,o=v.inlineValues[0]}else if(p){var y=c.getDimensionInfo(h[0]);o=e=(0,m.QE)(c,l,h[0]),n=y.type}else o=e=f?d[0]:d;var _=(0,a.O0)(s),x=_&&s.name||"",b=c.getName(l),S=u?x:b;return(0,w.Qx)("section",{header:x,noHeader:u||!_,sortParam:o,blocks:[(0,w.Qx)("nameValue",{markerType:"item",markerColor:g,name:S,noName:!(0,r.Bq)(S),value:e,valueType:n})].concat(i||[])})}var I=a.$r();function M(t,e){return t.getName(e)||t.getId(e)}var T=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return(0,i.C6)(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=(0,h.U)({count:A,reset:D}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(I(this).sourceManager=new _(this)).prepareSource();var i=this.getInitialData(t,n);P(i,this),this.dataTask.context.data=i,I(this).dataBeforeProcessed=i,C(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=(0,c.ad)(this),i=n?(0,c.vs)(t):{},o=this.subType;s.A.hasClass(o)&&(o+="Series"),r.h1(t,e.getTheme().get(this.subType)),r.h1(t,this.getDefaultOption()),a.M5(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&(0,c.YA)(t,i,n)},e.prototype.mergeOption=function(t,e){t=r.h1(this.option,t,!0),this.fillDataTextStyle(t.data);var n=(0,c.ad)(this);n&&(0,c.YA)(this.option,t,n);var i=I(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,e);P(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,I(this).dataBeforeProcessed=o,C(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!r.iu(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&a.M5(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=O(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return I(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=O(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}I(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return r.nt(t)},e.prototype.getSourceManager=function(){return I(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return I(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 S({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(o.A.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=l.X.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},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 i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=M(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],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=r.HP(t),n=[],i=0;i<e.length;i++){var o=t[e[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[M(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,o=this.option,a=o.selectedMode,s=e.length;if(a&&s)if("series"===a)o.selectedMap="all";else if("multiple"===a){r.Gv(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,u=0;u<s;u++){var c=e[u];l[p=M(t,c)]=!0,this._selectedDataIndicesMap[p]=t.getRawIndex(c)}}else if("single"===a||!0===a){var h=e[s-1],p=M(t,h);o.selectedMap=((n={})[p]=!0,n),this._selectedDataIndicesMap=((i={})[p]=t.getRawIndex(h),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return s.A.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(s.A);function C(t){var e=t.name;a.O0(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return r.__(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}(t)||e)}function A(t){return t.model.getRawData().count()}function D(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),k}function k(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function P(t,e){r.__(r.yB(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,r.cF(L,e))})}function L(t,e){var n=O(t);return n&&n.setOutputEnd((e||this).count()),e}function O(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}r.co(T,u.J),r.co(T,l.X),(0,p.q7)(T,s.A);const E=T},5548(t,e,n){n.d(e,{J:()=>s,L:()=>l});var i=n(9774),r=n(2180),o=n(8397),a=/\{@(.+?)\}/g,s=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=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:r,data:a,dataType:e,value:i,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,s,l,u){e=e||"normal";var c=this.getData(n),h=this.getDataParams(t,n);(u&&(h.value=u.interpolatedValue),null!=s&&i.cy(h.value)&&(h.value=h.value[s]),l)||(l=c.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return i.Tn(l)?(h.status=e,h.dimensionIndex=s,l(h)):i.Kg(l)?(0,o.YK)(l,h).replace(a,function(e,n){var o=n.length,a=n;"["===a.charAt(0)&&"]"===a.charAt(o-1)&&(a=+a.slice(1,o-1));var s=(0,r.QE)(c,t,a);if(u&&i.cy(u.interpolatedValue)){var l=c.getDimensionIndex(a);l>=0&&(s=u.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return(0,r.QE)(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function l(t){var e,n;return i.Gv(t)?t.type&&(n=t):e=t,{text:e,frag:n}}},8283(t,e,n){n.d(e,{L:()=>r,s:()=>a});var i=n(7029),r=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o=(0,i.A)(r),a=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return o(this,t,e)},t}()},3944(t,e,n){n.d(e,{J:()=>a,m:()=>r});var i=n(7029),r=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],o=(0,i.A)(r),a=function(){function t(){}return t.prototype.getLineStyle=function(t){return o(this,t)},t}()},7029(t,e,n){n.d(e,{A:()=>r});var i=n(9774);function r(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,o){for(var a={},s=0;s<t.length;s++){var l=t[s][1];if(!(r&&i.qh(r,l)>=0||o&&i.qh(o,l)<0)){var u=n.getShallow(l,e);null!=u&&(a[t[s][0]]=u)}}return a}}},7192(t,e,n){n.d(e,{X:()=>o});var i=n(9269),r=(0,i.$r)(),o=((0,i.$r)(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var o=(0,i.qB)(this.get("color",!0)),s=this.get("colorLayer",!0);return a(this,r,o,s,t,e,n)},t.prototype.clearColorPalette=function(){!function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,r)},t}());function a(t,e,n,i,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if((c=c||n)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}},8001(t,e,n){n.d(e,{a:()=>b});var i=n(6486),r=n(9774),o=n(5482),a=n(1969),s=n(9291),l=n(6111),u=n(7544),c=n(6684),h=n(145);function p(t,e,n){var i=h.yh.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}const d=function(t){function e(e,n,o){var a,s=t.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,o=o||i.Y5,"string"==typeof e?a=p(e,n,o):r.Gv(e)&&(e=(a=e).id),s.id=e,s.dom=a;var l=a.style;return l&&(r.iq(a),a.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.borderWidth="0"),s.painter=n,s.dpr=o,s}return(0,o.C6)(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=p("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,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new u.A(0,0,0,0);function h(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new u.A(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,i=1/0,r=0,c=0;c<o.length;++c){var h=o[c];if(h.intersect(t)){var p=new u.A(0,0,0,0);p.copy(h),p.union(t),o[c]=p,n=!0;break}if(s){l.copy(t),l.union(h);var d=t.width*t.height,f=h.width*h.height,g=l.width*l.height-d-f;g<i&&(i=g,r=c)}}if(s&&(o[r].union(t),n=!0),!n)(e=new u.A(0,0,0,0)).copy(t),o.push(e);s||(s=o.length>=a)}}for(var p=this.__startIndex;p<this.__endIndex;++p){if(g=t[p]){var d=g.shouldBePainted(n,i,!0,!0);(v=g.__isRendered&&(g.__dirty&c.M||!d)?g.getPrevPaintRect():null)&&h(v);var f=d&&(g.__dirty&c.M||!g.__isRendered)?g.getPaintRect():null;f&&h(f)}}for(p=this.__prevStartIndex;p<this.__prevEndIndex;++p){var g,v;d=(g=e[p])&&g.shouldBePainted(n,i,!0,!0);if(g&&(!d||!g.__zr)&&g.__isRendered)(v=g.getPrevPaintRect())&&h(v)}do{r=!1;for(p=0;p<o.length;)if(o[p].isZero())o.splice(p,1);else{for(var y=p+1;y<o.length;)o[p].intersect(o[y])?(r=!0,o[p].union(o[y]),o.splice(y,1)):y++;p++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.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 i=this.dom,o=this.ctx,a=i.width,u=i.height;e=e||this.clearColor;var c=this.motionBlur&&!t,h=this.lastFrameAlpha,p=this.dpr,d=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,a/p,u/p));var f=this.domBack;function g(t,n,i,a){if(o.clearRect(t,n,i,a),e&&"transparent"!==e){var u=void 0;if(r.C7(e))u=(e.global||e.__width===i&&e.__height===a)&&e.__canvasGradient||(0,s.Ff)(o,e,{x:0,y:0,width:i,height:a}),e.__canvasGradient=u,e.__width=i,e.__height=a;else r.HE(e)&&(e.scaleX=e.scaleX||p,e.scaleY=e.scaleY||p,u=(0,l.ZQ)(o,e,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=u||e,o.fillRect(t,n,i,a),o.restore()}c&&(o.save(),o.globalAlpha=h,o.drawImage(f,t,n,i,a),o.restore())}!n||c?g(0,0,a,u):n.length&&r.__(n,function(t){g(t.x*p,t.y*p,t.width*p,t.height*p)})},e}(a.A);var f=n(3717),g=n(8311),v=1e5,y=314159,m=.01;var _=function(){function t(t,e,n,o){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=r.X$({},n||{}),this.dpr=n.devicePixelRatio||i.Y5,this._singleCanvas=a,this.root=t,t.style&&(r.iq(t),t.innerHTML=""),this.storage=e;var l=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(a){var c=t,h=c.width,p=c.height;null!=n.width&&(h=n.width),null!=n.height&&(p=n.height),this.dpr=n.devicePixelRatio||1,c.width=h*this.dpr,c.height=p*this.dpr,this._width=h,this._height=p;var f=new d(c,this,this.dpr);f.__builtin__=!0,f.initContext(),u[314159]=f,f.zlevel=y,l.push(y),this._domRoot=t}else{this._width=(0,s.YC)(t,0,n),this._height=(0,s.YC)(t,1,n);var g=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(g)}}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,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?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 i,r={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(v)),i||(i=n.ctx).save(),(0,l.V$)(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(v)},t.prototype.paintOne=function(t,e){(0,l.Xi)(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;(0,f.A)(function(){s._paintList(t,e,n,i)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(y).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},t.prototype._doPaintList=function(t,e,n){for(var i=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&o.push(u)}for(var c=!0,h=!1,p=function(r){var s,l=o[r],u=l.ctx,p=a&&l.createRepaintRects(t,e,d._width,d._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),y=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,p);else if(f===l.__startIndex){var m=t[f];m.incremental&&m.notClear&&!n||l.clear(!1,y,p)}-1===f&&(f=l.__startIndex);var _=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(h=!0),i._doPaintEl(r,l,a,e,n,s===l.__endIndex-1),g)if(Date.now()-v>15)break}n.prevElClipPaths&&u.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var x=d.dpr,b=0;b<p.length;++b){var w=p[b];u.save(),u.beginPath(),u.rect(w.x*x,w.y*x,w.width*x,w.height*x),u.clip(),_(w),u.restore()}else u.save(),_(),u.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(c=!1)},d=this,f=0;f<o.length;f++)p(f);return g.A.wxa&&r.__(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:c,needsRefreshHover:h}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&((0,l.V$)(a,t,r,o),t.setPrevPaintRect(s))}else(0,l.V$)(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=y);var n=this._layers[t];return n||((n=new d("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?r.h1(n,this._layerConfig[t],!0):this._layerConfig[t-m]&&r.h1(n,this._layerConfig[t-m],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.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(r>0&&t>i[0]){for(s=0;s<r-1&&!(i[s]<t&&i[s+1]>t);s++);a=n[i[s]]}if(i.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||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++){if((l=t[n]).zlevel!==t[n-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}}var i,o,a=null,s=0;for(o=0;o<t.length;o++){var l,u=(l=t[o]).zlevel,h=void 0;i!==u&&(i=u,s=0),l.incremental?((h=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,s=1):h=this.getLayer(u+(s>0?m:0),this._needsManuallyCompositing),h.__builtin__||r.vV("ZLevel "+u+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==o&&(h.__dirty=!0),h.__startIndex=o,h.incremental?h.__drawIndex=-1:h.__drawIndex=o,e(o),a=h),l.__dirty&c.M&&!l.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=o))}e(o),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,r.__(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?r.h1(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===t||o===t+m){var a=this._layers[o];r.h1(a,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(r.qh(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=(0,s.YC)(r,0,i),e=(0,s.YC)(r,1,i),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(y).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 d("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 i=e.dom.width,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):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,u=a.length;s<u;s++){var c=a[s];(0,l.V$)(n,c,o,s===u-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const x=_;function b(t){t.registerPainter("canvas",x)}},413(t,e,n){n.d(e,{A:()=>c});var i=n(5482),r=n(2551),o=n(8397),a=n(7776),s=n(7764),l=r.LI,u=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(0,i.C6)(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return s.lP(t,this._extent)},e.prototype.normalize=function(t){return s.S8(t,this._extent)},e.prototype.scale=function(t){return s.hs(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=s.u$(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]<i[0]&&(t?o.push({value:l(i[0]-e,r)}):o.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=l(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:l(s+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,u=[],c=(o.value-a.value)/t;s<t-1;){var h=l(a.value+(s+1)*c);h>i[0]&&h<i[1]&&u.push(h),s++}n.push(u)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=r.XV(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=l(t.value,n,!0);return o.ob(i)},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=s.xh(i,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 i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=l(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=l(Math.ceil(e[1]/r)*r))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(a.A);a.A.registerClass(u);const c=u},7776(t,e,n){n.d(e,{A:()=>o});var i=n(7362),r=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}();i.tQ(r);const o=r},7764(t,e,n){n.d(e,{S8:()=>c,hs:()=>h,kH:()=>a,lP:()=>u,rf:()=>r,u$:()=>s,xh:()=>o});var i=n(2551);function r(t){return"interval"===t.type||"log"===t.type}function o(t,e,n,r){var o={},a=t[1]-t[0],u=o.interval=(0,i.Cm)(a/e,!0);null!=n&&u<n&&(u=o.interval=n),null!=r&&u>r&&(u=o.interval=r);var c=o.intervalPrecision=s(u);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),l(t,0,e),l(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(o.niceTickExtent=[(0,i.LI)(Math.ceil(t[0]/u)*u,c),(0,i.LI)(Math.floor(t[1]/u)*u,c)],t),o}function a(t){var e=Math.pow(10,(0,i.NX)(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,(0,i.LI)(n*e)}function s(t){return(0,i.XV)(t)+2}function l(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function u(t,e){return t>=e[0]&&t<=e[1]}function c(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function h(t,e){return t*(e[1]-e[0])+e[0]}},7362(t,e,n){n.d(e,{CC:()=>s,Od:()=>p,_E:()=>l,gq:()=>u,q7:()=>c,tQ:()=>g});var i=n(5482),r=n(9774),o="___EC__COMPONENT__CONTAINER___",a="___EC__EXTENDED_CLASS___";function s(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function l(t){return!(!t||!t[a])}function u(t,e){t.$constructor=t,t.extend=function(t){var e,n,o=this;return n=o,r.Tn(n)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return(0,i.C6)(e,t),e}(o):(e=function(){(t.$constructor||o).apply(this,arguments)},r.B(e,this)),r.X$(e.prototype,t),e[a]=!0,e.extend=this.extend,e.superCall=d,e.superApply=f,e.superClass=o,e}}function c(t,e){t.extend=e.extend}var h=Math.round(10*Math.random());function p(t){var e=["__\0is_clz",h++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function d(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function f(t,e,n){return this.superClass.prototype[e].apply(t,n)}function g(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;if(i){n=i,r.vA(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),t.prototype.type=i;var a=s(i);if(a.sub){if(a.sub!==o){var l=function(t){var n=e[t.main];n&&n[o]||((n=e[t.main]={})[o]=!0);return n}(a);l[a.sub]=t}}else e[a.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[o]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=s(t),i=[],a=e[n.main];return a&&a[o]?r.__(a,function(t,e){e!==o&&i.push(t)}):i.push(a),i},t.hasClass=function(t){var n=s(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return r.__(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var n=s(t),i=e[n.main];return i&&i[o]}}},2359(t,e,n){n.d(e,{$Q:()=>a,A6:()=>s,G_:()=>u,vf:()=>l});var i=n(9774),r=n(7362),o=Math.round(10*Math.random());function a(t){return[t||"",o++].join("_")}function s(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=(0,r.CC)(t);e[i.main]=n},t.determineSubType=function(n,i){var o=i.type;if(!o){var a=(0,r.CC)(n).main;t.hasSubTypes(n)&&e[a]&&(o=e[a](i))}return o}}function l(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,r,o,a){if(t.length){var s=function(t){var r={},o=[];return i.__(t,function(a){var s=n(r,a),l=function(t,e){var n=[];return i.__(t,function(t){i.qh(e,t)>=0&&n.push(t)}),n}(s.originalDeps=e(a),t);s.entryCount=l.length,0===s.entryCount&&o.push(a),i.__(l,function(t){i.qh(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(r,t);i.qh(e.successor,t)<0&&e.successor.push(a)})}),{graph:r,noEntryList:o}}(r),l=s.graph,u=s.noEntryList,c={};for(i.__(t,function(t){c[t]=!0});u.length;){var h=u.pop(),p=l[h],d=!!c[h];d&&(o.call(a,h,p.originalDeps.slice()),delete c[h]),i.__(p.successor,d?g:f)}i.__(c,function(){throw new Error("")})}function f(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){c[t]=!0,f(t)}}}function u(t,e){return i.h1(i.h1({},t,!0),e,!0)}},2602(t,e,n){n.d(e,{w:()=>g});var i=Math.round(9*Math.random()),r="function"==typeof Object.defineProperty;const o=function(){function t(){this._id="__ec_inner_"+i++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return r?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}();var a=n(4361),s=n(9774),l=n(2551),u=n(4570),c=n(6111),h=n(145),p=new o,d=new a.Ay(100),f=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function g(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&p.delete(t);var o=p.get(t);if(o)return o;var a=(0,s.NT)(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 g={repeat:"repeat"};return function(t){for(var e,o=[n],p=!0,g=0;g<f.length;++g){var _=a[f[g]];if(null!=_&&!(0,s.cy)(_)&&!(0,s.Kg)(_)&&!(0,s.Et)(_)&&"boolean"!=typeof _){p=!1;break}o.push(_)}if(p){e=o.join(",")+(r?"-svg":"");var x=d.get(e);x&&(r?t.svgElement=x:t.image=x)}var b,w=y(a.dashArrayX),S=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if((0,s.Et)(t)){var e=Math.ceil(t);return[e,e]}var n=(0,s.Tj)(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}(a.dashArrayY),I=v(a.symbol),M=(k=w,(0,s.Tj)(k,function(t){return m(t)})),T=m(S),C=!r&&h.yh.createCanvas(),A=r&&{tag:"g",attrs:{},key:"dcl",children:[]},D=function(){for(var t=1,e=0,n=M.length;e<n;++e)t=(0,l.lQ)(t,M[e]);var i=1;for(e=0,n=I.length;e<n;++e)i=(0,l.lQ)(i,I[e].length);t*=i;var r=T*M.length*I.length;0;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();var k;C&&(C.width=D.width*n,C.height=D.height*n,b=C.getContext("2d"));(function(){b&&(b.clearRect(0,0,C.width,C.height),a.backgroundColor&&(b.fillStyle=a.backgroundColor,b.fillRect(0,0,C.width,C.height)));for(var t=0,e=0;e<S.length;++e)t+=S[e];if(t<=0)return;var o=-T,s=0,l=0,h=0;for(;o<D.height;){if(s%2==0){for(var p=l/2%I.length,d=0,f=0,g=0;d<2*D.width;){var v=0;for(e=0;e<w[h].length;++e)v+=w[h][e];if(v<=0)break;if(f%2==0){var y=.5*(1-a.symbolSize),m=d+w[h][f]*y,_=o+S[s]*y,x=w[h][f]*a.symbolSize,M=S[s]*a.symbolSize,k=g/2%I[p].length;P(m,_,x,M,I[p][k])}d+=w[h][f],++g,++f===w[h].length&&(f=0)}++h===w.length&&(h=0)}o+=S[s],++l,++s===S.length&&(s=0)}function P(t,e,o,s,l){var h=r?1:n,p=(0,u.v5)(l,t*h,e*h,o*h,s*h,a.color,a.symbolKeepAspect);if(r){var d=i.painter.renderOneToVNode(p);d&&A.children.push(d)}else(0,c.Xi)(b,p)}})(),p&&d.put(e,C||A);t.image=C,t.svgElement=A,t.svgWidth=D.width,t.svgHeight=D.height}(g),g.rotation=a.rotation,g.scaleX=g.scaleY=r?1:1/n,p.set(t,g),t.dirty=!1,g}function v(t){if(!t||0===t.length)return[["rect"]];if((0,s.Kg)(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!(0,s.Kg)(t[n])){e=!1;break}if(e)return v([t]);var i=[];for(n=0;n<t.length;++n)(0,s.Kg)(t[n])?i.push([t[n]]):i.push(t[n]);return i}function y(t){if(!t||0===t.length)return[[0,0]];if((0,s.Et)(t))return[[r=Math.ceil(t),r]];for(var e=!0,n=0;n<t.length;++n)if(!(0,s.Et)(t[n])){e=!1;break}if(e)return y([t]);var i=[];for(n=0;n<t.length;++n)if((0,s.Et)(t[n])){var r=Math.ceil(t[n]);i.push([r,r])}else{(r=(0,s.Tj)(t[n],function(t){return Math.ceil(t)})).length%2==1?i.push(r.concat(r)):i.push(r)}return i}function m(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}},4772(t,e,n){function i(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}n.d(e,{R:()=>i})},8397(t,e,n){n.d(e,{Cb:()=>l,JW:()=>v,QX:()=>u,YK:()=>d,he:()=>g,ob:()=>s,qg:()=>f,yC:()=>c});var i=n(9774),r=n(3499),o=n(2551),a=n(1867);function s(t){if(!(0,o.kf)(t))return i.Kg(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function l(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 u=i.QX;function c(t,e,n){function r(t){return t&&i.Bq(t)?t:"-"}function l(t){return!(null==t||isNaN(t)||!isFinite(t))}var u="time"===e,c=t instanceof Date;if(u||c){var h=u?(0,o._U)(t):t;if(!isNaN(+h))return(0,a.GP)(h,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(c)return"-"}if("ordinal"===e)return i.Lh(t)?r(t):i.Et(t)&&l(t)?t+"":"-";var p=(0,o.Sm)(t);return l(p)?s(p):i.Lh(t)?r(t):"boolean"==typeof t?t+"":"-"}var h=["a","b","c","d","e","f","g"],p=function(t,e){return"{"+t+(e??"")+"}"};function d(t,e,n){i.cy(e)||(e=[e]);var o=e.length;if(!o)return"";for(var a=e[0].$vars||[],s=0;s<a.length;s++){var l=h[s];t=t.replace(p(l),p(l,0))}for(var u=0;u<o;u++)for(var c=0;c<a.length;c++){var d=e[u][a[c]];t=t.replace(p(h[c],u),n?(0,r.Me)(d):d)}return t}function f(t,e){var n=i.Kg(t)?{color:t,extraCssText:e}:t||{},o=n.color,a=n.type;e=n.extraCssText;var s=n.renderMode||"html";return o?"html"===s?"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+(0,r.Me)(o)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+(0,r.Me)(o)+";"+(e||"")+'"></span>':{renderMode:s,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:""}function g(t,e){return e=e||"transparent",i.Kg(t)?t:i.Gv(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function v(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}},1551(t,e,n){n.r(e),n.d(e,{Arc:()=>Y.A,BezierCurve:()=>U,BoundingRect:()=>$.A,Circle:()=>k.A,CompoundPath:()=>j.A,Ellipse:()=>O,Group:()=>A.A,Image:()=>C.Ay,IncrementalDisplayable:()=>nt,Line:()=>V.A,LinearGradient:()=>Z.A,OrientedBoundingRect:()=>K.A,Path:()=>r.Ay,Point:()=>Q.A,Polygon:()=>N.A,Polyline:()=>z.A,RadialGradient:()=>q,Rect:()=>B.A,Ring:()=>R.A,Sector:()=>E.A,Text:()=>D.Ay,applyTransform:()=>St,clipPointsByRect:()=>Ct,clipRectByRect:()=>At,createIcon:()=>Dt,extendPath:()=>ht,extendShape:()=>ut,getShapeClass:()=>dt,getTransform:()=>wt,groupTransition:()=>Tt,initProps:()=>ot.LW,isElementRemoved:()=>ot.LR,lineLineIntersect:()=>Pt,linePolygonIntersect:()=>kt,makeImage:()=>gt,makePath:()=>ft,mergePath:()=>yt,registerShape:()=>pt,removeElement:()=>ot.Nz,removeElementWithFadeOut:()=>ot.t5,resizePath:()=>mt,setTooltipConfig:()=>Ot,subPixelOptimize:()=>bt,subPixelOptimizeLine:()=>_t,subPixelOptimizeRect:()=>xt,transformDirection:()=>It,traverseElements:()=>Rt,updateProps:()=>ot.oi});var i=n(5482),r=n(2834),o=n(8747),a=n(4721),s=o.A.CMD,l=[[],[],[]],u=Math.sqrt,c=Math.atan2;var h=n(9774),p=Math.sqrt,d=Math.sin,f=Math.cos,g=Math.PI;function v(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function y(t,e){return(t[0]*e[0]+t[1]*e[1])/(v(t)*v(e))}function m(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(y(t,e))}function _(t,e,n,i,r,o,a,s,l,u,c){var h=l*(g/180),v=f(h)*(t-n)/2+d(h)*(e-i)/2,_=-1*d(h)*(t-n)/2+f(h)*(e-i)/2,x=v*v/(a*a)+_*_/(s*s);x>1&&(a*=p(x),s*=p(x));var b=(r===o?-1:1)*p((a*a*(s*s)-a*a*(_*_)-s*s*(v*v))/(a*a*(_*_)+s*s*(v*v)))||0,w=b*a*_/s,S=b*-s*v/a,I=(t+n)/2+f(h)*w-d(h)*S,M=(e+i)/2+d(h)*w+f(h)*S,T=m([1,0],[(v-w)/a,(_-S)/s]),C=[(v-w)/a,(_-S)/s],A=[(-1*v-w)/a,(-1*_-S)/s],D=m(C,A);if(y(C,A)<=-1&&(D=g),y(C,A)>=1&&(D=0),D<0){var k=Math.round(D/g*1e6)/1e6;D=2*g+k%2*g}c.addData(u,I,M,a,s,T,D,h,o)}var x=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,b=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.applyTransform=function(t){},e}(r.Ay);function S(t){return null!=t.setData}function I(t,e){var n=function(t){var e=new o.A;if(!t)return e;var n,i=0,r=0,a=i,s=r,l=o.A.CMD,u=t.match(x);if(!u)return e;for(var c=0;c<u.length;c++){for(var h=u[c],p=h.charAt(0),d=void 0,f=h.match(b)||[],g=f.length,v=0;v<g;v++)f[v]=parseFloat(f[v]);for(var y=0;y<g;){var m=void 0,w=void 0,S=void 0,I=void 0,M=void 0,T=void 0,C=void 0,A=i,D=r,k=void 0,P=void 0;switch(p){case"l":i+=f[y++],r+=f[y++],d=l.L,e.addData(d,i,r);break;case"L":i=f[y++],r=f[y++],d=l.L,e.addData(d,i,r);break;case"m":i+=f[y++],r+=f[y++],d=l.M,e.addData(d,i,r),a=i,s=r,p="l";break;case"M":i=f[y++],r=f[y++],d=l.M,e.addData(d,i,r),a=i,s=r,p="L";break;case"h":i+=f[y++],d=l.L,e.addData(d,i,r);break;case"H":i=f[y++],d=l.L,e.addData(d,i,r);break;case"v":r+=f[y++],d=l.L,e.addData(d,i,r);break;case"V":r=f[y++],d=l.L,e.addData(d,i,r);break;case"C":d=l.C,e.addData(d,f[y++],f[y++],f[y++],f[y++],f[y++],f[y++]),i=f[y-2],r=f[y-1];break;case"c":d=l.C,e.addData(d,f[y++]+i,f[y++]+r,f[y++]+i,f[y++]+r,f[y++]+i,f[y++]+r),i+=f[y-2],r+=f[y-1];break;case"S":m=i,w=r,k=e.len(),P=e.data,n===l.C&&(m+=i-P[k-4],w+=r-P[k-3]),d=l.C,A=f[y++],D=f[y++],i=f[y++],r=f[y++],e.addData(d,m,w,A,D,i,r);break;case"s":m=i,w=r,k=e.len(),P=e.data,n===l.C&&(m+=i-P[k-4],w+=r-P[k-3]),d=l.C,A=i+f[y++],D=r+f[y++],i+=f[y++],r+=f[y++],e.addData(d,m,w,A,D,i,r);break;case"Q":A=f[y++],D=f[y++],i=f[y++],r=f[y++],d=l.Q,e.addData(d,A,D,i,r);break;case"q":A=f[y++]+i,D=f[y++]+r,i+=f[y++],r+=f[y++],d=l.Q,e.addData(d,A,D,i,r);break;case"T":m=i,w=r,k=e.len(),P=e.data,n===l.Q&&(m+=i-P[k-4],w+=r-P[k-3]),i=f[y++],r=f[y++],d=l.Q,e.addData(d,m,w,i,r);break;case"t":m=i,w=r,k=e.len(),P=e.data,n===l.Q&&(m+=i-P[k-4],w+=r-P[k-3]),i+=f[y++],r+=f[y++],d=l.Q,e.addData(d,m,w,i,r);break;case"A":S=f[y++],I=f[y++],M=f[y++],T=f[y++],C=f[y++],_(A=i,D=r,i=f[y++],r=f[y++],T,C,S,I,M,d=l.A,e);break;case"a":S=f[y++],I=f[y++],M=f[y++],T=f[y++],C=f[y++],_(A=i,D=r,i+=f[y++],r+=f[y++],T,C,S,I,M,d=l.A,e)}}"z"!==p&&"Z"!==p||(d=l.Z,e.addData(d),i=a,r=s),n=d}return e.toStatic(),e}(t),i=(0,h.X$)({},e);return i.buildPath=function(t){var e,i=S(t);i&&t.canSave()?(t.appendPath(n),(e=t.getContext())&&t.rebuildPath(e,1)):(e=i?t.getContext():t)&&n.rebuildPath(e,1)},i.applyTransform=function(t){!function(t,e){if(e){var n,i,r,o,h,p,d=t.data,f=t.len(),g=s.M,v=s.C,y=s.L,m=s.R,_=s.A,x=s.Q;for(r=0,o=0;r<f;){switch(n=d[r++],o=r,i=0,n){case g:case y:i=1;break;case v:i=3;break;case x:i=2;break;case _:var b=e[4],w=e[5],S=u(e[0]*e[0]+e[1]*e[1]),I=u(e[2]*e[2]+e[3]*e[3]),M=c(-e[1]/I,e[0]/S);d[r]*=S,d[r++]+=b,d[r]*=I,d[r++]+=w,d[r++]*=S,d[r++]*=I,d[r++]+=M,d[r++]+=M,o=r+=2;break;case m:p[0]=d[r++],p[1]=d[r++],(0,a.NW)(p,p,e),d[o++]=p[0],d[o++]=p[1],p[0]+=d[r++],p[1]+=d[r++],(0,a.NW)(p,p,e),d[o++]=p[0],d[o++]=p[1]}for(h=0;h<i;h++){var T=l[h];T[0]=d[r++],T[1]=d[r++],(0,a.NW)(T,T,e),d[o++]=T[0],d[o++]=T[1]}}t.increaseVersion()}}(n,t),this.dirtyShape()},i}var M=n(6239),T=n(128),C=n(6440),A=n(7786),D=n(2070),k=n(9471),P=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},L=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new P},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(r.Ay);L.prototype.type="ellipse";const O=L;var E=n(6498),R=n(8577),N=n(9717),z=n(9935),B=n(6078),V=n(8401),F=n(631),H=[],W=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function G(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?F.rD:F.Yb)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?F.rD:F.Yb)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?F.z7:F.k3)(t.x1,t.cpx1,t.x2,e),(n?F.z7:F.k3)(t.y1,t.cpy1,t.y2,e)]}var X=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new W},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=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,i),null==l||null==u?(c<1&&((0,F.kx)(n,a,r,c,H),a=H[1],r=H[2],(0,F.kx)(i,s,o,c,H),s=H[1],o=H[2]),t.quadraticCurveTo(a,s,r,o)):(c<1&&((0,F.YT)(n,a,l,r,c,H),a=H[1],l=H[2],r=H[3],(0,F.YT)(i,s,u,o,c,H),s=H[1],u=H[2],o=H[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return G(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=G(this.shape,t,!0);return a.S8(e,e)},e}(r.Ay);X.prototype.type="bezier-curve";const U=X;var Y=n(9987),j=n(3859),Z=n(1888);const q=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=e??.5,a.y=n??.5,a.r=i??.5,a.type="radial",a.global=o||!1,a}return(0,i.C6)(e,t),e}(n(7605).A);var $=n(7544),K=n(4632),Q=n(7270),J=n(8211),tt=[],et=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(0,i.C6)(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 $.A(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(tt)),t.union(i)}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 i=0;i<this._displayables.length;i++){if(this._displayables[i].contain(t,e))return!0}return!1},e}(J.Ay);const nt=et;var it=n(2653),rt=n(6295),ot=n(4159),at=Math.max,st=Math.min,lt={};function ut(t){return r.Ay.extend(t)}var ct=function(t,e){var n=I(t,e);return function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return(0,i.C6)(e,t),e}(w)};function ht(t,e){return ct(t,e)}function pt(t,e){lt[t]=e}function dt(t){if(lt.hasOwnProperty(t))return lt[t]}function ft(t,e,n,i){var r=function(t,e){return new w(I(t,e))}(t,e);return n&&("center"===i&&(n=vt(n,r.getBoundingRect())),mt(r,n)),r}function gt(t,e,n){var i=new C.Ay({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(vt(e,r))}}});return i}function vt(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var yt=function(t,e){for(var n=[],i=t.length,o=0;o<i;o++){var a=t[o];n.push(a.getUpdatedPathProxy(!0))}var s=new r.Ay(e);return s.createPathProxy(),s.buildPath=function(t){if(S(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},s};function mt(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function _t(t,e){return it.eB(t,t,{lineWidth:e}),t}function xt(t){return it.Op(t.shape,t.shape,t.style),t}var bt=it.M7;function wt(t,e){for(var n=M.D_([]);t&&t!==e;)M.lK(n,t.getLocalTransform(),n),t=t.parent;return n}function St(t,e,n){return e&&!(0,h.Xj)(e)&&(e=T.Ay.getLocalTransform(e)),n&&(e=M.B8([],e)),a.NW([],t,e)}function It(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=St(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Mt(t){return!t.isGroup}function Tt(t,e,n){if(t&&e){var i,r=(i={},t.traverse(function(t){Mt(t)&&t.anid&&(i[t.anid]=t)}),i);e.traverse(function(t){if(Mt(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),(0,ot.oi)(t,i,n,(0,rt.z)(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=(0,h.X$)({},t.shape)),e}}function Ct(t,e){return(0,h.Tj)(t,function(t){var n=t[0];n=at(n,e.x),n=st(n,e.x+e.width);var i=t[1];return i=at(i,e.y),[n,i=st(i,e.y+e.height)]})}function At(t,e){var n=at(t.x,e.x),i=st(t.x+t.width,e.x+e.width),r=at(t.y,e.y),o=st(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Dt(t,e,n){var i=(0,h.X$)({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),(0,h.NT)(r,n),new C.Ay(i)):ft(t.replace("path://",""),i,n,"center")}function kt(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Pt(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function Pt(t,e,n,i,r,o,a,s){var l,u=n-t,c=i-e,h=a-r,p=s-o,d=Lt(h,p,u,c);if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,v=Lt(f,g,u,c)/d;if(v<0||v>1)return!1;var y=Lt(f,g,h,p)/d;return!(y<0||y>1)}function Lt(t,e,n,i){return t*i-n*e}function Ot(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=(0,h.Kg)(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&(0,h.__)((0,h.HP)(l),function(t){(0,h.$3)(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=(0,rt.z)(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:(0,h.NT)({content:i,formatterParams:s},r)}}function Et(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Rt(t,e){if(t)if((0,h.cy)(t))for(var n=0;n<t.length;n++)Et(t[n],e);else Et(t,e)}pt("circle",k.A),pt("ellipse",O),pt("sector",E.A),pt("ring",R.A),pt("polygon",N.A),pt("polyline",z.A),pt("rect",B.A),pt("line",V.A),pt("bezierCurve",U),pt("arc",Y.A)},6295(t,e,n){n.d(e,{a:()=>r,z:()=>i});var i=(0,n(9269).$r)(),r=function(t,e,n,r){if(r){var o=i(r);o.dataIndex=n,o.dataType=e,o.seriesIndex=t,"group"===r.type&&r.traverse(function(r){var o=i(r);o.seriesIndex=t,o.dataIndex=n,o.dataType=e})}}},6196(t,e,n){n.d(e,{YA:()=>g,aP:()=>h,ad:()=>f,dV:()=>p,m$:()=>d,vs:()=>v});var i=n(9774),r=n(7544),o=n(2551),a=n(8397),s=i.__,l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function c(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var c,h,p=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if("horizontal"===t){var g=p.width+(f?-f.x+p.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(f?-f.y+p.y:0);(h=a+v)>r||l.newline?(o+=s+n,a=0,h=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)})}var h=c;i.cF(c,"vertical"),i.cF(c,"horizontal");function p(t,e,n){n=a.QX(n||0);var i=e.width,s=e.height,l=(0,o.lo)(t.left,i),u=(0,o.lo)(t.top,s),c=(0,o.lo)(t.right,i),h=(0,o.lo)(t.bottom,s),p=(0,o.lo)(t.width,i),d=(0,o.lo)(t.height,s),f=n[2]+n[0],g=n[1]+n[3],v=t.aspect;switch(isNaN(p)&&(p=i-c-g-l),isNaN(d)&&(d=s-h-f-u),null!=v&&(isNaN(p)&&isNaN(d)&&(v>i/s?p=.8*i:d=.8*s),isNaN(p)&&(p=v*d),isNaN(d)&&(d=p/v)),isNaN(l)&&(l=i-c-p-g),isNaN(u)&&(u=s-h-d-f),t.left||t.right){case"center":l=i/2-p/2-n[3];break;case"right":l=i-p-g}switch(t.top||t.bottom){case"middle":case"center":u=s/2-d/2-n[0];break;case"bottom":u=s-d-f}l=l||0,u=u||0,isNaN(p)&&(p=i-g-l-(c||0)),isNaN(d)&&(d=s-f-u-(h||0));var y=new r.A(l+n[3],u+n[0],p,d);return y.margin=n,y}function d(t,e,n,o,a,s){var l,u=!a||!a.hv||a.hv[0],c=!a||!a.hv||a.hv[1],h=a&&a.boundingMode||"all";if((s=s||t).x=t.x,s.y=t.y,!u&&!c)return!1;if("raw"===h)l="group"===t.type?new r.A(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var d=t.getLocalTransform();(l=l.clone()).applyTransform(d)}var f=p(i.NT({width:l.width,height:l.height},e),n,o),g=u?f.x-l.x:0,v=c?f.y-l.y:0;return"raw"===h?(s.x=g,s.y=v):(s.x+=g,s.y+=v),s===t&&t.markRedraw(),!0}function f(t){var e=t.layoutMode||t.constructor.layoutMode;return i.Gv(e)?e:e?{type:e}:null}function g(t,e,n){var r=n&&n.ignoreSize;!i.cy(r)&&(r=[r,r]);var o=l(u[0],0),a=l(u[1],1);function l(n,i){var o={},a=0,l={},u=0;if(s(n,function(e){l[e]=t[e]}),s(n,function(t){c(e,t)&&(o[t]=l[t]=e[t]),h(o,t)&&a++,h(l,t)&&u++}),r[i])return h(e,n[1])?l[n[2]]=null:h(e,n[2])&&(l[n[1]]=null),l;if(2!==u&&a){if(a>=2)return o;for(var p=0;p<n.length;p++){var d=n[p];if(!c(o,d)&&c(t,d)){o[d]=t[d];break}}return o}return l}function c(t,e){return t.hasOwnProperty(e)}function h(t,e){return null!=t[e]&&"auto"!==t[e]}function p(t,e,n){s(t,function(t){e[t]=n[t]})}p(u[0],t,o),p(u[1],t,a)}function v(t){return function(t,e){return e&&t&&s(l,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}({},t)}},2594(t,e,n){n.d(e,{$8:()=>r,aT:()=>i});"undefined"!=typeof console&&console.warn&&console.log;function i(t){0}function r(t){throw new Error(t)}},9269(t,e,n){n.d(e,{$r:()=>S,Bq:()=>k,D$:()=>P,D6:()=>b,GX:()=>x,HB:()=>T,Il:()=>O,JO:()=>D,JS:()=>h,M5:()=>c,O0:()=>m,O2:()=>f,US:()=>C,UW:()=>A,XJ:()=>L,_e:()=>M,le:()=>w,oh:()=>_,qB:()=>u,vS:()=>y,vj:()=>p,zu:()=>d});var i=n(9774),r=n(8311),o=n(2551);function a(t,e,n){return(e-t)*n+t}var s="series\0",l="\0_ec_\0";function u(t){return t instanceof Array?t:null==t?[]:[t]}function c(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var h=["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 p(t){return!(0,i.Gv)(t)||(0,i.cy)(t)||t instanceof Date?t:t.value}function d(t){return(0,i.Gv)(t)&&!(t instanceof Array)}function f(t,e,n){var r="normalMerge"===n,o="replaceMerge"===n,a="replaceAll"===n;t=t||[],e=(e||[]).slice();var l=(0,i.nt)();(0,i.__)(e,function(t,n){(0,i.Gv)(t)||(e[n]=null)});var u,c,h=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||_(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,l,n);return(r||o)&&function(t,e,n,r){(0,i.__)(r,function(o,a){if(o&&null!=o.id){var s=v(o.id),l=n.get(s);if(null!=l){var u=t[l];(0,i.vA)(!u.newOption,'Duplicated option on id "'+s+'".'),u.newOption=o,u.existing=e[l],r[a]=null}}})}(h,t,l,e),r&&function(t,e){(0,i.__)(e,function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!_(n)&&!_(o)&&g("name",o,n))return t[r].newOption=n,void(e[i]=null)}})}(h,e),r||o?function(t,e,n){(0,i.__)(e,function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||_(i.existing)||i.existing&&null!=e.id&&!g("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}})}(h,e,o):a&&function(t,e){(0,i.__)(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}(h,e),u=h,c=(0,i.nt)(),(0,i.__)(u,function(t){var e=t.existing;e&&c.set(e.id,t)}),(0,i.__)(u,function(t){var e=t.newOption;(0,i.vA)(!e||null==e.id||!c.get(e.id)||c.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&c.set(e.id,t),!t.keyInfo&&(t.keyInfo={})}),(0,i.__)(u,function(t,e){var n=t.existing,r=t.newOption,o=t.keyInfo;if((0,i.Gv)(r)){if(o.name=null!=r.name?v(r.name):n?n.name:s+e,n)o.id=v(n.id);else if(null!=r.id)o.id=v(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(c.get(o.id))}c.set(o.id,t)}}),h}function g(t,e,n){var i=y(e[t],null),r=y(n[t],null);return null!=i&&null!=r&&i===r}function v(t){return y(t,"")}function y(t,e){return null==t?e:(0,i.Kg)(t)?t:(0,i.Et)(t)||(0,i.Lh)(t)?t+"":e}function m(t){var e=t.name;return!(!e||!e.indexOf(s))}function _(t){return t&&null!=t.id&&0===v(t.id).indexOf(l)}function x(t,e,n){(0,i.__)(t,function(t){var r=t.newOption;(0,i.Gv)(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){var r=e.type?e.type:n?n.subType:i.determineSubType(t,e);return r}(e,r,t.existing,n))})}function b(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++){var o=y(t[i].seriesId,null);if(null==o)return;for(var a=u(t[i].dataIndex),s=n&&n[o],l=0,c=a.length;l<c;l++){var h=a[l];s&&s[h]?s[h]=null:(e[o]||(e[o]={}))[h]=1}}}function o(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=o(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function w(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?(0,i.cy)(e.dataIndex)?(0,i.Tj)(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?(0,i.cy)(e.name)?(0,i.Tj)(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function S(){var t="__ec_inner_"+I++;return function(e){return e[t]||(e[t]={})}}var I=(0,o.IH)();function M(t,e,n){var i=T(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each(function(e,i){var r=D(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]}),a}function T(t,e){var n;if((0,i.Kg)(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var o=(0,i.nt)(),a={},s=!1;return(0,i.__)(n,function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],l=r[1],u=(r[2]||"").toLowerCase();if(l&&u&&!(e&&e.includeMainTypes&&(0,i.qh)(e.includeMainTypes,l)<0))s=s||!!l,(o.get(l)||o.set(l,{}))[u]=t}else a[n]=t}),{mainTypeSpecified:s,queryOptionMap:o,others:a}}var C={useDefault:!0,enableAll:!1,enableNone:!1},A={useDefault:!1,enableAll:!0,enableNone:!0};function D(t,e,n,r){r=r||C;var o=n.index,a=n.id,s=n.name,l={models:null,specified:null!=o||null!=a||null!=s};if(!l.specified){var u=void 0;return l.models=r.useDefault&&(u=t.getComponent(e))?[u]:[],l}return"none"===o||!1===o?((0,i.vA)(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===o&&((0,i.vA)(r.enableAll,'`"all"` is not a valid value on index option.'),o=a=s=null),l.models=t.queryComponents({mainType:e,index:o,id:a,name:s}),l)}function k(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function P(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function L(t){return"auto"===t?r.A.domSupported?"html":"richText":t||"html"}function O(t,e,n,r,s){var l=null==e||"auto"===e;if(null==r)return r;if((0,i.Et)(r)){var u=a(n||0,r,s);return(0,o.LI)(u,l?Math.max((0,o.XV)(n||0),(0,o.XV)(r)):e)}if((0,i.Kg)(r))return s<1?n:r;for(var c=[],h=n,p=r,d=Math.max(h?h.length:0,p.length),f=0;f<d;++f){var g=t.getDimensionInfo(f);if(g&&"ordinal"===g.type)c[f]=(s<1&&h?h:p)[f];else{var v=h&&h[f]?h[f]:0,y=p[f];u=a(v,y,s);c[f]=(0,o.LI)(u,l?Math.max((0,o.XV)(v),(0,o.XV)(y)):e)}}return c}},2551(t,e,n){n.d(e,{Cb:()=>o,Cm:()=>_,IH:()=>S,LI:()=>s,NX:()=>m,Sm:()=>b,Tr:()=>p,XV:()=>u,Y6:()=>l,_7:()=>d,_U:()=>v,au:()=>y,dh:()=>f,hb:()=>c,kM:()=>h,kf:()=>w,lQ:()=>M,lo:()=>a,sL:()=>x});var i=n(9774),r=1e-4;function o(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function a(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 i.Kg(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function s(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function l(t){return t.sort(function(t,e){return t-e}),t}function u(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return function(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}(t)}function c(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function h(t,e){var n=i.TS(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var r=Math.pow(10,e),o=i.Tj(t,function(t){return(isNaN(t)?0:t)/n*r*100}),a=100*r,s=i.Tj(o,function(t){return Math.floor(t)}),l=i.TS(s,function(t,e){return t+e},0),u=i.Tj(o,function(t,e){return t-s[e]});l<a;){for(var c=Number.NEGATIVE_INFINITY,h=null,p=0,d=u.length;p<d;++p)u[p]>c&&(c=u[p],h=p);++s[h],u[h]=0,++l}return i.Tj(s,function(t){return t/r})}function p(t,e){var n=Math.max(u(t),u(e)),i=t+e;return n>20?i:s(i,n)}function d(t){var e=2*Math.PI;return(t%e+e)%e}function f(t){return t>-1e-4&&t<r}var g=/^(?:(\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 v(t){if(t instanceof Date)return t;if(i.Kg(t)){var e=g.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 y(t){return Math.pow(10,m(t))}function m(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 _(t,e){var n=m(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function x(t){t.sort(function(t,e){return s(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!==1?t.splice(i,1):i++}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 b(t){var e=parseFloat(t);return e==t&&(0!==e||!i.Kg(t)||t.indexOf("x")<=0)?e:NaN}function w(t){return!isNaN(b(t))}function S(){return Math.round(9*Math.random())}function I(t,e){return 0===e?t:I(e,t%e)}function M(t,e){return null==t?e:null==e?t:t*e/I(t,e)}},4156(t,e,n){n.d(e,{BV:()=>g,Du:()=>Z,HY:()=>V,Iz:()=>Q,JC:()=>W,JI:()=>G,Lm:()=>it,Lv:()=>_,Lx:()=>ct,Mx:()=>at,PW:()=>m,Pk:()=>E,Q6:()=>b,QX:()=>H,SD:()=>F,T$:()=>ht,Tl:()=>$,U2:()=>x,_m:()=>K,_n:()=>ut,e3:()=>f,fz:()=>pt,gd:()=>X,h5:()=>y,iJ:()=>nt,ix:()=>st,jA:()=>tt,lV:()=>q,mc:()=>et,qR:()=>Y,t6:()=>J,u6:()=>lt,wV:()=>v,zX:()=>d});var i=n(4361),r=n(9774),o=n(6295),a=n(9886),s=n(9269),l=n(2834),u=1,c={},h=(0,s.$r)(),p=(0,s.$r)(),d=1,f=2,g=["emphasis","blur","select"],v=["normal","emphasis","blur","select"],y="highlight",m="downplay",_="select",x="unselect",b="toggleSelect";function w(t){return null!=t&&"none"!==t}var S=new i.Ay(100);function I(t){if((0,r.Kg)(t)){var e=S.get(t);return e||(e=a.yY(t,-.1),S.put(t,e)),e}if((0,r.C7)(t)){var n=(0,r.X$)({},t);return n.colorStops=(0,r.Tj)(t.colorStops,function(t){return{offset:t.offset,color:a.yY(t.color,-.1)}}),n}return t}function M(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function T(t){M(t,"emphasis",f)}function C(t){t.hoverState===f&&M(t,"normal",0)}function A(t){M(t,"blur",d)}function D(t){t.hoverState===d&&M(t,"normal",0)}function k(t){t.selected=!0}function P(t){t.selected=!1}function L(t,e,n){e(t,n)}function O(t,e,n){L(t,e,n),t.isGroup&&t.traverse(function(t){L(t,e,n)})}function E(t,e){switch(e){case"emphasis":t.hoverState=f;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=d;break;case"select":t.selected=!0}}function R(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,i){var o=n&&(0,r.qh)(n,"select")>=0,a=!1;if(t instanceof l.Ay){var s=h(t),u=o&&s.selectFill||s.normalFill,c=o&&s.selectStroke||s.normalStroke;if(w(u)||w(c)){var p=(i=i||{}).style||{};"inherit"===p.fill?(a=!0,i=(0,r.X$)({},i),(p=(0,r.X$)({},p)).fill=u):!w(p.fill)&&w(u)?(a=!0,i=(0,r.X$)({},i),(p=(0,r.X$)({},p)).fill=I(u)):!w(p.stroke)&&w(c)&&(a||(i=(0,r.X$)({},i),p=(0,r.X$)({},p)),p.stroke=I(c)),i.style=p}}if(i&&null==i.z2){a||(i=(0,r.X$)({},i));var d=t.z2EmphasisLift;i.z2=t.z2+(null!=d?d:10)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=(0,r.qh)(t.currentStates,e)>=0,o=t.style.opacity,a=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=l??(i&&i[s])}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}),s=(n=n||{}).style||{};return null==s.opacity&&(n=(0,r.X$)({},n),s=(0,r.X$)({opacity:i?o:.1*a.opacity},s),n.style=s),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=(0,r.X$)({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:9)}return n}(this,0,n)}return n}function N(t){t.stateProxy=R;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=R),n&&(n.stateProxy=R)}function z(t,e){!U(t,e)&&!t.__highByOuter&&O(t,T)}function B(t,e){!U(t,e)&&!t.__highByOuter&&O(t,C)}function V(t,e){t.__highByOuter|=1<<(e||0),O(t,T)}function F(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&O(t,C)}function H(t){O(t,A)}function W(t){O(t,D)}function G(t){O(t,k)}function X(t){O(t,P)}function U(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Y(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=p(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse(function(t){D(t)}),a&&n.push(r)),o.isBlured=!1}),(0,r.__)(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function j(t,e,n,i){var o=i.getModel();function a(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&W(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var s=o.getSeriesByIndex(t),l=s.coordinateSystem;l&&l.master&&(l=l.master);var u=[];o.eachSeries(function(t){var o=s===t,c=t.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===n&&!o||"coordinateSystem"===n&&!(c&&l?c===l:o)||"series"===e&&o)){if(i.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&o&&"self"===e||A(t)}),(0,r.Xj)(e))a(t.getData(),e);else if((0,r.Gv)(e))for(var h=(0,r.HP)(e),d=0;d<h.length;d++)a(t.getData(h[d]),e[h[d]]);u.push(t),p(t).isBlured=!0}}),o.eachComponent(function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(u,!0,o)}})}}function Z(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){p(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(t){A(t)})}}}function q(t,e,n){var i=t.seriesIndex,a=t.getData(e.dataType);if(a){var l=(0,s.le)(a,e);l=((0,r.cy)(l)?l[0]:l)||0;var u=a.getItemGraphicEl(l);if(!u)for(var c=a.count(),h=0;!u&&h<c;)u=a.getItemGraphicEl(h++);if(u){var p=(0,o.z)(u);j(i,p.focus,p.blurScope,n)}else{var d=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);null!=d&&j(i,d,f,n)}}}function $(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var a=i.getModel().getComponent(t,e);if(!a)return r;var s=i.getViewOfComponentModel(a);if(!s||!s.findHighDownDispatchers)return r;for(var l,u=s.findHighDownDispatchers(n),c=0;c<u.length;c++)if("self"===(0,o.z)(u[c]).focus){l=!0;break}return{focusSelf:l,dispatchers:u}}function K(t,e,n){var i=(0,o.z)(t),a=$(i.componentMainType,i.componentIndex,i.componentHighDownName,n),s=a.dispatchers,l=a.focusSelf;s?(l&&Z(i.componentMainType,i.componentIndex,n),(0,r.__)(s,function(t){return z(t,e)})):(j(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&Z(i.componentMainType,i.componentIndex,n),z(t,e))}function Q(t,e,n){Y(n);var i=(0,o.z)(t),a=$(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;a?(0,r.__)(a,function(t){return B(t,e)}):B(t,e)}function J(t,e,n){if(ct(e)){var i=e.dataType,o=t.getData(i),a=(0,s.le)(o,e);(0,r.cy)(a)||(a=[a]),t[e.type===b?"toggleSelect":e.type===_?"select":"unselect"](a,i)}}function tt(t){var e=t.getAllData();(0,r.__)(e,function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,i)?G(e):X(e)})})}function et(t){var e=[];return t.eachSeries(function(t){var n=t.getAllData();(0,r.__)(n,function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function nt(t,e,n){st(t,!0),O(t,N),function(t,e,n){var i=(0,o.z)(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}(t,e,n)}function it(t,e,n,i){i?function(t){st(t,!1)}(t):nt(t,e,n)}var rt=["emphasis","blur","select"],ot={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function at(t,e,n,i){n=n||"itemStyle";for(var r=0;r<rt.length;r++){var o=rt[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[ot[n]]()}}function st(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function lt(t){return!(!t||!t.__highDownDispatcher)}function ut(t){var e=c[t];return null==e&&u<=32&&(e=c[t]=u++),e}function ct(t){var e=t.type;return e===_||e===x||e===b}function ht(t){var e=t.type;return e===y||e===m}function pt(t){var e=h(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}},4570(t,e,n){n.d(e,{$V:()=>m,hV:()=>S,v5:()=>b,xU:()=>w});var i=n(9774),r=n(1551),o=n(2834),a=n(9471),s=n(6078),l=n(8401),u=n(7544),c=n(6066),h=n(2551),p=o.Ay.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),d=o.Ay.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),f=o.Ay.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),p=Math.cos(u),d=.6*a,f=.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*d,l+s+p*d,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-c+h*d,l+s+p*d,n-c,l+s),t.closePath()}}),g=o.Ay.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),v={line:l.A,rect:s.A,roundRect:s.A,square:s.A,circle:a.A,diamond:d,pin:f,arrow:g,triangle:p},y={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},m={};(0,i.__)(v,function(t,e){m[e]=new t});var _=o.Ay.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=(0,c.X4)(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=m[i];r||(r=m[i="rect"]),y[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function x(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 b(t,e,n,i,o,a,s){var l,c=0===t.indexOf("empty");return c&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(l=0===t.indexOf("image://")?r.makeImage(t.slice(8),new u.A(e,n,i,o),s?"center":"cover"):0===t.indexOf("path://")?r.makePath(t.slice(7),{},new u.A(e,n,i,o),s?"center":"cover"):new _({shape:{symbolType:t,x:e,y:n,width:i,height:o}})).__isEmptyBrush=c,l.setColor=x,a&&l.setColor(a),l}function w(t){return(0,i.cy)(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function S(t,e){if(null!=t)return(0,i.cy)(t)||(t=[t,t]),[(0,h.lo)(t[0],e[0])||0,(0,h.lo)((0,i.bZ)(t[1],t[0]),e[1])||0]}},6070(t,e,n){n.d(e,{IU:()=>l,N:()=>s,nF:()=>a});var i="\0__throttleOriginMethod",r="\0__throttleRate",o="\0__throttleType";function a(t,e,n){var i,r,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];i=(new Date).getTime(),o=this,a=t;var d=s||e,f=s||n;s=null,r=i-(f?l:u)-d,clearTimeout(c),f?c=setTimeout(h,d):r>=0?h():c=setTimeout(h,-r),l=i};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){s=t},p}function s(t,e,n,s){var l=t[e];if(l){var u=l[i]||l,c=l[o];if(l[r]!==n||c!==s){if(null==n||!s)return t[e]=u;(l=t[e]=a(u,n,"debounce"===s))[i]=u,l[o]=s,l[r]=n}return l}}function l(t,e){var n=t[e];n&&n[i]&&(n.clear&&n.clear(),t[e]=n[i])}},1867(t,e,n){n.d(e,{$9:()=>x,$H:()=>h,CZ:()=>c,F7:()=>v,FP:()=>B,GP:()=>b,KF:()=>N,Lm:()=>f,MA:()=>u,OY:()=>s,Wf:()=>k,X_:()=>w,Yd:()=>R,Zz:()=>P,bP:()=>C,ce:()=>_,g0:()=>I,hY:()=>M,iC:()=>A,iW:()=>l,jJ:()=>T,tM:()=>L,ti:()=>E,ww:()=>z,xu:()=>O,yB:()=>D,ym:()=>m});var i=n(9774),r=n(2551),o=n(9186),a=n(846),s=1e3,l=60*s,u=60*l,c=24*u,h=365*c,p={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}"},d="{yyyy}-{MM}-{dd}",f={year:"{yyyy}",month:"{yyyy}-{MM}",day:d,hour:d+" "+p.hour,minute:d+" "+p.minute,second:d+" "+p.second,millisecond:p.none},g=["year","month","day","hour","minute","second","millisecond"],v=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function y(t,e){return"0000".substr(0,e-(t+="").length)+t}function m(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 _(t){return t===m(t)}function x(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function b(t,e,n,i){var s=r._U(t),l=s[M(n)](),u=s[T(n)]()+1,c=Math.floor((u-1)/3)+1,h=s[C(n)](),p=s["get"+(n?"UTC":"")+"Day"](),d=s[A(n)](),f=(d-1)%12+1,g=s[D(n)](),v=s[k(n)](),m=s[P(n)](),_=(i instanceof a.A?i:(0,o.A4)(i||o.Lv)||(0,o.pr)()).getModel("time"),x=_.get("month"),b=_.get("monthAbbr"),w=_.get("dayOfWeek"),S=_.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,y(l%100+"",2)).replace(/{Q}/g,c+"").replace(/{MMMM}/g,x[u-1]).replace(/{MMM}/g,b[u-1]).replace(/{MM}/g,y(u,2)).replace(/{M}/g,u+"").replace(/{dd}/g,y(h,2)).replace(/{d}/g,h+"").replace(/{eeee}/g,w[p]).replace(/{ee}/g,S[p]).replace(/{e}/g,p+"").replace(/{HH}/g,y(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,y(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,y(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,y(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,y(m,3)).replace(/{S}/g,m+"")}function w(t,e,n,r,o){var a=null;if(i.Kg(n))a=n;else if(i.Tn(n))a=n(t.value,e,{level:t.level});else{var s=i.X$({},p);if(t.level>0)for(var l=0;l<g.length;++l)s[g[l]]="{primary|"+s[g[l]]+"}";var u=n?!1===n.inherit?n:i.NT(n,s):s,c=S(t.value,o);if(u[c])a=u[c];else if(u.inherit){for(l=v.indexOf(c)-1;l>=0;--l)if(u[c]){a=u[c];break}a=a||s.none}if(i.cy(a)){var h=null==t.level?0:t.level>=0?t.level:a.length+t.level;a=a[h=Math.min(h,a.length-1)]}}return b(new Date(t.value),a,o,r)}function S(t,e){var n=r._U(t),i=n[T(e)]()+1,o=n[C(e)](),a=n[A(e)](),s=n[D(e)](),l=n[k(e)](),u=0===n[P(e)](),c=u&&0===l,h=c&&0===s,p=h&&0===a,d=p&&1===o;return d&&1===i?"year":d?"month":p?"day":h?"hour":c?"minute":u?"second":"millisecond"}function I(t,e,n){var o=i.Et(t)?r._U(t):t;switch(e=e||S(t,n)){case"year":return o[M(n)]();case"half-year":return o[T(n)]()>=6?1:0;case"quarter":return Math.floor((o[T(n)]()+1)/4);case"month":return o[T(n)]();case"day":return o[C(n)]();case"half-day":return o[A(n)]()/24;case"hour":return o[A(n)]();case"minute":return o[D(n)]();case"second":return o[k(n)]();case"millisecond":return o[P(n)]()}}function M(t){return t?"getUTCFullYear":"getFullYear"}function T(t){return t?"getUTCMonth":"getMonth"}function C(t){return t?"getUTCDate":"getDate"}function A(t){return t?"getUTCHours":"getHours"}function D(t){return t?"getUTCMinutes":"getMinutes"}function k(t){return t?"getUTCSeconds":"getSeconds"}function P(t){return t?"getUTCMilliseconds":"getMilliseconds"}function L(t){return t?"setUTCFullYear":"setFullYear"}function O(t){return t?"setUTCMonth":"setMonth"}function E(t){return t?"setUTCDate":"setDate"}function R(t){return t?"setUTCHours":"setHours"}function N(t){return t?"setUTCMinutes":"setMinutes"}function z(t){return t?"setUTCSeconds":"setSeconds"}function B(t){return t?"setUTCMilliseconds":"setMilliseconds"}},8125(t,e,n){n.d(e,{Km:()=>o,Pe:()=>i,Wk:()=>a,XO:()=>l,i_:()=>c,mK:()=>r,oC:()=>h,t1:()=>s,vm:()=>u});var i=(0,n(9774).nt)(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),r="original",o="arrayRows",a="objectRows",s="keyedColumns",l="typedArray",u="unknown",c="column",h="row"},2984(t,e,n){n.d(e,{J:()=>a});var i=n(9774),r="undefined"!=typeof Float32Array,o=r?Float32Array:Array;function a(t){return(0,i.cy)(t)?r?new Float32Array(t):t:new o(t)}},9669(t,e,n){n.d(e,{A:()=>x});var i=n(9774),r=n(7786),o=n(2359),a=n(7362),s=n(9269),l=n(4156),u=n(6898),c=n(6305),h=n(1551),p=s.$r(),d=(0,c.A)(),f=function(){function t(){this.group=new r.A,this.uid=o.$Q("viewChart"),this.renderTask=(0,u.U)({plan:y,reset:m}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){0},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&v(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&v(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){(0,h.traverseElements)(this.group,t)},t.markUpdateMethod=function(t,e){p(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function g(t,e,n){t&&(0,l.u6)(t)&&("emphasis"===e?l.HY:l.SD)(t,n)}function v(t,e,n){var r=s.le(t,e),o=e&&null!=e.highlightKey?(0,l._n)(e.highlightKey):null;null!=r?(0,i.__)(s.qB(r),function(e){g(t.getItemGraphicEl(e),n,o)}):t.eachItemGraphicEl(function(t){g(t,n,o)})}function y(t){return d(t.model)}function m(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&p(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),_[l]}a.gq(f,["dispose"]),a.tQ(f);var _={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)}}};const x=f},8686(t,e,n){n.d(e,{A:()=>s});var i=n(7786),r=n(2359),o=n(7362),a=function(){function t(){this.group=new i.A,this.uid=r.$Q("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();o.gq(a),o.tQ(a);const s=a},1790(t,e,n){function i(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 r(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 o(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i)}}n.d(e,{Ez:()=>i,oZ:()=>o,rI:()=>r})},9206(t){t.exports=require("react")},5482(t,e,n){n.d(e,{C6:()=>r});var i=function(t,e){return i=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])},i(t,e)};function r(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}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError},8994(t,e,n){n.d(e,{A:()=>I});var i=n(128),r=n(9264),o=n(7544),a=n(1969),s=n(6066),l=n(9774),u=n(6486),c=n(9886),h=n(6684),p=n(6239),d="__zr_normal__",f=i.Wx.concat(["ignore"]),g=(0,l.TS)(i.Wx,function(t,e){return t[e]=!0,t},{ignore:!1}),v={},y=new o.A(0,0,0,0),m=[],_=function(){function t(t){this.id=(0,l.Os)(),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 i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[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,i=n.local,r=e.innerTransformable,a=void 0,l=void 0,u=!1;r.parent=i?this:null;var c=!1;r.copyTransform(e);var d=null!=n.position,f=n.autoOverflowArea,g=void 0;if((f||d)&&(g=y,n.layoutRect?g.copy(n.layoutRect):g.copy(this.getBoundingRect()),i||g.applyTransform(this.transform)),d){this.calculateTextPosition?this.calculateTextPosition(v,n,g):(0,s.X4)(v,n,g),r.x=v.x,r.y=v.y,a=v.align,l=v.verticalAlign;var _=n.origin;if(_&&null!=n.rotation){var x=void 0,b=void 0;"center"===_?(x=.5*g.width,b=.5*g.height):(x=(0,s.lo)(_[0],g.width),b=(0,s.lo)(_[1],g.height)),c=!0,r.originX=-r.x+x+(i?0:g.x),r.originY=-r.y+b+(i?0:g.y)}}null!=n.rotation&&(r.rotation=n.rotation);var w=n.offset;w&&(r.x+=w[0],r.y+=w[1],c||(r.originX=-w[0],r.originY=-w[1]));var S=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var I=S.overflowRect=S.overflowRect||new o.A(0,0,0,0);r.getLocalTransform(m),(0,p.B8)(m,m),o.A.copy(I,g),I.applyTransform(m)}else S.overflowRect=null;var M=void 0,T=void 0,C=void 0;(null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside)&&this.canBeInsideText()?(M=n.insideFill,T=n.insideStroke,null!=M&&"auto"!==M||(M=this.getInsideTextFill()),null!=T&&"auto"!==T||(T=this.getInsideTextStroke(M),C=!0)):(M=n.outsideFill,T=n.outsideStroke,null!=M&&"auto"!==M||(M=this.getOutsideFill()),null!=T&&"auto"!==T||(T=this.getOutsideStroke(M),C=!0)),(M=M||"#000")===S.fill&&T===S.stroke&&C===S.autoStroke&&a===S.align&&l===S.verticalAlign||(u=!0,S.fill=M,S.stroke=T,S.autoStroke=C,S.align=a,S.verticalAlign=l,e.setDefaultTextStyle(S)),e.__dirty|=h.M,u&&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()?u.el:u._S},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&(0,c.qg)(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,(0,c.As)(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||{},(0,l.X$)(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((0,l.Gv)(t))for(var n=t,i=(0,l.HP)(n),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==d)){var o=i.targetName,a=o?e[o]:e;i.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,f)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},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(d,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===d;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!((0,l.qh)(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var u=!!(s&&s.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,p=this._textGuide;return c&&c.useState(t,e,n,u),p&&p.useState(t,e,n,u),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h.M),s}(0,l.vV)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[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&&i.push(u)}var c=i[o-1],p=!!(c&&c.hoverLayer||n);p&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var g=this._textContent,v=this._textGuide;g&&g.useStates(t,e,p),v&&v.useStates(t,e,p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h.M)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},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=(0,l.qh)(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 i=this.currentStates.slice(),r=(0,l.qh)(i,t),o=(0,l.qh)(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];(0,l.X$)(n,r),r.textConfig&&(e=e||{},(0,l.X$)(e,r.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=(0,l.X$)({},i?this.textConfig:n.textConfig),(0,l.X$)(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},u=!1,c=0;c<f.length;c++){var h=f[c],p=r&&g[h];e&&null!=e[h]?p?(u=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(p?(u=!0,s[h]=n[h]):this[h]=n[h])}if(!r)for(c=0;c<this.animators.length;c++){var d=this.animators[c],v=d.targetName;d.getLoop()||d.__changeFinalValue(v?(e||n)[v]:e||n)}u&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new i.Ay,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),(0,l.X$)(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|=h.M;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 i=t?this[t]:this;var o=new r.A(i,e,n);return t&&(o.targetName=t),this.addAnimator(o,t),o},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=(0,l.qh)(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,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){x(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){x(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=x(this,e,n,i),o=0;o<r.length;o++)r[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.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=h.M;function n(t,n,i,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){this[n]||o(this,this[n]=[]);return this[n]},set:function(t){this[i]=t[0],this[r]=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 x(t,e,n,i,r){var o=[];S(t,"",t,e,n=n||{},i,o,r);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 d=o[p];c&&d.done(c),h&&d.aborted(h),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function b(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function w(t,e,n){if((0,l.Xj)(e[n]))if((0,l.Xj)(t[n])||(t[n]=[]),(0,l.iu)(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),b(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(c=r,(0,l.Xj)(c[0]))for(var s=r[0].length,u=0;u<a;u++)o[u]?b(o[u],r[u],s):o[u]=Array.prototype.slice.call(r[u]);else b(o,r,a);o.length=r.length}else t[n]=e[n];var c}function S(t,e,n,i,o,a,s,u){for(var c=(0,l.HP)(i),h=o.duration,p=o.delay,d=o.additive,f=o.setToFinal,g=!(0,l.Gv)(a),v=t.animators,y=[],m=0;m<c.length;m++){var _=c[m],x=i[_];if(null!=x&&null!=n[_]&&(g||a[_]))if(!(0,l.Gv)(x)||(0,l.Xj)(x)||(0,l.C7)(x))y.push(_);else{if(e){u||(n[_]=x,t.updateDuringAnimation(e));continue}S(t,_,n[_],x,o,a&&a[_],s,u)}else u||(n[_]=x,t.updateDuringAnimation(e),y.push(_))}var b=y.length;if(!d&&b)for(var I=0;I<v.length;I++){if((T=v[I]).targetName===e)if(T.stopTracks(y)){var M=(0,l.qh)(v,T);v.splice(M,1)}}if(o.force||(y=(0,l.pb)(y,function(t){return e=i[t],r=n[t],!(e===r||(0,l.Xj)(e)&&(0,l.Xj)(r)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,r));var e,r}),b=y.length),b>0||o.force&&!s.length){var T,C=void 0,A=void 0,D=void 0;if(u){A={},f&&(C={});for(I=0;I<b;I++){A[_=y[I]]=n[_],f?C[_]=i[_]:n[_]=i[_]}}else if(f){D={};for(I=0;I<b;I++){D[_=y[I]]=(0,r.F)(n[_]),w(n,i,_)}}(T=new r.A(n,!1,!1,d?(0,l.pb)(v,function(t){return t.targetName===e}):null)).targetName=e,o.scope&&(T.scope=o.scope),f&&C&&T.whenWithKeys(0,C,y),D&&T.whenWithKeys(0,D,y),T.whenWithKeys(h??500,u?A:i,y).delay(p||0),t.addAnimator(T,e),s.push(T)}}(0,l.co)(_,a.A),(0,l.co)(_,i.Ay);const I=_},9264(t,e,n){n.d(e,{F:()=>y,A:()=>I});var i={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,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.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-i.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*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5}};const r=i;var o=n(9774),a=n(1316);const s=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||o.lQ,this.ondestroy=t.ondestroy||o.lQ,this.onrestart=t.onrestart||o.lQ,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,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%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=(0,o.Tn)(t)?t:r[t]||(0,a.w)(t)},t}();var l=n(9886),u=n(5483),c=Array.prototype.slice;function h(t,e,n){return(e-t)*n+t}function p(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=h(e[o],n[o],i);return t}function d(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function f(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function g(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function v(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(1===n?r[s]:c.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function y(t){if((0,o.Xj)(t)){var e=t.length;if((0,o.Xj)(t[0])){for(var n=[],i=0;i<e;i++)n.push(c.call(t[i]));return n}return c.call(t)}return t}function m(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 _(t){return 4===t||5===t}function x(t){return 1===t||2===t}var b=[0,0,0,0],w=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 i=this.keyframes,s=i.length,c=!1,h=6,p=e;if((0,o.Xj)(e)){var d=function(t){return(0,o.Xj)(t&&t[0])?2:1}(e);h=d,(1===d&&!(0,o.Et)(e[0])||2===d&&!(0,o.Et)(e[0][0]))&&(c=!0)}else if((0,o.Et)(e)&&!(0,o.Yp)(e))h=0;else if((0,o.Kg)(e))if(isNaN(+e)){var f=l.qg(e);f&&(p=f,h=3)}else h=0;else if((0,o.C7)(e)){var g=(0,o.X$)({},p);g.colorStops=(0,o.Tj)(e.colorStops,function(t){return{offset:t.offset,color:l.qg(t.color)}}),(0,u.OS)(e)?h=4:(0,u.OH)(e)&&(h=5),p=g}0===s?this.valType=h:h===this.valType&&6!==h||(c=!0),this.discrete=this.discrete||c;var v={time:t,value:p,rawValue:e,percent:0};return n&&(v.easing=n,v.easingFunc=(0,o.Tn)(n)?n:r[n]||(0,a.w)(n)),i.push(v),v},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=x(i),l=_(i),u=0;u<r;u++){var c=n[u],h=c.value,p=o.value;c.percent=c.time/t,a||(s&&u!==r-1?v(h,p,i):l&&g(h.colorStops,p.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var y=n[0].value;for(u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-y:3===i?n[u].additiveValue=d([],n[u].value,y,-1):x(i)&&(n[u].additiveValue=1===i?d([],n[u].value,y,-1):f([],n[u].value,y,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,c=u.length,d=this.propName,f=3===l,g=this._lastFr,v=Math.min;if(1===c)i=r=u[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=v(g+1,c-1);n>=0&&!(u[n].percent<=e);n--);n=v(n,c-2)}else{for(n=g;n<c&&!(u[n].percent>e);n++);n=v(n-1,c-2)}r=u[n+1],i=u[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var y=r.percent-i.percent,w=0===y?1:v((e-i.percent)/y,1);r.easingFunc&&(w=r.easingFunc(w));var S=a?this._additiveValue:f?b:t[d];if(!x(l)&&!f||S||(S=this._additiveValue=[]),this.discrete)t[d]=w<1?i.rawValue:r.rawValue;else if(x(l))1===l?p(S,i[s],r[s],w):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=h(e[a][s],n[a][s],i)}}(S,i[s],r[s],w);else if(_(l)){var I=i[s],M=r[s],T=4===l;t[d]={type:T?"linear":"radial",x:h(I.x,M.x,w),y:h(I.y,M.y,w),colorStops:(0,o.Tj)(I.colorStops,function(t,e){var n=M.colorStops[e];return{offset:h(t.offset,n.offset,w),color:m(p([],t.color,n.color,w))}}),global:M.global},T?(t[d].x2=h(I.x2,M.x2,w),t[d].y2=h(I.y2,M.y2,w)):t[d].r=h(I.r,M.r,w)}else if(f)p(S,i[s],r[s],w),a||(t[d]=m(S));else{var C=h(i[s],r[s],w);a?this._additiveValue=C:t[d]=C}a&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(l.qg(t[n],b),d(b,b,i,1),t[n]=m(b)):1===e?d(t[n],t[n],i,1):2===e&&f(t[n],t[n],i,1)},t}(),S=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?(0,o.vV)("Can' use additive animation on looped animation."):(this._additiveAnimators=i,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,(0,o.HP)(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new w(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=m(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,y(l),i),this._trackKeys.push(a)}s.addKeyframe(t,y(e[a]),i)}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 i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],l=this._getAdditiveTrack(o),u=a.keyframes,c=u.length;if(a.prepare(i,l),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var h=u[c-1];h&&(e._target[a.propName]=h.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var p=new s({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(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=p,this.animation&&this.animation.addClip(p),t&&p.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(0,o.Tj)(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,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=y(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||(0,o.HP)(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var a=r.keyframes;if(a.length>1){var s=a.pop();r.addKeyframe(s.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();const I=S},1316(t,e,n){n.d(e,{w:()=>a});var i=n(631),r=n(9774),o=/cubic-bezier\(([0-9,\.e ]+)\)/;function a(t){var e=t&&o.exec(t);if(e){var n=e[1].split(","),a=+(0,r.Bq)(n[0]),s=+(0,r.Bq)(n[1]),l=+(0,r.Bq)(n[2]),u=+(0,r.Bq)(n[3]);if(isNaN(a+s+l+u))return;var c=[];return function(t){return t<=0?0:t>=1?1:(0,i._E)(0,a,l,1,t,c)&&(0,i.Yb)(0,s,u,1,c[0])}}}},3717(t,e,n){n.d(e,{A:()=>i});const i=n(8311).A.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)}},22(t,e,n){n.d(e,{V:()=>r});var i=n(9774);function r(t){var e,n,r=t.style,o=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]:(0,i.Et)(e)?[e]:(0,i.cy)(e)?e:null:null),a=r.lineDashOffset;if(o){var s=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(o=(0,i.Tj)(o,function(t){return t/s}),a/=s)}return[o,a]}},6111(t,e,n){n.d(e,{V$:()=>D,Xi:()=>A,ZQ:()=>x});var i=n(8211),r=n(8747),o=n(5027),a=n(9291),s=n(2834),l=n(6440),u=n(7881),c=n(9774),h=n(22),p=n(6684),d=n(145),f=new r.A(!0);function g(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function v(t){return"string"==typeof t&&"none"!==t}function y(t){var e=t.fill;return null!=e&&"none"!==e}function m(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 _(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 x(t,e,n){var i=(0,o.OD)(e.image,e.__image,n);if((0,o.xA)(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*c.lI),a.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(a)}return r}}var b=["shadowBlur","shadowOffsetX","shadowOffsetY"],w=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function S(t,e,n,r,o){var a=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){T(t,o),a=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?i.oN.opacity:s}(r||e.blend!==n.blend)&&(a||(T(t,o),a=!0),t.globalCompositeOperation=e.blend||i.oN.blend);for(var l=0;l<b.length;l++){var u=b[l];(r||e[u]!==n[u])&&(a||(T(t,o),a=!0),t[u]=t.dpr*(e[u]||0))}return(r||e.shadowColor!==n.shadowColor)&&(a||(T(t,o),a=!0),t.shadowColor=e.shadowColor||i.oN.shadowColor),a}function I(t,e,n,i,r){var o=C(e,r.inHover),a=i?null:n&&C(n,r.inHover)||{};if(o===a)return!1;var s=S(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(T(t,r),s=!0),v(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(T(t,r),s=!0),v(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(T(t,r),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||(T(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<w.length;u++){var c=w[u],h=c[0];(i||o[h]!==a[h])&&(s||(T(t,r),s=!0),t[h]=o[h]||c[1])}return s}function M(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function T(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function C(t,e){return e&&t.__hoverStyle||t.style}function A(t,e){D(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function D(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~p.M,void(e.__isRendered=!1);var c=e.__clipPaths,v=n.prevElClipPaths,b=!1,w=!1;if(v&&!(0,a.KU)(c,v)||(v&&v.length&&(T(t,n),t.restore(),w=b=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),c&&c.length&&(T(t,n),t.save(),function(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),M(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}(c,t,n),b=!0),n.prevElClipPaths=c),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var A=n.prevEl;A||(w=b=!0);var k,P,L=e instanceof s.Ay&&e.autoBatch&&function(t){var e=y(t),n=g(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);b||(k=r,P=A.transform,k&&P?k[0]!==P[0]||k[1]!==P[1]||k[2]!==P[2]||k[3]!==P[3]||k[4]!==P[4]||k[5]!==P[5]:k||P)?(T(t,n),M(t,e)):L||T(t,n);var O=C(e,n.inHover);e instanceof s.Ay?(1!==n.lastDrawType&&(w=!0,n.lastDrawType=1),I(t,e,A,w,n),L&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var r,o=g(n),s=y(n),l=n.strokePercent,u=l<1,c=!e.path;e.silent&&!u||!c||e.createPathProxy();var d=e.path||f,v=e.__dirty;if(!i){var b=n.fill,w=n.stroke,S=s&&!!b.colorStops,I=o&&!!w.colorStops,M=s&&!!b.image,T=o&&!!w.image,C=void 0,A=void 0,D=void 0,k=void 0,P=void 0;(S||I)&&(P=e.getBoundingRect()),S&&(C=v?(0,a.Ff)(t,b,P):e.__canvasFillGradient,e.__canvasFillGradient=C),I&&(A=v?(0,a.Ff)(t,w,P):e.__canvasStrokeGradient,e.__canvasStrokeGradient=A),M&&(D=v||!e.__canvasFillPattern?x(t,b,e):e.__canvasFillPattern,e.__canvasFillPattern=D),T&&(k=v||!e.__canvasStrokePattern?x(t,w,e):e.__canvasStrokePattern,e.__canvasStrokePattern=k),S?t.fillStyle=C:M&&(D?t.fillStyle=D:s=!1),I?t.strokeStyle=A:T&&(k?t.strokeStyle=k:o=!1)}var L,O,E=e.getGlobalScale();d.setScale(E[0],E[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(L=(r=(0,h.V)(e))[0],O=r[1]);var R=!0;(c||v&p.Dl)&&(d.setDPR(t.dpr),u?d.setContext(null):(d.setContext(t),R=!1),d.reset(),e.buildPath(d,e.shape,i),d.toStatic(),e.pathUpdated()),R&&d.rebuildPath(t,u?l:1),L&&(t.setLineDash(L),t.lineDashOffset=O),i||(n.strokeFirst?(o&&_(t,n),s&&m(t,n)):(s&&m(t,n),o&&_(t,n))),L&&t.setLineDash([])}(t,e,O,L),L&&(n.batchFill=O.fill||"",n.batchStroke=O.stroke||"")):e instanceof u.A?(3!==n.lastDrawType&&(w=!0,n.lastDrawType=3),I(t,e,A,w,n),function(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||d.OH,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(i=(0,h.V)(e))[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(g(n)&&t.strokeText(r,n.x,n.y),y(n)&&t.fillText(r,n.x,n.y)):(y(n)&&t.fillText(r,n.x,n.y),g(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}(t,e,O)):e instanceof l.Ay?(2!==n.lastDrawType&&(w=!0,n.lastDrawType=2),function(t,e,n,i,r){S(t,C(e,r.inHover),n&&C(n,r.inHover),i,r)}(t,e,A,w,n),function(t,e,n){var i=e.__image=(0,o.OD)(n.image,e.__image,e,e.onload);if(i&&(0,o.xA)(i)){var r=n.x||0,a=n.y||0,s=e.getWidth(),l=e.getHeight(),u=i.width/i.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=i.width,l=i.height),n.sWidth&&n.sHeight){var c=n.sx||0,h=n.sy||0;t.drawImage(i,c,h,n.sWidth,n.sHeight,r,a,s,l)}else if(n.sx&&n.sy){var p=s-(c=n.sx),d=l-(h=n.sy);t.drawImage(i,c,h,p,d,r,a,s,l)}else t.drawImage(i,r,a,s,l)}}(t,e,O)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(w=!0,n.lastDrawType=4),function(t,e,n){var i=e.getDisplayables(),r=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=i.length;o<a;o++){(c=i[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),D(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=r.length;l<u;l++){var c;(c=r[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),D(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)),L&&i&&T(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}},9291(t,e,n){function i(t){return isFinite(t)}function r(t,e,n){for(var r="radial"===e.type?function(t,e,n){var r=n.width,o=n.height,a=Math.min(r,o),s=null==e.x?.5:e.x,l=null==e.y?.5:e.y,u=null==e.r?.5:e.r;return e.global||(s=s*r+n.x,l=l*o+n.y,u*=a),s=i(s)?s:.5,l=i(l)?l:.5,u=u>=0&&i(u)?u:.5,t.createRadialGradient(s,l,0,s,l,u)}(t,e,n):function(t,e,n){var r=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,s=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,s=s*n.height+n.y),r=i(r)?r:0,o=i(o)?o:1,a=i(a)?a:0,s=i(s)?s:0,t.createLinearGradient(r,a,o,s)}(t,e,n),o=e.colorStops,a=0;a<o.length;a++)r.addColorStop(o[a].offset,o[a].color);return r}function o(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}function a(t){return parseInt(t,10)}function s(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],s=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var l=document.defaultView.getComputedStyle(t);return(t[r]||a(l[i])||a(t.style[i]))-(a(l[o])||0)-(a(l[s])||0)|0}n.d(e,{Ff:()=>r,KU:()=>o,YC:()=>s})},6486(t,e,n){n.d(e,{Y5:()=>r,_S:()=>a,el:()=>s,ps:()=>o,tY:()=>l});var i=1;n(8311).A.hasGlobalWindow&&(i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var r=i,o=.4,a="#333",s="#ccc",l="#eee"},6066(t,e,n){n.d(e,{JK:()=>c,NO:()=>d,Qw:()=>s,X4:()=>m,ks:()=>v,l8:()=>h,ll:()=>f,lo:()=>y,sZ:()=>g});var i,r=n(7544),o=n(4361),a=n(145);function s(t){i||(i=new o.Ay(100)),t=t||a.OH;var e=i.get(t);return e||(e={font:t,strWidthCache:new o.Ay(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:a.yh.measureText("国",t).width,asciiCharWidth:a.yh.measureText("a",t).width},i.put(t,e)),e}var l=0,u=5;function c(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(l>=u)){t=t||a.OH;for(var e=[],n=+new Date,i=0;i<=127;i++)e[i]=a.yh.measureText(String.fromCharCode(i),t).width;var r=+new Date-n;return r>16?l=u:r>2&&l++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function h(t,e){var n=t.strWidthCache,i=n.get(e);return null==i&&(i=a.yh.measureText(e,t.font).width,n.put(e,i)),i}function p(t,e,n,i){var o=h(s(e),t),a=v(e),l=f(0,o,n),u=g(0,a,i);return new r.A(l,u,o,a)}function d(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return p(o[0],e,n,i);for(var a=new r.A(0,0,0,0),s=0;s<o.length;s++){var l=p(o[s],e,n,i);0===s?a.copy(l):a.union(l)}return a}function f(t,e,n,i){return"right"===n?i?t+=e:t-=e:"center"===n&&(i?t+=e/2:t-=e/2),t}function g(t,e,n,i){return"middle"===n?i?t+=e/2:t-=e/2:"bottom"===n&&(i?t+=e:t-=e),t}function v(t){return s(t).stWideCharWidth}function y(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function m(t,e,n){var i=e.position||"inside",r=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(i instanceof Array)l+=y(i[0],n.width),u+=y(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}},7544(t,e,n){n.d(e,{A:()=>S,b:()=>w});var i=n(6239),r=n(7270),o=Math.min,a=Math.max,s=Math.abs,l=["x","y"],u=["width","height"],c=new r.A,h=new r.A,p=new r.A,d=new r.A,f=w(),g=f.minTv,v=f.maxTv,y=[0,0],m=function(){function t(e,n,i,r){t.set(this,e,n,i,r)}return t.set=function(t,e,n,i,r){return i<0&&(e+=i,i=-i),r<0&&(n+=r,r=-r),t.x=e,t.y=n,t.width=i,t.height=r,t},t.prototype.union=function(t){var e=o(t.x,this.x),n=o(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=a(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=a(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,o=i.vt();return i.Tl(o,o,[-e.x,-e.y]),i.hs(o,o,[n,r]),i.Tl(o,o,[t.x,t.y]),o},t.prototype.intersect=function(e,n,i){return t.intersect(this,e,n,i)},t.intersect=function(e,n,i,o){i&&r.A.set(i,0,0);var a=o&&o.outIntersectRect||null,s=o&&o.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!n)return!1;e instanceof t||(e=t.set(_,e.x,e.y,e.width,e.height)),n instanceof t||(n=t.set(x,n.x,n.y,n.width,n.height));var l=!!i;f.reset(o,l);var u=f.touchThreshold,c=e.x+u,h=e.x+e.width-u,p=e.y+u,d=e.y+e.height-u,m=n.x+u,w=n.x+n.width-u,S=n.y+u,I=n.y+n.height-u;if(c>h||p>d||m>w||S>I)return!1;var M=!(h<m||w<c||d<S||I<p);return(l||a)&&(y[0]=1/0,y[1]=0,b(c,h,m,w,0,l,a,s),b(p,d,S,I,1,l,a,s),l&&r.A.copy(i,M?f.useDir?f.dirMinTv:g:v)),M},t.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},t.prototype.contain=function(e,n){return t.contain(this,e,n)},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){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],s=i[3],l=i[4],u=i[5];return e.x=n.x*r+l,e.y=n.y*s+u,e.width=n.width*r,e.height=n.height*s,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}c.x=p.x=n.x,c.y=d.y=n.y,h.x=d.x=n.x+n.width,h.y=p.y=n.y+n.height,c.transform(i),d.transform(i),h.transform(i),p.transform(i),e.x=o(c.x,h.x,p.x,d.x),e.y=o(c.y,h.y,p.y,d.y);var f=a(c.x,h.x,p.x,d.x),g=a(c.y,h.y,p.y,d.y);e.width=f-e.x,e.height=g-e.y}else e!==n&&t.copy(e,n)},t}(),_=new m(0,0,0,0),x=new m(0,0,0,0);function b(t,e,n,i,r,c,h,p){var d=s(e-n),m=s(i-t),_=o(d,m),x=l[r],b=l[1-r],w=u[r];e<n||i<t?d<m?(c&&(v[x]=-d),p&&(h[x]=e,h[w]=0)):(c&&(v[x]=m),p&&(h[x]=t,h[w]=0)):(h&&(h[x]=a(t,n),h[w]=o(e,i)-h[x]),c&&(_<y[0]||f.useDir)&&(y[0]=o(_,y[0]),(d<m||!f.bidirectional)&&(g[x]=d,g[b]=0,f.useDir&&f.calcDirMTV()),(d>=m||!f.bidirectional)&&(g[x]=-m,g[b]=0,f.useDir&&f.calcDirMTV())))}function w(){var t=0,e=new r.A,n=new r.A,i={minTv:new r.A,maxTv:new r.A,useDir:!1,dirMinTv:new r.A,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(r,o){i.touchThreshold=0,r&&null!=r.touchThreshold&&(i.touchThreshold=a(0,r.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,r&&null!=r.direction&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),n.copy(i.minTv),t=r.direction,i.bidirectional=null==r.bidirectional||!!r.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var r=i.minTv,a=i.dirMinTv,s=r.y*r.y+r.x*r.x,l=Math.sin(t),u=Math.cos(t),c=l*r.y+u*r.x;o(c)?o(r.x)&&o(r.y)&&a.set(0,0):(n.x=s*u/c,n.y=s*l/c,o(n.x)&&o(n.y)?a.set(0,0):(i.bidirectional||e.dot(n)>0)&&n.len()<a.len()&&a.copy(n))}};function o(t){return s(t)<1e-10}return i}const S=m},1969(t,e,n){n.d(e,{A:()=>r});var i=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[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 i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}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 i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.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 r&&r.afterTrigger&&r.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 i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.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 r&&r.afterTrigger&&r.afterTrigger(t),this},t}();const r=i},4361(t,e,n){n.d(e,{Ay:()=>a});var i=function(t){this.value=t},r=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new i(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new r,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,o=null;if(null==r[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const a=o},4632(t,e,n){n.d(e,{A:()=>d});var i=n(7270),r=n(7544),o=Math.min,a=Math.max,s=Math.abs,l=[0,0],u=[0,0],c=(0,r.b)(),h=c.minTv,p=c.maxTv;const d=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new i.A;for(n=0;n<2;n++)this._axes[n]=new i.A;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),e)for(var u=0;u<4;u++)n[u].transform(e);i.A.sub(r[0],n[1],n[0]),i.A.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(u=0;u<2;u++)this._origin[u]=r[u].dot(n[0])},t.prototype.intersect=function(t,e,n){var r=!0,o=!e;return e&&i.A.set(e,0,0),c.reset(n,!o),!this._intersectCheckOneSide(this,t,o,1)&&(r=!1,o)||!this._intersectCheckOneSide(t,this,o,-1)&&(r=!1,o)||o||c.negativeSize||i.A.copy(e,r?c.useDir?c.dirMinTv:h:p),r},t.prototype._intersectCheckOneSide=function(t,e,n,r){for(var a=!0,d=0;d<2;d++){var f=t._axes[d];if(t._getProjMinMaxOnAxis(d,t._corners,l),t._getProjMinMaxOnAxis(d,e._corners,u),c.negativeSize||l[1]<u[0]||l[0]>u[1]){if(a=!1,c.negativeSize||n)return a;var g=s(u[0]-l[1]),v=s(l[0]-u[1]);o(g,v)>p.len()&&(g<v?i.A.scale(p,f,-g*r):i.A.scale(p,f,v*r))}else if(!n){g=s(u[0]-l[1]),v=s(l[0]-u[1]);(c.useDir||o(g,v)<h.len())&&((g<v||!c.bidirectional)&&(i.A.scale(h,f,g*r),c.useDir&&c.calcDirMTV()),(g>=v||!c.bidirectional)&&(i.A.scale(h,f,-v*r),c.useDir&&c.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,s=e[0].dot(i)+r[t],l=s,u=s,h=1;h<e.length;h++){var p=e[h].dot(i)+r[t];l=o(p,l),u=a(p,u)}n[0]=l+c.touchThreshold,n[1]=u-c.touchThreshold,c.negativeSize=n[1]<n[0]},t}()},8747(t,e,n){n.d(e,{A:()=>F,q:()=>B});var i=n(4721),r=n(7544),o=n(6486),a=n(631),s=Math.min,l=Math.max,u=Math.sin,c=Math.cos,h=2*Math.PI,p=i.vt(),d=i.vt(),f=i.vt();function g(t,e,n,i,r,o){r[0]=s(t,n),r[1]=s(e,i),o[0]=l(t,n),o[1]=l(e,i)}var v=[],y=[];function m(t,e,n,i,r,o,u,c,h,p){var d=a.lX,f=a.Yb,g=d(t,n,r,u,v);h[0]=1/0,h[1]=1/0,p[0]=-1/0,p[1]=-1/0;for(var m=0;m<g;m++){var _=f(t,n,r,u,v[m]);h[0]=s(_,h[0]),p[0]=l(_,p[0])}g=d(e,i,o,c,y);for(m=0;m<g;m++){var x=f(e,i,o,c,y[m]);h[1]=s(x,h[1]),p[1]=l(x,p[1])}h[0]=s(t,h[0]),p[0]=l(t,p[0]),h[0]=s(u,h[0]),p[0]=l(u,p[0]),h[1]=s(e,h[1]),p[1]=l(e,p[1]),h[1]=s(c,h[1]),p[1]=l(c,p[1])}function _(t,e,n,i,r,o,u,c){var h=a.gC,p=a.k3,d=l(s(h(t,n,r),1),0),f=l(s(h(e,i,o),1),0),g=p(t,n,r,d),v=p(e,i,o,f);u[0]=s(t,r,g),u[1]=s(e,o,v),c[0]=l(t,r,g),c[1]=l(e,o,v)}function x(t,e,n,r,o,a,s,l,g){var v=i.jk,y=i.T9,m=Math.abs(o-a);if(m%h<1e-4&&m>1e-4)return l[0]=t-n,l[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(p[0]=c(o)*n+t,p[1]=u(o)*r+e,d[0]=c(a)*n+t,d[1]=u(a)*r+e,v(l,p,d),y(g,p,d),(o%=h)<0&&(o+=h),(a%=h)<0&&(a+=h),o>a&&!s?a+=h:o<a&&s&&(o+=h),s){var _=a;a=o,o=_}for(var x=0;x<a;x+=Math.PI/2)x>o&&(f[0]=c(x)*n+t,f[1]=u(x)*r+e,v(l,f,l),y(g,f,g))}var b={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},w=[],S=[],I=[],M=[],T=[],C=[],A=Math.min,D=Math.max,k=Math.cos,P=Math.sin,L=Math.abs,O=Math.PI,E=2*O,R="undefined"!=typeof Float32Array,N=[];function z(t){return Math.round(t/O*1e8)/1e8%2*O}function B(t,e){var n=z(t[0]);n<0&&(n+=E);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=E?r=n+E:e&&n-r>=E?r=n-E:!e&&n>r?r=n+(E-z(n-r)):e&&n<r&&(r=n-(E-z(r-n))),t[0]=n,t[1]=r}var V=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=L(n/o.Y5/t)||0,this._uy=L(n/o.Y5/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(b.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=L(t-this._xi),i=L(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(b.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(b.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(b.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),N[0]=i,N[1]=r,B(N,o),i=N[0];var a=(r=N[1])-i;return this.addData(b.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=k(r)*n+t,this._yi=P(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(b.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(b.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){if(this._saveData){var e=t.length;this.data&&this.data.length===e||!R||(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){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();var o=this.data;if(R&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var a=0;a<i;a++)this.data[a]=o[a];for(r=0;r<e;r++){var s=t[r].data;for(a=0;a<s.length;a++)this.data[i++]=s[a]}this._len=i}},t.prototype.addData=function(t,e,n,i,r,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,R&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){I[0]=I[1]=T[0]=T[1]=Number.MAX_VALUE,M[0]=M[1]=C[0]=C[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,o=0,a=0,s=0;for(t=0;t<this._len;){var l=e[t++],u=1===t;switch(u&&(a=n=e[t],s=o=e[t+1]),l){case b.M:n=a=e[t++],o=s=e[t++],T[0]=a,T[1]=s,C[0]=a,C[1]=s;break;case b.L:g(n,o,e[t],e[t+1],T,C),n=e[t++],o=e[t++];break;case b.C:m(n,o,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],T,C),n=e[t++],o=e[t++];break;case b.Q:_(n,o,e[t++],e[t++],e[t],e[t+1],T,C),n=e[t++],o=e[t++];break;case b.A:var c=e[t++],h=e[t++],p=e[t++],d=e[t++],f=e[t++],v=e[t++]+f;t+=1;var y=!e[t++];u&&(a=k(f)*p+c,s=P(f)*d+h),x(c,h,p,d,f,v,y,T,C),n=k(v)*p+c,o=P(v)*d+h;break;case b.R:g(a=n=e[t++],s=o=e[t++],a+e[t++],s+e[t++],T,C);break;case b.Z:n=a,o=s}i.jk(I,I,T),i.T9(M,M,C)}return 0===t&&(I[0]=I[1]=M[0]=M[1]=0),new r.A(I[0],I[1],M[0]-I[0],M[1]-I[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,h=0,p=0;p<e;){var d=t[p++],f=1===p;f&&(s=r=t[p],l=o=t[p+1]);var g=-1;switch(d){case b.M:r=s=t[p++],o=l=t[p++];break;case b.L:var v=t[p++],y=(x=t[p++])-o;(L(z=v-r)>n||L(y)>i||p===e-1)&&(g=Math.sqrt(z*z+y*y),r=v,o=x);break;case b.C:var m=t[p++],_=t[p++],x=(v=t[p++],t[p++]),w=t[p++],S=t[p++];g=(0,a.h0)(r,o,m,_,v,x,w,S,10),r=w,o=S;break;case b.Q:m=t[p++],_=t[p++],v=t[p++],x=t[p++];g=(0,a.d8)(r,o,m,_,v,x,10),r=v,o=x;break;case b.A:var I=t[p++],M=t[p++],T=t[p++],C=t[p++],O=t[p++],R=t[p++],N=R+O;p+=1,f&&(s=k(O)*T+I,l=P(O)*C+M),g=D(T,C)*A(E,Math.abs(R)),r=k(N)*T+I,o=P(N)*C+M;break;case b.R:s=r=t[p++],l=o=t[p++],g=2*t[p++]+2*t[p++];break;case b.Z:var z=s-r;y=l-o;g=Math.sqrt(z*z+y*y),r=s,o=l}g>=0&&(u[h++]=g,c+=g)}return this._pathLen=c,c},t.prototype.rebuildPath=function(t,e){var n,i,r,o,s,l,u,c,h,p,d=this.data,f=this._ux,g=this._uy,v=this._len,y=e<1,m=0,_=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),u=this._pathSegLen,c=e*this._pathLen))t:for(var I=0;I<v;){var M=d[I++],T=1===I;switch(T&&(n=r=d[I],i=o=d[I+1]),M!==b.L&&x>0&&(t.lineTo(h,p),x=0),M){case b.M:n=r=d[I++],i=o=d[I++],t.moveTo(r,o);break;case b.L:s=d[I++],l=d[I++];var C=L(s-r),O=L(l-o);if(C>f||O>g){if(y){if(m+(it=u[_++])>c){var E=(c-m)/it;t.lineTo(r*(1-E)+s*E,o*(1-E)+l*E);break t}m+=it}t.lineTo(s,l),r=s,o=l,x=0}else{var R=C*C+O*O;R>x&&(h=s,p=l,x=R)}break;case b.C:var N=d[I++],z=d[I++],B=d[I++],V=d[I++],F=d[I++],H=d[I++];if(y){if(m+(it=u[_++])>c){E=(c-m)/it;(0,a.YT)(r,N,B,F,E,w),(0,a.YT)(o,z,V,H,E,S),t.bezierCurveTo(w[1],S[1],w[2],S[2],w[3],S[3]);break t}m+=it}t.bezierCurveTo(N,z,B,V,F,H),r=F,o=H;break;case b.Q:N=d[I++],z=d[I++],B=d[I++],V=d[I++];if(y){if(m+(it=u[_++])>c){E=(c-m)/it;(0,a.kx)(r,N,B,E,w),(0,a.kx)(o,z,V,E,S),t.quadraticCurveTo(w[1],S[1],w[2],S[2]);break t}m+=it}t.quadraticCurveTo(N,z,B,V),r=B,o=V;break;case b.A:var W=d[I++],G=d[I++],X=d[I++],U=d[I++],Y=d[I++],j=d[I++],Z=d[I++],q=!d[I++],$=X>U?X:U,K=L(X-U)>.001,Q=Y+j,J=!1;if(y)m+(it=u[_++])>c&&(Q=Y+j*(c-m)/it,J=!0),m+=it;if(K&&t.ellipse?t.ellipse(W,G,X,U,Z,Y,Q,q):t.arc(W,G,$,Y,Q,q),J)break t;T&&(n=k(Y)*X+W,i=P(Y)*U+G),r=k(Q)*X+W,o=P(Q)*U+G;break;case b.R:n=r=d[I],i=o=d[I+1],s=d[I++],l=d[I++];var tt=d[I++],et=d[I++];if(y){if(m+(it=u[_++])>c){var nt=c-m;t.moveTo(s,l),t.lineTo(s+A(nt,tt),l),(nt-=tt)>0&&t.lineTo(s+tt,l+A(nt,et)),(nt-=et)>0&&t.lineTo(s+D(tt-nt,0),l+et),(nt-=tt)>0&&t.lineTo(s,l+D(et-nt,0));break t}m+=it}t.rect(s,l,tt,et);break;case b.Z:if(y){var it;if(m+(it=u[_++])>c){E=(c-m)/it;t.lineTo(r*(1-E)+n*E,o*(1-E)+i*E);break t}m+=it}t.closePath(),r=n,o=i}}},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.prototype.canSave=function(){return!!this._saveData},t.CMD=b,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();const F=V},7270(t,e,n){n.d(e,{A:()=>i});const i=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,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}()},128(t,e,n){n.d(e,{Ay:()=>g,IT:()=>f,Wx:()=>d});var i=n(6239),r=n(4721),o=i.D_,a=5e-5;function s(t){return t>a||t<-5e-5}var l=[],u=[],c=i.vt(),h=Math.abs,p=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||i.vt(),e?this.getLocalTransform(n):o(n),t&&(e?i.lK(n,t,n):i.C(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(o(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(l);var n=l[0]<0?-1:1,r=l[1]<0?-1:1,o=((l[0]-n)*e+n)/l[0]||0,a=((l[1]-r)*e+r)/l[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||i.vt(),i.B8(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],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,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&&(t.invTransform=t.invTransform||i.vt(),i.lK(u,t.invTransform,e),e=u);var n=this.originX,r=this.originY;(n||r)&&(c[4]=n,c[5]=r,i.lK(u,e,c),u[4]-=n,u[5]-=r,e=u),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],i=this.invTransform;return i&&r.NW(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r.NW(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&h(t[0]-1)>1e-10&&h(t[3]-1)>1e-10?Math.sqrt(h(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){f(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,h=t.y,p=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||r||s||l){var f=n+s,g=r+l;e[4]=-f*o-p*g*a,e[5]=-g*a-d*f*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=d*o,e[2]=p*a,u&&i.e$(e,e,u),e[4]+=n+c,e[5]+=r+h,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),d=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function f(t,e){for(var n=0;n<d.length;n++){var i=d[n];t[i]=e[i]}}const g=p},631(t,e,n){n.d(e,{Et:()=>x,YT:()=>_,Yb:()=>g,_E:()=>y,d8:()=>A,gC:()=>M,h0:()=>b,k3:()=>w,kh:()=>C,kx:()=>T,lX:()=>m,qY:()=>I,rD:()=>v,z7:()=>S});var i=n(4721),r=Math.pow,o=Math.sqrt,a=1e-8,s=1e-4,l=o(3),u=1/3,c=(0,i.vt)(),h=(0,i.vt)(),p=(0,i.vt)();function d(t){return t>-1e-8&&t<a}function f(t){return t>a||t<-1e-8}function g(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function v(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function y(t,e,n,i,a,s){var c=i+3*(e-n)-t,h=3*(n-2*e+t),p=3*(e-t),f=t-a,g=h*h-3*c*p,v=h*p-9*c*f,y=p*p-3*h*f,m=0;if(d(g)&&d(v)){if(d(h))s[0]=0;else(D=-p/h)>=0&&D<=1&&(s[m++]=D)}else{var _=v*v-4*g*y;if(d(_)){var x=v/g,b=-x/2;(D=-h/c+x)>=0&&D<=1&&(s[m++]=D),b>=0&&b<=1&&(s[m++]=b)}else if(_>0){var w=o(_),S=g*h+1.5*c*(-v+w),I=g*h+1.5*c*(-v-w);(D=(-h-((S=S<0?-r(-S,u):r(S,u))+(I=I<0?-r(-I,u):r(I,u))))/(3*c))>=0&&D<=1&&(s[m++]=D)}else{var M=(2*g*h-3*c*v)/(2*o(g*g*g)),T=Math.acos(M)/3,C=o(g),A=Math.cos(T),D=(-h-2*C*A)/(3*c),k=(b=(-h+C*(A+l*Math.sin(T)))/(3*c),(-h+C*(A-l*Math.sin(T)))/(3*c));D>=0&&D<=1&&(s[m++]=D),b>=0&&b<=1&&(s[m++]=b),k>=0&&k<=1&&(s[m++]=k)}}return m}function m(t,e,n,i,r){var a=6*n-12*e+6*t,s=9*e+3*i-3*t-9*n,l=3*e-3*t,u=0;if(d(s)){if(f(a))(h=-l/a)>=0&&h<=1&&(r[u++]=h)}else{var c=a*a-4*s*l;if(d(c))r[0]=-a/(2*s);else if(c>0){var h,p=o(c),g=(-a-p)/(2*s);(h=(-a+p)/(2*s))>=0&&h<=1&&(r[u++]=h),g>=0&&g<=1&&(r[u++]=g)}}return u}function _(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function x(t,e,n,r,a,l,u,d,f,v,y){var m,_,x,b,w,S=.005,I=1/0;c[0]=f,c[1]=v;for(var M=0;M<1;M+=.05)h[0]=g(t,n,a,u,M),h[1]=g(e,r,l,d,M),(b=(0,i.oi)(c,h))<I&&(m=M,I=b);I=1/0;for(var T=0;T<32&&!(S<s);T++)_=m-S,x=m+S,h[0]=g(t,n,a,u,_),h[1]=g(e,r,l,d,_),b=(0,i.oi)(h,c),_>=0&&b<I?(m=_,I=b):(p[0]=g(t,n,a,u,x),p[1]=g(e,r,l,d,x),w=(0,i.oi)(p,c),x<=1&&w<I?(m=x,I=w):S*=.5);return y&&(y[0]=g(t,n,a,u,m),y[1]=g(e,r,l,d,m)),o(I)}function b(t,e,n,i,r,o,a,s,l){for(var u=t,c=e,h=0,p=1/l,d=1;d<=l;d++){var f=d*p,v=g(t,n,r,a,f),y=g(e,i,o,s,f),m=v-u,_=y-c;h+=Math.sqrt(m*m+_*_),u=v,c=y}return h}function w(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function S(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function I(t,e,n,i,r){var a=t-2*e+n,s=2*(e-t),l=t-i,u=0;if(d(a)){if(f(s))(h=-l/s)>=0&&h<=1&&(r[u++]=h)}else{var c=s*s-4*a*l;if(d(c))(h=-s/(2*a))>=0&&h<=1&&(r[u++]=h);else if(c>0){var h,p=o(c),g=(-s-p)/(2*a);(h=(-s+p)/(2*a))>=0&&h<=1&&(r[u++]=h),g>=0&&g<=1&&(r[u++]=g)}}return u}function M(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function T(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function C(t,e,n,r,a,l,u,d,f){var g,v=.005,y=1/0;c[0]=u,c[1]=d;for(var m=0;m<1;m+=.05){h[0]=w(t,n,a,m),h[1]=w(e,r,l,m),(S=(0,i.oi)(c,h))<y&&(g=m,y=S)}y=1/0;for(var _=0;_<32&&!(v<s);_++){var x=g-v,b=g+v;h[0]=w(t,n,a,x),h[1]=w(e,r,l,x);var S=(0,i.oi)(h,c);if(x>=0&&S<y)g=x,y=S;else{p[0]=w(t,n,a,b),p[1]=w(e,r,l,b);var I=(0,i.oi)(p,c);b<=1&&I<y?(g=b,y=I):v*=.5}}return f&&(f[0]=w(t,n,a,g),f[1]=w(e,r,l,g)),o(y)}function A(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var p=h*c,d=w(t,n,r,p),f=w(e,i,o,p),g=d-s,v=f-l;u+=Math.sqrt(g*g+v*v),s=d,l=f}return u}},3499(t,e,n){n.d(e,{Me:()=>g,ot:()=>p,oq:()=>h,lJ:()=>c});var i=n(8311),r=Math.log(2);function o(t,e,n,i,a,s){var l=i+"-"+a,u=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var c=Math.round(Math.log((1<<u)-1&~a)/r);return t[n][c]}for(var h=i|1<<n,p=n+1;i&1<<p;)p++;for(var d=0,f=0,g=0;f<u;f++){var v=1<<f;v&a||(d+=(g%2?-1:1)*t[n][f]*o(t,e-1,p,h,a|v,s),g++)}return s[l]=d,d}function a(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]]],i={},r=o(n,8,0,0,0,i);if(0!==r){for(var a=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==a[l]&&(a[l]=0),a[l]+=((s+l)%2?-1:1)*o(n,7,0===s?1:0,1<<s,1<<l,i)/r*e[s];return function(t,e,n){var i=e*a[6]+n*a[7]+1;t[0]=(e*a[0]+n*a[1]+a[2])/i,t[1]=(e*a[3]+n*a[4]+a[5])/i}}}var s=n(9774),l="___zrEVENTSAVED",u=[];function c(t,e,n,i,r){return h(u,e,i,r,!0)&&h(t,n,u[0],u[1])}function h(t,e,n,r,o){if(e.getBoundingClientRect&&i.A.domSupported&&!p(e)){var u=e[l]||(e[l]={}),c=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),l=o%2,u=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return e.clearMarkers=function(){(0,s.__)(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})},n}(e,u),h=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,s=[],l=[],u=!0,c=0;c<4;c++){var h=t[c].getBoundingClientRect(),p=2*c,d=h.left,f=h.top;s.push(d,f),u=u&&o&&d===o[p]&&f===o[p+1],l.push(t[c].offsetLeft,t[c].offsetTop)}return u&&r?r:(e.srcCoords=s,e[i]=n?a(l,s):a(s,l))}(c,u,o);if(h)return h(t,n,r),!0}return!1}function p(t){return"CANVAS"===t.nodeName.toUpperCase()}var d=/([&<>"'])/g,f={"&":"&","<":"<",">":">",'"':""","'":"'"};function g(t){return null==t?"":(t+"").replace(d,function(t,e){return f[e]})}},8311(t,e,n){n.d(e,{A:()=>o});var i=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},r=new function(){this.browser=new i,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?(r.wxa=!0,r.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?r.worker=!0:!r.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(r.node=!0,r.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[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);var s=e.domSupported="undefined"!=typeof document;if(s){var l=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,r);const o=r},1720(t,e,n){n.d(e,{W5:()=>g,Yo:()=>l,ds:()=>f,e0:()=>h,f:()=>d,mK:()=>c,q2:()=>p});var i=n(8311),r=n(3499),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,a=[],s=i.A.browser.firefox&&+i.A.browser.version.split(".")[0]<39;function l(t,e,n,i){return n=n||{},i?u(t,e,n):s&&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):u(t,e,n),n}function u(t,e,n){if(i.A.domSupported&&t.getBoundingClientRect){var o=e.clientX,s=e.clientY;if((0,r.ot)(t)){var l=t.getBoundingClientRect();return n.zrX=o-l.left,void(n.zrY=s-l.top)}if((0,r.oq)(a,t,o,s))return n.zrX=a[0],void(n.zrY=a[1])}n.zrX=n.zrY=0}function c(t){return t||window.event}function h(t,e,n){if(null!=(e=c(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&l(t,r,e,n)}else{l(t,e,e,n);var a=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&o.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function p(t,e,n,i){t.addEventListener(e,n,i)}function d(t,e,n,i){t.removeEventListener(e,n,i)}var f=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function g(t){return 2===t.which||3===t.which}},6239(t,e,n){function i(){return[1,0,0,1,0,0]}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function o(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 a(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=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]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function s(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 l(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=r*h+s*c,t[1]=-r*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-i[0])+c*(u-i[1])+i[0],t[5]=h*(u-i[1])-c*(a-i[0])+i[1],t}function u(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function c(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}n.d(e,{B8:()=>c,C:()=>o,D_:()=>r,Tl:()=>s,e$:()=>l,hs:()=>u,lK:()=>a,vt:()=>i})},145(t,e,n){n.d(e,{OH:()=>o,gI:()=>i,yh:()=>u,zs:()=>r});var i=12,r="sans-serif",o=i+"px "+r;var a,s,l=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),u={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!a){var n=u.createCanvas();a=n&&n.getContext("2d")}if(a)return s!==e&&(s=a.font=e||o),a.measureText(t);t=t||"";var r=/((?:\d+)?\.?\d*)px/.exec(e=e||o),c=r&&+r[1]||i,h=0;if(e.indexOf("mono")>=0)h=c*t.length;else for(var p=0;p<t.length;p++){var d=l[t[p]];h+=null==d?c:d*c}return{width:h}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}}},5874(t,e,n){n.d(e,{A:()=>l});function i(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){n--;for(;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function r(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=i-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 o(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-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 a(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function s(t,e){var n,i,r=7,s=0,l=[];function u(u){var c=n[u],h=i[u],p=n[u+1],d=i[u+1];i[u]=h+d,u===s-3&&(n[u+1]=n[u+2],i[u+1]=i[u+2]),s--;var f=a(t[p],t,c,h,0,e);c+=f,0!==(h-=f)&&0!==(d=o(t[c+h-1],t,p,d,d-1,e))&&(h<=d?function(n,i,s,u){var c=0;for(c=0;c<i;c++)l[c]=t[n+c];var h=0,p=s,d=n;if(t[d++]=t[p++],0===--u){for(c=0;c<i;c++)t[d+c]=l[h+c];return}if(1===i){for(c=0;c<u;c++)t[d+c]=t[p+c];return void(t[d+u]=l[h])}var f,g,v,y=r;for(;;){f=0,g=0,v=!1;do{if(e(t[p],l[h])<0){if(t[d++]=t[p++],g++,f=0,0===--u){v=!0;break}}else if(t[d++]=l[h++],f++,g=0,1===--i){v=!0;break}}while((f|g)<y);if(v)break;do{if(0!==(f=a(t[p],l,h,i,0,e))){for(c=0;c<f;c++)t[d+c]=l[h+c];if(d+=f,h+=f,(i-=f)<=1){v=!0;break}}if(t[d++]=t[p++],0===--u){v=!0;break}if(0!==(g=o(l[h],t,p,u,0,e))){for(c=0;c<g;c++)t[d+c]=t[p+c];if(d+=g,p+=g,0===(u-=g)){v=!0;break}}if(t[d++]=l[h++],1===--i){v=!0;break}y--}while(f>=7||g>=7);if(v)break;y<0&&(y=0),y+=2}if((r=y)<1&&(r=1),1===i){for(c=0;c<u;c++)t[d+c]=t[p+c];t[d+u]=l[h]}else{if(0===i)throw new Error;for(c=0;c<i;c++)t[d+c]=l[h+c]}}(c,h,p,d):function(n,i,s,u){var c=0;for(c=0;c<u;c++)l[c]=t[s+c];var h=n+i-1,p=u-1,d=s+u-1,f=0,g=0;if(t[d--]=t[h--],0===--i){for(f=d-(u-1),c=0;c<u;c++)t[f+c]=l[c];return}if(1===u){for(g=(d-=i)+1,f=(h-=i)+1,c=i-1;c>=0;c--)t[g+c]=t[f+c];return void(t[d]=l[p])}var v=r;for(;;){var y=0,m=0,_=!1;do{if(e(l[p],t[h])<0){if(t[d--]=t[h--],y++,m=0,0===--i){_=!0;break}}else if(t[d--]=l[p--],m++,y=0,1===--u){_=!0;break}}while((y|m)<v);if(_)break;do{if(0!==(y=i-a(l[p],t,n,i,i-1,e))){for(i-=y,g=(d-=y)+1,f=(h-=y)+1,c=y-1;c>=0;c--)t[g+c]=t[f+c];if(0===i){_=!0;break}}if(t[d--]=l[p--],1===--u){_=!0;break}if(0!==(m=u-o(t[h],l,0,u,u-1,e))){for(u-=m,g=(d-=m)+1,f=(p-=m)+1,c=0;c<m;c++)t[g+c]=l[f+c];if(u<=1){_=!0;break}}if(t[d--]=t[h--],0===--i){_=!0;break}v--}while(y>=7||m>=7);if(_)break;v<0&&(v=0),v+=2}(r=v)<1&&(r=1);if(1===u){for(g=(d-=i)+1,f=(h-=i)+1,c=i-1;c>=0;c--)t[g+c]=t[f+c];t[d]=l[p]}else{if(0===u)throw new Error;for(f=d-(u-1),c=0;c<u;c++)t[f+c]=l[c]}}(c,h,p,d))}return n=[],i=[],{mergeRuns:function(){for(;s>1;){var t=s-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;u(t)}},forceMergeRuns:function(){for(;s>1;){var t=s-2;t>0&&i[t-1]<i[t+1]&&t--,u(t)}},pushRun:function(t,e){n[s]=t,i[s]=e,s+=1}}}function l(t,e,n,o){n||(n=0),o||(o=t.length);var a=o-n;if(!(a<2)){var l=0;if(a<32)r(t,n,o,n+(l=i(t,n,o,e)),e);else{var u=s(t,e),c=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(a);do{if((l=i(t,n,o,e))<c){var h=a;h>c&&(h=c),r(t,n,n+h,n+l,e),l=h}u.pushRun(n,l),u.mergeRuns(),a-=l,n+=l}while(0!==a);u.forceMergeRuns()}}}},9774(t,e,n){n.d(e,{$3:()=>ut,B:()=>S,Bq:()=>Q,C7:()=>G,En:()=>tt,Et:()=>B,Gv:()=>V,HE:()=>X,HP:()=>P,I6:()=>k,Je:()=>Y,Kg:()=>N,Lh:()=>z,NT:()=>b,Os:()=>v,QX:()=>$,TS:()=>A,Tj:()=>C,Tn:()=>R,WV:()=>Z,X$:()=>x,Xj:()=>M,Yp:()=>U,__:()=>T,bZ:()=>j,cF:()=>O,co:()=>I,cy:()=>E,di:()=>q,ed:()=>st,h1:()=>_,iq:()=>lt,iu:()=>H,lI:()=>ht,lQ:()=>ct,n_:()=>W,nt:()=>ot,o8:()=>m,oI:()=>L,pb:()=>D,qh:()=>w,vA:()=>K,vV:()=>y,yB:()=>at});var i=n(145),r=A(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),o=A(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,h=s.map,p=function(){}.constructor,d=p?p.prototype:null,f="__proto__",g=2311;function v(){return g++}function y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}function m(t){if(null==t||"object"!=typeof t)return t;var e=t,n=a.call(t);if("[object Array]"===n){if(!et(t)){e=[];for(var i=0,s=t.length;i<s;i++)e[i]=m(t[i])}}else if(o[n]){if(!et(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(i=0,s=t.length;i<s;i++)e[i]=t[i]}}}else if(!r[n]&&!et(t)&&!W(t))for(var u in e={},t)t.hasOwnProperty(u)&&u!==f&&(e[u]=m(t[u]));return e}function _(t,e,n){if(!V(e)||!V(t))return n?m(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==f){var r=t[i],o=e[i];!V(o)||!V(r)||E(o)||E(r)||W(o)||W(r)||F(o)||F(r)||et(o)||et(r)?!n&&i in t||(t[i]=m(e[i])):_(r,o,n)}return t}function x(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==f&&(t[n]=e[n]);return t}function b(t,e,n){for(var i=P(e),r=0,o=i.length;r<o;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}i.yh.createCanvas;function w(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function S(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function I(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else b(t,e,n)}function M(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function T(t,e,n){if(t&&e)if(t.forEach&&t.forEach===l)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function C(t,e,n){if(!t)return[];if(!e)return q(t);if(t.map&&t.map===h)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function A(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function D(t,e,n){if(!t)return[];if(!e)return q(t);if(t.filter&&t.filter===u)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function k(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function P(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 L=d&&R(d.bind)?d.call.bind(d.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(c.call(arguments)))}};function O(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(c.call(arguments)))}}function E(t){return Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)}function R(t){return"function"==typeof t}function N(t){return"string"==typeof t}function z(t){return"[object String]"===a.call(t)}function B(t){return"number"==typeof t}function V(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function F(t){return!!r[a.call(t)]}function H(t){return!!o[a.call(t)]}function W(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function G(t){return null!=t.colorStops}function X(t){return null!=t.image}function U(t){return t!=t}function Y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function j(t,e){return null!=t?t:e}function Z(t,e,n){return null!=t?t:null!=e?e:n}function q(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return c.apply(t,e)}function $(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 K(t,e){if(!t)throw new Error(e)}function Q(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var J="__ec_primitive__";function tt(t){t[J]=!0}function et(t){return t[J]}var nt=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 P(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),it="function"==typeof Map;var rt=function(){function t(e){var n=E(e);this.data=it?new Map:new nt;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&T(e,r)}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,i){t.call(e,n,i)})},t.prototype.keys=function(){var t=this.data.keys();return it?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function ot(t){return new rt(t)}function at(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function st(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&x(n,e),n}function lt(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ut(t,e){return t.hasOwnProperty(e)}function ct(){}var ht=180/Math.PI;Number.EPSILON||Math.pow(2,-52)},4721(t,e,n){function i(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function r(t){return[t[0],t[1]]}function o(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t){return Math.sqrt(l(t))}n.d(e,{Cc:()=>f,Io:()=>h,NW:()=>g,S8:()=>c,T9:()=>y,WQ:()=>o,hs:()=>u,jb:()=>a,jk:()=>v,o8:()=>r,oi:()=>d,vt:()=>i,xg:()=>p});function l(t){return t[0]*t[0]+t[1]*t[1]}function u(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function c(t,e){var n=s(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function h(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var p=h;var d=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function f(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function g(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function v(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function y(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},3859(t,e,n){n.d(e,{A:()=>a});var i=n(5482),r=n(2834),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return(0,i.C6)(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||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].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),r.Ay.prototype.getBoundingRect.call(this)},e}(r.Ay);const a=o},8211(t,e,n){n.d(e,{Ay:()=>v,oN:()=>u,sW:()=>c});var i=n(5482),r=n(8994),o=n(7544),a=n(9774),s=n(6684),l="__zr_style_"+Math.round(10*Math.random()),u={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},c={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};u[l]=!0;var h=["z","z2","invisible"],p=["invisible"],d=function(t){function e(e){return t.call(this,e)||this}var n;return(0,i.C6)(e,t),e.prototype._init=function(e){for(var n=(0,a.HP)(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}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,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){f.copy(t.getBoundingRect()),t.transform&&f.applyTransform(t.transform);return g.width=e,g.height=n,!f.intersect(g)}(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&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(),i=this.style,r=i.shadowBlur||0,a=i.shadowOffsetX||0,s=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new o.A(0,0,0,0)),e?o.A.applyTransform(t,n,e):t.copy(n),(r||a||s)&&(t.width+=2*r+Math.abs(a),t.height+=2*r+Math.abs(s),t.x=Math.min(t.x,t.x+a-r),t.y=Math.min(t.y,t.y+s-r));var l=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-l),t.y=Math.floor(t.y-l),t.width=Math.ceil(t.width+1+2*l),t.height=Math.ceil(t.height+1+2*l))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new o.A(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:(0,a.X$)(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=s.pO,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&s.pO)},e.prototype.styleUpdated=function(){this.__dirty&=~s.pO},e.prototype.createStyle=function(t){return(0,a.ed)(u,t)},e.prototype.useStyle=function(t){t[l]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[l]},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,h)},e.prototype._applyStateObj=function(e,n,i,r,o,s){t.prototype._applyStateObj.call(this,e,n,i,r,o,s);var l,u=!(n&&r);if(n&&n.style?o?r?l=n.style:(l=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(l,n.style)):u&&(l=i.style),l)if(o){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var d=(0,a.HP)(c),f=0;f<d.length;f++){(v=d[f])in l&&(l[v]=l[v],this.style[v]=c[v])}var g=(0,a.HP)(l);for(f=0;f<g.length;f++){var v=g[f];this.style[v]=this.style[v]}this._transitionState(e,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);var y=this.__inHover?p:h;for(f=0;f<y.length;f++){v=y[f];n&&null!=n[v]?this[v]=n[v]:u&&null!=i[v]&&(this[v]=i[v])}},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return(0,a.X$)(t,e),t},e.prototype.getAnimationStyleProps=function(){return c},e.initDefaultProps=((n=e.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=s.M|s.pO)),e}(r.A),f=new o.A(0,0,0,0),g=new o.A(0,0,0,0);const v=d},7605(t,e,n){n.d(e,{A:()=>i});const i=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}()},7786(t,e,n){n.d(e,{A:()=>l});var i=n(5482),r=n(9774),o=n(8994),a=n(7544),s=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return(0,i.C6)(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,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=r.qh(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),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,i=r.qh(n,t);return i<0||(n.splice(i,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 i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.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 a.A(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var s=n[o];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(a.A.applyTransform(e,l,u),(r=r||e.clone()).union(e)):(r=r||l.clone()).union(l)}}return r||e},e}(o.A);s.prototype.type="group";const l=s},6440(t,e,n){n.d(e,{Ay:()=>c});var i=n(5482),r=n(8211),o=n(7544),a=n(9774),s=(0,a.NT)({x:0,y:0},r.oN),l={style:(0,a.NT)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},r.sW.style)};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.createStyle=function(t){return(0,a.ed)(s,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return l},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new o.A(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(r.Ay);u.prototype.type="image";const c=u},1888(t,e,n){n.d(e,{A:()=>r});var i=n(5482);const r=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=e??0,s.y=n??0,s.x2=i??1,s.y2=r??0,s.type="linear",s.global=a||!1,s}return(0,i.C6)(e,t),e}(n(7605).A)},2834(t,e,n){n.d(e,{MW:()=>D,Ay:()=>O});var i=n(5482),r=n(8211),o=n(8747);function a(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||a<e-s&&a<i-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-i)/(t-n))*o-a+(t*i-n*e)/(t-n);return u*u/(l*l+1)<=s/2*s/2}var s=n(631);function l(t,e,n,i,r,o,a,l,u,c,h){if(0===u)return!1;var p=u;return!(h>e+p&&h>i+p&&h>o+p&&h>l+p||h<e-p&&h<i-p&&h<o-p&&h<l-p||c>t+p&&c>n+p&&c>r+p&&c>a+p||c<t-p&&c<n-p&&c<r-p&&c<a-p)&&s.Et(t,e,n,i,r,o,a,l,c,h,null)<=p/2}function u(t,e,n,i,r,o,a,l,u){if(0===a)return!1;var c=a;return!(u>e+c&&u>i+c&&u>o+c||u<e-c&&u<i-c&&u<o-c||l>t+c&&l>n+c&&l>r+c||l<t-c&&l<n-c&&l<r-c)&&(0,s.kh)(t,e,n,i,r,o,l,u,null)<=c/2}var c=2*Math.PI;function h(t){return(t%=c)<0&&(t+=c),t}var p=2*Math.PI;function d(t,e,n,i,r,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(i-r)%p<1e-4)return!0;if(o){var d=i;i=h(r),r=h(d)}else i=h(i),r=h(r);i>r&&(r+=p);var f=Math.atan2(l,s);return f<0&&(f+=p),f>=i&&f<=r||f+p>=i&&f+p<=r}function f(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;1!==a&&0!==a||(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}var g=o.A.CMD,v=2*Math.PI;var y=[-1,-1,-1],m=[-1,-1];function _(){var t=m[0];m[0]=m[1],m[1]=t}function x(t,e,n,i,r,o,a,l,u,c){if(c>e&&c>i&&c>o&&c>l||c<e&&c<i&&c<o&&c<l)return 0;var h=s._E(e,i,o,l,c,y);if(0===h)return 0;for(var p=0,d=-1,f=void 0,g=void 0,v=0;v<h;v++){var x=y[v],b=0===x||1===x?.5:1;s.Yb(t,n,r,a,x)<u||(d<0&&(d=s.lX(e,i,o,l,m),m[1]<m[0]&&d>1&&_(),f=s.Yb(e,i,o,l,m[0]),d>1&&(g=s.Yb(e,i,o,l,m[1]))),2===d?x<m[0]?p+=f<e?b:-b:x<m[1]?p+=g<f?b:-b:p+=l<g?b:-b:x<m[0]?p+=f<e?b:-b:p+=l<f?b:-b)}return p}function b(t,e,n,i,r,o,a,l){if(l>e&&l>i&&l>o||l<e&&l<i&&l<o)return 0;var u=s.qY(e,i,o,l,y);if(0===u)return 0;var c=s.gC(e,i,o);if(c>=0&&c<=1){for(var h=0,p=s.k3(e,i,o,c),d=0;d<u;d++){var f=0===y[d]||1===y[d]?.5:1;s.k3(t,n,r,y[d])<a||(y[d]<c?h+=p<e?f:-f:h+=o<p?f:-f)}return h}f=0===y[0]||1===y[0]?.5:1;return s.k3(t,n,r,y[0])<a?0:o<e?f:-f}function w(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);y[0]=-l,y[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=v-1e-4){i=0,r=v;var c=o?1:-1;return a>=y[0]+t&&a<=y[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=v,r+=v);for(var p=0,d=0;d<2;d++){var f=y[d];if(f+t>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=v+g),(g>=i&&g<=r||g+v>=i&&g+v<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),p+=c)}}return p}function S(t,e,n,i,r){for(var o,s,c,h,p=t.data,v=t.len(),y=0,m=0,_=0,S=0,I=0,M=0;M<v;){var T=p[M++],C=1===M;switch(T===g.M&&M>1&&(n||(y+=f(m,_,S,I,i,r))),C&&(S=m=p[M],I=_=p[M+1]),T){case g.M:m=S=p[M++],_=I=p[M++];break;case g.L:if(n){if(a(m,_,p[M],p[M+1],e,i,r))return!0}else y+=f(m,_,p[M],p[M+1],i,r)||0;m=p[M++],_=p[M++];break;case g.C:if(n){if(l(m,_,p[M++],p[M++],p[M++],p[M++],p[M],p[M+1],e,i,r))return!0}else y+=x(m,_,p[M++],p[M++],p[M++],p[M++],p[M],p[M+1],i,r)||0;m=p[M++],_=p[M++];break;case g.Q:if(n){if(u(m,_,p[M++],p[M++],p[M],p[M+1],e,i,r))return!0}else y+=b(m,_,p[M++],p[M++],p[M],p[M+1],i,r)||0;m=p[M++],_=p[M++];break;case g.A:var A=p[M++],D=p[M++],k=p[M++],P=p[M++],L=p[M++],O=p[M++];M+=1;var E=!!(1-p[M++]);o=Math.cos(L)*k+A,s=Math.sin(L)*P+D,C?(S=o,I=s):y+=f(m,_,o,s,i,r);var R=(i-A)*P/k+A;if(n){if(d(A,D,P,L,L+O,E,e,R,r))return!0}else y+=w(A,D,P,L,L+O,E,R,r);m=Math.cos(L+O)*k+A,_=Math.sin(L+O)*P+D;break;case g.R:if(S=m=p[M++],I=_=p[M++],o=S+p[M++],s=I+p[M++],n){if(a(S,I,o,I,e,i,r)||a(o,I,o,s,e,i,r)||a(o,s,S,s,e,i,r)||a(S,s,S,I,e,i,r))return!0}else y+=f(o,I,o,s,i,r),y+=f(S,s,S,I,i,r);break;case g.Z:if(n){if(a(m,_,S,I,e,i,r))return!0}else y+=f(m,_,S,I,i,r);m=S,_=I}}return n||(c=_,h=I,Math.abs(c-h)<1e-4)||(y+=f(m,_,S,I,i,r)||0),0!==y}var I=n(9774),M=n(9886),T=n(6486),C=n(6684),A=n(128),D=(0,I.NT)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},r.oN),k={style:(0,I.NT)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},r.sW.style)},P=A.Wx.concat(["invisible","culling","z","z2","zlevel","parent"]),L=function(t){function e(e){return t.call(this,e)||this}var n;return(0,i.C6)(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<P.length;++s)r[P[s]]=this[P[s]];r.__dirty|=C.M}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=(0,I.HP)(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?(0,I.X$)(this.style,a):this.useStyle(a):"shape"===o?(0,I.X$)(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((0,I.Kg)(t)){var e=(0,M.fN)(t,0);return e>.5?T._S:e>.2?T.tY:T.el}if(t)return T.el}return T._S},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if((0,I.Kg)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===(0,M.fN)(t,0)<T.ps)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~C.Dl},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 o.A(!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 i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&C.Dl)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,l??4)}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),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return S(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return S(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=C.Dl,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:(0,I.X$)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&C.Dl)},e.prototype.createStyle=function(t){return(0,I.ed)(D,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=(0,I.X$)({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=(0,I.X$)({},i.shape),(0,I.X$)(s,n.shape)):(s=(0,I.X$)({},r?this.shape:i.shape),(0,I.X$)(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=(0,I.X$)({},this.shape);for(var u={},c=(0,I.HP)(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,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return k},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return(0,i.C6)(n,e),n.prototype.getDefaultStyle=function(){return(0,I.o8)(t.style)},n.prototype.getDefaultShape=function(){return(0,I.o8)(t.shape)},n}(e);for(var r in t)"function"==typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=C.M|C.pO|C.Dl)),e}(r.Ay);const O=L},7881(t,e,n){n.d(e,{A:()=>h});var i=n(5482),r=n(8211),o=n(2834),a=n(9774),s=n(145),l=n(1874),u=(0,a.NT)({strokeFirst:!0,font:s.OH,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},o.MW),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.hasStroke=function(){return(0,l.n7)(this.style)},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return(0,a.ed)(u,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=(0,l.Xf)(this.style)),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(r.Ay);c.prototype.type="tspan";const h=c},2070(t,e,n){n.d(e,{Ay:()=>D,I5:()=>x,XE:()=>w});var i=n(5482),r=n(1874),o=n(7881),a=n(9774),s=n(6066),l=n(6440),u=n(6078),c=n(7544),h=n(8211),p=n(145),d={fill:"#000"},f={},g={style:(0,a.NT)({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},h.sW.style)},v=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=d,n.attr(e),n}return(0,i.C6)(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,S(t=this.style),(0,a.__)(t.rich,S),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 c.A(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||d},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return(0,a.X$)(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=(0,a.HP)(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},(0,a.X$)(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return g},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||p.OH,n=t.padding,i=this._defaultStyle,a=t.x||0,l=t.y||0,u=t.align||i.align||"left",c=t.verticalAlign||i.verticalAlign||"top";(0,r.Ss)(f,i.overflowRect,a,l,u,c),a=f.baseX,l=f.baseY;var h=C(t),d=(0,r.j_)(h,t,f.outerWidth,f.outerHeight),g=A(t),v=!!t.backgroundColor,y=d.outerHeight,m=d.outerWidth,_=d.lines,x=d.lineHeight;this.isTruncated=!!d.isTruncated;var w=a,S=(0,s.sZ)(l,d.contentHeight,c);if(g||n){var D=(0,s.ll)(a,m,u),k=(0,s.sZ)(l,y,c);g&&this._renderBackground(t,t,D,k,m,y)}S+=x/2,n&&(w=T(a,u,n),"top"===c?S+=n[0]:"bottom"===c&&(S-=n[2]));for(var P=0,L=!1,O=!1,E=(M("fill"in t?t.fill:(O=!0,i.fill))),R=(I("stroke"in t?t.stroke:v||i.autoStroke&&!O?null:(P=2,L=!0,i.stroke))),N=t.textShadowBlur>0,z=0;z<_.length;z++){var B=this._getOrCreateChild(o.A),V=B.createStyle();B.useStyle(V),V.text=_[z],V.x=w,V.y=S,u&&(V.textAlign=u),V.textBaseline="middle",V.opacity=t.opacity,V.strokeFirst=!0,N&&(V.shadowBlur=t.textShadowBlur||0,V.shadowColor=t.textShadowColor||"transparent",V.shadowOffsetX=t.textShadowOffsetX||0,V.shadowOffsetY=t.textShadowOffsetY||0),V.stroke=R,V.fill=E,R&&(V.lineWidth=t.lineWidth||P,V.lineDash=t.lineDash,V.lineDashOffset=t.lineDashOffset||0),V.font=e,b(V,t),S+=x,B.setBoundingRect((0,r.xu)(V,d.contentWidth,d.calculatedLineHeight,L?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,n=t.align||e.align,i=t.verticalAlign||e.verticalAlign,o=t.x||0,a=t.y||0;(0,r.Ss)(f,e.overflowRect,o,a,n,i),o=f.baseX,a=f.baseY;var l=C(t),u=(0,r.FQ)(l,t,f.outerWidth,f.outerHeight,n),c=u.width,h=u.outerWidth,p=u.outerHeight,d=t.padding;this.isTruncated=!!u.isTruncated;var g=(0,s.ll)(o,h,n),v=(0,s.sZ)(a,p,i),y=g,m=v;d&&(y+=d[3],m+=d[0]);var _=y+c;A(t)&&this._renderBackground(t,t,g,v,h,p);for(var x=!!t.backgroundColor,b=0;b<u.lines.length;b++){for(var w=u.lines[b],S=w.tokens,I=S.length,M=w.lineHeight,T=w.width,D=0,k=y,P=_,L=I-1,O=void 0;D<I&&(!(O=S[D]).align||"left"===O.align);)this._placeToken(O,t,M,m,k,"left",x),T-=O.width,k+=O.width,D++;for(;L>=0&&"right"===(O=S[L]).align;)this._placeToken(O,t,M,m,P,"right",x),T-=O.width,P-=O.width,L--;for(k+=(c-(k-y)-(_-P)-T)/2;D<=L;)O=S[D],this._placeToken(O,t,M,m,k+O.width/2,"center",x),k+=O.width,D++;m+=M}},e.prototype._placeToken=function(t,e,n,i,s,l,u){var c=e.rich[t.styleName]||{};c.text=t.text;var h=t.verticalAlign,d=i+n/2;"top"===h?d=i+t.height/2:"bottom"===h&&(d=i+n-t.height/2),!t.isLineHolder&&A(c)&&this._renderBackground(c,e,"right"===l?s-t.width:"center"===l?s-t.width/2:s,d-t.height/2,t.width,t.height);var f=!!c.backgroundColor,g=t.textPadding;g&&(s=T(s,l,g),d-=t.height/2-g[0]-t.innerHeight/2);var v=this._getOrCreateChild(o.A),y=v.createStyle();v.useStyle(y);var m=this._defaultStyle,_=!1,x=0,w=!1,S=M("fill"in c?c.fill:"fill"in e?e.fill:(_=!0,m.fill)),C=I("stroke"in c?c.stroke:"stroke"in e?e.stroke:f||u||m.autoStroke&&!_?null:(x=2,w=!0,m.stroke)),D=c.textShadowBlur>0||e.textShadowBlur>0;y.text=t.text,y.x=s,y.y=d,D&&(y.shadowBlur=c.textShadowBlur||e.textShadowBlur||0,y.shadowColor=c.textShadowColor||e.textShadowColor||"transparent",y.shadowOffsetX=c.textShadowOffsetX||e.textShadowOffsetX||0,y.shadowOffsetY=c.textShadowOffsetY||e.textShadowOffsetY||0),y.textAlign=l,y.textBaseline="middle",y.font=t.font||p.OH,y.opacity=(0,a.WV)(c.opacity,e.opacity,1),b(y,c),C&&(y.lineWidth=(0,a.WV)(c.lineWidth,e.lineWidth,x),y.lineDash=(0,a.bZ)(c.lineDash,e.lineDash),y.lineDashOffset=e.lineDashOffset||0,y.stroke=C),S&&(y.fill=S),v.setBoundingRect((0,r.xu)(y,t.contentWidth,t.contentHeight,w?0:null))},e.prototype._renderBackground=function(t,e,n,i,r,o){var s,c,h,p=t.backgroundColor,d=t.borderWidth,f=t.borderColor,g=p&&p.image,v=p&&!g,y=t.borderRadius,m=this;if(v||t.lineHeight||d&&f){(s=this._getOrCreateChild(u.A)).useStyle(s.createStyle()),s.style.fill=null;var _=s.shape;_.x=n,_.y=i,_.width=r,_.height=o,_.r=y,s.dirtyShape()}if(v)(h=s.style).fill=p||null,h.fillOpacity=(0,a.bZ)(t.fillOpacity,1);else if(g){(c=this._getOrCreateChild(l.Ay)).onload=function(){m.dirtyStyle()};var x=c.style;x.image=p.image,x.x=n,x.y=i,x.width=r,x.height=o}d&&f&&((h=s.style).lineWidth=d,h.stroke=f,h.strokeOpacity=(0,a.bZ)(t.strokeOpacity,1),h.lineDash=t.borderDash,h.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2));var b=(s||c).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=(0,a.WV)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return w(t)&&(e=[t.fontStyle,t.fontWeight,x(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&(0,a.Bq)(e)||t.textFont||t.font},e}(h.Ay),y={left:!0,right:1,center:1},m={top:1,bottom:1,middle:1},_=["fontStyle","fontWeight","fontSize","fontFamily"];function x(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?p.gI+"px":t+"px":t}function b(t,e){for(var n=0;n<_.length;n++){var i=_[n],r=e[i];null!=r&&(t[i]=r)}}function w(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function S(t){if(t){t.font=v.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||y[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||m[n]?n:"top",t.padding&&(t.padding=(0,a.QX)(t.padding))}}function I(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function M(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function T(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function C(t){var e=t.text;return null!=e&&(e+=""),e}function A(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const D=v},6684(t,e,n){n.d(e,{Dl:()=>o,M:()=>i,pO:()=>r});var i=1,r=2,o=4},5027(t,e,n){n.d(e,{OD:()=>s,SR:()=>a,xA:()=>u});var i=n(4361),r=n(145),o=new i.Ay(50);function a(t){if("string"==typeof t){var e=o.get(t);return e&&e.image}return t}function s(t,e,n,i,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var s=o.get(t),c={hostEl:n,cb:i,cbPayload:a};return s?!u(e=s.image)&&s.pending.push(c):((e=r.yh.loadImage(t,l,l)).__zrImageSrc=t,o.put(t,e.__cachedImgObj={image:e,pending:[c]})),e}return t}return e}function l(){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],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function u(t){return t&&t.width&&t.height}},1874(t,e,n){n.d(e,{FQ:()=>v,Ss:()=>b,Xf:()=>M,j_:()=>p,n7:()=>C,xu:()=>T});var i=n(5027),r=n(9774),o=n(6066),a=n(7544),s=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function l(t,e,n,i,r,o){if(!n)return t.text="",void(t.isTruncated=!1);var a=(e+"").split("\n");o=u(n,i,r,o);for(var s=!1,l={},h=0,p=a.length;h<p;h++)c(l,a[h],o),a[h]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}function u(t,e,n,i){i=i||{};var a=(0,r.X$)({},i);n=(0,r.bZ)(n,"..."),a.maxIterations=(0,r.bZ)(i.maxIterations,2);var s=a.minChar=(0,r.bZ)(i.minChar,0),l=a.fontMeasureInfo=(0,o.Qw)(e),u=l.asciiCharWidth;a.placeholder=(0,r.bZ)(i.placeholder,"");for(var c=t=Math.max(0,t-1),h=0;h<s&&c>=u;h++)c-=u;var p=(0,o.l8)(l,n);return p>c&&(n="",p=0),c=t-p,a.ellipsis=n,a.ellipsisWidth=p,a.contentWidth=c,a.containerWidth=t,a}function c(t,e,n){var i=n.containerWidth,r=n.contentWidth,a=n.fontMeasureInfo;if(!i)return t.textLine="",void(t.isTruncated=!1);var s=(0,o.l8)(a,e);if(s<=i)return t.textLine=e,void(t.isTruncated=!1);for(var l=0;;l++){if(s<=r||l>=n.maxIterations){e+=n.ellipsis;break}var u=0===l?h(e,r,a):s>0?Math.floor(e.length*r/s):0;e=e.substr(0,u),s=(0,o.l8)(a,e)}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function h(t,e,n){for(var i=0,r=0,a=t.length;r<a&&i<e;r++)i+=(0,o.JK)(n,t.charCodeAt(r));return r}function p(t,e,n,i){var a=I(t),s=e.overflow,l=e.padding,h=l?l[1]+l[3]:0,p=l?l[0]+l[2]:0,d=e.font,f="truncate"===s,g=(0,o.ks)(d),v=(0,r.bZ)(e.lineHeight,g),y="truncate"===e.lineOverflow,m=!1,_=e.width;null==_&&null!=n&&(_=n-h);var b,w=e.height;null==w&&null!=i&&(w=i-p);var S=(b=null==_||"break"!==s&&"breakAll"!==s?a?a.split("\n"):[]:a?x(a,e.font,_,"breakAll"===s,0).lines:[]).length*v;if(null==w&&(w=S),S>w&&y){var M=Math.floor(w/v);m=m||b.length>M,S=(b=b.slice(0,M)).length*v}if(a&&f&&null!=_)for(var T=u(_,d,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),C={},A=0;A<b.length;A++)c(C,b[A],T),b[A]=C.textLine,m=m||C.isTruncated;var D=w,k=0,P=(0,o.Qw)(d);for(A=0;A<b.length;A++)k=Math.max((0,o.l8)(P,b[A]),k);null==_&&(_=k);var L=_;return{lines:b,height:w,outerWidth:L+=h,outerHeight:D+=p,lineHeight:v,calculatedLineHeight:g,contentWidth:k,contentHeight:S,width:_,isTruncated:m}}var d=function(){},f=function(t){this.tokens=[],t&&(this.tokens=t)},g=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function v(t,e,n,a,u){var c=new g,h=I(t);if(!h)return c;var p=e.padding,d=p?p[1]+p[3]:0,f=p?p[0]+p[2]:0,v=e.width;null==v&&null!=n&&(v=n-d);var m=e.height;null==m&&null!=a&&(m=a-f);for(var _,x=e.overflow,b="break"!==x&&"breakAll"!==x||null==v?null:{width:v,accumWidth:0,breakAll:"breakAll"===x},w=s.lastIndex=0;null!=(_=s.exec(h));){var S=_.index;S>w&&y(c,h.substring(w,S),e,b),y(c,_[2],e,b,_[1]),w=s.lastIndex}w<h.length&&y(c,h.substring(w,h.length),e,b);var M=[],T=0,C=0,A="truncate"===x,D="truncate"===e.lineOverflow,k={};function P(t,e,n){t.width=e,t.lineHeight=n,T+=n,C=Math.max(C,e)}t:for(var L=0;L<c.lines.length;L++){for(var O=c.lines[L],E=0,R=0,N=0;N<O.tokens.length;N++){var z=(Z=O.tokens[N]).styleName&&e.rich[Z.styleName]||{},B=Z.textPadding=z.padding,V=B?B[1]+B[3]:0,F=Z.font=z.font||e.font;Z.contentHeight=(0,o.ks)(F);var H=(0,r.bZ)(z.height,Z.contentHeight);if(Z.innerHeight=H,B&&(H+=B[0]+B[2]),Z.height=H,Z.lineHeight=(0,r.WV)(z.lineHeight,e.lineHeight,H),Z.align=z&&z.align||u,Z.verticalAlign=z&&z.verticalAlign||"middle",D&&null!=m&&T+Z.lineHeight>m){var W=c.lines.length;N>0?(O.tokens=O.tokens.slice(0,N),P(O,R,E),c.lines=c.lines.slice(0,L+1)):c.lines=c.lines.slice(0,L),c.isTruncated=c.isTruncated||c.lines.length<W;break t}var G=z.width,X=null==G||"auto"===G;if("string"==typeof G&&"%"===G.charAt(G.length-1))Z.percentWidth=G,M.push(Z),Z.contentWidth=(0,o.l8)((0,o.Qw)(F),Z.text);else{if(X){var U=z.backgroundColor,Y=U&&U.image;Y&&(Y=i.SR(Y),i.xA(Y)&&(Z.width=Math.max(Z.width,Y.width*H/Y.height)))}var j=A&&null!=v?v-R:null;null!=j&&j<Z.width?!X||j<V?(Z.text="",Z.width=Z.contentWidth=0):(l(k,Z.text,j-V,F,e.ellipsis,{minChar:e.truncateMinChar}),Z.text=k.text,c.isTruncated=c.isTruncated||k.isTruncated,Z.width=Z.contentWidth=(0,o.l8)((0,o.Qw)(F),Z.text)):Z.contentWidth=(0,o.l8)((0,o.Qw)(F),Z.text)}Z.width+=V,R+=Z.width,z&&(E=Math.max(E,Z.lineHeight))}P(O,R,E)}c.outerWidth=c.width=(0,r.bZ)(v,C),c.outerHeight=c.height=(0,r.bZ)(m,T),c.contentHeight=T,c.contentWidth=C,c.outerWidth+=d,c.outerHeight+=f;for(L=0;L<M.length;L++){var Z,q=(Z=M[L]).percentWidth;Z.width=parseInt(q,10)/100*c.width}return c}function y(t,e,n,i,r){var a,s,l=""===e,u=r&&n.rich[r]||{},c=t.lines,h=u.font||n.font,p=!1;if(i){var g=u.padding,v=g?g[1]+g[3]:0;if(null!=u.width&&"auto"!==u.width){var y=(0,o.lo)(u.width,i.width)+v;c.length>0&&y+i.accumWidth>i.width&&(a=e.split("\n"),p=!0),i.accumWidth=y}else{var m=x(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=m.accumWidth+v,s=m.linesWidths,a=m.lines}}a||(a=e.split("\n"));for(var _=(0,o.Qw)(h),b=0;b<a.length;b++){var w=a[b],S=new d;if(S.styleName=r,S.text=w,S.isLineHolder=!w&&!l,"number"==typeof u.width?S.width=u.width:S.width=s?s[b]:(0,o.l8)(_,w),b||p)c.push(new f([S]));else{var I=(c[c.length-1]||(c[0]=new f)).tokens,M=I.length;1===M&&I[0].isLineHolder?I[0]=S:(w||!M||l)&&I.push(S)}}}var m=(0,r.TS)(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function _(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)||!!m[t]}function x(t,e,n,i,r){for(var a=[],s=[],l="",u="",c=0,h=0,p=(0,o.Qw)(e),d=0;d<t.length;d++){var f=t.charAt(d);if("\n"!==f){var g=(0,o.JK)(p,f.charCodeAt(0)),v=!i&&!_(f);(a.length?h+g>n:r+h+g>n)?h?(l||u)&&(v?(l||(l=u,u="",h=c=0),a.push(l),s.push(h-c),u+=f,l="",h=c+=g):(u&&(l+=u,u="",c=0),a.push(l),s.push(h),l=f,h=g)):v?(a.push(u),s.push(c),u=f,c=g):(a.push(f),s.push(g)):(h+=g,v?(u+=f,c+=g):(u&&(l+=u,u="",c=0),l+=f))}else u&&(l+=u,h+=c),a.push(l),s.push(h),l="",u="",c=0,h=0}return u&&(l+=u),l&&(a.push(l),s.push(h)),1===a.length&&(h+=r),{accumWidth:h,lines:a,linesWidths:s}}function b(t,e,n,i,r,s){if(t.baseX=n,t.baseY=i,t.outerWidth=t.outerHeight=null,e){var l=2*e.width,u=2*e.height;a.A.set(w,(0,o.ll)(n,l,r),(0,o.sZ)(i,u,s),l,u),a.A.intersect(e,w,null,S);var c=S.outIntersectRect;t.outerWidth=c.width,t.outerHeight=c.height,t.baseX=(0,o.ll)(c.x,c.width,r,!0),t.baseY=(0,o.sZ)(c.y,c.height,s,!0)}}var w=new a.A(0,0,0,0),S={outIntersectRect:{},clamp:!0};function I(t){return null!=t?t+="":t=""}function M(t){var e=I(t.text),n=t.font;return T(t,(0,o.l8)((0,o.Qw)(n),e),(0,o.ks)(n),null)}function T(t,e,n,i){var r=new a.A((0,o.ll)(t.x||0,e,t.textAlign),(0,o.sZ)(t.y||0,n,t.textBaseline),e,n),s=null!=i?i:C(t)?t.lineWidth:0;return s>0&&(r.x-=s/2,r.y-=s/2,r.width+=s,r.height+=s),r}function C(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}},8324(t,e,n){n.d(e,{U:()=>r});var i=n(4721);function r(t,e,n){var r=e.smooth,o=e.points;if(o&&o.length>=2){if(r){var a=function(t,e,n,r){var o,a,s,l,u=[],c=[],h=[],p=[];if(r){s=[1/0,1/0],l=[-1/0,-1/0];for(var d=0,f=t.length;d<f;d++)(0,i.jk)(s,s,t[d]),(0,i.T9)(l,l,t[d]);(0,i.jk)(s,s,r[0]),(0,i.T9)(l,l,r[1])}for(d=0,f=t.length;d<f;d++){var g=t[d];if(n)o=t[d?d-1:f-1],a=t[(d+1)%f];else{if(0===d||d===f-1){u.push((0,i.o8)(t[d]));continue}o=t[d-1],a=t[d+1]}(0,i.jb)(c,a,o),(0,i.hs)(c,c,e);var v=(0,i.Io)(g,o),y=(0,i.Io)(g,a),m=v+y;0!==m&&(v/=m,y/=m),(0,i.hs)(h,c,-v),(0,i.hs)(p,c,y);var _=(0,i.WQ)([],g,h),x=(0,i.WQ)([],g,p);r&&((0,i.T9)(_,_,s),(0,i.jk)(_,_,l),(0,i.T9)(x,x,s),(0,i.jk)(x,x,l)),u.push(_),u.push(x)}return n&&u.push(u.shift()),u}(o,r,n,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var s=o.length,l=0;l<(n?s:s-1);l++){var u=a[2*l],c=a[2*l+1],h=o[(l+1)%s];t.bezierCurveTo(u[0],u[1],c[0],c[1],h[0],h[1])}}else{t.moveTo(o[0][0],o[0][1]);l=1;for(var p=o.length;l<p;l++)t.lineTo(o[l][0],o[l][1])}n&&t.closePath()}}},2653(t,e,n){n.d(e,{M7:()=>a,Op:()=>o,eB:()=>r});var i=Math.round;function r(t,e,n){if(e){var r=e.x1,o=e.x2,s=e.y1,l=e.y2;t.x1=r,t.x2=o,t.y1=s,t.y2=l;var u=n&&n.lineWidth;return u?(i(2*r)===i(2*o)&&(t.x1=t.x2=a(r,u,!0)),i(2*s)===i(2*l)&&(t.y1=t.y2=a(s,u,!0)),t):t}}function o(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,s=e.height;t.x=i,t.y=r,t.width=o,t.height=s;var l=n&&n.lineWidth;return l?(t.x=a(i,l,!0),t.y=a(r,l,!0),t.width=Math.max(a(i+o,l,!1)-t.x,0===o?0:1),t.height=Math.max(a(r+s,l,!1)-t.y,0===s?0:1),t):t}}function a(t,e,n){if(!e)return t;var r=i(2*t);return(r+i(e))%2==0?r/2:(r+(n?1:-1))/2}},9987(t,e,n){n.d(e,{A:()=>s});var i=n(5482),r=n(2834),o=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=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*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(r.Ay);a.prototype.type="arc";const s=a},9471(t,e,n){n.d(e,{A:()=>s});var i=n(5482),r=n(2834),o=function(){this.cx=0,this.cy=0,this.r=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},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}(r.Ay);a.prototype.type="circle";const s=a},8401(t,e,n){n.d(e,{A:()=>u});var i=n(5482),r=n(2834),o=n(2653),a={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,i,r,s;if(this.subPixelOptimize){var l=(0,o.eB)(a,e,this.style);n=l.x1,i=l.y1,r=l.x2,s=l.y2}else n=e.x1,i=e.y1,r=e.x2,s=e.y2;var u=e.percent;0!==u&&(t.moveTo(n,i),u<1&&(r=n*(1-u)+r*u,s=i*(1-u)+s*u),t.lineTo(r,s))},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}(r.Ay);l.prototype.type="line";const u=l},9717(t,e,n){n.d(e,{A:()=>l});var i=n(5482),r=n(2834),o=n(8324),a=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.U(t,e,!0)},e}(r.Ay);s.prototype.type="polygon";const l=s},9935(t,e,n){n.d(e,{A:()=>l});var i=n(5482),r=n(2834),o=n(8324),a=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.U(t,e,!1)},e}(r.Ay);s.prototype.type="polyline";const l=s},6078(t,e,n){n.d(e,{A:()=>u});var i=n(5482),r=n(2834);var o=n(2653),a=function(){this.x=0,this.y=0,this.width=0,this.height=0},s={},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var n,i,r,a;if(this.subPixelOptimize){var l=(0,o.Op)(s,e,this.style);n=l.x,i=l.y,r=l.width,a=l.height,l.r=e.r,e=l}else n=e.x,i=e.y,r=e.width,a=e.height;e.r?function(t,e){var n,i,r,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=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,a)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(r.Ay);l.prototype.type="rect";const u=l},8577(t,e,n){n.d(e,{A:()=>s});var i=n(5482),r=n(2834),o=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(r.Ay);a.prototype.type="ring";const s=a},6498(t,e,n){n.d(e,{A:()=>b});var i=n(5482),r=n(2834),o=n(9774),a=Math.PI,s=2*a,l=Math.sin,u=Math.cos,c=Math.acos,h=Math.atan2,p=Math.abs,d=Math.sqrt,f=Math.max,g=Math.min,v=1e-4;function y(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/d(s*s+l*l),c=u*l,h=-u*s,p=t+c,g=e+h,v=n+c,y=i+h,m=(p+v)/2,_=(g+y)/2,x=v-p,b=y-g,w=x*x+b*b,S=r-o,I=p*y-v*g,M=(b<0?-1:1)*d(f(0,S*S*w-I*I)),T=(I*b-x*M)/w,C=(-I*x-b*M)/w,A=(I*b+x*M)/w,D=(-I*x+b*M)/w,k=T-m,P=C-_,L=A-m,O=D-_;return k*k+P*P>L*L+O*O&&(T=A,C=D),{cx:T,cy:C,x0:-c,y0:-h,x1:T*(r/S-1),y1:C*(r/S-1)}}function m(t,e){var n,i=f(e.r,0),r=f(e.r0||0,0),m=i>0;if(m||r>0){if(m||(i=r,r=0),r>i){var _=i;i=r,r=_}var x=e.startAngle,b=e.endAngle;if(!isNaN(x)&&!isNaN(b)){var w=e.cx,S=e.cy,I=!!e.clockwise,M=p(b-x),T=M>s&&M%s;if(T>v&&(M=T),i>v)if(M>s-v)t.moveTo(w+i*u(x),S+i*l(x)),t.arc(w,S,i,x,b,!I),r>v&&(t.moveTo(w+r*u(b),S+r*l(b)),t.arc(w,S,r,b,x,I));else{var C=void 0,A=void 0,D=void 0,k=void 0,P=void 0,L=void 0,O=void 0,E=void 0,R=void 0,N=void 0,z=void 0,B=void 0,V=void 0,F=void 0,H=void 0,W=void 0,G=i*u(x),X=i*l(x),U=r*u(b),Y=r*l(b),j=M>v;if(j){var Z=e.cornerRadius;Z&&(C=(n=function(t){var e;if((0,o.cy)(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}(Z))[0],A=n[1],D=n[2],k=n[3]);var q=p(i-r)/2;if(P=g(q,D),L=g(q,k),O=g(q,C),E=g(q,A),z=R=f(P,L),B=N=f(O,E),(R>v||N>v)&&(V=i*u(b),F=i*l(b),H=r*u(x),W=r*l(x),M<a)){var $=function(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,p=h*l-c*u;if(!(p*p<v))return[t+(p=(c*(e-o)-h*(t-r))/p)*l,e+p*u]}(G,X,H,W,V,F,U,Y);if($){var K=G-$[0],Q=X-$[1],J=V-$[0],tt=F-$[1],et=1/l(c((K*J+Q*tt)/(d(K*K+Q*Q)*d(J*J+tt*tt)))/2),nt=d($[0]*$[0]+$[1]*$[1]);z=g(R,(i-nt)/(et+1)),B=g(N,(r-nt)/(et-1))}}}if(j)if(z>v){var it=g(D,z),rt=g(k,z),ot=y(H,W,G,X,i,it,I),at=y(V,F,U,Y,i,rt,I);t.moveTo(w+ot.cx+ot.x0,S+ot.cy+ot.y0),z<R&&it===rt?t.arc(w+ot.cx,S+ot.cy,z,h(ot.y0,ot.x0),h(at.y0,at.x0),!I):(it>0&&t.arc(w+ot.cx,S+ot.cy,it,h(ot.y0,ot.x0),h(ot.y1,ot.x1),!I),t.arc(w,S,i,h(ot.cy+ot.y1,ot.cx+ot.x1),h(at.cy+at.y1,at.cx+at.x1),!I),rt>0&&t.arc(w+at.cx,S+at.cy,rt,h(at.y1,at.x1),h(at.y0,at.x0),!I))}else t.moveTo(w+G,S+X),t.arc(w,S,i,x,b,!I);else t.moveTo(w+G,S+X);if(r>v&&j)if(B>v){it=g(C,B),ot=y(U,Y,V,F,r,-(rt=g(A,B)),I),at=y(G,X,H,W,r,-it,I);t.lineTo(w+ot.cx+ot.x0,S+ot.cy+ot.y0),B<N&&it===rt?t.arc(w+ot.cx,S+ot.cy,B,h(ot.y0,ot.x0),h(at.y0,at.x0),!I):(rt>0&&t.arc(w+ot.cx,S+ot.cy,rt,h(ot.y0,ot.x0),h(ot.y1,ot.x1),!I),t.arc(w,S,r,h(ot.cy+ot.y1,ot.cx+ot.x1),h(at.cy+at.y1,at.cx+at.x1),I),it>0&&t.arc(w+at.cx,S+at.cy,it,h(at.y1,at.x1),h(at.y0,at.x0),!I))}else t.lineTo(w+U,S+Y),t.arc(w,S,r,b,x,I);else t.lineTo(w+U,S+Y)}else t.moveTo(w,S);t.closePath()}}}var _=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},x=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new _},e.prototype.buildPath=function(t,e){m(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(r.Ay);x.prototype.type="sector";const b=x},5483(t,e,n){n.d(e,{$2:()=>s,Cv:()=>u,MD:()=>S,OH:()=>x,OS:()=>_,Pt:()=>m,WG:()=>M,XP:()=>h,Xu:()=>w,Z1:()=>I,bn:()=>b,dX:()=>g,eQ:()=>d,nV:()=>p,sL:()=>y,sZ:()=>f,si:()=>v});var i=n(9774),r=n(9886),o=n(8311),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=(0,r.qg)(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:e??1}}var l=1e-4;function u(t){return t<l&&t>-1e-4}function c(t){return a(1e3*t)/1e3}function h(t){return a(1e4*t)/1e4}function p(t){return"matrix("+c(t[0])+","+c(t[1])+","+c(t[2])+","+c(t[3])+","+h(t[4])+","+h(t[5])+")"}var d={left:"start",right:"end",center:"middle",middle:"middle"};function f(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function v(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function y(t){return t&&!!t.image}function m(t){return y(t)||function(t){return t&&!!t.svgElement}(t)}function _(t){return"linear"===t.type}function x(t){return"radial"===t.type}function b(t){return t&&("linear"===t.type||"radial"===t.type)}function w(t){return"url(#"+t+")"}function S(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 I(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*i.lI,o=(0,i.bZ)(t.scaleX,1),s=(0,i.bZ)(t.scaleY,1),l=t.skewX||0,u=t.skewY||0,c=[];return(e||n)&&c.push("translate("+e+"px,"+n+"px)"),r&&c.push("rotate("+r+")"),1===o&&1===s||c.push("scale("+o+","+s+")"),(l||u)&&c.push("skew("+a(l*i.lI)+"deg, "+a(u*i.lI)+"deg)"),c.join(" ")}var M=o.A.hasGlobalWindow&&(0,i.Tn)(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}},9886(t,e,n){n.d(e,{As:()=>I,Cc:()=>b,P:()=>C,Yu:()=>w,ad:()=>x,fN:()=>M,hm:()=>S,qg:()=>y,yY:()=>_});var i=n(4361),r=n(9774),o={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 a(t){return(t=Math.round(t))<0?0:t>255?255:t}function s(t){return t<0?0:t>1?1:t}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100*255):a(parseInt(e,10))}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function c(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 h(t,e,n){return t+(e-t)*n}function p(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new i.Ay(20),g=null;function v(t,e){g&&d(g,e),g=f.put(t,g||e.slice())}function y(t,e){if(t){e=e||[];var n=f.get(t);if(n)return d(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in o)return d(e,o[i]),v(t,e),e;var r,a=i.length;if("#"===i.charAt(0))return 4===a||5===a?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(p(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===a?parseInt(i.slice(4),16)/15:1),v(t,e),e):void p(e,0,0,0,1):7===a||9===a?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(p(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===a?parseInt(i.slice(7),16)/255:1),v(t,e),e):void p(e,0,0,0,1):void 0;var s=i.indexOf("("),c=i.indexOf(")");if(-1!==s&&c+1===a){var h=i.substr(0,s),g=i.substr(s+1,c-(s+1)).split(","),y=1;switch(h){case"rgba":if(4!==g.length)return 3===g.length?p(e,+g[0],+g[1],+g[2],1):p(e,0,0,0,1);y=u(g.pop());case"rgb":return g.length>=3?(p(e,l(g[0]),l(g[1]),l(g[2]),3===g.length?y:u(g[3])),v(t,e),e):void p(e,0,0,0,1);case"hsla":return 4!==g.length?void p(e,0,0,0,1):(g[3]=u(g[3]),m(g,e),v(t,e),e);case"hsl":return 3!==g.length?void p(e,0,0,0,1):(m(g,e),v(t,e),e);default:return}}p(e,0,0,0,1)}}function m(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=u(t[1]),r=u(t[2]),o=r<=.5?r*(i+1):r+i-r*i,s=2*r-o;return p(e=e||[],a(255*c(s,o,n+1/3)),a(255*c(s,o,n)),a(255*c(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function _(t,e){var n=y(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return I(n,4===n.length?"rgba":"rgb")}}function x(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),l=e[r],u=e[o],c=i-r;return n[0]=a(h(l[0],u[0],c)),n[1]=a(h(l[1],u[1],c)),n[2]=a(h(l[2],u[2],c)),n[3]=s(h(l[3],u[3],c)),n}}function b(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),l=y(e[r]),u=y(e[o]),c=i-r,p=I([a(h(l[0],u[0],c)),a(h(l[1],u[1],c)),a(h(l[2],u[2],c)),s(h(l[3],u[3],c))],"rgba");return n?{color:p,leftIndex:r,rightIndex:o,value:i}:p}}function w(t,e,n,i){var o,a=y(t);if(t)return a=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,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-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-h:r===s?e=1/3+c-p:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}(a),null!=e&&(a[0]=(o=(0,r.Tn)(e)?e(a[0]):e,(o=Math.round(o))<0?0:o>360?360:o)),null!=n&&(a[1]=u((0,r.Tn)(n)?n(a[1]):n)),null!=i&&(a[2]=u((0,r.Tn)(i)?i(a[2]):i)),I(m(a),"rgba")}function S(t,e){var n=y(t);if(n&&null!=e)return n[3]=s(e),I(n,"rgba")}function I(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function M(t,e){var n=y(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var T=new i.Ay(100);function C(t){if((0,r.Kg)(t)){var e=T.get(t);return e||(e=_(t,-.1),T.put(t,e)),e}if((0,r.C7)(t)){var n=(0,r.X$)({},t);return n.colorStops=(0,r.Tj)(t.colorStops,function(t){return{offset:t.offset,color:_(t.color,-.1)}}),n}return t}},2023(t,e,n){n.d(e,{N1:()=>ht,Ts:()=>ut,fI:()=>ct});var i=n(8311),r=n(9774),o=n(5482),a=n(4721),s=function(t,e){this.target=t,this.topTarget=e&&e.topTarget};const l=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 s(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new s(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=a,e!==a&&(l&&a!==l&&this.handler.dispatchToElement(new s(l,t),"dragleave",t.event),a&&a!==l&&this.handler.dispatchToElement(new s(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new s(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();var u=n(1969),c=n(1720),h=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 i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=c.Yo(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in d)if(d.hasOwnProperty(e)){var n=d[e](this._track,t);if(n)return n}},t}();function p(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var d={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,o=(t[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=p(r)/p(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},f=n(7544),g="silent";function v(){c.ds(this.event)}var y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return(0,o.C6)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(u.A),m=function(t,e){this.x=t,this.y=e},_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],x=new f.A(0,0,0,0),b=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new m(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new y,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new l(a),a}return(0,o.C6)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(r.__(_,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,i=I(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new m(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(r,"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 m(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 i=(t=t||{}).target;if(!i||!i.silent){for(var r="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:v}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new m(t,e);if(S(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new f.A(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(x.copy(c.getBoundingRect()),c.transform&&x.applyTransform(c.transform),x.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var g=0;g<p;g+=h){if(S(o,r,t+d*Math.cos(g),e+d*Math.sin(g),n),r.target)return r}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new h);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new m;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(u.A);function w(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return!r||g}return!1}function S(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=w(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==g)){e.target=a;break}}}function I(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}r.__(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){b.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,s=I(this,r,o);if("mouseup"===t&&s||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||a.xg(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});const M=b;var T=n(5874),C=n(6684),A=!1;function D(){A||(A=!0)}function k(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}const P=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=k}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,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,(0,T.A)(n,k)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),r=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(r||i)){if(a||(a=t.__clipPaths=[]),r)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=i,u=t;l;)l.parent=u,l.updateTransform(),a[o++]=l,u=l,l=l.getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var c=t.childrenRef(),h=0;h<c.length;h++){var p=c[h];t.__dirty&&(p.__dirty|=C.M),this._updateAndAddDisplayable(p,a,n)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(D(),d.z=0),isNaN(d.z2)&&(D(),d.z2=0),isNaN(d.zlevel)&&(D(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,a,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,a,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,a,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 i=r.qh(this._roots,t);i>=0&&this._roots.splice(i,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}();var L=n(3717),O=n(9264);function E(){return(new Date).getTime()}var R=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(0,o.C6)(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=E()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,(0,L.A)(function e(){t._running&&((0,L.A)(e),!t._paused&&t.update())})},e.prototype.start=function(){this._running||(this._time=E(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=E(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=E()-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 O.A(t,e.loop);return this.addAnimator(n),n},e}(u.A);const N=R;var z,B,V=i.A.domSupported,F=(B={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:z=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:r.Tj(z,function(t){var e=t.replace("mouse","pointer");return B.hasOwnProperty(e)?e:t})}),H=["mousemove","mouseup"],W=["pointermove","pointerup"],G=!1;function X(t){var e=t.pointerType;return"pen"===e||"touch"===e}function U(t){t&&(t.zrByTouch=!0)}function Y(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var j=function(t,e){this.stopPropagation=r.lQ,this.stopImmediatePropagation=r.lQ,this.preventDefault=r.lQ,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Z={mousedown:function(t){t=(0,c.e0)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=(0,c.e0)(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=(0,c.e0)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Y(this,(t=(0,c.e0)(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){G=!0,t=(0,c.e0)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){G||(t=(0,c.e0)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){U(t=(0,c.e0)(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Z.mousemove.call(this,t),Z.mousedown.call(this,t)},touchmove:function(t){U(t=(0,c.e0)(this.dom,t)),this.handler.processGesture(t,"change"),Z.mousemove.call(this,t)},touchend:function(t){U(t=(0,c.e0)(this.dom,t)),this.handler.processGesture(t,"end"),Z.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Z.click.call(this,t)},pointerdown:function(t){Z.mousedown.call(this,t)},pointermove:function(t){X(t)||Z.mousemove.call(this,t)},pointerup:function(t){Z.mouseup.call(this,t)},pointerout:function(t){X(t)||Z.mouseout.call(this,t)}};r.__(["click","dblclick","contextmenu"],function(t){Z[t]=function(e){e=(0,c.e0)(this.dom,e),this.trigger(t,e)}});var q={pointermove:function(t){X(t)||q.mousemove.call(this,t)},pointerup:function(t){q.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 $(t,e){var n=e.domHandlers;i.A.pointerEventsSupported?r.__(F.pointer,function(i){Q(e,i,function(e){n[i].call(t,e)})}):(i.A.touchEventsSupported&&r.__(F.touch,function(i){Q(e,i,function(r){n[i].call(t,r),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)})}),r.__(F.mouse,function(i){Q(e,i,function(r){r=(0,c.mK)(r),e.touching||n[i].call(t,r)})}))}function K(t,e){function n(n){Q(e,n,function(i){i=(0,c.mK)(i),Y(t,i.target)||(i=function(t,e){return(0,c.e0)(t.dom,new j(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))},{capture:!0})}i.A.pointerEventsSupported?r.__(W,n):i.A.touchEventsSupported||r.__(H,n)}function Q(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,(0,c.q2)(t.domTarget,e,n,i)}function J(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&(0,c.f)(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var tt=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const et=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new tt(e,Z),V&&(i._globalHandlerScope=new tt(document,q)),$(i,i._localHandlerScope),i}return(0,o.C6)(e,t),e.prototype.dispose=function(){J(this._localHandlerScope),V&&J(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,V&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?K(this,e):J(e)}},e}(u.A);var nt=n(9886),it=n(6486),rt=n(7786),ot={},at={};var st,lt=function(){function t(t,e,n){var o=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 a=new P,s=n.renderer||"canvas";ot[s]||(s=r.HP(ot)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var l=new ot[s](e,a,n,t),u=n.ssr||l.ssrOnly;this.storage=a,this.painter=l;var c,h=i.A.node||i.A.worker||u?null:new et(l.getViewportRoot(),l.root),p=n.useCoarsePointer;(null==p||"auto"===p?i.A.touchEventsSupported:!!p)&&(c=r.bZ(n.pointerSize,44)),this.handler=new M(a,l,h,l.root,c),this.animation=new N({stage:{update:u?null:function(){return o._flush(!0)}}}),u||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(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(0,nt.fN)(t,1)<it.ps;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=(0,nt.fN)(e[r].color,1);return(n/=i)<it.ps}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){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=E();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=E();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-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._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof rt.A&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete at[t])},t}();function ut(t,e){var n=new lt(r.Os(),t,e);return at[n.id]=n,n}function ct(t,e){ot[t]=e}function ht(t){if("function"==typeof st)return st(t)}}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};n.r(i),n.d(i,{BarChart:()=>Ra,BaseChart:()=>Ca,FunnelChart:()=>ja,GaugeChart:()=>Ua,H5Adapter:()=>aa.A,HeatmapChart:()=>Ga,LineChart:()=>Oa,PieChart:()=>za,RadarChart:()=>Ha,ScatterChart:()=>Va,ThemeEditor:()=>ds,WeappAdapter:()=>sa.A,darkTheme:()=>Ka,debounce:()=>D,deepMerge:()=>A,defaultTheme:()=>$a,detectPlatform:()=>ua,events:()=>C,formatNumber:()=>L,getAdapter:()=>ha,getContrastColor:()=>O,getEnv:()=>ca,getEnvironment:()=>P,getTheme:()=>as,name:()=>ws,prefixedId:()=>M,registerTheme:()=>ss,shortId:()=>I,throttle:()=>k,useChart:()=>gs,useChartData:()=>bs,useChartTheme:()=>xs,useEvents:()=>ms,useLoading:()=>_s,useOption:()=>vs,useResize:()=>ys,uuid:()=>S,version:()=>Ss});var r,o,a,s=n(9206),l=n.n(s);!function(t){t.CLICK="click",t.MOUSEMOVE="mousemove",t.MOUSEUP="mouseup",t.MOUSEDOWN="mousedown",t.MOUSEOVER="mouseover",t.MOUSEOUT="mouseout",t.GLOBALOUT="globalout",t.LEGENDSELECTED="legendselected",t.LEGENDUNSELECTED="legendunselected",t.LEGENDSELECTCHANGED="legendselectchanged",t.LEGENDSCROLL="legendscroll",t.DATAZOOM="datazoom",t.DATARANGESELECTED="datarangeselected",t.TIMELINECHANGED="timelinechanged",t.TIMELINEPLAYCHANGED="timelineplaychanged",t.RESTORE="restore",t.DATAVIEWCHANGED="dataviewchanged",t.MAGICTYPECHANGED="magictypechanged",t.GEOSELECTCHANGED="geoselectchanged",t.GEOSELECTED="geoselected",t.GEOUNSELECTED="geounselected",t.PIESELECTCHANGED="pieselectchanged",t.PIESELECTED="pieselected",t.PIEUNSELECTED="pieunselected",t.MAPSELECTCHANGED="mapselectchanged",t.MAPSELECTED="mapselected",t.MAPUNSELECTED="mapunselected",t.AXISAREASELECTED="axisareaselected",t.FOCUSNODEADJACENCY="focusnodeadjacency",t.UNFOCUSNODEADJACENCY="unfocusnodeadjacency",t.BRUSH="brush",t.BRUSHSELECTED="brushselected",t.RENDERED="rendered",t.FINISHED="finished",t.CHART_READY="chartReady",t.CHART_RESIZE="chartResize",t.CHART_ERROR="chartError",t.CHART_DISPOSE="chartDispose"}(r||(r={})),function(t){t.H5="h5",t.WEAPP="weapp",t.ALIPAY="alipay",t.SWAN="swan",t.TT="tt",t.QQ="qq",t.JD="jd",t.HARMONY="harmony",t.DD="dd",t.QYWX="qywx",t.LARK="lark",t.KWAI="kwai"}(o||(o={})),function(t){t.ANIMATION_START="animationStart",t.ANIMATION_UPDATE="animationUpdate",t.ANIMATION_END="animationEnd",t.ANIMATION_CANCEL="animationCancel",t.ANIMATION_REPEAT="animationRepeat"}(a||(a={}));var u=function(){return u=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},u.apply(this,arguments)},c=[{name:"default",description:"默认动画配置",config:{enabled:!0,duration:1e3,easing:"cubicOut",appearDuration:1200,appearEasing:"cubicOut",updateDuration:800,updateEasing:"cubicOut",disappearDuration:600,disappearEasing:"cubicIn",threshold:1e3,progressive:!0,progressiveStep:500}},{name:"fast",description:"快速动画配置",config:{enabled:!0,duration:500,easing:"linear",appearDuration:600,appearEasing:"linear",updateDuration:400,updateEasing:"linear",disappearDuration:300,disappearEasing:"linear",threshold:2e3,progressive:!0,progressiveStep:1e3}},{name:"slow",description:"慢速动画配置",config:{enabled:!0,duration:2e3,easing:"cubicInOut",appearDuration:2400,appearEasing:"cubicInOut",updateDuration:1600,updateEasing:"cubicInOut",disappearDuration:1200,disappearEasing:"cubicInOut",threshold:500,progressive:!0,progressiveStep:250}},{name:"bounce",description:"弹跳动画配置",config:{enabled:!0,duration:1500,easing:"bounceOut",appearDuration:1800,appearEasing:"bounceOut",updateDuration:1200,updateEasing:"bounceOut",disappearDuration:900,disappearEasing:"bounceIn",threshold:500,progressive:!0,progressiveStep:250}},{name:"elastic",description:"弹性动画配置",config:{enabled:!0,duration:1500,easing:"elasticOut",appearDuration:1800,appearEasing:"elasticOut",updateDuration:1200,updateEasing:"elasticOut",disappearDuration:900,disappearEasing:"elasticIn",threshold:500,progressive:!0,progressiveStep:250}}],h=function(){function t(t){this.presets=new Map,this.templates=new Map,this.eventHandlers=new Map,this.defaultConfig=(null==t?void 0:t.defaultConfig)||c[0].config,this.performanceConfig=(null==t?void 0:t.performance)||{monitor:!1,frameRate:60,hardwareAcceleration:!0},this.registerPresets(c)}return t.getInstance=function(e){return t.instance||(t.instance=new t(e)),t.instance},t.prototype.registerPreset=function(t){this.presets.set(t.name,t)},t.prototype.registerPresets=function(t){var e=this;t.forEach(function(t){return e.registerPreset(t)})},t.prototype.getPreset=function(t){return this.presets.get(t)},t.prototype.getAllPresets=function(){return Array.from(this.presets.values())},t.prototype.registerTemplate=function(t){this.templates.set(t.name,t)},t.prototype.getTemplate=function(t){return this.templates.get(t)},t.prototype.getAllTemplates=function(){return Array.from(this.templates.values())},t.prototype.setDefaultConfig=function(t){this.defaultConfig=t},t.prototype.getDefaultConfig=function(){return this.defaultConfig},t.prototype.getOptimizedConfig=function(t,e){void 0===t&&(t={}),void 0===e&&(e=0);var n=u(u({},this.defaultConfig),t);return n.threshold&&e>n.threshold&&(n.enabled=!1),n},t.prototype.getAnimationConfigByType=function(t,e){switch(e){case"appear":return{duration:t.appearDuration||t.duration||1e3,easing:t.appearEasing||t.easing||"cubicOut"};case"update":return{duration:t.updateDuration||t.duration||800,easing:t.updateEasing||t.easing||"cubicOut"};case"disappear":return{duration:t.disappearDuration||t.duration||600,easing:t.disappearEasing||t.easing||"cubicIn"};case"emphasis":return{duration:t.duration||300,easing:t.easing||"cubicOut"};default:return{duration:t.duration||1e3,easing:t.easing||"cubicOut"}}},t.prototype.generateEChartsAnimationConfig=function(t,e){void 0===t&&(t={}),void 0===e&&(e=0);var n=this.getOptimizedConfig(t,e);return n.enabled?{animation:!0,animationDuration:n.duration,animationEasing:n.easing,animationDelay:n.delay,animationDurationUpdate:n.updateDuration,animationEasingUpdate:n.updateEasing,animationDelayUpdate:n.delay,animationThreshold:n.threshold,progressive:n.progressive,progressiveThreshold:n.progressiveStep,progressiveChunkMode:"sequential"}:{animation:!1}},t.prototype.on=function(t,e){var n;this.eventHandlers.has(t)||this.eventHandlers.set(t,new Set),null===(n=this.eventHandlers.get(t))||void 0===n||n.add(e)},t.prototype.off=function(t,e){var n;e?null===(n=this.eventHandlers.get(t))||void 0===n||n.delete(e):this.eventHandlers.delete(t)},t.prototype.emit=function(t,e){var n=this.eventHandlers.get(t);n&&n.forEach(function(t){try{t(e)}catch(t){}})},t.prototype.updatePerformanceConfig=function(t){this.performanceConfig=u(u({},this.performanceConfig),t)},t.prototype.getPerformanceConfig=function(){return this.performanceConfig},t.prototype.reset=function(){this.presets.clear(),this.templates.clear(),this.eventHandlers.clear(),this.registerPresets(c)},t}();h.getInstance();var p=function(){return p=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},p.apply(this,arguments)},d=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function f(t,e){void 0===e&&(e={});var n=e.locale,i=void 0===n?"zh-CN":n,r=e.timeZone,o=void 0===r?"Asia/Shanghai":r,a=d(e,["locale","timeZone"]),s="string"==typeof t||"number"==typeof t?new Date(t):t;return new Intl.DateTimeFormat(i,p({timeZone:o},a)).format(s)}function g(t,e){return void 0===e&&(e={}),f(t,p(p({},e),{timeStyle:void 0,hour:void 0,minute:void 0,second:void 0,fractionalSecondDigits:void 0}))}function v(t,e){return void 0===e&&(e={}),f(t,p(p({},e),{dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0,hour:e.hour||"2-digit",minute:e.minute||"2-digit"}))}function y(t,e){var n=e.locale,i=void 0===n?"zh-CN":n,r=e.currency,o=e.currencyDisplay,a=void 0===o?"symbol":o,s=e.digits,l=void 0===s?2:s,u=e.useGrouping,c=void 0===u||u;return new Intl.NumberFormat(i,{style:"currency",currency:r,currencyDisplay:a,minimumFractionDigits:l,maximumFractionDigits:l,useGrouping:c}).format(t)}function m(t,e){void 0===e&&(e={});var n=e.locale,i=void 0===n?"zh-CN":n,r=e.digits,o=void 0===r?2:r,a=e.useGrouping,s=void 0===a||a;return new Intl.NumberFormat(i,{style:"percent",minimumFractionDigits:o,maximumFractionDigits:o,useGrouping:s}).format(t)}function _(t,e){void 0===e&&(e={});var n=e.locale,i=void 0===n?"zh-CN":n,r=e.digits,o=void 0===r?2:r,a=e.useGrouping,s=void 0===a||a,l=d(e,["locale","digits","useGrouping"]);return new Intl.NumberFormat(i,p({minimumFractionDigits:o,maximumFractionDigits:o,useGrouping:s},l)).format(t)}function x(){return"undefined"!=typeof window&&window.navigator.language||"zh-CN"}function b(){return Intl.DateTimeFormat().resolvedOptions().timeZone}var w=function(){function t(t){void 0===t&&(t={}),this.locale=t.locale||x(),this.timeZone=t.timeZone||b()}return t.prototype.setLocale=function(t){this.locale=t},t.prototype.getLocale=function(){return this.locale},t.prototype.setTimeZone=function(t){this.timeZone=t},t.prototype.getTimeZone=function(){return this.timeZone},t.prototype.formatDateTime=function(t,e){return void 0===e&&(e={}),f(t,p(p({},e),{locale:this.locale,timeZone:this.timeZone}))},t.prototype.formatDate=function(t,e){return void 0===e&&(e={}),g(t,p(p({},e),{locale:this.locale,timeZone:this.timeZone}))},t.prototype.formatTime=function(t,e){return void 0===e&&(e={}),v(t,p(p({},e),{locale:this.locale,timeZone:this.timeZone}))},t.prototype.formatCurrency=function(t,e){return y(t,p(p({},e),{locale:this.locale}))},t.prototype.formatPercent=function(t,e){return void 0===e&&(e={}),m(t,p(p({},e),{locale:this.locale}))},t.prototype.formatNumber=function(t,e){return void 0===e&&(e={}),_(t,p(p({},e),{locale:this.locale}))},t}();new w;function S(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}function I(){return Math.random().toString(36).substring(2,10)}function M(t){return"".concat(t,"-").concat(I())}var T=function(){return T=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},T.apply(this,arguments)},C={click:"click",mousemove:"mousemove",mouseup:"mouseup",mousedown:"mousedown",mouseover:"mouseover",mouseout:"mouseout",globalout:"globalout"};function A(t,e){var n=T({},t);return Object.keys(e).forEach(function(i){e[i]instanceof Object&&i in t&&t[i]instanceof Object?n[i]=A(t[i],e[i]):n[i]=e[i]}),n}function D(t,e){var n=null;return function(){for(var i=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n&&clearTimeout(n),n=setTimeout(function(){t.apply(i,r),n=null},e)}}function k(t,e){var n=0;return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var o=Date.now();o-n>=e&&(t.apply(this,i),n=o)}}function P(){var t="undefined"==typeof window,e=!t,n=void 0!==window.wx&&"function"==typeof window.wx.getSystemInfoSync,i=void 0!==window.my&&"function"==typeof window.my.getSystemInfoSync;return{isServer:t,isClient:e,isWeapp:n,isAlipay:i,isWeb:e&&!n&&!i}}function L(t,e,n){void 0===e&&(e=2),void 0===n&&(n={});var i=n.useGrouping,r=void 0===i||i,o=n.locale,a=void 0===o?"zh-CN":o;return new Intl.NumberFormat(a,{minimumFractionDigits:e,maximumFractionDigits:e,useGrouping:r}).format(t)}function O(t){var e=t.replace("#","");return(299*parseInt(e.substring(0,2),16)+587*parseInt(e.substring(2,4),16)+114*parseInt(e.substring(4,6),16))/1e3>128?"#000000":"#FFFFFF"}var E=n(8570),R=n(761),N=n(2551),z=n(6196),B=n(9774),V=2*Math.PI,F=Math.PI/180;function H(t,e){return z.dV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function W(t,e){var n=H(t,e),i=t.get("center"),r=t.get("radius");B.cy(r)||(r=[0,r]);var o,a,s=(0,N.lo)(n.width,e.getWidth()),l=(0,N.lo)(n.height,e.getHeight()),u=Math.min(s,l),c=(0,N.lo)(r[0],u/2),h=(0,N.lo)(r[1],u/2),p=t.coordinateSystem;if(p){var d=p.dataToPoint(i);o=d[0]||0,a=d[1]||0}else B.cy(i)||(i=[i,i]),o=(0,N.lo)(i[0],s)+n.x,a=(0,N.lo)(i[1],l)+n.y;return{cx:o,cy:a,r0:c,r:h}}function G(t,e,n){e.eachSeriesByType(t,function(t){var e=t.getData(),i=e.mapDimension("value"),r=H(t,n),o=W(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*F,h=t.get("minAngle")*F,p=0;e.each(i,function(t){!isNaN(t)&&p++});var d=e.getSum(i),f=Math.PI/(d||p)*2,g=t.get("clockwise"),v=t.get("roseType"),y=t.get("stillShowZeroSum"),m=e.getDataExtent(i);m[0]=0;var _=V,x=0,b=c,w=g?1:-1;if(e.setLayout({viewRect:r,r:l}),e.each(i,function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:v?NaN:l});else{(i="area"!==v?0===d&&y?f:t*f:V/p)<h?(i=h,_-=h):x+=t;var r=b+w*i;e.setItemLayout(n,{angle:i,startAngle:b,endAngle:r,clockwise:g,cx:a,cy:s,r0:u,r:v?(0,N.Cb)(t,m,[u,l]):l}),b=r}}),_<V&&p)if(_<=.001){var S=V/p;e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=S,i.startAngle=c+w*n*S,i.endAngle=c+w*(n+1)*S}})}else f=_/x,b=c,e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===h?h:t*f;i.startAngle=b,i.endAngle=b+w*r,b+=w*r}})})}function X(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf(function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0})}}}}var U=n(5482),Y=n(2070),j=n(4159),Z=n(9935),q=n(6498),$=n(4156),K=n(9669),Q=n(7270),J=n(8747),tt=n(4721);Math.PI,J.A.CMD;function et(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,c=n-t,h=i-e,p=Math.sqrt(c*c+h*h),d=(l*(c/=p)+u*(h/=p))/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var f=a[0]=t+d*c,g=a[1]=e+d*h;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}var nt=new Q.A,it=new Q.A,rt=new Q.A,ot=new Q.A,at=new Q.A;var st=[],lt=new Q.A;function ut(t,e){if(e<=180&&e>0){e=e/180*Math.PI,nt.fromArray(t[0]),it.fromArray(t[1]),rt.fromArray(t[2]),Q.A.sub(ot,nt,it),Q.A.sub(at,rt,it);var n=ot.len(),i=at.len();if(!(n<.001||i<.001)){ot.scale(1/n),at.scale(1/i);var r=ot.dot(at);if(Math.cos(e)<r){var o=et(it.x,it.y,rt.x,rt.y,nt.x,nt.y,st,!1);lt.fromArray(st),lt.scaleAndAdd(at,o/Math.tan(Math.PI-e));var a=rt.x!==it.x?(lt.x-it.x)/(rt.x-it.x):(lt.y-it.y)/(rt.y-it.y);if(isNaN(a))return;a<0?Q.A.copy(lt,it):a>1&&Q.A.copy(lt,rt),lt.toArray(t[1])}}}}function ct(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,nt.fromArray(t[0]),it.fromArray(t[1]),rt.fromArray(t[2]),Q.A.sub(ot,it,nt),Q.A.sub(at,rt,it);var i=ot.len(),r=at.len();if(!(i<.001||r<.001))if(ot.scale(1/i),at.scale(1/r),ot.dot(e)<Math.cos(n)){var o=et(it.x,it.y,rt.x,rt.y,nt.x,nt.y,st,!1);lt.fromArray(st);var a=Math.PI/2,s=a+Math.acos(at.dot(e))-n;if(s>=a)Q.A.copy(lt,rt);else{lt.scaleAndAdd(at,o/Math.tan(Math.PI/2-s));var l=rt.x!==it.x?(lt.x-it.x)/(rt.x-it.x):(lt.y-it.y)/(rt.y-it.y);if(isNaN(l))return;l<0?Q.A.copy(lt,it):l>1&&Q.A.copy(lt,rt)}lt.toArray(t[1])}}}function ht(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function pt(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=tt.xg(i[0],i[1]),o=tt.xg(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=tt.Cc([],i[1],i[0],a/r),l=tt.Cc([],i[1],i[2],a/o),u=tt.Cc([],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],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)t.lineTo(i[c][0],i[c][1])}function dt(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<$.wV.length;l++){var u=$.wV[l],c=e[u],h="normal"===u;if(c){var p=c.get("show");if((h?s:(0,B.bZ)(r.states[u]&&r.states[u].ignore,s))||!(0,B.bZ)(p,a)){var d=h?i:i&&i.states[u];d&&(d.ignore=!0);continue}i||(i=new Z.A,t.setTextGuideLine(i),h||!s&&a||ht(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),ht(i,!1,u,c)}}if(i){(0,B.NT)(i.style,n),i.style.fill=null;var f=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=f||!1,i.buildPath=pt}}else i&&t.removeTextGuideLine()}function ft(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<$.BV.length;i++){var r=$.BV[i];n[r]=t.getModel([r,e])}return n}var gt=n(262),vt=Math.PI/180;function yt(t,e,n,i,r,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}(0,gt.Xe)(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*r,p=i+l.len,f=Math.abs(h)<p?Math.sqrt(c*c/(1-h*h/p/p)):p;u.rB=f,u.maxY=c}u.list.push(l)}d(o),d(a)}(t)}function d(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=i+l.len,h=c*c,p=Math.sqrt((1-Math.abs(u*u/a))*h),d=e+(p+l.len2)*r,f=d-l.label.x;mt(l,l.targetTextWidth-f*r,!0),l.label.x=d}}}function mt(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var i=t.label,r=i.style,o=t.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=o.width+(a?0:l);if(e<c||n){var h=o.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var p=i.getBoundingRect();i.setStyle("width",Math.ceil(p.width)),i.setStyle("backgroundColor",a)}else{var d=e-l,f=e<c?d:n?d>t.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var v=(i.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function _t(t){return"center"===t.position}function xt(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*vt,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,h=s.y,p=s.height;function d(t){t.ignore=!0}i.each(function(t){var s=i.getItemGraphicEl(t),h=s.shape,p=s.getTextContent(),f=s.getTextGuideLine(),g=i.getItemModel(t),v=g.getModel("label"),y=v.get("position")||g.get(["emphasis","label","position"]),m=v.get("distanceToLabelLine"),_=v.get("alignTo"),x=(0,N.lo)(v.get("edgeDistance"),u),b=v.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=(0,N.lo)(S,u);var I=w.get("length2");if(I=(0,N.lo)(I,u),Math.abs(h.endAngle-h.startAngle)<a)return(0,B.__)(p.states,d),p.ignore=!0,void(f&&((0,B.__)(f.states,d),f.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 M,T,C,A,D=(h.startAngle+h.endAngle)/2,k=Math.cos(D),P=Math.sin(D);e=h.cx,n=h.cy;var L="inside"===y||"inner"===y;if("center"===y)M=h.cx,T=h.cy,A="center";else{var O=(L?(h.r+h.r0)/2*k:h.r*k)+e,E=(L?(h.r+h.r0)/2*P:h.r*P)+n;if(M=O+3*k,T=E+3*P,!L){var R=O+k*(S+l-h.r),z=E+P*(S+l-h.r),V=R+(k<0?-1:1)*I;M="edge"===_?k<0?c+x:c+u-x:V+(k<0?-m:m),T=z,C=[[O,E],[R,z],[V,z]]}A=L?"center":"edge"===_?k>0?"right":"left":k>0?"left":"right"}var F=Math.PI,H=0,W=v.get("rotate");if((0,B.Et)(W))H=W*(F/180);else if("center"===y)H=0;else if("radial"===W||!0===W){H=k<0?-D+F:-D}else if("tangential"===W&&"outside"!==y&&"outer"!==y){var G=Math.atan2(k,P);G<0&&(G=2*F+G),P>0&&(G=F+G),H=G-F}if(o=!!H,p.x=M,p.y=T,p.rotation=H,p.setStyle({verticalAlign:"middle"}),L){p.setStyle({align:A});var X=p.states.select;X&&(X.x+=p.x,X.y+=p.y)}else{var U=p.getBoundingRect().clone();U.applyTransform(p.getComputedTransform());var Y=(p.style.margin||0)+2.1;U.y-=Y/2,U.height+=Y,r.push({label:p,labelLine:f,position:y,len:S,len2:I,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new Q.A(k,P),linePoints:C,textAlign:A,labelDistance:m,labelAlignTo:_,edgeDistance:x,bleedMargin:b,rect:U,unconstrainedWidth:U.width,labelStyleWidth:p.style.width})}s.setTextConfig({inside:L})}}),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p<t.length;p++){var d=t[p].label;_t(t[p])||(d.x<e?(c=Math.min(c,d.x),l.push(t[p])):(h=Math.max(h,d.x),u.push(t[p])))}for(p=0;p<t.length;p++)if(!_t(v=t[p])&&v.linePoints){if(null!=v.labelStyleWidth)continue;d=v.label;var f=v.linePoints,g=void 0;g="edge"===v.labelAlignTo?d.x<e?f[2][0]-v.labelDistance-a-v.edgeDistance:a+r-v.edgeDistance-f[2][0]-v.labelDistance:"labelLine"===v.labelAlignTo?d.x<e?c-a-v.bleedMargin:a+r-h-v.bleedMargin:d.x<e?d.x-a-v.bleedMargin:a+r-d.x-v.bleedMargin,v.targetTextWidth=g,mt(v,g)}for(yt(u,e,n,i,1,0,o,0,s,h),yt(l,e,n,i,-1,0,o,0,s,c),p=0;p<t.length;p++){var v;if(!_t(v=t[p])&&v.linePoints){d=v.label,f=v.linePoints;var y="edge"===v.labelAlignTo,m=d.style.padding,_=m?m[1]+m[3]:0,x=d.style.backgroundColor?0:_,b=v.rect.width+x,w=f[1][0]-f[2][0];y?d.x<e?f[2][0]=a+v.edgeDistance+b+v.labelDistance:f[2][0]=a+r-v.edgeDistance-b-v.labelDistance:(d.x<e?f[2][0]=d.x+v.labelDistance:f[2][0]=d.x-v.labelDistance,f[1][0]=f[2][0]+w),f[1][1]=f[2][1]=d.y}}}(r,e,n,l,u,p,c,h);for(var f=0;f<r.length;f++){var g=r[f],v=g.label,y=g.labelLine,m=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:g.textAlign}),m&&((0,B.__)(v.states,d),v.ignore=!0);var _=v.states.select;_&&(_.x+=v.x,_.y+=v.y)}if(y){var x=g.linePoints;m||!x?((0,B.__)(y.states,d),y.ignore=!0):(ut(x,g.minTurnAngle),ct(x,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:x}),v.__hostTarget.textGuideLineConfig={anchor:new Q.A(x[0][0],x[0][1])})}}}var bt=n(7871),wt=n(6066);function St(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;(0,B.cy)(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:(0,B.Tj)(i,function(t){return(0,wt.lo)(t,r)})}}var It=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new Y.Ay;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return(0,U.C6)(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=(0,B.X$)(St(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(j.LW(r,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===c?(r.shape.r=l.r0,j.LW(r,{shape:{r:l.r}},o,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),j.LW(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(r.shape.endAngle=l.startAngle,j.oi(r,{shape:{endAngle:l.endAngle}},o,e))}else(0,j.ap)(r),j.oi(r,{shape:u},o,e);r.useStyle(t.getItemVisual(e,"style")),(0,$.Mx)(r,a);var h=(l.startAngle+l.endAngle)/2,p=o.get("selectedOffset"),d=Math.cos(h)*p,f=Math.sin(h)*p,g=a.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,t,e),r.ensureState("emphasis").shape=(0,B.X$)({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},St(s.getModel("itemStyle"),l)),(0,B.X$)(r.ensureState("select"),{x:d,y:f,shape:St(a.getModel(["select","itemStyle"]),l)}),(0,B.X$)(r.ensureState("blur"),{shape:St(a.getModel(["blur","itemStyle"]),l)});var v=r.getTextGuideLine(),y=r.getTextContent();v&&(0,B.X$)(v.ensureState("select"),{x:d,y:f}),(0,B.X$)(y.ensureState("select"),{x:d,y:f}),(0,$.Lm)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,r=e.getItemModel(n),o=r.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;(0,bt.qM)(i,(0,bt.lx)(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Z.A,this.setTextGuideLine(h)),dt(this,ft(r),{stroke:s,opacity:(0,B.WV)(o.get(["lineStyle","opacity"]),l,1)})}},e}(q.A);const Mt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return(0,U.C6)(e,t),e.prototype.render=function(t,e,n,i){var r,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&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=new q.A({shape:W(t,n)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add(function(t){var e=new It(o,t,r);o.setItemGraphicEl(t,e),s.add(e)}).update(function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,r),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)}).remove(function(e){var n=a.getItemGraphicEl(e);j.t5(n,t,e)}).execute(),xt(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 i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="pie",e}(K.A);var Tt=n(8125);const Ct=function(t){this.otherDims={},null!=t&&B.X$(this,t)};var At=n(7955),Dt=n(5221),kt=n(9269),Pt=n(520),Lt=n(6403);function Ot(t,e){(0,At.tP)(t)||(t=(0,At.AF)(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=(0,B.nt)(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return(0,B.__)(e,function(t){var e;(0,B.Gv)(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&(0,Lt.eS)(a),l=i===t.dimensionsDefine,u=l?(0,Lt.j_)(t):(0,Lt.io)(i),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=(0,B.nt)(c),p=new Dt.A_(a),d=0;d<p.length;d++)p[d]=-1;function f(t){var e=p[t];if(e<0){var n=i[t],r=(0,B.Gv)(n)?n:{name:n},a=new Ct,s=r.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return p[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(d=0;d<a;d++)f(d);h.each(function(t,e){var n=(0,kt.qB)(t).slice();if(1===n.length&&!(0,B.Kg)(n[0])&&n[0]<0)h.set(e,!1);else{var i=h.set(e,[]);(0,B.__)(n,function(t,n){var r=(0,B.Kg)(t)?u.get(t):t;null!=r&&r<a&&(i[n]=r,v(f(r),e,n))})}});var g=0;function v(t,e,n){null!=Tt.Pe.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,r.set(e,!0))}(0,B.__)(n,function(t){var e,n,i,r;if((0,B.Kg)(t))e=t,r={};else{e=(r=t).name;var o=r.ordinalMeta;r.ordinalMeta=null,(r=(0,B.X$)({},r)).ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=h.get(e);if(!1!==s){if(!(s=(0,kt.qB)(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}(0,B.__)(s,function(t,o){var a=f(t);if(l&&null!=r.type&&(a.type=r.type),v((0,B.NT)(a,r),e,o),null==a.name&&n){var s=n[o];!(0,B.Gv)(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&(0,B.NT)(a.otherDims,i)})}});var y=e.generateCoord,m=e.generateCoordCount,_=null!=m;m=y?m||1:0;var x=y||"value";function b(t){null==t.name&&(t.name=t.coordDim)}if(s)(0,B.__)(o,function(t){b(t)}),o.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=Et(x,r,_),S.coordDimIndex=0,(!y||m<=0)&&(S.isExtraCoord=!0),m--),b(S),null!=S.type||(0,Pt.PU)(t,w)!==Pt.sc.Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(t){for(var e=(0,B.nt)(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new Lt.Tc({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Et(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var Rt=n(846);function Nt(t){return null==t?0:t.length||1}function zt(t){return t}var Bt=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||zt,this._newKeyGetter=i||zt,this.context=r,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={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=Nt(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(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=Nt(l),h=Nt(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[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,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=Nt(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=Nt(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}();const Vt=Bt;var Ft=n(2180),Ht=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 Wt(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var Gt,Xt,Ut,Yt,jt,Zt,qt,$t=n(6295),Kt=B.Gv,Qt=B.Tj,Jt="undefined"==typeof Int32Array?Array:Int32Array,te=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],ee=["_approximateExtent"],ne=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 i=!1;(0,Lt.fg)(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=B.Kg(c)?new Ct({name:c}):c instanceof Ct?c:new Ct(c),p=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=p,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(p),r[p]=h,null!=l[p]&&(s=!0),h.createInvertedIndices&&(a[p]=[]),0===d.itemName&&(this._nameDimIdx=u),0===d.itemId&&(this._idDimIdx=u),i&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=B.nt();B.__(o,function(t){f.set(r[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 i=this._schema.getSourceDimension(e);return i?i.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(B.Et(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 i=n.encode[t];return i?i[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 i,r=this;if(t instanceof Dt.Ay&&(i=t),!i){var o=this.dimensions,a=(0,At.tP)(t)||B.Xj(t)?new Ft.d1(t,o.length):t;i=new Dt.Ay;var s=Qt(o,function(t){return{type:r._dimInfos[t].type,property:t}});i.initData(a,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function(t,e){var n={},i=n.encode={},r=(0,B.nt)(),o=[],a=[],s={};(0,B.__)(t.dimensions,function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){var c=l.coordDimIndex;Wt(i,u)[c]=e,l.isExtraCoord||(r.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),Wt(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}Tt.Pe.each(function(t,e){var n=Wt(i,e),r=l.otherDims[e];null!=r&&!1!==r&&(n[r]=l.name)})});var l=[],u={};r.each(function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=(0,B.Tj)(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(o=c.slice());var h=i.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new Ht(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),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&qt(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Tt.XO&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===Tt.mK&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&(0,kt.zu)(s)&&(this.hasItemOption=!0),s){var l=s.name;null==i[a]&&null!=l&&(i[a]=(0,kt.vS)(l,null));var u=s.id;null==r[a]&&null!=u&&(r[a]=(0,kt.vS)(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)qt(this,a);Gt(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){Kt(t)?B.X$(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=Ut(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return Xt(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.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,i=this._store;return B.cy(t)?i.getValues(Qt(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;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){B.Tn(t)&&(n=e,e=t,t=[]);var i=n||this,r=Qt(Yt(t),this._getStoreDimIndex,this);this._store.each(r,i?B.oI(e,i):e)},t.prototype.filterSelf=function(t,e,n){B.Tn(t)&&(n=e,e=t,t=[]);var i=n||this,r=Qt(Yt(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?B.oI(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=B.HP(t),r=[];return B.__(i,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){B.Tn(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=Qt(Yt(t),this._getStoreDimIndex,this),a=Zt(this);return a._store=this._store.map(o,r?B.oI(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this;var o=Qt(Yt(t),this._getStoreDimIndex,this);this._store.modify(o,r?B.oI(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=Zt(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.lttbDownSample=function(t,e){var n=Zt(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 Rt.A(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new Vt(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return Xt(t,e)},function(t){return Xt(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||{},Kt(t)?B.X$(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return i??this.getVisual(e)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),B.cy(r)?r=r.slice():Kt(r)&&(r=B.X$({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Kt(e)?B.X$(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){Kt(t)?B.X$(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?B.X$(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;(0,$t.a)(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){B.__(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Qt(this.dimensions,this._getDimInfo,this),this.hostModel)),jt(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];B.Tn(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(B.di(arguments)))})},t.internalField=(Gt=function(t){var e=t._invertedIndicesMap;B.__(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new Jt(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}})},Ut=function(t,e,n){return(0,kt.vS)(t._getCategory(e,n),null)},Xt=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=Ut(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},Yt=function(t){return B.cy(t)||(t=null!=t?[t]:[]),t},Zt=function(e){var n=new t(e._schema?e._schema:Qt(e.dimensions,e._getDimInfo,e),e.hostModel);return jt(n,e),n},jt=function(t,e){B.__(te.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,B.__(ee,function(n){t[n]=B.o8(e[n])}),t._calculationInfo=B.X$({},e._calculationInfo)},void(qt=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=Ut(t,r,e)),null==s&&null!=o&&(i[e]=s=Ut(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),i[e]=s}})),t}();const ie=ne;function re(t,e,n){e=(0,B.cy)(e)&&{coordDimensions:e}||(0,B.X$)({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=Ot(i,e).dimensions,o=new ie(r,t);return o.initData(i,n),o}const oe=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}();var ae=n(3059),se=kt.$r();const le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,U.C6)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new oe(B.oI(this.getData,this),B.oI(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return re(this,{coordDimensions:["value"],encodeDefaulter:B.cF(Pt.ln,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=se(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),function(t){o.push(t)}),r=i.seats=(0,N.kM)(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){kt.M5(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}(ae.A);var ue=n(5776),ce=function(t){this.coordSysDims=[],this.axisMap=(0,B.nt)(),this.categoryAxisMap=(0,B.nt)(),this.coordSysName=t};var he={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",kt.US).models[0],o=t.getReferringComponents("yAxis",kt.US).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),pe(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),pe(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",kt.US).models[0];e.coordSysDims=["single"],n.set("single",r),pe(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",kt.US).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),pe(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),pe(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();(0,B.__)(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),pe(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}};function pe(t){return"category"===t.get("type")}var de=n(3441);const fe=function(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=(0,At.AF)(t)):o=(i=r.getSource()).sourceFormat===Tt.mK;var a=function(t){var e=t.get("coordinateSystem"),n=new ce(e),i=he[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),r=ue.A.get(i);return e&&e.coordSysDims&&(n=B.Tj(e.coordSysDims,function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(r)}return n})),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=B.Tn(l)?l:l?B.cF(Pt.OC,s,e):null,c=Ot(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(t,e,n){var i,r;return n&&B.__(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==i||(t[i].otherDims.itemName=0),i}(c.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(c),d=(0,de.iJ)(e,{schema:c,store:p}),f=new ie(c,e);f.setCalculationInfo(d);var g=null!=h&&function(t){if(t.sourceFormat===Tt.mK){var e=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!B.cy((0,kt.vj)(e))}}(i)?function(t,e,n,i){return i===h?n:this.defaultDimValueGetter(t,e,n,i)}:null;return f.hasItemOption=!1,f.initData(o?i:p,null,g),f};var ge=n(4570),ve=n(7786),ye=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,U.C6)(e,t),e.prototype.getInitialData=function(t){return fe(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new ve.A,n=(0,ge.v5)("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=(0,ge.v5)(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?r: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}(ae.A);const me=ye;var _e=n(1551);function xe(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=(0,Ft.QE)(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push((0,Ft.QE)(t,e,n[a]));return o.join(" ")}}function be(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!(0,B.cy)(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}var we=n(6440);function Se(t,e){this.parent.drift(t,e)}const Ie=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return(0,U.C6)(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=(0,ge.v5)(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Se,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(){(0,$.HY)(this.childAt(0))},e.prototype.downplay=function(){(0,$.SD)(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,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=r&&r.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):j.oi(p,h,a,n),(0,j.ap)(p)}if(this._updateCommon(t,n,s,i,r),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,j.LW(p,h,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,c,h,p,d,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,p=i.hoverScale,d=i.cursorStyle,c=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),h=(0,bt.lx)(v),p=y.getShallow("scale"),d=v.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var _=(0,ge.hV)(t.getItemVisual(e,"symbolOffset"),n);_&&(f.x=_[0],f.y=_[1]),d&&f.attr("cursor",d);var x=t.getItemVisual(e,"style"),b=x.fill;if(f instanceof we.Ay){var w=f.style;f.useStyle((0,B.X$)({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else f.__isEmptyBrush?f.useStyle((0,B.X$)({},x)):f.useStyle(x),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),I=this._z2;null!=S?null==I&&(this._z2=f.z2,f.z2+=S):null!=I&&(f.z2=I,this._z2=null);var M=r&&r.useNameLabel;(0,bt.qM)(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return M?t.getName(e):xe(t,e)},inheritColor:b,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=f.ensureState("emphasis");T.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var C=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;T.scaleX=this._sizeX*C,T.scaleY=this._sizeY*C,this.setSymbolScale(1),(0,$.Lm)(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=(0,$t.z)(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&j.Nz(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();j.Nz(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return(0,ge.xU)(t.getItemVisual(e,"symbolSize"))},e}(ve.A);function Me(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function Te(t){return null==t||(0,B.Gv)(t)||(t={isIgnore:t}),t||{}}function Ce(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:(0,bt.lx)(e),cursorStyle:e.get("cursor")}}const Ae=function(){function t(t){this.group=new ve.A,this._SymbolCtor=t||Ie}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Te(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Ce(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=u(i);if(Me(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(c,h){var p=r.getItemGraphicEl(h),d=u(c);if(Me(t,d,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(t,c,s,l)).setPosition(d);else{p.updateData(t,c,s,l);var v={x:d[0],y:d[1]};a?p.attr(v):j.oi(p,v,i)}n.add(p),t.setItemGraphicEl(c,p)}else n.remove(p)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ce(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Te(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(Me(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){_e.traverseElements(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 De(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=function(t,e){var n=0,i=t.scale.getExtent();"start"===e?n=i[0]:"end"===e?n=i[1]:(0,B.Et)(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]);return n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=(0,B.Tj)(t.dimensions,function(t){return e.mapDimension(t)}),p=!1,d=e.getCalculationInfo("stackResultDimension");return(0,de.sJ)(e,h[0])&&(p=!0,h[0]=d),(0,de.sJ)(e,h[1])&&(p=!0,h[1]=d),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function ke(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var Pe=n(2984);var Le=n(1888),Oe=n(2834),Ee=n(631),Re=Math.min,Ne=Math.max;function ze(t,e){return isNaN(t)||isNaN(e)}function Be(t,e,n,i,r,o,a,s,l){for(var u,c,h,p,d,f,g=n,v=0;v<i;v++){var y=e[2*g],m=e[2*g+1];if(g>=r||g<0)break;if(ze(y,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,m),h=y,p=m;else{var _=y-u,x=m-c;if(_*_+x*x<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===y&&S===m&&v<i;)v++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],_=(y=e[2*g])-u,x=(m=e[2*g+1])-c;var I=v+1;if(l)for(;ze(w,S)&&I<i;)I++,w=e[2*(b+=o)],S=e[2*b+1];var M=.5,T=0,C=0,A=void 0,D=void 0;if(I>=i||ze(w,S))d=y,f=m;else{T=w-u,C=S-c;var k=y-u,P=w-y,L=m-c,O=S-m,E=void 0,R=void 0;if("x"===s){var N=T>0?1:-1;d=y-N*(E=Math.abs(k))*a,f=m,A=y+N*(R=Math.abs(P))*a,D=m}else if("y"===s){var z=C>0?1:-1;d=y,f=m-z*(E=Math.abs(L))*a,A=y,D=m+z*(R=Math.abs(O))*a}else E=Math.sqrt(k*k+L*L),d=y-T*a*(1-(M=(R=Math.sqrt(P*P+O*O))/(R+E))),f=m-C*a*(1-M),D=m+C*a*M,A=Re(A=y+T*a*M,Ne(w,y)),D=Re(D,Ne(S,m)),A=Ne(A,Re(w,y)),f=m-(C=(D=Ne(D,Re(S,m)))-m)*E/R,d=Re(d=y-(T=A-y)*E/R,Ne(u,y)),f=Re(f,Ne(c,m)),A=y+(T=y-(d=Ne(d,Re(u,y))))*R/E,D=m+(C=m-(f=Ne(f,Re(c,m))))*R/E}t.bezierCurveTo(h,p,d,f,y,m),h=A,p=D}else t.lineTo(y,m)}u=y,c=m,g+=o}return v}var Ve=function(){this.smooth=0,this.smoothConstraint=!0},Fe=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return(0,U.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ve},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&ze(n[2*r-2],n[2*r-1]);r--);for(;i<r&&ze(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=Be(t,n,i,r,r,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,i,r=this.path.data,o=J.A.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,c=void 0,h=void 0,p=void 0,d=void 0,f=void 0,g=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:if(u=r[l++],c=r[l++],(g=a?(t-n)/(u-n):(t-i)/(c-i))<=1&&g>=0){var v=a?(c-i)*g+i:(u-n)*g+n;return a?[t,v]:[v,t]}n=u,i=c;break;case o.C:u=r[l++],c=r[l++],h=r[l++],p=r[l++],d=r[l++],f=r[l++];var y=a?(0,Ee._E)(n,u,h,d,t,s):(0,Ee._E)(i,c,p,f,t,s);if(y>0)for(var m=0;m<y;m++){var _=s[m];if(_<=1&&_>=0){v=a?(0,Ee.Yb)(i,c,p,f,_):(0,Ee.Yb)(n,u,h,d,_);return a?[t,v]:[v,t]}}n=d,i=f}}},e}(Oe.Ay),He=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,U.C6)(e,t),e}(Ve),We=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return(0,U.C6)(e,t),e.prototype.getDefaultShape=function(){return new He},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&ze(n[2*o-2],n[2*o-1]);o--);for(;r<o&&ze(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=Be(t,n,r,o,o,1,e.smooth,a,e.connectNulls);Be(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(Oe.Ay),Ge=n(6078);function Xe(t,e,n,i,r){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 Ge.A({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=(0,B.Tn)(r)?function(t){r(t,h)}:null;j.LW(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return h}function Ue(t,e,n){var i=t.getArea(),r=(0,N.LI)(i.r0,1),o=(0,N.LI)(i.r,1),a=new q.A({shape:{cx:(0,N.LI)(t.cx,1),cy:(0,N.LI)(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,j.LW(a,{shape:{endAngle:i.endAngle,r:o}},n));return a}function Ye(t,e){return t.type===e}var je=n(8397),Ze=n(9886);function qe(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function $e(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function Ke(t,e){var n=$e(t),i=n[0],r=n[1],o=$e(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function Qe(t){return B.Et(t)?t:t?.5:0}function Je(t,e,n,i){var r=e.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],u=[],c=[],h=[];if(i){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,d=[];l[o]=d[o]=p,l[1-o]=u[1-o],d[1-o]=c[1-o],a.push(l[0],l[1]),a.push(d[0],d[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 tn(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=B.Tj(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,i,r=[],o=t.length;function a(t,e,n){var i=t.coord,r=(n-i)/(e.coord-i);return{coord:n,color:(0,Ze.Cc)(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){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(u,"x"===r?n.getWidth():n.getHeight()),d=p.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=p[0].coord-10,g=p[d-1].coord+10,v=g-f;if(v<.001)return"transparent";B.__(p,function(t){t.offset=(t.coord-f)/v}),p.push({offset:d?p[d-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:h[0]||"transparent"});var y=new Le.A(0,0,0,0,p,!0);return y[r]=f,y[r+"2"]=g,y}}}function en(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*Ie.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return B.__(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function nn(t,e){return isNaN(t)||isNaN(e)}function rn(t,e){return[t[2*e],t[2*e+1]]}function on(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<$.BV.length;e++)if(t.get([$.BV[e],"endLabel","show"]))return!0;return!1}function an(t,e,n,i){if(Ye(e,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=on(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=Xe(e,n,i,function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!i.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 Ue(e,n,i)}var sn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,U.C6)(e,t),e.prototype.init=function(){var t=new ve.A,e=new Ae;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===r.type,h=this._coordSys,p=this._symbolDraw,d=this._polyline,f=this._polygon,g=this._lineGroup,v=!e.ssr&&t.isAnimationEnabled(),y=!l.isEmpty(),m=l.get("origin"),_=De(r,a,m),x=y&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=(0,Pe.J)(2*i),o=0;o<i;o++){var a=ke(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(r,a,_),b=t.get("showSymbol"),w=t.get("connectNulls"),S=b&&!c&&en(t,a,r),I=this._data;I&&I.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),I.setItemGraphicEl(e,null))}),b||p.remove(),o.add(g);var M,T=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(M=r.getArea()).width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var C=tn(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&h.type===r.type&&T===this._step){y&&!f?f=this._newPolygon(u,x):f&&!y&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,(0,je.he)(C));var A=g.getClipPath();if(A){var D=an(this,r,!1,t);j.LW(A,{shape:D.shape},t)}else g.setClipPath(an(this,r,!0,t));b&&p.updateData(a,{isIgnore:S,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),qe(this._stackedOnPoints,x)&&qe(this._points,u)||(v?this._doUpdateAnimation(a,x,r,n,T,m,w):(T&&(u=Je(u,r,T,w),x&&(x=Je(x,r,T,w))),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:x})))}else b&&p.updateData(a,{isIgnore:S,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,r,M),T&&(u=Je(u,r,T,w),x&&(x=Je(x,r,T,w))),d=this._newPolyline(u),y?f=this._newPolygon(u,x):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,(0,je.he)(C)),g.setClipPath(an(this,r,!0,t));var k=t.getModel("emphasis"),P=k.get("focus"),L=k.get("blurScope"),O=k.get("disabled");(d.useStyle(B.NT(s.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),(0,$.Mx)(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1);(0,$t.z)(d).seriesIndex=t.seriesIndex,(0,$.Lm)(d,P,L,O);var E=Qe(t.get("smooth")),R=t.get("smoothMonotone");if(d.setShape({smooth:E,smoothMonotone:R,connectNulls:w}),f){var N=a.getCalculationInfo("stackedOnSeries"),z=0;f.useStyle(B.NT(l.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),N&&(z=Qe(N.get("smooth"))),f.setShape({smooth:E,stackedOnSmooth:z,smoothMonotone:R,connectNulls:w}),(0,$.Mx)(f,t,"areaStyle"),(0,$t.z)(f).seriesIndex=t.seriesIndex,(0,$.Lm)(f,P,L,O)}var V=function(t){i._changePolyState(t)};a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=V)}),this._polyline.onHoverStateChange=V,this._data=a,this._coordSys=r,this._stackedOnPoints=x,this._points=u,this._step=T,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){(0,$t.z)(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=kt.le(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.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 Ie(r,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,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else K.A.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=kt.le(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else K.A.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;(0,$.Pk)(this._polyline,t),e&&(0,$.Pk)(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Fe({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 We({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");B.Tn(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=B.Tn(u)?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var h=[t.x,t.y],p=void 0,d=void 0,f=void 0;if(n)if(r){var g=n,v=e.pointToCoord(h);i?(p=g.startAngle,d=g.endAngle,f=-v[1]/180*Math.PI):(p=g.r0,d=g.r,f=v[0])}else{var y=n;i?(p=y.x,d=y.x+y.width,f=t.x):(p=y.y+y.height,d=y.y,f=t.y)}var m=d===p?0:(f-p)/(d-p);a&&(m=1-m);var _=B.Tn(u)?u(o):l*m+c,x=s.getSymbolPath(),b=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(on(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Y.Ay({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e=t.length/2;e>0&&nn(t[2*e-2],t[2*e-1]);e--);return e-1}(a);l>=0&&((0,bt.qM)(o,(0,bt.lx)(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?be(r,n):xe(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),p=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,_=(g?d:0)*(v?-1:1),x=(g?0:-d)*(v?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(i<=e&&r>=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,m,b),S=w.range,I=S[1]-S[0],M=void 0;if(I>=1){if(I>1&&!h){var T=rn(u,S[0]);s.attr({x:T[0]+_,y:T[1]+x}),r&&(M=c.getRawValue(S[0]))}else{(T=l.getPointOn(m,b))&&s.attr({x:T[0]+_,y:T[1]+x});var C=c.getRawValue(S[0]),A=c.getRawValue(S[1]);r&&(M=kt.Il(n,p,C,A,w.t))}i.lastFrameIndex=S[0]}else{var D=1===t||i.lastFrameIndex>0?S[0]:0;T=rn(u,D);r&&(M=c.getRawValue(D)),s.attr({x:T[0]+_,y:T[1]+x})}if(r){var k=(0,bt.Lu)(s);"function"==typeof k.setLabelText&&k.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,i,r,o,a){for(var s=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),l=[],u=[],c=[],h=[],p=[],d=[],f=[],g=De(r,e,a),v=t.getLayout("points")||[],y=e.getLayout("points")||[],m=0;m<s.length;m++){var _=s[m],x=!0,b=void 0,w=void 0;switch(_.cmd){case"=":b=2*_.idx,w=2*_.idx1;var S=v[b],I=v[b+1],M=y[w],T=y[w+1];(isNaN(S)||isNaN(I))&&(S=M,I=T),l.push(S,I),u.push(M,T),c.push(n[b],n[b+1]),h.push(i[w],i[w+1]),f.push(e.getRawIndex(_.idx1));break;case"+":var C=_.idx,A=g.dataDimsForPoint,D=r.dataToPoint([e.get(A[0],C),e.get(A[1],C)]);w=2*C,l.push(D[0],D[1]),u.push(y[w],y[w+1]);var k=ke(g,r,e,C);c.push(k[0],k[1]),h.push(i[w],i[w+1]),f.push(e.getRawIndex(C));break;case"-":x=!1}x&&(p.push(_),d.push(d.length))}d.sort(function(t,e){return f[t]-f[e]});var P=l.length,L=(0,Pe.J)(P),O=(0,Pe.J)(P),E=(0,Pe.J)(P),R=(0,Pe.J)(P),N=[];for(m=0;m<d.length;m++){var z=d[m],B=2*m,V=2*z;L[B]=l[V],L[B+1]=l[V+1],O[B]=u[V],O[B+1]=u[V+1],E[B]=c[V],E[B+1]=c[V+1],R[B]=h[V],R[B+1]=h[V+1],N[m]=p[z]}return{current:L,next:O,stackedOnCurrent:E,stackedOnNext:R,status:N}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,p=c.stackedOnCurrent,d=c.next,f=c.stackedOnNext;if(r&&(h=Je(c.current,n,r,a),p=Je(c.stackedOnCurrent,n,r,a),d=Je(c.next,n,r,a),f=Je(c.stackedOnNext,n,r,a)),Ke(h,d)>3e3||l&&Ke(p,f)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),j.oi(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:p}),l.stopAnimation(),j.oi(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=c.status,m=0;m<y.length;m++){if("="===y[m].cmd){var _=t.getItemGraphicEl(y[m].idx1);_&&v.push({el:_,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<v.length;e++){var n=v[e].el,i=2*v[e].ptIdx;n.x=t[i],n.y=t[i+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,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(K.A);const ln=sn;var un=n(6305);function cn(t,e){return{seriesType:t,plan:(0,un.A)(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=(0,B.Tj)(i.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");(0,de.sJ)(n,a[0])&&(a[0]=l),(0,de.sJ)(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,r=o&&(0,Pe.J)(n*s),a=[],l=[],p=t.start,d=0;p<t.end;p++){var f=void 0;if(1===s){var g=u.get(c,p);f=i.dataToPoint(g,null,l)}else a[0]=u.get(c,p),a[1]=u.get(h,p),f=i.dataToPoint(a,null,l);o?(r[d++]=f[0],r[d++]=f[1]):e.setItemLayout(p,f.slice())}o&&e.setLayout("points",r)}}}}}}var hn={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],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]}},pn=function(t){return Math.round(t.length/2)};function dn(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){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"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p));var d=void 0;(0,B.Kg)(r)?d=hn[r]:(0,B.Tn)(r)&&(d=r),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,d,pn))}}}}}var fn=n(6343),gn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,U.C6)(e,t),e.prototype.getInitialData=function(t,e){return fe(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(t),o=i.dataToPoint(r);if(n)(0,B.__)(i.getAxes(),function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),a=r[n],s="x1"===e[n]||"y1"===e[n];if(s&&(a+=1),i.length<2)return;if(2===i.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<i.length;h++){var p=i[h].coord,d=h===i.length-1?i[h-1].tickValue+c:i[h].tickValue;if(d===a){u=p;break}if(d<a)l=p;else if(null!=l&&d>a){u=(p+l)/2;break}1===h&&(c=d-i[0].tickValue)}null==u&&(l?l&&(u=i[i.length-1].coord):u=i[0].coord),o[n]=t.toGlobalCoord(u)}});else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=i.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}(ae.A);ae.A.registerClass(gn);const vn=gn;var yn=n(2359);const mn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,U.C6)(e,t),e.prototype.getInitialData=function(){return fe(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=(0,yn.G_)(vn.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}(vn);var _n=n(6070),xn=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},bn=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return(0,U.C6)(e,t),e.prototype.getDefaultShape=function(){return new xn},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+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 d=Math.cos(l),f=Math.sin(l),g=Math.cos(u),v=Math.sin(u);p?(t.moveTo(d*r+n,f*r+i),t.arc(d*s+n,f*s+i,a,-Math.PI+l,l,!c)):t.moveTo(d*o+n,f*o+i),t.arc(n,i,o,l,u,!c),t.arc(g*s+n,v*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&t.arc(n,i,r,u,l,c)},e}(Oe.Ay);const wn=bn;function Sn(t,e,n){return e*Math.sin(t)*(n?-1:1)}function In(t,e,n){return e*Math.cos(t)*(n?1:-1)}var Mn=Math.max,Tn=Math.min;var Cn=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return(0,U.C6)(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},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){(0,_e.traverseElements)(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,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=function(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();0;if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}(t,l);h&&this._enableRealtimeSort(h,a,n);var p=t.get("clip",!0)||h,d=function(t,e){var n=t.getArea&&t.getArea();if(Ye(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),y=v.get("borderRadius")||0,m=[],_=this._backgroundEls,x=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function w(t){var e=Rn[l.type](a,t),n=function(t,e,n){var i="polar"===t.type?q.A:Ge.A;return new i({shape:Wn(e,n,t),silent:!0,z2:0})}(l,r,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",y):n.setShape("cornerRadius",y),m[t]=n,n}a.diff(s).add(function(e){var n=a.getItemModel(e),i=Rn[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&En[l.type](i)){var s=!1;p&&(s=An[l.type](d,i));var v=Dn[l.type](t,a,e,i,r,c,u.model,!1,f);h&&(v.forceLabelAnimation=!0),zn(v,a,e,n,i,t,r,"polar"===l.type),x?v.attr({shape:i}):h?kn(h,c,v,i,e,r,!1,!1):(0,j.LW)(v,{shape:i},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}}).update(function(e,n){var i=a.getItemModel(e),S=Rn[l.type](a,e,i);if(g){var I=void 0;0===_.length?I=w(n):((I=_[n]).useStyle(v.getItemStyle()),"cartesian2d"===l.type?I.setShape("r",y):I.setShape("cornerRadius",y),m[e]=I);var M=Rn[l.type](a,e),T=Wn(r,M,l);(0,j.oi)(I,{shape:T},c,e)}var C=s.getItemGraphicEl(n);if(a.hasValue(e)&&En[l.type](S)){var A=!1;if(p&&(A=An[l.type](d,S))&&o.remove(C),C?(0,j.ap)(C):C=Dn[l.type](t,a,e,S,r,c,u.model,!!C,f),h&&(C.forceLabelAnimation=!0),b){var D=C.getTextContent();if(D){var k=(0,bt.Lu)(D);null!=k.prevValue&&(k.prevValue=k.value)}}else zn(C,a,e,i,S,t,r,"polar"===l.type);x?C.attr({shape:S}):h?kn(h,c,C,S,e,r,!0,b):(0,j.oi)(C,{shape:S},t,e,null),a.setItemGraphicEl(e,C),C.ignore=A,o.add(C)}else o.remove(C)}).remove(function(e){var n=s.getItemGraphicEl(e);n&&(0,j.t5)(n,t,e)}).execute();var S=this._backgroundGroup||(this._backgroundGroup=new ve.A);S.removeAll();for(var I=0;I<m.length;++I)S.add(m[I]);o.add(S),this._backgroundEls=m,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),Fn(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),Fn(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&function(t,e,n,i,r){return t?"polar"===t.type?Ue(t,e,n):"cartesian2d"===t.type?Xe(t,e,n,i,r):null:null}(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),function(t,e){var r=n(e);r=r??NaN,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})}),i.sort(function(t,e){return e.mappedValue-t.mappedValue}),{ordinalNumbers:(0,B.Tj)(i,function(t){return t.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(r,i.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,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},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){(0,j.t5)(e,t,(0,$t.z)(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}(K.A),An={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=Mn(e.x,t.x),s=Tn(e.x+e.width,r),l=Mn(e.y,t.y),u=Tn(e.y+e.height,o),c=s<a,h=u<l;return e.x=c&&a>r?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),i<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 i=e.r;e.r=e.r0,e.r0=i}var r=Tn(e.r,t.r),o=Mn(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},Dn={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new Ge.A({shape:(0,B.X$)({},i),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[r?"height":"width"]=0);return u},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?wn:q.A,c=new u({shape:i,z2:1});c.name="item";var h,p,d=Nn(r);if(c.calculateTextPosition=(h=d,p=({isRoundCap:u===wn}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return(0,wt.X4)(t,e,n);var r=h(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,d=(u+c)/2,f=a.startAngle,g=a.endAngle,v=(f+g)/2,y=p?Math.abs(u-c)/2:0,m=Math.cos,_=Math.sin,x=s+u*m(f),b=l+u*_(f),w="left",S="top";switch(r){case"startArc":x=s+(c-o)*m(v),b=l+(c-o)*_(v),w="center",S="top";break;case"insideStartArc":x=s+(c+o)*m(v),b=l+(c+o)*_(v),w="center",S="bottom";break;case"startAngle":x=s+d*m(f)+Sn(f,o+y,!1),b=l+d*_(f)+In(f,o+y,!1),w="right",S="middle";break;case"insideStartAngle":x=s+d*m(f)+Sn(f,-o+y,!1),b=l+d*_(f)+In(f,-o+y,!1),w="left",S="middle";break;case"middle":x=s+d*m(v),b=l+d*_(v),w="center",S="middle";break;case"endArc":x=s+(u+o)*m(v),b=l+(u+o)*_(v),w="center",S="bottom";break;case"insideEndArc":x=s+(u-o)*m(v),b=l+(u-o)*_(v),w="center",S="top";break;case"endAngle":x=s+d*m(g)+Sn(g,o+y,!0),b=l+d*_(g)+In(g,o+y,!0),w="left",S="middle";break;case"insideEndAngle":x=s+d*m(g)+Sn(g,-o+y,!0),b=l+d*_(g)+In(g,-o+y,!0),w="right",S="middle";break;default:return(0,wt.X4)(t,e,n)}return(t=t||{}).x=x,t.y=b,t.align=w,t.verticalAlign=S,t}),o){var f=r?"r":"endAngle",g={};c.shape[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?j.oi:j.LW)(c,{shape:g},o)}return c}};function kn(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?j.oi:j.LW)(n,{shape:l},e,r,null);var c=e?t.baseAxis.model:null;(a?j.oi:j.LW)(n,{shape:u},c,r)}function Pn(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var Ln=["x","y","width","height"],On=["cx","cy","r","startAngle","endAngle"],En={cartesian2d:function(t){return!Pn(t,Ln)},polar:function(t){return!Pn(t,On)}},Rn={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,o)}(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function Nn(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 zn(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape,c=St(i.getModel("itemStyle"),u,!0);(0,B.X$)(u,c),t.setShape(u)}}else{var h=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",h)}t.useStyle(l);var p=i.getShallow("cursor");p&&t.attr("cursor",p);var d=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",f=(0,bt.lx)(i);(0,bt.qM)(t,f,{labelFetcher:o,labelDataIndex:n,defaultText:xe(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var g=t.getTextContent();if(s&&g){var v=i.get(["label","position"]);t.textConfig.inside="middle"===v||null,function(t,e,n,i){if((0,B.Et)(i))t.setTextConfig({rotation:i});else if((0,B.cy)(e))t.setTextConfig({rotation:0});else{var r,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":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-r;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}(t,"outside"===v?d:v,Nn(a),i.get(["label","rotate"]))}(0,bt.Oh)(g,f,o.getRawValue(n),function(t){return be(e,t)});var y=i.getModel(["emphasis"]);(0,$.Lm)(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),(0,$.Mx)(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",(0,B.__)(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var Bn=function(){},Vn=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return(0,U.C6)(e,t),e.prototype.getDefaultShape=function(){return new Bn},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],t.rect(o[0],o[1],a[0],a[1])},e}(Oe.Ay);function Fn(t,e,n,i){var r=t.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var c=new Vn({shape:{points:u},incremental:!!i,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 Vn({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(r.getVisual("style")),(0,$t.z)(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",Hn),h.on("mousemove",Hn)),n&&n.push(h)}var Hn=(0,_n.nF)(function(t){var e=function(t,e,n){for(var i=t.baseDimIdx,r=1-i,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[i]=u,l[r]=o[p+2],s[i]=o[p+i],s[r]=o[p+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),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);(0,$t.z)(this).dataIndex=e>=0?e:null},30,!1);function Wn(t,e,n){if(Ye(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var o=e;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}const Gn=Cn;var Xn=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0};const Un=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return(0,U.C6)(e,t),e.prototype.getDefaultShape=function(){return new Xn},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(Oe.Ay);var Yn=n(8401);function jn(t,e){var n=null==t?"":t+"";return e&&((0,B.Kg)(e)?n=e.replace("{value}",n):(0,B.Tn)(e)&&(n=e(t))),n}const Zn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,U.C6)(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:(0,N.lo)(n[0],e.getWidth()),cy:(0,N.lo)(n[1],e.getHeight()),r:(0,N.lo)(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){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")?wn:q.A,h=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),f=[s,l];(0,J.q)(f,!a);for(var g=(l=f[1])-(s=f[0]),v=s,y=[],m=0;h&&m<i.length;m++){var _=new c({shape:{startAngle:v,endAngle:l=s+g*Math.min(Math.max(i[m][0],0),1),cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-d,r:r.r},silent:!0});_.setStyle({fill:i[m][1]}),_.setStyle(p.getLineStyle(["color","width"])),y.push(_),v=l}y.reverse(),(0,B.__)(y,function(t){return o.add(t)});var x=function(t){if(t<=0)return i[0][1];var e;for(e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};this._renderTicks(t,e,n,x,r,s,l,a,d),this._renderTitleAndDetail(t,e,n,x,r),this._renderAnchor(t,r),this._renderPointer(t,e,n,x,r,s,l,a,d)},e.prototype._renderTicks=function(t,e,n,i,r,o,a,s,l){for(var u,c,h=this.group,p=r.cx,d=r.cy,f=r.r,g=+t.get("min"),v=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),_=t.getModel("axisLabel"),x=t.get("splitNumber"),b=m.get("splitNumber"),w=(0,N.lo)(y.get("length"),f),S=(0,N.lo)(m.get("length"),f),I=o,M=(a-o)/x,T=M/b,C=y.getModel("lineStyle").getLineStyle(),A=m.getModel("lineStyle").getLineStyle(),D=y.get("distance"),k=0;k<=x;k++){if(u=Math.cos(I),c=Math.sin(I),y.get("show")){var P=D?D+l:l,L=new Yn.A({shape:{x1:u*(f-P)+p,y1:c*(f-P)+d,x2:u*(f-w-P)+p,y2:c*(f-w-P)+d},style:C,silent:!0});"auto"===C.stroke&&L.setStyle({stroke:i(k/x)}),h.add(L)}if(_.get("show")){P=_.get("distance")+D;var O=jn((0,N.LI)(k/x*(v-g)+g),_.get("formatter")),E=i(k/x),R=u*(f-w-P)+p,z=c*(f-w-P)+d,V=_.get("rotate"),F=0;"radial"===V?(F=-I+2*Math.PI)>Math.PI/2&&(F+=Math.PI):"tangential"===V?F=-I-Math.PI/2:(0,B.Et)(V)&&(F=V*Math.PI/180),0===F?h.add(new Y.Ay({style:(0,bt.VB)(_,{text:O,x:R,y:z,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:E}),silent:!0})):h.add(new Y.Ay({style:(0,bt.VB)(_,{text:O,x:R,y:z,verticalAlign:"middle",align:"center"},{inheritColor:E}),silent:!0,originX:R,originY:z,rotation:F}))}if(m.get("show")&&k!==x){P=(P=m.get("distance"))?P+l:l;for(var H=0;H<=b;H++){u=Math.cos(I),c=Math.sin(I);var W=new Yn.A({shape:{x1:u*(f-P)+p,y1:c*(f-P)+d,x2:u*(f-S-P)+p,y2:c*(f-S-P)+d},silent:!0,style:A});"auto"===A.stroke&&W.setStyle({stroke:i((k+H/b)/x)}),h.add(W),I+=T}I-=T}else I+=M}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,p=[],d=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),v=t.getData(),y=v.mapDimension("value"),m=+t.get("min"),_=+t.get("max"),x=[m,_],b=[o,a];function w(e,n){var i,o=v.getItemModel(e).getModel("pointer"),a=(0,N.lo)(o.get("width"),r.r),s=(0,N.lo)(o.get("length"),r.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),c=(0,N.lo)(u[0],r.r),h=(0,N.lo)(u[1],r.r),p=o.get("keepAspect");return(i=l?(0,ge.v5)(l,c-a/2,h-s,a,s,null,p):new Un({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:h}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(t,e){var n=f.get("roundCap")?wn:q.A,i=f.get("overlap"),a=i?f.get("width"):l/v.count(),u=i?r.r-a:r.r-(t+1)*a,c=i?r.r:r.r-t*a,h=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:u,r:c}});return i&&(h.z2=_-v.get(y,t)%_),h}(g||d)&&(v.diff(c).add(function(e){var n=v.get(y,e);if(d){var i=w(e,o);j.LW(i,{rotation:-((isNaN(+n)?b[0]:(0,N.Cb)(n,x,b,!0))+Math.PI/2)},t),u.add(i),v.setItemGraphicEl(e,i)}if(g){var r=S(e,o),a=f.get("clip");j.LW(r,{shape:{endAngle:(0,N.Cb)(n,x,b,a)}},t),u.add(r),(0,$t.a)(t.seriesIndex,v.dataType,e,r),p[e]=r}}).update(function(e,n){var i=v.get(y,e);if(d){var r=c.getItemGraphicEl(n),a=r?r.rotation:o,s=w(e,a);s.rotation=a,j.oi(s,{rotation:-((isNaN(+i)?b[0]:(0,N.Cb)(i,x,b,!0))+Math.PI/2)},t),u.add(s),v.setItemGraphicEl(e,s)}if(g){var l=h[n],m=S(e,l?l.shape.endAngle:o),_=f.get("clip");j.oi(m,{shape:{endAngle:(0,N.Cb)(i,x,b,_)}},t),u.add(m),(0,$t.a)(t.seriesIndex,v.dataType,e,m),p[e]=m}}).execute(),v.each(function(t){var e=v.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(d){var s=v.getItemGraphicEl(t),l=v.getItemVisual(t,"style"),u=l.fill;if(s instanceof we.Ay){var c=s.style;s.useStyle((0,B.X$)({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",i((0,N.Cb)(v.get(y,t),x,[0,1],!0))),s.z2EmphasisLift=0,(0,$.Mx)(s,e),(0,$.Lm)(s,r,o,a)}if(g){var h=p[t];h.useStyle(v.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,(0,$.Mx)(h,e),(0,$.Lm)(h,r,o,a)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=(0,ge.v5)(r,e.cx-i/2+(0,N.lo)(o[0],e.r),e.cy-i/2+(0,N.lo)(o[1],e.r),i,i,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,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new ve.A,h=[],p=[],d=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add(function(t){h[t]=new Y.Ay({silent:!0}),p[t]=new Y.Ay({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 ve.A,v=i((0,N.Cb)(o,[l,u],[0,1],!0)),y=n.getModel("title");if(y.get("show")){var m=y.get("offsetCenter"),_=r.cx+(0,N.lo)(m[0],r.r),x=r.cy+(0,N.lo)(m[1],r.r);(A=h[e]).attr({z2:f?0:2,style:(0,bt.VB)(y,{x:_,y:x,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:v})}),g.add(A)}var b=n.getModel("detail");if(b.get("show")){var w=b.get("offsetCenter"),S=r.cx+(0,N.lo)(w[0],r.r),I=r.cy+(0,N.lo)(w[1],r.r),M=(0,N.lo)(b.get("width"),r.r),T=(0,N.lo)(b.get("height"),r.r),C=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:v,A=p[e],D=b.get("formatter");A.attr({z2:f?0:2,style:(0,bt.VB)(b,{x:S,y:I,text:jn(o,D),width:isNaN(M)?null:M,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:C})}),(0,bt.Oh)(A,{normal:b},o,function(t){return jn(t,D)}),d&&(0,bt.xb)(A,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return jn(a?a.interpolatedValue:o,D)}}),g.add(A)}c.add(g)}),this.group.add(c),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(K.A);const qn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return(0,U.C6)(e,t),e.prototype.getInitialData=function(t,e){return re(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}(ae.A);const $n=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,U.C6)(e,t),e.prototype.getInitialData=function(t,e){return fe(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},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}(ae.A);var Kn=n(7544),Qn=function(){},Jn=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,U.C6)(e,t),e.prototype.getDefaultShape=function(){return new Qn},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],h=i[n++];isNaN(c)||isNaN(h)||(u&&!u.contain(c,h)||(a.x=c-r[0]/2,a.y=h-r[1]/2,a.width=r[0],a.height=r[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,i=e.size,r=this._ctx,o=this.softClipShape;if(r){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,c=i[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),i=this.getBoundingRect();return t=n[0],e=n[1],i.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,i=e.size,r=i[0],o=i[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 Kn.A(a-r/2,s-o/2,l-a+r,u-s+o)}return t},e}(Oe.Ay);const ti=function(){function t(){this.group=new ve.A}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),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e),t.reset()})},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],r=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),i.endIndex=t.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new Jn({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.softClipShape=n.clipShape||null,t.symbolProxy=(0,ge.v5)(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=(0,$t.z)(t);l.seriesIndex=i.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}();const ei=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,U.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),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 i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=cn("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},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,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new ti:new Ae,this._isLargeDraw=i,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}(K.A);var ni=n(3478);function ii(t){t.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();B.__(r,function(t,o){e.each(e.mapDimension(r[o].dim),function(t,e){n[e]=n[e]||[];var r=i.dataToPoint(t,o);n[e][o]=ri(r)?r:oi(i)})}),e.each(function(t){var r=B.I6(n[t],function(t){return ri(t)})||oi(i);n[t].push(r.slice()),e.setItemLayout(t,n[t])})}})}function ri(t){return!isNaN(t[0])&&!isNaN(t[1])}function oi(t){return[t.cx,t.cy]}function ai(t){var e=t.polar;if(e){B.cy(e)||(e=[e]);var n=[];B.__(e,function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],B.cy(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)}),t.polar=n}B.__(t.series,function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}var si=n(9717);const li=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,U.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=this._data;function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i=ge.xU(t.getItemVisual(e,"symbolSize")),r=ge.v5(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function l(e,n,i,r,o,a){i.removeAll();for(var l=0;l<n.length-1;l++){var u=s(r,o);u&&(u.__dimIdx=l,e[l]?(u.setPosition(e[l]),_e[a?"initProps":"updateProps"](u,{x:n[l][0],y:n[l][1]},t,o)):u.setPosition(n[l]),i.add(u))}}function u(t){return B.Tj(t,function(t){return[i.cx,i.cy]})}o.diff(a).add(function(e){var n=o.getItemLayout(e);if(n){var i=new si.A,r=new Z.A,a={shape:{points:n}};i.shape.points=u(n),r.shape.points=u(n),j.LW(i,a,t,e),j.LW(r,a,t,e);var s=new ve.A,c=new ve.A;s.add(r),s.add(i),s.add(c),l(r.shape.points,n,c,o,e,!0),o.setItemGraphicEl(e,s)}}).update(function(e,n){var i=a.getItemGraphicEl(n),r=i.childAt(0),s=i.childAt(1),u=i.childAt(2),c={shape:{points:o.getItemLayout(e)}};c.shape.points&&(l(r.shape.points,c.shape.points,u,o,e,!1),(0,j.ap)(s),(0,j.ap)(r),j.oi(r,c,t),j.oi(s,c,t),o.setItemGraphicEl(e,i))}).remove(function(t){r.remove(a.getItemGraphicEl(t))}).execute(),o.eachItemGraphicEl(function(t,e){var n=o.getItemModel(e),i=t.childAt(0),a=t.childAt(1),s=t.childAt(2),l=o.getItemVisual(e,"style"),u=l.fill;r.add(t),i.useStyle(B.NT(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),(0,$.Mx)(i,n,"lineStyle"),(0,$.Mx)(a,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=h,B.__(["emphasis","select","blur"],function(t){var e=n.getModel([t,"areaStyle"]),i=e.isEmpty()&&e.parentModel.isEmpty();a.ensureState(t).ignore=i&&h}),a.useStyle(B.NT(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var p=n.getModel("emphasis"),d=p.getModel("itemStyle").getItemStyle();s.eachChild(function(t){if(t instanceof we.Ay){var i=t.style;t.useStyle(B.X$({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else t.useStyle(l),t.setColor(u),t.style.strokeNoScale=!0;t.ensureState("emphasis").style=B.o8(d);var r=o.getStore().get(o.getDimensionIndex(t.__dimIdx),e);(null==r||isNaN(r))&&(r=""),(0,bt.qM)(t,(0,bt.lx)(n),{labelFetcher:o.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:r,inheritColor:u,defaultOpacity:l.opacity})}),(0,$.Lm)(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}(K.A);var ui=n(3496);const ci=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,U.C6)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new oe(B.oI(this.getData,this),B.oI(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return re(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(t),a=""===o?this.name:o,s=(0,ui.aw)(this,t);return(0,ui.Qx)("section",{header:a,sortBlocks:!0,blocks:B.Tj(r,function(e){var n=i.get(i.mapDimension(e.dim),t);return(0,ui.Qx)("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,i=e.getValues(B.Tj(n.dimensions,function(t){return e.mapDimension(t)}),t),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},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}(ae.A);var hi=n(5107),pi=n(4457),di=n(4386),fi=hi.A.value;function gi(t,e){return B.NT({show:e},t)}var vi=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,U.C6)(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=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=B.Tj(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=B.NT({color:h.color},a));var d=B.h1(B.o8(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:p,triggerEvent:c},!1);if(B.Kg(l)){var f=d.name;d.name=l.replace("{value}",null!=f?f:"")}else B.Tn(l)&&(d.name=l(d.name,d));var g=new Rt.A(d,null,this.ecModel);return B.co(g,pi.L.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:B.h1({lineStyle:{color:"#bbb"}},fi.axisLine),axisLabel:gi(fi.axisLabel,!1),axisTick:gi(fi.axisTick,!1),splitLine:gi(fi.splitLine,!0),splitArea:gi(fi.splitArea,!0),indicator:[]},e}(di.A);const yi=vi;var mi=n(2381),_i=n(9471),xi=n(8577),bi=n(8686),wi=["axisLine","axisTickLabel","axisName"],Si=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,U.C6)(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=B.Tj(n,function(t){var n=t.model.get("showName")?t.name:"";return new mi.A(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});B.__(i,function(t){B.__(wi,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 i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),p=B.cy(c)?c:[c],d=B.cy(h)?h:[h],f=[],g=[];if("circle"===i)for(var v=n[0].getTicksCoords(),y=e.cx,m=e.cy,_=0;_<v.length;_++){if(l)f[C(f,p,_)].push(new _i.A({shape:{cx:y,cy:m,r:v[_].coord}}));if(u&&_<v.length-1)g[C(g,d,_)].push(new xi.A({shape:{cx:y,cy:m,r0:v[_].coord,r:v[_+1].coord}}))}else{var x,b=B.Tj(n,function(t,n){var i=t.getTicksCoords();return x=null==x?i.length-1:Math.min(i.length-1,x),B.Tj(i,function(t){return e.coordToPoint(t.coord,n)})}),w=[];for(_=0;_<=x;_++){for(var S=[],I=0;I<n.length;I++)S.push(b[I][_]);if(S[0]&&S.push(S[0].slice()),l)f[C(f,p,_)].push(new Z.A({shape:{points:S}}));if(u&&w)g[C(g,d,_-1)].push(new si.A({shape:{points:S.concat(w)}}));w=S.slice().reverse()}}var M=a.getLineStyle(),T=s.getAreaStyle();B.__(g,function(t,e){this.group.add(_e.mergePath(t,{style:B.NT({stroke:"none",fill:d[e%d.length]},T),silent:!0}))},this),B.__(f,function(t,e){this.group.add(_e.mergePath(t,{style:B.NT({fill:"none",stroke:p[e%p.length]},M),silent:!0}))},this)}function C(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}},e.type="radar",e}(bi.A);const Ii=Si;const Mi=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return(0,U.C6)(e,t),e}(n(7745).A);var Ti=n(413),Ci=n(1845),Ai=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=(0,B.Tj)(t.getIndicatorModels(),function(t,e){var n="indicator_"+e,i=new Mi(n,new Ti.A);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i},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,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,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&&(r=u,s=l,a=c)}return[s,+(r&&r.coordToData(i))]},t.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r)/2;this.cx=N.lo(n[0],i),this.cy=N.lo(n[1],r),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");((0,B.Kg)(a)||(0,B.Et)(a))&&(a=[0,a]),this.r0=N.lo(a[0],o),this.r=N.lo(a[1],o),(0,B.__)(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,i=this._model;(0,B.__)(n,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(e,r){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===i){var o=e.getData();(0,B.__)(n,function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))})}},this);var r=i.get("splitNumber"),o=new Ti.A;o.setExtent(0,r),o.setInterval(1),(0,B.__)(n,function(t,e){(0,Ci.m)(t.scale,t.model,o)})},t.prototype.convertToPixel=function(t,e,n){return null},t.prototype.convertFromPixel=function(t,e,n){return null},t.prototype.containPoint=function(t){return!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},t.dimensions=[],t}();const Di=Ai;function ki(t){t.registerCoordinateSystem("radar",Di),t.registerComponentModel(yi),t.registerComponentView(Ii),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 Pi=n(145);const Li=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Pi.yh.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),p=t.length;c.width=e,c.height=n;for(var d=0;d<p;++d){var f=t[d],g=f[0],v=f[1],y=i(f[2]);h.globalAlpha=y,h.drawImage(a,g-u,v-u)}if(!c.width||!c.height)return c;for(var m=h.getImageData(0,0,c.width,c.height),_=m.data,x=0,b=_.length,w=this.minOpacity,S=this.maxOpacity-w;x<b;){y=_[x+3]/256;var I=4*Math.floor(255*y);if(y>0){var M=o(y)?s:l;y>0&&(y=y*S+w),_[x++]=M[I],_[x++]=M[I+1],_[x++]=M[I+2],_[x++]=M[I+3]*y*256}else x+=4}return h.putImageData(m,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Pi.yh.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}();function Oi(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}const Ei=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,U.C6)(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):Oi(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(Oi(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){_e.traverseElements(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem,c=Ye(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 d=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),v=t.getModel(["blur","itemStyle"]).getItemStyle(),y=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),_=(0,bt.lx)(t),x=t.getModel("emphasis"),b=x.get("focus"),w=x.get("blurScope"),S=x.get("disabled"),I=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],M=n;M<i;M++){var T=void 0,C=f.getItemVisual(M,"style");if(c){var A=f.get(I[0],M),D=f.get(I[1],M);if(isNaN(f.get(I[2],M))||isNaN(A)||isNaN(D)||A<s[0]||A>s[1]||D<l[0]||D>l[1])continue;var k=u.dataToPoint([A,D]);T=new Ge.A({shape:{x:k[0]-o/2,y:k[1]-a/2,width:o,height:a},style:C})}else{if(isNaN(f.get(I[1],M)))continue;T=new Ge.A({z2:1,shape:u.dataToRect([f.get(I[0],M)]).contentShape,style:C})}if(f.hasItemOption){var P=f.getItemModel(M),L=P.getModel("emphasis");g=L.getModel("itemStyle").getItemStyle(),v=P.getModel(["blur","itemStyle"]).getItemStyle(),y=P.getModel(["select","itemStyle"]).getItemStyle(),m=P.get(["itemStyle","borderRadius"]),b=L.get("focus"),w=L.get("blurScope"),S=L.get("disabled"),_=(0,bt.lx)(P)}T.shape.r=m;var O=t.getRawValue(M),E="-";O&&null!=O[2]&&(E=O[2]+""),(0,bt.qM)(T,_,{labelFetcher:t,labelDataIndex:M,defaultOpacity:C.opacity,defaultText:E}),T.ensureState("emphasis").style=g,T.ensureState("blur").style=v,T.ensureState("select").style=y,(0,$.Lm)(T,b,w,S),T.incremental=r,r&&(T.states.emphasis.hoverLayer=!0),d.add(T),f.setItemGraphicEl(M,T),this._progressiveEls&&this._progressiveEls.push(T)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new Li;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,i.getWidth()),d=Math.min(l.height+l.y,i.getHeight()),f=p-c,g=d-h,v=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],y=a.mapArray(v,function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=c,r[1]-=h,r.push(i),r}),m=n.getExtent(),_="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 i=t[1]-t[0],r=(e=B.Tj(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}})).length,o=0;return function(t){var i;for(i=o;i<r;i++)if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}if(i===r)for(i=o-1;i>=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i<r&&n[i]}}(m,n.getPieceList(),n.option.selected);s.update(y,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},_);var x=new we.Ay({style:{width:f,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(K.A);const Ri=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,U.C6)(e,t),e.prototype.getInitialData=function(t,e){return fe(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=ue.A.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}(ae.A);var Ni=["itemStyle","opacity"],zi=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new Z.A,a=new Y.Ay;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return(0,U.C6)(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(Ni);l=l??1,n||(0,j.ap)(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,j.LW(i,{style:{opacity:l}},r,e)):j.oi(i,{style:{opacity:l},shape:{points:a.points}},r,e),(0,$.Mx)(i,o),this._updateLabel(t,e),(0,$.Lm)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),u=l.fill;(0,bt.qM)(r,(0,bt.lx)(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;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new Q.A(c[0][0],c[0][1]):null},j.oi(r,{style:{x:s.x,y:s.y}},o,e),r.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),dt(n,ft(a),{stroke:u})},e}(si.A);const Bi=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return(0,U.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add(function(t){var e=new zi(i,t);i.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)}).remove(function(e){var n=r.getItemGraphicEl(e);j.t5(n,t,e)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(K.A);const Vi=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,U.C6)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new oe(B.oI(this.getData,this),B.oI(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return re(this,{coordDimensions:["value"],encodeDefaulter:B.cF(Pt.ln,this)})},e.prototype._defaultLabelLine=function(t){(0,kt.M5)(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(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},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}(ae.A);function Fi(t,e){t.eachSeriesByType("funnel",function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=function(t,e){return z.dV(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"),i=t.mapArray(n,function(t){return t}),r=[],o="ascending"===e,a=0,s=t.count();a<s;a++)r[a]=a;return(0,B.Tn)(e)?r.sort(e):"none"!==e&&r.sort(function(t,e){return o?i[t]-i[e]:i[e]-i[t]}),r}(n,r),c=o.x,h=o.y,p="horizontal"===a?[(0,N.lo)(t.get("minSize"),l),(0,N.lo)(t.get("maxSize"),l)]:[(0,N.lo)(t.get("minSize"),s),(0,N.lo)(t.get("maxSize"),s)],d=n.getDataExtent(i),f=t.get("min"),g=t.get("max");null==f&&(f=Math.min(d[0],0)),null==g&&(g=d[1]);var v=t.get("funnelAlign"),y=t.get("gap"),m=(("horizontal"===a?s:l)-y*(n.count()-1))/n.count(),_=function(t,e){if("horizontal"===a){var r=n.get(i,t)||0,o=(0,N.Cb)(r,[f,g],p,!0),u=void 0;switch(v){case"top":u=h;break;case"center":u=h+(l-o)/2;break;case"bottom":u=h+(l-o)}return[[e,u],[e,u+o]]}var d,y=n.get(i,t)||0,m=(0,N.Cb)(y,[f,g],p,!0);switch(v){case"left":d=c;break;case"center":d=c+(s-m)/2;break;case"right":d=c+s-m}return[[d,e],[d+m,e]]};"ascending"===r&&(m=-m,y=-y,"horizontal"===a?c+=s:h+=l,u=u.reverse());for(var x=0;x<u.length;x++){var b=u[x],w=u[x+1],S=n.getItemModel(b);if("horizontal"===a){var I=S.get(["itemStyle","width"]);null==I?I=m:(I=(0,N.lo)(I,s),"ascending"===r&&(I=-I));var M=_(b,c),T=_(w,c+I);c+=I+y,n.setItemLayout(b,{points:M.concat(T.slice().reverse())})}else{var C=S.get(["itemStyle","height"]);null==C?C=m:(C=(0,N.lo)(C,l),"ascending"===r&&(C=-C));M=_(b,h),T=_(w,h+C);h+=C+y,n.setItemLayout(b,{points:M.concat(T.slice().reverse())})}}!function(t){var e=t.hostModel.get("orient");t.each(function(n){var i,r,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?(r=(h[0][0]+h[3][0])/2+5,o=(h[0][1]+h[3][1])/2,i="left"):"insideRight"===l?(r=(h[1][0]+h[2][0])/2-5,o=(h[1][1]+h[2][1])/2,i="right"):(r=(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,i="center"),a=[[r,o],[r,o]];else{var d=void 0,f=void 0,g=void 0,v=void 0,y=u.get("length");"left"===l?(d=(h[3][0]+h[0][0])/2,f=(h[3][1]+h[0][1])/2,r=(g=d-y)-5,i="right"):"right"===l?(d=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,r=(g=d+y)+5,i="left"):"top"===l?(d=(h[3][0]+h[0][0])/2,o=(v=(f=(h[3][1]+h[0][1])/2)-y)-5,i="center"):"bottom"===l?(d=(h[1][0]+h[2][0])/2,o=(v=(f=(h[1][1]+h[2][1])/2)+y)+5,i="center"):"rightTop"===l?(d="horizontal"===e?h[3][0]:h[1][0],f="horizontal"===e?h[3][1]:h[1][1],"horizontal"===e?(o=(v=f-y)-5,i="center"):(r=(g=d+y)+5,i="top")):"rightBottom"===l?(d=h[2][0],f=h[2][1],"horizontal"===e?(o=(v=f+y)+5,i="center"):(r=(g=d+y)+5,i="bottom")):"leftTop"===l?(d=h[0][0],f="horizontal"===e?h[0][1]:h[1][1],"horizontal"===e?(o=(v=f-y)-5,i="center"):(r=(g=d-y)-5,i="right")):"leftBottom"===l?(d="horizontal"===e?h[1][0]:h[3][0],f="horizontal"===e?h[1][1]:h[2][1],"horizontal"===e?(o=(v=f+y)+5,i="center"):(r=(g=d-y)-5,i="right")):(d=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,"horizontal"===e?(o=(v=f+y)+5,i="center"):(r=(g=d+y)+5,i="left")),"horizontal"===e?r=g=d:o=v=f,a=[[d,f],[g,v]]}c.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:i,inside:p}})}(n)})}var Hi=n(8662),Wi=n(137),Gi=n(3215),Xi=n(3651),Ui=["x","y","radius","angle","single"],Yi=["cartesian2d","polar","singleAxis"];function ji(t){return t+"Axis"}function Zi(t,e){var n,i=(0,B.nt)(),r=[],o=(0,B.nt)();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 r=i.get(t);r&&r[n]&&(e=!0)}),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis(function(t,e){(i.get(t)||i.set(t,[]))[e]=!0})}return r}function qi(t){var e=t.ecModel,n={infoList:[],infoMap:(0,B.nt)()};return t.eachTargetAxis(function(t,i){var r=e.getComponent(ji(t),i);if(r){var o=r.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(r)}}}),n}var $i=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}();function Ki(t){var e={};return(0,B.__)(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}const Qi=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(0,U.C6)(e,t),e.prototype.init=function(t,e,n){var i=Ki(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=Ki(t);(0,B.h1)(this.option,t,!0),(0,B.h1)(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;(0,B.__)([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=(0,B.nt)();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(0,B.__)(Ui,function(n){var i=this.getReferringComponents(ji(n),kt.UW);if(i.specified){e=!0;var r=new $i;(0,B.__)(i.models,function(t){r.add(t.componentIndex)}),t.set(n,r)}},this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x";o(n.findComponents({mainType:r+"Axis"}),r)}i&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single");function o(e,n){var r=e[0];if(r){var o=new $i;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",kt.US).models[0];a&&(0,B.__)(e,function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",kt.US).models[0]&&o.add(t.componentIndex)})}}}i&&(0,B.__)(Ui,function(e){if(i){var r=n.findComponents({mainType:ji(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new $i;o.add(r[0].componentIndex),t.set(e,o),i=!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");(0,B.__)([["start","startValue"],["end","endValue"]],function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="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(ji(e),n))},this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(n,i){(0,B.__)(n.indexList,function(n){t.call(e,i,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(ji(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;(0,B.__)([["start","startValue"],["end","endValue"]],function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;(0,B.__)(["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(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,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}(di.A);const Ji=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,U.C6)(e,t),e.type="dataZoom.inside",e.defaultOption=(0,yn.G_)(Qi.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Qi);const tr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,U.C6)(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(bi.A);function er(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=ir(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=ir(s,[0,a]),r=o=ir(s,[r,o]),i=0}e[0]=ir(e[0],n),e[1]=ir(e[1],n);var l=nr(e,i);e[i]+=t;var u,c=r||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[i]=ir(e[i],h),u=nr(e,i),null!=r&&(u.sign!==l.sign||u.span<r)&&(e[1-i]=e[i]+l.sign*r),u=nr(e,i),null!=o&&u.span>o&&(e[1-i]=e[i]+u.sign*o),e}function nr(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 ir(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var rr=n(1969),or=n(1720),ar=n(7264),sr="\0_ec_interaction_mutex";function lr(t,e){return!!ur(t)[e]}function ur(t){return t[sr]||(t[sr]={})}function cr(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(or.ds(i.event),hr(t,e,n,i,r))}function hr(t,e,n,i,r){r.isAvailableBehavior=(0,B.oI)(pr,null,n,i),t.trigger(e,r)}function pr(t,e,n){var i=n[t];return!t||i&&(!(0,B.Kg)(i)||e.event[i+"Key"])}ar.OH({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},B.lQ);const dr=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=(0,B.oI)(n._mousedownHandler,n),r=(0,B.oI)(n._mousemoveHandler,n),o=(0,B.oI)(n._mouseupHandler,n),a=(0,B.oI)(n._mousewheelHandler,n),s=(0,B.oI)(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=(0,B.NT)((0,B.o8)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return(0,U.C6)(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(!or.W5(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&pr("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!lr(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&or.ds(t.event),hr(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){or.W5(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=pr("zoomOnMouseWheel",t,this._opt),n=pr("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;cr(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);cr(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){lr(this._zr,"globalPan")||cr(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(rr.A);var fr=(0,kt.$r)();function gr(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function vr(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function yr(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function mr(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=fr(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=(0,B.nt)());i.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(t){var n=qi(t);(0,B.__)(n.infoList,function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(t,e){var n={model:e,containsPoint:(0,B.cF)(yr,e),dispatchAction:(0,B.cF)(vr,t),dataZoomInfoMap:null,controller:null},i=n.controller=new dr(t.getZr());return(0,B.__)(["pan","zoom","scrollMove"],function(t){i.on(t,function(e){var i=[];n.dataZoomInfoMap.each(function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}}),i.length&&n.dispatchAction(i)})}),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=(0,B.nt)())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})})}),i.each(function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=function(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each(function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),_n.N(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else gr(i,t)})})}var _r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return(0,U.C6)(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(t,e,n){fr(t).coordSysRecordMap.each(function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)})}(i,e,{pan:(0,B.oI)(xr.pan,this),zoom:(0,B.oI)(xr.zoom,this),scrollMove:(0,B.oI)(xr.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=fr(t).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||gr(n,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(tr),xr={zoom:function(t,e,n,i){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=wr[e](null,[i.originX,i.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/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return er(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:br(function(t,e,n,i,r,o){var a=wr[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:br(function(t,e,n,i,r,o){return wr[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta})};function br(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return er(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var wr={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.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,i,r){var o=n.axis,a={},s=r.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,i,r){var o=n.axis,a=r.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}};const Sr=_r;var Ir=n(1458),Mr=n(5153),Tr=B.__,Cr=N.Y6;const Ar=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,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(0,B.qh)(Yi,e)>=0}(e)){var n=ji(this._dimName),i=e.getReferringComponents(n,kt.US).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return B.o8(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];Tr(["start","end"],function(l,u){var c=t[l],h=t[l+"Value"];"percent"===r[u]?(null==c&&(c=o[u]),h=i.parse(N.Cb(c,o,n))):(e=!0,h=null==h?n[u]:i.parse(h),c=N.Cb(h,n,o)),s[u]=null==h||isNaN(h)?n[u]:h,a[u]=null==c||isNaN(c)?o[u]:c}),Cr(s),Cr(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?"Span":"ValueSpan";er(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=N.Cb(t[s],n,r,!0),o&&(e[s]=i.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 i=[1/0,-1/0];Tr(n,function(t){(0,Ir.PN)(i,t.getData(),e)});var r=t.getAxisModel(),o=(0,Mr.Tc)(r.axis.scale,r,i).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,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&Tr(i,function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=e.getStore(),s=B.Tj(i,function(t){return e.getDimensionIndex(t)},e);e.filterSelf(function(t){for(var e,n,r,l=0;l<i.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&&(r=!0),h&&(e=!0),p&&(n=!0)}return r&&e&&n})}else Tr(i,function(n){if("empty"===r)t.setData(e=e.map(n,function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN}));else{var i={};i[n]=o,e.selectRange(i)}});Tr(i,function(t){e.setApproximateExtent(o,t)})}})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;Tr(["min","max"],function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=N.Cb(n[0]+o,n,[0,100],!0):null!=r&&(o=N.Cb(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=N.hb(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();const Dr={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(i,r){var o=t.getComponent(ji(i),r);e(i,r,o,n)})})}e(function(t,e,n,i){n.__dzAxisProxy=null});var n=[];e(function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new Ar(e,i,o,t),n.push(r.__dzAxisProxy))});var i=(0,B.nt)();return(0,B.__)(n,function(t){(0,B.__)(t.getTargetSeriesModels(),function(t){i.set(t.uid,t)})}),i},overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(e,n){t.getAxisProxy(e,n).reset(t)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};var kr=!1;function Pr(t){kr||(kr=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,Dr),function(t){t.registerAction("dataZoom",function(t,e){var n=Zi(e,t);(0,B.__)(n,function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Lr(t){Pr(t),t.registerComponentModel(Ji),t.registerComponentView(Sr),mr(t)}const Or=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,U.C6)(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=(0,yn.G_)(Qi.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}(Qi);var Er=Ge.A,Rr="horizontal",Nr="vertical",zr=["line","bar","candlestick","scatter"],Br={easing:"cubicOut",duration:100,delay:0},Vr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return(0,U.C6)(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=(0,B.oI)(this._onBrush,this),this._onBrushEnd=(0,B.oI)(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),_n.N(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.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(){_n.IU(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 ve.A;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,i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o=this._orient===Rr?{right:r.width-i.x-i.width,top:r.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=z.vs(t.option);(0,B.__)(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=o[t])});var s=z.dV(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===Nr&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==Rr||r?n===Rr&&r?{scaleY:a?1:-1,scaleX:-1}:n!==Nr||r?{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,i=t.get("brushSelect");n.add(new Er({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new Er({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:(0,B.oI)(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=r.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var h,p=[0,e[1]],d=[0,e[0]],f=[[e[0],0],[0,0]],g=[],v=d[1]/(r.count()-1),y=0,m=Math.round(r.count()/e[0]);r.each([a],function(t,e){if(m>0&&e%m)y+=v;else{var n=null==t||isNaN(t)||""===t,i=n?0:(0,N.Cb)(t,u,p,!0);n&&!h&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(f.push([y,0]),g.push([y,0])),f.push([y,i]),g.push([y,i]),y+=v,h=n}}),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var _=this.dataZoomModel,x=0;x<3;x++){var b=w(1===x);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}}}function w(t){var e=_.getModel(t?"selectedDataBackground":"dataBackground"),n=new ve.A,i=new si.A({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Z.A({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis(function(r,o){var a=t.getAxisProxy(r,o).getTargetSeriesModels();(0,B.__)(a,function(t){if(!(n||!0!==e&&(0,B.qh)(zr,t.get("type"))<0)){var a,s=i.getComponent(ji(r),o).axis,l=function(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}(r),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=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 Er({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new Er({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)"}})),(0,B.__)([0,1],function(e){var o=a.get("handleIcon");!ge.$V[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=(0,ge.v5)(o,-1,0,2,2,null,!0);s.attr({cursor:Fr(this._orient),draggable:!0,drift:(0,B.oI)(this._onDragMove,this,e),ondragend:(0,B.oI)(this._onDragEnd,this),onmouseover:(0,B.oI)(this._showDataInfo,this,!0),onmouseout:(0,B.oI)(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=(0,N.lo)(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(),(0,$.iJ)(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[e]=s);var h=a.getModel("textStyle");t.add(i[e]=new Y.Ay({silent:!0,invisible:!0,style:(0,bt.VB)(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=(0,N.lo)(a.get("moveHandleSize"),o[1]),d=e.moveHandle=new Ge.A({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),f=.8*p,g=e.moveHandleIcon=(0,ge.v5)(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+p/2-.5,d.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(p,10));(h=e.moveZone=new Ge.A({invisible:!0,shape:{y:o[1]-v,height:p+v}})).on("mouseover",function(){s.enterEmphasis(d)}).on("mouseout",function(){s.leaveEmphasis(d)}),r.add(d),r.add(g),r.add(h)}h.attr({draggable:!0,cursor:Fr(this._orient),drift:(0,B.oI)(this._onDragMove,this,"all"),ondragstart:(0,B.oI)(this._showDataInfo,this,!0),ondragend:(0,B.oI)(this._onDragEnd,this),onmouseover:(0,B.oI)(this._showDataInfo,this,!0),onmouseout:(0,B.oI)(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[(0,N.Cb)(t[0],[0,100],e,!0),(0,N.Cb)(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];er(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?(0,N.Cb)(o.minSpan,a,r,!0):null,null!=o.maxSpan?(0,N.Cb)(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=(0,N.Y6)([(0,N.Cb)(i[0],r,a,!0),(0,N.Cb)(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=(0,N.Y6)(n.slice()),r=this._size;(0,B.__)([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[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,i[0],i[1],r[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new Ge.A,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=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=(0,N.Y6)(this._handleEnds.slice());function h(t){var e=_e.getTransform(n.handles[t].parent,this.group),a=_e.transformDirection(0===t?"right":"left",e),s=this._handleWidth/2+5,l=_e.applyTransform([c[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:r===Rr?"middle":a,align:r===Rr?a:"center",text:o[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=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(r,20));return(0,B.Tn)(i)?i(t,o):(0,B.Kg)(i)?i.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,i){this._dragging=!0,or.ds(i.event);var r=this._displayables.sliderGroup.getLocalTransform(),o=_e.applyTransform([e,n],r,!0),a=this._updateInterval(t,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&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 i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Q.A(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 i=this._getViewExtent(),r=[0,100];this._range=(0,N.Y6)([(0,N.Cb)(n.x,i,r,!0),(0,N.Cb)(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(or.ds(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new Er({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.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),r.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?Br:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=qi(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(tr);function Fr(t){return"vertical"===t?"ns-resize":"ew-resize"}const Hr=Vr;function Wr(t){t.registerComponentModel(Or),t.registerComponentView(Hr),Pr(t)}var Gr={get:function(t,e,n){var i=B.o8((Xr[t]||{})[e]);return n&&B.cy(i)?i[i.length-1]:i}},Xr={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]}};const Ur=Gr;var Yr=B.__,jr=B.Gv,Zr=-1,qr=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=B.o8(e);this.type=i,this.mappingMethod=n,this._normalizeData=oo[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?($r(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,B.__(e,function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)})}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(Yr(e,function(t,e){n[t]=e}),!B.cy(i)){var r=[];B.Gv(i)?Yr(i,function(t,e){var i=n[e];r[null!=i?i:Zr]=t}):r[-1]=i,i=ro(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):$r(r,!0):(B.vA("linear"!==n||r.dataExtent),$r(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return B.oI(this._normalizeData,this)},t.listVisualTypes=function(){return B.HP(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){B.Gv(t)?B.__(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=B.cy(e)?[]:B.Gv(e)?{}:(r=!0,null);return t.eachVisual(e,function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a}),o},t.retrieveVisuals=function(e){var n,i={};return e&&Yr(t.visualHandlers,function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)}),n?i:null},t.prepareVisualTypes=function(t){if(B.cy(t))t=t.slice();else{if(!jr(t))return[];var e=[];Yr(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 i,r=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||B.Kg(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(ao(c[1],t,u[1]))return o}else if(u[1]===1/0){if(ao(c[0],u[0],t))return o}else if(ao(c[0],u[0],t)&&ao(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:i;function h(e,n){var o=Math.abs(e-t);o<r&&(r=o,i=n)}},t.visualHandlers={color:{applyVisual:Jr("color"),getColorMapper:function(){var t=this.option;return B.oI("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),to.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=Ze.ad(e,t.parsedVisual,i),r?i:Ze.As(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Ze.As(Ze.ad(t,this.option.parsedVisual),"rgba")},category:to,piecewise:function(t,e){var n=io.call(this,e);return null==n&&(n=Ze.As(Ze.ad(t,this.option.parsedVisual),"rgba")),n},fixed:eo}},colorHue:Kr(function(t,e){return Ze.Yu(t,e)}),colorSaturation:Kr(function(t,e){return Ze.Yu(t,null,e)}),colorLightness:Kr(function(t,e){return Ze.Yu(t,null,null,e)}),colorAlpha:Kr(function(t,e){return Ze.hm(t,e)}),decal:{applyVisual:Jr("decal"),_normalizedToVisual:{linear:null,category:to,piecewise:null,fixed:null}},opacity:{applyVisual:Jr("opacity"),_normalizedToVisual:no([0,1])},liftZ:{applyVisual:Jr("liftZ"),_normalizedToVisual:{linear:eo,category:eo,piecewise:eo,fixed:eo}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:Qr,category:to,piecewise:function(t,e){var n=io.call(this,e);return null==n&&(n=Qr.call(this,t)),n},fixed:eo}},symbolSize:{applyVisual:Jr("symbolSize"),_normalizedToVisual:no([0,1])}},t}();function $r(t,e){var n=t.visual,i=[];B.Gv(n)?Yr(n,function(t){i.push(t)}):null!=n&&i.push(n);e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),ro(t,i)}function Kr(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:no([0,1])}}function Qr(t){var e=this.option.visual;return e[Math.round((0,N.Cb)(t,[0,1],[0,e.length-1],!0))]||{}}function Jr(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function to(t){var e=this.option.visual;return e[this.option.loop&&t!==Zr?t%e.length:t]}function eo(){return this.option.visual[0]}function no(t){return{linear:function(e){return(0,N.Cb)(e,t,this.option.visual,!0)},category:to,piecewise:function(e,n){var i=io.call(this,n);return null==i&&(i=(0,N.Cb)(e,t,this.option.visual,!0)),i},fixed:eo}}function io(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=n[qr.findPieceIndex(t,n)];if(i&&i.visual)return i.visual[this.type]}}function ro(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=B.Tj(e,function(t){var e=Ze.qg(t);return e||[0,0,0,1]})),e}var oo={linear:function(t){return(0,N.Cb)(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=qr.findPieceIndex(t,e,!0);if(null!=n)return(0,N.Cb)(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??Zr},fixed:B.lQ};function ao(t,e,n){return t?e<=n:e<n}const so=qr;var lo=n(1790),uo=B.__;function co(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function ho(t,e,n){var i={};return uo(e,function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);uo(t[e],function(t,i){if(so.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new so(r),"opacity"===i&&((r=B.o8(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new so(r))}})}),i}var po=so.mapVisual,fo=so.eachVisual,go=B.cy,vo=B.__,yo=N.Y6,mo=N.Cb,_o=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(0,U.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&function(t,e,n){var i;B.__(n,function(t){e.hasOwnProperty(t)&&co(e[t])&&(i=!0)}),i&&B.__(n,function(n){e.hasOwnProperty(n)&&co(e[n])?t[n]=B.o8(e[n]):delete t[n]})}(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=B.oI(t,this),this.controllerVisuals=ho(this.option.controller,e,t),this.targetVisuals=ho(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=kt.qB(t),e},e.prototype.eachTargetSeries=function(t,e){B.__(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)},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 i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],B.cy(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return B.Kg(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):B.Tn(s)?i?s(t[0],t[1]):s(t):i?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=yo([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,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);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},i=e.target||(e.target={}),r=e.controller||(e.controller={});B.h1(i,n),B.h1(r,n);var o=this.isCategory();function a(n){go(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},vo(i,function(t,e){if(so.isValidType(e)){var n=Ur.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}}))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";vo(this.stateList,function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&B.o8(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&B.o8(n)||(o?s[0]:[s[0],s[0]])),l.symbol=po(l.symbol,function(t){return"none"===t?r:t});var u=l.symbolSize;if(null!=u){var c=-1/0;fo(u,function(t){t>c&&(c=t)}),l.symbolSize=po(u,function(t){return mo(t,[0,c],[0,s[0]],!0)})}},this)}.call(this,r)},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}(di.A);const xo=_o;var bo=[20,140],wo=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,U.C6)(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]=bo[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=bo[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):B.cy(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),B.__(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=N.Y6((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 i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},e.prototype.getVisualMeta=function(t){var e=So(this,"outOfRange",this.getExtent()),n=So(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.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]&&r(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(e[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=(0,yn.G_)(xo.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}(xo);function So(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&r<n[1];a++)o.push(r),r+=i;return o.push(n[1]),o}const Io=wo;var Mo=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(0,U.C6)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=je.QX(e.get("padding")||0),i=t.getBoundingRect();t.add(new Ge.A({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.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 i=(n=n||{}).forceState,r=this.visualMapModel,o={};if("color"===e){var a=r.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var u=r.controllerVisuals[i||r.getValueState(t)],c=so.prepareVisualTypes(u);return B.__(c,function(i){var r=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=u.__alphaForOpacity),so.dependsOn(i,e)&&r&&r.applyVisual(t,s,l)}),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;z.m$(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(bi.A);const To=Mo;var Co=[["left","right","width"],["top","bottom","height"]];function Ao(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===i.orient?1:0,s=Co[a],l=[0,null,10],u={},c=0;c<3;c++)u[Co[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][a],p=(0,z.dV)(u,o,i.padding);return s[(p.margin[h[2]]||0)+p[h[0]]+.5*p[h[1]]<.5*o[h[1]]?0:1]}function Do(t,e){return B.__(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var ko=n(4772),Po=N.Cb,Lo=B.__,Oo=Math.min,Eo=Math.max;function Ro(t,e,n,i){return new si.A({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){or.ds(t.event)},ondragend:i})}function No(t){var e=t.get("hoverLinkOnHandle");return!!(e??t.get("realtime"))}function zo(t){return"vertical"===t?"ns-resize":"ew-resize"}const Bo=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(0,U.C6)(e,t),e.prototype.doRender=function(t,e,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.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 i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.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 Y.Ay({style:(0,bt.VB)(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,r=this._orient,o=this._useHandle,a=Ao(e,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new ve.A;s.add(l),l.add(n.outOfRange=Ro()),l.add(n.inRange=Ro(null,o?zo(this._orient):null,B.oI(this._dragHandle,this,"all",!1),B.oI(this._dragHandle,this,"all",!0))),l.setClipPath(new Ge.A({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=Eo(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,i,c,r),this._createHandle(e,s,1,i,c,r)),this._createIndicator(e,s,i,c,r),t.add(s)},e.prototype._createHandle=function(t,e,n,i,r,o){var a=B.oI(this._dragHandle,this,n,!1),s=B.oI(this._dragHandle,this,n,!0),l=(0,wt.lo)(t.get("handleSize"),i[0]),u=(0,ge.v5)(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=zo(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){or.ds(t.event)}}),u.x=i[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(),(0,$.ix)(u,!0),e.add(u);var h=this.visualMapModel.textStyleModel,p=new Y.Ay({cursor:c,draggable:!0,drift:a,onmousemove:function(t){or.ds(t.event)},ondragend:s,style:(0,bt.VB)(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=d,f.handleLabels[n]=p},e.prototype._createIndicator=function(t,e,n,i,r){var o=(0,wt.lo)(t.get("indicatorSize"),n[0]),a=(0,ge.v5)(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 we.Ay){var l=a.style;a.useStyle(B.X$({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 Y.Ay({silent:!0,invisible:!0,style:(0,bt.VB)(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===r?i/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,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,r[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():No(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Po(e[0],n,i,!0),Po(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];er(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[Po(i[0],r,o,!0),Po(i[1],r,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),a=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new Le.A(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;r<100;r++){var o=t[0]+i*r;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/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 ve.A("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,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();Lo([0,1],function(l){var u=r[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=Po(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=_e.applyTransform(n.handleLabelPoints[l],_e.getTransform(u,this.group));o[l].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.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=Po(t,o,s,!0),d=a[0]-h/2,f={x:u.x,y:u.y};u.y=p,u.x=d;var g=_e.applyTransform(l.indicatorLabelPoint,_e.getTransform(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),m="horizontal"===this._orient;v.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:m?y:"middle",align:m?"center":y});var _={x:d,y:p,style:{fill:c}},x={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(_,b),v.animateTo(x,b)}else u.attr(_),v.attr(x);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this._api.enterBlur(w[S])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=Oo(Eo(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[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,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=Oo(Eo(r[0],t),r[1]);var a=function(t,e,n){var i=6,r=t.get("hoverLinkDataSize");r&&(i=Po(r,e,n,!0)/2);return i}(n,o,r),s=[t-a,t+a],l=Po(t,r,o,!0),u=[Po(s[0],r,o,!0),Po(s[1],r,o,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||No(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var p=kt.D6(c,h);this._dispatchHighDown("downplay",Do(p[0],n)),this._dispatchHighDown("highlight",Do(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if((0,ko.R)(t.target,function(t){var n=(0,$t.z)(t);if(null!=n.dataIndex)return e=n,!0},!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(e.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),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",Do(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,i){var r=_e.getTransform(e,i?null:this.group);return B.cy(t)?_e.applyTransform(t,r,n):_e.transformDirection(t,r,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}(To);var Vo={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Fo=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})},Ho=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",function(e){var i,r,o,a,s,l=t.pipelineContext;!e.isTargetSeries(t)||l&&l.large||n.push((i=e.stateList,r=e.targetVisuals,o=B.oI(e.getValueState,e),a=e.getDataDimensionIndex(t.getData()),s={},B.__(i,function(t){var e=so.prepareVisualTypes(r[t]);s[t]=e}),{progress:function(t,e){var n,i;function l(t){return(0,lo.Ez)(e,i,t)}function u(t,n){(0,lo.oZ)(e,i,t,n)}null!=a&&(n=e.getDimensionIndex(a));for(var c=e.getStore();null!=(i=t.next());){var h=e.getRawDataItem(i);if(!h||!1!==h.visualMap)for(var p=null!=a?c.get(n,i):i,d=o(p),f=r[d],g=s[d],v=0,y=g.length;v<y;v++){var m=g[v];f[m]&&f[m].applyVisual(p,l,u)}}}}))}),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(B.oI(Wo,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}}),t.getData().setVisual("visualMeta",i)}}];function Wo(t,e,n,i){for(var r=e.targetVisuals[i],o=so.prepareVisualTypes(r),a={color:(0,lo.rI)(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=r["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 Go=B.__;function Xo(t){var e=t&&t.visualMap;B.cy(e)||(e=e?[e]:[]),Go(e,function(t){if(t){Uo(t,"splitList")&&!Uo(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&B.cy(e)&&Go(e,function(t){B.Gv(t)&&(Uo(t,"start")&&!Uo(t,"min")&&(t.min=t.start),Uo(t,"end")&&!Uo(t,"max")&&(t.max=t.end))})}})}function Uo(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var Yo=!1;function jo(t){Yo||(Yo=!0,t.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),t.registerAction(Vo,Fo),(0,B.__)(Ho,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(Xo))}function Zo(t){t.registerComponentModel(Io),t.registerComponentView(Bo),jo(t)}var qo=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return(0,U.C6)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],$o[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=B.o8(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=B.Tj(this._pieceList,function(t){return t=B.o8(t),"inRange"!==e&&(t.visual=null),t}))})},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=so.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}B.__(e.pieces,function(t){B.__(i,function(e){t.hasOwnProperty(e)&&(n[e]=1)})}),B.__(n,function(t,n){var i=!1;B.__(this.stateList,function(t){i=i||o(e,t,n)||o(e.target,t,n)},this),!i&&B.__(this.stateList,function(t){(e[t]||(e[t]={}))[n]=Ur.get(n,"inRange"===t?"active":"inactive",r)})},this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,B.__(i,function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)},this),"single"===n.selectedMode){var o=!1;B.__(i,function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[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=B.o8(t)},e.prototype.getValueState=function(t){var e=so.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries(function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(e,i){so.findPieceIndex(e,n)===t&&r.push(i)},this),e.push({seriesId:i.id,dataIndex:r})},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=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return B.__(r,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(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=(0,yn.G_)(xo.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}(xo),$o={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),(0,N.sL)(t),B.__(t,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(t){var e=this.option;B.__(e.categories,function(e){t.push({text:this.formatValueText(e,!0),value:e})},this),Ko(e,t)},pieces:function(t){var e=this.option;B.__(e.pieces,function(e,n){B.Gv(e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.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]&&(i.value=o[0])}i.visual=so.retrieveVisuals(e),t.push(i)},this),Ko(e,t),(0,N.sL)(t),B.__(t,function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};function Ko(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}const Qo=qo;const Jo=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,U.C6)(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=B.Je(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),B.__(l.viewPieceList,function(i){var l=i.piece,u=new ve.A;u.onclick=B.oI(this._onItemClick,this,l),this._enableHoverLink(u,i.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 Y.Ay({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===p?.5:1}}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,c,a),z.aP(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 i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:Do(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return Ao(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new ve.A,a=this.visualMapModel.textStyleModel;o.add(new Y.Ay({style:(0,bt.VB)(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=B.Tj(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add((0,ge.v5)(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,i=n.selectedMode;if(i){var r=B.o8(n.selected),o=e.getSelectedMapKey(t);"single"===i||!0===i?(r[o]=!0,B.__(r,function(t,e){r[e]=e===o})):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(To);function ta(t){t.registerComponentModel(Qo),t.registerComponentView(Jo),jo(t)}var ea=n(8001),na=function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};E.Y(ea.a);var ia=[function(t){t.registerChartView(Mt),t.registerSeriesModel(le),(0,R.I)("pie",t.registerAction),t.registerLayout((0,B.cF)(G,"pie")),t.registerProcessor(X("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf(function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!((0,B.Et)(i)&&!isNaN(i)&&i<0)})}})},function(t){t.registerChartView(ln),t.registerSeriesModel(me),t.registerLayout(cn("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,dn("line"))},function(t){t.registerChartView(Gn),t.registerSeriesModel(mn),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,B.cF(fn.Zp,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,fn.KF)("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dn("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(Zn),t.registerSeriesModel(qn)},function(t){(0,E.Y)(ni.a),t.registerSeriesModel($n),t.registerChartView(ei),t.registerLayout(cn("scatter"))},function(t){(0,E.Y)(ki),t.registerChartView(li),t.registerSeriesModel(ci),t.registerLayout(ii),t.registerProcessor(X("radar")),t.registerPreprocessor(ai)},function(t){t.registerChartView(Ei),t.registerSeriesModel(Ri)},function(t){t.registerChartView(Bi),t.registerSeriesModel(Vi),t.registerLayout(Fi),t.registerProcessor(X("funnel"))}],ra=[Hi.a,Wi.a,Gi.a,Xi.a,function(t){(0,E.Y)(Lr),(0,E.Y)(Wr)},function(t){(0,E.Y)(Zo),(0,E.Y)(ta)}];E.Y(na(na([],ia,!0),ra,!0));var oa,aa=n(4063),sa=n(9999),la=(n(6085),n(3280),n(3382),(oa={})[o.H5]={name:"H5"},oa[o.WEAPP]={name:"Wechat",requireComponent:!0},oa[o.ALIPAY]={name:"Alipay",requireComponent:!0},oa[o.SWAN]={name:"Baidu",requireComponent:!0},oa[o.TT]={name:"ByteDance",requireComponent:!0},oa[o.QQ]={name:"QQ",requireComponent:!0},oa[o.JD]={name:"JD",requireComponent:!0},oa[o.DD]={name:"DingTalk",requireComponent:!0},oa[o.QYWX]={name:"QiyeWechat"},oa[o.LARK]={name:"Lark"},oa[o.HARMONY]={name:"HarmonyOS",requireComponent:!0},oa);function ua(){if("undefined"==typeof window)return o.H5;for(var t=[{test:function(){var t,e;return"wx"in window&&(null===(t=window.wx)||void 0===t?void 0:t.getSystemInfoSync)&&!(null===(e=window.wx)||void 0===e?void 0:e.qy)},platform:o.WEAPP},{test:function(){var t;return"my"in window&&(null===(t=window.my)||void 0===t?void 0:t.getSystemInfoSync)},platform:o.ALIPAY},{test:function(){var t;return"swan"in window&&(null===(t=window.swan)||void 0===t?void 0:t.getSystemInfoSync)},platform:o.SWAN},{test:function(){var t;return"tt"in window&&(null===(t=window.tt)||void 0===t?void 0:t.getSystemInfoSync)},platform:o.TT},{test:function(){var t;return"qq"in window&&(null===(t=window.qq)||void 0===t?void 0:t.getSystemInfoSync)},platform:o.QQ},{test:function(){var t;return"jd"in window&&(null===(t=window.jd)||void 0===t?void 0:t.getSystemInfoSync)},platform:o.JD},{test:function(){var t;return"dd"in window&&(null===(t=window.dd)||void 0===t?void 0:t.getSystemInfoSync)},platform:o.DD},{test:function(){var t;return"wx"in window&&(null===(t=window.wx)||void 0===t?void 0:t.qy)},platform:o.QYWX},{test:function(){var t,e;return"tt"in window&&"lark"===(null===(e=null===(t=window.tt)||void 0===t?void 0:t.env)||void 0===e?void 0:e.appName)},platform:o.LARK},{test:function(){return navigator.userAgent.includes("HarmonyOS")},platform:o.HARMONY}],e=0,n=t;e<n.length;e++){var i=n[e];if(i.test())return i.platform}return o.H5}function ca(){var t;return"undefined"!=typeof window&&"undefined"!=typeof document?"h5":void 0!==n.g&&(null===(t=null===n.g||void 0===n.g?void 0:n.g.wx)||void 0===t?void 0:t.getSystemInfoSync)?"weapp":"unknown"}function ha(t){var e=ua(),i=la[e];null==i||i.requireComponent;try{return function(t,e){var i;return((i={})[o.H5]=function(){return n(4063).A.create(e)},i[o.WEAPP]=function(){return n(9999).A.create(e)},i[o.SWAN]=function(){return n(6085).A.create(e)},i[o.TT]=function(){return n(3280).A.create(e)},i[o.HARMONY]=function(){return n(3382).A.create(e)},i[o.ALIPAY]=function(){return n(4063).A.create(e)},i[o.QQ]=function(){return n(4063).A.create(e)},i[o.JD]=function(){return n(4063).A.create(e)},i[o.DD]=function(){return n(4063).A.create(e)},i[o.QYWX]=function(){return n(4063).A.create(e)},i[o.LARK]=function(){return n(4063).A.create(e)},i)[t]()}(e,t)}catch(e){return n(4063).A.create(t)}}n(4063).A,n(9999).A,n(6085).A,n(3280).A,n(3382).A;var pa,da={};function fa(t){return da[t]}!function(t){t.PANEL_SHOW="debugPanelShow",t.PANEL_HIDE="debugPanelHide",t.TAB_CHANGE="debugPanelTabChange",t.INFO_UPDATE="debugPanelInfoUpdate"}(pa||(pa={}));var ga=function(){return ga=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},ga.apply(this,arguments)},va=function(t){var e=t.debugInfo,n=t.options,i=void 0===n?{}:n,r=t.onEvent,o=(0,s.useState)(i.autoExpand||!1),a=o[0],u=o[1],c=(0,s.useState)(i.defaultTab||"instance"),h=c[0],p=c[1],d=(0,s.useRef)(null),f=i.position,g=void 0===f?"bottom-right":f,v=i.width,y=void 0===v?400:v,m=i.height,_=void 0===m?300:m,x=function(t){p(t),null==r||r({type:pa.TAB_CHANGE,data:{tab:t}})},b=function(){var t=e.instance;return l().createElement("div",{style:ya.debugPanelContent},l().createElement("h3",{style:ya.h3},"图表实例信息"),l().createElement("div",{style:ya.debugInfoGrid},l().createElement("div",{style:ya.debugInfoItem},l().createElement("span",{style:ya.debugInfoLabel},"ID:"),l().createElement("span",{style:ya.debugInfoValue},(null==t?void 0:t.id)||"N/A")),l().createElement("div",{style:ya.debugInfoItem},l().createElement("span",{style:ya.debugInfoLabel},"类型:"),l().createElement("span",{style:ya.debugInfoValue},(null==t?void 0:t.type)||"N/A")),l().createElement("div",{style:ya.debugInfoItem},l().createElement("span",{style:ya.debugInfoLabel},"版本:"),l().createElement("span",{style:ya.debugInfoValue},(null==t?void 0:t.version)||"N/A")),l().createElement("div",{style:ya.debugInfoItem},l().createElement("span",{style:ya.debugInfoLabel},"渲染器:"),l().createElement("span",{style:ya.debugInfoValue},(null==t?void 0:t.renderer)||"N/A")),l().createElement("div",{style:ya.debugInfoItem},l().createElement("span",{style:ya.debugInfoLabel},"宽度:"),l().createElement("span",{style:ya.debugInfoValue},(null==t?void 0:t.width)||"N/A","px")),l().createElement("div",{style:ya.debugInfoItem},l().createElement("span",{style:ya.debugInfoLabel},"高度:"),l().createElement("span",{style:ya.debugInfoValue},(null==t?void 0:t.height)||"N/A","px")),l().createElement("div",{style:ya.debugInfoItem},l().createElement("span",{style:ya.debugInfoLabel},"平台:"),l().createElement("span",{style:ya.debugInfoValue},(null==t?void 0:t.platform)||"N/A"))))},w=function(){var t=e.config;return l().createElement("div",{style:ya.debugPanelContent},l().createElement("h3",{style:ya.h3},"配置信息"),l().createElement("div",{style:ya.debugConfig},l().createElement("pre",{style:ya.pre},JSON.stringify(t,null,2))))},S=function(){var t,n,i=e.data;return l().createElement("div",{style:ya.debugPanelContent},l().createElement("h3",{style:ya.h3},"数据信息"),l().createElement("div",{style:ya.debugInfoGrid},l().createElement("div",{style:ya.debugInfoItem},l().createElement("span",{style:ya.debugInfoLabel},"系列数量:"),l().createElement("span",{style:ya.debugInfoValue},(null===(t=null==i?void 0:i.series)||void 0===t?void 0:t.length)||0)),l().createElement("div",{style:ya.debugInfoItem},l().createElement("span",{style:ya.debugInfoLabel},"总数据量:"),l().createElement("span",{style:ya.debugInfoValue},(null==i?void 0:i.totalDataCount)||0)),l().createElement("div",{style:ya.debugInfoItem},l().createElement("span",{style:ya.debugInfoLabel},"当前数据量:"),l().createElement("span",{style:ya.debugInfoValue},(null==i?void 0:i.currentDataCount)||0))),l().createElement("div",{style:ya.debugDataSeries},l().createElement("h4",{style:ya.h4},"系列数据"),null===(n=null==i?void 0:i.series)||void 0===n?void 0:n.map(function(t,e){var n,i;return l().createElement("div",{key:e,style:ya.debugDataSeriesItem},l().createElement("h5",{style:ya.h5},"系列 ",e+1,": ",t.name||"未命名"),l().createElement("pre",{style:ya.pre},JSON.stringify(null===(n=t.data)||void 0===n?void 0:n.slice(0,5),null,2),"..."),l().createElement("div",{style:ya.debugSeriesInfo},l().createElement("span",null,"数据量: ",(null===(i=t.data)||void 0===i?void 0:i.length)||0)))})))},I=function(){var t=e.performance;return l().createElement("div",{style:ya.debugPanelContent},l().createElement("h3",{style:ya.h3},"性能信息"),l().createElement("div",{style:ya.debugInfoGrid},l().createElement("div",{style:ya.debugInfoItem},l().createElement("span",{style:ya.debugInfoLabel},"初始化时间:"),l().createElement("span",{style:ya.debugInfoValue},(null==t?void 0:t.initTime)||0,"ms")),l().createElement("div",{style:ya.debugInfoItem},l().createElement("span",{style:ya.debugInfoLabel},"渲染时间:"),l().createElement("span",{style:ya.debugInfoValue},(null==t?void 0:t.renderTime)||0,"ms")),l().createElement("div",{style:ya.debugInfoItem},l().createElement("span",{style:ya.debugInfoLabel},"更新时间:"),l().createElement("span",{style:ya.debugInfoValue},(null==t?void 0:t.updateTime)||0,"ms")),l().createElement("div",{style:ya.debugInfoItem},l().createElement("span",{style:ya.debugInfoLabel},"数据大小:"),l().createElement("span",{style:ya.debugInfoValue},(null==t?void 0:t.dataSize)||0," bytes")),l().createElement("div",{style:ya.debugInfoItem},l().createElement("span",{style:ya.debugInfoLabel},"帧率:"),l().createElement("span",{style:ya.debugInfoValue},(null==t?void 0:t.frameRate)||0," FPS"))),l().createElement("div",{style:ya.debugPerformanceChart}))},M=function(){var t=e.events;return l().createElement("div",{style:ya.debugPanelContent},l().createElement("h3",{style:ya.h3},"事件信息"),l().createElement("div",{style:ya.debugEventsList},null==t?void 0:t.slice().reverse().map(function(t,e){return l().createElement("div",{key:e,style:ya.debugEventItem},l().createElement("div",{style:ya.debugEventHeader},l().createElement("span",{style:ya.debugEventType},t.type),l().createElement("span",{style:ya.debugEventTime},new Date(t.timestamp).toLocaleTimeString())),l().createElement("div",{style:ya.debugEventParams},l().createElement("pre",{style:ya.pre},JSON.stringify(t.params,null,2))))}),(!t||0===t.length)&&l().createElement("div",{style:ya.debugEmptyState},"暂无事件记录")))},T=function(){var t=e.errors;return l().createElement("div",{style:ya.debugPanelContent},l().createElement("h3",{style:ya.h3},"错误信息"),l().createElement("div",{style:ya.debugErrorsList},null==t?void 0:t.slice().reverse().map(function(t,e){return l().createElement("div",{key:e,style:ya.debugErrorItem},l().createElement("div",{style:ya.debugErrorHeader},l().createElement("span",{style:ya.debugErrorType},t.type),l().createElement("span",{style:ya.debugErrorTime},new Date(t.timestamp).toLocaleTimeString())),l().createElement("div",{style:ya.debugErrorMessage},t.message),t.stack&&l().createElement("div",{style:ya.debugErrorStack},l().createElement("pre",{style:ya.pre},t.stack)))}),(!t||0===t.length)&&l().createElement("div",{style:ya.debugEmptyState},"暂无错误记录")))},C=function(){return l().createElement("div",{style:ya.debugPanelContent},l().createElement("h3",{style:ya.h3},"调试工具"),l().createElement("div",{style:ya.debugToolsGrid},l().createElement("button",{style:ya.debugToolButton},"导出配置"),l().createElement("button",{style:ya.debugToolButton},"导出数据"),l().createElement("button",{style:ya.debugToolButton},"刷新图表"),l().createElement("button",{style:ya.debugToolButton},"清空数据"),l().createElement("button",{style:ya.debugToolButton},"性能分析"),l().createElement("button",{style:ya.debugToolButton},"重置图表")))},A=ga(ga(ga(ga(ga(ga({position:"fixed",zIndex:9999,backgroundColor:"rgba(255, 255, 255, 0.95)",border:"1px solid #e0e0e0",borderRadius:"4px",boxShadow:"0 2px 12px 0 rgba(0, 0, 0, 0.1)",fontFamily:"monospace",fontSize:"12px",overflow:"hidden"},"top-left"===g&&{top:"10px",left:"10px"}),"top-right"===g&&{top:"10px",right:"10px"}),"bottom-left"===g&&{bottom:"10px",left:"10px"}),"bottom-right"===g&&{bottom:"10px",right:"10px"}),a&&{width:y,height:_}),ya.tarovizDebugPanel);return l().createElement("div",{ref:d,style:A},l().createElement("div",{style:ya.debugPanelHeader},l().createElement("div",{style:ya.debugPanelTitle},l().createElement("span",{style:ya.debugPanelLogo},"🐛"),l().createElement("span",null,"TaroViz Debug Panel")),l().createElement("button",{style:ya.debugPanelToggle,onClick:function(){var t=!a;u(t),null==r||r({type:t?pa.PANEL_SHOW:pa.PANEL_HIDE})},title:a?"收起":"展开"},a?"▼":"▶")),a&&l().createElement(l().Fragment,null,l().createElement("div",{style:ya.debugPanelTabs},l().createElement("button",{style:ga(ga({},ya.debugTab),"instance"===h&&ya.debugTabActive),onClick:function(){return x("instance")},title:"实例信息"},"实例"),l().createElement("button",{style:ga(ga({},ya.debugTab),"config"===h&&ya.debugTabActive),onClick:function(){return x("config")},title:"配置信息"},"配置"),l().createElement("button",{style:ga(ga({},ya.debugTab),"data"===h&&ya.debugTabActive),onClick:function(){return x("data")},title:"数据信息"},"数据"),l().createElement("button",{style:ga(ga({},ya.debugTab),"performance"===h&&ya.debugTabActive),onClick:function(){return x("performance")},title:"性能信息"},"性能"),l().createElement("button",{style:ga(ga({},ya.debugTab),"events"===h&&ya.debugTabActive),onClick:function(){return x("events")},title:"事件信息"},"事件"),l().createElement("button",{style:ga(ga({},ya.debugTab),"errors"===h&&ya.debugTabActive),onClick:function(){return x("errors")},title:"错误信息"},"错误"),l().createElement("button",{style:ga(ga({},ya.debugTab),"tools"===h&&ya.debugTabActive),onClick:function(){return x("tools")},title:"调试工具"},"工具")),l().createElement("div",{style:ya.debugPanelBody},function(){switch(h){case"instance":return b();case"config":return w();case"data":return S();case"performance":return I();case"events":return M();case"errors":return T();case"tools":return C();default:return l().createElement("div",null,"未知标签页")}}())))},ya={tarovizDebugPanel:{transition:"all 0.3s ease"},debugPanelHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 12px",backgroundColor:"#f5f5f5",borderBottom:"1px solid #e0e0e0",cursor:"pointer"},debugPanelTitle:{display:"flex",alignItems:"center",gap:"8px",fontWeight:"bold",color:"#333"},debugPanelLogo:{fontSize:"14px"},debugPanelToggle:{background:"none",border:"none",fontSize:"12px",cursor:"pointer",color:"#666",padding:"4px"},debugPanelTabs:{display:"flex",borderBottom:"1px solid #e0e0e0",overflowX:"auto",whiteSpace:"nowrap"},debugTab:{padding:"8px 12px",background:"none",border:"none",borderBottom:"2px solid transparent",cursor:"pointer",fontSize:"12px",color:"#666",transition:"all 0.2s ease"},debugTabActive:{color:"#1890ff",borderBottomColor:"#1890ff",fontWeight:"bold"},debugPanelBody:{height:"calc(100% - 70px)",overflow:"auto"},debugPanelContent:{padding:"12px"},h3:{margin:"0 0 12px 0",fontSize:"14px",color:"#333"},h4:{margin:"12px 0 8px 0",fontSize:"13px",color:"#666"},h5:{margin:"8px 0 4px 0",fontSize:"12px",color:"#666"},debugInfoGrid:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"8px",marginBottom:"12px"},debugInfoItem:{display:"flex",justifyContent:"space-between",padding:"4px 8px",backgroundColor:"#f9f9f9",borderRadius:"4px"},debugInfoLabel:{fontWeight:"bold",color:"#666"},debugInfoValue:{color:"#333"},debugConfig:{backgroundColor:"#f5f5f5",padding:"8px",borderRadius:"4px",overflow:"auto",maxHeight:"200px"},pre:{margin:"0",fontSize:"11px",overflow:"auto"},debugDataSeries:{marginTop:"12px"},debugDataSeriesItem:{marginBottom:"12px",padding:"8px",backgroundColor:"#f9f9f9",borderRadius:"4px"},debugSeriesInfo:{marginTop:"4px",fontSize:"11px",color:"#666"},debugPerformanceChart:{marginTop:"12px",height:"120px",backgroundColor:"#f9f9f9",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:"#999"},debugEventsList:{maxHeight:"200px",overflow:"auto"},debugEventItem:{marginBottom:"8px",padding:"8px",backgroundColor:"#f9f9f9",borderRadius:"4px"},debugEventHeader:{display:"flex",justifyContent:"space-between",marginBottom:"4px"},debugEventType:{fontWeight:"bold",color:"#333"},debugEventTime:{fontSize:"10px",color:"#999"},debugEventParams:{fontSize:"11px",overflow:"auto",maxHeight:"80px"},debugErrorsList:{maxHeight:"200px",overflow:"auto"},debugErrorItem:{marginBottom:"8px",padding:"8px",backgroundColor:"#fff1f0",border:"1px solid #ffccc7",borderRadius:"4px"},debugErrorHeader:{display:"flex",justifyContent:"space-between",marginBottom:"4px"},debugErrorType:{fontWeight:"bold",color:"#f5222d"},debugErrorTime:{fontSize:"10px",color:"#999"},debugErrorMessage:{color:"#f5222d",marginBottom:"4px"},debugErrorStack:{fontSize:"10px",maxHeight:"100px",overflow:"auto"},debugToolsGrid:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"8px"},debugToolButton:{padding:"8px 12px",backgroundColor:"#f0f0f0",border:"1px solid #e0e0e0",borderRadius:"4px",cursor:"pointer",fontSize:"12px",transition:"all 0.2s ease"},debugEmptyState:{textAlign:"center",color:"#999",padding:"16px"}};var ma,_a=function(){return _a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},_a.apply(this,arguments)},xa=function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},ba=function(){function t(){this.debugInfo={},this.isEnabled=!1,this.eventHandlers=new Map,this.maxEvents=100,this.maxErrors=50,this.debugInfo={instance:{},config:{},data:{series:[],totalDataCount:0,currentDataCount:0},performance:{},events:[],errors:[]}}return t.getInstance=function(){return t.instance||(t.instance=new t),t.instance},t.prototype.init=function(){this.isEnabled=!0},t.prototype.enable=function(){this.isEnabled=!0},t.prototype.disable=function(){this.isEnabled=!1},t.prototype.getStatus=function(){return this.isEnabled},t.prototype.getDebugInfo=function(){return this.debugInfo},t.prototype.updateDebugInfo=function(t){this.isEnabled&&(this.debugInfo=_a(_a({},this.debugInfo),t),this.emitEvent(pa.INFO_UPDATE,{info:t}))},t.prototype.updateInstanceInfo=function(t){this.updateDebugInfo({instance:t})},t.prototype.updateConfig=function(t){this.updateDebugInfo({config:t})},t.prototype.updateData=function(t){this.updateDebugInfo({data:t})},t.prototype.updatePerformance=function(t){this.updateDebugInfo({performance:t})},t.prototype.addEvent=function(t,e){if(this.isEnabled){var n={type:t,timestamp:Date.now(),params:e};this.debugInfo.events&&this.debugInfo.events.length>=this.maxEvents&&this.debugInfo.events.shift(),this.debugInfo.events=xa(xa([],this.debugInfo.events||[],!0),[n],!1),this.emitEvent(pa.INFO_UPDATE,{info:this.debugInfo})}},t.prototype.addError=function(t,e,n){if(this.isEnabled){var i={type:t,message:e,stack:n,timestamp:Date.now()};this.debugInfo.errors&&this.debugInfo.errors.length>=this.maxErrors&&this.debugInfo.errors.shift(),this.debugInfo.errors=xa(xa([],this.debugInfo.errors||[],!0),[i],!1),this.emitEvent(pa.INFO_UPDATE,{info:this.debugInfo})}},t.prototype.clear=function(){this.debugInfo={instance:{},config:{},data:{series:[],totalDataCount:0,currentDataCount:0},performance:{},events:[],errors:[]},this.emitEvent(pa.INFO_UPDATE,{info:this.debugInfo})},t.prototype.on=function(t,e){var n;this.eventHandlers.has(t)||this.eventHandlers.set(t,new Set),null===(n=this.eventHandlers.get(t))||void 0===n||n.add(e)},t.prototype.off=function(t,e){var n;e?null===(n=this.eventHandlers.get(t))||void 0===n||n.delete(e):this.eventHandlers.delete(t)},t.prototype.emitEvent=function(t,e){var n=this.eventHandlers.get(t);n&&n.forEach(function(t){try{t(e)}catch(t){}})},t.prototype.setMaxEvents=function(t){this.maxEvents=t},t.prototype.setMaxErrors=function(t){this.maxErrors=t},t}(),wa=ba.getInstance();!function(t){t.MONITORING_START="performanceMonitoringStart",t.MONITORING_END="performanceMonitoringEnd",t.METRIC_UPDATE="performanceMetricUpdate",t.ANALYSIS_COMPLETE="performanceAnalysisComplete"}(ma||(ma={}));var Sa=function(){return Sa=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Sa.apply(this,arguments)},Ia=function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},Ma=function(){function t(t){void 0===t&&(t={});var e,n=this;this.metrics=new Map,this.eventHandlers=new Map,this.isMonitoring=!1,this.startTime=0,this.sampleIntervalId=null,this.frameRateHistory=[],this.lastFrameTime=0,this.config=Sa({enabled:!0,metrics:["initTime","renderTime","updateTime","dataSize","frameRate"],sampleInterval:1e3,maxSamples:100,realTime:!0,autoStart:!1},t),null===(e=this.config.metrics)||void 0===e||e.forEach(function(t){n.metrics.set(t,[])}),this.config.autoStart&&this.start()}return t.getInstance=function(e){return t.instance||(t.instance=new t(e)),t.instance},t.resetInstance=function(){t.instance&&(t.instance.stop(),t.instance=null)},t.prototype.on=function(t,e){var n;this.eventHandlers.has(t)||this.eventHandlers.set(t,[]),null===(n=this.eventHandlers.get(t))||void 0===n||n.push(e)},t.prototype.off=function(t,e){var n=this.eventHandlers.get(t);if(n){var i=n.indexOf(e);i>-1&&n.splice(i,1)}},t.prototype.emit=function(t,e){var n=this.eventHandlers.get(t);null==n||n.forEach(function(n){try{n({type:t,data:e})}catch(t){}})},t.prototype.start=function(){var t=this;!this.isMonitoring&&this.config.enabled&&(this.isMonitoring=!0,this.startTime=Date.now(),this.lastFrameTime=performance.now(),this.config.sampleInterval&&this.config.realTime&&(this.sampleIntervalId=setInterval(function(){t.sampleMetrics()},this.config.sampleInterval)),this.startFrameRateMonitoring(),this.emit(ma.MONITORING_START))},t.prototype.stop=function(){this.isMonitoring&&(this.isMonitoring=!1,this.sampleIntervalId&&(clearInterval(this.sampleIntervalId),this.sampleIntervalId=null),this.stopFrameRateMonitoring(),this.emit(ma.MONITORING_END))},t.prototype.startFrameRateMonitoring=function(){var t=this,e=function(){if(t.isMonitoring){var n=performance.now(),i=n-t.lastFrameTime,r=i>0?Math.round(1e3/i):0;t.frameRateHistory.push(r),t.frameRateHistory.length>60&&t.frameRateHistory.shift(),t.lastFrameTime=n,requestAnimationFrame(e)}};requestAnimationFrame(e)},t.prototype.stopFrameRateMonitoring=function(){this.frameRateHistory=[]},t.prototype.sampleMetrics=function(){var t,e;if(this.isMonitoring){if((null===(t=this.config.metrics)||void 0===t?void 0:t.includes("frameRate"))&&this.frameRateHistory.length>0){var n=this.frameRateHistory.reduce(function(t,e){return t+e},0)/this.frameRateHistory.length;this.recordMetric("frameRate",n,"FPS")}if((null===(e=this.config.metrics)||void 0===e?void 0:e.includes("memoryUsage"))&&void 0!==performance.memory){var i=(performance.memory.usedJSHeapSize/1048576).toFixed(2);this.recordMetric("memoryUsage",parseFloat(i),"MB")}}},t.prototype.recordMetric=function(t,e,n,i){var r;if(this.config.enabled&&(null===(r=this.config.metrics)||void 0===r?void 0:r.includes(t))){var o={type:t,value:e,unit:n,timestamp:Date.now(),description:i},a=this.metrics.get(t)||[];a.push(o),this.config.maxSamples&&a.length>this.config.maxSamples&&a.shift(),this.metrics.set(t,a),this.emit(ma.METRIC_UPDATE,o)}},t.prototype.recordInitTime=function(t){this.recordMetric("initTime",t,"ms","图表初始化耗时")},t.prototype.recordRenderTime=function(t){this.recordMetric("renderTime",t,"ms","图表渲染耗时")},t.prototype.recordUpdateTime=function(t){this.recordMetric("updateTime",t,"ms","图表更新耗时")},t.prototype.recordDataSize=function(t){try{var e=new Blob([JSON.stringify(t)]).size/1024;this.recordMetric("dataSize",e,"KB","图表数据大小")}catch(t){}},t.prototype.analyze=function(){var t={},e={},n={},i={},r=0,o=100,a=[];this.metrics.forEach(function(o,a){if(0!==o.length){r+=o.length,i[a]=Ia([],o,!0);var s=o.reduce(function(t,e){return t+e.value},0);t[a]=parseFloat((s/o.length).toFixed(2)),e[a]=Math.max.apply(Math,o.map(function(t){return t.value})),n[a]=Math.min.apply(Math,o.map(function(t){return t.value}))}}),t.renderTime>100&&(o-=20,a.push("渲染时间过长,建议优化数据处理或减少图表复杂度")),t.updateTime>50&&(o-=15,a.push("更新时间过长,建议优化数据更新逻辑")),t.frameRate<30&&(o-=25,a.push("帧率过低,建议减少动画效果或优化渲染逻辑")),t.dataSize>100&&(o-=10,a.push("数据量过大,建议进行数据压缩或分页处理")),o=Math.max(0,Math.min(100,o));var s={averages:t,maxValues:e,minValues:n,trends:i,score:o,suggestions:a,totalSamples:r,duration:Date.now()-this.startTime};return this.emit(ma.ANALYSIS_COMPLETE,s),s},t.prototype.generateReport=function(t){void 0===t&&(t={});var e=this.analyze(),n=Sa({format:"json",includeCharts:!1,includeSuggestions:!0,includeDetailedData:!1},t);switch(n.format){case"json":default:return this.generateJsonReport(e,n);case"csv":return this.generateCsvReport(e,n);case"html":return this.generateHtmlReport(e,n)}},t.prototype.generateJsonReport=function(t,e){var n={timestamp:(new Date).toISOString(),duration:t.duration,score:t.score,totalSamples:t.totalSamples};return e.includeSuggestions&&(n.suggestions=t.suggestions),e.includeDetailedData&&(n.averages=t.averages,n.maxValues=t.maxValues,n.minValues=t.minValues,n.trends=t.trends),n},t.prototype.generateCsvReport=function(t,e){var n="Metric,Type,Value,Unit\n";return Object.entries(t.averages).forEach(function(t){var e=t[0],i=t[1];n+="".concat(e,",Average,").concat(i,",ms\n")}),Object.entries(t.maxValues).forEach(function(t){var e=t[0],i=t[1];n+="".concat(e,",Max,").concat(i,",ms\n")}),Object.entries(t.minValues).forEach(function(t){var e=t[0],i=t[1];n+="".concat(e,",Min,").concat(i,",ms\n")}),n},t.prototype.generateHtmlReport=function(t,e){var n='\n <!DOCTYPE html>\n <html>\n <head>\n <title>TaroViz 性能报告</title>\n <style>\n body { font-family: Arial, sans-serif; margin: 20px; }\n .report-header { background: #f0f0f0; padding: 20px; border-radius: 8px; }\n .score { font-size: 48px; font-weight: bold; color: #4CAF50; }\n .metric-section { margin: 20px 0; }\n .metric-table { border-collapse: collapse; width: 100%; }\n .metric-table th, .metric-table td { border: 1px solid #ddd; padding: 8px; text-align: left; }\n .metric-table th { background-color: #f2f2f2; }\n .suggestions { background: #fff3cd; padding: 15px; border-radius: 8px; margin: 20px 0; }\n </style>\n </head>\n <body>\n <div class="report-header">\n <h1>TaroViz 性能报告</h1>\n <p>生成时间: '.concat((new Date).toISOString(),"</p>\n <p>监控时长: ").concat(Math.round(t.duration/1e3),' 秒</p>\n <div class="score">').concat(t.score," / 100</div>\n </div>\n ");return n+='\n <div class="metric-section">\n <h2>性能指标</h2>\n <table class="metric-table">\n <tr>\n <th>指标</th>\n <th>平均值</th>\n <th>最大值</th>\n <th>最小值</th>\n </tr>',Object.entries(t.averages).forEach(function(e){var i=e[0],r=e[1],o=t.maxValues[i],a=t.minValues[i];n+="\n <tr>\n <td>".concat(i,"</td>\n <td>").concat(r," ms</td>\n <td>").concat(o," ms</td>\n <td>").concat(a," ms</td>\n </tr>")}),n+="\n </table>\n </div>",e.includeSuggestions&&t.suggestions.length>0&&(n+='\n <div class="suggestions">\n <h2>性能建议</h2>\n <ul>',t.suggestions.forEach(function(t){n+="\n <li>".concat(t,"</li>")}),n+="\n </ul>\n </div>"),n+="\n </body>\n </html>"},t.prototype.getIsMonitoring=function(){return this.isMonitoring},t.prototype.getConfig=function(){return Sa({},this.config)},t.prototype.updateConfig=function(t){this.config=Sa(Sa({},this.config),t)},t.prototype.getAllMetrics=function(){return new Map(this.metrics)},t.prototype.getMetricsByType=function(t){return this.metrics.get(t)||[]},t.prototype.clearMetrics=function(){this.metrics.clear(),this.frameRateHistory=[],this.startTime=Date.now()},t.prototype.getScore=function(){return this.analyze().score},t.instance=null,t}(),Ta=(Ma.getInstance(),function(){return Ta=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Ta.apply(this,arguments)});const Ca=function(t){var e=t.chartId,n=t.option,i=t.width,r=void 0===i?"100%":i,o=t.height,a=void 0===o?"300px":o,u=t.theme,c=t.autoResize,p=void 0===c||c,d=t.direction,f=void 0===d?"ltr":d,g=t.onInit,v=t.onClick,y=t.onDataZoom,m=t.style,_=t.className,x=t.children,b=t.virtualScroll,w=void 0!==b&&b,S=t.virtualScrollPageSize,I=void 0===S?100:S,M=t.virtualScrollPreloadSize,T=void 0===M?50:M,C=t.enablePerformanceMonitoring,A=void 0!==C&&C,D=t.onPerformance,k=(t.enableZoom,t.onZoom),P=t.enableDataFiltering,L=void 0!==P&&P,O=t.filters,E=void 0===O?{}:O,R=t.onDataFiltered,N=t.enableLegendInteraction,z=void 0!==N&&N,B=t.legendInteractionMode,V=void 0===B?"single":B,F=t.onLegendSelect,H=t.onLegendUnselect,W=(t.onLegendSelectAll,t.onLegendInverseSelect,t.enableCustomTooltip),G=void 0!==W&&W,X=t.customTooltipContent,U=t.customTooltipStyle,Y=t.onTooltipShow,j=t.onTooltipHide,Z=t.onExport,q=t.linkageConfig,$=void 0===q?{}:q,K=t.onDataUpdate,Q=t.dataUpdateOptions,J=void 0===Q?{}:Q,tt=(0,s.useRef)(null),et=(0,s.useRef)(null),nt=(0,s.useRef)({currentPage:0,totalPages:1,totalDataCount:0,startIndex:0,endIndex:0,isScrolling:!1}),it=(0,s.useRef)(null),rt=(0,s.useRef)({initStartTime:0,initEndTime:0,renderStartTime:0,renderEndTime:0,updateStartTime:0,updateEndTime:0,dataSize:0}),ot=(0,s.useRef)(n),at=(0,s.useRef)(null),st=function(){return t.debug?"boolean"==typeof t.debug?{enabled:t.debug,autoExpand:!1}:Ta({enabled:!0},t.debug):null},lt=function(t){if(void 0===t&&(t={}),et.current){var e=t.type,n=void 0===e?"png":e,i=t.pixelRatio,r=void 0===i?2:i,o=t.backgroundColor,a=void 0===o?"transparent":o,s=et.current.convertToDataURL({type:n,pixelRatio:r,backgroundColor:a});return Z&&s&&Z(s,t),s}},ut=(0,s.useRef)({exportChartToDataURL:lt,exportChart:function(t){void 0===t&&(t={});var e=lt(t);if(e){var n=t.type,i=void 0===n?"png":n,r=t.filename,o=void 0===r?"chart-".concat(Date.now()):r,a="".concat(o,".").concat(i),s=document.createElement("a");s.download=a,s.href=e,s.click()}}});l().useImperativeHandle(t,function(){return ut.current});var ct=function(t,e){var i=Date.now();switch(t){case"init":if(rt.current.initStartTime){rt.current.initEndTime=i;var r=rt.current.initEndTime-rt.current.initStartTime,o=JSON.stringify(n).length;it.current&&(it.current.recordInitTime(r),it.current.recordDataSize(n)),D&&D({renderTime:0,initTime:r,updateTime:0,dataSize:o})}else rt.current.initStartTime=i;break;case"render":if(rt.current.renderStartTime){rt.current.renderEndTime=i;var a=rt.current.renderEndTime-rt.current.renderStartTime;o=JSON.stringify(n).length;it.current&&it.current.recordRenderTime(a),D&&D({renderTime:a,initTime:rt.current.initEndTime-rt.current.initStartTime,updateTime:0,dataSize:o})}else rt.current.renderStartTime=i;break;case"update":if(rt.current.updateStartTime){rt.current.updateEndTime=i;var s=rt.current.updateEndTime-rt.current.updateStartTime;o=JSON.stringify(n).length;it.current&&(it.current.recordUpdateTime(s),it.current.recordDataSize(n)),D&&D({renderTime:0,initTime:0,updateTime:s,dataSize:o})}else rt.current.updateStartTime=i}},ht=function(t){var e=0;t.series&&(Array.isArray(t.series)?t.series:[t.series]).forEach(function(t){t.data&&(Array.isArray(t.data)?e+=t.data.length:"object"==typeof t.data&&(e+=Object.keys(t.data).length))});return e},pt=function(e){if(!e)return e;var n=JSON.parse(JSON.stringify(e));n.series&&Array.isArray(n.series)&&(n.series=n.series.map(function(t){if(t.data&&Array.isArray(t.data)){var e=function(t,e){return L&&e&&0!==Object.keys(e).length?t.filter(function(t){for(var n,i,r=0,o=Object.entries(e);r<o.length;r++){var a=o[r],s=a[0],l=a[1];if(t[s]!==l&&!(null===(i=null===(n=t[s])||void 0===n?void 0:n.includes)||void 0===i?void 0:i.call(n,l)))return!1}return!0}):t}(t.data,E);if(R&&R(e,E),w){nt.current.totalDataCount=e.length,nt.current.totalPages=Math.ceil(e.length/I);var n=nt.current.currentPage*I,i=Math.min(n+I+T,e.length);return nt.current.startIndex=n,nt.current.endIndex=i,Ta(Ta({},t),{data:e.slice(n,i)})}return Ta(Ta({},t),{data:e})}return t}));var i=ht(n),r=function(t,e){return void 0===t&&(t={}),void 0===e&&(e=0),h.getInstance().generateEChartsAnimationConfig(t,e)}(t.animation,i);return Ta(Ta({},n),r)};(0,s.useEffect)(function(){if(tt.current){var t=st();at.current=t,A&&(it.current=Ma.getInstance({enabled:!0,metrics:["initTime","renderTime","updateTime","dataSize","frameRate"],sampleInterval:1e3,maxSamples:100,realTime:!0,autoStart:!0})),ct("init");var i=pt(n),o=ha({width:r,height:a,theme:u,option:i,onInit:g,containerRef:tt,direction:f});"function"==typeof o.setComponent&&o.setComponent({createChart:function(t){return{}}}),ct("render");var s=o.init();return ct("render"),e&&s&&(c=s,da[e]=c),(null==t?void 0:t.enabled)&&(l={instance:{id:e,type:"ECharts",renderer:"canvas",width:"number"==typeof r?r:void 0,height:"number"==typeof a?a:void 0,platform:"web"},config:i,data:{series:Array.isArray(i.series)?i.series:[],totalDataCount:ht(i),currentDataCount:ht(i)},performance:{initTime:rt.current.initEndTime-rt.current.initStartTime,renderTime:rt.current.renderEndTime-rt.current.renderStartTime,dataSize:JSON.stringify(i).length}},wa.updateDebugInfo(l)),s&&v&&s.on("click",function(t){v(t),$.enableClickLinkage&&e&&$.linkedChartIds&&$.linkedChartIds.forEach(function(e){var n=fa(e);n&&n.dispatchAction({type:"highlight",name:t.name})})}),s&&s.on("datazoom",function(t){if(y&&y(t),k&&k({start:t.start||0,end:t.end||100,dataZoomIndex:t.dataZoomIndex||0}),$.enableZoomLinkage&&e&&$.linkedChartIds&&$.linkedChartIds.forEach(function(e){var n=fa(e);n&&n.dispatchAction({type:"dataZoom",start:t.start,end:t.end,dataZoomIndex:t.dataZoomIndex})}),w){if(nt.current.isScrolling)return;nt.current.isScrolling=!0;var i=t.start||0,r=Math.floor(i/100*nt.current.totalPages);if(r!==nt.current.currentPage){nt.current.currentPage=r;var a=pt(n);o.setOption(a)}setTimeout(function(){nt.current.isScrolling=!1},100)}}),s&&z&&s.on("legendselectchanged",function(t){var n=t.name,i=t.selected;if($.enableLegendLinkage&&e&&$.linkedChartIds&&$.linkedChartIds.forEach(function(t){var e=fa(t);e&&e.setOption({legend:{selected:i}})}),"single"===V){var r={};Object.keys(i).forEach(function(t){r[t]=t===n}),s.setOption({legend:{selected:r}}),F&&F({name:n,selected:r})}else i[n]?F&&F({name:n,selected:i}):H&&H({name:n,selected:i})}),s&&G&&(s.on("tooltipshow",function(t){Y&&Y(t)}),s.on("tooltiphide",function(t){j&&j(t)}),X&&s.setOption({tooltip:Ta({formatter:function(t){return'<div style="background: white; padding: 10px; border: 1px solid #ccc;">'+JSON.stringify(t)+"</div>"}},U&&{backgroundColor:"transparent",borderColor:"transparent",textStyle:{}})})),et.current=o,ct("init"),function(){e&&function(t){da[t]&&delete da[t]}(e),it.current&&(it.current.stop(),it.current=null),o&&o.dispose()}}var l,c},[tt,r,a,u,n,g,v,y,e,$]),(0,s.useEffect)(function(){et.current&&et.current.resize()},[r,a]);(0,s.useEffect)(function(){if(et.current&&n){ct("update");var t=pt(n);et.current.setOption(t),ct("update")}if(K&&!1!==J.enabled){var e=ot.current;(function(t,e){return t===e||!(!t||!e)&&(J.deepCompare?JSON.stringify(t)===JSON.stringify(e):t===e)})(e,n)||(K(e,n),ot.current=n)}},[n,K,J]),(0,s.useEffect)(function(){et.current&&u&&et.current.setTheme(u)},[u]),(0,s.useEffect)(function(){if(p&&et.current){var t=function(){et.current.resize()};return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}},[p]);var dt=Ta({width:"number"==typeof r?"".concat(r,"px"):r,height:"number"==typeof a?"".concat(a,"px"):a,direction:f},m),ft=st(),gt=l().createElement("div",{ref:tt,style:dt,className:_},x);return(null==ft?void 0:ft.enabled)?l().createElement(l().Fragment,null,gt,l().createElement(va,{options:ft,debugInfo:{instance:{id:e,type:"ECharts",renderer:"canvas",width:"number"==typeof r?r:void 0,height:"number"==typeof a?a:void 0,platform:"web"},config:n,data:{series:Array.isArray(null==n?void 0:n.series)?n.series:[],totalDataCount:ht(n),currentDataCount:ht(n)},performance:{initTime:rt.current.initEndTime-rt.current.initStartTime,renderTime:rt.current.renderEndTime-rt.current.renderStartTime,updateTime:rt.current.updateEndTime-rt.current.updateStartTime,dataSize:JSON.stringify(n).length}}})):gt};var Aa=function(){return Aa=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Aa.apply(this,arguments)};function Da(t){var e={width:"number"==typeof t.width?t.width:void 0,height:"number"==typeof t.height?t.height:void 0,theme:"string"==typeof t.theme?t.theme:void 0,autoResize:t.autoResize,canvasId:t.canvasId,containerRef:t.containerRef,option:t.option,renderer:t.renderer},n=Aa({},e);return Object.keys(t).forEach(function(i){i in e||(n[i]=t[i])}),n}var ka=function(){return ka=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},ka.apply(this,arguments)};const Pa=function(t){var e=t.option,n=t.width,i=void 0===n?"100%":n,r=t.height,o=void 0===r?"300px":r,a=t.theme,u=t.style,c=void 0===u?{}:u,h=t.className,p=void 0===h?"":h,d=t.autoResize,f=void 0===d||d,g=t.loading,v=void 0!==g&&g,y=t.loadingOption,m=t.onChartInit,_=t.onChartReady,x=t.renderer,b=void 0===x?"canvas":x,w=t.onEvents,I=void 0===w?{}:w,M=t.chartType,T=void 0===M?"chart":M,C=(0,s.useRef)("".concat(T,"-").concat(S())),A=(0,s.useRef)(null),D=(0,s.useRef)(null),k=(0,s.useMemo)(function(){return Da({canvasId:C.current,containerRef:D,width:i,height:o,theme:a,autoResize:f,renderer:b,option:e})},[i,o,a,f,b,e,T]);(0,s.useEffect)(function(){return ha(Da(ka(ka({},k),{onInit:function(t){A.current=t,I&&Object.keys(I).forEach(function(e){t.on(e,I[e])}),m&&m(t),_&&_(t)}}))).init(),function(){A.current&&(I&&Object.keys(I).forEach(function(t){var e;null===(e=A.current)||void 0===e||e.off(t)}),A.current.dispose(),A.current=null)}},[k,m,_,I]),(0,s.useEffect)(function(){A.current&&A.current.setOption(e,!0)},[e]),(0,s.useEffect)(function(){A.current&&(v?A.current.showLoading(y):A.current.hideLoading())},[v,y]);var P=ka({width:"number"==typeof i?"".concat(i,"px"):i,height:"number"==typeof o?"".concat(o,"px"):o},c),L=ha(k);return l().createElement("div",{className:"taroviz-".concat(T," ").concat(p),style:P,ref:D},function(t){if(t&&"function"==typeof t.render)try{return t.render()}catch(t){}return null}(L))};var La=function(){return La=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},La.apply(this,arguments)};const Oa=function(t){return l().createElement(Pa,La({},t,{chartType:"line-chart"}))};var Ea=function(){return Ea=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Ea.apply(this,arguments)};const Ra=function(t){return l().createElement(Pa,Ea({},t,{chartType:"bar-chart"}))};var Na=function(){return Na=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Na.apply(this,arguments)};const za=function(t){return l().createElement(Pa,Na({},t,{chartType:"pie-chart"}))};var Ba=function(){return Ba=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Ba.apply(this,arguments)};const Va=function(t){return l().createElement(Pa,Ba({},t,{chartType:"scatter-chart"}))};var Fa=function(){return Fa=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Fa.apply(this,arguments)};const Ha=function(t){return l().createElement(Pa,Fa({},t,{chartType:"radar-chart"}))};var Wa=function(){return Wa=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Wa.apply(this,arguments)};const Ga=function(t){return l().createElement(Pa,Wa({},t,{chartType:"heatmap-chart"}))};var Xa=function(){return Xa=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Xa.apply(this,arguments)};const Ua=function(t){return l().createElement(Pa,Xa({},t,{chartType:"gauge-chart"}))};var Ya=function(){return Ya=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Ya.apply(this,arguments)};const ja=function(t){return l().createElement(Pa,Ya({},t,{chartType:"funnel-chart"}))};var Za=function(){return Za=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Za.apply(this,arguments)},qa=new Map,$a={theme:"default",name:"Default",description:"简洁现代的默认主题",type:"light",mode:"light",darkMode:!1,tags:["modern","clean","default"],colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"#ffffff",textColor:"#333333",textColorSecondary:"#666666",borderColor:"#e8e8e8",dividerColor:"#f0f0f0",fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',chart:{legend:{textColor:"#333333",backgroundColor:"transparent",borderColor:"#e8e8e8"},axis:{textColor:"#666666",lineColor:"#e8e8e8",tickColor:"#e8e8e8",splitLineColor:"#f0f0f0"},tooltip:{textColor:"#333333",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#e8e8e8",borderRadius:4},title:{textColor:"#333333",subTextColor:"#666666"}}},Ka={theme:"dark",name:"Dark",description:"优雅的深色主题,适合夜间使用",type:"dark",mode:"dark",darkMode:!0,tags:["dark","night","modern"],colors:["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff9f7f","#8d48e3","#dd79ff"],backgroundColor:"#1a1a2e",textColor:"#e8e8e8",textColorSecondary:"#a0a0a0",borderColor:"#2d2d44",dividerColor:"#252538",fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',chart:{legend:{textColor:"#e8e8e8",backgroundColor:"transparent",borderColor:"#2d2d44"},axis:{textColor:"#a0a0a0",lineColor:"#2d2d44",tickColor:"#2d2d44",splitLineColor:"#252538"},tooltip:{textColor:"#e8e8e8",backgroundColor:"rgba(26, 26, 46, 0.95)",borderColor:"#2d2d44",borderRadius:4},title:{textColor:"#e8e8e8",subTextColor:"#a0a0a0"}}},Qa={theme:"neon",name:"Neon",description:"赛博朋克霓虹风格,炫酷吸睛",type:"dark",mode:"dark",darkMode:!0,tags:["neon","cyberpunk","colorful","dark"],colors:["#00fff5","#ff00ff","#ffff00","#00ff00","#ff6b6b","#4ecdc4","#ffe66d","#95e1d3","#f38181"],backgroundColor:"#0d0d1a",textColor:"#ffffff",textColorSecondary:"#b0b0b0",borderColor:"#1a1a2e",dividerColor:"#1a1a2e",fontFamily:'"JetBrains Mono", "Fira Code", monospace',effects:{shadows:!0,shadowColor:"rgba(0, 255, 245, 0.3)",gradients:!0},chart:{tooltip:{textColor:"#ffffff",backgroundColor:"rgba(13, 13, 26, 0.95)",borderColor:"#00fff5",borderRadius:4,shadowColor:"rgba(0, 255, 245, 0.3)"}}},Ja={theme:"glass",name:"Glass",description:"现代玻璃态设计,半透明质感",type:"light",mode:"light",darkMode:!1,tags:["glass","modern","minimal","light"],colors:["#667eea","#764ba2","#f093fb","#f5576c","#4facfe","#00f2fe","#43e97b","#38f9d7","#fa709a"],backgroundColor:"rgba(255, 255, 255, 0.8)",backgroundGradient:{start:"#f5f7fa",end:"#c3cfe2",angle:135},textColor:"#2d3748",textColorSecondary:"#718096",borderColor:"rgba(255, 255, 255, 0.5)",dividerColor:"rgba(255, 255, 255, 0.3)",fontFamily:"Inter, -apple-system, BlinkMacSystemFont, sans-serif",effects:{glassmorphism:!0,blur:10,shadows:!0,shadowColor:"rgba(0, 0, 0, 0.1)",borderRadius:"large"},chart:{tooltip:{textColor:"#2d3748",backgroundColor:"rgba(255, 255, 255, 0.9)",borderColor:"rgba(255, 255, 255, 0.5)",borderRadius:12}}},ts={theme:"pastel",name:"Pastel",description:"柔和粉彩配色,温馨舒适",type:"light",mode:"light",darkMode:!1,tags:["pastel","soft","gentle","light"],colors:["#ffb3ba","#ffdfba","#ffffba","#baffc9","#bae1ff","#f0b3ff","#b3fff0","#ffb3d9","#d9ffb3"],backgroundColor:"#fff9f5",textColor:"#5d5d5d",textColorSecondary:"#8a8a8a",borderColor:"#f0e6e0",dividerColor:"#f5f0eb",fontFamily:"Nunito, -apple-system, BlinkMacSystemFont, sans-serif",chart:{tooltip:{textColor:"#5d5d5d",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#f0e6e0",borderRadius:8}}},es={theme:"sunset",name:"Sunset",description:"温暖日落渐变,夕阳余晖",type:"light",mode:"light",darkMode:!1,tags:["sunset","warm","gradient","light"],colors:["#ff6b6b","#feca57","#ff9ff3","#54a0ff","#5f27cd","#ff9f43","#ee5a24","#009432","#f368e0"],backgroundColor:"#fff5f0",backgroundGradient:{start:"#ffecd2",end:"#fcb69f",angle:135},textColor:"#4a4a4a",textColorSecondary:"#7a7a7a",borderColor:"#ffd5c8",dividerColor:"#ffebe6",fontFamily:"Quicksand, -apple-system, BlinkMacSystemFont, sans-serif",effects:{gradients:!0,shadows:!0,shadowColor:"rgba(255, 107, 107, 0.2)",borderRadius:"medium"}},ns={theme:"ocean",name:"Ocean",description:"深邃海洋蓝,宁静清新",type:"light",mode:"light",darkMode:!1,tags:["ocean","blue","calm","light"],colors:["#0077b6","#00b4d8","#90e0ef","#caf0f8","#03045e","#023e8a","#0096c7","#48cae4","#ade8f4"],backgroundColor:"#f0f8ff",backgroundGradient:{start:"#e0f2fe",end:"#bae6fd",angle:180},textColor:"#1e3a5f",textColorSecondary:"#4a6fa5",borderColor:"#cce7f5",dividerColor:"#e1f0f9",fontFamily:"Nunito, -apple-system, BlinkMacSystemFont, sans-serif",effects:{gradients:!0,shadows:!0,shadowColor:"rgba(0, 119, 182, 0.15)"}},is={theme:"cyber",name:"Cyber",description:"未来科技感,赛博朋克",type:"dark",mode:"dark",darkMode:!0,tags:["cyber","tech","futuristic","dark"],colors:["#00f5ff","#ff00ff","#00ff00","#ffff00","#ff0080","#8000ff","#00ff80","#ff8000","#0080ff"],backgroundColor:"#0a0a12",textColor:"#e0e0e0",textColorSecondary:"#808090",borderColor:"#1a1a2e",dividerColor:"#12121e",fontFamily:'"Orbitron", "Rajdhani", "JetBrains Mono", monospace',effects:{shadows:!0,shadowColor:"rgba(0, 245, 255, 0.4)",gradients:!0,borderRadius:"none"},chart:{tooltip:{textColor:"#ffffff",backgroundColor:"rgba(10, 10, 18, 0.95)",borderColor:"#00f5ff",borderRadius:0,shadowColor:"rgba(0, 245, 255, 0.4)"}}},rs={theme:"retro",name:"Retro",description:"怀旧复古风格,温馨怀旧",type:"light",mode:"light",darkMode:!1,tags:["retro","vintage","nostalgic","light"],colors:["#d63031","#e17055","#fdcb6e","#00b894","#0984e3","#6c5ce7","#e84393","#00cec9","#fab1a0"],backgroundColor:"#fdf6e3",textColor:"#5c4b37",textColorSecondary:"#8b7355",borderColor:"#e8dcc8",dividerColor:"#f0e8d8",fontFamily:'"Courier Prime", "Courier New", monospace',effects:{shadows:!1,borderRadius:"small"}},os={theme:"elegant",name:"Elegant",description:"低调雅致风格,精致品味",type:"light",mode:"light",darkMode:!1,tags:["elegant","minimal","sophisticated","light"],colors:["#2c3e50","#34495e","#7f8c8d","#95a5a6","#bdc3c7","#ecf0f1","#1abc9c","#16a085","#3498db"],backgroundColor:"#fafafa",textColor:"#2c3e50",textColorSecondary:"#7f8c8d",borderColor:"#e8e8e8",dividerColor:"#f0f0f0",fontFamily:'"Playfair Display", Georgia, serif',effects:{shadows:!0,shadowColor:"rgba(0, 0, 0, 0.08)",borderRadius:"medium"}};function as(t){if(!t)return $a;var e;if(t.theme&&"string"==typeof t.theme){var n=qa.get(t.theme);e=n||(t.darkMode?Ka:$a)}else e=t.darkMode?Ka:$a;return Za(Za({},e),t)}function ss(t,e){qa.set(t,Za(Za({},e),{name:t}))}function ls(){return Array.from(qa.values())}function us(t,e){var n;"string"==typeof t?n=qa.get(t)||$a:(n=t,t.name&&ss(t.name,t));return"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("themeChange",{detail:n})),null==e||e(),n}var cs={default:$a,dark:Ka,walden:Za(Za({},$a),{theme:"walden",name:"Walden",description:"清新自然风格",colors:["#0a437a","#3a84c4","#22a783","#48b591","#7fcdbb","#c9e4ca"],backgroundColor:"#f0f8f5",textColor:"#2c5042"}),chalk:Za(Za({},$a),{theme:"chalk",name:"Chalk",description:"粉笔风格",colors:["#2e8de5","#f0805a","#5ab1ef","#91d5ff","#faad14"],backgroundColor:"#ffffff",textColor:"#000000"}),"purple-passion":Za(Za({},$a),{theme:"purple-passion",name:"Purple Passion",description:"紫色浪漫",colors:["#9c27b0","#e91e63","#ff5722","#ff9800","#ffc107"],backgroundColor:"#f5f5f5",textColor:"#333333"}),"blue-green":Za(Za({},$a),{theme:"blue-green",name:"Blue Green",description:"蓝绿清新",colors:["#00838f","#00acc1","#03a9f4","#29b6f6","#4fc3f7"],backgroundColor:"#e0f7fa",textColor:"#006064"}),golden:Za(Za({},$a),{theme:"golden",name:"Golden",description:"金色奢华",colors:["#ffd700","#ffed4e","#f9a825","#ffc107","#ffb300"],backgroundColor:"#fff8e1",textColor:"#ff6f00"}),forest:Za(Za({},$a),{theme:"forest",name:"Forest",description:"森林绿色",colors:["#2e7d32","#388e3c","#43a047","#4caf50","#66bb6a"],backgroundColor:"#f1f8e9",textColor:"#1b5e20"}),neon:Qa,glass:Ja,pastel:ts,sunset:es,ocean:ns,cyber:is,retro:rs,elegant:os};Object.entries(cs).forEach(function(t){var e=t[0],n=t[1];qa.set(e,n)});var hs=function(){return hs=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},hs.apply(this,arguments)},ps=function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};const ds=function(t){var e=t.selectedTheme,n=t.onThemeChange,i=t.onThemeSave,r=t.disabled,o=void 0!==r&&r,a=t.style,u=void 0===a?{}:a,c=t.className,h=void 0===c?"":c,p=ls(),d=(0,s.useState)(p[0]||{}),f=d[0],g=d[1],v=(0,s.useState)(""),y=v[0],m=v[1],_=(0,s.useState)(!1),x=_[0],b=_[1],w=(0,s.useState)(f.colors||[]),S=w[0],I=w[1],M=(0,s.useState)(f.backgroundColor||"#ffffff"),T=M[0],C=M[1],A=(0,s.useState)(f.textColor||"#333333"),D=A[0],k=A[1],P=(0,s.useState)(f.darkMode||!1),L=P[0],O=P[1];(0,s.useEffect)(function(){if(e){var t=p.find(function(t){return t.name===e});t&&(g(t),I(t.colors||[]),C(t.backgroundColor||"#ffffff"),k(t.textColor||"#333333"),O(t.darkMode||!1))}},[e,p]),(0,s.useEffect)(function(){I(f.colors||[]),C(f.backgroundColor||"#ffffff"),k(f.textColor||"#333333"),O(f.darkMode||!1)},[f]);var E=function(t,e){var n=ps([],S,!0);n[t]=e,I(n),z({colors:n})},R=function(t){C(t),z({backgroundColor:t})},N=function(t){k(t),z({textColor:t})},z=function(t){var e=hs(hs({},f),t);g(e),n&&n(e),us(e)};return l().createElement("div",{className:"taroviz-theme-editor ".concat(h),style:hs({padding:"20px",border:"1px solid #e0e0e0",borderRadius:"8px",backgroundColor:"#ffffff",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)"},u)},l().createElement("h3",null,"主题编辑器"),l().createElement("div",{style:{marginBottom:"20px"}},l().createElement("h4",null,"选择主题"),l().createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:"10px",marginTop:"10px"}},p.map(function(t){return l().createElement("button",{key:t.name,onClick:function(){return function(t){g(t),n&&n(t),us(t)}(t)},disabled:o,style:{padding:"8px 16px",border:"2px solid ".concat(f.name===t.name?"#1890ff":"#e0e0e0"),borderRadius:"4px",backgroundColor:f.name===t.name?"#1890ff":"#ffffff",color:f.name===t.name?"#ffffff":"#333333",cursor:o?"not-allowed":"pointer",opacity:o?.6:1}},t.name)}),l().createElement("button",{onClick:function(){b(!0),m("")},disabled:o,style:{padding:"8px 16px",border:"2px dashed #e0e0e0",borderRadius:"4px",backgroundColor:"#f5f5f5",color:"#333333",cursor:o?"not-allowed":"pointer",opacity:o?.6:1}},"+ 新主题"))),x&&l().createElement("div",{style:{marginBottom:"20px",padding:"15px",backgroundColor:"#f9f9f9",borderRadius:"4px"}},l().createElement("h4",null,"新建主题"),l().createElement("div",{style:{marginBottom:"10px"}},l().createElement("label",{style:{display:"block",marginBottom:"5px"}},"主题名称:"),l().createElement("input",{type:"text",value:y,onChange:function(t){return m(t.target.value)},disabled:o,style:{padding:"8px",border:"1px solid #e0e0e0",borderRadius:"4px",width:"100%",opacity:o?.6:1},placeholder:"输入主题名称"}))),l().createElement("div",{style:{marginBottom:"20px"}},l().createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"10px"}},l().createElement("h4",null,"主题颜色"),l().createElement("button",{onClick:function(){I(ps(ps([],S,!0),["#000000"],!1))},disabled:o,style:{padding:"4px 8px",border:"1px solid #e0e0e0",borderRadius:"4px",backgroundColor:"#ffffff",color:"#333333",cursor:o?"not-allowed":"pointer",opacity:o?.6:1}},"+ 添加颜色")),l().createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:"10px"}},S.map(function(t,e){return l().createElement("div",{key:e,style:{display:"flex",alignItems:"center",gap:"5px"}},l().createElement("input",{type:"color",value:t,onChange:function(t){return E(e,t.target.value)},disabled:o,style:{width:"50px",height:"30px",border:"none",cursor:o?"not-allowed":"pointer",opacity:o?.6:1}}),l().createElement("input",{type:"text",value:t,onChange:function(t){return E(e,t.target.value)},disabled:o,style:{width:"80px",padding:"4px",border:"1px solid #e0e0e0",borderRadius:"4px",opacity:o?.6:1}}),l().createElement("button",{onClick:function(){return function(t){var e=S.filter(function(e,n){return n!==t});I(e),z({colors:e})}(e)},disabled:o||S.length<=1,style:{padding:"4px 8px",border:"1px solid #ff4d4f",borderRadius:"4px",backgroundColor:"#ffffff",color:"#ff4d4f",cursor:o||S.length<=1?"not-allowed":"pointer",opacity:o||S.length<=1?.6:1}},"删除"))}))),l().createElement("div",{style:{marginBottom:"20px"}},l().createElement("h4",null,"基础配置"),l().createElement("div",{style:{marginBottom:"10px"}},l().createElement("label",{style:{display:"block",marginBottom:"5px"}},"背景色:"),l().createElement("div",{style:{display:"flex",alignItems:"center",gap:"10px"}},l().createElement("input",{type:"color",value:T,onChange:function(t){return R(t.target.value)},disabled:o,style:{width:"50px",height:"30px",border:"none",cursor:o?"not-allowed":"pointer",opacity:o?.6:1}}),l().createElement("input",{type:"text",value:T,onChange:function(t){return R(t.target.value)},disabled:o,style:{width:"120px",padding:"4px",border:"1px solid #e0e0e0",borderRadius:"4px",opacity:o?.6:1}}))),l().createElement("div",{style:{marginBottom:"10px"}},l().createElement("label",{style:{display:"block",marginBottom:"5px"}},"文本颜色:"),l().createElement("div",{style:{display:"flex",alignItems:"center",gap:"10px"}},l().createElement("input",{type:"color",value:D,onChange:function(t){return N(t.target.value)},disabled:o,style:{width:"50px",height:"30px",border:"none",cursor:o?"not-allowed":"pointer",opacity:o?.6:1}}),l().createElement("input",{type:"text",value:D,onChange:function(t){return N(t.target.value)},disabled:o,style:{width:"120px",padding:"4px",border:"1px solid #e0e0e0",borderRadius:"4px",opacity:o?.6:1}}))),l().createElement("div",{style:{display:"flex",alignItems:"center",gap:"10px"}},l().createElement("label",null,"深色模式:"),l().createElement("input",{type:"checkbox",checked:L,onChange:function(){var t=!L;O(t),z({darkMode:t})},disabled:o,style:{cursor:o?"not-allowed":"pointer",opacity:o?.6:1}}))),l().createElement("button",{onClick:function(){var t=hs(hs({},f),{colors:S,backgroundColor:T,textColor:D,darkMode:L});x&&y?(ss(y,t),b(!1),m("")):ss(f.name||"custom",t),i&&i(t)},disabled:o,style:{padding:"10px 20px",border:"none",borderRadius:"4px",backgroundColor:"#1890ff",color:"#ffffff",cursor:o?"not-allowed":"pointer",opacity:o?.6:1}},"保存主题"))};var fs=function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};function gs(t,e){var n=(0,s.useState)(null),i=n[0],r=n[1],o=(0,s.useState)(!1),a=o[0],l=o[1],u=(0,s.useRef)(e);return u.current=e,(0,s.useEffect)(function(){if(t.current&&!i){try{var e=ha(u.current||{});r(e),l(!0)}catch(t){}return function(){var t;if(i){try{var e=i;(null===(t=e.isDisposed)||void 0===t?void 0:t.call(e))||e.dispose()}catch(t){}r(null),l(!1)}}}},[t]),[i,r,a]}function vs(t,e,n){var i=n||{},r=i.notMerge,o=void 0!==r&&r,a=i.lazyUpdate,l=void 0!==a&&a,u=i.replaceMerge,c=i.deps,h=void 0===c?[]:c;(0,s.useEffect)(function(){if(t&&e)try{t.setOption(e,o,l)}catch(t){}},fs([t,e,o,l,u],h,!0))}function ys(t,e){var n=e||{},i=n.delay,r=void 0===i?300:i,o=n.minWidth,a=n.minHeight,l=n.enabled,u=void 0===l||l,c=(0,s.useRef)();(0,s.useEffect)(function(){var e;if(t&&u){var n=function(){c.current&&clearTimeout(c.current),c.current=setTimeout(function(){var e,n;try{var i=null===(e=t.getDom)||void 0===e?void 0:e.call(t);if(i){var r=i.clientWidth,s=i.clientHeight;if(o&&r<o)return;if(a&&s<a)return}null===(n=t.resize)||void 0===n||n.call(t)}catch(t){}},r)};window.addEventListener("resize",n);var i=null===(e=t.getDom)||void 0===e?void 0:e.call(t);if(i&&"undefined"!=typeof ResizeObserver){var s=new ResizeObserver(n);return s.observe(i),function(){s.disconnect(),window.removeEventListener("resize",n),c.current&&clearTimeout(c.current)}}return function(){window.removeEventListener("resize",n),c.current&&clearTimeout(c.current)}}},[t,r,o,a,u])}function ms(t,e){(0,s.useEffect)(function(){if(t&&e){var n=Object.entries(e);return n.forEach(function(e){var n=e[0],i=e[1];try{t.on(n,i)}catch(t){}}),function(){n.forEach(function(e){var n=e[0],i=e[1];try{t.off(n,i)}catch(t){}})}}},[t,e])}function _s(t,e,n){(0,s.useEffect)(function(){if(t)try{e?t.showLoading(n):t.hideLoading()}catch(t){}},[t,e,n])}function xs(t,e){return void 0===e&&(e=!1),(0,s.useMemo)(function(){if("string"==typeof t)try{return getTheme(t)||(e?"dark":t)}catch(n){return e?"dark":t}return t},[t,e])}function bs(t,e){return(0,s.useMemo)(function(){return t?e(t):{}},[t,e])}var ws="taroviz",Ss="1.1.1";module.exports=i})();
|
|
1
|
+
(()=>{"use strict";var e={123(e,t,n){n.d(t,{A:()=>s});var r=n(163),o=n(348),a=n(613),i=n(15),c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)};o.use([r.GridComponent,r.TooltipComponent,r.TitleComponent,r.LegendComponent,a.CanvasRenderer,a.SVGRenderer]);const s=function(){function e(e){this.instance=null,this.containerRef=null,this.options=e||{},this.containerRef=e.containerRef,this.canvasId=this.options.canvasId||"taroviz-echarts-canvas"}return e.create=function(t){return new e(t)},e.prototype.init=function(e){var t,n;if(this.instance)return this.instance;var r=(null===(t=this.containerRef)||void 0===t?void 0:t.current)||document.getElementById(this.canvasId);return r?(this.instance=o.init(r,this.options.theme,{useDirtyRect:!0,renderer:this.options.renderer||"canvas"}),this.instance&&this.instance.setOption({animation:!1!==(null===(n=this.options.option)||void 0===n?void 0:n.animation),animationDurationUpdate:300,animationEasingUpdate:"cubicOut",progressive:500,progressiveThreshold:1e3},!0),this.options.option&&this.instance&&this.instance.setOption(this.options.option,{notMerge:!1,lazyUpdate:!0}),this.options.onInit&&this.instance&&this.options.onInit(this.instance),this.instance):{}},e.prototype.getInstance=function(){return this.instance},e.prototype.setOption=function(e,t){this.instance?this.instance.setOption(e,c({lazyUpdate:!0},t)):this.options.option=e},e.prototype.setTheme=function(e){var t,n;this.options.theme=e,this.instance&&(null===(n=(t=this.instance).setTheme)||void 0===n||n.call(t,e))},e.prototype.getWidth=function(){var e;return(null===(e=this.instance)||void 0===e?void 0:e.getWidth())||0},e.prototype.getHeight=function(){var e;return(null===(e=this.instance)||void 0===e?void 0:e.getHeight())||0},e.prototype.getDom=function(){var e;return(null===(e=this.containerRef)||void 0===e?void 0:e.current)||null},e.prototype.convertToDataURL=function(e){var t;return null===(t=this.instance)||void 0===t?void 0:t.getDataURL(e)},e.prototype.clear=function(){this.instance&&this.instance.clear()},e.prototype.on=function(e,t){this.instance&&this.instance.on(e,t)},e.prototype.off=function(e,t){this.instance&&this.instance.off(e,t)},e.prototype.showLoading=function(e){this.instance&&this.instance.showLoading(e)},e.prototype.hideLoading=function(){this.instance&&this.instance.hideLoading()},e.prototype.setComponent=function(e){this.containerRef=e},e.prototype.render=function(){var e=this.options,t=e.width,n=void 0===t?"100%":t,r=e.height,o=void 0===r?"300px":r,a=e.style,s=void 0===a?{}:a,l=e.direction,u=void 0===l?"ltr":l;return i.createElement("div",{id:this.canvasId,ref:this.containerRef,style:c({width:n,height:o,direction:u},s)})},e.prototype.dispose=function(){this.instance&&(this.instance.dispose(),this.instance=null)},e.prototype.resize=function(e){this.instance&&this.instance.resize(e)},e.prototype.getName=function(){return"H5Adapter"},e.prototype.getVersion=function(){return"1.1.1"},e.prototype.getPlatformInfo=function(){return{platform:"h5",renderer:this.options.renderer||"canvas",userAgent:navigator.userAgent,devicePixelRatio:window.devicePixelRatio}},e}()},382(e,t,n){n.d(t,{A:()=>a});var r=n(15),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};const a=function(){function e(e){this.chartInstance=null,this.component=null,this.config=e,this.component=e.component}return e.create=function(t){return new e(t)},e.prototype.getInstance=function(){return this.chartInstance},e.prototype.init=function(){var e=this.config,t=e.canvasId,n=e.width,r=e.height,o=e.theme,a=e.option;if(!this.component)return null;if(!t)return null;var i=this.component.createChart({id:t,width:n,height:r,theme:o});return a&&i.setOption(a),this.chartInstance=i,this.config.onInit&&this.config.onInit(i),i},e.prototype.setOption=function(e,t){this.chartInstance?this.chartInstance.setOption(e,t):this.config.option=e},e.prototype.setTheme=function(e){var t,n;this.config.theme=e,this.chartInstance&&(null===(n=(t=this.chartInstance).setTheme)||void 0===n||n.call(t,e))},e.prototype.getWidth=function(){return 0},e.prototype.getHeight=function(){return 0},e.prototype.getDom=function(){return null},e.prototype.convertToDataURL=function(e){var t;return null===(t=this.chartInstance)||void 0===t?void 0:t.getDataURL(e)},e.prototype.clear=function(){this.chartInstance&&this.chartInstance.clear()},e.prototype.on=function(e,t){this.chartInstance&&this.chartInstance.on(e,t)},e.prototype.off=function(e,t){this.chartInstance&&this.chartInstance.off(e,t)},e.prototype.showLoading=function(e){this.chartInstance&&this.chartInstance.showLoading(e)},e.prototype.hideLoading=function(){this.chartInstance&&this.chartInstance.hideLoading()},e.prototype.dispose=function(){this.chartInstance&&(this.chartInstance.dispose(),this.chartInstance=null)},e.prototype.resize=function(e){this.chartInstance&&this.chartInstance.resize(e)},e.prototype.setComponent=function(e){this.component=e},e.prototype.render=function(){var e=this.config,t=e.canvasId,n=void 0===t?"ec-canvas":t,a=e.width,i=void 0===a?"100%":a,c=e.height,s=void 0===c?"300px":c,l=e.style,u=void 0===l?{}:l;return r.createElement("view",{id:n,style:o({width:i,height:s},u)})},e.prototype.dispatchAction=function(e){this.chartInstance&&this.chartInstance.dispatchAction(e)},e.prototype.getDataURL=function(e){var t;return null===(t=this.chartInstance)||void 0===t?void 0:t.getDataURL(e)},e}()},574(e,t,n){var r,o;n.d(t,{li:()=>c,cK:()=>l,_$:()=>s}),function(e){e.CLICK="click",e.MOUSEMOVE="mousemove",e.MOUSEUP="mouseup",e.MOUSEDOWN="mousedown",e.MOUSEOVER="mouseover",e.MOUSEOUT="mouseout",e.GLOBALOUT="globalout",e.LEGENDSELECTED="legendselected",e.LEGENDUNSELECTED="legendunselected",e.LEGENDSELECTCHANGED="legendselectchanged",e.LEGENDSCROLL="legendscroll",e.DATAZOOM="datazoom",e.DATARANGESELECTED="datarangeselected",e.TIMELINECHANGED="timelinechanged",e.TIMELINEPLAYCHANGED="timelineplaychanged",e.RESTORE="restore",e.DATAVIEWCHANGED="dataviewchanged",e.MAGICTYPECHANGED="magictypechanged",e.GEOSELECTCHANGED="geoselectchanged",e.GEOSELECTED="geoselected",e.GEOUNSELECTED="geounselected",e.PIESELECTCHANGED="pieselectchanged",e.PIESELECTED="pieselected",e.PIEUNSELECTED="pieunselected",e.MAPSELECTCHANGED="mapselectchanged",e.MAPSELECTED="mapselected",e.MAPUNSELECTED="mapunselected",e.AXISAREASELECTED="axisareaselected",e.FOCUSNODEADJACENCY="focusnodeadjacency",e.UNFOCUSNODEADJACENCY="unfocusnodeadjacency",e.BRUSH="brush",e.BRUSHSELECTED="brushselected",e.RENDERED="rendered",e.FINISHED="finished",e.CHART_READY="chartReady",e.CHART_RESIZE="chartResize",e.CHART_ERROR="chartError",e.CHART_DISPOSE="chartDispose"}(r||(r={})),function(e){e.H5="h5",e.WEAPP="weapp",e.ALIPAY="alipay",e.SWAN="swan",e.TT="tt",e.QQ="qq",e.JD="jd",e.HARMONY="harmony",e.DD="dd",e.QYWX="qywx",e.LARK="lark",e.KWAI="kwai"}(o||(o={}));n(251),n(524),n(930),n(123),n(999),n(85),n(280),n(382);var a,i=((a={})[o.H5]={name:"H5"},a[o.WEAPP]={name:"Wechat",requireComponent:!0},a[o.ALIPAY]={name:"Alipay",requireComponent:!0},a[o.SWAN]={name:"Baidu",requireComponent:!0},a[o.TT]={name:"ByteDance",requireComponent:!0},a[o.QQ]={name:"QQ",requireComponent:!0},a[o.JD]={name:"JD",requireComponent:!0},a[o.DD]={name:"DingTalk",requireComponent:!0},a[o.QYWX]={name:"QiyeWechat"},a[o.LARK]={name:"Lark"},a[o.HARMONY]={name:"HarmonyOS",requireComponent:!0},a);function c(){if("undefined"==typeof window)return o.H5;for(var e=[{test:function(){var e,t;return"wx"in window&&(null===(e=window.wx)||void 0===e?void 0:e.getSystemInfoSync)&&!(null===(t=window.wx)||void 0===t?void 0:t.qy)},platform:o.WEAPP},{test:function(){var e;return"my"in window&&(null===(e=window.my)||void 0===e?void 0:e.getSystemInfoSync)},platform:o.ALIPAY},{test:function(){var e;return"swan"in window&&(null===(e=window.swan)||void 0===e?void 0:e.getSystemInfoSync)},platform:o.SWAN},{test:function(){var e;return"tt"in window&&(null===(e=window.tt)||void 0===e?void 0:e.getSystemInfoSync)},platform:o.TT},{test:function(){var e;return"qq"in window&&(null===(e=window.qq)||void 0===e?void 0:e.getSystemInfoSync)},platform:o.QQ},{test:function(){var e;return"jd"in window&&(null===(e=window.jd)||void 0===e?void 0:e.getSystemInfoSync)},platform:o.JD},{test:function(){var e;return"dd"in window&&(null===(e=window.dd)||void 0===e?void 0:e.getSystemInfoSync)},platform:o.DD},{test:function(){var e;return"wx"in window&&(null===(e=window.wx)||void 0===e?void 0:e.qy)},platform:o.QYWX},{test:function(){var e,t;return"tt"in window&&"lark"===(null===(t=null===(e=window.tt)||void 0===e?void 0:e.env)||void 0===t?void 0:t.appName)},platform:o.LARK},{test:function(){return navigator.userAgent.includes("HarmonyOS")},platform:o.HARMONY}],t=0,n=e;t<n.length;t++){var r=n[t];if(r.test())return r.platform}return o.H5}function s(){var e;return"undefined"!=typeof window&&"undefined"!=typeof document?"h5":void 0!==n.g&&(null===(e=null===n.g||void 0===n.g?void 0:n.g.wx)||void 0===e?void 0:e.getSystemInfoSync)?"weapp":"unknown"}function l(e){var t=c(),r=i[t];null==r||r.requireComponent;try{return function(e,t){var r;return((r={})[o.H5]=function(){return n(123).A.create(t)},r[o.WEAPP]=function(){return n(999).A.create(t)},r[o.SWAN]=function(){return n(85).A.create(t)},r[o.TT]=function(){return n(280).A.create(t)},r[o.HARMONY]=function(){return n(382).A.create(t)},r[o.ALIPAY]=function(){return n(123).A.create(t)},r[o.QQ]=function(){return n(123).A.create(t)},r[o.JD]=function(){return n(123).A.create(t)},r[o.DD]=function(){return n(123).A.create(t)},r[o.QYWX]=function(){return n(123).A.create(t)},r[o.LARK]=function(){return n(123).A.create(t)},r)[e]()}(t,e)}catch(t){return n(123).A.create(e)}}n(123).A,n(999).A,n(85).A,n(280).A,n(382).A},85(e,t,n){n.d(t,{A:()=>a});var r=n(15),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};const a=function(){function e(e){this.chartInstance=null,this.component=null,this.config=e,this.component=e.component}return e.create=function(t){return new e(t)},e.prototype.getInstance=function(){return this.chartInstance},e.prototype.init=function(){var e=this.config,t=e.canvasId,n=e.width,r=e.height,o=e.theme,a=e.option;if(!this.component)return null;if(!t)return null;var i=this.component.createChart({id:t,width:n,height:r,theme:o});return a&&i.setOption(a),this.chartInstance=i,this.config.onInit&&this.config.onInit(i),i},e.prototype.setOption=function(e,t){this.chartInstance?this.chartInstance.setOption(e,t):this.config.option=e},e.prototype.setTheme=function(e){var t,n;this.config.theme=e,this.chartInstance&&(null===(n=(t=this.chartInstance).setTheme)||void 0===n||n.call(t,e))},e.prototype.getWidth=function(){return 0},e.prototype.getHeight=function(){return 0},e.prototype.getDom=function(){return null},e.prototype.convertToDataURL=function(e){var t;return null===(t=this.chartInstance)||void 0===t?void 0:t.getDataURL(e)},e.prototype.clear=function(){this.chartInstance&&this.chartInstance.clear()},e.prototype.on=function(e,t){this.chartInstance&&this.chartInstance.on(e,t)},e.prototype.off=function(e,t){this.chartInstance&&this.chartInstance.off(e,t)},e.prototype.showLoading=function(e){this.chartInstance&&this.chartInstance.showLoading(e)},e.prototype.hideLoading=function(){this.chartInstance&&this.chartInstance.hideLoading()},e.prototype.dispose=function(){this.chartInstance&&(this.chartInstance.dispose(),this.chartInstance=null)},e.prototype.resize=function(e){this.chartInstance&&this.chartInstance.resize(e)},e.prototype.setComponent=function(e){this.component=e},e.prototype.render=function(){var e=this.config,t=e.canvasId,n=void 0===t?"ec-canvas":t,a=e.width,i=void 0===a?"100%":a,c=e.height,s=void 0===c?"300px":c,l=e.style,u=void 0===l?{}:l;return r.createElement("view",{id:n,style:o({width:i,height:s},u)})},e.prototype.dispatchAction=function(e){this.chartInstance&&this.chartInstance.dispatchAction(e)},e.prototype.getDataURL=function(e){var t;return null===(t=this.chartInstance)||void 0===t?void 0:t.getDataURL(e)},e}()},280(e,t,n){n.d(t,{A:()=>a});var r=n(15),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};const a=function(){function e(e){this.chartInstance=null,this.component=null,this.config=e,this.component=e.component}return e.create=function(t){return new e(t)},e.prototype.getInstance=function(){return this.chartInstance},e.prototype.init=function(){var e=this.config,t=e.canvasId,n=e.width,r=e.height,o=e.theme,a=e.option;if(!this.component)return null;if(!t)return null;var i=this.component.createChart({id:t,width:n,height:r,theme:o});return a&&i.setOption(a),this.chartInstance=i,this.config.onInit&&this.config.onInit(i),i},e.prototype.setOption=function(e,t){this.chartInstance?this.chartInstance.setOption(e,t):this.config.option=e},e.prototype.setTheme=function(e){var t,n;this.config.theme=e,this.chartInstance&&(null===(n=(t=this.chartInstance).setTheme)||void 0===n||n.call(t,e))},e.prototype.getWidth=function(){return 0},e.prototype.getHeight=function(){return 0},e.prototype.getDom=function(){return null},e.prototype.convertToDataURL=function(e){var t;return null===(t=this.chartInstance)||void 0===t?void 0:t.getDataURL(e)},e.prototype.clear=function(){this.chartInstance&&this.chartInstance.clear()},e.prototype.on=function(e,t){this.chartInstance&&this.chartInstance.on(e,t)},e.prototype.off=function(e,t){this.chartInstance&&this.chartInstance.off(e,t)},e.prototype.showLoading=function(e){this.chartInstance&&this.chartInstance.showLoading(e)},e.prototype.hideLoading=function(){this.chartInstance&&this.chartInstance.hideLoading()},e.prototype.dispose=function(){this.chartInstance&&(this.chartInstance.dispose(),this.chartInstance=null)},e.prototype.resize=function(e){this.chartInstance&&this.chartInstance.resize(e)},e.prototype.setComponent=function(e){this.component=e},e.prototype.render=function(){var e=this.config,t=e.canvasId,n=void 0===t?"ec-canvas":t,a=e.width,i=void 0===a?"100%":a,c=e.height,s=void 0===c?"300px":c,l=e.style,u=void 0===l?{}:l;return r.createElement("view",{id:n,style:o({width:i,height:s},u)})},e.prototype.dispatchAction=function(e){this.chartInstance&&this.chartInstance.dispatchAction(e)},e.prototype.getDataURL=function(e){var t;return null===(t=this.chartInstance)||void 0===t?void 0:t.getDataURL(e)},e}()},999(e,t,n){n.d(t,{A:()=>a});var r=n(15),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};const a=function(){function e(e){this.chartInstance=null,this.component=null,this.config=e,this.component=e.component}return e.create=function(t){return new e(t)},e.prototype.getInstance=function(){return this.chartInstance},e.prototype.init=function(){var e=this.config,t=e.canvasId,n=e.width,r=e.height,o=e.theme,a=e.option;if(!this.component)return null;if(!t)return null;var i=this.component.createChart({id:t,width:n,height:r,theme:o});return a&&i.setOption(a),this.chartInstance=i,this.config.onInit&&this.config.onInit(i),i},e.prototype.setOption=function(e,t){this.chartInstance?this.chartInstance.setOption(e,t):this.config.option=e},e.prototype.setTheme=function(e){var t,n;this.config.theme=e,this.chartInstance&&(null===(n=(t=this.chartInstance).setTheme)||void 0===n||n.call(t,e))},e.prototype.getWidth=function(){return 0},e.prototype.getHeight=function(){return 0},e.prototype.getDom=function(){return null},e.prototype.convertToDataURL=function(e){var t;return null===(t=this.chartInstance)||void 0===t?void 0:t.getDataURL(e)},e.prototype.clear=function(){this.chartInstance&&this.chartInstance.clear()},e.prototype.on=function(e,t){this.chartInstance&&this.chartInstance.on(e,t)},e.prototype.off=function(e,t){this.chartInstance&&this.chartInstance.off(e,t)},e.prototype.showLoading=function(e){this.chartInstance&&this.chartInstance.showLoading(e)},e.prototype.hideLoading=function(){this.chartInstance&&this.chartInstance.hideLoading()},e.prototype.dispose=function(){this.chartInstance&&(this.chartInstance.dispose(),this.chartInstance=null)},e.prototype.resize=function(e){this.chartInstance&&this.chartInstance.resize(e)},e.prototype.setComponent=function(e){this.component=e},e.prototype.render=function(){var e=this.config,t=e.canvasId,n=void 0===t?"ec-canvas":t,a=e.width,i=void 0===a?"100%":a,c=e.height,s=void 0===c?"300px":c,l=e.style,u=void 0===l?{}:l;return r.createElement("view",{id:n,style:o({width:i,height:s},u)})},e}()},188(e,t,n){n.r(t),n.d(t,{default:()=>c});var r=n(15),o=n.n(r),a=n(412),i=(n(930),function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)});const c=function(e){return o().createElement(a.A,i({},e,{chartType:"bar-chart"}))}},412(e,t,n){n.d(t,{A:()=>u});var r=n(15),o=n.n(r),a=n(574),i=n(524),c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)};function s(e){var t={width:"number"==typeof e.width?e.width:void 0,height:"number"==typeof e.height?e.height:void 0,theme:"string"==typeof e.theme?e.theme:void 0,autoResize:e.autoResize,canvasId:e.canvasId,containerRef:e.containerRef,option:e.option,renderer:e.renderer},n=c({},t);return Object.keys(e).forEach(function(r){r in t||(n[r]=e[r])}),n}var l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};const u=function(e){var t=e.option,n=e.width,c=void 0===n?"100%":n,u=e.height,d=void 0===u?"300px":u,f=e.theme,p=e.style,h=void 0===p?{}:p,v=e.className,m=void 0===v?"":v,g=e.autoResize,y=void 0===g||g,b=e.loading,x=void 0!==b&&b,E=e.loadingOption,C=e.onChartInit,w=e.onChartReady,I=e.renderer,T=void 0===I?"canvas":I,S=e.onEvents,k=void 0===S?{}:S,O=e.chartType,A=void 0===O?"chart":O,D=(0,r.useRef)("".concat(A,"-").concat((0,i.uR)())),R=(0,r.useRef)(null),P=(0,r.useRef)(null),L=(0,r.useMemo)(function(){return s({canvasId:D.current,containerRef:P,width:c,height:d,theme:f,autoResize:y,renderer:T,option:t})},[c,d,f,y,T,t,A]);(0,r.useEffect)(function(){var e=s(l(l({},L),{onInit:function(e){R.current=e,k&&Object.keys(k).forEach(function(t){e.on(t,k[t])}),C&&C(e),w&&w(e)}}));return(0,a.cK)(e).init(),function(){R.current&&(k&&Object.keys(k).forEach(function(e){var t;null===(t=R.current)||void 0===t||t.off(e)}),R.current.dispose(),R.current=null)}},[L,C,w,k]),(0,r.useEffect)(function(){R.current&&R.current.setOption(t,!0)},[t]),(0,r.useEffect)(function(){R.current&&(x?R.current.showLoading(E):R.current.hideLoading())},[x,E]);var z=l({width:"number"==typeof c?"".concat(c,"px"):c,height:"number"==typeof d?"".concat(d,"px"):d},h),M=(0,a.cK)(L);return o().createElement("div",{className:"taroviz-".concat(A," ").concat(m),style:z,ref:P},function(e){if(e&&"function"==typeof e.render)try{return e.render()}catch(e){}return null}(M))}},133(e,t,n){n.r(t),n.d(t,{default:()=>c});var r=n(15),o=n.n(r),a=n(412),i=(n(930),function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)});const c=function(e){return o().createElement(a.A,i({},e,{chartType:"funnel-chart"}))}},334(e,t,n){n.r(t),n.d(t,{default:()=>c});var r=n(15),o=n.n(r),a=n(412),i=(n(930),function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)});const c=function(e){return o().createElement(a.A,i({},e,{chartType:"gauge-chart"}))}},835(e,t,n){n.r(t),n.d(t,{default:()=>c});var r=n(15),o=n.n(r),a=n(412),i=(n(930),function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)});const c=function(e){return o().createElement(a.A,i({},e,{chartType:"heatmap-chart"}))}},127(e,t,n){n.r(t),n.d(t,{default:()=>c});var r=n(15),o=n.n(r),a=n(412),i=(n(930),function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)});const c=function(e){return o().createElement(a.A,i({},e,{chartType:"line-chart"}))}},481(e,t,n){n.r(t),n.d(t,{default:()=>c});var r=n(15),o=n.n(r),a=n(412),i=(n(930),function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)});const c=function(e){return o().createElement(a.A,i({},e,{chartType:"pie-chart"}))}},443(e,t,n){n.r(t),n.d(t,{default:()=>c});var r=n(15),o=n.n(r),a=n(412),i=(n(930),function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)});const c=function(e){return o().createElement(a.A,i({},e,{chartType:"radar-chart"}))}},490(e,t,n){n.r(t),n.d(t,{default:()=>s});var r=n(15),o=n.n(r),a=n(412),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},c=(0,r.memo)(function(e){return o().createElement(a.A,i({},e,{chartType:"sankey-chart"}))});c.displayName="SankeyChart";const s=c},589(e,t,n){n.r(t),n.d(t,{default:()=>c});var r=n(15),o=n.n(r),a=n(412),i=(n(930),function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)});const c=function(e){return o().createElement(a.A,i({},e,{chartType:"scatter-chart"}))}},673(e,t,n){n.r(t),n.d(t,{default:()=>s});var r=n(15),o=n.n(r),a=n(412),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},c=(0,r.memo)(function(e){return o().createElement(a.A,i({},e,{chartType:"sunburst-chart"}))});c.displayName="SunburstChart";const s=c},37(e,t,n){n.r(t),n.d(t,{default:()=>s});var r=n(15),o=n.n(r),a=n(412),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},c=(0,r.memo)(function(e){return o().createElement(a.A,i({},e,{chartType:"treemap-chart"}))});c.displayName="TreeMapChart";const s=c},251(e,t,n){var r;n.d(t,{ek:()=>c}),function(e){e.ANIMATION_START="animationStart",e.ANIMATION_UPDATE="animationUpdate",e.ANIMATION_END="animationEnd",e.ANIMATION_CANCEL="animationCancel",e.ANIMATION_REPEAT="animationRepeat"}(r||(r={}));var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},a=[{name:"default",description:"默认动画配置",config:{enabled:!0,duration:1e3,easing:"cubicOut",appearDuration:1200,appearEasing:"cubicOut",updateDuration:800,updateEasing:"cubicOut",disappearDuration:600,disappearEasing:"cubicIn",threshold:1e3,progressive:!0,progressiveStep:500}},{name:"fast",description:"快速动画配置",config:{enabled:!0,duration:500,easing:"linear",appearDuration:600,appearEasing:"linear",updateDuration:400,updateEasing:"linear",disappearDuration:300,disappearEasing:"linear",threshold:2e3,progressive:!0,progressiveStep:1e3}},{name:"slow",description:"慢速动画配置",config:{enabled:!0,duration:2e3,easing:"cubicInOut",appearDuration:2400,appearEasing:"cubicInOut",updateDuration:1600,updateEasing:"cubicInOut",disappearDuration:1200,disappearEasing:"cubicInOut",threshold:500,progressive:!0,progressiveStep:250}},{name:"bounce",description:"弹跳动画配置",config:{enabled:!0,duration:1500,easing:"bounceOut",appearDuration:1800,appearEasing:"bounceOut",updateDuration:1200,updateEasing:"bounceOut",disappearDuration:900,disappearEasing:"bounceIn",threshold:500,progressive:!0,progressiveStep:250}},{name:"elastic",description:"弹性动画配置",config:{enabled:!0,duration:1500,easing:"elasticOut",appearDuration:1800,appearEasing:"elasticOut",updateDuration:1200,updateEasing:"elasticOut",disappearDuration:900,disappearEasing:"elasticIn",threshold:500,progressive:!0,progressiveStep:250}}],i=function(){function e(e){this.presets=new Map,this.templates=new Map,this.eventHandlers=new Map,this.defaultConfig=(null==e?void 0:e.defaultConfig)||a[0].config,this.performanceConfig=(null==e?void 0:e.performance)||{monitor:!1,frameRate:60,hardwareAcceleration:!0},this.registerPresets(a)}return e.getInstance=function(t){return e.instance||(e.instance=new e(t)),e.instance},e.prototype.registerPreset=function(e){this.presets.set(e.name,e)},e.prototype.registerPresets=function(e){var t=this;e.forEach(function(e){return t.registerPreset(e)})},e.prototype.getPreset=function(e){return this.presets.get(e)},e.prototype.getAllPresets=function(){return Array.from(this.presets.values())},e.prototype.registerTemplate=function(e){this.templates.set(e.name,e)},e.prototype.getTemplate=function(e){return this.templates.get(e)},e.prototype.getAllTemplates=function(){return Array.from(this.templates.values())},e.prototype.setDefaultConfig=function(e){this.defaultConfig=e},e.prototype.getDefaultConfig=function(){return this.defaultConfig},e.prototype.getOptimizedConfig=function(e,t){void 0===e&&(e={}),void 0===t&&(t=0);var n=o(o({},this.defaultConfig),e);return n.threshold&&t>n.threshold&&(n.enabled=!1),n},e.prototype.getAnimationConfigByType=function(e,t){switch(t){case"appear":return{duration:e.appearDuration||e.duration||1e3,easing:e.appearEasing||e.easing||"cubicOut"};case"update":return{duration:e.updateDuration||e.duration||800,easing:e.updateEasing||e.easing||"cubicOut"};case"disappear":return{duration:e.disappearDuration||e.duration||600,easing:e.disappearEasing||e.easing||"cubicIn"};case"emphasis":return{duration:e.duration||300,easing:e.easing||"cubicOut"};default:return{duration:e.duration||1e3,easing:e.easing||"cubicOut"}}},e.prototype.generateEChartsAnimationConfig=function(e,t){void 0===e&&(e={}),void 0===t&&(t=0);var n=this.getOptimizedConfig(e,t);return n.enabled?{animation:!0,animationDuration:n.duration,animationEasing:n.easing,animationDelay:n.delay,animationDurationUpdate:n.updateDuration,animationEasingUpdate:n.updateEasing,animationDelayUpdate:n.delay,animationThreshold:n.threshold,progressive:n.progressive,progressiveThreshold:n.progressiveStep,progressiveChunkMode:"sequential"}:{animation:!1}},e.prototype.on=function(e,t){var n;this.eventHandlers.has(e)||this.eventHandlers.set(e,new Set),null===(n=this.eventHandlers.get(e))||void 0===n||n.add(t)},e.prototype.off=function(e,t){var n;t?null===(n=this.eventHandlers.get(e))||void 0===n||n.delete(t):this.eventHandlers.delete(e)},e.prototype.emit=function(e,t){var n=this.eventHandlers.get(e);n&&n.forEach(function(e){try{e(t)}catch(e){}})},e.prototype.updatePerformanceConfig=function(e){this.performanceConfig=o(o({},this.performanceConfig),e)},e.prototype.getPerformanceConfig=function(){return this.performanceConfig},e.prototype.reset=function(){this.presets.clear(),this.templates.clear(),this.eventHandlers.clear(),this.registerPresets(a)},e}();function c(e,t){return void 0===e&&(e={}),void 0===t&&(t=0),i.getInstance().generateEChartsAnimationConfig(e,t)}i.getInstance()},930(e,t,n){var r=n(348);const o=require("echarts/charts");var a=n(163),i=n(613),c=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};r.use(i.CanvasRenderer);var s=[o.PieChart,o.LineChart,o.BarChart,o.GaugeChart,o.ScatterChart,o.RadarChart,o.HeatmapChart,o.FunnelChart],l=[a.TitleComponent,a.TooltipComponent,a.LegendComponent,a.GridComponent,a.DataZoomComponent,a.VisualMapComponent];r.use(c(c([],s,!0),l,!0))},524(e,t,n){n.d(t,{sg:()=>x,$N:()=>b,AZ:()=>y,ZV:()=>w,w5:()=>I,uc:()=>C,t2:()=>m,m_:()=>v,nF:()=>E,uR:()=>h});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function a(e,t){void 0===t&&(t={});var n=t.locale,a=void 0===n?"zh-CN":n,i=t.timeZone,c=void 0===i?"Asia/Shanghai":i,s=o(t,["locale","timeZone"]),l="string"==typeof e||"number"==typeof e?new Date(e):e;return new Intl.DateTimeFormat(a,r({timeZone:c},s)).format(l)}function i(e,t){return void 0===t&&(t={}),a(e,r(r({},t),{timeStyle:void 0,hour:void 0,minute:void 0,second:void 0,fractionalSecondDigits:void 0}))}function c(e,t){return void 0===t&&(t={}),a(e,r(r({},t),{dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0,hour:t.hour||"2-digit",minute:t.minute||"2-digit"}))}function s(e,t){var n=t.locale,r=void 0===n?"zh-CN":n,o=t.currency,a=t.currencyDisplay,i=void 0===a?"symbol":a,c=t.digits,s=void 0===c?2:c,l=t.useGrouping,u=void 0===l||l;return new Intl.NumberFormat(r,{style:"currency",currency:o,currencyDisplay:i,minimumFractionDigits:s,maximumFractionDigits:s,useGrouping:u}).format(e)}function l(e,t){void 0===t&&(t={});var n=t.locale,r=void 0===n?"zh-CN":n,o=t.digits,a=void 0===o?2:o,i=t.useGrouping,c=void 0===i||i;return new Intl.NumberFormat(r,{style:"percent",minimumFractionDigits:a,maximumFractionDigits:a,useGrouping:c}).format(e)}function u(e,t){void 0===t&&(t={});var n=t.locale,a=void 0===n?"zh-CN":n,i=t.digits,c=void 0===i?2:i,s=t.useGrouping,l=void 0===s||s,u=o(t,["locale","digits","useGrouping"]);return new Intl.NumberFormat(a,r({minimumFractionDigits:c,maximumFractionDigits:c,useGrouping:l},u)).format(e)}function d(){return"undefined"!=typeof window&&window.navigator.language||"zh-CN"}function f(){return Intl.DateTimeFormat().resolvedOptions().timeZone}var p=function(){function e(e){void 0===e&&(e={}),this.locale=e.locale||d(),this.timeZone=e.timeZone||f()}return e.prototype.setLocale=function(e){this.locale=e},e.prototype.getLocale=function(){return this.locale},e.prototype.setTimeZone=function(e){this.timeZone=e},e.prototype.getTimeZone=function(){return this.timeZone},e.prototype.formatDateTime=function(e,t){return void 0===t&&(t={}),a(e,r(r({},t),{locale:this.locale,timeZone:this.timeZone}))},e.prototype.formatDate=function(e,t){return void 0===t&&(t={}),i(e,r(r({},t),{locale:this.locale,timeZone:this.timeZone}))},e.prototype.formatTime=function(e,t){return void 0===t&&(t={}),c(e,r(r({},t),{locale:this.locale,timeZone:this.timeZone}))},e.prototype.formatCurrency=function(e,t){return s(e,r(r({},t),{locale:this.locale}))},e.prototype.formatPercent=function(e,t){return void 0===t&&(t={}),l(e,r(r({},t),{locale:this.locale}))},e.prototype.formatNumber=function(e,t){return void 0===t&&(t={}),u(e,r(r({},t),{locale:this.locale}))},e}();new p;function h(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function v(){return Math.random().toString(36).substring(2,10)}function m(e){return"".concat(e,"-").concat(v())}var g=function(){return g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)},y={click:"click",mousemove:"mousemove",mouseup:"mouseup",mousedown:"mousedown",mouseover:"mouseover",mouseout:"mouseout",globalout:"globalout"};function b(e,t){var n=g({},e);return Object.keys(t).forEach(function(r){t[r]instanceof Object&&r in e&&e[r]instanceof Object?n[r]=b(e[r],t[r]):n[r]=t[r]}),n}function x(e,t){var n=null;return function(){for(var r=this,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];n&&clearTimeout(n),n=setTimeout(function(){e.apply(r,o),n=null},t)}}function E(e,t){var n=0;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=Date.now();a-n>=t&&(e.apply(this,r),n=a)}}function C(){var e="undefined"==typeof window,t=!e,n=void 0!==window.wx&&"function"==typeof window.wx.getSystemInfoSync,r=void 0!==window.my&&"function"==typeof window.my.getSystemInfoSync;return{isServer:e,isClient:t,isWeapp:n,isAlipay:r,isWeb:t&&!n&&!r}}function w(e,t,n){void 0===t&&(t=2),void 0===n&&(n={});var r=n.useGrouping,o=void 0===r||r,a=n.locale,i=void 0===a?"zh-CN":a;return new Intl.NumberFormat(i,{minimumFractionDigits:t,maximumFractionDigits:t,useGrouping:o}).format(e)}function I(e){var t=e.replace("#","");return(299*parseInt(t.substring(0,2),16)+587*parseInt(t.substring(2,4),16)+114*parseInt(t.substring(4,6),16))/1e3>128?"#000000":"#FFFFFF"}},163(e){e.exports=require("echarts/components")},348(e){e.exports=require("echarts/core")},613(e){e.exports=require("echarts/renderers")},15(e){e.exports=require("react")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};n.r(r),n.d(r,{AnnotationPresets:()=>He,BarChart:()=>T.default,BaseChart:()=>C,ErrorBoundary:()=>pe,FunnelChart:()=>R.default,GaugeChart:()=>D.default,H5Adapter:()=>M.A,HeatmapChart:()=>A.default,LazyChartRegistry:()=>Le,LineChart:()=>I.default,PRESET_THEMES:()=>ae,PieChart:()=>S.default,RadarChart:()=>O.default,SankeyChart:()=>z.default,ScatterChart:()=>k.default,SunburstChart:()=>L.default,ThemeEditor:()=>le,TreeMapChart:()=>P.default,WeappAdapter:()=>N.A,convertAnnotationToMarkArea:()=>Me,convertAnnotationToMarkLine:()=>ze,convertAnnotationToScatter:()=>Ne,createCompositeAnnotation:()=>Fe,createLazyChart:()=>Pe,darkTheme:()=>U,debounce:()=>w.sg,deepMerge:()=>w.$N,defaultTheme:()=>F,detectPlatform:()=>c.li,events:()=>w.AZ,exportChart:()=>Ze,formatNumber:()=>w.ZV,getAdapter:()=>c.cK,getContrastColor:()=>w.w5,getDarkThemes:()=>ne,getEnv:()=>c._$,getEnvironment:()=>w.uc,getLightThemes:()=>te,getRegisteredThemes:()=>K,getTheme:()=>Y,getThemeByName:()=>X,getThemesByTag:()=>ee,name:()=>lt,prefixedId:()=>w.t2,preloadAllCharts:()=>Re,preloadChart:()=>De,registerTheme:()=>Q,shortId:()=>w.m_,switchTheme:()=>$,themeManager:()=>ie,throttle:()=>w.nF,useAnnotation:()=>je,useChart:()=>Qe,useChartData:()=>nt,useChartTheme:()=>tt,useChartTools:()=>st,useDataPolling:()=>at,useEvents:()=>$e,useExport:()=>ct,useFullscreen:()=>it,useLoading:()=>et,useOption:()=>Ke,useResize:()=>Xe,useResponsive:()=>rt,useThemeSwitcher:()=>ot,uuid:()=>w.uR,version:()=>ut,withErrorBoundary:()=>he,withLazyLoad:()=>Ae});var o,a=n(15),i=n.n(a),c=n(574),s=n(251),l={};function u(e){return l[e]}!function(e){e.PANEL_SHOW="debugPanelShow",e.PANEL_HIDE="debugPanelHide",e.TAB_CHANGE="debugPanelTabChange",e.INFO_UPDATE="debugPanelInfoUpdate"}(o||(o={}));var d=function(){return d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},d.apply(this,arguments)},f=function(e){var t=e.debugInfo,n=e.options,r=void 0===n?{}:n,c=e.onEvent,s=(0,a.useState)(r.autoExpand||!1),l=s[0],u=s[1],f=(0,a.useState)(r.defaultTab||"instance"),h=f[0],v=f[1],m=(0,a.useRef)(null),g=r.position,y=void 0===g?"bottom-right":g,b=r.width,x=void 0===b?400:b,E=r.height,C=void 0===E?300:E,w=function(e){v(e),null==c||c({type:o.TAB_CHANGE,data:{tab:e}})},I=function(){var e=t.instance;return i().createElement("div",{style:p.debugPanelContent},i().createElement("h3",{style:p.h3},"图表实例信息"),i().createElement("div",{style:p.debugInfoGrid},i().createElement("div",{style:p.debugInfoItem},i().createElement("span",{style:p.debugInfoLabel},"ID:"),i().createElement("span",{style:p.debugInfoValue},(null==e?void 0:e.id)||"N/A")),i().createElement("div",{style:p.debugInfoItem},i().createElement("span",{style:p.debugInfoLabel},"类型:"),i().createElement("span",{style:p.debugInfoValue},(null==e?void 0:e.type)||"N/A")),i().createElement("div",{style:p.debugInfoItem},i().createElement("span",{style:p.debugInfoLabel},"版本:"),i().createElement("span",{style:p.debugInfoValue},(null==e?void 0:e.version)||"N/A")),i().createElement("div",{style:p.debugInfoItem},i().createElement("span",{style:p.debugInfoLabel},"渲染器:"),i().createElement("span",{style:p.debugInfoValue},(null==e?void 0:e.renderer)||"N/A")),i().createElement("div",{style:p.debugInfoItem},i().createElement("span",{style:p.debugInfoLabel},"宽度:"),i().createElement("span",{style:p.debugInfoValue},(null==e?void 0:e.width)||"N/A","px")),i().createElement("div",{style:p.debugInfoItem},i().createElement("span",{style:p.debugInfoLabel},"高度:"),i().createElement("span",{style:p.debugInfoValue},(null==e?void 0:e.height)||"N/A","px")),i().createElement("div",{style:p.debugInfoItem},i().createElement("span",{style:p.debugInfoLabel},"平台:"),i().createElement("span",{style:p.debugInfoValue},(null==e?void 0:e.platform)||"N/A"))))},T=function(){var e=t.config;return i().createElement("div",{style:p.debugPanelContent},i().createElement("h3",{style:p.h3},"配置信息"),i().createElement("div",{style:p.debugConfig},i().createElement("pre",{style:p.pre},JSON.stringify(e,null,2))))},S=function(){var e,n,r=t.data;return i().createElement("div",{style:p.debugPanelContent},i().createElement("h3",{style:p.h3},"数据信息"),i().createElement("div",{style:p.debugInfoGrid},i().createElement("div",{style:p.debugInfoItem},i().createElement("span",{style:p.debugInfoLabel},"系列数量:"),i().createElement("span",{style:p.debugInfoValue},(null===(e=null==r?void 0:r.series)||void 0===e?void 0:e.length)||0)),i().createElement("div",{style:p.debugInfoItem},i().createElement("span",{style:p.debugInfoLabel},"总数据量:"),i().createElement("span",{style:p.debugInfoValue},(null==r?void 0:r.totalDataCount)||0)),i().createElement("div",{style:p.debugInfoItem},i().createElement("span",{style:p.debugInfoLabel},"当前数据量:"),i().createElement("span",{style:p.debugInfoValue},(null==r?void 0:r.currentDataCount)||0))),i().createElement("div",{style:p.debugDataSeries},i().createElement("h4",{style:p.h4},"系列数据"),null===(n=null==r?void 0:r.series)||void 0===n?void 0:n.map(function(e,t){var n,r;return i().createElement("div",{key:t,style:p.debugDataSeriesItem},i().createElement("h5",{style:p.h5},"系列 ",t+1,": ",e.name||"未命名"),i().createElement("pre",{style:p.pre},JSON.stringify(null===(n=e.data)||void 0===n?void 0:n.slice(0,5),null,2),"..."),i().createElement("div",{style:p.debugSeriesInfo},i().createElement("span",null,"数据量: ",(null===(r=e.data)||void 0===r?void 0:r.length)||0)))})))},k=function(){var e=t.performance;return i().createElement("div",{style:p.debugPanelContent},i().createElement("h3",{style:p.h3},"性能信息"),i().createElement("div",{style:p.debugInfoGrid},i().createElement("div",{style:p.debugInfoItem},i().createElement("span",{style:p.debugInfoLabel},"初始化时间:"),i().createElement("span",{style:p.debugInfoValue},(null==e?void 0:e.initTime)||0,"ms")),i().createElement("div",{style:p.debugInfoItem},i().createElement("span",{style:p.debugInfoLabel},"渲染时间:"),i().createElement("span",{style:p.debugInfoValue},(null==e?void 0:e.renderTime)||0,"ms")),i().createElement("div",{style:p.debugInfoItem},i().createElement("span",{style:p.debugInfoLabel},"更新时间:"),i().createElement("span",{style:p.debugInfoValue},(null==e?void 0:e.updateTime)||0,"ms")),i().createElement("div",{style:p.debugInfoItem},i().createElement("span",{style:p.debugInfoLabel},"数据大小:"),i().createElement("span",{style:p.debugInfoValue},(null==e?void 0:e.dataSize)||0," bytes")),i().createElement("div",{style:p.debugInfoItem},i().createElement("span",{style:p.debugInfoLabel},"帧率:"),i().createElement("span",{style:p.debugInfoValue},(null==e?void 0:e.frameRate)||0," FPS"))),i().createElement("div",{style:p.debugPerformanceChart}))},O=function(){var e=t.events;return i().createElement("div",{style:p.debugPanelContent},i().createElement("h3",{style:p.h3},"事件信息"),i().createElement("div",{style:p.debugEventsList},null==e?void 0:e.slice().reverse().map(function(e,t){return i().createElement("div",{key:t,style:p.debugEventItem},i().createElement("div",{style:p.debugEventHeader},i().createElement("span",{style:p.debugEventType},e.type),i().createElement("span",{style:p.debugEventTime},new Date(e.timestamp).toLocaleTimeString())),i().createElement("div",{style:p.debugEventParams},i().createElement("pre",{style:p.pre},JSON.stringify(e.params,null,2))))}),(!e||0===e.length)&&i().createElement("div",{style:p.debugEmptyState},"暂无事件记录")))},A=function(){var e=t.errors;return i().createElement("div",{style:p.debugPanelContent},i().createElement("h3",{style:p.h3},"错误信息"),i().createElement("div",{style:p.debugErrorsList},null==e?void 0:e.slice().reverse().map(function(e,t){return i().createElement("div",{key:t,style:p.debugErrorItem},i().createElement("div",{style:p.debugErrorHeader},i().createElement("span",{style:p.debugErrorType},e.type),i().createElement("span",{style:p.debugErrorTime},new Date(e.timestamp).toLocaleTimeString())),i().createElement("div",{style:p.debugErrorMessage},e.message),e.stack&&i().createElement("div",{style:p.debugErrorStack},i().createElement("pre",{style:p.pre},e.stack)))}),(!e||0===e.length)&&i().createElement("div",{style:p.debugEmptyState},"暂无错误记录")))},D=function(){return i().createElement("div",{style:p.debugPanelContent},i().createElement("h3",{style:p.h3},"调试工具"),i().createElement("div",{style:p.debugToolsGrid},i().createElement("button",{style:p.debugToolButton},"导出配置"),i().createElement("button",{style:p.debugToolButton},"导出数据"),i().createElement("button",{style:p.debugToolButton},"刷新图表"),i().createElement("button",{style:p.debugToolButton},"清空数据"),i().createElement("button",{style:p.debugToolButton},"性能分析"),i().createElement("button",{style:p.debugToolButton},"重置图表")))},R=d(d(d(d(d(d({position:"fixed",zIndex:9999,backgroundColor:"rgba(255, 255, 255, 0.95)",border:"1px solid #e0e0e0",borderRadius:"4px",boxShadow:"0 2px 12px 0 rgba(0, 0, 0, 0.1)",fontFamily:"monospace",fontSize:"12px",overflow:"hidden"},"top-left"===y&&{top:"10px",left:"10px"}),"top-right"===y&&{top:"10px",right:"10px"}),"bottom-left"===y&&{bottom:"10px",left:"10px"}),"bottom-right"===y&&{bottom:"10px",right:"10px"}),l&&{width:x,height:C}),p.tarovizDebugPanel);return i().createElement("div",{ref:m,style:R},i().createElement("div",{style:p.debugPanelHeader},i().createElement("div",{style:p.debugPanelTitle},i().createElement("span",{style:p.debugPanelLogo},"🐛"),i().createElement("span",null,"TaroViz Debug Panel")),i().createElement("button",{style:p.debugPanelToggle,onClick:function(){var e=!l;u(e),null==c||c({type:e?o.PANEL_SHOW:o.PANEL_HIDE})},title:l?"收起":"展开"},l?"▼":"▶")),l&&i().createElement(i().Fragment,null,i().createElement("div",{style:p.debugPanelTabs},i().createElement("button",{style:d(d({},p.debugTab),"instance"===h&&p.debugTabActive),onClick:function(){return w("instance")},title:"实例信息"},"实例"),i().createElement("button",{style:d(d({},p.debugTab),"config"===h&&p.debugTabActive),onClick:function(){return w("config")},title:"配置信息"},"配置"),i().createElement("button",{style:d(d({},p.debugTab),"data"===h&&p.debugTabActive),onClick:function(){return w("data")},title:"数据信息"},"数据"),i().createElement("button",{style:d(d({},p.debugTab),"performance"===h&&p.debugTabActive),onClick:function(){return w("performance")},title:"性能信息"},"性能"),i().createElement("button",{style:d(d({},p.debugTab),"events"===h&&p.debugTabActive),onClick:function(){return w("events")},title:"事件信息"},"事件"),i().createElement("button",{style:d(d({},p.debugTab),"errors"===h&&p.debugTabActive),onClick:function(){return w("errors")},title:"错误信息"},"错误"),i().createElement("button",{style:d(d({},p.debugTab),"tools"===h&&p.debugTabActive),onClick:function(){return w("tools")},title:"调试工具"},"工具")),i().createElement("div",{style:p.debugPanelBody},function(){switch(h){case"instance":return I();case"config":return T();case"data":return S();case"performance":return k();case"events":return O();case"errors":return A();case"tools":return D();default:return i().createElement("div",null,"未知标签页")}}())))},p={tarovizDebugPanel:{transition:"all 0.3s ease"},debugPanelHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 12px",backgroundColor:"#f5f5f5",borderBottom:"1px solid #e0e0e0",cursor:"pointer"},debugPanelTitle:{display:"flex",alignItems:"center",gap:"8px",fontWeight:"bold",color:"#333"},debugPanelLogo:{fontSize:"14px"},debugPanelToggle:{background:"none",border:"none",fontSize:"12px",cursor:"pointer",color:"#666",padding:"4px"},debugPanelTabs:{display:"flex",borderBottom:"1px solid #e0e0e0",overflowX:"auto",whiteSpace:"nowrap"},debugTab:{padding:"8px 12px",background:"none",border:"none",borderBottom:"2px solid transparent",cursor:"pointer",fontSize:"12px",color:"#666",transition:"all 0.2s ease"},debugTabActive:{color:"#1890ff",borderBottomColor:"#1890ff",fontWeight:"bold"},debugPanelBody:{height:"calc(100% - 70px)",overflow:"auto"},debugPanelContent:{padding:"12px"},h3:{margin:"0 0 12px 0",fontSize:"14px",color:"#333"},h4:{margin:"12px 0 8px 0",fontSize:"13px",color:"#666"},h5:{margin:"8px 0 4px 0",fontSize:"12px",color:"#666"},debugInfoGrid:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"8px",marginBottom:"12px"},debugInfoItem:{display:"flex",justifyContent:"space-between",padding:"4px 8px",backgroundColor:"#f9f9f9",borderRadius:"4px"},debugInfoLabel:{fontWeight:"bold",color:"#666"},debugInfoValue:{color:"#333"},debugConfig:{backgroundColor:"#f5f5f5",padding:"8px",borderRadius:"4px",overflow:"auto",maxHeight:"200px"},pre:{margin:"0",fontSize:"11px",overflow:"auto"},debugDataSeries:{marginTop:"12px"},debugDataSeriesItem:{marginBottom:"12px",padding:"8px",backgroundColor:"#f9f9f9",borderRadius:"4px"},debugSeriesInfo:{marginTop:"4px",fontSize:"11px",color:"#666"},debugPerformanceChart:{marginTop:"12px",height:"120px",backgroundColor:"#f9f9f9",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:"#999"},debugEventsList:{maxHeight:"200px",overflow:"auto"},debugEventItem:{marginBottom:"8px",padding:"8px",backgroundColor:"#f9f9f9",borderRadius:"4px"},debugEventHeader:{display:"flex",justifyContent:"space-between",marginBottom:"4px"},debugEventType:{fontWeight:"bold",color:"#333"},debugEventTime:{fontSize:"10px",color:"#999"},debugEventParams:{fontSize:"11px",overflow:"auto",maxHeight:"80px"},debugErrorsList:{maxHeight:"200px",overflow:"auto"},debugErrorItem:{marginBottom:"8px",padding:"8px",backgroundColor:"#fff1f0",border:"1px solid #ffccc7",borderRadius:"4px"},debugErrorHeader:{display:"flex",justifyContent:"space-between",marginBottom:"4px"},debugErrorType:{fontWeight:"bold",color:"#f5222d"},debugErrorTime:{fontSize:"10px",color:"#999"},debugErrorMessage:{color:"#f5222d",marginBottom:"4px"},debugErrorStack:{fontSize:"10px",maxHeight:"100px",overflow:"auto"},debugToolsGrid:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"8px"},debugToolButton:{padding:"8px 12px",backgroundColor:"#f0f0f0",border:"1px solid #e0e0e0",borderRadius:"4px",cursor:"pointer",fontSize:"12px",transition:"all 0.2s ease"},debugEmptyState:{textAlign:"center",color:"#999",padding:"16px"}};var h,v=function(){return v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},v.apply(this,arguments)},m=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},g=function(){function e(){this.debugInfo={},this.isEnabled=!1,this.eventHandlers=new Map,this.maxEvents=100,this.maxErrors=50,this.debugInfo={instance:{},config:{},data:{series:[],totalDataCount:0,currentDataCount:0},performance:{},events:[],errors:[]}}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.init=function(){this.isEnabled=!0},e.prototype.enable=function(){this.isEnabled=!0},e.prototype.disable=function(){this.isEnabled=!1},e.prototype.getStatus=function(){return this.isEnabled},e.prototype.getDebugInfo=function(){return this.debugInfo},e.prototype.updateDebugInfo=function(e){this.isEnabled&&(this.debugInfo=v(v({},this.debugInfo),e),this.emitEvent(o.INFO_UPDATE,{info:e}))},e.prototype.updateInstanceInfo=function(e){this.updateDebugInfo({instance:e})},e.prototype.updateConfig=function(e){this.updateDebugInfo({config:e})},e.prototype.updateData=function(e){this.updateDebugInfo({data:e})},e.prototype.updatePerformance=function(e){this.updateDebugInfo({performance:e})},e.prototype.addEvent=function(e,t){if(this.isEnabled){var n={type:e,timestamp:Date.now(),params:t};this.debugInfo.events&&this.debugInfo.events.length>=this.maxEvents&&this.debugInfo.events.shift(),this.debugInfo.events=m(m([],this.debugInfo.events||[],!0),[n],!1),this.emitEvent(o.INFO_UPDATE,{info:this.debugInfo})}},e.prototype.addError=function(e,t,n){if(this.isEnabled){var r={type:e,message:t,stack:n,timestamp:Date.now()};this.debugInfo.errors&&this.debugInfo.errors.length>=this.maxErrors&&this.debugInfo.errors.shift(),this.debugInfo.errors=m(m([],this.debugInfo.errors||[],!0),[r],!1),this.emitEvent(o.INFO_UPDATE,{info:this.debugInfo})}},e.prototype.clear=function(){this.debugInfo={instance:{},config:{},data:{series:[],totalDataCount:0,currentDataCount:0},performance:{},events:[],errors:[]},this.emitEvent(o.INFO_UPDATE,{info:this.debugInfo})},e.prototype.on=function(e,t){var n;this.eventHandlers.has(e)||this.eventHandlers.set(e,new Set),null===(n=this.eventHandlers.get(e))||void 0===n||n.add(t)},e.prototype.off=function(e,t){var n;t?null===(n=this.eventHandlers.get(e))||void 0===n||n.delete(t):this.eventHandlers.delete(e)},e.prototype.emitEvent=function(e,t){var n=this.eventHandlers.get(e);n&&n.forEach(function(e){try{e(t)}catch(e){}})},e.prototype.setMaxEvents=function(e){this.maxEvents=e},e.prototype.setMaxErrors=function(e){this.maxErrors=e},e}().getInstance();!function(e){e.MONITORING_START="performanceMonitoringStart",e.MONITORING_END="performanceMonitoringEnd",e.METRIC_UPDATE="performanceMetricUpdate",e.ANALYSIS_COMPLETE="performanceAnalysisComplete"}(h||(h={}));var y=function(){return y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},y.apply(this,arguments)},b=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},x=function(){function e(e){void 0===e&&(e={});var t,n=this;this.metrics=new Map,this.eventHandlers=new Map,this.isMonitoring=!1,this.startTime=0,this.sampleIntervalId=null,this.frameRateHistory=[],this.lastFrameTime=0,this.config=y({enabled:!0,metrics:["initTime","renderTime","updateTime","dataSize","frameRate"],sampleInterval:1e3,maxSamples:100,realTime:!0,autoStart:!1},e),null===(t=this.config.metrics)||void 0===t||t.forEach(function(e){n.metrics.set(e,[])}),this.config.autoStart&&this.start()}return e.getInstance=function(t){return e.instance||(e.instance=new e(t)),e.instance},e.resetInstance=function(){e.instance&&(e.instance.stop(),e.instance=null)},e.prototype.on=function(e,t){var n;this.eventHandlers.has(e)||this.eventHandlers.set(e,[]),null===(n=this.eventHandlers.get(e))||void 0===n||n.push(t)},e.prototype.off=function(e,t){var n=this.eventHandlers.get(e);if(n){var r=n.indexOf(t);r>-1&&n.splice(r,1)}},e.prototype.emit=function(e,t){var n=this.eventHandlers.get(e);null==n||n.forEach(function(n){try{n({type:e,data:t})}catch(e){}})},e.prototype.start=function(){var e=this;!this.isMonitoring&&this.config.enabled&&(this.isMonitoring=!0,this.startTime=Date.now(),this.lastFrameTime=performance.now(),this.config.sampleInterval&&this.config.realTime&&(this.sampleIntervalId=setInterval(function(){e.sampleMetrics()},this.config.sampleInterval)),this.startFrameRateMonitoring(),this.emit(h.MONITORING_START))},e.prototype.stop=function(){this.isMonitoring&&(this.isMonitoring=!1,this.sampleIntervalId&&(clearInterval(this.sampleIntervalId),this.sampleIntervalId=null),this.stopFrameRateMonitoring(),this.emit(h.MONITORING_END))},e.prototype.startFrameRateMonitoring=function(){var e=this,t=function(){if(e.isMonitoring){var n=performance.now(),r=n-e.lastFrameTime,o=r>0?Math.round(1e3/r):0;e.frameRateHistory.push(o),e.frameRateHistory.length>60&&e.frameRateHistory.shift(),e.lastFrameTime=n,requestAnimationFrame(t)}};requestAnimationFrame(t)},e.prototype.stopFrameRateMonitoring=function(){this.frameRateHistory=[]},e.prototype.sampleMetrics=function(){var e,t;if(this.isMonitoring){if((null===(e=this.config.metrics)||void 0===e?void 0:e.includes("frameRate"))&&this.frameRateHistory.length>0){var n=this.frameRateHistory.reduce(function(e,t){return e+t},0)/this.frameRateHistory.length;this.recordMetric("frameRate",n,"FPS")}if((null===(t=this.config.metrics)||void 0===t?void 0:t.includes("memoryUsage"))&&void 0!==performance.memory){var r=(performance.memory.usedJSHeapSize/1048576).toFixed(2);this.recordMetric("memoryUsage",parseFloat(r),"MB")}}},e.prototype.recordMetric=function(e,t,n,r){var o;if(this.config.enabled&&(null===(o=this.config.metrics)||void 0===o?void 0:o.includes(e))){var a={type:e,value:t,unit:n,timestamp:Date.now(),description:r},i=this.metrics.get(e)||[];i.push(a),this.config.maxSamples&&i.length>this.config.maxSamples&&i.shift(),this.metrics.set(e,i),this.emit(h.METRIC_UPDATE,a)}},e.prototype.recordInitTime=function(e){this.recordMetric("initTime",e,"ms","图表初始化耗时")},e.prototype.recordRenderTime=function(e){this.recordMetric("renderTime",e,"ms","图表渲染耗时")},e.prototype.recordUpdateTime=function(e){this.recordMetric("updateTime",e,"ms","图表更新耗时")},e.prototype.recordDataSize=function(e){try{var t=new Blob([JSON.stringify(e)]).size/1024;this.recordMetric("dataSize",t,"KB","图表数据大小")}catch(e){}},e.prototype.analyze=function(){var e={},t={},n={},r={},o=0,a=100,i=[];this.metrics.forEach(function(a,i){if(0!==a.length){o+=a.length,r[i]=b([],a,!0);var c=a.reduce(function(e,t){return e+t.value},0);e[i]=parseFloat((c/a.length).toFixed(2)),t[i]=Math.max.apply(Math,a.map(function(e){return e.value})),n[i]=Math.min.apply(Math,a.map(function(e){return e.value}))}}),e.renderTime>100&&(a-=20,i.push("渲染时间过长,建议优化数据处理或减少图表复杂度")),e.updateTime>50&&(a-=15,i.push("更新时间过长,建议优化数据更新逻辑")),e.frameRate<30&&(a-=25,i.push("帧率过低,建议减少动画效果或优化渲染逻辑")),e.dataSize>100&&(a-=10,i.push("数据量过大,建议进行数据压缩或分页处理")),a=Math.max(0,Math.min(100,a));var c={averages:e,maxValues:t,minValues:n,trends:r,score:a,suggestions:i,totalSamples:o,duration:Date.now()-this.startTime};return this.emit(h.ANALYSIS_COMPLETE,c),c},e.prototype.generateReport=function(e){void 0===e&&(e={});var t=this.analyze(),n=y({format:"json",includeCharts:!1,includeSuggestions:!0,includeDetailedData:!1},e);switch(n.format){case"json":default:return this.generateJsonReport(t,n);case"csv":return this.generateCsvReport(t,n);case"html":return this.generateHtmlReport(t,n)}},e.prototype.generateJsonReport=function(e,t){var n={timestamp:(new Date).toISOString(),duration:e.duration,score:e.score,totalSamples:e.totalSamples};return t.includeSuggestions&&(n.suggestions=e.suggestions),t.includeDetailedData&&(n.averages=e.averages,n.maxValues=e.maxValues,n.minValues=e.minValues,n.trends=e.trends),n},e.prototype.generateCsvReport=function(e,t){var n="Metric,Type,Value,Unit\n";return Object.entries(e.averages).forEach(function(e){var t=e[0],r=e[1];n+="".concat(t,",Average,").concat(r,",ms\n")}),Object.entries(e.maxValues).forEach(function(e){var t=e[0],r=e[1];n+="".concat(t,",Max,").concat(r,",ms\n")}),Object.entries(e.minValues).forEach(function(e){var t=e[0],r=e[1];n+="".concat(t,",Min,").concat(r,",ms\n")}),n},e.prototype.generateHtmlReport=function(e,t){var n='\n <!DOCTYPE html>\n <html>\n <head>\n <title>TaroViz 性能报告</title>\n <style>\n body { font-family: Arial, sans-serif; margin: 20px; }\n .report-header { background: #f0f0f0; padding: 20px; border-radius: 8px; }\n .score { font-size: 48px; font-weight: bold; color: #4CAF50; }\n .metric-section { margin: 20px 0; }\n .metric-table { border-collapse: collapse; width: 100%; }\n .metric-table th, .metric-table td { border: 1px solid #ddd; padding: 8px; text-align: left; }\n .metric-table th { background-color: #f2f2f2; }\n .suggestions { background: #fff3cd; padding: 15px; border-radius: 8px; margin: 20px 0; }\n </style>\n </head>\n <body>\n <div class="report-header">\n <h1>TaroViz 性能报告</h1>\n <p>生成时间: '.concat((new Date).toISOString(),"</p>\n <p>监控时长: ").concat(Math.round(e.duration/1e3),' 秒</p>\n <div class="score">').concat(e.score," / 100</div>\n </div>\n ");return n+='\n <div class="metric-section">\n <h2>性能指标</h2>\n <table class="metric-table">\n <tr>\n <th>指标</th>\n <th>平均值</th>\n <th>最大值</th>\n <th>最小值</th>\n </tr>',Object.entries(e.averages).forEach(function(t){var r=t[0],o=t[1],a=e.maxValues[r],i=e.minValues[r];n+="\n <tr>\n <td>".concat(r,"</td>\n <td>").concat(o," ms</td>\n <td>").concat(a," ms</td>\n <td>").concat(i," ms</td>\n </tr>")}),n+="\n </table>\n </div>",t.includeSuggestions&&e.suggestions.length>0&&(n+='\n <div class="suggestions">\n <h2>性能建议</h2>\n <ul>',e.suggestions.forEach(function(e){n+="\n <li>".concat(e,"</li>")}),n+="\n </ul>\n </div>"),n+="\n </body>\n </html>"},e.prototype.getIsMonitoring=function(){return this.isMonitoring},e.prototype.getConfig=function(){return y({},this.config)},e.prototype.updateConfig=function(e){this.config=y(y({},this.config),e)},e.prototype.getAllMetrics=function(){return new Map(this.metrics)},e.prototype.getMetricsByType=function(e){return this.metrics.get(e)||[]},e.prototype.clearMetrics=function(){this.metrics.clear(),this.frameRateHistory=[],this.startTime=Date.now()},e.prototype.getScore=function(){return this.analyze().score},e.instance=null,e}(),E=(x.getInstance(),function(){return E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},E.apply(this,arguments)});const C=function(e){var t=e.chartId,n=e.option,r=e.width,o=void 0===r?"100%":r,d=e.height,p=void 0===d?"300px":d,h=e.theme,v=e.autoResize,m=void 0===v||v,y=e.direction,b=void 0===y?"ltr":y,C=e.onInit,w=e.onClick,I=e.onDataZoom,T=e.style,S=e.className,k=e.children,O=e.virtualScroll,A=void 0!==O&&O,D=e.virtualScrollPageSize,R=void 0===D?100:D,P=e.virtualScrollPreloadSize,L=void 0===P?50:P,z=e.enablePerformanceMonitoring,M=void 0!==z&&z,N=e.onPerformance,j=(e.enableZoom,e.onZoom),H=e.enableDataFiltering,F=void 0!==H&&H,U=e.filters,B=void 0===U?{}:U,G=e.onDataFiltered,_=e.enableLegendInteraction,V=void 0!==_&&_,W=e.legendInteractionMode,Z=void 0===W?"single":W,q=e.onLegendSelect,J=e.onLegendUnselect,Y=(e.onLegendSelectAll,e.onLegendInverseSelect,e.enableCustomTooltip),Q=void 0!==Y&&Y,K=e.customTooltipContent,X=e.customTooltipStyle,$=e.onTooltipShow,ee=e.onTooltipHide,te=e.onExport,ne=e.linkageConfig,re=void 0===ne?{}:ne,oe=e.onDataUpdate,ae=e.dataUpdateOptions,ie=void 0===ae?{}:ae,ce=(0,a.useRef)(null),se=(0,a.useRef)(null),le=(0,a.useRef)({currentPage:0,totalPages:1,totalDataCount:0,startIndex:0,endIndex:0,isScrolling:!1}),ue=(0,a.useRef)(null),de=(0,a.useRef)({initStartTime:0,initEndTime:0,renderStartTime:0,renderEndTime:0,updateStartTime:0,updateEndTime:0,dataSize:0}),fe=(0,a.useRef)(n),pe=(0,a.useRef)(null),he=function(){return e.debug?"boolean"==typeof e.debug?{enabled:e.debug,autoExpand:!1}:E({enabled:!0},e.debug):null},ve=function(e){if(void 0===e&&(e={}),se.current){var t=e.type,n=void 0===t?"png":t,r=e.pixelRatio,o=void 0===r?2:r,a=e.backgroundColor,i=void 0===a?"transparent":a,c=se.current.convertToDataURL({type:n,pixelRatio:o,backgroundColor:i});return te&&c&&te(c,e),c}},me=(0,a.useRef)({exportChartToDataURL:ve,exportChart:function(e){void 0===e&&(e={});var t=ve(e);if(t){var n=e.type,r=void 0===n?"png":n,o=e.filename,a=void 0===o?"chart-".concat(Date.now()):o,i="".concat(a,".").concat(r),c=document.createElement("a");c.download=i,c.href=t,c.click()}}});i().useImperativeHandle(e,function(){return me.current});var ge=function(e,t){var r=Date.now();switch(e){case"init":if(de.current.initStartTime){de.current.initEndTime=r;var o=de.current.initEndTime-de.current.initStartTime,a=JSON.stringify(n).length;ue.current&&(ue.current.recordInitTime(o),ue.current.recordDataSize(n)),N&&N({renderTime:0,initTime:o,updateTime:0,dataSize:a})}else de.current.initStartTime=r;break;case"render":if(de.current.renderStartTime){de.current.renderEndTime=r;var i=de.current.renderEndTime-de.current.renderStartTime;a=JSON.stringify(n).length;ue.current&&ue.current.recordRenderTime(i),N&&N({renderTime:i,initTime:de.current.initEndTime-de.current.initStartTime,updateTime:0,dataSize:a})}else de.current.renderStartTime=r;break;case"update":if(de.current.updateStartTime){de.current.updateEndTime=r;var c=de.current.updateEndTime-de.current.updateStartTime;a=JSON.stringify(n).length;ue.current&&(ue.current.recordUpdateTime(c),ue.current.recordDataSize(n)),N&&N({renderTime:0,initTime:0,updateTime:c,dataSize:a})}else de.current.updateStartTime=r}},ye=function(e){var t=0;e.series&&(Array.isArray(e.series)?e.series:[e.series]).forEach(function(e){e.data&&(Array.isArray(e.data)?t+=e.data.length:"object"==typeof e.data&&(t+=Object.keys(e.data).length))});return t},be=function(t){if(!t)return t;var n=JSON.parse(JSON.stringify(t));n.series&&Array.isArray(n.series)&&(n.series=n.series.map(function(e){if(e.data&&Array.isArray(e.data)){var t=function(e,t){return F&&t&&0!==Object.keys(t).length?e.filter(function(e){for(var n,r,o=0,a=Object.entries(t);o<a.length;o++){var i=a[o],c=i[0],s=i[1];if(e[c]!==s&&!(null===(r=null===(n=e[c])||void 0===n?void 0:n.includes)||void 0===r?void 0:r.call(n,s)))return!1}return!0}):e}(e.data,B);if(G&&G(t,B),A){le.current.totalDataCount=t.length,le.current.totalPages=Math.ceil(t.length/R);var n=le.current.currentPage*R,r=Math.min(n+R+L,t.length);return le.current.startIndex=n,le.current.endIndex=r,E(E({},e),{data:t.slice(n,r)})}return E(E({},e),{data:t})}return e}));var r=ye(n),o=(0,s.ek)(e.animation,r);return E(E({},n),o)};(0,a.useEffect)(function(){if(ce.current){var e=he();pe.current=e,M&&(ue.current=x.getInstance({enabled:!0,metrics:["initTime","renderTime","updateTime","dataSize","frameRate"],sampleInterval:1e3,maxSamples:100,realTime:!0,autoStart:!0})),ge("init");var r=be(n),a=(0,c.cK)({width:o,height:p,theme:h,option:r,onInit:C,containerRef:ce,direction:b});"function"==typeof a.setComponent&&a.setComponent({createChart:function(e){return{}}}),ge("render");var i=a.init();return ge("render"),t&&i&&(d=i,l[t]=d),(null==e?void 0:e.enabled)&&(s={instance:{id:t,type:"ECharts",renderer:"canvas",width:"number"==typeof o?o:void 0,height:"number"==typeof p?p:void 0,platform:"web"},config:r,data:{series:Array.isArray(r.series)?r.series:[],totalDataCount:ye(r),currentDataCount:ye(r)},performance:{initTime:de.current.initEndTime-de.current.initStartTime,renderTime:de.current.renderEndTime-de.current.renderStartTime,dataSize:JSON.stringify(r).length}},g.updateDebugInfo(s)),i&&w&&i.on("click",function(e){w(e),re.enableClickLinkage&&t&&re.linkedChartIds&&re.linkedChartIds.forEach(function(t){var n=u(t);n&&n.dispatchAction({type:"highlight",name:e.name})})}),i&&i.on("datazoom",function(e){if(I&&I(e),j&&j({start:e.start||0,end:e.end||100,dataZoomIndex:e.dataZoomIndex||0}),re.enableZoomLinkage&&t&&re.linkedChartIds&&re.linkedChartIds.forEach(function(t){var n=u(t);n&&n.dispatchAction({type:"dataZoom",start:e.start,end:e.end,dataZoomIndex:e.dataZoomIndex})}),A){if(le.current.isScrolling)return;le.current.isScrolling=!0;var r=e.start||0,o=Math.floor(r/100*le.current.totalPages);if(o!==le.current.currentPage){le.current.currentPage=o;var i=be(n);a.setOption(i)}setTimeout(function(){le.current.isScrolling=!1},100)}}),i&&V&&i.on("legendselectchanged",function(e){var n=e.name,r=e.selected;if(re.enableLegendLinkage&&t&&re.linkedChartIds&&re.linkedChartIds.forEach(function(e){var t=u(e);t&&t.setOption({legend:{selected:r}})}),"single"===Z){var o={};Object.keys(r).forEach(function(e){o[e]=e===n}),i.setOption({legend:{selected:o}}),q&&q({name:n,selected:o})}else r[n]?q&&q({name:n,selected:r}):J&&J({name:n,selected:r})}),i&&Q&&(i.on("tooltipshow",function(e){$&&$(e)}),i.on("tooltiphide",function(e){ee&&ee(e)}),K&&i.setOption({tooltip:E({formatter:function(e){return'<div style="background: white; padding: 10px; border: 1px solid #ccc;">'+JSON.stringify(e)+"</div>"}},X&&{backgroundColor:"transparent",borderColor:"transparent",textStyle:{}})})),se.current=a,ge("init"),function(){t&&function(e){l[e]&&delete l[e]}(t),ue.current&&(ue.current.stop(),ue.current=null),a&&a.dispose()}}var s,d},[ce,o,p,h,n,C,w,I,t,re]),(0,a.useEffect)(function(){se.current&&se.current.resize()},[o,p]);(0,a.useEffect)(function(){if(se.current&&n){ge("update");var e=be(n);se.current.setOption(e),ge("update")}if(oe&&!1!==ie.enabled){var t=fe.current;(function(e,t){return e===t||!(!e||!t)&&(ie.deepCompare?JSON.stringify(e)===JSON.stringify(t):e===t)})(t,n)||(oe(t,n),fe.current=n)}},[n,oe,ie]),(0,a.useEffect)(function(){se.current&&h&&se.current.setTheme(h)},[h]),(0,a.useEffect)(function(){if(m&&se.current){var e=function(){se.current.resize()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}},[m]);var xe=E({width:"number"==typeof o?"".concat(o,"px"):o,height:"number"==typeof p?"".concat(p,"px"):p,direction:b},T),Ee=he(),Ce=i().createElement("div",{ref:ce,style:xe,className:S},k);return(null==Ee?void 0:Ee.enabled)?i().createElement(i().Fragment,null,Ce,i().createElement(f,{options:Ee,debugInfo:{instance:{id:t,type:"ECharts",renderer:"canvas",width:"number"==typeof o?o:void 0,height:"number"==typeof p?p:void 0,platform:"web"},config:n,data:{series:Array.isArray(null==n?void 0:n.series)?n.series:[],totalDataCount:ye(n),currentDataCount:ye(n)},performance:{initTime:de.current.initEndTime-de.current.initStartTime,renderTime:de.current.renderEndTime-de.current.renderStartTime,updateTime:de.current.updateEndTime-de.current.updateStartTime,dataSize:JSON.stringify(n).length}}})):Ce};var w=n(524),I=n(127),T=n(188),S=n(481),k=n(589),O=n(443),A=n(835),D=n(334),R=n(133),P=n(37),L=n(673),z=n(490),M=n(123),N=n(999),j=function(){return j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},j.apply(this,arguments)},H=new Map,F={theme:"default",name:"Default",description:"简洁现代的默认主题",type:"light",mode:"light",darkMode:!1,tags:["modern","clean","default"],colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"#ffffff",textColor:"#333333",textColorSecondary:"#666666",borderColor:"#e8e8e8",dividerColor:"#f0f0f0",fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',chart:{legend:{textColor:"#333333",backgroundColor:"transparent",borderColor:"#e8e8e8"},axis:{textColor:"#666666",lineColor:"#e8e8e8",tickColor:"#e8e8e8",splitLineColor:"#f0f0f0"},tooltip:{textColor:"#333333",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#e8e8e8",borderRadius:4},title:{textColor:"#333333",subTextColor:"#666666"}}},U={theme:"dark",name:"Dark",description:"优雅的深色主题,适合夜间使用",type:"dark",mode:"dark",darkMode:!0,tags:["dark","night","modern"],colors:["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff9f7f","#8d48e3","#dd79ff"],backgroundColor:"#1a1a2e",textColor:"#e8e8e8",textColorSecondary:"#a0a0a0",borderColor:"#2d2d44",dividerColor:"#252538",fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',chart:{legend:{textColor:"#e8e8e8",backgroundColor:"transparent",borderColor:"#2d2d44"},axis:{textColor:"#a0a0a0",lineColor:"#2d2d44",tickColor:"#2d2d44",splitLineColor:"#252538"},tooltip:{textColor:"#e8e8e8",backgroundColor:"rgba(26, 26, 46, 0.95)",borderColor:"#2d2d44",borderRadius:4},title:{textColor:"#e8e8e8",subTextColor:"#a0a0a0"}}},B={theme:"neon",name:"Neon",description:"赛博朋克霓虹风格,炫酷吸睛",type:"dark",mode:"dark",darkMode:!0,tags:["neon","cyberpunk","colorful","dark"],colors:["#00fff5","#ff00ff","#ffff00","#00ff00","#ff6b6b","#4ecdc4","#ffe66d","#95e1d3","#f38181"],backgroundColor:"#0d0d1a",textColor:"#ffffff",textColorSecondary:"#b0b0b0",borderColor:"#1a1a2e",dividerColor:"#1a1a2e",fontFamily:'"JetBrains Mono", "Fira Code", monospace',effects:{shadows:!0,shadowColor:"rgba(0, 255, 245, 0.3)",gradients:!0},chart:{tooltip:{textColor:"#ffffff",backgroundColor:"rgba(13, 13, 26, 0.95)",borderColor:"#00fff5",borderRadius:4,shadowColor:"rgba(0, 255, 245, 0.3)"}}},G={theme:"glass",name:"Glass",description:"现代玻璃态设计,半透明质感",type:"light",mode:"light",darkMode:!1,tags:["glass","modern","minimal","light"],colors:["#667eea","#764ba2","#f093fb","#f5576c","#4facfe","#00f2fe","#43e97b","#38f9d7","#fa709a"],backgroundColor:"rgba(255, 255, 255, 0.8)",backgroundGradient:{start:"#f5f7fa",end:"#c3cfe2",angle:135},textColor:"#2d3748",textColorSecondary:"#718096",borderColor:"rgba(255, 255, 255, 0.5)",dividerColor:"rgba(255, 255, 255, 0.3)",fontFamily:"Inter, -apple-system, BlinkMacSystemFont, sans-serif",effects:{glassmorphism:!0,blur:10,shadows:!0,shadowColor:"rgba(0, 0, 0, 0.1)",borderRadius:"large"},chart:{tooltip:{textColor:"#2d3748",backgroundColor:"rgba(255, 255, 255, 0.9)",borderColor:"rgba(255, 255, 255, 0.5)",borderRadius:12}}},_={theme:"pastel",name:"Pastel",description:"柔和粉彩配色,温馨舒适",type:"light",mode:"light",darkMode:!1,tags:["pastel","soft","gentle","light"],colors:["#ffb3ba","#ffdfba","#ffffba","#baffc9","#bae1ff","#f0b3ff","#b3fff0","#ffb3d9","#d9ffb3"],backgroundColor:"#fff9f5",textColor:"#5d5d5d",textColorSecondary:"#8a8a8a",borderColor:"#f0e6e0",dividerColor:"#f5f0eb",fontFamily:"Nunito, -apple-system, BlinkMacSystemFont, sans-serif",chart:{tooltip:{textColor:"#5d5d5d",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#f0e6e0",borderRadius:8}}},V={theme:"sunset",name:"Sunset",description:"温暖日落渐变,夕阳余晖",type:"light",mode:"light",darkMode:!1,tags:["sunset","warm","gradient","light"],colors:["#ff6b6b","#feca57","#ff9ff3","#54a0ff","#5f27cd","#ff9f43","#ee5a24","#009432","#f368e0"],backgroundColor:"#fff5f0",backgroundGradient:{start:"#ffecd2",end:"#fcb69f",angle:135},textColor:"#4a4a4a",textColorSecondary:"#7a7a7a",borderColor:"#ffd5c8",dividerColor:"#ffebe6",fontFamily:"Quicksand, -apple-system, BlinkMacSystemFont, sans-serif",effects:{gradients:!0,shadows:!0,shadowColor:"rgba(255, 107, 107, 0.2)",borderRadius:"medium"}},W={theme:"ocean",name:"Ocean",description:"深邃海洋蓝,宁静清新",type:"light",mode:"light",darkMode:!1,tags:["ocean","blue","calm","light"],colors:["#0077b6","#00b4d8","#90e0ef","#caf0f8","#03045e","#023e8a","#0096c7","#48cae4","#ade8f4"],backgroundColor:"#f0f8ff",backgroundGradient:{start:"#e0f2fe",end:"#bae6fd",angle:180},textColor:"#1e3a5f",textColorSecondary:"#4a6fa5",borderColor:"#cce7f5",dividerColor:"#e1f0f9",fontFamily:"Nunito, -apple-system, BlinkMacSystemFont, sans-serif",effects:{gradients:!0,shadows:!0,shadowColor:"rgba(0, 119, 182, 0.15)"}},Z={theme:"cyber",name:"Cyber",description:"未来科技感,赛博朋克",type:"dark",mode:"dark",darkMode:!0,tags:["cyber","tech","futuristic","dark"],colors:["#00f5ff","#ff00ff","#00ff00","#ffff00","#ff0080","#8000ff","#00ff80","#ff8000","#0080ff"],backgroundColor:"#0a0a12",textColor:"#e0e0e0",textColorSecondary:"#808090",borderColor:"#1a1a2e",dividerColor:"#12121e",fontFamily:'"Orbitron", "Rajdhani", "JetBrains Mono", monospace',effects:{shadows:!0,shadowColor:"rgba(0, 245, 255, 0.4)",gradients:!0,borderRadius:"none"},chart:{tooltip:{textColor:"#ffffff",backgroundColor:"rgba(10, 10, 18, 0.95)",borderColor:"#00f5ff",borderRadius:0,shadowColor:"rgba(0, 245, 255, 0.4)"}}},q={theme:"retro",name:"Retro",description:"怀旧复古风格,温馨怀旧",type:"light",mode:"light",darkMode:!1,tags:["retro","vintage","nostalgic","light"],colors:["#d63031","#e17055","#fdcb6e","#00b894","#0984e3","#6c5ce7","#e84393","#00cec9","#fab1a0"],backgroundColor:"#fdf6e3",textColor:"#5c4b37",textColorSecondary:"#8b7355",borderColor:"#e8dcc8",dividerColor:"#f0e8d8",fontFamily:'"Courier Prime", "Courier New", monospace',effects:{shadows:!1,borderRadius:"small"}},J={theme:"elegant",name:"Elegant",description:"低调雅致风格,精致品味",type:"light",mode:"light",darkMode:!1,tags:["elegant","minimal","sophisticated","light"],colors:["#2c3e50","#34495e","#7f8c8d","#95a5a6","#bdc3c7","#ecf0f1","#1abc9c","#16a085","#3498db"],backgroundColor:"#fafafa",textColor:"#2c3e50",textColorSecondary:"#7f8c8d",borderColor:"#e8e8e8",dividerColor:"#f0f0f0",fontFamily:'"Playfair Display", Georgia, serif',effects:{shadows:!0,shadowColor:"rgba(0, 0, 0, 0.08)",borderRadius:"medium"}};function Y(e){if(!e)return F;var t;if(e.theme&&"string"==typeof e.theme){var n=H.get(e.theme);t=n||(e.darkMode?U:F)}else t=e.darkMode?U:F;return j(j({},t),e)}function Q(e,t){H.set(e,j(j({},t),{name:e}))}function K(){return Array.from(H.values())}function X(e){return H.get(e)}function $(e,t){var n;"string"==typeof e?n=H.get(e)||F:(n=e,e.name&&Q(e.name,e));return"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("themeChange",{detail:n})),null==t||t(),n}function ee(e){return K().filter(function(t){var n;return null===(n=t.tags)||void 0===n?void 0:n.includes(e)})}function te(){return K().filter(function(e){return!e.darkMode})}function ne(){return K().filter(function(e){return e.darkMode})}var re={default:F,dark:U,walden:j(j({},F),{theme:"walden",name:"Walden",description:"清新自然风格",colors:["#0a437a","#3a84c4","#22a783","#48b591","#7fcdbb","#c9e4ca"],backgroundColor:"#f0f8f5",textColor:"#2c5042"}),chalk:j(j({},F),{theme:"chalk",name:"Chalk",description:"粉笔风格",colors:["#2e8de5","#f0805a","#5ab1ef","#91d5ff","#faad14"],backgroundColor:"#ffffff",textColor:"#000000"}),"purple-passion":j(j({},F),{theme:"purple-passion",name:"Purple Passion",description:"紫色浪漫",colors:["#9c27b0","#e91e63","#ff5722","#ff9800","#ffc107"],backgroundColor:"#f5f5f5",textColor:"#333333"}),"blue-green":j(j({},F),{theme:"blue-green",name:"Blue Green",description:"蓝绿清新",colors:["#00838f","#00acc1","#03a9f4","#29b6f6","#4fc3f7"],backgroundColor:"#e0f7fa",textColor:"#006064"}),golden:j(j({},F),{theme:"golden",name:"Golden",description:"金色奢华",colors:["#ffd700","#ffed4e","#f9a825","#ffc107","#ffb300"],backgroundColor:"#fff8e1",textColor:"#ff6f00"}),forest:j(j({},F),{theme:"forest",name:"Forest",description:"森林绿色",colors:["#2e7d32","#388e3c","#43a047","#4caf50","#66bb6a"],backgroundColor:"#f1f8e9",textColor:"#1b5e20"}),neon:B,glass:G,pastel:_,sunset:V,ocean:W,cyber:Z,retro:q,elegant:J};Object.entries(re).forEach(function(e){var t=e[0],n=e[1];H.set(t,n)});var oe=function(){return oe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oe.apply(this,arguments)},ae={default:{name:"default",type:"light",isDark:!1,variables:{"--tv-bg-color":"#ffffff","--tv-bg-color-secondary":"#fafafa","--tv-text-color":"#333333","--tv-text-color-secondary":"#666666","--tv-primary-color":"#1890ff","--tv-primary-color-hover":"#40a9ff","--tv-primary-color-active":"#096dd9","--tv-success-color":"#52c41a","--tv-warning-color":"#faad14","--tv-error-color":"#ff4d4f","--tv-border-color":"#d9d9d9","--tv-divider-color":"#f0f0f0","--tv-shadow-color":"rgba(0, 0, 0, 0.1)","--tv-chart-color-1":"#5470c6","--tv-chart-color-2":"#91cc75","--tv-chart-color-3":"#fac858","--tv-chart-color-4":"#ee6666","--tv-chart-color-5":"#73c0de","--tv-chart-color-6":"#3ba272","--tv-chart-color-7":"#fc8452","--tv-chart-color-8":"#9a60b4","--tv-font-family":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"--tv-font-size":"14px","--tv-font-size-small":"12px","--tv-font-size-large":"16px","--tv-border-radius":"4px","--tv-border-radius-small":"2px","--tv-transition-duration":"0.3s"}},dark:{name:"dark",type:"dark",isDark:!0,variables:{"--tv-bg-color":"#1a1a2e","--tv-bg-color-secondary":"#16213e","--tv-text-color":"#e0e0e0","--tv-text-color-secondary":"#a0a0a0","--tv-primary-color":"#1890ff","--tv-primary-color-hover":"#40a9ff","--tv-primary-color-active":"#096dd9","--tv-success-color":"#52c41a","--tv-warning-color":"#faad14","--tv-error-color":"#ff4d4f","--tv-border-color":"#404040","--tv-divider-color":"#303030","--tv-shadow-color":"rgba(0, 0, 0, 0.3)","--tv-chart-color-1":"#5470c6","--tv-chart-color-2":"#91cc75","--tv-chart-color-3":"#fac858","--tv-chart-color-4":"#ee6666","--tv-chart-color-5":"#73c0de","--tv-chart-color-6":"#3ba272","--tv-chart-color-7":"#fc8452","--tv-chart-color-8":"#9a60b4","--tv-font-family":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"--tv-font-size":"14px","--tv-font-size-small":"12px","--tv-font-size-large":"16px","--tv-border-radius":"4px","--tv-border-radius-small":"2px","--tv-transition-duration":"0.3s"}},vintage:{name:"vintage",type:"custom",isDark:!1,variables:{"--tv-bg-color":"#fef9ef","--tv-bg-color-secondary":"#fcf5e9","--tv-text-color":"#5c4d3d","--tv-text-color-secondary":"#8b7355","--tv-primary-color":"#d4a574","--tv-primary-color-hover":"#c49566","--tv-primary-color-active":"#b8895a","--tv-success-color":"#8db78e","--tv-warning-color":"#e6c87a","--tv-error-color":"#c97c6d","--tv-border-color":"#e0d5c7","--tv-divider-color":"#f0e8de","--tv-shadow-color":"rgba(92, 77, 61, 0.1)","--tv-chart-color-1":"#d4a574","--tv-chart-color-2":"#8db78e","--tv-chart-color-3":"#e6c87a","--tv-chart-color-4":"#c97c6d","--tv-chart-color-5":"#9ab5a8","--tv-chart-color-6":"#c9b8d4","--tv-chart-color-7":"#a8c4d4","--tv-chart-color-8":"#d4c49a","--tv-font-family":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"--tv-font-size":"14px","--tv-font-size-small":"12px","--tv-font-size-large":"16px","--tv-border-radius":"4px","--tv-border-radius-small":"2px","--tv-transition-duration":"0.3s"}},macarons:{name:"macarons",type:"custom",isDark:!1,variables:{"--tv-bg-color":"#fefcf9","--tv-bg-color-secondary":"#f9f6f2","--tv-text-color":"#505050","--tv-text-color-secondary":"#757575","--tv-primary-color":"#60acf2","--tv-primary-color-hover":"#4d9de0","--tv-primary-color-active":"#3d8bd0","--tv-success-color":"#62d17a","--tv-warning-color":"#f7c752","--tv-error-color":"#f4645a","--tv-border-color":"#e8e4e0","--tv-divider-color":"#f0ece8","--tv-shadow-color":"rgba(80, 80, 80, 0.08)","--tv-chart-color-1":"#60acf2","--tv-chart-color-2":"#62d17a","--tv-chart-color-3":"#f7c752","--tv-chart-color-4":"#f4645a","--tv-chart-color-5":"#95d9f2","--tv-chart-color-6":"#a8e6cf","--tv-chart-color-7":"#ffd3b6","--tv-chart-color-8":"#ffaaa5","--tv-font-family":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"--tv-font-size":"14px","--tv-font-size-small":"12px","--tv-font-size-large":"16px","--tv-border-radius":"12px","--tv-border-radius-small":"8px","--tv-transition-duration":"0.3s"}},infographic:{name:"infographic",type:"custom",isDark:!1,variables:{"--tv-bg-color":"#ffffff","--tv-bg-color-secondary":"#f5f7fa","--tv-text-color":"#1a1a1a","--tv-text-color-secondary":"#666666","--tv-primary-color":"#277 ace","--tv-primary-color-hover":"#3a8ee6","--tv-primary-color-active":"#146bb3","--tv-success-color":"#2fc25b","--tv-warning-color":"#fbd438","--tv-error-color":"#e8352e","--tv-border-color":"#e0e6ed","--tv-divider-color":"#f0f2f5","--tv-shadow-color":"rgba(26, 26, 26, 0.06)","--tv-chart-color-1":"#277ace","--tv-chart-color-2":"#31cce8","--tv-chart-color-3":"#23d3a2","--tv-chart-color-4":"#fbd438","--tv-chart-color-5":"#f87f50","--tv-chart-color-6":"#e8352e","--tv-chart-color-7":"#b02ad3","--tv-chart-color-8":"#6475d4","--tv-font-family":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"--tv-font-size":"14px","--tv-font-size-small":"12px","--tv-font-size-large":"16px","--tv-border-radius":"2px","--tv-border-radius-small":"1px","--tv-transition-duration":"0.2s"}},helianthus:{name:"helianthus",type:"custom",isDark:!1,variables:{"--tv-bg-color":"#fffbf5","--tv-bg-color-secondary":"#fef7f0","--tv-text-color":"#5c4d3d","--tv-text-color-secondary":"#8b7355","--tv-primary-color":"#f5c242","--tv-primary-color-hover":"#e6b53e","--tv-primary-color-active":"#d4a435","--tv-success-color":"#7ec890","--tv-warning-color":"#f5a623","--tv-error-color":"#e74c3c","--tv-border-color":"#e8dccf","--tv-divider-color":"#f0e8de","--tv-shadow-color":"rgba(92, 77, 61, 0.08)","--tv-chart-color-1":"#f5c242","--tv-chart-color-2":"#7ec890","--tv-chart-color-3":"#5eb8d9","--tv-chart-color-4":"#e74c3c","--tv-chart-color-5":"#9b7ed4","--tv-chart-color-6":"#f5a623","--tv-chart-color-7":"#6dd3ce","--tv-chart-color-8":"#d4778b","--tv-font-family":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"--tv-font-size":"14px","--tv-font-size-small":"12px","--tv-font-size-large":"16px","--tv-border-radius":"6px","--tv-border-radius-small":"4px","--tv-transition-duration":"0.3s"}},blue:{name:"blue",type:"custom",isDark:!1,variables:{"--tv-bg-color":"#f0f7ff","--tv-bg-color-secondary":"#e6f0ff","--tv-text-color":"#1a3a5c","--tv-text-color-secondary":"#4a6a8c","--tv-primary-color":"#1890ff","--tv-primary-color-hover":"#40a9ff","--tv-primary-color-active":"#096dd9","--tv-success-color":"#52c41a","--tv-warning-color":"#faad14","--tv-error-color":"#ff4d4f","--tv-border-color":"#bfd9f2","--tv-divider-color":"#d9e8fc","--tv-shadow-color":"rgba(24, 144, 255, 0.15)","--tv-chart-color-1":"#1890ff","--tv-chart-color-2":"#91cc75","--tv-chart-color-3":"#fac858","--tv-chart-color-4":"#ee6666","--tv-chart-color-5":"#73c0de","--tv-chart-color-6":"#3ba272","--tv-chart-color-7":"#fc8452","--tv-chart-color-8":"#9a60b4","--tv-font-family":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"--tv-font-size":"14px","--tv-font-size-small":"12px","--tv-font-size-large":"16px","--tv-border-radius":"4px","--tv-border-radius-small":"2px","--tv-transition-duration":"0.3s"}},red:{name:"red",type:"custom",isDark:!1,variables:{"--tv-bg-color":"#fff5f5","--tv-bg-color-secondary":"#ffe6e6","--tv-text-color":"#5c1a1a","--tv-text-color-secondary":"#8c4a4a","--tv-primary-color":"#ff4d4f","--tv-primary-color-hover":"#ff7875","--tv-primary-color-active":"#d9363e","--tv-success-color":"#52c41a","--tv-warning-color":"#faad14","--tv-error-color":"#ff4d4f","--tv-border-color":"#f2bfbf","--tv-divider-color":"#fcd9d9","--tv-shadow-color":"rgba(255, 77, 79, 0.15)","--tv-chart-color-1":"#ff4d4f","--tv-chart-color-2":"#ffd700","--tv-chart-color-3":"#ff7c4d","--tv-chart-color-4":"#9c4dff","--tv-chart-color-5":"#00d0ff","--tv-chart-color-6":"#52c41a","--tv-chart-color-7":"#faad14","--tv-chart-color-8":"#8b5cf6","--tv-font-family":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"--tv-font-size":"14px","--tv-font-size-small":"12px","--tv-font-size-large":"16px","--tv-border-radius":"4px","--tv-border-radius-small":"2px","--tv-transition-duration":"0.3s"}},green:{name:"green",type:"custom",isDark:!1,variables:{"--tv-bg-color":"#f5fff5","--tv-bg-color-secondary":"#e6ffe6","--tv-text-color":"#1a3d1a","--tv-text-color-secondary":"#4a6c4a","--tv-primary-color":"#52c41a","--tv-primary-color-hover":"#73d13d","--tv-primary-color-active":"#389e0d","--tv-success-color":"#52c41a","--tv-warning-color":"#faad14","--tv-error-color":"#ff4d4f","--tv-border-color":"#bff2bf","--tv-divider-color":"#d9fcd9","--tv-shadow-color":"rgba(82, 196, 26, 0.15)","--tv-chart-color-1":"#52c41a","--tv-chart-color-2":"#1890ff","--tv-chart-color-3":"#faad14","--tv-chart-color-4":"#ff4d4f","--tv-chart-color-5":"#722ed1","--tv-chart-color-6":"#13c2c2","--tv-chart-color-7":"#fa8c16","--tv-chart-color-8":"#eb2f96","--tv-font-family":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"--tv-font-size":"14px","--tv-font-size-small":"12px","--tv-font-size-large":"16px","--tv-border-radius":"4px","--tv-border-radius-small":"2px","--tv-transition-duration":"0.3s"}},purple:{name:"purple",type:"custom",isDark:!1,variables:{"--tv-bg-color":"#faf5ff","--tv-bg-color-secondary":"#f0e6ff","--tv-text-color":"#3d1a5c","--tv-text-color-secondary":"#6a4a8c","--tv-primary-color":"#722ed1","--tv-primary-color-hover":"#9254de","--tv-primary-color-active":"#531dab","--tv-success-color":"#52c41a","--tv-warning-color":"#faad14","--tv-error-color":"#ff4d4f","--tv-border-color":"#d9bff2","--tv-divider-color":"#ecd9fc","--tv-shadow-color":"rgba(114, 46, 209, 0.15)","--tv-chart-color-1":"#722ed1","--tv-chart-color-2":"#eb2f96","--tv-chart-color-3":"#1890ff","--tv-chart-color-4":"#52c41a","--tv-chart-color-5":"#faad14","--tv-chart-color-6":"#ff4d4f","--tv-chart-color-7":"#13c2c2","--tv-chart-color-8":"#fa8c16","--tv-font-family":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"--tv-font-size":"14px","--tv-font-size-small":"12px","--tv-font-size-large":"16px","--tv-border-radius":"4px","--tv-border-radius-small":"2px","--tv-transition-duration":"0.3s"}}},ie=function(){function e(){this.currentTheme=ae.default,this.listeners=new Set,this.cssVarPrefix="--tv-"}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.getCurrentTheme=function(){return this.currentTheme},e.prototype.getPresetTheme=function(e){return ae[e]},e.prototype.getPresetThemeNames=function(){return Object.keys(ae)},e.prototype.setTheme=function(e){var t="string"==typeof e?ae[e]:e;t&&(this.currentTheme=t,this.applyThemeVariables(t),this.notifyListeners())},e.prototype.applyThemeVariables=function(e){if("undefined"!=typeof document){var t=document.documentElement,n=e.variables;Object.entries(n).forEach(function(e){var n=e[0],r=e[1];t.style.setProperty(n,r)}),t.setAttribute("data-theme",e.name),t.setAttribute("data-theme-type",e.type),e.isDark?t.setAttribute("data-theme-dark","true"):t.removeAttribute("data-theme-dark")}},e.prototype.getEChartsTheme=function(){var e=this.currentTheme;return{color:[e.variables["--tv-chart-color-1"],e.variables["--tv-chart-color-2"],e.variables["--tv-chart-color-3"],e.variables["--tv-chart-color-4"],e.variables["--tv-chart-color-5"],e.variables["--tv-chart-color-6"],e.variables["--tv-chart-color-7"],e.variables["--tv-chart-color-8"]],backgroundColor:e.variables["--tv-bg-color"],textStyle:{color:e.variables["--tv-text-color"],fontFamily:e.variables["--tv-font-family"]}}},e.prototype.toggleDarkMode=function(){"dark"===this.currentTheme.type?this.setTheme("default"):this.setTheme("dark")},e.prototype.isDarkMode=function(){return this.currentTheme.isDark||"dark"===this.currentTheme.type},e.prototype.onThemeChange=function(e){var t=this;return this.listeners.add(e),function(){return t.listeners.delete(e)}},e.prototype.notifyListeners=function(){var e=this;this.listeners.forEach(function(t){try{t(e.currentTheme)}catch(e){}})},e.prototype.createCustomTheme=function(e,t){return void 0===t&&(t="custom"),{name:t,type:"custom",isDark:!1,variables:oe(oe({},ae.default.variables),e)}},e.prototype.exportThemeAsCSS=function(e){var t=e||this.currentTheme,n=t.variables;return':root[data-theme="'.concat(t.name,'"] {\n').concat(Object.entries(n).map(function(e){var t=e[0],n=e[1];return" ".concat(t,": ").concat(n,";")}).join("\n"),"\n}")},e.prototype.exportThemeAsJSON=function(e){var t=e||this.currentTheme;return JSON.stringify(t,null,2)},e.instance=null,e}().getInstance();var ce=function(){return ce=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ce.apply(this,arguments)},se=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};const le=function(e){var t=e.selectedTheme,n=e.onThemeChange,r=e.onThemeSave,o=e.disabled,c=void 0!==o&&o,s=e.style,l=void 0===s?{}:s,u=e.className,d=void 0===u?"":u,f=K(),p=(0,a.useState)(f[0]||{}),h=p[0],v=p[1],m=(0,a.useState)(""),g=m[0],y=m[1],b=(0,a.useState)(!1),x=b[0],E=b[1],C=(0,a.useState)(h.colors||[]),w=C[0],I=C[1],T=(0,a.useState)(h.backgroundColor||"#ffffff"),S=T[0],k=T[1],O=(0,a.useState)(h.textColor||"#333333"),A=O[0],D=O[1],R=(0,a.useState)(h.darkMode||!1),P=R[0],L=R[1];(0,a.useEffect)(function(){if(t){var e=f.find(function(e){return e.name===t});e&&(v(e),I(e.colors||[]),k(e.backgroundColor||"#ffffff"),D(e.textColor||"#333333"),L(e.darkMode||!1))}},[t,f]),(0,a.useEffect)(function(){I(h.colors||[]),k(h.backgroundColor||"#ffffff"),D(h.textColor||"#333333"),L(h.darkMode||!1)},[h]);var z=function(e,t){var n=se([],w,!0);n[e]=t,I(n),j({colors:n})},M=function(e){k(e),j({backgroundColor:e})},N=function(e){D(e),j({textColor:e})},j=function(e){var t=ce(ce({},h),e);v(t),n&&n(t),$(t)};return i().createElement("div",{className:"taroviz-theme-editor ".concat(d),style:ce({padding:"20px",border:"1px solid #e0e0e0",borderRadius:"8px",backgroundColor:"#ffffff",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)"},l)},i().createElement("h3",null,"主题编辑器"),i().createElement("div",{style:{marginBottom:"20px"}},i().createElement("h4",null,"选择主题"),i().createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:"10px",marginTop:"10px"}},f.map(function(e){return i().createElement("button",{key:e.name,onClick:function(){return function(e){v(e),n&&n(e),$(e)}(e)},disabled:c,style:{padding:"8px 16px",border:"2px solid ".concat(h.name===e.name?"#1890ff":"#e0e0e0"),borderRadius:"4px",backgroundColor:h.name===e.name?"#1890ff":"#ffffff",color:h.name===e.name?"#ffffff":"#333333",cursor:c?"not-allowed":"pointer",opacity:c?.6:1}},e.name)}),i().createElement("button",{onClick:function(){E(!0),y("")},disabled:c,style:{padding:"8px 16px",border:"2px dashed #e0e0e0",borderRadius:"4px",backgroundColor:"#f5f5f5",color:"#333333",cursor:c?"not-allowed":"pointer",opacity:c?.6:1}},"+ 新主题"))),x&&i().createElement("div",{style:{marginBottom:"20px",padding:"15px",backgroundColor:"#f9f9f9",borderRadius:"4px"}},i().createElement("h4",null,"新建主题"),i().createElement("div",{style:{marginBottom:"10px"}},i().createElement("label",{style:{display:"block",marginBottom:"5px"}},"主题名称:"),i().createElement("input",{type:"text",value:g,onChange:function(e){return y(e.target.value)},disabled:c,style:{padding:"8px",border:"1px solid #e0e0e0",borderRadius:"4px",width:"100%",opacity:c?.6:1},placeholder:"输入主题名称"}))),i().createElement("div",{style:{marginBottom:"20px"}},i().createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"10px"}},i().createElement("h4",null,"主题颜色"),i().createElement("button",{onClick:function(){I(se(se([],w,!0),["#000000"],!1))},disabled:c,style:{padding:"4px 8px",border:"1px solid #e0e0e0",borderRadius:"4px",backgroundColor:"#ffffff",color:"#333333",cursor:c?"not-allowed":"pointer",opacity:c?.6:1}},"+ 添加颜色")),i().createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:"10px"}},w.map(function(e,t){return i().createElement("div",{key:t,style:{display:"flex",alignItems:"center",gap:"5px"}},i().createElement("input",{type:"color",value:e,onChange:function(e){return z(t,e.target.value)},disabled:c,style:{width:"50px",height:"30px",border:"none",cursor:c?"not-allowed":"pointer",opacity:c?.6:1}}),i().createElement("input",{type:"text",value:e,onChange:function(e){return z(t,e.target.value)},disabled:c,style:{width:"80px",padding:"4px",border:"1px solid #e0e0e0",borderRadius:"4px",opacity:c?.6:1}}),i().createElement("button",{onClick:function(){return function(e){var t=w.filter(function(t,n){return n!==e});I(t),j({colors:t})}(t)},disabled:c||w.length<=1,style:{padding:"4px 8px",border:"1px solid #ff4d4f",borderRadius:"4px",backgroundColor:"#ffffff",color:"#ff4d4f",cursor:c||w.length<=1?"not-allowed":"pointer",opacity:c||w.length<=1?.6:1}},"删除"))}))),i().createElement("div",{style:{marginBottom:"20px"}},i().createElement("h4",null,"基础配置"),i().createElement("div",{style:{marginBottom:"10px"}},i().createElement("label",{style:{display:"block",marginBottom:"5px"}},"背景色:"),i().createElement("div",{style:{display:"flex",alignItems:"center",gap:"10px"}},i().createElement("input",{type:"color",value:S,onChange:function(e){return M(e.target.value)},disabled:c,style:{width:"50px",height:"30px",border:"none",cursor:c?"not-allowed":"pointer",opacity:c?.6:1}}),i().createElement("input",{type:"text",value:S,onChange:function(e){return M(e.target.value)},disabled:c,style:{width:"120px",padding:"4px",border:"1px solid #e0e0e0",borderRadius:"4px",opacity:c?.6:1}}))),i().createElement("div",{style:{marginBottom:"10px"}},i().createElement("label",{style:{display:"block",marginBottom:"5px"}},"文本颜色:"),i().createElement("div",{style:{display:"flex",alignItems:"center",gap:"10px"}},i().createElement("input",{type:"color",value:A,onChange:function(e){return N(e.target.value)},disabled:c,style:{width:"50px",height:"30px",border:"none",cursor:c?"not-allowed":"pointer",opacity:c?.6:1}}),i().createElement("input",{type:"text",value:A,onChange:function(e){return N(e.target.value)},disabled:c,style:{width:"120px",padding:"4px",border:"1px solid #e0e0e0",borderRadius:"4px",opacity:c?.6:1}}))),i().createElement("div",{style:{display:"flex",alignItems:"center",gap:"10px"}},i().createElement("label",null,"深色模式:"),i().createElement("input",{type:"checkbox",checked:P,onChange:function(){var e=!P;L(e),j({darkMode:e})},disabled:c,style:{cursor:c?"not-allowed":"pointer",opacity:c?.6:1}}))),i().createElement("button",{onClick:function(){var e=ce(ce({},h),{colors:w,backgroundColor:S,textColor:A,darkMode:P});x&&g?(Q(g,e),E(!1),y("")):Q(h.name||"custom",e),r&&r(e)},disabled:c,style:{padding:"10px 20px",border:"none",borderRadius:"4px",backgroundColor:"#1890ff",color:"#ffffff",cursor:c?"not-allowed":"pointer",opacity:c?.6:1}},"保存主题"))};var ue,de=(ue=function(e,t){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ue(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ue(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),fe=function(){return fe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fe.apply(this,arguments)},pe=function(e){function t(t){var n=e.call(this,t)||this;return n.handleReset=function(){n.setState({hasError:!1,error:null})},n.state={hasError:!1,error:null},n}return de(t,e),t.getDerivedStateFromError=function(e){return{hasError:!0,error:e}},t.prototype.componentDidCatch=function(e,t){var n,r;null===(r=(n=this.props).onError)||void 0===r||r.call(n,e,t)},t.prototype.render=function(){var e=this.state,t=e.hasError,n=e.error,r=this.props,o=r.children,a=r.fallback,c=r.showDetails,s=void 0!==c&&c;return t&&n?a?a(n,this.handleReset):i().createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"20px",backgroundColor:"#fff",border:"1px solid #ff4d4f",borderRadius:"8px",color:"#333",minHeight:"200px"}},i().createElement("div",{style:{fontSize:"48px",marginBottom:"16px"}},"⚠️"),i().createElement("h3",{style:{margin:"0 0 12px",color:"#ff4d4f"}},"图表渲染失败"),i().createElement("p",{style:{margin:"0 0 16px",color:"#666",textAlign:"center"}},"图表在渲染过程中遇到错误,请检查数据配置是否正确"),s&&i().createElement("details",{style:{width:"100%",padding:"12px",backgroundColor:"#f5f5f5",borderRadius:"4px",fontSize:"12px",fontFamily:"monospace",overflow:"auto",maxHeight:"150px"}},i().createElement("summary",{style:{cursor:"pointer",marginBottom:"8px"}},"错误详情"),i().createElement("pre",{style:{margin:0,whiteSpace:"pre-wrap",wordBreak:"break-all"}},n.message,"\n\n",n.stack)),i().createElement("button",{onClick:this.handleReset,style:{marginTop:"16px",padding:"8px 24px",backgroundColor:"#1890ff",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"14px"}},"重试")):o},t}(a.Component);function he(e,t){var n=function(n){return i().createElement(pe,fe({},t),i().createElement(e,fe({},n)))};return n.displayName="withErrorBoundary(".concat(e.displayName||e.name||"Chart",")"),n}var ve=function(){return ve=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ve.apply(this,arguments)},me=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ge=(0,a.lazy)(function(){return Promise.resolve().then(n.bind(n,127))}),ye=(0,a.lazy)(function(){return Promise.resolve().then(n.bind(n,188))}),be=(0,a.lazy)(function(){return Promise.resolve().then(n.bind(n,481))}),xe=(0,a.lazy)(function(){return Promise.resolve().then(n.bind(n,589))}),Ee=(0,a.lazy)(function(){return Promise.resolve().then(n.bind(n,443))}),Ce=(0,a.lazy)(function(){return Promise.resolve().then(n.bind(n,835))}),we=(0,a.lazy)(function(){return Promise.resolve().then(n.bind(n,334))}),Ie=(0,a.lazy)(function(){return Promise.resolve().then(n.bind(n,133))}),Te=(0,a.lazy)(function(){return Promise.resolve().then(n.bind(n,37))}),Se=(0,a.lazy)(function(){return Promise.resolve().then(n.bind(n,673))}),ke=(0,a.lazy)(function(){return Promise.resolve().then(n.bind(n,490))}),Oe=function(e){var t=e.text,n=void 0===t?"加载中...":t;return i().createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",minHeight:"200px",backgroundColor:"#f5f5f5",borderRadius:"8px"}},i().createElement("div",{style:{textAlign:"center"}},i().createElement("div",{style:{width:"40px",height:"40px",border:"3px solid #1890ff",borderTopColor:"transparent",borderRadius:"50%",animation:"taroviz-spin 1s linear infinite",margin:"0 auto 12px"}}),i().createElement("style",null,"\n @keyframes taroviz-spin {\n to { transform: rotate(360deg); }\n }\n "),i().createElement("span",{style:{color:"#666",fontSize:"14px"}},n)))};function Ae(e,t){var n=function(n){var r=n.loadingText,o=n.fallback,c=me(n,["loadingText","fallback"]),s=t||Oe;return i().createElement(a.Suspense,{fallback:i().createElement(s,{text:r})},o?i().createElement(i().Fragment,null,o,i().createElement(e,ve({},c))):i().createElement(e,ve({},c)))};return n.displayName="withLazyLoad(".concat(e.displayName||e.name||"Chart",")"),n}function De(e){var t={line:function(){return Promise.resolve().then(n.bind(n,127))},bar:function(){return Promise.resolve().then(n.bind(n,188))},pie:function(){return Promise.resolve().then(n.bind(n,481))},scatter:function(){return Promise.resolve().then(n.bind(n,589))},radar:function(){return Promise.resolve().then(n.bind(n,443))},heatmap:function(){return Promise.resolve().then(n.bind(n,835))},gauge:function(){return Promise.resolve().then(n.bind(n,334))},funnel:function(){return Promise.resolve().then(n.bind(n,133))},treemap:function(){return Promise.resolve().then(n.bind(n,37))},sunburst:function(){return Promise.resolve().then(n.bind(n,673))},sankey:function(){return Promise.resolve().then(n.bind(n,490))}}[e];t&&t().catch(console.error)}function Re(){["line","bar","pie","scatter","radar","heatmap","gauge","funnel","treemap","sunburst","sankey"].forEach(function(e){return De(e)})}function Pe(e){return{line:ge,bar:ye,pie:be,scatter:xe,radar:Ee,heatmap:Ce,gauge:we,funnel:Ie,treemap:Te,sunburst:Se,sankey:ke}[e]||null}var Le={get:function(e){return Pe(e)},preload:function(e){De(e)},preloadAll:function(){Re()}};function ze(e){var t=e.data,n=e.lineStyle,r=e.label,o=e.animation,a=e.animationDuration,i=e.precision;return[{type:"line",markLine:{symbol:["circle","arrow"],silent:!0,animation:!1!==o,animationDuration:a||300,precision:void 0===i?2:i,lineStyle:{color:(null==n?void 0:n.color)||"#333",width:(null==n?void 0:n.width)||2,type:(null==n?void 0:n.type)||"dashed",opacity:null==n?void 0:n.opacity},label:{show:!1!==(null==r?void 0:r.show),position:(null==r?void 0:r.position)||"end",formatter:null==r?void 0:r.formatter,color:(null==r?void 0:r.color)||"#333",fontSize:(null==r?void 0:r.fontSize)||12},data:t.map(function(e){return{xAxis:e.xAxis,yAxis:e.yAxis,name:e.name}})}}]}function Me(e){var t=e.data,n=e.style,r=e.label;return[{type:"bar",markArea:{silent:!0,animation:!1!==e.animation,animationDuration:e.animationDuration||300,itemStyle:{color:(null==n?void 0:n.color)||"rgba(24, 144, 255, 0.1)",opacity:(null==n?void 0:n.opacity)||.3,borderColor:(null==n?void 0:n.borderColor)||"transparent",borderWidth:(null==n?void 0:n.borderWidth)||0,borderType:null==n?void 0:n.borderType},label:{show:!1!==(null==r?void 0:r.show),position:(null==r?void 0:r.position)||"inside",formatter:null==r?void 0:r.formatter,color:(null==r?void 0:r.color)||"#333",fontSize:(null==r?void 0:r.fontSize)||12},data:t.map(function(e){var t=e[0],n=e[1];return[{xAxis:t.xAxis,yAxis:t.yAxis},{xAxis:n.xAxis,yAxis:n.yAxis}]})}}]}function Ne(e){var t=e.data,n=e.symbol,r=e.symbolSize,o=e.itemStyle,a=e.label;return[{type:"scatter",markPoint:{symbol:n,symbolSize:r,itemStyle:o,label:{show:!1!==(null==a?void 0:a.show),position:(null==a?void 0:a.position)||"top",formatter:null==a?void 0:a.formatter,color:(null==a?void 0:a.color)||"#333"},data:t}}]}function je(e){var t=e.type,n=e.markLine,r=e.markArea,o=e.scatter;return(0,a.useMemo)(function(){var e=[];return"line"===t&&n&&e.push.apply(e,ze(n)),"area"===t&&r&&e.push.apply(e,Me(r)),"scatter"===t&&o&&e.push.apply(e,Ne(o)),{series:e}},[t,n,r,o])}var He={averageLine:function(e){return void 0===e&&(e="#1890ff"),{data:[{type:"average",name:"平均值"}],lineStyle:{color:e,type:"dashed",width:2},label:{show:!0,position:"end",color:e}}},maxLine:function(e){return void 0===e&&(e="#f5222d"),{data:[{type:"max",name:"最大值"}],lineStyle:{color:e,type:"dashed",width:2},label:{show:!0,position:"end",color:e}}},minLine:function(e){return void 0===e&&(e="#52c41a"),{data:[{type:"min",name:"最小值"}],lineStyle:{color:e,type:"dashed",width:2},label:{show:!0,position:"end",color:e}}},thresholdLine:function(e,t){return void 0===t&&(t="#faad14"),{data:[{yAxis:e,name:"警戒线"}],lineStyle:{color:t,type:"solid",width:2},label:{show:!0,position:"start",color:t}}},targetArea:function(e,t,n){return void 0===n&&(n="rgba(82, 196, 26, 0.1)"),{data:[[{yAxis:e},{yAxis:t}]],style:{color:n,opacity:.3},label:{show:!0,position:"inside",color:"#52c41a"}}},warningArea:function(e,t,n){return void 0===n&&(n="rgba(250, 173, 20, 0.1)"),{data:[[{yAxis:e},{yAxis:t}]],style:{color:n,opacity:.3},label:{show:!0,position:"inside",color:"#faad14"}}}};function Fe(e){var t=[];return e.forEach(function(e){"line"===e.type&&e.markLine&&t.push.apply(t,ze(e.markLine)),"area"===e.type&&e.markArea&&t.push.apply(t,Me(e.markArea)),"scatter"===e.type&&e.scatter&&t.push.apply(t,Ne(e.scatter))}),{series:t}}var Ue=function(){return Ue=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ue.apply(this,arguments)},Be=function(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function c(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,c)}s((r=r.apply(e,t||[])).next())})},Ge=function(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=c(0),i.throw=c(1),i.return=c(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}};function _e(e){for(var t,n=e.split(","),r=(null===(t=n[0].match(/:(.*?);/))||void 0===t?void 0:t[1])||"image/png",o=atob(n[1]),a=o.length,i=new Uint8Array(a);a--;)i[a]=o.charCodeAt(a);return new Blob([i],{type:r})}function Ve(e,t){var n=(new Date).toISOString().slice(0,10),r=e.replace(/[^a-zA-Z0-9\u4e00-\u9fa5]/g,"_");return"".concat(r,"_").concat(n,".").concat(t)}var We=function(){function e(){}return e.exportImage=function(e,t){void 0===t&&(t={});var n=t.type,r=void 0===n?"png":n,o=t.pixelRatio,a=void 0===o?2:o,i=t.backgroundColor,c=void 0===i?"#ffffff":i,s=t.quality,l=void 0===s?.8:s,u="image/".concat(r);return{data:e.getDataURL({type:r,pixelRatio:a,backgroundColor:c,quality:l}),filename:Ve("chart",r),mimeType:u}},e.exportSVG=function(e,t){void 0===t&&(t={});var n=t.compress,r=void 0!==n&&n,o=e.getSvgData();if(!o)throw new Error("SVG export is not supported. Please use canvas renderer.");var a=o,i="image/svg+xml";return r&&(a=a.replace(/>\s+</g,"><").replace(/\s+/g," "),i+=";charset=utf-8"),{data:a,filename:Ve("chart","svg"),mimeType:i}},e.exportPDF=function(e){return Be(this,arguments,Promise,function(e,t){var n,r,o,a,i,c,s,l,u,d,f,p,h,v,m,g,y,b,x,E,C,w,I,T,S,k,O;return void 0===t&&(t={}),Ge(this,function(A){switch(A.label){case 0:n=t.orientation,r=void 0===n?"portrait":n,o=t.pageSize,a=void 0===o?"a4":o,i=t.title,c=void 0===i?"Chart Export":i,s=t.author,l=void 0===s?"TaroViz":s,u=t.margin,d=void 0===u?{top:40,right:40,bottom:40,left:40}:u,f=t.includeTitle,p=void 0===f||f,h=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#ffffff"}),A.label=1;case 1:return A.trys.push([1,3,,4]),[4,import("jspdf")];case 2:return v=A.sent().default,[3,4];case 3:return A.sent(),[2,{data:h,filename:Ve("chart","png"),mimeType:"image/png"}];case 4:return m={a4:{width:210,height:297},letter:{width:216,height:279},legal:{width:216,height:356},tabloid:{width:279,height:432}}[a],g="landscape"===r,(y=new v({orientation:r,unit:"mm",format:a})).setProperties({title:c,author:l,subject:"Chart Export",keywords:"chart, taroviz, echarts"}),b=g?m.height:m.width,x=.6*b,E=g?m.height:m.width,C=g?m.width:m.height,w=d.top||40,I=d.left||40,p&&(y.setFontSize(16),y.setTextColor(51,51,51),y.text(c,I,w)),T=p?w+15:w,S=(E-b)/2,y.addImage(h,"PNG",S,T,b,x),k=C-d.bottom/2,y.setFontSize(10),y.setTextColor(153,153,153),y.text("Generated by TaroViz on ".concat((new Date).toLocaleDateString()),I,k),[2,{data:O=y.output("blob"),filename:Ve(c.replace(/\s+/g,"_"),"pdf"),mimeType:"application/pdf",size:O.size}]}})})},e.exportBatch=function(e,t){return Be(this,void 0,Promise,function(){var n,r,o,a,i,c,s,l,u,d;return Ge(this,function(f){switch(f.label){case 0:n=t.format,r=t.filenamePrefix,o=t.compress,a=[],i=0,c=e,f.label=1;case 1:if(!(i<c.length))return[3,8];s=c[i],l=s.name,u=s.chart,f.label=2;case 2:return f.trys.push([2,6,,7]),d=void 0,"pdf"!==n?[3,4]:[4,this.exportPDF(u,{title:l})];case 3:return d=f.sent(),[3,5];case 4:d=this.exportImage(u,{type:n}),f.label=5;case 5:return o&&d.filename&&(d.filename=d.filename.replace(/\.(\w+)$/,".$1")),a.push(d),[3,7];case 6:return f.sent(),[3,7];case 7:return i++,[3,1];case 8:return[2,a]}})})},e.download=function(e){var t,n,r,o,a;t=e.data,n=e.filename,e.mimeType,r="string"==typeof t?_e(t):t,o=URL.createObjectURL(r),(a=document.createElement("a")).href=o,a.download=n,a.style.display="none",document.body.appendChild(a),a.click(),setTimeout(function(){document.body.removeChild(a),URL.revokeObjectURL(o)},100)},e.copyToClipboard=function(e){return Be(this,arguments,Promise,function(e,t){var n,r,o;return void 0===t&&(t={}),Ge(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),n=this.exportImage(e,Ue(Ue({},t),{type:"png"})),r=_e(n.data),[4,navigator.clipboard.write([new ClipboardItem((o={},o[r.type]=r,o))])];case 1:return a.sent(),[2,!0];case 2:return a.sent(),[2,!1];case 3:return[2]}})})},e.calculateExportSize=function(e,t){void 0===t&&(t=300);var n=e.getWidth(),r=e.getHeight(),o=t/96;return{width:Math.round(n*o),height:Math.round(r*o)}},e}(),Ze=We;var qe=function(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function c(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,c)}s((r=r.apply(e,t||[])).next())})},Je=function(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=c(0),i.throw=c(1),i.return=c(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}},Ye=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function Qe(e,t){var n=(0,a.useState)(null),r=n[0],o=n[1],i=(0,a.useState)(!1),s=i[0],l=i[1],u=(0,a.useRef)(t);return u.current=t,(0,a.useEffect)(function(){if(e.current&&!r){try{var t=(0,c.cK)(u.current||{});o(t),l(!0)}catch(e){}return function(){var e;if(r){try{var t=r;(null===(e=t.isDisposed)||void 0===e?void 0:e.call(t))||t.dispose()}catch(e){}o(null),l(!1)}}}},[e]),[r,o,s]}function Ke(e,t,n){var r=n||{},o=r.notMerge,i=void 0!==o&&o,c=r.lazyUpdate,s=void 0!==c&&c,l=r.replaceMerge,u=r.deps,d=void 0===u?[]:u;(0,a.useEffect)(function(){if(e&&t)try{e.setOption(t,i,s)}catch(e){}},Ye([e,t,i,s,l],d,!0))}function Xe(e,t){var n=t||{},r=n.delay,o=void 0===r?300:r,i=n.minWidth,c=n.minHeight,s=n.enabled,l=void 0===s||s,u=(0,a.useRef)();(0,a.useEffect)(function(){var t;if(e&&l){var n=function(){u.current&&clearTimeout(u.current),u.current=setTimeout(function(){var t,n;try{var r=null===(t=e.getDom)||void 0===t?void 0:t.call(e);if(r){var o=r.clientWidth,a=r.clientHeight;if(i&&o<i)return;if(c&&a<c)return}null===(n=e.resize)||void 0===n||n.call(e)}catch(e){}},o)};window.addEventListener("resize",n);var r=null===(t=e.getDom)||void 0===t?void 0:t.call(e);if(r&&"undefined"!=typeof ResizeObserver){var a=new ResizeObserver(n);return a.observe(r),function(){a.disconnect(),window.removeEventListener("resize",n),u.current&&clearTimeout(u.current)}}return function(){window.removeEventListener("resize",n),u.current&&clearTimeout(u.current)}}},[e,o,i,c,l])}function $e(e,t){(0,a.useEffect)(function(){if(e&&t){var n=Object.entries(t);return n.forEach(function(t){var n=t[0],r=t[1];try{e.on(n,r)}catch(e){}}),function(){n.forEach(function(t){var n=t[0],r=t[1];try{e.off(n,r)}catch(e){}})}}},[e,t])}function et(e,t,n){(0,a.useEffect)(function(){if(e)try{t?e.showLoading(n):e.hideLoading()}catch(e){}},[e,t,n])}function tt(e,t){return void 0===t&&(t=!1),(0,a.useMemo)(function(){if("string"==typeof e)try{return getTheme(e)||(t?"dark":e)}catch(n){return t?"dark":e}return e},[e,t])}function nt(e,t){return(0,a.useMemo)(function(){return e?t(e):{}},[e,t])}function rt(e){var t=e||{},n=t.breakpoints,r=void 0===n?{xs:0,sm:576,md:768,lg:992,xl:1200}:n,o=t.defaultBreakpoint,i=void 0===o?"md":o,c=(0,a.useState)(i),s=c[0],l=c[1],u=(0,a.useState)({width:0,height:0}),d=u[0],f=u[1];return(0,a.useEffect)(function(){var e=function(){var e=window.innerWidth;f({width:e,height:window.innerHeight});var t="xs";e>=r.xl?t="xl":e>=r.lg?t="lg":e>=r.md?t="md":e>=r.sm&&(t="sm"),l(t)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[r]),{breakpoint:s,windowSize:d}}function ot(e){void 0===e&&(e="default");var t=(0,a.useState)(e),n=t[0],r=t[1],o=(0,a.useState)(!1),i=o[0],c=o[1];return{theme:n,isDark:i,switchTheme:(0,a.useCallback)(function(e){r(e),"string"==typeof e&&c("dark"===e||e.includes("dark"))},[]),toggleDark:(0,a.useCallback)(function(){c(function(e){return!e}),r(function(e){return"dark"===e?"default":"dark"})},[]),setTheme:r}}function at(e,t){var n=this,r=t||{},o=r.interval,i=void 0===o?5e3:o,c=r.autoStart,s=void 0!==c&&c,l=r.retryCount,u=void 0===l?3:l,d=r.retryDelay,f=void 0===d?1e3:d,p=(0,a.useState)(null),h=p[0],v=p[1],m=(0,a.useState)(s),g=m[0],y=m[1],b=(0,a.useState)(null),x=b[0],E=b[1],C=(0,a.useState)(0),w=C[0],I=C[1],T=(0,a.useCallback)(function(){return qe(n,void 0,void 0,function(){var t,n,r;return Je(this,function(o){switch(o.label){case 0:t=u,y(!0),E(null),o.label=1;case 1:if(!(t>=0))return[3,9];o.label=2;case 2:return o.trys.push([2,4,,8]),[4,e()];case 3:return n=o.sent(),v(n),y(!1),[2];case 4:return r=o.sent(),--t<0?(E(r),y(!1),[3,7]):[3,5];case 5:return[4,new Promise(function(e){return setTimeout(e,f)})];case 6:o.sent(),o.label=7;case 7:return[3,8];case 8:return[3,1];case 9:return[2]}})})},[e,u,f]);return(0,a.useEffect)(function(){if(s&&T(),i>0){var e=setInterval(T,i);return function(){return clearInterval(e)}}},[i,s,T,w]),{data:h,loading:g,error:x,refresh:(0,a.useCallback)(function(){I(function(e){return e+1}),T()},[T])}}function it(e){var t=(0,a.useState)(!1),n=t[0],r=t[1],o=(0,a.useCallback)(function(){e.current&&(n?document.exitFullscreen&&document.exitFullscreen():e.current.requestFullscreen&&e.current.requestFullscreen())},[e,n]);return(0,a.useEffect)(function(){var e=function(){r(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),function(){return document.removeEventListener("fullscreenchange",e)}},[]),{isFullscreen:n,toggle:o}}function ct(e){var t=e;return{exportImage:(0,a.useCallback)(function(e){var n;if(!t)return null;var r=e||{},o=r.type,a=void 0===o?"png":o,i=r.pixelRatio,c=void 0===i?2:i,s=r.backgroundColor;return null===(n=t.getDataURL)||void 0===n?void 0:n.call(t,{type:a,pixelRatio:c,backgroundColor:s})},[t]),exportSVG:(0,a.useCallback)(function(){var e;return t?null===(e=t.getSvgData)||void 0===e?void 0:e.call(t):null},[t]),exportCSV:(0,a.useCallback)(function(e){var n;return t?null===(n=t.getCompressedDataURL)||void 0===n?void 0:n.call(t,e):null},[t])}}function st(e){var t=e;return{getInstance:(0,a.useCallback)(function(){return e},[e]),clear:(0,a.useCallback)(function(){var e;null===(e=null==t?void 0:t.clear)||void 0===e||e.call(t)},[t]),repaint:(0,a.useCallback)(function(){var e;null===(e=null==t?void 0:t.resize)||void 0===e||e.call(t)},[t]),dispatchAction:(0,a.useCallback)(function(e){var n;null===(n=null==t?void 0:t.dispatchAction)||void 0===n||n.call(t,e)},[t]),showTip:(0,a.useCallback)(function(e,n){var r;null===(r=null==t?void 0:t.dispatchAction)||void 0===r||r.call(t,{type:"showTip",seriesIndex:e,dataIndex:n})},[t]),hideTip:(0,a.useCallback)(function(){var e;null===(e=null==t?void 0:t.dispatchAction)||void 0===e||e.call(t,{type:"hideTip"})},[t]),zoom:(0,a.useCallback)(function(e,n){var r;null===(r=null==t?void 0:t.dispatchAction)||void 0===r||r.call(t,{type:"dataZoom",start:null!=e?e:0,end:null!=n?n:100})},[t])}}var lt="taroviz",ut="1.2.1";module.exports=r})();
|